@devix-technologies/react-gjirafa-vp-player 1.0.31-beta.3 → 1.0.31-beta.6
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/index.d.ts +615 -88
- package/dist/react-gjirafa-vp-player.es.js +1028 -928
- package/dist/react-gjirafa-vp-player.umd.js +8 -8
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import hr, { forwardRef as
|
|
3
|
-
var
|
|
1
|
+
import * as ae from "react";
|
|
2
|
+
import hr, { forwardRef as rr, useContext as gr, useState as Ee, useEffect as $e, useRef as ye, useId as mr, useMemo as Oe, useImperativeHandle as yr } from "react";
|
|
3
|
+
var be = { exports: {} }, ue = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-jsx-runtime.production.js
|
|
@@ -10,29 +10,29 @@ var xe = { exports: {} }, fe = {};
|
|
|
10
10
|
* This source code is licensed under the MIT license found in the
|
|
11
11
|
* LICENSE file in the root directory of this source tree.
|
|
12
12
|
*/
|
|
13
|
-
var
|
|
13
|
+
var De;
|
|
14
14
|
function br() {
|
|
15
|
-
if (
|
|
16
|
-
|
|
15
|
+
if (De) return ue;
|
|
16
|
+
De = 1;
|
|
17
17
|
var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
|
|
18
|
-
function t(
|
|
19
|
-
var
|
|
20
|
-
if (
|
|
21
|
-
|
|
22
|
-
for (var
|
|
23
|
-
|
|
24
|
-
} else
|
|
25
|
-
return
|
|
18
|
+
function t(n, a, s) {
|
|
19
|
+
var u = null;
|
|
20
|
+
if (s !== void 0 && (u = "" + s), a.key !== void 0 && (u = "" + a.key), "key" in a) {
|
|
21
|
+
s = {};
|
|
22
|
+
for (var f in a)
|
|
23
|
+
f !== "key" && (s[f] = a[f]);
|
|
24
|
+
} else s = a;
|
|
25
|
+
return a = s.ref, {
|
|
26
26
|
$$typeof: e,
|
|
27
|
-
type:
|
|
28
|
-
key:
|
|
29
|
-
ref:
|
|
30
|
-
props:
|
|
27
|
+
type: n,
|
|
28
|
+
key: u,
|
|
29
|
+
ref: a !== void 0 ? a : null,
|
|
30
|
+
props: s
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
return
|
|
33
|
+
return ue.Fragment = r, ue.jsx = t, ue.jsxs = t, ue;
|
|
34
34
|
}
|
|
35
|
-
var
|
|
35
|
+
var fe = {};
|
|
36
36
|
/**
|
|
37
37
|
* @license React
|
|
38
38
|
* react-jsx-runtime.development.js
|
|
@@ -42,250 +42,250 @@ var de = {};
|
|
|
42
42
|
* This source code is licensed under the MIT license found in the
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
44
|
*/
|
|
45
|
-
var
|
|
45
|
+
var We;
|
|
46
46
|
function vr() {
|
|
47
|
-
return
|
|
48
|
-
function e(
|
|
49
|
-
if (
|
|
50
|
-
if (typeof
|
|
51
|
-
return
|
|
52
|
-
if (typeof
|
|
53
|
-
switch (
|
|
54
|
-
case
|
|
47
|
+
return We || (We = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
48
|
+
function e(o) {
|
|
49
|
+
if (o == null) return null;
|
|
50
|
+
if (typeof o == "function")
|
|
51
|
+
return o.$$typeof === G ? null : o.displayName || o.name || null;
|
|
52
|
+
if (typeof o == "string") return o;
|
|
53
|
+
switch (o) {
|
|
54
|
+
case v:
|
|
55
55
|
return "Fragment";
|
|
56
|
-
case
|
|
56
|
+
case R:
|
|
57
57
|
return "Profiler";
|
|
58
|
-
case
|
|
58
|
+
case w:
|
|
59
59
|
return "StrictMode";
|
|
60
60
|
case C:
|
|
61
61
|
return "Suspense";
|
|
62
|
-
case
|
|
62
|
+
case P:
|
|
63
63
|
return "SuspenseList";
|
|
64
|
-
case
|
|
64
|
+
case U:
|
|
65
65
|
return "Activity";
|
|
66
66
|
}
|
|
67
|
-
if (typeof
|
|
68
|
-
switch (typeof
|
|
67
|
+
if (typeof o == "object")
|
|
68
|
+
switch (typeof o.tag == "number" && console.error(
|
|
69
69
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
70
|
-
),
|
|
71
|
-
case
|
|
70
|
+
), o.$$typeof) {
|
|
71
|
+
case b:
|
|
72
72
|
return "Portal";
|
|
73
|
-
case
|
|
74
|
-
return
|
|
75
|
-
case
|
|
76
|
-
return (
|
|
77
|
-
case
|
|
78
|
-
var
|
|
79
|
-
return
|
|
80
|
-
case
|
|
81
|
-
return
|
|
82
|
-
case
|
|
83
|
-
|
|
73
|
+
case V:
|
|
74
|
+
return o.displayName || "Context";
|
|
75
|
+
case $:
|
|
76
|
+
return (o._context.displayName || "Context") + ".Consumer";
|
|
77
|
+
case L:
|
|
78
|
+
var p = o.render;
|
|
79
|
+
return o = o.displayName, o || (o = p.displayName || p.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
|
|
80
|
+
case q:
|
|
81
|
+
return p = o.displayName || null, p !== null ? p : e(o.type) || "Memo";
|
|
82
|
+
case Z:
|
|
83
|
+
p = o._payload, o = o._init;
|
|
84
84
|
try {
|
|
85
|
-
return e(
|
|
85
|
+
return e(o(p));
|
|
86
86
|
} catch {
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
return null;
|
|
90
90
|
}
|
|
91
|
-
function r(
|
|
92
|
-
return "" +
|
|
91
|
+
function r(o) {
|
|
92
|
+
return "" + o;
|
|
93
93
|
}
|
|
94
|
-
function t(
|
|
94
|
+
function t(o) {
|
|
95
95
|
try {
|
|
96
|
-
r(
|
|
97
|
-
var
|
|
96
|
+
r(o);
|
|
97
|
+
var p = !1;
|
|
98
98
|
} catch {
|
|
99
|
-
|
|
99
|
+
p = !0;
|
|
100
100
|
}
|
|
101
|
-
if (
|
|
102
|
-
|
|
103
|
-
var
|
|
104
|
-
return
|
|
105
|
-
|
|
101
|
+
if (p) {
|
|
102
|
+
p = console;
|
|
103
|
+
var i = p.error, c = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
104
|
+
return i.call(
|
|
105
|
+
p,
|
|
106
106
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
107
|
-
|
|
108
|
-
), r(
|
|
107
|
+
c
|
|
108
|
+
), r(o);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
if (
|
|
113
|
-
if (typeof
|
|
111
|
+
function n(o) {
|
|
112
|
+
if (o === v) return "<>";
|
|
113
|
+
if (typeof o == "object" && o !== null && o.$$typeof === Z)
|
|
114
114
|
return "<...>";
|
|
115
115
|
try {
|
|
116
|
-
var
|
|
117
|
-
return
|
|
116
|
+
var p = e(o);
|
|
117
|
+
return p ? "<" + p + ">" : "<...>";
|
|
118
118
|
} catch {
|
|
119
119
|
return "<...>";
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
var
|
|
124
|
-
return
|
|
122
|
+
function a() {
|
|
123
|
+
var o = z.A;
|
|
124
|
+
return o === null ? null : o.getOwner();
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function s() {
|
|
127
127
|
return Error("react-stack-top-frame");
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
if (
|
|
131
|
-
var
|
|
132
|
-
if (
|
|
129
|
+
function u(o) {
|
|
130
|
+
if (g.call(o, "key")) {
|
|
131
|
+
var p = Object.getOwnPropertyDescriptor(o, "key").get;
|
|
132
|
+
if (p && p.isReactWarning) return !1;
|
|
133
133
|
}
|
|
134
|
-
return
|
|
134
|
+
return o.key !== void 0;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
function
|
|
138
|
-
|
|
136
|
+
function f(o, p) {
|
|
137
|
+
function i() {
|
|
138
|
+
H || (H = !0, console.error(
|
|
139
139
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
140
|
-
|
|
140
|
+
p
|
|
141
141
|
));
|
|
142
142
|
}
|
|
143
|
-
|
|
144
|
-
get:
|
|
143
|
+
i.isReactWarning = !0, Object.defineProperty(o, "key", {
|
|
144
|
+
get: i,
|
|
145
145
|
configurable: !0
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
var
|
|
150
|
-
return
|
|
148
|
+
function x() {
|
|
149
|
+
var o = e(this.type);
|
|
150
|
+
return te[o] || (te[o] = !0, console.error(
|
|
151
151
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
152
|
-
)),
|
|
152
|
+
)), o = this.props.ref, o !== void 0 ? o : null;
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
var
|
|
156
|
-
return
|
|
157
|
-
$$typeof:
|
|
158
|
-
type:
|
|
159
|
-
key:
|
|
160
|
-
props:
|
|
161
|
-
_owner:
|
|
162
|
-
}, (
|
|
154
|
+
function m(o, p, i, c, k, _) {
|
|
155
|
+
var l = i.ref;
|
|
156
|
+
return o = {
|
|
157
|
+
$$typeof: A,
|
|
158
|
+
type: o,
|
|
159
|
+
key: p,
|
|
160
|
+
props: i,
|
|
161
|
+
_owner: c
|
|
162
|
+
}, (l !== void 0 ? l : null) !== null ? Object.defineProperty(o, "ref", {
|
|
163
163
|
enumerable: !1,
|
|
164
|
-
get:
|
|
165
|
-
}) : Object.defineProperty(
|
|
164
|
+
get: x
|
|
165
|
+
}) : Object.defineProperty(o, "ref", { enumerable: !1, value: null }), o._store = {}, Object.defineProperty(o._store, "validated", {
|
|
166
166
|
configurable: !1,
|
|
167
167
|
enumerable: !1,
|
|
168
168
|
writable: !0,
|
|
169
169
|
value: 0
|
|
170
|
-
}), Object.defineProperty(
|
|
170
|
+
}), Object.defineProperty(o, "_debugInfo", {
|
|
171
171
|
configurable: !1,
|
|
172
172
|
enumerable: !1,
|
|
173
173
|
writable: !0,
|
|
174
174
|
value: null
|
|
175
|
-
}), Object.defineProperty(
|
|
175
|
+
}), Object.defineProperty(o, "_debugStack", {
|
|
176
176
|
configurable: !1,
|
|
177
177
|
enumerable: !1,
|
|
178
178
|
writable: !0,
|
|
179
|
-
value:
|
|
180
|
-
}), Object.defineProperty(
|
|
179
|
+
value: k
|
|
180
|
+
}), Object.defineProperty(o, "_debugTask", {
|
|
181
181
|
configurable: !1,
|
|
182
182
|
enumerable: !1,
|
|
183
183
|
writable: !0,
|
|
184
|
-
value:
|
|
185
|
-
}), Object.freeze && (Object.freeze(
|
|
184
|
+
value: _
|
|
185
|
+
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
var
|
|
189
|
-
if (
|
|
190
|
-
if (
|
|
191
|
-
if (
|
|
192
|
-
for (
|
|
193
|
-
|
|
194
|
-
Object.freeze && Object.freeze(
|
|
187
|
+
function h(o, p, i, c, k, _) {
|
|
188
|
+
var l = p.children;
|
|
189
|
+
if (l !== void 0)
|
|
190
|
+
if (c)
|
|
191
|
+
if (Q(l)) {
|
|
192
|
+
for (c = 0; c < l.length; c++)
|
|
193
|
+
y(l[c]);
|
|
194
|
+
Object.freeze && Object.freeze(l);
|
|
195
195
|
} else
|
|
196
196
|
console.error(
|
|
197
197
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
198
198
|
);
|
|
199
|
-
else
|
|
200
|
-
if (
|
|
201
|
-
|
|
202
|
-
var
|
|
203
|
-
return
|
|
199
|
+
else y(l);
|
|
200
|
+
if (g.call(p, "key")) {
|
|
201
|
+
l = e(o);
|
|
202
|
+
var d = Object.keys(p).filter(function(M) {
|
|
203
|
+
return M !== "key";
|
|
204
204
|
});
|
|
205
|
-
|
|
205
|
+
c = 0 < d.length ? "{key: someKey, " + d.join(": ..., ") + ": ...}" : "{key: someKey}", W[l + c] || (d = 0 < d.length ? "{" + d.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
206
206
|
`A props object containing a "key" prop is being spread into JSX:
|
|
207
207
|
let props = %s;
|
|
208
208
|
<%s {...props} />
|
|
209
209
|
React keys must be passed directly to JSX without using spread:
|
|
210
210
|
let props = %s;
|
|
211
211
|
<%s key={someKey} {...props} />`,
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
),
|
|
212
|
+
c,
|
|
213
|
+
l,
|
|
214
|
+
d,
|
|
215
|
+
l
|
|
216
|
+
), W[l + c] = !0);
|
|
217
217
|
}
|
|
218
|
-
if (
|
|
219
|
-
|
|
220
|
-
for (var
|
|
221
|
-
|
|
222
|
-
} else
|
|
223
|
-
return
|
|
224
|
-
_,
|
|
225
|
-
typeof i == "function" ? i.displayName || i.name || "Unknown" : i
|
|
226
|
-
), h(
|
|
218
|
+
if (l = null, i !== void 0 && (t(i), l = "" + i), u(p) && (t(p.key), l = "" + p.key), "key" in p) {
|
|
219
|
+
i = {};
|
|
220
|
+
for (var F in p)
|
|
221
|
+
F !== "key" && (i[F] = p[F]);
|
|
222
|
+
} else i = p;
|
|
223
|
+
return l && f(
|
|
227
224
|
i,
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
225
|
+
typeof o == "function" ? o.displayName || o.name || "Unknown" : o
|
|
226
|
+
), m(
|
|
227
|
+
o,
|
|
228
|
+
l,
|
|
229
|
+
i,
|
|
230
|
+
a(),
|
|
231
|
+
k,
|
|
232
|
+
_
|
|
233
233
|
);
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
|
|
235
|
+
function y(o) {
|
|
236
|
+
O(o) ? o._store && (o._store.validated = 1) : typeof o == "object" && o !== null && o.$$typeof === Z && (o._payload.status === "fulfilled" ? O(o._payload.value) && o._payload.value._store && (o._payload.value._store.validated = 1) : o._store && (o._store.validated = 1));
|
|
237
237
|
}
|
|
238
|
-
function
|
|
239
|
-
return typeof
|
|
238
|
+
function O(o) {
|
|
239
|
+
return typeof o == "object" && o !== null && o.$$typeof === A;
|
|
240
240
|
}
|
|
241
|
-
var
|
|
241
|
+
var T = hr, A = Symbol.for("react.transitional.element"), b = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), R = Symbol.for("react.profiler"), $ = Symbol.for("react.consumer"), V = Symbol.for("react.context"), L = Symbol.for("react.forward_ref"), C = Symbol.for("react.suspense"), P = Symbol.for("react.suspense_list"), q = Symbol.for("react.memo"), Z = Symbol.for("react.lazy"), U = Symbol.for("react.activity"), G = Symbol.for("react.client.reference"), z = T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, g = Object.prototype.hasOwnProperty, Q = Array.isArray, B = console.createTask ? console.createTask : function() {
|
|
242
242
|
return null;
|
|
243
243
|
};
|
|
244
|
-
|
|
245
|
-
react_stack_bottom_frame: function(
|
|
246
|
-
return
|
|
244
|
+
T = {
|
|
245
|
+
react_stack_bottom_frame: function(o) {
|
|
246
|
+
return o();
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
|
-
var
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
)(),
|
|
253
|
-
|
|
254
|
-
var
|
|
255
|
-
return
|
|
249
|
+
var H, te = {}, X = T.react_stack_bottom_frame.bind(
|
|
250
|
+
T,
|
|
251
|
+
s
|
|
252
|
+
)(), ne = B(n(s)), W = {};
|
|
253
|
+
fe.Fragment = v, fe.jsx = function(o, p, i) {
|
|
254
|
+
var c = 1e4 > z.recentlyCreatedOwnerStacks++;
|
|
255
|
+
return h(
|
|
256
|
+
o,
|
|
257
|
+
p,
|
|
256
258
|
i,
|
|
257
|
-
c,
|
|
258
|
-
_,
|
|
259
259
|
!1,
|
|
260
|
-
|
|
261
|
-
|
|
260
|
+
c ? Error("react-stack-top-frame") : X,
|
|
261
|
+
c ? B(n(o)) : ne
|
|
262
262
|
);
|
|
263
|
-
},
|
|
264
|
-
var
|
|
265
|
-
return
|
|
263
|
+
}, fe.jsxs = function(o, p, i) {
|
|
264
|
+
var c = 1e4 > z.recentlyCreatedOwnerStacks++;
|
|
265
|
+
return h(
|
|
266
|
+
o,
|
|
267
|
+
p,
|
|
266
268
|
i,
|
|
267
|
-
c,
|
|
268
|
-
_,
|
|
269
269
|
!0,
|
|
270
|
-
|
|
271
|
-
|
|
270
|
+
c ? Error("react-stack-top-frame") : X,
|
|
271
|
+
c ? B(n(o)) : ne
|
|
272
272
|
);
|
|
273
273
|
};
|
|
274
|
-
})()),
|
|
274
|
+
})()), fe;
|
|
275
275
|
}
|
|
276
|
-
var
|
|
276
|
+
var Ye;
|
|
277
277
|
function xr() {
|
|
278
|
-
return
|
|
278
|
+
return Ye || (Ye = 1, process.env.NODE_ENV === "production" ? be.exports = br() : be.exports = vr()), be.exports;
|
|
279
279
|
}
|
|
280
|
-
var
|
|
281
|
-
function
|
|
282
|
-
return
|
|
280
|
+
var N = xr();
|
|
281
|
+
function je() {
|
|
282
|
+
return je = Object.assign ? Object.assign.bind() : function(e) {
|
|
283
283
|
for (var r = 1; r < arguments.length; r++) {
|
|
284
284
|
var t = arguments[r];
|
|
285
|
-
for (var
|
|
285
|
+
for (var n in t) ({}).hasOwnProperty.call(t, n) && (e[n] = t[n]);
|
|
286
286
|
}
|
|
287
287
|
return e;
|
|
288
|
-
},
|
|
288
|
+
}, je.apply(null, arguments);
|
|
289
289
|
}
|
|
290
290
|
function wr(e) {
|
|
291
291
|
if (e.sheet)
|
|
@@ -294,99 +294,99 @@ function wr(e) {
|
|
|
294
294
|
if (document.styleSheets[r].ownerNode === e)
|
|
295
295
|
return document.styleSheets[r];
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function Pr(e) {
|
|
298
298
|
var r = document.createElement("style");
|
|
299
299
|
return r.setAttribute("data-emotion", e.key), e.nonce !== void 0 && r.setAttribute("nonce", e.nonce), r.appendChild(document.createTextNode("")), r.setAttribute("data-s", ""), r;
|
|
300
300
|
}
|
|
301
|
-
var
|
|
301
|
+
var kr = /* @__PURE__ */ (function() {
|
|
302
302
|
function e(t) {
|
|
303
|
-
var
|
|
304
|
-
this._insertTag = function(
|
|
305
|
-
var
|
|
306
|
-
|
|
303
|
+
var n = this;
|
|
304
|
+
this._insertTag = function(a) {
|
|
305
|
+
var s;
|
|
306
|
+
n.tags.length === 0 ? n.insertionPoint ? s = n.insertionPoint.nextSibling : n.prepend ? s = n.container.firstChild : s = n.before : s = n.tags[n.tags.length - 1].nextSibling, n.container.insertBefore(a, s), n.tags.push(a);
|
|
307
307
|
}, this.isSpeedy = t.speedy === void 0 ? !0 : t.speedy, this.tags = [], this.ctr = 0, this.nonce = t.nonce, this.key = t.key, this.container = t.container, this.prepend = t.prepend, this.insertionPoint = t.insertionPoint, this.before = null;
|
|
308
308
|
}
|
|
309
309
|
var r = e.prototype;
|
|
310
|
-
return r.hydrate = function(
|
|
311
|
-
|
|
312
|
-
}, r.insert = function(
|
|
313
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(
|
|
314
|
-
var
|
|
310
|
+
return r.hydrate = function(n) {
|
|
311
|
+
n.forEach(this._insertTag);
|
|
312
|
+
}, r.insert = function(n) {
|
|
313
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Pr(this));
|
|
314
|
+
var a = this.tags[this.tags.length - 1];
|
|
315
315
|
if (this.isSpeedy) {
|
|
316
|
-
var
|
|
316
|
+
var s = wr(a);
|
|
317
317
|
try {
|
|
318
|
-
|
|
318
|
+
s.insertRule(n, s.cssRules.length);
|
|
319
319
|
} catch {
|
|
320
320
|
}
|
|
321
321
|
} else
|
|
322
|
-
|
|
322
|
+
a.appendChild(document.createTextNode(n));
|
|
323
323
|
this.ctr++;
|
|
324
324
|
}, r.flush = function() {
|
|
325
|
-
this.tags.forEach(function(
|
|
326
|
-
var
|
|
327
|
-
return (
|
|
325
|
+
this.tags.forEach(function(n) {
|
|
326
|
+
var a;
|
|
327
|
+
return (a = n.parentNode) == null ? void 0 : a.removeChild(n);
|
|
328
328
|
}), this.tags = [], this.ctr = 0;
|
|
329
329
|
}, e;
|
|
330
|
-
})(),
|
|
330
|
+
})(), D = "-ms-", Re = "-moz-", S = "-webkit-", tr = "comm", Ne = "rule", Ve = "decl", Sr = "@import", nr = "@keyframes", Er = "@layer", Rr = Math.abs, _e = String.fromCharCode, _r = Object.assign;
|
|
331
331
|
function Tr(e, r) {
|
|
332
|
-
return
|
|
332
|
+
return I(e, 0) ^ 45 ? (((r << 2 ^ I(e, 0)) << 2 ^ I(e, 1)) << 2 ^ I(e, 2)) << 2 ^ I(e, 3) : 0;
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function ar(e) {
|
|
335
335
|
return e.trim();
|
|
336
336
|
}
|
|
337
337
|
function Ar(e, r) {
|
|
338
338
|
return (e = r.exec(e)) ? e[0] : e;
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function E(e, r, t) {
|
|
341
341
|
return e.replace(r, t);
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function Fe(e, r) {
|
|
344
344
|
return e.indexOf(r);
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function I(e, r) {
|
|
347
347
|
return e.charCodeAt(r) | 0;
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function pe(e, r, t) {
|
|
350
350
|
return e.slice(r, t);
|
|
351
351
|
}
|
|
352
352
|
function K(e) {
|
|
353
353
|
return e.length;
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function Le(e) {
|
|
356
356
|
return e.length;
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function ve(e, r) {
|
|
359
359
|
return r.push(e), e;
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function Or(e, r) {
|
|
362
362
|
return e.map(r).join("");
|
|
363
363
|
}
|
|
364
|
-
var
|
|
365
|
-
function
|
|
366
|
-
return { value: e, root: r, parent: t, type:
|
|
364
|
+
var Te = 1, se = 1, ir = 0, Y = 0, j = 0, le = "";
|
|
365
|
+
function Ae(e, r, t, n, a, s, u) {
|
|
366
|
+
return { value: e, root: r, parent: t, type: n, props: a, children: s, line: Te, column: se, length: u, return: "" };
|
|
367
367
|
}
|
|
368
|
-
function
|
|
369
|
-
return _r(
|
|
368
|
+
function de(e, r) {
|
|
369
|
+
return _r(Ae("", null, null, "", null, null, 0), e, { length: -e.length }, r);
|
|
370
370
|
}
|
|
371
|
-
function
|
|
371
|
+
function Cr() {
|
|
372
372
|
return j;
|
|
373
373
|
}
|
|
374
374
|
function $r() {
|
|
375
|
-
return j =
|
|
375
|
+
return j = Y > 0 ? I(le, --Y) : 0, se--, j === 10 && (se = 1, Te--), j;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
return j =
|
|
377
|
+
function J() {
|
|
378
|
+
return j = Y < ir ? I(le, Y++) : 0, se++, j === 10 && (se = 1, Te++), j;
|
|
379
379
|
}
|
|
380
380
|
function re() {
|
|
381
|
-
return
|
|
381
|
+
return I(le, Y);
|
|
382
382
|
}
|
|
383
383
|
function Pe() {
|
|
384
|
-
return
|
|
384
|
+
return Y;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
return
|
|
386
|
+
function me(e, r) {
|
|
387
|
+
return pe(le, e, r);
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function he(e) {
|
|
390
390
|
switch (e) {
|
|
391
391
|
// \0 \t \n \r \s whitespace token
|
|
392
392
|
case 0:
|
|
@@ -424,257 +424,257 @@ function me(e) {
|
|
|
424
424
|
}
|
|
425
425
|
return 0;
|
|
426
426
|
}
|
|
427
|
-
function
|
|
428
|
-
return
|
|
427
|
+
function or(e) {
|
|
428
|
+
return Te = se = 1, ir = K(le = e), Y = 0, [];
|
|
429
429
|
}
|
|
430
|
-
function
|
|
431
|
-
return
|
|
430
|
+
function sr(e) {
|
|
431
|
+
return le = "", e;
|
|
432
432
|
}
|
|
433
|
-
function
|
|
434
|
-
return
|
|
433
|
+
function ke(e) {
|
|
434
|
+
return ar(me(Y - 1, Me(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
435
435
|
}
|
|
436
436
|
function jr(e) {
|
|
437
437
|
for (; (j = re()) && j < 33; )
|
|
438
|
-
|
|
439
|
-
return
|
|
438
|
+
J();
|
|
439
|
+
return he(e) > 2 || he(j) > 3 ? "" : " ";
|
|
440
440
|
}
|
|
441
|
-
function
|
|
442
|
-
for (; --r &&
|
|
441
|
+
function Fr(e, r) {
|
|
442
|
+
for (; --r && J() && !(j < 48 || j > 102 || j > 57 && j < 65 || j > 70 && j < 97); )
|
|
443
443
|
;
|
|
444
|
-
return
|
|
444
|
+
return me(e, Pe() + (r < 6 && re() == 32 && J() == 32));
|
|
445
445
|
}
|
|
446
|
-
function
|
|
447
|
-
for (;
|
|
446
|
+
function Me(e) {
|
|
447
|
+
for (; J(); )
|
|
448
448
|
switch (j) {
|
|
449
449
|
// ] ) " '
|
|
450
450
|
case e:
|
|
451
|
-
return
|
|
451
|
+
return Y;
|
|
452
452
|
// " '
|
|
453
453
|
case 34:
|
|
454
454
|
case 39:
|
|
455
|
-
e !== 34 && e !== 39 &&
|
|
455
|
+
e !== 34 && e !== 39 && Me(j);
|
|
456
456
|
break;
|
|
457
457
|
// (
|
|
458
458
|
case 40:
|
|
459
|
-
e === 41 &&
|
|
459
|
+
e === 41 && Me(e);
|
|
460
460
|
break;
|
|
461
461
|
// \
|
|
462
462
|
case 92:
|
|
463
|
-
|
|
463
|
+
J();
|
|
464
464
|
break;
|
|
465
465
|
}
|
|
466
|
-
return
|
|
466
|
+
return Y;
|
|
467
467
|
}
|
|
468
468
|
function Mr(e, r) {
|
|
469
|
-
for (;
|
|
469
|
+
for (; J() && e + j !== 57; )
|
|
470
470
|
if (e + j === 84 && re() === 47)
|
|
471
471
|
break;
|
|
472
|
-
return "/*" +
|
|
472
|
+
return "/*" + me(r, Y - 1) + "*" + _e(e === 47 ? e : J());
|
|
473
473
|
}
|
|
474
|
-
function
|
|
475
|
-
for (; !
|
|
476
|
-
|
|
477
|
-
return
|
|
474
|
+
function Nr(e) {
|
|
475
|
+
for (; !he(re()); )
|
|
476
|
+
J();
|
|
477
|
+
return me(e, Y);
|
|
478
478
|
}
|
|
479
|
-
function
|
|
480
|
-
return
|
|
479
|
+
function Vr(e) {
|
|
480
|
+
return sr(Se("", null, null, null, [""], e = or(e), 0, [0], e));
|
|
481
481
|
}
|
|
482
|
-
function Se(e, r, t,
|
|
483
|
-
for (var
|
|
484
|
-
switch (
|
|
482
|
+
function Se(e, r, t, n, a, s, u, f, x) {
|
|
483
|
+
for (var m = 0, h = 0, y = u, O = 0, T = 0, A = 0, b = 1, v = 1, w = 1, R = 0, $ = "", V = a, L = s, C = n, P = $; v; )
|
|
484
|
+
switch (A = R, R = J()) {
|
|
485
485
|
// (
|
|
486
486
|
case 40:
|
|
487
|
-
if (
|
|
488
|
-
|
|
487
|
+
if (A != 108 && I(P, y - 1) == 58) {
|
|
488
|
+
Fe(P += E(ke(R), "&", "&\f"), "&\f") != -1 && (w = -1);
|
|
489
489
|
break;
|
|
490
490
|
}
|
|
491
491
|
// " ' [
|
|
492
492
|
case 34:
|
|
493
493
|
case 39:
|
|
494
494
|
case 91:
|
|
495
|
-
|
|
495
|
+
P += ke(R);
|
|
496
496
|
break;
|
|
497
497
|
// \t \n \r \s
|
|
498
498
|
case 9:
|
|
499
499
|
case 10:
|
|
500
500
|
case 13:
|
|
501
501
|
case 32:
|
|
502
|
-
|
|
502
|
+
P += jr(A);
|
|
503
503
|
break;
|
|
504
504
|
// \
|
|
505
505
|
case 92:
|
|
506
|
-
|
|
506
|
+
P += Fr(Pe() - 1, 7);
|
|
507
507
|
continue;
|
|
508
508
|
// /
|
|
509
509
|
case 47:
|
|
510
510
|
switch (re()) {
|
|
511
511
|
case 42:
|
|
512
512
|
case 47:
|
|
513
|
-
|
|
513
|
+
ve(Lr(Mr(J(), Pe()), r, t), x);
|
|
514
514
|
break;
|
|
515
515
|
default:
|
|
516
|
-
|
|
516
|
+
P += "/";
|
|
517
517
|
}
|
|
518
518
|
break;
|
|
519
519
|
// {
|
|
520
|
-
case 123 *
|
|
521
|
-
|
|
520
|
+
case 123 * b:
|
|
521
|
+
f[m++] = K(P) * w;
|
|
522
522
|
// } ; \0
|
|
523
|
-
case 125 *
|
|
523
|
+
case 125 * b:
|
|
524
524
|
case 59:
|
|
525
525
|
case 0:
|
|
526
|
-
switch (
|
|
526
|
+
switch (R) {
|
|
527
527
|
// \0 }
|
|
528
528
|
case 0:
|
|
529
529
|
case 125:
|
|
530
|
-
|
|
530
|
+
v = 0;
|
|
531
531
|
// ;
|
|
532
|
-
case 59 +
|
|
533
|
-
|
|
532
|
+
case 59 + h:
|
|
533
|
+
w == -1 && (P = E(P, /\f/g, "")), T > 0 && K(P) - y && ve(T > 32 ? He(P + ";", n, t, y - 1) : He(E(P, " ", "") + ";", n, t, y - 2), x);
|
|
534
534
|
break;
|
|
535
535
|
// @ ;
|
|
536
536
|
case 59:
|
|
537
|
-
|
|
537
|
+
P += ";";
|
|
538
538
|
// { rule/at-rule
|
|
539
539
|
default:
|
|
540
|
-
if (
|
|
541
|
-
if (
|
|
542
|
-
Se(
|
|
540
|
+
if (ve(C = qe(P, r, t, m, h, a, f, $, V = [], L = [], y), s), R === 123)
|
|
541
|
+
if (h === 0)
|
|
542
|
+
Se(P, r, C, C, V, s, y, f, L);
|
|
543
543
|
else
|
|
544
|
-
switch (
|
|
544
|
+
switch (O === 99 && I(P, 3) === 110 ? 100 : O) {
|
|
545
545
|
// d l m s
|
|
546
546
|
case 100:
|
|
547
547
|
case 108:
|
|
548
548
|
case 109:
|
|
549
549
|
case 115:
|
|
550
|
-
Se(e, C, C,
|
|
550
|
+
Se(e, C, C, n && ve(qe(e, C, C, 0, 0, a, f, $, a, V = [], y), L), a, L, y, f, n ? V : L);
|
|
551
551
|
break;
|
|
552
552
|
default:
|
|
553
|
-
Se(
|
|
553
|
+
Se(P, C, C, C, [""], L, 0, f, L);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
|
-
|
|
556
|
+
m = h = T = 0, b = w = 1, $ = P = "", y = u;
|
|
557
557
|
break;
|
|
558
558
|
// :
|
|
559
559
|
case 58:
|
|
560
|
-
|
|
560
|
+
y = 1 + K(P), T = A;
|
|
561
561
|
default:
|
|
562
|
-
if (
|
|
563
|
-
if (
|
|
564
|
-
--
|
|
565
|
-
else if (
|
|
562
|
+
if (b < 1) {
|
|
563
|
+
if (R == 123)
|
|
564
|
+
--b;
|
|
565
|
+
else if (R == 125 && b++ == 0 && $r() == 125)
|
|
566
566
|
continue;
|
|
567
567
|
}
|
|
568
|
-
switch (
|
|
568
|
+
switch (P += _e(R), R * b) {
|
|
569
569
|
// &
|
|
570
570
|
case 38:
|
|
571
|
-
|
|
571
|
+
w = h > 0 ? 1 : (P += "\f", -1);
|
|
572
572
|
break;
|
|
573
573
|
// ,
|
|
574
574
|
case 44:
|
|
575
|
-
|
|
575
|
+
f[m++] = (K(P) - 1) * w, w = 1;
|
|
576
576
|
break;
|
|
577
577
|
// @
|
|
578
578
|
case 64:
|
|
579
|
-
re() === 45 && (
|
|
579
|
+
re() === 45 && (P += ke(J())), O = re(), h = y = K($ = P += Nr(Pe())), R++;
|
|
580
580
|
break;
|
|
581
581
|
// -
|
|
582
582
|
case 45:
|
|
583
|
-
|
|
583
|
+
A === 45 && K(P) == 2 && (b = 0);
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
|
-
return
|
|
586
|
+
return s;
|
|
587
587
|
}
|
|
588
|
-
function
|
|
589
|
-
for (var
|
|
590
|
-
for (var
|
|
591
|
-
(
|
|
592
|
-
return
|
|
588
|
+
function qe(e, r, t, n, a, s, u, f, x, m, h) {
|
|
589
|
+
for (var y = a - 1, O = a === 0 ? s : [""], T = Le(O), A = 0, b = 0, v = 0; A < n; ++A)
|
|
590
|
+
for (var w = 0, R = pe(e, y + 1, y = Rr(b = u[A])), $ = e; w < T; ++w)
|
|
591
|
+
($ = ar(b > 0 ? O[w] + " " + R : E(R, /&\f/g, O[w]))) && (x[v++] = $);
|
|
592
|
+
return Ae(e, r, t, a === 0 ? Ne : f, x, m, h);
|
|
593
593
|
}
|
|
594
|
-
function
|
|
595
|
-
return
|
|
594
|
+
function Lr(e, r, t) {
|
|
595
|
+
return Ae(e, r, t, tr, _e(Cr()), pe(e, 2, -2), 0);
|
|
596
596
|
}
|
|
597
|
-
function
|
|
598
|
-
return
|
|
597
|
+
function He(e, r, t, n) {
|
|
598
|
+
return Ae(e, r, t, Ve, pe(e, 0, n), pe(e, n + 1, -1), n);
|
|
599
599
|
}
|
|
600
|
-
function
|
|
601
|
-
for (var t = "",
|
|
602
|
-
t += r(e[
|
|
600
|
+
function oe(e, r) {
|
|
601
|
+
for (var t = "", n = Le(e), a = 0; a < n; a++)
|
|
602
|
+
t += r(e[a], a, e, r) || "";
|
|
603
603
|
return t;
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function Ir(e, r, t, n) {
|
|
606
606
|
switch (e.type) {
|
|
607
|
-
case Sr:
|
|
608
|
-
if (e.children.length) break;
|
|
609
607
|
case Er:
|
|
610
|
-
|
|
608
|
+
if (e.children.length) break;
|
|
609
|
+
case Sr:
|
|
610
|
+
case Ve:
|
|
611
611
|
return e.return = e.return || e.value;
|
|
612
|
-
case
|
|
612
|
+
case tr:
|
|
613
613
|
return "";
|
|
614
|
-
case
|
|
615
|
-
return e.return = e.value + "{" +
|
|
616
|
-
case
|
|
614
|
+
case nr:
|
|
615
|
+
return e.return = e.value + "{" + oe(e.children, n) + "}";
|
|
616
|
+
case Ne:
|
|
617
617
|
e.value = e.props.join(",");
|
|
618
618
|
}
|
|
619
|
-
return K(t =
|
|
619
|
+
return K(t = oe(e.children, n)) ? e.return = e.value + "{" + t + "}" : "";
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
var r =
|
|
623
|
-
return function(t,
|
|
624
|
-
for (var
|
|
625
|
-
|
|
626
|
-
return
|
|
621
|
+
function Ur(e) {
|
|
622
|
+
var r = Le(e);
|
|
623
|
+
return function(t, n, a, s) {
|
|
624
|
+
for (var u = "", f = 0; f < r; f++)
|
|
625
|
+
u += e[f](t, n, a, s) || "";
|
|
626
|
+
return u;
|
|
627
627
|
};
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function zr(e) {
|
|
630
630
|
return function(r) {
|
|
631
631
|
r.root || (r = r.return) && e(r);
|
|
632
632
|
};
|
|
633
633
|
}
|
|
634
|
-
function
|
|
634
|
+
function cr(e) {
|
|
635
635
|
var r = /* @__PURE__ */ Object.create(null);
|
|
636
636
|
return function(t) {
|
|
637
637
|
return r[t] === void 0 && (r[t] = e(t)), r[t];
|
|
638
638
|
};
|
|
639
639
|
}
|
|
640
|
-
var Dr = function(r, t,
|
|
641
|
-
for (var
|
|
642
|
-
|
|
643
|
-
return
|
|
640
|
+
var Dr = function(r, t, n) {
|
|
641
|
+
for (var a = 0, s = 0; a = s, s = re(), a === 38 && s === 12 && (t[n] = 1), !he(s); )
|
|
642
|
+
J();
|
|
643
|
+
return me(r, Y);
|
|
644
644
|
}, Wr = function(r, t) {
|
|
645
|
-
var
|
|
645
|
+
var n = -1, a = 44;
|
|
646
646
|
do
|
|
647
|
-
switch (
|
|
647
|
+
switch (he(a)) {
|
|
648
648
|
case 0:
|
|
649
|
-
|
|
649
|
+
a === 38 && re() === 12 && (t[n] = 1), r[n] += Dr(Y - 1, t, n);
|
|
650
650
|
break;
|
|
651
651
|
case 2:
|
|
652
|
-
r[
|
|
652
|
+
r[n] += ke(a);
|
|
653
653
|
break;
|
|
654
654
|
case 4:
|
|
655
|
-
if (
|
|
656
|
-
r[++
|
|
655
|
+
if (a === 44) {
|
|
656
|
+
r[++n] = re() === 58 ? "&\f" : "", t[n] = r[n].length;
|
|
657
657
|
break;
|
|
658
658
|
}
|
|
659
659
|
// fallthrough
|
|
660
660
|
default:
|
|
661
|
-
r[
|
|
661
|
+
r[n] += _e(a);
|
|
662
662
|
}
|
|
663
|
-
while (
|
|
663
|
+
while (a = J());
|
|
664
664
|
return r;
|
|
665
665
|
}, Yr = function(r, t) {
|
|
666
|
-
return
|
|
667
|
-
},
|
|
666
|
+
return sr(Wr(or(r), t));
|
|
667
|
+
}, Je = /* @__PURE__ */ new WeakMap(), qr = function(r) {
|
|
668
668
|
if (!(r.type !== "rule" || !r.parent || // positive .length indicates that this rule contains pseudo
|
|
669
669
|
// negative .length indicates that this rule has been already prefixed
|
|
670
670
|
r.length < 1)) {
|
|
671
|
-
for (var t = r.value,
|
|
672
|
-
if (
|
|
673
|
-
if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !
|
|
674
|
-
|
|
675
|
-
for (var
|
|
676
|
-
for (var
|
|
677
|
-
r.props[
|
|
671
|
+
for (var t = r.value, n = r.parent, a = r.column === n.column && r.line === n.line; n.type !== "rule"; )
|
|
672
|
+
if (n = n.parent, !n) return;
|
|
673
|
+
if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !Je.get(n)) && !a) {
|
|
674
|
+
Je.set(r, !0);
|
|
675
|
+
for (var s = [], u = Yr(t, s), f = n.props, x = 0, m = 0; x < u.length; x++)
|
|
676
|
+
for (var h = 0; h < f.length; h++, m++)
|
|
677
|
+
r.props[m] = s[x] ? u[x].replace(/&\f/g, f[h]) : f[h] + " " + u[x];
|
|
678
678
|
}
|
|
679
679
|
}
|
|
680
680
|
}, Hr = function(r) {
|
|
@@ -685,11 +685,11 @@ var Dr = function(r, t, a) {
|
|
|
685
685
|
t.charCodeAt(2) === 98 && (r.return = "", r.value = "");
|
|
686
686
|
}
|
|
687
687
|
};
|
|
688
|
-
function
|
|
688
|
+
function lr(e, r) {
|
|
689
689
|
switch (Tr(e, r)) {
|
|
690
690
|
// color-adjust
|
|
691
691
|
case 5103:
|
|
692
|
-
return
|
|
692
|
+
return S + "print-" + e + e;
|
|
693
693
|
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
694
694
|
case 5737:
|
|
695
695
|
case 4201:
|
|
@@ -719,58 +719,58 @@ function ur(e, r) {
|
|
|
719
719
|
case 5365:
|
|
720
720
|
case 5621:
|
|
721
721
|
case 3829:
|
|
722
|
-
return
|
|
722
|
+
return S + e + e;
|
|
723
723
|
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
724
724
|
case 5349:
|
|
725
725
|
case 4246:
|
|
726
726
|
case 4810:
|
|
727
727
|
case 6968:
|
|
728
728
|
case 2756:
|
|
729
|
-
return
|
|
729
|
+
return S + e + Re + e + D + e + e;
|
|
730
730
|
// flex, flex-direction
|
|
731
731
|
case 6828:
|
|
732
732
|
case 4268:
|
|
733
|
-
return
|
|
733
|
+
return S + e + D + e + e;
|
|
734
734
|
// order
|
|
735
735
|
case 6165:
|
|
736
|
-
return
|
|
736
|
+
return S + e + D + "flex-" + e + e;
|
|
737
737
|
// align-items
|
|
738
738
|
case 5187:
|
|
739
|
-
return
|
|
739
|
+
return S + e + E(e, /(\w+).+(:[^]+)/, S + "box-$1$2" + D + "flex-$1$2") + e;
|
|
740
740
|
// align-self
|
|
741
741
|
case 5443:
|
|
742
|
-
return
|
|
742
|
+
return S + e + D + "flex-item-" + E(e, /flex-|-self/, "") + e;
|
|
743
743
|
// align-content
|
|
744
744
|
case 4675:
|
|
745
|
-
return
|
|
745
|
+
return S + e + D + "flex-line-pack" + E(e, /align-content|flex-|-self/, "") + e;
|
|
746
746
|
// flex-shrink
|
|
747
747
|
case 5548:
|
|
748
|
-
return
|
|
748
|
+
return S + e + D + E(e, "shrink", "negative") + e;
|
|
749
749
|
// flex-basis
|
|
750
750
|
case 5292:
|
|
751
|
-
return
|
|
751
|
+
return S + e + D + E(e, "basis", "preferred-size") + e;
|
|
752
752
|
// flex-grow
|
|
753
753
|
case 6060:
|
|
754
|
-
return
|
|
754
|
+
return S + "box-" + E(e, "-grow", "") + S + e + D + E(e, "grow", "positive") + e;
|
|
755
755
|
// transition
|
|
756
756
|
case 4554:
|
|
757
|
-
return
|
|
757
|
+
return S + E(e, /([^-])(transform)/g, "$1" + S + "$2") + e;
|
|
758
758
|
// cursor
|
|
759
759
|
case 6187:
|
|
760
|
-
return
|
|
760
|
+
return E(E(E(e, /(zoom-|grab)/, S + "$1"), /(image-set)/, S + "$1"), e, "") + e;
|
|
761
761
|
// background, background-image
|
|
762
762
|
case 5495:
|
|
763
763
|
case 3959:
|
|
764
|
-
return
|
|
764
|
+
return E(e, /(image-set\([^]*)/, S + "$1$`$1");
|
|
765
765
|
// justify-content
|
|
766
766
|
case 4968:
|
|
767
|
-
return
|
|
767
|
+
return E(E(e, /(.+:)(flex-)?(.*)/, S + "box-pack:$3" + D + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + S + e + e;
|
|
768
768
|
// (margin|padding)-inline-(start|end)
|
|
769
769
|
case 4095:
|
|
770
770
|
case 3583:
|
|
771
771
|
case 4068:
|
|
772
772
|
case 2532:
|
|
773
|
-
return
|
|
773
|
+
return E(e, /(.+)-inline(.+)/, S + "$1$2") + e;
|
|
774
774
|
// (min|max)?(width|height|inline-size|block-size)
|
|
775
775
|
case 8116:
|
|
776
776
|
case 7059:
|
|
@@ -784,170 +784,170 @@ function ur(e, r) {
|
|
|
784
784
|
case 5789:
|
|
785
785
|
case 5021:
|
|
786
786
|
case 4765:
|
|
787
|
-
if (K(e) - 1 - r > 6) switch (
|
|
787
|
+
if (K(e) - 1 - r > 6) switch (I(e, r + 1)) {
|
|
788
788
|
// (m)ax-content, (m)in-content
|
|
789
789
|
case 109:
|
|
790
|
-
if (
|
|
790
|
+
if (I(e, r + 4) !== 45) break;
|
|
791
791
|
// (f)ill-available, (f)it-content
|
|
792
792
|
case 102:
|
|
793
|
-
return
|
|
793
|
+
return E(e, /(.+:)(.+)-([^]+)/, "$1" + S + "$2-$3$1" + Re + (I(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
794
794
|
// (s)tretch
|
|
795
795
|
case 115:
|
|
796
|
-
return ~
|
|
796
|
+
return ~Fe(e, "stretch") ? lr(E(e, "stretch", "fill-available"), r) + e : e;
|
|
797
797
|
}
|
|
798
798
|
break;
|
|
799
799
|
// position: sticky
|
|
800
800
|
case 4949:
|
|
801
|
-
if (
|
|
801
|
+
if (I(e, r + 1) !== 115) break;
|
|
802
802
|
// display: (flex|inline-flex)
|
|
803
803
|
case 6444:
|
|
804
|
-
switch (
|
|
804
|
+
switch (I(e, K(e) - 3 - (~Fe(e, "!important") && 10))) {
|
|
805
805
|
// stic(k)y
|
|
806
806
|
case 107:
|
|
807
|
-
return
|
|
807
|
+
return E(e, ":", ":" + S) + e;
|
|
808
808
|
// (inline-)?fl(e)x
|
|
809
809
|
case 101:
|
|
810
|
-
return
|
|
810
|
+
return E(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + S + (I(e, 14) === 45 ? "inline-" : "") + "box$3$1" + S + "$2$3$1" + D + "$2box$3") + e;
|
|
811
811
|
}
|
|
812
812
|
break;
|
|
813
813
|
// writing-mode
|
|
814
814
|
case 5936:
|
|
815
|
-
switch (
|
|
815
|
+
switch (I(e, r + 11)) {
|
|
816
816
|
// vertical-l(r)
|
|
817
817
|
case 114:
|
|
818
|
-
return
|
|
818
|
+
return S + e + D + E(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
819
819
|
// vertical-r(l)
|
|
820
820
|
case 108:
|
|
821
|
-
return
|
|
821
|
+
return S + e + D + E(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
822
822
|
// horizontal(-)tb
|
|
823
823
|
case 45:
|
|
824
|
-
return
|
|
824
|
+
return S + e + D + E(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
825
825
|
}
|
|
826
|
-
return
|
|
826
|
+
return S + e + D + e + e;
|
|
827
827
|
}
|
|
828
828
|
return e;
|
|
829
829
|
}
|
|
830
|
-
var
|
|
830
|
+
var Jr = function(r, t, n, a) {
|
|
831
831
|
if (r.length > -1 && !r.return) switch (r.type) {
|
|
832
|
-
case
|
|
833
|
-
r.return =
|
|
832
|
+
case Ve:
|
|
833
|
+
r.return = lr(r.value, r.length);
|
|
834
834
|
break;
|
|
835
|
-
case
|
|
836
|
-
return
|
|
837
|
-
value:
|
|
838
|
-
})],
|
|
839
|
-
case
|
|
840
|
-
if (r.length) return
|
|
841
|
-
switch (Ar(
|
|
835
|
+
case nr:
|
|
836
|
+
return oe([de(r, {
|
|
837
|
+
value: E(r.value, "@", "@" + S)
|
|
838
|
+
})], a);
|
|
839
|
+
case Ne:
|
|
840
|
+
if (r.length) return Or(r.props, function(s) {
|
|
841
|
+
switch (Ar(s, /(::plac\w+|:read-\w+)/)) {
|
|
842
842
|
// :read-(only|write)
|
|
843
843
|
case ":read-only":
|
|
844
844
|
case ":read-write":
|
|
845
|
-
return
|
|
846
|
-
props: [
|
|
847
|
-
})],
|
|
845
|
+
return oe([de(r, {
|
|
846
|
+
props: [E(s, /:(read-\w+)/, ":" + Re + "$1")]
|
|
847
|
+
})], a);
|
|
848
848
|
// :placeholder
|
|
849
849
|
case "::placeholder":
|
|
850
|
-
return
|
|
851
|
-
props: [
|
|
852
|
-
}),
|
|
853
|
-
props: [
|
|
854
|
-
}),
|
|
855
|
-
props: [
|
|
856
|
-
})],
|
|
850
|
+
return oe([de(r, {
|
|
851
|
+
props: [E(s, /:(plac\w+)/, ":" + S + "input-$1")]
|
|
852
|
+
}), de(r, {
|
|
853
|
+
props: [E(s, /:(plac\w+)/, ":" + Re + "$1")]
|
|
854
|
+
}), de(r, {
|
|
855
|
+
props: [E(s, /:(plac\w+)/, D + "input-$1")]
|
|
856
|
+
})], a);
|
|
857
857
|
}
|
|
858
858
|
return "";
|
|
859
859
|
});
|
|
860
860
|
}
|
|
861
|
-
},
|
|
861
|
+
}, Gr = [Jr], Br = function(r) {
|
|
862
862
|
var t = r.key;
|
|
863
863
|
if (t === "css") {
|
|
864
|
-
var
|
|
865
|
-
Array.prototype.forEach.call(
|
|
866
|
-
var
|
|
867
|
-
|
|
864
|
+
var n = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
865
|
+
Array.prototype.forEach.call(n, function(b) {
|
|
866
|
+
var v = b.getAttribute("data-emotion");
|
|
867
|
+
v.indexOf(" ") !== -1 && (document.head.appendChild(b), b.setAttribute("data-s", ""));
|
|
868
868
|
});
|
|
869
869
|
}
|
|
870
|
-
var
|
|
871
|
-
|
|
870
|
+
var a = r.stylisPlugins || Gr, s = {}, u, f = [];
|
|
871
|
+
u = r.container || document.head, Array.prototype.forEach.call(
|
|
872
872
|
// this means we will ignore elements which don't have a space in them which
|
|
873
873
|
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
874
874
|
document.querySelectorAll('style[data-emotion^="' + t + ' "]'),
|
|
875
|
-
function(
|
|
876
|
-
for (var
|
|
877
|
-
|
|
878
|
-
|
|
875
|
+
function(b) {
|
|
876
|
+
for (var v = b.getAttribute("data-emotion").split(" "), w = 1; w < v.length; w++)
|
|
877
|
+
s[v[w]] = !0;
|
|
878
|
+
f.push(b);
|
|
879
879
|
}
|
|
880
880
|
);
|
|
881
|
-
var
|
|
881
|
+
var x, m = [qr, Hr];
|
|
882
882
|
{
|
|
883
|
-
var
|
|
884
|
-
|
|
885
|
-
})],
|
|
886
|
-
return
|
|
883
|
+
var h, y = [Ir, zr(function(b) {
|
|
884
|
+
h.insert(b);
|
|
885
|
+
})], O = Ur(m.concat(a, y)), T = function(v) {
|
|
886
|
+
return oe(Vr(v), O);
|
|
887
887
|
};
|
|
888
|
-
|
|
889
|
-
|
|
888
|
+
x = function(v, w, R, $) {
|
|
889
|
+
h = R, T(v ? v + "{" + w.styles + "}" : w.styles), $ && (A.inserted[w.name] = !0);
|
|
890
890
|
};
|
|
891
891
|
}
|
|
892
|
-
var
|
|
892
|
+
var A = {
|
|
893
893
|
key: t,
|
|
894
|
-
sheet: new
|
|
894
|
+
sheet: new kr({
|
|
895
895
|
key: t,
|
|
896
|
-
container:
|
|
896
|
+
container: u,
|
|
897
897
|
nonce: r.nonce,
|
|
898
898
|
speedy: r.speedy,
|
|
899
899
|
prepend: r.prepend,
|
|
900
900
|
insertionPoint: r.insertionPoint
|
|
901
901
|
}),
|
|
902
902
|
nonce: r.nonce,
|
|
903
|
-
inserted:
|
|
903
|
+
inserted: s,
|
|
904
904
|
registered: {},
|
|
905
|
-
insert:
|
|
905
|
+
insert: x
|
|
906
906
|
};
|
|
907
|
-
return
|
|
908
|
-
},
|
|
907
|
+
return A.sheet.hydrate(f), A;
|
|
908
|
+
}, Xr = !0;
|
|
909
909
|
function Zr(e, r, t) {
|
|
910
|
-
var
|
|
911
|
-
return t.split(" ").forEach(function(
|
|
912
|
-
e[
|
|
913
|
-
}),
|
|
910
|
+
var n = "";
|
|
911
|
+
return t.split(" ").forEach(function(a) {
|
|
912
|
+
e[a] !== void 0 ? r.push(e[a] + ";") : a && (n += a + " ");
|
|
913
|
+
}), n;
|
|
914
914
|
}
|
|
915
|
-
var
|
|
916
|
-
var
|
|
915
|
+
var ur = function(r, t, n) {
|
|
916
|
+
var a = r.key + "-" + t.name;
|
|
917
917
|
// we only need to add the styles to the registered cache if the
|
|
918
918
|
// class name could be used further down
|
|
919
919
|
// the tree but if it's a string tag, we know it won't
|
|
920
920
|
// so we don't have to add it to registered cache.
|
|
921
921
|
// this improves memory usage since we can avoid storing the whole style string
|
|
922
|
-
(
|
|
922
|
+
(n === !1 || // we need to always store it if we're in compat mode and
|
|
923
923
|
// in node since emotion-server relies on whether a style is in
|
|
924
924
|
// the registered cache to know whether a style is global or not
|
|
925
925
|
// also, note that this check will be dead code eliminated in the browser
|
|
926
|
-
|
|
927
|
-
}, Qr = function(r, t,
|
|
928
|
-
|
|
929
|
-
var
|
|
926
|
+
Xr === !1) && r.registered[a] === void 0 && (r.registered[a] = t.styles);
|
|
927
|
+
}, Qr = function(r, t, n) {
|
|
928
|
+
ur(r, t, n);
|
|
929
|
+
var a = r.key + "-" + t.name;
|
|
930
930
|
if (r.inserted[t.name] === void 0) {
|
|
931
|
-
var
|
|
931
|
+
var s = t;
|
|
932
932
|
do
|
|
933
|
-
r.insert(t ===
|
|
934
|
-
while (
|
|
933
|
+
r.insert(t === s ? "." + a : "", s, r.sheet, !0), s = s.next;
|
|
934
|
+
while (s !== void 0);
|
|
935
935
|
}
|
|
936
936
|
};
|
|
937
937
|
function Kr(e) {
|
|
938
|
-
for (var r = 0, t,
|
|
939
|
-
t = e.charCodeAt(
|
|
938
|
+
for (var r = 0, t, n = 0, a = e.length; a >= 4; ++n, a -= 4)
|
|
939
|
+
t = e.charCodeAt(n) & 255 | (e.charCodeAt(++n) & 255) << 8 | (e.charCodeAt(++n) & 255) << 16 | (e.charCodeAt(++n) & 255) << 24, t = /* Math.imul(k, m): */
|
|
940
940
|
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), t ^= /* k >>> r: */
|
|
941
941
|
t >>> 24, r = /* Math.imul(k, m): */
|
|
942
942
|
(t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
|
|
943
943
|
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
|
|
944
|
-
switch (
|
|
944
|
+
switch (a) {
|
|
945
945
|
case 3:
|
|
946
|
-
r ^= (e.charCodeAt(
|
|
946
|
+
r ^= (e.charCodeAt(n + 2) & 255) << 16;
|
|
947
947
|
case 2:
|
|
948
|
-
r ^= (e.charCodeAt(
|
|
948
|
+
r ^= (e.charCodeAt(n + 1) & 255) << 8;
|
|
949
949
|
case 1:
|
|
950
|
-
r ^= e.charCodeAt(
|
|
950
|
+
r ^= e.charCodeAt(n) & 255, r = /* Math.imul(h, m): */
|
|
951
951
|
(r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);
|
|
952
952
|
}
|
|
953
953
|
return r ^= r >>> 13, r = /* Math.imul(h, m): */
|
|
@@ -1002,221 +1002,221 @@ var et = {
|
|
|
1002
1002
|
strokeMiterlimit: 1,
|
|
1003
1003
|
strokeOpacity: 1,
|
|
1004
1004
|
strokeWidth: 1
|
|
1005
|
-
}, rt = /[A-Z]|^ms/g, tt = /_EMO_([^_]+?)_([^]*?)_EMO_/g,
|
|
1005
|
+
}, rt = /[A-Z]|^ms/g, tt = /_EMO_([^_]+?)_([^]*?)_EMO_/g, fr = function(r) {
|
|
1006
1006
|
return r.charCodeAt(1) === 45;
|
|
1007
|
-
},
|
|
1007
|
+
}, Ge = function(r) {
|
|
1008
1008
|
return r != null && typeof r != "boolean";
|
|
1009
|
-
},
|
|
1010
|
-
return
|
|
1011
|
-
}),
|
|
1009
|
+
}, Ce = /* @__PURE__ */ cr(function(e) {
|
|
1010
|
+
return fr(e) ? e : e.replace(rt, "-$&").toLowerCase();
|
|
1011
|
+
}), Be = function(r, t) {
|
|
1012
1012
|
switch (r) {
|
|
1013
1013
|
case "animation":
|
|
1014
1014
|
case "animationName":
|
|
1015
1015
|
if (typeof t == "string")
|
|
1016
|
-
return t.replace(tt, function(
|
|
1016
|
+
return t.replace(tt, function(n, a, s) {
|
|
1017
1017
|
return ee = {
|
|
1018
|
-
name:
|
|
1019
|
-
styles:
|
|
1018
|
+
name: a,
|
|
1019
|
+
styles: s,
|
|
1020
1020
|
next: ee
|
|
1021
|
-
},
|
|
1021
|
+
}, a;
|
|
1022
1022
|
});
|
|
1023
1023
|
}
|
|
1024
|
-
return et[r] !== 1 && !
|
|
1024
|
+
return et[r] !== 1 && !fr(r) && typeof t == "number" && t !== 0 ? t + "px" : t;
|
|
1025
1025
|
};
|
|
1026
1026
|
function ge(e, r, t) {
|
|
1027
1027
|
if (t == null)
|
|
1028
1028
|
return "";
|
|
1029
|
-
var
|
|
1030
|
-
if (
|
|
1031
|
-
return
|
|
1029
|
+
var n = t;
|
|
1030
|
+
if (n.__emotion_styles !== void 0)
|
|
1031
|
+
return n;
|
|
1032
1032
|
switch (typeof t) {
|
|
1033
1033
|
case "boolean":
|
|
1034
1034
|
return "";
|
|
1035
1035
|
case "object": {
|
|
1036
|
-
var
|
|
1037
|
-
if (
|
|
1036
|
+
var a = t;
|
|
1037
|
+
if (a.anim === 1)
|
|
1038
1038
|
return ee = {
|
|
1039
|
-
name:
|
|
1040
|
-
styles:
|
|
1039
|
+
name: a.name,
|
|
1040
|
+
styles: a.styles,
|
|
1041
1041
|
next: ee
|
|
1042
|
-
},
|
|
1043
|
-
var
|
|
1044
|
-
if (
|
|
1045
|
-
var
|
|
1046
|
-
if (
|
|
1047
|
-
for (;
|
|
1042
|
+
}, a.name;
|
|
1043
|
+
var s = t;
|
|
1044
|
+
if (s.styles !== void 0) {
|
|
1045
|
+
var u = s.next;
|
|
1046
|
+
if (u !== void 0)
|
|
1047
|
+
for (; u !== void 0; )
|
|
1048
1048
|
ee = {
|
|
1049
|
-
name:
|
|
1050
|
-
styles:
|
|
1049
|
+
name: u.name,
|
|
1050
|
+
styles: u.styles,
|
|
1051
1051
|
next: ee
|
|
1052
|
-
},
|
|
1053
|
-
var
|
|
1054
|
-
return
|
|
1052
|
+
}, u = u.next;
|
|
1053
|
+
var f = s.styles + ";";
|
|
1054
|
+
return f;
|
|
1055
1055
|
}
|
|
1056
1056
|
return nt(e, r, t);
|
|
1057
1057
|
}
|
|
1058
1058
|
case "function": {
|
|
1059
1059
|
if (e !== void 0) {
|
|
1060
|
-
var
|
|
1061
|
-
return ee =
|
|
1060
|
+
var x = ee, m = t(e);
|
|
1061
|
+
return ee = x, ge(e, r, m);
|
|
1062
1062
|
}
|
|
1063
1063
|
break;
|
|
1064
1064
|
}
|
|
1065
1065
|
}
|
|
1066
|
-
var
|
|
1066
|
+
var h = t;
|
|
1067
1067
|
if (r == null)
|
|
1068
|
-
return
|
|
1069
|
-
var
|
|
1070
|
-
return
|
|
1068
|
+
return h;
|
|
1069
|
+
var y = r[h];
|
|
1070
|
+
return y !== void 0 ? y : h;
|
|
1071
1071
|
}
|
|
1072
1072
|
function nt(e, r, t) {
|
|
1073
|
-
var
|
|
1073
|
+
var n = "";
|
|
1074
1074
|
if (Array.isArray(t))
|
|
1075
|
-
for (var
|
|
1076
|
-
|
|
1075
|
+
for (var a = 0; a < t.length; a++)
|
|
1076
|
+
n += ge(e, r, t[a]) + ";";
|
|
1077
1077
|
else
|
|
1078
|
-
for (var
|
|
1079
|
-
var
|
|
1080
|
-
if (typeof
|
|
1081
|
-
var
|
|
1082
|
-
r != null && r[
|
|
1083
|
-
} else if (Array.isArray(
|
|
1084
|
-
for (var
|
|
1085
|
-
|
|
1078
|
+
for (var s in t) {
|
|
1079
|
+
var u = t[s];
|
|
1080
|
+
if (typeof u != "object") {
|
|
1081
|
+
var f = u;
|
|
1082
|
+
r != null && r[f] !== void 0 ? n += s + "{" + r[f] + "}" : Ge(f) && (n += Ce(s) + ":" + Be(s, f) + ";");
|
|
1083
|
+
} else if (Array.isArray(u) && typeof u[0] == "string" && (r == null || r[u[0]] === void 0))
|
|
1084
|
+
for (var x = 0; x < u.length; x++)
|
|
1085
|
+
Ge(u[x]) && (n += Ce(s) + ":" + Be(s, u[x]) + ";");
|
|
1086
1086
|
else {
|
|
1087
|
-
var
|
|
1088
|
-
switch (
|
|
1087
|
+
var m = ge(e, r, u);
|
|
1088
|
+
switch (s) {
|
|
1089
1089
|
case "animation":
|
|
1090
1090
|
case "animationName": {
|
|
1091
|
-
|
|
1091
|
+
n += Ce(s) + ":" + m + ";";
|
|
1092
1092
|
break;
|
|
1093
1093
|
}
|
|
1094
1094
|
default:
|
|
1095
|
-
|
|
1095
|
+
n += s + "{" + m + "}";
|
|
1096
1096
|
}
|
|
1097
1097
|
}
|
|
1098
1098
|
}
|
|
1099
|
-
return
|
|
1099
|
+
return n;
|
|
1100
1100
|
}
|
|
1101
|
-
var
|
|
1101
|
+
var Xe = /label:\s*([^\s;{]+)\s*(;|$)/g, ee;
|
|
1102
1102
|
function at(e, r, t) {
|
|
1103
1103
|
if (e.length === 1 && typeof e[0] == "object" && e[0] !== null && e[0].styles !== void 0)
|
|
1104
1104
|
return e[0];
|
|
1105
|
-
var
|
|
1105
|
+
var n = !0, a = "";
|
|
1106
1106
|
ee = void 0;
|
|
1107
|
-
var
|
|
1108
|
-
if (
|
|
1109
|
-
|
|
1107
|
+
var s = e[0];
|
|
1108
|
+
if (s == null || s.raw === void 0)
|
|
1109
|
+
n = !1, a += ge(t, r, s);
|
|
1110
1110
|
else {
|
|
1111
|
-
var
|
|
1112
|
-
|
|
1111
|
+
var u = s;
|
|
1112
|
+
a += u[0];
|
|
1113
1113
|
}
|
|
1114
|
-
for (var
|
|
1115
|
-
if (
|
|
1116
|
-
var
|
|
1117
|
-
|
|
1114
|
+
for (var f = 1; f < e.length; f++)
|
|
1115
|
+
if (a += ge(t, r, e[f]), n) {
|
|
1116
|
+
var x = s;
|
|
1117
|
+
a += x[f];
|
|
1118
1118
|
}
|
|
1119
|
-
|
|
1120
|
-
for (var
|
|
1121
|
-
|
|
1122
|
-
var
|
|
1119
|
+
Xe.lastIndex = 0;
|
|
1120
|
+
for (var m = "", h; (h = Xe.exec(a)) !== null; )
|
|
1121
|
+
m += "-" + h[1];
|
|
1122
|
+
var y = Kr(a) + m;
|
|
1123
1123
|
return {
|
|
1124
|
-
name:
|
|
1125
|
-
styles:
|
|
1124
|
+
name: y,
|
|
1125
|
+
styles: a,
|
|
1126
1126
|
next: ee
|
|
1127
1127
|
};
|
|
1128
1128
|
}
|
|
1129
1129
|
var it = function(r) {
|
|
1130
1130
|
return r();
|
|
1131
|
-
}, ot =
|
|
1131
|
+
}, ot = ae.useInsertionEffect ? ae.useInsertionEffect : !1, st = ot || it, dr = /* @__PURE__ */ ae.createContext(
|
|
1132
1132
|
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1133
1133
|
// because this module is primarily intended for the browser and node
|
|
1134
1134
|
// but it's also required in react native and similar environments sometimes
|
|
1135
1135
|
// and we could have a special build just for that
|
|
1136
1136
|
// but this is much easier and the native packages
|
|
1137
1137
|
// might use a different theme context in the future anyway
|
|
1138
|
-
typeof HTMLElement < "u" ? /* @__PURE__ */
|
|
1138
|
+
typeof HTMLElement < "u" ? /* @__PURE__ */ Br({
|
|
1139
1139
|
key: "css"
|
|
1140
1140
|
}) : null
|
|
1141
1141
|
);
|
|
1142
|
-
|
|
1142
|
+
dr.Provider;
|
|
1143
1143
|
var ct = function(r) {
|
|
1144
|
-
return /* @__PURE__ */
|
|
1145
|
-
var
|
|
1146
|
-
return r(t,
|
|
1144
|
+
return /* @__PURE__ */ rr(function(t, n) {
|
|
1145
|
+
var a = gr(dr);
|
|
1146
|
+
return r(t, a, n);
|
|
1147
1147
|
});
|
|
1148
|
-
}, lt = /* @__PURE__ */
|
|
1148
|
+
}, lt = /* @__PURE__ */ ae.createContext({}), ut = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, ft = /* @__PURE__ */ cr(
|
|
1149
1149
|
function(e) {
|
|
1150
1150
|
return ut.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
1151
1151
|
}
|
|
1152
1152
|
/* Z+1 */
|
|
1153
1153
|
), dt = ft, pt = function(r) {
|
|
1154
1154
|
return r !== "theme";
|
|
1155
|
-
},
|
|
1155
|
+
}, Ze = function(r) {
|
|
1156
1156
|
return typeof r == "string" && // 96 is one less than the char code
|
|
1157
1157
|
// for "a" so this is checking that
|
|
1158
1158
|
// it's a lowercase character
|
|
1159
1159
|
r.charCodeAt(0) > 96 ? dt : pt;
|
|
1160
|
-
},
|
|
1161
|
-
var
|
|
1160
|
+
}, Qe = function(r, t, n) {
|
|
1161
|
+
var a;
|
|
1162
1162
|
if (t) {
|
|
1163
|
-
var
|
|
1164
|
-
|
|
1165
|
-
return r.__emotion_forwardProp(
|
|
1166
|
-
} :
|
|
1163
|
+
var s = t.shouldForwardProp;
|
|
1164
|
+
a = r.__emotion_forwardProp && s ? function(u) {
|
|
1165
|
+
return r.__emotion_forwardProp(u) && s(u);
|
|
1166
|
+
} : s;
|
|
1167
1167
|
}
|
|
1168
|
-
return typeof
|
|
1168
|
+
return typeof a != "function" && n && (a = r.__emotion_forwardProp), a;
|
|
1169
1169
|
}, ht = function(r) {
|
|
1170
|
-
var t = r.cache,
|
|
1171
|
-
return
|
|
1172
|
-
return Qr(t,
|
|
1170
|
+
var t = r.cache, n = r.serialized, a = r.isStringTag;
|
|
1171
|
+
return ur(t, n, a), st(function() {
|
|
1172
|
+
return Qr(t, n, a);
|
|
1173
1173
|
}), null;
|
|
1174
|
-
},
|
|
1175
|
-
var
|
|
1176
|
-
t !== void 0 && (
|
|
1177
|
-
var
|
|
1174
|
+
}, gt = function e(r, t) {
|
|
1175
|
+
var n = r.__emotion_real === r, a = n && r.__emotion_base || r, s, u;
|
|
1176
|
+
t !== void 0 && (s = t.label, u = t.target);
|
|
1177
|
+
var f = Qe(r, t, n), x = f || Ze(a), m = !x("as");
|
|
1178
1178
|
return function() {
|
|
1179
|
-
var
|
|
1180
|
-
if (
|
|
1181
|
-
|
|
1179
|
+
var h = arguments, y = n && r.__emotion_styles !== void 0 ? r.__emotion_styles.slice(0) : [];
|
|
1180
|
+
if (s !== void 0 && y.push("label:" + s + ";"), h[0] == null || h[0].raw === void 0)
|
|
1181
|
+
y.push.apply(y, h);
|
|
1182
1182
|
else {
|
|
1183
|
-
var
|
|
1184
|
-
|
|
1185
|
-
for (var
|
|
1186
|
-
|
|
1183
|
+
var O = h[0];
|
|
1184
|
+
y.push(O[0]);
|
|
1185
|
+
for (var T = h.length, A = 1; A < T; A++)
|
|
1186
|
+
y.push(h[A], O[A]);
|
|
1187
1187
|
}
|
|
1188
|
-
var
|
|
1189
|
-
var
|
|
1190
|
-
if (
|
|
1188
|
+
var b = ct(function(v, w, R) {
|
|
1189
|
+
var $ = m && v.as || a, V = "", L = [], C = v;
|
|
1190
|
+
if (v.theme == null) {
|
|
1191
1191
|
C = {};
|
|
1192
|
-
for (var
|
|
1193
|
-
C[
|
|
1194
|
-
C.theme =
|
|
1192
|
+
for (var P in v)
|
|
1193
|
+
C[P] = v[P];
|
|
1194
|
+
C.theme = ae.useContext(lt);
|
|
1195
1195
|
}
|
|
1196
|
-
typeof
|
|
1197
|
-
var
|
|
1198
|
-
|
|
1199
|
-
var
|
|
1200
|
-
for (var G in
|
|
1201
|
-
|
|
1202
|
-
return
|
|
1203
|
-
cache:
|
|
1204
|
-
serialized:
|
|
1205
|
-
isStringTag: typeof
|
|
1206
|
-
}), /* @__PURE__ */
|
|
1196
|
+
typeof v.className == "string" ? V = Zr(w.registered, L, v.className) : v.className != null && (V = v.className + " ");
|
|
1197
|
+
var q = at(y.concat(L), w.registered, C);
|
|
1198
|
+
V += w.key + "-" + q.name, u !== void 0 && (V += " " + u);
|
|
1199
|
+
var Z = m && f === void 0 ? Ze($) : x, U = {};
|
|
1200
|
+
for (var G in v)
|
|
1201
|
+
m && G === "as" || Z(G) && (U[G] = v[G]);
|
|
1202
|
+
return U.className = V, R && (U.ref = R), /* @__PURE__ */ ae.createElement(ae.Fragment, null, /* @__PURE__ */ ae.createElement(ht, {
|
|
1203
|
+
cache: w,
|
|
1204
|
+
serialized: q,
|
|
1205
|
+
isStringTag: typeof $ == "string"
|
|
1206
|
+
}), /* @__PURE__ */ ae.createElement($, U));
|
|
1207
1207
|
});
|
|
1208
|
-
return
|
|
1208
|
+
return b.displayName = s !== void 0 ? s : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", b.defaultProps = r.defaultProps, b.__emotion_real = b, b.__emotion_base = a, b.__emotion_styles = y, b.__emotion_forwardProp = f, Object.defineProperty(b, "toString", {
|
|
1209
1209
|
value: function() {
|
|
1210
|
-
return "." +
|
|
1210
|
+
return "." + u;
|
|
1211
1211
|
}
|
|
1212
|
-
}),
|
|
1213
|
-
var
|
|
1214
|
-
shouldForwardProp:
|
|
1212
|
+
}), b.withComponent = function(v, w) {
|
|
1213
|
+
var R = e(v, je({}, t, w, {
|
|
1214
|
+
shouldForwardProp: Qe(b, w, !0)
|
|
1215
1215
|
}));
|
|
1216
|
-
return
|
|
1217
|
-
},
|
|
1216
|
+
return R.apply(void 0, y);
|
|
1217
|
+
}, b;
|
|
1218
1218
|
};
|
|
1219
|
-
},
|
|
1219
|
+
}, mt = [
|
|
1220
1220
|
"a",
|
|
1221
1221
|
"abbr",
|
|
1222
1222
|
"address",
|
|
@@ -1352,11 +1352,11 @@ var ct = function(r) {
|
|
|
1352
1352
|
"svg",
|
|
1353
1353
|
"text",
|
|
1354
1354
|
"tspan"
|
|
1355
|
-
],
|
|
1356
|
-
|
|
1357
|
-
|
|
1355
|
+
], ce = gt.bind(null);
|
|
1356
|
+
mt.forEach(function(e) {
|
|
1357
|
+
ce[e] = ce(e);
|
|
1358
1358
|
});
|
|
1359
|
-
const yt =
|
|
1359
|
+
const yt = ce.div`
|
|
1360
1360
|
display: flex;
|
|
1361
1361
|
align-items: center;
|
|
1362
1362
|
justify-content: center;
|
|
@@ -1397,11 +1397,11 @@ const yt = le.div`
|
|
|
1397
1397
|
return "";
|
|
1398
1398
|
}
|
|
1399
1399
|
}}
|
|
1400
|
-
`,
|
|
1401
|
-
|
|
1402
|
-
/* @__PURE__ */
|
|
1403
|
-
|
|
1404
|
-
] }),
|
|
1400
|
+
`, Ke = ({ type: e, children: r, className: t, icon: n, action: a }) => /* @__PURE__ */ N.jsxs(yt, { type: e, className: t, children: [
|
|
1401
|
+
n && /* @__PURE__ */ N.jsx("span", { children: n }),
|
|
1402
|
+
/* @__PURE__ */ N.jsx("span", { children: r }),
|
|
1403
|
+
a && /* @__PURE__ */ N.jsx("span", { children: a })
|
|
1404
|
+
] }), er = ce.div`
|
|
1405
1405
|
width: ${({ width: e }) => e || "100%"};
|
|
1406
1406
|
height: ${({ height: e }) => e || "100%"};
|
|
1407
1407
|
border-radius: 0px !important; /* Force remove rounded corners on container */
|
|
@@ -1413,7 +1413,7 @@ const yt = le.div`
|
|
|
1413
1413
|
|
|
1414
1414
|
/* Hide specific elements inside the player */
|
|
1415
1415
|
${({ $hiddenClasses: e }) => (e == null ? void 0 : e.length) && e.map((r) => `.${r} { display: none !important; }`).join("")}
|
|
1416
|
-
`, bt =
|
|
1416
|
+
`, bt = ce.div`
|
|
1417
1417
|
position: fixed;
|
|
1418
1418
|
top: 0;
|
|
1419
1419
|
left: 0;
|
|
@@ -1425,7 +1425,7 @@ const yt = le.div`
|
|
|
1425
1425
|
align-items: center;
|
|
1426
1426
|
z-index: 1000;
|
|
1427
1427
|
pointer-events: auto;
|
|
1428
|
-
`, vt =
|
|
1428
|
+
`, vt = ce.div`
|
|
1429
1429
|
position: relative;
|
|
1430
1430
|
height: 80vh;
|
|
1431
1431
|
width: auto;
|
|
@@ -1433,481 +1433,581 @@ const yt = le.div`
|
|
|
1433
1433
|
max-width: 90vw;
|
|
1434
1434
|
max-height: 90vh;
|
|
1435
1435
|
z-index: 1001;
|
|
1436
|
-
`,
|
|
1436
|
+
`, ie = "https://host.vpplayer.tech", xt = (e) => `${ie}/player/${e}/vpplayer.js`, jt = (e) => `${ie}/player/${e}.js`, wt = (e, r) => `${ie}/player/${e}/${r}.js`, Pt = (e) => `${ie}/vertical-player/${e}.js`, kt = (e, r) => `${ie}/vertical-player/${e}/${r}.js`, St = (e, r) => `${ie}/player/${e}/${r}.json`, Et = (e, r) => `${ie}/vertical-player/${e}/${r}.json`, Rt = (e, r) => e ? `vp-player-${e}` : r ? `vp-player-default-${r}` : "vp-player-default", _t = (e, r) => {
|
|
1437
1437
|
const t = new URL(e);
|
|
1438
1438
|
return t.searchParams.set("divId", r), t.toString();
|
|
1439
|
-
},
|
|
1440
|
-
const [t,
|
|
1441
|
-
return
|
|
1442
|
-
let
|
|
1439
|
+
}, xe = /* @__PURE__ */ new Map(), Tt = (e, r) => {
|
|
1440
|
+
const [t, n] = Ee(!1), [a, s] = Ee(null);
|
|
1441
|
+
return $e(() => {
|
|
1442
|
+
let u;
|
|
1443
1443
|
try {
|
|
1444
|
-
|
|
1445
|
-
} catch (
|
|
1446
|
-
const
|
|
1447
|
-
|
|
1444
|
+
u = r || xt(e || "latest");
|
|
1445
|
+
} catch (m) {
|
|
1446
|
+
const h = m instanceof Error ? m.message : String(m);
|
|
1447
|
+
s(`Failed to resolve script URL: ${h}`);
|
|
1448
1448
|
return;
|
|
1449
1449
|
}
|
|
1450
|
-
if (!
|
|
1450
|
+
if (!xe.has(u))
|
|
1451
1451
|
if (document.querySelector(
|
|
1452
|
-
`script[src="${
|
|
1452
|
+
`script[src="${u}"]`
|
|
1453
1453
|
))
|
|
1454
|
-
|
|
1454
|
+
xe.set(u, Promise.resolve());
|
|
1455
1455
|
else {
|
|
1456
|
-
const
|
|
1457
|
-
const
|
|
1458
|
-
|
|
1456
|
+
const h = new Promise((y, O) => {
|
|
1457
|
+
const T = document.createElement("script");
|
|
1458
|
+
T.src = u, T.async = !0, T.onload = () => y(), T.onerror = () => O(new Error(`Failed to load script: ${u}`)), document.body.appendChild(T);
|
|
1459
1459
|
});
|
|
1460
|
-
|
|
1460
|
+
xe.set(u, h);
|
|
1461
1461
|
}
|
|
1462
|
-
let
|
|
1463
|
-
const
|
|
1464
|
-
return
|
|
1465
|
-
|
|
1466
|
-
}).catch((
|
|
1467
|
-
|
|
1462
|
+
let f = !0;
|
|
1463
|
+
const x = xe.get(u);
|
|
1464
|
+
return x && x.then(() => {
|
|
1465
|
+
f && (n(!0), s(null));
|
|
1466
|
+
}).catch((m) => {
|
|
1467
|
+
f && (n(!1), s(m instanceof Error ? m.message : String(m)));
|
|
1468
1468
|
}), () => {
|
|
1469
|
-
|
|
1469
|
+
f = !1;
|
|
1470
1470
|
};
|
|
1471
|
-
}, [e, r]), { isLoaded: t, error:
|
|
1471
|
+
}, [e, r]), { isLoaded: t, error: a };
|
|
1472
1472
|
};
|
|
1473
|
-
function
|
|
1474
|
-
|
|
1475
|
-
if (!n)
|
|
1476
|
-
throw new Error("Manual playlist must have at least one video");
|
|
1477
|
-
const o = n.file || n.hlsUrl;
|
|
1478
|
-
if (!o)
|
|
1479
|
-
throw new Error(
|
|
1480
|
-
"Each video in manual playlist must have a 'file' or 'hlsUrl' property"
|
|
1481
|
-
);
|
|
1482
|
-
const s = e.videos.map((d) => ({
|
|
1483
|
-
videoId: d.videoId || "",
|
|
1484
|
-
title: d.title || "",
|
|
1485
|
-
file: d.file || d.hlsUrl || "",
|
|
1486
|
-
thumbnailUrl: d.thumbnailUrl || d.thumbnail || "",
|
|
1487
|
-
duration: d.duration || 0
|
|
1488
|
-
}));
|
|
1489
|
-
return {
|
|
1490
|
-
projectId: r || "",
|
|
1491
|
-
video: {
|
|
1492
|
-
videoId: n.videoId || "",
|
|
1493
|
-
file: o,
|
|
1494
|
-
// REQUIRED for VP Vertical Player SDK!
|
|
1495
|
-
title: n.title || "",
|
|
1496
|
-
thumbnail: n.thumbnailUrl || n.thumbnail || "",
|
|
1497
|
-
playlist: {
|
|
1498
|
-
state: !0,
|
|
1499
|
-
playlistId: "",
|
|
1500
|
-
// Empty string for manual playlist mode
|
|
1501
|
-
playlistVideoIndex: a,
|
|
1502
|
-
videos: s
|
|
1503
|
-
}
|
|
1504
|
-
},
|
|
1505
|
-
config: {
|
|
1506
|
-
autoplay: !0,
|
|
1507
|
-
muted: !0,
|
|
1508
|
-
// For vertical player, use responsive sizing
|
|
1509
|
-
...t && {
|
|
1510
|
-
size: {
|
|
1511
|
-
sizeType: "RESPONSIVE",
|
|
1512
|
-
aspectRatio: "9:16"
|
|
1513
|
-
}
|
|
1514
|
-
}
|
|
1515
|
-
}
|
|
1516
|
-
};
|
|
1473
|
+
function we(e) {
|
|
1474
|
+
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
1517
1475
|
}
|
|
1518
|
-
|
|
1476
|
+
function pr(e, r) {
|
|
1477
|
+
if (!we(e) || !we(r))
|
|
1478
|
+
return r;
|
|
1479
|
+
const t = { ...e };
|
|
1480
|
+
for (const n of Object.keys(r)) {
|
|
1481
|
+
const a = r[n], s = t[n];
|
|
1482
|
+
we(a) && we(s) ? t[n] = pr(s, a) : a !== void 0 && (t[n] = a);
|
|
1483
|
+
}
|
|
1484
|
+
return t;
|
|
1485
|
+
}
|
|
1486
|
+
async function At(e, r, t) {
|
|
1487
|
+
if (!e)
|
|
1488
|
+
return console.warn(
|
|
1489
|
+
"VP Player: No scriptId provided, cannot fetch config. Using user config directly."
|
|
1490
|
+
), null;
|
|
1491
|
+
r || console.warn(
|
|
1492
|
+
"VP Player: No videoId provided, attempting to fetch config with scriptId only..."
|
|
1493
|
+
);
|
|
1494
|
+
const n = t ? Et(e, r || "") : St(e, r || "");
|
|
1495
|
+
try {
|
|
1496
|
+
console.log("VP Player: Attempting to fetch config from", n);
|
|
1497
|
+
const a = await fetch(n);
|
|
1498
|
+
if (!a.ok)
|
|
1499
|
+
return console.warn(
|
|
1500
|
+
`VP Player: Failed to fetch config from ${n} (${a.status}). Using user config directly.`
|
|
1501
|
+
), null;
|
|
1502
|
+
const s = await a.json();
|
|
1503
|
+
return console.log("VP Player: Successfully fetched config from", n), s;
|
|
1504
|
+
} catch (a) {
|
|
1505
|
+
return console.warn(
|
|
1506
|
+
`VP Player: Error fetching config from ${n}:`,
|
|
1507
|
+
a,
|
|
1508
|
+
"Using user config directly."
|
|
1509
|
+
), null;
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
const Ot = ({
|
|
1519
1513
|
scriptId: e,
|
|
1520
1514
|
videoId: r,
|
|
1521
1515
|
scriptUrl: t,
|
|
1522
|
-
projectId:
|
|
1523
|
-
|
|
1524
|
-
playerId:
|
|
1525
|
-
isVertical:
|
|
1526
|
-
isReels:
|
|
1527
|
-
onReady:
|
|
1528
|
-
onPlay:
|
|
1529
|
-
onPause:
|
|
1530
|
-
onResume:
|
|
1531
|
-
onComplete:
|
|
1532
|
-
onError:
|
|
1533
|
-
onVideoStarted:
|
|
1534
|
-
onTimeUpdate:
|
|
1535
|
-
onQuartile25:
|
|
1536
|
-
onQuartile50:
|
|
1537
|
-
onQuartile75:
|
|
1538
|
-
onNext:
|
|
1539
|
-
onPrevious:
|
|
1540
|
-
onProgress10s:
|
|
1516
|
+
projectId: n,
|
|
1517
|
+
config: a,
|
|
1518
|
+
playerId: s,
|
|
1519
|
+
isVertical: u = !1,
|
|
1520
|
+
isReels: f = !1,
|
|
1521
|
+
onReady: x,
|
|
1522
|
+
onPlay: m,
|
|
1523
|
+
onPause: h,
|
|
1524
|
+
onResume: y,
|
|
1525
|
+
onComplete: O,
|
|
1526
|
+
onError: T,
|
|
1527
|
+
onVideoStarted: A,
|
|
1528
|
+
onTimeUpdate: b,
|
|
1529
|
+
onQuartile25: v,
|
|
1530
|
+
onQuartile50: w,
|
|
1531
|
+
onQuartile75: R,
|
|
1532
|
+
onNext: $,
|
|
1533
|
+
onPrevious: V,
|
|
1534
|
+
onProgress10s: L,
|
|
1541
1535
|
onProgress20s: C
|
|
1542
1536
|
}) => {
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
onProgress10s: F,
|
|
1537
|
+
const P = ye(null), q = ye(null), [Z, U] = Ee(null), G = mr().replace(/:/g, ""), z = Oe(
|
|
1538
|
+
() => Rt(s || `auto-${G}`, r),
|
|
1539
|
+
[s, G, r]
|
|
1540
|
+
), g = ye({
|
|
1541
|
+
onReady: x,
|
|
1542
|
+
onPlay: m,
|
|
1543
|
+
onPause: h,
|
|
1544
|
+
onResume: y,
|
|
1545
|
+
onComplete: O,
|
|
1546
|
+
onError: T,
|
|
1547
|
+
onVideoStarted: A,
|
|
1548
|
+
onTimeUpdate: b,
|
|
1549
|
+
onQuartile25: v,
|
|
1550
|
+
onQuartile50: w,
|
|
1551
|
+
onQuartile75: R,
|
|
1552
|
+
onNext: $,
|
|
1553
|
+
onPrevious: V,
|
|
1554
|
+
onProgress10s: L,
|
|
1562
1555
|
onProgress20s: C
|
|
1563
1556
|
});
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
onReady:
|
|
1567
|
-
onPlay:
|
|
1568
|
-
onPause:
|
|
1569
|
-
onResume:
|
|
1570
|
-
onComplete:
|
|
1571
|
-
onError:
|
|
1572
|
-
onVideoStarted:
|
|
1573
|
-
onTimeUpdate:
|
|
1574
|
-
onQuartile25:
|
|
1575
|
-
onQuartile50:
|
|
1576
|
-
onQuartile75:
|
|
1577
|
-
onNext:
|
|
1578
|
-
onPrevious:
|
|
1579
|
-
onProgress10s:
|
|
1557
|
+
$e(() => {
|
|
1558
|
+
g.current = {
|
|
1559
|
+
onReady: x,
|
|
1560
|
+
onPlay: m,
|
|
1561
|
+
onPause: h,
|
|
1562
|
+
onResume: y,
|
|
1563
|
+
onComplete: O,
|
|
1564
|
+
onError: T,
|
|
1565
|
+
onVideoStarted: A,
|
|
1566
|
+
onTimeUpdate: b,
|
|
1567
|
+
onQuartile25: v,
|
|
1568
|
+
onQuartile50: w,
|
|
1569
|
+
onQuartile75: R,
|
|
1570
|
+
onNext: $,
|
|
1571
|
+
onPrevious: V,
|
|
1572
|
+
onProgress10s: L,
|
|
1580
1573
|
onProgress20s: C
|
|
1581
1574
|
};
|
|
1582
1575
|
});
|
|
1583
|
-
const
|
|
1584
|
-
let
|
|
1576
|
+
const Q = ye(!1), B = !!a, H = Oe(() => u || f ? !0 : t ? t.includes("vertical-player") || t.includes("vpverticalplayer") : !1, [u, f, t]), te = Oe(() => {
|
|
1577
|
+
let W;
|
|
1585
1578
|
if (t)
|
|
1586
|
-
|
|
1587
|
-
else if (e && r && !
|
|
1588
|
-
|
|
1579
|
+
W = t;
|
|
1580
|
+
else if (e && r && !B)
|
|
1581
|
+
W = H ? kt(e, r) : wt(e, r);
|
|
1589
1582
|
else if (e)
|
|
1590
|
-
|
|
1583
|
+
W = H ? Pt(e) : `https://host.vpplayer.tech/player/${e}.js`;
|
|
1591
1584
|
else
|
|
1592
1585
|
return null;
|
|
1593
|
-
return
|
|
1586
|
+
return _t(W, z);
|
|
1594
1587
|
}, [
|
|
1595
1588
|
t,
|
|
1596
1589
|
e,
|
|
1597
1590
|
r,
|
|
1598
|
-
|
|
1591
|
+
H,
|
|
1599
1592
|
z,
|
|
1600
|
-
|
|
1601
|
-
]),
|
|
1602
|
-
if (!U || !n) return null;
|
|
1603
|
-
try {
|
|
1604
|
-
return St(n, a, D);
|
|
1605
|
-
} catch (c) {
|
|
1606
|
-
return console.error("Failed to build manual playlist config:", c), null;
|
|
1607
|
-
}
|
|
1608
|
-
}, [U, n, a, D]), { isLoaded: te, error: ae } = Et(
|
|
1593
|
+
B
|
|
1594
|
+
]), { isLoaded: X, error: ne } = Tt(
|
|
1609
1595
|
null,
|
|
1610
|
-
|
|
1611
|
-
Q || void 0
|
|
1596
|
+
te || void 0
|
|
1612
1597
|
);
|
|
1613
|
-
return
|
|
1614
|
-
if (!
|
|
1615
|
-
|
|
1616
|
-
"VPPlayer: Provide scriptUrl OR (scriptId + videoId) OR (scriptId +
|
|
1598
|
+
return $e(() => {
|
|
1599
|
+
if (!te) {
|
|
1600
|
+
U(
|
|
1601
|
+
"VPPlayer: Provide scriptUrl OR (scriptId + videoId) OR (scriptId + config) to initialize the player."
|
|
1617
1602
|
);
|
|
1618
1603
|
return;
|
|
1619
1604
|
}
|
|
1620
|
-
if (
|
|
1621
|
-
|
|
1622
|
-
return;
|
|
1623
|
-
}
|
|
1624
|
-
if (!te) return;
|
|
1625
|
-
if (U && !B) {
|
|
1626
|
-
L("VPPlayer: Failed to build manual playlist configuration.");
|
|
1605
|
+
if (ne) {
|
|
1606
|
+
U(ne);
|
|
1627
1607
|
return;
|
|
1628
1608
|
}
|
|
1629
|
-
|
|
1609
|
+
if (!X) return;
|
|
1610
|
+
let W = !0;
|
|
1630
1611
|
return (async () => {
|
|
1631
|
-
var
|
|
1612
|
+
var p;
|
|
1632
1613
|
try {
|
|
1633
|
-
const
|
|
1634
|
-
if (!
|
|
1635
|
-
|
|
1636
|
-
`VP Player: Script loaded but global function not found. Expected ${
|
|
1614
|
+
const i = H ? window.vpVerticalPlayer : window.vpPlayer;
|
|
1615
|
+
if (!i) {
|
|
1616
|
+
U(
|
|
1617
|
+
`VP Player: Script loaded but global function not found. Expected ${H ? "vpVerticalPlayer" : "vpPlayer"}.`
|
|
1637
1618
|
);
|
|
1638
1619
|
return;
|
|
1639
1620
|
}
|
|
1640
|
-
if (await new Promise((
|
|
1621
|
+
if (await new Promise((_) => setTimeout(_, 0)), !document.getElementById(z)) {
|
|
1641
1622
|
console.error(
|
|
1642
1623
|
`VP Player: Container element with ID '${z}' not found in DOM.`
|
|
1643
1624
|
);
|
|
1644
1625
|
return;
|
|
1645
1626
|
}
|
|
1646
|
-
const
|
|
1647
|
-
if (!
|
|
1648
|
-
|
|
1627
|
+
const k = i(z);
|
|
1628
|
+
if (!k) {
|
|
1629
|
+
U("VP Player: Failed to get player instance.");
|
|
1649
1630
|
return;
|
|
1650
1631
|
}
|
|
1651
|
-
if (
|
|
1652
|
-
if (
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1632
|
+
if (W) {
|
|
1633
|
+
if (q.current = k, U(null), Q.current = !1, B && a) {
|
|
1634
|
+
let _;
|
|
1635
|
+
const l = await At(
|
|
1636
|
+
e,
|
|
1637
|
+
r,
|
|
1638
|
+
H
|
|
1656
1639
|
);
|
|
1640
|
+
l ? (console.log(
|
|
1641
|
+
"VP Player: Fetched config (base):",
|
|
1642
|
+
JSON.parse(JSON.stringify(l))
|
|
1643
|
+
), console.log(
|
|
1644
|
+
"VP Player: User config (overrides):",
|
|
1645
|
+
JSON.parse(JSON.stringify(a))
|
|
1646
|
+
), _ = pr(l, a), console.log(
|
|
1647
|
+
"VP Player: Merged config (final):",
|
|
1648
|
+
JSON.parse(JSON.stringify(_))
|
|
1649
|
+
)) : (_ = a, console.log(
|
|
1650
|
+
"VP Player: Using user config directly (no fetch):",
|
|
1651
|
+
JSON.parse(JSON.stringify(_))
|
|
1652
|
+
)), n && !_.projectId && (_.projectId = n);
|
|
1657
1653
|
try {
|
|
1658
|
-
|
|
1659
|
-
} catch (
|
|
1660
|
-
const
|
|
1661
|
-
if (
|
|
1654
|
+
k.setup(_);
|
|
1655
|
+
} catch (d) {
|
|
1656
|
+
const F = d instanceof Error ? d.message : String(d);
|
|
1657
|
+
if (F.includes("already initialized")) {
|
|
1662
1658
|
console.warn(
|
|
1663
1659
|
"VP Player: Player already initialized, attempting to destroy and retry."
|
|
1664
1660
|
);
|
|
1665
1661
|
try {
|
|
1666
|
-
if ((
|
|
1667
|
-
const
|
|
1668
|
-
|
|
1662
|
+
if ((p = k.destroy) == null || p.call(k), await new Promise((M) => setTimeout(M, 50)), W && document.getElementById(z)) {
|
|
1663
|
+
const M = i(z);
|
|
1664
|
+
M && (M.setup(_), q.current = M);
|
|
1669
1665
|
}
|
|
1670
|
-
} catch (
|
|
1666
|
+
} catch (M) {
|
|
1671
1667
|
console.error(
|
|
1672
1668
|
"VP Player: Failed to recover from initialization error",
|
|
1673
|
-
|
|
1669
|
+
M
|
|
1674
1670
|
);
|
|
1675
1671
|
}
|
|
1676
1672
|
} else {
|
|
1677
|
-
console.error("VP Player: Setup error",
|
|
1673
|
+
console.error("VP Player: Setup error", d), U(`Player setup failed: ${F}`);
|
|
1678
1674
|
return;
|
|
1679
1675
|
}
|
|
1680
1676
|
}
|
|
1681
1677
|
}
|
|
1682
|
-
if (
|
|
1683
|
-
const
|
|
1684
|
-
|
|
1685
|
-
var
|
|
1686
|
-
(
|
|
1687
|
-
}),
|
|
1688
|
-
var
|
|
1689
|
-
(
|
|
1690
|
-
}),
|
|
1691
|
-
var
|
|
1692
|
-
(
|
|
1693
|
-
}),
|
|
1694
|
-
var
|
|
1695
|
-
(
|
|
1696
|
-
}),
|
|
1697
|
-
var
|
|
1698
|
-
(
|
|
1699
|
-
}),
|
|
1700
|
-
var
|
|
1701
|
-
(
|
|
1702
|
-
}),
|
|
1703
|
-
var
|
|
1704
|
-
(
|
|
1705
|
-
}),
|
|
1706
|
-
var
|
|
1707
|
-
(
|
|
1708
|
-
}),
|
|
1709
|
-
var
|
|
1710
|
-
(
|
|
1711
|
-
}),
|
|
1712
|
-
var
|
|
1713
|
-
const
|
|
1714
|
-
(
|
|
1715
|
-
}),
|
|
1716
|
-
var
|
|
1717
|
-
let
|
|
1718
|
-
typeof
|
|
1719
|
-
}),
|
|
1720
|
-
var
|
|
1721
|
-
(
|
|
1722
|
-
}),
|
|
1723
|
-
var
|
|
1724
|
-
const
|
|
1725
|
-
(
|
|
1678
|
+
if (k.on) {
|
|
1679
|
+
const _ = k.on.bind(k);
|
|
1680
|
+
_("ready", () => {
|
|
1681
|
+
var l, d;
|
|
1682
|
+
(d = (l = g.current).onReady) == null || d.call(l);
|
|
1683
|
+
}), _("play", () => {
|
|
1684
|
+
var l, d;
|
|
1685
|
+
(d = (l = g.current).onPlay) == null || d.call(l);
|
|
1686
|
+
}), _("pause", () => {
|
|
1687
|
+
var l, d;
|
|
1688
|
+
(d = (l = g.current).onPause) == null || d.call(l);
|
|
1689
|
+
}), _("resume", () => {
|
|
1690
|
+
var l, d;
|
|
1691
|
+
(d = (l = g.current).onResume) == null || d.call(l);
|
|
1692
|
+
}), _("complete", () => {
|
|
1693
|
+
var l, d;
|
|
1694
|
+
(d = (l = g.current).onComplete) == null || d.call(l), Q.current = !1;
|
|
1695
|
+
}), _("video-started", (l) => {
|
|
1696
|
+
var d, F;
|
|
1697
|
+
(F = (d = g.current).onVideoStarted) == null || F.call(d, l);
|
|
1698
|
+
}), _("firstQuartile", () => {
|
|
1699
|
+
var l, d;
|
|
1700
|
+
(d = (l = g.current).onQuartile25) == null || d.call(l);
|
|
1701
|
+
}), _("secondQuartile", () => {
|
|
1702
|
+
var l, d;
|
|
1703
|
+
(d = (l = g.current).onQuartile50) == null || d.call(l);
|
|
1704
|
+
}), _("thirdQuartile", () => {
|
|
1705
|
+
var l, d;
|
|
1706
|
+
(d = (l = g.current).onQuartile75) == null || d.call(l);
|
|
1707
|
+
}), _("video-state", () => {
|
|
1708
|
+
var d, F, M;
|
|
1709
|
+
const l = ((d = k.getPosition) == null ? void 0 : d.call(k)) ?? 0;
|
|
1710
|
+
(M = (F = g.current).onProgress10s) == null || M.call(F, Math.floor(l));
|
|
1711
|
+
}), _("time", (l) => {
|
|
1712
|
+
var F, M, Ie, Ue, ze;
|
|
1713
|
+
let d = 0;
|
|
1714
|
+
typeof l == "number" ? d = l : l && typeof l == "object" && "position" in l ? d = l.position : d = ((F = k.getPosition) == null ? void 0 : F.call(k)) ?? 0, (Ie = (M = g.current).onTimeUpdate) == null || Ie.call(M, d), !Q.current && d >= 20 && (Q.current = !0, (ze = (Ue = g.current).onProgress20s) == null || ze.call(Ue, Math.floor(d)));
|
|
1715
|
+
}), _("playlistItem", () => {
|
|
1716
|
+
var l, d;
|
|
1717
|
+
(d = (l = g.current).onNext) == null || d.call(l), Q.current = !1;
|
|
1718
|
+
}), _("error", (l) => {
|
|
1719
|
+
var F, M;
|
|
1720
|
+
const d = typeof l == "string" ? l : (l == null ? void 0 : l.message) || "Unknown error";
|
|
1721
|
+
(M = (F = g.current).onError) == null || M.call(F, d);
|
|
1726
1722
|
});
|
|
1727
1723
|
}
|
|
1728
1724
|
}
|
|
1729
|
-
} catch (
|
|
1730
|
-
if (
|
|
1731
|
-
const
|
|
1732
|
-
|
|
1725
|
+
} catch (i) {
|
|
1726
|
+
if (W) {
|
|
1727
|
+
const c = i instanceof Error ? i.message : String(i);
|
|
1728
|
+
U(c), console.error("VP Player initialization error:", i);
|
|
1733
1729
|
}
|
|
1734
1730
|
}
|
|
1735
1731
|
})(), () => {
|
|
1736
|
-
var
|
|
1737
|
-
if (
|
|
1732
|
+
var p;
|
|
1733
|
+
if (W = !1, (p = q.current) != null && p.destroy) {
|
|
1738
1734
|
try {
|
|
1739
|
-
|
|
1735
|
+
q.current.destroy();
|
|
1740
1736
|
} catch {
|
|
1741
1737
|
}
|
|
1742
|
-
|
|
1738
|
+
q.current = null;
|
|
1743
1739
|
}
|
|
1744
1740
|
};
|
|
1745
1741
|
}, [
|
|
1746
|
-
|
|
1742
|
+
X,
|
|
1747
1743
|
z,
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1744
|
+
ne,
|
|
1745
|
+
te,
|
|
1746
|
+
H,
|
|
1747
|
+
B,
|
|
1748
|
+
a,
|
|
1749
|
+
e,
|
|
1750
|
+
r,
|
|
1751
|
+
n
|
|
1753
1752
|
]), {
|
|
1754
|
-
playerRef:
|
|
1755
|
-
playerInstanceRef:
|
|
1756
|
-
isScriptLoaded:
|
|
1757
|
-
isLoading: !
|
|
1758
|
-
error:
|
|
1753
|
+
playerRef: P,
|
|
1754
|
+
playerInstanceRef: q,
|
|
1755
|
+
isScriptLoaded: X,
|
|
1756
|
+
isLoading: !X && !Z,
|
|
1757
|
+
error: Z,
|
|
1759
1758
|
generatedPlayerId: z
|
|
1760
1759
|
};
|
|
1761
|
-
},
|
|
1762
|
-
|
|
1763
|
-
videoId: r,
|
|
1764
|
-
scriptUrl: t,
|
|
1765
|
-
projectId: a,
|
|
1766
|
-
playlist: n,
|
|
1767
|
-
playerId: o,
|
|
1768
|
-
isVertical: s = !1,
|
|
1769
|
-
isReels: l = !1,
|
|
1770
|
-
thumbnailUrl: d,
|
|
1771
|
-
onClose: h,
|
|
1772
|
-
className: p,
|
|
1773
|
-
hiddenClasses: m = [],
|
|
1774
|
-
onReady: A,
|
|
1775
|
-
onPlay: S,
|
|
1776
|
-
onPause: R,
|
|
1777
|
-
onResume: g,
|
|
1778
|
-
onComplete: y,
|
|
1779
|
-
onError: b,
|
|
1780
|
-
onVideoStarted: P,
|
|
1781
|
-
onTimeUpdate: O,
|
|
1782
|
-
onQuartile25: M,
|
|
1783
|
-
onQuartile50: F,
|
|
1784
|
-
onQuartile75: C,
|
|
1785
|
-
onNext: x,
|
|
1786
|
-
onPrevious: Y,
|
|
1787
|
-
onProgress10s: J,
|
|
1788
|
-
onProgress20s: L
|
|
1789
|
-
}) => {
|
|
1790
|
-
const {
|
|
1791
|
-
playerRef: G,
|
|
1792
|
-
playerInstanceRef: z,
|
|
1793
|
-
isScriptLoaded: $,
|
|
1794
|
-
isLoading: Z,
|
|
1795
|
-
error: U,
|
|
1796
|
-
generatedPlayerId: D
|
|
1797
|
-
} = Rt({
|
|
1760
|
+
}, Ct = rr(
|
|
1761
|
+
({
|
|
1798
1762
|
scriptId: e,
|
|
1799
1763
|
videoId: r,
|
|
1800
1764
|
scriptUrl: t,
|
|
1801
|
-
projectId:
|
|
1802
|
-
|
|
1803
|
-
playerId:
|
|
1804
|
-
isVertical:
|
|
1805
|
-
isReels:
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1765
|
+
projectId: n,
|
|
1766
|
+
config: a,
|
|
1767
|
+
playerId: s,
|
|
1768
|
+
isVertical: u = !1,
|
|
1769
|
+
isReels: f = !1,
|
|
1770
|
+
thumbnailUrl: x,
|
|
1771
|
+
onClose: m,
|
|
1772
|
+
className: h,
|
|
1773
|
+
hiddenClasses: y = [],
|
|
1774
|
+
onReady: O,
|
|
1775
|
+
onPlay: T,
|
|
1776
|
+
onPause: A,
|
|
1777
|
+
onResume: b,
|
|
1778
|
+
onComplete: v,
|
|
1779
|
+
onError: w,
|
|
1780
|
+
onVideoStarted: R,
|
|
1781
|
+
onTimeUpdate: $,
|
|
1782
|
+
onQuartile25: V,
|
|
1783
|
+
onQuartile50: L,
|
|
1816
1784
|
onQuartile75: C,
|
|
1817
|
-
onNext:
|
|
1818
|
-
onPrevious:
|
|
1819
|
-
onProgress10s:
|
|
1820
|
-
onProgress20s:
|
|
1821
|
-
}
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1785
|
+
onNext: P,
|
|
1786
|
+
onPrevious: q,
|
|
1787
|
+
onProgress10s: Z,
|
|
1788
|
+
onProgress20s: U
|
|
1789
|
+
}, G) => {
|
|
1790
|
+
const {
|
|
1791
|
+
playerRef: z,
|
|
1792
|
+
playerInstanceRef: g,
|
|
1793
|
+
isScriptLoaded: Q,
|
|
1794
|
+
isLoading: B,
|
|
1795
|
+
error: H,
|
|
1796
|
+
generatedPlayerId: te
|
|
1797
|
+
} = Ot({
|
|
1798
|
+
scriptId: e,
|
|
1799
|
+
videoId: r,
|
|
1800
|
+
scriptUrl: t,
|
|
1801
|
+
projectId: n,
|
|
1802
|
+
config: a,
|
|
1803
|
+
playerId: s,
|
|
1804
|
+
isVertical: u,
|
|
1805
|
+
isReels: f,
|
|
1806
|
+
onReady: O,
|
|
1807
|
+
onPlay: T,
|
|
1808
|
+
onPause: A,
|
|
1809
|
+
onResume: b,
|
|
1810
|
+
onComplete: v,
|
|
1811
|
+
onError: w,
|
|
1812
|
+
onVideoStarted: R,
|
|
1813
|
+
onTimeUpdate: $,
|
|
1814
|
+
onQuartile25: V,
|
|
1815
|
+
onQuartile50: L,
|
|
1816
|
+
onQuartile75: C,
|
|
1817
|
+
onNext: P,
|
|
1818
|
+
onPrevious: q,
|
|
1819
|
+
onProgress10s: Z,
|
|
1820
|
+
onProgress20s: U
|
|
1821
|
+
});
|
|
1822
|
+
yr(
|
|
1823
|
+
G,
|
|
1824
|
+
() => ({
|
|
1825
|
+
play: () => {
|
|
1826
|
+
var i, c;
|
|
1827
|
+
return (c = (i = g.current) == null ? void 0 : i.play) == null ? void 0 : c.call(i);
|
|
1828
|
+
},
|
|
1829
|
+
pause: () => {
|
|
1830
|
+
var i, c;
|
|
1831
|
+
return (c = (i = g.current) == null ? void 0 : i.pause) == null ? void 0 : c.call(i);
|
|
1832
|
+
},
|
|
1833
|
+
seek: (i) => {
|
|
1834
|
+
var c, k;
|
|
1835
|
+
return (k = (c = g.current) == null ? void 0 : c.seek) == null ? void 0 : k.call(c, i);
|
|
1836
|
+
},
|
|
1837
|
+
forward: () => {
|
|
1838
|
+
var i, c;
|
|
1839
|
+
return (c = (i = g.current) == null ? void 0 : i.forward) == null ? void 0 : c.call(i);
|
|
1840
|
+
},
|
|
1841
|
+
rewind: () => {
|
|
1842
|
+
var i, c;
|
|
1843
|
+
return (c = (i = g.current) == null ? void 0 : i.rewind) == null ? void 0 : c.call(i);
|
|
1844
|
+
},
|
|
1845
|
+
replay: () => {
|
|
1846
|
+
var i, c;
|
|
1847
|
+
return (c = (i = g.current) == null ? void 0 : i.replay) == null ? void 0 : c.call(i);
|
|
1848
|
+
},
|
|
1849
|
+
mute: () => {
|
|
1850
|
+
var i, c;
|
|
1851
|
+
return (c = (i = g.current) == null ? void 0 : i.mute) == null ? void 0 : c.call(i);
|
|
1852
|
+
},
|
|
1853
|
+
unmute: () => {
|
|
1854
|
+
var i, c;
|
|
1855
|
+
return (c = (i = g.current) == null ? void 0 : i.unmute) == null ? void 0 : c.call(i);
|
|
1856
|
+
},
|
|
1857
|
+
togglePlay: () => {
|
|
1858
|
+
var i, c;
|
|
1859
|
+
return (c = (i = g.current) == null ? void 0 : i.togglePlay) == null ? void 0 : c.call(i);
|
|
1860
|
+
},
|
|
1861
|
+
toggleMute: () => {
|
|
1862
|
+
var i, c;
|
|
1863
|
+
return (c = (i = g.current) == null ? void 0 : i.toggleMute) == null ? void 0 : c.call(i);
|
|
1864
|
+
},
|
|
1865
|
+
enterFullScreen: () => {
|
|
1866
|
+
var i, c, k;
|
|
1867
|
+
return (k = ((i = g.current) == null ? void 0 : i.enterFullScreen) ?? ((c = g.current) == null ? void 0 : c.enterFullscreen)) == null ? void 0 : k();
|
|
1868
|
+
},
|
|
1869
|
+
exitFullScreen: () => {
|
|
1870
|
+
var i, c, k;
|
|
1871
|
+
return (k = ((i = g.current) == null ? void 0 : i.exitFullScreen) ?? ((c = g.current) == null ? void 0 : c.exitFullscreen)) == null ? void 0 : k();
|
|
1872
|
+
},
|
|
1873
|
+
getPosition: () => {
|
|
1874
|
+
var i, c;
|
|
1875
|
+
return ((c = (i = g.current) == null ? void 0 : i.getPosition) == null ? void 0 : c.call(i)) ?? null;
|
|
1876
|
+
},
|
|
1877
|
+
getDuration: () => {
|
|
1878
|
+
var i, c;
|
|
1879
|
+
return ((c = (i = g.current) == null ? void 0 : i.getDuration) == null ? void 0 : c.call(i)) ?? null;
|
|
1880
|
+
},
|
|
1881
|
+
getVolume: () => {
|
|
1882
|
+
var i, c;
|
|
1883
|
+
return ((c = (i = g.current) == null ? void 0 : i.getVolume) == null ? void 0 : c.call(i)) ?? null;
|
|
1884
|
+
},
|
|
1885
|
+
setVolume: (i) => {
|
|
1886
|
+
var c, k;
|
|
1887
|
+
return (k = (c = g.current) == null ? void 0 : c.setVolume) == null ? void 0 : k.call(c, i);
|
|
1888
|
+
},
|
|
1889
|
+
isMuted: () => {
|
|
1890
|
+
var i, c;
|
|
1891
|
+
return ((c = (i = g.current) == null ? void 0 : i.isMuted) == null ? void 0 : c.call(i)) ?? !1;
|
|
1892
|
+
},
|
|
1893
|
+
isPlaying: () => {
|
|
1894
|
+
var i, c;
|
|
1895
|
+
return ((c = (i = g.current) == null ? void 0 : i.isPlaying) == null ? void 0 : c.call(i)) ?? !1;
|
|
1896
|
+
},
|
|
1897
|
+
isPaused: () => {
|
|
1898
|
+
var i, c;
|
|
1899
|
+
return ((c = (i = g.current) == null ? void 0 : i.isPaused) == null ? void 0 : c.call(i)) ?? !1;
|
|
1900
|
+
},
|
|
1901
|
+
isFullscreen: () => {
|
|
1902
|
+
var i, c;
|
|
1903
|
+
return ((c = (i = g.current) == null ? void 0 : i.isFullscreen) == null ? void 0 : c.call(i)) ?? !1;
|
|
1904
|
+
}
|
|
1905
|
+
}),
|
|
1906
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1907
|
+
[]
|
|
1908
|
+
);
|
|
1909
|
+
const [X, ne] = Ee(!0), W = () => f && ne(!0), o = () => {
|
|
1910
|
+
var i, c;
|
|
1911
|
+
!f || !X || (ne(!1), (c = (i = g.current) == null ? void 0 : i.pause) == null || c.call(i), m == null || m());
|
|
1912
|
+
};
|
|
1913
|
+
if (H)
|
|
1914
|
+
return /* @__PURE__ */ N.jsxs(Ke, { type: "error", children: [
|
|
1915
|
+
"An error occurred: ",
|
|
1916
|
+
H
|
|
1917
|
+
] });
|
|
1918
|
+
const p = () => /* @__PURE__ */ N.jsx(
|
|
1850
1919
|
"div",
|
|
1851
1920
|
{
|
|
1852
|
-
onClick: te,
|
|
1853
1921
|
style: {
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1922
|
+
position: "absolute",
|
|
1923
|
+
top: 0,
|
|
1924
|
+
left: 0,
|
|
1925
|
+
right: 0,
|
|
1926
|
+
bottom: 0,
|
|
1927
|
+
display: "flex",
|
|
1928
|
+
alignItems: "center",
|
|
1929
|
+
justifyContent: "center",
|
|
1930
|
+
background: "rgba(0,0,0,0.8)",
|
|
1931
|
+
zIndex: 10
|
|
1932
|
+
},
|
|
1933
|
+
children: /* @__PURE__ */ N.jsx(Ke, { type: "loading", children: "Loading..." })
|
|
1861
1934
|
}
|
|
1862
|
-
)
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1935
|
+
);
|
|
1936
|
+
return f ? /* @__PURE__ */ N.jsxs(N.Fragment, { children: [
|
|
1937
|
+
!X && /* @__PURE__ */ N.jsx(
|
|
1938
|
+
"div",
|
|
1939
|
+
{
|
|
1940
|
+
onClick: W,
|
|
1941
|
+
style: {
|
|
1942
|
+
cursor: "pointer",
|
|
1943
|
+
width: "100%",
|
|
1944
|
+
height: "100%",
|
|
1945
|
+
backgroundImage: x ? `url(${x})` : void 0,
|
|
1946
|
+
backgroundSize: "cover",
|
|
1947
|
+
backgroundPosition: "center"
|
|
1948
|
+
}
|
|
1949
|
+
}
|
|
1950
|
+
),
|
|
1951
|
+
X && /* @__PURE__ */ N.jsx(bt, { onClick: o, className: h, children: /* @__PURE__ */ N.jsx(
|
|
1952
|
+
vt,
|
|
1953
|
+
{
|
|
1954
|
+
className: h,
|
|
1955
|
+
onClick: (i) => i.stopPropagation(),
|
|
1956
|
+
children: /* @__PURE__ */ N.jsxs(
|
|
1957
|
+
"div",
|
|
1871
1958
|
{
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1959
|
+
style: {
|
|
1960
|
+
position: "relative",
|
|
1961
|
+
width: "100%",
|
|
1962
|
+
height: "100%"
|
|
1963
|
+
},
|
|
1964
|
+
children: [
|
|
1965
|
+
/* @__PURE__ */ N.jsx(
|
|
1966
|
+
er,
|
|
1967
|
+
{
|
|
1968
|
+
id: te,
|
|
1969
|
+
ref: z,
|
|
1970
|
+
width: "100%",
|
|
1971
|
+
height: "100%",
|
|
1972
|
+
$hiddenClasses: y,
|
|
1973
|
+
className: h
|
|
1974
|
+
}
|
|
1975
|
+
),
|
|
1976
|
+
(B || !Q) && /* @__PURE__ */ N.jsx(p, {})
|
|
1977
|
+
]
|
|
1878
1978
|
}
|
|
1879
|
-
)
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
}
|
|
1895
|
-
)
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1979
|
+
)
|
|
1980
|
+
}
|
|
1981
|
+
) })
|
|
1982
|
+
] }) : /* @__PURE__ */ N.jsxs("div", { style: { position: "relative", width: "100%", height: "100%" }, children: [
|
|
1983
|
+
/* @__PURE__ */ N.jsx(
|
|
1984
|
+
er,
|
|
1985
|
+
{
|
|
1986
|
+
id: te,
|
|
1987
|
+
ref: z,
|
|
1988
|
+
width: "100%",
|
|
1989
|
+
height: "100%",
|
|
1990
|
+
$hiddenClasses: y,
|
|
1991
|
+
className: h
|
|
1992
|
+
}
|
|
1993
|
+
),
|
|
1994
|
+
(B || !Q) && /* @__PURE__ */ N.jsx(p, {})
|
|
1995
|
+
] });
|
|
1996
|
+
}
|
|
1997
|
+
);
|
|
1998
|
+
Ct.displayName = "VPPlayer";
|
|
1899
1999
|
export {
|
|
1900
2000
|
bt as Overlay,
|
|
1901
|
-
|
|
2001
|
+
er as PlayerContainer,
|
|
1902
2002
|
vt as PlayerWrapper,
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
2003
|
+
Ct as VPPlayer,
|
|
2004
|
+
ie as VP_PLAYER_BASE_URL,
|
|
2005
|
+
_t as appendDivIdToUrl,
|
|
2006
|
+
Rt as generatePlayerId,
|
|
1907
2007
|
wt as getFullyManagedPlayerScriptUrl,
|
|
1908
|
-
|
|
2008
|
+
jt as getManagedPlayerScriptUrl,
|
|
1909
2009
|
xt as getPlayerScriptUrl,
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
2010
|
+
Pt as getVerticalPlayerScriptUrl,
|
|
2011
|
+
Ot as useVPPlayerLogic,
|
|
2012
|
+
Tt as useVPPlayerScript
|
|
1913
2013
|
};
|