iking-web-ui-pro 0.2.43 → 0.2.44

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 (35) hide show
  1. package/dist/IKPreviewFile/ik.index.es.js +352 -354
  2. package/dist/IKPreviewFile/ik.index.umd.js +44 -44
  3. package/dist/IKSearch/ik.index.es.js +111 -109
  4. package/dist/IKSearch/ik.index.umd.js +2 -2
  5. package/dist/IkApprovalProcess/ik.index.es.js +167 -158
  6. package/dist/IkApprovalProcess/ik.index.umd.js +1 -1
  7. package/dist/IkApprovalProcess/style.css +1 -1
  8. package/dist/IkApprovalProcessDetail/ik.index.es.js +359 -361
  9. package/dist/IkApprovalProcessDetail/ik.index.umd.js +44 -44
  10. package/dist/IkCalendar/ik.index.es.js +355 -353
  11. package/dist/IkCalendar/ik.index.umd.js +1 -1
  12. package/dist/IkDescription/ik.index.es.js +299 -301
  13. package/dist/IkDescription/ik.index.umd.js +44 -44
  14. package/dist/IkDetailPreviewFiles/ik.index.es.js +307 -309
  15. package/dist/IkDetailPreviewFiles/ik.index.umd.js +44 -44
  16. package/dist/IkOnlyOffice/ik.index.es.js +13 -19
  17. package/dist/IkOnlyOffice/ik.index.umd.js +1 -1
  18. package/dist/IkPageFull/ik.index.es.js +154 -152
  19. package/dist/IkPageFull/ik.index.umd.js +2 -2
  20. package/dist/IkPickerUser/ik.index.es.js +119 -117
  21. package/dist/IkPickerUser/ik.index.umd.js +1 -1
  22. package/dist/IkPreviewFileDialog/ik.index.es.js +343 -345
  23. package/dist/IkPreviewFileDialog/ik.index.umd.js +44 -44
  24. package/dist/IkTemplateOfficeConfig/ik.index.es.js +77 -78
  25. package/dist/IkTemplateOfficeConfig/ik.index.umd.js +1 -1
  26. package/dist/IkTinymce/ik.index.es.js +8803 -8741
  27. package/dist/IkTinymce/ik.index.umd.js +38 -38
  28. package/dist/IkTinymce/style.css +1 -1
  29. package/dist/IkUploadFile/ik.index.es.js +333 -335
  30. package/dist/IkUploadFile/ik.index.umd.js +46 -46
  31. package/dist/index.es.js +6738 -6729
  32. package/dist/index.umd.js +106 -106
  33. package/dist/style.css +1 -1
  34. package/package.json +1 -1
  35. package/dist/IkOnlyOffice/style.css +0 -0
@@ -1,4 +1,4 @@
1
- import { defineComponent as J, computed as X, openBlock as E, createElementBlock as D, createElementVNode as T, inject as lt, ref as ge, resolveComponent as Ge, Fragment as Fe, renderList as wt, normalizeStyle as ce, toDisplayString as xe, normalizeClass as K, createVNode as G, unref as S, withModifiers as ii, createBlock as ae, createCommentVNode as ee, renderSlot as ve, withCtx as Y, mergeModels as bt, useModel as hi, reactive as rr, watch as ft, nextTick as di, createTextVNode as st, h as sr, mergeProps as ni, createSlots as or, getCurrentScope as ar, onScopeDispose as lr, markRaw as Ri, effectScope as ur, shallowRef as cr, onMounted as fr, Teleport as Cn, Transition as kn, resolveDynamicComponent as hr, withDirectives as dr, vShow as gr, useCssVars as pr } from "vue";
1
+ import { defineComponent as J, computed as X, openBlock as E, createElementBlock as D, createElementVNode as T, inject as lt, ref as ge, resolveComponent as Ge, Fragment as Fe, renderList as kt, normalizeStyle as ce, toDisplayString as xe, normalizeClass as K, createVNode as G, unref as S, withModifiers as ii, createBlock as ae, createCommentVNode as ee, renderSlot as ve, withCtx as Y, mergeModels as wt, useModel as hi, reactive as rr, watch as ft, nextTick as di, createTextVNode as st, h as sr, mergeProps as ni, createSlots as or, getCurrentScope as ar, onScopeDispose as lr, markRaw as Ri, effectScope as ur, shallowRef as cr, onMounted as fr, Teleport as Cn, Transition as kn, resolveDynamicComponent as hr, withDirectives as dr, vShow as gr, useCssVars as pr } from "vue";
2
2
  import { useLocale as vr, useNamespace as wn, useZIndex as mr, ElIcon as De, EVENT_CODE as Xe, ElTag as yr } from "element-plus";
3
3
  import { paramType as ri, ikFile as _r, buildUUID as bn, ikColor as Cr, _ as zt } from "iking-utils-pro";
4
4
  const Le = (a, o) => {
@@ -751,7 +751,7 @@ var Ss = /* @__PURE__ */ J({
751
751
  ]));
752
752
  }
753
753
  }), Vs = zs;
