@zh-keyboard/react 0.4.1 → 0.4.3
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.
|
@@ -23,11 +23,11 @@ function fo() {
|
|
|
23
23
|
La = 1;
|
|
24
24
|
var a = Rt, s = Symbol.for("react.element"), l = Symbol.for("react.fragment"), f = Object.prototype.hasOwnProperty, C = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, k = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
25
25
|
function w(O, j, z) {
|
|
26
|
-
var
|
|
27
|
-
z !== void 0 && (G = "" + z), j.key !== void 0 && (G = "" + j.key), j.ref !== void 0 && (
|
|
28
|
-
for (
|
|
29
|
-
if (O && O.defaultProps) for (
|
|
30
|
-
return { $$typeof: s, type: O, key: G, ref:
|
|
26
|
+
var H, q = {}, G = null, M = null;
|
|
27
|
+
z !== void 0 && (G = "" + z), j.key !== void 0 && (G = "" + j.key), j.ref !== void 0 && (M = j.ref);
|
|
28
|
+
for (H in j) f.call(j, H) && !k.hasOwnProperty(H) && (q[H] = j[H]);
|
|
29
|
+
if (O && O.defaultProps) for (H in j = O.defaultProps, j) q[H] === void 0 && (q[H] = j[H]);
|
|
30
|
+
return { $$typeof: s, type: O, key: G, ref: M, props: q, _owner: C.current };
|
|
31
31
|
}
|
|
32
32
|
return xt.Fragment = l, xt.jsx = w, xt.jsxs = w, xt;
|
|
33
33
|
}
|
|
@@ -44,24 +44,24 @@ var kt = {};
|
|
|
44
44
|
var Fa;
|
|
45
45
|
function ho() {
|
|
46
46
|
return Fa || (Fa = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
-
var a = Rt, s = Symbol.for("react.element"), l = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), w = Symbol.for("react.provider"), O = Symbol.for("react.context"), j = Symbol.for("react.forward_ref"), z = Symbol.for("react.suspense"),
|
|
47
|
+
var a = Rt, s = Symbol.for("react.element"), l = Symbol.for("react.portal"), f = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), k = Symbol.for("react.profiler"), w = Symbol.for("react.provider"), O = Symbol.for("react.context"), j = Symbol.for("react.forward_ref"), z = Symbol.for("react.suspense"), H = Symbol.for("react.suspense_list"), q = Symbol.for("react.memo"), G = Symbol.for("react.lazy"), M = Symbol.for("react.offscreen"), D = Symbol.iterator, Z = "@@iterator";
|
|
48
48
|
function ee(d) {
|
|
49
49
|
if (d === null || typeof d != "object")
|
|
50
50
|
return null;
|
|
51
51
|
var R = D && d[D] || d[Z];
|
|
52
52
|
return typeof R == "function" ? R : null;
|
|
53
53
|
}
|
|
54
|
-
var
|
|
55
|
-
function
|
|
54
|
+
var J = a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
55
|
+
function W(d) {
|
|
56
56
|
{
|
|
57
|
-
for (var R = arguments.length, $ = new Array(R > 1 ? R - 1 : 0),
|
|
58
|
-
$[
|
|
57
|
+
for (var R = arguments.length, $ = new Array(R > 1 ? R - 1 : 0), Q = 1; Q < R; Q++)
|
|
58
|
+
$[Q - 1] = arguments[Q];
|
|
59
59
|
je("error", d, $);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
function je(d, R, $) {
|
|
63
63
|
{
|
|
64
|
-
var
|
|
64
|
+
var Q = J.ReactDebugCurrentFrame, oe = Q.getStackAddendum();
|
|
65
65
|
oe !== "" && (R += "%s", $ = $.concat([oe]));
|
|
66
66
|
var de = $.map(function(le) {
|
|
67
67
|
return String(le);
|
|
@@ -69,19 +69,19 @@ function ho() {
|
|
|
69
69
|
de.unshift("Warning: " + R), Function.prototype.apply.call(console[d], console, de);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
var ge = !1,
|
|
73
|
-
|
|
72
|
+
var ge = !1, te = !1, he = !1, ne = !1, Pe = !1, se;
|
|
73
|
+
se = Symbol.for("react.module.reference");
|
|
74
74
|
function Ce(d) {
|
|
75
|
-
return !!(typeof d == "string" || typeof d == "function" || d === f || d === k || Pe || d === C || d === z || d ===
|
|
75
|
+
return !!(typeof d == "string" || typeof d == "function" || d === f || d === k || Pe || d === C || d === z || d === H || ne || d === M || ge || te || he || typeof d == "object" && d !== null && (d.$$typeof === G || d.$$typeof === q || d.$$typeof === w || d.$$typeof === O || d.$$typeof === j || // This needs to include all possible module reference object
|
|
76
76
|
// types supported by any Flight configuration anywhere since
|
|
77
77
|
// we don't know which Flight build this will end up being used
|
|
78
78
|
// with.
|
|
79
|
-
d.$$typeof ===
|
|
79
|
+
d.$$typeof === se || d.getModuleId !== void 0));
|
|
80
80
|
}
|
|
81
81
|
function Te(d, R, $) {
|
|
82
|
-
var
|
|
83
|
-
if (
|
|
84
|
-
return
|
|
82
|
+
var Q = d.displayName;
|
|
83
|
+
if (Q)
|
|
84
|
+
return Q;
|
|
85
85
|
var oe = R.displayName || R.name || "";
|
|
86
86
|
return oe !== "" ? $ + "(" + oe + ")" : $;
|
|
87
87
|
}
|
|
@@ -91,7 +91,7 @@ function ho() {
|
|
|
91
91
|
function Re(d) {
|
|
92
92
|
if (d == null)
|
|
93
93
|
return null;
|
|
94
|
-
if (typeof d.tag == "number" &&
|
|
94
|
+
if (typeof d.tag == "number" && W("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof d == "function")
|
|
95
95
|
return d.displayName || d.name || null;
|
|
96
96
|
if (typeof d == "string")
|
|
97
97
|
return d;
|
|
@@ -106,7 +106,7 @@ function ho() {
|
|
|
106
106
|
return "StrictMode";
|
|
107
107
|
case z:
|
|
108
108
|
return "Suspense";
|
|
109
|
-
case
|
|
109
|
+
case H:
|
|
110
110
|
return "SuspenseList";
|
|
111
111
|
}
|
|
112
112
|
if (typeof d == "object")
|
|
@@ -120,8 +120,8 @@ function ho() {
|
|
|
120
120
|
case j:
|
|
121
121
|
return Te(d, d.render, "ForwardRef");
|
|
122
122
|
case q:
|
|
123
|
-
var
|
|
124
|
-
return
|
|
123
|
+
var Q = d.displayName || null;
|
|
124
|
+
return Q !== null ? Q : Re(d.type) || "Memo";
|
|
125
125
|
case G: {
|
|
126
126
|
var oe = d, de = oe._payload, le = oe._init;
|
|
127
127
|
try {
|
|
@@ -192,18 +192,18 @@ function ho() {
|
|
|
192
192
|
})
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
|
-
sn < 0 &&
|
|
195
|
+
sn < 0 && W("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
var Je =
|
|
198
|
+
var Je = J.ReactCurrentDispatcher, En;
|
|
199
199
|
function Un(d, R, $) {
|
|
200
200
|
{
|
|
201
201
|
if (En === void 0)
|
|
202
202
|
try {
|
|
203
203
|
throw Error();
|
|
204
204
|
} catch (oe) {
|
|
205
|
-
var
|
|
206
|
-
En =
|
|
205
|
+
var Q = oe.stack.trim().match(/\n( *(at )?)/);
|
|
206
|
+
En = Q && Q[1] || "";
|
|
207
207
|
}
|
|
208
208
|
return `
|
|
209
209
|
` + En + d;
|
|
@@ -222,7 +222,7 @@ function ho() {
|
|
|
222
222
|
if ($ !== void 0)
|
|
223
223
|
return $;
|
|
224
224
|
}
|
|
225
|
-
var
|
|
225
|
+
var Q;
|
|
226
226
|
X = !0;
|
|
227
227
|
var oe = Error.prepareStackTrace;
|
|
228
228
|
Error.prepareStackTrace = void 0;
|
|
@@ -241,14 +241,14 @@ function ho() {
|
|
|
241
241
|
try {
|
|
242
242
|
Reflect.construct(le, []);
|
|
243
243
|
} catch (ke) {
|
|
244
|
-
|
|
244
|
+
Q = ke;
|
|
245
245
|
}
|
|
246
246
|
Reflect.construct(d, [], le);
|
|
247
247
|
} else {
|
|
248
248
|
try {
|
|
249
249
|
le.call();
|
|
250
250
|
} catch (ke) {
|
|
251
|
-
|
|
251
|
+
Q = ke;
|
|
252
252
|
}
|
|
253
253
|
d.call(le.prototype);
|
|
254
254
|
}
|
|
@@ -256,23 +256,23 @@ function ho() {
|
|
|
256
256
|
try {
|
|
257
257
|
throw Error();
|
|
258
258
|
} catch (ke) {
|
|
259
|
-
|
|
259
|
+
Q = ke;
|
|
260
260
|
}
|
|
261
261
|
d();
|
|
262
262
|
}
|
|
263
263
|
} catch (ke) {
|
|
264
|
-
if (ke &&
|
|
265
|
-
for (var
|
|
266
|
-
`), Ae =
|
|
267
|
-
`), me =
|
|
264
|
+
if (ke && Q && typeof ke.stack == "string") {
|
|
265
|
+
for (var re = ke.stack.split(`
|
|
266
|
+
`), Ae = Q.stack.split(`
|
|
267
|
+
`), me = re.length - 1, Ee = Ae.length - 1; me >= 1 && Ee >= 0 && re[me] !== Ae[Ee]; )
|
|
268
268
|
Ee--;
|
|
269
269
|
for (; me >= 1 && Ee >= 0; me--, Ee--)
|
|
270
|
-
if (
|
|
270
|
+
if (re[me] !== Ae[Ee]) {
|
|
271
271
|
if (me !== 1 || Ee !== 1)
|
|
272
272
|
do
|
|
273
|
-
if (me--, Ee--, Ee < 0 ||
|
|
273
|
+
if (me--, Ee--, Ee < 0 || re[me] !== Ae[Ee]) {
|
|
274
274
|
var Ne = `
|
|
275
|
-
` +
|
|
275
|
+
` + re[me].replace(" at new ", " at ");
|
|
276
276
|
return d.displayName && Ne.includes("<anonymous>") && (Ne = Ne.replace("<anonymous>", d.displayName)), typeof d == "function" && Pn.set(d, Ne), Ne;
|
|
277
277
|
}
|
|
278
278
|
while (me >= 1 && Ee >= 0);
|
|
@@ -302,7 +302,7 @@ function ho() {
|
|
|
302
302
|
switch (d) {
|
|
303
303
|
case z:
|
|
304
304
|
return Un("Suspense");
|
|
305
|
-
case
|
|
305
|
+
case H:
|
|
306
306
|
return Un("SuspenseList");
|
|
307
307
|
}
|
|
308
308
|
if (typeof d == "object")
|
|
@@ -312,7 +312,7 @@ function ho() {
|
|
|
312
312
|
case q:
|
|
313
313
|
return He(d.type, R, $);
|
|
314
314
|
case G: {
|
|
315
|
-
var
|
|
315
|
+
var Q = d, oe = Q._payload, de = Q._init;
|
|
316
316
|
try {
|
|
317
317
|
return He(de(oe), R, $);
|
|
318
318
|
} catch {
|
|
@@ -321,7 +321,7 @@ function ho() {
|
|
|
321
321
|
}
|
|
322
322
|
return "";
|
|
323
323
|
}
|
|
324
|
-
var Cn = Object.prototype.hasOwnProperty, Kt = {}, zt =
|
|
324
|
+
var Cn = Object.prototype.hasOwnProperty, Kt = {}, zt = J.ReactDebugCurrentFrame;
|
|
325
325
|
function Hn(d) {
|
|
326
326
|
if (d) {
|
|
327
327
|
var R = d._owner, $ = He(d.type, d._source, R ? R.type : null);
|
|
@@ -329,22 +329,22 @@ function ho() {
|
|
|
329
329
|
} else
|
|
330
330
|
zt.setExtraStackFrame(null);
|
|
331
331
|
}
|
|
332
|
-
function ct(d, R, $,
|
|
332
|
+
function ct(d, R, $, Q, oe) {
|
|
333
333
|
{
|
|
334
334
|
var de = Function.call.bind(Cn);
|
|
335
335
|
for (var le in d)
|
|
336
336
|
if (de(d, le)) {
|
|
337
|
-
var
|
|
337
|
+
var re = void 0;
|
|
338
338
|
try {
|
|
339
339
|
if (typeof d[le] != "function") {
|
|
340
|
-
var Ae = Error((
|
|
340
|
+
var Ae = Error((Q || "React class") + ": " + $ + " type `" + le + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof d[le] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
341
341
|
throw Ae.name = "Invariant Violation", Ae;
|
|
342
342
|
}
|
|
343
|
-
|
|
343
|
+
re = d[le](R, le, Q, $, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
344
344
|
} catch (me) {
|
|
345
|
-
|
|
345
|
+
re = me;
|
|
346
346
|
}
|
|
347
|
-
|
|
347
|
+
re && !(re instanceof Error) && (Hn(oe), W("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Q || "React class", $, le, typeof re), Hn(null)), re instanceof Error && !(re.message in Kt) && (Kt[re.message] = !0, Hn(oe), W("Failed %s type: %s", $, re.message), Hn(null));
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
}
|
|
@@ -370,9 +370,9 @@ function ho() {
|
|
|
370
370
|
}
|
|
371
371
|
function Qe(d) {
|
|
372
372
|
if (Mt(d))
|
|
373
|
-
return
|
|
373
|
+
return W("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", On(d)), pn(d);
|
|
374
374
|
}
|
|
375
|
-
var Ze =
|
|
375
|
+
var Ze = J.ReactCurrentOwner, lt = {
|
|
376
376
|
key: !0,
|
|
377
377
|
ref: !0,
|
|
378
378
|
__self: !0,
|
|
@@ -400,7 +400,7 @@ function ho() {
|
|
|
400
400
|
function ft(d, R) {
|
|
401
401
|
{
|
|
402
402
|
var $ = function() {
|
|
403
|
-
yn || (yn = !0,
|
|
403
|
+
yn || (yn = !0, W("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", R));
|
|
404
404
|
};
|
|
405
405
|
$.isReactWarning = !0, Object.defineProperty(d, "key", {
|
|
406
406
|
get: $,
|
|
@@ -411,7 +411,7 @@ function ho() {
|
|
|
411
411
|
function en(d, R) {
|
|
412
412
|
{
|
|
413
413
|
var $ = function() {
|
|
414
|
-
Yn || (Yn = !0,
|
|
414
|
+
Yn || (Yn = !0, W("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", R));
|
|
415
415
|
};
|
|
416
416
|
$.isReactWarning = !0, Object.defineProperty(d, "ref", {
|
|
417
417
|
get: $,
|
|
@@ -419,8 +419,8 @@ function ho() {
|
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var Y = function(d, R, $,
|
|
423
|
-
var
|
|
422
|
+
var Y = function(d, R, $, Q, oe, de, le) {
|
|
423
|
+
var re = {
|
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
425
|
$$typeof: s,
|
|
426
426
|
// Built-in properties that belong on the element
|
|
@@ -431,27 +431,27 @@ function ho() {
|
|
|
431
431
|
// Record the component responsible for creating this element.
|
|
432
432
|
_owner: de
|
|
433
433
|
};
|
|
434
|
-
return
|
|
434
|
+
return re._store = {}, Object.defineProperty(re._store, "validated", {
|
|
435
435
|
configurable: !1,
|
|
436
436
|
enumerable: !1,
|
|
437
437
|
writable: !0,
|
|
438
438
|
value: !1
|
|
439
|
-
}), Object.defineProperty(
|
|
439
|
+
}), Object.defineProperty(re, "_self", {
|
|
440
440
|
configurable: !1,
|
|
441
441
|
enumerable: !1,
|
|
442
442
|
writable: !1,
|
|
443
|
-
value:
|
|
444
|
-
}), Object.defineProperty(
|
|
443
|
+
value: Q
|
|
444
|
+
}), Object.defineProperty(re, "_source", {
|
|
445
445
|
configurable: !1,
|
|
446
446
|
enumerable: !1,
|
|
447
447
|
writable: !1,
|
|
448
448
|
value: oe
|
|
449
|
-
}), Object.freeze && (Object.freeze(
|
|
449
|
+
}), Object.freeze && (Object.freeze(re.props), Object.freeze(re)), re;
|
|
450
450
|
};
|
|
451
|
-
function jn(d, R, $,
|
|
451
|
+
function jn(d, R, $, Q, oe) {
|
|
452
452
|
{
|
|
453
|
-
var de, le = {},
|
|
454
|
-
$ !== void 0 && (Qe($),
|
|
453
|
+
var de, le = {}, re = null, Ae = null;
|
|
454
|
+
$ !== void 0 && (Qe($), re = "" + $), ln(R) && (Qe(R.key), re = "" + R.key), Gn(R) && (Ae = R.ref, Xn(R, oe));
|
|
455
455
|
for (de in R)
|
|
456
456
|
Cn.call(R, de) && !lt.hasOwnProperty(de) && (le[de] = R[de]);
|
|
457
457
|
if (d && d.defaultProps) {
|
|
@@ -459,14 +459,14 @@ function ho() {
|
|
|
459
459
|
for (de in me)
|
|
460
460
|
le[de] === void 0 && (le[de] = me[de]);
|
|
461
461
|
}
|
|
462
|
-
if (
|
|
462
|
+
if (re || Ae) {
|
|
463
463
|
var Ee = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
|
|
464
|
-
|
|
464
|
+
re && ft(le, Ee), Ae && en(le, Ee);
|
|
465
465
|
}
|
|
466
|
-
return Y(d,
|
|
466
|
+
return Y(d, re, Ae, oe, Q, Ze.current, le);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
var Ge =
|
|
469
|
+
var Ge = J.ReactCurrentOwner, Tn = J.ReactDebugCurrentFrame;
|
|
470
470
|
function B(d) {
|
|
471
471
|
if (d) {
|
|
472
472
|
var R = d._owner, $ = He(d.type, d._source, R ? R.type : null);
|
|
@@ -516,8 +516,8 @@ Check the top-level render call using <` + $ + ">.");
|
|
|
516
516
|
if (Zn[$])
|
|
517
517
|
return;
|
|
518
518
|
Zn[$] = !0;
|
|
519
|
-
var
|
|
520
|
-
d && d._owner && d._owner !== Ge.current && (
|
|
519
|
+
var Q = "";
|
|
520
|
+
d && d._owner && d._owner !== Ge.current && (Q = " It was passed a child from " + Re(d._owner.type) + "."), B(d), W('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', $, Q), B(null);
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
523
|
function fn(d, R) {
|
|
@@ -526,8 +526,8 @@ Check the top-level render call using <` + $ + ">.");
|
|
|
526
526
|
return;
|
|
527
527
|
if (Wn(d))
|
|
528
528
|
for (var $ = 0; $ < d.length; $++) {
|
|
529
|
-
var
|
|
530
|
-
Jn(
|
|
529
|
+
var Q = d[$];
|
|
530
|
+
Jn(Q) && Ft(Q, R);
|
|
531
531
|
}
|
|
532
532
|
else if (Jn(d))
|
|
533
533
|
d._store && (d._store.validated = !0);
|
|
@@ -554,39 +554,39 @@ Check the top-level render call using <` + $ + ">.");
|
|
|
554
554
|
else
|
|
555
555
|
return;
|
|
556
556
|
if ($) {
|
|
557
|
-
var
|
|
558
|
-
ct($, d.props, "prop",
|
|
557
|
+
var Q = Re(R);
|
|
558
|
+
ct($, d.props, "prop", Q, d);
|
|
559
559
|
} else if (R.PropTypes !== void 0 && !Rn) {
|
|
560
560
|
Rn = !0;
|
|
561
561
|
var oe = Re(R);
|
|
562
|
-
|
|
562
|
+
W("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", oe || "Unknown");
|
|
563
563
|
}
|
|
564
|
-
typeof R.getDefaultProps == "function" && !R.getDefaultProps.isReactClassApproved &&
|
|
564
|
+
typeof R.getDefaultProps == "function" && !R.getDefaultProps.isReactClassApproved && W("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
567
|
function ht(d) {
|
|
568
568
|
{
|
|
569
569
|
for (var R = Object.keys(d.props), $ = 0; $ < R.length; $++) {
|
|
570
|
-
var
|
|
571
|
-
if (
|
|
572
|
-
B(d),
|
|
570
|
+
var Q = R[$];
|
|
571
|
+
if (Q !== "children" && Q !== "key") {
|
|
572
|
+
B(d), W("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Q), B(null);
|
|
573
573
|
break;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
d.ref !== null && (B(d),
|
|
576
|
+
d.ref !== null && (B(d), W("Invalid attribute `ref` supplied to `React.Fragment`."), B(null));
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
var An = {};
|
|
580
|
-
function _e(d, R, $,
|
|
580
|
+
function _e(d, R, $, Q, oe, de) {
|
|
581
581
|
{
|
|
582
582
|
var le = Ce(d);
|
|
583
583
|
if (!le) {
|
|
584
|
-
var
|
|
585
|
-
(d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (
|
|
584
|
+
var re = "";
|
|
585
|
+
(d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (re += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
586
586
|
var Ae = Lt();
|
|
587
|
-
Ae ?
|
|
587
|
+
Ae ? re += Ae : re += Qn();
|
|
588
588
|
var me;
|
|
589
|
-
d === null ? me = "null" : Wn(d) ? me = "array" : d !== void 0 && d.$$typeof === s ? (me = "<" + (Re(d.type) || "Unknown") + " />",
|
|
589
|
+
d === null ? me = "null" : Wn(d) ? me = "array" : d !== void 0 && d.$$typeof === s ? (me = "<" + (Re(d.type) || "Unknown") + " />", re = " Did you accidentally export a JSX literal instead of a component?") : me = typeof d, W("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", me, re);
|
|
590
590
|
}
|
|
591
591
|
var Ee = jn(d, R, $, oe, de);
|
|
592
592
|
if (Ee == null)
|
|
@@ -594,13 +594,13 @@ Check the top-level render call using <` + $ + ">.");
|
|
|
594
594
|
if (le) {
|
|
595
595
|
var Ne = R.children;
|
|
596
596
|
if (Ne !== void 0)
|
|
597
|
-
if (
|
|
597
|
+
if (Q)
|
|
598
598
|
if (Wn(Ne)) {
|
|
599
599
|
for (var be = 0; be < Ne.length; be++)
|
|
600
600
|
fn(Ne[be], d);
|
|
601
601
|
Object.freeze && Object.freeze(Ne);
|
|
602
602
|
} else
|
|
603
|
-
|
|
603
|
+
W("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
604
604
|
else
|
|
605
605
|
fn(Ne, d);
|
|
606
606
|
}
|
|
@@ -610,7 +610,7 @@ Check the top-level render call using <` + $ + ">.");
|
|
|
610
610
|
}), tt = ke.length > 0 ? "{key: someKey, " + ke.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
611
611
|
if (!An[Le + tt]) {
|
|
612
612
|
var gn = ke.length > 0 ? "{" + ke.join(": ..., ") + ": ...}" : "{}";
|
|
613
|
-
|
|
613
|
+
W(`A props object containing a "key" prop is being spread into JSX:
|
|
614
614
|
let props = %s;
|
|
615
615
|
<%s {...props} />
|
|
616
616
|
React keys must be passed directly to JSX without using spread:
|
|
@@ -1015,10 +1015,10 @@ function Oi(a, s, l, f, C, k) {
|
|
|
1015
1015
|
var w = l & Ru, O = a.length, j = s.length;
|
|
1016
1016
|
if (O != j && !(w && j > O))
|
|
1017
1017
|
return !1;
|
|
1018
|
-
var z = k.get(a),
|
|
1019
|
-
if (z &&
|
|
1020
|
-
return z == s &&
|
|
1021
|
-
var q = -1, G = !0,
|
|
1018
|
+
var z = k.get(a), H = k.get(s);
|
|
1019
|
+
if (z && H)
|
|
1020
|
+
return z == s && H == a;
|
|
1021
|
+
var q = -1, G = !0, M = l & Au ? new fr() : void 0;
|
|
1022
1022
|
for (k.set(a, s), k.set(s, a); ++q < O; ) {
|
|
1023
1023
|
var D = a[q], Z = s[q];
|
|
1024
1024
|
if (f)
|
|
@@ -1029,10 +1029,10 @@ function Oi(a, s, l, f, C, k) {
|
|
|
1029
1029
|
G = !1;
|
|
1030
1030
|
break;
|
|
1031
1031
|
}
|
|
1032
|
-
if (
|
|
1033
|
-
if (!ju(s, function(
|
|
1034
|
-
if (!Tu(
|
|
1035
|
-
return
|
|
1032
|
+
if (M) {
|
|
1033
|
+
if (!ju(s, function(J, W) {
|
|
1034
|
+
if (!Tu(M, W) && (D === J || C(D, J, l, f, k)))
|
|
1035
|
+
return M.push(W);
|
|
1036
1036
|
})) {
|
|
1037
1037
|
G = !1;
|
|
1038
1038
|
break;
|
|
@@ -1084,8 +1084,8 @@ function Yu(a, s, l, f, C, k, w) {
|
|
|
1084
1084
|
if (z)
|
|
1085
1085
|
return z == s;
|
|
1086
1086
|
f |= Ku, w.set(a, s);
|
|
1087
|
-
var
|
|
1088
|
-
return w.delete(a),
|
|
1087
|
+
var H = Oi(O(a), O(s), f, C, k, w);
|
|
1088
|
+
return w.delete(a), H;
|
|
1089
1089
|
case Vu:
|
|
1090
1090
|
if (Gr)
|
|
1091
1091
|
return Gr.call(a) == Gr.call(s);
|
|
@@ -1094,33 +1094,33 @@ function Yu(a, s, l, f, C, k, w) {
|
|
|
1094
1094
|
}
|
|
1095
1095
|
var Gu = 1, Xu = Object.prototype, Ju = Xu.hasOwnProperty;
|
|
1096
1096
|
function Qu(a, s, l, f, C, k) {
|
|
1097
|
-
var w = l & Gu, O = Xa(a), j = O.length, z = Xa(s),
|
|
1098
|
-
if (j !=
|
|
1097
|
+
var w = l & Gu, O = Xa(a), j = O.length, z = Xa(s), H = z.length;
|
|
1098
|
+
if (j != H && !w)
|
|
1099
1099
|
return !1;
|
|
1100
1100
|
for (var q = j; q--; ) {
|
|
1101
1101
|
var G = O[q];
|
|
1102
1102
|
if (!(w ? G in s : Ju.call(s, G)))
|
|
1103
1103
|
return !1;
|
|
1104
1104
|
}
|
|
1105
|
-
var
|
|
1106
|
-
if (
|
|
1107
|
-
return
|
|
1105
|
+
var M = k.get(a), D = k.get(s);
|
|
1106
|
+
if (M && D)
|
|
1107
|
+
return M == s && D == a;
|
|
1108
1108
|
var Z = !0;
|
|
1109
1109
|
k.set(a, s), k.set(s, a);
|
|
1110
1110
|
for (var ee = w; ++q < j; ) {
|
|
1111
1111
|
G = O[q];
|
|
1112
|
-
var
|
|
1112
|
+
var J = a[G], W = s[G];
|
|
1113
1113
|
if (f)
|
|
1114
|
-
var je = w ? f(
|
|
1115
|
-
if (!(je === void 0 ?
|
|
1114
|
+
var je = w ? f(W, J, G, s, a, k) : f(J, W, G, a, s, k);
|
|
1115
|
+
if (!(je === void 0 ? J === W || C(J, W, l, f, k) : je)) {
|
|
1116
1116
|
Z = !1;
|
|
1117
1117
|
break;
|
|
1118
1118
|
}
|
|
1119
1119
|
ee || (ee = G == "constructor");
|
|
1120
1120
|
}
|
|
1121
1121
|
if (Z && !ee) {
|
|
1122
|
-
var ge = a.constructor,
|
|
1123
|
-
ge !=
|
|
1122
|
+
var ge = a.constructor, te = s.constructor;
|
|
1123
|
+
ge != te && "constructor" in a && "constructor" in s && !(typeof ge == "function" && ge instanceof ge && typeof te == "function" && te instanceof te) && (Z = !1);
|
|
1124
1124
|
}
|
|
1125
1125
|
return k.delete(a), k.delete(s), Z;
|
|
1126
1126
|
}
|
|
@@ -1128,18 +1128,18 @@ var Zu = 1, ai = "[object Arguments]", ii = "[object Array]", ir = "[object Obje
|
|
|
1128
1128
|
function nc(a, s, l, f, C, k) {
|
|
1129
1129
|
var w = lr(a), O = lr(s), j = w ? ii : xn(a), z = O ? ii : xn(s);
|
|
1130
1130
|
j = j == ai ? ir : j, z = z == ai ? ir : z;
|
|
1131
|
-
var
|
|
1131
|
+
var H = j == ir, q = z == ir, G = j == z;
|
|
1132
1132
|
if (G && na(a)) {
|
|
1133
1133
|
if (!na(s))
|
|
1134
1134
|
return !1;
|
|
1135
|
-
w = !0,
|
|
1135
|
+
w = !0, H = !1;
|
|
1136
1136
|
}
|
|
1137
|
-
if (G && !
|
|
1137
|
+
if (G && !H)
|
|
1138
1138
|
return k || (k = new kn()), w || Ci(a) ? Oi(a, s, l, f, C, k) : Yu(a, s, j, l, f, C, k);
|
|
1139
1139
|
if (!(l & Zu)) {
|
|
1140
|
-
var
|
|
1141
|
-
if (
|
|
1142
|
-
var Z =
|
|
1140
|
+
var M = H && oi.call(a, "__wrapped__"), D = q && oi.call(s, "__wrapped__");
|
|
1141
|
+
if (M || D) {
|
|
1142
|
+
var Z = M ? a.value() : a, ee = D ? s.value() : s;
|
|
1143
1143
|
return k || (k = new kn()), C(Z, ee, l, f, k);
|
|
1144
1144
|
}
|
|
1145
1145
|
}
|
|
@@ -1186,8 +1186,8 @@ function ia(a, s) {
|
|
|
1186
1186
|
for (var k = document.cookie ? document.cookie.split("; ") : [], w = {}, O = 0; O < k.length; O++) {
|
|
1187
1187
|
var j = k[O].split("="), z = j.slice(1).join("=");
|
|
1188
1188
|
try {
|
|
1189
|
-
var
|
|
1190
|
-
if (w[
|
|
1189
|
+
var H = decodeURIComponent(j[0]);
|
|
1190
|
+
if (w[H] = a.read(z, H), C === H)
|
|
1191
1191
|
break;
|
|
1192
1192
|
} catch {
|
|
1193
1193
|
}
|
|
@@ -1276,11 +1276,11 @@ function ac() {
|
|
|
1276
1276
|
"MSFullscreenChange",
|
|
1277
1277
|
"MSFullscreenError"
|
|
1278
1278
|
]
|
|
1279
|
-
], j = 0, z = O.length,
|
|
1279
|
+
], j = 0, z = O.length, H = {}; j < z; j++)
|
|
1280
1280
|
if (w = O[j], w && w[1] in s) {
|
|
1281
1281
|
for (j = 0; j < w.length; j++)
|
|
1282
|
-
|
|
1283
|
-
return
|
|
1282
|
+
H[O[0][j]] = w[j];
|
|
1283
|
+
return H;
|
|
1284
1284
|
}
|
|
1285
1285
|
return !1;
|
|
1286
1286
|
}(), C = {
|
|
@@ -1289,12 +1289,12 @@ function ac() {
|
|
|
1289
1289
|
}, k = {
|
|
1290
1290
|
request: function(w, O) {
|
|
1291
1291
|
return new Promise((function(j, z) {
|
|
1292
|
-
var
|
|
1293
|
-
this.off("change",
|
|
1292
|
+
var H = (function() {
|
|
1293
|
+
this.off("change", H), j();
|
|
1294
1294
|
}).bind(this);
|
|
1295
|
-
this.on("change",
|
|
1295
|
+
this.on("change", H), w = w || s.documentElement;
|
|
1296
1296
|
var q = w[f.requestFullscreen](O);
|
|
1297
|
-
q instanceof Promise && q.then(
|
|
1297
|
+
q instanceof Promise && q.then(H).catch(z);
|
|
1298
1298
|
}).bind(this));
|
|
1299
1299
|
},
|
|
1300
1300
|
exit: function() {
|
|
@@ -1377,12 +1377,12 @@ function ic() {
|
|
|
1377
1377
|
}
|
|
1378
1378
|
var l = typeof Object.is == "function" ? Object.is : s, f = a.useState, C = a.useEffect, k = a.useLayoutEffect, w = a.useDebugValue;
|
|
1379
1379
|
function O(q, G) {
|
|
1380
|
-
var
|
|
1380
|
+
var M = G(), D = f({ inst: { value: M, getSnapshot: G } }), Z = D[0].inst, ee = D[1];
|
|
1381
1381
|
return k(
|
|
1382
1382
|
function() {
|
|
1383
|
-
Z.value =
|
|
1383
|
+
Z.value = M, Z.getSnapshot = G, j(Z) && ee({ inst: Z });
|
|
1384
1384
|
},
|
|
1385
|
-
[q,
|
|
1385
|
+
[q, M, G]
|
|
1386
1386
|
), C(
|
|
1387
1387
|
function() {
|
|
1388
1388
|
return j(Z) && ee({ inst: Z }), q(function() {
|
|
@@ -1390,14 +1390,14 @@ function ic() {
|
|
|
1390
1390
|
});
|
|
1391
1391
|
},
|
|
1392
1392
|
[q]
|
|
1393
|
-
), w(
|
|
1393
|
+
), w(M), M;
|
|
1394
1394
|
}
|
|
1395
1395
|
function j(q) {
|
|
1396
1396
|
var G = q.getSnapshot;
|
|
1397
1397
|
q = q.value;
|
|
1398
1398
|
try {
|
|
1399
|
-
var
|
|
1400
|
-
return !l(q,
|
|
1399
|
+
var M = G();
|
|
1400
|
+
return !l(q, M);
|
|
1401
1401
|
} catch {
|
|
1402
1402
|
return !0;
|
|
1403
1403
|
}
|
|
@@ -1405,8 +1405,8 @@ function ic() {
|
|
|
1405
1405
|
function z(q, G) {
|
|
1406
1406
|
return G();
|
|
1407
1407
|
}
|
|
1408
|
-
var
|
|
1409
|
-
return Jr.useSyncExternalStore = a.useSyncExternalStore !== void 0 ? a.useSyncExternalStore :
|
|
1408
|
+
var H = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? z : O;
|
|
1409
|
+
return Jr.useSyncExternalStore = a.useSyncExternalStore !== void 0 ? a.useSyncExternalStore : H, Jr;
|
|
1410
1410
|
}
|
|
1411
1411
|
var Qr = {};
|
|
1412
1412
|
/**
|
|
@@ -1421,11 +1421,11 @@ var Qr = {};
|
|
|
1421
1421
|
var ci;
|
|
1422
1422
|
function oc() {
|
|
1423
1423
|
return ci || (ci = 1, process.env.NODE_ENV !== "production" && function() {
|
|
1424
|
-
function a(
|
|
1425
|
-
return
|
|
1424
|
+
function a(M, D) {
|
|
1425
|
+
return M === D && (M !== 0 || 1 / M === 1 / D) || M !== M && D !== D;
|
|
1426
1426
|
}
|
|
1427
|
-
function s(
|
|
1428
|
-
|
|
1427
|
+
function s(M, D) {
|
|
1428
|
+
H || C.startTransition === void 0 || (H = !0, console.error(
|
|
1429
1429
|
"You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
|
|
1430
1430
|
));
|
|
1431
1431
|
var Z = D();
|
|
@@ -1438,36 +1438,36 @@ function oc() {
|
|
|
1438
1438
|
ee = w({
|
|
1439
1439
|
inst: { value: Z, getSnapshot: D }
|
|
1440
1440
|
});
|
|
1441
|
-
var
|
|
1441
|
+
var J = ee[0].inst, W = ee[1];
|
|
1442
1442
|
return j(
|
|
1443
1443
|
function() {
|
|
1444
|
-
|
|
1444
|
+
J.value = Z, J.getSnapshot = D, l(J) && W({ inst: J });
|
|
1445
1445
|
},
|
|
1446
|
-
[
|
|
1446
|
+
[M, Z, D]
|
|
1447
1447
|
), O(
|
|
1448
1448
|
function() {
|
|
1449
|
-
return l(
|
|
1450
|
-
l(
|
|
1449
|
+
return l(J) && W({ inst: J }), M(function() {
|
|
1450
|
+
l(J) && W({ inst: J });
|
|
1451
1451
|
});
|
|
1452
1452
|
},
|
|
1453
|
-
[
|
|
1453
|
+
[M]
|
|
1454
1454
|
), z(Z), Z;
|
|
1455
1455
|
}
|
|
1456
|
-
function l(
|
|
1457
|
-
var D =
|
|
1458
|
-
|
|
1456
|
+
function l(M) {
|
|
1457
|
+
var D = M.getSnapshot;
|
|
1458
|
+
M = M.value;
|
|
1459
1459
|
try {
|
|
1460
1460
|
var Z = D();
|
|
1461
|
-
return !k(
|
|
1461
|
+
return !k(M, Z);
|
|
1462
1462
|
} catch {
|
|
1463
1463
|
return !0;
|
|
1464
1464
|
}
|
|
1465
1465
|
}
|
|
1466
|
-
function f(
|
|
1466
|
+
function f(M, D) {
|
|
1467
1467
|
return D();
|
|
1468
1468
|
}
|
|
1469
1469
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
1470
|
-
var C = Rt, k = typeof Object.is == "function" ? Object.is : a, w = C.useState, O = C.useEffect, j = C.useLayoutEffect, z = C.useDebugValue,
|
|
1470
|
+
var C = Rt, k = typeof Object.is == "function" ? Object.is : a, w = C.useState, O = C.useEffect, j = C.useLayoutEffect, z = C.useDebugValue, H = !1, q = !1, G = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? f : s;
|
|
1471
1471
|
Qr.useSyncExternalStore = C.useSyncExternalStore !== void 0 ? C.useSyncExternalStore : G, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1472
1472
|
}()), Qr;
|
|
1473
1473
|
}
|
|
@@ -1566,7 +1566,7 @@ const pc = (a) => {
|
|
|
1566
1566
|
const { box: l = "content-box" } = s, [f, C] = Be(0), [k, w] = Be(0);
|
|
1567
1567
|
return mc(a, ([O]) => {
|
|
1568
1568
|
const j = l === "border-box" ? O.borderBoxSize : l === "content-box" ? O.contentBoxSize : O.devicePixelContentBoxSize;
|
|
1569
|
-
j ? (C(j.reduce((z, { inlineSize:
|
|
1569
|
+
j ? (C(j.reduce((z, { inlineSize: H }) => z + H, 0)), w(j.reduce((z, { blockSize: H }) => z + H, 0))) : (C(O.contentRect.width), w(O.contentRect.height));
|
|
1570
1570
|
}, s), [
|
|
1571
1571
|
f,
|
|
1572
1572
|
k
|
|
@@ -1603,27 +1603,27 @@ function bc() {
|
|
|
1603
1603
|
}), e;
|
|
1604
1604
|
}
|
|
1605
1605
|
typeof Promise > "u" || k.Promise || (k.Promise = Promise);
|
|
1606
|
-
var z = Object.getPrototypeOf,
|
|
1606
|
+
var z = Object.getPrototypeOf, H = {}.hasOwnProperty;
|
|
1607
1607
|
function q(e, n) {
|
|
1608
|
-
return
|
|
1608
|
+
return H.call(e, n);
|
|
1609
1609
|
}
|
|
1610
1610
|
function G(e, n) {
|
|
1611
1611
|
typeof n == "function" && (n = n(z(e))), (typeof Reflect > "u" ? w : Reflect.ownKeys)(n).forEach(function(t) {
|
|
1612
1612
|
D(e, t, n[t]);
|
|
1613
1613
|
});
|
|
1614
1614
|
}
|
|
1615
|
-
var
|
|
1615
|
+
var M = Object.defineProperty;
|
|
1616
1616
|
function D(e, n, t, r) {
|
|
1617
|
-
|
|
1617
|
+
M(e, n, j(t && q(t, "get") && typeof t.get == "function" ? { get: t.get, set: t.set, configurable: !0 } : { value: t, configurable: !0, writable: !0 }, r));
|
|
1618
1618
|
}
|
|
1619
1619
|
function Z(e) {
|
|
1620
1620
|
return { from: function(n) {
|
|
1621
1621
|
return e.prototype = Object.create(n.prototype), D(e.prototype, "constructor", e), { extend: G.bind(null, e.prototype) };
|
|
1622
1622
|
} };
|
|
1623
1623
|
}
|
|
1624
|
-
var ee = Object.getOwnPropertyDescriptor,
|
|
1625
|
-
function
|
|
1626
|
-
return
|
|
1624
|
+
var ee = Object.getOwnPropertyDescriptor, J = [].slice;
|
|
1625
|
+
function W(e, n, t) {
|
|
1626
|
+
return J.call(e, n, t);
|
|
1627
1627
|
}
|
|
1628
1628
|
function je(e, n) {
|
|
1629
1629
|
return n(e);
|
|
@@ -1631,7 +1631,7 @@ function bc() {
|
|
|
1631
1631
|
function ge(e) {
|
|
1632
1632
|
if (!e) throw new Error("Assertion Failed");
|
|
1633
1633
|
}
|
|
1634
|
-
function
|
|
1634
|
+
function te(e) {
|
|
1635
1635
|
k.setImmediate ? setImmediate(e) : setTimeout(e, 0);
|
|
1636
1636
|
}
|
|
1637
1637
|
function he(e, n) {
|
|
@@ -1664,9 +1664,9 @@ function bc() {
|
|
|
1664
1664
|
for (n in e) q(e, n) && (t[n] = e[n]);
|
|
1665
1665
|
return t;
|
|
1666
1666
|
}
|
|
1667
|
-
var
|
|
1667
|
+
var se = [].concat;
|
|
1668
1668
|
function Ce(e) {
|
|
1669
|
-
return
|
|
1669
|
+
return se.apply([], e);
|
|
1670
1670
|
}
|
|
1671
1671
|
var Qe = "BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(Ce([8, 16, 32, 64].map(function(e) {
|
|
1672
1672
|
return ["Int", "Uint", "Float"].map(function(n) {
|
|
@@ -1948,11 +1948,11 @@ function bc() {
|
|
|
1948
1948
|
return function() {
|
|
1949
1949
|
var r = fn(), i = Y;
|
|
1950
1950
|
try {
|
|
1951
|
-
return
|
|
1951
|
+
return re(t, !0), e.apply(this, arguments);
|
|
1952
1952
|
} catch (o) {
|
|
1953
1953
|
n && n(o);
|
|
1954
1954
|
} finally {
|
|
1955
|
-
|
|
1955
|
+
re(i, !1), r && mn();
|
|
1956
1956
|
}
|
|
1957
1957
|
};
|
|
1958
1958
|
}
|
|
@@ -2072,14 +2072,14 @@ function bc() {
|
|
|
2072
2072
|
--this.parent.ref || this.parent.finalize();
|
|
2073
2073
|
}, r = me(o, e, t, r), o.ref === 0 && o.finalize(), r;
|
|
2074
2074
|
}
|
|
2075
|
-
function
|
|
2075
|
+
function Q() {
|
|
2076
2076
|
return Oe.id || (Oe.id = ++br), ++Oe.awaits, Oe.echoes += Mt, Oe.id;
|
|
2077
2077
|
}
|
|
2078
2078
|
function oe() {
|
|
2079
2079
|
return !!Oe.awaits && (--Oe.awaits == 0 && (Oe.id = 0), Oe.echoes = Oe.awaits * Mt, !0);
|
|
2080
2080
|
}
|
|
2081
2081
|
function de(e) {
|
|
2082
|
-
return Oe.echoes && e && e.constructor === Ze ? (
|
|
2082
|
+
return Oe.echoes && e && e.constructor === Ze ? (Q(), e.then(function(n) {
|
|
2083
2083
|
return oe(), n;
|
|
2084
2084
|
}, function(n) {
|
|
2085
2085
|
return oe(), be(n);
|
|
@@ -2087,12 +2087,12 @@ function bc() {
|
|
|
2087
2087
|
}
|
|
2088
2088
|
function le() {
|
|
2089
2089
|
var e = et[et.length - 1];
|
|
2090
|
-
et.pop(),
|
|
2090
|
+
et.pop(), re(e, !1);
|
|
2091
2091
|
}
|
|
2092
|
-
function
|
|
2092
|
+
function re(e, n) {
|
|
2093
2093
|
var t, r = Y;
|
|
2094
2094
|
(n ? !Oe.echoes || nt++ && e === Y : !nt || --nt && e === Y) || queueMicrotask(n ? (function(i) {
|
|
2095
|
-
++d, Oe.echoes && --Oe.echoes != 0 || (Oe.echoes = Oe.awaits = Oe.id = 0), et.push(Y),
|
|
2095
|
+
++d, Oe.echoes && --Oe.echoes != 0 || (Oe.echoes = Oe.awaits = Oe.id = 0), et.push(Y), re(i, !0);
|
|
2096
2096
|
}).bind(null, e) : le), e !== Y && (Y = e, r === en && (en.env = Ae()), lt && (t = en.env.Promise, n = e.env, (r.global || e.global) && (Object.defineProperty(k, "Promise", n.PromiseProp), t.all = n.all, t.race = n.race, t.resolve = n.resolve, t.reject = n.reject, n.allSettled && (t.allSettled = n.allSettled), n.any && (t.any = n.any))));
|
|
2097
2097
|
}
|
|
2098
2098
|
function Ae() {
|
|
@@ -2102,26 +2102,26 @@ function bc() {
|
|
|
2102
2102
|
function me(e, n, t, r, i) {
|
|
2103
2103
|
var o = Y;
|
|
2104
2104
|
try {
|
|
2105
|
-
return
|
|
2105
|
+
return re(e, !0), n(t, r, i);
|
|
2106
2106
|
} finally {
|
|
2107
|
-
|
|
2107
|
+
re(o, !1);
|
|
2108
2108
|
}
|
|
2109
2109
|
}
|
|
2110
2110
|
function Ee(e, n, t, r) {
|
|
2111
2111
|
return typeof e != "function" ? e : function() {
|
|
2112
2112
|
var i = Y;
|
|
2113
|
-
t &&
|
|
2113
|
+
t && Q(), re(n, !0);
|
|
2114
2114
|
try {
|
|
2115
2115
|
return e.apply(this, arguments);
|
|
2116
2116
|
} finally {
|
|
2117
|
-
|
|
2117
|
+
re(i, !1), r && queueMicrotask(oe);
|
|
2118
2118
|
}
|
|
2119
2119
|
};
|
|
2120
2120
|
}
|
|
2121
2121
|
function Ne(e) {
|
|
2122
2122
|
Promise === Ze && Oe.echoes === 0 ? nt === 0 ? e() : enqueueNativeMicroTask(e) : setTimeout(e, 0);
|
|
2123
2123
|
}
|
|
2124
|
-
("" + Ye).indexOf("[native code]") === -1 && (
|
|
2124
|
+
("" + Ye).indexOf("[native code]") === -1 && (Q = oe = ye);
|
|
2125
2125
|
var be = B.reject, Le = "", ke = "Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.", tt = "String expected.", gn = [], rt = "__dbnames", _r = "readonly", wr = "readwrite";
|
|
2126
2126
|
function Dn(e, n) {
|
|
2127
2127
|
return e ? n ? function() {
|
|
@@ -2473,7 +2473,7 @@ function bc() {
|
|
|
2473
2473
|
var p = o(h, Sn, function() {
|
|
2474
2474
|
for (var g = arguments.length, _ = new Array(g); g--; ) _[g] = arguments[g];
|
|
2475
2475
|
p.subscribers.forEach(function(m) {
|
|
2476
|
-
|
|
2476
|
+
te(function() {
|
|
2477
2477
|
m.apply(null, _);
|
|
2478
2478
|
});
|
|
2479
2479
|
});
|
|
@@ -2752,8 +2752,8 @@ function bc() {
|
|
|
2752
2752
|
var P = S.failures, S = S.numFailures;
|
|
2753
2753
|
g += m - S;
|
|
2754
2754
|
for (var T = 0, I = w(P); T < I.length; T++) {
|
|
2755
|
-
var
|
|
2756
|
-
p.push(P[
|
|
2755
|
+
var F = I[T];
|
|
2756
|
+
p.push(P[F]);
|
|
2757
2757
|
}
|
|
2758
2758
|
}
|
|
2759
2759
|
var p = [], g = 0, _ = [];
|
|
@@ -2761,20 +2761,20 @@ function bc() {
|
|
|
2761
2761
|
function E(S) {
|
|
2762
2762
|
var T = Math.min(b, m.length - S);
|
|
2763
2763
|
return c.getMany({ trans: r, keys: m.slice(S, S + T), cache: "immutable" }).then(function(I) {
|
|
2764
|
-
for (var
|
|
2765
|
-
var V = I[
|
|
2766
|
-
u.call(ie, ie.value, ie) !== !1 && (ie.value == null ? U.push(m[S +
|
|
2764
|
+
for (var F = [], N = [], K = v ? [] : null, U = [], L = 0; L < T; ++L) {
|
|
2765
|
+
var V = I[L], ie = { value: Re(V), primKey: m[S + L] };
|
|
2766
|
+
u.call(ie, ie.value, ie) !== !1 && (ie.value == null ? U.push(m[S + L]) : v || fe(y(V), y(ie.value)) === 0 ? (N.push(ie.value), v && K.push(m[S + L])) : (U.push(m[S + L]), F.push(ie.value)));
|
|
2767
2767
|
}
|
|
2768
|
-
return Promise.resolve(0 <
|
|
2769
|
-
for (var
|
|
2770
|
-
x(
|
|
2768
|
+
return Promise.resolve(0 < F.length && c.mutate({ trans: r, type: "add", values: F }).then(function(ue) {
|
|
2769
|
+
for (var ce in ue.failures) U.splice(parseInt(ce), 1);
|
|
2770
|
+
x(F.length, ue);
|
|
2771
2771
|
})).then(function() {
|
|
2772
|
-
return (0 < N.length || P && typeof e == "object") && c.mutate({ trans: r, type: "put", keys: K, values: N, criteria: P, changeSpec: typeof e != "function" && e, isAdditionalChunk: 0 < S }).then(function(
|
|
2773
|
-
return x(N.length,
|
|
2772
|
+
return (0 < N.length || P && typeof e == "object") && c.mutate({ trans: r, type: "put", keys: K, values: N, criteria: P, changeSpec: typeof e != "function" && e, isAdditionalChunk: 0 < S }).then(function(ue) {
|
|
2773
|
+
return x(N.length, ue);
|
|
2774
2774
|
});
|
|
2775
2775
|
}).then(function() {
|
|
2776
|
-
return (0 < U.length || P && e === Er) && c.mutate({ trans: r, type: "delete", keys: U, criteria: P, isAdditionalChunk: 0 < S }).then(function(
|
|
2777
|
-
return x(U.length,
|
|
2776
|
+
return (0 < U.length || P && e === Er) && c.mutate({ trans: r, type: "delete", keys: U, criteria: P, isAdditionalChunk: 0 < S }).then(function(ue) {
|
|
2777
|
+
return x(U.length, ue);
|
|
2778
2778
|
});
|
|
2779
2779
|
}).then(function() {
|
|
2780
2780
|
return m.length > S + T && E(S + b);
|
|
@@ -2860,13 +2860,13 @@ function bc() {
|
|
|
2860
2860
|
var P = o(E);
|
|
2861
2861
|
if (n(P, v, p)) return !0;
|
|
2862
2862
|
for (var S = null, T = p; T < h; ++T) {
|
|
2863
|
-
var I = function(
|
|
2864
|
-
for (var ie = Math.min(
|
|
2865
|
-
var Ue = N[
|
|
2866
|
-
if (Ue !== U[
|
|
2867
|
-
|
|
2863
|
+
var I = function(F, N, K, U, L, V) {
|
|
2864
|
+
for (var ie = Math.min(F.length, U.length), ue = -1, ce = 0; ce < ie; ++ce) {
|
|
2865
|
+
var Ue = N[ce];
|
|
2866
|
+
if (Ue !== U[ce]) return L(F[ce], K[ce]) < 0 ? F.substr(0, ce) + K[ce] + K.substr(ce + 1) : L(F[ce], U[ce]) < 0 ? F.substr(0, ce) + U[ce] + K.substr(ce + 1) : 0 <= ue ? F.substr(0, ue) + N[ue] + K.substr(ue + 1) : null;
|
|
2867
|
+
L(F[ce], Ue) < 0 && (ue = ce);
|
|
2868
2868
|
}
|
|
2869
|
-
return ie < U.length && V === "next" ?
|
|
2869
|
+
return ie < U.length && V === "next" ? F + K.substr(F.length) : ie < F.length && V === "prev" ? F.substr(0, K.length) : ue < 0 ? null : F.substr(0, ue) + U[ue] + K.substr(ue + 1);
|
|
2870
2870
|
}(E, P, c[T], v[T], u, y);
|
|
2871
2871
|
I === null && S === null ? p = T + 1 : (S === null || 0 < u(S, I)) && (S = I);
|
|
2872
2872
|
}
|
|
@@ -2982,9 +2982,9 @@ function bc() {
|
|
|
2982
2982
|
try {
|
|
2983
2983
|
(b = E.reduce(function(P, S) {
|
|
2984
2984
|
for (var T = 0, I = P.length; T < I; ++T) {
|
|
2985
|
-
var
|
|
2986
|
-
if (r(S[0],
|
|
2987
|
-
|
|
2985
|
+
var F = P[T];
|
|
2986
|
+
if (r(S[0], F[1]) < 0 && 0 < r(S[1], F[0])) {
|
|
2987
|
+
F[0] = u(F[0], S[0]), F[1] = c(F[1], S[1]);
|
|
2988
2988
|
break;
|
|
2989
2989
|
}
|
|
2990
2990
|
}
|
|
@@ -3007,8 +3007,8 @@ function bc() {
|
|
|
3007
3007
|
return E._ondirectionchange = function(P) {
|
|
3008
3008
|
h = P === "next" ? (m = g, i) : (m = _, o), b.sort(x);
|
|
3009
3009
|
}, E._addAlgorithm(function(P, S, T) {
|
|
3010
|
-
for (var I,
|
|
3011
|
-
return !g(I =
|
|
3010
|
+
for (var I, F = P.key; m(F); ) if (++p === b.length) return S(T), !1;
|
|
3011
|
+
return !g(I = F) && !_(I) || (t._cmp(F, b[p][1]) === 0 || t._cmp(F, b[p][0]) === 0 || S(function() {
|
|
3012
3012
|
h === i ? P.continue(b[p][0]) : P.continue(b[p][1]);
|
|
3013
3013
|
}), !1);
|
|
3014
3014
|
}), E;
|
|
@@ -3172,43 +3172,43 @@ function bc() {
|
|
|
3172
3172
|
var p, g = x.name;
|
|
3173
3173
|
return { name: g, schema: x, mutate: function(_) {
|
|
3174
3174
|
var m = _.trans, E = _.type, P = _.keys, S = _.values, T = _.range;
|
|
3175
|
-
return new Promise(function(I,
|
|
3175
|
+
return new Promise(function(I, F) {
|
|
3176
3176
|
I = _e(I);
|
|
3177
3177
|
var N = m.objectStore(g), K = N.keyPath == null, U = E === "put" || E === "add";
|
|
3178
3178
|
if (!U && E !== "delete" && E !== "deleteRange") throw new Error("Invalid operation type: " + E);
|
|
3179
|
-
var
|
|
3179
|
+
var L, V = (P || S || { length: 1 }).length;
|
|
3180
3180
|
if (P && S && P.length !== S.length) throw new Error("Given keys array must have same length as given values array.");
|
|
3181
3181
|
if (V === 0) return I({ numFailures: 0, failures: {}, results: [], lastResult: void 0 });
|
|
3182
3182
|
function ie(Fe) {
|
|
3183
3183
|
++Ue, yt(Fe);
|
|
3184
3184
|
}
|
|
3185
|
-
var
|
|
3185
|
+
var ue = [], ce = [], Ue = 0;
|
|
3186
3186
|
if (E === "deleteRange") {
|
|
3187
|
-
if (T.type === 4) return I({ numFailures: Ue, failures:
|
|
3188
|
-
T.type === 3 ?
|
|
3187
|
+
if (T.type === 4) return I({ numFailures: Ue, failures: ce, results: [], lastResult: void 0 });
|
|
3188
|
+
T.type === 3 ? ue.push(L = N.clear()) : ue.push(L = N.delete(r(T)));
|
|
3189
3189
|
} else {
|
|
3190
3190
|
var K = U ? K ? [S, P] : [S, null] : [P, null], ae = K[0], ze = K[1];
|
|
3191
|
-
if (U) for (var Me = 0; Me < V; ++Me)
|
|
3192
|
-
else for (Me = 0; Me < V; ++Me)
|
|
3191
|
+
if (U) for (var Me = 0; Me < V; ++Me) ue.push(L = ze && ze[Me] !== void 0 ? N[E](ae[Me], ze[Me]) : N[E](ae[Me])), L.onerror = ie;
|
|
3192
|
+
else for (Me = 0; Me < V; ++Me) ue.push(L = N[E](ae[Me])), L.onerror = ie;
|
|
3193
3193
|
}
|
|
3194
3194
|
function rr(Fe) {
|
|
3195
|
-
Fe = Fe.target.result,
|
|
3196
|
-
return Kn.error != null && (
|
|
3197
|
-
}), I({ numFailures: Ue, failures:
|
|
3195
|
+
Fe = Fe.target.result, ue.forEach(function(Kn, Hr) {
|
|
3196
|
+
return Kn.error != null && (ce[Hr] = Kn.error);
|
|
3197
|
+
}), I({ numFailures: Ue, failures: ce, results: E === "delete" ? P : ue.map(function(Kn) {
|
|
3198
3198
|
return Kn.result;
|
|
3199
3199
|
}), lastResult: Fe });
|
|
3200
3200
|
}
|
|
3201
|
-
|
|
3201
|
+
L.onerror = function(Fe) {
|
|
3202
3202
|
ie(Fe), rr(Fe);
|
|
3203
|
-
},
|
|
3203
|
+
}, L.onsuccess = rr;
|
|
3204
3204
|
});
|
|
3205
3205
|
}, getMany: function(_) {
|
|
3206
3206
|
var m = _.trans, E = _.keys;
|
|
3207
3207
|
return new Promise(function(P, S) {
|
|
3208
3208
|
P = _e(P);
|
|
3209
|
-
for (var T, I = m.objectStore(g),
|
|
3210
|
-
|
|
3211
|
-
}, V = nn(S), ie = 0; ie <
|
|
3209
|
+
for (var T, I = m.objectStore(g), F = E.length, N = new Array(F), K = 0, U = 0, L = function(ue) {
|
|
3210
|
+
ue = ue.target, N[ue._pos] = ue.result, ++U === K && P(N);
|
|
3211
|
+
}, V = nn(S), ie = 0; ie < F; ++ie) E[ie] != null && ((T = I.get(E[ie]))._pos = ie, T.onsuccess = L, T.onerror = V, ++K);
|
|
3212
3212
|
K === 0 && P(N);
|
|
3213
3213
|
});
|
|
3214
3214
|
}, get: function(_) {
|
|
@@ -3223,27 +3223,27 @@ function bc() {
|
|
|
3223
3223
|
}, query: (p = y, function(_) {
|
|
3224
3224
|
return new Promise(function(m, E) {
|
|
3225
3225
|
m = _e(m);
|
|
3226
|
-
var P, S, T, K = _.trans, I = _.values,
|
|
3227
|
-
if (
|
|
3228
|
-
p ? ((N = I ? U.getAll(
|
|
3226
|
+
var P, S, T, K = _.trans, I = _.values, F = _.limit, L = _.query, N = F === 1 / 0 ? void 0 : F, U = L.index, L = L.range, K = K.objectStore(g), U = U.isPrimaryKey ? K : K.index(U.name), L = r(L);
|
|
3227
|
+
if (F === 0) return m({ result: [] });
|
|
3228
|
+
p ? ((N = I ? U.getAll(L, N) : U.getAllKeys(L, N)).onsuccess = function(V) {
|
|
3229
3229
|
return m({ result: V.target.result });
|
|
3230
|
-
}, N.onerror = nn(E)) : (P = 0, S = !I && "openKeyCursor" in U ? U.openKeyCursor(
|
|
3230
|
+
}, N.onerror = nn(E)) : (P = 0, S = !I && "openKeyCursor" in U ? U.openKeyCursor(L) : U.openCursor(L), T = [], S.onsuccess = function(V) {
|
|
3231
3231
|
var ie = S.result;
|
|
3232
|
-
return ie ? (T.push(I ? ie.value : ie.primaryKey), ++P ===
|
|
3232
|
+
return ie ? (T.push(I ? ie.value : ie.primaryKey), ++P === F ? m({ result: T }) : void ie.continue()) : m({ result: T });
|
|
3233
3233
|
}, S.onerror = nn(E));
|
|
3234
3234
|
});
|
|
3235
3235
|
}), openCursor: function(_) {
|
|
3236
3236
|
var m = _.trans, E = _.values, P = _.query, S = _.reverse, T = _.unique;
|
|
3237
|
-
return new Promise(function(I,
|
|
3237
|
+
return new Promise(function(I, F) {
|
|
3238
3238
|
I = _e(I);
|
|
3239
|
-
var U = P.index, N = P.range, K = m.objectStore(g), K = U.isPrimaryKey ? K : K.index(U.name), U = S ? T ? "prevunique" : "prev" : T ? "nextunique" : "next",
|
|
3240
|
-
|
|
3241
|
-
var ie,
|
|
3242
|
-
ae ? (ae.___id = ++Ui, ae.done = !1, ie = ae.continue.bind(ae),
|
|
3239
|
+
var U = P.index, N = P.range, K = m.objectStore(g), K = U.isPrimaryKey ? K : K.index(U.name), U = S ? T ? "prevunique" : "prev" : T ? "nextunique" : "next", L = !E && "openKeyCursor" in K ? K.openKeyCursor(r(N), U) : K.openCursor(r(N), U);
|
|
3240
|
+
L.onerror = nn(F), L.onsuccess = _e(function(V) {
|
|
3241
|
+
var ie, ue, ce, Ue, ae = L.result;
|
|
3242
|
+
ae ? (ae.___id = ++Ui, ae.done = !1, ie = ae.continue.bind(ae), ue = (ue = ae.continuePrimaryKey) && ue.bind(ae), ce = ae.advance.bind(ae), Ue = function() {
|
|
3243
3243
|
throw new Error("Cursor not stopped");
|
|
3244
3244
|
}, ae.trans = m, ae.stop = ae.continue = ae.continuePrimaryKey = ae.advance = function() {
|
|
3245
3245
|
throw new Error("Cursor not started");
|
|
3246
|
-
}, ae.fail = _e(
|
|
3246
|
+
}, ae.fail = _e(F), ae.next = function() {
|
|
3247
3247
|
var ze = this, Me = 1;
|
|
3248
3248
|
return this.start(function() {
|
|
3249
3249
|
return Me-- ? ze.continue() : ze.stop();
|
|
@@ -3252,7 +3252,7 @@ function bc() {
|
|
|
3252
3252
|
});
|
|
3253
3253
|
}, ae.start = function(ze) {
|
|
3254
3254
|
function Me() {
|
|
3255
|
-
if (
|
|
3255
|
+
if (L.result) try {
|
|
3256
3256
|
ze();
|
|
3257
3257
|
} catch (Fe) {
|
|
3258
3258
|
ae.fail(Fe);
|
|
@@ -3262,20 +3262,20 @@ function bc() {
|
|
|
3262
3262
|
}, ae.stop();
|
|
3263
3263
|
}
|
|
3264
3264
|
var rr = new Promise(function(Fe, Kn) {
|
|
3265
|
-
Fe = _e(Fe),
|
|
3265
|
+
Fe = _e(Fe), L.onerror = nn(Kn), ae.fail = Kn, ae.stop = function(Hr) {
|
|
3266
3266
|
ae.stop = ae.continue = ae.continuePrimaryKey = ae.advance = Ue, Fe(Hr);
|
|
3267
3267
|
};
|
|
3268
3268
|
});
|
|
3269
|
-
return
|
|
3270
|
-
|
|
3271
|
-
}), ae.continue = ie, ae.continuePrimaryKey =
|
|
3269
|
+
return L.onsuccess = _e(function(Fe) {
|
|
3270
|
+
L.onsuccess = Me, Me();
|
|
3271
|
+
}), ae.continue = ie, ae.continuePrimaryKey = ue, ae.advance = ce, Me(), rr;
|
|
3272
3272
|
}, I(ae)) : I(null);
|
|
3273
|
-
},
|
|
3273
|
+
}, F);
|
|
3274
3274
|
});
|
|
3275
3275
|
}, count: function(_) {
|
|
3276
3276
|
var m = _.query, E = _.trans, P = m.index, S = m.range;
|
|
3277
3277
|
return new Promise(function(T, I) {
|
|
3278
|
-
var
|
|
3278
|
+
var F = E.objectStore(g), N = P.isPrimaryKey ? F : F.index(P.name), F = r(S), N = F ? N.count(F) : N.count();
|
|
3279
3279
|
N.onsuccess = _e(function(K) {
|
|
3280
3280
|
return T(K.target.result);
|
|
3281
3281
|
}), N.onerror = nn(I);
|
|
@@ -3327,7 +3327,7 @@ function bc() {
|
|
|
3327
3327
|
(!c || "value" in c && c.value === void 0) && (u === e.Transaction.prototype || u instanceof e.Transaction ? D(u, i, { get: function() {
|
|
3328
3328
|
return this.table(i);
|
|
3329
3329
|
}, set: function(v) {
|
|
3330
|
-
|
|
3330
|
+
M(this, i, { value: v, writable: !0, configurable: !0, enumerable: !0 });
|
|
3331
3331
|
} }) : u[i] = new e.Table(i, o));
|
|
3332
3332
|
});
|
|
3333
3333
|
});
|
|
@@ -3361,24 +3361,24 @@ function bc() {
|
|
|
3361
3361
|
Rr(g, U[0], U[1].primKey, U[1].indexes);
|
|
3362
3362
|
}), T.change.forEach(function(U) {
|
|
3363
3363
|
if (U.recreate) throw new X.Upgrade("Not yet support for changing primary key");
|
|
3364
|
-
var
|
|
3364
|
+
var L = g.objectStore(U.name);
|
|
3365
3365
|
U.add.forEach(function(V) {
|
|
3366
|
-
return Wt(
|
|
3366
|
+
return Wt(L, V);
|
|
3367
3367
|
}), U.change.forEach(function(V) {
|
|
3368
|
-
|
|
3368
|
+
L.deleteIndex(V.name), Wt(L, V);
|
|
3369
3369
|
}), U.del.forEach(function(V) {
|
|
3370
|
-
return
|
|
3370
|
+
return L.deleteIndex(V);
|
|
3371
3371
|
});
|
|
3372
3372
|
});
|
|
3373
3373
|
var I = E._cfg.contentUpgrade;
|
|
3374
3374
|
if (I && E._cfg.version > x) {
|
|
3375
3375
|
Vt(h, g), p._memoizedTables = {};
|
|
3376
|
-
var
|
|
3376
|
+
var F = Pe(S);
|
|
3377
3377
|
T.del.forEach(function(U) {
|
|
3378
|
-
|
|
3379
|
-
}), jr(h, [h.Transaction.prototype]), Ht(h, [h.Transaction.prototype], w(
|
|
3378
|
+
F[U] = P[U];
|
|
3379
|
+
}), jr(h, [h.Transaction.prototype]), Ht(h, [h.Transaction.prototype], w(F), F), p.schema = F;
|
|
3380
3380
|
var N, K = qn(I);
|
|
3381
|
-
return K &&
|
|
3381
|
+
return K && Q(), T = B.follow(function() {
|
|
3382
3382
|
var U;
|
|
3383
3383
|
(N = I(p)) && K && (U = oe.bind(null, null), N.then(U, U));
|
|
3384
3384
|
}), N && typeof N.then == "function" ? B.resolve(N) : T.then(function() {
|
|
@@ -3387,8 +3387,8 @@ function bc() {
|
|
|
3387
3387
|
}
|
|
3388
3388
|
}), _.push(function(P) {
|
|
3389
3389
|
var S, T, I = E._cfg.dbschema;
|
|
3390
|
-
S = I, T = P, [].slice.call(T.db.objectStoreNames).forEach(function(
|
|
3391
|
-
return S[
|
|
3390
|
+
S = I, T = P, [].slice.call(T.db.objectStoreNames).forEach(function(F) {
|
|
3391
|
+
return S[F] == null && T.db.deleteObjectStore(F);
|
|
3392
3392
|
}), jr(h, [h.Transaction.prototype]), Ht(h, [h.Transaction.prototype], h._storeNames, h._dbSchema), p.schema = h._dbSchema;
|
|
3393
3393
|
}), _.push(function(P) {
|
|
3394
3394
|
h.idbdb.objectStoreNames.contains("$meta") && (Math.ceil(h.idbdb.version / 10) === E._cfg.version ? (h.idbdb.deleteObjectStore("$meta"), delete h._dbSchema.$meta, h._storeNames = h._storeNames.filter(function(S) {
|
|
@@ -3461,7 +3461,7 @@ function bc() {
|
|
|
3461
3461
|
}
|
|
3462
3462
|
function Yt(e, n, t) {
|
|
3463
3463
|
var r = {};
|
|
3464
|
-
return
|
|
3464
|
+
return W(n.objectStoreNames, 0).forEach(function(i) {
|
|
3465
3465
|
for (var o = t.objectStore(i), u = Sr(ka(y = o.keyPath), y || "", !0, !1, !!o.autoIncrement, y && typeof y != "string", !0), c = [], v = 0; v < o.indexNames.length; ++v) {
|
|
3466
3466
|
var b = o.index(o.indexNames[v]), y = b.keyPath, b = Sr(b.name, y, !!b.unique, !!b.multiEntry, !1, y && typeof y != "string", !1);
|
|
3467
3467
|
c.push(b);
|
|
@@ -3474,7 +3474,7 @@ function bc() {
|
|
|
3474
3474
|
var o = r[i], u = t.objectStore(o);
|
|
3475
3475
|
e._hasGetAll = "getAll" in u;
|
|
3476
3476
|
for (var c = 0; c < u.indexNames.length; ++c) {
|
|
3477
|
-
var v = u.indexNames[c], y = u.index(v).keyPath, b = typeof y == "string" ? y : "[" +
|
|
3477
|
+
var v = u.indexNames[c], y = u.index(v).keyPath, b = typeof y == "string" ? y : "[" + W(y).join("+") + "]";
|
|
3478
3478
|
!n[o] || (y = n[o].idxByName[b]) && (y.name = v, delete n[o].idxByName[b], n[o].idxByName[v] = y);
|
|
3479
3479
|
}
|
|
3480
3480
|
}
|
|
@@ -3669,10 +3669,10 @@ function bc() {
|
|
|
3669
3669
|
})) : (b.onerror = nn(p), m = m.oldVersion > Math.pow(2, 62) ? 0 : m.oldVersion, h = m < 1, e.idbdb = _.result, o && Gi(e, b), Yi(e, m / 10, b, p));
|
|
3670
3670
|
}, p), _.onsuccess = _e(function() {
|
|
3671
3671
|
b = null;
|
|
3672
|
-
var m, E, P, S, T, I = e.idbdb = _.result,
|
|
3673
|
-
if (0 <
|
|
3674
|
-
var N = I.transaction((S =
|
|
3675
|
-
if (n.autoSchema) E = I, P = N, (m = e).verno = E.version / 10, P = m._dbSchema = Yt(0, E, P), m._storeNames =
|
|
3672
|
+
var m, E, P, S, T, I = e.idbdb = _.result, F = W(I.objectStoreNames);
|
|
3673
|
+
if (0 < F.length) try {
|
|
3674
|
+
var N = I.transaction((S = F).length === 1 ? S[0] : S, "readonly");
|
|
3675
|
+
if (n.autoSchema) E = I, P = N, (m = e).verno = E.version / 10, P = m._dbSchema = Yt(0, E, P), m._storeNames = W(E.objectStoreNames, 0), Ht(m, [m._allTables], w(P), P);
|
|
3676
3676
|
else if (Gt(e, e._dbSchema, N), ((T = Tr(Yt(0, (T = e).idbdb, N), T._dbSchema)).add.length || T.change.some(function(K) {
|
|
3677
3677
|
return K.add.length || K.change.length;
|
|
3678
3678
|
})) && !o) return console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Dexie will add missing parts and increment native version number to workaround this."), I.close(), i = I.version + 1, o = !0, x(c());
|
|
@@ -3851,17 +3851,17 @@ function bc() {
|
|
|
3851
3851
|
if (!m) throw new Error("Keys missing");
|
|
3852
3852
|
return (h = h.type === "add" || h.type === "put" ? f(f({}, h), { keys: m }) : f({}, h)).type !== "delete" && (h.values = C([], h.values)), h.keys && (h.keys = C([], h.keys)), x = t, g = m, ((p = h).type === "add" ? Promise.resolve([]) : x.getMany({ trans: p.trans, keys: g, cache: "immutable" })).then(function(E) {
|
|
3853
3853
|
var P = m.map(function(S, T) {
|
|
3854
|
-
var I,
|
|
3855
|
-
return h.type === "delete" ? c.fire.call(U, S, K, _) : h.type === "add" || K === void 0 ? (I = v.fire.call(U, S, h.values[T], _), S == null && I != null && (h.keys[T] = S = I, r.outbound || ne(h.values[T], r.keyPath, S))) : (I = Br(K, h.values[T]), (
|
|
3856
|
-
q(N,
|
|
3854
|
+
var I, F, N, K = E[T], U = { onerror: null, onsuccess: null };
|
|
3855
|
+
return h.type === "delete" ? c.fire.call(U, S, K, _) : h.type === "add" || K === void 0 ? (I = v.fire.call(U, S, h.values[T], _), S == null && I != null && (h.keys[T] = S = I, r.outbound || ne(h.values[T], r.keyPath, S))) : (I = Br(K, h.values[T]), (F = y.fire.call(U, I, S, K, _)) && (N = h.values[T], Object.keys(F).forEach(function(L) {
|
|
3856
|
+
q(N, L) ? N[L] = F[L] : ne(N, L, F[L]);
|
|
3857
3857
|
}))), U;
|
|
3858
3858
|
});
|
|
3859
3859
|
return t.mutate(h).then(function(S) {
|
|
3860
|
-
for (var T = S.failures, I = S.results,
|
|
3860
|
+
for (var T = S.failures, I = S.results, F = S.numFailures, S = S.lastResult, N = 0; N < m.length; ++N) {
|
|
3861
3861
|
var K = (I || m)[N], U = P[N];
|
|
3862
3862
|
K == null ? U.onerror && U.onerror(T[N]) : U.onsuccess && U.onsuccess(h.type === "put" && E[N] ? h.values[N] : K);
|
|
3863
3863
|
}
|
|
3864
|
-
return { failures: T, results: I, numFailures:
|
|
3864
|
+
return { failures: T, results: I, numFailures: F, lastResult: S };
|
|
3865
3865
|
}).catch(function(S) {
|
|
3866
3866
|
return P.forEach(function(T) {
|
|
3867
3867
|
return T.onerror && T.onerror(S);
|
|
@@ -3918,37 +3918,37 @@ function bc() {
|
|
|
3918
3918
|
var i = e.table(r), o = i.schema, u = o.primaryKey, h = o.indexes, c = u.extractKey, v = u.outbound, y = u.autoIncrement && h.filter(function(p) {
|
|
3919
3919
|
return p.compound && p.keyPath.includes(u.keyPath);
|
|
3920
3920
|
}), b = f(f({}, i), { mutate: function(p) {
|
|
3921
|
-
function g(
|
|
3922
|
-
return
|
|
3921
|
+
function g(L) {
|
|
3922
|
+
return L = "idb://".concat(n, "/").concat(r, "/").concat(L), S[L] || (S[L] = new Ke());
|
|
3923
3923
|
}
|
|
3924
|
-
var _, m, E, P = p.trans, S = p.mutatedParts || (p.mutatedParts = {}), T = g(""), I = g(":dels"),
|
|
3925
|
-
return
|
|
3924
|
+
var _, m, E, P = p.trans, S = p.mutatedParts || (p.mutatedParts = {}), T = g(""), I = g(":dels"), F = p.type, U = p.type === "deleteRange" ? [p.range] : p.type === "delete" ? [p.keys] : p.values.length < 50 ? [qr(u, p).filter(function(L) {
|
|
3925
|
+
return L;
|
|
3926
3926
|
}), p.values] : [], N = U[0], K = U[1], U = p.trans._cache;
|
|
3927
|
-
return O(N) ? (T.addKeys(N), (U =
|
|
3928
|
-
var V = _(
|
|
3929
|
-
function ie(
|
|
3930
|
-
return
|
|
3927
|
+
return O(N) ? (T.addKeys(N), (U = F === "delete" || N.length === K.length ? Ra(N, U) : null) || I.addKeys(N), (U || K) && (_ = g, m = U, E = K, o.indexes.forEach(function(L) {
|
|
3928
|
+
var V = _(L.name || "");
|
|
3929
|
+
function ie(ce) {
|
|
3930
|
+
return ce != null ? L.extractKey(ce) : null;
|
|
3931
3931
|
}
|
|
3932
|
-
function
|
|
3933
|
-
return
|
|
3932
|
+
function ue(ce) {
|
|
3933
|
+
return L.multiEntry && O(ce) ? ce.forEach(function(Ue) {
|
|
3934
3934
|
return V.addKey(Ue);
|
|
3935
|
-
}) : V.addKey(
|
|
3935
|
+
}) : V.addKey(ce);
|
|
3936
3936
|
}
|
|
3937
|
-
(m || E).forEach(function(
|
|
3937
|
+
(m || E).forEach(function(ce, ze) {
|
|
3938
3938
|
var ae = m && ie(m[ze]), ze = E && ie(E[ze]);
|
|
3939
|
-
fe(ae, ze) !== 0 && (ae != null &&
|
|
3939
|
+
fe(ae, ze) !== 0 && (ae != null && ue(ae), ze != null && ue(ze));
|
|
3940
3940
|
});
|
|
3941
|
-
}))) : N ? (K = { from: (K = N.lower) !== null && K !== void 0 ? K : e.MIN_KEY, to: (K = N.upper) !== null && K !== void 0 ? K : e.MAX_KEY }, I.add(K), T.add(K)) : (T.add(t), I.add(t), o.indexes.forEach(function(
|
|
3942
|
-
return g(
|
|
3943
|
-
})), i.mutate(p).then(function(
|
|
3944
|
-
return !N || p.type !== "add" && p.type !== "put" || (T.addKeys(
|
|
3941
|
+
}))) : N ? (K = { from: (K = N.lower) !== null && K !== void 0 ? K : e.MIN_KEY, to: (K = N.upper) !== null && K !== void 0 ? K : e.MAX_KEY }, I.add(K), T.add(K)) : (T.add(t), I.add(t), o.indexes.forEach(function(L) {
|
|
3942
|
+
return g(L.name).add(t);
|
|
3943
|
+
})), i.mutate(p).then(function(L) {
|
|
3944
|
+
return !N || p.type !== "add" && p.type !== "put" || (T.addKeys(L.results), y && y.forEach(function(V) {
|
|
3945
3945
|
for (var ie = p.values.map(function(ae) {
|
|
3946
3946
|
return V.extractKey(ae);
|
|
3947
|
-
}),
|
|
3947
|
+
}), ue = V.keyPath.findIndex(function(ae) {
|
|
3948
3948
|
return ae === u.keyPath;
|
|
3949
|
-
}),
|
|
3949
|
+
}), ce = 0, Ue = L.results.length; ce < Ue; ++ce) ie[ce][ue] = L.results[ce];
|
|
3950
3950
|
g(V.name).addKeys(ie);
|
|
3951
|
-
})), P.mutatedParts = Qt(P.mutatedParts || {}, S),
|
|
3951
|
+
})), P.mutatedParts = Qt(P.mutatedParts || {}, S), L;
|
|
3952
3952
|
});
|
|
3953
3953
|
} }), h = function(g) {
|
|
3954
3954
|
var _ = g.query, g = _.index, _ = _.range;
|
|
@@ -3976,14 +3976,14 @@ function bc() {
|
|
|
3976
3976
|
var U = g.values ? K.result.map(c) : K.result;
|
|
3977
3977
|
(g.values ? S : T).addKeys(U);
|
|
3978
3978
|
} else if (p === "openCursor") {
|
|
3979
|
-
var
|
|
3980
|
-
return
|
|
3981
|
-
return T.addKey(
|
|
3979
|
+
var L = K, V = g.values;
|
|
3980
|
+
return L && Object.create(L, { key: { get: function() {
|
|
3981
|
+
return T.addKey(L.primaryKey), L.key;
|
|
3982
3982
|
} }, primaryKey: { get: function() {
|
|
3983
|
-
var ie =
|
|
3983
|
+
var ie = L.primaryKey;
|
|
3984
3984
|
return T.addKey(ie), ie;
|
|
3985
3985
|
} }, value: { get: function() {
|
|
3986
|
-
return V && S.addKey(
|
|
3986
|
+
return V && S.addKey(L.primaryKey), L.value;
|
|
3987
3987
|
} } });
|
|
3988
3988
|
}
|
|
3989
3989
|
return K;
|
|
@@ -4017,20 +4017,20 @@ function bc() {
|
|
|
4017
4017
|
var _ = p, m = [];
|
|
4018
4018
|
if (g.type === "add" || g.type === "put") for (var E = new Ke(), P = g.values.length - 1; 0 <= P; --P) {
|
|
4019
4019
|
var S, T = g.values[P], I = y(T);
|
|
4020
|
-
E.hasKey(I) || (S = b(T), (c && O(S) ? S.some(function(
|
|
4021
|
-
return $r(
|
|
4020
|
+
E.hasKey(I) || (S = b(T), (c && O(S) ? S.some(function(L) {
|
|
4021
|
+
return $r(L, v);
|
|
4022
4022
|
}) : $r(S, v)) && (E.addKey(I), m.push(T)));
|
|
4023
4023
|
}
|
|
4024
4024
|
switch (g.type) {
|
|
4025
4025
|
case "add":
|
|
4026
|
-
var
|
|
4026
|
+
var F = new Ke().addKeys(n.values ? p.map(function(V) {
|
|
4027
4027
|
return y(V);
|
|
4028
4028
|
}) : p), _ = p.concat(n.values ? m.filter(function(V) {
|
|
4029
|
-
return V = y(V), !
|
|
4029
|
+
return V = y(V), !F.hasKey(V) && (F.addKey(V), !0);
|
|
4030
4030
|
}) : m.map(function(V) {
|
|
4031
4031
|
return y(V);
|
|
4032
4032
|
}).filter(function(V) {
|
|
4033
|
-
return !
|
|
4033
|
+
return !F.hasKey(V) && (F.addKey(V), !0);
|
|
4034
4034
|
}));
|
|
4035
4035
|
break;
|
|
4036
4036
|
case "put":
|
|
@@ -4106,16 +4106,16 @@ function bc() {
|
|
|
4106
4106
|
var g = e.table(x), _ = p.optimisticOps.filter(function(V) {
|
|
4107
4107
|
return V.trans === c;
|
|
4108
4108
|
});
|
|
4109
|
-
if (c._explicit && v && c.mutatedParts) for (var m = 0, E = Object.values(p.queries.query); m < E.length; m++) for (var P = 0, S = (
|
|
4109
|
+
if (c._explicit && v && c.mutatedParts) for (var m = 0, E = Object.values(p.queries.query); m < E.length; m++) for (var P = 0, S = (F = E[m]).slice(); P < S.length; P++) Kr((N = S[P]).obsSet, c.mutatedParts) && (Xe(F, N), N.subscribers.forEach(function(V) {
|
|
4110
4110
|
return y.add(V);
|
|
4111
4111
|
}));
|
|
4112
4112
|
else if (0 < _.length) {
|
|
4113
4113
|
p.optimisticOps = p.optimisticOps.filter(function(V) {
|
|
4114
4114
|
return V.trans !== c;
|
|
4115
4115
|
});
|
|
4116
|
-
for (var T = 0, I = Object.values(p.queries.query); T < I.length; T++) for (var
|
|
4116
|
+
for (var T = 0, I = Object.values(p.queries.query); T < I.length; T++) for (var F, N, K, U = 0, L = (F = I[T]).slice(); U < L.length; U++) (N = L[U]).res != null && c.mutatedParts && (v && !N.dirty ? (K = Object.isFrozen(N.res), K = Na(N.res, N.req, _, g, N, K), N.dirty ? (Xe(F, N), N.subscribers.forEach(function(V) {
|
|
4117
4117
|
return y.add(V);
|
|
4118
|
-
})) : K !== N.res && (N.res = K, N.promise = B.resolve({ result: K }))) : (N.dirty && Xe(
|
|
4118
|
+
})) : K !== N.res && (N.res = K, N.promise = B.resolve({ result: K }))) : (N.dirty && Xe(F, N), N.subscribers.forEach(function(V) {
|
|
4119
4119
|
return y.add(V);
|
|
4120
4120
|
})));
|
|
4121
4121
|
}
|
|
@@ -4323,7 +4323,7 @@ function bc() {
|
|
|
4323
4323
|
})) : be(S);
|
|
4324
4324
|
}
|
|
4325
4325
|
var E, P = qn(g);
|
|
4326
|
-
return P &&
|
|
4326
|
+
return P && Q(), _ = B.follow(function() {
|
|
4327
4327
|
var S;
|
|
4328
4328
|
(E = g.call(m, m)) && (P ? (S = oe.bind(null, null), E.then(S, S)) : typeof E.next == "function" && typeof E.throw == "function" && (E = Fr(E)));
|
|
4329
4329
|
}, _), (E && typeof E.then == "function" ? B.resolve(E).then(function(S) {
|
|
@@ -4456,7 +4456,7 @@ function bc() {
|
|
|
4456
4456
|
!c && tr.indexedDB && (v = {}, _ = {}, u && u.abort(), u = new AbortController(), E = function(P) {
|
|
4457
4457
|
var S = fn();
|
|
4458
4458
|
try {
|
|
4459
|
-
o &&
|
|
4459
|
+
o && Q();
|
|
4460
4460
|
var T = $(e, P);
|
|
4461
4461
|
return T = o ? T.finally(oe) : T;
|
|
4462
4462
|
} finally {
|
|
@@ -4547,7 +4547,7 @@ function bc() {
|
|
|
4547
4547
|
typeof n == "string" ? ne(e, n, void 0) : "length" in n && [].map.call(n, function(t) {
|
|
4548
4548
|
ne(e, t, void 0);
|
|
4549
4549
|
});
|
|
4550
|
-
}, shallowClone: Pe, deepClone: Re, getObjectDiff: Br, cmp: fe, asap:
|
|
4550
|
+
}, shallowClone: Pe, deepClone: Re, getObjectDiff: Br, cmp: fe, asap: te, minKey: -1 / 0, addons: [], connections: gn, errnames: En, dependencies: tr, cache: In, semVer: "4.0.11", version: "4.0.11".split(".").map(function(e) {
|
|
4551
4551
|
return parseInt(e);
|
|
4552
4552
|
}).reduce(function(e, n, t) {
|
|
4553
4553
|
return e + n / Math.pow(10, 2 * t);
|
|
@@ -5363,18 +5363,21 @@ const fa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
|
|
|
5363
5363
|
`candidate-${f}`
|
|
5364
5364
|
)) });
|
|
5365
5365
|
}, sm = ({ recognizerInitialized: a, recognizerProgress: s, onKey: l, onExit: f }) => {
|
|
5366
|
-
const C = qe(null), k = qe(null), w = qe(null), O = qe(!1), [j, z] = Be([]),
|
|
5367
|
-
an(() =>
|
|
5368
|
-
|
|
5366
|
+
const C = qe(null), k = qe(null), w = qe(null), O = qe(!1), [j, z] = Be([]), H = qe(yr());
|
|
5367
|
+
an(() => {
|
|
5368
|
+
const te = H.current;
|
|
5369
|
+
return () => {
|
|
5370
|
+
te.stop();
|
|
5371
|
+
};
|
|
5369
5372
|
}, []);
|
|
5370
5373
|
const q = zn(async () => {
|
|
5371
5374
|
if (!w.current || w.current.getStrokeData().length === 0 || O.current)
|
|
5372
5375
|
return;
|
|
5373
|
-
const
|
|
5374
|
-
if (
|
|
5376
|
+
const te = ua();
|
|
5377
|
+
if (te) {
|
|
5375
5378
|
O.current = !0;
|
|
5376
5379
|
try {
|
|
5377
|
-
const he = [...w.current.getStrokeData()], ne = await
|
|
5380
|
+
const he = [...w.current.getStrokeData()], ne = await te.recognize(he);
|
|
5378
5381
|
z(ne);
|
|
5379
5382
|
} catch (he) {
|
|
5380
5383
|
console.error("识别笔迹失败:", he);
|
|
@@ -5387,7 +5390,7 @@ const fa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
|
|
|
5387
5390
|
C.current && (w.current && w.current.destroy(), w.current = new Jy(C.current, {
|
|
5388
5391
|
onDrawEnd: q
|
|
5389
5392
|
}));
|
|
5390
|
-
}, [q]), [
|
|
5393
|
+
}, [q]), [M, D] = Ni(k);
|
|
5391
5394
|
St(() => {
|
|
5392
5395
|
if (D && a)
|
|
5393
5396
|
return G(), () => {
|
|
@@ -5397,21 +5400,21 @@ const fa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
|
|
|
5397
5400
|
function Z() {
|
|
5398
5401
|
w.current && w.current.clearCanvas();
|
|
5399
5402
|
}
|
|
5400
|
-
function ee(
|
|
5401
|
-
l({ key:
|
|
5403
|
+
function ee(te) {
|
|
5404
|
+
l({ key: te }), z([]), Z();
|
|
5402
5405
|
}
|
|
5403
|
-
function
|
|
5406
|
+
function J(te, he) {
|
|
5404
5407
|
var ne, Pe;
|
|
5405
|
-
|
|
5408
|
+
te.preventDefault(), (Pe = (ne = te.currentTarget).setPointerCapture) == null || Pe.call(ne, te.pointerId), H.current.start(he);
|
|
5406
5409
|
}
|
|
5407
|
-
function
|
|
5408
|
-
|
|
5410
|
+
function W() {
|
|
5411
|
+
H.current.stop();
|
|
5409
5412
|
}
|
|
5410
|
-
function je(
|
|
5411
|
-
|
|
5413
|
+
function je(te, he) {
|
|
5414
|
+
te.preventDefault(), he();
|
|
5412
5415
|
}
|
|
5413
|
-
function ge(
|
|
5414
|
-
|
|
5416
|
+
function ge(te) {
|
|
5417
|
+
te.preventDefault();
|
|
5415
5418
|
}
|
|
5416
5419
|
return /* @__PURE__ */ A.jsxs("div", { className: "handwriting-input", children: [
|
|
5417
5420
|
/* @__PURE__ */ A.jsx(Mi, { candidates: j, onSelect: ee }),
|
|
@@ -5421,10 +5424,10 @@ const fa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
|
|
|
5421
5424
|
"button",
|
|
5422
5425
|
{
|
|
5423
5426
|
className: "handwriting-btn handwriting-btn--function",
|
|
5424
|
-
onPointerDown: (
|
|
5425
|
-
onPointerUp:
|
|
5426
|
-
onPointerLeave:
|
|
5427
|
-
onPointerCancel:
|
|
5427
|
+
onPointerDown: (te) => J(te, () => l({ key: "。" })),
|
|
5428
|
+
onPointerUp: W,
|
|
5429
|
+
onPointerLeave: W,
|
|
5430
|
+
onPointerCancel: W,
|
|
5428
5431
|
onContextMenu: ge,
|
|
5429
5432
|
children: "。"
|
|
5430
5433
|
}
|
|
@@ -5433,10 +5436,10 @@ const fa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
|
|
|
5433
5436
|
"button",
|
|
5434
5437
|
{
|
|
5435
5438
|
className: "handwriting-btn handwriting-btn--function",
|
|
5436
|
-
onPointerDown: (
|
|
5437
|
-
onPointerUp:
|
|
5438
|
-
onPointerLeave:
|
|
5439
|
-
onPointerCancel:
|
|
5439
|
+
onPointerDown: (te) => J(te, () => l({ key: "?" })),
|
|
5440
|
+
onPointerUp: W,
|
|
5441
|
+
onPointerLeave: W,
|
|
5442
|
+
onPointerCancel: W,
|
|
5440
5443
|
onContextMenu: ge,
|
|
5441
5444
|
children: "?"
|
|
5442
5445
|
}
|
|
@@ -5445,10 +5448,10 @@ const fa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
|
|
|
5445
5448
|
"button",
|
|
5446
5449
|
{
|
|
5447
5450
|
className: "handwriting-btn handwriting-btn--function",
|
|
5448
|
-
onPointerDown: (
|
|
5449
|
-
onPointerUp:
|
|
5450
|
-
onPointerLeave:
|
|
5451
|
-
onPointerCancel:
|
|
5451
|
+
onPointerDown: (te) => J(te, () => l({ key: "!" })),
|
|
5452
|
+
onPointerUp: W,
|
|
5453
|
+
onPointerLeave: W,
|
|
5454
|
+
onPointerCancel: W,
|
|
5452
5455
|
onContextMenu: ge,
|
|
5453
5456
|
children: "!"
|
|
5454
5457
|
}
|
|
@@ -5457,10 +5460,10 @@ const fa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
|
|
|
5457
5460
|
"button",
|
|
5458
5461
|
{
|
|
5459
5462
|
className: "handwriting-btn handwriting-btn--function",
|
|
5460
|
-
onPointerDown: (
|
|
5461
|
-
onPointerUp:
|
|
5462
|
-
onPointerLeave:
|
|
5463
|
-
onPointerCancel:
|
|
5463
|
+
onPointerDown: (te) => J(te, () => l({ key: "、" })),
|
|
5464
|
+
onPointerUp: W,
|
|
5465
|
+
onPointerLeave: W,
|
|
5466
|
+
onPointerCancel: W,
|
|
5464
5467
|
onContextMenu: ge,
|
|
5465
5468
|
children: "、"
|
|
5466
5469
|
}
|
|
@@ -5494,10 +5497,10 @@ const fa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
|
|
|
5494
5497
|
"button",
|
|
5495
5498
|
{
|
|
5496
5499
|
className: "handwriting-btn handwriting-btn--function",
|
|
5497
|
-
onPointerDown: (
|
|
5498
|
-
onPointerUp:
|
|
5499
|
-
onPointerLeave:
|
|
5500
|
-
onPointerCancel:
|
|
5500
|
+
onPointerDown: (te) => J(te, () => l({ key: "delete", isControl: !0 })),
|
|
5501
|
+
onPointerUp: W,
|
|
5502
|
+
onPointerLeave: W,
|
|
5503
|
+
onPointerCancel: W,
|
|
5501
5504
|
onContextMenu: ge,
|
|
5502
5505
|
children: /* @__PURE__ */ A.jsx("img", { src: fa, alt: "删除" })
|
|
5503
5506
|
}
|
|
@@ -5506,7 +5509,7 @@ const fa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
|
|
|
5506
5509
|
"button",
|
|
5507
5510
|
{
|
|
5508
5511
|
className: "handwriting-btn handwriting-btn--function",
|
|
5509
|
-
onPointerDown: (
|
|
5512
|
+
onPointerDown: (te) => je(te, f),
|
|
5510
5513
|
onContextMenu: ge,
|
|
5511
5514
|
children: "返回"
|
|
5512
5515
|
}
|
|
@@ -5515,10 +5518,10 @@ const fa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
|
|
|
5515
5518
|
"button",
|
|
5516
5519
|
{
|
|
5517
5520
|
className: "handwriting-btn handwriting-btn--function",
|
|
5518
|
-
onPointerDown: (
|
|
5519
|
-
onPointerUp:
|
|
5520
|
-
onPointerLeave:
|
|
5521
|
-
onPointerCancel:
|
|
5521
|
+
onPointerDown: (te) => J(te, () => l({ key: "," })),
|
|
5522
|
+
onPointerUp: W,
|
|
5523
|
+
onPointerLeave: W,
|
|
5524
|
+
onPointerCancel: W,
|
|
5522
5525
|
onContextMenu: ge,
|
|
5523
5526
|
children: ","
|
|
5524
5527
|
}
|
|
@@ -5527,10 +5530,10 @@ const fa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
|
|
|
5527
5530
|
"button",
|
|
5528
5531
|
{
|
|
5529
5532
|
className: "handwriting-btn handwriting-btn--function",
|
|
5530
|
-
onPointerDown: (
|
|
5531
|
-
onPointerUp:
|
|
5532
|
-
onPointerLeave:
|
|
5533
|
-
onPointerCancel:
|
|
5533
|
+
onPointerDown: (te) => J(te, () => l({ key: "enter", isControl: !0 })),
|
|
5534
|
+
onPointerUp: W,
|
|
5535
|
+
onPointerLeave: W,
|
|
5536
|
+
onPointerCancel: W,
|
|
5534
5537
|
onContextMenu: ge,
|
|
5535
5538
|
children: /* @__PURE__ */ A.jsx("img", { src: ha, alt: "回车" })
|
|
5536
5539
|
}
|
|
@@ -5552,14 +5555,14 @@ const fa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
|
|
|
5552
5555
|
}, fm = ({ currentPinyin: a, onInput: s, setCurrentPinyin: l }) => {
|
|
5553
5556
|
const f = rn(() => new Xy(), []), [C, k] = Be([]), [w, O] = Be(!1);
|
|
5554
5557
|
an(() => {
|
|
5555
|
-
async function
|
|
5558
|
+
async function H() {
|
|
5556
5559
|
k(await f.processInput(a));
|
|
5557
5560
|
}
|
|
5558
|
-
|
|
5561
|
+
H();
|
|
5559
5562
|
}, [a, f]);
|
|
5560
5563
|
const j = rn(() => C.slice(0, 30), [C]);
|
|
5561
|
-
function z(
|
|
5562
|
-
f.selectCandidate(
|
|
5564
|
+
function z(H) {
|
|
5565
|
+
f.selectCandidate(H), s(H), l(""), O(!1);
|
|
5563
5566
|
}
|
|
5564
5567
|
return /* @__PURE__ */ A.jsxs("div", { className: "zhk-candidate", children: [
|
|
5565
5568
|
/* @__PURE__ */ A.jsxs("div", { className: "zhk-candidate__container", children: [
|
|
@@ -5593,17 +5596,20 @@ const fa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
|
|
|
5593
5596
|
] });
|
|
5594
5597
|
}, hm = ({ enableHandwriting: a, mode: s, onKey: l, setMode: f }) => {
|
|
5595
5598
|
const [C, k] = Be(!1), [w, O] = Be(""), j = qe(yr());
|
|
5596
|
-
an(() =>
|
|
5597
|
-
j.current
|
|
5599
|
+
an(() => {
|
|
5600
|
+
const se = j.current;
|
|
5601
|
+
return () => {
|
|
5602
|
+
se.stop();
|
|
5603
|
+
};
|
|
5598
5604
|
}, []);
|
|
5599
|
-
const z = rn(() => s === "zh", [s]),
|
|
5600
|
-
function q(
|
|
5601
|
-
l({ key:
|
|
5605
|
+
const z = rn(() => s === "zh", [s]), H = rn(() => z ? !0 : C, [z, C]);
|
|
5606
|
+
function q(se, Ce = !1) {
|
|
5607
|
+
l({ key: se, isControl: Ce });
|
|
5602
5608
|
}
|
|
5603
5609
|
function G() {
|
|
5604
5610
|
z ? f("hand") : k(!C);
|
|
5605
5611
|
}
|
|
5606
|
-
function
|
|
5612
|
+
function M() {
|
|
5607
5613
|
f("num");
|
|
5608
5614
|
}
|
|
5609
5615
|
function D() {
|
|
@@ -5614,78 +5620,78 @@ const fa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
|
|
|
5614
5620
|
["a", "s", "d", "f", "g", "h", "j", "k", "l"],
|
|
5615
5621
|
["z", "x", "c", "v", "b", "n", "m"]
|
|
5616
5622
|
];
|
|
5617
|
-
function
|
|
5623
|
+
function J() {
|
|
5618
5624
|
if (s === "zh" && w) {
|
|
5619
5625
|
O(w.slice(0, -1));
|
|
5620
5626
|
return;
|
|
5621
5627
|
}
|
|
5622
5628
|
q("delete", !0);
|
|
5623
5629
|
}
|
|
5624
|
-
function
|
|
5630
|
+
function W(se) {
|
|
5625
5631
|
if (s === "zh") {
|
|
5626
|
-
O(w +
|
|
5632
|
+
O(w + se);
|
|
5627
5633
|
return;
|
|
5628
5634
|
}
|
|
5629
|
-
const Ce = C ?
|
|
5635
|
+
const Ce = C ? se.toUpperCase() : se;
|
|
5630
5636
|
q(Ce);
|
|
5631
5637
|
}
|
|
5632
5638
|
function je() {
|
|
5633
5639
|
f(s === "zh" ? "en" : "zh");
|
|
5634
5640
|
}
|
|
5635
|
-
const ge = rn(() => a ? "手写" : "-", [a]),
|
|
5636
|
-
function he(
|
|
5641
|
+
const ge = rn(() => a ? "手写" : "-", [a]), te = rn(() => !a, [a]);
|
|
5642
|
+
function he(se, Ce) {
|
|
5637
5643
|
var Te, pe;
|
|
5638
|
-
|
|
5644
|
+
se.preventDefault(), (pe = (Te = se.currentTarget).setPointerCapture) == null || pe.call(Te, se.pointerId), j.current.start(Ce);
|
|
5639
5645
|
}
|
|
5640
5646
|
function ne() {
|
|
5641
5647
|
j.current.stop();
|
|
5642
5648
|
}
|
|
5643
|
-
function Pe(
|
|
5644
|
-
|
|
5649
|
+
function Pe(se) {
|
|
5650
|
+
se.preventDefault();
|
|
5645
5651
|
}
|
|
5646
5652
|
return /* @__PURE__ */ A.jsxs("div", { className: "zhk-base", children: [
|
|
5647
5653
|
/* @__PURE__ */ A.jsx("div", { className: "zhk-base__row", children: s === "zh" ? /* @__PURE__ */ A.jsx(
|
|
5648
5654
|
fm,
|
|
5649
5655
|
{
|
|
5650
5656
|
currentPinyin: w,
|
|
5651
|
-
onInput: (
|
|
5657
|
+
onInput: (se) => q(se, !1),
|
|
5652
5658
|
onKey: l,
|
|
5653
5659
|
setCurrentPinyin: O
|
|
5654
5660
|
}
|
|
5655
|
-
) : Z.map((
|
|
5661
|
+
) : Z.map((se) => /* @__PURE__ */ A.jsx(
|
|
5656
5662
|
"button",
|
|
5657
5663
|
{
|
|
5658
5664
|
className: "zhk-base__key zhk-base__key--letter",
|
|
5659
|
-
onPointerDown: (Ce) => he(Ce, () =>
|
|
5665
|
+
onPointerDown: (Ce) => he(Ce, () => W(se)),
|
|
5660
5666
|
onPointerUp: ne,
|
|
5661
5667
|
onPointerLeave: ne,
|
|
5662
5668
|
onPointerCancel: ne,
|
|
5663
5669
|
onContextMenu: Pe,
|
|
5664
|
-
children:
|
|
5670
|
+
children: se
|
|
5665
5671
|
},
|
|
5666
|
-
`number-${
|
|
5672
|
+
`number-${se}`
|
|
5667
5673
|
)) }),
|
|
5668
|
-
ee.map((
|
|
5674
|
+
ee.map((se, Ce) => /* @__PURE__ */ A.jsxs("div", { className: "zhk-base__row", children: [
|
|
5669
5675
|
Ce === 2 && /* @__PURE__ */ A.jsx(
|
|
5670
5676
|
"button",
|
|
5671
5677
|
{
|
|
5672
|
-
className: `zhk-base__key zhk-base__key--function zhk-base__key--shift ${!z && C ? "zhk-base__key--active" : ""} ${z &&
|
|
5673
|
-
disabled: z &&
|
|
5678
|
+
className: `zhk-base__key zhk-base__key--function zhk-base__key--shift ${!z && C ? "zhk-base__key--active" : ""} ${z && te ? "zhk-base__key--disabled" : ""}`,
|
|
5679
|
+
disabled: z && te,
|
|
5674
5680
|
onClick: G,
|
|
5675
5681
|
onContextMenu: Pe,
|
|
5676
5682
|
children: z ? ge : /* @__PURE__ */ A.jsx("img", { src: um, className: "zhk-base__key-icon", alt: "Shift" })
|
|
5677
5683
|
}
|
|
5678
5684
|
),
|
|
5679
|
-
|
|
5685
|
+
se.map((Te) => /* @__PURE__ */ A.jsx(
|
|
5680
5686
|
"button",
|
|
5681
5687
|
{
|
|
5682
5688
|
className: "zhk-base__key zhk-base__key--letter",
|
|
5683
|
-
onPointerDown: (pe) => he(pe, () =>
|
|
5689
|
+
onPointerDown: (pe) => he(pe, () => W(Te)),
|
|
5684
5690
|
onPointerUp: ne,
|
|
5685
5691
|
onPointerLeave: ne,
|
|
5686
5692
|
onPointerCancel: ne,
|
|
5687
5693
|
onContextMenu: Pe,
|
|
5688
|
-
children:
|
|
5694
|
+
children: H ? Te.toUpperCase() : Te
|
|
5689
5695
|
},
|
|
5690
5696
|
Te
|
|
5691
5697
|
)),
|
|
@@ -5693,7 +5699,7 @@ const fa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
|
|
|
5693
5699
|
"button",
|
|
5694
5700
|
{
|
|
5695
5701
|
className: "zhk-base__key zhk-base__key--function zhk-base__key--delete",
|
|
5696
|
-
onPointerDown: (Te) => he(Te, () =>
|
|
5702
|
+
onPointerDown: (Te) => he(Te, () => J()),
|
|
5697
5703
|
onPointerUp: ne,
|
|
5698
5704
|
onPointerLeave: ne,
|
|
5699
5705
|
onPointerCancel: ne,
|
|
@@ -5701,15 +5707,15 @@ const fa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
|
|
|
5701
5707
|
children: /* @__PURE__ */ A.jsx("img", { src: fa, className: "zhk-base__key-icon", alt: "Delete" })
|
|
5702
5708
|
}
|
|
5703
5709
|
)
|
|
5704
|
-
] }, `row-${
|
|
5710
|
+
] }, `row-${se.join("")}`)),
|
|
5705
5711
|
/* @__PURE__ */ A.jsxs("div", { className: "zhk-base__row", children: [
|
|
5706
5712
|
/* @__PURE__ */ A.jsx("button", { className: "zhk-base__key zhk-base__key--function", onClick: D, onContextMenu: Pe, children: "符" }),
|
|
5707
|
-
/* @__PURE__ */ A.jsx("button", { className: "zhk-base__key zhk-base__key--function", onClick:
|
|
5713
|
+
/* @__PURE__ */ A.jsx("button", { className: "zhk-base__key zhk-base__key--function", onClick: M, onContextMenu: Pe, children: "123" }),
|
|
5708
5714
|
/* @__PURE__ */ A.jsx(
|
|
5709
5715
|
"button",
|
|
5710
5716
|
{
|
|
5711
5717
|
className: "zhk-base__key",
|
|
5712
|
-
onPointerDown: (
|
|
5718
|
+
onPointerDown: (se) => he(se, () => q(",")),
|
|
5713
5719
|
onPointerUp: ne,
|
|
5714
5720
|
onPointerLeave: ne,
|
|
5715
5721
|
onPointerCancel: ne,
|
|
@@ -5721,7 +5727,7 @@ const fa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
|
|
|
5721
5727
|
"button",
|
|
5722
5728
|
{
|
|
5723
5729
|
className: "zhk-base__key zhk-base__key--space",
|
|
5724
|
-
onPointerDown: (
|
|
5730
|
+
onPointerDown: (se) => he(se, () => q(" ")),
|
|
5725
5731
|
onPointerUp: ne,
|
|
5726
5732
|
onPointerLeave: ne,
|
|
5727
5733
|
onPointerCancel: ne,
|
|
@@ -5733,7 +5739,7 @@ const fa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
|
|
|
5733
5739
|
"button",
|
|
5734
5740
|
{
|
|
5735
5741
|
className: "zhk-base__key",
|
|
5736
|
-
onPointerDown: (
|
|
5742
|
+
onPointerDown: (se) => he(se, () => q("。")),
|
|
5737
5743
|
onPointerUp: ne,
|
|
5738
5744
|
onPointerLeave: ne,
|
|
5739
5745
|
onPointerCancel: ne,
|
|
@@ -5752,7 +5758,7 @@ const fa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
|
|
|
5752
5758
|
"button",
|
|
5753
5759
|
{
|
|
5754
5760
|
className: "zhk-base__key zhk-base__key--function",
|
|
5755
|
-
onPointerDown: (
|
|
5761
|
+
onPointerDown: (se) => he(se, () => q("enter", !0)),
|
|
5756
5762
|
onPointerUp: ne,
|
|
5757
5763
|
onPointerLeave: ne,
|
|
5758
5764
|
onPointerCancel: ne,
|
|
@@ -5773,8 +5779,11 @@ const fa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
|
|
|
5773
5779
|
keyboardRows: l = dm
|
|
5774
5780
|
}) => {
|
|
5775
5781
|
const f = qe(yr());
|
|
5776
|
-
an(() =>
|
|
5777
|
-
f.current
|
|
5782
|
+
an(() => {
|
|
5783
|
+
const M = f.current;
|
|
5784
|
+
return () => {
|
|
5785
|
+
M.stop();
|
|
5786
|
+
};
|
|
5778
5787
|
}, []);
|
|
5779
5788
|
const C = [
|
|
5780
5789
|
{ key: "delete", icon: fa, text: "", alt: "Delete" },
|
|
@@ -5782,40 +5791,40 @@ const fa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
|
|
|
5782
5791
|
{ key: "@", icon: "", text: "@", alt: "@" },
|
|
5783
5792
|
{ key: "enter", icon: ha, text: "", alt: "Enter" }
|
|
5784
5793
|
];
|
|
5785
|
-
function k(
|
|
5786
|
-
a({ key:
|
|
5794
|
+
function k(M) {
|
|
5795
|
+
a({ key: M });
|
|
5787
5796
|
}
|
|
5788
|
-
function w(
|
|
5789
|
-
a({ key:
|
|
5797
|
+
function w(M, D = !0) {
|
|
5798
|
+
a({ key: M, isControl: D });
|
|
5790
5799
|
}
|
|
5791
5800
|
function O() {
|
|
5792
5801
|
s();
|
|
5793
5802
|
}
|
|
5794
|
-
function j(
|
|
5803
|
+
function j(M, D) {
|
|
5795
5804
|
var Z, ee;
|
|
5796
|
-
|
|
5805
|
+
M.preventDefault(), (ee = (Z = M.currentTarget).setPointerCapture) == null || ee.call(Z, M.pointerId), f.current.start(D);
|
|
5797
5806
|
}
|
|
5798
5807
|
function z() {
|
|
5799
5808
|
f.current.stop();
|
|
5800
5809
|
}
|
|
5801
|
-
function
|
|
5802
|
-
|
|
5810
|
+
function H(M, D) {
|
|
5811
|
+
M.preventDefault(), D();
|
|
5803
5812
|
}
|
|
5804
|
-
function q(
|
|
5805
|
-
|
|
5813
|
+
function q(M) {
|
|
5814
|
+
M.preventDefault();
|
|
5806
5815
|
}
|
|
5807
|
-
function G(
|
|
5808
|
-
return
|
|
5816
|
+
function G(M) {
|
|
5817
|
+
return M === "back" ? O : M === "space" ? () => k(" ") : () => k(M);
|
|
5809
5818
|
}
|
|
5810
5819
|
return /* @__PURE__ */ A.jsx("div", { className: "num-keyboard", children: /* @__PURE__ */ A.jsxs("div", { className: "num-keyboard__container", children: [
|
|
5811
|
-
/* @__PURE__ */ A.jsx("div", { className: "num-keyboard__left", children: /* @__PURE__ */ A.jsx("div", { className: "num-keyboard__rows", children: l.map((
|
|
5820
|
+
/* @__PURE__ */ A.jsx("div", { className: "num-keyboard__left", children: /* @__PURE__ */ A.jsx("div", { className: "num-keyboard__rows", children: l.map((M) => /* @__PURE__ */ A.jsx("div", { className: "num-keyboard__row", children: M.map((D) => /* @__PURE__ */ A.jsx(
|
|
5812
5821
|
"button",
|
|
5813
5822
|
{
|
|
5814
5823
|
className: `num-keyboard__key ${D === "back" ? "num-keyboard__key--back" : ""} ${D === "space" ? "num-keyboard__key--space" : ""}`,
|
|
5815
5824
|
onPointerDown: (Z) => {
|
|
5816
5825
|
const ee = G(D);
|
|
5817
5826
|
if (D === "back") {
|
|
5818
|
-
|
|
5827
|
+
H(Z, ee);
|
|
5819
5828
|
return;
|
|
5820
5829
|
}
|
|
5821
5830
|
j(Z, ee);
|
|
@@ -5826,35 +5835,38 @@ const fa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
|
|
|
5826
5835
|
onContextMenu: q,
|
|
5827
5836
|
children: D === "back" ? "返回" : D === "space" ? /* @__PURE__ */ A.jsx("img", { src: Li, className: "zhk-base__key-icon", alt: "Space" }) : D
|
|
5828
5837
|
},
|
|
5829
|
-
`key-${
|
|
5830
|
-
)) }, `row-${
|
|
5831
|
-
/* @__PURE__ */ A.jsx("div", { className: "num-keyboard__right", children: C.map((
|
|
5838
|
+
`key-${M.join("")}-${D}`
|
|
5839
|
+
)) }, `row-${M.join("")}`)) }) }),
|
|
5840
|
+
/* @__PURE__ */ A.jsx("div", { className: "num-keyboard__right", children: C.map((M) => /* @__PURE__ */ A.jsx(
|
|
5832
5841
|
"button",
|
|
5833
5842
|
{
|
|
5834
5843
|
className: "num-keyboard__key num-keyboard__key--function",
|
|
5835
5844
|
onPointerDown: (D) => {
|
|
5836
|
-
if (
|
|
5837
|
-
j(D, () => k(
|
|
5845
|
+
if (M.key === "." || M.key === "@") {
|
|
5846
|
+
j(D, () => k(M.key));
|
|
5838
5847
|
return;
|
|
5839
5848
|
}
|
|
5840
|
-
j(D, () => w(
|
|
5849
|
+
j(D, () => w(M.key));
|
|
5841
5850
|
},
|
|
5842
5851
|
onPointerUp: z,
|
|
5843
5852
|
onPointerLeave: z,
|
|
5844
5853
|
onPointerCancel: z,
|
|
5845
5854
|
onContextMenu: q,
|
|
5846
|
-
children:
|
|
5855
|
+
children: M.icon ? /* @__PURE__ */ A.jsx("img", { src: M.icon, className: "num-keyboard__key-icon", alt: M.alt }) : /* @__PURE__ */ A.jsx("span", { children: M.text })
|
|
5847
5856
|
},
|
|
5848
|
-
`func-${
|
|
5857
|
+
`func-${M.key}`
|
|
5849
5858
|
)) })
|
|
5850
5859
|
] }) });
|
|
5851
5860
|
}, pm = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M18,20V10H6V20H18M18,8A2,2%200%200,1%2020,10V20A2,2%200%200,1%2018,22H6C4.89,22%204,21.1%204,20V10A2,2%200%200,1%206,8H15V6A3,3%200%200,0%2012,3A3,3%200%200,0%209,6H7A5,5%200%200,1%2012,1A5,5%200%200,1%2017,6V8H18M12,17A2,2%200%200,1%2010,15A2,2%200%200,1%2012,13A2,2%200%200,1%2014,15A2,2%200%200,1%2012,17Z'%20/%3e%3c/svg%3e", ym = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M12,17C10.89,17%2010,16.1%2010,15C10,13.89%2010.89,13%2012,13A2,2%200%200,1%2014,15A2,2%200%200,1%2012,17M18,20V10H6V20H18M18,8A2,2%200%200,1%2020,10V20A2,2%200%200,1%2018,22H6C4.89,22%204,21.1%204,20V10C4,8.89%204.89,8%206,8H7V6A5,5%200%200,1%2012,1A5,5%200%200,1%2017,6V8H18M12,3A3,3%200%200,0%209,6V8H15V6A3,3%200%200,0%2012,3Z'%20/%3e%3c/svg%3e", mm = ({ onKey: a, onExit: s }) => {
|
|
5852
5861
|
const l = "!@#$%^&*(){}[]<>/\\|:;\"',.?+-=_~`€£¥₹©®™°", f = "!@#¥%…&*(){}[]<>/\|:;"',。?+-=_~·€£¥₹©®™°", [C, k] = Be("en"), w = rn(() => C === "zh" ? f : l, [C]), [O, j] = Be(!1), z = qe(yr());
|
|
5853
|
-
an(() =>
|
|
5854
|
-
z.current
|
|
5862
|
+
an(() => {
|
|
5863
|
+
const J = z.current;
|
|
5864
|
+
return () => {
|
|
5865
|
+
J.stop();
|
|
5866
|
+
};
|
|
5855
5867
|
}, []);
|
|
5856
|
-
function
|
|
5857
|
-
a({ key:
|
|
5868
|
+
function H(J) {
|
|
5869
|
+
a({ key: J }), O || s();
|
|
5858
5870
|
}
|
|
5859
5871
|
function q() {
|
|
5860
5872
|
s();
|
|
@@ -5862,18 +5874,18 @@ const fa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
|
|
|
5862
5874
|
function G() {
|
|
5863
5875
|
j(!O);
|
|
5864
5876
|
}
|
|
5865
|
-
function
|
|
5877
|
+
function M(J, W) {
|
|
5866
5878
|
var je, ge;
|
|
5867
|
-
|
|
5879
|
+
J.preventDefault(), (ge = (je = J.currentTarget).setPointerCapture) == null || ge.call(je, J.pointerId), z.current.start(W);
|
|
5868
5880
|
}
|
|
5869
5881
|
function D() {
|
|
5870
5882
|
z.current.stop();
|
|
5871
5883
|
}
|
|
5872
|
-
function Z(
|
|
5873
|
-
|
|
5884
|
+
function Z(J, W) {
|
|
5885
|
+
J.preventDefault(), W();
|
|
5874
5886
|
}
|
|
5875
|
-
function ee(
|
|
5876
|
-
|
|
5887
|
+
function ee(J) {
|
|
5888
|
+
J.preventDefault();
|
|
5877
5889
|
}
|
|
5878
5890
|
return /* @__PURE__ */ A.jsx("div", { className: "symbol-keyboard", children: /* @__PURE__ */ A.jsxs("div", { className: "symbol-keyboard__content", children: [
|
|
5879
5891
|
/* @__PURE__ */ A.jsxs("div", { className: "symbol-keyboard__functions", children: [
|
|
@@ -5919,24 +5931,24 @@ const fa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
|
|
|
5919
5931
|
)
|
|
5920
5932
|
] })
|
|
5921
5933
|
] }),
|
|
5922
|
-
/* @__PURE__ */ A.jsx("div", { className: "symbol-keyboard__symbols-container", children: /* @__PURE__ */ A.jsx("div", { className: "symbol-keyboard__symbols-grid", children: w.split("").map((
|
|
5934
|
+
/* @__PURE__ */ A.jsx("div", { className: "symbol-keyboard__symbols-container", children: /* @__PURE__ */ A.jsx("div", { className: "symbol-keyboard__symbols-grid", children: w.split("").map((J) => /* @__PURE__ */ A.jsx(
|
|
5923
5935
|
"button",
|
|
5924
5936
|
{
|
|
5925
5937
|
className: "symbol-keyboard__key",
|
|
5926
|
-
onPointerDown: (
|
|
5938
|
+
onPointerDown: (W) => {
|
|
5927
5939
|
if (!O) {
|
|
5928
|
-
Z(
|
|
5940
|
+
Z(W, () => H(J));
|
|
5929
5941
|
return;
|
|
5930
5942
|
}
|
|
5931
|
-
|
|
5943
|
+
M(W, () => H(J));
|
|
5932
5944
|
},
|
|
5933
5945
|
onPointerUp: D,
|
|
5934
5946
|
onPointerLeave: D,
|
|
5935
5947
|
onPointerCancel: D,
|
|
5936
5948
|
onContextMenu: ee,
|
|
5937
|
-
children:
|
|
5949
|
+
children: J
|
|
5938
5950
|
},
|
|
5939
|
-
`key-${
|
|
5951
|
+
`key-${J}`
|
|
5940
5952
|
)) }) })
|
|
5941
5953
|
] }) });
|
|
5942
5954
|
}, gm = ({
|
|
@@ -5949,23 +5961,23 @@ const fa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
|
|
|
5949
5961
|
style: w,
|
|
5950
5962
|
numKeys: O
|
|
5951
5963
|
}) => {
|
|
5952
|
-
const [j, z] = Be(a),
|
|
5964
|
+
const [j, z] = Be(a), H = qe(a), [q, G] = Be(null), M = qe(null), D = yc(), [Z, ee] = Ni(M), { recognizerInitialized: J, recognizerProgress: W } = om(s);
|
|
5953
5965
|
an(() => {
|
|
5954
|
-
(j === "en" || j === "zh") && (
|
|
5966
|
+
(j === "en" || j === "zh") && (H.current = j);
|
|
5955
5967
|
}, [j]);
|
|
5956
|
-
const [je, ge] = Be(!1),
|
|
5968
|
+
const [je, ge] = Be(!1), te = qe(null), he = zn(() => {
|
|
5957
5969
|
if (!ee)
|
|
5958
5970
|
return;
|
|
5959
5971
|
const pe = Qy(
|
|
5960
5972
|
D,
|
|
5961
|
-
|
|
5973
|
+
M.current,
|
|
5962
5974
|
l
|
|
5963
5975
|
);
|
|
5964
5976
|
G(pe);
|
|
5965
5977
|
}, [D, l, ee]), ne = rn(() => l === "static" || Pt(D), [D, l]);
|
|
5966
5978
|
St(() => {
|
|
5967
|
-
const pe =
|
|
5968
|
-
ne && ee && pe && (
|
|
5979
|
+
const pe = te.current !== D;
|
|
5980
|
+
ne && ee && pe && (te.current = D, he());
|
|
5969
5981
|
}, [ne, D, he, ee]), St(() => {
|
|
5970
5982
|
if (ee && !je) {
|
|
5971
5983
|
he();
|
|
@@ -5980,13 +5992,13 @@ const fa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
|
|
|
5980
5992
|
z((Re) => pe || Re);
|
|
5981
5993
|
}
|
|
5982
5994
|
}, [D]);
|
|
5983
|
-
const Pe = rn(() => f === !1 ? !1 : !Pt(D), [f, D]),
|
|
5995
|
+
const Pe = rn(() => f === !1 ? !1 : !Pt(D), [f, D]), se = rn(() => {
|
|
5984
5996
|
let pe;
|
|
5985
5997
|
return () => {
|
|
5986
5998
|
clearTimeout(pe), pe = setTimeout(he, 100);
|
|
5987
5999
|
};
|
|
5988
6000
|
}, [he]);
|
|
5989
|
-
hr("scroll",
|
|
6001
|
+
hr("scroll", se, window, { passive: !0 }), hr("resize", se, window, { passive: !0 });
|
|
5990
6002
|
const Ce = zn((pe) => {
|
|
5991
6003
|
if (pe.isControl)
|
|
5992
6004
|
switch (pe.key) {
|
|
@@ -5998,12 +6010,12 @@ const fa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
|
|
|
5998
6010
|
D && Pt(D) && nm(D, pe.key);
|
|
5999
6011
|
C && C(pe);
|
|
6000
6012
|
}, [C, D]), Te = zn(() => {
|
|
6001
|
-
z(
|
|
6002
|
-
}, []);
|
|
6013
|
+
["hand", "num", "symbol"].includes(H.current) && z(a), z(H.current);
|
|
6014
|
+
}, [a]);
|
|
6003
6015
|
return /* @__PURE__ */ A.jsx(
|
|
6004
6016
|
"div",
|
|
6005
6017
|
{
|
|
6006
|
-
ref:
|
|
6018
|
+
ref: M,
|
|
6007
6019
|
className: yi("zhk", {
|
|
6008
6020
|
"zhk--floating": l === "float",
|
|
6009
6021
|
"zhk--bottom": l === "bottom",
|
|
@@ -6021,8 +6033,8 @@ const fa = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20vie
|
|
|
6021
6033
|
j === "hand" && /* @__PURE__ */ A.jsx(
|
|
6022
6034
|
sm,
|
|
6023
6035
|
{
|
|
6024
|
-
recognizerInitialized:
|
|
6025
|
-
recognizerProgress:
|
|
6036
|
+
recognizerInitialized: J,
|
|
6037
|
+
recognizerProgress: W,
|
|
6026
6038
|
onKey: Ce,
|
|
6027
6039
|
onExit: Te
|
|
6028
6040
|
}
|