iking-web-ui-pro 0.2.34 → 0.2.36

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 (39) hide show
  1. package/dist/IKPreviewFile/ik.index.es.js +612 -605
  2. package/dist/IKPreviewFile/ik.index.umd.js +46 -46
  3. package/dist/IKSearch/ik.index.es.js +623 -623
  4. package/dist/IKSearch/ik.index.umd.js +2 -2
  5. package/dist/IKSearch/style.css +1 -1
  6. package/dist/IkApprovalProcess/ik.index.es.js +463 -463
  7. package/dist/IkApprovalProcess/ik.index.umd.js +1 -1
  8. package/dist/IkApprovalProcess/style.css +1 -1
  9. package/dist/IkApprovalProcessDetail/ik.index.es.js +683 -676
  10. package/dist/IkApprovalProcessDetail/ik.index.umd.js +46 -46
  11. package/dist/IkCalendar/ik.index.es.js +1583 -1583
  12. package/dist/IkCalendar/ik.index.umd.js +1 -1
  13. package/dist/IkCalendar/style.css +1 -1
  14. package/dist/IkDescription/ik.index.es.js +835 -852
  15. package/dist/IkDescription/ik.index.umd.js +46 -46
  16. package/dist/IkDescription/style.css +1 -1
  17. package/dist/IkDetailPreviewFiles/ik.index.es.js +864 -857
  18. package/dist/IkDetailPreviewFiles/ik.index.umd.js +46 -46
  19. package/dist/IkPageFull/ik.index.es.js +689 -689
  20. package/dist/IkPageFull/ik.index.umd.js +3 -3
  21. package/dist/IkPageFull/style.css +1 -1
  22. package/dist/IkPickerUser/ik.index.es.js +317 -317
  23. package/dist/IkPickerUser/ik.index.umd.js +1 -1
  24. package/dist/IkPickerUser/style.css +1 -1
  25. package/dist/IkPlayer/ik.index.es.js +342 -339
  26. package/dist/IkPlayer/ik.index.umd.js +45 -45
  27. package/dist/IkPreviewFileDialog/ik.index.es.js +509 -506
  28. package/dist/IkPreviewFileDialog/ik.index.umd.js +46 -46
  29. package/dist/IkUploadFile/ik.index.es.js +1719 -1718
  30. package/dist/IkUploadFile/ik.index.umd.js +56 -56
  31. package/dist/IkUploadFile/style.css +1 -1
  32. package/dist/IkUploadImage/ik.index.es.js +273 -270
  33. package/dist/IkUploadImage/ik.index.umd.js +1 -1
  34. package/dist/index.es.js +13879 -13901
  35. package/dist/index.umd.js +106 -106
  36. package/dist/src/components/IkDescription/index.d.ts +0 -76
  37. package/dist/src/components/IkDescription/src/IkDescription.vue.d.ts +0 -36
  38. package/dist/style.css +1 -1
  39. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { defineComponent as Z, computed as Y, openBlock as E, createElementBlock as P, createElementVNode as T, inject as lt, ref as se, resolveComponent as rt, Fragment as Ee, renderList as ft, normalizeStyle as oe, toDisplayString as Ne, normalizeClass as K, createVNode as j, unref as S, withModifiers as ti, createBlock as pe, createCommentVNode as ee, renderSlot as Fe, withCtx as Q, mergeModels as wt, useModel as fi, reactive as ir, watch as st, nextTick as hi, createTextVNode as ii, h as nr, mergeProps as rr, createSlots as sr, getCurrentScope as or, onScopeDispose as ar, markRaw as Oi, effectScope as lr, shallowRef as ur, onMounted as cr, Teleport as yn, Transition as _n, resolveDynamicComponent as fr, withDirectives as hr, vShow as dr, pushScopeId as gr, popScopeId as pr } from "vue";
