@netless/window-manager 1.0.1 → 1.0.3-beta.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 +24 -24
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +553 -537
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
- package/src/BuiltinApps.ts +1 -1
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 u$3 from "video.js";
|
27
27
|
var Events = /* @__PURE__ */ ((Events2) => {
|
28
28
|
Events2["AppMove"] = "AppMove";
|
29
29
|
Events2["AppFocus"] = "AppFocus";
|
@@ -623,10 +623,10 @@ class BindContainerRoomPhaseInvalidError extends Error {
|
|
623
623
|
this.message = "[WindowManager]: room phase only Connected can be bindContainer";
|
624
624
|
}
|
625
625
|
}
|
626
|
-
const e$3 = "!#%()*+,-./:;=?@[]^_`{|}~ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", s$3 = e$3.length, t$
|
626
|
+
const e$3 = "!#%()*+,-./:;=?@[]^_`{|}~ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", s$3 = e$3.length, t$3 = Array(20), r$4 = () => {
|
627
627
|
for (let r2 = 0; r2 < 20; r2++)
|
628
|
-
t$
|
629
|
-
return t$
|
628
|
+
t$3[r2] = e$3.charAt(Math.random() * s$3);
|
629
|
+
return t$3.join("");
|
630
630
|
};
|
631
631
|
class o$2 {
|
632
632
|
constructor() {
|
@@ -2996,367 +2996,6 @@ class ContainerResizeObserver {
|
|
2996
2996
|
}
|
2997
2997
|
}
|
2998
2998
|
}
|
2999
|
-
var react = { exports: {} };
|
3000
|
-
var react_production_min = {};
|
3001
|
-
/*
|
3002
|
-
object-assign
|
3003
|
-
(c) Sindre Sorhus
|
3004
|
-
@license MIT
|
3005
|
-
*/
|
3006
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
3007
|
-
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
3008
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
3009
|
-
function toObject(val) {
|
3010
|
-
if (val === null || val === void 0) {
|
3011
|
-
throw new TypeError("Object.assign cannot be called with null or undefined");
|
3012
|
-
}
|
3013
|
-
return Object(val);
|
3014
|
-
}
|
3015
|
-
function shouldUseNative$1() {
|
3016
|
-
try {
|
3017
|
-
if (!Object.assign) {
|
3018
|
-
return false;
|
3019
|
-
}
|
3020
|
-
var test1 = new String("abc");
|
3021
|
-
test1[5] = "de";
|
3022
|
-
if (Object.getOwnPropertyNames(test1)[0] === "5") {
|
3023
|
-
return false;
|
3024
|
-
}
|
3025
|
-
var test2 = {};
|
3026
|
-
for (var i2 = 0; i2 < 10; i2++) {
|
3027
|
-
test2["_" + String.fromCharCode(i2)] = i2;
|
3028
|
-
}
|
3029
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function(n2) {
|
3030
|
-
return test2[n2];
|
3031
|
-
});
|
3032
|
-
if (order2.join("") !== "0123456789") {
|
3033
|
-
return false;
|
3034
|
-
}
|
3035
|
-
var test3 = {};
|
3036
|
-
"abcdefghijklmnopqrst".split("").forEach(function(letter) {
|
3037
|
-
test3[letter] = letter;
|
3038
|
-
});
|
3039
|
-
if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
|
3040
|
-
return false;
|
3041
|
-
}
|
3042
|
-
return true;
|
3043
|
-
} catch (err) {
|
3044
|
-
return false;
|
3045
|
-
}
|
3046
|
-
}
|
3047
|
-
var objectAssign = shouldUseNative$1() ? Object.assign : function(target, source) {
|
3048
|
-
var from;
|
3049
|
-
var to = toObject(target);
|
3050
|
-
var symbols;
|
3051
|
-
for (var s2 = 1; s2 < arguments.length; s2++) {
|
3052
|
-
from = Object(arguments[s2]);
|
3053
|
-
for (var key in from) {
|
3054
|
-
if (hasOwnProperty.call(from, key)) {
|
3055
|
-
to[key] = from[key];
|
3056
|
-
}
|
3057
|
-
}
|
3058
|
-
if (getOwnPropertySymbols) {
|
3059
|
-
symbols = getOwnPropertySymbols(from);
|
3060
|
-
for (var i2 = 0; i2 < symbols.length; i2++) {
|
3061
|
-
if (propIsEnumerable.call(from, symbols[i2])) {
|
3062
|
-
to[symbols[i2]] = from[symbols[i2]];
|
3063
|
-
}
|
3064
|
-
}
|
3065
|
-
}
|
3066
|
-
}
|
3067
|
-
return to;
|
3068
|
-
};
|
3069
|
-
/** @license React v16.14.0
|
3070
|
-
* react.production.min.js
|
3071
|
-
*
|
3072
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
3073
|
-
*
|
3074
|
-
* This source code is licensed under the MIT license found in the
|
3075
|
-
* LICENSE file in the root directory of this source tree.
|
3076
|
-
*/
|
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
|
-
function C$2(a2) {
|
3079
|
-
for (var b2 = "https://reactjs.org/docs/error-decoder.html?invariant=" + a2, c2 = 1; c2 < arguments.length; c2++)
|
3080
|
-
b2 += "&args[]=" + encodeURIComponent(arguments[c2]);
|
3081
|
-
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.";
|
3082
|
-
}
|
3083
|
-
var D$1 = { isMounted: function() {
|
3084
|
-
return false;
|
3085
|
-
}, enqueueForceUpdate: function() {
|
3086
|
-
}, enqueueReplaceState: function() {
|
3087
|
-
}, enqueueSetState: function() {
|
3088
|
-
} }, E$2 = {};
|
3089
|
-
function F$2(a2, b2, c2) {
|
3090
|
-
this.props = a2;
|
3091
|
-
this.context = b2;
|
3092
|
-
this.refs = E$2;
|
3093
|
-
this.updater = c2 || D$1;
|
3094
|
-
}
|
3095
|
-
F$2.prototype.isReactComponent = {};
|
3096
|
-
F$2.prototype.setState = function(a2, b2) {
|
3097
|
-
if (typeof a2 !== "object" && typeof a2 !== "function" && a2 != null)
|
3098
|
-
throw Error(C$2(85));
|
3099
|
-
this.updater.enqueueSetState(this, a2, b2, "setState");
|
3100
|
-
};
|
3101
|
-
F$2.prototype.forceUpdate = function(a2) {
|
3102
|
-
this.updater.enqueueForceUpdate(this, a2, "forceUpdate");
|
3103
|
-
};
|
3104
|
-
function G$2() {
|
3105
|
-
}
|
3106
|
-
G$2.prototype = F$2.prototype;
|
3107
|
-
function H$2(a2, b2, c2) {
|
3108
|
-
this.props = a2;
|
3109
|
-
this.context = b2;
|
3110
|
-
this.refs = E$2;
|
3111
|
-
this.updater = c2 || D$1;
|
3112
|
-
}
|
3113
|
-
var I$2 = H$2.prototype = new G$2();
|
3114
|
-
I$2.constructor = H$2;
|
3115
|
-
l$1(I$2, F$2.prototype);
|
3116
|
-
I$2.isPureReactComponent = true;
|
3117
|
-
var J$2 = { current: null }, K$2 = Object.prototype.hasOwnProperty, L$2 = { key: true, ref: true, __self: true, __source: true };
|
3118
|
-
function M$2(a2, b2, c2) {
|
3119
|
-
var e2, d2 = {}, g2 = null, k2 = null;
|
3120
|
-
if (b2 != null)
|
3121
|
-
for (e2 in b2.ref !== void 0 && (k2 = b2.ref), b2.key !== void 0 && (g2 = "" + b2.key), b2)
|
3122
|
-
K$2.call(b2, e2) && !L$2.hasOwnProperty(e2) && (d2[e2] = b2[e2]);
|
3123
|
-
var f2 = arguments.length - 2;
|
3124
|
-
if (f2 === 1)
|
3125
|
-
d2.children = c2;
|
3126
|
-
else if (1 < f2) {
|
3127
|
-
for (var h2 = Array(f2), m2 = 0; m2 < f2; m2++)
|
3128
|
-
h2[m2] = arguments[m2 + 2];
|
3129
|
-
d2.children = h2;
|
3130
|
-
}
|
3131
|
-
if (a2 && a2.defaultProps)
|
3132
|
-
for (e2 in f2 = a2.defaultProps, f2)
|
3133
|
-
d2[e2] === void 0 && (d2[e2] = f2[e2]);
|
3134
|
-
return { $$typeof: p, type: a2, key: g2, ref: k2, props: d2, _owner: J$2.current };
|
3135
|
-
}
|
3136
|
-
function N$2(a2, b2) {
|
3137
|
-
return { $$typeof: p, type: a2.type, key: b2, ref: a2.ref, props: a2.props, _owner: a2._owner };
|
3138
|
-
}
|
3139
|
-
function O$2(a2) {
|
3140
|
-
return typeof a2 === "object" && a2 !== null && a2.$$typeof === p;
|
3141
|
-
}
|
3142
|
-
function escape(a2) {
|
3143
|
-
var b2 = { "=": "=0", ":": "=2" };
|
3144
|
-
return "$" + ("" + a2).replace(/[=:]/g, function(a3) {
|
3145
|
-
return b2[a3];
|
3146
|
-
});
|
3147
|
-
}
|
3148
|
-
var P$2 = /\/+/g, Q$2 = [];
|
3149
|
-
function R$2(a2, b2, c2, e2) {
|
3150
|
-
if (Q$2.length) {
|
3151
|
-
var d2 = Q$2.pop();
|
3152
|
-
d2.result = a2;
|
3153
|
-
d2.keyPrefix = b2;
|
3154
|
-
d2.func = c2;
|
3155
|
-
d2.context = e2;
|
3156
|
-
d2.count = 0;
|
3157
|
-
return d2;
|
3158
|
-
}
|
3159
|
-
return { result: a2, keyPrefix: b2, func: c2, context: e2, count: 0 };
|
3160
|
-
}
|
3161
|
-
function S$2(a2) {
|
3162
|
-
a2.result = null;
|
3163
|
-
a2.keyPrefix = null;
|
3164
|
-
a2.func = null;
|
3165
|
-
a2.context = null;
|
3166
|
-
a2.count = 0;
|
3167
|
-
10 > Q$2.length && Q$2.push(a2);
|
3168
|
-
}
|
3169
|
-
function T$2(a2, b2, c2, e2) {
|
3170
|
-
var d2 = typeof a2;
|
3171
|
-
if (d2 === "undefined" || d2 === "boolean")
|
3172
|
-
a2 = null;
|
3173
|
-
var g2 = false;
|
3174
|
-
if (a2 === null)
|
3175
|
-
g2 = true;
|
3176
|
-
else
|
3177
|
-
switch (d2) {
|
3178
|
-
case "string":
|
3179
|
-
case "number":
|
3180
|
-
g2 = true;
|
3181
|
-
break;
|
3182
|
-
case "object":
|
3183
|
-
switch (a2.$$typeof) {
|
3184
|
-
case p:
|
3185
|
-
case q$1:
|
3186
|
-
g2 = true;
|
3187
|
-
}
|
3188
|
-
}
|
3189
|
-
if (g2)
|
3190
|
-
return c2(e2, a2, b2 === "" ? "." + U$2(a2, 0) : b2), 1;
|
3191
|
-
g2 = 0;
|
3192
|
-
b2 = b2 === "" ? "." : b2 + ":";
|
3193
|
-
if (Array.isArray(a2))
|
3194
|
-
for (var k2 = 0; k2 < a2.length; k2++) {
|
3195
|
-
d2 = a2[k2];
|
3196
|
-
var f2 = b2 + U$2(d2, k2);
|
3197
|
-
g2 += T$2(d2, f2, c2, e2);
|
3198
|
-
}
|
3199
|
-
else if (a2 === null || typeof a2 !== "object" ? f2 = null : (f2 = B$1 && a2[B$1] || a2["@@iterator"], f2 = typeof f2 === "function" ? f2 : null), typeof f2 === "function")
|
3200
|
-
for (a2 = f2.call(a2), k2 = 0; !(d2 = a2.next()).done; )
|
3201
|
-
d2 = d2.value, f2 = b2 + U$2(d2, k2++), g2 += T$2(d2, f2, c2, e2);
|
3202
|
-
else if (d2 === "object")
|
3203
|
-
throw c2 = "" + a2, Error(C$2(31, c2 === "[object Object]" ? "object with keys {" + Object.keys(a2).join(", ") + "}" : c2, ""));
|
3204
|
-
return g2;
|
3205
|
-
}
|
3206
|
-
function V$2(a2, b2, c2) {
|
3207
|
-
return a2 == null ? 0 : T$2(a2, "", b2, c2);
|
3208
|
-
}
|
3209
|
-
function U$2(a2, b2) {
|
3210
|
-
return typeof a2 === "object" && a2 !== null && a2.key != null ? escape(a2.key) : b2.toString(36);
|
3211
|
-
}
|
3212
|
-
function W$2(a2, b2) {
|
3213
|
-
a2.func.call(a2.context, b2, a2.count++);
|
3214
|
-
}
|
3215
|
-
function aa$1(a2, b2, c2) {
|
3216
|
-
var e2 = a2.result, d2 = a2.keyPrefix;
|
3217
|
-
a2 = a2.func.call(a2.context, b2, a2.count++);
|
3218
|
-
Array.isArray(a2) ? X$2(a2, e2, c2, function(a3) {
|
3219
|
-
return a3;
|
3220
|
-
}) : a2 != null && (O$2(a2) && (a2 = N$2(a2, d2 + (!a2.key || b2 && b2.key === a2.key ? "" : ("" + a2.key).replace(P$2, "$&/") + "/") + c2)), e2.push(a2));
|
3221
|
-
}
|
3222
|
-
function X$2(a2, b2, c2, e2, d2) {
|
3223
|
-
var g2 = "";
|
3224
|
-
c2 != null && (g2 = ("" + c2).replace(P$2, "$&/") + "/");
|
3225
|
-
b2 = R$2(b2, g2, e2, d2);
|
3226
|
-
V$2(a2, aa$1, b2);
|
3227
|
-
S$2(b2);
|
3228
|
-
}
|
3229
|
-
var Y$2 = { current: null };
|
3230
|
-
function Z$2() {
|
3231
|
-
var a2 = Y$2.current;
|
3232
|
-
if (a2 === null)
|
3233
|
-
throw Error(C$2(321));
|
3234
|
-
return a2;
|
3235
|
-
}
|
3236
|
-
var ba$1 = { ReactCurrentDispatcher: Y$2, ReactCurrentBatchConfig: { suspense: null }, ReactCurrentOwner: J$2, IsSomeRendererActing: { current: false }, assign: l$1 };
|
3237
|
-
react_production_min.Children = { map: function(a2, b2, c2) {
|
3238
|
-
if (a2 == null)
|
3239
|
-
return a2;
|
3240
|
-
var e2 = [];
|
3241
|
-
X$2(a2, e2, null, b2, c2);
|
3242
|
-
return e2;
|
3243
|
-
}, forEach: function(a2, b2, c2) {
|
3244
|
-
if (a2 == null)
|
3245
|
-
return a2;
|
3246
|
-
b2 = R$2(null, null, b2, c2);
|
3247
|
-
V$2(a2, W$2, b2);
|
3248
|
-
S$2(b2);
|
3249
|
-
}, count: function(a2) {
|
3250
|
-
return V$2(a2, function() {
|
3251
|
-
return null;
|
3252
|
-
}, null);
|
3253
|
-
}, toArray: function(a2) {
|
3254
|
-
var b2 = [];
|
3255
|
-
X$2(a2, b2, null, function(a3) {
|
3256
|
-
return a3;
|
3257
|
-
});
|
3258
|
-
return b2;
|
3259
|
-
}, only: function(a2) {
|
3260
|
-
if (!O$2(a2))
|
3261
|
-
throw Error(C$2(143));
|
3262
|
-
return a2;
|
3263
|
-
} };
|
3264
|
-
react_production_min.Component = F$2;
|
3265
|
-
react_production_min.Fragment = r$3;
|
3266
|
-
react_production_min.Profiler = u$3;
|
3267
|
-
react_production_min.PureComponent = H$2;
|
3268
|
-
react_production_min.StrictMode = t$3;
|
3269
|
-
react_production_min.Suspense = y$1;
|
3270
|
-
react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ba$1;
|
3271
|
-
react_production_min.cloneElement = function(a2, b2, c2) {
|
3272
|
-
if (a2 === null || a2 === void 0)
|
3273
|
-
throw Error(C$2(267, a2));
|
3274
|
-
var e2 = l$1({}, a2.props), d2 = a2.key, g2 = a2.ref, k2 = a2._owner;
|
3275
|
-
if (b2 != null) {
|
3276
|
-
b2.ref !== void 0 && (g2 = b2.ref, k2 = J$2.current);
|
3277
|
-
b2.key !== void 0 && (d2 = "" + b2.key);
|
3278
|
-
if (a2.type && a2.type.defaultProps)
|
3279
|
-
var f2 = a2.type.defaultProps;
|
3280
|
-
for (h2 in b2)
|
3281
|
-
K$2.call(b2, h2) && !L$2.hasOwnProperty(h2) && (e2[h2] = b2[h2] === void 0 && f2 !== void 0 ? f2[h2] : b2[h2]);
|
3282
|
-
}
|
3283
|
-
var h2 = arguments.length - 2;
|
3284
|
-
if (h2 === 1)
|
3285
|
-
e2.children = c2;
|
3286
|
-
else if (1 < h2) {
|
3287
|
-
f2 = Array(h2);
|
3288
|
-
for (var m2 = 0; m2 < h2; m2++)
|
3289
|
-
f2[m2] = arguments[m2 + 2];
|
3290
|
-
e2.children = f2;
|
3291
|
-
}
|
3292
|
-
return {
|
3293
|
-
$$typeof: p,
|
3294
|
-
type: a2.type,
|
3295
|
-
key: d2,
|
3296
|
-
ref: g2,
|
3297
|
-
props: e2,
|
3298
|
-
_owner: k2
|
3299
|
-
};
|
3300
|
-
};
|
3301
|
-
react_production_min.createContext = function(a2, b2) {
|
3302
|
-
b2 === void 0 && (b2 = null);
|
3303
|
-
a2 = { $$typeof: w$1, _calculateChangedBits: b2, _currentValue: a2, _currentValue2: a2, _threadCount: 0, Provider: null, Consumer: null };
|
3304
|
-
a2.Provider = { $$typeof: v$2, _context: a2 };
|
3305
|
-
return a2.Consumer = a2;
|
3306
|
-
};
|
3307
|
-
react_production_min.createElement = M$2;
|
3308
|
-
react_production_min.createFactory = function(a2) {
|
3309
|
-
var b2 = M$2.bind(null, a2);
|
3310
|
-
b2.type = a2;
|
3311
|
-
return b2;
|
3312
|
-
};
|
3313
|
-
react_production_min.createRef = function() {
|
3314
|
-
return { current: null };
|
3315
|
-
};
|
3316
|
-
react_production_min.forwardRef = function(a2) {
|
3317
|
-
return { $$typeof: x$1, render: a2 };
|
3318
|
-
};
|
3319
|
-
react_production_min.isValidElement = O$2;
|
3320
|
-
react_production_min.lazy = function(a2) {
|
3321
|
-
return { $$typeof: A$1, _ctor: a2, _status: -1, _result: null };
|
3322
|
-
};
|
3323
|
-
react_production_min.memo = function(a2, b2) {
|
3324
|
-
return { $$typeof: z$1, type: a2, compare: b2 === void 0 ? null : b2 };
|
3325
|
-
};
|
3326
|
-
react_production_min.useCallback = function(a2, b2) {
|
3327
|
-
return Z$2().useCallback(a2, b2);
|
3328
|
-
};
|
3329
|
-
react_production_min.useContext = function(a2, b2) {
|
3330
|
-
return Z$2().useContext(a2, b2);
|
3331
|
-
};
|
3332
|
-
react_production_min.useDebugValue = function() {
|
3333
|
-
};
|
3334
|
-
react_production_min.useEffect = function(a2, b2) {
|
3335
|
-
return Z$2().useEffect(a2, b2);
|
3336
|
-
};
|
3337
|
-
react_production_min.useImperativeHandle = function(a2, b2, c2) {
|
3338
|
-
return Z$2().useImperativeHandle(a2, b2, c2);
|
3339
|
-
};
|
3340
|
-
react_production_min.useLayoutEffect = function(a2, b2) {
|
3341
|
-
return Z$2().useLayoutEffect(a2, b2);
|
3342
|
-
};
|
3343
|
-
react_production_min.useMemo = function(a2, b2) {
|
3344
|
-
return Z$2().useMemo(a2, b2);
|
3345
|
-
};
|
3346
|
-
react_production_min.useReducer = function(a2, b2, c2) {
|
3347
|
-
return Z$2().useReducer(a2, b2, c2);
|
3348
|
-
};
|
3349
|
-
react_production_min.useRef = function(a2) {
|
3350
|
-
return Z$2().useRef(a2);
|
3351
|
-
};
|
3352
|
-
react_production_min.useState = function(a2) {
|
3353
|
-
return Z$2().useState(a2);
|
3354
|
-
};
|
3355
|
-
react_production_min.version = "16.14.0";
|
3356
|
-
{
|
3357
|
-
react.exports = react_production_min;
|
3358
|
-
}
|
3359
|
-
var l = react.exports;
|
3360
2999
|
var __defProp2 = Object.defineProperty;
|
3361
3000
|
var __defProps2 = Object.defineProperties;
|
3362
3001
|
var __getOwnPropDescs2 = Object.getOwnPropertyDescriptors;
|
@@ -4422,10 +4061,10 @@ var shallowequal = function shallowEqual(objA, objB, compare, compareContext) {
|
|
4422
4061
|
}
|
4423
4062
|
return true;
|
4424
4063
|
};
|
4425
|
-
const e$1 = "!#%()*+,-./:;=?@[]^_`{|}~ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", s$1 = e$1.length, t$1 = Array(20), r$1$1 = () => {
|
4064
|
+
const e$1 = "!#%()*+,-./:;=?@[]^_`{|}~ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", s$1 = e$1.length, t$1$1 = Array(20), r$1$1 = () => {
|
4426
4065
|
for (let r2 = 0; r2 < 20; r2++)
|
4427
|
-
t$1[r2] = e$1.charAt(Math.random() * s$1);
|
4428
|
-
return t$1.join("");
|
4066
|
+
t$1$1[r2] = e$1.charAt(Math.random() * s$1);
|
4067
|
+
return t$1$1.join("");
|
4429
4068
|
};
|
4430
4069
|
class o$1 {
|
4431
4070
|
constructor() {
|
@@ -4480,7 +4119,7 @@ class o$1 {
|
|
4480
4119
|
var e$2 = Object.defineProperty, s$2 = (typeof require != "undefined" && require, (s2, r2, t2) => (((s3, r3, t3) => {
|
4481
4120
|
r3 in s3 ? e$2(s3, r3, { enumerable: true, configurable: true, writable: true, value: t3 }) : s3[r3] = t3;
|
4482
4121
|
})(s2, typeof r2 != "symbol" ? r2 + "" : r2, t2), t2));
|
4483
|
-
class r$
|
4122
|
+
class r$3 {
|
4484
4123
|
constructor(e2, r2) {
|
4485
4124
|
s$2(this, "_value"), s$2(this, "_beforeDestroys"), s$2(this, "_subscribers"), this._value = e2, r2 && (this.compare = r2);
|
4486
4125
|
}
|
@@ -4503,7 +4142,7 @@ class r$2 {
|
|
4503
4142
|
return e2(this._value, void 0, s2), r2;
|
4504
4143
|
}
|
4505
4144
|
derive(e2, s2, t2) {
|
4506
|
-
const i2 = new r$
|
4145
|
+
const i2 = new r$3(e2(this.value, void 0, t2), s2), o2 = this.reaction((s3, r2, t3) => {
|
4507
4146
|
i2.setValue(e2(s3, r2, t3));
|
4508
4147
|
});
|
4509
4148
|
return i2.addBeforeDestroy(o2), i2;
|
@@ -4522,7 +4161,7 @@ class r$2 {
|
|
4522
4161
|
}
|
4523
4162
|
function t$2(e2, s2, t2, i2) {
|
4524
4163
|
let o2 = e2.map((e3) => e3.value);
|
4525
|
-
const u2 = new r$
|
4164
|
+
const u2 = new r$3(s2(o2, void 0, i2), t2);
|
4526
4165
|
return e2.forEach((e3, r2) => {
|
4527
4166
|
const t3 = e3.reaction((e4, t4, i3) => {
|
4528
4167
|
const c2 = o2.slice();
|
@@ -4551,7 +4190,7 @@ function c(e2) {
|
|
4551
4190
|
e2.remove(r2);
|
4552
4191
|
}), s3;
|
4553
4192
|
};
|
4554
|
-
return { bindSideEffect: s2, combine: (e3, r2, i2, o2) => s2(t$2(e3, r2, i2, o2)), createVal: (e3, t2) => s2(new r$
|
4193
|
+
return { bindSideEffect: s2, combine: (e3, r2, i2, o2) => s2(t$2(e3, r2, i2, o2)), createVal: (e3, t2) => s2(new r$3(e3, t2)) };
|
4555
4194
|
}
|
4556
4195
|
var TELE_BOX_COLOR_SCHEME;
|
4557
4196
|
(function(TELE_BOX_COLOR_SCHEME2) {
|
@@ -4909,6 +4548,11 @@ class TeleBox {
|
|
4909
4548
|
const containerRect$ = createVal(containerRect, shallowequal);
|
4910
4549
|
const collectorRect$ = createVal(collectorRect, shallowequal);
|
4911
4550
|
const title$ = createVal(title);
|
4551
|
+
title$.reaction((title2, _2, skipUpdate) => {
|
4552
|
+
if (!skipUpdate) {
|
4553
|
+
this.titleBar.setTitle(title2);
|
4554
|
+
}
|
4555
|
+
});
|
4912
4556
|
const visible$ = createVal(visible);
|
4913
4557
|
visible$.reaction((visible2, _2, skipUpdate) => {
|
4914
4558
|
if (!skipUpdate && !visible2) {
|
@@ -5313,7 +4957,11 @@ class TeleBox {
|
|
5313
4957
|
});
|
5314
4958
|
});
|
5315
4959
|
this._renderSideEffect.add(() => this._visible$.subscribe((visible) => {
|
5316
|
-
|
4960
|
+
if (visible) {
|
4961
|
+
this.$box.style.removeProperty("display");
|
4962
|
+
} else {
|
4963
|
+
this.$box.style.display = "none";
|
4964
|
+
}
|
5317
4965
|
}));
|
5318
4966
|
this._renderSideEffect.add(() => this._zIndex$.subscribe((zIndex) => {
|
5319
4967
|
this.$box.style.zIndex = String(zIndex);
|
@@ -6186,7 +5834,7 @@ class TeleBoxManager {
|
|
6186
5834
|
this.removeAll(skipUpdate);
|
6187
5835
|
Object.keys(this).forEach((key) => {
|
6188
5836
|
const value = this[key];
|
6189
|
-
if (value instanceof r$
|
5837
|
+
if (value instanceof r$3) {
|
6190
5838
|
value.destroy();
|
6191
5839
|
}
|
6192
5840
|
});
|
@@ -9249,7 +8897,7 @@ const onExit = (element2, entry, settings, instance2) => {
|
|
9249
8897
|
safeCallback(settings.callback_exit, element2, entry, instance2);
|
9250
8898
|
};
|
9251
8899
|
const tagsWithNativeLazy = ["IMG", "IFRAME", "VIDEO"];
|
9252
|
-
const shouldUseNative = (settings) => settings.use_native && "loading" in HTMLImageElement.prototype;
|
8900
|
+
const shouldUseNative$1 = (settings) => settings.use_native && "loading" in HTMLImageElement.prototype;
|
9253
8901
|
const loadAllNative = (elements, settings, instance2) => {
|
9254
8902
|
elements.forEach((element2) => {
|
9255
8903
|
if (tagsWithNativeLazy.indexOf(element2.tagName) === -1) {
|
@@ -9277,7 +8925,7 @@ const updateObserver = (observer, elementsToObserve) => {
|
|
9277
8925
|
observeElements(observer, elementsToObserve);
|
9278
8926
|
};
|
9279
8927
|
const setObserver = (settings, instance2) => {
|
9280
|
-
if (!supportsIntersectionObserver || shouldUseNative(settings)) {
|
8928
|
+
if (!supportsIntersectionObserver || shouldUseNative$1(settings)) {
|
9281
8929
|
return;
|
9282
8930
|
}
|
9283
8931
|
instance2._observer = new IntersectionObserver((entries) => {
|
@@ -9330,7 +8978,7 @@ LazyLoad.prototype = {
|
|
9330
8978
|
this.loadAll(elementsToLoad);
|
9331
8979
|
return;
|
9332
8980
|
}
|
9333
|
-
if (shouldUseNative(settings)) {
|
8981
|
+
if (shouldUseNative$1(settings)) {
|
9334
8982
|
loadAllNative(elementsToLoad, settings, this);
|
9335
8983
|
return;
|
9336
8984
|
}
|
@@ -10682,50 +10330,411 @@ function setupStaticDocsViewer(context, whiteboardView, box, pages) {
|
|
10682
10330
|
index: docsViewer.viewer.pageIndex,
|
10683
10331
|
length: pages.length
|
10684
10332
|
});
|
10685
|
-
context.emitter.on("attributesUpdate", (attributes) => {
|
10686
|
-
if (attributes) {
|
10687
|
-
if (attributes.pageScrollTop != null) {
|
10688
|
-
docsViewer.syncPageScrollTop(attributes.pageScrollTop);
|
10689
|
-
}
|
10333
|
+
context.emitter.on("attributesUpdate", (attributes) => {
|
10334
|
+
if (attributes) {
|
10335
|
+
if (attributes.pageScrollTop != null) {
|
10336
|
+
docsViewer.syncPageScrollTop(attributes.pageScrollTop);
|
10337
|
+
}
|
10338
|
+
}
|
10339
|
+
});
|
10340
|
+
context.emitter.on("writableChange", (isWritable) => {
|
10341
|
+
docsViewer.setReadonly(!isWritable);
|
10342
|
+
whiteboardView.disableCameraTransform = !isWritable;
|
10343
|
+
});
|
10344
|
+
}
|
10345
|
+
function setupDynamicDocsViewer(context, whiteboardView, box, pages) {
|
10346
|
+
whiteboardView.disableCameraTransform = true;
|
10347
|
+
const docsViewer = new DynamicDocsViewer({
|
10348
|
+
context,
|
10349
|
+
whiteboardView,
|
10350
|
+
box,
|
10351
|
+
pages
|
10352
|
+
}).mount();
|
10353
|
+
docsViewer.viewer.onPageIndexChanged = (index2) => {
|
10354
|
+
context.dispatchAppEvent("pageStateChange", { index: index2, length: pages.length });
|
10355
|
+
};
|
10356
|
+
context.dispatchAppEvent("pageStateChange", {
|
10357
|
+
index: docsViewer.getPageIndex(),
|
10358
|
+
length: pages.length
|
10359
|
+
});
|
10360
|
+
context.mountView(docsViewer.$whiteboardView);
|
10361
|
+
if (context.isAddApp) {
|
10362
|
+
whiteboardView.callbacks.once("onSizeUpdated", ({ width: contentWidth, height: contentHeight }) => {
|
10363
|
+
if (pages.length > 0 && box.state !== "maximized") {
|
10364
|
+
const { width: pageWidth, height: pageHeight } = pages[0];
|
10365
|
+
const preferHeight = pageHeight / pageWidth * contentWidth;
|
10366
|
+
const diff = preferHeight - contentHeight;
|
10367
|
+
if (diff !== 0 && context.getIsWritable()) {
|
10368
|
+
context.emitter.emit("setBoxSize", {
|
10369
|
+
width: box.width,
|
10370
|
+
height: box.height + diff / box.containerRect.height
|
10371
|
+
});
|
10372
|
+
}
|
10373
|
+
}
|
10374
|
+
});
|
10375
|
+
}
|
10376
|
+
}
|
10377
|
+
var react = { exports: {} };
|
10378
|
+
var react_production_min = {};
|
10379
|
+
/*
|
10380
|
+
object-assign
|
10381
|
+
(c) Sindre Sorhus
|
10382
|
+
@license MIT
|
10383
|
+
*/
|
10384
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
10385
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
10386
|
+
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
10387
|
+
function toObject(val) {
|
10388
|
+
if (val === null || val === void 0) {
|
10389
|
+
throw new TypeError("Object.assign cannot be called with null or undefined");
|
10390
|
+
}
|
10391
|
+
return Object(val);
|
10392
|
+
}
|
10393
|
+
function shouldUseNative() {
|
10394
|
+
try {
|
10395
|
+
if (!Object.assign) {
|
10396
|
+
return false;
|
10397
|
+
}
|
10398
|
+
var test1 = new String("abc");
|
10399
|
+
test1[5] = "de";
|
10400
|
+
if (Object.getOwnPropertyNames(test1)[0] === "5") {
|
10401
|
+
return false;
|
10402
|
+
}
|
10403
|
+
var test2 = {};
|
10404
|
+
for (var i2 = 0; i2 < 10; i2++) {
|
10405
|
+
test2["_" + String.fromCharCode(i2)] = i2;
|
10406
|
+
}
|
10407
|
+
var order2 = Object.getOwnPropertyNames(test2).map(function(n2) {
|
10408
|
+
return test2[n2];
|
10409
|
+
});
|
10410
|
+
if (order2.join("") !== "0123456789") {
|
10411
|
+
return false;
|
10412
|
+
}
|
10413
|
+
var test3 = {};
|
10414
|
+
"abcdefghijklmnopqrst".split("").forEach(function(letter) {
|
10415
|
+
test3[letter] = letter;
|
10416
|
+
});
|
10417
|
+
if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
|
10418
|
+
return false;
|
10419
|
+
}
|
10420
|
+
return true;
|
10421
|
+
} catch (err) {
|
10422
|
+
return false;
|
10423
|
+
}
|
10424
|
+
}
|
10425
|
+
var objectAssign = shouldUseNative() ? Object.assign : function(target, source) {
|
10426
|
+
var from;
|
10427
|
+
var to = toObject(target);
|
10428
|
+
var symbols;
|
10429
|
+
for (var s2 = 1; s2 < arguments.length; s2++) {
|
10430
|
+
from = Object(arguments[s2]);
|
10431
|
+
for (var key in from) {
|
10432
|
+
if (hasOwnProperty.call(from, key)) {
|
10433
|
+
to[key] = from[key];
|
10434
|
+
}
|
10435
|
+
}
|
10436
|
+
if (getOwnPropertySymbols) {
|
10437
|
+
symbols = getOwnPropertySymbols(from);
|
10438
|
+
for (var i2 = 0; i2 < symbols.length; i2++) {
|
10439
|
+
if (propIsEnumerable.call(from, symbols[i2])) {
|
10440
|
+
to[symbols[i2]] = from[symbols[i2]];
|
10441
|
+
}
|
10442
|
+
}
|
10443
|
+
}
|
10444
|
+
}
|
10445
|
+
return to;
|
10446
|
+
};
|
10447
|
+
/** @license React v16.14.0
|
10448
|
+
* react.production.min.js
|
10449
|
+
*
|
10450
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
10451
|
+
*
|
10452
|
+
* This source code is licensed under the MIT license found in the
|
10453
|
+
* LICENSE file in the root directory of this source tree.
|
10454
|
+
*/
|
10455
|
+
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$2 = n$2 ? Symbol.for("react.fragment") : 60107, t$1 = n$2 ? Symbol.for("react.strict_mode") : 60108, u$1 = 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;
|
10456
|
+
function C$2(a2) {
|
10457
|
+
for (var b2 = "https://reactjs.org/docs/error-decoder.html?invariant=" + a2, c2 = 1; c2 < arguments.length; c2++)
|
10458
|
+
b2 += "&args[]=" + encodeURIComponent(arguments[c2]);
|
10459
|
+
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.";
|
10460
|
+
}
|
10461
|
+
var D$1 = { isMounted: function() {
|
10462
|
+
return false;
|
10463
|
+
}, enqueueForceUpdate: function() {
|
10464
|
+
}, enqueueReplaceState: function() {
|
10465
|
+
}, enqueueSetState: function() {
|
10466
|
+
} }, E$2 = {};
|
10467
|
+
function F$2(a2, b2, c2) {
|
10468
|
+
this.props = a2;
|
10469
|
+
this.context = b2;
|
10470
|
+
this.refs = E$2;
|
10471
|
+
this.updater = c2 || D$1;
|
10472
|
+
}
|
10473
|
+
F$2.prototype.isReactComponent = {};
|
10474
|
+
F$2.prototype.setState = function(a2, b2) {
|
10475
|
+
if (typeof a2 !== "object" && typeof a2 !== "function" && a2 != null)
|
10476
|
+
throw Error(C$2(85));
|
10477
|
+
this.updater.enqueueSetState(this, a2, b2, "setState");
|
10478
|
+
};
|
10479
|
+
F$2.prototype.forceUpdate = function(a2) {
|
10480
|
+
this.updater.enqueueForceUpdate(this, a2, "forceUpdate");
|
10481
|
+
};
|
10482
|
+
function G$2() {
|
10483
|
+
}
|
10484
|
+
G$2.prototype = F$2.prototype;
|
10485
|
+
function H$2(a2, b2, c2) {
|
10486
|
+
this.props = a2;
|
10487
|
+
this.context = b2;
|
10488
|
+
this.refs = E$2;
|
10489
|
+
this.updater = c2 || D$1;
|
10490
|
+
}
|
10491
|
+
var I$2 = H$2.prototype = new G$2();
|
10492
|
+
I$2.constructor = H$2;
|
10493
|
+
l$1(I$2, F$2.prototype);
|
10494
|
+
I$2.isPureReactComponent = true;
|
10495
|
+
var J$2 = { current: null }, K$2 = Object.prototype.hasOwnProperty, L$2 = { key: true, ref: true, __self: true, __source: true };
|
10496
|
+
function M$2(a2, b2, c2) {
|
10497
|
+
var e2, d2 = {}, g2 = null, k2 = null;
|
10498
|
+
if (b2 != null)
|
10499
|
+
for (e2 in b2.ref !== void 0 && (k2 = b2.ref), b2.key !== void 0 && (g2 = "" + b2.key), b2)
|
10500
|
+
K$2.call(b2, e2) && !L$2.hasOwnProperty(e2) && (d2[e2] = b2[e2]);
|
10501
|
+
var f2 = arguments.length - 2;
|
10502
|
+
if (f2 === 1)
|
10503
|
+
d2.children = c2;
|
10504
|
+
else if (1 < f2) {
|
10505
|
+
for (var h2 = Array(f2), m2 = 0; m2 < f2; m2++)
|
10506
|
+
h2[m2] = arguments[m2 + 2];
|
10507
|
+
d2.children = h2;
|
10508
|
+
}
|
10509
|
+
if (a2 && a2.defaultProps)
|
10510
|
+
for (e2 in f2 = a2.defaultProps, f2)
|
10511
|
+
d2[e2] === void 0 && (d2[e2] = f2[e2]);
|
10512
|
+
return { $$typeof: p, type: a2, key: g2, ref: k2, props: d2, _owner: J$2.current };
|
10513
|
+
}
|
10514
|
+
function N$2(a2, b2) {
|
10515
|
+
return { $$typeof: p, type: a2.type, key: b2, ref: a2.ref, props: a2.props, _owner: a2._owner };
|
10516
|
+
}
|
10517
|
+
function O$2(a2) {
|
10518
|
+
return typeof a2 === "object" && a2 !== null && a2.$$typeof === p;
|
10519
|
+
}
|
10520
|
+
function escape(a2) {
|
10521
|
+
var b2 = { "=": "=0", ":": "=2" };
|
10522
|
+
return "$" + ("" + a2).replace(/[=:]/g, function(a3) {
|
10523
|
+
return b2[a3];
|
10524
|
+
});
|
10525
|
+
}
|
10526
|
+
var P$2 = /\/+/g, Q$2 = [];
|
10527
|
+
function R$2(a2, b2, c2, e2) {
|
10528
|
+
if (Q$2.length) {
|
10529
|
+
var d2 = Q$2.pop();
|
10530
|
+
d2.result = a2;
|
10531
|
+
d2.keyPrefix = b2;
|
10532
|
+
d2.func = c2;
|
10533
|
+
d2.context = e2;
|
10534
|
+
d2.count = 0;
|
10535
|
+
return d2;
|
10536
|
+
}
|
10537
|
+
return { result: a2, keyPrefix: b2, func: c2, context: e2, count: 0 };
|
10538
|
+
}
|
10539
|
+
function S$2(a2) {
|
10540
|
+
a2.result = null;
|
10541
|
+
a2.keyPrefix = null;
|
10542
|
+
a2.func = null;
|
10543
|
+
a2.context = null;
|
10544
|
+
a2.count = 0;
|
10545
|
+
10 > Q$2.length && Q$2.push(a2);
|
10546
|
+
}
|
10547
|
+
function T$2(a2, b2, c2, e2) {
|
10548
|
+
var d2 = typeof a2;
|
10549
|
+
if (d2 === "undefined" || d2 === "boolean")
|
10550
|
+
a2 = null;
|
10551
|
+
var g2 = false;
|
10552
|
+
if (a2 === null)
|
10553
|
+
g2 = true;
|
10554
|
+
else
|
10555
|
+
switch (d2) {
|
10556
|
+
case "string":
|
10557
|
+
case "number":
|
10558
|
+
g2 = true;
|
10559
|
+
break;
|
10560
|
+
case "object":
|
10561
|
+
switch (a2.$$typeof) {
|
10562
|
+
case p:
|
10563
|
+
case q$1:
|
10564
|
+
g2 = true;
|
10565
|
+
}
|
10690
10566
|
}
|
10691
|
-
|
10692
|
-
|
10693
|
-
|
10694
|
-
|
10695
|
-
|
10567
|
+
if (g2)
|
10568
|
+
return c2(e2, a2, b2 === "" ? "." + U$2(a2, 0) : b2), 1;
|
10569
|
+
g2 = 0;
|
10570
|
+
b2 = b2 === "" ? "." : b2 + ":";
|
10571
|
+
if (Array.isArray(a2))
|
10572
|
+
for (var k2 = 0; k2 < a2.length; k2++) {
|
10573
|
+
d2 = a2[k2];
|
10574
|
+
var f2 = b2 + U$2(d2, k2);
|
10575
|
+
g2 += T$2(d2, f2, c2, e2);
|
10576
|
+
}
|
10577
|
+
else if (a2 === null || typeof a2 !== "object" ? f2 = null : (f2 = B$1 && a2[B$1] || a2["@@iterator"], f2 = typeof f2 === "function" ? f2 : null), typeof f2 === "function")
|
10578
|
+
for (a2 = f2.call(a2), k2 = 0; !(d2 = a2.next()).done; )
|
10579
|
+
d2 = d2.value, f2 = b2 + U$2(d2, k2++), g2 += T$2(d2, f2, c2, e2);
|
10580
|
+
else if (d2 === "object")
|
10581
|
+
throw c2 = "" + a2, Error(C$2(31, c2 === "[object Object]" ? "object with keys {" + Object.keys(a2).join(", ") + "}" : c2, ""));
|
10582
|
+
return g2;
|
10696
10583
|
}
|
10697
|
-
function
|
10698
|
-
|
10699
|
-
|
10700
|
-
|
10701
|
-
|
10702
|
-
|
10703
|
-
|
10704
|
-
|
10705
|
-
|
10706
|
-
|
10707
|
-
|
10708
|
-
|
10709
|
-
|
10710
|
-
|
10584
|
+
function V$2(a2, b2, c2) {
|
10585
|
+
return a2 == null ? 0 : T$2(a2, "", b2, c2);
|
10586
|
+
}
|
10587
|
+
function U$2(a2, b2) {
|
10588
|
+
return typeof a2 === "object" && a2 !== null && a2.key != null ? escape(a2.key) : b2.toString(36);
|
10589
|
+
}
|
10590
|
+
function W$2(a2, b2) {
|
10591
|
+
a2.func.call(a2.context, b2, a2.count++);
|
10592
|
+
}
|
10593
|
+
function aa$1(a2, b2, c2) {
|
10594
|
+
var e2 = a2.result, d2 = a2.keyPrefix;
|
10595
|
+
a2 = a2.func.call(a2.context, b2, a2.count++);
|
10596
|
+
Array.isArray(a2) ? X$2(a2, e2, c2, function(a3) {
|
10597
|
+
return a3;
|
10598
|
+
}) : a2 != null && (O$2(a2) && (a2 = N$2(a2, d2 + (!a2.key || b2 && b2.key === a2.key ? "" : ("" + a2.key).replace(P$2, "$&/") + "/") + c2)), e2.push(a2));
|
10599
|
+
}
|
10600
|
+
function X$2(a2, b2, c2, e2, d2) {
|
10601
|
+
var g2 = "";
|
10602
|
+
c2 != null && (g2 = ("" + c2).replace(P$2, "$&/") + "/");
|
10603
|
+
b2 = R$2(b2, g2, e2, d2);
|
10604
|
+
V$2(a2, aa$1, b2);
|
10605
|
+
S$2(b2);
|
10606
|
+
}
|
10607
|
+
var Y$2 = { current: null };
|
10608
|
+
function Z$2() {
|
10609
|
+
var a2 = Y$2.current;
|
10610
|
+
if (a2 === null)
|
10611
|
+
throw Error(C$2(321));
|
10612
|
+
return a2;
|
10613
|
+
}
|
10614
|
+
var ba$1 = { ReactCurrentDispatcher: Y$2, ReactCurrentBatchConfig: { suspense: null }, ReactCurrentOwner: J$2, IsSomeRendererActing: { current: false }, assign: l$1 };
|
10615
|
+
react_production_min.Children = { map: function(a2, b2, c2) {
|
10616
|
+
if (a2 == null)
|
10617
|
+
return a2;
|
10618
|
+
var e2 = [];
|
10619
|
+
X$2(a2, e2, null, b2, c2);
|
10620
|
+
return e2;
|
10621
|
+
}, forEach: function(a2, b2, c2) {
|
10622
|
+
if (a2 == null)
|
10623
|
+
return a2;
|
10624
|
+
b2 = R$2(null, null, b2, c2);
|
10625
|
+
V$2(a2, W$2, b2);
|
10626
|
+
S$2(b2);
|
10627
|
+
}, count: function(a2) {
|
10628
|
+
return V$2(a2, function() {
|
10629
|
+
return null;
|
10630
|
+
}, null);
|
10631
|
+
}, toArray: function(a2) {
|
10632
|
+
var b2 = [];
|
10633
|
+
X$2(a2, b2, null, function(a3) {
|
10634
|
+
return a3;
|
10711
10635
|
});
|
10712
|
-
|
10713
|
-
|
10714
|
-
|
10715
|
-
|
10716
|
-
|
10717
|
-
|
10718
|
-
|
10719
|
-
|
10720
|
-
|
10721
|
-
|
10722
|
-
|
10723
|
-
|
10724
|
-
|
10725
|
-
|
10726
|
-
|
10636
|
+
return b2;
|
10637
|
+
}, only: function(a2) {
|
10638
|
+
if (!O$2(a2))
|
10639
|
+
throw Error(C$2(143));
|
10640
|
+
return a2;
|
10641
|
+
} };
|
10642
|
+
react_production_min.Component = F$2;
|
10643
|
+
react_production_min.Fragment = r$2;
|
10644
|
+
react_production_min.Profiler = u$1;
|
10645
|
+
react_production_min.PureComponent = H$2;
|
10646
|
+
react_production_min.StrictMode = t$1;
|
10647
|
+
react_production_min.Suspense = y$1;
|
10648
|
+
react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ba$1;
|
10649
|
+
react_production_min.cloneElement = function(a2, b2, c2) {
|
10650
|
+
if (a2 === null || a2 === void 0)
|
10651
|
+
throw Error(C$2(267, a2));
|
10652
|
+
var e2 = l$1({}, a2.props), d2 = a2.key, g2 = a2.ref, k2 = a2._owner;
|
10653
|
+
if (b2 != null) {
|
10654
|
+
b2.ref !== void 0 && (g2 = b2.ref, k2 = J$2.current);
|
10655
|
+
b2.key !== void 0 && (d2 = "" + b2.key);
|
10656
|
+
if (a2.type && a2.type.defaultProps)
|
10657
|
+
var f2 = a2.type.defaultProps;
|
10658
|
+
for (h2 in b2)
|
10659
|
+
K$2.call(b2, h2) && !L$2.hasOwnProperty(h2) && (e2[h2] = b2[h2] === void 0 && f2 !== void 0 ? f2[h2] : b2[h2]);
|
10660
|
+
}
|
10661
|
+
var h2 = arguments.length - 2;
|
10662
|
+
if (h2 === 1)
|
10663
|
+
e2.children = c2;
|
10664
|
+
else if (1 < h2) {
|
10665
|
+
f2 = Array(h2);
|
10666
|
+
for (var m2 = 0; m2 < h2; m2++)
|
10667
|
+
f2[m2] = arguments[m2 + 2];
|
10668
|
+
e2.children = f2;
|
10727
10669
|
}
|
10670
|
+
return {
|
10671
|
+
$$typeof: p,
|
10672
|
+
type: a2.type,
|
10673
|
+
key: d2,
|
10674
|
+
ref: g2,
|
10675
|
+
props: e2,
|
10676
|
+
_owner: k2
|
10677
|
+
};
|
10678
|
+
};
|
10679
|
+
react_production_min.createContext = function(a2, b2) {
|
10680
|
+
b2 === void 0 && (b2 = null);
|
10681
|
+
a2 = { $$typeof: w$1, _calculateChangedBits: b2, _currentValue: a2, _currentValue2: a2, _threadCount: 0, Provider: null, Consumer: null };
|
10682
|
+
a2.Provider = { $$typeof: v$2, _context: a2 };
|
10683
|
+
return a2.Consumer = a2;
|
10684
|
+
};
|
10685
|
+
react_production_min.createElement = M$2;
|
10686
|
+
react_production_min.createFactory = function(a2) {
|
10687
|
+
var b2 = M$2.bind(null, a2);
|
10688
|
+
b2.type = a2;
|
10689
|
+
return b2;
|
10690
|
+
};
|
10691
|
+
react_production_min.createRef = function() {
|
10692
|
+
return { current: null };
|
10693
|
+
};
|
10694
|
+
react_production_min.forwardRef = function(a2) {
|
10695
|
+
return { $$typeof: x$1, render: a2 };
|
10696
|
+
};
|
10697
|
+
react_production_min.isValidElement = O$2;
|
10698
|
+
react_production_min.lazy = function(a2) {
|
10699
|
+
return { $$typeof: A$1, _ctor: a2, _status: -1, _result: null };
|
10700
|
+
};
|
10701
|
+
react_production_min.memo = function(a2, b2) {
|
10702
|
+
return { $$typeof: z$1, type: a2, compare: b2 === void 0 ? null : b2 };
|
10703
|
+
};
|
10704
|
+
react_production_min.useCallback = function(a2, b2) {
|
10705
|
+
return Z$2().useCallback(a2, b2);
|
10706
|
+
};
|
10707
|
+
react_production_min.useContext = function(a2, b2) {
|
10708
|
+
return Z$2().useContext(a2, b2);
|
10709
|
+
};
|
10710
|
+
react_production_min.useDebugValue = function() {
|
10711
|
+
};
|
10712
|
+
react_production_min.useEffect = function(a2, b2) {
|
10713
|
+
return Z$2().useEffect(a2, b2);
|
10714
|
+
};
|
10715
|
+
react_production_min.useImperativeHandle = function(a2, b2, c2) {
|
10716
|
+
return Z$2().useImperativeHandle(a2, b2, c2);
|
10717
|
+
};
|
10718
|
+
react_production_min.useLayoutEffect = function(a2, b2) {
|
10719
|
+
return Z$2().useLayoutEffect(a2, b2);
|
10720
|
+
};
|
10721
|
+
react_production_min.useMemo = function(a2, b2) {
|
10722
|
+
return Z$2().useMemo(a2, b2);
|
10723
|
+
};
|
10724
|
+
react_production_min.useReducer = function(a2, b2, c2) {
|
10725
|
+
return Z$2().useReducer(a2, b2, c2);
|
10726
|
+
};
|
10727
|
+
react_production_min.useRef = function(a2) {
|
10728
|
+
return Z$2().useRef(a2);
|
10729
|
+
};
|
10730
|
+
react_production_min.useState = function(a2) {
|
10731
|
+
return Z$2().useState(a2);
|
10732
|
+
};
|
10733
|
+
react_production_min.version = "16.14.0";
|
10734
|
+
{
|
10735
|
+
react.exports = react_production_min;
|
10728
10736
|
}
|
10737
|
+
var l = react.exports;
|
10729
10738
|
var reactDom = { exports: {} };
|
10730
10739
|
var reactDom_production_min = {};
|
10731
10740
|
var scheduler = { exports: {} };
|
@@ -11034,13 +11043,13 @@ var scheduler_production_min = {};
|
|
11034
11043
|
* LICENSE file in the root directory of this source tree.
|
11035
11044
|
*/
|
11036
11045
|
var aa = react.exports, n$1 = objectAssign, r$1 = scheduler.exports;
|
11037
|
-
function u
|
11046
|
+
function u(a2) {
|
11038
11047
|
for (var b2 = "https://reactjs.org/docs/error-decoder.html?invariant=" + a2, c2 = 1; c2 < arguments.length; c2++)
|
11039
11048
|
b2 += "&args[]=" + encodeURIComponent(arguments[c2]);
|
11040
11049
|
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.";
|
11041
11050
|
}
|
11042
11051
|
if (!aa)
|
11043
|
-
throw Error(u
|
11052
|
+
throw Error(u(227));
|
11044
11053
|
function ba(a2, b2, c2, d2, e2, f2, g2, h2, k2) {
|
11045
11054
|
var l2 = Array.prototype.slice.call(arguments, 3);
|
11046
11055
|
try {
|
@@ -11066,7 +11075,7 @@ function ka(a2, b2, c2, d2, e2, f2, g2, h2, k2) {
|
|
11066
11075
|
da = false;
|
11067
11076
|
ea = null;
|
11068
11077
|
} else
|
11069
|
-
throw Error(u
|
11078
|
+
throw Error(u(198));
|
11070
11079
|
fa || (fa = true, ha = l2);
|
11071
11080
|
}
|
11072
11081
|
}
|
@@ -11083,17 +11092,17 @@ function ra() {
|
|
11083
11092
|
for (var a2 in qa) {
|
11084
11093
|
var b2 = qa[a2], c2 = pa.indexOf(a2);
|
11085
11094
|
if (!(-1 < c2))
|
11086
|
-
throw Error(u
|
11095
|
+
throw Error(u(96, a2));
|
11087
11096
|
if (!sa[c2]) {
|
11088
11097
|
if (!b2.extractEvents)
|
11089
|
-
throw Error(u
|
11098
|
+
throw Error(u(97, a2));
|
11090
11099
|
sa[c2] = b2;
|
11091
11100
|
c2 = b2.eventTypes;
|
11092
11101
|
for (var d2 in c2) {
|
11093
11102
|
var e2 = void 0;
|
11094
11103
|
var f2 = c2[d2], g2 = b2, h2 = d2;
|
11095
11104
|
if (ta.hasOwnProperty(h2))
|
11096
|
-
throw Error(u
|
11105
|
+
throw Error(u(99, h2));
|
11097
11106
|
ta[h2] = f2;
|
11098
11107
|
var k2 = f2.phasedRegistrationNames;
|
11099
11108
|
if (k2) {
|
@@ -11103,14 +11112,14 @@ function ra() {
|
|
11103
11112
|
} else
|
11104
11113
|
f2.registrationName ? (ua(f2.registrationName, g2, h2), e2 = true) : e2 = false;
|
11105
11114
|
if (!e2)
|
11106
|
-
throw Error(u
|
11115
|
+
throw Error(u(98, d2, a2));
|
11107
11116
|
}
|
11108
11117
|
}
|
11109
11118
|
}
|
11110
11119
|
}
|
11111
11120
|
function ua(a2, b2, c2) {
|
11112
11121
|
if (va[a2])
|
11113
|
-
throw Error(u
|
11122
|
+
throw Error(u(100, a2));
|
11114
11123
|
va[a2] = b2;
|
11115
11124
|
wa[a2] = b2.eventTypes[c2].dependencies;
|
11116
11125
|
}
|
@@ -11122,7 +11131,7 @@ function xa(a2) {
|
|
11122
11131
|
var d2 = a2[c2];
|
11123
11132
|
if (!qa.hasOwnProperty(c2) || qa[c2] !== d2) {
|
11124
11133
|
if (qa[c2])
|
11125
|
-
throw Error(u
|
11134
|
+
throw Error(u(102, c2));
|
11126
11135
|
qa[c2] = d2;
|
11127
11136
|
b2 = true;
|
11128
11137
|
}
|
@@ -11133,7 +11142,7 @@ var ya = !(typeof window === "undefined" || typeof window.document === "undefine
|
|
11133
11142
|
function Ca(a2) {
|
11134
11143
|
if (a2 = ma(a2)) {
|
11135
11144
|
if (typeof za !== "function")
|
11136
|
-
throw Error(u
|
11145
|
+
throw Error(u(280));
|
11137
11146
|
var b2 = a2.stateNode;
|
11138
11147
|
b2 && (b2 = la(b2), za(a2.stateNode, a2.type, b2));
|
11139
11148
|
}
|
@@ -11514,7 +11523,7 @@ function Hb(a2, b2, c2, d2) {
|
|
11514
11523
|
}
|
11515
11524
|
function Ib(a2, b2) {
|
11516
11525
|
if (b2.dangerouslySetInnerHTML != null)
|
11517
|
-
throw Error(u
|
11526
|
+
throw Error(u(91));
|
11518
11527
|
return n$1({}, b2, { value: void 0, defaultValue: void 0, children: "" + a2._wrapperState.initialValue });
|
11519
11528
|
}
|
11520
11529
|
function Jb(a2, b2) {
|
@@ -11524,10 +11533,10 @@ function Jb(a2, b2) {
|
|
11524
11533
|
b2 = b2.defaultValue;
|
11525
11534
|
if (c2 != null) {
|
11526
11535
|
if (b2 != null)
|
11527
|
-
throw Error(u
|
11536
|
+
throw Error(u(92));
|
11528
11537
|
if (Array.isArray(c2)) {
|
11529
11538
|
if (!(1 >= c2.length))
|
11530
|
-
throw Error(u
|
11539
|
+
throw Error(u(93));
|
11531
11540
|
c2 = c2[0];
|
11532
11541
|
}
|
11533
11542
|
b2 = c2;
|
@@ -11638,14 +11647,14 @@ function ec(a2) {
|
|
11638
11647
|
}
|
11639
11648
|
function fc(a2) {
|
11640
11649
|
if (dc(a2) !== a2)
|
11641
|
-
throw Error(u
|
11650
|
+
throw Error(u(188));
|
11642
11651
|
}
|
11643
11652
|
function gc(a2) {
|
11644
11653
|
var b2 = a2.alternate;
|
11645
11654
|
if (!b2) {
|
11646
11655
|
b2 = dc(a2);
|
11647
11656
|
if (b2 === null)
|
11648
|
-
throw Error(u
|
11657
|
+
throw Error(u(188));
|
11649
11658
|
return b2 !== a2 ? null : a2;
|
11650
11659
|
}
|
11651
11660
|
for (var c2 = a2, d2 = b2; ; ) {
|
@@ -11669,7 +11678,7 @@ function gc(a2) {
|
|
11669
11678
|
return fc(e2), b2;
|
11670
11679
|
f2 = f2.sibling;
|
11671
11680
|
}
|
11672
|
-
throw Error(u
|
11681
|
+
throw Error(u(188));
|
11673
11682
|
}
|
11674
11683
|
if (c2.return !== d2.return)
|
11675
11684
|
c2 = e2, d2 = f2;
|
@@ -11706,14 +11715,14 @@ function gc(a2) {
|
|
11706
11715
|
h2 = h2.sibling;
|
11707
11716
|
}
|
11708
11717
|
if (!g2)
|
11709
|
-
throw Error(u
|
11718
|
+
throw Error(u(189));
|
11710
11719
|
}
|
11711
11720
|
}
|
11712
11721
|
if (c2.alternate !== d2)
|
11713
|
-
throw Error(u
|
11722
|
+
throw Error(u(190));
|
11714
11723
|
}
|
11715
11724
|
if (c2.tag !== 3)
|
11716
|
-
throw Error(u
|
11725
|
+
throw Error(u(188));
|
11717
11726
|
return c2.stateNode.current === c2 ? a2 : b2;
|
11718
11727
|
}
|
11719
11728
|
function hc(a2) {
|
@@ -11741,7 +11750,7 @@ function hc(a2) {
|
|
11741
11750
|
}
|
11742
11751
|
function ic(a2, b2) {
|
11743
11752
|
if (b2 == null)
|
11744
|
-
throw Error(u
|
11753
|
+
throw Error(u(30));
|
11745
11754
|
if (a2 == null)
|
11746
11755
|
return b2;
|
11747
11756
|
if (Array.isArray(a2)) {
|
@@ -11776,7 +11785,7 @@ function mc(a2) {
|
|
11776
11785
|
if (a2) {
|
11777
11786
|
jc(a2, lc);
|
11778
11787
|
if (kc)
|
11779
|
-
throw Error(u
|
11788
|
+
throw Error(u(95));
|
11780
11789
|
if (fa)
|
11781
11790
|
throw a2 = ha, fa = false, ha = null, a2;
|
11782
11791
|
}
|
@@ -12224,15 +12233,15 @@ var nd = n$1({ menuitem: true }, { area: true, base: true, br: true, col: true,
|
|
12224
12233
|
function od(a2, b2) {
|
12225
12234
|
if (b2) {
|
12226
12235
|
if (nd[a2] && (b2.children != null || b2.dangerouslySetInnerHTML != null))
|
12227
|
-
throw Error(u
|
12236
|
+
throw Error(u(137, a2, ""));
|
12228
12237
|
if (b2.dangerouslySetInnerHTML != null) {
|
12229
12238
|
if (b2.children != null)
|
12230
|
-
throw Error(u
|
12239
|
+
throw Error(u(60));
|
12231
12240
|
if (!(typeof b2.dangerouslySetInnerHTML === "object" && "__html" in b2.dangerouslySetInnerHTML))
|
12232
|
-
throw Error(u
|
12241
|
+
throw Error(u(61));
|
12233
12242
|
}
|
12234
12243
|
if (b2.style != null && typeof b2.style !== "object")
|
12235
|
-
throw Error(u
|
12244
|
+
throw Error(u(62, ""));
|
12236
12245
|
}
|
12237
12246
|
}
|
12238
12247
|
function pd(a2, b2) {
|
@@ -12389,7 +12398,7 @@ function Nc(a2) {
|
|
12389
12398
|
function Pd(a2) {
|
12390
12399
|
if (a2.tag === 5 || a2.tag === 6)
|
12391
12400
|
return a2.stateNode;
|
12392
|
-
throw Error(u
|
12401
|
+
throw Error(u(33));
|
12393
12402
|
}
|
12394
12403
|
function Qd(a2) {
|
12395
12404
|
return a2[Nd] || null;
|
@@ -12430,7 +12439,7 @@ function Sd(a2, b2) {
|
|
12430
12439
|
if (a2)
|
12431
12440
|
return null;
|
12432
12441
|
if (c2 && typeof c2 !== "function")
|
12433
|
-
throw Error(u
|
12442
|
+
throw Error(u(231, b2, typeof c2));
|
12434
12443
|
return c2;
|
12435
12444
|
}
|
12436
12445
|
function Td(a2, b2, c2) {
|
@@ -12535,7 +12544,7 @@ function ee$1(a2, b2, c2, d2) {
|
|
12535
12544
|
}
|
12536
12545
|
function fe(a2) {
|
12537
12546
|
if (!(a2 instanceof this))
|
12538
|
-
throw Error(u
|
12547
|
+
throw Error(u(279));
|
12539
12548
|
a2.destructor();
|
12540
12549
|
10 > this.eventPool.length && this.eventPool.push(a2);
|
12541
12550
|
}
|
@@ -13018,7 +13027,7 @@ var pf = { Esc: "Escape", Spacebar: " ", Left: "ArrowLeft", Up: "ArrowUp", Right
|
|
13018
13027
|
return b2;
|
13019
13028
|
} };
|
13020
13029
|
if (pa)
|
13021
|
-
throw Error(u
|
13030
|
+
throw Error(u(101));
|
13022
13031
|
pa = Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" "));
|
13023
13032
|
ra();
|
13024
13033
|
var xf = Nc;
|
@@ -13059,7 +13068,7 @@ function Df() {
|
|
13059
13068
|
}
|
13060
13069
|
function Ef(a2, b2, c2) {
|
13061
13070
|
if (J$1.current !== Af)
|
13062
|
-
throw Error(u
|
13071
|
+
throw Error(u(168));
|
13063
13072
|
I$1(J$1, b2);
|
13064
13073
|
I$1(K$1, c2);
|
13065
13074
|
}
|
@@ -13071,7 +13080,7 @@ function Ff(a2, b2, c2) {
|
|
13071
13080
|
d2 = d2.getChildContext();
|
13072
13081
|
for (var e2 in d2)
|
13073
13082
|
if (!(e2 in a2))
|
13074
|
-
throw Error(u
|
13083
|
+
throw Error(u(108, pb(b2) || "Unknown", e2));
|
13075
13084
|
return n$1({}, c2, {}, d2);
|
13076
13085
|
}
|
13077
13086
|
function Gf(a2) {
|
@@ -13084,7 +13093,7 @@ function Gf(a2) {
|
|
13084
13093
|
function Hf(a2, b2, c2) {
|
13085
13094
|
var d2 = a2.stateNode;
|
13086
13095
|
if (!d2)
|
13087
|
-
throw Error(u
|
13096
|
+
throw Error(u(169));
|
13088
13097
|
c2 ? (a2 = Ff(a2, b2, Bf), d2.__reactInternalMemoizedMergedChildContext = a2, H$1(K$1), H$1(J$1), I$1(J$1, a2)) : H$1(K$1);
|
13089
13098
|
I$1(K$1, c2);
|
13090
13099
|
}
|
@@ -13105,7 +13114,7 @@ function ag() {
|
|
13105
13114
|
case Sf:
|
13106
13115
|
return 95;
|
13107
13116
|
default:
|
13108
|
-
throw Error(u
|
13117
|
+
throw Error(u(332));
|
13109
13118
|
}
|
13110
13119
|
}
|
13111
13120
|
function bg(a2) {
|
@@ -13121,7 +13130,7 @@ function bg(a2) {
|
|
13121
13130
|
case 95:
|
13122
13131
|
return Sf;
|
13123
13132
|
default:
|
13124
|
-
throw Error(u
|
13133
|
+
throw Error(u(332));
|
13125
13134
|
}
|
13126
13135
|
}
|
13127
13136
|
function cg(a2, b2) {
|
@@ -13213,7 +13222,7 @@ function sg(a2, b2) {
|
|
13213
13222
|
b2 = { context: a2, observedBits: b2, next: null };
|
13214
13223
|
if (lg === null) {
|
13215
13224
|
if (kg === null)
|
13216
|
-
throw Error(u
|
13225
|
+
throw Error(u(308));
|
13217
13226
|
lg = b2;
|
13218
13227
|
kg.dependencies = { expirationTime: 0, firstContext: b2, responders: null };
|
13219
13228
|
} else
|
@@ -13333,7 +13342,7 @@ function Cg(a2, b2, c2) {
|
|
13333
13342
|
d2 = e2;
|
13334
13343
|
e2 = c2;
|
13335
13344
|
if (typeof d2 !== "function")
|
13336
|
-
throw Error(u
|
13345
|
+
throw Error(u(191, d2));
|
13337
13346
|
d2.call(e2);
|
13338
13347
|
}
|
13339
13348
|
}
|
@@ -13422,11 +13431,11 @@ function Pg(a2, b2, c2) {
|
|
13422
13431
|
c2 = c2._owner;
|
13423
13432
|
if (c2) {
|
13424
13433
|
if (c2.tag !== 1)
|
13425
|
-
throw Error(u
|
13434
|
+
throw Error(u(309));
|
13426
13435
|
var d2 = c2.stateNode;
|
13427
13436
|
}
|
13428
13437
|
if (!d2)
|
13429
|
-
throw Error(u
|
13438
|
+
throw Error(u(147, a2));
|
13430
13439
|
var e2 = "" + a2;
|
13431
13440
|
if (b2 !== null && b2.ref !== null && typeof b2.ref === "function" && b2.ref._stringRef === e2)
|
13432
13441
|
return b2.ref;
|
@@ -13439,15 +13448,15 @@ function Pg(a2, b2, c2) {
|
|
13439
13448
|
return b2;
|
13440
13449
|
}
|
13441
13450
|
if (typeof a2 !== "string")
|
13442
|
-
throw Error(u
|
13451
|
+
throw Error(u(284));
|
13443
13452
|
if (!c2._owner)
|
13444
|
-
throw Error(u
|
13453
|
+
throw Error(u(290, a2));
|
13445
13454
|
}
|
13446
13455
|
return a2;
|
13447
13456
|
}
|
13448
13457
|
function Qg(a2, b2) {
|
13449
13458
|
if (a2.type !== "textarea")
|
13450
|
-
throw Error(u
|
13459
|
+
throw Error(u(31, Object.prototype.toString.call(b2) === "[object Object]" ? "object with keys {" + Object.keys(b2).join(", ") + "}" : b2, ""));
|
13451
13460
|
}
|
13452
13461
|
function Rg(a2) {
|
13453
13462
|
function b2(b3, c3) {
|
@@ -13599,10 +13608,10 @@ function Rg(a2) {
|
|
13599
13608
|
function D2(e3, g3, h3, l3) {
|
13600
13609
|
var k3 = nb(h3);
|
13601
13610
|
if (typeof k3 !== "function")
|
13602
|
-
throw Error(u
|
13611
|
+
throw Error(u(150));
|
13603
13612
|
h3 = k3.call(h3);
|
13604
13613
|
if (h3 == null)
|
13605
|
-
throw Error(u
|
13614
|
+
throw Error(u(151));
|
13606
13615
|
for (var m3 = k3 = null, t2 = g3, y2 = g3 = 0, A2 = null, q2 = h3.next(); t2 !== null && !q2.done; y2++, q2 = h3.next()) {
|
13607
13616
|
t2.index > y2 ? (A2 = t2, t2 = null) : A2 = t2.sibling;
|
13608
13617
|
var D3 = x2(e3, t2, q2.value, l3);
|
@@ -13705,7 +13714,7 @@ function Rg(a2) {
|
|
13705
13714
|
switch (a3.tag) {
|
13706
13715
|
case 1:
|
13707
13716
|
case 0:
|
13708
|
-
throw a3 = a3.type, Error(u
|
13717
|
+
throw a3 = a3.type, Error(u(152, a3.displayName || a3.name || "Component"));
|
13709
13718
|
}
|
13710
13719
|
return c2(a3, d3);
|
13711
13720
|
};
|
@@ -13713,7 +13722,7 @@ function Rg(a2) {
|
|
13713
13722
|
var Xg = Rg(true), Yg = Rg(false), Zg = {}, $g = { current: Zg }, ah = { current: Zg }, bh = { current: Zg };
|
13714
13723
|
function ch(a2) {
|
13715
13724
|
if (a2 === Zg)
|
13716
|
-
throw Error(u
|
13725
|
+
throw Error(u(174));
|
13717
13726
|
return a2;
|
13718
13727
|
}
|
13719
13728
|
function dh(a2, b2) {
|
@@ -13778,7 +13787,7 @@ function ih(a2, b2) {
|
|
13778
13787
|
}
|
13779
13788
|
var jh = Wa.ReactCurrentDispatcher, kh = Wa.ReactCurrentBatchConfig, lh = 0, N$1 = null, O$1 = null, P$1 = null, mh = false;
|
13780
13789
|
function Q$1() {
|
13781
|
-
throw Error(u
|
13790
|
+
throw Error(u(321));
|
13782
13791
|
}
|
13783
13792
|
function nh(a2, b2) {
|
13784
13793
|
if (b2 === null)
|
@@ -13801,7 +13810,7 @@ function oh(a2, b2, c2, d2, e2, f2) {
|
|
13801
13810
|
do {
|
13802
13811
|
b2.expirationTime = 0;
|
13803
13812
|
if (!(25 > f2))
|
13804
|
-
throw Error(u
|
13813
|
+
throw Error(u(301));
|
13805
13814
|
f2 += 1;
|
13806
13815
|
P$1 = O$1 = null;
|
13807
13816
|
b2.updateQueue = null;
|
@@ -13815,7 +13824,7 @@ function oh(a2, b2, c2, d2, e2, f2) {
|
|
13815
13824
|
P$1 = O$1 = N$1 = null;
|
13816
13825
|
mh = false;
|
13817
13826
|
if (b2)
|
13818
|
-
throw Error(u
|
13827
|
+
throw Error(u(300));
|
13819
13828
|
return a2;
|
13820
13829
|
}
|
13821
13830
|
function th() {
|
@@ -13834,7 +13843,7 @@ function uh() {
|
|
13834
13843
|
P$1 = b2, O$1 = a2;
|
13835
13844
|
else {
|
13836
13845
|
if (a2 === null)
|
13837
|
-
throw Error(u
|
13846
|
+
throw Error(u(310));
|
13838
13847
|
O$1 = a2;
|
13839
13848
|
a2 = { memoizedState: O$1.memoizedState, baseState: O$1.baseState, baseQueue: O$1.baseQueue, queue: O$1.queue, next: null };
|
13840
13849
|
P$1 === null ? N$1.memoizedState = P$1 = a2 : P$1 = P$1.next = a2;
|
@@ -13847,7 +13856,7 @@ function vh(a2, b2) {
|
|
13847
13856
|
function wh(a2) {
|
13848
13857
|
var b2 = uh(), c2 = b2.queue;
|
13849
13858
|
if (c2 === null)
|
13850
|
-
throw Error(u
|
13859
|
+
throw Error(u(311));
|
13851
13860
|
c2.lastRenderedReducer = a2;
|
13852
13861
|
var d2 = O$1, e2 = d2.baseQueue, f2 = c2.pending;
|
13853
13862
|
if (f2 !== null) {
|
@@ -13885,7 +13894,7 @@ function wh(a2) {
|
|
13885
13894
|
function xh(a2) {
|
13886
13895
|
var b2 = uh(), c2 = b2.queue;
|
13887
13896
|
if (c2 === null)
|
13888
|
-
throw Error(u
|
13897
|
+
throw Error(u(311));
|
13889
13898
|
c2.lastRenderedReducer = a2;
|
13890
13899
|
var d2 = c2.dispatch, e2 = c2.pending, f2 = b2.memoizedState;
|
13891
13900
|
if (e2 !== null) {
|
@@ -14166,7 +14175,7 @@ function Wh(a2) {
|
|
14166
14175
|
a2 = a2.memoizedState;
|
14167
14176
|
a2 = a2 !== null ? a2.dehydrated : null;
|
14168
14177
|
if (!a2)
|
14169
|
-
throw Error(u
|
14178
|
+
throw Error(u(317));
|
14170
14179
|
a: {
|
14171
14180
|
a2 = a2.nextSibling;
|
14172
14181
|
for (b2 = 0; a2; ) {
|
@@ -14446,7 +14455,7 @@ function $h(a2, b2, c2) {
|
|
14446
14455
|
if (b2.childExpirationTime < c2)
|
14447
14456
|
return null;
|
14448
14457
|
if (a2 !== null && b2.child !== a2.child)
|
14449
|
-
throw Error(u
|
14458
|
+
throw Error(u(153));
|
14450
14459
|
if (b2.child !== null) {
|
14451
14460
|
a2 = b2.child;
|
14452
14461
|
c2 = Sg(a2, a2.pendingProps);
|
@@ -14586,7 +14595,7 @@ function si(a2, b2, c2) {
|
|
14586
14595
|
else {
|
14587
14596
|
if (!d2) {
|
14588
14597
|
if (b2.stateNode === null)
|
14589
|
-
throw Error(u
|
14598
|
+
throw Error(u(166));
|
14590
14599
|
return null;
|
14591
14600
|
}
|
14592
14601
|
a2 = ch($g.current);
|
@@ -14764,7 +14773,7 @@ function si(a2, b2, c2) {
|
|
14764
14773
|
qi(a2, b2, a2.memoizedProps, d2);
|
14765
14774
|
else {
|
14766
14775
|
if (typeof d2 !== "string" && b2.stateNode === null)
|
14767
|
-
throw Error(u
|
14776
|
+
throw Error(u(166));
|
14768
14777
|
c2 = ch(bh.current);
|
14769
14778
|
ch($g.current);
|
14770
14779
|
Wh(b2) ? (c2 = b2.stateNode, d2 = b2.memoizedProps, c2[Md] = b2, c2.nodeValue !== d2 && (b2.effectTag |= 4)) : (c2 = (c2.nodeType === 9 ? c2 : c2.ownerDocument).createTextNode(d2), c2[Md] = b2, b2.stateNode = c2);
|
@@ -14835,7 +14844,7 @@ function si(a2, b2, c2) {
|
|
14835
14844
|
}
|
14836
14845
|
return d2.tail !== null ? (d2.tailExpiration === 0 && (d2.tailExpiration = $f() + 500), c2 = d2.tail, d2.rendering = c2, d2.tail = c2.sibling, d2.lastEffect = b2.lastEffect, d2.renderingStartTime = $f(), c2.sibling = null, b2 = M$1.current, I$1(M$1, e2 ? b2 & 1 | 2 : b2 & 1), c2) : null;
|
14837
14846
|
}
|
14838
|
-
throw Error(u
|
14847
|
+
throw Error(u(156, b2.tag));
|
14839
14848
|
}
|
14840
14849
|
function zi(a2) {
|
14841
14850
|
switch (a2.tag) {
|
@@ -14849,7 +14858,7 @@ function zi(a2) {
|
|
14849
14858
|
H$1(J$1);
|
14850
14859
|
b2 = a2.effectTag;
|
14851
14860
|
if ((b2 & 64) !== 0)
|
14852
|
-
throw Error(u
|
14861
|
+
throw Error(u(285));
|
14853
14862
|
a2.effectTag = b2 & -4097 | 64;
|
14854
14863
|
return a2;
|
14855
14864
|
case 5:
|
@@ -14925,7 +14934,7 @@ function Gi(a2, b2) {
|
|
14925
14934
|
case 17:
|
14926
14935
|
return;
|
14927
14936
|
}
|
14928
|
-
throw Error(u
|
14937
|
+
throw Error(u(163));
|
14929
14938
|
}
|
14930
14939
|
function Hi(a2, b2) {
|
14931
14940
|
b2 = b2.updateQueue;
|
@@ -15010,7 +15019,7 @@ function Ji(a2, b2, c2) {
|
|
15010
15019
|
case 21:
|
15011
15020
|
return;
|
15012
15021
|
}
|
15013
|
-
throw Error(u
|
15022
|
+
throw Error(u(163));
|
15014
15023
|
}
|
15015
15024
|
function Ki(a2, b2, c2) {
|
15016
15025
|
typeof Li === "function" && Li(b2);
|
@@ -15079,7 +15088,7 @@ function Pi(a2) {
|
|
15079
15088
|
}
|
15080
15089
|
b2 = b2.return;
|
15081
15090
|
}
|
15082
|
-
throw Error(u
|
15091
|
+
throw Error(u(160));
|
15083
15092
|
}
|
15084
15093
|
b2 = c2.stateNode;
|
15085
15094
|
switch (c2.tag) {
|
@@ -15095,7 +15104,7 @@ function Pi(a2) {
|
|
15095
15104
|
d2 = true;
|
15096
15105
|
break;
|
15097
15106
|
default:
|
15098
|
-
throw Error(u
|
15107
|
+
throw Error(u(161));
|
15099
15108
|
}
|
15100
15109
|
c2.effectTag & 16 && (Rb(b2, ""), c2.effectTag &= -17);
|
15101
15110
|
a:
|
@@ -15147,7 +15156,7 @@ function Mi(a2, b2, c2) {
|
|
15147
15156
|
a:
|
15148
15157
|
for (; ; ) {
|
15149
15158
|
if (e2 === null)
|
15150
|
-
throw Error(u
|
15159
|
+
throw Error(u(160));
|
15151
15160
|
f2 = e2.stateNode;
|
15152
15161
|
switch (e2.tag) {
|
15153
15162
|
case 5:
|
@@ -15250,7 +15259,7 @@ function Si(a2, b2) {
|
|
15250
15259
|
return;
|
15251
15260
|
case 6:
|
15252
15261
|
if (b2.stateNode === null)
|
15253
|
-
throw Error(u
|
15262
|
+
throw Error(u(162));
|
15254
15263
|
b2.stateNode.nodeValue = b2.memoizedProps;
|
15255
15264
|
return;
|
15256
15265
|
case 3:
|
@@ -15297,7 +15306,7 @@ function Si(a2, b2) {
|
|
15297
15306
|
case 17:
|
15298
15307
|
return;
|
15299
15308
|
}
|
15300
|
-
throw Error(u
|
15309
|
+
throw Error(u(163));
|
15301
15310
|
}
|
15302
15311
|
function Ui(a2) {
|
15303
15312
|
var b2 = a2.updateQueue;
|
@@ -15373,14 +15382,14 @@ function Hg(a2, b2, c2) {
|
|
15373
15382
|
a2 = 2;
|
15374
15383
|
break;
|
15375
15384
|
default:
|
15376
|
-
throw Error(u
|
15385
|
+
throw Error(u(326));
|
15377
15386
|
}
|
15378
15387
|
T$1 !== null && a2 === U$1 && --a2;
|
15379
15388
|
return a2;
|
15380
15389
|
}
|
15381
15390
|
function Ig(a2, b2) {
|
15382
15391
|
if (50 < uj)
|
15383
|
-
throw uj = 0, vj = null, Error(u
|
15392
|
+
throw uj = 0, vj = null, Error(u(185));
|
15384
15393
|
a2 = xj(a2, b2);
|
15385
15394
|
if (a2 !== null) {
|
15386
15395
|
var c2 = ag();
|
@@ -15452,7 +15461,7 @@ function Bj(a2, b2) {
|
|
15452
15461
|
if (c2 !== 0) {
|
15453
15462
|
b2 = a2.callbackNode;
|
15454
15463
|
if ((W$1 & (fj | gj)) !== V$1)
|
15455
|
-
throw Error(u
|
15464
|
+
throw Error(u(327));
|
15456
15465
|
Dj();
|
15457
15466
|
a2 === T$1 && c2 === U$1 || Ej(a2, c2);
|
15458
15467
|
if (X$1 !== null) {
|
@@ -15476,7 +15485,7 @@ function Bj(a2, b2) {
|
|
15476
15485
|
switch (e2 = a2.finishedWork = a2.current.alternate, a2.finishedExpirationTime = c2, d2 = S$1, T$1 = null, d2) {
|
15477
15486
|
case ti:
|
15478
15487
|
case hj:
|
15479
|
-
throw Error(u
|
15488
|
+
throw Error(u(345));
|
15480
15489
|
case ij:
|
15481
15490
|
Cj(a2, 2 < c2 ? 2 : c2);
|
15482
15491
|
break;
|
@@ -15543,7 +15552,7 @@ function Bj(a2, b2) {
|
|
15543
15552
|
Jj(a2);
|
15544
15553
|
break;
|
15545
15554
|
default:
|
15546
|
-
throw Error(u
|
15555
|
+
throw Error(u(329));
|
15547
15556
|
}
|
15548
15557
|
Z$1(a2);
|
15549
15558
|
if (a2.callbackNode === b2)
|
@@ -15556,7 +15565,7 @@ function yj(a2) {
|
|
15556
15565
|
var b2 = a2.lastExpiredTime;
|
15557
15566
|
b2 = b2 !== 0 ? b2 : 1073741823;
|
15558
15567
|
if ((W$1 & (fj | gj)) !== V$1)
|
15559
|
-
throw Error(u
|
15568
|
+
throw Error(u(327));
|
15560
15569
|
Dj();
|
15561
15570
|
a2 === T$1 && b2 === U$1 || Ej(a2, b2);
|
15562
15571
|
if (X$1 !== null) {
|
@@ -15577,7 +15586,7 @@ function yj(a2) {
|
|
15577
15586
|
if (S$1 === hj)
|
15578
15587
|
throw c2 = kj, Ej(a2, b2), xi(a2, b2), Z$1(a2), c2;
|
15579
15588
|
if (X$1 !== null)
|
15580
|
-
throw Error(u
|
15589
|
+
throw Error(u(261));
|
15581
15590
|
a2.finishedWork = a2.current.alternate;
|
15582
15591
|
a2.finishedExpirationTime = b2;
|
15583
15592
|
T$1 = null;
|
@@ -15848,14 +15857,14 @@ function Sj(a2, b2) {
|
|
15848
15857
|
Dj();
|
15849
15858
|
while (rj !== null);
|
15850
15859
|
if ((W$1 & (fj | gj)) !== V$1)
|
15851
|
-
throw Error(u
|
15860
|
+
throw Error(u(327));
|
15852
15861
|
var c2 = a2.finishedWork, d2 = a2.finishedExpirationTime;
|
15853
15862
|
if (c2 === null)
|
15854
15863
|
return null;
|
15855
15864
|
a2.finishedWork = null;
|
15856
15865
|
a2.finishedExpirationTime = 0;
|
15857
15866
|
if (c2 === a2.current)
|
15858
|
-
throw Error(u
|
15867
|
+
throw Error(u(177));
|
15859
15868
|
a2.callbackNode = null;
|
15860
15869
|
a2.callbackExpirationTime = 0;
|
15861
15870
|
a2.callbackPriority = 90;
|
@@ -15929,7 +15938,7 @@ function Sj(a2, b2) {
|
|
15929
15938
|
Tj();
|
15930
15939
|
} catch (wb) {
|
15931
15940
|
if (Y$1 === null)
|
15932
|
-
throw Error(u
|
15941
|
+
throw Error(u(330));
|
15933
15942
|
Ei(Y$1, wb);
|
15934
15943
|
Y$1 = Y$1.nextEffect;
|
15935
15944
|
}
|
@@ -15974,7 +15983,7 @@ function Sj(a2, b2) {
|
|
15974
15983
|
}
|
15975
15984
|
} catch (wb) {
|
15976
15985
|
if (Y$1 === null)
|
15977
|
-
throw Error(u
|
15986
|
+
throw Error(u(330));
|
15978
15987
|
Ei(Y$1, wb);
|
15979
15988
|
Y$1 = Y$1.nextEffect;
|
15980
15989
|
}
|
@@ -16024,7 +16033,7 @@ function Sj(a2, b2) {
|
|
16024
16033
|
}
|
16025
16034
|
} catch (wb) {
|
16026
16035
|
if (Y$1 === null)
|
16027
|
-
throw Error(u
|
16036
|
+
throw Error(u(330));
|
16028
16037
|
Ei(Y$1, wb);
|
16029
16038
|
Y$1 = Y$1.nextEffect;
|
16030
16039
|
}
|
@@ -16075,7 +16084,7 @@ function Vj() {
|
|
16075
16084
|
var a2 = rj;
|
16076
16085
|
rj = null;
|
16077
16086
|
if ((W$1 & (fj | gj)) !== V$1)
|
16078
|
-
throw Error(u
|
16087
|
+
throw Error(u(331));
|
16079
16088
|
var b2 = W$1;
|
16080
16089
|
W$1 |= gj;
|
16081
16090
|
for (a2 = a2.current.firstEffect; a2 !== null; ) {
|
@@ -16091,7 +16100,7 @@ function Vj() {
|
|
16091
16100
|
}
|
16092
16101
|
} catch (d2) {
|
16093
16102
|
if (a2 === null)
|
16094
|
-
throw Error(u
|
16103
|
+
throw Error(u(330));
|
16095
16104
|
Ei(a2, d2);
|
16096
16105
|
}
|
16097
16106
|
c2 = a2.nextEffect;
|
@@ -16263,7 +16272,7 @@ Rj = function(a2, b2, c2) {
|
|
16263
16272
|
b2 = ai(null, b2, e2, ig(e2.type, a2), d2, c2);
|
16264
16273
|
break a;
|
16265
16274
|
}
|
16266
|
-
throw Error(u
|
16275
|
+
throw Error(u(306, e2, ""));
|
16267
16276
|
}
|
16268
16277
|
return b2;
|
16269
16278
|
case 0:
|
@@ -16274,7 +16283,7 @@ Rj = function(a2, b2, c2) {
|
|
16274
16283
|
hi(b2);
|
16275
16284
|
d2 = b2.updateQueue;
|
16276
16285
|
if (a2 === null || d2 === null)
|
16277
|
-
throw Error(u
|
16286
|
+
throw Error(u(282));
|
16278
16287
|
d2 = b2.pendingProps;
|
16279
16288
|
e2 = b2.memoizedState;
|
16280
16289
|
e2 = e2 !== null ? e2.element : null;
|
@@ -16377,7 +16386,7 @@ Rj = function(a2, b2, c2) {
|
|
16377
16386
|
case 19:
|
16378
16387
|
return mi(a2, b2, c2);
|
16379
16388
|
}
|
16380
|
-
throw Error(u
|
16389
|
+
throw Error(u(156, b2.tag));
|
16381
16390
|
};
|
16382
16391
|
var Uj = null, Li = null;
|
16383
16392
|
function Yj(a2) {
|
@@ -16506,7 +16515,7 @@ function Ug(a2, b2, c2, d2, e2, f2) {
|
|
16506
16515
|
g2 = 22;
|
16507
16516
|
break a;
|
16508
16517
|
}
|
16509
|
-
throw Error(u
|
16518
|
+
throw Error(u(130, a2 == null ? a2 : typeof a2, ""));
|
16510
16519
|
}
|
16511
16520
|
b2 = Sh(g2, c2, b2, e2);
|
16512
16521
|
b2.elementType = a2;
|
@@ -16575,7 +16584,7 @@ function bk(a2, b2, c2, d2) {
|
|
16575
16584
|
c2 = c2._reactInternalFiber;
|
16576
16585
|
b: {
|
16577
16586
|
if (dc(c2) !== c2 || c2.tag !== 1)
|
16578
|
-
throw Error(u
|
16587
|
+
throw Error(u(170));
|
16579
16588
|
var h2 = c2;
|
16580
16589
|
do {
|
16581
16590
|
switch (h2.tag) {
|
@@ -16590,7 +16599,7 @@ function bk(a2, b2, c2, d2) {
|
|
16590
16599
|
}
|
16591
16600
|
h2 = h2.return;
|
16592
16601
|
} while (h2 !== null);
|
16593
|
-
throw Error(u
|
16602
|
+
throw Error(u(171));
|
16594
16603
|
}
|
16595
16604
|
if (c2.tag === 1) {
|
16596
16605
|
var k2 = c2.type;
|
@@ -16723,7 +16732,7 @@ za = function(a2, b2, c2) {
|
|
16723
16732
|
if (d2 !== a2 && d2.form === a2.form) {
|
16724
16733
|
var e2 = Qd(d2);
|
16725
16734
|
if (!e2)
|
16726
|
-
throw Error(u
|
16735
|
+
throw Error(u(90));
|
16727
16736
|
yb(d2);
|
16728
16737
|
Cb(d2, e2);
|
16729
16738
|
}
|
@@ -16762,7 +16771,7 @@ Ia = function(a2, b2) {
|
|
16762
16771
|
function kk(a2, b2) {
|
16763
16772
|
var c2 = 2 < arguments.length && arguments[2] !== void 0 ? arguments[2] : null;
|
16764
16773
|
if (!gk(b2))
|
16765
|
-
throw Error(u
|
16774
|
+
throw Error(u(200));
|
16766
16775
|
return jk(a2, b2, null, c2);
|
16767
16776
|
}
|
16768
16777
|
var lk = { Events: [Nc, Pd, Qd, xa, ta, Xd, function(a2) {
|
@@ -16792,8 +16801,8 @@ reactDom_production_min.findDOMNode = function(a2) {
|
|
16792
16801
|
var b2 = a2._reactInternalFiber;
|
16793
16802
|
if (b2 === void 0) {
|
16794
16803
|
if (typeof a2.render === "function")
|
16795
|
-
throw Error(u
|
16796
|
-
throw Error(u
|
16804
|
+
throw Error(u(188));
|
16805
|
+
throw Error(u(268, Object.keys(a2)));
|
16797
16806
|
}
|
16798
16807
|
a2 = hc(b2);
|
16799
16808
|
a2 = a2 === null ? null : a2.stateNode;
|
@@ -16801,7 +16810,7 @@ reactDom_production_min.findDOMNode = function(a2) {
|
|
16801
16810
|
};
|
16802
16811
|
reactDom_production_min.flushSync = function(a2, b2) {
|
16803
16812
|
if ((W$1 & (fj | gj)) !== V$1)
|
16804
|
-
throw Error(u
|
16813
|
+
throw Error(u(187));
|
16805
16814
|
var c2 = W$1;
|
16806
16815
|
W$1 |= 1;
|
16807
16816
|
try {
|
@@ -16812,17 +16821,17 @@ reactDom_production_min.flushSync = function(a2, b2) {
|
|
16812
16821
|
};
|
16813
16822
|
reactDom_production_min.hydrate = function(a2, b2, c2) {
|
16814
16823
|
if (!gk(b2))
|
16815
|
-
throw Error(u
|
16824
|
+
throw Error(u(200));
|
16816
16825
|
return ik(null, a2, b2, true, c2);
|
16817
16826
|
};
|
16818
16827
|
reactDom_production_min.render = function(a2, b2, c2) {
|
16819
16828
|
if (!gk(b2))
|
16820
|
-
throw Error(u
|
16829
|
+
throw Error(u(200));
|
16821
16830
|
return ik(null, a2, b2, false, c2);
|
16822
16831
|
};
|
16823
16832
|
reactDom_production_min.unmountComponentAtNode = function(a2) {
|
16824
16833
|
if (!gk(a2))
|
16825
|
-
throw Error(u
|
16834
|
+
throw Error(u(40));
|
16826
16835
|
return a2._reactRootContainer ? (Nj(function() {
|
16827
16836
|
ik(null, null, a2, false, function() {
|
16828
16837
|
a2._reactRootContainer = null;
|
@@ -16836,9 +16845,9 @@ reactDom_production_min.unstable_createPortal = function(a2, b2) {
|
|
16836
16845
|
};
|
16837
16846
|
reactDom_production_min.unstable_renderSubtreeIntoContainer = function(a2, b2, c2, d2) {
|
16838
16847
|
if (!gk(c2))
|
16839
|
-
throw Error(u
|
16848
|
+
throw Error(u(200));
|
16840
16849
|
if (a2 == null || a2._reactInternalFiber === void 0)
|
16841
|
-
throw Error(u
|
16850
|
+
throw Error(u(38));
|
16842
16851
|
return ik(a2, b2, c2, false, d2);
|
16843
16852
|
};
|
16844
16853
|
reactDom_production_min.version = "16.14.0";
|
@@ -16856,7 +16865,7 @@ function checkDCE() {
|
|
16856
16865
|
checkDCE();
|
16857
16866
|
reactDom.exports = reactDom_production_min;
|
16858
16867
|
}
|
16859
|
-
var
|
16868
|
+
var d = reactDom.exports;
|
16860
16869
|
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) => {
|
16861
16870
|
for (var i2 in t2 || (t2 = {}))
|
16862
16871
|
r.call(t2, i2) && n(e2, i2, t2[i2]);
|
@@ -16881,13 +16890,13 @@ function f(e2, t2) {
|
|
16881
16890
|
}(t2);
|
16882
16891
|
return i2 ? e2.currentTime + (i2 - e2.hostTime) / 1e3 : e2.currentTime;
|
16883
16892
|
}
|
16884
|
-
const
|
16885
|
-
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")(), C = T.Symbol,
|
16893
|
+
const y = navigator.userAgent.includes("Safari"), A = navigator.userAgent.includes("iPhone") || navigator.userAgent.includes("iPad"), b = [".aac", ".mid", ".midi", ".mp3", ".ogg", ".oga", ".wav", ".weba"];
|
16894
|
+
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")(), C = T.Symbol, E = Object.prototype, k = E.hasOwnProperty, P = E.toString, j = C ? C.toStringTag : void 0;
|
16886
16895
|
var B = Object.prototype.toString;
|
16887
16896
|
var w = C ? C.toStringTag : void 0;
|
16888
16897
|
function x(e2) {
|
16889
16898
|
return e2 == null ? e2 === void 0 ? "[object Undefined]" : "[object Null]" : w && w in Object(e2) ? function(e3) {
|
16890
|
-
var t2 =
|
16899
|
+
var t2 = k.call(e3, j), i2 = e3[j];
|
16891
16900
|
try {
|
16892
16901
|
e3[j] = void 0;
|
16893
16902
|
var s2 = true;
|
@@ -16936,7 +16945,7 @@ var D = function() {
|
|
16936
16945
|
return T.Date.now();
|
16937
16946
|
}, Z = Math.max, R = Math.min;
|
16938
16947
|
function U(e2, t2, i2) {
|
16939
|
-
var s2, r2, o2, n2, a2, l2, c2 = 0,
|
16948
|
+
var s2, r2, o2, n2, a2, l2, c2 = 0, d2 = false, u2 = false, p2 = true;
|
16940
16949
|
if (typeof e2 != "function")
|
16941
16950
|
throw new TypeError("Expected a function");
|
16942
16951
|
function h2(t3) {
|
@@ -16944,11 +16953,11 @@ function U(e2, t2, i2) {
|
|
16944
16953
|
return s2 = r2 = void 0, c2 = t3, n2 = e2.apply(o3, i3);
|
16945
16954
|
}
|
16946
16955
|
function m2(e3) {
|
16947
|
-
return c2 = e3, a2 = setTimeout(v2, t2),
|
16956
|
+
return c2 = e3, a2 = setTimeout(v2, t2), d2 ? h2(e3) : n2;
|
16948
16957
|
}
|
16949
16958
|
function g2(e3) {
|
16950
16959
|
var i3 = e3 - l2;
|
16951
|
-
return l2 === void 0 || i3 >= t2 || i3 < 0 ||
|
16960
|
+
return l2 === void 0 || i3 >= t2 || i3 < 0 || u2 && e3 - c2 >= o2;
|
16952
16961
|
}
|
16953
16962
|
function v2() {
|
16954
16963
|
var e3 = D();
|
@@ -16956,27 +16965,27 @@ function U(e2, t2, i2) {
|
|
16956
16965
|
return f2(e3);
|
16957
16966
|
a2 = setTimeout(v2, function(e4) {
|
16958
16967
|
var i3 = t2 - (e4 - l2);
|
16959
|
-
return
|
16968
|
+
return u2 ? R(i3, o2 - (e4 - c2)) : i3;
|
16960
16969
|
}(e3));
|
16961
16970
|
}
|
16962
16971
|
function f2(e3) {
|
16963
16972
|
return a2 = void 0, p2 && s2 ? h2(e3) : (s2 = r2 = void 0, n2);
|
16964
16973
|
}
|
16965
|
-
function
|
16974
|
+
function y2() {
|
16966
16975
|
var e3 = D(), i3 = g2(e3);
|
16967
16976
|
if (s2 = arguments, r2 = this, l2 = e3, i3) {
|
16968
16977
|
if (a2 === void 0)
|
16969
16978
|
return m2(l2);
|
16970
|
-
if (
|
16979
|
+
if (u2)
|
16971
16980
|
return clearTimeout(a2), a2 = setTimeout(v2, t2), h2(l2);
|
16972
16981
|
}
|
16973
16982
|
return a2 === void 0 && (a2 = setTimeout(v2, t2)), n2;
|
16974
16983
|
}
|
16975
|
-
return t2 = z(t2) || 0, L(i2) && (
|
16984
|
+
return t2 = z(t2) || 0, L(i2) && (d2 = !!i2.leading, o2 = (u2 = "maxWait" in i2) ? Z(z(i2.maxWait) || 0, t2) : o2, p2 = "trailing" in i2 ? !!i2.trailing : p2), y2.cancel = function() {
|
16976
16985
|
a2 !== void 0 && clearTimeout(a2), c2 = 0, s2 = l2 = r2 = a2 = void 0;
|
16977
|
-
},
|
16986
|
+
}, y2.flush = function() {
|
16978
16987
|
return a2 === void 0 ? n2 : f2(D());
|
16979
|
-
},
|
16988
|
+
}, y2;
|
16980
16989
|
}
|
16981
16990
|
class F extends react.exports.Component {
|
16982
16991
|
constructor(e2) {
|
@@ -17179,13 +17188,13 @@ function ee(e2, t2, i2) {
|
|
17179
17188
|
function c2(t3, i5) {
|
17180
17189
|
e2.setEffectPosition(i5, 1e3 * t3), r3.previousBeginSeekTime = Date.now() / 1e3, r3.previousSeekTargetTime = t3;
|
17181
17190
|
}
|
17182
|
-
const
|
17191
|
+
const d2 = r3.previousBeginSeekTime;
|
17183
17192
|
if (i4 > 0) {
|
17184
17193
|
const e3 = a2 - o3, t3 = Math.abs(e3), i5 = 0.5;
|
17185
17194
|
if (t3 > i5)
|
17186
17195
|
if (l2) {
|
17187
|
-
const t4 = r3.previousSeekTargetTime - o3, i6 = Date.now() / 1e3 -
|
17188
|
-
c2(l3, n2), _(">>> Start seeking after seeking lag", { jsPlayerTime: a2, rtcEffectTime: o3, jsPlayerTimerAdvance: e3, lastSeekingCost: i6, estimatedRTCLag: s3, targetRTCSeekTime: l3, previousBeginSeekTime:
|
17196
|
+
const t4 = r3.previousSeekTargetTime - o3, i6 = Date.now() / 1e3 - d2, s3 = i6 + (e3 > 0 ? e3 : 0), l3 = a2 + s3;
|
17197
|
+
c2(l3, n2), _(">>> Start seeking after seeking lag", { jsPlayerTime: a2, rtcEffectTime: o3, jsPlayerTimerAdvance: e3, lastSeekingCost: i6, estimatedRTCLag: s3, targetRTCSeekTime: l3, previousBeginSeekTime: d2, timeElapse: t4 });
|
17189
17198
|
} else if (t3 > 10)
|
17190
17199
|
c2(a2, n2), _(">>> DirectSeek", { time: a2, rtcEffectTime: o3, jsPlayerTimerAdvance: e3 });
|
17191
17200
|
else {
|
@@ -17193,7 +17202,7 @@ function ee(e2, t2, i2) {
|
|
17193
17202
|
r3.previousVideoJSAdvance = i6, c2(s3, n2), _(">>> Start seeking with lag", { jsPlayerTime: a2, rtcEffectTime: o3, jsPlayerTimerAdvance: e3, previousAdvance: t4, estimatedRTCLag: i6, targetRTCSeekTime: s3 });
|
17194
17203
|
}
|
17195
17204
|
else
|
17196
|
-
l2 && (_(">>> SeekingFinish no lag", { jsPlayerTime: a2, rtcEffectTime: o3, jsPlayerTimerAdvance: e3, previousBeginSeekTime:
|
17205
|
+
l2 && (_(">>> SeekingFinish no lag", { jsPlayerTime: a2, rtcEffectTime: o3, jsPlayerTimerAdvance: e3, previousBeginSeekTime: d2, rtcLagTolerance: i5 }), r3.previousBeginSeekTime = 0, r3.previousSeekTargetTime = 0);
|
17197
17206
|
}
|
17198
17207
|
});
|
17199
17208
|
}), t2.on("dispose", () => {
|
@@ -17250,7 +17259,7 @@ class ie extends react.exports.Component {
|
|
17250
17259
|
if (this.state.NoSound && (r2 *= 3), s2 > i2.duration())
|
17251
17260
|
this.resetPlayer();
|
17252
17261
|
else if (Math.abs(i2.currentTime() - s2) > r2) {
|
17253
|
-
if (this.debug("<<< currentTime -> %o", s2),
|
17262
|
+
if (this.debug("<<< currentTime -> %o", s2), A)
|
17254
17263
|
return void (this.everPlayed ? i2.currentTime(s2) : this.debug("<<< ignore iOS idle time update. -> %o (ignored)", s2));
|
17255
17264
|
i2.currentTime(s2);
|
17256
17265
|
}
|
@@ -17263,7 +17272,7 @@ class ie extends react.exports.Component {
|
|
17263
17272
|
}, this.catchPlayFail = (e3) => {
|
17264
17273
|
var t2, i2;
|
17265
17274
|
const s2 = String(e3);
|
17266
|
-
if (
|
17275
|
+
if (y && s2.includes("NotAllowedError") || s2.includes("interact"))
|
17267
17276
|
(t2 = this.player) == null || t2.autoplay("any"), this.setState({ NoSound: true });
|
17268
17277
|
else {
|
17269
17278
|
const t3 = (i2 = this.player) == null ? void 0 : i2.error();
|
@@ -17282,7 +17291,7 @@ class ie extends react.exports.Component {
|
|
17282
17291
|
o2.className = "video-js", o2.crossOrigin = "anonymous", s2 && (o2.poster = s2), o2.setAttribute("playsInline", ""), o2.setAttribute("webkit-playsinline", "");
|
17283
17292
|
const n2 = document.createElement("source");
|
17284
17293
|
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() ...");
|
17285
|
-
const a2 =
|
17294
|
+
const a2 = u$3(o2);
|
17286
17295
|
this.player = a2, window.player = a2, a2.one("loadedmetadata", this.gracefullyUpdate);
|
17287
17296
|
const l2 = window.__mediaPlayerAudioEffectClient;
|
17288
17297
|
l2 !== void 0 && ee(l2, a2, i2);
|
@@ -17335,7 +17344,7 @@ class ie extends react.exports.Component {
|
|
17335
17344
|
g.verbose && g.log(`[MediaPlayer] ${e2}`, ...t2);
|
17336
17345
|
}
|
17337
17346
|
componentDidMount() {
|
17338
|
-
this.debug("app version =", "0.1.0-alpha.5"), this.debug("video.js version =",
|
17347
|
+
this.debug("app version =", "0.1.0-alpha.5"), this.debug("video.js version =", u$3.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);
|
17339
17348
|
}
|
17340
17349
|
componentWillUnmount() {
|
17341
17350
|
var e2;
|
@@ -17353,9 +17362,16 @@ const se = { kind: "MediaPlayer", setup(e2) {
|
|
17353
17362
|
const i2 = e2.getBox();
|
17354
17363
|
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');
|
17355
17364
|
const s2 = document.createElement("div");
|
17356
|
-
s2.classList.add("netless-app-media-player-container"),
|
17357
|
-
console.log("[MediaPlayer]: destroy"),
|
17358
|
-
})
|
17365
|
+
if (s2.classList.add("netless-app-media-player-container"), d.render(l.createElement(te, { context: e2 }), s2), i2.mountContent(s2), e2.emitter.on("destroy", () => {
|
17366
|
+
console.log("[MediaPlayer]: destroy"), d.unmountComponentAtNode(s2);
|
17367
|
+
}), window.__pcmProxy) {
|
17368
|
+
const t3 = () => {
|
17369
|
+
document.visibilityState === "hidden" ? (console.log("[MediaPlayer]: visibilitychange -> hidden. unmount for pcmproxy"), d.unmountComponentAtNode(s2)) : (console.log("[MediaPlayer]: visibilitychange -> visible. mount for pcmproxy"), d.render(l.createElement(te, { context: e2 }), s2));
|
17370
|
+
};
|
17371
|
+
document.addEventListener("visibilitychange", t3), e2.emitter.on("destroy", () => {
|
17372
|
+
document.removeEventListener("visibilitychange", t3);
|
17373
|
+
});
|
17374
|
+
}
|
17359
17375
|
} };
|
17360
17376
|
const setupBuiltin = () => {
|
17361
17377
|
if (WindowManager.debug) {
|
@@ -17892,15 +17908,15 @@ const reconnectRefresher = new ReconnectRefresher({ emitter: internalEmitter });
|
|
17892
17908
|
const _WindowManager = class extends InvisiblePlugin {
|
17893
17909
|
constructor(context) {
|
17894
17910
|
super(context);
|
17895
|
-
this.version = "1.0.
|
17896
|
-
this.dependencies = { "dependencies": { "@juggle/resize-observer": "^3.3.1", "@netless/telebox-insider": "0.2.
|
17911
|
+
this.version = "1.0.3-beta.0";
|
17912
|
+
this.dependencies = { "dependencies": { "@juggle/resize-observer": "^3.3.1", "@netless/telebox-insider": "0.2.31-beta.0", "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.52" }, "devDependencies": { "@hyrious/dts": "^0.2.2", "@netless/app-docs-viewer": "^0.2.18", "@netless/app-media-player": "0.1.4", "@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.52" } };
|
17897
17913
|
this.emitter = callbacks$1;
|
17898
17914
|
this.viewMode = ViewMode.Broadcaster;
|
17899
17915
|
this.isReplay = isPlayer(this.displayer);
|
17900
17916
|
this._cursorUIDs = [];
|
17901
17917
|
this.containerSizeRatio = _WindowManager.containerSizeRatio;
|
17902
17918
|
_WindowManager.displayer = context.displayer;
|
17903
|
-
window.NETLESS_DEPS = { "dependencies": { "@juggle/resize-observer": "^3.3.1", "@netless/telebox-insider": "0.2.
|
17919
|
+
window.NETLESS_DEPS = { "dependencies": { "@juggle/resize-observer": "^3.3.1", "@netless/telebox-insider": "0.2.31-beta.0", "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.52" }, "devDependencies": { "@hyrious/dts": "^0.2.2", "@netless/app-docs-viewer": "^0.2.18", "@netless/app-media-player": "0.1.4", "@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.52" } };
|
17904
17920
|
}
|
17905
17921
|
static onCreate(manager) {
|
17906
17922
|
_WindowManager._resolve(manager);
|