@fileverse-dev/ddoc 2.1.3-patch-25 → 2.1.3-patch-26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +741 -722
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -4,7 +4,7 @@ var Hj = (t) => {
|
|
4
4
|
};
|
5
5
|
var Aoe = (t, e, n) => e in t ? Coe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
|
6
6
|
var ge = (t, e, n) => Aoe(t, typeof e != "symbol" ? e + "" : e, n), F7 = (t, e, n) => e.has(t) || Hj("Cannot " + n);
|
7
|
-
var z = (t, e, n) => (F7(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Me = (t, e, n) => e.has(t) ? Hj("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), K = (t, e, n, r) => (F7(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n),
|
7
|
+
var z = (t, e, n) => (F7(t, e, "read from private field"), n ? n.call(t) : e.get(t)), Me = (t, e, n) => e.has(t) ? Hj("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), K = (t, e, n, r) => (F7(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), et = (t, e, n) => (F7(t, e, "access private method"), n);
|
8
8
|
var mp = (t, e, n, r) => ({
|
9
9
|
set _(i) {
|
10
10
|
K(t, e, i, n);
|
@@ -14,7 +14,7 @@ var mp = (t, e, n, r) => ({
|
|
14
14
|
}
|
15
15
|
});
|
16
16
|
import * as E from "react";
|
17
|
-
import xe, { forwardRef as sn, createContext as tr, useRef as Xe, useState as
|
17
|
+
import xe, { forwardRef as sn, createContext as tr, useRef as Xe, useState as ze, useDebugValue as a_, useEffect as Fe, useContext as Lt, useLayoutEffect as co, useCallback as kt, createElement as je, Children as tc, isValidElement as Vh, cloneElement as R2, useMemo as wn, memo as o_, Fragment as Nc, useId as O2, Component as YA, useInsertionEffect as y8, createRef as Bc, useReducer as Soe, Suspense as Eoe, useImperativeHandle as l_ } from "react";
|
18
18
|
import * as p1 from "react-dom";
|
19
19
|
import KA, { flushSync as JA, createPortal as c_ } from "react-dom";
|
20
20
|
var $r = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
@@ -68,16 +68,16 @@ function Toe() {
|
|
68
68
|
var b = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
69
69
|
function k(O) {
|
70
70
|
{
|
71
|
-
for (var oe = arguments.length,
|
72
|
-
|
73
|
-
v("error", O,
|
71
|
+
for (var oe = arguments.length, ve = new Array(oe > 1 ? oe - 1 : 0), Oe = 1; Oe < oe; Oe++)
|
72
|
+
ve[Oe - 1] = arguments[Oe];
|
73
|
+
v("error", O, ve);
|
74
74
|
}
|
75
75
|
}
|
76
|
-
function v(O, oe,
|
76
|
+
function v(O, oe, ve) {
|
77
77
|
{
|
78
|
-
var
|
79
|
-
ct !== "" && (oe += "%s",
|
80
|
-
var mt =
|
78
|
+
var Oe = b.ReactDebugCurrentFrame, ct = Oe.getStackAddendum();
|
79
|
+
ct !== "" && (oe += "%s", ve = ve.concat([ct]));
|
80
|
+
var mt = ve.map(function(ot) {
|
81
81
|
return String(ot);
|
82
82
|
});
|
83
83
|
mt.unshift("Warning: " + oe), Function.prototype.apply.call(console[O], console, mt);
|
@@ -92,12 +92,12 @@ function Toe() {
|
|
92
92
|
// with.
|
93
93
|
O.$$typeof === D || O.getModuleId !== void 0));
|
94
94
|
}
|
95
|
-
function R(O, oe,
|
96
|
-
var
|
97
|
-
if (
|
98
|
-
return
|
95
|
+
function R(O, oe, ve) {
|
96
|
+
var Oe = O.displayName;
|
97
|
+
if (Oe)
|
98
|
+
return Oe;
|
99
99
|
var ct = oe.displayName || oe.name || "";
|
100
|
-
return ct !== "" ?
|
100
|
+
return ct !== "" ? ve + "(" + ct + ")" : ve;
|
101
101
|
}
|
102
102
|
function H(O) {
|
103
103
|
return O.displayName || "Context";
|
@@ -129,13 +129,13 @@ function Toe() {
|
|
129
129
|
var oe = O;
|
130
130
|
return H(oe) + ".Consumer";
|
131
131
|
case a:
|
132
|
-
var
|
133
|
-
return H(
|
132
|
+
var ve = O;
|
133
|
+
return H(ve._context) + ".Provider";
|
134
134
|
case l:
|
135
135
|
return R(O, O.render, "ForwardRef");
|
136
136
|
case f:
|
137
|
-
var
|
138
|
-
return
|
137
|
+
var Oe = O.displayName || null;
|
138
|
+
return Oe !== null ? Oe : V(O.type) || "Memo";
|
139
139
|
case d: {
|
140
140
|
var ct = O, mt = ct._payload, ot = ct._init;
|
141
141
|
try {
|
@@ -210,14 +210,14 @@ function Toe() {
|
|
210
210
|
}
|
211
211
|
}
|
212
212
|
var J = b.ReactCurrentDispatcher, me;
|
213
|
-
function
|
213
|
+
function we(O, oe, ve) {
|
214
214
|
{
|
215
215
|
if (me === void 0)
|
216
216
|
try {
|
217
217
|
throw Error();
|
218
218
|
} catch (ct) {
|
219
|
-
var
|
220
|
-
me =
|
219
|
+
var Oe = ct.stack.trim().match(/\n( *(at )?)/);
|
220
|
+
me = Oe && Oe[1] || "";
|
221
221
|
}
|
222
222
|
return `
|
223
223
|
` + me + O;
|
@@ -232,11 +232,11 @@ function Toe() {
|
|
232
232
|
if (!O || Re)
|
233
233
|
return "";
|
234
234
|
{
|
235
|
-
var
|
236
|
-
if (
|
237
|
-
return
|
235
|
+
var ve = Pe.get(O);
|
236
|
+
if (ve !== void 0)
|
237
|
+
return ve;
|
238
238
|
}
|
239
|
-
var
|
239
|
+
var Oe;
|
240
240
|
Re = !0;
|
241
241
|
var ct = Error.prepareStackTrace;
|
242
242
|
Error.prepareStackTrace = void 0;
|
@@ -255,14 +255,14 @@ function Toe() {
|
|
255
255
|
try {
|
256
256
|
Reflect.construct(ot, []);
|
257
257
|
} catch (Bt) {
|
258
|
-
|
258
|
+
Oe = Bt;
|
259
259
|
}
|
260
260
|
Reflect.construct(O, [], ot);
|
261
261
|
} else {
|
262
262
|
try {
|
263
263
|
ot.call();
|
264
264
|
} catch (Bt) {
|
265
|
-
|
265
|
+
Oe = Bt;
|
266
266
|
}
|
267
267
|
O.call(ot.prototype);
|
268
268
|
}
|
@@ -270,14 +270,14 @@ function Toe() {
|
|
270
270
|
try {
|
271
271
|
throw Error();
|
272
272
|
} catch (Bt) {
|
273
|
-
|
273
|
+
Oe = Bt;
|
274
274
|
}
|
275
275
|
O();
|
276
276
|
}
|
277
277
|
} catch (Bt) {
|
278
|
-
if (Bt &&
|
278
|
+
if (Bt && Oe && typeof Bt.stack == "string") {
|
279
279
|
for (var it = Bt.stack.split(`
|
280
|
-
`), Qe =
|
280
|
+
`), Qe = Oe.stack.split(`
|
281
281
|
`), ae = it.length - 1, Ne = Qe.length - 1; ae >= 1 && Ne >= 0 && it[ae] !== Qe[Ne]; )
|
282
282
|
Ne--;
|
283
283
|
for (; ae >= 1 && Ne >= 0; ae--, Ne--)
|
@@ -296,39 +296,39 @@ function Toe() {
|
|
296
296
|
} finally {
|
297
297
|
Re = !1, J.current = mt, be(), Error.prepareStackTrace = ct;
|
298
298
|
}
|
299
|
-
var Qt = O ? O.displayName || O.name : "", pn = Qt ?
|
299
|
+
var Qt = O ? O.displayName || O.name : "", pn = Qt ? we(Qt) : "";
|
300
300
|
return typeof O == "function" && Pe.set(O, pn), pn;
|
301
301
|
}
|
302
|
-
function Te(O, oe,
|
302
|
+
function Te(O, oe, ve) {
|
303
303
|
return Le(O, !1);
|
304
304
|
}
|
305
305
|
function le(O) {
|
306
306
|
var oe = O.prototype;
|
307
307
|
return !!(oe && oe.isReactComponent);
|
308
308
|
}
|
309
|
-
function $(O, oe,
|
309
|
+
function $(O, oe, ve) {
|
310
310
|
if (O == null)
|
311
311
|
return "";
|
312
312
|
if (typeof O == "function")
|
313
313
|
return Le(O, le(O));
|
314
314
|
if (typeof O == "string")
|
315
|
-
return
|
315
|
+
return we(O);
|
316
316
|
switch (O) {
|
317
317
|
case c:
|
318
|
-
return
|
318
|
+
return we("Suspense");
|
319
319
|
case u:
|
320
|
-
return
|
320
|
+
return we("SuspenseList");
|
321
321
|
}
|
322
322
|
if (typeof O == "object")
|
323
323
|
switch (O.$$typeof) {
|
324
324
|
case l:
|
325
325
|
return Te(O.render);
|
326
326
|
case f:
|
327
|
-
return $(O.type, oe,
|
327
|
+
return $(O.type, oe, ve);
|
328
328
|
case d: {
|
329
|
-
var
|
329
|
+
var Oe = O, ct = Oe._payload, mt = Oe._init;
|
330
330
|
try {
|
331
|
-
return $(mt(ct), oe,
|
331
|
+
return $(mt(ct), oe, ve);
|
332
332
|
} catch {
|
333
333
|
}
|
334
334
|
}
|
@@ -338,12 +338,12 @@ function Toe() {
|
|
338
338
|
var X = Object.prototype.hasOwnProperty, te = {}, De = b.ReactDebugCurrentFrame;
|
339
339
|
function W(O) {
|
340
340
|
if (O) {
|
341
|
-
var oe = O._owner,
|
342
|
-
De.setExtraStackFrame(
|
341
|
+
var oe = O._owner, ve = $(O.type, O._source, oe ? oe.type : null);
|
342
|
+
De.setExtraStackFrame(ve);
|
343
343
|
} else
|
344
344
|
De.setExtraStackFrame(null);
|
345
345
|
}
|
346
|
-
function C(O, oe,
|
346
|
+
function C(O, oe, ve, Oe, ct) {
|
347
347
|
{
|
348
348
|
var mt = Function.call.bind(X);
|
349
349
|
for (var ot in O)
|
@@ -351,14 +351,14 @@ function Toe() {
|
|
351
351
|
var it = void 0;
|
352
352
|
try {
|
353
353
|
if (typeof O[ot] != "function") {
|
354
|
-
var Qe = Error((
|
354
|
+
var Qe = Error((Oe || "React class") + ": " + ve + " type `" + ot + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof O[ot] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
355
355
|
throw Qe.name = "Invariant Violation", Qe;
|
356
356
|
}
|
357
|
-
it = O[ot](oe, ot,
|
357
|
+
it = O[ot](oe, ot, Oe, ve, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
358
358
|
} catch (ae) {
|
359
359
|
it = ae;
|
360
360
|
}
|
361
|
-
it && !(it instanceof Error) && (W(ct), k("%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).",
|
361
|
+
it && !(it instanceof Error) && (W(ct), k("%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).", Oe || "React class", ve, ot, typeof it), W(null)), it instanceof Error && !(it.message in te) && (te[it.message] = !0, W(ct), k("Failed %s type: %s", ve, it.message), W(null));
|
362
362
|
}
|
363
363
|
}
|
364
364
|
}
|
@@ -368,8 +368,8 @@ function Toe() {
|
|
368
368
|
}
|
369
369
|
function ne(O) {
|
370
370
|
{
|
371
|
-
var oe = typeof Symbol == "function" && Symbol.toStringTag,
|
372
|
-
return
|
371
|
+
var oe = typeof Symbol == "function" && Symbol.toStringTag, ve = oe && O[Symbol.toStringTag] || O.constructor.name || "Object";
|
372
|
+
return ve;
|
373
373
|
}
|
374
374
|
}
|
375
375
|
function ue(O) {
|
@@ -382,7 +382,7 @@ function Toe() {
|
|
382
382
|
function ye(O) {
|
383
383
|
return "" + O;
|
384
384
|
}
|
385
|
-
function
|
385
|
+
function Be(O) {
|
386
386
|
if (ue(O))
|
387
387
|
return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ne(O)), ye(O);
|
388
388
|
}
|
@@ -413,34 +413,34 @@ function Toe() {
|
|
413
413
|
}
|
414
414
|
function Ce(O, oe) {
|
415
415
|
{
|
416
|
-
var
|
416
|
+
var ve = function() {
|
417
417
|
_e || (_e = !0, k("%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)", oe));
|
418
418
|
};
|
419
|
-
|
420
|
-
get:
|
419
|
+
ve.isReactWarning = !0, Object.defineProperty(O, "key", {
|
420
|
+
get: ve,
|
421
421
|
configurable: !0
|
422
422
|
});
|
423
423
|
}
|
424
424
|
}
|
425
425
|
function qe(O, oe) {
|
426
426
|
{
|
427
|
-
var
|
427
|
+
var ve = function() {
|
428
428
|
Ke || (Ke = !0, k("%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)", oe));
|
429
429
|
};
|
430
|
-
|
431
|
-
get:
|
430
|
+
ve.isReactWarning = !0, Object.defineProperty(O, "ref", {
|
431
|
+
get: ve,
|
432
432
|
configurable: !0
|
433
433
|
});
|
434
434
|
}
|
435
435
|
}
|
436
|
-
var lt = function(O, oe,
|
436
|
+
var lt = function(O, oe, ve, Oe, ct, mt, ot) {
|
437
437
|
var it = {
|
438
438
|
// This tag allows us to uniquely identify this as a React Element
|
439
439
|
$$typeof: e,
|
440
440
|
// Built-in properties that belong on the element
|
441
441
|
type: O,
|
442
442
|
key: oe,
|
443
|
-
ref:
|
443
|
+
ref: ve,
|
444
444
|
props: ot,
|
445
445
|
// Record the component responsible for creating this element.
|
446
446
|
_owner: mt
|
@@ -454,7 +454,7 @@ function Toe() {
|
|
454
454
|
configurable: !1,
|
455
455
|
enumerable: !1,
|
456
456
|
writable: !1,
|
457
|
-
value:
|
457
|
+
value: Oe
|
458
458
|
}), Object.defineProperty(it, "_source", {
|
459
459
|
configurable: !1,
|
460
460
|
enumerable: !1,
|
@@ -462,10 +462,10 @@ function Toe() {
|
|
462
462
|
value: ct
|
463
463
|
}), Object.freeze && (Object.freeze(it.props), Object.freeze(it)), it;
|
464
464
|
};
|
465
|
-
function Ft(O, oe,
|
465
|
+
function Ft(O, oe, ve, Oe, ct) {
|
466
466
|
{
|
467
467
|
var mt, ot = {}, it = null, Qe = null;
|
468
|
-
|
468
|
+
ve !== void 0 && (Be(ve), it = "" + ve), on(oe) && (Be(oe.key), it = "" + oe.key), zt(oe) && (Qe = oe.ref, un(oe, ct));
|
469
469
|
for (mt in oe)
|
470
470
|
X.call(oe, mt) && !Ee.hasOwnProperty(mt) && (ot[mt] = oe[mt]);
|
471
471
|
if (O && O.defaultProps) {
|
@@ -477,20 +477,20 @@ function Toe() {
|
|
477
477
|
var Ne = typeof O == "function" ? O.displayName || O.name || "Unknown" : O;
|
478
478
|
it && Ce(ot, Ne), Qe && qe(ot, Ne);
|
479
479
|
}
|
480
|
-
return lt(O, it, Qe, ct,
|
480
|
+
return lt(O, it, Qe, ct, Oe, Ye.current, ot);
|
481
481
|
}
|
482
482
|
}
|
483
483
|
var Tt = b.ReactCurrentOwner, rt = b.ReactDebugCurrentFrame;
|
484
484
|
function ht(O) {
|
485
485
|
if (O) {
|
486
|
-
var oe = O._owner,
|
487
|
-
rt.setExtraStackFrame(
|
486
|
+
var oe = O._owner, ve = $(O.type, O._source, oe ? oe.type : null);
|
487
|
+
rt.setExtraStackFrame(ve);
|
488
488
|
} else
|
489
489
|
rt.setExtraStackFrame(null);
|
490
490
|
}
|
491
491
|
var Rt;
|
492
492
|
Rt = !1;
|
493
|
-
function
|
493
|
+
function $e(O) {
|
494
494
|
return typeof O == "object" && O !== null && O.$$typeof === e;
|
495
495
|
}
|
496
496
|
function Ht() {
|
@@ -513,10 +513,10 @@ Check the render method of \`` + O + "`.";
|
|
513
513
|
{
|
514
514
|
var oe = Ht();
|
515
515
|
if (!oe) {
|
516
|
-
var
|
517
|
-
|
516
|
+
var ve = typeof O == "string" ? O : O.displayName || O.name;
|
517
|
+
ve && (oe = `
|
518
518
|
|
519
|
-
Check the top-level render call using <` +
|
519
|
+
Check the top-level render call using <` + ve + ">.");
|
520
520
|
}
|
521
521
|
return oe;
|
522
522
|
}
|
@@ -526,12 +526,12 @@ Check the top-level render call using <` + we + ">.");
|
|
526
526
|
if (!O._store || O._store.validated || O.key != null)
|
527
527
|
return;
|
528
528
|
O._store.validated = !0;
|
529
|
-
var
|
530
|
-
if (Nt[
|
529
|
+
var ve = gn(oe);
|
530
|
+
if (Nt[ve])
|
531
531
|
return;
|
532
|
-
Nt[
|
533
|
-
var
|
534
|
-
O && O._owner && O._owner !== Tt.current && (
|
532
|
+
Nt[ve] = !0;
|
533
|
+
var Oe = "";
|
534
|
+
O && O._owner && O._owner !== Tt.current && (Oe = " It was passed a child from " + V(O._owner.type) + "."), ht(O), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', ve, Oe), ht(null);
|
535
535
|
}
|
536
536
|
}
|
537
537
|
function nr(O, oe) {
|
@@ -539,17 +539,17 @@ Check the top-level render call using <` + we + ">.");
|
|
539
539
|
if (typeof O != "object")
|
540
540
|
return;
|
541
541
|
if (B(O))
|
542
|
-
for (var
|
543
|
-
var
|
544
|
-
|
542
|
+
for (var ve = 0; ve < O.length; ve++) {
|
543
|
+
var Oe = O[ve];
|
544
|
+
$e(Oe) && Tn(Oe, oe);
|
545
545
|
}
|
546
|
-
else if (
|
546
|
+
else if ($e(O))
|
547
547
|
O._store && (O._store.validated = !0);
|
548
548
|
else if (O) {
|
549
549
|
var ct = g(O);
|
550
550
|
if (typeof ct == "function" && ct !== O.entries)
|
551
551
|
for (var mt = ct.call(O), ot; !(ot = mt.next()).done; )
|
552
|
-
|
552
|
+
$e(ot.value) && Tn(ot.value, oe);
|
553
553
|
}
|
554
554
|
}
|
555
555
|
}
|
@@ -558,18 +558,18 @@ Check the top-level render call using <` + we + ">.");
|
|
558
558
|
var oe = O.type;
|
559
559
|
if (oe == null || typeof oe == "string")
|
560
560
|
return;
|
561
|
-
var
|
561
|
+
var ve;
|
562
562
|
if (typeof oe == "function")
|
563
|
-
|
563
|
+
ve = oe.propTypes;
|
564
564
|
else if (typeof oe == "object" && (oe.$$typeof === l || // Note: Memo only checks outer props here.
|
565
565
|
// Inner props are checked in the reconciler.
|
566
566
|
oe.$$typeof === f))
|
567
|
-
|
567
|
+
ve = oe.propTypes;
|
568
568
|
else
|
569
569
|
return;
|
570
|
-
if (
|
571
|
-
var
|
572
|
-
C(
|
570
|
+
if (ve) {
|
571
|
+
var Oe = V(oe);
|
572
|
+
C(ve, O.props, "prop", Oe, O);
|
573
573
|
} else if (oe.PropTypes !== void 0 && !Rt) {
|
574
574
|
Rt = !0;
|
575
575
|
var ct = V(oe);
|
@@ -580,10 +580,10 @@ Check the top-level render call using <` + we + ">.");
|
|
580
580
|
}
|
581
581
|
function Tr(O) {
|
582
582
|
{
|
583
|
-
for (var oe = Object.keys(O.props),
|
584
|
-
var
|
585
|
-
if (
|
586
|
-
ht(O), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
583
|
+
for (var oe = Object.keys(O.props), ve = 0; ve < oe.length; ve++) {
|
584
|
+
var Oe = oe[ve];
|
585
|
+
if (Oe !== "children" && Oe !== "key") {
|
586
|
+
ht(O), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Oe), ht(null);
|
587
587
|
break;
|
588
588
|
}
|
589
589
|
}
|
@@ -591,7 +591,7 @@ Check the top-level render call using <` + we + ">.");
|
|
591
591
|
}
|
592
592
|
}
|
593
593
|
var Ei = {};
|
594
|
-
function Ys(O, oe,
|
594
|
+
function Ys(O, oe, ve, Oe, ct, mt) {
|
595
595
|
{
|
596
596
|
var ot = j(O);
|
597
597
|
if (!ot) {
|
@@ -602,13 +602,13 @@ Check the top-level render call using <` + we + ">.");
|
|
602
602
|
var ae;
|
603
603
|
O === null ? ae = "null" : B(O) ? ae = "array" : O !== void 0 && O.$$typeof === e ? (ae = "<" + (V(O.type) || "Unknown") + " />", it = " Did you accidentally export a JSX literal instead of a component?") : ae = typeof O, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ae, it);
|
604
604
|
}
|
605
|
-
var Ne = Ft(O, oe,
|
605
|
+
var Ne = Ft(O, oe, ve, ct, mt);
|
606
606
|
if (Ne == null)
|
607
607
|
return Ne;
|
608
608
|
if (ot) {
|
609
609
|
var Je = oe.children;
|
610
610
|
if (Je !== void 0)
|
611
|
-
if (
|
611
|
+
if (Oe)
|
612
612
|
if (B(Je)) {
|
613
613
|
for (var Qt = 0; Qt < Je.length; Qt++)
|
614
614
|
nr(Je[Qt], O);
|
@@ -635,11 +635,11 @@ React keys must be passed directly to JSX without using spread:
|
|
635
635
|
return O === r ? Tr(Ne) : rr(Ne), Ne;
|
636
636
|
}
|
637
637
|
}
|
638
|
-
function li(O, oe,
|
639
|
-
return Ys(O, oe,
|
638
|
+
function li(O, oe, ve) {
|
639
|
+
return Ys(O, oe, ve, !0);
|
640
640
|
}
|
641
|
-
function vo(O, oe,
|
642
|
-
return Ys(O, oe,
|
641
|
+
function vo(O, oe, ve) {
|
642
|
+
return Ys(O, oe, ve, !1);
|
643
643
|
}
|
644
644
|
var wl = vo, zc = li;
|
645
645
|
gp.Fragment = r, gp.jsx = wl, gp.jsxs = zc;
|
@@ -1185,7 +1185,7 @@ let kn = class ox {
|
|
1185
1185
|
kn.none = [];
|
1186
1186
|
class X6 extends Error {
|
1187
1187
|
}
|
1188
|
-
class
|
1188
|
+
class nt {
|
1189
1189
|
/**
|
1190
1190
|
Create a slice. When specifying a non-zero open depth, you must
|
1191
1191
|
make sure that there are nodes of at least that depth at the
|
@@ -1212,13 +1212,13 @@ class tt {
|
|
1212
1212
|
*/
|
1213
1213
|
insertAt(e, n) {
|
1214
1214
|
let r = h_(this.content, e + this.openStart, n);
|
1215
|
-
return r && new
|
1215
|
+
return r && new nt(r, this.openStart, this.openEnd);
|
1216
1216
|
}
|
1217
1217
|
/**
|
1218
1218
|
@internal
|
1219
1219
|
*/
|
1220
1220
|
removeBetween(e, n) {
|
1221
|
-
return new
|
1221
|
+
return new nt(d_(this.content, e + this.openStart, n + this.openStart), this.openStart, this.openEnd);
|
1222
1222
|
}
|
1223
1223
|
/**
|
1224
1224
|
Tests whether this slice is equal to another slice.
|
@@ -1246,11 +1246,11 @@ class tt {
|
|
1246
1246
|
*/
|
1247
1247
|
static fromJSON(e, n) {
|
1248
1248
|
if (!n)
|
1249
|
-
return
|
1249
|
+
return nt.empty;
|
1250
1250
|
let r = n.openStart || 0, i = n.openEnd || 0;
|
1251
1251
|
if (typeof r != "number" || typeof i != "number")
|
1252
1252
|
throw new RangeError("Invalid input for Slice.fromJSON");
|
1253
|
-
return new
|
1253
|
+
return new nt(Ve.fromJSON(e, n.content), r, i);
|
1254
1254
|
}
|
1255
1255
|
/**
|
1256
1256
|
Create a slice from a fragment by taking the maximum possible
|
@@ -1262,10 +1262,10 @@ class tt {
|
|
1262
1262
|
r++;
|
1263
1263
|
for (let s = e.lastChild; s && !s.isLeaf && (n || !s.type.spec.isolating); s = s.lastChild)
|
1264
1264
|
i++;
|
1265
|
-
return new
|
1265
|
+
return new nt(e, r, i);
|
1266
1266
|
}
|
1267
1267
|
}
|
1268
|
-
|
1268
|
+
nt.empty = new nt(Ve.empty, 0, 0);
|
1269
1269
|
function d_(t, e, n) {
|
1270
1270
|
let { index: r, offset: i } = t.findIndex(e), s = t.maybeChild(r), { index: a, offset: o } = t.findIndex(n);
|
1271
1271
|
if (i == e || s.isText) {
|
@@ -1791,9 +1791,9 @@ let Bu = class cx {
|
|
1791
1791
|
*/
|
1792
1792
|
slice(e, n = this.content.size, r = !1) {
|
1793
1793
|
if (e == n)
|
1794
|
-
return
|
1794
|
+
return nt.empty;
|
1795
1795
|
let i = this.resolve(e), s = this.resolve(n), a = r ? 0 : i.sharedDepth(n), o = i.start(a), c = i.node(a).content.cut(i.pos - o, s.pos - o);
|
1796
|
-
return new
|
1796
|
+
return new nt(c, i.depth - a, s.depth - a);
|
1797
1797
|
}
|
1798
1798
|
/**
|
1799
1799
|
Replace the part of the document between the given positions with
|
@@ -2834,7 +2834,7 @@ let _0 = class fx {
|
|
2834
2834
|
*/
|
2835
2835
|
parseSlice(e, n = {}) {
|
2836
2836
|
let r = new Kj(this, n, !0);
|
2837
|
-
return r.addAll(e, kn.none, n.from, n.to),
|
2837
|
+
return r.addAll(e, kn.none, n.from, n.to), nt.maxOpen(r.finish());
|
2838
2838
|
}
|
2839
2839
|
/**
|
2840
2840
|
@internal
|
@@ -3808,7 +3808,7 @@ class Du extends Ci {
|
|
3808
3808
|
super(), this.from = e, this.to = n, this.mark = r;
|
3809
3809
|
}
|
3810
3810
|
apply(e) {
|
3811
|
-
let n = e.slice(this.from, this.to), r = e.resolve(this.from), i = r.node(r.sharedDepth(this.to)), s = new
|
3811
|
+
let n = e.slice(this.from, this.to), r = e.resolve(this.from), i = r.node(r.sharedDepth(this.to)), s = new nt(XA(n.content, (a, o) => !a.isAtom || !o.type.allowsMarkType(this.mark.type) ? a : a.mark(this.mark.addToSet(a.marks)), i), n.openStart, n.openEnd);
|
3812
3812
|
return Sr.fromReplace(e, this.from, this.to, s);
|
3813
3813
|
}
|
3814
3814
|
invert() {
|
@@ -3847,7 +3847,7 @@ class Ho extends Ci {
|
|
3847
3847
|
super(), this.from = e, this.to = n, this.mark = r;
|
3848
3848
|
}
|
3849
3849
|
apply(e) {
|
3850
|
-
let n = e.slice(this.from, this.to), r = new
|
3850
|
+
let n = e.slice(this.from, this.to), r = new nt(XA(n.content, (i) => i.mark(this.mark.removeFromSet(i.marks)), e), n.openStart, n.openEnd);
|
3851
3851
|
return Sr.fromReplace(e, this.from, this.to, r);
|
3852
3852
|
}
|
3853
3853
|
invert() {
|
@@ -3890,7 +3890,7 @@ class Iu extends Ci {
|
|
3890
3890
|
if (!n)
|
3891
3891
|
return Sr.fail("No node at mark step's position");
|
3892
3892
|
let r = n.type.create(n.attrs, null, this.mark.addToSet(n.marks));
|
3893
|
-
return Sr.fromReplace(e, this.pos, this.pos + 1, new
|
3893
|
+
return Sr.fromReplace(e, this.pos, this.pos + 1, new nt(Ve.from(r), 0, n.isLeaf ? 0 : 1));
|
3894
3894
|
}
|
3895
3895
|
invert(e) {
|
3896
3896
|
let n = e.nodeAt(this.pos);
|
@@ -3934,7 +3934,7 @@ class _h extends Ci {
|
|
3934
3934
|
if (!n)
|
3935
3935
|
return Sr.fail("No node at mark step's position");
|
3936
3936
|
let r = n.type.create(n.attrs, null, this.mark.removeFromSet(n.marks));
|
3937
|
-
return Sr.fromReplace(e, this.pos, this.pos + 1, new
|
3937
|
+
return Sr.fromReplace(e, this.pos, this.pos + 1, new nt(Ve.from(r), 0, n.isLeaf ? 0 : 1));
|
3938
3938
|
}
|
3939
3939
|
invert(e) {
|
3940
3940
|
let n = e.nodeAt(this.pos);
|
@@ -3987,10 +3987,10 @@ class _r extends Ci {
|
|
3987
3987
|
if (!(e instanceof _r) || e.structure || this.structure)
|
3988
3988
|
return null;
|
3989
3989
|
if (this.from + this.slice.size == e.from && !this.slice.openEnd && !e.slice.openStart) {
|
3990
|
-
let n = this.slice.size + e.slice.size == 0 ?
|
3990
|
+
let n = this.slice.size + e.slice.size == 0 ? nt.empty : new nt(this.slice.content.append(e.slice.content), this.slice.openStart, e.slice.openEnd);
|
3991
3991
|
return new _r(this.from, this.to + (e.to - e.from), n, this.structure);
|
3992
3992
|
} else if (e.to == this.from && !this.slice.openStart && !e.slice.openEnd) {
|
3993
|
-
let n = this.slice.size + e.slice.size == 0 ?
|
3993
|
+
let n = this.slice.size + e.slice.size == 0 ? nt.empty : new nt(e.slice.content.append(this.slice.content), e.slice.openStart, this.slice.openEnd);
|
3994
3994
|
return new _r(e.from, this.to, n, this.structure);
|
3995
3995
|
} else
|
3996
3996
|
return null;
|
@@ -4005,7 +4005,7 @@ class _r extends Ci {
|
|
4005
4005
|
static fromJSON(e, n) {
|
4006
4006
|
if (typeof n.from != "number" || typeof n.to != "number")
|
4007
4007
|
throw new RangeError("Invalid input for ReplaceStep.fromJSON");
|
4008
|
-
return new _r(n.from, n.to,
|
4008
|
+
return new _r(n.from, n.to, nt.fromJSON(e, n.slice), !!n.structure);
|
4009
4009
|
}
|
4010
4010
|
}
|
4011
4011
|
Ci.jsonID("replace", _r);
|
@@ -4063,7 +4063,7 @@ class Wr extends Ci {
|
|
4063
4063
|
static fromJSON(e, n) {
|
4064
4064
|
if (typeof n.from != "number" || typeof n.to != "number" || typeof n.gapFrom != "number" || typeof n.gapTo != "number" || typeof n.insert != "number")
|
4065
4065
|
throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");
|
4066
|
-
return new Wr(n.from, n.to, n.gapFrom, n.gapTo,
|
4066
|
+
return new Wr(n.from, n.to, n.gapFrom, n.gapTo, nt.fromJSON(e, n.slice), n.insert, !!n.structure);
|
4067
4067
|
}
|
4068
4068
|
}
|
4069
4069
|
Ci.jsonID("replaceAround", Wr);
|
@@ -4125,7 +4125,7 @@ function $A(t, e, n, r = n.contentMatch, i = !0) {
|
|
4125
4125
|
for (let l = 0; l < s.childCount; l++) {
|
4126
4126
|
let c = s.child(l), u = o + c.nodeSize, f = r.matchType(c.type);
|
4127
4127
|
if (!f)
|
4128
|
-
a.push(new _r(o, u,
|
4128
|
+
a.push(new _r(o, u, nt.empty));
|
4129
4129
|
else {
|
4130
4130
|
r = f;
|
4131
4131
|
for (let d = 0; d < c.marks.length; d++)
|
@@ -4133,14 +4133,14 @@ function $A(t, e, n, r = n.contentMatch, i = !0) {
|
|
4133
4133
|
if (i && c.isText && n.whitespace != "pre") {
|
4134
4134
|
let d, h = /\r?\n|\r/g, p;
|
4135
4135
|
for (; d = h.exec(c.text); )
|
4136
|
-
p || (p = new
|
4136
|
+
p || (p = new nt(Ve.from(n.schema.text(" ", n.allowedMarks(c.marks))), 0, 0)), a.push(new _r(o + d.index, o + d.index + d[0].length, p));
|
4137
4137
|
}
|
4138
4138
|
}
|
4139
4139
|
o = u;
|
4140
4140
|
}
|
4141
4141
|
if (!r.validEnd) {
|
4142
4142
|
let l = r.fillBefore(Ve.empty, !0);
|
4143
|
-
t.replace(o, o, new
|
4143
|
+
t.replace(o, o, new nt(l, 0, 0));
|
4144
4144
|
}
|
4145
4145
|
for (let l = a.length - 1; l >= 0; l--)
|
4146
4146
|
t.step(a[l]);
|
@@ -4166,7 +4166,7 @@ function sle(t, e, n) {
|
|
4166
4166
|
let d = Ve.empty, h = 0;
|
4167
4167
|
for (let p = s, m = !1; p > n; p--)
|
4168
4168
|
m || i.after(p + 1) < i.end(p) ? (m = !0, d = Ve.from(i.node(p).copy(d)), h++) : c++;
|
4169
|
-
t.step(new Wr(l, c, a, o, new
|
4169
|
+
t.step(new Wr(l, c, a, o, new nt(u.append(d), f, h), u.size - f, !0));
|
4170
4170
|
}
|
4171
4171
|
function eS(t, e, n = null, r = t) {
|
4172
4172
|
let i = ale(t, e), s = i && ole(r, e);
|
@@ -4202,7 +4202,7 @@ function lle(t, e, n) {
|
|
4202
4202
|
r = Ve.from(n[a].type.create(n[a].attrs, r));
|
4203
4203
|
}
|
4204
4204
|
let i = e.start, s = e.end;
|
4205
|
-
t.step(new Wr(i, s, i, s, new
|
4205
|
+
t.step(new Wr(i, s, i, s, new nt(r, 0, 0), n.length, !0));
|
4206
4206
|
}
|
4207
4207
|
function cle(t, e, n, r, i) {
|
4208
4208
|
if (!r.isTextblock)
|
@@ -4218,7 +4218,7 @@ function cle(t, e, n, r, i) {
|
|
4218
4218
|
}
|
4219
4219
|
c === !1 && I_(t, a, o, s), $A(t, t.mapping.slice(s).map(o, 1), r, void 0, c === null);
|
4220
4220
|
let u = t.mapping.slice(s), f = u.map(o, 1), d = u.map(o + a.nodeSize, 1);
|
4221
|
-
return t.step(new Wr(f, d, f + 1, d - 1, new
|
4221
|
+
return t.step(new Wr(f, d, f + 1, d - 1, new nt(Ve.from(r.create(l, null, a.marks)), 0, 0), 1, !0)), c === !0 && D_(t, a, o, s), !1;
|
4222
4222
|
}
|
4223
4223
|
});
|
4224
4224
|
}
|
@@ -4256,7 +4256,7 @@ function fle(t, e, n, r, i) {
|
|
4256
4256
|
return t.replaceWith(e, e + s.nodeSize, a);
|
4257
4257
|
if (!n.validContent(s.content))
|
4258
4258
|
throw new RangeError("Invalid content for node type " + n.name);
|
4259
|
-
t.step(new Wr(e, e + s.nodeSize, e + 1, e + s.nodeSize - 1, new
|
4259
|
+
t.step(new Wr(e, e + s.nodeSize, e + 1, e + s.nodeSize - 1, new nt(Ve.from(a), 0, 0), 1, !0));
|
4260
4260
|
}
|
4261
4261
|
function Id(t, e, n = 1, r) {
|
4262
4262
|
let i = t.resolve(e), s = i.depth - n, a = r && r[r.length - 1] || i.parent;
|
@@ -4282,7 +4282,7 @@ function dle(t, e, n = 1, r) {
|
|
4282
4282
|
let u = r && r[c];
|
4283
4283
|
a = Ve.from(u ? u.type.create(u.attrs, a) : i.node(o).copy(a));
|
4284
4284
|
}
|
4285
|
-
t.step(new _r(e, e, new
|
4285
|
+
t.step(new _r(e, e, new nt(s.append(a), n, n), !0));
|
4286
4286
|
}
|
4287
4287
|
function m1(t, e) {
|
4288
4288
|
let n = t.resolve(e), r = n.index();
|
@@ -4325,7 +4325,7 @@ function ple(t, e, n) {
|
|
4325
4325
|
}
|
4326
4326
|
a.inlineContent && $A(t, e + n - 1, a, s.node().contentMatchAt(s.index()), r == null);
|
4327
4327
|
let l = t.mapping.slice(o), c = l.map(e - n);
|
4328
|
-
if (t.step(new _r(c, l.map(e + n, -1),
|
4328
|
+
if (t.step(new _r(c, l.map(e + n, -1), nt.empty, !0)), r === !0) {
|
4329
4329
|
let u = t.doc.resolve(c);
|
4330
4330
|
D_(t, u.node(), u.before(), t.steps.length);
|
4331
4331
|
}
|
@@ -4374,7 +4374,7 @@ function R_(t, e, n) {
|
|
4374
4374
|
}
|
4375
4375
|
return null;
|
4376
4376
|
}
|
4377
|
-
function v8(t, e, n = e, r =
|
4377
|
+
function v8(t, e, n = e, r = nt.empty) {
|
4378
4378
|
if (e == n && !r.size)
|
4379
4379
|
return null;
|
4380
4380
|
let i = t.resolve(e), s = t.resolve(n);
|
@@ -4410,7 +4410,7 @@ class yle {
|
|
4410
4410
|
let s = this.placed, a = r.depth, o = i.depth;
|
4411
4411
|
for (; a && o && s.childCount == 1; )
|
4412
4412
|
s = s.firstChild.content, a--, o--;
|
4413
|
-
let l = new
|
4413
|
+
let l = new nt(s, a, o);
|
4414
4414
|
return e > -1 ? new Wr(r.pos, e, this.$to.pos, this.$to.end(), l, n) : l.size || r.pos != this.$to.pos ? new _r(r.pos, i.pos, l) : null;
|
4415
4415
|
}
|
4416
4416
|
// Find a position on the start spine of `this.unplaced` that has
|
@@ -4444,15 +4444,15 @@ class yle {
|
|
4444
4444
|
}
|
4445
4445
|
openMore() {
|
4446
4446
|
let { content: e, openStart: n, openEnd: r } = this.unplaced, i = q7(e, n);
|
4447
|
-
return !i.childCount || i.firstChild.isLeaf ? !1 : (this.unplaced = new
|
4447
|
+
return !i.childCount || i.firstChild.isLeaf ? !1 : (this.unplaced = new nt(e, n + 1, Math.max(r, i.size + n >= e.size - r ? n + 1 : 0)), !0);
|
4448
4448
|
}
|
4449
4449
|
dropNode() {
|
4450
4450
|
let { content: e, openStart: n, openEnd: r } = this.unplaced, i = q7(e, n);
|
4451
4451
|
if (i.childCount <= 1 && n > 0) {
|
4452
4452
|
let s = e.size - n <= n + i.size;
|
4453
|
-
this.unplaced = new
|
4453
|
+
this.unplaced = new nt(_p(e, n - 1, 1), n - 1, s ? n - 1 : r);
|
4454
4454
|
} else
|
4455
|
-
this.unplaced = new
|
4455
|
+
this.unplaced = new nt(_p(e, n, 1), n, r);
|
4456
4456
|
}
|
4457
4457
|
// Move content from the unplaced slice at `sliceDepth` to the
|
4458
4458
|
// frontier node at `frontierDepth`. Close that frontier node when
|
@@ -4482,7 +4482,7 @@ class yle {
|
|
4482
4482
|
let b = g.lastChild;
|
4483
4483
|
this.frontier.push({ type: b.type, match: b.contentMatchAt(b.childCount) }), g = b.content;
|
4484
4484
|
}
|
4485
|
-
this.unplaced = p ? e == 0 ?
|
4485
|
+
this.unplaced = p ? e == 0 ? nt.empty : new nt(_p(a.content, e - 1, 1), e - 1, h < 0 ? a.openEnd : e - 1) : new nt(_p(a.content, e, c), a.openStart, a.openEnd);
|
4486
4486
|
}
|
4487
4487
|
mustMoveInline() {
|
4488
4488
|
if (!this.$to.parent.isTextblock)
|
@@ -4601,7 +4601,7 @@ function vle(t, e, n, r) {
|
|
4601
4601
|
g < 0 && (b = !1, g = -g);
|
4602
4602
|
let k = i.node(g - 1), v = i.index(g - 1);
|
4603
4603
|
if (k.canReplaceWith(v, v, p.type, p.marks))
|
4604
|
-
return t.replace(i.before(g), b ? s.after(g) : n, new
|
4604
|
+
return t.replace(i.before(g), b ? s.after(g) : n, new nt(B_(r.content, 0, r.openStart, h), h, r.openEnd));
|
4605
4605
|
}
|
4606
4606
|
}
|
4607
4607
|
let f = t.steps.length;
|
@@ -4626,7 +4626,7 @@ function wle(t, e, n, r) {
|
|
4626
4626
|
let i = mle(t.doc, e, r.type);
|
4627
4627
|
i != null && (e = n = i);
|
4628
4628
|
}
|
4629
|
-
t.replaceRange(e, n, new
|
4629
|
+
t.replaceRange(e, n, new nt(Ve.from(r), 0, 0));
|
4630
4630
|
}
|
4631
4631
|
function kle(t, e, n) {
|
4632
4632
|
let r = t.doc.resolve(e), i = t.doc.resolve(n), s = F_(r, i);
|
@@ -4668,7 +4668,7 @@ class Pd extends Ci {
|
|
4668
4668
|
r[s] = n.attrs[s];
|
4669
4669
|
r[this.attr] = this.value;
|
4670
4670
|
let i = n.type.create(r, null, n.marks);
|
4671
|
-
return Sr.fromReplace(e, this.pos, this.pos + 1, new
|
4671
|
+
return Sr.fromReplace(e, this.pos, this.pos + 1, new nt(Ve.from(i), 0, n.isLeaf ? 0 : 1));
|
4672
4672
|
}
|
4673
4673
|
getMap() {
|
4674
4674
|
return Ds.empty;
|
@@ -4781,7 +4781,7 @@ class tS {
|
|
4781
4781
|
Replace the part of the document between `from` and `to` with the
|
4782
4782
|
given `slice`.
|
4783
4783
|
*/
|
4784
|
-
replace(e, n = e, r =
|
4784
|
+
replace(e, n = e, r = nt.empty) {
|
4785
4785
|
let i = v8(this.doc, e, n, r);
|
4786
4786
|
return i && this.step(i), this;
|
4787
4787
|
}
|
@@ -4790,13 +4790,13 @@ class tS {
|
|
4790
4790
|
fragment, node, or array of nodes.
|
4791
4791
|
*/
|
4792
4792
|
replaceWith(e, n, r) {
|
4793
|
-
return this.replace(e, n, new
|
4793
|
+
return this.replace(e, n, new nt(Ve.from(r), 0, 0));
|
4794
4794
|
}
|
4795
4795
|
/**
|
4796
4796
|
Delete the content between the given positions.
|
4797
4797
|
*/
|
4798
4798
|
delete(e, n) {
|
4799
|
-
return this.replace(e, n,
|
4799
|
+
return this.replace(e, n, nt.empty);
|
4800
4800
|
}
|
4801
4801
|
/**
|
4802
4802
|
Insert the given content at the given position.
|
@@ -5019,14 +5019,14 @@ class Dt {
|
|
5019
5019
|
Replace the selection with a slice or, if no slice is given,
|
5020
5020
|
delete the selection. Will append to the given transaction.
|
5021
5021
|
*/
|
5022
|
-
replace(e, n =
|
5022
|
+
replace(e, n = nt.empty) {
|
5023
5023
|
let r = n.content.lastChild, i = null;
|
5024
5024
|
for (let o = 0; o < n.openEnd; o++)
|
5025
5025
|
i = r, r = r.lastChild;
|
5026
5026
|
let s = e.steps.length, a = this.ranges;
|
5027
5027
|
for (let o = 0; o < a.length; o++) {
|
5028
5028
|
let { $from: l, $to: c } = a[o], u = e.mapping.slice(s);
|
5029
|
-
e.replaceRange(u.map(l.pos), u.map(c.pos), o ?
|
5029
|
+
e.replaceRange(u.map(l.pos), u.map(c.pos), o ? nt.empty : n), o == 0 && iD(e, s, (r ? r.isInline : i && i.isTextblock) ? -1 : 1);
|
5030
5030
|
}
|
5031
5031
|
}
|
5032
5032
|
/**
|
@@ -5152,8 +5152,8 @@ class vt extends Dt {
|
|
5152
5152
|
let i = e.resolve(n.map(this.anchor));
|
5153
5153
|
return new vt(i.parent.inlineContent ? i : r, r);
|
5154
5154
|
}
|
5155
|
-
replace(e, n =
|
5156
|
-
if (super.replace(e, n), n ==
|
5155
|
+
replace(e, n = nt.empty) {
|
5156
|
+
if (super.replace(e, n), n == nt.empty) {
|
5157
5157
|
let r = this.$from.marksAcross(this.$to);
|
5158
5158
|
r && e.ensureMarks(r);
|
5159
5159
|
}
|
@@ -5228,7 +5228,7 @@ class gt extends Dt {
|
|
5228
5228
|
return r ? Dt.near(s) : new gt(s);
|
5229
5229
|
}
|
5230
5230
|
content() {
|
5231
|
-
return new
|
5231
|
+
return new nt(Ve.from(this.node), 0, 0);
|
5232
5232
|
}
|
5233
5233
|
eq(e) {
|
5234
5234
|
return e instanceof gt && e.anchor == this.anchor;
|
@@ -5283,8 +5283,8 @@ class ka extends Dt {
|
|
5283
5283
|
constructor(e) {
|
5284
5284
|
super(e.resolve(0), e.resolve(e.content.size));
|
5285
5285
|
}
|
5286
|
-
replace(e, n =
|
5287
|
-
if (n ==
|
5286
|
+
replace(e, n = nt.empty) {
|
5287
|
+
if (n == nt.empty) {
|
5288
5288
|
e.delete(0, e.doc.content.size);
|
5289
5289
|
let r = Dt.atStart(e.doc);
|
5290
5290
|
r.eq(e.selection) || e.setSelection(r);
|
@@ -7630,8 +7630,8 @@ function aq(t, e, n, r, i) {
|
|
7630
7630
|
if (t.someProp("transformPastedText", (d) => {
|
7631
7631
|
e = d(e, s || r, t);
|
7632
7632
|
}), s)
|
7633
|
-
return e ? new
|
7634
|
-
`))), 0, 0) :
|
7633
|
+
return e ? new nt(Ve.from(t.state.schema.text(e.replace(/\r\n?/g, `
|
7634
|
+
`))), 0, 0) : nt.empty;
|
7635
7635
|
let f = t.someProp("clipboardTextParser", (d) => d(e, i, r, t));
|
7636
7636
|
if (f)
|
7637
7637
|
o = f;
|
@@ -7664,7 +7664,7 @@ function aq(t, e, n, r, i) {
|
|
7664
7664
|
}
|
7665
7665
|
})), u)
|
7666
7666
|
o = vce(TD(o, +u[1], +u[2]), u[4]);
|
7667
|
-
else if (o =
|
7667
|
+
else if (o = nt.maxOpen(mce(o.content, i), !0), o.openStart || o.openEnd) {
|
7668
7668
|
let f = 0, d = 0;
|
7669
7669
|
for (let h = o.content.firstChild; f < o.openStart && !h.type.spec.isolating; f++, h = h.firstChild)
|
7670
7670
|
;
|
@@ -7725,7 +7725,7 @@ function Mx(t, e, n, r, i, s) {
|
|
7725
7725
|
return t.childCount > 1 && (s = 0), i < r - 1 && (o = Mx(o, e, n, r, i + 1, s)), i >= n && (o = e < 0 ? a.contentMatchAt(0).fillBefore(o, s <= i).append(o) : o.append(a.contentMatchAt(a.childCount).fillBefore(Ve.empty, !0))), t.replaceChild(e < 0 ? 0 : t.childCount - 1, a.copy(o));
|
7726
7726
|
}
|
7727
7727
|
function TD(t, e, n) {
|
7728
|
-
return e < t.openStart && (t = new
|
7728
|
+
return e < t.openStart && (t = new nt(Mx(t.content, -1, e, t.openStart, 0, t.openEnd), e, t.openEnd)), n < t.openEnd && (t = new nt(Mx(t.content, 1, n, t.openEnd, 0, 0), t.openStart, n)), t;
|
7729
7729
|
}
|
7730
7730
|
const uq = {
|
7731
7731
|
thead: ["table"],
|
@@ -7779,7 +7779,7 @@ function vce(t, e) {
|
|
7779
7779
|
break;
|
7780
7780
|
i = Ve.from(l.create(r[o + 1], i)), s++, a++;
|
7781
7781
|
}
|
7782
|
-
return new
|
7782
|
+
return new nt(i, s, a);
|
7783
7783
|
}
|
7784
7784
|
const qi = {}, Ui = {}, wce = { touchstart: !0, touchmove: !0 };
|
7785
7785
|
class kce {
|
@@ -8095,7 +8095,7 @@ function Fce(t, e) {
|
|
8095
8095
|
}
|
8096
8096
|
function Qm(t, e, n, r, i) {
|
8097
8097
|
let s = aq(t, e, n, r, t.state.selection.$from);
|
8098
|
-
if (t.someProp("handlePaste", (l) => l(t, i, s ||
|
8098
|
+
if (t.someProp("handlePaste", (l) => l(t, i, s || nt.empty)))
|
8099
8099
|
return !0;
|
8100
8100
|
if (!s)
|
8101
8101
|
return !1;
|
@@ -8157,7 +8157,7 @@ Ui.drop = (t, e) => {
|
|
8157
8157
|
a = p(a, t);
|
8158
8158
|
}) : a = aq(t, yq(n.dataTransfer), Jm ? null : n.dataTransfer.getData("text/html"), !1, s);
|
8159
8159
|
let o = !!(r && !n[bq]);
|
8160
|
-
if (t.someProp("handleDrop", (p) => p(t, n, a ||
|
8160
|
+
if (t.someProp("handleDrop", (p) => p(t, n, a || nt.empty, o))) {
|
8161
8161
|
n.preventDefault();
|
8162
8162
|
return;
|
8163
8163
|
}
|
@@ -9639,7 +9639,7 @@ const hue = (t, e, n) => {
|
|
9639
9639
|
return !0;
|
9640
9640
|
if (r.parent.content.size == 0 && (Wh(s, "end") || gt.isSelectable(s)))
|
9641
9641
|
for (let a = r.depth; ; a--) {
|
9642
|
-
let o = v8(t.doc, r.before(a), r.after(a),
|
9642
|
+
let o = v8(t.doc, r.before(a), r.after(a), nt.empty);
|
9643
9643
|
if (o && o.slice.size < o.to - o.from) {
|
9644
9644
|
if (e) {
|
9645
9645
|
let l = t.tr.step(o);
|
@@ -9683,7 +9683,7 @@ function Mq(t, e, n) {
|
|
9683
9683
|
return !1;
|
9684
9684
|
o = u;
|
9685
9685
|
}
|
9686
|
-
let c = v8(t.doc, s, l,
|
9686
|
+
let c = v8(t.doc, s, l, nt.empty);
|
9687
9687
|
if (!c || c.from != s || c instanceof _r && c.slice.size >= l - s)
|
9688
9688
|
return !1;
|
9689
9689
|
if (n) {
|
@@ -9738,7 +9738,7 @@ const gue = (t, e, n) => {
|
|
9738
9738
|
if (Sq(t, i, e, 1))
|
9739
9739
|
return !0;
|
9740
9740
|
if (r.parent.content.size == 0 && (Wh(s, "start") || gt.isSelectable(s))) {
|
9741
|
-
let a = v8(t.doc, r.before(), r.after(),
|
9741
|
+
let a = v8(t.doc, r.before(), r.after(), nt.empty);
|
9742
9742
|
if (a && a.slice.size < a.to - a.from) {
|
9743
9743
|
if (e) {
|
9744
9744
|
let o = t.tr.step(a);
|
@@ -9863,7 +9863,7 @@ function Sq(t, e, n, r) {
|
|
9863
9863
|
for (let b = a.length - 1; b >= 0; b--)
|
9864
9864
|
p = Ve.from(a[b].create(null, p));
|
9865
9865
|
p = Ve.from(i.copy(p));
|
9866
|
-
let m = t.tr.step(new Wr(e.pos - 1, h, e.pos, h, new
|
9866
|
+
let m = t.tr.step(new Wr(e.pos - 1, h, e.pos, h, new nt(p, 1, 0), a.length, !0)), g = m.doc.resolve(h + 2 * a.length);
|
9867
9867
|
g.nodeAfter && g.nodeAfter.type == i.type && m1(m.doc, g.pos) && m.join(g.pos), n(m.scrollIntoView());
|
9868
9868
|
}
|
9869
9869
|
return !0;
|
@@ -9883,7 +9883,7 @@ function Sq(t, e, n, r) {
|
|
9883
9883
|
let b = Ve.empty;
|
9884
9884
|
for (let v = p.length - 1; v >= 0; v--)
|
9885
9885
|
b = Ve.from(p[v].copy(b));
|
9886
|
-
let k = t.tr.step(new Wr(e.pos - p.length, e.pos + s.nodeSize, e.pos + g, e.pos + s.nodeSize - g, new
|
9886
|
+
let k = t.tr.step(new Wr(e.pos - p.length, e.pos + s.nodeSize, e.pos + g, e.pos + s.nodeSize - g, new nt(b, p.length, 0), 0, !0));
|
9887
9887
|
n(k.scrollIntoView());
|
9888
9888
|
}
|
9889
9889
|
return !0;
|
@@ -9964,7 +9964,7 @@ function Iue(t, e, n, r, i) {
|
|
9964
9964
|
let s = Ve.empty;
|
9965
9965
|
for (let u = n.length - 1; u >= 0; u--)
|
9966
9966
|
s = Ve.from(n[u].type.create(n[u].attrs, s));
|
9967
|
-
t.step(new Wr(e.start - (r ? 2 : 0), e.end, e.start, e.end, new
|
9967
|
+
t.step(new Wr(e.start - (r ? 2 : 0), e.end, e.start, e.end, new nt(s, 0, 0), n.length, !0));
|
9968
9968
|
let a = 0;
|
9969
9969
|
for (let u = 0; u < n.length; u++)
|
9970
9970
|
n[u].type == i && (a = u + 1);
|
@@ -9981,7 +9981,7 @@ function Pue(t) {
|
|
9981
9981
|
}
|
9982
9982
|
function Rue(t, e, n, r) {
|
9983
9983
|
let i = t.tr, s = r.end, a = r.$to.end(r.depth);
|
9984
|
-
s < a && (i.step(new Wr(s - 1, a, s, a, new
|
9984
|
+
s < a && (i.step(new Wr(s - 1, a, s, a, new nt(Ve.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new e5(i.doc.resolve(r.$from.pos), i.doc.resolve(a), r.depth));
|
9985
9985
|
const o = B2(r);
|
9986
9986
|
if (o == null)
|
9987
9987
|
return !1;
|
@@ -10000,7 +10000,7 @@ function Oue(t, e, n) {
|
|
10000
10000
|
if (!c.canReplace(u + (o ? 0 : 1), u + 1, a.content.append(l ? Ve.empty : Ve.from(i))))
|
10001
10001
|
return !1;
|
10002
10002
|
let f = s.pos, d = f + a.nodeSize;
|
10003
|
-
return r.step(new Wr(f - (o ? 1 : 0), d + (l ? 1 : 0), f + 1, d - 1, new
|
10003
|
+
return r.step(new Wr(f - (o ? 1 : 0), d + (l ? 1 : 0), f + 1, d - 1, new nt((o ? Ve.empty : Ve.from(i.copy(Ve.empty))).append(l ? Ve.empty : Ve.from(i.copy(Ve.empty))), o ? 0 : 1, l ? 0 : 1), o ? 0 : 1)), e(r.scrollIntoView()), !0;
|
10004
10004
|
}
|
10005
10005
|
function zue(t) {
|
10006
10006
|
return function(e, n) {
|
@@ -10014,7 +10014,7 @@ function zue(t) {
|
|
10014
10014
|
if (l.type != t)
|
10015
10015
|
return !1;
|
10016
10016
|
if (n) {
|
10017
|
-
let c = l.lastChild && l.lastChild.type == o.type, u = Ve.from(c ? t.create() : null), f = new
|
10017
|
+
let c = l.lastChild && l.lastChild.type == o.type, u = Ve.from(c ? t.create() : null), f = new nt(Ve.from(t.create(null, Ve.from(o.type.create(null, u)))), c ? 3 : 1, 0), d = s.start, h = s.end;
|
10018
10018
|
n(e.tr.step(new Wr(d - (c ? 3 : 1), h, d, h, f, 1, !0)).scrollIntoView());
|
10019
10019
|
}
|
10020
10020
|
return !0;
|
@@ -11696,7 +11696,7 @@ const i0e = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, edi
|
|
11696
11696
|
}, x = ((a = o.contentMatch.defaultType) === null || a === void 0 ? void 0 : a.createAndFill(w)) || void 0;
|
11697
11697
|
b = b.append(Ve.from(o.createAndFill(null, x) || void 0));
|
11698
11698
|
const M = l.before(l.depth - (k - 1));
|
11699
|
-
n.replace(M, l.after(-v), new
|
11699
|
+
n.replace(M, l.after(-v), new nt(b, 4 - k, 0));
|
11700
11700
|
let L = -1;
|
11701
11701
|
n.doc.nodesBetween(M, n.doc.content.size, (S, D) => {
|
11702
11702
|
if (L > -1)
|
@@ -13444,9 +13444,9 @@ function ife(t) {
|
|
13444
13444
|
if (S)
|
13445
13445
|
for (var se = p ? 3 : 1, fe = function(be) {
|
13446
13446
|
var J = w.find(function(me) {
|
13447
|
-
var
|
13448
|
-
if (
|
13449
|
-
return
|
13447
|
+
var we = L.get(me);
|
13448
|
+
if (we)
|
13449
|
+
return we.slice(0, be).every(function(Re) {
|
13450
13450
|
return Re;
|
13451
13451
|
});
|
13452
13452
|
});
|
@@ -13575,11 +13575,11 @@ function pfe(t) {
|
|
13575
13575
|
var V, G = w === "y" ? cs : us, q = w === "y" ? Ca : Aa, _ = w === "y" ? "height" : "width", Z = M[w], Q = Z + g[G], Y = Z - g[q], se = h ? -S[_] / 2 : 0, fe = k === Zh ? L[_] : S[_], ie = k === Zh ? -S[_] : -L[_], pe = e.elements.arrow, ce = h && pe ? xS(pe) : {
|
13576
13576
|
width: 0,
|
13577
13577
|
height: 0
|
13578
|
-
}, be = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : eU(), J = be[G], me = be[q],
|
13578
|
+
}, be = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : eU(), J = be[G], me = be[q], we = hm(0, L[_], ce[_]), Re = v ? L[_] / 2 - se - we - J - j.mainAxis : fe - we - J - j.mainAxis, Pe = v ? -L[_] / 2 + se + we + me + j.mainAxis : ie + we + me + j.mainAxis, Se = e.elements.arrow && Iy(e.elements.arrow), Le = Se ? w === "y" ? Se.clientTop || 0 : Se.clientLeft || 0 : 0, Te = (V = R == null ? void 0 : R[w]) != null ? V : 0, le = Z + Re - Te - Le, $ = Z + Pe - Te, X = hm(h ? u5(Q, le) : Q, Z, h ? W0(Y, $) : Y);
|
13579
13579
|
M[w] = X, H[w] = X - Z;
|
13580
13580
|
}
|
13581
13581
|
if (o) {
|
13582
|
-
var te, De = w === "x" ? cs : us, W = w === "x" ? Ca : Aa, C = M[x], P = x === "y" ? "height" : "width", B = C + g[De], ne = C - g[W], ue = [cs, us].indexOf(b) !== -1, ye = (te = R == null ? void 0 : R[x]) != null ? te : 0,
|
13582
|
+
var te, De = w === "x" ? cs : us, W = w === "x" ? Ca : Aa, C = M[x], P = x === "y" ? "height" : "width", B = C + g[De], ne = C - g[W], ue = [cs, us].indexOf(b) !== -1, ye = (te = R == null ? void 0 : R[x]) != null ? te : 0, Be = ue ? B : C - L[P] - S[P] - ye + j.altAxis, Ye = ue ? C + L[P] + S[P] - ye - j.altAxis : ne, Ee = h && ue ? B0e(Be, C, Ye) : hm(h ? Be : B, C, h ? Ye : ne);
|
13583
13583
|
M[x] = Ee, H[x] = Ee - C;
|
13584
13584
|
}
|
13585
13585
|
e.modifiersData[r] = H;
|
@@ -14168,7 +14168,7 @@ function ede(t, e) {
|
|
14168
14168
|
state: v,
|
14169
14169
|
plugins: k,
|
14170
14170
|
// methods
|
14171
|
-
clearDelayTimeouts:
|
14171
|
+
clearDelayTimeouts: Be,
|
14172
14172
|
setProps: Ye,
|
14173
14173
|
setContent: Ee,
|
14174
14174
|
show: _e,
|
@@ -14290,7 +14290,7 @@ function ede(t, e) {
|
|
14290
14290
|
!w.state.isVisible && M.parentNode && M.parentNode.contains(M) && qe();
|
14291
14291
|
});
|
14292
14292
|
}
|
14293
|
-
function
|
14293
|
+
function we(Ce, qe) {
|
14294
14294
|
Re(Ce, qe);
|
14295
14295
|
}
|
14296
14296
|
function Re(Ce, qe) {
|
@@ -14384,7 +14384,7 @@ function ede(t, e) {
|
|
14384
14384
|
var Ce = w.props, qe = Ce.popperOptions, lt = Ce.placement, Ft = Ce.offset, Tt = Ce.getReferenceClientRect, rt = Ce.moveTransition, ht = H() ? Rx(M).arrow : null, Rt = Tt ? {
|
14385
14385
|
getBoundingClientRect: Tt,
|
14386
14386
|
contextElement: Tt.contextElement || V()
|
14387
|
-
} : t,
|
14387
|
+
} : t, $e = {
|
14388
14388
|
name: "$$tippy",
|
14389
14389
|
enabled: !0,
|
14390
14390
|
phase: "beforeWrite",
|
@@ -14423,7 +14423,7 @@ function ede(t, e) {
|
|
14423
14423
|
options: {
|
14424
14424
|
adaptive: !rt
|
14425
14425
|
}
|
14426
|
-
},
|
14426
|
+
}, $e];
|
14427
14427
|
H() && ht && Ht.push({
|
14428
14428
|
name: "arrow",
|
14429
14429
|
options: {
|
@@ -14479,7 +14479,7 @@ function ede(t, e) {
|
|
14479
14479
|
function ye() {
|
14480
14480
|
w.hide(), w.state.isEnabled = !1;
|
14481
14481
|
}
|
14482
|
-
function
|
14482
|
+
function Be() {
|
14483
14483
|
clearTimeout(r), clearTimeout(i), cancelAnimationFrame(s);
|
14484
14484
|
}
|
14485
14485
|
function Ye(Ce) {
|
@@ -14515,7 +14515,7 @@ function ede(t, e) {
|
|
14515
14515
|
var An = q(), Nt = An.box, gn = An.content;
|
14516
14516
|
sw([Nt, gn], Tt), lI([Nt, gn], "visible");
|
14517
14517
|
}
|
14518
|
-
Y(), se(), aI(ow, w), (Ht = w.popperInstance) == null || Ht.forceUpdate(), Q("onMount", [w]), w.props.animation && H() &&
|
14518
|
+
Y(), se(), aI(ow, w), (Ht = w.popperInstance) == null || Ht.forceUpdate(), Q("onMount", [w]), w.props.animation && H() && we(Tt, function() {
|
14519
14519
|
w.state.isShown = !0, Q("onShown", [w]);
|
14520
14520
|
});
|
14521
14521
|
}
|
@@ -15167,7 +15167,7 @@ class gde {
|
|
15167
15167
|
}
|
15168
15168
|
function bde(t) {
|
15169
15169
|
var e;
|
15170
|
-
const [n] =
|
15170
|
+
const [n] = ze(() => new gde(t.editor)), r = mde.useSyncExternalStoreWithSelector(n.subscribe, n.getSnapshot, n.getServerSnapshot, t.selector, (e = t.equalityFn) !== null && e !== void 0 ? e : dde);
|
15171
15171
|
return yde(() => n.watch(t.editor), [t.editor, n]), a_(r), r;
|
15172
15172
|
}
|
15173
15173
|
const wI = process.env.NODE_ENV !== "production", Bx = typeof window > "u", vde = Bx || !!(typeof window < "u" && window.next);
|
@@ -15311,7 +15311,7 @@ class LS {
|
|
15311
15311
|
function gU(t = {}, e = []) {
|
15312
15312
|
const n = Xe(t);
|
15313
15313
|
n.current = t;
|
15314
|
-
const [r] =
|
15314
|
+
const [r] = ze(() => new LS(n)), i = I8.useSyncExternalStore(r.subscribe, r.getEditor, r.getServerSnapshot);
|
15315
15315
|
return a_(i), Fe(r.onRender(e)), bde({
|
15316
15316
|
editor: i,
|
15317
15317
|
selector: ({ transactionNumber: s }) => t.shouldRerenderOnTransaction === !1 ? null : t.immediatelyRender && s === 0 ? 0 : s + 1
|
@@ -15322,7 +15322,7 @@ const bU = tr({
|
|
15322
15322
|
});
|
15323
15323
|
bU.Consumer;
|
15324
15324
|
const wde = () => Lt(bU), TS = (t) => {
|
15325
|
-
const [e, n] =
|
15325
|
+
const [e, n] = ze(null), { editor: r } = wde();
|
15326
15326
|
return Fe(() => {
|
15327
15327
|
var i;
|
15328
15328
|
if (!e || !((i = t.editor) === null || i === void 0) && i.isDestroyed || r != null && r.isDestroyed)
|
@@ -15644,16 +15644,16 @@ function Ede() {
|
|
15644
15644
|
var b = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
15645
15645
|
function k(O) {
|
15646
15646
|
{
|
15647
|
-
for (var oe = arguments.length,
|
15648
|
-
|
15649
|
-
v("error", O,
|
15647
|
+
for (var oe = arguments.length, ve = new Array(oe > 1 ? oe - 1 : 0), Oe = 1; Oe < oe; Oe++)
|
15648
|
+
ve[Oe - 1] = arguments[Oe];
|
15649
|
+
v("error", O, ve);
|
15650
15650
|
}
|
15651
15651
|
}
|
15652
|
-
function v(O, oe,
|
15652
|
+
function v(O, oe, ve) {
|
15653
15653
|
{
|
15654
|
-
var
|
15655
|
-
ct !== "" && (oe += "%s",
|
15656
|
-
var mt =
|
15654
|
+
var Oe = b.ReactDebugCurrentFrame, ct = Oe.getStackAddendum();
|
15655
|
+
ct !== "" && (oe += "%s", ve = ve.concat([ct]));
|
15656
|
+
var mt = ve.map(function(ot) {
|
15657
15657
|
return String(ot);
|
15658
15658
|
});
|
15659
15659
|
mt.unshift("Warning: " + oe), Function.prototype.apply.call(console[O], console, mt);
|
@@ -15668,12 +15668,12 @@ function Ede() {
|
|
15668
15668
|
// with.
|
15669
15669
|
O.$$typeof === D || O.getModuleId !== void 0));
|
15670
15670
|
}
|
15671
|
-
function R(O, oe,
|
15672
|
-
var
|
15673
|
-
if (
|
15674
|
-
return
|
15671
|
+
function R(O, oe, ve) {
|
15672
|
+
var Oe = O.displayName;
|
15673
|
+
if (Oe)
|
15674
|
+
return Oe;
|
15675
15675
|
var ct = oe.displayName || oe.name || "";
|
15676
|
-
return ct !== "" ?
|
15676
|
+
return ct !== "" ? ve + "(" + ct + ")" : ve;
|
15677
15677
|
}
|
15678
15678
|
function H(O) {
|
15679
15679
|
return O.displayName || "Context";
|
@@ -15705,13 +15705,13 @@ function Ede() {
|
|
15705
15705
|
var oe = O;
|
15706
15706
|
return H(oe) + ".Consumer";
|
15707
15707
|
case a:
|
15708
|
-
var
|
15709
|
-
return H(
|
15708
|
+
var ve = O;
|
15709
|
+
return H(ve._context) + ".Provider";
|
15710
15710
|
case l:
|
15711
15711
|
return R(O, O.render, "ForwardRef");
|
15712
15712
|
case f:
|
15713
|
-
var
|
15714
|
-
return
|
15713
|
+
var Oe = O.displayName || null;
|
15714
|
+
return Oe !== null ? Oe : V(O.type) || "Memo";
|
15715
15715
|
case d: {
|
15716
15716
|
var ct = O, mt = ct._payload, ot = ct._init;
|
15717
15717
|
try {
|
@@ -15786,14 +15786,14 @@ function Ede() {
|
|
15786
15786
|
}
|
15787
15787
|
}
|
15788
15788
|
var J = b.ReactCurrentDispatcher, me;
|
15789
|
-
function
|
15789
|
+
function we(O, oe, ve) {
|
15790
15790
|
{
|
15791
15791
|
if (me === void 0)
|
15792
15792
|
try {
|
15793
15793
|
throw Error();
|
15794
15794
|
} catch (ct) {
|
15795
|
-
var
|
15796
|
-
me =
|
15795
|
+
var Oe = ct.stack.trim().match(/\n( *(at )?)/);
|
15796
|
+
me = Oe && Oe[1] || "";
|
15797
15797
|
}
|
15798
15798
|
return `
|
15799
15799
|
` + me + O;
|
@@ -15808,11 +15808,11 @@ function Ede() {
|
|
15808
15808
|
if (!O || Re)
|
15809
15809
|
return "";
|
15810
15810
|
{
|
15811
|
-
var
|
15812
|
-
if (
|
15813
|
-
return
|
15811
|
+
var ve = Pe.get(O);
|
15812
|
+
if (ve !== void 0)
|
15813
|
+
return ve;
|
15814
15814
|
}
|
15815
|
-
var
|
15815
|
+
var Oe;
|
15816
15816
|
Re = !0;
|
15817
15817
|
var ct = Error.prepareStackTrace;
|
15818
15818
|
Error.prepareStackTrace = void 0;
|
@@ -15831,14 +15831,14 @@ function Ede() {
|
|
15831
15831
|
try {
|
15832
15832
|
Reflect.construct(ot, []);
|
15833
15833
|
} catch (Bt) {
|
15834
|
-
|
15834
|
+
Oe = Bt;
|
15835
15835
|
}
|
15836
15836
|
Reflect.construct(O, [], ot);
|
15837
15837
|
} else {
|
15838
15838
|
try {
|
15839
15839
|
ot.call();
|
15840
15840
|
} catch (Bt) {
|
15841
|
-
|
15841
|
+
Oe = Bt;
|
15842
15842
|
}
|
15843
15843
|
O.call(ot.prototype);
|
15844
15844
|
}
|
@@ -15846,14 +15846,14 @@ function Ede() {
|
|
15846
15846
|
try {
|
15847
15847
|
throw Error();
|
15848
15848
|
} catch (Bt) {
|
15849
|
-
|
15849
|
+
Oe = Bt;
|
15850
15850
|
}
|
15851
15851
|
O();
|
15852
15852
|
}
|
15853
15853
|
} catch (Bt) {
|
15854
|
-
if (Bt &&
|
15854
|
+
if (Bt && Oe && typeof Bt.stack == "string") {
|
15855
15855
|
for (var it = Bt.stack.split(`
|
15856
|
-
`), Qe =
|
15856
|
+
`), Qe = Oe.stack.split(`
|
15857
15857
|
`), ae = it.length - 1, Ne = Qe.length - 1; ae >= 1 && Ne >= 0 && it[ae] !== Qe[Ne]; )
|
15858
15858
|
Ne--;
|
15859
15859
|
for (; ae >= 1 && Ne >= 0; ae--, Ne--)
|
@@ -15872,39 +15872,39 @@ function Ede() {
|
|
15872
15872
|
} finally {
|
15873
15873
|
Re = !1, J.current = mt, be(), Error.prepareStackTrace = ct;
|
15874
15874
|
}
|
15875
|
-
var Qt = O ? O.displayName || O.name : "", pn = Qt ?
|
15875
|
+
var Qt = O ? O.displayName || O.name : "", pn = Qt ? we(Qt) : "";
|
15876
15876
|
return typeof O == "function" && Pe.set(O, pn), pn;
|
15877
15877
|
}
|
15878
|
-
function Te(O, oe,
|
15878
|
+
function Te(O, oe, ve) {
|
15879
15879
|
return Le(O, !1);
|
15880
15880
|
}
|
15881
15881
|
function le(O) {
|
15882
15882
|
var oe = O.prototype;
|
15883
15883
|
return !!(oe && oe.isReactComponent);
|
15884
15884
|
}
|
15885
|
-
function $(O, oe,
|
15885
|
+
function $(O, oe, ve) {
|
15886
15886
|
if (O == null)
|
15887
15887
|
return "";
|
15888
15888
|
if (typeof O == "function")
|
15889
15889
|
return Le(O, le(O));
|
15890
15890
|
if (typeof O == "string")
|
15891
|
-
return
|
15891
|
+
return we(O);
|
15892
15892
|
switch (O) {
|
15893
15893
|
case c:
|
15894
|
-
return
|
15894
|
+
return we("Suspense");
|
15895
15895
|
case u:
|
15896
|
-
return
|
15896
|
+
return we("SuspenseList");
|
15897
15897
|
}
|
15898
15898
|
if (typeof O == "object")
|
15899
15899
|
switch (O.$$typeof) {
|
15900
15900
|
case l:
|
15901
15901
|
return Te(O.render);
|
15902
15902
|
case f:
|
15903
|
-
return $(O.type, oe,
|
15903
|
+
return $(O.type, oe, ve);
|
15904
15904
|
case d: {
|
15905
|
-
var
|
15905
|
+
var Oe = O, ct = Oe._payload, mt = Oe._init;
|
15906
15906
|
try {
|
15907
|
-
return $(mt(ct), oe,
|
15907
|
+
return $(mt(ct), oe, ve);
|
15908
15908
|
} catch {
|
15909
15909
|
}
|
15910
15910
|
}
|
@@ -15914,12 +15914,12 @@ function Ede() {
|
|
15914
15914
|
var X = Object.prototype.hasOwnProperty, te = {}, De = b.ReactDebugCurrentFrame;
|
15915
15915
|
function W(O) {
|
15916
15916
|
if (O) {
|
15917
|
-
var oe = O._owner,
|
15918
|
-
De.setExtraStackFrame(
|
15917
|
+
var oe = O._owner, ve = $(O.type, O._source, oe ? oe.type : null);
|
15918
|
+
De.setExtraStackFrame(ve);
|
15919
15919
|
} else
|
15920
15920
|
De.setExtraStackFrame(null);
|
15921
15921
|
}
|
15922
|
-
function C(O, oe,
|
15922
|
+
function C(O, oe, ve, Oe, ct) {
|
15923
15923
|
{
|
15924
15924
|
var mt = Function.call.bind(X);
|
15925
15925
|
for (var ot in O)
|
@@ -15927,14 +15927,14 @@ function Ede() {
|
|
15927
15927
|
var it = void 0;
|
15928
15928
|
try {
|
15929
15929
|
if (typeof O[ot] != "function") {
|
15930
|
-
var Qe = Error((
|
15930
|
+
var Qe = Error((Oe || "React class") + ": " + ve + " type `" + ot + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof O[ot] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
15931
15931
|
throw Qe.name = "Invariant Violation", Qe;
|
15932
15932
|
}
|
15933
|
-
it = O[ot](oe, ot,
|
15933
|
+
it = O[ot](oe, ot, Oe, ve, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
15934
15934
|
} catch (ae) {
|
15935
15935
|
it = ae;
|
15936
15936
|
}
|
15937
|
-
it && !(it instanceof Error) && (W(ct), k("%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).",
|
15937
|
+
it && !(it instanceof Error) && (W(ct), k("%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).", Oe || "React class", ve, ot, typeof it), W(null)), it instanceof Error && !(it.message in te) && (te[it.message] = !0, W(ct), k("Failed %s type: %s", ve, it.message), W(null));
|
15938
15938
|
}
|
15939
15939
|
}
|
15940
15940
|
}
|
@@ -15944,8 +15944,8 @@ function Ede() {
|
|
15944
15944
|
}
|
15945
15945
|
function ne(O) {
|
15946
15946
|
{
|
15947
|
-
var oe = typeof Symbol == "function" && Symbol.toStringTag,
|
15948
|
-
return
|
15947
|
+
var oe = typeof Symbol == "function" && Symbol.toStringTag, ve = oe && O[Symbol.toStringTag] || O.constructor.name || "Object";
|
15948
|
+
return ve;
|
15949
15949
|
}
|
15950
15950
|
}
|
15951
15951
|
function ue(O) {
|
@@ -15958,7 +15958,7 @@ function Ede() {
|
|
15958
15958
|
function ye(O) {
|
15959
15959
|
return "" + O;
|
15960
15960
|
}
|
15961
|
-
function
|
15961
|
+
function Be(O) {
|
15962
15962
|
if (ue(O))
|
15963
15963
|
return k("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ne(O)), ye(O);
|
15964
15964
|
}
|
@@ -15989,34 +15989,34 @@ function Ede() {
|
|
15989
15989
|
}
|
15990
15990
|
function Ce(O, oe) {
|
15991
15991
|
{
|
15992
|
-
var
|
15992
|
+
var ve = function() {
|
15993
15993
|
_e || (_e = !0, k("%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)", oe));
|
15994
15994
|
};
|
15995
|
-
|
15996
|
-
get:
|
15995
|
+
ve.isReactWarning = !0, Object.defineProperty(O, "key", {
|
15996
|
+
get: ve,
|
15997
15997
|
configurable: !0
|
15998
15998
|
});
|
15999
15999
|
}
|
16000
16000
|
}
|
16001
16001
|
function qe(O, oe) {
|
16002
16002
|
{
|
16003
|
-
var
|
16003
|
+
var ve = function() {
|
16004
16004
|
Ke || (Ke = !0, k("%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)", oe));
|
16005
16005
|
};
|
16006
|
-
|
16007
|
-
get:
|
16006
|
+
ve.isReactWarning = !0, Object.defineProperty(O, "ref", {
|
16007
|
+
get: ve,
|
16008
16008
|
configurable: !0
|
16009
16009
|
});
|
16010
16010
|
}
|
16011
16011
|
}
|
16012
|
-
var lt = function(O, oe,
|
16012
|
+
var lt = function(O, oe, ve, Oe, ct, mt, ot) {
|
16013
16013
|
var it = {
|
16014
16014
|
// This tag allows us to uniquely identify this as a React Element
|
16015
16015
|
$$typeof: e,
|
16016
16016
|
// Built-in properties that belong on the element
|
16017
16017
|
type: O,
|
16018
16018
|
key: oe,
|
16019
|
-
ref:
|
16019
|
+
ref: ve,
|
16020
16020
|
props: ot,
|
16021
16021
|
// Record the component responsible for creating this element.
|
16022
16022
|
_owner: mt
|
@@ -16030,7 +16030,7 @@ function Ede() {
|
|
16030
16030
|
configurable: !1,
|
16031
16031
|
enumerable: !1,
|
16032
16032
|
writable: !1,
|
16033
|
-
value:
|
16033
|
+
value: Oe
|
16034
16034
|
}), Object.defineProperty(it, "_source", {
|
16035
16035
|
configurable: !1,
|
16036
16036
|
enumerable: !1,
|
@@ -16038,10 +16038,10 @@ function Ede() {
|
|
16038
16038
|
value: ct
|
16039
16039
|
}), Object.freeze && (Object.freeze(it.props), Object.freeze(it)), it;
|
16040
16040
|
};
|
16041
|
-
function Ft(O, oe,
|
16041
|
+
function Ft(O, oe, ve, Oe, ct) {
|
16042
16042
|
{
|
16043
16043
|
var mt, ot = {}, it = null, Qe = null;
|
16044
|
-
|
16044
|
+
ve !== void 0 && (Be(ve), it = "" + ve), on(oe) && (Be(oe.key), it = "" + oe.key), zt(oe) && (Qe = oe.ref, un(oe, ct));
|
16045
16045
|
for (mt in oe)
|
16046
16046
|
X.call(oe, mt) && !Ee.hasOwnProperty(mt) && (ot[mt] = oe[mt]);
|
16047
16047
|
if (O && O.defaultProps) {
|
@@ -16053,20 +16053,20 @@ function Ede() {
|
|
16053
16053
|
var Ne = typeof O == "function" ? O.displayName || O.name || "Unknown" : O;
|
16054
16054
|
it && Ce(ot, Ne), Qe && qe(ot, Ne);
|
16055
16055
|
}
|
16056
|
-
return lt(O, it, Qe, ct,
|
16056
|
+
return lt(O, it, Qe, ct, Oe, Ye.current, ot);
|
16057
16057
|
}
|
16058
16058
|
}
|
16059
16059
|
var Tt = b.ReactCurrentOwner, rt = b.ReactDebugCurrentFrame;
|
16060
16060
|
function ht(O) {
|
16061
16061
|
if (O) {
|
16062
|
-
var oe = O._owner,
|
16063
|
-
rt.setExtraStackFrame(
|
16062
|
+
var oe = O._owner, ve = $(O.type, O._source, oe ? oe.type : null);
|
16063
|
+
rt.setExtraStackFrame(ve);
|
16064
16064
|
} else
|
16065
16065
|
rt.setExtraStackFrame(null);
|
16066
16066
|
}
|
16067
16067
|
var Rt;
|
16068
16068
|
Rt = !1;
|
16069
|
-
function
|
16069
|
+
function $e(O) {
|
16070
16070
|
return typeof O == "object" && O !== null && O.$$typeof === e;
|
16071
16071
|
}
|
16072
16072
|
function Ht() {
|
@@ -16089,10 +16089,10 @@ Check the render method of \`` + O + "`.";
|
|
16089
16089
|
{
|
16090
16090
|
var oe = Ht();
|
16091
16091
|
if (!oe) {
|
16092
|
-
var
|
16093
|
-
|
16092
|
+
var ve = typeof O == "string" ? O : O.displayName || O.name;
|
16093
|
+
ve && (oe = `
|
16094
16094
|
|
16095
|
-
Check the top-level render call using <` +
|
16095
|
+
Check the top-level render call using <` + ve + ">.");
|
16096
16096
|
}
|
16097
16097
|
return oe;
|
16098
16098
|
}
|
@@ -16102,12 +16102,12 @@ Check the top-level render call using <` + we + ">.");
|
|
16102
16102
|
if (!O._store || O._store.validated || O.key != null)
|
16103
16103
|
return;
|
16104
16104
|
O._store.validated = !0;
|
16105
|
-
var
|
16106
|
-
if (Nt[
|
16105
|
+
var ve = gn(oe);
|
16106
|
+
if (Nt[ve])
|
16107
16107
|
return;
|
16108
|
-
Nt[
|
16109
|
-
var
|
16110
|
-
O && O._owner && O._owner !== Tt.current && (
|
16108
|
+
Nt[ve] = !0;
|
16109
|
+
var Oe = "";
|
16110
|
+
O && O._owner && O._owner !== Tt.current && (Oe = " It was passed a child from " + V(O._owner.type) + "."), ht(O), k('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', ve, Oe), ht(null);
|
16111
16111
|
}
|
16112
16112
|
}
|
16113
16113
|
function nr(O, oe) {
|
@@ -16115,17 +16115,17 @@ Check the top-level render call using <` + we + ">.");
|
|
16115
16115
|
if (typeof O != "object")
|
16116
16116
|
return;
|
16117
16117
|
if (B(O))
|
16118
|
-
for (var
|
16119
|
-
var
|
16120
|
-
|
16118
|
+
for (var ve = 0; ve < O.length; ve++) {
|
16119
|
+
var Oe = O[ve];
|
16120
|
+
$e(Oe) && Tn(Oe, oe);
|
16121
16121
|
}
|
16122
|
-
else if (
|
16122
|
+
else if ($e(O))
|
16123
16123
|
O._store && (O._store.validated = !0);
|
16124
16124
|
else if (O) {
|
16125
16125
|
var ct = g(O);
|
16126
16126
|
if (typeof ct == "function" && ct !== O.entries)
|
16127
16127
|
for (var mt = ct.call(O), ot; !(ot = mt.next()).done; )
|
16128
|
-
|
16128
|
+
$e(ot.value) && Tn(ot.value, oe);
|
16129
16129
|
}
|
16130
16130
|
}
|
16131
16131
|
}
|
@@ -16134,18 +16134,18 @@ Check the top-level render call using <` + we + ">.");
|
|
16134
16134
|
var oe = O.type;
|
16135
16135
|
if (oe == null || typeof oe == "string")
|
16136
16136
|
return;
|
16137
|
-
var
|
16137
|
+
var ve;
|
16138
16138
|
if (typeof oe == "function")
|
16139
|
-
|
16139
|
+
ve = oe.propTypes;
|
16140
16140
|
else if (typeof oe == "object" && (oe.$$typeof === l || // Note: Memo only checks outer props here.
|
16141
16141
|
// Inner props are checked in the reconciler.
|
16142
16142
|
oe.$$typeof === f))
|
16143
|
-
|
16143
|
+
ve = oe.propTypes;
|
16144
16144
|
else
|
16145
16145
|
return;
|
16146
|
-
if (
|
16147
|
-
var
|
16148
|
-
C(
|
16146
|
+
if (ve) {
|
16147
|
+
var Oe = V(oe);
|
16148
|
+
C(ve, O.props, "prop", Oe, O);
|
16149
16149
|
} else if (oe.PropTypes !== void 0 && !Rt) {
|
16150
16150
|
Rt = !0;
|
16151
16151
|
var ct = V(oe);
|
@@ -16156,10 +16156,10 @@ Check the top-level render call using <` + we + ">.");
|
|
16156
16156
|
}
|
16157
16157
|
function Tr(O) {
|
16158
16158
|
{
|
16159
|
-
for (var oe = Object.keys(O.props),
|
16160
|
-
var
|
16161
|
-
if (
|
16162
|
-
ht(O), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",
|
16159
|
+
for (var oe = Object.keys(O.props), ve = 0; ve < oe.length; ve++) {
|
16160
|
+
var Oe = oe[ve];
|
16161
|
+
if (Oe !== "children" && Oe !== "key") {
|
16162
|
+
ht(O), k("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Oe), ht(null);
|
16163
16163
|
break;
|
16164
16164
|
}
|
16165
16165
|
}
|
@@ -16167,7 +16167,7 @@ Check the top-level render call using <` + we + ">.");
|
|
16167
16167
|
}
|
16168
16168
|
}
|
16169
16169
|
var Ei = {};
|
16170
|
-
function Ys(O, oe,
|
16170
|
+
function Ys(O, oe, ve, Oe, ct, mt) {
|
16171
16171
|
{
|
16172
16172
|
var ot = j(O);
|
16173
16173
|
if (!ot) {
|
@@ -16178,13 +16178,13 @@ Check the top-level render call using <` + we + ">.");
|
|
16178
16178
|
var ae;
|
16179
16179
|
O === null ? ae = "null" : B(O) ? ae = "array" : O !== void 0 && O.$$typeof === e ? (ae = "<" + (V(O.type) || "Unknown") + " />", it = " Did you accidentally export a JSX literal instead of a component?") : ae = typeof O, k("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ae, it);
|
16180
16180
|
}
|
16181
|
-
var Ne = Ft(O, oe,
|
16181
|
+
var Ne = Ft(O, oe, ve, ct, mt);
|
16182
16182
|
if (Ne == null)
|
16183
16183
|
return Ne;
|
16184
16184
|
if (ot) {
|
16185
16185
|
var Je = oe.children;
|
16186
16186
|
if (Je !== void 0)
|
16187
|
-
if (
|
16187
|
+
if (Oe)
|
16188
16188
|
if (B(Je)) {
|
16189
16189
|
for (var Qt = 0; Qt < Je.length; Qt++)
|
16190
16190
|
nr(Je[Qt], O);
|
@@ -16211,11 +16211,11 @@ React keys must be passed directly to JSX without using spread:
|
|
16211
16211
|
return O === r ? Tr(Ne) : rr(Ne), Ne;
|
16212
16212
|
}
|
16213
16213
|
}
|
16214
|
-
function li(O, oe,
|
16215
|
-
return Ys(O, oe,
|
16214
|
+
function li(O, oe, ve) {
|
16215
|
+
return Ys(O, oe, ve, !0);
|
16216
16216
|
}
|
16217
|
-
function vo(O, oe,
|
16218
|
-
return Ys(O, oe,
|
16217
|
+
function vo(O, oe, ve) {
|
16218
|
+
return Ys(O, oe, ve, !1);
|
16219
16219
|
}
|
16220
16220
|
var wl = vo, zc = li;
|
16221
16221
|
zg.Fragment = r, zg.jsx = wl, zg.jsxs = zc;
|
@@ -43244,7 +43244,7 @@ var US = "PopperContent", [LIe, TIe] = rW(US), lW = E.forwardRef(
|
|
43244
43244
|
ai(() => {
|
43245
43245
|
pe && (me == null || me());
|
43246
43246
|
}, [pe, me]);
|
43247
|
-
const
|
43247
|
+
const we = (n = ce.arrow) == null ? void 0 : n.x, Re = (r = ce.arrow) == null ? void 0 : r.y, Pe = ((i = ce.arrow) == null ? void 0 : i.centerOffset) !== 0, [Se, Le] = E.useState();
|
43248
43248
|
return ai(() => {
|
43249
43249
|
L && Le(window.getComputedStyle(L).zIndex);
|
43250
43250
|
}, [L]), /* @__PURE__ */ A.jsx(
|
@@ -43277,7 +43277,7 @@ var US = "PopperContent", [LIe, TIe] = rW(US), lW = E.forwardRef(
|
|
43277
43277
|
scope: l,
|
43278
43278
|
placedSide: be,
|
43279
43279
|
onArrowChange: R,
|
43280
|
-
arrowX:
|
43280
|
+
arrowX: we,
|
43281
43281
|
arrowY: Re,
|
43282
43282
|
shouldHideArrow: Pe,
|
43283
43283
|
children: /* @__PURE__ */ A.jsx(
|
@@ -48337,7 +48337,7 @@ function KG() {
|
|
48337
48337
|
}), []), t;
|
48338
48338
|
}
|
48339
48339
|
function CBe() {
|
48340
|
-
const t = KG(), [e, n] =
|
48340
|
+
const t = KG(), [e, n] = ze(0), r = kt(() => {
|
48341
48341
|
t.current && n(e + 1);
|
48342
48342
|
}, [e]);
|
48343
48343
|
return [kt(() => xn.postRender(r), [r]), e];
|
@@ -48633,7 +48633,7 @@ const JG = ({
|
|
48633
48633
|
onAddTag: n,
|
48634
48634
|
isPreviewMode: r
|
48635
48635
|
}) => {
|
48636
|
-
const [i, s] =
|
48636
|
+
const [i, s] = ze(""), [a, o] = ze(!1), l = Xe(null), c = (h) => {
|
48637
48637
|
s(h), o(!0);
|
48638
48638
|
}, u = (h) => {
|
48639
48639
|
const p = t.find(
|
@@ -50426,7 +50426,7 @@ const tv = xe.forwardRef(
|
|
50426
50426
|
contentType: a = "icon",
|
50427
50427
|
...o
|
50428
50428
|
}, l) => {
|
50429
|
-
const [c, u] =
|
50429
|
+
const [c, u] = ze(r), f = (d) => {
|
50430
50430
|
!s && u(d), !s && n(d);
|
50431
50431
|
};
|
50432
50432
|
return /* @__PURE__ */ A.jsx(
|
@@ -50669,7 +50669,7 @@ function jw(t, e) {
|
|
50669
50669
|
return typeof t == "function" ? t(e) : t && (t.current = e), t;
|
50670
50670
|
}
|
50671
50671
|
function vFe(t, e) {
|
50672
|
-
var n =
|
50672
|
+
var n = ze(function() {
|
50673
50673
|
return {
|
50674
50674
|
// value
|
50675
50675
|
value: t,
|
@@ -52448,9 +52448,9 @@ var jl = 10, [qY, A1] = Y2(lf), PVe = "SelectContentImpl", UY = E.forwardRef(
|
|
52448
52448
|
}, [v]), ME();
|
52449
52449
|
const _ = E.useCallback(
|
52450
52450
|
(me) => {
|
52451
|
-
const [
|
52451
|
+
const [we, ...Re] = H().map((Le) => Le.ref.current), [Pe] = Re.slice(-1), Se = document.activeElement;
|
52452
52452
|
for (const Le of me)
|
52453
|
-
if (Le === Se || (Le == null || Le.scrollIntoView({ block: "nearest" }), Le ===
|
52453
|
+
if (Le === Se || (Le == null || Le.scrollIntoView({ block: "nearest" }), Le === we && x && (x.scrollTop = 0), Le === Pe && x && (x.scrollTop = x.scrollHeight), Le == null || Le.focus(), document.activeElement !== Se)) return;
|
52454
52454
|
},
|
52455
52455
|
[H, x]
|
52456
52456
|
), Z = E.useCallback(
|
@@ -52464,17 +52464,17 @@ var jl = 10, [qY, A1] = Y2(lf), PVe = "SelectContentImpl", UY = E.forwardRef(
|
|
52464
52464
|
E.useEffect(() => {
|
52465
52465
|
if (v) {
|
52466
52466
|
let me = { x: 0, y: 0 };
|
52467
|
-
const
|
52467
|
+
const we = (Pe) => {
|
52468
52468
|
var Se, Le;
|
52469
52469
|
me = {
|
52470
52470
|
x: Math.abs(Math.round(Pe.pageX) - (((Se = Y.current) == null ? void 0 : Se.x) ?? 0)),
|
52471
52471
|
y: Math.abs(Math.round(Pe.pageY) - (((Le = Y.current) == null ? void 0 : Le.y) ?? 0))
|
52472
52472
|
};
|
52473
52473
|
}, Re = (Pe) => {
|
52474
|
-
me.x <= 10 && me.y <= 10 ? Pe.preventDefault() : v.contains(Pe.target) || Q(!1), document.removeEventListener("pointermove",
|
52474
|
+
me.x <= 10 && me.y <= 10 ? Pe.preventDefault() : v.contains(Pe.target) || Q(!1), document.removeEventListener("pointermove", we), Y.current = null;
|
52475
52475
|
};
|
52476
|
-
return Y.current !== null && (document.addEventListener("pointermove",
|
52477
|
-
document.removeEventListener("pointermove",
|
52476
|
+
return Y.current !== null && (document.addEventListener("pointermove", we), document.addEventListener("pointerup", Re, { capture: !0, once: !0 })), () => {
|
52477
|
+
document.removeEventListener("pointermove", we), document.removeEventListener("pointerup", Re, { capture: !0 });
|
52478
52478
|
};
|
52479
52479
|
}
|
52480
52480
|
}, [v, Q, Y]), E.useEffect(() => {
|
@@ -52484,18 +52484,18 @@ var jl = 10, [qY, A1] = Y2(lf), PVe = "SelectContentImpl", UY = E.forwardRef(
|
|
52484
52484
|
};
|
52485
52485
|
}, [Q]);
|
52486
52486
|
const [se, fe] = aK((me) => {
|
52487
|
-
const
|
52487
|
+
const we = H().filter((Se) => !Se.disabled), Re = we.find((Se) => Se.ref.current === document.activeElement), Pe = oK(we, me, Re);
|
52488
52488
|
Pe && setTimeout(() => Pe.ref.current.focus());
|
52489
52489
|
}), ie = E.useCallback(
|
52490
|
-
(me,
|
52490
|
+
(me, we, Re) => {
|
52491
52491
|
const Pe = !q.current && !Re;
|
52492
|
-
(k.value !== void 0 && k.value ===
|
52492
|
+
(k.value !== void 0 && k.value === we || Pe) && (D(me), Pe && (q.current = !0));
|
52493
52493
|
},
|
52494
52494
|
[k.value]
|
52495
52495
|
), pe = E.useCallback(() => v == null ? void 0 : v.focus(), [v]), ce = E.useCallback(
|
52496
|
-
(me,
|
52496
|
+
(me, we, Re) => {
|
52497
52497
|
const Pe = !q.current && !Re;
|
52498
|
-
(k.value !== void 0 && k.value ===
|
52498
|
+
(k.value !== void 0 && k.value === we || Pe) && R(me);
|
52499
52499
|
},
|
52500
52500
|
[k.value]
|
52501
52501
|
), be = r === "popper" ? hM : WY, J = be === hM ? {
|
@@ -52535,8 +52535,8 @@ var jl = 10, [qY, A1] = Y2(lf), PVe = "SelectContentImpl", UY = E.forwardRef(
|
|
52535
52535
|
me.preventDefault();
|
52536
52536
|
},
|
52537
52537
|
onUnmountAutoFocus: st(i, (me) => {
|
52538
|
-
var
|
52539
|
-
(
|
52538
|
+
var we;
|
52539
|
+
(we = k.trigger) == null || we.focus({ preventScroll: !0 }), me.preventDefault();
|
52540
52540
|
}),
|
52541
52541
|
children: /* @__PURE__ */ A.jsx(
|
52542
52542
|
w1,
|
@@ -52568,8 +52568,8 @@ var jl = 10, [qY, A1] = Y2(lf), PVe = "SelectContentImpl", UY = E.forwardRef(
|
|
52568
52568
|
...b.style
|
52569
52569
|
},
|
52570
52570
|
onKeyDown: st(b.onKeyDown, (me) => {
|
52571
|
-
const
|
52572
|
-
if (me.key === "Tab" && me.preventDefault(), !
|
52571
|
+
const we = me.ctrlKey || me.altKey || me.metaKey;
|
52572
|
+
if (me.key === "Tab" && me.preventDefault(), !we && me.key.length === 1 && fe(me.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(me.key)) {
|
52573
52573
|
let Re = H().filter((Pe) => !Pe.disabled).map((Pe) => Pe.ref.current);
|
52574
52574
|
if (["ArrowUp", "End"].includes(me.key) && (Re = Re.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(me.key)) {
|
52575
52575
|
const Pe = me.target, Se = Re.indexOf(Pe);
|
@@ -52600,15 +52600,15 @@ var RVe = "SelectItemAlignedPosition", WY = E.forwardRef((t, e) => {
|
|
52600
52600
|
const Pe = S.right - j.right, Se = window.innerWidth - D.right - Pe, Le = window.innerWidth - L.right - Se, Te = L.width + Le, le = Math.max(Te, S.width), $ = window.innerWidth - jl, X = mR(Se, [jl, $ - le]);
|
52601
52601
|
o.style.minWidth = Te + "px", o.style.right = X + "px";
|
52602
52602
|
}
|
52603
|
-
const R = d(), H = window.innerHeight - jl * 2, V = m.scrollHeight, G = window.getComputedStyle(c), q = parseInt(G.borderTopWidth, 10), _ = parseInt(G.paddingTop, 10), Z = parseInt(G.borderBottomWidth, 10), Q = parseInt(G.paddingBottom, 10), Y = q + _ + V + Q + Z, se = Math.min(g.offsetHeight * 5, Y), fe = window.getComputedStyle(m), ie = parseInt(fe.paddingTop, 10), pe = parseInt(fe.paddingBottom, 10), ce = L.top + L.height / 2 - jl, be = H - ce, J = g.offsetHeight / 2, me = g.offsetTop + J,
|
52604
|
-
if (
|
52603
|
+
const R = d(), H = window.innerHeight - jl * 2, V = m.scrollHeight, G = window.getComputedStyle(c), q = parseInt(G.borderTopWidth, 10), _ = parseInt(G.paddingTop, 10), Z = parseInt(G.borderBottomWidth, 10), Q = parseInt(G.paddingBottom, 10), Y = q + _ + V + Q + Z, se = Math.min(g.offsetHeight * 5, Y), fe = window.getComputedStyle(m), ie = parseInt(fe.paddingTop, 10), pe = parseInt(fe.paddingBottom, 10), ce = L.top + L.height / 2 - jl, be = H - ce, J = g.offsetHeight / 2, me = g.offsetTop + J, we = q + _ + me, Re = Y - we;
|
52604
|
+
if (we <= ce) {
|
52605
52605
|
const Pe = g === R[R.length - 1].ref.current;
|
52606
52606
|
o.style.bottom = "0px";
|
52607
52607
|
const Se = c.clientHeight - m.offsetTop - m.offsetHeight, Le = Math.max(
|
52608
52608
|
be,
|
52609
52609
|
J + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
52610
52610
|
(Pe ? pe : 0) + Se + Z
|
52611
|
-
), Te =
|
52611
|
+
), Te = we + Le;
|
52612
52612
|
o.style.height = Te + "px";
|
52613
52613
|
} else {
|
52614
52614
|
const Pe = g === R[0].ref.current;
|
@@ -52618,7 +52618,7 @@ var RVe = "SelectItemAlignedPosition", WY = E.forwardRef((t, e) => {
|
|
52618
52618
|
q + m.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
52619
52619
|
(Pe ? ie : 0) + J
|
52620
52620
|
) + Re;
|
52621
|
-
o.style.height = Se + "px", m.scrollTop =
|
52621
|
+
o.style.height = Se + "px", m.scrollTop = we - ce + m.offsetTop;
|
52622
52622
|
}
|
52623
52623
|
o.style.margin = `${jl}px 0`, o.style.minHeight = se + "px", o.style.maxHeight = H + "px", r == null || r(), requestAnimationFrame(() => h.current = !0);
|
52624
52624
|
}
|
@@ -53098,7 +53098,7 @@ const Yg = {
|
|
53098
53098
|
isAnimated: s = !1,
|
53099
53099
|
...a
|
53100
53100
|
}, o) => {
|
53101
|
-
const [l, c] =
|
53101
|
+
const [l, c] = ze(t), [u, f] = ze(
|
53102
53102
|
Object.keys(Yg).findIndex(
|
53103
53103
|
(h) => Yg[h] === t
|
53104
53104
|
)
|
@@ -54004,9 +54004,9 @@ function CK({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: i, sn
|
|
54004
54004
|
document.body.style.pointerEvents = "auto";
|
54005
54005
|
}), rt || (document.body.style.pointerEvents = "auto");
|
54006
54006
|
}
|
54007
|
-
}), [Z, Q] = xe.useState(!1), [Y, se] = xe.useState(!1), [fe, ie] = xe.useState(!1), pe = xe.useRef(null), ce = xe.useRef(null), be = xe.useRef(null), J = xe.useRef(null), me = xe.useRef(null),
|
54007
|
+
}), [Z, Q] = xe.useState(!1), [Y, se] = xe.useState(!1), [fe, ie] = xe.useState(!1), pe = xe.useRef(null), ce = xe.useRef(null), be = xe.useRef(null), J = xe.useRef(null), me = xe.useRef(null), we = xe.useRef(!1), Re = xe.useRef(null), Pe = xe.useRef(0), Se = xe.useRef(!1), Le = xe.useRef(!x), Te = xe.useRef(0), le = xe.useRef(null), $ = xe.useRef(((V = le.current) == null ? void 0 : V.getBoundingClientRect().height) || 0), X = xe.useRef(((G = le.current) == null ? void 0 : G.getBoundingClientRect().width) || 0), te = xe.useRef(0), De = xe.useCallback((rt) => {
|
54008
54008
|
s && rt === ne.length - 1 && (ce.current = /* @__PURE__ */ new Date());
|
54009
|
-
}, []), { activeSnapPoint: W, activeSnapPointIndex: C, setActiveSnapPoint: P, onRelease: B, snapPointsOffset: ne, onDrag: ue, shouldFade: ye, getPercentageDragged:
|
54009
|
+
}, []), { activeSnapPoint: W, activeSnapPointIndex: C, setActiveSnapPoint: P, onRelease: B, snapPointsOffset: ne, onDrag: ue, shouldFade: ye, getPercentageDragged: Be } = N_e({
|
54010
54010
|
snapPoints: s,
|
54011
54011
|
activeSnapPointProp: h,
|
54012
54012
|
setActiveSnapPointProp: p,
|
@@ -54034,15 +54034,15 @@ function CK({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: i, sn
|
|
54034
54034
|
}
|
54035
54035
|
function _e(rt) {
|
54036
54036
|
var ht, Rt;
|
54037
|
-
!u && !s || le.current && !le.current.contains(rt.target) || ($.current = ((ht = le.current) == null ? void 0 : ht.getBoundingClientRect().height) || 0, X.current = ((Rt = le.current) == null ? void 0 : Rt.getBoundingClientRect().width) || 0, se(!0), be.current = /* @__PURE__ */ new Date(), yK() && window.addEventListener("touchend", () =>
|
54037
|
+
!u && !s || le.current && !le.current.contains(rt.target) || ($.current = ((ht = le.current) == null ? void 0 : ht.getBoundingClientRect().height) || 0, X.current = ((Rt = le.current) == null ? void 0 : Rt.getBoundingClientRect().width) || 0, se(!0), be.current = /* @__PURE__ */ new Date(), yK() && window.addEventListener("touchend", () => we.current = !1, {
|
54038
54038
|
once: !0
|
54039
54039
|
}), rt.target.setPointerCapture(rt.pointerId), Pe.current = Mr(w) ? rt.pageY : rt.pageX);
|
54040
54040
|
}
|
54041
54041
|
function Ke(rt, ht) {
|
54042
54042
|
var Rt;
|
54043
|
-
let
|
54043
|
+
let $e = rt;
|
54044
54044
|
const Ht = (Rt = window.getSelection()) == null ? void 0 : Rt.toString(), An = le.current ? Jg(le.current, w) : null, Nt = /* @__PURE__ */ new Date();
|
54045
|
-
if (
|
54045
|
+
if ($e.tagName === "SELECT" || $e.hasAttribute("data-vaul-no-drag") || $e.closest("[data-vaul-no-drag]"))
|
54046
54046
|
return !1;
|
54047
54047
|
if (w === "right" || w === "left")
|
54048
54048
|
return !0;
|
@@ -54054,32 +54054,32 @@ function CK({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: i, sn
|
|
54054
54054
|
return !1;
|
54055
54055
|
if (me.current && Nt.getTime() - me.current.getTime() < c && An === 0 || ht)
|
54056
54056
|
return me.current = Nt, !1;
|
54057
|
-
for (;
|
54058
|
-
if (
|
54059
|
-
if (
|
54057
|
+
for (; $e; ) {
|
54058
|
+
if ($e.scrollHeight > $e.clientHeight) {
|
54059
|
+
if ($e.scrollTop !== 0)
|
54060
54060
|
return me.current = /* @__PURE__ */ new Date(), !1;
|
54061
|
-
if (
|
54061
|
+
if ($e.getAttribute("role") === "dialog")
|
54062
54062
|
return !0;
|
54063
54063
|
}
|
54064
|
-
|
54064
|
+
$e = $e.parentNode;
|
54065
54065
|
}
|
54066
54066
|
return !0;
|
54067
54067
|
}
|
54068
54068
|
function zt(rt) {
|
54069
54069
|
if (le.current && Y) {
|
54070
|
-
const ht = w === "bottom" || w === "right" ? 1 : -1, Rt = (Pe.current - (Mr(w) ? rt.pageY : rt.pageX)) * ht,
|
54070
|
+
const ht = w === "bottom" || w === "right" ? 1 : -1, Rt = (Pe.current - (Mr(w) ? rt.pageY : rt.pageX)) * ht, $e = Rt > 0, Ht = s && !u && !$e;
|
54071
54071
|
if (Ht && C === 0) return;
|
54072
54072
|
const An = Math.abs(Rt), Nt = document.querySelector("[data-vaul-drawer-wrapper]"), gn = w === "bottom" || w === "top" ? $.current : X.current;
|
54073
54073
|
let Tn = An / gn;
|
54074
|
-
const nr =
|
54075
|
-
if (nr !== null && (Tn = nr), Ht && Tn >= 1 || !
|
54076
|
-
if (le.current.classList.add(_w),
|
54074
|
+
const nr = Be(An, $e);
|
54075
|
+
if (nr !== null && (Tn = nr), Ht && Tn >= 1 || !we.current && !Ke(rt.target, $e)) return;
|
54076
|
+
if (le.current.classList.add(_w), we.current = !0, Nr(le.current, {
|
54077
54077
|
transition: "none"
|
54078
54078
|
}), Nr(pe.current, {
|
54079
54079
|
transition: "none"
|
54080
54080
|
}), s && ue({
|
54081
54081
|
draggedDistance: Rt
|
54082
|
-
}),
|
54082
|
+
}), $e && !s) {
|
54083
54083
|
const Tr = A_e(Rt), Ei = Math.min(Tr * -1, 0) * ht;
|
54084
54084
|
Nr(le.current, {
|
54085
54085
|
transform: Mr(w) ? `translate3d(0, ${Ei}px, 0)` : `translate3d(${Ei}px, 0, 0)`
|
@@ -54116,8 +54116,8 @@ function CK({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: i, sn
|
|
54116
54116
|
if (!le.current || !D) return;
|
54117
54117
|
const Rt = document.activeElement;
|
54118
54118
|
if (bM(Rt) || Se.current) {
|
54119
|
-
var
|
54120
|
-
const Ht = ((
|
54119
|
+
var $e;
|
54120
|
+
const Ht = (($e = window.visualViewport) == null ? void 0 : $e.height) || 0, An = window.innerHeight;
|
54121
54121
|
let Nt = An - Ht;
|
54122
54122
|
const gn = le.current.getBoundingClientRect().height || 0, Tn = gn > An * 0.8;
|
54123
54123
|
te.current || (te.current = gn);
|
@@ -54173,26 +54173,26 @@ function CK({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: i, sn
|
|
54173
54173
|
}, !0);
|
54174
54174
|
}
|
54175
54175
|
function Ce() {
|
54176
|
-
!Y || !le.current || (le.current.classList.remove(_w),
|
54176
|
+
!Y || !le.current || (le.current.classList.remove(_w), we.current = !1, se(!1), J.current = /* @__PURE__ */ new Date());
|
54177
54177
|
}
|
54178
54178
|
function qe(rt) {
|
54179
54179
|
if (!Y || !le.current) return;
|
54180
|
-
le.current.classList.remove(_w),
|
54180
|
+
le.current.classList.remove(_w), we.current = !1, se(!1), J.current = /* @__PURE__ */ new Date();
|
54181
54181
|
const ht = Jg(le.current, w);
|
54182
54182
|
if (!rt || !Ke(rt.target, !1) || !ht || Number.isNaN(ht) || be.current === null) return;
|
54183
|
-
const Rt = J.current.getTime() - be.current.getTime(),
|
54183
|
+
const Rt = J.current.getTime() - be.current.getTime(), $e = Pe.current - (Mr(w) ? rt.pageY : rt.pageX), Ht = Math.abs($e) / Rt;
|
54184
54184
|
if (Ht > 0.05 && (ie(!0), setTimeout(() => {
|
54185
54185
|
ie(!1);
|
54186
54186
|
}, 200)), s) {
|
54187
54187
|
B({
|
54188
|
-
draggedDistance:
|
54188
|
+
draggedDistance: $e * (w === "bottom" || w === "right" ? 1 : -1),
|
54189
54189
|
closeDrawer: on,
|
54190
54190
|
velocity: Ht,
|
54191
54191
|
dismissible: u
|
54192
54192
|
}), i == null || i(rt, !0);
|
54193
54193
|
return;
|
54194
54194
|
}
|
54195
|
-
if (w === "bottom" || w === "right" ?
|
54195
|
+
if (w === "bottom" || w === "right" ? $e > 0 : $e < 0) {
|
54196
54196
|
un(), i == null || i(rt, !0);
|
54197
54197
|
return;
|
54198
54198
|
}
|
@@ -54223,26 +54223,26 @@ function CK({ open: t, onOpenChange: e, children: n, onDrag: r, onRelease: i, sn
|
|
54223
54223
|
transition: `transform ${Un.DURATION}s cubic-bezier(${Un.EASE.join(",")})`,
|
54224
54224
|
transform: Mr(w) ? `scale(${ht}) translate3d(0, ${Rt}px, 0)` : `scale(${ht}) translate3d(${Rt}px, 0, 0)`
|
54225
54225
|
}), !rt && le.current && (Re.current = setTimeout(() => {
|
54226
|
-
const
|
54226
|
+
const $e = Jg(le.current, w);
|
54227
54227
|
Nr(le.current, {
|
54228
54228
|
transition: "none",
|
54229
|
-
transform: Mr(w) ? `translate3d(0, ${
|
54229
|
+
transform: Mr(w) ? `translate3d(0, ${$e}px, 0)` : `translate3d(${$e}px, 0, 0)`
|
54230
54230
|
});
|
54231
54231
|
}, 500));
|
54232
54232
|
}
|
54233
54233
|
function Ft(rt, ht) {
|
54234
54234
|
if (ht < 0) return;
|
54235
|
-
const Rt = (window.innerWidth - Qg) / window.innerWidth,
|
54235
|
+
const Rt = (window.innerWidth - Qg) / window.innerWidth, $e = Rt + ht * (1 - Rt), Ht = -16 + ht * Qg;
|
54236
54236
|
Nr(le.current, {
|
54237
|
-
transform: Mr(w) ? `scale(${
|
54237
|
+
transform: Mr(w) ? `scale(${$e}) translate3d(0, ${Ht}px, 0)` : `scale(${$e}) translate3d(${Ht}px, 0, 0)`,
|
54238
54238
|
transition: "none"
|
54239
54239
|
});
|
54240
54240
|
}
|
54241
54241
|
function Tt(rt, ht) {
|
54242
|
-
const Rt = Mr(w) ? window.innerHeight : window.innerWidth,
|
54242
|
+
const Rt = Mr(w) ? window.innerHeight : window.innerWidth, $e = ht ? (Rt - Qg) / Rt : 1, Ht = ht ? -16 : 0;
|
54243
54243
|
ht && Nr(le.current, {
|
54244
54244
|
transition: `transform ${Un.DURATION}s cubic-bezier(${Un.EASE.join(",")})`,
|
54245
|
-
transform: Mr(w) ? `scale(${
|
54245
|
+
transform: Mr(w) ? `scale(${$e}) translate3d(0, ${Ht}px, 0)` : `scale(${$e}) translate3d(${Ht}px, 0, 0)`
|
54246
54246
|
});
|
54247
54247
|
}
|
54248
54248
|
return xe.useEffect(() => {
|
@@ -54644,7 +54644,7 @@ function W_e(t, {
|
|
54644
54644
|
defaultValue: e = !1,
|
54645
54645
|
initializeWithValue: n = !0
|
54646
54646
|
} = {}) {
|
54647
|
-
const r = (o) => U_e ? e : window.matchMedia(o).matches, [i, s] =
|
54647
|
+
const r = (o) => U_e ? e : window.matchMedia(o).matches, [i, s] = ze(() => n ? r(t) : e);
|
54648
54648
|
function a() {
|
54649
54649
|
s(r(t));
|
54650
54650
|
}
|
@@ -55300,7 +55300,7 @@ sn(
|
|
55300
55300
|
)
|
55301
55301
|
);
|
55302
55302
|
const yqe = ({ content: t }) => {
|
55303
|
-
const [e, n] =
|
55303
|
+
const [e, n] = ze(0), r = Xe(null);
|
55304
55304
|
return Fe(() => {
|
55305
55305
|
t && r.current ? n(r.current.scrollHeight) : n(0);
|
55306
55306
|
}, [t]), /* @__PURE__ */ A.jsx(
|
@@ -55703,7 +55703,7 @@ const ns = ({
|
|
55703
55703
|
onClose: i,
|
55704
55704
|
...s
|
55705
55705
|
}) => {
|
55706
|
-
const [a, o] =
|
55706
|
+
const [a, o] = ze(!1), l = kt(
|
55707
55707
|
(f) => {
|
55708
55708
|
n || (o((d) => !d), xe.isValidElement(e) && e.props.onClick && e.props.onClick(f));
|
55709
55709
|
},
|
@@ -72819,7 +72819,7 @@ function AUe(t) {
|
|
72819
72819
|
}, e);
|
72820
72820
|
}
|
72821
72821
|
function SUe(t) {
|
72822
|
-
var e, n =
|
72822
|
+
var e, n = ze(function() {
|
72823
72823
|
return CR(t);
|
72824
72824
|
}), r = n[0], i = n[1];
|
72825
72825
|
return Fe(function() {
|
@@ -72964,7 +72964,7 @@ function UUe(t) {
|
|
72964
72964
|
}
|
72965
72965
|
function SR(t, e) {
|
72966
72966
|
e === void 0 && (e = 0);
|
72967
|
-
var n =
|
72967
|
+
var n = ze(t), r = n[0], i = n[1], s = Xe(null);
|
72968
72968
|
function a(o) {
|
72969
72969
|
return new Promise(function(l) {
|
72970
72970
|
var c;
|
@@ -73006,7 +73006,7 @@ function YUe(t) {
|
|
73006
73006
|
}, [t]);
|
73007
73007
|
}
|
73008
73008
|
function KUe(t) {
|
73009
|
-
var e = t.children, n = zJ(), r = TUe(), i = HUe(), s = Xe(Mm), a = Xe(!1), o = Xe(!1), l = Xe(n), c = SR(Date.now(), 200), u = SR("", 100), f =
|
73009
|
+
var e = t.children, n = zJ(), r = TUe(), i = HUe(), s = Xe(Mm), a = Xe(!1), o = Xe(!1), l = Xe(n), c = SR(Date.now(), 200), u = SR("", 100), f = ze(!1), d = ze(r), h = ze(null), p = ze(/* @__PURE__ */ new Set()), m = ze(null), g = ze(i), b = ze(!1), k = b[0], v = b[1];
|
73010
73010
|
return YUe(v), je(Na.Provider, {
|
73011
73011
|
value: {
|
73012
73012
|
activeCategoryState: h,
|
@@ -74546,7 +74546,7 @@ var Uw = /* @__PURE__ */ Vn.create({
|
|
74546
74546
|
}
|
74547
74547
|
}), Ww = !1;
|
74548
74548
|
function fGe() {
|
74549
|
-
var t =
|
74549
|
+
var t = ze(Ww), e = t[0], n = t[1];
|
74550
74550
|
return Fe(function() {
|
74551
74551
|
n(!0), Ww = !0;
|
74552
74552
|
}, []), e || Ww;
|
@@ -75038,7 +75038,7 @@ function TGe() {
|
|
75038
75038
|
}, je(NGe, null), je(AGe, null), e ? je(LGe, null) : null) : null;
|
75039
75039
|
}
|
75040
75040
|
function NGe() {
|
75041
|
-
var t, e = PJ(), n =
|
75041
|
+
var t, e = PJ(), n = ze(null), r = n[0], i = n[1], s = jf(), a = X2(), o = a[0], l = Q2();
|
75042
75042
|
MGe(e.showPreview, i);
|
75043
75043
|
var c = a2((t = r == null ? void 0 : r.unified) != null ? t : r == null ? void 0 : r.originalUnified), u = c != null && r != null;
|
75044
75044
|
return je(f, null);
|
@@ -75216,7 +75216,7 @@ var BR = {
|
|
75216
75216
|
".epr-auto-theme": /* @__PURE__ */ $n({}, FR)
|
75217
75217
|
}));
|
75218
75218
|
function FGe() {
|
75219
|
-
var t =
|
75219
|
+
var t = ze(null), e = t[0], n = t[1], r = IGe();
|
75220
75220
|
DGe(n);
|
75221
75221
|
var i = xv(), s = IJ(), a = hL(), o = PGe();
|
75222
75222
|
return je("div", {
|
@@ -75375,7 +75375,7 @@ function KGe() {
|
|
75375
75375
|
}, je(JGe, null), e ? je(xQ, null) : null);
|
75376
75376
|
}
|
75377
75377
|
function JGe() {
|
75378
|
-
var t =
|
75378
|
+
var t = ze(0), e = t[0], n = t[1], r = Df(), i = E1(), s = LUe(), a = NUe(), o = yWe(), l = o.statusSearchResults, c = o.searchTerm, u = o.onChange, f = i == null ? void 0 : i.current, d = f == null ? void 0 : f.value;
|
75379
75379
|
return je(Tv, {
|
75380
75380
|
className: rn(v6.searchContainer)
|
75381
75381
|
}, je(UGe, {
|
@@ -75493,7 +75493,7 @@ function XGe(t) {
|
|
75493
75493
|
return je(XUe, null, je(Gqe, null), je(AUe, Object.assign({}, t), je($Ge, null)));
|
75494
75494
|
}
|
75495
75495
|
function $Ge() {
|
75496
|
-
var t = wv(), e = t[0], n = jJ(), r =
|
75496
|
+
var t = wv(), e = t[0], n = jJ(), r = ze(!e), i = r[0], s = r[1], a = DUe();
|
75497
75497
|
return Fe(function() {
|
75498
75498
|
e && !n || i || s(!0);
|
75499
75499
|
}, [i, n, e]), a ? je(RWe, null, je(lGe, null), je(eZe, {
|
@@ -75536,7 +75536,7 @@ function rZe(t) {
|
|
75536
75536
|
}
|
75537
75537
|
sn(
|
75538
75538
|
({ handleEmojiClick: t, handleAvatarInput: e, onRemove: n, className: r, ...i }, s) => {
|
75539
|
-
const [a, o] =
|
75539
|
+
const [a, o] = ze("emojiPicker"), l = Xe(null), c = () => {
|
75540
75540
|
l.current && l.current.click();
|
75541
75541
|
};
|
75542
75542
|
return /* @__PURE__ */ A.jsx("div", { ref: s, className: r, ...i, children: /* @__PURE__ */ A.jsxs(
|
@@ -75853,7 +75853,7 @@ function vZe({ prop: t, defaultProp: e, onChange: n = () => {
|
|
75853
75853
|
];
|
75854
75854
|
}
|
75855
75855
|
function wZe({ defaultProp: t, onChange: e }) {
|
75856
|
-
const n =
|
75856
|
+
const n = ze(t), [r] = n, i = Xe(r), s = cf(e);
|
75857
75857
|
return Fe(() => {
|
75858
75858
|
i.current !== r && (s(r), i.current = r);
|
75859
75859
|
}, [
|
@@ -75964,7 +75964,7 @@ const TZe = /* @__PURE__ */ tr({
|
|
75964
75964
|
branches: /* @__PURE__ */ new Set()
|
75965
75965
|
}), NZe = /* @__PURE__ */ sn((t, e) => {
|
75966
75966
|
var n;
|
75967
|
-
const { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: i, onPointerDownOutside: s, onFocusOutside: a, onInteractOutside: o, onDismiss: l, ...c } = t, u = Lt(TZe), [f, d] =
|
75967
|
+
const { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: i, onPointerDownOutside: s, onFocusOutside: a, onInteractOutside: o, onDismiss: l, ...c } = t, u = Lt(TZe), [f, d] = ze(null), h = (n = f == null ? void 0 : f.ownerDocument) !== null && n !== void 0 ? n : globalThis == null ? void 0 : globalThis.document, [, p] = ze({}), m = tg(
|
75968
75968
|
e,
|
75969
75969
|
(S) => d(S)
|
75970
75970
|
), g = Array.from(u.layers), [b] = [
|
@@ -76086,7 +76086,7 @@ const Qw = "focusScope.autoFocusOnMount", Xw = "focusScope.autoFocusOnUnmount",
|
|
76086
76086
|
bubbles: !1,
|
76087
76087
|
cancelable: !0
|
76088
76088
|
}, IZe = /* @__PURE__ */ sn((t, e) => {
|
76089
|
-
const { loop: n = !1, trapped: r = !1, onMountAutoFocus: i, onUnmountAutoFocus: s, ...a } = t, [o, l] =
|
76089
|
+
const { loop: n = !1, trapped: r = !1, onMountAutoFocus: i, onUnmountAutoFocus: s, ...a } = t, [o, l] = ze(null), c = cf(i), u = cf(s), f = Xe(null), d = tg(
|
76090
76090
|
e,
|
76091
76091
|
(m) => l(m)
|
76092
76092
|
), h = Xe({
|
@@ -76272,7 +76272,7 @@ const Nv = (t) => {
|
|
76272
76272
|
};
|
76273
76273
|
Nv.displayName = "Presence";
|
76274
76274
|
function _Ze(t) {
|
76275
|
-
const [e, n] =
|
76275
|
+
const [e, n] = ze(), r = Xe({}), i = Xe(t), s = Xe("none"), a = t ? "mounted" : "unmounted", [o, l] = VZe(a, {
|
76276
76276
|
mounted: {
|
76277
76277
|
UNMOUNT: "unmounted",
|
76278
76278
|
ANIMATION_OUT: "unmountSuspended"
|
@@ -76703,8 +76703,8 @@ var Tp = '[cmdk-group=""]', t9 = '[cmdk-group-items=""]', mYe = '[cmdk-group-hea
|
|
76703
76703
|
if (!Object.is(n.current[ie], pe)) {
|
76704
76704
|
if (n.current[ie] = pe, ie === "search") H(), j(), M(1, R);
|
76705
76705
|
else if (ie === "value" && (ce || M(5, V), ((be = o.current) == null ? void 0 : be.value) !== void 0)) {
|
76706
|
-
let
|
76707
|
-
(me = (J = o.current).onValueChange) == null || me.call(J,
|
76706
|
+
let we = pe ?? "";
|
76707
|
+
(me = (J = o.current).onValueChange) == null || me.call(J, we);
|
76708
76708
|
return;
|
76709
76709
|
}
|
76710
76710
|
L.emit();
|
@@ -76737,16 +76737,16 @@ var Tp = '[cmdk-group=""]', t9 = '[cmdk-group-items=""]', mYe = '[cmdk-group-hea
|
|
76737
76737
|
let ie = n.current.filtered.items, pe = [];
|
76738
76738
|
n.current.filtered.groups.forEach((be) => {
|
76739
76739
|
let J = i.current.get(be), me = 0;
|
76740
|
-
J.forEach((
|
76741
|
-
let Re = ie.get(
|
76740
|
+
J.forEach((we) => {
|
76741
|
+
let Re = ie.get(we);
|
76742
76742
|
me = Math.max(Re, me);
|
76743
76743
|
}), pe.push([be, me]);
|
76744
76744
|
});
|
76745
76745
|
let ce = x.current;
|
76746
76746
|
q().sort((be, J) => {
|
76747
|
-
var me,
|
76747
|
+
var me, we;
|
76748
76748
|
let Re = be.getAttribute("id"), Pe = J.getAttribute("id");
|
76749
|
-
return ((me = ie.get(Pe)) != null ? me : 0) - ((
|
76749
|
+
return ((me = ie.get(Pe)) != null ? me : 0) - ((we = ie.get(Re)) != null ? we : 0);
|
76750
76750
|
}).forEach((be) => {
|
76751
76751
|
let J = be.closest(t9);
|
76752
76752
|
J ? J.appendChild(be.parentElement === J ? be : be.closest(`${t9} > *`)) : ce.appendChild(be.parentElement === ce ? be : be.closest(`${t9} > *`));
|
@@ -76768,10 +76768,10 @@ var Tp = '[cmdk-group=""]', t9 = '[cmdk-group-items=""]', mYe = '[cmdk-group-hea
|
|
76768
76768
|
n.current.filtered.groups = /* @__PURE__ */ new Set();
|
76769
76769
|
let J = 0;
|
76770
76770
|
for (let me of r.current) {
|
76771
|
-
let
|
76771
|
+
let we = (pe = (ie = s.current.get(me)) == null ? void 0 : ie.value) != null ? pe : "", Re = (be = (ce = s.current.get(me)) == null ? void 0 : ce.keywords) != null ? be : [], Pe = D(we, Re);
|
76772
76772
|
n.current.filtered.items.set(me, Pe), Pe > 0 && J++;
|
76773
76773
|
}
|
76774
|
-
for (let [me,
|
76774
|
+
for (let [me, we] of i.current) for (let Re of we) if (n.current.filtered.items.get(Re) > 0) {
|
76775
76775
|
n.current.filtered.groups.add(me);
|
76776
76776
|
break;
|
76777
76777
|
}
|
@@ -76796,7 +76796,7 @@ var Tp = '[cmdk-group=""]', t9 = '[cmdk-group-items=""]', mYe = '[cmdk-group-hea
|
|
76796
76796
|
}
|
76797
76797
|
function Z(ie) {
|
76798
76798
|
var pe;
|
76799
|
-
let ce = G(), be = q(), J = be.findIndex((
|
76799
|
+
let ce = G(), be = q(), J = be.findIndex((we) => we === ce), me = be[J + ie];
|
76800
76800
|
(pe = o.current) != null && pe.loop && (me = J + ie < 0 ? be[be.length - 1] : J + ie === be.length ? be[0] : be[J + ie]), me && L.setState("value", me.getAttribute($1));
|
76801
76801
|
}
|
76802
76802
|
function Q(ie) {
|
@@ -77488,7 +77488,7 @@ function n9(t) {
|
|
77488
77488
|
}
|
77489
77489
|
var fX = tX, dX = rX, hX = iX, pX = sX, mX = oX, yX = EL;
|
77490
77490
|
const KYe = ({ duration: t, variant: e }) => {
|
77491
|
-
const [n, r] =
|
77491
|
+
const [n, r] = ze(100);
|
77492
77492
|
return Fe(() => {
|
77493
77493
|
const i = Date.now(), s = setInterval(() => {
|
77494
77494
|
const a = Date.now() - i, o = Math.max(0, 100 - a / t * 100);
|
@@ -77739,7 +77739,7 @@ var BM = /* @__PURE__ */ ((t) => (t.LIST = "LIST", t.CARD = "CARD", t))(BM || {}
|
|
77739
77739
|
const cKe = ({
|
77740
77740
|
delay: t = 2e3
|
77741
77741
|
}) => {
|
77742
|
-
const [e, n] =
|
77742
|
+
const [e, n] = ze(!1), [r, i] = ze(!1), s = Xe(null), a = kt(() => {
|
77743
77743
|
s.current && clearTimeout(s.current), s.current = setTimeout(() => {
|
77744
77744
|
n(!0), i(!0);
|
77745
77745
|
}, t);
|
@@ -77855,7 +77855,7 @@ const cKe = ({
|
|
77855
77855
|
};
|
77856
77856
|
var Ct = /* @__PURE__ */ ((t) => (t[t.NONE = 0] = "NONE", t[t.HEADING = 1] = "HEADING", t[t.TEXT_COLOR = 2] = "TEXT_COLOR", t[t.HIGHLIGHT = 3] = "HIGHLIGHT", t[t.LINK = 4] = "LINK", t[t.FONT_FAMILY = 5] = "FONT_FAMILY", t[t.ALIGNMENT = 6] = "ALIGNMENT", t[t.LIST = 7] = "LIST", t[t.TEXT_FORMATING = 8] = "TEXT_FORMATING", t[t.TEXT_COLOR_PICKER = 9] = "TEXT_COLOR_PICKER", t[t.LINK_POPUP = 10] = "LINK_POPUP", t[t.SCRIPTS = 11] = "SCRIPTS", t))(Ct || {});
|
77857
77857
|
function fKe(t) {
|
77858
|
-
const [e, n] =
|
77858
|
+
const [e, n] = ze(t), r = Xe(null), i = (s) => {
|
77859
77859
|
r && r.current && !r.current.contains(s.target) && n(
|
77860
77860
|
0
|
77861
77861
|
/* NONE */
|
@@ -78420,14 +78420,14 @@ function OKe(t, e, n, r, i, s, a, o, l, c, u, f, d, h, p, m, g, b, k) {
|
|
78420
78420
|
const le = e;
|
78421
78421
|
L.add(le, "dragstart", ($) => $.preventDefault(), M).add(le, "touchmove", () => {
|
78422
78422
|
}, M).add(le, "touchend", () => {
|
78423
|
-
}).add(le, "touchstart", Te).add(le, "mousedown", Te).add(le, "touchcancel",
|
78423
|
+
}).add(le, "touchstart", Te).add(le, "mousedown", Te).add(le, "touchcancel", we).add(le, "contextmenu", we).add(le, "click", Re, !0);
|
78424
78424
|
}
|
78425
78425
|
function fe() {
|
78426
78426
|
L.clear(), S.clear();
|
78427
78427
|
}
|
78428
78428
|
function ie() {
|
78429
78429
|
const Le = Y ? n : e;
|
78430
|
-
S.add(Le, "touchmove", me, M).add(Le, "touchend",
|
78430
|
+
S.add(Le, "touchmove", me, M).add(Le, "touchend", we).add(Le, "mousemove", me, M).add(Le, "mouseup", we);
|
78431
78431
|
}
|
78432
78432
|
function pe(Le) {
|
78433
78433
|
const Te = Le.nodeName || "";
|
@@ -78445,14 +78445,14 @@ function OKe(t, e, n, r, i, s, a, o, l, c, u, f, d, h, p, m, g, b, k) {
|
|
78445
78445
|
Y = Te, Q = p && Te && !Le.buttons && V, V = Am(i.get(), a.get()) >= 2, !(Te && Le.button !== 0) && (pe(Le.target) || (_ = !0, s.pointerDown(Le), c.useFriction(0).useDuration(0), i.set(a), ie(), G = s.readPoint(Le), q = s.readPoint(Le, v), d.emit("pointerDown")));
|
78446
78446
|
}
|
78447
78447
|
function me(Le) {
|
78448
|
-
if (!VM(Le, r) && Le.touches.length >= 2) return
|
78448
|
+
if (!VM(Le, r) && Le.touches.length >= 2) return we(Le);
|
78449
78449
|
const le = s.readPoint(Le), $ = s.readPoint(Le, v), X = Am(le, G), te = Am($, q);
|
78450
78450
|
if (!Z && !Y && (!Le.cancelable || (Z = X > te, !Z)))
|
78451
|
-
return
|
78451
|
+
return we(Le);
|
78452
78452
|
const De = s.pointerMove(Le);
|
78453
78453
|
X > m && (Q = !0), c.useFriction(0.3).useDuration(0.75), o.start(), i.add(w(De)), Le.preventDefault();
|
78454
78454
|
}
|
78455
|
-
function
|
78455
|
+
function we(Le) {
|
78456
78456
|
const le = u.byDistance(0, !1).index !== f.get(), $ = s.pointerUp(Le) * ce(), X = be(w($), le), te = jKe($, X), De = H - 10 * te, W = b + te / 50;
|
78457
78457
|
Z = !1, _ = !1, S.clear(), c.useDuration(De).useFriction(W), l.distance(X, !p), Y = !1, d.emit("pointerUp");
|
78458
78458
|
}
|
@@ -79098,7 +79098,7 @@ function rJe(t, e, n, r, i, s, a) {
|
|
79098
79098
|
snapsContained: be,
|
79099
79099
|
scrollContainLimit: J
|
79100
79100
|
} = qKe(H, ce, pe, k, L), me = q ? be : pe, {
|
79101
|
-
limit:
|
79101
|
+
limit: we
|
79102
79102
|
} = UKe(ce, me, f), Re = kX(rg(me), u, f), Pe = Re.clone(), Se = M4(n), Le = ({
|
79103
79103
|
dragHandler: Ke,
|
79104
79104
|
scrollBody: zt,
|
@@ -79123,12 +79123,12 @@ function rJe(t, e, n, r, i, s, a) {
|
|
79123
79123
|
options: {
|
79124
79124
|
loop: Rt
|
79125
79125
|
}
|
79126
|
-
},
|
79126
|
+
}, $e) => {
|
79127
79127
|
const Ht = Ke.settled(), An = !ht.shouldConstrain(), Nt = Rt ? Ht : Ht && An;
|
79128
79128
|
Nt && !Ft.pointerDown() && (Tt.stop(), rt.emit("settle")), Nt || rt.emit("scroll");
|
79129
|
-
const gn = on.get() *
|
79129
|
+
const gn = on.get() * $e + Ce.get() * (1 - $e);
|
79130
79130
|
un.set(gn), Rt && (qe.loop(Ke.direction()), lt.loop()), zt.to(un.get());
|
79131
|
-
}, le = PKe(r, i, () => Le(_e), (Ke) => Te(_e, Ke)), $ = 0.68, X = me[Re.get()], te = Kp(X), De = Kp(X), W = Kp(X), C = Kp(X), P = VKe(te, W, De, C, d, $), B = KKe(f, me, ce,
|
79131
|
+
}, le = PKe(r, i, () => Le(_e), (Ke) => Te(_e, Ke)), $ = 0.68, X = me[Re.get()], te = Kp(X), De = Kp(X), W = Kp(X), C = Kp(X), P = VKe(te, W, De, C, d, $), B = KKe(f, me, ce, we, C), ne = JKe(le, Re, Pe, P, B, C, a), ue = GKe(we), ye = A4(), Be = eJe(e, n, a, m), {
|
79132
79132
|
slideRegistry: Ye
|
79133
79133
|
} = YKe(q, k, me, J, fe, Se), Ee = QKe(t, n, Ye, ne, P, ye, a, M), _e = {
|
79134
79134
|
ownerDocument: r,
|
@@ -79143,15 +79143,15 @@ function rJe(t, e, n, r, i, s, a) {
|
|
79143
79143
|
percentOfView: V,
|
79144
79144
|
index: Re,
|
79145
79145
|
indexPrevious: Pe,
|
79146
|
-
limit:
|
79146
|
+
limit: we,
|
79147
79147
|
location: te,
|
79148
79148
|
offsetLocation: W,
|
79149
79149
|
previousLocation: De,
|
79150
79150
|
options: s,
|
79151
79151
|
resizeHandler: HKe(e, a, i, n, R, v, S),
|
79152
79152
|
scrollBody: P,
|
79153
|
-
scrollBounds: _Ke(
|
79154
|
-
scrollLooper: WKe(ce,
|
79153
|
+
scrollBounds: _Ke(we, W, C, P, V),
|
79154
|
+
scrollLooper: WKe(ce, we, W, [te, W, De, C]),
|
79155
79155
|
scrollProgress: ue,
|
79156
79156
|
scrollSnapList: me.map(ue.get),
|
79157
79157
|
scrollSnaps: me,
|
@@ -79160,7 +79160,7 @@ function rJe(t, e, n, r, i, s, a) {
|
|
79160
79160
|
slideLooper: XKe(R, H, ce, Z, Q, ie, me, W, n),
|
79161
79161
|
slideFocus: Ee,
|
79162
79162
|
slidesHandler: $Ke(e, a, w),
|
79163
|
-
slidesInView:
|
79163
|
+
slidesInView: Be,
|
79164
79164
|
slideIndexes: Se,
|
79165
79165
|
slideRegistry: Ye,
|
79166
79166
|
slidesToScroll: fe,
|
@@ -79345,7 +79345,7 @@ function D5(t, e, n) {
|
|
79345
79345
|
function me() {
|
79346
79346
|
return t;
|
79347
79347
|
}
|
79348
|
-
function
|
79348
|
+
function we() {
|
79349
79349
|
return M;
|
79350
79350
|
}
|
79351
79351
|
function Re() {
|
@@ -79354,7 +79354,7 @@ function D5(t, e, n) {
|
|
79354
79354
|
const Pe = {
|
79355
79355
|
canScrollNext: Z,
|
79356
79356
|
canScrollPrev: Q,
|
79357
|
-
containerNode:
|
79357
|
+
containerNode: we,
|
79358
79358
|
internalEngine: J,
|
79359
79359
|
destroy: V,
|
79360
79360
|
off: h,
|
@@ -79378,7 +79378,7 @@ function D5(t, e, n) {
|
|
79378
79378
|
}
|
79379
79379
|
D5.globalOptions = void 0;
|
79380
79380
|
function PL(t = {}, e = []) {
|
79381
|
-
const n = Xe(t), r = Xe(e), [i, s] =
|
79381
|
+
const n = Xe(t), r = Xe(e), [i, s] = ze(), [a, o] = ze(), l = kt(() => {
|
79382
79382
|
i && i.reInit(n.current, r.current);
|
79383
79383
|
}, [i]);
|
79384
79384
|
return Fe(() => {
|
@@ -79418,7 +79418,7 @@ const CX = sn(
|
|
79418
79418
|
axis: t === "horizontal" ? "x" : "y"
|
79419
79419
|
},
|
79420
79420
|
r
|
79421
|
-
), [u, f] =
|
79421
|
+
), [u, f] = ze(!1), [d, h] = ze(!1), p = kt((k) => {
|
79422
79422
|
k && (f(k.canScrollPrev()), h(k.canScrollNext()));
|
79423
79423
|
}, []), m = kt(() => {
|
79424
79424
|
c == null || c.scrollPrev();
|
@@ -79504,7 +79504,7 @@ const _M = sn(
|
|
79504
79504
|
);
|
79505
79505
|
_M.displayName = "CarouselItem";
|
79506
79506
|
const SX = sn(({ index: t, className: e, ...n }, r) => {
|
79507
|
-
const { api: i } = ig(), [s, a] =
|
79507
|
+
const { api: i } = ig(), [s, a] = ze(0), [, o] = ze([]), l = kt(
|
79508
79508
|
(d) => {
|
79509
79509
|
i && i.scrollTo(d);
|
79510
79510
|
},
|
@@ -79593,7 +79593,7 @@ function Ka(t, {
|
|
79593
79593
|
defaultValue: e = !1,
|
79594
79594
|
initializeWithValue: n = !0
|
79595
79595
|
} = {}) {
|
79596
|
-
const r = (o) => hJe ? e : window.matchMedia(o).matches, [i, s] =
|
79596
|
+
const r = (o) => hJe ? e : window.matchMedia(o).matches, [i, s] = ze(() => n ? r(t) : e);
|
79597
79597
|
function a() {
|
79598
79598
|
s(r(t));
|
79599
79599
|
}
|
@@ -80255,7 +80255,7 @@ const I5 = [
|
|
80255
80255
|
ref: s,
|
80256
80256
|
toolVisibility: a,
|
80257
80257
|
setToolVisibility: o
|
80258
|
-
} = fKe(Ct.NONE), [l, c] =
|
80258
|
+
} = fKe(Ct.NONE), [l, c] = ze(!1), [u, f] = ze(!1), d = [
|
80259
80259
|
{
|
80260
80260
|
icon: "Undo",
|
80261
80261
|
title: "Undo",
|
@@ -80668,7 +80668,7 @@ const I5 = [
|
|
80668
80668
|
setIsLinkPopupOpen: i,
|
80669
80669
|
onError: s
|
80670
80670
|
}) => {
|
80671
|
-
const [a, o] =
|
80671
|
+
const [a, o] = ze(e.getAttributes("link").href), l = kt(() => {
|
80672
80672
|
if (a === "" || a === void 0) {
|
80673
80673
|
e.chain().focus().extendMarkRange("link").unsetLink().run();
|
80674
80674
|
return;
|
@@ -80719,7 +80719,7 @@ const I5 = [
|
|
80719
80719
|
setInlineCommentData: s,
|
80720
80720
|
onInlineComment: a
|
80721
80721
|
}) => {
|
80722
|
-
const [o, l] =
|
80722
|
+
const [o, l] = ze(
|
80723
80723
|
i.inlineCommentText || ""
|
80724
80724
|
), c = Ka("(max-width: 1023px)"), u = (p) => {
|
80725
80725
|
const m = p.target.value;
|
@@ -82176,7 +82176,7 @@ const c8 = class c8 {
|
|
82176
82176
|
* Resolves to the response by sending the request.
|
82177
82177
|
*/
|
82178
82178
|
send() {
|
82179
|
-
return Ie(z(this, Ao) == null, "request already sent", "UNSUPPORTED_OPERATION", { operation: "fetchRequest.send" }), K(this, Ao, new BJe(this)),
|
82179
|
+
return Ie(z(this, Ao) == null, "request already sent", "UNSUPPORTED_OPERATION", { operation: "fetchRequest.send" }), K(this, Ao, new BJe(this)), et(this, k0, Qp).call(this, 0, hO() + this.timeout, 0, this, new qu(0, "", {}, null, this));
|
82180
82180
|
}
|
82181
82181
|
/**
|
82182
82182
|
* Cancels the inflight response, causing a ``CANCELLED``
|
@@ -82319,14 +82319,14 @@ eh = new WeakMap(), th = new WeakMap(), za = new WeakMap(), Ol = new WeakMap(),
|
|
82319
82319
|
if (c.statusCode === 301 || c.statusCode === 302) {
|
82320
82320
|
try {
|
82321
82321
|
const h = c.headers.location || "";
|
82322
|
-
return
|
82322
|
+
return et(u = a.redirect(h), k0, Qp).call(u, e + 1, n, 0, i, c);
|
82323
82323
|
} catch {
|
82324
82324
|
}
|
82325
82325
|
return c;
|
82326
82326
|
} else if (c.statusCode === 429 && (this.retryFunc == null || await this.retryFunc(a, c, e))) {
|
82327
82327
|
const h = c.headers["retry-after"];
|
82328
82328
|
let p = z(this, Ba).slotInterval * Math.trunc(Math.random() * Math.pow(2, e));
|
82329
|
-
return typeof h == "string" && h.match(/^[1-9][0-9]*$/) && (p = parseInt(h)),
|
82329
|
+
return typeof h == "string" && h.match(/^[1-9][0-9]*$/) && (p = parseInt(h)), et(f = a.clone(), k0, Qp).call(f, e + 1, n, p, i, c);
|
82330
82330
|
}
|
82331
82331
|
if (this.processFunc) {
|
82332
82332
|
a3(z(i, Ao));
|
@@ -82335,7 +82335,7 @@ eh = new WeakMap(), th = new WeakMap(), za = new WeakMap(), Ol = new WeakMap(),
|
|
82335
82335
|
} catch (h) {
|
82336
82336
|
(h.throttle == null || typeof h.stall != "number") && c.makeServerError("error in post-processing function", h).assertOk();
|
82337
82337
|
let p = z(this, Ba).slotInterval * Math.trunc(Math.random() * Math.pow(2, e));
|
82338
|
-
return h.stall >= 0 && (p = h.stall),
|
82338
|
+
return h.stall >= 0 && (p = h.stall), et(d = a.clone(), k0, Qp).call(d, e + 1, n, p, i, c);
|
82339
82339
|
}
|
82340
82340
|
}
|
82341
82341
|
return c;
|
@@ -82801,17 +82801,17 @@ class ZM {
|
|
82801
82801
|
return z(this, M0);
|
82802
82802
|
}
|
82803
82803
|
appendWriter(e) {
|
82804
|
-
return
|
82804
|
+
return et(this, ah, k6).call(this, Ii(e.data));
|
82805
82805
|
}
|
82806
82806
|
// Arrayish item; pad on the right to *nearest* WordSize
|
82807
82807
|
writeBytes(e) {
|
82808
82808
|
let n = Ii(e);
|
82809
82809
|
const r = n.length % Ri;
|
82810
|
-
return r && (n = Ii(kr([n, WM.slice(r)]))),
|
82810
|
+
return r && (n = Ii(kr([n, WM.slice(r)]))), et(this, ah, k6).call(this, n);
|
82811
82811
|
}
|
82812
82812
|
// Numeric item; pad on the left *to* WordSize
|
82813
82813
|
writeValue(e) {
|
82814
|
-
return
|
82814
|
+
return et(this, ah, k6).call(this, vO(e));
|
82815
82815
|
}
|
82816
82816
|
// Inserts a numeric place-holder, returning a callback that can
|
82817
82817
|
// be used to asjust the value later
|
@@ -82860,8 +82860,8 @@ const Oj = class Oj {
|
|
82860
82860
|
}
|
82861
82861
|
// Read bytes
|
82862
82862
|
readBytes(e, n) {
|
82863
|
-
let r =
|
82864
|
-
return
|
82863
|
+
let r = et(this, Sf, YX).call(this, 0, e, !!n);
|
82864
|
+
return et(this, Sf, KM).call(this, e), K(this, Cs, z(this, Cs) + r.length), r.slice(0, e);
|
82865
82865
|
}
|
82866
82866
|
// Read a numeric values
|
82867
82867
|
readValue() {
|
@@ -82874,7 +82874,7 @@ const Oj = class Oj {
|
|
82874
82874
|
Qi = new WeakMap(), Cs = new WeakMap(), C0 = new WeakMap(), A0 = new WeakMap(), pu = new WeakMap(), Sf = new WeakSet(), KM = function(e) {
|
82875
82875
|
var n;
|
82876
82876
|
if (z(this, A0))
|
82877
|
-
return
|
82877
|
+
return et(n = z(this, A0), Sf, KM).call(n, e);
|
82878
82878
|
K(this, C0, z(this, C0) + e), Ie(z(this, pu) < 1 || z(this, C0) <= z(this, pu) * this.dataLength, `compressed ABI data exceeds inflation ratio of ${z(this, pu)} ( see: https://github.com/ethers-io/ethers.js/issues/4537 )`, "BUFFER_OVERRUN", {
|
82879
82879
|
buffer: Ii(z(this, Qi)),
|
82880
82880
|
offset: z(this, Cs),
|
@@ -84449,7 +84449,7 @@ function sXe(t) {
|
|
84449
84449
|
be.push(Oa("extraEntropy", Re));
|
84450
84450
|
}
|
84451
84451
|
const J = E4(...be), me = pe;
|
84452
|
-
function
|
84452
|
+
function we(Re) {
|
84453
84453
|
const Pe = M(Re);
|
84454
84454
|
if (!d(Pe))
|
84455
84455
|
return;
|
@@ -84462,7 +84462,7 @@ function sXe(t) {
|
|
84462
84462
|
let $ = (Le.x === Te ? 0 : 2) | Number(Le.y & ua), X = le;
|
84463
84463
|
return se && p(le) && (X = m(le), $ ^= 1), new b(Te, X, $);
|
84464
84464
|
}
|
84465
|
-
return { seed: J, k2sig:
|
84465
|
+
return { seed: J, k2sig: we };
|
84466
84466
|
}
|
84467
84467
|
const R = { lowS: e.lowS, prehash: !1 }, H = { lowS: e.lowS, prehash: !1 };
|
84468
84468
|
function V(q, _, Z = R) {
|
@@ -84500,7 +84500,7 @@ function sXe(t) {
|
|
84500
84500
|
if (se && ie.hasHighS())
|
84501
84501
|
return !1;
|
84502
84502
|
fe && (_ = e.hash(_));
|
84503
|
-
const { r: ce, s: be } = ie, J = L(_), me = l(be),
|
84503
|
+
const { r: ce, s: be } = ie, J = L(_), me = l(be), we = o(J * me), Re = o(ce * me), Pe = (Le = c.BASE.multiplyAndAddUnsafe(pe, we, Re)) == null ? void 0 : Le.toAffine();
|
84504
84504
|
return Pe ? o(Pe.x) === ce : !1;
|
84505
84505
|
}
|
84506
84506
|
return {
|
@@ -87187,7 +87187,7 @@ let tT = (ha = class {
|
|
87187
87187
|
* The transaction hash, if signed. Otherwise, ``null``.
|
87188
87188
|
*/
|
87189
87189
|
get hash() {
|
87190
|
-
return this.signature == null ? null : Ar(
|
87190
|
+
return this.signature == null ? null : Ar(et(this, kh, M6).call(this, !0, !1));
|
87191
87191
|
}
|
87192
87192
|
/**
|
87193
87193
|
* The pre-image hash of this transaction.
|
@@ -87226,7 +87226,7 @@ let tT = (ha = class {
|
|
87226
87226
|
* use [[unsignedSerialized]].
|
87227
87227
|
*/
|
87228
87228
|
get serialized() {
|
87229
|
-
return
|
87229
|
+
return et(this, kh, M6).call(this, !0, !0);
|
87230
87230
|
}
|
87231
87231
|
/**
|
87232
87232
|
* The transaction pre-image.
|
@@ -87235,7 +87235,7 @@ let tT = (ha = class {
|
|
87235
87235
|
* authorize this transaction.
|
87236
87236
|
*/
|
87237
87237
|
get unsignedSerialized() {
|
87238
|
-
return
|
87238
|
+
return et(this, kh, M6).call(this, !1, !1);
|
87239
87239
|
}
|
87240
87240
|
/**
|
87241
87241
|
* Return the most "likely" type; currently the highest
|
@@ -87531,7 +87531,7 @@ const ra = class ra {
|
|
87531
87531
|
*/
|
87532
87532
|
getEncoder(e) {
|
87533
87533
|
let n = z(this, xh).get(e);
|
87534
|
-
return n || (n =
|
87534
|
+
return n || (n = et(this, u8, X$).call(this, e), z(this, xh).set(e, n)), n;
|
87535
87535
|
}
|
87536
87536
|
/**
|
87537
87537
|
* Return the full type for %%name%%.
|
@@ -87769,7 +87769,7 @@ const f8 = class f8 {
|
|
87769
87769
|
const e = this.peek();
|
87770
87770
|
if (e.type !== "OPEN_PAREN")
|
87771
87771
|
throw new Error("bad start");
|
87772
|
-
const n =
|
87772
|
+
const n = et(this, by, oC).call(this, z(this, Kr) + 1, e.match + 1);
|
87773
87773
|
return K(this, Kr, e.match + 1), n;
|
87774
87774
|
}
|
87775
87775
|
// Pops and returns the items within "(" ITEM1 "," ITEM2 "," ... ")"
|
@@ -87780,7 +87780,7 @@ const f8 = class f8 {
|
|
87780
87780
|
const n = [];
|
87781
87781
|
for (; z(this, Kr) < e.match - 1; ) {
|
87782
87782
|
const r = this.peek().linkNext;
|
87783
|
-
n.push(
|
87783
|
+
n.push(et(this, by, oC).call(this, z(this, Kr) + 1, r)), K(this, Kr, r);
|
87784
87784
|
}
|
87785
87785
|
return K(this, Kr, e.match + 1), n;
|
87786
87786
|
}
|
@@ -88090,7 +88090,7 @@ const ia = class ia {
|
|
88090
88090
|
*/
|
88091
88091
|
async walkAsync(e, n) {
|
88092
88092
|
const r = [], i = [e];
|
88093
|
-
return
|
88093
|
+
return et(this, Mh, C6).call(this, r, e, n, (s) => {
|
88094
88094
|
i[0] = s;
|
88095
88095
|
}), r.length && await Promise.all(r), i[0];
|
88096
88096
|
}
|
@@ -88168,7 +88168,7 @@ Mh = new WeakSet(), C6 = function(e, n, r, i) {
|
|
88168
88168
|
const a = this.arrayChildren, o = n.slice();
|
88169
88169
|
o.forEach((l, c) => {
|
88170
88170
|
var u;
|
88171
|
-
|
88171
|
+
et(u = a, Mh, C6).call(u, e, l, r, (f) => {
|
88172
88172
|
o[c] = f;
|
88173
88173
|
});
|
88174
88174
|
}), i(o);
|
@@ -88194,7 +88194,7 @@ Mh = new WeakSet(), C6 = function(e, n, r, i) {
|
|
88194
88194
|
throw new Error("array is wrong length");
|
88195
88195
|
o.forEach((l, c) => {
|
88196
88196
|
var u;
|
88197
|
-
|
88197
|
+
et(u = a[c], Mh, C6).call(u, e, l, r, (f) => {
|
88198
88198
|
o[c] = f;
|
88199
88199
|
});
|
88200
88200
|
}), i(o);
|
@@ -88751,7 +88751,7 @@ const d8 = class d8 {
|
|
88751
88751
|
* is by default ``false``.
|
88752
88752
|
*/
|
88753
88753
|
getDefaultValue(e) {
|
88754
|
-
const n = e.map((i) =>
|
88754
|
+
const n = e.map((i) => et(this, gu, dd).call(this, ii.from(i)));
|
88755
88755
|
return new u3(n, "_").defaultValue();
|
88756
88756
|
}
|
88757
88757
|
/**
|
@@ -88761,7 +88761,7 @@ const d8 = class d8 {
|
|
88761
88761
|
*/
|
88762
88762
|
encode(e, n) {
|
88763
88763
|
RX(n.length, e.length, "types/values length mismatch");
|
88764
|
-
const r = e.map((a) =>
|
88764
|
+
const r = e.map((a) => et(this, gu, dd).call(this, ii.from(a))), i = new u3(r, "_"), s = new ZM();
|
88765
88765
|
return i.encode(s, n), s.data;
|
88766
88766
|
}
|
88767
88767
|
/**
|
@@ -88772,7 +88772,7 @@ const d8 = class d8 {
|
|
88772
88772
|
* padded event data emitted from ``external`` functions.
|
88773
88773
|
*/
|
88774
88774
|
decode(e, n, r) {
|
88775
|
-
const i = e.map((a) =>
|
88775
|
+
const i = e.map((a) => et(this, gu, dd).call(this, ii.from(a)));
|
88776
88776
|
return new u3(i, "_").decode(new YM(n, r, iz));
|
88777
88777
|
}
|
88778
88778
|
static _setDefaultMaxInflation(e) {
|
@@ -88797,9 +88797,9 @@ const d8 = class d8 {
|
|
88797
88797
|
};
|
88798
88798
|
gu = new WeakSet(), dd = function(e) {
|
88799
88799
|
if (e.isArray())
|
88800
|
-
return new vXe(
|
88800
|
+
return new vXe(et(this, gu, dd).call(this, e.arrayChildren), e.arrayLength, e.name);
|
88801
88801
|
if (e.isTuple())
|
88802
|
-
return new u3(e.components.map((r) =>
|
88802
|
+
return new u3(e.components.map((r) => et(this, gu, dd).call(this, r)), e.name);
|
88803
88803
|
switch (e.baseType) {
|
88804
88804
|
case "address":
|
88805
88805
|
return new gXe(e.name);
|
@@ -89087,7 +89087,7 @@ const i0 = class i0 {
|
|
89087
89087
|
* function name or function signature that belongs to the ABI.
|
89088
89088
|
*/
|
89089
89089
|
getFunctionName(e) {
|
89090
|
-
const n =
|
89090
|
+
const n = et(this, tl, A6).call(this, e, null, !1);
|
89091
89091
|
return he(n, "no matching function", "key", e), n.name;
|
89092
89092
|
}
|
89093
89093
|
/**
|
@@ -89098,7 +89098,7 @@ const i0 = class i0 {
|
|
89098
89098
|
* accessing the [[FunctionFragment]] may require refinement.
|
89099
89099
|
*/
|
89100
89100
|
hasFunction(e) {
|
89101
|
-
return
|
89101
|
+
return !!et(this, tl, A6).call(this, e, null, !1);
|
89102
89102
|
}
|
89103
89103
|
/**
|
89104
89104
|
* Get the [[FunctionFragment]] for %%key%%, which may be a function
|
@@ -89111,7 +89111,7 @@ const i0 = class i0 {
|
|
89111
89111
|
* the ABI, this will throw.
|
89112
89112
|
*/
|
89113
89113
|
getFunction(e, n) {
|
89114
|
-
return
|
89114
|
+
return et(this, tl, A6).call(this, e, n || null, !0);
|
89115
89115
|
}
|
89116
89116
|
/**
|
89117
89117
|
* Iterate over all functions, calling %%callback%%, sorted by their name.
|
@@ -89129,7 +89129,7 @@ const i0 = class i0 {
|
|
89129
89129
|
* event name or event signature that belongs to the ABI.
|
89130
89130
|
*/
|
89131
89131
|
getEventName(e) {
|
89132
|
-
const n =
|
89132
|
+
const n = et(this, tl, S6).call(this, e, null, !1);
|
89133
89133
|
return he(n, "no matching event", "key", e), n.name;
|
89134
89134
|
}
|
89135
89135
|
/**
|
@@ -89140,7 +89140,7 @@ const i0 = class i0 {
|
|
89140
89140
|
* accessing the [[EventFragment]] may require refinement.
|
89141
89141
|
*/
|
89142
89142
|
hasEvent(e) {
|
89143
|
-
return
|
89143
|
+
return !!et(this, tl, S6).call(this, e, null, !1);
|
89144
89144
|
}
|
89145
89145
|
/**
|
89146
89146
|
* Get the [[EventFragment]] for %%key%%, which may be a topic hash,
|
@@ -89153,7 +89153,7 @@ const i0 = class i0 {
|
|
89153
89153
|
* the ABI, this will throw.
|
89154
89154
|
*/
|
89155
89155
|
getEvent(e, n) {
|
89156
|
-
return
|
89156
|
+
return et(this, tl, S6).call(this, e, n || null, !0);
|
89157
89157
|
}
|
89158
89158
|
/**
|
89159
89159
|
* Iterate over all events, calling %%callback%%, sorted by their name.
|
@@ -91615,7 +91615,7 @@ const Nd = class Nd {
|
|
91615
91615
|
async getAddress(e) {
|
91616
91616
|
if (e == null && (e = 60), e === 60)
|
91617
91617
|
try {
|
91618
|
-
const s = await
|
91618
|
+
const s = await et(this, wu, hd).call(this, "addr(bytes32)");
|
91619
91619
|
return s == null || s === L4 ? null : s;
|
91620
91620
|
} catch (s) {
|
91621
91621
|
if (jr(s, "CALL_EXCEPTION"))
|
@@ -91624,7 +91624,7 @@ const Nd = class Nd {
|
|
91624
91624
|
}
|
91625
91625
|
if (e >= 0 && e < 2147483648) {
|
91626
91626
|
let s = e + 2147483648;
|
91627
|
-
const a = await
|
91627
|
+
const a = await et(this, wu, hd).call(this, "addr(bytes32,uint)", [s]);
|
91628
91628
|
if (jn(a, 20))
|
91629
91629
|
return Mn(a);
|
91630
91630
|
}
|
@@ -91636,7 +91636,7 @@ const Nd = class Nd {
|
|
91636
91636
|
}
|
91637
91637
|
if (n == null)
|
91638
91638
|
return null;
|
91639
|
-
const r = await
|
91639
|
+
const r = await et(this, wu, hd).call(this, "addr(bytes32,uint)", [e]);
|
91640
91640
|
if (r == null || r === "0x")
|
91641
91641
|
return null;
|
91642
91642
|
const i = await n.decodeAddress(e, r);
|
@@ -91652,14 +91652,14 @@ const Nd = class Nd {
|
|
91652
91652
|
* if unconfigured.
|
91653
91653
|
*/
|
91654
91654
|
async getText(e) {
|
91655
|
-
const n = await
|
91655
|
+
const n = await et(this, wu, hd).call(this, "text(bytes32,string)", [e]);
|
91656
91656
|
return n == null || n === "0x" ? null : n;
|
91657
91657
|
}
|
91658
91658
|
/**
|
91659
91659
|
* Rsolves to the content-hash or ``null`` if unconfigured.
|
91660
91660
|
*/
|
91661
91661
|
async getContentHash() {
|
91662
|
-
const e = await
|
91662
|
+
const e = await et(this, wu, hd).call(this, "contenthash(bytes32)");
|
91663
91663
|
if (e == null || e === "0x")
|
91664
91664
|
return null;
|
91665
91665
|
const n = e.match(/^0x(e3010170|e5010172)(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/);
|
@@ -91798,7 +91798,7 @@ const Nd = class Nd {
|
|
91798
91798
|
for (; ; ) {
|
91799
91799
|
if (r === "" || r === "." || n !== "eth" && r === "eth")
|
91800
91800
|
return null;
|
91801
|
-
const s = await
|
91801
|
+
const s = await et(i = Nd, h8, wee).call(i, e, r);
|
91802
91802
|
if (s != null) {
|
91803
91803
|
const a = new Nd(e, s, n);
|
91804
91804
|
return r !== n && !await a.supportsWildcard() ? null : a;
|
@@ -92411,7 +92411,7 @@ class Tet {
|
|
92411
92411
|
K(this, xu, e);
|
92412
92412
|
}
|
92413
92413
|
start() {
|
92414
|
-
z(this, aa) || (K(this, aa, z(this, ql)._setTimeout(
|
92414
|
+
z(this, aa) || (K(this, aa, z(this, ql)._setTimeout(et(this, Eh, E6).bind(this), z(this, xu))), et(this, Eh, E6).call(this));
|
92415
92415
|
}
|
92416
92416
|
stop() {
|
92417
92417
|
z(this, aa) && (z(this, ql)._clearTimeout(z(this, aa)), K(this, aa, null));
|
@@ -92440,7 +92440,7 @@ ql = new WeakMap(), aa = new WeakMap(), xu = new WeakMap(), No = new WeakMap(),
|
|
92440
92440
|
}
|
92441
92441
|
} catch {
|
92442
92442
|
}
|
92443
|
-
z(this, aa) != null && K(this, aa, z(this, ql)._setTimeout(
|
92443
|
+
z(this, aa) != null && K(this, aa, z(this, ql)._setTimeout(et(this, Eh, E6).bind(this), z(this, xu)));
|
92444
92444
|
};
|
92445
92445
|
var N0, j0, Mu;
|
92446
92446
|
class sT {
|
@@ -92536,7 +92536,7 @@ class aT {
|
|
92536
92536
|
// The most recent block we have scanned for events. The value -2
|
92537
92537
|
// indicates we still need to fetch an initial block number
|
92538
92538
|
Me(this, oa);
|
92539
|
-
K(this, Wl, e), K(this, Nh, dC(n)), K(this, jh,
|
92539
|
+
K(this, Wl, e), K(this, Nh, dC(n)), K(this, jh, et(this, m8, xee).bind(this)), K(this, Cu, !1), K(this, oa, -2);
|
92540
92540
|
}
|
92541
92541
|
start() {
|
92542
92542
|
z(this, Cu) || (K(this, Cu, !0), z(this, oa) === -2 && z(this, Wl).getBlockNumber().then((e) => {
|
@@ -92819,7 +92819,7 @@ class W5 {
|
|
92819
92819
|
}
|
92820
92820
|
// State
|
92821
92821
|
async getBlockNumber() {
|
92822
|
-
const e = Ut(await
|
92822
|
+
const e = Ut(await et(this, $t, ws).call(this, { method: "getBlockNumber" }), "%response");
|
92823
92823
|
return z(this, Gl) >= 0 && K(this, Gl, e), e;
|
92824
92824
|
}
|
92825
92825
|
/**
|
@@ -92934,10 +92934,10 @@ class W5 {
|
|
92934
92934
|
async getFeeData() {
|
92935
92935
|
const e = await this.getNetwork(), n = async () => {
|
92936
92936
|
const { _block: i, gasPrice: s, priorityFee: a } = await mi({
|
92937
|
-
_block:
|
92937
|
+
_block: et(this, $t, yC).call(this, "latest", !1),
|
92938
92938
|
gasPrice: (async () => {
|
92939
92939
|
try {
|
92940
|
-
const u = await
|
92940
|
+
const u = await et(this, $t, ws).call(this, { method: "getGasPrice" });
|
92941
92941
|
return yt(u, "%response");
|
92942
92942
|
} catch {
|
92943
92943
|
}
|
@@ -92945,7 +92945,7 @@ class W5 {
|
|
92945
92945
|
})(),
|
92946
92946
|
priorityFee: (async () => {
|
92947
92947
|
try {
|
92948
|
-
const u = await
|
92948
|
+
const u = await et(this, $t, ws).call(this, { method: "getPriorityFee" });
|
92949
92949
|
return yt(u, "%response");
|
92950
92950
|
} catch {
|
92951
92951
|
}
|
@@ -92964,7 +92964,7 @@ class W5 {
|
|
92964
92964
|
}
|
92965
92965
|
async estimateGas(e) {
|
92966
92966
|
let n = this._getTransactionRequest(e);
|
92967
|
-
return h3(n) && (n = await n), yt(await
|
92967
|
+
return h3(n) && (n = await n), yt(await et(this, $t, ws).call(this, {
|
92968
92968
|
method: "estimateGas",
|
92969
92969
|
transaction: n
|
92970
92970
|
}), "%response");
|
@@ -92974,20 +92974,20 @@ class W5 {
|
|
92974
92974
|
tx: this._getTransactionRequest(e),
|
92975
92975
|
blockTag: this._getBlockTag(e.blockTag)
|
92976
92976
|
});
|
92977
|
-
return await
|
92977
|
+
return await et(this, $t, mC).call(this, et(this, $t, pC).call(this, n, r, e.enableCcipRead ? 0 : -1));
|
92978
92978
|
}
|
92979
92979
|
async getBalance(e, n) {
|
92980
|
-
return yt(await
|
92980
|
+
return yt(await et(this, $t, em).call(this, { method: "getBalance" }, e, n), "%response");
|
92981
92981
|
}
|
92982
92982
|
async getTransactionCount(e, n) {
|
92983
|
-
return Ut(await
|
92983
|
+
return Ut(await et(this, $t, em).call(this, { method: "getTransactionCount" }, e, n), "%response");
|
92984
92984
|
}
|
92985
92985
|
async getCode(e, n) {
|
92986
|
-
return dt(await
|
92986
|
+
return dt(await et(this, $t, em).call(this, { method: "getCode" }, e, n));
|
92987
92987
|
}
|
92988
92988
|
async getStorage(e, n, r) {
|
92989
92989
|
const i = yt(n, "position");
|
92990
|
-
return dt(await
|
92990
|
+
return dt(await et(this, $t, em).call(this, { method: "getStorage", position: i }, e, r));
|
92991
92991
|
}
|
92992
92992
|
// Write
|
92993
92993
|
async broadcastTransaction(e) {
|
@@ -93007,26 +93007,26 @@ class W5 {
|
|
93007
93007
|
async getBlock(e, n) {
|
93008
93008
|
const { network: r, params: i } = await mi({
|
93009
93009
|
network: this.getNetwork(),
|
93010
|
-
params:
|
93010
|
+
params: et(this, $t, yC).call(this, e, !!n)
|
93011
93011
|
});
|
93012
93012
|
return i == null ? null : this._wrapBlock(i, r);
|
93013
93013
|
}
|
93014
93014
|
async getTransaction(e) {
|
93015
93015
|
const { network: n, params: r } = await mi({
|
93016
93016
|
network: this.getNetwork(),
|
93017
|
-
params:
|
93017
|
+
params: et(this, $t, ws).call(this, { method: "getTransaction", hash: e })
|
93018
93018
|
});
|
93019
93019
|
return r == null ? null : this._wrapTransactionResponse(r, n);
|
93020
93020
|
}
|
93021
93021
|
async getTransactionReceipt(e) {
|
93022
93022
|
const { network: n, params: r } = await mi({
|
93023
93023
|
network: this.getNetwork(),
|
93024
|
-
params:
|
93024
|
+
params: et(this, $t, ws).call(this, { method: "getTransactionReceipt", hash: e })
|
93025
93025
|
});
|
93026
93026
|
if (r == null)
|
93027
93027
|
return null;
|
93028
93028
|
if (r.gasPrice == null && r.effectiveGasPrice == null) {
|
93029
|
-
const i = await
|
93029
|
+
const i = await et(this, $t, ws).call(this, { method: "getTransaction", hash: e });
|
93030
93030
|
if (i == null)
|
93031
93031
|
throw new Error("report this; could not find tx or effectiveGasPrice");
|
93032
93032
|
r.effectiveGasPrice = i.gasPrice;
|
@@ -93036,7 +93036,7 @@ class W5 {
|
|
93036
93036
|
async getTransactionResult(e) {
|
93037
93037
|
const { result: n } = await mi({
|
93038
93038
|
network: this.getNetwork(),
|
93039
|
-
result:
|
93039
|
+
result: et(this, $t, ws).call(this, { method: "getTransactionResult", hash: e })
|
93040
93040
|
});
|
93041
93041
|
return n == null ? null : dt(n);
|
93042
93042
|
}
|
@@ -93046,7 +93046,7 @@ class W5 {
|
|
93046
93046
|
h3(n) && (n = await n);
|
93047
93047
|
const { network: r, params: i } = await mi({
|
93048
93048
|
network: this.getNetwork(),
|
93049
|
-
params:
|
93049
|
+
params: et(this, $t, ws).call(this, { method: "getLogs", filter: n })
|
93050
93050
|
});
|
93051
93051
|
return i.map((s) => this._wrapLog(s, r));
|
93052
93052
|
}
|
@@ -93191,15 +93191,15 @@ class W5 {
|
|
93191
93191
|
}
|
93192
93192
|
}
|
93193
93193
|
async on(e, n) {
|
93194
|
-
const r = await
|
93194
|
+
const r = await et(this, $t, T6).call(this, e);
|
93195
93195
|
return r.listeners.push({ listener: n, once: !1 }), r.started || (r.subscriber.start(), r.started = !0, z(this, fi) != null && r.subscriber.pause(z(this, fi))), this;
|
93196
93196
|
}
|
93197
93197
|
async once(e, n) {
|
93198
|
-
const r = await
|
93198
|
+
const r = await et(this, $t, T6).call(this, e);
|
93199
93199
|
return r.listeners.push({ listener: n, once: !0 }), r.started || (r.subscriber.start(), r.started = !0, z(this, fi) != null && r.subscriber.pause(z(this, fi))), this;
|
93200
93200
|
}
|
93201
93201
|
async emit(e, ...n) {
|
93202
|
-
const r = await
|
93202
|
+
const r = await et(this, $t, tm).call(this, e, n);
|
93203
93203
|
if (!r || r.listeners.length === 0)
|
93204
93204
|
return !1;
|
93205
93205
|
const i = r.listeners.length;
|
@@ -93214,7 +93214,7 @@ class W5 {
|
|
93214
93214
|
}
|
93215
93215
|
async listenerCount(e) {
|
93216
93216
|
if (e) {
|
93217
|
-
const r = await
|
93217
|
+
const r = await et(this, $t, tm).call(this, e);
|
93218
93218
|
return r ? r.listeners.length : 0;
|
93219
93219
|
}
|
93220
93220
|
let n = 0;
|
@@ -93224,7 +93224,7 @@ class W5 {
|
|
93224
93224
|
}
|
93225
93225
|
async listeners(e) {
|
93226
93226
|
if (e) {
|
93227
|
-
const r = await
|
93227
|
+
const r = await et(this, $t, tm).call(this, e);
|
93228
93228
|
return r ? r.listeners.map(({ listener: i }) => i) : [];
|
93229
93229
|
}
|
93230
93230
|
let n = [];
|
@@ -93233,7 +93233,7 @@ class W5 {
|
|
93233
93233
|
return n;
|
93234
93234
|
}
|
93235
93235
|
async off(e, n) {
|
93236
|
-
const r = await
|
93236
|
+
const r = await et(this, $t, tm).call(this, e);
|
93237
93237
|
if (!r)
|
93238
93238
|
return this;
|
93239
93239
|
if (n) {
|
@@ -93244,7 +93244,7 @@ class W5 {
|
|
93244
93244
|
}
|
93245
93245
|
async removeAllListeners(e) {
|
93246
93246
|
if (e) {
|
93247
|
-
const { tag: n, started: r, subscriber: i } = await
|
93247
|
+
const { tag: n, started: r, subscriber: i } = await et(this, $t, T6).call(this, e);
|
93248
93248
|
r && i.stop(), z(this, ui).delete(n);
|
93249
93249
|
} else
|
93250
93250
|
for (const [n, { started: r, subscriber: i }] of z(this, ui))
|
@@ -93382,7 +93382,7 @@ ui = new WeakMap(), Au = new WeakMap(), fi = new WeakMap(), Dh = new WeakMap(),
|
|
93382
93382
|
};
|
93383
93383
|
this.emit("debug", { action: "sendCcipReadCall", transaction: u });
|
93384
93384
|
try {
|
93385
|
-
const f = await
|
93385
|
+
const f = await et(this, $t, pC).call(this, u, n, r + 1);
|
93386
93386
|
return this.emit("debug", { action: "receiveCcipReadCallResult", transaction: Object.assign({}, u), result: f }), f;
|
93387
93387
|
} catch (f) {
|
93388
93388
|
throw this.emit("debug", { action: "receiveCcipReadCallError", transaction: Object.assign({}, u), error: f }), f;
|
@@ -93398,16 +93398,16 @@ ui = new WeakMap(), Au = new WeakMap(), fi = new WeakMap(), Dh = new WeakMap(),
|
|
93398
93398
|
return n;
|
93399
93399
|
}, em = async function(e, n, r) {
|
93400
93400
|
let i = this._getAddress(n), s = this._getBlockTag(r);
|
93401
|
-
return (typeof i != "string" || typeof s != "string") && ([i, s] = await Promise.all([i, s])), await
|
93401
|
+
return (typeof i != "string" || typeof s != "string") && ([i, s] = await Promise.all([i, s])), await et(this, $t, mC).call(this, et(this, $t, ws).call(this, Object.assign(e, { address: i, blockTag: s })));
|
93402
93402
|
}, yC = async function(e, n) {
|
93403
93403
|
if (jn(e, 32))
|
93404
|
-
return await
|
93404
|
+
return await et(this, $t, ws).call(this, {
|
93405
93405
|
method: "getBlock",
|
93406
93406
|
blockHash: e,
|
93407
93407
|
includeTransactions: n
|
93408
93408
|
});
|
93409
93409
|
let r = this._getBlockTag(e);
|
93410
|
-
return typeof r != "string" && (r = await r), await
|
93410
|
+
return typeof r != "string" && (r = await r), await et(this, $t, ws).call(this, {
|
93411
93411
|
method: "getBlock",
|
93412
93412
|
blockTag: r,
|
93413
93413
|
includeTransactions: n
|
@@ -93627,7 +93627,7 @@ class Mee {
|
|
93627
93627
|
Me(this, Eu);
|
93628
93628
|
Me(this, P0);
|
93629
93629
|
Me(this, Rh);
|
93630
|
-
K(this, Di, e), K(this, jo, null), K(this, I0,
|
93630
|
+
K(this, Di, e), K(this, jo, null), K(this, I0, et(this, h1, bC).bind(this)), K(this, Eu, !1), K(this, P0, null), K(this, Rh, !1);
|
93631
93631
|
}
|
93632
93632
|
/**
|
93633
93633
|
* Sub-classes **must** override this to begin the subscription.
|
@@ -93648,13 +93648,13 @@ class Mee {
|
|
93648
93648
|
throw new Error("subclasses must override this");
|
93649
93649
|
}
|
93650
93650
|
start() {
|
93651
|
-
z(this, Eu) || (K(this, Eu, !0),
|
93651
|
+
z(this, Eu) || (K(this, Eu, !0), et(this, h1, bC).call(this, -2));
|
93652
93652
|
}
|
93653
93653
|
stop() {
|
93654
|
-
z(this, Eu) && (K(this, Eu, !1), K(this, Rh, !0),
|
93654
|
+
z(this, Eu) && (K(this, Eu, !1), K(this, Rh, !0), et(this, h1, vC).call(this), z(this, Di).off("block", z(this, I0)));
|
93655
93655
|
}
|
93656
93656
|
pause(e) {
|
93657
|
-
e &&
|
93657
|
+
e && et(this, h1, vC).call(this), z(this, Di).off("block", z(this, I0));
|
93658
93658
|
}
|
93659
93659
|
resume() {
|
93660
93660
|
this.start();
|
@@ -93985,7 +93985,7 @@ class Aee extends W5 {
|
|
93985
93985
|
break;
|
93986
93986
|
console.log("JsonRpcProvider failed to detect network and cannot start up; retry in 1s (perhaps the URL is wrong or the node is not started)"), this.emit("error", Hn("failed to bootstrap network detection", "NETWORK_ERROR", { event: "initial-network-discovery", info: { error: n } })), await Zet(1e3);
|
93987
93987
|
}
|
93988
|
-
|
93988
|
+
et(this, Ay, wC).call(this);
|
93989
93989
|
})());
|
93990
93990
|
}
|
93991
93991
|
/**
|
@@ -94189,7 +94189,7 @@ class Aee extends W5 {
|
|
94189
94189
|
payload: { method: n, params: r, id: i, jsonrpc: "2.0" }
|
94190
94190
|
});
|
94191
94191
|
});
|
94192
|
-
return
|
94192
|
+
return et(this, Ay, wC).call(this), s;
|
94193
94193
|
}
|
94194
94194
|
/**
|
94195
94195
|
* Resolves to the [[Signer]] account for %%address%% managed by
|
@@ -95617,15 +95617,15 @@ class wtt extends W5 {
|
|
95617
95617
|
throw l;
|
95618
95618
|
return l;
|
95619
95619
|
}
|
95620
|
-
await
|
95620
|
+
await et(this, ys, Lee).call(this);
|
95621
95621
|
const r = /* @__PURE__ */ new Set();
|
95622
95622
|
let i = 0;
|
95623
95623
|
for (; ; ) {
|
95624
|
-
const a =
|
95624
|
+
const a = et(this, ys, AC).call(this, r, n);
|
95625
95625
|
if (a == null || (i += a.config.weight, i >= this.quorum))
|
95626
95626
|
break;
|
95627
95627
|
}
|
95628
|
-
const s = await
|
95628
|
+
const s = await et(this, ys, SC).call(this, r, n);
|
95629
95629
|
for (const a of r)
|
95630
95630
|
a.perform && a.result == null && a.config.lateResponses++;
|
95631
95631
|
return s;
|
@@ -95647,7 +95647,7 @@ Eee = function(n) {
|
|
95647
95647
|
return null;
|
95648
95648
|
}, // Adds a new runner (if available) to running.
|
95649
95649
|
AC = function(n, r) {
|
95650
|
-
const i =
|
95650
|
+
const i = et(this, ys, Eee).call(this, n);
|
95651
95651
|
if (i == null)
|
95652
95652
|
return null;
|
95653
95653
|
const s = {
|
@@ -95745,18 +95745,18 @@ AC = function(n, r) {
|
|
95745
95745
|
}
|
95746
95746
|
o.didBump || (o.didBump = !0, s++);
|
95747
95747
|
}
|
95748
|
-
const a = await
|
95748
|
+
const a = await et(this, ys, Tee).call(this, n, r);
|
95749
95749
|
if (a !== void 0) {
|
95750
95750
|
if (a instanceof Error)
|
95751
95751
|
throw a;
|
95752
95752
|
return a;
|
95753
95753
|
}
|
95754
95754
|
for (let o = 0; o < s; o++)
|
95755
|
-
|
95755
|
+
et(this, ys, AC).call(this, n, r);
|
95756
95756
|
return Ie(i.length > 0, "quorum not met", "SERVER_ERROR", {
|
95757
95757
|
request: "%sub-requests",
|
95758
95758
|
info: { request: r, results: Array.from(n).map((o) => C9(o.result)) }
|
95759
|
-
}), await Promise.race(i), await
|
95759
|
+
}), await Promise.race(i), await et(this, ys, SC).call(this, n, r);
|
95760
95760
|
};
|
95761
95761
|
function ktt(t) {
|
95762
95762
|
return t && typeof t.send == "function" && typeof t.close == "function";
|
@@ -95865,7 +95865,7 @@ const Nee = async (t, e) => {
|
|
95865
95865
|
onComment: x,
|
95866
95866
|
setCommentDrawerOpen: M
|
95867
95867
|
}) => {
|
95868
|
-
const [L, S] =
|
95868
|
+
const [L, S] = ze(!0), [D, j] = ze(""), [R, H] = ze(""), [V, G] = ze(null), q = Xe(null), _ = Xe(null), [Z, Q] = ze(""), [Y, se] = ze(!1), fe = Xe(null), ie = Xe(null), pe = Xe(null), ce = e.isActive("comment"), be = e.getAttributes("comment").resolved;
|
95869
95869
|
RL([fe, ie, pe], () => {
|
95870
95870
|
Y && se(!1);
|
95871
95871
|
});
|
@@ -95874,7 +95874,7 @@ const Nee = async (t, e) => {
|
|
95874
95874
|
ce ? Ye && Q(Ye.selectedContent || "") : Q(zt), se(!0), w == null || w();
|
95875
95875
|
}, me = (Ee) => {
|
95876
95876
|
Ee.stopPropagation(), m ? J() : M == null || M(!0);
|
95877
|
-
},
|
95877
|
+
}, we = (Ee, _e = "") => ({
|
95878
95878
|
id: `comment-${Sm()}`,
|
95879
95879
|
username: i,
|
95880
95880
|
selectedContent: Ee,
|
@@ -95884,7 +95884,7 @@ const Nee = async (t, e) => {
|
|
95884
95884
|
createdAt: /* @__PURE__ */ new Date()
|
95885
95885
|
}), Re = (Ee) => {
|
95886
95886
|
if (!e) return;
|
95887
|
-
const { state: _e } = e, { from: Ke, to: zt } = _e.selection, on = _e.doc.textBetween(Ke, zt, " "), un =
|
95887
|
+
const { state: _e } = e, { from: Ke, to: zt } = _e.selection, on = _e.doc.textBetween(Ke, zt, " "), un = we(on, Ee);
|
95888
95888
|
return e == null || e.commands.setComment(un.id || ""), o(un.id || ""), setTimeout(l), c == null || c(un), un.id;
|
95889
95889
|
}, Pe = (Ee) => {
|
95890
95890
|
e.commands.resolveComment(Ee), d == null || d(Ee);
|
@@ -95976,8 +95976,8 @@ const Nee = async (t, e) => {
|
|
95976
95976
|
}, ne = n.filter(
|
95977
95977
|
(Ee) => !Ee.resolved && Ee.selectedContent && Ee.selectedContent.length > 0 && !Ee.deleted
|
95978
95978
|
), ue = () => {
|
95979
|
-
if (
|
95980
|
-
const Ee = ne[
|
95979
|
+
if (Be > 0) {
|
95980
|
+
const Ee = ne[Be - 1], _e = e.view.dom.querySelector(
|
95981
95981
|
`[data-comment-id="${Ee.id}"]`
|
95982
95982
|
);
|
95983
95983
|
if (_e) {
|
@@ -95986,8 +95986,8 @@ const Nee = async (t, e) => {
|
|
95986
95986
|
}
|
95987
95987
|
}
|
95988
95988
|
}, ye = () => {
|
95989
|
-
if (
|
95990
|
-
const Ee = ne[
|
95989
|
+
if (Be < ne.length - 1) {
|
95990
|
+
const Ee = ne[Be + 1], _e = e.view.dom.querySelector(
|
95991
95991
|
`[data-comment-id="${Ee.id}"]`
|
95992
95992
|
);
|
95993
95993
|
if (_e) {
|
@@ -95995,7 +95995,7 @@ const Nee = async (t, e) => {
|
|
95995
95995
|
e.commands.setTextSelection({ from: Ke, to: zt }), le(Ee.id || "");
|
95996
95996
|
}
|
95997
95997
|
}
|
95998
|
-
},
|
95998
|
+
}, Be = ne.findIndex(
|
95999
95999
|
(Ee) => Ee.id === a
|
96000
96000
|
), Ye = n.find(
|
96001
96001
|
(Ee) => Ee.id === a
|
@@ -96033,7 +96033,7 @@ const Nee = async (t, e) => {
|
|
96033
96033
|
setReply: j,
|
96034
96034
|
onPrevComment: ue,
|
96035
96035
|
onNextComment: ye,
|
96036
|
-
activeCommentIndex:
|
96036
|
+
activeCommentIndex: Be,
|
96037
96037
|
activeComment: Ye,
|
96038
96038
|
selectedText: Z,
|
96039
96039
|
isCommentOpen: Y,
|
@@ -96067,7 +96067,7 @@ const Nee = async (t, e) => {
|
|
96067
96067
|
return t;
|
96068
96068
|
}, Wc = {}, lT = (t) => {
|
96069
96069
|
var i, s;
|
96070
|
-
const { ensResolutionUrl: e } = Rf(), [n, r] =
|
96070
|
+
const { ensResolutionUrl: e } = Rf(), [n, r] = ze({
|
96071
96071
|
name: ((i = Wc[t || ""]) == null ? void 0 : i.name) || t || "",
|
96072
96072
|
isEns: ((s = Wc[t || ""]) == null ? void 0 : s.isEns) || !1,
|
96073
96073
|
isLoading: !Wc[t || ""]
|
@@ -96777,7 +96777,7 @@ const Dee = (t) => t && (t.length > 20 ? t.slice(0, 5) + "..." + t.slice(t.lengt
|
|
96777
96777
|
version: p,
|
96778
96778
|
emptyComment: m
|
96779
96779
|
}) => {
|
96780
|
-
const g = Xe(null), [b, k] =
|
96780
|
+
const g = Xe(null), [b, k] = ze(!1), [v, w] = ze(!1), x = Xe(null), { setOpenReplyId: M } = Rf(), L = lT(t);
|
96781
96781
|
Fe(() => {
|
96782
96782
|
c && w(!0), f !== u && w(!1), x.current && i && x.current.scrollTo({
|
96783
96783
|
top: x.current.scrollHeight,
|
@@ -97037,7 +97037,7 @@ const Dee = (t) => t && (t.length > 20 ? t.slice(0, 5) + "..." + t.slice(t.lengt
|
|
97037
97037
|
isDisabled: i,
|
97038
97038
|
isCommentOwner: s
|
97039
97039
|
}) => {
|
97040
|
-
const [a, o] =
|
97040
|
+
const [a, o] = ze(e), [l, c] = ze(""), [u, f] = ze(!0), [d, h] = ze(!!t), p = Xe(null), {
|
97041
97041
|
addComment: m,
|
97042
97042
|
comments: g,
|
97043
97043
|
activeComments: b,
|
@@ -97059,11 +97059,11 @@ const Dee = (t) => t && (t.length > 20 ? t.slice(0, 5) + "..." + t.slice(t.lengt
|
|
97059
97059
|
isConnected: G,
|
97060
97060
|
setCommentDrawerOpen: q
|
97061
97061
|
} = Rf(), _ = !(v != null && v.content) && !(v != null && v.username) && !(v != null && v.createdAt), Z = (me) => {
|
97062
|
-
const
|
97063
|
-
o(
|
97062
|
+
const we = me.target.value;
|
97063
|
+
o(we), we || (me.target.style.height = "40px");
|
97064
97064
|
}, Q = (me) => {
|
97065
|
-
const
|
97066
|
-
c(
|
97065
|
+
const we = me.target.value;
|
97066
|
+
c(we);
|
97067
97067
|
}, Y = () => {
|
97068
97068
|
a.trim() && k && (m(a), h(!0), V == null || V());
|
97069
97069
|
}, se = () => {
|
@@ -97322,7 +97322,7 @@ Q5.exports;
|
|
97322
97322
|
j && (D = S, S = null);
|
97323
97323
|
var R = D.navigator || {}, H = R.userAgent || "";
|
97324
97324
|
S || (S = H);
|
97325
|
-
var V = j ? !!R.likeChrome : /\bChrome\b/.test(S) && !/internal|\n/i.test(f.toString()), G = "Object", q = j ? G : "ScriptBridgingProxyObject", _ = j ? G : "Environment", Z = j && D.java ? "JavaPackage" : b(D.java), Q = j ? G : "RuntimeObject", Y = /\bJava/.test(Z) && D.java, se = Y && b(D.environment) == _, fe = Y ? "a" : "α", ie = Y ? "b" : "β", pe = D.document || {}, ce = D.operamini || D.opera, be = l.test(be = j && ce ? ce["[[Class]]"] : b(ce)) ? be : ce = null, J, me = S,
|
97325
|
+
var V = j ? !!R.likeChrome : /\bChrome\b/.test(S) && !/internal|\n/i.test(f.toString()), G = "Object", q = j ? G : "ScriptBridgingProxyObject", _ = j ? G : "Environment", Z = j && D.java ? "JavaPackage" : b(D.java), Q = j ? G : "RuntimeObject", Y = /\bJava/.test(Z) && D.java, se = Y && b(D.environment) == _, fe = Y ? "a" : "α", ie = Y ? "b" : "β", pe = D.document || {}, ce = D.operamini || D.opera, be = l.test(be = j && ce ? ce["[[Class]]"] : b(ce)) ? be : ce = null, J, me = S, we = [], Re = null, Pe = S == H, Se = Pe && ce && typeof ce.version == "function" && ce.version(), Le, Te = De([
|
97326
97326
|
{ label: "EdgeHTML", pattern: "Edge" },
|
97327
97327
|
"Trident",
|
97328
97328
|
{ label: "WebKit", pattern: "AppleWebKit" },
|
@@ -97470,47 +97470,47 @@ Q5.exports;
|
|
97470
97470
|
"Windows 98;",
|
97471
97471
|
"Windows "
|
97472
97472
|
]);
|
97473
|
-
function De(
|
97474
|
-
return w(
|
97473
|
+
function De(Be) {
|
97474
|
+
return w(Be, function(Ye, Ee) {
|
97475
97475
|
return Ye || RegExp("\\b" + (Ee.pattern || v(Ee)) + "\\b", "i").exec(S) && (Ee.label || Ee);
|
97476
97476
|
});
|
97477
97477
|
}
|
97478
|
-
function W(
|
97479
|
-
return w(
|
97478
|
+
function W(Be) {
|
97479
|
+
return w(Be, function(Ye, Ee, _e) {
|
97480
97480
|
return Ye || (Ee[$] || Ee[/^[a-z]+(?: +[a-z]+\b)*/i.exec($)] || RegExp("\\b" + v(_e) + "(?:\\b|\\w*\\d)", "i").exec(S)) && _e;
|
97481
97481
|
});
|
97482
97482
|
}
|
97483
|
-
function C(
|
97484
|
-
return w(
|
97483
|
+
function C(Be) {
|
97484
|
+
return w(Be, function(Ye, Ee) {
|
97485
97485
|
return Ye || RegExp("\\b" + (Ee.pattern || v(Ee)) + "\\b", "i").exec(S) && (Ee.label || Ee);
|
97486
97486
|
});
|
97487
97487
|
}
|
97488
|
-
function P(
|
97489
|
-
return w(
|
97488
|
+
function P(Be) {
|
97489
|
+
return w(Be, function(Ye, Ee) {
|
97490
97490
|
var _e = Ee.pattern || v(Ee);
|
97491
97491
|
return !Ye && (Ye = RegExp("\\b" + _e + "(?:/[\\d.]+|[ \\w.]*)", "i").exec(S)) && (Ye = h(Ye, _e, Ee.label || Ee)), Ye;
|
97492
97492
|
});
|
97493
97493
|
}
|
97494
|
-
function B(
|
97495
|
-
return w(
|
97494
|
+
function B(Be) {
|
97495
|
+
return w(Be, function(Ye, Ee) {
|
97496
97496
|
var _e = Ee.pattern || v(Ee);
|
97497
97497
|
return !Ye && (Ye = RegExp("\\b" + _e + " *\\d+[.\\w_]*", "i").exec(S) || RegExp("\\b" + _e + " *\\w+-[\\w]*", "i").exec(S) || RegExp("\\b" + _e + "(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)", "i").exec(S)) && ((Ye = String(Ee.label && !RegExp(_e, "i").test(Ee.label) ? Ee.label : Ye).split("/"))[1] && !/[\d.]+/.test(Ye[0]) && (Ye[0] += " " + Ye[1]), Ee = Ee.label || Ee, Ye = m(Ye[0].replace(RegExp(_e, "i"), Ee).replace(RegExp("; *(?:" + Ee + "[_-])?", "i"), " ").replace(RegExp("(" + Ee + ")[-_.]?(\\w)", "i"), "$1 $2"))), Ye;
|
97498
97498
|
});
|
97499
97499
|
}
|
97500
|
-
function ne(
|
97501
|
-
return w(
|
97500
|
+
function ne(Be) {
|
97501
|
+
return w(Be, function(Ye, Ee) {
|
97502
97502
|
return Ye || (RegExp(Ee + "(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)", "i").exec(S) || 0)[1] || null;
|
97503
97503
|
});
|
97504
97504
|
}
|
97505
97505
|
function ue() {
|
97506
97506
|
return this.description || "";
|
97507
97507
|
}
|
97508
|
-
if (Te && (Te = [Te]), /\bAndroid\b/.test(te) && !$ && (J = /\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(S)) && ($ = x(J[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i, "") || null), X && !$ ? $ = B([X]) : X && $ && ($ = $.replace(RegExp("^(" + v(X) + ")[-_.\\s]", "i"), X + " ").replace(RegExp("^(" + v(X) + ")[-_.]?(\\w)", "i"), X + " $2")), (J = /\bGoogle TV\b/.exec($)) && ($ = J[0]), /\bSimulator\b/i.test(S) && ($ = ($ ? $ + " " : "") + "Simulator"), le == "Opera Mini" && /\bOPiOS\b/.test(S) &&
|
97508
|
+
if (Te && (Te = [Te]), /\bAndroid\b/.test(te) && !$ && (J = /\bAndroid[^;]*;(.*?)(?:Build|\) AppleWebKit)\b/i.exec(S)) && ($ = x(J[1]).replace(/^[a-z]{2}-[a-z]{2};\s*/i, "") || null), X && !$ ? $ = B([X]) : X && $ && ($ = $.replace(RegExp("^(" + v(X) + ")[-_.\\s]", "i"), X + " ").replace(RegExp("^(" + v(X) + ")[-_.]?(\\w)", "i"), X + " $2")), (J = /\bGoogle TV\b/.exec($)) && ($ = J[0]), /\bSimulator\b/i.test(S) && ($ = ($ ? $ + " " : "") + "Simulator"), le == "Opera Mini" && /\bOPiOS\b/.test(S) && we.push("running in Turbo/Uncompressed mode"), le == "IE" && /\blike iPhone OS\b/.test(S) ? (J = M(S.replace(/like iPhone OS/, "")), X = J.manufacturer, $ = J.product) : /^iP/.test($) ? (le || (le = "Safari"), te = "iOS" + ((J = / OS ([\d_]+)/i.exec(S)) ? " " + J[1].replace(/_/g, ".") : "")) : le == "Konqueror" && /^Linux\b/i.test(te) ? te = "Kubuntu" : X && X != "Google" && (/Chrome/.test(le) && !/\bMobile Safari\b/i.test(S) || /\bVita\b/.test($)) || /\bAndroid\b/.test(te) && /^Chrome/.test(le) && /\bVersion\//i.test(S) ? (le = "Android Browser", te = /\bAndroid\b/.test(te) ? te : "Android") : le == "Silk" ? (/\bMobi/i.test(S) || (te = "Android", we.unshift("desktop mode")), /Accelerated *= *true/i.test(S) && we.unshift("accelerated")) : le == "UC Browser" && /\bUCWEB\b/.test(S) ? we.push("speed mode") : le == "PaleMoon" && (J = /\bFirefox\/([\d.]+)\b/.exec(S)) ? we.push("identifying as Firefox " + J[1]) : le == "Firefox" && (J = /\b(Mobile|Tablet|TV)\b/i.exec(S)) ? (te || (te = "Firefox OS"), $ || ($ = J[1])) : !le || (J = !/\bMinefield\b/i.test(S) && /\b(?:Firefox|Safari)\b/.exec(le)) ? (le && !$ && /[\/,]|^[^(]+?\)/.test(S.slice(S.indexOf(J + "/") + 8)) && (le = null), (J = $ || X || te) && ($ || X || /\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(te)) && (le = /[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(te) ? te : J) + " Browser")) : le == "Electron" && (J = (/\bChrome\/([\d.]+)\b/.exec(S) || 0)[1]) && we.push("Chromium " + J), Se || (Se = ne([
|
97509
97509
|
"(?:Cloud9|CriOS|CrMo|Edge|Edg|EdgA|EdgiOS|FxiOS|HeadlessChrome|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$)|UCBrowser|YaBrowser)",
|
97510
97510
|
"Version",
|
97511
97511
|
v(le),
|
97512
97512
|
"(?:Firefox|Minefield|NetFront)"
|
97513
|
-
])), (J = Te == "iCab" && parseFloat(Se) > 3 && "WebKit" || /\bOpera\b/.test(le) && (/\bOPR\b/.test(S) ? "Blink" : "Presto") || /\b(?:Midori|Nook|Safari)\b/i.test(S) && !/^(?:Trident|EdgeHTML)$/.test(Te) && "WebKit" || !Te && /\bMSIE\b/i.test(S) && (te == "Mac OS" ? "Tasman" : "Trident") || Te == "WebKit" && /\bPlayStation\b(?! Vita\b)/i.test(le) && "NetFront") && (Te = [J]), le == "IE" && (J = (/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(S) || 0)[1]) ? (le += " Mobile", te = "Windows Phone " + (/\+$/.test(J) ? J : J + ".x"),
|
97513
|
+
])), (J = Te == "iCab" && parseFloat(Se) > 3 && "WebKit" || /\bOpera\b/.test(le) && (/\bOPR\b/.test(S) ? "Blink" : "Presto") || /\b(?:Midori|Nook|Safari)\b/i.test(S) && !/^(?:Trident|EdgeHTML)$/.test(Te) && "WebKit" || !Te && /\bMSIE\b/i.test(S) && (te == "Mac OS" ? "Tasman" : "Trident") || Te == "WebKit" && /\bPlayStation\b(?! Vita\b)/i.test(le) && "NetFront") && (Te = [J]), le == "IE" && (J = (/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(S) || 0)[1]) ? (le += " Mobile", te = "Windows Phone " + (/\+$/.test(J) ? J : J + ".x"), we.unshift("desktop mode")) : /\bWPDesktop\b/i.test(S) ? (le = "IE Mobile", te = "Windows Phone 8.x", we.unshift("desktop mode"), Se || (Se = (/\brv:([\d.]+)/.exec(S) || 0)[1])) : le != "IE" && Te == "Trident" && (J = /\brv:([\d.]+)/.exec(S)) && (le && we.push("identifying as " + le + (Se ? " " + Se : "")), le = "IE", Se = J[1]), Pe) {
|
97514
97514
|
if (k(D, "global"))
|
97515
97515
|
if (Y && (J = Y.lang.System, me = J.getProperty("os.arch"), te = te || J.getProperty("os.name") + " " + J.getProperty("os.version")), se) {
|
97516
97516
|
try {
|
@@ -97519,8 +97519,8 @@ Q5.exports;
|
|
97519
97519
|
(J = D.system) && J.global.system == D.system && (le = "Narwhal", te || (te = J[0].os || null));
|
97520
97520
|
}
|
97521
97521
|
le || (le = "Rhino");
|
97522
|
-
} else typeof D.process == "object" && !D.process.browser && (J = D.process) && (typeof J.versions == "object" && (typeof J.versions.electron == "string" ? (
|
97523
|
-
else b(J = D.runtime) == q ? (le = "Adobe AIR", te = J.flash.system.Capabilities.os) : b(J = D.phantom) == Q ? (le = "PhantomJS", Se = (J = J.version || null) && J.major + "." + J.minor + "." + J.patch) : typeof pe.documentMode == "number" && (J = /\bTrident\/(\d+)/i.exec(S)) ? (Se = [Se, pe.documentMode], (J = +J[1] + 4) != Se[1] && (
|
97522
|
+
} else typeof D.process == "object" && !D.process.browser && (J = D.process) && (typeof J.versions == "object" && (typeof J.versions.electron == "string" ? (we.push("Node " + J.versions.node), le = "Electron", Se = J.versions.electron) : typeof J.versions.nw == "string" && (we.push("Chromium " + Se, "Node " + J.versions.node), le = "NW.js", Se = J.versions.nw)), le || (le = "Node.js", me = J.arch, te = J.platform, Se = /[\d.]+/.exec(J.version), Se = Se ? Se[0] : null));
|
97523
|
+
else b(J = D.runtime) == q ? (le = "Adobe AIR", te = J.flash.system.Capabilities.os) : b(J = D.phantom) == Q ? (le = "PhantomJS", Se = (J = J.version || null) && J.major + "." + J.minor + "." + J.patch) : typeof pe.documentMode == "number" && (J = /\bTrident\/(\d+)/i.exec(S)) ? (Se = [Se, pe.documentMode], (J = +J[1] + 4) != Se[1] && (we.push("IE " + Se[1] + " mode"), Te && (Te[1] = ""), Se[1] = J), Se = le == "IE" ? String(Se[1].toFixed(1)) : Se[0]) : typeof pe.documentMode == "number" && /^(?:Chrome|Firefox)\b/.test(le) && (we.push("masking as " + le + " " + Se), le = "IE", Se = "11.0", Te = ["Trident"], te = "Windows");
|
97524
97524
|
te = te && m(te);
|
97525
97525
|
}
|
97526
97526
|
if (Se && (J = /(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Se) || /(?:alpha|beta)(?: ?\d)?/i.exec(S + ";" + (Pe && R.appMinorVersion)) || /\bMinefield\b/i.test(S) && "a") && (Re = /b/i.test(J) ? "beta" : "alpha", Se = Se.replace(RegExp(J + "\\+?$"), "") + (Re == "beta" ? ie : fe) + (/\d+\+?/.exec(J) || "")), le == "Fennec" || le == "Firefox" && /\b(?:Android|Firefox OS|KaiOS)\b/.test(te))
|
@@ -97528,25 +97528,25 @@ Q5.exports;
|
|
97528
97528
|
else if (le == "Maxthon" && Se)
|
97529
97529
|
Se = Se.replace(/\.[\d.]+/, ".x");
|
97530
97530
|
else if (/\bXbox\b/i.test($))
|
97531
|
-
$ == "Xbox 360" && (te = null), $ == "Xbox 360" && /\bIEMobile\b/.test(S) &&
|
97531
|
+
$ == "Xbox 360" && (te = null), $ == "Xbox 360" && /\bIEMobile\b/.test(S) && we.unshift("mobile mode");
|
97532
97532
|
else if ((/^(?:Chrome|IE|Opera)$/.test(le) || le && !$ && !/Browser|Mobi/.test(le)) && (te == "Windows CE" || /Mobi/i.test(S)))
|
97533
97533
|
le += " Mobile";
|
97534
97534
|
else if (le == "IE" && Pe)
|
97535
97535
|
try {
|
97536
|
-
D.external === null &&
|
97536
|
+
D.external === null && we.unshift("platform preview");
|
97537
97537
|
} catch {
|
97538
|
-
|
97538
|
+
we.unshift("embedded");
|
97539
97539
|
}
|
97540
|
-
else (/\bBlackBerry\b/.test($) || /\bBB10\b/.test(S)) && (J = (RegExp($.replace(/ +/g, " *") + "/([.\\d]+)", "i").exec(S) || 0)[1] || Se) ? (J = [J, /BB10/.test(S)], te = (J[1] ? ($ = null, X = "BlackBerry") : "Device Software") + " " + J[0], Se = null) : this != g && $ != "Wii" && (Pe && ce || /Opera/.test(le) && /\b(?:MSIE|Firefox)\b/i.test(S) || le == "Firefox" && /\bOS X (?:\d+\.){2,}/.test(te) || le == "IE" && (te && !/^Win/.test(te) && Se > 5.5 || /\bWindows XP\b/.test(te) && Se > 8 || Se == 8 && !/\bTrident\b/.test(S))) && !l.test(J = M.call(g, S.replace(l, "") + ";")) && J.name && (J = "ing as " + J.name + ((J = J.version) ? " " + J : ""), l.test(le) ? (/\bIE\b/.test(J) && te == "Mac OS" && (te = null), J = "identify" + J) : (J = "mask" + J, be ? le = m(be.replace(/([a-z])([A-Z])/g, "$1 $2")) : le = "Opera", /\bIE\b/.test(J) && (te = null), Pe || (Se = null)), Te = ["Presto"],
|
97541
|
-
(J = (/\bAppleWebKit\/([\d.]+\+?)/i.exec(S) || 0)[1]) && (J = [parseFloat(J.replace(/\.(\d)$/, ".0$1")), J], le == "Safari" && J[1].slice(-1) == "+" ? (le = "WebKit Nightly", Re = "alpha", Se = J[1].slice(0, -1)) : (Se == J[1] || Se == (J[2] = (/\bSafari\/([\d.]+\+?)/i.exec(S) || 0)[1])) && (Se = null), J[1] = (/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(S) || 0)[1], J[0] == 537.36 && J[2] == 537.36 && parseFloat(J[1]) >= 28 && Te == "WebKit" && (Te = ["Blink"]), !Pe || !V && !J[1] ? (Te && (Te[1] = "like Safari"), J = (J = J[0], J < 400 ? 1 : J < 500 ? 2 : J < 526 ? 3 : J < 533 ? 4 : J < 534 ? "4+" : J < 535 ? 5 : J < 537 ? 6 : J < 538 ? 7 : J < 601 ? 8 : J < 602 ? 9 : J < 604 ? 10 : J < 606 ? 11 : J < 608 ? 12 : "12")) : (Te && (Te[1] = "like Chrome"), J = J[1] || (J = J[0], J < 530 ? 1 : J < 532 ? 2 : J < 532.05 ? 3 : J < 533 ? 4 : J < 534.03 ? 5 : J < 534.07 ? 6 : J < 534.1 ? 7 : J < 534.13 ? 8 : J < 534.16 ? 9 : J < 534.24 ? 10 : J < 534.3 ? 11 : J < 535.01 ? 12 : J < 535.02 ? "13+" : J < 535.07 ? 15 : J < 535.11 ? 16 : J < 535.19 ? 17 : J < 536.05 ? 18 : J < 536.1 ? 19 : J < 537.01 ? 20 : J < 537.11 ? "21+" : J < 537.13 ? 23 : J < 537.18 ? 24 : J < 537.24 ? 25 : J < 537.36 ? 26 : Te != "Blink" ? "27" : "28")), Te && (Te[1] += " " + (J += typeof J == "number" ? ".x" : /[.+]/.test(J) ? "" : "+")), le == "Safari" && (!Se || parseInt(Se) > 45) ? Se = J : le == "Chrome" && /\bHeadlessChrome/i.test(S) &&
|
97540
|
+
else (/\bBlackBerry\b/.test($) || /\bBB10\b/.test(S)) && (J = (RegExp($.replace(/ +/g, " *") + "/([.\\d]+)", "i").exec(S) || 0)[1] || Se) ? (J = [J, /BB10/.test(S)], te = (J[1] ? ($ = null, X = "BlackBerry") : "Device Software") + " " + J[0], Se = null) : this != g && $ != "Wii" && (Pe && ce || /Opera/.test(le) && /\b(?:MSIE|Firefox)\b/i.test(S) || le == "Firefox" && /\bOS X (?:\d+\.){2,}/.test(te) || le == "IE" && (te && !/^Win/.test(te) && Se > 5.5 || /\bWindows XP\b/.test(te) && Se > 8 || Se == 8 && !/\bTrident\b/.test(S))) && !l.test(J = M.call(g, S.replace(l, "") + ";")) && J.name && (J = "ing as " + J.name + ((J = J.version) ? " " + J : ""), l.test(le) ? (/\bIE\b/.test(J) && te == "Mac OS" && (te = null), J = "identify" + J) : (J = "mask" + J, be ? le = m(be.replace(/([a-z])([A-Z])/g, "$1 $2")) : le = "Opera", /\bIE\b/.test(J) && (te = null), Pe || (Se = null)), Te = ["Presto"], we.push(J));
|
97541
|
+
(J = (/\bAppleWebKit\/([\d.]+\+?)/i.exec(S) || 0)[1]) && (J = [parseFloat(J.replace(/\.(\d)$/, ".0$1")), J], le == "Safari" && J[1].slice(-1) == "+" ? (le = "WebKit Nightly", Re = "alpha", Se = J[1].slice(0, -1)) : (Se == J[1] || Se == (J[2] = (/\bSafari\/([\d.]+\+?)/i.exec(S) || 0)[1])) && (Se = null), J[1] = (/\b(?:Headless)?Chrome\/([\d.]+)/i.exec(S) || 0)[1], J[0] == 537.36 && J[2] == 537.36 && parseFloat(J[1]) >= 28 && Te == "WebKit" && (Te = ["Blink"]), !Pe || !V && !J[1] ? (Te && (Te[1] = "like Safari"), J = (J = J[0], J < 400 ? 1 : J < 500 ? 2 : J < 526 ? 3 : J < 533 ? 4 : J < 534 ? "4+" : J < 535 ? 5 : J < 537 ? 6 : J < 538 ? 7 : J < 601 ? 8 : J < 602 ? 9 : J < 604 ? 10 : J < 606 ? 11 : J < 608 ? 12 : "12")) : (Te && (Te[1] = "like Chrome"), J = J[1] || (J = J[0], J < 530 ? 1 : J < 532 ? 2 : J < 532.05 ? 3 : J < 533 ? 4 : J < 534.03 ? 5 : J < 534.07 ? 6 : J < 534.1 ? 7 : J < 534.13 ? 8 : J < 534.16 ? 9 : J < 534.24 ? 10 : J < 534.3 ? 11 : J < 535.01 ? 12 : J < 535.02 ? "13+" : J < 535.07 ? 15 : J < 535.11 ? 16 : J < 535.19 ? 17 : J < 536.05 ? 18 : J < 536.1 ? 19 : J < 537.01 ? 20 : J < 537.11 ? "21+" : J < 537.13 ? 23 : J < 537.18 ? 24 : J < 537.24 ? 25 : J < 537.36 ? 26 : Te != "Blink" ? "27" : "28")), Te && (Te[1] += " " + (J += typeof J == "number" ? ".x" : /[.+]/.test(J) ? "" : "+")), le == "Safari" && (!Se || parseInt(Se) > 45) ? Se = J : le == "Chrome" && /\bHeadlessChrome/i.test(S) && we.unshift("headless")), le == "Opera" && (J = /\bzbov|zvav$/.exec(te)) ? (le += " ", we.unshift("desktop mode"), J == "zvav" ? (le += "Mini", Se = null) : le += "Mobile", te = te.replace(RegExp(" *" + J + "$"), "")) : le == "Safari" && /\bChrome\b/.exec(Te && Te[1]) ? (we.unshift("desktop mode"), le = "Chrome Mobile", Se = null, /\bOS X\b/.test(te) ? (X = "Apple", te = "iOS 4.3+") : te = null) : /\bSRWare Iron\b/.test(le) && !Se && (Se = ne("Chrome")), Se && Se.indexOf(J = /[\d.]+$/.exec(te)) == 0 && S.indexOf("/" + J + "-") > -1 && (te = x(te.replace(J, ""))), te && te.indexOf(le) != -1 && !RegExp(le + " OS").test(te) && (te = te.replace(RegExp(" *" + v(le) + " *"), "")), Te && !/\b(?:Avant|Nook)\b/.test(le) && (/Browser|Lunascape|Maxthon/.test(le) || le != "Safari" && /^iOS/.test(te) && /\bSafari\b/.test(Te[1]) || /^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|SRWare Iron|Vivaldi|Web)/.test(le) && Te[1]) && (J = Te[Te.length - 1]) && we.push(J), we.length && (we = ["(" + we.join("; ") + ")"]), X && $ && $.indexOf(X) < 0 && we.push("on " + X), $ && we.push((/^on /.test(we[we.length - 1]) ? "" : "on ") + $), te && (J = / ([\d.+]+)$/.exec(te), Le = J && te.charAt(te.length - J[0].length - 1) == "/", te = {
|
97542
97542
|
architecture: 32,
|
97543
97543
|
family: J && !Le ? te.replace(J[0], "") : te,
|
97544
97544
|
version: J ? J[1] : null,
|
97545
97545
|
toString: function() {
|
97546
|
-
var
|
97547
|
-
return this.family + (
|
97546
|
+
var Be = this.version;
|
97547
|
+
return this.family + (Be && !Le ? " " + Be : "") + (this.architecture == 64 ? " 64-bit" : "");
|
97548
97548
|
}
|
97549
|
-
}), (J = /\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(me)) && !/\bi686\b/i.test(me) ? (te && (te.architecture = 64, te.family = te.family.replace(RegExp(" *" + J), "")), le && (/\bWOW64\b/i.test(S) || Pe && /\w(?:86|32)$/.test(R.cpuClass || R.platform) && !/\bWin64; x64\b/i.test(S)) &&
|
97549
|
+
}), (J = /\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(me)) && !/\bi686\b/i.test(me) ? (te && (te.architecture = 64, te.family = te.family.replace(RegExp(" *" + J), "")), le && (/\bWOW64\b/i.test(S) || Pe && /\w(?:86|32)$/.test(R.cpuClass || R.platform) && !/\bWin64; x64\b/i.test(S)) && we.unshift("32-bit")) : te && /^OS X/.test(te.family) && le == "Chrome" && parseFloat(Se) >= 39 && (te.architecture = 64), S || (S = null);
|
97550
97550
|
var ye = {};
|
97551
97551
|
return ye.description = S, ye.layout = Te && Te[0], ye.manufacturer = X, ye.name = le, ye.prerelease = Re, ye.product = $, ye.ua = S, ye.version = le && Se, ye.os = te || {
|
97552
97552
|
/**
|
@@ -97584,7 +97584,7 @@ Q5.exports;
|
|
97584
97584
|
toString: function() {
|
97585
97585
|
return "null";
|
97586
97586
|
}
|
97587
|
-
}, ye.parse = M, ye.toString = ue, ye.version &&
|
97587
|
+
}, ye.parse = M, ye.toString = ue, ye.version && we.unshift(Se), ye.name && we.unshift(le), te && le && !(te == String(te).split(" ")[0] && (te == le.split(" ")[0] || $)) && we.push($ ? "(" + te + ")" : "on " + te), we.length && (ye.description = we.join(" ")), ye;
|
97588
97588
|
}
|
97589
97589
|
var L = M();
|
97590
97590
|
i && s ? g(L, function(S, D) {
|
@@ -97664,7 +97664,7 @@ const zee = /* @__PURE__ */ z2(Ant), v3 = () => {
|
|
97664
97664
|
setCommentDrawerOpen: f,
|
97665
97665
|
activeCommentId: d,
|
97666
97666
|
isCollabDocumentPublished: h
|
97667
|
-
} = t, [p, m] =
|
97667
|
+
} = t, [p, m] = ze(!1), { isNativeMobile: g } = tp(), { toolRef: b, setToolVisibility: k, toolVisibility: v } = OL({
|
97668
97668
|
editor: e
|
97669
97669
|
}), {
|
97670
97670
|
activeComment: w,
|
@@ -98364,14 +98364,14 @@ const qee = {
|
|
98364
98364
|
secureImageUploadUrl: a,
|
98365
98365
|
onMarkdownExport: o,
|
98366
98366
|
onMarkdownImport: l
|
98367
|
-
}), v = Ka("(max-width: 1480px)"), [w, x] =
|
98367
|
+
}), v = Ka("(max-width: 1480px)"), [w, x] = ze("exported_document.md"), M = [
|
98368
98368
|
{ title: "Fit", value: "1.4" },
|
98369
98369
|
{ title: "50%", value: "0.5" },
|
98370
98370
|
{ title: "75%", value: "0.75" },
|
98371
98371
|
{ title: "100%", value: "1" },
|
98372
98372
|
{ title: "150%", value: "1.5" },
|
98373
98373
|
{ title: "200%", value: "2" }
|
98374
|
-
], [L, S] =
|
98374
|
+
], [L, S] = ze(!1), D = () => {
|
98375
98375
|
if (t) {
|
98376
98376
|
const _ = t.commands.exportMarkdownFile();
|
98377
98377
|
if (_) {
|
@@ -105049,18 +105049,18 @@ var tne = { exports: {} };
|
|
105049
105049
|
}
|
105050
105050
|
function D(C, P, B, ne, ue) {
|
105051
105051
|
function ye(un, Ce) {
|
105052
|
-
return
|
105052
|
+
return Be === 1 ? un[Ce] : un.readUInt16BE(Ce * Be);
|
105053
105053
|
}
|
105054
|
-
var
|
105054
|
+
var Be = 1, Ye = C.length, Ee = P.length;
|
105055
105055
|
if (ne !== void 0 && (ne = (ne + "").toLowerCase(), ne === "ucs2" || ne === "ucs-2" || ne === "utf16le" || ne === "utf-16le")) {
|
105056
105056
|
if (2 > C.length || 2 > P.length) return -1;
|
105057
|
-
|
105057
|
+
Be = 2, Ye /= 2, Ee /= 2, B /= 2;
|
105058
105058
|
}
|
105059
105059
|
var _e;
|
105060
105060
|
if (ue) {
|
105061
105061
|
var Ke = -1;
|
105062
105062
|
for (_e = B; _e < Ye; _e++) if (ye(C, _e) !== ye(P, Ke === -1 ? 0 : _e - Ke)) Ke !== -1 && (_e -= _e - Ke), Ke = -1;
|
105063
|
-
else if (Ke === -1 && (Ke = _e), _e - Ke + 1 === Ee) return Ke *
|
105063
|
+
else if (Ke === -1 && (Ke = _e), _e - Ke + 1 === Ee) return Ke * Be;
|
105064
105064
|
} else for (B + Ee > Ye && (B = Ye - Ee), _e = B; 0 <= _e; _e--) {
|
105065
105065
|
for (var zt = !0, on = 0; on < Ee; on++) if (ye(C, _e + on) !== ye(P, on)) {
|
105066
105066
|
zt = !1;
|
@@ -105076,9 +105076,9 @@ var tne = { exports: {} };
|
|
105076
105076
|
ne ? (ne = +ne, ne > ue && (ne = ue)) : ne = ue;
|
105077
105077
|
var ye = P.length;
|
105078
105078
|
ne > ye / 2 && (ne = ye / 2);
|
105079
|
-
for (var
|
105080
|
-
if (
|
105081
|
-
C[B + Ye] =
|
105079
|
+
for (var Be, Ye = 0; Ye < ne; ++Ye) {
|
105080
|
+
if (Be = parseInt(P.substr(2 * Ye, 2), 16), X(Be)) return Ye;
|
105081
|
+
C[B + Ye] = Be;
|
105082
105082
|
}
|
105083
105083
|
return Ye;
|
105084
105084
|
}
|
@@ -105103,12 +105103,12 @@ var tne = { exports: {} };
|
|
105103
105103
|
function Z(C, P, B) {
|
105104
105104
|
B = c(C.length, B);
|
105105
105105
|
for (var ne = [], ue = P; ue < B; ) {
|
105106
|
-
var ye = C[ue],
|
105106
|
+
var ye = C[ue], Be = null, Ye = 239 < ye ? 4 : 223 < ye ? 3 : 191 < ye ? 2 : 1;
|
105107
105107
|
if (ue + Ye <= B) {
|
105108
105108
|
var Ee, _e, Ke, zt;
|
105109
|
-
Ye === 1 ? 128 > ye && (
|
105109
|
+
Ye === 1 ? 128 > ye && (Be = ye) : Ye === 2 ? (Ee = C[ue + 1], (192 & Ee) == 128 && (zt = (31 & ye) << 6 | 63 & Ee, 127 < zt && (Be = zt))) : Ye === 3 ? (Ee = C[ue + 1], _e = C[ue + 2], (192 & Ee) == 128 && (192 & _e) == 128 && (zt = (15 & ye) << 12 | (63 & Ee) << 6 | 63 & _e, 2047 < zt && (55296 > zt || 57343 < zt) && (Be = zt))) : Ye === 4 && (Ee = C[ue + 1], _e = C[ue + 2], Ke = C[ue + 3], (192 & Ee) == 128 && (192 & _e) == 128 && (192 & Ke) == 128 && (zt = (15 & ye) << 18 | (63 & Ee) << 12 | (63 & _e) << 6 | 63 & Ke, 65535 < zt && 1114112 > zt && (Be = zt)));
|
105110
105110
|
}
|
105111
|
-
|
105111
|
+
Be === null ? (Be = 65533, Ye = 1) : 65535 < Be && (Be -= 65536, ne.push(55296 | 1023 & Be >>> 10), Be = 56320 | 1023 & Be), ne.push(Be), ue += Ye;
|
105112
105112
|
}
|
105113
105113
|
return Q(ne);
|
105114
105114
|
}
|
@@ -105159,7 +105159,7 @@ var tne = { exports: {} };
|
|
105159
105159
|
function me(C, P, B, ne, ue) {
|
105160
105160
|
return P = +P, B >>>= 0, ue || be(C, P, B, 8), De.write(C, P, B, ne, 52, 8), B + 8;
|
105161
105161
|
}
|
105162
|
-
function
|
105162
|
+
function we(C) {
|
105163
105163
|
if (C = C.split("=")[0], C = C.trim().replace(W, ""), 2 > C.length) return "";
|
105164
105164
|
for (; C.length % 4 != 0; ) C += "=";
|
105165
105165
|
return C;
|
@@ -105169,13 +105169,13 @@ var tne = { exports: {} };
|
|
105169
105169
|
}
|
105170
105170
|
function Pe(C, P) {
|
105171
105171
|
P = P || 1 / 0;
|
105172
|
-
for (var B, ne = C.length, ue = null, ye = [],
|
105173
|
-
if (B = C.charCodeAt(
|
105172
|
+
for (var B, ne = C.length, ue = null, ye = [], Be = 0; Be < ne; ++Be) {
|
105173
|
+
if (B = C.charCodeAt(Be), 55295 < B && 57344 > B) {
|
105174
105174
|
if (!ue) {
|
105175
105175
|
if (56319 < B) {
|
105176
105176
|
-1 < (P -= 3) && ye.push(239, 191, 189);
|
105177
105177
|
continue;
|
105178
|
-
} else if (
|
105178
|
+
} else if (Be + 1 === ne) {
|
105179
105179
|
-1 < (P -= 3) && ye.push(239, 191, 189);
|
105180
105180
|
continue;
|
105181
105181
|
}
|
@@ -105209,11 +105209,11 @@ var tne = { exports: {} };
|
|
105209
105209
|
return P;
|
105210
105210
|
}
|
105211
105211
|
function Le(C, P) {
|
105212
|
-
for (var B, ne, ue, ye = [],
|
105212
|
+
for (var B, ne, ue, ye = [], Be = 0; Be < C.length && !(0 > (P -= 2)); ++Be) B = C.charCodeAt(Be), ne = B >> 8, ue = B % 256, ye.push(ue), ye.push(ne);
|
105213
105213
|
return ye;
|
105214
105214
|
}
|
105215
105215
|
function Te(C) {
|
105216
|
-
return te.toByteArray(
|
105216
|
+
return te.toByteArray(we(C));
|
105217
105217
|
}
|
105218
105218
|
function le(C, P, B, ne) {
|
105219
105219
|
for (var ue = 0; ue < ne && !(ue + B >= P.length || ue >= C.length); ++ue) P[ue + B] = C[ue];
|
@@ -105319,11 +105319,11 @@ var tne = { exports: {} };
|
|
105319
105319
|
if (ne >= ue) return -1;
|
105320
105320
|
if (P >= B) return 1;
|
105321
105321
|
if (P >>>= 0, B >>>= 0, ne >>>= 0, ue >>>= 0, this === C) return 0;
|
105322
|
-
for (var ye = ue - ne,
|
105323
|
-
ye = Ee[Ke],
|
105322
|
+
for (var ye = ue - ne, Be = B - P, Ye = c(ye, Be), Ee = this.slice(ne, ue), _e = C.slice(P, B), Ke = 0; Ke < Ye; ++Ke) if (Ee[Ke] !== _e[Ke]) {
|
105323
|
+
ye = Ee[Ke], Be = _e[Ke];
|
105324
105324
|
break;
|
105325
105325
|
}
|
105326
|
-
return ye <
|
105326
|
+
return ye < Be ? -1 : Be < ye ? 1 : 0;
|
105327
105327
|
}, f.prototype.includes = function(C, P, B) {
|
105328
105328
|
return this.indexOf(C, P, B) !== -1;
|
105329
105329
|
}, f.prototype.indexOf = function(C, P, B) {
|
@@ -105420,16 +105420,16 @@ var tne = { exports: {} };
|
|
105420
105420
|
var ue = i(2, 8 * B) - 1;
|
105421
105421
|
ce(this, C, P, B, ue, 0);
|
105422
105422
|
}
|
105423
|
-
var ye = 1,
|
105424
|
-
for (this[P] = 255 & C; ++
|
105423
|
+
var ye = 1, Be = 0;
|
105424
|
+
for (this[P] = 255 & C; ++Be < B && (ye *= 256); ) this[P + Be] = 255 & C / ye;
|
105425
105425
|
return P + B;
|
105426
105426
|
}, f.prototype.writeUIntBE = function(C, P, B, ne) {
|
105427
105427
|
if (C = +C, P >>>= 0, B >>>= 0, !ne) {
|
105428
105428
|
var ue = i(2, 8 * B) - 1;
|
105429
105429
|
ce(this, C, P, B, ue, 0);
|
105430
105430
|
}
|
105431
|
-
var ye = B - 1,
|
105432
|
-
for (this[P + ye] = 255 & C; 0 <= --ye && (
|
105431
|
+
var ye = B - 1, Be = 1;
|
105432
|
+
for (this[P + ye] = 255 & C; 0 <= --ye && (Be *= 256); ) this[P + ye] = 255 & C / Be;
|
105433
105433
|
return P + B;
|
105434
105434
|
}, f.prototype.writeUInt8 = function(C, P, B) {
|
105435
105435
|
return C = +C, P >>>= 0, B || ce(this, C, P, 1, 255, 0), this[P] = 255 & C, P + 1;
|
@@ -105446,16 +105446,16 @@ var tne = { exports: {} };
|
|
105446
105446
|
var ue = i(2, 8 * B - 1);
|
105447
105447
|
ce(this, C, P, B, ue - 1, -ue);
|
105448
105448
|
}
|
105449
|
-
var ye = 0,
|
105450
|
-
for (this[P] = 255 & C; ++ye < B && (
|
105449
|
+
var ye = 0, Be = 1, Ye = 0;
|
105450
|
+
for (this[P] = 255 & C; ++ye < B && (Be *= 256); ) 0 > C && Ye === 0 && this[P + ye - 1] !== 0 && (Ye = 1), this[P + ye] = 255 & (C / Be >> 0) - Ye;
|
105451
105451
|
return P + B;
|
105452
105452
|
}, f.prototype.writeIntBE = function(C, P, B, ne) {
|
105453
105453
|
if (C = +C, P >>>= 0, !ne) {
|
105454
105454
|
var ue = i(2, 8 * B - 1);
|
105455
105455
|
ce(this, C, P, B, ue - 1, -ue);
|
105456
105456
|
}
|
105457
|
-
var ye = B - 1,
|
105458
|
-
for (this[P + ye] = 255 & C; 0 <= --ye && (
|
105457
|
+
var ye = B - 1, Be = 1, Ye = 0;
|
105458
|
+
for (this[P + ye] = 255 & C; 0 <= --ye && (Be *= 256); ) 0 > C && Ye === 0 && this[P + ye + 1] !== 0 && (Ye = 1), this[P + ye] = 255 & (C / Be >> 0) - Ye;
|
105459
105459
|
return P + B;
|
105460
105460
|
}, f.prototype.writeInt8 = function(C, P, B) {
|
105461
105461
|
return C = +C, P >>>= 0, B || ce(this, C, P, 1, 127, -128), 0 > C && (C = 255 + C + 1), this[P] = 255 & C, P + 1;
|
@@ -105502,9 +105502,9 @@ var tne = { exports: {} };
|
|
105502
105502
|
var ye;
|
105503
105503
|
if (typeof C == "number") for (ye = P; ye < B; ++ye) this[ye] = C;
|
105504
105504
|
else {
|
105505
|
-
var
|
105505
|
+
var Be = f.isBuffer(C) ? C : f.from(C, ne), Ye = Be.length;
|
105506
105506
|
if (Ye === 0) throw new TypeError('The value "' + C + '" is invalid for argument "value"');
|
105507
|
-
for (ye = 0; ye < B - P; ++ye) this[ye + P] =
|
105507
|
+
for (ye = 0; ye < B - P; ++ye) this[ye + P] = Be[ye % Ye];
|
105508
105508
|
}
|
105509
105509
|
return this;
|
105510
105510
|
};
|
@@ -106080,7 +106080,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
106080
106080
|
return typeof W.prependListener == "function" ? W.prependListener(C, P) : void (W._events && W._events[C] ? Array.isArray(W._events[C]) ? W._events[C].unshift(P) : W._events[C] = [P, W._events[C]] : W.on(C, P));
|
106081
106081
|
}
|
106082
106082
|
function d(W, C, P) {
|
106083
|
-
Q = Q || s("./_stream_duplex"), W = W || {}, typeof P != "boolean" && (P = C instanceof Q), this.objectMode = !!W.objectMode, P && (this.objectMode = this.objectMode || !!W.readableObjectMode), this.highWaterMark = Se(this, W, "readableHighWaterMark", P), this.buffer = new
|
106083
|
+
Q = Q || s("./_stream_duplex"), W = W || {}, typeof P != "boolean" && (P = C instanceof Q), this.objectMode = !!W.objectMode, P && (this.objectMode = this.objectMode || !!W.readableObjectMode), this.highWaterMark = Se(this, W, "readableHighWaterMark", P), this.buffer = new we(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = W.emitClose !== !1, this.autoDestroy = !!W.autoDestroy, this.destroyed = !1, this.defaultEncoding = W.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, W.encoding && (!be && (be = s("string_decoder/").StringDecoder), this.decoder = new be(W.encoding), this.encoding = W.encoding);
|
106084
106084
|
}
|
106085
106085
|
function h(W) {
|
106086
106086
|
if (Q = Q || s("./_stream_duplex"), !(this instanceof h)) return new h(W);
|
@@ -106197,7 +106197,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
106197
106197
|
}, ce = s("util");
|
106198
106198
|
Y = ce && ce.debuglog ? ce.debuglog("stream") : function() {
|
106199
106199
|
};
|
106200
|
-
var be, J, me,
|
106200
|
+
var be, J, me, we = s("./internal/streams/buffer_list"), Re = s("./internal/streams/destroy"), Pe = s("./internal/streams/state"), Se = Pe.getHighWaterMark, Le = s("../errors").codes, Te = Le.ERR_INVALID_ARG_TYPE, le = Le.ERR_STREAM_PUSH_AFTER_EOF, $ = Le.ERR_METHOD_NOT_IMPLEMENTED, X = Le.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;
|
106201
106201
|
s("inherits")(h, fe);
|
106202
106202
|
var te = Re.errorOrDestroy, De = ["error", "close", "destroy", "pause", "resume"];
|
106203
106203
|
Object.defineProperty(h.prototype, "destroyed", { enumerable: !1, get: function() {
|
@@ -106238,7 +106238,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
106238
106238
|
Y("onend"), W.end();
|
106239
106239
|
}
|
106240
106240
|
function ne() {
|
106241
|
-
Y("cleanup"), W.removeListener("close",
|
106241
|
+
Y("cleanup"), W.removeListener("close", Be), W.removeListener("finish", Ye), W.removeListener("drain", un), W.removeListener("error", ye), W.removeListener("unpipe", P), _e.removeListener("end", B), _e.removeListener("end", Ee), _e.removeListener("data", ue), Ce = !0, Ke.awaitDrain && (!W._writableState || W._writableState.needDrain) && un();
|
106242
106242
|
}
|
106243
106243
|
function ue(qe) {
|
106244
106244
|
Y("ondata");
|
@@ -106248,11 +106248,11 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
106248
106248
|
function ye(qe) {
|
106249
106249
|
Y("onerror", qe), Ee(), W.removeListener("error", ye), se(W, "error") === 0 && te(W, qe);
|
106250
106250
|
}
|
106251
|
-
function
|
106251
|
+
function Be() {
|
106252
106252
|
W.removeListener("finish", Ye), Ee();
|
106253
106253
|
}
|
106254
106254
|
function Ye() {
|
106255
|
-
Y("onfinish"), W.removeListener("close",
|
106255
|
+
Y("onfinish"), W.removeListener("close", Be), Ee();
|
106256
106256
|
}
|
106257
106257
|
function Ee() {
|
106258
106258
|
Y("unpipe"), _e.unpipe(W);
|
@@ -106274,7 +106274,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
106274
106274
|
var un = S(_e);
|
106275
106275
|
W.on("drain", un);
|
106276
106276
|
var Ce = !1;
|
106277
|
-
return _e.on("data", ue), f(W, "error", ye), W.once("close",
|
106277
|
+
return _e.on("data", ue), f(W, "error", ye), W.once("close", Be), W.once("finish", Ye), W.emit("pipe", _e), Ke.flowing || (Y("pipe resume"), _e.resume()), W;
|
106278
106278
|
}, h.prototype.unpipe = function(W) {
|
106279
106279
|
var C = this._readableState, P = { hasUnpiped: !1 };
|
106280
106280
|
if (C.pipesCount === 0) return this;
|
@@ -106311,8 +106311,8 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
106311
106311
|
C.push(null);
|
106312
106312
|
}), W.on("data", function(ye) {
|
106313
106313
|
if (Y("wrapped data"), P.decoder && (ye = P.decoder.write(ye)), !(P.objectMode && ye == null) && (P.objectMode || ye && ye.length)) {
|
106314
|
-
var
|
106315
|
-
|
106314
|
+
var Be = C.push(ye);
|
106315
|
+
Be || (B = !0, W.pause());
|
106316
106316
|
}
|
106317
106317
|
}), W) this[ne] === void 0 && typeof W[ne] == "function" && (this[ne] = /* @__PURE__ */ function(ye) {
|
106318
106318
|
return function() {
|
@@ -106473,8 +106473,8 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
106473
106473
|
W.allBuffers = B, v($, X, !0, X.length, W, "", C.finish), X.pendingcb++, X.lastBufferedRequest = null, C.next ? (X.corkedRequestsFree = C.next, C.next = null) : X.corkedRequestsFree = new c(X), X.bufferedRequestCount = 0;
|
106474
106474
|
} else {
|
106475
106475
|
for (; te; ) {
|
106476
|
-
var ne = te.chunk, ue = te.encoding, ye = te.callback,
|
106477
|
-
if (v($, X, !1,
|
106476
|
+
var ne = te.chunk, ue = te.encoding, ye = te.callback, Be = X.objectMode ? 1 : ne.length;
|
106477
|
+
if (v($, X, !1, Be, ne, ue, ye), te = te.next, X.bufferedRequestCount--, X.writing) break;
|
106478
106478
|
}
|
106479
106479
|
te === null && (X.lastBufferedRequest = null);
|
106480
106480
|
}
|
@@ -106514,7 +106514,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
106514
106514
|
var _;
|
106515
106515
|
p.WritableState = h;
|
106516
106516
|
var Z = { deprecate: s("util-deprecate") }, Q = s("./internal/streams/stream"), Y = s("buffer").Buffer, se = l.Uint8Array || function() {
|
106517
|
-
}, fe = s("./internal/streams/destroy"), ie = s("./internal/streams/state"), pe = ie.getHighWaterMark, ce = s("../errors").codes, be = ce.ERR_INVALID_ARG_TYPE, J = ce.ERR_METHOD_NOT_IMPLEMENTED, me = ce.ERR_MULTIPLE_CALLBACK,
|
106517
|
+
}, fe = s("./internal/streams/destroy"), ie = s("./internal/streams/state"), pe = ie.getHighWaterMark, ce = s("../errors").codes, be = ce.ERR_INVALID_ARG_TYPE, J = ce.ERR_METHOD_NOT_IMPLEMENTED, me = ce.ERR_MULTIPLE_CALLBACK, we = ce.ERR_STREAM_CANNOT_PIPE, Re = ce.ERR_STREAM_DESTROYED, Pe = ce.ERR_STREAM_NULL_VALUES, Se = ce.ERR_STREAM_WRITE_AFTER_END, Le = ce.ERR_UNKNOWN_ENCODING, Te = fe.errorOrDestroy;
|
106518
106518
|
s("inherits")(p, Q), h.prototype.getBuffer = function() {
|
106519
106519
|
for (var $ = this.bufferedRequest, X = []; $; ) X.push($), $ = $.next;
|
106520
106520
|
return X;
|
@@ -106532,7 +106532,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
106532
106532
|
} })) : le = function($) {
|
106533
106533
|
return $ instanceof this;
|
106534
106534
|
}, p.prototype.pipe = function() {
|
106535
|
-
Te(this, new
|
106535
|
+
Te(this, new we());
|
106536
106536
|
}, p.prototype.write = function($, X, te) {
|
106537
106537
|
var De = this._writableState, W = !1, C = !De.objectMode && f($);
|
106538
106538
|
return C && !Y.isBuffer($) && ($ = u($)), typeof X == "function" && (te = X, X = null), C ? X = "buffer" : !X && (X = De.defaultEncoding), typeof te != "function" && (te = d), De.ending ? m(this, te) : (C || g(this, De, $, te)) && (De.pendingcb++, W = k(this, De, C, $, X, te)), W;
|
@@ -108114,7 +108114,7 @@ class Kst {
|
|
108114
108114
|
).filter((r) => r !== null), n = this._tr.replace(
|
108115
108115
|
0,
|
108116
108116
|
this.prosemirrorView.state.doc.content.size,
|
108117
|
-
new
|
108117
|
+
new nt(Ve.from(e), 0, 0)
|
108118
108118
|
);
|
108119
108119
|
n.setMeta(Zn, { snapshot: null, prevSnapshot: null }), this.prosemirrorView.dispatch(n);
|
108120
108120
|
});
|
@@ -108131,7 +108131,7 @@ class Kst {
|
|
108131
108131
|
).filter((i) => i !== null), r = this._tr.replace(
|
108132
108132
|
0,
|
108133
108133
|
this.prosemirrorView.state.doc.content.size,
|
108134
|
-
new
|
108134
|
+
new nt(Ve.from(n), 0, 0)
|
108135
108135
|
);
|
108136
108136
|
if (e) {
|
108137
108137
|
const i = Yo(io(e.anchor, 0), r.doc.content.size), s = Yo(io(e.head, 0), r.doc.content.size);
|
@@ -108180,7 +108180,7 @@ class Kst {
|
|
108180
108180
|
) : null).filter((u) => u !== null), c = this._tr.replace(
|
108181
108181
|
0,
|
108182
108182
|
this.prosemirrorView.state.doc.content.size,
|
108183
|
-
new
|
108183
|
+
new nt(Ve.from(l), 0, 0)
|
108184
108184
|
);
|
108185
108185
|
this.prosemirrorView.dispatch(
|
108186
108186
|
c.setMeta(Zn, { isChangeOrigin: !0 })
|
@@ -108226,7 +108226,7 @@ class Kst {
|
|
108226
108226
|
let a = this._tr.replace(
|
108227
108227
|
0,
|
108228
108228
|
this.prosemirrorView.state.doc.content.size,
|
108229
|
-
new
|
108229
|
+
new nt(Ve.from(s), 0, 0)
|
108230
108230
|
);
|
108231
108231
|
Yst(a, this.beforeTransactionSelection, this), a = a.setMeta(Zn, { isChangeOrigin: !0, isUndoRedoOperation: n.origin instanceof Dte }), this.beforeTransactionSelection !== null && this._isLocalCursorInView() && a.scrollIntoView(), this.prosemirrorView.dispatch(a);
|
108232
108232
|
});
|
@@ -109425,7 +109425,7 @@ class ur extends Dt {
|
|
109425
109425
|
return ur.valid(r) ? new ur(r) : Dt.near(r);
|
109426
109426
|
}
|
109427
109427
|
content() {
|
109428
|
-
return
|
109428
|
+
return nt.empty;
|
109429
109429
|
}
|
109430
109430
|
eq(e) {
|
109431
109431
|
return e instanceof ur && e.head == this.head;
|
@@ -109597,7 +109597,7 @@ function zat(t, e) {
|
|
109597
109597
|
let i = Ve.empty;
|
109598
109598
|
for (let a = r.length - 1; a >= 0; a--)
|
109599
109599
|
i = Ve.from(r[a].createAndFill(null, i));
|
109600
|
-
let s = t.state.tr.replace(n.pos, n.pos, new
|
109600
|
+
let s = t.state.tr.replace(n.pos, n.pos, new nt(i, 0, 0));
|
109601
109601
|
return s.setSelection(vt.near(s.doc.resolve(n.pos + 1))), t.dispatch(s), !1;
|
109602
109602
|
}
|
109603
109603
|
function Bat(t) {
|
@@ -111846,7 +111846,7 @@ const Oot = xr.create({
|
|
111846
111846
|
width: a,
|
111847
111847
|
height: o
|
111848
111848
|
}, l) => {
|
111849
|
-
const [c, u] =
|
111849
|
+
const [c, u] = ze("");
|
111850
111850
|
return Fe(() => {
|
111851
111851
|
t && e && n && r && (async () => {
|
111852
111852
|
try {
|
@@ -111885,7 +111885,7 @@ const Rne = ({
|
|
111885
111885
|
updateAttributes: e,
|
111886
111886
|
deleteNode: n
|
111887
111887
|
}) => {
|
111888
|
-
const r = e7(), [i, s] =
|
111888
|
+
const r = e7(), [i, s] = ze(), [a, o] = ze(0), [l, c] = ze(0), [u, f] = ze({}), d = Xe(null), [h, p] = ze(!1), [m, g] = ze(!1), [b, k] = ze(null), v = Xe(null), w = () => {
|
111889
111889
|
const se = {};
|
111890
111890
|
CB.forEach(({ tooltip: fe, isActive: ie }) => {
|
111891
111891
|
se[fe] = !!(ie != null && ie(t.attrs));
|
@@ -111957,7 +111957,7 @@ const Rne = ({
|
|
111957
111957
|
setTimeout(() => {
|
111958
111958
|
R(ie, Math.abs(fe)), td = se;
|
111959
111959
|
});
|
111960
|
-
}, [V, G] =
|
111960
|
+
}, [V, G] = ze(), [q, _] = ze();
|
111961
111961
|
Fe(() => {
|
111962
111962
|
s(t.attrs["media-type"]), w(), G(t.attrs.dataFloat), _(t.attrs.dataAlign);
|
111963
111963
|
}, [t.attrs]);
|
@@ -112187,7 +112187,7 @@ var Qot = "https://platform.twitter.com/widgets.js", J9 = "createTweet", Xot = f
|
|
112187
112187
|
}));
|
112188
112188
|
};
|
112189
112189
|
const $ot = ({ node: t, editor: e }) => {
|
112190
|
-
const [n, r] =
|
112190
|
+
const [n, r] = ze(!0);
|
112191
112191
|
return Fe(() => {
|
112192
112192
|
e == null || e.chain().focus();
|
112193
112193
|
}, []), /* @__PURE__ */ T.jsx(
|
@@ -114057,7 +114057,7 @@ var ire = "PopperAnchor", sre = E.forwardRef(
|
|
114057
114057
|
sre.displayName = ire;
|
114058
114058
|
var dN = "PopperContent", [Lct, Tct] = ere(dN), are = E.forwardRef(
|
114059
114059
|
(t, e) => {
|
114060
|
-
var me,
|
114060
|
+
var me, we, Re, Pe, Se, Le;
|
114061
114061
|
const {
|
114062
114062
|
__scopePopper: n,
|
114063
114063
|
side: r = "bottom",
|
@@ -114112,7 +114112,7 @@ var dN = "PopperContent", [Lct, Tct] = ere(dN), are = E.forwardRef(
|
|
114112
114112
|
A2(() => {
|
114113
114113
|
Z && (fe == null || fe());
|
114114
114114
|
}, [Z, fe]);
|
114115
|
-
const ie = (me = Q.arrow) == null ? void 0 : me.x, pe = (
|
114115
|
+
const ie = (me = Q.arrow) == null ? void 0 : me.x, pe = (we = Q.arrow) == null ? void 0 : we.y, ce = ((Re = Q.arrow) == null ? void 0 : Re.centerOffset) !== 0, [be, J] = E.useState();
|
114116
114116
|
return A2(() => {
|
114117
114117
|
b && J(window.getComputedStyle(b).zIndex);
|
114118
114118
|
}, [b]), /* @__PURE__ */ T.jsx(
|
@@ -114406,7 +114406,7 @@ function rk(t, e) {
|
|
114406
114406
|
return typeof t == "function" ? t(e) : t && (t.current = e), t;
|
114407
114407
|
}
|
114408
114408
|
function Yct(t, e) {
|
114409
|
-
var n =
|
114409
|
+
var n = ze(function() {
|
114410
114410
|
return {
|
114411
114411
|
// value
|
114412
114412
|
value: t,
|
@@ -115095,7 +115095,7 @@ const O3 = ({
|
|
115095
115095
|
deleteNode: a
|
115096
115096
|
};
|
115097
115097
|
}, Fut = ({ content: t, children: e }) => {
|
115098
|
-
const [n, r] =
|
115098
|
+
const [n, r] = ze(!1);
|
115099
115099
|
return /* @__PURE__ */ T.jsxs(
|
115100
115100
|
"div",
|
115101
115101
|
{
|
@@ -116551,7 +116551,7 @@ const O3 = ({
|
|
116551
116551
|
)
|
116552
116552
|
] }), qut = ({ node: t, getPos: e, editor: n, deleteNode: r, secureImageUploadUrl: i }) => {
|
116553
116553
|
var Y;
|
116554
|
-
const [s, a] =
|
116554
|
+
const [s, a] = ze(!1), o = But(n, t, e()), l = e7(), c = wn(() => {
|
116555
116555
|
const { content: se } = t.content;
|
116556
116556
|
return se[0].type.name === "table";
|
116557
116557
|
}, [t.content]), u = wn(() => {
|
@@ -116595,9 +116595,9 @@ const O3 = ({
|
|
116595
116595
|
p("iframe", Re);
|
116596
116596
|
return;
|
116597
116597
|
}
|
116598
|
-
const
|
116599
|
-
if (
|
116600
|
-
const Re = `https://player.vimeo.com/video/${
|
116598
|
+
const we = u.match(/vimeo\.com\/([a-zA-Z0-9-_]+)/);
|
116599
|
+
if (we) {
|
116600
|
+
const Re = `https://player.vimeo.com/video/${we[1]}`;
|
116601
116601
|
p("iframe", Re);
|
116602
116602
|
return;
|
116603
116603
|
}
|
@@ -116659,13 +116659,13 @@ const O3 = ({
|
|
116659
116659
|
u && D();
|
116660
116660
|
}, [u]);
|
116661
116661
|
const j = wn(() => {
|
116662
|
-
var J, me,
|
116663
|
-
const { doc: se, selection: fe } = n.state, ie = e(), pe = se.nodeAt(ie) === se.firstChild, ce = ((J = se.nodeAt(ie)) == null ? void 0 : J.type.name) === "dBlock" && ((
|
116662
|
+
var J, me, we, Re;
|
116663
|
+
const { doc: se, selection: fe } = n.state, ie = e(), pe = se.nodeAt(ie) === se.firstChild, ce = ((J = se.nodeAt(ie)) == null ? void 0 : J.type.name) === "dBlock" && ((we = (me = se.nodeAt(ie)) == null ? void 0 : me.content.firstChild) == null ? void 0 : we.type.name) === "paragraph", be = fe.$anchor.pos >= ie && fe.$anchor.pos <= ie + (((Re = se.nodeAt(ie)) == null ? void 0 : Re.nodeSize) || 0);
|
116664
116664
|
return se.textContent === "" && pe && ce && be;
|
116665
116665
|
}, [e, n.state]), R = (se) => {
|
116666
116666
|
const fe = e() + t.nodeSize;
|
116667
116667
|
n.commands.insertContentAt(fe - 4, se);
|
116668
|
-
}, H = Hut(R), V = Vut(R), [G, q] =
|
116668
|
+
}, H = Hut(R), V = Vut(R), [G, q] = ze(!1), [_, Z] = ze(2), Q = () => {
|
116669
116669
|
q(!G), Z(G ? 2 : V.length);
|
116670
116670
|
};
|
116671
116671
|
return /* @__PURE__ */ T.jsxs(
|
@@ -117239,22 +117239,22 @@ class an extends Dt {
|
|
117239
117239
|
a.push(e.child(l).copy(Ve.from(c)));
|
117240
117240
|
}
|
117241
117241
|
const o = this.isColSelection() && this.isRowSelection() ? e : a;
|
117242
|
-
return new
|
117242
|
+
return new nt(Ve.from(o), 1, 1);
|
117243
117243
|
}
|
117244
|
-
replace(e, n =
|
117244
|
+
replace(e, n = nt.empty) {
|
117245
117245
|
let r = e.steps.length, i = this.ranges;
|
117246
117246
|
for (let a = 0; a < i.length; a++) {
|
117247
117247
|
let {
|
117248
117248
|
$from: o,
|
117249
117249
|
$to: l
|
117250
117250
|
} = i[a], c = e.mapping.slice(r);
|
117251
|
-
e.replace(c.map(o.pos), c.map(l.pos), a ?
|
117251
|
+
e.replace(c.map(o.pos), c.map(l.pos), a ? nt.empty : n);
|
117252
117252
|
}
|
117253
117253
|
let s = Dt.findFrom(e.doc.resolve(e.mapping.slice(r).map(this.to)), -1);
|
117254
117254
|
s && e.setSelection(s);
|
117255
117255
|
}
|
117256
117256
|
replaceWith(e, n) {
|
117257
|
-
this.replace(e, new
|
117257
|
+
this.replace(e, new nt(Ve.from(n), 0, 0));
|
117258
117258
|
}
|
117259
117259
|
forEachCell(e) {
|
117260
117260
|
let n = this.$anchorCell.node(-1), r = fr.get(n), i = this.$anchorCell.start(-1), s = r.cellsInRect(r.rectBetween(this.$anchorCell.pos - i, this.$headCell.pos - i));
|
@@ -117395,10 +117395,10 @@ function r1t(t) {
|
|
117395
117395
|
if (s == "row")
|
117396
117396
|
for (let l = 0; l < e.childCount; l++) {
|
117397
117397
|
let c = e.child(l).content, u = l ? 0 : Math.max(0, n - 1), f = l < e.childCount - 1 ? 0 : Math.max(0, r - 1);
|
117398
|
-
(u || f) && (c = cA(Mi(a).row, new
|
117398
|
+
(u || f) && (c = cA(Mi(a).row, new nt(c, u, f)).content), o.push(c);
|
117399
117399
|
}
|
117400
117400
|
else if (s == "cell" || s == "header_cell")
|
117401
|
-
o.push(n || r ? cA(Mi(a).row, new
|
117401
|
+
o.push(n || r ? cA(Mi(a).row, new nt(e, n, r)).content : e);
|
117402
117402
|
else
|
117403
117403
|
return null;
|
117404
117404
|
return i1t(a, o);
|
@@ -117532,7 +117532,7 @@ function KB(t, e, n, r, i) {
|
|
117532
117532
|
a1t(f, a, s, n, c, u, d) && h(), ZB(f, a, s, n, l, c, o, d) && h(), ZB(f, a, s, n, l, c, u, d) && h(), YB(f, a, s, n, o, u, l, d) && h(), YB(f, a, s, n, o, u, c, d) && h();
|
117533
117533
|
for (let p = o; p < u; p++) {
|
117534
117534
|
let m = a.positionAt(p, l, s), g = a.positionAt(p, c, s);
|
117535
|
-
f.replace(f.mapping.slice(d).map(m + n), f.mapping.slice(d).map(g + n), new
|
117535
|
+
f.replace(f.mapping.slice(d).map(m + n), f.mapping.slice(d).map(g + n), new nt(i.rows[p - o], 0, 0));
|
117536
117536
|
}
|
117537
117537
|
h(), f.setSelection(new an(f.doc.resolve(n + a.positionAt(o, l, s)), f.doc.resolve(n + a.positionAt(u - 1, c - 1, s)))), e(f);
|
117538
117538
|
}
|
@@ -117587,7 +117587,7 @@ function F3(t, e) {
|
|
117587
117587
|
if (e) {
|
117588
117588
|
let r = t.tr, i = Mi(t.schema).cell.createAndFill().content;
|
117589
117589
|
n.forEachCell((s, a) => {
|
117590
|
-
s.content.eq(i) || r.replace(r.mapping.map(a + 1), r.mapping.map(a + s.nodeSize - 1), new
|
117590
|
+
s.content.eq(i) || r.replace(r.mapping.map(a + 1), r.mapping.map(a + s.nodeSize - 1), new nt(i, 0, 0));
|
117591
117591
|
}), r.docChanged && e(r);
|
117592
117592
|
}
|
117593
117593
|
return !0;
|
@@ -118615,7 +118615,7 @@ function J1t(t) {
|
|
118615
118615
|
function e(n) {
|
118616
118616
|
var r = n.children, i = n.content, s = n.visible, a = n.singleton, o = n.render, l = n.reference, c = n.disabled, u = c === void 0 ? !1 : c, f = n.ignoreAttributes, d = f === void 0 ? !0 : f;
|
118617
118617
|
n.__source, n.__self;
|
118618
|
-
var h = Hre(n, ["children", "content", "visible", "singleton", "render", "reference", "disabled", "ignoreAttributes", "__source", "__self"]), p = s !== void 0, m = a !== void 0, g =
|
118618
|
+
var h = Hre(n, ["children", "content", "visible", "singleton", "render", "reference", "disabled", "ignoreAttributes", "__source", "__self"]), p = s !== void 0, m = a !== void 0, g = ze(!1), b = g[0], k = g[1], v = ze({}), w = v[0], x = v[1], M = ze(), L = M[0], S = M[1], D = Y1t(function() {
|
118619
118619
|
return {
|
118620
118620
|
container: aF(),
|
118621
118621
|
renders: 1
|
@@ -118842,7 +118842,7 @@ const $1t = [
|
|
118842
118842
|
selected: n,
|
118843
118843
|
editor: r
|
118844
118844
|
}) => {
|
118845
|
-
const [i, s] =
|
118845
|
+
const [i, s] = ze(!1), a = e7(), o = Xe(null), l = () => {
|
118846
118846
|
const { from: u, to: f } = r.state.selection, d = e(), h = d + t.nodeSize;
|
118847
118847
|
s(d <= u && f <= h);
|
118848
118848
|
};
|
@@ -119157,7 +119157,7 @@ const a0t = cn.create({
|
|
119157
119157
|
editor: e,
|
119158
119158
|
getPos: n
|
119159
119159
|
}) => {
|
119160
|
-
const [r, i] =
|
119160
|
+
const [r, i] = ze(""), s = e7(), a = ["https://twitter.com", "https://x.com"], o = () => {
|
119161
119161
|
switch (t.attrs.data) {
|
119162
119162
|
case "twitter":
|
119163
119163
|
return /* @__PURE__ */ T.jsx(Ze, { name: "XSocial", size: "md" });
|
@@ -124281,9 +124281,9 @@ function Lie() {
|
|
124281
124281
|
enumerable: !0,
|
124282
124282
|
value: !1
|
124283
124283
|
}
|
124284
|
-
})), J = null, me = null,
|
124284
|
+
})), J = null, me = null, we = !0, Re = !0, Pe = !1, Se = !0, Le = !1, Te = !0, le = !1, $ = !1, X = !1, te = !1, De = !1, W = !1, C = !0, P = !1;
|
124285
124285
|
const B = "user-content-";
|
124286
|
-
let ne = !0, ue = !1, ye = {},
|
124286
|
+
let ne = !0, ue = !1, ye = {}, Be = null;
|
124287
124287
|
const Ye = nn({}, ["annotation-xml", "audio", "colgroup", "desc", "foreignobject", "head", "iframe", "math", "mi", "mn", "mo", "ms", "mtext", "noembed", "noframes", "noscript", "plaintext", "script", "style", "svg", "template", "thead", "title", "video", "xmp"]);
|
124288
124288
|
let Ee = null;
|
124289
124289
|
const _e = nn({}, ["audio", "video", "img", "source", "image", "track"]);
|
@@ -124293,7 +124293,7 @@ function Lie() {
|
|
124293
124293
|
const Tt = nn({}, [on, un, Ce], vk);
|
124294
124294
|
let rt = nn({}, ["mi", "mo", "mn", "ms", "mtext"]), ht = nn({}, ["annotation-xml"]);
|
124295
124295
|
const Rt = nn({}, ["title", "style", "font", "a", "script"]);
|
124296
|
-
let
|
124296
|
+
let $e = null;
|
124297
124297
|
const Ht = ["application/xhtml+xml", "text/html"], An = "text/html";
|
124298
124298
|
let Nt = null, gn = null;
|
124299
124299
|
const Tn = n.createElement("form"), nr = function(ae) {
|
@@ -124301,8 +124301,8 @@ function Lie() {
|
|
124301
124301
|
}, rr = function() {
|
124302
124302
|
let ae = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
124303
124303
|
if (!(gn && gn === ae)) {
|
124304
|
-
if ((!ae || typeof ae != "object") && (ae = {}), ae = Y1(ae),
|
124305
|
-
Ht.indexOf(ae.PARSER_MEDIA_TYPE) === -1 ? An : ae.PARSER_MEDIA_TYPE, Nt =
|
124304
|
+
if ((!ae || typeof ae != "object") && (ae = {}), ae = Y1(ae), $e = // eslint-disable-next-line unicorn/prefer-includes
|
124305
|
+
Ht.indexOf(ae.PARSER_MEDIA_TYPE) === -1 ? An : ae.PARSER_MEDIA_TYPE, Nt = $e === "application/xhtml+xml" ? vk : U6, fe = Ia(ae, "ALLOWED_TAGS") ? nn({}, ae.ALLOWED_TAGS, Nt) : ie, pe = Ia(ae, "ALLOWED_ATTR") ? nn({}, ae.ALLOWED_ATTR, Nt) : ce, Ft = Ia(ae, "ALLOWED_NAMESPACES") ? nn({}, ae.ALLOWED_NAMESPACES, vk) : Tt, Ke = Ia(ae, "ADD_URI_SAFE_ATTR") ? nn(Y1(zt), ae.ADD_URI_SAFE_ATTR, Nt) : zt, Ee = Ia(ae, "ADD_DATA_URI_TAGS") ? nn(Y1(_e), ae.ADD_DATA_URI_TAGS, Nt) : _e, Be = Ia(ae, "FORBID_CONTENTS") ? nn({}, ae.FORBID_CONTENTS, Nt) : Ye, J = Ia(ae, "FORBID_TAGS") ? nn({}, ae.FORBID_TAGS, Nt) : {}, me = Ia(ae, "FORBID_ATTR") ? nn({}, ae.FORBID_ATTR, Nt) : {}, ye = Ia(ae, "USE_PROFILES") ? ae.USE_PROFILES : !1, we = ae.ALLOW_ARIA_ATTR !== !1, Re = ae.ALLOW_DATA_ATTR !== !1, Pe = ae.ALLOW_UNKNOWN_PROTOCOLS || !1, Se = ae.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Le = ae.SAFE_FOR_TEMPLATES || !1, Te = ae.SAFE_FOR_XML !== !1, le = ae.WHOLE_DOCUMENT || !1, te = ae.RETURN_DOM || !1, De = ae.RETURN_DOM_FRAGMENT || !1, W = ae.RETURN_TRUSTED_TYPE || !1, X = ae.FORCE_BODY || !1, C = ae.SANITIZE_DOM !== !1, P = ae.SANITIZE_NAMED_PROPS || !1, ne = ae.KEEP_CONTENT !== !1, ue = ae.IN_PLACE || !1, se = ae.ALLOWED_URI_REGEXP || Sie, qe = ae.NAMESPACE || Ce, rt = ae.MATHML_TEXT_INTEGRATION_POINTS || rt, ht = ae.HTML_INTEGRATION_POINTS || ht, be = ae.CUSTOM_ELEMENT_HANDLING || {}, ae.CUSTOM_ELEMENT_HANDLING && nr(ae.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (be.tagNameCheck = ae.CUSTOM_ELEMENT_HANDLING.tagNameCheck), ae.CUSTOM_ELEMENT_HANDLING && nr(ae.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (be.attributeNameCheck = ae.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), ae.CUSTOM_ELEMENT_HANDLING && typeof ae.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (be.allowCustomizedBuiltInElements = ae.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Le && (Re = !1), De && (te = !0), ye && (fe = nn({}, FF), pe = [], ye.html === !0 && (nn(fe, BF), nn(pe, HF)), ye.svg === !0 && (nn(fe, wk), nn(pe, Mk), nn(pe, U3)), ye.svgFilters === !0 && (nn(fe, kk), nn(pe, Mk), nn(pe, U3)), ye.mathMl === !0 && (nn(fe, xk), nn(pe, VF), nn(pe, U3))), ae.ADD_TAGS && (fe === ie && (fe = Y1(fe)), nn(fe, ae.ADD_TAGS, Nt)), ae.ADD_ATTR && (pe === ce && (pe = Y1(pe)), nn(pe, ae.ADD_ATTR, Nt)), ae.ADD_URI_SAFE_ATTR && nn(Ke, ae.ADD_URI_SAFE_ATTR, Nt), ae.FORBID_CONTENTS && (Be === Ye && (Be = Y1(Be)), nn(Be, ae.FORBID_CONTENTS, Nt)), ne && (fe["#text"] = !0), le && nn(fe, ["html", "head", "body"]), fe.table && (nn(fe, ["tbody"]), delete J.tbody), ae.TRUSTED_TYPES_POLICY) {
|
124306
124306
|
if (typeof ae.TRUSTED_TYPES_POLICY.createHTML != "function")
|
124307
124307
|
throw Bp('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
124308
124308
|
if (typeof ae.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
@@ -124319,7 +124319,7 @@ function Lie() {
|
|
124319
124319
|
tagName: "template"
|
124320
124320
|
});
|
124321
124321
|
const Je = U6(ae.tagName), Qt = U6(Ne.tagName);
|
124322
|
-
return Ft[ae.namespaceURI] ? ae.namespaceURI === un ? Ne.namespaceURI === Ce ? Je === "svg" : Ne.namespaceURI === on ? Je === "svg" && (Qt === "annotation-xml" || rt[Qt]) : !!Tr[Je] : ae.namespaceURI === on ? Ne.namespaceURI === Ce ? Je === "math" : Ne.namespaceURI === un ? Je === "math" && ht[Qt] : !!Ei[Je] : ae.namespaceURI === Ce ? Ne.namespaceURI === un && !ht[Qt] || Ne.namespaceURI === on && !rt[Qt] ? !1 : !Ei[Je] && (Rt[Je] || !Tr[Je]) : !!(
|
124322
|
+
return Ft[ae.namespaceURI] ? ae.namespaceURI === un ? Ne.namespaceURI === Ce ? Je === "svg" : Ne.namespaceURI === on ? Je === "svg" && (Qt === "annotation-xml" || rt[Qt]) : !!Tr[Je] : ae.namespaceURI === on ? Ne.namespaceURI === Ce ? Je === "math" : Ne.namespaceURI === un ? Je === "math" && ht[Qt] : !!Ei[Je] : ae.namespaceURI === Ce ? Ne.namespaceURI === un && !ht[Qt] || Ne.namespaceURI === on && !rt[Qt] ? !1 : !Ei[Je] && (Rt[Je] || !Tr[Je]) : !!($e === "application/xhtml+xml" && Ft[ae.namespaceURI]) : !1;
|
124323
124323
|
}, li = function(ae) {
|
124324
124324
|
Op(e.removed, {
|
124325
124325
|
element: ae
|
@@ -124360,11 +124360,11 @@ function Lie() {
|
|
124360
124360
|
const Bt = zF(ae, /^[\r\n\t ]+/);
|
124361
124361
|
Je = Bt && Bt[0];
|
124362
124362
|
}
|
124363
|
-
|
124363
|
+
$e === "application/xhtml+xml" && qe === Ce && (ae = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + ae + "</body></html>");
|
124364
124364
|
const Qt = w ? w.createHTML(ae) : ae;
|
124365
124365
|
if (qe === Ce)
|
124366
124366
|
try {
|
124367
|
-
Ne = new d().parseFromString(Qt,
|
124367
|
+
Ne = new d().parseFromString(Qt, $e);
|
124368
124368
|
} catch {
|
124369
124369
|
}
|
124370
124370
|
if (!Ne || !Ne.documentElement) {
|
@@ -124389,17 +124389,17 @@ function Lie() {
|
|
124389
124389
|
}, oe = function(ae) {
|
124390
124390
|
return typeof o == "function" && ae instanceof o;
|
124391
124391
|
};
|
124392
|
-
function
|
124392
|
+
function ve(Qe, ae, Ne) {
|
124393
124393
|
q3(Qe, (Je) => {
|
124394
124394
|
Je.call(e, ae, Ne, gn);
|
124395
124395
|
});
|
124396
124396
|
}
|
124397
|
-
const
|
124397
|
+
const Oe = function(ae) {
|
124398
124398
|
let Ne = null;
|
124399
|
-
if (
|
124399
|
+
if (ve(R.beforeSanitizeElements, ae, null), O(ae))
|
124400
124400
|
return li(ae), !0;
|
124401
124401
|
const Je = Nt(ae.nodeName);
|
124402
|
-
if (
|
124402
|
+
if (ve(R.uponSanitizeElement, ae, {
|
124403
124403
|
tagName: Je,
|
124404
124404
|
allowedTags: fe
|
124405
124405
|
}), ae.hasChildNodes() && !oe(ae.firstElementChild) && Ti(/<[/\w]/g, ae.innerHTML) && Ti(/<[/\w]/g, ae.textContent) || ae.nodeType === Hp.progressingInstruction || Te && ae.nodeType === Hp.comment && Ti(/<[/\w]/g, ae.data))
|
@@ -124407,7 +124407,7 @@ function Lie() {
|
|
124407
124407
|
if (!fe[Je] || J[Je]) {
|
124408
124408
|
if (!J[Je] && mt(Je) && (be.tagNameCheck instanceof RegExp && Ti(be.tagNameCheck, Je) || be.tagNameCheck instanceof Function && be.tagNameCheck(Je)))
|
124409
124409
|
return !1;
|
124410
|
-
if (ne && !
|
124410
|
+
if (ne && !Be[Je]) {
|
124411
124411
|
const Qt = v(ae) || ae.parentNode, pn = k(ae) || ae.childNodes;
|
124412
124412
|
if (pn && Qt) {
|
124413
124413
|
const Bt = pn.length;
|
@@ -124423,12 +124423,12 @@ function Lie() {
|
|
124423
124423
|
Ne = zp(Ne, Qt, " ");
|
124424
124424
|
}), ae.textContent !== Ne && (Op(e.removed, {
|
124425
124425
|
element: ae.cloneNode()
|
124426
|
-
}), ae.textContent = Ne)),
|
124426
|
+
}), ae.textContent = Ne)), ve(R.afterSanitizeElements, ae, null), !1);
|
124427
124427
|
}, ct = function(ae, Ne, Je) {
|
124428
124428
|
if (C && (Ne === "id" || Ne === "name") && (Je in n || Je in Tn))
|
124429
124429
|
return !1;
|
124430
124430
|
if (!(Re && !me[Ne] && Ti(q, Ne))) {
|
124431
|
-
if (!(
|
124431
|
+
if (!(we && Ti(_, Ne))) {
|
124432
124432
|
if (!pe[Ne] || me[Ne]) {
|
124433
124433
|
if (
|
124434
124434
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
@@ -124454,7 +124454,7 @@ function Lie() {
|
|
124454
124454
|
}, mt = function(ae) {
|
124455
124455
|
return ae !== "annotation-xml" && zF(ae, Y);
|
124456
124456
|
}, ot = function(ae) {
|
124457
|
-
|
124457
|
+
ve(R.beforeSanitizeAttributes, ae, null);
|
124458
124458
|
const {
|
124459
124459
|
attributes: Ne
|
124460
124460
|
} = ae;
|
@@ -124475,7 +124475,7 @@ function Lie() {
|
|
124475
124475
|
value: Ki
|
124476
124476
|
} = pn, kl = Nt(Bt);
|
124477
124477
|
let Li = Bt === "value" ? Ki : q2t(Ki);
|
124478
|
-
if (Je.attrName = kl, Je.attrValue = Li, Je.keepAttr = !0, Je.forceKeepAttr = void 0,
|
124478
|
+
if (Je.attrName = kl, Je.attrValue = Li, Je.keepAttr = !0, Je.forceKeepAttr = void 0, ve(R.uponSanitizeAttribute, ae, Je), Li = Je.attrValue, P && (kl === "id" || kl === "name") && (vo(Bt, ae), Li = B + Li), Te && Ti(/((--!?|])>)|<\/(style|title)/i, Li)) {
|
124479
124479
|
vo(Bt, ae);
|
124480
124480
|
continue;
|
124481
124481
|
}
|
@@ -124507,13 +124507,13 @@ function Lie() {
|
|
124507
124507
|
}
|
124508
124508
|
}
|
124509
124509
|
}
|
124510
|
-
|
124510
|
+
ve(R.afterSanitizeAttributes, ae, null);
|
124511
124511
|
}, it = function Qe(ae) {
|
124512
124512
|
let Ne = null;
|
124513
124513
|
const Je = zc(ae);
|
124514
|
-
for (
|
124515
|
-
|
124516
|
-
|
124514
|
+
for (ve(R.beforeSanitizeShadowDOM, ae, null); Ne = Je.nextNode(); )
|
124515
|
+
ve(R.uponSanitizeShadowNode, Ne, null), Oe(Ne), ot(Ne), Ne.content instanceof s && Qe(Ne.content);
|
124516
|
+
ve(R.afterSanitizeShadowDOM, ae, null);
|
124517
124517
|
};
|
124518
124518
|
return e.sanitize = function(Qe) {
|
124519
124519
|
let ae = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, Ne = null, Je = null, Qt = null, pn = null;
|
@@ -124543,7 +124543,7 @@ function Lie() {
|
|
124543
124543
|
Ne && X && li(Ne.firstChild);
|
124544
124544
|
const Bt = zc(ue ? Qe : Ne);
|
124545
124545
|
for (; Qt = Bt.nextNode(); )
|
124546
|
-
|
124546
|
+
Oe(Qt), ot(Qt), Qt.content instanceof s && it(Qt.content);
|
124547
124547
|
if (ue)
|
124548
124548
|
return Qe;
|
124549
124549
|
if (te) {
|
@@ -129161,7 +129161,7 @@ var wA = {
|
|
129161
129161
|
i !== n && (r *= i.sizeMultiplier / n.sizeMultiplier);
|
129162
129162
|
}
|
129163
129163
|
return Math.min(e.number * r, n.maxSize);
|
129164
|
-
},
|
129164
|
+
}, tt = function(e) {
|
129165
129165
|
return +e.toFixed(4) + "em";
|
129166
129166
|
}, o1 = function(e) {
|
129167
129167
|
return e.filter((n) => n).join(" ");
|
@@ -129281,7 +129281,7 @@ class Ea {
|
|
129281
129281
|
*/
|
129282
129282
|
toNode() {
|
129283
129283
|
var e = document.createTextNode(this.text), n = null;
|
129284
|
-
this.italic > 0 && (n = document.createElement("span"), n.style.marginRight =
|
129284
|
+
this.italic > 0 && (n = document.createElement("span"), n.style.marginRight = tt(this.italic)), this.classes.length > 0 && (n = n || document.createElement("span"), n.className = o1(this.classes));
|
129285
129285
|
for (var r in this.style)
|
129286
129286
|
this.style.hasOwnProperty(r) && (n = n || document.createElement("span"), n.style[r] = this.style[r]);
|
129287
129287
|
return n ? (n.appendChild(e), n) : e;
|
@@ -130211,7 +130211,7 @@ var Y3 = [
|
|
130211
130211
|
return DN(s), s;
|
130212
130212
|
}, Gie = (t, e, n, r) => new kg(t, e, n, r), Dmt = function(e, n, r) {
|
130213
130213
|
var i = es([e], [], n);
|
130214
|
-
return i.height = Math.max(r || n.fontMetrics().defaultRuleThickness, n.minRuleThickness), i.style.borderBottomWidth =
|
130214
|
+
return i.height = Math.max(r || n.fontMetrics().defaultRuleThickness, n.minRuleThickness), i.style.borderBottomWidth = tt(i.height), i.maxFontSize = 1, i;
|
130215
130215
|
}, Imt = function(e, n, r, i) {
|
130216
130216
|
var s = new jN(e, n, r, i);
|
130217
130217
|
return DN(s), s;
|
@@ -130271,23 +130271,23 @@ var Y3 = [
|
|
130271
130271
|
}
|
130272
130272
|
s += 2;
|
130273
130273
|
var c = es(["pstrut"], []);
|
130274
|
-
c.style.height =
|
130274
|
+
c.style.height = tt(s);
|
130275
130275
|
for (var u = [], f = i, d = i, h = i, p = 0; p < r.length; p++) {
|
130276
130276
|
var m = r[p];
|
130277
130277
|
if (m.type === "kern")
|
130278
130278
|
h += m.size;
|
130279
130279
|
else {
|
130280
130280
|
var g = m.elem, b = m.wrapperClasses || [], k = m.wrapperStyle || {}, v = es(b, [c, g], void 0, k);
|
130281
|
-
v.style.top =
|
130281
|
+
v.style.top = tt(-s - h - g.depth), m.marginLeft && (v.style.marginLeft = m.marginLeft), m.marginRight && (v.style.marginRight = m.marginRight), u.push(v), h += g.height + g.depth;
|
130282
130282
|
}
|
130283
130283
|
f = Math.min(f, h), d = Math.max(d, h);
|
130284
130284
|
}
|
130285
130285
|
var w = es(["vlist"], u);
|
130286
|
-
w.style.height =
|
130286
|
+
w.style.height = tt(d);
|
130287
130287
|
var x;
|
130288
130288
|
if (f < 0) {
|
130289
130289
|
var M = es([], []), L = es(["vlist"], [M]);
|
130290
|
-
L.style.height =
|
130290
|
+
L.style.height = tt(-f);
|
130291
130291
|
var S = es(["vlist-s"], [new Ea("")]);
|
130292
130292
|
x = [es(["vlist-r"], [w, S]), es(["vlist-r"], [L])];
|
130293
130293
|
} else
|
@@ -130296,7 +130296,7 @@ var Y3 = [
|
|
130296
130296
|
return x.length === 2 && D.classes.push("vlist-t2"), D.height = d, D.depth = -f, D;
|
130297
130297
|
}, zmt = (t, e) => {
|
130298
130298
|
var n = es(["mspace"], [], e), r = Kn(t, e);
|
130299
|
-
return n.style.marginRight =
|
130299
|
+
return n.style.marginRight = tt(r), n;
|
130300
130300
|
}, K3 = function(e, n, r) {
|
130301
130301
|
var i = "";
|
130302
130302
|
switch (e) {
|
@@ -130382,14 +130382,14 @@ var Y3 = [
|
|
130382
130382
|
oiiintSize2: ["oiiintSize2", 1.98, 0.659]
|
130383
130383
|
}, Bmt = function(e, n) {
|
130384
130384
|
var [r, i, s] = Kie[e], a = new l1(r), o = new Sc([a], {
|
130385
|
-
width:
|
130386
|
-
height:
|
130385
|
+
width: tt(i),
|
130386
|
+
height: tt(s),
|
130387
130387
|
// Override CSS rule `.katex svg { width: 100% }`
|
130388
|
-
style: "width:" +
|
130388
|
+
style: "width:" + tt(i),
|
130389
130389
|
viewBox: "0 0 " + 1e3 * i + " " + 1e3 * s,
|
130390
130390
|
preserveAspectRatio: "xMinYMin"
|
130391
130391
|
}), l = Gie(["overlay"], [o], n);
|
130392
|
-
return l.height = s, l.style.height =
|
130392
|
+
return l.height = s, l.style.height = tt(s), l.style.width = tt(i), l;
|
130393
130393
|
}, ke = {
|
130394
130394
|
fontMap: Yie,
|
130395
130395
|
makeSymbol: _a,
|
@@ -130627,7 +130627,7 @@ var t8 = function(e) {
|
|
130627
130627
|
};
|
130628
130628
|
function J3(t, e) {
|
130629
130629
|
var n = Ec(["base"], t, e), r = Ec(["strut"]);
|
130630
|
-
return r.style.height =
|
130630
|
+
return r.style.height = tt(n.height + n.depth), n.depth && (r.style.verticalAlign = tt(-n.depth)), n.children.unshift(r), n;
|
130631
130631
|
}
|
130632
130632
|
function CA(t, e) {
|
130633
130633
|
var n = null;
|
@@ -130646,7 +130646,7 @@ function CA(t, e) {
|
|
130646
130646
|
var u = Ec(["katex-html"], s);
|
130647
130647
|
if (u.setAttribute("aria-hidden", "true"), c) {
|
130648
130648
|
var f = c.children[0];
|
130649
|
-
f.style.height =
|
130649
|
+
f.style.height = tt(u.height + u.depth), u.depth && (f.style.verticalAlign = tt(-u.depth));
|
130650
130650
|
}
|
130651
130651
|
return u;
|
130652
130652
|
}
|
@@ -130745,13 +130745,13 @@ class Gmt {
|
|
130745
130745
|
if (this.character)
|
130746
130746
|
return document.createTextNode(this.character);
|
130747
130747
|
var e = document.createElementNS("http://www.w3.org/1998/Math/MathML", "mspace");
|
130748
|
-
return e.setAttribute("width",
|
130748
|
+
return e.setAttribute("width", tt(this.width)), e;
|
130749
130749
|
}
|
130750
130750
|
/**
|
130751
130751
|
* Converts the math node into an HTML markup string.
|
130752
130752
|
*/
|
130753
130753
|
toMarkup() {
|
130754
|
-
return this.character ? "<mtext>" + this.character + "</mtext>" : '<mspace width="' +
|
130754
|
+
return this.character ? "<mtext>" + this.character + "</mtext>" : '<mspace width="' + tt(this.width) + '"/>';
|
130755
130755
|
}
|
130756
130756
|
/**
|
130757
130757
|
* Converts the math node into a string, similar to innerText.
|
@@ -131012,7 +131012,7 @@ var $ie = function(e) {
|
|
131012
131012
|
}
|
131013
131013
|
var m = new l1(d), g = new Sc([m], {
|
131014
131014
|
width: "100%",
|
131015
|
-
height:
|
131015
|
+
height: tt(h),
|
131016
131016
|
viewBox: "0 0 " + o + " " + f,
|
131017
131017
|
preserveAspectRatio: "none"
|
131018
131018
|
});
|
@@ -131036,7 +131036,7 @@ var $ie = function(e) {
|
|
131036
131036
|
for (var R = 0; R < L; R++) {
|
131037
131037
|
var H = new l1(v[R]), V = new Sc([H], {
|
131038
131038
|
width: "400em",
|
131039
|
-
height:
|
131039
|
+
height: tt(M),
|
131040
131040
|
viewBox: "0 0 " + o + " " + x,
|
131041
131041
|
preserveAspectRatio: D[R] + " slice"
|
131042
131042
|
}), G = ke.makeSvgSpan([S[R]], [V], n);
|
@@ -131046,7 +131046,7 @@ var $ie = function(e) {
|
|
131046
131046
|
minWidth: w,
|
131047
131047
|
height: M
|
131048
131048
|
};
|
131049
|
-
G.style.height =
|
131049
|
+
G.style.height = tt(M), b.push(G);
|
131050
131050
|
}
|
131051
131051
|
return {
|
131052
131052
|
span: ke.makeSpan(["stretchy"], b, n),
|
@@ -131060,7 +131060,7 @@ var $ie = function(e) {
|
|
131060
131060
|
minWidth: s,
|
131061
131061
|
height: a
|
131062
131062
|
} = r();
|
131063
|
-
return i.height = a, i.style.height =
|
131063
|
+
return i.height = a, i.style.height = tt(a), s > 0 && (i.style.minWidth = tt(s)), i;
|
131064
131064
|
}, e4t = function(e, n, r, i, s) {
|
131065
131065
|
var a, o = e.height + e.depth + r + i;
|
131066
131066
|
if (/fbox|color|angl/.test(n)) {
|
@@ -131085,11 +131085,11 @@ var $ie = function(e) {
|
|
131085
131085
|
}));
|
131086
131086
|
var u = new Sc(c, {
|
131087
131087
|
width: "100%",
|
131088
|
-
height:
|
131088
|
+
height: tt(o)
|
131089
131089
|
});
|
131090
131090
|
a = ke.makeSvgSpan([], [u], s);
|
131091
131091
|
}
|
131092
|
-
return a.height = o, a.style.height =
|
131092
|
+
return a.height = o, a.style.height = tt(o), a;
|
131093
131093
|
}, Lc = {
|
131094
131094
|
encloseSpan: e4t,
|
131095
131095
|
mathMLnode: Jmt,
|
@@ -131129,8 +131129,8 @@ var ON = (t, e) => {
|
|
131129
131129
|
elem: d,
|
131130
131130
|
wrapperClasses: ["svg-align"],
|
131131
131131
|
wrapperStyle: o > 0 ? {
|
131132
|
-
width: "calc(100% - " +
|
131133
|
-
marginLeft:
|
131132
|
+
width: "calc(100% - " + tt(2 * o) + ")",
|
131133
|
+
marginLeft: tt(2 * o)
|
131134
131134
|
} : void 0
|
131135
131135
|
}]
|
131136
131136
|
}, e);
|
@@ -131143,7 +131143,7 @@ var ON = (t, e) => {
|
|
131143
131143
|
var m = r.label === "\\textcircled";
|
131144
131144
|
m && (d.classes.push("accent-full"), f = s.height);
|
131145
131145
|
var g = o;
|
131146
|
-
m || (g -= p / 2), d.style.left =
|
131146
|
+
m || (g -= p / 2), d.style.left = tt(g), r.label === "\\textcircled" && (d.style.top = ".2em"), d = ke.makeVList({
|
131147
131147
|
positionType: "firstBaseline",
|
131148
131148
|
children: [{
|
131149
131149
|
type: "elem",
|
@@ -131633,7 +131633,7 @@ at({
|
|
131633
131633
|
},
|
131634
131634
|
htmlBuilder(t, e) {
|
131635
131635
|
var n = e.havingStyle(e.style.sup()), r = ke.wrapFragment(dn(t.label, n, e), e);
|
131636
|
-
return r.classes.push("cd-label-" + t.side), r.style.bottom =
|
131636
|
+
return r.classes.push("cd-label-" + t.side), r.style.bottom = tt(0.8 - r.depth), r.height = 0, r.depth = 0, r;
|
131637
131637
|
},
|
131638
131638
|
mathmlBuilder(t, e) {
|
131639
131639
|
var n = new Ue.MathNode("mrow", [Ln(t.label, e)]);
|
@@ -131767,11 +131767,11 @@ at({
|
|
131767
131767
|
// not within tabular/array environments.
|
131768
131768
|
htmlBuilder(t, e) {
|
131769
131769
|
var n = ke.makeSpan(["mspace"], [], e);
|
131770
|
-
return t.newLine && (n.classes.push("newline"), t.size && (n.style.marginTop =
|
131770
|
+
return t.newLine && (n.classes.push("newline"), t.size && (n.style.marginTop = tt(Kn(t.size, e)))), n;
|
131771
131771
|
},
|
131772
131772
|
mathmlBuilder(t, e) {
|
131773
131773
|
var n = new Ue.MathNode("mspace");
|
131774
|
-
return t.newLine && (n.setAttribute("linebreak", "newline"), t.size && n.setAttribute("height",
|
131774
|
+
return t.newLine && (n.setAttribute("linebreak", "newline"), t.size && n.setAttribute("height", tt(Kn(t.size, e)))), n;
|
131775
131775
|
}
|
131776
131776
|
});
|
131777
131777
|
var AA = {
|
@@ -131927,7 +131927,7 @@ var im = function(e, n, r) {
|
|
131927
131927
|
return a.height *= o, a.depth *= o, a.maxFontSize = s.sizeMultiplier, a;
|
131928
131928
|
}, lse = function(e, n, r) {
|
131929
131929
|
var i = n.havingBaseStyle(r), s = (1 - n.sizeMultiplier / i.sizeMultiplier) * n.fontMetrics().axisHeight;
|
131930
|
-
e.classes.push("delimcenter"), e.style.top =
|
131930
|
+
e.classes.push("delimcenter"), e.style.top = tt(s), e.height -= s, e.depth += s;
|
131931
131931
|
}, l4t = function(e, n, r, i, s, a) {
|
131932
131932
|
var o = ke.makeSymbol(e, "Main-Regular", s, i), l = zN(o, n, i, a);
|
131933
131933
|
return r && lse(l, i, n), l;
|
@@ -131946,14 +131946,14 @@ var im = function(e, n, r) {
|
|
131946
131946
|
};
|
131947
131947
|
}, Pk = function(e, n, r) {
|
131948
131948
|
var i = Uo["Size4-Regular"][e.charCodeAt(0)] ? Uo["Size4-Regular"][e.charCodeAt(0)][4] : Uo["Size1-Regular"][e.charCodeAt(0)][4], s = new l1("inner", pmt(e, Math.round(1e3 * n))), a = new Sc([s], {
|
131949
|
-
width:
|
131950
|
-
height:
|
131949
|
+
width: tt(i),
|
131950
|
+
height: tt(n),
|
131951
131951
|
// Override CSS rule `.katex svg { width: 100% }`
|
131952
|
-
style: "width:" +
|
131952
|
+
style: "width:" + tt(i),
|
131953
131953
|
viewBox: "0 0 " + 1e3 * i + " " + Math.round(1e3 * n),
|
131954
131954
|
preserveAspectRatio: "xMinYMin"
|
131955
131955
|
}), o = ke.makeSvgSpan([], [a], r);
|
131956
|
-
return o.height = n, o.style.height =
|
131956
|
+
return o.height = n, o.style.height = tt(n), o.style.width = tt(i), {
|
131957
131957
|
type: "elem",
|
131958
131958
|
elem: o
|
131959
131959
|
};
|
@@ -132003,14 +132003,14 @@ var im = function(e, n, r) {
|
|
132003
132003
|
var a = hmt(e, i, r), o = new l1(e, a), l = new Sc([o], {
|
132004
132004
|
// Note: 1000:1 ratio of viewBox to document em width.
|
132005
132005
|
width: "400em",
|
132006
|
-
height:
|
132006
|
+
height: tt(n),
|
132007
132007
|
viewBox: "0 0 400000 " + r,
|
132008
132008
|
preserveAspectRatio: "xMinYMin slice"
|
132009
132009
|
});
|
132010
132010
|
return ke.makeSvgSpan(["hide-tail"], [l], s);
|
132011
132011
|
}, d4t = function(e, n) {
|
132012
132012
|
var r = n.havingBaseSizing(), i = pse("\\surd", e * r.sizeMultiplier, hse, r), s = r.sizeMultiplier, a = Math.max(0, n.minRuleThickness - n.fontMetrics().sqrtRuleThickness), o, l = 0, c = 0, u = 0, f;
|
132013
|
-
return i.type === "small" ? (u = 1e3 + 1e3 * a + Rk, e < 1 ? s = 1 : e < 1.4 && (s = 0.7), l = (1 + a + Ok) / s, c = (1 + a) / s, o = zk("sqrtMain", l, u, a, n), o.style.minWidth = "0.853em", f = 0.833 / s) : i.type === "large" ? (u = (1e3 + Rk) * Hm[i.size], c = (Hm[i.size] + a) / s, l = (Hm[i.size] + a + Ok) / s, o = zk("sqrtSize" + i.size, l, u, a, n), o.style.minWidth = "1.02em", f = 1 / s) : (l = e + a + Ok, c = e + a, u = Math.floor(1e3 * e + a) + Rk, o = zk("sqrtTall", l, u, a, n), o.style.minWidth = "0.742em", f = 1.056), o.height = c, o.style.height =
|
132013
|
+
return i.type === "small" ? (u = 1e3 + 1e3 * a + Rk, e < 1 ? s = 1 : e < 1.4 && (s = 0.7), l = (1 + a + Ok) / s, c = (1 + a) / s, o = zk("sqrtMain", l, u, a, n), o.style.minWidth = "0.853em", f = 0.833 / s) : i.type === "large" ? (u = (1e3 + Rk) * Hm[i.size], c = (Hm[i.size] + a) / s, l = (Hm[i.size] + a + Ok) / s, o = zk("sqrtSize" + i.size, l, u, a, n), o.style.minWidth = "1.02em", f = 1 / s) : (l = e + a + Ok, c = e + a, u = Math.floor(1e3 * e + a) + Rk, o = zk("sqrtTall", l, u, a, n), o.style.minWidth = "0.742em", f = 1.056), o.height = c, o.style.height = tt(l), {
|
132014
132014
|
span: o,
|
132015
132015
|
advanceWidth: f,
|
132016
132016
|
// Calculate the actual line width.
|
@@ -132221,7 +132221,7 @@ at({
|
|
132221
132221
|
t.delim !== "." && e.push(La(t.delim, t.mode));
|
132222
132222
|
var n = new Ue.MathNode("mo", e);
|
132223
132223
|
t.mclass === "mopen" || t.mclass === "mclose" ? n.setAttribute("fence", "true") : n.setAttribute("fence", "false"), n.setAttribute("stretchy", "true");
|
132224
|
-
var r =
|
132224
|
+
var r = tt(pc.sizeToMaxHeight[t.size]);
|
132225
132225
|
return n.setAttribute("minsize", r), n.setAttribute("maxsize", r), n;
|
132226
132226
|
}
|
132227
132227
|
});
|
@@ -132355,14 +132355,14 @@ var BN = (t, e) => {
|
|
132355
132355
|
}, e), u = e.havingBaseSizing();
|
132356
132356
|
i = i / u.sizeMultiplier;
|
132357
132357
|
var f = n.height + n.depth + l + c;
|
132358
|
-
n.style.paddingLeft =
|
132358
|
+
n.style.paddingLeft = tt(f / 2 + l);
|
132359
132359
|
var d = Math.floor(1e3 * f * i), h = fmt(d), p = new Sc([new l1("phase", h)], {
|
132360
132360
|
width: "400em",
|
132361
|
-
height:
|
132361
|
+
height: tt(d / 1e3),
|
132362
132362
|
viewBox: "0 0 400000 " + d,
|
132363
132363
|
preserveAspectRatio: "xMinYMin slice"
|
132364
132364
|
});
|
132365
|
-
s = ke.makeSvgSpan(["hide-tail"], [p], e), s.style.height =
|
132365
|
+
s = ke.makeSvgSpan(["hide-tail"], [p], e), s.style.height = tt(f), a = n.depth + l + c;
|
132366
132366
|
} else {
|
132367
132367
|
/cancel/.test(r) ? o || n.classes.push("cancel-pad") : r === "angl" ? n.classes.push("anglpad") : n.classes.push("boxpad");
|
132368
132368
|
var m = 0, g = 0, b = 0;
|
@@ -132371,7 +132371,7 @@ var BN = (t, e) => {
|
|
132371
132371
|
// default
|
132372
132372
|
e.minRuleThickness
|
132373
132373
|
// User override.
|
132374
|
-
), m = e.fontMetrics().fboxsep + (r === "colorbox" ? 0 : b), g = m) : r === "angl" ? (b = Math.max(e.fontMetrics().defaultRuleThickness, e.minRuleThickness), m = 4 * b, g = Math.max(0, 0.25 - n.depth)) : (m = o ? 0.2 : 0, g = m), s = Lc.encloseSpan(n, r, m, g, e), /fbox|boxed|fcolorbox/.test(r) ? (s.style.borderStyle = "solid", s.style.borderWidth =
|
132374
|
+
), m = e.fontMetrics().fboxsep + (r === "colorbox" ? 0 : b), g = m) : r === "angl" ? (b = Math.max(e.fontMetrics().defaultRuleThickness, e.minRuleThickness), m = 4 * b, g = Math.max(0, 0.25 - n.depth)) : (m = o ? 0.2 : 0, g = m), s = Lc.encloseSpan(n, r, m, g, e), /fbox|boxed|fcolorbox/.test(r) ? (s.style.borderStyle = "solid", s.style.borderWidth = tt(b)) : r === "angl" && b !== 0.049 && (s.style.borderTopWidth = tt(b), s.style.borderRightWidth = tt(b)), a = n.depth + g, t.backgroundColor && (s.style.backgroundColor = t.backgroundColor, t.borderColor && (s.style.borderColor = t.borderColor));
|
132375
132375
|
}
|
132376
132376
|
var k;
|
132377
132377
|
if (t.backgroundColor)
|
@@ -132728,34 +132728,34 @@ var bl = function(e, n) {
|
|
132728
132728
|
++i, ++_
|
132729
132729
|
) {
|
132730
132730
|
for (var ie = V[_] || {}, pe = !0; ie.type === "separator"; ) {
|
132731
|
-
if (pe || (q = ke.makeSpan(["arraycolsep"], []), q.style.width =
|
132731
|
+
if (pe || (q = ke.makeSpan(["arraycolsep"], []), q.style.width = tt(n.fontMetrics().doubleRuleSep), G.push(q)), ie.separator === "|" || ie.separator === ":") {
|
132732
132732
|
var ce = ie.separator === "|" ? "solid" : "dashed", be = ke.makeSpan(["vertical-separator"], [], n);
|
132733
|
-
be.style.height =
|
132733
|
+
be.style.height = tt(v), be.style.borderRightWidth = tt(u), be.style.borderRightStyle = ce, be.style.margin = "0 " + tt(-u / 2);
|
132734
132734
|
var J = v - H;
|
132735
|
-
J && (be.style.verticalAlign =
|
132735
|
+
J && (be.style.verticalAlign = tt(-J)), G.push(be);
|
132736
132736
|
} else
|
132737
132737
|
throw new Ge("Invalid separator type: " + ie.separator);
|
132738
132738
|
_++, ie = V[_] || {}, pe = !1;
|
132739
132739
|
}
|
132740
132740
|
if (!(i >= o)) {
|
132741
132741
|
var me = void 0;
|
132742
|
-
(i > 0 || e.hskipBeforeAndAfter) && (me = xt.deflt(ie.pregap, d), me !== 0 && (q = ke.makeSpan(["arraycolsep"], []), q.style.width =
|
132743
|
-
var
|
132742
|
+
(i > 0 || e.hskipBeforeAndAfter) && (me = xt.deflt(ie.pregap, d), me !== 0 && (q = ke.makeSpan(["arraycolsep"], []), q.style.width = tt(me), G.push(q)));
|
132743
|
+
var we = [];
|
132744
132744
|
for (r = 0; r < s; ++r) {
|
132745
132745
|
var Re = l[r], Pe = Re[i];
|
132746
132746
|
if (Pe) {
|
132747
132747
|
var Se = Re.pos - H;
|
132748
|
-
Pe.depth = Re.depth, Pe.height = Re.height,
|
132748
|
+
Pe.depth = Re.depth, Pe.height = Re.height, we.push({
|
132749
132749
|
type: "elem",
|
132750
132750
|
elem: Pe,
|
132751
132751
|
shift: Se
|
132752
132752
|
});
|
132753
132753
|
}
|
132754
132754
|
}
|
132755
|
-
|
132755
|
+
we = ke.makeVList({
|
132756
132756
|
positionType: "individualShift",
|
132757
|
-
children:
|
132758
|
-
}, n),
|
132757
|
+
children: we
|
132758
|
+
}, n), we = ke.makeSpan(["col-align-" + (ie.align || "c")], [we]), G.push(we), (i < o - 1 || e.hskipBeforeAndAfter) && (me = xt.deflt(ie.postgap, d), me !== 0 && (q = ke.makeSpan(["arraycolsep"], []), q.style.width = tt(me), G.push(q)));
|
132759
132759
|
}
|
132760
132760
|
}
|
132761
132761
|
if (l = ke.makeSpan(["mtable"], G), c.length > 0) {
|
@@ -132798,7 +132798,7 @@ var bl = function(e, n) {
|
|
132798
132798
|
e.tags && e.tags[a] && (l.unshift(i), l.push(i), e.leqno ? l.unshift(s) : l.push(s)), r.push(new Ue.MathNode("mtr", l));
|
132799
132799
|
}
|
132800
132800
|
var u = new Ue.MathNode("mtable", r), f = e.arraystretch === 0.5 ? 0.1 : 0.16 + e.arraystretch - 1 + (e.addJot ? 0.09 : 0);
|
132801
|
-
u.setAttribute("rowspacing",
|
132801
|
+
u.setAttribute("rowspacing", tt(f));
|
132802
132802
|
var d = "", h = "";
|
132803
132803
|
if (e.cols && e.cols.length > 0) {
|
132804
132804
|
var p = e.cols, m = "", g = !1, b = 0, k = p.length;
|
@@ -133333,7 +133333,7 @@ var kse = (t, e) => {
|
|
133333
133333
|
n.setAttribute("linethickness", "0px");
|
133334
133334
|
else if (t.barSize) {
|
133335
133335
|
var r = Kn(t.barSize, e);
|
133336
|
-
n.setAttribute("linethickness",
|
133336
|
+
n.setAttribute("linethickness", tt(r));
|
133337
133337
|
}
|
133338
133338
|
var i = kse(t.size, e.style);
|
133339
133339
|
if (i.size !== e.style.size) {
|
@@ -133942,9 +133942,9 @@ at({
|
|
133942
133942
|
var i = 0;
|
133943
133943
|
t.width.number > 0 && (i = Kn(t.width, e));
|
133944
133944
|
var s = {
|
133945
|
-
height:
|
133945
|
+
height: tt(n + r)
|
133946
133946
|
};
|
133947
|
-
i > 0 && (s.width =
|
133947
|
+
i > 0 && (s.width = tt(i)), r > 0 && (s.verticalAlign = tt(-r));
|
133948
133948
|
var a = new kmt(t.src, t.alt, s);
|
133949
133949
|
return a.height = n, a.depth = r, a;
|
133950
133950
|
},
|
@@ -133952,9 +133952,9 @@ at({
|
|
133952
133952
|
var n = new Ue.MathNode("mglyph", []);
|
133953
133953
|
n.setAttribute("alt", t.alt);
|
133954
133954
|
var r = Kn(t.height, e), i = 0;
|
133955
|
-
if (t.totalheight.number > 0 && (i = Kn(t.totalheight, e) - r, n.setAttribute("valign",
|
133955
|
+
if (t.totalheight.number > 0 && (i = Kn(t.totalheight, e) - r, n.setAttribute("valign", tt(-i))), n.setAttribute("height", tt(r + i)), t.width.number > 0) {
|
133956
133956
|
var s = Kn(t.width, e);
|
133957
|
-
n.setAttribute("width",
|
133957
|
+
n.setAttribute("width", tt(s));
|
133958
133958
|
}
|
133959
133959
|
return n.setAttribute("src", t.src), n;
|
133960
133960
|
}
|
@@ -134014,7 +134014,7 @@ at({
|
|
134014
134014
|
var n;
|
134015
134015
|
t.alignment === "clap" ? (n = ke.makeSpan([], [dn(t.body, e)]), n = ke.makeSpan(["inner"], [n], e)) : n = ke.makeSpan(["inner"], [dn(t.body, e)]);
|
134016
134016
|
var r = ke.makeSpan(["fix"], []), i = ke.makeSpan([t.alignment], [n, r], e), s = ke.makeSpan(["strut"]);
|
134017
|
-
return s.style.height =
|
134017
|
+
return s.style.height = tt(i.height + i.depth), i.depth && (s.style.verticalAlign = tt(-i.depth)), i.children.unshift(s), i = ke.makeSpan(["thinbox"], [i], e), ke.makeSpan(["mord", "vbox"], [i], e);
|
134018
134018
|
},
|
134019
134019
|
mathmlBuilder: (t, e) => {
|
134020
134020
|
var n = new Ue.MathNode("mpadded", [Ln(t.body, e)]);
|
@@ -134133,7 +134133,7 @@ var Mse = (t, e, n, r, i, s, a) => {
|
|
134133
134133
|
}, {
|
134134
134134
|
type: "elem",
|
134135
134135
|
elem: l.elem,
|
134136
|
-
marginLeft:
|
134136
|
+
marginLeft: tt(-s)
|
134137
134137
|
}, {
|
134138
134138
|
type: "kern",
|
134139
134139
|
size: l.kern
|
@@ -134146,7 +134146,7 @@ var Mse = (t, e, n, r, i, s, a) => {
|
|
134146
134146
|
}, {
|
134147
134147
|
type: "elem",
|
134148
134148
|
elem: c.elem,
|
134149
|
-
marginLeft:
|
134149
|
+
marginLeft: tt(s)
|
134150
134150
|
}, {
|
134151
134151
|
type: "kern",
|
134152
134152
|
size: r.fontMetrics().bigOpSpacing5
|
@@ -134163,7 +134163,7 @@ var Mse = (t, e, n, r, i, s, a) => {
|
|
134163
134163
|
}, {
|
134164
134164
|
type: "elem",
|
134165
134165
|
elem: l.elem,
|
134166
|
-
marginLeft:
|
134166
|
+
marginLeft: tt(-s)
|
134167
134167
|
}, {
|
134168
134168
|
type: "kern",
|
134169
134169
|
size: l.kern
|
@@ -134186,7 +134186,7 @@ var Mse = (t, e, n, r, i, s, a) => {
|
|
134186
134186
|
}, {
|
134187
134187
|
type: "elem",
|
134188
134188
|
elem: c.elem,
|
134189
|
-
marginLeft:
|
134189
|
+
marginLeft: tt(s)
|
134190
134190
|
}, {
|
134191
134191
|
type: "kern",
|
134192
134192
|
size: r.fontMetrics().bigOpSpacing5
|
@@ -134197,7 +134197,7 @@ var Mse = (t, e, n, r, i, s, a) => {
|
|
134197
134197
|
var g = [d];
|
134198
134198
|
if (l && s !== 0 && !o) {
|
134199
134199
|
var b = ke.makeSpan(["mspace"], [], r);
|
134200
|
-
b.style.marginRight =
|
134200
|
+
b.style.marginRight = tt(s), g.unshift(b);
|
134201
134201
|
}
|
134202
134202
|
return ke.makeSpan(["mop", "op-limits"], g, r);
|
134203
134203
|
}, Cse = ["\\smallint"], fp = (t, e) => {
|
@@ -134232,7 +134232,7 @@ var Mse = (t, e, n, r, i, s, a) => {
|
|
134232
134232
|
l = ke.makeSpan(["mop"], p, e);
|
134233
134233
|
}
|
134234
134234
|
var g = 0, b = 0;
|
134235
|
-
return (l instanceof Ea || s.name === "\\oiint" || s.name === "\\oiiint") && !s.suppressBaseShift && (g = (l.height - l.depth) / 2 - e.fontMetrics().axisHeight, b = l.italic), i ? Mse(l, n, r, e, a, b, g) : (g && (l.style.position = "relative", l.style.top =
|
134235
|
+
return (l instanceof Ea || s.name === "\\oiint" || s.name === "\\oiiint") && !s.suppressBaseShift && (g = (l.height - l.depth) / 2 - e.fontMetrics().axisHeight, b = l.italic), i ? Mse(l, n, r, e, a, b, g) : (g && (l.style.position = "relative", l.style.top = tt(g)), l);
|
134236
134236
|
}, xg = (t, e) => {
|
134237
134237
|
var n;
|
134238
134238
|
if (t.symbol)
|
@@ -134671,13 +134671,13 @@ at({
|
|
134671
134671
|
},
|
134672
134672
|
htmlBuilder(t, e) {
|
134673
134673
|
var n = ke.makeSpan(["mord", "rule"], [], e), r = Kn(t.width, e), i = Kn(t.height, e), s = t.shift ? Kn(t.shift, e) : 0;
|
134674
|
-
return n.style.borderRightWidth =
|
134674
|
+
return n.style.borderRightWidth = tt(r), n.style.borderTopWidth = tt(i), n.style.bottom = tt(s), n.width = r, n.height = i + s, n.depth = -s, n.maxFontSize = i * 1.125 * e.sizeMultiplier, n;
|
134675
134675
|
},
|
134676
134676
|
mathmlBuilder(t, e) {
|
134677
134677
|
var n = Kn(t.width, e), r = Kn(t.height, e), i = t.shift ? Kn(t.shift, e) : 0, s = e.color && e.getColor() || "black", a = new Ue.MathNode("mspace");
|
134678
|
-
a.setAttribute("mathbackground", s), a.setAttribute("width",
|
134678
|
+
a.setAttribute("mathbackground", s), a.setAttribute("width", tt(n)), a.setAttribute("height", tt(r));
|
134679
134679
|
var o = new Ue.MathNode("mpadded", [a]);
|
134680
|
-
return i >= 0 ? o.setAttribute("height",
|
134680
|
+
return i >= 0 ? o.setAttribute("height", tt(i)) : (o.setAttribute("height", tt(i)), o.setAttribute("depth", tt(-i))), o.setAttribute("voffset", tt(i)), o;
|
134681
134681
|
}
|
134682
134682
|
});
|
134683
134683
|
function Sse(t, e, n) {
|
@@ -134715,7 +134715,7 @@ at({
|
|
134715
134715
|
htmlBuilder: A4t,
|
134716
134716
|
mathmlBuilder: (t, e) => {
|
134717
134717
|
var n = e.havingSize(t.size), r = vs(t.body, n), i = new Ue.MathNode("mstyle", r);
|
134718
|
-
return i.setAttribute("mathsize",
|
134718
|
+
return i.setAttribute("mathsize", tt(n.sizeMultiplier)), i;
|
134719
134719
|
}
|
134720
134720
|
});
|
134721
134721
|
at({
|
@@ -134807,7 +134807,7 @@ at({
|
|
134807
134807
|
} = pc.sqrtImage(o, e), f = l.height - c;
|
134808
134808
|
f > n.height + n.depth + a && (a = (a + f - n.height - n.depth) / 2);
|
134809
134809
|
var d = l.height - n.height - a - c;
|
134810
|
-
n.style.paddingLeft =
|
134810
|
+
n.style.paddingLeft = tt(u);
|
134811
134811
|
var h = ke.makeVList({
|
134812
134812
|
positionType: "firstBaseline",
|
134813
134813
|
children: [{
|
@@ -134930,10 +134930,10 @@ Ff({
|
|
134930
134930
|
}
|
134931
134931
|
var m;
|
134932
134932
|
e.style === Et.DISPLAY ? m = c.sup1 : e.style.cramped ? m = c.sup3 : m = c.sup2;
|
134933
|
-
var g = e.sizeMultiplier, b =
|
134933
|
+
var g = e.sizeMultiplier, b = tt(0.5 / c.ptPerEm / g), k = null;
|
134934
134934
|
if (l) {
|
134935
134935
|
var v = t.base && t.base.type === "op" && t.base.name && (t.base.name === "\\oiint" || t.base.name === "\\oiiint");
|
134936
|
-
(a instanceof Ea || v) && (k =
|
134936
|
+
(a instanceof Ea || v) && (k = tt(-a.italic));
|
134937
134937
|
}
|
134938
134938
|
var w;
|
134939
134939
|
if (o && l) {
|
@@ -135731,7 +135731,7 @@ U("\\pmod", "\\pod{{\\rm mod}\\mkern6mu#1}");
|
|
135731
135731
|
U("\\mod", "\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");
|
135732
135732
|
U("\\newline", "\\\\\\relax");
|
135733
135733
|
U("\\TeX", "\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");
|
135734
|
-
var Tse =
|
135734
|
+
var Tse = tt(Uo["Main-Regular"][84][1] - 0.7 * Uo["Main-Regular"][65][1]);
|
135735
135735
|
U("\\LaTeX", "\\textrm{\\html@mathml{" + ("L\\kern-.36em\\raisebox{" + Tse + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{LaTeX}}");
|
135736
135736
|
U("\\KaTeX", "\\textrm{\\html@mathml{" + ("K\\kern-.17em\\raisebox{" + Tse + "}{\\scriptstyle A}") + "\\kern-.15em\\TeX}{KaTeX}}");
|
135737
135737
|
U("\\hspace", "\\@ifstar\\@hspacer\\@hspace");
|
@@ -139341,7 +139341,7 @@ const sgt = cn.create({
|
|
139341
139341
|
command: e,
|
139342
139342
|
editor: n
|
139343
139343
|
}) => {
|
139344
|
-
const [r, i] =
|
139344
|
+
const [r, i] = ze(0), [s, a] = ze(t), o = Ka("(max-width: 640px)"), l = kt(
|
139345
139345
|
(u) => {
|
139346
139346
|
const f = s[u];
|
139347
139347
|
f && (f.title === "Continue writing" || e(f));
|
@@ -140224,7 +140224,7 @@ const Gk = jA.getInstance(), zgt = (t) => ({
|
|
140224
140224
|
proExtensions: M
|
140225
140225
|
}) => {
|
140226
140226
|
var le, $;
|
140227
|
-
const [L] =
|
140227
|
+
const [L] = ze(new Of()), [S, D] = ze(null), j = Xe(null), R = (X) => {
|
140228
140228
|
if (!j.current) return;
|
140229
140229
|
const te = j.current.querySelector(`input#${X}`);
|
140230
140230
|
te && te.scrollIntoView({
|
@@ -140236,7 +140236,7 @@ const Gk = jA.getInstance(), zgt = (t) => ({
|
|
140236
140236
|
Fe(() => {
|
140237
140237
|
S && R(S);
|
140238
140238
|
}, [S]);
|
140239
|
-
const [H, V] =
|
140239
|
+
const [H, V] = ze([]), [G, q] = ze([
|
140240
140240
|
...Kyt(
|
140241
140241
|
(X) => u == null ? void 0 : u(X),
|
140242
140242
|
h
|
@@ -140264,7 +140264,7 @@ const Gk = jA.getInstance(), zgt = (t) => ({
|
|
140264
140264
|
})
|
140265
140265
|
]);
|
140266
140266
|
}, [t]);
|
140267
|
-
const _ = Xe(!1), [Z, Q] =
|
140267
|
+
const _ = Xe(!1), [Z, Q] = ze(!0), [Y, se] = ze([]), fe = (X, te, De) => {
|
140268
140268
|
let W = !1;
|
140269
140269
|
return X.doc.nodesBetween(te, De, (C) => {
|
140270
140270
|
C.marks && C.marks.some(
|
@@ -140279,9 +140279,9 @@ const Gk = jA.getInstance(), zgt = (t) => ({
|
|
140279
140279
|
if (P) {
|
140280
140280
|
const { state: B } = X;
|
140281
140281
|
let ne = P.pos, ue = P.pos;
|
140282
|
-
if (B.doc.nodesBetween(ne, ue, (ye,
|
140282
|
+
if (B.doc.nodesBetween(ne, ue, (ye, Be) => {
|
140283
140283
|
ye.marks && ye.marks.length && ye.marks.forEach((Ye) => {
|
140284
|
-
Ye.type.name === "highlight" && (ne =
|
140284
|
+
Ye.type.name === "highlight" && (ne = Be, ue = Be + ye.nodeSize);
|
140285
140285
|
});
|
140286
140286
|
}), ne !== ue) {
|
140287
140287
|
const ye = {
|
@@ -140365,11 +140365,11 @@ const Gk = jA.getInstance(), zgt = (t) => ({
|
|
140365
140365
|
Fe(() => {
|
140366
140366
|
ce == null || ce.setEditable(!t);
|
140367
140367
|
}, [t, ce]);
|
140368
|
-
const
|
140369
|
-
const X =
|
140368
|
+
const we = Xe(null), Re = async () => {
|
140369
|
+
const X = we.current;
|
140370
140370
|
if (X && await X.destroy(), g && m) {
|
140371
140371
|
const te = new Rgt(m, L);
|
140372
|
-
|
140372
|
+
we.current = te;
|
140373
140373
|
}
|
140374
140374
|
}, Pe = (X) => {
|
140375
140375
|
const te = X.map((De) => TA(De));
|
@@ -140565,7 +140565,7 @@ function RH(t) {
|
|
140565
140565
|
}), e;
|
140566
140566
|
}
|
140567
140567
|
const nj = typeof window < "u", Jse = nj ? co : Fe, rj = ({ children: t, custom: e, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: s = "sync", propagate: a = !1 }) => {
|
140568
|
-
const [o, l] = Kse(a), c = wn(() => RH(t), [t]), u = a && !o ? [] : c.map(r6), f = Xe(!0), d = Xe(c), h = ej(() => /* @__PURE__ */ new Map()), [p, m] =
|
140568
|
+
const [o, l] = Kse(a), c = wn(() => RH(t), [t]), u = a && !o ? [] : c.map(r6), f = Xe(!0), d = Xe(c), h = ej(() => /* @__PURE__ */ new Map()), [p, m] = ze(c), [g, b] = ze(c);
|
140569
140569
|
Jse(() => {
|
140570
140570
|
f.current = !1, d.current = c;
|
140571
140571
|
for (let w = 0; w < g.length; w++) {
|
@@ -145291,7 +145291,7 @@ const f8t = (t, e) => cj(t) ? new u8t(e) : new c8t(e, {
|
|
145291
145291
|
onError: e,
|
145292
145292
|
secureImageUploadUrl: s
|
145293
145293
|
}
|
145294
|
-
), [c, u] =
|
145294
|
+
), [c, u] = ze(""), [f, d] = ze(""), [h, p] = ze(!0), [m, g] = ze(!0), b = () => {
|
145295
145295
|
if ((c === null || c === "") && (f === "" || f === null)) {
|
145296
145296
|
o(Ct.NONE);
|
145297
145297
|
return;
|
@@ -146024,7 +146024,7 @@ const n_ = ({
|
|
146024
146024
|
slides: u,
|
146025
146025
|
setSlides: f
|
146026
146026
|
}) => {
|
146027
|
-
const [d, h] =
|
146027
|
+
const [d, h] = ze(!1), [p, m] = ze(0), [g, b] = ze({}), [k, v] = ze(!0), { isNativeMobile: w } = tp(), [x, M] = ze(null), [L, S] = ze(null), D = 50, [j, R] = ze(
|
146028
146028
|
"forward"
|
146029
146029
|
), H = gU(
|
146030
146030
|
{
|
@@ -146054,17 +146054,17 @@ const n_ = ({
|
|
146054
146054
|
if (pe.childNodes.forEach((me) => {
|
146055
146055
|
if (me instanceof HTMLElement && me.getAttribute("data-type") === "page-break" && me.getAttribute("data-page-break") === "true") {
|
146056
146056
|
if (be.length > 0) {
|
146057
|
-
const
|
146057
|
+
const we = document.createElement("div");
|
146058
146058
|
be.forEach(
|
146059
|
-
(Re) =>
|
146060
|
-
), ce.push(
|
146059
|
+
(Re) => we.appendChild(Re.cloneNode(!0))
|
146060
|
+
), ce.push(we.innerHTML), be = [];
|
146061
146061
|
}
|
146062
146062
|
} else
|
146063
146063
|
be.push(me.cloneNode(!0));
|
146064
146064
|
}), be.length > 0) {
|
146065
146065
|
const me = document.createElement("div");
|
146066
146066
|
be.forEach(
|
146067
|
-
(
|
146067
|
+
(we) => me.appendChild(we.cloneNode(!0))
|
146068
146068
|
), ce.push(me.innerHTML);
|
146069
146069
|
}
|
146070
146070
|
f(ce.filter((me) => me.trim().length > 0));
|
@@ -146859,7 +146859,7 @@ const n_ = ({
|
|
146859
146859
|
)
|
146860
146860
|
}
|
146861
146861
|
), O8t = () => /* @__PURE__ */ T.jsx("div", { className: "p-4 text-center text-body-sm color-text-secondary select-none", children: /* @__PURE__ */ T.jsx("p", { children: "Start editing your document to see the outline." }) }), z8t = ({ items: t = [], editor: e, setItems: n }) => {
|
146862
|
-
const [r, i] =
|
146862
|
+
const [r, i] = ze(null), s = Ka("(max-width: 1280px)");
|
146863
146863
|
if (t.length === 0)
|
146864
146864
|
return /* @__PURE__ */ T.jsx(O8t, {});
|
146865
146865
|
const a = (l, c) => {
|
@@ -147016,7 +147016,7 @@ const n_ = ({
|
|
147016
147016
|
documentName: be,
|
147017
147017
|
onInvalidContentError: J,
|
147018
147018
|
ignoreCorruptedData: me,
|
147019
|
-
commentDrawerOpen:
|
147019
|
+
commentDrawerOpen: we,
|
147020
147020
|
setCommentDrawerOpen: Re,
|
147021
147021
|
initialComments: Pe = [],
|
147022
147022
|
onNewComment: Se,
|
@@ -147034,16 +147034,16 @@ const n_ = ({
|
|
147034
147034
|
isLoading: ne,
|
147035
147035
|
connectViaUsername: ue,
|
147036
147036
|
isDDocOwner: ye,
|
147037
|
-
isCollabDocumentPublished:
|
147037
|
+
isCollabDocumentPublished: Be = !0
|
147038
147038
|
}, Ye) => {
|
147039
|
-
const [Ee, _e] =
|
147039
|
+
const [Ee, _e] = ze(!1), [Ke, zt] = ze(!1), on = Xe(null), un = Ka("(min-width: 1500px)"), Ce = Ka("(min-width: 3000px)"), { isNativeMobile: qe, isIOS: lt } = tp(), [Ft, Tt] = ze(!1), rt = Xe(null), ht = (x == null ? void 0 : x.slice(0, 4)) || [], Rt = x ? Math.max(0, x.length - 4) : 0;
|
147040
147040
|
RL(rt, () => {
|
147041
147041
|
Tt(!1);
|
147042
147042
|
}), Fe(() => {
|
147043
147043
|
x && x.length <= 4 && Tt(!1);
|
147044
147044
|
}, [x]);
|
147045
147045
|
const {
|
147046
|
-
editor:
|
147046
|
+
editor: $e,
|
147047
147047
|
ref: Ht,
|
147048
147048
|
isContentLoading: An,
|
147049
147049
|
ydoc: Nt,
|
@@ -147089,71 +147089,80 @@ const n_ = ({
|
|
147089
147089
|
l_(
|
147090
147090
|
Ye,
|
147091
147091
|
() => ({
|
147092
|
-
getEditor: () =>
|
147092
|
+
getEditor: () => $e,
|
147093
147093
|
getYdoc: () => Nt,
|
147094
147094
|
refreshYjsIndexedDbProvider: gn,
|
147095
147095
|
mergeYjsContents: (O) => {
|
147096
147096
|
const oe = PT(
|
147097
|
-
O.map((
|
147097
|
+
O.map((ve) => TA(ve))
|
147098
147098
|
);
|
147099
147099
|
return _4(Nt, oe), LA(oe);
|
147100
|
+
},
|
147101
|
+
exportContentAsMarkDown: (O) => {
|
147102
|
+
if ($e) {
|
147103
|
+
const oe = $e.commands.exportMarkdownFile();
|
147104
|
+
if (oe) {
|
147105
|
+
const ve = oe, Oe = document.createElement("a");
|
147106
|
+
Oe.href = ve, Oe.download = O, document.body.appendChild(Oe), Oe.click(), document.body.removeChild(Oe), URL.revokeObjectURL(ve);
|
147107
|
+
}
|
147108
|
+
}
|
147100
147109
|
}
|
147101
147110
|
}),
|
147102
|
-
[
|
147111
|
+
[$e, Nt]
|
147103
147112
|
);
|
147104
147113
|
const vo = (O) => {
|
147105
147114
|
M == null || M((oe) => {
|
147106
147115
|
if (oe.length >= 6)
|
147107
147116
|
return oe;
|
147108
|
-
const
|
147117
|
+
const ve = O.name.split(",").map((ct) => {
|
147109
147118
|
const mt = ct.trim();
|
147110
147119
|
return (w == null ? void 0 : w.find(
|
147111
147120
|
(it) => it.name.toLowerCase() === mt.toLowerCase()
|
147112
147121
|
)) || { name: mt, color: O.color };
|
147113
|
-
}),
|
147114
|
-
return
|
147115
|
-
|
147122
|
+
}), Oe = [...oe];
|
147123
|
+
return ve.forEach((ct) => {
|
147124
|
+
Oe.some(
|
147116
147125
|
(mt) => mt.name.toLowerCase() === ct.name.toLowerCase()
|
147117
|
-
) ||
|
147118
|
-
}),
|
147126
|
+
) || Oe.push(ct);
|
147127
|
+
}), Oe.slice(0, 6);
|
147119
147128
|
});
|
147120
147129
|
}, wl = (O) => {
|
147121
147130
|
M == null || M(
|
147122
|
-
(oe) => oe.filter((
|
147131
|
+
(oe) => oe.filter((ve) => ve.name !== O)
|
147123
147132
|
);
|
147124
147133
|
}, zc = () => {
|
147125
147134
|
_ == null || _(!1);
|
147126
|
-
const O = new URL(window.location.href), oe = O.hash, [
|
147127
|
-
|
147135
|
+
const O = new URL(window.location.href), oe = O.hash, [ve, Oe] = oe.split("&");
|
147136
|
+
Oe && Oe.startsWith("slides=") && (O.hash = ve, window.history.replaceState({}, "", O.toString()));
|
147128
147137
|
};
|
147129
147138
|
return Fe(() => {
|
147130
|
-
if (
|
147131
|
-
const { selection: O } =
|
147139
|
+
if ($e && qe) {
|
147140
|
+
const { selection: O } = $e.state, oe = L8(O), ve = () => {
|
147132
147141
|
_e(!0);
|
147133
|
-
},
|
147142
|
+
}, Oe = () => {
|
147134
147143
|
_e(!1);
|
147135
147144
|
};
|
147136
|
-
return !oe &&
|
147137
|
-
|
147145
|
+
return !oe && $e.on("focus", ve), oe && $e.on("blur", Oe), () => {
|
147146
|
+
$e.off("focus", ve), $e.off("blur", Oe);
|
147138
147147
|
};
|
147139
147148
|
}
|
147140
|
-
}, [qe,
|
147141
|
-
if (
|
147142
|
-
const O = (
|
147143
|
-
|
147144
|
-
}, oe =
|
147149
|
+
}, [qe, $e]), Fe(() => {
|
147150
|
+
if (!$e) return;
|
147151
|
+
const O = (ve) => {
|
147152
|
+
ve.key === "Enter" && $e.commands.scrollIntoView();
|
147153
|
+
}, oe = $e.view.dom;
|
147145
147154
|
return oe.addEventListener("keydown", O), () => {
|
147146
147155
|
oe.removeEventListener("keydown", O);
|
147147
147156
|
};
|
147148
|
-
}, [
|
147149
|
-
if (!qe ||
|
147157
|
+
}, [$e]), Fe(() => {
|
147158
|
+
if (!qe || !$e) return;
|
147150
147159
|
const O = () => {
|
147151
147160
|
Ht.current && Ht.current.scrollIntoView();
|
147152
|
-
}, oe =
|
147161
|
+
}, oe = $e.view.dom;
|
147153
147162
|
return oe.addEventListener("resize", O), () => {
|
147154
147163
|
oe.removeEventListener("resize", O);
|
147155
147164
|
};
|
147156
|
-
}, [
|
147165
|
+
}, [$e, Ht, qe]), !$e || An ? /* @__PURE__ */ T.jsxs("div", { className: "w-screen h-screen flex flex-col gap-4 justify-center items-center", children: [
|
147157
147166
|
/* @__PURE__ */ T.jsx(fT, {}),
|
147158
147167
|
/* @__PURE__ */ T.jsx("p", { children: "Loading Editor..." })
|
147159
147168
|
] }) : /* @__PURE__ */ T.jsxs(
|
@@ -147181,13 +147190,13 @@ const n_ = ({
|
|
147181
147190
|
"translate-y-[-100%]": !Z || q
|
147182
147191
|
}
|
147183
147192
|
),
|
147184
|
-
children: a == null ? void 0 : a({ editor:
|
147193
|
+
children: a == null ? void 0 : a({ editor: $e.getJSON() })
|
147185
147194
|
}
|
147186
147195
|
),
|
147187
147196
|
/* @__PURE__ */ T.jsxs(
|
147188
147197
|
Ett,
|
147189
147198
|
{
|
147190
|
-
editor:
|
147199
|
+
editor: $e,
|
147191
147200
|
username: i,
|
147192
147201
|
setUsername: s,
|
147193
147202
|
activeCommentId: Tn,
|
@@ -147225,7 +147234,7 @@ const n_ = ({
|
|
147225
147234
|
Int,
|
147226
147235
|
{
|
147227
147236
|
onError: b,
|
147228
|
-
editor:
|
147237
|
+
editor: $e,
|
147229
147238
|
zoomLevel: V,
|
147230
147239
|
setZoomLevel: G,
|
147231
147240
|
isNavbarVisible: Z,
|
@@ -147240,7 +147249,7 @@ const n_ = ({
|
|
147240
147249
|
q && /* @__PURE__ */ T.jsx(
|
147241
147250
|
L8t,
|
147242
147251
|
{
|
147243
|
-
editor:
|
147252
|
+
editor: $e,
|
147244
147253
|
onClose: zc,
|
147245
147254
|
isFullscreen: Ke,
|
147246
147255
|
setIsFullscreen: zt,
|
@@ -147257,7 +147266,7 @@ const n_ = ({
|
|
147257
147266
|
/* @__PURE__ */ T.jsx(
|
147258
147267
|
B8t,
|
147259
147268
|
{
|
147260
|
-
editor:
|
147269
|
+
editor: $e,
|
147261
147270
|
hasToC: !0,
|
147262
147271
|
items: Ys,
|
147263
147272
|
setItems: li,
|
@@ -147316,7 +147325,7 @@ const n_ = ({
|
|
147316
147325
|
/* @__PURE__ */ T.jsx(
|
147317
147326
|
Lnt,
|
147318
147327
|
{
|
147319
|
-
editor:
|
147328
|
+
editor: $e,
|
147320
147329
|
onError: b,
|
147321
147330
|
zoomLevel: V,
|
147322
147331
|
setIsCommentSectionOpen: S,
|
@@ -147327,10 +147336,10 @@ const n_ = ({
|
|
147327
147336
|
walletAddress: o,
|
147328
147337
|
onInlineComment: se,
|
147329
147338
|
activeCommentId: Tn,
|
147330
|
-
isCollabDocumentPublished:
|
147339
|
+
isCollabDocumentPublished: Be
|
147331
147340
|
}
|
147332
147341
|
),
|
147333
|
-
/* @__PURE__ */ T.jsx(Dnt, { editor:
|
147342
|
+
/* @__PURE__ */ T.jsx(Dnt, { editor: $e, appendTo: Ht })
|
147334
147343
|
] }),
|
147335
147344
|
/* @__PURE__ */ T.jsxs(t7, { isPreviewMode: t, children: [
|
147336
147345
|
w && w.length > 0 && /* @__PURE__ */ T.jsxs(
|
@@ -147401,7 +147410,7 @@ const n_ = ({
|
|
147401
147410
|
/* @__PURE__ */ T.jsx(
|
147402
147411
|
P8,
|
147403
147412
|
{
|
147404
|
-
editor:
|
147413
|
+
editor: $e,
|
147405
147414
|
id: "editor",
|
147406
147415
|
className: "w-full h-auto py-4 bg-white"
|
147407
147416
|
}
|
@@ -147415,7 +147424,7 @@ const n_ = ({
|
|
147415
147424
|
{
|
147416
147425
|
ref: on,
|
147417
147426
|
onClick: () => {
|
147418
|
-
d == null || d(
|
147427
|
+
d == null || d($e);
|
147419
147428
|
},
|
147420
147429
|
variant: "ghost",
|
147421
147430
|
className: jt(
|
@@ -147439,7 +147448,7 @@ const n_ = ({
|
|
147439
147448
|
h8t,
|
147440
147449
|
{
|
147441
147450
|
onError: b,
|
147442
|
-
editor:
|
147451
|
+
editor: $e,
|
147443
147452
|
isKeyboardVisible: Ee,
|
147444
147453
|
isNavbarVisible: Z,
|
147445
147454
|
setIsNavbarVisible: Q,
|
@@ -147451,7 +147460,7 @@ const n_ = ({
|
|
147451
147460
|
/* @__PURE__ */ T.jsx(
|
147452
147461
|
I8t,
|
147453
147462
|
{
|
147454
|
-
isOpen:
|
147463
|
+
isOpen: we,
|
147455
147464
|
onClose: () => Re == null ? void 0 : Re(!1),
|
147456
147465
|
isNavbarVisible: Z,
|
147457
147466
|
isPresentationMode: q,
|
@@ -147462,10 +147471,10 @@ const n_ = ({
|
|
147462
147471
|
/* @__PURE__ */ T.jsx("div", { children: /* @__PURE__ */ T.jsx(
|
147463
147472
|
P8t,
|
147464
147473
|
{
|
147465
|
-
editor:
|
147474
|
+
editor: $e,
|
147466
147475
|
activeCommentId: Tn,
|
147467
|
-
commentDrawerOpen:
|
147468
|
-
isCollabDocumentPublished:
|
147476
|
+
commentDrawerOpen: we,
|
147477
|
+
isCollabDocumentPublished: Be
|
147469
147478
|
}
|
147470
147479
|
) })
|
147471
147480
|
]
|
@@ -147498,7 +147507,7 @@ const n_ = ({
|
|
147498
147507
|
className: k,
|
147499
147508
|
unFocused: v
|
147500
147509
|
}, w) => {
|
147501
|
-
const [x, M] =
|
147510
|
+
const [x, M] = ze(!1), L = Xe(null), S = (g == null ? void 0 : g.slice(0, 4)) || [], D = g ? Math.max(0, g.length - 4) : 0;
|
147502
147511
|
RL(L, () => {
|
147503
147512
|
M(!1);
|
147504
147513
|
}), Fe(() => {
|
@@ -147531,7 +147540,16 @@ const n_ = ({
|
|
147531
147540
|
w,
|
147532
147541
|
() => ({
|
147533
147542
|
getEditor: () => j,
|
147534
|
-
getYdoc: () => V
|
147543
|
+
getYdoc: () => V,
|
147544
|
+
exportContentAsMarkDown: (_) => {
|
147545
|
+
if (j) {
|
147546
|
+
const Z = j.commands.exportMarkdownFile();
|
147547
|
+
if (Z) {
|
147548
|
+
const Q = Z, Y = document.createElement("a");
|
147549
|
+
Y.href = Q, Y.download = _, document.body.appendChild(Y), Y.click(), document.body.removeChild(Y), URL.revokeObjectURL(Q);
|
147550
|
+
}
|
147551
|
+
}
|
147552
|
+
}
|
147535
147553
|
}),
|
147536
147554
|
[j, V]
|
147537
147555
|
);
|
@@ -147634,5 +147652,6 @@ const n_ = ({
|
|
147634
147652
|
);
|
147635
147653
|
export {
|
147636
147654
|
xvt as DdocEditor,
|
147637
|
-
Mvt as PreviewDdocEditor
|
147655
|
+
Mvt as PreviewDdocEditor,
|
147656
|
+
TX as handleContentPrint
|
147638
147657
|
};
|