@devix-technologies/react-gjirafa-vp-player 1.0.31-beta.6 → 1.0.31-beta.9
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/README.md +33 -18
- package/dist/index.d.ts +7 -10
- package/dist/react-gjirafa-vp-player.es.js +825 -827
- 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 rr, useContext as gr, useState as
|
|
3
|
-
var
|
|
1
|
+
import * as oe from "react";
|
|
2
|
+
import hr, { forwardRef as rr, useContext as gr, useState as Te, useEffect as Fe, useRef as xe, useId as mr, useMemo as je, useImperativeHandle as yr } from "react";
|
|
3
|
+
var we = { exports: {} }, pe = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-jsx-runtime.production.js
|
|
@@ -10,29 +10,29 @@ var be = { exports: {} }, ue = {};
|
|
|
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
|
|
14
|
-
function
|
|
15
|
-
if (
|
|
16
|
-
|
|
13
|
+
var Ue;
|
|
14
|
+
function vr() {
|
|
15
|
+
if (Ue) return pe;
|
|
16
|
+
Ue = 1;
|
|
17
17
|
var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
|
|
18
|
-
function t(
|
|
19
|
-
var
|
|
20
|
-
if (s !== void 0 && (
|
|
18
|
+
function t(a, o, s) {
|
|
19
|
+
var f = null;
|
|
20
|
+
if (s !== void 0 && (f = "" + s), o.key !== void 0 && (f = "" + o.key), "key" in o) {
|
|
21
21
|
s = {};
|
|
22
|
-
for (var
|
|
23
|
-
|
|
24
|
-
} else s =
|
|
25
|
-
return
|
|
22
|
+
for (var p in o)
|
|
23
|
+
p !== "key" && (s[p] = o[p]);
|
|
24
|
+
} else s = o;
|
|
25
|
+
return o = s.ref, {
|
|
26
26
|
$$typeof: e,
|
|
27
|
-
type:
|
|
28
|
-
key:
|
|
29
|
-
ref:
|
|
27
|
+
type: a,
|
|
28
|
+
key: f,
|
|
29
|
+
ref: o !== void 0 ? o : null,
|
|
30
30
|
props: s
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
return
|
|
33
|
+
return pe.Fragment = r, pe.jsx = t, pe.jsxs = t, pe;
|
|
34
34
|
}
|
|
35
|
-
var
|
|
35
|
+
var he = {};
|
|
36
36
|
/**
|
|
37
37
|
* @license React
|
|
38
38
|
* react-jsx-runtime.development.js
|
|
@@ -43,249 +43,249 @@ var fe = {};
|
|
|
43
43
|
* LICENSE file in the root directory of this source tree.
|
|
44
44
|
*/
|
|
45
45
|
var We;
|
|
46
|
-
function
|
|
46
|
+
function br() {
|
|
47
47
|
return We || (We = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
48
|
-
function e(
|
|
49
|
-
if (
|
|
50
|
-
if (typeof
|
|
51
|
-
return
|
|
52
|
-
if (typeof
|
|
53
|
-
switch (
|
|
54
|
-
case
|
|
48
|
+
function e(i) {
|
|
49
|
+
if (i == null) return null;
|
|
50
|
+
if (typeof i == "function")
|
|
51
|
+
return i.$$typeof === N ? null : i.displayName || i.name || null;
|
|
52
|
+
if (typeof i == "string") return i;
|
|
53
|
+
switch (i) {
|
|
54
|
+
case w:
|
|
55
55
|
return "Fragment";
|
|
56
|
-
case
|
|
56
|
+
case _:
|
|
57
57
|
return "Profiler";
|
|
58
|
-
case
|
|
58
|
+
case k:
|
|
59
59
|
return "StrictMode";
|
|
60
|
-
case
|
|
60
|
+
case M:
|
|
61
61
|
return "Suspense";
|
|
62
|
-
case
|
|
62
|
+
case x:
|
|
63
63
|
return "SuspenseList";
|
|
64
|
-
case
|
|
64
|
+
case B:
|
|
65
65
|
return "Activity";
|
|
66
66
|
}
|
|
67
|
-
if (typeof
|
|
68
|
-
switch (typeof
|
|
67
|
+
if (typeof i == "object")
|
|
68
|
+
switch (typeof i.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
|
+
), i.$$typeof) {
|
|
71
|
+
case v:
|
|
72
72
|
return "Portal";
|
|
73
73
|
case V:
|
|
74
|
-
return
|
|
75
|
-
case
|
|
76
|
-
return (
|
|
77
|
-
case
|
|
78
|
-
var
|
|
79
|
-
return
|
|
80
|
-
case
|
|
81
|
-
return
|
|
82
|
-
case
|
|
83
|
-
|
|
74
|
+
return i.displayName || "Context";
|
|
75
|
+
case j:
|
|
76
|
+
return (i._context.displayName || "Context") + ".Consumer";
|
|
77
|
+
case I:
|
|
78
|
+
var n = i.render;
|
|
79
|
+
return i = i.displayName, i || (i = n.displayName || n.name || "", i = i !== "" ? "ForwardRef(" + i + ")" : "ForwardRef"), i;
|
|
80
|
+
case ee:
|
|
81
|
+
return n = i.displayName || null, n !== null ? n : e(i.type) || "Memo";
|
|
82
|
+
case W:
|
|
83
|
+
n = i._payload, i = i._init;
|
|
84
84
|
try {
|
|
85
|
-
return e(
|
|
85
|
+
return e(i(n));
|
|
86
86
|
} catch {
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
return null;
|
|
90
90
|
}
|
|
91
|
-
function r(
|
|
92
|
-
return "" +
|
|
91
|
+
function r(i) {
|
|
92
|
+
return "" + i;
|
|
93
93
|
}
|
|
94
|
-
function t(
|
|
94
|
+
function t(i) {
|
|
95
95
|
try {
|
|
96
|
-
r(
|
|
97
|
-
var
|
|
96
|
+
r(i);
|
|
97
|
+
var n = !1;
|
|
98
98
|
} catch {
|
|
99
|
-
|
|
99
|
+
n = !0;
|
|
100
100
|
}
|
|
101
|
-
if (
|
|
102
|
-
|
|
103
|
-
var
|
|
104
|
-
return
|
|
105
|
-
|
|
101
|
+
if (n) {
|
|
102
|
+
n = console;
|
|
103
|
+
var c = n.error, d = typeof Symbol == "function" && Symbol.toStringTag && i[Symbol.toStringTag] || i.constructor.name || "Object";
|
|
104
|
+
return c.call(
|
|
105
|
+
n,
|
|
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
|
+
d
|
|
108
|
+
), r(i);
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
if (
|
|
113
|
-
if (typeof
|
|
111
|
+
function a(i) {
|
|
112
|
+
if (i === w) return "<>";
|
|
113
|
+
if (typeof i == "object" && i !== null && i.$$typeof === W)
|
|
114
114
|
return "<...>";
|
|
115
115
|
try {
|
|
116
|
-
var
|
|
117
|
-
return
|
|
116
|
+
var n = e(i);
|
|
117
|
+
return n ? "<" + n + ">" : "<...>";
|
|
118
118
|
} catch {
|
|
119
119
|
return "<...>";
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
var
|
|
124
|
-
return
|
|
122
|
+
function o() {
|
|
123
|
+
var i = h.A;
|
|
124
|
+
return i === null ? null : i.getOwner();
|
|
125
125
|
}
|
|
126
126
|
function s() {
|
|
127
127
|
return Error("react-stack-top-frame");
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
if (
|
|
131
|
-
var
|
|
132
|
-
if (
|
|
129
|
+
function f(i) {
|
|
130
|
+
if (Y.call(i, "key")) {
|
|
131
|
+
var n = Object.getOwnPropertyDescriptor(i, "key").get;
|
|
132
|
+
if (n && n.isReactWarning) return !1;
|
|
133
133
|
}
|
|
134
|
-
return
|
|
134
|
+
return i.key !== void 0;
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
function
|
|
138
|
-
|
|
136
|
+
function p(i, n) {
|
|
137
|
+
function c() {
|
|
138
|
+
te || (te = !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
|
+
n
|
|
141
141
|
));
|
|
142
142
|
}
|
|
143
|
-
|
|
144
|
-
get:
|
|
143
|
+
c.isReactWarning = !0, Object.defineProperty(i, "key", {
|
|
144
|
+
get: c,
|
|
145
145
|
configurable: !0
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
|
-
function
|
|
149
|
-
var
|
|
150
|
-
return
|
|
148
|
+
function P() {
|
|
149
|
+
var i = e(this.type);
|
|
150
|
+
return X[i] || (X[i] = !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
|
+
)), i = this.props.ref, i !== void 0 ? i : null;
|
|
153
153
|
}
|
|
154
|
-
function m(
|
|
155
|
-
var l =
|
|
156
|
-
return
|
|
154
|
+
function m(i, n, c, d, S, $) {
|
|
155
|
+
var l = c.ref;
|
|
156
|
+
return i = {
|
|
157
157
|
$$typeof: A,
|
|
158
|
-
type:
|
|
159
|
-
key:
|
|
160
|
-
props:
|
|
161
|
-
_owner:
|
|
162
|
-
}, (l !== void 0 ? l : null) !== null ? Object.defineProperty(
|
|
158
|
+
type: i,
|
|
159
|
+
key: n,
|
|
160
|
+
props: c,
|
|
161
|
+
_owner: d
|
|
162
|
+
}, (l !== void 0 ? l : null) !== null ? Object.defineProperty(i, "ref", {
|
|
163
163
|
enumerable: !1,
|
|
164
|
-
get:
|
|
165
|
-
}) : Object.defineProperty(
|
|
164
|
+
get: P
|
|
165
|
+
}) : Object.defineProperty(i, "ref", { enumerable: !1, value: null }), i._store = {}, Object.defineProperty(i._store, "validated", {
|
|
166
166
|
configurable: !1,
|
|
167
167
|
enumerable: !1,
|
|
168
168
|
writable: !0,
|
|
169
169
|
value: 0
|
|
170
|
-
}), Object.defineProperty(
|
|
170
|
+
}), Object.defineProperty(i, "_debugInfo", {
|
|
171
171
|
configurable: !1,
|
|
172
172
|
enumerable: !1,
|
|
173
173
|
writable: !0,
|
|
174
174
|
value: null
|
|
175
|
-
}), Object.defineProperty(
|
|
175
|
+
}), Object.defineProperty(i, "_debugStack", {
|
|
176
176
|
configurable: !1,
|
|
177
177
|
enumerable: !1,
|
|
178
178
|
writable: !0,
|
|
179
|
-
value:
|
|
180
|
-
}), Object.defineProperty(
|
|
179
|
+
value: S
|
|
180
|
+
}), Object.defineProperty(i, "_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(i.props), Object.freeze(i)), i;
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
var l =
|
|
187
|
+
function g(i, n, c, d, S, $) {
|
|
188
|
+
var l = n.children;
|
|
189
189
|
if (l !== void 0)
|
|
190
|
-
if (
|
|
191
|
-
if (
|
|
192
|
-
for (
|
|
193
|
-
y(l[
|
|
190
|
+
if (d)
|
|
191
|
+
if (re(l)) {
|
|
192
|
+
for (d = 0; d < l.length; d++)
|
|
193
|
+
y(l[d]);
|
|
194
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
199
|
else y(l);
|
|
200
|
-
if (
|
|
201
|
-
l = e(
|
|
202
|
-
var
|
|
203
|
-
return
|
|
200
|
+
if (Y.call(n, "key")) {
|
|
201
|
+
l = e(i);
|
|
202
|
+
var u = Object.keys(n).filter(function(C) {
|
|
203
|
+
return C !== "key";
|
|
204
204
|
});
|
|
205
|
-
|
|
205
|
+
d = 0 < u.length ? "{key: someKey, " + u.join(": ..., ") + ": ...}" : "{key: someKey}", de[l + d] || (u = 0 < u.length ? "{" + u.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
|
-
c,
|
|
213
|
-
l,
|
|
214
212
|
d,
|
|
213
|
+
l,
|
|
214
|
+
u,
|
|
215
215
|
l
|
|
216
|
-
),
|
|
216
|
+
), de[l + d] = !0);
|
|
217
217
|
}
|
|
218
|
-
if (l = null,
|
|
219
|
-
|
|
220
|
-
for (var
|
|
221
|
-
|
|
222
|
-
} else
|
|
223
|
-
return l &&
|
|
224
|
-
|
|
225
|
-
typeof
|
|
218
|
+
if (l = null, c !== void 0 && (t(c), l = "" + c), f(n) && (t(n.key), l = "" + n.key), "key" in n) {
|
|
219
|
+
c = {};
|
|
220
|
+
for (var b in n)
|
|
221
|
+
b !== "key" && (c[b] = n[b]);
|
|
222
|
+
} else c = n;
|
|
223
|
+
return l && p(
|
|
224
|
+
c,
|
|
225
|
+
typeof i == "function" ? i.displayName || i.name || "Unknown" : i
|
|
226
226
|
), m(
|
|
227
|
-
o,
|
|
228
|
-
l,
|
|
229
227
|
i,
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
228
|
+
l,
|
|
229
|
+
c,
|
|
230
|
+
o(),
|
|
231
|
+
S,
|
|
232
|
+
$
|
|
233
233
|
);
|
|
234
234
|
}
|
|
235
|
-
function y(
|
|
236
|
-
O(
|
|
235
|
+
function y(i) {
|
|
236
|
+
O(i) ? i._store && (i._store.validated = 1) : typeof i == "object" && i !== null && i.$$typeof === W && (i._payload.status === "fulfilled" ? O(i._payload.value) && i._payload.value._store && (i._payload.value._store.validated = 1) : i._store && (i._store.validated = 1));
|
|
237
237
|
}
|
|
238
|
-
function O(
|
|
239
|
-
return typeof
|
|
238
|
+
function O(i) {
|
|
239
|
+
return typeof i == "object" && i !== null && i.$$typeof === A;
|
|
240
240
|
}
|
|
241
|
-
var T = hr, A = Symbol.for("react.transitional.element"),
|
|
241
|
+
var T = hr, A = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), w = Symbol.for("react.fragment"), k = Symbol.for("react.strict_mode"), _ = Symbol.for("react.profiler"), j = Symbol.for("react.consumer"), V = Symbol.for("react.context"), I = Symbol.for("react.forward_ref"), M = Symbol.for("react.suspense"), x = Symbol.for("react.suspense_list"), ee = Symbol.for("react.memo"), W = Symbol.for("react.lazy"), B = Symbol.for("react.activity"), N = Symbol.for("react.client.reference"), h = T.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, Y = Object.prototype.hasOwnProperty, re = Array.isArray, z = console.createTask ? console.createTask : function() {
|
|
242
242
|
return null;
|
|
243
243
|
};
|
|
244
244
|
T = {
|
|
245
|
-
react_stack_bottom_frame: function(
|
|
246
|
-
return
|
|
245
|
+
react_stack_bottom_frame: function(i) {
|
|
246
|
+
return i();
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
|
-
var
|
|
249
|
+
var te, X = {}, ne = T.react_stack_bottom_frame.bind(
|
|
250
250
|
T,
|
|
251
251
|
s
|
|
252
|
-
)(),
|
|
253
|
-
|
|
254
|
-
var
|
|
255
|
-
return
|
|
256
|
-
o,
|
|
257
|
-
p,
|
|
252
|
+
)(), q = z(a(s)), de = {};
|
|
253
|
+
he.Fragment = w, he.jsx = function(i, n, c) {
|
|
254
|
+
var d = 1e4 > h.recentlyCreatedOwnerStacks++;
|
|
255
|
+
return g(
|
|
258
256
|
i,
|
|
257
|
+
n,
|
|
258
|
+
c,
|
|
259
259
|
!1,
|
|
260
|
-
|
|
261
|
-
|
|
260
|
+
d ? Error("react-stack-top-frame") : ne,
|
|
261
|
+
d ? z(a(i)) : q
|
|
262
262
|
);
|
|
263
|
-
},
|
|
264
|
-
var
|
|
265
|
-
return
|
|
266
|
-
o,
|
|
267
|
-
p,
|
|
263
|
+
}, he.jsxs = function(i, n, c) {
|
|
264
|
+
var d = 1e4 > h.recentlyCreatedOwnerStacks++;
|
|
265
|
+
return g(
|
|
268
266
|
i,
|
|
267
|
+
n,
|
|
268
|
+
c,
|
|
269
269
|
!0,
|
|
270
|
-
|
|
271
|
-
|
|
270
|
+
d ? Error("react-stack-top-frame") : ne,
|
|
271
|
+
d ? z(a(i)) : q
|
|
272
272
|
);
|
|
273
273
|
};
|
|
274
|
-
})()),
|
|
274
|
+
})()), he;
|
|
275
275
|
}
|
|
276
276
|
var Ye;
|
|
277
277
|
function xr() {
|
|
278
|
-
return Ye || (Ye = 1, process.env.NODE_ENV === "production" ?
|
|
278
|
+
return Ye || (Ye = 1, process.env.NODE_ENV === "production" ? we.exports = vr() : we.exports = br()), we.exports;
|
|
279
279
|
}
|
|
280
|
-
var
|
|
281
|
-
function
|
|
282
|
-
return
|
|
280
|
+
var L = xr();
|
|
281
|
+
function Ne() {
|
|
282
|
+
return Ne = 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 a in t) ({}).hasOwnProperty.call(t, a) && (e[a] = t[a]);
|
|
286
286
|
}
|
|
287
287
|
return e;
|
|
288
|
-
},
|
|
288
|
+
}, Ne.apply(null, arguments);
|
|
289
289
|
}
|
|
290
290
|
function wr(e) {
|
|
291
291
|
if (e.sheet)
|
|
@@ -300,36 +300,36 @@ function Pr(e) {
|
|
|
300
300
|
}
|
|
301
301
|
var kr = /* @__PURE__ */ (function() {
|
|
302
302
|
function e(t) {
|
|
303
|
-
var
|
|
304
|
-
this._insertTag = function(
|
|
303
|
+
var a = this;
|
|
304
|
+
this._insertTag = function(o) {
|
|
305
305
|
var s;
|
|
306
|
-
|
|
306
|
+
a.tags.length === 0 ? a.insertionPoint ? s = a.insertionPoint.nextSibling : a.prepend ? s = a.container.firstChild : s = a.before : s = a.tags[a.tags.length - 1].nextSibling, a.container.insertBefore(o, s), a.tags.push(o);
|
|
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(
|
|
310
|
+
return r.hydrate = function(a) {
|
|
311
|
+
a.forEach(this._insertTag);
|
|
312
|
+
}, r.insert = function(a) {
|
|
313
313
|
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Pr(this));
|
|
314
|
-
var
|
|
314
|
+
var o = this.tags[this.tags.length - 1];
|
|
315
315
|
if (this.isSpeedy) {
|
|
316
|
-
var s = wr(
|
|
316
|
+
var s = wr(o);
|
|
317
317
|
try {
|
|
318
|
-
s.insertRule(
|
|
318
|
+
s.insertRule(a, s.cssRules.length);
|
|
319
319
|
} catch {
|
|
320
320
|
}
|
|
321
321
|
} else
|
|
322
|
-
|
|
322
|
+
o.appendChild(document.createTextNode(a));
|
|
323
323
|
this.ctr++;
|
|
324
324
|
}, r.flush = function() {
|
|
325
|
-
this.tags.forEach(function(
|
|
326
|
-
var
|
|
327
|
-
return (
|
|
325
|
+
this.tags.forEach(function(a) {
|
|
326
|
+
var o;
|
|
327
|
+
return (o = a.parentNode) == null ? void 0 : o.removeChild(a);
|
|
328
328
|
}), this.tags = [], this.ctr = 0;
|
|
329
329
|
}, e;
|
|
330
|
-
})(),
|
|
330
|
+
})(), U = "-ms-", Ae = "-moz-", E = "-webkit-", tr = "comm", Ie = "rule", ze = "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 D(e, 0) ^ 45 ? (((r << 2 ^ D(e, 0)) << 2 ^ D(e, 1)) << 2 ^ D(e, 2)) << 2 ^ D(e, 3) : 0;
|
|
333
333
|
}
|
|
334
334
|
function ar(e) {
|
|
335
335
|
return e.trim();
|
|
@@ -337,56 +337,56 @@ function ar(e) {
|
|
|
337
337
|
function Ar(e, r) {
|
|
338
338
|
return (e = r.exec(e)) ? e[0] : e;
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function R(e, r, t) {
|
|
341
341
|
return e.replace(r, t);
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function Le(e, r) {
|
|
344
344
|
return e.indexOf(r);
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function D(e, r) {
|
|
347
347
|
return e.charCodeAt(r) | 0;
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function me(e, r, t) {
|
|
350
350
|
return e.slice(r, t);
|
|
351
351
|
}
|
|
352
|
-
function
|
|
352
|
+
function Z(e) {
|
|
353
353
|
return e.length;
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function De(e) {
|
|
356
356
|
return e.length;
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function Pe(e, r) {
|
|
359
359
|
return r.push(e), e;
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function $r(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 Ce = 1, le = 1, or = 0, H = 0, F = 0, fe = "";
|
|
365
|
+
function Oe(e, r, t, a, o, s, f) {
|
|
366
|
+
return { value: e, root: r, parent: t, type: a, props: o, children: s, line: Ce, column: le, length: f, return: "" };
|
|
367
367
|
}
|
|
368
|
-
function
|
|
369
|
-
return _r(
|
|
368
|
+
function ge(e, r) {
|
|
369
|
+
return _r(Oe("", null, null, "", null, null, 0), e, { length: -e.length }, r);
|
|
370
370
|
}
|
|
371
371
|
function Cr() {
|
|
372
|
-
return
|
|
372
|
+
return F;
|
|
373
373
|
}
|
|
374
|
-
function
|
|
375
|
-
return
|
|
374
|
+
function Or() {
|
|
375
|
+
return F = H > 0 ? D(fe, --H) : 0, le--, F === 10 && (le = 1, Ce--), F;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
378
|
-
return
|
|
377
|
+
function G() {
|
|
378
|
+
return F = H < or ? D(fe, H++) : 0, le++, F === 10 && (le = 1, Ce++), F;
|
|
379
379
|
}
|
|
380
|
-
function
|
|
381
|
-
return
|
|
380
|
+
function K() {
|
|
381
|
+
return D(fe, H);
|
|
382
382
|
}
|
|
383
|
-
function
|
|
384
|
-
return
|
|
383
|
+
function Ee() {
|
|
384
|
+
return H;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
return
|
|
386
|
+
function be(e, r) {
|
|
387
|
+
return me(fe, e, r);
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function ye(e) {
|
|
390
390
|
switch (e) {
|
|
391
391
|
// \0 \t \n \r \s whitespace token
|
|
392
392
|
case 0:
|
|
@@ -424,209 +424,209 @@ function he(e) {
|
|
|
424
424
|
}
|
|
425
425
|
return 0;
|
|
426
426
|
}
|
|
427
|
-
function
|
|
428
|
-
return
|
|
427
|
+
function ir(e) {
|
|
428
|
+
return Ce = le = 1, or = Z(fe = e), H = 0, [];
|
|
429
429
|
}
|
|
430
430
|
function sr(e) {
|
|
431
|
-
return
|
|
431
|
+
return fe = "", e;
|
|
432
432
|
}
|
|
433
|
-
function
|
|
434
|
-
return ar(
|
|
433
|
+
function Re(e) {
|
|
434
|
+
return ar(be(H - 1, Ve(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
435
435
|
}
|
|
436
436
|
function jr(e) {
|
|
437
|
-
for (; (
|
|
438
|
-
|
|
439
|
-
return
|
|
437
|
+
for (; (F = K()) && F < 33; )
|
|
438
|
+
G();
|
|
439
|
+
return ye(e) > 2 || ye(F) > 3 ? "" : " ";
|
|
440
440
|
}
|
|
441
|
-
function
|
|
442
|
-
for (; --r &&
|
|
441
|
+
function Mr(e, r) {
|
|
442
|
+
for (; --r && G() && !(F < 48 || F > 102 || F > 57 && F < 65 || F > 70 && F < 97); )
|
|
443
443
|
;
|
|
444
|
-
return
|
|
444
|
+
return be(e, Ee() + (r < 6 && K() == 32 && G() == 32));
|
|
445
445
|
}
|
|
446
|
-
function
|
|
447
|
-
for (;
|
|
448
|
-
switch (
|
|
446
|
+
function Ve(e) {
|
|
447
|
+
for (; G(); )
|
|
448
|
+
switch (F) {
|
|
449
449
|
// ] ) " '
|
|
450
450
|
case e:
|
|
451
|
-
return
|
|
451
|
+
return H;
|
|
452
452
|
// " '
|
|
453
453
|
case 34:
|
|
454
454
|
case 39:
|
|
455
|
-
e !== 34 && e !== 39 &&
|
|
455
|
+
e !== 34 && e !== 39 && Ve(F);
|
|
456
456
|
break;
|
|
457
457
|
// (
|
|
458
458
|
case 40:
|
|
459
|
-
e === 41 &&
|
|
459
|
+
e === 41 && Ve(e);
|
|
460
460
|
break;
|
|
461
461
|
// \
|
|
462
462
|
case 92:
|
|
463
|
-
|
|
463
|
+
G();
|
|
464
464
|
break;
|
|
465
465
|
}
|
|
466
|
-
return
|
|
466
|
+
return H;
|
|
467
467
|
}
|
|
468
|
-
function
|
|
469
|
-
for (;
|
|
470
|
-
if (e +
|
|
468
|
+
function Fr(e, r) {
|
|
469
|
+
for (; G() && e + F !== 57; )
|
|
470
|
+
if (e + F === 84 && K() === 47)
|
|
471
471
|
break;
|
|
472
|
-
return "/*" +
|
|
472
|
+
return "/*" + be(r, H - 1) + "*" + $e(e === 47 ? e : G());
|
|
473
473
|
}
|
|
474
474
|
function Nr(e) {
|
|
475
|
-
for (; !
|
|
476
|
-
|
|
477
|
-
return
|
|
475
|
+
for (; !ye(K()); )
|
|
476
|
+
G();
|
|
477
|
+
return be(e, H);
|
|
478
478
|
}
|
|
479
|
-
function
|
|
480
|
-
return sr(
|
|
479
|
+
function Lr(e) {
|
|
480
|
+
return sr(_e("", null, null, null, [""], e = ir(e), 0, [0], e));
|
|
481
481
|
}
|
|
482
|
-
function
|
|
483
|
-
for (var m = 0,
|
|
484
|
-
switch (A =
|
|
482
|
+
function _e(e, r, t, a, o, s, f, p, P) {
|
|
483
|
+
for (var m = 0, g = 0, y = f, O = 0, T = 0, A = 0, v = 1, w = 1, k = 1, _ = 0, j = "", V = o, I = s, M = a, x = j; w; )
|
|
484
|
+
switch (A = _, _ = G()) {
|
|
485
485
|
// (
|
|
486
486
|
case 40:
|
|
487
|
-
if (A != 108 &&
|
|
488
|
-
|
|
487
|
+
if (A != 108 && D(x, y - 1) == 58) {
|
|
488
|
+
Le(x += R(Re(_), "&", "&\f"), "&\f") != -1 && (k = -1);
|
|
489
489
|
break;
|
|
490
490
|
}
|
|
491
491
|
// " ' [
|
|
492
492
|
case 34:
|
|
493
493
|
case 39:
|
|
494
494
|
case 91:
|
|
495
|
-
|
|
495
|
+
x += Re(_);
|
|
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
|
+
x += jr(A);
|
|
503
503
|
break;
|
|
504
504
|
// \
|
|
505
505
|
case 92:
|
|
506
|
-
|
|
506
|
+
x += Mr(Ee() - 1, 7);
|
|
507
507
|
continue;
|
|
508
508
|
// /
|
|
509
509
|
case 47:
|
|
510
|
-
switch (
|
|
510
|
+
switch (K()) {
|
|
511
511
|
case 42:
|
|
512
512
|
case 47:
|
|
513
|
-
|
|
513
|
+
Pe(Vr(Fr(G(), Ee()), r, t), P);
|
|
514
514
|
break;
|
|
515
515
|
default:
|
|
516
|
-
|
|
516
|
+
x += "/";
|
|
517
517
|
}
|
|
518
518
|
break;
|
|
519
519
|
// {
|
|
520
|
-
case 123 *
|
|
521
|
-
|
|
520
|
+
case 123 * v:
|
|
521
|
+
p[m++] = Z(x) * k;
|
|
522
522
|
// } ; \0
|
|
523
|
-
case 125 *
|
|
523
|
+
case 125 * v:
|
|
524
524
|
case 59:
|
|
525
525
|
case 0:
|
|
526
|
-
switch (
|
|
526
|
+
switch (_) {
|
|
527
527
|
// \0 }
|
|
528
528
|
case 0:
|
|
529
529
|
case 125:
|
|
530
|
-
|
|
530
|
+
w = 0;
|
|
531
531
|
// ;
|
|
532
|
-
case 59 +
|
|
533
|
-
|
|
532
|
+
case 59 + g:
|
|
533
|
+
k == -1 && (x = R(x, /\f/g, "")), T > 0 && Z(x) - y && Pe(T > 32 ? He(x + ";", a, t, y - 1) : He(R(x, " ", "") + ";", a, t, y - 2), P);
|
|
534
534
|
break;
|
|
535
535
|
// @ ;
|
|
536
536
|
case 59:
|
|
537
|
-
|
|
537
|
+
x += ";";
|
|
538
538
|
// { rule/at-rule
|
|
539
539
|
default:
|
|
540
|
-
if (
|
|
541
|
-
if (
|
|
542
|
-
|
|
540
|
+
if (Pe(M = qe(x, r, t, m, g, o, p, j, V = [], I = [], y), s), _ === 123)
|
|
541
|
+
if (g === 0)
|
|
542
|
+
_e(x, r, M, M, V, s, y, p, I);
|
|
543
543
|
else
|
|
544
|
-
switch (O === 99 &&
|
|
544
|
+
switch (O === 99 && D(x, 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
|
-
|
|
550
|
+
_e(e, M, M, a && Pe(qe(e, M, M, 0, 0, o, p, j, o, V = [], y), I), o, I, y, p, a ? V : I);
|
|
551
551
|
break;
|
|
552
552
|
default:
|
|
553
|
-
|
|
553
|
+
_e(x, M, M, M, [""], I, 0, p, I);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
|
-
m =
|
|
556
|
+
m = g = T = 0, v = k = 1, j = x = "", y = f;
|
|
557
557
|
break;
|
|
558
558
|
// :
|
|
559
559
|
case 58:
|
|
560
|
-
y = 1 +
|
|
560
|
+
y = 1 + Z(x), T = A;
|
|
561
561
|
default:
|
|
562
|
-
if (
|
|
563
|
-
if (
|
|
564
|
-
--
|
|
565
|
-
else if (
|
|
562
|
+
if (v < 1) {
|
|
563
|
+
if (_ == 123)
|
|
564
|
+
--v;
|
|
565
|
+
else if (_ == 125 && v++ == 0 && Or() == 125)
|
|
566
566
|
continue;
|
|
567
567
|
}
|
|
568
|
-
switch (
|
|
568
|
+
switch (x += $e(_), _ * v) {
|
|
569
569
|
// &
|
|
570
570
|
case 38:
|
|
571
|
-
|
|
571
|
+
k = g > 0 ? 1 : (x += "\f", -1);
|
|
572
572
|
break;
|
|
573
573
|
// ,
|
|
574
574
|
case 44:
|
|
575
|
-
|
|
575
|
+
p[m++] = (Z(x) - 1) * k, k = 1;
|
|
576
576
|
break;
|
|
577
577
|
// @
|
|
578
578
|
case 64:
|
|
579
|
-
|
|
579
|
+
K() === 45 && (x += Re(G())), O = K(), g = y = Z(j = x += Nr(Ee())), _++;
|
|
580
580
|
break;
|
|
581
581
|
// -
|
|
582
582
|
case 45:
|
|
583
|
-
A === 45 &&
|
|
583
|
+
A === 45 && Z(x) == 2 && (v = 0);
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
586
|
return s;
|
|
587
587
|
}
|
|
588
|
-
function qe(e, r, t,
|
|
589
|
-
for (var y =
|
|
590
|
-
for (var
|
|
591
|
-
(
|
|
592
|
-
return
|
|
588
|
+
function qe(e, r, t, a, o, s, f, p, P, m, g) {
|
|
589
|
+
for (var y = o - 1, O = o === 0 ? s : [""], T = De(O), A = 0, v = 0, w = 0; A < a; ++A)
|
|
590
|
+
for (var k = 0, _ = me(e, y + 1, y = Rr(v = f[A])), j = e; k < T; ++k)
|
|
591
|
+
(j = ar(v > 0 ? O[k] + " " + _ : R(_, /&\f/g, O[k]))) && (P[w++] = j);
|
|
592
|
+
return Oe(e, r, t, o === 0 ? Ie : p, P, m, g);
|
|
593
593
|
}
|
|
594
|
-
function
|
|
595
|
-
return
|
|
594
|
+
function Vr(e, r, t) {
|
|
595
|
+
return Oe(e, r, t, tr, $e(Cr()), me(e, 2, -2), 0);
|
|
596
596
|
}
|
|
597
|
-
function He(e, r, t,
|
|
598
|
-
return
|
|
597
|
+
function He(e, r, t, a) {
|
|
598
|
+
return Oe(e, r, t, ze, me(e, 0, a), me(e, a + 1, -1), a);
|
|
599
599
|
}
|
|
600
|
-
function
|
|
601
|
-
for (var t = "",
|
|
602
|
-
t += r(e[
|
|
600
|
+
function ce(e, r) {
|
|
601
|
+
for (var t = "", a = De(e), o = 0; o < a; o++)
|
|
602
|
+
t += r(e[o], o, e, r) || "";
|
|
603
603
|
return t;
|
|
604
604
|
}
|
|
605
|
-
function Ir(e, r, t,
|
|
605
|
+
function Ir(e, r, t, a) {
|
|
606
606
|
switch (e.type) {
|
|
607
607
|
case Er:
|
|
608
608
|
if (e.children.length) break;
|
|
609
609
|
case Sr:
|
|
610
|
-
case
|
|
610
|
+
case ze:
|
|
611
611
|
return e.return = e.return || e.value;
|
|
612
612
|
case tr:
|
|
613
613
|
return "";
|
|
614
614
|
case nr:
|
|
615
|
-
return e.return = e.value + "{" +
|
|
616
|
-
case
|
|
615
|
+
return e.return = e.value + "{" + ce(e.children, a) + "}";
|
|
616
|
+
case Ie:
|
|
617
617
|
e.value = e.props.join(",");
|
|
618
618
|
}
|
|
619
|
-
return
|
|
619
|
+
return Z(t = ce(e.children, a)) ? e.return = e.value + "{" + t + "}" : "";
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
var r =
|
|
623
|
-
return function(t,
|
|
624
|
-
for (var
|
|
625
|
-
|
|
626
|
-
return
|
|
621
|
+
function zr(e) {
|
|
622
|
+
var r = De(e);
|
|
623
|
+
return function(t, a, o, s) {
|
|
624
|
+
for (var f = "", p = 0; p < r; p++)
|
|
625
|
+
f += e[p](t, a, o, s) || "";
|
|
626
|
+
return f;
|
|
627
627
|
};
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function Dr(e) {
|
|
630
630
|
return function(r) {
|
|
631
631
|
r.root || (r = r.return) && e(r);
|
|
632
632
|
};
|
|
@@ -637,44 +637,44 @@ function cr(e) {
|
|
|
637
637
|
return r[t] === void 0 && (r[t] = e(t)), r[t];
|
|
638
638
|
};
|
|
639
639
|
}
|
|
640
|
-
var
|
|
641
|
-
for (var
|
|
642
|
-
|
|
643
|
-
return
|
|
640
|
+
var Ur = function(r, t, a) {
|
|
641
|
+
for (var o = 0, s = 0; o = s, s = K(), o === 38 && s === 12 && (t[a] = 1), !ye(s); )
|
|
642
|
+
G();
|
|
643
|
+
return be(r, H);
|
|
644
644
|
}, Wr = function(r, t) {
|
|
645
|
-
var
|
|
645
|
+
var a = -1, o = 44;
|
|
646
646
|
do
|
|
647
|
-
switch (
|
|
647
|
+
switch (ye(o)) {
|
|
648
648
|
case 0:
|
|
649
|
-
|
|
649
|
+
o === 38 && K() === 12 && (t[a] = 1), r[a] += Ur(H - 1, t, a);
|
|
650
650
|
break;
|
|
651
651
|
case 2:
|
|
652
|
-
r[
|
|
652
|
+
r[a] += Re(o);
|
|
653
653
|
break;
|
|
654
654
|
case 4:
|
|
655
|
-
if (
|
|
656
|
-
r[++
|
|
655
|
+
if (o === 44) {
|
|
656
|
+
r[++a] = K() === 58 ? "&\f" : "", t[a] = r[a].length;
|
|
657
657
|
break;
|
|
658
658
|
}
|
|
659
659
|
// fallthrough
|
|
660
660
|
default:
|
|
661
|
-
r[
|
|
661
|
+
r[a] += $e(o);
|
|
662
662
|
}
|
|
663
|
-
while (
|
|
663
|
+
while (o = G());
|
|
664
664
|
return r;
|
|
665
665
|
}, Yr = function(r, t) {
|
|
666
|
-
return sr(Wr(
|
|
667
|
-
},
|
|
666
|
+
return sr(Wr(ir(r), t));
|
|
667
|
+
}, Ge = /* @__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 s = [],
|
|
676
|
-
for (var
|
|
677
|
-
r.props[m] = s[
|
|
671
|
+
for (var t = r.value, a = r.parent, o = r.column === a.column && r.line === a.line; a.type !== "rule"; )
|
|
672
|
+
if (a = a.parent, !a) return;
|
|
673
|
+
if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !Ge.get(a)) && !o) {
|
|
674
|
+
Ge.set(r, !0);
|
|
675
|
+
for (var s = [], f = Yr(t, s), p = a.props, P = 0, m = 0; P < f.length; P++)
|
|
676
|
+
for (var g = 0; g < p.length; g++, m++)
|
|
677
|
+
r.props[m] = s[P] ? f[P].replace(/&\f/g, p[g]) : p[g] + " " + f[P];
|
|
678
678
|
}
|
|
679
679
|
}
|
|
680
680
|
}, Hr = function(r) {
|
|
@@ -689,7 +689,7 @@ function lr(e, r) {
|
|
|
689
689
|
switch (Tr(e, r)) {
|
|
690
690
|
// color-adjust
|
|
691
691
|
case 5103:
|
|
692
|
-
return
|
|
692
|
+
return E + "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 lr(e, r) {
|
|
|
719
719
|
case 5365:
|
|
720
720
|
case 5621:
|
|
721
721
|
case 3829:
|
|
722
|
-
return
|
|
722
|
+
return E + 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 E + e + Ae + e + U + e + e;
|
|
730
730
|
// flex, flex-direction
|
|
731
731
|
case 6828:
|
|
732
732
|
case 4268:
|
|
733
|
-
return
|
|
733
|
+
return E + e + U + e + e;
|
|
734
734
|
// order
|
|
735
735
|
case 6165:
|
|
736
|
-
return
|
|
736
|
+
return E + e + U + "flex-" + e + e;
|
|
737
737
|
// align-items
|
|
738
738
|
case 5187:
|
|
739
|
-
return
|
|
739
|
+
return E + e + R(e, /(\w+).+(:[^]+)/, E + "box-$1$2" + U + "flex-$1$2") + e;
|
|
740
740
|
// align-self
|
|
741
741
|
case 5443:
|
|
742
|
-
return
|
|
742
|
+
return E + e + U + "flex-item-" + R(e, /flex-|-self/, "") + e;
|
|
743
743
|
// align-content
|
|
744
744
|
case 4675:
|
|
745
|
-
return
|
|
745
|
+
return E + e + U + "flex-line-pack" + R(e, /align-content|flex-|-self/, "") + e;
|
|
746
746
|
// flex-shrink
|
|
747
747
|
case 5548:
|
|
748
|
-
return
|
|
748
|
+
return E + e + U + R(e, "shrink", "negative") + e;
|
|
749
749
|
// flex-basis
|
|
750
750
|
case 5292:
|
|
751
|
-
return
|
|
751
|
+
return E + e + U + R(e, "basis", "preferred-size") + e;
|
|
752
752
|
// flex-grow
|
|
753
753
|
case 6060:
|
|
754
|
-
return
|
|
754
|
+
return E + "box-" + R(e, "-grow", "") + E + e + U + R(e, "grow", "positive") + e;
|
|
755
755
|
// transition
|
|
756
756
|
case 4554:
|
|
757
|
-
return
|
|
757
|
+
return E + R(e, /([^-])(transform)/g, "$1" + E + "$2") + e;
|
|
758
758
|
// cursor
|
|
759
759
|
case 6187:
|
|
760
|
-
return
|
|
760
|
+
return R(R(R(e, /(zoom-|grab)/, E + "$1"), /(image-set)/, E + "$1"), e, "") + e;
|
|
761
761
|
// background, background-image
|
|
762
762
|
case 5495:
|
|
763
763
|
case 3959:
|
|
764
|
-
return
|
|
764
|
+
return R(e, /(image-set\([^]*)/, E + "$1$`$1");
|
|
765
765
|
// justify-content
|
|
766
766
|
case 4968:
|
|
767
|
-
return
|
|
767
|
+
return R(R(e, /(.+:)(flex-)?(.*)/, E + "box-pack:$3" + U + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + E + 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 R(e, /(.+)-inline(.+)/, E + "$1$2") + e;
|
|
774
774
|
// (min|max)?(width|height|inline-size|block-size)
|
|
775
775
|
case 8116:
|
|
776
776
|
case 7059:
|
|
@@ -784,116 +784,116 @@ function lr(e, r) {
|
|
|
784
784
|
case 5789:
|
|
785
785
|
case 5021:
|
|
786
786
|
case 4765:
|
|
787
|
-
if (
|
|
787
|
+
if (Z(e) - 1 - r > 6) switch (D(e, r + 1)) {
|
|
788
788
|
// (m)ax-content, (m)in-content
|
|
789
789
|
case 109:
|
|
790
|
-
if (
|
|
790
|
+
if (D(e, r + 4) !== 45) break;
|
|
791
791
|
// (f)ill-available, (f)it-content
|
|
792
792
|
case 102:
|
|
793
|
-
return
|
|
793
|
+
return R(e, /(.+:)(.+)-([^]+)/, "$1" + E + "$2-$3$1" + Ae + (D(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
794
794
|
// (s)tretch
|
|
795
795
|
case 115:
|
|
796
|
-
return ~
|
|
796
|
+
return ~Le(e, "stretch") ? lr(R(e, "stretch", "fill-available"), r) + e : e;
|
|
797
797
|
}
|
|
798
798
|
break;
|
|
799
799
|
// position: sticky
|
|
800
800
|
case 4949:
|
|
801
|
-
if (
|
|
801
|
+
if (D(e, r + 1) !== 115) break;
|
|
802
802
|
// display: (flex|inline-flex)
|
|
803
803
|
case 6444:
|
|
804
|
-
switch (
|
|
804
|
+
switch (D(e, Z(e) - 3 - (~Le(e, "!important") && 10))) {
|
|
805
805
|
// stic(k)y
|
|
806
806
|
case 107:
|
|
807
|
-
return
|
|
807
|
+
return R(e, ":", ":" + E) + e;
|
|
808
808
|
// (inline-)?fl(e)x
|
|
809
809
|
case 101:
|
|
810
|
-
return
|
|
810
|
+
return R(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + E + (D(e, 14) === 45 ? "inline-" : "") + "box$3$1" + E + "$2$3$1" + U + "$2box$3") + e;
|
|
811
811
|
}
|
|
812
812
|
break;
|
|
813
813
|
// writing-mode
|
|
814
814
|
case 5936:
|
|
815
|
-
switch (
|
|
815
|
+
switch (D(e, r + 11)) {
|
|
816
816
|
// vertical-l(r)
|
|
817
817
|
case 114:
|
|
818
|
-
return
|
|
818
|
+
return E + e + U + R(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
819
819
|
// vertical-r(l)
|
|
820
820
|
case 108:
|
|
821
|
-
return
|
|
821
|
+
return E + e + U + R(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
822
822
|
// horizontal(-)tb
|
|
823
823
|
case 45:
|
|
824
|
-
return
|
|
824
|
+
return E + e + U + R(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
825
825
|
}
|
|
826
|
-
return
|
|
826
|
+
return E + e + U + e + e;
|
|
827
827
|
}
|
|
828
828
|
return e;
|
|
829
829
|
}
|
|
830
|
-
var
|
|
830
|
+
var Gr = function(r, t, a, o) {
|
|
831
831
|
if (r.length > -1 && !r.return) switch (r.type) {
|
|
832
|
-
case
|
|
832
|
+
case ze:
|
|
833
833
|
r.return = lr(r.value, r.length);
|
|
834
834
|
break;
|
|
835
835
|
case nr:
|
|
836
|
-
return
|
|
837
|
-
value:
|
|
838
|
-
})],
|
|
839
|
-
case
|
|
840
|
-
if (r.length) return
|
|
836
|
+
return ce([ge(r, {
|
|
837
|
+
value: R(r.value, "@", "@" + E)
|
|
838
|
+
})], o);
|
|
839
|
+
case Ie:
|
|
840
|
+
if (r.length) return $r(r.props, function(s) {
|
|
841
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 ce([ge(r, {
|
|
846
|
+
props: [R(s, /:(read-\w+)/, ":" + Ae + "$1")]
|
|
847
|
+
})], o);
|
|
848
848
|
// :placeholder
|
|
849
849
|
case "::placeholder":
|
|
850
|
-
return
|
|
851
|
-
props: [
|
|
852
|
-
}),
|
|
853
|
-
props: [
|
|
854
|
-
}),
|
|
855
|
-
props: [
|
|
856
|
-
})],
|
|
850
|
+
return ce([ge(r, {
|
|
851
|
+
props: [R(s, /:(plac\w+)/, ":" + E + "input-$1")]
|
|
852
|
+
}), ge(r, {
|
|
853
|
+
props: [R(s, /:(plac\w+)/, ":" + Ae + "$1")]
|
|
854
|
+
}), ge(r, {
|
|
855
|
+
props: [R(s, /:(plac\w+)/, U + "input-$1")]
|
|
856
|
+
})], o);
|
|
857
857
|
}
|
|
858
858
|
return "";
|
|
859
859
|
});
|
|
860
860
|
}
|
|
861
|
-
},
|
|
861
|
+
}, Br = [Gr], Xr = 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 a = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
865
|
+
Array.prototype.forEach.call(a, function(v) {
|
|
866
|
+
var w = v.getAttribute("data-emotion");
|
|
867
|
+
w.indexOf(" ") !== -1 && (document.head.appendChild(v), v.setAttribute("data-s", ""));
|
|
868
868
|
});
|
|
869
869
|
}
|
|
870
|
-
var
|
|
871
|
-
|
|
870
|
+
var o = r.stylisPlugins || Br, s = {}, f, p = [];
|
|
871
|
+
f = 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
|
-
s[
|
|
878
|
-
|
|
875
|
+
function(v) {
|
|
876
|
+
for (var w = v.getAttribute("data-emotion").split(" "), k = 1; k < w.length; k++)
|
|
877
|
+
s[w[k]] = !0;
|
|
878
|
+
p.push(v);
|
|
879
879
|
}
|
|
880
880
|
);
|
|
881
|
-
var
|
|
881
|
+
var P, m = [qr, Hr];
|
|
882
882
|
{
|
|
883
|
-
var
|
|
884
|
-
|
|
885
|
-
})], O =
|
|
886
|
-
return
|
|
883
|
+
var g, y = [Ir, Dr(function(v) {
|
|
884
|
+
g.insert(v);
|
|
885
|
+
})], O = zr(m.concat(o, y)), T = function(w) {
|
|
886
|
+
return ce(Lr(w), O);
|
|
887
887
|
};
|
|
888
|
-
|
|
889
|
-
|
|
888
|
+
P = function(w, k, _, j) {
|
|
889
|
+
g = _, T(w ? w + "{" + k.styles + "}" : k.styles), j && (A.inserted[k.name] = !0);
|
|
890
890
|
};
|
|
891
891
|
}
|
|
892
892
|
var A = {
|
|
893
893
|
key: t,
|
|
894
894
|
sheet: new kr({
|
|
895
895
|
key: t,
|
|
896
|
-
container:
|
|
896
|
+
container: f,
|
|
897
897
|
nonce: r.nonce,
|
|
898
898
|
speedy: r.speedy,
|
|
899
899
|
prepend: r.prepend,
|
|
@@ -902,52 +902,52 @@ var Jr = function(r, t, n, a) {
|
|
|
902
902
|
nonce: r.nonce,
|
|
903
903
|
inserted: s,
|
|
904
904
|
registered: {},
|
|
905
|
-
insert:
|
|
905
|
+
insert: P
|
|
906
906
|
};
|
|
907
|
-
return A.sheet.hydrate(
|
|
908
|
-
},
|
|
907
|
+
return A.sheet.hydrate(p), A;
|
|
908
|
+
}, Jr = !0;
|
|
909
909
|
function Zr(e, r, t) {
|
|
910
|
-
var
|
|
911
|
-
return t.split(" ").forEach(function(
|
|
912
|
-
e[
|
|
913
|
-
}),
|
|
910
|
+
var a = "";
|
|
911
|
+
return t.split(" ").forEach(function(o) {
|
|
912
|
+
e[o] !== void 0 ? r.push(e[o] + ";") : o && (a += o + " ");
|
|
913
|
+
}), a;
|
|
914
914
|
}
|
|
915
|
-
var ur = function(r, t,
|
|
916
|
-
var
|
|
915
|
+
var ur = function(r, t, a) {
|
|
916
|
+
var o = 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
|
+
(a === !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
|
-
ur(r, t,
|
|
929
|
-
var
|
|
926
|
+
Jr === !1) && r.registered[o] === void 0 && (r.registered[o] = t.styles);
|
|
927
|
+
}, Qr = function(r, t, a) {
|
|
928
|
+
ur(r, t, a);
|
|
929
|
+
var o = r.key + "-" + t.name;
|
|
930
930
|
if (r.inserted[t.name] === void 0) {
|
|
931
931
|
var s = t;
|
|
932
932
|
do
|
|
933
|
-
r.insert(t === s ? "." +
|
|
933
|
+
r.insert(t === s ? "." + o : "", s, r.sheet, !0), s = s.next;
|
|
934
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, a = 0, o = e.length; o >= 4; ++a, o -= 4)
|
|
939
|
+
t = e.charCodeAt(a) & 255 | (e.charCodeAt(++a) & 255) << 8 | (e.charCodeAt(++a) & 255) << 16 | (e.charCodeAt(++a) & 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 (o) {
|
|
945
945
|
case 3:
|
|
946
|
-
r ^= (e.charCodeAt(
|
|
946
|
+
r ^= (e.charCodeAt(a + 2) & 255) << 16;
|
|
947
947
|
case 2:
|
|
948
|
-
r ^= (e.charCodeAt(
|
|
948
|
+
r ^= (e.charCodeAt(a + 1) & 255) << 8;
|
|
949
949
|
case 1:
|
|
950
|
-
r ^= e.charCodeAt(
|
|
950
|
+
r ^= e.charCodeAt(a) & 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): */
|
|
@@ -1004,148 +1004,148 @@ var et = {
|
|
|
1004
1004
|
strokeWidth: 1
|
|
1005
1005
|
}, rt = /[A-Z]|^ms/g, tt = /_EMO_([^_]+?)_([^]*?)_EMO_/g, fr = function(r) {
|
|
1006
1006
|
return r.charCodeAt(1) === 45;
|
|
1007
|
-
},
|
|
1007
|
+
}, Be = function(r) {
|
|
1008
1008
|
return r != null && typeof r != "boolean";
|
|
1009
|
-
},
|
|
1009
|
+
}, Me = /* @__PURE__ */ cr(function(e) {
|
|
1010
1010
|
return fr(e) ? e : e.replace(rt, "-$&").toLowerCase();
|
|
1011
|
-
}),
|
|
1011
|
+
}), Xe = 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(
|
|
1017
|
-
return
|
|
1018
|
-
name:
|
|
1016
|
+
return t.replace(tt, function(a, o, s) {
|
|
1017
|
+
return Q = {
|
|
1018
|
+
name: o,
|
|
1019
1019
|
styles: s,
|
|
1020
|
-
next:
|
|
1021
|
-
},
|
|
1020
|
+
next: Q
|
|
1021
|
+
}, o;
|
|
1022
1022
|
});
|
|
1023
1023
|
}
|
|
1024
1024
|
return et[r] !== 1 && !fr(r) && typeof t == "number" && t !== 0 ? t + "px" : t;
|
|
1025
1025
|
};
|
|
1026
|
-
function
|
|
1026
|
+
function ve(e, r, t) {
|
|
1027
1027
|
if (t == null)
|
|
1028
1028
|
return "";
|
|
1029
|
-
var
|
|
1030
|
-
if (
|
|
1031
|
-
return
|
|
1029
|
+
var a = t;
|
|
1030
|
+
if (a.__emotion_styles !== void 0)
|
|
1031
|
+
return a;
|
|
1032
1032
|
switch (typeof t) {
|
|
1033
1033
|
case "boolean":
|
|
1034
1034
|
return "";
|
|
1035
1035
|
case "object": {
|
|
1036
|
-
var
|
|
1037
|
-
if (
|
|
1038
|
-
return
|
|
1039
|
-
name:
|
|
1040
|
-
styles:
|
|
1041
|
-
next:
|
|
1042
|
-
},
|
|
1036
|
+
var o = t;
|
|
1037
|
+
if (o.anim === 1)
|
|
1038
|
+
return Q = {
|
|
1039
|
+
name: o.name,
|
|
1040
|
+
styles: o.styles,
|
|
1041
|
+
next: Q
|
|
1042
|
+
}, o.name;
|
|
1043
1043
|
var s = t;
|
|
1044
1044
|
if (s.styles !== void 0) {
|
|
1045
|
-
var
|
|
1046
|
-
if (
|
|
1047
|
-
for (;
|
|
1048
|
-
|
|
1049
|
-
name:
|
|
1050
|
-
styles:
|
|
1051
|
-
next:
|
|
1052
|
-
},
|
|
1053
|
-
var
|
|
1054
|
-
return
|
|
1045
|
+
var f = s.next;
|
|
1046
|
+
if (f !== void 0)
|
|
1047
|
+
for (; f !== void 0; )
|
|
1048
|
+
Q = {
|
|
1049
|
+
name: f.name,
|
|
1050
|
+
styles: f.styles,
|
|
1051
|
+
next: Q
|
|
1052
|
+
}, f = f.next;
|
|
1053
|
+
var p = s.styles + ";";
|
|
1054
|
+
return p;
|
|
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
|
|
1060
|
+
var P = Q, m = t(e);
|
|
1061
|
+
return Q = P, ve(e, r, m);
|
|
1062
1062
|
}
|
|
1063
1063
|
break;
|
|
1064
1064
|
}
|
|
1065
1065
|
}
|
|
1066
|
-
var
|
|
1066
|
+
var g = t;
|
|
1067
1067
|
if (r == null)
|
|
1068
|
-
return
|
|
1069
|
-
var y = r[
|
|
1070
|
-
return y !== void 0 ? y :
|
|
1068
|
+
return g;
|
|
1069
|
+
var y = r[g];
|
|
1070
|
+
return y !== void 0 ? y : g;
|
|
1071
1071
|
}
|
|
1072
1072
|
function nt(e, r, t) {
|
|
1073
|
-
var
|
|
1073
|
+
var a = "";
|
|
1074
1074
|
if (Array.isArray(t))
|
|
1075
|
-
for (var
|
|
1076
|
-
|
|
1075
|
+
for (var o = 0; o < t.length; o++)
|
|
1076
|
+
a += ve(e, r, t[o]) + ";";
|
|
1077
1077
|
else
|
|
1078
1078
|
for (var s in t) {
|
|
1079
|
-
var
|
|
1080
|
-
if (typeof
|
|
1081
|
-
var
|
|
1082
|
-
r != null && r[
|
|
1083
|
-
} else if (Array.isArray(
|
|
1084
|
-
for (var
|
|
1085
|
-
|
|
1079
|
+
var f = t[s];
|
|
1080
|
+
if (typeof f != "object") {
|
|
1081
|
+
var p = f;
|
|
1082
|
+
r != null && r[p] !== void 0 ? a += s + "{" + r[p] + "}" : Be(p) && (a += Me(s) + ":" + Xe(s, p) + ";");
|
|
1083
|
+
} else if (Array.isArray(f) && typeof f[0] == "string" && (r == null || r[f[0]] === void 0))
|
|
1084
|
+
for (var P = 0; P < f.length; P++)
|
|
1085
|
+
Be(f[P]) && (a += Me(s) + ":" + Xe(s, f[P]) + ";");
|
|
1086
1086
|
else {
|
|
1087
|
-
var m =
|
|
1087
|
+
var m = ve(e, r, f);
|
|
1088
1088
|
switch (s) {
|
|
1089
1089
|
case "animation":
|
|
1090
1090
|
case "animationName": {
|
|
1091
|
-
|
|
1091
|
+
a += Me(s) + ":" + m + ";";
|
|
1092
1092
|
break;
|
|
1093
1093
|
}
|
|
1094
1094
|
default:
|
|
1095
|
-
|
|
1095
|
+
a += s + "{" + m + "}";
|
|
1096
1096
|
}
|
|
1097
1097
|
}
|
|
1098
1098
|
}
|
|
1099
|
-
return
|
|
1099
|
+
return a;
|
|
1100
1100
|
}
|
|
1101
|
-
var
|
|
1101
|
+
var Je = /label:\s*([^\s;{]+)\s*(;|$)/g, Q;
|
|
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
|
|
1106
|
-
|
|
1105
|
+
var a = !0, o = "";
|
|
1106
|
+
Q = void 0;
|
|
1107
1107
|
var s = e[0];
|
|
1108
1108
|
if (s == null || s.raw === void 0)
|
|
1109
|
-
|
|
1109
|
+
a = !1, o += ve(t, r, s);
|
|
1110
1110
|
else {
|
|
1111
|
-
var
|
|
1112
|
-
|
|
1111
|
+
var f = s;
|
|
1112
|
+
o += f[0];
|
|
1113
1113
|
}
|
|
1114
|
-
for (var
|
|
1115
|
-
if (
|
|
1116
|
-
var
|
|
1117
|
-
|
|
1114
|
+
for (var p = 1; p < e.length; p++)
|
|
1115
|
+
if (o += ve(t, r, e[p]), a) {
|
|
1116
|
+
var P = s;
|
|
1117
|
+
o += P[p];
|
|
1118
1118
|
}
|
|
1119
|
-
|
|
1120
|
-
for (var m = "",
|
|
1121
|
-
m += "-" +
|
|
1122
|
-
var y = Kr(
|
|
1119
|
+
Je.lastIndex = 0;
|
|
1120
|
+
for (var m = "", g; (g = Je.exec(o)) !== null; )
|
|
1121
|
+
m += "-" + g[1];
|
|
1122
|
+
var y = Kr(o) + m;
|
|
1123
1123
|
return {
|
|
1124
1124
|
name: y,
|
|
1125
|
-
styles:
|
|
1126
|
-
next:
|
|
1125
|
+
styles: o,
|
|
1126
|
+
next: Q
|
|
1127
1127
|
};
|
|
1128
1128
|
}
|
|
1129
|
-
var
|
|
1129
|
+
var ot = function(r) {
|
|
1130
1130
|
return r();
|
|
1131
|
-
},
|
|
1131
|
+
}, it = oe.useInsertionEffect ? oe.useInsertionEffect : !1, st = it || ot, dr = /* @__PURE__ */ oe.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__ */ Xr({
|
|
1139
1139
|
key: "css"
|
|
1140
1140
|
}) : null
|
|
1141
1141
|
);
|
|
1142
1142
|
dr.Provider;
|
|
1143
1143
|
var ct = function(r) {
|
|
1144
|
-
return /* @__PURE__ */ rr(function(t,
|
|
1145
|
-
var
|
|
1146
|
-
return r(t,
|
|
1144
|
+
return /* @__PURE__ */ rr(function(t, a) {
|
|
1145
|
+
var o = gr(dr);
|
|
1146
|
+
return r(t, o, a);
|
|
1147
1147
|
});
|
|
1148
|
-
}, lt = /* @__PURE__ */
|
|
1148
|
+
}, lt = /* @__PURE__ */ oe.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
|
}
|
|
@@ -1157,64 +1157,64 @@ var ct = function(r) {
|
|
|
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
|
-
}, Qe = function(r, t,
|
|
1161
|
-
var
|
|
1160
|
+
}, Qe = function(r, t, a) {
|
|
1161
|
+
var o;
|
|
1162
1162
|
if (t) {
|
|
1163
1163
|
var s = t.shouldForwardProp;
|
|
1164
|
-
|
|
1165
|
-
return r.__emotion_forwardProp(
|
|
1164
|
+
o = r.__emotion_forwardProp && s ? function(f) {
|
|
1165
|
+
return r.__emotion_forwardProp(f) && s(f);
|
|
1166
1166
|
} : s;
|
|
1167
1167
|
}
|
|
1168
|
-
return typeof
|
|
1168
|
+
return typeof o != "function" && a && (o = r.__emotion_forwardProp), o;
|
|
1169
1169
|
}, ht = function(r) {
|
|
1170
|
-
var t = r.cache,
|
|
1171
|
-
return ur(t,
|
|
1172
|
-
return Qr(t,
|
|
1170
|
+
var t = r.cache, a = r.serialized, o = r.isStringTag;
|
|
1171
|
+
return ur(t, a, o), st(function() {
|
|
1172
|
+
return Qr(t, a, o);
|
|
1173
1173
|
}), null;
|
|
1174
1174
|
}, gt = function e(r, t) {
|
|
1175
|
-
var
|
|
1176
|
-
t !== void 0 && (s = t.label,
|
|
1177
|
-
var
|
|
1175
|
+
var a = r.__emotion_real === r, o = a && r.__emotion_base || r, s, f;
|
|
1176
|
+
t !== void 0 && (s = t.label, f = t.target);
|
|
1177
|
+
var p = Qe(r, t, a), P = p || Ze(o), m = !P("as");
|
|
1178
1178
|
return function() {
|
|
1179
|
-
var
|
|
1180
|
-
if (s !== void 0 && y.push("label:" + s + ";"),
|
|
1181
|
-
y.push.apply(y,
|
|
1179
|
+
var g = arguments, y = a && r.__emotion_styles !== void 0 ? r.__emotion_styles.slice(0) : [];
|
|
1180
|
+
if (s !== void 0 && y.push("label:" + s + ";"), g[0] == null || g[0].raw === void 0)
|
|
1181
|
+
y.push.apply(y, g);
|
|
1182
1182
|
else {
|
|
1183
|
-
var O =
|
|
1183
|
+
var O = g[0];
|
|
1184
1184
|
y.push(O[0]);
|
|
1185
|
-
for (var T =
|
|
1186
|
-
y.push(
|
|
1185
|
+
for (var T = g.length, A = 1; A < T; A++)
|
|
1186
|
+
y.push(g[A], O[A]);
|
|
1187
1187
|
}
|
|
1188
|
-
var
|
|
1189
|
-
var
|
|
1190
|
-
if (
|
|
1191
|
-
|
|
1192
|
-
for (var
|
|
1193
|
-
|
|
1194
|
-
|
|
1188
|
+
var v = ct(function(w, k, _) {
|
|
1189
|
+
var j = m && w.as || o, V = "", I = [], M = w;
|
|
1190
|
+
if (w.theme == null) {
|
|
1191
|
+
M = {};
|
|
1192
|
+
for (var x in w)
|
|
1193
|
+
M[x] = w[x];
|
|
1194
|
+
M.theme = oe.useContext(lt);
|
|
1195
1195
|
}
|
|
1196
|
-
typeof
|
|
1197
|
-
var
|
|
1198
|
-
V +=
|
|
1199
|
-
var
|
|
1200
|
-
for (var
|
|
1201
|
-
m &&
|
|
1202
|
-
return
|
|
1203
|
-
cache:
|
|
1204
|
-
serialized:
|
|
1205
|
-
isStringTag: typeof
|
|
1206
|
-
}), /* @__PURE__ */
|
|
1196
|
+
typeof w.className == "string" ? V = Zr(k.registered, I, w.className) : w.className != null && (V = w.className + " ");
|
|
1197
|
+
var ee = at(y.concat(I), k.registered, M);
|
|
1198
|
+
V += k.key + "-" + ee.name, f !== void 0 && (V += " " + f);
|
|
1199
|
+
var W = m && p === void 0 ? Ze(j) : P, B = {};
|
|
1200
|
+
for (var N in w)
|
|
1201
|
+
m && N === "as" || W(N) && (B[N] = w[N]);
|
|
1202
|
+
return B.className = V, _ && (B.ref = _), /* @__PURE__ */ oe.createElement(oe.Fragment, null, /* @__PURE__ */ oe.createElement(ht, {
|
|
1203
|
+
cache: k,
|
|
1204
|
+
serialized: ee,
|
|
1205
|
+
isStringTag: typeof j == "string"
|
|
1206
|
+
}), /* @__PURE__ */ oe.createElement(j, B));
|
|
1207
1207
|
});
|
|
1208
|
-
return
|
|
1208
|
+
return v.displayName = s !== void 0 ? s : "Styled(" + (typeof o == "string" ? o : o.displayName || o.name || "Component") + ")", v.defaultProps = r.defaultProps, v.__emotion_real = v, v.__emotion_base = o, v.__emotion_styles = y, v.__emotion_forwardProp = p, Object.defineProperty(v, "toString", {
|
|
1209
1209
|
value: function() {
|
|
1210
|
-
return "." +
|
|
1210
|
+
return "." + f;
|
|
1211
1211
|
}
|
|
1212
|
-
}),
|
|
1213
|
-
var
|
|
1214
|
-
shouldForwardProp: Qe(
|
|
1212
|
+
}), v.withComponent = function(w, k) {
|
|
1213
|
+
var _ = e(w, Ne({}, t, k, {
|
|
1214
|
+
shouldForwardProp: Qe(v, k, !0)
|
|
1215
1215
|
}));
|
|
1216
|
-
return
|
|
1217
|
-
},
|
|
1216
|
+
return _.apply(void 0, y);
|
|
1217
|
+
}, v;
|
|
1218
1218
|
};
|
|
1219
1219
|
}, mt = [
|
|
1220
1220
|
"a",
|
|
@@ -1352,11 +1352,11 @@ var ct = function(r) {
|
|
|
1352
1352
|
"svg",
|
|
1353
1353
|
"text",
|
|
1354
1354
|
"tspan"
|
|
1355
|
-
],
|
|
1355
|
+
], ue = gt.bind(null);
|
|
1356
1356
|
mt.forEach(function(e) {
|
|
1357
|
-
|
|
1357
|
+
ue[e] = ue(e);
|
|
1358
1358
|
});
|
|
1359
|
-
const yt =
|
|
1359
|
+
const yt = ue.div`
|
|
1360
1360
|
display: flex;
|
|
1361
1361
|
align-items: center;
|
|
1362
1362
|
justify-content: center;
|
|
@@ -1397,11 +1397,11 @@ const yt = ce.div`
|
|
|
1397
1397
|
return "";
|
|
1398
1398
|
}
|
|
1399
1399
|
}}
|
|
1400
|
-
`, Ke = ({ type: e, children: r, className: t, icon:
|
|
1401
|
-
|
|
1402
|
-
/* @__PURE__ */
|
|
1403
|
-
|
|
1404
|
-
] }), er =
|
|
1400
|
+
`, Ke = ({ type: e, children: r, className: t, icon: a, action: o }) => /* @__PURE__ */ L.jsxs(yt, { type: e, className: t, children: [
|
|
1401
|
+
a && /* @__PURE__ */ L.jsx("span", { children: a }),
|
|
1402
|
+
/* @__PURE__ */ L.jsx("span", { children: r }),
|
|
1403
|
+
o && /* @__PURE__ */ L.jsx("span", { children: o })
|
|
1404
|
+
] }), er = ue.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 = ce.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
|
-
`,
|
|
1416
|
+
`, vt = ue.div`
|
|
1417
1417
|
position: fixed;
|
|
1418
1418
|
top: 0;
|
|
1419
1419
|
left: 0;
|
|
@@ -1425,7 +1425,7 @@ const yt = ce.div`
|
|
|
1425
1425
|
align-items: center;
|
|
1426
1426
|
z-index: 1000;
|
|
1427
1427
|
pointer-events: auto;
|
|
1428
|
-
`,
|
|
1428
|
+
`, bt = ue.div`
|
|
1429
1429
|
position: relative;
|
|
1430
1430
|
height: 80vh;
|
|
1431
1431
|
width: auto;
|
|
@@ -1433,53 +1433,53 @@ const yt = ce.div`
|
|
|
1433
1433
|
max-width: 90vw;
|
|
1434
1434
|
max-height: 90vh;
|
|
1435
1435
|
z-index: 1001;
|
|
1436
|
-
`,
|
|
1436
|
+
`, se = "https://host.vpplayer.tech", xt = (e) => `${se}/player/${e}/vpplayer.js`, jt = (e) => `${se}/player/${e}.js`, wt = (e, r) => `${se}/player/${e}/${r}.js`, Pt = (e) => `${se}/vertical-player/${e}.js`, kt = (e, r) => `${se}/vertical-player/${e}/${r}.js`, St = (e, r) => `${se}/player/${e}/${r}.json`, Et = (e, r) => `${se}/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
|
+
}, ke = /* @__PURE__ */ new Map(), Tt = (e, r) => {
|
|
1440
|
+
const [t, a] = Te(!1), [o, s] = Te(null);
|
|
1441
|
+
return Fe(() => {
|
|
1442
|
+
let f;
|
|
1443
1443
|
try {
|
|
1444
|
-
|
|
1444
|
+
f = r || xt(e || "latest");
|
|
1445
1445
|
} catch (m) {
|
|
1446
|
-
const
|
|
1447
|
-
s(`Failed to resolve script URL: ${
|
|
1446
|
+
const g = m instanceof Error ? m.message : String(m);
|
|
1447
|
+
s(`Failed to resolve script URL: ${g}`);
|
|
1448
1448
|
return;
|
|
1449
1449
|
}
|
|
1450
|
-
if (!
|
|
1450
|
+
if (!ke.has(f))
|
|
1451
1451
|
if (document.querySelector(
|
|
1452
|
-
`script[src="${
|
|
1452
|
+
`script[src="${f}"]`
|
|
1453
1453
|
))
|
|
1454
|
-
|
|
1454
|
+
ke.set(f, Promise.resolve());
|
|
1455
1455
|
else {
|
|
1456
|
-
const
|
|
1456
|
+
const g = new Promise((y, O) => {
|
|
1457
1457
|
const T = document.createElement("script");
|
|
1458
|
-
T.src =
|
|
1458
|
+
T.src = f, T.async = !0, T.onload = () => y(), T.onerror = () => O(new Error(`Failed to load script: ${f}`)), document.body.appendChild(T);
|
|
1459
1459
|
});
|
|
1460
|
-
|
|
1460
|
+
ke.set(f, g);
|
|
1461
1461
|
}
|
|
1462
|
-
let
|
|
1463
|
-
const
|
|
1464
|
-
return
|
|
1465
|
-
|
|
1462
|
+
let p = !0;
|
|
1463
|
+
const P = ke.get(f);
|
|
1464
|
+
return P && P.then(() => {
|
|
1465
|
+
p && (a(!0), s(null));
|
|
1466
1466
|
}).catch((m) => {
|
|
1467
|
-
|
|
1467
|
+
p && (a(!1), s(m instanceof Error ? m.message : String(m)));
|
|
1468
1468
|
}), () => {
|
|
1469
|
-
|
|
1469
|
+
p = !1;
|
|
1470
1470
|
};
|
|
1471
|
-
}, [e, r]), { isLoaded: t, error:
|
|
1471
|
+
}, [e, r]), { isLoaded: t, error: o };
|
|
1472
1472
|
};
|
|
1473
|
-
function
|
|
1473
|
+
function Se(e) {
|
|
1474
1474
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
1475
1475
|
}
|
|
1476
1476
|
function pr(e, r) {
|
|
1477
|
-
if (!
|
|
1477
|
+
if (!Se(e) || !Se(r))
|
|
1478
1478
|
return r;
|
|
1479
1479
|
const t = { ...e };
|
|
1480
|
-
for (const
|
|
1481
|
-
const
|
|
1482
|
-
|
|
1480
|
+
for (const a of Object.keys(r)) {
|
|
1481
|
+
const o = r[a], s = t[a];
|
|
1482
|
+
Se(o) && Se(s) ? t[a] = pr(s, o) : o !== void 0 && (t[a] = o);
|
|
1483
1483
|
}
|
|
1484
1484
|
return t;
|
|
1485
1485
|
}
|
|
@@ -1491,431 +1491,429 @@ async function At(e, r, t) {
|
|
|
1491
1491
|
r || console.warn(
|
|
1492
1492
|
"VP Player: No videoId provided, attempting to fetch config with scriptId only..."
|
|
1493
1493
|
);
|
|
1494
|
-
const
|
|
1494
|
+
const a = t ? Et(e, r || "") : St(e, r || "");
|
|
1495
1495
|
try {
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
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;
|
|
1496
|
+
const o = await fetch(a);
|
|
1497
|
+
return o.ok ? await o.json() : null;
|
|
1498
|
+
} catch {
|
|
1499
|
+
return null;
|
|
1510
1500
|
}
|
|
1511
1501
|
}
|
|
1512
|
-
const
|
|
1502
|
+
const $t = ({
|
|
1513
1503
|
scriptId: e,
|
|
1514
1504
|
videoId: r,
|
|
1515
1505
|
scriptUrl: t,
|
|
1516
|
-
projectId:
|
|
1517
|
-
config:
|
|
1506
|
+
projectId: a,
|
|
1507
|
+
config: o,
|
|
1518
1508
|
playerId: s,
|
|
1519
|
-
isVertical:
|
|
1520
|
-
isReels:
|
|
1521
|
-
onReady:
|
|
1509
|
+
isVertical: f = !1,
|
|
1510
|
+
isReels: p = !1,
|
|
1511
|
+
onReady: P,
|
|
1522
1512
|
onPlay: m,
|
|
1523
|
-
onPause:
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
onTimeUpdate: b,
|
|
1513
|
+
onPause: g,
|
|
1514
|
+
onComplete: y,
|
|
1515
|
+
onError: O,
|
|
1516
|
+
onVideoStarted: T,
|
|
1517
|
+
onTimeUpdate: A,
|
|
1529
1518
|
onQuartile25: v,
|
|
1530
1519
|
onQuartile50: w,
|
|
1531
|
-
onQuartile75:
|
|
1532
|
-
onNext:
|
|
1533
|
-
onPrevious:
|
|
1534
|
-
onProgress10s:
|
|
1535
|
-
onProgress20s:
|
|
1520
|
+
onQuartile75: k,
|
|
1521
|
+
onNext: _,
|
|
1522
|
+
onPrevious: j,
|
|
1523
|
+
onProgress10s: V,
|
|
1524
|
+
onProgress20s: I
|
|
1536
1525
|
}) => {
|
|
1537
|
-
const
|
|
1538
|
-
() => Rt(s || `auto-${
|
|
1539
|
-
[s,
|
|
1540
|
-
),
|
|
1541
|
-
onReady:
|
|
1526
|
+
const M = xe(null), x = xe(null), [ee, W] = Te(null), B = mr().replace(/:/g, ""), N = je(
|
|
1527
|
+
() => Rt(s || `auto-${B}`, r),
|
|
1528
|
+
[s, B, r]
|
|
1529
|
+
), h = xe({
|
|
1530
|
+
onReady: P,
|
|
1542
1531
|
onPlay: m,
|
|
1543
|
-
onPause:
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
onTimeUpdate: b,
|
|
1532
|
+
onPause: g,
|
|
1533
|
+
onComplete: y,
|
|
1534
|
+
onError: O,
|
|
1535
|
+
onVideoStarted: T,
|
|
1536
|
+
onTimeUpdate: A,
|
|
1549
1537
|
onQuartile25: v,
|
|
1550
1538
|
onQuartile50: w,
|
|
1551
|
-
onQuartile75:
|
|
1552
|
-
onNext:
|
|
1553
|
-
onPrevious:
|
|
1554
|
-
onProgress10s:
|
|
1555
|
-
onProgress20s:
|
|
1539
|
+
onQuartile75: k,
|
|
1540
|
+
onNext: _,
|
|
1541
|
+
onPrevious: j,
|
|
1542
|
+
onProgress10s: V,
|
|
1543
|
+
onProgress20s: I
|
|
1556
1544
|
});
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
onReady:
|
|
1545
|
+
Fe(() => {
|
|
1546
|
+
h.current = {
|
|
1547
|
+
onReady: P,
|
|
1560
1548
|
onPlay: m,
|
|
1561
|
-
onPause:
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
onTimeUpdate: b,
|
|
1549
|
+
onPause: g,
|
|
1550
|
+
onComplete: y,
|
|
1551
|
+
onError: O,
|
|
1552
|
+
onVideoStarted: T,
|
|
1553
|
+
onTimeUpdate: A,
|
|
1567
1554
|
onQuartile25: v,
|
|
1568
1555
|
onQuartile50: w,
|
|
1569
|
-
onQuartile75:
|
|
1570
|
-
onNext:
|
|
1571
|
-
onPrevious:
|
|
1572
|
-
onProgress10s:
|
|
1573
|
-
onProgress20s:
|
|
1556
|
+
onQuartile75: k,
|
|
1557
|
+
onNext: _,
|
|
1558
|
+
onPrevious: j,
|
|
1559
|
+
onProgress10s: V,
|
|
1560
|
+
onProgress20s: I
|
|
1574
1561
|
};
|
|
1575
1562
|
});
|
|
1576
|
-
const
|
|
1577
|
-
let
|
|
1563
|
+
const Y = xe(!1), re = !!o, z = je(() => f || p ? !0 : t ? t.includes("vertical-player") || t.includes("vpverticalplayer") : !1, [f, p, t]), te = je(() => {
|
|
1564
|
+
let q;
|
|
1578
1565
|
if (t)
|
|
1579
|
-
|
|
1580
|
-
else if (e && r && !
|
|
1581
|
-
|
|
1566
|
+
q = t;
|
|
1567
|
+
else if (e && r && !re)
|
|
1568
|
+
q = z ? kt(e, r) : wt(e, r);
|
|
1582
1569
|
else if (e)
|
|
1583
|
-
|
|
1570
|
+
q = z ? Pt(e) : `https://host.vpplayer.tech/player/${e}.js`;
|
|
1584
1571
|
else
|
|
1585
1572
|
return null;
|
|
1586
|
-
return _t(
|
|
1573
|
+
return _t(q, N);
|
|
1587
1574
|
}, [
|
|
1588
1575
|
t,
|
|
1589
1576
|
e,
|
|
1590
1577
|
r,
|
|
1591
|
-
H,
|
|
1592
1578
|
z,
|
|
1593
|
-
|
|
1579
|
+
N,
|
|
1580
|
+
re
|
|
1594
1581
|
]), { isLoaded: X, error: ne } = Tt(
|
|
1595
1582
|
null,
|
|
1596
1583
|
te || void 0
|
|
1597
1584
|
);
|
|
1598
|
-
return
|
|
1585
|
+
return Fe(() => {
|
|
1599
1586
|
if (!te) {
|
|
1600
|
-
|
|
1587
|
+
W(
|
|
1601
1588
|
"VPPlayer: Provide scriptUrl OR (scriptId + videoId) OR (scriptId + config) to initialize the player."
|
|
1602
1589
|
);
|
|
1603
1590
|
return;
|
|
1604
1591
|
}
|
|
1605
1592
|
if (ne) {
|
|
1606
|
-
|
|
1593
|
+
W(ne);
|
|
1607
1594
|
return;
|
|
1608
1595
|
}
|
|
1609
1596
|
if (!X) return;
|
|
1610
|
-
let
|
|
1597
|
+
let q = !0;
|
|
1611
1598
|
return (async () => {
|
|
1612
|
-
var
|
|
1599
|
+
var i;
|
|
1613
1600
|
try {
|
|
1614
|
-
const
|
|
1615
|
-
if (!
|
|
1616
|
-
|
|
1617
|
-
`VP Player: Script loaded but global function not found. Expected ${
|
|
1601
|
+
const n = z ? window.vpVerticalPlayer : window.vpPlayer;
|
|
1602
|
+
if (!n) {
|
|
1603
|
+
W(
|
|
1604
|
+
`VP Player: Script loaded but global function not found. Expected ${z ? "vpVerticalPlayer" : "vpPlayer"}.`
|
|
1618
1605
|
);
|
|
1619
1606
|
return;
|
|
1620
1607
|
}
|
|
1621
|
-
if (await new Promise((
|
|
1608
|
+
if (await new Promise((S) => setTimeout(S, 0)), !document.getElementById(N)) {
|
|
1622
1609
|
console.error(
|
|
1623
|
-
`VP Player: Container element with ID '${
|
|
1610
|
+
`VP Player: Container element with ID '${N}' not found in DOM.`
|
|
1624
1611
|
);
|
|
1625
1612
|
return;
|
|
1626
1613
|
}
|
|
1627
|
-
const
|
|
1628
|
-
if (!
|
|
1629
|
-
|
|
1614
|
+
const d = n(N);
|
|
1615
|
+
if (!d) {
|
|
1616
|
+
W("VP Player: Failed to get player instance.");
|
|
1630
1617
|
return;
|
|
1631
1618
|
}
|
|
1632
|
-
if (
|
|
1633
|
-
if (
|
|
1634
|
-
let
|
|
1635
|
-
const
|
|
1619
|
+
if (q) {
|
|
1620
|
+
if (x.current = d, W(null), Y.current = !1, re && o) {
|
|
1621
|
+
let S;
|
|
1622
|
+
const $ = await At(
|
|
1636
1623
|
e,
|
|
1637
1624
|
r,
|
|
1638
|
-
|
|
1625
|
+
z
|
|
1639
1626
|
);
|
|
1640
|
-
|
|
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);
|
|
1627
|
+
$ ? S = pr($, o) : S = o, a && !S.projectId && (S.projectId = a);
|
|
1653
1628
|
try {
|
|
1654
|
-
|
|
1655
|
-
} catch (
|
|
1656
|
-
const
|
|
1657
|
-
if (
|
|
1629
|
+
d.setup(S);
|
|
1630
|
+
} catch (l) {
|
|
1631
|
+
const u = l instanceof Error ? l.message : String(l);
|
|
1632
|
+
if (u.includes("already initialized")) {
|
|
1658
1633
|
console.warn(
|
|
1659
1634
|
"VP Player: Player already initialized, attempting to destroy and retry."
|
|
1660
1635
|
);
|
|
1661
1636
|
try {
|
|
1662
|
-
if ((
|
|
1663
|
-
const
|
|
1664
|
-
|
|
1637
|
+
if ((i = d.destroy) == null || i.call(d), await new Promise((b) => setTimeout(b, 50)), q && document.getElementById(N)) {
|
|
1638
|
+
const b = n(N);
|
|
1639
|
+
b && (b.setup(S), x.current = b);
|
|
1665
1640
|
}
|
|
1666
|
-
} catch (
|
|
1641
|
+
} catch (b) {
|
|
1667
1642
|
console.error(
|
|
1668
1643
|
"VP Player: Failed to recover from initialization error",
|
|
1669
|
-
|
|
1644
|
+
b
|
|
1670
1645
|
);
|
|
1671
1646
|
}
|
|
1672
1647
|
} else {
|
|
1673
|
-
console.error("VP Player: Setup error",
|
|
1648
|
+
console.error("VP Player: Setup error", l), W(`Player setup failed: ${u}`);
|
|
1674
1649
|
return;
|
|
1675
1650
|
}
|
|
1676
1651
|
}
|
|
1677
1652
|
}
|
|
1678
|
-
if (
|
|
1679
|
-
const
|
|
1680
|
-
|
|
1681
|
-
var
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
(
|
|
1707
|
-
}),
|
|
1708
|
-
var
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
(d = (
|
|
1718
|
-
}),
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1653
|
+
if (d.on) {
|
|
1654
|
+
const S = d.on.bind(d), $ = z ? "vertical" : "horizontal";
|
|
1655
|
+
S("vp-event", (l) => {
|
|
1656
|
+
var C, J;
|
|
1657
|
+
const u = l, b = u == null ? void 0 : u.eventName;
|
|
1658
|
+
if (z && b === "vp-state-playing") {
|
|
1659
|
+
const ie = d.videoObject;
|
|
1660
|
+
console.log(`[${$}] onPlay`), (J = (C = h.current).onPlay) == null || J.call(C, ie);
|
|
1661
|
+
}
|
|
1662
|
+
}), S("analytics-25%-completed", () => {
|
|
1663
|
+
var l, u;
|
|
1664
|
+
console.log(`[${$}] onQuartile25`), (u = (l = h.current).onQuartile25) == null || u.call(l);
|
|
1665
|
+
}), S("analytics-50%-completed", () => {
|
|
1666
|
+
var l, u;
|
|
1667
|
+
console.log(`[${$}] onQuartile50`), (u = (l = h.current).onQuartile50) == null || u.call(l);
|
|
1668
|
+
}), S("analytics-75%-completed", () => {
|
|
1669
|
+
var l, u;
|
|
1670
|
+
console.log(`[${$}] onQuartile75`), (u = (l = h.current).onQuartile75) == null || u.call(l);
|
|
1671
|
+
}), S("pause", () => {
|
|
1672
|
+
var l, u;
|
|
1673
|
+
console.log(`[${$}] onPause`), (u = (l = h.current).onPause) == null || u.call(l);
|
|
1674
|
+
}), S("error", (l) => {
|
|
1675
|
+
var b, C;
|
|
1676
|
+
const u = typeof l == "string" ? l : (l == null ? void 0 : l.message) || "Unknown error";
|
|
1677
|
+
console.log(`[${$}] onError`, u), (C = (b = h.current).onError) == null || C.call(b, u);
|
|
1678
|
+
}), z ? (S("vp-first-frame", () => {
|
|
1679
|
+
var b, C;
|
|
1680
|
+
const u = d.videoObject;
|
|
1681
|
+
console.log(`[${$}] onReady`), (C = (b = h.current).onReady) == null || C.call(b, u);
|
|
1682
|
+
}), S("vp-video-started", (l) => {
|
|
1683
|
+
var u, b;
|
|
1684
|
+
console.log(`[${$}] onVideoStarted`), (b = (u = h.current).onVideoStarted) == null || b.call(u, l);
|
|
1685
|
+
}), S("vp-video-state", () => {
|
|
1686
|
+
var u, b, C;
|
|
1687
|
+
const l = ((u = d.getPosition) == null ? void 0 : u.call(d)) ?? 0;
|
|
1688
|
+
console.log(`[${$}] onProgress10s`, Math.floor(l)), (C = (b = h.current).onProgress10s) == null || C.call(b, Math.floor(l));
|
|
1689
|
+
}), S("vp-time", (l) => {
|
|
1690
|
+
var b, C, J, ae, ie;
|
|
1691
|
+
let u = 0;
|
|
1692
|
+
typeof l == "number" ? u = l : l && typeof l == "object" && "position" in l ? u = l.position : u = ((b = d.getPosition) == null ? void 0 : b.call(d)) ?? 0, (J = (C = h.current).onTimeUpdate) == null || J.call(C, u), !Y.current && u >= 20 && (Y.current = !0, console.log(`[${$}] onProgress20s`, Math.floor(u)), (ie = (ae = h.current).onProgress20s) == null || ie.call(ae, Math.floor(u)));
|
|
1693
|
+
}), S("vp-video-switch", () => {
|
|
1694
|
+
queueMicrotask(() => {
|
|
1695
|
+
var b, C, J, ae;
|
|
1696
|
+
const u = d._switchDirection;
|
|
1697
|
+
u === "next" ? (console.log(`[${$}] onNext`), (C = (b = h.current).onNext) == null || C.call(b)) : u === "previous" && (console.log(`[${$}] onPrevious`), (ae = (J = h.current).onPrevious) == null || ae.call(J)), Y.current = !1;
|
|
1698
|
+
});
|
|
1699
|
+
})) : (S("ready", () => {
|
|
1700
|
+
var l, u;
|
|
1701
|
+
console.log(`[${$}] onReady`), (u = (l = h.current).onReady) == null || u.call(l);
|
|
1702
|
+
}), S("play", () => {
|
|
1703
|
+
var l, u;
|
|
1704
|
+
console.log(`[${$}] onPlay`), (u = (l = h.current).onPlay) == null || u.call(l);
|
|
1705
|
+
}), S("complete", () => {
|
|
1706
|
+
var l, u;
|
|
1707
|
+
console.log(`[${$}] onComplete`), (u = (l = h.current).onComplete) == null || u.call(l), Y.current = !1;
|
|
1708
|
+
}), S("video-started", (l) => {
|
|
1709
|
+
var u, b;
|
|
1710
|
+
console.log(`[${$}] onVideoStarted`), (b = (u = h.current).onVideoStarted) == null || b.call(u, l);
|
|
1711
|
+
}), S("video-state", () => {
|
|
1712
|
+
var u, b, C;
|
|
1713
|
+
const l = ((u = d.getPosition) == null ? void 0 : u.call(d)) ?? 0;
|
|
1714
|
+
console.log(`[${$}] onProgress10s`, Math.floor(l)), (C = (b = h.current).onProgress10s) == null || C.call(b, Math.floor(l));
|
|
1715
|
+
}), S("time", (l) => {
|
|
1716
|
+
var b, C, J, ae, ie;
|
|
1717
|
+
let u = 0;
|
|
1718
|
+
typeof l == "number" ? u = l : l && typeof l == "object" && "position" in l ? u = l.position : u = ((b = d.getPosition) == null ? void 0 : b.call(d)) ?? 0, (J = (C = h.current).onTimeUpdate) == null || J.call(C, u), !Y.current && u >= 20 && (Y.current = !0, console.log(`[${$}] onProgress20s`, Math.floor(u)), (ie = (ae = h.current).onProgress20s) == null || ie.call(ae, Math.floor(u)));
|
|
1719
|
+
}), S("playlistItem", () => {
|
|
1720
|
+
var l, u;
|
|
1721
|
+
console.log(`[${$}] onNext`), (u = (l = h.current).onNext) == null || u.call(l), Y.current = !1;
|
|
1722
|
+
}));
|
|
1723
1723
|
}
|
|
1724
1724
|
}
|
|
1725
|
-
} catch (
|
|
1726
|
-
if (
|
|
1727
|
-
const c =
|
|
1728
|
-
|
|
1725
|
+
} catch (n) {
|
|
1726
|
+
if (q) {
|
|
1727
|
+
const c = n instanceof Error ? n.message : String(n);
|
|
1728
|
+
W(c), console.error("VP Player initialization error:", n);
|
|
1729
1729
|
}
|
|
1730
1730
|
}
|
|
1731
1731
|
})(), () => {
|
|
1732
|
-
var
|
|
1733
|
-
if (
|
|
1732
|
+
var i;
|
|
1733
|
+
if (q = !1, (i = x.current) != null && i.destroy) {
|
|
1734
1734
|
try {
|
|
1735
|
-
|
|
1735
|
+
x.current.destroy();
|
|
1736
1736
|
} catch {
|
|
1737
1737
|
}
|
|
1738
|
-
|
|
1738
|
+
x.current = null;
|
|
1739
1739
|
}
|
|
1740
1740
|
};
|
|
1741
1741
|
}, [
|
|
1742
1742
|
X,
|
|
1743
|
-
|
|
1743
|
+
N,
|
|
1744
1744
|
ne,
|
|
1745
1745
|
te,
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1746
|
+
z,
|
|
1747
|
+
re,
|
|
1748
|
+
o,
|
|
1749
1749
|
e,
|
|
1750
1750
|
r,
|
|
1751
|
-
|
|
1751
|
+
a
|
|
1752
1752
|
]), {
|
|
1753
|
-
playerRef:
|
|
1754
|
-
playerInstanceRef:
|
|
1753
|
+
playerRef: M,
|
|
1754
|
+
playerInstanceRef: x,
|
|
1755
1755
|
isScriptLoaded: X,
|
|
1756
|
-
isLoading: !X && !
|
|
1757
|
-
error:
|
|
1758
|
-
generatedPlayerId:
|
|
1756
|
+
isLoading: !X && !ee,
|
|
1757
|
+
error: ee,
|
|
1758
|
+
generatedPlayerId: N
|
|
1759
1759
|
};
|
|
1760
1760
|
}, Ct = rr(
|
|
1761
1761
|
({
|
|
1762
1762
|
scriptId: e,
|
|
1763
1763
|
videoId: r,
|
|
1764
1764
|
scriptUrl: t,
|
|
1765
|
-
projectId:
|
|
1766
|
-
config:
|
|
1765
|
+
projectId: a,
|
|
1766
|
+
config: o,
|
|
1767
1767
|
playerId: s,
|
|
1768
|
-
isVertical:
|
|
1769
|
-
isReels:
|
|
1770
|
-
thumbnailUrl:
|
|
1768
|
+
isVertical: f = !1,
|
|
1769
|
+
isReels: p = !1,
|
|
1770
|
+
thumbnailUrl: P,
|
|
1771
1771
|
onClose: m,
|
|
1772
|
-
className:
|
|
1772
|
+
className: g,
|
|
1773
1773
|
hiddenClasses: y = [],
|
|
1774
1774
|
onReady: O,
|
|
1775
1775
|
onPlay: T,
|
|
1776
1776
|
onPause: A,
|
|
1777
|
-
onResume: b,
|
|
1778
1777
|
onComplete: v,
|
|
1779
1778
|
onError: w,
|
|
1780
|
-
onVideoStarted:
|
|
1781
|
-
onTimeUpdate:
|
|
1782
|
-
onQuartile25:
|
|
1783
|
-
onQuartile50:
|
|
1784
|
-
onQuartile75:
|
|
1785
|
-
onNext:
|
|
1786
|
-
onPrevious:
|
|
1787
|
-
onProgress10s:
|
|
1788
|
-
onProgress20s:
|
|
1789
|
-
},
|
|
1779
|
+
onVideoStarted: k,
|
|
1780
|
+
onTimeUpdate: _,
|
|
1781
|
+
onQuartile25: j,
|
|
1782
|
+
onQuartile50: V,
|
|
1783
|
+
onQuartile75: I,
|
|
1784
|
+
onNext: M,
|
|
1785
|
+
onPrevious: x,
|
|
1786
|
+
onProgress10s: ee,
|
|
1787
|
+
onProgress20s: W
|
|
1788
|
+
}, B) => {
|
|
1790
1789
|
const {
|
|
1791
|
-
playerRef:
|
|
1792
|
-
playerInstanceRef:
|
|
1793
|
-
isScriptLoaded:
|
|
1794
|
-
isLoading:
|
|
1795
|
-
error:
|
|
1790
|
+
playerRef: N,
|
|
1791
|
+
playerInstanceRef: h,
|
|
1792
|
+
isScriptLoaded: Y,
|
|
1793
|
+
isLoading: re,
|
|
1794
|
+
error: z,
|
|
1796
1795
|
generatedPlayerId: te
|
|
1797
|
-
} =
|
|
1796
|
+
} = $t({
|
|
1798
1797
|
scriptId: e,
|
|
1799
1798
|
videoId: r,
|
|
1800
1799
|
scriptUrl: t,
|
|
1801
|
-
projectId:
|
|
1802
|
-
config:
|
|
1800
|
+
projectId: a,
|
|
1801
|
+
config: o,
|
|
1803
1802
|
playerId: s,
|
|
1804
|
-
isVertical:
|
|
1805
|
-
isReels:
|
|
1803
|
+
isVertical: f,
|
|
1804
|
+
isReels: p,
|
|
1806
1805
|
onReady: O,
|
|
1807
1806
|
onPlay: T,
|
|
1808
1807
|
onPause: A,
|
|
1809
|
-
onResume: b,
|
|
1810
1808
|
onComplete: v,
|
|
1811
1809
|
onError: w,
|
|
1812
|
-
onVideoStarted:
|
|
1813
|
-
onTimeUpdate:
|
|
1814
|
-
onQuartile25:
|
|
1815
|
-
onQuartile50:
|
|
1816
|
-
onQuartile75:
|
|
1817
|
-
onNext:
|
|
1818
|
-
onPrevious:
|
|
1819
|
-
onProgress10s:
|
|
1820
|
-
onProgress20s:
|
|
1810
|
+
onVideoStarted: k,
|
|
1811
|
+
onTimeUpdate: _,
|
|
1812
|
+
onQuartile25: j,
|
|
1813
|
+
onQuartile50: V,
|
|
1814
|
+
onQuartile75: I,
|
|
1815
|
+
onNext: M,
|
|
1816
|
+
onPrevious: x,
|
|
1817
|
+
onProgress10s: ee,
|
|
1818
|
+
onProgress20s: W
|
|
1821
1819
|
});
|
|
1822
1820
|
yr(
|
|
1823
|
-
|
|
1821
|
+
B,
|
|
1824
1822
|
() => ({
|
|
1825
1823
|
play: () => {
|
|
1826
|
-
var
|
|
1827
|
-
return (c = (
|
|
1824
|
+
var n, c;
|
|
1825
|
+
return (c = (n = h.current) == null ? void 0 : n.play) == null ? void 0 : c.call(n);
|
|
1828
1826
|
},
|
|
1829
1827
|
pause: () => {
|
|
1830
|
-
var
|
|
1831
|
-
return (c = (
|
|
1828
|
+
var n, c;
|
|
1829
|
+
return (c = (n = h.current) == null ? void 0 : n.pause) == null ? void 0 : c.call(n);
|
|
1832
1830
|
},
|
|
1833
|
-
seek: (
|
|
1834
|
-
var c,
|
|
1835
|
-
return (
|
|
1831
|
+
seek: (n) => {
|
|
1832
|
+
var c, d;
|
|
1833
|
+
return (d = (c = h.current) == null ? void 0 : c.seek) == null ? void 0 : d.call(c, n);
|
|
1836
1834
|
},
|
|
1837
1835
|
forward: () => {
|
|
1838
|
-
var
|
|
1839
|
-
return (c = (
|
|
1836
|
+
var n, c;
|
|
1837
|
+
return (c = (n = h.current) == null ? void 0 : n.forward) == null ? void 0 : c.call(n);
|
|
1840
1838
|
},
|
|
1841
1839
|
rewind: () => {
|
|
1842
|
-
var
|
|
1843
|
-
return (c = (
|
|
1840
|
+
var n, c;
|
|
1841
|
+
return (c = (n = h.current) == null ? void 0 : n.rewind) == null ? void 0 : c.call(n);
|
|
1844
1842
|
},
|
|
1845
1843
|
replay: () => {
|
|
1846
|
-
var
|
|
1847
|
-
return (c = (
|
|
1844
|
+
var n, c;
|
|
1845
|
+
return (c = (n = h.current) == null ? void 0 : n.replay) == null ? void 0 : c.call(n);
|
|
1848
1846
|
},
|
|
1849
1847
|
mute: () => {
|
|
1850
|
-
var
|
|
1851
|
-
return (c = (
|
|
1848
|
+
var n, c;
|
|
1849
|
+
return (c = (n = h.current) == null ? void 0 : n.mute) == null ? void 0 : c.call(n);
|
|
1852
1850
|
},
|
|
1853
1851
|
unmute: () => {
|
|
1854
|
-
var
|
|
1855
|
-
return (c = (
|
|
1852
|
+
var n, c;
|
|
1853
|
+
return (c = (n = h.current) == null ? void 0 : n.unmute) == null ? void 0 : c.call(n);
|
|
1856
1854
|
},
|
|
1857
1855
|
togglePlay: () => {
|
|
1858
|
-
var
|
|
1859
|
-
return (c = (
|
|
1856
|
+
var n, c;
|
|
1857
|
+
return (c = (n = h.current) == null ? void 0 : n.togglePlay) == null ? void 0 : c.call(n);
|
|
1860
1858
|
},
|
|
1861
1859
|
toggleMute: () => {
|
|
1862
|
-
var
|
|
1863
|
-
return (c = (
|
|
1860
|
+
var n, c;
|
|
1861
|
+
return (c = (n = h.current) == null ? void 0 : n.toggleMute) == null ? void 0 : c.call(n);
|
|
1864
1862
|
},
|
|
1865
1863
|
enterFullScreen: () => {
|
|
1866
|
-
var
|
|
1867
|
-
return (
|
|
1864
|
+
var n, c, d;
|
|
1865
|
+
return (d = ((n = h.current) == null ? void 0 : n.enterFullScreen) ?? ((c = h.current) == null ? void 0 : c.enterFullscreen)) == null ? void 0 : d();
|
|
1868
1866
|
},
|
|
1869
1867
|
exitFullScreen: () => {
|
|
1870
|
-
var
|
|
1871
|
-
return (
|
|
1868
|
+
var n, c, d;
|
|
1869
|
+
return (d = ((n = h.current) == null ? void 0 : n.exitFullScreen) ?? ((c = h.current) == null ? void 0 : c.exitFullscreen)) == null ? void 0 : d();
|
|
1872
1870
|
},
|
|
1873
1871
|
getPosition: () => {
|
|
1874
|
-
var
|
|
1875
|
-
return ((c = (
|
|
1872
|
+
var n, c;
|
|
1873
|
+
return ((c = (n = h.current) == null ? void 0 : n.getPosition) == null ? void 0 : c.call(n)) ?? null;
|
|
1876
1874
|
},
|
|
1877
1875
|
getDuration: () => {
|
|
1878
|
-
var
|
|
1879
|
-
return ((c = (
|
|
1876
|
+
var n, c;
|
|
1877
|
+
return ((c = (n = h.current) == null ? void 0 : n.getDuration) == null ? void 0 : c.call(n)) ?? null;
|
|
1880
1878
|
},
|
|
1881
1879
|
getVolume: () => {
|
|
1882
|
-
var
|
|
1883
|
-
return ((c = (
|
|
1880
|
+
var n, c;
|
|
1881
|
+
return ((c = (n = h.current) == null ? void 0 : n.getVolume) == null ? void 0 : c.call(n)) ?? null;
|
|
1884
1882
|
},
|
|
1885
|
-
setVolume: (
|
|
1886
|
-
var c,
|
|
1887
|
-
return (
|
|
1883
|
+
setVolume: (n) => {
|
|
1884
|
+
var c, d;
|
|
1885
|
+
return (d = (c = h.current) == null ? void 0 : c.setVolume) == null ? void 0 : d.call(c, n);
|
|
1888
1886
|
},
|
|
1889
1887
|
isMuted: () => {
|
|
1890
|
-
var
|
|
1891
|
-
return ((c = (
|
|
1888
|
+
var n, c;
|
|
1889
|
+
return ((c = (n = h.current) == null ? void 0 : n.isMuted) == null ? void 0 : c.call(n)) ?? !1;
|
|
1892
1890
|
},
|
|
1893
1891
|
isPlaying: () => {
|
|
1894
|
-
var
|
|
1895
|
-
return ((c = (
|
|
1892
|
+
var n, c;
|
|
1893
|
+
return ((c = (n = h.current) == null ? void 0 : n.isPlaying) == null ? void 0 : c.call(n)) ?? !1;
|
|
1896
1894
|
},
|
|
1897
1895
|
isPaused: () => {
|
|
1898
|
-
var
|
|
1899
|
-
return ((c = (
|
|
1896
|
+
var n, c;
|
|
1897
|
+
return ((c = (n = h.current) == null ? void 0 : n.isPaused) == null ? void 0 : c.call(n)) ?? !1;
|
|
1900
1898
|
},
|
|
1901
1899
|
isFullscreen: () => {
|
|
1902
|
-
var
|
|
1903
|
-
return ((c = (
|
|
1900
|
+
var n, c;
|
|
1901
|
+
return ((c = (n = h.current) == null ? void 0 : n.isFullscreen) == null ? void 0 : c.call(n)) ?? !1;
|
|
1904
1902
|
}
|
|
1905
1903
|
}),
|
|
1906
1904
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1907
1905
|
[]
|
|
1908
1906
|
);
|
|
1909
|
-
const [X, ne] =
|
|
1910
|
-
var
|
|
1911
|
-
!
|
|
1907
|
+
const [X, ne] = Te(!0), q = () => p && ne(!0), de = () => {
|
|
1908
|
+
var n, c;
|
|
1909
|
+
!p || !X || (ne(!1), (c = (n = h.current) == null ? void 0 : n.pause) == null || c.call(n), m == null || m());
|
|
1912
1910
|
};
|
|
1913
|
-
if (
|
|
1914
|
-
return /* @__PURE__ */
|
|
1911
|
+
if (z)
|
|
1912
|
+
return /* @__PURE__ */ L.jsxs(Ke, { type: "error", children: [
|
|
1915
1913
|
"An error occurred: ",
|
|
1916
|
-
|
|
1914
|
+
z
|
|
1917
1915
|
] });
|
|
1918
|
-
const
|
|
1916
|
+
const i = () => /* @__PURE__ */ L.jsx(
|
|
1919
1917
|
"div",
|
|
1920
1918
|
{
|
|
1921
1919
|
style: {
|
|
@@ -1930,30 +1928,30 @@ const Ot = ({
|
|
|
1930
1928
|
background: "rgba(0,0,0,0.8)",
|
|
1931
1929
|
zIndex: 10
|
|
1932
1930
|
},
|
|
1933
|
-
children: /* @__PURE__ */
|
|
1931
|
+
children: /* @__PURE__ */ L.jsx(Ke, { type: "loading", children: "Loading..." })
|
|
1934
1932
|
}
|
|
1935
1933
|
);
|
|
1936
|
-
return
|
|
1937
|
-
!X && /* @__PURE__ */
|
|
1934
|
+
return p ? /* @__PURE__ */ L.jsxs(L.Fragment, { children: [
|
|
1935
|
+
!X && /* @__PURE__ */ L.jsx(
|
|
1938
1936
|
"div",
|
|
1939
1937
|
{
|
|
1940
|
-
onClick:
|
|
1938
|
+
onClick: q,
|
|
1941
1939
|
style: {
|
|
1942
1940
|
cursor: "pointer",
|
|
1943
1941
|
width: "100%",
|
|
1944
1942
|
height: "100%",
|
|
1945
|
-
backgroundImage:
|
|
1943
|
+
backgroundImage: P ? `url(${P})` : void 0,
|
|
1946
1944
|
backgroundSize: "cover",
|
|
1947
1945
|
backgroundPosition: "center"
|
|
1948
1946
|
}
|
|
1949
1947
|
}
|
|
1950
1948
|
),
|
|
1951
|
-
X && /* @__PURE__ */
|
|
1952
|
-
|
|
1949
|
+
X && /* @__PURE__ */ L.jsx(vt, { onClick: de, className: g, children: /* @__PURE__ */ L.jsx(
|
|
1950
|
+
bt,
|
|
1953
1951
|
{
|
|
1954
|
-
className:
|
|
1955
|
-
onClick: (
|
|
1956
|
-
children: /* @__PURE__ */
|
|
1952
|
+
className: g,
|
|
1953
|
+
onClick: (n) => n.stopPropagation(),
|
|
1954
|
+
children: /* @__PURE__ */ L.jsxs(
|
|
1957
1955
|
"div",
|
|
1958
1956
|
{
|
|
1959
1957
|
style: {
|
|
@@ -1962,52 +1960,52 @@ const Ot = ({
|
|
|
1962
1960
|
height: "100%"
|
|
1963
1961
|
},
|
|
1964
1962
|
children: [
|
|
1965
|
-
/* @__PURE__ */
|
|
1963
|
+
/* @__PURE__ */ L.jsx(
|
|
1966
1964
|
er,
|
|
1967
1965
|
{
|
|
1968
1966
|
id: te,
|
|
1969
|
-
ref:
|
|
1967
|
+
ref: N,
|
|
1970
1968
|
width: "100%",
|
|
1971
1969
|
height: "100%",
|
|
1972
1970
|
$hiddenClasses: y,
|
|
1973
|
-
className:
|
|
1971
|
+
className: g
|
|
1974
1972
|
}
|
|
1975
1973
|
),
|
|
1976
|
-
(
|
|
1974
|
+
(re || !Y) && /* @__PURE__ */ L.jsx(i, {})
|
|
1977
1975
|
]
|
|
1978
1976
|
}
|
|
1979
1977
|
)
|
|
1980
1978
|
}
|
|
1981
1979
|
) })
|
|
1982
|
-
] }) : /* @__PURE__ */
|
|
1983
|
-
/* @__PURE__ */
|
|
1980
|
+
] }) : /* @__PURE__ */ L.jsxs("div", { style: { position: "relative", width: "100%", height: "100%" }, children: [
|
|
1981
|
+
/* @__PURE__ */ L.jsx(
|
|
1984
1982
|
er,
|
|
1985
1983
|
{
|
|
1986
1984
|
id: te,
|
|
1987
|
-
ref:
|
|
1985
|
+
ref: N,
|
|
1988
1986
|
width: "100%",
|
|
1989
1987
|
height: "100%",
|
|
1990
1988
|
$hiddenClasses: y,
|
|
1991
|
-
className:
|
|
1989
|
+
className: g
|
|
1992
1990
|
}
|
|
1993
1991
|
),
|
|
1994
|
-
(
|
|
1992
|
+
(re || !Y) && /* @__PURE__ */ L.jsx(i, {})
|
|
1995
1993
|
] });
|
|
1996
1994
|
}
|
|
1997
1995
|
);
|
|
1998
1996
|
Ct.displayName = "VPPlayer";
|
|
1999
1997
|
export {
|
|
2000
|
-
|
|
1998
|
+
vt as Overlay,
|
|
2001
1999
|
er as PlayerContainer,
|
|
2002
|
-
|
|
2000
|
+
bt as PlayerWrapper,
|
|
2003
2001
|
Ct as VPPlayer,
|
|
2004
|
-
|
|
2002
|
+
se as VP_PLAYER_BASE_URL,
|
|
2005
2003
|
_t as appendDivIdToUrl,
|
|
2006
2004
|
Rt as generatePlayerId,
|
|
2007
2005
|
wt as getFullyManagedPlayerScriptUrl,
|
|
2008
2006
|
jt as getManagedPlayerScriptUrl,
|
|
2009
2007
|
xt as getPlayerScriptUrl,
|
|
2010
2008
|
Pt as getVerticalPlayerScriptUrl,
|
|
2011
|
-
|
|
2009
|
+
$t as useVPPlayerLogic,
|
|
2012
2010
|
Tt as useVPPlayerScript
|
|
2013
2011
|
};
|