iking-web-ui-pro 0.2.34 → 0.2.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/IKPreviewFile/ik.index.es.js +602 -599
- package/dist/IKPreviewFile/ik.index.umd.js +46 -46
- package/dist/IKSearch/ik.index.es.js +623 -623
- package/dist/IKSearch/ik.index.umd.js +2 -2
- package/dist/IKSearch/style.css +1 -1
- package/dist/IkApprovalProcess/ik.index.es.js +463 -463
- package/dist/IkApprovalProcess/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcess/style.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +673 -670
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +46 -46
- package/dist/IkCalendar/ik.index.es.js +1583 -1583
- package/dist/IkCalendar/ik.index.umd.js +1 -1
- package/dist/IkCalendar/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +825 -846
- package/dist/IkDescription/ik.index.umd.js +46 -46
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +617 -614
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +46 -46
- package/dist/IkPageFull/ik.index.es.js +689 -689
- package/dist/IkPageFull/ik.index.umd.js +3 -3
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPickerUser/ik.index.es.js +317 -317
- package/dist/IkPickerUser/ik.index.umd.js +1 -1
- package/dist/IkPickerUser/style.css +1 -1
- package/dist/IkPlayer/ik.index.es.js +342 -339
- package/dist/IkPlayer/ik.index.umd.js +45 -45
- package/dist/IkPreviewFileDialog/ik.index.es.js +509 -506
- package/dist/IkPreviewFileDialog/ik.index.umd.js +46 -46
- package/dist/IkUploadFile/ik.index.es.js +1719 -1718
- package/dist/IkUploadFile/ik.index.umd.js +56 -56
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +273 -270
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/index.es.js +13188 -13214
- package/dist/index.umd.js +106 -106
- package/dist/src/components/IkDescription/index.d.ts +0 -76
- package/dist/src/components/IkDescription/src/IkDescription.vue.d.ts +0 -36
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as J, computed as X, openBlock as E, createElementBlock as D, createElementVNode as T, inject as lt, ref as ge, resolveComponent as Ge, Fragment as Fe, renderList as wt, normalizeStyle as ce, toDisplayString as xe, normalizeClass as K, createVNode as G, unref as S, withModifiers as ii, createBlock as ae, createCommentVNode as ee, renderSlot as ve, withCtx as Y, mergeModels as bt, useModel as hi, reactive as
|
|
2
|
-
import { useLocale as
|
|
3
|
-
import { paramType as ri, ikFile as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as J, computed as X, openBlock as E, createElementBlock as D, createElementVNode as T, inject as lt, ref as ge, resolveComponent as Ge, Fragment as Fe, renderList as wt, normalizeStyle as ce, toDisplayString as xe, normalizeClass as K, createVNode as G, unref as S, withModifiers as ii, createBlock as ae, createCommentVNode as ee, renderSlot as ve, withCtx as Y, mergeModels as bt, useModel as hi, reactive as rr, watch as ft, nextTick as di, createTextVNode as st, h as sr, mergeProps as ni, createSlots as or, getCurrentScope as ar, onScopeDispose as lr, markRaw as Ri, effectScope as ur, shallowRef as cr, onMounted as fr, Teleport as Cn, Transition as kn, resolveDynamicComponent as hr, withDirectives as dr, vShow as gr, useCssVars as pr } from "vue";
|
|
2
|
+
import { useLocale as vr, useNamespace as wn, useZIndex as mr, ElIcon as De, EVENT_CODE as Xe, ElTag as yr } from "element-plus";
|
|
3
|
+
import { paramType as ri, ikFile as _r, buildUUID as bn, ikColor as Cr, _ as zt } from "iking-utils-pro";
|
|
4
|
+
const Le = (a, o) => {
|
|
5
5
|
if (a.install = (r) => {
|
|
6
6
|
for (const t of [a, ...Object.values(o ?? {})])
|
|
7
7
|
r.component(t.name, t);
|
|
@@ -119,10 +119,10 @@ const Ae = (a, o) => {
|
|
|
119
119
|
}, Mi = (a) => {
|
|
120
120
|
const o = a == null ? void 0 : a.toLocaleLowerCase(), r = o != null && o.startsWith(".") ? o : `.${o}`;
|
|
121
121
|
return r && kr[r] || "unknow";
|
|
122
|
-
},
|
|
122
|
+
}, wr = (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
|
-
},
|
|
125
|
+
}, br = {
|
|
126
126
|
key: 0,
|
|
127
127
|
t: "1686300059786",
|
|
128
128
|
class: "icon",
|
|
@@ -132,7 +132,7 @@ const Ae = (a, o) => {
|
|
|
132
132
|
"p-id": "7671",
|
|
133
133
|
width: "200",
|
|
134
134
|
height: "200"
|
|
135
|
-
},
|
|
135
|
+
}, Tr = /* @__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 Ae = (a, o) => {
|
|
|
142
142
|
null,
|
|
143
143
|
-1
|
|
144
144
|
/* HOISTED */
|
|
145
|
-
),
|
|
145
|
+
), Er = /* @__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 Ae = (a, o) => {
|
|
|
152
152
|
null,
|
|
153
153
|
-1
|
|
154
154
|
/* HOISTED */
|
|
155
|
-
),
|
|
155
|
+
), Sr = /* @__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 Ae = (a, o) => {
|
|
|
162
162
|
null,
|
|
163
163
|
-1
|
|
164
164
|
/* HOISTED */
|
|
165
|
-
),
|
|
165
|
+
), xr = /* @__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 Ae = (a, o) => {
|
|
|
172
172
|
null,
|
|
173
173
|
-1
|
|
174
174
|
/* HOISTED */
|
|
175
|
-
),
|
|
176
|
-
br,
|
|
175
|
+
), Ir = [
|
|
177
176
|
Tr,
|
|
178
177
|
Er,
|
|
179
|
-
Sr
|
|
180
|
-
|
|
178
|
+
Sr,
|
|
179
|
+
xr
|
|
180
|
+
], Pr = {
|
|
181
181
|
key: 1,
|
|
182
182
|
t: "1686301531714",
|
|
183
183
|
class: "icon",
|
|
@@ -187,7 +187,7 @@ const Ae = (a, o) => {
|
|
|
187
187
|
"p-id": "9067",
|
|
188
188
|
width: "200",
|
|
189
189
|
height: "200"
|
|
190
|
-
},
|
|
190
|
+
}, Lr = /* @__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",
|
|
@@ -207,10 +207,10 @@ const Ae = (a, o) => {
|
|
|
207
207
|
null,
|
|
208
208
|
-1
|
|
209
209
|
/* HOISTED */
|
|
210
|
-
),
|
|
211
|
-
|
|
210
|
+
), Dr = [
|
|
211
|
+
Lr,
|
|
212
212
|
Ar
|
|
213
|
-
],
|
|
213
|
+
], Or = {
|
|
214
214
|
key: 2,
|
|
215
215
|
t: "1686300141125",
|
|
216
216
|
class: "icon",
|
|
@@ -220,7 +220,7 @@ const Ae = (a, o) => {
|
|
|
220
220
|
"p-id": "8137",
|
|
221
221
|
width: "200",
|
|
222
222
|
height: "200"
|
|
223
|
-
},
|
|
223
|
+
}, Rr = /* @__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 Ae = (a, o) => {
|
|
|
230
230
|
null,
|
|
231
231
|
-1
|
|
232
232
|
/* HOISTED */
|
|
233
|
-
),
|
|
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 Ae = (a, o) => {
|
|
|
240
240
|
null,
|
|
241
241
|
-1
|
|
242
242
|
/* HOISTED */
|
|
243
|
-
),
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
],
|
|
243
|
+
), Fr = [
|
|
244
|
+
Rr,
|
|
245
|
+
Mr
|
|
246
|
+
], Nr = {
|
|
247
247
|
key: 3,
|
|
248
248
|
t: "1686300157181",
|
|
249
249
|
class: "icon",
|
|
@@ -253,7 +253,7 @@ const Ae = (a, o) => {
|
|
|
253
253
|
"p-id": "8292",
|
|
254
254
|
width: "200",
|
|
255
255
|
height: "200"
|
|
256
|
-
},
|
|
256
|
+
}, Br = /* @__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 Ae = (a, o) => {
|
|
|
263
263
|
null,
|
|
264
264
|
-1
|
|
265
265
|
/* HOISTED */
|
|
266
|
-
),
|
|
266
|
+
), Hr = /* @__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 Ae = (a, o) => {
|
|
|
273
273
|
null,
|
|
274
274
|
-1
|
|
275
275
|
/* HOISTED */
|
|
276
|
-
),
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
],
|
|
276
|
+
), Ur = [
|
|
277
|
+
Br,
|
|
278
|
+
Hr
|
|
279
|
+
], zr = {
|
|
280
280
|
key: 4,
|
|
281
281
|
t: "1686300180947",
|
|
282
282
|
class: "icon",
|
|
@@ -286,7 +286,7 @@ const Ae = (a, o) => {
|
|
|
286
286
|
"p-id": "8447",
|
|
287
287
|
width: "200",
|
|
288
288
|
height: "200"
|
|
289
|
-
},
|
|
289
|
+
}, Vr = /* @__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 Ae = (a, o) => {
|
|
|
296
296
|
null,
|
|
297
297
|
-1
|
|
298
298
|
/* HOISTED */
|
|
299
|
-
),
|
|
299
|
+
), jr = /* @__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 Ae = (a, o) => {
|
|
|
306
306
|
null,
|
|
307
307
|
-1
|
|
308
308
|
/* HOISTED */
|
|
309
|
-
),
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
],
|
|
309
|
+
), Wr = [
|
|
310
|
+
Vr,
|
|
311
|
+
jr
|
|
312
|
+
], Gr = {
|
|
313
313
|
key: 5,
|
|
314
314
|
t: "1686300195363",
|
|
315
315
|
class: "icon",
|
|
@@ -319,7 +319,7 @@ const Ae = (a, o) => {
|
|
|
319
319
|
"p-id": "8602",
|
|
320
320
|
width: "200",
|
|
321
321
|
height: "200"
|
|
322
|
-
},
|
|
322
|
+
}, $r = /* @__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 Ae = (a, o) => {
|
|
|
329
329
|
null,
|
|
330
330
|
-1
|
|
331
331
|
/* HOISTED */
|
|
332
|
-
),
|
|
332
|
+
), Kr = /* @__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 Ae = (a, o) => {
|
|
|
339
339
|
null,
|
|
340
340
|
-1
|
|
341
341
|
/* HOISTED */
|
|
342
|
-
),
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
],
|
|
342
|
+
), Yr = [
|
|
343
|
+
$r,
|
|
344
|
+
Kr
|
|
345
|
+
], Xr = {
|
|
346
346
|
key: 6,
|
|
347
347
|
t: "1686300209288",
|
|
348
348
|
class: "icon",
|
|
@@ -352,7 +352,7 @@ const Ae = (a, o) => {
|
|
|
352
352
|
"p-id": "8757",
|
|
353
353
|
width: "200",
|
|
354
354
|
height: "200"
|
|
355
|
-
},
|
|
355
|
+
}, qr = /* @__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 Ae = (a, o) => {
|
|
|
362
362
|
null,
|
|
363
363
|
-1
|
|
364
364
|
/* HOISTED */
|
|
365
|
-
),
|
|
365
|
+
), Zr = /* @__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 Ae = (a, o) => {
|
|
|
372
372
|
null,
|
|
373
373
|
-1
|
|
374
374
|
/* HOISTED */
|
|
375
|
-
),
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
],
|
|
375
|
+
), Jr = [
|
|
376
|
+
qr,
|
|
377
|
+
Zr
|
|
378
|
+
], Qr = {
|
|
379
379
|
key: 7,
|
|
380
380
|
t: "1686300225262",
|
|
381
381
|
class: "icon",
|
|
@@ -385,7 +385,7 @@ const Ae = (a, o) => {
|
|
|
385
385
|
"p-id": "8912",
|
|
386
386
|
width: "200",
|
|
387
387
|
height: "200"
|
|
388
|
-
},
|
|
388
|
+
}, es = /* @__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 Ae = (a, o) => {
|
|
|
395
395
|
null,
|
|
396
396
|
-1
|
|
397
397
|
/* HOISTED */
|
|
398
|
-
),
|
|
398
|
+
), ts = /* @__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 Ae = (a, o) => {
|
|
|
405
405
|
null,
|
|
406
406
|
-1
|
|
407
407
|
/* HOISTED */
|
|
408
|
-
),
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
],
|
|
408
|
+
), is = [
|
|
409
|
+
es,
|
|
410
|
+
ts
|
|
411
|
+
], ns = {
|
|
412
412
|
key: 8,
|
|
413
413
|
t: "1692251753690",
|
|
414
414
|
class: "icon",
|
|
@@ -418,7 +418,7 @@ const Ae = (a, o) => {
|
|
|
418
418
|
"p-id": "4336",
|
|
419
419
|
width: "200",
|
|
420
420
|
height: "200"
|
|
421
|
-
},
|
|
421
|
+
}, rs = /* @__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 Ae = (a, o) => {
|
|
|
428
428
|
null,
|
|
429
429
|
-1
|
|
430
430
|
/* HOISTED */
|
|
431
|
-
),
|
|
431
|
+
), ss = /* @__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 Ae = (a, o) => {
|
|
|
439
439
|
null,
|
|
440
440
|
-1
|
|
441
441
|
/* HOISTED */
|
|
442
|
-
),
|
|
442
|
+
), os = /* @__PURE__ */ T(
|
|
443
443
|
"path",
|
|
444
444
|
{
|
|
445
445
|
d: "M640 0l320 320H768a128 128 0 0 1-128-128V0z",
|
|
@@ -449,11 +449,11 @@ const Ae = (a, o) => {
|
|
|
449
449
|
null,
|
|
450
450
|
-1
|
|
451
451
|
/* HOISTED */
|
|
452
|
-
),
|
|
453
|
-
ns,
|
|
452
|
+
), as = [
|
|
454
453
|
rs,
|
|
455
|
-
ss
|
|
456
|
-
|
|
454
|
+
ss,
|
|
455
|
+
os
|
|
456
|
+
], ls = {
|
|
457
457
|
key: 9,
|
|
458
458
|
t: "1692251753690",
|
|
459
459
|
class: "icon",
|
|
@@ -463,7 +463,7 @@ const Ae = (a, o) => {
|
|
|
463
463
|
"p-id": "4336",
|
|
464
464
|
width: "200",
|
|
465
465
|
height: "200"
|
|
466
|
-
},
|
|
466
|
+
}, us = /* @__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 Ae = (a, o) => {
|
|
|
473
473
|
null,
|
|
474
474
|
-1
|
|
475
475
|
/* HOISTED */
|
|
476
|
-
),
|
|
476
|
+
), cs = /* @__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 Ae = (a, o) => {
|
|
|
483
483
|
null,
|
|
484
484
|
-1
|
|
485
485
|
/* HOISTED */
|
|
486
|
-
),
|
|
486
|
+
), fs = /* @__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 Ae = (a, o) => {
|
|
|
494
494
|
null,
|
|
495
495
|
-1
|
|
496
496
|
/* HOISTED */
|
|
497
|
-
),
|
|
497
|
+
), hs = /* @__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 Ae = (a, o) => {
|
|
|
504
504
|
null,
|
|
505
505
|
-1
|
|
506
506
|
/* HOISTED */
|
|
507
|
-
),
|
|
508
|
-
ls,
|
|
507
|
+
), ds = [
|
|
509
508
|
us,
|
|
510
509
|
cs,
|
|
511
|
-
fs
|
|
512
|
-
|
|
510
|
+
fs,
|
|
511
|
+
hs
|
|
512
|
+
], gs = {
|
|
513
513
|
key: 10,
|
|
514
514
|
t: "1714099890925",
|
|
515
515
|
class: "icon",
|
|
@@ -519,7 +519,7 @@ const Ae = (a, o) => {
|
|
|
519
519
|
"p-id": "2271",
|
|
520
520
|
width: "200",
|
|
521
521
|
height: "200"
|
|
522
|
-
},
|
|
522
|
+
}, ps = /* @__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 Ae = (a, o) => {
|
|
|
529
529
|
null,
|
|
530
530
|
-1
|
|
531
531
|
/* HOISTED */
|
|
532
|
-
),
|
|
532
|
+
), vs = /* @__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 Ae = (a, o) => {
|
|
|
540
540
|
null,
|
|
541
541
|
-1
|
|
542
542
|
/* HOISTED */
|
|
543
|
-
),
|
|
543
|
+
), ms = /* @__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 Ae = (a, o) => {
|
|
|
550
550
|
null,
|
|
551
551
|
-1
|
|
552
552
|
/* HOISTED */
|
|
553
|
-
),
|
|
554
|
-
gs,
|
|
553
|
+
), ys = [
|
|
555
554
|
ps,
|
|
556
|
-
vs
|
|
557
|
-
|
|
555
|
+
vs,
|
|
556
|
+
ms
|
|
557
|
+
], _s = {
|
|
558
558
|
key: 11,
|
|
559
559
|
t: "1686300037564",
|
|
560
560
|
class: "icon",
|
|
@@ -564,7 +564,7 @@ const Ae = (a, o) => {
|
|
|
564
564
|
"p-id": "7515",
|
|
565
565
|
width: "200",
|
|
566
566
|
height: "200"
|
|
567
|
-
},
|
|
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",
|
|
@@ -584,7 +584,7 @@ const Ae = (a, o) => {
|
|
|
584
584
|
null,
|
|
585
585
|
-1
|
|
586
586
|
/* HOISTED */
|
|
587
|
-
),
|
|
587
|
+
), ws = /* @__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 Ae = (a, o) => {
|
|
|
594
594
|
null,
|
|
595
595
|
-1
|
|
596
596
|
/* HOISTED */
|
|
597
|
-
),
|
|
598
|
-
|
|
597
|
+
), bs = [
|
|
598
|
+
Cs,
|
|
599
599
|
ks,
|
|
600
|
-
|
|
601
|
-
],
|
|
600
|
+
ws
|
|
601
|
+
], Ts = /* @__PURE__ */ J({
|
|
602
602
|
__name: "IkFileIcon",
|
|
603
603
|
props: {
|
|
604
604
|
type: {
|
|
@@ -620,11 +620,11 @@ const Ae = (a, o) => {
|
|
|
620
620
|
},
|
|
621
621
|
setup(a) {
|
|
622
622
|
const o = a, r = X(() => o.file ? si(o.file, o.fields) : o.type);
|
|
623
|
-
return (t, e) => r.value === "image" ? (E(), D("svg",
|
|
623
|
+
return (t, e) => r.value === "image" ? (E(), D("svg", br, Ir)) : r.value === "zip" ? (E(), D("svg", Pr, Dr)) : r.value === "ppt" ? (E(), D("svg", Or, Fr)) : r.value === "word" ? (E(), D("svg", Nr, Ur)) : r.value === "pdf" ? (E(), D("svg", zr, Wr)) : r.value === "txt" ? (E(), D("svg", Gr, Yr)) : r.value === "audio" ? (E(), D("svg", Xr, Jr)) : r.value === "video" ? (E(), D("svg", Qr, is)) : r.value === "excel" ? (E(), D("svg", ns, as)) : r.value === "exe" ? (E(), D("svg", ls, ds)) : r.value === "json" ? (E(), D("svg", gs, ys)) : (E(), D("svg", _s, bs));
|
|
624
624
|
}
|
|
625
|
-
}),
|
|
625
|
+
}), Es = Le(Ts);
|
|
626
626
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
627
|
-
var
|
|
627
|
+
var Ss = /* @__PURE__ */ J({
|
|
628
628
|
name: "ArrowLeft",
|
|
629
629
|
__name: "arrow-left",
|
|
630
630
|
setup(a) {
|
|
@@ -638,7 +638,7 @@ var Es = /* @__PURE__ */ J({
|
|
|
638
638
|
})
|
|
639
639
|
]));
|
|
640
640
|
}
|
|
641
|
-
}),
|
|
641
|
+
}), xs = Ss, Is = /* @__PURE__ */ J({
|
|
642
642
|
name: "ArrowRight",
|
|
643
643
|
__name: "arrow-right",
|
|
644
644
|
setup(a) {
|
|
@@ -652,7 +652,7 @@ var Es = /* @__PURE__ */ J({
|
|
|
652
652
|
})
|
|
653
653
|
]));
|
|
654
654
|
}
|
|
655
|
-
}),
|
|
655
|
+
}), Ps = Is, Ls = /* @__PURE__ */ J({
|
|
656
656
|
name: "Close",
|
|
657
657
|
__name: "close",
|
|
658
658
|
setup(a) {
|
|
@@ -666,7 +666,7 @@ var Es = /* @__PURE__ */ J({
|
|
|
666
666
|
})
|
|
667
667
|
]));
|
|
668
668
|
}
|
|
669
|
-
}),
|
|
669
|
+
}), Tn = Ls, As = /* @__PURE__ */ J({
|
|
670
670
|
name: "FullScreen",
|
|
671
671
|
__name: "full-screen",
|
|
672
672
|
setup(a) {
|
|
@@ -680,7 +680,7 @@ var Es = /* @__PURE__ */ J({
|
|
|
680
680
|
})
|
|
681
681
|
]));
|
|
682
682
|
}
|
|
683
|
-
}),
|
|
683
|
+
}), Ds = As, Os = /* @__PURE__ */ J({
|
|
684
684
|
name: "RefreshLeft",
|
|
685
685
|
__name: "refresh-left",
|
|
686
686
|
setup(a) {
|
|
@@ -694,7 +694,7 @@ var Es = /* @__PURE__ */ J({
|
|
|
694
694
|
})
|
|
695
695
|
]));
|
|
696
696
|
}
|
|
697
|
-
}),
|
|
697
|
+
}), Rs = Os, Ms = /* @__PURE__ */ J({
|
|
698
698
|
name: "RefreshRight",
|
|
699
699
|
__name: "refresh-right",
|
|
700
700
|
setup(a) {
|
|
@@ -708,7 +708,7 @@ var Es = /* @__PURE__ */ J({
|
|
|
708
708
|
})
|
|
709
709
|
]));
|
|
710
710
|
}
|
|
711
|
-
}),
|
|
711
|
+
}), Fs = Ms, Ns = /* @__PURE__ */ J({
|
|
712
712
|
name: "ScaleToOriginal",
|
|
713
713
|
__name: "scale-to-original",
|
|
714
714
|
setup(a) {
|
|
@@ -722,7 +722,7 @@ var Es = /* @__PURE__ */ J({
|
|
|
722
722
|
})
|
|
723
723
|
]));
|
|
724
724
|
}
|
|
725
|
-
}),
|
|
725
|
+
}), Bs = Ns, Hs = /* @__PURE__ */ J({
|
|
726
726
|
name: "ZoomIn",
|
|
727
727
|
__name: "zoom-in",
|
|
728
728
|
setup(a) {
|
|
@@ -736,7 +736,7 @@ var Es = /* @__PURE__ */ J({
|
|
|
736
736
|
})
|
|
737
737
|
]));
|
|
738
738
|
}
|
|
739
|
-
}),
|
|
739
|
+
}), Us = Hs, zs = /* @__PURE__ */ J({
|
|
740
740
|
name: "ZoomOut",
|
|
741
741
|
__name: "zoom-out",
|
|
742
742
|
setup(a) {
|
|
@@ -750,13 +750,13 @@ var Es = /* @__PURE__ */ J({
|
|
|
750
750
|
})
|
|
751
751
|
]));
|
|
752
752
|
}
|
|
753
|
-
}),
|
|
753
|
+
}), Vs = zs;
|
|
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
|
-
},
|
|
759
|
+
}, js = (a, o = 2) => {
|
|
760
760
|
if (a === void 0)
|
|
761
761
|
return "";
|
|
762
762
|
if (a === 0)
|
|
@@ -764,69 +764,72 @@ const gt = (a, o) => {
|
|
|
764
764
|
const r = ["B", "KB", "MB", "GB", "TB"], t = Math.floor(Math.log(a) / Math.log(1024));
|
|
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
|
-
}, ht = (a, o) => o ? o.startsWith("http") ? o : `${a || location.origin}${o}` : "",
|
|
768
|
-
|
|
767
|
+
}, ht = (a, o) => o ? o.startsWith("http") ? o : `${a || location.origin}${o}` : "", Fi = [
|
|
768
|
+
"csv",
|
|
769
|
+
"djvu",
|
|
770
|
+
"doc",
|
|
771
|
+
"docm",
|
|
772
|
+
"docx",
|
|
773
|
+
"docxf",
|
|
774
|
+
"dot",
|
|
775
|
+
"dotm",
|
|
776
|
+
"dotx",
|
|
777
|
+
"epub",
|
|
778
|
+
"fb2",
|
|
779
|
+
"fodp",
|
|
780
|
+
"fods",
|
|
781
|
+
"fodt",
|
|
782
|
+
"htm",
|
|
783
|
+
"html",
|
|
784
|
+
"mht",
|
|
785
|
+
"odp",
|
|
786
|
+
"ods",
|
|
787
|
+
"odt",
|
|
788
|
+
"oform",
|
|
789
|
+
"otp",
|
|
790
|
+
"ots",
|
|
791
|
+
"ott",
|
|
792
|
+
"oxps",
|
|
793
|
+
"pdf",
|
|
794
|
+
"pot",
|
|
795
|
+
"potm",
|
|
796
|
+
"potx",
|
|
797
|
+
"pps",
|
|
798
|
+
"ppsm",
|
|
799
|
+
"ppsx",
|
|
800
|
+
"ppt",
|
|
801
|
+
"pptm",
|
|
802
|
+
"pptx",
|
|
803
|
+
"rtf",
|
|
804
|
+
"txt",
|
|
805
|
+
"xls",
|
|
806
|
+
"xlsb",
|
|
807
|
+
"xlsm",
|
|
808
|
+
"xlsx",
|
|
809
|
+
"xlt",
|
|
810
|
+
"xltm",
|
|
811
|
+
"xltx",
|
|
812
|
+
"xml",
|
|
813
|
+
"xps",
|
|
814
|
+
"png",
|
|
815
|
+
"jpeg",
|
|
816
|
+
"jpg",
|
|
817
|
+
"webp",
|
|
818
|
+
"video",
|
|
819
|
+
"mp4",
|
|
820
|
+
"flv",
|
|
821
|
+
"tls"
|
|
822
|
+
], Ws = (a) => {
|
|
823
|
+
const o = lt("loadUrl"), r = X(() => a.loadUrl || a.fileUrl || (o == null ? void 0 : o.value)), t = lt("uploadUrl"), e = X(() => a.action || a.uploadUrl || (t == null ? void 0 : t.value)), i = lt("token"), n = X(() => a.token || (i == null ? void 0 : i.value)), s = lt("onlyofficeConfig"), l = X(() => a.onlyofficeConfig || (s == null ? void 0 : s.value)), u = lt("userInfo"), c = X(() => a.userInfo || (u == null ? void 0 : u.value)), h = [...Fi, ...Fi.map((d) => d.toLocaleUpperCase())];
|
|
769
824
|
return {
|
|
770
825
|
cLoadUrl: r,
|
|
771
826
|
cUploadUrl: e,
|
|
772
827
|
cToken: n,
|
|
773
828
|
cOnlyofficeConfig: l,
|
|
774
829
|
cUserInfo: c,
|
|
775
|
-
cOnlyofficePreviewType:
|
|
776
|
-
"csv",
|
|
777
|
-
"djvu",
|
|
778
|
-
"doc",
|
|
779
|
-
"docm",
|
|
780
|
-
"docx",
|
|
781
|
-
"docxf",
|
|
782
|
-
"dot",
|
|
783
|
-
"dotm",
|
|
784
|
-
"dotx",
|
|
785
|
-
"epub",
|
|
786
|
-
"fb2",
|
|
787
|
-
"fodp",
|
|
788
|
-
"fods",
|
|
789
|
-
"fodt",
|
|
790
|
-
"htm",
|
|
791
|
-
"html",
|
|
792
|
-
"mht",
|
|
793
|
-
"odp",
|
|
794
|
-
"ods",
|
|
795
|
-
"odt",
|
|
796
|
-
"oform",
|
|
797
|
-
"otp",
|
|
798
|
-
"ots",
|
|
799
|
-
"ott",
|
|
800
|
-
"oxps",
|
|
801
|
-
"pdf",
|
|
802
|
-
"pot",
|
|
803
|
-
"potm",
|
|
804
|
-
"potx",
|
|
805
|
-
"pps",
|
|
806
|
-
"ppsm",
|
|
807
|
-
"ppsx",
|
|
808
|
-
"ppt",
|
|
809
|
-
"pptm",
|
|
810
|
-
"pptx",
|
|
811
|
-
"rtf",
|
|
812
|
-
"txt",
|
|
813
|
-
"xls",
|
|
814
|
-
"xlsb",
|
|
815
|
-
"xlsm",
|
|
816
|
-
"xlsx",
|
|
817
|
-
"xlt",
|
|
818
|
-
"xltm",
|
|
819
|
-
"xltx",
|
|
820
|
-
"xml",
|
|
821
|
-
"xps",
|
|
822
|
-
"png",
|
|
823
|
-
"jpeg",
|
|
824
|
-
"jpg",
|
|
825
|
-
"video",
|
|
826
|
-
"mp4"
|
|
827
|
-
]
|
|
830
|
+
cOnlyofficePreviewType: h
|
|
828
831
|
};
|
|
829
|
-
},
|
|
832
|
+
}, En = Ws, Gs = ["onClick"], $s = { class: "fileName simple" }, Ks = ["onClick"], Ys = { class: "text" }, Xs = { class: "fileName" }, qs = { class: "size" }, Zs = /* @__PURE__ */ J({
|
|
830
833
|
__name: "IkPreviewFile",
|
|
831
834
|
props: {
|
|
832
835
|
list: {
|
|
@@ -902,7 +905,7 @@ const gt = (a, o) => {
|
|
|
902
905
|
},
|
|
903
906
|
emits: ["handPreview"],
|
|
904
907
|
setup(a, { emit: o }) {
|
|
905
|
-
const r = a, { cLoadUrl: t, cOnlyofficeConfig: e, cOnlyofficePreviewType: i } =
|
|
908
|
+
const r = a, { cLoadUrl: t, cOnlyofficeConfig: e, cOnlyofficePreviewType: i } = En(r), n = o, s = X(() => ({
|
|
906
909
|
name: "name",
|
|
907
910
|
url: "url",
|
|
908
911
|
suffix: "suffix",
|
|
@@ -915,11 +918,11 @@ const gt = (a, o) => {
|
|
|
915
918
|
name: g.name,
|
|
916
919
|
url: ht(
|
|
917
920
|
t.value,
|
|
918
|
-
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)
|
|
921
|
+
(g == null ? void 0 : 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)
|
|
919
922
|
)
|
|
920
923
|
}, r.isOnlyOfficePreview && (u.value = !0), n("handPreview", l.value);
|
|
921
924
|
}, h = (g) => {
|
|
922
|
-
|
|
925
|
+
_r.downloadFile(
|
|
923
926
|
ht(
|
|
924
927
|
t.value,
|
|
925
928
|
g[s.value.url] || g.attachmentId || g.id
|
|
@@ -933,13 +936,13 @@ const gt = (a, o) => {
|
|
|
933
936
|
suffix: g[s.value.suffix] || g.attachmentSuffix
|
|
934
937
|
})));
|
|
935
938
|
return (g, m) => {
|
|
936
|
-
var
|
|
939
|
+
var k, b, w;
|
|
937
940
|
const y = Ge("tmplate");
|
|
938
941
|
return E(), D(
|
|
939
942
|
Fe,
|
|
940
943
|
null,
|
|
941
944
|
[
|
|
942
|
-
(
|
|
945
|
+
(k = a.list) != null && k.length ? (E(), D(
|
|
943
946
|
Fe,
|
|
944
947
|
{ key: 0 },
|
|
945
948
|
[
|
|
@@ -953,7 +956,7 @@ const gt = (a, o) => {
|
|
|
953
956
|
}, [
|
|
954
957
|
T(
|
|
955
958
|
"div",
|
|
956
|
-
|
|
959
|
+
$s,
|
|
957
960
|
xe(P.name),
|
|
958
961
|
1
|
|
959
962
|
/* TEXT */
|
|
@@ -983,7 +986,7 @@ const gt = (a, o) => {
|
|
|
983
986
|
2
|
|
984
987
|
/* CLASS */
|
|
985
988
|
)
|
|
986
|
-
], 12,
|
|
989
|
+
], 12, Gs))),
|
|
987
990
|
256
|
|
988
991
|
/* UNKEYED_FRAGMENT */
|
|
989
992
|
)) : (E(), ae(y, { key: 1 }, {
|
|
@@ -1008,24 +1011,24 @@ const gt = (a, o) => {
|
|
|
1008
1011
|
class: "file-card",
|
|
1009
1012
|
onClick: (R) => c(P)
|
|
1010
1013
|
}, [
|
|
1011
|
-
G(S(
|
|
1014
|
+
G(S(Es), {
|
|
1012
1015
|
file: P,
|
|
1013
1016
|
style: ce({ height: `${a.iconSize}px` }),
|
|
1014
1017
|
class: "ikui-w-auto",
|
|
1015
1018
|
fields: s.value
|
|
1016
1019
|
}, null, 8, ["file", "style", "fields"]),
|
|
1017
|
-
T("div",
|
|
1020
|
+
T("div", Ys, [
|
|
1018
1021
|
T(
|
|
1019
1022
|
"div",
|
|
1020
|
-
|
|
1023
|
+
Xs,
|
|
1021
1024
|
xe(P.name),
|
|
1022
1025
|
1
|
|
1023
1026
|
/* TEXT */
|
|
1024
1027
|
),
|
|
1025
1028
|
T(
|
|
1026
1029
|
"div",
|
|
1027
|
-
|
|
1028
|
-
xe(S(
|
|
1030
|
+
qs,
|
|
1031
|
+
xe(S(js)(P.size)),
|
|
1029
1032
|
1
|
|
1030
1033
|
/* TEXT */
|
|
1031
1034
|
)
|
|
@@ -1057,7 +1060,7 @@ const gt = (a, o) => {
|
|
|
1057
1060
|
2
|
|
1058
1061
|
/* CLASS */
|
|
1059
1062
|
)
|
|
1060
|
-
], 8,
|
|
1063
|
+
], 8, Ks)
|
|
1061
1064
|
],
|
|
1062
1065
|
6
|
|
1063
1066
|
/* CLASS, STYLE */
|
|
@@ -1074,7 +1077,7 @@ const gt = (a, o) => {
|
|
|
1074
1077
|
64
|
|
1075
1078
|
/* STABLE_FRAGMENT */
|
|
1076
1079
|
)) : ee("v-if", !0),
|
|
1077
|
-
G(S(
|
|
1080
|
+
G(S(eo), {
|
|
1078
1081
|
show: u.value,
|
|
1079
1082
|
"onUpdate:show": m[0] || (m[0] = (P) => u.value = P),
|
|
1080
1083
|
loadUrl: S(t),
|
|
@@ -1090,7 +1093,7 @@ const gt = (a, o) => {
|
|
|
1090
1093
|
};
|
|
1091
1094
|
}
|
|
1092
1095
|
});
|
|
1093
|
-
const
|
|
1096
|
+
const Js = Le(Zs), Qs = /* @__PURE__ */ J({
|
|
1094
1097
|
__name: "IkPreviewFileDialog",
|
|
1095
1098
|
props: /* @__PURE__ */ bt({
|
|
1096
1099
|
file: {
|
|
@@ -1133,14 +1136,14 @@ const Zs = Ae(qs), Js = /* @__PURE__ */ J({
|
|
|
1133
1136
|
suffix: "suffix",
|
|
1134
1137
|
size: "fileSize",
|
|
1135
1138
|
...o.field
|
|
1136
|
-
})), e = ge(null), i = ge(null), n =
|
|
1139
|
+
})), e = ge(null), i = ge(null), n = rr({
|
|
1137
1140
|
image: !1,
|
|
1138
1141
|
office: !1,
|
|
1139
1142
|
video: !1
|
|
1140
1143
|
}), s = (u) => {
|
|
1141
1144
|
var c, h, d, p, g, m, y;
|
|
1142
1145
|
try {
|
|
1143
|
-
const
|
|
1146
|
+
const k = ((c = u == null ? void 0 : u.response) == null ? void 0 : c.data) || u, b = k[t.value.url] || (k == null ? void 0 : k.id) || k.attachmentId, w = (h = k[t.value.suffix] || k.attachmentSuffix) == null ? void 0 : h.toLowerCase(), P = k[t.value.name] || (k == null ? void 0 : k.attachmentName) || (k == null ? void 0 : k.originName);
|
|
1144
1147
|
if (i.value = {
|
|
1145
1148
|
...u,
|
|
1146
1149
|
name: u[t.value.name],
|
|
@@ -1164,18 +1167,18 @@ const Zs = Ae(qs), Js = /* @__PURE__ */ J({
|
|
|
1164
1167
|
}
|
|
1165
1168
|
},
|
|
1166
1169
|
document: {
|
|
1167
|
-
key:
|
|
1170
|
+
key: bn(),
|
|
1168
1171
|
title: P,
|
|
1169
1172
|
url: ht(o.loadUrl, b),
|
|
1170
1173
|
fileType: w,
|
|
1171
1174
|
...((y = o.onlyOfficeConfig) == null ? void 0 : y.document) || {}
|
|
1172
1175
|
},
|
|
1173
|
-
documentType:
|
|
1176
|
+
documentType: wr(w)
|
|
1174
1177
|
};
|
|
1175
1178
|
return;
|
|
1176
1179
|
}
|
|
1177
|
-
} catch (
|
|
1178
|
-
console.info("预览错误: ",
|
|
1180
|
+
} catch (k) {
|
|
1181
|
+
console.info("预览错误: ", k);
|
|
1179
1182
|
}
|
|
1180
1183
|
};
|
|
1181
1184
|
ft([r, o.file], ([u, c]) => {
|
|
@@ -1192,7 +1195,7 @@ const Zs = Ae(qs), Js = /* @__PURE__ */ J({
|
|
|
1192
1195
|
Fe,
|
|
1193
1196
|
{ key: 0 },
|
|
1194
1197
|
[
|
|
1195
|
-
(h = i.value) != null && h.url && n.image ? (E(), ae(S(
|
|
1198
|
+
(h = i.value) != null && h.url && n.image ? (E(), ae(S(Uo), {
|
|
1196
1199
|
key: 0,
|
|
1197
1200
|
onClose: c[0] || (c[0] = (g) => l()),
|
|
1198
1201
|
ref: "previewImgRef",
|
|
@@ -1202,12 +1205,12 @@ const Zs = Ae(qs), Js = /* @__PURE__ */ J({
|
|
|
1202
1205
|
}, null, 8, ["url-list"])) : ee("v-if", !0),
|
|
1203
1206
|
ee(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
|
|
1204
1207
|
ee(" 文档类 "),
|
|
1205
|
-
G(S(
|
|
1208
|
+
G(S(iu), {
|
|
1206
1209
|
modelValue: n.video,
|
|
1207
1210
|
"onUpdate:modelValue": c[1] || (c[1] = (g) => n.video = g),
|
|
1208
1211
|
url: (p = i.value) == null ? void 0 : p.url
|
|
1209
1212
|
}, null, 8, ["modelValue", "url"]),
|
|
1210
|
-
G(S(
|
|
1213
|
+
G(S(po), {
|
|
1211
1214
|
modelValue: n.office,
|
|
1212
1215
|
"onUpdate:modelValue": c[2] || (c[2] = (g) => n.office = g),
|
|
1213
1216
|
draggable: "",
|
|
@@ -1225,7 +1228,7 @@ const Zs = Ae(qs), Js = /* @__PURE__ */ J({
|
|
|
1225
1228
|
default: Y(() => {
|
|
1226
1229
|
var g;
|
|
1227
1230
|
return [
|
|
1228
|
-
G(S(
|
|
1231
|
+
G(S(To), {
|
|
1229
1232
|
"config-options": e.value,
|
|
1230
1233
|
"document-server-url": ((g = a.onlyOfficeConfig) == null ? void 0 : g.serverUrl) || a.onlyofficeServer
|
|
1231
1234
|
}, null, 8, ["config-options", "document-server-url"])
|
|
@@ -1241,18 +1244,18 @@ const Zs = Ae(qs), Js = /* @__PURE__ */ J({
|
|
|
1241
1244
|
};
|
|
1242
1245
|
}
|
|
1243
1246
|
});
|
|
1244
|
-
const
|
|
1247
|
+
const eo = Le(Qs), to = {
|
|
1245
1248
|
key: 0,
|
|
1246
1249
|
class: "ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"
|
|
1247
|
-
},
|
|
1250
|
+
}, io = {
|
|
1248
1251
|
key: 1,
|
|
1249
1252
|
class: "h-[1em] w-[1em]",
|
|
1250
1253
|
"aria-hidden": "true"
|
|
1251
|
-
},
|
|
1254
|
+
}, no = ["xlink:href"], ro = ["src"], so = {
|
|
1252
1255
|
key: 1,
|
|
1253
1256
|
class: "h-[1em] w-[1em]",
|
|
1254
1257
|
"aria-hidden": "true"
|
|
1255
|
-
},
|
|
1258
|
+
}, oo = ["xlink:href"], ao = ["src"], lo = /* @__PURE__ */ J({
|
|
1256
1259
|
name: "IkSvgIcon",
|
|
1257
1260
|
__name: "index",
|
|
1258
1261
|
props: {
|
|
@@ -1305,14 +1308,14 @@ const Qs = Ae(Js), eo = {
|
|
|
1305
1308
|
padding: r.value.showBg || r.value.bg ? r.value.padding : 0,
|
|
1306
1309
|
...r.value.color && t.value !== "iksig" ? {
|
|
1307
1310
|
"--ik-color-icon-dark": r.value.color,
|
|
1308
|
-
"--ik-color-icon-light": r.value.colorLight ||
|
|
1311
|
+
"--ik-color-icon-light": r.value.colorLight || Cr.setOpacity(r.value.color, r.value.opacity)
|
|
1309
1312
|
} : {}
|
|
1310
1313
|
};
|
|
1311
1314
|
return r.value.width && (n.width = n.height = typeof r.value.width == "number" ? `${r.value.width}px` : r.value.width), n;
|
|
1312
1315
|
});
|
|
1313
1316
|
return (i, n) => {
|
|
1314
1317
|
const s = Ge("el-tooltip"), l = Ge("el-button");
|
|
1315
|
-
return r.value.tableIconType === "icon" || !r.value.tableIconType ? (E(), D("span",
|
|
1318
|
+
return r.value.tableIconType === "icon" || !r.value.tableIconType ? (E(), D("span", to, [
|
|
1316
1319
|
r.value.notip || !r.value.title ? (E(), D(
|
|
1317
1320
|
"i",
|
|
1318
1321
|
{
|
|
@@ -1344,15 +1347,15 @@ const Qs = Ae(Js), eo = {
|
|
|
1344
1347
|
null,
|
|
1345
1348
|
6
|
|
1346
1349
|
/* CLASS, STYLE */
|
|
1347
|
-
)) : t.value === "svg" ? (E(), D("svg",
|
|
1350
|
+
)) : t.value === "svg" ? (E(), D("svg", io, [
|
|
1348
1351
|
T("use", {
|
|
1349
1352
|
"xlink:href": `#${r.value.name}`
|
|
1350
|
-
}, null, 8,
|
|
1353
|
+
}, null, 8, no)
|
|
1351
1354
|
])) : t.value === "img" ? (E(), D("img", {
|
|
1352
1355
|
key: 2,
|
|
1353
1356
|
src: r.value.name,
|
|
1354
1357
|
class: "h-[1em] w-[1em]"
|
|
1355
|
-
}, null, 8,
|
|
1358
|
+
}, null, 8, ro)) : (E(), D(
|
|
1356
1359
|
"i",
|
|
1357
1360
|
{
|
|
1358
1361
|
key: 3,
|
|
@@ -1400,15 +1403,15 @@ const Qs = Ae(Js), eo = {
|
|
|
1400
1403
|
null,
|
|
1401
1404
|
6
|
|
1402
1405
|
/* CLASS, STYLE */
|
|
1403
|
-
)) : t.value === "svg" ? (E(), D("svg",
|
|
1406
|
+
)) : t.value === "svg" ? (E(), D("svg", so, [
|
|
1404
1407
|
T("use", {
|
|
1405
1408
|
"xlink:href": `#${r.value.name}`
|
|
1406
|
-
}, null, 8,
|
|
1409
|
+
}, null, 8, oo)
|
|
1407
1410
|
])) : t.value === "img" ? (E(), D("img", {
|
|
1408
1411
|
key: 2,
|
|
1409
1412
|
src: r.value.name,
|
|
1410
1413
|
class: "h-[1em] w-[1em]"
|
|
1411
|
-
}, null, 8,
|
|
1414
|
+
}, null, 8, ao)) : (E(), D(
|
|
1412
1415
|
"i",
|
|
1413
1416
|
{
|
|
1414
1417
|
key: 3,
|
|
@@ -1444,7 +1447,7 @@ const Qs = Ae(Js), eo = {
|
|
|
1444
1447
|
};
|
|
1445
1448
|
}
|
|
1446
1449
|
});
|
|
1447
|
-
const
|
|
1450
|
+
const uo = /* @__PURE__ */ gt(lo, [["__scopeId", "data-v-52806adf"]]), nt = Le(uo), co = /* @__PURE__ */ J({
|
|
1448
1451
|
__name: "CloseIcon",
|
|
1449
1452
|
props: {
|
|
1450
1453
|
showBg: {
|
|
@@ -1475,7 +1478,7 @@ const lo = /* @__PURE__ */ gt(ao, [["__scopeId", "data-v-52806adf"]]), nt = Ae(l
|
|
|
1475
1478
|
));
|
|
1476
1479
|
}
|
|
1477
1480
|
});
|
|
1478
|
-
const
|
|
1481
|
+
const fo = /* @__PURE__ */ gt(co, [["__scopeId", "data-v-da39e979"]]), ho = { class: "base-header" }, go = /* @__PURE__ */ J({
|
|
1479
1482
|
__name: "IkBaseDialog",
|
|
1480
1483
|
props: /* @__PURE__ */ bt({
|
|
1481
1484
|
title: { default: "" },
|
|
@@ -1500,7 +1503,7 @@ const co = /* @__PURE__ */ gt(uo, [["__scopeId", "data-v-da39e979"]]), fo = { cl
|
|
|
1500
1503
|
t.value = !t.value;
|
|
1501
1504
|
}, i = J({
|
|
1502
1505
|
setup() {
|
|
1503
|
-
return () =>
|
|
1506
|
+
return () => sr(fo, {
|
|
1504
1507
|
showBg: o.showCloseBg,
|
|
1505
1508
|
fullscreen: o.fullscreen
|
|
1506
1509
|
});
|
|
@@ -1517,7 +1520,7 @@ const co = /* @__PURE__ */ gt(uo, [["__scopeId", "data-v-da39e979"]]), fo = { cl
|
|
|
1517
1520
|
class: `ik-base-dialog ${n.noHeader ? "no-header" : ""} ${n.noFooter ? "no-footer" : ""}`,
|
|
1518
1521
|
fullscreen: t.value,
|
|
1519
1522
|
"modal-class": "baseDialog"
|
|
1520
|
-
}),
|
|
1523
|
+
}), or({
|
|
1521
1524
|
icon: Y(() => [
|
|
1522
1525
|
ve(n.$slots, "title", {}, () => [
|
|
1523
1526
|
st(
|
|
@@ -1528,7 +1531,7 @@ const co = /* @__PURE__ */ gt(uo, [["__scopeId", "data-v-da39e979"]]), fo = { cl
|
|
|
1528
1531
|
])
|
|
1529
1532
|
]),
|
|
1530
1533
|
header: Y(() => [
|
|
1531
|
-
T("div",
|
|
1534
|
+
T("div", ho, [
|
|
1532
1535
|
ve(n.$slots, "header", {}, () => [
|
|
1533
1536
|
st(
|
|
1534
1537
|
xe(n.title),
|
|
@@ -1562,12 +1565,12 @@ const co = /* @__PURE__ */ gt(uo, [["__scopeId", "data-v-da39e979"]]), fo = { cl
|
|
|
1562
1565
|
};
|
|
1563
1566
|
}
|
|
1564
1567
|
});
|
|
1565
|
-
const
|
|
1566
|
-
var
|
|
1568
|
+
const po = Le(go);
|
|
1569
|
+
var vo = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
1567
1570
|
function gi(a) {
|
|
1568
1571
|
return a && a.__esModule && Object.prototype.hasOwnProperty.call(a, "default") ? a.default : a;
|
|
1569
1572
|
}
|
|
1570
|
-
function
|
|
1573
|
+
function mo(a, o, r, t) {
|
|
1571
1574
|
function e(i) {
|
|
1572
1575
|
return i instanceof r ? i : new r(function(n) {
|
|
1573
1576
|
n(i);
|
|
@@ -1594,7 +1597,7 @@ function vo(a, o, r, t) {
|
|
|
1594
1597
|
u((t = t.apply(a, o || [])).next());
|
|
1595
1598
|
});
|
|
1596
1599
|
}
|
|
1597
|
-
function
|
|
1600
|
+
function yo(a, o) {
|
|
1598
1601
|
var r = { label: 0, sent: function() {
|
|
1599
1602
|
if (i[0] & 1)
|
|
1600
1603
|
throw i[1];
|
|
@@ -1659,9 +1662,9 @@ function mo(a, o) {
|
|
|
1659
1662
|
return { value: u[0] ? u[1] : void 0, done: !0 };
|
|
1660
1663
|
}
|
|
1661
1664
|
}
|
|
1662
|
-
var
|
|
1663
|
-
return
|
|
1664
|
-
return
|
|
1665
|
+
var _o = function(a, o) {
|
|
1666
|
+
return mo(void 0, void 0, void 0, function() {
|
|
1667
|
+
return yo(this, function(r) {
|
|
1665
1668
|
return [2, new Promise(function(t, e) {
|
|
1666
1669
|
try {
|
|
1667
1670
|
if (window.DocsAPI)
|
|
@@ -1673,12 +1676,12 @@ var yo = function(a, o) {
|
|
|
1673
1676
|
if (!l) {
|
|
1674
1677
|
if (clearInterval(n), window.DocsAPI)
|
|
1675
1678
|
return t(null);
|
|
1676
|
-
var u =
|
|
1679
|
+
var u = Ni(o, a, t, e);
|
|
1677
1680
|
i.remove(), document.body.appendChild(u);
|
|
1678
1681
|
}
|
|
1679
1682
|
}, 500);
|
|
1680
1683
|
else {
|
|
1681
|
-
var s =
|
|
1684
|
+
var s = Ni(o, a, t, e);
|
|
1682
1685
|
document.body.appendChild(s);
|
|
1683
1686
|
}
|
|
1684
1687
|
} catch (l) {
|
|
@@ -1687,7 +1690,7 @@ var yo = function(a, o) {
|
|
|
1687
1690
|
})];
|
|
1688
1691
|
});
|
|
1689
1692
|
});
|
|
1690
|
-
},
|
|
1693
|
+
}, Ni = function(a, o, r, t) {
|
|
1691
1694
|
var e = document.createElement("script");
|
|
1692
1695
|
return e.id = a, e.type = "text/javascript", e.src = o, e.async = !0, e.onload = function() {
|
|
1693
1696
|
e.removeAttribute("loading"), r(null);
|
|
@@ -1749,7 +1752,7 @@ var yo = function(a, o) {
|
|
|
1749
1752
|
var a = this, o = this.documentServerUrl;
|
|
1750
1753
|
o.endsWith("/") || (o += "/");
|
|
1751
1754
|
var r = "".concat(o, "web-apps/apps/api/documents/api.js");
|
|
1752
|
-
|
|
1755
|
+
_o(r, "onlyoffice-api-script").then(function() {
|
|
1753
1756
|
return a.onLoad();
|
|
1754
1757
|
}).catch(function() {
|
|
1755
1758
|
a.onError(-2);
|
|
@@ -1863,13 +1866,13 @@ var yo = function(a, o) {
|
|
|
1863
1866
|
}
|
|
1864
1867
|
}
|
|
1865
1868
|
});
|
|
1866
|
-
const
|
|
1869
|
+
const Co = ["id"];
|
|
1867
1870
|
function ko(a, o, r, t, e, i) {
|
|
1868
|
-
return E(), D("div", { id: a.id }, null, 8,
|
|
1871
|
+
return E(), D("div", { id: a.id }, null, 8, Co);
|
|
1869
1872
|
}
|
|
1870
1873
|
pi.render = ko;
|
|
1871
1874
|
pi.__file = "src/components/DocumentEditor.vue";
|
|
1872
|
-
const
|
|
1875
|
+
const wo = /* @__PURE__ */ J({
|
|
1873
1876
|
__name: "IkOnlyOffice",
|
|
1874
1877
|
props: {
|
|
1875
1878
|
// 文件服务器的服务的地址
|
|
@@ -1917,55 +1920,55 @@ const Co = /* @__PURE__ */ J({
|
|
|
1917
1920
|
));
|
|
1918
1921
|
}
|
|
1919
1922
|
});
|
|
1920
|
-
const
|
|
1921
|
-
var
|
|
1922
|
-
const
|
|
1923
|
+
const bo = /* @__PURE__ */ gt(wo, [["__scopeId", "data-v-98d51ef9"]]), To = Le(bo);
|
|
1924
|
+
var Bi;
|
|
1925
|
+
const Sn = typeof window < "u", Eo = (a) => typeof a == "string", So = () => {
|
|
1923
1926
|
};
|
|
1924
|
-
|
|
1925
|
-
function
|
|
1927
|
+
Sn && ((Bi = window == null ? void 0 : window.navigator) != null && Bi.userAgent) && /iP(ad|hone|od)/.test(window.navigator.userAgent);
|
|
1928
|
+
function xn(a) {
|
|
1926
1929
|
return typeof a == "function" ? a() : S(a);
|
|
1927
1930
|
}
|
|
1928
|
-
function So(a) {
|
|
1929
|
-
return a;
|
|
1930
|
-
}
|
|
1931
1931
|
function xo(a) {
|
|
1932
|
-
return
|
|
1932
|
+
return a;
|
|
1933
1933
|
}
|
|
1934
1934
|
function Io(a) {
|
|
1935
|
+
return ar() ? (lr(a), !0) : !1;
|
|
1936
|
+
}
|
|
1937
|
+
function Po(a) {
|
|
1935
1938
|
var o;
|
|
1936
|
-
const r =
|
|
1939
|
+
const r = xn(a);
|
|
1937
1940
|
return (o = r == null ? void 0 : r.$el) != null ? o : r;
|
|
1938
1941
|
}
|
|
1939
|
-
const
|
|
1942
|
+
const Lo = Sn ? window : void 0;
|
|
1940
1943
|
function mt(...a) {
|
|
1941
1944
|
let o, r, t, e;
|
|
1942
|
-
if (
|
|
1943
|
-
return
|
|
1945
|
+
if (Eo(a[0]) || Array.isArray(a[0]) ? ([r, t, e] = a, o = Lo) : [o, r, t, e] = a, !o)
|
|
1946
|
+
return So;
|
|
1944
1947
|
Array.isArray(r) || (r = [r]), Array.isArray(t) || (t = [t]);
|
|
1945
1948
|
const i = [], n = () => {
|
|
1946
1949
|
i.forEach((c) => c()), i.length = 0;
|
|
1947
|
-
}, s = (c, h, d, p) => (c.addEventListener(h, d, p), () => c.removeEventListener(h, d, p)), l = ft(() => [
|
|
1950
|
+
}, s = (c, h, d, p) => (c.addEventListener(h, d, p), () => c.removeEventListener(h, d, p)), l = ft(() => [Po(o), xn(e)], ([c, h]) => {
|
|
1948
1951
|
n(), c && i.push(...r.flatMap((d) => t.map((p) => s(c, d, p, h))));
|
|
1949
1952
|
}, { immediate: !0, flush: "post" }), u = () => {
|
|
1950
1953
|
l(), n();
|
|
1951
1954
|
};
|
|
1952
|
-
return
|
|
1955
|
+
return Io(u), u;
|
|
1953
1956
|
}
|
|
1954
|
-
const
|
|
1955
|
-
|
|
1956
|
-
var
|
|
1957
|
+
const Hi = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ui = "__vueuse_ssr_handlers__";
|
|
1958
|
+
Hi[Ui] = Hi[Ui] || {};
|
|
1959
|
+
var zi;
|
|
1957
1960
|
(function(a) {
|
|
1958
1961
|
a.UP = "UP", a.RIGHT = "RIGHT", a.DOWN = "DOWN", a.LEFT = "LEFT", a.NONE = "NONE";
|
|
1959
|
-
})(
|
|
1960
|
-
var Ao = Object.defineProperty,
|
|
1962
|
+
})(zi || (zi = {}));
|
|
1963
|
+
var Ao = Object.defineProperty, Vi = Object.getOwnPropertySymbols, Do = Object.prototype.hasOwnProperty, Oo = Object.prototype.propertyIsEnumerable, ji = (a, o, r) => o in a ? Ao(a, o, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[o] = r, Ro = (a, o) => {
|
|
1961
1964
|
for (var r in o || (o = {}))
|
|
1962
|
-
|
|
1963
|
-
if (
|
|
1964
|
-
for (var r of
|
|
1965
|
-
|
|
1965
|
+
Do.call(o, r) && ji(a, r, o[r]);
|
|
1966
|
+
if (Vi)
|
|
1967
|
+
for (var r of Vi(o))
|
|
1968
|
+
Oo.call(o, r) && ji(a, r, o[r]);
|
|
1966
1969
|
return a;
|
|
1967
1970
|
};
|
|
1968
|
-
const
|
|
1971
|
+
const Mo = {
|
|
1969
1972
|
easeInSine: [0.12, 0, 0.39, 0],
|
|
1970
1973
|
easeOutSine: [0.61, 1, 0.88, 1],
|
|
1971
1974
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
@@ -1991,10 +1994,10 @@ const Ro = {
|
|
|
1991
1994
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
1992
1995
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
1993
1996
|
};
|
|
1994
|
-
|
|
1995
|
-
linear:
|
|
1996
|
-
},
|
|
1997
|
-
const
|
|
1997
|
+
Ro({
|
|
1998
|
+
linear: xo
|
|
1999
|
+
}, Mo);
|
|
2000
|
+
const Fo = {
|
|
1998
2001
|
/**
|
|
1999
2002
|
* @description preview link list.
|
|
2000
2003
|
*/
|
|
@@ -2064,32 +2067,32 @@ const Mo = {
|
|
|
2064
2067
|
crossorigin: {
|
|
2065
2068
|
type: ["anonymous", "use-credentials", ""]
|
|
2066
2069
|
}
|
|
2067
|
-
},
|
|
2070
|
+
}, No = {
|
|
2068
2071
|
close: () => !0,
|
|
2069
2072
|
switch: (a) => ri.isNumber(a),
|
|
2070
2073
|
rotate: (a) => ri.isNumber(a)
|
|
2071
|
-
},
|
|
2074
|
+
}, Bo = ["src", "crossorigin"], Ho = /* @__PURE__ */ J({
|
|
2072
2075
|
name: "ElImageViewer",
|
|
2073
2076
|
__name: "IkImageViewer",
|
|
2074
|
-
props:
|
|
2075
|
-
emits:
|
|
2077
|
+
props: Fo,
|
|
2078
|
+
emits: No,
|
|
2076
2079
|
setup(a, { expose: o, emit: r }) {
|
|
2077
2080
|
const t = (N) => Object.keys(N), e = {
|
|
2078
2081
|
CONTAIN: {
|
|
2079
2082
|
name: "contain",
|
|
2080
|
-
icon: Ri(
|
|
2083
|
+
icon: Ri(Ds)
|
|
2081
2084
|
},
|
|
2082
2085
|
ORIGINAL: {
|
|
2083
2086
|
name: "original",
|
|
2084
|
-
icon: Ri(
|
|
2087
|
+
icon: Ri(Bs)
|
|
2085
2088
|
}
|
|
2086
|
-
}, i = a, n = r, { t: s } =
|
|
2089
|
+
}, i = a, n = r, { t: s } = vr(), l = wn("image-viewer"), { nextZIndex: u } = mr(), c = ge(), h = ge([]), d = ur(), p = ge(!0), g = ge(i.initialIndex), m = cr(e.CONTAIN), y = ge({
|
|
2087
2090
|
scale: 1,
|
|
2088
2091
|
deg: 0,
|
|
2089
2092
|
offsetX: 0,
|
|
2090
2093
|
offsetY: 0,
|
|
2091
2094
|
enableTransition: !1
|
|
2092
|
-
}),
|
|
2095
|
+
}), k = ge(i.zIndex ?? u()), b = X(() => {
|
|
2093
2096
|
const { urlList: N } = i;
|
|
2094
2097
|
return N.length <= 1;
|
|
2095
2098
|
}), w = X(() => g.value === 0), P = X(() => g.value === i.urlList.length - 1), F = X(() => i.urlList[g.value]), U = X(() => [
|
|
@@ -2102,11 +2105,11 @@ const Mo = {
|
|
|
2102
2105
|
l.is("disabled", !i.infinite && P.value)
|
|
2103
2106
|
]), te = X(() => {
|
|
2104
2107
|
const { scale: N, deg: W, offsetX: q, offsetY: pe, enableTransition: _e } = y.value;
|
|
2105
|
-
let
|
|
2108
|
+
let Ce = q / N, Ae = pe / N;
|
|
2106
2109
|
const at = W * Math.PI / 180, Di = Math.cos(at), Oi = Math.sin(at);
|
|
2107
|
-
|
|
2110
|
+
Ce = Ce * Di + Ae * Oi, Ae = Ae * Di - q / N * Oi;
|
|
2108
2111
|
const Ut = {
|
|
2109
|
-
transform: `scale(${N}) rotate(${W}deg) translate(${
|
|
2112
|
+
transform: `scale(${N}) rotate(${W}deg) translate(${Ce}px, ${Ae}px)`,
|
|
2110
2113
|
transition: _e ? "transform .3s" : ""
|
|
2111
2114
|
};
|
|
2112
2115
|
return m.value.name === e.CONTAIN.name && (Ut.maxWidth = Ut.maxHeight = "100%"), Ut;
|
|
@@ -2124,13 +2127,13 @@ const Mo = {
|
|
|
2124
2127
|
Pi();
|
|
2125
2128
|
break;
|
|
2126
2129
|
case Xe.left:
|
|
2127
|
-
|
|
2130
|
+
Li();
|
|
2128
2131
|
break;
|
|
2129
2132
|
case Xe.up:
|
|
2130
2133
|
ze("zoomIn");
|
|
2131
2134
|
break;
|
|
2132
2135
|
case Xe.right:
|
|
2133
|
-
|
|
2136
|
+
Ai();
|
|
2134
2137
|
break;
|
|
2135
2138
|
case Xe.down:
|
|
2136
2139
|
ze("zoomOut");
|
|
@@ -2160,15 +2163,15 @@ const Mo = {
|
|
|
2160
2163
|
if (p.value || N.button !== 0 || !c.value)
|
|
2161
2164
|
return;
|
|
2162
2165
|
y.value.enableTransition = !1;
|
|
2163
|
-
const { offsetX: W, offsetY: q } = y.value, pe = N.pageX, _e = N.pageY,
|
|
2166
|
+
const { offsetX: W, offsetY: q } = y.value, pe = N.pageX, _e = N.pageY, Ce = zt.throttle((at) => {
|
|
2164
2167
|
y.value = {
|
|
2165
2168
|
...y.value,
|
|
2166
2169
|
offsetX: W + at.pageX - pe,
|
|
2167
2170
|
offsetY: q + at.pageY - _e
|
|
2168
2171
|
};
|
|
2169
|
-
}),
|
|
2172
|
+
}), Ae = mt(document, "mousemove", Ce);
|
|
2170
2173
|
mt(document, "mouseup", () => {
|
|
2171
|
-
|
|
2174
|
+
Ae();
|
|
2172
2175
|
}), N.preventDefault();
|
|
2173
2176
|
}
|
|
2174
2177
|
function Ii() {
|
|
@@ -2183,23 +2186,23 @@ const Mo = {
|
|
|
2183
2186
|
function Pi() {
|
|
2184
2187
|
if (p.value)
|
|
2185
2188
|
return;
|
|
2186
|
-
const N = t(e), W = Object.values(e), q = m.value.name, _e = ((W == null ? void 0 : W.findIndex((
|
|
2189
|
+
const N = t(e), W = Object.values(e), q = m.value.name, _e = ((W == null ? void 0 : W.findIndex((Ce) => Ce.name === q)) + 1) % N.length;
|
|
2187
2190
|
m.value = e[N[_e]], Ii();
|
|
2188
2191
|
}
|
|
2189
2192
|
function Ht(N) {
|
|
2190
2193
|
const W = i.urlList.length;
|
|
2191
2194
|
g.value = (N + W) % W;
|
|
2192
2195
|
}
|
|
2193
|
-
function
|
|
2196
|
+
function Li() {
|
|
2194
2197
|
w.value && !i.infinite || Ht(g.value - 1);
|
|
2195
2198
|
}
|
|
2196
|
-
function
|
|
2199
|
+
function Ai() {
|
|
2197
2200
|
P.value && !i.infinite || Ht(g.value + 1);
|
|
2198
2201
|
}
|
|
2199
2202
|
function ze(N, W = {}) {
|
|
2200
2203
|
if (p.value)
|
|
2201
2204
|
return;
|
|
2202
|
-
const { minScale: q, maxScale: pe } = i, { zoomRate: _e, rotateDeg:
|
|
2205
|
+
const { minScale: q, maxScale: pe } = i, { zoomRate: _e, rotateDeg: Ce, enableTransition: Ae } = {
|
|
2203
2206
|
zoomRate: i.zoomRate,
|
|
2204
2207
|
rotateDeg: 90,
|
|
2205
2208
|
enableTransition: !0,
|
|
@@ -2217,13 +2220,13 @@ const Mo = {
|
|
|
2217
2220
|
));
|
|
2218
2221
|
break;
|
|
2219
2222
|
case "clockwise":
|
|
2220
|
-
y.value.deg +=
|
|
2223
|
+
y.value.deg += Ce, n("rotate", y.value.deg);
|
|
2221
2224
|
break;
|
|
2222
2225
|
case "anticlockwise":
|
|
2223
|
-
y.value.deg -=
|
|
2226
|
+
y.value.deg -= Ce, n("rotate", y.value.deg);
|
|
2224
2227
|
break;
|
|
2225
2228
|
}
|
|
2226
|
-
y.value.enableTransition =
|
|
2229
|
+
y.value.enableTransition = Ae;
|
|
2227
2230
|
}
|
|
2228
2231
|
return ft(F, () => {
|
|
2229
2232
|
di(() => {
|
|
@@ -2232,7 +2235,7 @@ const Mo = {
|
|
|
2232
2235
|
});
|
|
2233
2236
|
}), ft(g, (N) => {
|
|
2234
2237
|
Ii(), n("switch", N);
|
|
2235
|
-
}),
|
|
2238
|
+
}), fr(() => {
|
|
2236
2239
|
var N, W;
|
|
2237
2240
|
z(), (W = (N = c.value) == null ? void 0 : N.focus) == null || W.call(N);
|
|
2238
2241
|
}), o({
|
|
@@ -2240,7 +2243,7 @@ const Mo = {
|
|
|
2240
2243
|
* @description manually switch image
|
|
2241
2244
|
*/
|
|
2242
2245
|
setActiveItem: Ht
|
|
2243
|
-
}), (N, W) => (E(), ae(
|
|
2246
|
+
}), (N, W) => (E(), ae(Cn, { to: "body" }, [
|
|
2244
2247
|
G(kn, {
|
|
2245
2248
|
name: "viewer-fade",
|
|
2246
2249
|
appear: ""
|
|
@@ -2253,7 +2256,7 @@ const Mo = {
|
|
|
2253
2256
|
ref: c,
|
|
2254
2257
|
tabindex: -1,
|
|
2255
2258
|
class: K(S(l).e("wrapper")),
|
|
2256
|
-
style: ce({ zIndex:
|
|
2259
|
+
style: ce({ zIndex: k.value })
|
|
2257
2260
|
},
|
|
2258
2261
|
[
|
|
2259
2262
|
T(
|
|
@@ -2276,7 +2279,7 @@ const Mo = {
|
|
|
2276
2279
|
[
|
|
2277
2280
|
G(S(De), null, {
|
|
2278
2281
|
default: Y(() => [
|
|
2279
|
-
G(S(
|
|
2282
|
+
G(S(Tn))
|
|
2280
2283
|
]),
|
|
2281
2284
|
_: 1
|
|
2282
2285
|
/* STABLE */
|
|
@@ -2294,12 +2297,12 @@ const Mo = {
|
|
|
2294
2297
|
"span",
|
|
2295
2298
|
{
|
|
2296
2299
|
class: K(U.value),
|
|
2297
|
-
onClick:
|
|
2300
|
+
onClick: Li
|
|
2298
2301
|
},
|
|
2299
2302
|
[
|
|
2300
2303
|
G(S(De), null, {
|
|
2301
2304
|
default: Y(() => [
|
|
2302
|
-
G(S(
|
|
2305
|
+
G(S(xs))
|
|
2303
2306
|
]),
|
|
2304
2307
|
_: 1
|
|
2305
2308
|
/* STABLE */
|
|
@@ -2312,12 +2315,12 @@ const Mo = {
|
|
|
2312
2315
|
"span",
|
|
2313
2316
|
{
|
|
2314
2317
|
class: K(R.value),
|
|
2315
|
-
onClick:
|
|
2318
|
+
onClick: Ai
|
|
2316
2319
|
},
|
|
2317
2320
|
[
|
|
2318
2321
|
G(S(De), null, {
|
|
2319
2322
|
default: Y(() => [
|
|
2320
|
-
G(S(
|
|
2323
|
+
G(S(Ps))
|
|
2321
2324
|
]),
|
|
2322
2325
|
_: 1
|
|
2323
2326
|
/* STABLE */
|
|
@@ -2347,7 +2350,7 @@ const Mo = {
|
|
|
2347
2350
|
onClick: W[1] || (W[1] = (q) => ze("zoomOut"))
|
|
2348
2351
|
}, {
|
|
2349
2352
|
default: Y(() => [
|
|
2350
|
-
G(S(
|
|
2353
|
+
G(S(Vs))
|
|
2351
2354
|
]),
|
|
2352
2355
|
_: 1
|
|
2353
2356
|
/* STABLE */
|
|
@@ -2356,7 +2359,7 @@ const Mo = {
|
|
|
2356
2359
|
onClick: W[2] || (W[2] = (q) => ze("zoomIn"))
|
|
2357
2360
|
}, {
|
|
2358
2361
|
default: Y(() => [
|
|
2359
|
-
G(S(
|
|
2362
|
+
G(S(Us))
|
|
2360
2363
|
]),
|
|
2361
2364
|
_: 1
|
|
2362
2365
|
/* STABLE */
|
|
@@ -2372,7 +2375,7 @@ const Mo = {
|
|
|
2372
2375
|
),
|
|
2373
2376
|
G(S(De), { onClick: Pi }, {
|
|
2374
2377
|
default: Y(() => [
|
|
2375
|
-
(E(), ae(
|
|
2378
|
+
(E(), ae(hr(m.value.icon)))
|
|
2376
2379
|
]),
|
|
2377
2380
|
_: 1
|
|
2378
2381
|
/* STABLE */
|
|
@@ -2390,7 +2393,7 @@ const Mo = {
|
|
|
2390
2393
|
onClick: W[3] || (W[3] = (q) => ze("anticlockwise"))
|
|
2391
2394
|
}, {
|
|
2392
2395
|
default: Y(() => [
|
|
2393
|
-
G(S(
|
|
2396
|
+
G(S(Rs))
|
|
2394
2397
|
]),
|
|
2395
2398
|
_: 1
|
|
2396
2399
|
/* STABLE */
|
|
@@ -2399,7 +2402,7 @@ const Mo = {
|
|
|
2399
2402
|
onClick: W[4] || (W[4] = (q) => ze("clockwise"))
|
|
2400
2403
|
}, {
|
|
2401
2404
|
default: Y(() => [
|
|
2402
|
-
G(S(
|
|
2405
|
+
G(S(Fs))
|
|
2403
2406
|
]),
|
|
2404
2407
|
_: 1
|
|
2405
2408
|
/* STABLE */
|
|
@@ -2422,7 +2425,7 @@ const Mo = {
|
|
|
2422
2425
|
(E(!0), D(
|
|
2423
2426
|
Fe,
|
|
2424
2427
|
null,
|
|
2425
|
-
wt(N.urlList, (q, pe) =>
|
|
2428
|
+
wt(N.urlList, (q, pe) => dr((E(), D("img", {
|
|
2426
2429
|
ref_for: !0,
|
|
2427
2430
|
ref: (_e) => h.value[pe] = _e,
|
|
2428
2431
|
key: q,
|
|
@@ -2433,8 +2436,8 @@ const Mo = {
|
|
|
2433
2436
|
onLoad: le,
|
|
2434
2437
|
onError: ue,
|
|
2435
2438
|
onMousedown: be
|
|
2436
|
-
}, null, 46,
|
|
2437
|
-
[
|
|
2439
|
+
}, null, 46, Bo)), [
|
|
2440
|
+
[gr, pe === g.value]
|
|
2438
2441
|
])),
|
|
2439
2442
|
128
|
|
2440
2443
|
/* KEYED_FRAGMENT */
|
|
@@ -2454,8 +2457,8 @@ const Mo = {
|
|
|
2454
2457
|
})
|
|
2455
2458
|
]));
|
|
2456
2459
|
}
|
|
2457
|
-
}),
|
|
2458
|
-
function
|
|
2460
|
+
}), Uo = Le(Ho);
|
|
2461
|
+
function Wi(a, o) {
|
|
2459
2462
|
var r = Object.keys(a);
|
|
2460
2463
|
if (Object.getOwnPropertySymbols) {
|
|
2461
2464
|
var t = Object.getOwnPropertySymbols(a);
|
|
@@ -2468,9 +2471,9 @@ function ji(a, o) {
|
|
|
2468
2471
|
function Z(a) {
|
|
2469
2472
|
for (var o = 1; o < arguments.length; o++) {
|
|
2470
2473
|
var r = arguments[o] != null ? arguments[o] : {};
|
|
2471
|
-
o % 2 ?
|
|
2474
|
+
o % 2 ? Wi(Object(r), !0).forEach(function(t) {
|
|
2472
2475
|
_(a, t, r[t]);
|
|
2473
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(r)) :
|
|
2476
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(a, Object.getOwnPropertyDescriptors(r)) : Wi(Object(r)).forEach(function(t) {
|
|
2474
2477
|
Object.defineProperty(a, t, Object.getOwnPropertyDescriptor(r, t));
|
|
2475
2478
|
});
|
|
2476
2479
|
}
|
|
@@ -2488,26 +2491,26 @@ function x(a, o) {
|
|
|
2488
2491
|
if (!(a instanceof o))
|
|
2489
2492
|
throw new TypeError("Cannot call a class as a function");
|
|
2490
2493
|
}
|
|
2491
|
-
function
|
|
2494
|
+
function Gi(a, o) {
|
|
2492
2495
|
for (var r = 0; r < o.length; r++) {
|
|
2493
2496
|
var t = o[r];
|
|
2494
|
-
t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(a,
|
|
2497
|
+
t.enumerable = t.enumerable || !1, t.configurable = !0, "value" in t && (t.writable = !0), Object.defineProperty(a, In(t.key), t);
|
|
2495
2498
|
}
|
|
2496
2499
|
}
|
|
2497
2500
|
function I(a, o, r) {
|
|
2498
|
-
return o &&
|
|
2501
|
+
return o && Gi(a.prototype, o), r && Gi(a, r), Object.defineProperty(a, "prototype", {
|
|
2499
2502
|
writable: !1
|
|
2500
2503
|
}), a;
|
|
2501
2504
|
}
|
|
2502
2505
|
function _(a, o, r) {
|
|
2503
|
-
return o =
|
|
2506
|
+
return o = In(o), o in a ? Object.defineProperty(a, o, {
|
|
2504
2507
|
value: r,
|
|
2505
2508
|
enumerable: !0,
|
|
2506
2509
|
configurable: !0,
|
|
2507
2510
|
writable: !0
|
|
2508
2511
|
}) : a[o] = r, a;
|
|
2509
2512
|
}
|
|
2510
|
-
function
|
|
2513
|
+
function L(a, o) {
|
|
2511
2514
|
if (typeof o != "function" && o !== null)
|
|
2512
2515
|
throw new TypeError("Super expression must either be null or a function");
|
|
2513
2516
|
a.prototype = Object.create(o && o.prototype, {
|
|
@@ -2530,7 +2533,7 @@ function oi(a, o) {
|
|
|
2530
2533
|
return t.__proto__ = e, t;
|
|
2531
2534
|
}, oi(a, o);
|
|
2532
2535
|
}
|
|
2533
|
-
function
|
|
2536
|
+
function zo() {
|
|
2534
2537
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
2535
2538
|
return !1;
|
|
2536
2539
|
if (typeof Proxy == "function")
|
|
@@ -2554,8 +2557,8 @@ function vi(a, o) {
|
|
|
2554
2557
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
2555
2558
|
return v(a);
|
|
2556
2559
|
}
|
|
2557
|
-
function
|
|
2558
|
-
var o =
|
|
2560
|
+
function A(a) {
|
|
2561
|
+
var o = zo();
|
|
2559
2562
|
return function() {
|
|
2560
2563
|
var t = O(a), e;
|
|
2561
2564
|
if (o) {
|
|
@@ -2566,14 +2569,14 @@ function L(a) {
|
|
|
2566
2569
|
return vi(this, e);
|
|
2567
2570
|
};
|
|
2568
2571
|
}
|
|
2569
|
-
function
|
|
2572
|
+
function Vo(a, o) {
|
|
2570
2573
|
for (; !Object.prototype.hasOwnProperty.call(a, o) && (a = O(a), a !== null); )
|
|
2571
2574
|
;
|
|
2572
2575
|
return a;
|
|
2573
2576
|
}
|
|
2574
2577
|
function M() {
|
|
2575
2578
|
return typeof Reflect < "u" && Reflect.get ? M = Reflect.get.bind() : M = function(o, r, t) {
|
|
2576
|
-
var e =
|
|
2579
|
+
var e = Vo(o, r);
|
|
2577
2580
|
if (e) {
|
|
2578
2581
|
var i = Object.getOwnPropertyDescriptor(e, r);
|
|
2579
2582
|
return i.get ? i.get.call(arguments.length < 3 ? o : t) : i.value;
|
|
@@ -2581,17 +2584,17 @@ function M() {
|
|
|
2581
2584
|
}, M.apply(this, arguments);
|
|
2582
2585
|
}
|
|
2583
2586
|
function me(a) {
|
|
2584
|
-
return
|
|
2587
|
+
return jo(a) || Wo(a) || Go(a) || $o();
|
|
2585
2588
|
}
|
|
2586
|
-
function
|
|
2589
|
+
function jo(a) {
|
|
2587
2590
|
if (Array.isArray(a))
|
|
2588
2591
|
return ai(a);
|
|
2589
2592
|
}
|
|
2590
|
-
function
|
|
2593
|
+
function Wo(a) {
|
|
2591
2594
|
if (typeof Symbol < "u" && a[Symbol.iterator] != null || a["@@iterator"] != null)
|
|
2592
2595
|
return Array.from(a);
|
|
2593
2596
|
}
|
|
2594
|
-
function
|
|
2597
|
+
function Go(a, o) {
|
|
2595
2598
|
if (a) {
|
|
2596
2599
|
if (typeof a == "string")
|
|
2597
2600
|
return ai(a, o);
|
|
@@ -2608,11 +2611,11 @@ function ai(a, o) {
|
|
|
2608
2611
|
t[r] = a[r];
|
|
2609
2612
|
return t;
|
|
2610
2613
|
}
|
|
2611
|
-
function
|
|
2614
|
+
function $o() {
|
|
2612
2615
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2613
2616
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2614
2617
|
}
|
|
2615
|
-
function
|
|
2618
|
+
function Ko(a, o) {
|
|
2616
2619
|
if (typeof a != "object" || a === null)
|
|
2617
2620
|
return a;
|
|
2618
2621
|
var r = a[Symbol.toPrimitive];
|
|
@@ -2624,11 +2627,11 @@ function $o(a, o) {
|
|
|
2624
2627
|
}
|
|
2625
2628
|
return (o === "string" ? String : Number)(a);
|
|
2626
2629
|
}
|
|
2627
|
-
function
|
|
2628
|
-
var o =
|
|
2630
|
+
function In(a) {
|
|
2631
|
+
var o = Ko(a, "string");
|
|
2629
2632
|
return typeof o == "symbol" ? o : String(o);
|
|
2630
2633
|
}
|
|
2631
|
-
var
|
|
2634
|
+
var Pn = { exports: {} };
|
|
2632
2635
|
(function(a) {
|
|
2633
2636
|
var o = Object.prototype.hasOwnProperty, r = "~";
|
|
2634
2637
|
function t() {
|
|
@@ -2672,9 +2675,9 @@ var In = { exports: {} };
|
|
|
2672
2675
|
var m = r ? r + u : u;
|
|
2673
2676
|
if (!this._events[m])
|
|
2674
2677
|
return !1;
|
|
2675
|
-
var y = this._events[m],
|
|
2678
|
+
var y = this._events[m], k = arguments.length, b, w;
|
|
2676
2679
|
if (y.fn) {
|
|
2677
|
-
switch (y.once && this.removeListener(u, y.fn, void 0, !0),
|
|
2680
|
+
switch (y.once && this.removeListener(u, y.fn, void 0, !0), k) {
|
|
2678
2681
|
case 1:
|
|
2679
2682
|
return y.fn.call(y.context), !0;
|
|
2680
2683
|
case 2:
|
|
@@ -2688,13 +2691,13 @@ var In = { exports: {} };
|
|
|
2688
2691
|
case 6:
|
|
2689
2692
|
return y.fn.call(y.context, c, h, d, p, g), !0;
|
|
2690
2693
|
}
|
|
2691
|
-
for (w = 1, b = new Array(
|
|
2694
|
+
for (w = 1, b = new Array(k - 1); w < k; w++)
|
|
2692
2695
|
b[w - 1] = arguments[w];
|
|
2693
2696
|
y.fn.apply(y.context, b);
|
|
2694
2697
|
} else {
|
|
2695
2698
|
var P = y.length, F;
|
|
2696
2699
|
for (w = 0; w < P; w++)
|
|
2697
|
-
switch (y[w].once && this.removeListener(u, y[w].fn, void 0, !0),
|
|
2700
|
+
switch (y[w].once && this.removeListener(u, y[w].fn, void 0, !0), k) {
|
|
2698
2701
|
case 1:
|
|
2699
2702
|
y[w].fn.call(y[w].context);
|
|
2700
2703
|
break;
|
|
@@ -2709,7 +2712,7 @@ var In = { exports: {} };
|
|
|
2709
2712
|
break;
|
|
2710
2713
|
default:
|
|
2711
2714
|
if (!b)
|
|
2712
|
-
for (F = 1, b = new Array(
|
|
2715
|
+
for (F = 1, b = new Array(k - 1); F < k; F++)
|
|
2713
2716
|
b[F - 1] = arguments[F];
|
|
2714
2717
|
y[w].fn.apply(y[w].context, b);
|
|
2715
2718
|
}
|
|
@@ -2729,7 +2732,7 @@ var In = { exports: {} };
|
|
|
2729
2732
|
if (g.fn)
|
|
2730
2733
|
g.fn === c && (!d || g.once) && (!h || g.context === h) && n(this, p);
|
|
2731
2734
|
else {
|
|
2732
|
-
for (var m = 0, y = [],
|
|
2735
|
+
for (var m = 0, y = [], k = g.length; m < k; m++)
|
|
2733
2736
|
(g[m].fn !== c || d && !g[m].once || h && g[m].context !== h) && y.push(g[m]);
|
|
2734
2737
|
y.length ? this._events[p] = y.length === 1 ? y[0] : y : n(this, p);
|
|
2735
2738
|
}
|
|
@@ -2738,16 +2741,16 @@ var In = { exports: {} };
|
|
|
2738
2741
|
var c;
|
|
2739
2742
|
return u ? (c = r ? r + u : u, this._events[c] && n(this, c)) : (this._events = new t(), this._eventsCount = 0), this;
|
|
2740
2743
|
}, s.prototype.off = s.prototype.removeListener, s.prototype.addListener = s.prototype.on, s.prefixed = r, s.EventEmitter = s, a.exports = s;
|
|
2741
|
-
})(
|
|
2742
|
-
var
|
|
2743
|
-
const An = /* @__PURE__ */ gi(
|
|
2744
|
-
var
|
|
2744
|
+
})(Pn);
|
|
2745
|
+
var Ln = Pn.exports;
|
|
2746
|
+
const An = /* @__PURE__ */ gi(Ln);
|
|
2747
|
+
var Yo = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, Vt = {
|
|
2745
2748
|
info: "color: #525252; background-color: #90ee90;",
|
|
2746
2749
|
error: "color: #525252; background-color: red;",
|
|
2747
2750
|
warn: "color: #525252; background-color: yellow; "
|
|
2748
2751
|
}, jt = "%c[xgplayer]", H = {
|
|
2749
2752
|
config: {
|
|
2750
|
-
debug:
|
|
2753
|
+
debug: Yo ? 3 : 0
|
|
2751
2754
|
},
|
|
2752
2755
|
logInfo: function(o) {
|
|
2753
2756
|
for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
@@ -2768,10 +2771,10 @@ var Ko = typeof window < "u" && window.location && window.location.href.indexOf(
|
|
|
2768
2771
|
}
|
|
2769
2772
|
}
|
|
2770
2773
|
};
|
|
2771
|
-
function
|
|
2774
|
+
function Xo(a) {
|
|
2772
2775
|
a.logInfo = H.logInfo.bind(a), a.logWarn = H.logWarn.bind(a), a.logError = H.logError.bind(a);
|
|
2773
2776
|
}
|
|
2774
|
-
var
|
|
2777
|
+
var qo = /* @__PURE__ */ function() {
|
|
2775
2778
|
function a(o) {
|
|
2776
2779
|
x(this, a), this.bufferedList = o;
|
|
2777
2780
|
}
|
|
@@ -3017,7 +3020,7 @@ f.setStyleFromCsstext = function(a, o) {
|
|
|
3017
3020
|
a.style[t] = o[t];
|
|
3018
3021
|
});
|
|
3019
3022
|
};
|
|
3020
|
-
function
|
|
3023
|
+
function Zo(a, o) {
|
|
3021
3024
|
for (var r = 0, t = o.length; r < t; r++)
|
|
3022
3025
|
if (a.indexOf(o[r]) > -1)
|
|
3023
3026
|
return !0;
|
|
@@ -3031,7 +3034,7 @@ f.filterStyleFromText = function(a) {
|
|
|
3031
3034
|
return t.map(function(n) {
|
|
3032
3035
|
if (n) {
|
|
3033
3036
|
var s = n.split(":");
|
|
3034
|
-
s.length > 1 && (
|
|
3037
|
+
s.length > 1 && (Zo(s[0], o) ? e[s[0]] = s[1] : i[s[0]] = s[1]);
|
|
3035
3038
|
}
|
|
3036
3039
|
}), a.setAttribute("style", ""), Object.keys(i).map(function(n) {
|
|
3037
3040
|
a.style[n] = i[n];
|
|
@@ -3096,7 +3099,7 @@ f.getBuffered2 = function(a) {
|
|
|
3096
3099
|
}
|
|
3097
3100
|
else
|
|
3098
3101
|
e = r;
|
|
3099
|
-
return new
|
|
3102
|
+
return new qo(e);
|
|
3100
3103
|
};
|
|
3101
3104
|
f.getEventPos = function(a) {
|
|
3102
3105
|
var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
@@ -3216,15 +3219,15 @@ f.getCurrentTimeByOffset = function(a, o) {
|
|
|
3216
3219
|
}
|
|
3217
3220
|
return a;
|
|
3218
3221
|
};
|
|
3219
|
-
function
|
|
3222
|
+
function Dn(a) {
|
|
3220
3223
|
var o = se(a);
|
|
3221
3224
|
return a !== null && (o === "object" || o === "function");
|
|
3222
3225
|
}
|
|
3223
|
-
function
|
|
3226
|
+
function Jo(a, o, r) {
|
|
3224
3227
|
var t, e, i, n, s, l, u = 0, c = !1, h = !1, d = !0, p = !o && o !== 0 && typeof window.requestAnimationFrame == "function";
|
|
3225
3228
|
if (typeof a != "function")
|
|
3226
3229
|
throw new TypeError("Expected a function");
|
|
3227
|
-
o = +o || 0,
|
|
3230
|
+
o = +o || 0, Dn(r) && (c = !!r.leading, h = "maxWait" in r, i = h ? Math.max(+r.maxWait || 0, o) : i, d = "trailing" in r ? !!r.trailing : d);
|
|
3228
3231
|
function g(z) {
|
|
3229
3232
|
var ne = t, le = e;
|
|
3230
3233
|
return t = e = void 0, u = z, n = a.apply(le, ne), n;
|
|
@@ -3237,7 +3240,7 @@ function Zo(a, o, r) {
|
|
|
3237
3240
|
return window.cancelAnimationFrame(z);
|
|
3238
3241
|
clearTimeout(z);
|
|
3239
3242
|
}
|
|
3240
|
-
function
|
|
3243
|
+
function k(z) {
|
|
3241
3244
|
return u = z, s = m(P, o), c ? g(z) : n;
|
|
3242
3245
|
}
|
|
3243
3246
|
function b(z) {
|
|
@@ -3271,7 +3274,7 @@ function Zo(a, o, r) {
|
|
|
3271
3274
|
ue[be] = arguments[be];
|
|
3272
3275
|
if (t = ue, e = this, l = z, ne) {
|
|
3273
3276
|
if (s === void 0)
|
|
3274
|
-
return
|
|
3277
|
+
return k(l);
|
|
3275
3278
|
if (h)
|
|
3276
3279
|
return s = m(P, o), g(l);
|
|
3277
3280
|
}
|
|
@@ -3279,30 +3282,30 @@ function Zo(a, o, r) {
|
|
|
3279
3282
|
}
|
|
3280
3283
|
return Q.cancel = U, Q.flush = R, Q.pending = te, Q;
|
|
3281
3284
|
}
|
|
3282
|
-
function
|
|
3285
|
+
function Qo(a, o, r) {
|
|
3283
3286
|
var t = !0, e = !0;
|
|
3284
3287
|
if (typeof a != "function")
|
|
3285
3288
|
throw new TypeError("Expected a function");
|
|
3286
|
-
return
|
|
3289
|
+
return Dn(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e), Jo(a, o, {
|
|
3287
3290
|
leading: t,
|
|
3288
3291
|
trailing: e,
|
|
3289
3292
|
maxWait: o
|
|
3290
3293
|
});
|
|
3291
3294
|
}
|
|
3292
|
-
function
|
|
3295
|
+
function ea() {
|
|
3293
3296
|
var a = (document.documentElement.getAttribute("lang") || navigator.language || "zh-cn").toLocaleLowerCase();
|
|
3294
3297
|
return a === "zh-cn" && (a = "zh"), a;
|
|
3295
3298
|
}
|
|
3296
|
-
function
|
|
3299
|
+
function ta(a, o, r) {
|
|
3297
3300
|
if (a) {
|
|
3298
3301
|
var t = a.getAttribute(r);
|
|
3299
3302
|
return !!(t && t === o && (a.tagName === "VIDEO" || a.tagName === "AUDIO"));
|
|
3300
3303
|
}
|
|
3301
3304
|
}
|
|
3302
|
-
var
|
|
3305
|
+
var $i = {
|
|
3303
3306
|
android: /(Android)\s([\d.]+)/,
|
|
3304
3307
|
ios: /(Version)\/([\d.]+)/
|
|
3305
|
-
},
|
|
3308
|
+
}, 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 = {
|
|
3306
3309
|
get device() {
|
|
3307
3310
|
var a = B.os;
|
|
3308
3311
|
return a.isPc ? "pc" : "mobile";
|
|
@@ -3341,7 +3344,7 @@ var Gi = {
|
|
|
3341
3344
|
if (typeof navigator > "u")
|
|
3342
3345
|
return 0;
|
|
3343
3346
|
var a = navigator.userAgent, o = "";
|
|
3344
|
-
/(?:iPhone)|(?:iPad|PlayBook)/.test(a) ? o =
|
|
3347
|
+
/(?:iPhone)|(?:iPad|PlayBook)/.test(a) ? o = $i.ios : o = $i.android;
|
|
3345
3348
|
var r = o ? o.exec(a) : [];
|
|
3346
3349
|
if (r && r.length >= 3) {
|
|
3347
3350
|
var t = r[2].split(".");
|
|
@@ -3365,7 +3368,7 @@ var Gi = {
|
|
|
3365
3368
|
if (this.supportResult)
|
|
3366
3369
|
return this.supportResult;
|
|
3367
3370
|
var r = document.createElement("video");
|
|
3368
|
-
return typeof r.canPlayType == "function" &&
|
|
3371
|
+
return typeof r.canPlayType == "function" && ia.map(function(t) {
|
|
3369
3372
|
r.canPlayType('video/mp4; codecs="'.concat(t, '"')) === "probably" && (o.isSupport = !0, o.mime += "||".concat(t));
|
|
3370
3373
|
}), this.supportResult = o, r = null, o;
|
|
3371
3374
|
},
|
|
@@ -3404,14 +3407,14 @@ var Gi = {
|
|
|
3404
3407
|
return Promise.resolve(r);
|
|
3405
3408
|
}
|
|
3406
3409
|
}
|
|
3407
|
-
}, li = "3.0.18",
|
|
3410
|
+
}, li = "3.0.18", Ki = {
|
|
3408
3411
|
1: "media",
|
|
3409
3412
|
2: "media",
|
|
3410
3413
|
3: "media",
|
|
3411
3414
|
4: "media",
|
|
3412
3415
|
5: "media",
|
|
3413
3416
|
6: "media"
|
|
3414
|
-
},
|
|
3417
|
+
}, Yi = {
|
|
3415
3418
|
1: 5101,
|
|
3416
3419
|
2: 5102,
|
|
3417
3420
|
3: 5103,
|
|
@@ -3432,7 +3435,7 @@ var Gi = {
|
|
|
3432
3435
|
var t = o && o.i18n ? o.i18n.ERROR_TYPES : null;
|
|
3433
3436
|
if (o.media) {
|
|
3434
3437
|
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;
|
|
3435
|
-
|
|
3438
|
+
Yi[p] && (p = Yi[p]);
|
|
3436
3439
|
var g = {
|
|
3437
3440
|
playerVersion: li,
|
|
3438
3441
|
currentTime: n,
|
|
@@ -3455,26 +3458,26 @@ var Gi = {
|
|
|
3455
3458
|
for (var m = {
|
|
3456
3459
|
playerVersion: li,
|
|
3457
3460
|
domain: document.domain
|
|
3458
|
-
}, y = ["errorType", "currentTime", "duration", "networkState", "readyState", "src", "currentSrc", "ended", "errd", "errorCode", "mediaError"],
|
|
3459
|
-
m[y[
|
|
3461
|
+
}, y = ["errorType", "currentTime", "duration", "networkState", "readyState", "src", "currentSrc", "ended", "errd", "errorCode", "mediaError"], k = 0; k < arguments.length; k++)
|
|
3462
|
+
m[y[k]] = arguments[k];
|
|
3460
3463
|
return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
|
|
3461
3464
|
}
|
|
3462
3465
|
}
|
|
3463
|
-
), de = "play", mi = "playing", $e = "ended", ot = "pause", pt = "error", Rt = "seeking", Ie = "seeked", he = "timeupdate", vt = "waiting", Se = "canplay",
|
|
3466
|
+
), de = "play", mi = "playing", $e = "ended", ot = "pause", pt = "error", Rt = "seeking", Ie = "seeked", he = "timeupdate", vt = "waiting", Se = "canplay", na = "canplaythrough", He = "durationchange", On = "volumechange", Pe = "loadeddata", ra = "loadedmetadata", Rn = "ratechange", Mn = "progress", yi = "loadstart", Ke = "emptied", sa = "stalled", oa = "suspend", aa = "abort", la = "bufferedChange", _i = "focus", Fn = "blur", Ci = "ready", Nn = "urlNull", We = "autoplay_started", ki = "autoplay_was_prevented", Mt = "complete", Et = "replay", wi = "destroy", Ft = "urlchange", ui = "download_speed_change", Bn = "leaveplayer", Hn = "enterplayer", Un = "loading", Te = "fullscreen_change", St = "cssFullscreen_change", xt = "mini_state_change", bi = "definition_change", ua = "before_definition_change", ci = "after_definition_change", ca = "SEI_PARSED", fa = "retry", Ne = "video_resize", fi = "pip_change", zn = "rotate", Vn = "screenShot", It = "playnext", jn = "shortcut", Wn = "xglog", Pt = "user_action", Nt = "reset", Gn = "source_error", $n = "source_success", ha = "switch_subtitle", Kn = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], Yn = {
|
|
3464
3467
|
STATS_INFO: "stats_info",
|
|
3465
3468
|
STATS_DOWNLOAD: "stats_download",
|
|
3466
3469
|
STATS_RESET: "stats_reset"
|
|
3467
|
-
},
|
|
3468
|
-
const
|
|
3470
|
+
}, Xn = "fps_stuck";
|
|
3471
|
+
const da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3469
3472
|
__proto__: null,
|
|
3470
|
-
ABORT:
|
|
3473
|
+
ABORT: aa,
|
|
3471
3474
|
AFTER_DEFINITION_CHANGE: ci,
|
|
3472
|
-
AUTOPLAY_PREVENTED:
|
|
3475
|
+
AUTOPLAY_PREVENTED: ki,
|
|
3473
3476
|
AUTOPLAY_STARTED: We,
|
|
3474
|
-
BEFORE_DEFINITION_CHANGE:
|
|
3475
|
-
BUFFER_CHANGE:
|
|
3477
|
+
BEFORE_DEFINITION_CHANGE: ua,
|
|
3478
|
+
BUFFER_CHANGE: la,
|
|
3476
3479
|
CANPLAY: Se,
|
|
3477
|
-
CANPLAY_THROUGH:
|
|
3480
|
+
CANPLAY_THROUGH: na,
|
|
3478
3481
|
COMPLETE: Mt,
|
|
3479
3482
|
CSS_FULLSCREEN_CHANGE: St,
|
|
3480
3483
|
DEFINITION_CHANGE: bi,
|
|
@@ -3483,55 +3486,55 @@ const ha = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3483
3486
|
DURATION_CHANGE: He,
|
|
3484
3487
|
EMPTIED: Ke,
|
|
3485
3488
|
ENDED: $e,
|
|
3486
|
-
ENTER_PLAYER:
|
|
3489
|
+
ENTER_PLAYER: Hn,
|
|
3487
3490
|
ERROR: pt,
|
|
3488
|
-
FPS_STUCK:
|
|
3491
|
+
FPS_STUCK: Xn,
|
|
3489
3492
|
FULLSCREEN_CHANGE: Te,
|
|
3490
|
-
LEAVE_PLAYER:
|
|
3493
|
+
LEAVE_PLAYER: Bn,
|
|
3491
3494
|
LOADED_DATA: Pe,
|
|
3492
|
-
LOADED_METADATA:
|
|
3493
|
-
LOADING:
|
|
3495
|
+
LOADED_METADATA: ra,
|
|
3496
|
+
LOADING: Un,
|
|
3494
3497
|
LOAD_START: yi,
|
|
3495
3498
|
MINI_STATE_CHANGE: xt,
|
|
3496
3499
|
PAUSE: ot,
|
|
3497
3500
|
PIP_CHANGE: fi,
|
|
3498
3501
|
PLAY: de,
|
|
3499
|
-
PLAYER_BLUR:
|
|
3502
|
+
PLAYER_BLUR: Fn,
|
|
3500
3503
|
PLAYER_FOCUS: _i,
|
|
3501
3504
|
PLAYING: mi,
|
|
3502
3505
|
PLAYNEXT: It,
|
|
3503
|
-
PROGRESS:
|
|
3504
|
-
RATE_CHANGE:
|
|
3505
|
-
READY:
|
|
3506
|
+
PROGRESS: Mn,
|
|
3507
|
+
RATE_CHANGE: Rn,
|
|
3508
|
+
READY: Ci,
|
|
3506
3509
|
REPLAY: Et,
|
|
3507
3510
|
RESET: Nt,
|
|
3508
|
-
RETRY:
|
|
3509
|
-
ROTATE:
|
|
3510
|
-
SCREEN_SHOT:
|
|
3511
|
+
RETRY: fa,
|
|
3512
|
+
ROTATE: zn,
|
|
3513
|
+
SCREEN_SHOT: Vn,
|
|
3511
3514
|
SEEKED: Ie,
|
|
3512
3515
|
SEEKING: Rt,
|
|
3513
|
-
SEI_PARSED:
|
|
3514
|
-
SHORTCUT:
|
|
3515
|
-
SOURCE_ERROR:
|
|
3516
|
-
SOURCE_SUCCESS:
|
|
3517
|
-
STALLED:
|
|
3518
|
-
STATS_EVENTS:
|
|
3519
|
-
SUSPEND:
|
|
3520
|
-
SWITCH_SUBTITLE:
|
|
3516
|
+
SEI_PARSED: ca,
|
|
3517
|
+
SHORTCUT: jn,
|
|
3518
|
+
SOURCE_ERROR: Gn,
|
|
3519
|
+
SOURCE_SUCCESS: $n,
|
|
3520
|
+
STALLED: sa,
|
|
3521
|
+
STATS_EVENTS: Yn,
|
|
3522
|
+
SUSPEND: oa,
|
|
3523
|
+
SWITCH_SUBTITLE: ha,
|
|
3521
3524
|
TIME_UPDATE: he,
|
|
3522
3525
|
URL_CHANGE: Ft,
|
|
3523
|
-
URL_NULL:
|
|
3526
|
+
URL_NULL: Nn,
|
|
3524
3527
|
USER_ACTION: Pt,
|
|
3525
|
-
VIDEO_EVENTS:
|
|
3528
|
+
VIDEO_EVENTS: Kn,
|
|
3526
3529
|
VIDEO_RESIZE: Ne,
|
|
3527
|
-
VOLUME_CHANGE:
|
|
3530
|
+
VOLUME_CHANGE: On,
|
|
3528
3531
|
WAITING: vt,
|
|
3529
|
-
XGLOG:
|
|
3532
|
+
XGLOG: Wn
|
|
3530
3533
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3531
3534
|
function Wt(a, o) {
|
|
3532
3535
|
!this || !this.emit || (a === "error" ? this.errorHandler(a, o.error) : this.emit(a, o));
|
|
3533
3536
|
}
|
|
3534
|
-
function
|
|
3537
|
+
function ga(a, o) {
|
|
3535
3538
|
return function(r, t) {
|
|
3536
3539
|
var e = {
|
|
3537
3540
|
player: o,
|
|
@@ -3566,9 +3569,9 @@ function da(a, o) {
|
|
|
3566
3569
|
Wt.call(o, a, e);
|
|
3567
3570
|
};
|
|
3568
3571
|
}
|
|
3569
|
-
var
|
|
3570
|
-
|
|
3571
|
-
var o =
|
|
3572
|
+
var pa = /* @__PURE__ */ function(a) {
|
|
3573
|
+
L(r, a);
|
|
3574
|
+
var o = A(r);
|
|
3572
3575
|
function r(t) {
|
|
3573
3576
|
var e;
|
|
3574
3577
|
x(this, r), e = o.call(this, t), e._hasStart = !1, e._currentTime = 0, e._duration = 0, e._internalOp = {}, e._lastMuted = !1, e.vtype = "MP4", e._rate = -1, e.mediaConfig = Object.assign({}, {
|
|
@@ -3608,9 +3611,9 @@ var ga = /* @__PURE__ */ function(a) {
|
|
|
3608
3611
|
key: "attachVideoEvents",
|
|
3609
3612
|
value: function() {
|
|
3610
3613
|
var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.media;
|
|
3611
|
-
this._evHandlers || (this._evHandlers =
|
|
3614
|
+
this._evHandlers || (this._evHandlers = Kn.map(function(n) {
|
|
3612
3615
|
var s = "on".concat(n.charAt(0).toUpperCase()).concat(n.slice(1));
|
|
3613
|
-
return typeof e[s] == "function" && e.on(n, e[s]), _({}, n,
|
|
3616
|
+
return typeof e[s] == "function" && e.on(n, e[s]), _({}, n, ga(n, e));
|
|
3614
3617
|
})), this._evHandlers.forEach(function(n) {
|
|
3615
3618
|
var s = Object.keys(n)[0];
|
|
3616
3619
|
i.addEventListener(s, n[s], !1);
|
|
@@ -3642,7 +3645,7 @@ var ga = /* @__PURE__ */ function(a) {
|
|
|
3642
3645
|
var s = e.children;
|
|
3643
3646
|
if (s) {
|
|
3644
3647
|
this._videoSourceCount = s.length, this._videoSourceIndex = s.length, this._vLoadeddata = function(h) {
|
|
3645
|
-
n.emit(
|
|
3648
|
+
n.emit($n, {
|
|
3646
3649
|
src: h.target.currentSrc,
|
|
3647
3650
|
host: f.getHostFromUrl(h.target.currentSrc)
|
|
3648
3651
|
});
|
|
@@ -3661,8 +3664,8 @@ var ga = /* @__PURE__ */ function(a) {
|
|
|
3661
3664
|
};
|
|
3662
3665
|
l ? l.error(h, p) : n.errorHandler("error", p);
|
|
3663
3666
|
}
|
|
3664
|
-
var g =
|
|
3665
|
-
n.emit(
|
|
3667
|
+
var g = Ki[4];
|
|
3668
|
+
n.emit(Gn, new Tt(n, {
|
|
3666
3669
|
errorType: g,
|
|
3667
3670
|
errorCode: 4,
|
|
3668
3671
|
errorMessage: "sources_load_error",
|
|
@@ -3695,7 +3698,7 @@ var ga = /* @__PURE__ */ function(a) {
|
|
|
3695
3698
|
value: function(e) {
|
|
3696
3699
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
3697
3700
|
if (this.media && (this.media.error || i)) {
|
|
3698
|
-
var n = this.media.error || i, s = n.code ?
|
|
3701
|
+
var n = this.media.error || i, s = n.code ? Ki[n.code] : "other", l = n.message;
|
|
3699
3702
|
this.media.currentSrc || (l = "empty_src", n = {
|
|
3700
3703
|
code: 6,
|
|
3701
3704
|
message: l
|
|
@@ -3984,7 +3987,7 @@ var ga = /* @__PURE__ */ function(a) {
|
|
|
3984
3987
|
M(O(r.prototype), "removeAllListeners", this).call(this);
|
|
3985
3988
|
}
|
|
3986
3989
|
}]), r;
|
|
3987
|
-
}(An),
|
|
3990
|
+
}(An), va = /* @__PURE__ */ function() {
|
|
3988
3991
|
function a() {
|
|
3989
3992
|
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
3990
3993
|
name: "xgplayer",
|
|
@@ -4062,7 +4065,7 @@ var ga = /* @__PURE__ */ function(a) {
|
|
|
4062
4065
|
t.clear();
|
|
4063
4066
|
}
|
|
4064
4067
|
}]), a;
|
|
4065
|
-
}(),
|
|
4068
|
+
}(), Xi = ["fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange"], qi = ["requestFullscreen", "webkitRequestFullscreen", "mozRequestFullScreen", "msRequestFullscreen"], Zi = ["exitFullscreen", "webkitExitFullscreen", "mozCancelFullScreen", "msExitFullscreen"], je = "data-xgplayerid";
|
|
4066
4069
|
function yt(a, o, r) {
|
|
4067
4070
|
for (var t = arguments.length, e = new Array(t > 3 ? t - 3 : 0), i = 3; i < t; i++)
|
|
4068
4071
|
e[i - 3] = arguments[i];
|
|
@@ -4073,7 +4076,7 @@ function yt(a, o, r) {
|
|
|
4073
4076
|
r.call.apply(r, [a].concat(l));
|
|
4074
4077
|
}) : r.call.apply(r, [a].concat(e)));
|
|
4075
4078
|
}
|
|
4076
|
-
function
|
|
4079
|
+
function Lt(a, o) {
|
|
4077
4080
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
4078
4081
|
pre: null,
|
|
4079
4082
|
next: null
|
|
@@ -4102,7 +4105,7 @@ function At(a, o) {
|
|
|
4102
4105
|
yt.apply(void 0, [this, o, r.next].concat(Array.prototype.slice.call(arguments)));
|
|
4103
4106
|
}).bind(this);
|
|
4104
4107
|
}
|
|
4105
|
-
function
|
|
4108
|
+
function At(a, o) {
|
|
4106
4109
|
var r = this.__hooks;
|
|
4107
4110
|
if (r)
|
|
4108
4111
|
return r.hasOwnProperty(a) ? (r && (r[a] = o), !0) : (console.warn("has no supported hook which name [".concat(a, "]")), !1);
|
|
@@ -4111,14 +4114,14 @@ function Dt(a, o) {
|
|
|
4111
4114
|
var r = this.__hooks;
|
|
4112
4115
|
r && delete r[a];
|
|
4113
4116
|
}
|
|
4114
|
-
function
|
|
4117
|
+
function Ji(a) {
|
|
4115
4118
|
if (!(!this.plugins || !this.plugins[a.toLowerCase()])) {
|
|
4116
4119
|
for (var o = this.plugins[a.toLowerCase()], r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), e = 1; e < r; e++)
|
|
4117
4120
|
t[e - 1] = arguments[e];
|
|
4118
4121
|
return o.useHooks && o.useHooks.apply(o, t);
|
|
4119
4122
|
}
|
|
4120
4123
|
}
|
|
4121
|
-
function
|
|
4124
|
+
function Qi(a) {
|
|
4122
4125
|
if (!(!this.plugins || !this.plugins[a.toLowerCase()])) {
|
|
4123
4126
|
var o = this.plugins[a.toLowerCase()];
|
|
4124
4127
|
if (o) {
|
|
@@ -4128,7 +4131,7 @@ function Ji(a) {
|
|
|
4128
4131
|
}
|
|
4129
4132
|
}
|
|
4130
4133
|
}
|
|
4131
|
-
function
|
|
4134
|
+
function qn(a) {
|
|
4132
4135
|
var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
|
4133
4136
|
a.__hooks = {}, o && o.map(function(r) {
|
|
4134
4137
|
a.__hooks[r] = null;
|
|
@@ -4141,7 +4144,7 @@ function Xn(a) {
|
|
|
4141
4144
|
}
|
|
4142
4145
|
});
|
|
4143
4146
|
}
|
|
4144
|
-
function
|
|
4147
|
+
function Zn(a) {
|
|
4145
4148
|
a.__hooks = null;
|
|
4146
4149
|
}
|
|
4147
4150
|
function Ee(a, o, r) {
|
|
@@ -4165,7 +4168,7 @@ function Gt(a, o) {
|
|
|
4165
4168
|
}
|
|
4166
4169
|
var Be = /* @__PURE__ */ function() {
|
|
4167
4170
|
function a(o) {
|
|
4168
|
-
x(this, a), f.checkIsFunction(this.beforeCreate) && this.beforeCreate(o),
|
|
4171
|
+
x(this, a), f.checkIsFunction(this.beforeCreate) && this.beforeCreate(o), qn(this), this.__args = o, this.__events = {}, this.__onceEvents = {}, this.config = o.config || {}, this.player = null, this.playerConfig = {}, this.pluginName = "", this.__init(o);
|
|
4169
4172
|
}
|
|
4170
4173
|
return I(a, [{
|
|
4171
4174
|
key: "beforeCreate",
|
|
@@ -4292,14 +4295,14 @@ var Be = /* @__PURE__ */ function() {
|
|
|
4292
4295
|
}, {
|
|
4293
4296
|
key: "hook",
|
|
4294
4297
|
value: function(r, t) {
|
|
4295
|
-
return
|
|
4298
|
+
return Lt.call.apply(Lt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
4296
4299
|
}
|
|
4297
4300
|
}, {
|
|
4298
4301
|
key: "useHooks",
|
|
4299
4302
|
value: function(r, t) {
|
|
4300
4303
|
for (var e = arguments.length, i = new Array(e > 2 ? e - 2 : 0), n = 2; n < e; n++)
|
|
4301
4304
|
i[n - 2] = arguments[n];
|
|
4302
|
-
return
|
|
4305
|
+
return At.call.apply(At, [this].concat(Array.prototype.slice.call(arguments)));
|
|
4303
4306
|
}
|
|
4304
4307
|
}, {
|
|
4305
4308
|
key: "removeHooks",
|
|
@@ -4329,7 +4332,7 @@ var Be = /* @__PURE__ */ function() {
|
|
|
4329
4332
|
var r = this, t = this.player, e = this.pluginName;
|
|
4330
4333
|
this.offAll(), f.clearAllTimers(this), f.checkIsFunction(this.destroy) && this.destroy(), ["player", "playerConfig", "pluginName", "logger", "__args", "__hooks"].map(function(i) {
|
|
4331
4334
|
r[i] = null;
|
|
4332
|
-
}), t.unRegisterPlugin(e),
|
|
4335
|
+
}), t.unRegisterPlugin(e), Zn(this);
|
|
4333
4336
|
}
|
|
4334
4337
|
}], [{
|
|
4335
4338
|
key: "defineGetterOrSetter",
|
|
@@ -4348,21 +4351,21 @@ var Be = /* @__PURE__ */ function() {
|
|
|
4348
4351
|
return "pluginName";
|
|
4349
4352
|
}
|
|
4350
4353
|
}]), a;
|
|
4351
|
-
}(),
|
|
4354
|
+
}(), ma = 9;
|
|
4352
4355
|
if (typeof Element < "u" && !Element.prototype.matches) {
|
|
4353
4356
|
var qe = Element.prototype;
|
|
4354
4357
|
qe.matches = qe.matchesSelector || qe.mozMatchesSelector || qe.msMatchesSelector || qe.oMatchesSelector || qe.webkitMatchesSelector;
|
|
4355
4358
|
}
|
|
4356
|
-
function
|
|
4357
|
-
for (; a && a.nodeType !==
|
|
4359
|
+
function ya(a, o) {
|
|
4360
|
+
for (; a && a.nodeType !== ma; ) {
|
|
4358
4361
|
if (typeof a.matches == "function" && a.matches(o))
|
|
4359
4362
|
return a;
|
|
4360
4363
|
a = a.parentNode;
|
|
4361
4364
|
}
|
|
4362
4365
|
}
|
|
4363
|
-
var
|
|
4366
|
+
var _a = ya, Ca = _a;
|
|
4364
4367
|
function $t(a, o, r, t, e) {
|
|
4365
|
-
var i =
|
|
4368
|
+
var i = wa.apply(this, arguments);
|
|
4366
4369
|
return a.addEventListener(r, i, e), {
|
|
4367
4370
|
destroy: function() {
|
|
4368
4371
|
a.removeEventListener(r, i, e);
|
|
@@ -4374,14 +4377,14 @@ function ka(a, o, r, t, e) {
|
|
|
4374
4377
|
return $t(i, o, r, t, e);
|
|
4375
4378
|
}));
|
|
4376
4379
|
}
|
|
4377
|
-
function
|
|
4380
|
+
function wa(a, o, r, t) {
|
|
4378
4381
|
return function(e) {
|
|
4379
|
-
e.delegateTarget =
|
|
4382
|
+
e.delegateTarget = Ca(e.target, o), e.delegateTarget && t.call(a, e);
|
|
4380
4383
|
};
|
|
4381
4384
|
}
|
|
4382
|
-
var
|
|
4383
|
-
const
|
|
4384
|
-
var
|
|
4385
|
+
var ba = ka;
|
|
4386
|
+
const en = /* @__PURE__ */ gi(ba);
|
|
4387
|
+
var Ta = {
|
|
4385
4388
|
CONTROLS: "controls",
|
|
4386
4389
|
ROOT: "root"
|
|
4387
4390
|
}, $ = {
|
|
@@ -4394,22 +4397,22 @@ var ba = {
|
|
|
4394
4397
|
CONTROLS_RIGHT: "controlsRight",
|
|
4395
4398
|
CONTROLS_CENTER: "controlsCenter",
|
|
4396
4399
|
CONTROLS: "controls"
|
|
4397
|
-
},
|
|
4400
|
+
}, tn = {
|
|
4398
4401
|
ICON_DISABLE: "xg-icon-disable",
|
|
4399
4402
|
ICON_HIDE: "xg-icon-hide"
|
|
4400
4403
|
};
|
|
4401
4404
|
function Kt(a) {
|
|
4402
4405
|
return a ? a.indexOf && /^(?:http|data:|\/)/.test(a) : !1;
|
|
4403
4406
|
}
|
|
4404
|
-
function
|
|
4407
|
+
function Ea(a, o) {
|
|
4405
4408
|
return se(a) === "object" && a.class && typeof a.class == "string" ? "".concat(o, " ").concat(a.class) : o;
|
|
4406
4409
|
}
|
|
4407
|
-
function
|
|
4410
|
+
function Sa(a, o) {
|
|
4408
4411
|
return se(a) === "object" && a.attr && se(a.attr) === "object" && Object.keys(a.attr).map(function(r) {
|
|
4409
4412
|
o[r] = a.attr[r];
|
|
4410
4413
|
}), o;
|
|
4411
4414
|
}
|
|
4412
|
-
function
|
|
4415
|
+
function nn(a, o) {
|
|
4413
4416
|
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;
|
|
4414
4417
|
if (a instanceof window.Element)
|
|
4415
4418
|
return f.addClass(a, r), Object.keys(t).map(function(n) {
|
|
@@ -4427,14 +4430,14 @@ function tn(a, o) {
|
|
|
4427
4430
|
}
|
|
4428
4431
|
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);
|
|
4429
4432
|
}
|
|
4430
|
-
function
|
|
4433
|
+
function xa(a, o) {
|
|
4431
4434
|
var r = o.config.icons || o.playerConfig.icons;
|
|
4432
4435
|
Object.keys(a).map(function(t) {
|
|
4433
4436
|
var e = a[t], i = e && e.class ? e.class : "", n = e && e.attr ? e.attr : {}, s = null;
|
|
4434
|
-
r && r[t] && (i =
|
|
4437
|
+
r && r[t] && (i = Ea(r[t], i), n = Sa(r[t], n), s = nn(r[t], t, i, n, o.pluginName)), !s && e && (s = nn(e.icon ? e.icon : e, n, i, {}, o.pluginName)), o.icons[t] = s;
|
|
4435
4438
|
});
|
|
4436
4439
|
}
|
|
4437
|
-
function
|
|
4440
|
+
function Ia(a, o) {
|
|
4438
4441
|
Object.keys(a).map(function(r) {
|
|
4439
4442
|
Object.defineProperty(o.langText, r, {
|
|
4440
4443
|
get: function() {
|
|
@@ -4445,8 +4448,8 @@ function xa(a, o) {
|
|
|
4445
4448
|
});
|
|
4446
4449
|
}
|
|
4447
4450
|
var j = /* @__PURE__ */ function(a) {
|
|
4448
|
-
|
|
4449
|
-
var o =
|
|
4451
|
+
L(r, a);
|
|
4452
|
+
var o = A(r);
|
|
4450
4453
|
function r() {
|
|
4451
4454
|
var t, e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4452
4455
|
return x(this, r), t = o.call(this, e), t.__delegates = [], t;
|
|
@@ -4458,9 +4461,9 @@ var j = /* @__PURE__ */ function(a) {
|
|
|
4458
4461
|
var i = e.root, n = null;
|
|
4459
4462
|
this.icons = {}, this.root = null, this.parent = null;
|
|
4460
4463
|
var s = this.registerIcons() || {};
|
|
4461
|
-
|
|
4464
|
+
xa(s, this), this.langText = {};
|
|
4462
4465
|
var l = this.registerLanguageTexts() || {};
|
|
4463
|
-
|
|
4466
|
+
Ia(l, this);
|
|
4464
4467
|
var u = "";
|
|
4465
4468
|
try {
|
|
4466
4469
|
u = this.render();
|
|
@@ -4531,12 +4534,12 @@ var j = /* @__PURE__ */ function(a) {
|
|
|
4531
4534
|
}, {
|
|
4532
4535
|
key: "disable",
|
|
4533
4536
|
value: function() {
|
|
4534
|
-
this.config.disable = !0, f.addClass(this.find(".xgplayer-icon"),
|
|
4537
|
+
this.config.disable = !0, f.addClass(this.find(".xgplayer-icon"), tn.ICON_DISABLE);
|
|
4535
4538
|
}
|
|
4536
4539
|
}, {
|
|
4537
4540
|
key: "enable",
|
|
4538
4541
|
value: function() {
|
|
4539
|
-
this.config.disable = !1, f.removeClass(this.find(".xgplayer-icon"),
|
|
4542
|
+
this.config.disable = !1, f.removeClass(this.find(".xgplayer-icon"), tn.ICON_DISABLE);
|
|
4540
4543
|
}
|
|
4541
4544
|
}, {
|
|
4542
4545
|
key: "children",
|
|
@@ -4717,11 +4720,11 @@ var j = /* @__PURE__ */ function(a) {
|
|
|
4717
4720
|
if (e instanceof window.Node && typeof s == "function")
|
|
4718
4721
|
if (Array.isArray(n))
|
|
4719
4722
|
n.forEach(function(h) {
|
|
4720
|
-
var d =
|
|
4723
|
+
var d = en(e, i, h, s, l);
|
|
4721
4724
|
d.key = "".concat(i, "_").concat(h), u.push(d);
|
|
4722
4725
|
});
|
|
4723
4726
|
else {
|
|
4724
|
-
var c =
|
|
4727
|
+
var c = en(e, i, n, s, l);
|
|
4725
4728
|
c.key = "".concat(i, "_").concat(n), u.push(c);
|
|
4726
4729
|
}
|
|
4727
4730
|
return u;
|
|
@@ -4729,7 +4732,7 @@ var j = /* @__PURE__ */ function(a) {
|
|
|
4729
4732
|
}, {
|
|
4730
4733
|
key: "ROOT_TYPES",
|
|
4731
4734
|
get: function() {
|
|
4732
|
-
return
|
|
4735
|
+
return Ta;
|
|
4733
4736
|
}
|
|
4734
4737
|
}, {
|
|
4735
4738
|
key: "POSITIONS",
|
|
@@ -4737,7 +4740,7 @@ var j = /* @__PURE__ */ function(a) {
|
|
|
4737
4740
|
return $;
|
|
4738
4741
|
}
|
|
4739
4742
|
}]), r;
|
|
4740
|
-
}(Be),
|
|
4743
|
+
}(Be), Pa = /* @__PURE__ */ function() {
|
|
4741
4744
|
function a() {
|
|
4742
4745
|
var o = this;
|
|
4743
4746
|
if (x(this, a), _(this, "__trigger", function(r) {
|
|
@@ -4747,7 +4750,7 @@ var j = /* @__PURE__ */ function(a) {
|
|
|
4747
4750
|
o.__runHandler(r[e].target);
|
|
4748
4751
|
}), this.__handlers = [], this.timeStamp = 0, this.observer = null, !!window.ResizeObserver)
|
|
4749
4752
|
try {
|
|
4750
|
-
this.observer = new window.ResizeObserver(
|
|
4753
|
+
this.observer = new window.ResizeObserver(Qo(this.__trigger, 100, {
|
|
4751
4754
|
trailing: !0
|
|
4752
4755
|
})), this.timeStamp = (/* @__PURE__ */ new Date()).getTime();
|
|
4753
4756
|
} catch (r) {
|
|
@@ -4802,8 +4805,8 @@ var j = /* @__PURE__ */ function(a) {
|
|
|
4802
4805
|
}
|
|
4803
4806
|
}]), a;
|
|
4804
4807
|
}(), ct = null;
|
|
4805
|
-
function
|
|
4806
|
-
return ct || (ct = new
|
|
4808
|
+
function La(a, o) {
|
|
4809
|
+
return ct || (ct = new Pa()), ct.addObserver(a, o), ct;
|
|
4807
4810
|
}
|
|
4808
4811
|
function Aa(a, o) {
|
|
4809
4812
|
ct.unObserver(a, o);
|
|
@@ -4812,7 +4815,7 @@ var ie = {
|
|
|
4812
4815
|
pluginGroup: {},
|
|
4813
4816
|
init: function(o) {
|
|
4814
4817
|
var r = o._pluginInfoId;
|
|
4815
|
-
r || (r = (/* @__PURE__ */ new Date()).getTime(), o._pluginInfoId = r), !o.config.closeResizeObserver &&
|
|
4818
|
+
r || (r = (/* @__PURE__ */ new Date()).getTime(), o._pluginInfoId = r), !o.config.closeResizeObserver && La(o.root, function() {
|
|
4816
4819
|
o.resize();
|
|
4817
4820
|
}), this.pluginGroup[r] = {
|
|
4818
4821
|
_originalOptions: o.config || {},
|
|
@@ -5006,7 +5009,7 @@ var ie = {
|
|
|
5006
5009
|
delete this.pluginGroup[r], delete o._pluginInfoId;
|
|
5007
5010
|
}
|
|
5008
5011
|
}
|
|
5009
|
-
},
|
|
5012
|
+
}, C = {
|
|
5010
5013
|
DEFAULT: "xgplayer",
|
|
5011
5014
|
DEFAULT_SKIN: "xgplayer-skin-default",
|
|
5012
5015
|
ENTER: "xgplayer-is-enter",
|
|
@@ -5037,7 +5040,7 @@ var ie = {
|
|
|
5037
5040
|
MOBILE: "xgplayer-mobile",
|
|
5038
5041
|
MINI: "xgplayer-mini"
|
|
5039
5042
|
};
|
|
5040
|
-
function
|
|
5043
|
+
function rn() {
|
|
5041
5044
|
return {
|
|
5042
5045
|
id: "",
|
|
5043
5046
|
el: null,
|
|
@@ -5084,7 +5087,7 @@ function nn() {
|
|
|
5084
5087
|
ignores: [],
|
|
5085
5088
|
whitelist: [],
|
|
5086
5089
|
inactive: 3e3,
|
|
5087
|
-
lang:
|
|
5090
|
+
lang: ea(),
|
|
5088
5091
|
controls: !0,
|
|
5089
5092
|
marginControls: !1,
|
|
5090
5093
|
fullscreenTarget: null,
|
|
@@ -5120,7 +5123,7 @@ function nn() {
|
|
|
5120
5123
|
}
|
|
5121
5124
|
};
|
|
5122
5125
|
}
|
|
5123
|
-
var
|
|
5126
|
+
var Da = function(o, r) {
|
|
5124
5127
|
var t, e, i;
|
|
5125
5128
|
r.preset && r.options ? i = new r.preset(r.options, o.config) : i = new r({}, o.config);
|
|
5126
5129
|
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;
|
|
@@ -5129,9 +5132,9 @@ var La = function(o, r) {
|
|
|
5129
5132
|
});
|
|
5130
5133
|
var m = o.config.i18n || [];
|
|
5131
5134
|
g.push.apply(g, me(m)), o.config.i18n = g;
|
|
5132
|
-
},
|
|
5133
|
-
|
|
5134
|
-
var o =
|
|
5135
|
+
}, Oa = /* @__PURE__ */ function(a) {
|
|
5136
|
+
L(r, a);
|
|
5137
|
+
var o = A(r);
|
|
5135
5138
|
function r() {
|
|
5136
5139
|
var t;
|
|
5137
5140
|
x(this, r);
|
|
@@ -5157,7 +5160,7 @@ var La = function(o, r) {
|
|
|
5157
5160
|
value: function() {
|
|
5158
5161
|
var e = this, i = this.config, n = i.disable, s = i.height, l = i.mode;
|
|
5159
5162
|
if (!n) {
|
|
5160
|
-
l === "flex" && this.player.addClass(
|
|
5163
|
+
l === "flex" && this.player.addClass(C.FLEX_CONTROLS);
|
|
5161
5164
|
var u = {
|
|
5162
5165
|
height: "".concat(s, "px")
|
|
5163
5166
|
};
|
|
@@ -5194,12 +5197,12 @@ var La = function(o, r) {
|
|
|
5194
5197
|
}, {
|
|
5195
5198
|
key: "recoverAutoHide",
|
|
5196
5199
|
value: function() {
|
|
5197
|
-
this.config.autoHide && f.addClass(this.root,
|
|
5200
|
+
this.config.autoHide && f.addClass(this.root, C.CONTROLS_AUTOHIDE);
|
|
5198
5201
|
}
|
|
5199
5202
|
}, {
|
|
5200
5203
|
key: "pauseAutoHide",
|
|
5201
5204
|
value: function() {
|
|
5202
|
-
f.removeClass(this.root,
|
|
5205
|
+
f.removeClass(this.root, C.CONTROLS_AUTOHIDE);
|
|
5203
5206
|
}
|
|
5204
5207
|
}, {
|
|
5205
5208
|
key: "show",
|
|
@@ -5260,7 +5263,7 @@ var La = function(o, r) {
|
|
|
5260
5263
|
"flex-controls": i === "flex"
|
|
5261
5264
|
}, {
|
|
5262
5265
|
"bottom-controls": i === "bottom"
|
|
5263
|
-
}, _({},
|
|
5266
|
+
}, _({}, C.CONTROLS_AUTOHIDE, n), {
|
|
5264
5267
|
"xgplayer-controls-initshow": s || !n
|
|
5265
5268
|
});
|
|
5266
5269
|
return '<xg-controls class="'.concat(u, `" unselectable="on">
|
|
@@ -5290,7 +5293,7 @@ var La = function(o, r) {
|
|
|
5290
5293
|
};
|
|
5291
5294
|
}
|
|
5292
5295
|
}]), r;
|
|
5293
|
-
}(j),
|
|
5296
|
+
}(j), Ra = {
|
|
5294
5297
|
LANG: "en",
|
|
5295
5298
|
TEXT: {
|
|
5296
5299
|
ERROR_TYPES: {
|
|
@@ -5380,12 +5383,12 @@ function dt(a, o) {
|
|
|
5380
5383
|
t === "Object" ? (e !== "Object" && (a[r] = {}), dt(a[r], o[r])) : a[r] = o[r];
|
|
5381
5384
|
}), a;
|
|
5382
5385
|
}
|
|
5383
|
-
function
|
|
5386
|
+
function Jn() {
|
|
5384
5387
|
Object.keys(fe.lang.en).map(function(a) {
|
|
5385
5388
|
fe.textKeys[a] = a;
|
|
5386
5389
|
});
|
|
5387
5390
|
}
|
|
5388
|
-
function
|
|
5391
|
+
function Ma(a, o) {
|
|
5389
5392
|
var r = [];
|
|
5390
5393
|
if (o || (o = fe), !!o.lang) {
|
|
5391
5394
|
f.typeOf(a) !== "Array" ? r = Object.keys(a).map(function(i) {
|
|
@@ -5398,17 +5401,17 @@ function Ra(a, o) {
|
|
|
5398
5401
|
var t = o, e = t.lang;
|
|
5399
5402
|
r.map(function(i) {
|
|
5400
5403
|
i.LANG === "zh" && (i.LANG = "zh-cn"), e[i.LANG] ? dt(e[i.LANG] || {}, i.TEXT || {}) : Ti(i, o);
|
|
5401
|
-
}),
|
|
5404
|
+
}), Jn();
|
|
5402
5405
|
}
|
|
5403
5406
|
}
|
|
5404
5407
|
function Ti(a, o) {
|
|
5405
5408
|
var r = a.LANG;
|
|
5406
5409
|
if (o || (o = fe), !!o.lang) {
|
|
5407
5410
|
var t = a.TEXT || {};
|
|
5408
|
-
r === "zh" && (r = "zh-cn"), o.lang[r] ? dt(o.lang[r], t) : (o.langKeys.push(r), o.lang[r] = t),
|
|
5411
|
+
r === "zh" && (r = "zh-cn"), o.lang[r] ? dt(o.lang[r], t) : (o.langKeys.push(r), o.lang[r] = t), Jn();
|
|
5409
5412
|
}
|
|
5410
5413
|
}
|
|
5411
|
-
function
|
|
5414
|
+
function Fa(a) {
|
|
5412
5415
|
var o, r = {
|
|
5413
5416
|
lang: {},
|
|
5414
5417
|
langKeys: [],
|
|
@@ -5417,7 +5420,7 @@ function Ma(a) {
|
|
|
5417
5420
|
};
|
|
5418
5421
|
return dt(r.lang, fe.lang), (o = r.langKeys).push.apply(o, me(fe.langKeys)), dt(r.textKeys, fe.textKeys), r;
|
|
5419
5422
|
}
|
|
5420
|
-
Ti(
|
|
5423
|
+
Ti(Ra);
|
|
5421
5424
|
var rt = {
|
|
5422
5425
|
get textKeys() {
|
|
5423
5426
|
return fe.textKeys;
|
|
@@ -5431,9 +5434,9 @@ var rt = {
|
|
|
5431
5434
|
a[o] = fe.lang[o];
|
|
5432
5435
|
}), fe.lang["zh-cn"] && (a.zh = fe.lang["zh-cn"] || {}), a;
|
|
5433
5436
|
},
|
|
5434
|
-
extend:
|
|
5437
|
+
extend: Ma,
|
|
5435
5438
|
use: Ti,
|
|
5436
|
-
init:
|
|
5439
|
+
init: Fa
|
|
5437
5440
|
}, V = {
|
|
5438
5441
|
INITIAL: 1,
|
|
5439
5442
|
READY: 2,
|
|
@@ -5443,9 +5446,9 @@ var rt = {
|
|
|
5443
5446
|
RUNNING: 6,
|
|
5444
5447
|
ENDED: 7,
|
|
5445
5448
|
DESTROYED: 8
|
|
5446
|
-
},
|
|
5447
|
-
|
|
5448
|
-
var o =
|
|
5449
|
+
}, sn = ["ERROR", "INITIAL", "READY", "ATTACHING", "ATTACHED", "NOTALLOW", "RUNNING", "ENDED", "DESTROYED"], oe = {}, Yt = null, Qn = /* @__PURE__ */ function(a) {
|
|
5450
|
+
L(r, a);
|
|
5451
|
+
var o = A(r);
|
|
5449
5452
|
function r() {
|
|
5450
5453
|
return x(this, r), o.apply(this, arguments);
|
|
5451
5454
|
}
|
|
@@ -5529,8 +5532,8 @@ var rt = {
|
|
|
5529
5532
|
return Yt || (Yt = new r()), Yt;
|
|
5530
5533
|
}
|
|
5531
5534
|
}]), r;
|
|
5532
|
-
}(
|
|
5533
|
-
function
|
|
5535
|
+
}(Ln.EventEmitter);
|
|
5536
|
+
function Na(a) {
|
|
5534
5537
|
for (var o = Object.keys(oe), r = 0; r < o.length; r++) {
|
|
5535
5538
|
var t = oe[o[r]];
|
|
5536
5539
|
if (t.root === a)
|
|
@@ -5538,24 +5541,24 @@ function Fa(a) {
|
|
|
5538
5541
|
}
|
|
5539
5542
|
return null;
|
|
5540
5543
|
}
|
|
5541
|
-
var
|
|
5542
|
-
|
|
5543
|
-
var o =
|
|
5544
|
+
var Ba = ["play", "pause", "replay", "retry"], on = 0, an = 0, Oe = null, Bt = /* @__PURE__ */ function(a) {
|
|
5545
|
+
L(r, a);
|
|
5546
|
+
var o = A(r);
|
|
5544
5547
|
function r(t) {
|
|
5545
5548
|
var e;
|
|
5546
5549
|
x(this, r);
|
|
5547
|
-
var i = f.deepMerge(
|
|
5550
|
+
var i = f.deepMerge(rn(), t);
|
|
5548
5551
|
e = o.call(this, i), _(v(e), "canPlayFunc", function() {
|
|
5549
5552
|
if (e.config) {
|
|
5550
5553
|
var g = e.config, m = g.autoplay, y = g.defaultPlaybackRate;
|
|
5551
|
-
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(
|
|
5554
|
+
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(C.ENTER);
|
|
5552
5555
|
}
|
|
5553
5556
|
}), _(v(e), "onFullscreenChange", function(g, m) {
|
|
5554
5557
|
var y = function() {
|
|
5555
5558
|
f.setTimeout(v(e), function() {
|
|
5556
5559
|
e.resize();
|
|
5557
5560
|
}, 100);
|
|
5558
|
-
},
|
|
5561
|
+
}, k = f.getFullScreenEl();
|
|
5559
5562
|
e._fullActionFrom ? e._fullActionFrom = "" : e.emit(Pt, {
|
|
5560
5563
|
eventType: "system",
|
|
5561
5564
|
action: "switch_fullscreen",
|
|
@@ -5568,19 +5571,19 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
5568
5571
|
to: !1
|
|
5569
5572
|
}]
|
|
5570
5573
|
});
|
|
5571
|
-
var b =
|
|
5572
|
-
if (m ||
|
|
5573
|
-
y(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root,
|
|
5574
|
+
var b = ta(k, e.playerId, je);
|
|
5575
|
+
if (m || k && (k === e._fullscreenEl || b))
|
|
5576
|
+
y(), !e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !0, e.changeFullStyle(e.root, k, C.FULLSCREEN), e.emit(Te, !0, e._fullScreenOffset), e.cssfullscreen && e.exitCssFullscreen();
|
|
5574
5577
|
else if (e.fullscreen) {
|
|
5575
5578
|
y();
|
|
5576
5579
|
var w = v(e), P = w._fullScreenOffset, F = w.config;
|
|
5577
5580
|
if (F.needFullscreenScroll ? (window.scrollTo(P.left, P.top), f.setTimeout(v(e), function() {
|
|
5578
5581
|
e.fullscreen = !1, e._fullScreenOffset = null;
|
|
5579
5582
|
}, 100)) : (!e.config.closeFocusVideoFocus && e.media.focus(), e.fullscreen = !1, e._fullScreenOffset = null), e.cssfullscreen)
|
|
5580
|
-
e.removeClass(
|
|
5583
|
+
e.removeClass(C.FULLSCREEN);
|
|
5581
5584
|
else {
|
|
5582
5585
|
var U = e._fullscreenEl;
|
|
5583
|
-
!U && (e.root.contains(g.target) || g.target === e.root) && (U = g.target), e.recoverFullStyle(e.root, U,
|
|
5586
|
+
!U && (e.root.contains(g.target) || g.target === e.root) && (U = g.target), e.recoverFullStyle(e.root, U, C.FULLSCREEN);
|
|
5584
5587
|
}
|
|
5585
5588
|
e._fullscreenEl = null, e.emit(Te, !1);
|
|
5586
5589
|
}
|
|
@@ -5588,7 +5591,7 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
5588
5591
|
e._fullscreenEl = e.media, e.onFullscreenChange(g, !0);
|
|
5589
5592
|
}), _(v(e), "_onWebkitendfullscreen", function(g) {
|
|
5590
5593
|
e.onFullscreenChange(g, !1);
|
|
5591
|
-
}),
|
|
5594
|
+
}), qn(v(e), Ba), e.config = i, e._pluginInfoId = f.generateSessionId(), Xo(v(e));
|
|
5592
5595
|
var n = e.constructor.defaultPreset;
|
|
5593
5596
|
if (e.config.presets.length) {
|
|
5594
5597
|
var s = e.config.presets.indexOf("default");
|
|
@@ -5617,7 +5620,7 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
5617
5620
|
}, e._offsetInfo = {
|
|
5618
5621
|
currentTime: -1,
|
|
5619
5622
|
duration: 0
|
|
5620
|
-
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = rt.init(e._pluginInfoId), B.os.isAndroid && B.osVersion > 0 && B.osVersion < 6 && (e.config.autoplay = !1), e.database = new
|
|
5623
|
+
}, e.innerContainer = null, e.controls = null, e.topBar = null, e.root = null, e.__i18n = rt.init(e._pluginInfoId), B.os.isAndroid && B.osVersion > 0 && B.osVersion < 6 && (e.config.autoplay = !1), e.database = new va(), e.isUserActive = !1, e._onceSeekCanplay = null, e._isPauseBeforeSeek = 0, e.innerStates = {
|
|
5621
5624
|
isActiveLocked: !1
|
|
5622
5625
|
}, e.instManager = Oe;
|
|
5623
5626
|
var l = e._initDOM();
|
|
@@ -5631,7 +5634,7 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
5631
5634
|
p || (h.defaultDefinition = h.list[0].definition, p = h.list[0]), e.config.url = p.url, e.curDefinition = p;
|
|
5632
5635
|
}
|
|
5633
5636
|
return e._bindEvents(), e._registerPresets(), e._registerPlugins(), ie.onPluginsReady(v(e)), e.getInitDefinition(), e.setState(V.READY), f.setTimeout(v(e), function() {
|
|
5634
|
-
e.emit(
|
|
5637
|
+
e.emit(Ci);
|
|
5635
5638
|
}, 0), e.onReady && e.onReady(), (e.config.videoInit || e.config.autoplay) && (!e.hasStart || e.state < V.ATTACHED) && e.start(), e;
|
|
5636
5639
|
}
|
|
5637
5640
|
return I(r, [{
|
|
@@ -5649,7 +5652,7 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
5649
5652
|
msg: "container id can't be empty"
|
|
5650
5653
|
})), console.error("this.confg.id or this.config.el can't be empty"), !1;
|
|
5651
5654
|
}
|
|
5652
|
-
var s =
|
|
5655
|
+
var s = Na(this.root);
|
|
5653
5656
|
s && (H.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), s.destroy()), this.root.setAttribute(je, this.playerId), (e = Oe) === null || e === void 0 || e.add(this), ie.init(this), this._initBaseDoms();
|
|
5654
5657
|
var l = this.constructor.XgVideoProxy;
|
|
5655
5658
|
if (l && this.mediaConfig.mediaType === l.mediaType) {
|
|
@@ -5659,23 +5662,23 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
5659
5662
|
this.attachVideoEvents(c), this.media = c;
|
|
5660
5663
|
}
|
|
5661
5664
|
if (this.media.setAttribute(je, this.playerId), this.config.controls) {
|
|
5662
|
-
var h = this.config.controls.root || null, d = ie.register(this,
|
|
5665
|
+
var h = this.config.controls.root || null, d = ie.register(this, Oa, {
|
|
5663
5666
|
root: h
|
|
5664
5667
|
});
|
|
5665
5668
|
this.controls = d;
|
|
5666
5669
|
}
|
|
5667
5670
|
var p = this.config.isMobileSimulateMode === "mobile" ? "mobile" : B.device;
|
|
5668
|
-
if (this.addClass("".concat(
|
|
5671
|
+
if (this.addClass("".concat(C.DEFAULT, " ").concat(C.INACTIVE, " xgplayer-").concat(p, " ").concat(this.config.controls ? "" : C.NO_CONTROLS)), this.config.autoplay ? this.addClass(C.ENTER) : this.addClass(C.NO_START), this.config.fluid) {
|
|
5669
5672
|
var g = this.config, m = g.width, y = g.height;
|
|
5670
5673
|
(typeof m != "number" || typeof y != "number") && (m = 600, y = 337.5);
|
|
5671
|
-
var
|
|
5674
|
+
var k = {
|
|
5672
5675
|
width: "100%",
|
|
5673
5676
|
height: "0",
|
|
5674
5677
|
"max-width": "100%",
|
|
5675
5678
|
"padding-top": "".concat(y * 100 / m, "%")
|
|
5676
5679
|
};
|
|
5677
|
-
Object.keys(
|
|
5678
|
-
i.root.style[R] =
|
|
5680
|
+
Object.keys(k).forEach(function(R) {
|
|
5681
|
+
i.root.style[R] = k[R];
|
|
5679
5682
|
});
|
|
5680
5683
|
} else
|
|
5681
5684
|
["width", "height"].forEach(function(R) {
|
|
@@ -5697,7 +5700,7 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
5697
5700
|
var e = this;
|
|
5698
5701
|
["focus", "blur"].forEach(function(i) {
|
|
5699
5702
|
e.on(i, e["on" + i.charAt(0).toUpperCase() + i.slice(1)]);
|
|
5700
|
-
}),
|
|
5703
|
+
}), Xi.forEach(function(i) {
|
|
5701
5704
|
document && document.addEventListener(i, e.onFullscreenChange);
|
|
5702
5705
|
}), B.os.isIos && (this.media.addEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.addEventListener("webkitendfullscreen", this._onWebkitendfullscreen)), this.once(Pe, this.resize), this.playFunc = function() {
|
|
5703
5706
|
e.config.closeFocusVideoFocus || e.media.focus();
|
|
@@ -5707,7 +5710,7 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
5707
5710
|
key: "_unbindEvents",
|
|
5708
5711
|
value: function() {
|
|
5709
5712
|
var e = this;
|
|
5710
|
-
this.root.removeEventListener("mousemove", this.mousemoveFunc),
|
|
5713
|
+
this.root.removeEventListener("mousemove", this.mousemoveFunc), Xi.forEach(function(i) {
|
|
5711
5714
|
document.removeEventListener(i, e.onFullscreenChange);
|
|
5712
5715
|
}), this.playFunc && this.off(de, this.playFunc), this.off(Se, this.canPlayFunc), this.media.removeEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.removeEventListener("webkitendfullscreen", this._onWebkitendfullscreen);
|
|
5713
5716
|
}
|
|
@@ -5720,7 +5723,7 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
5720
5723
|
key: "_startInit",
|
|
5721
5724
|
value: function(e) {
|
|
5722
5725
|
var i = this;
|
|
5723
|
-
if (this.media && !((!e || e === "" || f.typeOf(e) === "Array" && e.length === 0) && (e = "", this.emit(
|
|
5726
|
+
if (this.media && !((!e || e === "" || f.typeOf(e) === "Array" && e.length === 0) && (e = "", this.emit(Nn), H.logWarn("config.url is null, please get url and run player._startInit(url)"), this.config.nullUrlStart))) {
|
|
5724
5727
|
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);
|
|
5725
5728
|
var n = this.innerContainer ? this.innerContainer : this.root;
|
|
5726
5729
|
this.media instanceof window.Element && !n.contains(this.media) && n.insertBefore(this.media, n.firstChild);
|
|
@@ -5767,7 +5770,7 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
5767
5770
|
value: function() {
|
|
5768
5771
|
var e = this;
|
|
5769
5772
|
this.config.presets.forEach(function(i) {
|
|
5770
|
-
|
|
5773
|
+
Da(e, i);
|
|
5771
5774
|
});
|
|
5772
5775
|
}
|
|
5773
5776
|
}, {
|
|
@@ -5782,7 +5785,7 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
5782
5785
|
this.leftBar || (this.leftBar = f.createPositionBar("xg-left-bar", this.root)), i = this.leftBar;
|
|
5783
5786
|
break;
|
|
5784
5787
|
case $.ROOT_TOP:
|
|
5785
|
-
this.topBar || (this.topBar = f.createPositionBar("xg-top-bar", this.root), this.config.topBarAutoHide && f.addClass(this.topBar,
|
|
5788
|
+
this.topBar || (this.topBar = f.createPositionBar("xg-top-bar", this.root), this.config.topBarAutoHide && f.addClass(this.topBar, C.TOP_BAR_AUTOHIDE)), i = this.topBar;
|
|
5786
5789
|
break;
|
|
5787
5790
|
default:
|
|
5788
5791
|
i = this.innerContainer || this.root;
|
|
@@ -5910,22 +5913,22 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
5910
5913
|
value: function() {
|
|
5911
5914
|
var e = this;
|
|
5912
5915
|
if (!this.hasStart && this.state < V.ATTACHED) {
|
|
5913
|
-
this.removeClass(
|
|
5916
|
+
this.removeClass(C.NO_START), this.addClass(C.ENTER), this.start(), this._useAutoplay = !0;
|
|
5914
5917
|
return;
|
|
5915
5918
|
}
|
|
5916
|
-
this.state < V.RUNNING && (this.removeClass(
|
|
5919
|
+
this.state < V.RUNNING && (this.removeClass(C.NO_START), !this.isCanplay && this.addClass(C.ENTER));
|
|
5917
5920
|
var i = M(O(r.prototype), "play", this).call(this);
|
|
5918
5921
|
return i !== void 0 && i && i.then ? i.then(function() {
|
|
5919
|
-
e.removeClass(
|
|
5922
|
+
e.removeClass(C.NOT_ALLOW_AUTOPLAY), e.addClass(C.PLAYING), e.state < V.RUNNING && (H.logInfo(">>>>playPromise.then"), e.setState(V.RUNNING), e.emit(We));
|
|
5920
5923
|
}).catch(function(n) {
|
|
5921
5924
|
if (H.logWarn(">>>>playPromise.catch", n.name), e.media && e.media.error) {
|
|
5922
|
-
e.onError(), e.removeClass(
|
|
5925
|
+
e.onError(), e.removeClass(C.ENTER);
|
|
5923
5926
|
return;
|
|
5924
5927
|
}
|
|
5925
5928
|
n.name === "NotAllowedError" && (e._errorTimer = f.setTimeout(e, function() {
|
|
5926
|
-
e._errorTimer = null, e.emit(
|
|
5929
|
+
e._errorTimer = null, e.emit(ki), e.addClass(C.NOT_ALLOW_AUTOPLAY), e.removeClass(C.ENTER), e.pause(), e.setState(V.NOTALLOW);
|
|
5927
5930
|
}, 0));
|
|
5928
|
-
}) : (H.logWarn("video.play not return promise"), this.state < V.RUNNING && (this.setState(V.RUNNING), this.removeClass(
|
|
5931
|
+
}) : (H.logWarn("video.play not return promise"), this.state < V.RUNNING && (this.setState(V.RUNNING), this.removeClass(C.NOT_ALLOW_AUTOPLAY), this.removeClass(C.NO_START), this.removeClass(C.ENTER), this.addClass(C.PLAYING), this.emit(We))), i;
|
|
5929
5932
|
}
|
|
5930
5933
|
}, {
|
|
5931
5934
|
key: "mediaPause",
|
|
@@ -5941,7 +5944,7 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
5941
5944
|
key: "play",
|
|
5942
5945
|
value: function() {
|
|
5943
5946
|
var e = this;
|
|
5944
|
-
return this.removeClass(
|
|
5947
|
+
return this.removeClass(C.PAUSED), Ee(this, "play", function() {
|
|
5945
5948
|
return e.mediaPlay();
|
|
5946
5949
|
});
|
|
5947
5950
|
}
|
|
@@ -5960,7 +5963,7 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
5960
5963
|
if (!(!this.media || Number.isNaN(Number(e)) || !this.hasStart)) {
|
|
5961
5964
|
var s = this.config, l = s.isSeekedPlay, u = s.seekedStatus, c = i || (l ? "play" : u);
|
|
5962
5965
|
e = e < 0 ? 0 : e > this.duration ? parseInt(this.duration, 10) : e, !this._isPauseBeforeSeek && (this._isPauseBeforeSeek = this.paused ? 2 : 1), this._onceSeekCanplay && this.off(Ie, this._onceSeekCanplay), this._onceSeekCanplay = function() {
|
|
5963
|
-
switch (n.removeClass(
|
|
5966
|
+
switch (n.removeClass(C.ENTER), n.isSeeking = !1, c) {
|
|
5964
5967
|
case "play":
|
|
5965
5968
|
n.play();
|
|
5966
5969
|
break;
|
|
@@ -5971,7 +5974,7 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
5971
5974
|
n._isPauseBeforeSeek > 1 || n.paused ? n.pause() : n.play();
|
|
5972
5975
|
}
|
|
5973
5976
|
n._isPauseBeforeSeek = 0, n._onceSeekCanplay = null;
|
|
5974
|
-
}, this.once(Ie, this._onceSeekCanplay), this.state < V.RUNNING ? (this.removeClass(
|
|
5977
|
+
}, this.once(Ie, this._onceSeekCanplay), this.state < V.RUNNING ? (this.removeClass(C.NO_START), this.currentTime = e, this.play()) : this.currentTime = e;
|
|
5975
5978
|
}
|
|
5976
5979
|
}
|
|
5977
5980
|
}, {
|
|
@@ -6018,10 +6021,10 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
6018
6021
|
}, {
|
|
6019
6022
|
key: "resetState",
|
|
6020
6023
|
value: function() {
|
|
6021
|
-
var e = this, i =
|
|
6024
|
+
var e = this, i = C.NOT_ALLOW_AUTOPLAY, n = C.PLAYING, s = C.NO_START, l = C.PAUSED, u = C.REPLAY, c = C.ENTER, h = C.ENDED, d = C.ERROR, p = C.LOADING, g = [i, n, s, l, u, c, h, d, p];
|
|
6022
6025
|
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) {
|
|
6023
6026
|
e.removeClass(m);
|
|
6024
|
-
}), this.addClass(
|
|
6027
|
+
}), this.addClass(C.NO_START), this.emit(Nt);
|
|
6025
6028
|
}
|
|
6026
6029
|
}, {
|
|
6027
6030
|
key: "reset",
|
|
@@ -6032,7 +6035,7 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
6032
6035
|
if (s && (i.map(function(u) {
|
|
6033
6036
|
e.deregister(u);
|
|
6034
6037
|
}), n)) {
|
|
6035
|
-
var l =
|
|
6038
|
+
var l = rn();
|
|
6036
6039
|
Object.keys(this.config).keys(function(u) {
|
|
6037
6040
|
e.config[u] !== "undefined" && (u === "plugins" || u === "presets" || u === "el" || u === "id") && (e.config[u] = l[u]);
|
|
6038
6041
|
});
|
|
@@ -6043,7 +6046,7 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
6043
6046
|
value: function() {
|
|
6044
6047
|
var e, i = this, n = this.innerContainer, s = this.root, l = this.media;
|
|
6045
6048
|
if (!(!s || !l)) {
|
|
6046
|
-
if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(je), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(wi), (e = Oe) === null || e === void 0 || e.remove(this), ie.destroy(this),
|
|
6049
|
+
if (this.hasStart = !1, this._useAutoplay = !1, s.removeAttribute(je), this.updateAcc("destroy"), this._unbindEvents(), this._detachSourceEvents(this.media), f.clearAllTimers(this), this.emit(wi), (e = Oe) === null || e === void 0 || e.remove(this), ie.destroy(this), Zn(this), M(O(r.prototype), "destroy", this).call(this), this.fullscreen && this._fullscreenEl === this.root && this.exitFullscreen(), n)
|
|
6047
6050
|
for (var u = n.children, c = 0; c < u.length; c++)
|
|
6048
6051
|
n.removeChild(u[c]);
|
|
6049
6052
|
!n && l instanceof window.Node && s.contains(l) && s.removeChild(l), ["topBar", "leftBar", "rightBar", "innerContainer"].map(function(d) {
|
|
@@ -6061,7 +6064,7 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
6061
6064
|
key: "replay",
|
|
6062
6065
|
value: function() {
|
|
6063
6066
|
var e = this;
|
|
6064
|
-
this.removeClass(
|
|
6067
|
+
this.removeClass(C.ENDED), this.currentTime = 0, this.isSeeking = !1, Ee(this, "replay", function() {
|
|
6065
6068
|
e.once(Ie, function() {
|
|
6066
6069
|
var i = e.mediaPlay();
|
|
6067
6070
|
i && i.catch && i.catch(function(n) {
|
|
@@ -6074,7 +6077,7 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
6074
6077
|
key: "retry",
|
|
6075
6078
|
value: function() {
|
|
6076
6079
|
var e = this;
|
|
6077
|
-
this.removeClass(
|
|
6080
|
+
this.removeClass(C.ERROR), this.addClass(C.LOADING), Ee(this, "retry", function() {
|
|
6078
6081
|
var i = e.currentTime, n = e.config.url, s = f.isMSE(e.media) ? {
|
|
6079
6082
|
url: n
|
|
6080
6083
|
} : e._preProcessUrl(n);
|
|
@@ -6086,12 +6089,12 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
6086
6089
|
}, {
|
|
6087
6090
|
key: "changeFullStyle",
|
|
6088
6091
|
value: function(e, i, n, s) {
|
|
6089
|
-
e && (s || (s =
|
|
6092
|
+
e && (s || (s = C.PARENT_FULLSCREEN), this._orgCss || (this._orgCss = f.filterStyleFromText(e)), f.addClass(e, n), i && i !== e && !this._orgPCss && (this._orgPCss = f.filterStyleFromText(i), f.addClass(i, s), i.setAttribute(je, this.playerId)));
|
|
6090
6093
|
}
|
|
6091
6094
|
}, {
|
|
6092
6095
|
key: "recoverFullStyle",
|
|
6093
6096
|
value: function(e, i, n, s) {
|
|
6094
|
-
s || (s =
|
|
6097
|
+
s || (s = C.PARENT_FULLSCREEN), this._orgCss && (f.setStyleFromCsstext(e, this._orgCss), this._orgCss = ""), f.removeClass(e, n), i && i !== e && this._orgPCss && (f.setStyleFromCsstext(i, this._orgPCss), this._orgPCss = "", f.removeClass(i, s), i.removeAttribute(je));
|
|
6095
6098
|
}
|
|
6096
6099
|
}, {
|
|
6097
6100
|
key: "getFullscreen",
|
|
@@ -6105,8 +6108,8 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
6105
6108
|
if (s === this._fullscreenEl)
|
|
6106
6109
|
return this.onFullscreenChange(), Promise.resolve();
|
|
6107
6110
|
try {
|
|
6108
|
-
for (var l = 0; l <
|
|
6109
|
-
var u =
|
|
6111
|
+
for (var l = 0; l < qi.length; l++) {
|
|
6112
|
+
var u = qi[l];
|
|
6110
6113
|
if (e[u]) {
|
|
6111
6114
|
var c = u === "webkitRequestFullscreen" ? e.webkitRequestFullscreen(window.Element.ALLOW_KEYBOARD_INPUT) : e[u]();
|
|
6112
6115
|
return c && c.then ? c : Promise.resolve();
|
|
@@ -6125,8 +6128,8 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
6125
6128
|
var i = this.media;
|
|
6126
6129
|
this._fullActionFrom = "exit";
|
|
6127
6130
|
try {
|
|
6128
|
-
for (var n = 0; n <
|
|
6129
|
-
var s =
|
|
6131
|
+
for (var n = 0; n < Zi.length; n++) {
|
|
6132
|
+
var s = Zi[n];
|
|
6130
6133
|
if (document[s]) {
|
|
6131
6134
|
var l = document[s]();
|
|
6132
6135
|
return l && l.then ? l : Promise.resolve();
|
|
@@ -6143,7 +6146,7 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
6143
6146
|
value: function() {
|
|
6144
6147
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.config.fullscreenTarget;
|
|
6145
6148
|
this.isRotateFullscreen ? this.exitRotateFullscreen() : this.fullscreen && this.exitFullscreen();
|
|
6146
|
-
var i = e ? "".concat(
|
|
6149
|
+
var i = e ? "".concat(C.INNER_FULLSCREEN, " ").concat(C.CSS_FULLSCREEN) : C.CSS_FULLSCREEN;
|
|
6147
6150
|
this.changeFullStyle(this.root, e, i);
|
|
6148
6151
|
var n = this.config.fullscreen, s = n === void 0 ? {} : n, l = s.useCssFullscreen === !0 || typeof s.useCssFullscreen == "function" && s.useCssFullscreen();
|
|
6149
6152
|
l && (this.fullscreen = !0, this.emit(Te, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(St, !0);
|
|
@@ -6151,7 +6154,7 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
6151
6154
|
}, {
|
|
6152
6155
|
key: "exitCssFullscreen",
|
|
6153
6156
|
value: function() {
|
|
6154
|
-
var e = this._cssfullscreenEl ? "".concat(
|
|
6157
|
+
var e = this._cssfullscreenEl ? "".concat(C.INNER_FULLSCREEN, " ").concat(C.CSS_FULLSCREEN) : C.CSS_FULLSCREEN;
|
|
6155
6158
|
if (!this.fullscreen)
|
|
6156
6159
|
this.recoverFullStyle(this.root, this._cssfullscreenEl, e);
|
|
6157
6160
|
else {
|
|
@@ -6165,14 +6168,14 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
6165
6168
|
value: function() {
|
|
6166
6169
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.config.fullscreenTarget;
|
|
6167
6170
|
this.cssfullscreen && this.exitCssFullscreen(e);
|
|
6168
|
-
var i = e ? "".concat(
|
|
6169
|
-
this._fullscreenEl = e || this.root, this.changeFullStyle(this.root, e, i,
|
|
6171
|
+
var i = e ? "".concat(C.INNER_FULLSCREEN, " ").concat(C.ROTATE_FULLSCREEN) : C.ROTATE_FULLSCREEN;
|
|
6172
|
+
this._fullscreenEl = e || this.root, this.changeFullStyle(this.root, e, i, C.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !0, this.fullscreen = !0, this.setRotateDeg(90), this._rootStyle = this.root.getAttribute("style"), this.root.style.width = "".concat(window.innerHeight, "px"), this.emit(Te, !0);
|
|
6170
6173
|
}
|
|
6171
6174
|
}, {
|
|
6172
6175
|
key: "exitRotateFullscreen",
|
|
6173
6176
|
value: function(e) {
|
|
6174
|
-
var i = this._fullscreenEl !== this.root ? "".concat(
|
|
6175
|
-
this.recoverFullStyle(this.root, this._fullscreenEl, i,
|
|
6177
|
+
var i = this._fullscreenEl !== this.root ? "".concat(C.INNER_FULLSCREEN, " ").concat(C.ROTATE_FULLSCREEN) : C.ROTATE_FULLSCREEN;
|
|
6178
|
+
this.recoverFullStyle(this.root, this._fullscreenEl, i, C.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !1, this.fullscreen = !1, this.setRotateDeg(0), this.emit(Te, !1), this._rootStyle && (this.root.style.style = this._rootStyle, this._rootStyle = !1);
|
|
6176
6179
|
}
|
|
6177
6180
|
}, {
|
|
6178
6181
|
key: "setRotateDeg",
|
|
@@ -6205,7 +6208,7 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
6205
6208
|
this.onBlur(e);
|
|
6206
6209
|
return;
|
|
6207
6210
|
}
|
|
6208
|
-
this._clearUserTimer(), this.emit(
|
|
6211
|
+
this._clearUserTimer(), this.emit(Fn, Z({
|
|
6209
6212
|
paused: this.paused,
|
|
6210
6213
|
ended: this.ended
|
|
6211
6214
|
}, e));
|
|
@@ -6217,7 +6220,7 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
6217
6220
|
autoHide: !0,
|
|
6218
6221
|
delay: 3e3
|
|
6219
6222
|
}, n = this.innerStates;
|
|
6220
|
-
if (this.isActive = !0, this.removeClass(
|
|
6223
|
+
if (this.isActive = !0, this.removeClass(C.INACTIVE), this._clearUserTimer(), i.isLock !== void 0 && (n.isActiveLocked = i.isLock), i.autoHide === !1 || i.isLock === !0 || n.isActiveLocked) {
|
|
6221
6224
|
this._clearUserTimer();
|
|
6222
6225
|
return;
|
|
6223
6226
|
}
|
|
@@ -6232,7 +6235,7 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
6232
6235
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = e.ignorePaused, n = i === void 0 ? !1 : i;
|
|
6233
6236
|
if (!this.innerStates.isActiveLocked) {
|
|
6234
6237
|
var s = this.config.closePauseVideoFocus;
|
|
6235
|
-
this.isActive = !1, (n || s || !this.paused && !this.ended) && this.addClass(
|
|
6238
|
+
this.isActive = !1, (n || s || !this.paused && !this.ended) && this.addClass(C.INACTIVE);
|
|
6236
6239
|
}
|
|
6237
6240
|
}
|
|
6238
6241
|
}, {
|
|
@@ -6243,7 +6246,7 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
6243
6246
|
}, {
|
|
6244
6247
|
key: "onCanplay",
|
|
6245
6248
|
value: function() {
|
|
6246
|
-
this.removeClass(
|
|
6249
|
+
this.removeClass(C.ENTER), this.removeClass(C.ERROR), this.removeClass(C.LOADING), this.isCanplay = !0, this.waitTimer && f.clearTimeout(this, this.waitTimer);
|
|
6247
6250
|
}
|
|
6248
6251
|
}, {
|
|
6249
6252
|
key: "onLoadeddata",
|
|
@@ -6253,44 +6256,44 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
6253
6256
|
}, {
|
|
6254
6257
|
key: "onLoadstart",
|
|
6255
6258
|
value: function() {
|
|
6256
|
-
this.removeClass(
|
|
6259
|
+
this.removeClass(C.ERROR), this.isCanplay = !1;
|
|
6257
6260
|
}
|
|
6258
6261
|
}, {
|
|
6259
6262
|
key: "onPlay",
|
|
6260
6263
|
value: function() {
|
|
6261
|
-
this.state === V.ENDED && this.setState(V.RUNNING), this.removeClass(
|
|
6264
|
+
this.state === V.ENDED && this.setState(V.RUNNING), this.removeClass(C.PAUSED), this.ended && this.removeClass(C.ENDED), !this.config.closePlayVideoFocus && this.focus();
|
|
6262
6265
|
}
|
|
6263
6266
|
}, {
|
|
6264
6267
|
key: "onPause",
|
|
6265
6268
|
value: function() {
|
|
6266
|
-
this.addClass(
|
|
6269
|
+
this.addClass(C.PAUSED), this.updateAcc("pause"), this.config.closePauseVideoFocus || (this._clearUserTimer(), this.focus());
|
|
6267
6270
|
}
|
|
6268
6271
|
}, {
|
|
6269
6272
|
key: "onEnded",
|
|
6270
6273
|
value: function() {
|
|
6271
|
-
this.updateAcc("ended"), this.addClass(
|
|
6274
|
+
this.updateAcc("ended"), this.addClass(C.ENDED), this.setState(V.ENDED);
|
|
6272
6275
|
}
|
|
6273
6276
|
}, {
|
|
6274
6277
|
key: "onError",
|
|
6275
6278
|
value: function() {
|
|
6276
|
-
this.isError = !0, this.updateAcc("error"), this.removeClass(
|
|
6279
|
+
this.isError = !0, this.updateAcc("error"), this.removeClass(C.NOT_ALLOW_AUTOPLAY), this.removeClass(C.NO_START), this.removeClass(C.ENTER), this.removeClass(C.LOADING), this.addClass(C.ERROR);
|
|
6277
6280
|
}
|
|
6278
6281
|
}, {
|
|
6279
6282
|
key: "onSeeking",
|
|
6280
6283
|
value: function() {
|
|
6281
|
-
this.isSeeking || this.updateAcc("seeking"), this.isSeeking = !0, this.addClass(
|
|
6284
|
+
this.isSeeking || this.updateAcc("seeking"), this.isSeeking = !0, this.addClass(C.SEEKING);
|
|
6282
6285
|
}
|
|
6283
6286
|
}, {
|
|
6284
6287
|
key: "onSeeked",
|
|
6285
6288
|
value: function() {
|
|
6286
|
-
this.isSeeking = !1, this.waitTimer && f.clearTimeout(this, this.waitTimer), this.removeClass(
|
|
6289
|
+
this.isSeeking = !1, this.waitTimer && f.clearTimeout(this, this.waitTimer), this.removeClass(C.LOADING), this.removeClass(C.SEEKING);
|
|
6287
6290
|
}
|
|
6288
6291
|
}, {
|
|
6289
6292
|
key: "onWaiting",
|
|
6290
6293
|
value: function() {
|
|
6291
6294
|
var e = this;
|
|
6292
6295
|
this.waitTimer && f.clearTimeout(this, this.waitTimer), this.updateAcc("waiting"), this.waitTimer = f.setTimeout(this, function() {
|
|
6293
|
-
e.addClass(
|
|
6296
|
+
e.addClass(C.LOADING), e.emit(Un), f.clearTimeout(e, e.waitTimer), e.waitTimer = null;
|
|
6294
6297
|
}, this.config.minWaitDelay);
|
|
6295
6298
|
}
|
|
6296
6299
|
}, {
|
|
@@ -6298,7 +6301,7 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
6298
6301
|
value: function() {
|
|
6299
6302
|
var e = this;
|
|
6300
6303
|
this.isError = !1;
|
|
6301
|
-
var i =
|
|
6304
|
+
var i = C.NO_START, n = C.PAUSED, s = C.ENDED, l = C.ERROR, u = C.REPLAY, c = C.LOADING, h = [i, n, s, l, u, c];
|
|
6302
6305
|
h.forEach(function(d) {
|
|
6303
6306
|
e.removeClass(d);
|
|
6304
6307
|
}), !this._accPlayed.t && !this.paused && !this.ended && (this._accPlayed.t = (/* @__PURE__ */ new Date()).getTime());
|
|
@@ -6306,7 +6309,7 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
6306
6309
|
}, {
|
|
6307
6310
|
key: "onTimeupdate",
|
|
6308
6311
|
value: function() {
|
|
6309
|
-
!this._videoHeight && this.media.videoHeight && this.resize(), (this.waitTimer || this.hasClass(
|
|
6312
|
+
!this._videoHeight && this.media.videoHeight && this.resize(), (this.waitTimer || this.hasClass(C.LOADING)) && this.media.readyState > 2 && (this.removeClass(C.LOADING), f.clearTimeout(this, this.waitTimer), this.waitTimer = null), !this.paused && this.state === V.NOTALLOW && this.duration && (this.setState(V.RUNNING), this.emit(We)), !this._accPlayed.t && !this.paused && !this.ended && (this._accPlayed.t = (/* @__PURE__ */ new Date()).getTime());
|
|
6310
6313
|
}
|
|
6311
6314
|
}, {
|
|
6312
6315
|
key: "onVolumechange",
|
|
@@ -6365,7 +6368,7 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
6365
6368
|
this.videoPos.pi = c, u = u < 0 ? 0 : u;
|
|
6366
6369
|
var h = {
|
|
6367
6370
|
rotate: u
|
|
6368
|
-
}, d = 0, p = 0, g = 1, m = Math.abs(u / 90), y = this.root,
|
|
6371
|
+
}, d = 0, p = 0, g = 1, m = Math.abs(u / 90), y = this.root, k = this.innerContainer, b = y.offsetWidth, w = k ? k.offsetHeight : y.offsetHeight, P = w, F = b;
|
|
6369
6372
|
if (m % 2 === 0)
|
|
6370
6373
|
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(F, "px"), this.media.style.height = "".concat(P, "px");
|
|
6371
6374
|
else if (m % 2 === 1) {
|
|
@@ -6422,15 +6425,15 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
6422
6425
|
var n = this.media, s = n.videoWidth, l = n.videoHeight, u = this.config, c = u.fitVideoSize, h = u.videoFillMode;
|
|
6423
6426
|
if ((h === "fill" || h === "cover" || h === "contain") && this.setAttribute("data-xgfill", h), !(!l || !s)) {
|
|
6424
6427
|
this._videoHeight = l, this._videoWidth = s;
|
|
6425
|
-
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),
|
|
6426
|
-
c === "auto" && y > m || c === "fixWidth" ? (b = p / m * 1e3, this.config.fluid ? w.paddingTop = "".concat(b * 100 /
|
|
6428
|
+
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), k = p, b = g, w = {};
|
|
6429
|
+
c === "auto" && y > m || c === "fixWidth" ? (b = p / m * 1e3, this.config.fluid ? w.paddingTop = "".concat(b * 100 / k, "%") : w.height = "".concat(b + d, "px")) : (c === "auto" && y < m || c === "fixHeight") && (k = m * g / 1e3, w.width = "".concat(k, "px")), !this.fullscreen && !this.cssfullscreen && Object.keys(w).forEach(function(F) {
|
|
6427
6430
|
e.root.style[F] = w[F];
|
|
6428
6431
|
}), (h === "fillHeight" && y < m || h === "fillWidth" && y > m) && this.setAttribute("data-xgfill", "cover");
|
|
6429
6432
|
var P = {
|
|
6430
6433
|
videoScale: m,
|
|
6431
|
-
vWidth:
|
|
6434
|
+
vWidth: k,
|
|
6432
6435
|
vHeight: b,
|
|
6433
|
-
cWidth:
|
|
6436
|
+
cWidth: k,
|
|
6434
6437
|
cHeight: b + d
|
|
6435
6438
|
};
|
|
6436
6439
|
this.resizePosition(), this.emit(Ne, P);
|
|
@@ -6450,7 +6453,7 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
6450
6453
|
}, {
|
|
6451
6454
|
key: "setState",
|
|
6452
6455
|
value: function(e) {
|
|
6453
|
-
H.logInfo("setState", "state from:".concat(
|
|
6456
|
+
H.logInfo("setState", "state from:".concat(sn[this.state], " to:").concat(sn[e])), this._state = e;
|
|
6454
6457
|
}
|
|
6455
6458
|
}, {
|
|
6456
6459
|
key: "_preProcessUrl",
|
|
@@ -6616,18 +6619,18 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
6616
6619
|
}, {
|
|
6617
6620
|
key: "avgSpeed",
|
|
6618
6621
|
get: function() {
|
|
6619
|
-
return
|
|
6622
|
+
return an;
|
|
6620
6623
|
},
|
|
6621
6624
|
set: function(e) {
|
|
6622
|
-
|
|
6625
|
+
an = e;
|
|
6623
6626
|
}
|
|
6624
6627
|
}, {
|
|
6625
6628
|
key: "realTimeSpeed",
|
|
6626
6629
|
get: function() {
|
|
6627
|
-
return
|
|
6630
|
+
return on;
|
|
6628
6631
|
},
|
|
6629
6632
|
set: function(e) {
|
|
6630
|
-
|
|
6633
|
+
on = e;
|
|
6631
6634
|
}
|
|
6632
6635
|
}, {
|
|
6633
6636
|
key: "offsetCurrentTime",
|
|
@@ -6648,12 +6651,12 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
6648
6651
|
}, {
|
|
6649
6652
|
key: "hook",
|
|
6650
6653
|
value: function(e, i) {
|
|
6651
|
-
return
|
|
6654
|
+
return Lt.call.apply(Lt, [this].concat(Array.prototype.slice.call(arguments)));
|
|
6652
6655
|
}
|
|
6653
6656
|
}, {
|
|
6654
6657
|
key: "useHooks",
|
|
6655
6658
|
value: function(e, i) {
|
|
6656
|
-
return
|
|
6659
|
+
return At.call.apply(At, [this].concat(Array.prototype.slice.call(arguments)));
|
|
6657
6660
|
}
|
|
6658
6661
|
}, {
|
|
6659
6662
|
key: "removeHooks",
|
|
@@ -6665,14 +6668,14 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
6665
6668
|
value: function(e, i, n) {
|
|
6666
6669
|
for (var s = arguments.length, l = new Array(s > 3 ? s - 3 : 0), u = 3; u < s; u++)
|
|
6667
6670
|
l[u - 3] = arguments[u];
|
|
6668
|
-
return
|
|
6671
|
+
return Ji.call.apply(Ji, [this].concat(Array.prototype.slice.call(arguments)));
|
|
6669
6672
|
}
|
|
6670
6673
|
}, {
|
|
6671
6674
|
key: "removePluginHooks",
|
|
6672
6675
|
value: function(e, i, n) {
|
|
6673
6676
|
for (var s = arguments.length, l = new Array(s > 3 ? s - 3 : 0), u = 3; u < s; u++)
|
|
6674
6677
|
l[u - 3] = arguments[u];
|
|
6675
|
-
return
|
|
6678
|
+
return Qi.call.apply(Qi, [this].concat(Array.prototype.slice.call(arguments)));
|
|
6676
6679
|
}
|
|
6677
6680
|
}, {
|
|
6678
6681
|
key: "setUserActive",
|
|
@@ -6729,10 +6732,10 @@ var Na = ["play", "pause", "replay", "retry"], sn = 0, on = 0, Oe = null, Bt = /
|
|
|
6729
6732
|
r.plugins || (r.plugins = {}), r.plugins[e] = i;
|
|
6730
6733
|
}
|
|
6731
6734
|
}]), r;
|
|
6732
|
-
}(
|
|
6735
|
+
}(pa);
|
|
6733
6736
|
_(Bt, "defaultPreset", null);
|
|
6734
6737
|
_(Bt, "XgVideoProxy", null);
|
|
6735
|
-
Bt.instManager =
|
|
6738
|
+
Bt.instManager = Qn.getInstance();
|
|
6736
6739
|
function re() {
|
|
6737
6740
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
6738
6741
|
}
|
|
@@ -6744,9 +6747,9 @@ var Re = {
|
|
|
6744
6747
|
WAIT_END: "waitingEnd",
|
|
6745
6748
|
SEEK_START: "seekStart",
|
|
6746
6749
|
SEEK_END: "seekEnd"
|
|
6747
|
-
},
|
|
6748
|
-
|
|
6749
|
-
var o =
|
|
6750
|
+
}, Ha = /* @__PURE__ */ function(a) {
|
|
6751
|
+
L(r, a);
|
|
6752
|
+
var o = A(r);
|
|
6750
6753
|
function r() {
|
|
6751
6754
|
var t;
|
|
6752
6755
|
x(this, r);
|
|
@@ -6871,7 +6874,7 @@ var Re = {
|
|
|
6871
6874
|
key: "emitLog",
|
|
6872
6875
|
value: function(e, i) {
|
|
6873
6876
|
var n = this.player;
|
|
6874
|
-
this.emit(
|
|
6877
|
+
this.emit(Wn, Z({
|
|
6875
6878
|
t: re(),
|
|
6876
6879
|
host: f.getHostFromUrl(n.currentSrc),
|
|
6877
6880
|
vtype: n.vtype,
|
|
@@ -6895,15 +6898,15 @@ var Re = {
|
|
|
6895
6898
|
}
|
|
6896
6899
|
}]), r;
|
|
6897
6900
|
}(j);
|
|
6898
|
-
function
|
|
6901
|
+
function Ua() {
|
|
6899
6902
|
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">
|
|
6900
6903
|
<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>
|
|
6901
6904
|
</svg>
|
|
6902
6905
|
`, "image/svg+xml").firstChild;
|
|
6903
6906
|
}
|
|
6904
|
-
var
|
|
6905
|
-
|
|
6906
|
-
var o =
|
|
6907
|
+
var za = /* @__PURE__ */ function(a) {
|
|
6908
|
+
L(r, a);
|
|
6909
|
+
var o = A(r);
|
|
6907
6910
|
function r() {
|
|
6908
6911
|
return x(this, r), o.apply(this, arguments);
|
|
6909
6912
|
}
|
|
@@ -6911,7 +6914,7 @@ var Ua = /* @__PURE__ */ function(a) {
|
|
|
6911
6914
|
key: "registerIcons",
|
|
6912
6915
|
value: function() {
|
|
6913
6916
|
return {
|
|
6914
|
-
replay:
|
|
6917
|
+
replay: Ua
|
|
6915
6918
|
};
|
|
6916
6919
|
}
|
|
6917
6920
|
}, {
|
|
@@ -6984,9 +6987,9 @@ var Ua = /* @__PURE__ */ function(a) {
|
|
|
6984
6987
|
};
|
|
6985
6988
|
}
|
|
6986
6989
|
}]), r;
|
|
6987
|
-
}(j),
|
|
6988
|
-
|
|
6989
|
-
var o =
|
|
6990
|
+
}(j), Va = /* @__PURE__ */ function(a) {
|
|
6991
|
+
L(r, a);
|
|
6992
|
+
var o = A(r);
|
|
6990
6993
|
function r() {
|
|
6991
6994
|
return x(this, r), o.apply(this, arguments);
|
|
6992
6995
|
}
|
|
@@ -7109,7 +7112,7 @@ function Si() {
|
|
|
7109
7112
|
`, "image/svg+xml").firstChild;
|
|
7110
7113
|
}
|
|
7111
7114
|
var we = {};
|
|
7112
|
-
function
|
|
7115
|
+
function ja(a, o) {
|
|
7113
7116
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
7114
7117
|
start: null,
|
|
7115
7118
|
end: null
|
|
@@ -7118,7 +7121,7 @@ function Va(a, o) {
|
|
|
7118
7121
|
r.end && r.end(), window.clearTimeout(we[a].id), delete we[a];
|
|
7119
7122
|
}, o), we[a].id;
|
|
7120
7123
|
}
|
|
7121
|
-
function
|
|
7124
|
+
function ln(a) {
|
|
7122
7125
|
if (a) {
|
|
7123
7126
|
window.clearTimeout(a);
|
|
7124
7127
|
return;
|
|
@@ -7127,9 +7130,9 @@ function an(a) {
|
|
|
7127
7130
|
window.clearTimeout(we[o].id), delete we[o];
|
|
7128
7131
|
});
|
|
7129
7132
|
}
|
|
7130
|
-
var
|
|
7131
|
-
|
|
7132
|
-
var o =
|
|
7133
|
+
var Wa = /* @__PURE__ */ function(a) {
|
|
7134
|
+
L(r, a);
|
|
7135
|
+
var o = A(r);
|
|
7133
7136
|
function r(t) {
|
|
7134
7137
|
var e;
|
|
7135
7138
|
return x(this, r), e = o.call(this, t), _(v(e), "onPlayerReset", function() {
|
|
@@ -7147,9 +7150,9 @@ var ja = /* @__PURE__ */ function(a) {
|
|
|
7147
7150
|
key: "afterCreate",
|
|
7148
7151
|
value: function() {
|
|
7149
7152
|
var e = this, i = this.player, n = this.playerConfig;
|
|
7150
|
-
this.initIcons(), this.once(
|
|
7153
|
+
this.initIcons(), this.once(Ci, function() {
|
|
7151
7154
|
n && (n.lang && n.lang === "en" ? f.addClass(i.root, "lang-is-en") : n.lang === "jp" && f.addClass(i.root, "lang-is-jp"));
|
|
7152
|
-
}), this.on(We, this.onAutoplayStart), n.autoplay || this.show(), this.on(
|
|
7155
|
+
}), this.on(We, this.onAutoplayStart), n.autoplay || this.show(), this.on(ki, function() {
|
|
7153
7156
|
var s = e.config.mode === "auto" ? "auto-hide" : "hide";
|
|
7154
7157
|
e.setAttr("data-state", "play"), f.removeClass(e.root, s), e.show();
|
|
7155
7158
|
}), this.on(de, function() {
|
|
@@ -7219,7 +7222,7 @@ var ja = /* @__PURE__ */ function(a) {
|
|
|
7219
7222
|
key: "animate",
|
|
7220
7223
|
value: function(e) {
|
|
7221
7224
|
var i = this;
|
|
7222
|
-
this._animateId =
|
|
7225
|
+
this._animateId = ja("pauseplay", 400, {
|
|
7223
7226
|
start: function() {
|
|
7224
7227
|
f.addClass(i.root, "interact"), i.show(), i.switchStatus(!0);
|
|
7225
7228
|
},
|
|
@@ -7231,7 +7234,7 @@ var ja = /* @__PURE__ */ function(a) {
|
|
|
7231
7234
|
}, {
|
|
7232
7235
|
key: "endAnimate",
|
|
7233
7236
|
value: function() {
|
|
7234
|
-
f.removeClass(this.root, "interact"),
|
|
7237
|
+
f.removeClass(this.root, "interact"), ln(this._animateId), this._animateId = null;
|
|
7235
7238
|
}
|
|
7236
7239
|
}, {
|
|
7237
7240
|
key: "switchPausePlay",
|
|
@@ -7275,7 +7278,7 @@ var ja = /* @__PURE__ */ function(a) {
|
|
|
7275
7278
|
}, {
|
|
7276
7279
|
key: "destroy",
|
|
7277
7280
|
value: function() {
|
|
7278
|
-
this.unbind(["click", "touchend"], this.clickHandler),
|
|
7281
|
+
this.unbind(["click", "touchend"], this.clickHandler), ln(this._animateId);
|
|
7279
7282
|
}
|
|
7280
7283
|
}, {
|
|
7281
7284
|
key: "render",
|
|
@@ -7302,9 +7305,9 @@ var ja = /* @__PURE__ */ function(a) {
|
|
|
7302
7305
|
};
|
|
7303
7306
|
}
|
|
7304
7307
|
}]), r;
|
|
7305
|
-
}(j),
|
|
7306
|
-
|
|
7307
|
-
var o =
|
|
7308
|
+
}(j), Ga = /* @__PURE__ */ function(a) {
|
|
7309
|
+
L(r, a);
|
|
7310
|
+
var o = A(r);
|
|
7308
7311
|
function r() {
|
|
7309
7312
|
return x(this, r), o.apply(this, arguments);
|
|
7310
7313
|
}
|
|
@@ -7347,9 +7350,9 @@ function Ue(a, o, r) {
|
|
|
7347
7350
|
return '<div class="xg-tips hide"></div>';
|
|
7348
7351
|
}
|
|
7349
7352
|
}
|
|
7350
|
-
var
|
|
7351
|
-
|
|
7352
|
-
var o =
|
|
7353
|
+
var un = /* @__PURE__ */ function(a) {
|
|
7354
|
+
L(r, a);
|
|
7355
|
+
var o = A(r);
|
|
7353
7356
|
function r() {
|
|
7354
7357
|
return x(this, r), o.apply(this, arguments);
|
|
7355
7358
|
}
|
|
@@ -7397,12 +7400,12 @@ var ln = /* @__PURE__ */ function(a) {
|
|
|
7397
7400
|
}
|
|
7398
7401
|
}]), r;
|
|
7399
7402
|
}(j);
|
|
7400
|
-
function
|
|
7403
|
+
function cn(a) {
|
|
7401
7404
|
var o = parseFloat(a), r = a.indexOf("%") === -1 && !Number.isNaN(o);
|
|
7402
7405
|
return r && o;
|
|
7403
7406
|
}
|
|
7404
|
-
var xi = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"],
|
|
7405
|
-
function
|
|
7407
|
+
var xi = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], er = xi.length;
|
|
7408
|
+
function $a() {
|
|
7406
7409
|
for (var a = {
|
|
7407
7410
|
width: 0,
|
|
7408
7411
|
height: 0,
|
|
@@ -7410,30 +7413,30 @@ function Ga() {
|
|
|
7410
7413
|
innerHeight: 0,
|
|
7411
7414
|
outerWidth: 0,
|
|
7412
7415
|
outerHeight: 0
|
|
7413
|
-
}, o = 0; o <
|
|
7416
|
+
}, o = 0; o < er; o++) {
|
|
7414
7417
|
var r = xi[o];
|
|
7415
7418
|
a[r] = 0;
|
|
7416
7419
|
}
|
|
7417
7420
|
return a;
|
|
7418
7421
|
}
|
|
7419
|
-
function
|
|
7422
|
+
function Ka(a) {
|
|
7420
7423
|
var o = window.getComputedStyle(a);
|
|
7421
7424
|
return o;
|
|
7422
7425
|
}
|
|
7423
|
-
function
|
|
7426
|
+
function fn(a) {
|
|
7424
7427
|
if (typeof a == "string" && (a = document.querySelector(a)), !(!a || se(a) !== "object" || !a.nodeType)) {
|
|
7425
|
-
var o =
|
|
7428
|
+
var o = Ka(a);
|
|
7426
7429
|
if (o.display === "none")
|
|
7427
|
-
return
|
|
7430
|
+
return $a();
|
|
7428
7431
|
var r = {};
|
|
7429
7432
|
r.width = a.offsetWidth, r.height = a.offsetHeight;
|
|
7430
|
-
for (var t = r.isBorderBox = o.boxSizing === "border-box", e = 0; e <
|
|
7433
|
+
for (var t = r.isBorderBox = o.boxSizing === "border-box", e = 0; e < er; e++) {
|
|
7431
7434
|
var i = xi[e], n = o[i], s = parseFloat(n);
|
|
7432
7435
|
r[i] = Number.isNaN(s) ? 0 : s;
|
|
7433
7436
|
}
|
|
7434
|
-
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 =
|
|
7437
|
+
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 = cn(o.width);
|
|
7435
7438
|
m !== !1 && (r.width = m + (g ? 0 : l + d));
|
|
7436
|
-
var y =
|
|
7439
|
+
var y = cn(o.height);
|
|
7437
7440
|
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;
|
|
7438
7441
|
}
|
|
7439
7442
|
}
|
|
@@ -7448,13 +7451,13 @@ var qt = {
|
|
|
7448
7451
|
START: "dragStart",
|
|
7449
7452
|
MOVE: "dragMove",
|
|
7450
7453
|
ENDED: "dragEnded"
|
|
7451
|
-
},
|
|
7454
|
+
}, hn = {
|
|
7452
7455
|
mousedown: ["mousemove", "mouseup"],
|
|
7453
7456
|
touchstart: ["touchmove", "touchend", "touchcancel"],
|
|
7454
7457
|
pointerdown: ["pointermove", "pointerup", "pointercancel"]
|
|
7455
|
-
},
|
|
7456
|
-
|
|
7457
|
-
var o =
|
|
7458
|
+
}, Ya = /* @__PURE__ */ function(a) {
|
|
7459
|
+
L(r, a);
|
|
7460
|
+
var o = A(r);
|
|
7458
7461
|
function r(t) {
|
|
7459
7462
|
var e, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
7460
7463
|
return x(this, r), e = o.call(this), e.isEnabled = !0, e.isDragging = !1, e.isDown = !1, e.position = {}, e.downPoint = {}, e.dragPoint = {
|
|
@@ -7469,7 +7472,7 @@ var qt = {
|
|
|
7469
7472
|
key: "_bindStartEvent",
|
|
7470
7473
|
value: function() {
|
|
7471
7474
|
var e = this;
|
|
7472
|
-
"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)]),
|
|
7475
|
+
"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)]), hn[this._startKey].map(function(i) {
|
|
7473
7476
|
e["on".concat(i)] = e["on".concat(i)].bind(e);
|
|
7474
7477
|
});
|
|
7475
7478
|
}
|
|
@@ -7483,7 +7486,7 @@ var qt = {
|
|
|
7483
7486
|
value: function(e) {
|
|
7484
7487
|
var i = this;
|
|
7485
7488
|
if (e) {
|
|
7486
|
-
var n =
|
|
7489
|
+
var n = hn[this._startKey];
|
|
7487
7490
|
n.map(function(s) {
|
|
7488
7491
|
window.addEventListener(s, i["on".concat(s)]);
|
|
7489
7492
|
}), this._boundPointerEvents = n;
|
|
@@ -7575,7 +7578,7 @@ var qt = {
|
|
|
7575
7578
|
value: function(e, i) {
|
|
7576
7579
|
if (!(!this._root || this.isDown || !this.isEnabled)) {
|
|
7577
7580
|
this.downPoint = i, this.dragPoint.x = 0, this.dragPoint.y = 0, this._getPosition();
|
|
7578
|
-
var n =
|
|
7581
|
+
var n = fn(this._root);
|
|
7579
7582
|
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);
|
|
7580
7583
|
}
|
|
7581
7584
|
}
|
|
@@ -7656,15 +7659,15 @@ var qt = {
|
|
|
7656
7659
|
key: "_getPositionCoord",
|
|
7657
7660
|
value: function(e, i) {
|
|
7658
7661
|
if (e.indexOf("%") !== -1) {
|
|
7659
|
-
var n =
|
|
7662
|
+
var n = fn(this._root.parentNode);
|
|
7660
7663
|
return n ? parseFloat(e) / 100 * n[i] : 0;
|
|
7661
7664
|
}
|
|
7662
7665
|
return parseInt(e, 10);
|
|
7663
7666
|
}
|
|
7664
7667
|
}]), r;
|
|
7665
|
-
}(An),
|
|
7666
|
-
|
|
7667
|
-
var o =
|
|
7668
|
+
}(An), Xa = /* @__PURE__ */ function(a) {
|
|
7669
|
+
L(r, a);
|
|
7670
|
+
var o = A(r);
|
|
7668
7671
|
function r(t) {
|
|
7669
7672
|
var e;
|
|
7670
7673
|
x(this, r), e = o.call(this, t), _(v(e), "onCancelClick", function(s) {
|
|
@@ -7715,10 +7718,10 @@ var qt = {
|
|
|
7715
7718
|
}
|
|
7716
7719
|
}
|
|
7717
7720
|
};
|
|
7718
|
-
i.controls.registerPlugin(
|
|
7721
|
+
i.controls.registerPlugin(un, s, un.pluginName);
|
|
7719
7722
|
}
|
|
7720
7723
|
var l = f.checkTouchSupport() ? "touchend" : "click";
|
|
7721
|
-
this.bind(".mini-cancel-btn", l, this.onCancelClick), this.bind(".play-icon", l, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new
|
|
7724
|
+
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, {
|
|
7722
7725
|
handle: this.root
|
|
7723
7726
|
})), this.config.isScrollSwitch && window.addEventListener("scroll", this.onScroll);
|
|
7724
7727
|
}
|
|
@@ -7817,8 +7820,8 @@ var qt = {
|
|
|
7817
7820
|
mouseleave: "onMouseLeave",
|
|
7818
7821
|
mousemove: "onMouseMove"
|
|
7819
7822
|
}, Zt = ["videoClick", "videoDbClick"], Jt = /* @__PURE__ */ function(a) {
|
|
7820
|
-
|
|
7821
|
-
var o =
|
|
7823
|
+
L(r, a);
|
|
7824
|
+
var o = A(r);
|
|
7822
7825
|
function r() {
|
|
7823
7826
|
var t;
|
|
7824
7827
|
x(this, r);
|
|
@@ -7833,7 +7836,7 @@ var qt = {
|
|
|
7833
7836
|
var l = v(t), u = l.playerConfig, c = l.player;
|
|
7834
7837
|
!u.closeFocusVideoFocus && c.media.focus(), u.closeDelayBlur ? c.focus({
|
|
7835
7838
|
autoHide: !1
|
|
7836
|
-
}) : c.focus(), t.emit(
|
|
7839
|
+
}) : c.focus(), t.emit(Hn);
|
|
7837
7840
|
}), _(v(t), "onMouseLeave", function(s) {
|
|
7838
7841
|
var l = t.playerConfig, u = l.closePlayerBlur, c = l.leavePlayerTime, h = l.closeDelayBlur;
|
|
7839
7842
|
!u && !h && (c ? t.player.focus({
|
|
@@ -7841,7 +7844,7 @@ var qt = {
|
|
|
7841
7844
|
delay: c
|
|
7842
7845
|
}) : t.player.blur({
|
|
7843
7846
|
ignorePaused: !0
|
|
7844
|
-
})), t.emit(
|
|
7847
|
+
})), t.emit(Bn);
|
|
7845
7848
|
}), _(v(t), "onVideoClick", function(s) {
|
|
7846
7849
|
var l = v(t), u = l.player, c = l.playerConfig;
|
|
7847
7850
|
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() {
|
|
@@ -7932,21 +7935,21 @@ var qt = {
|
|
|
7932
7935
|
TOUCH_MOVE: "touchmove",
|
|
7933
7936
|
TOUCH_START: "touchstart",
|
|
7934
7937
|
TOUCH_END: "touchend"
|
|
7935
|
-
},
|
|
7938
|
+
}, qa = {
|
|
7936
7939
|
start: "touchstart",
|
|
7937
7940
|
end: "touchend",
|
|
7938
7941
|
move: "touchmove",
|
|
7939
7942
|
cancel: "touchcancel"
|
|
7940
|
-
},
|
|
7943
|
+
}, Za = {
|
|
7941
7944
|
start: "mousedown",
|
|
7942
7945
|
end: "mouseup",
|
|
7943
7946
|
move: "mousemove",
|
|
7944
7947
|
cancel: "mouseleave"
|
|
7945
7948
|
};
|
|
7946
|
-
function
|
|
7949
|
+
function dn(a) {
|
|
7947
7950
|
return a && a.length > 0 ? a[a.length - 1] : null;
|
|
7948
7951
|
}
|
|
7949
|
-
function
|
|
7952
|
+
function Ja() {
|
|
7950
7953
|
return {
|
|
7951
7954
|
pressDelay: 600,
|
|
7952
7955
|
dbClickDelay: 200,
|
|
@@ -7956,13 +7959,13 @@ function Za() {
|
|
|
7956
7959
|
needPreventDefault: !0
|
|
7957
7960
|
};
|
|
7958
7961
|
}
|
|
7959
|
-
var
|
|
7962
|
+
var Qa = /* @__PURE__ */ function() {
|
|
7960
7963
|
function a(o) {
|
|
7961
7964
|
var r = this, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
7962
7965
|
eventType: "touch"
|
|
7963
7966
|
};
|
|
7964
7967
|
x(this, a), _(this, "onTouchStart", function(e) {
|
|
7965
|
-
var i = r._pos, n = r.root, s =
|
|
7968
|
+
var i = r._pos, n = r.root, s = dn(e.touches);
|
|
7966
7969
|
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(Me.TOUCH_START, e);
|
|
7967
7970
|
}), _(this, "onTouchCancel", function(e) {
|
|
7968
7971
|
r.onTouchEnd(e);
|
|
@@ -7970,16 +7973,16 @@ var Ja = /* @__PURE__ */ function() {
|
|
|
7970
7973
|
var i = r._pos, n = r.root;
|
|
7971
7974
|
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(Me.PRESS_END, e), r.trigger(Me.TOUCH_END, e), !i.press && !i.moving && r.__setDb(e), i.press = !1, i.start = !1, i.moving = !1;
|
|
7972
7975
|
}), _(this, "onTouchMove", function(e) {
|
|
7973
|
-
var i = r._pos, n = r.config, s =
|
|
7976
|
+
var i = r._pos, n = r.config, s = dn(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;
|
|
7974
7977
|
Math.abs(h) < n.miniStep && Math.abs(c) < n.miniStep || (r.__clearPress(), i.press && r.trigger(Me.PRESS_END, e), i.press = !1, i.moving = !0, r.trigger(Me.TOUCH_MOVE, e));
|
|
7975
7978
|
}), this._pos = {
|
|
7976
7979
|
moving: !1,
|
|
7977
7980
|
start: !1,
|
|
7978
7981
|
x: 0,
|
|
7979
7982
|
y: 0
|
|
7980
|
-
}, this.config =
|
|
7983
|
+
}, this.config = Ja(), Object.keys(t).map(function(e) {
|
|
7981
7984
|
r.config[e] = t[e];
|
|
7982
|
-
}), this.root = o, this.events = t.eventType === "mouse" ?
|
|
7985
|
+
}), this.root = o, this.events = t.eventType === "mouse" ? Za : qa, this.pressIntrvalId = null, this.dbIntrvalId = null, this.__handlers = {}, this._initEvent();
|
|
7983
7986
|
}
|
|
7984
7987
|
return I(a, [{
|
|
7985
7988
|
key: "_initEvent",
|
|
@@ -8058,7 +8061,7 @@ var Ja = /* @__PURE__ */ function() {
|
|
|
8058
8061
|
}
|
|
8059
8062
|
}]), a;
|
|
8060
8063
|
}();
|
|
8061
|
-
function
|
|
8064
|
+
function el() {
|
|
8062
8065
|
return new DOMParser().parseFromString(`<svg width="20" height="9" viewBox="0 0 8 9" fill="none" xmlns="http://www.w3.org/2000/svg"
|
|
8063
8066
|
xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
8064
8067
|
<path opacity="0.54"
|
|
@@ -8072,9 +8075,9 @@ var Ze = {
|
|
|
8072
8075
|
SEEKING: "seeking",
|
|
8073
8076
|
PLAYBACK: "playbackrate",
|
|
8074
8077
|
LIGHT: ""
|
|
8075
|
-
}, Qt = ["videoClick", "videoDbClick"],
|
|
8076
|
-
|
|
8077
|
-
var o =
|
|
8078
|
+
}, Qt = ["videoClick", "videoDbClick"], tl = /* @__PURE__ */ function(a) {
|
|
8079
|
+
L(r, a);
|
|
8080
|
+
var o = A(r);
|
|
8078
8081
|
function r(t) {
|
|
8079
8082
|
var e;
|
|
8080
8083
|
return x(this, r), e = o.call(this, t), _(v(e), "onTouchStart", function(i) {
|
|
@@ -8091,12 +8094,12 @@ var Ze = {
|
|
|
8091
8094
|
if (!(!n || u.disableGesture || !e.duration || !l.isStart)) {
|
|
8092
8095
|
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;
|
|
8093
8096
|
if (Math.abs(m - l.x) > h || Math.abs(y - l.y) > h) {
|
|
8094
|
-
var
|
|
8095
|
-
if (w === -1 && (w = e.checkScope(m, y,
|
|
8097
|
+
var k = m - l.x, b = y - l.y, w = l.scope;
|
|
8098
|
+
if (w === -1 && (w = e.checkScope(m, y, k, b, l), w === 0 && (d ? c.blur() : c.focus({
|
|
8096
8099
|
autoHide: !1
|
|
8097
8100
|
}), !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)
|
|
8098
8101
|
return;
|
|
8099
|
-
e.executeMove(
|
|
8102
|
+
e.executeMove(k, b, w, l.width, l.height), l.x = m, l.y = y;
|
|
8100
8103
|
}
|
|
8101
8104
|
}
|
|
8102
8105
|
}), _(v(e), "onTouchEnd", function(i) {
|
|
@@ -8144,7 +8147,7 @@ var Ze = {
|
|
|
8144
8147
|
value: function() {
|
|
8145
8148
|
return {
|
|
8146
8149
|
seekTipIcon: {
|
|
8147
|
-
icon:
|
|
8150
|
+
icon: el,
|
|
8148
8151
|
class: "xg-seek-pre"
|
|
8149
8152
|
}
|
|
8150
8153
|
};
|
|
@@ -8159,7 +8162,7 @@ var Ze = {
|
|
|
8159
8162
|
var i = this.playerConfig, n = this.config, s = this.player;
|
|
8160
8163
|
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();
|
|
8161
8164
|
var l = this.domEventType === "mouse" ? "mouse" : "touch";
|
|
8162
|
-
this.touch = new
|
|
8165
|
+
this.touch = new Qa(this.root, {
|
|
8163
8166
|
eventType: l,
|
|
8164
8167
|
needPreventDefault: !this.config.disableGesture
|
|
8165
8168
|
}), this.root.addEventListener("contextmenu", function(d) {
|
|
@@ -8501,16 +8504,16 @@ var Ze = {
|
|
|
8501
8504
|
}
|
|
8502
8505
|
}]), r;
|
|
8503
8506
|
}(j);
|
|
8504
|
-
function
|
|
8507
|
+
function il(a) {
|
|
8505
8508
|
a.preventDefault(), a.returnValue = !1;
|
|
8506
8509
|
}
|
|
8507
|
-
function
|
|
8510
|
+
function gn(a) {
|
|
8508
8511
|
var o = a.tagName;
|
|
8509
8512
|
return !!(o === "INPUT" || o === "TEXTAREA" || a.isContentEditable);
|
|
8510
8513
|
}
|
|
8511
|
-
var
|
|
8512
|
-
|
|
8513
|
-
var o =
|
|
8514
|
+
var pn = /* @__PURE__ */ function(a) {
|
|
8515
|
+
L(r, a);
|
|
8516
|
+
var o = A(r);
|
|
8514
8517
|
function r() {
|
|
8515
8518
|
var t;
|
|
8516
8519
|
x(this, r);
|
|
@@ -8519,11 +8522,11 @@ var gn = /* @__PURE__ */ function(a) {
|
|
|
8519
8522
|
return t = o.call.apply(o, [this].concat(i)), _(v(t), "onBodyKeyDown", function(s) {
|
|
8520
8523
|
if (t.player) {
|
|
8521
8524
|
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;
|
|
8522
|
-
if (g || m || !(d.isUserActive || y) ||
|
|
8525
|
+
if (g || m || !(d.isUserActive || y) || gn(l.target) || !t.checkIsVisible() || l.metaKey || l.altKey || l.ctrlKey) {
|
|
8523
8526
|
h.isBodyKeyDown = !1;
|
|
8524
8527
|
return;
|
|
8525
8528
|
}
|
|
8526
|
-
!s.repeat && !h.isKeyDown && ((l.target === document.body || t.config.isGlobalTrigger && !
|
|
8529
|
+
!s.repeat && !h.isKeyDown && ((l.target === document.body || t.config.isGlobalTrigger && !gn(l.target)) && t.checkCode(u, !0) && (h.isBodyKeyDown = !0), document.addEventListener("keyup", t.onBodyKeyUp)), h.isBodyKeyDown && t.handleKeyDown(l);
|
|
8527
8530
|
}
|
|
8528
8531
|
}), _(v(t), "onBodyKeyUp", function(s) {
|
|
8529
8532
|
t.player && (document.removeEventListener("keyup", t.onBodyKeyUp), t.handleKeyUp(s));
|
|
@@ -8744,13 +8747,13 @@ var gn = /* @__PURE__ */ function(a) {
|
|
|
8744
8747
|
if (h === e) {
|
|
8745
8748
|
if (!d && !(n && g)) {
|
|
8746
8749
|
var m = n && p || c;
|
|
8747
|
-
typeof m == "function" ? c(i, this.player, n) : typeof m == "string" && typeof this[m] == "function" && this[m](i, this.player, n), this.emit(
|
|
8750
|
+
typeof m == "function" ? c(i, this.player, n) : typeof m == "string" && typeof this[m] == "function" && this[m](i, this.player, n), this.emit(jn, Z({
|
|
8748
8751
|
key: s[l],
|
|
8749
8752
|
target: i.target,
|
|
8750
8753
|
isPress: n
|
|
8751
8754
|
}, this.keyCodeMap[s[l]]));
|
|
8752
8755
|
}
|
|
8753
|
-
|
|
8756
|
+
il(i), i.stopPropagation();
|
|
8754
8757
|
break;
|
|
8755
8758
|
}
|
|
8756
8759
|
}
|
|
@@ -8792,15 +8795,15 @@ var gn = /* @__PURE__ */ function(a) {
|
|
|
8792
8795
|
}
|
|
8793
8796
|
}]), r;
|
|
8794
8797
|
}(Be);
|
|
8795
|
-
function
|
|
8798
|
+
function nl() {
|
|
8796
8799
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">
|
|
8797
8800
|
<path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>
|
|
8798
8801
|
</svg>
|
|
8799
8802
|
`, "image/svg+xml").firstChild;
|
|
8800
8803
|
}
|
|
8801
|
-
var
|
|
8802
|
-
|
|
8803
|
-
var o =
|
|
8804
|
+
var rl = /* @__PURE__ */ function(a) {
|
|
8805
|
+
L(r, a);
|
|
8806
|
+
var o = A(r);
|
|
8804
8807
|
function r() {
|
|
8805
8808
|
return x(this, r), o.apply(this, arguments);
|
|
8806
8809
|
}
|
|
@@ -8808,7 +8811,7 @@ var nl = /* @__PURE__ */ function(a) {
|
|
|
8808
8811
|
key: "registerIcons",
|
|
8809
8812
|
value: function() {
|
|
8810
8813
|
return {
|
|
8811
|
-
loadingIcon:
|
|
8814
|
+
loadingIcon: nl
|
|
8812
8815
|
};
|
|
8813
8816
|
}
|
|
8814
8817
|
}, {
|
|
@@ -8837,7 +8840,7 @@ var nl = /* @__PURE__ */ function(a) {
|
|
|
8837
8840
|
};
|
|
8838
8841
|
}
|
|
8839
8842
|
}]), r;
|
|
8840
|
-
}(j),
|
|
8843
|
+
}(j), sl = [{
|
|
8841
8844
|
tag: "xg-cache",
|
|
8842
8845
|
className: "xgplayer-progress-cache",
|
|
8843
8846
|
styleKey: "cachedColor"
|
|
@@ -8845,7 +8848,7 @@ var nl = /* @__PURE__ */ function(a) {
|
|
|
8845
8848
|
tag: "xg-played",
|
|
8846
8849
|
className: "xgplayer-progress-played",
|
|
8847
8850
|
styleKey: "playedColor"
|
|
8848
|
-
}],
|
|
8851
|
+
}], ol = /* @__PURE__ */ function() {
|
|
8849
8852
|
function a(o) {
|
|
8850
8853
|
x(this, a), this.fragments = o.fragments || [], this.fragments.length === 0 && this.fragments.push({
|
|
8851
8854
|
percent: 1
|
|
@@ -9032,7 +9035,7 @@ var nl = /* @__PURE__ */ function(a) {
|
|
|
9032
9035
|
var l = f.createDom("xg-inner", "", {
|
|
9033
9036
|
style: t ? "background:".concat(t, "; flex: ").concat(s.percent) : "flex: ".concat(s.percent)
|
|
9034
9037
|
}, "".concat(s.isFocus ? n : "", " xgplayer-progress-inner ").concat(i));
|
|
9035
|
-
return r.root.appendChild(l),
|
|
9038
|
+
return r.root.appendChild(l), sl.forEach(function(u) {
|
|
9036
9039
|
l.appendChild(f.createDom(u.tag, "", {
|
|
9037
9040
|
style: u.styleKey ? "background: ".concat(r.style[u.styleKey], "; width:0;") : "width:0;"
|
|
9038
9041
|
}, u.className));
|
|
@@ -9045,12 +9048,12 @@ var nl = /* @__PURE__ */ function(a) {
|
|
|
9045
9048
|
return this.root;
|
|
9046
9049
|
}
|
|
9047
9050
|
}]), a;
|
|
9048
|
-
}(),
|
|
9051
|
+
}(), vn = {
|
|
9049
9052
|
POINT: "inner-focus-point",
|
|
9050
9053
|
HIGHLIGHT: "inner-focus-highlight"
|
|
9051
|
-
},
|
|
9052
|
-
|
|
9053
|
-
var o =
|
|
9054
|
+
}, al = /* @__PURE__ */ function(a) {
|
|
9055
|
+
L(r, a);
|
|
9056
|
+
var o = A(r);
|
|
9054
9057
|
function r(t) {
|
|
9055
9058
|
var e;
|
|
9056
9059
|
return x(this, r), e = o.call(this, t), _(v(e), "onMoveOnly", function(i, n) {
|
|
@@ -9178,7 +9181,7 @@ var nl = /* @__PURE__ */ function(a) {
|
|
|
9178
9181
|
e.emitUserAction("fragment_focus", "fragment_focus", u);
|
|
9179
9182
|
}
|
|
9180
9183
|
});
|
|
9181
|
-
this.innerList ? this.innerList.reset(s) : (this.innerList = new
|
|
9184
|
+
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) {
|
|
9182
9185
|
e[l] = e.innerList[l].bind(e.innerList);
|
|
9183
9186
|
}));
|
|
9184
9187
|
}
|
|
@@ -9212,7 +9215,7 @@ var nl = /* @__PURE__ */ function(a) {
|
|
|
9212
9215
|
e.onTimeupdate();
|
|
9213
9216
|
}), this.on(Ie, function() {
|
|
9214
9217
|
e.onTimeupdate(), e.onCacheUpdate();
|
|
9215
|
-
}), this.on(
|
|
9218
|
+
}), this.on(Mn, function() {
|
|
9216
9219
|
e.onCacheUpdate();
|
|
9217
9220
|
}), this.on($e, function() {
|
|
9218
9221
|
e.onCacheUpdate(!0), e.onTimeupdate(!0), e._state.now = 0;
|
|
@@ -9323,10 +9326,10 @@ var nl = /* @__PURE__ */ function(a) {
|
|
|
9323
9326
|
m = m > d ? d : m < 0 ? 0 : m;
|
|
9324
9327
|
var y = m / d;
|
|
9325
9328
|
y = y < 0 ? 0 : y > 1 ? 1 : y;
|
|
9326
|
-
var
|
|
9329
|
+
var k = parseInt(y * this.offsetDuration * 1e3, 10) / 1e3, b = f.getCurrentTimeByOffset(k, n.timeSegments);
|
|
9327
9330
|
return {
|
|
9328
9331
|
percent: y,
|
|
9329
|
-
currentTime:
|
|
9332
|
+
currentTime: k,
|
|
9330
9333
|
seekTime: b,
|
|
9331
9334
|
offset: m,
|
|
9332
9335
|
width: d,
|
|
@@ -9441,7 +9444,7 @@ var nl = /* @__PURE__ */ function(a) {
|
|
|
9441
9444
|
fragments: [{
|
|
9442
9445
|
percent: 1
|
|
9443
9446
|
}],
|
|
9444
|
-
fragFocusClass:
|
|
9447
|
+
fragFocusClass: vn.POINT,
|
|
9445
9448
|
fragClass: "",
|
|
9446
9449
|
fragAutoFocus: !1,
|
|
9447
9450
|
miniMoveStep: 5,
|
|
@@ -9456,12 +9459,12 @@ var nl = /* @__PURE__ */ function(a) {
|
|
|
9456
9459
|
}, {
|
|
9457
9460
|
key: "FRAGMENT_FOCUS_CLASS",
|
|
9458
9461
|
get: function() {
|
|
9459
|
-
return
|
|
9462
|
+
return vn;
|
|
9460
9463
|
}
|
|
9461
9464
|
}]), r;
|
|
9462
9465
|
}(j), Ye = /* @__PURE__ */ function(a) {
|
|
9463
|
-
|
|
9464
|
-
var o =
|
|
9466
|
+
L(r, a);
|
|
9467
|
+
var o = A(r);
|
|
9465
9468
|
function r() {
|
|
9466
9469
|
var t;
|
|
9467
9470
|
x(this, r);
|
|
@@ -9488,9 +9491,9 @@ var nl = /* @__PURE__ */ function(a) {
|
|
|
9488
9491
|
this.unbind("mouseenter", this._onMouseenter), this.unbind("mouseleave", this._onMouseLeave);
|
|
9489
9492
|
}
|
|
9490
9493
|
}]), r;
|
|
9491
|
-
}(j),
|
|
9492
|
-
|
|
9493
|
-
var o =
|
|
9494
|
+
}(j), ll = /* @__PURE__ */ function(a) {
|
|
9495
|
+
L(r, a);
|
|
9496
|
+
var o = A(r);
|
|
9494
9497
|
function r() {
|
|
9495
9498
|
return x(this, r), o.apply(this, arguments);
|
|
9496
9499
|
}
|
|
@@ -9576,16 +9579,16 @@ var nl = /* @__PURE__ */ function(a) {
|
|
|
9576
9579
|
}
|
|
9577
9580
|
}]), r;
|
|
9578
9581
|
}(Ye);
|
|
9579
|
-
function
|
|
9582
|
+
function ul() {
|
|
9580
9583
|
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">
|
|
9581
9584
|
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
9582
9585
|
<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>
|
|
9583
9586
|
</g>
|
|
9584
9587
|
</svg>`, "image/svg+xml").firstChild;
|
|
9585
9588
|
}
|
|
9586
|
-
var
|
|
9587
|
-
|
|
9588
|
-
var o =
|
|
9589
|
+
var cl = /* @__PURE__ */ function(a) {
|
|
9590
|
+
L(r, a);
|
|
9591
|
+
var o = A(r);
|
|
9589
9592
|
function r() {
|
|
9590
9593
|
return x(this, r), o.apply(this, arguments);
|
|
9591
9594
|
}
|
|
@@ -9602,7 +9605,7 @@ var ul = /* @__PURE__ */ function(a) {
|
|
|
9602
9605
|
value: function() {
|
|
9603
9606
|
return {
|
|
9604
9607
|
screenBack: {
|
|
9605
|
-
icon:
|
|
9608
|
+
icon: ul,
|
|
9606
9609
|
class: "xg-fullscreen-back"
|
|
9607
9610
|
}
|
|
9608
9611
|
};
|
|
@@ -9644,21 +9647,21 @@ var ul = /* @__PURE__ */ function(a) {
|
|
|
9644
9647
|
}
|
|
9645
9648
|
}]), r;
|
|
9646
9649
|
}(j);
|
|
9647
|
-
function
|
|
9650
|
+
function fl() {
|
|
9648
9651
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
|
|
9649
9652
|
<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>
|
|
9650
9653
|
</svg>
|
|
9651
9654
|
`, "image/svg+xml").firstChild;
|
|
9652
9655
|
}
|
|
9653
|
-
function
|
|
9656
|
+
function hl() {
|
|
9654
9657
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
|
|
9655
9658
|
<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>
|
|
9656
9659
|
</svg>
|
|
9657
9660
|
`, "image/svg+xml").firstChild;
|
|
9658
9661
|
}
|
|
9659
|
-
var
|
|
9660
|
-
|
|
9661
|
-
var o =
|
|
9662
|
+
var dl = /* @__PURE__ */ function(a) {
|
|
9663
|
+
L(r, a);
|
|
9664
|
+
var o = A(r);
|
|
9662
9665
|
function r() {
|
|
9663
9666
|
var t;
|
|
9664
9667
|
x(this, r);
|
|
@@ -9691,7 +9694,7 @@ var hl = /* @__PURE__ */ function(a) {
|
|
|
9691
9694
|
var u = e.find(".xg-tips");
|
|
9692
9695
|
u && e.changeLangTextKey(u, l ? e.i18nKeys.EXITFULLSCREEN_TIPS : e.i18nKeys.FULLSCREEN_TIPS), e.animate(l);
|
|
9693
9696
|
}), this.config.needBackIcon && (this.topBackIcon = this.player.registerPlugin({
|
|
9694
|
-
plugin:
|
|
9697
|
+
plugin: cl,
|
|
9695
9698
|
options: {
|
|
9696
9699
|
config: {
|
|
9697
9700
|
onClick: function(u) {
|
|
@@ -9707,11 +9710,11 @@ var hl = /* @__PURE__ */ function(a) {
|
|
|
9707
9710
|
value: function() {
|
|
9708
9711
|
return {
|
|
9709
9712
|
fullscreen: {
|
|
9710
|
-
icon:
|
|
9713
|
+
icon: fl,
|
|
9711
9714
|
class: "xg-get-fullscreen"
|
|
9712
9715
|
},
|
|
9713
9716
|
exitFullscreen: {
|
|
9714
|
-
icon:
|
|
9717
|
+
icon: hl,
|
|
9715
9718
|
class: "xg-exit-fullscreen"
|
|
9716
9719
|
}
|
|
9717
9720
|
};
|
|
@@ -9792,9 +9795,9 @@ var hl = /* @__PURE__ */ function(a) {
|
|
|
9792
9795
|
};
|
|
9793
9796
|
}
|
|
9794
9797
|
}]), r;
|
|
9795
|
-
}(Ye),
|
|
9796
|
-
|
|
9797
|
-
var o =
|
|
9798
|
+
}(Ye), gl = /* @__PURE__ */ function(a) {
|
|
9799
|
+
L(r, a);
|
|
9800
|
+
var o = A(r);
|
|
9798
9801
|
function r(t) {
|
|
9799
9802
|
var e;
|
|
9800
9803
|
return x(this, r), e = o.call(this, t), e.isActiving = !1, e;
|
|
@@ -9942,9 +9945,9 @@ var hl = /* @__PURE__ */ function(a) {
|
|
|
9942
9945
|
};
|
|
9943
9946
|
}
|
|
9944
9947
|
}]), r;
|
|
9945
|
-
}(j),
|
|
9946
|
-
|
|
9947
|
-
var o =
|
|
9948
|
+
}(j), pl = /* @__PURE__ */ function(a) {
|
|
9949
|
+
L(r, a);
|
|
9950
|
+
var o = A(r);
|
|
9948
9951
|
function r() {
|
|
9949
9952
|
var t;
|
|
9950
9953
|
x(this, r);
|
|
@@ -10080,30 +10083,30 @@ var hl = /* @__PURE__ */ function(a) {
|
|
|
10080
10083
|
}
|
|
10081
10084
|
}]), r;
|
|
10082
10085
|
}(Be);
|
|
10083
|
-
function
|
|
10086
|
+
function vl() {
|
|
10084
10087
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
10085
10088
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
10086
10089
|
<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>
|
|
10087
10090
|
</svg>
|
|
10088
10091
|
`, "image/svg+xml").firstChild;
|
|
10089
10092
|
}
|
|
10090
|
-
function
|
|
10093
|
+
function ml() {
|
|
10091
10094
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
10092
10095
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
10093
10096
|
<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>
|
|
10094
10097
|
</svg>
|
|
10095
10098
|
`, "image/svg+xml").firstChild;
|
|
10096
10099
|
}
|
|
10097
|
-
function
|
|
10100
|
+
function yl() {
|
|
10098
10101
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
10099
10102
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
10100
10103
|
<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>
|
|
10101
10104
|
</svg>
|
|
10102
10105
|
`, "image/svg+xml").firstChild;
|
|
10103
10106
|
}
|
|
10104
|
-
var
|
|
10105
|
-
|
|
10106
|
-
var o =
|
|
10107
|
+
var _l = /* @__PURE__ */ function(a) {
|
|
10108
|
+
L(r, a);
|
|
10109
|
+
var o = A(r);
|
|
10107
10110
|
function r() {
|
|
10108
10111
|
var t;
|
|
10109
10112
|
x(this, r);
|
|
@@ -10149,15 +10152,15 @@ var yl = /* @__PURE__ */ function(a) {
|
|
|
10149
10152
|
value: function() {
|
|
10150
10153
|
return {
|
|
10151
10154
|
volumeSmall: {
|
|
10152
|
-
icon:
|
|
10155
|
+
icon: ml,
|
|
10153
10156
|
class: "xg-volume-small"
|
|
10154
10157
|
},
|
|
10155
10158
|
volumeLarge: {
|
|
10156
|
-
icon:
|
|
10159
|
+
icon: vl,
|
|
10157
10160
|
class: "xg-volume"
|
|
10158
10161
|
},
|
|
10159
10162
|
volumeMuted: {
|
|
10160
|
-
icon:
|
|
10163
|
+
icon: yl,
|
|
10161
10164
|
class: "xg-volume-mute"
|
|
10162
10165
|
}
|
|
10163
10166
|
};
|
|
@@ -10179,7 +10182,7 @@ var yl = /* @__PURE__ */ function(a) {
|
|
|
10179
10182
|
pre: function(u) {
|
|
10180
10183
|
u.preventDefault(), u.stopPropagation();
|
|
10181
10184
|
}
|
|
10182
|
-
}), 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(
|
|
10185
|
+
}), 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(On, this.onVolumeChange), this.once(Pe, this.onVolumeChange), f.typeOf(s) !== "Number" && (this.player.volume = this.config.default), this.onVolumeChange();
|
|
10183
10186
|
}
|
|
10184
10187
|
}
|
|
10185
10188
|
}, {
|
|
@@ -10296,7 +10299,7 @@ var yl = /* @__PURE__ */ function(a) {
|
|
|
10296
10299
|
}
|
|
10297
10300
|
}]), r;
|
|
10298
10301
|
}(j);
|
|
10299
|
-
function
|
|
10302
|
+
function Cl() {
|
|
10300
10303
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="-4 -6 40 40" fill="none">
|
|
10301
10304
|
<g clip-path="url(#clip0)">
|
|
10302
10305
|
<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,8 +10314,8 @@ function _l() {
|
|
|
10311
10314
|
`, "image/svg+xml").firstChild;
|
|
10312
10315
|
}
|
|
10313
10316
|
var kl = /* @__PURE__ */ function(a) {
|
|
10314
|
-
|
|
10315
|
-
var o =
|
|
10317
|
+
L(r, a);
|
|
10318
|
+
var o = A(r);
|
|
10316
10319
|
function r(t) {
|
|
10317
10320
|
var e;
|
|
10318
10321
|
return x(this, r), e = o.call(this, t), e.rotateDeg = e.config.rotateDeg || 0, e;
|
|
@@ -10348,9 +10351,9 @@ var kl = /* @__PURE__ */ function(a) {
|
|
|
10348
10351
|
this.player.videoRotateDeg = e;
|
|
10349
10352
|
return;
|
|
10350
10353
|
}
|
|
10351
|
-
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,
|
|
10352
|
-
(e === 0.75 || e === 0.25) && (g = "".concat(p, "px"), m = "".concat(d, "px"), y = -(p - d) / 2,
|
|
10353
|
-
var b = "translate(".concat(y, "px,").concat(
|
|
10354
|
+
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, k = 0;
|
|
10355
|
+
(e === 0.75 || e === 0.25) && (g = "".concat(p, "px"), m = "".concat(d, "px"), y = -(p - d) / 2, k = -(d - p) / 2);
|
|
10356
|
+
var b = "translate(".concat(y, "px,").concat(k, "px) rotate(").concat(e, "turn)"), w = {
|
|
10354
10357
|
transformOrigin: "center center",
|
|
10355
10358
|
transform: b,
|
|
10356
10359
|
webKitTransform: b,
|
|
@@ -10367,13 +10370,13 @@ var kl = /* @__PURE__ */ function(a) {
|
|
|
10367
10370
|
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;
|
|
10368
10371
|
this.rotateDeg || (this.rotateDeg = 0);
|
|
10369
10372
|
var l = e ? 1 : -1;
|
|
10370
|
-
this.rotateDeg = (this.rotateDeg + 1 + l * 0.25 * n) % 1, this.updateRotateDeg(this.rotateDeg, i), s.emit(
|
|
10373
|
+
this.rotateDeg = (this.rotateDeg + 1 + l * 0.25 * n) % 1, this.updateRotateDeg(this.rotateDeg, i), s.emit(zn, this.rotateDeg * 360);
|
|
10371
10374
|
}
|
|
10372
10375
|
}, {
|
|
10373
10376
|
key: "registerIcons",
|
|
10374
10377
|
value: function() {
|
|
10375
10378
|
return {
|
|
10376
|
-
rotate:
|
|
10379
|
+
rotate: Cl
|
|
10377
10380
|
};
|
|
10378
10381
|
}
|
|
10379
10382
|
}, {
|
|
@@ -10406,14 +10409,14 @@ var kl = /* @__PURE__ */ function(a) {
|
|
|
10406
10409
|
}
|
|
10407
10410
|
}]), r;
|
|
10408
10411
|
}(Ye);
|
|
10409
|
-
function
|
|
10412
|
+
function wl() {
|
|
10410
10413
|
return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
10411
10414
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
10412
10415
|
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"
|
|
10413
10416
|
fill="white" />
|
|
10414
10417
|
</svg>`, "image/svg+xml").firstChild;
|
|
10415
10418
|
}
|
|
10416
|
-
function
|
|
10419
|
+
function bl() {
|
|
10417
10420
|
return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
10418
10421
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
10419
10422
|
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"
|
|
@@ -10427,9 +10430,9 @@ var Je = {
|
|
|
10427
10430
|
PIP: "picture-in-picture",
|
|
10428
10431
|
INLINE: "inline",
|
|
10429
10432
|
FULLSCREEN: "fullscreen"
|
|
10430
|
-
},
|
|
10431
|
-
|
|
10432
|
-
var o =
|
|
10433
|
+
}, Tl = /* @__PURE__ */ function(a) {
|
|
10434
|
+
L(r, a);
|
|
10435
|
+
var o = A(r);
|
|
10433
10436
|
function r() {
|
|
10434
10437
|
var t;
|
|
10435
10438
|
x(this, r);
|
|
@@ -10467,11 +10470,11 @@ var Je = {
|
|
|
10467
10470
|
value: function() {
|
|
10468
10471
|
return {
|
|
10469
10472
|
pipIcon: {
|
|
10470
|
-
icon:
|
|
10473
|
+
icon: wl,
|
|
10471
10474
|
class: "xg-get-pip"
|
|
10472
10475
|
},
|
|
10473
10476
|
pipIconExit: {
|
|
10474
|
-
icon:
|
|
10477
|
+
icon: bl,
|
|
10475
10478
|
class: "xg-exit-pip"
|
|
10476
10479
|
}
|
|
10477
10480
|
};
|
|
@@ -10533,7 +10536,7 @@ var Je = {
|
|
|
10533
10536
|
documentPictureInPicture.requestWindow(u).then(function(h) {
|
|
10534
10537
|
var d = s.docPiPNode, p = s.docPiPStyle;
|
|
10535
10538
|
e.enterPIPCallback();
|
|
10536
|
-
var g = d || i.root, m = g.parentElement, y = g.previousSibling,
|
|
10539
|
+
var g = d || i.root, m = g.parentElement, y = g.previousSibling, k = g.nextSibling;
|
|
10537
10540
|
e.copyStyleIntoPiPWindow(h);
|
|
10538
10541
|
var b = document.createElement("style");
|
|
10539
10542
|
if (b.append("body{padding:0; margin:0;}"), p) {
|
|
@@ -10544,7 +10547,7 @@ var Je = {
|
|
|
10544
10547
|
.xgplayer{width: 100%!important; height: 100%!important;}
|
|
10545
10548
|
`);
|
|
10546
10549
|
h.document.head.append(b), h.document.body.append(g), h.addEventListener("pagehide", function(P) {
|
|
10547
|
-
m && (
|
|
10550
|
+
m && (k ? m.insertBefore(g, k) : y ? m.insertBefore(g, y.nextSibling) : m.appendChild(g)), e.leavePIPCallback();
|
|
10548
10551
|
}, {
|
|
10549
10552
|
once: !0
|
|
10550
10553
|
});
|
|
@@ -10630,15 +10633,15 @@ var Je = {
|
|
|
10630
10633
|
}
|
|
10631
10634
|
}]), r;
|
|
10632
10635
|
}(Ye);
|
|
10633
|
-
function
|
|
10636
|
+
function El() {
|
|
10634
10637
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="40" viewBox="10 0 24 40">
|
|
10635
10638
|
<path transform="scale(0.038 0.028)" d="M800 380v768h-128v-352l-320 320v-704l320 320v-352z"></path>
|
|
10636
10639
|
</svg>
|
|
10637
10640
|
`, "image/svg+xml").firstChild;
|
|
10638
10641
|
}
|
|
10639
|
-
var
|
|
10640
|
-
|
|
10641
|
-
var o =
|
|
10642
|
+
var Sl = /* @__PURE__ */ function(a) {
|
|
10643
|
+
L(r, a);
|
|
10644
|
+
var o = A(r);
|
|
10642
10645
|
function r(t) {
|
|
10643
10646
|
var e;
|
|
10644
10647
|
return x(this, r), e = o.call(this, t), _(v(e), "playNext", function(i) {
|
|
@@ -10655,7 +10658,7 @@ var El = /* @__PURE__ */ function(a) {
|
|
|
10655
10658
|
key: "registerIcons",
|
|
10656
10659
|
value: function() {
|
|
10657
10660
|
return {
|
|
10658
|
-
playNext:
|
|
10661
|
+
playNext: El
|
|
10659
10662
|
};
|
|
10660
10663
|
}
|
|
10661
10664
|
}, {
|
|
@@ -10704,22 +10707,22 @@ var El = /* @__PURE__ */ function(a) {
|
|
|
10704
10707
|
};
|
|
10705
10708
|
}
|
|
10706
10709
|
}]), r;
|
|
10707
|
-
}(j),
|
|
10710
|
+
}(j), tr = { exports: {} };
|
|
10708
10711
|
(function(a, o) {
|
|
10709
10712
|
(function(r, t) {
|
|
10710
10713
|
a.exports = t();
|
|
10711
|
-
})(
|
|
10714
|
+
})(vo, function() {
|
|
10712
10715
|
return function r(t, e, i) {
|
|
10713
10716
|
var n = window, s = "application/octet-stream", l = i || s, u = t, c = !e && !i && u, h = document.createElement("a"), d = function(R) {
|
|
10714
10717
|
return String(R);
|
|
10715
10718
|
}, p = n.Blob || n.MozBlob || n.WebKitBlob || d, g = e || "download", m, y;
|
|
10716
10719
|
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)) {
|
|
10717
|
-
var
|
|
10718
|
-
return
|
|
10720
|
+
var k = new XMLHttpRequest();
|
|
10721
|
+
return k.open("GET", c, !0), k.responseType = "blob", k.onload = function(R) {
|
|
10719
10722
|
r(R.target.response, g, s);
|
|
10720
10723
|
}, setTimeout(function() {
|
|
10721
|
-
|
|
10722
|
-
}, 0),
|
|
10724
|
+
k.send();
|
|
10725
|
+
}, 0), k;
|
|
10723
10726
|
}
|
|
10724
10727
|
if (/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(u))
|
|
10725
10728
|
if (u.length > 1024 * 1024 * 1.999 && p !== d)
|
|
@@ -10776,10 +10779,10 @@ Use Save As... to download, then click back to return to this page.`) && (locati
|
|
|
10776
10779
|
return !0;
|
|
10777
10780
|
};
|
|
10778
10781
|
});
|
|
10779
|
-
})(
|
|
10780
|
-
var
|
|
10781
|
-
const
|
|
10782
|
-
function
|
|
10782
|
+
})(tr);
|
|
10783
|
+
var xl = tr.exports;
|
|
10784
|
+
const Il = /* @__PURE__ */ gi(xl);
|
|
10785
|
+
function Pl() {
|
|
10783
10786
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24">
|
|
10784
10787
|
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
10785
10788
|
<g transform="translate(-488.000000, -340.000000)" fill="#FFFFFF">
|
|
@@ -10796,9 +10799,9 @@ function Il() {
|
|
|
10796
10799
|
</svg>
|
|
10797
10800
|
`, "image/svg+xml").firstChild;
|
|
10798
10801
|
}
|
|
10799
|
-
var
|
|
10800
|
-
|
|
10801
|
-
var o =
|
|
10802
|
+
var Ll = /* @__PURE__ */ function(a) {
|
|
10803
|
+
L(r, a);
|
|
10804
|
+
var o = A(r);
|
|
10802
10805
|
function r(t) {
|
|
10803
10806
|
var e;
|
|
10804
10807
|
return x(this, r), e = o.call(this, t), _(v(e), "download", function(i) {
|
|
@@ -10807,7 +10810,7 @@ var Pl = /* @__PURE__ */ function(a) {
|
|
|
10807
10810
|
var n = e.playerConfig.url, s = "";
|
|
10808
10811
|
f.typeOf(n) === "String" ? s = n : f.typeOf(n) === "Array" && n.length > 0 && (s = n[0].src);
|
|
10809
10812
|
var l = e.getAbsoluteURL(s);
|
|
10810
|
-
|
|
10813
|
+
Il(l), e.isLock = !0, e.timer = window.setTimeout(function() {
|
|
10811
10814
|
e.isLock = !1, window.clearTimeout(e.timer), e.timer = null;
|
|
10812
10815
|
}, 300);
|
|
10813
10816
|
}
|
|
@@ -10826,7 +10829,7 @@ var Pl = /* @__PURE__ */ function(a) {
|
|
|
10826
10829
|
key: "registerIcons",
|
|
10827
10830
|
value: function() {
|
|
10828
10831
|
return {
|
|
10829
|
-
download:
|
|
10832
|
+
download: Pl
|
|
10830
10833
|
};
|
|
10831
10834
|
}
|
|
10832
10835
|
}, {
|
|
@@ -10869,8 +10872,8 @@ var Pl = /* @__PURE__ */ function(a) {
|
|
|
10869
10872
|
}
|
|
10870
10873
|
}]), r;
|
|
10871
10874
|
}(Ye), Al = /* @__PURE__ */ function(a) {
|
|
10872
|
-
|
|
10873
|
-
var o =
|
|
10875
|
+
L(r, a);
|
|
10876
|
+
var o = A(r);
|
|
10874
10877
|
function r() {
|
|
10875
10878
|
return x(this, r), o.apply(this, arguments);
|
|
10876
10879
|
}
|
|
@@ -10923,7 +10926,7 @@ var Pl = /* @__PURE__ */ function(a) {
|
|
|
10923
10926
|
e.preventDefault(), e.stopPropagation(), this.emitUserAction(e, "shot");
|
|
10924
10927
|
var n = this.config;
|
|
10925
10928
|
this.shot(n.width, n.height).then(function(s) {
|
|
10926
|
-
i.emit(
|
|
10929
|
+
i.emit(Vn, s), n.saveImg && i.saveScreenShot(s, n.name + n.format);
|
|
10927
10930
|
});
|
|
10928
10931
|
}
|
|
10929
10932
|
}, {
|
|
@@ -10939,8 +10942,8 @@ var Pl = /* @__PURE__ */ function(a) {
|
|
|
10939
10942
|
g = u.media.canvas;
|
|
10940
10943
|
else {
|
|
10941
10944
|
n.canvas ? (n.canvas.width = e || l.width, n.canvas.height = i || l.height) : n.createCanvas(e, i), g = n.canvas, m = n.canvasCtx;
|
|
10942
|
-
var y = u.media.videoWidth / u.media.videoHeight,
|
|
10943
|
-
y >
|
|
10945
|
+
var y = u.media.videoWidth / u.media.videoHeight, k = g.width / g.height, b = 0, w = 0, P = u.media.videoWidth, F = u.media.videoHeight, U, R, te, Q;
|
|
10946
|
+
y > k ? (te = g.width, Q = g.width / y, U = 0, R = Math.round((g.height - Q) / 2)) : y === k ? (te = g.width, Q = g.height, U = 0, R = 0) : y < k && (te = g.height * y, Q = g.height, U = Math.round((g.width - te) / 2), R = 0), m.drawImage(u.media, b, w, P, F, U, R, te, Q);
|
|
10944
10947
|
}
|
|
10945
10948
|
var z = g.toDataURL(h, c).replace(h, "image/octet-stream");
|
|
10946
10949
|
z = z.replace(/^data:image\/[^;]+/, "data:application/octet-stream"), d(z);
|
|
@@ -10994,7 +10997,7 @@ var Pl = /* @__PURE__ */ function(a) {
|
|
|
10994
10997
|
};
|
|
10995
10998
|
}
|
|
10996
10999
|
}]), r;
|
|
10997
|
-
}(Ye),
|
|
11000
|
+
}(Ye), Dl = /* @__PURE__ */ function() {
|
|
10998
11001
|
function a(o) {
|
|
10999
11002
|
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);
|
|
11000
11003
|
var r = this.config.maxHeight;
|
|
@@ -11066,7 +11069,7 @@ var Pl = /* @__PURE__ */ function(a) {
|
|
|
11066
11069
|
}), this._delegates = null), this.root.innerHTML = null, this.parent.removeChild(this.root), this.root = null;
|
|
11067
11070
|
}
|
|
11068
11071
|
}]), a;
|
|
11069
|
-
}(),
|
|
11072
|
+
}(), ke = {
|
|
11070
11073
|
SIDE: "side",
|
|
11071
11074
|
MIDDLE: "middle",
|
|
11072
11075
|
DEFAULT: "default"
|
|
@@ -11074,12 +11077,12 @@ var Pl = /* @__PURE__ */ function(a) {
|
|
|
11074
11077
|
CLICK: "click",
|
|
11075
11078
|
HOVER: "hover"
|
|
11076
11079
|
};
|
|
11077
|
-
function
|
|
11078
|
-
return a ===
|
|
11080
|
+
function Ol(a, o) {
|
|
11081
|
+
return a === ke.SIDE ? o === $.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
|
|
11079
11082
|
}
|
|
11080
11083
|
var Ve = B.device === "mobile", Ot = /* @__PURE__ */ function(a) {
|
|
11081
|
-
|
|
11082
|
-
var o =
|
|
11084
|
+
L(r, a);
|
|
11085
|
+
var o = A(r);
|
|
11083
11086
|
function r(t) {
|
|
11084
11087
|
var e;
|
|
11085
11088
|
return x(this, r), e = o.call(this, t), _(v(e), "onEnter", function(i) {
|
|
@@ -11093,7 +11096,7 @@ var Ve = B.device === "mobile", Ot = /* @__PURE__ */ function(a) {
|
|
|
11093
11096
|
}), _(v(e), "onLeave", function(i) {
|
|
11094
11097
|
i.stopPropagation(), e.emit("icon_mouseleave", {
|
|
11095
11098
|
pluginName: e.pluginName
|
|
11096
|
-
}), e.config.listType !==
|
|
11099
|
+
}), e.config.listType !== ke.SIDE && e.isActive && e.toggle(!1);
|
|
11097
11100
|
}), _(v(e), "onListEnter", function(i) {
|
|
11098
11101
|
e.enterType = 2;
|
|
11099
11102
|
}), _(v(e), "onListLeave", function(i) {
|
|
@@ -11109,7 +11112,7 @@ var Ve = B.device === "mobile", Ot = /* @__PURE__ */ function(a) {
|
|
|
11109
11112
|
key: "afterCreate",
|
|
11110
11113
|
value: function() {
|
|
11111
11114
|
var e = this, i = this.config;
|
|
11112
|
-
this.initIcons(), Ve = Ve || this.domEventType === "touch", Ve && B.device === "mobile" && i.listType ===
|
|
11115
|
+
this.initIcons(), Ve = Ve || this.domEventType === "touch", Ve && B.device === "mobile" && i.listType === ke.DEFAULT && (i.listType = ke.SIDE), i.hidePortrait && f.addClass(this.root, "portrait"), this.on([Ne, Te], function() {
|
|
11113
11116
|
e._resizeList();
|
|
11114
11117
|
}), this.once(Se, function() {
|
|
11115
11118
|
i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
|
|
@@ -11153,7 +11156,7 @@ var Ve = B.device === "mobile", Ot = /* @__PURE__ */ function(a) {
|
|
|
11153
11156
|
value: function(e) {
|
|
11154
11157
|
if (!(e === this.isActive || this.config.disable)) {
|
|
11155
11158
|
var i = this.player.controls, n = this.config.listType;
|
|
11156
|
-
e ? (n ===
|
|
11159
|
+
e ? (n === ke.SIDE ? i.blur() : i.focus(), this.optionsList && this.optionsList.show()) : (n === ke.SIDE ? i.focus() : i.focusAwhile(), this.optionsList && this.optionsList.hide()), this.isActive = e;
|
|
11157
11160
|
}
|
|
11158
11161
|
}
|
|
11159
11162
|
}, {
|
|
@@ -11163,7 +11166,7 @@ var Ve = B.device === "mobile", Ot = /* @__PURE__ */ function(a) {
|
|
|
11163
11166
|
var n = this.config, s = n.listType, l = n.list;
|
|
11164
11167
|
this.curIndex = i.to.index, this.curItem = l[this.curIndex], this.changeCurrentText();
|
|
11165
11168
|
var u = this.config.isItemClickHide;
|
|
11166
|
-
(u || Ve || s ===
|
|
11169
|
+
(u || Ve || s === ke.SIDE) && this.toggle(!1);
|
|
11167
11170
|
}
|
|
11168
11171
|
}, {
|
|
11169
11172
|
key: "onIconClick",
|
|
@@ -11188,17 +11191,17 @@ var Ve = B.device === "mobile", Ot = /* @__PURE__ */ function(a) {
|
|
|
11188
11191
|
var c = {
|
|
11189
11192
|
config: {
|
|
11190
11193
|
data: e || [],
|
|
11191
|
-
className:
|
|
11194
|
+
className: Ol(s.listType, s.position),
|
|
11192
11195
|
onItemClick: function(m, y) {
|
|
11193
11196
|
n.onItemClick(m, y);
|
|
11194
11197
|
},
|
|
11195
11198
|
domEventType: Ve ? "touch" : "mouse"
|
|
11196
11199
|
},
|
|
11197
|
-
root: s.listType ===
|
|
11200
|
+
root: s.listType === ke.SIDE ? u.innerContainer || u.root : this.root
|
|
11198
11201
|
};
|
|
11199
11202
|
if (this.config.isShowIcon) {
|
|
11200
|
-
var h = this.player.root.getBoundingClientRect(), d = h.height, p = s.listType ===
|
|
11201
|
-
p && s.heightLimit && (c.config.maxHeight = "".concat(p, "px")), this.optionsList = new
|
|
11203
|
+
var h = this.player.root.getBoundingClientRect(), d = h.height, p = s.listType === ke.MIDDLE ? d - 50 : d;
|
|
11204
|
+
p && s.heightLimit && (c.config.maxHeight = "".concat(p, "px")), this.optionsList = new Dl(c), this.changeCurrentText(), this.show();
|
|
11202
11205
|
}
|
|
11203
11206
|
this._resizeList();
|
|
11204
11207
|
}
|
|
@@ -11206,7 +11209,7 @@ var Ve = B.device === "mobile", Ot = /* @__PURE__ */ function(a) {
|
|
|
11206
11209
|
key: "_resizeList",
|
|
11207
11210
|
value: function() {
|
|
11208
11211
|
if (this.config.heightLimit) {
|
|
11209
|
-
var e = this.player.root.getBoundingClientRect(), i = e.height, n = this.config.listType ===
|
|
11212
|
+
var e = this.player.root.getBoundingClientRect(), i = e.height, n = this.config.listType === ke.MIDDLE ? i - 50 : i;
|
|
11210
11213
|
this.optionsList && this.optionsList.setStyle({
|
|
11211
11214
|
maxHeight: "".concat(n, "px")
|
|
11212
11215
|
});
|
|
@@ -11249,9 +11252,9 @@ var Ve = B.device === "mobile", Ot = /* @__PURE__ */ function(a) {
|
|
|
11249
11252
|
};
|
|
11250
11253
|
}
|
|
11251
11254
|
}]), r;
|
|
11252
|
-
}(j),
|
|
11253
|
-
|
|
11254
|
-
var o =
|
|
11255
|
+
}(j), Rl = /* @__PURE__ */ function(a) {
|
|
11256
|
+
L(r, a);
|
|
11257
|
+
var o = A(r);
|
|
11255
11258
|
function r(t) {
|
|
11256
11259
|
var e;
|
|
11257
11260
|
return x(this, r), e = o.call(this, t), e.curTime = 0, e.isPaused = !0, e;
|
|
@@ -11350,9 +11353,9 @@ var Ve = B.device === "mobile", Ot = /* @__PURE__ */ function(a) {
|
|
|
11350
11353
|
});
|
|
11351
11354
|
}
|
|
11352
11355
|
}]), r;
|
|
11353
|
-
}(Ot),
|
|
11354
|
-
|
|
11355
|
-
var o =
|
|
11356
|
+
}(Ot), Ml = /* @__PURE__ */ function(a) {
|
|
11357
|
+
L(r, a);
|
|
11358
|
+
var o = A(r);
|
|
11356
11359
|
function r(t) {
|
|
11357
11360
|
var e;
|
|
11358
11361
|
return x(this, r), e = o.call(this, t), e.curRate = 1, e;
|
|
@@ -11372,7 +11375,7 @@ var Ve = B.device === "mobile", Ot = /* @__PURE__ */ function(a) {
|
|
|
11372
11375
|
key: "afterCreate",
|
|
11373
11376
|
value: function() {
|
|
11374
11377
|
var e = this;
|
|
11375
|
-
M(O(r.prototype), "afterCreate", this).call(this), this.on(
|
|
11378
|
+
M(O(r.prototype), "afterCreate", this).call(this), this.on(Rn, function() {
|
|
11376
11379
|
e.curValue !== e.player.playbackRate && e.renderItemList();
|
|
11377
11380
|
}), this.renderItemList();
|
|
11378
11381
|
}
|
|
@@ -11443,21 +11446,21 @@ var Ve = B.device === "mobile", Ot = /* @__PURE__ */ function(a) {
|
|
|
11443
11446
|
}
|
|
11444
11447
|
}]), r;
|
|
11445
11448
|
}(Ot);
|
|
11446
|
-
function
|
|
11449
|
+
function Fl() {
|
|
11447
11450
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
11448
11451
|
<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>
|
|
11449
11452
|
</svg>
|
|
11450
11453
|
`, "image/svg+xml").firstChild;
|
|
11451
11454
|
}
|
|
11452
|
-
function
|
|
11455
|
+
function Nl() {
|
|
11453
11456
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
11454
11457
|
<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>
|
|
11455
11458
|
</svg>
|
|
11456
11459
|
`, "image/svg+xml").firstChild;
|
|
11457
11460
|
}
|
|
11458
|
-
var
|
|
11459
|
-
|
|
11460
|
-
var o =
|
|
11461
|
+
var mn = /* @__PURE__ */ function(a) {
|
|
11462
|
+
L(r, a);
|
|
11463
|
+
var o = A(r);
|
|
11461
11464
|
function r() {
|
|
11462
11465
|
return x(this, r), o.apply(this, arguments);
|
|
11463
11466
|
}
|
|
@@ -11509,11 +11512,11 @@ var vn = /* @__PURE__ */ function(a) {
|
|
|
11509
11512
|
value: function() {
|
|
11510
11513
|
return {
|
|
11511
11514
|
cssFullscreen: {
|
|
11512
|
-
icon:
|
|
11515
|
+
icon: Fl,
|
|
11513
11516
|
class: "xg-get-cssfull"
|
|
11514
11517
|
},
|
|
11515
11518
|
exitCssFullscreen: {
|
|
11516
|
-
icon:
|
|
11519
|
+
icon: Nl,
|
|
11517
11520
|
class: "xg-exit-cssfull"
|
|
11518
11521
|
}
|
|
11519
11522
|
};
|
|
@@ -11549,9 +11552,9 @@ var vn = /* @__PURE__ */ function(a) {
|
|
|
11549
11552
|
};
|
|
11550
11553
|
}
|
|
11551
11554
|
}]), r;
|
|
11552
|
-
}(Ye),
|
|
11553
|
-
|
|
11554
|
-
var o =
|
|
11555
|
+
}(Ye), Bl = /* @__PURE__ */ function(a) {
|
|
11556
|
+
L(r, a);
|
|
11557
|
+
var o = A(r);
|
|
11555
11558
|
function r() {
|
|
11556
11559
|
return x(this, r), o.apply(this, arguments);
|
|
11557
11560
|
}
|
|
@@ -11610,9 +11613,9 @@ var vn = /* @__PURE__ */ function(a) {
|
|
|
11610
11613
|
return "error";
|
|
11611
11614
|
}
|
|
11612
11615
|
}]), r;
|
|
11613
|
-
}(j),
|
|
11614
|
-
|
|
11615
|
-
var o =
|
|
11616
|
+
}(j), Hl = /* @__PURE__ */ function(a) {
|
|
11617
|
+
L(r, a);
|
|
11618
|
+
var o = A(r);
|
|
11616
11619
|
function r() {
|
|
11617
11620
|
return x(this, r), o.apply(this, arguments);
|
|
11618
11621
|
}
|
|
@@ -11662,7 +11665,7 @@ var vn = /* @__PURE__ */ function(a) {
|
|
|
11662
11665
|
}, {
|
|
11663
11666
|
key: "render",
|
|
11664
11667
|
value: function() {
|
|
11665
|
-
return '<xg-prompt class="xgplayer-prompt '.concat(
|
|
11668
|
+
return '<xg-prompt class="xgplayer-prompt '.concat(C.CONTROLS_FOLLOW, `">
|
|
11666
11669
|
<span class="xgplayer-prompt-detail"></span>
|
|
11667
11670
|
</xg-prompt>`);
|
|
11668
11671
|
}
|
|
@@ -11688,7 +11691,7 @@ var vn = /* @__PURE__ */ function(a) {
|
|
|
11688
11691
|
};
|
|
11689
11692
|
}
|
|
11690
11693
|
}]), r;
|
|
11691
|
-
}(j),
|
|
11694
|
+
}(j), yn = {
|
|
11692
11695
|
time: 0,
|
|
11693
11696
|
text: "",
|
|
11694
11697
|
id: 1,
|
|
@@ -11698,12 +11701,12 @@ var vn = /* @__PURE__ */ function(a) {
|
|
|
11698
11701
|
width: 6,
|
|
11699
11702
|
height: 6
|
|
11700
11703
|
};
|
|
11701
|
-
function
|
|
11702
|
-
Object.keys(
|
|
11703
|
-
a[o] === void 0 && (a[o] =
|
|
11704
|
+
function ir(a) {
|
|
11705
|
+
Object.keys(yn).map(function(o) {
|
|
11706
|
+
a[o] === void 0 && (a[o] = yn[o]);
|
|
11704
11707
|
});
|
|
11705
11708
|
}
|
|
11706
|
-
var
|
|
11709
|
+
var _n = {
|
|
11707
11710
|
_updateDotDom: function(o, r) {
|
|
11708
11711
|
if (r) {
|
|
11709
11712
|
var t = this.calcuPosition(o.time, o.duration), e = o.style || {};
|
|
@@ -11720,7 +11723,7 @@ var yn = {
|
|
|
11720
11723
|
},
|
|
11721
11724
|
createDot: function(o) {
|
|
11722
11725
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, t = this.player.plugins.progress;
|
|
11723
|
-
if (t && (r && (
|
|
11726
|
+
if (t && (r && (ir(o), this._ispots.push(o)), !(!this.ispotsInit && r))) {
|
|
11724
11727
|
var e = this.calcuPosition(o.time, o.duration), i = o.style || {};
|
|
11725
11728
|
i.left = "".concat(e.left, "%"), i.width = "".concat(e.width, "%");
|
|
11726
11729
|
var n = "xgspot_".concat(o.id, " xgplayer-spot");
|
|
@@ -11840,14 +11843,14 @@ var yn = {
|
|
|
11840
11843
|
return r.find('xg-spot[data-id="'.concat(o, '"]'));
|
|
11841
11844
|
}
|
|
11842
11845
|
};
|
|
11843
|
-
function
|
|
11846
|
+
function Ul(a) {
|
|
11844
11847
|
var o = a.config, r = a.player;
|
|
11845
|
-
Object.keys(
|
|
11846
|
-
a[e] =
|
|
11848
|
+
Object.keys(_n).map(function(e) {
|
|
11849
|
+
a[e] = _n[e].bind(a);
|
|
11847
11850
|
});
|
|
11848
11851
|
var t = r.config.progressDot || o.ispots || [];
|
|
11849
11852
|
a._ispots = t.map(function(e) {
|
|
11850
|
-
return
|
|
11853
|
+
return ir(e), e;
|
|
11851
11854
|
}), a.ispotsInit = !1, a.playerSize = {
|
|
11852
11855
|
left: r.sizeInfo.left,
|
|
11853
11856
|
width: r.sizeInfo.width
|
|
@@ -11864,9 +11867,9 @@ var et = {
|
|
|
11864
11867
|
click: "onProgressClick",
|
|
11865
11868
|
mouseover: "onProgressMouseOver",
|
|
11866
11869
|
mouseenter: "onProgressMouseOver"
|
|
11867
|
-
},
|
|
11868
|
-
|
|
11869
|
-
var o =
|
|
11870
|
+
}, zl = /* @__PURE__ */ function(a) {
|
|
11871
|
+
L(r, a);
|
|
11872
|
+
var o = A(r);
|
|
11870
11873
|
function r(t) {
|
|
11871
11874
|
var e;
|
|
11872
11875
|
return x(this, r), e = o.call(this, t), _(v(e), "onMousemove", function(i) {
|
|
@@ -11915,7 +11918,7 @@ var et = {
|
|
|
11915
11918
|
n.seekTime && e.player.seek(n.seekTime);
|
|
11916
11919
|
}), this.transformTimeHook = this.hook("transformTime", function(i) {
|
|
11917
11920
|
e.setTimeContent(f.format(i));
|
|
11918
|
-
}),
|
|
11921
|
+
}), Ul(this), this.on(He, function() {
|
|
11919
11922
|
e.show();
|
|
11920
11923
|
}), this.config.disable && this.disable(), this.extTextRoot = this.find(".xg-spot-ext-text");
|
|
11921
11924
|
}
|
|
@@ -12139,9 +12142,9 @@ var et = {
|
|
|
12139
12142
|
};
|
|
12140
12143
|
}
|
|
12141
12144
|
}]), r;
|
|
12142
|
-
}(j),
|
|
12143
|
-
|
|
12144
|
-
var o =
|
|
12145
|
+
}(j), Vl = /* @__PURE__ */ function(a) {
|
|
12146
|
+
L(r, a);
|
|
12147
|
+
var o = A(r);
|
|
12145
12148
|
function r(t) {
|
|
12146
12149
|
var e;
|
|
12147
12150
|
return x(this, r), e = o.call(this, t), e.ratio = 1, e.interval = null, e._preloadMark = {}, e;
|
|
@@ -12203,7 +12206,7 @@ var et = {
|
|
|
12203
12206
|
this.interval = Math.round(this.player.duration / l);
|
|
12204
12207
|
var p = Math.ceil(e / this.interval);
|
|
12205
12208
|
p = p > l ? l : p;
|
|
12206
|
-
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,
|
|
12209
|
+
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, k = m > 0 ? m - y * c - 1 : 0, b = 0, w = 0;
|
|
12207
12210
|
if (i && n) {
|
|
12208
12211
|
var P = i / n;
|
|
12209
12212
|
P < h / d ? (w = n, b = w * (h / d)) : (b = i, w = b / (h / d));
|
|
@@ -12213,14 +12216,14 @@ var et = {
|
|
|
12213
12216
|
return {
|
|
12214
12217
|
urlIndex: g,
|
|
12215
12218
|
rowIndex: y,
|
|
12216
|
-
colIndex:
|
|
12219
|
+
colIndex: k,
|
|
12217
12220
|
url: F,
|
|
12218
12221
|
height: w,
|
|
12219
12222
|
width: b,
|
|
12220
12223
|
style: {
|
|
12221
12224
|
backgroundImage: "url(".concat(F, ")"),
|
|
12222
12225
|
backgroundSize: "".concat(b * c, "px auto"),
|
|
12223
|
-
backgroundPosition: "-".concat(
|
|
12226
|
+
backgroundPosition: "-".concat(k * b, "px -").concat(y * w, "px"),
|
|
12224
12227
|
width: "".concat(b, "px"),
|
|
12225
12228
|
height: "".concat(w, "px")
|
|
12226
12229
|
}
|
|
@@ -12277,9 +12280,9 @@ var et = {
|
|
|
12277
12280
|
function ei(a) {
|
|
12278
12281
|
return a ? "background:".concat(a, ";") : "";
|
|
12279
12282
|
}
|
|
12280
|
-
var
|
|
12281
|
-
|
|
12282
|
-
var o =
|
|
12283
|
+
var jl = /* @__PURE__ */ function(a) {
|
|
12284
|
+
L(r, a);
|
|
12285
|
+
var o = A(r);
|
|
12283
12286
|
function r() {
|
|
12284
12287
|
var t;
|
|
12285
12288
|
x(this, r);
|
|
@@ -12365,14 +12368,14 @@ var Vl = /* @__PURE__ */ function(a) {
|
|
|
12365
12368
|
FRAME_RATE: "framerate",
|
|
12366
12369
|
POSTER: "poster"
|
|
12367
12370
|
};
|
|
12368
|
-
function
|
|
12371
|
+
function Wl() {
|
|
12369
12372
|
try {
|
|
12370
12373
|
return parseInt(window.performance.now(), 10);
|
|
12371
12374
|
} catch {
|
|
12372
12375
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
12373
12376
|
}
|
|
12374
12377
|
}
|
|
12375
|
-
function
|
|
12378
|
+
function Gl() {
|
|
12376
12379
|
try {
|
|
12377
12380
|
var a = document.createElement("canvas").getContext;
|
|
12378
12381
|
return !!a;
|
|
@@ -12380,9 +12383,9 @@ function Wl() {
|
|
|
12380
12383
|
return !1;
|
|
12381
12384
|
}
|
|
12382
12385
|
}
|
|
12383
|
-
var
|
|
12384
|
-
|
|
12385
|
-
var o =
|
|
12386
|
+
var Ct = null, $l = /* @__PURE__ */ function(a) {
|
|
12387
|
+
L(r, a);
|
|
12388
|
+
var o = A(r);
|
|
12386
12389
|
function r() {
|
|
12387
12390
|
var t;
|
|
12388
12391
|
x(this, r);
|
|
@@ -12401,7 +12404,7 @@ var kt = null, Gl = /* @__PURE__ */ function(a) {
|
|
|
12401
12404
|
!t.player.paused && t._checkIfCanStart() && t.start(0, l);
|
|
12402
12405
|
}
|
|
12403
12406
|
}), _(v(t), "start", function(s, l) {
|
|
12404
|
-
var u = t.player.video, c =
|
|
12407
|
+
var u = t.player.video, c = Wl(), h = t.checkVideoIsSupport(u);
|
|
12405
12408
|
!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));
|
|
12406
12409
|
}), _(v(t), "stop", function() {
|
|
12407
12410
|
t.frameId && (t._loopType === "timer" ? f.clearTimeout(v(t), t.frameId) : f.cancelAnimationFrame(t.frameId), t.frameId = null);
|
|
@@ -12574,7 +12577,7 @@ var kt = null, Gl = /* @__PURE__ */ function(a) {
|
|
|
12574
12577
|
}, {
|
|
12575
12578
|
key: "isSupport",
|
|
12576
12579
|
get: function() {
|
|
12577
|
-
return typeof
|
|
12580
|
+
return typeof Ct == "boolean" || (Ct = Gl()), Ct;
|
|
12578
12581
|
}
|
|
12579
12582
|
}, {
|
|
12580
12583
|
key: "supportCanvasFilter",
|
|
@@ -12582,7 +12585,7 @@ var kt = null, Gl = /* @__PURE__ */ function(a) {
|
|
|
12582
12585
|
return !(B.browser === "safari" || B.browser === "firefox");
|
|
12583
12586
|
}
|
|
12584
12587
|
}]), r;
|
|
12585
|
-
}(j),
|
|
12588
|
+
}(j), Kl = {
|
|
12586
12589
|
LANG: "zh-cn",
|
|
12587
12590
|
TEXT: {
|
|
12588
12591
|
ERROR_TYPES: {
|
|
@@ -12657,9 +12660,9 @@ var kt = null, Gl = /* @__PURE__ */ function(a) {
|
|
|
12657
12660
|
FORWARD: "快进中",
|
|
12658
12661
|
LIVE_TIP: "直播"
|
|
12659
12662
|
}
|
|
12660
|
-
}, ut = "info", ti =
|
|
12661
|
-
|
|
12662
|
-
var o =
|
|
12663
|
+
}, ut = "info", ti = Yn, Yl = /* @__PURE__ */ function(a) {
|
|
12664
|
+
L(r, a);
|
|
12665
|
+
var o = A(r);
|
|
12663
12666
|
function r() {
|
|
12664
12667
|
var t;
|
|
12665
12668
|
x(this, r);
|
|
@@ -12801,9 +12804,9 @@ var kt = null, Gl = /* @__PURE__ */ function(a) {
|
|
|
12801
12804
|
return {};
|
|
12802
12805
|
}
|
|
12803
12806
|
}]), r;
|
|
12804
|
-
}(Be),
|
|
12805
|
-
|
|
12806
|
-
var o =
|
|
12807
|
+
}(Be), nr = /* @__PURE__ */ function(a) {
|
|
12808
|
+
L(r, a);
|
|
12809
|
+
var o = A(r);
|
|
12807
12810
|
function r() {
|
|
12808
12811
|
var t;
|
|
12809
12812
|
x(this, r);
|
|
@@ -12823,8 +12826,8 @@ var kt = null, Gl = /* @__PURE__ */ function(a) {
|
|
|
12823
12826
|
console.log("GapJump bufferRange ", c.start(g), c.end(g));
|
|
12824
12827
|
var m = c.start(g) + 0.1, y = l.media.duration;
|
|
12825
12828
|
if (!(m > y)) {
|
|
12826
|
-
var
|
|
12827
|
-
|
|
12829
|
+
var k = m - p, b = k <= h;
|
|
12830
|
+
k < 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", {
|
|
12828
12831
|
type: "oneevent",
|
|
12829
12832
|
end_type: "gap",
|
|
12830
12833
|
vid: l.config.vid,
|
|
@@ -12890,10 +12893,10 @@ var kt = null, Gl = /* @__PURE__ */ function(a) {
|
|
|
12890
12893
|
}
|
|
12891
12894
|
}]), r;
|
|
12892
12895
|
}(j);
|
|
12893
|
-
|
|
12894
|
-
var
|
|
12895
|
-
|
|
12896
|
-
var o =
|
|
12896
|
+
nr.BROWSER_GAP_TOLERANCE = 1e-3;
|
|
12897
|
+
var Xl = /* @__PURE__ */ function(a) {
|
|
12898
|
+
L(r, a);
|
|
12899
|
+
var o = A(r);
|
|
12897
12900
|
function r() {
|
|
12898
12901
|
var t;
|
|
12899
12902
|
x(this, r);
|
|
@@ -12937,9 +12940,9 @@ var Yl = /* @__PURE__ */ function(a) {
|
|
|
12937
12940
|
};
|
|
12938
12941
|
}
|
|
12939
12942
|
}]), r;
|
|
12940
|
-
}(j), it = "cdn",
|
|
12941
|
-
|
|
12942
|
-
var o =
|
|
12943
|
+
}(j), it = "cdn", kt = ["cdn"], ql = /* @__PURE__ */ function(a) {
|
|
12944
|
+
L(r, a);
|
|
12945
|
+
var o = A(r);
|
|
12943
12946
|
function r() {
|
|
12944
12947
|
var t;
|
|
12945
12948
|
x(this, r);
|
|
@@ -12956,7 +12959,7 @@ var Yl = /* @__PURE__ */ function(a) {
|
|
|
12956
12959
|
}), _(v(t), "startTimer", function() {
|
|
12957
12960
|
f.isMSE(t.player.video) || (t.initSpeedList(), t.cnt = 0, t.timer = setTimeout(t.testSpeed, t.config.testTimeStep));
|
|
12958
12961
|
}), _(v(t), "initSpeedList", function() {
|
|
12959
|
-
t.speedListCache = {},
|
|
12962
|
+
t.speedListCache = {}, kt.forEach(function(s) {
|
|
12960
12963
|
t.speedListCache[s] = [];
|
|
12961
12964
|
});
|
|
12962
12965
|
}), _(v(t), "_onRealSpeedChange", function(s) {
|
|
@@ -12969,8 +12972,8 @@ var Yl = /* @__PURE__ */ function(a) {
|
|
|
12969
12972
|
try {
|
|
12970
12973
|
var p = (/* @__PURE__ */ new Date()).getTime(), g = null, m = new XMLHttpRequest();
|
|
12971
12974
|
t.xhr = m, m.open("GET", d);
|
|
12972
|
-
var y = {},
|
|
12973
|
-
y.Range = "bytes=" +
|
|
12975
|
+
var y = {}, k = Math.floor(Math.random() * 10);
|
|
12976
|
+
y.Range = "bytes=" + k + "-" + (u + k), y && Object.keys(y).forEach(function(b) {
|
|
12974
12977
|
m.setRequestHeader(b, y[b]);
|
|
12975
12978
|
}), m.onreadystatechange = function() {
|
|
12976
12979
|
if (m.readyState === 4) {
|
|
@@ -13013,7 +13016,7 @@ var Yl = /* @__PURE__ */ function(a) {
|
|
|
13013
13016
|
key: "afterCreate",
|
|
13014
13017
|
value: function() {
|
|
13015
13018
|
var e = this.config, i = e.openSpeed, n = e.addSpeedTypeList;
|
|
13016
|
-
(n == null ? void 0 : n.length) > 0 &&
|
|
13019
|
+
(n == null ? void 0 : n.length) > 0 && kt.push.apply(kt, me(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([Pe, Et], this.startTimer);
|
|
13017
13020
|
}
|
|
13018
13021
|
}, {
|
|
13019
13022
|
key: "getSpeedName",
|
|
@@ -13040,7 +13043,7 @@ var Yl = /* @__PURE__ */ function(a) {
|
|
|
13040
13043
|
key: "destroy",
|
|
13041
13044
|
value: function() {
|
|
13042
13045
|
var e = this;
|
|
13043
|
-
this.off("real_time_speed", this._onRealSpeedChange), this.off([Pe, Et], this.startTimer),
|
|
13046
|
+
this.off("real_time_speed", this._onRealSpeedChange), this.off([Pe, Et], this.startTimer), kt.forEach(function(i) {
|
|
13044
13047
|
e.speedListCache && e.speedListCache[i] && (e.speedListCache[i] = []);
|
|
13045
13048
|
}), this.speedListCache && (this.speedListCache = {}), clearTimeout(this.timer), this.timer = null, this.xhr && this.xhr.readyState !== 4 && (this.xhr.cancel && this.xhr.cancel(), this.xhr = null);
|
|
13046
13049
|
}
|
|
@@ -13063,9 +13066,9 @@ var Yl = /* @__PURE__ */ function(a) {
|
|
|
13063
13066
|
};
|
|
13064
13067
|
}
|
|
13065
13068
|
}]), r;
|
|
13066
|
-
}(j),
|
|
13067
|
-
|
|
13068
|
-
var o =
|
|
13069
|
+
}(j), Zl = /* @__PURE__ */ function(a) {
|
|
13070
|
+
L(r, a);
|
|
13071
|
+
var o = A(r);
|
|
13069
13072
|
function r() {
|
|
13070
13073
|
return x(this, r), o.apply(this, arguments);
|
|
13071
13074
|
}
|
|
@@ -13130,7 +13133,7 @@ var Yl = /* @__PURE__ */ function(a) {
|
|
|
13130
13133
|
totalVideoFrames: i,
|
|
13131
13134
|
droppedVideoFrames: n,
|
|
13132
13135
|
checkInterval: s
|
|
13133
|
-
}), this._currentStuckCount >= this.config.stuckCount && (this.emit(
|
|
13136
|
+
}), this._currentStuckCount >= this.config.stuckCount && (this.emit(Xn, this._payload), this._reset())) : this._reset());
|
|
13134
13137
|
}
|
|
13135
13138
|
}
|
|
13136
13139
|
}, {
|
|
@@ -13173,43 +13176,43 @@ var Yl = /* @__PURE__ */ function(a) {
|
|
|
13173
13176
|
}
|
|
13174
13177
|
}]), r;
|
|
13175
13178
|
}(j);
|
|
13176
|
-
rt.use(
|
|
13177
|
-
var
|
|
13179
|
+
rt.use(Kl);
|
|
13180
|
+
var Jl = /* @__PURE__ */ I(function a(o, r) {
|
|
13178
13181
|
var t, e, i;
|
|
13179
13182
|
x(this, a);
|
|
13180
|
-
var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [
|
|
13181
|
-
this.plugins = [
|
|
13183
|
+
var n = r && r.isMobileSimulateMode === "mobile", s = r.isLive, l = s ? [] : [pl, al, jl, zl, gl], u = [].concat(l, [ll, dl, kl, Sl, Rl, Ml, Ll, Al, _l, Tl]), c = [za, Va, Wa, rl, Ga, Bl, Hl, Vl, Xa];
|
|
13184
|
+
this.plugins = [Yl, Ha].concat(me(u), c, [nr, Xl]);
|
|
13182
13185
|
var h = n ? "mobile" : B.device;
|
|
13183
13186
|
switch (h) {
|
|
13184
13187
|
case "pc":
|
|
13185
|
-
(t = this.plugins).push.apply(t, [
|
|
13188
|
+
(t = this.plugins).push.apply(t, [pn, Jt, mn, ql, Zl]);
|
|
13186
13189
|
break;
|
|
13187
13190
|
case "mobile":
|
|
13188
|
-
(e = this.plugins).push.apply(e, [
|
|
13191
|
+
(e = this.plugins).push.apply(e, [tl]);
|
|
13189
13192
|
break;
|
|
13190
13193
|
default:
|
|
13191
|
-
(i = this.plugins).push.apply(i, [
|
|
13194
|
+
(i = this.plugins).push.apply(i, [pn, Jt, mn]);
|
|
13192
13195
|
}
|
|
13193
|
-
(B.os.isIpad || h === "pc") && this.plugins.push(
|
|
13196
|
+
(B.os.isIpad || h === "pc") && this.plugins.push($l), B.os.isIpad && this.plugins.push(Jt), this.ignores = [], this.i18n = [];
|
|
13194
13197
|
}), ye = /* @__PURE__ */ function(a) {
|
|
13195
|
-
|
|
13196
|
-
var o =
|
|
13198
|
+
L(r, a);
|
|
13199
|
+
var o = A(r);
|
|
13197
13200
|
function r() {
|
|
13198
13201
|
return x(this, r), o.apply(this, arguments);
|
|
13199
13202
|
}
|
|
13200
13203
|
return I(r);
|
|
13201
13204
|
}(Bt);
|
|
13202
|
-
_(ye, "defaultPreset",
|
|
13205
|
+
_(ye, "defaultPreset", Jl);
|
|
13203
13206
|
_(ye, "Util", f);
|
|
13204
13207
|
_(ye, "Sniffer", B);
|
|
13205
13208
|
_(ye, "Errors", Tt);
|
|
13206
|
-
_(ye, "Events",
|
|
13209
|
+
_(ye, "Events", da);
|
|
13207
13210
|
_(ye, "Plugin", j);
|
|
13208
13211
|
_(ye, "BasePlugin", Be);
|
|
13209
13212
|
_(ye, "I18N", rt);
|
|
13210
|
-
_(ye, "STATE_CLASS",
|
|
13211
|
-
_(ye, "InstManager",
|
|
13212
|
-
const
|
|
13213
|
+
_(ye, "STATE_CLASS", C);
|
|
13214
|
+
_(ye, "InstManager", Qn);
|
|
13215
|
+
const Ql = ["id"], eu = /* @__PURE__ */ J({
|
|
13213
13216
|
name: "ElImageViewer",
|
|
13214
13217
|
__name: "Player",
|
|
13215
13218
|
props: /* @__PURE__ */ bt({
|
|
@@ -13238,7 +13241,7 @@ const Jl = ["id"], Ql = /* @__PURE__ */ J({
|
|
|
13238
13241
|
}, ["update:modelValue"]),
|
|
13239
13242
|
setup(a, { emit: o }) {
|
|
13240
13243
|
let r = null;
|
|
13241
|
-
const t = a, { cLoadUrl: e } =
|
|
13244
|
+
const t = a, { cLoadUrl: e } = En(t), i = X(() => ht(e.value, t.url)), n = {
|
|
13242
13245
|
width: "100%",
|
|
13243
13246
|
height: "100%",
|
|
13244
13247
|
// 是否自动播放
|
|
@@ -13259,7 +13262,7 @@ const Jl = ["id"], Ql = /* @__PURE__ */ J({
|
|
|
13259
13262
|
}, s = X(() => ({
|
|
13260
13263
|
...n,
|
|
13261
13264
|
...t.config
|
|
13262
|
-
})), l = o, u = hi(a, "modelValue"), c =
|
|
13265
|
+
})), l = o, u = hi(a, "modelValue"), c = bn(), h = wn("image-viewer");
|
|
13263
13266
|
function d() {
|
|
13264
13267
|
l("close"), u.value = !1, r.destroy();
|
|
13265
13268
|
}
|
|
@@ -13273,7 +13276,7 @@ const Jl = ["id"], Ql = /* @__PURE__ */ J({
|
|
|
13273
13276
|
});
|
|
13274
13277
|
}), (p, g) => {
|
|
13275
13278
|
const m = Ge("el-icon");
|
|
13276
|
-
return u.value ? (E(), ae(
|
|
13279
|
+
return u.value ? (E(), ae(Cn, {
|
|
13277
13280
|
key: 0,
|
|
13278
13281
|
to: "body"
|
|
13279
13282
|
}, [
|
|
@@ -13307,7 +13310,7 @@ const Jl = ["id"], Ql = /* @__PURE__ */ J({
|
|
|
13307
13310
|
class: K(S(h).e("canvas"))
|
|
13308
13311
|
},
|
|
13309
13312
|
[
|
|
13310
|
-
T("div", { id: S(c) }, null, 8,
|
|
13313
|
+
T("div", { id: S(c) }, null, 8, Ql),
|
|
13311
13314
|
ee(" CLOSE "),
|
|
13312
13315
|
T(
|
|
13313
13316
|
"span",
|
|
@@ -13318,7 +13321,7 @@ const Jl = ["id"], Ql = /* @__PURE__ */ J({
|
|
|
13318
13321
|
[
|
|
13319
13322
|
G(m, { onClick: d }, {
|
|
13320
13323
|
default: Y(() => [
|
|
13321
|
-
G(S(
|
|
13324
|
+
G(S(Tn))
|
|
13322
13325
|
]),
|
|
13323
13326
|
_: 1
|
|
13324
13327
|
/* STABLE */
|
|
@@ -13344,7 +13347,7 @@ const Jl = ["id"], Ql = /* @__PURE__ */ J({
|
|
|
13344
13347
|
};
|
|
13345
13348
|
}
|
|
13346
13349
|
});
|
|
13347
|
-
const
|
|
13350
|
+
const tu = /* @__PURE__ */ gt(eu, [["__scopeId", "data-v-b301aa7d"]]), iu = Le(tu), nu = /* @__PURE__ */ J({
|
|
13348
13351
|
__name: "IkDescription",
|
|
13349
13352
|
props: {
|
|
13350
13353
|
showIcon: {
|
|
@@ -13373,29 +13376,10 @@ const eu = /* @__PURE__ */ gt(Ql, [["__scopeId", "data-v-b301aa7d"]]), tu = Ae(e
|
|
|
13373
13376
|
type: String,
|
|
13374
13377
|
default: ""
|
|
13375
13378
|
},
|
|
13376
|
-
kkUrl: {
|
|
13377
|
-
type: String,
|
|
13378
|
-
default: ""
|
|
13379
|
-
},
|
|
13380
13379
|
labelWidth: {
|
|
13381
13380
|
type: String || Number,
|
|
13382
13381
|
default: "150px"
|
|
13383
13382
|
},
|
|
13384
|
-
// 是否需要onlyoffice预览
|
|
13385
|
-
isOnlyOfficePreview: {
|
|
13386
|
-
type: Boolean,
|
|
13387
|
-
default: !1
|
|
13388
|
-
},
|
|
13389
|
-
// 需要onlyoffice预览的文件类型
|
|
13390
|
-
onlyOfficeAccept: {
|
|
13391
|
-
type: String,
|
|
13392
|
-
default: ".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"
|
|
13393
|
-
},
|
|
13394
|
-
// onlyoffice服务地址
|
|
13395
|
-
onlyofficeServer: {
|
|
13396
|
-
type: String,
|
|
13397
|
-
default: ""
|
|
13398
|
-
},
|
|
13399
13383
|
// onlyoffice公共配置
|
|
13400
13384
|
onlyOfficeConfig: {
|
|
13401
13385
|
type: Object,
|
|
@@ -13403,8 +13387,8 @@ const eu = /* @__PURE__ */ gt(Ql, [["__scopeId", "data-v-b301aa7d"]]), tu = Ae(e
|
|
|
13403
13387
|
}
|
|
13404
13388
|
},
|
|
13405
13389
|
setup(a) {
|
|
13406
|
-
|
|
13407
|
-
|
|
13390
|
+
pr((e) => ({
|
|
13391
|
+
"78351cba": t.value
|
|
13408
13392
|
}));
|
|
13409
13393
|
const o = a, r = {
|
|
13410
13394
|
id: "id",
|
|
@@ -13452,7 +13436,7 @@ const eu = /* @__PURE__ */ gt(Ql, [["__scopeId", "data-v-b301aa7d"]]), tu = Ae(e
|
|
|
13452
13436
|
/* TEXT */
|
|
13453
13437
|
),
|
|
13454
13438
|
l[r.tag] ? (E(), ae(
|
|
13455
|
-
S(
|
|
13439
|
+
S(yr),
|
|
13456
13440
|
{
|
|
13457
13441
|
key: 0,
|
|
13458
13442
|
size: "small"
|
|
@@ -13471,17 +13455,12 @@ const eu = /* @__PURE__ */ gt(Ql, [["__scopeId", "data-v-b301aa7d"]]), tu = Ae(e
|
|
|
13471
13455
|
1024
|
|
13472
13456
|
/* DYNAMIC_SLOTS */
|
|
13473
13457
|
)) : ee("v-if", !0),
|
|
13474
|
-
G(S(
|
|
13458
|
+
G(S(Js), {
|
|
13475
13459
|
list: l[r.fileList],
|
|
13476
13460
|
field: a.fileField,
|
|
13477
13461
|
"load-url": a.loadUrl,
|
|
13478
|
-
"
|
|
13479
|
-
|
|
13480
|
-
isOnlyOfficePreview: a.isOnlyOfficePreview,
|
|
13481
|
-
onlyOfficeAccept: a.onlyOfficeAccept,
|
|
13482
|
-
onlyofficeServer: a.onlyofficeServer,
|
|
13483
|
-
onlyOfficeConfig: a.onlyOfficeConfig
|
|
13484
|
-
}, null, 8, ["list", "field", "load-url", "kk-url", "isOnlyOfficePreview", "onlyOfficeAccept", "onlyofficeServer", "onlyOfficeConfig"])
|
|
13462
|
+
"show-bg": !1
|
|
13463
|
+
}, null, 8, ["list", "field", "load-url"])
|
|
13485
13464
|
], !0)
|
|
13486
13465
|
]),
|
|
13487
13466
|
_: 2
|
|
@@ -13503,8 +13482,8 @@ const eu = /* @__PURE__ */ gt(Ql, [["__scopeId", "data-v-b301aa7d"]]), tu = Ae(e
|
|
|
13503
13482
|
};
|
|
13504
13483
|
}
|
|
13505
13484
|
});
|
|
13506
|
-
const
|
|
13485
|
+
const ru = /* @__PURE__ */ gt(nu, [["__scopeId", "data-v-8171d392"]]), lu = Le(ru);
|
|
13507
13486
|
export {
|
|
13508
|
-
|
|
13509
|
-
|
|
13487
|
+
lu as IkDescriptions,
|
|
13488
|
+
lu as default
|
|
13510
13489
|
};
|