2
- import { paramType as ni, ikFile as vr, buildUUID as kn, ikColor as mr, _ as Ut, ikUrl as yr } from "iking-utils-pro";
3
- import { useLocale as _r, useNamespace as Cn, useZIndex as kr, ElIcon as Ae, EVENT_CODE as Xe } from "element-plus";
1
+ import { defineComponent as Z, computed as Y, openBlock as E, createElementBlock as P, createElementVNode as T, inject as lt, ref as se, resolveComponent as rt, Fragment as Ee, renderList as ft, normalizeStyle as oe, toDisplayString as Ne, normalizeClass as K, createVNode as j, unref as S, withModifiers as ti, createBlock as pe, createCommentVNode as ee, renderSlot as Fe, withCtx as Q, mergeModels as wt, useModel as fi, reactive as nr, watch as st, nextTick as hi, createTextVNode as ii, h as rr, mergeProps as sr, createSlots as or, getCurrentScope as ar, onScopeDispose as lr, markRaw as Oi, effectScope as ur, shallowRef as cr, onMounted as fr, Teleport as _n, Transition as kn, resolveDynamicComponent as hr, withDirectives as dr, vShow as gr, pushScopeId as pr, popScopeId as vr } from "vue";
2
+ import { paramType as ni, ikFile as mr, buildUUID as Cn, ikColor as yr, _ as Ut, ikUrl as _r } from "iking-utils-pro";
3
+ import { useLocale as kr, useNamespace as wn, useZIndex as Cr, ElIcon as Ae, EVENT_CODE as Xe } from "element-plus";
4
4
  const Pe = (a, o) => {
5
5
  if (a.install = (r) => {
6
6
  for (const t of [a, ...Object.values(o ?? {})])
@@ -31,7 +31,7 @@ const Pe = (a, o) => {
31
31
  if (typeof t == "string" && (t.includes(u) || t === u))
32
32
  return e[u];
33
33
  return "unknown";
34
- }, Cr = {
34
+ }, wr = {
35
35
  ".doc": "word",
36
36
  ".docx": "word",
37
37
  ".docxf": "word",
@@ -118,11 +118,11 @@ const Pe = (a, o) => {
118
118
  ".pdf": "pdf"
119
119
  }, Ri = (a) => {
120
120
  const o = a == null ? void 0 : a.toLocaleLowerCase(), r = o != null && o.startsWith(".") ? o : `.${o}`;
121
- return r && Cr[r] || "unknow";
122
- }, wr = (a) => {
121
+ return r && wr[r] || "unknow";
122
+ }, br = (a) => {
123
123
  let o = "", r = ["doc", "docx"], t = ["xls", "xlsx"], e = ["ppt", "pptx"], i = ["pdf"];
124
124
  return r.includes(a) && (o = "word"), t.includes(a) && (o = "cell"), e.includes(a) && (o = "slide"), i.includes(a) && (o = "text-pdf"), o;
125
- }, br = {
125
+ }, Tr = {
126
126
  key: 0,
127
127
  t: "1686300059786",
128
128
  class: "icon",
@@ -132,7 +132,7 @@ const Pe = (a, o) => {
132
132
  "p-id": "7671",
133
133
  width: "200",
134
134
  height: "200"
135
- }, Tr = /* @__PURE__ */ T(
135
+ }, Er = /* @__PURE__ */ T(
136
136
  "path",
137
137
  {
138
138
  d: "M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",
@@ -142,7 +142,7 @@ const Pe = (a, o) => {
142
142
  null,
143
143
  -1
144
144
  /* HOISTED */
145
- ), Er = /* @__PURE__ */ T(
145
+ ), Sr = /* @__PURE__ */ T(
146
146
  "path",
147
147
  {
148
148
  d: "M258.528 742.0672L351.8336 604.928a14.5024 14.5024 0 0 1 22.1696-2.1824l61.664 60.416 135.296-212.064a14.5024 14.5024 0 0 1 24.8064 0.5568l168.1024 291.328a14.5024 14.5024 0 0 1-12.5696 21.7664H270.528a14.5024 14.5024 0 0 1-12.0064-22.6816z",
@@ -152,7 +152,7 @@ const Pe = (a, o) => {
152
152
  null,
153
153
  -1
154
154
  /* HOISTED */
155
- ), Sr = /* @__PURE__ */ T(
155
+ ), xr = /* @__PURE__ */ T(
156
156
  "path",
157
157
  {
158
158
  d: "M359.616 431.5456m-73.1456 0a73.1456 73.1456 0 1 0 146.2912 0 73.1456 73.1456 0 1 0-146.2912 0Z",
@@ -162,7 +162,7 @@ const Pe = (a, o) => {
162
162
  null,
163
163
  -1
164
164
  /* HOISTED */
165
- ), xr = /* @__PURE__ */ T(
165
+ ), Ir = /* @__PURE__ */ T(
166
166
  "path",
167
167
  {
168
168
  d: "M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",
@@ -172,12 +172,12 @@ const Pe = (a, o) => {
172
172
  null,
173
173
  -1
174
174
  /* HOISTED */
175
- ), Ir = [
176
- Tr,
175
+ ), Pr = [
177
176
  Er,
178
177
  Sr,
179
- xr
180
- ], Pr = {
178
+ xr,
179
+ Ir
180
+ ], Lr = {
181
181
  key: 1,
182
182
  t: "1686301531714",
183
183
  class: "icon",
@@ -187,7 +187,7 @@ const Pe = (a, o) => {
187
187
  "p-id": "9067",
188
188
  width: "200",
189
189
  height: "200"
190
- }, Lr = /* @__PURE__ */ T(
190
+ }, Ar = /* @__PURE__ */ T(
191
191
  "path",
192
192
  {
193
193
  d: "M409.6 0v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133334H409.6v68.266666h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133334s13.653333 34.133333 34.133334 34.133333H409.6v68.266667h-34.133333c-20.48 0-34.133333 13.653333-34.133334 34.133333s13.653333 34.133333 34.133334 34.133333h68.266666c20.48 0 34.133333-13.653333 34.133334-34.133333V477.866667h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133334S532.48 409.6 512 409.6H477.866667V341.333333h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 273.066667 512 273.066667H477.866667V204.8h34.133333c20.48 0 34.133333-13.653333 34.133333-34.133333S532.48 136.533333 512 136.533333H477.866667V0h204.8l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0h204.8z m0 682.666667h68.266667v68.266666H409.6v-68.266666z m-34.133333-68.266667c-20.48 0-34.133333 13.653333-34.133334 34.133333v136.533334c0 20.48 13.653333 34.133333 34.133334 34.133333h136.533333c20.48 0 34.133333-13.653333 34.133333-34.133333v-136.533334c0-20.48-13.653333-34.133333-34.133333-34.133333h-136.533333z",
@@ -197,7 +197,7 @@ const Pe = (a, o) => {
197
197
  null,
198
198
  -1
199
199
  /* HOISTED */
200
- ), Ar = /* @__PURE__ */ T(
200
+ ), Dr = /* @__PURE__ */ T(
201
201
  "path",
202
202
  {
203
203
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -207,10 +207,10 @@ const Pe = (a, o) => {
207
207
  null,
208
208
  -1
209
209
  /* HOISTED */
210
- ), Dr = [
211
- Lr,
212
- Ar
213
- ], Or = {
210
+ ), Or = [
211
+ Ar,
212
+ Dr
213
+ ], Rr = {
214
214
  key: 2,
215
215
  t: "1686300141125",
216
216
  class: "icon",
@@ -220,7 +220,7 @@ const Pe = (a, o) => {
220
220
  "p-id": "8137",
221
221
  width: "200",
222
222
  height: "200"
223
- }, Rr = /* @__PURE__ */ T(
223
+ }, Fr = /* @__PURE__ */ T(
224
224
  "path",
225
225
  {
226
226
  d: "M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m204.8 546.133333V443.733333h204.8v136.533334H409.6V546.133333z m0 102.4h204.8c40.96 0 68.266667-27.306667 68.266667-68.266666v-136.533334c0-40.96-27.306667-68.266667-68.266667-68.266666H409.6c-40.96 0-68.266667 27.306667-68.266667 68.266666V819.2c0 20.48 13.653333 34.133333 34.133334 34.133333s34.133333-13.653333 34.133333-34.133333V648.533333z",
@@ -230,7 +230,7 @@ const Pe = (a, o) => {
230
230
  null,
231
231
  -1
232
232
  /* HOISTED */
233
- ), Fr = /* @__PURE__ */ T(
233
+ ), Mr = /* @__PURE__ */ T(
234
234
  "path",
235
235
  {
236
236
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -240,10 +240,10 @@ const Pe = (a, o) => {
240
240
  null,
241
241
  -1
242
242
  /* HOISTED */
243
- ), Mr = [
244
- Rr,
245
- Fr
246
- ], Nr = {
243
+ ), Nr = [
244
+ Fr,
245
+ Mr
246
+ ], Br = {
247
247
  key: 3,
248
248
  t: "1686300157181",
249
249
  class: "icon",
@@ -253,7 +253,7 @@ const Pe = (a, o) => {
253
253
  "p-id": "8292",
254
254
  width: "200",
255
255
  height: "200"
256
- }, Br = /* @__PURE__ */ T(
256
+ }, Hr = /* @__PURE__ */ T(
257
257
  "path",
258
258
  {
259
259
  d: "M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 607.573333l68.266667 191.146667c13.653333 27.306667 54.613333 27.306667 61.44 0l102.4-273.066667c6.826667-20.48 0-34.133333-20.48-40.96s-34.133333 0-40.96 13.653334l-68.266667 191.146666-68.266667-191.146666c-13.653333-27.306667-54.613333-27.306667-68.266666 0l-68.266667 191.146666-68.266667-191.146666c-6.826667-13.653333-27.306667-27.306667-47.786666-20.48s-27.306667 27.306667-20.48 47.786666l102.4 273.066667c13.653333 27.306667 54.613333 27.306667 61.44 0l75.093333-191.146667z",
@@ -263,7 +263,7 @@ const Pe = (a, o) => {
263
263
  null,
264
264
  -1
265
265
  /* HOISTED */
266
- ), Hr = /* @__PURE__ */ T(
266
+ ), Ur = /* @__PURE__ */ T(
267
267
  "path",
268
268
  {
269
269
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -273,10 +273,10 @@ const Pe = (a, o) => {
273
273
  null,
274
274
  -1
275
275
  /* HOISTED */
276
- ), Ur = [
277
- Br,
278
- Hr
279
- ], zr = {
276
+ ), zr = [
277
+ Hr,
278
+ Ur
279
+ ], Vr = {
280
280
  key: 4,
281
281
  t: "1686300180947",
282
282
  class: "icon",
@@ -286,7 +286,7 @@ const Pe = (a, o) => {
286
286
  "p-id": "8447",
287
287
  width: "200",
288
288
  height: "200"
289
- }, Vr = /* @__PURE__ */ T(
289
+ }, jr = /* @__PURE__ */ T(
290
290
  "path",
291
291
  {
292
292
  d: "M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m477.866667 730.453333c20.48 0 68.266667 0 68.266666-47.786666 0-20.48-6.826667-47.786667-68.266666-47.786667-27.306667 0-54.613333 6.826667-81.92 6.826667-34.133333-27.306667-68.266667-61.44-88.746667-102.4 20.48-75.093333 20.48-122.88 6.826667-150.186667-6.826667-6.826667-20.48-13.653333-34.133334-13.653333-20.48 0-34.133333 6.826667-40.96 20.48-20.48 40.96 13.653333 116.053333 27.306667 150.186666-20.48 54.613333-40.96 109.226667-68.266667 163.84C273.066667 764.586667 273.066667 798.72 273.066667 812.373333c0 13.653333 6.826667 27.306667 20.48 34.133334 6.826667 6.826667 13.653333 6.826667 20.48 6.826666 34.133333 0 68.266667-34.133333 116.053333-109.226666 54.613333-20.48 102.4-40.96 157.013333-47.786667 27.306667 20.48 61.44 34.133333 95.573334 34.133333zM491.52 416.426667c6.826667 20.48 6.826667 47.786667 0 68.266666-13.653333-20.48-13.653333-40.96-13.653333-68.266666h13.653333z m-177.493333 395.946666c13.653333-20.48 27.306667-27.306667 47.786666-40.96-13.653333 20.48-27.306667 34.133333-47.786666 40.96z m184.32-204.8c13.653333 20.48 34.133333 47.786667 54.613333 68.266667H546.133333c-27.306667 6.826667-61.44 13.653333-88.746666 27.306667 13.653333-34.133333 27.306667-61.44 40.96-95.573334z m177.493333 68.266667c27.306667 0 34.133333 6.826667 34.133333 13.653333-6.826667 0-20.48 6.826667-27.306666 0-13.653333 0-27.306667-6.826667-40.96-13.653333h34.133333z",
@@ -296,7 +296,7 @@ const Pe = (a, o) => {
296
296
  null,
297
297
  -1
298
298
  /* HOISTED */
299
- ), jr = /* @__PURE__ */ T(
299
+ ), Wr = /* @__PURE__ */ T(
300
300
  "path",
301
301
  {
302
302
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -306,10 +306,10 @@ const Pe = (a, o) => {
306
306
  null,
307
307
  -1
308
308
  /* HOISTED */
309
- ), Wr = [
310
- Vr,
311
- jr
312
- ], Gr = {
309
+ ), Gr = [
310
+ jr,
311
+ Wr
312
+ ], $r = {
313
313
  key: 5,
314
314
  t: "1686300195363",
315
315
  class: "icon",
@@ -319,7 +319,7 @@ const Pe = (a, o) => {
319
319
  "p-id": "8602",
320
320
  width: "200",
321
321
  height: "200"
322
- }, $r = /* @__PURE__ */ T(
322
+ }, Kr = /* @__PURE__ */ T(
323
323
  "path",
324
324
  {
325
325
  d: "M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m341.333333 512h136.533334c20.48 0 34.133333-13.653333 34.133333-34.133333s-13.653333-34.133333-34.133333-34.133334H341.333333c-20.48 0-34.133333 13.653333-34.133333 34.133334s13.653333 34.133333 34.133333 34.133333h136.533334V819.2c0 20.48 13.653333 34.133333 34.133333 34.133333s34.133333-13.653333 34.133333-34.133333V512z",
@@ -329,7 +329,7 @@ const Pe = (a, o) => {
329
329
  null,
330
330
  -1
331
331
  /* HOISTED */
332
- ), Kr = /* @__PURE__ */ T(
332
+ ), Yr = /* @__PURE__ */ T(
333
333
  "path",
334
334
  {
335
335
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -339,10 +339,10 @@ const Pe = (a, o) => {
339
339
  null,
340
340
  -1
341
341
  /* HOISTED */
342
- ), Yr = [
343
- $r,
344
- Kr
345
- ], Xr = {
342
+ ), Xr = [
343
+ Kr,
344
+ Yr
345
+ ], qr = {
346
346
  key: 6,
347
347
  t: "1686300209288",
348
348
  class: "icon",
@@ -352,7 +352,7 @@ const Pe = (a, o) => {
352
352
  "p-id": "8757",
353
353
  width: "200",
354
354
  height: "200"
355
- }, qr = /* @__PURE__ */ T(
355
+ }, Zr = /* @__PURE__ */ T(
356
356
  "path",
357
357
  {
358
358
  d: "M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m464.213333 375.466667l-232.106666 61.44c-27.306667 13.653333-47.786667 34.133333-47.786667 61.44v218.453333s-20.48-13.653333-54.613333-6.826667c-47.786667 6.826667-95.573333 47.786667-95.573334 88.746667 0 40.96 47.786667 61.44 95.573334 54.613333 54.613333-6.826667 95.573333-40.96 95.573333-81.92V559.786667c0-13.653333 27.306667-27.306667 27.306667-27.306667L655.36 477.866667s20.48-6.826667 20.48 13.653333v170.666667s-20.48-13.653333-54.613333-6.826667c-54.613333 6.826667-95.573333 40.96-95.573334 81.92s47.786667 68.266667 95.573334 61.44 95.573333-40.96 95.573333-81.92V409.6c0-27.306667-27.306667-40.96-47.786667-34.133333z",
@@ -362,7 +362,7 @@ const Pe = (a, o) => {
362
362
  null,
363
363
  -1
364
364
  /* HOISTED */
365
- ), Zr = /* @__PURE__ */ T(
365
+ ), Jr = /* @__PURE__ */ T(
366
366
  "path",
367
367
  {
368
368
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -372,10 +372,10 @@ const Pe = (a, o) => {
372
372
  null,
373
373
  -1
374
374
  /* HOISTED */
375
- ), Jr = [
376
- qr,
377
- Zr
378
- ], Qr = {
375
+ ), Qr = [
376
+ Zr,
377
+ Jr
378
+ ], es = {
379
379
  key: 7,
380
380
  t: "1686300225262",
381
381
  class: "icon",
@@ -385,7 +385,7 @@ const Pe = (a, o) => {
385
385
  "p-id": "8912",
386
386
  width: "200",
387
387
  height: "200"
388
- }, es = /* @__PURE__ */ T(
388
+ }, ts = /* @__PURE__ */ T(
389
389
  "path",
390
390
  {
391
391
  d: "M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m307.2 853.333333c150.186667 0 273.066667-122.88 273.066667-273.066666s-122.88-273.066667-273.066667-273.066667-273.066667 122.88-273.066667 273.066667 122.88 273.066667 273.066667 273.066666z m0-68.266666c-116.053333 0-204.8-88.746667-204.8-204.8s88.746667-204.8 204.8-204.8 204.8 88.746667 204.8 204.8-88.746667 204.8-204.8 204.8zM614.4 600.746667l6.826667-6.826667c6.826667-13.653333 6.826667-27.306667-6.826667-34.133333L484.693333 471.04s-6.826667-6.826667-13.653333-6.826667c-13.653333 0-27.306667 13.653333-27.306667 27.306667v170.666667c0 6.826667 0 13.653333 6.826667 13.653333 6.826667 13.653333 27.306667 13.653333 40.96 6.826667L614.4 600.746667z",
@@ -395,7 +395,7 @@ const Pe = (a, o) => {
395
395
  null,
396
396
  -1
397
397
  /* HOISTED */
398
- ), ts = /* @__PURE__ */ T(
398
+ ), is = /* @__PURE__ */ T(
399
399
  "path",
400
400
  {
401
401
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -405,10 +405,10 @@ const Pe = (a, o) => {
405
405
  null,
406
406
  -1
407
407
  /* HOISTED */
408
- ), is = [
409
- es,
410
- ts
411
- ], ns = {
408
+ ), ns = [
409
+ ts,
410
+ is
411
+ ], rs = {
412
412
  key: 8,
413
413
  t: "1692251753690",
414
414
  class: "icon",
@@ -418,7 +418,7 @@ const Pe = (a, o) => {
418
418
  "p-id": "4336",
419
419
  width: "200",
420
420
  height: "200"
421
- }, rs = /* @__PURE__ */ T(
421
+ }, ss = /* @__PURE__ */ T(
422
422
  "path",
423
423
  {
424
424
  d: "M192 0h448.170667l319.829333 320V896a128 128 0 0 1-128 128H192a128 128 0 0 1-128-128V128A128 128 0 0 1 192 0z",
@@ -428,7 +428,7 @@ const Pe = (a, o) => {
428
428
  null,
429
429
  -1
430
430
  /* HOISTED */
431
- ), ss = /* @__PURE__ */ T(
431
+ ), os = /* @__PURE__ */ T(
432
432
  "path",
433
433
  {
434
434
  d: "M388.5056 631.261867H307.541333v54.852266h95.095467v33.8944H265.3184v-204.765866h136.977067v34.167466H307.5072v48.810667h80.9984v33.041067z m112.093867-45.397334l38.4-70.621866h48.503466l-59.630933 101.546666 61.201067 103.2192h-49.117867l-39.355733-71.714133-39.389867 71.68h-49.0496l61.166933-103.185067-59.630933-101.546666h48.503467l38.4 70.587733z m266.922666 65.9456c-0.648533 9.898667-3.037867 19.592533-7.0656 28.672-3.7888 8.533333-9.352533 16.1792-16.315733 22.4256-6.929067 6.2464-15.36 11.127467-25.258667 14.6432-9.864533 3.4816-21.128533 5.256533-33.792 5.256534-13.1072 0-24.917333-2.286933-35.362133-6.826667a72.260267 72.260267 0 0 1-26.555733-19.626667 89.019733 89.019733 0 0 1-16.725334-30.993066 133.597867 133.597867 0 0 1-5.870933-40.8576v-13.482667c0-15.121067 2.048-28.740267 6.0416-40.925867 4.061867-12.1856 9.728-22.528 17.1008-31.061333 7.338667-8.533333 16.4864-15.2576 26.794667-19.694933 10.478933-4.608 22.186667-6.894933 35.157333-6.894934 12.731733 0 24.029867 1.809067 33.792 5.393067 9.8304 3.618133 18.1248 8.635733 24.9856 15.0528 6.826667 6.485333 12.288 14.267733 16.042667 22.9376 3.822933 8.874667 6.2464 18.466133 7.304533 28.8768h-42.1888a63.829333 63.829333 0 0 0-3.1744-16.145067 31.744 31.744 0 0 0-7.099733-11.810133 29.354667 29.354667 0 0 0-11.946667-7.2704 55.944533 55.944533 0 0 0-17.749333-2.4576c-14.2336 0-24.849067 5.188267-31.812267 15.5648-6.997333 10.3424-10.478933 26.385067-10.478933 48.128v13.789867c0 10.581333 0.750933 19.899733 2.321066 27.8528 1.536 7.953067 3.959467 14.609067 7.304534 19.968a32.221867 32.221867 0 0 0 12.970666 12.014933c5.256533 2.696533 11.639467 4.027733 19.182934 4.027733 6.656 0 12.3904-0.750933 17.2032-2.2528a30.549333 30.549333 0 0 0 12.0832-6.826666 30.685867 30.685867 0 0 0 7.509333-11.4688c1.809067-4.573867 2.935467-9.898667 3.413333-16.042667h42.154667z",
@@ -439,7 +439,7 @@ const Pe = (a, o) => {
439
439
  null,
440
440
  -1
441
441
  /* HOISTED */
442
- ), os = /* @__PURE__ */ T(
442
+ ), as = /* @__PURE__ */ T(
443
443
  "path",
444
444
  {
445
445
  d: "M640 0l320 320H768a128 128 0 0 1-128-128V0z",
@@ -449,11 +449,11 @@ const Pe = (a, o) => {
449
449
  null,
450
450
  -1
451
451
  /* HOISTED */
452
- ), as = [
453
- rs,
452
+ ), ls = [
454
453
  ss,
455
- os
456
- ], ls = {
454
+ os,
455
+ as
456
+ ], us = {
457
457
  key: 9,
458
458
  t: "1692251753690",
459
459
  class: "icon",
@@ -463,7 +463,7 @@ const Pe = (a, o) => {
463
463
  "p-id": "4336",
464
464
  width: "200",
465
465
  height: "200"
466
- }, us = /* @__PURE__ */ T(
466
+ }, cs = /* @__PURE__ */ T(
467
467
  "path",
468
468
  {
469
469
  d: "M145.6 0C100.8 0 64 36.8 64 81.6v860.8C64 987.2 100.8 1024 145.6 1024h732.8c44.8 0 81.6-36.8 81.6-81.6V324.8L657.6 0h-512z",
@@ -473,7 +473,7 @@ const Pe = (a, o) => {
473
473
  null,
474
474
  -1
475
475
  /* HOISTED */
476
- ), cs = /* @__PURE__ */ T(
476
+ ), fs = /* @__PURE__ */ T(
477
477
  "path",
478
478
  {
479
479
  d: "M960 326.4v16H755.2s-100.8-20.8-99.2-107.2c0 0 3.2 91.2 96 91.2h208z",
@@ -483,7 +483,7 @@ const Pe = (a, o) => {
483
483
  null,
484
484
  -1
485
485
  /* HOISTED */
486
- ), fs = /* @__PURE__ */ T(
486
+ ), hs = /* @__PURE__ */ T(
487
487
  "path",
488
488
  {
489
489
  d: "M657.6 0v233.6c0 25.6 17.6 92.8 97.6 92.8H960L657.6 0z",
@@ -494,7 +494,7 @@ const Pe = (a, o) => {
494
494
  null,
495
495
  -1
496
496
  /* HOISTED */
497
- ), hs = /* @__PURE__ */ T(
497
+ ), ds = /* @__PURE__ */ T(
498
498
  "path",
499
499
  {
500
500
  d: "M344 862.4h-100.8c-9.6 0-17.6-8-17.6-17.6V688c0-9.6 8-17.6 17.6-17.6h100.8c4.8 0 9.6 4.8 9.6 11.2 0 6.4-4.8 9.6-9.6 9.6h-94.4v62.4h91.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-91.2v67.2h94.4c4.8 0 9.6 4.8 9.6 9.6 0 6.4-4.8 11.2-9.6 11.2z m193.6 1.6c-4.8 0-8 0-9.6-3.2l-59.2-80-60.8 80c-1.6 3.2-4.8 3.2-8 3.2-6.4 0-11.2-4.8-11.2-11.2 0-1.6 0-4.8 1.6-6.4l62.4-81.6-57.6-78.4c-1.6-1.6-3.2-3.2-3.2-6.4 0-4.8 4.8-11.2 12.8-11.2 3.2 0 6.4 1.6 8 4.8l56 73.6 54.4-73.6c1.6-3.2 4.8-4.8 9.6-4.8s11.2 4.8 11.2 11.2c0 3.2 0 4.8-1.6 6.4l-57.6 76.8 60.8 83.2c1.6 1.6 3.2 4.8 3.2 6.4 0 6.4-6.4 11.2-11.2 11.2z m171.2-1.6h-99.2c-9.6 0-17.6-8-17.6-17.6V688c0-9.6 8-17.6 17.6-17.6h99.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-92.8v62.4h91.2c6.4 0 11.2 4.8 11.2 11.2 0 6.4-4.8 9.6-11.2 9.6h-91.2v67.2h92.8c6.4 0 11.2 4.8 11.2 9.6 0 6.4-4.8 11.2-11.2 11.2z",
@@ -504,12 +504,12 @@ const Pe = (a, o) => {
504
504
  null,
505
505
  -1
506
506
  /* HOISTED */
507
- ), ds = [
508
- us,
507
+ ), gs = [
509
508
  cs,
510
509
  fs,
511
- hs
512
- ], gs = {
510
+ hs,
511
+ ds
512
+ ], ps = {
513
513
  key: 10,
514
514
  t: "1714099890925",
515
515
  class: "icon",
@@ -519,7 +519,7 @@ const Pe = (a, o) => {
519
519
  "p-id": "2271",
520
520
  width: "200",
521
521
  height: "200"
522
- }, ps = /* @__PURE__ */ T(
522
+ }, vs = /* @__PURE__ */ T(
523
523
  "path",
524
524
  {
525
525
  d: "M227.555556 28.444444h389.404444a19.911111 19.911111 0 0 1 14.734222 6.542223l271.132445 298.211555a28.444444 28.444444 0 0 1 7.395555 19.143111V938.666667a56.888889 56.888889 0 0 1-56.888889 56.888889H227.555556a56.888889 56.888889 0 0 1-56.888889-56.888889V85.333333a56.888889 56.888889 0 0 1 56.888889-56.888889z",
@@ -529,7 +529,7 @@ const Pe = (a, o) => {
529
529
  null,
530
530
  -1
531
531
  /* HOISTED */
532
- ), vs = /* @__PURE__ */ T(
532
+ ), ms = /* @__PURE__ */ T(
533
533
  "path",
534
534
  {
535
535
  d: "M625.777778 30.492444a19.911111 19.911111 0 0 1 5.916444 4.465778l271.132445 298.24a28.444444 28.444444 0 0 1 5.176889 8.135111H682.666667a56.888889 56.888889 0 0 1-56.888889-56.888889V30.492444z",
@@ -540,7 +540,7 @@ const Pe = (a, o) => {
540
540
  null,
541
541
  -1
542
542
  /* HOISTED */
543
- ), ms = /* @__PURE__ */ T(
543
+ ), ys = /* @__PURE__ */ T(
544
544
  "path",
545
545
  {
546
546
  d: "M396.288 645.176889c0 5.461333-0.796444 10.865778-2.389333 16.156444-1.592889 5.319111-4.266667 10.069333-7.964445 14.222223-3.697778 4.181333-8.647111 7.509333-14.791111 10.012444a60.871111 60.871111 0 0 1-22.869333 3.754667c-15.160889 0-26.851556-3.982222-35.043556-11.946667-8.192-7.964444-12.288-19.683556-12.288-35.157333v-10.012445h21.617778v6.826667c0 4.721778 0.369778 9.045333 1.137778 12.970667a28.074667 28.074667 0 0 0 3.982222 10.24 18.773333 18.773333 0 0 0 7.964444 6.712888c3.413333 1.592889 7.765333 2.389333 13.084445 2.389334 9.870222 0 16.64-2.645333 20.366222-7.964445 3.697778-5.290667 5.575111-12.430222 5.575111-21.390222v-118.784h21.617778v121.969778z m44.145778 3.413333c0.142222 4.266667 1.137778 7.850667 2.958222 10.808889a20.593778 20.593778 0 0 0 7.168 7.054222c2.958222 1.763556 6.286222 3.015111 10.012444 3.754667 3.697778 0.768 7.537778 1.137778 11.491556 1.137778 3.043556 0 6.229333-0.227556 9.557333-0.682667 3.328-0.455111 6.4-1.28 9.216-2.503111a17.294222 17.294222 0 0 0 6.940445-5.347556 14.250667 14.250667 0 0 0 2.730666-8.988444 12.885333 12.885333 0 0 0-5.688888-11.377778c-3.783111-2.56-8.533333-4.664889-14.222223-6.257778a232.561778 232.561778 0 0 0-18.545777-4.323555 96.227556 96.227556 0 0 1-18.545778-5.461333 38.4 38.4 0 0 1-14.222222-9.898667c-3.783111-4.266667-5.688889-10.154667-5.688889-17.749333a28.16 28.16 0 0 1 3.982222-15.246223c2.645333-4.266667 6.058667-7.68 10.24-10.353777 4.181333-2.645333 8.874667-4.608 14.108444-5.916445 5.233778-1.28 10.439111-1.934222 15.587556-1.934222 6.684444 0 12.8 0.568889 18.432 1.706667 5.603556 1.137778 10.581333 3.128889 14.904889 5.916444 4.323556 2.816 7.765333 6.599111 10.353778 11.377778 2.56 4.778667 4.096 10.752 4.551111 17.863111h-19.342223a19.569778 19.569778 0 0 0-2.958222-9.443556 19.370667 19.370667 0 0 0-6.371555-6.030222 28.956444 28.956444 0 0 0-8.533334-3.299555 43.918222 43.918222 0 0 0-9.443555-1.024c-2.872889 0-5.802667 0.227556-8.760889 0.682666a29.496889 29.496889 0 0 0-8.078222 2.389334 16.270222 16.270222 0 0 0-5.916445 4.551111 11.463111 11.463111 0 0 0-2.275555 7.395555c0 3.356444 1.166222 6.115556 3.527111 8.305778a28.16 28.16 0 0 0 8.988444 5.461333c3.640889 1.422222 7.736889 2.673778 12.288 3.640889 4.551111 0.995556 9.102222 1.991111 13.653334 3.072 4.835556 1.080889 9.585778 2.360889 14.222222 3.868445 4.636444 1.536 8.732444 3.527111 12.288 6.030222s6.456889 5.660444 8.647111 9.443555a27.733333 27.733333 0 0 1 3.299555 14.108445c0 7.111111-1.479111 13.056-4.437333 17.749333a34.702222 34.702222 0 0 1-11.605333 11.377778 48.497778 48.497778 0 0 1-16.156445 6.030222c-5.973333 1.137778-11.946667 1.706667-17.863111 1.706667a82.773333 82.773333 0 0 1-18.659555-2.048 45.795556 45.795556 0 0 1-15.701334-6.712889 34.218667 34.218667 0 0 1-10.922666-12.288 42.581333 42.581333 0 0 1-4.551111-18.545778h19.342222z m116.053333-21.617778c0 7.111111 0.938667 13.482667 2.844445 19.000889 1.905778 5.546667 4.522667 10.183111 7.850666 13.880889a34.076444 34.076444 0 0 0 25.941334 11.491556 34.076444 34.076444 0 0 0 25.941333-11.491556c3.328-3.697778 5.973333-8.334222 7.850667-13.880889 1.905778-5.518222 2.844444-11.861333 2.844444-19.000889 0-7.111111-0.938667-13.454222-2.844444-19.000888a41.016889 41.016889 0 0 0-7.850667-13.994667 33.422222 33.422222 0 0 0-11.719111-8.647111 34.872889 34.872889 0 0 0-14.222222-2.958222c-5.006222 0-9.756444 0.995556-14.222223 2.958222-4.465778 1.991111-8.391111 4.835556-11.719111 8.647111-3.328 3.811556-5.973333 8.476444-7.850666 13.994667-1.905778 5.546667-2.844444 11.889778-2.844445 19.000888z m-20.48 0c0-8.647111 1.223111-16.725333 3.640889-24.234666a54.897778 54.897778 0 0 1 10.922667-19.569778c4.835556-5.518222 10.837333-9.898667 17.976889-13.084444 7.111111-3.185778 15.331556-4.778667 24.576-4.778667 9.386667 0 17.635556 1.592889 24.689777 4.778667 7.054222 3.185778 12.999111 7.566222 17.863111 13.084444 4.835556 5.546667 8.504889 12.060444 10.922667 19.569778 2.417778 7.509333 3.640889 15.587556 3.640889 24.234666 0 8.647111-1.223111 16.696889-3.640889 24.120889-2.417778 7.452444-6.058667 13.937778-10.922667 19.456-4.835556 5.546667-10.808889 9.870222-17.863111 12.970667-7.054222 3.128889-15.274667 4.664889-24.689777 4.664889-9.244444 0-17.436444-1.536-24.576-4.664889a50.261333 50.261333 0 0 1-17.976889-12.970667 55.068444 55.068444 0 0 1-10.922667-19.456 77.283556 77.283556 0 0 1-3.640889-24.120889z m136.988445-58.936888h18.204444v18.659555h0.455111c8.049778-14.250667 20.764444-21.390222 38.229333-21.390222 7.736889 0 14.193778 1.080889 19.342223 3.185778 5.148444 2.133333 9.329778 5.091556 12.515555 8.874666 3.185778 3.811556 5.404444 8.305778 6.712889 13.539556 1.28 5.233778 1.934222 11.036444 1.934222 17.408v77.368889h-19.342222v-79.644445c0-7.281778-2.133333-13.027556-6.371555-17.294222-4.266667-4.266667-10.097778-6.371556-17.521778-6.371555-5.916444 0-11.036444 0.910222-15.36 2.730666a28.814222 28.814222 0 0 0-10.808889 7.736889 33.336889 33.336889 0 0 0-6.485333 11.719111c-1.422222 4.494222-2.161778 9.386667-2.161778 14.677334v66.446222h-19.342222V568.035556z",
@@ -550,11 +550,11 @@ const Pe = (a, o) => {
550
550
  null,
551
551
  -1
552
552
  /* HOISTED */
553
- ), ys = [
554
- ps,
553
+ ), _s = [
555
554
  vs,
556
- ms
557
- ], _s = {
555
+ ms,
556
+ ys
557
+ ], ks = {
558
558
  key: 11,
559
559
  t: "1686300037564",
560
560
  class: "icon",
@@ -564,7 +564,7 @@ const Pe = (a, o) => {
564
564
  "p-id": "7515",
565
565
  width: "200",
566
566
  height: "200"
567
- }, ks = /* @__PURE__ */ T(
567
+ }, Cs = /* @__PURE__ */ T(
568
568
  "path",
569
569
  {
570
570
  d: "M160 0h512l256 256v704c0 35.3472-28.6528 64-64 64H160c-35.3472 0-64-28.6528-64-64V64c0-35.3472 28.6528-64 64-64z",
@@ -574,7 +574,7 @@ const Pe = (a, o) => {
574
574
  null,
575
575
  -1
576
576
  /* HOISTED */
577
- ), Cs = /* @__PURE__ */ T(
577
+ ), ws = /* @__PURE__ */ T(
578
578
  "path",
579
579
  {
580
580
  d: "M672 0l256 256h-192c-35.3472 0-64-28.6528-64-64V0z",
@@ -584,7 +584,7 @@ const Pe = (a, o) => {
584
584
  null,
585
585
  -1
586
586
  /* HOISTED */
587
- ), ws = /* @__PURE__ */ T(
587
+ ), bs = /* @__PURE__ */ T(
588
588
  "path",
589
589
  {
590
590
  d: "M384 499.2c0-25.6 5.12-46.08 10.24-58.88 5.12-12.8 15.36-25.6 28.16-35.84 12.8-12.8 25.6-20.48 43.52-25.6 15.36-5.12 30.72-7.68 48.64-7.68 35.84 0 64 10.24 89.6 30.72C627.2 422.4 640 448 640 481.28c0 15.36-5.12 28.16-10.24 40.96s-17.92 28.16-38.4 46.08-28.16 30.72-35.84 38.4c-7.68 7.68-10.24 17.92-15.36 28.16-5.12 10.24-2.56 17.92-2.56 43.52h-51.2c0-25.6 2.56-38.4 5.12-51.2s7.68-23.04 15.36-33.28 15.36-23.04 33.28-40.96c17.92-17.92 30.72-30.72 35.84-38.4 5.12-7.68 10.24-20.48 10.24-38.4s-7.68-30.72-20.48-43.52-30.72-20.48-53.76-20.48c-51.2 0-76.8 35.84-76.8 87.04h-51.2z m153.6 281.6h-51.2v-51.2h51.2v51.2z",
@@ -594,11 +594,11 @@ const Pe = (a, o) => {
594
594
  null,
595
595
  -1
596
596
  /* HOISTED */
597
- ), bs = [
598
- ks,
597
+ ), Ts = [
599
598
  Cs,
600
- ws
601
- ], Ts = /* @__PURE__ */ Z({
599
+ ws,
600
+ bs
601
+ ], Es = /* @__PURE__ */ Z({
602
602
  __name: "IkFileIcon",
603
603
  props: {
604
604
  type: {
@@ -620,11 +620,11 @@ const Pe = (a, o) => {
620
620
  },
621
621
  setup(a) {
622
622
  const o = a, r = Y(() => o.file ? ri(o.file, o.fields) : o.type);
623
- return (t, e) => r.value === "image" ? (E(), P("svg", br, Ir)) : r.value === "zip" ? (E(), P("svg", Pr, Dr)) : r.value === "ppt" ? (E(), P("svg", Or, Mr)) : r.value === "word" ? (E(), P("svg", Nr, Ur)) : r.value === "pdf" ? (E(), P("svg", zr, Wr)) : r.value === "txt" ? (E(), P("svg", Gr, Yr)) : r.value === "audio" ? (E(), P("svg", Xr, Jr)) : r.value === "video" ? (E(), P("svg", Qr, is)) : r.value === "excel" ? (E(), P("svg", ns, as)) : r.value === "exe" ? (E(), P("svg", ls, ds)) : r.value === "json" ? (E(), P("svg", gs, ys)) : (E(), P("svg", _s, bs));
623
+ return (t, e) => r.value === "image" ? (E(), P("svg", Tr, Pr)) : r.value === "zip" ? (E(), P("svg", Lr, Or)) : r.value === "ppt" ? (E(), P("svg", Rr, Nr)) : r.value === "word" ? (E(), P("svg", Br, zr)) : r.value === "pdf" ? (E(), P("svg", Vr, Gr)) : r.value === "txt" ? (E(), P("svg", $r, Xr)) : r.value === "audio" ? (E(), P("svg", qr, Qr)) : r.value === "video" ? (E(), P("svg", es, ns)) : r.value === "excel" ? (E(), P("svg", rs, ls)) : r.value === "exe" ? (E(), P("svg", us, gs)) : r.value === "json" ? (E(), P("svg", ps, _s)) : (E(), P("svg", ks, Ts));
624
624
  }
625
- }), Es = Pe(Ts);
625
+ }), Ss = Pe(Es);
626
626
  /*! Element Plus Icons Vue v2.3.1 */
627
- var Ss = /* @__PURE__ */ Z({
627
+ var xs = /* @__PURE__ */ Z({
628
628
  name: "ArrowLeft",
629
629
  __name: "arrow-left",
630
630
  setup(a) {
@@ -638,7 +638,7 @@ var Ss = /* @__PURE__ */ Z({
638
638
  })
639
639
  ]));
640
640
  }
641
- }), xs = Ss, Is = /* @__PURE__ */ Z({
641
+ }), Is = xs, Ps = /* @__PURE__ */ Z({
642
642
  name: "ArrowRight",
643
643
  __name: "arrow-right",
644
644
  setup(a) {
@@ -652,7 +652,7 @@ var Ss = /* @__PURE__ */ Z({
652
652
  })
653
653
  ]));
654
654
  }
655
- }), Ps = Is, Ls = /* @__PURE__ */ Z({
655
+ }), Ls = Ps, As = /* @__PURE__ */ Z({
656
656
  name: "Close",
657
657
  __name: "close",
658
658
  setup(a) {
@@ -666,7 +666,7 @@ var Ss = /* @__PURE__ */ Z({
666
666
  })
667
667
  ]));
668
668
  }
669
- }), wn = Ls, As = /* @__PURE__ */ Z({
669
+ }), bn = As, Ds = /* @__PURE__ */ Z({
670
670
  name: "FullScreen",
671
671
  __name: "full-screen",
672
672
  setup(a) {
@@ -680,7 +680,7 @@ var Ss = /* @__PURE__ */ Z({
680
680
  })
681
681
  ]));
682
682
  }
683
- }), Ds = As, Os = /* @__PURE__ */ Z({
683
+ }), Os = Ds, Rs = /* @__PURE__ */ Z({
684
684
  name: "RefreshLeft",
685
685
  __name: "refresh-left",
686
686
  setup(a) {
@@ -694,7 +694,7 @@ var Ss = /* @__PURE__ */ Z({
694
694
  })
695
695
  ]));
696
696
  }
697
- }), Rs = Os, Fs = /* @__PURE__ */ Z({
697
+ }), Fs = Rs, Ms = /* @__PURE__ */ Z({
698
698
  name: "RefreshRight",
699
699
  __name: "refresh-right",
700
700
  setup(a) {
@@ -708,7 +708,7 @@ var Ss = /* @__PURE__ */ Z({
708
708
  })
709
709
  ]));
710
710
  }
711
- }), Ms = Fs, Ns = /* @__PURE__ */ Z({
711
+ }), Ns = Ms, Bs = /* @__PURE__ */ Z({
712
712
  name: "ScaleToOriginal",
713
713
  __name: "scale-to-original",
714
714
  setup(a) {
@@ -722,7 +722,7 @@ var Ss = /* @__PURE__ */ Z({
722
722
  })
723
723
  ]));
724
724
  }
725
- }), Bs = Ns, Hs = /* @__PURE__ */ Z({
725
+ }), Hs = Bs, Us = /* @__PURE__ */ Z({
726
726
  name: "ZoomIn",
727
727
  __name: "zoom-in",
728
728
  setup(a) {
@@ -736,7 +736,7 @@ var Ss = /* @__PURE__ */ Z({
736
736
  })
737
737
  ]));
738
738
  }
739
- }), Us = Hs, zs = /* @__PURE__ */ Z({
739
+ }), zs = Us, Vs = /* @__PURE__ */ Z({
740
740
  name: "ZoomOut",
741
741
  __name: "zoom-out",
742
742
  setup(a) {
@@ -750,13 +750,13 @@ var Ss = /* @__PURE__ */ Z({
750
750
  })
751
751
  ]));
752
752
  }
753
- }), Vs = zs;
753
+ }), js = Vs;
754
754
  const gt = (a, o) => {
755
755
  const r = a.__vccOpts || a;
756
756
  for (const [t, e] of o)
757
757
  r[t] = e;
758
758
  return r;
759
- }, js = (a, o = 2) => {
759
+ }, Ws = (a, o = 2) => {
760
760
  if (a === void 0)
761
761
  return "";
762
762
  if (a === 0)
@@ -765,69 +765,72 @@ const gt = (a, o) => {
765
765
  let e = a / Math.pow(1024, t);
766
766
  return (e % 1 === 0 ? e.toFixed(o || 0) : e.toFixed(o)) + " " + r[t];
767
767
  }, ht = (a, o) => o ? o.startsWith("http") ? o : `${a || location.origin}${o}` : "";
768
- const Ws = (a) => {
769
- const o = lt("loadUrl"), r = Y(() => a.loadUrl || a.fileUrl || (o == null ? void 0 : o.value)), t = lt("uploadUrl"), e = Y(() => a.action || a.uploadUrl || (t == null ? void 0 : t.value)), i = lt("token"), n = Y(() => a.token || (i == null ? void 0 : i.value)), s = lt("onlyofficeConfig"), l = Y(() => a.onlyofficeConfig || (s == null ? void 0 : s.value)), u = lt("userInfo"), c = Y(() => a.userInfo || (u == null ? void 0 : u.value));
768
+ const Fi = [
769
+ "csv",
770
+ "djvu",
771
+ "doc",
772
+ "docm",
773
+ "docx",
774
+ "docxf",
775
+ "dot",
776
+ "dotm",
777
+ "dotx",
778
+ "epub",
779
+ "fb2",
780
+ "fodp",
781
+ "fods",
782
+ "fodt",
783
+ "htm",
784
+ "html",
785
+ "mht",
786
+ "odp",
787
+ "ods",
788
+ "odt",
789
+ "oform",
790
+ "otp",
791
+ "ots",
792
+ "ott",
793
+ "oxps",
794
+ "pdf",
795
+ "pot",
796
+ "potm",
797
+ "potx",
798
+ "pps",
799
+ "ppsm",
800
+ "ppsx",
801
+ "ppt",
802
+ "pptm",
803
+ "pptx",
804
+ "rtf",
805
+ "txt",
806
+ "xls",
807
+ "xlsb",
808
+ "xlsm",
809
+ "xlsx",
810
+ "xlt",
811
+ "xltm",
812
+ "xltx",
813
+ "xml",
814
+ "xps",
815
+ "png",
816
+ "jpeg",
817
+ "jpg",
818
+ "webp",
819
+ "video",
820
+ "mp4",
821
+ "flv",
822
+ "tls"
823
+ ], Gs = (a) => {
824
+ const o = lt("loadUrl"), r = Y(() => a.loadUrl || a.fileUrl || (o == null ? void 0 : o.value)), t = lt("uploadUrl"), e = Y(() => a.action || a.uploadUrl || (t == null ? void 0 : t.value)), i = lt("token"), n = Y(() => a.token || (i == null ? void 0 : i.value)), s = lt("onlyofficeConfig"), l = Y(() => a.onlyofficeConfig || (s == null ? void 0 : s.value)), u = lt("userInfo"), c = Y(() => a.userInfo || (u == null ? void 0 : u.value)), h = [...Fi, ...Fi.map((d) => d.toLocaleUpperCase())];
770
825
  return {
771
826
  cLoadUrl: r,
772
827
  cUploadUrl: e,
773
828
  cToken: n,
774
829
  cOnlyofficeConfig: l,
775
830
  cUserInfo: c,
776
- cOnlyofficePreviewType: [
777
- "csv",
778
- "djvu",
779
- "doc",
780
- "docm",
781
- "docx",
782
- "docxf",
783
- "dot",
784
- "dotm",
785
- "dotx",
786
- "epub",
787
- "fb2",
788
- "fodp",
789
- "fods",
790
- "fodt",
791
- "htm",
792
- "html",
793
- "mht",
794
- "odp",
795
- "ods",
796
- "odt",
797
- "oform",
798
- "otp",
799
- "ots",
800
- "ott",
801
- "oxps",
802
- "pdf",
803
- "pot",
804
- "potm",
805
- "potx",
806
- "pps",
807
- "ppsm",
808
- "ppsx",
809
- "ppt",
810
- "pptm",
811
- "pptx",
812
- "rtf",
813
- "txt",
814
- "xls",
815
- "xlsb",
816
- "xlsm",
817
- "xlsx",
818
- "xlt",
819
- "xltm",
820
- "xltx",
821
- "xml",
822
- "xps",
823
- "png",
824
- "jpeg",
825
- "jpg",
826
- "video",
827
- "mp4"
828
- ]
831
+ cOnlyofficePreviewType: h
829
832
  };
830
- }, bn = Ws, Gs = ["onClick"], $s = { class: "fileName simple" }, Ks = ["onClick"], Ys = { class: "text" }, Xs = { class: "fileName" }, qs = { class: "size" }, Zs = /* @__PURE__ */ Z({
833
+ }, Tn = Gs, $s = ["onClick"], Ks = { class: "fileName simple" }, Ys = ["onClick"], Xs = { class: "text" }, qs = { class: "fileName" }, Zs = { class: "size" }, Js = /* @__PURE__ */ Z({
831
834
  __name: "IkPreviewFile",
832
835
  props: {
833
836
  list: {
@@ -903,37 +906,41 @@ const Ws = (a) => {
903
906
  },
904
907
  emits: ["handPreview"],
905
908
  setup(a, { emit: o }) {
906
- const r = a, { cLoadUrl: t, cOnlyofficeConfig: e, cOnlyofficePreviewType: i } = bn(r), n = o, s = Y(() => ({
909
+ const r = a, { cLoadUrl: t, cOnlyofficeConfig: e, cOnlyofficePreviewType: i } = Tn(r), n = o, s = Y(() => ({
907
910
  name: "name",
908
911
  url: "url",
909
912
  suffix: "suffix",
910
913
  size: "size",
911
914
  ...r.field
912
915
  })), l = se({}), u = se(!1), c = (g) => {
913
- var m, y;
916
+ var v, y;
914
917
  l.value = {
915
918
  ...g,
916
919
  name: g.name,
917
920
  url: ht(
918
921
  t.value,
919
- g.url || ((y = (m = g == null ? void 0 : g.response) == null ? void 0 : m.data) == null ? void 0 : y.id) || (g == null ? void 0 : g.id)
922
+ (g == null ? void 0 : g.url) || ((y = (v = g == null ? void 0 : g.response) == null ? void 0 : v.data) == null ? void 0 : y.id) || (g == null ? void 0 : g.id)
920
923
  )
921
924
  }, r.isOnlyOfficePreview && (u.value = !0), n("handPreview", l.value);
922
925
  }, h = (g) => {
923
- vr.downloadFile(
926
+ mr.downloadFile(
924
927
  ht(
925
928
  t.value,
926
929
  g[s.value.url] || g.attachmentId || g.id
927
930
  ),
928
931
  g[s.value.name] || g.attachmentName
929
932
  );
930
- }, d = Y(() => ni.isNumber(r.width) ? `${r.width}px` : r.width), p = Y(() => r.list.map((g) => ({
931
- ...g,
932
- name: g[s.value.name] || g.attachmentName,
933
- size: g[s.value.size] || g.fileSize || g.attachmentSize,
934
- suffix: g[s.value.suffix] || g.attachmentSuffix
935
- })));
936
- return (g, m) => {
933
+ }, d = Y(() => ni.isNumber(r.width) ? `${r.width}px` : r.width), p = Y(() => r.list.map((g) => {
934
+ var y;
935
+ const v = g[s.value.name] || g.attachmentName;
936
+ return {
937
+ ...g,
938
+ name: v,
939
+ size: g[s.value.size] || (g == null ? void 0 : g.fileSize) || (g == null ? void 0 : g.attachmentSize),
940
+ suffix: g[s.value.suffix] || (g == null ? void 0 : g.attachmentSuffix) || ((y = v.split(".")) == null ? void 0 : y.at(-1))
941
+ };
942
+ }));
943
+ return (g, v) => {
937
944
  var C, b, w;
938
945
  const y = rt("tmplate");
939
946
  return E(), P(
@@ -954,7 +961,7 @@ const Ws = (a) => {
954
961
  }, [
955
962
  T(
956
963
  "div",
957
- $s,
964
+ Ks,
958
965
  Ne(L.name),
959
966
  1
960
967
  /* TEXT */
@@ -984,7 +991,7 @@ const Ws = (a) => {
984
991
  2
985
992
  /* CLASS */
986
993
  )
987
- ], 12, Gs))),
994
+ ], 12, $s))),
988
995
  256
989
996
  /* UNKEYED_FRAGMENT */
990
997
  )) : (E(), pe(y, { key: 1 }, {
@@ -1009,24 +1016,24 @@ const Ws = (a) => {
1009
1016
  class: "file-card",
1010
1017
  onClick: (R) => c(L)
1011
1018
  }, [
1012
- j(S(Es), {
1019
+ j(S(Ss), {
1013
1020
  file: L,
1014
1021
  style: oe({ height: `${a.iconSize}px` }),
1015
1022
  class: "ikui-w-auto",
1016
1023
  fields: s.value
1017
1024
  }, null, 8, ["file", "style", "fields"]),
1018
- T("div", Ys, [
1025
+ T("div", Xs, [
1019
1026
  T(
1020
1027
  "div",
1021
- Xs,
1028
+ qs,
1022
1029
  Ne(L.name),
1023
1030
  1
1024
1031
  /* TEXT */
1025
1032
  ),
1026
1033
  T(
1027
1034
  "div",
1028
- qs,
1029
- Ne(S(js)(L.size)),
1035
+ Zs,
1036
+ Ne(S(Ws)(L.size)),
1030
1037
  1
1031
1038
  /* TEXT */
1032
1039
  )
@@ -1058,7 +1065,7 @@ const Ws = (a) => {
1058
1065
  2
1059
1066
  /* CLASS */
1060
1067
  )
1061
- ], 8, Ks)
1068
+ ], 8, Ys)
1062
1069
  ],
1063
1070
  6
1064
1071
  /* CLASS, STYLE */
@@ -1075,9 +1082,9 @@ const Ws = (a) => {
1075
1082
  64
1076
1083
  /* STABLE_FRAGMENT */
1077
1084
  )) : ee("v-if", !0),
1078
- j(S(eo), {
1085
+ j(S(to), {
1079
1086
  show: u.value,
1080
- "onUpdate:show": m[0] || (m[0] = (L) => u.value = L),
1087
+ "onUpdate:show": v[0] || (v[0] = (L) => u.value = L),
1081
1088
  loadUrl: S(t),
1082
1089
  file: l.value,
1083
1090
  onlyofficeServer: ((b = S(e)) == null ? void 0 : b.serverUrl) || a.onlyofficeServer,
@@ -1091,7 +1098,7 @@ const Ws = (a) => {
1091
1098
  };
1092
1099
  }
1093
1100
  });
1094
- const Js = Pe(Zs), Qs = /* @__PURE__ */ Z({
1101
+ const Qs = Pe(Js), eo = /* @__PURE__ */ Z({
1095
1102
  __name: "IkPreviewFileDialog",
1096
1103
  props: /* @__PURE__ */ wt({
1097
1104
  file: {
@@ -1134,12 +1141,12 @@ const Js = Pe(Zs), Qs = /* @__PURE__ */ Z({
1134
1141
  suffix: "suffix",
1135
1142
  size: "fileSize",
1136
1143
  ...o.field
1137
- })), e = se(null), i = se(null), n = ir({
1144
+ })), e = se(null), i = se(null), n = nr({
1138
1145
  image: !1,
1139
1146
  office: !1,
1140
1147
  video: !1
1141
1148
  }), s = (u) => {
1142
- var c, h, d, p, g, m, y;
1149
+ var c, h, d, p, g, v, y;
1143
1150
  try {
1144
1151
  const C = ((c = u == null ? void 0 : u.response) == null ? void 0 : c.data) || u, b = C[t.value.url] || (C == null ? void 0 : C.id) || C.attachmentId, w = (h = C[t.value.suffix] || C.attachmentSuffix) == null ? void 0 : h.toLowerCase(), L = C[t.value.name] || (C == null ? void 0 : C.attachmentName) || (C == null ? void 0 : C.originName);
1145
1152
  if (i.value = {
@@ -1158,20 +1165,20 @@ const Js = Pe(Zs), Qs = /* @__PURE__ */ Z({
1158
1165
  editorConfig: {
1159
1166
  ...((p = o.onlyOfficeConfig) == null ? void 0 : p.editorConfig) || {},
1160
1167
  customization: {
1161
- ...((m = (g = o.onlyOfficeConfig) == null ? void 0 : g.editorConfig) == null ? void 0 : m.customization) || {},
1168
+ ...((v = (g = o.onlyOfficeConfig) == null ? void 0 : g.editorConfig) == null ? void 0 : v.customization) || {},
1162
1169
  review: {
1163
1170
  reviewDisplay: "final"
1164
1171
  }
1165
1172
  }
1166
1173
  },
1167
1174
  document: {
1168
- key: kn(),
1175
+ key: Cn(),
1169
1176
  title: L,
1170
1177
  url: ht(o.loadUrl, b),
1171
1178
  fileType: w,
1172
1179
  ...((y = o.onlyOfficeConfig) == null ? void 0 : y.document) || {}
1173
1180
  },
1174
- documentType: wr(w)
1181
+ documentType: br(w)
1175
1182
  };
1176
1183
  return;
1177
1184
  }
@@ -1193,7 +1200,7 @@ const Js = Pe(Zs), Qs = /* @__PURE__ */ Z({
1193
1200
  Ee,
1194
1201
  { key: 0 },
1195
1202
  [
1196
- (h = i.value) != null && h.url && n.image ? (E(), pe(S(Uo), {
1203
+ (h = i.value) != null && h.url && n.image ? (E(), pe(S(zo), {
1197
1204
  key: 0,
1198
1205
  onClose: c[0] || (c[0] = (g) => l()),
1199
1206
  ref: "previewImgRef",
@@ -1203,12 +1210,12 @@ const Js = Pe(Zs), Qs = /* @__PURE__ */ Z({
1203
1210
  }, null, 8, ["url-list"])) : ee("v-if", !0),
1204
1211
  ee(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
1205
1212
  ee(" 文档类 "),
1206
- j(S(iu), {
1213
+ j(S(nu), {
1207
1214
  modelValue: n.video,
1208
1215
  "onUpdate:modelValue": c[1] || (c[1] = (g) => n.video = g),
1209
1216
  url: (p = i.value) == null ? void 0 : p.url
1210
1217
  }, null, 8, ["modelValue", "url"]),
1211
- j(S(po), {
1218
+ j(S(vo), {
1212
1219
  modelValue: n.office,
1213
1220
  "onUpdate:modelValue": c[2] || (c[2] = (g) => n.office = g),
1214
1221
  draggable: "",
@@ -1226,7 +1233,7 @@ const Js = Pe(Zs), Qs = /* @__PURE__ */ Z({
1226
1233
  default: Q(() => {
1227
1234
  var g;
1228
1235
  return [
1229
- j(S(To), {
1236
+ j(S(Eo), {
1230
1237
  "config-options": e.value,
1231
1238
  "document-server-url": ((g = a.onlyOfficeConfig) == null ? void 0 : g.serverUrl) || a.onlyofficeServer
1232
1239
  }, null, 8, ["config-options", "document-server-url"])
@@ -1242,18 +1249,18 @@ const Js = Pe(Zs), Qs = /* @__PURE__ */ Z({
1242
1249
  };
1243
1250
  }
1244
1251
  });
1245
- const eo = Pe(Qs), to = {
1252
+ const to = Pe(eo), io = {
1246
1253
  key: 0,
1247
1254
  class: "ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"
1248
- }, io = {
1255
+ }, no = {
1249
1256
  key: 1,
1250
1257
  class: "h-[1em] w-[1em]",
1251
1258
  "aria-hidden": "true"
1252
- }, no = ["xlink:href"], ro = ["src"], so = {
1259
+ }, ro = ["xlink:href"], so = ["src"], oo = {
1253
1260
  key: 1,
1254
1261
  class: "h-[1em] w-[1em]",
1255
1262
  "aria-hidden": "true"
1256
- }, oo = ["xlink:href"], ao = ["src"], lo = /* @__PURE__ */ Z({
1263
+ }, ao = ["xlink:href"], lo = ["src"], uo = /* @__PURE__ */ Z({
1257
1264
  name: "IkSvgIcon",
1258
1265
  __name: "index",
1259
1266
  props: {
@@ -1306,14 +1313,14 @@ const eo = Pe(Qs), to = {
1306
1313
  padding: r.value.showBg || r.value.bg ? r.value.padding : 0,
1307
1314
  ...r.value.color && t.value !== "iksig" ? {
1308
1315
  "--ik-color-icon-dark": r.value.color,
1309
- "--ik-color-icon-light": r.value.colorLight || mr.setOpacity(r.value.color, r.value.opacity)
1316
+ "--ik-color-icon-light": r.value.colorLight || yr.setOpacity(r.value.color, r.value.opacity)
1310
1317
  } : {}
1311
1318
  };
1312
1319
  return r.value.width && (n.width = n.height = typeof r.value.width == "number" ? `${r.value.width}px` : r.value.width), n;
1313
1320
  });
1314
1321
  return (i, n) => {
1315
1322
  const s = rt("el-tooltip"), l = rt("el-button");
1316
- return r.value.tableIconType === "icon" || !r.value.tableIconType ? (E(), P("span", to, [
1323
+ return r.value.tableIconType === "icon" || !r.value.tableIconType ? (E(), P("span", io, [
1317
1324
  r.value.notip || !r.value.title ? (E(), P(
1318
1325
  "i",
1319
1326
  {
@@ -1345,15 +1352,15 @@ const eo = Pe(Qs), to = {
1345
1352
  null,
1346
1353
  6
1347
1354
  /* CLASS, STYLE */
1348
- )) : t.value === "svg" ? (E(), P("svg", io, [
1355
+ )) : t.value === "svg" ? (E(), P("svg", no, [
1349
1356
  T("use", {
1350
1357
  "xlink:href": `#${r.value.name}`
1351
- }, null, 8, no)
1358
+ }, null, 8, ro)
1352
1359
  ])) : t.value === "img" ? (E(), P("img", {
1353
1360
  key: 2,
1354
1361
  src: r.value.name,
1355
1362
  class: "h-[1em] w-[1em]"
1356
- }, null, 8, ro)) : (E(), P(
1363
+ }, null, 8, so)) : (E(), P(
1357
1364
  "i",
1358
1365
  {
1359
1366
  key: 3,
@@ -1401,15 +1408,15 @@ const eo = Pe(Qs), to = {
1401
1408
  null,
1402
1409
  6
1403
1410
  /* CLASS, STYLE */
1404
- )) : t.value === "svg" ? (E(), P("svg", so, [
1411
+ )) : t.value === "svg" ? (E(), P("svg", oo, [
1405
1412
  T("use", {
1406
1413
  "xlink:href": `#${r.value.name}`
1407
- }, null, 8, oo)
1414
+ }, null, 8, ao)
1408
1415
  ])) : t.value === "img" ? (E(), P("img", {
1409
1416
  key: 2,
1410
1417
  src: r.value.name,
1411
1418
  class: "h-[1em] w-[1em]"
1412
- }, null, 8, ao)) : (E(), P(
1419
+ }, null, 8, lo)) : (E(), P(
1413
1420
  "i",
1414
1421
  {
1415
1422
  key: 3,
@@ -1445,7 +1452,7 @@ const eo = Pe(Qs), to = {
1445
1452
  };
1446
1453
  }
1447
1454
  });
1448
- const uo = /* @__PURE__ */ gt(lo, [["__scopeId", "data-v-52806adf"]]), Me = Pe(uo), co = /* @__PURE__ */ Z({
1455
+ const co = /* @__PURE__ */ gt(uo, [["__scopeId", "data-v-52806adf"]]), Me = Pe(co), fo = /* @__PURE__ */ Z({
1449
1456
  __name: "CloseIcon",
1450
1457
  props: {
1451
1458
  showBg: {
@@ -1476,7 +1483,7 @@ const uo = /* @__PURE__ */ gt(lo, [["__scopeId", "data-v-52806adf"]]), Me = Pe(u
1476
1483
  ));
1477
1484
  }
1478
1485
  });
1479
- const fo = /* @__PURE__ */ gt(co, [["__scopeId", "data-v-da39e979"]]), ho = { class: "base-header" }, go = /* @__PURE__ */ Z({
1486
+ const ho = /* @__PURE__ */ gt(fo, [["__scopeId", "data-v-da39e979"]]), go = { class: "base-header" }, po = /* @__PURE__ */ Z({
1480
1487
  __name: "IkBaseDialog",
1481
1488
  props: /* @__PURE__ */ wt({
1482
1489
  title: { default: "" },
@@ -1501,7 +1508,7 @@ const fo = /* @__PURE__ */ gt(co, [["__scopeId", "data-v-da39e979"]]), ho = { cl
1501
1508
  t.value = !t.value;
1502
1509
  }, i = Z({
1503
1510
  setup() {
1504
- return () => nr(fo, {
1511
+ return () => rr(ho, {
1505
1512
  showBg: o.showCloseBg,
1506
1513
  fullscreen: o.fullscreen
1507
1514
  });
@@ -1509,7 +1516,7 @@ const fo = /* @__PURE__ */ gt(co, [["__scopeId", "data-v-da39e979"]]), ho = { cl
1509
1516
  });
1510
1517
  return (n, s) => {
1511
1518
  const l = rt("el-dialog");
1512
- return E(), pe(l, rr({
1519
+ return E(), pe(l, sr({
1513
1520
  modelValue: r.value,
1514
1521
  "onUpdate:modelValue": s[0] || (s[0] = (u) => r.value = u),
1515
1522
  "align-center": ""
@@ -1518,7 +1525,7 @@ const fo = /* @__PURE__ */ gt(co, [["__scopeId", "data-v-da39e979"]]), ho = { cl
1518
1525
  class: `ik-base-dialog ${n.noHeader ? "no-header" : ""} ${n.noFooter ? "no-footer" : ""}`,
1519
1526
  fullscreen: t.value,
1520
1527
  "modal-class": "baseDialog"
1521
- }), sr({
1528
+ }), or({
1522
1529
  icon: Q(() => [
1523
1530
  Fe(n.$slots, "title", {}, () => [
1524
1531
  ii(
@@ -1529,7 +1536,7 @@ const fo = /* @__PURE__ */ gt(co, [["__scopeId", "data-v-da39e979"]]), ho = { cl
1529
1536
  ])
1530
1537
  ]),
1531
1538
  header: Q(() => [
1532
- T("div", ho, [
1539
+ T("div", go, [
1533
1540
  Fe(n.$slots, "header", {}, () => [
1534
1541
  ii(
1535
1542
  Ne(n.title),
@@ -1563,12 +1570,12 @@ const fo = /* @__PURE__ */ gt(co, [["__scopeId", "data-v-da39e979"]]), ho = { cl
1563
1570
  };
1564
1571
  }
1565
1572
  });
1566
- const po = Pe(go);
1567
- var vo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1573
+ const vo = Pe(po);
1574
+ var mo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1568
1575
  function di(a) {
1569
1576
  return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
1570
1577
  }
1571
- function mo(a, o, r, t) {
1578
+ function yo(a, o, r, t) {
1572
1579
  function e(i) {
1573
1580
  return i instanceof r ? i : new r(function(n) {
1574
1581
  n(i);
@@ -1595,7 +1602,7 @@ function mo(a, o, r, t) {
1595
1602
  u((t = t.apply(a, o || [])).next());
1596
1603
  });
1597
1604
  }
1598
- function yo(a, o) {
1605
+ function _o(a, o) {
1599
1606
  var r = { label: 0, sent: function() {
1600
1607
  if (i[0] & 1)
1601
1608
  throw i[1];
@@ -1660,9 +1667,9 @@ function yo(a, o) {
1660
1667
  return { value: u[0] ? u[1] : void 0, done: !0 };
1661
1668
  }
1662
1669
  }
1663
- var _o = function(a, o) {
1664
- return mo(void 0, void 0, void 0, function() {
1665
- return yo(this, function(r) {
1670
+ var ko = function(a, o) {
1671
+ return yo(void 0, void 0, void 0, function() {
1672
+ return _o(this, function(r) {
1666
1673
  return [2, new Promise(function(t, e) {
1667
1674
  try {
1668
1675
  if (window.DocsAPI)
@@ -1674,12 +1681,12 @@ var _o = function(a, o) {
1674
1681
  if (!l) {
1675
1682
  if (clearInterval(n), window.DocsAPI)
1676
1683
  return t(null);
1677
- var u = Fi(o, a, t, e);
1684
+ var u = Mi(o, a, t, e);
1678
1685
  i.remove(), document.body.appendChild(u);
1679
1686
  }
1680
1687
  }, 500);
1681
1688
  else {
1682
- var s = Fi(o, a, t, e);
1689
+ var s = Mi(o, a, t, e);
1683
1690
  document.body.appendChild(s);
1684
1691
  }
1685
1692
  } catch (l) {
@@ -1688,7 +1695,7 @@ var _o = function(a, o) {
1688
1695
  })];
1689
1696
  });
1690
1697
  });
1691
- }, Fi = function(a, o, r, t) {
1698
+ }, Mi = function(a, o, r, t) {
1692
1699
  var e = document.createElement("script");
1693
1700
  return e.id = a, e.type = "text/javascript", e.src = o, e.async = !0, e.onload = function() {
1694
1701
  e.removeAttribute("loading"), r(null);
@@ -1750,7 +1757,7 @@ var _o = function(a, o) {
1750
1757
  var a = this, o = this.documentServerUrl;
1751
1758
  o.endsWith("/") || (o += "/");
1752
1759
  var r = "".concat(o, "web-apps/apps/api/documents/api.js");
1753
- _o(r, "onlyoffice-api-script").then(function() {
1760
+ ko(r, "onlyoffice-api-script").then(function() {
1754
1761
  return a.onLoad();
1755
1762
  }).catch(function() {
1756
1763
  a.onError(-2);
@@ -1864,13 +1871,13 @@ var _o = function(a, o) {
1864
1871
  }
1865
1872
  }
1866
1873
  });
1867
- const ko = ["id"];
1868
- function Co(a, o, r, t, e, i) {
1869
- return E(), P("div", { id: a.id }, null, 8, ko);
1874
+ const Co = ["id"];
1875
+ function wo(a, o, r, t, e, i) {
1876
+ return E(), P("div", { id: a.id }, null, 8, Co);
1870
1877
  }
1871
- gi.render = Co;
1878
+ gi.render = wo;
1872
1879
  gi.__file = "src/components/DocumentEditor.vue";
1873
- const wo = /* @__PURE__ */ Z({
1880
+ const bo = /* @__PURE__ */ Z({
1874
1881
  __name: "IkOnlyOffice",
1875
1882
  props: {
1876
1883
  // 文件服务器的服务的地址
@@ -1918,55 +1925,55 @@ const wo = /* @__PURE__ */ Z({
1918
1925
  ));
1919
1926
  }
1920
1927
  });
1921
- const bo = /* @__PURE__ */ gt(wo, [["__scopeId", "data-v-98d51ef9"]]), To = Pe(bo);
1922
- var Mi;
1923
- const Tn = typeof window < "u", Eo = (a) => typeof a == "string", So = () => {
1928
+ const To = /* @__PURE__ */ gt(bo, [["__scopeId", "data-v-98d51ef9"]]), Eo = Pe(To);
1929
+ var Ni;
1930
+ const En = typeof window < "u", So = (a) => typeof a == "string", xo = () => {
1924
1931
  };
1925
- Tn && ((Mi = window == null ? void 0 : window.navigator) != null && Mi.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
1926
- function En(a) {
1932
+ En && ((Ni = window == null ? void 0 : window.navigator) != null && Ni.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
1933
+ function Sn(a) {
1927
1934
  return typeof a == "function" ? a() : S(a);
1928
1935
  }
1929
- function xo(a) {
1930
- return a;
1931
- }
1932
1936
  function Io(a) {
1933
- return or() ? (ar(a), !0) : !1;
1937
+ return a;
1934
1938
  }
1935
1939
  function Po(a) {
1940
+ return ar() ? (lr(a), !0) : !1;
1941
+ }
1942
+ function Lo(a) {
1936
1943
  var o;
1937
- const r = En(a);
1944
+ const r = Sn(a);
1938
1945
  return (o = r == null ? void 0 : r.$el) != null ? o : r;
1939
1946
  }
1940
- const Lo = Tn ? window : void 0;
1947
+ const Ao = En ? window : void 0;
1941
1948
  function mt(...a) {
1942
1949
  let o, r, t, e;
1943
- if (Eo(a[0]) || Array.isArray(a[0]) ? ([r, t, e] = a, o = Lo) : [o, r, t, e] = a, !o)
1944
- return So;
1950
+ if (So(a[0]) || Array.isArray(a[0]) ? ([r, t, e] = a, o = Ao) : [o, r, t, e] = a, !o)
1951
+ return xo;
1945
1952
  Array.isArray(r) || (r = [r]), Array.isArray(t) || (t = [t]);
1946
1953
  const i = [], n = () => {
1947
1954
  i.forEach((c) => c()), i.length = 0;
1948
- }, s = (c, h, d, p) => (c.addEventListener(h, d, p), () => c.removeEventListener(h, d, p)), l = st(() => [Po(o), En(e)], ([c, h]) => {
1955
+ }, s = (c, h, d, p) => (c.addEventListener(h, d, p), () => c.removeEventListener(h, d, p)), l = st(() => [Lo(o), Sn(e)], ([c, h]) => {
1949
1956
  n(), c && i.push(...r.flatMap((d) => t.map((p) => s(c, d, p, h))));
1950
1957
  }, { immediate: !0, flush: "post" }), u = () => {
1951
1958
  l(), n();
1952
1959
  };
1953
- return Io(u), u;
1960
+ return Po(u), u;
1954
1961
  }
1955
- const Ni = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Bi = "__vueuse_ssr_handlers__";
1956
- Ni[Bi] = Ni[Bi] || {};
1957
- var Hi;
1962
+ const Bi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Hi = "__vueuse_ssr_handlers__";
1963
+ Bi[Hi] = Bi[Hi] || {};
1964
+ var Ui;
1958
1965
  (function(a) {
1959
1966
  a.UP = "UP", a.RIGHT = "RIGHT", a.DOWN = "DOWN", a.LEFT = "LEFT", a.NONE = "NONE";
1960
- })(Hi || (Hi = {}));
1961
- var Ao = Object.defineProperty, Ui = Object.getOwnPropertySymbols, Do = Object.prototype.hasOwnProperty, Oo = Object.prototype.propertyIsEnumerable, zi = (a, o, r) => o in a ? Ao(a, o, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[o] = r, Ro = (a, o) => {
1967
+ })(Ui || (Ui = {}));
1968
+ var Do = Object.defineProperty, zi = Object.getOwnPropertySymbols, Oo = Object.prototype.hasOwnProperty, Ro = Object.prototype.propertyIsEnumerable, Vi = (a, o, r) => o in a ? Do(a, o, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[o] = r, Fo = (a, o) => {
1962
1969
  for (var r in o || (o = {}))
1963
- Do.call(o, r) && zi(a, r, o[r]);
1964
- if (Ui)
1965
- for (var r of Ui(o))
1966
- Oo.call(o, r) && zi(a, r, o[r]);
1970
+ Oo.call(o, r) && Vi(a, r, o[r]);
1971
+ if (zi)
1972
+ for (var r of zi(o))
1973
+ Ro.call(o, r) && Vi(a, r, o[r]);
1967
1974
  return a;
1968
1975
  };
1969
- const Fo = {
1976
+ const Mo = {
1970
1977
  easeInSine: [0.12, 0, 0.39, 0],
1971
1978
  easeOutSine: [0.61, 1, 0.88, 1],
1972
1979
  easeInOutSine: [0.37, 0, 0.63, 1],
@@ -1992,10 +1999,10 @@ const Fo = {
1992
1999
  easeOutBack: [0.34, 1.56, 0.64, 1],
1993
2000
  easeInOutBack: [0.68, -0.6, 0.32, 1.6]
1994
2001
  };
1995
- Ro({
1996
- linear: xo
1997
- }, Fo);
1998
- const Mo = {
2002
+ Fo({
2003
+ linear: Io
2004
+ }, Mo);
2005
+ const No = {
1999
2006
  /**
2000
2007
  * @description preview link list.
2001
2008
  */
@@ -2065,26 +2072,26 @@ const Mo = {
2065
2072
  crossorigin: {
2066
2073
  type: ["anonymous", "use-credentials", ""]
2067
2074
  }
2068
- }, No = {
2075
+ }, Bo = {
2069
2076
  close: () => !0,
2070
2077
  switch: (a) => ni.isNumber(a),
2071
2078
  rotate: (a) => ni.isNumber(a)
2072
- }, Bo = ["src", "crossorigin"], Ho = /* @__PURE__ */ Z({
2079
+ }, Ho = ["src", "crossorigin"], Uo = /* @__PURE__ */ Z({
2073
2080
  name: "ElImageViewer",
2074
2081
  __name: "IkImageViewer",
2075
- props: Mo,
2076
- emits: No,
2082
+ props: No,
2083
+ emits: Bo,
2077
2084
  setup(a, { expose: o, emit: r }) {
2078
2085
  const t = (N) => Object.keys(N), e = {
2079
2086
  CONTAIN: {
2080
2087
  name: "contain",
2081
- icon: Oi(Ds)
2088
+ icon: Oi(Os)
2082
2089
  },
2083
2090
  ORIGINAL: {
2084
2091
  name: "original",
2085
- icon: Oi(Bs)
2092
+ icon: Oi(Hs)
2086
2093
  }
2087
- }, i = a, n = r, { t: s } = _r(), l = Cn("image-viewer"), { nextZIndex: u } = kr(), c = se(), h = se([]), d = lr(), p = se(!0), g = se(i.initialIndex), m = ur(e.CONTAIN), y = se({
2094
+ }, i = a, n = r, { t: s } = kr(), l = wn("image-viewer"), { nextZIndex: u } = Cr(), c = se(), h = se([]), d = ur(), p = se(!0), g = se(i.initialIndex), v = cr(e.CONTAIN), y = se({
2088
2095
  scale: 1,
2089
2096
  deg: 0,
2090
2097
  offsetX: 0,
@@ -2110,7 +2117,7 @@ const Mo = {
2110
2117
  transform: `scale(${N}) rotate(${G}deg) translate(${_e}px, ${Le}px)`,
2111
2118
  transition: ye ? "transform .3s" : ""
2112
2119
  };
2113
- return m.value.name === e.CONTAIN.name && (Ht.maxWidth = Ht.maxHeight = "100%"), Ht;
2120
+ return v.value.name === e.CONTAIN.name && (Ht.maxWidth = Ht.maxHeight = "100%"), Ht;
2114
2121
  });
2115
2122
  function J() {
2116
2123
  ne(), n("close");
@@ -2184,8 +2191,8 @@ const Mo = {
2184
2191
  function Ii() {
2185
2192
  if (p.value)
2186
2193
  return;
2187
- const N = t(e), G = Object.values(e), X = m.value.name, ye = ((G == null ? void 0 : G.findIndex((_e) => _e.name === X)) + 1) % N.length;
2188
- m.value = e[N[ye]], xi();
2194
+ const N = t(e), G = Object.values(e), X = v.value.name, ye = ((G == null ? void 0 : G.findIndex((_e) => _e.name === X)) + 1) % N.length;
2195
+ v.value = e[N[ye]], xi();
2189
2196
  }
2190
2197
  function Bt(N) {
2191
2198
  const G = i.urlList.length;
@@ -2233,7 +2240,7 @@ const Mo = {
2233
2240
  });
2234
2241
  }), st(g, (N) => {
2235
2242
  xi(), n("switch", N);
2236
- }), cr(() => {
2243
+ }), fr(() => {
2237
2244
  var N, G;
2238
2245
  z(), (G = (N = c.value) == null ? void 0 : N.focus) == null || G.call(N);
2239
2246
  }), o({
@@ -2241,8 +2248,8 @@ const Mo = {
2241
2248
  * @description manually switch image
2242
2249
  */
2243
2250
  setActiveItem: Bt
2244
- }), (N, G) => (E(), pe(yn, { to: "body" }, [
2245
- j(_n, {
2251
+ }), (N, G) => (E(), pe(_n, { to: "body" }, [
2252
+ j(kn, {
2246
2253
  name: "viewer-fade",
2247
2254
  appear: ""
2248
2255
  }, {
@@ -2277,7 +2284,7 @@ const Mo = {
2277
2284
  [
2278
2285
  j(S(Ae), null, {
2279
2286
  default: Q(() => [
2280
- j(S(wn))
2287
+ j(S(bn))
2281
2288
  ]),
2282
2289
  _: 1
2283
2290
  /* STABLE */
@@ -2300,7 +2307,7 @@ const Mo = {
2300
2307
  [
2301
2308
  j(S(Ae), null, {
2302
2309
  default: Q(() => [
2303
- j(S(xs))
2310
+ j(S(Is))
2304
2311
  ]),
2305
2312
  _: 1
2306
2313
  /* STABLE */
@@ -2318,7 +2325,7 @@ const Mo = {
2318
2325
  [
2319
2326
  j(S(Ae), null, {
2320
2327
  default: Q(() => [
2321
- j(S(Ps))
2328
+ j(S(Ls))
2322
2329
  ]),
2323
2330
  _: 1
2324
2331
  /* STABLE */
@@ -2348,7 +2355,7 @@ const Mo = {
2348
2355
  onClick: G[1] || (G[1] = (X) => Ve("zoomOut"))
2349
2356
  }, {
2350
2357
  default: Q(() => [
2351
- j(S(Vs))
2358
+ j(S(js))
2352
2359
  ]),
2353
2360
  _: 1
2354
2361
  /* STABLE */
@@ -2357,7 +2364,7 @@ const Mo = {
2357
2364
  onClick: G[2] || (G[2] = (X) => Ve("zoomIn"))
2358
2365
  }, {
2359
2366
  default: Q(() => [
2360
- j(S(Us))
2367
+ j(S(zs))
2361
2368
  ]),
2362
2369
  _: 1
2363
2370
  /* STABLE */
@@ -2373,7 +2380,7 @@ const Mo = {
2373
2380
  ),
2374
2381
  j(S(Ae), { onClick: Ii }, {
2375
2382
  default: Q(() => [
2376
- (E(), pe(fr(m.value.icon)))
2383
+ (E(), pe(hr(v.value.icon)))
2377
2384
  ]),
2378
2385
  _: 1
2379
2386
  /* STABLE */
@@ -2391,7 +2398,7 @@ const Mo = {
2391
2398
  onClick: G[3] || (G[3] = (X) => Ve("anticlockwise"))
2392
2399
  }, {
2393
2400
  default: Q(() => [
2394
- j(S(Rs))
2401
+ j(S(Fs))
2395
2402
  ]),
2396
2403
  _: 1
2397
2404
  /* STABLE */
@@ -2400,7 +2407,7 @@ const Mo = {
2400
2407
  onClick: G[4] || (G[4] = (X) => Ve("clockwise"))
2401
2408
  }, {
2402
2409
  default: Q(() => [
2403
- j(S(Ms))
2410
+ j(S(Ns))
2404
2411
  ]),
2405
2412
  _: 1
2406
2413
  /* STABLE */
@@ -2423,7 +2430,7 @@ const Mo = {
2423
2430
  (E(!0), P(
2424
2431
  Ee,
2425
2432
  null,
2426
- ft(N.urlList, (X, ge) => hr((E(), P("img", {
2433
+ ft(N.urlList, (X, ge) => dr((E(), P("img", {
2427
2434
  ref_for: !0,
2428
2435
  ref: (ye) => h.value[ge] = ye,
2429
2436
  key: X,
@@ -2434,8 +2441,8 @@ const Mo = {
2434
2441
  onLoad: ue,
2435
2442
  onError: ce,
2436
2443
  onMousedown: we
2437
- }, null, 46, Bo)), [
2438
- [dr, ge === g.value]
2444
+ }, null, 46, Ho)), [
2445
+ [gr, ge === g.value]
2439
2446
  ])),
2440
2447
  128
2441
2448
  /* KEYED_FRAGMENT */
@@ -2455,8 +2462,8 @@ const Mo = {
2455
2462
  })
2456
2463
  ]));
2457
2464
  }
2458
- }), Uo = Pe(Ho);
2459
- function Vi(a, o) {
2465
+ }), zo = Pe(Uo);
2466
+ function ji(a, o) {
2460
2467
  var r = Object.keys(a);
2461
2468
  if (Object.getOwnPropertySymbols) {
2462
2469
  var t = Object.getOwnPropertySymbols(a);
@@ -2469,9 +2476,9 @@ function Vi(a, o) {
2469
2476
  function q(a) {
2470
2477
  for (var o = 1; o < arguments.length; o++) {
2471
2478
  var r = arguments[o] != null ? arguments[o] : {};
2472
- o % 2 ? Vi(Object(r), !0).forEach(function(t) {
2479
+ o % 2 ? ji(Object(r), !0).forEach(function(t) {
2473
2480
  _(a, t, r[t]);
2474
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(r)) : Vi(Object(r)).forEach(function(t) {
2481
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(r)) : ji(Object(r)).forEach(function(t) {
2475
2482
  Object.defineProperty(a, t, Object.getOwnPropertyDescriptor(r, t));
2476
2483
  });
2477
2484
  }
@@ -2489,19 +2496,19 @@ function x(a, o) {
2489
2496
  if (!(a instanceof o))
2490
2497
  throw new TypeError("Cannot call a class as a function");
2491
2498
  }
2492
- function ji(a, o) {
2499
+ function Wi(a, o) {
2493
2500
  for (var r = 0; r < o.length; r++) {
2494
2501
  var t = o[r];
2495
- t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(a, Sn(t.key), t);
2502
+ t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(a, xn(t.key), t);
2496
2503
  }
2497
2504
  }
2498
2505
  function I(a, o, r) {
2499
- return o && ji(a.prototype, o), r && ji(a, r), Object.defineProperty(a, "prototype", {
2506
+ return o && Wi(a.prototype, o), r && Wi(a, r), Object.defineProperty(a, "prototype", {
2500
2507
  writable: !1
2501
2508
  }), a;
2502
2509
  }
2503
2510
  function _(a, o, r) {
2504
- return o = Sn(o), o in a ? Object.defineProperty(a, o, {
2511
+ return o = xn(o), o in a ? Object.defineProperty(a, o, {
2505
2512
  value: r,
2506
2513
  enumerable: !0,
2507
2514
  configurable: !0,
@@ -2531,7 +2538,7 @@ function si(a, o) {
2531
2538
  return t.__proto__ = e, t;
2532
2539
  }, si(a, o);
2533
2540
  }
2534
- function zo() {
2541
+ function Vo() {
2535
2542
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
2536
2543
  return !1;
2537
2544
  if (typeof Proxy == "function")
@@ -2543,7 +2550,7 @@ function zo() {
2543
2550
  return !1;
2544
2551
  }
2545
2552
  }
2546
- function v(a) {
2553
+ function m(a) {
2547
2554
  if (a === void 0)
2548
2555
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
2549
2556
  return a;
@@ -2553,10 +2560,10 @@ function pi(a, o) {
2553
2560
  return o;
2554
2561
  if (o !== void 0)
2555
2562
  throw new TypeError("Derived constructors may only return object or undefined");
2556
- return v(a);
2563
+ return m(a);
2557
2564
  }
2558
2565
  function D(a) {
2559
- var o = zo();
2566
+ var o = Vo();
2560
2567
  return function() {
2561
2568
  var t = O(a), e;
2562
2569
  if (o) {
@@ -2567,14 +2574,14 @@ function D(a) {
2567
2574
  return pi(this, e);
2568
2575
  };
2569
2576
  }
2570
- function Vo(a, o) {
2577
+ function jo(a, o) {
2571
2578
  for (; !Object.prototype.hasOwnProperty.call(a, o) && (a = O(a), a !== null); )
2572
2579
  ;
2573
2580
  return a;
2574
2581
  }
2575
2582
  function F() {
2576
2583
  return typeof Reflect < "u" && Reflect.get ? F = Reflect.get.bind() : F = function(o, r, t) {
2577
- var e = Vo(o, r);
2584
+ var e = jo(o, r);
2578
2585
  if (e) {
2579
2586
  var i = Object.getOwnPropertyDescriptor(e, r);
2580
2587
  return i.get ? i.get.call(arguments.length < 3 ? o : t) : i.value;
@@ -2582,17 +2589,17 @@ function F() {
2582
2589
  }, F.apply(this, arguments);
2583
2590
  }
2584
2591
  function ve(a) {
2585
- return jo(a) || Wo(a) || Go(a) || $o();
2592
+ return Wo(a) || Go(a) || $o(a) || Ko();
2586
2593
  }
2587
- function jo(a) {
2594
+ function Wo(a) {
2588
2595
  if (Array.isArray(a))
2589
2596
  return oi(a);
2590
2597
  }
2591
- function Wo(a) {
2598
+ function Go(a) {
2592
2599
  if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null)
2593
2600
  return Array.from(a);
2594
2601
  }
2595
- function Go(a, o) {
2602
+ function $o(a, o) {
2596
2603
  if (a) {
2597
2604
  if (typeof a == "string")
2598
2605
  return oi(a, o);
@@ -2609,11 +2616,11 @@ function oi(a, o) {
2609
2616
  t[r] = a[r];
2610
2617
  return t;
2611
2618
  }
2612
- function $o() {
2619
+ function Ko() {
2613
2620
  throw new TypeError(`Invalid attempt to spread non-iterable instance.
2614
2621
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
2615
2622
  }
2616
- function Ko(a, o) {
2623
+ function Yo(a, o) {
2617
2624
  if (typeof a != "object" || a === null)
2618
2625
  return a;
2619
2626
  var r = a[Symbol.toPrimitive];
@@ -2625,11 +2632,11 @@ function Ko(a, o) {
2625
2632
  }
2626
2633
  return (o === "string" ? String : Number)(a);
2627
2634
  }
2628
- function Sn(a) {
2629
- var o = Ko(a, "string");
2635
+ function xn(a) {
2636
+ var o = Yo(a, "string");
2630
2637
  return typeof o == "symbol" ? o : String(o);
2631
2638
  }
2632
- var xn = { exports: {} };
2639
+ var In = { exports: {} };
2633
2640
  (function(a) {
2634
2641
  var o = Object.prototype.hasOwnProperty, r = "~";
2635
2642
  function t() {
@@ -2670,10 +2677,10 @@ var xn = { exports: {} };
2670
2677
  var c = r ? r + u : u, h = this._events[c];
2671
2678
  return h ? h.fn ? 1 : h.length : 0;
2672
2679
  }, s.prototype.emit = function(u, c, h, d, p, g) {
2673
- var m = r ? r + u : u;
2674
- if (!this._events[m])
2680
+ var v = r ? r + u : u;
2681
+ if (!this._events[v])
2675
2682
  return !1;
2676
- var y = this._events[m], C = arguments.length, b, w;
2683
+ var y = this._events[v], C = arguments.length, b, w;
2677
2684
  if (y.fn) {
2678
2685
  switch (y.once && this.removeListener(u, y.fn, void 0, !0), C) {
2679
2686
  case 1:
@@ -2730,8 +2737,8 @@ var xn = { exports: {} };
2730
2737
  if (g.fn)
2731
2738
  g.fn === c && (!d || g.once) && (!h || g.context === h) && n(this, p);
2732
2739
  else {
2733
- for (var m = 0, y = [], C = g.length; m < C; m++)
2734
- (g[m].fn !== c || d && !g[m].once || h && g[m].context !== h) && y.push(g[m]);
2740
+ for (var v = 0, y = [], C = g.length; v < C; v++)
2741
+ (g[v].fn !== c || d && !g[v].once || h && g[v].context !== h) && y.push(g[v]);
2735
2742
  y.length ? this._events[p] = y.length === 1 ? y[0] : y : n(this, p);
2736
2743
  }
2737
2744
  return this;
@@ -2739,16 +2746,16 @@ var xn = { exports: {} };
2739
2746
  var c;
2740
2747
  return u ? (c = r ? r + u : u, this._events[c] && n(this, c)) : (this._events = new t(), this._eventsCount = 0), this;
2741
2748
  }, s.prototype.off = s.prototype.removeListener, s.prototype.addListener = s.prototype.on, s.prefixed = r, s.EventEmitter = s, a.exports = s;
2742
- })(xn);
2743
- var In = xn.exports;
2744
- const Pn = /* @__PURE__ */ di(In);
2745
- var Yo = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, zt = {
2749
+ })(In);
2750
+ var Pn = In.exports;
2751
+ const Ln = /* @__PURE__ */ di(Pn);
2752
+ var Xo = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, zt = {
2746
2753
  info: "color: #525252; background-color: #90ee90;",
2747
2754
  error: "color: #525252; background-color: red;",
2748
2755
  warn: "color: #525252; background-color: yellow; "
2749
2756
  }, Vt = "%c[xgplayer]", H = {
2750
2757
  config: {
2751
- debug: Yo ? 3 : 0
2758
+ debug: Xo ? 3 : 0
2752
2759
  },
2753
2760
  logInfo: function(o) {
2754
2761
  for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
@@ -2769,10 +2776,10 @@ var Yo = typeof window < "u" && window.location && window.location.href.indexOf(
2769
2776
  }
2770
2777
  }
2771
2778
  };
2772
- function Xo(a) {
2779
+ function qo(a) {
2773
2780
  a.logInfo = H.logInfo.bind(a), a.logWarn = H.logWarn.bind(a), a.logError = H.logError.bind(a);
2774
2781
  }
2775
- var qo = /* @__PURE__ */ function() {
2782
+ var Zo = /* @__PURE__ */ function() {
2776
2783
  function a(o) {
2777
2784
  x(this, a), this.bufferedList = o;
2778
2785
  }
@@ -3018,7 +3025,7 @@ f.setStyleFromCsstext = function(a, o) {
3018
3025
  a.style[t] = o[t];
3019
3026
  });
3020
3027
  };
3021
- function Zo(a, o) {
3028
+ function Jo(a, o) {
3022
3029
  for (var r = 0, t = o.length; r < t; r++)
3023
3030
  if (a.indexOf(o[r]) > -1)
3024
3031
  return !0;
@@ -3032,7 +3039,7 @@ f.filterStyleFromText = function(a) {
3032
3039
  return t.map(function(n) {
3033
3040
  if (n) {
3034
3041
  var s = n.split(":");
3035
- s.length > 1 && (Zo(s[0], o) ? e[s[0]] = s[1] : i[s[0]] = s[1]);
3042
+ s.length > 1 && (Jo(s[0], o) ? e[s[0]] = s[1] : i[s[0]] = s[1]);
3036
3043
  }
3037
3044
  }), a.setAttribute("style", ""), Object.keys(i).map(function(n) {
3038
3045
  a.style[n] = i[n];
@@ -3097,7 +3104,7 @@ f.getBuffered2 = function(a) {
3097
3104
  }
3098
3105
  else
3099
3106
  e = r;
3100
- return new qo(e);
3107
+ return new Zo(e);
3101
3108
  };
3102
3109
  f.getEventPos = function(a) {
3103
3110
  var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
@@ -3217,20 +3224,20 @@ f.getCurrentTimeByOffset = function(a, o) {
3217
3224
  }
3218
3225
  return a;
3219
3226
  };
3220
- function Ln(a) {
3227
+ function An(a) {
3221
3228
  var o = ae(a);
3222
3229
  return a !== null && (o === "object" || o === "function");
3223
3230
  }
3224
- function Jo(a, o, r) {
3231
+ function Qo(a, o, r) {
3225
3232
  var t, e, i, n, s, l, u = 0, c = !1, h = !1, d = !0, p = !o && o !== 0 && typeof window.requestAnimationFrame == "function";
3226
3233
  if (typeof a != "function")
3227
3234
  throw new TypeError("Expected a function");
3228
- o = +o || 0, Ln(r) && (c = !!r.leading, h = "maxWait" in r, i = h ? Math.max(+r.maxWait || 0, o) : i, d = "trailing" in r ? !!r.trailing : d);
3235
+ o = +o || 0, An(r) && (c = !!r.leading, h = "maxWait" in r, i = h ? Math.max(+r.maxWait || 0, o) : i, d = "trailing" in r ? !!r.trailing : d);
3229
3236
  function g(z) {
3230
3237
  var ne = t, ue = e;
3231
3238
  return t = e = void 0, u = z, n = a.apply(ue, ne), n;
3232
3239
  }
3233
- function m(z, ne) {
3240
+ function v(z, ne) {
3234
3241
  return p ? (window.cancelAnimationFrame(s), window.requestAnimationFrame(z)) : setTimeout(z, ne);
3235
3242
  }
3236
3243
  function y(z) {
@@ -3239,7 +3246,7 @@ function Jo(a, o, r) {
3239
3246
  clearTimeout(z);
3240
3247
  }
3241
3248
  function C(z) {
3242
- return u = z, s = m(L, o), c ? g(z) : n;
3249
+ return u = z, s = v(L, o), c ? g(z) : n;
3243
3250
  }
3244
3251
  function b(z) {
3245
3252
  var ne = z - l, ue = z - u, ce = o - ne;
@@ -3253,7 +3260,7 @@ function Jo(a, o, r) {
3253
3260
  var z = Date.now();
3254
3261
  if (w(z))
3255
3262
  return M(z);
3256
- s = m(L, b(z));
3263
+ s = v(L, b(z));
3257
3264
  }
3258
3265
  function M(z) {
3259
3266
  return s = void 0, d && t ? g(z) : (t = e = void 0, n);
@@ -3274,36 +3281,36 @@ function Jo(a, o, r) {
3274
3281
  if (s === void 0)
3275
3282
  return C(l);
3276
3283
  if (h)
3277
- return s = m(L, o), g(l);
3284
+ return s = v(L, o), g(l);
3278
3285
  }
3279
- return s === void 0 && (s = m(L, o)), n;
3286
+ return s === void 0 && (s = v(L, o)), n;
3280
3287
  }
3281
3288
  return J.cancel = U, J.flush = R, J.pending = te, J;
3282
3289
  }
3283
- function Qo(a, o, r) {
3290
+ function ea(a, o, r) {
3284
3291
  var t = !0, e = !0;
3285
3292
  if (typeof a != "function")
3286
3293
  throw new TypeError("Expected a function");
3287
- return Ln(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e), Jo(a, o, {
3294
+ return An(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e), Qo(a, o, {
3288
3295
  leading: t,
3289
3296
  trailing: e,
3290
3297
  maxWait: o
3291
3298
  });
3292
3299
  }
3293
- function ea() {
3300
+ function ta() {
3294
3301
  var a = (document.documentElement.getAttribute("lang") || navigator.language || "zh-cn").toLocaleLowerCase();
3295
3302
  return a === "zh-cn" && (a = "zh"), a;
3296
3303
  }
3297
- function ta(a, o, r) {
3304
+ function ia(a, o, r) {
3298
3305
  if (a) {
3299
3306
  var t = a.getAttribute(r);
3300
3307
  return !!(t && t === o && (a.tagName === "VIDEO" || a.tagName === "AUDIO"));
3301
3308
  }
3302
3309
  }
3303
- var Wi = {
3310
+ var Gi = {
3304
3311
  android: /(Android)\s([\d.]+)/,
3305
3312
  ios: /(Version)\/([\d.]+)/
3306
- }, 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 = {
3313
+ }, na = ["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 = {
3307
3314
  get device() {
3308
3315
  var a = B.os;
3309
3316
  return a.isPc ? "pc" : "mobile";
@@ -3342,7 +3349,7 @@ var Wi = {
3342
3349
  if (typeof navigator > "u")
3343
3350
  return 0;
3344
3351
  var a = navigator.userAgent, o = "";
3345
- /(?:iPhone)|(?:iPad|PlayBook)/.test(a) ? o = Wi.ios : o = Wi.android;
3352
+ /(?:iPhone)|(?:iPad|PlayBook)/.test(a) ? o = Gi.ios : o = Gi.android;
3346
3353
  var r = o ? o.exec(a) : [];
3347
3354
  if (r && r.length >= 3) {
3348
3355
  var t = r[2].split(".");
@@ -3366,7 +3373,7 @@ var Wi = {
3366
3373
  if (this.supportResult)
3367
3374
  return this.supportResult;
3368
3375
  var r = document.createElement("video");
3369
- return typeof r.canPlayType == "function" && ia.map(function(t) {
3376
+ return typeof r.canPlayType == "function" && na.map(function(t) {
3370
3377
  r.canPlayType('video/mp4; codecs="'.concat(t, '"')) === "probably" && (o.isSupport = !0, o.mime += "||".concat(t));
3371
3378
  }), this.supportResult = o, r = null, o;
3372
3379
  },
@@ -3405,14 +3412,14 @@ var Wi = {
3405
3412
  return Promise.resolve(r);
3406
3413
  }
3407
3414
  }
3408
- }, ai = "3.0.18", Gi = {
3415
+ }, ai = "3.0.18", $i = {
3409
3416
  1: "media",
3410
3417
  2: "media",
3411
3418
  3: "media",
3412
3419
  4: "media",
3413
3420
  5: "media",
3414
3421
  6: "media"
3415
- }, $i = {
3422
+ }, Ki = {
3416
3423
  1: 5101,
3417
3424
  2: 5102,
3418
3425
  3: 5103,
@@ -3433,7 +3440,7 @@ var Wi = {
3433
3440
  var t = o && o.i18n ? o.i18n.ERROR_TYPES : null;
3434
3441
  if (o.media) {
3435
3442
  var e = r.mediaError ? r.mediaError : o.media.error || {}, i = o.duration, n = o.currentTime, s = o.ended, l = o.src, u = o.currentSrc, c = o.media, h = c.readyState, d = c.networkState, p = r.errorCode || e.code;
3436
- $i[p] && (p = $i[p]);
3443
+ Ki[p] && (p = Ki[p]);
3437
3444
  var g = {
3438
3445
  playerVersion: ai,
3439
3446
  currentTime: n,
@@ -3453,29 +3460,29 @@ var Wi = {
3453
3460
  g[b] = r.ext[b];
3454
3461
  }), g;
3455
3462
  } else if (arguments.length > 1) {
3456
- for (var m = {
3463
+ for (var v = {
3457
3464
  playerVersion: ai,
3458
3465
  domain: document.domain
3459
3466
  }, y = ["errorType", "currentTime", "duration", "networkState", "readyState", "src", "currentSrc", "ended", "errd", "errorCode", "mediaError"], C = 0; C < arguments.length; C++)
3460
- m[y[C]] = arguments[C];
3461
- return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
3467
+ v[y[C]] = arguments[C];
3468
+ return v.ex = t ? (t[arguments[0]] || {}).msg : "", v;
3462
3469
  }
3463
3470
  }
3464
- ), de = "play", vi = "playing", $e = "ended", ot = "pause", pt = "error", Ot = "seeking", xe = "seeked", he = "timeupdate", vt = "waiting", Se = "canplay", na = "canplaythrough", Ue = "durationchange", An = "volumechange", Ie = "loadeddata", ra = "loadedmetadata", Dn = "ratechange", On = "progress", mi = "loadstart", Ke = "emptied", sa = "stalled", oa = "suspend", aa = "abort", la = "bufferedChange", yi = "focus", Rn = "blur", _i = "ready", Fn = "urlNull", Ge = "autoplay_started", ki = "autoplay_was_prevented", Rt = "complete", Tt = "replay", Ci = "destroy", Ft = "urlchange", li = "download_speed_change", Mn = "leaveplayer", Nn = "enterplayer", Bn = "loading", be = "fullscreen_change", Et = "cssFullscreen_change", St = "mini_state_change", wi = "definition_change", ua = "before_definition_change", ui = "after_definition_change", ca = "SEI_PARSED", fa = "retry", Be = "video_resize", ci = "pip_change", Hn = "rotate", Un = "screenShot", xt = "playnext", zn = "shortcut", Vn = "xglog", It = "user_action", Mt = "reset", jn = "source_error", Wn = "source_success", ha = "switch_subtitle", Gn = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], $n = {
3471
+ ), de = "play", vi = "playing", $e = "ended", ot = "pause", pt = "error", Ot = "seeking", xe = "seeked", he = "timeupdate", vt = "waiting", Se = "canplay", ra = "canplaythrough", Ue = "durationchange", Dn = "volumechange", Ie = "loadeddata", sa = "loadedmetadata", On = "ratechange", Rn = "progress", mi = "loadstart", Ke = "emptied", oa = "stalled", aa = "suspend", la = "abort", ua = "bufferedChange", yi = "focus", Fn = "blur", _i = "ready", Mn = "urlNull", Ge = "autoplay_started", ki = "autoplay_was_prevented", Rt = "complete", Tt = "replay", Ci = "destroy", Ft = "urlchange", li = "download_speed_change", Nn = "leaveplayer", Bn = "enterplayer", Hn = "loading", be = "fullscreen_change", Et = "cssFullscreen_change", St = "mini_state_change", wi = "definition_change", ca = "before_definition_change", ui = "after_definition_change", fa = "SEI_PARSED", ha = "retry", Be = "video_resize", ci = "pip_change", Un = "rotate", zn = "screenShot", xt = "playnext", Vn = "shortcut", jn = "xglog", It = "user_action", Mt = "reset", Wn = "source_error", Gn = "source_success", da = "switch_subtitle", $n = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], Kn = {
3465
3472
  STATS_INFO: "stats_info",
3466
3473
  STATS_DOWNLOAD: "stats_download",
3467
3474
  STATS_RESET: "stats_reset"
3468
- }, Kn = "fps_stuck";
3469
- const da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3475
+ }, Yn = "fps_stuck";
3476
+ const ga = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3470
3477
  __proto__: null,
3471
- ABORT: aa,
3478
+ ABORT: la,
3472
3479
  AFTER_DEFINITION_CHANGE: ui,
3473
3480
  AUTOPLAY_PREVENTED: ki,
3474
3481
  AUTOPLAY_STARTED: Ge,
3475
- BEFORE_DEFINITION_CHANGE: ua,
3476
- BUFFER_CHANGE: la,
3482
+ BEFORE_DEFINITION_CHANGE: ca,
3483
+ BUFFER_CHANGE: ua,
3477
3484
  CANPLAY: Se,
3478
- CANPLAY_THROUGH: na,
3485
+ CANPLAY_THROUGH: ra,
3479
3486
  COMPLETE: Rt,
3480
3487
  CSS_FULLSCREEN_CHANGE: Et,
3481
3488
  DEFINITION_CHANGE: wi,
@@ -3484,55 +3491,55 @@ const da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3484
3491
  DURATION_CHANGE: Ue,
3485
3492
  EMPTIED: Ke,
3486
3493
  ENDED: $e,
3487
- ENTER_PLAYER: Nn,
3494
+ ENTER_PLAYER: Bn,
3488
3495
  ERROR: pt,
3489
- FPS_STUCK: Kn,
3496
+ FPS_STUCK: Yn,
3490
3497
  FULLSCREEN_CHANGE: be,
3491
- LEAVE_PLAYER: Mn,
3498
+ LEAVE_PLAYER: Nn,
3492
3499
  LOADED_DATA: Ie,
3493
- LOADED_METADATA: ra,
3494
- LOADING: Bn,
3500
+ LOADED_METADATA: sa,
3501
+ LOADING: Hn,
3495
3502
  LOAD_START: mi,
3496
3503
  MINI_STATE_CHANGE: St,
3497
3504
  PAUSE: ot,
3498
3505
  PIP_CHANGE: ci,
3499
3506
  PLAY: de,
3500
- PLAYER_BLUR: Rn,
3507
+ PLAYER_BLUR: Fn,
3501
3508
  PLAYER_FOCUS: yi,
3502
3509
  PLAYING: vi,
3503
3510
  PLAYNEXT: xt,
3504
- PROGRESS: On,
3505
- RATE_CHANGE: Dn,
3511
+ PROGRESS: Rn,
3512
+ RATE_CHANGE: On,
3506
3513
  READY: _i,
3507
3514
  REPLAY: Tt,
3508
3515
  RESET: Mt,
3509
- RETRY: fa,
3510
- ROTATE: Hn,
3511
- SCREEN_SHOT: Un,
3516
+ RETRY: ha,
3517
+ ROTATE: Un,
3518
+ SCREEN_SHOT: zn,
3512
3519
  SEEKED: xe,
3513
3520
  SEEKING: Ot,
3514
- SEI_PARSED: ca,
3515
- SHORTCUT: zn,
3516
- SOURCE_ERROR: jn,
3517
- SOURCE_SUCCESS: Wn,
3518
- STALLED: sa,
3519
- STATS_EVENTS: $n,
3520
- SUSPEND: oa,
3521
- SWITCH_SUBTITLE: ha,
3521
+ SEI_PARSED: fa,
3522
+ SHORTCUT: Vn,
3523
+ SOURCE_ERROR: Wn,
3524
+ SOURCE_SUCCESS: Gn,
3525
+ STALLED: oa,
3526
+ STATS_EVENTS: Kn,
3527
+ SUSPEND: aa,
3528
+ SWITCH_SUBTITLE: da,
3522
3529
  TIME_UPDATE: he,
3523
3530
  URL_CHANGE: Ft,
3524
- URL_NULL: Fn,
3531
+ URL_NULL: Mn,
3525
3532
  USER_ACTION: It,
3526
- VIDEO_EVENTS: Gn,
3533
+ VIDEO_EVENTS: $n,
3527
3534
  VIDEO_RESIZE: Be,
3528
- VOLUME_CHANGE: An,
3535
+ VOLUME_CHANGE: Dn,
3529
3536
  WAITING: vt,
3530
- XGLOG: Vn
3537
+ XGLOG: jn
3531
3538
  }, Symbol.toStringTag, { value: "Module" }));
3532
3539
  function jt(a, o) {
3533
3540
  !this || !this.emit || (a === "error" ? this.errorHandler(a, o.error) : this.emit(a, o));
3534
3541
  }
3535
- function ga(a, o) {
3542
+ function pa(a, o) {
3536
3543
  return function(r, t) {
3537
3544
  var e = {
3538
3545
  player: o,
@@ -3567,7 +3574,7 @@ function ga(a, o) {
3567
3574
  jt.call(o, a, e);
3568
3575
  };
3569
3576
  }
3570
- var pa = /* @__PURE__ */ function(a) {
3577
+ var va = /* @__PURE__ */ function(a) {
3571
3578
  A(r, a);
3572
3579
  var o = D(r);
3573
3580
  function r(t) {
@@ -3609,9 +3616,9 @@ var pa = /* @__PURE__ */ function(a) {
3609
3616
  key: "attachVideoEvents",
3610
3617
  value: function() {
3611
3618
  var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.media;
3612
- this._evHandlers || (this._evHandlers = Gn.map(function(n) {
3619
+ this._evHandlers || (this._evHandlers = $n.map(function(n) {
3613
3620
  var s = "on".concat(n.charAt(0).toUpperCase()).concat(n.slice(1));
3614
- return typeof e[s] == "function" && e.on(n, e[s]), _({}, n, ga(n, e));
3621
+ return typeof e[s] == "function" && e.on(n, e[s]), _({}, n, pa(n, e));
3615
3622
  })), this._evHandlers.forEach(function(n) {
3616
3623
  var s = Object.keys(n)[0];
3617
3624
  i.addEventListener(s, n[s], !1);
@@ -3643,7 +3650,7 @@ var pa = /* @__PURE__ */ function(a) {
3643
3650
  var s = e.children;
3644
3651
  if (s) {
3645
3652
  this._videoSourceCount = s.length, this._videoSourceIndex = s.length, this._vLoadeddata = function(h) {
3646
- n.emit(Wn, {
3653
+ n.emit(Gn, {
3647
3654
  src: h.target.currentSrc,
3648
3655
  host: f.getHostFromUrl(h.target.currentSrc)
3649
3656
  });
@@ -3662,8 +3669,8 @@ var pa = /* @__PURE__ */ function(a) {
3662
3669
  };
3663
3670
  l ? l.error(h, p) : n.errorHandler("error", p);
3664
3671
  }
3665
- var g = Gi[4];
3666
- n.emit(jn, new bt(n, {
3672
+ var g = $i[4];
3673
+ n.emit(Wn, new bt(n, {
3667
3674
  errorType: g,
3668
3675
  errorCode: 4,
3669
3676
  errorMessage: "sources_load_error",
@@ -3696,7 +3703,7 @@ var pa = /* @__PURE__ */ function(a) {
3696
3703
  value: function(e) {
3697
3704
  var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
3698
3705
  if (this.media && (this.media.error || i)) {
3699
- var n = this.media.error || i, s = n.code ? Gi[n.code] : "other", l = n.message;
3706
+ var n = this.media.error || i, s = n.code ? $i[n.code] : "other", l = n.message;
3700
3707
  this.media.currentSrc || (l = "empty_src", n = {
3701
3708
  code: 6,
3702
3709
  message: l
@@ -3985,7 +3992,7 @@ var pa = /* @__PURE__ */ function(a) {
3985
3992
  F(O(r.prototype), "removeAllListeners", this).call(this);
3986
3993
  }
3987
3994
  }]), r;
3988
- }(Pn), va = /* @__PURE__ */ function() {
3995
+ }(Ln), ma = /* @__PURE__ */ function() {
3989
3996
  function a() {
3990
3997
  var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
3991
3998
  name: "xgplayer",
@@ -4063,7 +4070,7 @@ var pa = /* @__PURE__ */ function(a) {
4063
4070
  t.clear();
4064
4071
  }
4065
4072
  }]), a;
4066
- }(), Ki = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], Yi = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], Xi = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], We = "data-xgplayerid";
4073
+ }(), Yi = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], Xi = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], qi = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], We = "data-xgplayerid";
4067
4074
  function yt(a, o, r) {
4068
4075
  for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
4069
4076
  e[i - 3] = arguments[i];
@@ -4112,14 +4119,14 @@ function At(a, o) {
4112
4119
  var r = this.__hooks;
4113
4120
  r && delete r[a];
4114
4121
  }
4115
- function qi(a) {
4122
+ function Zi(a) {
4116
4123
  if (!(!this.plugins || !this.plugins[a.toLowerCase()])) {
4117
4124
  for (var o = this.plugins[a.toLowerCase()], r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), e = 1; e < r; e++)
4118
4125
  t[e - 1] = arguments[e];
4119
4126
  return o.useHooks && o.useHooks.apply(o, t);
4120
4127
  }
4121
4128
  }
4122
- function Zi(a) {
4129
+ function Ji(a) {
4123
4130
  if (!(!this.plugins || !this.plugins[a.toLowerCase()])) {
4124
4131
  var o = this.plugins[a.toLowerCase()];
4125
4132
  if (o) {
@@ -4129,7 +4136,7 @@ function Zi(a) {
4129
4136
  }
4130
4137
  }
4131
4138
  }
4132
- function Yn(a) {
4139
+ function Xn(a) {
4133
4140
  var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
4134
4141
  a.__hooks = {}, o && o.map(function(r) {
4135
4142
  a.__hooks[r] = null;
@@ -4142,7 +4149,7 @@ function Yn(a) {
4142
4149
  }
4143
4150
  });
4144
4151
  }
4145
- function Xn(a) {
4152
+ function qn(a) {
4146
4153
  a.__hooks = null;
4147
4154
  }
4148
4155
  function Te(a, o, r) {
@@ -4166,7 +4173,7 @@ function Wt(a, o) {
4166
4173
  }
4167
4174
  var He = /* @__PURE__ */ function() {
4168
4175
  function a(o) {
4169
- x(this, a), f.checkIsFunction(this.beforeCreate) && this.beforeCreate(o), Yn(this), this.__args = o, this.__events = {}, this.__onceEvents = {}, this.config = o.config || {}, this.player = null, this.playerConfig = {}, this.pluginName = "", this.__init(o);
4176
+ x(this, a), f.checkIsFunction(this.beforeCreate) && this.beforeCreate(o), Xn(this), this.__args = o, this.__events = {}, this.__onceEvents = {}, this.config = o.config || {}, this.player = null, this.playerConfig = {}, this.pluginName = "", this.__init(o);
4170
4177
  }
4171
4178
  return I(a, [{
4172
4179
  key: "beforeCreate",
@@ -4330,7 +4337,7 @@ var He = /* @__PURE__ */ function() {
4330
4337
  var r = this, t = this.player, e = this.pluginName;
4331
4338
  this.offAll(), f.clearAllTimers(this), f.checkIsFunction(this.destroy) && this.destroy(), ["player", "playerConfig", "pluginName", "logger", "__args", "__hooks"].map(function(i) {
4332
4339
  r[i] = null;
4333
- }), t.unRegisterPlugin(e), Xn(this);
4340
+ }), t.unRegisterPlugin(e), qn(this);
4334
4341
  }
4335
4342
  }], [{
4336
4343
  key: "defineGetterOrSetter",
@@ -4349,40 +4356,40 @@ var He = /* @__PURE__ */ function() {
4349
4356
  return "pluginName";
4350
4357
  }
4351
4358
  }]), a;
4352
- }(), ma = 9;
4359
+ }(), ya = 9;
4353
4360
  if (typeof Element < "u" && !Element.prototype.matches) {
4354
4361
  var qe = Element.prototype;
4355
4362
  qe.matches = qe.matchesSelector || qe.mozMatchesSelector || qe.msMatchesSelector || qe.oMatchesSelector || qe.webkitMatchesSelector;
4356
4363
  }
4357
- function ya(a, o) {
4358
- for (; a && a.nodeType !== ma; ) {
4364
+ function _a(a, o) {
4365
+ for (; a && a.nodeType !== ya; ) {
4359
4366
  if (typeof a.matches == "function" && a.matches(o))
4360
4367
  return a;
4361
4368
  a = a.parentNode;
4362
4369
  }
4363
4370
  }
4364
- var _a = ya, ka = _a;
4371
+ var ka = _a, Ca = ka;
4365
4372
  function Gt(a, o, r, t, e) {
4366
- var i = wa.apply(this, arguments);
4373
+ var i = ba.apply(this, arguments);
4367
4374
  return a.addEventListener(r, i, e), {
4368
4375
  destroy: function() {
4369
4376
  a.removeEventListener(r, i, e);
4370
4377
  }
4371
4378
  };
4372
4379
  }
4373
- function Ca(a, o, r, t, e) {
4380
+ function wa(a, o, r, t, e) {
4374
4381
  return typeof a.addEventListener == "function" ? Gt.apply(null, arguments) : typeof r == "function" ? Gt.bind(null, document).apply(null, arguments) : (typeof a == "string" && (a = document.querySelectorAll(a)), Array.prototype.map.call(a, function(i) {
4375
4382
  return Gt(i, o, r, t, e);
4376
4383
  }));
4377
4384
  }
4378
- function wa(a, o, r, t) {
4385
+ function ba(a, o, r, t) {
4379
4386
  return function(e) {
4380
- e.delegateTarget = ka(e.target, o), e.delegateTarget && t.call(a, e);
4387
+ e.delegateTarget = Ca(e.target, o), e.delegateTarget && t.call(a, e);
4381
4388
  };
4382
4389
  }
4383
- var ba = Ca;
4384
- const Ji = /* @__PURE__ */ di(ba);
4385
- var Ta = {
4390
+ var Ta = wa;
4391
+ const Qi = /* @__PURE__ */ di(Ta);
4392
+ var Ea = {
4386
4393
  CONTROLS: "controls",
4387
4394
  ROOT: "root"
4388
4395
  }, $ = {
@@ -4395,22 +4402,22 @@ var Ta = {
4395
4402
  CONTROLS_RIGHT: "controlsRight",
4396
4403
  CONTROLS_CENTER: "controlsCenter",
4397
4404
  CONTROLS: "controls"
4398
- }, Qi = {
4405
+ }, en = {
4399
4406
  ICON_DISABLE: "xg-icon-disable",
4400
4407
  ICON_HIDE: "xg-icon-hide"
4401
4408
  };
4402
4409
  function $t(a) {
4403
4410
  return a ? a.indexOf && /^(?:http|data:|\/)/.test(a) : !1;
4404
4411
  }
4405
- function Ea(a, o) {
4412
+ function Sa(a, o) {
4406
4413
  return ae(a) === "object" && a.class && typeof a.class == "string" ? "".concat(o, " ").concat(a.class) : o;
4407
4414
  }
4408
- function Sa(a, o) {
4415
+ function xa(a, o) {
4409
4416
  return ae(a) === "object" && a.attr && ae(a.attr) === "object" && Object.keys(a.attr).map(function(r) {
4410
4417
  o[r] = a.attr[r];
4411
4418
  }), o;
4412
4419
  }
4413
- function en(a, o) {
4420
+ function tn(a, o) {
4414
4421
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "", t = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {}, e = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : "", i = null;
4415
4422
  if (a instanceof window.Element)
4416
4423
  return f.addClass(a, r), Object.keys(t).map(function(n) {
@@ -4428,14 +4435,14 @@ function en(a, o) {
4428
4435
  }
4429
4436
  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);
4430
4437
  }
4431
- function xa(a, o) {
4438
+ function Ia(a, o) {
4432
4439
  var r = o.config.icons || o.playerConfig.icons;
4433
4440
  Object.keys(a).map(function(t) {
4434
4441
  var e = a[t], i = e && e.class ? e.class : "", n = e && e.attr ? e.attr : {}, s = null;
4435
- r && r[t] && (i = Ea(r[t], i), n = Sa(r[t], n), s = en(r[t], t, i, n, o.pluginName)), !s && e && (s = en(e.icon ? e.icon : e, n, i, {}, o.pluginName)), o.icons[t] = s;
4442
+ r && r[t] && (i = Sa(r[t], i), n = xa(r[t], n), s = tn(r[t], t, i, n, o.pluginName)), !s && e && (s = tn(e.icon ? e.icon : e, n, i, {}, o.pluginName)), o.icons[t] = s;
4436
4443
  });
4437
4444
  }
4438
- function Ia(a, o) {
4445
+ function Pa(a, o) {
4439
4446
  Object.keys(a).map(function(r) {
4440
4447
  Object.defineProperty(o.langText, r, {
4441
4448
  get: function() {
@@ -4459,9 +4466,9 @@ var W = /* @__PURE__ */ function(a) {
4459
4466
  var i = e.root, n = null;
4460
4467
  this.icons = {}, this.root = null, this.parent = null;
4461
4468
  var s = this.registerIcons() || {};
4462
- xa(s, this), this.langText = {};
4469
+ Ia(s, this), this.langText = {};
4463
4470
  var l = this.registerLanguageTexts() || {};
4464
- Ia(l, this);
4471
+ Pa(l, this);
4465
4472
  var u = "";
4466
4473
  try {
4467
4474
  u = this.render();
@@ -4532,12 +4539,12 @@ var W = /* @__PURE__ */ function(a) {
4532
4539
  }, {
4533
4540
  key: "disable",
4534
4541
  value: function() {
4535
- this.config.disable = !0, f.addClass(this.find(".xgplayer-icon"), Qi.ICON_DISABLE);
4542
+ this.config.disable = !0, f.addClass(this.find(".xgplayer-icon"), en.ICON_DISABLE);
4536
4543
  }
4537
4544
  }, {
4538
4545
  key: "enable",
4539
4546
  value: function() {
4540
- this.config.disable = !1, f.removeClass(this.find(".xgplayer-icon"), Qi.ICON_DISABLE);
4547
+ this.config.disable = !1, f.removeClass(this.find(".xgplayer-icon"), en.ICON_DISABLE);
4541
4548
  }
4542
4549
  }, {
4543
4550
  key: "children",
@@ -4718,11 +4725,11 @@ var W = /* @__PURE__ */ function(a) {
4718
4725
  if (e instanceof window.Node && typeof s == "function")
4719
4726
  if (Array.isArray(n))
4720
4727
  n.forEach(function(h) {
4721
- var d = Ji(e, i, h, s, l);
4728
+ var d = Qi(e, i, h, s, l);
4722
4729
  d.key = "".concat(i, "_").concat(h), u.push(d);
4723
4730
  });
4724
4731
  else {
4725
- var c = Ji(e, i, n, s, l);
4732
+ var c = Qi(e, i, n, s, l);
4726
4733
  c.key = "".concat(i, "_").concat(n), u.push(c);
4727
4734
  }
4728
4735
  return u;
@@ -4730,7 +4737,7 @@ var W = /* @__PURE__ */ function(a) {
4730
4737
  }, {
4731
4738
  key: "ROOT_TYPES",
4732
4739
  get: function() {
4733
- return Ta;
4740
+ return Ea;
4734
4741
  }
4735
4742
  }, {
4736
4743
  key: "POSITIONS",
@@ -4738,7 +4745,7 @@ var W = /* @__PURE__ */ function(a) {
4738
4745
  return $;
4739
4746
  }
4740
4747
  }]), r;
4741
- }(He), Pa = /* @__PURE__ */ function() {
4748
+ }(He), La = /* @__PURE__ */ function() {
4742
4749
  function a() {
4743
4750
  var o = this;
4744
4751
  if (x(this, a), _(this, "__trigger", function(r) {
@@ -4748,7 +4755,7 @@ var W = /* @__PURE__ */ function(a) {
4748
4755
  o.__runHandler(r[e].target);
4749
4756
  }), this.__handlers = [], this.timeStamp = 0, this.observer = null, !!window.ResizeObserver)
4750
4757
  try {
4751
- this.observer = new window.ResizeObserver(Qo(this.__trigger, 100, {
4758
+ this.observer = new window.ResizeObserver(ea(this.__trigger, 100, {
4752
4759
  trailing: !0
4753
4760
  })), this.timeStamp = (/* @__PURE__ */ new Date()).getTime();
4754
4761
  } catch (r) {
@@ -4803,17 +4810,17 @@ var W = /* @__PURE__ */ function(a) {
4803
4810
  }
4804
4811
  }]), a;
4805
4812
  }(), ct = null;
4806
- function La(a, o) {
4807
- return ct || (ct = new Pa()), ct.addObserver(a, o), ct;
4808
- }
4809
4813
  function Aa(a, o) {
4814
+ return ct || (ct = new La()), ct.addObserver(a, o), ct;
4815
+ }
4816
+ function Da(a, o) {
4810
4817
  ct.unObserver(a, o);
4811
4818
  }
4812
4819
  var ie = {
4813
4820
  pluginGroup: {},
4814
4821
  init: function(o) {
4815
4822
  var r = o._pluginInfoId;
4816
- r || (r = (/* @__PURE__ */ new Date()).getTime(), o._pluginInfoId = r), !o.config.closeResizeObserver && La(o.root, function() {
4823
+ r || (r = (/* @__PURE__ */ new Date()).getTime(), o._pluginInfoId = r), !o.config.closeResizeObserver && Aa(o.root, function() {
4817
4824
  o.resize();
4818
4825
  }), this.pluginGroup[r] = {
4819
4826
  _originalOptions: o.config || {},
@@ -4999,7 +5006,7 @@ var ie = {
4999
5006
  destroy: function(o) {
5000
5007
  var r = o._pluginInfoId;
5001
5008
  if (this.pluginGroup[r]) {
5002
- Aa(o.root);
5009
+ Da(o.root);
5003
5010
  for (var t = this.pluginGroup[r]._plugins, e = 0, i = Object.keys(t); e < i.length; e++) {
5004
5011
  var n = i[e];
5005
5012
  this.unRegister(r, n);
@@ -5038,7 +5045,7 @@ var ie = {
5038
5045
  MOBILE: "xgplayer-mobile",
5039
5046
  MINI: "xgplayer-mini"
5040
5047
  };
5041
- function tn() {
5048
+ function nn() {
5042
5049
  return {
5043
5050
  id: "",
5044
5051
  el: null,
@@ -5085,7 +5092,7 @@ function tn() {
5085
5092
  ignores: [],
5086
5093
  whitelist: [],
5087
5094
  inactive: 3e3,
5088
- lang: ea(),
5095
+ lang: ta(),
5089
5096
  controls: !0,
5090
5097
  marginControls: !1,
5091
5098
  fullscreenTarget: null,
@@ -5121,16 +5128,16 @@ function tn() {
5121
5128
  }
5122
5129
  };
5123
5130
  }
5124
- var Da = function(o, r) {
5131
+ var Oa = function(o, r) {
5125
5132
  var t, e, i;
5126
5133
  r.preset && r.options ? i = new r.preset(r.options, o.config) : i = new r({}, o.config);
5127
5134
  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;
5128
5135
  o.config.plugins || (o.config.plugins = []), o.config.ignores || (o.config.ignores = []), (t = o.config.plugins).push.apply(t, ve(l)), (e = o.config.ignores).push.apply(e, ve(c)), Object.keys(d).map(function(y) {
5129
5136
  o.config.icons[y] || (o.config.icons[y] = d[y]);
5130
5137
  });
5131
- var m = o.config.i18n || [];
5132
- g.push.apply(g, ve(m)), o.config.i18n = g;
5133
- }, Oa = /* @__PURE__ */ function(a) {
5138
+ var v = o.config.i18n || [];
5139
+ g.push.apply(g, ve(v)), o.config.i18n = g;
5140
+ }, Ra = /* @__PURE__ */ function(a) {
5134
5141
  A(r, a);
5135
5142
  var o = D(r);
5136
5143
  function r() {
@@ -5138,13 +5145,13 @@ var Da = function(o, r) {
5138
5145
  x(this, r);
5139
5146
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
5140
5147
  i[n] = arguments[n];
5141
- return t = o.call.apply(o, [this].concat(i)), _(v(t), "onMouseEnter", function(s) {
5142
- var l = v(t), u = l.player, c = l.playerConfig;
5148
+ return t = o.call.apply(o, [this].concat(i)), _(m(t), "onMouseEnter", function(s) {
5149
+ var l = m(t), u = l.player, c = l.playerConfig;
5143
5150
  c.closeControlsBlur && u.focus({
5144
5151
  autoHide: !1
5145
5152
  });
5146
- }), _(v(t), "onMouseLeave", function(s) {
5147
- var l = v(t), u = l.player;
5153
+ }), _(m(t), "onMouseLeave", function(s) {
5154
+ var l = m(t), u = l.player;
5148
5155
  u.focus();
5149
5156
  }), t;
5150
5157
  }
@@ -5291,7 +5298,7 @@ var Da = function(o, r) {
5291
5298
  };
5292
5299
  }
5293
5300
  }]), r;
5294
- }(W), Ra = {
5301
+ }(W), Fa = {
5295
5302
  LANG: "en",
5296
5303
  TEXT: {
5297
5304
  ERROR_TYPES: {
@@ -5381,12 +5388,12 @@ function dt(a, o) {
5381
5388
  t === "Object" ? (e !== "Object" && (a[r] = {}), dt(a[r], o[r])) : a[r] = o[r];
5382
5389
  }), a;
5383
5390
  }
5384
- function qn() {
5391
+ function Zn() {
5385
5392
  Object.keys(fe.lang.en).map(function(a) {
5386
5393
  fe.textKeys[a] = a;
5387
5394
  });
5388
5395
  }
5389
- function Fa(a, o) {
5396
+ function Ma(a, o) {
5390
5397
  var r = [];
5391
5398
  if (o || (o = fe), !!o.lang) {
5392
5399
  f.typeOf(a) !== "Array" ? r = Object.keys(a).map(function(i) {
@@ -5399,17 +5406,17 @@ function Fa(a, o) {
5399
5406
  var t = o, e = t.lang;
5400
5407
  r.map(function(i) {
5401
5408
  i.LANG === "zh" && (i.LANG = "zh-cn"), e[i.LANG] ? dt(e[i.LANG] || {}, i.TEXT || {}) : bi(i, o);
5402
- }), qn();
5409
+ }), Zn();
5403
5410
  }
5404
5411
  }
5405
5412
  function bi(a, o) {
5406
5413
  var r = a.LANG;
5407
5414
  if (o || (o = fe), !!o.lang) {
5408
5415
  var t = a.TEXT || {};
5409
- r === "zh" && (r = "zh-cn"), o.lang[r] ? dt(o.lang[r], t) : (o.langKeys.push(r), o.lang[r] = t), qn();
5416
+ r === "zh" && (r = "zh-cn"), o.lang[r] ? dt(o.lang[r], t) : (o.langKeys.push(r), o.lang[r] = t), Zn();
5410
5417
  }
5411
5418
  }
5412
- function Ma(a) {
5419
+ function Na(a) {
5413
5420
  var o, r = {
5414
5421
  lang: {},
5415
5422
  langKeys: [],
@@ -5418,7 +5425,7 @@ function Ma(a) {
5418
5425
  };
5419
5426
  return dt(r.lang, fe.lang), (o = r.langKeys).push.apply(o, ve(fe.langKeys)), dt(r.textKeys, fe.textKeys), r;
5420
5427
  }
5421
- bi(Ra);
5428
+ bi(Fa);
5422
5429
  var nt = {
5423
5430
  get textKeys() {
5424
5431
  return fe.textKeys;
@@ -5432,9 +5439,9 @@ var nt = {
5432
5439
  a[o] = fe.lang[o];
5433
5440
  }), fe.lang["zh-cn"] && (a.zh = fe.lang["zh-cn"] || {}), a;
5434
5441
  },
5435
- extend: Fa,
5442
+ extend: Ma,
5436
5443
  use: bi,
5437
- init: Ma
5444
+ init: Na
5438
5445
  }, V = {
5439
5446
  INITIAL: 1,
5440
5447
  READY: 2,
@@ -5444,7 +5451,7 @@ var nt = {
5444
5451
  RUNNING: 6,
5445
5452
  ENDED: 7,
5446
5453
  DESTROYED: 8
5447
- }, nn = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], le = {}, Kt = null, Zn = /* @__PURE__ */ function(a) {
5454
+ }, rn = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], le = {}, Kt = null, Jn = /* @__PURE__ */ function(a) {
5448
5455
  A(r, a);
5449
5456
  var o = D(r);
5450
5457
  function r() {
@@ -5530,8 +5537,8 @@ var nt = {
5530
5537
  return Kt || (Kt = new r()), Kt;
5531
5538
  }
5532
5539
  }]), r;
5533
- }(In.EventEmitter);
5534
- function Na(a) {
5540
+ }(Pn.EventEmitter);
5541
+ function Ba(a) {
5535
5542
  for (var o = Object.keys(le), r = 0; r < o.length; r++) {
5536
5543
  var t = le[o[r]];
5537
5544
  if (t.root === a)
@@ -5539,21 +5546,21 @@ function Na(a) {
5539
5546
  }
5540
5547
  return null;
5541
5548
  }
5542
- var Ba = ["play", "pause", "replay", "retry"], rn = 0, sn = 0, De = null, Nt = /* @__PURE__ */ function(a) {
5549
+ var Ha = ["play", "pause", "replay", "retry"], sn = 0, on = 0, De = null, Nt = /* @__PURE__ */ function(a) {
5543
5550
  A(r, a);
5544
5551
  var o = D(r);
5545
5552
  function r(t) {
5546
5553
  var e;
5547
5554
  x(this, r);
5548
- var i = f.deepMerge(tn(), t);
5549
- e = o.call(this, i), _(v(e), "canPlayFunc", function() {
5555
+ var i = f.deepMerge(nn(), t);
5556
+ e = o.call(this, i), _(m(e), "canPlayFunc", function() {
5550
5557
  if (e.config) {
5551
- var g = e.config, m = g.autoplay, y = g.defaultPlaybackRate;
5552
- H.logInfo("player", "canPlayFunc, startTime", e.__startTime), e.__startTime > 0 && e.duration > 0 && (e.currentTime = e.__startTime > e.duration ? e.duration : e.__startTime, e.__startTime = -1), e.playbackRate = y, (m || e._useAutoplay) && e.mediaPlay(), e.off(Se, e.canPlayFunc), e.removeClass(k.ENTER);
5558
+ var g = e.config, v = g.autoplay, y = g.defaultPlaybackRate;
5559
+ H.logInfo("player", "canPlayFunc, startTime", e.__startTime), e.__startTime > 0 && e.duration > 0 && (e.currentTime = e.__startTime > e.duration ? e.duration : e.__startTime, e.__startTime = -1), e.playbackRate = y, (v || e._useAutoplay) && e.mediaPlay(), e.off(Se, e.canPlayFunc), e.removeClass(k.ENTER);
5553
5560
  }
5554
- }), _(v(e), "onFullscreenChange", function(g, m) {
5561
+ }), _(m(e), "onFullscreenChange", function(g, v) {
5555
5562
  var y = function() {
5556
- f.setTimeout(v(e), function() {
5563
+ f.setTimeout(m(e), function() {
5557
5564
  e.resize();
5558
5565
  }, 100);
5559
5566
  }, C = f.getFullScreenEl();
@@ -5569,13 +5576,13 @@ var Ba = ["play", "pause", "replay", "retry"], rn = 0, sn = 0, De = null, Nt = /
5569
5576
  to: !1
5570
5577
  }]
5571
5578
  });
5572
- var b = ta(C, e.playerId, We);
5573
- if (m || C && (C === e._fullscreenEl || b))
5579
+ var b = ia(C, e.playerId, We);
5580
+ if (v || C && (C === e._fullscreenEl || b))
5574
5581
  y(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, C, k.FULLSCREEN), e.emit(be, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
5575
5582
  else if (e.fullscreen) {
5576
5583
  y();
5577
- var w = v(e), L = w._fullScreenOffset, M = w.config;
5578
- if (M.needFullscreenScroll ? (window.scrollTo(L.left, L.top), f.setTimeout(v(e), function() {
5584
+ var w = m(e), L = w._fullScreenOffset, M = w.config;
5585
+ if (M.needFullscreenScroll ? (window.scrollTo(L.left, L.top), f.setTimeout(m(e), function() {
5579
5586
  e.fullscreen = !1, e._fullScreenOffset = null;
5580
5587
  }, 100)) : (!e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !1, e._fullScreenOffset = null), e.cssfullscreen)
5581
5588
  e.removeClass(k.FULLSCREEN);
@@ -5585,11 +5592,11 @@ var Ba = ["play", "pause", "replay", "retry"], rn = 0, sn = 0, De = null, Nt = /
5585
5592
  }
5586
5593
  e._fullscreenEl = null, e.emit(be, !1);
5587
5594
  }
5588
- }), _(v(e), "_onWebkitbeginfullscreen", function(g) {
5595
+ }), _(m(e), "_onWebkitbeginfullscreen", function(g) {
5589
5596
  e._fullscreenEl = e.media, e.onFullscreenChange(g, !0);
5590
- }), _(v(e), "_onWebkitendfullscreen", function(g) {
5597
+ }), _(m(e), "_onWebkitendfullscreen", function(g) {
5591
5598
  e.onFullscreenChange(g, !1);
5592
- }), Yn(v(e), Ba), e.config = i, e._pluginInfoId = f.generateSessionId(), Xo(v(e));
5599
+ }), Xn(m(e), Ha), e.config = i, e._pluginInfoId = f.generateSessionId(), qo(m(e));
5593
5600
  var n = e.constructor.defaultPreset;
5594
5601
  if (e.config.presets.length) {
5595
5602
  var s = e.config.presets.indexOf("default");
@@ -5618,7 +5625,7 @@ var Ba = ["play", "pause", "replay", "retry"], rn = 0, sn = 0, De = null, Nt = /
5618
5625
  }, e._offsetInfo = {
5619
5626
  currentTime: -1,
5620
5627
  duration: 0
5621
- }, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = nt.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 = {
5628
+ }, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = nt.init(e._pluginInfoId), B.os.isAndroid && B.osVersion > 0 && B.osVersion < 6 && (e.config.autoplay = !1), e.database = new ma(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
5622
5629
  isActiveLocked: !1
5623
5630
  }, e.instManager = De;
5624
5631
  var l = e._initDOM();
@@ -5631,7 +5638,7 @@ var Ba = ["play", "pause", "replay", "retry"], rn = 0, sn = 0, De = null, Nt = /
5631
5638
  });
5632
5639
  p || (h.defaultDefinition = h.list[0].definition, p = h.list[0]), e.config.url = p.url, e.curDefinition = p;
5633
5640
  }
5634
- return e._bindEvents(), e._registerPresets(), e._registerPlugins(), ie.onPluginsReady(v(e)), e.getInitDefinition(), e.setState(V.READY), f.setTimeout(v(e), function() {
5641
+ return e._bindEvents(), e._registerPresets(), e._registerPlugins(), ie.onPluginsReady(m(e)), e.getInitDefinition(), e.setState(V.READY), f.setTimeout(m(e), function() {
5635
5642
  e.emit(_i);
5636
5643
  }, 0), e.onReady && e.onReady(), (e.config.videoInit || e.config.autoplay) && (!e.hasStart || e.state < V.ATTACHED) && e.start(), e;
5637
5644
  }
@@ -5650,7 +5657,7 @@ var Ba = ["play", "pause", "replay", "retry"], rn = 0, sn = 0, De = null, Nt = /
5650
5657
  msg: "container id can't be empty"
5651
5658
  })), console.error("this.confg.id or this.config.el can't be empty"), !1;
5652
5659
  }
5653
- var s = Na(this.root);
5660
+ var s = Ba(this.root);
5654
5661
  s && (H.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(We, this.playerId), (e = De) === null || e === void 0 || e.add(this), ie.init(this), this._initBaseDoms();
5655
5662
  var l = this.constructor.XgVideoProxy;
5656
5663
  if (l && this.mediaConfig.mediaType === l.mediaType) {
@@ -5660,20 +5667,20 @@ var Ba = ["play", "pause", "replay", "retry"], rn = 0, sn = 0, De = null, Nt = /
5660
5667
  this.attachVideoEvents(c), this.media = c;
5661
5668
  }
5662
5669
  if (this.media.setAttribute(We, this.playerId), this.config.controls) {
5663
- var h = this.config.controls.root || null, d = ie.register(this, Oa, {
5670
+ var h = this.config.controls.root || null, d = ie.register(this, Ra, {
5664
5671
  root: h
5665
5672
  });
5666
5673
  this.controls = d;
5667
5674
  }
5668
5675
  var p = this.config.isMobileSimulateMode === "mobile" ? "mobile" : B.device;
5669
5676
  if (this.addClass("".concat(k.DEFAULT, " ").concat(k.INACTIVE, " xgplayer-").concat(p, " ").concat(this.config.controls ? "" : k.NO_CONTROLS)), this.config.autoplay ? this.addClass(k.ENTER) : this.addClass(k.NO_START), this.config.fluid) {
5670
- var g = this.config, m = g.width, y = g.height;
5671
- (typeof m != "number" || typeof y != "number") && (m = 600, y = 337.5);
5677
+ var g = this.config, v = g.width, y = g.height;
5678
+ (typeof v != "number" || typeof y != "number") && (v = 600, y = 337.5);
5672
5679
  var C = {
5673
5680
  width: "100%",
5674
5681
  height: "0",
5675
5682
  "max-width": "100%",
5676
- "padding-top": "".concat(y * 100 / m, "%")
5683
+ "padding-top": "".concat(y * 100 / v, "%")
5677
5684
  };
5678
5685
  Object.keys(C).forEach(function(R) {
5679
5686
  i.root.style[R] = C[R];
@@ -5698,7 +5705,7 @@ var Ba = ["play", "pause", "replay", "retry"], rn = 0, sn = 0, De = null, Nt = /
5698
5705
  var e = this;
5699
5706
  ["focus", "blur"].forEach(function(i) {
5700
5707
  e.on(i, e["on" + i.charAt(0).toUpperCase() + i.slice(1)]);
5701
- }), Ki.forEach(function(i) {
5708
+ }), Yi.forEach(function(i) {
5702
5709
  document && document.addEventListener(i, e.onFullscreenChange);
5703
5710
  }), B.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(Ie, this.resize), this.playFunc = function() {
5704
5711
  e.config.closeFocusVideoFocus || e.media.focus();
@@ -5708,7 +5715,7 @@ var Ba = ["play", "pause", "replay", "retry"], rn = 0, sn = 0, De = null, Nt = /
5708
5715
  key: "_unbindEvents",
5709
5716
  value: function() {
5710
5717
  var e = this;
5711
- this.root.removeEventListener("mousemove", this.mousemoveFunc), Ki.forEach(function(i) {
5718
+ this.root.removeEventListener("mousemove", this.mousemoveFunc), Yi.forEach(function(i) {
5712
5719
  document.removeEventListener(i, e.onFullscreenChange);
5713
5720
  }), this.playFunc && this.off(de, this.playFunc), this.off(Se, this.canPlayFunc), this.media.removeEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.removeEventListener("webkitendfullscreen", this._onWebkitendfullscreen);
5714
5721
  }
@@ -5721,7 +5728,7 @@ var Ba = ["play", "pause", "replay", "retry"], rn = 0, sn = 0, De = null, Nt = /
5721
5728
  key: "_startInit",
5722
5729
  value: function(e) {
5723
5730
  var i = this;
5724
- if (this.media && !((!e || e === "" || f.typeOf(e) === "Array" && e.length === 0) && (e = "", this.emit(Fn), H.logWarn("config.url is null, please get url and run player._startInit(url)"), this.config.nullUrlStart))) {
5731
+ if (this.media && !((!e || e === "" || f.typeOf(e) === "Array" && e.length === 0) && (e = "", this.emit(Mn), H.logWarn("config.url is null, please get url and run player._startInit(url)"), this.config.nullUrlStart))) {
5725
5732
  this.handleSource && (this._detachSourceEvents(this.media), f.typeOf(e) === "Array" && e.length > 0 ? this._attachSourceEvents(this.media, e) : !this.media.src || this.media.src !== e ? this.media.src = e : e || this.media.removeAttribute("src")), f.typeOf(this.config.volume) === "Number" && (this.volume = this.config.volume);
5726
5733
  var n = this.innerContainer ? this.innerContainer : this.root;
5727
5734
  this.media instanceof window.Element && !n.contains(this.media) && n.insertBefore(this.media, n.firstChild);
@@ -5768,7 +5775,7 @@ var Ba = ["play", "pause", "replay", "retry"], rn = 0, sn = 0, De = null, Nt = /
5768
5775
  value: function() {
5769
5776
  var e = this;
5770
5777
  this.config.presets.forEach(function(i) {
5771
- Da(e, i);
5778
+ Oa(e, i);
5772
5779
  });
5773
5780
  }
5774
5781
  }, {
@@ -5886,8 +5893,8 @@ var Ba = ["play", "pause", "replay", "retry"], rn = 0, sn = 0, De = null, Nt = /
5886
5893
  this.__startTime = l;
5887
5894
  var u = this.paused && !this.isError;
5888
5895
  return this.src = s, new Promise(function(c, h) {
5889
- var d = function(m) {
5890
- n.off("timeupdate", p), n.off("canplay", p), h(m);
5896
+ var d = function(v) {
5897
+ n.off("timeupdate", p), n.off("canplay", p), h(v);
5891
5898
  }, p = function() {
5892
5899
  n.duration > 0 && n.__startTime > 0 && (n.currentTime = n.__startTime, n.__startTime = -1), u && n.pause(), n.off("error", d), c(!0);
5893
5900
  };
@@ -6020,8 +6027,8 @@ var Ba = ["play", "pause", "replay", "retry"], rn = 0, sn = 0, De = null, Nt = /
6020
6027
  key: "resetState",
6021
6028
  value: function() {
6022
6029
  var e = this, i = k.NOT_ALLOW_AUTOPLAY, n = k.PLAYING, s = k.NO_START, l = k.PAUSED, u = k.REPLAY, c = k.ENTER, h = k.ENDED, d = k.ERROR, p = k.LOADING, g = [i, n, s, l, u, c, h, d, p];
6023
- this.hasStart = !1, this.isError = !1, this._useAutoplay = !1, this.mediaPause(), this._accPlayed.acc = 0, this._accPlayed.t = 0, this._accPlayed.loopAcc = 0, g.forEach(function(m) {
6024
- e.removeClass(m);
6030
+ this.hasStart = !1, this.isError = !1, this._useAutoplay = !1, this.mediaPause(), this._accPlayed.acc = 0, this._accPlayed.t = 0, this._accPlayed.loopAcc = 0, g.forEach(function(v) {
6031
+ e.removeClass(v);
6025
6032
  }), this.addClass(k.NO_START), this.emit(Mt);
6026
6033
  }
6027
6034
  }, {
@@ -6033,7 +6040,7 @@ var Ba = ["play", "pause", "replay", "retry"], rn = 0, sn = 0, De = null, Nt = /
6033
6040
  if (s && (i.map(function(u) {
6034
6041
  e.deregister(u);
6035
6042
  }), n)) {
6036
- var l = tn();
6043
+ var l = nn();
6037
6044
  Object.keys(this.config).keys(function(u) {
6038
6045
  e.config[u] !== "undefined" && (u === "plugins" || u === "presets" || u === "el" || u === "id") && (e.config[u] = l[u]);
6039
6046
  });
@@ -6044,7 +6051,7 @@ var Ba = ["play", "pause", "replay", "retry"], rn = 0, sn = 0, De = null, Nt = /
6044
6051
  value: function() {
6045
6052
  var e, i = this, n = this.innerContainer, s = this.root, l = this.media;
6046
6053
  if (!(!s || !l)) {
6047
- if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(We), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(Ci), (e = De) === null || e === void 0 || e.remove(this), ie.destroy(this), Xn(this), F(O(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
6054
+ if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(We), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(Ci), (e = De) === null || e === void 0 || e.remove(this), ie.destroy(this), qn(this), F(O(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
6048
6055
  for (var u = n.children, c = 0; c < u.length; c++)
6049
6056
  n.removeChild(u[c]);
6050
6057
  !n && l instanceof window.Node && s.contains(l) && s.removeChild(l), ["topBar", "leftBar", "rightBar", "innerContainer"].map(function(d) {
@@ -6106,8 +6113,8 @@ var Ba = ["play", "pause", "replay", "retry"], rn = 0, sn = 0, De = null, Nt = /
6106
6113
  if (s === this._fullscreenEl)
6107
6114
  return this.onFullscreenChange(), Promise.resolve();
6108
6115
  try {
6109
- for (var l = 0; l < Yi.length; l++) {
6110
- var u = Yi[l];
6116
+ for (var l = 0; l < Xi.length; l++) {
6117
+ var u = Xi[l];
6111
6118
  if (e[u]) {
6112
6119
  var c = u === "webkitRequestFullscreen" ? e.webkitRequestFullscreen(window.Element.ALLOW_KEYBOARD_INPUT) : e[u]();
6113
6120
  return c && c.then ? c : Promise.resolve();
@@ -6126,8 +6133,8 @@ var Ba = ["play", "pause", "replay", "retry"], rn = 0, sn = 0, De = null, Nt = /
6126
6133
  var i = this.media;
6127
6134
  this._fullActionFrom = "exit";
6128
6135
  try {
6129
- for (var n = 0; n < Xi.length; n++) {
6130
- var s = Xi[n];
6136
+ for (var n = 0; n < qi.length; n++) {
6137
+ var s = qi[n];
6131
6138
  if (document[s]) {
6132
6139
  var l = document[s]();
6133
6140
  return l && l.then ? l : Promise.resolve();
@@ -6206,7 +6213,7 @@ var Ba = ["play", "pause", "replay", "retry"], rn = 0, sn = 0, De = null, Nt = /
6206
6213
  this.onBlur(e);
6207
6214
  return;
6208
6215
  }
6209
- this._clearUserTimer(), this.emit(Rn, q({
6216
+ this._clearUserTimer(), this.emit(Fn, q({
6210
6217
  paused: this.paused,
6211
6218
  ended: this.ended
6212
6219
  }, e));
@@ -6291,7 +6298,7 @@ var Ba = ["play", "pause", "replay", "retry"], rn = 0, sn = 0, De = null, Nt = /
6291
6298
  value: function() {
6292
6299
  var e = this;
6293
6300
  this.waitTimer && f.clearTimeout(this, this.waitTimer), this.updateAcc("waiting"), this.waitTimer = f.setTimeout(this, function() {
6294
- e.addClass(k.LOADING), e.emit(Bn), f.clearTimeout(e, e.waitTimer), e.waitTimer = null;
6301
+ e.addClass(k.LOADING), e.emit(Hn), f.clearTimeout(e, e.waitTimer), e.waitTimer = null;
6295
6302
  }, this.config.minWaitDelay);
6296
6303
  }
6297
6304
  }, {
@@ -6366,13 +6373,13 @@ var Ba = ["play", "pause", "replay", "retry"], rn = 0, sn = 0, De = null, Nt = /
6366
6373
  this.videoPos.pi = c, u = u < 0 ? 0 : u;
6367
6374
  var h = {
6368
6375
  rotate: u
6369
- }, d = 0, p = 0, g = 1, m = Math.abs(u / 90), y = this.root, C = this.innerContainer, b = y.offsetWidth, w = C ? C.offsetHeight : y.offsetHeight, L = w, M = b;
6370
- if (m % 2 === 0)
6371
- g = s > 0 ? 100 / s : l > 0 ? 100 / l : 1, h.scale = g, d = i > 0 ? (100 - s) / 2 - i : 0, h.y = m === 2 ? 0 - d : d, p = n > 0 ? (100 - l) / 2 - n : 0, h.x = m === 2 ? 0 - p : p, this.media.style.width = "".concat(M, "px"), this.media.style.height = "".concat(L, "px");
6372
- else if (m % 2 === 1) {
6376
+ }, d = 0, p = 0, g = 1, v = Math.abs(u / 90), y = this.root, C = this.innerContainer, b = y.offsetWidth, w = C ? C.offsetHeight : y.offsetHeight, L = w, M = b;
6377
+ if (v % 2 === 0)
6378
+ g = s > 0 ? 100 / s : l > 0 ? 100 / l : 1, h.scale = g, d = i > 0 ? (100 - s) / 2 - i : 0, h.y = v === 2 ? 0 - d : d, p = n > 0 ? (100 - l) / 2 - n : 0, h.x = v === 2 ? 0 - p : p, this.media.style.width = "".concat(M, "px"), this.media.style.height = "".concat(L, "px");
6379
+ else if (v % 2 === 1) {
6373
6380
  M = w, L = b;
6374
6381
  var U = w - b;
6375
- p = -U / 2 / M * 100, h.x = m === 3 ? p + i / 2 : p - i / 2, d = U / 2 / L * 100, h.y = m === 3 ? d + n / 2 : d - n / 2, h.scale = g, this.media.style.width = "".concat(M, "px"), this.media.style.height = "".concat(L, "px");
6382
+ p = -U / 2 / M * 100, h.x = v === 3 ? p + i / 2 : p - i / 2, d = U / 2 / L * 100, h.y = v === 3 ? d + n / 2 : d - n / 2, h.scale = g, this.media.style.width = "".concat(M, "px"), this.media.style.height = "".concat(L, "px");
6376
6383
  }
6377
6384
  var R = f.getTransformStyle(h, this.media.style.transform || this.media.style.webkitTransform);
6378
6385
  this.media.style.transform = R, this.media.style.webkitTransform = R;
@@ -6423,12 +6430,12 @@ var Ba = ["play", "pause", "replay", "retry"], rn = 0, sn = 0, De = null, Nt = /
6423
6430
  var n = this.media, s = n.videoWidth, l = n.videoHeight, u = this.config, c = u.fitVideoSize, h = u.videoFillMode;
6424
6431
  if ((h === "fill" || h === "cover" || h === "contain") && this.setAttribute("data-xgfill", h), !(!l || !s)) {
6425
6432
  this._videoHeight = l, this._videoWidth = s;
6426
- var d = this.controls && this.innerContainer ? this.controls.root.getBoundingClientRect().height : 0, p = i.width, g = i.height - d, m = parseInt(s / l * 1e3, 10), y = parseInt(p / g * 1e3, 10), C = p, b = g, w = {};
6427
- c === "auto" && y > m || c === "fixWidth" ? (b = p / m * 1e3, this.config.fluid ? w.paddingTop = "".concat(b * 100 / C, "%") : w.height = "".concat(b + d, "px")) : (c === "auto" && y < m || c === "fixHeight") && (C = m * g / 1e3, w.width = "".concat(C, "px")), !this.fullscreen && !this.cssfullscreen && Object.keys(w).forEach(function(M) {
6433
+ var d = this.controls && this.innerContainer ? this.controls.root.getBoundingClientRect().height : 0, p = i.width, g = i.height - d, v = parseInt(s / l * 1e3, 10), y = parseInt(p / g * 1e3, 10), C = p, b = g, w = {};
6434
+ c === "auto" && y > v || c === "fixWidth" ? (b = p / v * 1e3, this.config.fluid ? w.paddingTop = "".concat(b * 100 / C, "%") : w.height = "".concat(b + d, "px")) : (c === "auto" && y < v || c === "fixHeight") && (C = v * g / 1e3, w.width = "".concat(C, "px")), !this.fullscreen && !this.cssfullscreen && Object.keys(w).forEach(function(M) {
6428
6435
  e.root.style[M] = w[M];
6429
- }), (h === "fillHeight" && y < m || h === "fillWidth" && y > m) && this.setAttribute("data-xgfill", "cover");
6436
+ }), (h === "fillHeight" && y < v || h === "fillWidth" && y > v) && this.setAttribute("data-xgfill", "cover");
6430
6437
  var L = {
6431
- videoScale: m,
6438
+ videoScale: v,
6432
6439
  vWidth: C,
6433
6440
  vHeight: b,
6434
6441
  cWidth: C,
@@ -6451,7 +6458,7 @@ var Ba = ["play", "pause", "replay", "retry"], rn = 0, sn = 0, De = null, Nt = /
6451
6458
  }, {
6452
6459
  key: "setState",
6453
6460
  value: function(e) {
6454
- H.logInfo("setState", "state from:".concat(nn[this.state], " to:").concat(nn[e])), this._state = e;
6461
+ H.logInfo("setState", "state from:".concat(rn[this.state], " to:").concat(rn[e])), this._state = e;
6455
6462
  }
6456
6463
  }, {
6457
6464
  key: "_preProcessUrl",
@@ -6617,18 +6624,18 @@ var Ba = ["play", "pause", "replay", "retry"], rn = 0, sn = 0, De = null, Nt = /
6617
6624
  }, {
6618
6625
  key: "avgSpeed",
6619
6626
  get: function() {
6620
- return sn;
6627
+ return on;
6621
6628
  },
6622
6629
  set: function(e) {
6623
- sn = e;
6630
+ on = e;
6624
6631
  }
6625
6632
  }, {
6626
6633
  key: "realTimeSpeed",
6627
6634
  get: function() {
6628
- return rn;
6635
+ return sn;
6629
6636
  },
6630
6637
  set: function(e) {
6631
- rn = e;
6638
+ sn = e;
6632
6639
  }
6633
6640
  }, {
6634
6641
  key: "offsetCurrentTime",
@@ -6666,14 +6673,14 @@ var Ba = ["play", "pause", "replay", "retry"], rn = 0, sn = 0, De = null, Nt = /
6666
6673
  value: function(e, i, n) {
6667
6674
  for (var s = arguments.length, l = new Array(s > 3 ? s - 3 : 0), u = 3; u < s; u++)
6668
6675
  l[u - 3] = arguments[u];
6669
- return qi.call.apply(qi, [this].concat(Array.prototype.slice.call(arguments)));
6676
+ return Zi.call.apply(Zi, [this].concat(Array.prototype.slice.call(arguments)));
6670
6677
  }
6671
6678
  }, {
6672
6679
  key: "removePluginHooks",
6673
6680
  value: function(e, i, n) {
6674
6681
  for (var s = arguments.length, l = new Array(s > 3 ? s - 3 : 0), u = 3; u < s; u++)
6675
6682
  l[u - 3] = arguments[u];
6676
- return Zi.call.apply(Zi, [this].concat(Array.prototype.slice.call(arguments)));
6683
+ return Ji.call.apply(Ji, [this].concat(Array.prototype.slice.call(arguments)));
6677
6684
  }
6678
6685
  }, {
6679
6686
  key: "setUserActive",
@@ -6730,10 +6737,10 @@ var Ba = ["play", "pause", "replay", "retry"], rn = 0, sn = 0, De = null, Nt = /
6730
6737
  r.plugins || (r.plugins = {}), r.plugins[e] = i;
6731
6738
  }
6732
6739
  }]), r;
6733
- }(pa);
6740
+ }(va);
6734
6741
  _(Nt, "defaultPreset", null);
6735
6742
  _(Nt, "XgVideoProxy", null);
6736
- Nt.instManager = Zn.getInstance();
6743
+ Nt.instManager = Jn.getInstance();
6737
6744
  function re() {
6738
6745
  return (/* @__PURE__ */ new Date()).getTime();
6739
6746
  }
@@ -6745,7 +6752,7 @@ var Oe = {
6745
6752
  WAIT_END: "waitingEnd",
6746
6753
  SEEK_START: "seekStart",
6747
6754
  SEEK_END: "seekEnd"
6748
- }, Ha = /* @__PURE__ */ function(a) {
6755
+ }, Ua = /* @__PURE__ */ function(a) {
6749
6756
  A(r, a);
6750
6757
  var o = D(r);
6751
6758
  function r() {
@@ -6753,43 +6760,43 @@ var Oe = {
6753
6760
  x(this, r);
6754
6761
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
6755
6762
  i[n] = arguments[n];
6756
- return t = o.call.apply(o, [this].concat(i)), _(v(t), "_onTimeupdate", function() {
6763
+ return t = o.call.apply(o, [this].concat(i)), _(m(t), "_onTimeupdate", function() {
6757
6764
  t._state.isTimeUpdate = !0, t._state.autoplayStart && (H.logInfo("[xgLogger]".concat(t.player.playerId, " _onTimeupdate")), t._sendFF("onTimeupdate"));
6758
- }), _(v(t), "_onAutoplayStart", function() {
6765
+ }), _(m(t), "_onAutoplayStart", function() {
6759
6766
  H.logInfo("[xgLogger]".concat(t.player.playerId, " _onAutoplayStart")), t._state.autoplayStart = !0, t.vt && t._sendFF("onAutoplayStart");
6760
- }), _(v(t), "_onReset", function() {
6767
+ }), _(m(t), "_onReset", function() {
6761
6768
  t._state = {
6762
6769
  autoplayStart: !1,
6763
6770
  isFFLoading: !1,
6764
6771
  isTimeUpdate: !1,
6765
6772
  isFFSend: !1,
6766
6773
  isLs: !1
6767
- }, t.vt = 0, t.pt = 0, t.fvt = 0, t.newPointTime = re(), t.loadedCostTime = 0, t.startCostTime = 0, t._isSeeking = !1, t.seekingStart = 0, t.waitingStart = 0, t.fixedWaitingStart = 0, t._isWaiting = !1, t._waitTimer && f.clearTimeout(v(t), t._waitTimer), t._waittTimer && f.clearTimeout(v(t), t._waittTimer), t._waitTimer = null, t._waittTimer = null, t._waitType = 0;
6768
- }), _(v(t), "_onSeeking", function() {
6774
+ }, t.vt = 0, t.pt = 0, t.fvt = 0, t.newPointTime = re(), t.loadedCostTime = 0, t.startCostTime = 0, t._isSeeking = !1, t.seekingStart = 0, t.waitingStart = 0, t.fixedWaitingStart = 0, t._isWaiting = !1, t._waitTimer && f.clearTimeout(m(t), t._waitTimer), t._waittTimer && f.clearTimeout(m(t), t._waittTimer), t._waitTimer = null, t._waittTimer = null, t._waitType = 0;
6775
+ }), _(m(t), "_onSeeking", function() {
6769
6776
  t.seekingStart || (t.suspendWaitingStatus("seek"), t.seekingStart = re(), t.emitLog(Oe.SEEK_START, {
6770
6777
  start: re()
6771
6778
  }));
6772
- }), _(v(t), "_onSeeked", function() {
6779
+ }), _(m(t), "_onSeeked", function() {
6773
6780
  t.suspendSeekingStatus("seeked");
6774
- }), _(v(t), "_onWaitingLoadStart", function() {
6781
+ }), _(m(t), "_onWaitingLoadStart", function() {
6775
6782
  t._isWaiting || t.vt || (t._isWaiting = !0, t.waitingStart = re(), t.fixedWaitingStart = re(), t._waitType = 1, t.emitLog(Oe.WAIT_START, {
6776
6783
  fixedStart: t.fixedWaitingStart,
6777
6784
  start: t.waitingStart,
6778
6785
  type: 1,
6779
6786
  endType: "loadstart"
6780
6787
  }));
6781
- }), _(v(t), "_onWaiting", function() {
6782
- t._isWaiting || !t.vt || (t._isWaiting = !0, t.vt ? t.seekingStart ? t._waitType = 2 : t._waitType = 0 : t._waitType = 1, t.fixedWaitingStart = re(), t._waitTimer = f.setTimeout(v(t), function() {
6783
- t._isWaiting && (t.waitingStart = re(), f.clearTimeout(v(t), t._waitTimer), t._waitTimer = null, t._startWaitTimeout(), t.emitLog(Oe.WAIT_START, {
6788
+ }), _(m(t), "_onWaiting", function() {
6789
+ t._isWaiting || !t.vt || (t._isWaiting = !0, t.vt ? t.seekingStart ? t._waitType = 2 : t._waitType = 0 : t._waitType = 1, t.fixedWaitingStart = re(), t._waitTimer = f.setTimeout(m(t), function() {
6790
+ t._isWaiting && (t.waitingStart = re(), f.clearTimeout(m(t), t._waitTimer), t._waitTimer = null, t._startWaitTimeout(), t.emitLog(Oe.WAIT_START, {
6784
6791
  fixedStart: t.fixedWaitingStart,
6785
6792
  start: t.waitingStart,
6786
6793
  type: t._waitType,
6787
6794
  endType: t._waitType === 2 ? "seek" : "playing"
6788
6795
  }));
6789
6796
  }, 200));
6790
- }), _(v(t), "_onError", function() {
6797
+ }), _(m(t), "_onError", function() {
6791
6798
  t.suspendSeekingStatus("error"), t.suspendWaitingStatus("error");
6792
- }), _(v(t), "_onPlaying", function() {
6799
+ }), _(m(t), "_onPlaying", function() {
6793
6800
  t._isWaiting && t.suspendWaitingStatus("playing");
6794
6801
  }), t;
6795
6802
  }
@@ -6872,7 +6879,7 @@ var Oe = {
6872
6879
  key: "emitLog",
6873
6880
  value: function(e, i) {
6874
6881
  var n = this.player;
6875
- this.emit(Vn, q({
6882
+ this.emit(jn, q({
6876
6883
  t: re(),
6877
6884
  host: f.getHostFromUrl(n.currentSrc),
6878
6885
  vtype: n.vtype,
@@ -6896,13 +6903,13 @@ var Oe = {
6896
6903
  }
6897
6904
  }]), r;
6898
6905
  }(W);
6899
- function Ua() {
6906
+ function za() {
6900
6907
  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">
6901
6908
  <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>
6902
6909
  </svg>
6903
6910
  `, "image/svg+xml").firstChild;
6904
6911
  }
6905
- var za = /* @__PURE__ */ function(a) {
6912
+ var Va = /* @__PURE__ */ function(a) {
6906
6913
  A(r, a);
6907
6914
  var o = D(r);
6908
6915
  function r() {
@@ -6912,7 +6919,7 @@ var za = /* @__PURE__ */ function(a) {
6912
6919
  key: "registerIcons",
6913
6920
  value: function() {
6914
6921
  return {
6915
- replay: Ua
6922
+ replay: za
6916
6923
  };
6917
6924
  }
6918
6925
  }, {
@@ -6985,7 +6992,7 @@ var za = /* @__PURE__ */ function(a) {
6985
6992
  };
6986
6993
  }
6987
6994
  }]), r;
6988
- }(W), Va = /* @__PURE__ */ function(a) {
6995
+ }(W), ja = /* @__PURE__ */ function(a) {
6989
6996
  A(r, a);
6990
6997
  var o = D(r);
6991
6998
  function r() {
@@ -7110,7 +7117,7 @@ function Ei() {
7110
7117
  `, "image/svg+xml").firstChild;
7111
7118
  }
7112
7119
  var Ce = {};
7113
- function ja(a, o) {
7120
+ function Wa(a, o) {
7114
7121
  var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
7115
7122
  start: null,
7116
7123
  end: null
@@ -7119,7 +7126,7 @@ function ja(a, o) {
7119
7126
  r.end && r.end(), window.clearTimeout(Ce[a].id), delete Ce[a];
7120
7127
  }, o), Ce[a].id;
7121
7128
  }
7122
- function on(a) {
7129
+ function an(a) {
7123
7130
  if (a) {
7124
7131
  window.clearTimeout(a);
7125
7132
  return;
@@ -7128,16 +7135,16 @@ function on(a) {
7128
7135
  window.clearTimeout(Ce[o].id), delete Ce[o];
7129
7136
  });
7130
7137
  }
7131
- var Wa = /* @__PURE__ */ function(a) {
7138
+ var Ga = /* @__PURE__ */ function(a) {
7132
7139
  A(r, a);
7133
7140
  var o = D(r);
7134
7141
  function r(t) {
7135
7142
  var e;
7136
- return x(this, r), e = o.call(this, t), _(v(e), "onPlayerReset", function() {
7143
+ return x(this, r), e = o.call(this, t), _(m(e), "onPlayerReset", function() {
7137
7144
  e.autoPlayStart = !1;
7138
7145
  var i = e.config.mode === "auto" ? "auto-hide" : "hide";
7139
7146
  e.setAttr("data-state", "play"), f.removeClass(e.root, i), e.show();
7140
- }), _(v(e), "onAutoplayStart", function() {
7147
+ }), _(m(e), "onAutoplayStart", function() {
7141
7148
  if (!e.autoPlayStart) {
7142
7149
  var i = e.config.mode === "auto" ? "auto-hide" : "hide";
7143
7150
  f.addClass(e.root, i), e.autoPlayStart = !0, e.onPlayPause("play");
@@ -7220,7 +7227,7 @@ var Wa = /* @__PURE__ */ function(a) {
7220
7227
  key: "animate",
7221
7228
  value: function(e) {
7222
7229
  var i = this;
7223
- this._animateId = ja("pauseplay", 400, {
7230
+ this._animateId = Wa("pauseplay", 400, {
7224
7231
  start: function() {
7225
7232
  f.addClass(i.root, "interact"), i.show(), i.switchStatus(!0);
7226
7233
  },
@@ -7232,7 +7239,7 @@ var Wa = /* @__PURE__ */ function(a) {
7232
7239
  }, {
7233
7240
  key: "endAnimate",
7234
7241
  value: function() {
7235
- f.removeClass(this.root, "interact"), on(this._animateId), this._animateId = null;
7242
+ f.removeClass(this.root, "interact"), an(this._animateId), this._animateId = null;
7236
7243
  }
7237
7244
  }, {
7238
7245
  key: "switchPausePlay",
@@ -7276,7 +7283,7 @@ var Wa = /* @__PURE__ */ function(a) {
7276
7283
  }, {
7277
7284
  key: "destroy",
7278
7285
  value: function() {
7279
- this.unbind(["click", "touchend"], this.clickHandler), on(this._animateId);
7286
+ this.unbind(["click", "touchend"], this.clickHandler), an(this._animateId);
7280
7287
  }
7281
7288
  }, {
7282
7289
  key: "render",
@@ -7303,7 +7310,7 @@ var Wa = /* @__PURE__ */ function(a) {
7303
7310
  };
7304
7311
  }
7305
7312
  }]), r;
7306
- }(W), Ga = /* @__PURE__ */ function(a) {
7313
+ }(W), $a = /* @__PURE__ */ function(a) {
7307
7314
  A(r, a);
7308
7315
  var o = D(r);
7309
7316
  function r() {
@@ -7348,7 +7355,7 @@ function ze(a, o, r) {
7348
7355
  return '<div class="xg-tips hide"></div>';
7349
7356
  }
7350
7357
  }
7351
- var an = /* @__PURE__ */ function(a) {
7358
+ var ln = /* @__PURE__ */ function(a) {
7352
7359
  A(r, a);
7353
7360
  var o = D(r);
7354
7361
  function r() {
@@ -7398,12 +7405,12 @@ var an = /* @__PURE__ */ function(a) {
7398
7405
  }
7399
7406
  }]), r;
7400
7407
  }(W);
7401
- function ln(a) {
7408
+ function un(a) {
7402
7409
  var o = parseFloat(a), r = a.indexOf("%") === -1 && !Number.isNaN(o);
7403
7410
  return r && o;
7404
7411
  }
7405
- var Si = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], Jn = Si.length;
7406
- function $a() {
7412
+ var Si = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], Qn = Si.length;
7413
+ function Ka() {
7407
7414
  for (var a = {
7408
7415
  width: 0,
7409
7416
  height: 0,
@@ -7411,30 +7418,30 @@ function $a() {
7411
7418
  innerHeight: 0,
7412
7419
  outerWidth: 0,
7413
7420
  outerHeight: 0
7414
- }, o = 0; o < Jn; o++) {
7421
+ }, o = 0; o < Qn; o++) {
7415
7422
  var r = Si[o];
7416
7423
  a[r] = 0;
7417
7424
  }
7418
7425
  return a;
7419
7426
  }
7420
- function Ka(a) {
7427
+ function Ya(a) {
7421
7428
  var o = window.getComputedStyle(a);
7422
7429
  return o;
7423
7430
  }
7424
- function un(a) {
7431
+ function cn(a) {
7425
7432
  if (typeof a == "string" && (a = document.querySelector(a)), !(!a || ae(a) !== "object" || !a.nodeType)) {
7426
- var o = Ka(a);
7433
+ var o = Ya(a);
7427
7434
  if (o.display === "none")
7428
- return $a();
7435
+ return Ka();
7429
7436
  var r = {};
7430
7437
  r.width = a.offsetWidth, r.height = a.offsetHeight;
7431
- for (var t = r.isBorderBox = o.boxSizing === "border-box", e = 0; e < Jn; e++) {
7438
+ for (var t = r.isBorderBox = o.boxSizing === "border-box", e = 0; e < Qn; e++) {
7432
7439
  var i = Si[e], n = o[i], s = parseFloat(n);
7433
7440
  r[i] = Number.isNaN(s) ? 0 : s;
7434
7441
  }
7435
- var l = r.paddingLeft + r.paddingRight, u = r.paddingTop + r.paddingBottom, c = r.marginLeft + r.marginRight, h = r.marginTop + r.marginBottom, d = r.borderLeftWidth + r.borderRightWidth, p = r.borderTopWidth + r.borderBottomWidth, g = t, m = ln(o.width);
7436
- m !== !1 && (r.width = m + (g ? 0 : l + d));
7437
- var y = ln(o.height);
7442
+ var l = r.paddingLeft + r.paddingRight, u = r.paddingTop + r.paddingBottom, c = r.marginLeft + r.marginRight, h = r.marginTop + r.marginBottom, d = r.borderLeftWidth + r.borderRightWidth, p = r.borderTopWidth + r.borderBottomWidth, g = t, v = un(o.width);
7443
+ v !== !1 && (r.width = v + (g ? 0 : l + d));
7444
+ var y = un(o.height);
7438
7445
  return y !== !1 && (r.height = y + (g ? 0 : u + p)), r.innerWidth = r.width - (l + d), r.innerHeight = r.height - (u + p), r.outerWidth = r.width + c, r.outerHeight = r.height + h, r;
7439
7446
  }
7440
7447
  }
@@ -7449,11 +7456,11 @@ var Xt = {
7449
7456
  START: "dragStart",
7450
7457
  MOVE: "dragMove",
7451
7458
  ENDED: "dragEnded"
7452
- }, cn = {
7459
+ }, fn = {
7453
7460
  mousedown: ["mousemove", "mouseup"],
7454
7461
  touchstart: ["touchmove", "touchend", "touchcancel"],
7455
7462
  pointerdown: ["pointermove", "pointerup", "pointercancel"]
7456
- }, Ya = /* @__PURE__ */ function(a) {
7463
+ }, Xa = /* @__PURE__ */ function(a) {
7457
7464
  A(r, a);
7458
7465
  var o = D(r);
7459
7466
  function r(t) {
@@ -7470,7 +7477,7 @@ var Xt = {
7470
7477
  key: "_bindStartEvent",
7471
7478
  value: function() {
7472
7479
  var e = this;
7473
- "ontouchstart" in window ? this._startKey = "touchstart" : this._startKey = "mousedown", this["on".concat(this._startKey)] = this["on".concat(this._startKey)].bind(this), this._handlerDom.addEventListener(this._startKey, this["on".concat(this._startKey)]), cn[this._startKey].map(function(i) {
7480
+ "ontouchstart" in window ? this._startKey = "touchstart" : this._startKey = "mousedown", this["on".concat(this._startKey)] = this["on".concat(this._startKey)].bind(this), this._handlerDom.addEventListener(this._startKey, this["on".concat(this._startKey)]), fn[this._startKey].map(function(i) {
7474
7481
  e["on".concat(i)] = e["on".concat(i)].bind(e);
7475
7482
  });
7476
7483
  }
@@ -7484,7 +7491,7 @@ var Xt = {
7484
7491
  value: function(e) {
7485
7492
  var i = this;
7486
7493
  if (e) {
7487
- var n = cn[this._startKey];
7494
+ var n = fn[this._startKey];
7488
7495
  n.map(function(s) {
7489
7496
  window.addEventListener(s, i["on".concat(s)]);
7490
7497
  }), this._boundPointerEvents = n;
@@ -7576,7 +7583,7 @@ var Xt = {
7576
7583
  value: function(e, i) {
7577
7584
  if (!(!this._root || this.isDown || !this.isEnabled)) {
7578
7585
  this.downPoint = i, this.dragPoint.x = 0, this.dragPoint.y = 0, this._getPosition();
7579
- var n = un(this._root);
7586
+ var n = cn(this._root);
7580
7587
  this.startPos.x = this.position.x, this.startPos.y = this.position.y, this.startPos.maxY = window.innerHeight - n.height, this.startPos.maxX = window.innerWidth - n.width, this.setLeftTop(), this.isDown = !0, this._bindPostStartEvents(e);
7581
7588
  }
7582
7589
  }
@@ -7657,29 +7664,29 @@ var Xt = {
7657
7664
  key: "_getPositionCoord",
7658
7665
  value: function(e, i) {
7659
7666
  if (e.indexOf("%") !== -1) {
7660
- var n = un(this._root.parentNode);
7667
+ var n = cn(this._root.parentNode);
7661
7668
  return n ? parseFloat(e) / 100 * n[i] : 0;
7662
7669
  }
7663
7670
  return parseInt(e, 10);
7664
7671
  }
7665
7672
  }]), r;
7666
- }(Pn), Xa = /* @__PURE__ */ function(a) {
7673
+ }(Ln), qa = /* @__PURE__ */ function(a) {
7667
7674
  A(r, a);
7668
7675
  var o = D(r);
7669
7676
  function r(t) {
7670
7677
  var e;
7671
- x(this, r), e = o.call(this, t), _(v(e), "onCancelClick", function(s) {
7678
+ x(this, r), e = o.call(this, t), _(m(e), "onCancelClick", function(s) {
7672
7679
  e.exitMini(), e.isClose = !0;
7673
- }), _(v(e), "onCenterClick", function(s) {
7674
- var l = v(e), u = l.player;
7680
+ }), _(m(e), "onCenterClick", function(s) {
7681
+ var l = m(e), u = l.player;
7675
7682
  u.paused ? u.play() : u.pause();
7676
- }), _(v(e), "onScroll", function(s) {
7683
+ }), _(m(e), "onScroll", function(s) {
7677
7684
  if (!(!window.scrollY && window.scrollY !== 0 || Math.abs(window.scrollY - e.pos.scrollY) < 50)) {
7678
7685
  var l = parseInt(f.getCss(e.player.root, "height"));
7679
7686
  l += e.config.scrollTop, e.pos.scrollY = window.scrollY, window.scrollY > l + 5 ? !e.isMini && !e.isClose && e.getMini() : window.scrollY <= l && (e.isMini && e.exitMini(), e.isClose = !1);
7680
7687
  }
7681
7688
  }), e.isMini = !1, e.isClose = !1;
7682
- var i = v(e), n = i.config;
7689
+ var i = m(e), n = i.config;
7683
7690
  return e.pos = {
7684
7691
  left: n.left < 0 ? window.innerWidth - n.width - 20 : n.left,
7685
7692
  top: n.top < 0 ? window.innerHeight - n.height - 20 : n.top,
@@ -7716,10 +7723,10 @@ var Xt = {
7716
7723
  }
7717
7724
  }
7718
7725
  };
7719
- i.controls.registerPlugin(an, s, an.pluginName);
7726
+ i.controls.registerPlugin(ln, s, ln.pluginName);
7720
7727
  }
7721
7728
  var l = f.checkTouchSupport() ? "touchend" : "click";
7722
- 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, {
7729
+ this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new Xa(this.player.root, {
7723
7730
  handle: this.root
7724
7731
  })), this.config.isScrollSwitch && window.addEventListener("scroll", this.onScroll);
7725
7732
  }
@@ -7825,42 +7832,42 @@ var Xt = {
7825
7832
  x(this, r);
7826
7833
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
7827
7834
  i[n] = arguments[n];
7828
- return t = o.call.apply(o, [this].concat(i)), _(v(t), "onMouseMove", function(s) {
7829
- var l = v(t), u = l.player, c = l.playerConfig;
7835
+ return t = o.call.apply(o, [this].concat(i)), _(m(t), "onMouseMove", function(s) {
7836
+ var l = m(t), u = l.player, c = l.playerConfig;
7830
7837
  u.isActive || (u.focus({
7831
7838
  autoHide: !c.closeDelayBlur
7832
7839
  }), !c.closeFocusVideoFocus && u.media.focus());
7833
- }), _(v(t), "onMouseEnter", function(s) {
7834
- var l = v(t), u = l.playerConfig, c = l.player;
7840
+ }), _(m(t), "onMouseEnter", function(s) {
7841
+ var l = m(t), u = l.playerConfig, c = l.player;
7835
7842
  !u.closeFocusVideoFocus && c.media.focus(), u.closeDelayBlur ? c.focus({
7836
7843
  autoHide: !1
7837
- }) : c.focus(), t.emit(Nn);
7838
- }), _(v(t), "onMouseLeave", function(s) {
7844
+ }) : c.focus(), t.emit(Bn);
7845
+ }), _(m(t), "onMouseLeave", function(s) {
7839
7846
  var l = t.playerConfig, u = l.closePlayerBlur, c = l.leavePlayerTime, h = l.closeDelayBlur;
7840
7847
  !u && !h && (c ? t.player.focus({
7841
7848
  autoHide: !0,
7842
7849
  delay: c
7843
7850
  }) : t.player.blur({
7844
7851
  ignorePaused: !0
7845
- })), t.emit(Mn);
7846
- }), _(v(t), "onVideoClick", function(s) {
7847
- var l = v(t), u = l.player, c = l.playerConfig;
7852
+ })), t.emit(Nn);
7853
+ }), _(m(t), "onVideoClick", function(s) {
7854
+ var l = m(t), u = l.player, c = l.playerConfig;
7848
7855
  s.target && c.closeVideoClick || (s.target === u.root || s.target === u.media || s.target === u.innerContainer || s.target === u.media.__canvas) && (s.preventDefault(), c.closeVideoStopPropagation || s.stopPropagation(), t._clickCount++, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), t.clickTimer = setTimeout(function() {
7849
- t._clickCount && (t._clickCount--, Te(v(t), qt[0], function(h, d) {
7856
+ t._clickCount && (t._clickCount--, Te(m(t), qt[0], function(h, d) {
7850
7857
  t.switchPlayPause(d.e);
7851
7858
  }, {
7852
7859
  e: s,
7853
7860
  paused: u.paused
7854
7861
  }), clearTimeout(t.clickTimer), t.clickTimer = null);
7855
7862
  }, 300));
7856
- }), _(v(t), "onVideoDblClick", function(s) {
7857
- var l = v(t), u = l.player, c = l.playerConfig;
7863
+ }), _(m(t), "onVideoDblClick", function(s) {
7864
+ var l = m(t), u = l.player, c = l.playerConfig;
7858
7865
  if (!(c.closeVideoDblclick || !s.target || s.target !== u.media && s.target !== u.media.__canvas)) {
7859
7866
  if (!c.closeVideoClick && t._clickCount < 2) {
7860
7867
  t._clickCount = 0;
7861
7868
  return;
7862
7869
  }
7863
- t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), Te(v(t), qt[1], function(h, d) {
7870
+ t._clickCount = 0, t.clickTimer && (clearTimeout(t.clickTimer), t.clickTimer = null), s.preventDefault(), s.stopPropagation(), Te(m(t), qt[1], function(h, d) {
7864
7871
  t.emitUserAction(d.e, "switch_fullscreen", {
7865
7872
  props: "fullscreen",
7866
7873
  from: u.fullscreen,
@@ -7933,21 +7940,21 @@ var Xt = {
7933
7940
  TOUCH_MOVE: "touchmove",
7934
7941
  TOUCH_START: "touchstart",
7935
7942
  TOUCH_END: "touchend"
7936
- }, qa = {
7943
+ }, Za = {
7937
7944
  start: "touchstart",
7938
7945
  end: "touchend",
7939
7946
  move: "touchmove",
7940
7947
  cancel: "touchcancel"
7941
- }, Za = {
7948
+ }, Ja = {
7942
7949
  start: "mousedown",
7943
7950
  end: "mouseup",
7944
7951
  move: "mousemove",
7945
7952
  cancel: "mouseleave"
7946
7953
  };
7947
- function fn(a) {
7954
+ function hn(a) {
7948
7955
  return a && a.length > 0 ? a[a.length - 1] : null;
7949
7956
  }
7950
- function Ja() {
7957
+ function Qa() {
7951
7958
  return {
7952
7959
  pressDelay: 600,
7953
7960
  dbClickDelay: 200,
@@ -7957,13 +7964,13 @@ function Ja() {
7957
7964
  needPreventDefault: !0
7958
7965
  };
7959
7966
  }
7960
- var Qa = /* @__PURE__ */ function() {
7967
+ var el = /* @__PURE__ */ function() {
7961
7968
  function a(o) {
7962
7969
  var r = this, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
7963
7970
  eventType: "touch"
7964
7971
  };
7965
7972
  x(this, a), _(this, "onTouchStart", function(e) {
7966
- var i = r._pos, n = r.root, s = fn(e.touches);
7973
+ var i = r._pos, n = r.root, s = hn(e.touches);
7967
7974
  i.x = s ? parseInt(s.pageX, 10) : e.pageX, i.y = s ? parseInt(s.pageX, 10) : e.pageX, i.start = !0, r.__setPress(e), n.addEventListener(r.events.end, r.onTouchEnd), n.addEventListener(r.events.cancel, r.onTouchCancel), n.addEventListener(r.events.move, r.onTouchMove), r.trigger(Re.TOUCH_START, e);
7968
7975
  }), _(this, "onTouchCancel", function(e) {
7969
7976
  r.onTouchEnd(e);
@@ -7971,16 +7978,16 @@ var Qa = /* @__PURE__ */ function() {
7971
7978
  var i = r._pos, n = r.root;
7972
7979
  r.__clearPress(), n.removeEventListener(r.events.cancel, r.onTouchCancel), n.removeEventListener(r.events.end, r.onTouchEnd), n.removeEventListener(r.events.move, r.onTouchMove), e.moving = i.moving, e.press = i.press, i.press && r.trigger(Re.PRESS_END, e), r.trigger(Re.TOUCH_END, e), !i.press && !i.moving && r.__setDb(e), i.press = !1, i.start = !1, i.moving = !1;
7973
7980
  }), _(this, "onTouchMove", function(e) {
7974
- var i = r._pos, n = r.config, s = fn(e.touches), l = s ? parseInt(s.pageX, 10) : e.pageX, u = s ? parseInt(s.pageY, 10) : e.pageX, c = l - i.x, h = u - i.y;
7981
+ var i = r._pos, n = r.config, s = hn(e.touches), l = s ? parseInt(s.pageX, 10) : e.pageX, u = s ? parseInt(s.pageY, 10) : e.pageX, c = l - i.x, h = u - i.y;
7975
7982
  Math.abs(h) < n.miniStep && Math.abs(c) < n.miniStep || (r.__clearPress(), i.press && r.trigger(Re.PRESS_END, e), i.press = !1, i.moving = !0, r.trigger(Re.TOUCH_MOVE, e));
7976
7983
  }), this._pos = {
7977
7984
  moving: !1,
7978
7985
  start: !1,
7979
7986
  x: 0,
7980
7987
  y: 0
7981
- }, this.config = Ja(), Object.keys(t).map(function(e) {
7988
+ }, this.config = Qa(), Object.keys(t).map(function(e) {
7982
7989
  r.config[e] = t[e];
7983
- }), this.root = o, this.events = t.eventType === "mouse" ? Za : qa, this.pressIntrvalId = null, this.dbIntrvalId = null, this.__handlers = {}, this._initEvent();
7990
+ }), this.root = o, this.events = t.eventType === "mouse" ? Ja : Za, this.pressIntrvalId = null, this.dbIntrvalId = null, this.__handlers = {}, this._initEvent();
7984
7991
  }
7985
7992
  return I(a, [{
7986
7993
  key: "_initEvent",
@@ -8059,7 +8066,7 @@ var Qa = /* @__PURE__ */ function() {
8059
8066
  }
8060
8067
  }]), a;
8061
8068
  }();
8062
- function el() {
8069
+ function tl() {
8063
8070
  return new DOMParser().parseFromString(`<svg width="20" height="9" viewBox="0 0 8 9" fill="none" xmlns="http://www.w3.org/2000/svg"
8064
8071
  xmlns:xlink="http://www.w3.org/1999/xlink">
8065
8072
  <path opacity="0.54"
@@ -8073,13 +8080,13 @@ var Ze = {
8073
8080
  SEEKING: "seeking",
8074
8081
  PLAYBACK: "playbackrate",
8075
8082
  LIGHT: ""
8076
- }, Jt = ["videoClick", "videoDbClick"], tl = /* @__PURE__ */ function(a) {
8083
+ }, Jt = ["videoClick", "videoDbClick"], il = /* @__PURE__ */ function(a) {
8077
8084
  A(r, a);
8078
8085
  var o = D(r);
8079
8086
  function r(t) {
8080
8087
  var e;
8081
- return x(this, r), e = o.call(this, t), _(v(e), "onTouchStart", function(i) {
8082
- var n = v(e), s = n.player, l = n.config, u = n.pos, c = n.playerConfig, h = e.getTouche(i);
8088
+ return x(this, r), e = o.call(this, t), _(m(e), "onTouchStart", function(i) {
8089
+ var n = m(e), s = n.player, l = n.config, u = n.pos, c = n.playerConfig, h = e.getTouche(i);
8083
8090
  if (h && !l.disableGesture && e.duration > 0 && !s.ended) {
8084
8091
  u.isStart = !0, e.timer && clearTimeout(e.timer), f.checkIsFunction(c.disableSwipeHandler) && c.disableSwipeHandler(), e.find(".xg-dur").innerHTML = f.format(e.duration);
8085
8092
  var d = e.root.getBoundingClientRect();
@@ -8087,21 +8094,21 @@ var Ze = {
8087
8094
  var p = parseInt(h.pageX - u.left, 10), g = parseInt(h.pageY - u.top, 10);
8088
8095
  u.x = s.rotateDeg === 90 ? g : p, u.y = s.rotateDeg === 90 ? p : g, u.scopeL = l.scopeL * u.width, u.scopeR = (1 - l.scopeR) * u.width, u.scopeM1 = u.width * (1 - l.scopeM) / 2, u.scopeM2 = u.width - u.scopeM1;
8089
8096
  }
8090
- }), _(v(e), "onTouchMove", function(i) {
8091
- var n = e.getTouche(i), s = v(e), l = s.pos, u = s.config, c = s.player;
8097
+ }), _(m(e), "onTouchMove", function(i) {
8098
+ var n = e.getTouche(i), s = m(e), l = s.pos, u = s.config, c = s.player;
8092
8099
  if (!(!n || u.disableGesture || !e.duration || !l.isStart)) {
8093
- var h = u.miniMoveStep, d = u.hideControlsActive, p = parseInt(n.pageX - l.left, 10), g = parseInt(n.pageY - l.top, 10), m = c.rotateDeg === 90 ? g : p, y = c.rotateDeg === 90 ? p : g;
8094
- if (Math.abs(m - l.x) > h || Math.abs(y - l.y) > h) {
8095
- var C = m - l.x, b = y - l.y, w = l.scope;
8096
- if (w === -1 && (w = e.checkScope(m, y, C, b, l), w === 0 && (d ? c.blur() : c.focus({
8100
+ var h = u.miniMoveStep, d = u.hideControlsActive, p = parseInt(n.pageX - l.left, 10), g = parseInt(n.pageY - l.top, 10), v = c.rotateDeg === 90 ? g : p, y = c.rotateDeg === 90 ? p : g;
8101
+ if (Math.abs(v - l.x) > h || Math.abs(y - l.y) > h) {
8102
+ var C = v - l.x, b = y - l.y, w = l.scope;
8103
+ if (w === -1 && (w = e.checkScope(v, y, C, b, l), w === 0 && (d ? c.blur() : c.focus({
8097
8104
  autoHide: !1
8098
8105
  }), !l.time && (l.time = parseInt(c.currentTime * 1e3, 10) + e.timeOffset * 1e3)), l.scope = w), w === -1 || w > 0 && !u.gestureY || w === 0 && !u.gestureX)
8099
8106
  return;
8100
- e.executeMove(C, b, w, l.width, l.height), l.x = m, l.y = y;
8107
+ e.executeMove(C, b, w, l.width, l.height), l.x = v, l.y = y;
8101
8108
  }
8102
8109
  }
8103
- }), _(v(e), "onTouchEnd", function(i) {
8104
- var n = v(e), s = n.player, l = n.pos, u = n.playerConfig;
8110
+ }), _(m(e), "onTouchEnd", function(i) {
8111
+ var n = m(e), s = n.player, l = n.pos, u = n.playerConfig;
8105
8112
  if (setTimeout(function() {
8106
8113
  s.getPlugin("progress") && s.getPlugin("progress").resetSeekState();
8107
8114
  }, 10), !!l.isStart) {
@@ -8109,9 +8116,9 @@ var Ze = {
8109
8116
  var c = e.config, h = c.disableGesture, d = c.gestureX;
8110
8117
  !h && d ? e.endLastMove(l.scope) : l.time = 0, l.scope = -1, e.resetPos(), f.checkIsFunction(u.enableSwipeHandler) && u.enableSwipeHandler(), e.changeAction(Ze.AUTO);
8111
8118
  }
8112
- }), _(v(e), "onRootTouchMove", function(i) {
8119
+ }), _(m(e), "onRootTouchMove", function(i) {
8113
8120
  e.config.disableGesture || !e.config.gestureX || e.checkIsRootTarget(i) && (i.stopPropagation(), e.pos.isStart ? e.onTouchMove(i) : e.onTouchStart(i));
8114
- }), _(v(e), "onRootTouchEnd", function(i) {
8121
+ }), _(m(e), "onRootTouchEnd", function(i) {
8115
8122
  e.pos.scope > -1 && e.onTouchEnd(i);
8116
8123
  }), e.pos = {
8117
8124
  isStart: !1,
@@ -8145,7 +8152,7 @@ var Ze = {
8145
8152
  value: function() {
8146
8153
  return {
8147
8154
  seekTipIcon: {
8148
- icon: el,
8155
+ icon: tl,
8149
8156
  class: "xg-seek-pre"
8150
8157
  }
8151
8158
  };
@@ -8160,7 +8167,7 @@ var Ze = {
8160
8167
  var i = this.playerConfig, n = this.config, s = this.player;
8161
8168
  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();
8162
8169
  var l = this.domEventType === "mouse" ? "mouse" : "touch";
8163
- this.touch = new Qa(this.root, {
8170
+ this.touch = new el(this.root, {
8164
8171
  eventType: l,
8165
8172
  needPreventDefault: !this.config.disableGesture
8166
8173
  }), this.root.addEventListener("contextmenu", function(d) {
@@ -8502,14 +8509,14 @@ var Ze = {
8502
8509
  }
8503
8510
  }]), r;
8504
8511
  }(W);
8505
- function il(a) {
8512
+ function nl(a) {
8506
8513
  a.preventDefault(), a.returnValue = !1;
8507
8514
  }
8508
- function hn(a) {
8515
+ function dn(a) {
8509
8516
  var o = a.tagName;
8510
8517
  return !!(o === "INPUT" || o === "TEXTAREA" || a.isContentEditable);
8511
8518
  }
8512
- var dn = /* @__PURE__ */ function(a) {
8519
+ var gn = /* @__PURE__ */ function(a) {
8513
8520
  A(r, a);
8514
8521
  var o = D(r);
8515
8522
  function r() {
@@ -8517,20 +8524,20 @@ var dn = /* @__PURE__ */ function(a) {
8517
8524
  x(this, r);
8518
8525
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
8519
8526
  i[n] = arguments[n];
8520
- return t = o.call.apply(o, [this].concat(i)), _(v(t), "onBodyKeyDown", function(s) {
8527
+ return t = o.call.apply(o, [this].concat(i)), _(m(t), "onBodyKeyDown", function(s) {
8521
8528
  if (t.player) {
8522
- var l = s || window.event, u = l.keyCode, c = v(t), h = c._keyState, d = c.player, p = t.config, g = p.disable, m = p.disableBodyTrigger, y = p.isIgnoreUserActive;
8523
- if (g || m || !(d.isUserActive || y) || hn(l.target) || !t.checkIsVisible() || l.metaKey || l.altKey || l.ctrlKey) {
8529
+ var l = s || window.event, u = l.keyCode, c = m(t), h = c._keyState, d = c.player, p = t.config, g = p.disable, v = p.disableBodyTrigger, y = p.isIgnoreUserActive;
8530
+ if (g || v || !(d.isUserActive || y) || dn(l.target) || !t.checkIsVisible() || l.metaKey || l.altKey || l.ctrlKey) {
8524
8531
  h.isBodyKeyDown = !1;
8525
8532
  return;
8526
8533
  }
8527
- !s.repeat && !h.isKeyDown && ((l.target === document.body || t.config.isGlobalTrigger && !hn(l.target)) && t.checkCode(u, !0) && (h.isBodyKeyDown = !0), document.addEventListener("keyup", t.onBodyKeyUp)), h.isBodyKeyDown && t.handleKeyDown(l);
8534
+ !s.repeat && !h.isKeyDown && ((l.target === document.body || t.config.isGlobalTrigger && !dn(l.target)) && t.checkCode(u, !0) && (h.isBodyKeyDown = !0), document.addEventListener("keyup", t.onBodyKeyUp)), h.isBodyKeyDown && t.handleKeyDown(l);
8528
8535
  }
8529
- }), _(v(t), "onBodyKeyUp", function(s) {
8536
+ }), _(m(t), "onBodyKeyUp", function(s) {
8530
8537
  t.player && (document.removeEventListener("keyup", t.onBodyKeyUp), t.handleKeyUp(s));
8531
- }), _(v(t), "onKeydown", function(s) {
8538
+ }), _(m(t), "onKeydown", function(s) {
8532
8539
  if (t.player) {
8533
- var l = s || window.event, u = v(t), c = u._keyState;
8540
+ var l = s || window.event, u = m(t), c = u._keyState;
8534
8541
  if (!l.repeat) {
8535
8542
  if (t.config.disable || t.config.disableRootTrigger || l.metaKey || l.altKey || l.ctrlKey)
8536
8543
  return;
@@ -8538,7 +8545,7 @@ var dn = /* @__PURE__ */ function(a) {
8538
8545
  }
8539
8546
  c.isKeyDown && t.handleKeyDown(l);
8540
8547
  }
8541
- }), _(v(t), "onKeyup", function(s) {
8548
+ }), _(m(t), "onKeyup", function(s) {
8542
8549
  t.player && (t.player.root.removeEventListener("keyup", t.onKeyup), t.handleKeyUp(s));
8543
8550
  }), t;
8544
8551
  }
@@ -8667,14 +8674,14 @@ var dn = /* @__PURE__ */ function(a) {
8667
8674
  value: function(e) {
8668
8675
  var i = this.player, n = i.currentTime, s = i.offsetCurrentTime, l = i.duration, u = i.offsetDuration, c = i.timeSegments, h = s > -1 ? s : n, d = u || l, p = e.repeat && this.seekStep >= 4 ? parseInt(this.seekStep / 2, 10) : this.seekStep;
8669
8676
  h + p <= d ? h = h + p : h = d;
8670
- var g = f.getCurrentTimeByOffset(h, c), m = {
8677
+ var g = f.getCurrentTimeByOffset(h, c), v = {
8671
8678
  currentTime: {
8672
8679
  from: n,
8673
8680
  to: g
8674
8681
  }
8675
8682
  };
8676
8683
  this.emitUserAction(e, "seek", {
8677
- props: m
8684
+ props: v
8678
8685
  }), this.player.currentTime = g;
8679
8686
  }
8680
8687
  }, {
@@ -8744,14 +8751,14 @@ var dn = /* @__PURE__ */ function(a) {
8744
8751
  var u = this.keyCodeMap[s[l]], c = u.action, h = u.keyCode, d = u.disable, p = u.pressAction, g = u.disablePress;
8745
8752
  if (h === e) {
8746
8753
  if (!d && !(n && g)) {
8747
- var m = n && p || c;
8748
- typeof m == "function" ? c(i, this.player, n) : typeof m == "string" && typeof this[m] == "function" && this[m](i, this.player, n), this.emit(zn, q({
8754
+ var v = n && p || c;
8755
+ typeof v == "function" ? c(i, this.player, n) : typeof v == "string" && typeof this[v] == "function" && this[v](i, this.player, n), this.emit(Vn, q({
8749
8756
  key: s[l],
8750
8757
  target: i.target,
8751
8758
  isPress: n
8752
8759
  }, this.keyCodeMap[s[l]]));
8753
8760
  }
8754
- il(i), i.stopPropagation();
8761
+ nl(i), i.stopPropagation();
8755
8762
  break;
8756
8763
  }
8757
8764
  }
@@ -8793,13 +8800,13 @@ var dn = /* @__PURE__ */ function(a) {
8793
8800
  }
8794
8801
  }]), r;
8795
8802
  }(He);
8796
- function nl() {
8803
+ function rl() {
8797
8804
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">
8798
8805
  <path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>
8799
8806
  </svg>
8800
8807
  `, "image/svg+xml").firstChild;
8801
8808
  }
8802
- var rl = /* @__PURE__ */ function(a) {
8809
+ var sl = /* @__PURE__ */ function(a) {
8803
8810
  A(r, a);
8804
8811
  var o = D(r);
8805
8812
  function r() {
@@ -8809,7 +8816,7 @@ var rl = /* @__PURE__ */ function(a) {
8809
8816
  key: "registerIcons",
8810
8817
  value: function() {
8811
8818
  return {
8812
- loadingIcon: nl
8819
+ loadingIcon: rl
8813
8820
  };
8814
8821
  }
8815
8822
  }, {
@@ -8838,7 +8845,7 @@ var rl = /* @__PURE__ */ function(a) {
8838
8845
  };
8839
8846
  }
8840
8847
  }]), r;
8841
- }(W), sl = [{
8848
+ }(W), ol = [{
8842
8849
  tag: "xg-cache",
8843
8850
  className: "xgplayer-progress-cache",
8844
8851
  styleKey: "cachedColor"
@@ -8846,7 +8853,7 @@ var rl = /* @__PURE__ */ function(a) {
8846
8853
  tag: "xg-played",
8847
8854
  className: "xgplayer-progress-played",
8848
8855
  styleKey: "playedColor"
8849
- }], ol = /* @__PURE__ */ function() {
8856
+ }], al = /* @__PURE__ */ function() {
8850
8857
  function a(o) {
8851
8858
  x(this, a), this.fragments = o.fragments || [], this.fragments.length === 0 && this.fragments.push({
8852
8859
  percent: 1
@@ -9033,7 +9040,7 @@ var rl = /* @__PURE__ */ function(a) {
9033
9040
  var l = f.createDom("xg-inner", "", {
9034
9041
  style: t ? "background:".concat(t, "; flex: ").concat(s.percent) : "flex: ".concat(s.percent)
9035
9042
  }, "".concat(s.isFocus ? n : "", " xgplayer-progress-inner ").concat(i));
9036
- return r.root.appendChild(l), sl.forEach(function(u) {
9043
+ return r.root.appendChild(l), ol.forEach(function(u) {
9037
9044
  l.appendChild(f.createDom(u.tag, "", {
9038
9045
  style: u.styleKey ? "background: ".concat(r.style[u.styleKey], "; width:0;") : "width:0;"
9039
9046
  }, u.className));
@@ -9046,16 +9053,16 @@ var rl = /* @__PURE__ */ function(a) {
9046
9053
  return this.root;
9047
9054
  }
9048
9055
  }]), a;
9049
- }(), gn = {
9056
+ }(), pn = {
9050
9057
  POINT: "inner-focus-point",
9051
9058
  HIGHLIGHT: "inner-focus-highlight"
9052
- }, al = /* @__PURE__ */ function(a) {
9059
+ }, ll = /* @__PURE__ */ function(a) {
9053
9060
  A(r, a);
9054
9061
  var o = D(r);
9055
9062
  function r(t) {
9056
9063
  var e;
9057
- return x(this, r), e = o.call(this, t), _(v(e), "onMoveOnly", function(i, n) {
9058
- var s = v(e), l = s.pos, u = s.config, c = s.player, h = n;
9064
+ return x(this, r), e = o.call(this, t), _(m(e), "onMoveOnly", function(i, n) {
9065
+ var s = m(e), l = s.pos, u = s.config, c = s.player, h = n;
9059
9066
  if (i) {
9060
9067
  f.event(i);
9061
9068
  var d = f.getEventPos(i, c.zoom), p = c.rotateDeg === 90 ? d.clientY : d.clientX;
@@ -9064,18 +9071,18 @@ var rl = /* @__PURE__ */ function(a) {
9064
9071
  l.moving = !0, l.x = p, h = e.computeTime(i, p);
9065
9072
  }
9066
9073
  e.triggerCallbacks("dragmove", h, i), e._updateInnerFocus(h);
9067
- }), _(v(e), "onBodyClick", function(i) {
9074
+ }), _(m(e), "onBodyClick", function(i) {
9068
9075
  e.pos.isLocked && (e.pos.isLocked = !1, i.preventDefault(), i.stopPropagation());
9069
- }), _(v(e), "_mouseDownHandler", function(i, n) {
9076
+ }), _(m(e), "_mouseDownHandler", function(i, n) {
9070
9077
  e._state.time = n.currentTime, e.updateWidth(n.currentTime, n.seekTime, n.percent, 0), e._updateInnerFocus(n);
9071
- }), _(v(e), "_mouseUpHandler", function(i, n) {
9072
- var s = v(e), l = s.pos;
9078
+ }), _(m(e), "_mouseUpHandler", function(i, n) {
9079
+ var s = m(e), l = s.pos;
9073
9080
  l.moving && e.updateWidth(n.currentTime, n.seekTime, n.percent, 2);
9074
- }), _(v(e), "_mouseMoveHandler", function(i, n) {
9075
- var s = v(e), l = s._state, u = s.pos, c = s.config, h = s.player;
9081
+ }), _(m(e), "_mouseMoveHandler", function(i, n) {
9082
+ var s = m(e), l = s._state, u = s.pos, c = s.config, h = s.player;
9076
9083
  l.time < n.currentTime ? n.forward = !0 : n.forward = !1, l.time = n.currentTime, u.isDown && !u.moving && (u.moving = !0, c.isPauseMoving && h.pause(), e.triggerCallbacks("dragstart", n, i), e.emitUserAction("drag", "dragstart", n)), e.updateWidth(n.currentTime, n.seekTime, n.percent, 1), e.triggerCallbacks("dragmove", n, i), e._updateInnerFocus(n);
9077
- }), _(v(e), "onMouseDown", function(i) {
9078
- var n = v(e), s = n._state, l = n.player, u = n.pos, c = n.config, h = n.playerConfig, d = f.getEventPos(i, l.zoom), p = l.rotateDeg === 90 ? d.clientY : d.clientX;
9084
+ }), _(m(e), "onMouseDown", function(i) {
9085
+ var n = m(e), s = n._state, l = n.player, u = n.pos, c = n.config, h = n.playerConfig, d = f.getEventPos(i, l.zoom), p = l.rotateDeg === 90 ? d.clientY : d.clientX;
9079
9086
  if (!(l.isMini || c.closeMoveSeek || !h.allowSeekAfterEnded && l.ended)) {
9080
9087
  if (!l.duration && !l.isPlaying) {
9081
9088
  l.play();
@@ -9086,20 +9093,20 @@ var rl = /* @__PURE__ */ function(a) {
9086
9093
  }), e.isProgressMoving = !0, f.addClass(e.progressBtn, "active");
9087
9094
  var g = e.computeTime(i, p);
9088
9095
  g.prePlayTime = s.prePlayTime, e._mouseDownHandlerHook(i, g);
9089
- var m = i.type;
9090
- return m === "touchstart" ? (e.root.addEventListener("touchmove", e.onMouseMove), e.root.addEventListener("touchend", e.onMouseUp), e.root.addEventListener("touchcancel", e.onMouseUp)) : (e.unbind("mousemove", e.onMoveOnly), document.addEventListener("mousemove", e.onMouseMove, !1), document.addEventListener("mouseup", e.onMouseUp, !1)), !0;
9096
+ var v = i.type;
9097
+ return v === "touchstart" ? (e.root.addEventListener("touchmove", e.onMouseMove), e.root.addEventListener("touchend", e.onMouseUp), e.root.addEventListener("touchcancel", e.onMouseUp)) : (e.unbind("mousemove", e.onMoveOnly), document.addEventListener("mousemove", e.onMouseMove, !1), document.addEventListener("mouseup", e.onMouseUp, !1)), !0;
9091
9098
  }
9092
- }), _(v(e), "onMouseUp", function(i) {
9093
- var n = v(e), s = n.player, l = n.config, u = n.pos, c = n.playerConfig, h = n._state;
9099
+ }), _(m(e), "onMouseUp", function(i) {
9100
+ var n = m(e), s = n.player, l = n.config, u = n.pos, c = n.playerConfig, h = n._state;
9094
9101
  i.stopPropagation(), i.preventDefault(), f.checkIsFunction(c.enableSwipeHandler) && c.enableSwipeHandler(), f.checkIsFunction(l.onMoveEnd) && l.onMoveEnd(), f.event(i), f.removeClass(e.progressBtn, "active");
9095
9102
  var d = e.computeTime(i, u.x);
9096
9103
  d.prePlayTime = h.prePlayTime, u.moving ? (e.triggerCallbacks("dragend", d, i), e.emitUserAction("drag", "dragend", d)) : (e.triggerCallbacks("click", d, i), e.emitUserAction("click", "click", d)), e._mouseUpHandlerHook(i, d), u.moving = !1, u.isDown = !1, u.x = 0, u.y = 0, u.isLocked = !0, h.prePlayTime = 0, h.time = 0;
9097
9104
  var p = i.type;
9098
- p === "touchend" || p === "touchcancel" ? (e.root.removeEventListener("touchmove", e.onMouseMove), e.root.removeEventListener("touchend", e.onMouseUp), e.root.removeEventListener("touchcancel", e.onMouseUp), e.blur()) : (document.removeEventListener("mousemove", e.onMouseMove, !1), document.removeEventListener("mouseup", e.onMouseUp, !1), u.isEnter ? c.isMobileSimulateMode !== "mobile" && e.bind("mousemove", e.onMoveOnly) : e.onMouseLeave(i)), f.setTimeout(v(e), function() {
9105
+ p === "touchend" || p === "touchcancel" ? (e.root.removeEventListener("touchmove", e.onMouseMove), e.root.removeEventListener("touchend", e.onMouseUp), e.root.removeEventListener("touchcancel", e.onMouseUp), e.blur()) : (document.removeEventListener("mousemove", e.onMouseMove, !1), document.removeEventListener("mouseup", e.onMouseUp, !1), u.isEnter ? c.isMobileSimulateMode !== "mobile" && e.bind("mousemove", e.onMoveOnly) : e.onMouseLeave(i)), f.setTimeout(m(e), function() {
9099
9106
  e.resetSeekState();
9100
9107
  }, 1), s.focus();
9101
- }), _(v(e), "onMouseMove", function(i) {
9102
- var n = v(e), s = n._state, l = n.pos, u = n.player, c = n.config;
9108
+ }), _(m(e), "onMouseMove", function(i) {
9109
+ var n = m(e), s = n._state, l = n.pos, u = n.player, c = n.config;
9103
9110
  f.checkTouchSupport() && i.preventDefault(), f.event(i);
9104
9111
  var h = f.getEventPos(i, u.zoom), d = u.rotateDeg === 90 ? h.clientY : h.clientX, p = Math.abs(l.x - d);
9105
9112
  if (!(l.moving && p < c.miniMoveStep || !l.moving && p < c.miniStartStep)) {
@@ -9107,20 +9114,20 @@ var rl = /* @__PURE__ */ function(a) {
9107
9114
  var g = e.computeTime(i, d);
9108
9115
  g.prePlayTime = s.prePlayTime, e._mouseMoveHandlerHook(i, g);
9109
9116
  }
9110
- }), _(v(e), "onMouseOut", function(i) {
9117
+ }), _(m(e), "onMouseOut", function(i) {
9111
9118
  e.triggerCallbacks("mouseout", null, i);
9112
- }), _(v(e), "onMouseOver", function(i) {
9119
+ }), _(m(e), "onMouseOver", function(i) {
9113
9120
  e.triggerCallbacks("mouseover", null, i);
9114
- }), _(v(e), "onMouseEnter", function(i) {
9115
- var n = v(e), s = n.player, l = n.pos;
9121
+ }), _(m(e), "onMouseEnter", function(i) {
9122
+ var n = m(e), s = n.player, l = n.pos;
9116
9123
  if (!(l.isDown || l.isEnter || s.isMini || !s.config.allowSeekAfterEnded && s.ended)) {
9117
9124
  l.isEnter = !0, e.bind("mousemove", e.onMoveOnly), e.bind("mouseleave", e.onMouseLeave), f.event(i);
9118
9125
  var u = f.getEventPos(i, s.zoom), c = s.rotateDeg === 90 ? u.clientY : u.clientX, h = e.computeTime(i, c);
9119
9126
  e.triggerCallbacks("mouseenter", h, i), e.focus();
9120
9127
  }
9121
- }), _(v(e), "onMouseLeave", function(i) {
9128
+ }), _(m(e), "onMouseLeave", function(i) {
9122
9129
  e.triggerCallbacks("mouseleave", null, i), e.unlock(), e._updateInnerFocus(null);
9123
- }), _(v(e), "onVideoResize", function() {
9130
+ }), _(m(e), "onVideoResize", function() {
9124
9131
  var i = e.pos, n = i.x, s = i.isDown, l = i.isEnter;
9125
9132
  if (l && !s) {
9126
9133
  var u = e.computeTime(null, n);
@@ -9179,7 +9186,7 @@ var rl = /* @__PURE__ */ function(a) {
9179
9186
  e.emitUserAction("fragment_focus", "fragment_focus", u);
9180
9187
  }
9181
9188
  });
9182
- 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) {
9189
+ this.innerList ? this.innerList.reset(s) : (this.innerList = new al(s), this.outer.insertBefore(this.innerList.render(), this.outer.children[0]), ["findHightLight", "unHightLight", "setHightLight", "findFragment"].map(function(l) {
9183
9190
  e[l] = e.innerList[l].bind(e.innerList);
9184
9191
  }));
9185
9192
  }
@@ -9213,7 +9220,7 @@ var rl = /* @__PURE__ */ function(a) {
9213
9220
  e.onTimeupdate();
9214
9221
  }), this.on(xe, function() {
9215
9222
  e.onTimeupdate(), e.onCacheUpdate();
9216
- }), this.on(On, function() {
9223
+ }), this.on(Rn, function() {
9217
9224
  e.onCacheUpdate();
9218
9225
  }), this.on($e, function() {
9219
9226
  e.onCacheUpdate(!0), e.onTimeupdate(!0), e._state.now = 0;
@@ -9320,16 +9327,16 @@ var rl = /* @__PURE__ */ function(a) {
9320
9327
  value: function(e, i) {
9321
9328
  var n = this.player, s = this.root.getBoundingClientRect(), l = s.width, u = s.height, c = s.top, h = s.left, d, p, g = i;
9322
9329
  n.rotateDeg === 90 ? (d = u, p = c) : (d = l, p = h);
9323
- var m = g - p;
9324
- m = m > d ? d : m < 0 ? 0 : m;
9325
- var y = m / d;
9330
+ var v = g - p;
9331
+ v = v > d ? d : v < 0 ? 0 : v;
9332
+ var y = v / d;
9326
9333
  y = y < 0 ? 0 : y > 1 ? 1 : y;
9327
9334
  var C = parseInt(y * this.offsetDuration * 1e3, 10) / 1e3, b = f.getCurrentTimeByOffset(C, n.timeSegments);
9328
9335
  return {
9329
9336
  percent: y,
9330
9337
  currentTime: C,
9331
9338
  seekTime: b,
9332
- offset: m,
9339
+ offset: v,
9333
9340
  width: d,
9334
9341
  left: p,
9335
9342
  e
@@ -9442,7 +9449,7 @@ var rl = /* @__PURE__ */ function(a) {
9442
9449
  fragments: [{
9443
9450
  percent: 1
9444
9451
  }],
9445
- fragFocusClass: gn.POINT,
9452
+ fragFocusClass: pn.POINT,
9446
9453
  fragClass: "",
9447
9454
  fragAutoFocus: !1,
9448
9455
  miniMoveStep: 5,
@@ -9457,7 +9464,7 @@ var rl = /* @__PURE__ */ function(a) {
9457
9464
  }, {
9458
9465
  key: "FRAGMENT_FOCUS_CLASS",
9459
9466
  get: function() {
9460
- return gn;
9467
+ return pn;
9461
9468
  }
9462
9469
  }]), r;
9463
9470
  }(W), Ye = /* @__PURE__ */ function(a) {
@@ -9468,11 +9475,11 @@ var rl = /* @__PURE__ */ function(a) {
9468
9475
  x(this, r);
9469
9476
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
9470
9477
  i[n] = arguments[n];
9471
- return t = o.call.apply(o, [this].concat(i)), _(v(t), "_onMouseenter", function(s) {
9478
+ return t = o.call.apply(o, [this].concat(i)), _(m(t), "_onMouseenter", function(s) {
9472
9479
  t.emit("icon_mouseenter", {
9473
9480
  pluginName: t.pluginName
9474
9481
  });
9475
- }), _(v(t), "_onMouseLeave", function(s) {
9482
+ }), _(m(t), "_onMouseLeave", function(s) {
9476
9483
  t.emit("icon_mouseleave", {
9477
9484
  pluginName: t.pluginName
9478
9485
  });
@@ -9489,7 +9496,7 @@ var rl = /* @__PURE__ */ function(a) {
9489
9496
  this.unbind("mouseenter", this._onMouseenter), this.unbind("mouseleave", this._onMouseLeave);
9490
9497
  }
9491
9498
  }]), r;
9492
- }(W), ll = /* @__PURE__ */ function(a) {
9499
+ }(W), ul = /* @__PURE__ */ function(a) {
9493
9500
  A(r, a);
9494
9501
  var o = D(r);
9495
9502
  function r() {
@@ -9577,14 +9584,14 @@ var rl = /* @__PURE__ */ function(a) {
9577
9584
  }
9578
9585
  }]), r;
9579
9586
  }(Ye);
9580
- function ul() {
9587
+ function cl() {
9581
9588
  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">
9582
9589
  <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
9583
9590
  <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>
9584
9591
  </g>
9585
9592
  </svg>`, "image/svg+xml").firstChild;
9586
9593
  }
9587
- var cl = /* @__PURE__ */ function(a) {
9594
+ var fl = /* @__PURE__ */ function(a) {
9588
9595
  A(r, a);
9589
9596
  var o = D(r);
9590
9597
  function r() {
@@ -9603,7 +9610,7 @@ var cl = /* @__PURE__ */ function(a) {
9603
9610
  value: function() {
9604
9611
  return {
9605
9612
  screenBack: {
9606
- icon: ul,
9613
+ icon: cl,
9607
9614
  class: "xg-fullscreen-back"
9608
9615
  }
9609
9616
  };
@@ -9645,19 +9652,19 @@ var cl = /* @__PURE__ */ function(a) {
9645
9652
  }
9646
9653
  }]), r;
9647
9654
  }(W);
9648
- function fl() {
9655
+ function hl() {
9649
9656
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
9650
9657
  <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>
9651
9658
  </svg>
9652
9659
  `, "image/svg+xml").firstChild;
9653
9660
  }
9654
- function hl() {
9661
+ function dl() {
9655
9662
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
9656
9663
  <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>
9657
9664
  </svg>
9658
9665
  `, "image/svg+xml").firstChild;
9659
9666
  }
9660
- var dl = /* @__PURE__ */ function(a) {
9667
+ var gl = /* @__PURE__ */ function(a) {
9661
9668
  A(r, a);
9662
9669
  var o = D(r);
9663
9670
  function r() {
@@ -9665,7 +9672,7 @@ var dl = /* @__PURE__ */ function(a) {
9665
9672
  x(this, r);
9666
9673
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
9667
9674
  i[n] = arguments[n];
9668
- return t = o.call.apply(o, [this].concat(i)), _(v(t), "_onOrientationChange", function(s) {
9675
+ return t = o.call.apply(o, [this].concat(i)), _(m(t), "_onOrientationChange", function(s) {
9669
9676
  t.player.fullscreen && t.config.rotateFullscreen && (window.orientation === 90 || window.orientation === -90 ? t.player.setRotateDeg(0) : t.player.setRotateDeg(90));
9670
9677
  }), t;
9671
9678
  }
@@ -9692,7 +9699,7 @@ var dl = /* @__PURE__ */ function(a) {
9692
9699
  var u = e.find(".xg-tips");
9693
9700
  u && e.changeLangTextKey(u, l ? e.i18nKeys.EXITFULLSCREEN_TIPS : e.i18nKeys.FULLSCREEN_TIPS), e.animate(l);
9694
9701
  }), this.config.needBackIcon && (this.topBackIcon = this.player.registerPlugin({
9695
- plugin: cl,
9702
+ plugin: fl,
9696
9703
  options: {
9697
9704
  config: {
9698
9705
  onClick: function(u) {
@@ -9708,11 +9715,11 @@ var dl = /* @__PURE__ */ function(a) {
9708
9715
  value: function() {
9709
9716
  return {
9710
9717
  fullscreen: {
9711
- icon: fl,
9718
+ icon: hl,
9712
9719
  class: "xg-get-fullscreen"
9713
9720
  },
9714
9721
  exitFullscreen: {
9715
- icon: hl,
9722
+ icon: dl,
9716
9723
  class: "xg-exit-fullscreen"
9717
9724
  }
9718
9725
  };
@@ -9793,7 +9800,7 @@ var dl = /* @__PURE__ */ function(a) {
9793
9800
  };
9794
9801
  }
9795
9802
  }]), r;
9796
- }(Ye), gl = /* @__PURE__ */ function(a) {
9803
+ }(Ye), pl = /* @__PURE__ */ function(a) {
9797
9804
  A(r, a);
9798
9805
  var o = D(r);
9799
9806
  function r(t) {
@@ -9943,7 +9950,7 @@ var dl = /* @__PURE__ */ function(a) {
9943
9950
  };
9944
9951
  }
9945
9952
  }]), r;
9946
- }(W), pl = /* @__PURE__ */ function(a) {
9953
+ }(W), vl = /* @__PURE__ */ function(a) {
9947
9954
  A(r, a);
9948
9955
  var o = D(r);
9949
9956
  function r() {
@@ -9951,20 +9958,20 @@ var dl = /* @__PURE__ */ function(a) {
9951
9958
  x(this, r);
9952
9959
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
9953
9960
  i[n] = arguments[n];
9954
- return t = o.call.apply(o, [this].concat(i)), _(v(t), "_onDurationChange", function() {
9961
+ return t = o.call.apply(o, [this].concat(i)), _(m(t), "_onDurationChange", function() {
9955
9962
  t.updateSegments();
9956
9963
  var s = t.player, l = s.currentTime, u = s.timeSegments;
9957
9964
  if (t._checkIfEnabled(u)) {
9958
9965
  var c = f.getIndexByTime(l, u), h = f.getOffsetCurrentTime(l, u, c);
9959
9966
  t.player.offsetCurrentTime = h, t.changeIndex(c, u);
9960
9967
  }
9961
- }), _(v(t), "_onLoadedData", function() {
9968
+ }), _(m(t), "_onLoadedData", function() {
9962
9969
  var s = t.player.timeSegments;
9963
9970
  if (t._checkIfEnabled(s)) {
9964
9971
  var l = f.getOffsetCurrentTime(0, s);
9965
9972
  t.player.offsetCurrentTime = l, t.changeIndex(0, s), t.curPos.start > 0 && (t.player.currentTime = t.curPos.start);
9966
9973
  }
9967
- }), _(v(t), "_onTimeupdate", function() {
9974
+ }), _(m(t), "_onTimeupdate", function() {
9968
9975
  var s = t.player, l = s.currentTime, u = s.timeSegments;
9969
9976
  if (t._checkIfEnabled(u)) {
9970
9977
  var c = u.length;
@@ -9973,11 +9980,11 @@ var dl = /* @__PURE__ */ function(a) {
9973
9980
  h !== t.curIndex && t.changeIndex(h, u);
9974
9981
  var d = f.getOffsetCurrentTime(l, u, h);
9975
9982
  if (t.player.offsetCurrentTime = d, !!t.curPos) {
9976
- var p = t.curPos, g = p.start, m = p.end;
9977
- l < g ? t.player.currentTime = g : l > m && h >= c - 1 && t.player.pause();
9983
+ var p = t.curPos, g = p.start, v = p.end;
9984
+ l < g ? t.player.currentTime = g : l > v && h >= c - 1 && t.player.pause();
9978
9985
  }
9979
9986
  }
9980
- }), _(v(t), "_onSeeking", function() {
9987
+ }), _(m(t), "_onSeeking", function() {
9981
9988
  var s = t.player, l = s.currentTime, u = s.timeSegments;
9982
9989
  if (t._checkIfEnabled(u))
9983
9990
  if (l < u[0].start)
@@ -9991,7 +9998,7 @@ var dl = /* @__PURE__ */ function(a) {
9991
9998
  h >= 0 && (t.player.currentTime = h);
9992
9999
  }
9993
10000
  }
9994
- }), _(v(t), "_onPlay", function() {
10001
+ }), _(m(t), "_onPlay", function() {
9995
10002
  var s = t.player, l = s.currentTime, u = s.timeSegments;
9996
10003
  t._checkIfEnabled(u) && l >= u[u.length - 1].end && (t.player.currentTime = u[0].start);
9997
10004
  }), t;
@@ -10081,28 +10088,28 @@ var dl = /* @__PURE__ */ function(a) {
10081
10088
  }
10082
10089
  }]), r;
10083
10090
  }(He);
10084
- function vl() {
10091
+ function ml() {
10085
10092
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
10086
10093
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
10087
10094
  <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>
10088
10095
  </svg>
10089
10096
  `, "image/svg+xml").firstChild;
10090
10097
  }
10091
- function ml() {
10098
+ function yl() {
10092
10099
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
10093
10100
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
10094
10101
  <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>
10095
10102
  </svg>
10096
10103
  `, "image/svg+xml").firstChild;
10097
10104
  }
10098
- function yl() {
10105
+ function _l() {
10099
10106
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
10100
10107
  <path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
10101
10108
  <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>
10102
10109
  </svg>
10103
10110
  `, "image/svg+xml").firstChild;
10104
10111
  }
10105
- var _l = /* @__PURE__ */ function(a) {
10112
+ var kl = /* @__PURE__ */ function(a) {
10106
10113
  A(r, a);
10107
10114
  var o = D(r);
10108
10115
  function r() {
@@ -10110,35 +10117,35 @@ var _l = /* @__PURE__ */ function(a) {
10110
10117
  x(this, r);
10111
10118
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
10112
10119
  i[n] = arguments[n];
10113
- return t = o.call.apply(o, [this].concat(i)), _(v(t), "onBarMousedown", function(s) {
10114
- var l = v(t), u = l.player, c = t.find(".xgplayer-bar");
10120
+ return t = o.call.apply(o, [this].concat(i)), _(m(t), "onBarMousedown", function(s) {
10121
+ var l = m(t), u = l.player, c = t.find(".xgplayer-bar");
10115
10122
  f.event(s);
10116
10123
  var h = c.getBoundingClientRect(), d = f.getEventPos(s, u.zoom), p = h.height - (d.clientY - h.top);
10117
10124
  if (d.h = p, d.barH = h.height, t.pos = d, !(p < -2))
10118
10125
  return t.updateVolumePos(p, s), document.addEventListener("mouseup", t.onBarMouseUp), t._d.isStart = !0, !1;
10119
- }), _(v(t), "onBarMouseMove", function(s) {
10120
- var l = v(t), u = l._d;
10126
+ }), _(m(t), "onBarMouseMove", function(s) {
10127
+ var l = m(t), u = l._d;
10121
10128
  if (u.isStart) {
10122
- var c = v(t), h = c.pos, d = c.player;
10129
+ var c = m(t), h = c.pos, d = c.player;
10123
10130
  s.preventDefault(), s.stopPropagation(), f.event(s);
10124
10131
  var p = f.getEventPos(s, d.zoom);
10125
10132
  u.isMoving = !0;
10126
10133
  var g = h.h - p.clientY + h.clientY;
10127
10134
  g > h.barH || t.updateVolumePos(g, s);
10128
10135
  }
10129
- }), _(v(t), "onBarMouseUp", function(s) {
10136
+ }), _(m(t), "onBarMouseUp", function(s) {
10130
10137
  f.event(s), document.removeEventListener("mouseup", t.onBarMouseUp);
10131
- var l = v(t), u = l._d;
10138
+ var l = m(t), u = l._d;
10132
10139
  u.isStart = !1, u.isMoving = !1;
10133
- }), _(v(t), "onMouseenter", function(s) {
10140
+ }), _(m(t), "onMouseenter", function(s) {
10134
10141
  t._d.isActive = !0, t.focus(), t.emit("icon_mouseenter", {
10135
10142
  pluginName: t.pluginName
10136
10143
  });
10137
- }), _(v(t), "onMouseleave", function(s) {
10144
+ }), _(m(t), "onMouseleave", function(s) {
10138
10145
  t._d.isActive = !1, t.unFocus(100, !1, s), t.emit("icon_mouseleave", {
10139
10146
  pluginName: t.pluginName
10140
10147
  });
10141
- }), _(v(t), "onVolumeChange", function(s) {
10148
+ }), _(m(t), "onVolumeChange", function(s) {
10142
10149
  if (t.player) {
10143
10150
  var l = t.player, u = l.muted, c = l.volume;
10144
10151
  t._d.isMoving || (t.find(".xgplayer-drag").style.height = u || c === 0 ? "4px" : "".concat(c * 100, "%"), t.config.showValueLabel && t.updateVolumeValue()), t.animate(u, c);
@@ -10150,15 +10157,15 @@ var _l = /* @__PURE__ */ function(a) {
10150
10157
  value: function() {
10151
10158
  return {
10152
10159
  volumeSmall: {
10153
- icon: ml,
10160
+ icon: yl,
10154
10161
  class: "xg-volume-small"
10155
10162
  },
10156
10163
  volumeLarge: {
10157
- icon: vl,
10164
+ icon: ml,
10158
10165
  class: "xg-volume"
10159
10166
  },
10160
10167
  volumeMuted: {
10161
- icon: yl,
10168
+ icon: _l,
10162
10169
  class: "xg-volume-mute"
10163
10170
  }
10164
10171
  };
@@ -10180,7 +10187,7 @@ var _l = /* @__PURE__ */ function(a) {
10180
10187
  pre: function(u) {
10181
10188
  u.preventDefault(), u.stopPropagation();
10182
10189
  }
10183
- }), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), B.device !== "mobile" && this.playerConfig.isMobileSimulateMode !== "mobile" && (this.bind("mouseenter", this._onMouseenterHandler), this.bind(["blur", "mouseleave"], this._onMouseleaveHandler), this.bind(".xgplayer-slider", "mousedown", this.onBarMousedown), this.bind(".xgplayer-slider", "mousemove", this.onBarMouseMove), this.bind(".xgplayer-slider", "mouseup", this.onBarMouseUp)), this.bind(".xgplayer-icon", ["touchend", "click"], this.changeMutedHandler), this.on(An, this.onVolumeChange), this.once(Ie, this.onVolumeChange), f.typeOf(s) !== "Number" && (this.player.volume = this.config.default), this.onVolumeChange();
10190
+ }), this._onMouseenterHandler = this.hook("mouseenter", this.onMouseenter), this._onMouseleaveHandler = this.hook("mouseleave", this.onMouseleave), B.device !== "mobile" && this.playerConfig.isMobileSimulateMode !== "mobile" && (this.bind("mouseenter", this._onMouseenterHandler), this.bind(["blur", "mouseleave"], this._onMouseleaveHandler), this.bind(".xgplayer-slider", "mousedown", this.onBarMousedown), this.bind(".xgplayer-slider", "mousemove", this.onBarMouseMove), this.bind(".xgplayer-slider", "mouseup", this.onBarMouseUp)), this.bind(".xgplayer-icon", ["touchend", "click"], this.changeMutedHandler), this.on(Dn, this.onVolumeChange), this.once(Ie, this.onVolumeChange), f.typeOf(s) !== "Number" && (this.player.volume = this.config.default), this.onVolumeChange();
10184
10191
  }
10185
10192
  }
10186
10193
  }, {
@@ -10297,7 +10304,7 @@ var _l = /* @__PURE__ */ function(a) {
10297
10304
  }
10298
10305
  }]), r;
10299
10306
  }(W);
10300
- function kl() {
10307
+ function Cl() {
10301
10308
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="-4 -6 40 40" fill="none">
10302
10309
  <g clip-path="url(#clip0)">
10303
10310
  <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"/>
@@ -10311,7 +10318,7 @@ function kl() {
10311
10318
  </svg>
10312
10319
  `, "image/svg+xml").firstChild;
10313
10320
  }
10314
- var Cl = /* @__PURE__ */ function(a) {
10321
+ var wl = /* @__PURE__ */ function(a) {
10315
10322
  A(r, a);
10316
10323
  var o = D(r);
10317
10324
  function r(t) {
@@ -10349,13 +10356,13 @@ var Cl = /* @__PURE__ */ function(a) {
10349
10356
  this.player.videoRotateDeg = e;
10350
10357
  return;
10351
10358
  }
10352
- var n = this.player, s = this.rootWidth, l = this.rootHeight, u = n.root, c = n.innerContainer, h = n.media, d = u.offsetWidth, p = c && i ? c.offsetHeight : u.offsetHeight, g = s, m = l, y = 0, C = 0;
10353
- (e === 0.75 || e === 0.25) && (g = "".concat(p, "px"), m = "".concat(d, "px"), y = -(p - d) / 2, C = -(d - p) / 2);
10359
+ var n = this.player, s = this.rootWidth, l = this.rootHeight, u = n.root, c = n.innerContainer, h = n.media, d = u.offsetWidth, p = c && i ? c.offsetHeight : u.offsetHeight, g = s, v = l, y = 0, C = 0;
10360
+ (e === 0.75 || e === 0.25) && (g = "".concat(p, "px"), v = "".concat(d, "px"), y = -(p - d) / 2, C = -(d - p) / 2);
10354
10361
  var b = "translate(".concat(y, "px,").concat(C, "px) rotate(").concat(e, "turn)"), w = {
10355
10362
  transformOrigin: "center center",
10356
10363
  transform: b,
10357
10364
  webKitTransform: b,
10358
- height: m,
10365
+ height: v,
10359
10366
  width: g
10360
10367
  }, L = i ? h : u, M = i ? n.getPlugin("poster") : null;
10361
10368
  Object.keys(w).map(function(U) {
@@ -10368,13 +10375,13 @@ var Cl = /* @__PURE__ */ function(a) {
10368
10375
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !1, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1, s = this.player;
10369
10376
  this.rotateDeg || (this.rotateDeg = 0);
10370
10377
  var l = e ? 1 : -1;
10371
- this.rotateDeg = (this.rotateDeg + 1 + l * 0.25 * n) % 1, this.updateRotateDeg(this.rotateDeg, i), s.emit(Hn, this.rotateDeg * 360);
10378
+ this.rotateDeg = (this.rotateDeg + 1 + l * 0.25 * n) % 1, this.updateRotateDeg(this.rotateDeg, i), s.emit(Un, this.rotateDeg * 360);
10372
10379
  }
10373
10380
  }, {
10374
10381
  key: "registerIcons",
10375
10382
  value: function() {
10376
10383
  return {
10377
- rotate: kl
10384
+ rotate: Cl
10378
10385
  };
10379
10386
  }
10380
10387
  }, {
@@ -10407,14 +10414,14 @@ var Cl = /* @__PURE__ */ function(a) {
10407
10414
  }
10408
10415
  }]), r;
10409
10416
  }(Ye);
10410
- function wl() {
10417
+ function bl() {
10411
10418
  return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
10412
10419
  <path fill-rule="evenodd" clip-rule="evenodd"
10413
10420
  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"
10414
10421
  fill="white" />
10415
10422
  </svg>`, "image/svg+xml").firstChild;
10416
10423
  }
10417
- function bl() {
10424
+ function Tl() {
10418
10425
  return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
10419
10426
  <path fill-rule="evenodd" clip-rule="evenodd"
10420
10427
  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"
@@ -10428,7 +10435,7 @@ var Je = {
10428
10435
  PIP: "picture-in-picture",
10429
10436
  INLINE: "inline",
10430
10437
  FULLSCREEN: "fullscreen"
10431
- }, Tl = /* @__PURE__ */ function(a) {
10438
+ }, El = /* @__PURE__ */ function(a) {
10432
10439
  A(r, a);
10433
10440
  var o = D(r);
10434
10441
  function r() {
@@ -10436,7 +10443,7 @@ var Je = {
10436
10443
  x(this, r);
10437
10444
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
10438
10445
  i[n] = arguments[n];
10439
- return t = o.call.apply(o, [this].concat(i)), _(v(t), "switchPIP", function(s) {
10446
+ return t = o.call.apply(o, [this].concat(i)), _(m(t), "switchPIP", function(s) {
10440
10447
  if (!t.isPIPAvailable())
10441
10448
  return !1;
10442
10449
  s.stopPropagation && s.stopPropagation(), t.isPip ? (t.exitPIP(), t.emitUserAction(s, "change_pip", {
@@ -10468,11 +10475,11 @@ var Je = {
10468
10475
  value: function() {
10469
10476
  return {
10470
10477
  pipIcon: {
10471
- icon: wl,
10478
+ icon: bl,
10472
10479
  class: "xg-get-pip"
10473
10480
  },
10474
10481
  pipIconExit: {
10475
- icon: bl,
10482
+ icon: Tl,
10476
10483
  class: "xg-exit-pip"
10477
10484
  }
10478
10485
  };
@@ -10534,7 +10541,7 @@ var Je = {
10534
10541
  documentPictureInPicture.requestWindow(u).then(function(h) {
10535
10542
  var d = s.docPiPNode, p = s.docPiPStyle;
10536
10543
  e.enterPIPCallback();
10537
- var g = d || i.root, m = g.parentElement, y = g.previousSibling, C = g.nextSibling;
10544
+ var g = d || i.root, v = g.parentElement, y = g.previousSibling, C = g.nextSibling;
10538
10545
  e.copyStyleIntoPiPWindow(h);
10539
10546
  var b = document.createElement("style");
10540
10547
  if (b.append("body{padding:0; margin:0;}"), p) {
@@ -10545,7 +10552,7 @@ var Je = {
10545
10552
  .xgplayer{width: 100%!important; height: 100%!important;}
10546
10553
  `);
10547
10554
  h.document.head.append(b), h.document.body.append(g), h.addEventListener("pagehide", function(L) {
10548
- m && (C ? m.insertBefore(g, C) : y ? m.insertBefore(g, y.nextSibling) : m.appendChild(g)), e.leavePIPCallback();
10555
+ v && (C ? v.insertBefore(g, C) : y ? v.insertBefore(g, y.nextSibling) : v.appendChild(g)), e.leavePIPCallback();
10549
10556
  }, {
10550
10557
  once: !0
10551
10558
  });
@@ -10631,19 +10638,19 @@ var Je = {
10631
10638
  }
10632
10639
  }]), r;
10633
10640
  }(Ye);
10634
- function El() {
10641
+ function Sl() {
10635
10642
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="40" viewBox="10 0 24 40">
10636
10643
  <path transform="scale(0.038 0.028)" d="M800 380v768h-128v-352l-320 320v-704l320 320v-352z"></path>
10637
10644
  </svg>
10638
10645
  `, "image/svg+xml").firstChild;
10639
10646
  }
10640
- var Sl = /* @__PURE__ */ function(a) {
10647
+ var xl = /* @__PURE__ */ function(a) {
10641
10648
  A(r, a);
10642
10649
  var o = D(r);
10643
10650
  function r(t) {
10644
10651
  var e;
10645
- return x(this, r), e = o.call(this, t), _(v(e), "playNext", function(i) {
10646
- var n = v(e), s = n.player;
10652
+ return x(this, r), e = o.call(this, t), _(m(e), "playNext", function(i) {
10653
+ var n = m(e), s = n.player;
10647
10654
  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));
10648
10655
  }), e.idx = -1, e;
10649
10656
  }
@@ -10656,7 +10663,7 @@ var Sl = /* @__PURE__ */ function(a) {
10656
10663
  key: "registerIcons",
10657
10664
  value: function() {
10658
10665
  return {
10659
- playNext: El
10666
+ playNext: Sl
10660
10667
  };
10661
10668
  }
10662
10669
  }, {
@@ -10705,15 +10712,15 @@ var Sl = /* @__PURE__ */ function(a) {
10705
10712
  };
10706
10713
  }
10707
10714
  }]), r;
10708
- }(W), Qn = { exports: {} };
10715
+ }(W), er = { exports: {} };
10709
10716
  (function(a, o) {
10710
10717
  (function(r, t) {
10711
10718
  a.exports = t();
10712
- })(vo, function() {
10719
+ })(mo, function() {
10713
10720
  return function r(t, e, i) {
10714
10721
  var n = window, s = "application/octet-stream", l = i || s, u = t, c = !e && !i && u, h = document.createElement("a"), d = function(R) {
10715
10722
  return String(R);
10716
- }, p = n.Blob || n.MozBlob || n.WebKitBlob || d, g = e || "download", m, y;
10723
+ }, p = n.Blob || n.MozBlob || n.WebKitBlob || d, g = e || "download", v, y;
10717
10724
  if (p = p.call ? p.bind(n) : Blob, String(this) === "true" && (u = [u, l], l = u[0], u = u[1]), c && c.length < 2048 && (g = c.split("/").pop().split("?")[0], h.href = c, h.href.indexOf(c) !== -1)) {
10718
10725
  var C = new XMLHttpRequest();
10719
10726
  return C.open("GET", c, !0), C.responseType = "blob", C.onload = function(R) {
@@ -10736,7 +10743,7 @@ var Sl = /* @__PURE__ */ function(a) {
10736
10743
  w[b] = u.charCodeAt(b);
10737
10744
  u = new p([w], { type: l });
10738
10745
  }
10739
- m = u instanceof p ? u : new p([u], { type: l });
10746
+ v = u instanceof p ? u : new p([u], { type: l });
10740
10747
  function M(R) {
10741
10748
  var te = R.split(/[:;,]/), J = te[1], z = te[2] == "base64" ? atob : decodeURIComponent, ne = z(te.pop()), ue = ne.length, ce = 0, we = new Uint8Array(ue);
10742
10749
  for (ce; ce < ue; ++ce)
@@ -10760,27 +10767,27 @@ Use Save As... to download, then click back to return to this page.`) && (locati
10760
10767
  }, 333);
10761
10768
  }
10762
10769
  if (navigator.msSaveBlob)
10763
- return navigator.msSaveBlob(m, g);
10770
+ return navigator.msSaveBlob(v, g);
10764
10771
  if (n.URL)
10765
- U(n.URL.createObjectURL(m), !0);
10772
+ U(n.URL.createObjectURL(v), !0);
10766
10773
  else {
10767
- if (typeof m == "string" || m.constructor === d)
10774
+ if (typeof v == "string" || v.constructor === d)
10768
10775
  try {
10769
- return U("data:" + l + ";base64," + n.btoa(m));
10776
+ return U("data:" + l + ";base64," + n.btoa(v));
10770
10777
  } catch {
10771
- return U("data:" + l + "," + encodeURIComponent(m));
10778
+ return U("data:" + l + "," + encodeURIComponent(v));
10772
10779
  }
10773
10780
  y = new FileReader(), y.onload = function(R) {
10774
10781
  U(this.result);
10775
- }, y.readAsDataURL(m);
10782
+ }, y.readAsDataURL(v);
10776
10783
  }
10777
10784
  return !0;
10778
10785
  };
10779
10786
  });
10780
- })(Qn);
10781
- var xl = Qn.exports;
10782
- const Il = /* @__PURE__ */ di(xl);
10783
- function Pl() {
10787
+ })(er);
10788
+ var Il = er.exports;
10789
+ const Pl = /* @__PURE__ */ di(Il);
10790
+ function Ll() {
10784
10791
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24">
10785
10792
  <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
10786
10793
  <g transform="translate(-488.000000, -340.000000)" fill="#FFFFFF">
@@ -10797,18 +10804,18 @@ function Pl() {
10797
10804
  </svg>
10798
10805
  `, "image/svg+xml").firstChild;
10799
10806
  }
10800
- var Ll = /* @__PURE__ */ function(a) {
10807
+ var Al = /* @__PURE__ */ function(a) {
10801
10808
  A(r, a);
10802
10809
  var o = D(r);
10803
10810
  function r(t) {
10804
10811
  var e;
10805
- return x(this, r), e = o.call(this, t), _(v(e), "download", function(i) {
10812
+ return x(this, r), e = o.call(this, t), _(m(e), "download", function(i) {
10806
10813
  if (!e.isLock) {
10807
10814
  e.emitUserAction(i, "download");
10808
10815
  var n = e.playerConfig.url, s = "";
10809
10816
  f.typeOf(n) === "String" ? s = n : f.typeOf(n) === "Array" && n.length > 0 && (s = n[0].src);
10810
10817
  var l = e.getAbsoluteURL(s);
10811
- Il(l), e.isLock = !0, e.timer = window.setTimeout(function() {
10818
+ Pl(l), e.isLock = !0, e.timer = window.setTimeout(function() {
10812
10819
  e.isLock = !1, window.clearTimeout(e.timer), e.timer = null;
10813
10820
  }, 300);
10814
10821
  }
@@ -10827,7 +10834,7 @@ var Ll = /* @__PURE__ */ function(a) {
10827
10834
  key: "registerIcons",
10828
10835
  value: function() {
10829
10836
  return {
10830
- download: Pl
10837
+ download: Ll
10831
10838
  };
10832
10839
  }
10833
10840
  }, {
@@ -10869,7 +10876,7 @@ var Ll = /* @__PURE__ */ function(a) {
10869
10876
  };
10870
10877
  }
10871
10878
  }]), r;
10872
- }(Ye), Al = /* @__PURE__ */ function(a) {
10879
+ }(Ye), Dl = /* @__PURE__ */ function(a) {
10873
10880
  A(r, a);
10874
10881
  var o = D(r);
10875
10882
  function r() {
@@ -10924,7 +10931,7 @@ var Ll = /* @__PURE__ */ function(a) {
10924
10931
  e.preventDefault(), e.stopPropagation(), this.emitUserAction(e, "shot");
10925
10932
  var n = this.config;
10926
10933
  this.shot(n.width, n.height).then(function(s) {
10927
- i.emit(Un, s), n.saveImg && i.saveScreenShot(s, n.name + n.format);
10934
+ i.emit(zn, s), n.saveImg && i.saveScreenShot(s, n.name + n.format);
10928
10935
  });
10929
10936
  }
10930
10937
  }, {
@@ -10935,13 +10942,13 @@ var Ll = /* @__PURE__ */ function(a) {
10935
10942
  type: "image/png"
10936
10943
  }, l = this.config, u = this.player, c = s.quality || l.quality, h = s.type || l.type;
10937
10944
  return new Promise(function(d, p) {
10938
- var g = null, m;
10945
+ var g = null, v;
10939
10946
  if (u.media.canvas)
10940
10947
  g = u.media.canvas;
10941
10948
  else {
10942
- n.canvas ? (n.canvas.width = e || l.width, n.canvas.height = i || l.height) : n.createCanvas(e, i), g = n.canvas, m = n.canvasCtx;
10949
+ n.canvas ? (n.canvas.width = e || l.width, n.canvas.height = i || l.height) : n.createCanvas(e, i), g = n.canvas, v = n.canvasCtx;
10943
10950
  var y = u.media.videoWidth / u.media.videoHeight, C = g.width / g.height, b = 0, w = 0, L = u.media.videoWidth, M = u.media.videoHeight, U, R, te, J;
10944
- y > C ? (te = g.width, J = g.width / y, U = 0, R = Math.round((g.height - J) / 2)) : y === C ? (te = g.width, J = g.height, U = 0, R = 0) : y < C && (te = g.height * y, J = g.height, U = Math.round((g.width - te) / 2), R = 0), m.drawImage(u.media, b, w, L, M, U, R, te, J);
10951
+ y > C ? (te = g.width, J = g.width / y, U = 0, R = Math.round((g.height - J) / 2)) : y === C ? (te = g.width, J = g.height, U = 0, R = 0) : y < C && (te = g.height * y, J = g.height, U = Math.round((g.width - te) / 2), R = 0), v.drawImage(u.media, b, w, L, M, U, R, te, J);
10945
10952
  }
10946
10953
  var z = g.toDataURL(h, c).replace(h, "image/octet-stream");
10947
10954
  z = z.replace(/^data:image\/[^;]+/, "data:application/octet-stream"), d(z);
@@ -10995,7 +11002,7 @@ var Ll = /* @__PURE__ */ function(a) {
10995
11002
  };
10996
11003
  }
10997
11004
  }]), r;
10998
- }(Ye), Dl = /* @__PURE__ */ function() {
11005
+ }(Ye), Ol = /* @__PURE__ */ function() {
10999
11006
  function a(o) {
11000
11007
  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);
11001
11008
  var r = this.config.maxHeight;
@@ -11075,7 +11082,7 @@ var Ll = /* @__PURE__ */ function(a) {
11075
11082
  CLICK: "click",
11076
11083
  HOVER: "hover"
11077
11084
  };
11078
- function Ol(a, o) {
11085
+ function Rl(a, o) {
11079
11086
  return a === ke.SIDE ? o === $.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
11080
11087
  }
11081
11088
  var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
@@ -11083,21 +11090,21 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
11083
11090
  var o = D(r);
11084
11091
  function r(t) {
11085
11092
  var e;
11086
- return x(this, r), e = o.call(this, t), _(v(e), "onEnter", function(i) {
11093
+ return x(this, r), e = o.call(this, t), _(m(e), "onEnter", function(i) {
11087
11094
  i.stopPropagation(), e.emit("icon_mouseenter", {
11088
11095
  pluginName: e.pluginName
11089
11096
  }), e.switchActiveState(i);
11090
- }), _(v(e), "switchActiveState", function(i) {
11097
+ }), _(m(e), "switchActiveState", function(i) {
11091
11098
  i.stopPropagation();
11092
11099
  var n = e.config.toggleMode;
11093
11100
  n === Qe.CLICK ? e.toggle(!e.isActive) : e.toggle(!0);
11094
- }), _(v(e), "onLeave", function(i) {
11101
+ }), _(m(e), "onLeave", function(i) {
11095
11102
  i.stopPropagation(), e.emit("icon_mouseleave", {
11096
11103
  pluginName: e.pluginName
11097
11104
  }), e.config.listType !== ke.SIDE && e.isActive && e.toggle(!1);
11098
- }), _(v(e), "onListEnter", function(i) {
11105
+ }), _(m(e), "onListEnter", function(i) {
11099
11106
  e.enterType = 2;
11100
- }), _(v(e), "onListLeave", function(i) {
11107
+ }), _(m(e), "onListLeave", function(i) {
11101
11108
  e.enterType = 0, e.isActive && e.toggle(!1);
11102
11109
  }), e.isIcons = !1, e.isActive = !1, e.curValue = null, e.curIndex = 0, e;
11103
11110
  }
@@ -11189,9 +11196,9 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
11189
11196
  var c = {
11190
11197
  config: {
11191
11198
  data: e || [],
11192
- className: Ol(s.listType, s.position),
11193
- onItemClick: function(m, y) {
11194
- n.onItemClick(m, y);
11199
+ className: Rl(s.listType, s.position),
11200
+ onItemClick: function(v, y) {
11201
+ n.onItemClick(v, y);
11195
11202
  },
11196
11203
  domEventType: je ? "touch" : "mouse"
11197
11204
  },
@@ -11199,7 +11206,7 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
11199
11206
  };
11200
11207
  if (this.config.isShowIcon) {
11201
11208
  var h = this.player.root.getBoundingClientRect(), d = h.height, p = s.listType === ke.MIDDLE ? d - 50 : d;
11202
- p && s.heightLimit && (c.config.maxHeight = "".concat(p, "px")), this.optionsList = new Dl(c), this.changeCurrentText(), this.show();
11209
+ p && s.heightLimit && (c.config.maxHeight = "".concat(p, "px")), this.optionsList = new Ol(c), this.changeCurrentText(), this.show();
11203
11210
  }
11204
11211
  this._resizeList();
11205
11212
  }
@@ -11250,7 +11257,7 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
11250
11257
  };
11251
11258
  }
11252
11259
  }]), r;
11253
- }(W), Rl = /* @__PURE__ */ function(a) {
11260
+ }(W), Fl = /* @__PURE__ */ function(a) {
11254
11261
  A(r, a);
11255
11262
  var o = D(r);
11256
11263
  function r(t) {
@@ -11351,7 +11358,7 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
11351
11358
  });
11352
11359
  }
11353
11360
  }]), r;
11354
- }(Dt), Fl = /* @__PURE__ */ function(a) {
11361
+ }(Dt), Ml = /* @__PURE__ */ function(a) {
11355
11362
  A(r, a);
11356
11363
  var o = D(r);
11357
11364
  function r(t) {
@@ -11373,7 +11380,7 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
11373
11380
  key: "afterCreate",
11374
11381
  value: function() {
11375
11382
  var e = this;
11376
- F(O(r.prototype), "afterCreate", this).call(this), this.on(Dn, function() {
11383
+ F(O(r.prototype), "afterCreate", this).call(this), this.on(On, function() {
11377
11384
  e.curValue !== e.player.playbackRate && e.renderItemList();
11378
11385
  }), this.renderItemList();
11379
11386
  }
@@ -11444,19 +11451,19 @@ var je = B.device === "mobile", Dt = /* @__PURE__ */ function(a) {
11444
11451
  }
11445
11452
  }]), r;
11446
11453
  }(Dt);
11447
- function Ml() {
11454
+ function Nl() {
11448
11455
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
11449
11456
  <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>
11450
11457
  </svg>
11451
11458
  `, "image/svg+xml").firstChild;
11452
11459
  }
11453
- function Nl() {
11460
+ function Bl() {
11454
11461
  return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
11455
11462
  <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>
11456
11463
  </svg>
11457
11464
  `, "image/svg+xml").firstChild;
11458
11465
  }
11459
- var pn = /* @__PURE__ */ function(a) {
11466
+ var vn = /* @__PURE__ */ function(a) {
11460
11467
  A(r, a);
11461
11468
  var o = D(r);
11462
11469
  function r() {
@@ -11510,11 +11517,11 @@ var pn = /* @__PURE__ */ function(a) {
11510
11517
  value: function() {
11511
11518
  return {
11512
11519
  cssFullscreen: {
11513
- icon: Ml,
11520
+ icon: Nl,
11514
11521
  class: "xg-get-cssfull"
11515
11522
  },
11516
11523
  exitCssFullscreen: {
11517
- icon: Nl,
11524
+ icon: Bl,
11518
11525
  class: "xg-exit-cssfull"
11519
11526
  }
11520
11527
  };
@@ -11550,7 +11557,7 @@ var pn = /* @__PURE__ */ function(a) {
11550
11557
  };
11551
11558
  }
11552
11559
  }]), r;
11553
- }(Ye), Bl = /* @__PURE__ */ function(a) {
11560
+ }(Ye), Hl = /* @__PURE__ */ function(a) {
11554
11561
  A(r, a);
11555
11562
  var o = D(r);
11556
11563
  function r() {
@@ -11611,7 +11618,7 @@ var pn = /* @__PURE__ */ function(a) {
11611
11618
  return "error";
11612
11619
  }
11613
11620
  }]), r;
11614
- }(W), Hl = /* @__PURE__ */ function(a) {
11621
+ }(W), Ul = /* @__PURE__ */ function(a) {
11615
11622
  A(r, a);
11616
11623
  var o = D(r);
11617
11624
  function r() {
@@ -11689,7 +11696,7 @@ var pn = /* @__PURE__ */ function(a) {
11689
11696
  };
11690
11697
  }
11691
11698
  }]), r;
11692
- }(W), vn = {
11699
+ }(W), mn = {
11693
11700
  time: 0,
11694
11701
  text: "",
11695
11702
  id: 1,
@@ -11699,12 +11706,12 @@ var pn = /* @__PURE__ */ function(a) {
11699
11706
  width: 6,
11700
11707
  height: 6
11701
11708
  };
11702
- function er(a) {
11703
- Object.keys(vn).map(function(o) {
11704
- a[o] === void 0 && (a[o] = vn[o]);
11709
+ function tr(a) {
11710
+ Object.keys(mn).map(function(o) {
11711
+ a[o] === void 0 && (a[o] = mn[o]);
11705
11712
  });
11706
11713
  }
11707
- var mn = {
11714
+ var yn = {
11708
11715
  _updateDotDom: function(o, r) {
11709
11716
  if (r) {
11710
11717
  var t = this.calcuPosition(o.time, o.duration), e = o.style || {};
@@ -11721,7 +11728,7 @@ var mn = {
11721
11728
  },
11722
11729
  createDot: function(o) {
11723
11730
  var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, t = this.player.plugins.progress;
11724
- if (t && (r && (er(o), this._ispots.push(o)), !(!this.ispotsInit && r))) {
11731
+ if (t && (r && (tr(o), this._ispots.push(o)), !(!this.ispotsInit && r))) {
11725
11732
  var e = this.calcuPosition(o.time, o.duration), i = o.style || {};
11726
11733
  i.left = "".concat(e.left, "%"), i.width = "".concat(e.width, "%");
11727
11734
  var n = "xgspot_".concat(o.id, " xgplayer-spot");
@@ -11841,14 +11848,14 @@ var mn = {
11841
11848
  return r.find('xg-spot[data-id="'.concat(o, '"]'));
11842
11849
  }
11843
11850
  };
11844
- function Ul(a) {
11851
+ function zl(a) {
11845
11852
  var o = a.config, r = a.player;
11846
- Object.keys(mn).map(function(e) {
11847
- a[e] = mn[e].bind(a);
11853
+ Object.keys(yn).map(function(e) {
11854
+ a[e] = yn[e].bind(a);
11848
11855
  });
11849
11856
  var t = r.config.progressDot || o.ispots || [];
11850
11857
  a._ispots = t.map(function(e) {
11851
- return er(e), e;
11858
+ return tr(e), e;
11852
11859
  }), a.ispotsInit = !1, a.playerSize = {
11853
11860
  left: r.sizeInfo.left,
11854
11861
  width: r.sizeInfo.width
@@ -11865,12 +11872,12 @@ var et = {
11865
11872
  click: "onProgressClick",
11866
11873
  mouseover: "onProgressMouseOver",
11867
11874
  mouseenter: "onProgressMouseOver"
11868
- }, zl = /* @__PURE__ */ function(a) {
11875
+ }, Vl = /* @__PURE__ */ function(a) {
11869
11876
  A(r, a);
11870
11877
  var o = D(r);
11871
11878
  function r(t) {
11872
11879
  var e;
11873
- return x(this, r), e = o.call(this, t), _(v(e), "onMousemove", function(i) {
11880
+ return x(this, r), e = o.call(this, t), _(m(e), "onMousemove", function(i) {
11874
11881
  if (!e.config.disable) {
11875
11882
  if (f.hasClass(i.target, "xg-spot-content") && e.config.isHideThumbnailHover) {
11876
11883
  e.player.plugins.progress.onMouseLeave(i);
@@ -11878,20 +11885,20 @@ var et = {
11878
11885
  }
11879
11886
  (e._state.f || f.hasClass(i.target, "xg-spot-content")) && (f.event(i), i.stopPropagation());
11880
11887
  }
11881
- }), _(v(e), "onMousedown", function(i) {
11888
+ }), _(m(e), "onMousedown", function(i) {
11882
11889
  e.config.disable || (e._state.f || f.hasClass(i.target, "xg-spot-content")) && (f.event(i), i.stopPropagation());
11883
- }), _(v(e), "onMouseup", function(i) {
11890
+ }), _(m(e), "onMouseup", function(i) {
11884
11891
  if (e.isDrag) {
11885
11892
  var n = e.player.plugins.progress;
11886
11893
  n && n.pos && (n.onMouseUp(i), !n.pos.isEnter && n.onMouseLeave(i));
11887
11894
  }
11888
- }), _(v(e), "onDotMouseLeave", function(i) {
11895
+ }), _(m(e), "onDotMouseLeave", function(i) {
11889
11896
  if (!e.config.disable) {
11890
11897
  e._curDot.removeEventListener("mouseleave", e.onDotMouseLeave), e.blurDot(i.target), e._curDot = null;
11891
11898
  var n = e.player.plugins.progress;
11892
11899
  n && n.enableBlur(), e.show();
11893
11900
  }
11894
- }), _(v(e), "onProgressMouseOver", function(i, n) {
11901
+ }), _(m(e), "onProgressMouseOver", function(i, n) {
11895
11902
  if (!e.config.disable && f.hasClass(n.target, "xgplayer-spot") && !e._curDot) {
11896
11903
  e._curDot = n.target, e.focusDot(n.target), e._curDot.children.length > 0 && e.hide();
11897
11904
  var s = e.player.plugins.progress;
@@ -11916,7 +11923,7 @@ var et = {
11916
11923
  n.seekTime && e.player.seek(n.seekTime);
11917
11924
  }), this.transformTimeHook = this.hook("transformTime", function(i) {
11918
11925
  e.setTimeContent(f.format(i));
11919
- }), Ul(this), this.on(Ue, function() {
11926
+ }), zl(this), this.on(Ue, function() {
11920
11927
  e.show();
11921
11928
  }), this.config.disable && this.disable(), this.extTextRoot = this.find(".xg-spot-ext-text");
11922
11929
  }
@@ -12140,7 +12147,7 @@ var et = {
12140
12147
  };
12141
12148
  }
12142
12149
  }]), r;
12143
- }(W), Vl = /* @__PURE__ */ function(a) {
12150
+ }(W), jl = /* @__PURE__ */ function(a) {
12144
12151
  A(r, a);
12145
12152
  var o = D(r);
12146
12153
  function r(t) {
@@ -12204,7 +12211,7 @@ var et = {
12204
12211
  this.interval = Math.round(this.player.duration / l);
12205
12212
  var p = Math.ceil(e / this.interval);
12206
12213
  p = p > l ? l : p;
12207
- var g = p < u * c ? 0 : Math.ceil(p / (u * c)) - 1, m = p - g * (c * u), y = m > 0 ? Math.ceil(m / c) - 1 : 0, C = m > 0 ? m - y * c - 1 : 0, b = 0, w = 0;
12214
+ var g = p < u * c ? 0 : Math.ceil(p / (u * c)) - 1, v = p - g * (c * u), y = v > 0 ? Math.ceil(v / c) - 1 : 0, C = v > 0 ? v - y * c - 1 : 0, b = 0, w = 0;
12208
12215
  if (i && n) {
12209
12216
  var L = i / n;
12210
12217
  L < h / d ? (w = n, b = w * (h / d)) : (b = i, w = b / (h / d));
@@ -12278,7 +12285,7 @@ var et = {
12278
12285
  function Qt(a) {
12279
12286
  return a ? "background:".concat(a, ";") : "";
12280
12287
  }
12281
- var jl = /* @__PURE__ */ function(a) {
12288
+ var Wl = /* @__PURE__ */ function(a) {
12282
12289
  A(r, a);
12283
12290
  var o = D(r);
12284
12291
  function r() {
@@ -12286,8 +12293,8 @@ var jl = /* @__PURE__ */ function(a) {
12286
12293
  x(this, r);
12287
12294
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
12288
12295
  i[n] = arguments[n];
12289
- return t = o.call.apply(o, [this].concat(i)), _(v(t), "onTimeupdate", function() {
12290
- var s = t.player.ended, l = v(t), u = l.offsetDuration, c = t.currentTime;
12296
+ return t = o.call.apply(o, [this].concat(i)), _(m(t), "onTimeupdate", function() {
12297
+ var s = t.player.ended, l = m(t), u = l.offsetDuration, c = t.currentTime;
12291
12298
  c = f.adjustTimeByDuration(c, u, s), t.update({
12292
12299
  played: c
12293
12300
  }, u);
@@ -12366,14 +12373,14 @@ var jl = /* @__PURE__ */ function(a) {
12366
12373
  FRAME_RATE: "framerate",
12367
12374
  POSTER: "poster"
12368
12375
  };
12369
- function Wl() {
12376
+ function Gl() {
12370
12377
  try {
12371
12378
  return parseInt(window.performance.now(), 10);
12372
12379
  } catch {
12373
12380
  return (/* @__PURE__ */ new Date()).getTime();
12374
12381
  }
12375
12382
  }
12376
- function Gl() {
12383
+ function $l() {
12377
12384
  try {
12378
12385
  var a = document.createElement("canvas").getContext;
12379
12386
  return !!a;
@@ -12381,7 +12388,7 @@ function Gl() {
12381
12388
  return !1;
12382
12389
  }
12383
12390
  }
12384
- var kt = null, $l = /* @__PURE__ */ function(a) {
12391
+ var kt = null, Kl = /* @__PURE__ */ function(a) {
12385
12392
  A(r, a);
12386
12393
  var o = D(r);
12387
12394
  function r() {
@@ -12389,11 +12396,11 @@ var kt = null, $l = /* @__PURE__ */ function(a) {
12389
12396
  x(this, r);
12390
12397
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
12391
12398
  i[n] = arguments[n];
12392
- return t = o.call.apply(o, [this].concat(i)), _(v(t), "onLoadedData", function(s) {
12399
+ return t = o.call.apply(o, [this].concat(i)), _(m(t), "onLoadedData", function(s) {
12393
12400
  t.player && (t._frameCount = t.config.startFrameCount, t.stop(), t.renderOnTimeupdate(s), t.off(he, t.renderOnTimeupdate), t.on(he, t.renderOnTimeupdate));
12394
- }), _(v(t), "onVisibilitychange", function(s) {
12401
+ }), _(m(t), "onVisibilitychange", function(s) {
12395
12402
  document.visibilityState === "visible" ? t._checkIfCanStart() && t.start() : document.visibilityState === "hidden" && t.stop();
12396
- }), _(v(t), "renderOnTimeupdate", function(s) {
12403
+ }), _(m(t), "renderOnTimeupdate", function(s) {
12397
12404
  if (t._frameCount > 0)
12398
12405
  t.renderOnce(), t._frameCount--;
12399
12406
  else {
@@ -12401,11 +12408,11 @@ var kt = null, $l = /* @__PURE__ */ function(a) {
12401
12408
  var l = t.config.startInterval;
12402
12409
  !t.player.paused && t._checkIfCanStart() && t.start(0, l);
12403
12410
  }
12404
- }), _(v(t), "start", function(s, l) {
12405
- var u = t.player.video, c = Wl(), h = t.checkVideoIsSupport(u);
12406
- !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));
12407
- }), _(v(t), "stop", function() {
12408
- t.frameId && (t._loopType === "timer" ? f.clearTimeout(v(t), t.frameId) : f.cancelAnimationFrame(t.frameId), t.frameId = null);
12411
+ }), _(m(t), "start", function(s, l) {
12412
+ var u = t.player.video, c = Gl(), h = t.checkVideoIsSupport(u);
12413
+ !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(m(t), t.start, l) : f.requestAnimationFrame(t.start));
12414
+ }), _(m(t), "stop", function() {
12415
+ t.frameId && (t._loopType === "timer" ? f.clearTimeout(m(t), t.frameId) : f.cancelAnimationFrame(t.frameId), t.frameId = null);
12409
12416
  }), t;
12410
12417
  }
12411
12418
  return I(r, [{
@@ -12575,7 +12582,7 @@ var kt = null, $l = /* @__PURE__ */ function(a) {
12575
12582
  }, {
12576
12583
  key: "isSupport",
12577
12584
  get: function() {
12578
- return typeof kt == "boolean" || (kt = Gl()), kt;
12585
+ return typeof kt == "boolean" || (kt = $l()), kt;
12579
12586
  }
12580
12587
  }, {
12581
12588
  key: "supportCanvasFilter",
@@ -12583,7 +12590,7 @@ var kt = null, $l = /* @__PURE__ */ function(a) {
12583
12590
  return !(B.browser === "safari" || B.browser === "firefox");
12584
12591
  }
12585
12592
  }]), r;
12586
- }(W), Kl = {
12593
+ }(W), Yl = {
12587
12594
  LANG: "zh-cn",
12588
12595
  TEXT: {
12589
12596
  ERROR_TYPES: {
@@ -12658,7 +12665,7 @@ var kt = null, $l = /* @__PURE__ */ function(a) {
12658
12665
  FORWARD: "快进中",
12659
12666
  LIVE_TIP: "直播"
12660
12667
  }
12661
- }, ut = "info", ei = $n, Yl = /* @__PURE__ */ function(a) {
12668
+ }, ut = "info", ei = Kn, Xl = /* @__PURE__ */ function(a) {
12662
12669
  A(r, a);
12663
12670
  var o = D(r);
12664
12671
  function r() {
@@ -12666,7 +12673,7 @@ var kt = null, $l = /* @__PURE__ */ function(a) {
12666
12673
  x(this, r);
12667
12674
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
12668
12675
  i[n] = arguments[n];
12669
- return t = o.call.apply(o, [this].concat(i)), _(v(t), "_recordUserActions", function(s) {
12676
+ return t = o.call.apply(o, [this].concat(i)), _(m(t), "_recordUserActions", function(s) {
12670
12677
  var l = t._getTime(), u = Object.assign({}, s, {
12671
12678
  msg: s.msg || s.action
12672
12679
  });
@@ -12675,11 +12682,11 @@ var kt = null, $l = /* @__PURE__ */ function(a) {
12675
12682
  }, l), {}, {
12676
12683
  payload: u
12677
12684
  }));
12678
- }), _(v(t), "_onReset", function() {
12685
+ }), _(m(t), "_onReset", function() {
12679
12686
  t.reset();
12680
- }), _(v(t), "_recordInfo", function(s) {
12687
+ }), _(m(t), "_recordInfo", function(s) {
12681
12688
  t.info(s);
12682
- }), _(v(t), "_downloadStats", function() {
12689
+ }), _(m(t), "_downloadStats", function() {
12683
12690
  var s = t.getStats(), l = new Blob([JSON.stringify(s)], {
12684
12691
  type: "application/json"
12685
12692
  }), u = window.URL.createObjectURL(l), c = document.createElement("a");
@@ -12802,7 +12809,7 @@ var kt = null, $l = /* @__PURE__ */ function(a) {
12802
12809
  return {};
12803
12810
  }
12804
12811
  }]), r;
12805
- }(He), tr = /* @__PURE__ */ function(a) {
12812
+ }(He), ir = /* @__PURE__ */ function(a) {
12806
12813
  A(r, a);
12807
12814
  var o = D(r);
12808
12815
  function r() {
@@ -12810,8 +12817,8 @@ var kt = null, $l = /* @__PURE__ */ function(a) {
12810
12817
  x(this, r);
12811
12818
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
12812
12819
  i[n] = arguments[n];
12813
- return t = o.call.apply(o, [this].concat(i)), _(v(t), "onGapJump", function() {
12814
- var s = v(t), l = s.player, u = s.config;
12820
+ return t = o.call.apply(o, [this].concat(i)), _(m(t), "onGapJump", function() {
12821
+ var s = m(t), l = s.player, u = s.config;
12815
12822
  if (l.media.readyState !== HTMLMediaElement.HAVE_NOTHING) {
12816
12823
  if (l.media.seeking) {
12817
12824
  if (!t.seekingEventReceived)
@@ -12822,15 +12829,15 @@ var kt = null, $l = /* @__PURE__ */ function(a) {
12822
12829
  var c = l.media.buffered, h = u.smallGapLimit || 0.5, d = u.gapDetectionThreshold || 0.3, p = l.media.currentTime, g = t._getIndex(c, p, d);
12823
12830
  if (!(g === null || g === 0)) {
12824
12831
  console.log("GapJump bufferRange ", c.start(g), c.end(g));
12825
- var m = c.start(g) + 0.1, y = l.media.duration;
12826
- if (!(m > y)) {
12827
- var C = m - p, b = C <= h;
12828
- C < r.BROWSER_GAP_TOLERANCE || b && (u.useGapJump !== !1 && (l.media.currentTime = t.isSafari ? m + 0.1 : m), t.player && t.player.emit("detectGap"), console.log("gapJump gapIndex", g, " isGapSamll:", b, " currentTime:", l.media.currentTime, " jumpSize:", p - l.media.currentTime), m !== 0.08 && l && l.emit("log", {
12832
+ var v = c.start(g) + 0.1, y = l.media.duration;
12833
+ if (!(v > y)) {
12834
+ var C = v - p, b = C <= h;
12835
+ C < r.BROWSER_GAP_TOLERANCE || b && (u.useGapJump !== !1 && (l.media.currentTime = t.isSafari ? v + 0.1 : v), t.player && t.player.emit("detectGap"), console.log("gapJump gapIndex", g, " isGapSamll:", b, " currentTime:", l.media.currentTime, " jumpSize:", p - l.media.currentTime), v !== 0.08 && l && l.emit("log", {
12829
12836
  type: "oneevent",
12830
12837
  end_type: "gap",
12831
12838
  vid: l.config.vid,
12832
12839
  ext: {
12833
- video_postion: Math.floor(m * 1e3)
12840
+ video_postion: Math.floor(v * 1e3)
12834
12841
  }
12835
12842
  }));
12836
12843
  }
@@ -12891,8 +12898,8 @@ var kt = null, $l = /* @__PURE__ */ function(a) {
12891
12898
  }
12892
12899
  }]), r;
12893
12900
  }(W);
12894
- tr.BROWSER_GAP_TOLERANCE = 1e-3;
12895
- var Xl = /* @__PURE__ */ function(a) {
12901
+ ir.BROWSER_GAP_TOLERANCE = 1e-3;
12902
+ var ql = /* @__PURE__ */ function(a) {
12896
12903
  A(r, a);
12897
12904
  var o = D(r);
12898
12905
  function r() {
@@ -12900,11 +12907,11 @@ var Xl = /* @__PURE__ */ function(a) {
12900
12907
  x(this, r);
12901
12908
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
12902
12909
  i[n] = arguments[n];
12903
- return t = o.call.apply(o, [this].concat(i)), _(v(t), "onWaiting", function() {
12904
- var s = v(t), l = s.config;
12910
+ return t = o.call.apply(o, [this].concat(i)), _(m(t), "onWaiting", function() {
12911
+ var s = m(t), l = s.config;
12905
12912
  t.jumpCnt > l.jumpCntMax || t.timer || l.useWaitingTimeoutJump === !1 || (t.timer = setTimeout(t.onJump, l.waitingTime * 1e3));
12906
- }), _(v(t), "onJump", function() {
12907
- var s = v(t), l = s.player, u = s.config;
12913
+ }), _(m(t), "onJump", function() {
12914
+ var s = m(t), l = s.player, u = s.config;
12908
12915
  if (clearTimeout(t.timer), t.timer = null, !(t.jumpCnt > u.jumpCntMax || u.useWaitingTimeoutJump === !1) && !(l.media.paused && l.media.currentTime !== 0 && t.hasPlayed)) {
12909
12916
  t.jumpSize = u.jumpSize * (t.jumpCnt + 1), t.jumpCnt === u.jumpSize && t.jumpSize < 6 && (t.jumpSize = 6);
12910
12917
  var c = l.currentTime + t.jumpSize, h = l.media.duration;
@@ -12938,7 +12945,7 @@ var Xl = /* @__PURE__ */ function(a) {
12938
12945
  };
12939
12946
  }
12940
12947
  }]), r;
12941
- }(W), it = "cdn", Ct = ["cdn"], ql = /* @__PURE__ */ function(a) {
12948
+ }(W), it = "cdn", Ct = ["cdn"], Zl = /* @__PURE__ */ function(a) {
12942
12949
  A(r, a);
12943
12950
  var o = D(r);
12944
12951
  function r() {
@@ -12946,7 +12953,7 @@ var Xl = /* @__PURE__ */ function(a) {
12946
12953
  x(this, r);
12947
12954
  for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
12948
12955
  i[n] = arguments[n];
12949
- return t = o.call.apply(o, [this].concat(i)), _(v(t), "getSpeed", function() {
12956
+ return t = o.call.apply(o, [this].concat(i)), _(m(t), "getSpeed", function() {
12950
12957
  var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : it;
12951
12958
  if (!t.speedListCache || !t.speedListCache[s] || t.speedListCache[s].length <= 0)
12952
12959
  return 0;
@@ -12954,47 +12961,47 @@ var Xl = /* @__PURE__ */ function(a) {
12954
12961
  return t.speedListCache[s].map(function(u) {
12955
12962
  l += u;
12956
12963
  }), Math.floor(l / t.speedListCache[s].length);
12957
- }), _(v(t), "startTimer", function() {
12964
+ }), _(m(t), "startTimer", function() {
12958
12965
  f.isMSE(t.player.video) || (t.initSpeedList(), t.cnt = 0, t.timer = setTimeout(t.testSpeed, t.config.testTimeStep));
12959
- }), _(v(t), "initSpeedList", function() {
12966
+ }), _(m(t), "initSpeedList", function() {
12960
12967
  t.speedListCache = {}, Ct.forEach(function(s) {
12961
12968
  t.speedListCache[s] = [];
12962
12969
  });
12963
- }), _(v(t), "_onRealSpeedChange", function(s) {
12970
+ }), _(m(t), "_onRealSpeedChange", function(s) {
12964
12971
  s.speed && t.appendList(s.speed, s.type || it);
12965
- }), _(v(t), "testSpeed", function() {
12972
+ }), _(m(t), "testSpeed", function() {
12966
12973
  if (clearTimeout(t.timer), t.timer = null, !(!t.player || !t.config.openSpeed)) {
12967
12974
  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();
12968
12975
  if (!(t.cnt >= c)) {
12969
12976
  t.cnt++;
12970
12977
  try {
12971
- var p = (/* @__PURE__ */ new Date()).getTime(), g = null, m = new XMLHttpRequest();
12972
- t.xhr = m, m.open("GET", d);
12978
+ var p = (/* @__PURE__ */ new Date()).getTime(), g = null, v = new XMLHttpRequest();
12979
+ t.xhr = v, v.open("GET", d);
12973
12980
  var y = {}, C = Math.floor(Math.random() * 10);
12974
12981
  y.Range = "bytes=" + C + "-" + (u + C), y && Object.keys(y).forEach(function(b) {
12975
- m.setRequestHeader(b, y[b]);
12976
- }), m.onreadystatechange = function() {
12977
- if (m.readyState === 4) {
12982
+ v.setRequestHeader(b, y[b]);
12983
+ }), v.onreadystatechange = function() {
12984
+ if (v.readyState === 4) {
12978
12985
  t.xhr = null, g = (/* @__PURE__ */ new Date()).getTime();
12979
- var b = m.getResponseHeader("Content-Length") / 1024 * 8, w = Math.round(b * 1e3 / (g - p));
12986
+ var b = v.getResponseHeader("Content-Length") / 1024 * 8, w = Math.round(b * 1e3 / (g - p));
12980
12987
  t.appendList(w), t.timer = setTimeout(t.testSpeed, h);
12981
12988
  }
12982
- }, m.send();
12989
+ }, v.send();
12983
12990
  } catch (b) {
12984
12991
  console.error(b);
12985
12992
  }
12986
12993
  }
12987
12994
  }
12988
- }), _(v(t), "appendList", function(s) {
12995
+ }), _(m(t), "appendList", function(s) {
12989
12996
  var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : it;
12990
12997
  if (!(!t.speedListCache || !t.speedListCache[l])) {
12991
12998
  var u = t.config.saveSpeedMax;
12992
12999
  t.speedListCache[l].length >= u && t.speedListCache[l].shift(), t.speedListCache[l].push(s);
12993
- var c = v(t), h = c.player;
13000
+ var c = m(t), h = c.player;
12994
13001
  h && (l === it ? h.realTimeSpeed = s : h[t.getSpeedName("realTime", l)] = s), t.updateSpeed(l);
12995
13002
  }
12996
- }), _(v(t), "updateSpeed", function() {
12997
- var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : it, l = t.getSpeed(s), u = v(t), c = u.player;
13003
+ }), _(m(t), "updateSpeed", function() {
13004
+ var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : it, l = t.getSpeed(s), u = m(t), c = u.player;
12998
13005
  if (c)
12999
13006
  if (s === it)
13000
13007
  (!c.avgSpeed || l !== c.avgSpeed) && (c.avgSpeed = l, c.emit(li, {
@@ -13064,7 +13071,7 @@ var Xl = /* @__PURE__ */ function(a) {
13064
13071
  };
13065
13072
  }
13066
13073
  }]), r;
13067
- }(W), Zl = /* @__PURE__ */ function(a) {
13074
+ }(W), Jl = /* @__PURE__ */ function(a) {
13068
13075
  A(r, a);
13069
13076
  var o = D(r);
13070
13077
  function r() {
@@ -13123,15 +13130,15 @@ var Xl = /* @__PURE__ */ function(a) {
13123
13130
  value: function(e, i, n, s) {
13124
13131
  var l = this.player.media || this.player.video, u = document.hidden, c = l.paused, h = l.readyState, d = l.currentTime, p = l.buffered;
13125
13132
  if (!(u || c || h < 4)) {
13126
- var g = this._checkBuffer(d, p), m = g.enoughBuffer, y = g.buffers;
13127
- m && (e <= this.config.reportFrame ? (this._currentStuckCount++, this._payload.push({
13133
+ var g = this._checkBuffer(d, p), v = g.enoughBuffer, y = g.buffers;
13134
+ v && (e <= this.config.reportFrame ? (this._currentStuckCount++, this._payload.push({
13128
13135
  currentTime: d,
13129
13136
  buffers: y,
13130
13137
  curDecodedFrames: e,
13131
13138
  totalVideoFrames: i,
13132
13139
  droppedVideoFrames: n,
13133
13140
  checkInterval: s
13134
- }), this._currentStuckCount >= this.config.stuckCount && (this.emit(Kn, this._payload), this._reset())) : this._reset());
13141
+ }), this._currentStuckCount >= this.config.stuckCount && (this.emit(Yn, this._payload), this._reset())) : this._reset());
13135
13142
  }
13136
13143
  }
13137
13144
  }, {
@@ -13174,24 +13181,24 @@ var Xl = /* @__PURE__ */ function(a) {
13174
13181
  }
13175
13182
  }]), r;
13176
13183
  }(W);
13177
- nt.use(Kl);
13178
- var Jl = /* @__PURE__ */ I(function a(o, r) {
13184
+ nt.use(Yl);
13185
+ var Ql = /* @__PURE__ */ I(function a(o, r) {
13179
13186
  var t, e, i;
13180
13187
  x(this, a);
13181
- var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [pl, al, jl, zl, gl], u = [].concat(l, [ll, dl, Cl, Sl, Rl, Fl, Ll, Al, _l, Tl]), c = [za, Va, Wa, rl, Ga, Bl, Hl, Vl, Xa];
13182
- this.plugins = [Yl, Ha].concat(ve(u), c, [tr, Xl]);
13188
+ var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [vl, ll, Wl, Vl, pl], u = [].concat(l, [ul, gl, wl, xl, Fl, Ml, Al, Dl, kl, El]), c = [Va, ja, Ga, sl, $a, Hl, Ul, jl, qa];
13189
+ this.plugins = [Xl, Ua].concat(ve(u), c, [ir, ql]);
13183
13190
  var h = n ? "mobile" : B.device;
13184
13191
  switch (h) {
13185
13192
  case "pc":
13186
- (t = this.plugins).push.apply(t, [dn, Zt, pn, ql, Zl]);
13193
+ (t = this.plugins).push.apply(t, [gn, Zt, vn, Zl, Jl]);
13187
13194
  break;
13188
13195
  case "mobile":
13189
- (e = this.plugins).push.apply(e, [tl]);
13196
+ (e = this.plugins).push.apply(e, [il]);
13190
13197
  break;
13191
13198
  default:
13192
- (i = this.plugins).push.apply(i, [dn, Zt, pn]);
13199
+ (i = this.plugins).push.apply(i, [gn, Zt, vn]);
13193
13200
  }
13194
- (B.os.isIpad || h === "pc") && this.plugins.push($l), B.os.isIpad && this.plugins.push(Zt), this.ignores = [], this.i18n = [];
13201
+ (B.os.isIpad || h === "pc") && this.plugins.push(Kl), B.os.isIpad && this.plugins.push(Zt), this.ignores = [], this.i18n = [];
13195
13202
  }), me = /* @__PURE__ */ function(a) {
13196
13203
  A(r, a);
13197
13204
  var o = D(r);
@@ -13200,17 +13207,17 @@ var Jl = /* @__PURE__ */ I(function a(o, r) {
13200
13207
  }
13201
13208
  return I(r);
13202
13209
  }(Nt);
13203
- _(me, "defaultPreset", Jl);
13210
+ _(me, "defaultPreset", Ql);
13204
13211
  _(me, "Util", f);
13205
13212
  _(me, "Sniffer", B);
13206
13213
  _(me, "Errors", bt);
13207
- _(me, "Events", da);
13214
+ _(me, "Events", ga);
13208
13215
  _(me, "Plugin", W);
13209
13216
  _(me, "BasePlugin", He);
13210
13217
  _(me, "I18N", nt);
13211
13218
  _(me, "STATE_CLASS", k);
13212
- _(me, "InstManager", Zn);
13213
- const Ql = ["id"], eu = /* @__PURE__ */ Z({
13219
+ _(me, "InstManager", Jn);
13220
+ const eu = ["id"], tu = /* @__PURE__ */ Z({
13214
13221
  name: "ElImageViewer",
13215
13222
  __name: "Player",
13216
13223
  props: /* @__PURE__ */ wt({
@@ -13239,7 +13246,7 @@ const Ql = ["id"], eu = /* @__PURE__ */ Z({
13239
13246
  }, ["update:modelValue"]),
13240
13247
  setup(a, { emit: o }) {
13241
13248
  let r = null;
13242
- const t = a, { cLoadUrl: e } = bn(t), i = Y(() => ht(e.value, t.url)), n = {
13249
+ const t = a, { cLoadUrl: e } = Tn(t), i = Y(() => ht(e.value, t.url)), n = {
13243
13250
  width: "100%",
13244
13251
  height: "100%",
13245
13252
  // 是否自动播放
@@ -13260,7 +13267,7 @@ const Ql = ["id"], eu = /* @__PURE__ */ Z({
13260
13267
  }, s = Y(() => ({
13261
13268
  ...n,
13262
13269
  ...t.config
13263
- })), l = o, u = fi(a, "modelValue"), c = kn(), h = Cn("image-viewer");
13270
+ })), l = o, u = fi(a, "modelValue"), c = Cn(), h = wn("image-viewer");
13264
13271
  function d() {
13265
13272
  l("close"), u.value = !1, r.destroy();
13266
13273
  }
@@ -13273,12 +13280,12 @@ const Ql = ["id"], eu = /* @__PURE__ */ Z({
13273
13280
  });
13274
13281
  });
13275
13282
  }), (p, g) => {
13276
- const m = rt("el-icon");
13277
- return u.value ? (E(), pe(yn, {
13283
+ const v = rt("el-icon");
13284
+ return u.value ? (E(), pe(_n, {
13278
13285
  key: 0,
13279
13286
  to: "body"
13280
13287
  }, [
13281
- j(_n, {
13288
+ j(kn, {
13282
13289
  name: "viewer-fade",
13283
13290
  appear: ""
13284
13291
  }, {
@@ -13308,7 +13315,7 @@ const Ql = ["id"], eu = /* @__PURE__ */ Z({
13308
13315
  class: K(S(h).e("canvas"))
13309
13316
  },
13310
13317
  [
13311
- T("div", { id: S(c) }, null, 8, Ql),
13318
+ T("div", { id: S(c) }, null, 8, eu),
13312
13319
  ee(" CLOSE "),
13313
13320
  T(
13314
13321
  "span",
@@ -13317,9 +13324,9 @@ const Ql = ["id"], eu = /* @__PURE__ */ Z({
13317
13324
  onClick: d
13318
13325
  },
13319
13326
  [
13320
- j(m, { onClick: d }, {
13327
+ j(v, { onClick: d }, {
13321
13328
  default: Q(() => [
13322
- j(S(wn))
13329
+ j(S(bn))
13323
13330
  ]),
13324
13331
  _: 1
13325
13332
  /* STABLE */
@@ -13345,22 +13352,22 @@ const Ql = ["id"], eu = /* @__PURE__ */ Z({
13345
13352
  };
13346
13353
  }
13347
13354
  });
13348
- const tu = /* @__PURE__ */ gt(eu, [["__scopeId", "data-v-b301aa7d"]]), iu = Pe(tu), nu = (a) => (gr("data-v-6a92bbab"), a = a(), pr(), a), ru = {
13355
+ const iu = /* @__PURE__ */ gt(tu, [["__scopeId", "data-v-b301aa7d"]]), nu = Pe(iu), ru = (a) => (pr("data-v-6a92bbab"), a = a(), vr(), a), su = {
13349
13356
  key: 0,
13350
13357
  class: "preview-files"
13351
- }, su = {
13358
+ }, ou = {
13352
13359
  class: "flex",
13353
13360
  style: { width: "80%", "align-items": "center" }
13354
- }, ou = ["onClick"], au = ["title"], lu = { style: { color: "#b8c6d9" } }, uu = ["onClick"], cu = /* @__PURE__ */ nu(() => /* @__PURE__ */ T(
13361
+ }, au = ["onClick"], lu = ["title"], uu = { style: { color: "#b8c6d9" } }, cu = ["onClick"], fu = /* @__PURE__ */ ru(() => /* @__PURE__ */ T(
13355
13362
  "span",
13356
13363
  null,
13357
13364
  "预览",
13358
13365
  -1
13359
13366
  /* HOISTED */
13360
- )), fu = {
13367
+ )), hu = {
13361
13368
  key: 1,
13362
13369
  class: "flex preview-img"
13363
- }, hu = /* @__PURE__ */ Z({
13370
+ }, du = /* @__PURE__ */ Z({
13364
13371
  __name: "IkDetailPreviewFiles",
13365
13372
  props: {
13366
13373
  // 文件列表 [{originName:'',path:'',fileSize:''}] //文件大小
@@ -13412,20 +13419,20 @@ const tu = /* @__PURE__ */ gt(eu, [["__scopeId", "data-v-b301aa7d"]]), iu = Pe(t
13412
13419
  return (c = u == null ? void 0 : u.suffix) != null && c.includes("pdf") ? "#FA4E4E" : (h = u == null ? void 0 : u.suffix) != null && h.includes("doc") ? "#2c69e0" : (d = u.suffix) != null && d.includes("xls") ? "#39BFBF" : (p = u.suffix) != null && p.includes("txt") ? "#2c69e0" : (g = u.suffix) != null && g.includes("zip") ? "#FF9000" : "#32CD79";
13413
13420
  }, l = (u) => {
13414
13421
  const c = document.createElement("a");
13415
- c.href = yr.assembleUrl(o.loadUrl, u.url), c.download = u.name, c.click();
13422
+ c.href = _r.assembleUrl(o.loadUrl, u.url), c.download = u.name, c.click();
13416
13423
  };
13417
13424
  return (u, c) => {
13418
13425
  var d, p;
13419
13426
  const h = rt("el-image");
13420
13427
  return E(), P("div", null, [
13421
- o.fileType === "file" ? (E(), P("div", ru, [
13428
+ o.fileType === "file" ? (E(), P("div", su, [
13422
13429
  (E(!0), P(
13423
13430
  Ee,
13424
13431
  null,
13425
- ft(r.value, (g, m) => (E(), P(
13432
+ ft(r.value, (g, v) => (E(), P(
13426
13433
  "div",
13427
13434
  {
13428
- key: m,
13435
+ key: v,
13429
13436
  class: "files-item",
13430
13437
  style: oe({
13431
13438
  width: o.fileWidth,
@@ -13433,7 +13440,7 @@ const tu = /* @__PURE__ */ gt(eu, [["__scopeId", "data-v-b301aa7d"]]), iu = Pe(t
13433
13440
  })
13434
13441
  },
13435
13442
  [
13436
- T("div", su, [
13443
+ T("div", ou, [
13437
13444
  j(S(Me), {
13438
13445
  name: n(g),
13439
13446
  style: oe(`color:${s(g)}`),
@@ -13445,23 +13452,23 @@ const tu = /* @__PURE__ */ gt(eu, [["__scopeId", "data-v-b301aa7d"]]), iu = Pe(t
13445
13452
  }, [
13446
13453
  T("p", {
13447
13454
  title: g.name
13448
- }, Ne(g.name), 9, au),
13455
+ }, Ne(g.name), 9, lu),
13449
13456
  T(
13450
13457
  "p",
13451
- lu,
13458
+ uu,
13452
13459
  Ne((g.size / 1024).toFixed(2)) + "KB",
13453
13460
  1
13454
13461
  /* TEXT */
13455
13462
  )
13456
- ], 8, ou)
13463
+ ], 8, au)
13457
13464
  ]),
13458
13465
  T("div", {
13459
13466
  class: "file-preview",
13460
13467
  onClick: (y) => i(g)
13461
13468
  }, [
13462
13469
  j(S(Me), { name: "iksvg_yulan" }),
13463
- cu
13464
- ], 8, uu)
13470
+ fu
13471
+ ], 8, cu)
13465
13472
  ],
13466
13473
  4
13467
13474
  /* STYLE */
@@ -13470,12 +13477,12 @@ const tu = /* @__PURE__ */ gt(eu, [["__scopeId", "data-v-b301aa7d"]]), iu = Pe(t
13470
13477
  /* KEYED_FRAGMENT */
13471
13478
  ))
13472
13479
  ])) : ee("v-if", !0),
13473
- o.fileType === "img" ? (E(), P("div", fu, [
13480
+ o.fileType === "img" ? (E(), P("div", hu, [
13474
13481
  (E(!0), P(
13475
13482
  Ee,
13476
13483
  null,
13477
- ft(r.value, (g, m) => (E(), P("div", {
13478
- key: m,
13484
+ ft(r.value, (g, v) => (E(), P("div", {
13485
+ key: v,
13479
13486
  class: "preview-img"
13480
13487
  }, [
13481
13488
  j(h, {
@@ -13489,7 +13496,7 @@ const tu = /* @__PURE__ */ gt(eu, [["__scopeId", "data-v-b301aa7d"]]), iu = Pe(t
13489
13496
  /* KEYED_FRAGMENT */
13490
13497
  ))
13491
13498
  ])) : ee("v-if", !0),
13492
- j(S(Js), {
13499
+ j(S(Qs), {
13493
13500
  modelValue: t.value,
13494
13501
  "onUpdate:modelValue": c[0] || (c[0] = (g) => t.value = g),
13495
13502
  "load-url": o.loadUrl,
@@ -13501,8 +13508,8 @@ const tu = /* @__PURE__ */ gt(eu, [["__scopeId", "data-v-b301aa7d"]]), iu = Pe(t
13501
13508
  };
13502
13509
  }
13503
13510
  });
13504
- const du = /* @__PURE__ */ gt(hu, [["__scopeId", "data-v-6a92bbab"]]), mu = Pe(du);
13511
+ const gu = /* @__PURE__ */ gt(du, [["__scopeId", "data-v-6a92bbab"]]), yu = Pe(gu);
13505
13512
  export {
13506
- mu as IKDetailPreviewFiles,
13507
- mu as default
13513
+ yu as IKDetailPreviewFiles,
13514
+ yu as default
13508
13515
  };