ik-next-ui 0.0.13 → 0.0.15
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/IkApprovalProcess/ik-next-ui.css +1 -1
- package/dist/IkApprovalProcess/ik.index.es.js +1 -1
- package/dist/IkApprovalProcessDetail/ik-next-ui.css +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +694 -656
- package/dist/IkBaseDialog/ik-next-ui.css +1 -1
- package/dist/IkBaseDialog/ik.index.es.js +154 -116
- package/dist/IkCollapseCard/ik-next-ui.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +163 -125
- package/dist/IkDescription/ik-next-ui.css +1 -1
- package/dist/IkDescription/ik.index.es.js +610 -572
- package/dist/IkDetailPreviewFiles/ik-next-ui.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +805 -767
- package/dist/IkIconPicker/ik-next-ui.css +1 -1
- package/dist/IkIconPicker/ik.index.es.js +180 -142
- package/dist/IkImageUploadEditor/ik.index.es.js +1084 -1084
- package/dist/IkMonacoEditor/ik-next-ui.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +418 -380
- package/dist/IkPickerUser/ik-next-ui.css +1 -1
- package/dist/IkPreviewFile/ik-next-ui.css +1 -1
- package/dist/IkPreviewFile/ik.index.es.js +644 -606
- package/dist/IkPreviewFileDialog/ik-next-ui.css +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +658 -620
- package/dist/IkRadioGroup/ik-next-ui.css +1 -1
- package/dist/IkRadioGroup/ik.index.es.js +140 -102
- package/dist/IkSideText/ik-next-ui.css +1 -1
- package/dist/IkSideText/ik.index.es.js +131 -93
- package/dist/IkSvgIcon/ik-next-ui.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +139 -101
- package/dist/IkUploadFile/ik-next-ui.css +1 -1
- package/dist/IkUploadFile/ik.index.es.js +880 -839
- package/dist/IkUploadImage/ik-next-ui.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +261 -223
- package/dist/IkVerticalStepBar/ik-next-ui.css +1 -1
- package/dist/IkVerticalStepBar/ik.index.es.js +140 -102
- package/dist/Provider/ik.index.es.js +13 -19
- package/dist/build/version.json.d.ts +1 -1
- package/dist/ik-next-ui.css +2 -2
- package/dist/index.es.js +10093 -10097
- package/dist/index.umd.js +103 -103
- package/dist/src/components/IkDragList/index.d.ts +3 -3
- package/dist/src/components/IkDragList/src/IkDragList.vue.d.ts +1 -1
- package/dist/src/components/IkImage/index.d.ts +15 -15
- package/dist/src/components/IkImage/src/index.vue.d.ts +1 -1
- package/dist/src/components/IkPickerUser/index.d.ts +1 -1
- package/dist/src/components/IkPickerUser/src/list/GroupList.vue.d.ts +1 -1
- package/dist/src/components/IkPickerUser/src/list/PostList.vue.d.ts +1 -1
- package/dist/src/components/IkPickerUser/src/list/RoleList.vue.d.ts +1 -1
- package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +1 -1
- package/dist/src/components/IkSideText/IkSideText.vue.d.ts +1 -1
- package/dist/src/components/IkSideText/index.d.ts +1 -1
- package/dist/src/components/IkTooltip/index.d.ts +3 -3
- package/dist/src/components/IkTooltip/src/index.vue.d.ts +1 -1
- package/dist/src/components/IkTree/IkTree.vue.d.ts +2532 -788
- package/dist/src/components/IkUploadFile/src/hooks/useFileInfo.d.ts +1 -0
- package/dist/src/components/IkUploadImage/index.d.ts +3 -3
- package/dist/src/components/IkUploadImage/src/index.vue.d.ts +1 -1
- package/dist/src/components/Provider/ProviderConfig.vue.d.ts +12 -17
- package/dist/src/components/Provider/index.d.ts +30 -77
- package/dist/src/components-dev/IkUmoEditor/index.d.ts +322 -0
- package/dist/src/iking-ui/version.d.ts +1 -1
- package/package.json +1 -1
- package/dist/src/components/IkBtnContent/index.d.ts +0 -34
- package/dist/src/components/IkBtnContent/src/index.d.ts +0 -36
- package/dist/src/components/IkTree/index.d.ts +0 -12403
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { inject as _t, computed as ee, defineComponent as
|
|
1
|
+
import { inject as _t, computed as ee, defineComponent as Ee, resolveComponent as zr, openBlock as K, createBlock as Ce, withCtx as Q, renderSlot as Ze, createElementBlock as oe, normalizeStyle as Le, normalizeClass as ie, unref as P, createElementVNode as q, createCommentVNode as ue, Fragment as Kt, createVNode as X, useModel as Gr, ref as be, h as yl, mergeProps as _l, createSlots as bl, createTextVNode as Ca, toDisplayString as $t, mergeModels as Et, markRaw as ka, effectScope as Cl, shallowRef as kl, watch as Yt, nextTick as Wr, onMounted as Tl, Teleport as ou, Transition as uu, withModifiers as wl, resolveDynamicComponent as Sl, renderList as El, withDirectives as xl, vShow as Il, reactive as Pl } from "vue";
|
|
2
2
|
import { paramType as Ta, _ as _i, buildUUID as lu } from "iking-utils-pro";
|
|
3
3
|
import { useEventListener as jt } from "@vueuse/core";
|
|
4
|
-
import { useLocale as Al, useNamespace as cu, useZIndex as Rl, ElIcon as He, EVENT_CODE as
|
|
4
|
+
import { useLocale as Al, useNamespace as cu, useZIndex as Rl, ElIcon as He, EVENT_CODE as ot } from "element-plus";
|
|
5
5
|
import { ScaleToOriginal as Ll, FullScreen as Dl, Close as fu, ArrowLeft as Ol, ArrowRight as Ml, ZoomOut as Fl, ZoomIn as Nl, RefreshLeft as Bl, RefreshRight as Hl } from "@element-plus/icons-vue";
|
|
6
6
|
import { Icon as wa } from "@iconify/vue";
|
|
7
7
|
import { UseImage as Sa } from "@vueuse/components";
|
|
8
|
-
const
|
|
8
|
+
const Qe = (s, a) => (s.install = (r) => {
|
|
9
9
|
for (const t of [s, ...Object.values({})])
|
|
10
10
|
r.component(t.name, t);
|
|
11
11
|
}, s);
|
|
@@ -218,11 +218,50 @@ const Fr = (s, a) => {
|
|
|
218
218
|
function du(s) {
|
|
219
219
|
return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
|
|
220
220
|
}
|
|
221
|
-
const Vl = {
|
|
221
|
+
const Vl = /* @__PURE__ */ Ee({
|
|
222
|
+
__name: "index",
|
|
223
|
+
props: {
|
|
224
|
+
effect: {
|
|
225
|
+
type: String,
|
|
226
|
+
default: "dark"
|
|
227
|
+
},
|
|
228
|
+
content: {
|
|
229
|
+
type: String,
|
|
230
|
+
default: ""
|
|
231
|
+
},
|
|
232
|
+
text: {
|
|
233
|
+
type: String,
|
|
234
|
+
default: ""
|
|
235
|
+
},
|
|
236
|
+
placement: {
|
|
237
|
+
type: String,
|
|
238
|
+
default: "top"
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
setup(s) {
|
|
242
|
+
const a = s, r = ee(() => a.effect);
|
|
243
|
+
return (t, e) => {
|
|
244
|
+
const i = zr("el-tooltip");
|
|
245
|
+
return K(), Ce(i, {
|
|
246
|
+
class: "gl-tooltip",
|
|
247
|
+
effect: r.value,
|
|
248
|
+
content: s.text || s.content,
|
|
249
|
+
placement: s.placement,
|
|
250
|
+
enterable: !1
|
|
251
|
+
}, {
|
|
252
|
+
default: Q(() => [
|
|
253
|
+
Ze(t.$slots, "default")
|
|
254
|
+
]),
|
|
255
|
+
_: 3
|
|
256
|
+
/* FORWARDED */
|
|
257
|
+
}, 8, ["effect", "content", "placement"]);
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
}), zl = Qe(Vl), Gl = {
|
|
222
261
|
key: 2,
|
|
223
262
|
class: "shrink-0 size-inherit",
|
|
224
263
|
"aria-hidden": "true"
|
|
225
|
-
},
|
|
264
|
+
}, Wl = ["xlink:href"], Kl = ["xlink:href"], $l = ["size"], Yl = ["xlink:href"], Xl = ["xlink:href"], Zl = /* @__PURE__ */ Ee({
|
|
226
265
|
name: "IkSvgIcon",
|
|
227
266
|
__name: "index",
|
|
228
267
|
props: {
|
|
@@ -296,9 +335,8 @@ const Vl = {
|
|
|
296
335
|
return r.active && e.value !== "default" && !r.deepColor && !r.shallowColor && r.colorMode === "auto" && (d["--ik-icon-deep-color"] = `var(--ik-icon-${e.value}-deep-active)`, d["--ik-icon-shallow-color"] = `var(--ik-icon-${e.value}-shallow-active)`), d;
|
|
297
336
|
});
|
|
298
337
|
return (d, g) => {
|
|
299
|
-
var
|
|
300
|
-
|
|
301
|
-
return X(), oe(
|
|
338
|
+
var v;
|
|
339
|
+
return K(), oe(
|
|
302
340
|
"i",
|
|
303
341
|
{
|
|
304
342
|
class: ie(P(hu)(
|
|
@@ -311,51 +349,51 @@ const Vl = {
|
|
|
311
349
|
s.unMargin ? "un-margin" : "margin",
|
|
312
350
|
s.hover ? "is-hover" : ""
|
|
313
351
|
)),
|
|
314
|
-
style:
|
|
352
|
+
style: Le(s.showBg ? l.value : u.value),
|
|
315
353
|
onClick: c
|
|
316
354
|
},
|
|
317
355
|
[
|
|
318
|
-
s.title ? (
|
|
356
|
+
s.title ? (K(), Ce(P(zl), {
|
|
319
357
|
key: 0,
|
|
320
358
|
text: s.title
|
|
321
359
|
}, {
|
|
322
360
|
default: Q(() => {
|
|
323
|
-
var
|
|
361
|
+
var m;
|
|
324
362
|
return [
|
|
325
|
-
i.value === "unocss" ? (
|
|
363
|
+
i.value === "unocss" ? (K(), oe(
|
|
326
364
|
"i",
|
|
327
365
|
{
|
|
328
366
|
key: 0,
|
|
329
|
-
class: ie(["iconfont shrink-0 size-inherit", `${s.name} ${(
|
|
330
|
-
style:
|
|
367
|
+
class: ie(["iconfont shrink-0 size-inherit", `${s.name} ${(m = s.name) == null ? void 0 : m.split("_")[0]}`]),
|
|
368
|
+
style: Le({ ...h.value, ...s.showBg ? u.value : {} })
|
|
331
369
|
},
|
|
332
370
|
null,
|
|
333
371
|
6
|
|
334
372
|
/* CLASS, STYLE */
|
|
335
|
-
)) : i.value === "iconify" ? (
|
|
373
|
+
)) : i.value === "iconify" ? (K(), Ce(P(wa), {
|
|
336
374
|
key: 1,
|
|
337
375
|
icon: s.name,
|
|
338
376
|
class: "shrink-0 size-inherit"
|
|
339
|
-
}, null, 8, ["icon"])) : i.value === "svg" ? (
|
|
377
|
+
}, null, 8, ["icon"])) : i.value === "svg" ? (K(), oe("svg", Gl, [
|
|
340
378
|
q("use", {
|
|
341
379
|
"xlink:href": `#icon-${s.name}`
|
|
342
|
-
}, null, 8,
|
|
343
|
-
])) : i.value === "two-color-svg" ? (
|
|
380
|
+
}, null, 8, Wl)
|
|
381
|
+
])) : i.value === "two-color-svg" ? (K(), oe(
|
|
344
382
|
"svg",
|
|
345
383
|
{
|
|
346
384
|
key: 3,
|
|
347
385
|
class: "two-color-icon shrink-0 size-inherit",
|
|
348
|
-
style:
|
|
386
|
+
style: Le(h.value),
|
|
349
387
|
"aria-hidden": "true"
|
|
350
388
|
},
|
|
351
389
|
[
|
|
352
390
|
q("use", {
|
|
353
391
|
"xlink:href": `#${s.name}`
|
|
354
|
-
}, null, 8,
|
|
392
|
+
}, null, 8, Kl)
|
|
355
393
|
],
|
|
356
394
|
4
|
|
357
395
|
/* STYLE */
|
|
358
|
-
)) : i.value === "img" ? (
|
|
396
|
+
)) : i.value === "img" ? (K(), Ce(P(Sa), {
|
|
359
397
|
key: 4,
|
|
360
398
|
src: s.name,
|
|
361
399
|
class: "shrink-0"
|
|
@@ -385,25 +423,25 @@ const Vl = {
|
|
|
385
423
|
}),
|
|
386
424
|
_: 1
|
|
387
425
|
/* STABLE */
|
|
388
|
-
}, 8, ["text"])) : (
|
|
426
|
+
}, 8, ["text"])) : (K(), oe(
|
|
389
427
|
Kt,
|
|
390
428
|
{ key: 1 },
|
|
391
429
|
[
|
|
392
|
-
i.value === "unocss" ? (
|
|
430
|
+
i.value === "unocss" ? (K(), oe(
|
|
393
431
|
"i",
|
|
394
432
|
{
|
|
395
433
|
key: 0,
|
|
396
|
-
class: ie(["iconfont shrink-0 size-inherit", `${s.name} ${(
|
|
397
|
-
style:
|
|
434
|
+
class: ie(["iconfont shrink-0 size-inherit", `${s.name} ${(v = s.name) == null ? void 0 : v.split("_")[0]}`]),
|
|
435
|
+
style: Le({ ...h.value, ...s.showBg ? u.value : {} })
|
|
398
436
|
},
|
|
399
437
|
null,
|
|
400
438
|
6
|
|
401
439
|
/* CLASS, STYLE */
|
|
402
|
-
)) : i.value === "iconify" ? (
|
|
440
|
+
)) : i.value === "iconify" ? (K(), Ce(P(wa), {
|
|
403
441
|
key: 1,
|
|
404
442
|
icon: s.name,
|
|
405
443
|
class: "shrink-0 size-inherit"
|
|
406
|
-
}, null, 8, ["icon"])) : i.value === "svg" ? (
|
|
444
|
+
}, null, 8, ["icon"])) : i.value === "svg" ? (K(), oe("svg", {
|
|
407
445
|
key: 2,
|
|
408
446
|
class: "shrink-0 size-inherit",
|
|
409
447
|
size: s.size,
|
|
@@ -411,23 +449,23 @@ const Vl = {
|
|
|
411
449
|
}, [
|
|
412
450
|
q("use", {
|
|
413
451
|
"xlink:href": `#icon-${s.name}`
|
|
414
|
-
}, null, 8,
|
|
415
|
-
], 8,
|
|
452
|
+
}, null, 8, Yl)
|
|
453
|
+
], 8, $l)) : i.value === "two-color-svg" ? (K(), oe(
|
|
416
454
|
"svg",
|
|
417
455
|
{
|
|
418
456
|
key: 3,
|
|
419
457
|
class: "two-color-icon shrink-0 size-inherit",
|
|
420
|
-
style:
|
|
458
|
+
style: Le(h.value),
|
|
421
459
|
"aria-hidden": "true"
|
|
422
460
|
},
|
|
423
461
|
[
|
|
424
462
|
q("use", {
|
|
425
463
|
"xlink:href": `#${s.name}`
|
|
426
|
-
}, null, 8,
|
|
464
|
+
}, null, 8, Xl)
|
|
427
465
|
],
|
|
428
466
|
4
|
|
429
467
|
/* STYLE */
|
|
430
|
-
)) : i.value === "img" ? (
|
|
468
|
+
)) : i.value === "img" ? (K(), Ce(P(Sa), {
|
|
431
469
|
key: 4,
|
|
432
470
|
src: s.name,
|
|
433
471
|
class: "shrink-0"
|
|
@@ -463,7 +501,7 @@ const Vl = {
|
|
|
463
501
|
);
|
|
464
502
|
};
|
|
465
503
|
}
|
|
466
|
-
}),
|
|
504
|
+
}), Jl = /* @__PURE__ */ Kr(Zl, [["__scopeId", "data-v-c202da9d"]]), Ql = Qe(Jl), ec = /* @__PURE__ */ Ee({
|
|
467
505
|
__name: "CloseIcon",
|
|
468
506
|
props: {
|
|
469
507
|
showBg: {
|
|
@@ -476,13 +514,13 @@ const Vl = {
|
|
|
476
514
|
}
|
|
477
515
|
},
|
|
478
516
|
setup(s) {
|
|
479
|
-
return (a, r) => (
|
|
517
|
+
return (a, r) => (K(), oe(
|
|
480
518
|
"div",
|
|
481
519
|
{
|
|
482
520
|
class: ie({ "exit-main-page-maximize": s.showBg && s.fullscreen })
|
|
483
521
|
},
|
|
484
522
|
[
|
|
485
|
-
|
|
523
|
+
X(P(Ql), {
|
|
486
524
|
name: "iksvg_guanbidanchuang",
|
|
487
525
|
danger: "",
|
|
488
526
|
title: "关闭",
|
|
@@ -493,7 +531,7 @@ const Vl = {
|
|
|
493
531
|
/* CLASS */
|
|
494
532
|
));
|
|
495
533
|
}
|
|
496
|
-
}),
|
|
534
|
+
}), tc = /* @__PURE__ */ Kr(ec, [["__scopeId", "data-v-739899b1"]]), ic = { class: "base-header" }, nc = /* @__PURE__ */ Ee({
|
|
497
535
|
__name: "IkBaseDialog",
|
|
498
536
|
props: /* @__PURE__ */ Et({
|
|
499
537
|
title: { default: "" },
|
|
@@ -515,9 +553,9 @@ const Vl = {
|
|
|
515
553
|
}),
|
|
516
554
|
emits: ["update:modelValue"],
|
|
517
555
|
setup(s) {
|
|
518
|
-
const a = s, r = Gr(s, "modelValue"), t = be(a.fullscreen), e =
|
|
556
|
+
const a = s, r = Gr(s, "modelValue"), t = be(a.fullscreen), e = Ee({
|
|
519
557
|
setup() {
|
|
520
|
-
return () => yl(
|
|
558
|
+
return () => yl(tc, {
|
|
521
559
|
showBg: a.showCloseBg,
|
|
522
560
|
fullscreen: a.fullscreen
|
|
523
561
|
});
|
|
@@ -525,7 +563,7 @@ const Vl = {
|
|
|
525
563
|
});
|
|
526
564
|
return (i, n) => {
|
|
527
565
|
const o = zr("el-dialog");
|
|
528
|
-
return
|
|
566
|
+
return K(), Ce(o, _l({
|
|
529
567
|
modelValue: r.value,
|
|
530
568
|
"onUpdate:modelValue": n[0] || (n[0] = (u) => r.value = u),
|
|
531
569
|
"align-center": ""
|
|
@@ -537,7 +575,7 @@ const Vl = {
|
|
|
537
575
|
"modal-class": "baseDialog"
|
|
538
576
|
}), bl({
|
|
539
577
|
icon: Q(() => [
|
|
540
|
-
|
|
578
|
+
Ze(i.$slots, "title", {}, () => [
|
|
541
579
|
Ca(
|
|
542
580
|
$t(s.title),
|
|
543
581
|
1
|
|
@@ -546,8 +584,8 @@ const Vl = {
|
|
|
546
584
|
])
|
|
547
585
|
]),
|
|
548
586
|
header: Q(() => [
|
|
549
|
-
q("div",
|
|
550
|
-
|
|
587
|
+
q("div", ic, [
|
|
588
|
+
Ze(i.$slots, "header", {}, () => [
|
|
551
589
|
Ca(
|
|
552
590
|
$t(s.title),
|
|
553
591
|
1
|
|
@@ -557,7 +595,7 @@ const Vl = {
|
|
|
557
595
|
])
|
|
558
596
|
]),
|
|
559
597
|
default: Q(() => [
|
|
560
|
-
|
|
598
|
+
Ze(i.$slots, "default")
|
|
561
599
|
]),
|
|
562
600
|
_: 2
|
|
563
601
|
/* DYNAMIC */
|
|
@@ -565,15 +603,15 @@ const Vl = {
|
|
|
565
603
|
i.$slots.footer ? {
|
|
566
604
|
name: "footer",
|
|
567
605
|
fn: Q(() => [
|
|
568
|
-
|
|
606
|
+
Ze(i.$slots, "footer")
|
|
569
607
|
]),
|
|
570
608
|
key: "0"
|
|
571
609
|
} : void 0
|
|
572
610
|
]), 1040, ["modelValue", "close-icon", "class", "fullscreen"]);
|
|
573
611
|
};
|
|
574
612
|
}
|
|
575
|
-
}), Ia =
|
|
576
|
-
function
|
|
613
|
+
}), Ia = Qe(nc);
|
|
614
|
+
function rc(s, a, r, t) {
|
|
577
615
|
function e(i) {
|
|
578
616
|
return i instanceof r ? i : new r(function(n) {
|
|
579
617
|
n(i);
|
|
@@ -600,7 +638,7 @@ function ic(s, a, r, t) {
|
|
|
600
638
|
l((t = t.apply(s, [])).next());
|
|
601
639
|
});
|
|
602
640
|
}
|
|
603
|
-
function
|
|
641
|
+
function ac(s, a) {
|
|
604
642
|
var r = { label: 0, sent: function() {
|
|
605
643
|
if (i[0] & 1) throw i[1];
|
|
606
644
|
return i[1];
|
|
@@ -660,9 +698,9 @@ function nc(s, a) {
|
|
|
660
698
|
return { value: l[0] ? l[1] : void 0, done: !0 };
|
|
661
699
|
}
|
|
662
700
|
}
|
|
663
|
-
var
|
|
664
|
-
return
|
|
665
|
-
return
|
|
701
|
+
var sc = function(s, a) {
|
|
702
|
+
return rc(void 0, void 0, void 0, function() {
|
|
703
|
+
return ac(this, function(r) {
|
|
666
704
|
return [2, new Promise(function(t, e) {
|
|
667
705
|
try {
|
|
668
706
|
if (window.DocsAPI)
|
|
@@ -696,11 +734,11 @@ var rc = function(s, a) {
|
|
|
696
734
|
e.removeAttribute("loading"), t(i);
|
|
697
735
|
}, e.setAttribute("loading", ""), e;
|
|
698
736
|
}, qt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
699
|
-
function
|
|
737
|
+
function oc(s) {
|
|
700
738
|
return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
|
|
701
739
|
}
|
|
702
740
|
var Ci, Aa;
|
|
703
|
-
function
|
|
741
|
+
function uc() {
|
|
704
742
|
if (Aa) return Ci;
|
|
705
743
|
Aa = 1;
|
|
706
744
|
function s() {
|
|
@@ -731,7 +769,7 @@ function oi() {
|
|
|
731
769
|
return Ti = a, Ti;
|
|
732
770
|
}
|
|
733
771
|
var wi, Da;
|
|
734
|
-
function
|
|
772
|
+
function lc() {
|
|
735
773
|
if (Da) return wi;
|
|
736
774
|
Da = 1;
|
|
737
775
|
var s = oi(), a = Array.prototype, r = a.splice;
|
|
@@ -745,7 +783,7 @@ function oc() {
|
|
|
745
783
|
return wi = t, wi;
|
|
746
784
|
}
|
|
747
785
|
var Si, Oa;
|
|
748
|
-
function
|
|
786
|
+
function cc() {
|
|
749
787
|
if (Oa) return Si;
|
|
750
788
|
Oa = 1;
|
|
751
789
|
var s = oi();
|
|
@@ -756,7 +794,7 @@ function uc() {
|
|
|
756
794
|
return Si = a, Si;
|
|
757
795
|
}
|
|
758
796
|
var Ei, Ma;
|
|
759
|
-
function
|
|
797
|
+
function fc() {
|
|
760
798
|
if (Ma) return Ei;
|
|
761
799
|
Ma = 1;
|
|
762
800
|
var s = oi();
|
|
@@ -766,7 +804,7 @@ function lc() {
|
|
|
766
804
|
return Ei = a, Ei;
|
|
767
805
|
}
|
|
768
806
|
var xi, Fa;
|
|
769
|
-
function
|
|
807
|
+
function hc() {
|
|
770
808
|
if (Fa) return xi;
|
|
771
809
|
Fa = 1;
|
|
772
810
|
var s = oi();
|
|
@@ -780,7 +818,7 @@ var Ii, Na;
|
|
|
780
818
|
function ui() {
|
|
781
819
|
if (Na) return Ii;
|
|
782
820
|
Na = 1;
|
|
783
|
-
var s =
|
|
821
|
+
var s = uc(), a = lc(), r = cc(), t = fc(), e = hc();
|
|
784
822
|
function i(n) {
|
|
785
823
|
var o = -1, u = n == null ? 0 : n.length;
|
|
786
824
|
for (this.clear(); ++o < u; ) {
|
|
@@ -791,7 +829,7 @@ function ui() {
|
|
|
791
829
|
return i.prototype.clear = s, i.prototype.delete = a, i.prototype.get = r, i.prototype.has = t, i.prototype.set = e, Ii = i, Ii;
|
|
792
830
|
}
|
|
793
831
|
var Pi, Ba;
|
|
794
|
-
function
|
|
832
|
+
function dc() {
|
|
795
833
|
if (Ba) return Pi;
|
|
796
834
|
Ba = 1;
|
|
797
835
|
var s = ui();
|
|
@@ -801,7 +839,7 @@ function fc() {
|
|
|
801
839
|
return Pi = a, Pi;
|
|
802
840
|
}
|
|
803
841
|
var Ai, Ha;
|
|
804
|
-
function
|
|
842
|
+
function gc() {
|
|
805
843
|
if (Ha) return Ai;
|
|
806
844
|
Ha = 1;
|
|
807
845
|
function s(a) {
|
|
@@ -811,7 +849,7 @@ function hc() {
|
|
|
811
849
|
return Ai = s, Ai;
|
|
812
850
|
}
|
|
813
851
|
var Ri, Ua;
|
|
814
|
-
function
|
|
852
|
+
function vc() {
|
|
815
853
|
if (Ua) return Ri;
|
|
816
854
|
Ua = 1;
|
|
817
855
|
function s(a) {
|
|
@@ -820,7 +858,7 @@ function dc() {
|
|
|
820
858
|
return Ri = s, Ri;
|
|
821
859
|
}
|
|
822
860
|
var Li, ja;
|
|
823
|
-
function
|
|
861
|
+
function pc() {
|
|
824
862
|
if (ja) return Li;
|
|
825
863
|
ja = 1;
|
|
826
864
|
function s(a) {
|
|
@@ -836,7 +874,7 @@ function vu() {
|
|
|
836
874
|
return Di = s, Di;
|
|
837
875
|
}
|
|
838
876
|
var Oi, Va;
|
|
839
|
-
function
|
|
877
|
+
function xe() {
|
|
840
878
|
if (Va) return Oi;
|
|
841
879
|
Va = 1;
|
|
842
880
|
var s = vu(), a = typeof self == "object" && self && self.Object === Object && self, r = s || a || Function("return this")();
|
|
@@ -846,11 +884,11 @@ var Mi, za;
|
|
|
846
884
|
function $r() {
|
|
847
885
|
if (za) return Mi;
|
|
848
886
|
za = 1;
|
|
849
|
-
var s =
|
|
887
|
+
var s = xe(), a = s.Symbol;
|
|
850
888
|
return Mi = a, Mi;
|
|
851
889
|
}
|
|
852
890
|
var Fi, Ga;
|
|
853
|
-
function
|
|
891
|
+
function mc() {
|
|
854
892
|
if (Ga) return Fi;
|
|
855
893
|
Ga = 1;
|
|
856
894
|
var s = $r(), a = Object.prototype, r = a.hasOwnProperty, t = a.toString, e = s ? s.toStringTag : void 0;
|
|
@@ -867,7 +905,7 @@ function vc() {
|
|
|
867
905
|
return Fi = i, Fi;
|
|
868
906
|
}
|
|
869
907
|
var Ni, Wa;
|
|
870
|
-
function
|
|
908
|
+
function yc() {
|
|
871
909
|
if (Wa) return Ni;
|
|
872
910
|
Wa = 1;
|
|
873
911
|
var s = Object.prototype, a = s.toString;
|
|
@@ -880,7 +918,7 @@ var Bi, Ka;
|
|
|
880
918
|
function li() {
|
|
881
919
|
if (Ka) return Bi;
|
|
882
920
|
Ka = 1;
|
|
883
|
-
var s = $r(), a =
|
|
921
|
+
var s = $r(), a = mc(), r = yc(), t = "[object Null]", e = "[object Undefined]", i = s ? s.toStringTag : void 0;
|
|
884
922
|
function n(o) {
|
|
885
923
|
return o == null ? o === void 0 ? e : t : i && i in Object(o) ? a(o) : r(o);
|
|
886
924
|
}
|
|
@@ -910,17 +948,17 @@ function pu() {
|
|
|
910
948
|
return Ui = n, Ui;
|
|
911
949
|
}
|
|
912
950
|
var ji, Xa;
|
|
913
|
-
function
|
|
951
|
+
function _c() {
|
|
914
952
|
if (Xa) return ji;
|
|
915
953
|
Xa = 1;
|
|
916
|
-
var s =
|
|
954
|
+
var s = xe(), a = s["__core-js_shared__"];
|
|
917
955
|
return ji = a, ji;
|
|
918
956
|
}
|
|
919
957
|
var qi, Za;
|
|
920
|
-
function
|
|
958
|
+
function bc() {
|
|
921
959
|
if (Za) return qi;
|
|
922
960
|
Za = 1;
|
|
923
|
-
var s =
|
|
961
|
+
var s = _c(), a = (function() {
|
|
924
962
|
var t = /[^.]+$/.exec(s && s.keys && s.keys.IE_PROTO || "");
|
|
925
963
|
return t ? "Symbol(src)_1." + t : "";
|
|
926
964
|
})();
|
|
@@ -950,10 +988,10 @@ function mu() {
|
|
|
950
988
|
return Vi = r, Vi;
|
|
951
989
|
}
|
|
952
990
|
var zi, Qa;
|
|
953
|
-
function
|
|
991
|
+
function Cc() {
|
|
954
992
|
if (Qa) return zi;
|
|
955
993
|
Qa = 1;
|
|
956
|
-
var s = pu(), a =
|
|
994
|
+
var s = pu(), a = bc(), r = It(), t = mu(), e = /[\\^$.*+?()[\]{}|]/g, i = /^\[object .+?Constructor\]$/, n = Function.prototype, o = Object.prototype, u = n.toString, l = o.hasOwnProperty, c = RegExp(
|
|
957
995
|
"^" + u.call(l).replace(e, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
958
996
|
);
|
|
959
997
|
function h(d) {
|
|
@@ -965,7 +1003,7 @@ function _c() {
|
|
|
965
1003
|
return zi = h, zi;
|
|
966
1004
|
}
|
|
967
1005
|
var Gi, es;
|
|
968
|
-
function
|
|
1006
|
+
function kc() {
|
|
969
1007
|
if (es) return Gi;
|
|
970
1008
|
es = 1;
|
|
971
1009
|
function s(a, r) {
|
|
@@ -974,10 +1012,10 @@ function bc() {
|
|
|
974
1012
|
return Gi = s, Gi;
|
|
975
1013
|
}
|
|
976
1014
|
var Wi, ts;
|
|
977
|
-
function
|
|
1015
|
+
function et() {
|
|
978
1016
|
if (ts) return Wi;
|
|
979
1017
|
ts = 1;
|
|
980
|
-
var s =
|
|
1018
|
+
var s = Cc(), a = kc();
|
|
981
1019
|
function r(t, e) {
|
|
982
1020
|
var i = a(t, e);
|
|
983
1021
|
return s(i) ? i : void 0;
|
|
@@ -988,18 +1026,18 @@ var Ki, is;
|
|
|
988
1026
|
function Yr() {
|
|
989
1027
|
if (is) return Ki;
|
|
990
1028
|
is = 1;
|
|
991
|
-
var s =
|
|
1029
|
+
var s = et(), a = xe(), r = s(a, "Map");
|
|
992
1030
|
return Ki = r, Ki;
|
|
993
1031
|
}
|
|
994
1032
|
var $i, ns;
|
|
995
1033
|
function ci() {
|
|
996
1034
|
if (ns) return $i;
|
|
997
1035
|
ns = 1;
|
|
998
|
-
var s =
|
|
1036
|
+
var s = et(), a = s(Object, "create");
|
|
999
1037
|
return $i = a, $i;
|
|
1000
1038
|
}
|
|
1001
1039
|
var Yi, rs;
|
|
1002
|
-
function
|
|
1040
|
+
function Tc() {
|
|
1003
1041
|
if (rs) return Yi;
|
|
1004
1042
|
rs = 1;
|
|
1005
1043
|
var s = ci();
|
|
@@ -1009,7 +1047,7 @@ function Cc() {
|
|
|
1009
1047
|
return Yi = a, Yi;
|
|
1010
1048
|
}
|
|
1011
1049
|
var Xi, as;
|
|
1012
|
-
function
|
|
1050
|
+
function wc() {
|
|
1013
1051
|
if (as) return Xi;
|
|
1014
1052
|
as = 1;
|
|
1015
1053
|
function s(a) {
|
|
@@ -1019,7 +1057,7 @@ function kc() {
|
|
|
1019
1057
|
return Xi = s, Xi;
|
|
1020
1058
|
}
|
|
1021
1059
|
var Zi, ss;
|
|
1022
|
-
function
|
|
1060
|
+
function Sc() {
|
|
1023
1061
|
if (ss) return Zi;
|
|
1024
1062
|
ss = 1;
|
|
1025
1063
|
var s = ci(), a = "__lodash_hash_undefined__", r = Object.prototype, t = r.hasOwnProperty;
|
|
@@ -1034,7 +1072,7 @@ function Tc() {
|
|
|
1034
1072
|
return Zi = e, Zi;
|
|
1035
1073
|
}
|
|
1036
1074
|
var Ji, os;
|
|
1037
|
-
function
|
|
1075
|
+
function Ec() {
|
|
1038
1076
|
if (os) return Ji;
|
|
1039
1077
|
os = 1;
|
|
1040
1078
|
var s = ci(), a = Object.prototype, r = a.hasOwnProperty;
|
|
@@ -1045,7 +1083,7 @@ function wc() {
|
|
|
1045
1083
|
return Ji = t, Ji;
|
|
1046
1084
|
}
|
|
1047
1085
|
var Qi, us;
|
|
1048
|
-
function
|
|
1086
|
+
function xc() {
|
|
1049
1087
|
if (us) return Qi;
|
|
1050
1088
|
us = 1;
|
|
1051
1089
|
var s = ci(), a = "__lodash_hash_undefined__";
|
|
@@ -1056,10 +1094,10 @@ function Sc() {
|
|
|
1056
1094
|
return Qi = r, Qi;
|
|
1057
1095
|
}
|
|
1058
1096
|
var en, ls;
|
|
1059
|
-
function
|
|
1097
|
+
function Ic() {
|
|
1060
1098
|
if (ls) return en;
|
|
1061
1099
|
ls = 1;
|
|
1062
|
-
var s =
|
|
1100
|
+
var s = Tc(), a = wc(), r = Sc(), t = Ec(), e = xc();
|
|
1063
1101
|
function i(n) {
|
|
1064
1102
|
var o = -1, u = n == null ? 0 : n.length;
|
|
1065
1103
|
for (this.clear(); ++o < u; ) {
|
|
@@ -1070,10 +1108,10 @@ function Ec() {
|
|
|
1070
1108
|
return i.prototype.clear = s, i.prototype.delete = a, i.prototype.get = r, i.prototype.has = t, i.prototype.set = e, en = i, en;
|
|
1071
1109
|
}
|
|
1072
1110
|
var tn, cs;
|
|
1073
|
-
function
|
|
1111
|
+
function Pc() {
|
|
1074
1112
|
if (cs) return tn;
|
|
1075
1113
|
cs = 1;
|
|
1076
|
-
var s =
|
|
1114
|
+
var s = Ic(), a = ui(), r = Yr();
|
|
1077
1115
|
function t() {
|
|
1078
1116
|
this.size = 0, this.__data__ = {
|
|
1079
1117
|
hash: new s(),
|
|
@@ -1084,7 +1122,7 @@ function xc() {
|
|
|
1084
1122
|
return tn = t, tn;
|
|
1085
1123
|
}
|
|
1086
1124
|
var nn, fs;
|
|
1087
|
-
function
|
|
1125
|
+
function Ac() {
|
|
1088
1126
|
if (fs) return nn;
|
|
1089
1127
|
fs = 1;
|
|
1090
1128
|
function s(a) {
|
|
@@ -1097,7 +1135,7 @@ var rn, hs;
|
|
|
1097
1135
|
function fi() {
|
|
1098
1136
|
if (hs) return rn;
|
|
1099
1137
|
hs = 1;
|
|
1100
|
-
var s =
|
|
1138
|
+
var s = Ac();
|
|
1101
1139
|
function a(r, t) {
|
|
1102
1140
|
var e = r.__data__;
|
|
1103
1141
|
return s(t) ? e[typeof t == "string" ? "string" : "hash"] : e.map;
|
|
@@ -1105,7 +1143,7 @@ function fi() {
|
|
|
1105
1143
|
return rn = a, rn;
|
|
1106
1144
|
}
|
|
1107
1145
|
var an, ds;
|
|
1108
|
-
function
|
|
1146
|
+
function Rc() {
|
|
1109
1147
|
if (ds) return an;
|
|
1110
1148
|
ds = 1;
|
|
1111
1149
|
var s = fi();
|
|
@@ -1116,7 +1154,7 @@ function Pc() {
|
|
|
1116
1154
|
return an = a, an;
|
|
1117
1155
|
}
|
|
1118
1156
|
var sn, gs;
|
|
1119
|
-
function
|
|
1157
|
+
function Lc() {
|
|
1120
1158
|
if (gs) return sn;
|
|
1121
1159
|
gs = 1;
|
|
1122
1160
|
var s = fi();
|
|
@@ -1126,7 +1164,7 @@ function Ac() {
|
|
|
1126
1164
|
return sn = a, sn;
|
|
1127
1165
|
}
|
|
1128
1166
|
var on, vs;
|
|
1129
|
-
function
|
|
1167
|
+
function Dc() {
|
|
1130
1168
|
if (vs) return on;
|
|
1131
1169
|
vs = 1;
|
|
1132
1170
|
var s = fi();
|
|
@@ -1136,7 +1174,7 @@ function Rc() {
|
|
|
1136
1174
|
return on = a, on;
|
|
1137
1175
|
}
|
|
1138
1176
|
var un, ps;
|
|
1139
|
-
function
|
|
1177
|
+
function Oc() {
|
|
1140
1178
|
if (ps) return un;
|
|
1141
1179
|
ps = 1;
|
|
1142
1180
|
var s = fi();
|
|
@@ -1147,10 +1185,10 @@ function Lc() {
|
|
|
1147
1185
|
return un = a, un;
|
|
1148
1186
|
}
|
|
1149
1187
|
var ln, ms;
|
|
1150
|
-
function
|
|
1188
|
+
function Mc() {
|
|
1151
1189
|
if (ms) return ln;
|
|
1152
1190
|
ms = 1;
|
|
1153
|
-
var s =
|
|
1191
|
+
var s = Pc(), a = Rc(), r = Lc(), t = Dc(), e = Oc();
|
|
1154
1192
|
function i(n) {
|
|
1155
1193
|
var o = -1, u = n == null ? 0 : n.length;
|
|
1156
1194
|
for (this.clear(); ++o < u; ) {
|
|
@@ -1161,10 +1199,10 @@ function Dc() {
|
|
|
1161
1199
|
return i.prototype.clear = s, i.prototype.delete = a, i.prototype.get = r, i.prototype.has = t, i.prototype.set = e, ln = i, ln;
|
|
1162
1200
|
}
|
|
1163
1201
|
var cn, ys;
|
|
1164
|
-
function
|
|
1202
|
+
function Fc() {
|
|
1165
1203
|
if (ys) return cn;
|
|
1166
1204
|
ys = 1;
|
|
1167
|
-
var s = ui(), a = Yr(), r =
|
|
1205
|
+
var s = ui(), a = Yr(), r = Mc(), t = 200;
|
|
1168
1206
|
function e(i, n) {
|
|
1169
1207
|
var o = this.__data__;
|
|
1170
1208
|
if (o instanceof s) {
|
|
@@ -1178,10 +1216,10 @@ function Oc() {
|
|
|
1178
1216
|
return cn = e, cn;
|
|
1179
1217
|
}
|
|
1180
1218
|
var fn, _s;
|
|
1181
|
-
function
|
|
1219
|
+
function Nc() {
|
|
1182
1220
|
if (_s) return fn;
|
|
1183
1221
|
_s = 1;
|
|
1184
|
-
var s = ui(), a =
|
|
1222
|
+
var s = ui(), a = dc(), r = gc(), t = vc(), e = pc(), i = Fc();
|
|
1185
1223
|
function n(o) {
|
|
1186
1224
|
var u = this.__data__ = new s(o);
|
|
1187
1225
|
this.size = u.size;
|
|
@@ -1189,7 +1227,7 @@ function Mc() {
|
|
|
1189
1227
|
return n.prototype.clear = a, n.prototype.delete = r, n.prototype.get = t, n.prototype.has = e, n.prototype.set = i, fn = n, fn;
|
|
1190
1228
|
}
|
|
1191
1229
|
var hn, bs;
|
|
1192
|
-
function
|
|
1230
|
+
function Bc() {
|
|
1193
1231
|
if (bs) return hn;
|
|
1194
1232
|
bs = 1;
|
|
1195
1233
|
function s(a, r) {
|
|
@@ -1200,10 +1238,10 @@ function Fc() {
|
|
|
1200
1238
|
return hn = s, hn;
|
|
1201
1239
|
}
|
|
1202
1240
|
var dn, Cs;
|
|
1203
|
-
function
|
|
1241
|
+
function Hc() {
|
|
1204
1242
|
if (Cs) return dn;
|
|
1205
1243
|
Cs = 1;
|
|
1206
|
-
var s =
|
|
1244
|
+
var s = et(), a = (function() {
|
|
1207
1245
|
try {
|
|
1208
1246
|
var r = s(Object, "defineProperty");
|
|
1209
1247
|
return r({}, "", {}), r;
|
|
@@ -1216,7 +1254,7 @@ var gn, ks;
|
|
|
1216
1254
|
function yu() {
|
|
1217
1255
|
if (ks) return gn;
|
|
1218
1256
|
ks = 1;
|
|
1219
|
-
var s =
|
|
1257
|
+
var s = Hc();
|
|
1220
1258
|
function a(r, t, e) {
|
|
1221
1259
|
t == "__proto__" && s ? s(r, t, {
|
|
1222
1260
|
configurable: !0,
|
|
@@ -1255,7 +1293,7 @@ function hi() {
|
|
|
1255
1293
|
return pn = r, pn;
|
|
1256
1294
|
}
|
|
1257
1295
|
var mn, Ss;
|
|
1258
|
-
function
|
|
1296
|
+
function Uc() {
|
|
1259
1297
|
if (Ss) return mn;
|
|
1260
1298
|
Ss = 1;
|
|
1261
1299
|
function s(a, r) {
|
|
@@ -1275,7 +1313,7 @@ function Pt() {
|
|
|
1275
1313
|
return yn = s, yn;
|
|
1276
1314
|
}
|
|
1277
1315
|
var _n, xs;
|
|
1278
|
-
function
|
|
1316
|
+
function jc() {
|
|
1279
1317
|
if (xs) return _n;
|
|
1280
1318
|
xs = 1;
|
|
1281
1319
|
var s = li(), a = Pt(), r = "[object Arguments]";
|
|
@@ -1285,10 +1323,10 @@ function Hc() {
|
|
|
1285
1323
|
return _n = t, _n;
|
|
1286
1324
|
}
|
|
1287
1325
|
var bn, Is;
|
|
1288
|
-
function
|
|
1326
|
+
function qc() {
|
|
1289
1327
|
if (Is) return bn;
|
|
1290
1328
|
Is = 1;
|
|
1291
|
-
var s =
|
|
1329
|
+
var s = jc(), a = Pt(), r = Object.prototype, t = r.hasOwnProperty, e = r.propertyIsEnumerable, i = s(/* @__PURE__ */ (function() {
|
|
1292
1330
|
return arguments;
|
|
1293
1331
|
})()) ? s : function(n) {
|
|
1294
1332
|
return a(n) && t.call(n, "callee") && !e.call(n, "callee");
|
|
@@ -1303,7 +1341,7 @@ function Xr() {
|
|
|
1303
1341
|
return Cn = s, Cn;
|
|
1304
1342
|
}
|
|
1305
1343
|
var kt = { exports: {} }, kn, As;
|
|
1306
|
-
function
|
|
1344
|
+
function Vc() {
|
|
1307
1345
|
if (As) return kn;
|
|
1308
1346
|
As = 1;
|
|
1309
1347
|
function s() {
|
|
@@ -1315,12 +1353,12 @@ kt.exports;
|
|
|
1315
1353
|
var Rs;
|
|
1316
1354
|
function bu() {
|
|
1317
1355
|
return Rs || (Rs = 1, (function(s, a) {
|
|
1318
|
-
var r =
|
|
1356
|
+
var r = xe(), t = Vc(), e = a && !a.nodeType && a, i = e && !0 && s && !s.nodeType && s, n = i && i.exports === e, o = n ? r.Buffer : void 0, u = o ? o.isBuffer : void 0, l = u || t;
|
|
1319
1357
|
s.exports = l;
|
|
1320
1358
|
})(kt, kt.exports)), kt.exports;
|
|
1321
1359
|
}
|
|
1322
1360
|
var Tn, Ls;
|
|
1323
|
-
function
|
|
1361
|
+
function zc() {
|
|
1324
1362
|
if (Ls) return Tn;
|
|
1325
1363
|
Ls = 1;
|
|
1326
1364
|
var s = 9007199254740991, a = /^(?:0|[1-9]\d*)$/;
|
|
@@ -1341,11 +1379,11 @@ function Cu() {
|
|
|
1341
1379
|
return wn = a, wn;
|
|
1342
1380
|
}
|
|
1343
1381
|
var Sn, Os;
|
|
1344
|
-
function
|
|
1382
|
+
function Gc() {
|
|
1345
1383
|
if (Os) return Sn;
|
|
1346
1384
|
Os = 1;
|
|
1347
|
-
var s = li(), a = Cu(), r = Pt(), t = "[object Arguments]", e = "[object Array]", i = "[object Boolean]", n = "[object Date]", o = "[object Error]", u = "[object Function]", l = "[object Map]", c = "[object Number]", h = "[object Object]", d = "[object RegExp]", g = "[object Set]", v = "[object String]", m = "[object WeakMap]", p = "[object ArrayBuffer]", T = "[object DataView]", C = "[object Float32Array]", b = "[object Float64Array]", x = "[object Int8Array]", E = "[object Int16Array]", I = "[object Int32Array]",
|
|
1348
|
-
D[C] = D[b] = D[x] = D[E] = D[I] = D[
|
|
1385
|
+
var s = li(), a = Cu(), r = Pt(), t = "[object Arguments]", e = "[object Array]", i = "[object Boolean]", n = "[object Date]", o = "[object Error]", u = "[object Function]", l = "[object Map]", c = "[object Number]", h = "[object Object]", d = "[object RegExp]", g = "[object Set]", v = "[object String]", m = "[object WeakMap]", p = "[object ArrayBuffer]", T = "[object DataView]", C = "[object Float32Array]", b = "[object Float64Array]", x = "[object Int8Array]", E = "[object Int16Array]", I = "[object Int32Array]", Y = "[object Uint8Array]", G = "[object Uint8ClampedArray]", B = "[object Uint16Array]", F = "[object Uint32Array]", D = {};
|
|
1386
|
+
D[C] = D[b] = D[x] = D[E] = D[I] = D[Y] = D[G] = D[B] = D[F] = !0, D[t] = D[e] = D[p] = D[i] = D[T] = D[n] = D[o] = D[u] = D[l] = D[c] = D[h] = D[d] = D[g] = D[v] = D[m] = !1;
|
|
1349
1387
|
function te(fe) {
|
|
1350
1388
|
return r(fe) && a(fe.length) && !!D[s(fe)];
|
|
1351
1389
|
}
|
|
@@ -1378,17 +1416,17 @@ function Jr() {
|
|
|
1378
1416
|
})(Tt, Tt.exports)), Tt.exports;
|
|
1379
1417
|
}
|
|
1380
1418
|
var xn, Ns;
|
|
1381
|
-
function
|
|
1419
|
+
function Wc() {
|
|
1382
1420
|
if (Ns) return xn;
|
|
1383
1421
|
Ns = 1;
|
|
1384
|
-
var s =
|
|
1422
|
+
var s = Gc(), a = Zr(), r = Jr(), t = r && r.isTypedArray, e = t ? a(t) : s;
|
|
1385
1423
|
return xn = e, xn;
|
|
1386
1424
|
}
|
|
1387
1425
|
var In, Bs;
|
|
1388
1426
|
function ku() {
|
|
1389
1427
|
if (Bs) return In;
|
|
1390
1428
|
Bs = 1;
|
|
1391
|
-
var s =
|
|
1429
|
+
var s = Uc(), a = qc(), r = Xr(), t = bu(), e = zc(), i = Wc(), n = Object.prototype, o = n.hasOwnProperty;
|
|
1392
1430
|
function u(l, c) {
|
|
1393
1431
|
var h = r(l), d = !h && a(l), g = !h && !d && t(l), v = !h && !d && !g && i(l), m = h || d || g || v, p = m ? s(l.length, String) : [], T = p.length;
|
|
1394
1432
|
for (var C in l)
|
|
@@ -1424,17 +1462,17 @@ function Tu() {
|
|
|
1424
1462
|
return An = s, An;
|
|
1425
1463
|
}
|
|
1426
1464
|
var Rn, js;
|
|
1427
|
-
function
|
|
1465
|
+
function Kc() {
|
|
1428
1466
|
if (js) return Rn;
|
|
1429
1467
|
js = 1;
|
|
1430
1468
|
var s = Tu(), a = s(Object.keys, Object);
|
|
1431
1469
|
return Rn = a, Rn;
|
|
1432
1470
|
}
|
|
1433
1471
|
var Ln, qs;
|
|
1434
|
-
function
|
|
1472
|
+
function $c() {
|
|
1435
1473
|
if (qs) return Ln;
|
|
1436
1474
|
qs = 1;
|
|
1437
|
-
var s = Qr(), a =
|
|
1475
|
+
var s = Qr(), a = Kc(), r = Object.prototype, t = r.hasOwnProperty;
|
|
1438
1476
|
function e(i) {
|
|
1439
1477
|
if (!s(i))
|
|
1440
1478
|
return a(i);
|
|
@@ -1459,14 +1497,14 @@ var On, zs;
|
|
|
1459
1497
|
function ea() {
|
|
1460
1498
|
if (zs) return On;
|
|
1461
1499
|
zs = 1;
|
|
1462
|
-
var s = ku(), a =
|
|
1500
|
+
var s = ku(), a = $c(), r = wu();
|
|
1463
1501
|
function t(e) {
|
|
1464
1502
|
return r(e) ? s(e) : a(e);
|
|
1465
1503
|
}
|
|
1466
1504
|
return On = t, On;
|
|
1467
1505
|
}
|
|
1468
1506
|
var Mn, Gs;
|
|
1469
|
-
function
|
|
1507
|
+
function Yc() {
|
|
1470
1508
|
if (Gs) return Mn;
|
|
1471
1509
|
Gs = 1;
|
|
1472
1510
|
var s = hi(), a = ea();
|
|
@@ -1476,7 +1514,7 @@ function Kc() {
|
|
|
1476
1514
|
return Mn = r, Mn;
|
|
1477
1515
|
}
|
|
1478
1516
|
var Fn, Ws;
|
|
1479
|
-
function
|
|
1517
|
+
function Xc() {
|
|
1480
1518
|
if (Ws) return Fn;
|
|
1481
1519
|
Ws = 1;
|
|
1482
1520
|
function s(a) {
|
|
@@ -1489,10 +1527,10 @@ function $c() {
|
|
|
1489
1527
|
return Fn = s, Fn;
|
|
1490
1528
|
}
|
|
1491
1529
|
var Nn, Ks;
|
|
1492
|
-
function
|
|
1530
|
+
function Zc() {
|
|
1493
1531
|
if (Ks) return Nn;
|
|
1494
1532
|
Ks = 1;
|
|
1495
|
-
var s = It(), a = Qr(), r =
|
|
1533
|
+
var s = It(), a = Qr(), r = Xc(), t = Object.prototype, e = t.hasOwnProperty;
|
|
1496
1534
|
function i(n) {
|
|
1497
1535
|
if (!s(n))
|
|
1498
1536
|
return r(n);
|
|
@@ -1507,14 +1545,14 @@ var Bn, $s;
|
|
|
1507
1545
|
function ta() {
|
|
1508
1546
|
if ($s) return Bn;
|
|
1509
1547
|
$s = 1;
|
|
1510
|
-
var s = ku(), a =
|
|
1548
|
+
var s = ku(), a = Zc(), r = wu();
|
|
1511
1549
|
function t(e) {
|
|
1512
1550
|
return r(e) ? s(e, !0) : a(e);
|
|
1513
1551
|
}
|
|
1514
1552
|
return Bn = t, Bn;
|
|
1515
1553
|
}
|
|
1516
1554
|
var Hn, Ys;
|
|
1517
|
-
function
|
|
1555
|
+
function Jc() {
|
|
1518
1556
|
if (Ys) return Hn;
|
|
1519
1557
|
Ys = 1;
|
|
1520
1558
|
var s = hi(), a = ta();
|
|
@@ -1526,9 +1564,9 @@ function Xc() {
|
|
|
1526
1564
|
var wt = { exports: {} };
|
|
1527
1565
|
wt.exports;
|
|
1528
1566
|
var Xs;
|
|
1529
|
-
function
|
|
1567
|
+
function Qc() {
|
|
1530
1568
|
return Xs || (Xs = 1, (function(s, a) {
|
|
1531
|
-
var r =
|
|
1569
|
+
var r = xe(), t = a && !a.nodeType && a, e = t && !0 && s && !s.nodeType && s, i = e && e.exports === t, n = i ? r.Buffer : void 0, o = n ? n.allocUnsafe : void 0;
|
|
1532
1570
|
function u(l, c) {
|
|
1533
1571
|
if (c)
|
|
1534
1572
|
return l.slice();
|
|
@@ -1539,7 +1577,7 @@ function Zc() {
|
|
|
1539
1577
|
})(wt, wt.exports)), wt.exports;
|
|
1540
1578
|
}
|
|
1541
1579
|
var Un, Zs;
|
|
1542
|
-
function
|
|
1580
|
+
function ef() {
|
|
1543
1581
|
if (Zs) return Un;
|
|
1544
1582
|
Zs = 1;
|
|
1545
1583
|
function s(a, r) {
|
|
@@ -1551,7 +1589,7 @@ function Jc() {
|
|
|
1551
1589
|
return Un = s, Un;
|
|
1552
1590
|
}
|
|
1553
1591
|
var jn, Js;
|
|
1554
|
-
function
|
|
1592
|
+
function tf() {
|
|
1555
1593
|
if (Js) return jn;
|
|
1556
1594
|
Js = 1;
|
|
1557
1595
|
function s(a, r) {
|
|
@@ -1576,7 +1614,7 @@ var Vn, eo;
|
|
|
1576
1614
|
function ia() {
|
|
1577
1615
|
if (eo) return Vn;
|
|
1578
1616
|
eo = 1;
|
|
1579
|
-
var s =
|
|
1617
|
+
var s = tf(), a = Su(), r = Object.prototype, t = r.propertyIsEnumerable, e = Object.getOwnPropertySymbols, i = e ? function(n) {
|
|
1580
1618
|
return n == null ? [] : (n = Object(n), s(e(n), function(o) {
|
|
1581
1619
|
return t.call(n, o);
|
|
1582
1620
|
}));
|
|
@@ -1584,7 +1622,7 @@ function ia() {
|
|
|
1584
1622
|
return Vn = i, Vn;
|
|
1585
1623
|
}
|
|
1586
1624
|
var zn, to;
|
|
1587
|
-
function
|
|
1625
|
+
function nf() {
|
|
1588
1626
|
if (to) return zn;
|
|
1589
1627
|
to = 1;
|
|
1590
1628
|
var s = hi(), a = ia();
|
|
@@ -1623,7 +1661,7 @@ function Iu() {
|
|
|
1623
1661
|
return Kn = i, Kn;
|
|
1624
1662
|
}
|
|
1625
1663
|
var $n, ao;
|
|
1626
|
-
function
|
|
1664
|
+
function rf() {
|
|
1627
1665
|
if (ao) return $n;
|
|
1628
1666
|
ao = 1;
|
|
1629
1667
|
var s = hi(), a = Iu();
|
|
@@ -1644,7 +1682,7 @@ function Pu() {
|
|
|
1644
1682
|
return Yn = r, Yn;
|
|
1645
1683
|
}
|
|
1646
1684
|
var Xn, oo;
|
|
1647
|
-
function
|
|
1685
|
+
function af() {
|
|
1648
1686
|
if (oo) return Xn;
|
|
1649
1687
|
oo = 1;
|
|
1650
1688
|
var s = Pu(), a = ia(), r = ea();
|
|
@@ -1654,7 +1692,7 @@ function nf() {
|
|
|
1654
1692
|
return Xn = t, Xn;
|
|
1655
1693
|
}
|
|
1656
1694
|
var Zn, uo;
|
|
1657
|
-
function
|
|
1695
|
+
function sf() {
|
|
1658
1696
|
if (uo) return Zn;
|
|
1659
1697
|
uo = 1;
|
|
1660
1698
|
var s = Pu(), a = Iu(), r = ta();
|
|
@@ -1664,38 +1702,38 @@ function rf() {
|
|
|
1664
1702
|
return Zn = t, Zn;
|
|
1665
1703
|
}
|
|
1666
1704
|
var Jn, lo;
|
|
1667
|
-
function
|
|
1705
|
+
function of() {
|
|
1668
1706
|
if (lo) return Jn;
|
|
1669
1707
|
lo = 1;
|
|
1670
|
-
var s =
|
|
1708
|
+
var s = et(), a = xe(), r = s(a, "DataView");
|
|
1671
1709
|
return Jn = r, Jn;
|
|
1672
1710
|
}
|
|
1673
1711
|
var Qn, co;
|
|
1674
|
-
function
|
|
1712
|
+
function uf() {
|
|
1675
1713
|
if (co) return Qn;
|
|
1676
1714
|
co = 1;
|
|
1677
|
-
var s =
|
|
1715
|
+
var s = et(), a = xe(), r = s(a, "Promise");
|
|
1678
1716
|
return Qn = r, Qn;
|
|
1679
1717
|
}
|
|
1680
1718
|
var er, fo;
|
|
1681
|
-
function
|
|
1719
|
+
function lf() {
|
|
1682
1720
|
if (fo) return er;
|
|
1683
1721
|
fo = 1;
|
|
1684
|
-
var s =
|
|
1722
|
+
var s = et(), a = xe(), r = s(a, "Set");
|
|
1685
1723
|
return er = r, er;
|
|
1686
1724
|
}
|
|
1687
1725
|
var tr, ho;
|
|
1688
|
-
function
|
|
1726
|
+
function cf() {
|
|
1689
1727
|
if (ho) return tr;
|
|
1690
1728
|
ho = 1;
|
|
1691
|
-
var s =
|
|
1729
|
+
var s = et(), a = xe(), r = s(a, "WeakMap");
|
|
1692
1730
|
return tr = r, tr;
|
|
1693
1731
|
}
|
|
1694
1732
|
var ir, go;
|
|
1695
1733
|
function na() {
|
|
1696
1734
|
if (go) return ir;
|
|
1697
1735
|
go = 1;
|
|
1698
|
-
var s =
|
|
1736
|
+
var s = of(), a = Yr(), r = uf(), t = lf(), e = cf(), i = li(), n = mu(), o = "[object Map]", u = "[object Object]", l = "[object Promise]", c = "[object Set]", h = "[object WeakMap]", d = "[object DataView]", g = n(s), v = n(a), m = n(r), p = n(t), T = n(e), C = i;
|
|
1699
1737
|
return (s && C(new s(new ArrayBuffer(1))) != d || a && C(new a()) != o || r && C(r.resolve()) != l || t && C(new t()) != c || e && C(new e()) != h) && (C = function(b) {
|
|
1700
1738
|
var x = i(b), E = x == u ? b.constructor : void 0, I = E ? n(E) : "";
|
|
1701
1739
|
if (I)
|
|
@@ -1715,7 +1753,7 @@ function na() {
|
|
|
1715
1753
|
}), ir = C, ir;
|
|
1716
1754
|
}
|
|
1717
1755
|
var nr, vo;
|
|
1718
|
-
function
|
|
1756
|
+
function ff() {
|
|
1719
1757
|
if (vo) return nr;
|
|
1720
1758
|
vo = 1;
|
|
1721
1759
|
var s = Object.prototype, a = s.hasOwnProperty;
|
|
@@ -1726,17 +1764,17 @@ function lf() {
|
|
|
1726
1764
|
return nr = r, nr;
|
|
1727
1765
|
}
|
|
1728
1766
|
var rr, po;
|
|
1729
|
-
function
|
|
1767
|
+
function hf() {
|
|
1730
1768
|
if (po) return rr;
|
|
1731
1769
|
po = 1;
|
|
1732
|
-
var s =
|
|
1770
|
+
var s = xe(), a = s.Uint8Array;
|
|
1733
1771
|
return rr = a, rr;
|
|
1734
1772
|
}
|
|
1735
1773
|
var ar, mo;
|
|
1736
1774
|
function ra() {
|
|
1737
1775
|
if (mo) return ar;
|
|
1738
1776
|
mo = 1;
|
|
1739
|
-
var s =
|
|
1777
|
+
var s = hf();
|
|
1740
1778
|
function a(r) {
|
|
1741
1779
|
var t = new r.constructor(r.byteLength);
|
|
1742
1780
|
return new s(t).set(new s(r)), t;
|
|
@@ -1744,7 +1782,7 @@ function ra() {
|
|
|
1744
1782
|
return ar = a, ar;
|
|
1745
1783
|
}
|
|
1746
1784
|
var sr, yo;
|
|
1747
|
-
function
|
|
1785
|
+
function df() {
|
|
1748
1786
|
if (yo) return sr;
|
|
1749
1787
|
yo = 1;
|
|
1750
1788
|
var s = ra();
|
|
@@ -1755,7 +1793,7 @@ function ff() {
|
|
|
1755
1793
|
return sr = a, sr;
|
|
1756
1794
|
}
|
|
1757
1795
|
var or, _o;
|
|
1758
|
-
function
|
|
1796
|
+
function gf() {
|
|
1759
1797
|
if (_o) return or;
|
|
1760
1798
|
_o = 1;
|
|
1761
1799
|
var s = /\w*$/;
|
|
@@ -1766,7 +1804,7 @@ function hf() {
|
|
|
1766
1804
|
return or = a, or;
|
|
1767
1805
|
}
|
|
1768
1806
|
var ur, bo;
|
|
1769
|
-
function
|
|
1807
|
+
function vf() {
|
|
1770
1808
|
if (bo) return ur;
|
|
1771
1809
|
bo = 1;
|
|
1772
1810
|
var s = $r(), a = s ? s.prototype : void 0, r = a ? a.valueOf : void 0;
|
|
@@ -1776,7 +1814,7 @@ function df() {
|
|
|
1776
1814
|
return ur = t, ur;
|
|
1777
1815
|
}
|
|
1778
1816
|
var lr, Co;
|
|
1779
|
-
function
|
|
1817
|
+
function pf() {
|
|
1780
1818
|
if (Co) return lr;
|
|
1781
1819
|
Co = 1;
|
|
1782
1820
|
var s = ra();
|
|
@@ -1787,10 +1825,10 @@ function gf() {
|
|
|
1787
1825
|
return lr = a, lr;
|
|
1788
1826
|
}
|
|
1789
1827
|
var cr, ko;
|
|
1790
|
-
function
|
|
1828
|
+
function mf() {
|
|
1791
1829
|
if (ko) return cr;
|
|
1792
1830
|
ko = 1;
|
|
1793
|
-
var s = ra(), a =
|
|
1831
|
+
var s = ra(), a = df(), r = gf(), t = vf(), e = pf(), i = "[object Boolean]", n = "[object Date]", o = "[object Map]", u = "[object Number]", l = "[object RegExp]", c = "[object Set]", h = "[object String]", d = "[object Symbol]", g = "[object ArrayBuffer]", v = "[object DataView]", m = "[object Float32Array]", p = "[object Float64Array]", T = "[object Int8Array]", C = "[object Int16Array]", b = "[object Int32Array]", x = "[object Uint8Array]", E = "[object Uint8ClampedArray]", I = "[object Uint16Array]", Y = "[object Uint32Array]";
|
|
1794
1832
|
function G(B, F, D) {
|
|
1795
1833
|
var te = B.constructor;
|
|
1796
1834
|
switch (F) {
|
|
@@ -1809,7 +1847,7 @@ function vf() {
|
|
|
1809
1847
|
case x:
|
|
1810
1848
|
case E:
|
|
1811
1849
|
case I:
|
|
1812
|
-
case
|
|
1850
|
+
case Y:
|
|
1813
1851
|
return e(B, D);
|
|
1814
1852
|
case o:
|
|
1815
1853
|
return new te();
|
|
@@ -1827,7 +1865,7 @@ function vf() {
|
|
|
1827
1865
|
return cr = G, cr;
|
|
1828
1866
|
}
|
|
1829
1867
|
var fr, To;
|
|
1830
|
-
function
|
|
1868
|
+
function yf() {
|
|
1831
1869
|
if (To) return fr;
|
|
1832
1870
|
To = 1;
|
|
1833
1871
|
var s = It(), a = Object.create, r = /* @__PURE__ */ (function() {
|
|
@@ -1846,17 +1884,17 @@ function pf() {
|
|
|
1846
1884
|
return fr = r, fr;
|
|
1847
1885
|
}
|
|
1848
1886
|
var hr, wo;
|
|
1849
|
-
function
|
|
1887
|
+
function _f() {
|
|
1850
1888
|
if (wo) return hr;
|
|
1851
1889
|
wo = 1;
|
|
1852
|
-
var s =
|
|
1890
|
+
var s = yf(), a = xu(), r = Qr();
|
|
1853
1891
|
function t(e) {
|
|
1854
1892
|
return typeof e.constructor == "function" && !r(e) ? s(a(e)) : {};
|
|
1855
1893
|
}
|
|
1856
1894
|
return hr = t, hr;
|
|
1857
1895
|
}
|
|
1858
1896
|
var dr, So;
|
|
1859
|
-
function
|
|
1897
|
+
function bf() {
|
|
1860
1898
|
if (So) return dr;
|
|
1861
1899
|
So = 1;
|
|
1862
1900
|
var s = na(), a = Pt(), r = "[object Map]";
|
|
@@ -1866,14 +1904,14 @@ function yf() {
|
|
|
1866
1904
|
return dr = t, dr;
|
|
1867
1905
|
}
|
|
1868
1906
|
var gr, Eo;
|
|
1869
|
-
function
|
|
1907
|
+
function Cf() {
|
|
1870
1908
|
if (Eo) return gr;
|
|
1871
1909
|
Eo = 1;
|
|
1872
|
-
var s =
|
|
1910
|
+
var s = bf(), a = Zr(), r = Jr(), t = r && r.isMap, e = t ? a(t) : s;
|
|
1873
1911
|
return gr = e, gr;
|
|
1874
1912
|
}
|
|
1875
1913
|
var vr, xo;
|
|
1876
|
-
function
|
|
1914
|
+
function kf() {
|
|
1877
1915
|
if (xo) return vr;
|
|
1878
1916
|
xo = 1;
|
|
1879
1917
|
var s = na(), a = Pt(), r = "[object Set]";
|
|
@@ -1883,21 +1921,21 @@ function bf() {
|
|
|
1883
1921
|
return vr = t, vr;
|
|
1884
1922
|
}
|
|
1885
1923
|
var pr, Io;
|
|
1886
|
-
function
|
|
1924
|
+
function Tf() {
|
|
1887
1925
|
if (Io) return pr;
|
|
1888
1926
|
Io = 1;
|
|
1889
|
-
var s =
|
|
1927
|
+
var s = kf(), a = Zr(), r = Jr(), t = r && r.isSet, e = t ? a(t) : s;
|
|
1890
1928
|
return pr = e, pr;
|
|
1891
1929
|
}
|
|
1892
1930
|
var mr, Po;
|
|
1893
|
-
function
|
|
1931
|
+
function wf() {
|
|
1894
1932
|
if (Po) return mr;
|
|
1895
1933
|
Po = 1;
|
|
1896
|
-
var s =
|
|
1897
|
-
W[B] = W[F] = W[he] = W[me] = W[D] = W[te] = W[ye] = W[
|
|
1898
|
-
function Nt(z,
|
|
1899
|
-
var le, Ht =
|
|
1900
|
-
if (
|
|
1934
|
+
var s = Nc(), a = Bc(), r = _u(), t = Yc(), e = Jc(), i = Qc(), n = ef(), o = nf(), u = rf(), l = af(), c = sf(), h = na(), d = ff(), g = mf(), v = _f(), m = Xr(), p = bu(), T = Cf(), C = It(), b = Tf(), x = ea(), E = ta(), I = 1, Y = 2, G = 4, B = "[object Arguments]", F = "[object Array]", D = "[object Boolean]", te = "[object Date]", fe = "[object Error]", Ie = "[object Function]", Lt = "[object GeneratorFunction]", Dt = "[object Map]", pt = "[object Number]", mt = "[object Object]", Ot = "[object RegExp]", Pe = "[object Set]", O = "[object String]", j = "[object Symbol]", J = "[object WeakMap]", he = "[object ArrayBuffer]", me = "[object DataView]", ye = "[object Float32Array]", Te = "[object Float64Array]", Ke = "[object Int8Array]", Mt = "[object Int16Array]", Ft = "[object Int32Array]", yt = "[object Uint8Array]", hl = "[object Uint8ClampedArray]", dl = "[object Uint16Array]", gl = "[object Uint32Array]", W = {};
|
|
1935
|
+
W[B] = W[F] = W[he] = W[me] = W[D] = W[te] = W[ye] = W[Te] = W[Ke] = W[Mt] = W[Ft] = W[Dt] = W[pt] = W[mt] = W[Ot] = W[Pe] = W[O] = W[j] = W[yt] = W[hl] = W[dl] = W[gl] = !0, W[fe] = W[Ie] = W[J] = !1;
|
|
1936
|
+
function Nt(z, rt, at, vl, Bt, Ne) {
|
|
1937
|
+
var le, Ht = rt & I, Ut = rt & Y, pl = rt & G;
|
|
1938
|
+
if (at && (le = Bt ? at(z, vl, Bt, Ne) : at(z)), le !== void 0)
|
|
1901
1939
|
return le;
|
|
1902
1940
|
if (!C(z))
|
|
1903
1941
|
return z;
|
|
@@ -1906,16 +1944,16 @@ function kf() {
|
|
|
1906
1944
|
if (le = d(z), !Ht)
|
|
1907
1945
|
return n(z, le);
|
|
1908
1946
|
} else {
|
|
1909
|
-
var
|
|
1947
|
+
var st = h(z), ya = st == Ie || st == Lt;
|
|
1910
1948
|
if (p(z))
|
|
1911
1949
|
return i(z, Ht);
|
|
1912
|
-
if (
|
|
1950
|
+
if (st == mt || st == B || ya && !Bt) {
|
|
1913
1951
|
if (le = Ut || ya ? {} : v(z), !Ht)
|
|
1914
1952
|
return Ut ? u(z, e(le, z)) : o(z, t(le, z));
|
|
1915
1953
|
} else {
|
|
1916
|
-
if (!W[
|
|
1954
|
+
if (!W[st])
|
|
1917
1955
|
return Bt ? z : {};
|
|
1918
|
-
le = g(z,
|
|
1956
|
+
le = g(z, st, Ht);
|
|
1919
1957
|
}
|
|
1920
1958
|
}
|
|
1921
1959
|
Ne || (Ne = new s());
|
|
@@ -1923,28 +1961,28 @@ function kf() {
|
|
|
1923
1961
|
if (_a)
|
|
1924
1962
|
return _a;
|
|
1925
1963
|
Ne.set(z, le), b(z) ? z.forEach(function(Be) {
|
|
1926
|
-
le.add(Nt(Be,
|
|
1964
|
+
le.add(Nt(Be, rt, at, Be, z, Ne));
|
|
1927
1965
|
}) : T(z) && z.forEach(function(Be, $e) {
|
|
1928
|
-
le.set($e, Nt(Be,
|
|
1966
|
+
le.set($e, Nt(Be, rt, at, $e, z, Ne));
|
|
1929
1967
|
});
|
|
1930
1968
|
var ml = pl ? Ut ? c : l : Ut ? E : x, ba = ma ? void 0 : ml(z);
|
|
1931
1969
|
return a(ba || z, function(Be, $e) {
|
|
1932
|
-
ba && ($e = Be, Be = z[$e]), r(le, $e, Nt(Be,
|
|
1970
|
+
ba && ($e = Be, Be = z[$e]), r(le, $e, Nt(Be, rt, at, $e, z, Ne));
|
|
1933
1971
|
}), le;
|
|
1934
1972
|
}
|
|
1935
1973
|
return mr = Nt, mr;
|
|
1936
1974
|
}
|
|
1937
1975
|
var yr, Ao;
|
|
1938
|
-
function
|
|
1976
|
+
function Sf() {
|
|
1939
1977
|
if (Ao) return yr;
|
|
1940
1978
|
Ao = 1;
|
|
1941
|
-
var s =
|
|
1979
|
+
var s = wf(), a = 1, r = 4;
|
|
1942
1980
|
function t(e) {
|
|
1943
1981
|
return s(e, a | r);
|
|
1944
1982
|
}
|
|
1945
1983
|
return yr = t, yr;
|
|
1946
1984
|
}
|
|
1947
|
-
var
|
|
1985
|
+
var Ef = Sf(), xf = /* @__PURE__ */ oc(Ef), aa = Ee({
|
|
1948
1986
|
name: "DocumentEditor",
|
|
1949
1987
|
props: {
|
|
1950
1988
|
id: {
|
|
@@ -2004,7 +2042,7 @@ var wf = Tf(), Sf = /* @__PURE__ */ ac(wf), aa = Oe({
|
|
|
2004
2042
|
var s = this, a, r = this.documentServerUrl;
|
|
2005
2043
|
r.endsWith("/") || (r += "/");
|
|
2006
2044
|
var t = "".concat(r, "web-apps/apps/api/documents/api.js");
|
|
2007
|
-
this.shardkey && (typeof this.shardkey == "boolean" ? t += "?shardkey=".concat((a = this.config.document) === null || a === void 0 ? void 0 : a.key) : t += "?shardkey=".concat(this.shardkey)),
|
|
2045
|
+
this.shardkey && (typeof this.shardkey == "boolean" ? t += "?shardkey=".concat((a = this.config.document) === null || a === void 0 ? void 0 : a.key) : t += "?shardkey=".concat(this.shardkey)), sc(t, "onlyoffice-api-script").then(function() {
|
|
2008
2046
|
return s.onLoad();
|
|
2009
2047
|
}).catch(function() {
|
|
2010
2048
|
s.onError(-2);
|
|
@@ -2053,7 +2091,7 @@ var wf = Tf(), Sf = /* @__PURE__ */ ac(wf), aa = Oe({
|
|
|
2053
2091
|
return;
|
|
2054
2092
|
}
|
|
2055
2093
|
!((a = window == null ? void 0 : window.DocEditor) === null || a === void 0) && a.instances || (window.DocEditor = { instances: {} });
|
|
2056
|
-
var t =
|
|
2094
|
+
var t = xf(this.config), e = {
|
|
2057
2095
|
documentType: this.documentType,
|
|
2058
2096
|
events: {
|
|
2059
2097
|
onAppReady: this.onAppReady,
|
|
@@ -2122,13 +2160,13 @@ var wf = Tf(), Sf = /* @__PURE__ */ ac(wf), aa = Oe({
|
|
|
2122
2160
|
}
|
|
2123
2161
|
}
|
|
2124
2162
|
});
|
|
2125
|
-
const
|
|
2126
|
-
function
|
|
2127
|
-
return
|
|
2163
|
+
const If = ["id"];
|
|
2164
|
+
function Pf(s, a, r, t, e, i) {
|
|
2165
|
+
return K(), oe("div", { id: s.id }, null, 8, If);
|
|
2128
2166
|
}
|
|
2129
|
-
aa.render =
|
|
2167
|
+
aa.render = Pf;
|
|
2130
2168
|
aa.__file = "src/components/DocumentEditor.vue";
|
|
2131
|
-
const
|
|
2169
|
+
const Af = /* @__PURE__ */ Ee({
|
|
2132
2170
|
__name: "IkOnlyOffice",
|
|
2133
2171
|
props: {
|
|
2134
2172
|
// 文件服务器的服务的地址
|
|
@@ -2157,13 +2195,13 @@ const If = /* @__PURE__ */ Oe({
|
|
|
2157
2195
|
}), t = () => {
|
|
2158
2196
|
console.info("文档加载完成", r.value);
|
|
2159
2197
|
};
|
|
2160
|
-
return (e, i) => (
|
|
2198
|
+
return (e, i) => (K(), oe(
|
|
2161
2199
|
"div",
|
|
2162
2200
|
{
|
|
2163
|
-
style:
|
|
2201
|
+
style: Le({ height: a.officeHeight })
|
|
2164
2202
|
},
|
|
2165
2203
|
[
|
|
2166
|
-
|
|
2204
|
+
X(P(aa), {
|
|
2167
2205
|
id: `${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
2168
2206
|
ref: "editorRef",
|
|
2169
2207
|
"document-server-url": s.documentServerUrl,
|
|
@@ -2175,7 +2213,7 @@ const If = /* @__PURE__ */ Oe({
|
|
|
2175
2213
|
/* STYLE */
|
|
2176
2214
|
));
|
|
2177
2215
|
}
|
|
2178
|
-
}),
|
|
2216
|
+
}), Rf = Qe(Af), Lf = {
|
|
2179
2217
|
/**
|
|
2180
2218
|
* @description preview link list.
|
|
2181
2219
|
*/
|
|
@@ -2245,15 +2283,15 @@ const If = /* @__PURE__ */ Oe({
|
|
|
2245
2283
|
crossorigin: {
|
|
2246
2284
|
type: ["anonymous", "use-credentials", ""]
|
|
2247
2285
|
}
|
|
2248
|
-
},
|
|
2286
|
+
}, Df = {
|
|
2249
2287
|
close: () => !0,
|
|
2250
2288
|
switch: (s) => Ta.isNumber(s),
|
|
2251
2289
|
rotate: (s) => Ta.isNumber(s)
|
|
2252
|
-
},
|
|
2290
|
+
}, Of = ["src", "crossorigin"], Mf = /* @__PURE__ */ Ee({
|
|
2253
2291
|
name: "ElImageViewer",
|
|
2254
2292
|
__name: "IkImageViewer",
|
|
2255
|
-
props:
|
|
2256
|
-
emits:
|
|
2293
|
+
props: Lf,
|
|
2294
|
+
emits: Df,
|
|
2257
2295
|
setup(s, { expose: a, emit: r }) {
|
|
2258
2296
|
const t = (O) => Object.keys(O), e = {
|
|
2259
2297
|
CONTAIN: {
|
|
@@ -2277,17 +2315,17 @@ const If = /* @__PURE__ */ Oe({
|
|
|
2277
2315
|
u.e("btn"),
|
|
2278
2316
|
u.e("prev"),
|
|
2279
2317
|
u.is("disabled", !i.infinite && b.value)
|
|
2280
|
-
]),
|
|
2318
|
+
]), Y = ee(() => [
|
|
2281
2319
|
u.e("btn"),
|
|
2282
2320
|
u.e("next"),
|
|
2283
2321
|
u.is("disabled", !i.infinite && x.value)
|
|
2284
2322
|
]), G = ee(() => {
|
|
2285
2323
|
const { scale: O, deg: j, offsetX: J, offsetY: he, enableTransition: me } = p.value;
|
|
2286
|
-
let ye = J / O,
|
|
2324
|
+
let ye = J / O, Te = he / O;
|
|
2287
2325
|
const Ke = j * Math.PI / 180, Mt = Math.cos(Ke), Ft = Math.sin(Ke);
|
|
2288
|
-
ye = ye * Mt +
|
|
2326
|
+
ye = ye * Mt + Te * Ft, Te = Te * Mt - J / O * Ft;
|
|
2289
2327
|
const yt = {
|
|
2290
|
-
transform: `scale(${O}) rotate(${j}deg) translate(${ye}px, ${
|
|
2328
|
+
transform: `scale(${O}) rotate(${j}deg) translate(${ye}px, ${Te}px)`,
|
|
2291
2329
|
transition: me ? "transform .3s" : ""
|
|
2292
2330
|
};
|
|
2293
2331
|
return m.value.name === e.CONTAIN.name && (yt.maxWidth = yt.maxHeight = "100%"), yt;
|
|
@@ -2299,33 +2337,33 @@ const If = /* @__PURE__ */ Oe({
|
|
|
2299
2337
|
const O = _i.throttle((J) => {
|
|
2300
2338
|
switch (J.code) {
|
|
2301
2339
|
// ESC
|
|
2302
|
-
case
|
|
2340
|
+
case ot.esc:
|
|
2303
2341
|
i.closeOnPressEscape && B();
|
|
2304
2342
|
break;
|
|
2305
2343
|
// SPACE
|
|
2306
|
-
case
|
|
2344
|
+
case ot.space:
|
|
2307
2345
|
Dt();
|
|
2308
2346
|
break;
|
|
2309
2347
|
// LEFT_ARROW
|
|
2310
|
-
case
|
|
2348
|
+
case ot.left:
|
|
2311
2349
|
mt();
|
|
2312
2350
|
break;
|
|
2313
2351
|
// UP_ARROW
|
|
2314
|
-
case
|
|
2315
|
-
|
|
2352
|
+
case ot.up:
|
|
2353
|
+
Pe("zoomIn");
|
|
2316
2354
|
break;
|
|
2317
2355
|
// RIGHT_ARROW
|
|
2318
|
-
case
|
|
2356
|
+
case ot.right:
|
|
2319
2357
|
Ot();
|
|
2320
2358
|
break;
|
|
2321
2359
|
// DOWN_ARROW
|
|
2322
|
-
case
|
|
2323
|
-
|
|
2360
|
+
case ot.down:
|
|
2361
|
+
Pe("zoomOut");
|
|
2324
2362
|
break;
|
|
2325
2363
|
}
|
|
2326
2364
|
}), j = _i.throttle((J) => {
|
|
2327
2365
|
const he = J.deltaY || J.deltaX;
|
|
2328
|
-
|
|
2366
|
+
Pe(he < 0 ? "zoomIn" : "zoomOut", {
|
|
2329
2367
|
zoomRate: i.zoomRate,
|
|
2330
2368
|
enableTransition: !1
|
|
2331
2369
|
});
|
|
@@ -2343,7 +2381,7 @@ const If = /* @__PURE__ */ Oe({
|
|
|
2343
2381
|
function fe(O) {
|
|
2344
2382
|
g.value = !1, O.target.alt = o("el.image.error");
|
|
2345
2383
|
}
|
|
2346
|
-
function
|
|
2384
|
+
function Ie(O) {
|
|
2347
2385
|
if (g.value || O.button !== 0 || !c.value) return;
|
|
2348
2386
|
p.value.enableTransition = !1;
|
|
2349
2387
|
const { offsetX: j, offsetY: J } = p.value, he = O.pageX, me = O.pageY, ye = _i.throttle((Ke) => {
|
|
@@ -2352,9 +2390,9 @@ const If = /* @__PURE__ */ Oe({
|
|
|
2352
2390
|
offsetX: j + Ke.pageX - he,
|
|
2353
2391
|
offsetY: J + Ke.pageY - me
|
|
2354
2392
|
};
|
|
2355
|
-
}),
|
|
2393
|
+
}), Te = jt(document, "mousemove", ye);
|
|
2356
2394
|
jt(document, "mouseup", () => {
|
|
2357
|
-
|
|
2395
|
+
Te();
|
|
2358
2396
|
}), O.preventDefault();
|
|
2359
2397
|
}
|
|
2360
2398
|
function Lt() {
|
|
@@ -2381,9 +2419,9 @@ const If = /* @__PURE__ */ Oe({
|
|
|
2381
2419
|
function Ot() {
|
|
2382
2420
|
x.value && !i.infinite || pt(v.value + 1);
|
|
2383
2421
|
}
|
|
2384
|
-
function
|
|
2422
|
+
function Pe(O, j = {}) {
|
|
2385
2423
|
if (g.value) return;
|
|
2386
|
-
const { minScale: J, maxScale: he } = i, { zoomRate: me, rotateDeg: ye, enableTransition:
|
|
2424
|
+
const { minScale: J, maxScale: he } = i, { zoomRate: me, rotateDeg: ye, enableTransition: Te } = {
|
|
2387
2425
|
zoomRate: i.zoomRate,
|
|
2388
2426
|
rotateDeg: 90,
|
|
2389
2427
|
enableTransition: !0,
|
|
@@ -2407,7 +2445,7 @@ const If = /* @__PURE__ */ Oe({
|
|
|
2407
2445
|
p.value.deg -= ye, n("rotate", p.value.deg);
|
|
2408
2446
|
break;
|
|
2409
2447
|
}
|
|
2410
|
-
p.value.enableTransition =
|
|
2448
|
+
p.value.enableTransition = Te;
|
|
2411
2449
|
}
|
|
2412
2450
|
return Yt(E, () => {
|
|
2413
2451
|
Wr(() => {
|
|
@@ -2424,8 +2462,8 @@ const If = /* @__PURE__ */ Oe({
|
|
|
2424
2462
|
* @description manually switch image
|
|
2425
2463
|
*/
|
|
2426
2464
|
setActiveItem: pt
|
|
2427
|
-
}), (O, j) => (
|
|
2428
|
-
|
|
2465
|
+
}), (O, j) => (K(), Ce(ou, { to: "body" }, [
|
|
2466
|
+
X(uu, {
|
|
2429
2467
|
name: "viewer-fade",
|
|
2430
2468
|
appear: ""
|
|
2431
2469
|
}, {
|
|
@@ -2437,7 +2475,7 @@ const If = /* @__PURE__ */ Oe({
|
|
|
2437
2475
|
ref: c,
|
|
2438
2476
|
tabindex: -1,
|
|
2439
2477
|
class: ie(P(u).e("wrapper")),
|
|
2440
|
-
style:
|
|
2478
|
+
style: Le({ zIndex: T.value })
|
|
2441
2479
|
},
|
|
2442
2480
|
[
|
|
2443
2481
|
q(
|
|
@@ -2458,9 +2496,9 @@ const If = /* @__PURE__ */ Oe({
|
|
|
2458
2496
|
onClick: B
|
|
2459
2497
|
},
|
|
2460
2498
|
[
|
|
2461
|
-
|
|
2499
|
+
X(P(He), null, {
|
|
2462
2500
|
default: Q(() => [
|
|
2463
|
-
|
|
2501
|
+
X(P(fu))
|
|
2464
2502
|
]),
|
|
2465
2503
|
_: 1
|
|
2466
2504
|
/* STABLE */
|
|
@@ -2470,7 +2508,7 @@ const If = /* @__PURE__ */ Oe({
|
|
|
2470
2508
|
/* CLASS */
|
|
2471
2509
|
),
|
|
2472
2510
|
ue(" ARROW "),
|
|
2473
|
-
C.value ? ue("v-if", !0) : (
|
|
2511
|
+
C.value ? ue("v-if", !0) : (K(), oe(
|
|
2474
2512
|
Kt,
|
|
2475
2513
|
{ key: 0 },
|
|
2476
2514
|
[
|
|
@@ -2481,9 +2519,9 @@ const If = /* @__PURE__ */ Oe({
|
|
|
2481
2519
|
onClick: mt
|
|
2482
2520
|
},
|
|
2483
2521
|
[
|
|
2484
|
-
|
|
2522
|
+
X(P(He), null, {
|
|
2485
2523
|
default: Q(() => [
|
|
2486
|
-
|
|
2524
|
+
X(P(Ol))
|
|
2487
2525
|
]),
|
|
2488
2526
|
_: 1
|
|
2489
2527
|
/* STABLE */
|
|
@@ -2495,13 +2533,13 @@ const If = /* @__PURE__ */ Oe({
|
|
|
2495
2533
|
q(
|
|
2496
2534
|
"span",
|
|
2497
2535
|
{
|
|
2498
|
-
class: ie(
|
|
2536
|
+
class: ie(Y.value),
|
|
2499
2537
|
onClick: Ot
|
|
2500
2538
|
},
|
|
2501
2539
|
[
|
|
2502
|
-
|
|
2540
|
+
X(P(He), null, {
|
|
2503
2541
|
default: Q(() => [
|
|
2504
|
-
|
|
2542
|
+
X(P(Ml))
|
|
2505
2543
|
]),
|
|
2506
2544
|
_: 1
|
|
2507
2545
|
/* STABLE */
|
|
@@ -2527,20 +2565,20 @@ const If = /* @__PURE__ */ Oe({
|
|
|
2527
2565
|
class: ie(P(u).e("actions__inner"))
|
|
2528
2566
|
},
|
|
2529
2567
|
[
|
|
2530
|
-
|
|
2531
|
-
onClick: j[1] || (j[1] = (J) =>
|
|
2568
|
+
X(P(He), {
|
|
2569
|
+
onClick: j[1] || (j[1] = (J) => Pe("zoomOut"))
|
|
2532
2570
|
}, {
|
|
2533
2571
|
default: Q(() => [
|
|
2534
|
-
|
|
2572
|
+
X(P(Fl))
|
|
2535
2573
|
]),
|
|
2536
2574
|
_: 1
|
|
2537
2575
|
/* STABLE */
|
|
2538
2576
|
}),
|
|
2539
|
-
|
|
2540
|
-
onClick: j[2] || (j[2] = (J) =>
|
|
2577
|
+
X(P(He), {
|
|
2578
|
+
onClick: j[2] || (j[2] = (J) => Pe("zoomIn"))
|
|
2541
2579
|
}, {
|
|
2542
2580
|
default: Q(() => [
|
|
2543
|
-
|
|
2581
|
+
X(P(Nl))
|
|
2544
2582
|
]),
|
|
2545
2583
|
_: 1
|
|
2546
2584
|
/* STABLE */
|
|
@@ -2554,9 +2592,9 @@ const If = /* @__PURE__ */ Oe({
|
|
|
2554
2592
|
2
|
|
2555
2593
|
/* CLASS */
|
|
2556
2594
|
),
|
|
2557
|
-
|
|
2595
|
+
X(P(He), { onClick: Dt }, {
|
|
2558
2596
|
default: Q(() => [
|
|
2559
|
-
(
|
|
2597
|
+
(K(), Ce(Sl(m.value.icon)))
|
|
2560
2598
|
]),
|
|
2561
2599
|
_: 1
|
|
2562
2600
|
/* STABLE */
|
|
@@ -2570,20 +2608,20 @@ const If = /* @__PURE__ */ Oe({
|
|
|
2570
2608
|
2
|
|
2571
2609
|
/* CLASS */
|
|
2572
2610
|
),
|
|
2573
|
-
|
|
2574
|
-
onClick: j[3] || (j[3] = (J) =>
|
|
2611
|
+
X(P(He), {
|
|
2612
|
+
onClick: j[3] || (j[3] = (J) => Pe("anticlockwise"))
|
|
2575
2613
|
}, {
|
|
2576
2614
|
default: Q(() => [
|
|
2577
|
-
|
|
2615
|
+
X(P(Bl))
|
|
2578
2616
|
]),
|
|
2579
2617
|
_: 1
|
|
2580
2618
|
/* STABLE */
|
|
2581
2619
|
}),
|
|
2582
|
-
|
|
2583
|
-
onClick: j[4] || (j[4] = (J) =>
|
|
2620
|
+
X(P(He), {
|
|
2621
|
+
onClick: j[4] || (j[4] = (J) => Pe("clockwise"))
|
|
2584
2622
|
}, {
|
|
2585
2623
|
default: Q(() => [
|
|
2586
|
-
|
|
2624
|
+
X(P(Hl))
|
|
2587
2625
|
]),
|
|
2588
2626
|
_: 1
|
|
2589
2627
|
/* STABLE */
|
|
@@ -2603,21 +2641,21 @@ const If = /* @__PURE__ */ Oe({
|
|
|
2603
2641
|
class: ie(P(u).e("canvas"))
|
|
2604
2642
|
},
|
|
2605
2643
|
[
|
|
2606
|
-
(
|
|
2644
|
+
(K(!0), oe(
|
|
2607
2645
|
Kt,
|
|
2608
2646
|
null,
|
|
2609
|
-
El(O.urlList, (J, he) => xl((
|
|
2647
|
+
El(O.urlList, (J, he) => xl((K(), oe("img", {
|
|
2610
2648
|
ref_for: !0,
|
|
2611
2649
|
ref: (me) => h.value[he] = me,
|
|
2612
2650
|
key: J,
|
|
2613
2651
|
src: J,
|
|
2614
|
-
style:
|
|
2652
|
+
style: Le(G.value),
|
|
2615
2653
|
class: ie(P(u).e("img")),
|
|
2616
2654
|
crossorigin: O.crossorigin,
|
|
2617
2655
|
onLoad: te,
|
|
2618
2656
|
onError: fe,
|
|
2619
|
-
onMousedown:
|
|
2620
|
-
}, null, 46,
|
|
2657
|
+
onMousedown: Ie
|
|
2658
|
+
}, null, 46, Of)), [
|
|
2621
2659
|
[Il, he === v.value]
|
|
2622
2660
|
])),
|
|
2623
2661
|
128
|
|
@@ -2627,7 +2665,7 @@ const If = /* @__PURE__ */ Oe({
|
|
|
2627
2665
|
2
|
|
2628
2666
|
/* CLASS */
|
|
2629
2667
|
),
|
|
2630
|
-
|
|
2668
|
+
Ze(O.$slots, "default")
|
|
2631
2669
|
],
|
|
2632
2670
|
6
|
|
2633
2671
|
/* CLASS, STYLE */
|
|
@@ -2638,8 +2676,8 @@ const If = /* @__PURE__ */ Oe({
|
|
|
2638
2676
|
})
|
|
2639
2677
|
]));
|
|
2640
2678
|
}
|
|
2641
|
-
}),
|
|
2642
|
-
function
|
|
2679
|
+
}), Ff = Qe(Mf);
|
|
2680
|
+
function Nf(s, a) {
|
|
2643
2681
|
var r = s == null ? null : typeof Symbol < "u" && s[Symbol.iterator] || s["@@iterator"];
|
|
2644
2682
|
if (r != null) {
|
|
2645
2683
|
var t, e, i, n, o = [], u = !0, l = !1;
|
|
@@ -2735,7 +2773,7 @@ function Nr(s, a) {
|
|
|
2735
2773
|
return t.__proto__ = e, t;
|
|
2736
2774
|
}, Nr(s, a);
|
|
2737
2775
|
}
|
|
2738
|
-
function
|
|
2776
|
+
function Bf() {
|
|
2739
2777
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
2740
2778
|
return !1;
|
|
2741
2779
|
if (typeof Proxy == "function")
|
|
@@ -2760,7 +2798,7 @@ function sa(s, a) {
|
|
|
2760
2798
|
return y(s);
|
|
2761
2799
|
}
|
|
2762
2800
|
function R(s) {
|
|
2763
|
-
var a =
|
|
2801
|
+
var a = Bf();
|
|
2764
2802
|
return function() {
|
|
2765
2803
|
var t = L(s), e;
|
|
2766
2804
|
if (a) {
|
|
@@ -2771,35 +2809,35 @@ function R(s) {
|
|
|
2771
2809
|
return sa(this, e);
|
|
2772
2810
|
};
|
|
2773
2811
|
}
|
|
2774
|
-
function
|
|
2812
|
+
function Hf(s, a) {
|
|
2775
2813
|
for (; !Object.prototype.hasOwnProperty.call(s, a) && (s = L(s), s !== null); )
|
|
2776
2814
|
;
|
|
2777
2815
|
return s;
|
|
2778
2816
|
}
|
|
2779
2817
|
function M() {
|
|
2780
2818
|
return typeof Reflect < "u" && Reflect.get ? M = Reflect.get.bind() : M = function(a, r, t) {
|
|
2781
|
-
var e =
|
|
2819
|
+
var e = Hf(a, r);
|
|
2782
2820
|
if (e) {
|
|
2783
2821
|
var i = Object.getOwnPropertyDescriptor(e, r);
|
|
2784
2822
|
return i.get ? i.get.call(arguments.length < 3 ? a : t) : i.value;
|
|
2785
2823
|
}
|
|
2786
2824
|
}, M.apply(this, arguments);
|
|
2787
2825
|
}
|
|
2788
|
-
function
|
|
2789
|
-
return
|
|
2826
|
+
function Uf(s, a) {
|
|
2827
|
+
return qf(s) || Nf(s, a) || Au(s, a) || Gf();
|
|
2790
2828
|
}
|
|
2791
|
-
function
|
|
2792
|
-
return
|
|
2829
|
+
function ke(s) {
|
|
2830
|
+
return jf(s) || Vf(s) || Au(s) || zf();
|
|
2793
2831
|
}
|
|
2794
|
-
function
|
|
2832
|
+
function jf(s) {
|
|
2795
2833
|
if (Array.isArray(s))
|
|
2796
2834
|
return Br(s);
|
|
2797
2835
|
}
|
|
2798
|
-
function
|
|
2836
|
+
function qf(s) {
|
|
2799
2837
|
if (Array.isArray(s))
|
|
2800
2838
|
return s;
|
|
2801
2839
|
}
|
|
2802
|
-
function
|
|
2840
|
+
function Vf(s) {
|
|
2803
2841
|
if (typeof Symbol < "u" && s[Symbol.iterator] != null || s["@@iterator"] != null)
|
|
2804
2842
|
return Array.from(s);
|
|
2805
2843
|
}
|
|
@@ -2820,15 +2858,15 @@ function Br(s, a) {
|
|
|
2820
2858
|
t[r] = s[r];
|
|
2821
2859
|
return t;
|
|
2822
2860
|
}
|
|
2823
|
-
function
|
|
2861
|
+
function zf() {
|
|
2824
2862
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2825
2863
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2826
2864
|
}
|
|
2827
|
-
function
|
|
2865
|
+
function Gf() {
|
|
2828
2866
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2829
2867
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
2830
2868
|
}
|
|
2831
|
-
function
|
|
2869
|
+
function Wf(s, a) {
|
|
2832
2870
|
if (typeof s != "object" || s === null)
|
|
2833
2871
|
return s;
|
|
2834
2872
|
var r = s[Symbol.toPrimitive];
|
|
@@ -2841,11 +2879,11 @@ function zf(s, a) {
|
|
|
2841
2879
|
return (a === "string" ? String : Number)(s);
|
|
2842
2880
|
}
|
|
2843
2881
|
function Ru(s) {
|
|
2844
|
-
var a =
|
|
2882
|
+
var a = Wf(s, "string");
|
|
2845
2883
|
return typeof a == "symbol" ? a : String(a);
|
|
2846
2884
|
}
|
|
2847
2885
|
var _r = { exports: {} }, Do;
|
|
2848
|
-
function
|
|
2886
|
+
function Kf() {
|
|
2849
2887
|
return Do || (Do = 1, (function(s) {
|
|
2850
2888
|
var a = Object.prototype.hasOwnProperty, r = "~";
|
|
2851
2889
|
function t() {
|
|
@@ -2951,15 +2989,15 @@ function Gf() {
|
|
|
2951
2989
|
}, o.prototype.off = o.prototype.removeListener, o.prototype.addListener = o.prototype.on, o.prefixed = r, o.EventEmitter = o, s.exports = o;
|
|
2952
2990
|
})(_r)), _r.exports;
|
|
2953
2991
|
}
|
|
2954
|
-
var Lu =
|
|
2992
|
+
var Lu = Kf();
|
|
2955
2993
|
const Du = /* @__PURE__ */ du(Lu);
|
|
2956
|
-
var
|
|
2994
|
+
var $f = typeof window < "u" && window.location && window.location.href.indexOf("xgplayerdebugger=1") > -1, br = {
|
|
2957
2995
|
info: "color: #525252; background-color: #90ee90;",
|
|
2958
2996
|
error: "color: #525252; background-color: red;",
|
|
2959
2997
|
warn: "color: #525252; background-color: yellow; "
|
|
2960
2998
|
}, Cr = "%c[xgplayer]", H = {
|
|
2961
2999
|
config: {
|
|
2962
|
-
debug:
|
|
3000
|
+
debug: $f ? 3 : 0
|
|
2963
3001
|
},
|
|
2964
3002
|
logInfo: function(a) {
|
|
2965
3003
|
for (var r, t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
@@ -2980,10 +3018,10 @@ var Wf = typeof window < "u" && window.location && window.location.href.indexOf(
|
|
|
2980
3018
|
}
|
|
2981
3019
|
}
|
|
2982
3020
|
};
|
|
2983
|
-
function
|
|
3021
|
+
function Yf(s) {
|
|
2984
3022
|
s.logInfo = H.logInfo.bind(s), s.logWarn = H.logWarn.bind(s), s.logError = H.logError.bind(s);
|
|
2985
3023
|
}
|
|
2986
|
-
var
|
|
3024
|
+
var Xf = /* @__PURE__ */ (function() {
|
|
2987
3025
|
function s(a) {
|
|
2988
3026
|
w(this, s), this.bufferedList = a;
|
|
2989
3027
|
}
|
|
@@ -3118,7 +3156,7 @@ f.deepMerge = function(s, a) {
|
|
|
3118
3156
|
if (f.typeOf(a[r]) === "Array" && f.typeOf(s[r]) === "Array") {
|
|
3119
3157
|
if (f.typeOf(s[r]) === "Array") {
|
|
3120
3158
|
var t;
|
|
3121
|
-
(t = s[r]).push.apply(t,
|
|
3159
|
+
(t = s[r]).push.apply(t, ke(a[r]));
|
|
3122
3160
|
}
|
|
3123
3161
|
} else f.typeOf(s[r]) === f.typeOf(a[r]) && s[r] !== null && f.typeOf(s[r]) === "Object" && !(a[r] instanceof window.Node) ? f.deepMerge(s[r], a[r]) : a[r] !== null && (s[r] = a[r]);
|
|
3124
3162
|
}), s;
|
|
@@ -3228,7 +3266,7 @@ f.setStyleFromCsstext = function(s, a) {
|
|
|
3228
3266
|
s.style[t] = a[t];
|
|
3229
3267
|
});
|
|
3230
3268
|
};
|
|
3231
|
-
function
|
|
3269
|
+
function Zf(s, a) {
|
|
3232
3270
|
for (var r = 0, t = a.length; r < t; r++)
|
|
3233
3271
|
if (s.indexOf(a[r]) > -1)
|
|
3234
3272
|
return !0;
|
|
@@ -3242,7 +3280,7 @@ f.filterStyleFromText = function(s) {
|
|
|
3242
3280
|
return t.map(function(n) {
|
|
3243
3281
|
if (n) {
|
|
3244
3282
|
var o = n.split(":");
|
|
3245
|
-
o.length > 1 && (
|
|
3283
|
+
o.length > 1 && (Zf(o[0], a) ? e[o[0]] = o[1] : i[o[0]] = o[1]);
|
|
3246
3284
|
}
|
|
3247
3285
|
}), s.setAttribute("style", ""), Object.keys(i).map(function(n) {
|
|
3248
3286
|
s.style[n] = i[n];
|
|
@@ -3307,7 +3345,7 @@ f.getBuffered2 = function(s) {
|
|
|
3307
3345
|
}
|
|
3308
3346
|
else
|
|
3309
3347
|
e = r;
|
|
3310
|
-
return new
|
|
3348
|
+
return new Xf(e);
|
|
3311
3349
|
};
|
|
3312
3350
|
f.getEventPos = function(s) {
|
|
3313
3351
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
@@ -3431,7 +3469,7 @@ function Ou(s) {
|
|
|
3431
3469
|
var a = ae(s);
|
|
3432
3470
|
return s !== null && (a === "object" || a === "function");
|
|
3433
3471
|
}
|
|
3434
|
-
function
|
|
3472
|
+
function Jf(s, a, r) {
|
|
3435
3473
|
var t, e, i, n, o, u, l = 0, c = !1, h = !1, d = !0, g = !a && a !== 0 && typeof window.requestAnimationFrame == "function";
|
|
3436
3474
|
if (typeof s != "function")
|
|
3437
3475
|
throw new TypeError("Expected a function");
|
|
@@ -3471,15 +3509,15 @@ function Xf(s, a, r) {
|
|
|
3471
3509
|
function I() {
|
|
3472
3510
|
o !== void 0 && p(o), l = 0, t = u = e = o = void 0;
|
|
3473
3511
|
}
|
|
3474
|
-
function
|
|
3512
|
+
function Y() {
|
|
3475
3513
|
return o === void 0 ? n : E(Date.now());
|
|
3476
3514
|
}
|
|
3477
3515
|
function G() {
|
|
3478
3516
|
return o !== void 0;
|
|
3479
3517
|
}
|
|
3480
3518
|
function B() {
|
|
3481
|
-
for (var F = Date.now(), D = b(F), te = arguments.length, fe = new Array(te),
|
|
3482
|
-
fe[
|
|
3519
|
+
for (var F = Date.now(), D = b(F), te = arguments.length, fe = new Array(te), Ie = 0; Ie < te; Ie++)
|
|
3520
|
+
fe[Ie] = arguments[Ie];
|
|
3483
3521
|
if (t = fe, e = this, u = F, D) {
|
|
3484
3522
|
if (o === void 0)
|
|
3485
3523
|
return T(u);
|
|
@@ -3488,23 +3526,23 @@ function Xf(s, a, r) {
|
|
|
3488
3526
|
}
|
|
3489
3527
|
return o === void 0 && (o = m(x, a)), n;
|
|
3490
3528
|
}
|
|
3491
|
-
return B.cancel = I, B.flush =
|
|
3529
|
+
return B.cancel = I, B.flush = Y, B.pending = G, B;
|
|
3492
3530
|
}
|
|
3493
|
-
function
|
|
3531
|
+
function Qf(s, a, r) {
|
|
3494
3532
|
var t = !0, e = !0;
|
|
3495
3533
|
if (typeof s != "function")
|
|
3496
3534
|
throw new TypeError("Expected a function");
|
|
3497
|
-
return Ou(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e),
|
|
3535
|
+
return Ou(r) && (t = "leading" in r ? !!r.leading : t, e = "trailing" in r ? !!r.trailing : e), Jf(s, a, {
|
|
3498
3536
|
leading: t,
|
|
3499
3537
|
trailing: e,
|
|
3500
3538
|
maxWait: a
|
|
3501
3539
|
});
|
|
3502
3540
|
}
|
|
3503
|
-
function
|
|
3541
|
+
function eh() {
|
|
3504
3542
|
var s = (document.documentElement.getAttribute("lang") || navigator.language || "zh-cn").toLocaleLowerCase();
|
|
3505
3543
|
return s === "zh-cn" && (s = "zh"), s;
|
|
3506
3544
|
}
|
|
3507
|
-
function
|
|
3545
|
+
function th(s, a, r) {
|
|
3508
3546
|
if (s) {
|
|
3509
3547
|
var t = s.getAttribute(r);
|
|
3510
3548
|
return !!(t && t === a && (s.tagName === "VIDEO" || s.tagName === "AUDIO"));
|
|
@@ -3514,7 +3552,7 @@ var kr = {
|
|
|
3514
3552
|
android: /(Android)\s([\d.]+)/,
|
|
3515
3553
|
harmony: /(OpenHarmony|HarmonyOS)\s([\d.]+)/,
|
|
3516
3554
|
ios: /(Version)\/([\d.]+)/
|
|
3517
|
-
},
|
|
3555
|
+
}, ih = ["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", "mp4v.20.8, mp4a.40.2", "mp4v.20.240, mp4a.40.2"], N = {
|
|
3518
3556
|
get device() {
|
|
3519
3557
|
var s = N.os;
|
|
3520
3558
|
return s.isPc ? "pc" : "mobile";
|
|
@@ -3580,7 +3618,7 @@ var kr = {
|
|
|
3580
3618
|
if (this.supportResult)
|
|
3581
3619
|
return this.supportResult;
|
|
3582
3620
|
var r = document.createElement("video");
|
|
3583
|
-
return typeof r.canPlayType == "function" &&
|
|
3621
|
+
return typeof r.canPlayType == "function" && ih.map(function(t) {
|
|
3584
3622
|
r.canPlayType('video/mp4; codecs="'.concat(t, '"')) === "probably" && (a.isSupport = !0, a.mime += "||".concat(t));
|
|
3585
3623
|
}), this.supportResult = a, r = null, a;
|
|
3586
3624
|
},
|
|
@@ -3675,36 +3713,36 @@ var kr = {
|
|
|
3675
3713
|
return m.ex = t ? (t[arguments[0]] || {}).msg : "", m;
|
|
3676
3714
|
}
|
|
3677
3715
|
}
|
|
3678
|
-
), pe = "play", di = "playing",
|
|
3716
|
+
), pe = "play", di = "playing", tt = "ended", vt = "pause", At = "error", gi = "seeking", Oe = "seeked", ve = "timeupdate", Rt = "waiting", De = "canplay", nh = "canplaythrough", Fe = "durationchange", Mu = "volumechange", Me = "loadeddata", rh = "loadedmetadata", Fu = "ratechange", Nu = "progress", oa = "loadstart", it = "emptied", ah = "stalled", sh = "suspend", oh = "abort", uh = "bufferedChange", ua = "focus", Bu = "blur", la = "ready", Hu = "urlNull", Je = "autoplay_started", ca = "autoplay_was_prevented", vi = "complete", Zt = "replay", fa = "destroy", pi = "urlchange", Ur = "download_speed_change", Uu = "leaveplayer", ju = "enterplayer", qu = "loading", Re = "fullscreen_change", Jt = "cssFullscreen_change", Qt = "mini_state_change", ha = "definition_change", lh = "before_definition_change", jr = "after_definition_change", ch = "SEI_PARSED", fh = "retry", ze = "video_resize", qr = "pip_change", Vu = "rotate", zu = "screenShot", ei = "playnext", Gu = "shortcut", Wu = "xglog", ti = "user_action", mi = "reset", Ku = "source_error", $u = "source_success", hh = "switch_subtitle", Yu = ["play", "playing", "ended", "pause", "error", "seeking", "seeked", "timeupdate", "waiting", "canplay", "canplaythrough", "durationchange", "volumechange", "loadeddata", "loadedmetadata", "ratechange", "progress", "loadstart", "emptied", "stalled", "suspend", "abort", "lowdecode"], Xu = {
|
|
3679
3717
|
STATS_INFO: "stats_info",
|
|
3680
3718
|
STATS_DOWNLOAD: "stats_download",
|
|
3681
3719
|
STATS_RESET: "stats_reset"
|
|
3682
3720
|
}, Zu = "fps_stuck";
|
|
3683
|
-
const
|
|
3721
|
+
const dh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3684
3722
|
__proto__: null,
|
|
3685
|
-
ABORT:
|
|
3723
|
+
ABORT: oh,
|
|
3686
3724
|
AFTER_DEFINITION_CHANGE: jr,
|
|
3687
3725
|
AUTOPLAY_PREVENTED: ca,
|
|
3688
|
-
AUTOPLAY_STARTED:
|
|
3689
|
-
BEFORE_DEFINITION_CHANGE:
|
|
3690
|
-
BUFFER_CHANGE:
|
|
3691
|
-
CANPLAY:
|
|
3692
|
-
CANPLAY_THROUGH:
|
|
3726
|
+
AUTOPLAY_STARTED: Je,
|
|
3727
|
+
BEFORE_DEFINITION_CHANGE: lh,
|
|
3728
|
+
BUFFER_CHANGE: uh,
|
|
3729
|
+
CANPLAY: De,
|
|
3730
|
+
CANPLAY_THROUGH: nh,
|
|
3693
3731
|
COMPLETE: vi,
|
|
3694
3732
|
CSS_FULLSCREEN_CHANGE: Jt,
|
|
3695
3733
|
DEFINITION_CHANGE: ha,
|
|
3696
3734
|
DESTROY: fa,
|
|
3697
3735
|
DOWNLOAD_SPEED_CHANGE: Ur,
|
|
3698
3736
|
DURATION_CHANGE: Fe,
|
|
3699
|
-
EMPTIED:
|
|
3700
|
-
ENDED:
|
|
3737
|
+
EMPTIED: it,
|
|
3738
|
+
ENDED: tt,
|
|
3701
3739
|
ENTER_PLAYER: ju,
|
|
3702
3740
|
ERROR: At,
|
|
3703
3741
|
FPS_STUCK: Zu,
|
|
3704
|
-
FULLSCREEN_CHANGE:
|
|
3742
|
+
FULLSCREEN_CHANGE: Re,
|
|
3705
3743
|
LEAVE_PLAYER: Uu,
|
|
3706
3744
|
LOADED_DATA: Me,
|
|
3707
|
-
LOADED_METADATA:
|
|
3745
|
+
LOADED_METADATA: rh,
|
|
3708
3746
|
LOADING: qu,
|
|
3709
3747
|
LOAD_START: oa,
|
|
3710
3748
|
MINI_STATE_CHANGE: Qt,
|
|
@@ -3720,19 +3758,19 @@ const fh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3720
3758
|
READY: la,
|
|
3721
3759
|
REPLAY: Zt,
|
|
3722
3760
|
RESET: mi,
|
|
3723
|
-
RETRY:
|
|
3761
|
+
RETRY: fh,
|
|
3724
3762
|
ROTATE: Vu,
|
|
3725
3763
|
SCREEN_SHOT: zu,
|
|
3726
|
-
SEEKED:
|
|
3764
|
+
SEEKED: Oe,
|
|
3727
3765
|
SEEKING: gi,
|
|
3728
|
-
SEI_PARSED:
|
|
3766
|
+
SEI_PARSED: ch,
|
|
3729
3767
|
SHORTCUT: Gu,
|
|
3730
3768
|
SOURCE_ERROR: Ku,
|
|
3731
3769
|
SOURCE_SUCCESS: $u,
|
|
3732
|
-
STALLED:
|
|
3770
|
+
STALLED: ah,
|
|
3733
3771
|
STATS_EVENTS: Xu,
|
|
3734
|
-
SUSPEND:
|
|
3735
|
-
SWITCH_SUBTITLE:
|
|
3772
|
+
SUSPEND: sh,
|
|
3773
|
+
SWITCH_SUBTITLE: hh,
|
|
3736
3774
|
TIME_UPDATE: ve,
|
|
3737
3775
|
URL_CHANGE: pi,
|
|
3738
3776
|
URL_NULL: Hu,
|
|
@@ -3746,7 +3784,7 @@ const fh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3746
3784
|
function Tr(s, a) {
|
|
3747
3785
|
!this || !this.emit || (s === "error" ? this.errorHandler(s, a.error) : this.emit(s, a));
|
|
3748
3786
|
}
|
|
3749
|
-
function
|
|
3787
|
+
function gh(s, a) {
|
|
3750
3788
|
return function(r, t) {
|
|
3751
3789
|
var e = {
|
|
3752
3790
|
player: a,
|
|
@@ -3781,7 +3819,7 @@ function hh(s, a) {
|
|
|
3781
3819
|
Tr.call(a, s, e);
|
|
3782
3820
|
};
|
|
3783
3821
|
}
|
|
3784
|
-
var
|
|
3822
|
+
var vh = /* @__PURE__ */ (function(s) {
|
|
3785
3823
|
A(r, s);
|
|
3786
3824
|
var a = R(r);
|
|
3787
3825
|
function r(t) {
|
|
@@ -3825,7 +3863,7 @@ var dh = /* @__PURE__ */ (function(s) {
|
|
|
3825
3863
|
var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.media;
|
|
3826
3864
|
this._evHandlers || (this._evHandlers = Yu.map(function(n) {
|
|
3827
3865
|
var o = "on".concat(n.charAt(0).toUpperCase()).concat(n.slice(1));
|
|
3828
|
-
return typeof e[o] == "function" && e.on(n, e[o]), _({}, n,
|
|
3866
|
+
return typeof e[o] == "function" && e.on(n, e[o]), _({}, n, gh(n, e));
|
|
3829
3867
|
})), this._evHandlers.forEach(function(n) {
|
|
3830
3868
|
var o = Object.keys(n)[0];
|
|
3831
3869
|
i.addEventListener(o, n[o], !1);
|
|
@@ -4199,7 +4237,7 @@ var dh = /* @__PURE__ */ (function(s) {
|
|
|
4199
4237
|
M(L(r.prototype), "removeAllListeners", this).call(this);
|
|
4200
4238
|
}
|
|
4201
4239
|
}]), r;
|
|
4202
|
-
})(Du),
|
|
4240
|
+
})(Du), ph = /* @__PURE__ */ (function() {
|
|
4203
4241
|
function s() {
|
|
4204
4242
|
var a = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
4205
4243
|
name: "xgplayer",
|
|
@@ -4306,7 +4344,7 @@ function ii(s, a) {
|
|
|
4306
4344
|
try {
|
|
4307
4345
|
var n = _e.apply(void 0, [this, s, a].concat(Array.prototype.slice.call(arguments)));
|
|
4308
4346
|
n ? n.then ? n.then(function(o) {
|
|
4309
|
-
o !== !1 && Vt.apply(void 0, [e, a, r.next].concat(
|
|
4347
|
+
o !== !1 && Vt.apply(void 0, [e, a, r.next].concat(ke(t)));
|
|
4310
4348
|
}).catch(function(o) {
|
|
4311
4349
|
throw o;
|
|
4312
4350
|
}) : Vt.apply(void 0, [this, a, r.next].concat(Array.prototype.slice.call(arguments))) : n === void 0 && Vt.apply(void 0, [this, a, r.next].concat(Array.prototype.slice.call(arguments)));
|
|
@@ -4595,7 +4633,7 @@ var Ge = /* @__PURE__ */ (function() {
|
|
|
4595
4633
|
}
|
|
4596
4634
|
}]), s;
|
|
4597
4635
|
})(), Sr, jo;
|
|
4598
|
-
function
|
|
4636
|
+
function mh() {
|
|
4599
4637
|
if (jo) return Sr;
|
|
4600
4638
|
jo = 1;
|
|
4601
4639
|
var s = 9;
|
|
@@ -4613,10 +4651,10 @@ function vh() {
|
|
|
4613
4651
|
return Sr = r, Sr;
|
|
4614
4652
|
}
|
|
4615
4653
|
var Er, qo;
|
|
4616
|
-
function
|
|
4654
|
+
function yh() {
|
|
4617
4655
|
if (qo) return Er;
|
|
4618
4656
|
qo = 1;
|
|
4619
|
-
var s =
|
|
4657
|
+
var s = mh();
|
|
4620
4658
|
function a(e, i, n, o, u) {
|
|
4621
4659
|
var l = t.apply(this, arguments);
|
|
4622
4660
|
return e.addEventListener(n, l, u), {
|
|
@@ -4637,12 +4675,12 @@ function ph() {
|
|
|
4637
4675
|
}
|
|
4638
4676
|
return Er = r, Er;
|
|
4639
4677
|
}
|
|
4640
|
-
var
|
|
4641
|
-
const Vo = /* @__PURE__ */ du(
|
|
4642
|
-
var
|
|
4678
|
+
var _h = yh();
|
|
4679
|
+
const Vo = /* @__PURE__ */ du(_h);
|
|
4680
|
+
var bh = {
|
|
4643
4681
|
CONTROLS: "controls",
|
|
4644
4682
|
ROOT: "root"
|
|
4645
|
-
},
|
|
4683
|
+
}, $ = {
|
|
4646
4684
|
ROOT: "root",
|
|
4647
4685
|
ROOT_LEFT: "rootLeft",
|
|
4648
4686
|
ROOT_RIGHT: "rootRight",
|
|
@@ -4658,10 +4696,10 @@ var yh = {
|
|
|
4658
4696
|
function xr(s) {
|
|
4659
4697
|
return s ? s.indexOf && /^(?:http|data:|\/)/.test(s) : !1;
|
|
4660
4698
|
}
|
|
4661
|
-
function
|
|
4699
|
+
function Ch(s, a) {
|
|
4662
4700
|
return ae(s) === "object" && s.class && typeof s.class == "string" ? "".concat(a, " ").concat(s.class) : a;
|
|
4663
4701
|
}
|
|
4664
|
-
function
|
|
4702
|
+
function kh(s, a) {
|
|
4665
4703
|
return ae(s) === "object" && s.attr && ae(s.attr) === "object" && Object.keys(s.attr).map(function(r) {
|
|
4666
4704
|
a[r] = s.attr[r];
|
|
4667
4705
|
}), a;
|
|
@@ -4684,14 +4722,14 @@ function Go(s, a) {
|
|
|
4684
4722
|
}
|
|
4685
4723
|
return typeof s == "string" ? f.createDomFromHtml(s, t, r) : (H.logWarn("warn>>icons.".concat(a, " in config of plugin named [").concat(e, "] is invalid")), null);
|
|
4686
4724
|
}
|
|
4687
|
-
function
|
|
4725
|
+
function Th(s, a) {
|
|
4688
4726
|
var r = a.config.icons || a.playerConfig.icons;
|
|
4689
4727
|
Object.keys(s).map(function(t) {
|
|
4690
4728
|
var e = s[t], i = e && e.class ? e.class : "", n = e && e.attr ? e.attr : {}, o = null;
|
|
4691
|
-
r && r[t] && (i =
|
|
4729
|
+
r && r[t] && (i = Ch(r[t], i), n = kh(r[t], n), o = Go(r[t], t, i, n, a.pluginName)), !o && e && (o = Go(e.icon ? e.icon : e, n, i, {}, a.pluginName)), a.icons[t] = o;
|
|
4692
4730
|
});
|
|
4693
4731
|
}
|
|
4694
|
-
function
|
|
4732
|
+
function wh(s, a) {
|
|
4695
4733
|
Object.keys(s).map(function(r) {
|
|
4696
4734
|
Object.defineProperty(a.langText, r, {
|
|
4697
4735
|
get: function() {
|
|
@@ -4715,9 +4753,9 @@ var V = /* @__PURE__ */ (function(s) {
|
|
|
4715
4753
|
var i = e.root, n = null;
|
|
4716
4754
|
this.icons = {}, this.root = null, this.parent = null, this.extraEls = [];
|
|
4717
4755
|
var o = this.registerIcons() || {};
|
|
4718
|
-
|
|
4756
|
+
Th(o, this), this.langText = {};
|
|
4719
4757
|
var u = this.registerLanguageTexts() || {};
|
|
4720
|
-
|
|
4758
|
+
wh(u, this);
|
|
4721
4759
|
var l = "";
|
|
4722
4760
|
try {
|
|
4723
4761
|
l = this.render();
|
|
@@ -4985,15 +5023,15 @@ var V = /* @__PURE__ */ (function(s) {
|
|
|
4985
5023
|
}, {
|
|
4986
5024
|
key: "ROOT_TYPES",
|
|
4987
5025
|
get: function() {
|
|
4988
|
-
return
|
|
5026
|
+
return bh;
|
|
4989
5027
|
}
|
|
4990
5028
|
}, {
|
|
4991
5029
|
key: "POSITIONS",
|
|
4992
5030
|
get: function() {
|
|
4993
|
-
return
|
|
5031
|
+
return $;
|
|
4994
5032
|
}
|
|
4995
5033
|
}]), r;
|
|
4996
|
-
})(Ge),
|
|
5034
|
+
})(Ge), Sh = /* @__PURE__ */ (function() {
|
|
4997
5035
|
function s() {
|
|
4998
5036
|
var a = this;
|
|
4999
5037
|
if (w(this, s), _(this, "__trigger", function(r) {
|
|
@@ -5003,7 +5041,7 @@ var V = /* @__PURE__ */ (function(s) {
|
|
|
5003
5041
|
a.__runHandler(r[e].target);
|
|
5004
5042
|
}), this.__handlers = [], this.timeStamp = 0, this.observer = null, !!window.ResizeObserver)
|
|
5005
5043
|
try {
|
|
5006
|
-
this.observer = new window.ResizeObserver(
|
|
5044
|
+
this.observer = new window.ResizeObserver(Qf(this.__trigger, 100, {
|
|
5007
5045
|
trailing: !0
|
|
5008
5046
|
})), this.timeStamp = (/* @__PURE__ */ new Date()).getTime();
|
|
5009
5047
|
} catch (r) {
|
|
@@ -5060,10 +5098,10 @@ var V = /* @__PURE__ */ (function(s) {
|
|
|
5060
5098
|
}
|
|
5061
5099
|
}]), s;
|
|
5062
5100
|
})(), St = null;
|
|
5063
|
-
function
|
|
5064
|
-
return St || (St = new
|
|
5101
|
+
function Eh(s, a) {
|
|
5102
|
+
return St || (St = new Sh()), St.addObserver(s, a), St;
|
|
5065
5103
|
}
|
|
5066
|
-
function
|
|
5104
|
+
function xh(s, a) {
|
|
5067
5105
|
var r;
|
|
5068
5106
|
(r = St) === null || r === void 0 || r.unObserver(s, a);
|
|
5069
5107
|
}
|
|
@@ -5071,7 +5109,7 @@ var re = {
|
|
|
5071
5109
|
pluginGroup: {},
|
|
5072
5110
|
init: function(a) {
|
|
5073
5111
|
var r = a._pluginInfoId;
|
|
5074
|
-
r || (r = (/* @__PURE__ */ new Date()).getTime(), a._pluginInfoId = r), !a.config.closeResizeObserver &&
|
|
5112
|
+
r || (r = (/* @__PURE__ */ new Date()).getTime(), a._pluginInfoId = r), !a.config.closeResizeObserver && Eh(a.root, function() {
|
|
5075
5113
|
a.resize();
|
|
5076
5114
|
}), this.pluginGroup[r] = {
|
|
5077
5115
|
_originalOptions: a.config || {},
|
|
@@ -5257,7 +5295,7 @@ var re = {
|
|
|
5257
5295
|
destroy: function(a) {
|
|
5258
5296
|
var r = a._pluginInfoId;
|
|
5259
5297
|
if (this.pluginGroup[r]) {
|
|
5260
|
-
|
|
5298
|
+
xh(a.root);
|
|
5261
5299
|
for (var t = this.pluginGroup[r]._plugins, e = 0, i = Object.keys(t); e < i.length; e++) {
|
|
5262
5300
|
var n = i[e];
|
|
5263
5301
|
this.unRegister(r, n);
|
|
@@ -5343,7 +5381,7 @@ function Wo() {
|
|
|
5343
5381
|
ignores: [],
|
|
5344
5382
|
whitelist: [],
|
|
5345
5383
|
inactive: 3e3,
|
|
5346
|
-
lang:
|
|
5384
|
+
lang: eh(),
|
|
5347
5385
|
controls: !0,
|
|
5348
5386
|
marginControls: !1,
|
|
5349
5387
|
fullscreenTarget: null,
|
|
@@ -5379,16 +5417,16 @@ function Wo() {
|
|
|
5379
5417
|
}
|
|
5380
5418
|
};
|
|
5381
5419
|
}
|
|
5382
|
-
var
|
|
5420
|
+
var Ih = function(a, r) {
|
|
5383
5421
|
var t, e, i;
|
|
5384
5422
|
r.preset && r.options ? i = new r.preset(r.options, a.config) : i = new r({}, a.config);
|
|
5385
5423
|
var n = i, o = n.plugins, u = o === void 0 ? [] : o, l = n.ignores, c = l === void 0 ? [] : l, h = n.icons, d = h === void 0 ? {} : h, g = n.i18n, v = g === void 0 ? [] : g;
|
|
5386
|
-
a.config.plugins || (a.config.plugins = []), a.config.ignores || (a.config.ignores = []), (t = a.config.plugins).push.apply(t,
|
|
5424
|
+
a.config.plugins || (a.config.plugins = []), a.config.ignores || (a.config.ignores = []), (t = a.config.plugins).push.apply(t, ke(u)), (e = a.config.ignores).push.apply(e, ke(c)), Object.keys(d).map(function(p) {
|
|
5387
5425
|
a.config.icons[p] || (a.config.icons[p] = d[p]);
|
|
5388
5426
|
});
|
|
5389
5427
|
var m = a.config.i18n || [];
|
|
5390
|
-
v.push.apply(v,
|
|
5391
|
-
},
|
|
5428
|
+
v.push.apply(v, ke(m)), a.config.i18n = v;
|
|
5429
|
+
}, Ph = /* @__PURE__ */ (function(s) {
|
|
5392
5430
|
A(r, s);
|
|
5393
5431
|
var a = R(r);
|
|
5394
5432
|
function r() {
|
|
@@ -5484,16 +5522,16 @@ var Eh = function(a, r) {
|
|
|
5484
5522
|
if (!i.root) {
|
|
5485
5523
|
var u = i.position ? i.position : i.config && i.config.position ? i.config.position : o.position;
|
|
5486
5524
|
switch (u) {
|
|
5487
|
-
case
|
|
5525
|
+
case $.CONTROLS_LEFT:
|
|
5488
5526
|
i.root = this.left;
|
|
5489
5527
|
break;
|
|
5490
|
-
case
|
|
5528
|
+
case $.CONTROLS_RIGHT:
|
|
5491
5529
|
i.root = this.right;
|
|
5492
5530
|
break;
|
|
5493
|
-
case
|
|
5531
|
+
case $.CONTROLS_CENTER:
|
|
5494
5532
|
i.root = this.center;
|
|
5495
5533
|
break;
|
|
5496
|
-
case
|
|
5534
|
+
case $.CONTROLS:
|
|
5497
5535
|
i.root = this.root;
|
|
5498
5536
|
break;
|
|
5499
5537
|
default:
|
|
@@ -5549,7 +5587,7 @@ var Eh = function(a, r) {
|
|
|
5549
5587
|
};
|
|
5550
5588
|
}
|
|
5551
5589
|
}]), r;
|
|
5552
|
-
})(V),
|
|
5590
|
+
})(V), Ah = {
|
|
5553
5591
|
LANG: "en",
|
|
5554
5592
|
TEXT: {
|
|
5555
5593
|
ERROR_TYPES: {
|
|
@@ -5635,7 +5673,7 @@ function xt(s, a) {
|
|
|
5635
5673
|
var t = f.typeOf(a[r]), e = f.typeOf(s[r]);
|
|
5636
5674
|
if (t === "Array") {
|
|
5637
5675
|
var i;
|
|
5638
|
-
e !== "Array" && (s[r] = []), (i = s[r]).push.apply(i,
|
|
5676
|
+
e !== "Array" && (s[r] = []), (i = s[r]).push.apply(i, ke(a[r]));
|
|
5639
5677
|
} else t === "Object" ? (e !== "Object" && (s[r] = {}), xt(s[r], a[r])) : s[r] = a[r];
|
|
5640
5678
|
}), s;
|
|
5641
5679
|
}
|
|
@@ -5644,7 +5682,7 @@ function tl() {
|
|
|
5644
5682
|
ge.textKeys[s] = s;
|
|
5645
5683
|
});
|
|
5646
5684
|
}
|
|
5647
|
-
function
|
|
5685
|
+
function Rh(s, a) {
|
|
5648
5686
|
var r = [];
|
|
5649
5687
|
if (a || (a = ge), !!a.lang) {
|
|
5650
5688
|
f.typeOf(s) !== "Array" ? r = Object.keys(s).map(function(i) {
|
|
@@ -5667,17 +5705,17 @@ function da(s, a) {
|
|
|
5667
5705
|
r === "zh" && (r = "zh-cn"), a.lang[r] ? xt(a.lang[r], t) : (a.langKeys.push(r), a.lang[r] = t), tl();
|
|
5668
5706
|
}
|
|
5669
5707
|
}
|
|
5670
|
-
function
|
|
5708
|
+
function Lh(s) {
|
|
5671
5709
|
var a, r = {
|
|
5672
5710
|
lang: {},
|
|
5673
5711
|
langKeys: [],
|
|
5674
5712
|
textKeys: {},
|
|
5675
5713
|
pId: s
|
|
5676
5714
|
};
|
|
5677
|
-
return xt(r.lang, ge.lang), (a = r.langKeys).push.apply(a,
|
|
5715
|
+
return xt(r.lang, ge.lang), (a = r.langKeys).push.apply(a, ke(ge.langKeys)), xt(r.textKeys, ge.textKeys), r;
|
|
5678
5716
|
}
|
|
5679
|
-
da(
|
|
5680
|
-
var
|
|
5717
|
+
da(Ah);
|
|
5718
|
+
var gt = {
|
|
5681
5719
|
get textKeys() {
|
|
5682
5720
|
return ge.textKeys;
|
|
5683
5721
|
},
|
|
@@ -5690,9 +5728,9 @@ var dt = {
|
|
|
5690
5728
|
s[a] = ge.lang[a];
|
|
5691
5729
|
}), ge.lang["zh-cn"] && (s.zh = ge.lang["zh-cn"] || {}), s;
|
|
5692
5730
|
},
|
|
5693
|
-
extend:
|
|
5731
|
+
extend: Rh,
|
|
5694
5732
|
use: da,
|
|
5695
|
-
init:
|
|
5733
|
+
init: Lh
|
|
5696
5734
|
}, U = {
|
|
5697
5735
|
INITIAL: 1,
|
|
5698
5736
|
READY: 2,
|
|
@@ -5788,7 +5826,7 @@ var dt = {
|
|
|
5788
5826
|
}
|
|
5789
5827
|
}]), r;
|
|
5790
5828
|
})(Lu.EventEmitter);
|
|
5791
|
-
function
|
|
5829
|
+
function Dh(s) {
|
|
5792
5830
|
for (var a = Object.keys(ce), r = 0; r < a.length; r++) {
|
|
5793
5831
|
var t = ce[a[r]];
|
|
5794
5832
|
if (t.root === s)
|
|
@@ -5796,7 +5834,7 @@ function Rh(s) {
|
|
|
5796
5834
|
}
|
|
5797
5835
|
return null;
|
|
5798
5836
|
}
|
|
5799
|
-
var
|
|
5837
|
+
var Oh = ["play", "pause", "replay", "retry"], $o = 0, Yo = 0, Ue = null, yi = /* @__PURE__ */ (function(s) {
|
|
5800
5838
|
A(r, s);
|
|
5801
5839
|
var a = R(r);
|
|
5802
5840
|
function r(t) {
|
|
@@ -5806,7 +5844,7 @@ var Lh = ["play", "pause", "replay", "retry"], $o = 0, Yo = 0, Ue = null, yi = /
|
|
|
5806
5844
|
n = a.call(this, o), _(y(n), "canPlayFunc", function() {
|
|
5807
5845
|
if (n.config) {
|
|
5808
5846
|
var p = n.config, T = p.autoplay, C = p.defaultPlaybackRate;
|
|
5809
|
-
H.logInfo("player", "canPlayFunc, startTime", n.__startTime), n._seekToStartTime(), n.playbackRate = C, (T || n._useAutoplay) && n.mediaPlay(), n.off(
|
|
5847
|
+
H.logInfo("player", "canPlayFunc, startTime", n.__startTime), n._seekToStartTime(), n.playbackRate = C, (T || n._useAutoplay) && n.mediaPlay(), n.off(De, n.canPlayFunc), n.removeClass(k.ENTER);
|
|
5810
5848
|
}
|
|
5811
5849
|
}), _(y(n), "onFullscreenChange", function(p, T) {
|
|
5812
5850
|
var C = function() {
|
|
@@ -5826,13 +5864,13 @@ var Lh = ["play", "pause", "replay", "retry"], $o = 0, Yo = 0, Ue = null, yi = /
|
|
|
5826
5864
|
to: !1
|
|
5827
5865
|
}]
|
|
5828
5866
|
});
|
|
5829
|
-
var x =
|
|
5867
|
+
var x = th(b, n.playerId, Ve);
|
|
5830
5868
|
if (T || b && (b === n._fullscreenEl || x))
|
|
5831
|
-
C(), !n.config.closeFocusVideoFocus && n.media.focus(), n.fullscreen = !0, n.changeFullStyle(n.root, b, k.FULLSCREEN), n.emit(
|
|
5869
|
+
C(), !n.config.closeFocusVideoFocus && n.media.focus(), n.fullscreen = !0, n.changeFullStyle(n.root, b, k.FULLSCREEN), n.emit(Re, !0, n._fullScreenOffset), n.cssfullscreen && n.exitCssFullscreen();
|
|
5832
5870
|
else if (n.fullscreen) {
|
|
5833
5871
|
C();
|
|
5834
|
-
var E = y(n), I = E._fullScreenOffset,
|
|
5835
|
-
if (
|
|
5872
|
+
var E = y(n), I = E._fullScreenOffset, Y = E.config;
|
|
5873
|
+
if (Y.needFullscreenScroll ? (window.scrollTo(I.left, I.top), f.setTimeout(y(n), function() {
|
|
5836
5874
|
n.fullscreen = !1, n._fullScreenOffset = null;
|
|
5837
5875
|
}, 100)) : (!n.config.closeFocusVideoFocus && n.media.focus(), n.fullscreen = !1, n._fullScreenOffset = null), n.cssfullscreen)
|
|
5838
5876
|
n.removeClass(k.FULLSCREEN);
|
|
@@ -5840,13 +5878,13 @@ var Lh = ["play", "pause", "replay", "retry"], $o = 0, Yo = 0, Ue = null, yi = /
|
|
|
5840
5878
|
var G = n._fullscreenEl;
|
|
5841
5879
|
!G && (n.root.contains(p.target) || p.target === n.root) && (G = p.target), n.recoverFullStyle(n.root, G, k.FULLSCREEN);
|
|
5842
5880
|
}
|
|
5843
|
-
n._fullscreenEl = null, n.emit(
|
|
5881
|
+
n._fullscreenEl = null, n.emit(Re, !1);
|
|
5844
5882
|
}
|
|
5845
5883
|
}), _(y(n), "_onWebkitbeginfullscreen", function(p) {
|
|
5846
5884
|
n._fullscreenEl = n.media, n.onFullscreenChange(p, !0);
|
|
5847
5885
|
}), _(y(n), "_onWebkitendfullscreen", function(p) {
|
|
5848
5886
|
n.onFullscreenChange(p, !1);
|
|
5849
|
-
}), Qu(y(n),
|
|
5887
|
+
}), Qu(y(n), Oh), n.config = o, n._pluginInfoId = f.generateSessionId(), Yf(y(n));
|
|
5850
5888
|
var u = n.constructor.defaultPreset;
|
|
5851
5889
|
if (n.config.presets.length) {
|
|
5852
5890
|
var l = n.config.presets.indexOf("default");
|
|
@@ -5874,7 +5912,7 @@ var Lh = ["play", "pause", "replay", "retry"], $o = 0, Yo = 0, Ue = null, yi = /
|
|
|
5874
5912
|
}, n._offsetInfo = {
|
|
5875
5913
|
currentTime: -1,
|
|
5876
5914
|
duration: 0
|
|
5877
|
-
}, n.innerContainer = null, n.controls = null, n.topBar = null, n.root = null, n.__i18n =
|
|
5915
|
+
}, n.innerContainer = null, n.controls = null, n.topBar = null, n.root = null, n.__i18n = gt.init(n._pluginInfoId), N.os.isAndroid && N.osVersion > 0 && N.osVersion < 6 && (n.config.autoplay = !1), n.database = new ph(), n.isUserActive = !1, n._onceSeekCanplay = null, n._isPauseBeforeSeek = 0, n.innerStates = {
|
|
5878
5916
|
isActiveLocked: !1
|
|
5879
5917
|
}, n.instManager = Ue;
|
|
5880
5918
|
var c = n._initDOM();
|
|
@@ -5906,9 +5944,9 @@ var Lh = ["play", "pause", "replay", "retry"], $o = 0, Yo = 0, Ue = null, yi = /
|
|
|
5906
5944
|
msg: "container id can't be empty"
|
|
5907
5945
|
})), console.error("this.confg.id or this.config.el can't be empty"), !1;
|
|
5908
5946
|
}
|
|
5909
|
-
var o =
|
|
5947
|
+
var o = Dh(this.root);
|
|
5910
5948
|
if (o && (H.logWarn("The is an Player instance already exists in this.root, destroy it and reinitialize"), o.destroy()), this.root.setAttribute(Ve, this.playerId), this.media.setAttribute(Ve, this.playerId), (e = Ue) === null || e === void 0 || e.add(this), re.init(this), this._initBaseDoms(), this.config.controls) {
|
|
5911
|
-
var u = this.config.controls.root || null, l = re.register(this,
|
|
5949
|
+
var u = this.config.controls.root || null, l = re.register(this, Ph, {
|
|
5912
5950
|
root: u
|
|
5913
5951
|
});
|
|
5914
5952
|
this.controls = l;
|
|
@@ -5958,7 +5996,7 @@ var Lh = ["play", "pause", "replay", "retry"], $o = 0, Yo = 0, Ue = null, yi = /
|
|
|
5958
5996
|
var e = this;
|
|
5959
5997
|
this.root.removeEventListener("mousemove", this.mousemoveFunc), Fo.forEach(function(i) {
|
|
5960
5998
|
document.removeEventListener(i, e.onFullscreenChange);
|
|
5961
|
-
}), this.playFunc && this.off(pe, this.playFunc), this.off(
|
|
5999
|
+
}), this.playFunc && this.off(pe, this.playFunc), this.off(De, this.canPlayFunc), this.media.removeEventListener("webkitbeginfullscreen", this._onWebkitbeginfullscreen), this.media.removeEventListener("webkitendfullscreen", this._onWebkitendfullscreen);
|
|
5962
6000
|
}
|
|
5963
6001
|
}, {
|
|
5964
6002
|
key: "_clearUserTimer",
|
|
@@ -5976,7 +6014,7 @@ var Lh = ["play", "pause", "replay", "retry"], $o = 0, Yo = 0, Ue = null, yi = /
|
|
|
5976
6014
|
var u = this.media.readyState;
|
|
5977
6015
|
H.logInfo("_startInit readyState", u), this.config.autoplay && (!f.isMSE(this.media) && this.load(), (N.os.isIpad || N.os.isPhone) && this.mediaPlay());
|
|
5978
6016
|
var l = this.config.startTime;
|
|
5979
|
-
this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, u >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(
|
|
6017
|
+
this.__startTime = l > 0 ? l : -1, this.config.startTime = 0, u >= 2 && this.duration > 0 ? this.canPlayFunc() : this.on(De, this.canPlayFunc), (!this.hasStart || this.state < U.ATTACHED) && re.afterInit(this), this.hasStart = !0, this.setState(U.ATTACHED), f.setTimeout(this, function() {
|
|
5980
6018
|
i.emit(vi);
|
|
5981
6019
|
}, 0);
|
|
5982
6020
|
}
|
|
@@ -5987,7 +6025,7 @@ var Lh = ["play", "pause", "replay", "retry"], $o = 0, Yo = 0, Ue = null, yi = /
|
|
|
5987
6025
|
var e = this, i = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : !0;
|
|
5988
6026
|
this._loadingPlugins = [];
|
|
5989
6027
|
var n = this.config.ignores || [], o = this.config.plugins || [], u = this.config.i18n || [];
|
|
5990
|
-
i &&
|
|
6028
|
+
i && gt.extend(u, this.__i18n);
|
|
5991
6029
|
var l = n.join("||").toLowerCase().split("||"), c = this.plugins;
|
|
5992
6030
|
o.forEach(function(h) {
|
|
5993
6031
|
try {
|
|
@@ -6016,7 +6054,7 @@ var Lh = ["play", "pause", "replay", "retry"], $o = 0, Yo = 0, Ue = null, yi = /
|
|
|
6016
6054
|
value: function() {
|
|
6017
6055
|
var e = this;
|
|
6018
6056
|
this.config.presets.forEach(function(i) {
|
|
6019
|
-
|
|
6057
|
+
Ih(e, i);
|
|
6020
6058
|
});
|
|
6021
6059
|
}
|
|
6022
6060
|
}, {
|
|
@@ -6024,13 +6062,13 @@ var Lh = ["play", "pause", "replay", "retry"], $o = 0, Yo = 0, Ue = null, yi = /
|
|
|
6024
6062
|
value: function(e) {
|
|
6025
6063
|
var i = null;
|
|
6026
6064
|
switch (e) {
|
|
6027
|
-
case
|
|
6065
|
+
case $.ROOT_RIGHT:
|
|
6028
6066
|
this.rightBar || (this.rightBar = f.createPositionBar("xg-right-bar", this.root)), i = this.rightBar;
|
|
6029
6067
|
break;
|
|
6030
|
-
case
|
|
6068
|
+
case $.ROOT_LEFT:
|
|
6031
6069
|
this.leftBar || (this.leftBar = f.createPositionBar("xg-left-bar", this.root)), i = this.leftBar;
|
|
6032
6070
|
break;
|
|
6033
|
-
case
|
|
6071
|
+
case $.ROOT_TOP:
|
|
6034
6072
|
this.topBar || (this.topBar = f.createPositionBar("xg-top-bar", this.root), this.config.topBarAutoHide && f.addClass(this.topBar, k.TOP_BAR_AUTOHIDE)), i = this.topBar;
|
|
6035
6073
|
break;
|
|
6036
6074
|
default:
|
|
@@ -6173,7 +6211,7 @@ var Lh = ["play", "pause", "replay", "retry"], $o = 0, Yo = 0, Ue = null, yi = /
|
|
|
6173
6211
|
this.state < U.RUNNING && (this.removeClass(k.NO_START), !this.isCanplay && this.addClass(k.ENTER));
|
|
6174
6212
|
var i = M(L(r.prototype), "play", this).call(this);
|
|
6175
6213
|
return i !== void 0 && i && i.then ? i.then(function() {
|
|
6176
|
-
e.removeClass(k.NOT_ALLOW_AUTOPLAY), e.addClass(k.PLAYING), e.state < U.RUNNING && (H.logInfo(">>>>playPromise.then"), e.setState(U.RUNNING), e.emit(
|
|
6214
|
+
e.removeClass(k.NOT_ALLOW_AUTOPLAY), e.addClass(k.PLAYING), e.state < U.RUNNING && (H.logInfo(">>>>playPromise.then"), e.setState(U.RUNNING), e.emit(Je));
|
|
6177
6215
|
}).catch(function(n) {
|
|
6178
6216
|
if (H.logWarn(">>>>playPromise.catch", n.name), e.media && e.media.error) {
|
|
6179
6217
|
e.onError(), e.removeClass(k.ENTER);
|
|
@@ -6182,7 +6220,7 @@ var Lh = ["play", "pause", "replay", "retry"], $o = 0, Yo = 0, Ue = null, yi = /
|
|
|
6182
6220
|
n.name === "NotAllowedError" && (e._errorTimer = f.setTimeout(e, function() {
|
|
6183
6221
|
e._errorTimer = null, e.emit(ca), e.addClass(k.NOT_ALLOW_AUTOPLAY), e.removeClass(k.ENTER), e.pause(), e.setState(U.NOTALLOW);
|
|
6184
6222
|
}, 0));
|
|
6185
|
-
}) : (H.logWarn("video.play not return promise"), this.state < U.RUNNING && (this.setState(U.RUNNING), this.removeClass(k.NOT_ALLOW_AUTOPLAY), this.removeClass(k.NO_START), this.removeClass(k.ENTER), this.addClass(k.PLAYING), this.emit(
|
|
6223
|
+
}) : (H.logWarn("video.play not return promise"), this.state < U.RUNNING && (this.setState(U.RUNNING), this.removeClass(k.NOT_ALLOW_AUTOPLAY), this.removeClass(k.NO_START), this.removeClass(k.ENTER), this.addClass(k.PLAYING), this.emit(Je))), i;
|
|
6186
6224
|
}
|
|
6187
6225
|
}, {
|
|
6188
6226
|
key: "mediaPause",
|
|
@@ -6216,7 +6254,7 @@ var Lh = ["play", "pause", "replay", "retry"], $o = 0, Yo = 0, Ue = null, yi = /
|
|
|
6216
6254
|
var n = this;
|
|
6217
6255
|
if (!(!this.media || Number.isNaN(Number(e)) || !this.hasStart)) {
|
|
6218
6256
|
var o = this.config, u = o.isSeekedPlay, l = o.seekedStatus, c = i || (u ? "play" : l);
|
|
6219
|
-
e = e < 0 ? 0 : e > this.duration ? parseInt(this.duration, 10) : e, !this._isPauseBeforeSeek && (this._isPauseBeforeSeek = this.paused ? 2 : 1), this._onceSeekCanplay && this.off(
|
|
6257
|
+
e = e < 0 ? 0 : e > this.duration ? parseInt(this.duration, 10) : e, !this._isPauseBeforeSeek && (this._isPauseBeforeSeek = this.paused ? 2 : 1), this._onceSeekCanplay && this.off(Oe, this._onceSeekCanplay), this._onceSeekCanplay = function() {
|
|
6220
6258
|
switch (n.removeClass(k.ENTER), n.isSeeking = !1, c) {
|
|
6221
6259
|
case "play":
|
|
6222
6260
|
n.play();
|
|
@@ -6228,7 +6266,7 @@ var Lh = ["play", "pause", "replay", "retry"], $o = 0, Yo = 0, Ue = null, yi = /
|
|
|
6228
6266
|
n._isPauseBeforeSeek > 1 || n.paused ? n.pause() : n.play();
|
|
6229
6267
|
}
|
|
6230
6268
|
n._isPauseBeforeSeek = 0, n._onceSeekCanplay = null;
|
|
6231
|
-
}, this.once(
|
|
6269
|
+
}, this.once(Oe, this._onceSeekCanplay), this.state < U.RUNNING ? (this.removeClass(k.NO_START), this.currentTime = e, this.play()) : this.currentTime = e;
|
|
6232
6270
|
}
|
|
6233
6271
|
}
|
|
6234
6272
|
}, {
|
|
@@ -6319,7 +6357,7 @@ var Lh = ["play", "pause", "replay", "retry"], $o = 0, Yo = 0, Ue = null, yi = /
|
|
|
6319
6357
|
value: function() {
|
|
6320
6358
|
var e = this;
|
|
6321
6359
|
this.removeClass(k.ENDED), this.currentTime = 0, this.isSeeking = !1, _e(this, "replay", function() {
|
|
6322
|
-
e.once(
|
|
6360
|
+
e.once(Oe, function() {
|
|
6323
6361
|
var i = e.mediaPlay();
|
|
6324
6362
|
i && i.catch && i.catch(function(n) {
|
|
6325
6363
|
console.log(n);
|
|
@@ -6335,7 +6373,7 @@ var Lh = ["play", "pause", "replay", "retry"], $o = 0, Yo = 0, Ue = null, yi = /
|
|
|
6335
6373
|
var i = e.currentTime, n = e.config.url, o = f.isMSE(e.media) ? {
|
|
6336
6374
|
url: n
|
|
6337
6375
|
} : e.preProcessUrl(n);
|
|
6338
|
-
e.src = o.url, !e.config.isLive && (e.currentTime = i), e.once(
|
|
6376
|
+
e.src = o.url, !e.config.isLive && (e.currentTime = i), e.once(De, function() {
|
|
6339
6377
|
e.mediaPlay();
|
|
6340
6378
|
});
|
|
6341
6379
|
});
|
|
@@ -6409,7 +6447,7 @@ var Lh = ["play", "pause", "replay", "retry"], $o = 0, Yo = 0, Ue = null, yi = /
|
|
|
6409
6447
|
var i = e ? "".concat(k.INNER_FULLSCREEN, " ").concat(k.CSS_FULLSCREEN) : k.CSS_FULLSCREEN;
|
|
6410
6448
|
this.changeFullStyle(this.root, e, i);
|
|
6411
6449
|
var n = this.config.fullscreen, o = n === void 0 ? {} : n, u = o.useCssFullscreen === !0 || typeof o.useCssFullscreen == "function" && o.useCssFullscreen();
|
|
6412
|
-
u && (this.fullscreen = !0, this.emit(
|
|
6450
|
+
u && (this.fullscreen = !0, this.emit(Re, !0)), this._cssfullscreenEl = e, this.cssfullscreen = !0, this.emit(Jt, !0);
|
|
6413
6451
|
}
|
|
6414
6452
|
}, {
|
|
6415
6453
|
key: "exitCssFullscreen",
|
|
@@ -6419,7 +6457,7 @@ var Lh = ["play", "pause", "replay", "retry"], $o = 0, Yo = 0, Ue = null, yi = /
|
|
|
6419
6457
|
this.recoverFullStyle(this.root, this._cssfullscreenEl, e);
|
|
6420
6458
|
else {
|
|
6421
6459
|
var i = this.config.fullscreen, n = i === void 0 ? {} : i, o = n.useCssFullscreen === !0 || typeof n.useCssFullscreen == "function" && n.useCssFullscreen();
|
|
6422
|
-
o ? (this.recoverFullStyle(this.root, this._cssfullscreenEl, e), this.fullscreen = !1, this.emit(
|
|
6460
|
+
o ? (this.recoverFullStyle(this.root, this._cssfullscreenEl, e), this.fullscreen = !1, this.emit(Re, !1)) : this.removeClass(e);
|
|
6423
6461
|
}
|
|
6424
6462
|
this._cssfullscreenEl = null, this.cssfullscreen = !1, this.emit(Jt, !1);
|
|
6425
6463
|
}
|
|
@@ -6431,13 +6469,13 @@ var Lh = ["play", "pause", "replay", "retry"], $o = 0, Yo = 0, Ue = null, yi = /
|
|
|
6431
6469
|
var i = e ? "".concat(k.INNER_FULLSCREEN, " ").concat(k.ROTATE_FULLSCREEN) : k.ROTATE_FULLSCREEN;
|
|
6432
6470
|
this._fullscreenEl = e || this.root, this.changeFullStyle(this.root, e, i, k.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !0, this.fullscreen = !0, this.setRotateDeg(90), this._rootStyle = this.root.getAttribute("style");
|
|
6433
6471
|
var n = Math.abs(window.orientation) === 90 || Math.abs(screen.orientation.angle) === 90;
|
|
6434
|
-
this.root.style.width = n ? "".concat(window.innerWidth, "px") : "".concat(window.innerHeight, "px"), this.emit(
|
|
6472
|
+
this.root.style.width = n ? "".concat(window.innerWidth, "px") : "".concat(window.innerHeight, "px"), this.emit(Re, !0);
|
|
6435
6473
|
}
|
|
6436
6474
|
}, {
|
|
6437
6475
|
key: "exitRotateFullscreen",
|
|
6438
6476
|
value: function(e) {
|
|
6439
6477
|
var i = this._fullscreenEl !== this.root ? "".concat(k.INNER_FULLSCREEN, " ").concat(k.ROTATE_FULLSCREEN) : k.ROTATE_FULLSCREEN;
|
|
6440
|
-
this.recoverFullStyle(this.root, this._fullscreenEl, i, k.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !1, this.fullscreen = !1, this.setRotateDeg(0), this.emit(
|
|
6478
|
+
this.recoverFullStyle(this.root, this._fullscreenEl, i, k.PARENT_ROTATE_FULLSCREEN), this.isRotateFullscreen = !1, this.fullscreen = !1, this.setRotateDeg(0), this.emit(Re, !1), this._rootStyle && (this.root.style.style = this._rootStyle, this._rootStyle = !1);
|
|
6441
6479
|
}
|
|
6442
6480
|
}, {
|
|
6443
6481
|
key: "setRotateDeg",
|
|
@@ -6574,7 +6612,7 @@ var Lh = ["play", "pause", "replay", "retry"], $o = 0, Yo = 0, Ue = null, yi = /
|
|
|
6574
6612
|
}, {
|
|
6575
6613
|
key: "onTimeupdate",
|
|
6576
6614
|
value: function() {
|
|
6577
|
-
!this._videoHeight && this.media.videoHeight && this.resize(), (this.waitTimer || this.hasClass(k.LOADING)) && this.media.readyState > 2 && (this.removeClass(k.LOADING), f.clearTimeout(this, this.waitTimer), this.waitTimer = null), !this.paused && this.state === U.NOTALLOW && this.duration && (this.setState(U.RUNNING), this.emit(
|
|
6615
|
+
!this._videoHeight && this.media.videoHeight && this.resize(), (this.waitTimer || this.hasClass(k.LOADING)) && this.media.readyState > 2 && (this.removeClass(k.LOADING), f.clearTimeout(this, this.waitTimer), this.waitTimer = null), !this.paused && this.state === U.NOTALLOW && this.duration && (this.setState(U.RUNNING), this.emit(Je)), !this._accPlayed.t && !this.paused && !this.ended && (this._accPlayed.t = (/* @__PURE__ */ new Date()).getTime());
|
|
6578
6616
|
}
|
|
6579
6617
|
}, {
|
|
6580
6618
|
key: "onVolumechange",
|
|
@@ -6633,13 +6671,13 @@ var Lh = ["play", "pause", "replay", "retry"], $o = 0, Yo = 0, Ue = null, yi = /
|
|
|
6633
6671
|
this.videoPos.pi = h, c = c < 0 ? 0 : c;
|
|
6634
6672
|
var d = {
|
|
6635
6673
|
rotate: c
|
|
6636
|
-
}, g = 0, v = 0, m = 1, p = Math.abs(c / 90), T = this.root, C = this.innerContainer, b = T.offsetWidth, x = C ? C.offsetHeight : T.offsetHeight, E = {}, I = x,
|
|
6674
|
+
}, g = 0, v = 0, m = 1, p = Math.abs(c / 90), T = this.root, C = this.innerContainer, b = T.offsetWidth, x = C ? C.offsetHeight : T.offsetHeight, E = {}, I = x, Y = b;
|
|
6637
6675
|
if (p % 2 === 0)
|
|
6638
|
-
m = u > 0 ? 100 / u : l > 0 ? 100 / l : 1, d.scale = m, g = n > 0 ? (100 - u) / 2 - n : 0, d.y = p === 2 ? 0 - g : g, v = o > 0 ? (100 - l) / 2 - o : 0, d.x = p === 2 ? 0 - v : v, E.width = "".concat(
|
|
6676
|
+
m = u > 0 ? 100 / u : l > 0 ? 100 / l : 1, d.scale = m, g = n > 0 ? (100 - u) / 2 - n : 0, d.y = p === 2 ? 0 - g : g, v = o > 0 ? (100 - l) / 2 - o : 0, d.x = p === 2 ? 0 - v : v, E.width = "".concat(Y, "px"), E.height = "".concat(I, "px"), E.maxWidth = "", E.maxHeight = "";
|
|
6639
6677
|
else if (p % 2 === 1) {
|
|
6640
|
-
|
|
6678
|
+
Y = x, I = b;
|
|
6641
6679
|
var G = x - b;
|
|
6642
|
-
v = -G / 2 /
|
|
6680
|
+
v = -G / 2 / Y * 100, d.x = p === 3 ? v + n / 2 : v - n / 2, g = G / 2 / I * 100, d.y = p === 3 ? g + o / 2 : g - o / 2, d.scale = m, E.width = "".concat(Y, "px"), E.maxWidth = "".concat(Y, "px"), E.height = "".concat(I, "px"), E.maxHeight = "".concat(I, "px");
|
|
6643
6681
|
}
|
|
6644
6682
|
var B = f.getTransformStyle(d, this.media.style.transform || this.media.style.webkitTransform);
|
|
6645
6683
|
E.transform = B, E.webkitTransform = B, Object.keys(E).map(function(F) {
|
|
@@ -6799,11 +6837,11 @@ var Lh = ["play", "pause", "replay", "retry"], $o = 0, Yo = 0, Ue = null, yi = /
|
|
|
6799
6837
|
return this.config.lang;
|
|
6800
6838
|
},
|
|
6801
6839
|
set: function(e) {
|
|
6802
|
-
var i =
|
|
6840
|
+
var i = gt.langKeys.filter(function(n) {
|
|
6803
6841
|
return n === e;
|
|
6804
6842
|
});
|
|
6805
6843
|
if (i.length === 0 && e !== "zh") {
|
|
6806
|
-
console.error("Sorry, set lang fail, because the language [".concat(e, "] is not supported now, list of all supported languages is [").concat(
|
|
6844
|
+
console.error("Sorry, set lang fail, because the language [".concat(e, "] is not supported now, list of all supported languages is [").concat(gt.langKeys.join(), "] "));
|
|
6807
6845
|
return;
|
|
6808
6846
|
}
|
|
6809
6847
|
this.config.lang = e, re.setLang(e, this);
|
|
@@ -7011,7 +7049,7 @@ var Lh = ["play", "pause", "replay", "retry"], $o = 0, Yo = 0, Ue = null, yi = /
|
|
|
7011
7049
|
r.plugins || (r.plugins = {}), r.plugins[e] = i;
|
|
7012
7050
|
}
|
|
7013
7051
|
}]), r;
|
|
7014
|
-
})(
|
|
7052
|
+
})(vh);
|
|
7015
7053
|
_(yi, "defaultPreset", null);
|
|
7016
7054
|
_(yi, "XgVideoProxy", null);
|
|
7017
7055
|
yi.instManager = il.getInstance();
|
|
@@ -7024,7 +7062,7 @@ function We(s, a, r) {
|
|
|
7024
7062
|
return '<div class="xg-tips hide"></div>';
|
|
7025
7063
|
}
|
|
7026
7064
|
}
|
|
7027
|
-
var
|
|
7065
|
+
var nt = /* @__PURE__ */ (function(s) {
|
|
7028
7066
|
A(r, s);
|
|
7029
7067
|
var a = R(r);
|
|
7030
7068
|
function r() {
|
|
@@ -7054,13 +7092,13 @@ var tt = /* @__PURE__ */ (function(s) {
|
|
|
7054
7092
|
}
|
|
7055
7093
|
}]), r;
|
|
7056
7094
|
})(V);
|
|
7057
|
-
function
|
|
7095
|
+
function Mh() {
|
|
7058
7096
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
7059
7097
|
<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>
|
|
7060
7098
|
</svg>
|
|
7061
7099
|
`, "image/svg+xml").firstChild;
|
|
7062
7100
|
}
|
|
7063
|
-
function
|
|
7101
|
+
function Fh() {
|
|
7064
7102
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="31" height="40" viewBox="0 -5 31 40">
|
|
7065
7103
|
<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>
|
|
7066
7104
|
</svg>
|
|
@@ -7120,11 +7158,11 @@ var Vr = /* @__PURE__ */ (function(s) {
|
|
|
7120
7158
|
value: function() {
|
|
7121
7159
|
return {
|
|
7122
7160
|
cssFullscreen: {
|
|
7123
|
-
icon:
|
|
7161
|
+
icon: Mh,
|
|
7124
7162
|
class: "xg-get-cssfull"
|
|
7125
7163
|
},
|
|
7126
7164
|
exitCssFullscreen: {
|
|
7127
|
-
icon:
|
|
7165
|
+
icon: Fh,
|
|
7128
7166
|
class: "xg-exit-cssfull"
|
|
7129
7167
|
}
|
|
7130
7168
|
};
|
|
@@ -7153,22 +7191,22 @@ var Vr = /* @__PURE__ */ (function(s) {
|
|
|
7153
7191
|
key: "defaultConfig",
|
|
7154
7192
|
get: function() {
|
|
7155
7193
|
return {
|
|
7156
|
-
position:
|
|
7194
|
+
position: $.CONTROLS_RIGHT,
|
|
7157
7195
|
index: 1,
|
|
7158
7196
|
disable: !1,
|
|
7159
7197
|
target: null
|
|
7160
7198
|
};
|
|
7161
7199
|
}
|
|
7162
7200
|
}]), r;
|
|
7163
|
-
})(
|
|
7164
|
-
function
|
|
7201
|
+
})(nt);
|
|
7202
|
+
function Nh() {
|
|
7165
7203
|
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">
|
|
7166
7204
|
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
7167
7205
|
<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>
|
|
7168
7206
|
</g>
|
|
7169
7207
|
</svg>`, "image/svg+xml").firstChild;
|
|
7170
7208
|
}
|
|
7171
|
-
var
|
|
7209
|
+
var Bh = /* @__PURE__ */ (function(s) {
|
|
7172
7210
|
A(r, s);
|
|
7173
7211
|
var a = R(r);
|
|
7174
7212
|
function r() {
|
|
@@ -7187,7 +7225,7 @@ var Fh = /* @__PURE__ */ (function(s) {
|
|
|
7187
7225
|
value: function() {
|
|
7188
7226
|
return {
|
|
7189
7227
|
screenBack: {
|
|
7190
|
-
icon:
|
|
7228
|
+
icon: Nh,
|
|
7191
7229
|
class: "xg-fullscreen-back"
|
|
7192
7230
|
}
|
|
7193
7231
|
};
|
|
@@ -7223,19 +7261,19 @@ var Fh = /* @__PURE__ */ (function(s) {
|
|
|
7223
7261
|
key: "defaultConfig",
|
|
7224
7262
|
get: function() {
|
|
7225
7263
|
return {
|
|
7226
|
-
position:
|
|
7264
|
+
position: $.ROOT_TOP,
|
|
7227
7265
|
index: 0
|
|
7228
7266
|
};
|
|
7229
7267
|
}
|
|
7230
7268
|
}]), r;
|
|
7231
7269
|
})(V);
|
|
7232
|
-
function
|
|
7270
|
+
function Hh() {
|
|
7233
7271
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
|
|
7234
7272
|
<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>
|
|
7235
7273
|
</svg>
|
|
7236
7274
|
`, "image/svg+xml").firstChild;
|
|
7237
7275
|
}
|
|
7238
|
-
function
|
|
7276
|
+
function Uh() {
|
|
7239
7277
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="2 -4 28 40">
|
|
7240
7278
|
<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>
|
|
7241
7279
|
</svg>
|
|
@@ -7272,11 +7310,11 @@ var nl = /* @__PURE__ */ (function(s) {
|
|
|
7272
7310
|
to: !c
|
|
7273
7311
|
});
|
|
7274
7312
|
}
|
|
7275
|
-
}), this.bind(".xgplayer-fullscreen", ["touchend", "click"], this.handleFullscreen), this.on(
|
|
7313
|
+
}), this.bind(".xgplayer-fullscreen", ["touchend", "click"], this.handleFullscreen), this.on(Re, function(u) {
|
|
7276
7314
|
var l = e.find(".xg-tips");
|
|
7277
7315
|
l && e.changeLangTextKey(l, u ? e.i18nKeys.EXITFULLSCREEN_TIPS : e.i18nKeys.FULLSCREEN_TIPS), e.animate(u);
|
|
7278
7316
|
}), this.config.needBackIcon && (this.topBackIcon = this.player.registerPlugin({
|
|
7279
|
-
plugin:
|
|
7317
|
+
plugin: Bh,
|
|
7280
7318
|
options: {
|
|
7281
7319
|
config: {
|
|
7282
7320
|
onClick: function(l) {
|
|
@@ -7292,11 +7330,11 @@ var nl = /* @__PURE__ */ (function(s) {
|
|
|
7292
7330
|
value: function() {
|
|
7293
7331
|
return {
|
|
7294
7332
|
fullscreen: {
|
|
7295
|
-
icon:
|
|
7333
|
+
icon: Hh,
|
|
7296
7334
|
class: "xg-get-fullscreen"
|
|
7297
7335
|
},
|
|
7298
7336
|
exitFullscreen: {
|
|
7299
|
-
icon:
|
|
7337
|
+
icon: Uh,
|
|
7300
7338
|
class: "xg-exit-fullscreen"
|
|
7301
7339
|
}
|
|
7302
7340
|
};
|
|
@@ -7364,7 +7402,7 @@ var nl = /* @__PURE__ */ (function(s) {
|
|
|
7364
7402
|
key: "defaultConfig",
|
|
7365
7403
|
get: function() {
|
|
7366
7404
|
return {
|
|
7367
|
-
position:
|
|
7405
|
+
position: $.CONTROLS_RIGHT,
|
|
7368
7406
|
index: 0,
|
|
7369
7407
|
useCssFullscreen: !1,
|
|
7370
7408
|
rotateFullscreen: !1,
|
|
@@ -7377,7 +7415,7 @@ var nl = /* @__PURE__ */ (function(s) {
|
|
|
7377
7415
|
};
|
|
7378
7416
|
}
|
|
7379
7417
|
}]), r;
|
|
7380
|
-
})(
|
|
7418
|
+
})(nt);
|
|
7381
7419
|
function ga() {
|
|
7382
7420
|
return new DOMParser().parseFromString(`<svg class="play" xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="3 -4 28 40">
|
|
7383
7421
|
<path fill="#fff" transform="scale(0.0320625 0.0320625)" d="M576,363L810,512L576,661zM342,214L576,363L576,661L342,810z"></path>
|
|
@@ -7419,7 +7457,7 @@ var rl = /* @__PURE__ */ (function(s) {
|
|
|
7419
7457
|
key: "listenEvents",
|
|
7420
7458
|
value: function() {
|
|
7421
7459
|
var e = this, i = this.player;
|
|
7422
|
-
this.on([pe, vt, At,
|
|
7460
|
+
this.on([pe, vt, At, it], function() {
|
|
7423
7461
|
e.animate(i.paused);
|
|
7424
7462
|
});
|
|
7425
7463
|
}
|
|
@@ -7475,13 +7513,13 @@ var rl = /* @__PURE__ */ (function(s) {
|
|
|
7475
7513
|
key: "defaultConfig",
|
|
7476
7514
|
get: function() {
|
|
7477
7515
|
return {
|
|
7478
|
-
position:
|
|
7516
|
+
position: $.CONTROLS_LEFT,
|
|
7479
7517
|
index: 0,
|
|
7480
7518
|
disable: !1
|
|
7481
7519
|
};
|
|
7482
7520
|
}
|
|
7483
7521
|
}]), r;
|
|
7484
|
-
})(
|
|
7522
|
+
})(nt), jh = [{
|
|
7485
7523
|
tag: "xg-cache",
|
|
7486
7524
|
className: "xgplayer-progress-cache",
|
|
7487
7525
|
styleKey: "cachedColor"
|
|
@@ -7489,7 +7527,7 @@ var rl = /* @__PURE__ */ (function(s) {
|
|
|
7489
7527
|
tag: "xg-played",
|
|
7490
7528
|
className: "xgplayer-progress-played",
|
|
7491
7529
|
styleKey: "playedColor"
|
|
7492
|
-
}],
|
|
7530
|
+
}], qh = /* @__PURE__ */ (function() {
|
|
7493
7531
|
function s(a) {
|
|
7494
7532
|
w(this, s), this.fragments = a.fragments || [], this.fragments.length === 0 && this.fragments.push({
|
|
7495
7533
|
percent: 1
|
|
@@ -7676,7 +7714,7 @@ var rl = /* @__PURE__ */ (function(s) {
|
|
|
7676
7714
|
var u = f.createDom("xg-inner", "", {
|
|
7677
7715
|
style: t ? "background:".concat(t, "; flex: ").concat(o.percent) : "flex: ".concat(o.percent)
|
|
7678
7716
|
}, "".concat(o.isFocus ? n : "", " xgplayer-progress-inner ").concat(i));
|
|
7679
|
-
return r.root.appendChild(u),
|
|
7717
|
+
return r.root.appendChild(u), jh.forEach(function(l) {
|
|
7680
7718
|
u.appendChild(f.createDom(l.tag, "", {
|
|
7681
7719
|
style: l.styleKey ? "background: ".concat(r.style[l.styleKey], "; width:0;") : "width:0;"
|
|
7682
7720
|
}, l.className));
|
|
@@ -7824,7 +7862,7 @@ var rl = /* @__PURE__ */ (function(s) {
|
|
|
7824
7862
|
e.emitUserAction("fragment_focus", "fragment_focus", l);
|
|
7825
7863
|
}
|
|
7826
7864
|
});
|
|
7827
|
-
this.innerList ? this.innerList.reset(o) : (this.innerList = new
|
|
7865
|
+
this.innerList ? this.innerList.reset(o) : (this.innerList = new qh(o), this.outer.insertBefore(this.innerList.render(), this.outer.children[0]), ["findHightLight", "unHightLight", "setHightLight", "findFragment"].map(function(u) {
|
|
7828
7866
|
e[u] = e.innerList[u].bind(e.innerList);
|
|
7829
7867
|
}));
|
|
7830
7868
|
}
|
|
@@ -7862,13 +7900,13 @@ var rl = /* @__PURE__ */ (function(s) {
|
|
|
7862
7900
|
e.onMouseLeave();
|
|
7863
7901
|
}), this.on(ve, function() {
|
|
7864
7902
|
e.onTimeupdate();
|
|
7865
|
-
}), this.on(
|
|
7903
|
+
}), this.on(Oe, function() {
|
|
7866
7904
|
e.onTimeupdate(), e.onCacheUpdate();
|
|
7867
7905
|
}), this.on(Nu, function() {
|
|
7868
7906
|
e.onCacheUpdate();
|
|
7869
|
-
}), this.on(
|
|
7907
|
+
}), this.on(tt, function() {
|
|
7870
7908
|
e.onCacheUpdate(!0), e.onTimeupdate(!0), e._state.now = 0;
|
|
7871
|
-
}), this.on(
|
|
7909
|
+
}), this.on(it, function() {
|
|
7872
7910
|
e.onReset();
|
|
7873
7911
|
}), this.on(ze, function() {
|
|
7874
7912
|
e.onVideoResize();
|
|
@@ -8082,7 +8120,7 @@ var rl = /* @__PURE__ */ (function(s) {
|
|
|
8082
8120
|
key: "defaultConfig",
|
|
8083
8121
|
get: function() {
|
|
8084
8122
|
return {
|
|
8085
|
-
position:
|
|
8123
|
+
position: $.CONTROLS_CENTER,
|
|
8086
8124
|
index: 0,
|
|
8087
8125
|
disable: !1,
|
|
8088
8126
|
isDraggingSeek: !0,
|
|
@@ -8144,11 +8182,11 @@ var rl = /* @__PURE__ */ (function(s) {
|
|
|
8144
8182
|
key: "listenEvents",
|
|
8145
8183
|
value: function() {
|
|
8146
8184
|
var e = this;
|
|
8147
|
-
this.on([Fe,
|
|
8185
|
+
this.on([Fe, Oe, ve], function(i) {
|
|
8148
8186
|
i.eventName === "durationchange" && (e.isActiving = !1), e.onTimeUpdate();
|
|
8149
|
-
}), this.on(
|
|
8187
|
+
}), this.on(tt, function() {
|
|
8150
8188
|
e.onTimeUpdate(!0);
|
|
8151
|
-
}), this.on(
|
|
8189
|
+
}), this.on(it, function() {
|
|
8152
8190
|
e.onReset();
|
|
8153
8191
|
});
|
|
8154
8192
|
}
|
|
@@ -8232,7 +8270,7 @@ var rl = /* @__PURE__ */ (function(s) {
|
|
|
8232
8270
|
var e = this, i = this.player, n = function() {
|
|
8233
8271
|
e.isActiving = !1;
|
|
8234
8272
|
};
|
|
8235
|
-
this.off(
|
|
8273
|
+
this.off(Oe, n), i.isSeeking && i.media.seeking ? this.once(Oe, n) : this.isActiving = !1;
|
|
8236
8274
|
}
|
|
8237
8275
|
}, {
|
|
8238
8276
|
key: "destroy",
|
|
@@ -8260,28 +8298,28 @@ var rl = /* @__PURE__ */ (function(s) {
|
|
|
8260
8298
|
key: "defaultConfig",
|
|
8261
8299
|
get: function() {
|
|
8262
8300
|
return {
|
|
8263
|
-
position:
|
|
8301
|
+
position: $.CONTROLS_LEFT,
|
|
8264
8302
|
index: 2,
|
|
8265
8303
|
disable: !1
|
|
8266
8304
|
};
|
|
8267
8305
|
}
|
|
8268
8306
|
}]), r;
|
|
8269
8307
|
})(V);
|
|
8270
|
-
function
|
|
8308
|
+
function Vh() {
|
|
8271
8309
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
8272
8310
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
8273
8311
|
<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>
|
|
8274
8312
|
</svg>
|
|
8275
8313
|
`, "image/svg+xml").firstChild;
|
|
8276
8314
|
}
|
|
8277
|
-
function
|
|
8315
|
+
function zh() {
|
|
8278
8316
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
8279
8317
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
8280
8318
|
<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>
|
|
8281
8319
|
</svg>
|
|
8282
8320
|
`, "image/svg+xml").firstChild;
|
|
8283
8321
|
}
|
|
8284
|
-
function
|
|
8322
|
+
function Gh() {
|
|
8285
8323
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="28" height="40" viewBox="0 -10 28 40">
|
|
8286
8324
|
<path fill="#fff" transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>
|
|
8287
8325
|
<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>
|
|
@@ -8336,15 +8374,15 @@ var ol = /* @__PURE__ */ (function(s) {
|
|
|
8336
8374
|
value: function() {
|
|
8337
8375
|
return {
|
|
8338
8376
|
volumeSmall: {
|
|
8339
|
-
icon:
|
|
8377
|
+
icon: zh,
|
|
8340
8378
|
class: "xg-volume-small"
|
|
8341
8379
|
},
|
|
8342
8380
|
volumeLarge: {
|
|
8343
|
-
icon:
|
|
8381
|
+
icon: Vh,
|
|
8344
8382
|
class: "xg-volume"
|
|
8345
8383
|
},
|
|
8346
8384
|
volumeMuted: {
|
|
8347
|
-
icon:
|
|
8385
|
+
icon: Gh,
|
|
8348
8386
|
class: "xg-volume-mute"
|
|
8349
8387
|
}
|
|
8350
8388
|
};
|
|
@@ -8473,7 +8511,7 @@ var ol = /* @__PURE__ */ (function(s) {
|
|
|
8473
8511
|
key: "defaultConfig",
|
|
8474
8512
|
get: function() {
|
|
8475
8513
|
return {
|
|
8476
|
-
position:
|
|
8514
|
+
position: $.CONTROLS_RIGHT,
|
|
8477
8515
|
index: 1,
|
|
8478
8516
|
disable: !1,
|
|
8479
8517
|
showValueLabel: !1,
|
|
@@ -8494,7 +8532,7 @@ var je = {
|
|
|
8494
8532
|
WAIT_END: "waitingEnd",
|
|
8495
8533
|
SEEK_START: "seekStart",
|
|
8496
8534
|
SEEK_END: "seekEnd"
|
|
8497
|
-
},
|
|
8535
|
+
}, Wh = /* @__PURE__ */ (function(s) {
|
|
8498
8536
|
A(r, s);
|
|
8499
8537
|
var a = R(r);
|
|
8500
8538
|
function r() {
|
|
@@ -8553,18 +8591,18 @@ var je = {
|
|
|
8553
8591
|
e.vt = se(), e.fvt = e.vt - e.pt, e.loadedCostTime = e.vt - e.newPointTime;
|
|
8554
8592
|
var i = e._state, n = i.isTimeUpdate, o = i.isFFSend, u = i.autoplayStart;
|
|
8555
8593
|
H.logInfo("[xgLogger]".concat(e.player.playerId, " LOADED_DATA"), "fvt:".concat(e.fvt, " isTimeUpdate:").concat(e._state.isTimeUpdate, " loadedCostTime:").concat(e.loadedCostTime)), (n || u) && e._sendFF("loadedData"), o || e.emitLog(je.LOADED_DATA, {}), e.suspendWaitingStatus("loadeddata");
|
|
8556
|
-
}), this.on(gi, this._onSeeking), this.on(
|
|
8594
|
+
}), this.on(gi, this._onSeeking), this.on(Oe, this._onSeeked), this.on(fa, function() {
|
|
8557
8595
|
e.endState("destroy");
|
|
8558
8596
|
}), this.on(pi, function() {
|
|
8559
8597
|
e.endState("urlChange"), H.logInfo("[xgLogger]".concat(e.player.playerId, " URL_CHANGE")), e._state.isFFSend && e._onReset();
|
|
8560
|
-
}), this.on([di,
|
|
8598
|
+
}), this.on([di, De], this._onPlaying), this.on(Rt, this._onWaiting), this.on(At, this._onError), this.on(mi, function() {
|
|
8561
8599
|
H.logInfo("[xgLogger]".concat(e.player.playerId, " RESET")), e.endState("reset"), e._initOnceEvents(), e._onReset();
|
|
8562
8600
|
});
|
|
8563
8601
|
}
|
|
8564
8602
|
}, {
|
|
8565
8603
|
key: "_initOnceEvents",
|
|
8566
8604
|
value: function() {
|
|
8567
|
-
this.off(
|
|
8605
|
+
this.off(Je, this._onAutoplayStart), this.off(ve, this._onTimeupdate), this.once(Je, this._onAutoplayStart), this.once(ve, this._onTimeupdate);
|
|
8568
8606
|
}
|
|
8569
8607
|
}, {
|
|
8570
8608
|
key: "_sendFF",
|
|
@@ -8645,13 +8683,13 @@ var je = {
|
|
|
8645
8683
|
}
|
|
8646
8684
|
}]), r;
|
|
8647
8685
|
})(V);
|
|
8648
|
-
function
|
|
8686
|
+
function Kh() {
|
|
8649
8687
|
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">
|
|
8650
8688
|
<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>
|
|
8651
8689
|
</svg>
|
|
8652
8690
|
`, "image/svg+xml").firstChild;
|
|
8653
8691
|
}
|
|
8654
|
-
var
|
|
8692
|
+
var $h = /* @__PURE__ */ (function(s) {
|
|
8655
8693
|
A(r, s);
|
|
8656
8694
|
var a = R(r);
|
|
8657
8695
|
function r() {
|
|
@@ -8661,7 +8699,7 @@ var Wh = /* @__PURE__ */ (function(s) {
|
|
|
8661
8699
|
key: "registerIcons",
|
|
8662
8700
|
value: function() {
|
|
8663
8701
|
return {
|
|
8664
|
-
replay:
|
|
8702
|
+
replay: Kh
|
|
8665
8703
|
};
|
|
8666
8704
|
}
|
|
8667
8705
|
}, {
|
|
@@ -8674,7 +8712,7 @@ var Wh = /* @__PURE__ */ (function(s) {
|
|
|
8674
8712
|
pre: function(n) {
|
|
8675
8713
|
n.preventDefault(), n.stopPropagation();
|
|
8676
8714
|
}
|
|
8677
|
-
}), this.bind(".xgplayer-replay", ["click", "touchend"], this.__handleReplay), this.on(
|
|
8715
|
+
}), this.bind(".xgplayer-replay", ["click", "touchend"], this.__handleReplay), this.on(tt, function() {
|
|
8678
8716
|
if (e.playerConfig.loop || f.addClass(e.player.root, "replay"), !e.config.disable) {
|
|
8679
8717
|
e.show();
|
|
8680
8718
|
var i = e.root.querySelector("path");
|
|
@@ -8734,7 +8772,7 @@ var Wh = /* @__PURE__ */ (function(s) {
|
|
|
8734
8772
|
};
|
|
8735
8773
|
}
|
|
8736
8774
|
}]), r;
|
|
8737
|
-
})(V),
|
|
8775
|
+
})(V), Yh = /* @__PURE__ */ (function(s) {
|
|
8738
8776
|
A(r, s);
|
|
8739
8777
|
var a = R(r);
|
|
8740
8778
|
function r() {
|
|
@@ -8767,7 +8805,7 @@ var Wh = /* @__PURE__ */ (function(s) {
|
|
|
8767
8805
|
key: "afterCreate",
|
|
8768
8806
|
value: function() {
|
|
8769
8807
|
var e = this;
|
|
8770
|
-
this.config.useVideoPoster && this.config.poster && (this.player.media.poster = this.config.poster), this.on(
|
|
8808
|
+
this.config.useVideoPoster && this.config.poster && (this.player.media.poster = this.config.poster), this.on(tt, function() {
|
|
8771
8809
|
e.isEndedShow && e.show();
|
|
8772
8810
|
}), this.on(di, function() {
|
|
8773
8811
|
e.hide();
|
|
@@ -8851,26 +8889,26 @@ var Wh = /* @__PURE__ */ (function(s) {
|
|
|
8851
8889
|
};
|
|
8852
8890
|
}
|
|
8853
8891
|
}]), r;
|
|
8854
|
-
})(V),
|
|
8855
|
-
function
|
|
8892
|
+
})(V), Se = {};
|
|
8893
|
+
function Xh(s, a) {
|
|
8856
8894
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
8857
8895
|
start: null,
|
|
8858
8896
|
end: null
|
|
8859
8897
|
};
|
|
8860
|
-
return
|
|
8861
|
-
r.end && r.end(), window.clearTimeout(
|
|
8862
|
-
}, a),
|
|
8898
|
+
return Se[s] && window.clearTimeout(Se[s].id), Se[s] = {}, r.start && r.start(), Se[s].id = window.setTimeout(function() {
|
|
8899
|
+
r.end && r.end(), window.clearTimeout(Se[s].id), delete Se[s];
|
|
8900
|
+
}, a), Se[s].id;
|
|
8863
8901
|
}
|
|
8864
8902
|
function Zo(s) {
|
|
8865
8903
|
if (s) {
|
|
8866
8904
|
window.clearTimeout(s);
|
|
8867
8905
|
return;
|
|
8868
8906
|
}
|
|
8869
|
-
Object.keys(
|
|
8870
|
-
window.clearTimeout(
|
|
8907
|
+
Object.keys(Se).map(function(a) {
|
|
8908
|
+
window.clearTimeout(Se[a].id), delete Se[a];
|
|
8871
8909
|
});
|
|
8872
8910
|
}
|
|
8873
|
-
var
|
|
8911
|
+
var Zh = /* @__PURE__ */ (function(s) {
|
|
8874
8912
|
A(r, s);
|
|
8875
8913
|
var a = R(r);
|
|
8876
8914
|
function r(t) {
|
|
@@ -8898,7 +8936,7 @@ var Yh = /* @__PURE__ */ (function(s) {
|
|
|
8898
8936
|
var e = this, i = this.player, n = this.playerConfig;
|
|
8899
8937
|
this.once(la, function() {
|
|
8900
8938
|
n && (n.lang && n.lang === "en" ? f.addClass(i.root, "lang-is-en") : n.lang === "jp" && f.addClass(i.root, "lang-is-jp"));
|
|
8901
|
-
}), this.on(
|
|
8939
|
+
}), this.on(Je, this.onAutoplayStart), this.on(ca, function() {
|
|
8902
8940
|
var o = e.config.mode === "auto" ? "auto-hide" : "hide";
|
|
8903
8941
|
e.setAttr("data-state", "play"), f.removeClass(e.root, o), e.show();
|
|
8904
8942
|
}), this.on(pe, function() {
|
|
@@ -8974,7 +9012,7 @@ var Yh = /* @__PURE__ */ (function(s) {
|
|
|
8974
9012
|
key: "animate",
|
|
8975
9013
|
value: function(e) {
|
|
8976
9014
|
var i = this;
|
|
8977
|
-
this._animateId =
|
|
9015
|
+
this._animateId = Xh("pauseplay", 400, {
|
|
8978
9016
|
start: function() {
|
|
8979
9017
|
f.addClass(i.root, "interact"), i.show(), i.switchStatus(!0);
|
|
8980
9018
|
},
|
|
@@ -9062,7 +9100,7 @@ var Yh = /* @__PURE__ */ (function(s) {
|
|
|
9062
9100
|
};
|
|
9063
9101
|
}
|
|
9064
9102
|
}]), r;
|
|
9065
|
-
})(V),
|
|
9103
|
+
})(V), Jh = /* @__PURE__ */ (function(s) {
|
|
9066
9104
|
A(r, s);
|
|
9067
9105
|
var a = R(r);
|
|
9068
9106
|
function r() {
|
|
@@ -9141,7 +9179,7 @@ var Yh = /* @__PURE__ */ (function(s) {
|
|
|
9141
9179
|
key: "defaultConfig",
|
|
9142
9180
|
get: function() {
|
|
9143
9181
|
return {
|
|
9144
|
-
position:
|
|
9182
|
+
position: $.CONTROLS_RIGHT,
|
|
9145
9183
|
index: 10
|
|
9146
9184
|
};
|
|
9147
9185
|
}
|
|
@@ -9152,7 +9190,7 @@ function Qo(s) {
|
|
|
9152
9190
|
return r && a;
|
|
9153
9191
|
}
|
|
9154
9192
|
var pa = ["paddingLeft", "paddingRight", "paddingTop", "paddingBottom", "marginLeft", "marginRight", "marginTop", "marginBottom", "borderLeftWidth", "borderRightWidth", "borderTopWidth", "borderBottomWidth"], ul = pa.length;
|
|
9155
|
-
function
|
|
9193
|
+
function Qh() {
|
|
9156
9194
|
for (var s = {
|
|
9157
9195
|
width: 0,
|
|
9158
9196
|
height: 0,
|
|
@@ -9166,15 +9204,15 @@ function Zh() {
|
|
|
9166
9204
|
}
|
|
9167
9205
|
return s;
|
|
9168
9206
|
}
|
|
9169
|
-
function
|
|
9207
|
+
function ed(s) {
|
|
9170
9208
|
var a = window.getComputedStyle(s);
|
|
9171
9209
|
return a;
|
|
9172
9210
|
}
|
|
9173
9211
|
function eu(s) {
|
|
9174
9212
|
if (typeof s == "string" && (s = document.querySelector(s)), !(!s || ae(s) !== "object" || !s.nodeType)) {
|
|
9175
|
-
var a =
|
|
9213
|
+
var a = ed(s);
|
|
9176
9214
|
if (a.display === "none")
|
|
9177
|
-
return
|
|
9215
|
+
return Qh();
|
|
9178
9216
|
var r = {};
|
|
9179
9217
|
r.width = s.offsetWidth, r.height = s.offsetHeight;
|
|
9180
9218
|
for (var t = r.isBorderBox = a.boxSizing === "border-box", e = 0; e < ul; e++) {
|
|
@@ -9202,7 +9240,7 @@ var Ar = {
|
|
|
9202
9240
|
mousedown: ["mousemove", "mouseup"],
|
|
9203
9241
|
touchstart: ["touchmove", "touchend", "touchcancel"],
|
|
9204
9242
|
pointerdown: ["pointermove", "pointerup", "pointercancel"]
|
|
9205
|
-
},
|
|
9243
|
+
}, td = /* @__PURE__ */ (function(s) {
|
|
9206
9244
|
A(r, s);
|
|
9207
9245
|
var a = R(r);
|
|
9208
9246
|
function r(t) {
|
|
@@ -9412,7 +9450,7 @@ var Ar = {
|
|
|
9412
9450
|
return parseInt(e, 10);
|
|
9413
9451
|
}
|
|
9414
9452
|
}]), r;
|
|
9415
|
-
})(Du),
|
|
9453
|
+
})(Du), id = /* @__PURE__ */ (function(s) {
|
|
9416
9454
|
A(r, s);
|
|
9417
9455
|
var a = R(r);
|
|
9418
9456
|
function r(t) {
|
|
@@ -9468,7 +9506,7 @@ var Ar = {
|
|
|
9468
9506
|
i.controls.registerPlugin(Jo, o, Jo.pluginName);
|
|
9469
9507
|
}
|
|
9470
9508
|
var u = f.checkTouchSupport() ? "touchend" : "click";
|
|
9471
|
-
this.bind(".mini-cancel-btn", u, this.onCancelClick), this.bind(".play-icon", u, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new
|
|
9509
|
+
this.bind(".mini-cancel-btn", u, this.onCancelClick), this.bind(".play-icon", u, this.onCenterClick), this.config.disableDrag || (this._draggabilly = new td(this.player.root, {
|
|
9472
9510
|
handle: this.root
|
|
9473
9511
|
})), this.config.isScrollSwitch && window.addEventListener("scroll", this.onScroll);
|
|
9474
9512
|
}
|
|
@@ -9705,12 +9743,12 @@ var Ar = {
|
|
|
9705
9743
|
TOUCH_MOVE: "touchmove",
|
|
9706
9744
|
TOUCH_START: "touchstart",
|
|
9707
9745
|
TOUCH_END: "touchend"
|
|
9708
|
-
},
|
|
9746
|
+
}, nd = {
|
|
9709
9747
|
start: "touchstart",
|
|
9710
9748
|
end: "touchend",
|
|
9711
9749
|
move: "touchmove",
|
|
9712
9750
|
cancel: "touchcancel"
|
|
9713
|
-
},
|
|
9751
|
+
}, rd = {
|
|
9714
9752
|
start: "mousedown",
|
|
9715
9753
|
end: "mouseup",
|
|
9716
9754
|
move: "mousemove",
|
|
@@ -9719,7 +9757,7 @@ var Ar = {
|
|
|
9719
9757
|
function iu(s) {
|
|
9720
9758
|
return s && s.length > 0 ? s[s.length - 1] : null;
|
|
9721
9759
|
}
|
|
9722
|
-
function
|
|
9760
|
+
function ad() {
|
|
9723
9761
|
return {
|
|
9724
9762
|
pressDelay: 600,
|
|
9725
9763
|
dbClickDelay: 200,
|
|
@@ -9729,7 +9767,7 @@ function nd() {
|
|
|
9729
9767
|
needPreventDefault: !0
|
|
9730
9768
|
};
|
|
9731
9769
|
}
|
|
9732
|
-
var
|
|
9770
|
+
var sd = /* @__PURE__ */ (function() {
|
|
9733
9771
|
function s(a) {
|
|
9734
9772
|
var r = this, t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
9735
9773
|
eventType: "touch"
|
|
@@ -9750,9 +9788,9 @@ var rd = /* @__PURE__ */ (function() {
|
|
|
9750
9788
|
start: !1,
|
|
9751
9789
|
x: 0,
|
|
9752
9790
|
y: 0
|
|
9753
|
-
}, this.config =
|
|
9791
|
+
}, this.config = ad(), Object.keys(t).map(function(e) {
|
|
9754
9792
|
r.config[e] = t[e];
|
|
9755
|
-
}), this.root = a, this.events = t.eventType === "mouse" ?
|
|
9793
|
+
}), this.root = a, this.events = t.eventType === "mouse" ? rd : nd, this.pressIntrvalId = null, this.dbIntrvalId = null, this.__handlers = {}, this._initEvent();
|
|
9756
9794
|
}
|
|
9757
9795
|
return S(s, [{
|
|
9758
9796
|
key: "_initEvent",
|
|
@@ -9831,7 +9869,7 @@ var rd = /* @__PURE__ */ (function() {
|
|
|
9831
9869
|
}
|
|
9832
9870
|
}]), s;
|
|
9833
9871
|
})();
|
|
9834
|
-
function
|
|
9872
|
+
function od() {
|
|
9835
9873
|
return new DOMParser().parseFromString(`<svg width="20" height="9" viewBox="0 0 8 9" fill="none" xmlns="http://www.w3.org/2000/svg"
|
|
9836
9874
|
xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
9837
9875
|
<path opacity="0.54"
|
|
@@ -9840,11 +9878,11 @@ function ad() {
|
|
|
9840
9878
|
<path transform="translate(5 0)" d="M7.5 3.63397C8.16667 4.01887 8.16667 4.98113 7.5 5.36603L1.5 8.83013C0.833334 9.21503 0 8.7339 0 7.9641L0 1.0359C0 0.266098 0.833333 -0.215027 1.5 0.169873L7.5 3.63397Z" fill="white"/>
|
|
9841
9879
|
</svg>`, "image/svg+xml").firstChild;
|
|
9842
9880
|
}
|
|
9843
|
-
var
|
|
9881
|
+
var ut = {
|
|
9844
9882
|
AUTO: "auto",
|
|
9845
9883
|
SEEKING: "seeking",
|
|
9846
9884
|
PLAYBACK: "playbackrate"
|
|
9847
|
-
}, Dr = ["videoClick", "videoDbClick"],
|
|
9885
|
+
}, Dr = ["videoClick", "videoDbClick"], ud = /* @__PURE__ */ (function(s) {
|
|
9848
9886
|
A(r, s);
|
|
9849
9887
|
var a = R(r);
|
|
9850
9888
|
function r(t) {
|
|
@@ -9880,7 +9918,7 @@ var st = {
|
|
|
9880
9918
|
}, 10), !!u.isStart) {
|
|
9881
9919
|
u.scope > -1 && i.cancelable && i.preventDefault();
|
|
9882
9920
|
var c = e.config, h = c.disableGesture, d = c.gestureX;
|
|
9883
|
-
!h && d ? e.endLastMove(u.scope) : u.time = 0, u.scope = -1, e.resetPos(), f.checkIsFunction(l.enableSwipeHandler) && l.enableSwipeHandler(), e.changeAction(
|
|
9921
|
+
!h && d ? e.endLastMove(u.scope) : u.time = 0, u.scope = -1, e.resetPos(), f.checkIsFunction(l.enableSwipeHandler) && l.enableSwipeHandler(), e.changeAction(ut.AUTO);
|
|
9884
9922
|
}
|
|
9885
9923
|
}), _(y(e), "onRootTouchMove", function(i) {
|
|
9886
9924
|
e.config.disableGesture || !e.config.gestureX || e.checkIsRootTarget(i) && (i.stopPropagation(), e.pos.isStart ? e.onTouchMove(i) : e.onTouchStart(i));
|
|
@@ -9918,7 +9956,7 @@ var st = {
|
|
|
9918
9956
|
value: function() {
|
|
9919
9957
|
return {
|
|
9920
9958
|
seekTipIcon: {
|
|
9921
|
-
icon:
|
|
9959
|
+
icon: od,
|
|
9922
9960
|
class: "xg-seek-pre"
|
|
9923
9961
|
}
|
|
9924
9962
|
};
|
|
@@ -9933,7 +9971,7 @@ var st = {
|
|
|
9933
9971
|
var i = this.playerConfig, n = this.config, o = this.player;
|
|
9934
9972
|
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"), o.root.appendChild(this.xgMask), this.initCustomStyle(), this.registerThumbnail();
|
|
9935
9973
|
var u = this.domEventType === "mouse" ? "mouse" : "touch";
|
|
9936
|
-
this.touch = new
|
|
9974
|
+
this.touch = new sd(this.root, {
|
|
9937
9975
|
eventType: u,
|
|
9938
9976
|
needPreventDefault: !this.config.disableGesture
|
|
9939
9977
|
}), this.root.addEventListener("contextmenu", function(d) {
|
|
@@ -9943,7 +9981,7 @@ var st = {
|
|
|
9943
9981
|
l && l.center && (l.center.addEventListener("touchmove", this.onRootTouchMove, !0), l.center.addEventListener("touchend", this.onRootTouchEnd, !0), l.center.addEventListener("touchcancel", this.onRootTouchEnd, !0)), this.on(Fe, function() {
|
|
9944
9982
|
var d = e.player, g = e.config;
|
|
9945
9983
|
d.duration > 0 && d.duration * 1e3 < g.moveDuration && (g.moveDuration = d.duration * 1e3);
|
|
9946
|
-
}), this.on([
|
|
9984
|
+
}), this.on([De, tt], function() {
|
|
9947
9985
|
var d = e.pos, g = d.time, v = d.isStart;
|
|
9948
9986
|
!v && g > 0 && (e.pos.time = 0);
|
|
9949
9987
|
});
|
|
@@ -9966,7 +10004,7 @@ var st = {
|
|
|
9966
10004
|
e.activeSeekNote(d.currentTime, d.forward);
|
|
9967
10005
|
}), ["dragend", "click"].forEach(function(d) {
|
|
9968
10006
|
h.addCallBack(d, function() {
|
|
9969
|
-
e.changeAction(
|
|
10007
|
+
e.changeAction(ut.AUTO);
|
|
9970
10008
|
});
|
|
9971
10009
|
}));
|
|
9972
10010
|
}
|
|
@@ -10072,7 +10110,7 @@ var st = {
|
|
|
10072
10110
|
}, 500);
|
|
10073
10111
|
break;
|
|
10074
10112
|
}
|
|
10075
|
-
this.changeAction(
|
|
10113
|
+
this.changeAction(ut.AUTO);
|
|
10076
10114
|
}
|
|
10077
10115
|
}, {
|
|
10078
10116
|
key: "checkIsRootTarget",
|
|
@@ -10136,7 +10174,7 @@ var st = {
|
|
|
10136
10174
|
prop: "playbackRate",
|
|
10137
10175
|
from: o.playbackRate,
|
|
10138
10176
|
to: n.pressRate
|
|
10139
|
-
}), o.playbackRate = n.pressRate, this.changeAction(
|
|
10177
|
+
}), o.playbackRate = n.pressRate, this.changeAction(ut.PLAYBACK));
|
|
10140
10178
|
}
|
|
10141
10179
|
}, {
|
|
10142
10180
|
key: "onPressEnd",
|
|
@@ -10146,7 +10184,7 @@ var st = {
|
|
|
10146
10184
|
prop: "playbackRate",
|
|
10147
10185
|
from: o.playbackRate,
|
|
10148
10186
|
to: i.rate
|
|
10149
|
-
}), o.playbackRate = i.rate, i.rate = 1, this.changeAction(
|
|
10187
|
+
}), o.playbackRate = i.rate, i.rate = 1, this.changeAction(ut.AUTO));
|
|
10150
10188
|
}
|
|
10151
10189
|
}, {
|
|
10152
10190
|
key: "updateTime",
|
|
@@ -10181,7 +10219,7 @@ var st = {
|
|
|
10181
10219
|
value: function(e) {
|
|
10182
10220
|
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, n = this.player, o = this.config, u = !(this.duration !== 1 / 0 && this.duration > 0);
|
|
10183
10221
|
if (!(!e || typeof e != "number" || u || o.disableActive)) {
|
|
10184
|
-
e < 0 ? e = 0 : e > n.duration && (e = n.duration - 0.2), this.changeAction(
|
|
10222
|
+
e < 0 ? e = 0 : e > n.duration && (e = n.duration - 0.2), this.changeAction(ut.SEEKING);
|
|
10185
10223
|
var l = n.plugins.start;
|
|
10186
10224
|
l && l.focusHide(), this.find(".xg-dur").innerHTML = f.format(this.duration), this.find(".xg-cur").innerHTML = f.format(e), this.find(".xg-curbar").style.width = "".concat(e / this.duration * 100, "%"), i ? f.removeClass(this.find(".xg-seek-show"), "xg-back") : f.addClass(this.find(".xg-seek-show"), "xg-back"), this.updateThumbnails(e);
|
|
10187
10225
|
}
|
|
@@ -10278,7 +10316,7 @@ var st = {
|
|
|
10278
10316
|
}
|
|
10279
10317
|
}]), r;
|
|
10280
10318
|
})(V);
|
|
10281
|
-
function
|
|
10319
|
+
function ld(s) {
|
|
10282
10320
|
s.preventDefault(), s.returnValue = !1;
|
|
10283
10321
|
}
|
|
10284
10322
|
function nu(s) {
|
|
@@ -10527,7 +10565,7 @@ var ru = /* @__PURE__ */ (function(s) {
|
|
|
10527
10565
|
isPress: n
|
|
10528
10566
|
}, this.keyCodeMap[o[u]]));
|
|
10529
10567
|
}
|
|
10530
|
-
|
|
10568
|
+
ld(i), i.stopPropagation();
|
|
10531
10569
|
break;
|
|
10532
10570
|
}
|
|
10533
10571
|
}
|
|
@@ -10569,13 +10607,13 @@ var ru = /* @__PURE__ */ (function(s) {
|
|
|
10569
10607
|
}
|
|
10570
10608
|
}]), r;
|
|
10571
10609
|
})(Ge);
|
|
10572
|
-
function
|
|
10610
|
+
function cd() {
|
|
10573
10611
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="-5 -5 110 110">
|
|
10574
10612
|
<path d="M100,50A50,50,0,1,1,50,0" stroke-width="5" stroke="#ddd" stroke-dasharray="236" fill="none"></path>
|
|
10575
10613
|
</svg>
|
|
10576
10614
|
`, "image/svg+xml").firstChild;
|
|
10577
10615
|
}
|
|
10578
|
-
var
|
|
10616
|
+
var fd = /* @__PURE__ */ (function(s) {
|
|
10579
10617
|
A(r, s);
|
|
10580
10618
|
var a = R(r);
|
|
10581
10619
|
function r() {
|
|
@@ -10585,7 +10623,7 @@ var ld = /* @__PURE__ */ (function(s) {
|
|
|
10585
10623
|
key: "registerIcons",
|
|
10586
10624
|
value: function() {
|
|
10587
10625
|
return {
|
|
10588
|
-
loadingIcon:
|
|
10626
|
+
loadingIcon: cd
|
|
10589
10627
|
};
|
|
10590
10628
|
}
|
|
10591
10629
|
}, {
|
|
@@ -10610,11 +10648,11 @@ var ld = /* @__PURE__ */ (function(s) {
|
|
|
10610
10648
|
key: "defaultConfig",
|
|
10611
10649
|
get: function() {
|
|
10612
10650
|
return {
|
|
10613
|
-
position:
|
|
10651
|
+
position: $.ROOT
|
|
10614
10652
|
};
|
|
10615
10653
|
}
|
|
10616
10654
|
}]), r;
|
|
10617
|
-
})(V),
|
|
10655
|
+
})(V), hd = /* @__PURE__ */ (function(s) {
|
|
10618
10656
|
A(r, s);
|
|
10619
10657
|
var a = R(r);
|
|
10620
10658
|
function r() {
|
|
@@ -10752,7 +10790,7 @@ var ld = /* @__PURE__ */ (function(s) {
|
|
|
10752
10790
|
}
|
|
10753
10791
|
}]), r;
|
|
10754
10792
|
})(Ge);
|
|
10755
|
-
function
|
|
10793
|
+
function dd() {
|
|
10756
10794
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="-4 -6 40 40" fill="none">
|
|
10757
10795
|
<g>
|
|
10758
10796
|
<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"/>
|
|
@@ -10766,7 +10804,7 @@ function fd() {
|
|
|
10766
10804
|
</svg>
|
|
10767
10805
|
`, "image/svg+xml").firstChild;
|
|
10768
10806
|
}
|
|
10769
|
-
var
|
|
10807
|
+
var gd = /* @__PURE__ */ (function(s) {
|
|
10770
10808
|
A(r, s);
|
|
10771
10809
|
var a = R(r);
|
|
10772
10810
|
function r(t) {
|
|
@@ -10829,7 +10867,7 @@ var hd = /* @__PURE__ */ (function(s) {
|
|
|
10829
10867
|
key: "registerIcons",
|
|
10830
10868
|
value: function() {
|
|
10831
10869
|
return {
|
|
10832
|
-
rotate:
|
|
10870
|
+
rotate: dd
|
|
10833
10871
|
};
|
|
10834
10872
|
}
|
|
10835
10873
|
}, {
|
|
@@ -10852,7 +10890,7 @@ var hd = /* @__PURE__ */ (function(s) {
|
|
|
10852
10890
|
key: "defaultConfig",
|
|
10853
10891
|
get: function() {
|
|
10854
10892
|
return {
|
|
10855
|
-
position:
|
|
10893
|
+
position: $.CONTROLS_RIGHT,
|
|
10856
10894
|
index: 6,
|
|
10857
10895
|
innerRotate: !0,
|
|
10858
10896
|
clockwise: !1,
|
|
@@ -10861,15 +10899,15 @@ var hd = /* @__PURE__ */ (function(s) {
|
|
|
10861
10899
|
};
|
|
10862
10900
|
}
|
|
10863
10901
|
}]), r;
|
|
10864
|
-
})(
|
|
10865
|
-
function
|
|
10902
|
+
})(nt);
|
|
10903
|
+
function vd() {
|
|
10866
10904
|
return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
10867
10905
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
10868
10906
|
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"
|
|
10869
10907
|
fill="white" />
|
|
10870
10908
|
</svg>`, "image/svg+xml").firstChild;
|
|
10871
10909
|
}
|
|
10872
|
-
function
|
|
10910
|
+
function pd() {
|
|
10873
10911
|
return new DOMParser().parseFromString(`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
10874
10912
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
10875
10913
|
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"
|
|
@@ -10879,11 +10917,11 @@ function gd() {
|
|
|
10879
10917
|
fill="white" />
|
|
10880
10918
|
</svg>`, "image/svg+xml").firstChild;
|
|
10881
10919
|
}
|
|
10882
|
-
var
|
|
10920
|
+
var lt = {
|
|
10883
10921
|
PIP: "picture-in-picture",
|
|
10884
10922
|
INLINE: "inline",
|
|
10885
10923
|
FULLSCREEN: "fullscreen"
|
|
10886
|
-
},
|
|
10924
|
+
}, md = /* @__PURE__ */ (function(s) {
|
|
10887
10925
|
A(r, s);
|
|
10888
10926
|
var a = R(r);
|
|
10889
10927
|
function r() {
|
|
@@ -10914,7 +10952,7 @@ var ot = {
|
|
|
10914
10952
|
key: "afterCreate",
|
|
10915
10953
|
value: function() {
|
|
10916
10954
|
var e = this;
|
|
10917
|
-
this.isPIPAvailable() && (M(L(r.prototype), "afterCreate", this).call(this), this.pMode =
|
|
10955
|
+
this.isPIPAvailable() && (M(L(r.prototype), "afterCreate", this).call(this), this.pMode = lt.INLINE, this.initPipEvents(), this.config.showIcon && this.initIcons(), this.once(vi, function() {
|
|
10918
10956
|
e.config.showIcon && (f.removeClass(e.find(".xgplayer-icon"), "xg-icon-disable"), e.bind("click", e.switchPIP));
|
|
10919
10957
|
}));
|
|
10920
10958
|
}
|
|
@@ -10923,11 +10961,11 @@ var ot = {
|
|
|
10923
10961
|
value: function() {
|
|
10924
10962
|
return {
|
|
10925
10963
|
pipIcon: {
|
|
10926
|
-
icon:
|
|
10964
|
+
icon: vd,
|
|
10927
10965
|
class: "xg-get-pip"
|
|
10928
10966
|
},
|
|
10929
10967
|
pipIconExit: {
|
|
10930
|
-
icon:
|
|
10968
|
+
icon: pd,
|
|
10931
10969
|
class: "xg-exit-pip"
|
|
10932
10970
|
}
|
|
10933
10971
|
};
|
|
@@ -10951,15 +10989,15 @@ var ot = {
|
|
|
10951
10989
|
i.emit(qr, !0), n != null && n.pictureInPictureWindow && (e.pipWindow = n.pictureInPictureWindow), e.setAttr("data-state", "pip");
|
|
10952
10990
|
}, this.onWebkitpresentationmodechanged = function(n) {
|
|
10953
10991
|
var o = i.media.webkitPresentationMode;
|
|
10954
|
-
e.pMode ===
|
|
10992
|
+
e.pMode === lt.FULLSCREEN && o !== lt.FULLSCREEN && i.onFullscreenChange(null, !1), e.pMode = o, o === lt.PIP ? e.enterPIPCallback(n) : o === lt.INLINE && e.leavePIPCallback(n);
|
|
10955
10993
|
}, i.media && (i.media.addEventListener("enterpictureinpicture", this.enterPIPCallback), i.media.addEventListener("leavepictureinpicture", this.leavePIPCallback), r.checkWebkitSetPresentationMode(i.media) && i.media.addEventListener("webkitpresentationmodechanged", this.onWebkitpresentationmodechanged));
|
|
10956
10994
|
}
|
|
10957
10995
|
}, {
|
|
10958
10996
|
key: "copyStyleIntoPiPWindow",
|
|
10959
10997
|
value: function(e) {
|
|
10960
|
-
var i =
|
|
10998
|
+
var i = ke(document.styleSheets).map(function(o) {
|
|
10961
10999
|
try {
|
|
10962
|
-
return
|
|
11000
|
+
return ke(o.cssRules).map(function(l) {
|
|
10963
11001
|
return l.cssText;
|
|
10964
11002
|
}).join("");
|
|
10965
11003
|
} catch {
|
|
@@ -11028,7 +11066,7 @@ var ot = {
|
|
|
11028
11066
|
key: "isPip",
|
|
11029
11067
|
get: function() {
|
|
11030
11068
|
var e, i = this.player;
|
|
11031
|
-
return !!(this.isDocPIPAvailable() && (e = documentPictureInPicture) !== null && e !== void 0 && e.window) || document.pictureInPictureElement && document.pictureInPictureElement === i.media || i.media.webkitPresentationMode ===
|
|
11069
|
+
return !!(this.isDocPIPAvailable() && (e = documentPictureInPicture) !== null && e !== void 0 && e.window) || document.pictureInPictureElement && document.pictureInPictureElement === i.media || i.media.webkitPresentationMode === lt.PIP;
|
|
11032
11070
|
}
|
|
11033
11071
|
}, {
|
|
11034
11072
|
key: "isPIPAvailable",
|
|
@@ -11067,7 +11105,7 @@ var ot = {
|
|
|
11067
11105
|
key: "defaultConfig",
|
|
11068
11106
|
get: function() {
|
|
11069
11107
|
return {
|
|
11070
|
-
position:
|
|
11108
|
+
position: $.CONTROLS_RIGHT,
|
|
11071
11109
|
index: 6,
|
|
11072
11110
|
showIcon: !1,
|
|
11073
11111
|
preferDocument: !1,
|
|
@@ -11083,14 +11121,14 @@ var ot = {
|
|
|
11083
11121
|
return typeof e.webkitSetPresentationMode == "function";
|
|
11084
11122
|
}
|
|
11085
11123
|
}]), r;
|
|
11086
|
-
})(
|
|
11087
|
-
function
|
|
11124
|
+
})(nt);
|
|
11125
|
+
function yd() {
|
|
11088
11126
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="40" viewBox="10 0 24 40">
|
|
11089
11127
|
<path transform="scale(0.038 0.028)" d="M800 380v768h-128v-352l-320 320v-704l320 320v-352z"></path>
|
|
11090
11128
|
</svg>
|
|
11091
11129
|
`, "image/svg+xml").firstChild;
|
|
11092
11130
|
}
|
|
11093
|
-
var
|
|
11131
|
+
var _d = /* @__PURE__ */ (function(s) {
|
|
11094
11132
|
A(r, s);
|
|
11095
11133
|
var a = R(r);
|
|
11096
11134
|
function r(t) {
|
|
@@ -11109,7 +11147,7 @@ var md = /* @__PURE__ */ (function(s) {
|
|
|
11109
11147
|
key: "registerIcons",
|
|
11110
11148
|
value: function() {
|
|
11111
11149
|
return {
|
|
11112
|
-
playNext:
|
|
11150
|
+
playNext: yd
|
|
11113
11151
|
};
|
|
11114
11152
|
}
|
|
11115
11153
|
}, {
|
|
@@ -11151,7 +11189,7 @@ var md = /* @__PURE__ */ (function(s) {
|
|
|
11151
11189
|
key: "defaultConfig",
|
|
11152
11190
|
get: function() {
|
|
11153
11191
|
return {
|
|
11154
|
-
position:
|
|
11192
|
+
position: $.CONTROLS_LEFT,
|
|
11155
11193
|
index: 1,
|
|
11156
11194
|
url: null,
|
|
11157
11195
|
urlList: []
|
|
@@ -11159,7 +11197,7 @@ var md = /* @__PURE__ */ (function(s) {
|
|
|
11159
11197
|
}
|
|
11160
11198
|
}]), r;
|
|
11161
11199
|
})(V);
|
|
11162
|
-
function
|
|
11200
|
+
function bd() {
|
|
11163
11201
|
return new DOMParser().parseFromString(`<svg xmlns="http://www.w3.org/2000/svg" width="24px" height="24px" viewBox="0 0 24 24">
|
|
11164
11202
|
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
11165
11203
|
<g transform="translate(-488.000000, -340.000000)" fill="#FFFFFF">
|
|
@@ -11219,7 +11257,7 @@ var de = {
|
|
|
11219
11257
|
r[t] = a.charCodeAt(t);
|
|
11220
11258
|
return r;
|
|
11221
11259
|
}
|
|
11222
|
-
},
|
|
11260
|
+
}, Ae = {
|
|
11223
11261
|
downloadWithAnchor: function(a, r) {
|
|
11224
11262
|
var t = document.createElement("a");
|
|
11225
11263
|
t.href = a, t.setAttribute("download", r), t.className = "download-js-link", t.innerHTML = "downloading...", t.style.display = "none";
|
|
@@ -11237,7 +11275,7 @@ var de = {
|
|
|
11237
11275
|
var t = new FileReader();
|
|
11238
11276
|
return t.onload = function(i) {
|
|
11239
11277
|
var n = i.target.result;
|
|
11240
|
-
|
|
11278
|
+
Ae.downloadWithSafari(n, r);
|
|
11241
11279
|
}, t.readAsDataURL(a), !0;
|
|
11242
11280
|
}
|
|
11243
11281
|
if (Xe.isDataURL(a) && (a = "data:" + a.replace(/^data:([\w\/\-\+]+)/, de.mimeType)), !window.open(a)) {
|
|
@@ -11253,7 +11291,7 @@ Use Save As... to download, then click back to return to this page.`);
|
|
|
11253
11291
|
var t = new FileReader();
|
|
11254
11292
|
return t.onload = function(i) {
|
|
11255
11293
|
var n = i.target.result;
|
|
11256
|
-
|
|
11294
|
+
Ae.downloadWithIframe(n, r);
|
|
11257
11295
|
}, t.readAsDataURL(a), !0;
|
|
11258
11296
|
}
|
|
11259
11297
|
var e = document.createElement("iframe");
|
|
@@ -11269,7 +11307,7 @@ Use Save As... to download, then click back to return to this page.`);
|
|
|
11269
11307
|
setHeaders: function(a) {
|
|
11270
11308
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
11271
11309
|
Object.entries(r).forEach(function(t) {
|
|
11272
|
-
var e =
|
|
11310
|
+
var e = Uf(t, 2), i = e[0], n = e[1];
|
|
11273
11311
|
a.setRequestHeader(i, n);
|
|
11274
11312
|
});
|
|
11275
11313
|
},
|
|
@@ -11307,7 +11345,7 @@ function ll(s, a, r) {
|
|
|
11307
11345
|
var c = Xe.dataURLToBlob(s);
|
|
11308
11346
|
return i = c.type || i, ll(c, e, i);
|
|
11309
11347
|
} else
|
|
11310
|
-
return bt.isIEWithMsSaveBlob() ? navigator.msSaveBlob(Xe.dataURLToBlob(s), e) :
|
|
11348
|
+
return bt.isIEWithMsSaveBlob() ? navigator.msSaveBlob(Xe.dataURLToBlob(s), e) : Ae.downloadWithAnchor(s, e);
|
|
11311
11349
|
if (typeof s == "string" && Xe.hasNonASCII(s)) {
|
|
11312
11350
|
var h = Xe.stringToUint8Array(s), d = window.Blob || window.MozBlob || window.WebKitBlob || function(b, x) {
|
|
11313
11351
|
return b;
|
|
@@ -11331,28 +11369,28 @@ function ll(s, a, r) {
|
|
|
11331
11369
|
return navigator.msSaveBlob(g, e);
|
|
11332
11370
|
if (bt.supportsObjectURL()) {
|
|
11333
11371
|
var m = URL.createObjectURL(g);
|
|
11334
|
-
return
|
|
11372
|
+
return Ae.downloadWithAnchor(m, e);
|
|
11335
11373
|
}
|
|
11336
11374
|
if (bt.isSafari())
|
|
11337
|
-
return
|
|
11375
|
+
return Ae.downloadWithSafari(g, e);
|
|
11338
11376
|
if (typeof g == "string" || g.constructor === String)
|
|
11339
11377
|
try {
|
|
11340
11378
|
var p = "data:" + i + ";base64," + btoa(g);
|
|
11341
|
-
return
|
|
11379
|
+
return Ae.downloadWithAnchor(p, e);
|
|
11342
11380
|
} catch {
|
|
11343
11381
|
var T = "data:" + i + "," + encodeURIComponent(g);
|
|
11344
|
-
return
|
|
11382
|
+
return Ae.downloadWithAnchor(T, e);
|
|
11345
11383
|
}
|
|
11346
11384
|
var C = new FileReader();
|
|
11347
11385
|
return C.onload = function(b) {
|
|
11348
|
-
|
|
11349
|
-
}, C.readAsDataURL(g),
|
|
11386
|
+
Ae.downloadWithAnchor(b.target.result, e);
|
|
11387
|
+
}, C.readAsDataURL(g), Ae.downloadWithIframe(g, e);
|
|
11350
11388
|
}
|
|
11351
|
-
function
|
|
11389
|
+
function Cd(s) {
|
|
11352
11390
|
var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = Z(Z({}, de), a), t = r.fileName || s.split("/").pop().split("?")[0] || "download";
|
|
11353
11391
|
return ai.downloadFromURL(s, t, r);
|
|
11354
11392
|
}
|
|
11355
|
-
var
|
|
11393
|
+
var kd = /* @__PURE__ */ (function(s) {
|
|
11356
11394
|
A(r, s);
|
|
11357
11395
|
var a = R(r);
|
|
11358
11396
|
function r(t) {
|
|
@@ -11363,7 +11401,7 @@ var bd = /* @__PURE__ */ (function(s) {
|
|
|
11363
11401
|
var n = e.playerConfig.url, o = "";
|
|
11364
11402
|
f.typeOf(n) === "String" ? o = n : f.typeOf(n) === "Array" && n.length > 0 && (o = n[0].src);
|
|
11365
11403
|
var u = e.getAbsoluteURL(o);
|
|
11366
|
-
|
|
11404
|
+
Cd(u, Object.assign({}, e.config.saveAsOptions || {})), e.isLock = !0, e.timer = window.setTimeout(function() {
|
|
11367
11405
|
e.isLock = !1, window.clearTimeout(e.timer), e.timer = null;
|
|
11368
11406
|
}, 300);
|
|
11369
11407
|
}
|
|
@@ -11382,7 +11420,7 @@ var bd = /* @__PURE__ */ (function(s) {
|
|
|
11382
11420
|
key: "registerIcons",
|
|
11383
11421
|
value: function() {
|
|
11384
11422
|
return {
|
|
11385
|
-
download:
|
|
11423
|
+
download: bd
|
|
11386
11424
|
};
|
|
11387
11425
|
}
|
|
11388
11426
|
}, {
|
|
@@ -11418,14 +11456,14 @@ var bd = /* @__PURE__ */ (function(s) {
|
|
|
11418
11456
|
key: "defaultConfig",
|
|
11419
11457
|
get: function() {
|
|
11420
11458
|
return {
|
|
11421
|
-
position:
|
|
11459
|
+
position: $.CONTROLS_RIGHT,
|
|
11422
11460
|
index: 3,
|
|
11423
11461
|
disable: !0,
|
|
11424
11462
|
saveAsOptions: {}
|
|
11425
11463
|
};
|
|
11426
11464
|
}
|
|
11427
11465
|
}]), r;
|
|
11428
|
-
})(
|
|
11466
|
+
})(nt), Td = /* @__PURE__ */ (function(s) {
|
|
11429
11467
|
A(r, s);
|
|
11430
11468
|
var a = R(r);
|
|
11431
11469
|
function r() {
|
|
@@ -11496,8 +11534,8 @@ var bd = /* @__PURE__ */ (function(s) {
|
|
|
11496
11534
|
v = l.media.canvas;
|
|
11497
11535
|
else {
|
|
11498
11536
|
n.canvas ? (n.canvas.width = e || u.width, n.canvas.height = i || u.height) : n.createCanvas(e, i), v = n.canvas, m = n.canvasCtx;
|
|
11499
|
-
var p = l.media.videoWidth / l.media.videoHeight, T = v.width / v.height, C = 0, b = 0, x = l.media.videoWidth, E = l.media.videoHeight, I,
|
|
11500
|
-
p > T ? (G = v.width, B = v.width / p, I = 0,
|
|
11537
|
+
var p = l.media.videoWidth / l.media.videoHeight, T = v.width / v.height, C = 0, b = 0, x = l.media.videoWidth, E = l.media.videoHeight, I, Y, G, B;
|
|
11538
|
+
p > T ? (G = v.width, B = v.width / p, I = 0, Y = Math.round((v.height - B) / 2)) : p === T ? (G = v.width, B = v.height, I = 0, Y = 0) : p < T && (G = v.height * p, B = v.height, I = Math.round((v.width - G) / 2), Y = 0), m.drawImage(l.media, C, b, x, E, I, Y, G, B);
|
|
11501
11539
|
}
|
|
11502
11540
|
var F = v.toDataURL(h, c).replace(h, "image/octet-stream");
|
|
11503
11541
|
F = F.replace(/^data:image\/[^;]+/, "data:application/octet-stream"), d(F);
|
|
@@ -11537,7 +11575,7 @@ var bd = /* @__PURE__ */ (function(s) {
|
|
|
11537
11575
|
key: "defaultConfig",
|
|
11538
11576
|
get: function() {
|
|
11539
11577
|
return {
|
|
11540
|
-
position:
|
|
11578
|
+
position: $.CONTROLS_RIGHT,
|
|
11541
11579
|
index: 5,
|
|
11542
11580
|
quality: 0.92,
|
|
11543
11581
|
type: "image/png",
|
|
@@ -11551,7 +11589,7 @@ var bd = /* @__PURE__ */ (function(s) {
|
|
|
11551
11589
|
};
|
|
11552
11590
|
}
|
|
11553
11591
|
}]), r;
|
|
11554
|
-
})(
|
|
11592
|
+
})(nt), wd = /* @__PURE__ */ (function() {
|
|
11555
11593
|
function s(a) {
|
|
11556
11594
|
w(this, s), this.config = a.config, this.parent = a.root, this.root = f.createDom("ul", "", {}, "xg-options-list xg-list-slide-scroll ".concat(this.config.className)), a.root.appendChild(this.root);
|
|
11557
11595
|
var r = this.config.maxHeight;
|
|
@@ -11623,16 +11661,16 @@ var bd = /* @__PURE__ */ (function(s) {
|
|
|
11623
11661
|
}), this._delegates = null), this.root.innerHTML = null, this.parent.removeChild(this.root), this.root = null;
|
|
11624
11662
|
}
|
|
11625
11663
|
}]), s;
|
|
11626
|
-
})(),
|
|
11664
|
+
})(), we = {
|
|
11627
11665
|
SIDE: "side",
|
|
11628
11666
|
MIDDLE: "middle",
|
|
11629
11667
|
DEFAULT: "default"
|
|
11630
|
-
},
|
|
11668
|
+
}, ct = {
|
|
11631
11669
|
CLICK: "click",
|
|
11632
11670
|
HOVER: "hover"
|
|
11633
11671
|
};
|
|
11634
|
-
function
|
|
11635
|
-
return s ===
|
|
11672
|
+
function Sd(s, a) {
|
|
11673
|
+
return s === we.SIDE ? a === $.CONTROLS_LEFT ? "xg-side-list xg-left-side" : "xg-side-list xg-right-side" : "";
|
|
11636
11674
|
}
|
|
11637
11675
|
var Ye = N.device === "mobile", si = /* @__PURE__ */ (function(s) {
|
|
11638
11676
|
A(r, s);
|
|
@@ -11646,11 +11684,11 @@ var Ye = N.device === "mobile", si = /* @__PURE__ */ (function(s) {
|
|
|
11646
11684
|
}), _(y(e), "switchActiveState", function(i) {
|
|
11647
11685
|
i.stopPropagation();
|
|
11648
11686
|
var n = e.config.toggleMode;
|
|
11649
|
-
n ===
|
|
11687
|
+
n === ct.CLICK ? e.toggle(!e.isActive) : e.toggle(!0);
|
|
11650
11688
|
}), _(y(e), "onLeave", function(i) {
|
|
11651
11689
|
i.stopPropagation(), e.emit("icon_mouseleave", {
|
|
11652
11690
|
pluginName: e.pluginName
|
|
11653
|
-
}), e.config.listType !==
|
|
11691
|
+
}), e.config.listType !== we.SIDE && e.isActive && e.toggle(!1);
|
|
11654
11692
|
}), _(y(e), "onListEnter", function(i) {
|
|
11655
11693
|
e.enterType = 2;
|
|
11656
11694
|
}), _(y(e), "onListLeave", function(i) {
|
|
@@ -11666,13 +11704,13 @@ var Ye = N.device === "mobile", si = /* @__PURE__ */ (function(s) {
|
|
|
11666
11704
|
key: "afterCreate",
|
|
11667
11705
|
value: function() {
|
|
11668
11706
|
var e = this, i = this.config;
|
|
11669
|
-
this.initIcons(), Ye = Ye || this.domEventType === "touch", Ye && N.device === "mobile" && i.listType ===
|
|
11707
|
+
this.initIcons(), Ye = Ye || this.domEventType === "touch", Ye && N.device === "mobile" && i.listType === we.DEFAULT && (i.listType = we.SIDE), i.hidePortrait && f.addClass(this.root, "portrait"), this.on([ze, Re], function() {
|
|
11670
11708
|
e._resizeList();
|
|
11671
|
-
}), this.once(
|
|
11709
|
+
}), this.once(De, function() {
|
|
11672
11710
|
i.list && i.list.length > 0 && (e.renderItemList(i.list), e.show());
|
|
11673
11711
|
}), Ye && this.on(ua, function() {
|
|
11674
11712
|
e.isActive && (e.optionsList && e.optionsList.hide(), e.isActive = !1);
|
|
11675
|
-
}), Ye ? (i.toggleMode =
|
|
11713
|
+
}), Ye ? (i.toggleMode = ct.CLICK, this.activeEvent = "touchend") : this.activeEvent = i.toggleMode === ct.CLICK ? "click" : "mouseenter", i.toggleMode === ct.CLICK ? this.bind(this.activeEvent, this.switchActiveState) : (this.bind(this.activeEvent, this.onEnter), this.bind("mouseleave", this.onLeave)), this.isIcons && this.bind("click", this.onIconClick);
|
|
11676
11714
|
}
|
|
11677
11715
|
}, {
|
|
11678
11716
|
key: "initIcons",
|
|
@@ -11710,7 +11748,7 @@ var Ye = N.device === "mobile", si = /* @__PURE__ */ (function(s) {
|
|
|
11710
11748
|
value: function(e) {
|
|
11711
11749
|
if (!(e === this.isActive || this.config.disable)) {
|
|
11712
11750
|
var i = this.player.controls, n = this.config.listType;
|
|
11713
|
-
e ? (n ===
|
|
11751
|
+
e ? (n === we.SIDE ? i.blur() : i.focus(), this.optionsList && this.optionsList.show()) : (n === we.SIDE ? i.focus() : i.focusAwhile(), this.optionsList && this.optionsList.hide()), this.isActive = e;
|
|
11714
11752
|
}
|
|
11715
11753
|
}
|
|
11716
11754
|
}, {
|
|
@@ -11720,7 +11758,7 @@ var Ye = N.device === "mobile", si = /* @__PURE__ */ (function(s) {
|
|
|
11720
11758
|
var n = this.config, o = n.listType, u = n.list;
|
|
11721
11759
|
this.curIndex = i.to.index, this.curItem = u[this.curIndex], this.changeCurrentText();
|
|
11722
11760
|
var l = this.config.isItemClickHide;
|
|
11723
|
-
(l || Ye || o ===
|
|
11761
|
+
(l || Ye || o === we.SIDE) && this.toggle(!1);
|
|
11724
11762
|
}
|
|
11725
11763
|
}, {
|
|
11726
11764
|
key: "onIconClick",
|
|
@@ -11745,17 +11783,17 @@ var Ye = N.device === "mobile", si = /* @__PURE__ */ (function(s) {
|
|
|
11745
11783
|
var c = {
|
|
11746
11784
|
config: {
|
|
11747
11785
|
data: e || [],
|
|
11748
|
-
className:
|
|
11786
|
+
className: Sd(o.listType, o.position),
|
|
11749
11787
|
onItemClick: function(m, p) {
|
|
11750
11788
|
n.onItemClick(m, p);
|
|
11751
11789
|
},
|
|
11752
11790
|
domEventType: Ye ? "touch" : "mouse"
|
|
11753
11791
|
},
|
|
11754
|
-
root: o.listType ===
|
|
11792
|
+
root: o.listType === we.SIDE ? l.innerContainer || l.root : this.root
|
|
11755
11793
|
};
|
|
11756
11794
|
if (this.config.isShowIcon) {
|
|
11757
|
-
var h = this.player.root.getBoundingClientRect(), d = h.height, g = o.listType ===
|
|
11758
|
-
g && o.heightLimit && (c.config.maxHeight = "".concat(g, "px")), this.optionsList = new
|
|
11795
|
+
var h = this.player.root.getBoundingClientRect(), d = h.height, g = o.listType === we.MIDDLE ? d - 50 : d;
|
|
11796
|
+
g && o.heightLimit && (c.config.maxHeight = "".concat(g, "px")), this.optionsList = new wd(c), this.changeCurrentText(), this.show();
|
|
11759
11797
|
}
|
|
11760
11798
|
this._resizeList();
|
|
11761
11799
|
}
|
|
@@ -11763,7 +11801,7 @@ var Ye = N.device === "mobile", si = /* @__PURE__ */ (function(s) {
|
|
|
11763
11801
|
key: "_resizeList",
|
|
11764
11802
|
value: function() {
|
|
11765
11803
|
if (this.config.heightLimit) {
|
|
11766
|
-
var e = this.player.root.getBoundingClientRect(), i = e.height, n = this.config.listType ===
|
|
11804
|
+
var e = this.player.root.getBoundingClientRect(), i = e.height, n = this.config.listType === we.MIDDLE ? i - 50 : i;
|
|
11767
11805
|
this.optionsList && this.optionsList.setStyle({
|
|
11768
11806
|
maxHeight: "".concat(n, "px")
|
|
11769
11807
|
});
|
|
@@ -11773,7 +11811,7 @@ var Ye = N.device === "mobile", si = /* @__PURE__ */ (function(s) {
|
|
|
11773
11811
|
key: "destroy",
|
|
11774
11812
|
value: function() {
|
|
11775
11813
|
var e = this.config;
|
|
11776
|
-
e.toggleMode ===
|
|
11814
|
+
e.toggleMode === ct.CLICK ? this.unbind(this.activeEvent, this.switchActiveState) : (this.unbind(this.activeEvent, this.onEnter), this.unbind("mouseleave", this.onLeave)), this.isIcons && this.unbind("click", this.onIconClick), this.optionsList && (this.optionsList.destroy(), this.optionsList = null);
|
|
11777
11815
|
}
|
|
11778
11816
|
}, {
|
|
11779
11817
|
key: "render",
|
|
@@ -11793,7 +11831,7 @@ var Ye = N.device === "mobile", si = /* @__PURE__ */ (function(s) {
|
|
|
11793
11831
|
key: "defaultConfig",
|
|
11794
11832
|
get: function() {
|
|
11795
11833
|
return {
|
|
11796
|
-
position:
|
|
11834
|
+
position: $.CONTROLS_RIGHT,
|
|
11797
11835
|
index: 100,
|
|
11798
11836
|
list: [],
|
|
11799
11837
|
listType: "default",
|
|
@@ -11801,12 +11839,12 @@ var Ye = N.device === "mobile", si = /* @__PURE__ */ (function(s) {
|
|
|
11801
11839
|
hidePortrait: !0,
|
|
11802
11840
|
isShowIcon: !1,
|
|
11803
11841
|
isItemClickHide: !0,
|
|
11804
|
-
toggleMode:
|
|
11842
|
+
toggleMode: ct.HOVER,
|
|
11805
11843
|
heightLimit: !0
|
|
11806
11844
|
};
|
|
11807
11845
|
}
|
|
11808
11846
|
}]), r;
|
|
11809
|
-
})(V),
|
|
11847
|
+
})(V), Ed = /* @__PURE__ */ (function(s) {
|
|
11810
11848
|
A(r, s);
|
|
11811
11849
|
var a = R(r);
|
|
11812
11850
|
function r(t) {
|
|
@@ -11896,7 +11934,7 @@ var Ye = N.device === "mobile", si = /* @__PURE__ */ (function(s) {
|
|
|
11896
11934
|
key: "defaultConfig",
|
|
11897
11935
|
get: function() {
|
|
11898
11936
|
return Z(Z({}, si.defaultConfig), {}, {
|
|
11899
|
-
position:
|
|
11937
|
+
position: $.CONTROLS_RIGHT,
|
|
11900
11938
|
index: 3,
|
|
11901
11939
|
list: [],
|
|
11902
11940
|
defaultDefinition: "",
|
|
@@ -11907,7 +11945,7 @@ var Ye = N.device === "mobile", si = /* @__PURE__ */ (function(s) {
|
|
|
11907
11945
|
});
|
|
11908
11946
|
}
|
|
11909
11947
|
}]), r;
|
|
11910
|
-
})(si),
|
|
11948
|
+
})(si), xd = /* @__PURE__ */ (function(s) {
|
|
11911
11949
|
A(r, s);
|
|
11912
11950
|
var a = R(r);
|
|
11913
11951
|
function r(t) {
|
|
@@ -11990,7 +12028,7 @@ var Ye = N.device === "mobile", si = /* @__PURE__ */ (function(s) {
|
|
|
11990
12028
|
key: "defaultConfig",
|
|
11991
12029
|
get: function() {
|
|
11992
12030
|
return Z(Z({}, si.defaultConfig), {}, {
|
|
11993
|
-
position:
|
|
12031
|
+
position: $.CONTROLS_RIGHT,
|
|
11994
12032
|
index: 4,
|
|
11995
12033
|
list: [2, 1.5, 1, 0.75, 0.5],
|
|
11996
12034
|
className: "xgplayer-playbackrate",
|
|
@@ -11999,7 +12037,7 @@ var Ye = N.device === "mobile", si = /* @__PURE__ */ (function(s) {
|
|
|
11999
12037
|
});
|
|
12000
12038
|
}
|
|
12001
12039
|
}]), r;
|
|
12002
|
-
})(si),
|
|
12040
|
+
})(si), Id = /* @__PURE__ */ (function(s) {
|
|
12003
12041
|
A(r, s);
|
|
12004
12042
|
var a = R(r);
|
|
12005
12043
|
function r() {
|
|
@@ -12060,7 +12098,7 @@ var Ye = N.device === "mobile", si = /* @__PURE__ */ (function(s) {
|
|
|
12060
12098
|
return "error";
|
|
12061
12099
|
}
|
|
12062
12100
|
}]), r;
|
|
12063
|
-
})(V),
|
|
12101
|
+
})(V), Pd = /* @__PURE__ */ (function(s) {
|
|
12064
12102
|
A(r, s);
|
|
12065
12103
|
var a = R(r);
|
|
12066
12104
|
function r() {
|
|
@@ -12290,7 +12328,7 @@ var su = {
|
|
|
12290
12328
|
return r.find('xg-spot[data-id="'.concat(a, '"]'));
|
|
12291
12329
|
}
|
|
12292
12330
|
};
|
|
12293
|
-
function
|
|
12331
|
+
function Ad(s) {
|
|
12294
12332
|
var a = s.config, r = s.player;
|
|
12295
12333
|
Object.keys(su).map(function(e) {
|
|
12296
12334
|
s[e] = su[e].bind(s);
|
|
@@ -12307,14 +12345,14 @@ function Id(s) {
|
|
|
12307
12345
|
s.positionDots();
|
|
12308
12346
|
});
|
|
12309
12347
|
}
|
|
12310
|
-
var
|
|
12348
|
+
var ft = {
|
|
12311
12349
|
dragmove: "onProgressMove",
|
|
12312
12350
|
dragstart: "onProgressDragStart",
|
|
12313
12351
|
dragend: "onProgressDragEnd",
|
|
12314
12352
|
click: "onProgressClick",
|
|
12315
12353
|
mouseover: "onProgressMouseOver",
|
|
12316
12354
|
mouseenter: "onProgressMouseOver"
|
|
12317
|
-
},
|
|
12355
|
+
}, Rd = /* @__PURE__ */ (function(s) {
|
|
12318
12356
|
A(r, s);
|
|
12319
12357
|
var a = R(r);
|
|
12320
12358
|
function r(t) {
|
|
@@ -12365,7 +12403,7 @@ var lt = {
|
|
|
12365
12403
|
n.seekTime && e.player.seek(n.seekTime);
|
|
12366
12404
|
}), this.transformTimeHook = this.hook("transformTime", function(i) {
|
|
12367
12405
|
e.setTimeContent(f.format(i));
|
|
12368
|
-
}),
|
|
12406
|
+
}), Ad(this), this.on(Fe, function() {
|
|
12369
12407
|
e.show();
|
|
12370
12408
|
}), this.config.disable && this.disable(), this.extTextRoot = this.find(".xg-spot-ext-text");
|
|
12371
12409
|
}
|
|
@@ -12387,8 +12425,8 @@ var lt = {
|
|
|
12387
12425
|
key: "bindEvents",
|
|
12388
12426
|
value: function() {
|
|
12389
12427
|
var e = this, i = this.player.plugins.progress;
|
|
12390
|
-
if (i && (Object.keys(
|
|
12391
|
-
e[
|
|
12428
|
+
if (i && (Object.keys(ft).map(function(o) {
|
|
12429
|
+
e[ft[o]] = e[ft[o]].bind(e), i.addCallBack(o, e[ft[o]]);
|
|
12392
12430
|
}), N.device !== "mobile")) {
|
|
12393
12431
|
this.bind(".xg-spot-info", "mousemove", this.onMousemove), this.bind(".xg-spot-info", "mousedown", this.onMousedown), this.bind(".xg-spot-info", "mouseup", this.onMouseup);
|
|
12394
12432
|
var n = this.hook("previewClick", function() {
|
|
@@ -12546,8 +12584,8 @@ var lt = {
|
|
|
12546
12584
|
key: "destroy",
|
|
12547
12585
|
value: function() {
|
|
12548
12586
|
var e = this, i = this.player.plugins.progress;
|
|
12549
|
-
i && Object.keys(
|
|
12550
|
-
i.removeCallBack(n, e[
|
|
12587
|
+
i && Object.keys(ft).map(function(n) {
|
|
12588
|
+
i.removeCallBack(n, e[ft[n]]);
|
|
12551
12589
|
}), this.videothumbnail = null, this.thumbnail = null, this.videoPreview && this.player.root.removeChild(this.videoPreview), this.unbind(".xg-spot-info", "mousemove", this.onMousemove), this.unbind(".xg-spot-info", "mousedown", this.onMousedown), this.unbind(".xg-spot-info", "mouseup", this.onMouseup), this.unbind(".xg-spot-content", "mouseup", this.handlerPreviewClick);
|
|
12552
12590
|
}
|
|
12553
12591
|
}, {
|
|
@@ -12589,7 +12627,7 @@ var lt = {
|
|
|
12589
12627
|
};
|
|
12590
12628
|
}
|
|
12591
12629
|
}]), r;
|
|
12592
|
-
})(V),
|
|
12630
|
+
})(V), Ld = /* @__PURE__ */ (function(s) {
|
|
12593
12631
|
A(r, s);
|
|
12594
12632
|
var a = R(r);
|
|
12595
12633
|
function r(t) {
|
|
@@ -12726,7 +12764,7 @@ var lt = {
|
|
|
12726
12764
|
function Or(s) {
|
|
12727
12765
|
return s ? "background:".concat(s, ";") : "";
|
|
12728
12766
|
}
|
|
12729
|
-
var
|
|
12767
|
+
var Dd = /* @__PURE__ */ (function(s) {
|
|
12730
12768
|
A(r, s);
|
|
12731
12769
|
var a = R(r);
|
|
12732
12770
|
function r() {
|
|
@@ -12756,7 +12794,7 @@ var Rd = /* @__PURE__ */ (function(s) {
|
|
|
12756
12794
|
key: "afterCreate",
|
|
12757
12795
|
value: function() {
|
|
12758
12796
|
var e = this;
|
|
12759
|
-
this.root && (this.on(ve, this.onTimeupdate), this.on(
|
|
12797
|
+
this.root && (this.on(ve, this.onTimeupdate), this.on(it, function() {
|
|
12760
12798
|
e.reset();
|
|
12761
12799
|
}));
|
|
12762
12800
|
}
|
|
@@ -12808,19 +12846,19 @@ var Rd = /* @__PURE__ */ (function(s) {
|
|
|
12808
12846
|
};
|
|
12809
12847
|
}
|
|
12810
12848
|
}]), r;
|
|
12811
|
-
})(V),
|
|
12849
|
+
})(V), ht = {
|
|
12812
12850
|
REAL_TIME: "realtime",
|
|
12813
12851
|
FIRST_FRAME: "firstframe",
|
|
12814
12852
|
POSTER: "poster"
|
|
12815
12853
|
};
|
|
12816
|
-
function
|
|
12854
|
+
function Od() {
|
|
12817
12855
|
try {
|
|
12818
12856
|
return parseInt(window.performance.now(), 10);
|
|
12819
12857
|
} catch {
|
|
12820
12858
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
12821
12859
|
}
|
|
12822
12860
|
}
|
|
12823
|
-
function
|
|
12861
|
+
function Md() {
|
|
12824
12862
|
try {
|
|
12825
12863
|
var s = document.createElement("canvas").getContext;
|
|
12826
12864
|
return !!s;
|
|
@@ -12828,7 +12866,7 @@ function Dd() {
|
|
|
12828
12866
|
return !1;
|
|
12829
12867
|
}
|
|
12830
12868
|
}
|
|
12831
|
-
var Gt = null,
|
|
12869
|
+
var Gt = null, Fd = /* @__PURE__ */ (function(s) {
|
|
12832
12870
|
A(r, s);
|
|
12833
12871
|
var a = R(r);
|
|
12834
12872
|
function r() {
|
|
@@ -12849,8 +12887,8 @@ var Gt = null, Od = /* @__PURE__ */ (function(s) {
|
|
|
12849
12887
|
!t.player.paused && t._checkIfCanStart() && t.start(0, u);
|
|
12850
12888
|
}
|
|
12851
12889
|
}), _(y(t), "start", function(o, u) {
|
|
12852
|
-
var l = t.player.video, c =
|
|
12853
|
-
!h || !t.canvasCtx || (u || (u = t.interval), t.stop(), l.videoWidth && l.videoHeight && (t.videoPI = l.videoHeight > 0 ? parseInt(l.videoWidth / l.videoHeight * 100, 10) : 0, (t.config.mode ===
|
|
12890
|
+
var l = t.player.video, c = Od(), h = t.checkVideoIsSupport(l);
|
|
12891
|
+
!h || !t.canvasCtx || (u || (u = t.interval), t.stop(), l.videoWidth && l.videoHeight && (t.videoPI = l.videoHeight > 0 ? parseInt(l.videoWidth / l.videoHeight * 100, 10) : 0, (t.config.mode === ht.REAL_TIME || c - t.preTime >= u) && (l && l.videoWidth && t.update(h, t.videoPI), t.preTime = c)), t.frameId = t._loopType === "timer" ? f.setTimeout(y(t), t.start, u) : f.requestAnimationFrame(t.start));
|
|
12854
12892
|
}), _(y(t), "stop", function() {
|
|
12855
12893
|
t.frameId && (t._loopType === "timer" ? f.clearTimeout(y(t), t.frameId) : f.cancelAnimationFrame(t.frameId), t.frameId = null);
|
|
12856
12894
|
}), t;
|
|
@@ -12869,9 +12907,9 @@ var Gt = null, Od = /* @__PURE__ */ (function(s) {
|
|
|
12869
12907
|
x: 0,
|
|
12870
12908
|
y: 0,
|
|
12871
12909
|
pi: 0
|
|
12872
|
-
}, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / u, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !==
|
|
12910
|
+
}, this.isStart = !1, this._isLoaded = !1, this.videoPI = 0, this.preTime = 0, this.interval = parseInt(1e3 / u, 10), this.canvas = null, this.canvasCtx = null, this._frameCount = 0, this._loopType = this.config.mode !== ht.REAL_TIME && this.interval >= 1e3 ? "timer" : "animation", this.once(vi, function() {
|
|
12873
12911
|
e.player && (e.init(), e.renderByPoster(), e.player.paused || e.start());
|
|
12874
|
-
}), o !==
|
|
12912
|
+
}), o !== ht.POSTER && (o !== ht.FIRST_FRAME && (this.on(it, function() {
|
|
12875
12913
|
e.stop();
|
|
12876
12914
|
}), this.on(pe, function() {
|
|
12877
12915
|
var l = e.config.startInterval;
|
|
@@ -12943,7 +12981,7 @@ var Gt = null, Od = /* @__PURE__ */ (function(s) {
|
|
|
12943
12981
|
key: "_checkIfCanStart",
|
|
12944
12982
|
value: function() {
|
|
12945
12983
|
var e = this.config.mode;
|
|
12946
|
-
return this._isLoaded && !this.player.paused && e !==
|
|
12984
|
+
return this._isLoaded && !this.player.paused && e !== ht.FIRST_FRAME && e !== ht.POSTER;
|
|
12947
12985
|
}
|
|
12948
12986
|
}, {
|
|
12949
12987
|
key: "renderOnce",
|
|
@@ -13022,7 +13060,7 @@ var Gt = null, Od = /* @__PURE__ */ (function(s) {
|
|
|
13022
13060
|
}, {
|
|
13023
13061
|
key: "isSupport",
|
|
13024
13062
|
get: function() {
|
|
13025
|
-
return typeof Gt == "boolean" || (Gt =
|
|
13063
|
+
return typeof Gt == "boolean" || (Gt = Md()), Gt;
|
|
13026
13064
|
}
|
|
13027
13065
|
}, {
|
|
13028
13066
|
key: "supportCanvasFilter",
|
|
@@ -13030,7 +13068,7 @@ var Gt = null, Od = /* @__PURE__ */ (function(s) {
|
|
|
13030
13068
|
return !(N.browser === "safari" || N.browser === "firefox");
|
|
13031
13069
|
}
|
|
13032
13070
|
}]), r;
|
|
13033
|
-
})(V),
|
|
13071
|
+
})(V), Nd = {
|
|
13034
13072
|
LANG: "zh-cn",
|
|
13035
13073
|
TEXT: {
|
|
13036
13074
|
ERROR_TYPES: {
|
|
@@ -13106,7 +13144,7 @@ var Gt = null, Od = /* @__PURE__ */ (function(s) {
|
|
|
13106
13144
|
FORWARD: "快进中",
|
|
13107
13145
|
LIVE_TIP: "直播"
|
|
13108
13146
|
}
|
|
13109
|
-
}, Ct = "info", Mr = Xu,
|
|
13147
|
+
}, Ct = "info", Mr = Xu, Bd = /* @__PURE__ */ (function(s) {
|
|
13110
13148
|
A(r, s);
|
|
13111
13149
|
var a = R(r);
|
|
13112
13150
|
function r() {
|
|
@@ -13340,7 +13378,7 @@ var Gt = null, Od = /* @__PURE__ */ (function(s) {
|
|
|
13340
13378
|
}]), r;
|
|
13341
13379
|
})(V);
|
|
13342
13380
|
fl.BROWSER_GAP_TOLERANCE = 1e-3;
|
|
13343
|
-
var
|
|
13381
|
+
var Hd = /* @__PURE__ */ (function(s) {
|
|
13344
13382
|
A(r, s);
|
|
13345
13383
|
var a = R(r);
|
|
13346
13384
|
function r() {
|
|
@@ -13364,7 +13402,7 @@ var Nd = /* @__PURE__ */ (function(s) {
|
|
|
13364
13402
|
key: "afterCreate",
|
|
13365
13403
|
value: function() {
|
|
13366
13404
|
var e = this, i = this.config, n = i.useWaitingTimeoutJump, o = i.jumpSize;
|
|
13367
|
-
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = o, this.on(Rt, this.onWaiting), this.on([di,
|
|
13405
|
+
n !== !1 && (this.hasPlayed = !1, this.jumpCnt = 0, this.timer = null, this.jumpSize = o, this.on(Rt, this.onWaiting), this.on([di, De], function() {
|
|
13368
13406
|
clearTimeout(e.timer), e.timer = null, e.jumpSize = e.config.jumpSize;
|
|
13369
13407
|
}), this.on(pe, function() {
|
|
13370
13408
|
e.hasPlayed = !0;
|
|
@@ -13386,7 +13424,7 @@ var Nd = /* @__PURE__ */ (function(s) {
|
|
|
13386
13424
|
};
|
|
13387
13425
|
}
|
|
13388
13426
|
}]), r;
|
|
13389
|
-
})(V),
|
|
13427
|
+
})(V), dt = "cdn", Wt = ["cdn"], Ud = /* @__PURE__ */ (function(s) {
|
|
13390
13428
|
A(r, s);
|
|
13391
13429
|
var a = R(r);
|
|
13392
13430
|
function r() {
|
|
@@ -13395,7 +13433,7 @@ var Nd = /* @__PURE__ */ (function(s) {
|
|
|
13395
13433
|
for (var e = arguments.length, i = new Array(e), n = 0; n < e; n++)
|
|
13396
13434
|
i[n] = arguments[n];
|
|
13397
13435
|
return t = a.call.apply(a, [this].concat(i)), _(y(t), "getSpeed", function() {
|
|
13398
|
-
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
13436
|
+
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : dt;
|
|
13399
13437
|
if (!t.speedListCache || !t.speedListCache[o] || t.speedListCache[o].length <= 0)
|
|
13400
13438
|
return 0;
|
|
13401
13439
|
var u = 0;
|
|
@@ -13409,7 +13447,7 @@ var Nd = /* @__PURE__ */ (function(s) {
|
|
|
13409
13447
|
t.speedListCache[o] = [];
|
|
13410
13448
|
});
|
|
13411
13449
|
}), _(y(t), "_onRealSpeedChange", function(o) {
|
|
13412
|
-
o.speed && t.appendList(o.speed, o.type ||
|
|
13450
|
+
o.speed && t.appendList(o.speed, o.type || dt);
|
|
13413
13451
|
}), _(y(t), "testSpeed", function() {
|
|
13414
13452
|
if (clearTimeout(t.timer), t.timer = null, !(!t.player || !t.config.openSpeed)) {
|
|
13415
13453
|
var o = t.config, u = o.url, l = o.loadSize, c = o.testCnt, h = o.testTimeStep, d = u + (u.indexOf("?") < 0 ? "?testst=" : "&testst=") + Date.now();
|
|
@@ -13434,17 +13472,17 @@ var Nd = /* @__PURE__ */ (function(s) {
|
|
|
13434
13472
|
}
|
|
13435
13473
|
}
|
|
13436
13474
|
}), _(y(t), "appendList", function(o) {
|
|
13437
|
-
var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
13475
|
+
var u = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : dt;
|
|
13438
13476
|
if (!(!t.speedListCache || !t.speedListCache[u])) {
|
|
13439
13477
|
var l = t.config.saveSpeedMax;
|
|
13440
13478
|
t.speedListCache[u].length >= l && t.speedListCache[u].shift(), t.speedListCache[u].push(o);
|
|
13441
13479
|
var c = y(t), h = c.player;
|
|
13442
|
-
h && (u ===
|
|
13480
|
+
h && (u === dt ? h.realTimeSpeed = o : h[t.getSpeedName("realTime", u)] = o), t.updateSpeed(u);
|
|
13443
13481
|
}
|
|
13444
13482
|
}), _(y(t), "updateSpeed", function() {
|
|
13445
|
-
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
13483
|
+
var o = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : dt, u = t.getSpeed(o), l = y(t), c = l.player;
|
|
13446
13484
|
if (c)
|
|
13447
|
-
if (o ===
|
|
13485
|
+
if (o === dt)
|
|
13448
13486
|
(!c.avgSpeed || u !== c.avgSpeed) && (c.avgSpeed = u, c.emit(Ur, {
|
|
13449
13487
|
speed: u,
|
|
13450
13488
|
realTimeSpeed: c.realTimeSpeed
|
|
@@ -13462,7 +13500,7 @@ var Nd = /* @__PURE__ */ (function(s) {
|
|
|
13462
13500
|
key: "afterCreate",
|
|
13463
13501
|
value: function() {
|
|
13464
13502
|
var e = this.config, i = e.openSpeed, n = e.addSpeedTypeList;
|
|
13465
|
-
(n == null ? void 0 : n.length) > 0 && Wt.push.apply(Wt,
|
|
13503
|
+
(n == null ? void 0 : n.length) > 0 && Wt.push.apply(Wt, ke(n)), this.initSpeedList(), this.on("real_time_speed", this._onRealSpeedChange), this.timer = null, this.cnt = 0, this.xhr = null, i && this.on([Me, Zt], this.startTimer);
|
|
13466
13504
|
}
|
|
13467
13505
|
}, {
|
|
13468
13506
|
key: "getSpeedName",
|
|
@@ -13512,7 +13550,7 @@ var Nd = /* @__PURE__ */ (function(s) {
|
|
|
13512
13550
|
};
|
|
13513
13551
|
}
|
|
13514
13552
|
}]), r;
|
|
13515
|
-
})(V),
|
|
13553
|
+
})(V), jd = /* @__PURE__ */ (function(s) {
|
|
13516
13554
|
A(r, s);
|
|
13517
13555
|
var a = R(r);
|
|
13518
13556
|
function r() {
|
|
@@ -13528,9 +13566,9 @@ var Nd = /* @__PURE__ */ (function(s) {
|
|
|
13528
13566
|
e._startTick();
|
|
13529
13567
|
}), this.on(vt, function() {
|
|
13530
13568
|
e._stopTick();
|
|
13531
|
-
}), this.on(
|
|
13569
|
+
}), this.on(tt, function() {
|
|
13532
13570
|
e._stopTick();
|
|
13533
|
-
}), this.on(
|
|
13571
|
+
}), this.on(it, function() {
|
|
13534
13572
|
e._stopTick();
|
|
13535
13573
|
}));
|
|
13536
13574
|
}
|
|
@@ -13622,24 +13660,24 @@ var Nd = /* @__PURE__ */ (function(s) {
|
|
|
13622
13660
|
}
|
|
13623
13661
|
}]), r;
|
|
13624
13662
|
})(V);
|
|
13625
|
-
|
|
13626
|
-
var
|
|
13663
|
+
gt.use(Nd);
|
|
13664
|
+
var qd = /* @__PURE__ */ S(function s(a, r) {
|
|
13627
13665
|
var t, e, i;
|
|
13628
13666
|
w(this, s);
|
|
13629
|
-
var n = r && r.isMobileSimulateMode === "mobile", o = r.isLive, u = o ? [] : [
|
|
13630
|
-
this.plugins = [
|
|
13667
|
+
var n = r && r.isMobileSimulateMode === "mobile", o = r.isLive, u = o ? [] : [hd, al, Dd, Rd, sl], l = [].concat(u, [rl, nl, gd, _d, Ed, xd, kd, Td, ol, md]), c = [$h, Yh, Zh, fd, Jh, Id, Pd, Ld, id];
|
|
13668
|
+
this.plugins = [Bd, Wh].concat(ke(l), c, [fl, Hd]);
|
|
13631
13669
|
var h = n ? "mobile" : N.device;
|
|
13632
13670
|
switch (h) {
|
|
13633
13671
|
case "pc":
|
|
13634
|
-
(t = this.plugins).push.apply(t, [ru, Lr, Vr,
|
|
13672
|
+
(t = this.plugins).push.apply(t, [ru, Lr, Vr, Ud, jd]);
|
|
13635
13673
|
break;
|
|
13636
13674
|
case "mobile":
|
|
13637
|
-
(e = this.plugins).push.apply(e, [
|
|
13675
|
+
(e = this.plugins).push.apply(e, [ud]);
|
|
13638
13676
|
break;
|
|
13639
13677
|
default:
|
|
13640
13678
|
(i = this.plugins).push.apply(i, [ru, Lr, Vr]);
|
|
13641
13679
|
}
|
|
13642
|
-
(N.os.isIpad || h === "pc") && this.plugins.push(
|
|
13680
|
+
(N.os.isIpad || h === "pc") && this.plugins.push(Fd), N.os.isIpad && this.plugins.push(Lr), this.ignores = [], this.i18n = [];
|
|
13643
13681
|
}), ne = /* @__PURE__ */ (function(s) {
|
|
13644
13682
|
A(r, s);
|
|
13645
13683
|
var a = R(r);
|
|
@@ -13648,14 +13686,14 @@ var Ud = /* @__PURE__ */ S(function s(a, r) {
|
|
|
13648
13686
|
}
|
|
13649
13687
|
return S(r);
|
|
13650
13688
|
})(yi);
|
|
13651
|
-
_(ne, "defaultPreset",
|
|
13689
|
+
_(ne, "defaultPreset", qd);
|
|
13652
13690
|
_(ne, "Util", f);
|
|
13653
13691
|
_(ne, "Sniffer", N);
|
|
13654
13692
|
_(ne, "Errors", Xt);
|
|
13655
|
-
_(ne, "Events",
|
|
13693
|
+
_(ne, "Events", dh);
|
|
13656
13694
|
_(ne, "Plugin", V);
|
|
13657
13695
|
_(ne, "BasePlugin", Ge);
|
|
13658
|
-
_(ne, "I18N",
|
|
13696
|
+
_(ne, "I18N", gt);
|
|
13659
13697
|
_(ne, "STATE_CLASS", k);
|
|
13660
13698
|
_(ne, "InstManager", il);
|
|
13661
13699
|
_(ne, "PlayIcon", rl);
|
|
@@ -13664,7 +13702,7 @@ _(ne, "Progress", al);
|
|
|
13664
13702
|
_(ne, "FullscreenIcon", nl);
|
|
13665
13703
|
_(ne, "CssFullscreenIcon", Vr);
|
|
13666
13704
|
_(ne, "VolumeIcon", ol);
|
|
13667
|
-
const
|
|
13705
|
+
const Vd = ["id"], zd = /* @__PURE__ */ Ee({
|
|
13668
13706
|
name: "ElImageViewer",
|
|
13669
13707
|
__name: "Player",
|
|
13670
13708
|
props: /* @__PURE__ */ Et({
|
|
@@ -13728,11 +13766,11 @@ const jd = ["id"], qd = /* @__PURE__ */ Oe({
|
|
|
13728
13766
|
});
|
|
13729
13767
|
}), (g, v) => {
|
|
13730
13768
|
const m = zr("el-icon");
|
|
13731
|
-
return l.value ? (
|
|
13769
|
+
return l.value ? (K(), Ce(ou, {
|
|
13732
13770
|
key: 0,
|
|
13733
13771
|
to: "body"
|
|
13734
13772
|
}, [
|
|
13735
|
-
|
|
13773
|
+
X(uu, {
|
|
13736
13774
|
name: "viewer-fade",
|
|
13737
13775
|
appear: ""
|
|
13738
13776
|
}, {
|
|
@@ -13743,7 +13781,7 @@ const jd = ["id"], qd = /* @__PURE__ */ Oe({
|
|
|
13743
13781
|
ref: "wrapper",
|
|
13744
13782
|
tabindex: -1,
|
|
13745
13783
|
class: ie(P(h).e("wrapper")),
|
|
13746
|
-
style:
|
|
13784
|
+
style: Le({ zIndex: s.zIndex })
|
|
13747
13785
|
},
|
|
13748
13786
|
[
|
|
13749
13787
|
q(
|
|
@@ -13762,7 +13800,7 @@ const jd = ["id"], qd = /* @__PURE__ */ Oe({
|
|
|
13762
13800
|
class: ie(P(h).e("canvas"))
|
|
13763
13801
|
},
|
|
13764
13802
|
[
|
|
13765
|
-
q("div", { id: P(c) }, null, 8,
|
|
13803
|
+
q("div", { id: P(c) }, null, 8, Vd),
|
|
13766
13804
|
ue(" CLOSE "),
|
|
13767
13805
|
q(
|
|
13768
13806
|
"span",
|
|
@@ -13771,9 +13809,9 @@ const jd = ["id"], qd = /* @__PURE__ */ Oe({
|
|
|
13771
13809
|
onClick: d
|
|
13772
13810
|
},
|
|
13773
13811
|
[
|
|
13774
|
-
|
|
13812
|
+
X(m, { onClick: d }, {
|
|
13775
13813
|
default: Q(() => [
|
|
13776
|
-
|
|
13814
|
+
X(P(fu))
|
|
13777
13815
|
]),
|
|
13778
13816
|
_: 1
|
|
13779
13817
|
/* STABLE */
|
|
@@ -13786,7 +13824,7 @@ const jd = ["id"], qd = /* @__PURE__ */ Oe({
|
|
|
13786
13824
|
2
|
|
13787
13825
|
/* CLASS */
|
|
13788
13826
|
),
|
|
13789
|
-
|
|
13827
|
+
Ze(g.$slots, "default", {}, void 0, !0)
|
|
13790
13828
|
],
|
|
13791
13829
|
6
|
|
13792
13830
|
/* CLASS, STYLE */
|
|
@@ -13798,7 +13836,7 @@ const jd = ["id"], qd = /* @__PURE__ */ Oe({
|
|
|
13798
13836
|
])) : ue("v-if", !0);
|
|
13799
13837
|
};
|
|
13800
13838
|
}
|
|
13801
|
-
}),
|
|
13839
|
+
}), Gd = /* @__PURE__ */ Kr(zd, [["__scopeId", "data-v-b301aa7d"]]), Wd = Qe(Gd), Kd = { class: "head-logo" }, $d = ["src"], Yd = { class: "text-preview-container" }, Xd = { class: "text-preview-header" }, Zd = { class: "file-name" }, Jd = { class: "text-preview-content" }, Qd = /* @__PURE__ */ Ee({
|
|
13802
13840
|
__name: "IkPreviewFileDialog",
|
|
13803
13841
|
props: /* @__PURE__ */ Et({
|
|
13804
13842
|
file: {
|
|
@@ -13849,11 +13887,11 @@ const jd = ["id"], qd = /* @__PURE__ */ Oe({
|
|
|
13849
13887
|
}), c = (v) => {
|
|
13850
13888
|
var m, p, T, C, b, x, E;
|
|
13851
13889
|
try {
|
|
13852
|
-
const I = ((m = v == null ? void 0 : v.response) == null ? void 0 : m.data) || v,
|
|
13890
|
+
const I = ((m = v == null ? void 0 : v.response) == null ? void 0 : m.data) || v, Y = I[i.value.url] || (I == null ? void 0 : I.id) || I.attachmentId, G = (p = I[i.value.suffix] || I.attachmentSuffix) == null ? void 0 : p.toLowerCase(), B = I[i.value.name] || (I == null ? void 0 : I.attachmentName) || (I == null ? void 0 : I.originName);
|
|
13853
13891
|
if (o.value = {
|
|
13854
13892
|
...v,
|
|
13855
13893
|
name: v[i.value.name],
|
|
13856
|
-
url: Fr(r.loadUrl,
|
|
13894
|
+
url: Fr(r.loadUrl, Y)
|
|
13857
13895
|
}, v && bi(v, i.value) === "image") {
|
|
13858
13896
|
l.image = !0;
|
|
13859
13897
|
return;
|
|
@@ -13878,7 +13916,7 @@ const jd = ["id"], qd = /* @__PURE__ */ Oe({
|
|
|
13878
13916
|
document: {
|
|
13879
13917
|
key: (v == null ? void 0 : v.key) || lu(),
|
|
13880
13918
|
title: B,
|
|
13881
|
-
url: Fr(r.loadUrl,
|
|
13919
|
+
url: Fr(r.loadUrl, Y),
|
|
13882
13920
|
fileType: G,
|
|
13883
13921
|
...((E = r.onlyOfficeConfig) == null ? void 0 : E.document) || {}
|
|
13884
13922
|
},
|
|
@@ -13914,11 +13952,11 @@ const jd = ["id"], qd = /* @__PURE__ */ Oe({
|
|
|
13914
13952
|
};
|
|
13915
13953
|
return (v, m) => {
|
|
13916
13954
|
var p, T, C;
|
|
13917
|
-
return e.value ? (
|
|
13955
|
+
return e.value ? (K(), oe(
|
|
13918
13956
|
Kt,
|
|
13919
13957
|
{ key: 0 },
|
|
13920
13958
|
[
|
|
13921
|
-
(p = o.value) != null && p.url && l.image ? (
|
|
13959
|
+
(p = o.value) != null && p.url && l.image ? (K(), Ce(P(Ff), {
|
|
13922
13960
|
key: 0,
|
|
13923
13961
|
onClose: m[0] || (m[0] = (b) => d()),
|
|
13924
13962
|
ref: "previewImgRef",
|
|
@@ -13928,13 +13966,13 @@ const jd = ["id"], qd = /* @__PURE__ */ Oe({
|
|
|
13928
13966
|
}, null, 8, ["url-list"])) : ue("v-if", !0),
|
|
13929
13967
|
ue(' <IkPreviewVideo :file="fileData" v-model:show="modal.video" />'),
|
|
13930
13968
|
ue(" 文档类 "),
|
|
13931
|
-
|
|
13969
|
+
X(P(Wd), {
|
|
13932
13970
|
modelValue: l.video,
|
|
13933
13971
|
"onUpdate:modelValue": m[1] || (m[1] = (b) => l.video = b),
|
|
13934
13972
|
url: (C = o.value) == null ? void 0 : C.url,
|
|
13935
13973
|
onClose: d
|
|
13936
13974
|
}, null, 8, ["modelValue", "url"]),
|
|
13937
|
-
|
|
13975
|
+
X(P(Ia), {
|
|
13938
13976
|
modelValue: l.office,
|
|
13939
13977
|
"onUpdate:modelValue": m[2] || (m[2] = (b) => l.office = b),
|
|
13940
13978
|
draggable: "",
|
|
@@ -13952,14 +13990,14 @@ const jd = ["id"], qd = /* @__PURE__ */ Oe({
|
|
|
13952
13990
|
default: Q(() => {
|
|
13953
13991
|
var b, x, E;
|
|
13954
13992
|
return [
|
|
13955
|
-
q("div",
|
|
13993
|
+
q("div", Kd, [
|
|
13956
13994
|
q("img", {
|
|
13957
13995
|
src: (x = (b = n.value.editorConfig.customization) == null ? void 0 : b.logo) == null ? void 0 : x.image,
|
|
13958
13996
|
onClick: g,
|
|
13959
13997
|
alt: ""
|
|
13960
|
-
}, null, 8,
|
|
13998
|
+
}, null, 8, $d)
|
|
13961
13999
|
]),
|
|
13962
|
-
|
|
14000
|
+
X(P(Rf), {
|
|
13963
14001
|
"config-options": n.value,
|
|
13964
14002
|
"document-server-url": ((E = s.onlyOfficeConfig) == null ? void 0 : E.serverUrl) || s.onlyofficeServer
|
|
13965
14003
|
}, null, 8, ["config-options", "document-server-url"])
|
|
@@ -13969,7 +14007,7 @@ const jd = ["id"], qd = /* @__PURE__ */ Oe({
|
|
|
13969
14007
|
/* STABLE */
|
|
13970
14008
|
}, 8, ["modelValue"]),
|
|
13971
14009
|
ue(" txt文件预览 "),
|
|
13972
|
-
|
|
14010
|
+
X(P(Ia), {
|
|
13973
14011
|
modelValue: l.text,
|
|
13974
14012
|
"onUpdate:modelValue": m[3] || (m[3] = (b) => l.text = b),
|
|
13975
14013
|
draggable: "",
|
|
@@ -13987,11 +14025,11 @@ const jd = ["id"], qd = /* @__PURE__ */ Oe({
|
|
|
13987
14025
|
default: Q(() => {
|
|
13988
14026
|
var b;
|
|
13989
14027
|
return [
|
|
13990
|
-
q("div",
|
|
13991
|
-
q("div",
|
|
14028
|
+
q("div", Yd, [
|
|
14029
|
+
q("div", Xd, [
|
|
13992
14030
|
q(
|
|
13993
14031
|
"span",
|
|
13994
|
-
|
|
14032
|
+
Zd,
|
|
13995
14033
|
$t((b = o.value) == null ? void 0 : b.name),
|
|
13996
14034
|
1
|
|
13997
14035
|
/* TEXT */
|
|
@@ -13999,7 +14037,7 @@ const jd = ["id"], qd = /* @__PURE__ */ Oe({
|
|
|
13999
14037
|
]),
|
|
14000
14038
|
q(
|
|
14001
14039
|
"pre",
|
|
14002
|
-
|
|
14040
|
+
Jd,
|
|
14003
14041
|
$t(u.value),
|
|
14004
14042
|
1
|
|
14005
14043
|
/* TEXT */
|
|
@@ -14016,8 +14054,8 @@ const jd = ["id"], qd = /* @__PURE__ */ Oe({
|
|
|
14016
14054
|
)) : ue("v-if", !0);
|
|
14017
14055
|
};
|
|
14018
14056
|
}
|
|
14019
|
-
}),
|
|
14057
|
+
}), og = Qe(Qd);
|
|
14020
14058
|
export {
|
|
14021
|
-
|
|
14022
|
-
|
|
14059
|
+
og as IkPreviewFileDialog,
|
|
14060
|
+
og as default
|
|
14023
14061
|
};
|