@byteplus/veplayer-plugin 2.3.1-rc.1 → 2.3.1-rc.3
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/esm/veplayer.plugin.drm.development.js +1577 -0
- package/esm/veplayer.plugin.drm.production.js +2 -0
- package/esm/veplayer.plugin.mp4.development.js +38039 -0
- package/esm/veplayer.plugin.mp4.production.js +2 -0
- package/esm/veplayer.plugin.rtm.development.js +5587 -0
- package/esm/veplayer.plugin.rtm.production.js +2 -0
- package/esm/veplayer.plugin.shaka.development.js +15973 -0
- package/esm/veplayer.plugin.shaka.production.js +20 -0
- package/esm/veplayer.plugin.time.shift.development.css +63 -0
- package/esm/veplayer.plugin.time.shift.development.js +339 -0
- package/esm/veplayer.plugin.time.shift.production.css +1 -0
- package/esm/veplayer.plugin.time.shift.production.js +2 -0
- package/esm/veplayer.plugin.xgvideo.development.js +19097 -0
- package/esm/veplayer.plugin.xgvideo.production.js +2 -0
- package/package.json +1 -1
- package/umd/veplayer.plugin.drm.development.js +1579 -0
- package/umd/veplayer.plugin.drm.production.js +1 -0
- package/umd/veplayer.plugin.mp4.development.js +38043 -0
- package/umd/veplayer.plugin.mp4.production.js +1 -0
- package/umd/veplayer.plugin.rtm.development.js +5589 -0
- package/umd/veplayer.plugin.rtm.production.js +1 -0
- package/umd/veplayer.plugin.shaka.development.js +15977 -0
- package/umd/veplayer.plugin.shaka.production.js +1 -0
- package/umd/veplayer.plugin.time.shift.development.css +63 -0
- package/umd/veplayer.plugin.time.shift.development.js +342 -0
- package/umd/veplayer.plugin.time.shift.production.css +1 -0
- package/umd/veplayer.plugin.time.shift.production.js +1 -0
- package/umd/veplayer.plugin.xgvideo.development.js +19099 -0
- package/umd/veplayer.plugin.xgvideo.production.js +1 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
.xgplayer-shift .xgplayer-shift-progress-point {
|
|
2
|
+
position: absolute;
|
|
3
|
+
top: -30px;
|
|
4
|
+
display: none;
|
|
5
|
+
width: 60px;
|
|
6
|
+
padding: 6px 0;
|
|
7
|
+
color: #fff;
|
|
8
|
+
font-size: 12px;
|
|
9
|
+
line-height: 18px;
|
|
10
|
+
text-align: center;
|
|
11
|
+
background: rgba(0, 0, 0, 0.6);
|
|
12
|
+
border-radius: 2px;
|
|
13
|
+
transform: translateX(-50%);
|
|
14
|
+
}
|
|
15
|
+
.xgplayer-shift.active .xgplayer-shift-progress-point {
|
|
16
|
+
display: block;
|
|
17
|
+
}
|
|
18
|
+
.xgplayer-shift.xgplayer-progress .xgplayer-progress-outer {
|
|
19
|
+
transition: unset;
|
|
20
|
+
}
|
|
21
|
+
.xgplayer-shift.xgplayer-progress .xgplayer-progress-btn {
|
|
22
|
+
width: 16px;
|
|
23
|
+
height: 16px;
|
|
24
|
+
background: #346aff41;
|
|
25
|
+
box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.096);
|
|
26
|
+
}
|
|
27
|
+
.xgplayer-shift.xgplayer-progress .xgplayer-progress-played {
|
|
28
|
+
background: #3469ff;
|
|
29
|
+
}
|
|
30
|
+
.xgplayer-back-live-bt {
|
|
31
|
+
position: absolute;
|
|
32
|
+
bottom: 60px;
|
|
33
|
+
left: 20px;
|
|
34
|
+
display: none;
|
|
35
|
+
align-items: center;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
width: 96px;
|
|
38
|
+
height: 32px;
|
|
39
|
+
color: #fff;
|
|
40
|
+
font-size: 13px;
|
|
41
|
+
background: rgba(0, 0, 0, 0.4);
|
|
42
|
+
border: 1px solid rgba(255, 255, 255, 0.8);
|
|
43
|
+
border-radius: 16px;
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
}
|
|
46
|
+
.xgplayer-back-live-bt:hover {
|
|
47
|
+
background: rgba(0, 0, 0, 0.6);
|
|
48
|
+
}
|
|
49
|
+
.xgplayer-inactive .xgplayer-back-live-bt {
|
|
50
|
+
display: none;
|
|
51
|
+
}
|
|
52
|
+
.xgplayer-mobile .xgplayer-shift {
|
|
53
|
+
margin: 0 8px;
|
|
54
|
+
}
|
|
55
|
+
.xgplayer-mobile .xgplayer-shift .xgplayer-shift-progress-point {
|
|
56
|
+
display: none;
|
|
57
|
+
}
|
|
58
|
+
.xgplayer-mobile .xgplayer-back-live-bt {
|
|
59
|
+
bottom: 40px;
|
|
60
|
+
width: 86px;
|
|
61
|
+
height: 25px;
|
|
62
|
+
font-size: 12px;
|
|
63
|
+
}
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
(function(global, factory) {
|
|
2
|
+
typeof exports === "object" && typeof module !== "undefined" ? module.exports = factory() : typeof define === "function" && define.amd ? define(factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, global.VePlayerTimeShift = factory());
|
|
3
|
+
})(this, function() {
|
|
4
|
+
"use strict";var __defProp = Object.defineProperty;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __publicField = (obj, key, value) => {
|
|
7
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8
|
+
return value;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const formatTime = function(time) {
|
|
12
|
+
let hour = Math.floor(time / 3600);
|
|
13
|
+
const remainTime = time % 3600;
|
|
14
|
+
let minute = Math.floor(remainTime / 60);
|
|
15
|
+
let second = Math.round(remainTime % 60);
|
|
16
|
+
minute = minute.toString().padStart(2, "0");
|
|
17
|
+
second = second.toString().padStart(2, "0");
|
|
18
|
+
if (hour > 0) {
|
|
19
|
+
hour = hour.toString().padStart(2, "0");
|
|
20
|
+
return `${hour}:${minute}:${second}`;
|
|
21
|
+
}
|
|
22
|
+
return `${minute}:${second}`;
|
|
23
|
+
};
|
|
24
|
+
const addUrlParam = (originUrl, params) => {
|
|
25
|
+
if (!params) {
|
|
26
|
+
return originUrl;
|
|
27
|
+
}
|
|
28
|
+
const withoutProtocol = originUrl.startsWith("//");
|
|
29
|
+
if (withoutProtocol) {
|
|
30
|
+
originUrl = location.protocol + originUrl;
|
|
31
|
+
}
|
|
32
|
+
try {
|
|
33
|
+
const url = new URL(originUrl);
|
|
34
|
+
Object.entries(params).forEach(([key, value]) => {
|
|
35
|
+
url == null ? void 0 : url.searchParams.set(key, value);
|
|
36
|
+
});
|
|
37
|
+
return `${withoutProtocol ? "" : url.protocol}//${url.host}${url.pathname}${url.search}`;
|
|
38
|
+
} catch (error) {
|
|
39
|
+
console.warn("URL 格式有误,请检查", error);
|
|
40
|
+
return originUrl;
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
var timeShift = "";
|
|
44
|
+
const live = window["VePlayer"].live;
|
|
45
|
+
const Plugin = window["VePlayer"].Plugin;
|
|
46
|
+
const Sniffer = window["VePlayer"].Sniffer;
|
|
47
|
+
const XGUtil = window["VePlayer"].util;
|
|
48
|
+
const { POSITIONS } = Plugin;
|
|
49
|
+
const { Events } = live;
|
|
50
|
+
const MAX_SHIFT = 7 * 24 * 3600;
|
|
51
|
+
const MIN_SHIFT = 6;
|
|
52
|
+
class TimeShift extends Plugin {
|
|
53
|
+
constructor() {
|
|
54
|
+
super(...arguments);
|
|
55
|
+
__publicField(this, "_isMobile", Sniffer.device === "mobile");
|
|
56
|
+
__publicField(this, "_playedBar", null);
|
|
57
|
+
__publicField(this, "_progressBtn", null);
|
|
58
|
+
__publicField(this, "_tooltip", null);
|
|
59
|
+
__publicField(this, "_backToLiveBtn", null);
|
|
60
|
+
__publicField(this, "_localInitTime", 0);
|
|
61
|
+
// 初始化时的客户端时间
|
|
62
|
+
__publicField(this, "_timeShiftInitRange", 0);
|
|
63
|
+
// 初始化时直播时移范围
|
|
64
|
+
__publicField(this, "_timeShiftOffset", 0);
|
|
65
|
+
// 当前时移时间
|
|
66
|
+
__publicField(this, "_isProgressMoving", false);
|
|
67
|
+
__publicField(this, "_liveUrl", "");
|
|
68
|
+
__publicField(this, "_stopPropagation", (e) => {
|
|
69
|
+
XGUtil.stopPropagation(e);
|
|
70
|
+
XGUtil.event(e);
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
static get pluginName() {
|
|
74
|
+
return "timeShift";
|
|
75
|
+
}
|
|
76
|
+
static get defaultConfig() {
|
|
77
|
+
return {
|
|
78
|
+
position: POSITIONS.CONTROLS_CENTER,
|
|
79
|
+
// 直播开始时间
|
|
80
|
+
liveStartTime: Date.now() / 1e3,
|
|
81
|
+
maxShiftOffset: 0,
|
|
82
|
+
// 当前时间
|
|
83
|
+
currentTime: Date.now() / 1e3
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
// 直播可时移范围
|
|
87
|
+
get _timeShiftLimit() {
|
|
88
|
+
const latestTimeShiftRange = this._timeShiftInitRange + Math.floor(Date.now() / 1e3 - this._localInitTime);
|
|
89
|
+
const { maxShiftOffset } = this.config ?? {};
|
|
90
|
+
if (latestTimeShiftRange > MAX_SHIFT) {
|
|
91
|
+
return MAX_SHIFT;
|
|
92
|
+
}
|
|
93
|
+
if (maxShiftOffset && latestTimeShiftRange > maxShiftOffset) {
|
|
94
|
+
return maxShiftOffset;
|
|
95
|
+
}
|
|
96
|
+
return latestTimeShiftRange;
|
|
97
|
+
}
|
|
98
|
+
registerLanguageTexts() {
|
|
99
|
+
return {
|
|
100
|
+
backToLive: {
|
|
101
|
+
jp: "ライブに戻る",
|
|
102
|
+
en: "Back to live",
|
|
103
|
+
zh: "返回直播",
|
|
104
|
+
"zh-hk": "返回直播"
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
updateLang() {
|
|
109
|
+
if (!this._backToLiveBtn)
|
|
110
|
+
return;
|
|
111
|
+
this._backToLiveBtn.innerHTML = this.langText.backToLive;
|
|
112
|
+
}
|
|
113
|
+
afterCreate() {
|
|
114
|
+
this._liveUrl = this.player.config.url;
|
|
115
|
+
this._playedBar = this.find(".xgplayer-progress-played");
|
|
116
|
+
this._progressBtn = this.find(".xgplayer-progress-btn");
|
|
117
|
+
this._tooltip = this.find(".xgplayer-shift-progress-point");
|
|
118
|
+
const { liveStartTime, currentTime } = this.config ?? {};
|
|
119
|
+
this._localInitTime = Math.floor(Date.now() / 1e3);
|
|
120
|
+
this._timeShiftInitRange = Math.floor(currentTime - liveStartTime);
|
|
121
|
+
this._createBackLiveBtDom();
|
|
122
|
+
this._initEvents();
|
|
123
|
+
this._bindDomEvents();
|
|
124
|
+
}
|
|
125
|
+
backToLive() {
|
|
126
|
+
if (!this._liveUrl) {
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
this._switchUrl(this._liveUrl);
|
|
130
|
+
this._timeShiftOffset = 0;
|
|
131
|
+
this._toggleBackButton(false);
|
|
132
|
+
this.player.emit(Events.TIME_SHIFT_CHANGE, false);
|
|
133
|
+
}
|
|
134
|
+
destroy() {
|
|
135
|
+
var _a, _b, _c;
|
|
136
|
+
this.off(Events.TIME_UPDATE, this._handleTimeUpdate.bind(this));
|
|
137
|
+
if (this._isMobile) {
|
|
138
|
+
this.unbind("touchstart", this._handleMouseDown);
|
|
139
|
+
const controls = this.player.controls;
|
|
140
|
+
if (controls) {
|
|
141
|
+
(_a = controls.root) == null ? void 0 : _a.removerEventListener(
|
|
142
|
+
"touchmove",
|
|
143
|
+
XGUtil.stopPropagation
|
|
144
|
+
);
|
|
145
|
+
(_b = controls.center) == null ? void 0 : _b.removerEventListener(
|
|
146
|
+
"touchend",
|
|
147
|
+
XGUtil.stopPropagation
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
} else {
|
|
151
|
+
this.unbind("mousedown", this._handleMouseDown);
|
|
152
|
+
this.unbind("mouseenter", this._handleMouseEnter);
|
|
153
|
+
}
|
|
154
|
+
if (this._backToLiveBtn) {
|
|
155
|
+
(_c = this.player.root) == null ? void 0 : _c.removeChild(this._backToLiveBtn);
|
|
156
|
+
this._backToLiveBtn = null;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
render() {
|
|
160
|
+
const controlsMode = this.player.controls ? this.player.controls.config.mode : "";
|
|
161
|
+
const className = controlsMode === "bottom" ? "xgplayer-progress-bottom" : "";
|
|
162
|
+
return `
|
|
163
|
+
<xg-progress class="xgplayer-progress ${className} xgplayer-shift">
|
|
164
|
+
<xg-back-live-bt class="xgplayer-back-live-bt"></xg-back-live-bt>
|
|
165
|
+
<xg-outer class="xgplayer-progress-outer">
|
|
166
|
+
<xg-inners class="progress-list">
|
|
167
|
+
<xg-inner class="xgplayer-progress-inner" style="flex: 1">
|
|
168
|
+
<xg-cache class="xgplayer-progress-cache" style="width: 100%;"></xg-cache>
|
|
169
|
+
<xg-played class="xgplayer-progress-played" style="width: 100%;"></xg-played>
|
|
170
|
+
</xg-inner>
|
|
171
|
+
</xg-inners>
|
|
172
|
+
<xg-progress-btn class="xgplayer-progress-btn"></xg-progress-btn>
|
|
173
|
+
<xg-point class="xgplayer-shift-progress-point">00:00</xg-point>
|
|
174
|
+
</xg-outer>
|
|
175
|
+
</xg-progress>
|
|
176
|
+
`;
|
|
177
|
+
}
|
|
178
|
+
_initEvents() {
|
|
179
|
+
this.on(Events.TIME_UPDATE, this._handleTimeUpdate.bind(this));
|
|
180
|
+
}
|
|
181
|
+
_bindDomEvents() {
|
|
182
|
+
var _a, _b;
|
|
183
|
+
this._handleMouseDown = this._handleMouseDown.bind(this);
|
|
184
|
+
this._handleMouseUp = this._handleMouseUp.bind(this);
|
|
185
|
+
this._handleMouseMove = this._handleMouseMove.bind(this);
|
|
186
|
+
this._handleMouseEnter = this._handleMouseEnter.bind(this);
|
|
187
|
+
this._handleMouseLeave = this._handleMouseLeave.bind(this);
|
|
188
|
+
this._tipsUpdate = this._tipsUpdate.bind(this);
|
|
189
|
+
if (this._isMobile) {
|
|
190
|
+
this.bind("touchstart", this._handleMouseDown);
|
|
191
|
+
const controls = this.player.controls;
|
|
192
|
+
if (controls) {
|
|
193
|
+
(_a = controls.root) == null ? void 0 : _a.addEventListener("touchmove", XGUtil.stopPropagation);
|
|
194
|
+
(_b = controls.center) == null ? void 0 : _b.addEventListener("touchend", XGUtil.stopPropagation);
|
|
195
|
+
}
|
|
196
|
+
} else {
|
|
197
|
+
this.bind("mousedown", this._handleMouseDown);
|
|
198
|
+
this.bind("mouseenter", this._handleMouseEnter);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
_handleTimeUpdate() {
|
|
202
|
+
if (this._isProgressMoving) {
|
|
203
|
+
return;
|
|
204
|
+
}
|
|
205
|
+
this._progressUpdate();
|
|
206
|
+
}
|
|
207
|
+
_handleMouseDown(e) {
|
|
208
|
+
if (e.target === this._backToLiveBtn) {
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
211
|
+
this._stopPropagation(e);
|
|
212
|
+
this._focus();
|
|
213
|
+
this._progressBtn && XGUtil.addClass(this._progressBtn, "active");
|
|
214
|
+
this._timeShiftOffset = this._getProgressOffset(e).progressOffset;
|
|
215
|
+
this._progressUpdate();
|
|
216
|
+
this._isProgressMoving = true;
|
|
217
|
+
if (this._isMobile) {
|
|
218
|
+
this.bind("touchmove", this._handleMouseMove);
|
|
219
|
+
this.bind("touchend", this._handleMouseUp);
|
|
220
|
+
} else {
|
|
221
|
+
document.addEventListener("mousemove", this._handleMouseMove, false);
|
|
222
|
+
document.addEventListener("mouseup", this._handleMouseUp, false);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
_handleMouseMove(e) {
|
|
226
|
+
this._stopPropagation(e);
|
|
227
|
+
this._timeShiftOffset = this._getProgressOffset(e).progressOffset;
|
|
228
|
+
this._progressUpdate();
|
|
229
|
+
}
|
|
230
|
+
_handleMouseUp(e) {
|
|
231
|
+
this._stopPropagation(e);
|
|
232
|
+
this._isProgressMoving = false;
|
|
233
|
+
this._progressBtn && XGUtil.removeClass(this._progressBtn, "active");
|
|
234
|
+
this._changeTimeUrl();
|
|
235
|
+
if (this._isMobile) {
|
|
236
|
+
this.unbind("touchmove", this._handleMouseMove);
|
|
237
|
+
this.unbind("touchend", this._handleMouseUp);
|
|
238
|
+
} else {
|
|
239
|
+
document.removeEventListener("mousemove", this._handleMouseMove, false);
|
|
240
|
+
document.removeEventListener("mouseup", this._handleMouseUp, false);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
_handleMouseEnter(e) {
|
|
244
|
+
this.bind("mouseleave", this._handleMouseLeave);
|
|
245
|
+
this.bind("mousemove", this._tipsUpdate);
|
|
246
|
+
this._tipsUpdate(e);
|
|
247
|
+
this._focus();
|
|
248
|
+
}
|
|
249
|
+
_handleMouseLeave() {
|
|
250
|
+
this.unbind("mouseleave", this._handleMouseLeave);
|
|
251
|
+
this.unbind("mousemove", this._tipsUpdate);
|
|
252
|
+
this._blur();
|
|
253
|
+
}
|
|
254
|
+
_focus() {
|
|
255
|
+
this.player.controls.pauseAutoHide();
|
|
256
|
+
XGUtil.addClass(this.root, "active");
|
|
257
|
+
}
|
|
258
|
+
_blur() {
|
|
259
|
+
this.player.controls.recoverAutoHide();
|
|
260
|
+
XGUtil.removeClass(this.root, "active");
|
|
261
|
+
}
|
|
262
|
+
_getProgressPercent(e) {
|
|
263
|
+
const { player } = this;
|
|
264
|
+
const { width, height, top, left } = this.root.getBoundingClientRect();
|
|
265
|
+
const _ePos = XGUtil.getEventPos(e, player.zoom);
|
|
266
|
+
let rWidth, rLeft, clientX;
|
|
267
|
+
if (player.rotateDeg === 90) {
|
|
268
|
+
rWidth = height;
|
|
269
|
+
rLeft = top;
|
|
270
|
+
clientX = _ePos.clientY;
|
|
271
|
+
} else {
|
|
272
|
+
rWidth = width;
|
|
273
|
+
rLeft = left;
|
|
274
|
+
clientX = _ePos.clientX;
|
|
275
|
+
}
|
|
276
|
+
let offset = clientX - rLeft;
|
|
277
|
+
offset = offset > rWidth ? rWidth : offset < 0 ? 0 : offset;
|
|
278
|
+
let percent = offset / rWidth;
|
|
279
|
+
percent = percent < 0 ? 0 : percent > 1 ? 1 : percent;
|
|
280
|
+
return percent;
|
|
281
|
+
}
|
|
282
|
+
_getProgressOffset(e) {
|
|
283
|
+
const percent = this._getProgressPercent(e);
|
|
284
|
+
return {
|
|
285
|
+
progressOffset: Math.floor(this._timeShiftLimit * (1 - percent)),
|
|
286
|
+
percent
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
_tipsUpdate(e) {
|
|
290
|
+
const { progressOffset, percent } = this._getProgressOffset(e);
|
|
291
|
+
if (!this._tooltip) {
|
|
292
|
+
return;
|
|
293
|
+
}
|
|
294
|
+
this._tooltip.style.left = `${percent * 100}%`;
|
|
295
|
+
this._tooltip.innerHTML = `-${formatTime(progressOffset)}`;
|
|
296
|
+
}
|
|
297
|
+
_progressUpdate() {
|
|
298
|
+
if (!this._progressBtn || !this._playedBar) {
|
|
299
|
+
return;
|
|
300
|
+
}
|
|
301
|
+
const progressPercent = Math.floor(this._timeShiftLimit - this._timeShiftOffset) / this._timeShiftLimit;
|
|
302
|
+
this._progressBtn.style.left = `${progressPercent * 100}%`;
|
|
303
|
+
this._playedBar.style.width = `${progressPercent * 100}%`;
|
|
304
|
+
}
|
|
305
|
+
_switchUrl(url) {
|
|
306
|
+
this.player.src = url;
|
|
307
|
+
this.player.config.url = url;
|
|
308
|
+
}
|
|
309
|
+
_changeTimeUrl() {
|
|
310
|
+
let shiftUrl = "";
|
|
311
|
+
this._toggleBackButton(true);
|
|
312
|
+
const _timeShiftOffset = this._timeShiftOffset < MIN_SHIFT ? MIN_SHIFT : this._timeShiftOffset;
|
|
313
|
+
shiftUrl = addUrlParam(this._liveUrl, {
|
|
314
|
+
timeshift: _timeShiftOffset
|
|
315
|
+
});
|
|
316
|
+
this._switchUrl(shiftUrl);
|
|
317
|
+
this.player.emit(Events.TIME_SHIFT_CHANGE, true);
|
|
318
|
+
}
|
|
319
|
+
_createBackLiveBtDom() {
|
|
320
|
+
var _a, _b;
|
|
321
|
+
if (this._backToLiveBtn) {
|
|
322
|
+
return;
|
|
323
|
+
}
|
|
324
|
+
this._backToLiveBtn = XGUtil.createDom(
|
|
325
|
+
"xg-back-live-bt",
|
|
326
|
+
this.langText.backToLive,
|
|
327
|
+
void 0,
|
|
328
|
+
"xgplayer-back-live-bt"
|
|
329
|
+
);
|
|
330
|
+
(_a = this._backToLiveBtn) == null ? void 0 : _a.addEventListener("click", () => {
|
|
331
|
+
this.backToLive();
|
|
332
|
+
});
|
|
333
|
+
(_b = this.player.root) == null ? void 0 : _b.appendChild(this._backToLiveBtn);
|
|
334
|
+
}
|
|
335
|
+
_toggleBackButton(isPlayTimeShift) {
|
|
336
|
+
if (!this._backToLiveBtn)
|
|
337
|
+
return;
|
|
338
|
+
this._backToLiveBtn.style.display = isPlayTimeShift ? "flex" : "none";
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
return TimeShift;
|
|
342
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.xgplayer-shift .xgplayer-shift-progress-point{position:absolute;top:-30px;display:none;width:60px;padding:6px 0;color:#fff;font-size:12px;line-height:18px;text-align:center;background:rgba(0,0,0,.6);border-radius:2px;transform:translate(-50%)}.xgplayer-shift.active .xgplayer-shift-progress-point{display:block}.xgplayer-shift.xgplayer-progress .xgplayer-progress-outer{transition:unset}.xgplayer-shift.xgplayer-progress .xgplayer-progress-btn{width:16px;height:16px;background:#346aff41;box-shadow:0 0 1px rgba(0,0,0,.094)}.xgplayer-shift.xgplayer-progress .xgplayer-progress-played{background:#3469ff}.xgplayer-back-live-bt{position:absolute;bottom:60px;left:20px;display:none;align-items:center;justify-content:center;width:96px;height:32px;color:#fff;font-size:13px;background:rgba(0,0,0,.4);border:1px solid rgba(255,255,255,.8);border-radius:16px;cursor:pointer}.xgplayer-back-live-bt:hover{background:rgba(0,0,0,.6)}.xgplayer-inactive .xgplayer-back-live-bt{display:none}.xgplayer-mobile .xgplayer-shift{margin:0 8px}.xgplayer-mobile .xgplayer-shift .xgplayer-shift-progress-point{display:none}.xgplayer-mobile .xgplayer-back-live-bt{bottom:40px;width:86px;height:25px;font-size:12px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).VePlayerTimeShift=e()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var r={exports:{}},n=function(t){return t&&t.Math==Math&&t},o=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||t||Function("return this")(),i=function(t){try{return!!t()}catch(e){return!0}},a=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),s=a,u=Function.prototype,c=u.apply,f=u.call,l="object"==typeof Reflect&&Reflect.apply||(s?f.bind(c):function(){return f.apply(c,arguments)}),h=a,p=Function.prototype,v=p.call,g=h&&p.bind.bind(v,v),y=h?g:function(t){return function(){return v.apply(t,arguments)}},d=y,m=d({}.toString),b=d("".slice),w=function(t){return b(m(t),8,-1)},S=w,_=y,O=function(t){if("Function"===S(t))return _(t)},P="object"==typeof document&&document.all,k={all:P,IS_HTMLDDA:void 0===P&&void 0!==P},L=k.all,T=k.IS_HTMLDDA?function(t){return"function"==typeof t||t===L}:function(t){return"function"==typeof t},j={},E=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),M=a,A=Function.prototype.call,U=M?A.bind(A):function(){return A.apply(A,arguments)},x={},R={}.propertyIsEnumerable,B=Object.getOwnPropertyDescriptor,C=B&&!R.call({1:2},1);x.f=C?function(t){var e=B(this,t);return!!e&&e.enumerable}:R;var I,D,F=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},H=i,q=w,N=Object,z=y("".split),G=H((function(){return!N("z").propertyIsEnumerable(0)}))?function(t){return"String"==q(t)?z(t,""):N(t)}:N,V=function(t){return null==t},W=V,$=TypeError,J=function(t){if(W(t))throw $("Can't call method on "+t);return t},Q=G,Y=J,K=function(t){return Q(Y(t))},X=T,Z=k.all,tt=k.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:X(t)||t===Z}:function(t){return"object"==typeof t?null!==t:X(t)},et={},rt=et,nt=o,ot=T,it=function(t){return ot(t)?t:void 0},at=function(t,e){return arguments.length<2?it(rt[t])||it(nt[t]):rt[t]&&rt[t][e]||nt[t]&&nt[t][e]},st=y({}.isPrototypeOf),ut="undefined"!=typeof navigator&&String(navigator.userAgent)||"",ct=o,ft=ut,lt=ct.process,ht=ct.Deno,pt=lt&<.versions||ht&&ht.version,vt=pt&&pt.v8;vt&&(D=(I=vt.split("."))[0]>0&&I[0]<4?1:+(I[0]+I[1])),!D&&ft&&(!(I=ft.match(/Edge\/(\d+)/))||I[1]>=74)&&(I=ft.match(/Chrome\/(\d+)/))&&(D=+I[1]);var gt=D,yt=gt,dt=i,mt=o.String,bt=!!Object.getOwnPropertySymbols&&!dt((function(){var t=Symbol();return!mt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&yt&&yt<41})),wt=bt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,St=at,_t=T,Ot=st,Pt=Object,kt=wt?function(t){return"symbol"==typeof t}:function(t){var e=St("Symbol");return _t(e)&&Ot(e.prototype,Pt(t))},Lt=String,Tt=function(t){try{return Lt(t)}catch(e){return"Object"}},jt=T,Et=Tt,Mt=TypeError,At=function(t){if(jt(t))return t;throw Mt(Et(t)+" is not a function")},Ut=At,xt=V,Rt=function(t,e){var r=t[e];return xt(r)?void 0:Ut(r)},Bt=U,Ct=T,It=tt,Dt=TypeError,Ft={exports:{}},Ht=o,qt=Object.defineProperty,Nt=function(t,e){try{qt(Ht,t,{value:e,configurable:!0,writable:!0})}catch(r){Ht[t]=e}return e},zt="__core-js_shared__",Gt=o[zt]||Nt(zt,{}),Vt=Gt;(Ft.exports=function(t,e){return Vt[t]||(Vt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.30.2",mode:"pure",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"});var Wt=Ft.exports,$t=J,Jt=Object,Qt=function(t){return Jt($t(t))},Yt=Qt,Kt=y({}.hasOwnProperty),Xt=Object.hasOwn||function(t,e){return Kt(Yt(t),e)},Zt=y,te=0,ee=Math.random(),re=Zt(1..toString),ne=function(t){return"Symbol("+(void 0===t?"":t)+")_"+re(++te+ee,36)},oe=Wt,ie=Xt,ae=ne,se=bt,ue=wt,ce=o.Symbol,fe=oe("wks"),le=ue?ce.for||ce:ce&&ce.withoutSetter||ae,he=function(t){return ie(fe,t)||(fe[t]=se&&ie(ce,t)?ce[t]:le("Symbol."+t)),fe[t]},pe=U,ve=tt,ge=kt,ye=Rt,de=function(t,e){var r,n;if("string"===e&&Ct(r=t.toString)&&!It(n=Bt(r,t)))return n;if(Ct(r=t.valueOf)&&!It(n=Bt(r,t)))return n;if("string"!==e&&Ct(r=t.toString)&&!It(n=Bt(r,t)))return n;throw Dt("Can't convert object to primitive value")},me=TypeError,be=he("toPrimitive"),we=function(t,e){if(!ve(t)||ge(t))return t;var r,n=ye(t,be);if(n){if(void 0===e&&(e="default"),r=pe(n,t,e),!ve(r)||ge(r))return r;throw me("Can't convert object to primitive value")}return void 0===e&&(e="number"),de(t,e)},Se=kt,_e=function(t){var e=we(t,"string");return Se(e)?e:e+""},Oe=tt,Pe=o.document,ke=Oe(Pe)&&Oe(Pe.createElement),Le=function(t){return ke?Pe.createElement(t):{}},Te=Le,je=!E&&!i((function(){return 7!=Object.defineProperty(Te("div"),"a",{get:function(){return 7}}).a})),Ee=E,Me=U,Ae=x,Ue=F,xe=K,Re=_e,Be=Xt,Ce=je,Ie=Object.getOwnPropertyDescriptor;j.f=Ee?Ie:function(t,e){if(t=xe(t),e=Re(e),Ce)try{return Ie(t,e)}catch(r){}if(Be(t,e))return Ue(!Me(Ae.f,t,e),t[e])};var De=i,Fe=T,He=/#|\.prototype\./,qe=function(t,e){var r=ze[Ne(t)];return r==Ve||r!=Ge&&(Fe(e)?De(e):!!e)},Ne=qe.normalize=function(t){return String(t).replace(He,".").toLowerCase()},ze=qe.data={},Ge=qe.NATIVE="N",Ve=qe.POLYFILL="P",We=qe,$e=At,Je=a,Qe=O(O.bind),Ye=function(t,e){return $e(t),void 0===e?t:Je?Qe(t,e):function(){return t.apply(e,arguments)}},Ke={},Xe=E&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ze=tt,tr=String,er=TypeError,rr=function(t){if(Ze(t))return t;throw er(tr(t)+" is not an object")},nr=E,or=je,ir=Xe,ar=rr,sr=_e,ur=TypeError,cr=Object.defineProperty,fr=Object.getOwnPropertyDescriptor,lr="enumerable",hr="configurable",pr="writable";Ke.f=nr?ir?function(t,e,r){if(ar(t),e=sr(e),ar(r),"function"==typeof t&&"prototype"===e&&"value"in r&&pr in r&&!r[pr]){var n=fr(t,e);n&&n[pr]&&(t[e]=r.value,r={configurable:hr in r?r[hr]:n[hr],enumerable:lr in r?r[lr]:n[lr],writable:!1})}return cr(t,e,r)}:cr:function(t,e,r){if(ar(t),e=sr(e),ar(r),or)try{return cr(t,e,r)}catch(n){}if("get"in r||"set"in r)throw ur("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var vr=Ke,gr=F,yr=E?function(t,e,r){return vr.f(t,e,gr(1,r))}:function(t,e,r){return t[e]=r,t},dr=o,mr=l,br=O,wr=T,Sr=j.f,_r=We,Or=et,Pr=Ye,kr=yr,Lr=Xt,Tr=function(t){var e=function(r,n,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,o)}return mr(t,this,arguments)};return e.prototype=t.prototype,e},jr=function(t,e){var r,n,o,i,a,s,u,c,f,l=t.target,h=t.global,p=t.stat,v=t.proto,g=h?dr:p?dr[l]:(dr[l]||{}).prototype,y=h?Or:Or[l]||kr(Or,l,{})[l],d=y.prototype;for(i in e)n=!(r=_r(h?i:l+(p?".":"#")+i,t.forced))&&g&&Lr(g,i),s=y[i],n&&(u=t.dontCallGetSet?(f=Sr(g,i))&&f.value:g[i]),a=n&&u?u:e[i],n&&typeof s==typeof a||(c=t.bind&&n?Pr(a,dr):t.wrap&&n?Tr(a):v&&wr(a)?br(a):a,(t.sham||a&&a.sham||s&&s.sham)&&kr(c,"sham",!0),kr(y,i,c),v&&(Lr(Or,o=l+"Prototype")||kr(Or,o,{}),kr(Or[o],i,a),t.real&&d&&(r||!d[i])&&kr(d,i,a)))},Er=jr,Mr=E,Ar=Ke.f;Er({target:"Object",stat:!0,forced:Object.defineProperty!==Ar,sham:!Mr},{defineProperty:Ar});var Ur=et.Object,xr=r.exports=function(t,e,r){return Ur.defineProperty(t,e,r)};Ur.defineProperty.sham&&(xr.sham=!0);var Rr=e(r.exports),Br=w,Cr=Array.isArray||function(t){return"Array"==Br(t)},Ir=Math.ceil,Dr=Math.floor,Fr=Math.trunc||function(t){var e=+t;return(e>0?Dr:Ir)(e)},Hr=function(t){var e=+t;return e!=e||0===e?0:Fr(e)},qr=Hr,Nr=Math.min,zr=function(t){return t>0?Nr(qr(t),9007199254740991):0},Gr=zr,Vr=function(t){return Gr(t.length)},Wr=TypeError,$r=function(t){if(t>9007199254740991)throw Wr("Maximum allowed index exceeded");return t},Jr=_e,Qr=Ke,Yr=F,Kr=function(t,e,r){var n=Jr(e);n in t?Qr.f(t,n,Yr(0,r)):t[n]=r},Xr={};Xr[he("toStringTag")]="z";var Zr="[object z]"===String(Xr),tn=Zr,en=T,rn=w,nn=he("toStringTag"),on=Object,an="Arguments"==rn(function(){return arguments}()),sn=tn?rn:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(r){}}(e=on(t),nn))?r:an?rn(e):"Object"==(n=rn(e))&&en(e.callee)?"Arguments":n},un=T,cn=Gt,fn=y(Function.toString);un(cn.inspectSource)||(cn.inspectSource=function(t){return fn(t)});var ln=cn.inspectSource,hn=y,pn=i,vn=T,gn=sn,yn=ln,dn=function(){},mn=[],bn=at("Reflect","construct"),wn=/^\s*(?:class|function)\b/,Sn=hn(wn.exec),_n=!wn.exec(dn),On=function(t){if(!vn(t))return!1;try{return bn(dn,mn,t),!0}catch(e){return!1}},Pn=function(t){if(!vn(t))return!1;switch(gn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return _n||!!Sn(wn,yn(t))}catch(e){return!0}};Pn.sham=!0;var kn=!bn||pn((function(){var t;return On(On.call)||!On(Object)||!On((function(){t=!0}))||t}))?Pn:On,Ln=Cr,Tn=kn,jn=tt,En=he("species"),Mn=Array,An=function(t){var e;return Ln(t)&&(e=t.constructor,(Tn(e)&&(e===Mn||Ln(e.prototype))||jn(e)&&null===(e=e[En]))&&(e=void 0)),void 0===e?Mn:e},Un=function(t,e){return new(An(t))(0===e?0:e)},xn=i,Rn=gt,Bn=he("species"),Cn=function(t){return Rn>=51||!xn((function(){var e=[];return(e.constructor={})[Bn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},In=jr,Dn=i,Fn=Cr,Hn=tt,qn=Qt,Nn=Vr,zn=$r,Gn=Kr,Vn=Un,Wn=Cn,$n=gt,Jn=he("isConcatSpreadable"),Qn=$n>=51||!Dn((function(){var t=[];return t[Jn]=!1,t.concat()[0]!==t})),Yn=function(t){if(!Hn(t))return!1;var e=t[Jn];return void 0!==e?!!e:Fn(t)};In({target:"Array",proto:!0,arity:1,forced:!Qn||!Wn("concat")},{concat:function(t){var e,r,n,o,i,a=qn(this),s=Vn(a,0),u=0;for(e=-1,n=arguments.length;e<n;e++)if(Yn(i=-1===e?a:arguments[e]))for(o=Nn(i),zn(u+o),r=0;r<o;r++,u++)r in i&&Gn(s,u,i[r]);else zn(u+1),Gn(s,u++,i);return s.length=u,s}});var Kn=sn,Xn=String,Zn=function(t){if("Symbol"===Kn(t))throw TypeError("Cannot convert a Symbol value to a string");return Xn(t)},to={},eo=Hr,ro=Math.max,no=Math.min,oo=function(t,e){var r=eo(t);return r<0?ro(r+e,0):no(r,e)},io=K,ao=oo,so=Vr,uo=function(t){return function(e,r,n){var o,i=io(e),a=so(i),s=ao(n,a);if(t&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((t||s in i)&&i[s]===r)return t||s||0;return!t&&-1}},co={includes:uo(!0),indexOf:uo(!1)},fo={},lo=Xt,ho=K,po=co.indexOf,vo=fo,go=y([].push),yo=function(t,e){var r,n=ho(t),o=0,i=[];for(r in n)!lo(vo,r)&&lo(n,r)&&go(i,r);for(;e.length>o;)lo(n,r=e[o++])&&(~po(i,r)||go(i,r));return i},mo=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],bo=yo,wo=mo,So=Object.keys||function(t){return bo(t,wo)},_o=E,Oo=Xe,Po=Ke,ko=rr,Lo=K,To=So;to.f=_o&&!Oo?Object.defineProperties:function(t,e){ko(t);for(var r,n=Lo(e),o=To(e),i=o.length,a=0;i>a;)Po.f(t,r=o[a++],n[r]);return t};var jo,Eo=at("document","documentElement"),Mo=ne,Ao=Wt("keys"),Uo=function(t){return Ao[t]||(Ao[t]=Mo(t))},xo=rr,Ro=to,Bo=mo,Co=fo,Io=Eo,Do=Le,Fo="prototype",Ho="script",qo=Uo("IE_PROTO"),No=function(){},zo=function(t){return"<"+Ho+">"+t+"</"+Ho+">"},Go=function(t){t.write(zo("")),t.close();var e=t.parentWindow.Object;return t=null,e},Vo=function(){try{jo=new ActiveXObject("htmlfile")}catch(o){}var t,e,r;Vo="undefined"!=typeof document?document.domain&&jo?Go(jo):(e=Do("iframe"),r="java"+Ho+":",e.style.display="none",Io.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(zo("document.F=Object")),t.close(),t.F):Go(jo);for(var n=Bo.length;n--;)delete Vo[Fo][Bo[n]];return Vo()};Co[qo]=!0;var Wo=Object.create||function(t,e){var r;return null!==t?(No[Fo]=xo(t),r=new No,No[Fo]=null,r[qo]=t):r=Vo(),void 0===e?r:Ro.f(r,e)},$o={},Jo=yo,Qo=mo.concat("length","prototype");$o.f=Object.getOwnPropertyNames||function(t){return Jo(t,Qo)};var Yo={},Ko=oo,Xo=Vr,Zo=Kr,ti=Array,ei=Math.max,ri=function(t,e,r){for(var n=Xo(t),o=Ko(e,n),i=Ko(void 0===r?n:r,n),a=ti(ei(i-o,0)),s=0;o<i;o++,s++)Zo(a,s,t[o]);return a.length=s,a},ni=w,oi=K,ii=$o.f,ai=ri,si="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Yo.f=function(t){return si&&"Window"==ni(t)?function(t){try{return ii(t)}catch(e){return ai(si)}}(t):ii(oi(t))};var ui={};ui.f=Object.getOwnPropertySymbols;var ci=yr,fi=function(t,e,r,n){return n&&n.enumerable?t[e]=r:ci(t,e,r),t},li=Ke,hi=function(t,e,r){return li.f(t,e,r)},pi={},vi=he;pi.f=vi;var gi,yi,di,mi=et,bi=Xt,wi=pi,Si=Ke.f,_i=function(t){var e=mi.Symbol||(mi.Symbol={});bi(e,t)||Si(e,t,{value:wi.f(t)})},Oi=U,Pi=at,ki=he,Li=fi,Ti=function(){var t=Pi("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,n=ki("toPrimitive");e&&!e[n]&&Li(e,n,(function(t){return Oi(r,this)}),{arity:1})},ji=sn,Ei=Zr?{}.toString:function(){return"[object "+ji(this)+"]"},Mi=Zr,Ai=Ke.f,Ui=yr,xi=Xt,Ri=Ei,Bi=he("toStringTag"),Ci=function(t,e,r,n){if(t){var o=r?t:t.prototype;xi(o,Bi)||Ai(o,Bi,{configurable:!0,value:e}),n&&!Mi&&Ui(o,"toString",Ri)}},Ii=T,Di=o.WeakMap,Fi=Ii(Di)&&/native code/.test(String(Di)),Hi=o,qi=tt,Ni=yr,zi=Xt,Gi=Gt,Vi=Uo,Wi=fo,$i="Object already initialized",Ji=Hi.TypeError,Qi=Hi.WeakMap;if(Fi||Gi.state){var Yi=Gi.state||(Gi.state=new Qi);Yi.get=Yi.get,Yi.has=Yi.has,Yi.set=Yi.set,gi=function(t,e){if(Yi.has(t))throw Ji($i);return e.facade=t,Yi.set(t,e),e},yi=function(t){return Yi.get(t)||{}},di=function(t){return Yi.has(t)}}else{var Ki=Vi("state");Wi[Ki]=!0,gi=function(t,e){if(zi(t,Ki))throw Ji($i);return e.facade=t,Ni(t,Ki,e),e},yi=function(t){return zi(t,Ki)?t[Ki]:{}},di=function(t){return zi(t,Ki)}}var Xi={set:gi,get:yi,has:di,enforce:function(t){return di(t)?yi(t):gi(t,{})},getterFor:function(t){return function(e){var r;if(!qi(e)||(r=yi(e)).type!==t)throw Ji("Incompatible receiver, "+t+" required");return r}}},Zi=Ye,ta=G,ea=Qt,ra=Vr,na=Un,oa=y([].push),ia=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,a=7==t,s=5==t||i;return function(u,c,f,l){for(var h,p,v=ea(u),g=ta(v),y=Zi(c,f),d=ra(g),m=0,b=l||na,w=e?b(u,d):r||a?b(u,0):void 0;d>m;m++)if((s||m in g)&&(p=y(h=g[m],m,v),t))if(e)w[m]=p;else if(p)switch(t){case 3:return!0;case 5:return h;case 6:return m;case 2:oa(w,h)}else switch(t){case 4:return!1;case 7:oa(w,h)}return i?-1:n||o?o:w}},aa={forEach:ia(0),map:ia(1),filter:ia(2),some:ia(3),every:ia(4),find:ia(5),findIndex:ia(6),filterReject:ia(7)},sa=jr,ua=o,ca=U,fa=y,la=E,ha=bt,pa=i,va=Xt,ga=st,ya=rr,da=K,ma=_e,ba=Zn,wa=F,Sa=Wo,_a=So,Oa=$o,Pa=Yo,ka=ui,La=j,Ta=Ke,ja=to,Ea=x,Ma=fi,Aa=hi,Ua=Wt,xa=fo,Ra=ne,Ba=he,Ca=pi,Ia=_i,Da=Ti,Fa=Ci,Ha=Xi,qa=aa.forEach,Na=Uo("hidden"),za="Symbol",Ga="prototype",Va=Ha.set,Wa=Ha.getterFor(za),$a=Object[Ga],Ja=ua.Symbol,Qa=Ja&&Ja[Ga],Ya=ua.TypeError,Ka=ua.QObject,Xa=La.f,Za=Ta.f,ts=Pa.f,es=Ea.f,rs=fa([].push),ns=Ua("symbols"),os=Ua("op-symbols"),is=Ua("wks"),as=!Ka||!Ka[Ga]||!Ka[Ga].findChild,ss=la&&pa((function(){return 7!=Sa(Za({},"a",{get:function(){return Za(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=Xa($a,e);n&&delete $a[e],Za(t,e,r),n&&t!==$a&&Za($a,e,n)}:Za,us=function(t,e){var r=ns[t]=Sa(Qa);return Va(r,{type:za,tag:t,description:e}),la||(r.description=e),r},cs=function(t,e,r){t===$a&&cs(os,e,r),ya(t);var n=ma(e);return ya(r),va(ns,n)?(r.enumerable?(va(t,Na)&&t[Na][n]&&(t[Na][n]=!1),r=Sa(r,{enumerable:wa(0,!1)})):(va(t,Na)||Za(t,Na,wa(1,{})),t[Na][n]=!0),ss(t,n,r)):Za(t,n,r)},fs=function(t,e){ya(t);var r=da(e),n=_a(r).concat(vs(r));return qa(n,(function(e){la&&!ca(ls,r,e)||cs(t,e,r[e])})),t},ls=function(t){var e=ma(t),r=ca(es,this,e);return!(this===$a&&va(ns,e)&&!va(os,e))&&(!(r||!va(this,e)||!va(ns,e)||va(this,Na)&&this[Na][e])||r)},hs=function(t,e){var r=da(t),n=ma(e);if(r!==$a||!va(ns,n)||va(os,n)){var o=Xa(r,n);return!o||!va(ns,n)||va(r,Na)&&r[Na][n]||(o.enumerable=!0),o}},ps=function(t){var e=ts(da(t)),r=[];return qa(e,(function(t){va(ns,t)||va(xa,t)||rs(r,t)})),r},vs=function(t){var e=t===$a,r=ts(e?os:da(t)),n=[];return qa(r,(function(t){!va(ns,t)||e&&!va($a,t)||rs(n,ns[t])})),n};ha||(Ja=function(){if(ga(Qa,this))throw Ya("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?ba(arguments[0]):void 0,e=Ra(t),r=function(t){this===$a&&ca(r,os,t),va(this,Na)&&va(this[Na],e)&&(this[Na][e]=!1),ss(this,e,wa(1,t))};return la&&as&&ss($a,e,{configurable:!0,set:r}),us(e,t)},Ma(Qa=Ja[Ga],"toString",(function(){return Wa(this).tag})),Ma(Ja,"withoutSetter",(function(t){return us(Ra(t),t)})),Ea.f=ls,Ta.f=cs,ja.f=fs,La.f=hs,Oa.f=Pa.f=ps,ka.f=vs,Ca.f=function(t){return us(Ba(t),t)},la&&Aa(Qa,"description",{configurable:!0,get:function(){return Wa(this).description}})),sa({global:!0,constructor:!0,wrap:!0,forced:!ha,sham:!ha},{Symbol:Ja}),qa(_a(is),(function(t){Ia(t)})),sa({target:za,stat:!0,forced:!ha},{useSetter:function(){as=!0},useSimple:function(){as=!1}}),sa({target:"Object",stat:!0,forced:!ha,sham:!la},{create:function(t,e){return void 0===e?Sa(t):fs(Sa(t),e)},defineProperty:cs,defineProperties:fs,getOwnPropertyDescriptor:hs}),sa({target:"Object",stat:!0,forced:!ha},{getOwnPropertyNames:ps}),Da(),Fa(Ja,za),xa[Na]=!0;var gs=bt&&!!Symbol.for&&!!Symbol.keyFor,ys=jr,ds=at,ms=Xt,bs=Zn,ws=Wt,Ss=gs,_s=ws("string-to-symbol-registry"),Os=ws("symbol-to-string-registry");ys({target:"Symbol",stat:!0,forced:!Ss},{for:function(t){var e=bs(t);if(ms(_s,e))return _s[e];var r=ds("Symbol")(e);return _s[e]=r,Os[r]=e,r}});var Ps=jr,ks=Xt,Ls=kt,Ts=Tt,js=gs,Es=Wt("symbol-to-string-registry");Ps({target:"Symbol",stat:!0,forced:!js},{keyFor:function(t){if(!Ls(t))throw TypeError(Ts(t)+" is not a symbol");if(ks(Es,t))return Es[t]}});var Ms=y([].slice),As=Cr,Us=T,xs=w,Rs=Zn,Bs=y([].push),Cs=jr,Is=at,Ds=l,Fs=U,Hs=y,qs=i,Ns=T,zs=kt,Gs=Ms,Vs=function(t){if(Us(t))return t;if(As(t)){for(var e=t.length,r=[],n=0;n<e;n++){var o=t[n];"string"==typeof o?Bs(r,o):"number"!=typeof o&&"Number"!=xs(o)&&"String"!=xs(o)||Bs(r,Rs(o))}var i=r.length,a=!0;return function(t,e){if(a)return a=!1,e;if(As(this))return e;for(var n=0;n<i;n++)if(r[n]===t)return e}}},Ws=bt,$s=String,Js=Is("JSON","stringify"),Qs=Hs(/./.exec),Ys=Hs("".charAt),Ks=Hs("".charCodeAt),Xs=Hs("".replace),Zs=Hs(1..toString),tu=/[\uD800-\uDFFF]/g,eu=/^[\uD800-\uDBFF]$/,ru=/^[\uDC00-\uDFFF]$/,nu=!Ws||qs((function(){var t=Is("Symbol")();return"[null]"!=Js([t])||"{}"!=Js({a:t})||"{}"!=Js(Object(t))})),ou=qs((function(){return'"\\udf06\\ud834"'!==Js("\udf06\ud834")||'"\\udead"'!==Js("\udead")})),iu=function(t,e){var r=Gs(arguments),n=Vs(e);if(Ns(n)||void 0!==t&&!zs(t))return r[1]=function(t,e){if(Ns(n)&&(e=Fs(n,this,$s(t),e)),!zs(e))return e},Ds(Js,null,r)},au=function(t,e,r){var n=Ys(r,e-1),o=Ys(r,e+1);return Qs(eu,t)&&!Qs(ru,o)||Qs(ru,t)&&!Qs(eu,n)?"\\u"+Zs(Ks(t,0),16):t};Js&&Cs({target:"JSON",stat:!0,arity:3,forced:nu||ou},{stringify:function(t,e,r){var n=Gs(arguments),o=Ds(nu?iu:Js,null,n);return ou&&"string"==typeof o?Xs(o,tu,au):o}});var su=ui,uu=Qt;jr({target:"Object",stat:!0,forced:!bt||i((function(){su.f(1)}))},{getOwnPropertySymbols:function(t){var e=su.f;return e?e(uu(t)):[]}}),_i("asyncIterator"),_i("hasInstance"),_i("isConcatSpreadable"),_i("iterator"),_i("match"),_i("matchAll"),_i("replace"),_i("search"),_i("species"),_i("split");var cu=Ti;_i("toPrimitive"),cu();var fu=at,lu=Ci;_i("toStringTag"),lu(fu("Symbol"),"Symbol"),_i("unscopables"),Ci(o.JSON,"JSON",!0);var hu,pu,vu,gu=et.Symbol,yu={},du=E,mu=Xt,bu=Function.prototype,wu=du&&Object.getOwnPropertyDescriptor,Su=mu(bu,"name"),_u={EXISTS:Su,PROPER:Su&&"something"===function(){}.name,CONFIGURABLE:Su&&(!du||du&&wu(bu,"name").configurable)},Ou=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Pu=Xt,ku=T,Lu=Qt,Tu=Ou,ju=Uo("IE_PROTO"),Eu=Object,Mu=Eu.prototype,Au=Tu?Eu.getPrototypeOf:function(t){var e=Lu(t);if(Pu(e,ju))return e[ju];var r=e.constructor;return ku(r)&&e instanceof r?r.prototype:e instanceof Eu?Mu:null},Uu=i,xu=T,Ru=tt,Bu=Wo,Cu=Au,Iu=fi,Du=he("iterator"),Fu=!1;[].keys&&("next"in(vu=[].keys())?(pu=Cu(Cu(vu)))!==Object.prototype&&(hu=pu):Fu=!0);var Hu=!Ru(hu)||Uu((function(){var t={};return hu[Du].call(t)!==t}));xu((hu=Hu?{}:Bu(hu))[Du])||Iu(hu,Du,(function(){return this}));var qu={IteratorPrototype:hu,BUGGY_SAFARI_ITERATORS:Fu},Nu=qu.IteratorPrototype,zu=Wo,Gu=F,Vu=Ci,Wu=yu,$u=function(){return this},Ju=function(t,e,r,n){var o=e+" Iterator";return t.prototype=zu(Nu,{next:Gu(+!n,r)}),Vu(t,o,!1,!0),Wu[o]=$u,t},Qu=y,Yu=At,Ku=T,Xu=String,Zu=TypeError,tc=function(t,e,r){try{return Qu(Yu(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(n){}},ec=rr,rc=function(t){if("object"==typeof t||Ku(t))return t;throw Zu("Can't set "+Xu(t)+" as a prototype")},nc=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=tc(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(n){}return function(r,n){return ec(r),rc(n),e?t(r,n):r.__proto__=n,r}}():void 0),oc=jr,ic=U,ac=_u,sc=Ju,uc=Au,cc=Ci,fc=fi,lc=yu,hc=qu,pc=ac.PROPER,vc=hc.BUGGY_SAFARI_ITERATORS,gc=he("iterator"),yc="keys",dc="values",mc="entries",bc=function(){return this},wc=function(t,e,r,n,o,i,a){sc(r,e,n);var s,u,c,f=function(t){if(t===o&&g)return g;if(!vc&&t in p)return p[t];switch(t){case yc:case dc:case mc:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",h=!1,p=t.prototype,v=p[gc]||p["@@iterator"]||o&&p[o],g=!vc&&v||f(o),y="Array"==e&&p.entries||v;if(y&&(s=uc(y.call(new t)))!==Object.prototype&&s.next&&(cc(s,l,!0,!0),lc[l]=bc),pc&&o==dc&&v&&v.name!==dc&&(h=!0,g=function(){return ic(v,this)}),o)if(u={values:f(dc),keys:i?g:f(yc),entries:f(mc)},a)for(c in u)(vc||h||!(c in p))&&fc(p,c,u[c]);else oc({target:e,proto:!0,forced:vc||h},u);return a&&p[gc]!==g&&fc(p,gc,g,{name:o}),lc[e]=g,u},Sc=function(t,e){return{value:t,done:e}},_c=K,Oc=yu,Pc=Xi;Ke.f;var kc=wc,Lc=Sc,Tc="Array Iterator",jc=Pc.set,Ec=Pc.getterFor(Tc);kc(Array,"Array",(function(t,e){jc(this,{type:Tc,target:_c(t),index:0,kind:e})}),(function(){var t=Ec(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,Lc(void 0,!0)):Lc("keys"==r?n:"values"==r?e[n]:[n,e[n]],!1)}),"values"),Oc.Arguments=Oc.Array;var Mc={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Ac=o,Uc=sn,xc=yr,Rc=yu,Bc=he("toStringTag");for(var Cc in Mc){var Ic=Ac[Cc],Dc=Ic&&Ic.prototype;Dc&&Uc(Dc)!==Bc&&xc(Dc,Bc,Cc),Rc[Cc]=Rc.Array}var Fc=gu;_i("dispose");var Hc=Fc;_i("asyncDispose");var qc=jr,Nc=y,zc=at("Symbol"),Gc=zc.keyFor,Vc=Nc(zc.prototype.valueOf);qc({target:"Symbol",stat:!0},{isRegistered:function(t){try{return void 0!==Gc(Vc(t))}catch(e){return!1}}});for(var Wc=jr,$c=Wt,Jc=at,Qc=y,Yc=kt,Kc=he,Xc=Jc("Symbol"),Zc=Xc.isWellKnown,tf=Jc("Object","getOwnPropertyNames"),ef=Qc(Xc.prototype.valueOf),rf=$c("wks"),nf=0,of=tf(Xc),af=of.length;nf<af;nf++)try{var sf=of[nf];Yc(Xc[sf])&&Kc(sf)}catch(Tm){}Wc({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(t){if(Zc&&Zc(t))return!0;try{for(var e=ef(t),r=0,n=tf(rf),o=n.length;r<o;r++)if(rf[n[r]]==e)return!0}catch(Tm){}return!1}}),_i("matcher"),_i("metadataKey"),_i("observable"),_i("metadata"),_i("patternMatch"),_i("replaceAll");var uf=e(Hc),cf=y,ff=Hr,lf=Zn,hf=J,pf=cf("".charAt),vf=cf("".charCodeAt),gf=cf("".slice),yf=function(t){return function(e,r){var n,o,i=lf(hf(e)),a=ff(r),s=i.length;return a<0||a>=s?t?"":void 0:(n=vf(i,a))<55296||n>56319||a+1===s||(o=vf(i,a+1))<56320||o>57343?t?pf(i,a):n:t?gf(i,a,a+2):o-56320+(n-55296<<10)+65536}},df={codeAt:yf(!1),charAt:yf(!0)},mf=df.charAt,bf=Zn,wf=Xi,Sf=wc,_f=Sc,Of="String Iterator",Pf=wf.set,kf=wf.getterFor(Of);Sf(String,"String",(function(t){Pf(this,{type:Of,string:bf(t),index:0})}),(function(){var t,e=kf(this),r=e.string,n=e.index;return n>=r.length?_f(void 0,!0):(t=mf(r,n),e.index+=t.length,_f(t,!1))}));var Lf=e(pi.f("iterator"));function Tf(t){return(Tf="function"==typeof uf&&"symbol"==typeof Lf?function(t){return typeof t}:function(t){return t&&"function"==typeof uf&&t.constructor===uf&&t!==uf.prototype?"symbol":typeof t})(t)}var jf=e(pi.f("toPrimitive"));function Ef(t){var e=function(t,e){if("object"!==Tf(t)||null===t)return t;var r=t[jf];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==Tf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===Tf(e)?e:String(e)}function Mf(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Rr(t,Ef(n.key),n)}}function Af(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}jr({target:"Object",stat:!0,sham:!E},{create:Wo});var Uf=et.Object,xf=e((function(t,e){return Uf.create(t,e)}));jr({target:"Object",stat:!0},{setPrototypeOf:nc});var Rf=e(et.Object.setPrototypeOf),Bf=y,Cf=At,If=tt,Df=Xt,Ff=Ms,Hf=a,qf=Function,Nf=Bf([].concat),zf=Bf([].join),Gf={},Vf=Hf?qf.bind:function(t){var e=Cf(this),r=e.prototype,n=Ff(arguments,1),o=function(){var r=Nf(n,Ff(arguments));return this instanceof o?function(t,e,r){if(!Df(Gf,e)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";Gf[e]=qf("C,a","return new C("+zf(n,",")+")")}return Gf[e](t,r)}(e,r.length,r):e.apply(t,r)};return If(r)&&(o.prototype=r),o},Wf=Vf;jr({target:"Function",proto:!0,forced:Function.bind!==Wf},{bind:Wf});var $f=et,Jf=function(t){return $f[t+"Prototype"]},Qf=Jf("Function").bind,Yf=st,Kf=Qf,Xf=Function.prototype,Zf=function(t){var e=t.bind;return t===Xf||Yf(Xf,t)&&e===Xf.bind?Kf:e},tl=e(Zf);function el(t,e){var r;return(el=Rf?tl(r=Rf).call(r):function(t,e){return t.__proto__=e,t})(t,e)}var rl=kn,nl=Tt,ol=TypeError,il=jr,al=l,sl=Vf,ul=function(t){if(rl(t))return t;throw ol(nl(t)+" is not a constructor")},cl=rr,fl=tt,ll=Wo,hl=i,pl=at("Reflect","construct"),vl=Object.prototype,gl=[].push,yl=hl((function(){function t(){}return!(pl((function(){}),[],t)instanceof t)})),dl=!hl((function(){pl((function(){}))})),ml=yl||dl;il({target:"Reflect",stat:!0,forced:ml,sham:ml},{construct:function(t,e){ul(t),cl(e);var r=arguments.length<3?t:ul(arguments[2]);if(dl&&!yl)return pl(t,e,r);if(t==r){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return al(gl,n,e),new(al(sl,t,n))}var o=r.prototype,i=ll(fl(o)?o:vl),a=al(t,i,e);return fl(a)?a:i}});var bl=e(et.Reflect.construct),wl=Qt,Sl=Au,_l=Ou;jr({target:"Object",stat:!0,forced:i((function(){Sl(1)})),sham:!_l},{getPrototypeOf:function(t){return Sl(wl(t))}});var Ol=e(et.Object.getPrototypeOf);function Pl(t){var e;return(Pl=Rf?tl(e=Ol).call(e):function(t){return t.__proto__||Ol(t)})(t)}function kl(t){var e=function(){if("undefined"==typeof Reflect||!bl)return!1;if(bl.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(bl(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=Pl(t);if(e){var o=Pl(this).constructor;r=bl(n,arguments,o)}else r=n.apply(this,arguments);return function(t,e){if(e&&("object"===Tf(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Af(t)}(this,r)}}function Ll(t,e,r){return(e=Ef(e))in t?Rr(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var Tl=Jf("Array").concat,jl=st,El=Tl,Ml=Array.prototype,Al=e((function(t){var e=t.concat;return t===Ml||jl(Ml,t)&&e===Ml.concat?El:e})),Ul=jr,xl=Date,Rl=y(xl.prototype.getTime);Ul({target:"Date",stat:!0},{now:function(){return Rl(new xl)}});var Bl=e(et.Date.now),Cl=jr,Il=aa.find,Dl="find",Fl=!0;Dl in[]&&Array(1)[Dl]((function(){Fl=!1})),Cl({target:"Array",proto:!0,forced:Fl},{find:function(t){return Il(this,t,arguments.length>1?arguments[1]:void 0)}});var Hl=Jf("Array").find,ql=st,Nl=Hl,zl=Array.prototype,Gl=e((function(t){var e=t.find;return t===zl||ql(zl,t)&&e===zl.find?Nl:e})),Vl=e(Zf),Wl=Hr,$l=Zn,Jl=J,Ql=RangeError,Yl=y,Kl=zr,Xl=Zn,Zl=J,th=Yl((function(t){var e=$l(Jl(this)),r="",n=Wl(t);if(n<0||n==1/0)throw Ql("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(e+=e))1&n&&(r+=e);return r})),eh=Yl("".slice),rh=Math.ceil,nh=function(t){return function(e,r,n){var o,i,a=Xl(Zl(e)),s=Kl(r),u=a.length,c=void 0===n?" ":Xl(n);return s<=u||""==c?a:((i=th(c,rh((o=s-u)/c.length))).length>o&&(i=eh(i,0,o)),t?a+i:i+a)}},oh={start:nh(!1),end:nh(!0)},ih=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(ut),ah=oh.start;jr({target:"String",proto:!0,forced:ih},{padStart:function(t){return ah(this,t,arguments.length>1?arguments[1]:void 0)}});var sh=Jf("String").padStart,uh=st,ch=sh,fh=String.prototype,lh=e((function(t){var e=t.padStart;return"string"==typeof t||t===fh||uh(fh,t)&&e===fh.padStart?ch:e}));jr({target:"Array",stat:!0},{isArray:Cr});var hh=e(et.Array.isArray);var ph=sn,vh=Rt,gh=V,yh=yu,dh=he("iterator"),mh=function(t){if(!gh(t))return vh(t,dh)||vh(t,"@@iterator")||yh[ph(t)]},bh=e(mh),wh=E,Sh=Cr,_h=TypeError,Oh=Object.getOwnPropertyDescriptor,Ph=wh&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(Tm){return Tm instanceof TypeError}}(),kh=Qt,Lh=Vr,Th=Ph?function(t,e){if(Sh(t)&&!Oh(t,"length").writable)throw _h("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e},jh=$r;jr({target:"Array",proto:!0,arity:1,forced:i((function(){return 4294967297!==[].push.call({length:4294967296},1)}))||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(Tm){return Tm instanceof TypeError}}()},{push:function(t){var e=kh(this),r=Lh(e),n=arguments.length;jh(r+n);for(var o=0;o<n;o++)e[r]=arguments[o],r++;return Th(e,r),r}});var Eh=Jf("Array").push,Mh=st,Ah=Eh,Uh=Array.prototype,xh=e((function(t){var e=t.push;return t===Uh||Mh(Uh,t)&&e===Uh.push?Ah:e}));var Rh=jr,Bh=Cr,Ch=kn,Ih=tt,Dh=oo,Fh=Vr,Hh=K,qh=Kr,Nh=he,zh=Ms,Gh=Cn("slice"),Vh=Nh("species"),Wh=Array,$h=Math.max;Rh({target:"Array",proto:!0,forced:!Gh},{slice:function(t,e){var r,n,o,i=Hh(this),a=Fh(i),s=Dh(t,a),u=Dh(void 0===e?a:e,a);if(Bh(i)&&(r=i.constructor,(Ch(r)&&(r===Wh||Bh(r.prototype))||Ih(r)&&null===(r=r[Vh]))&&(r=void 0),r===Wh||void 0===r))return zh(i,s,u);for(n=new(void 0===r?Wh:r)($h(u-s,0)),o=0;s<u;s++,o++)s in i&&qh(n,o,i[s]);return n.length=o,n}});var Jh=Jf("Array").slice,Qh=st,Yh=Jh,Kh=Array.prototype,Xh=e((function(t){var e=t.slice;return t===Kh||Qh(Kh,t)&&e===Kh.slice?Yh:e})),Zh=U,tp=rr,ep=Rt,rp=rr,np=function(t,e,r){var n,o;tp(t);try{if(!(n=ep(t,"return"))){if("throw"===e)throw r;return r}n=Zh(n,t)}catch(Tm){o=!0,n=Tm}if("throw"===e)throw r;if(o)throw n;return tp(n),r},op=yu,ip=he("iterator"),ap=Array.prototype,sp=U,up=At,cp=rr,fp=Tt,lp=mh,hp=TypeError,pp=function(t,e){var r=arguments.length<2?lp(t):e;if(up(r))return cp(sp(r,t));throw hp(fp(t)+" is not iterable")},vp=Ye,gp=U,yp=Qt,dp=function(t,e,r,n){try{return n?e(rp(r)[0],r[1]):e(r)}catch(Tm){np(t,"throw",Tm)}},mp=function(t){return void 0!==t&&(op.Array===t||ap[ip]===t)},bp=kn,wp=Vr,Sp=Kr,_p=pp,Op=mh,Pp=Array,kp=function(t){var e=yp(t),r=bp(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=vp(o,n>2?arguments[2]:void 0));var a,s,u,c,f,l,h=Op(e),p=0;if(!h||this===Pp&&mp(h))for(a=wp(e),s=r?new this(a):Pp(a);a>p;p++)l=i?o(e[p],p):e[p],Sp(s,p,l);else for(f=(c=_p(e,h)).next,s=r?new this:[];!(u=gp(f,c)).done;p++)l=i?dp(c,o,[u.value,p],!0):u.value,Sp(s,p,l);return s.length=p,s},Lp=he("iterator"),Tp=!1;try{var jp=0,Ep={next:function(){return{done:!!jp++}},return:function(){Tp=!0}};Ep[Lp]=function(){return this},Array.from(Ep,(function(){throw 2}))}catch(Tm){}var Mp=kp;jr({target:"Array",stat:!0,forced:!function(t,e){if(!e&&!Tp)return!1;var r=!1;try{var n={};n[Lp]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(Tm){}return r}((function(t){Array.from(t)}))},{from:Mp});var Ap=e(et.Array.from);function Up(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function xp(t,e){return function(t){if(hh(t))return t}(t)||function(t,e){var r=null==t?null:void 0!==uf&&bh(t)||t["@@iterator"];if(null!=r){var n,o,i,a,s=[],u=!0,c=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(xh(s).call(s,n.value),s.length!==e);u=!0);}catch(f){c=!0,o=f}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){var r;if(t){if("string"==typeof t)return Up(t,e);var n=Xh(r=Object.prototype.toString.call(t)).call(r,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Ap(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Up(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Rp=tt,Bp=w,Cp=he("match"),Ip=function(t){var e;return Rp(t)&&(void 0!==(e=t[Cp])?!!e:"RegExp"==Bp(t))},Dp=TypeError,Fp=he("match"),Hp=jr,qp=O,Np=zr,zp=Zn,Gp=function(t){if(Ip(t))throw Dp("The method doesn't accept regular expressions");return t},Vp=J,Wp=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[Fp]=!1,"/./"[t](e)}catch(n){}}return!1},$p=qp("".startsWith),Jp=qp("".slice),Qp=Math.min;Hp({target:"String",proto:!0,forced:!Wp("startsWith")},{startsWith:function(t){var e=zp(Vp(this));Gp(t);var r=Np(Qp(arguments.length>1?arguments[1]:void 0,e.length)),n=zp(t);return $p?$p(e,n,r):Jp(e,r,r+n.length)===n}});var Yp=Jf("String").startsWith,Kp=st,Xp=Yp,Zp=String.prototype,tv=e((function(t){var e=t.startsWith;return"string"==typeof t||t===Zp||Kp(Zp,t)&&e===Zp.startsWith?Xp:e})),ev=i,rv=he("iterator"),nv=!ev((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,r="";return t.pathname="c%20d",e.forEach((function(t,n){e.delete("b"),r+=n+t})),!t.toJSON||!e.size&&true||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[rv]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host})),ov=st,iv=TypeError,av=function(t,e){if(ov(e,t))return t;throw iv("Incorrect invocation")},sv=E,uv=y,cv=U,fv=i,lv=So,hv=ui,pv=x,vv=Qt,gv=G,yv=Object.assign,dv=Object.defineProperty,mv=uv([].concat),bv=!yv||fv((function(){if(sv&&1!==yv({b:1},yv(dv({},"a",{enumerable:!0,get:function(){dv(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=yv({},t)[r]||lv(yv({},e)).join("")!=n}))?function(t,e){for(var r=vv(t),n=arguments.length,o=1,i=hv.f,a=pv.f;n>o;)for(var s,u=gv(arguments[o++]),c=i?mv(lv(u),i(u)):lv(u),f=c.length,l=0;f>l;)s=c[l++],sv&&!cv(a,u,s)||(r[s]=u[s]);return r}:yv,wv=y,Sv=2147483647,_v=/[^\0-\u007E]/,Ov=/[.\u3002\uFF0E\uFF61]/g,Pv="Overflow: input needs wider integers to process",kv=RangeError,Lv=wv(Ov.exec),Tv=Math.floor,jv=String.fromCharCode,Ev=wv("".charCodeAt),Mv=wv([].join),Av=wv([].push),Uv=wv("".replace),xv=wv("".split),Rv=wv("".toLowerCase),Bv=function(t){return t+22+75*(t<26)},Cv=function(t,e,r){var n=0;for(t=r?Tv(t/700):t>>1,t+=Tv(t/e);t>455;)t=Tv(t/35),n+=36;return Tv(n+36*t/(t+38))},Iv=function(t){var e=[];t=function(t){for(var e=[],r=0,n=t.length;r<n;){var o=Ev(t,r++);if(o>=55296&&o<=56319&&r<n){var i=Ev(t,r++);56320==(64512&i)?Av(e,((1023&o)<<10)+(1023&i)+65536):(Av(e,o),r--)}else Av(e,o)}return e}(t);var r,n,o=t.length,i=128,a=0,s=72;for(r=0;r<t.length;r++)(n=t[r])<128&&Av(e,jv(n));var u=e.length,c=u;for(u&&Av(e,"-");c<o;){var f=Sv;for(r=0;r<t.length;r++)(n=t[r])>=i&&n<f&&(f=n);var l=c+1;if(f-i>Tv((Sv-a)/l))throw kv(Pv);for(a+=(f-i)*l,i=f,r=0;r<t.length;r++){if((n=t[r])<i&&++a>Sv)throw kv(Pv);if(n==i){for(var h=a,p=36;;){var v=p<=s?1:p>=s+26?26:p-s;if(h<v)break;var g=h-v,y=36-v;Av(e,jv(Bv(v+g%y))),h=Tv(g/y),p+=36}Av(e,jv(Bv(h))),s=Cv(a,l,c==u),a=0,c++}}a++,i++}return Mv(e,"")},Dv=TypeError,Fv=function(t,e){if(t<e)throw Dv("Not enough arguments");return t},Hv=fi,qv=ri,Nv=Math.floor,zv=function(t,e){var r=t.length,n=Nv(r/2);return r<8?Gv(t,e):Vv(t,zv(qv(t,0,n),e),zv(qv(t,n),e),e)},Gv=function(t,e){for(var r,n,o=t.length,i=1;i<o;){for(n=i,r=t[i];n&&e(t[n-1],r)>0;)t[n]=t[--n];n!==i++&&(t[n]=r)}return t},Vv=function(t,e,r,n){for(var o=e.length,i=r.length,a=0,s=0;a<o||s<i;)t[a+s]=a<o&&s<i?n(e[a],r[s])<=0?e[a++]:r[s++]:a<o?e[a++]:r[s++];return t},Wv=jr,$v=o,Jv=U,Qv=y,Yv=E,Kv=nv,Xv=fi,Zv=hi,tg=function(t,e,r){for(var n in e)r&&r.unsafe&&t[n]?t[n]=e[n]:Hv(t,n,e[n],r);return t},eg=Ci,rg=Ju,ng=Xi,og=av,ig=T,ag=Xt,sg=Ye,ug=sn,cg=rr,fg=tt,lg=Zn,hg=Wo,pg=F,vg=pp,gg=mh,yg=Fv,dg=zv,mg=he("iterator"),bg="URLSearchParams",wg=bg+"Iterator",Sg=ng.set,_g=ng.getterFor(bg),Og=ng.getterFor(wg),Pg=Object.getOwnPropertyDescriptor,kg=function(t){if(!Yv)return $v[t];var e=Pg($v,t);return e&&e.value},Lg=kg("fetch"),Tg=kg("Request"),jg=kg("Headers"),Eg=Tg&&Tg.prototype,Mg=jg&&jg.prototype,Ag=$v.RegExp,Ug=$v.TypeError,xg=$v.decodeURIComponent,Rg=$v.encodeURIComponent,Bg=Qv("".charAt),Cg=Qv([].join),Ig=Qv([].push),Dg=Qv("".replace),Fg=Qv([].shift),Hg=Qv([].splice),qg=Qv("".split),Ng=Qv("".slice),zg=/\+/g,Gg=Array(4),Vg=function(t){return Gg[t-1]||(Gg[t-1]=Ag("((?:%[\\da-f]{2}){"+t+"})","gi"))},Wg=function(t){try{return xg(t)}catch(Tm){return t}},$g=function(t){var e=Dg(t,zg," "),r=4;try{return xg(e)}catch(Tm){for(;r;)e=Dg(e,Vg(r--),Wg);return e}},Jg=/[!'()~]|%20/g,Qg={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Yg=function(t){return Qg[t]},Kg=function(t){return Dg(Rg(t),Jg,Yg)},Xg=rg((function(t,e){Sg(this,{type:wg,iterator:vg(_g(t).entries),kind:e})}),"Iterator",(function(){var t=Og(this),e=t.kind,r=t.iterator.next(),n=r.value;return r.done||(r.value="keys"===e?n.key:"values"===e?n.value:[n.key,n.value]),r}),!0),Zg=function(t){this.entries=[],this.url=null,void 0!==t&&(fg(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===Bg(t,0)?Ng(t,1):t:lg(t)))};Zg.prototype={type:bg,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,r,n,o,i,a,s,u=gg(t);if(u)for(r=(e=vg(t,u)).next;!(n=Jv(r,e)).done;){if(i=(o=vg(cg(n.value))).next,(a=Jv(i,o)).done||(s=Jv(i,o)).done||!Jv(i,o).done)throw Ug("Expected sequence with length 2");Ig(this.entries,{key:lg(a.value),value:lg(s.value)})}else for(var c in t)ag(t,c)&&Ig(this.entries,{key:c,value:lg(t[c])})},parseQuery:function(t){if(t)for(var e,r,n=qg(t,"&"),o=0;o<n.length;)(e=n[o++]).length&&(r=qg(e,"="),Ig(this.entries,{key:$g(Fg(r)),value:$g(Cg(r,"="))}))},serialize:function(){for(var t,e=this.entries,r=[],n=0;n<e.length;)t=e[n++],Ig(r,Kg(t.key)+"="+Kg(t.value));return Cg(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var ty=function(){og(this,ey);var t=Sg(this,new Zg(arguments.length>0?arguments[0]:void 0));Yv||(this.length=t.entries.length)},ey=ty.prototype;if(tg(ey,{append:function(t,e){yg(arguments.length,2);var r=_g(this);Ig(r.entries,{key:lg(t),value:lg(e)}),Yv||this.length++,r.updateURL()},delete:function(t){yg(arguments.length,1);for(var e=_g(this),r=e.entries,n=lg(t),o=0;o<r.length;)r[o].key===n?Hg(r,o,1):o++;Yv||(this.length=r.length),e.updateURL()},get:function(t){yg(arguments.length,1);for(var e=_g(this).entries,r=lg(t),n=0;n<e.length;n++)if(e[n].key===r)return e[n].value;return null},getAll:function(t){yg(arguments.length,1);for(var e=_g(this).entries,r=lg(t),n=[],o=0;o<e.length;o++)e[o].key===r&&Ig(n,e[o].value);return n},has:function(t){yg(arguments.length,1);for(var e=_g(this).entries,r=lg(t),n=0;n<e.length;)if(e[n++].key===r)return!0;return!1},set:function(t,e){yg(arguments.length,1);for(var r,n=_g(this),o=n.entries,i=!1,a=lg(t),s=lg(e),u=0;u<o.length;u++)(r=o[u]).key===a&&(i?Hg(o,u--,1):(i=!0,r.value=s));i||Ig(o,{key:a,value:s}),Yv||(this.length=o.length),n.updateURL()},sort:function(){var t=_g(this);dg(t.entries,(function(t,e){return t.key>e.key?1:-1})),t.updateURL()},forEach:function(t){for(var e,r=_g(this).entries,n=sg(t,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((e=r[o++]).value,e.key,this)},keys:function(){return new Xg(this,"keys")},values:function(){return new Xg(this,"values")},entries:function(){return new Xg(this,"entries")}},{enumerable:!0}),Xv(ey,mg,ey.entries,{name:"entries"}),Xv(ey,"toString",(function(){return _g(this).serialize()}),{enumerable:!0}),Yv&&Zv(ey,"size",{get:function(){return _g(this).entries.length},configurable:!0,enumerable:!0}),eg(ty,bg),Wv({global:!0,constructor:!0,forced:!Kv},{URLSearchParams:ty}),!Kv&&ig(jg)){var ry=Qv(Mg.has),ny=Qv(Mg.set),oy=function(t){if(fg(t)){var e,r=t.body;if(ug(r)===bg)return e=t.headers?new jg(t.headers):new jg,ry(e,"content-type")||ny(e,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),hg(t,{body:pg(0,lg(r)),headers:pg(0,e)})}return t};if(ig(Lg)&&Wv({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(t){return Lg(t,arguments.length>1?oy(arguments[1]):{})}}),ig(Tg)){var iy=function(t){return og(this,Eg),new Tg(t,arguments.length>1?oy(arguments[1]):{})};Eg.constructor=iy,iy.prototype=Eg,Wv({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:iy})}}var ay,sy=jr,uy=E,cy=nv,fy=o,ly=Ye,hy=y,py=fi,vy=hi,gy=av,yy=Xt,dy=bv,my=kp,by=ri,wy=df.codeAt,Sy=function(t){var e,r,n=[],o=xv(Uv(Rv(t),Ov,"."),".");for(e=0;e<o.length;e++)r=o[e],Av(n,Lv(_v,r)?"xn--"+Iv(r):r);return Mv(n,".")},_y=Zn,Oy=Ci,Py=Fv,ky={URLSearchParams:ty,getState:_g},Ly=Xi,Ty=Ly.set,jy=Ly.getterFor("URL"),Ey=ky.URLSearchParams,My=ky.getState,Ay=fy.URL,Uy=fy.TypeError,xy=fy.parseInt,Ry=Math.floor,By=Math.pow,Cy=hy("".charAt),Iy=hy(/./.exec),Dy=hy([].join),Fy=hy(1..toString),Hy=hy([].pop),qy=hy([].push),Ny=hy("".replace),zy=hy([].shift),Gy=hy("".split),Vy=hy("".slice),Wy=hy("".toLowerCase),$y=hy([].unshift),Jy="Invalid scheme",Qy="Invalid host",Yy="Invalid port",Ky=/[a-z]/i,Xy=/[\d+-.a-z]/i,Zy=/\d/,td=/^0x/i,ed=/^[0-7]+$/,rd=/^\d+$/,nd=/^[\da-f]+$/i,od=/[\0\t\n\r #%/:<>?@[\\\]^|]/,id=/[\0\t\n\r #/:<>?@[\\\]^|]/,ad=/^[\u0000-\u0020]+/,sd=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,ud=/[\t\n\r]/g,cd=function(t){var e,r,n,o;if("number"==typeof t){for(e=[],r=0;r<4;r++)$y(e,t%256),t=Ry(t/256);return Dy(e,".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,r=1,n=null,o=0,i=0;i<8;i++)0!==t[i]?(o>r&&(e=n,r=o),n=null,o=0):(null===n&&(n=i),++o);return o>r&&(e=n,r=o),e}(t),r=0;r<8;r++)o&&0===t[r]||(o&&(o=!1),n===r?(e+=r?":":"::",o=!0):(e+=Fy(t[r],16),r<7&&(e+=":")));return"["+e+"]"}return t},fd={},ld=dy({},fd,{" ":1,'"':1,"<":1,">":1,"`":1}),hd=dy({},ld,{"#":1,"?":1,"{":1,"}":1}),pd=dy({},hd,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),vd=function(t,e){var r=wy(t,0);return r>32&&r<127&&!yy(e,t)?t:encodeURIComponent(t)},gd={ftp:21,file:null,http:80,https:443,ws:80,wss:443},yd=function(t,e){var r;return 2==t.length&&Iy(Ky,Cy(t,0))&&(":"==(r=Cy(t,1))||!e&&"|"==r)},dd=function(t){var e;return t.length>1&&yd(Vy(t,0,2))&&(2==t.length||"/"===(e=Cy(t,2))||"\\"===e||"?"===e||"#"===e)},md=function(t){return"."===t||"%2e"===Wy(t)},bd={},wd={},Sd={},_d={},Od={},Pd={},kd={},Ld={},Td={},jd={},Ed={},Md={},Ad={},Ud={},xd={},Rd={},Bd={},Cd={},Id={},Dd={},Fd={},Hd=function(t,e,r){var n,o,i,a=_y(t);if(e){if(o=this.parse(a))throw Uy(o);this.searchParams=null}else{if(void 0!==r&&(n=new Hd(r,!0)),o=this.parse(a,null,n))throw Uy(o);(i=My(new Ey)).bindURL(this),this.searchParams=i}};Hd.prototype={type:"URL",parse:function(t,e,r){var n,o,i,a,s,u=this,c=e||bd,f=0,l="",h=!1,p=!1,v=!1;for(t=_y(t),e||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,t=Ny(t,ad,""),t=Ny(t,sd,"$1")),t=Ny(t,ud,""),n=my(t);f<=n.length;){switch(o=n[f],c){case bd:if(!o||!Iy(Ky,o)){if(e)return Jy;c=Sd;continue}l+=Wy(o),c=wd;break;case wd:if(o&&(Iy(Xy,o)||"+"==o||"-"==o||"."==o))l+=Wy(o);else{if(":"!=o){if(e)return Jy;l="",c=Sd,f=0;continue}if(e&&(u.isSpecial()!=yy(gd,l)||"file"==l&&(u.includesCredentials()||null!==u.port)||"file"==u.scheme&&!u.host))return;if(u.scheme=l,e)return void(u.isSpecial()&&gd[u.scheme]==u.port&&(u.port=null));l="","file"==u.scheme?c=Ud:u.isSpecial()&&r&&r.scheme==u.scheme?c=_d:u.isSpecial()?c=Ld:"/"==n[f+1]?(c=Od,f++):(u.cannotBeABaseURL=!0,qy(u.path,""),c=Id)}break;case Sd:if(!r||r.cannotBeABaseURL&&"#"!=o)return Jy;if(r.cannotBeABaseURL&&"#"==o){u.scheme=r.scheme,u.path=by(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,c=Fd;break}c="file"==r.scheme?Ud:Pd;continue;case _d:if("/"!=o||"/"!=n[f+1]){c=Pd;continue}c=Td,f++;break;case Od:if("/"==o){c=jd;break}c=Cd;continue;case Pd:if(u.scheme=r.scheme,o==ay)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=by(r.path),u.query=r.query;else if("/"==o||"\\"==o&&u.isSpecial())c=kd;else if("?"==o)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=by(r.path),u.query="",c=Dd;else{if("#"!=o){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=by(r.path),u.path.length--,c=Cd;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=by(r.path),u.query=r.query,u.fragment="",c=Fd}break;case kd:if(!u.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,c=Cd;continue}c=jd}else c=Td;break;case Ld:if(c=Td,"/"!=o||"/"!=Cy(l,f+1))continue;f++;break;case Td:if("/"!=o&&"\\"!=o){c=jd;continue}break;case jd:if("@"==o){h&&(l="%40"+l),h=!0,i=my(l);for(var g=0;g<i.length;g++){var y=i[g];if(":"!=y||v){var d=vd(y,pd);v?u.password+=d:u.username+=d}else v=!0}l=""}else if(o==ay||"/"==o||"?"==o||"#"==o||"\\"==o&&u.isSpecial()){if(h&&""==l)return"Invalid authority";f-=my(l).length+1,l="",c=Ed}else l+=o;break;case Ed:case Md:if(e&&"file"==u.scheme){c=Rd;continue}if(":"!=o||p){if(o==ay||"/"==o||"?"==o||"#"==o||"\\"==o&&u.isSpecial()){if(u.isSpecial()&&""==l)return Qy;if(e&&""==l&&(u.includesCredentials()||null!==u.port))return;if(a=u.parseHost(l))return a;if(l="",c=Bd,e)return;continue}"["==o?p=!0:"]"==o&&(p=!1),l+=o}else{if(""==l)return Qy;if(a=u.parseHost(l))return a;if(l="",c=Ad,e==Md)return}break;case Ad:if(!Iy(Zy,o)){if(o==ay||"/"==o||"?"==o||"#"==o||"\\"==o&&u.isSpecial()||e){if(""!=l){var m=xy(l,10);if(m>65535)return Yy;u.port=u.isSpecial()&&m===gd[u.scheme]?null:m,l=""}if(e)return;c=Bd;continue}return Yy}l+=o;break;case Ud:if(u.scheme="file","/"==o||"\\"==o)c=xd;else{if(!r||"file"!=r.scheme){c=Cd;continue}if(o==ay)u.host=r.host,u.path=by(r.path),u.query=r.query;else if("?"==o)u.host=r.host,u.path=by(r.path),u.query="",c=Dd;else{if("#"!=o){dd(Dy(by(n,f),""))||(u.host=r.host,u.path=by(r.path),u.shortenPath()),c=Cd;continue}u.host=r.host,u.path=by(r.path),u.query=r.query,u.fragment="",c=Fd}}break;case xd:if("/"==o||"\\"==o){c=Rd;break}r&&"file"==r.scheme&&!dd(Dy(by(n,f),""))&&(yd(r.path[0],!0)?qy(u.path,r.path[0]):u.host=r.host),c=Cd;continue;case Rd:if(o==ay||"/"==o||"\\"==o||"?"==o||"#"==o){if(!e&&yd(l))c=Cd;else if(""==l){if(u.host="",e)return;c=Bd}else{if(a=u.parseHost(l))return a;if("localhost"==u.host&&(u.host=""),e)return;l="",c=Bd}continue}l+=o;break;case Bd:if(u.isSpecial()){if(c=Cd,"/"!=o&&"\\"!=o)continue}else if(e||"?"!=o)if(e||"#"!=o){if(o!=ay&&(c=Cd,"/"!=o))continue}else u.fragment="",c=Fd;else u.query="",c=Dd;break;case Cd:if(o==ay||"/"==o||"\\"==o&&u.isSpecial()||!e&&("?"==o||"#"==o)){if(".."===(s=Wy(s=l))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(u.shortenPath(),"/"==o||"\\"==o&&u.isSpecial()||qy(u.path,"")):md(l)?"/"==o||"\\"==o&&u.isSpecial()||qy(u.path,""):("file"==u.scheme&&!u.path.length&&yd(l)&&(u.host&&(u.host=""),l=Cy(l,0)+":"),qy(u.path,l)),l="","file"==u.scheme&&(o==ay||"?"==o||"#"==o))for(;u.path.length>1&&""===u.path[0];)zy(u.path);"?"==o?(u.query="",c=Dd):"#"==o&&(u.fragment="",c=Fd)}else l+=vd(o,hd);break;case Id:"?"==o?(u.query="",c=Dd):"#"==o?(u.fragment="",c=Fd):o!=ay&&(u.path[0]+=vd(o,fd));break;case Dd:e||"#"!=o?o!=ay&&("'"==o&&u.isSpecial()?u.query+="%27":u.query+="#"==o?"%23":vd(o,fd)):(u.fragment="",c=Fd);break;case Fd:o!=ay&&(u.fragment+=vd(o,ld))}f++}},parseHost:function(t){var e,r,n;if("["==Cy(t,0)){if("]"!=Cy(t,t.length-1))return Qy;if(e=function(t){var e,r,n,o,i,a,s,u=[0,0,0,0,0,0,0,0],c=0,f=null,l=0,h=function(){return Cy(t,l)};if(":"==h()){if(":"!=Cy(t,1))return;l+=2,f=++c}for(;h();){if(8==c)return;if(":"!=h()){for(e=r=0;r<4&&Iy(nd,h());)e=16*e+xy(h(),16),l++,r++;if("."==h()){if(0==r)return;if(l-=r,c>6)return;for(n=0;h();){if(o=null,n>0){if(!("."==h()&&n<4))return;l++}if(!Iy(Zy,h()))return;for(;Iy(Zy,h());){if(i=xy(h(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;l++}u[c]=256*u[c]+o,2!=++n&&4!=n||c++}if(4!=n)return;break}if(":"==h()){if(l++,!h())return}else if(h())return;u[c++]=e}else{if(null!==f)return;l++,f=++c}}if(null!==f)for(a=c-f,c=7;0!=c&&a>0;)s=u[c],u[c--]=u[f+a-1],u[f+--a]=s;else if(8!=c)return;return u}(Vy(t,1,-1)),!e)return Qy;this.host=e}else if(this.isSpecial()){if(t=Sy(t),Iy(od,t))return Qy;if(e=function(t){var e,r,n,o,i,a,s,u=Gy(t,".");if(u.length&&""==u[u.length-1]&&u.length--,(e=u.length)>4)return t;for(r=[],n=0;n<e;n++){if(""==(o=u[n]))return t;if(i=10,o.length>1&&"0"==Cy(o,0)&&(i=Iy(td,o)?16:8,o=Vy(o,8==i?1:2)),""===o)a=0;else{if(!Iy(10==i?rd:8==i?ed:nd,o))return t;a=xy(o,i)}qy(r,a)}for(n=0;n<e;n++)if(a=r[n],n==e-1){if(a>=By(256,5-e))return null}else if(a>255)return null;for(s=Hy(r),n=0;n<r.length;n++)s+=r[n]*By(256,3-n);return s}(t),null===e)return Qy;this.host=e}else{if(Iy(id,t))return Qy;for(e="",r=my(t),n=0;n<r.length;n++)e+=vd(r[n],fd);this.host=e}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return yy(gd,this.scheme)},shortenPath:function(){var t=this.path,e=t.length;!e||"file"==this.scheme&&1==e&&yd(t[0],!0)||t.length--},serialize:function(){var t=this,e=t.scheme,r=t.username,n=t.password,o=t.host,i=t.port,a=t.path,s=t.query,u=t.fragment,c=e+":";return null!==o?(c+="//",t.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=cd(o),null!==i&&(c+=":"+i)):"file"==e&&(c+="//"),c+=t.cannotBeABaseURL?a[0]:a.length?"/"+Dy(a,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},setHref:function(t){var e=this.parse(t);if(e)throw Uy(e);this.searchParams.update()},getOrigin:function(){var t=this.scheme,e=this.port;if("blob"==t)try{return new qd(t.path[0]).origin}catch(Tm){return"null"}return"file"!=t&&this.isSpecial()?t+"://"+cd(this.host)+(null!==e?":"+e:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(t){this.parse(_y(t)+":",bd)},getUsername:function(){return this.username},setUsername:function(t){var e=my(_y(t));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<e.length;r++)this.username+=vd(e[r],pd)}},getPassword:function(){return this.password},setPassword:function(t){var e=my(_y(t));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<e.length;r++)this.password+=vd(e[r],pd)}},getHost:function(){var t=this.host,e=this.port;return null===t?"":null===e?cd(t):cd(t)+":"+e},setHost:function(t){this.cannotBeABaseURL||this.parse(t,Ed)},getHostname:function(){var t=this.host;return null===t?"":cd(t)},setHostname:function(t){this.cannotBeABaseURL||this.parse(t,Md)},getPort:function(){var t=this.port;return null===t?"":_y(t)},setPort:function(t){this.cannotHaveUsernamePasswordPort()||(""==(t=_y(t))?this.port=null:this.parse(t,Ad))},getPathname:function(){var t=this.path;return this.cannotBeABaseURL?t[0]:t.length?"/"+Dy(t,"/"):""},setPathname:function(t){this.cannotBeABaseURL||(this.path=[],this.parse(t,Bd))},getSearch:function(){var t=this.query;return t?"?"+t:""},setSearch:function(t){""==(t=_y(t))?this.query=null:("?"==Cy(t,0)&&(t=Vy(t,1)),this.query="",this.parse(t,Dd)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var t=this.fragment;return t?"#"+t:""},setHash:function(t){""!=(t=_y(t))?("#"==Cy(t,0)&&(t=Vy(t,1)),this.fragment="",this.parse(t,Fd)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var qd=function(t){var e=gy(this,Nd),r=Py(arguments.length,1)>1?arguments[1]:void 0,n=Ty(e,new Hd(t,!1,r));uy||(e.href=n.serialize(),e.origin=n.getOrigin(),e.protocol=n.getProtocol(),e.username=n.getUsername(),e.password=n.getPassword(),e.host=n.getHost(),e.hostname=n.getHostname(),e.port=n.getPort(),e.pathname=n.getPathname(),e.search=n.getSearch(),e.searchParams=n.getSearchParams(),e.hash=n.getHash())},Nd=qd.prototype,zd=function(t,e){return{get:function(){return jy(this)[t]()},set:e&&function(t){return jy(this)[e](t)},configurable:!0,enumerable:!0}};if(uy&&(vy(Nd,"href",zd("serialize","setHref")),vy(Nd,"origin",zd("getOrigin")),vy(Nd,"protocol",zd("getProtocol","setProtocol")),vy(Nd,"username",zd("getUsername","setUsername")),vy(Nd,"password",zd("getPassword","setPassword")),vy(Nd,"host",zd("getHost","setHost")),vy(Nd,"hostname",zd("getHostname","setHostname")),vy(Nd,"port",zd("getPort","setPort")),vy(Nd,"pathname",zd("getPathname","setPathname")),vy(Nd,"search",zd("getSearch","setSearch")),vy(Nd,"searchParams",zd("getSearchParams")),vy(Nd,"hash",zd("getHash","setHash"))),py(Nd,"toJSON",(function(){return jy(this).serialize()}),{enumerable:!0}),py(Nd,"toString",(function(){return jy(this).serialize()}),{enumerable:!0}),Ay){var Gd=Ay.createObjectURL,Vd=Ay.revokeObjectURL;Gd&&py(qd,"createObjectURL",ly(Gd,Ay)),Vd&&py(qd,"revokeObjectURL",ly(Vd,Ay))}Oy(qd,"URL"),sy({global:!0,constructor:!0,forced:!cy,sham:!uy},{URL:qd});var Wd=jr,$d=i,Jd=Fv,Qd=Zn,Yd=nv,Kd=at("URL");Wd({target:"URL",stat:!0,forced:!(Yd&&$d((function(){Kd.canParse()})))},{canParse:function(t){var e=Jd(arguments.length,1),r=Qd(t),n=e<2||void 0===arguments[1]?void 0:Qd(arguments[1]);try{return!!new Kd(r,n)}catch(Tm){return!1}}});var Xd=e(et.URL),Zd=i,tm=aa.forEach,em=function(t,e){var r=[][t];return!!r&&Zd((function(){r.call(null,e||function(){return 1},1)}))}("forEach")?[].forEach:function(t){return tm(this,t,arguments.length>1?arguments[1]:void 0)};jr({target:"Array",proto:!0,forced:[].forEach!=em},{forEach:em});var rm=Jf("Array").forEach,nm=sn,om=Xt,im=st,am=rm,sm=Array.prototype,um={DOMTokenList:!0,NodeList:!0},cm=e((function(t){var e=t.forEach;return t===sm||im(sm,t)&&e===sm.forEach||om(um,nm(t))?am:e})),fm=E,lm=y,hm=So,pm=K,vm=lm(x.f),gm=lm([].push),ym=function(t){return function(e){for(var r,n=pm(e),o=hm(n),i=o.length,a=0,s=[];i>a;)r=o[a++],fm&&!vm(n,r)||gm(s,t?[r,n[r]]:n[r]);return s}},dm={entries:ym(!0),values:ym(!1)}.entries;jr({target:"Object",stat:!0},{entries:function(t){return dm(t)}});var mm=e(et.Object.entries),bm=window.VePlayer.live,wm=window.VePlayer.Plugin,Sm=window.VePlayer.Sniffer,_m=window.VePlayer.util,Om=wm.POSITIONS,Pm=bm.Events,km=604800,Lm=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=xf(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Rr(t,"prototype",{writable:!1}),e&&el(t,e)}(i,t);var e,r,n,o=kl(i);function i(){var t,e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i);for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return Ll(Af(e=o.call.apply(o,Al(t=[this]).call(t,n))),"_isMobile","mobile"===Sm.device),Ll(Af(e),"_playedBar",null),Ll(Af(e),"_progressBtn",null),Ll(Af(e),"_tooltip",null),Ll(Af(e),"_backToLiveBtn",null),Ll(Af(e),"_localInitTime",0),Ll(Af(e),"_timeShiftInitRange",0),Ll(Af(e),"_timeShiftOffset",0),Ll(Af(e),"_isProgressMoving",!1),Ll(Af(e),"_liveUrl",""),Ll(Af(e),"_stopPropagation",(function(t){_m.stopPropagation(t),_m.event(t)})),e}return e=i,n=[{key:"pluginName",get:function(){return"timeShift"}},{key:"defaultConfig",get:function(){return{position:Om.CONTROLS_CENTER,liveStartTime:Bl()/1e3,maxShiftOffset:0,currentTime:Bl()/1e3}}}],(r=[{key:"_timeShiftLimit",get:function(){var t,e=this._timeShiftInitRange+Math.floor(Bl()/1e3-this._localInitTime),r=(null!==(t=this.config)&&void 0!==t?t:{}).maxShiftOffset;return e>km?km:r&&e>r?r:e}},{key:"registerLanguageTexts",value:function(){return{backToLive:{jp:"ライブに戻る",en:"Back to live",zh:"返回直播","zh-hk":"返回直播"}}}},{key:"updateLang",value:function(){this._backToLiveBtn&&(this._backToLiveBtn.innerHTML=this.langText.backToLive)}},{key:"afterCreate",value:function(){var t;this._liveUrl=this.player.config.url,this._playedBar=Gl(this).call(this,".xgplayer-progress-played"),this._progressBtn=Gl(this).call(this,".xgplayer-progress-btn"),this._tooltip=Gl(this).call(this,".xgplayer-shift-progress-point");var e=null!==(t=this.config)&&void 0!==t?t:{},r=e.liveStartTime,n=e.currentTime;this._localInitTime=Math.floor(Bl()/1e3),this._timeShiftInitRange=Math.floor(n-r),this._createBackLiveBtDom(),this._initEvents(),this._bindDomEvents()}},{key:"backToLive",value:function(){this._liveUrl&&(this._switchUrl(this._liveUrl),this._timeShiftOffset=0,this._toggleBackButton(!1),this.player.emit(Pm.TIME_SHIFT_CHANGE,!1))}},{key:"destroy",value:function(){var t,e;if(this.off(Pm.TIME_UPDATE,Vl(t=this._handleTimeUpdate).call(t,this)),this._isMobile){this.unbind("touchstart",this._handleMouseDown);var r,n,o=this.player.controls;o&&(null===(r=o.root)||void 0===r||r.removerEventListener("touchmove",_m.stopPropagation),null===(n=o.center)||void 0===n||n.removerEventListener("touchend",_m.stopPropagation))}else this.unbind("mousedown",this._handleMouseDown),this.unbind("mouseenter",this._handleMouseEnter);this._backToLiveBtn&&(null===(e=this.player.root)||void 0===e||e.removeChild(this._backToLiveBtn),this._backToLiveBtn=null)}},{key:"render",value:function(){var t=this.player.controls?this.player.controls.config.mode:"";return'\n <xg-progress class="xgplayer-progress '.concat("bottom"===t?"xgplayer-progress-bottom":"",' xgplayer-shift">\n <xg-back-live-bt class="xgplayer-back-live-bt"></xg-back-live-bt>\n <xg-outer class="xgplayer-progress-outer">\n <xg-inners class="progress-list">\n <xg-inner class="xgplayer-progress-inner" style="flex: 1">\n <xg-cache class="xgplayer-progress-cache" style="width: 100%;"></xg-cache>\n <xg-played class="xgplayer-progress-played" style="width: 100%;"></xg-played>\n </xg-inner>\n </xg-inners>\n <xg-progress-btn class="xgplayer-progress-btn"></xg-progress-btn>\n <xg-point class="xgplayer-shift-progress-point">00:00</xg-point>\n </xg-outer>\n </xg-progress>\n ')}},{key:"_initEvents",value:function(){var t;this.on(Pm.TIME_UPDATE,Vl(t=this._handleTimeUpdate).call(t,this))}},{key:"_bindDomEvents",value:function(){var t,e,r,n,o,i;if(this._handleMouseDown=Vl(t=this._handleMouseDown).call(t,this),this._handleMouseUp=Vl(e=this._handleMouseUp).call(e,this),this._handleMouseMove=Vl(r=this._handleMouseMove).call(r,this),this._handleMouseEnter=Vl(n=this._handleMouseEnter).call(n,this),this._handleMouseLeave=Vl(o=this._handleMouseLeave).call(o,this),this._tipsUpdate=Vl(i=this._tipsUpdate).call(i,this),this._isMobile){Vl(this).call(this,"touchstart",this._handleMouseDown);var a,s,u=this.player.controls;u&&(null===(a=u.root)||void 0===a||a.addEventListener("touchmove",_m.stopPropagation),null===(s=u.center)||void 0===s||s.addEventListener("touchend",_m.stopPropagation))}else Vl(this).call(this,"mousedown",this._handleMouseDown),Vl(this).call(this,"mouseenter",this._handleMouseEnter)}},{key:"_handleTimeUpdate",value:function(){this._isProgressMoving||this._progressUpdate()}},{key:"_handleMouseDown",value:function(t){t.target!==this._backToLiveBtn&&(this._stopPropagation(t),this._focus(),this._progressBtn&&_m.addClass(this._progressBtn,"active"),this._timeShiftOffset=this._getProgressOffset(t).progressOffset,this._progressUpdate(),this._isProgressMoving=!0,this._isMobile?(Vl(this).call(this,"touchmove",this._handleMouseMove),Vl(this).call(this,"touchend",this._handleMouseUp)):(document.addEventListener("mousemove",this._handleMouseMove,!1),document.addEventListener("mouseup",this._handleMouseUp,!1)))}},{key:"_handleMouseMove",value:function(t){this._stopPropagation(t),this._timeShiftOffset=this._getProgressOffset(t).progressOffset,this._progressUpdate()}},{key:"_handleMouseUp",value:function(t){this._stopPropagation(t),this._isProgressMoving=!1,this._progressBtn&&_m.removeClass(this._progressBtn,"active"),this._changeTimeUrl(),this._isMobile?(this.unbind("touchmove",this._handleMouseMove),this.unbind("touchend",this._handleMouseUp)):(document.removeEventListener("mousemove",this._handleMouseMove,!1),document.removeEventListener("mouseup",this._handleMouseUp,!1))}},{key:"_handleMouseEnter",value:function(t){Vl(this).call(this,"mouseleave",this._handleMouseLeave),Vl(this).call(this,"mousemove",this._tipsUpdate),this._tipsUpdate(t),this._focus()}},{key:"_handleMouseLeave",value:function(){this.unbind("mouseleave",this._handleMouseLeave),this.unbind("mousemove",this._tipsUpdate),this._blur()}},{key:"_focus",value:function(){this.player.controls.pauseAutoHide(),_m.addClass(this.root,"active")}},{key:"_blur",value:function(){this.player.controls.recoverAutoHide(),_m.removeClass(this.root,"active")}},{key:"_getProgressPercent",value:function(t){var e,r,n,o=this.player,i=this.root.getBoundingClientRect(),a=i.width,s=i.height,u=i.top,c=i.left,f=_m.getEventPos(t,o.zoom);90===o.rotateDeg?(e=s,r=u,n=f.clientY):(e=a,r=c,n=f.clientX);var l=n-r,h=(l=l>e?e:l<0?0:l)/e;return h=h<0?0:h>1?1:h}},{key:"_getProgressOffset",value:function(t){var e=this._getProgressPercent(t);return{progressOffset:Math.floor(this._timeShiftLimit*(1-e)),percent:e}}},{key:"_tipsUpdate",value:function(t){var e,r,n,o,i,a,s,u,c,f,l,h=this._getProgressOffset(t),p=h.progressOffset,v=h.percent;this._tooltip&&(this._tooltip.style.left="".concat(100*v,"%"),this._tooltip.innerHTML="-".concat((e=p,u=Math.floor(e/3600),c=e%3600,f=Math.floor(c/60),l=Math.round(c%60),f=lh(r=f.toString()).call(r,2,"0"),l=lh(n=l.toString()).call(n,2,"0"),u>0?(u=lh(i=u.toString()).call(i,2,"0"),Al(a=Al(s="".concat(u,":")).call(s,f,":")).call(a,l)):Al(o="".concat(f,":")).call(o,l))))}},{key:"_progressUpdate",value:function(){if(this._progressBtn&&this._playedBar){var t=Math.floor(this._timeShiftLimit-this._timeShiftOffset)/this._timeShiftLimit;this._progressBtn.style.left="".concat(100*t,"%"),this._playedBar.style.width="".concat(100*t,"%")}}},{key:"_switchUrl",value:function(t){this.player.src=t,this.player.config.url=t}},{key:"_changeTimeUrl",value:function(){var t;this._toggleBackButton(!0);var e=this._timeShiftOffset<6?6:this._timeShiftOffset;t=function(t,e){if(!e)return t;var r=tv(t).call(t,"//");r&&(t=location.protocol+t);try{var n,o,i,a,s=new Xd(t);return cm(n=mm(e)).call(n,(function(t){var e=xp(t,2),r=e[0],n=e[1];null==s||s.searchParams.set(r,n)})),Al(o=Al(i=Al(a="".concat(r?"":s.protocol,"//")).call(a,s.host)).call(i,s.pathname)).call(o,s.search)}catch(Tm){return console.warn("URL 格式有误,请检查",Tm),t}}(this._liveUrl,{timeshift:e}),this._switchUrl(t),this.player.emit(Pm.TIME_SHIFT_CHANGE,!0)}},{key:"_createBackLiveBtDom",value:function(){var t,e,r=this;this._backToLiveBtn||(this._backToLiveBtn=_m.createDom("xg-back-live-bt",this.langText.backToLive,void 0,"xgplayer-back-live-bt"),null===(t=this._backToLiveBtn)||void 0===t||t.addEventListener("click",(function(){r.backToLive()})),null===(e=this.player.root)||void 0===e||e.appendChild(this._backToLiveBtn))}},{key:"_toggleBackButton",value:function(t){this._backToLiveBtn&&(this._backToLiveBtn.style.display=t?"flex":"none")}}])&&Mf(e.prototype,r),n&&Mf(e,n),Rr(e,"prototype",{writable:!1}),i}(wm);return Lm}));
|