iking-web-ui-pro 0.2.26 → 0.2.28

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.
@@ -1,4 +1,4 @@
1
- import { defineComponent as pe, openBlock as U, createElementBlock as $, createElementVNode as le, inject as ze, computed as ie, resolveComponent as Ye, normalizeClass as ae, normalizeStyle as Ce, createCommentVNode as fe, createBlock as Ae, withCtx as he, createTextVNode as Ot, toDisplayString as Mt, unref as X, mergeModels as it, useModel as zt, ref as nt, h as mn, mergeProps as yn, createSlots as _n, renderSlot as Ge, createVNode as Pe, watch as Fi, nextTick as Ni, Teleport as Cn, Transition as kn, reactive as bn, Fragment as Tn } from "vue";
1
+ import { defineComponent as pe, openBlock as U, createElementBlock as G, createElementVNode as le, inject as ze, computed as ne, resolveComponent as Ye, normalizeClass as ie, normalizeStyle as Ce, createCommentVNode as fe, createBlock as Ve, withCtx as he, createTextVNode as Ot, toDisplayString as Mt, createVNode as ke, unref as X, mergeModels as it, useModel as zt, ref as nt, h as mn, mergeProps as yn, createSlots as _n, renderSlot as Ge, watch as Fi, nextTick as Ni, Teleport as Cn, Transition as kn, reactive as bn, Fragment as Tn } from "vue";
2
2
  import { ikColor as wn, buildUUID as Bi } from "iking-utils-pro";
3
3
  import { useNamespace as En } from "element-plus";
