@devix-technologies/react-gjirafa-vp-player 1.0.31-beta.22 → 1.0.31-beta.23
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as le from "react";
|
|
2
|
-
import Mr, { forwardRef as wr, useContext as Ir, useState as
|
|
3
|
-
var
|
|
2
|
+
import Mr, { forwardRef as wr, useContext as Ir, useState as Le, useEffect as Me, useRef as pe, useId as Fr, useMemo as We, useImperativeHandle as Vr } from "react";
|
|
3
|
+
var Ce = { exports: {} }, ke = {};
|
|
4
4
|
/**
|
|
5
5
|
* @license React
|
|
6
6
|
* react-jsx-runtime.production.js
|
|
@@ -12,7 +12,7 @@ var Te = { exports: {} }, we = {};
|
|
|
12
12
|
*/
|
|
13
13
|
var sr;
|
|
14
14
|
function Lr() {
|
|
15
|
-
if (sr) return
|
|
15
|
+
if (sr) return ke;
|
|
16
16
|
sr = 1;
|
|
17
17
|
var e = Symbol.for("react.transitional.element"), r = Symbol.for("react.fragment");
|
|
18
18
|
function t(n, a, s) {
|
|
@@ -30,9 +30,9 @@ function Lr() {
|
|
|
30
30
|
props: s
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
return
|
|
33
|
+
return ke.Fragment = r, ke.jsx = t, ke.jsxs = t, ke;
|
|
34
34
|
}
|
|
35
|
-
var
|
|
35
|
+
var Pe = {};
|
|
36
36
|
/**
|
|
37
37
|
* @license React
|
|
38
38
|
* react-jsx-runtime.development.js
|
|
@@ -61,7 +61,7 @@ function Nr() {
|
|
|
61
61
|
return "Suspense";
|
|
62
62
|
case R:
|
|
63
63
|
return "SuspenseList";
|
|
64
|
-
case
|
|
64
|
+
case G:
|
|
65
65
|
return "Activity";
|
|
66
66
|
}
|
|
67
67
|
if (typeof o == "object")
|
|
@@ -70,19 +70,19 @@ function Nr() {
|
|
|
70
70
|
), o.$$typeof) {
|
|
71
71
|
case w:
|
|
72
72
|
return "Portal";
|
|
73
|
-
case
|
|
73
|
+
case D:
|
|
74
74
|
return o.displayName || "Context";
|
|
75
75
|
case V:
|
|
76
76
|
return (o._context.displayName || "Context") + ".Consumer";
|
|
77
77
|
case z:
|
|
78
|
-
var
|
|
79
|
-
return o = o.displayName, o || (o =
|
|
78
|
+
var v = o.render;
|
|
79
|
+
return o = o.displayName, o || (o = v.displayName || v.name || "", o = o !== "" ? "ForwardRef(" + o + ")" : "ForwardRef"), o;
|
|
80
80
|
case te:
|
|
81
|
-
return
|
|
81
|
+
return v = o.displayName || null, v !== null ? v : e(o.type) || "Memo";
|
|
82
82
|
case ce:
|
|
83
|
-
|
|
83
|
+
v = o._payload, o = o._init;
|
|
84
84
|
try {
|
|
85
|
-
return e(o(
|
|
85
|
+
return e(o(v));
|
|
86
86
|
} catch {
|
|
87
87
|
}
|
|
88
88
|
}
|
|
@@ -94,15 +94,15 @@ function Nr() {
|
|
|
94
94
|
function t(o) {
|
|
95
95
|
try {
|
|
96
96
|
r(o);
|
|
97
|
-
var
|
|
97
|
+
var v = !1;
|
|
98
98
|
} catch {
|
|
99
|
-
|
|
99
|
+
v = !0;
|
|
100
100
|
}
|
|
101
|
-
if (
|
|
102
|
-
|
|
103
|
-
var O =
|
|
101
|
+
if (v) {
|
|
102
|
+
v = console;
|
|
103
|
+
var O = v.error, M = typeof Symbol == "function" && Symbol.toStringTag && o[Symbol.toStringTag] || o.constructor.name || "Object";
|
|
104
104
|
return O.call(
|
|
105
|
-
|
|
105
|
+
v,
|
|
106
106
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
107
107
|
M
|
|
108
108
|
), r(o);
|
|
@@ -113,8 +113,8 @@ function Nr() {
|
|
|
113
113
|
if (typeof o == "object" && o !== null && o.$$typeof === ce)
|
|
114
114
|
return "<...>";
|
|
115
115
|
try {
|
|
116
|
-
var
|
|
117
|
-
return
|
|
116
|
+
var v = e(o);
|
|
117
|
+
return v ? "<" + v + ">" : "<...>";
|
|
118
118
|
} catch {
|
|
119
119
|
return "<...>";
|
|
120
120
|
}
|
|
@@ -128,16 +128,16 @@ function Nr() {
|
|
|
128
128
|
}
|
|
129
129
|
function u(o) {
|
|
130
130
|
if (fe.call(o, "key")) {
|
|
131
|
-
var
|
|
132
|
-
if (
|
|
131
|
+
var v = Object.getOwnPropertyDescriptor(o, "key").get;
|
|
132
|
+
if (v && v.isReactWarning) return !1;
|
|
133
133
|
}
|
|
134
134
|
return o.key !== void 0;
|
|
135
135
|
}
|
|
136
|
-
function p(o,
|
|
136
|
+
function p(o, v) {
|
|
137
137
|
function O() {
|
|
138
138
|
ne || (ne = !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
|
+
v
|
|
141
141
|
));
|
|
142
142
|
}
|
|
143
143
|
O.isReactWarning = !0, Object.defineProperty(o, "key", {
|
|
@@ -151,12 +151,12 @@ function Nr() {
|
|
|
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 b(o,
|
|
154
|
+
function b(o, v, O, M, i, l) {
|
|
155
155
|
var P = O.ref;
|
|
156
156
|
return o = {
|
|
157
|
-
$$typeof:
|
|
157
|
+
$$typeof: $,
|
|
158
158
|
type: o,
|
|
159
|
-
key:
|
|
159
|
+
key: v,
|
|
160
160
|
props: O,
|
|
161
161
|
_owner: M
|
|
162
162
|
}, (P !== void 0 ? P : null) !== null ? Object.defineProperty(o, "ref", {
|
|
@@ -184,11 +184,11 @@ function Nr() {
|
|
|
184
184
|
value: l
|
|
185
185
|
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
186
186
|
}
|
|
187
|
-
function m(o,
|
|
188
|
-
var P =
|
|
187
|
+
function m(o, v, O, M, i, l) {
|
|
188
|
+
var P = v.children;
|
|
189
189
|
if (P !== void 0)
|
|
190
190
|
if (M)
|
|
191
|
-
if (
|
|
191
|
+
if (X(P)) {
|
|
192
192
|
for (M = 0; M < P.length; M++)
|
|
193
193
|
x(P[M]);
|
|
194
194
|
Object.freeze && Object.freeze(P);
|
|
@@ -197,12 +197,12 @@ function Nr() {
|
|
|
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 x(P);
|
|
200
|
-
if (fe.call(
|
|
200
|
+
if (fe.call(v, "key")) {
|
|
201
201
|
P = e(o);
|
|
202
|
-
var
|
|
202
|
+
var B = Object.keys(v).filter(function(g) {
|
|
203
203
|
return g !== "key";
|
|
204
204
|
});
|
|
205
|
-
M = 0 <
|
|
205
|
+
M = 0 < B.length ? "{key: someKey, " + B.join(": ..., ") + ": ...}" : "{key: someKey}", re[P + M] || (B = 0 < B.length ? "{" + B.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} />
|
|
@@ -211,15 +211,15 @@ React keys must be passed directly to JSX without using spread:
|
|
|
211
211
|
<%s key={someKey} {...props} />`,
|
|
212
212
|
M,
|
|
213
213
|
P,
|
|
214
|
-
|
|
214
|
+
B,
|
|
215
215
|
P
|
|
216
216
|
), re[P + M] = !0);
|
|
217
217
|
}
|
|
218
|
-
if (P = null, O !== void 0 && (t(O), P = "" + O), u(
|
|
218
|
+
if (P = null, O !== void 0 && (t(O), P = "" + O), u(v) && (t(v.key), P = "" + v.key), "key" in v) {
|
|
219
219
|
O = {};
|
|
220
|
-
for (var me in
|
|
221
|
-
me !== "key" && (O[me] =
|
|
222
|
-
} else O =
|
|
220
|
+
for (var me in v)
|
|
221
|
+
me !== "key" && (O[me] = v[me]);
|
|
222
|
+
} else O = v;
|
|
223
223
|
return P && p(
|
|
224
224
|
O,
|
|
225
225
|
typeof o == "function" ? o.displayName || o.name || "Unknown" : o
|
|
@@ -236,65 +236,65 @@ React keys must be passed directly to JSX without using spread:
|
|
|
236
236
|
I(o) ? o._store && (o._store.validated = 1) : typeof o == "object" && o !== null && o.$$typeof === ce && (o._payload.status === "fulfilled" ? I(o._payload.value) && o._payload.value._store && (o._payload.value._store.validated = 1) : o._store && (o._store.validated = 1));
|
|
237
237
|
}
|
|
238
238
|
function I(o) {
|
|
239
|
-
return typeof o == "object" && o !== null && o.$$typeof ===
|
|
239
|
+
return typeof o == "object" && o !== null && o.$$typeof === $;
|
|
240
240
|
}
|
|
241
|
-
var
|
|
241
|
+
var j = Mr, $ = Symbol.for("react.transitional.element"), w = Symbol.for("react.portal"), S = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), V = Symbol.for("react.consumer"), D = Symbol.for("react.context"), z = Symbol.for("react.forward_ref"), F = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), te = Symbol.for("react.memo"), ce = Symbol.for("react.lazy"), G = Symbol.for("react.activity"), ee = Symbol.for("react.client.reference"), Z = j.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, fe = Object.prototype.hasOwnProperty, X = Array.isArray, d = console.createTask ? console.createTask : function() {
|
|
242
242
|
return null;
|
|
243
243
|
};
|
|
244
|
-
|
|
244
|
+
j = {
|
|
245
245
|
react_stack_bottom_frame: function(o) {
|
|
246
246
|
return o();
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
|
-
var ne, K = {}, ue =
|
|
250
|
-
|
|
249
|
+
var ne, K = {}, ue = j.react_stack_bottom_frame.bind(
|
|
250
|
+
j,
|
|
251
251
|
s
|
|
252
252
|
)(), ae = d(n(s)), re = {};
|
|
253
|
-
|
|
253
|
+
Pe.Fragment = S, Pe.jsx = function(o, v, O) {
|
|
254
254
|
var M = 1e4 > Z.recentlyCreatedOwnerStacks++;
|
|
255
255
|
return m(
|
|
256
256
|
o,
|
|
257
|
-
|
|
257
|
+
v,
|
|
258
258
|
O,
|
|
259
259
|
!1,
|
|
260
260
|
M ? Error("react-stack-top-frame") : ue,
|
|
261
261
|
M ? d(n(o)) : ae
|
|
262
262
|
);
|
|
263
|
-
},
|
|
263
|
+
}, Pe.jsxs = function(o, v, O) {
|
|
264
264
|
var M = 1e4 > Z.recentlyCreatedOwnerStacks++;
|
|
265
265
|
return m(
|
|
266
266
|
o,
|
|
267
|
-
|
|
267
|
+
v,
|
|
268
268
|
O,
|
|
269
269
|
!0,
|
|
270
270
|
M ? Error("react-stack-top-frame") : ue,
|
|
271
271
|
M ? d(n(o)) : ae
|
|
272
272
|
);
|
|
273
273
|
};
|
|
274
|
-
})()),
|
|
274
|
+
})()), Pe;
|
|
275
275
|
}
|
|
276
276
|
var lr;
|
|
277
|
-
function
|
|
278
|
-
return lr || (lr = 1, process.env.NODE_ENV === "production" ?
|
|
277
|
+
function Dr() {
|
|
278
|
+
return lr || (lr = 1, process.env.NODE_ENV === "production" ? Ce.exports = Lr() : Ce.exports = Nr()), Ce.exports;
|
|
279
279
|
}
|
|
280
|
-
var
|
|
281
|
-
function
|
|
282
|
-
return
|
|
280
|
+
var U = Dr();
|
|
281
|
+
function qe() {
|
|
282
|
+
return qe = Object.assign ? Object.assign.bind() : function(e) {
|
|
283
283
|
for (var r = 1; r < arguments.length; r++) {
|
|
284
284
|
var t = arguments[r];
|
|
285
285
|
for (var n in t) ({}).hasOwnProperty.call(t, n) && (e[n] = t[n]);
|
|
286
286
|
}
|
|
287
287
|
return e;
|
|
288
|
-
},
|
|
288
|
+
}, qe.apply(null, arguments);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function zr(e) {
|
|
291
291
|
if (e.sheet)
|
|
292
292
|
return e.sheet;
|
|
293
293
|
for (var r = 0; r < document.styleSheets.length; r++)
|
|
294
294
|
if (document.styleSheets[r].ownerNode === e)
|
|
295
295
|
return document.styleSheets[r];
|
|
296
296
|
}
|
|
297
|
-
function
|
|
297
|
+
function Ur(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
|
}
|
|
@@ -310,10 +310,10 @@ var Wr = /* @__PURE__ */ (function() {
|
|
|
310
310
|
return r.hydrate = function(n) {
|
|
311
311
|
n.forEach(this._insertTag);
|
|
312
312
|
}, r.insert = function(n) {
|
|
313
|
-
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(
|
|
313
|
+
this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(Ur(this));
|
|
314
314
|
var a = this.tags[this.tags.length - 1];
|
|
315
315
|
if (this.isSpeedy) {
|
|
316
|
-
var s =
|
|
316
|
+
var s = zr(a);
|
|
317
317
|
try {
|
|
318
318
|
s.insertRule(n, s.cssRules.length);
|
|
319
319
|
} catch {
|
|
@@ -327,9 +327,9 @@ var Wr = /* @__PURE__ */ (function() {
|
|
|
327
327
|
return (a = n.parentNode) == null ? void 0 : a.removeChild(n);
|
|
328
328
|
}), this.tags = [], this.ctr = 0;
|
|
329
329
|
}, e;
|
|
330
|
-
})(),
|
|
330
|
+
})(), H = "-ms-", Ne = "-moz-", _ = "-webkit-", kr = "comm", Be = "rule", Xe = "decl", Yr = "@import", Pr = "@keyframes", qr = "@layer", Hr = Math.abs, De = String.fromCharCode, Gr = Object.assign;
|
|
331
331
|
function Br(e, r) {
|
|
332
|
-
return
|
|
332
|
+
return q(e, 0) ^ 45 ? (((r << 2 ^ q(e, 0)) << 2 ^ q(e, 1)) << 2 ^ q(e, 2)) << 2 ^ q(e, 3) : 0;
|
|
333
333
|
}
|
|
334
334
|
function Sr(e) {
|
|
335
335
|
return e.trim();
|
|
@@ -340,53 +340,53 @@ function Xr(e, r) {
|
|
|
340
340
|
function T(e, r, t) {
|
|
341
341
|
return e.replace(r, t);
|
|
342
342
|
}
|
|
343
|
-
function
|
|
343
|
+
function He(e, r) {
|
|
344
344
|
return e.indexOf(r);
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function q(e, r) {
|
|
347
347
|
return e.charCodeAt(r) | 0;
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function Ee(e, r, t) {
|
|
350
350
|
return e.slice(r, t);
|
|
351
351
|
}
|
|
352
352
|
function ie(e) {
|
|
353
353
|
return e.length;
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function Je(e) {
|
|
356
356
|
return e.length;
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function Oe(e, r) {
|
|
359
359
|
return r.push(e), e;
|
|
360
360
|
}
|
|
361
361
|
function Jr(e, r) {
|
|
362
362
|
return e.map(r).join("");
|
|
363
363
|
}
|
|
364
|
-
var
|
|
365
|
-
function
|
|
366
|
-
return { value: e, root: r, parent: t, type: n, props: a, children: s, line:
|
|
364
|
+
var ze = 1, be = 1, Er = 0, J = 0, N = 0, we = "";
|
|
365
|
+
function Ue(e, r, t, n, a, s, u) {
|
|
366
|
+
return { value: e, root: r, parent: t, type: n, props: a, children: s, line: ze, column: be, length: u, return: "" };
|
|
367
367
|
}
|
|
368
|
-
function
|
|
369
|
-
return Gr(
|
|
368
|
+
function Se(e, r) {
|
|
369
|
+
return Gr(Ue("", null, null, "", null, null, 0), e, { length: -e.length }, r);
|
|
370
370
|
}
|
|
371
371
|
function Zr() {
|
|
372
|
-
return
|
|
372
|
+
return N;
|
|
373
373
|
}
|
|
374
374
|
function Kr() {
|
|
375
|
-
return
|
|
375
|
+
return N = J > 0 ? q(we, --J) : 0, be--, N === 10 && (be = 1, ze--), N;
|
|
376
376
|
}
|
|
377
377
|
function Q() {
|
|
378
|
-
return
|
|
378
|
+
return N = J < Er ? q(we, J++) : 0, be++, N === 10 && (be = 1, ze++), N;
|
|
379
379
|
}
|
|
380
380
|
function se() {
|
|
381
|
-
return
|
|
381
|
+
return q(we, J);
|
|
382
382
|
}
|
|
383
|
-
function
|
|
383
|
+
function Ie() {
|
|
384
384
|
return J;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
return
|
|
386
|
+
function Te(e, r) {
|
|
387
|
+
return Ee(we, e, r);
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function Re(e) {
|
|
390
390
|
switch (e) {
|
|
391
391
|
// \0 \t \n \r \s whitespace token
|
|
392
392
|
case 0:
|
|
@@ -425,38 +425,38 @@ function Ee(e) {
|
|
|
425
425
|
return 0;
|
|
426
426
|
}
|
|
427
427
|
function Rr(e) {
|
|
428
|
-
return
|
|
428
|
+
return ze = be = 1, Er = ie(we = e), J = 0, [];
|
|
429
429
|
}
|
|
430
430
|
function _r(e) {
|
|
431
|
-
return
|
|
431
|
+
return we = "", e;
|
|
432
432
|
}
|
|
433
|
-
function
|
|
434
|
-
return Sr(
|
|
433
|
+
function Fe(e) {
|
|
434
|
+
return Sr(Te(J - 1, Ge(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
435
435
|
}
|
|
436
436
|
function Qr(e) {
|
|
437
|
-
for (; (
|
|
437
|
+
for (; (N = se()) && N < 33; )
|
|
438
438
|
Q();
|
|
439
|
-
return
|
|
439
|
+
return Re(e) > 2 || Re(N) > 3 ? "" : " ";
|
|
440
440
|
}
|
|
441
441
|
function et(e, r) {
|
|
442
|
-
for (; --r && Q() && !(
|
|
442
|
+
for (; --r && Q() && !(N < 48 || N > 102 || N > 57 && N < 65 || N > 70 && N < 97); )
|
|
443
443
|
;
|
|
444
|
-
return
|
|
444
|
+
return Te(e, Ie() + (r < 6 && se() == 32 && Q() == 32));
|
|
445
445
|
}
|
|
446
|
-
function
|
|
446
|
+
function Ge(e) {
|
|
447
447
|
for (; Q(); )
|
|
448
|
-
switch (
|
|
448
|
+
switch (N) {
|
|
449
449
|
// ] ) " '
|
|
450
450
|
case e:
|
|
451
451
|
return J;
|
|
452
452
|
// " '
|
|
453
453
|
case 34:
|
|
454
454
|
case 39:
|
|
455
|
-
e !== 34 && e !== 39 &&
|
|
455
|
+
e !== 34 && e !== 39 && Ge(N);
|
|
456
456
|
break;
|
|
457
457
|
// (
|
|
458
458
|
case 40:
|
|
459
|
-
e === 41 &&
|
|
459
|
+
e === 41 && Ge(e);
|
|
460
460
|
break;
|
|
461
461
|
// \
|
|
462
462
|
case 92:
|
|
@@ -466,51 +466,51 @@ function qe(e) {
|
|
|
466
466
|
return J;
|
|
467
467
|
}
|
|
468
468
|
function rt(e, r) {
|
|
469
|
-
for (; Q() && e +
|
|
470
|
-
if (e +
|
|
469
|
+
for (; Q() && e + N !== 57; )
|
|
470
|
+
if (e + N === 84 && se() === 47)
|
|
471
471
|
break;
|
|
472
|
-
return "/*" +
|
|
472
|
+
return "/*" + Te(r, J - 1) + "*" + De(e === 47 ? e : Q());
|
|
473
473
|
}
|
|
474
474
|
function tt(e) {
|
|
475
|
-
for (; !
|
|
475
|
+
for (; !Re(se()); )
|
|
476
476
|
Q();
|
|
477
|
-
return
|
|
477
|
+
return Te(e, J);
|
|
478
478
|
}
|
|
479
479
|
function nt(e) {
|
|
480
|
-
return _r(
|
|
480
|
+
return _r(Ve("", null, null, null, [""], e = Rr(e), 0, [0], e));
|
|
481
481
|
}
|
|
482
|
-
function
|
|
483
|
-
for (var b = 0, m = 0, x = u, I = 0,
|
|
484
|
-
switch (
|
|
482
|
+
function Ve(e, r, t, n, a, s, u, p, k) {
|
|
483
|
+
for (var b = 0, m = 0, x = u, I = 0, j = 0, $ = 0, w = 1, S = 1, E = 1, C = 0, V = "", D = a, z = s, F = n, R = V; S; )
|
|
484
|
+
switch ($ = C, C = Q()) {
|
|
485
485
|
// (
|
|
486
486
|
case 40:
|
|
487
|
-
if (
|
|
488
|
-
|
|
487
|
+
if ($ != 108 && q(R, x - 1) == 58) {
|
|
488
|
+
He(R += T(Fe(C), "&", "&\f"), "&\f") != -1 && (E = -1);
|
|
489
489
|
break;
|
|
490
490
|
}
|
|
491
491
|
// " ' [
|
|
492
492
|
case 34:
|
|
493
493
|
case 39:
|
|
494
494
|
case 91:
|
|
495
|
-
R +=
|
|
495
|
+
R += Fe(C);
|
|
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
|
-
R += Qr(
|
|
502
|
+
R += Qr($);
|
|
503
503
|
break;
|
|
504
504
|
// \
|
|
505
505
|
case 92:
|
|
506
|
-
R += et(
|
|
506
|
+
R += et(Ie() - 1, 7);
|
|
507
507
|
continue;
|
|
508
508
|
// /
|
|
509
509
|
case 47:
|
|
510
510
|
switch (se()) {
|
|
511
511
|
case 42:
|
|
512
512
|
case 47:
|
|
513
|
-
|
|
513
|
+
Oe(at(rt(Q(), Ie()), r, t), k);
|
|
514
514
|
break;
|
|
515
515
|
default:
|
|
516
516
|
R += "/";
|
|
@@ -530,34 +530,34 @@ function Ie(e, r, t, n, a, s, u, p, k) {
|
|
|
530
530
|
S = 0;
|
|
531
531
|
// ;
|
|
532
532
|
case 59 + m:
|
|
533
|
-
E == -1 && (R = T(R, /\f/g, "")),
|
|
533
|
+
E == -1 && (R = T(R, /\f/g, "")), j > 0 && ie(R) - x && Oe(j > 32 ? fr(R + ";", n, t, x - 1) : fr(T(R, " ", "") + ";", n, t, x - 2), k);
|
|
534
534
|
break;
|
|
535
535
|
// @ ;
|
|
536
536
|
case 59:
|
|
537
537
|
R += ";";
|
|
538
538
|
// { rule/at-rule
|
|
539
539
|
default:
|
|
540
|
-
if (
|
|
540
|
+
if (Oe(F = ur(R, r, t, b, m, a, p, V, D = [], z = [], x), s), C === 123)
|
|
541
541
|
if (m === 0)
|
|
542
|
-
|
|
542
|
+
Ve(R, r, F, F, D, s, x, p, z);
|
|
543
543
|
else
|
|
544
|
-
switch (I === 99 &&
|
|
544
|
+
switch (I === 99 && q(R, 3) === 110 ? 100 : I) {
|
|
545
545
|
// d l m s
|
|
546
546
|
case 100:
|
|
547
547
|
case 108:
|
|
548
548
|
case 109:
|
|
549
549
|
case 115:
|
|
550
|
-
|
|
550
|
+
Ve(e, F, F, n && Oe(ur(e, F, F, 0, 0, a, p, V, a, D = [], x), z), a, z, x, p, n ? D : z);
|
|
551
551
|
break;
|
|
552
552
|
default:
|
|
553
|
-
|
|
553
|
+
Ve(R, F, F, F, [""], z, 0, p, z);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
|
-
b = m =
|
|
556
|
+
b = m = j = 0, w = E = 1, V = R = "", x = u;
|
|
557
557
|
break;
|
|
558
558
|
// :
|
|
559
559
|
case 58:
|
|
560
|
-
x = 1 + ie(R),
|
|
560
|
+
x = 1 + ie(R), j = $;
|
|
561
561
|
default:
|
|
562
562
|
if (w < 1) {
|
|
563
563
|
if (C == 123)
|
|
@@ -565,7 +565,7 @@ function Ie(e, r, t, n, a, s, u, p, k) {
|
|
|
565
565
|
else if (C == 125 && w++ == 0 && Kr() == 125)
|
|
566
566
|
continue;
|
|
567
567
|
}
|
|
568
|
-
switch (R +=
|
|
568
|
+
switch (R += De(C), C * w) {
|
|
569
569
|
// &
|
|
570
570
|
case 38:
|
|
571
571
|
E = m > 0 ? 1 : (R += "\f", -1);
|
|
@@ -576,29 +576,29 @@ function Ie(e, r, t, n, a, s, u, p, k) {
|
|
|
576
576
|
break;
|
|
577
577
|
// @
|
|
578
578
|
case 64:
|
|
579
|
-
se() === 45 && (R +=
|
|
579
|
+
se() === 45 && (R += Fe(Q())), I = se(), m = x = ie(V = R += tt(Ie())), C++;
|
|
580
580
|
break;
|
|
581
581
|
// -
|
|
582
582
|
case 45:
|
|
583
|
-
|
|
583
|
+
$ === 45 && ie(R) == 2 && (w = 0);
|
|
584
584
|
}
|
|
585
585
|
}
|
|
586
586
|
return s;
|
|
587
587
|
}
|
|
588
588
|
function ur(e, r, t, n, a, s, u, p, k, b, m) {
|
|
589
|
-
for (var x = a - 1, I = a === 0 ? s : [""],
|
|
590
|
-
for (var E = 0, C =
|
|
589
|
+
for (var x = a - 1, I = a === 0 ? s : [""], j = Je(I), $ = 0, w = 0, S = 0; $ < n; ++$)
|
|
590
|
+
for (var E = 0, C = Ee(e, x + 1, x = Hr(w = u[$])), V = e; E < j; ++E)
|
|
591
591
|
(V = Sr(w > 0 ? I[E] + " " + C : T(C, /&\f/g, I[E]))) && (k[S++] = V);
|
|
592
|
-
return
|
|
592
|
+
return Ue(e, r, t, a === 0 ? Be : p, k, b, m);
|
|
593
593
|
}
|
|
594
594
|
function at(e, r, t) {
|
|
595
|
-
return
|
|
595
|
+
return Ue(e, r, t, kr, De(Zr()), Ee(e, 2, -2), 0);
|
|
596
596
|
}
|
|
597
597
|
function fr(e, r, t, n) {
|
|
598
|
-
return
|
|
598
|
+
return Ue(e, r, t, Xe, Ee(e, 0, n), Ee(e, n + 1, -1), n);
|
|
599
599
|
}
|
|
600
|
-
function
|
|
601
|
-
for (var t = "", n =
|
|
600
|
+
function ve(e, r) {
|
|
601
|
+
for (var t = "", n = Je(e), a = 0; a < n; a++)
|
|
602
602
|
t += r(e[a], a, e, r) || "";
|
|
603
603
|
return t;
|
|
604
604
|
}
|
|
@@ -607,19 +607,19 @@ function it(e, r, t, n) {
|
|
|
607
607
|
case qr:
|
|
608
608
|
if (e.children.length) break;
|
|
609
609
|
case Yr:
|
|
610
|
-
case
|
|
610
|
+
case Xe:
|
|
611
611
|
return e.return = e.return || e.value;
|
|
612
612
|
case kr:
|
|
613
613
|
return "";
|
|
614
614
|
case Pr:
|
|
615
|
-
return e.return = e.value + "{" +
|
|
616
|
-
case
|
|
615
|
+
return e.return = e.value + "{" + ve(e.children, n) + "}";
|
|
616
|
+
case Be:
|
|
617
617
|
e.value = e.props.join(",");
|
|
618
618
|
}
|
|
619
|
-
return ie(t =
|
|
619
|
+
return ie(t = ve(e.children, n)) ? e.return = e.value + "{" + t + "}" : "";
|
|
620
620
|
}
|
|
621
621
|
function ot(e) {
|
|
622
|
-
var r =
|
|
622
|
+
var r = Je(e);
|
|
623
623
|
return function(t, n, a, s) {
|
|
624
624
|
for (var u = "", p = 0; p < r; p++)
|
|
625
625
|
u += e[p](t, n, a, s) || "";
|
|
@@ -638,18 +638,18 @@ function Tr(e) {
|
|
|
638
638
|
};
|
|
639
639
|
}
|
|
640
640
|
var ct = function(r, t, n) {
|
|
641
|
-
for (var a = 0, s = 0; a = s, s = se(), a === 38 && s === 12 && (t[n] = 1), !
|
|
641
|
+
for (var a = 0, s = 0; a = s, s = se(), a === 38 && s === 12 && (t[n] = 1), !Re(s); )
|
|
642
642
|
Q();
|
|
643
|
-
return
|
|
643
|
+
return Te(r, J);
|
|
644
644
|
}, lt = function(r, t) {
|
|
645
645
|
var n = -1, a = 44;
|
|
646
646
|
do
|
|
647
|
-
switch (
|
|
647
|
+
switch (Re(a)) {
|
|
648
648
|
case 0:
|
|
649
649
|
a === 38 && se() === 12 && (t[n] = 1), r[n] += ct(J - 1, t, n);
|
|
650
650
|
break;
|
|
651
651
|
case 2:
|
|
652
|
-
r[n] +=
|
|
652
|
+
r[n] += Fe(a);
|
|
653
653
|
break;
|
|
654
654
|
case 4:
|
|
655
655
|
if (a === 44) {
|
|
@@ -658,7 +658,7 @@ var ct = function(r, t, n) {
|
|
|
658
658
|
}
|
|
659
659
|
// fallthrough
|
|
660
660
|
default:
|
|
661
|
-
r[n] +=
|
|
661
|
+
r[n] += De(a);
|
|
662
662
|
}
|
|
663
663
|
while (a = Q());
|
|
664
664
|
return r;
|
|
@@ -726,32 +726,32 @@ function Ar(e, r) {
|
|
|
726
726
|
case 4810:
|
|
727
727
|
case 6968:
|
|
728
728
|
case 2756:
|
|
729
|
-
return _ + e +
|
|
729
|
+
return _ + e + Ne + e + H + e + e;
|
|
730
730
|
// flex, flex-direction
|
|
731
731
|
case 6828:
|
|
732
732
|
case 4268:
|
|
733
|
-
return _ + e +
|
|
733
|
+
return _ + e + H + e + e;
|
|
734
734
|
// order
|
|
735
735
|
case 6165:
|
|
736
|
-
return _ + e +
|
|
736
|
+
return _ + e + H + "flex-" + e + e;
|
|
737
737
|
// align-items
|
|
738
738
|
case 5187:
|
|
739
|
-
return _ + e + T(e, /(\w+).+(:[^]+)/, _ + "box-$1$2" +
|
|
739
|
+
return _ + e + T(e, /(\w+).+(:[^]+)/, _ + "box-$1$2" + H + "flex-$1$2") + e;
|
|
740
740
|
// align-self
|
|
741
741
|
case 5443:
|
|
742
|
-
return _ + e +
|
|
742
|
+
return _ + e + H + "flex-item-" + T(e, /flex-|-self/, "") + e;
|
|
743
743
|
// align-content
|
|
744
744
|
case 4675:
|
|
745
|
-
return _ + e +
|
|
745
|
+
return _ + e + H + "flex-line-pack" + T(e, /align-content|flex-|-self/, "") + e;
|
|
746
746
|
// flex-shrink
|
|
747
747
|
case 5548:
|
|
748
|
-
return _ + e +
|
|
748
|
+
return _ + e + H + T(e, "shrink", "negative") + e;
|
|
749
749
|
// flex-basis
|
|
750
750
|
case 5292:
|
|
751
|
-
return _ + e +
|
|
751
|
+
return _ + e + H + T(e, "basis", "preferred-size") + e;
|
|
752
752
|
// flex-grow
|
|
753
753
|
case 6060:
|
|
754
|
-
return _ + "box-" + T(e, "-grow", "") + _ + e +
|
|
754
|
+
return _ + "box-" + T(e, "-grow", "") + _ + e + H + T(e, "grow", "positive") + e;
|
|
755
755
|
// transition
|
|
756
756
|
case 4554:
|
|
757
757
|
return _ + T(e, /([^-])(transform)/g, "$1" + _ + "$2") + e;
|
|
@@ -764,7 +764,7 @@ function Ar(e, r) {
|
|
|
764
764
|
return T(e, /(image-set\([^]*)/, _ + "$1$`$1");
|
|
765
765
|
// justify-content
|
|
766
766
|
case 4968:
|
|
767
|
-
return T(T(e, /(.+:)(flex-)?(.*)/, _ + "box-pack:$3" +
|
|
767
|
+
return T(T(e, /(.+:)(flex-)?(.*)/, _ + "box-pack:$3" + H + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + _ + e + e;
|
|
768
768
|
// (margin|padding)-inline-(start|end)
|
|
769
769
|
case 4095:
|
|
770
770
|
case 3583:
|
|
@@ -784,75 +784,75 @@ function Ar(e, r) {
|
|
|
784
784
|
case 5789:
|
|
785
785
|
case 5021:
|
|
786
786
|
case 4765:
|
|
787
|
-
if (ie(e) - 1 - r > 6) switch (
|
|
787
|
+
if (ie(e) - 1 - r > 6) switch (q(e, r + 1)) {
|
|
788
788
|
// (m)ax-content, (m)in-content
|
|
789
789
|
case 109:
|
|
790
|
-
if (
|
|
790
|
+
if (q(e, r + 4) !== 45) break;
|
|
791
791
|
// (f)ill-available, (f)it-content
|
|
792
792
|
case 102:
|
|
793
|
-
return T(e, /(.+:)(.+)-([^]+)/, "$1" + _ + "$2-$3$1" +
|
|
793
|
+
return T(e, /(.+:)(.+)-([^]+)/, "$1" + _ + "$2-$3$1" + Ne + (q(e, r + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
794
794
|
// (s)tretch
|
|
795
795
|
case 115:
|
|
796
|
-
return ~
|
|
796
|
+
return ~He(e, "stretch") ? Ar(T(e, "stretch", "fill-available"), r) + e : e;
|
|
797
797
|
}
|
|
798
798
|
break;
|
|
799
799
|
// position: sticky
|
|
800
800
|
case 4949:
|
|
801
|
-
if (
|
|
801
|
+
if (q(e, r + 1) !== 115) break;
|
|
802
802
|
// display: (flex|inline-flex)
|
|
803
803
|
case 6444:
|
|
804
|
-
switch (
|
|
804
|
+
switch (q(e, ie(e) - 3 - (~He(e, "!important") && 10))) {
|
|
805
805
|
// stic(k)y
|
|
806
806
|
case 107:
|
|
807
807
|
return T(e, ":", ":" + _) + e;
|
|
808
808
|
// (inline-)?fl(e)x
|
|
809
809
|
case 101:
|
|
810
|
-
return T(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + _ + (
|
|
810
|
+
return T(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + _ + (q(e, 14) === 45 ? "inline-" : "") + "box$3$1" + _ + "$2$3$1" + H + "$2box$3") + e;
|
|
811
811
|
}
|
|
812
812
|
break;
|
|
813
813
|
// writing-mode
|
|
814
814
|
case 5936:
|
|
815
|
-
switch (
|
|
815
|
+
switch (q(e, r + 11)) {
|
|
816
816
|
// vertical-l(r)
|
|
817
817
|
case 114:
|
|
818
|
-
return _ + e +
|
|
818
|
+
return _ + e + H + T(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
819
819
|
// vertical-r(l)
|
|
820
820
|
case 108:
|
|
821
|
-
return _ + e +
|
|
821
|
+
return _ + e + H + T(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
822
822
|
// horizontal(-)tb
|
|
823
823
|
case 45:
|
|
824
|
-
return _ + e +
|
|
824
|
+
return _ + e + H + T(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
825
825
|
}
|
|
826
|
-
return _ + e +
|
|
826
|
+
return _ + e + H + e + e;
|
|
827
827
|
}
|
|
828
828
|
return e;
|
|
829
829
|
}
|
|
830
830
|
var pt = function(r, t, n, a) {
|
|
831
831
|
if (r.length > -1 && !r.return) switch (r.type) {
|
|
832
|
-
case
|
|
832
|
+
case Xe:
|
|
833
833
|
r.return = Ar(r.value, r.length);
|
|
834
834
|
break;
|
|
835
835
|
case Pr:
|
|
836
|
-
return
|
|
836
|
+
return ve([Se(r, {
|
|
837
837
|
value: T(r.value, "@", "@" + _)
|
|
838
838
|
})], a);
|
|
839
|
-
case
|
|
839
|
+
case Be:
|
|
840
840
|
if (r.length) return Jr(r.props, function(s) {
|
|
841
841
|
switch (Xr(s, /(::plac\w+|:read-\w+)/)) {
|
|
842
842
|
// :read-(only|write)
|
|
843
843
|
case ":read-only":
|
|
844
844
|
case ":read-write":
|
|
845
|
-
return
|
|
846
|
-
props: [T(s, /:(read-\w+)/, ":" +
|
|
845
|
+
return ve([Se(r, {
|
|
846
|
+
props: [T(s, /:(read-\w+)/, ":" + Ne + "$1")]
|
|
847
847
|
})], a);
|
|
848
848
|
// :placeholder
|
|
849
849
|
case "::placeholder":
|
|
850
|
-
return
|
|
850
|
+
return ve([Se(r, {
|
|
851
851
|
props: [T(s, /:(plac\w+)/, ":" + _ + "input-$1")]
|
|
852
|
-
}),
|
|
853
|
-
props: [T(s, /:(plac\w+)/, ":" +
|
|
854
|
-
}),
|
|
855
|
-
props: [T(s, /:(plac\w+)/,
|
|
852
|
+
}), Se(r, {
|
|
853
|
+
props: [T(s, /:(plac\w+)/, ":" + Ne + "$1")]
|
|
854
|
+
}), Se(r, {
|
|
855
|
+
props: [T(s, /:(plac\w+)/, H + "input-$1")]
|
|
856
856
|
})], a);
|
|
857
857
|
}
|
|
858
858
|
return "";
|
|
@@ -882,14 +882,14 @@ var pt = function(r, t, n, a) {
|
|
|
882
882
|
{
|
|
883
883
|
var m, x = [it, st(function(w) {
|
|
884
884
|
m.insert(w);
|
|
885
|
-
})], I = ot(b.concat(a, x)),
|
|
886
|
-
return
|
|
885
|
+
})], I = ot(b.concat(a, x)), j = function(S) {
|
|
886
|
+
return ve(nt(S), I);
|
|
887
887
|
};
|
|
888
888
|
k = function(S, E, C, V) {
|
|
889
|
-
m = C,
|
|
889
|
+
m = C, j(S ? S + "{" + E.styles + "}" : E.styles), V && ($.inserted[E.name] = !0);
|
|
890
890
|
};
|
|
891
891
|
}
|
|
892
|
-
var
|
|
892
|
+
var $ = {
|
|
893
893
|
key: t,
|
|
894
894
|
sheet: new Wr({
|
|
895
895
|
key: t,
|
|
@@ -904,7 +904,7 @@ var pt = function(r, t, n, a) {
|
|
|
904
904
|
registered: {},
|
|
905
905
|
insert: k
|
|
906
906
|
};
|
|
907
|
-
return
|
|
907
|
+
return $.sheet.hydrate(p), $;
|
|
908
908
|
}, gt = !0;
|
|
909
909
|
function yt(e, r, t) {
|
|
910
910
|
var n = "";
|
|
@@ -1006,7 +1006,7 @@ var xt = {
|
|
|
1006
1006
|
return r.charCodeAt(1) === 45;
|
|
1007
1007
|
}, pr = function(r) {
|
|
1008
1008
|
return r != null && typeof r != "boolean";
|
|
1009
|
-
},
|
|
1009
|
+
}, Ye = /* @__PURE__ */ Tr(function(e) {
|
|
1010
1010
|
return Or(e) ? e : e.replace(wt, "-$&").toLowerCase();
|
|
1011
1011
|
}), hr = function(r, t) {
|
|
1012
1012
|
switch (r) {
|
|
@@ -1023,7 +1023,7 @@ var xt = {
|
|
|
1023
1023
|
}
|
|
1024
1024
|
return xt[r] !== 1 && !Or(r) && typeof t == "number" && t !== 0 ? t + "px" : t;
|
|
1025
1025
|
};
|
|
1026
|
-
function
|
|
1026
|
+
function _e(e, r, t) {
|
|
1027
1027
|
if (t == null)
|
|
1028
1028
|
return "";
|
|
1029
1029
|
var n = t;
|
|
@@ -1058,7 +1058,7 @@ function Re(e, r, t) {
|
|
|
1058
1058
|
case "function": {
|
|
1059
1059
|
if (e !== void 0) {
|
|
1060
1060
|
var k = oe, b = t(e);
|
|
1061
|
-
return oe = k,
|
|
1061
|
+
return oe = k, _e(e, r, b);
|
|
1062
1062
|
}
|
|
1063
1063
|
break;
|
|
1064
1064
|
}
|
|
@@ -1073,22 +1073,22 @@ function Pt(e, r, t) {
|
|
|
1073
1073
|
var n = "";
|
|
1074
1074
|
if (Array.isArray(t))
|
|
1075
1075
|
for (var a = 0; a < t.length; a++)
|
|
1076
|
-
n +=
|
|
1076
|
+
n += _e(e, r, t[a]) + ";";
|
|
1077
1077
|
else
|
|
1078
1078
|
for (var s in t) {
|
|
1079
1079
|
var u = t[s];
|
|
1080
1080
|
if (typeof u != "object") {
|
|
1081
1081
|
var p = u;
|
|
1082
|
-
r != null && r[p] !== void 0 ? n += s + "{" + r[p] + "}" : pr(p) && (n +=
|
|
1082
|
+
r != null && r[p] !== void 0 ? n += s + "{" + r[p] + "}" : pr(p) && (n += Ye(s) + ":" + hr(s, p) + ";");
|
|
1083
1083
|
} else if (Array.isArray(u) && typeof u[0] == "string" && (r == null || r[u[0]] === void 0))
|
|
1084
1084
|
for (var k = 0; k < u.length; k++)
|
|
1085
|
-
pr(u[k]) && (n +=
|
|
1085
|
+
pr(u[k]) && (n += Ye(s) + ":" + hr(s, u[k]) + ";");
|
|
1086
1086
|
else {
|
|
1087
|
-
var b =
|
|
1087
|
+
var b = _e(e, r, u);
|
|
1088
1088
|
switch (s) {
|
|
1089
1089
|
case "animation":
|
|
1090
1090
|
case "animationName": {
|
|
1091
|
-
n +=
|
|
1091
|
+
n += Ye(s) + ":" + b + ";";
|
|
1092
1092
|
break;
|
|
1093
1093
|
}
|
|
1094
1094
|
default:
|
|
@@ -1106,13 +1106,13 @@ function St(e, r, t) {
|
|
|
1106
1106
|
oe = void 0;
|
|
1107
1107
|
var s = e[0];
|
|
1108
1108
|
if (s == null || s.raw === void 0)
|
|
1109
|
-
n = !1, a +=
|
|
1109
|
+
n = !1, a += _e(t, r, s);
|
|
1110
1110
|
else {
|
|
1111
1111
|
var u = s;
|
|
1112
1112
|
a += u[0];
|
|
1113
1113
|
}
|
|
1114
1114
|
for (var p = 1; p < e.length; p++)
|
|
1115
|
-
if (a +=
|
|
1115
|
+
if (a += _e(t, r, e[p]), n) {
|
|
1116
1116
|
var k = s;
|
|
1117
1117
|
a += k[p];
|
|
1118
1118
|
}
|
|
@@ -1128,7 +1128,7 @@ function St(e, r, t) {
|
|
|
1128
1128
|
}
|
|
1129
1129
|
var Et = function(r) {
|
|
1130
1130
|
return r();
|
|
1131
|
-
}, Rt = le.useInsertionEffect ? le.useInsertionEffect : !1, _t = Rt || Et,
|
|
1131
|
+
}, Rt = le.useInsertionEffect ? le.useInsertionEffect : !1, _t = Rt || Et, jr = /* @__PURE__ */ le.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
|
|
@@ -1139,10 +1139,10 @@ var Et = function(r) {
|
|
|
1139
1139
|
key: "css"
|
|
1140
1140
|
}) : null
|
|
1141
1141
|
);
|
|
1142
|
-
|
|
1142
|
+
jr.Provider;
|
|
1143
1143
|
var Tt = function(r) {
|
|
1144
1144
|
return /* @__PURE__ */ wr(function(t, n) {
|
|
1145
|
-
var a = Ir(
|
|
1145
|
+
var a = Ir(jr);
|
|
1146
1146
|
return r(t, a, n);
|
|
1147
1147
|
});
|
|
1148
1148
|
}, At = /* @__PURE__ */ le.createContext({}), Ct = /^((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)-.*))$/, Ot = /* @__PURE__ */ Tr(
|
|
@@ -1150,13 +1150,13 @@ var Tt = function(r) {
|
|
|
1150
1150
|
return Ct.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
1151
1151
|
}
|
|
1152
1152
|
/* Z+1 */
|
|
1153
|
-
),
|
|
1153
|
+
), jt = Ot, $t = function(r) {
|
|
1154
1154
|
return r !== "theme";
|
|
1155
1155
|
}, gr = 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
|
-
r.charCodeAt(0) > 96 ?
|
|
1159
|
+
r.charCodeAt(0) > 96 ? jt : $t;
|
|
1160
1160
|
}, yr = function(r, t, n) {
|
|
1161
1161
|
var a;
|
|
1162
1162
|
if (t) {
|
|
@@ -1182,35 +1182,35 @@ var Tt = function(r) {
|
|
|
1182
1182
|
else {
|
|
1183
1183
|
var I = m[0];
|
|
1184
1184
|
x.push(I[0]);
|
|
1185
|
-
for (var
|
|
1186
|
-
x.push(m[
|
|
1185
|
+
for (var j = m.length, $ = 1; $ < j; $++)
|
|
1186
|
+
x.push(m[$], I[$]);
|
|
1187
1187
|
}
|
|
1188
1188
|
var w = Tt(function(S, E, C) {
|
|
1189
|
-
var V = b && S.as || a,
|
|
1189
|
+
var V = b && S.as || a, D = "", z = [], F = S;
|
|
1190
1190
|
if (S.theme == null) {
|
|
1191
1191
|
F = {};
|
|
1192
1192
|
for (var R in S)
|
|
1193
1193
|
F[R] = S[R];
|
|
1194
1194
|
F.theme = le.useContext(At);
|
|
1195
1195
|
}
|
|
1196
|
-
typeof S.className == "string" ?
|
|
1196
|
+
typeof S.className == "string" ? D = yt(E.registered, z, S.className) : S.className != null && (D = S.className + " ");
|
|
1197
1197
|
var te = St(x.concat(z), E.registered, F);
|
|
1198
|
-
|
|
1199
|
-
var ce = b && p === void 0 ? gr(V) : k,
|
|
1198
|
+
D += E.key + "-" + te.name, u !== void 0 && (D += " " + u);
|
|
1199
|
+
var ce = b && p === void 0 ? gr(V) : k, G = {};
|
|
1200
1200
|
for (var ee in S)
|
|
1201
|
-
b && ee === "as" || ce(ee) && (
|
|
1202
|
-
return
|
|
1201
|
+
b && ee === "as" || ce(ee) && (G[ee] = S[ee]);
|
|
1202
|
+
return G.className = D, C && (G.ref = C), /* @__PURE__ */ le.createElement(le.Fragment, null, /* @__PURE__ */ le.createElement(Mt, {
|
|
1203
1203
|
cache: E,
|
|
1204
1204
|
serialized: te,
|
|
1205
1205
|
isStringTag: typeof V == "string"
|
|
1206
|
-
}), /* @__PURE__ */ le.createElement(V,
|
|
1206
|
+
}), /* @__PURE__ */ le.createElement(V, G));
|
|
1207
1207
|
});
|
|
1208
1208
|
return w.displayName = s !== void 0 ? s : "Styled(" + (typeof a == "string" ? a : a.displayName || a.name || "Component") + ")", w.defaultProps = r.defaultProps, w.__emotion_real = w, w.__emotion_base = a, w.__emotion_styles = x, w.__emotion_forwardProp = p, Object.defineProperty(w, "toString", {
|
|
1209
1209
|
value: function() {
|
|
1210
1210
|
return "." + u;
|
|
1211
1211
|
}
|
|
1212
1212
|
}), w.withComponent = function(S, E) {
|
|
1213
|
-
var C = e(S,
|
|
1213
|
+
var C = e(S, qe({}, t, E, {
|
|
1214
1214
|
shouldForwardProp: yr(w, E, !0)
|
|
1215
1215
|
}));
|
|
1216
1216
|
return C.apply(void 0, x);
|
|
@@ -1352,11 +1352,11 @@ var Tt = function(r) {
|
|
|
1352
1352
|
"svg",
|
|
1353
1353
|
"text",
|
|
1354
1354
|
"tspan"
|
|
1355
|
-
],
|
|
1355
|
+
], xe = It.bind(null);
|
|
1356
1356
|
Ft.forEach(function(e) {
|
|
1357
|
-
|
|
1357
|
+
xe[e] = xe(e);
|
|
1358
1358
|
});
|
|
1359
|
-
const Vt =
|
|
1359
|
+
const Vt = xe.div`
|
|
1360
1360
|
display: flex;
|
|
1361
1361
|
align-items: center;
|
|
1362
1362
|
justify-content: center;
|
|
@@ -1397,11 +1397,11 @@ const Vt = be.div`
|
|
|
1397
1397
|
return "";
|
|
1398
1398
|
}
|
|
1399
1399
|
}}
|
|
1400
|
-
`, vr = ({ type: e, children: r, className: t, icon: n, action: a }) => /* @__PURE__ */
|
|
1401
|
-
n && /* @__PURE__ */
|
|
1402
|
-
/* @__PURE__ */
|
|
1403
|
-
a && /* @__PURE__ */
|
|
1404
|
-
] }), br =
|
|
1400
|
+
`, vr = ({ type: e, children: r, className: t, icon: n, action: a }) => /* @__PURE__ */ U.jsxs(Vt, { type: e, className: t, children: [
|
|
1401
|
+
n && /* @__PURE__ */ U.jsx("span", { children: n }),
|
|
1402
|
+
/* @__PURE__ */ U.jsx("span", { children: r }),
|
|
1403
|
+
a && /* @__PURE__ */ U.jsx("span", { children: a })
|
|
1404
|
+
] }), br = xe.div`
|
|
1405
1405
|
width: ${({ width: e }) => e || "100%"};
|
|
1406
1406
|
height: ${({ height: e }) => e || "100%"};
|
|
1407
1407
|
border-radius: 0px !important;
|
|
@@ -1417,7 +1417,7 @@ const Vt = be.div`
|
|
|
1417
1417
|
}
|
|
1418
1418
|
|
|
1419
1419
|
${({ $hiddenClasses: e }) => (e == null ? void 0 : e.length) && e.map((r) => `.${r} { display: none !important; }`).join("")}
|
|
1420
|
-
`, Lt =
|
|
1420
|
+
`, Lt = xe.div`
|
|
1421
1421
|
position: fixed;
|
|
1422
1422
|
top: 0;
|
|
1423
1423
|
left: 0;
|
|
@@ -1429,7 +1429,7 @@ const Vt = be.div`
|
|
|
1429
1429
|
align-items: center;
|
|
1430
1430
|
z-index: 1000;
|
|
1431
1431
|
pointer-events: auto;
|
|
1432
|
-
`, Nt =
|
|
1432
|
+
`, Nt = xe.div`
|
|
1433
1433
|
position: relative;
|
|
1434
1434
|
height: 80vh;
|
|
1435
1435
|
width: auto;
|
|
@@ -1437,34 +1437,34 @@ const Vt = be.div`
|
|
|
1437
1437
|
max-width: 90vw;
|
|
1438
1438
|
max-height: 90vh;
|
|
1439
1439
|
z-index: 1001;
|
|
1440
|
-
`, he = "https://host.vpplayer.tech",
|
|
1440
|
+
`, he = "https://host.vpplayer.tech", Dt = (e) => `${he}/player/${e}/vpplayer.js`, Qt = (e) => `${he}/player/${e}.js`, zt = (e, r) => `${he}/player/${e}/${r}.js`, Ut = (e) => `${he}/vertical-player/${e}.js`, Wt = (e, r) => `${he}/vertical-player/${e}/${r}.js`, Yt = (e, r) => `${he}/player/${e}/${r}.json`, qt = (e, r) => `${he}/vertical-player/${e}/${r}.json`, Ht = (e, r) => e ? `vp-player-${e}` : r ? `vp-player-default-${r}` : "vp-player-default", Gt = (e, r) => {
|
|
1441
1441
|
const t = new URL(e);
|
|
1442
1442
|
return t.searchParams.set("divId", r), t.toString();
|
|
1443
|
-
},
|
|
1444
|
-
const [t, n] =
|
|
1445
|
-
return
|
|
1443
|
+
}, je = /* @__PURE__ */ new Map(), Bt = (e, r) => {
|
|
1444
|
+
const [t, n] = Le(!1), [a, s] = Le(null);
|
|
1445
|
+
return Me(() => {
|
|
1446
1446
|
let u;
|
|
1447
1447
|
try {
|
|
1448
|
-
u = r ||
|
|
1448
|
+
u = r || Dt(e || "latest");
|
|
1449
1449
|
} catch (b) {
|
|
1450
1450
|
const m = b instanceof Error ? b.message : String(b);
|
|
1451
1451
|
s(`Failed to resolve script URL: ${m}`);
|
|
1452
1452
|
return;
|
|
1453
1453
|
}
|
|
1454
|
-
if (!
|
|
1454
|
+
if (!je.has(u))
|
|
1455
1455
|
if (document.querySelector(
|
|
1456
1456
|
`script[src="${u}"]`
|
|
1457
1457
|
))
|
|
1458
|
-
|
|
1458
|
+
je.set(u, Promise.resolve());
|
|
1459
1459
|
else {
|
|
1460
1460
|
const m = new Promise((x, I) => {
|
|
1461
|
-
const
|
|
1462
|
-
|
|
1461
|
+
const j = document.createElement("script");
|
|
1462
|
+
j.src = u, j.async = !0, j.onload = () => x(), j.onerror = () => I(new Error(`Failed to load script: ${u}`)), document.body.appendChild(j);
|
|
1463
1463
|
});
|
|
1464
|
-
|
|
1464
|
+
je.set(u, m);
|
|
1465
1465
|
}
|
|
1466
1466
|
let p = !0;
|
|
1467
|
-
const k =
|
|
1467
|
+
const k = je.get(u);
|
|
1468
1468
|
return k && k.then(() => {
|
|
1469
1469
|
p && (n(!0), s(null));
|
|
1470
1470
|
}).catch((b) => {
|
|
@@ -1474,7 +1474,7 @@ const Vt = be.div`
|
|
|
1474
1474
|
};
|
|
1475
1475
|
}, [e, r]), { isLoaded: t, error: a };
|
|
1476
1476
|
};
|
|
1477
|
-
function
|
|
1477
|
+
function $e(e) {
|
|
1478
1478
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
1479
1479
|
}
|
|
1480
1480
|
function xr(e, r) {
|
|
@@ -1493,13 +1493,13 @@ function xr(e, r) {
|
|
|
1493
1493
|
const u = s;
|
|
1494
1494
|
return u.videoId ?? u.mediaId;
|
|
1495
1495
|
}
|
|
1496
|
-
function
|
|
1497
|
-
if (
|
|
1496
|
+
function $r(e, r) {
|
|
1497
|
+
if (!$e(e) || !$e(r))
|
|
1498
1498
|
return r;
|
|
1499
1499
|
const t = { ...e };
|
|
1500
1500
|
for (const n of Object.keys(r)) {
|
|
1501
1501
|
const a = r[n], s = t[n];
|
|
1502
|
-
|
|
1502
|
+
$e(a) && $e(s) ? t[n] = $r(s, a) : a !== void 0 && (t[n] = a);
|
|
1503
1503
|
}
|
|
1504
1504
|
return t;
|
|
1505
1505
|
}
|
|
@@ -1533,20 +1533,20 @@ const Jt = ({
|
|
|
1533
1533
|
onPause: m,
|
|
1534
1534
|
onResume: x,
|
|
1535
1535
|
onComplete: I,
|
|
1536
|
-
onError:
|
|
1537
|
-
onVideoStarted:
|
|
1536
|
+
onError: j,
|
|
1537
|
+
onVideoStarted: $,
|
|
1538
1538
|
onTimeUpdate: w,
|
|
1539
1539
|
onQuartile25: S,
|
|
1540
1540
|
onQuartile50: E,
|
|
1541
1541
|
onQuartile75: C,
|
|
1542
1542
|
onNext: V,
|
|
1543
|
-
onPrevious:
|
|
1543
|
+
onPrevious: D,
|
|
1544
1544
|
onProgress10s: z,
|
|
1545
1545
|
onProgress20s: F,
|
|
1546
1546
|
onPlaylistItem: R,
|
|
1547
1547
|
onVideoSwitch: te
|
|
1548
1548
|
}) => {
|
|
1549
|
-
const ce = pe(null),
|
|
1549
|
+
const ce = pe(null), G = pe(null), [ee, Z] = Le(null), fe = Fr().replace(/:/g, ""), X = We(
|
|
1550
1550
|
() => Ht(s || `auto-${fe}`, r),
|
|
1551
1551
|
[s, fe, r]
|
|
1552
1552
|
), d = pe({
|
|
@@ -1555,34 +1555,34 @@ const Jt = ({
|
|
|
1555
1555
|
onPause: m,
|
|
1556
1556
|
onResume: x,
|
|
1557
1557
|
onComplete: I,
|
|
1558
|
-
onError:
|
|
1559
|
-
onVideoStarted:
|
|
1558
|
+
onError: j,
|
|
1559
|
+
onVideoStarted: $,
|
|
1560
1560
|
onTimeUpdate: w,
|
|
1561
1561
|
onQuartile25: S,
|
|
1562
1562
|
onQuartile50: E,
|
|
1563
1563
|
onQuartile75: C,
|
|
1564
1564
|
onNext: V,
|
|
1565
|
-
onPrevious:
|
|
1565
|
+
onPrevious: D,
|
|
1566
1566
|
onProgress10s: z,
|
|
1567
1567
|
onProgress20s: F,
|
|
1568
1568
|
onPlaylistItem: R,
|
|
1569
1569
|
onVideoSwitch: te
|
|
1570
1570
|
});
|
|
1571
|
-
|
|
1571
|
+
Me(() => {
|
|
1572
1572
|
d.current = {
|
|
1573
1573
|
onReady: k,
|
|
1574
1574
|
onPlay: b,
|
|
1575
1575
|
onPause: m,
|
|
1576
1576
|
onResume: x,
|
|
1577
1577
|
onComplete: I,
|
|
1578
|
-
onError:
|
|
1579
|
-
onVideoStarted:
|
|
1578
|
+
onError: j,
|
|
1579
|
+
onVideoStarted: $,
|
|
1580
1580
|
onTimeUpdate: w,
|
|
1581
1581
|
onQuartile25: S,
|
|
1582
1582
|
onQuartile50: E,
|
|
1583
1583
|
onQuartile75: C,
|
|
1584
1584
|
onNext: V,
|
|
1585
|
-
onPrevious:
|
|
1585
|
+
onPrevious: D,
|
|
1586
1586
|
onProgress10s: z,
|
|
1587
1587
|
onProgress20s: F,
|
|
1588
1588
|
onPlaylistItem: R,
|
|
@@ -1594,47 +1594,47 @@ const Jt = ({
|
|
|
1594
1594
|
m,
|
|
1595
1595
|
x,
|
|
1596
1596
|
I,
|
|
1597
|
-
$,
|
|
1598
1597
|
j,
|
|
1598
|
+
$,
|
|
1599
1599
|
w,
|
|
1600
1600
|
S,
|
|
1601
1601
|
E,
|
|
1602
1602
|
C,
|
|
1603
1603
|
V,
|
|
1604
|
-
|
|
1604
|
+
D,
|
|
1605
1605
|
z,
|
|
1606
1606
|
F,
|
|
1607
1607
|
R,
|
|
1608
1608
|
te
|
|
1609
1609
|
]);
|
|
1610
1610
|
const ne = pe(!1), K = pe(!1), ue = pe(void 0), ae = pe(a);
|
|
1611
|
-
|
|
1611
|
+
Me(() => {
|
|
1612
1612
|
ae.current = a;
|
|
1613
1613
|
});
|
|
1614
|
-
const re = !!a, o =
|
|
1614
|
+
const re = !!a, o = We(() => u || p ? !0 : t ? t.includes("vertical-player") || t.includes("vpverticalplayer") : !1, [u, p, t]), v = We(() => {
|
|
1615
1615
|
let i;
|
|
1616
1616
|
if (t)
|
|
1617
1617
|
i = t;
|
|
1618
1618
|
else if (e && r && !re)
|
|
1619
|
-
i = o ? Wt(e, r) :
|
|
1619
|
+
i = o ? Wt(e, r) : zt(e, r);
|
|
1620
1620
|
else if (e)
|
|
1621
|
-
i = o ?
|
|
1621
|
+
i = o ? Ut(e) : `https://host.vpplayer.tech/player/${e}.js`;
|
|
1622
1622
|
else
|
|
1623
1623
|
return null;
|
|
1624
|
-
return Gt(i,
|
|
1624
|
+
return Gt(i, X);
|
|
1625
1625
|
}, [
|
|
1626
1626
|
t,
|
|
1627
1627
|
e,
|
|
1628
1628
|
r,
|
|
1629
1629
|
o,
|
|
1630
|
-
|
|
1630
|
+
X,
|
|
1631
1631
|
re
|
|
1632
1632
|
]), { isLoaded: O, error: M } = Bt(
|
|
1633
1633
|
null,
|
|
1634
|
-
|
|
1634
|
+
v || void 0
|
|
1635
1635
|
);
|
|
1636
|
-
return
|
|
1637
|
-
if (!
|
|
1636
|
+
return Me(() => {
|
|
1637
|
+
if (!v) {
|
|
1638
1638
|
Z(
|
|
1639
1639
|
"VPPlayer: Provide scriptUrl OR (scriptId + videoId) OR (scriptId + config) to initialize the player."
|
|
1640
1640
|
);
|
|
@@ -1649,33 +1649,33 @@ const Jt = ({
|
|
|
1649
1649
|
return (async () => {
|
|
1650
1650
|
var P;
|
|
1651
1651
|
try {
|
|
1652
|
-
const
|
|
1653
|
-
if (!
|
|
1652
|
+
const B = o ? window.vpVerticalPlayer : window.vpPlayer;
|
|
1653
|
+
if (!B) {
|
|
1654
1654
|
Z(
|
|
1655
1655
|
`VP Player: Script loaded but global function not found. Expected ${o ? "vpVerticalPlayer" : "vpPlayer"}.`
|
|
1656
1656
|
);
|
|
1657
1657
|
return;
|
|
1658
1658
|
}
|
|
1659
|
-
if (await new Promise((A) => setTimeout(A, 0)), !document.getElementById(
|
|
1659
|
+
if (await new Promise((A) => setTimeout(A, 0)), !document.getElementById(X)) {
|
|
1660
1660
|
console.error(
|
|
1661
|
-
`VP Player: Container element with ID '${
|
|
1661
|
+
`VP Player: Container element with ID '${X}' not found in DOM.`
|
|
1662
1662
|
);
|
|
1663
1663
|
return;
|
|
1664
1664
|
}
|
|
1665
|
-
const g =
|
|
1665
|
+
const g = B(X);
|
|
1666
1666
|
if (!g) {
|
|
1667
1667
|
Z("VP Player: Failed to get player instance.");
|
|
1668
1668
|
return;
|
|
1669
1669
|
}
|
|
1670
1670
|
if (i) {
|
|
1671
|
-
if (
|
|
1671
|
+
if (G.current = g, Z(null), re && ae.current) {
|
|
1672
1672
|
let A;
|
|
1673
1673
|
const f = await Xt(
|
|
1674
1674
|
e,
|
|
1675
1675
|
r,
|
|
1676
1676
|
o
|
|
1677
1677
|
);
|
|
1678
|
-
f ? A =
|
|
1678
|
+
f ? A = $r(f, ae.current) : A = ae.current, n && !A.projectId && (A.projectId = n);
|
|
1679
1679
|
try {
|
|
1680
1680
|
await g.setup(A);
|
|
1681
1681
|
} catch (c) {
|
|
@@ -1685,14 +1685,14 @@ const Jt = ({
|
|
|
1685
1685
|
"VP Player: Player already initialized, attempting to destroy and retry."
|
|
1686
1686
|
);
|
|
1687
1687
|
try {
|
|
1688
|
-
if ((P = g.destroy) == null || P.call(g), await new Promise((
|
|
1689
|
-
const
|
|
1690
|
-
|
|
1688
|
+
if ((P = g.destroy) == null || P.call(g), await new Promise((y) => setTimeout(y, 50)), i && document.getElementById(X)) {
|
|
1689
|
+
const y = B(X);
|
|
1690
|
+
y && (await y.setup(A), G.current = y);
|
|
1691
1691
|
}
|
|
1692
|
-
} catch (
|
|
1692
|
+
} catch (y) {
|
|
1693
1693
|
console.error(
|
|
1694
1694
|
"VP Player: Failed to recover from initialization error",
|
|
1695
|
-
|
|
1695
|
+
y
|
|
1696
1696
|
);
|
|
1697
1697
|
}
|
|
1698
1698
|
} else {
|
|
@@ -1704,23 +1704,21 @@ const Jt = ({
|
|
|
1704
1704
|
if (g.on) {
|
|
1705
1705
|
const A = g.on.bind(g);
|
|
1706
1706
|
A("vp-event", (f) => {
|
|
1707
|
-
var
|
|
1707
|
+
var y, L, W, Y, Ae, ge, Ze, Ke, Qe, er, rr, tr, nr, ar, ir;
|
|
1708
1708
|
const c = f, h = c == null ? void 0 : c.eventName;
|
|
1709
1709
|
if (o) {
|
|
1710
1710
|
if (h === "play" && !K.current) {
|
|
1711
|
-
const
|
|
1712
|
-
(
|
|
1711
|
+
const ye = g.videoObject;
|
|
1712
|
+
(L = (y = d.current).onPlay) == null || L.call(y, ye);
|
|
1713
1713
|
}
|
|
1714
1714
|
if (h === "vp-state-paused") {
|
|
1715
|
-
const de = ((
|
|
1716
|
-
!de &&
|
|
1715
|
+
const de = ((W = g.isEnded) == null ? void 0 : W.call(g)) ?? !1, ye = (c == null ? void 0 : c.interaction) ?? !0;
|
|
1716
|
+
!de && ye && (K.current = !0, (ge = (Ae = d.current).onPause) == null || ge.call(Ae, ((Y = g.getPosition) == null ? void 0 : Y.call(g)) ?? 0));
|
|
1717
1717
|
}
|
|
1718
1718
|
if (h === "vp-state-playing" && (((c == null ? void 0 : c.interaction) ?? K.current) && K.current && ((Qe = (Ke = d.current).onResume) == null || Qe.call(Ke, ((Ze = g.getPosition) == null ? void 0 : Ze.call(g)) ?? 0)), K.current = !1), h === "vp-video-switch") {
|
|
1719
1719
|
K.current = !1;
|
|
1720
|
-
const de = c;
|
|
1721
|
-
(rr = (er = d.current).onVideoSwitch) == null || rr.call(er, de);
|
|
1722
|
-
const ge = de.direction, or = de.currentTime ?? 0;
|
|
1723
|
-
ge === "next" ? (nr = (tr = d.current).onNext) == null || nr.call(tr, or) : ge === "prev" && ((ir = (ar = d.current).onPrevious) == null || ir.call(ar, or));
|
|
1720
|
+
const de = c, ye = de.direction, or = de.currentTime ?? 0;
|
|
1721
|
+
(rr = (er = d.current).onVideoSwitch) == null || rr.call(er, de), ye === "next" ? (nr = (tr = d.current).onNext) == null || nr.call(tr, or) : ye === "prev" && ((ir = (ar = d.current).onPrevious) == null || ir.call(ar, or));
|
|
1724
1722
|
}
|
|
1725
1723
|
h === "vp-video-completed" && (K.current = !1);
|
|
1726
1724
|
}
|
|
@@ -1737,31 +1735,36 @@ const Jt = ({
|
|
|
1737
1735
|
var f, c, h;
|
|
1738
1736
|
(h = (c = d.current).onPause) == null || h.call(c, ((f = g.getPosition) == null ? void 0 : f.call(g)) ?? 0);
|
|
1739
1737
|
}), A("error", (f) => {
|
|
1740
|
-
var h,
|
|
1738
|
+
var h, y;
|
|
1741
1739
|
const c = typeof f == "string" ? f : (f == null ? void 0 : f.message) || "Unknown error";
|
|
1742
|
-
(
|
|
1740
|
+
(y = (h = d.current).onError) == null || y.call(h, c);
|
|
1743
1741
|
}), o ? (A("vp-first-frame", () => {
|
|
1744
|
-
var h,
|
|
1742
|
+
var h, y;
|
|
1745
1743
|
const c = g.videoObject;
|
|
1746
|
-
(
|
|
1744
|
+
(y = (h = d.current).onReady) == null || y.call(h, c);
|
|
1747
1745
|
}), A("vp-video-started", (f) => {
|
|
1748
|
-
var
|
|
1749
|
-
|
|
1746
|
+
var W, Y;
|
|
1747
|
+
const c = f ?? {}, L = {
|
|
1748
|
+
...g.videoObject ?? {}
|
|
1749
|
+
};
|
|
1750
|
+
for (const [Ae, ge] of Object.entries(c))
|
|
1751
|
+
ge != null && (L[Ae] = ge);
|
|
1752
|
+
(Y = (W = d.current).onVideoStarted) == null || Y.call(W, L);
|
|
1750
1753
|
}), A("vp-twenty-view", () => {
|
|
1751
|
-
var c, h,
|
|
1754
|
+
var c, h, y;
|
|
1752
1755
|
const f = ((c = g.getPosition) == null ? void 0 : c.call(g)) ?? 20;
|
|
1753
|
-
(
|
|
1756
|
+
(y = (h = d.current).onProgress20s) == null || y.call(h, Math.floor(f));
|
|
1754
1757
|
}), A("vp-video-state", () => {
|
|
1755
|
-
var c, h,
|
|
1758
|
+
var c, h, y;
|
|
1756
1759
|
const f = ((c = g.getPosition) == null ? void 0 : c.call(g)) ?? 0;
|
|
1757
|
-
(
|
|
1760
|
+
(y = (h = d.current).onProgress10s) == null || y.call(
|
|
1758
1761
|
h,
|
|
1759
1762
|
Math.floor(f)
|
|
1760
1763
|
);
|
|
1761
1764
|
}), A("vp-time", (f) => {
|
|
1762
|
-
var h,
|
|
1765
|
+
var h, y, L;
|
|
1763
1766
|
let c = 0;
|
|
1764
|
-
typeof f == "number" ? c = f : f && typeof f == "object" && "position" in f ? c = f.position : c = ((h = g.getPosition) == null ? void 0 : h.call(g)) ?? 0, (
|
|
1767
|
+
typeof f == "number" ? c = f : f && typeof f == "object" && "position" in f ? c = f.position : c = ((h = g.getPosition) == null ? void 0 : h.call(g)) ?? 0, (L = (y = d.current).onTimeUpdate) == null || L.call(y, c);
|
|
1765
1768
|
}), A("vp-video-completed", () => {
|
|
1766
1769
|
var f, c;
|
|
1767
1770
|
(c = (f = d.current).onComplete) == null || c.call(f);
|
|
@@ -1769,73 +1772,73 @@ const Jt = ({
|
|
|
1769
1772
|
var f, c;
|
|
1770
1773
|
(c = (f = d.current).onReady) == null || c.call(f);
|
|
1771
1774
|
}), A("play", (f) => {
|
|
1772
|
-
var h,
|
|
1775
|
+
var h, y, L, W, Y;
|
|
1773
1776
|
const c = f;
|
|
1774
|
-
c != null && c.resume || c != null && c.afterPause ? (
|
|
1777
|
+
c != null && c.resume || c != null && c.afterPause ? (L = (y = d.current).onResume) == null || L.call(y, ((h = g.getPosition) == null ? void 0 : h.call(g)) ?? 0) : (Y = (W = d.current).onPlay) == null || Y.call(W);
|
|
1775
1778
|
}), A("complete", () => {
|
|
1776
1779
|
var f, c;
|
|
1777
1780
|
(c = (f = d.current).onComplete) == null || c.call(f), ne.current = !1;
|
|
1778
1781
|
}), A("video-started", (f) => {
|
|
1779
|
-
var
|
|
1780
|
-
const c = f ?? {}, h = c.videoId || ue.current,
|
|
1782
|
+
var W, Y;
|
|
1783
|
+
const c = f ?? {}, h = c.videoId || ue.current, y = xr(h, g), L = {
|
|
1781
1784
|
...c,
|
|
1782
1785
|
videoId: h,
|
|
1783
|
-
nextVideoId:
|
|
1786
|
+
nextVideoId: y
|
|
1784
1787
|
};
|
|
1785
|
-
(
|
|
1788
|
+
(Y = (W = d.current).onVideoStarted) == null || Y.call(W, L);
|
|
1786
1789
|
}), A("video-state", () => {
|
|
1787
|
-
var c, h,
|
|
1790
|
+
var c, h, y;
|
|
1788
1791
|
const f = ((c = g.getPosition) == null ? void 0 : c.call(g)) ?? 0;
|
|
1789
|
-
(
|
|
1792
|
+
(y = (h = d.current).onProgress10s) == null || y.call(
|
|
1790
1793
|
h,
|
|
1791
1794
|
Math.floor(f)
|
|
1792
1795
|
);
|
|
1793
1796
|
}), A("time", (f) => {
|
|
1794
|
-
var h,
|
|
1797
|
+
var h, y, L, W, Y;
|
|
1795
1798
|
let c = 0;
|
|
1796
|
-
typeof f == "number" ? c = f : f && typeof f == "object" && "position" in f ? c = f.position : c = ((h = g.getPosition) == null ? void 0 : h.call(g)) ?? 0, (
|
|
1799
|
+
typeof f == "number" ? c = f : f && typeof f == "object" && "position" in f ? c = f.position : c = ((h = g.getPosition) == null ? void 0 : h.call(g)) ?? 0, (L = (y = d.current).onTimeUpdate) == null || L.call(y, c), !ne.current && c >= 20 && (ne.current = !0, (Y = (W = d.current).onProgress20s) == null || Y.call(W, Math.floor(c)));
|
|
1797
1800
|
}), A("playlistItem", (f) => {
|
|
1798
|
-
var
|
|
1801
|
+
var W, Y;
|
|
1799
1802
|
ne.current = !1;
|
|
1800
1803
|
const c = f;
|
|
1801
1804
|
ue.current = c == null ? void 0 : c.id;
|
|
1802
|
-
const h = c == null ? void 0 : c.id,
|
|
1805
|
+
const h = c == null ? void 0 : c.id, y = xr(h, g), L = {
|
|
1803
1806
|
videoId: h,
|
|
1804
|
-
nextVideoId:
|
|
1807
|
+
nextVideoId: y
|
|
1805
1808
|
};
|
|
1806
|
-
(
|
|
1809
|
+
(Y = (W = d.current).onPlaylistItem) == null || Y.call(W, L);
|
|
1807
1810
|
}), A("nextClick", (f) => {
|
|
1808
|
-
var
|
|
1811
|
+
var y, L;
|
|
1809
1812
|
const c = f, h = (c == null ? void 0 : c.currentTime) ?? 0;
|
|
1810
|
-
(
|
|
1813
|
+
(L = (y = d.current).onNext) == null || L.call(y, h);
|
|
1811
1814
|
}), A("vp-video-switch", (f) => {
|
|
1812
|
-
var h,
|
|
1815
|
+
var h, y;
|
|
1813
1816
|
const c = f ?? {};
|
|
1814
|
-
(
|
|
1817
|
+
(y = (h = d.current).onVideoSwitch) == null || y.call(h, c);
|
|
1815
1818
|
}));
|
|
1816
1819
|
}
|
|
1817
1820
|
}
|
|
1818
|
-
} catch (
|
|
1821
|
+
} catch (B) {
|
|
1819
1822
|
if (i) {
|
|
1820
|
-
const me =
|
|
1821
|
-
Z(me), console.error("VP Player initialization error:",
|
|
1823
|
+
const me = B instanceof Error ? B.message : String(B);
|
|
1824
|
+
Z(me), console.error("VP Player initialization error:", B);
|
|
1822
1825
|
}
|
|
1823
1826
|
}
|
|
1824
1827
|
})(), () => {
|
|
1825
1828
|
var P;
|
|
1826
|
-
if (i = !1, (P =
|
|
1829
|
+
if (i = !1, (P = G.current) != null && P.destroy) {
|
|
1827
1830
|
try {
|
|
1828
|
-
|
|
1831
|
+
G.current.destroy();
|
|
1829
1832
|
} catch {
|
|
1830
1833
|
}
|
|
1831
|
-
|
|
1834
|
+
G.current = null;
|
|
1832
1835
|
}
|
|
1833
1836
|
};
|
|
1834
1837
|
}, [
|
|
1835
1838
|
O,
|
|
1836
|
-
|
|
1839
|
+
X,
|
|
1837
1840
|
M,
|
|
1838
|
-
|
|
1841
|
+
v,
|
|
1839
1842
|
o,
|
|
1840
1843
|
re,
|
|
1841
1844
|
e,
|
|
@@ -1843,11 +1846,11 @@ const Jt = ({
|
|
|
1843
1846
|
r
|
|
1844
1847
|
]), {
|
|
1845
1848
|
playerRef: ce,
|
|
1846
|
-
playerInstanceRef:
|
|
1849
|
+
playerInstanceRef: G,
|
|
1847
1850
|
isScriptLoaded: O,
|
|
1848
1851
|
isLoading: !O && !ee,
|
|
1849
1852
|
error: ee,
|
|
1850
|
-
generatedPlayerId:
|
|
1853
|
+
generatedPlayerId: X
|
|
1851
1854
|
};
|
|
1852
1855
|
}, Zt = wr(
|
|
1853
1856
|
({
|
|
@@ -1864,25 +1867,25 @@ const Jt = ({
|
|
|
1864
1867
|
className: m,
|
|
1865
1868
|
hiddenClasses: x = [],
|
|
1866
1869
|
onReady: I,
|
|
1867
|
-
onPlay:
|
|
1868
|
-
onPause:
|
|
1870
|
+
onPlay: j,
|
|
1871
|
+
onPause: $,
|
|
1869
1872
|
onResume: w,
|
|
1870
1873
|
onComplete: S,
|
|
1871
1874
|
onError: E,
|
|
1872
1875
|
onVideoStarted: C,
|
|
1873
1876
|
onTimeUpdate: V,
|
|
1874
|
-
onQuartile25:
|
|
1877
|
+
onQuartile25: D,
|
|
1875
1878
|
onQuartile50: z,
|
|
1876
1879
|
onQuartile75: F,
|
|
1877
1880
|
onNext: R,
|
|
1878
1881
|
onPrevious: te,
|
|
1879
1882
|
onProgress10s: ce,
|
|
1880
|
-
onProgress20s:
|
|
1883
|
+
onProgress20s: G,
|
|
1881
1884
|
onPlaylistItem: ee,
|
|
1882
1885
|
onVideoSwitch: Z
|
|
1883
1886
|
}, fe) => {
|
|
1884
1887
|
const {
|
|
1885
|
-
playerRef:
|
|
1888
|
+
playerRef: X,
|
|
1886
1889
|
playerInstanceRef: d,
|
|
1887
1890
|
isScriptLoaded: ne,
|
|
1888
1891
|
isLoading: K,
|
|
@@ -1898,20 +1901,20 @@ const Jt = ({
|
|
|
1898
1901
|
isVertical: u,
|
|
1899
1902
|
isReels: p,
|
|
1900
1903
|
onReady: I,
|
|
1901
|
-
onPlay:
|
|
1902
|
-
onPause:
|
|
1904
|
+
onPlay: j,
|
|
1905
|
+
onPause: $,
|
|
1903
1906
|
onResume: w,
|
|
1904
1907
|
onComplete: S,
|
|
1905
1908
|
onError: E,
|
|
1906
1909
|
onVideoStarted: C,
|
|
1907
1910
|
onTimeUpdate: V,
|
|
1908
|
-
onQuartile25:
|
|
1911
|
+
onQuartile25: D,
|
|
1909
1912
|
onQuartile50: z,
|
|
1910
1913
|
onQuartile75: F,
|
|
1911
1914
|
onNext: R,
|
|
1912
1915
|
onPrevious: te,
|
|
1913
1916
|
onProgress10s: ce,
|
|
1914
|
-
onProgress20s:
|
|
1917
|
+
onProgress20s: G,
|
|
1915
1918
|
onPlaylistItem: ee,
|
|
1916
1919
|
onVideoSwitch: Z
|
|
1917
1920
|
});
|
|
@@ -2013,16 +2016,16 @@ const Jt = ({
|
|
|
2013
2016
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2014
2017
|
[]
|
|
2015
2018
|
);
|
|
2016
|
-
const [re, o] =
|
|
2019
|
+
const [re, o] = Le(!0), v = () => p && o(!0), O = () => {
|
|
2017
2020
|
var i, l;
|
|
2018
2021
|
!p || !re || (o(!1), (l = (i = d.current) == null ? void 0 : i.pause) == null || l.call(i), b == null || b());
|
|
2019
2022
|
};
|
|
2020
2023
|
if (ue)
|
|
2021
|
-
return /* @__PURE__ */
|
|
2024
|
+
return /* @__PURE__ */ U.jsxs(vr, { type: "error", children: [
|
|
2022
2025
|
"An error occurred: ",
|
|
2023
2026
|
ue
|
|
2024
2027
|
] });
|
|
2025
|
-
const M = () => /* @__PURE__ */
|
|
2028
|
+
const M = () => /* @__PURE__ */ U.jsx(
|
|
2026
2029
|
"div",
|
|
2027
2030
|
{
|
|
2028
2031
|
style: {
|
|
@@ -2037,14 +2040,14 @@ const Jt = ({
|
|
|
2037
2040
|
background: "rgba(0,0,0,0.8)",
|
|
2038
2041
|
zIndex: 10
|
|
2039
2042
|
},
|
|
2040
|
-
children: /* @__PURE__ */
|
|
2043
|
+
children: /* @__PURE__ */ U.jsx(vr, { type: "loading", children: "Loading..." })
|
|
2041
2044
|
}
|
|
2042
2045
|
);
|
|
2043
|
-
return p ? /* @__PURE__ */
|
|
2044
|
-
!re && /* @__PURE__ */
|
|
2046
|
+
return p ? /* @__PURE__ */ U.jsxs(U.Fragment, { children: [
|
|
2047
|
+
!re && /* @__PURE__ */ U.jsx(
|
|
2045
2048
|
"div",
|
|
2046
2049
|
{
|
|
2047
|
-
onClick:
|
|
2050
|
+
onClick: v,
|
|
2048
2051
|
style: {
|
|
2049
2052
|
cursor: "pointer",
|
|
2050
2053
|
width: "100%",
|
|
@@ -2055,12 +2058,12 @@ const Jt = ({
|
|
|
2055
2058
|
}
|
|
2056
2059
|
}
|
|
2057
2060
|
),
|
|
2058
|
-
re && /* @__PURE__ */
|
|
2061
|
+
re && /* @__PURE__ */ U.jsx(Lt, { onClick: O, className: m, children: /* @__PURE__ */ U.jsx(
|
|
2059
2062
|
Nt,
|
|
2060
2063
|
{
|
|
2061
2064
|
className: m,
|
|
2062
2065
|
onClick: (i) => i.stopPropagation(),
|
|
2063
|
-
children: /* @__PURE__ */
|
|
2066
|
+
children: /* @__PURE__ */ U.jsxs(
|
|
2064
2067
|
"div",
|
|
2065
2068
|
{
|
|
2066
2069
|
style: {
|
|
@@ -2069,36 +2072,36 @@ const Jt = ({
|
|
|
2069
2072
|
height: "100%"
|
|
2070
2073
|
},
|
|
2071
2074
|
children: [
|
|
2072
|
-
/* @__PURE__ */
|
|
2075
|
+
/* @__PURE__ */ U.jsx(
|
|
2073
2076
|
br,
|
|
2074
2077
|
{
|
|
2075
2078
|
id: ae,
|
|
2076
|
-
ref:
|
|
2079
|
+
ref: X,
|
|
2077
2080
|
width: "100%",
|
|
2078
2081
|
height: "100%",
|
|
2079
2082
|
$hiddenClasses: x,
|
|
2080
2083
|
className: m
|
|
2081
2084
|
}
|
|
2082
2085
|
),
|
|
2083
|
-
(K || !ne) && /* @__PURE__ */
|
|
2086
|
+
(K || !ne) && /* @__PURE__ */ U.jsx(M, {})
|
|
2084
2087
|
]
|
|
2085
2088
|
}
|
|
2086
2089
|
)
|
|
2087
2090
|
}
|
|
2088
2091
|
) })
|
|
2089
|
-
] }) : /* @__PURE__ */
|
|
2090
|
-
/* @__PURE__ */
|
|
2092
|
+
] }) : /* @__PURE__ */ U.jsxs("div", { style: { position: "relative", width: "100%", height: "100%" }, children: [
|
|
2093
|
+
/* @__PURE__ */ U.jsx(
|
|
2091
2094
|
br,
|
|
2092
2095
|
{
|
|
2093
2096
|
id: ae,
|
|
2094
|
-
ref:
|
|
2097
|
+
ref: X,
|
|
2095
2098
|
width: "100%",
|
|
2096
2099
|
height: "100%",
|
|
2097
2100
|
$hiddenClasses: x,
|
|
2098
2101
|
className: m
|
|
2099
2102
|
}
|
|
2100
2103
|
),
|
|
2101
|
-
(K || !ne) && /* @__PURE__ */
|
|
2104
|
+
(K || !ne) && /* @__PURE__ */ U.jsx(M, {})
|
|
2102
2105
|
] });
|
|
2103
2106
|
}
|
|
2104
2107
|
);
|
|
@@ -2111,10 +2114,10 @@ export {
|
|
|
2111
2114
|
he as VP_PLAYER_BASE_URL,
|
|
2112
2115
|
Gt as appendDivIdToUrl,
|
|
2113
2116
|
Ht as generatePlayerId,
|
|
2114
|
-
|
|
2117
|
+
zt as getFullyManagedPlayerScriptUrl,
|
|
2115
2118
|
Qt as getManagedPlayerScriptUrl,
|
|
2116
|
-
|
|
2117
|
-
|
|
2119
|
+
Dt as getPlayerScriptUrl,
|
|
2120
|
+
Ut as getVerticalPlayerScriptUrl,
|
|
2118
2121
|
Jt as useVPPlayerLogic,
|
|
2119
2122
|
Bt as useVPPlayerScript
|
|
2120
2123
|
};
|