754
- const gt = (a, o) => {
754
+ const Ot = (a, o) => {
755
755
  const r = a.__vccOpts || a;
756
756
  for (const [t, e] of o)
757
757
  r[t] = e;
@@ -953,7 +953,7 @@ const gt = (a, o) => {
953
953
  a.simple ? (E(!0), D(
954
954
  Fe,
955
955
  { key: 0 },
956
- wt(p.value, (P, F) => (E(), D("div", {
956
+ kt(p.value, (P, F) => (E(), D("div", {
957
957
  class: "iking-privew-annex simple",
958
958
  onClick: (U) => c(P),
959
959
  style: ce({ width: d.value })
@@ -998,7 +998,7 @@ const gt = (a, o) => {
998
998
  (E(!0), D(
999
999
  Fe,
1000
1000
  null,
1001
- wt(p.value, (P, F) => {
1001
+ kt(p.value, (P, F) => {
1002
1002
  var U;
1003
1003
  return E(), D(
1004
1004
  "div",
@@ -1099,7 +1099,7 @@ const gt = (a, o) => {
1099
1099
  });
1100
1100
  const Js = Le(Zs), Qs = /* @__PURE__ */ J({
1101
1101
  __name: "IkPreviewFileDialog",
1102
- props: /* @__PURE__ */ bt({
1102
+ props: /* @__PURE__ */ wt({
1103
1103
  file: {
1104
1104
  type: Object,
1105
1105
  default: () => []
@@ -1148,7 +1148,6 @@ const Js = Le(Zs), Qs = /* @__PURE__ */ J({
1148
1148
  var c, h, d, p, g, m, y;
1149
1149
  try {
1150
1150
  const k = ((c = u == null ? void 0 : u.response) == null ? void 0 : c.data) || u, b = k[t.value.url] || (k == null ? void 0 : k.id) || k.attachmentId, w = (h = k[t.value.suffix] || k.attachmentSuffix) == null ? void 0 : h.toLowerCase(), P = k[t.value.name] || (k == null ? void 0 : k.attachmentName) || (k == null ? void 0 : k.originName);
1151
- debugger;
1152
1151
  if (i.value = {
1153
1152
  ...u,
1154
1153
  name: u[t.value.name],
@@ -1201,7 +1200,7 @@ const Js = Le(Zs), Qs = /* @__PURE__ */ J({
1201
1200
  Fe,
1202
1201
  { key: 0 },
1203
1202
  [
1204
- (h = i.value) != null && h.url && n.image ? (E(), ae(S(Uo), {
1203
+ (h = i.value) != null && h.url && n.image ? (E(), ae(S(Ho), {
1205
1204
  key: 0,
1206
1205
  onClose: c[0] || (c[0] = (g) => l()),
1207
1206
  ref: "previewImgRef",
@@ -1209,9 +1208,9 @@ const Js = Le(Zs), Qs = /* @__PURE__ */ J({
1209
1208
  teleported: "",
1210
1209
  "z-index": 9999
1211
1210
  }, null, 8, ["url-list"])) : ee("v-if", !0),
1212
- ee(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
1211
+ ee(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
1213
1212
  ee(" 文档类 "),
1214
- G(S(iu), {
1213
+ G(S(tu), {
1215
1214
  modelValue: n.video,
1216
1215
  "onUpdate:modelValue": c[1] || (c[1] = (g) => n.video = g),
1217
1216
  url: (p = i.value) == null ? void 0 : p.url
@@ -1234,7 +1233,7 @@ const Js = Le(Zs), Qs = /* @__PURE__ */ J({
1234
1233
  default: Y(() => {
1235
1234
  var g;
1236
1235
  return [
1237
- G(S(To), {
1236
+ G(S(bo), {
1238
1237
  "config-options": e.value,
1239
1238
  "document-server-url": ((g = a.onlyOfficeConfig) == null ? void 0 : g.serverUrl) || a.onlyofficeServer
1240
1239
  }, null, 8, ["config-options", "document-server-url"])
@@ -1453,7 +1452,7 @@ const eo = Le(Qs), to = {
1453
1452
  };
1454
1453
  }
1455
1454
  });
1456
- const uo = /* @__PURE__ */ gt(lo, [["__scopeId", "data-v-52806adf"]]), nt = Le(uo), co = /* @__PURE__ */ J({
1455
+ const uo = /* @__PURE__ */ Ot(lo, [["__scopeId", "data-v-52806adf"]]), nt = Le(uo), co = /* @__PURE__ */ J({
1457
1456
  __name: "CloseIcon",
1458
1457
  props: {
1459
1458
  showBg: {
@@ -1484,9 +1483,9 @@ const uo = /* @__PURE__ */ gt(lo, [["__scopeId", "data-v-52806adf"]]), nt = Le(u
1484
1483
  ));
1485
1484
  }
1486
1485
  });
1487
- const fo = /* @__PURE__ */ gt(co, [["__scopeId", "data-v-da39e979"]]), ho = { class: "base-header" }, go = /* @__PURE__ */ J({
1486
+ const fo = /* @__PURE__ */ Ot(co, [["__scopeId", "data-v-da39e979"]]), ho = { class: "base-header" }, go = /* @__PURE__ */ J({
1488
1487
  __name: "IkBaseDialog",
1489
- props: /* @__PURE__ */ bt({
1488
+ props: /* @__PURE__ */ wt({
1490
1489
  title: { default: "" },
1491
1490
  cancelText: { default: "取消" },
1492
1491
  confirmText: { default: "确认" },
@@ -1925,40 +1924,39 @@ const wo = /* @__PURE__ */ J({
1925
1924
  /* STYLE */
1926
1925
  ));
1927
1926
  }
1928
- });
1929
- const bo = /* @__PURE__ */ gt(wo, [["__scopeId", "data-v-98d51ef9"]]), To = Le(bo);
1927
+ }), bo = Le(wo);
1930
1928
  var Bi;
1931
- const Sn = typeof window < "u", Eo = (a) => typeof a == "string", So = () => {
1929
+ const Sn = typeof window < "u", To = (a) => typeof a == "string", Eo = () => {
1932
1930
  };
1933
1931
  Sn && ((Bi = window == null ? void 0 : window.navigator) != null && Bi.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
1934
1932
  function xn(a) {
1935
1933
  return typeof a == "function" ? a() : S(a);
1936
1934
  }
1937
- function xo(a) {
1935
+ function So(a) {
1938
1936
  return a;
1939
1937
  }
1940
- function Io(a) {
1938
+ function xo(a) {
1941
1939
  return ar() ? (lr(a), !0) : !1;
1942
1940
  }
1943
- function Po(a) {
1941
+ function Io(a) {
1944
1942
  var o;
1945
1943
  const r = xn(a);
1946
1944
  return (o = r == null ? void 0 : r.$el) != null ? o : r;
1947
1945
  }
1948
- const Lo = Sn ? window : void 0;
1949
- function mt(...a) {
1946
+ const Po = Sn ? window : void 0;
1947
+ function vt(...a) {
1950
1948
  let o, r, t, e;
1951
- if (Eo(a[0]) || Array.isArray(a[0]) ? ([r, t, e] = a, o = Lo) : [o, r, t, e] = a, !o)
1952
- return So;
1949
+ if (To(a[0]) || Array.isArray(a[0]) ? ([r, t, e] = a, o = Po) : [o, r, t, e] = a, !o)
1950
+ return Eo;
1953
1951
  Array.isArray(r) || (r = [r]), Array.isArray(t) || (t = [t]);
1954
1952
  const i = [], n = () => {
1955
1953
  i.forEach((c) => c()), i.length = 0;
1956
- }, s = (c, h, d, p) => (c.addEventListener(h, d, p), () => c.removeEventListener(h, d, p)), l = ft(() => [Po(o), xn(e)], ([c, h]) => {
1954
+ }, s = (c, h, d, p) => (c.addEventListener(h, d, p), () => c.removeEventListener(h, d, p)), l = ft(() => [Io(o), xn(e)], ([c, h]) => {
1957
1955
  n(), c && i.push(...r.flatMap((d) => t.map((p) => s(c, d, p, h))));
1958
1956
  }, { immediate: !0, flush: "post" }), u = () => {
1959
1957
  l(), n();
1960
1958
  };
1961
- return Io(u), u;
1959
+ return xo(u), u;
1962
1960
  }
1963
1961
  const Hi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ui = "__vueuse_ssr_handlers__";
1964
1962
  Hi[Ui] = Hi[Ui] || {};
@@ -1966,15 +1964,15 @@ var zi;
1966
1964
  (function(a) {
1967
1965
  a.UP = "UP", a.RIGHT = "RIGHT", a.DOWN = "DOWN", a.LEFT = "LEFT", a.NONE = "NONE";
1968
1966
  })(zi || (zi = {}));
1969
- var Ao = Object.defineProperty, Vi = Object.getOwnPropertySymbols, Do = Object.prototype.hasOwnProperty, Oo = Object.prototype.propertyIsEnumerable, ji = (a, o, r) => o in a ? Ao(a, o, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[o] = r, Ro = (a, o) => {
1967
+ var Lo = Object.defineProperty, Vi = Object.getOwnPropertySymbols, Ao = Object.prototype.hasOwnProperty, Do = Object.prototype.propertyIsEnumerable, ji = (a, o, r) => o in a ? Lo(a, o, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[o] = r, Oo = (a, o) => {
1970
1968
  for (var r in o || (o = {}))
1971
- Do.call(o, r) && ji(a, r, o[r]);
1969
+ Ao.call(o, r) && ji(a, r, o[r]);
1972
1970
  if (Vi)
1973
1971
  for (var r of Vi(o))
1974
- Oo.call(o, r) && ji(a, r, o[r]);
1972
+ Do.call(o, r) && ji(a, r, o[r]);
1975
1973
  return a;
1976
1974
  };
1977
- const Mo = {
1975
+ const Ro = {
1978
1976
  easeInSine: [0.12, 0, 0.39, 0],
1979
1977
  easeOutSine: [0.61, 1, 0.88, 1],
1980
1978
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -2000,10 +1998,10 @@ const Mo = {
2000
1998
  easeOutBack: [0.34, 1.56, 0.64, 1],
2001
1999
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
2002
2000
  };
2003
- Ro({
2004
- linear: xo
2005
- }, Mo);
2006
- const Fo = {
2001
+ Oo({
2002
+ linear: So
2003
+ }, Ro);
2004
+ const Mo = {
2007
2005
  /**
2008
2006
  * @description preview link list.
2009
2007
  */
@@ -2073,15 +2071,15 @@ const Fo = {
2073
2071
  crossorigin: {
2074
2072
  type: ["anonymous", "use-credentials", ""]
2075
2073
  }
2076
- }, No = {
2074
+ }, Fo = {
2077
2075
  close: () => !0,
2078
2076
  switch: (a) => ri.isNumber(a),
2079
2077
  rotate: (a) => ri.isNumber(a)
2080
- }, Bo = ["src", "crossorigin"], Ho = /* @__PURE__ */ J({
2078
+ }, No = ["src", "crossorigin"], Bo = /* @__PURE__ */ J({
2081
2079
  name: "ElImageViewer",
2082
2080
  __name: "IkImageViewer",
2083
- props: Fo,
2084
- emits: No,
2081
+ props: Mo,
2082
+ emits: Fo,
2085
2083
  setup(a, { expose: o, emit: r }) {
2086
2084
  const t = (N) => Object.keys(N), e = {
2087
2085
  CONTAIN: {
@@ -2153,7 +2151,7 @@ const Fo = {
2153
2151
  });
2154
2152
  });
2155
2153
  d.run(() => {
2156
- mt(document, "keydown", N), mt(document, "wheel", W);
2154
+ vt(document, "keydown", N), vt(document, "wheel", W);
2157
2155
  });
2158
2156
  }
2159
2157
  function ne() {
@@ -2175,8 +2173,8 @@ const Fo = {
2175
2173
  offsetX: W + at.pageX - pe,
2176
2174
  offsetY: q + at.pageY - _e
2177
2175
  };
2178
- }), Ae = mt(document, "mousemove", Ce);
2179
- mt(document, "mouseup", () => {
2176
+ }), Ae = vt(document, "mousemove", Ce);
2177
+ vt(document, "mouseup", () => {
2180
2178
  Ae();
2181
2179
  }), N.preventDefault();
2182
2180
  }
@@ -2431,7 +2429,7 @@ const Fo = {
2431
2429
  (E(!0), D(
2432
2430
  Fe,
2433
2431
  null,
2434
- wt(N.urlList, (q, pe) => dr((E(), D("img", {
2432
+ kt(N.urlList, (q, pe) => dr((E(), D("img", {
2435
2433
  ref_for: !0,
2436
2434
  ref: (_e) => h.value[pe] = _e,
2437
2435
  key: q,
@@ -2442,7 +2440,7 @@ const Fo = {
2442
2440
  onLoad: le,
2443
2441
  onError: ue,
2444
2442
  onMousedown: be
2445
- }, null, 46, Bo)), [
2443
+ }, null, 46, No)), [
2446
2444
  [gr, pe === g.value]
2447
2445
  ])),
2448
2446
  128
@@ -2463,7 +2461,7 @@ const Fo = {
2463
2461
  })
2464
2462
  ]));
2465
2463
  }
2466
- }), Uo = Le(Ho);
2464
+ }), Ho = Le(Bo);
2467
2465
  function Wi(a, o) {
2468
2466
  var r = Object.keys(a);
2469
2467
  if (Object.getOwnPropertySymbols) {
@@ -2539,7 +2537,7 @@ function oi(a, o) {
2539
2537
  return t.__proto__ = e, t;
2540
2538
  }, oi(a, o);
2541
2539
  }
2542
- function zo() {
2540
+ function Uo() {
2543
2541
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
2544
2542
  return !1;
2545
2543
  if (typeof Proxy == "function")
@@ -2564,7 +2562,7 @@ function vi(a, o) {
2564
2562
  return v(a);
2565
2563
  }
2566
2564
  function A(a) {
2567
- var o = zo();
2565
+ var o = Uo();
2568
2566
  return function() {
2569
2567
  var t = O(a), e;
2570
2568
  if (o) {
@@ -2575,14 +2573,14 @@ function A(a) {
2575
2573
  return vi(this, e);
2576
2574
  };
2577
2575
  }
2578
- function Vo(a, o) {
2576
+ function zo(a, o) {
2579
2577
  for (; !Object.prototype.hasOwnProperty.call(a, o) && (a = O(a), a !== null); )
2580
2578
  ;
2581
2579
  return a;
2582
2580
  }
2583
2581
  function M() {
2584
2582
  return typeof Reflect < "u" && Reflect.get ? M = Reflect.get.bind() : M = function(o, r, t) {
2585
- var e = Vo(o, r);
2583
+ var e = zo(o, r);
2586
2584
  if (e) {
2587
2585
  var i = Object.getOwnPropertyDescriptor(e, r);
2588
2586
  return i.get ? i.get.call(arguments.length < 3 ? o : t) : i.value;
@@ -2590,17 +2588,17 @@ function M() {
2590
2588
  }, M.apply(this, arguments);
2591
2589
  }
2592
2590
  function me(a) {
2593
- return jo(a) || Wo(a) || Go(a) || $o();
2591
+ return Vo(a) || jo(a) || Wo(a) || Go();
2594
2592
  }
2595
- function jo(a) {
2593
+ function Vo(a) {
2596
2594
  if (Array.isArray(a))
2597
2595
  return ai(a);
2598
2596
  }
2599
- function Wo(a) {
2597
+ function jo(a) {
2600
2598
  if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null)
2601
2599
  return Array.from(a);
2602
2600
  }
2603
- function Go(a, o) {
2601
+ function Wo(a, o) {
2604
2602
  if (a) {
2605
2603
  if (typeof a == "string")
2606
2604
  return ai(a, o);
@@ -2617,11 +2615,11 @@ function ai(a, o) {
2617
2615
  t[r] = a[r];
2618
2616
  return t;
2619
2617
  }
2620
- function $o() {
2618
+ function Go() {
2621
2619
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
2622
2620
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2623
2621
  }
2624
- function Ko(a, o) {
2622
+ function $o(a, o) {
2625
2623
  if (typeof a != "object" || a === null)
2626
2624
  return a;
2627
2625
  var r = a[Symbol.toPrimitive];
@@ -2634,7 +2632,7 @@ function Ko(a, o) {
2634
2632
  return (o === "string" ? String : Number)(a);
2635
2633
  }
2636
2634
  function In(a) {
2637
- var o = Ko(a, "string");
2635
+ var o = $o(a, "string");
2638
2636
  return typeof o == "symbol" ? o : String(o);
2639
2637
  }
2640
2638
  var Pn = { exports: {} };
@@ -2750,13 +2748,13 @@ var Pn = { exports: {} };
2750
2748
  })(Pn);
2751
2749
  var Ln = Pn.exports;
2752
2750
  const An = /* @__PURE__ */ gi(Ln);
2753
- var Yo = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, Vt = {
2751
+ var Ko = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, Vt = {
2754
2752
  info: "color: #525252; background-color: #90ee90;",
2755
2753
  error: "color: #525252; background-color: red;",
2756
2754
  warn: "color: #525252; background-color: yellow; "
2757
2755
  }, jt = "%c[xgplayer]", H = {
2758
2756
  config: {
2759
- debug: Yo ? 3 : 0
2757
+ debug: Ko ? 3 : 0
2760
2758
  },
2761
2759
  logInfo: function(o) {
2762
2760
  for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
@@ -2777,10 +2775,10 @@ var Yo = typeof window < "u" && window.location && window.location.href.indexOf(
2777
2775
  }
2778
2776
  }
2779
2777
  };
2780
- function Xo(a) {
2778
+ function Yo(a) {
2781
2779
  a.logInfo = H.logInfo.bind(a), a.logWarn = H.logWarn.bind(a), a.logError = H.logError.bind(a);
2782
2780
  }
2783
- var qo = /* @__PURE__ */ function() {
2781
+ var Xo = /* @__PURE__ */ function() {
2784
2782
  function a(o) {
2785
2783
  x(this, a), this.bufferedList = o;
2786
2784
  }
@@ -3026,7 +3024,7 @@ f.setStyleFromCsstext = function(a, o) {
3026
3024
  a.style[t] = o[t];
3027
3025
  });
3028
3026
  };
3029
- function Zo(a, o) {
3027
+ function qo(a, o) {
3030
3028
  for (var r = 0, t = o.length; r < t; r++)
3031
3029
  if (a.indexOf(o[r]) > -1)
3032
3030
  return !0;
@@ -3040,7 +3038,7 @@ f.filterStyleFromText = function(a) {
3040
3038
  return t.map(function(n) {
3041
3039
  if (n) {
3042
3040
  var s = n.split(":");
3043
- s.length > 1 && (Zo(s[0], o) ? e[s[0]] = s[1] : i[s[0]] = s[1]);
3041
+ s.length > 1 && (qo(s[0], o) ? e[s[0]] = s[1] : i[s[0]] = s[1]);
3044
3042
  }
3045
3043
  }), a.setAttribute("style", ""), Object.keys(i).map(function(n) {
3046
3044
  a.style[n] = i[n];
@@ -3105,7 +3103,7 @@ f.getBuffered2 = function(a) {
3105
3103
  }
3106
3104
  else
3107
3105
  e = r;
3108
- return new qo(e);
3106
+ return new Xo(e);
3109
3107
  };
3110
3108
  f.getEventPos = function(a) {
3111
3109
  var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
@@ -3229,7 +3227,7 @@ function Dn(a) {
3229
3227
  var o = se(a);
3230
3228
  return a !== null && (o === "object" || o === "function");
3231
3229
  }
3232
- function Jo(a, o, r) {
3230
+ function Zo(a, o, r) {
3233
3231
  var t, e, i, n, s, l, u = 0, c = !1, h = !1, d = !0, p = !o && o !== 0 && typeof window.requestAnimationFrame == "function";
3234
3232
  if (typeof a != "function")
3235
3233
  throw new TypeError("Expected a function");
@@ -3288,21 +3286,21 @@ function Jo(a, o, r) {
3288
3286
  }
3289
3287
  return Q.cancel = U, Q.flush = R, Q.pending = te, Q;
3290
3288
  }
3291
- function Qo(a, o, r) {
3289
+ function Jo(a, o, r) {
3292
3290
  var t = !0, e = !0;
3293
3291
  if (typeof a != "function")
3294
3292
  throw new TypeError("Expected a function");
3295
- return Dn(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e), Jo(a, o, {
3293
+ return Dn(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e), Zo(a, o, {
3296
3294
  leading: t,
3297
3295
  trailing: e,
3298
3296
  maxWait: o
3299
3297
  });
3300
3298
  }
3301
- function ea() {
3299
+ function Qo() {
3302
3300
  var a = (document.documentElement.getAttribute("lang") || navigator.language || "zh-cn").toLocaleLowerCase();
3303
3301
  return a === "zh-cn" && (a = "zh"), a;
3304
3302
  }
3305
- function ta(a, o, r) {
3303
+ function ea(a, o, r) {
3306
3304
  if (a) {
3307
3305
  var t = a.getAttribute(r);
3308
3306
  return !!(t && t === o && (a.tagName === "VIDEO" || a.tagName === "AUDIO"));
@@ -3311,7 +3309,7 @@ function ta(a, o, r) {
3311
3309
  var $i = {
3312
3310
  android: /(Android)\s([\d.]+)/,
3313
3311
  ios: /(Version)\/([\d.]+)/
3314
- }, ia = ["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"], B = {
3312
+ }, ta = ["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"], B = {
3315
3313
  get device() {
3316
3314
  var a = B.os;
3317
3315
  return a.isPc ? "pc" : "mobile";
@@ -3374,7 +3372,7 @@ var $i = {
3374
3372
  if (this.supportResult)
3375
3373
  return this.supportResult;
3376
3374
  var r = document.createElement("video");
3377
- return typeof r.canPlayType == "function" && ia.map(function(t) {
3375
+ return typeof r.canPlayType == "function" && ta.map(function(t) {
3378
3376
  r.canPlayType('video/mp4; codecs="'.concat(t, '"')) === "probably" && (o.isSupport = !0, o.mime += "||".concat(t));
3379
3377
  }), this.supportResult = o, r = null, o;
3380
3378
  },
@@ -3427,7 +3425,7 @@ var $i = {
3427
3425
  4: 5104,
3428
3426
  5: 5105,
3429
3427
  6: 5106
3430
- }, Tt = /* @__PURE__ */ I(
3428
+ }, bt = /* @__PURE__ */ I(
3431
3429
  function a(o) {
3432
3430
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
3433
3431
  errorType: "",
@@ -3469,23 +3467,23 @@ var $i = {
3469
3467
  return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
3470
3468
  }
3471
3469
  }
3472
- ), de = "play", mi = "playing", $e = "ended", ot = "pause", pt = "error", Rt = "seeking", Ie = "seeked", he = "timeupdate", vt = "waiting", Se = "canplay", na = "canplaythrough", He = "durationchange", On = "volumechange", Pe = "loadeddata", ra = "loadedmetadata", Rn = "ratechange", Mn = "progress", yi = "loadstart", Ke = "emptied", sa = "stalled", oa = "suspend", aa = "abort", la = "bufferedChange", _i = "focus", Fn = "blur", Ci = "ready", Nn = "urlNull", We = "autoplay_started", ki = "autoplay_was_prevented", Mt = "complete", Et = "replay", wi = "destroy", Ft = "urlchange", ui = "download_speed_change", Bn = "leaveplayer", Hn = "enterplayer", Un = "loading", Te = "fullscreen_change", St = "cssFullscreen_change", xt = "mini_state_change", bi = "definition_change", ua = "before_definition_change", ci = "after_definition_change", ca = "SEI_PARSED", fa = "retry", Ne = "video_resize", fi = "pip_change", zn = "rotate", Vn = "screenShot", It = "playnext", jn = "shortcut", Wn = "xglog", Pt = "user_action", Nt = "reset", Gn = "source_error", $n = "source_success", ha = "switch_subtitle", Kn = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], Yn = {
3470
+ ), de = "play", mi = "playing", $e = "ended", ot = "pause", gt = "error", Rt = "seeking", Ie = "seeked", he = "timeupdate", pt = "waiting", Se = "canplay", ia = "canplaythrough", He = "durationchange", On = "volumechange", Pe = "loadeddata", na = "loadedmetadata", Rn = "ratechange", Mn = "progress", yi = "loadstart", Ke = "emptied", ra = "stalled", sa = "suspend", oa = "abort", aa = "bufferedChange", _i = "focus", Fn = "blur", Ci = "ready", Nn = "urlNull", We = "autoplay_started", ki = "autoplay_was_prevented", Mt = "complete", Tt = "replay", wi = "destroy", Ft = "urlchange", ui = "download_speed_change", Bn = "leaveplayer", Hn = "enterplayer", Un = "loading", Te = "fullscreen_change", Et = "cssFullscreen_change", St = "mini_state_change", bi = "definition_change", la = "before_definition_change", ci = "after_definition_change", ua = "SEI_PARSED", ca = "retry", Ne = "video_resize", fi = "pip_change", zn = "rotate", Vn = "screenShot", xt = "playnext", jn = "shortcut", Wn = "xglog", It = "user_action", Nt = "reset", Gn = "source_error", $n = "source_success", fa = "switch_subtitle", Kn = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], Yn = {
3473
3471
  STATS_INFO: "stats_info",
3474
3472
  STATS_DOWNLOAD: "stats_download",
3475
3473
  STATS_RESET: "stats_reset"
3476
3474
  }, Xn = "fps_stuck";
3477
- const da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3475
+ const ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3478
3476
  __proto__: null,
3479
- ABORT: aa,
3477
+ ABORT: oa,
3480
3478
  AFTER_DEFINITION_CHANGE: ci,
3481
3479
  AUTOPLAY_PREVENTED: ki,
3482
3480
  AUTOPLAY_STARTED: We,
3483
- BEFORE_DEFINITION_CHANGE: ua,
3484
- BUFFER_CHANGE: la,
3481
+ BEFORE_DEFINITION_CHANGE: la,
3482
+ BUFFER_CHANGE: aa,
3485
3483
  CANPLAY: Se,
3486
- CANPLAY_THROUGH: na,
3484
+ CANPLAY_THROUGH: ia,
3487
3485
  COMPLETE: Mt,
3488
- CSS_FULLSCREEN_CHANGE: St,
3486
+ CSS_FULLSCREEN_CHANGE: Et,
3489
3487
  DEFINITION_CHANGE: bi,
3490
3488
  DESTROY: wi,
3491
3489
  DOWNLOAD_SPEED_CHANGE: ui,
@@ -3493,54 +3491,54 @@ const da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3493
3491
  EMPTIED: Ke,
3494
3492
  ENDED: $e,
3495
3493
  ENTER_PLAYER: Hn,
3496
- ERROR: pt,
3494
+ ERROR: gt,
3497
3495
  FPS_STUCK: Xn,
3498
3496
  FULLSCREEN_CHANGE: Te,
3499
3497
  LEAVE_PLAYER: Bn,
3500
3498
  LOADED_DATA: Pe,
3501
- LOADED_METADATA: ra,
3499
+ LOADED_METADATA: na,
3502
3500
  LOADING: Un,
3503
3501
  LOAD_START: yi,
3504
- MINI_STATE_CHANGE: xt,
3502
+ MINI_STATE_CHANGE: St,
3505
3503
  PAUSE: ot,
3506
3504
  PIP_CHANGE: fi,
3507
3505
  PLAY: de,
3508
3506
  PLAYER_BLUR: Fn,
3509
3507
  PLAYER_FOCUS: _i,
3510
3508
  PLAYING: mi,
3511
- PLAYNEXT: It,
3509
+ PLAYNEXT: xt,
3512
3510
  PROGRESS: Mn,
3513
3511
  RATE_CHANGE: Rn,
3514
3512
  READY: Ci,
3515
- REPLAY: Et,
3513
+ REPLAY: Tt,
3516
3514
  RESET: Nt,
3517
- RETRY: fa,
3515
+ RETRY: ca,
3518
3516
  ROTATE: zn,
3519
3517
  SCREEN_SHOT: Vn,
3520
3518
  SEEKED: Ie,
3521
3519
  SEEKING: Rt,
3522
- SEI_PARSED: ca,
3520
+ SEI_PARSED: ua,
3523
3521
  SHORTCUT: jn,
3524
3522
  SOURCE_ERROR: Gn,
3525
3523
  SOURCE_SUCCESS: $n,
3526
- STALLED: sa,
3524
+ STALLED: ra,
3527
3525
  STATS_EVENTS: Yn,
3528
- SUSPEND: oa,
3529
- SWITCH_SUBTITLE: ha,
3526
+ SUSPEND: sa,
3527
+ SWITCH_SUBTITLE: fa,
3530
3528
  TIME_UPDATE: he,
3531
3529
  URL_CHANGE: Ft,
3532
3530
  URL_NULL: Nn,
3533
- USER_ACTION: Pt,
3531
+ USER_ACTION: It,
3534
3532
  VIDEO_EVENTS: Kn,
3535
3533
  VIDEO_RESIZE: Ne,
3536
3534
  VOLUME_CHANGE: On,
3537
- WAITING: vt,
3535
+ WAITING: pt,
3538
3536
  XGLOG: Wn
3539
3537
  }, Symbol.toStringTag, { value: "Module" }));
3540
3538
  function Wt(a, o) {
3541
3539
  !this || !this.emit || (a === "error" ? this.errorHandler(a, o.error) : this.emit(a, o));
3542
3540
  }
3543
- function ga(a, o) {
3541
+ function da(a, o) {
3544
3542
  return function(r, t) {
3545
3543
  var e = {
3546
3544
  player: o,
@@ -3575,7 +3573,7 @@ function ga(a, o) {
3575
3573
  Wt.call(o, a, e);
3576
3574
  };
3577
3575
  }
3578
- var pa = /* @__PURE__ */ function(a) {
3576
+ var ga = /* @__PURE__ */ function(a) {
3579
3577
  L(r, a);
3580
3578
  var o = A(r);
3581
3579
  function r(t) {
@@ -3619,7 +3617,7 @@ var pa = /* @__PURE__ */ function(a) {
3619
3617
  var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.media;
3620
3618
  this._evHandlers || (this._evHandlers = Kn.map(function(n) {
3621
3619
  var s = "on".concat(n.charAt(0).toUpperCase()).concat(n.slice(1));
3622
- return typeof e[s] == "function" && e.on(n, e[s]), _({}, n, ga(n, e));
3620
+ return typeof e[s] == "function" && e.on(n, e[s]), _({}, n, da(n, e));
3623
3621
  })), this._evHandlers.forEach(function(n) {
3624
3622
  var s = Object.keys(n)[0];
3625
3623
  i.addEventListener(s, n[s], !1);
@@ -3671,7 +3669,7 @@ var pa = /* @__PURE__ */ function(a) {
3671
3669
  l ? l.error(h, p) : n.errorHandler("error", p);
3672
3670
  }
3673
3671
  var g = Ki[4];
3674
- n.emit(Gn, new Tt(n, {
3672
+ n.emit(Gn, new bt(n, {
3675
3673
  errorType: g,
3676
3674
  errorCode: 4,
3677
3675
  errorMessage: "sources_load_error",
@@ -3708,7 +3706,7 @@ var pa = /* @__PURE__ */ function(a) {
3708
3706
  this.media.currentSrc || (l = "empty_src", n = {
3709
3707
  code: 6,
3710
3708
  message: l
3711
- }), this.emit(e, new Tt(this, {
3709
+ }), this.emit(e, new bt(this, {
3712
3710
  errorType: s,
3713
3711
  errorCode: n.code,
3714
3712
  errorMessage: n.message || "",
@@ -3929,7 +3927,7 @@ var pa = /* @__PURE__ */ function(a) {
3929
3927
  },
3930
3928
  set: function(e) {
3931
3929
  if (this.media) {
3932
- if (this.emit(Ft, e), this.emit(vt), this._currentTime = 0, this._duration = 0, f.isMSE(this.media)) {
3930
+ if (this.emit(Ft, e), this.emit(pt), this._currentTime = 0, this._duration = 0, f.isMSE(this.media)) {
3933
3931
  this.onWaiting();
3934
3932
  return;
3935
3933
  }
@@ -3993,7 +3991,7 @@ var pa = /* @__PURE__ */ function(a) {
3993
3991
  M(O(r.prototype), "removeAllListeners", this).call(this);
3994
3992
  }
3995
3993
  }]), r;
3996
- }(An), va = /* @__PURE__ */ function() {
3994
+ }(An), pa = /* @__PURE__ */ function() {
3997
3995
  function a() {
3998
3996
  var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
3999
3997
  name: "xgplayer",
@@ -4072,7 +4070,7 @@ var pa = /* @__PURE__ */ function(a) {
4072
4070
  }
4073
4071
  }]), a;
4074
4072
  }(), Xi = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], qi = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], Zi = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], je = "data-xgplayerid";
4075
- function yt(a, o, r) {
4073
+ function mt(a, o, r) {
4076
4074
  for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
4077
4075
  e[i - 3] = arguments[i];
4078
4076
  var n = o.call.apply(o, [a].concat(e));
@@ -4082,7 +4080,7 @@ function yt(a, o, r) {
4082
4080
  r.call.apply(r, [a].concat(l));
4083
4081
  }) : r.call.apply(r, [a].concat(e)));
4084
4082
  }
4085
- function Lt(a, o) {
4083
+ function Pt(a, o) {
4086
4084
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
4087
4085
  pre: null,
4088
4086
  next: null
@@ -4100,23 +4098,23 @@ function Lt(a, o) {
4100
4098
  try {
4101
4099
  var n, s = (n = this.__hooks[a]).call.apply(n, [this, this].concat(Array.prototype.slice.call(arguments)));
4102
4100
  s ? s.then ? s.then(function(l) {
4103
- l !== !1 && yt.apply(void 0, [e, o, r.next].concat(me(t)));
4101
+ l !== !1 && mt.apply(void 0, [e, o, r.next].concat(me(t)));
4104
4102
  }).catch(function(l) {
4105
4103
  throw l;
4106
- }) : yt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments))) : s === void 0 && yt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
4104
+ }) : mt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments))) : s === void 0 && mt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
4107
4105
  } catch (l) {
4108
4106
  throw l.message = "[pluginName: ".concat(this.pluginName, ":").concat(a, "] >> ").concat(l.message), l;
4109
4107
  }
4110
4108
  else
4111
- yt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
4109
+ mt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
4112
4110
  }).bind(this);
4113
4111
  }
4114
- function At(a, o) {
4112
+ function Lt(a, o) {
4115
4113
  var r = this.__hooks;
4116
4114
  if (r)
4117
4115
  return r.hasOwnProperty(a) ? (r && (r[a] = o), !0) : (console.warn("has no supported hook which name [".concat(a, "]")), !1);
4118
4116
  }
4119
- function Dt(a, o) {
4117
+ function At(a, o) {
4120
4118
  var r = this.__hooks;
4121
4119
  r && delete r[a];
4122
4120
  }
@@ -4301,21 +4299,21 @@ var Be = /* @__PURE__ */ function() {
4301
4299
  }, {
4302
4300
  key: "hook",
4303
4301
  value: function(r, t) {
4304
- return Lt.call.apply(Lt, [this].concat(Array.prototype.slice.call(arguments)));
4302
+ return Pt.call.apply(Pt, [this].concat(Array.prototype.slice.call(arguments)));
4305
4303
  }
4306
4304
  }, {
4307
4305
  key: "useHooks",
4308
4306
  value: function(r, t) {
4309
4307
  for (var e = arguments.length, i = new Array(e > 2 ? e - 2 : 0), n = 2; n < e; n++)
4310
4308
  i[n - 2] = arguments[n];
4311
- return At.call.apply(At, [this].concat(Array.prototype.slice.call(arguments)));
4309
+ return Lt.call.apply(Lt, [this].concat(Array.prototype.slice.call(arguments)));
4312
4310
  }
4313
4311
  }, {
4314
4312
  key: "removeHooks",
4315
4313
  value: function(r, t) {
4316
4314
  for (var e = arguments.length, i = new Array(e > 2 ? e - 2 : 0), n = 2; n < e; n++)
4317
4315
  i[n - 2] = arguments[n];
4318
- return Dt.call.apply(Dt, [this].concat(Array.prototype.slice.call(arguments)));
4316
+ return At.call.apply(At, [this].concat(Array.prototype.slice.call(arguments)));
4319
4317
  }
4320
4318
  }, {
4321
4319
  key: "registerPlugin",
@@ -4357,40 +4355,40 @@ var Be = /* @__PURE__ */ function() {
4357
4355
  return "pluginName";
4358
4356
  }
4359
4357
  }]), a;
4360
- }(), ma = 9;
4358
+ }(), va = 9;
4361
4359
  if (typeof Element < "u" && !Element.prototype.matches) {
4362
4360
  var qe = Element.prototype;
4363
4361
  qe.matches = qe.matchesSelector || qe.mozMatchesSelector || qe.msMatchesSelector || qe.oMatchesSelector || qe.webkitMatchesSelector;
4364
4362
  }
4365
- function ya(a, o) {
4366
- for (; a && a.nodeType !== ma; ) {
4363
+ function ma(a, o) {
4364
+ for (; a && a.nodeType !== va; ) {
4367
4365
  if (typeof a.matches == "function" && a.matches(o))
4368
4366
  return a;
4369
4367
  a = a.parentNode;
4370
4368
  }
4371
4369
  }
4372
- var _a = ya, Ca = _a;
4370
+ var ya = ma, _a = ya;
4373
4371
  function $t(a, o, r, t, e) {
4374
- var i = wa.apply(this, arguments);
4372
+ var i = ka.apply(this, arguments);
4375
4373
  return a.addEventListener(r, i, e), {
4376
4374
  destroy: function() {
4377
4375
  a.removeEventListener(r, i, e);
4378
4376
  }
4379
4377
  };
4380
4378
  }
4381
- function ka(a, o, r, t, e) {
4379
+ function Ca(a, o, r, t, e) {
4382
4380
  return typeof a.addEventListener == "function" ? $t.apply(null, arguments) : typeof r == "function" ? $t.bind(null, document).apply(null, arguments) : (typeof a == "string" && (a = document.querySelectorAll(a)), Array.prototype.map.call(a, function(i) {
4383
4381
  return $t(i, o, r, t, e);
4384
4382
  }));
4385
4383
  }
4386
- function wa(a, o, r, t) {
4384
+ function ka(a, o, r, t) {
4387
4385
  return function(e) {
4388
- e.delegateTarget = Ca(e.target, o), e.delegateTarget && t.call(a, e);
4386
+ e.delegateTarget = _a(e.target, o), e.delegateTarget && t.call(a, e);
4389
4387
  };
4390
4388
  }
4391
- var ba = ka;
4392
- const en = /* @__PURE__ */ gi(ba);
4393
- var Ta = {
4389
+ var wa = Ca;
4390
+ const en = /* @__PURE__ */ gi(wa);
4391
+ var ba = {
4394
4392
  CONTROLS: "controls",
4395
4393
  ROOT: "root"
4396
4394
  }, $ = {
@@ -4410,10 +4408,10 @@ var Ta = {
4410
4408
  function Kt(a) {
4411
4409
  return a ? a.indexOf && /^(?:http|data:|\/)/.test(a) : !1;
4412
4410
  }
4413
- function Ea(a, o) {
4411
+ function Ta(a, o) {
4414
4412
  return se(a) === "object" && a.class && typeof a.class == "string" ? "".concat(o, " ").concat(a.class) : o;
4415
4413
  }
4416
- function Sa(a, o) {
4414
+ function Ea(a, o) {
4417
4415
  return se(a) === "object" && a.attr && se(a.attr) === "object" && Object.keys(a.attr).map(function(r) {
4418
4416
  o[r] = a.attr[r];
4419
4417
  }), o;
@@ -4436,14 +4434,14 @@ function nn(a, o) {
4436
4434
  }
4437
4435
  return typeof a == "string" ? f.createDomFromHtml(a, t, r) : (H.logWarn("warn>>icons.".concat(o, " in config of plugin named [").concat(e, "] is invalid")), null);
4438
4436
  }
4439
- function xa(a, o) {
4437
+ function Sa(a, o) {
4440
4438
  var r = o.config.icons || o.playerConfig.icons;
4441
4439
  Object.keys(a).map(function(t) {
4442
4440
  var e = a[t], i = e && e.class ? e.class : "", n = e && e.attr ? e.attr : {}, s = null;
4443
- r && r[t] && (i = Ea(r[t], i), n = Sa(r[t], n), s = nn(r[t], t, i, n, o.pluginName)), !s && e && (s = nn(e.icon ? e.icon : e, n, i, {}, o.pluginName)), o.icons[t] = s;
4441
+ r && r[t] && (i = Ta(r[t], i), n = Ea(r[t], n), s = nn(r[t], t, i, n, o.pluginName)), !s && e && (s = nn(e.icon ? e.icon : e, n, i, {}, o.pluginName)), o.icons[t] = s;
4444
4442
  });
4445
4443
  }
4446
- function Ia(a, o) {
4444
+ function xa(a, o) {
4447
4445
  Object.keys(a).map(function(r) {
4448
4446
  Object.defineProperty(o.langText, r, {
4449
4447
  get: function() {
@@ -4467,9 +4465,9 @@ var j = /* @__PURE__ */ function(a) {
4467
4465
  var i = e.root, n = null;
4468
4466
  this.icons = {}, this.root = null, this.parent = null;
4469
4467
  var s = this.registerIcons() || {};
4470
- xa(s, this), this.langText = {};
4468
+ Sa(s, this), this.langText = {};
4471
4469
  var l = this.registerLanguageTexts() || {};
4472
- Ia(l, this);
4470
+ xa(l, this);
4473
4471
  var u = "";
4474
4472
  try {
4475
4473
  u = this.render();
@@ -4738,7 +4736,7 @@ var j = /* @__PURE__ */ function(a) {
4738
4736
  }, {
4739
4737
  key: "ROOT_TYPES",
4740
4738
  get: function() {
4741
- return Ta;
4739
+ return ba;
4742
4740
  }
4743
4741
  }, {
4744
4742
  key: "POSITIONS",
@@ -4746,7 +4744,7 @@ var j = /* @__PURE__ */ function(a) {
4746
4744
  return $;
4747
4745
  }
4748
4746
  }]), r;
4749
- }(Be), Pa = /* @__PURE__ */ function() {
4747
+ }(Be), Ia = /* @__PURE__ */ function() {
4750
4748
  function a() {
4751
4749
  var o = this;
4752
4750
  if (x(this, a), _(this, "__trigger", function(r) {
@@ -4756,7 +4754,7 @@ var j = /* @__PURE__ */ function(a) {
4756
4754
  o.__runHandler(r[e].target);
4757
4755
  }), this.__handlers = [], this.timeStamp = 0, this.observer = null, !!window.ResizeObserver)
4758
4756
  try {
4759
- this.observer = new window.ResizeObserver(Qo(this.__trigger, 100, {
4757
+ this.observer = new window.ResizeObserver(Jo(this.__trigger, 100, {
4760
4758
  trailing: !0
4761
4759
  })), this.timeStamp = (/* @__PURE__ */ new Date()).getTime();
4762
4760
  } catch (r) {
@@ -4811,17 +4809,17 @@ var j = /* @__PURE__ */ function(a) {
4811
4809
  }
4812
4810
  }]), a;
4813
4811
  }(), ct = null;
4814
- function La(a, o) {
4815
- return ct || (ct = new Pa()), ct.addObserver(a, o), ct;
4812
+ function Pa(a, o) {
4813
+ return ct || (ct = new Ia()), ct.addObserver(a, o), ct;
4816
4814
  }
4817
- function Aa(a, o) {
4815
+ function La(a, o) {
4818
4816
  ct.unObserver(a, o);
4819
4817
  }
4820
4818
  var ie = {
4821
4819
  pluginGroup: {},
4822
4820
  init: function(o) {
4823
4821
  var r = o._pluginInfoId;
4824
- r || (r = (/* @__PURE__ */ new Date()).getTime(), o._pluginInfoId = r), !o.config.closeResizeObserver && La(o.root, function() {
4822
+ r || (r = (/* @__PURE__ */ new Date()).getTime(), o._pluginInfoId = r), !o.config.closeResizeObserver && Pa(o.root, function() {
4825
4823
  o.resize();
4826
4824
  }), this.pluginGroup[r] = {
4827
4825
  _originalOptions: o.config || {},
@@ -5007,7 +5005,7 @@ var ie = {
5007
5005
  destroy: function(o) {
5008
5006
  var r = o._pluginInfoId;
5009
5007
  if (this.pluginGroup[r]) {
5010
- Aa(o.root);
5008
+ La(o.root);
5011
5009
  for (var t = this.pluginGroup[r]._plugins, e = 0, i = Object.keys(t); e < i.length; e++) {
5012
5010
  var n = i[e];
5013
5011
  this.unRegister(r, n);
@@ -5093,7 +5091,7 @@ function rn() {
5093
5091
  ignores: [],
5094
5092
  whitelist: [],
5095
5093
  inactive: 3e3,
5096
- lang: ea(),
5094
+ lang: Qo(),
5097
5095
  controls: !0,
5098
5096
  marginControls: !1,
5099
5097
  fullscreenTarget: null,
@@ -5129,7 +5127,7 @@ function rn() {
5129
5127
  }
5130
5128
  };
5131
5129
  }
5132
- var Da = function(o, r) {
5130
+ var Aa = function(o, r) {
5133
5131
  var t, e, i;
5134
5132
  r.preset && r.options ? i = new r.preset(r.options, o.config) : i = new r({}, o.config);
5135
5133
  var n = i, s = n.plugins, l = s === void 0 ? [] : s, u = n.ignores, c = u === void 0 ? [] : u, h = n.icons, d = h === void 0 ? {} : h, p = n.i18n, g = p === void 0 ? [] : p;
@@ -5138,7 +5136,7 @@ var Da = function(o, r) {
5138
5136
  });
5139
5137
  var m = o.config.i18n || [];
5140
5138
  g.push.apply(g, me(m)), o.config.i18n = g;
5141
- }, Oa = /* @__PURE__ */ function(a) {
5139
+ }, Da = /* @__PURE__ */ function(a) {
5142
5140
  L(r, a);
5143
5141
  var o = A(r);
5144
5142
  function r() {
@@ -5172,7 +5170,7 @@ var Da = function(o, r) {
5172
5170
  };
5173
5171
  Object.keys(u).map(function(h) {
5174
5172
  e.root.style[h] = u[h];
5175
- }), 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(xt, function(h) {
5173
+ }), 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(St, function(h) {
5176
5174
  h ? f.addClass(e.root, "mini-controls") : f.removeClass(e.root, "mini-controls");
5177
5175
  });
5178
5176
  var c = this.playerConfig.isMobileSimulateMode;
@@ -5299,7 +5297,7 @@ var Da = function(o, r) {
5299
5297
  };
5300
5298
  }
5301
5299
  }]), r;
5302
- }(j), Ra = {
5300
+ }(j), Oa = {
5303
5301
  LANG: "en",
5304
5302
  TEXT: {
5305
5303
  ERROR_TYPES: {
@@ -5394,7 +5392,7 @@ function Jn() {
5394
5392
  fe.textKeys[a] = a;
5395
5393
  });
5396
5394
  }
5397
- function Ma(a, o) {
5395
+ function Ra(a, o) {
5398
5396
  var r = [];
5399
5397
  if (o || (o = fe), !!o.lang) {
5400
5398
  f.typeOf(a) !== "Array" ? r = Object.keys(a).map(function(i) {
@@ -5417,7 +5415,7 @@ function Ti(a, o) {
5417
5415
  r === "zh" && (r = "zh-cn"), o.lang[r] ? dt(o.lang[r], t) : (o.langKeys.push(r), o.lang[r] = t), Jn();
5418
5416
  }
5419
5417
  }
5420
- function Fa(a) {
5418
+ function Ma(a) {
5421
5419
  var o, r = {
5422
5420
  lang: {},
5423
5421
  langKeys: [],
@@ -5426,7 +5424,7 @@ function Fa(a) {
5426
5424
  };
5427
5425
  return dt(r.lang, fe.lang), (o = r.langKeys).push.apply(o, me(fe.langKeys)), dt(r.textKeys, fe.textKeys), r;
5428
5426
  }
5429
- Ti(Ra);
5427
+ Ti(Oa);
5430
5428
  var rt = {
5431
5429
  get textKeys() {
5432
5430
  return fe.textKeys;
@@ -5440,9 +5438,9 @@ var rt = {
5440
5438
  a[o] = fe.lang[o];
5441
5439
  }), fe.lang["zh-cn"] && (a.zh = fe.lang["zh-cn"] || {}), a;
5442
5440
  },
5443
- extend: Ma,
5441
+ extend: Ra,
5444
5442
  use: Ti,
5445
- init: Fa
5443
+ init: Ma
5446
5444
  }, V = {
5447
5445
  INITIAL: 1,
5448
5446
  READY: 2,
@@ -5539,7 +5537,7 @@ var rt = {
5539
5537
  }
5540
5538
  }]), r;
5541
5539
  }(Ln.EventEmitter);
5542
- function Na(a) {
5540
+ function Fa(a) {
5543
5541
  for (var o = Object.keys(oe), r = 0; r < o.length; r++) {
5544
5542
  var t = oe[o[r]];
5545
5543
  if (t.root === a)
@@ -5547,7 +5545,7 @@ function Na(a) {
5547
5545
  }
5548
5546
  return null;
5549
5547
  }
5550
- var Ba = ["play", "pause", "replay", "retry"], on = 0, an = 0, Oe = null, Bt = /* @__PURE__ */ function(a) {
5548
+ var Na = ["play", "pause", "replay", "retry"], on = 0, an = 0, Oe = null, Bt = /* @__PURE__ */ function(a) {
5551
5549
  L(r, a);
5552
5550
  var o = A(r);
5553
5551
  function r(t) {
@@ -5565,7 +5563,7 @@ var Ba = ["play", "pause", "replay", "retry"], on = 0, an = 0, Oe = null, Bt = /
5565
5563
  e.resize();
5566
5564
  }, 100);
5567
5565
  }, k = f.getFullScreenEl();
5568
- e._fullActionFrom ? e._fullActionFrom = "" : e.emit(Pt, {
5566
+ e._fullActionFrom ? e._fullActionFrom = "" : e.emit(It, {
5569
5567
  eventType: "system",
5570
5568
  action: "switch_fullscreen",
5571
5569
  pluginName: "player",
@@ -5577,7 +5575,7 @@ var Ba = ["play", "pause", "replay", "retry"], on = 0, an = 0, Oe = null, Bt = /
5577
5575
  to: !1
5578
5576
  }]
5579
5577
  });
5580
- var b = ta(k, e.playerId, je);
5578
+ var b = ea(k, e.playerId, je);
5581
5579
  if (m || k && (k === e._fullscreenEl || b))
5582
5580
  y(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, k, C.FULLSCREEN), e.emit(Te, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
5583
5581
  else if (e.fullscreen) {
@@ -5597,7 +5595,7 @@ var Ba = ["play", "pause", "replay", "retry"], on = 0, an = 0, Oe = null, Bt = /
5597
5595
  e._fullscreenEl = e.media, e.onFullscreenChange(g, !0);
5598
5596
  }), _(v(e), "_onWebkitendfullscreen", function(g) {
5599
5597
  e.onFullscreenChange(g, !1);
5600
- }), qn(v(e), Ba), e.config = i, e._pluginInfoId = f.generateSessionId(), Xo(v(e));
5598
+ }), qn(v(e), Na), e.config = i, e._pluginInfoId = f.generateSessionId(), Yo(v(e));
5601
5599
  var n = e.constructor.defaultPreset;
5602
5600
  if (e.config.presets.length) {
5603
5601
  var s = e.config.presets.indexOf("default");
@@ -5626,7 +5624,7 @@ var Ba = ["play", "pause", "replay", "retry"], on = 0, an = 0, Oe = null, Bt = /
5626
5624
  }, e._offsetInfo = {
5627
5625
  currentTime: -1,
5628
5626
  duration: 0
5629
- }, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = rt.init(e._pluginInfoId), B.os.isAndroid && B.osVersion > 0 && B.osVersion < 6 && (e.config.autoplay = !1), e.database = new va(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
5627
+ }, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = rt.init(e._pluginInfoId), B.os.isAndroid && B.osVersion > 0 && B.osVersion < 6 && (e.config.autoplay = !1), e.database = new pa(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
5630
5628
  isActiveLocked: !1
5631
5629
  }, e.instManager = Oe;
5632
5630
  var l = e._initDOM();
@@ -5652,13 +5650,13 @@ var Ba = ["play", "pause", "replay", "retry"], on = 0, an = 0, Oe = null, Bt = /
5652
5650
  if (n && n.nodeType === 1)
5653
5651
  this.root = n;
5654
5652
  else
5655
- return this.emit(pt, new Tt("use", this.config.vid, {
5653
+ return this.emit(gt, new bt("use", this.config.vid, {
5656
5654
  line: 32,
5657
5655
  handle: "Constructor",
5658
5656
  msg: "container id can't be empty"
5659
5657
  })), console.error("this.confg.id or this.config.el can't be empty"), !1;
5660
5658
  }
5661
- var s = Na(this.root);
5659
+ var s = Fa(this.root);
5662
5660
  s && (H.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(je, this.playerId), (e = Oe) === null || e === void 0 || e.add(this), ie.init(this), this._initBaseDoms();
5663
5661
  var l = this.constructor.XgVideoProxy;
5664
5662
  if (l && this.mediaConfig.mediaType === l.mediaType) {
@@ -5668,7 +5666,7 @@ var Ba = ["play", "pause", "replay", "retry"], on = 0, an = 0, Oe = null, Bt = /
5668
5666
  this.attachVideoEvents(c), this.media = c;
5669
5667
  }
5670
5668
  if (this.media.setAttribute(je, this.playerId), this.config.controls) {
5671
- var h = this.config.controls.root || null, d = ie.register(this, Oa, {
5669
+ var h = this.config.controls.root || null, d = ie.register(this, Da, {
5672
5670
  root: h
5673
5671
  });
5674
5672
  this.controls = d;
@@ -5776,7 +5774,7 @@ var Ba = ["play", "pause", "replay", "retry"], on = 0, an = 0, Oe = null, Bt = /
5776
5774
  value: function() {
5777
5775
  var e = this;
5778
5776
  this.config.presets.forEach(function(i) {
5779
- Da(e, i);
5777
+ Aa(e, i);
5780
5778
  });
5781
5779
  }
5782
5780
  }, {
@@ -6076,7 +6074,7 @@ var Ba = ["play", "pause", "replay", "retry"], on = 0, an = 0, Oe = null, Bt = /
6076
6074
  i && i.catch && i.catch(function(n) {
6077
6075
  console.log(n);
6078
6076
  });
6079
- }), e.emit(Et), e.onPlay();
6077
+ }), e.emit(Tt), e.onPlay();
6080
6078
  });
6081
6079
  }
6082
6080
  }, {
@@ -6155,7 +6153,7 @@ var Ba = ["play", "pause", "replay", "retry"], on = 0, an = 0, Oe = null, Bt = /
6155
6153
  var i = e ? "".concat(C.INNER_FULLSCREEN, " ").concat(C.CSS_FULLSCREEN) : C.CSS_FULLSCREEN;
6156
6154
  this.changeFullStyle(this.root, e, i);
6157
6155
  var n = this.config.fullscreen, s = n === void 0 ? {} : n, l = s.useCssFullscreen === !0 || typeof s.useCssFullscreen == "function" && s.useCssFullscreen();
6158
- l && (this.fullscreen = !0, this.emit(Te, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(St, !0);
6156
+ l && (this.fullscreen = !0, this.emit(Te, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(Et, !0);
6159
6157
  }
6160
6158
  }, {
6161
6159
  key: "exitCssFullscreen",
@@ -6167,7 +6165,7 @@ var Ba = ["play", "pause", "replay", "retry"], on = 0, an = 0, Oe = null, Bt = /
6167
6165
  var i = this.config.fullscreen, n = i === void 0 ? {} : i, s = n.useCssFullscreen === !0 || typeof n.useCssFullscreen == "function" && n.useCssFullscreen();
6168
6166
  s ? (this.recoverFullStyle(this.root, this._cssfullscreenEl, e), this.fullscreen = !1, this.emit(Te, !1)) : this.removeClass(e);
6169
6167
  }
6170
- this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(St, !1);
6168
+ this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(Et, !1);
6171
6169
  }
6172
6170
  }, {
6173
6171
  key: "getRotateFullscreen",
@@ -6332,7 +6330,7 @@ var Ba = ["play", "pause", "replay", "retry"], on = 0, an = 0, Oe = null, Bt = /
6332
6330
  value: function(e, i, n) {
6333
6331
  if (!(!this.media || !i || !e)) {
6334
6332
  var s = f.typeOf(e) === "String" ? e : e.type || "";
6335
- n.props && f.typeOf(n.props) !== "Array" && (n.props = [n.props]), this.emit(Pt, Z({
6333
+ n.props && f.typeOf(n.props) !== "Array" && (n.props = [n.props]), this.emit(It, Z({
6336
6334
  eventType: s,
6337
6335
  action: i,
6338
6336
  currentTime: this.currentTime,
@@ -6418,7 +6416,7 @@ var Ba = ["play", "pause", "replay", "retry"], on = 0, an = 0, Oe = null, Bt = /
6418
6416
  value: function(e) {
6419
6417
  var i = this;
6420
6418
  this.resetState(), this.setConfig(e), this._currentTime = 0, this._duration = 0, Ee(this, "playnext", function() {
6421
- i.start(), i.emit(It, e);
6419
+ i.start(), i.emit(xt, e);
6422
6420
  });
6423
6421
  }
6424
6422
  }, {
@@ -6657,17 +6655,17 @@ var Ba = ["play", "pause", "replay", "retry"], on = 0, an = 0, Oe = null, Bt = /
6657
6655
  }, {
6658
6656
  key: "hook",
6659
6657
  value: function(e, i) {
6660
- return Lt.call.apply(Lt, [this].concat(Array.prototype.slice.call(arguments)));
6658
+ return Pt.call.apply(Pt, [this].concat(Array.prototype.slice.call(arguments)));
6661
6659
  }
6662
6660
  }, {
6663
6661
  key: "useHooks",
6664
6662
  value: function(e, i) {
6665
- return At.call.apply(At, [this].concat(Array.prototype.slice.call(arguments)));
6663
+ return Lt.call.apply(Lt, [this].concat(Array.prototype.slice.call(arguments)));
6666
6664
  }
6667
6665
  }, {
6668
6666
  key: "removeHooks",
6669
6667
  value: function(e, i) {
6670
- return Dt.call.apply(Dt, [this].concat(Array.prototype.slice.call(arguments)));
6668
+ return At.call.apply(At, [this].concat(Array.prototype.slice.call(arguments)));
6671
6669
  }
6672
6670
  }, {
6673
6671
  key: "usePluginHooks",
@@ -6738,7 +6736,7 @@ var Ba = ["play", "pause", "replay", "retry"], on = 0, an = 0, Oe = null, Bt = /
6738
6736
  r.plugins || (r.plugins = {}), r.plugins[e] = i;
6739
6737
  }
6740
6738
  }]), r;
6741
- }(pa);
6739
+ }(ga);
6742
6740
  _(Bt, "defaultPreset", null);
6743
6741
  _(Bt, "XgVideoProxy", null);
6744
6742
  Bt.instManager = Qn.getInstance();
@@ -6753,7 +6751,7 @@ var Re = {
6753
6751
  WAIT_END: "waitingEnd",
6754
6752
  SEEK_START: "seekStart",
6755
6753
  SEEK_END: "seekEnd"
6756
- }, Ha = /* @__PURE__ */ function(a) {
6754
+ }, Ba = /* @__PURE__ */ function(a) {
6757
6755
  L(r, a);
6758
6756
  var o = A(r);
6759
6757
  function r() {
@@ -6816,7 +6814,7 @@ var Re = {
6816
6814
  e.endState("destroy");
6817
6815
  }), this.on(Ft, function() {
6818
6816
  e.endState("urlChange"), H.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
6819
- }), this.on([mi, Se], this._onPlaying), this.on(vt, this._onWaiting), this.on(pt, this._onError), this.on(Nt, function() {
6817
+ }), this.on([mi, Se], this._onPlaying), this.on(pt, this._onWaiting), this.on(gt, this._onError), this.on(Nt, function() {
6820
6818
  H.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
6821
6819
  });
6822
6820
  }
@@ -6904,13 +6902,13 @@ var Re = {
6904
6902
  }
6905
6903
  }]), r;
6906
6904
  }(j);
6907
- function Ua() {
6905
+ function Ha() {
6908
6906
  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">
6909
6907
  <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>
6910
6908
  </svg>
6911
6909
  `, "image/svg+xml").firstChild;
6912
6910
  }
6913
- var za = /* @__PURE__ */ function(a) {
6911
+ var Ua = /* @__PURE__ */ function(a) {
6914
6912
  L(r, a);
6915
6913
  var o = A(r);
6916
6914
  function r() {
@@ -6920,7 +6918,7 @@ var za = /* @__PURE__ */ function(a) {
6920
6918
  key: "registerIcons",
6921
6919
  value: function() {
6922
6920
  return {
6923
- replay: Ua
6921
+ replay: Ha
6924
6922
  };
6925
6923
  }
6926
6924
  }, {
@@ -6993,7 +6991,7 @@ var za = /* @__PURE__ */ function(a) {
6993
6991
  };
6994
6992
  }
6995
6993
  }]), r;
6996
- }(j), Va = /* @__PURE__ */ function(a) {
6994
+ }(j), za = /* @__PURE__ */ function(a) {
6997
6995
  L(r, a);
6998
6996
  var o = A(r);
6999
6997
  function r() {
@@ -7118,7 +7116,7 @@ function Si() {
7118
7116
  `, "image/svg+xml").firstChild;
7119
7117
  }
7120
7118
  var we = {};
7121
- function ja(a, o) {
7119
+ function Va(a, o) {
7122
7120
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
7123
7121
  start: null,
7124
7122
  end: null
@@ -7136,7 +7134,7 @@ function ln(a) {
7136
7134
  window.clearTimeout(we[o].id), delete we[o];
7137
7135
  });
7138
7136
  }
7139
- var Wa = /* @__PURE__ */ function(a) {
7137
+ var ja = /* @__PURE__ */ function(a) {
7140
7138
  L(r, a);
7141
7139
  var o = A(r);
7142
7140
  function r(t) {
@@ -7228,7 +7226,7 @@ var Wa = /* @__PURE__ */ function(a) {
7228
7226
  key: "animate",
7229
7227
  value: function(e) {
7230
7228
  var i = this;
7231
- this._animateId = ja("pauseplay", 400, {
7229
+ this._animateId = Va("pauseplay", 400, {
7232
7230
  start: function() {
7233
7231
  f.addClass(i.root, "interact"), i.show(), i.switchStatus(!0);
7234
7232
  },
@@ -7311,7 +7309,7 @@ var Wa = /* @__PURE__ */ function(a) {
7311
7309
  };
7312
7310
  }
7313
7311
  }]), r;
7314
- }(j), Ga = /* @__PURE__ */ function(a) {
7312
+ }(j), Wa = /* @__PURE__ */ function(a) {
7315
7313
  L(r, a);
7316
7314
  var o = A(r);
7317
7315
  function r() {
@@ -7411,7 +7409,7 @@ function cn(a) {
7411
7409
  return r && o;
7412
7410
  }
7413
7411
  var xi = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], er = xi.length;
7414
- function $a() {
7412
+ function Ga() {
7415
7413
  for (var a = {
7416
7414
  width: 0,
7417
7415
  height: 0,
@@ -7425,15 +7423,15 @@ function $a() {
7425
7423
  }
7426
7424
  return a;
7427
7425
  }
7428
- function Ka(a) {
7426
+ function $a(a) {
7429
7427
  var o = window.getComputedStyle(a);
7430
7428
  return o;
7431
7429
  }
7432
7430
  function fn(a) {
7433
7431
  if (typeof a == "string" && (a = document.querySelector(a)), !(!a || se(a) !== "object" || !a.nodeType)) {
7434
- var o = Ka(a);
7432
+ var o = $a(a);
7435
7433
  if (o.display === "none")
7436
- return $a();
7434
+ return Ga();
7437
7435
  var r = {};
7438
7436
  r.width = a.offsetWidth, r.height = a.offsetHeight;
7439
7437
  for (var t = r.isBorderBox = o.boxSizing === "border-box", e = 0; e < er; e++) {
@@ -7461,7 +7459,7 @@ var qt = {
7461
7459
  mousedown: ["mousemove", "mouseup"],
7462
7460
  touchstart: ["touchmove", "touchend", "touchcancel"],
7463
7461
  pointerdown: ["pointermove", "pointerup", "pointercancel"]
7464
- }, Ya = /* @__PURE__ */ function(a) {
7462
+ }, Ka = /* @__PURE__ */ function(a) {
7465
7463
  L(r, a);
7466
7464
  var o = A(r);
7467
7465
  function r(t) {
@@ -7671,7 +7669,7 @@ var qt = {
7671
7669
  return parseInt(e, 10);
7672
7670
  }
7673
7671
  }]), r;
7674
- }(An), Xa = /* @__PURE__ */ function(a) {
7672
+ }(An), Ya = /* @__PURE__ */ function(a) {
7675
7673
  L(r, a);
7676
7674
  var o = A(r);
7677
7675
  function r(t) {
@@ -7727,7 +7725,7 @@ var qt = {
7727
7725
  i.controls.registerPlugin(un, s, un.pluginName);
7728
7726
  }
7729
7727
  var l = f.checkTouchSupport() ? "touchend" : "click";
7730
- this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new Ya(this.player.root, {
7728
+ this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new Ka(this.player.root, {
7731
7729
  handle: this.root
7732
7730
  })), this.config.isScrollSwitch && window.addEventListener("scroll", this.onScroll);
7733
7731
  }
@@ -7760,7 +7758,7 @@ var qt = {
7760
7758
  var i = this.player, n = this.playerConfig, s = this.config.target || this.player.root;
7761
7759
  this.lastStyle = {}, f.addClass(i.root, "xgplayer-mini"), ["width", "height", "top", "left"].map(function(l) {
7762
7760
  e.lastStyle[l] = s.style[l], s.style[l] = "".concat(e.pos[l], "px");
7763
- }), n.fluid && (s.style["padding-top"] = ""), this.emit(xt, !0), i.isMini = this.isMini = !0;
7761
+ }), n.fluid && (s.style["padding-top"] = ""), this.emit(St, !0), i.isMini = this.isMini = !0;
7764
7762
  }
7765
7763
  }
7766
7764
  }, {
@@ -7772,7 +7770,7 @@ var qt = {
7772
7770
  var i = this.player, n = this.playerConfig, s = this.config.target || this.player.root;
7773
7771
  f.removeClass(i.root, "xgplayer-mini"), this.lastStyle && Object.keys(this.lastStyle).map(function(l) {
7774
7772
  s.style[l] = e.lastStyle[l];
7775
- }), 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(xt, !1), this.isMini = i.isMini = !1;
7773
+ }), 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(St, !1), this.isMini = i.isMini = !1;
7776
7774
  }
7777
7775
  }, {
7778
7776
  key: "destroy",
@@ -7821,7 +7819,7 @@ var qt = {
7821
7819
  };
7822
7820
  }
7823
7821
  }]), r;
7824
- }(j), _t = {
7822
+ }(j), yt = {
7825
7823
  mouseenter: "onMouseEnter",
7826
7824
  mouseleave: "onMouseLeave",
7827
7825
  mousemove: "onMouseMove"
@@ -7895,8 +7893,8 @@ var qt = {
7895
7893
  key: "initEvents",
7896
7894
  value: function() {
7897
7895
  var e = this, i = this.player, n = i.media, s = i.root, l = this.playerConfig.enableContextmenu;
7898
- s && s.addEventListener("click", this.onVideoClick, !1), s && s.addEventListener("dblclick", this.onVideoDblClick, !1), Object.keys(_t).map(function(u) {
7899
- s.addEventListener(u, e[_t[u]], !1);
7896
+ s && s.addEventListener("click", this.onVideoClick, !1), s && s.addEventListener("dblclick", this.onVideoDblClick, !1), Object.keys(yt).map(function(u) {
7897
+ s.addEventListener(u, e[yt[u]], !1);
7900
7898
  }), !l && n && n.addEventListener("contextmenu", this.onContextmenu, !1);
7901
7899
  }
7902
7900
  }, {
@@ -7918,8 +7916,8 @@ var qt = {
7918
7916
  key: "destroy",
7919
7917
  value: function() {
7920
7918
  var e = this, i = this.player, n = i.video, s = i.root;
7921
- 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(_t).map(function(l) {
7922
- s.removeEventListener(l, e[_t[l]], !1);
7919
+ 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(yt).map(function(l) {
7920
+ s.removeEventListener(l, e[yt[l]], !1);
7923
7921
  });
7924
7922
  }
7925
7923
  }], [{
@@ -7941,12 +7939,12 @@ var qt = {
7941
7939
  TOUCH_MOVE: "touchmove",
7942
7940
  TOUCH_START: "touchstart",
7943
7941
  TOUCH_END: "touchend"
7944
- }, qa = {
7942
+ }, Xa = {
7945
7943
  start: "touchstart",
7946
7944
  end: "touchend",
7947
7945
  move: "touchmove",
7948
7946
  cancel: "touchcancel"
7949
- }, Za = {
7947
+ }, qa = {
7950
7948
  start: "mousedown",
7951
7949
  end: "mouseup",
7952
7950
  move: "mousemove",
@@ -7955,7 +7953,7 @@ var qt = {
7955
7953
  function dn(a) {
7956
7954
  return a && a.length > 0 ? a[a.length - 1] : null;
7957
7955
  }
7958
- function Ja() {
7956
+ function Za() {
7959
7957
  return {
7960
7958
  pressDelay: 600,
7961
7959
  dbClickDelay: 200,
@@ -7965,7 +7963,7 @@ function Ja() {
7965
7963
  needPreventDefault: !0
7966
7964
  };
7967
7965
  }
7968
- var Qa = /* @__PURE__ */ function() {
7966
+ var Ja = /* @__PURE__ */ function() {
7969
7967
  function a(o) {
7970
7968
  var r = this, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
7971
7969
  eventType: "touch"
@@ -7986,9 +7984,9 @@ var Qa = /* @__PURE__ */ function() {
7986
7984
  start: !1,
7987
7985
  x: 0,
7988
7986
  y: 0
7989
- }, this.config = Ja(), Object.keys(t).map(function(e) {
7987
+ }, this.config = Za(), Object.keys(t).map(function(e) {
7990
7988
  r.config[e] = t[e];
7991
- }), this.root = o, this.events = t.eventType === "mouse" ? Za : qa, this.pressIntrvalId = null, this.dbIntrvalId = null, this.__handlers = {}, this._initEvent();
7989
+ }), this.root = o, this.events = t.eventType === "mouse" ? qa : Xa, this.pressIntrvalId = null, this.dbIntrvalId = null, this.__handlers = {}, this._initEvent();
7992
7990
  }
7993
7991
  return I(a, [{
7994
7992
  key: "_initEvent",
@@ -8067,7 +8065,7 @@ var Qa = /* @__PURE__ */ function() {
8067
8065
  }
8068
8066
  }]), a;
8069
8067
  }();
8070
- function el() {
8068
+ function Qa() {
8071
8069
  return new DOMParser().parseFromString(`<svg width="20" height="9" viewBox="0 0 8 9" fill="none" xmlns="http://www.w3.org/2000/svg"
8072
8070
  xmlns:xlink="http://www.w3.org/1999/xlink">
8073
8071
  <path opacity="0.54"
@@ -8081,7 +8079,7 @@ var Ze = {
8081
8079
  SEEKING: "seeking",
8082
8080
  PLAYBACK: "playbackrate",
8083
8081
  LIGHT: ""
8084
- }, Qt = ["videoClick", "videoDbClick"], tl = /* @__PURE__ */ function(a) {
8082
+ }, Qt = ["videoClick", "videoDbClick"], el = /* @__PURE__ */ function(a) {
8085
8083
  L(r, a);
8086
8084
  var o = A(r);
8087
8085
  function r(t) {
@@ -8153,7 +8151,7 @@ var Ze = {
8153
8151
  value: function() {
8154
8152
  return {
8155
8153
  seekTipIcon: {
8156
- icon: el,
8154
+ icon: Qa,
8157
8155
  class: "xg-seek-pre"
8158
8156
  }
8159
8157
  };
@@ -8168,7 +8166,7 @@ var Ze = {
8168
8166
  var i = this.playerConfig, n = this.config, s = this.player;
8169
8167
  i.closeVideoDblclick === !0 && (n.closedbClick = !0), this.resetPos(), f.isUndefined(i.disableGesture) || (n.disableGesture = !!i.disableGesture), this.appendChild(".xg-seek-icon", this.icons.seekTipIcon), this.xgMask = f.createDom("xg-mask", "", {}, "xgmask"), s.root.appendChild(this.xgMask), this.initCustomStyle(), this.registerThumbnail();
8170
8168
  var l = this.domEventType === "mouse" ? "mouse" : "touch";
8171
- this.touch = new Qa(this.root, {
8169
+ this.touch = new Ja(this.root, {
8172
8170
  eventType: l,
8173
8171
  needPreventDefault: !this.config.disableGesture
8174
8172
  }), this.root.addEventListener("contextmenu", function(d) {
@@ -8510,7 +8508,7 @@ var Ze = {
8510
8508
  }
8511
8509
  }]), r;
8512
8510
  }(j);
8513
- function il(a) {
8511
+ function tl(a) {
8514
8512
  a.preventDefault(), a.returnValue = !1;
8515
8513
  }
8516
8514
  function gn(a) {
@@ -8759,7 +8757,7 @@ var pn = /* @__PURE__ */ function(a) {
8759
8757
  isPress: n
8760
8758
  }, this.keyCodeMap[s[l]]));
8761
8759
  }
8762
- il(i), i.stopPropagation();
8760
+ tl(i), i.stopPropagation();
8763
8761
  break;
8764
8762
  }
8765
8763
  }
@@ -8801,13 +8799,13 @@ var pn = /* @__PURE__ */ function(a) {
8801
8799
  }
8802
8800
  }]), r;
8803
8801
  }(Be);
8804
- function nl() {
8802
+ function il() {
8805
8803
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">
8806
8804
  <path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>
8807
8805
  </svg>
8808
8806
  `, "image/svg+xml").firstChild;
8809
8807
  }
8810
- var rl = /* @__PURE__ */ function(a) {
8808
+ var nl = /* @__PURE__ */ function(a) {
8811
8809
  L(r, a);
8812
8810
  var o = A(r);
8813
8811
  function r() {
@@ -8817,7 +8815,7 @@ var rl = /* @__PURE__ */ function(a) {
8817
8815
  key: "registerIcons",
8818
8816
  value: function() {
8819
8817
  return {
8820
- loadingIcon: nl
8818
+ loadingIcon: il
8821
8819
  };
8822
8820
  }
8823
8821
  }, {
@@ -8846,7 +8844,7 @@ var rl = /* @__PURE__ */ function(a) {
8846
8844
  };
8847
8845
  }
8848
8846
  }]), r;
8849
- }(j), sl = [{
8847
+ }(j), rl = [{
8850
8848
  tag: "xg-cache",
8851
8849
  className: "xgplayer-progress-cache",
8852
8850
  styleKey: "cachedColor"
@@ -8854,7 +8852,7 @@ var rl = /* @__PURE__ */ function(a) {
8854
8852
  tag: "xg-played",
8855
8853
  className: "xgplayer-progress-played",
8856
8854
  styleKey: "playedColor"
8857
- }], ol = /* @__PURE__ */ function() {
8855
+ }], sl = /* @__PURE__ */ function() {
8858
8856
  function a(o) {
8859
8857
  x(this, a), this.fragments = o.fragments || [], this.fragments.length === 0 && this.fragments.push({
8860
8858
  percent: 1
@@ -9041,7 +9039,7 @@ var rl = /* @__PURE__ */ function(a) {
9041
9039
  var l = f.createDom("xg-inner", "", {
9042
9040
  style: t ? "background:".concat(t, "; flex: ").concat(s.percent) : "flex: ".concat(s.percent)
9043
9041
  }, "".concat(s.isFocus ? n : "", " xgplayer-progress-inner ").concat(i));
9044
- return r.root.appendChild(l), sl.forEach(function(u) {
9042
+ return r.root.appendChild(l), rl.forEach(function(u) {
9045
9043
  l.appendChild(f.createDom(u.tag, "", {
9046
9044
  style: u.styleKey ? "background: ".concat(r.style[u.styleKey], "; width:0;") : "width:0;"
9047
9045
  }, u.className));
@@ -9057,7 +9055,7 @@ var rl = /* @__PURE__ */ function(a) {
9057
9055
  }(), vn = {
9058
9056
  POINT: "inner-focus-point",
9059
9057
  HIGHLIGHT: "inner-focus-highlight"
9060
- }, al = /* @__PURE__ */ function(a) {
9058
+ }, ol = /* @__PURE__ */ function(a) {
9061
9059
  L(r, a);
9062
9060
  var o = A(r);
9063
9061
  function r(t) {
@@ -9187,7 +9185,7 @@ var rl = /* @__PURE__ */ function(a) {
9187
9185
  e.emitUserAction("fragment_focus", "fragment_focus", u);
9188
9186
  }
9189
9187
  });
9190
- this.innerList ? this.innerList.reset(s) : (this.innerList = new ol(s), this.outer.insertBefore(this.innerList.render(), this.outer.children[0]), ["findHightLight", "unHightLight", "setHightLight", "findFragment"].map(function(l) {
9188
+ this.innerList ? this.innerList.reset(s) : (this.innerList = new sl(s), this.outer.insertBefore(this.innerList.render(), this.outer.children[0]), ["findHightLight", "unHightLight", "setHightLight", "findFragment"].map(function(l) {
9191
9189
  e[l] = e.innerList[l].bind(e.innerList);
9192
9190
  }));
9193
9191
  }
@@ -9497,7 +9495,7 @@ var rl = /* @__PURE__ */ function(a) {
9497
9495
  this.unbind("mouseenter", this._onMouseenter), this.unbind("mouseleave", this._onMouseLeave);
9498
9496
  }
9499
9497
  }]), r;
9500
- }(j), ll = /* @__PURE__ */ function(a) {
9498
+ }(j), al = /* @__PURE__ */ function(a) {
9501
9499
  L(r, a);
9502
9500
  var o = A(r);
9503
9501
  function r() {
@@ -9509,7 +9507,7 @@ var rl = /* @__PURE__ */ function(a) {
9509
9507
  var e = this;
9510
9508
  M(O(r.prototype), "afterCreate", this).call(this);
9511
9509
  var i = this.player, n = this.config;
9512
- n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([ot, pt, Ke], function() {
9510
+ n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([ot, gt, Ke], function() {
9513
9511
  e.animate(i.paused);
9514
9512
  }), this.on(de, function() {
9515
9513
  e.animate(i.paused);
@@ -9585,14 +9583,14 @@ var rl = /* @__PURE__ */ function(a) {
9585
9583
  }
9586
9584
  }]), r;
9587
9585
  }(Ye);
9588
- function ul() {
9586
+ function ll() {
9589
9587
  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">
9590
9588
  <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
9591
9589
  <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>
9592
9590
  </g>
9593
9591
  </svg>`, "image/svg+xml").firstChild;
9594
9592
  }
9595
- var cl = /* @__PURE__ */ function(a) {
9593
+ var ul = /* @__PURE__ */ function(a) {
9596
9594
  L(r, a);
9597
9595
  var o = A(r);
9598
9596
  function r() {
@@ -9611,7 +9609,7 @@ var cl = /* @__PURE__ */ function(a) {
9611
9609
  value: function() {
9612
9610
  return {
9613
9611
  screenBack: {
9614
- icon: ul,
9612
+ icon: ll,
9615
9613
  class: "xg-fullscreen-back"
9616
9614
  }
9617
9615
  };
@@ -9653,19 +9651,19 @@ var cl = /* @__PURE__ */ function(a) {
9653
9651
  }
9654
9652
  }]), r;
9655
9653
  }(j);
9656
- function fl() {
9654
+ function cl() {
9657
9655
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
9658
9656
  <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>
9659
9657
  </svg>
9660
9658
  `, "image/svg+xml").firstChild;
9661
9659
  }
9662
- function hl() {
9660
+ function fl() {
9663
9661
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
9664
9662
  <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>
9665
9663
  </svg>
9666
9664
  `, "image/svg+xml").firstChild;
9667
9665
  }
9668
- var dl = /* @__PURE__ */ function(a) {
9666
+ var hl = /* @__PURE__ */ function(a) {
9669
9667
  L(r, a);
9670
9668
  var o = A(r);
9671
9669
  function r() {
@@ -9700,7 +9698,7 @@ var dl = /* @__PURE__ */ function(a) {
9700
9698
  var u = e.find(".xg-tips");
9701
9699
  u && e.changeLangTextKey(u, l ? e.i18nKeys.EXITFULLSCREEN_TIPS : e.i18nKeys.FULLSCREEN_TIPS), e.animate(l);
9702
9700
  }), this.config.needBackIcon && (this.topBackIcon = this.player.registerPlugin({
9703
- plugin: cl,
9701
+ plugin: ul,
9704
9702
  options: {
9705
9703
  config: {
9706
9704
  onClick: function(u) {
@@ -9716,11 +9714,11 @@ var dl = /* @__PURE__ */ function(a) {
9716
9714
  value: function() {
9717
9715
  return {
9718
9716
  fullscreen: {
9719
- icon: fl,
9717
+ icon: cl,
9720
9718
  class: "xg-get-fullscreen"
9721
9719
  },
9722
9720
  exitFullscreen: {
9723
- icon: hl,
9721
+ icon: fl,
9724
9722
  class: "xg-exit-fullscreen"
9725
9723
  }
9726
9724
  };
@@ -9801,7 +9799,7 @@ var dl = /* @__PURE__ */ function(a) {
9801
9799
  };
9802
9800
  }
9803
9801
  }]), r;
9804
- }(Ye), gl = /* @__PURE__ */ function(a) {
9802
+ }(Ye), dl = /* @__PURE__ */ function(a) {
9805
9803
  L(r, a);
9806
9804
  var o = A(r);
9807
9805
  function r(t) {
@@ -9951,7 +9949,7 @@ var dl = /* @__PURE__ */ function(a) {
9951
9949
  };
9952
9950
  }
9953
9951
  }]), r;
9954
- }(j), pl = /* @__PURE__ */ function(a) {
9952
+ }(j), gl = /* @__PURE__ */ function(a) {
9955
9953
  L(r, a);
9956
9954
  var o = A(r);
9957
9955
  function r() {
@@ -10089,28 +10087,28 @@ var dl = /* @__PURE__ */ function(a) {
10089
10087
  }
10090
10088
  }]), r;
10091
10089
  }(Be);
10092
- function vl() {
10090
+ function pl() {
10093
10091
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
10094
10092
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
10095
10093
  <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>
10096
10094
  </svg>
10097
10095
  `, "image/svg+xml").firstChild;
10098
10096
  }
10099
- function ml() {
10097
+ function vl() {
10100
10098
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
10101
10099
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
10102
10100
  <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>
10103
10101
  </svg>
10104
10102
  `, "image/svg+xml").firstChild;
10105
10103
  }
10106
- function yl() {
10104
+ function ml() {
10107
10105
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
10108
10106
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
10109
10107
  <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>
10110
10108
  </svg>
10111
10109
  `, "image/svg+xml").firstChild;
10112
10110
  }
10113
- var _l = /* @__PURE__ */ function(a) {
10111
+ var yl = /* @__PURE__ */ function(a) {
10114
10112
  L(r, a);
10115
10113
  var o = A(r);
10116
10114
  function r() {
@@ -10158,15 +10156,15 @@ var _l = /* @__PURE__ */ function(a) {
10158
10156
  value: function() {
10159
10157
  return {
10160
10158
  volumeSmall: {
10161
- icon: ml,
10159
+ icon: vl,
10162
10160
  class: "xg-volume-small"
10163
10161
  },
10164
10162
  volumeLarge: {
10165
- icon: vl,
10163
+ icon: pl,
10166
10164
  class: "xg-volume"
10167
10165
  },
10168
10166
  volumeMuted: {
10169
- icon: yl,
10167
+ icon: ml,
10170
10168
  class: "xg-volume-mute"
10171
10169
  }
10172
10170
  };
@@ -10305,7 +10303,7 @@ var _l = /* @__PURE__ */ function(a) {
10305
10303
  }
10306
10304
  }]), r;
10307
10305
  }(j);
10308
- function Cl() {
10306
+ function _l() {
10309
10307
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="-4 -6 40 40" fill="none">
10310
10308
  <g clip-path="url(#clip0)">
10311
10309
  <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"/>
@@ -10319,7 +10317,7 @@ function Cl() {
10319
10317
  </svg>
10320
10318
  `, "image/svg+xml").firstChild;
10321
10319
  }
10322
- var kl = /* @__PURE__ */ function(a) {
10320
+ var Cl = /* @__PURE__ */ function(a) {
10323
10321
  L(r, a);
10324
10322
  var o = A(r);
10325
10323
  function r(t) {
@@ -10382,7 +10380,7 @@ var kl = /* @__PURE__ */ function(a) {
10382
10380
  key: "registerIcons",
10383
10381
  value: function() {
10384
10382
  return {
10385
- rotate: Cl
10383
+ rotate: _l
10386
10384
  };
10387
10385
  }
10388
10386
  }, {
@@ -10415,14 +10413,14 @@ var kl = /* @__PURE__ */ function(a) {
10415
10413
  }
10416
10414
  }]), r;
10417
10415
  }(Ye);
10418
- function wl() {
10416
+ function kl() {
10419
10417
  return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
10420
10418
  <path fill-rule="evenodd" clip-rule="evenodd"
10421
10419
  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"
10422
10420
  fill="white" />
10423
10421
  </svg>`, "image/svg+xml").firstChild;
10424
10422
  }
10425
- function bl() {
10423
+ function wl() {
10426
10424
  return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
10427
10425
  <path fill-rule="evenodd" clip-rule="evenodd"
10428
10426
  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"
@@ -10436,7 +10434,7 @@ var Je = {
10436
10434
  PIP: "picture-in-picture",
10437
10435
  INLINE: "inline",
10438
10436
  FULLSCREEN: "fullscreen"
10439
- }, Tl = /* @__PURE__ */ function(a) {
10437
+ }, bl = /* @__PURE__ */ function(a) {
10440
10438
  L(r, a);
10441
10439
  var o = A(r);
10442
10440
  function r() {
@@ -10476,11 +10474,11 @@ var Je = {
10476
10474
  value: function() {
10477
10475
  return {
10478
10476
  pipIcon: {
10479
- icon: wl,
10477
+ icon: kl,
10480
10478
  class: "xg-get-pip"
10481
10479
  },
10482
10480
  pipIconExit: {
10483
- icon: bl,
10481
+ icon: wl,
10484
10482
  class: "xg-exit-pip"
10485
10483
  }
10486
10484
  };
@@ -10639,20 +10637,20 @@ var Je = {
10639
10637
  }
10640
10638
  }]), r;
10641
10639
  }(Ye);
10642
- function El() {
10640
+ function Tl() {
10643
10641
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="40" viewBox="10 0 24 40">
10644
10642
  <path transform="scale(0.038 0.028)" d="M800 380v768h-128v-352l-320 320v-704l320 320v-352z"></path>
10645
10643
  </svg>
10646
10644
  `, "image/svg+xml").firstChild;
10647
10645
  }
10648
- var Sl = /* @__PURE__ */ function(a) {
10646
+ var El = /* @__PURE__ */ function(a) {
10649
10647
  L(r, a);
10650
10648
  var o = A(r);
10651
10649
  function r(t) {
10652
10650
  var e;
10653
10651
  return x(this, r), e = o.call(this, t), _(v(e), "playNext", function(i) {
10654
10652
  var n = v(e), s = n.player;
10655
- i.preventDefault(), i.stopPropagation(), e.idx + 1 < e.config.urlList.length ? (e.idx++, e.nextHandler(e.config.urlList[e.idx], e.idx), s.emit(It, e.idx + 1)) : (e.nextHandler(), s.emit(It));
10653
+ i.preventDefault(), i.stopPropagation(), e.idx + 1 < e.config.urlList.length ? (e.idx++, e.nextHandler(e.config.urlList[e.idx], e.idx), s.emit(xt, e.idx + 1)) : (e.nextHandler(), s.emit(xt));
10656
10654
  }), e.idx = -1, e;
10657
10655
  }
10658
10656
  return I(r, [{
@@ -10664,7 +10662,7 @@ var Sl = /* @__PURE__ */ function(a) {
10664
10662
  key: "registerIcons",
10665
10663
  value: function() {
10666
10664
  return {
10667
- playNext: El
10665
+ playNext: Tl
10668
10666
  };
10669
10667
  }
10670
10668
  }, {
@@ -10786,9 +10784,9 @@ Use Save As... to download, then click back to return to this page.`) && (locati
10786
10784
  };
10787
10785
  });
10788
10786
  })(tr);
10789
- var xl = tr.exports;
10790
- const Il = /* @__PURE__ */ gi(xl);
10791
- function Pl() {
10787
+ var Sl = tr.exports;
10788
+ const xl = /* @__PURE__ */ gi(Sl);
10789
+ function Il() {
10792
10790
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24">
10793
10791
  <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
10794
10792
  <g transform="translate(-488.000000, -340.000000)" fill="#FFFFFF">
@@ -10805,7 +10803,7 @@ function Pl() {
10805
10803
  </svg>
10806
10804
  `, "image/svg+xml").firstChild;
10807
10805
  }
10808
- var Ll = /* @__PURE__ */ function(a) {
10806
+ var Pl = /* @__PURE__ */ function(a) {
10809
10807
  L(r, a);
10810
10808
  var o = A(r);
10811
10809
  function r(t) {
@@ -10816,7 +10814,7 @@ var Ll = /* @__PURE__ */ function(a) {
10816
10814
  var n = e.playerConfig.url, s = "";
10817
10815
  f.typeOf(n) === "String" ? s = n : f.typeOf(n) === "Array" && n.length > 0 && (s = n[0].src);
10818
10816
  var l = e.getAbsoluteURL(s);
10819
- Il(l), e.isLock = !0, e.timer = window.setTimeout(function() {
10817
+ xl(l), e.isLock = !0, e.timer = window.setTimeout(function() {
10820
10818
  e.isLock = !1, window.clearTimeout(e.timer), e.timer = null;
10821
10819
  }, 300);
10822
10820
  }
@@ -10835,7 +10833,7 @@ var Ll = /* @__PURE__ */ function(a) {
10835
10833
  key: "registerIcons",
10836
10834
  value: function() {
10837
10835
  return {
10838
- download: Pl
10836
+ download: Il
10839
10837
  };
10840
10838
  }
10841
10839
  }, {
@@ -10877,7 +10875,7 @@ var Ll = /* @__PURE__ */ function(a) {
10877
10875
  };
10878
10876
  }
10879
10877
  }]), r;
10880
- }(Ye), Al = /* @__PURE__ */ function(a) {
10878
+ }(Ye), Ll = /* @__PURE__ */ function(a) {
10881
10879
  L(r, a);
10882
10880
  var o = A(r);
10883
10881
  function r() {
@@ -11003,7 +11001,7 @@ var Ll = /* @__PURE__ */ function(a) {
11003
11001
  };
11004
11002
  }
11005
11003
  }]), r;
11006
- }(Ye), Dl = /* @__PURE__ */ function() {
11004
+ }(Ye), Al = /* @__PURE__ */ function() {
11007
11005
  function a(o) {
11008
11006
  x(this, a), this.config = o.config, this.parent = o.root, this.root = f.createDom("ul", "", {}, "xg-options-list xg-list-slide-scroll ".concat(this.config.className)), o.root.appendChild(this.root);
11009
11007
  var r = this.config.maxHeight;
@@ -11083,10 +11081,10 @@ var Ll = /* @__PURE__ */ function(a) {
11083
11081
  CLICK: "click",
11084
11082
  HOVER: "hover"
11085
11083
  };
11086
- function Ol(a, o) {
11084
+ function Dl(a, o) {
11087
11085
  return a === ke.SIDE ? o === $.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
11088
11086
  }
11089
- var Ve = B.device === "mobile", Ot = /* @__PURE__ */ function(a) {
11087
+ var Ve = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
11090
11088
  L(r, a);
11091
11089
  var o = A(r);
11092
11090
  function r(t) {
@@ -11197,7 +11195,7 @@ var Ve = B.device === "mobile", Ot = /* @__PURE__ */ function(a) {
11197
11195
  var c = {
11198
11196
  config: {
11199
11197
  data: e || [],
11200
- className: Ol(s.listType, s.position),
11198
+ className: Dl(s.listType, s.position),
11201
11199
  onItemClick: function(m, y) {
11202
11200
  n.onItemClick(m, y);
11203
11201
  },
@@ -11207,7 +11205,7 @@ var Ve = B.device === "mobile", Ot = /* @__PURE__ */ function(a) {
11207
11205
  };
11208
11206
  if (this.config.isShowIcon) {
11209
11207
  var h = this.player.root.getBoundingClientRect(), d = h.height, p = s.listType === ke.MIDDLE ? d - 50 : d;
11210
- p && s.heightLimit && (c.config.maxHeight = "".concat(p, "px")), this.optionsList = new Dl(c), this.changeCurrentText(), this.show();
11208
+ p && s.heightLimit && (c.config.maxHeight = "".concat(p, "px")), this.optionsList = new Al(c), this.changeCurrentText(), this.show();
11211
11209
  }
11212
11210
  this._resizeList();
11213
11211
  }
@@ -11258,7 +11256,7 @@ var Ve = B.device === "mobile", Ot = /* @__PURE__ */ function(a) {
11258
11256
  };
11259
11257
  }
11260
11258
  }]), r;
11261
- }(j), Rl = /* @__PURE__ */ function(a) {
11259
+ }(j), Ol = /* @__PURE__ */ function(a) {
11262
11260
  L(r, a);
11263
11261
  var o = A(r);
11264
11262
  function r(t) {
@@ -11347,7 +11345,7 @@ var Ve = B.device === "mobile", Ot = /* @__PURE__ */ function(a) {
11347
11345
  }, {
11348
11346
  key: "defaultConfig",
11349
11347
  get: function() {
11350
- return Z(Z({}, Ot.defaultConfig), {}, {
11348
+ return Z(Z({}, Dt.defaultConfig), {}, {
11351
11349
  position: $.CONTROLS_RIGHT,
11352
11350
  index: 3,
11353
11351
  list: [],
@@ -11359,7 +11357,7 @@ var Ve = B.device === "mobile", Ot = /* @__PURE__ */ function(a) {
11359
11357
  });
11360
11358
  }
11361
11359
  }]), r;
11362
- }(Ot), Ml = /* @__PURE__ */ function(a) {
11360
+ }(Dt), Rl = /* @__PURE__ */ function(a) {
11363
11361
  L(r, a);
11364
11362
  var o = A(r);
11365
11363
  function r(t) {
@@ -11441,7 +11439,7 @@ var Ve = B.device === "mobile", Ot = /* @__PURE__ */ function(a) {
11441
11439
  }, {
11442
11440
  key: "defaultConfig",
11443
11441
  get: function() {
11444
- return Z(Z({}, Ot.defaultConfig), {}, {
11442
+ return Z(Z({}, Dt.defaultConfig), {}, {
11445
11443
  position: $.CONTROLS_RIGHT,
11446
11444
  index: 4,
11447
11445
  list: [2, 1.5, 1, 0.75, 0.5],
@@ -11451,14 +11449,14 @@ var Ve = B.device === "mobile", Ot = /* @__PURE__ */ function(a) {
11451
11449
  });
11452
11450
  }
11453
11451
  }]), r;
11454
- }(Ot);
11455
- function Fl() {
11452
+ }(Dt);
11453
+ function Ml() {
11456
11454
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
11457
11455
  <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>
11458
11456
  </svg>
11459
11457
  `, "image/svg+xml").firstChild;
11460
11458
  }
11461
- function Nl() {
11459
+ function Fl() {
11462
11460
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
11463
11461
  <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>
11464
11462
  </svg>
@@ -11479,7 +11477,7 @@ var mn = /* @__PURE__ */ function(a) {
11479
11477
  key: "afterCreate",
11480
11478
  value: function() {
11481
11479
  var e = this;
11482
- M(O(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.config.target && (this.playerConfig.fullscreenTarget = this.config.target), this.initIcons(), this.on(St, function(i) {
11480
+ M(O(r.prototype), "afterCreate", this).call(this), !this.config.disable && (this.config.target && (this.playerConfig.fullscreenTarget = this.config.target), this.initIcons(), this.on(Et, function(i) {
11483
11481
  e.animate(i);
11484
11482
  }), this.btnClick = this.btnClick.bind(this), this.handleCssFullscreen = this.hook("cssFullscreen_change", this.btnClick, {
11485
11483
  pre: function(n) {
@@ -11518,11 +11516,11 @@ var mn = /* @__PURE__ */ function(a) {
11518
11516
  value: function() {
11519
11517
  return {
11520
11518
  cssFullscreen: {
11521
- icon: Fl,
11519
+ icon: Ml,
11522
11520
  class: "xg-get-cssfull"
11523
11521
  },
11524
11522
  exitCssFullscreen: {
11525
- icon: Nl,
11523
+ icon: Fl,
11526
11524
  class: "xg-exit-cssfull"
11527
11525
  }
11528
11526
  };
@@ -11558,7 +11556,7 @@ var mn = /* @__PURE__ */ function(a) {
11558
11556
  };
11559
11557
  }
11560
11558
  }]), r;
11561
- }(Ye), Bl = /* @__PURE__ */ function(a) {
11559
+ }(Ye), Nl = /* @__PURE__ */ function(a) {
11562
11560
  L(r, a);
11563
11561
  var o = A(r);
11564
11562
  function r() {
@@ -11572,7 +11570,7 @@ var mn = /* @__PURE__ */ function(a) {
11572
11570
  pre: function(n) {
11573
11571
  n.preventDefault(), n.stopPropagation();
11574
11572
  }
11575
- }), this.onError = this.hook("showError", this.handleError), this.bind(".xgplayer-error-refresh", "click", this.clickHandler), this.on(pt, function(i) {
11573
+ }), this.onError = this.hook("showError", this.handleError), this.bind(".xgplayer-error-refresh", "click", this.clickHandler), this.on(gt, function(i) {
11576
11574
  e.onError(i);
11577
11575
  });
11578
11576
  }
@@ -11619,7 +11617,7 @@ var mn = /* @__PURE__ */ function(a) {
11619
11617
  return "error";
11620
11618
  }
11621
11619
  }]), r;
11622
- }(j), Hl = /* @__PURE__ */ function(a) {
11620
+ }(j), Bl = /* @__PURE__ */ function(a) {
11623
11621
  L(r, a);
11624
11622
  var o = A(r);
11625
11623
  function r() {
@@ -11849,7 +11847,7 @@ var _n = {
11849
11847
  return r.find('xg-spot[data-id="'.concat(o, '"]'));
11850
11848
  }
11851
11849
  };
11852
- function Ul(a) {
11850
+ function Hl(a) {
11853
11851
  var o = a.config, r = a.player;
11854
11852
  Object.keys(_n).map(function(e) {
11855
11853
  a[e] = _n[e].bind(a);
@@ -11873,7 +11871,7 @@ var et = {
11873
11871
  click: "onProgressClick",
11874
11872
  mouseover: "onProgressMouseOver",
11875
11873
  mouseenter: "onProgressMouseOver"
11876
- }, zl = /* @__PURE__ */ function(a) {
11874
+ }, Ul = /* @__PURE__ */ function(a) {
11877
11875
  L(r, a);
11878
11876
  var o = A(r);
11879
11877
  function r(t) {
@@ -11924,7 +11922,7 @@ var et = {
11924
11922
  n.seekTime && e.player.seek(n.seekTime);
11925
11923
  }), this.transformTimeHook = this.hook("transformTime", function(i) {
11926
11924
  e.setTimeContent(f.format(i));
11927
- }), Ul(this), this.on(He, function() {
11925
+ }), Hl(this), this.on(He, function() {
11928
11926
  e.show();
11929
11927
  }), this.config.disable && this.disable(), this.extTextRoot = this.find(".xg-spot-ext-text");
11930
11928
  }
@@ -12148,7 +12146,7 @@ var et = {
12148
12146
  };
12149
12147
  }
12150
12148
  }]), r;
12151
- }(j), Vl = /* @__PURE__ */ function(a) {
12149
+ }(j), zl = /* @__PURE__ */ function(a) {
12152
12150
  L(r, a);
12153
12151
  var o = A(r);
12154
12152
  function r(t) {
@@ -12286,7 +12284,7 @@ var et = {
12286
12284
  function ei(a) {
12287
12285
  return a ? "background:".concat(a, ";") : "";
12288
12286
  }
12289
- var jl = /* @__PURE__ */ function(a) {
12287
+ var Vl = /* @__PURE__ */ function(a) {
12290
12288
  L(r, a);
12291
12289
  var o = A(r);
12292
12290
  function r() {
@@ -12374,14 +12372,14 @@ var jl = /* @__PURE__ */ function(a) {
12374
12372
  FRAME_RATE: "framerate",
12375
12373
  POSTER: "poster"
12376
12374
  };
12377
- function Wl() {
12375
+ function jl() {
12378
12376
  try {
12379
12377
  return parseInt(window.performance.now(), 10);
12380
12378
  } catch {
12381
12379
  return (/* @__PURE__ */ new Date()).getTime();
12382
12380
  }
12383
12381
  }
12384
- function Gl() {
12382
+ function Wl() {
12385
12383
  try {
12386
12384
  var a = document.createElement("canvas").getContext;
12387
12385
  return !!a;
@@ -12389,7 +12387,7 @@ function Gl() {
12389
12387
  return !1;
12390
12388
  }
12391
12389
  }
12392
- var Ct = null, $l = /* @__PURE__ */ function(a) {
12390
+ var _t = null, Gl = /* @__PURE__ */ function(a) {
12393
12391
  L(r, a);
12394
12392
  var o = A(r);
12395
12393
  function r() {
@@ -12410,7 +12408,7 @@ var Ct = null, $l = /* @__PURE__ */ function(a) {
12410
12408
  !t.player.paused && t._checkIfCanStart() && t.start(0, l);
12411
12409
  }
12412
12410
  }), _(v(t), "start", function(s, l) {
12413
- var u = t.player.video, c = Wl(), h = t.checkVideoIsSupport(u);
12411
+ var u = t.player.video, c = jl(), h = t.checkVideoIsSupport(u);
12414
12412
  !h || !t.canvasCtx || (l || (l = t.interval), t.stop(), u.videoWidth && u.videoHeight && (t.videoPI = u.videoHeight > 0 ? parseInt(u.videoWidth / u.videoHeight * 100, 10) : 0, (t.config.mode === tt.REAL_TIME || c - t.preTime >= l) && (u && u.videoWidth && t.update(h, t.videoPI), t.preTime = c)), t.frameId = t._loopType === "timer" ? f.setTimeout(v(t), t.start, l) : f.requestAnimationFrame(t.start));
12415
12413
  }), _(v(t), "stop", function() {
12416
12414
  t.frameId && (t._loopType === "timer" ? f.clearTimeout(v(t), t.frameId) : f.cancelAnimationFrame(t.frameId), t.frameId = null);
@@ -12583,7 +12581,7 @@ var Ct = null, $l = /* @__PURE__ */ function(a) {
12583
12581
  }, {
12584
12582
  key: "isSupport",
12585
12583
  get: function() {
12586
- return typeof Ct == "boolean" || (Ct = Gl()), Ct;
12584
+ return typeof _t == "boolean" || (_t = Wl()), _t;
12587
12585
  }
12588
12586
  }, {
12589
12587
  key: "supportCanvasFilter",
@@ -12591,7 +12589,7 @@ var Ct = null, $l = /* @__PURE__ */ function(a) {
12591
12589
  return !(B.browser === "safari" || B.browser === "firefox");
12592
12590
  }
12593
12591
  }]), r;
12594
- }(j), Kl = {
12592
+ }(j), $l = {
12595
12593
  LANG: "zh-cn",
12596
12594
  TEXT: {
12597
12595
  ERROR_TYPES: {
@@ -12666,7 +12664,7 @@ var Ct = null, $l = /* @__PURE__ */ function(a) {
12666
12664
  FORWARD: "快进中",
12667
12665
  LIVE_TIP: "直播"
12668
12666
  }
12669
- }, ut = "info", ti = Yn, Yl = /* @__PURE__ */ function(a) {
12667
+ }, ut = "info", ti = Yn, Kl = /* @__PURE__ */ function(a) {
12670
12668
  L(r, a);
12671
12669
  var o = A(r);
12672
12670
  function r() {
@@ -12705,7 +12703,7 @@ var Ct = null, $l = /* @__PURE__ */ function(a) {
12705
12703
  }, {
12706
12704
  key: "afterCreate",
12707
12705
  value: function() {
12708
- this.reset(), this.on(Pt, this._recordUserActions), this.on(ti.STATS_INFO, this._recordInfo), this.on(ti.STATS_DOWNLOAD, this._downloadStats), this.on(ti.STATS_RESET, this._onReset);
12706
+ this.reset(), this.on(It, this._recordUserActions), this.on(ti.STATS_INFO, this._recordInfo), this.on(ti.STATS_DOWNLOAD, this._downloadStats), this.on(ti.STATS_RESET, this._onReset);
12709
12707
  }
12710
12708
  }, {
12711
12709
  key: "destroy",
@@ -12851,7 +12849,7 @@ var Ct = null, $l = /* @__PURE__ */ function(a) {
12851
12849
  key: "afterCreate",
12852
12850
  value: function() {
12853
12851
  var e = this, i = this.config.useGapJump;
12854
- 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(vt, this.onGapJump), this.on(de, function() {
12852
+ 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(pt, this.onGapJump), this.on(de, function() {
12855
12853
  e.hasPlayed = !0;
12856
12854
  }), this.on(Rt, function() {
12857
12855
  e.seekingEventReceived = !0;
@@ -12900,7 +12898,7 @@ var Ct = null, $l = /* @__PURE__ */ function(a) {
12900
12898
  }]), r;
12901
12899
  }(j);
12902
12900
  nr.BROWSER_GAP_TOLERANCE = 1e-3;
12903
- var Xl = /* @__PURE__ */ function(a) {
12901
+ var Yl = /* @__PURE__ */ function(a) {
12904
12902
  L(r, a);
12905
12903
  var o = A(r);
12906
12904
  function r() {
@@ -12924,7 +12922,7 @@ var Xl = /* @__PURE__ */ function(a) {
12924
12922
  key: "afterCreate",
12925
12923
  value: function() {
12926
12924
  var e = this, i = this.config, n = i.useWaitingTimeoutJump, s = i.jumpSize;
12927
- n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(vt, this.onWaiting), this.on([mi, Se], function() {
12925
+ n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = s, this.on(pt, this.onWaiting), this.on([mi, Se], function() {
12928
12926
  clearTimeout(e.timer), e.timer = null, e.jumpSize = e.config.jumpSize;
12929
12927
  }), this.on(de, function() {
12930
12928
  e.hasPlayed = !0;
@@ -12946,7 +12944,7 @@ var Xl = /* @__PURE__ */ function(a) {
12946
12944
  };
12947
12945
  }
12948
12946
  }]), r;
12949
- }(j), it = "cdn", kt = ["cdn"], ql = /* @__PURE__ */ function(a) {
12947
+ }(j), it = "cdn", Ct = ["cdn"], Xl = /* @__PURE__ */ function(a) {
12950
12948
  L(r, a);
12951
12949
  var o = A(r);
12952
12950
  function r() {
@@ -12965,7 +12963,7 @@ var Xl = /* @__PURE__ */ function(a) {
12965
12963
  }), _(v(t), "startTimer", function() {
12966
12964
  f.isMSE(t.player.video) || (t.initSpeedList(), t.cnt = 0, t.timer = setTimeout(t.testSpeed, t.config.testTimeStep));
12967
12965
  }), _(v(t), "initSpeedList", function() {
12968
- t.speedListCache = {}, kt.forEach(function(s) {
12966
+ t.speedListCache = {}, Ct.forEach(function(s) {
12969
12967
  t.speedListCache[s] = [];
12970
12968
  });
12971
12969
  }), _(v(t), "_onRealSpeedChange", function(s) {
@@ -13022,7 +13020,7 @@ var Xl = /* @__PURE__ */ function(a) {
13022
13020
  key: "afterCreate",
13023
13021
  value: function() {
13024
13022
  var e = this.config, i = e.openSpeed, n = e.addSpeedTypeList;
13025
- (n == null ? void 0 : n.length) > 0 && kt.push.apply(kt, me(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([Pe, Et], this.startTimer);
13023
+ (n == null ? void 0 : n.length) > 0 && Ct.push.apply(Ct, me(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([Pe, Tt], this.startTimer);
13026
13024
  }
13027
13025
  }, {
13028
13026
  key: "getSpeedName",
@@ -13049,7 +13047,7 @@ var Xl = /* @__PURE__ */ function(a) {
13049
13047
  key: "destroy",
13050
13048
  value: function() {
13051
13049
  var e = this;
13052
- this.off("real_time_speed", this._onRealSpeedChange), this.off([Pe, Et], this.startTimer), kt.forEach(function(i) {
13050
+ this.off("real_time_speed", this._onRealSpeedChange), this.off([Pe, Tt], this.startTimer), Ct.forEach(function(i) {
13053
13051
  e.speedListCache && e.speedListCache[i] && (e.speedListCache[i] = []);
13054
13052
  }), 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);
13055
13053
  }
@@ -13072,7 +13070,7 @@ var Xl = /* @__PURE__ */ function(a) {
13072
13070
  };
13073
13071
  }
13074
13072
  }]), r;
13075
- }(j), Zl = /* @__PURE__ */ function(a) {
13073
+ }(j), ql = /* @__PURE__ */ function(a) {
13076
13074
  L(r, a);
13077
13075
  var o = A(r);
13078
13076
  function r() {
@@ -13182,24 +13180,24 @@ var Xl = /* @__PURE__ */ function(a) {
13182
13180
  }
13183
13181
  }]), r;
13184
13182
  }(j);
13185
- rt.use(Kl);
13186
- var Jl = /* @__PURE__ */ I(function a(o, r) {
13183
+ rt.use($l);
13184
+ var Zl = /* @__PURE__ */ I(function a(o, r) {
13187
13185
  var t, e, i;
13188
13186
  x(this, a);
13189
- var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [pl, al, jl, zl, gl], u = [].concat(l, [ll, dl, kl, Sl, Rl, Ml, Ll, Al, _l, Tl]), c = [za, Va, Wa, rl, Ga, Bl, Hl, Vl, Xa];
13190
- this.plugins = [Yl, Ha].concat(me(u), c, [nr, Xl]);
13187
+ var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [gl, ol, Vl, Ul, dl], u = [].concat(l, [al, hl, Cl, El, Ol, Rl, Pl, Ll, yl, bl]), c = [Ua, za, ja, nl, Wa, Nl, Bl, zl, Ya];
13188
+ this.plugins = [Kl, Ba].concat(me(u), c, [nr, Yl]);
13191
13189
  var h = n ? "mobile" : B.device;
13192
13190
  switch (h) {
13193
13191
  case "pc":
13194
- (t = this.plugins).push.apply(t, [pn, Jt, mn, ql, Zl]);
13192
+ (t = this.plugins).push.apply(t, [pn, Jt, mn, Xl, ql]);
13195
13193
  break;
13196
13194
  case "mobile":
13197
- (e = this.plugins).push.apply(e, [tl]);
13195
+ (e = this.plugins).push.apply(e, [el]);
13198
13196
  break;
13199
13197
  default:
13200
13198
  (i = this.plugins).push.apply(i, [pn, Jt, mn]);
13201
13199
  }
13202
- (B.os.isIpad || h === "pc") && this.plugins.push($l), B.os.isIpad && this.plugins.push(Jt), this.ignores = [], this.i18n = [];
13200
+ (B.os.isIpad || h === "pc") && this.plugins.push(Gl), B.os.isIpad && this.plugins.push(Jt), this.ignores = [], this.i18n = [];
13203
13201
  }), ye = /* @__PURE__ */ function(a) {
13204
13202
  L(r, a);
13205
13203
  var o = A(r);
@@ -13208,20 +13206,20 @@ var Jl = /* @__PURE__ */ I(function a(o, r) {
13208
13206
  }
13209
13207
  return I(r);
13210
13208
  }(Bt);
13211
- _(ye, "defaultPreset", Jl);
13209
+ _(ye, "defaultPreset", Zl);
13212
13210
  _(ye, "Util", f);
13213
13211
  _(ye, "Sniffer", B);
13214
- _(ye, "Errors", Tt);
13215
- _(ye, "Events", da);
13212
+ _(ye, "Errors", bt);
13213
+ _(ye, "Events", ha);
13216
13214
  _(ye, "Plugin", j);
13217
13215
  _(ye, "BasePlugin", Be);
13218
13216
  _(ye, "I18N", rt);
13219
13217
  _(ye, "STATE_CLASS", C);
13220
13218
  _(ye, "InstManager", Qn);
13221
- const Ql = ["id"], eu = /* @__PURE__ */ J({
13219
+ const Jl = ["id"], Ql = /* @__PURE__ */ J({
13222
13220
  name: "ElImageViewer",
13223
13221
  __name: "Player",
13224
- props: /* @__PURE__ */ bt({
13222
+ props: /* @__PURE__ */ wt({
13225
13223
  url: {
13226
13224
  type: String,
13227
13225
  default: ""
@@ -13242,7 +13240,7 @@ const Ql = ["id"], eu = /* @__PURE__ */ J({
13242
13240
  },
13243
13241
  modelModifiers: {}
13244
13242
  }),
13245
- emits: /* @__PURE__ */ bt({
13243
+ emits: /* @__PURE__ */ wt({
13246
13244
  close: () => !0
13247
13245
  }, ["update:modelValue"]),
13248
13246
  setup(a, { emit: o }) {
@@ -13316,7 +13314,7 @@ const Ql = ["id"], eu = /* @__PURE__ */ J({
13316
13314
  class: K(S(h).e("canvas"))
13317
13315
  },
13318
13316
  [
13319
- T("div", { id: S(c) }, null, 8, Ql),
13317
+ T("div", { id: S(c) }, null, 8, Jl),
13320
13318
  ee(" CLOSE "),
13321
13319
  T(
13322
13320
  "span",
@@ -13353,7 +13351,7 @@ const Ql = ["id"], eu = /* @__PURE__ */ J({
13353
13351
  };
13354
13352
  }
13355
13353
  });
13356
- const tu = /* @__PURE__ */ gt(eu, [["__scopeId", "data-v-b301aa7d"]]), iu = Le(tu), nu = /* @__PURE__ */ J({
13354
+ const eu = /* @__PURE__ */ Ot(Ql, [["__scopeId", "data-v-b301aa7d"]]), tu = Le(eu), iu = /* @__PURE__ */ J({
13357
13355
  __name: "IkDescription",
13358
13356
  props: {
13359
13357
  showIcon: {
@@ -13418,7 +13416,7 @@ const tu = /* @__PURE__ */ gt(eu, [["__scopeId", "data-v-b301aa7d"]]), iu = Le(t
13418
13416
  (E(!0), D(
13419
13417
  Fe,
13420
13418
  null,
13421
- wt(a.listData, (l) => (E(), ae(
13419
+ kt(a.listData, (l) => (E(), ae(
13422
13420
  n,
13423
13421
  ni({
13424
13422
  key: l[r.id],
@@ -13488,8 +13486,8 @@ const tu = /* @__PURE__ */ gt(eu, [["__scopeId", "data-v-b301aa7d"]]), iu = Le(t
13488
13486
  };
13489
13487
  }
13490
13488
  });
13491
- const ru = /* @__PURE__ */ gt(nu, [["__scopeId", "data-v-8171d392"]]), lu = Le(ru);
13489
+ const nu = /* @__PURE__ */ Ot(iu, [["__scopeId", "data-v-8171d392"]]), au = Le(nu);
13492
13490
  export {
13493
- lu as IkDescriptions,
13494
- lu as default
13491
+ au as IkDescriptions,
13492
+ au as default
13495
13493
  };