4
4
  const Xe = (a, o) => {
@@ -128,7 +128,7 @@ var Pn = /* @__PURE__ */ pe({
128
128
  name: "Close",
129
129
  __name: "close",
130
130
  setup(a) {
131
- return (o, r) => (U(), $("svg", {
131
+ return (o, r) => (U(), G("svg", {
132
132
  xmlns: "http://www.w3.org/2000/svg",
133
133
  viewBox: "0 0 1024 1024"
134
134
  }, [
@@ -145,7 +145,7 @@ const gt = (a, o) => {
145
145
  r[t] = e;
146
146
  return r;
147
147
  }, An = (a) => {
148
- const o = ze("loadUrl"), r = ie(() => a.loadUrl || a.fileUrl || (o == null ? void 0 : o.value)), t = ze("uploadUrl"), e = ie(() => a.action || a.uploadUrl || (t == null ? void 0 : t.value)), i = ze("token"), n = ie(() => a.token || (i == null ? void 0 : i.value)), s = ze("onlyofficeConfig"), l = ie(() => a.onlyofficeConfig || (s == null ? void 0 : s.value)), u = ze("userInfo"), c = ie(() => a.userInfo || (u == null ? void 0 : u.value));
148
+ const o = ze("loadUrl"), r = ne(() => a.loadUrl || a.fileUrl || (o == null ? void 0 : o.value)), t = ze("uploadUrl"), e = ne(() => a.action || a.uploadUrl || (t == null ? void 0 : t.value)), i = ze("token"), n = ne(() => a.token || (i == null ? void 0 : i.value)), s = ze("onlyofficeConfig"), l = ne(() => a.onlyofficeConfig || (s == null ? void 0 : s.value)), u = ze("userInfo"), c = ne(() => a.userInfo || (u == null ? void 0 : u.value));
149
149
  return {
150
150
  cLoadUrl: r,
151
151
  cUploadUrl: e,
@@ -191,10 +191,10 @@ const gt = (a, o) => {
191
191
  width: {}
192
192
  },
193
193
  setup(a) {
194
- const o = a, r = ie(() => o), t = ie(() => {
194
+ const o = a, r = ne(() => o), t = ne(() => {
195
195
  const { name: i } = r.value;
196
196
  return /^http?:\/\//.test(i) ? "img" : /i-[^:]+:[^:]+/.test(i) ? "unocss" : i != null && i.startsWith("iksig") ? "iksig" : i != null && i.includes(":") ? "iconify" : i != null && i.startsWith("iksvg") ? "svg" : "i";
197
- }), e = ie(() => {
197
+ }), e = ne(() => {
198
198
  const i = [];
199
199
  if (r.value.flip)
200
200
  switch (r.value.flip) {
@@ -224,12 +224,12 @@ const gt = (a, o) => {
224
224
  });
225
225
  return (i, n) => {
226
226
  const s = Ye("el-tooltip"), l = Ye("el-button");
227
- return r.value.tableIconType === "icon" || !r.value.tableIconType ? (U(), $("span", Dn, [
228
- r.value.notip || !r.value.title ? (U(), $(
227
+ return r.value.tableIconType === "icon" || !r.value.tableIconType ? (U(), G("span", Dn, [
228
+ r.value.notip || !r.value.title ? (U(), G(
229
229
  "i",
230
230
  {
231
231
  key: 0,
232
- class: ae(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
232
+ class: ie(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
233
233
  [i.name]: t.value === "unocss",
234
234
  "show-bg": r.value.showBg || r.value.bg,
235
235
  default: r.value.size === "default",
@@ -246,29 +246,29 @@ const gt = (a, o) => {
246
246
  },
247
247
  [
248
248
  fe(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
249
- t.value === "iksig" ? (U(), $(
249
+ t.value === "iksig" ? (U(), G(
250
250
  "i",
251
251
  {
252
252
  key: 0,
253
- class: ae(`iksig ${r.value.name}`),
253
+ class: ie(`iksig ${r.value.name}`),
254
254
  style: Ce(e.value)
255
255
  },
256
256
  null,
257
257
  6
258
258
  /* CLASS, STYLE */
259
- )) : t.value === "svg" ? (U(), $("svg", Rn, [
259
+ )) : t.value === "svg" ? (U(), G("svg", Rn, [
260
260
  le("use", {
261
261
  "xlink:href": `#${r.value.name}`
262
262
  }, null, 8, On)
263
- ])) : t.value === "img" ? (U(), $("img", {
263
+ ])) : t.value === "img" ? (U(), G("img", {
264
264
  key: 2,
265
265
  src: r.value.name,
266
266
  class: "h-[1em] w-[1em]"
267
- }, null, 8, Mn)) : (U(), $(
267
+ }, null, 8, Mn)) : (U(), G(
268
268
  "i",
269
269
  {
270
270
  key: 3,
271
- class: ae(r.value.name),
271
+ class: ie(r.value.name),
272
272
  style: Ce(e.value)
273
273
  },
274
274
  null,
@@ -278,7 +278,7 @@ const gt = (a, o) => {
278
278
  ],
279
279
  6
280
280
  /* CLASS, STYLE */
281
- )) : (U(), Ae(s, {
281
+ )) : (U(), Ve(s, {
282
282
  key: 1,
283
283
  content: r.value.title,
284
284
  placement: "top"
@@ -287,7 +287,7 @@ const gt = (a, o) => {
287
287
  le(
288
288
  "i",
289
289
  {
290
- class: ae(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
290
+ class: ie(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
291
291
  [i.name]: t.value === "unocss",
292
292
  "show-bg": r.value.showBg || r.value.bg,
293
293
  default: r.value.size === "default",
@@ -302,29 +302,29 @@ const gt = (a, o) => {
302
302
  style: Ce(e.value)
303
303
  },
304
304
  [
305
- t.value === "iksig" ? (U(), $(
305
+ t.value === "iksig" ? (U(), G(
306
306
  "i",
307
307
  {
308
308
  key: 0,
309
- class: ae(`iksig ${r.value.name}`),
309
+ class: ie(`iksig ${r.value.name}`),
310
310
  style: Ce(e.value)
311
311
  },
312
312
  null,
313
313
  6
314
314
  /* CLASS, STYLE */
315
- )) : t.value === "svg" ? (U(), $("svg", Fn, [
315
+ )) : t.value === "svg" ? (U(), G("svg", Fn, [
316
316
  le("use", {
317
317
  "xlink:href": `#${r.value.name}`
318
318
  }, null, 8, Nn)
319
- ])) : t.value === "img" ? (U(), $("img", {
319
+ ])) : t.value === "img" ? (U(), G("img", {
320
320
  key: 2,
321
321
  src: r.value.name,
322
322
  class: "h-[1em] w-[1em]"
323
- }, null, 8, Bn)) : (U(), $(
323
+ }, null, 8, Bn)) : (U(), G(
324
324
  "i",
325
325
  {
326
326
  key: 3,
327
- class: ae(r.value.name),
327
+ class: ie(r.value.name),
328
328
  style: Ce(e.value)
329
329
  },
330
330
  null,
@@ -339,7 +339,7 @@ const gt = (a, o) => {
339
339
  _: 1
340
340
  /* STABLE */
341
341
  }, 8, ["content"]))
342
- ])) : (U(), Ae(l, {
342
+ ])) : (U(), Ve(l, {
343
343
  key: 1,
344
344
  type: ["warning", "error"].includes(r.value.type) ? "danger" : ""
345
345
  }, {
@@ -369,15 +369,25 @@ const Un = /* @__PURE__ */ gt(Hn, [["__scopeId", "data-v-52806adf"]]), Hi = Xe(U
369
369
  }
370
370
  },
371
371
  setup(a) {
372
- return (o, r) => (U(), Ae(X(Hi), {
373
- error: "",
374
- name: "iksvg_guanbidanchuang",
375
- title: "关闭",
376
- size: 20
377
- }));
372
+ return (o, r) => (U(), G(
373
+ "div",
374
+ {
375
+ class: ie({ "exit-main-page-maximize": a.showBg && a.fullscreen })
376
+ },
377
+ [
378
+ ke(X(Hi), {
379
+ name: "iksvg_guanbidanchuang",
380
+ title: "关闭",
381
+ size: 20,
382
+ error: ""
383
+ })
384
+ ],
385
+ 2
386
+ /* CLASS */
387
+ ));
378
388
  }
379
389
  });
380
- const jn = /* @__PURE__ */ gt(Vn, [["__scopeId", "data-v-e27fb022"]]), zn = { class: "base-header" }, Wn = /* @__PURE__ */ pe({
390
+ const jn = /* @__PURE__ */ gt(Vn, [["__scopeId", "data-v-da39e979"]]), zn = { class: "base-header" }, Wn = /* @__PURE__ */ pe({
381
391
  __name: "IkBaseDialog",
382
392
  props: /* @__PURE__ */ it({
383
393
  title: { default: "" },
@@ -410,7 +420,7 @@ const jn = /* @__PURE__ */ gt(Vn, [["__scopeId", "data-v-e27fb022"]]), zn = { cl
410
420
  });
411
421
  return (n, s) => {
412
422
  const l = Ye("el-dialog");
413
- return U(), Ae(l, yn({
423
+ return U(), Ve(l, yn({
414
424
  modelValue: r.value,
415
425
  "onUpdate:modelValue": s[0] || (s[0] = (u) => r.value = u)
416
426
  }, n.$attrs, {
@@ -438,7 +448,7 @@ const jn = /* @__PURE__ */ gt(Vn, [["__scopeId", "data-v-e27fb022"]]), zn = { cl
438
448
  )
439
449
  ])
440
450
  ]),
441
- n.$attrs.showClose ? (U(), Ae(X(Hi), {
451
+ n.$attrs.showClose ? (U(), Ve(X(Hi), {
442
452
  key: 0,
443
453
  onClick: e,
444
454
  name: t.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
@@ -766,7 +776,7 @@ var Xn = function(a, o) {
766
776
  });
767
777
  const qn = ["id"];
768
778
  function Zn(a, o, r, t, e, i) {
769
- return U(), $("div", { id: a.id }, null, 8, qn);
779
+ return U(), G("div", { id: a.id }, null, 8, qn);
770
780
  }
771
781
  Gt.render = Zn;
772
782
  Gt.__file = "src/components/DocumentEditor.vue";
@@ -799,13 +809,13 @@ const Jn = /* @__PURE__ */ pe({
799
809
  }), t = () => {
800
810
  console.info("文档加载完成", o.configOptions);
801
811
  };
802
- return (e, i) => (U(), $(
812
+ return (e, i) => (U(), G(
803
813
  "div",
804
814
  {
805
815
  style: Ce({ height: o.officeHeight })
806
816
  },
807
817
  [
808
- Pe(X(Gt), {
818
+ ke(X(Gt), {
809
819
  id: `${(/* @__PURE__ */ new Date()).getTime()}`,
810
820
  ref: "editorRef",
811
821
  "document-server-url": a.documentServerUrl,
@@ -840,13 +850,13 @@ function V(a) {
840
850
  }
841
851
  return a;
842
852
  }
843
- function G(a) {
853
+ function K(a) {
844
854
  "@babel/helpers - typeof";
845
- return G = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o) {
855
+ return K = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o) {
846
856
  return typeof o;
847
857
  } : function(o) {
848
858
  return o && typeof Symbol == "function" && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
849
- }, G(a);
859
+ }, K(a);
850
860
  }
851
861
  function w(a, o) {
852
862
  if (!(a instanceof o))
@@ -944,7 +954,7 @@ function I() {
944
954
  }
945
955
  }, I.apply(this, arguments);
946
956
  }
947
- function ne(a) {
957
+ function re(a) {
948
958
  return nr(a) || rr(a) || sr(a) || or();
949
959
  }
950
960
  function nr(a) {
@@ -1184,7 +1194,7 @@ f.hasClass = function(a, o) {
1184
1194
  return t === o;
1185
1195
  });
1186
1196
  } catch {
1187
- var r = a.className && G(a.className) === "object" ? a.getAttribute("class") : a.className;
1197
+ var r = a.className && K(a.className) === "object" ? a.getAttribute("class") : a.className;
1188
1198
  return r && !!r.match(new RegExp("(\\s|^)" + o + "(\\s|$)"));
1189
1199
  }
1190
1200
  };
@@ -1195,7 +1205,7 @@ f.addClass = function(a, o) {
1195
1205
  r && a.classList.add(r);
1196
1206
  });
1197
1207
  } catch {
1198
- f.hasClass(a, o) || (a.className && G(a.className) === "object" ? a.setAttribute("class", a.getAttribute("class") + " " + o) : a.className += " " + o);
1208
+ f.hasClass(a, o) || (a.className && K(a.className) === "object" ? a.setAttribute("class", a.getAttribute("class") + " " + o) : a.className += " " + o);
1199
1209
  }
1200
1210
  };
1201
1211
  f.removeClass = function(a, o) {
@@ -1207,7 +1217,7 @@ f.removeClass = function(a, o) {
1207
1217
  } catch {
1208
1218
  f.hasClass(a, o) && o.split(/\s+/g).forEach(function(t) {
1209
1219
  var e = new RegExp("(\\s|^)" + t + "(\\s|$)");
1210
- a.className && G(a.className) === "object" ? a.setAttribute("class", a.getAttribute("class").replace(e, " ")) : a.className = a.className.replace(e, " ");
1220
+ a.className && K(a.className) === "object" ? a.setAttribute("class", a.getAttribute("class").replace(e, " ")) : a.className = a.className.replace(e, " ");
1211
1221
  });
1212
1222
  }
1213
1223
  };
@@ -1270,7 +1280,7 @@ f.deepMerge = function(a, o) {
1270
1280
  if (f.typeOf(o[r]) === "Array" && f.typeOf(a[r]) === "Array") {
1271
1281
  if (f.typeOf(a[r]) === "Array") {
1272
1282
  var t;
1273
- (t = a[r]).push.apply(t, ne(o[r]));
1283
+ (t = a[r]).push.apply(t, re(o[r]));
1274
1284
  }
1275
1285
  } else
1276
1286
  f.typeOf(a[r]) === f.typeOf(o[r]) && a[r] !== null && f.typeOf(a[r]) === "Object" && !(o[r] instanceof window.Node) ? f.deepMerge(a[r], o[r]) : o[r] !== null && (a[r] = o[r]);
@@ -1351,7 +1361,7 @@ f.checkIsFunction = function(a) {
1351
1361
  return a && typeof a == "function";
1352
1362
  };
1353
1363
  f.checkIsObject = function(a) {
1354
- return a !== null && G(a) === "object";
1364
+ return a !== null && K(a) === "object";
1355
1365
  };
1356
1366
  f.hide = function(a) {
1357
1367
  a.style.display = "none";
@@ -1581,7 +1591,7 @@ f.getCurrentTimeByOffset = function(a, o) {
1581
1591
  return a;
1582
1592
  };
1583
1593
  function Wi(a) {
1584
- var o = G(a);
1594
+ var o = K(a);
1585
1595
  return a !== null && (o === "object" || o === "function");
1586
1596
  }
1587
1597
  function hr(a, o, r) {
@@ -1627,12 +1637,12 @@ function hr(a, o, r) {
1627
1637
  function A() {
1628
1638
  return s === void 0 ? n : R(Date.now());
1629
1639
  }
1630
- function K() {
1640
+ function Y() {
1631
1641
  return s !== void 0;
1632
1642
  }
1633
1643
  function j() {
1634
- for (var M = Date.now(), q = b(M), ee = arguments.length, te = new Array(ee), Ee = 0; Ee < ee; Ee++)
1635
- te[Ee] = arguments[Ee];
1644
+ for (var M = Date.now(), q = b(M), ee = arguments.length, te = new Array(ee), Se = 0; Se < ee; Se++)
1645
+ te[Se] = arguments[Se];
1636
1646
  if (t = te, e = this, l = M, q) {
1637
1647
  if (s === void 0)
1638
1648
  return k(l);
@@ -1641,7 +1651,7 @@ function hr(a, o, r) {
1641
1651
  }
1642
1652
  return s === void 0 && (s = m(N, o)), n;
1643
1653
  }
1644
- return j.cancel = B, j.flush = A, j.pending = K, j;
1654
+ return j.cancel = B, j.flush = A, j.pending = Y, j;
1645
1655
  }
1646
1656
  function dr(a, o, r) {
1647
1657
  var t = !0, e = !0;
@@ -1824,7 +1834,7 @@ var ui = {
1824
1834
  return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
1825
1835
  }
1826
1836
  }
1827
- ), Q = "play", Yt = "playing", Le = "ended", je = "pause", qe = "error", pt = "seeking", ge = "seeked", J = "timeupdate", Ze = "waiting", de = "canplay", mr = "canplaythrough", Te = "durationchange", Gi = "volumechange", ve = "loadeddata", yr = "loadedmetadata", Ki = "ratechange", Yi = "progress", $t = "loadstart", De = "emptied", _r = "stalled", Cr = "suspend", kr = "abort", br = "bufferedChange", Xt = "focus", $i = "blur", qt = "ready", Xi = "urlNull", Ie = "autoplay_started", Zt = "autoplay_was_prevented", vt = "complete", st = "replay", Jt = "destroy", mt = "urlchange", Ut = "download_speed_change", qi = "leaveplayer", Zi = "enterplayer", Ji = "loading", ue = "fullscreen_change", ot = "cssFullscreen_change", at = "mini_state_change", Qt = "definition_change", Tr = "before_definition_change", Vt = "after_definition_change", wr = "SEI_PARSED", Er = "retry", ke = "video_resize", jt = "pip_change", Qi = "rotate", en = "screenShot", lt = "playnext", tn = "shortcut", nn = "xglog", ut = "user_action", yt = "reset", rn = "source_error", sn = "source_success", Sr = "switch_subtitle", on = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], an = {
1837
+ ), Q = "play", Yt = "playing", Ae = "ended", je = "pause", qe = "error", pt = "seeking", ge = "seeked", J = "timeupdate", Ze = "waiting", de = "canplay", mr = "canplaythrough", we = "durationchange", Gi = "volumechange", ve = "loadeddata", yr = "loadedmetadata", Ki = "ratechange", Yi = "progress", $t = "loadstart", Le = "emptied", _r = "stalled", Cr = "suspend", kr = "abort", br = "bufferedChange", Xt = "focus", $i = "blur", qt = "ready", Xi = "urlNull", Ie = "autoplay_started", Zt = "autoplay_was_prevented", vt = "complete", st = "replay", Jt = "destroy", mt = "urlchange", Ut = "download_speed_change", qi = "leaveplayer", Zi = "enterplayer", Ji = "loading", ue = "fullscreen_change", ot = "cssFullscreen_change", at = "mini_state_change", Qt = "definition_change", Tr = "before_definition_change", Vt = "after_definition_change", wr = "SEI_PARSED", Er = "retry", be = "video_resize", jt = "pip_change", Qi = "rotate", en = "screenShot", lt = "playnext", tn = "shortcut", nn = "xglog", ut = "user_action", yt = "reset", rn = "source_error", sn = "source_success", Sr = "switch_subtitle", on = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], an = {
1828
1838
  STATS_INFO: "stats_info",
1829
1839
  STATS_DOWNLOAD: "stats_download",
1830
1840
  STATS_RESET: "stats_reset"
@@ -1844,9 +1854,9 @@ const xr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1844
1854
  DEFINITION_CHANGE: Qt,
1845
1855
  DESTROY: Jt,
1846
1856
  DOWNLOAD_SPEED_CHANGE: Ut,
1847
- DURATION_CHANGE: Te,
1848
- EMPTIED: De,
1849
- ENDED: Le,
1857
+ DURATION_CHANGE: we,
1858
+ EMPTIED: Le,
1859
+ ENDED: Ae,
1850
1860
  ENTER_PLAYER: Zi,
1851
1861
  ERROR: qe,
1852
1862
  FPS_STUCK: ln,
@@ -1887,7 +1897,7 @@ const xr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1887
1897
  URL_NULL: Xi,
1888
1898
  USER_ACTION: ut,
1889
1899
  VIDEO_EVENTS: on,
1890
- VIDEO_RESIZE: ke,
1900
+ VIDEO_RESIZE: be,
1891
1901
  VOLUME_CHANGE: Gi,
1892
1902
  WAITING: Ze,
1893
1903
  XGLOG: nn
@@ -2426,7 +2436,7 @@ var Ir = /* @__PURE__ */ function(a) {
2426
2436
  t.clear();
2427
2437
  }
2428
2438
  }]), a;
2429
- }(), hi = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], di = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], gi = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], xe = "data-xgplayerid";
2439
+ }(), hi = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], di = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], gi = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], Pe = "data-xgplayerid";
2430
2440
  function Je(a, o, r) {
2431
2441
  for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
2432
2442
  e[i - 3] = arguments[i];
@@ -2455,7 +2465,7 @@ function ct(a, o) {
2455
2465
  try {
2456
2466
  var n, s = (n = this.__hooks[a]).call.apply(n, [this, this].concat(Array.prototype.slice.call(arguments)));
2457
2467
  s ? s.then ? s.then(function(l) {
2458
- l !== !1 && Je.apply(void 0, [e, o, r.next].concat(ne(t)));
2468
+ l !== !1 && Je.apply(void 0, [e, o, r.next].concat(re(t)));
2459
2469
  }).catch(function(l) {
2460
2470
  throw l;
2461
2471
  }) : Je.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments))) : s === void 0 && Je.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
@@ -2527,7 +2537,7 @@ function ce(a, o, r) {
2527
2537
  function Tt(a, o) {
2528
2538
  D.logError("[".concat(a, "] event or callback cant be undefined or null when call ").concat(o));
2529
2539
  }
2530
- var be = /* @__PURE__ */ function() {
2540
+ var Te = /* @__PURE__ */ function() {
2531
2541
  function a(o) {
2532
2542
  w(this, a), f.checkIsFunction(this.beforeCreate) && this.beforeCreate(o), un(this), this.__args = o, this.__events = {}, this.__onceEvents = {}, this.config = o.config || {}, this.player = null, this.playerConfig = {}, this.pluginName = "", this.__init(o);
2533
2543
  }
@@ -2714,8 +2724,8 @@ var be = /* @__PURE__ */ function() {
2714
2724
  }]), a;
2715
2725
  }(), Lr = 9;
2716
2726
  if (typeof Element < "u" && !Element.prototype.matches) {
2717
- var Oe = Element.prototype;
2718
- Oe.matches = Oe.matchesSelector || Oe.mozMatchesSelector || Oe.msMatchesSelector || Oe.oMatchesSelector || Oe.webkitMatchesSelector;
2727
+ var Re = Element.prototype;
2728
+ Re.matches = Re.matchesSelector || Re.mozMatchesSelector || Re.msMatchesSelector || Re.oMatchesSelector || Re.webkitMatchesSelector;
2719
2729
  }
2720
2730
  function Dr(a, o) {
2721
2731
  for (; a && a.nodeType !== Lr; ) {
@@ -2766,10 +2776,10 @@ function Et(a) {
2766
2776
  return a ? a.indexOf && /^(?:http|data:|\/)/.test(a) : !1;
2767
2777
  }
2768
2778
  function Hr(a, o) {
2769
- return G(a) === "object" && a.class && typeof a.class == "string" ? "".concat(o, " ").concat(a.class) : o;
2779
+ return K(a) === "object" && a.class && typeof a.class == "string" ? "".concat(o, " ").concat(a.class) : o;
2770
2780
  }
2771
2781
  function Ur(a, o) {
2772
- return G(a) === "object" && a.attr && G(a.attr) === "object" && Object.keys(a.attr).map(function(r) {
2782
+ return K(a) === "object" && a.attr && K(a.attr) === "object" && Object.keys(a.attr).map(function(r) {
2773
2783
  o[r] = a.attr[r];
2774
2784
  }), o;
2775
2785
  }
@@ -2849,11 +2859,11 @@ var F = /* @__PURE__ */ function(a) {
2849
2859
  if (this.root) {
2850
2860
  this._children = [];
2851
2861
  var i = this.children();
2852
- i && G(i) === "object" && Object.keys(i).length > 0 && Object.keys(i).map(function(n) {
2862
+ i && K(i) === "object" && Object.keys(i).length > 0 && Object.keys(i).map(function(n) {
2853
2863
  var s = n, l = i[s], u = {
2854
2864
  root: e.root
2855
2865
  }, c, h;
2856
- typeof l == "function" ? (c = e.config[s] || {}, h = l) : G(l) === "object" && typeof l.plugin == "function" && (c = l.options ? f.deepCopy(e.config[s] || {}, l.options) : e.config[s] || {}, h = l.plugin), u.config = c, c.index !== void 0 && (u.index = c.index), c.root && (u.root = c.root), e.registerPlugin(h, u, s);
2866
+ typeof l == "function" ? (c = e.config[s] || {}, h = l) : K(l) === "object" && typeof l.plugin == "function" && (c = l.options ? f.deepCopy(e.config[s] || {}, l.options) : e.config[s] || {}, h = l.plugin), u.config = c, c.index !== void 0 && (u.index = c.index), c.root && (u.root = c.root), e.registerPlugin(h, u, s);
2857
2867
  });
2858
2868
  }
2859
2869
  }
@@ -3101,7 +3111,7 @@ var F = /* @__PURE__ */ function(a) {
3101
3111
  return H;
3102
3112
  }
3103
3113
  }]), r;
3104
- }(be), zr = /* @__PURE__ */ function() {
3114
+ }(Te), zr = /* @__PURE__ */ function() {
3105
3115
  function a() {
3106
3116
  var o = this;
3107
3117
  if (w(this, a), y(this, "__trigger", function(r) {
@@ -3123,7 +3133,7 @@ var F = /* @__PURE__ */ function(a) {
3123
3133
  value: function(r, t) {
3124
3134
  if (this.observer) {
3125
3135
  this.observer && this.observer.observe(r);
3126
- for (var e = r.getAttribute(xe), i = this.__handlers, n = -1, s = 0; s < i.length; s++)
3136
+ for (var e = r.getAttribute(Pe), i = this.__handlers, n = -1, s = 0; s < i.length; s++)
3127
3137
  i[s] && r === i[s].target && (n = s);
3128
3138
  n > -1 ? this.__handlers[n].handler = t : this.__handlers.push({
3129
3139
  target: r,
@@ -3488,11 +3498,11 @@ var Kr = function(o, r) {
3488
3498
  var t, e, i;
3489
3499
  r.preset && r.options ? i = new r.preset(r.options, o.config) : i = new r({}, o.config);
3490
3500
  var n = i, s = n.plugins, l = s === void 0 ? [] : s, u = n.ignores, c = u === void 0 ? [] : u, h = n.icons, d = h === void 0 ? {} : h, g = n.i18n, p = g === void 0 ? [] : g;
3491
- o.config.plugins || (o.config.plugins = []), o.config.ignores || (o.config.ignores = []), (t = o.config.plugins).push.apply(t, ne(l)), (e = o.config.ignores).push.apply(e, ne(c)), Object.keys(d).map(function(_) {
3501
+ o.config.plugins || (o.config.plugins = []), o.config.ignores || (o.config.ignores = []), (t = o.config.plugins).push.apply(t, re(l)), (e = o.config.ignores).push.apply(e, re(c)), Object.keys(d).map(function(_) {
3492
3502
  o.config.icons[_] || (o.config.icons[_] = d[_]);
3493
3503
  });
3494
3504
  var m = o.config.i18n || [];
3495
- p.push.apply(p, ne(m)), o.config.i18n = p;
3505
+ p.push.apply(p, re(m)), o.config.i18n = p;
3496
3506
  }, Yr = /* @__PURE__ */ function(a) {
3497
3507
  S(r, a);
3498
3508
  var o = x(r);
@@ -3739,7 +3749,7 @@ function $e(a, o) {
3739
3749
  var t = f.typeOf(o[r]), e = f.typeOf(a[r]);
3740
3750
  if (t === "Array") {
3741
3751
  var i;
3742
- e !== "Array" && (a[r] = []), (i = a[r]).push.apply(i, ne(o[r]));
3752
+ e !== "Array" && (a[r] = []), (i = a[r]).push.apply(i, re(o[r]));
3743
3753
  } else
3744
3754
  t === "Object" ? (e !== "Object" && (a[r] = {}), $e(a[r], o[r])) : a[r] = o[r];
3745
3755
  }), a;
@@ -3779,10 +3789,10 @@ function qr(a) {
3779
3789
  textKeys: {},
3780
3790
  pId: a
3781
3791
  };
3782
- return $e(r.lang, Z.lang), (o = r.langKeys).push.apply(o, ne(Z.langKeys)), $e(r.textKeys, Z.textKeys), r;
3792
+ return $e(r.lang, Z.lang), (o = r.langKeys).push.apply(o, re(Z.langKeys)), $e(r.textKeys, Z.textKeys), r;
3783
3793
  }
3784
3794
  ei($r);
3785
- var Ve = {
3795
+ var Ue = {
3786
3796
  get textKeys() {
3787
3797
  return Z.textKeys;
3788
3798
  },
@@ -3807,7 +3817,7 @@ var Ve = {
3807
3817
  RUNNING: 6,
3808
3818
  ENDED: 7,
3809
3819
  DESTROYED: 8
3810
- }, ki = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], Y = {}, St = null, hn = /* @__PURE__ */ function(a) {
3820
+ }, ki = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], $ = {}, St = null, hn = /* @__PURE__ */ function(a) {
3811
3821
  S(r, a);
3812
3822
  var o = x(r);
3813
3823
  function r() {
@@ -3816,20 +3826,20 @@ var Ve = {
3816
3826
  return E(r, [{
3817
3827
  key: "add",
3818
3828
  value: function(e) {
3819
- e && (Y[e.playerId] = e, Object.keys(Y).length === 1 && this.setActive(e.playerId, !0));
3829
+ e && ($[e.playerId] = e, Object.keys($).length === 1 && this.setActive(e.playerId, !0));
3820
3830
  }
3821
3831
  }, {
3822
3832
  key: "remove",
3823
3833
  value: function(e) {
3824
- e && (e.isUserActive, delete Y[e.playerId]);
3834
+ e && (e.isUserActive, delete $[e.playerId]);
3825
3835
  }
3826
3836
  }, {
3827
3837
  key: "_iterate",
3828
3838
  value: function(e) {
3829
3839
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
3830
- for (var n in Y)
3831
- if (Object.prototype.hasOwnProperty.call(Y, n)) {
3832
- var s = Y[n];
3840
+ for (var n in $)
3841
+ if (Object.prototype.hasOwnProperty.call($, n)) {
3842
+ var s = $[n];
3833
3843
  if (i) {
3834
3844
  if (e(s))
3835
3845
  break;
@@ -3863,16 +3873,16 @@ var Ve = {
3863
3873
  key: "setActive",
3864
3874
  value: function(e) {
3865
3875
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
3866
- if (Y[e])
3876
+ if ($[e])
3867
3877
  return i ? this.forEach(function(n) {
3868
3878
  e === n.playerId ? (n.isUserActive = !0, n.isInstNext = !1) : n.isUserActive = !1;
3869
- }) : Y[e].isUserActive = i, e;
3879
+ }) : $[e].isUserActive = i, e;
3870
3880
  }
3871
3881
  }, {
3872
3882
  key: "getActiveId",
3873
3883
  value: function() {
3874
- for (var e = Object.keys(Y), i = 0; i < e.length; i++) {
3875
- var n = Y[e[i]];
3884
+ for (var e = Object.keys($), i = 0; i < e.length; i++) {
3885
+ var n = $[e[i]];
3876
3886
  if (n && n.isUserActive)
3877
3887
  return e[i];
3878
3888
  }
@@ -3882,10 +3892,10 @@ var Ve = {
3882
3892
  key: "setNext",
3883
3893
  value: function(e) {
3884
3894
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
3885
- if (Y[e])
3895
+ if ($[e])
3886
3896
  return i ? this.forEach(function(n) {
3887
3897
  e === n.playerId ? (n.isUserActive = !1, n.isInstNext = !0) : n.isInstNext = !1;
3888
- }) : Y[e].isInstNext = i, e;
3898
+ }) : $[e].isInstNext = i, e;
3889
3899
  }
3890
3900
  }], [{
3891
3901
  key: "getInstance",
@@ -3895,8 +3905,8 @@ var Ve = {
3895
3905
  }]), r;
3896
3906
  }(ji.EventEmitter);
3897
3907
  function Zr(a) {
3898
- for (var o = Object.keys(Y), r = 0; r < o.length; r++) {
3899
- var t = Y[o[r]];
3908
+ for (var o = Object.keys($), r = 0; r < o.length; r++) {
3909
+ var t = $[o[r]];
3900
3910
  if (t.root === a)
3901
3911
  return t;
3902
3912
  }
@@ -3932,7 +3942,7 @@ var Jr = ["play", "pause", "replay", "retry"], bi = 0, Ti = 0, me = null, _t = /
3932
3942
  to: !1
3933
3943
  }]
3934
3944
  });
3935
- var T = pr(k, e.playerId, xe);
3945
+ var T = pr(k, e.playerId, Pe);
3936
3946
  if (m || k && (k === e._fullscreenEl || T))
3937
3947
  _(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, k, C.FULLSCREEN), e.emit(ue, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
3938
3948
  else if (e.fullscreen) {
@@ -3981,7 +3991,7 @@ var Jr = ["play", "pause", "replay", "retry"], bi = 0, Ti = 0, me = null, _t = /
3981
3991
  }, e._offsetInfo = {
3982
3992
  currentTime: -1,
3983
3993
  duration: 0
3984
- }, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = Ve.init(e._pluginInfoId), L.os.isAndroid && L.osVersion > 0 && L.osVersion < 6 && (e.config.autoplay = !1), e.database = new Ar(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
3994
+ }, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = Ue.init(e._pluginInfoId), L.os.isAndroid && L.osVersion > 0 && L.osVersion < 6 && (e.config.autoplay = !1), e.database = new Ar(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
3985
3995
  isActiveLocked: !1
3986
3996
  }, e.instManager = me;
3987
3997
  var l = e._initDOM();
@@ -4014,7 +4024,7 @@ var Jr = ["play", "pause", "replay", "retry"], bi = 0, Ti = 0, me = null, _t = /
4014
4024
  })), console.error("this.confg.id or this.config.el can't be empty"), !1;
4015
4025
  }
4016
4026
  var s = Zr(this.root);
4017
- s && (D.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(xe, this.playerId), (e = me) === null || e === void 0 || e.add(this), z.init(this), this._initBaseDoms();
4027
+ s && (D.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(Pe, this.playerId), (e = me) === null || e === void 0 || e.add(this), z.init(this), this._initBaseDoms();
4018
4028
  var l = this.constructor.XgVideoProxy;
4019
4029
  if (l && this.mediaConfig.mediaType === l.mediaType) {
4020
4030
  var u = this.innerContainer || this.root;
@@ -4022,7 +4032,7 @@ var Jr = ["play", "pause", "replay", "retry"], bi = 0, Ti = 0, me = null, _t = /
4022
4032
  var c = new l(u, this.config, this.mediaConfig);
4023
4033
  this.attachVideoEvents(c), this.media = c;
4024
4034
  }
4025
- if (this.media.setAttribute(xe, this.playerId), this.config.controls) {
4035
+ if (this.media.setAttribute(Pe, this.playerId), this.config.controls) {
4026
4036
  var h = this.config.controls.root || null, d = z.register(this, Yr, {
4027
4037
  root: h
4028
4038
  });
@@ -4102,7 +4112,7 @@ var Jr = ["play", "pause", "replay", "retry"], bi = 0, Ti = 0, me = null, _t = /
4102
4112
  var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
4103
4113
  this._loadingPlugins = [];
4104
4114
  var n = this.config.ignores || [], s = this.config.plugins || [], l = this.config.i18n || [];
4105
- i && Ve.extend(l, this.__i18n);
4115
+ i && Ue.extend(l, this.__i18n);
4106
4116
  var u = n.join("||").toLowerCase().split("||"), c = this.plugins;
4107
4117
  s.forEach(function(h) {
4108
4118
  try {
@@ -4167,7 +4177,7 @@ var Jr = ["play", "pause", "replay", "retry"], bi = 0, Ti = 0, me = null, _t = /
4167
4177
  }, {
4168
4178
  key: "deregister",
4169
4179
  value: function(e) {
4170
- typeof e == "string" ? z.unRegister(this, e) : e instanceof be && z.unRegister(this, e.pluginName);
4180
+ typeof e == "string" ? z.unRegister(this, e) : e instanceof Te && z.unRegister(this, e.pluginName);
4171
4181
  }
4172
4182
  }, {
4173
4183
  key: "unRegisterPlugin",
@@ -4179,7 +4189,7 @@ var Jr = ["play", "pause", "replay", "retry"], bi = 0, Ti = 0, me = null, _t = /
4179
4189
  key: "removePluginFromConfig",
4180
4190
  value: function(e) {
4181
4191
  var i;
4182
- if (typeof e == "string" ? i = e : e instanceof be && (i = e.pluginName), !!i)
4192
+ if (typeof e == "string" ? i = e : e instanceof Te && (i = e.pluginName), !!i)
4183
4193
  for (var n = this.config.plugins.length - 1; n > -1; n--) {
4184
4194
  var s = this.config.plugins[n];
4185
4195
  if (s.pluginName.toLowerCase() === i.toLowerCase()) {
@@ -4407,7 +4417,7 @@ var Jr = ["play", "pause", "replay", "retry"], bi = 0, Ti = 0, me = null, _t = /
4407
4417
  value: function() {
4408
4418
  var e, i = this, n = this.innerContainer, s = this.root, l = this.media;
4409
4419
  if (!(!s || !l)) {
4410
- if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(xe), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(Jt), (e = me) === null || e === void 0 || e.remove(this), z.destroy(this), cn(this), I(P(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
4420
+ if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(Pe), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(Jt), (e = me) === null || e === void 0 || e.remove(this), z.destroy(this), cn(this), I(P(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
4411
4421
  for (var u = n.children, c = 0; c < u.length; c++)
4412
4422
  n.removeChild(u[c]);
4413
4423
  !n && l instanceof window.Node && s.contains(l) && s.removeChild(l), ["topBar", "leftBar", "rightBar", "innerContainer"].map(function(d) {
@@ -4450,12 +4460,12 @@ var Jr = ["play", "pause", "replay", "retry"], bi = 0, Ti = 0, me = null, _t = /
4450
4460
  }, {
4451
4461
  key: "changeFullStyle",
4452
4462
  value: function(e, i, n, s) {
4453
- e && (s || (s = C.PARENT_FULLSCREEN), this._orgCss || (this._orgCss = f.filterStyleFromText(e)), f.addClass(e, n), i && i !== e && !this._orgPCss && (this._orgPCss = f.filterStyleFromText(i), f.addClass(i, s), i.setAttribute(xe, this.playerId)));
4463
+ e && (s || (s = C.PARENT_FULLSCREEN), this._orgCss || (this._orgCss = f.filterStyleFromText(e)), f.addClass(e, n), i && i !== e && !this._orgPCss && (this._orgPCss = f.filterStyleFromText(i), f.addClass(i, s), i.setAttribute(Pe, this.playerId)));
4454
4464
  }
4455
4465
  }, {
4456
4466
  key: "recoverFullStyle",
4457
4467
  value: function(e, i, n, s) {
4458
- s || (s = C.PARENT_FULLSCREEN), this._orgCss && (f.setStyleFromCsstext(e, this._orgCss), this._orgCss = ""), f.removeClass(e, n), i && i !== e && this._orgPCss && (f.setStyleFromCsstext(i, this._orgPCss), this._orgPCss = "", f.removeClass(i, s), i.removeAttribute(xe));
4468
+ s || (s = C.PARENT_FULLSCREEN), this._orgCss && (f.setStyleFromCsstext(e, this._orgCss), this._orgCss = ""), f.removeClass(e, n), i && i !== e && this._orgPCss && (f.setStyleFromCsstext(i, this._orgPCss), this._orgPCss = "", f.removeClass(i, s), i.removeAttribute(Pe));
4459
4469
  }
4460
4470
  }, {
4461
4471
  key: "getFullscreen",
@@ -4797,7 +4807,7 @@ var Jr = ["play", "pause", "replay", "retry"], bi = 0, Ti = 0, me = null, _t = /
4797
4807
  cWidth: k,
4798
4808
  cHeight: T + d
4799
4809
  };
4800
- this.resizePosition(), this.emit(ke, N);
4810
+ this.resizePosition(), this.emit(be, N);
4801
4811
  }
4802
4812
  }
4803
4813
  }
@@ -4888,11 +4898,11 @@ var Jr = ["play", "pause", "replay", "retry"], bi = 0, Ti = 0, me = null, _t = /
4888
4898
  return this.config.lang;
4889
4899
  },
4890
4900
  set: function(e) {
4891
- var i = Ve.langKeys.filter(function(n) {
4901
+ var i = Ue.langKeys.filter(function(n) {
4892
4902
  return n === e;
4893
4903
  });
4894
4904
  if (i.length === 0 && e !== "zh") {
4895
- console.error("Sorry, set lang fail, because the language [".concat(e, "] is not supported now, list of all supported languages is [").concat(Ve.langKeys.join(), "] "));
4905
+ console.error("Sorry, set lang fail, because the language [".concat(e, "] is not supported now, list of all supported languages is [").concat(Ue.langKeys.join(), "] "));
4896
4906
  return;
4897
4907
  }
4898
4908
  this.config.lang = e, z.setLang(e, this);
@@ -5288,7 +5298,7 @@ var ts = /* @__PURE__ */ function(a) {
5288
5298
  pre: function(n) {
5289
5299
  n.preventDefault(), n.stopPropagation();
5290
5300
  }
5291
- }), this.bind(".xgplayer-replay", ["click", "touchend"], this.__handleReplay), this.on(Le, function() {
5301
+ }), this.bind(".xgplayer-replay", ["click", "touchend"], this.__handleReplay), this.on(Ae, function() {
5292
5302
  if (e.playerConfig.loop || f.addClass(e.player.root, "replay"), !e.config.disable) {
5293
5303
  e.show();
5294
5304
  var i = e.root.querySelector("path");
@@ -5381,7 +5391,7 @@ var ts = /* @__PURE__ */ function(a) {
5381
5391
  key: "afterCreate",
5382
5392
  value: function() {
5383
5393
  var e = this;
5384
- this.on(Le, function() {
5394
+ this.on(Ae, function() {
5385
5395
  e.isEndedShow && f.removeClass(e.root, "hide");
5386
5396
  }), this.config.hideCanplay ? (this.once(J, function() {
5387
5397
  e.onTimeUpdate();
@@ -5472,23 +5482,23 @@ function ii() {
5472
5482
  </svg>
5473
5483
  `, "image/svg+xml").firstChild;
5474
5484
  }
5475
- var oe = {};
5485
+ var ae = {};
5476
5486
  function ns(a, o) {
5477
5487
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
5478
5488
  start: null,
5479
5489
  end: null
5480
5490
  };
5481
- return oe[a] && window.clearTimeout(oe[a].id), oe[a] = {}, r.start && r.start(), oe[a].id = window.setTimeout(function() {
5482
- r.end && r.end(), window.clearTimeout(oe[a].id), delete oe[a];
5483
- }, o), oe[a].id;
5491
+ return ae[a] && window.clearTimeout(ae[a].id), ae[a] = {}, r.start && r.start(), ae[a].id = window.setTimeout(function() {
5492
+ r.end && r.end(), window.clearTimeout(ae[a].id), delete ae[a];
5493
+ }, o), ae[a].id;
5484
5494
  }
5485
5495
  function wi(a) {
5486
5496
  if (a) {
5487
5497
  window.clearTimeout(a);
5488
5498
  return;
5489
5499
  }
5490
- Object.keys(oe).map(function(o) {
5491
- window.clearTimeout(oe[o].id), delete oe[o];
5500
+ Object.keys(ae).map(function(o) {
5501
+ window.clearTimeout(ae[o].id), delete ae[o];
5492
5502
  });
5493
5503
  }
5494
5504
  var rs = /* @__PURE__ */ function(a) {
@@ -5702,7 +5712,7 @@ var rs = /* @__PURE__ */ function(a) {
5702
5712
  }
5703
5713
  }]), r;
5704
5714
  }(F);
5705
- function we(a, o, r) {
5715
+ function Ee(a, o, r) {
5706
5716
  try {
5707
5717
  return ' <div class="xg-tips '.concat(r ? "hide" : " ", '" lang-key="').concat(a.i18nKeys[o], `">
5708
5718
  `).concat(a.i18n[o], `
@@ -5785,7 +5795,7 @@ function as(a) {
5785
5795
  return o;
5786
5796
  }
5787
5797
  function xi(a) {
5788
- if (typeof a == "string" && (a = document.querySelector(a)), !(!a || G(a) !== "object" || !a.nodeType)) {
5798
+ if (typeof a == "string" && (a = document.querySelector(a)), !(!a || K(a) !== "object" || !a.nodeType)) {
5789
5799
  var o = as(a);
5790
5800
  if (o.display === "none")
5791
5801
  return os();
@@ -6143,7 +6153,7 @@ var Pt = {
6143
6153
  return `
6144
6154
  <xg-mini-layer class="xg-mini-layer">
6145
6155
  <xg-mini-header class="xgplayer-mini-header">
6146
- `.concat(we(this, "MINI_DRAG", this.playerConfig.isHideTips), `
6156
+ `.concat(Ee(this, "MINI_DRAG", this.playerConfig.isHideTips), `
6147
6157
  </xg-mini-header>
6148
6158
  <div class="mini-cancel-btn">
6149
6159
  <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
@@ -6288,7 +6298,7 @@ var Pt = {
6288
6298
  return {};
6289
6299
  }
6290
6300
  }]), r;
6291
- }(be), _e = {
6301
+ }(Te), _e = {
6292
6302
  PRESS: "press",
6293
6303
  PRESS_END: "pressend",
6294
6304
  DOUBlE_CLICK: "doubleclick",
@@ -6431,7 +6441,7 @@ function gs() {
6431
6441
  <path transform="translate(5 0)" d="M7.5 3.63397C8.16667 4.01887 8.16667 4.98113 7.5 5.36603L1.5 8.83013C0.833334 9.21503 0 8.7339 0 7.9641L0 1.0359C0 0.266098 0.833333 -0.215027 1.5 0.169873L7.5 3.63397Z" fill="white"/>
6432
6442
  </svg>`, "image/svg+xml").firstChild;
6433
6443
  }
6434
- var Me = {
6444
+ var Oe = {
6435
6445
  AUTO: "auto",
6436
6446
  SEEKING: "seeking",
6437
6447
  PLAYBACK: "playbackrate",
@@ -6470,7 +6480,7 @@ var Me = {
6470
6480
  }, 10), !!l.isStart) {
6471
6481
  l.scope > -1 && i.cancelable && i.preventDefault();
6472
6482
  var c = e.config, h = c.disableGesture, d = c.gestureX;
6473
- !h && d ? e.endLastMove(l.scope) : l.time = 0, l.scope = -1, e.resetPos(), f.checkIsFunction(u.enableSwipeHandler) && u.enableSwipeHandler(), e.changeAction(Me.AUTO);
6483
+ !h && d ? e.endLastMove(l.scope) : l.time = 0, l.scope = -1, e.resetPos(), f.checkIsFunction(u.enableSwipeHandler) && u.enableSwipeHandler(), e.changeAction(Oe.AUTO);
6474
6484
  }
6475
6485
  }), y(v(e), "onRootTouchMove", function(i) {
6476
6486
  e.config.disableGesture || !e.config.gestureX || e.checkIsRootTarget(i) && (i.stopPropagation(), e.pos.isStart ? e.onTouchMove(i) : e.onTouchStart(i));
@@ -6530,10 +6540,10 @@ var Me = {
6530
6540
  d.preventDefault();
6531
6541
  }), s.root.addEventListener("touchmove", this.onRootTouchMove, !0), s.root.addEventListener("touchend", this.onRootTouchEnd, !0), s.root.addEventListener("touchcancel", this.onRootTouchEnd, !0);
6532
6542
  var u = this.player.controls;
6533
- u && u.center && (u.center.addEventListener("touchmove", this.onRootTouchMove, !0), u.center.addEventListener("touchend", this.onRootTouchEnd, !0), u.center.addEventListener("touchcancel", this.onRootTouchEnd, !0)), this.on(Te, function() {
6543
+ u && u.center && (u.center.addEventListener("touchmove", this.onRootTouchMove, !0), u.center.addEventListener("touchend", this.onRootTouchEnd, !0), u.center.addEventListener("touchcancel", this.onRootTouchEnd, !0)), this.on(we, function() {
6534
6544
  var d = e.player, g = e.config;
6535
6545
  d.duration * 1e3 < g.moveDuration && (g.moveDuration = d.duration * 1e3);
6536
- }), this.on([de, Le], function() {
6546
+ }), this.on([de, Ae], function() {
6537
6547
  var d = e.pos, g = d.time, p = d.isStart;
6538
6548
  !p && g > 0 && (e.pos.time = 0);
6539
6549
  });
@@ -6556,7 +6566,7 @@ var Me = {
6556
6566
  e.activeSeekNote(d.currentTime, d.forward);
6557
6567
  }), ["dragend", "click"].forEach(function(d) {
6558
6568
  h.addCallBack(d, function() {
6559
- e.changeAction(Me.AUTO);
6569
+ e.changeAction(Oe.AUTO);
6560
6570
  });
6561
6571
  }));
6562
6572
  }
@@ -6662,7 +6672,7 @@ var Me = {
6662
6672
  }, 500);
6663
6673
  break;
6664
6674
  }
6665
- this.changeAction(Me.AUTO);
6675
+ this.changeAction(Oe.AUTO);
6666
6676
  }
6667
6677
  }, {
6668
6678
  key: "checkIsRootTarget",
@@ -6726,7 +6736,7 @@ var Me = {
6726
6736
  prop: "playbackRate",
6727
6737
  from: s.playbackRate,
6728
6738
  to: n.pressRate
6729
- }), s.playbackRate = n.pressRate, this.changeAction(Me.PLAYBACK));
6739
+ }), s.playbackRate = n.pressRate, this.changeAction(Oe.PLAYBACK));
6730
6740
  }
6731
6741
  }, {
6732
6742
  key: "onPressEnd",
@@ -6736,7 +6746,7 @@ var Me = {
6736
6746
  prop: "playbackRate",
6737
6747
  from: s.playbackRate,
6738
6748
  to: i.rate
6739
- }), s.playbackRate = i.rate, i.rate = 1, this.changeAction(Me.AUTO));
6749
+ }), s.playbackRate = i.rate, i.rate = 1, this.changeAction(Oe.AUTO));
6740
6750
  }
6741
6751
  }, {
6742
6752
  key: "updateTime",
@@ -6768,7 +6778,7 @@ var Me = {
6768
6778
  value: function(e) {
6769
6779
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, n = this.player, s = this.config, l = !(this.duration !== 1 / 0 && this.duration > 0);
6770
6780
  if (!(!e || typeof e != "number" || l || s.disableActive)) {
6771
- e < 0 ? e = 0 : e > n.duration && (e = n.duration - 0.2), this.changeAction(Me.SEEKING);
6781
+ e < 0 ? e = 0 : e > n.duration && (e = n.duration - 0.2), this.changeAction(Oe.SEEKING);
6772
6782
  var u = n.plugins.start;
6773
6783
  u && u.focusHide(), this.find(".xg-dur").innerHTML = f.format(this.duration), this.find(".xg-cur").innerHTML = f.format(e), this.find(".xg-curbar").style.width = "".concat(e / this.duration * 100, "%"), i ? f.removeClass(this.find(".xg-seek-show"), "xg-back") : f.addClass(this.find(".xg-seek-show"), "xg-back"), this.updateThumbnails(e);
6774
6784
  }
@@ -7155,7 +7165,7 @@ var Li = /* @__PURE__ */ function(a) {
7155
7165
  };
7156
7166
  }
7157
7167
  }]), r;
7158
- }(be);
7168
+ }(Te);
7159
7169
  function ms() {
7160
7170
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">
7161
7171
  <path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>
@@ -7570,7 +7580,7 @@ var ys = /* @__PURE__ */ function(a) {
7570
7580
  fragAutoFocus: s,
7571
7581
  fragClass: l,
7572
7582
  style: this.playerConfig.commonStyle || {}
7573
- }), L.device === "mobile" && (this.config.isDragingSeek = !1, this.isMobile = !0), this.progressBtn = this.find(".xgplayer-progress-btn"), this.on(Te, function() {
7583
+ }), L.device === "mobile" && (this.config.isDragingSeek = !1, this.isMobile = !0), this.progressBtn = this.find(".xgplayer-progress-btn"), this.on(we, function() {
7574
7584
  e.onMouseLeave();
7575
7585
  }), this.on(J, function() {
7576
7586
  e.onTimeupdate();
@@ -7578,11 +7588,11 @@ var ys = /* @__PURE__ */ function(a) {
7578
7588
  e.onTimeupdate(), e.onCacheUpdate();
7579
7589
  }), this.on(Yi, function() {
7580
7590
  e.onCacheUpdate();
7581
- }), this.on(Le, function() {
7591
+ }), this.on(Ae, function() {
7582
7592
  e.onCacheUpdate(!0), e.onTimeupdate(!0), e._state.now = 0;
7583
- }), this.on(De, function() {
7593
+ }), this.on(Le, function() {
7584
7594
  e.onReset();
7585
- }), this.on(ke, function() {
7595
+ }), this.on(be, function() {
7586
7596
  e.onVideoResize();
7587
7597
  }), this.bindDomEvents(), this.initCustomStyle();
7588
7598
  }
@@ -7599,7 +7609,7 @@ var ys = /* @__PURE__ */ function(a) {
7599
7609
  key: "initCustomStyle",
7600
7610
  value: function() {
7601
7611
  var e = this.playerConfig || {}, i = e.commonStyle, n = i.sliderBtnStyle, s = this.progressBtn;
7602
- n && (typeof n == "string" ? s.style.boxShadow = n : G(n) === "object" && Object.keys(n).map(function(l) {
7612
+ n && (typeof n == "string" ? s.style.boxShadow = n : K(n) === "object" && Object.keys(n).map(function(l) {
7603
7613
  s.style[l] = n[l];
7604
7614
  }));
7605
7615
  }
@@ -7823,7 +7833,7 @@ var ys = /* @__PURE__ */ function(a) {
7823
7833
  return Di;
7824
7834
  }
7825
7835
  }]), r;
7826
- }(F), Re = /* @__PURE__ */ function(a) {
7836
+ }(F), De = /* @__PURE__ */ function(a) {
7827
7837
  S(r, a);
7828
7838
  var o = x(r);
7829
7839
  function r() {
@@ -7864,7 +7874,7 @@ var ys = /* @__PURE__ */ function(a) {
7864
7874
  var e = this;
7865
7875
  I(P(r.prototype), "afterCreate", this).call(this);
7866
7876
  var i = this.player, n = this.config;
7867
- n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([je, qe, De], function() {
7877
+ n.disable || (this.initIcons(), this.btnClick = this.btnClick.bind(this), this.bind(["touchend", "click"], this.btnClick), this.on([je, qe, Le], function() {
7868
7878
  e.animate(i.paused);
7869
7879
  }), this.on(Q, function() {
7870
7880
  e.animate(i.paused);
@@ -7921,7 +7931,7 @@ var ys = /* @__PURE__ */ function(a) {
7921
7931
  return `<xg-icon class="xgplayer-play">
7922
7932
  <div class="xgplayer-icon">
7923
7933
  </div>
7924
- `.concat(we(this, "PLAY_TIPS", this.playerConfig.isHideTips), `
7934
+ `.concat(Ee(this, "PLAY_TIPS", this.playerConfig.isHideTips), `
7925
7935
  </xg-icon>`);
7926
7936
  }
7927
7937
  }], [{
@@ -7939,7 +7949,7 @@ var ys = /* @__PURE__ */ function(a) {
7939
7949
  };
7940
7950
  }
7941
7951
  }]), r;
7942
- }(Re);
7952
+ }(De);
7943
7953
  function Ts() {
7944
7954
  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">
7945
7955
  <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
@@ -8112,7 +8122,7 @@ var xs = /* @__PURE__ */ function(a) {
8112
8122
  return `<xg-icon class="xgplayer-fullscreen">
8113
8123
  <div class="xgplayer-icon">
8114
8124
  </div>
8115
- `.concat(we(this, e, this.playerConfig.isHideTips), `
8125
+ `.concat(Ee(this, e, this.playerConfig.isHideTips), `
8116
8126
  </xg-icon>`);
8117
8127
  }
8118
8128
  }
@@ -8156,7 +8166,7 @@ var xs = /* @__PURE__ */ function(a) {
8156
8166
  };
8157
8167
  }
8158
8168
  }]), r;
8159
- }(Re), Ps = /* @__PURE__ */ function(a) {
8169
+ }(De), Ps = /* @__PURE__ */ function(a) {
8160
8170
  S(r, a);
8161
8171
  var o = x(r);
8162
8172
  function r(t) {
@@ -8184,11 +8194,11 @@ var xs = /* @__PURE__ */ function(a) {
8184
8194
  key: "afterCreate",
8185
8195
  value: function() {
8186
8196
  var e = this, i = this.player.controls.config.mode;
8187
- this.mode = i === "flex" ? "flex" : "normal", !this.config.disable && (this.mode === "flex" && (this.createCenterTime(), this.root.style.display = "none"), this.durationDom = this.find(".time-duration"), this.timeDom = this.find(".time-current"), this.on([Te, ge, J], function(n) {
8197
+ this.mode = i === "flex" ? "flex" : "normal", !this.config.disable && (this.mode === "flex" && (this.createCenterTime(), this.root.style.display = "none"), this.durationDom = this.find(".time-duration"), this.timeDom = this.find(".time-current"), this.on([we, ge, J], function(n) {
8188
8198
  n.eventName === "durationchange" && (e.isActiving = !1), e.onTimeUpdate();
8189
- }), this.on(Le, function() {
8199
+ }), this.on(Ae, function() {
8190
8200
  e.onTimeUpdate(!0);
8191
- }), this.on(De, function() {
8201
+ }), this.on(Le, function() {
8192
8202
  e.onReset();
8193
8203
  }));
8194
8204
  }
@@ -8362,7 +8372,7 @@ var xs = /* @__PURE__ */ function(a) {
8362
8372
  return E(r, [{
8363
8373
  key: "afterCreate",
8364
8374
  value: function() {
8365
- this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(Te, this._onDurationChange), this.on(ve, this._onLoadedData), this.on(J, this._onTimeupdate), this.on(pt, this._onSeeking), this.on(Q, this._onPlay);
8375
+ this.curIndex = -1, this.curPos = null, this.lastCurrentTime = 0, this.updateSegments(), this.on(we, this._onDurationChange), this.on(ve, this._onLoadedData), this.on(J, this._onTimeupdate), this.on(pt, this._onSeeking), this.on(Q, this._onPlay);
8366
8376
  }
8367
8377
  }, {
8368
8378
  key: "setConfig",
@@ -8443,7 +8453,7 @@ var xs = /* @__PURE__ */ function(a) {
8443
8453
  };
8444
8454
  }
8445
8455
  }]), r;
8446
- }(be);
8456
+ }(Te);
8447
8457
  function As() {
8448
8458
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
8449
8459
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
@@ -8686,7 +8696,7 @@ var Ms = /* @__PURE__ */ function(a) {
8686
8696
  value: function() {
8687
8697
  var e = this;
8688
8698
  if (!this.config.disable) {
8689
- I(P(r.prototype), "afterCreate", this).call(this), this.appendChild(".xgplayer-icon", this.icons.rotate), this.onBtnClick = this.onBtnClick.bind(this), this.bind(".xgplayer-icon", ["click", "touchend"], this.onBtnClick), this.on(ke, function() {
8699
+ I(P(r.prototype), "afterCreate", this).call(this), this.appendChild(".xgplayer-icon", this.icons.rotate), this.onBtnClick = this.onBtnClick.bind(this), this.bind(".xgplayer-icon", ["click", "touchend"], this.onBtnClick), this.on(be, function() {
8690
8700
  e.rotateDeg && e.config.innerRotate && f.setTimeout(e, function() {
8691
8701
  e.updateRotateDeg(e.rotateDeg, e.config.innerRotate);
8692
8702
  }, 100);
@@ -8748,7 +8758,7 @@ var Ms = /* @__PURE__ */ function(a) {
8748
8758
  <xg-icon class="xgplayer-rotate">
8749
8759
  <div class="xgplayer-icon">
8750
8760
  </div>
8751
- `.concat(we(this, "ROTATE_TIPS", this.playerConfig.isHideTips), `
8761
+ `.concat(Ee(this, "ROTATE_TIPS", this.playerConfig.isHideTips), `
8752
8762
  </xg-icon>`);
8753
8763
  }
8754
8764
  }], [{
@@ -8769,7 +8779,7 @@ var Ms = /* @__PURE__ */ function(a) {
8769
8779
  };
8770
8780
  }
8771
8781
  }]), r;
8772
- }(Re);
8782
+ }(De);
8773
8783
  function Fs() {
8774
8784
  return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
8775
8785
  <path fill-rule="evenodd" clip-rule="evenodd"
@@ -8787,7 +8797,7 @@ function Ns() {
8787
8797
  fill="white" />
8788
8798
  </svg>`, "image/svg+xml").firstChild;
8789
8799
  }
8790
- var Fe = {
8800
+ var Me = {
8791
8801
  PIP: "picture-in-picture",
8792
8802
  INLINE: "inline",
8793
8803
  FULLSCREEN: "fullscreen"
@@ -8822,7 +8832,7 @@ var Fe = {
8822
8832
  key: "afterCreate",
8823
8833
  value: function() {
8824
8834
  var e = this;
8825
- this.isPIPAvailable() && (I(P(r.prototype), "afterCreate", this).call(this), this.pMode = Fe.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(vt, function() {
8835
+ this.isPIPAvailable() && (I(P(r.prototype), "afterCreate", this).call(this), this.pMode = Me.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(vt, function() {
8826
8836
  e.config.showIcon && (f.removeClass(e.find(".xgplayer-icon"), "xg-icon-disable"), e.bind("click", e.switchPIP));
8827
8837
  }));
8828
8838
  }
@@ -8859,15 +8869,15 @@ var Fe = {
8859
8869
  i.emit(jt, !0), n != null && n.pictureInPictureWindow && (e.pipWindow = n.pictureInPictureWindow), e.setAttr("data-state", "pip");
8860
8870
  }, this.onWebkitpresentationmodechanged = function(n) {
8861
8871
  var s = i.media.webkitPresentationMode;
8862
- e.pMode === Fe.FULLSCREEN && s !== Fe.FULLSCREEN && i.onFullscreenChange(null, !1), e.pMode = s, s === Fe.PIP ? e.enterPIPCallback(n) : s === Fe.INLINE && e.leavePIPCallback(n);
8872
+ e.pMode === Me.FULLSCREEN && s !== Me.FULLSCREEN && i.onFullscreenChange(null, !1), e.pMode = s, s === Me.PIP ? e.enterPIPCallback(n) : s === Me.INLINE && e.leavePIPCallback(n);
8863
8873
  }, i.media && (i.media.addEventListener("enterpictureinpicture", this.enterPIPCallback), i.media.addEventListener("leavepictureinpicture", this.leavePIPCallback), r.checkWebkitSetPresentationMode(i.media) && i.media.addEventListener("webkitpresentationmodechanged", this.onWebkitpresentationmodechanged));
8864
8874
  }
8865
8875
  }, {
8866
8876
  key: "copyStyleIntoPiPWindow",
8867
8877
  value: function(e) {
8868
- var i = ne(document.styleSheets).map(function(s) {
8878
+ var i = re(document.styleSheets).map(function(s) {
8869
8879
  try {
8870
- return ne(s.cssRules).map(function(u) {
8880
+ return re(s.cssRules).map(function(u) {
8871
8881
  return u.cssText;
8872
8882
  }).join("");
8873
8883
  } catch {
@@ -8938,7 +8948,7 @@ var Fe = {
8938
8948
  key: "isPip",
8939
8949
  get: function() {
8940
8950
  var e, i = this.player;
8941
- return !!(this.isDocPIPAvailable() && (e = documentPictureInPicture) !== null && e !== void 0 && e.window) || document.pictureInPictureElement && document.pictureInPictureElement === i.media || i.media.webkitPresentationMode === Fe.PIP;
8951
+ return !!(this.isDocPIPAvailable() && (e = documentPictureInPicture) !== null && e !== void 0 && e.window) || document.pictureInPictureElement && document.pictureInPictureElement === i.media || i.media.webkitPresentationMode === Me.PIP;
8942
8952
  }
8943
8953
  }, {
8944
8954
  key: "isPIPAvailable",
@@ -8965,7 +8975,7 @@ var Fe = {
8965
8975
  return `<xg-icon class="xgplayer-pip">
8966
8976
  <div class="xgplayer-icon xg-icon-disable">
8967
8977
  </div>
8968
- `.concat(we(this, "PIP", this.playerConfig.isHideTips), `
8978
+ `.concat(Ee(this, "PIP", this.playerConfig.isHideTips), `
8969
8979
  </xg-icon>`);
8970
8980
  }
8971
8981
  }], [{
@@ -8993,7 +9003,7 @@ var Fe = {
8993
9003
  return typeof e.webkitSetPresentationMode == "function";
8994
9004
  }
8995
9005
  }]), r;
8996
- }(Re);
9006
+ }(De);
8997
9007
  function Hs() {
8998
9008
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="40" viewBox="10 0 24 40">
8999
9009
  <path transform="scale(0.038 0.028)" d="M800 380v768h-128v-352l-320 320v-704l320 320v-352z"></path>
@@ -9048,7 +9058,7 @@ var Us = /* @__PURE__ */ function(a) {
9048
9058
  <xg-icon class="xgplayer-playnext">
9049
9059
  <div class="xgplayer-icon">
9050
9060
  </div>
9051
- `.concat(we(this, "PLAYNEXT_TIPS", this.playerConfig.isHideTips), `
9061
+ `.concat(Ee(this, "PLAYNEXT_TIPS", this.playerConfig.isHideTips), `
9052
9062
  </xg-icon>
9053
9063
  `);
9054
9064
  }
@@ -9101,15 +9111,15 @@ var Us = /* @__PURE__ */ function(a) {
9101
9111
  }
9102
9112
  m = u instanceof g ? u : new g([u], { type: l });
9103
9113
  function R(A) {
9104
- var K = A.split(/[:;,]/), j = K[1], M = K[2] == "base64" ? atob : decodeURIComponent, q = M(K.pop()), ee = q.length, te = 0, Ee = new Uint8Array(ee);
9114
+ var Y = A.split(/[:;,]/), j = Y[1], M = Y[2] == "base64" ? atob : decodeURIComponent, q = M(Y.pop()), ee = q.length, te = 0, Se = new Uint8Array(ee);
9105
9115
  for (te; te < ee; ++te)
9106
- Ee[te] = q.charCodeAt(te);
9107
- return new g([Ee], { type: j });
9116
+ Se[te] = q.charCodeAt(te);
9117
+ return new g([Se], { type: j });
9108
9118
  }
9109
- function B(A, K) {
9119
+ function B(A, Y) {
9110
9120
  if ("download" in h)
9111
9121
  return h.href = A, h.setAttribute("download", p), h.className = "download-js-link", h.innerHTML = "downloading...", h.style.display = "none", document.body.appendChild(h), setTimeout(function() {
9112
- h.click(), document.body.removeChild(h), K === !0 && setTimeout(function() {
9122
+ h.click(), document.body.removeChild(h), Y === !0 && setTimeout(function() {
9113
9123
  n.URL.revokeObjectURL(h.href);
9114
9124
  }, 250);
9115
9125
  }, 66), !0;
@@ -9118,7 +9128,7 @@ var Us = /* @__PURE__ */ function(a) {
9118
9128
 
9119
9129
  Use Save As... to download, then click back to return to this page.`) && (location.href = A), !0;
9120
9130
  var j = document.createElement("iframe");
9121
- document.body.appendChild(j), !K && /^data:/.test(A) && (A = "data:" + A.replace(/^data:([\w\/\-\+]+)/, s)), j.src = A, setTimeout(function() {
9131
+ document.body.appendChild(j), !Y && /^data:/.test(A) && (A = "data:" + A.replace(/^data:([\w\/\-\+]+)/, s)), j.src = A, setTimeout(function() {
9122
9132
  document.body.removeChild(j);
9123
9133
  }, 333);
9124
9134
  }
@@ -9214,7 +9224,7 @@ var Ws = /* @__PURE__ */ function(a) {
9214
9224
  return `<xg-icon class="xgplayer-download">
9215
9225
  <div class="xgplayer-icon">
9216
9226
  </div>
9217
- `.concat(we(this, "DOWNLOAD_TIPS", this.playerConfig.isHideTips), `
9227
+ `.concat(Ee(this, "DOWNLOAD_TIPS", this.playerConfig.isHideTips), `
9218
9228
  </xg-icon>`);
9219
9229
  }
9220
9230
  }], [{
@@ -9232,7 +9242,7 @@ var Ws = /* @__PURE__ */ function(a) {
9232
9242
  };
9233
9243
  }
9234
9244
  }]), r;
9235
- }(Re), Gs = /* @__PURE__ */ function(a) {
9245
+ }(De), Gs = /* @__PURE__ */ function(a) {
9236
9246
  S(r, a);
9237
9247
  var o = x(r);
9238
9248
  function r() {
@@ -9250,7 +9260,7 @@ var Ws = /* @__PURE__ */ function(a) {
9250
9260
  var e = this.config;
9251
9261
  this.initSize = function(i) {
9252
9262
  e.fitVideo && (e.width = i.vWidth, e.height = i.vHeight);
9253
- }, this.once(ke, this.initSize);
9263
+ }, this.once(be, this.initSize);
9254
9264
  }
9255
9265
  }, {
9256
9266
  key: "onPluginsReady",
@@ -9303,8 +9313,8 @@ var Ws = /* @__PURE__ */ function(a) {
9303
9313
  p = u.media.canvas;
9304
9314
  else {
9305
9315
  n.canvas ? (n.canvas.width = e || l.width, n.canvas.height = i || l.height) : n.createCanvas(e, i), p = n.canvas, m = n.canvasCtx;
9306
- var _ = u.media.videoWidth / u.media.videoHeight, k = p.width / p.height, T = 0, b = 0, N = u.media.videoWidth, R = u.media.videoHeight, B, A, K, j;
9307
- _ > k ? (K = p.width, j = p.width / _, B = 0, A = Math.round((p.height - j) / 2)) : _ === k ? (K = p.width, j = p.height, B = 0, A = 0) : _ < k && (K = p.height * _, j = p.height, B = Math.round((p.width - K) / 2), A = 0), m.drawImage(u.media, T, b, N, R, B, A, K, j);
9316
+ var _ = u.media.videoWidth / u.media.videoHeight, k = p.width / p.height, T = 0, b = 0, N = u.media.videoWidth, R = u.media.videoHeight, B, A, Y, j;
9317
+ _ > k ? (Y = p.width, j = p.width / _, B = 0, A = Math.round((p.height - j) / 2)) : _ === k ? (Y = p.width, j = p.height, B = 0, A = 0) : _ < k && (Y = p.height * _, j = p.height, B = Math.round((p.width - Y) / 2), A = 0), m.drawImage(u.media, T, b, N, R, B, A, Y, j);
9308
9318
  }
9309
9319
  var M = p.toDataURL(h, c).replace(h, "image/octet-stream");
9310
9320
  M = M.replace(/^data:image\/[^;]+/, "data:application/octet-stream"), d(M);
@@ -9320,7 +9330,7 @@ var Ws = /* @__PURE__ */ function(a) {
9320
9330
  }, {
9321
9331
  key: "destroy",
9322
9332
  value: function() {
9323
- I(P(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.onClickBtn), this.off(ke, this.initSize);
9333
+ I(P(r.prototype), "destroy", this).call(this), this.unbind(["click", "touchend"], this.onClickBtn), this.off(be, this.initSize);
9324
9334
  }
9325
9335
  }, {
9326
9336
  key: "render",
@@ -9358,7 +9368,7 @@ var Ws = /* @__PURE__ */ function(a) {
9358
9368
  };
9359
9369
  }
9360
9370
  }]), r;
9361
- }(Re), Ks = /* @__PURE__ */ function() {
9371
+ }(De), Ks = /* @__PURE__ */ function() {
9362
9372
  function a(o) {
9363
9373
  w(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);
9364
9374
  var r = this.config.maxHeight;
@@ -9430,18 +9440,18 @@ var Ws = /* @__PURE__ */ function(a) {
9430
9440
  }), this._delegates = null), this.root.innerHTML = null, this.parent.removeChild(this.root), this.root = null;
9431
9441
  }
9432
9442
  }]), a;
9433
- }(), se = {
9443
+ }(), oe = {
9434
9444
  SIDE: "side",
9435
9445
  MIDDLE: "middle",
9436
9446
  DEFAULT: "default"
9437
- }, Ne = {
9447
+ }, Fe = {
9438
9448
  CLICK: "click",
9439
9449
  HOVER: "hover"
9440
9450
  };
9441
9451
  function Ys(a, o) {
9442
- return a === se.SIDE ? o === H.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
9452
+ return a === oe.SIDE ? o === H.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
9443
9453
  }
9444
- var Se = L.device === "mobile", dt = /* @__PURE__ */ function(a) {
9454
+ var xe = L.device === "mobile", dt = /* @__PURE__ */ function(a) {
9445
9455
  S(r, a);
9446
9456
  var o = x(r);
9447
9457
  function r(t) {
@@ -9453,11 +9463,11 @@ var Se = L.device === "mobile", dt = /* @__PURE__ */ function(a) {
9453
9463
  }), y(v(e), "switchActiveState", function(i) {
9454
9464
  i.stopPropagation();
9455
9465
  var n = e.config.toggleMode;
9456
- n === Ne.CLICK ? e.toggle(!e.isActive) : e.toggle(!0);
9466
+ n === Fe.CLICK ? e.toggle(!e.isActive) : e.toggle(!0);
9457
9467
  }), y(v(e), "onLeave", function(i) {
9458
9468
  i.stopPropagation(), e.emit("icon_mouseleave", {
9459
9469
  pluginName: e.pluginName
9460
- }), e.config.listType !== se.SIDE && e.isActive && e.toggle(!1);
9470
+ }), e.config.listType !== oe.SIDE && e.isActive && e.toggle(!1);
9461
9471
  }), y(v(e), "onListEnter", function(i) {
9462
9472
  e.enterType = 2;
9463
9473
  }), y(v(e), "onListLeave", function(i) {
@@ -9473,13 +9483,13 @@ var Se = L.device === "mobile", dt = /* @__PURE__ */ function(a) {
9473
9483
  key: "afterCreate",
9474
9484
  value: function() {
9475
9485
  var e = this, i = this.config;
9476
- this.initIcons(), Se = Se || this.domEventType === "touch", Se && L.device === "mobile" && i.listType === se.DEFAULT && (i.listType = se.SIDE), i.hidePortrait && f.addClass(this.root, "portrait"), this.on([ke, ue], function() {
9486
+ this.initIcons(), xe = xe || this.domEventType === "touch", xe && L.device === "mobile" && i.listType === oe.DEFAULT && (i.listType = oe.SIDE), i.hidePortrait && f.addClass(this.root, "portrait"), this.on([be, ue], function() {
9477
9487
  e._resizeList();
9478
9488
  }), this.once(de, function() {
9479
9489
  i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
9480
- }), Se && this.on(Xt, function() {
9490
+ }), xe && this.on(Xt, function() {
9481
9491
  e.isActive && (e.optionsList && e.optionsList.hide(), e.isActive = !1);
9482
- }), Se ? (i.toggleMode = Ne.CLICK, this.activeEvent = "touchend") : this.activeEvent = i.toggleMode === Ne.CLICK ? "click" : "mouseenter", i.toggleMode === Ne.CLICK ? this.bind(this.activeEvent, this.switchActiveState) : (this.bind(this.activeEvent, this.onEnter), this.bind("mouseleave", this.onLeave)), this.isIcons && this.bind("click", this.onIconClick);
9492
+ }), xe ? (i.toggleMode = Fe.CLICK, this.activeEvent = "touchend") : this.activeEvent = i.toggleMode === Fe.CLICK ? "click" : "mouseenter", i.toggleMode === Fe.CLICK ? this.bind(this.activeEvent, this.switchActiveState) : (this.bind(this.activeEvent, this.onEnter), this.bind("mouseleave", this.onLeave)), this.isIcons && this.bind("click", this.onIconClick);
9483
9493
  }
9484
9494
  }, {
9485
9495
  key: "initIcons",
@@ -9507,7 +9517,7 @@ var Se = L.device === "mobile", dt = /* @__PURE__ */ function(a) {
9507
9517
  var s = this.config.list;
9508
9518
  !n && (n = this.player.lang), i = !i || f.isUndefined(e[i]) ? "text" : i, typeof e == "number" && (e = s[e]);
9509
9519
  try {
9510
- return G(e[i]) === "object" ? e[i][n] || e[i].en : e[i];
9520
+ return K(e[i]) === "object" ? e[i][n] || e[i].en : e[i];
9511
9521
  } catch (l) {
9512
9522
  return console.warn(l), "";
9513
9523
  }
@@ -9517,7 +9527,7 @@ var Se = L.device === "mobile", dt = /* @__PURE__ */ function(a) {
9517
9527
  value: function(e) {
9518
9528
  if (!(e === this.isActive || this.config.disable)) {
9519
9529
  var i = this.player.controls, n = this.config.listType;
9520
- e ? (n === se.SIDE ? i.blur() : i.focus(), this.optionsList && this.optionsList.show()) : (n === se.SIDE ? i.focus() : i.focusAwhile(), this.optionsList && this.optionsList.hide()), this.isActive = e;
9530
+ e ? (n === oe.SIDE ? i.blur() : i.focus(), this.optionsList && this.optionsList.show()) : (n === oe.SIDE ? i.focus() : i.focusAwhile(), this.optionsList && this.optionsList.hide()), this.isActive = e;
9521
9531
  }
9522
9532
  }
9523
9533
  }, {
@@ -9527,7 +9537,7 @@ var Se = L.device === "mobile", dt = /* @__PURE__ */ function(a) {
9527
9537
  var n = this.config, s = n.listType, l = n.list;
9528
9538
  this.curIndex = i.to.index, this.curItem = l[this.curIndex], this.changeCurrentText();
9529
9539
  var u = this.config.isItemClickHide;
9530
- (u || Se || s === se.SIDE) && this.toggle(!1);
9540
+ (u || xe || s === oe.SIDE) && this.toggle(!1);
9531
9541
  }
9532
9542
  }, {
9533
9543
  key: "onIconClick",
@@ -9556,12 +9566,12 @@ var Se = L.device === "mobile", dt = /* @__PURE__ */ function(a) {
9556
9566
  onItemClick: function(m, _) {
9557
9567
  n.onItemClick(m, _);
9558
9568
  },
9559
- domEventType: Se ? "touch" : "mouse"
9569
+ domEventType: xe ? "touch" : "mouse"
9560
9570
  },
9561
- root: s.listType === se.SIDE ? u.innerContainer || u.root : this.root
9571
+ root: s.listType === oe.SIDE ? u.innerContainer || u.root : this.root
9562
9572
  };
9563
9573
  if (this.config.isShowIcon) {
9564
- var h = this.player.root.getBoundingClientRect(), d = h.height, g = s.listType === se.MIDDLE ? d - 50 : d;
9574
+ var h = this.player.root.getBoundingClientRect(), d = h.height, g = s.listType === oe.MIDDLE ? d - 50 : d;
9565
9575
  g && s.heightLimit && (c.config.maxHeight = "".concat(g, "px")), this.optionsList = new Ks(c), this.changeCurrentText(), this.show();
9566
9576
  }
9567
9577
  this._resizeList();
@@ -9570,7 +9580,7 @@ var Se = L.device === "mobile", dt = /* @__PURE__ */ function(a) {
9570
9580
  key: "_resizeList",
9571
9581
  value: function() {
9572
9582
  if (this.config.heightLimit) {
9573
- var e = this.player.root.getBoundingClientRect(), i = e.height, n = this.config.listType === se.MIDDLE ? i - 50 : i;
9583
+ var e = this.player.root.getBoundingClientRect(), i = e.height, n = this.config.listType === oe.MIDDLE ? i - 50 : i;
9574
9584
  this.optionsList && this.optionsList.setStyle({
9575
9585
  maxHeight: "".concat(n, "px")
9576
9586
  });
@@ -9580,7 +9590,7 @@ var Se = L.device === "mobile", dt = /* @__PURE__ */ function(a) {
9580
9590
  key: "destroy",
9581
9591
  value: function() {
9582
9592
  var e = this.config;
9583
- e.toggleMode === Ne.CLICK ? this.unbind(this.activeEvent, this.switchActiveState) : (this.unbind(this.activeEvent, this.onEnter), this.unbind("mouseleave", this.onLeave)), this.isIcons && this.unbind("click", this.onIconClick), this.optionsList && (this.optionsList.destroy(), this.optionsList = null);
9593
+ e.toggleMode === Fe.CLICK ? this.unbind(this.activeEvent, this.switchActiveState) : (this.unbind(this.activeEvent, this.onEnter), this.unbind("mouseleave", this.onLeave)), this.isIcons && this.unbind("click", this.onIconClick), this.optionsList && (this.optionsList.destroy(), this.optionsList = null);
9584
9594
  }
9585
9595
  }, {
9586
9596
  key: "render",
@@ -9608,7 +9618,7 @@ var Se = L.device === "mobile", dt = /* @__PURE__ */ function(a) {
9608
9618
  hidePortrait: !0,
9609
9619
  isShowIcon: !1,
9610
9620
  isItemClickHide: !0,
9611
- toggleMode: Ne.HOVER,
9621
+ toggleMode: Fe.HOVER,
9612
9622
  heightLimit: !0
9613
9623
  };
9614
9624
  }
@@ -9894,7 +9904,7 @@ var Ri = /* @__PURE__ */ function(a) {
9894
9904
  return `<xg-icon class='xgplayer-cssfullscreen'>
9895
9905
  <div class="xgplayer-icon">
9896
9906
  </div>
9897
- `.concat(we(this, "CSSFULLSCREEN_TIPS", this.playerConfig.isHideTips), `
9907
+ `.concat(Ee(this, "CSSFULLSCREEN_TIPS", this.playerConfig.isHideTips), `
9898
9908
  </xg-icon>`);
9899
9909
  }
9900
9910
  }], [{
@@ -9913,7 +9923,7 @@ var Ri = /* @__PURE__ */ function(a) {
9913
9923
  };
9914
9924
  }
9915
9925
  }]), r;
9916
- }(Re), Js = /* @__PURE__ */ function(a) {
9926
+ }(De), Js = /* @__PURE__ */ function(a) {
9917
9927
  S(r, a);
9918
9928
  var o = x(r);
9919
9929
  function r() {
@@ -10215,13 +10225,13 @@ function eo(a) {
10215
10225
  }), a.ispotsInit = !1, a.playerSize = {
10216
10226
  left: r.sizeInfo.left,
10217
10227
  width: r.sizeInfo.width
10218
- }, a.on(Te, function() {
10228
+ }, a.on(we, function() {
10219
10229
  a.ispotsInit ? a.updateDuration() : a.initDots();
10220
- }), a.on(ke, function() {
10230
+ }), a.on(be, function() {
10221
10231
  a.positionDots();
10222
10232
  });
10223
10233
  }
10224
- var Be = {
10234
+ var Ne = {
10225
10235
  dragmove: "onProgressMove",
10226
10236
  dragstart: "onProgressDragStart",
10227
10237
  dragend: "onProgressDragEnd",
@@ -10279,7 +10289,7 @@ var Be = {
10279
10289
  n.seekTime && e.player.seek(n.seekTime);
10280
10290
  }), this.transformTimeHook = this.hook("transformTime", function(i) {
10281
10291
  e.setTimeContent(f.format(i));
10282
- }), eo(this), this.on(Te, function() {
10292
+ }), eo(this), this.on(we, function() {
10283
10293
  e.show();
10284
10294
  }), this.config.disable && this.disable(), this.extTextRoot = this.find(".xg-spot-ext-text");
10285
10295
  }
@@ -10301,8 +10311,8 @@ var Be = {
10301
10311
  key: "bindEvents",
10302
10312
  value: function() {
10303
10313
  var e = this, i = this.player.plugins.progress;
10304
- if (i && (Object.keys(Be).map(function(s) {
10305
- e[Be[s]] = e[Be[s]].bind(e), i.addCallBack(s, e[Be[s]]);
10314
+ if (i && (Object.keys(Ne).map(function(s) {
10315
+ e[Ne[s]] = e[Ne[s]].bind(e), i.addCallBack(s, e[Ne[s]]);
10306
10316
  }), L.device !== "mobile")) {
10307
10317
  this.bind(".xg-spot-info", "mousemove", this.onMousemove), this.bind(".xg-spot-info", "mousedown", this.onMousedown), this.bind(".xg-spot-info", "mouseup", this.onMouseup);
10308
10318
  var n = this.hook("previewClick", function() {
@@ -10460,8 +10470,8 @@ var Be = {
10460
10470
  key: "destroy",
10461
10471
  value: function() {
10462
10472
  var e = this, i = this.player.plugins.progress;
10463
- i && Object.keys(Be).map(function(n) {
10464
- i.removeCallBack(n, e[Be[n]]);
10473
+ i && Object.keys(Ne).map(function(n) {
10474
+ i.removeCallBack(n, e[Ne[n]]);
10465
10475
  }), this.videothumbnail = null, this.thumbnail = null, this.videoPreview && this.player.root.removeChild(this.videoPreview), this.unbind(".xg-spot-info", "mousemove", this.onMousemove), this.unbind(".xg-spot-info", "mousedown", this.onMousedown), this.unbind(".xg-spot-info", "mouseup", this.onMouseup), this.unbind(".xg-spot-content", "mouseup", this.handlerPreviewClick);
10466
10476
  }
10467
10477
  }, {
@@ -10514,7 +10524,7 @@ var Be = {
10514
10524
  key: "afterCreate",
10515
10525
  value: function() {
10516
10526
  var e = this;
10517
- this.usable && this.initThumbnail(), this.on([Te], function() {
10527
+ this.usable && this.initThumbnail(), this.on([we], function() {
10518
10528
  var i = e.config, n = i.pic_num, s = i.interval;
10519
10529
  e.usable && (e.interval = s > 0 ? s : Math.round(e.player.duration * 1e3 / n) / 1e3);
10520
10530
  });
@@ -10671,7 +10681,7 @@ var no = /* @__PURE__ */ function(a) {
10671
10681
  key: "afterCreate",
10672
10682
  value: function() {
10673
10683
  var e = this;
10674
- this.root && (this.on(J, this.onTimeupdate), this.on(De, function() {
10684
+ this.root && (this.on(J, this.onTimeupdate), this.on(Le, function() {
10675
10685
  e.reset();
10676
10686
  }));
10677
10687
  }
@@ -10723,7 +10733,7 @@ var no = /* @__PURE__ */ function(a) {
10723
10733
  };
10724
10734
  }
10725
10735
  }]), r;
10726
- }(F), He = {
10736
+ }(F), Be = {
10727
10737
  REAL_TIME: "realtime",
10728
10738
  FIRST_FRAME: "firstframe",
10729
10739
  FRAME_RATE: "framerate",
@@ -10766,7 +10776,7 @@ var et = null, oo = /* @__PURE__ */ function(a) {
10766
10776
  }
10767
10777
  }), y(v(t), "start", function(s, l) {
10768
10778
  var u = t.player.video, c = ro(), h = t.checkVideoIsSupport(u);
10769
- !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 === He.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));
10779
+ !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 === Be.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));
10770
10780
  }), y(v(t), "stop", function() {
10771
10781
  t.frameId && (t._loopType === "timer" ? f.clearTimeout(v(t), t.frameId) : f.cancelAnimationFrame(t.frameId), t.frameId = null);
10772
10782
  }), t;
@@ -10785,9 +10795,9 @@ var et = null, oo = /* @__PURE__ */ function(a) {
10785
10795
  x: 0,
10786
10796
  y: 0,
10787
10797
  pi: 0
10788
- }, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / l, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !== He.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(vt, function() {
10798
+ }, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / l, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !== Be.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(vt, function() {
10789
10799
  e.player && (e.init(), e.renderByPoster(), e.player.paused || e.start());
10790
- }), s !== He.POSTER && (s !== He.FIRST_FRAME && (this.on(De, function() {
10800
+ }), s !== Be.POSTER && (s !== Be.FIRST_FRAME && (this.on(Le, function() {
10791
10801
  e.stop();
10792
10802
  }), this.on(Q, function() {
10793
10803
  var u = e.config.startInterval;
@@ -10859,7 +10869,7 @@ var et = null, oo = /* @__PURE__ */ function(a) {
10859
10869
  key: "_checkIfCanStart",
10860
10870
  value: function() {
10861
10871
  var e = this.config.mode;
10862
- return this._isLoaded && !this.player.paused && e !== He.FIRST_FRAME && e !== He.POSTER;
10872
+ return this._isLoaded && !this.player.paused && e !== Be.FIRST_FRAME && e !== Be.POSTER;
10863
10873
  }
10864
10874
  }, {
10865
10875
  key: "renderOnce",
@@ -11165,7 +11175,7 @@ var et = null, oo = /* @__PURE__ */ function(a) {
11165
11175
  return {};
11166
11176
  }
11167
11177
  }]), r;
11168
- }(be), vn = /* @__PURE__ */ function(a) {
11178
+ }(Te), vn = /* @__PURE__ */ function(a) {
11169
11179
  S(r, a);
11170
11180
  var o = x(r);
11171
11181
  function r() {
@@ -11301,7 +11311,7 @@ var uo = /* @__PURE__ */ function(a) {
11301
11311
  };
11302
11312
  }
11303
11313
  }]), r;
11304
- }(F), Ue = "cdn", tt = ["cdn"], co = /* @__PURE__ */ function(a) {
11314
+ }(F), He = "cdn", tt = ["cdn"], co = /* @__PURE__ */ function(a) {
11305
11315
  S(r, a);
11306
11316
  var o = x(r);
11307
11317
  function r() {
@@ -11310,7 +11320,7 @@ var uo = /* @__PURE__ */ function(a) {
11310
11320
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
11311
11321
  i[n] = arguments[n];
11312
11322
  return t = o.call.apply(o, [this].concat(i)), y(v(t), "getSpeed", function() {
11313
- var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ue;
11323
+ var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : He;
11314
11324
  if (!t.speedListCache || !t.speedListCache[s] || t.speedListCache[s].length <= 0)
11315
11325
  return 0;
11316
11326
  var l = 0;
@@ -11324,7 +11334,7 @@ var uo = /* @__PURE__ */ function(a) {
11324
11334
  t.speedListCache[s] = [];
11325
11335
  });
11326
11336
  }), y(v(t), "_onRealSpeedChange", function(s) {
11327
- s.speed && t.appendList(s.speed, s.type || Ue);
11337
+ s.speed && t.appendList(s.speed, s.type || He);
11328
11338
  }), y(v(t), "testSpeed", function() {
11329
11339
  if (clearTimeout(t.timer), t.timer = null, !(!t.player || !t.config.openSpeed)) {
11330
11340
  var s = t.config, l = s.url, u = s.loadSize, c = s.testCnt, h = s.testTimeStep, d = l + (l.indexOf("?") < 0 ? "?testst=" : "&testst=") + Date.now();
@@ -11349,17 +11359,17 @@ var uo = /* @__PURE__ */ function(a) {
11349
11359
  }
11350
11360
  }
11351
11361
  }), y(v(t), "appendList", function(s) {
11352
- var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Ue;
11362
+ var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : He;
11353
11363
  if (!(!t.speedListCache || !t.speedListCache[l])) {
11354
11364
  var u = t.config.saveSpeedMax;
11355
11365
  t.speedListCache[l].length >= u && t.speedListCache[l].shift(), t.speedListCache[l].push(s);
11356
11366
  var c = v(t), h = c.player;
11357
- h && (l === Ue ? h.realTimeSpeed = s : h[t.getSpeedName("realTime", l)] = s), t.updateSpeed(l);
11367
+ h && (l === He ? h.realTimeSpeed = s : h[t.getSpeedName("realTime", l)] = s), t.updateSpeed(l);
11358
11368
  }
11359
11369
  }), y(v(t), "updateSpeed", function() {
11360
- var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Ue, l = t.getSpeed(s), u = v(t), c = u.player;
11370
+ var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : He, l = t.getSpeed(s), u = v(t), c = u.player;
11361
11371
  if (c)
11362
- if (s === Ue)
11372
+ if (s === He)
11363
11373
  (!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(Ut, {
11364
11374
  speed: l,
11365
11375
  realTimeSpeed: c.realTimeSpeed
@@ -11377,7 +11387,7 @@ var uo = /* @__PURE__ */ function(a) {
11377
11387
  key: "afterCreate",
11378
11388
  value: function() {
11379
11389
  var e = this.config, i = e.openSpeed, n = e.addSpeedTypeList;
11380
- (n == null ? void 0 : n.length) > 0 && tt.push.apply(tt, ne(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([ve, st], this.startTimer);
11390
+ (n == null ? void 0 : n.length) > 0 && tt.push.apply(tt, re(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([ve, st], this.startTimer);
11381
11391
  }
11382
11392
  }, {
11383
11393
  key: "getSpeedName",
@@ -11443,9 +11453,9 @@ var uo = /* @__PURE__ */ function(a) {
11443
11453
  e._startTick();
11444
11454
  }), this.on(je, function() {
11445
11455
  e._stopTick();
11446
- }), this.on(Le, function() {
11456
+ }), this.on(Ae, function() {
11447
11457
  e._stopTick();
11448
- }), this.on(De, function() {
11458
+ }), this.on(Le, function() {
11449
11459
  e._stopTick();
11450
11460
  }));
11451
11461
  }
@@ -11537,12 +11547,12 @@ var uo = /* @__PURE__ */ function(a) {
11537
11547
  }
11538
11548
  }]), r;
11539
11549
  }(F);
11540
- Ve.use(ao);
11550
+ Ue.use(ao);
11541
11551
  var ho = /* @__PURE__ */ E(function a(o, r) {
11542
11552
  var t, e, i;
11543
11553
  w(this, a);
11544
11554
  var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [Is, ks, no, to, Ps], u = [].concat(l, [bs, xs, Ms, Us, $s, Xs, Ws, Gs, Rs, Bs]), c = [ts, is, rs, ys, ss, Js, Qs, io, us];
11545
- this.plugins = [lo, Qr].concat(ne(u), c, [vn, uo]);
11555
+ this.plugins = [lo, Qr].concat(re(u), c, [vn, uo]);
11546
11556
  var h = n ? "mobile" : L.device;
11547
11557
  switch (h) {
11548
11558
  case "pc":
@@ -11555,7 +11565,7 @@ var ho = /* @__PURE__ */ E(function a(o, r) {
11555
11565
  (i = this.plugins).push.apply(i, [Li, At, Ri]);
11556
11566
  }
11557
11567
  (L.os.isIpad || h === "pc") && this.plugins.push(oo), L.os.isIpad && this.plugins.push(At), this.ignores = [], this.i18n = [];
11558
- }), re = /* @__PURE__ */ function(a) {
11568
+ }), se = /* @__PURE__ */ function(a) {
11559
11569
  S(r, a);
11560
11570
  var o = x(r);
11561
11571
  function r() {
@@ -11563,16 +11573,16 @@ var ho = /* @__PURE__ */ E(function a(o, r) {
11563
11573
  }
11564
11574
  return E(r);
11565
11575
  }(_t);
11566
- y(re, "defaultPreset", ho);
11567
- y(re, "Util", f);
11568
- y(re, "Sniffer", L);
11569
- y(re, "Errors", rt);
11570
- y(re, "Events", xr);
11571
- y(re, "Plugin", F);
11572
- y(re, "BasePlugin", be);
11573
- y(re, "I18N", Ve);
11574
- y(re, "STATE_CLASS", C);
11575
- y(re, "InstManager", hn);
11576
+ y(se, "defaultPreset", ho);
11577
+ y(se, "Util", f);
11578
+ y(se, "Sniffer", L);
11579
+ y(se, "Errors", rt);
11580
+ y(se, "Events", xr);
11581
+ y(se, "Plugin", F);
11582
+ y(se, "BasePlugin", Te);
11583
+ y(se, "I18N", Ue);
11584
+ y(se, "STATE_CLASS", C);
11585
+ y(se, "InstManager", hn);
11576
11586
  const go = ["id"], po = /* @__PURE__ */ pe({
11577
11587
  name: "ElImageViewer",
11578
11588
  __name: "Player",
@@ -11602,7 +11612,7 @@ const go = ["id"], po = /* @__PURE__ */ pe({
11602
11612
  }, ["update:modelValue"]),
11603
11613
  setup(a, { emit: o }) {
11604
11614
  let r = null;
11605
- const t = a, { cLoadUrl: e } = Ln(t), i = ie(() => Ft(e.value, t.url)), n = {
11615
+ const t = a, { cLoadUrl: e } = Ln(t), i = ne(() => Ft(e.value, t.url)), n = {
11606
11616
  width: "100%",
11607
11617
  height: "100%",
11608
11618
  // 是否自动播放
@@ -11620,7 +11630,7 @@ const go = ["id"], po = /* @__PURE__ */ pe({
11620
11630
  poster: "",
11621
11631
  lang: "zh-CN",
11622
11632
  screenShot: !0
11623
- }, s = ie(() => ({
11633
+ }, s = ne(() => ({
11624
11634
  ...n,
11625
11635
  ...t.config
11626
11636
  })), l = o, u = zt(a, "modelValue"), c = Bi(), h = En("image-viewer");
@@ -11629,7 +11639,7 @@ const go = ["id"], po = /* @__PURE__ */ pe({
11629
11639
  }
11630
11640
  return Fi(() => u.value, (g) => {
11631
11641
  g && Ni(() => {
11632
- r = new re({
11642
+ r = new se({
11633
11643
  id: c,
11634
11644
  url: i.value,
11635
11645
  ...s.value
@@ -11637,11 +11647,11 @@ const go = ["id"], po = /* @__PURE__ */ pe({
11637
11647
  });
11638
11648
  }), (g, p) => {
11639
11649
  const m = Ye("el-icon");
11640
- return u.value ? (U(), Ae(Cn, {
11650
+ return u.value ? (U(), Ve(Cn, {
11641
11651
  key: 0,
11642
11652
  to: "body"
11643
11653
  }, [
11644
- Pe(kn, {
11654
+ ke(kn, {
11645
11655
  name: "viewer-fade",
11646
11656
  appear: ""
11647
11657
  }, {
@@ -11651,14 +11661,14 @@ const go = ["id"], po = /* @__PURE__ */ pe({
11651
11661
  {
11652
11662
  ref: "wrapper",
11653
11663
  tabindex: -1,
11654
- class: ae(X(h).e("wrapper")),
11664
+ class: ie(X(h).e("wrapper")),
11655
11665
  style: Ce({ zIndex: a.zIndex })
11656
11666
  },
11657
11667
  [
11658
11668
  le(
11659
11669
  "div",
11660
11670
  {
11661
- class: ae(X(h).e("mask"))
11671
+ class: ie(X(h).e("mask"))
11662
11672
  },
11663
11673
  null,
11664
11674
  2
@@ -11668,7 +11678,7 @@ const go = ["id"], po = /* @__PURE__ */ pe({
11668
11678
  le(
11669
11679
  "div",
11670
11680
  {
11671
- class: ae(X(h).e("canvas"))
11681
+ class: ie(X(h).e("canvas"))
11672
11682
  },
11673
11683
  [
11674
11684
  le("div", { id: X(c) }, null, 8, go),
@@ -11676,13 +11686,13 @@ const go = ["id"], po = /* @__PURE__ */ pe({
11676
11686
  le(
11677
11687
  "span",
11678
11688
  {
11679
- class: ae([X(h).e("btn"), X(h).e("close")]),
11689
+ class: ie([X(h).e("btn"), X(h).e("close")]),
11680
11690
  onClick: d
11681
11691
  },
11682
11692
  [
11683
- Pe(m, { onClick: d }, {
11693
+ ke(m, { onClick: d }, {
11684
11694
  default: he(() => [
11685
- Pe(X(In))
11695
+ ke(X(In))
11686
11696
  ]),
11687
11697
  _: 1
11688
11698
  /* STABLE */
@@ -11745,7 +11755,7 @@ const vo = /* @__PURE__ */ gt(po, [["__scopeId", "data-v-b301aa7d"]]), mo = Xe(v
11745
11755
  }),
11746
11756
  emits: ["update:show"],
11747
11757
  setup(a) {
11748
- const o = a, r = zt(a, "show"), t = ie(() => ({
11758
+ const o = a, r = zt(a, "show"), t = ne(() => ({
11749
11759
  name: "name",
11750
11760
  url: "url",
11751
11761
  suffix: "suffix",
@@ -11807,11 +11817,11 @@ const vo = /* @__PURE__ */ gt(po, [["__scopeId", "data-v-b301aa7d"]]), mo = Xe(v
11807
11817
  return (u, c) => {
11808
11818
  var d, g, p;
11809
11819
  const h = Ye("el-image-viewer");
11810
- return r.value ? (U(), $(
11820
+ return r.value ? (U(), G(
11811
11821
  Tn,
11812
11822
  { key: 0 },
11813
11823
  [
11814
- (d = i.value) != null && d.url && n.image ? (U(), Ae(h, {
11824
+ (d = i.value) != null && d.url && n.image ? (U(), Ve(h, {
11815
11825
  key: 0,
11816
11826
  onClose: c[0] || (c[0] = (m) => l()),
11817
11827
  ref: "previewImgRef",
@@ -11820,12 +11830,12 @@ const vo = /* @__PURE__ */ gt(po, [["__scopeId", "data-v-b301aa7d"]]), mo = Xe(v
11820
11830
  }, null, 8, ["url-list"])) : fe("v-if", !0),
11821
11831
  fe(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
11822
11832
  fe(" 文档类 "),
11823
- Pe(X(mo), {
11833
+ ke(X(mo), {
11824
11834
  modelValue: n.video,
11825
11835
  "onUpdate:modelValue": c[1] || (c[1] = (m) => n.video = m),
11826
11836
  url: (p = i.value) == null ? void 0 : p.url
11827
11837
  }, null, 8, ["modelValue", "url"]),
11828
- Pe(X(Gn), {
11838
+ ke(X(Gn), {
11829
11839
  modelValue: n.office,
11830
11840
  "onUpdate:modelValue": c[2] || (c[2] = (m) => n.office = m),
11831
11841
  draggable: "",
@@ -11843,7 +11853,7 @@ const vo = /* @__PURE__ */ gt(po, [["__scopeId", "data-v-b301aa7d"]]), mo = Xe(v
11843
11853
  default: he(() => {
11844
11854
  var m;
11845
11855
  return [
11846
- Pe(X(er), {
11856
+ ke(X(er), {
11847
11857
  "config-options": e.value,
11848
11858
  "document-server-url": ((m = a.onlyOfficeConfig) == null ? void 0 : m.serverUrl) || a.onlyofficeServer
11849
11859
  }, null, 8, ["config-options", "document-server-url"])