@netless/window-manager 0.4.75 → 0.4.76-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +14 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +218 -212
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
@@ -23,7 +23,7 @@ import { debounce, isEqual, omit, isObject, has, get, size as size$1, mapValues,
|
|
23
23
|
import { ScenePathType, UpdateEventKind, listenUpdated, unlistenUpdated, reaction, autorun, toJS, listenDisposed, unlistenDisposed, ViewMode, AnimationMode, isPlayer, isRoom, WhiteVersion, ApplianceNames, RoomPhase, PlayerPhase, InvisiblePlugin } from "white-web-sdk";
|
24
24
|
import { v4 } from "uuid";
|
25
25
|
import { ResizeObserver as ResizeObserver$3 } from "@juggle/resize-observer";
|
26
|
-
import
|
26
|
+
import p$1 from "video.js";
|
27
27
|
var Events = /* @__PURE__ */ ((Events2) => {
|
28
28
|
Events2["AppMove"] = "AppMove";
|
29
29
|
Events2["AppFocus"] = "AppFocus";
|
@@ -3074,7 +3074,7 @@ var objectAssign = shouldUseNative$1() ? Object.assign : function(target, source
|
|
3074
3074
|
* This source code is licensed under the MIT license found in the
|
3075
3075
|
* LICENSE file in the root directory of this source tree.
|
3076
3076
|
*/
|
3077
|
-
var l$1 = objectAssign, n$2 = typeof Symbol === "function" && Symbol.for, p
|
3077
|
+
var l$1 = objectAssign, n$2 = typeof Symbol === "function" && Symbol.for, p = n$2 ? Symbol.for("react.element") : 60103, q$1 = n$2 ? Symbol.for("react.portal") : 60106, r$3 = n$2 ? Symbol.for("react.fragment") : 60107, t$3 = n$2 ? Symbol.for("react.strict_mode") : 60108, u$3 = n$2 ? Symbol.for("react.profiler") : 60114, v$2 = n$2 ? Symbol.for("react.provider") : 60109, w$1 = n$2 ? Symbol.for("react.context") : 60110, x$1 = n$2 ? Symbol.for("react.forward_ref") : 60112, y$1 = n$2 ? Symbol.for("react.suspense") : 60113, z$1 = n$2 ? Symbol.for("react.memo") : 60115, A$1 = n$2 ? Symbol.for("react.lazy") : 60116, B$1 = typeof Symbol === "function" && Symbol.iterator;
|
3078
3078
|
function C$2(a2) {
|
3079
3079
|
for (var b2 = "https://reactjs.org/docs/error-decoder.html?invariant=" + a2, c2 = 1; c2 < arguments.length; c2++)
|
3080
3080
|
b2 += "&args[]=" + encodeURIComponent(arguments[c2]);
|
@@ -3131,13 +3131,13 @@ function M$2(a2, b2, c2) {
|
|
3131
3131
|
if (a2 && a2.defaultProps)
|
3132
3132
|
for (e2 in f2 = a2.defaultProps, f2)
|
3133
3133
|
d[e2] === void 0 && (d[e2] = f2[e2]);
|
3134
|
-
return { $$typeof: p
|
3134
|
+
return { $$typeof: p, type: a2, key: g2, ref: k2, props: d, _owner: J$2.current };
|
3135
3135
|
}
|
3136
3136
|
function N$2(a2, b2) {
|
3137
|
-
return { $$typeof: p
|
3137
|
+
return { $$typeof: p, type: a2.type, key: b2, ref: a2.ref, props: a2.props, _owner: a2._owner };
|
3138
3138
|
}
|
3139
3139
|
function O$2(a2) {
|
3140
|
-
return typeof a2 === "object" && a2 !== null && a2.$$typeof === p
|
3140
|
+
return typeof a2 === "object" && a2 !== null && a2.$$typeof === p;
|
3141
3141
|
}
|
3142
3142
|
function escape(a2) {
|
3143
3143
|
var b2 = { "=": "=0", ":": "=2" };
|
@@ -3181,7 +3181,7 @@ function T$2(a2, b2, c2, e2) {
|
|
3181
3181
|
break;
|
3182
3182
|
case "object":
|
3183
3183
|
switch (a2.$$typeof) {
|
3184
|
-
case p
|
3184
|
+
case p:
|
3185
3185
|
case q$1:
|
3186
3186
|
g2 = true;
|
3187
3187
|
}
|
@@ -3263,7 +3263,7 @@ react_production_min.Children = { map: function(a2, b2, c2) {
|
|
3263
3263
|
} };
|
3264
3264
|
react_production_min.Component = F$2;
|
3265
3265
|
react_production_min.Fragment = r$3;
|
3266
|
-
react_production_min.Profiler = u$
|
3266
|
+
react_production_min.Profiler = u$3;
|
3267
3267
|
react_production_min.PureComponent = H$2;
|
3268
3268
|
react_production_min.StrictMode = t$3;
|
3269
3269
|
react_production_min.Suspense = y$1;
|
@@ -3290,7 +3290,7 @@ react_production_min.cloneElement = function(a2, b2, c2) {
|
|
3290
3290
|
e2.children = f2;
|
3291
3291
|
}
|
3292
3292
|
return {
|
3293
|
-
$$typeof: p
|
3293
|
+
$$typeof: p,
|
3294
3294
|
type: a2.type,
|
3295
3295
|
key: d,
|
3296
3296
|
ref: g2,
|
@@ -4535,10 +4535,10 @@ function t$2(e2, s2, t2, i2) {
|
|
4535
4535
|
}
|
4536
4536
|
function i$1(e2, s2) {
|
4537
4537
|
Object.keys(s2).forEach((r2) => {
|
4538
|
-
u$
|
4538
|
+
u$2(e2, r2, s2[r2]);
|
4539
4539
|
});
|
4540
4540
|
}
|
4541
|
-
function u$
|
4541
|
+
function u$2(e2, s2, r2) {
|
4542
4542
|
var t2;
|
4543
4543
|
return Object.defineProperties(e2, { [s2]: { get: () => r2.value }, [`_${s2}$`]: { value: r2 }, [`set${t2 = s2, t2[0].toUpperCase() + t2.slice(1)}`]: { value: (e3, s3) => r2.setValue(e3, s3) } }), e2;
|
4544
4544
|
}
|
@@ -11038,13 +11038,13 @@ var scheduler_production_min = {};
|
|
11038
11038
|
* LICENSE file in the root directory of this source tree.
|
11039
11039
|
*/
|
11040
11040
|
var aa = react.exports, n$1 = objectAssign, r$1 = scheduler.exports;
|
11041
|
-
function u(a2) {
|
11041
|
+
function u$1(a2) {
|
11042
11042
|
for (var b2 = "https://reactjs.org/docs/error-decoder.html?invariant=" + a2, c2 = 1; c2 < arguments.length; c2++)
|
11043
11043
|
b2 += "&args[]=" + encodeURIComponent(arguments[c2]);
|
11044
11044
|
return "Minified React error #" + a2 + "; visit " + b2 + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
11045
11045
|
}
|
11046
11046
|
if (!aa)
|
11047
|
-
throw Error(u(227));
|
11047
|
+
throw Error(u$1(227));
|
11048
11048
|
function ba(a2, b2, c2, d, e2, f2, g2, h2, k2) {
|
11049
11049
|
var l2 = Array.prototype.slice.call(arguments, 3);
|
11050
11050
|
try {
|
@@ -11070,7 +11070,7 @@ function ka(a2, b2, c2, d, e2, f2, g2, h2, k2) {
|
|
11070
11070
|
da = false;
|
11071
11071
|
ea = null;
|
11072
11072
|
} else
|
11073
|
-
throw Error(u(198));
|
11073
|
+
throw Error(u$1(198));
|
11074
11074
|
fa || (fa = true, ha = l2);
|
11075
11075
|
}
|
11076
11076
|
}
|
@@ -11087,17 +11087,17 @@ function ra() {
|
|
11087
11087
|
for (var a2 in qa) {
|
11088
11088
|
var b2 = qa[a2], c2 = pa.indexOf(a2);
|
11089
11089
|
if (!(-1 < c2))
|
11090
|
-
throw Error(u(96, a2));
|
11090
|
+
throw Error(u$1(96, a2));
|
11091
11091
|
if (!sa[c2]) {
|
11092
11092
|
if (!b2.extractEvents)
|
11093
|
-
throw Error(u(97, a2));
|
11093
|
+
throw Error(u$1(97, a2));
|
11094
11094
|
sa[c2] = b2;
|
11095
11095
|
c2 = b2.eventTypes;
|
11096
11096
|
for (var d in c2) {
|
11097
11097
|
var e2 = void 0;
|
11098
11098
|
var f2 = c2[d], g2 = b2, h2 = d;
|
11099
11099
|
if (ta.hasOwnProperty(h2))
|
11100
|
-
throw Error(u(99, h2));
|
11100
|
+
throw Error(u$1(99, h2));
|
11101
11101
|
ta[h2] = f2;
|
11102
11102
|
var k2 = f2.phasedRegistrationNames;
|
11103
11103
|
if (k2) {
|
@@ -11107,14 +11107,14 @@ function ra() {
|
|
11107
11107
|
} else
|
11108
11108
|
f2.registrationName ? (ua(f2.registrationName, g2, h2), e2 = true) : e2 = false;
|
11109
11109
|
if (!e2)
|
11110
|
-
throw Error(u(98, d, a2));
|
11110
|
+
throw Error(u$1(98, d, a2));
|
11111
11111
|
}
|
11112
11112
|
}
|
11113
11113
|
}
|
11114
11114
|
}
|
11115
11115
|
function ua(a2, b2, c2) {
|
11116
11116
|
if (va[a2])
|
11117
|
-
throw Error(u(100, a2));
|
11117
|
+
throw Error(u$1(100, a2));
|
11118
11118
|
va[a2] = b2;
|
11119
11119
|
wa[a2] = b2.eventTypes[c2].dependencies;
|
11120
11120
|
}
|
@@ -11126,7 +11126,7 @@ function xa(a2) {
|
|
11126
11126
|
var d = a2[c2];
|
11127
11127
|
if (!qa.hasOwnProperty(c2) || qa[c2] !== d) {
|
11128
11128
|
if (qa[c2])
|
11129
|
-
throw Error(u(102, c2));
|
11129
|
+
throw Error(u$1(102, c2));
|
11130
11130
|
qa[c2] = d;
|
11131
11131
|
b2 = true;
|
11132
11132
|
}
|
@@ -11137,7 +11137,7 @@ var ya = !(typeof window === "undefined" || typeof window.document === "undefine
|
|
11137
11137
|
function Ca(a2) {
|
11138
11138
|
if (a2 = ma(a2)) {
|
11139
11139
|
if (typeof za !== "function")
|
11140
|
-
throw Error(u(280));
|
11140
|
+
throw Error(u$1(280));
|
11141
11141
|
var b2 = a2.stateNode;
|
11142
11142
|
b2 && (b2 = la(b2), za(a2.stateNode, a2.type, b2));
|
11143
11143
|
}
|
@@ -11518,7 +11518,7 @@ function Hb(a2, b2, c2, d) {
|
|
11518
11518
|
}
|
11519
11519
|
function Ib(a2, b2) {
|
11520
11520
|
if (b2.dangerouslySetInnerHTML != null)
|
11521
|
-
throw Error(u(91));
|
11521
|
+
throw Error(u$1(91));
|
11522
11522
|
return n$1({}, b2, { value: void 0, defaultValue: void 0, children: "" + a2._wrapperState.initialValue });
|
11523
11523
|
}
|
11524
11524
|
function Jb(a2, b2) {
|
@@ -11528,10 +11528,10 @@ function Jb(a2, b2) {
|
|
11528
11528
|
b2 = b2.defaultValue;
|
11529
11529
|
if (c2 != null) {
|
11530
11530
|
if (b2 != null)
|
11531
|
-
throw Error(u(92));
|
11531
|
+
throw Error(u$1(92));
|
11532
11532
|
if (Array.isArray(c2)) {
|
11533
11533
|
if (!(1 >= c2.length))
|
11534
|
-
throw Error(u(93));
|
11534
|
+
throw Error(u$1(93));
|
11535
11535
|
c2 = c2[0];
|
11536
11536
|
}
|
11537
11537
|
b2 = c2;
|
@@ -11642,14 +11642,14 @@ function ec(a2) {
|
|
11642
11642
|
}
|
11643
11643
|
function fc(a2) {
|
11644
11644
|
if (dc(a2) !== a2)
|
11645
|
-
throw Error(u(188));
|
11645
|
+
throw Error(u$1(188));
|
11646
11646
|
}
|
11647
11647
|
function gc(a2) {
|
11648
11648
|
var b2 = a2.alternate;
|
11649
11649
|
if (!b2) {
|
11650
11650
|
b2 = dc(a2);
|
11651
11651
|
if (b2 === null)
|
11652
|
-
throw Error(u(188));
|
11652
|
+
throw Error(u$1(188));
|
11653
11653
|
return b2 !== a2 ? null : a2;
|
11654
11654
|
}
|
11655
11655
|
for (var c2 = a2, d = b2; ; ) {
|
@@ -11673,7 +11673,7 @@ function gc(a2) {
|
|
11673
11673
|
return fc(e2), b2;
|
11674
11674
|
f2 = f2.sibling;
|
11675
11675
|
}
|
11676
|
-
throw Error(u(188));
|
11676
|
+
throw Error(u$1(188));
|
11677
11677
|
}
|
11678
11678
|
if (c2.return !== d.return)
|
11679
11679
|
c2 = e2, d = f2;
|
@@ -11710,14 +11710,14 @@ function gc(a2) {
|
|
11710
11710
|
h2 = h2.sibling;
|
11711
11711
|
}
|
11712
11712
|
if (!g2)
|
11713
|
-
throw Error(u(189));
|
11713
|
+
throw Error(u$1(189));
|
11714
11714
|
}
|
11715
11715
|
}
|
11716
11716
|
if (c2.alternate !== d)
|
11717
|
-
throw Error(u(190));
|
11717
|
+
throw Error(u$1(190));
|
11718
11718
|
}
|
11719
11719
|
if (c2.tag !== 3)
|
11720
|
-
throw Error(u(188));
|
11720
|
+
throw Error(u$1(188));
|
11721
11721
|
return c2.stateNode.current === c2 ? a2 : b2;
|
11722
11722
|
}
|
11723
11723
|
function hc(a2) {
|
@@ -11745,7 +11745,7 @@ function hc(a2) {
|
|
11745
11745
|
}
|
11746
11746
|
function ic(a2, b2) {
|
11747
11747
|
if (b2 == null)
|
11748
|
-
throw Error(u(30));
|
11748
|
+
throw Error(u$1(30));
|
11749
11749
|
if (a2 == null)
|
11750
11750
|
return b2;
|
11751
11751
|
if (Array.isArray(a2)) {
|
@@ -11780,7 +11780,7 @@ function mc(a2) {
|
|
11780
11780
|
if (a2) {
|
11781
11781
|
jc(a2, lc);
|
11782
11782
|
if (kc)
|
11783
|
-
throw Error(u(95));
|
11783
|
+
throw Error(u$1(95));
|
11784
11784
|
if (fa)
|
11785
11785
|
throw a2 = ha, fa = false, ha = null, a2;
|
11786
11786
|
}
|
@@ -12228,15 +12228,15 @@ var nd = n$1({ menuitem: true }, { area: true, base: true, br: true, col: true,
|
|
12228
12228
|
function od(a2, b2) {
|
12229
12229
|
if (b2) {
|
12230
12230
|
if (nd[a2] && (b2.children != null || b2.dangerouslySetInnerHTML != null))
|
12231
|
-
throw Error(u(137, a2, ""));
|
12231
|
+
throw Error(u$1(137, a2, ""));
|
12232
12232
|
if (b2.dangerouslySetInnerHTML != null) {
|
12233
12233
|
if (b2.children != null)
|
12234
|
-
throw Error(u(60));
|
12234
|
+
throw Error(u$1(60));
|
12235
12235
|
if (!(typeof b2.dangerouslySetInnerHTML === "object" && "__html" in b2.dangerouslySetInnerHTML))
|
12236
|
-
throw Error(u(61));
|
12236
|
+
throw Error(u$1(61));
|
12237
12237
|
}
|
12238
12238
|
if (b2.style != null && typeof b2.style !== "object")
|
12239
|
-
throw Error(u(62, ""));
|
12239
|
+
throw Error(u$1(62, ""));
|
12240
12240
|
}
|
12241
12241
|
}
|
12242
12242
|
function pd(a2, b2) {
|
@@ -12393,7 +12393,7 @@ function Nc(a2) {
|
|
12393
12393
|
function Pd(a2) {
|
12394
12394
|
if (a2.tag === 5 || a2.tag === 6)
|
12395
12395
|
return a2.stateNode;
|
12396
|
-
throw Error(u(33));
|
12396
|
+
throw Error(u$1(33));
|
12397
12397
|
}
|
12398
12398
|
function Qd(a2) {
|
12399
12399
|
return a2[Nd] || null;
|
@@ -12434,7 +12434,7 @@ function Sd(a2, b2) {
|
|
12434
12434
|
if (a2)
|
12435
12435
|
return null;
|
12436
12436
|
if (c2 && typeof c2 !== "function")
|
12437
|
-
throw Error(u(231, b2, typeof c2));
|
12437
|
+
throw Error(u$1(231, b2, typeof c2));
|
12438
12438
|
return c2;
|
12439
12439
|
}
|
12440
12440
|
function Td(a2, b2, c2) {
|
@@ -12539,7 +12539,7 @@ function ee$1(a2, b2, c2, d) {
|
|
12539
12539
|
}
|
12540
12540
|
function fe(a2) {
|
12541
12541
|
if (!(a2 instanceof this))
|
12542
|
-
throw Error(u(279));
|
12542
|
+
throw Error(u$1(279));
|
12543
12543
|
a2.destructor();
|
12544
12544
|
10 > this.eventPool.length && this.eventPool.push(a2);
|
12545
12545
|
}
|
@@ -12572,7 +12572,7 @@ function re(a2) {
|
|
12572
12572
|
a2 = a2.detail;
|
12573
12573
|
return typeof a2 === "object" && "data" in a2 ? a2.data : null;
|
12574
12574
|
}
|
12575
|
-
var se = false;
|
12575
|
+
var se$1 = false;
|
12576
12576
|
function te$1(a2, b2) {
|
12577
12577
|
switch (a2) {
|
12578
12578
|
case "compositionend":
|
@@ -12589,8 +12589,8 @@ function te$1(a2, b2) {
|
|
12589
12589
|
}
|
12590
12590
|
}
|
12591
12591
|
function ue(a2, b2) {
|
12592
|
-
if (se)
|
12593
|
-
return a2 === "compositionend" || !je && qe(a2, b2) ? (a2 = ae(), $d = Zd = Yd = null, se = false, a2) : null;
|
12592
|
+
if (se$1)
|
12593
|
+
return a2 === "compositionend" || !je && qe(a2, b2) ? (a2 = ae(), $d = Zd = Yd = null, se$1 = false, a2) : null;
|
12594
12594
|
switch (a2) {
|
12595
12595
|
case "paste":
|
12596
12596
|
return null;
|
@@ -12626,8 +12626,8 @@ var ve = { eventTypes: oe, extractEvents: function(a2, b2, c2, d) {
|
|
12626
12626
|
f2 = void 0;
|
12627
12627
|
}
|
12628
12628
|
else
|
12629
|
-
se ? qe(a2, c2) && (f2 = oe.compositionEnd) : a2 === "keydown" && c2.keyCode === 229 && (f2 = oe.compositionStart);
|
12630
|
-
f2 ? (me && c2.locale !== "ko" && (se || f2 !== oe.compositionStart ? f2 === oe.compositionEnd && se && (e2 = ae()) : (Yd = d, Zd = "value" in Yd ? Yd.value : Yd.textContent, se = true)), f2 = ge.getPooled(f2, b2, c2, d), e2 ? f2.data = e2 : (e2 = re(c2), e2 !== null && (f2.data = e2)), Xd(f2), e2 = f2) : e2 = null;
|
12629
|
+
se$1 ? qe(a2, c2) && (f2 = oe.compositionEnd) : a2 === "keydown" && c2.keyCode === 229 && (f2 = oe.compositionStart);
|
12630
|
+
f2 ? (me && c2.locale !== "ko" && (se$1 || f2 !== oe.compositionStart ? f2 === oe.compositionEnd && se$1 && (e2 = ae()) : (Yd = d, Zd = "value" in Yd ? Yd.value : Yd.textContent, se$1 = true)), f2 = ge.getPooled(f2, b2, c2, d), e2 ? f2.data = e2 : (e2 = re(c2), e2 !== null && (f2.data = e2)), Xd(f2), e2 = f2) : e2 = null;
|
12631
12631
|
(a2 = le ? te$1(a2, c2) : ue(a2, c2)) ? (b2 = he.getPooled(oe.beforeInput, b2, c2, d), b2.data = a2, Xd(b2)) : b2 = null;
|
12632
12632
|
return e2 === null ? b2 : b2 === null ? e2 : [e2, b2];
|
12633
12633
|
} }, we = { color: true, date: true, datetime: true, "datetime-local": true, email: true, month: true, number: true, password: true, range: true, search: true, tel: true, text: true, time: true, url: true, week: true };
|
@@ -13022,7 +13022,7 @@ var pf = { Esc: "Escape", Spacebar: " ", Left: "ArrowLeft", Up: "ArrowUp", Right
|
|
13022
13022
|
return b2;
|
13023
13023
|
} };
|
13024
13024
|
if (pa)
|
13025
|
-
throw Error(u(101));
|
13025
|
+
throw Error(u$1(101));
|
13026
13026
|
pa = Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" "));
|
13027
13027
|
ra();
|
13028
13028
|
var xf = Nc;
|
@@ -13063,7 +13063,7 @@ function Df() {
|
|
13063
13063
|
}
|
13064
13064
|
function Ef(a2, b2, c2) {
|
13065
13065
|
if (J$1.current !== Af)
|
13066
|
-
throw Error(u(168));
|
13066
|
+
throw Error(u$1(168));
|
13067
13067
|
I$1(J$1, b2);
|
13068
13068
|
I$1(K$1, c2);
|
13069
13069
|
}
|
@@ -13075,7 +13075,7 @@ function Ff(a2, b2, c2) {
|
|
13075
13075
|
d = d.getChildContext();
|
13076
13076
|
for (var e2 in d)
|
13077
13077
|
if (!(e2 in a2))
|
13078
|
-
throw Error(u(108, pb(b2) || "Unknown", e2));
|
13078
|
+
throw Error(u$1(108, pb(b2) || "Unknown", e2));
|
13079
13079
|
return n$1({}, c2, {}, d);
|
13080
13080
|
}
|
13081
13081
|
function Gf(a2) {
|
@@ -13088,7 +13088,7 @@ function Gf(a2) {
|
|
13088
13088
|
function Hf(a2, b2, c2) {
|
13089
13089
|
var d = a2.stateNode;
|
13090
13090
|
if (!d)
|
13091
|
-
throw Error(u(169));
|
13091
|
+
throw Error(u$1(169));
|
13092
13092
|
c2 ? (a2 = Ff(a2, b2, Bf), d.__reactInternalMemoizedMergedChildContext = a2, H$1(K$1), H$1(J$1), I$1(J$1, a2)) : H$1(K$1);
|
13093
13093
|
I$1(K$1, c2);
|
13094
13094
|
}
|
@@ -13109,7 +13109,7 @@ function ag() {
|
|
13109
13109
|
case Sf:
|
13110
13110
|
return 95;
|
13111
13111
|
default:
|
13112
|
-
throw Error(u(332));
|
13112
|
+
throw Error(u$1(332));
|
13113
13113
|
}
|
13114
13114
|
}
|
13115
13115
|
function bg(a2) {
|
@@ -13125,7 +13125,7 @@ function bg(a2) {
|
|
13125
13125
|
case 95:
|
13126
13126
|
return Sf;
|
13127
13127
|
default:
|
13128
|
-
throw Error(u(332));
|
13128
|
+
throw Error(u$1(332));
|
13129
13129
|
}
|
13130
13130
|
}
|
13131
13131
|
function cg(a2, b2) {
|
@@ -13217,7 +13217,7 @@ function sg(a2, b2) {
|
|
13217
13217
|
b2 = { context: a2, observedBits: b2, next: null };
|
13218
13218
|
if (lg === null) {
|
13219
13219
|
if (kg === null)
|
13220
|
-
throw Error(u(308));
|
13220
|
+
throw Error(u$1(308));
|
13221
13221
|
lg = b2;
|
13222
13222
|
kg.dependencies = { expirationTime: 0, firstContext: b2, responders: null };
|
13223
13223
|
} else
|
@@ -13337,7 +13337,7 @@ function Cg(a2, b2, c2) {
|
|
13337
13337
|
d = e2;
|
13338
13338
|
e2 = c2;
|
13339
13339
|
if (typeof d !== "function")
|
13340
|
-
throw Error(u(191, d));
|
13340
|
+
throw Error(u$1(191, d));
|
13341
13341
|
d.call(e2);
|
13342
13342
|
}
|
13343
13343
|
}
|
@@ -13426,11 +13426,11 @@ function Pg(a2, b2, c2) {
|
|
13426
13426
|
c2 = c2._owner;
|
13427
13427
|
if (c2) {
|
13428
13428
|
if (c2.tag !== 1)
|
13429
|
-
throw Error(u(309));
|
13429
|
+
throw Error(u$1(309));
|
13430
13430
|
var d = c2.stateNode;
|
13431
13431
|
}
|
13432
13432
|
if (!d)
|
13433
|
-
throw Error(u(147, a2));
|
13433
|
+
throw Error(u$1(147, a2));
|
13434
13434
|
var e2 = "" + a2;
|
13435
13435
|
if (b2 !== null && b2.ref !== null && typeof b2.ref === "function" && b2.ref._stringRef === e2)
|
13436
13436
|
return b2.ref;
|
@@ -13443,15 +13443,15 @@ function Pg(a2, b2, c2) {
|
|
13443
13443
|
return b2;
|
13444
13444
|
}
|
13445
13445
|
if (typeof a2 !== "string")
|
13446
|
-
throw Error(u(284));
|
13446
|
+
throw Error(u$1(284));
|
13447
13447
|
if (!c2._owner)
|
13448
|
-
throw Error(u(290, a2));
|
13448
|
+
throw Error(u$1(290, a2));
|
13449
13449
|
}
|
13450
13450
|
return a2;
|
13451
13451
|
}
|
13452
13452
|
function Qg(a2, b2) {
|
13453
13453
|
if (a2.type !== "textarea")
|
13454
|
-
throw Error(u(31, Object.prototype.toString.call(b2) === "[object Object]" ? "object with keys {" + Object.keys(b2).join(", ") + "}" : b2, ""));
|
13454
|
+
throw Error(u$1(31, Object.prototype.toString.call(b2) === "[object Object]" ? "object with keys {" + Object.keys(b2).join(", ") + "}" : b2, ""));
|
13455
13455
|
}
|
13456
13456
|
function Rg(a2) {
|
13457
13457
|
function b2(b3, c3) {
|
@@ -13603,10 +13603,10 @@ function Rg(a2) {
|
|
13603
13603
|
function D2(e3, g3, h3, l3) {
|
13604
13604
|
var k3 = nb(h3);
|
13605
13605
|
if (typeof k3 !== "function")
|
13606
|
-
throw Error(u(150));
|
13606
|
+
throw Error(u$1(150));
|
13607
13607
|
h3 = k3.call(h3);
|
13608
13608
|
if (h3 == null)
|
13609
|
-
throw Error(u(151));
|
13609
|
+
throw Error(u$1(151));
|
13610
13610
|
for (var m3 = k3 = null, t2 = g3, y2 = g3 = 0, A2 = null, q2 = h3.next(); t2 !== null && !q2.done; y2++, q2 = h3.next()) {
|
13611
13611
|
t2.index > y2 ? (A2 = t2, t2 = null) : A2 = t2.sibling;
|
13612
13612
|
var D3 = x2(e3, t2, q2.value, l3);
|
@@ -13709,7 +13709,7 @@ function Rg(a2) {
|
|
13709
13709
|
switch (a3.tag) {
|
13710
13710
|
case 1:
|
13711
13711
|
case 0:
|
13712
|
-
throw a3 = a3.type, Error(u(152, a3.displayName || a3.name || "Component"));
|
13712
|
+
throw a3 = a3.type, Error(u$1(152, a3.displayName || a3.name || "Component"));
|
13713
13713
|
}
|
13714
13714
|
return c2(a3, d2);
|
13715
13715
|
};
|
@@ -13717,7 +13717,7 @@ function Rg(a2) {
|
|
13717
13717
|
var Xg = Rg(true), Yg = Rg(false), Zg = {}, $g = { current: Zg }, ah = { current: Zg }, bh = { current: Zg };
|
13718
13718
|
function ch(a2) {
|
13719
13719
|
if (a2 === Zg)
|
13720
|
-
throw Error(u(174));
|
13720
|
+
throw Error(u$1(174));
|
13721
13721
|
return a2;
|
13722
13722
|
}
|
13723
13723
|
function dh(a2, b2) {
|
@@ -13782,7 +13782,7 @@ function ih(a2, b2) {
|
|
13782
13782
|
}
|
13783
13783
|
var jh = Wa.ReactCurrentDispatcher, kh = Wa.ReactCurrentBatchConfig, lh = 0, N$1 = null, O$1 = null, P$1 = null, mh = false;
|
13784
13784
|
function Q$1() {
|
13785
|
-
throw Error(u(321));
|
13785
|
+
throw Error(u$1(321));
|
13786
13786
|
}
|
13787
13787
|
function nh(a2, b2) {
|
13788
13788
|
if (b2 === null)
|
@@ -13805,7 +13805,7 @@ function oh(a2, b2, c2, d, e2, f2) {
|
|
13805
13805
|
do {
|
13806
13806
|
b2.expirationTime = 0;
|
13807
13807
|
if (!(25 > f2))
|
13808
|
-
throw Error(u(301));
|
13808
|
+
throw Error(u$1(301));
|
13809
13809
|
f2 += 1;
|
13810
13810
|
P$1 = O$1 = null;
|
13811
13811
|
b2.updateQueue = null;
|
@@ -13819,7 +13819,7 @@ function oh(a2, b2, c2, d, e2, f2) {
|
|
13819
13819
|
P$1 = O$1 = N$1 = null;
|
13820
13820
|
mh = false;
|
13821
13821
|
if (b2)
|
13822
|
-
throw Error(u(300));
|
13822
|
+
throw Error(u$1(300));
|
13823
13823
|
return a2;
|
13824
13824
|
}
|
13825
13825
|
function th() {
|
@@ -13838,7 +13838,7 @@ function uh() {
|
|
13838
13838
|
P$1 = b2, O$1 = a2;
|
13839
13839
|
else {
|
13840
13840
|
if (a2 === null)
|
13841
|
-
throw Error(u(310));
|
13841
|
+
throw Error(u$1(310));
|
13842
13842
|
O$1 = a2;
|
13843
13843
|
a2 = { memoizedState: O$1.memoizedState, baseState: O$1.baseState, baseQueue: O$1.baseQueue, queue: O$1.queue, next: null };
|
13844
13844
|
P$1 === null ? N$1.memoizedState = P$1 = a2 : P$1 = P$1.next = a2;
|
@@ -13851,7 +13851,7 @@ function vh(a2, b2) {
|
|
13851
13851
|
function wh(a2) {
|
13852
13852
|
var b2 = uh(), c2 = b2.queue;
|
13853
13853
|
if (c2 === null)
|
13854
|
-
throw Error(u(311));
|
13854
|
+
throw Error(u$1(311));
|
13855
13855
|
c2.lastRenderedReducer = a2;
|
13856
13856
|
var d = O$1, e2 = d.baseQueue, f2 = c2.pending;
|
13857
13857
|
if (f2 !== null) {
|
@@ -13889,7 +13889,7 @@ function wh(a2) {
|
|
13889
13889
|
function xh(a2) {
|
13890
13890
|
var b2 = uh(), c2 = b2.queue;
|
13891
13891
|
if (c2 === null)
|
13892
|
-
throw Error(u(311));
|
13892
|
+
throw Error(u$1(311));
|
13893
13893
|
c2.lastRenderedReducer = a2;
|
13894
13894
|
var d = c2.dispatch, e2 = c2.pending, f2 = b2.memoizedState;
|
13895
13895
|
if (e2 !== null) {
|
@@ -14170,7 +14170,7 @@ function Wh(a2) {
|
|
14170
14170
|
a2 = a2.memoizedState;
|
14171
14171
|
a2 = a2 !== null ? a2.dehydrated : null;
|
14172
14172
|
if (!a2)
|
14173
|
-
throw Error(u(317));
|
14173
|
+
throw Error(u$1(317));
|
14174
14174
|
a: {
|
14175
14175
|
a2 = a2.nextSibling;
|
14176
14176
|
for (b2 = 0; a2; ) {
|
@@ -14450,7 +14450,7 @@ function $h(a2, b2, c2) {
|
|
14450
14450
|
if (b2.childExpirationTime < c2)
|
14451
14451
|
return null;
|
14452
14452
|
if (a2 !== null && b2.child !== a2.child)
|
14453
|
-
throw Error(u(153));
|
14453
|
+
throw Error(u$1(153));
|
14454
14454
|
if (b2.child !== null) {
|
14455
14455
|
a2 = b2.child;
|
14456
14456
|
c2 = Sg(a2, a2.pendingProps);
|
@@ -14590,7 +14590,7 @@ function si(a2, b2, c2) {
|
|
14590
14590
|
else {
|
14591
14591
|
if (!d) {
|
14592
14592
|
if (b2.stateNode === null)
|
14593
|
-
throw Error(u(166));
|
14593
|
+
throw Error(u$1(166));
|
14594
14594
|
return null;
|
14595
14595
|
}
|
14596
14596
|
a2 = ch($g.current);
|
@@ -14768,7 +14768,7 @@ function si(a2, b2, c2) {
|
|
14768
14768
|
qi(a2, b2, a2.memoizedProps, d);
|
14769
14769
|
else {
|
14770
14770
|
if (typeof d !== "string" && b2.stateNode === null)
|
14771
|
-
throw Error(u(166));
|
14771
|
+
throw Error(u$1(166));
|
14772
14772
|
c2 = ch(bh.current);
|
14773
14773
|
ch($g.current);
|
14774
14774
|
Wh(b2) ? (c2 = b2.stateNode, d = b2.memoizedProps, c2[Md] = b2, c2.nodeValue !== d && (b2.effectTag |= 4)) : (c2 = (c2.nodeType === 9 ? c2 : c2.ownerDocument).createTextNode(d), c2[Md] = b2, b2.stateNode = c2);
|
@@ -14839,7 +14839,7 @@ function si(a2, b2, c2) {
|
|
14839
14839
|
}
|
14840
14840
|
return d.tail !== null ? (d.tailExpiration === 0 && (d.tailExpiration = $f() + 500), c2 = d.tail, d.rendering = c2, d.tail = c2.sibling, d.lastEffect = b2.lastEffect, d.renderingStartTime = $f(), c2.sibling = null, b2 = M$1.current, I$1(M$1, e2 ? b2 & 1 | 2 : b2 & 1), c2) : null;
|
14841
14841
|
}
|
14842
|
-
throw Error(u(156, b2.tag));
|
14842
|
+
throw Error(u$1(156, b2.tag));
|
14843
14843
|
}
|
14844
14844
|
function zi(a2) {
|
14845
14845
|
switch (a2.tag) {
|
@@ -14853,7 +14853,7 @@ function zi(a2) {
|
|
14853
14853
|
H$1(J$1);
|
14854
14854
|
b2 = a2.effectTag;
|
14855
14855
|
if ((b2 & 64) !== 0)
|
14856
|
-
throw Error(u(285));
|
14856
|
+
throw Error(u$1(285));
|
14857
14857
|
a2.effectTag = b2 & -4097 | 64;
|
14858
14858
|
return a2;
|
14859
14859
|
case 5:
|
@@ -14929,7 +14929,7 @@ function Gi(a2, b2) {
|
|
14929
14929
|
case 17:
|
14930
14930
|
return;
|
14931
14931
|
}
|
14932
|
-
throw Error(u(163));
|
14932
|
+
throw Error(u$1(163));
|
14933
14933
|
}
|
14934
14934
|
function Hi(a2, b2) {
|
14935
14935
|
b2 = b2.updateQueue;
|
@@ -15014,7 +15014,7 @@ function Ji(a2, b2, c2) {
|
|
15014
15014
|
case 21:
|
15015
15015
|
return;
|
15016
15016
|
}
|
15017
|
-
throw Error(u(163));
|
15017
|
+
throw Error(u$1(163));
|
15018
15018
|
}
|
15019
15019
|
function Ki(a2, b2, c2) {
|
15020
15020
|
typeof Li === "function" && Li(b2);
|
@@ -15083,7 +15083,7 @@ function Pi(a2) {
|
|
15083
15083
|
}
|
15084
15084
|
b2 = b2.return;
|
15085
15085
|
}
|
15086
|
-
throw Error(u(160));
|
15086
|
+
throw Error(u$1(160));
|
15087
15087
|
}
|
15088
15088
|
b2 = c2.stateNode;
|
15089
15089
|
switch (c2.tag) {
|
@@ -15099,7 +15099,7 @@ function Pi(a2) {
|
|
15099
15099
|
d = true;
|
15100
15100
|
break;
|
15101
15101
|
default:
|
15102
|
-
throw Error(u(161));
|
15102
|
+
throw Error(u$1(161));
|
15103
15103
|
}
|
15104
15104
|
c2.effectTag & 16 && (Rb(b2, ""), c2.effectTag &= -17);
|
15105
15105
|
a:
|
@@ -15151,7 +15151,7 @@ function Mi(a2, b2, c2) {
|
|
15151
15151
|
a:
|
15152
15152
|
for (; ; ) {
|
15153
15153
|
if (e2 === null)
|
15154
|
-
throw Error(u(160));
|
15154
|
+
throw Error(u$1(160));
|
15155
15155
|
f2 = e2.stateNode;
|
15156
15156
|
switch (e2.tag) {
|
15157
15157
|
case 5:
|
@@ -15254,7 +15254,7 @@ function Si(a2, b2) {
|
|
15254
15254
|
return;
|
15255
15255
|
case 6:
|
15256
15256
|
if (b2.stateNode === null)
|
15257
|
-
throw Error(u(162));
|
15257
|
+
throw Error(u$1(162));
|
15258
15258
|
b2.stateNode.nodeValue = b2.memoizedProps;
|
15259
15259
|
return;
|
15260
15260
|
case 3:
|
@@ -15301,7 +15301,7 @@ function Si(a2, b2) {
|
|
15301
15301
|
case 17:
|
15302
15302
|
return;
|
15303
15303
|
}
|
15304
|
-
throw Error(u(163));
|
15304
|
+
throw Error(u$1(163));
|
15305
15305
|
}
|
15306
15306
|
function Ui(a2) {
|
15307
15307
|
var b2 = a2.updateQueue;
|
@@ -15377,14 +15377,14 @@ function Hg(a2, b2, c2) {
|
|
15377
15377
|
a2 = 2;
|
15378
15378
|
break;
|
15379
15379
|
default:
|
15380
|
-
throw Error(u(326));
|
15380
|
+
throw Error(u$1(326));
|
15381
15381
|
}
|
15382
15382
|
T$1 !== null && a2 === U$1 && --a2;
|
15383
15383
|
return a2;
|
15384
15384
|
}
|
15385
15385
|
function Ig(a2, b2) {
|
15386
15386
|
if (50 < uj)
|
15387
|
-
throw uj = 0, vj = null, Error(u(185));
|
15387
|
+
throw uj = 0, vj = null, Error(u$1(185));
|
15388
15388
|
a2 = xj(a2, b2);
|
15389
15389
|
if (a2 !== null) {
|
15390
15390
|
var c2 = ag();
|
@@ -15456,7 +15456,7 @@ function Bj(a2, b2) {
|
|
15456
15456
|
if (c2 !== 0) {
|
15457
15457
|
b2 = a2.callbackNode;
|
15458
15458
|
if ((W$1 & (fj | gj)) !== V$1)
|
15459
|
-
throw Error(u(327));
|
15459
|
+
throw Error(u$1(327));
|
15460
15460
|
Dj();
|
15461
15461
|
a2 === T$1 && c2 === U$1 || Ej(a2, c2);
|
15462
15462
|
if (X$1 !== null) {
|
@@ -15480,7 +15480,7 @@ function Bj(a2, b2) {
|
|
15480
15480
|
switch (e2 = a2.finishedWork = a2.current.alternate, a2.finishedExpirationTime = c2, d = S$1, T$1 = null, d) {
|
15481
15481
|
case ti:
|
15482
15482
|
case hj:
|
15483
|
-
throw Error(u(345));
|
15483
|
+
throw Error(u$1(345));
|
15484
15484
|
case ij:
|
15485
15485
|
Cj(a2, 2 < c2 ? 2 : c2);
|
15486
15486
|
break;
|
@@ -15547,7 +15547,7 @@ function Bj(a2, b2) {
|
|
15547
15547
|
Jj(a2);
|
15548
15548
|
break;
|
15549
15549
|
default:
|
15550
|
-
throw Error(u(329));
|
15550
|
+
throw Error(u$1(329));
|
15551
15551
|
}
|
15552
15552
|
Z$1(a2);
|
15553
15553
|
if (a2.callbackNode === b2)
|
@@ -15560,7 +15560,7 @@ function yj(a2) {
|
|
15560
15560
|
var b2 = a2.lastExpiredTime;
|
15561
15561
|
b2 = b2 !== 0 ? b2 : 1073741823;
|
15562
15562
|
if ((W$1 & (fj | gj)) !== V$1)
|
15563
|
-
throw Error(u(327));
|
15563
|
+
throw Error(u$1(327));
|
15564
15564
|
Dj();
|
15565
15565
|
a2 === T$1 && b2 === U$1 || Ej(a2, b2);
|
15566
15566
|
if (X$1 !== null) {
|
@@ -15581,7 +15581,7 @@ function yj(a2) {
|
|
15581
15581
|
if (S$1 === hj)
|
15582
15582
|
throw c2 = kj, Ej(a2, b2), xi(a2, b2), Z$1(a2), c2;
|
15583
15583
|
if (X$1 !== null)
|
15584
|
-
throw Error(u(261));
|
15584
|
+
throw Error(u$1(261));
|
15585
15585
|
a2.finishedWork = a2.current.alternate;
|
15586
15586
|
a2.finishedExpirationTime = b2;
|
15587
15587
|
T$1 = null;
|
@@ -15852,14 +15852,14 @@ function Sj(a2, b2) {
|
|
15852
15852
|
Dj();
|
15853
15853
|
while (rj !== null);
|
15854
15854
|
if ((W$1 & (fj | gj)) !== V$1)
|
15855
|
-
throw Error(u(327));
|
15855
|
+
throw Error(u$1(327));
|
15856
15856
|
var c2 = a2.finishedWork, d = a2.finishedExpirationTime;
|
15857
15857
|
if (c2 === null)
|
15858
15858
|
return null;
|
15859
15859
|
a2.finishedWork = null;
|
15860
15860
|
a2.finishedExpirationTime = 0;
|
15861
15861
|
if (c2 === a2.current)
|
15862
|
-
throw Error(u(177));
|
15862
|
+
throw Error(u$1(177));
|
15863
15863
|
a2.callbackNode = null;
|
15864
15864
|
a2.callbackExpirationTime = 0;
|
15865
15865
|
a2.callbackPriority = 90;
|
@@ -15933,7 +15933,7 @@ function Sj(a2, b2) {
|
|
15933
15933
|
Tj();
|
15934
15934
|
} catch (wb) {
|
15935
15935
|
if (Y$1 === null)
|
15936
|
-
throw Error(u(330));
|
15936
|
+
throw Error(u$1(330));
|
15937
15937
|
Ei(Y$1, wb);
|
15938
15938
|
Y$1 = Y$1.nextEffect;
|
15939
15939
|
}
|
@@ -15978,7 +15978,7 @@ function Sj(a2, b2) {
|
|
15978
15978
|
}
|
15979
15979
|
} catch (wb) {
|
15980
15980
|
if (Y$1 === null)
|
15981
|
-
throw Error(u(330));
|
15981
|
+
throw Error(u$1(330));
|
15982
15982
|
Ei(Y$1, wb);
|
15983
15983
|
Y$1 = Y$1.nextEffect;
|
15984
15984
|
}
|
@@ -16028,7 +16028,7 @@ function Sj(a2, b2) {
|
|
16028
16028
|
}
|
16029
16029
|
} catch (wb) {
|
16030
16030
|
if (Y$1 === null)
|
16031
|
-
throw Error(u(330));
|
16031
|
+
throw Error(u$1(330));
|
16032
16032
|
Ei(Y$1, wb);
|
16033
16033
|
Y$1 = Y$1.nextEffect;
|
16034
16034
|
}
|
@@ -16079,7 +16079,7 @@ function Vj() {
|
|
16079
16079
|
var a2 = rj;
|
16080
16080
|
rj = null;
|
16081
16081
|
if ((W$1 & (fj | gj)) !== V$1)
|
16082
|
-
throw Error(u(331));
|
16082
|
+
throw Error(u$1(331));
|
16083
16083
|
var b2 = W$1;
|
16084
16084
|
W$1 |= gj;
|
16085
16085
|
for (a2 = a2.current.firstEffect; a2 !== null; ) {
|
@@ -16095,7 +16095,7 @@ function Vj() {
|
|
16095
16095
|
}
|
16096
16096
|
} catch (d) {
|
16097
16097
|
if (a2 === null)
|
16098
|
-
throw Error(u(330));
|
16098
|
+
throw Error(u$1(330));
|
16099
16099
|
Ei(a2, d);
|
16100
16100
|
}
|
16101
16101
|
c2 = a2.nextEffect;
|
@@ -16267,7 +16267,7 @@ Rj = function(a2, b2, c2) {
|
|
16267
16267
|
b2 = ai(null, b2, e2, ig(e2.type, a2), d, c2);
|
16268
16268
|
break a;
|
16269
16269
|
}
|
16270
|
-
throw Error(u(306, e2, ""));
|
16270
|
+
throw Error(u$1(306, e2, ""));
|
16271
16271
|
}
|
16272
16272
|
return b2;
|
16273
16273
|
case 0:
|
@@ -16278,7 +16278,7 @@ Rj = function(a2, b2, c2) {
|
|
16278
16278
|
hi(b2);
|
16279
16279
|
d = b2.updateQueue;
|
16280
16280
|
if (a2 === null || d === null)
|
16281
|
-
throw Error(u(282));
|
16281
|
+
throw Error(u$1(282));
|
16282
16282
|
d = b2.pendingProps;
|
16283
16283
|
e2 = b2.memoizedState;
|
16284
16284
|
e2 = e2 !== null ? e2.element : null;
|
@@ -16381,7 +16381,7 @@ Rj = function(a2, b2, c2) {
|
|
16381
16381
|
case 19:
|
16382
16382
|
return mi(a2, b2, c2);
|
16383
16383
|
}
|
16384
|
-
throw Error(u(156, b2.tag));
|
16384
|
+
throw Error(u$1(156, b2.tag));
|
16385
16385
|
};
|
16386
16386
|
var Uj = null, Li = null;
|
16387
16387
|
function Yj(a2) {
|
@@ -16510,7 +16510,7 @@ function Ug(a2, b2, c2, d, e2, f2) {
|
|
16510
16510
|
g2 = 22;
|
16511
16511
|
break a;
|
16512
16512
|
}
|
16513
|
-
throw Error(u(130, a2 == null ? a2 : typeof a2, ""));
|
16513
|
+
throw Error(u$1(130, a2 == null ? a2 : typeof a2, ""));
|
16514
16514
|
}
|
16515
16515
|
b2 = Sh(g2, c2, b2, e2);
|
16516
16516
|
b2.elementType = a2;
|
@@ -16579,7 +16579,7 @@ function bk(a2, b2, c2, d) {
|
|
16579
16579
|
c2 = c2._reactInternalFiber;
|
16580
16580
|
b: {
|
16581
16581
|
if (dc(c2) !== c2 || c2.tag !== 1)
|
16582
|
-
throw Error(u(170));
|
16582
|
+
throw Error(u$1(170));
|
16583
16583
|
var h2 = c2;
|
16584
16584
|
do {
|
16585
16585
|
switch (h2.tag) {
|
@@ -16594,7 +16594,7 @@ function bk(a2, b2, c2, d) {
|
|
16594
16594
|
}
|
16595
16595
|
h2 = h2.return;
|
16596
16596
|
} while (h2 !== null);
|
16597
|
-
throw Error(u(171));
|
16597
|
+
throw Error(u$1(171));
|
16598
16598
|
}
|
16599
16599
|
if (c2.tag === 1) {
|
16600
16600
|
var k2 = c2.type;
|
@@ -16727,7 +16727,7 @@ za = function(a2, b2, c2) {
|
|
16727
16727
|
if (d !== a2 && d.form === a2.form) {
|
16728
16728
|
var e2 = Qd(d);
|
16729
16729
|
if (!e2)
|
16730
|
-
throw Error(u(90));
|
16730
|
+
throw Error(u$1(90));
|
16731
16731
|
yb(d);
|
16732
16732
|
Cb(d, e2);
|
16733
16733
|
}
|
@@ -16766,7 +16766,7 @@ Ia = function(a2, b2) {
|
|
16766
16766
|
function kk(a2, b2) {
|
16767
16767
|
var c2 = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
16768
16768
|
if (!gk(b2))
|
16769
|
-
throw Error(u(200));
|
16769
|
+
throw Error(u$1(200));
|
16770
16770
|
return jk(a2, b2, null, c2);
|
16771
16771
|
}
|
16772
16772
|
var lk = { Events: [Nc, Pd, Qd, xa, ta, Xd, function(a2) {
|
@@ -16796,8 +16796,8 @@ reactDom_production_min.findDOMNode = function(a2) {
|
|
16796
16796
|
var b2 = a2._reactInternalFiber;
|
16797
16797
|
if (b2 === void 0) {
|
16798
16798
|
if (typeof a2.render === "function")
|
16799
|
-
throw Error(u(188));
|
16800
|
-
throw Error(u(268, Object.keys(a2)));
|
16799
|
+
throw Error(u$1(188));
|
16800
|
+
throw Error(u$1(268, Object.keys(a2)));
|
16801
16801
|
}
|
16802
16802
|
a2 = hc(b2);
|
16803
16803
|
a2 = a2 === null ? null : a2.stateNode;
|
@@ -16805,7 +16805,7 @@ reactDom_production_min.findDOMNode = function(a2) {
|
|
16805
16805
|
};
|
16806
16806
|
reactDom_production_min.flushSync = function(a2, b2) {
|
16807
16807
|
if ((W$1 & (fj | gj)) !== V$1)
|
16808
|
-
throw Error(u(187));
|
16808
|
+
throw Error(u$1(187));
|
16809
16809
|
var c2 = W$1;
|
16810
16810
|
W$1 |= 1;
|
16811
16811
|
try {
|
@@ -16816,17 +16816,17 @@ reactDom_production_min.flushSync = function(a2, b2) {
|
|
16816
16816
|
};
|
16817
16817
|
reactDom_production_min.hydrate = function(a2, b2, c2) {
|
16818
16818
|
if (!gk(b2))
|
16819
|
-
throw Error(u(200));
|
16819
|
+
throw Error(u$1(200));
|
16820
16820
|
return ik(null, a2, b2, true, c2);
|
16821
16821
|
};
|
16822
16822
|
reactDom_production_min.render = function(a2, b2, c2) {
|
16823
16823
|
if (!gk(b2))
|
16824
|
-
throw Error(u(200));
|
16824
|
+
throw Error(u$1(200));
|
16825
16825
|
return ik(null, a2, b2, false, c2);
|
16826
16826
|
};
|
16827
16827
|
reactDom_production_min.unmountComponentAtNode = function(a2) {
|
16828
16828
|
if (!gk(a2))
|
16829
|
-
throw Error(u(40));
|
16829
|
+
throw Error(u$1(40));
|
16830
16830
|
return a2._reactRootContainer ? (Nj(function() {
|
16831
16831
|
ik(null, null, a2, false, function() {
|
16832
16832
|
a2._reactRootContainer = null;
|
@@ -16840,9 +16840,9 @@ reactDom_production_min.unstable_createPortal = function(a2, b2) {
|
|
16840
16840
|
};
|
16841
16841
|
reactDom_production_min.unstable_renderSubtreeIntoContainer = function(a2, b2, c2, d) {
|
16842
16842
|
if (!gk(c2))
|
16843
|
-
throw Error(u(200));
|
16843
|
+
throw Error(u$1(200));
|
16844
16844
|
if (a2 == null || a2._reactInternalFiber === void 0)
|
16845
|
-
throw Error(u(38));
|
16845
|
+
throw Error(u$1(38));
|
16846
16846
|
return ik(a2, b2, c2, false, d);
|
16847
16847
|
};
|
16848
16848
|
reactDom_production_min.version = "16.14.0";
|
@@ -16860,7 +16860,7 @@ function checkDCE() {
|
|
16860
16860
|
checkDCE();
|
16861
16861
|
reactDom.exports = reactDom_production_min;
|
16862
16862
|
}
|
16863
|
-
var
|
16863
|
+
var u = reactDom.exports;
|
16864
16864
|
var e = Object.defineProperty, t = Object.defineProperties, i = Object.getOwnPropertyDescriptors, s = Object.getOwnPropertySymbols, r = Object.prototype.hasOwnProperty, o = Object.prototype.propertyIsEnumerable, n = (t2, i2, s2) => i2 in t2 ? e(t2, i2, { enumerable: true, configurable: true, writable: true, value: s2 }) : t2[i2] = s2, a = (e2, t2) => {
|
16865
16865
|
for (var i2 in t2 || (t2 = {}))
|
16866
16866
|
r.call(t2, i2) && n(e2, i2, t2[i2]);
|
@@ -16885,62 +16885,62 @@ function f(e2, t2) {
|
|
16885
16885
|
}(t2);
|
16886
16886
|
return i2 ? e2.currentTime + (i2 - e2.hostTime) / 1e3 : e2.currentTime;
|
16887
16887
|
}
|
16888
|
-
const A = navigator.userAgent.includes("Safari"), y = [".aac", ".mid", ".midi", ".mp3", ".ogg", ".oga", ".wav", ".weba"];
|
16889
|
-
var
|
16890
|
-
var
|
16891
|
-
var
|
16892
|
-
function
|
16893
|
-
return e2 == null ? e2 === void 0 ? "[object Undefined]" : "[object Null]" :
|
16894
|
-
var t2 =
|
16888
|
+
const A = navigator.userAgent.includes("Safari"), y = navigator.userAgent.includes("iPhone") || navigator.userAgent.includes("iPad"), b = [".aac", ".mid", ".midi", ".mp3", ".ogg", ".oga", ".wav", ".weba"];
|
16889
|
+
var I = typeof global == "object" && global && global.Object === Object && global, S = typeof self == "object" && self && self.Object === Object && self, T = I || S || Function("return this")(), k = T.Symbol, E = Object.prototype, C = E.hasOwnProperty, P = E.toString, j = k ? k.toStringTag : void 0;
|
16890
|
+
var B = Object.prototype.toString;
|
16891
|
+
var w = k ? k.toStringTag : void 0;
|
16892
|
+
function x(e2) {
|
16893
|
+
return e2 == null ? e2 === void 0 ? "[object Undefined]" : "[object Null]" : w && w in Object(e2) ? function(e3) {
|
16894
|
+
var t2 = C.call(e3, j), i2 = e3[j];
|
16895
16895
|
try {
|
16896
|
-
e3[
|
16896
|
+
e3[j] = void 0;
|
16897
16897
|
var s2 = true;
|
16898
16898
|
} catch (o2) {
|
16899
16899
|
}
|
16900
|
-
var r2 =
|
16901
|
-
return s2 && (t2 ? e3[
|
16900
|
+
var r2 = P.call(e3);
|
16901
|
+
return s2 && (t2 ? e3[j] = i2 : delete e3[j]), r2;
|
16902
16902
|
}(e2) : function(e3) {
|
16903
|
-
return
|
16903
|
+
return B.call(e3);
|
16904
16904
|
}(e2);
|
16905
16905
|
}
|
16906
|
-
var
|
16907
|
-
var
|
16908
|
-
function
|
16906
|
+
var H = /\s/;
|
16907
|
+
var Q = /^\s+/;
|
16908
|
+
function M(e2) {
|
16909
16909
|
return e2 ? e2.slice(0, function(e3) {
|
16910
|
-
for (var t2 = e3.length; t2-- &&
|
16910
|
+
for (var t2 = e3.length; t2-- && H.test(e3.charAt(t2)); )
|
16911
16911
|
;
|
16912
16912
|
return t2;
|
16913
|
-
}(e2) + 1).replace(
|
16913
|
+
}(e2) + 1).replace(Q, "") : e2;
|
16914
16914
|
}
|
16915
|
-
function
|
16915
|
+
function L(e2) {
|
16916
16916
|
var t2 = typeof e2;
|
16917
16917
|
return e2 != null && (t2 == "object" || t2 == "function");
|
16918
16918
|
}
|
16919
|
-
var
|
16920
|
-
function
|
16919
|
+
var N = /^[-+]0x[0-9a-f]+$/i, W = /^0b[01]+$/i, V = /^0o[0-7]+$/i, O = parseInt;
|
16920
|
+
function z(e2) {
|
16921
16921
|
if (typeof e2 == "number")
|
16922
16922
|
return e2;
|
16923
16923
|
if (function(e3) {
|
16924
16924
|
return typeof e3 == "symbol" || function(e4) {
|
16925
16925
|
return e4 != null && typeof e4 == "object";
|
16926
|
-
}(e3) &&
|
16926
|
+
}(e3) && x(e3) == "[object Symbol]";
|
16927
16927
|
}(e2))
|
16928
16928
|
return NaN;
|
16929
|
-
if (
|
16929
|
+
if (L(e2)) {
|
16930
16930
|
var t2 = typeof e2.valueOf == "function" ? e2.valueOf() : e2;
|
16931
|
-
e2 =
|
16931
|
+
e2 = L(t2) ? t2 + "" : t2;
|
16932
16932
|
}
|
16933
16933
|
if (typeof e2 != "string")
|
16934
16934
|
return e2 === 0 ? e2 : +e2;
|
16935
|
-
e2 =
|
16935
|
+
e2 = M(e2);
|
16936
16936
|
var i2 = W.test(e2);
|
16937
|
-
return i2 ||
|
16937
|
+
return i2 || V.test(e2) ? O(e2.slice(2), i2 ? 2 : 8) : N.test(e2) ? NaN : +e2;
|
16938
16938
|
}
|
16939
|
-
var
|
16940
|
-
return
|
16941
|
-
},
|
16942
|
-
function
|
16943
|
-
var s2, r2, o2, n2, a2, l2, c2 = 0,
|
16939
|
+
var D = function() {
|
16940
|
+
return T.Date.now();
|
16941
|
+
}, Z = Math.max, R = Math.min;
|
16942
|
+
function U(e2, t2, i2) {
|
16943
|
+
var s2, r2, o2, n2, a2, l2, c2 = 0, u2 = false, p2 = false, d = true;
|
16944
16944
|
if (typeof e2 != "function")
|
16945
16945
|
throw new TypeError("Expected a function");
|
16946
16946
|
function h2(t3) {
|
@@ -16948,41 +16948,41 @@ function R(e2, t2, i2) {
|
|
16948
16948
|
return s2 = r2 = void 0, c2 = t3, n2 = e2.apply(o3, i3);
|
16949
16949
|
}
|
16950
16950
|
function m2(e3) {
|
16951
|
-
return c2 = e3, a2 = setTimeout(v2, t2),
|
16951
|
+
return c2 = e3, a2 = setTimeout(v2, t2), u2 ? h2(e3) : n2;
|
16952
16952
|
}
|
16953
16953
|
function g2(e3) {
|
16954
16954
|
var i3 = e3 - l2;
|
16955
|
-
return l2 === void 0 || i3 >= t2 || i3 < 0 ||
|
16955
|
+
return l2 === void 0 || i3 >= t2 || i3 < 0 || p2 && e3 - c2 >= o2;
|
16956
16956
|
}
|
16957
16957
|
function v2() {
|
16958
|
-
var e3 =
|
16958
|
+
var e3 = D();
|
16959
16959
|
if (g2(e3))
|
16960
16960
|
return f2(e3);
|
16961
16961
|
a2 = setTimeout(v2, function(e4) {
|
16962
16962
|
var i3 = t2 - (e4 - l2);
|
16963
|
-
return
|
16963
|
+
return p2 ? R(i3, o2 - (e4 - c2)) : i3;
|
16964
16964
|
}(e3));
|
16965
16965
|
}
|
16966
16966
|
function f2(e3) {
|
16967
16967
|
return a2 = void 0, d && s2 ? h2(e3) : (s2 = r2 = void 0, n2);
|
16968
16968
|
}
|
16969
16969
|
function A2() {
|
16970
|
-
var e3 =
|
16970
|
+
var e3 = D(), i3 = g2(e3);
|
16971
16971
|
if (s2 = arguments, r2 = this, l2 = e3, i3) {
|
16972
16972
|
if (a2 === void 0)
|
16973
16973
|
return m2(l2);
|
16974
|
-
if (
|
16974
|
+
if (p2)
|
16975
16975
|
return clearTimeout(a2), a2 = setTimeout(v2, t2), h2(l2);
|
16976
16976
|
}
|
16977
16977
|
return a2 === void 0 && (a2 = setTimeout(v2, t2)), n2;
|
16978
16978
|
}
|
16979
|
-
return t2 =
|
16979
|
+
return t2 = z(t2) || 0, L(i2) && (u2 = !!i2.leading, o2 = (p2 = "maxWait" in i2) ? Z(z(i2.maxWait) || 0, t2) : o2, d = "trailing" in i2 ? !!i2.trailing : d), A2.cancel = function() {
|
16980
16980
|
a2 !== void 0 && clearTimeout(a2), c2 = 0, s2 = l2 = r2 = a2 = void 0;
|
16981
16981
|
}, A2.flush = function() {
|
16982
|
-
return a2 === void 0 ? n2 : f2(
|
16982
|
+
return a2 === void 0 ? n2 : f2(D());
|
16983
16983
|
}, A2;
|
16984
16984
|
}
|
16985
|
-
class
|
16985
|
+
class F extends react.exports.Component {
|
16986
16986
|
constructor(e2) {
|
16987
16987
|
super(e2), this.seeking = false, this.mobileSeeking = false, this.track = null, this.hoverTime = null, this.offset = 0, this.secondsPrefix = "00:00:", this.minutesPrefix = "00:", this.seekPause = false, this.handleTouchSeeking = (e3) => {
|
16988
16988
|
let t2 = 0;
|
@@ -17076,7 +17076,7 @@ class U extends react.exports.Component {
|
|
17076
17076
|
}, onMouseUp: this.onMouseUp, onTouchEnd: this.onMouseUp }, l.createElement("div", { className: "main" }, this.renderBufferProgress(), this.renderHoverProgress(), this.renderProgress())), this.drawHoverTime(), this.renderThumb());
|
17077
17077
|
}
|
17078
17078
|
}
|
17079
|
-
class
|
17079
|
+
class X extends react.exports.Component {
|
17080
17080
|
constructor(e2) {
|
17081
17081
|
super(e2), this.stageVolume = 0, this.updateVolumeTimer = 0, this.onVolumeSeeking = false, this.onClickOperationButton = () => {
|
17082
17082
|
const { paused: e3 } = this.props;
|
@@ -17088,17 +17088,17 @@ class F extends react.exports.Component {
|
|
17088
17088
|
this.props.volume === 0 ? this.stageVolume !== 0 ? this.props.setVolume(this.stageVolume) : this.props.setVolume(1) : (this.stageVolume = this.props.volume, this.props.setVolume(0));
|
17089
17089
|
}, this.onChange = (e3) => {
|
17090
17090
|
this.setState({ currentTime: e3 }), e3 && this.changeTime(e3);
|
17091
|
-
}, this.changeTime =
|
17091
|
+
}, this.changeTime = U((e3) => {
|
17092
17092
|
this.props.setCurrentTime(e3);
|
17093
17093
|
}, 50), this.onVolumeChange = (e3) => {
|
17094
17094
|
this.changeVolume(e3), this.setState({ seekVolume: e3 / 100 });
|
17095
|
-
}, this.changeVolume =
|
17095
|
+
}, this.changeVolume = U((e3) => {
|
17096
17096
|
this.props.setVolume(e3 / 100);
|
17097
17097
|
}, 50), this.onVolumeSeekStart = () => {
|
17098
17098
|
this.onVolumeSeeking = true;
|
17099
|
-
}, this.onVolumeSeekEnd =
|
17099
|
+
}, this.onVolumeSeekEnd = U(() => {
|
17100
17100
|
this.onVolumeSeeking = false;
|
17101
|
-
}, 500), this.onProgressSeekStart = () => this.setState({ isPlayerSeeking: true }), this.onProgressSeekEnd =
|
17101
|
+
}, 500), this.onProgressSeekStart = () => this.setState({ isPlayerSeeking: true }), this.onProgressSeekEnd = U(() => {
|
17102
17102
|
this.setState({ isPlayerSeeking: false });
|
17103
17103
|
}, 500), this.state = { isPlayerSeeking: false, isVolumeHover: false, seekVolume: 1, visible: true, currentTime: 0 }, this.stageVolume = e2.volume;
|
17104
17104
|
}
|
@@ -17112,100 +17112,100 @@ class F extends react.exports.Component {
|
|
17112
17112
|
}
|
17113
17113
|
render() {
|
17114
17114
|
const { duration: e2, currentTime: t2 } = this.props;
|
17115
|
-
return l.createElement("div", { className: "player-controller", style: { opacity: this.props.visible ? "1" : "0" } }, l.createElement("div", { className: "player-controller-progress" }, l.createElement(
|
17115
|
+
return l.createElement("div", { className: "player-controller", style: { opacity: this.props.visible ? "1" : "0" } }, l.createElement("div", { className: "player-controller-progress" }, l.createElement(F, { total: e2, current: this.state.currentTime, onChange: this.onChange, buffered: this.props.buffered, bufferColor: "rgba(255,255,255,0.3)", hideHoverTime: true, limitTimeTooltipBySides: true, onSeekStart: this.onProgressSeekStart, onSeekEnd: this.onProgressSeekEnd, play: this.props.play, pause: this.props.pause, paused: this.props.paused, scale: this.props.scale })), l.createElement("div", { className: "player-controller-actions" }, l.createElement("div", { className: "player-controller-actions-left" }, l.createElement("div", { onClick: this.onClickOperationButton, className: "player-controller-play" }, this.operationButton()), l.createElement("div", { className: "player-volume-box", onMouseEnter: () => this.setState({ isVolumeHover: true }), onMouseLeave: () => this.setState({ isVolumeHover: false }) }, l.createElement("div", { onClick: this.handleClickVolume, className: "player-volume" }, this.operationVolumeButton()), l.createElement("div", { className: "player-volume-slider" }, l.createElement(F, { total: 100, current: 100 * this.state.seekVolume, onChange: this.onVolumeChange, onSeekStart: this.onVolumeSeekStart, onSeekEnd: this.onVolumeSeekEnd, scale: this.props.scale, limitTimeTooltipBySides: true, hideHoverTime: true })))), l.createElement("div", { className: "player-mid-box-time" }, G(Math.floor(t2 / 1e3)), " /", " ", G(Math.floor(e2 / 1e3)))));
|
17116
17116
|
}
|
17117
17117
|
}
|
17118
|
-
function
|
17118
|
+
function G(e2) {
|
17119
17119
|
const t2 = e2 % 60, i2 = (e2 - t2) / 60;
|
17120
17120
|
if (i2 >= 60) {
|
17121
17121
|
const e3 = i2 % 60;
|
17122
|
-
return `${
|
17122
|
+
return `${Y((i2 - e3) / 60)}:${Y(e3)}:${Y(t2)}`;
|
17123
17123
|
}
|
17124
|
-
return `${
|
17124
|
+
return `${Y(i2)}:${Y(t2)}`;
|
17125
17125
|
}
|
17126
|
-
function
|
17126
|
+
function Y(e2) {
|
17127
17127
|
return e2 <= 9 ? `0${e2}` : `${e2}`;
|
17128
17128
|
}
|
17129
|
-
let
|
17130
|
-
var
|
17131
|
-
(
|
17132
|
-
let
|
17133
|
-
function
|
17129
|
+
let J = 99999;
|
17130
|
+
var K, q;
|
17131
|
+
(q = K || (K = {}))[q.Idle = 0] = "Idle", q[q.Playing = 1] = "Playing", q[q.Paused = 2] = "Paused";
|
17132
|
+
let $ = {};
|
17133
|
+
function _(e2, ...t2) {
|
17134
17134
|
g.verbose && console.log(`[RTCEffect] ${e2}`, ...t2);
|
17135
17135
|
}
|
17136
|
-
function
|
17136
|
+
function ee(e2, t2, i2) {
|
17137
17137
|
function s2(t3) {
|
17138
|
-
|
17139
|
-
|
17140
|
-
}),
|
17138
|
+
$[t3].playState === 0 ? (e2.playEffect(t3, i2, 0, 1, 0, 100, false, 0).then(() => {
|
17139
|
+
_(">>> Play Success", { playingId: t3 });
|
17140
|
+
}), $[t3].playState = 1) : _(">>> Skip Play", { playingId: t3, state: $[t3].playState });
|
17141
17141
|
}
|
17142
17142
|
function r2(e3) {
|
17143
|
-
|
17143
|
+
$[e3].playState = 0, $[e3].previousVideoJSAdvance = 0, $[e3].previousSeekTargetTime = 0, $[e3].previousBeginSeekTime = 0;
|
17144
17144
|
}
|
17145
17145
|
t2.one("ready", () => {
|
17146
17146
|
var i3;
|
17147
17147
|
const o2 = ((i3 = t2 == null ? void 0 : t2.tagAttributes) == null ? void 0 : i3.src) || "";
|
17148
|
-
o2.
|
17148
|
+
b.includes(o2.split(".").pop() || "") || (_(">>> Mute js player", { src: o2 }), t2.muted(true), t2.muted = (e3) => false);
|
17149
17149
|
const n2 = function() {
|
17150
|
-
const e3 =
|
17151
|
-
return
|
17150
|
+
const e3 = J--, t3 = { playState: K.Idle, previousVideoJSAdvance: 0, previousSeekTargetTime: 0, previousBeginSeekTime: 0 };
|
17151
|
+
return $[e3] = t3, e3;
|
17152
17152
|
}();
|
17153
|
-
|
17154
|
-
|
17153
|
+
_(">>> Setup", { playingId: n2, src: o2 }), e2.addListener("error", (e3) => {
|
17154
|
+
_(">>> Error", { soundId: e3 }), r2(e3);
|
17155
17155
|
}), e2.addListener("effectFinished", (e3) => {
|
17156
|
-
|
17156
|
+
_(">>> Finished", { soundId: e3 }), r2(e3);
|
17157
17157
|
}), t2.on("play", () => {
|
17158
|
-
switch (
|
17158
|
+
switch ($[n2].playState) {
|
17159
17159
|
case 0:
|
17160
|
-
|
17160
|
+
_(">>> Start play", { playingId: n2 }), s2(n2);
|
17161
17161
|
break;
|
17162
17162
|
case 2:
|
17163
|
-
|
17163
|
+
_(">>> Resume play", { playingId: n2 }), e2.resumeEffect(n2), $[n2].playState = 1;
|
17164
17164
|
}
|
17165
17165
|
}), t2.on("pause", () => {
|
17166
|
-
const t3 =
|
17166
|
+
const t3 = $[n2].playState;
|
17167
17167
|
switch (t3) {
|
17168
17168
|
case 1:
|
17169
|
-
|
17169
|
+
_(">>> Pause play", { playingId: n2 }), e2.pauseEffect(n2), $[n2].playState = 2;
|
17170
17170
|
break;
|
17171
17171
|
default:
|
17172
|
-
|
17172
|
+
_(">>> Skip Pause", { playingId: n2, currenState: t3 });
|
17173
17173
|
}
|
17174
17174
|
}), t2.on("timeupdate", () => {
|
17175
|
-
|
17176
|
-
const r3 =
|
17177
|
-
if (
|
17178
|
-
return void (t2.paused() || (
|
17175
|
+
$[n2], e2.getEffectCurrentPosition(n2).then((i4) => {
|
17176
|
+
const r3 = $[n2], o3 = i4 / 1e3, a2 = t2.currentTime(), l2 = r3.previousSeekTargetTime !== 0 && r3.previousBeginSeekTime !== 0;
|
17177
|
+
if (_(`>>> EffectSecond rtc: ${o3} js: ${a2} seeking: ${l2}`, { playingId: n2 }), r3.playState == 0)
|
17178
|
+
return void (t2.paused() || (_(">>> Play effect due to time update.", { playingId: n2 }), s2(n2)));
|
17179
17179
|
if (l2 && o3 < r3.previousSeekTargetTime)
|
17180
17180
|
return;
|
17181
17181
|
if (r3.playState !== 1)
|
17182
|
-
return void
|
17182
|
+
return void _(">>> Skip timupdate", { playingId: n2, state: r3.playState, jsTime: t2.currentTime(), rtcEffectTime: o3 });
|
17183
17183
|
function c2(t3, i5) {
|
17184
17184
|
e2.setEffectPosition(i5, 1e3 * t3), r3.previousBeginSeekTime = Date.now() / 1e3, r3.previousSeekTargetTime = t3;
|
17185
17185
|
}
|
17186
|
-
const
|
17186
|
+
const u2 = r3.previousBeginSeekTime;
|
17187
17187
|
if (i4 > 0) {
|
17188
17188
|
const e3 = a2 - o3, t3 = Math.abs(e3), i5 = 0.5;
|
17189
17189
|
if (t3 > i5)
|
17190
17190
|
if (l2) {
|
17191
|
-
const t4 = r3.previousSeekTargetTime - o3, i6 = Date.now() / 1e3 -
|
17192
|
-
c2(l3, n2),
|
17191
|
+
const t4 = r3.previousSeekTargetTime - o3, i6 = Date.now() / 1e3 - u2, s3 = i6 + (e3 > 0 ? e3 : 0), l3 = a2 + s3;
|
17192
|
+
c2(l3, n2), _(">>> Start seeking after seeking lag", { jsPlayerTime: a2, rtcEffectTime: o3, jsPlayerTimerAdvance: e3, lastSeekingCost: i6, estimatedRTCLag: s3, targetRTCSeekTime: l3, previousBeginSeekTime: u2, timeElapse: t4 });
|
17193
17193
|
} else if (t3 > 10)
|
17194
|
-
c2(a2, n2),
|
17194
|
+
c2(a2, n2), _(">>> DirectSeek", { time: a2, rtcEffectTime: o3, jsPlayerTimerAdvance: e3 });
|
17195
17195
|
else {
|
17196
17196
|
const t4 = r3.previousVideoJSAdvance, i6 = 0, s3 = a2 + i6;
|
17197
|
-
r3.previousVideoJSAdvance = i6, c2(s3, n2),
|
17197
|
+
r3.previousVideoJSAdvance = i6, c2(s3, n2), _(">>> Start seeking with lag", { jsPlayerTime: a2, rtcEffectTime: o3, jsPlayerTimerAdvance: e3, previousAdvance: t4, estimatedRTCLag: i6, targetRTCSeekTime: s3 });
|
17198
17198
|
}
|
17199
17199
|
else
|
17200
|
-
l2 && (
|
17200
|
+
l2 && (_(">>> SeekingFinish no lag", { jsPlayerTime: a2, rtcEffectTime: o3, jsPlayerTimerAdvance: e3, previousBeginSeekTime: u2, rtcLagTolerance: i5 }), r3.previousBeginSeekTime = 0, r3.previousSeekTargetTime = 0);
|
17201
17201
|
}
|
17202
17202
|
});
|
17203
17203
|
}), t2.on("dispose", () => {
|
17204
|
-
|
17204
|
+
$[n2].playState && (e2.stopEffect(n2), delete $[n2], _(">>> Dispose", { playingId: n2 }));
|
17205
17205
|
});
|
17206
17206
|
});
|
17207
17207
|
}
|
17208
|
-
class
|
17208
|
+
class te extends react.exports.Component {
|
17209
17209
|
constructor() {
|
17210
17210
|
super(...arguments), this.putAttributes = (e2) => {
|
17211
17211
|
const { context: t2 } = this.props, i2 = t2.getAttributes() || {};
|
@@ -17215,12 +17215,12 @@ class ee extends react.exports.Component {
|
|
17215
17215
|
}
|
17216
17216
|
render() {
|
17217
17217
|
const { context: e2 } = this.props, t2 = e2.getRoom(), i2 = t2 ? void 0 : e2.getDisplayer(), s2 = this.putAttributes;
|
17218
|
-
return l.createElement(
|
17218
|
+
return l.createElement(ie, { room: t2, player: i2, context: e2, plugin: { putAttributes: s2 } });
|
17219
17219
|
}
|
17220
17220
|
}
|
17221
|
-
class
|
17221
|
+
class ie extends react.exports.Component {
|
17222
17222
|
constructor(e2) {
|
17223
|
-
super(e2), this.alertMask = null, this.container = l.createRef(), this.controllerHiddenTimer = 0, this.syncPlayerTimer = 0, this.retryCount = 0, this.decreaseRetryTimer = 0, this.noSoundSyncCount = 0, this.showController = () => {
|
17223
|
+
super(e2), this.alertMask = null, this.container = l.createRef(), this.controllerHiddenTimer = 0, this.syncPlayerTimer = 0, this.retryCount = 0, this.decreaseRetryTimer = 0, this.noSoundSyncCount = 0, this.everPlayed = false, this.showController = () => {
|
17224
17224
|
this.setState({ controllerVisible: true }), this.debounceHidingController();
|
17225
17225
|
}, this.play = () => {
|
17226
17226
|
var e3;
|
@@ -17248,10 +17248,16 @@ class te extends react.exports.Component {
|
|
17248
17248
|
return;
|
17249
17249
|
if (this.state.NoSound && (this.noSoundSyncCount += 1) % 8 != 0)
|
17250
17250
|
return;
|
17251
|
-
i2.paused() !== t2.paused && (this.debug("<<< paused -> %o", t2.paused), t2.paused ? i2.pause() : (e3 = i2.play()) == null || e3.catch(this.catchPlayFail)), i2.muted() !== t2.muted && (this.debug("<<< muted -> %o", t2.muted), i2.muted(t2.muted)), i2.volume() !== t2.volume && (this.debug("<<< volume -> %o", t2.volume), i2.volume(t2.volume));
|
17251
|
+
i2.paused() !== t2.paused && (this.debug("<<< paused -> %o", t2.paused), t2.paused ? i2.pause() : ((e3 = i2.play()) == null || e3.catch(this.catchPlayFail), this.everPlayed = true)), i2.muted() !== t2.muted && (this.debug("<<< muted -> %o", t2.muted), i2.muted(t2.muted)), i2.volume() !== t2.volume && (this.debug("<<< volume -> %o", t2.volume), i2.volume(t2.volume));
|
17252
17252
|
const s2 = f(t2, this.props);
|
17253
17253
|
let r2 = g.currentTimeMaxError;
|
17254
|
-
this.state.NoSound && (r2 *= 3), s2 > i2.duration()
|
17254
|
+
if (this.state.NoSound && (r2 *= 3), s2 > i2.duration())
|
17255
|
+
this.resetPlayer();
|
17256
|
+
else if (Math.abs(i2.currentTime() - s2) > r2) {
|
17257
|
+
if (this.debug("<<< currentTime -> %o", s2), y)
|
17258
|
+
return void (this.everPlayed ? i2.currentTime(s2) : this.debug("<<< ignore iOS idle time update. -> %o (ignored)", s2));
|
17259
|
+
i2.currentTime(s2);
|
17260
|
+
}
|
17255
17261
|
}, this.debounceHidingController = () => {
|
17256
17262
|
this.controllerHiddenTimer && (clearTimeout(this.controllerHiddenTimer), this.controllerHiddenTimer = 0), this.controllerHiddenTimer = setTimeout(() => {
|
17257
17263
|
this.setState({ controllerVisible: false }), this.controllerHiddenTimer = 0;
|
@@ -17280,10 +17286,10 @@ class te extends react.exports.Component {
|
|
17280
17286
|
o2.className = "video-js", s2 && (o2.poster = s2), o2.setAttribute("playsInline", ""), o2.setAttribute("webkit-playsinline", "");
|
17281
17287
|
const n2 = document.createElement("source");
|
17282
17288
|
new URL(i2).pathname.endsWith(".m3u8") ? n2.type = "application/x-mpegURL" : o2.src = i2, n2.src = i2, t2 && (n2.type = t2), o2.appendChild(n2), r2.appendChild(o2), this.container.current.appendChild(r2), await new Promise((e4) => (window.requestAnimationFrame || window.setTimeout)(e4)), this.debug("initializing videojs() ...");
|
17283
|
-
const a2 =
|
17289
|
+
const a2 = p$1(o2);
|
17284
17290
|
this.player = a2, window.player = a2, a2.one("loadedmetadata", this.gracefullyUpdate);
|
17285
17291
|
const l2 = window.__mediaPlayerAudioEffectClient;
|
17286
|
-
l2 !== void 0 &&
|
17292
|
+
l2 !== void 0 && ee(l2, a2, i2), a2.on("ready", () => {
|
17287
17293
|
var e4;
|
17288
17294
|
(e4 = g.onPlayer) == null || e4.call(g, a2), a2.on("timeupdate", this.gracefullyUpdate), a2.on("volumechange", this.gracefullyUpdate), a2.on("seeked", this.gracefullyUpdate), a2.on("play", this.gracefullyUpdate), a2.on("pause", this.gracefullyUpdate), a2.on("ended", this.resetPlayer);
|
17289
17295
|
}), a2.on("error", this.catchPlayFail), this.setState({ MediaError: false });
|
@@ -17310,7 +17316,7 @@ class te extends react.exports.Component {
|
|
17310
17316
|
}
|
17311
17317
|
isShowingPoster() {
|
17312
17318
|
const e2 = this.getAttributes();
|
17313
|
-
return !(e2 == null ? void 0 : e2.src) ||
|
17319
|
+
return !(e2 == null ? void 0 : e2.src) || b.some((t2) => e2.src.endsWith(t2));
|
17314
17320
|
}
|
17315
17321
|
render() {
|
17316
17322
|
var e2, t2;
|
@@ -17320,13 +17326,13 @@ class te extends react.exports.Component {
|
|
17320
17326
|
if (!i2)
|
17321
17327
|
return null;
|
17322
17328
|
const s2 = 1e3 * (((e2 = this.player) == null ? void 0 : e2.duration()) || 1e3), r2 = ((t2 = this.player) == null ? void 0 : t2.bufferedPercent()) || 0;
|
17323
|
-
return l.createElement("div", { className: this.isEnabled() ? "vjs-p" : "vjs-p disabled", onMouseEnter: this.showController, onMouseMove: this.showController }, l.createElement("div", { className: "video-js-plugin-player", ref: this.container }), this.isShowingPoster() && l.createElement("div", { className: "video-js-plugin-poster" }, i2.poster && l.createElement("img", { src: i2.poster, alt: "", draggable: false })), l.createElement(
|
17329
|
+
return l.createElement("div", { className: this.isEnabled() ? "vjs-p" : "vjs-p disabled", onMouseEnter: this.showController, onMouseMove: this.showController }, l.createElement("div", { className: "video-js-plugin-player", ref: this.container }), this.isShowingPoster() && l.createElement("div", { className: "video-js-plugin-poster" }, i2.poster && l.createElement("img", { src: i2.poster, alt: "", draggable: false })), l.createElement(X, { duration: s2, volume: i2.volume, setVolume: this.setVolume, paused: i2.paused, play: this.play, pause: this.pause, currentTime: 1e3 * f(i2, this.props), setCurrentTime: this.setCurrentTime, buffered: s2 * r2, visible: true }), this.state.NoSound && l.createElement("div", { ref: this.setupAlert, className: "videojs-plugin-muted-alert" }), this.state.MediaError && l.createElement("div", { className: "videojs-plugin-recovery-mode" }, l.createElement("button", { ref: this.setupReload }, "Reload Player")));
|
17324
17330
|
}
|
17325
17331
|
debug(e2, ...t2) {
|
17326
17332
|
g.verbose && g.log(`[MediaPlayer] ${e2}`, ...t2);
|
17327
17333
|
}
|
17328
17334
|
componentDidMount() {
|
17329
|
-
this.debug("app version =", "0.1.0-alpha.5"), this.debug("video.js version =",
|
17335
|
+
this.debug("app version =", "0.1.0-alpha.5"), this.debug("video.js version =", p$1.VERSION), this.initPlayer(), this.props.context.emitter.on("attributesUpdate", this.syncPlayerWithAttributes), this.syncPlayerTimer = setInterval(this.syncPlayerWithAttributes, g.syncInterval), this.decreaseRetryTimer = setInterval(this.decreaseRetryCount, g.retryInterval);
|
17330
17336
|
}
|
17331
17337
|
componentWillUnmount() {
|
17332
17338
|
var e2;
|
@@ -17336,7 +17342,7 @@ class te extends react.exports.Component {
|
|
17336
17342
|
return this.props.context.getIsWritable();
|
17337
17343
|
}
|
17338
17344
|
}
|
17339
|
-
const
|
17345
|
+
const se = { kind: "MediaPlayer", setup(e2) {
|
17340
17346
|
let t2 = e2.getAttributes();
|
17341
17347
|
if (!t2 || !t2.src)
|
17342
17348
|
return e2.emitter.emit("destroy", { error: new Error("[MediaPlayer]: Missing 'attributes'.'src'.") });
|
@@ -17344,8 +17350,8 @@ const ie = { kind: "MediaPlayer", setup(e2) {
|
|
17344
17350
|
const i2 = e2.getBox();
|
17345
17351
|
i2.mountStyles('.vjs-p{display:flex;flex-grow:1}.vjs-p *{pointer-events:auto}.vjs-p.disabled *{pointer-events:none}.vjs-p .video-js-plugin-poster{position:absolute;top:0;left:0;right:0;bottom:0;background-image:url(data:image/png;base64,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);background-repeat:repeat-x;background-position:0 50%;display:flex;align-items:center;justify-content:center}.vjs-p .video-js-plugin-poster img{box-shadow:0 0 5px 10px #0006}.vjs-p .player-controller,.vjs-p .videojs-plugin-muted-alert{pointer-events:auto}.vjs-p.disabled .videojs-plugin-close-icon,.vjs-p.disabled .player-controller{pointer-events:none}.vjs-p .video-js-plugin-player{position:absolute;top:0;left:0;right:0;bottom:0}.video-js,[data-vjs-player]{width:100%;height:100%}.vjs-p .videojs-plugin-muted-alert{pointer-events:auto;cursor:pointer;position:absolute;top:0;left:0;right:0;bottom:0;z-index:43}.vjs-p .videojs-plugin-muted-alert:before{pointer-events:auto;cursor:pointer;position:absolute;top:0;left:0;right:0;bottom:0;z-index:43;content:"\\f104";background:rgba(0,0,0,.3);font-family:VideoJS;font-size:2em;display:flex;align-items:center;justify-content:center;color:#fff}.vjs-p .videojs-plugin-recovery-mode{pointer-events:auto;cursor:pointer;position:absolute;top:0;left:0;right:0;bottom:0;z-index:44}.vjs-p .videojs-plugin-recovery-mode button{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.vjs-p .seek-slider{position:relative;width:100%}.vjs-p .seek-slider:focus{outline:none}.vjs-p .seek-slider .track{padding:10px 0;cursor:pointer;outline:none}.vjs-p .seek-slider .track:focus{border:0;outline:none}.vjs-p .seek-slider .track .main{width:100%;height:3px;background-color:#ffffff4d;border-radius:30px;position:absolute;left:0;top:8.5px;transition:transform .4s;outline:none}.vjs-p .seek-slider .track .main:focus{border:0;outline:none}.vjs-p .seek-slider .track .main .buffered{position:absolute;background-color:#ffffff4d;width:100%;height:100%;transform:scaleX(.8);z-index:2;transform-origin:0 0}.vjs-p .seek-slider .track .main .seek-hover{position:absolute;background-color:#ffffff80;width:100%;height:100%;z-index:1;transform:scaleX(.6);transform-origin:0 0;opacity:0;transition:opacity .4s}.vjs-p .seek-slider .track .main .connect{position:absolute;background-color:#fff;width:100%;height:100%;z-index:3;left:0;transform:scaleX(.13);transform-origin:0 0}.vjs-p .seek-slider .track.active .main{transform:scaleY(2)}.vjs-p .seek-slider .thumb{pointer-events:none;position:absolute;width:12px;height:12px;left:-6px;top:4px;z-index:4;transform:translate(100px)}.vjs-p .seek-slider .thumb .handler{border-radius:100%;width:100%;height:100%;background-color:#fff;opacity:0;transform:scale(.4);cursor:pointer;transition:transform .2s;pointer-events:none}.vjs-p .seek-slider .thumb.active .handler{opacity:1;transform:scale(1)}.vjs-p .seek-slider .hover-time{position:absolute;background-color:#0000004d;line-height:18px;font-size:16px;color:#ddd;top:-25px;left:0;padding:5px 10px;border-radius:5px;box-shadow:0 0 5px #0000004d;opacity:0;transform:translate(150px);pointer-events:none}.vjs-p .seek-slider .hover-time.active{opacity:1}.vjs-p .seek-slider:hover .track .main .seek-hover{opacity:1}.vjs-p .player-controller{position:absolute;z-index:100;bottom:0px;left:0;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:stretch;height:64px;background-image:linear-gradient(0deg,#000,transparent);transition:opacity .2s;color:#fff}.vjs-p .player-menu-box{display:flex;align-items:center;justify-content:center;flex-direction:column;margin-bottom:40px}.vjs-p .player-menu-cell{width:100%;text-align:center;font-size:12px;color:#7a7b7c}.vjs-p .player-multiple-play{width:64px;height:120px}.vjs-p .player-controller-actions-left{display:flex;justify-content:center;align-items:center;flex-shrink:0}.vjs-p .player-right-box{font-size:14px;color:#7a7b7c;cursor:pointer;margin-right:12px}.vjs-p .player-controller-actions{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-left:8px;padding-right:8px;margin-top:2px}.vjs-p .player-mid-box-time{font-size:9px;display:flex;justify-content:center;align-items:center;color:#fff;flex-shrink:0;margin-right:8px;font-family:monospace}.vjs-p .player-controller-play{display:flex;align-items:center;justify-content:center;cursor:pointer;padding-right:4px}.vjs-p .player-controller-progress{width:calc(100% - 28px);margin-left:14px;display:flex;align-items:center;justify-content:center;margin-top:8px}.vjs-p .player-volume{display:flex;align-items:center;justify-content:center;cursor:pointer;margin-right:16px;margin-left:8px}.vjs-p .player-volume-slider{width:60px;margin-right:12px;display:flex;align-items:center}.vjs-p .player-volume-box{display:flex;flex-direction:row}.netless-app-media-player-container{display:flex;position:relative;height:100%}\n');
|
17346
17352
|
const s2 = document.createElement("div");
|
17347
|
-
s2.classList.add("netless-app-media-player-container"),
|
17348
|
-
console.log("[MediaPlayer]: destroy"),
|
17353
|
+
s2.classList.add("netless-app-media-player-container"), u.render(l.createElement(te, { context: e2 }), s2), i2.mountContent(s2), e2.emitter.on("destroy", () => {
|
17354
|
+
console.log("[MediaPlayer]: destroy"), u.unmountComponentAtNode(s2);
|
17349
17355
|
});
|
17350
17356
|
} };
|
17351
17357
|
const setupBuiltin = () => {
|
@@ -17357,13 +17363,13 @@ const setupBuiltin = () => {
|
|
17357
17363
|
src: NetlessAppDocsViewer
|
17358
17364
|
});
|
17359
17365
|
WindowManager.register({
|
17360
|
-
kind:
|
17361
|
-
src:
|
17366
|
+
kind: se.kind,
|
17367
|
+
src: se
|
17362
17368
|
});
|
17363
17369
|
};
|
17364
17370
|
const BuiltinApps = {
|
17365
17371
|
DocsViewer: NetlessAppDocsViewer.kind,
|
17366
|
-
MediaPlayer:
|
17372
|
+
MediaPlayer: se.kind
|
17367
17373
|
};
|
17368
17374
|
var videoJs = "";
|
17369
17375
|
var style$1 = "";
|
@@ -17883,15 +17889,15 @@ const reconnectRefresher = new ReconnectRefresher({ emitter: internalEmitter });
|
|
17883
17889
|
const _WindowManager = class extends InvisiblePlugin {
|
17884
17890
|
constructor(context) {
|
17885
17891
|
super(context);
|
17886
|
-
this.version = "0.4.
|
17887
|
-
this.dependencies = { "dependencies": { "@juggle/resize-observer": "^3.3.1", "@netless/telebox-insider": "0.2.28", "emittery": "^0.9.2", "lodash": "^4.17.21", "p-retry": "^4.6.1", "uuid": "^7.0.3", "video.js": ">=7" }, "peerDependencies": { "jspdf": "2.5.1", "white-web-sdk": "^2.16.0" }, "devDependencies": { "@hyrious/dts": "^0.2.2", "@netless/app-docs-viewer": "^0.2.17", "@netless/app-media-player": "0.1.0-beta.
|
17892
|
+
this.version = "0.4.76-canary.0";
|
17893
|
+
this.dependencies = { "dependencies": { "@juggle/resize-observer": "^3.3.1", "@netless/telebox-insider": "0.2.28", "emittery": "^0.9.2", "lodash": "^4.17.21", "p-retry": "^4.6.1", "uuid": "^7.0.3", "video.js": ">=7" }, "peerDependencies": { "jspdf": "2.5.1", "white-web-sdk": "^2.16.0" }, "devDependencies": { "@hyrious/dts": "^0.2.2", "@netless/app-docs-viewer": "^0.2.17", "@netless/app-media-player": "0.1.0-beta.10", "@rollup/plugin-commonjs": "^20.0.0", "@rollup/plugin-node-resolve": "^13.0.4", "@rollup/plugin-url": "^6.1.0", "@sveltejs/vite-plugin-svelte": "^1.0.0-next.22", "@tsconfig/svelte": "^2.0.1", "@types/debug": "^4.1.7", "@types/lodash": "^4.14.182", "@types/lodash-es": "^4.17.4", "@types/uuid": "^8.3.1", "@typescript-eslint/eslint-plugin": "^4.30.0", "@typescript-eslint/parser": "^4.30.0", "@vitest/ui": "^0.14.1", "cypress": "^8.7.0", "dotenv": "^10.0.0", "eslint": "^7.32.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-svelte3": "^3.2.0", "jsdom": "^19.0.0", "jspdf": "^2.5.1", "less": "^4.1.1", "prettier": "^2.3.2", "prettier-plugin-svelte": "^2.4.0", "rollup-plugin-analyzer": "^4.0.0", "rollup-plugin-styles": "^3.14.1", "side-effect-manager": "0.1.5", "svelte": "^3.42.4", "typescript": "^4.5.5", "vite": "^2.9.9", "vitest": "^0.14.1", "white-web-sdk": "2.16.43" } };
|
17888
17894
|
this.emitter = callbacks$1;
|
17889
17895
|
this.viewMode = ViewMode.Broadcaster;
|
17890
17896
|
this.isReplay = isPlayer(this.displayer);
|
17891
17897
|
this._cursorUIDs = [];
|
17892
17898
|
this.containerSizeRatio = _WindowManager.containerSizeRatio;
|
17893
17899
|
_WindowManager.displayer = context.displayer;
|
17894
|
-
window.NETLESS_DEPS = { "dependencies": { "@juggle/resize-observer": "^3.3.1", "@netless/telebox-insider": "0.2.28", "emittery": "^0.9.2", "lodash": "^4.17.21", "p-retry": "^4.6.1", "uuid": "^7.0.3", "video.js": ">=7" }, "peerDependencies": { "jspdf": "2.5.1", "white-web-sdk": "^2.16.0" }, "devDependencies": { "@hyrious/dts": "^0.2.2", "@netless/app-docs-viewer": "^0.2.17", "@netless/app-media-player": "0.1.0-beta.
|
17900
|
+
window.NETLESS_DEPS = { "dependencies": { "@juggle/resize-observer": "^3.3.1", "@netless/telebox-insider": "0.2.28", "emittery": "^0.9.2", "lodash": "^4.17.21", "p-retry": "^4.6.1", "uuid": "^7.0.3", "video.js": ">=7" }, "peerDependencies": { "jspdf": "2.5.1", "white-web-sdk": "^2.16.0" }, "devDependencies": { "@hyrious/dts": "^0.2.2", "@netless/app-docs-viewer": "^0.2.17", "@netless/app-media-player": "0.1.0-beta.10", "@rollup/plugin-commonjs": "^20.0.0", "@rollup/plugin-node-resolve": "^13.0.4", "@rollup/plugin-url": "^6.1.0", "@sveltejs/vite-plugin-svelte": "^1.0.0-next.22", "@tsconfig/svelte": "^2.0.1", "@types/debug": "^4.1.7", "@types/lodash": "^4.14.182", "@types/lodash-es": "^4.17.4", "@types/uuid": "^8.3.1", "@typescript-eslint/eslint-plugin": "^4.30.0", "@typescript-eslint/parser": "^4.30.0", "@vitest/ui": "^0.14.1", "cypress": "^8.7.0", "dotenv": "^10.0.0", "eslint": "^7.32.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-svelte3": "^3.2.0", "jsdom": "^19.0.0", "jspdf": "^2.5.1", "less": "^4.1.1", "prettier": "^2.3.2", "prettier-plugin-svelte": "^2.4.0", "rollup-plugin-analyzer": "^4.0.0", "rollup-plugin-styles": "^3.14.1", "side-effect-manager": "0.1.5", "svelte": "^3.42.4", "typescript": "^4.5.5", "vite": "^2.9.9", "vitest": "^0.14.1", "white-web-sdk": "2.16.43" } };
|
17895
17901
|
}
|
17896
17902
|
static onCreate(manager) {
|
17897
17903
|
_WindowManager._resolve(manager);
|