@fileverse-dev/ddoc 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.es.js +783 -785
- package/dist/index.umd.js +17 -17
- package/dist/packages/ddoc/use-ddoc-editor.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -14,7 +14,7 @@ var $u = (n, e, t, r) => ({
|
|
14
14
|
}
|
15
15
|
});
|
16
16
|
import * as H from "react";
|
17
|
-
import re, { forwardRef as Sr, createContext as um, useRef as
|
17
|
+
import re, { forwardRef as Sr, createContext as um, useRef as Kt, useState as st, useEffect as dt, useContext as fm, createElement as B0, useLayoutEffect as dm, useCallback as Xt, useMemo as Kl, cloneElement as dS, useImperativeHandle as SP } from "react";
|
18
18
|
import * as Hw from "react-dom";
|
19
19
|
import hS, { flushSync as TP, createPortal as NP } from "react-dom";
|
20
20
|
var vs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
@@ -59,57 +59,57 @@ var Cx;
|
|
59
59
|
function RP() {
|
60
60
|
return Cx || (Cx = 1, process.env.NODE_ENV !== "production" && function() {
|
61
61
|
var n = re, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), a = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), c = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), h = Symbol.for("react.offscreen"), p = Symbol.iterator, g = "@@iterator";
|
62
|
-
function y(
|
63
|
-
if (
|
62
|
+
function y(j) {
|
63
|
+
if (j === null || typeof j != "object")
|
64
64
|
return null;
|
65
|
-
var ie = p &&
|
65
|
+
var ie = p && j[p] || j[g];
|
66
66
|
return typeof ie == "function" ? ie : null;
|
67
67
|
}
|
68
68
|
var b = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
69
|
-
function A(
|
69
|
+
function A(j) {
|
70
70
|
{
|
71
71
|
for (var ie = arguments.length, me = new Array(ie > 1 ? ie - 1 : 0), Ve = 1; Ve < ie; Ve++)
|
72
72
|
me[Ve - 1] = arguments[Ve];
|
73
|
-
v("error",
|
73
|
+
v("error", j, me);
|
74
74
|
}
|
75
75
|
}
|
76
|
-
function v(
|
76
|
+
function v(j, ie, me) {
|
77
77
|
{
|
78
78
|
var Ve = b.ReactDebugCurrentFrame, ft = Ve.getStackAddendum();
|
79
79
|
ft !== "" && (ie += "%s", me = me.concat([ft]));
|
80
80
|
var mt = me.map(function(ot) {
|
81
81
|
return String(ot);
|
82
82
|
});
|
83
|
-
mt.unshift("Warning: " + ie), Function.prototype.apply.call(console[
|
83
|
+
mt.unshift("Warning: " + ie), Function.prototype.apply.call(console[j], console, mt);
|
84
84
|
}
|
85
85
|
}
|
86
|
-
var w = !1, E = !1, k = !1, S = !1, M = !1,
|
87
|
-
|
88
|
-
function
|
89
|
-
return !!(typeof
|
86
|
+
var w = !1, E = !1, k = !1, S = !1, M = !1, R;
|
87
|
+
R = Symbol.for("react.module.reference");
|
88
|
+
function O(j) {
|
89
|
+
return !!(typeof j == "string" || typeof j == "function" || j === r || j === i || M || j === s || j === c || j === u || S || j === h || w || E || k || typeof j == "object" && j !== null && (j.$$typeof === d || j.$$typeof === f || j.$$typeof === o || j.$$typeof === a || j.$$typeof === l || // This needs to include all possible module reference object
|
90
90
|
// types supported by any Flight configuration anywhere since
|
91
91
|
// we don't know which Flight build this will end up being used
|
92
92
|
// with.
|
93
|
-
|
93
|
+
j.$$typeof === R || j.getModuleId !== void 0));
|
94
94
|
}
|
95
|
-
function D(
|
96
|
-
var Ve =
|
95
|
+
function D(j, ie, me) {
|
96
|
+
var Ve = j.displayName;
|
97
97
|
if (Ve)
|
98
98
|
return Ve;
|
99
99
|
var ft = ie.displayName || ie.name || "";
|
100
100
|
return ft !== "" ? me + "(" + ft + ")" : me;
|
101
101
|
}
|
102
|
-
function L(
|
103
|
-
return
|
102
|
+
function L(j) {
|
103
|
+
return j.displayName || "Context";
|
104
104
|
}
|
105
|
-
function j
|
106
|
-
if (
|
105
|
+
function F(j) {
|
106
|
+
if (j == null)
|
107
107
|
return null;
|
108
|
-
if (typeof
|
109
|
-
return
|
110
|
-
if (typeof
|
111
|
-
return
|
112
|
-
switch (
|
108
|
+
if (typeof j.tag == "number" && A("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof j == "function")
|
109
|
+
return j.displayName || j.name || null;
|
110
|
+
if (typeof j == "string")
|
111
|
+
return j;
|
112
|
+
switch (j) {
|
113
113
|
case r:
|
114
114
|
return "Fragment";
|
115
115
|
case t:
|
@@ -123,23 +123,23 @@ function RP() {
|
|
123
123
|
case u:
|
124
124
|
return "SuspenseList";
|
125
125
|
}
|
126
|
-
if (typeof
|
127
|
-
switch (
|
126
|
+
if (typeof j == "object")
|
127
|
+
switch (j.$$typeof) {
|
128
128
|
case a:
|
129
|
-
var ie =
|
129
|
+
var ie = j;
|
130
130
|
return L(ie) + ".Consumer";
|
131
131
|
case o:
|
132
|
-
var me =
|
132
|
+
var me = j;
|
133
133
|
return L(me._context) + ".Provider";
|
134
134
|
case l:
|
135
|
-
return D(
|
135
|
+
return D(j, j.render, "ForwardRef");
|
136
136
|
case f:
|
137
|
-
var Ve =
|
138
|
-
return Ve !== null ? Ve : j
|
137
|
+
var Ve = j.displayName || null;
|
138
|
+
return Ve !== null ? Ve : F(j.type) || "Memo";
|
139
139
|
case d: {
|
140
|
-
var ft =
|
140
|
+
var ft = j, mt = ft._payload, ot = ft._init;
|
141
141
|
try {
|
142
|
-
return
|
142
|
+
return F(ot(mt));
|
143
143
|
} catch {
|
144
144
|
return null;
|
145
145
|
}
|
@@ -155,20 +155,20 @@ function RP() {
|
|
155
155
|
{
|
156
156
|
if (_ === 0) {
|
157
157
|
W = console.log, Q = console.info, ne = console.warn, X = console.error, ge = console.group, ke = console.groupCollapsed, Pe = console.groupEnd;
|
158
|
-
var
|
158
|
+
var j = {
|
159
159
|
configurable: !0,
|
160
160
|
enumerable: !0,
|
161
161
|
value: Ce,
|
162
162
|
writable: !0
|
163
163
|
};
|
164
164
|
Object.defineProperties(console, {
|
165
|
-
info:
|
166
|
-
log:
|
167
|
-
warn:
|
168
|
-
error:
|
169
|
-
group:
|
170
|
-
groupCollapsed:
|
171
|
-
groupEnd:
|
165
|
+
info: j,
|
166
|
+
log: j,
|
167
|
+
warn: j,
|
168
|
+
error: j,
|
169
|
+
group: j,
|
170
|
+
groupCollapsed: j,
|
171
|
+
groupEnd: j
|
172
172
|
});
|
173
173
|
}
|
174
174
|
_++;
|
@@ -177,31 +177,31 @@ function RP() {
|
|
177
177
|
function Ue() {
|
178
178
|
{
|
179
179
|
if (_--, _ === 0) {
|
180
|
-
var
|
180
|
+
var j = {
|
181
181
|
configurable: !0,
|
182
182
|
enumerable: !0,
|
183
183
|
writable: !0
|
184
184
|
};
|
185
185
|
Object.defineProperties(console, {
|
186
|
-
log: G({},
|
186
|
+
log: G({}, j, {
|
187
187
|
value: W
|
188
188
|
}),
|
189
|
-
info: G({},
|
189
|
+
info: G({}, j, {
|
190
190
|
value: Q
|
191
191
|
}),
|
192
|
-
warn: G({},
|
192
|
+
warn: G({}, j, {
|
193
193
|
value: ne
|
194
194
|
}),
|
195
|
-
error: G({},
|
195
|
+
error: G({}, j, {
|
196
196
|
value: X
|
197
197
|
}),
|
198
|
-
group: G({},
|
198
|
+
group: G({}, j, {
|
199
199
|
value: ge
|
200
200
|
}),
|
201
|
-
groupCollapsed: G({},
|
201
|
+
groupCollapsed: G({}, j, {
|
202
202
|
value: ke
|
203
203
|
}),
|
204
|
-
groupEnd: G({},
|
204
|
+
groupEnd: G({}, j, {
|
205
205
|
value: Pe
|
206
206
|
})
|
207
207
|
});
|
@@ -210,7 +210,7 @@ function RP() {
|
|
210
210
|
}
|
211
211
|
}
|
212
212
|
var Fe = b.ReactCurrentDispatcher, He;
|
213
|
-
function Ie(
|
213
|
+
function Ie(j, ie, me) {
|
214
214
|
{
|
215
215
|
if (He === void 0)
|
216
216
|
try {
|
@@ -220,7 +220,7 @@ function RP() {
|
|
220
220
|
He = Ve && Ve[1] || "";
|
221
221
|
}
|
222
222
|
return `
|
223
|
-
` + He +
|
223
|
+
` + He + j;
|
224
224
|
}
|
225
225
|
}
|
226
226
|
var Ze = !1, le;
|
@@ -228,11 +228,11 @@ function RP() {
|
|
228
228
|
var ze = typeof WeakMap == "function" ? WeakMap : Map;
|
229
229
|
le = new ze();
|
230
230
|
}
|
231
|
-
function ae(
|
232
|
-
if (!
|
231
|
+
function ae(j, ie) {
|
232
|
+
if (!j || Ze)
|
233
233
|
return "";
|
234
234
|
{
|
235
|
-
var me = le.get(
|
235
|
+
var me = le.get(j);
|
236
236
|
if (me !== void 0)
|
237
237
|
return me;
|
238
238
|
}
|
@@ -257,14 +257,14 @@ function RP() {
|
|
257
257
|
} catch (Jn) {
|
258
258
|
Ve = Jn;
|
259
259
|
}
|
260
|
-
Reflect.construct(
|
260
|
+
Reflect.construct(j, [], ot);
|
261
261
|
} else {
|
262
262
|
try {
|
263
263
|
ot.call();
|
264
264
|
} catch (Jn) {
|
265
265
|
Ve = Jn;
|
266
266
|
}
|
267
|
-
|
267
|
+
j.call(ot.prototype);
|
268
268
|
}
|
269
269
|
} else {
|
270
270
|
try {
|
@@ -272,7 +272,7 @@ function RP() {
|
|
272
272
|
} catch (Jn) {
|
273
273
|
Ve = Jn;
|
274
274
|
}
|
275
|
-
|
275
|
+
j();
|
276
276
|
}
|
277
277
|
} catch (Jn) {
|
278
278
|
if (Jn && Ve && typeof Jn.stack == "string") {
|
@@ -287,7 +287,7 @@ function RP() {
|
|
287
287
|
if (jt--, Wt--, Wt < 0 || rt[jt] !== Rn[Wt]) {
|
288
288
|
var Tr = `
|
289
289
|
` + rt[jt].replace(" at new ", " at ");
|
290
|
-
return
|
290
|
+
return j.displayName && Tr.includes("<anonymous>") && (Tr = Tr.replace("<anonymous>", j.displayName)), typeof j == "function" && le.set(j, Tr), Tr;
|
291
291
|
}
|
292
292
|
while (jt >= 1 && Wt >= 0);
|
293
293
|
break;
|
@@ -296,37 +296,37 @@ function RP() {
|
|
296
296
|
} finally {
|
297
297
|
Ze = !1, Fe.current = mt, Ue(), Error.prepareStackTrace = ft;
|
298
298
|
}
|
299
|
-
var Tl =
|
300
|
-
return typeof
|
299
|
+
var Tl = j ? j.displayName || j.name : "", Xo = Tl ? Ie(Tl) : "";
|
300
|
+
return typeof j == "function" && le.set(j, Xo), Xo;
|
301
301
|
}
|
302
|
-
function be(
|
303
|
-
return ae(
|
302
|
+
function be(j, ie, me) {
|
303
|
+
return ae(j, !1);
|
304
304
|
}
|
305
|
-
function Le(
|
306
|
-
var ie =
|
305
|
+
function Le(j) {
|
306
|
+
var ie = j.prototype;
|
307
307
|
return !!(ie && ie.isReactComponent);
|
308
308
|
}
|
309
|
-
function U(
|
310
|
-
if (
|
309
|
+
function U(j, ie, me) {
|
310
|
+
if (j == null)
|
311
311
|
return "";
|
312
|
-
if (typeof
|
313
|
-
return ae(
|
314
|
-
if (typeof
|
315
|
-
return Ie(
|
316
|
-
switch (
|
312
|
+
if (typeof j == "function")
|
313
|
+
return ae(j, Le(j));
|
314
|
+
if (typeof j == "string")
|
315
|
+
return Ie(j);
|
316
|
+
switch (j) {
|
317
317
|
case c:
|
318
318
|
return Ie("Suspense");
|
319
319
|
case u:
|
320
320
|
return Ie("SuspenseList");
|
321
321
|
}
|
322
|
-
if (typeof
|
323
|
-
switch (
|
322
|
+
if (typeof j == "object")
|
323
|
+
switch (j.$$typeof) {
|
324
324
|
case l:
|
325
|
-
return be(
|
325
|
+
return be(j.render);
|
326
326
|
case f:
|
327
|
-
return U(
|
327
|
+
return U(j.type, ie, me);
|
328
328
|
case d: {
|
329
|
-
var Ve =
|
329
|
+
var Ve = j, ft = Ve._payload, mt = Ve._init;
|
330
330
|
try {
|
331
331
|
return U(mt(ft), ie, me);
|
332
332
|
} catch {
|
@@ -336,25 +336,25 @@ function RP() {
|
|
336
336
|
return "";
|
337
337
|
}
|
338
338
|
var K = Object.prototype.hasOwnProperty, te = {}, ce = b.ReactDebugCurrentFrame;
|
339
|
-
function P(
|
340
|
-
if (
|
341
|
-
var ie =
|
339
|
+
function P(j) {
|
340
|
+
if (j) {
|
341
|
+
var ie = j._owner, me = U(j.type, j._source, ie ? ie.type : null);
|
342
342
|
ce.setExtraStackFrame(me);
|
343
343
|
} else
|
344
344
|
ce.setExtraStackFrame(null);
|
345
345
|
}
|
346
|
-
function m(
|
346
|
+
function m(j, ie, me, Ve, ft) {
|
347
347
|
{
|
348
348
|
var mt = Function.call.bind(K);
|
349
|
-
for (var ot in
|
350
|
-
if (mt(
|
349
|
+
for (var ot in j)
|
350
|
+
if (mt(j, ot)) {
|
351
351
|
var rt = void 0;
|
352
352
|
try {
|
353
|
-
if (typeof
|
354
|
-
var Rn = Error((Ve || "React class") + ": " + me + " type `" + ot + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof
|
353
|
+
if (typeof j[ot] != "function") {
|
354
|
+
var Rn = Error((Ve || "React class") + ": " + me + " type `" + ot + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof j[ot] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
355
355
|
throw Rn.name = "Invariant Violation", Rn;
|
356
356
|
}
|
357
|
-
rt =
|
357
|
+
rt = j[ot](ie, ot, Ve, me, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
358
358
|
} catch (jt) {
|
359
359
|
rt = jt;
|
360
360
|
}
|
@@ -363,28 +363,28 @@ function RP() {
|
|
363
363
|
}
|
364
364
|
}
|
365
365
|
var x = Array.isArray;
|
366
|
-
function N(
|
367
|
-
return x(
|
366
|
+
function N(j) {
|
367
|
+
return x(j);
|
368
368
|
}
|
369
|
-
function B(
|
369
|
+
function B(j) {
|
370
370
|
{
|
371
|
-
var ie = typeof Symbol == "function" && Symbol.toStringTag, me = ie &&
|
371
|
+
var ie = typeof Symbol == "function" && Symbol.toStringTag, me = ie && j[Symbol.toStringTag] || j.constructor.name || "Object";
|
372
372
|
return me;
|
373
373
|
}
|
374
374
|
}
|
375
|
-
function $(
|
375
|
+
function $(j) {
|
376
376
|
try {
|
377
|
-
return q(
|
377
|
+
return q(j), !1;
|
378
378
|
} catch {
|
379
379
|
return !0;
|
380
380
|
}
|
381
381
|
}
|
382
|
-
function q(
|
383
|
-
return "" +
|
382
|
+
function q(j) {
|
383
|
+
return "" + j;
|
384
384
|
}
|
385
|
-
function ye(
|
386
|
-
if ($(
|
387
|
-
return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", B(
|
385
|
+
function ye(j) {
|
386
|
+
if ($(j))
|
387
|
+
return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", B(j)), q(j);
|
388
388
|
}
|
389
389
|
var Se = b.ReactCurrentOwner, Je = {
|
390
390
|
key: !0,
|
@@ -393,56 +393,56 @@ function RP() {
|
|
393
393
|
__source: !0
|
394
394
|
}, je, Be, lt;
|
395
395
|
lt = {};
|
396
|
-
function On(
|
397
|
-
if (K.call(
|
398
|
-
var ie = Object.getOwnPropertyDescriptor(
|
396
|
+
function On(j) {
|
397
|
+
if (K.call(j, "ref")) {
|
398
|
+
var ie = Object.getOwnPropertyDescriptor(j, "ref").get;
|
399
399
|
if (ie && ie.isReactWarning)
|
400
400
|
return !1;
|
401
401
|
}
|
402
|
-
return
|
402
|
+
return j.ref !== void 0;
|
403
403
|
}
|
404
|
-
function Wn(
|
405
|
-
if (K.call(
|
406
|
-
var ie = Object.getOwnPropertyDescriptor(
|
404
|
+
function Wn(j) {
|
405
|
+
if (K.call(j, "key")) {
|
406
|
+
var ie = Object.getOwnPropertyDescriptor(j, "key").get;
|
407
407
|
if (ie && ie.isReactWarning)
|
408
408
|
return !1;
|
409
409
|
}
|
410
|
-
return
|
410
|
+
return j.key !== void 0;
|
411
411
|
}
|
412
|
-
function Y(
|
413
|
-
if (typeof
|
414
|
-
var me =
|
415
|
-
lt[me] || (A('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',
|
412
|
+
function Y(j, ie) {
|
413
|
+
if (typeof j.ref == "string" && Se.current && ie && Se.current.stateNode !== ie) {
|
414
|
+
var me = F(Se.current.type);
|
415
|
+
lt[me] || (A('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', F(Se.current.type), j.ref), lt[me] = !0);
|
416
416
|
}
|
417
417
|
}
|
418
|
-
function ee(
|
418
|
+
function ee(j, ie) {
|
419
419
|
{
|
420
420
|
var me = function() {
|
421
421
|
je || (je = !0, A("%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)", ie));
|
422
422
|
};
|
423
|
-
me.isReactWarning = !0, Object.defineProperty(
|
423
|
+
me.isReactWarning = !0, Object.defineProperty(j, "key", {
|
424
424
|
get: me,
|
425
425
|
configurable: !0
|
426
426
|
});
|
427
427
|
}
|
428
428
|
}
|
429
|
-
function se(
|
429
|
+
function se(j, ie) {
|
430
430
|
{
|
431
431
|
var me = function() {
|
432
432
|
Be || (Be = !0, A("%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)", ie));
|
433
433
|
};
|
434
|
-
me.isReactWarning = !0, Object.defineProperty(
|
434
|
+
me.isReactWarning = !0, Object.defineProperty(j, "ref", {
|
435
435
|
get: me,
|
436
436
|
configurable: !0
|
437
437
|
});
|
438
438
|
}
|
439
439
|
}
|
440
|
-
var Te = function(
|
440
|
+
var Te = function(j, ie, me, Ve, ft, mt, ot) {
|
441
441
|
var rt = {
|
442
442
|
// This tag allows us to uniquely identify this as a React Element
|
443
443
|
$$typeof: e,
|
444
444
|
// Built-in properties that belong on the element
|
445
|
-
type:
|
445
|
+
type: j,
|
446
446
|
key: ie,
|
447
447
|
ref: me,
|
448
448
|
props: ot,
|
@@ -466,58 +466,58 @@ function RP() {
|
|
466
466
|
value: ft
|
467
467
|
}), Object.freeze && (Object.freeze(rt.props), Object.freeze(rt)), rt;
|
468
468
|
};
|
469
|
-
function he(
|
469
|
+
function he(j, ie, me, Ve, ft) {
|
470
470
|
{
|
471
471
|
var mt, ot = {}, rt = null, Rn = null;
|
472
472
|
me !== void 0 && (ye(me), rt = "" + me), Wn(ie) && (ye(ie.key), rt = "" + ie.key), On(ie) && (Rn = ie.ref, Y(ie, ft));
|
473
473
|
for (mt in ie)
|
474
474
|
K.call(ie, mt) && !Je.hasOwnProperty(mt) && (ot[mt] = ie[mt]);
|
475
|
-
if (
|
476
|
-
var jt =
|
475
|
+
if (j && j.defaultProps) {
|
476
|
+
var jt = j.defaultProps;
|
477
477
|
for (mt in jt)
|
478
478
|
ot[mt] === void 0 && (ot[mt] = jt[mt]);
|
479
479
|
}
|
480
480
|
if (rt || Rn) {
|
481
|
-
var Wt = typeof
|
481
|
+
var Wt = typeof j == "function" ? j.displayName || j.name || "Unknown" : j;
|
482
482
|
rt && ee(ot, Wt), Rn && se(ot, Wt);
|
483
483
|
}
|
484
|
-
return Te(
|
484
|
+
return Te(j, rt, Rn, ft, Ve, Se.current, ot);
|
485
485
|
}
|
486
486
|
}
|
487
487
|
var We = b.ReactCurrentOwner, et = b.ReactDebugCurrentFrame;
|
488
|
-
function ht(
|
489
|
-
if (
|
490
|
-
var ie =
|
488
|
+
function ht(j) {
|
489
|
+
if (j) {
|
490
|
+
var ie = j._owner, me = U(j.type, j._source, ie ? ie.type : null);
|
491
491
|
et.setExtraStackFrame(me);
|
492
492
|
} else
|
493
493
|
et.setExtraStackFrame(null);
|
494
494
|
}
|
495
|
-
var
|
496
|
-
|
497
|
-
function Ot(
|
498
|
-
return typeof
|
495
|
+
var Yt;
|
496
|
+
Yt = !1;
|
497
|
+
function Ot(j) {
|
498
|
+
return typeof j == "object" && j !== null && j.$$typeof === e;
|
499
499
|
}
|
500
500
|
function Jr() {
|
501
501
|
{
|
502
502
|
if (We.current) {
|
503
|
-
var
|
504
|
-
if (
|
503
|
+
var j = F(We.current.type);
|
504
|
+
if (j)
|
505
505
|
return `
|
506
506
|
|
507
|
-
Check the render method of \`` +
|
507
|
+
Check the render method of \`` + j + "`.";
|
508
508
|
}
|
509
509
|
return "";
|
510
510
|
}
|
511
511
|
}
|
512
|
-
function Gn(
|
512
|
+
function Gn(j) {
|
513
513
|
return "";
|
514
514
|
}
|
515
515
|
var Kn = {};
|
516
|
-
function Cl(
|
516
|
+
function Cl(j) {
|
517
517
|
{
|
518
518
|
var ie = Jr();
|
519
519
|
if (!ie) {
|
520
|
-
var me = typeof
|
520
|
+
var me = typeof j == "string" ? j : j.displayName || j.name;
|
521
521
|
me && (ie = `
|
522
522
|
|
523
523
|
Check the top-level render call using <` + me + ">.");
|
@@ -525,41 +525,41 @@ Check the top-level render call using <` + me + ">.");
|
|
525
525
|
return ie;
|
526
526
|
}
|
527
527
|
}
|
528
|
-
function Sl(
|
528
|
+
function Sl(j, ie) {
|
529
529
|
{
|
530
|
-
if (!
|
530
|
+
if (!j._store || j._store.validated || j.key != null)
|
531
531
|
return;
|
532
|
-
|
532
|
+
j._store.validated = !0;
|
533
533
|
var me = Cl(ie);
|
534
534
|
if (Kn[me])
|
535
535
|
return;
|
536
536
|
Kn[me] = !0;
|
537
537
|
var Ve = "";
|
538
|
-
|
538
|
+
j && j._owner && j._owner !== We.current && (Ve = " It was passed a child from " + F(j._owner.type) + "."), ht(j), A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', me, Ve), ht(null);
|
539
539
|
}
|
540
540
|
}
|
541
|
-
function Yo(
|
541
|
+
function Yo(j, ie) {
|
542
542
|
{
|
543
|
-
if (typeof
|
543
|
+
if (typeof j != "object")
|
544
544
|
return;
|
545
|
-
if (N(
|
546
|
-
for (var me = 0; me <
|
547
|
-
var Ve =
|
545
|
+
if (N(j))
|
546
|
+
for (var me = 0; me < j.length; me++) {
|
547
|
+
var Ve = j[me];
|
548
548
|
Ot(Ve) && Sl(Ve, ie);
|
549
549
|
}
|
550
|
-
else if (Ot(
|
551
|
-
|
552
|
-
else if (
|
553
|
-
var ft = y(
|
554
|
-
if (typeof ft == "function" && ft !==
|
555
|
-
for (var mt = ft.call(
|
550
|
+
else if (Ot(j))
|
551
|
+
j._store && (j._store.validated = !0);
|
552
|
+
else if (j) {
|
553
|
+
var ft = y(j);
|
554
|
+
if (typeof ft == "function" && ft !== j.entries)
|
555
|
+
for (var mt = ft.call(j), ot; !(ot = mt.next()).done; )
|
556
556
|
Ot(ot.value) && Sl(ot.value, ie);
|
557
557
|
}
|
558
558
|
}
|
559
559
|
}
|
560
|
-
function mP(
|
560
|
+
function mP(j) {
|
561
561
|
{
|
562
|
-
var ie =
|
562
|
+
var ie = j.type;
|
563
563
|
if (ie == null || typeof ie == "string")
|
564
564
|
return;
|
565
565
|
var me;
|
@@ -572,41 +572,41 @@ Check the top-level render call using <` + me + ">.");
|
|
572
572
|
else
|
573
573
|
return;
|
574
574
|
if (me) {
|
575
|
-
var Ve =
|
576
|
-
m(me,
|
577
|
-
} else if (ie.PropTypes !== void 0 && !
|
578
|
-
|
579
|
-
var ft =
|
575
|
+
var Ve = F(ie);
|
576
|
+
m(me, j.props, "prop", Ve, j);
|
577
|
+
} else if (ie.PropTypes !== void 0 && !Yt) {
|
578
|
+
Yt = !0;
|
579
|
+
var ft = F(ie);
|
580
580
|
A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ft || "Unknown");
|
581
581
|
}
|
582
582
|
typeof ie.getDefaultProps == "function" && !ie.getDefaultProps.isReactClassApproved && A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
583
583
|
}
|
584
584
|
}
|
585
|
-
function yP(
|
585
|
+
function yP(j) {
|
586
586
|
{
|
587
|
-
for (var ie = Object.keys(
|
587
|
+
for (var ie = Object.keys(j.props), me = 0; me < ie.length; me++) {
|
588
588
|
var Ve = ie[me];
|
589
589
|
if (Ve !== "children" && Ve !== "key") {
|
590
|
-
ht(
|
590
|
+
ht(j), A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", Ve), ht(null);
|
591
591
|
break;
|
592
592
|
}
|
593
593
|
}
|
594
|
-
|
594
|
+
j.ref !== null && (ht(j), A("Invalid attribute `ref` supplied to `React.Fragment`."), ht(null));
|
595
595
|
}
|
596
596
|
}
|
597
597
|
var xx = {};
|
598
|
-
function Ax(
|
598
|
+
function Ax(j, ie, me, Ve, ft, mt) {
|
599
599
|
{
|
600
|
-
var ot =
|
600
|
+
var ot = O(j);
|
601
601
|
if (!ot) {
|
602
602
|
var rt = "";
|
603
|
-
(
|
603
|
+
(j === void 0 || typeof j == "object" && j !== null && Object.keys(j).length === 0) && (rt += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
604
604
|
var Rn = Gn();
|
605
605
|
Rn ? rt += Rn : rt += Jr();
|
606
606
|
var jt;
|
607
|
-
|
607
|
+
j === null ? jt = "null" : N(j) ? jt = "array" : j !== void 0 && j.$$typeof === e ? (jt = "<" + (F(j.type) || "Unknown") + " />", rt = " Did you accidentally export a JSX literal instead of a component?") : jt = typeof j, A("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", jt, rt);
|
608
608
|
}
|
609
|
-
var Wt = he(
|
609
|
+
var Wt = he(j, ie, me, ft, mt);
|
610
610
|
if (Wt == null)
|
611
611
|
return Wt;
|
612
612
|
if (ot) {
|
@@ -615,15 +615,15 @@ Check the top-level render call using <` + me + ">.");
|
|
615
615
|
if (Ve)
|
616
616
|
if (N(Tr)) {
|
617
617
|
for (var Tl = 0; Tl < Tr.length; Tl++)
|
618
|
-
Yo(Tr[Tl],
|
618
|
+
Yo(Tr[Tl], j);
|
619
619
|
Object.freeze && Object.freeze(Tr);
|
620
620
|
} else
|
621
621
|
A("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
622
622
|
else
|
623
|
-
Yo(Tr,
|
623
|
+
Yo(Tr, j);
|
624
624
|
}
|
625
625
|
if (K.call(ie, "key")) {
|
626
|
-
var Xo = j
|
626
|
+
var Xo = F(j), Jn = Object.keys(ie).filter(function(EP) {
|
627
627
|
return EP !== "key";
|
628
628
|
}), uy = Jn.length > 0 ? "{key: someKey, " + Jn.join(": ..., ") + ": ...}" : "{key: someKey}";
|
629
629
|
if (!xx[Xo + uy]) {
|
@@ -636,14 +636,14 @@ React keys must be passed directly to JSX without using spread:
|
|
636
636
|
<%s key={someKey} {...props} />`, uy, Xo, AP, Xo), xx[Xo + uy] = !0;
|
637
637
|
}
|
638
638
|
}
|
639
|
-
return
|
639
|
+
return j === r ? yP(Wt) : mP(Wt), Wt;
|
640
640
|
}
|
641
641
|
}
|
642
|
-
function bP(
|
643
|
-
return Ax(
|
642
|
+
function bP(j, ie, me) {
|
643
|
+
return Ax(j, ie, me, !0);
|
644
644
|
}
|
645
|
-
function wP(
|
646
|
-
return Ax(
|
645
|
+
function wP(j, ie, me) {
|
646
|
+
return Ax(j, ie, me, !1);
|
647
647
|
}
|
648
648
|
var vP = wP, xP = bP;
|
649
649
|
Gu.Fragment = r, Gu.jsx = vP, Gu.jsxs = xP;
|
@@ -3710,7 +3710,7 @@ class Nn {
|
|
3710
3710
|
return my[e] = t, t.prototype.jsonID = e, t;
|
3711
3711
|
}
|
3712
3712
|
}
|
3713
|
-
class
|
3713
|
+
class qt {
|
3714
3714
|
/**
|
3715
3715
|
@internal
|
3716
3716
|
*/
|
@@ -3721,13 +3721,13 @@ class Jt {
|
|
3721
3721
|
Create a successful step result.
|
3722
3722
|
*/
|
3723
3723
|
static ok(e) {
|
3724
|
-
return new
|
3724
|
+
return new qt(e, null);
|
3725
3725
|
}
|
3726
3726
|
/**
|
3727
3727
|
Create a failed step result.
|
3728
3728
|
*/
|
3729
3729
|
static fail(e) {
|
3730
|
-
return new
|
3730
|
+
return new qt(null, e);
|
3731
3731
|
}
|
3732
3732
|
/**
|
3733
3733
|
Call [`Node.replace`](https://prosemirror.net/docs/ref/#model.Node.replace) with the given
|
@@ -3736,10 +3736,10 @@ class Jt {
|
|
3736
3736
|
*/
|
3737
3737
|
static fromReplace(e, t, r, s) {
|
3738
3738
|
try {
|
3739
|
-
return
|
3739
|
+
return qt.ok(e.replace(t, r, s));
|
3740
3740
|
} catch (i) {
|
3741
3741
|
if (i instanceof Cp)
|
3742
|
-
return
|
3742
|
+
return qt.fail(i.message);
|
3743
3743
|
throw i;
|
3744
3744
|
}
|
3745
3745
|
}
|
@@ -3761,7 +3761,7 @@ class No extends Nn {
|
|
3761
3761
|
}
|
3762
3762
|
apply(e) {
|
3763
3763
|
let t = e.slice(this.from, this.to), r = e.resolve(this.from), s = r.node(r.sharedDepth(this.to)), i = new fe($w(t.content, (o, a) => !o.isAtom || !a.type.allowsMarkType(this.mark.type) ? o : o.mark(this.mark.addToSet(o.marks)), s), t.openStart, t.openEnd);
|
3764
|
-
return
|
3764
|
+
return qt.fromReplace(e, this.from, this.to, i);
|
3765
3765
|
}
|
3766
3766
|
invert() {
|
3767
3767
|
return new zs(this.from, this.to, this.mark);
|
@@ -3800,7 +3800,7 @@ class zs extends Nn {
|
|
3800
3800
|
}
|
3801
3801
|
apply(e) {
|
3802
3802
|
let t = e.slice(this.from, this.to), r = new fe($w(t.content, (s) => s.mark(this.mark.removeFromSet(s.marks)), e), t.openStart, t.openEnd);
|
3803
|
-
return
|
3803
|
+
return qt.fromReplace(e, this.from, this.to, r);
|
3804
3804
|
}
|
3805
3805
|
invert() {
|
3806
3806
|
return new No(this.from, this.to, this.mark);
|
@@ -3840,9 +3840,9 @@ class Oo extends Nn {
|
|
3840
3840
|
apply(e) {
|
3841
3841
|
let t = e.nodeAt(this.pos);
|
3842
3842
|
if (!t)
|
3843
|
-
return
|
3843
|
+
return qt.fail("No node at mark step's position");
|
3844
3844
|
let r = t.type.create(t.attrs, null, this.mark.addToSet(t.marks));
|
3845
|
-
return
|
3845
|
+
return qt.fromReplace(e, this.pos, this.pos + 1, new fe(oe.from(r), 0, t.isLeaf ? 0 : 1));
|
3846
3846
|
}
|
3847
3847
|
invert(e) {
|
3848
3848
|
let t = e.nodeAt(this.pos);
|
@@ -3884,9 +3884,9 @@ class su extends Nn {
|
|
3884
3884
|
apply(e) {
|
3885
3885
|
let t = e.nodeAt(this.pos);
|
3886
3886
|
if (!t)
|
3887
|
-
return
|
3887
|
+
return qt.fail("No node at mark step's position");
|
3888
3888
|
let r = t.type.create(t.attrs, null, this.mark.removeFromSet(t.marks));
|
3889
|
-
return
|
3889
|
+
return qt.fromReplace(e, this.pos, this.pos + 1, new fe(oe.from(r), 0, t.isLeaf ? 0 : 1));
|
3890
3890
|
}
|
3891
3891
|
invert(e) {
|
3892
3892
|
let t = e.nodeAt(this.pos);
|
@@ -3923,7 +3923,7 @@ class an extends Nn {
|
|
3923
3923
|
super(), this.from = e, this.to = t, this.slice = r, this.structure = s;
|
3924
3924
|
}
|
3925
3925
|
apply(e) {
|
3926
|
-
return this.structure && $0(e, this.from, this.to) ?
|
3926
|
+
return this.structure && $0(e, this.from, this.to) ? qt.fail("Structure replace would overwrite content") : qt.fromReplace(e, this.from, this.to, this.slice);
|
3927
3927
|
}
|
3928
3928
|
getMap() {
|
3929
3929
|
return new yr([this.from, this.to - this.from, this.slice.size]);
|
@@ -3973,12 +3973,12 @@ class un extends Nn {
|
|
3973
3973
|
}
|
3974
3974
|
apply(e) {
|
3975
3975
|
if (this.structure && ($0(e, this.from, this.gapFrom) || $0(e, this.gapTo, this.to)))
|
3976
|
-
return
|
3976
|
+
return qt.fail("Structure gap-replace would overwrite content");
|
3977
3977
|
let t = e.slice(this.gapFrom, this.gapTo);
|
3978
3978
|
if (t.openStart || t.openEnd)
|
3979
|
-
return
|
3979
|
+
return qt.fail("Gap is not a flat range");
|
3980
3980
|
let r = this.slice.insertAt(this.insert, t.content);
|
3981
|
-
return r ?
|
3981
|
+
return r ? qt.fromReplace(e, this.from, this.to, r) : qt.fail("Content does not fit in gap");
|
3982
3982
|
}
|
3983
3983
|
getMap() {
|
3984
3984
|
return new yr([
|
@@ -4588,13 +4588,13 @@ class sc extends Nn {
|
|
4588
4588
|
apply(e) {
|
4589
4589
|
let t = e.nodeAt(this.pos);
|
4590
4590
|
if (!t)
|
4591
|
-
return
|
4591
|
+
return qt.fail("No node at attribute step's position");
|
4592
4592
|
let r = /* @__PURE__ */ Object.create(null);
|
4593
4593
|
for (let i in t.attrs)
|
4594
4594
|
r[i] = t.attrs[i];
|
4595
4595
|
r[this.attr] = this.value;
|
4596
4596
|
let s = t.type.create(r, null, t.marks);
|
4597
|
-
return
|
4597
|
+
return qt.fromReplace(e, this.pos, this.pos + 1, new fe(oe.from(s), 0, t.isLeaf ? 0 : 1));
|
4598
4598
|
}
|
4599
4599
|
getMap() {
|
4600
4600
|
return yr.empty;
|
@@ -4629,7 +4629,7 @@ class Rf extends Nn {
|
|
4629
4629
|
t[s] = e.attrs[s];
|
4630
4630
|
t[this.attr] = this.value;
|
4631
4631
|
let r = e.type.create(t, e.content, e.marks);
|
4632
|
-
return
|
4632
|
+
return qt.ok(r);
|
4633
4633
|
}
|
4634
4634
|
getMap() {
|
4635
4635
|
return yr.empty;
|
@@ -8844,12 +8844,12 @@ const YL = /^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|df
|
|
8844
8844
|
function XL(n, e, t, r, s) {
|
8845
8845
|
let i = n.input.compositionPendingChanges || (n.composing ? n.input.compositionID : 0);
|
8846
8846
|
if (n.input.compositionPendingChanges = 0, e < 0) {
|
8847
|
-
let
|
8848
|
-
if (
|
8847
|
+
let R = n.input.lastSelectionTime > Date.now() - 50 ? n.input.lastSelectionOrigin : null, O = Qw(n, R);
|
8848
|
+
if (O && !n.state.selection.eq(O)) {
|
8849
8849
|
if (In && ns && n.input.lastKeyCode === 13 && Date.now() - 100 < n.input.lastKeyCodeTime && n.someProp("handleKeyDown", (L) => L(n, ra(13, "Enter"))))
|
8850
8850
|
return;
|
8851
|
-
let D = n.state.tr.setSelection(
|
8852
|
-
|
8851
|
+
let D = n.state.tr.setSelection(O);
|
8852
|
+
R == "pointer" ? D.setMeta("pointer", !0) : R == "key" && D.scrollIntoView(), i && D.setMeta("composition", i), n.dispatch(D);
|
8853
8853
|
}
|
8854
8854
|
return;
|
8855
8855
|
}
|
@@ -8858,7 +8858,7 @@ function XL(n, e, t, r, s) {
|
|
8858
8858
|
let l = n.state.selection, c = qL(n, e, t), u = n.state.doc, f = u.slice(c.from, c.to), d, h;
|
8859
8859
|
n.input.lastKeyCode === 8 && Date.now() - 100 < n.input.lastKeyCodeTime ? (d = n.state.selection.to, h = "end") : (d = n.state.selection.from, h = "start"), n.input.lastKeyCode = null;
|
8860
8860
|
let p = t_(f.content, c.doc.content, c.from, d, h);
|
8861
|
-
if ((ou && n.input.lastIOSEnter > Date.now() - 225 || ns) && s.some((
|
8861
|
+
if ((ou && n.input.lastIOSEnter > Date.now() - 225 || ns) && s.some((R) => R.nodeType == 1 && !YL.test(R.nodeName)) && (!p || p.endA >= p.endB) && n.someProp("handleKeyDown", (R) => R(n, ra(13, "Enter")))) {
|
8862
8862
|
n.input.lastIOSEnter = 0;
|
8863
8863
|
return;
|
8864
8864
|
}
|
@@ -8867,27 +8867,27 @@ function XL(n, e, t, r, s) {
|
|
8867
8867
|
p = { start: l.from, endA: l.to, endB: l.to };
|
8868
8868
|
else {
|
8869
8869
|
if (c.sel) {
|
8870
|
-
let
|
8871
|
-
if (
|
8872
|
-
let
|
8873
|
-
i &&
|
8870
|
+
let R = pA(n, n.state.doc, c.sel);
|
8871
|
+
if (R && !R.eq(n.state.selection)) {
|
8872
|
+
let O = n.state.tr.setSelection(R);
|
8873
|
+
i && O.setMeta("composition", i), n.dispatch(O);
|
8874
8874
|
}
|
8875
8875
|
}
|
8876
8876
|
return;
|
8877
8877
|
}
|
8878
8878
|
n.input.domChangeCount++, n.state.selection.from < n.state.selection.to && p.start == p.endB && n.state.selection instanceof De && (p.start > n.state.selection.from && p.start <= n.state.selection.from + 2 && n.state.selection.from >= c.from ? p.start = n.state.selection.from : p.endA < n.state.selection.to && p.endA >= n.state.selection.to - 2 && n.state.selection.to <= c.to && (p.endB += n.state.selection.to - p.endA, p.endA = n.state.selection.to)), nr && Do <= 11 && p.endB == p.start + 1 && p.endA == p.start && p.start > c.from && c.doc.textBetween(p.start - c.from - 1, p.start - c.from + 1) == " " && (p.start--, p.endA--, p.endB--);
|
8879
8879
|
let g = c.doc.resolveNoCache(p.start - c.from), y = c.doc.resolveNoCache(p.endB - c.from), b = u.resolve(p.start), A = g.sameParent(y) && g.parent.inlineContent && b.end() >= p.endA, v;
|
8880
|
-
if ((ou && n.input.lastIOSEnter > Date.now() - 225 && (!A || s.some((
|
8880
|
+
if ((ou && n.input.lastIOSEnter > Date.now() - 225 && (!A || s.some((R) => R.nodeName == "DIV" || R.nodeName == "P")) || !A && g.pos < c.doc.content.size && !g.sameParent(y) && (v = _e.findFrom(c.doc.resolve(g.pos + 1), 1, !0)) && v.head == y.pos) && n.someProp("handleKeyDown", (R) => R(n, ra(13, "Enter")))) {
|
8881
8881
|
n.input.lastIOSEnter = 0;
|
8882
8882
|
return;
|
8883
8883
|
}
|
8884
|
-
if (n.state.selection.anchor > p.start && e_(u, p.start, p.endA, g, y) && n.someProp("handleKeyDown", (
|
8884
|
+
if (n.state.selection.anchor > p.start && e_(u, p.start, p.endA, g, y) && n.someProp("handleKeyDown", (R) => R(n, ra(8, "Backspace")))) {
|
8885
8885
|
ns && In && n.domObserver.suppressSelectionUpdates();
|
8886
8886
|
return;
|
8887
8887
|
}
|
8888
8888
|
In && ns && p.endB == p.start && (n.input.lastAndroidDelete = Date.now()), ns && !A && g.start() != y.start() && y.parentOffset == 0 && g.depth == y.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == p.endA && (p.endB -= 2, y = c.doc.resolveNoCache(p.endB - c.from), setTimeout(() => {
|
8889
|
-
n.someProp("handleKeyDown", function(
|
8890
|
-
return
|
8889
|
+
n.someProp("handleKeyDown", function(R) {
|
8890
|
+
return R(n, ra(13, "Enter"));
|
8891
8891
|
});
|
8892
8892
|
}, 20));
|
8893
8893
|
let w = p.start, E = p.endA, k, S, M;
|
@@ -8900,15 +8900,15 @@ function XL(n, e, t, r, s) {
|
|
8900
8900
|
)
|
8901
8901
|
k = n.state.tr, M.type == "add" ? k.addMark(w, E, M.mark) : k.removeMark(w, E, M.mark);
|
8902
8902
|
else if (g.parent.child(g.index()).isText && g.index() == y.index() - (y.textOffset ? 0 : 1)) {
|
8903
|
-
let
|
8904
|
-
if (n.someProp("handleTextInput", (
|
8903
|
+
let R = g.parent.textBetween(g.parentOffset, y.parentOffset);
|
8904
|
+
if (n.someProp("handleTextInput", (O) => O(n, w, E, R)))
|
8905
8905
|
return;
|
8906
|
-
k = n.state.tr.insertText(
|
8906
|
+
k = n.state.tr.insertText(R, w, E);
|
8907
8907
|
}
|
8908
8908
|
}
|
8909
8909
|
if (k || (k = n.state.tr.replace(w, E, c.doc.slice(p.start - c.from, p.endB - c.from))), c.sel) {
|
8910
|
-
let
|
8911
|
-
|
8910
|
+
let R = pA(n, k.doc, c.sel);
|
8911
|
+
R && !(In && ns && n.composing && R.empty && (p.start != p.endB || n.input.lastAndroidDelete < Date.now() - 100) && (R.head == w || R.head == k.mapping.map(E) - 1) || nr && R.empty && R.head == w) && k.setSelection(R);
|
8912
8912
|
}
|
8913
8913
|
S && k.ensureMarks(S), i && k.setMeta("composition", i), n.dispatch(k.scrollIntoView());
|
8914
8914
|
}
|
@@ -12723,19 +12723,19 @@ function MA(n) {
|
|
12723
12723
|
var k = jd(t), S = "clientHeight", M = "clientWidth";
|
12724
12724
|
if (k === kr(t) && (k = Jo(t), Li(k).position !== "static" && a === "absolute" && (S = "scrollHeight", M = "scrollWidth")), k = k, s === rr || (s === sr || s === Gr) && i === _f) {
|
12725
12725
|
w = Wr;
|
12726
|
-
var
|
12726
|
+
var R = f && k === E && E.visualViewport ? E.visualViewport.height : (
|
12727
12727
|
// $FlowFixMe[prop-missing]
|
12728
12728
|
k[S]
|
12729
12729
|
);
|
12730
|
-
g -=
|
12730
|
+
g -= R - r.height, g *= l ? 1 : -1;
|
12731
12731
|
}
|
12732
12732
|
if (s === sr || (s === rr || s === Wr) && i === _f) {
|
12733
12733
|
v = Gr;
|
12734
|
-
var
|
12734
|
+
var O = f && k === E && E.visualViewport ? E.visualViewport.width : (
|
12735
12735
|
// $FlowFixMe[prop-missing]
|
12736
12736
|
k[M]
|
12737
12737
|
);
|
12738
|
-
h -=
|
12738
|
+
h -= O - r.width, h *= l ? 1 : -1;
|
12739
12739
|
}
|
12740
12740
|
}
|
12741
12741
|
var D = Object.assign({
|
@@ -12748,8 +12748,8 @@ function MA(n) {
|
|
12748
12748
|
y: g
|
12749
12749
|
};
|
12750
12750
|
if (h = L.x, g = L.y, l) {
|
12751
|
-
var
|
12752
|
-
return Object.assign({}, D, (
|
12751
|
+
var F;
|
12752
|
+
return Object.assign({}, D, (F = {}, F[w] = A ? "0" : "", F[v] = b ? "0" : "", F.transform = (E.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + g + "px)" : "translate3d(" + h + "px, " + g + "px, 0)", F));
|
12753
12753
|
}
|
12754
12754
|
return Object.assign({}, D, (e = {}, e[w] = A ? g + "px" : "", e[v] = b ? h + "px" : "", e.transform = "", e));
|
12755
12755
|
}
|
@@ -12956,20 +12956,20 @@ function Bf(n, e) {
|
|
12956
12956
|
element: v,
|
12957
12957
|
strategy: "absolute",
|
12958
12958
|
placement: s
|
12959
|
-
}), M = cb(Object.assign({}, v, S)),
|
12960
|
-
top: E.top -
|
12961
|
-
bottom:
|
12962
|
-
left: E.left -
|
12963
|
-
right:
|
12959
|
+
}), M = cb(Object.assign({}, v, S)), R = d === Ju ? M : k, O = {
|
12960
|
+
top: E.top - R.top + b.top,
|
12961
|
+
bottom: R.bottom - E.bottom + b.bottom,
|
12962
|
+
left: E.left - R.left + b.left,
|
12963
|
+
right: R.right - E.right + b.right
|
12964
12964
|
}, D = n.modifiersData.offset;
|
12965
12965
|
if (d === Ju && D) {
|
12966
12966
|
var L = D[s];
|
12967
|
-
Object.keys(
|
12968
|
-
var G = [Gr, Wr].indexOf(
|
12969
|
-
|
12967
|
+
Object.keys(O).forEach(function(F) {
|
12968
|
+
var G = [Gr, Wr].indexOf(F) >= 0 ? 1 : -1, _ = [rr, Wr].indexOf(F) >= 0 ? "y" : "x";
|
12969
|
+
O[F] += L[_] * G;
|
12970
12970
|
});
|
12971
12971
|
}
|
12972
|
-
return
|
12972
|
+
return O;
|
12973
12973
|
}
|
12974
12974
|
function d3(n, e) {
|
12975
12975
|
e === void 0 && (e = {});
|
@@ -13009,20 +13009,20 @@ function p3(n) {
|
|
13009
13009
|
flipVariations: p,
|
13010
13010
|
allowedAutoPlacements: g
|
13011
13011
|
}) : Ue);
|
13012
|
-
}, []), E = e.rects.reference, k = e.rects.popper, S = /* @__PURE__ */ new Map(), M = !0,
|
13013
|
-
var D = w[
|
13012
|
+
}, []), E = e.rects.reference, k = e.rects.popper, S = /* @__PURE__ */ new Map(), M = !0, R = w[0], O = 0; O < w.length; O++) {
|
13013
|
+
var D = w[O], L = $s(D), F = du(D) === cu, G = [rr, Wr].indexOf(L) >= 0, _ = G ? "width" : "height", W = Bf(e, {
|
13014
13014
|
placement: D,
|
13015
13015
|
boundary: u,
|
13016
13016
|
rootBoundary: f,
|
13017
13017
|
altBoundary: d,
|
13018
13018
|
padding: c
|
13019
|
-
}), Q = G ?
|
13019
|
+
}), Q = G ? F ? Gr : sr : F ? Wr : rr;
|
13020
13020
|
E[_] > k[_] && (Q = Xh(Q));
|
13021
13021
|
var ne = Xh(Q), X = [];
|
13022
13022
|
if (i && X.push(W[L] <= 0), a && X.push(W[Q] <= 0, W[ne] <= 0), X.every(function(Ae) {
|
13023
13023
|
return Ae;
|
13024
13024
|
})) {
|
13025
|
-
|
13025
|
+
R = D, M = !1;
|
13026
13026
|
break;
|
13027
13027
|
}
|
13028
13028
|
S.set(D, X);
|
@@ -13037,12 +13037,12 @@ function p3(n) {
|
|
13037
13037
|
});
|
13038
13038
|
});
|
13039
13039
|
if (Fe)
|
13040
|
-
return
|
13040
|
+
return R = Fe, "break";
|
13041
13041
|
}, Pe = ge; Pe > 0; Pe--) {
|
13042
13042
|
var Ce = ke(Pe);
|
13043
13043
|
if (Ce === "break") break;
|
13044
13044
|
}
|
13045
|
-
e.placement !==
|
13045
|
+
e.placement !== R && (e.modifiersData[r]._skip = !0, e.placement = R, e.reset = !0);
|
13046
13046
|
}
|
13047
13047
|
}
|
13048
13048
|
const g3 = {
|
@@ -13144,28 +13144,28 @@ function k3(n) {
|
|
13144
13144
|
rootBoundary: c,
|
13145
13145
|
padding: f,
|
13146
13146
|
altBoundary: u
|
13147
|
-
}), b = $s(e.placement), A = du(e.placement), v = !A, w = gv(b), E = E3(w), k = e.modifiersData.popperOffsets, S = e.rects.reference, M = e.rects.popper,
|
13147
|
+
}), b = $s(e.placement), A = du(e.placement), v = !A, w = gv(b), E = E3(w), k = e.modifiersData.popperOffsets, S = e.rects.reference, M = e.rects.popper, R = typeof g == "function" ? g(Object.assign({}, e.rects, {
|
13148
13148
|
placement: e.placement
|
13149
|
-
})) : g,
|
13150
|
-
mainAxis:
|
13151
|
-
altAxis:
|
13149
|
+
})) : g, O = typeof R == "number" ? {
|
13150
|
+
mainAxis: R,
|
13151
|
+
altAxis: R
|
13152
13152
|
} : Object.assign({
|
13153
13153
|
mainAxis: 0,
|
13154
13154
|
altAxis: 0
|
13155
|
-
},
|
13155
|
+
}, R), D = e.modifiersData.offset ? e.modifiersData.offset[e.placement] : null, L = {
|
13156
13156
|
x: 0,
|
13157
13157
|
y: 0
|
13158
13158
|
};
|
13159
13159
|
if (k) {
|
13160
13160
|
if (i) {
|
13161
|
-
var
|
13161
|
+
var F, G = w === "y" ? rr : sr, _ = w === "y" ? Wr : Gr, W = w === "y" ? "height" : "width", Q = k[w], ne = Q + y[G], X = Q - y[_], ge = h ? -M[W] / 2 : 0, ke = A === cu ? S[W] : M[W], Pe = A === cu ? -M[W] : -S[W], Ce = e.elements.arrow, Ae = h && Ce ? pv(Ce) : {
|
13162
13162
|
width: 0,
|
13163
13163
|
height: 0
|
13164
|
-
}, Ue = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : $T(), Fe = Ue[G], He = Ue[_], Ie = pf(0, S[W], Ae[W]), Ze = v ? S[W] / 2 - ge - Ie - Fe -
|
13164
|
+
}, Ue = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : $T(), Fe = Ue[G], He = Ue[_], Ie = pf(0, S[W], Ae[W]), Ze = v ? S[W] / 2 - ge - Ie - Fe - O.mainAxis : ke - Ie - Fe - O.mainAxis, le = v ? -S[W] / 2 + ge + Ie + He + O.mainAxis : Pe + Ie + He + O.mainAxis, ze = e.elements.arrow && jd(e.elements.arrow), ae = ze ? w === "y" ? ze.clientTop || 0 : ze.clientLeft || 0 : 0, be = (F = D == null ? void 0 : D[w]) != null ? F : 0, Le = Q + Ze - be - ae, U = Q + le - be, K = pf(h ? Fp(ne, Le) : ne, Q, h ? Wa(X, U) : X);
|
13165
13165
|
k[w] = K, L[w] = K - Q;
|
13166
13166
|
}
|
13167
13167
|
if (a) {
|
13168
|
-
var te, ce = w === "x" ? rr : sr, P = w === "x" ? Wr : Gr, m = k[E], x = E === "y" ? "height" : "width", N = m + y[ce], B = m - y[P], $ = [rr, sr].indexOf(b) !== -1, q = (te = D == null ? void 0 : D[E]) != null ? te : 0, ye = $ ? N : m - S[x] - M[x] - q +
|
13168
|
+
var te, ce = w === "x" ? rr : sr, P = w === "x" ? Wr : Gr, m = k[E], x = E === "y" ? "height" : "width", N = m + y[ce], B = m - y[P], $ = [rr, sr].indexOf(b) !== -1, q = (te = D == null ? void 0 : D[E]) != null ? te : 0, ye = $ ? N : m - S[x] - M[x] - q + O.altAxis, Se = $ ? m + S[x] + M[x] - q - O.altAxis : B, Je = h && $ ? JF(ye, m, Se) : pf(h ? ye : N, m, h ? Se : B);
|
13169
13169
|
k[E] = Je, L[E] = Je - m;
|
13170
13170
|
}
|
13171
13171
|
e.modifiersData[r] = L;
|
@@ -13310,19 +13310,19 @@ function I3(n) {
|
|
13310
13310
|
u.rects = {
|
13311
13311
|
reference: O3(A, jd(v), u.options.strategy === "fixed"),
|
13312
13312
|
popper: pv(v)
|
13313
|
-
}, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(
|
13314
|
-
return u.modifiersData[
|
13313
|
+
}, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(O) {
|
13314
|
+
return u.modifiersData[O.name] = Object.assign({}, O.data);
|
13315
13315
|
});
|
13316
13316
|
for (var w = 0; w < u.orderedModifiers.length; w++) {
|
13317
13317
|
if (u.reset === !0) {
|
13318
13318
|
u.reset = !1, w = -1;
|
13319
13319
|
continue;
|
13320
13320
|
}
|
13321
|
-
var E = u.orderedModifiers[w], k = E.fn, S = E.options, M = S === void 0 ? {} : S,
|
13321
|
+
var E = u.orderedModifiers[w], k = E.fn, S = E.options, M = S === void 0 ? {} : S, R = E.name;
|
13322
13322
|
typeof k == "function" && (u = k({
|
13323
13323
|
state: u,
|
13324
13324
|
options: M,
|
13325
|
-
name:
|
13325
|
+
name: R,
|
13326
13326
|
instance: h
|
13327
13327
|
}) || u);
|
13328
13328
|
}
|
@@ -13771,28 +13771,28 @@ function u4(n, e) {
|
|
13771
13771
|
k.setAttribute("data-tippy-root", ""), k.id = "tippy-" + w.id, w.popper = k, n._tippy = w, k._tippy = w;
|
13772
13772
|
var M = A.map(function(Y) {
|
13773
13773
|
return Y.fn(w);
|
13774
|
-
}),
|
13774
|
+
}), R = n.hasAttribute("aria-expanded");
|
13775
13775
|
return ze(), ge(), Q(), ne("onCreate", [w]), t.showOnCreate && N(), k.addEventListener("mouseenter", function() {
|
13776
13776
|
w.props.interactive && w.state.isVisible && w.clearDelayTimeouts();
|
13777
13777
|
}), k.addEventListener("mouseleave", function() {
|
13778
13778
|
w.props.interactive && w.props.trigger.indexOf("mouseenter") >= 0 && G().addEventListener("mousemove", p);
|
13779
13779
|
}), w;
|
13780
|
-
function
|
13780
|
+
function O() {
|
13781
13781
|
var Y = w.props.touch;
|
13782
13782
|
return Array.isArray(Y) ? Y : [Y, 0];
|
13783
13783
|
}
|
13784
13784
|
function D() {
|
13785
|
-
return
|
13785
|
+
return O()[0] === "hold";
|
13786
13786
|
}
|
13787
13787
|
function L() {
|
13788
13788
|
var Y;
|
13789
13789
|
return !!((Y = w.props.render) != null && Y.$$tippy);
|
13790
13790
|
}
|
13791
|
-
function
|
13791
|
+
function F() {
|
13792
13792
|
return g || n;
|
13793
13793
|
}
|
13794
13794
|
function G() {
|
13795
|
-
var Y =
|
13795
|
+
var Y = F().parentNode;
|
13796
13796
|
return Y ? J3(Y) : document;
|
13797
13797
|
}
|
13798
13798
|
function _() {
|
@@ -13828,10 +13828,10 @@ function u4(n, e) {
|
|
13828
13828
|
}
|
13829
13829
|
}
|
13830
13830
|
function ge() {
|
13831
|
-
if (!(
|
13831
|
+
if (!(R || !w.props.aria.expanded)) {
|
13832
13832
|
var Y = Hl(w.props.triggerTarget || n);
|
13833
13833
|
Y.forEach(function(ee) {
|
13834
|
-
w.props.interactive ? ee.setAttribute("aria-expanded", w.state.isVisible && ee ===
|
13834
|
+
w.props.interactive ? ee.setAttribute("aria-expanded", w.state.isVisible && ee === F() ? "true" : "false") : ee.removeAttribute("aria-expanded");
|
13835
13835
|
});
|
13836
13836
|
}
|
13837
13837
|
}
|
@@ -13936,7 +13936,7 @@ function u4(n, e) {
|
|
13936
13936
|
}
|
13937
13937
|
}
|
13938
13938
|
function Le(Y) {
|
13939
|
-
var ee = Y.target, se =
|
13939
|
+
var ee = Y.target, se = F().contains(ee) || k.contains(ee);
|
13940
13940
|
if (!(Y.type === "mousemove" && se)) {
|
13941
13941
|
var Te = x().concat(k).map(function(he) {
|
13942
13942
|
var We, et = he._tippy, ht = (We = et.popperInstance) == null ? void 0 : We.state;
|
@@ -13960,7 +13960,7 @@ function u4(n, e) {
|
|
13960
13960
|
}
|
13961
13961
|
}
|
13962
13962
|
function K(Y) {
|
13963
|
-
w.props.trigger.indexOf("focusin") < 0 && Y.target !==
|
13963
|
+
w.props.trigger.indexOf("focusin") < 0 && Y.target !== F() || w.props.interactive && Y.relatedTarget && k.contains(Y.relatedTarget) || B(Y);
|
13964
13964
|
}
|
13965
13965
|
function te(Y) {
|
13966
13966
|
return _s.isTouch ? D() !== Y.type.indexOf("touch") >= 0 : !1;
|
@@ -13969,8 +13969,8 @@ function u4(n, e) {
|
|
13969
13969
|
P();
|
13970
13970
|
var Y = w.props, ee = Y.popperOptions, se = Y.placement, Te = Y.offset, he = Y.getReferenceClientRect, We = Y.moveTransition, et = L() ? db(k).arrow : null, ht = he ? {
|
13971
13971
|
getBoundingClientRect: he,
|
13972
|
-
contextElement: he.contextElement ||
|
13973
|
-
} : n,
|
13972
|
+
contextElement: he.contextElement || F()
|
13973
|
+
} : n, Yt = {
|
13974
13974
|
name: "$$tippy",
|
13975
13975
|
enabled: !0,
|
13976
13976
|
phase: "beforeWrite",
|
@@ -14009,7 +14009,7 @@ function u4(n, e) {
|
|
14009
14009
|
options: {
|
14010
14010
|
adaptive: !We
|
14011
14011
|
}
|
14012
|
-
},
|
14012
|
+
}, Yt];
|
14013
14013
|
L() && et && Ot.push({
|
14014
14014
|
name: "arrow",
|
14015
14015
|
options: {
|
@@ -14026,7 +14026,7 @@ function u4(n, e) {
|
|
14026
14026
|
w.popperInstance && (w.popperInstance.destroy(), w.popperInstance = null);
|
14027
14027
|
}
|
14028
14028
|
function m() {
|
14029
|
-
var Y = w.props.appendTo, ee, se =
|
14029
|
+
var Y = w.props.appendTo, ee, se = F();
|
14030
14030
|
w.props.interactive && Y === XT || Y === "parent" ? ee = se.parentNode : ee = ZT(Y, [se]), ee.contains(k) || ee.appendChild(k), w.state.isMounted = !0, ce(), process.env.NODE_ENV !== "production" && ai(w.props.interactive && Y === br.appendTo && se.nextElementSibling !== k, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
|
14031
14031
|
|
14032
14032
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
@@ -14040,7 +14040,7 @@ function u4(n, e) {
|
|
14040
14040
|
}
|
14041
14041
|
function N(Y) {
|
14042
14042
|
w.clearDelayTimeouts(), Y && ne("onTrigger", [w, Y]), Ue();
|
14043
|
-
var ee = W(!0), se =
|
14043
|
+
var ee = W(!0), se = O(), Te = se[0], he = se[1];
|
14044
14044
|
_s.isTouch && Te === "hold" && he && (ee = he), ee ? r = setTimeout(function() {
|
14045
14045
|
w.show();
|
14046
14046
|
}, ee) : w.show();
|
@@ -14089,7 +14089,7 @@ function u4(n, e) {
|
|
14089
14089
|
function je() {
|
14090
14090
|
process.env.NODE_ENV !== "production" && ai(w.state.isDestroyed, Rl("show"));
|
14091
14091
|
var Y = w.state.isVisible, ee = w.state.isDestroyed, se = !w.state.isEnabled, Te = _s.isTouch && !w.props.touch, he = Dy(w.props.duration, 0, br.duration);
|
14092
|
-
if (!(Y || ee || se || Te) && !
|
14092
|
+
if (!(Y || ee || se || Te) && !F().hasAttribute("disabled") && (ne("onShow", [w], !1), w.props.onShow(w) !== !1)) {
|
14093
14093
|
if (w.state.isVisible = !0, L() && (k.style.visibility = "visible"), Q(), Ue(), w.state.isMounted || (k.style.transition = "none"), L()) {
|
14094
14094
|
var We = _(), et = We.box, ht = We.content;
|
14095
14095
|
Py([et, ht], 0);
|
@@ -14407,7 +14407,7 @@ class b4 extends NF {
|
|
14407
14407
|
}
|
14408
14408
|
}
|
14409
14409
|
const qA = (n = {}, e = []) => {
|
14410
|
-
const t =
|
14410
|
+
const t = Kt(null), [, r] = st({}), { onBeforeCreate: s, onBlur: i, onCreate: o, onDestroy: a, onFocus: l, onSelectionUpdate: c, onTransaction: u, onUpdate: f } = n, d = Kt(s), h = Kt(i), p = Kt(o), g = Kt(a), y = Kt(l), b = Kt(c), A = Kt(u), v = Kt(f);
|
14411
14411
|
return dt(() => {
|
14412
14412
|
t.current && (s && (t.current.off("beforeCreate", d.current), t.current.on("beforeCreate", s), d.current = s), i && (t.current.off("blur", h.current), t.current.on("blur", i), h.current = i), o && (t.current.off("create", p.current), t.current.on("create", o), p.current = o), a && (t.current.off("destroy", g.current), t.current.on("destroy", a), g.current = a), l && (t.current.off("focus", y.current), t.current.on("focus", l), y.current = l), c && (t.current.off("selectionUpdate", b.current), t.current.on("selectionUpdate", c), b.current = c), u && (t.current.off("transaction", A.current), t.current.on("transaction", u), A.current = u), f && (t.current.off("update", v.current), t.current.on("update", f), v.current = f));
|
14413
14413
|
}, [s, i, o, a, l, c, u, f, t.current]), dt(() => {
|
@@ -15406,7 +15406,7 @@ const v2 = $e("Youtube", [
|
|
15406
15406
|
};
|
15407
15407
|
var Re = /* @__PURE__ */ ((n) => (n[n.NONE = 0] = "NONE", n[n.HEADING = 1] = "HEADING", n[n.TEXT_COLOR = 2] = "TEXT_COLOR", n[n.HIGHLIGHT = 3] = "HIGHLIGHT", n[n.LINK = 4] = "LINK", n[n.FONT_FAMILY = 5] = "FONT_FAMILY", n[n.ALIGNMENT = 6] = "ALIGNMENT", n[n.LIST = 7] = "LIST", n[n.TEXT_FORMATING = 8] = "TEXT_FORMATING", n[n.TEXT_COLOR_PICKER = 9] = "TEXT_COLOR_PICKER", n[n.LINK_POPUP = 10] = "LINK_POPUP", n))(Re || {});
|
15408
15408
|
function V4(n) {
|
15409
|
-
const [e, t] = st(n), r =
|
15409
|
+
const [e, t] = st(n), r = Kt(null), s = (i) => {
|
15410
15410
|
r && r.current && !r.current.contains(i.target) && t(
|
15411
15411
|
0
|
15412
15412
|
/* NONE */
|
@@ -15699,11 +15699,11 @@ var aj = "DismissableLayer", yb = "dismissableLayer.update", lj = "dismissableLa
|
|
15699
15699
|
onDismiss: a,
|
15700
15700
|
...l
|
15701
15701
|
} = n, c = H.useContext(E2), [u, f] = H.useState(null), d = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, h] = H.useState({}), p = Kr(e, (S) => f(S)), g = Array.from(c.layers), [y] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), b = g.indexOf(y), A = u ? g.indexOf(u) : -1, v = c.layersWithOutsidePointerEventsDisabled.size > 0, w = A >= b, E = dj((S) => {
|
15702
|
-
const M = S.target,
|
15703
|
-
!w ||
|
15702
|
+
const M = S.target, R = [...c.branches].some((O) => O.contains(M));
|
15703
|
+
!w || R || (s == null || s(S), o == null || o(S), S.defaultPrevented || a == null || a());
|
15704
15704
|
}, d), k = hj((S) => {
|
15705
15705
|
const M = S.target;
|
15706
|
-
[...c.branches].some((
|
15706
|
+
[...c.branches].some((O) => O.contains(M)) || (i == null || i(S), o == null || o(S), S.defaultPrevented || a == null || a());
|
15707
15707
|
}, d);
|
15708
15708
|
return oj((S) => {
|
15709
15709
|
A === c.layers.size - 1 && (r == null || r(S), !S.defaultPrevented && a && (S.preventDefault(), a()));
|
@@ -16413,8 +16413,8 @@ function s8(n) {
|
|
16413
16413
|
return !1;
|
16414
16414
|
if (!r.current && "changedTouches" in g && (v || w) && (r.current = E), !E)
|
16415
16415
|
return !0;
|
16416
|
-
var
|
16417
|
-
return e8(
|
16416
|
+
var R = r.current || E;
|
16417
|
+
return e8(R, y, g, R === "h" ? v : w, !0);
|
16418
16418
|
}, []), l = H.useCallback(function(g) {
|
16419
16419
|
var y = g;
|
16420
16420
|
if (!(!Dl.length || Dl[Dl.length - 1] !== i)) {
|
@@ -17109,8 +17109,8 @@ function P8({ activeSnapPointProp: n, setActiveSnapPointProp: e, snapPoints: t,
|
|
17109
17109
|
const E = typeof window < "u", k = typeof w == "string";
|
17110
17110
|
let S = 0;
|
17111
17111
|
if (k && (S = parseInt(w, 10)), Gt(a)) {
|
17112
|
-
const
|
17113
|
-
return E ? a === "bottom" ? window.innerHeight -
|
17112
|
+
const R = k ? S : E ? w * window.innerHeight : 0;
|
17113
|
+
return E ? a === "bottom" ? window.innerHeight - R : -window.innerHeight + R : R;
|
17114
17114
|
}
|
17115
17115
|
const M = k ? S : E ? w * window.innerWidth : 0;
|
17116
17116
|
return E ? a === "right" ? window.innerWidth - M : -window.innerWidth + M : M;
|
@@ -17156,26 +17156,26 @@ function P8({ activeSnapPointProp: n, setActiveSnapPointProp: e, snapPoints: t,
|
|
17156
17156
|
]);
|
17157
17157
|
function y({ draggedDistance: v, closeDrawer: w, velocity: E, dismissible: k }) {
|
17158
17158
|
if (i === void 0) return;
|
17159
|
-
const S = a === "bottom" || a === "right" ? (p ?? 0) - v : (p ?? 0) + v, M = d === i - 1,
|
17159
|
+
const S = a === "bottom" || a === "right" ? (p ?? 0) - v : (p ?? 0) + v, M = d === i - 1, R = d === 0, O = v > 0;
|
17160
17160
|
if (M && kt(s.current, {
|
17161
17161
|
transition: `opacity ${yt.DURATION}s cubic-bezier(${yt.EASE.join(",")})`
|
17162
|
-
}), E > 2 && !
|
17162
|
+
}), E > 2 && !O) {
|
17163
17163
|
k ? w() : g(h[0]);
|
17164
17164
|
return;
|
17165
17165
|
}
|
17166
|
-
if (E > 2 &&
|
17166
|
+
if (E > 2 && O && h && t) {
|
17167
17167
|
g(h[t.length - 1]);
|
17168
17168
|
return;
|
17169
17169
|
}
|
17170
|
-
const D = h == null ? void 0 : h.reduce((
|
17170
|
+
const D = h == null ? void 0 : h.reduce((F, G) => typeof F != "number" || typeof G != "number" ? F : Math.abs(G - S) < Math.abs(F - S) ? G : F), L = Gt(a) ? window.innerHeight : window.innerWidth;
|
17171
17171
|
if (E > cN && Math.abs(v) < L * 0.4) {
|
17172
|
-
const
|
17173
|
-
if (
|
17172
|
+
const F = O ? 1 : -1;
|
17173
|
+
if (F > 0 && u) {
|
17174
17174
|
g(h[t.length - 1]);
|
17175
17175
|
return;
|
17176
17176
|
}
|
17177
|
-
if (
|
17178
|
-
g(h[d +
|
17177
|
+
if (R && F < 0 && k && w(), d === null) return;
|
17178
|
+
g(h[d + F]);
|
17179
17179
|
return;
|
17180
17180
|
}
|
17181
17181
|
g(D);
|
@@ -17194,8 +17194,8 @@ function P8({ activeSnapPointProp: n, setActiveSnapPointProp: e, snapPoints: t,
|
|
17194
17194
|
return 0;
|
17195
17195
|
if (E && !w) return 1;
|
17196
17196
|
if (!f && !E) return null;
|
17197
|
-
const S = E ? d + 1 : d - 1, M = E ? h[S] - h[S - 1] : h[S + 1] - h[S],
|
17198
|
-
return E ? 1 -
|
17197
|
+
const S = E ? d + 1 : d - 1, M = E ? h[S] - h[S - 1] : h[S + 1] - h[S], R = v / Math.abs(M);
|
17198
|
+
return E ? 1 - R : R;
|
17199
17199
|
}
|
17200
17200
|
return {
|
17201
17201
|
isLastSnapPoint: u,
|
@@ -17212,7 +17212,7 @@ function P8({ activeSnapPointProp: n, setActiveSnapPointProp: e, snapPoints: t,
|
|
17212
17212
|
const I8 = 0.25, L8 = 100, dE = 8, Zo = 16, hE = 26, Wy = "vaul-dragging";
|
17213
17213
|
function fN({ open: n, onOpenChange: e, children: t, shouldScaleBackground: r, onDrag: s, onRelease: i, snapPoints: o, nested: a = !1, setBackgroundColorOnScale: l = !0, closeThreshold: c = I8, scrollLockTimeout: u = L8, dismissible: f = !0, handleOnly: d = !1, fadeFromIndex: h = o && o.length - 1, activeSnapPoint: p, setActiveSnapPoint: g, fixed: y, modal: b = !0, onClose: A, noBodyStyles: v, direction: w = "bottom", preventScrollRestoration: E = !0, disablePreventScroll: k = !1 }) {
|
17214
17214
|
var S;
|
17215
|
-
const [M = !1,
|
17215
|
+
const [M = !1, R] = re.useState(!1), [O, D] = re.useState(!1), [L, F] = re.useState(!1), [G, _] = re.useState(!1), [W, Q] = re.useState(!1), [ne, X] = re.useState(!1), ge = re.useRef(null), ke = re.useRef(null), Pe = re.useRef(null), Ce = re.useRef(null), Ae = re.useRef(null), Ue = re.useRef(!1), Fe = re.useRef(null), He = re.useRef(0), Ie = re.useRef(!1), Ze = re.useRef(0), le = re.useRef(null), ze = re.useRef(((S = le.current) == null ? void 0 : S.getBoundingClientRect().height) || 0), ae = re.useRef(0), be = re.useCallback((ee) => {
|
17216
17216
|
o && ee === ce.length - 1 && (ke.current = /* @__PURE__ */ new Date());
|
17217
17217
|
}, []), { activeSnapPoint: Le, activeSnapPointIndex: U, setActiveSnapPoint: K, onRelease: te, snapPointsOffset: ce, onDrag: P, shouldFade: m, getPercentageDragged: x } = P8({
|
17218
17218
|
snapPoints: o,
|
@@ -17225,13 +17225,13 @@ function fN({ open: n, onOpenChange: e, children: t, shouldScaleBackground: r, o
|
|
17225
17225
|
direction: w
|
17226
17226
|
});
|
17227
17227
|
k8({
|
17228
|
-
isDisabled: !M || W || !b || ne || !
|
17228
|
+
isDisabled: !M || W || !b || ne || !O || k
|
17229
17229
|
});
|
17230
17230
|
const { restorePositionSetting: N } = O8({
|
17231
17231
|
isOpen: M,
|
17232
17232
|
modal: b,
|
17233
17233
|
nested: a,
|
17234
|
-
hasBeenOpened:
|
17234
|
+
hasBeenOpened: O,
|
17235
17235
|
preventScrollRestoration: E,
|
17236
17236
|
noBodyStyles: v
|
17237
17237
|
});
|
@@ -17276,9 +17276,9 @@ function fN({ open: n, onOpenChange: e, children: t, shouldScaleBackground: r, o
|
|
17276
17276
|
const se = w === "bottom" || w === "right" ? 1 : -1, Te = (He.current - (Gt(w) ? ee.clientY : ee.clientX)) * se, he = Te > 0, We = o && !f && !he;
|
17277
17277
|
if (We && U === 0) return;
|
17278
17278
|
const et = Math.abs(Te), ht = document.querySelector("[vaul-drawer-wrapper]");
|
17279
|
-
let
|
17279
|
+
let Yt = et / ze.current;
|
17280
17280
|
const Ot = x(et, he);
|
17281
|
-
if (Ot !== null && (
|
17281
|
+
if (Ot !== null && (Yt = Ot), We && Yt >= 1 || !Ue.current && !q(ee.target, he)) return;
|
17282
17282
|
if (le.current.classList.add(Wy), Ue.current = !0, kt(le.current, {
|
17283
17283
|
transition: "none"
|
17284
17284
|
}), kt(ge.current, {
|
@@ -17292,12 +17292,12 @@ function fN({ open: n, onOpenChange: e, children: t, shouldScaleBackground: r, o
|
|
17292
17292
|
});
|
17293
17293
|
return;
|
17294
17294
|
}
|
17295
|
-
const Jr = 1 -
|
17296
|
-
if ((m || h && U === h - 1) && (s == null || s(ee,
|
17295
|
+
const Jr = 1 - Yt;
|
17296
|
+
if ((m || h && U === h - 1) && (s == null || s(ee, Yt), kt(ge.current, {
|
17297
17297
|
opacity: `${Jr}`,
|
17298
17298
|
transition: "none"
|
17299
17299
|
}, !0)), ht && ge.current && r) {
|
17300
|
-
const Gn = Math.min(B() +
|
17300
|
+
const Gn = Math.min(B() + Yt * (1 - B()), 1), Kn = 8 - Yt * 8, Cl = Math.max(0, 14 - Yt * 14);
|
17301
17301
|
kt(ht, {
|
17302
17302
|
borderRadius: `${Kn}px`,
|
17303
17303
|
transform: Gt(w) ? `scale(${Gn}) translate3d(0, ${Cl}px, 0)` : `scale(${Gn}) translate3d(${Cl}px, 0, 0)`,
|
@@ -17325,7 +17325,7 @@ function fN({ open: n, onOpenChange: e, children: t, shouldScaleBackground: r, o
|
|
17325
17325
|
let et = window.innerHeight - We;
|
17326
17326
|
const ht = le.current.getBoundingClientRect().height || 0;
|
17327
17327
|
ae.current || (ae.current = ht);
|
17328
|
-
const
|
17328
|
+
const Yt = le.current.getBoundingClientRect().top;
|
17329
17329
|
if (Math.abs(Ze.current - et) > 60 && (Ie.current = !Ie.current), o && o.length > 0 && ce && U) {
|
17330
17330
|
const Ot = ce[U] || 0;
|
17331
17331
|
et += Ot;
|
@@ -17333,7 +17333,7 @@ function fN({ open: n, onOpenChange: e, children: t, shouldScaleBackground: r, o
|
|
17333
17333
|
if (Ze.current = et, ht > We || Ie.current) {
|
17334
17334
|
const Ot = le.current.getBoundingClientRect().height;
|
17335
17335
|
let Jr = Ot;
|
17336
|
-
Ot > We && (Jr = We - hE), y ? le.current.style.height = `${Ot - Math.max(et, 0)}px` : le.current.style.height = `${Math.max(Jr, We -
|
17336
|
+
Ot > We && (Jr = We - hE), y ? le.current.style.height = `${Ot - Math.max(et, 0)}px` : le.current.style.height = `${Math.max(Jr, We - Yt)}px`;
|
17337
17337
|
} else
|
17338
17338
|
le.current.style.height = `${ae.current}px`;
|
17339
17339
|
o && o.length > 0 && !Ie.current ? le.current.style.bottom = "0px" : le.current.style.bottom = `${Math.max(et, 0)}px`;
|
@@ -17356,7 +17356,7 @@ function fN({ open: n, onOpenChange: e, children: t, shouldScaleBackground: r, o
|
|
17356
17356
|
opacity: "0",
|
17357
17357
|
transition: `opacity ${yt.DURATION}s cubic-bezier(${yt.EASE.join(",")})`
|
17358
17358
|
}), lt(!1), setTimeout(() => {
|
17359
|
-
|
17359
|
+
F(!1), R(!1);
|
17360
17360
|
}, 300), setTimeout(() => {
|
17361
17361
|
o && K(o[0]);
|
17362
17362
|
}, yt.DURATION * 1e3));
|
@@ -17372,7 +17372,7 @@ function fN({ open: n, onOpenChange: e, children: t, shouldScaleBackground: r, o
|
|
17372
17372
|
M,
|
17373
17373
|
r
|
17374
17374
|
]), re.useLayoutEffect(() => {
|
17375
|
-
n ? (
|
17375
|
+
n ? (R(!0), D(!0)) : Se();
|
17376
17376
|
}, [
|
17377
17377
|
n
|
17378
17378
|
]), re.useEffect(() => {
|
@@ -17520,7 +17520,7 @@ function fN({ open: n, onOpenChange: e, children: t, shouldScaleBackground: r, o
|
|
17520
17520
|
e == null || e(ee);
|
17521
17521
|
return;
|
17522
17522
|
}
|
17523
|
-
ee ? (D(!0),
|
17523
|
+
ee ? (D(!0), R(ee)) : Se();
|
17524
17524
|
},
|
17525
17525
|
open: M
|
17526
17526
|
}, /* @__PURE__ */ re.createElement(rN.Provider, {
|
@@ -17534,7 +17534,7 @@ function fN({ open: n, onOpenChange: e, children: t, shouldScaleBackground: r, o
|
|
17534
17534
|
scaleBackground: lt,
|
17535
17535
|
onOpenChange: e,
|
17536
17536
|
onPress: $,
|
17537
|
-
setVisible:
|
17537
|
+
setVisible: F,
|
17538
17538
|
onRelease: Be,
|
17539
17539
|
onDrag: ye,
|
17540
17540
|
dismissible: f,
|
@@ -17629,16 +17629,16 @@ const hN = /* @__PURE__ */ re.forwardRef(function({ children: n, ...e }, t) {
|
|
17629
17629
|
});
|
17630
17630
|
hN.displayName = "Drawer.Overlay";
|
17631
17631
|
const pN = /* @__PURE__ */ re.forwardRef(function({ onOpenAutoFocus: n, onPointerDownOutside: e, onAnimationEnd: t, style: r, ...s }, i) {
|
17632
|
-
const { drawerRef: o, onPress: a, onRelease: l, onDrag: c, dismissible: u, keyboardIsOpen: f, snapPointsOffset: d, visible: h, closeDrawer: p, modal: g, openProp: y, onOpenChange: b, setVisible: A, handleOnly: v, direction: w } = Im(), E = aN(i, o), k = re.useRef(null), S = re.useRef(!1), M = (
|
17632
|
+
const { drawerRef: o, onPress: a, onRelease: l, onDrag: c, dismissible: u, keyboardIsOpen: f, snapPointsOffset: d, visible: h, closeDrawer: p, modal: g, openProp: y, onOpenChange: b, setVisible: A, handleOnly: v, direction: w } = Im(), E = aN(i, o), k = re.useRef(null), S = re.useRef(!1), M = (R, O, D = 0) => {
|
17633
17633
|
if (S.current) return !0;
|
17634
|
-
const L = Math.abs(
|
17634
|
+
const L = Math.abs(R.y), F = Math.abs(R.x), G = F > L, _ = [
|
17635
17635
|
"bottom",
|
17636
17636
|
"right"
|
17637
|
-
].includes(
|
17638
|
-
if (
|
17639
|
-
if (!(
|
17637
|
+
].includes(O) ? 1 : -1;
|
17638
|
+
if (O === "left" || O === "right") {
|
17639
|
+
if (!(R.x * _ < 0) && F >= 0 && F <= D)
|
17640
17640
|
return G;
|
17641
|
-
} else if (!(
|
17641
|
+
} else if (!(R.y * _ < 0) && L >= 0 && L <= D)
|
17642
17642
|
return !G;
|
17643
17643
|
return S.current = !0, !0;
|
17644
17644
|
};
|
@@ -17654,49 +17654,49 @@ const pN = /* @__PURE__ */ re.forwardRef(function({ onOpenAutoFocus: n, onPointe
|
|
17654
17654
|
"--snap-point-height": `${d[0]}px`,
|
17655
17655
|
...r
|
17656
17656
|
} : r,
|
17657
|
-
onOpenAutoFocus: (
|
17657
|
+
onOpenAutoFocus: (R) => {
|
17658
17658
|
if (n)
|
17659
|
-
n(
|
17659
|
+
n(R);
|
17660
17660
|
else {
|
17661
|
-
var
|
17662
|
-
|
17661
|
+
var O;
|
17662
|
+
R.preventDefault(), (O = o.current) == null || O.focus();
|
17663
17663
|
}
|
17664
17664
|
},
|
17665
|
-
onPointerDown: (
|
17666
|
-
v || (s.onPointerDown == null || s.onPointerDown.call(s,
|
17667
|
-
x:
|
17668
|
-
y:
|
17669
|
-
}, a(
|
17665
|
+
onPointerDown: (R) => {
|
17666
|
+
v || (s.onPointerDown == null || s.onPointerDown.call(s, R), k.current = {
|
17667
|
+
x: R.clientX,
|
17668
|
+
y: R.clientY
|
17669
|
+
}, a(R));
|
17670
17670
|
},
|
17671
|
-
onPointerDownOutside: (
|
17672
|
-
if (e == null || e(
|
17673
|
-
|
17671
|
+
onPointerDownOutside: (R) => {
|
17672
|
+
if (e == null || e(R), !g || R.defaultPrevented) {
|
17673
|
+
R.preventDefault();
|
17674
17674
|
return;
|
17675
17675
|
}
|
17676
|
-
f.current && (f.current = !1),
|
17676
|
+
f.current && (f.current = !1), R.preventDefault(), b == null || b(!1), !(!u || y !== void 0) && p();
|
17677
17677
|
},
|
17678
|
-
onFocusOutside: (
|
17678
|
+
onFocusOutside: (R) => {
|
17679
17679
|
if (!g) {
|
17680
|
-
|
17680
|
+
R.preventDefault();
|
17681
17681
|
return;
|
17682
17682
|
}
|
17683
17683
|
},
|
17684
|
-
onEscapeKeyDown: (
|
17684
|
+
onEscapeKeyDown: (R) => {
|
17685
17685
|
if (!g) {
|
17686
|
-
|
17686
|
+
R.preventDefault();
|
17687
17687
|
return;
|
17688
17688
|
}
|
17689
17689
|
},
|
17690
|
-
onPointerMove: (
|
17691
|
-
if (v || (s.onPointerMove == null || s.onPointerMove.call(s,
|
17692
|
-
const
|
17690
|
+
onPointerMove: (R) => {
|
17691
|
+
if (v || (s.onPointerMove == null || s.onPointerMove.call(s, R), !k.current)) return;
|
17692
|
+
const O = R.clientY - k.current.y, D = R.clientX - k.current.x, L = R.pointerType === "touch" ? 10 : 2;
|
17693
17693
|
M({
|
17694
17694
|
x: D,
|
17695
|
-
y:
|
17696
|
-
}, w, L) ? c(
|
17695
|
+
y: O
|
17696
|
+
}, w, L) ? c(R) : (Math.abs(D) > L || Math.abs(O) > L) && (k.current = null);
|
17697
17697
|
},
|
17698
|
-
onPointerUp: (
|
17699
|
-
s.onPointerUp == null || s.onPointerUp.call(s,
|
17698
|
+
onPointerUp: (R) => {
|
17699
|
+
s.onPointerUp == null || s.onPointerUp.call(s, R), k.current = null, S.current = !1, l(R);
|
17700
17700
|
}
|
17701
17701
|
});
|
17702
17702
|
});
|
@@ -18156,14 +18156,14 @@ function eU(n, e, t, r, s, i, o, a, l, c, u, f, d, h, p, g, y, b, A) {
|
|
18156
18156
|
direction: w
|
18157
18157
|
} = n, E = ["INPUT", "SELECT", "TEXTAREA"], k = {
|
18158
18158
|
passive: !1
|
18159
|
-
}, S = zf(), M = zf(),
|
18159
|
+
}, S = zf(), M = zf(), R = sl(50, 225).constrain(h.measure(20)), O = {
|
18160
18160
|
mouse: 300,
|
18161
18161
|
touch: 400
|
18162
18162
|
}, D = {
|
18163
18163
|
mouse: 500,
|
18164
18164
|
touch: 600
|
18165
18165
|
}, L = p ? 43 : 25;
|
18166
|
-
let
|
18166
|
+
let F = !1, G = 0, _ = 0, W = !1, Q = !1, ne = !1, X = !1;
|
18167
18167
|
function ge(ae) {
|
18168
18168
|
if (!A) return;
|
18169
18169
|
function be(U) {
|
@@ -18186,15 +18186,15 @@ function eU(n, e, t, r, s, i, o, a, l, c, u, f, d, h, p, g, y, b, A) {
|
|
18186
18186
|
return E.includes(be);
|
18187
18187
|
}
|
18188
18188
|
function Ae() {
|
18189
|
-
return (p ? D :
|
18189
|
+
return (p ? D : O)[X ? "mouse" : "touch"];
|
18190
18190
|
}
|
18191
18191
|
function Ue(ae, be) {
|
18192
18192
|
const Le = f.add(Wv(ae) * -1), U = u.byDistance(ae, !p).distance;
|
18193
|
-
return p || Tt(ae) <
|
18193
|
+
return p || Tt(ae) < R ? U : y && be ? U * 0.5 : u.byIndex(Le.get(), 0).distance;
|
18194
18194
|
}
|
18195
18195
|
function Fe(ae) {
|
18196
18196
|
const be = Ab(ae, r);
|
18197
|
-
X = be, ne = p && be && !ae.buttons &&
|
18197
|
+
X = be, ne = p && be && !ae.buttons && F, F = yf(s.get(), o.get()) >= 2, !(be && ae.button !== 0) && (Ce(ae.target) || (W = !0, i.pointerDown(ae), c.useFriction(0).useDuration(0), s.set(o), Pe(), G = i.readPoint(ae), _ = i.readPoint(ae, v), d.emit("pointerDown")));
|
18198
18198
|
}
|
18199
18199
|
function He(ae) {
|
18200
18200
|
if (!Ab(ae, r) && ae.touches.length >= 2) return Ie(ae);
|
@@ -18637,27 +18637,27 @@ function NN(n, e) {
|
|
18637
18637
|
function mU(n, e, t, r, s, i, o, a, l) {
|
18638
18638
|
const u = Uf(s), f = Uf(s).reverse(), d = b().concat(A());
|
18639
18639
|
function h(S, M) {
|
18640
|
-
return S.reduce((
|
18640
|
+
return S.reduce((R, O) => R - s[O], M);
|
18641
18641
|
}
|
18642
18642
|
function p(S, M) {
|
18643
|
-
return S.reduce((
|
18643
|
+
return S.reduce((R, O) => h(R, M) > 0 ? R.concat([O]) : R, []);
|
18644
18644
|
}
|
18645
18645
|
function g(S) {
|
18646
|
-
return i.map((M,
|
18647
|
-
start: M - r[
|
18646
|
+
return i.map((M, R) => ({
|
18647
|
+
start: M - r[R] + 0.5 + S,
|
18648
18648
|
end: M + e - 0.5 + S
|
18649
18649
|
}));
|
18650
18650
|
}
|
18651
|
-
function y(S, M,
|
18652
|
-
const
|
18651
|
+
function y(S, M, R) {
|
18652
|
+
const O = g(M);
|
18653
18653
|
return S.map((D) => {
|
18654
|
-
const L =
|
18654
|
+
const L = R ? 0 : -t, F = R ? t : 0, G = R ? "end" : "start", _ = O[D][G];
|
18655
18655
|
return {
|
18656
18656
|
index: D,
|
18657
18657
|
loopPoint: _,
|
18658
18658
|
slideLocation: np(-1),
|
18659
18659
|
translate: NN(n, l[D]),
|
18660
|
-
target: () => a.get() > _ ? L :
|
18660
|
+
target: () => a.get() > _ ? L : F
|
18661
18661
|
};
|
18662
18662
|
});
|
18663
18663
|
}
|
@@ -18673,7 +18673,7 @@ function mU(n, e, t, r, s, i, o, a, l) {
|
|
18673
18673
|
return d.every(({
|
18674
18674
|
index: S
|
18675
18675
|
}) => {
|
18676
|
-
const M = u.filter((
|
18676
|
+
const M = u.filter((R) => R !== S);
|
18677
18677
|
return h(M, e) <= 0.1;
|
18678
18678
|
});
|
18679
18679
|
}
|
@@ -18681,10 +18681,10 @@ function mU(n, e, t, r, s, i, o, a, l) {
|
|
18681
18681
|
d.forEach((S) => {
|
18682
18682
|
const {
|
18683
18683
|
target: M,
|
18684
|
-
translate:
|
18685
|
-
slideLocation:
|
18684
|
+
translate: R,
|
18685
|
+
slideLocation: O
|
18686
18686
|
} = S, D = M();
|
18687
|
-
D !==
|
18687
|
+
D !== O.get() && (R.to(D), O.set(D));
|
18688
18688
|
});
|
18689
18689
|
}
|
18690
18690
|
function E() {
|
@@ -18799,7 +18799,7 @@ function vU(n, e, t, r, s, i, o, a, l) {
|
|
18799
18799
|
}
|
18800
18800
|
function p(b) {
|
18801
18801
|
return b.length ? Uf(b).reduce((A, v, w) => {
|
18802
|
-
const E = as(A) || 0, k = E === 0, S = v === Gd(b), M = s[c] - i[E][c],
|
18802
|
+
const E = as(A) || 0, k = E === 0, S = v === Gd(b), M = s[c] - i[E][c], R = s[c] - i[v][u], O = !r && k ? f(o) : 0, D = !r && S ? f(a) : 0, L = Tt(R - D - (M + O));
|
18803
18803
|
return w && L > e + l && A.push(v), S && A.push(b.length), A;
|
18804
18804
|
}, []).map((A, v, w) => {
|
18805
18805
|
const E = Math.max(w[v - 1] || 0);
|
@@ -18830,15 +18830,15 @@ function xU(n, e, t, r, s, i, o) {
|
|
18830
18830
|
watchResize: v,
|
18831
18831
|
watchSlides: w,
|
18832
18832
|
watchDrag: E
|
18833
|
-
} = i, k = 2, S = nU(), M = S.measure(e),
|
18833
|
+
} = i, k = 2, S = nU(), M = S.measure(e), R = t.map(S.measure), O = Z8(l, c), D = O.measureSize(M), L = rU(D), F = Y8(a, D), G = !f && !!A, _ = f || !!A, {
|
18834
18834
|
slideSizes: W,
|
18835
18835
|
slideSizesWithGaps: Q,
|
18836
18836
|
startGap: ne,
|
18837
18837
|
endGap: X
|
18838
|
-
} = wU(
|
18838
|
+
} = wU(O, M, R, t, _, s), ge = vU(O, D, y, f, M, R, ne, X, k), {
|
18839
18839
|
snaps: ke,
|
18840
18840
|
snapsAligned: Pe
|
18841
|
-
} = fU(
|
18841
|
+
} = fU(O, F, M, R, ge), Ce = -as(ke) + as(Q), {
|
18842
18842
|
snapsContained: Ae,
|
18843
18843
|
scrollContainLimit: Ue
|
18844
18844
|
} = aU(D, Ce, Pe, A, k), Fe = G ? Ae : Pe, {
|
@@ -18867,7 +18867,7 @@ function xU(n, e, t, r, s, i, o) {
|
|
18867
18867
|
loop: he
|
18868
18868
|
}
|
18869
18869
|
}, We) => {
|
18870
|
-
const et = Je.velocity(), ht = Je.settled(),
|
18870
|
+
const et = Je.velocity(), ht = Je.settled(), Yt = !Te.shouldConstrain(), Ot = he ? ht : ht && Yt;
|
18871
18871
|
Ot && !Y.pointerDown() && (ee.stop(), se.emit("settle")), Ot || se.emit("scroll"), lt.set(Be.get() - et + et * We), he && (On.loop(Je.direction()), Wn.loop()), je.to(lt.get());
|
18872
18872
|
}, be = X8(r, s, () => ze(Se), (Je) => ae(Se, Je)), Le = 0.68, U = Fe[Ie.get()], K = np(U), te = np(U), ce = np(U), P = iU(K, te, ce, d, Le), m = hU(f, Fe, Ce, He, ce), x = pU(be, Ie, Ze, P, m, ce, o), N = uU(He), B = zf(), $ = bU(e, t, o, g), {
|
18873
18873
|
slideRegistry: q
|
@@ -18876,10 +18876,10 @@ function xU(n, e, t, r, s, i, o) {
|
|
18876
18876
|
ownerWindow: s,
|
18877
18877
|
eventHandler: o,
|
18878
18878
|
containerRect: M,
|
18879
|
-
slideRects:
|
18879
|
+
slideRects: R,
|
18880
18880
|
animation: be,
|
18881
|
-
axis:
|
18882
|
-
dragHandler: eU(
|
18881
|
+
axis: O,
|
18882
|
+
dragHandler: eU(O, n, r, s, ce, tU(O, s), K, be, x, P, m, Ie, o, L, h, p, b, Le, E),
|
18883
18883
|
eventStore: B,
|
18884
18884
|
percentOfView: L,
|
18885
18885
|
index: Ie,
|
@@ -18888,7 +18888,7 @@ function xU(n, e, t, r, s, i, o) {
|
|
18888
18888
|
location: K,
|
18889
18889
|
offsetLocation: te,
|
18890
18890
|
options: i,
|
18891
|
-
resizeHandler: sU(e, o, s, t,
|
18891
|
+
resizeHandler: sU(e, o, s, t, O, v, S),
|
18892
18892
|
scrollBody: P,
|
18893
18893
|
scrollBounds: oU(He, te, ce, P, L),
|
18894
18894
|
scrollLooper: cU(Ce, He, te, [K, te, ce]),
|
@@ -18897,7 +18897,7 @@ function xU(n, e, t, r, s, i, o) {
|
|
18897
18897
|
scrollSnaps: Fe,
|
18898
18898
|
scrollTarget: m,
|
18899
18899
|
scrollTo: x,
|
18900
|
-
slideLooper: mU(
|
18900
|
+
slideLooper: mU(O, D, Ce, W, Q, ke, Fe, te, t),
|
18901
18901
|
slideFocus: ye,
|
18902
18902
|
slidesHandler: yU(e, o, w),
|
18903
18903
|
slidesInView: $,
|
@@ -18905,7 +18905,7 @@ function xU(n, e, t, r, s, i, o) {
|
|
18905
18905
|
slideRegistry: q,
|
18906
18906
|
slidesToScroll: ge,
|
18907
18907
|
target: ce,
|
18908
|
-
translate: NN(
|
18908
|
+
translate: NN(O, e)
|
18909
18909
|
};
|
18910
18910
|
return Se;
|
18911
18911
|
}
|
@@ -19013,31 +19013,31 @@ function Vp(n, e, t) {
|
|
19013
19013
|
const Le = xb(ae) ? k.querySelectorAll(ae) : ae;
|
19014
19014
|
S = [].slice.call(Le || k.children);
|
19015
19015
|
}
|
19016
|
-
function
|
19016
|
+
function R(ze) {
|
19017
19017
|
const ae = xU(n, k, S, r, s, ze, l);
|
19018
19018
|
if (ze.loop && !ae.slideLooper.canLoop()) {
|
19019
19019
|
const be = Object.assign({}, ze, {
|
19020
19020
|
loop: !1
|
19021
19021
|
});
|
19022
|
-
return
|
19022
|
+
return R(be);
|
19023
19023
|
}
|
19024
19024
|
return ae;
|
19025
19025
|
}
|
19026
|
-
function
|
19027
|
-
y || (A = c(A, ze), v = u(A), w = ae || w, M(), b =
|
19026
|
+
function O(ze, ae) {
|
19027
|
+
y || (A = c(A, ze), v = u(A), w = ae || w, M(), b = R(v), f([A, ...w.map(({
|
19028
19028
|
options: be
|
19029
19029
|
}) => be)]).forEach((be) => a.add(be, "change", D)), v.active && (b.translate.to(b.location.get()), b.animation.init(), b.slidesInView.init(), b.slideFocus.init(), b.eventHandler.init(le), b.resizeHandler.init(le), b.slidesHandler.init(le), b.options.loop && b.slideLooper.loop(), k.offsetParent && S.length && b.dragHandler.init(le), E = o.init(le, w)));
|
19030
19030
|
}
|
19031
19031
|
function D(ze, ae) {
|
19032
19032
|
const be = ke();
|
19033
|
-
L(),
|
19033
|
+
L(), O(c({
|
19034
19034
|
startIndex: be
|
19035
19035
|
}, ze), ae), l.emit("reInit");
|
19036
19036
|
}
|
19037
19037
|
function L() {
|
19038
19038
|
b.dragHandler.destroy(), b.eventStore.clear(), b.translate.clear(), b.slideLooper.clear(), b.resizeHandler.destroy(), b.slidesHandler.destroy(), b.slidesInView.destroy(), b.animation.destroy(), o.destroy(), a.clear();
|
19039
19039
|
}
|
19040
|
-
function
|
19040
|
+
function F() {
|
19041
19041
|
y || (y = !0, a.clear(), L(), l.emit("destroy"), l.clear());
|
19042
19042
|
}
|
19043
19043
|
function G(ze, ae, be) {
|
@@ -19095,7 +19095,7 @@ function Vp(n, e, t) {
|
|
19095
19095
|
canScrollPrev: ne,
|
19096
19096
|
containerNode: Ie,
|
19097
19097
|
internalEngine: Fe,
|
19098
|
-
destroy:
|
19098
|
+
destroy: F,
|
19099
19099
|
off: h,
|
19100
19100
|
on: d,
|
19101
19101
|
emit: p,
|
@@ -19113,11 +19113,11 @@ function Vp(n, e, t) {
|
|
19113
19113
|
slidesInView: Ce,
|
19114
19114
|
slidesNotInView: Ae
|
19115
19115
|
};
|
19116
|
-
return
|
19116
|
+
return O(e, t), setTimeout(() => l.emit("init"), 0), le;
|
19117
19117
|
}
|
19118
19118
|
Vp.globalOptions = void 0;
|
19119
19119
|
function Kv(n = {}, e = []) {
|
19120
|
-
const t =
|
19120
|
+
const t = Kt(n), r = Kt(e), [s, i] = st(), [o, a] = st(), l = Xt(() => {
|
19121
19121
|
s && s.reInit(t.current, r.current);
|
19122
19122
|
}, [s]);
|
19123
19123
|
return dt(() => {
|
@@ -24703,7 +24703,7 @@ class Lb {
|
|
24703
24703
|
*/
|
24704
24704
|
forward() {
|
24705
24705
|
switch (this.right === null && Cr(), this.right.content.constructor) {
|
24706
|
-
case
|
24706
|
+
case Qt:
|
24707
24707
|
this.right.deleted || Bu(
|
24708
24708
|
this.currentAttributes,
|
24709
24709
|
/** @type {ContentFormat} */
|
@@ -24720,7 +24720,7 @@ class Lb {
|
|
24720
24720
|
const KE = (n, e, t) => {
|
24721
24721
|
for (; e.right !== null && t > 0; ) {
|
24722
24722
|
switch (e.right.content.constructor) {
|
24723
|
-
case
|
24723
|
+
case Qt:
|
24724
24724
|
e.right.deleted || Bu(
|
24725
24725
|
e.currentAttributes,
|
24726
24726
|
/** @type {ContentFormat} */
|
@@ -24744,7 +24744,7 @@ const KE = (n, e, t) => {
|
|
24744
24744
|
return KE(n, o, t);
|
24745
24745
|
}
|
24746
24746
|
}, WO = (n, e, t, r) => {
|
24747
|
-
for (; t.right !== null && (t.right.deleted === !0 || t.right.content.constructor ===
|
24747
|
+
for (; t.right !== null && (t.right.deleted === !0 || t.right.content.constructor === Qt && Mo(
|
24748
24748
|
r.get(
|
24749
24749
|
/** @type {ContentFormat} */
|
24750
24750
|
t.right.content.key
|
@@ -24758,7 +24758,7 @@ const KE = (n, e, t) => {
|
|
24758
24758
|
), t.forward();
|
24759
24759
|
const s = n.doc, i = s.clientID;
|
24760
24760
|
r.forEach((o, a) => {
|
24761
|
-
const l = t.left, c = t.right, u = new vt(Ke(i, Vt(s.store, i)), l, l && l.lastId, c, c && c.id, e, null, new
|
24761
|
+
const l = t.left, c = t.right, u = new vt(Ke(i, Vt(s.store, i)), l, l && l.lastId, c, c && c.id, e, null, new Qt(a, o));
|
24762
24762
|
u.integrate(n, 0), t.right = u, t.forward();
|
24763
24763
|
});
|
24764
24764
|
}, Bu = (n, e) => {
|
@@ -24766,7 +24766,7 @@ const KE = (n, e, t) => {
|
|
24766
24766
|
r === null ? n.delete(t) : n.set(t, r);
|
24767
24767
|
}, GO = (n, e) => {
|
24768
24768
|
for (; n.right !== null; ) {
|
24769
|
-
if (!(n.right.deleted || n.right.content.constructor ===
|
24769
|
+
if (!(n.right.deleted || n.right.content.constructor === Qt && Mo(
|
24770
24770
|
e[
|
24771
24771
|
/** @type {ContentFormat} */
|
24772
24772
|
n.right.content.key
|
@@ -24783,7 +24783,7 @@ const KE = (n, e, t) => {
|
|
24783
24783
|
if (!Mo(c, l)) {
|
24784
24784
|
o.set(a, c);
|
24785
24785
|
const { left: u, right: f } = t;
|
24786
|
-
t.right = new vt(Ke(i, Vt(s.store, i)), u, u && u.lastId, f, f && f.id, e, null, new
|
24786
|
+
t.right = new vt(Ke(i, Vt(s.store, i)), u, u && u.lastId, f, f && f.id, e, null, new Qt(a, l)), t.right.integrate(n, 0), t.forward();
|
24787
24787
|
}
|
24788
24788
|
}
|
24789
24789
|
return o;
|
@@ -24803,10 +24803,10 @@ const KE = (n, e, t) => {
|
|
24803
24803
|
const i = n.doc, o = i.clientID;
|
24804
24804
|
GO(t, s);
|
24805
24805
|
const a = KO(n, e, t, s);
|
24806
|
-
e: for (; t.right !== null && (r > 0 || a.size > 0 && (t.right.deleted || t.right.content.constructor ===
|
24806
|
+
e: for (; t.right !== null && (r > 0 || a.size > 0 && (t.right.deleted || t.right.content.constructor === Qt)); ) {
|
24807
24807
|
if (!t.right.deleted)
|
24808
24808
|
switch (t.right.content.constructor) {
|
24809
|
-
case
|
24809
|
+
case Qt: {
|
24810
24810
|
const { key: l, value: c } = (
|
24811
24811
|
/** @type {ContentFormat} */
|
24812
24812
|
t.right.content
|
@@ -24842,7 +24842,7 @@ const KE = (n, e, t) => {
|
|
24842
24842
|
let i = e;
|
24843
24843
|
const o = Un();
|
24844
24844
|
for (; i && (!i.countable || i.deleted); ) {
|
24845
|
-
if (!i.deleted && i.content.constructor ===
|
24845
|
+
if (!i.deleted && i.content.constructor === Qt) {
|
24846
24846
|
const c = (
|
24847
24847
|
/** @type {ContentFormat} */
|
24848
24848
|
i.content
|
@@ -24856,7 +24856,7 @@ const KE = (n, e, t) => {
|
|
24856
24856
|
if (t === e && (l = !0), !e.deleted) {
|
24857
24857
|
const c = e.content;
|
24858
24858
|
switch (c.constructor) {
|
24859
|
-
case
|
24859
|
+
case Qt: {
|
24860
24860
|
const { key: u, value: f } = (
|
24861
24861
|
/** @type {ContentFormat} */
|
24862
24862
|
c
|
@@ -24879,7 +24879,7 @@ const KE = (n, e, t) => {
|
|
24879
24879
|
e = e.right;
|
24880
24880
|
const t = /* @__PURE__ */ new Set();
|
24881
24881
|
for (; e && (e.deleted || !e.countable); ) {
|
24882
|
-
if (!e.deleted && e.content.constructor ===
|
24882
|
+
if (!e.deleted && e.content.constructor === Qt) {
|
24883
24883
|
const r = (
|
24884
24884
|
/** @type {ContentFormat} */
|
24885
24885
|
e.content.key
|
@@ -24902,7 +24902,7 @@ const KE = (n, e, t) => {
|
|
24902
24902
|
for (; s; ) {
|
24903
24903
|
if (s.deleted === !1)
|
24904
24904
|
switch (s.content.constructor) {
|
24905
|
-
case
|
24905
|
+
case Qt:
|
24906
24906
|
Bu(
|
24907
24907
|
o,
|
24908
24908
|
/** @type {ContentFormat} */
|
@@ -24929,7 +24929,7 @@ const KE = (n, e, t) => {
|
|
24929
24929
|
s,
|
24930
24930
|
(o) => {
|
24931
24931
|
!o.deleted && /** @type {Item} */
|
24932
|
-
o.content.constructor ===
|
24932
|
+
o.content.constructor === Qt && o.constructor !== jr && e.add(
|
24933
24933
|
/** @type {any} */
|
24934
24934
|
o.parent
|
24935
24935
|
);
|
@@ -24948,7 +24948,7 @@ const KE = (n, e, t) => {
|
|
24948
24948
|
/** @type {YText} */
|
24949
24949
|
s.parent
|
24950
24950
|
);
|
24951
|
-
s.content.constructor ===
|
24951
|
+
s.content.constructor === Qt ? e.add(i) : s6(r, s);
|
24952
24952
|
});
|
24953
24953
|
for (const s of e)
|
24954
24954
|
i6(s);
|
@@ -25051,7 +25051,7 @@ class a6 extends zm {
|
|
25051
25051
|
this.adds(o) ? this.deletes(o) || (a !== "insert" && (d(), a = "insert"), c += /** @type {ContentString} */
|
25052
25052
|
o.content.str) : this.deletes(o) ? (a !== "delete" && (d(), a = "delete"), f += o.length) : o.deleted || (a !== "retain" && (d(), a = "retain"), u += o.length);
|
25053
25053
|
break;
|
25054
|
-
case
|
25054
|
+
case Qt: {
|
25055
25055
|
const { key: h, value: p } = (
|
25056
25056
|
/** @type {ContentFormat} */
|
25057
25057
|
o.content
|
@@ -25247,7 +25247,7 @@ class ll extends wn {
|
|
25247
25247
|
s.push(f);
|
25248
25248
|
break;
|
25249
25249
|
}
|
25250
|
-
case
|
25250
|
+
case Qt:
|
25251
25251
|
ia(l, e) && (c(), Bu(
|
25252
25252
|
i,
|
25253
25253
|
/** @type {ContentFormat} */
|
@@ -26457,7 +26457,7 @@ class El {
|
|
26457
26457
|
}
|
26458
26458
|
}
|
26459
26459
|
const b6 = (n) => new El(n.readJSON());
|
26460
|
-
class
|
26460
|
+
class Qt {
|
26461
26461
|
/**
|
26462
26462
|
* @param {string} key
|
26463
26463
|
* @param {Object} value
|
@@ -26487,7 +26487,7 @@ class qt {
|
|
26487
26487
|
* @return {ContentFormat}
|
26488
26488
|
*/
|
26489
26489
|
copy() {
|
26490
|
-
return new
|
26490
|
+
return new Qt(this.key, this.value);
|
26491
26491
|
}
|
26492
26492
|
/**
|
26493
26493
|
* @param {number} _offset
|
@@ -26538,7 +26538,7 @@ class qt {
|
|
26538
26538
|
return 6;
|
26539
26539
|
}
|
26540
26540
|
}
|
26541
|
-
const w6 = (n) => new
|
26541
|
+
const w6 = (n) => new Qt(n.readKey(), n.readJSON());
|
26542
26542
|
class eg {
|
26543
26543
|
/**
|
26544
26544
|
* @param {Array<any>} arr
|
@@ -27331,19 +27331,19 @@ var eR = { exports: {} };
|
|
27331
27331
|
return 3 * (E + k) / 4 - k;
|
27332
27332
|
}
|
27333
27333
|
function u(w) {
|
27334
|
-
var E, k, S = l(w), M = S[0],
|
27335
|
-
for (k = 0; k < L; k += 4) E = g[w.charCodeAt(k)] << 18 | g[w.charCodeAt(k + 1)] << 12 | g[w.charCodeAt(k + 2)] << 6 | g[w.charCodeAt(k + 3)],
|
27336
|
-
return
|
27334
|
+
var E, k, S = l(w), M = S[0], R = S[1], O = new y(c(w, M, R)), D = 0, L = 0 < R ? M - 4 : M;
|
27335
|
+
for (k = 0; k < L; k += 4) E = g[w.charCodeAt(k)] << 18 | g[w.charCodeAt(k + 1)] << 12 | g[w.charCodeAt(k + 2)] << 6 | g[w.charCodeAt(k + 3)], O[D++] = 255 & E >> 16, O[D++] = 255 & E >> 8, O[D++] = 255 & E;
|
27336
|
+
return R === 2 && (E = g[w.charCodeAt(k)] << 2 | g[w.charCodeAt(k + 1)] >> 4, O[D++] = 255 & E), R === 1 && (E = g[w.charCodeAt(k)] << 10 | g[w.charCodeAt(k + 1)] << 4 | g[w.charCodeAt(k + 2)] >> 2, O[D++] = 255 & E >> 8, O[D++] = 255 & E), O;
|
27337
27337
|
}
|
27338
27338
|
function f(w) {
|
27339
27339
|
return p[63 & w >> 18] + p[63 & w >> 12] + p[63 & w >> 6] + p[63 & w];
|
27340
27340
|
}
|
27341
27341
|
function d(w, E, k) {
|
27342
|
-
for (var S, M = [],
|
27342
|
+
for (var S, M = [], R = E; R < k; R += 3) S = (16711680 & w[R] << 16) + (65280 & w[R + 1] << 8) + (255 & w[R + 2]), M.push(f(S));
|
27343
27343
|
return M.join("");
|
27344
27344
|
}
|
27345
27345
|
function h(w) {
|
27346
|
-
for (var E, k = w.length, S = k % 3, M = [],
|
27346
|
+
for (var E, k = w.length, S = k % 3, M = [], R = 16383, O = 0, D = k - S; O < D; O += R) M.push(d(w, O, O + R > D ? D : O + R));
|
27347
27347
|
return S === 1 ? (E = w[k - 1], M.push(p[E >> 2] + p[63 & E << 4] + "==")) : S === 2 && (E = (w[k - 2] << 8) + w[k - 1], M.push(p[E >> 10] + p[63 & E >> 4] + p[63 & E << 2] + "=")), M.join("");
|
27348
27348
|
}
|
27349
27349
|
a.byteLength = function(w) {
|
@@ -27483,11 +27483,11 @@ var eR = { exports: {} };
|
|
27483
27483
|
N = m.length - 1;
|
27484
27484
|
} else if (0 > N) if ($) N = 0;
|
27485
27485
|
else return -1;
|
27486
|
-
if (typeof x == "string" && (x = f.from(x, B)), f.isBuffer(x)) return x.length === 0 ? -1 :
|
27487
|
-
if (typeof x == "number") return x &= 255, typeof Uint8Array.prototype.indexOf == "function" ? $ ? Uint8Array.prototype.indexOf.call(m, x, N) : Uint8Array.prototype.lastIndexOf.call(m, x, N) :
|
27486
|
+
if (typeof x == "string" && (x = f.from(x, B)), f.isBuffer(x)) return x.length === 0 ? -1 : R(m, x, N, B, $);
|
27487
|
+
if (typeof x == "number") return x &= 255, typeof Uint8Array.prototype.indexOf == "function" ? $ ? Uint8Array.prototype.indexOf.call(m, x, N) : Uint8Array.prototype.lastIndexOf.call(m, x, N) : R(m, [x], N, B, $);
|
27488
27488
|
throw new TypeError("val must be string, number or Buffer");
|
27489
27489
|
}
|
27490
|
-
function
|
27490
|
+
function R(m, x, N, B, $) {
|
27491
27491
|
function q(Wn, Y) {
|
27492
27492
|
return ye === 1 ? Wn[Y] : Wn.readUInt16BE(Y * ye);
|
27493
27493
|
}
|
@@ -27510,7 +27510,7 @@ var eR = { exports: {} };
|
|
27510
27510
|
}
|
27511
27511
|
return -1;
|
27512
27512
|
}
|
27513
|
-
function
|
27513
|
+
function O(m, x, N, B) {
|
27514
27514
|
N = +N || 0;
|
27515
27515
|
var $ = m.length - N;
|
27516
27516
|
B ? (B = +B, B > $ && (B = $)) : B = $;
|
@@ -27528,7 +27528,7 @@ var eR = { exports: {} };
|
|
27528
27528
|
function L(m, x, N, B) {
|
27529
27529
|
return Le(ze(x), m, N, B);
|
27530
27530
|
}
|
27531
|
-
function
|
27531
|
+
function F(m, x, N, B) {
|
27532
27532
|
return L(m, x, N, B);
|
27533
27533
|
}
|
27534
27534
|
function G(m, x, N, B) {
|
@@ -27780,7 +27780,7 @@ var eR = { exports: {} };
|
|
27780
27780
|
B || (B = "utf8");
|
27781
27781
|
for (var q = !1; ; ) switch (B) {
|
27782
27782
|
case "hex":
|
27783
|
-
return
|
27783
|
+
return O(this, m, x, N);
|
27784
27784
|
case "utf8":
|
27785
27785
|
case "utf-8":
|
27786
27786
|
return D(this, m, x, N);
|
@@ -27788,7 +27788,7 @@ var eR = { exports: {} };
|
|
27788
27788
|
return L(this, m, x, N);
|
27789
27789
|
case "latin1":
|
27790
27790
|
case "binary":
|
27791
|
-
return
|
27791
|
+
return F(this, m, x, N);
|
27792
27792
|
case "base64":
|
27793
27793
|
return G(this, m, x, N);
|
27794
27794
|
case "ucs2":
|
@@ -28074,163 +28074,163 @@ var eR = { exports: {} };
|
|
28074
28074
|
}
|
28075
28075
|
};
|
28076
28076
|
}, {}], 7: [function(i, o) {
|
28077
|
-
function a(
|
28078
|
-
console && console.warn && console.warn(
|
28077
|
+
function a(O) {
|
28078
|
+
console && console.warn && console.warn(O);
|
28079
28079
|
}
|
28080
28080
|
function l() {
|
28081
28081
|
l.init.call(this);
|
28082
28082
|
}
|
28083
|
-
function c(
|
28084
|
-
if (typeof
|
28083
|
+
function c(O) {
|
28084
|
+
if (typeof O != "function") throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof O);
|
28085
28085
|
}
|
28086
|
-
function u(
|
28087
|
-
return
|
28086
|
+
function u(O) {
|
28087
|
+
return O._maxListeners === void 0 ? l.defaultMaxListeners : O._maxListeners;
|
28088
28088
|
}
|
28089
|
-
function f(
|
28089
|
+
function f(O, D, L, F) {
|
28090
28090
|
var G, _, W;
|
28091
|
-
if (c(L), _ =
|
28092
|
-
else if (typeof W == "function" ? W = _[D] =
|
28091
|
+
if (c(L), _ = O._events, _ === void 0 ? (_ = O._events = /* @__PURE__ */ Object.create(null), O._eventsCount = 0) : (_.newListener !== void 0 && (O.emit("newListener", D, L.listener ? L.listener : L), _ = O._events), W = _[D]), W === void 0) W = _[D] = L, ++O._eventsCount;
|
28092
|
+
else if (typeof W == "function" ? W = _[D] = F ? [L, W] : [W, L] : F ? W.unshift(L) : W.push(L), G = u(O), 0 < G && W.length > G && !W.warned) {
|
28093
28093
|
W.warned = !0;
|
28094
28094
|
var Q = new Error("Possible EventEmitter memory leak detected. " + W.length + " " + (D + " listeners added. Use emitter.setMaxListeners() to increase limit"));
|
28095
|
-
Q.name = "MaxListenersExceededWarning", Q.emitter =
|
28095
|
+
Q.name = "MaxListenersExceededWarning", Q.emitter = O, Q.type = D, Q.count = W.length, a(Q);
|
28096
28096
|
}
|
28097
|
-
return
|
28097
|
+
return O;
|
28098
28098
|
}
|
28099
28099
|
function d() {
|
28100
28100
|
if (!this.fired) return this.target.removeListener(this.type, this.wrapFn), this.fired = !0, arguments.length === 0 ? this.listener.call(this.target) : this.listener.apply(this.target, arguments);
|
28101
28101
|
}
|
28102
|
-
function h(
|
28103
|
-
var
|
28104
|
-
return G.listener = L,
|
28102
|
+
function h(O, D, L) {
|
28103
|
+
var F = { fired: !1, wrapFn: void 0, target: O, type: D, listener: L }, G = d.bind(F);
|
28104
|
+
return G.listener = L, F.wrapFn = G, G;
|
28105
28105
|
}
|
28106
|
-
function p(
|
28107
|
-
var
|
28108
|
-
if (
|
28109
|
-
var G =
|
28106
|
+
function p(O, D, L) {
|
28107
|
+
var F = O._events;
|
28108
|
+
if (F === void 0) return [];
|
28109
|
+
var G = F[D];
|
28110
28110
|
return G === void 0 ? [] : typeof G == "function" ? L ? [G.listener || G] : [G] : L ? A(G) : y(G, G.length);
|
28111
28111
|
}
|
28112
|
-
function g(
|
28112
|
+
function g(O) {
|
28113
28113
|
var D = this._events;
|
28114
28114
|
if (D !== void 0) {
|
28115
|
-
var L = D[
|
28115
|
+
var L = D[O];
|
28116
28116
|
if (typeof L == "function") return 1;
|
28117
28117
|
if (L !== void 0) return L.length;
|
28118
28118
|
}
|
28119
28119
|
return 0;
|
28120
28120
|
}
|
28121
|
-
function y(
|
28122
|
-
for (var L = Array(D),
|
28121
|
+
function y(O, D) {
|
28122
|
+
for (var L = Array(D), F = 0; F < D; ++F) L[F] = O[F];
|
28123
28123
|
return L;
|
28124
28124
|
}
|
28125
|
-
function b(
|
28126
|
-
for (; D + 1 <
|
28127
|
-
|
28125
|
+
function b(O, D) {
|
28126
|
+
for (; D + 1 < O.length; D++) O[D] = O[D + 1];
|
28127
|
+
O.pop();
|
28128
28128
|
}
|
28129
|
-
function A(
|
28130
|
-
for (var D = Array(
|
28129
|
+
function A(O) {
|
28130
|
+
for (var D = Array(O.length), L = 0; L < D.length; ++L) D[L] = O[L].listener || O[L];
|
28131
28131
|
return D;
|
28132
28132
|
}
|
28133
|
-
function v(
|
28134
|
-
typeof
|
28133
|
+
function v(O, D, L) {
|
28134
|
+
typeof O.on == "function" && w(O, "error", D, L);
|
28135
28135
|
}
|
28136
|
-
function w(
|
28137
|
-
if (typeof
|
28138
|
-
else if (typeof
|
28139
|
-
|
28136
|
+
function w(O, D, L, F) {
|
28137
|
+
if (typeof O.on == "function") F.once ? O.once(D, L) : O.on(D, L);
|
28138
|
+
else if (typeof O.addEventListener == "function") O.addEventListener(D, function G(_) {
|
28139
|
+
F.once && O.removeEventListener(D, G), L(_);
|
28140
28140
|
});
|
28141
|
-
else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof
|
28141
|
+
else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof O);
|
28142
28142
|
}
|
28143
|
-
var E, k = typeof Reflect == "object" ? Reflect : null, S = k && typeof k.apply == "function" ? k.apply : function(
|
28144
|
-
return Function.prototype.apply.call(
|
28143
|
+
var E, k = typeof Reflect == "object" ? Reflect : null, S = k && typeof k.apply == "function" ? k.apply : function(O, D, L) {
|
28144
|
+
return Function.prototype.apply.call(O, D, L);
|
28145
28145
|
};
|
28146
|
-
E = k && typeof k.ownKeys == "function" ? k.ownKeys : Object.getOwnPropertySymbols ? function(
|
28147
|
-
return Object.getOwnPropertyNames(
|
28148
|
-
} : function(
|
28149
|
-
return Object.getOwnPropertyNames(
|
28146
|
+
E = k && typeof k.ownKeys == "function" ? k.ownKeys : Object.getOwnPropertySymbols ? function(O) {
|
28147
|
+
return Object.getOwnPropertyNames(O).concat(Object.getOwnPropertySymbols(O));
|
28148
|
+
} : function(O) {
|
28149
|
+
return Object.getOwnPropertyNames(O);
|
28150
28150
|
};
|
28151
|
-
var M = Number.isNaN || function(
|
28152
|
-
return
|
28151
|
+
var M = Number.isNaN || function(O) {
|
28152
|
+
return O !== O;
|
28153
28153
|
};
|
28154
|
-
o.exports = l, o.exports.once = function(
|
28155
|
-
return new Promise(function(L,
|
28154
|
+
o.exports = l, o.exports.once = function(O, D) {
|
28155
|
+
return new Promise(function(L, F) {
|
28156
28156
|
function G(W) {
|
28157
|
-
|
28157
|
+
O.removeListener(D, _), F(W);
|
28158
28158
|
}
|
28159
28159
|
function _() {
|
28160
|
-
typeof
|
28160
|
+
typeof O.removeListener == "function" && O.removeListener("error", G), L([].slice.call(arguments));
|
28161
28161
|
}
|
28162
|
-
w(
|
28162
|
+
w(O, D, _, { once: !0 }), D !== "error" && v(O, G, { once: !0 });
|
28163
28163
|
});
|
28164
28164
|
}, l.EventEmitter = l, l.prototype._events = void 0, l.prototype._eventsCount = 0, l.prototype._maxListeners = void 0;
|
28165
|
-
var
|
28165
|
+
var R = 10;
|
28166
28166
|
Object.defineProperty(l, "defaultMaxListeners", { enumerable: !0, get: function() {
|
28167
|
-
return
|
28168
|
-
}, set: function(
|
28169
|
-
if (typeof
|
28170
|
-
|
28167
|
+
return R;
|
28168
|
+
}, set: function(O) {
|
28169
|
+
if (typeof O != "number" || 0 > O || M(O)) throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + O + ".");
|
28170
|
+
R = O;
|
28171
28171
|
} }), l.init = function() {
|
28172
28172
|
(this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) && (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0;
|
28173
|
-
}, l.prototype.setMaxListeners = function(
|
28174
|
-
if (typeof
|
28175
|
-
return this._maxListeners =
|
28173
|
+
}, l.prototype.setMaxListeners = function(O) {
|
28174
|
+
if (typeof O != "number" || 0 > O || M(O)) throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + O + ".");
|
28175
|
+
return this._maxListeners = O, this;
|
28176
28176
|
}, l.prototype.getMaxListeners = function() {
|
28177
28177
|
return u(this);
|
28178
|
-
}, l.prototype.emit = function(
|
28178
|
+
}, l.prototype.emit = function(O) {
|
28179
28179
|
for (var D = [], L = 1; L < arguments.length; L++) D.push(arguments[L]);
|
28180
|
-
var
|
28181
|
-
if (G !== void 0)
|
28182
|
-
else if (!
|
28183
|
-
if (
|
28180
|
+
var F = O === "error", G = this._events;
|
28181
|
+
if (G !== void 0) F = F && G.error === void 0;
|
28182
|
+
else if (!F) return !1;
|
28183
|
+
if (F) {
|
28184
28184
|
var _;
|
28185
28185
|
if (0 < D.length && (_ = D[0]), _ instanceof Error) throw _;
|
28186
28186
|
var W = new Error("Unhandled error." + (_ ? " (" + _.message + ")" : ""));
|
28187
28187
|
throw W.context = _, W;
|
28188
28188
|
}
|
28189
|
-
var Q = G[
|
28189
|
+
var Q = G[O];
|
28190
28190
|
if (Q === void 0) return !1;
|
28191
28191
|
if (typeof Q == "function") S(Q, this, D);
|
28192
28192
|
else for (var ne = Q.length, X = y(Q, ne), L = 0; L < ne; ++L) S(X[L], this, D);
|
28193
28193
|
return !0;
|
28194
|
-
}, l.prototype.addListener = function(
|
28195
|
-
return f(this,
|
28196
|
-
}, l.prototype.on = l.prototype.addListener, l.prototype.prependListener = function(
|
28197
|
-
return f(this,
|
28198
|
-
}, l.prototype.once = function(
|
28199
|
-
return c(D), this.on(
|
28200
|
-
}, l.prototype.prependOnceListener = function(
|
28201
|
-
return c(D), this.prependListener(
|
28202
|
-
}, l.prototype.removeListener = function(
|
28203
|
-
var L,
|
28204
|
-
if (c(D),
|
28205
|
-
if (L =
|
28206
|
-
if (L === D || L.listener === D) --this._eventsCount == 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete
|
28194
|
+
}, l.prototype.addListener = function(O, D) {
|
28195
|
+
return f(this, O, D, !1);
|
28196
|
+
}, l.prototype.on = l.prototype.addListener, l.prototype.prependListener = function(O, D) {
|
28197
|
+
return f(this, O, D, !0);
|
28198
|
+
}, l.prototype.once = function(O, D) {
|
28199
|
+
return c(D), this.on(O, h(this, O, D)), this;
|
28200
|
+
}, l.prototype.prependOnceListener = function(O, D) {
|
28201
|
+
return c(D), this.prependListener(O, h(this, O, D)), this;
|
28202
|
+
}, l.prototype.removeListener = function(O, D) {
|
28203
|
+
var L, F, G, _, W;
|
28204
|
+
if (c(D), F = this._events, F === void 0) return this;
|
28205
|
+
if (L = F[O], L === void 0) return this;
|
28206
|
+
if (L === D || L.listener === D) --this._eventsCount == 0 ? this._events = /* @__PURE__ */ Object.create(null) : (delete F[O], F.removeListener && this.emit("removeListener", O, L.listener || D));
|
28207
28207
|
else if (typeof L != "function") {
|
28208
28208
|
for (G = -1, _ = L.length - 1; 0 <= _; _--) if (L[_] === D || L[_].listener === D) {
|
28209
28209
|
W = L[_].listener, G = _;
|
28210
28210
|
break;
|
28211
28211
|
}
|
28212
28212
|
if (0 > G) return this;
|
28213
|
-
G === 0 ? L.shift() : b(L, G), L.length === 1 && (
|
28213
|
+
G === 0 ? L.shift() : b(L, G), L.length === 1 && (F[O] = L[0]), F.removeListener !== void 0 && this.emit("removeListener", O, W || D);
|
28214
28214
|
}
|
28215
28215
|
return this;
|
28216
|
-
}, l.prototype.off = l.prototype.removeListener, l.prototype.removeAllListeners = function(
|
28217
|
-
var D, L,
|
28216
|
+
}, l.prototype.off = l.prototype.removeListener, l.prototype.removeAllListeners = function(O) {
|
28217
|
+
var D, L, F;
|
28218
28218
|
if (L = this._events, L === void 0) return this;
|
28219
|
-
if (L.removeListener === void 0) return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : L[
|
28219
|
+
if (L.removeListener === void 0) return arguments.length === 0 ? (this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0) : L[O] !== void 0 && (--this._eventsCount == 0 ? this._events = /* @__PURE__ */ Object.create(null) : delete L[O]), this;
|
28220
28220
|
if (arguments.length === 0) {
|
28221
28221
|
var G, _ = Object.keys(L);
|
28222
|
-
for (
|
28222
|
+
for (F = 0; F < _.length; ++F) G = _[F], G !== "removeListener" && this.removeAllListeners(G);
|
28223
28223
|
return this.removeAllListeners("removeListener"), this._events = /* @__PURE__ */ Object.create(null), this._eventsCount = 0, this;
|
28224
28224
|
}
|
28225
|
-
if (D = L[
|
28226
|
-
else if (D !== void 0) for (
|
28225
|
+
if (D = L[O], typeof D == "function") this.removeListener(O, D);
|
28226
|
+
else if (D !== void 0) for (F = D.length - 1; 0 <= F; F--) this.removeListener(O, D[F]);
|
28227
28227
|
return this;
|
28228
|
-
}, l.prototype.listeners = function(
|
28229
|
-
return p(this,
|
28230
|
-
}, l.prototype.rawListeners = function(
|
28231
|
-
return p(this,
|
28232
|
-
}, l.listenerCount = function(
|
28233
|
-
return typeof
|
28228
|
+
}, l.prototype.listeners = function(O) {
|
28229
|
+
return p(this, O, !0);
|
28230
|
+
}, l.prototype.rawListeners = function(O) {
|
28231
|
+
return p(this, O, !1);
|
28232
|
+
}, l.listenerCount = function(O, D) {
|
28233
|
+
return typeof O.listenerCount == "function" ? O.listenerCount(D) : g.call(O, D);
|
28234
28234
|
}, l.prototype.listenerCount = g, l.prototype.eventNames = function() {
|
28235
28235
|
return 0 < this._eventsCount ? E(this._events) : [];
|
28236
28236
|
};
|
@@ -28253,10 +28253,10 @@ var eR = { exports: {} };
|
|
28253
28253
|
}
|
28254
28254
|
return (E ? -1 : 1) * p * s(2, h - f);
|
28255
28255
|
}, a.write = function(l, c, u, f, d, h) {
|
28256
|
-
var p, g, y, b = Math.LN2, A = Math.log, v = 8 * h - d - 1, w = (1 << v) - 1, E = w >> 1, k = d === 23 ? s(2, -24) - s(2, -77) : 0, S = f ? 0 : h - 1, M = f ? 1 : -1,
|
28256
|
+
var p, g, y, b = Math.LN2, A = Math.log, v = 8 * h - d - 1, w = (1 << v) - 1, E = w >> 1, k = d === 23 ? s(2, -24) - s(2, -77) : 0, S = f ? 0 : h - 1, M = f ? 1 : -1, R = 0 > c || c === 0 && 0 > 1 / c ? 1 : 0;
|
28257
28257
|
for (c = r(c), isNaN(c) || c === 1 / 0 ? (g = isNaN(c) ? 1 : 0, p = w) : (p = t(A(c) / b), 1 > c * (y = s(2, -p)) && (p--, y *= 2), c += 1 <= p + E ? k / y : k * s(2, 1 - E), 2 <= c * y && (p++, y /= 2), p + E >= w ? (g = 0, p = w) : 1 <= p + E ? (g = (c * y - 1) * s(2, d), p += E) : (g = c * s(2, E - 1) * s(2, d), p = 0)); 8 <= d; l[u + S] = 255 & g, S += M, g /= 256, d -= 8) ;
|
28258
28258
|
for (p = p << d | g, v += d; 0 < v; l[u + S] = 255 & p, S += M, p /= 256, v -= 8) ;
|
28259
|
-
l[u + S - M] |= 128 *
|
28259
|
+
l[u + S - M] |= 128 * R;
|
28260
28260
|
};
|
28261
28261
|
}, {}], 10: [function(i, o) {
|
28262
28262
|
o.exports = typeof Object.create == "function" ? function(a, l) {
|
@@ -28572,7 +28572,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
28572
28572
|
}
|
28573
28573
|
function E(P) {
|
28574
28574
|
var m = P._readableState;
|
28575
|
-
X("emitReadable_", m.destroyed, m.length, m.ended), !m.destroyed && (m.length || m.ended) && (P.emit("readable"), m.emittedReadable = !1), m.needReadable = !m.flowing && !m.ended && m.length <= m.highWaterMark,
|
28575
|
+
X("emitReadable_", m.destroyed, m.length, m.ended), !m.destroyed && (m.length || m.ended) && (P.emit("readable"), m.emittedReadable = !1), m.needReadable = !m.flowing && !m.ended && m.length <= m.highWaterMark, F(P);
|
28576
28576
|
}
|
28577
28577
|
function k(P, m) {
|
28578
28578
|
m.readingMore || (m.readingMore = !0, a.nextTick(S, P, m));
|
@@ -28587,23 +28587,23 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
28587
28587
|
function M(P) {
|
28588
28588
|
return function() {
|
28589
28589
|
var m = P._readableState;
|
28590
|
-
X("pipeOnDrain", m.awaitDrain), m.awaitDrain && m.awaitDrain--, m.awaitDrain === 0 && ge(P, "data") && (m.flowing = !0,
|
28590
|
+
X("pipeOnDrain", m.awaitDrain), m.awaitDrain && m.awaitDrain--, m.awaitDrain === 0 && ge(P, "data") && (m.flowing = !0, F(P));
|
28591
28591
|
};
|
28592
28592
|
}
|
28593
|
-
function
|
28593
|
+
function R(P) {
|
28594
28594
|
var m = P._readableState;
|
28595
28595
|
m.readableListening = 0 < P.listenerCount("readable"), m.resumeScheduled && !m.paused ? m.flowing = !0 : 0 < P.listenerCount("data") && P.resume();
|
28596
28596
|
}
|
28597
|
-
function
|
28597
|
+
function O(P) {
|
28598
28598
|
X("readable nexttick read 0"), P.read(0);
|
28599
28599
|
}
|
28600
28600
|
function D(P, m) {
|
28601
28601
|
m.resumeScheduled || (m.resumeScheduled = !0, a.nextTick(L, P, m));
|
28602
28602
|
}
|
28603
28603
|
function L(P, m) {
|
28604
|
-
X("resume", m.reading), m.reading || P.read(0), m.resumeScheduled = !1, P.emit("resume"),
|
28604
|
+
X("resume", m.reading), m.reading || P.read(0), m.resumeScheduled = !1, P.emit("resume"), F(P), m.flowing && !m.reading && P.read(0);
|
28605
28605
|
}
|
28606
|
-
function
|
28606
|
+
function F(P) {
|
28607
28607
|
var m = P._readableState;
|
28608
28608
|
for (X("flow", m.flowing); m.flowing && P.read() !== null; ) ;
|
28609
28609
|
}
|
@@ -28729,13 +28729,13 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
28729
28729
|
return q === -1 ? this : (m.pipes.splice(q, 1), m.pipesCount -= 1, m.pipesCount === 1 && (m.pipes = m.pipes[0]), P.emit("unpipe", this, x), this);
|
28730
28730
|
}, h.prototype.on = function(P, m) {
|
28731
28731
|
var x = ke.prototype.on.call(this, P, m), N = this._readableState;
|
28732
|
-
return P === "data" ? (N.readableListening = 0 < this.listenerCount("readable"), N.flowing !== !1 && this.resume()) : P == "readable" && !N.endEmitted && !N.readableListening && (N.readableListening = N.needReadable = !0, N.flowing = !1, N.emittedReadable = !1, X("on readable", N.length, N.reading), N.length ? w(this) : !N.reading && a.nextTick(
|
28732
|
+
return P === "data" ? (N.readableListening = 0 < this.listenerCount("readable"), N.flowing !== !1 && this.resume()) : P == "readable" && !N.endEmitted && !N.readableListening && (N.readableListening = N.needReadable = !0, N.flowing = !1, N.emittedReadable = !1, X("on readable", N.length, N.reading), N.length ? w(this) : !N.reading && a.nextTick(O, this)), x;
|
28733
28733
|
}, h.prototype.addListener = h.prototype.on, h.prototype.removeListener = function(P, m) {
|
28734
28734
|
var x = ke.prototype.removeListener.call(this, P, m);
|
28735
|
-
return P === "readable" && a.nextTick(
|
28735
|
+
return P === "readable" && a.nextTick(R, this), x;
|
28736
28736
|
}, h.prototype.removeAllListeners = function(P) {
|
28737
28737
|
var m = ke.prototype.removeAllListeners.apply(this, arguments);
|
28738
|
-
return (P === "readable" || P === void 0) && a.nextTick(
|
28738
|
+
return (P === "readable" || P === void 0) && a.nextTick(R, this), m;
|
28739
28739
|
}, h.prototype.resume = function() {
|
28740
28740
|
var P = this._readableState;
|
28741
28741
|
return P.flowing || (X("resume"), P.flowing = !P.readableListening, D(this, P)), P.paused = !1, this;
|
@@ -28883,7 +28883,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
28883
28883
|
K.writelen = ce, K.writecb = x, K.writing = !0, K.sync = !0, K.destroyed ? K.onwrite(new Ze("write")) : te ? U._writev(P, K.onwrite) : U._write(P, m, K.onwrite), K.sync = !1;
|
28884
28884
|
}
|
28885
28885
|
function w(U, K, te, ce, P) {
|
28886
|
-
--K.pendingcb, te ? (a.nextTick(P, ce), a.nextTick(
|
28886
|
+
--K.pendingcb, te ? (a.nextTick(P, ce), a.nextTick(F, U, K), U._writableState.errorEmitted = !0, be(U, ce)) : (P(ce), U._writableState.errorEmitted = !0, be(U, ce), F(U, K));
|
28887
28887
|
}
|
28888
28888
|
function E(U) {
|
28889
28889
|
U.writing = !1, U.writecb = null, U.length -= U.writelen, U.writelen = 0;
|
@@ -28893,17 +28893,17 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
28893
28893
|
if (typeof P != "function") throw new He();
|
28894
28894
|
if (E(te), K) w(U, te, ce, K, P);
|
28895
28895
|
else {
|
28896
|
-
var m =
|
28897
|
-
m || te.corked || te.bufferProcessing || !te.bufferedRequest ||
|
28896
|
+
var m = O(te) || U.destroyed;
|
28897
|
+
m || te.corked || te.bufferProcessing || !te.bufferedRequest || R(U, te), ce ? a.nextTick(S, U, te, m, P) : S(U, te, m, P);
|
28898
28898
|
}
|
28899
28899
|
}
|
28900
28900
|
function S(U, K, te, ce) {
|
28901
|
-
te || M(U, K), K.pendingcb--, ce(),
|
28901
|
+
te || M(U, K), K.pendingcb--, ce(), F(U, K);
|
28902
28902
|
}
|
28903
28903
|
function M(U, K) {
|
28904
28904
|
K.length === 0 && K.needDrain && (K.needDrain = !1, U.emit("drain"));
|
28905
28905
|
}
|
28906
|
-
function
|
28906
|
+
function R(U, K) {
|
28907
28907
|
K.bufferProcessing = !0;
|
28908
28908
|
var te = K.bufferedRequest;
|
28909
28909
|
if (U._writev && te && te.next) {
|
@@ -28920,19 +28920,19 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
28920
28920
|
}
|
28921
28921
|
K.bufferedRequest = te, K.bufferProcessing = !1;
|
28922
28922
|
}
|
28923
|
-
function
|
28923
|
+
function O(U) {
|
28924
28924
|
return U.ending && U.length === 0 && U.bufferedRequest === null && !U.finished && !U.writing;
|
28925
28925
|
}
|
28926
28926
|
function D(U, K) {
|
28927
28927
|
U._final(function(te) {
|
28928
|
-
K.pendingcb--, te && be(U, te), K.prefinished = !0, U.emit("prefinish"),
|
28928
|
+
K.pendingcb--, te && be(U, te), K.prefinished = !0, U.emit("prefinish"), F(U, K);
|
28929
28929
|
});
|
28930
28930
|
}
|
28931
28931
|
function L(U, K) {
|
28932
28932
|
K.prefinished || K.finalCalled || (typeof U._final != "function" || K.destroyed ? (K.prefinished = !0, U.emit("prefinish")) : (K.pendingcb++, K.finalCalled = !0, a.nextTick(D, U, K)));
|
28933
28933
|
}
|
28934
|
-
function
|
28935
|
-
var te =
|
28934
|
+
function F(U, K) {
|
28935
|
+
var te = O(K);
|
28936
28936
|
if (te && (L(U, K), K.pendingcb === 0 && (K.finished = !0, U.emit("finish"), K.autoDestroy))) {
|
28937
28937
|
var ce = U._readableState;
|
28938
28938
|
(!ce || ce.autoDestroy && ce.endEmitted) && U.destroy();
|
@@ -28940,7 +28940,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
28940
28940
|
return te;
|
28941
28941
|
}
|
28942
28942
|
function G(U, K, te) {
|
28943
|
-
K.ending = !0,
|
28943
|
+
K.ending = !0, F(U, K), te && (K.finished ? a.nextTick(te) : U.once("finish", te)), K.ended = !0, U.writable = !1;
|
28944
28944
|
}
|
28945
28945
|
function _(U, K, te) {
|
28946
28946
|
var ce = U.entry;
|
@@ -28980,7 +28980,7 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
28980
28980
|
this._writableState.corked++;
|
28981
28981
|
}, p.prototype.uncork = function() {
|
28982
28982
|
var U = this._writableState;
|
28983
|
-
U.corked && (U.corked--, !U.writing && !U.corked && !U.bufferProcessing && U.bufferedRequest &&
|
28983
|
+
U.corked && (U.corked--, !U.writing && !U.corked && !U.bufferProcessing && U.bufferedRequest && R(this, U));
|
28984
28984
|
}, p.prototype.setDefaultEncoding = function(U) {
|
28985
28985
|
if (typeof U == "string" && (U = U.toLowerCase()), !(-1 < ["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((U + "").toLowerCase()))) throw new ae(U);
|
28986
28986
|
return this._writableState.defaultEncoding = U, this;
|
@@ -29007,26 +29007,26 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
29007
29007
|
}, { "../errors": 15, "./_stream_duplex": 16, "./internal/streams/destroy": 23, "./internal/streams/state": 27, "./internal/streams/stream": 28, _process: 12, buffer: 3, inherits: 10, "util-deprecate": 32 }], 21: [function(i, o) {
|
29008
29008
|
(function(a) {
|
29009
29009
|
(function() {
|
29010
|
-
function l(M,
|
29011
|
-
return
|
29010
|
+
function l(M, R, O) {
|
29011
|
+
return R in M ? Object.defineProperty(M, R, { value: O, enumerable: !0, configurable: !0, writable: !0 }) : M[R] = O, M;
|
29012
29012
|
}
|
29013
|
-
function c(M,
|
29014
|
-
return { value: M, done:
|
29013
|
+
function c(M, R) {
|
29014
|
+
return { value: M, done: R };
|
29015
29015
|
}
|
29016
29016
|
function u(M) {
|
29017
|
-
var
|
29018
|
-
if (
|
29019
|
-
var
|
29020
|
-
|
29017
|
+
var R = M[g];
|
29018
|
+
if (R !== null) {
|
29019
|
+
var O = M[E].read();
|
29020
|
+
O !== null && (M[v] = null, M[g] = null, M[y] = null, R(c(O, !1)));
|
29021
29021
|
}
|
29022
29022
|
}
|
29023
29023
|
function f(M) {
|
29024
29024
|
a.nextTick(u, M);
|
29025
29025
|
}
|
29026
|
-
function d(M,
|
29027
|
-
return function(
|
29026
|
+
function d(M, R) {
|
29027
|
+
return function(O, D) {
|
29028
29028
|
M.then(function() {
|
29029
|
-
return
|
29029
|
+
return R[A] ? void O(c(void 0, !0)) : void R[w](O, D);
|
29030
29030
|
}, D);
|
29031
29031
|
};
|
29032
29032
|
}
|
@@ -29034,45 +29034,45 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
29034
29034
|
}), S = Object.setPrototypeOf((h = { get stream() {
|
29035
29035
|
return this[E];
|
29036
29036
|
}, next: function() {
|
29037
|
-
var M = this,
|
29038
|
-
if (
|
29037
|
+
var M = this, R = this[b];
|
29038
|
+
if (R !== null) return Promise.reject(R);
|
29039
29039
|
if (this[A]) return Promise.resolve(c(void 0, !0));
|
29040
|
-
if (this[E].destroyed) return new Promise(function(
|
29040
|
+
if (this[E].destroyed) return new Promise(function(F, G) {
|
29041
29041
|
a.nextTick(function() {
|
29042
|
-
M[b] ? G(M[b]) :
|
29042
|
+
M[b] ? G(M[b]) : F(c(void 0, !0));
|
29043
29043
|
});
|
29044
29044
|
});
|
29045
|
-
var
|
29046
|
-
if (D)
|
29045
|
+
var O, D = this[v];
|
29046
|
+
if (D) O = new Promise(d(D, this));
|
29047
29047
|
else {
|
29048
29048
|
var L = this[E].read();
|
29049
29049
|
if (L !== null) return Promise.resolve(c(L, !1));
|
29050
|
-
|
29050
|
+
O = new Promise(this[w]);
|
29051
29051
|
}
|
29052
|
-
return this[v] =
|
29052
|
+
return this[v] = O, O;
|
29053
29053
|
} }, l(h, Symbol.asyncIterator, function() {
|
29054
29054
|
return this;
|
29055
29055
|
}), l(h, "return", function() {
|
29056
29056
|
var M = this;
|
29057
|
-
return new Promise(function(
|
29057
|
+
return new Promise(function(R, O) {
|
29058
29058
|
M[E].destroy(null, function(D) {
|
29059
|
-
return D ? void
|
29059
|
+
return D ? void O(D) : void R(c(void 0, !0));
|
29060
29060
|
});
|
29061
29061
|
});
|
29062
29062
|
}), h), k);
|
29063
29063
|
o.exports = function(M) {
|
29064
|
-
var
|
29065
|
-
var
|
29066
|
-
|
29067
|
-
}, writable: !0 }),
|
29068
|
-
return
|
29064
|
+
var R, O = Object.create(S, (R = {}, l(R, E, { value: M, writable: !0 }), l(R, g, { value: null, writable: !0 }), l(R, y, { value: null, writable: !0 }), l(R, b, { value: null, writable: !0 }), l(R, A, { value: M._readableState.endEmitted, writable: !0 }), l(R, w, { value: function(D, L) {
|
29065
|
+
var F = O[E].read();
|
29066
|
+
F ? (O[v] = null, O[g] = null, O[y] = null, D(c(F, !1))) : (O[g] = D, O[y] = L);
|
29067
|
+
}, writable: !0 }), R));
|
29068
|
+
return O[v] = null, p(M, function(D) {
|
29069
29069
|
if (D && D.code !== "ERR_STREAM_PREMATURE_CLOSE") {
|
29070
|
-
var L =
|
29071
|
-
return L !== null && (
|
29070
|
+
var L = O[y];
|
29071
|
+
return L !== null && (O[v] = null, O[g] = null, O[y] = null, L(D)), void (O[b] = D);
|
29072
29072
|
}
|
29073
|
-
var
|
29074
|
-
|
29075
|
-
}), M.on("readable", f.bind(null,
|
29073
|
+
var F = O[g];
|
29074
|
+
F !== null && (O[v] = null, O[g] = null, O[y] = null, F(c(void 0, !0))), O[A] = !0;
|
29075
|
+
}), M.on("readable", f.bind(null, O)), O;
|
29076
29076
|
};
|
29077
29077
|
}).call(this);
|
29078
29078
|
}).call(this, i("_process"));
|
@@ -29144,9 +29144,9 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
29144
29144
|
} }, { key: "_getString", value: function(w) {
|
29145
29145
|
var E = this.head, k = 1, S = E.data;
|
29146
29146
|
for (w -= S.length; E = E.next; ) {
|
29147
|
-
var M = E.data,
|
29148
|
-
if (S +=
|
29149
|
-
|
29147
|
+
var M = E.data, R = w > M.length ? M.length : w;
|
29148
|
+
if (S += R === M.length ? M : M.slice(0, w), w -= R, w === 0) {
|
29149
|
+
R === M.length ? (++k, this.head = E.next ? E.next : this.tail = null) : (this.head = E, E.data = M.slice(R));
|
29150
29150
|
break;
|
29151
29151
|
}
|
29152
29152
|
++k;
|
@@ -29155,9 +29155,9 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
29155
29155
|
} }, { key: "_getBuffer", value: function(w) {
|
29156
29156
|
var E = g.allocUnsafe(w), k = this.head, S = 1;
|
29157
29157
|
for (k.data.copy(E), w -= k.data.length; k = k.next; ) {
|
29158
|
-
var M = k.data,
|
29159
|
-
if (M.copy(E, E.length - w, 0,
|
29160
|
-
|
29158
|
+
var M = k.data, R = w > M.length ? M.length : w;
|
29159
|
+
if (M.copy(E, E.length - w, 0, R), w -= R, w === 0) {
|
29160
|
+
R === M.length ? (++S, this.head = k.next ? k.next : this.tail = null) : (this.head = k, k.data = M.slice(R));
|
29161
29161
|
break;
|
29162
29162
|
}
|
29163
29163
|
++S;
|
@@ -29217,11 +29217,11 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
29217
29217
|
y = !1, A = !0, g || p.call(d);
|
29218
29218
|
}, w = d._readableState && d._readableState.endEmitted, E = function() {
|
29219
29219
|
g = !1, w = !0, y || p.call(d);
|
29220
|
-
}, k = function(
|
29221
|
-
p.call(d,
|
29220
|
+
}, k = function(R) {
|
29221
|
+
p.call(d, R);
|
29222
29222
|
}, S = function() {
|
29223
|
-
var
|
29224
|
-
return g && !w ? (d._readableState && d._readableState.ended || (
|
29223
|
+
var R;
|
29224
|
+
return g && !w ? (d._readableState && d._readableState.ended || (R = new f()), p.call(d, R)) : y && !A ? (d._writableState && d._writableState.ended || (R = new f()), p.call(d, R)) : void 0;
|
29225
29225
|
}, M = function() {
|
29226
29226
|
d.req.on("finish", v);
|
29227
29227
|
};
|
@@ -29275,10 +29275,10 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
29275
29275
|
for (var A = arguments.length, v = Array(A), w = 0; w < A; w++) v[w] = arguments[w];
|
29276
29276
|
var E = h(v);
|
29277
29277
|
if (Array.isArray(v[0]) && (v = v[0]), 2 > v.length) throw new y("streams");
|
29278
|
-
var k, S = v.map(function(M,
|
29279
|
-
var
|
29280
|
-
return u(M,
|
29281
|
-
k || (k = D), D && S.forEach(f),
|
29278
|
+
var k, S = v.map(function(M, R) {
|
29279
|
+
var O = R < v.length - 1;
|
29280
|
+
return u(M, O, 0 < R, function(D) {
|
29281
|
+
k || (k = D), D && S.forEach(f), O || (S.forEach(f), E(k));
|
29282
29282
|
});
|
29283
29283
|
});
|
29284
29284
|
return v.reduce(d);
|
@@ -29376,11 +29376,11 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
29376
29376
|
function f(S) {
|
29377
29377
|
return 127 >= S ? 0 : S >> 5 == 6 ? 2 : S >> 4 == 14 ? 3 : S >> 3 == 30 ? 4 : S >> 6 == 2 ? -1 : -2;
|
29378
29378
|
}
|
29379
|
-
function d(S, M,
|
29380
|
-
var
|
29381
|
-
if (
|
29382
|
-
var D = f(M[
|
29383
|
-
return 0 <= D ? (0 < D && (S.lastNeed = D - 1), D) : --
|
29379
|
+
function d(S, M, R) {
|
29380
|
+
var O = M.length - 1;
|
29381
|
+
if (O < R) return 0;
|
29382
|
+
var D = f(M[O]);
|
29383
|
+
return 0 <= D ? (0 < D && (S.lastNeed = D - 1), D) : --O < R || D === -2 ? 0 : (D = f(M[O]), 0 <= D ? (0 < D && (S.lastNeed = D - 2), D) : --O < R || D === -2 ? 0 : (D = f(M[O]), 0 <= D ? (0 < D && (D === 2 ? D = 0 : S.lastNeed = D - 3), D) : 0));
|
29384
29384
|
}
|
29385
29385
|
function h(S, M) {
|
29386
29386
|
if ((192 & M[0]) != 128) return S.lastNeed = 0, "�";
|
@@ -29390,31 +29390,31 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
29390
29390
|
}
|
29391
29391
|
}
|
29392
29392
|
function p(S) {
|
29393
|
-
var M = this.lastTotal - this.lastNeed,
|
29394
|
-
return
|
29393
|
+
var M = this.lastTotal - this.lastNeed, R = h(this, S);
|
29394
|
+
return R === void 0 ? this.lastNeed <= S.length ? (S.copy(this.lastChar, M, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal)) : (S.copy(this.lastChar, M, 0, S.length), void (this.lastNeed -= S.length)) : R;
|
29395
29395
|
}
|
29396
29396
|
function g(S, M) {
|
29397
29397
|
if ((S.length - M) % 2 == 0) {
|
29398
|
-
var
|
29399
|
-
if (
|
29400
|
-
var
|
29401
|
-
if (55296 <=
|
29398
|
+
var R = S.toString("utf16le", M);
|
29399
|
+
if (R) {
|
29400
|
+
var O = R.charCodeAt(R.length - 1);
|
29401
|
+
if (55296 <= O && 56319 >= O) return this.lastNeed = 2, this.lastTotal = 4, this.lastChar[0] = S[S.length - 2], this.lastChar[1] = S[S.length - 1], R.slice(0, -1);
|
29402
29402
|
}
|
29403
|
-
return
|
29403
|
+
return R;
|
29404
29404
|
}
|
29405
29405
|
return this.lastNeed = 1, this.lastTotal = 2, this.lastChar[0] = S[S.length - 1], S.toString("utf16le", M, S.length - 1);
|
29406
29406
|
}
|
29407
29407
|
function y(S) {
|
29408
29408
|
var M = S && S.length ? this.write(S) : "";
|
29409
29409
|
if (this.lastNeed) {
|
29410
|
-
var
|
29411
|
-
return M + this.lastChar.toString("utf16le", 0,
|
29410
|
+
var R = this.lastTotal - this.lastNeed;
|
29411
|
+
return M + this.lastChar.toString("utf16le", 0, R);
|
29412
29412
|
}
|
29413
29413
|
return M;
|
29414
29414
|
}
|
29415
29415
|
function b(S, M) {
|
29416
|
-
var
|
29417
|
-
return
|
29416
|
+
var R = (S.length - M) % 3;
|
29417
|
+
return R == 0 ? S.toString("base64", M) : (this.lastNeed = 3 - R, this.lastTotal = 3, R == 1 ? this.lastChar[0] = S[S.length - 1] : (this.lastChar[0] = S[S.length - 2], this.lastChar[1] = S[S.length - 1]), S.toString("base64", M, S.length - R));
|
29418
29418
|
}
|
29419
29419
|
function A(S) {
|
29420
29420
|
var M = S && S.length ? this.write(S) : "";
|
@@ -29446,21 +29446,21 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
29446
29446
|
};
|
29447
29447
|
a.StringDecoder = u, u.prototype.write = function(S) {
|
29448
29448
|
if (S.length === 0) return "";
|
29449
|
-
var M,
|
29449
|
+
var M, R;
|
29450
29450
|
if (this.lastNeed) {
|
29451
29451
|
if (M = this.fillLast(S), M === void 0) return "";
|
29452
|
-
|
29453
|
-
} else
|
29454
|
-
return
|
29452
|
+
R = this.lastNeed, this.lastNeed = 0;
|
29453
|
+
} else R = 0;
|
29454
|
+
return R < S.length ? M ? M + this.text(S, R) : this.text(S, R) : M || "";
|
29455
29455
|
}, u.prototype.end = function(S) {
|
29456
29456
|
var M = S && S.length ? this.write(S) : "";
|
29457
29457
|
return this.lastNeed ? M + "�" : M;
|
29458
29458
|
}, u.prototype.text = function(S, M) {
|
29459
|
-
var
|
29459
|
+
var R = d(this, S, M);
|
29460
29460
|
if (!this.lastNeed) return S.toString("utf8", M);
|
29461
|
-
this.lastTotal =
|
29462
|
-
var
|
29463
|
-
return S.copy(this.lastChar, 0,
|
29461
|
+
this.lastTotal = R;
|
29462
|
+
var O = S.length - (R - this.lastNeed);
|
29463
|
+
return S.copy(this.lastChar, 0, O), S.toString("utf8", M, O);
|
29464
29464
|
}, u.prototype.fillLast = function(S) {
|
29465
29465
|
return this.lastNeed <= S.length ? (S.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed), this.lastChar.toString(this.encoding, 0, this.lastTotal)) : (S.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, S.length), void (this.lastNeed -= S.length));
|
29466
29466
|
};
|
@@ -29771,8 +29771,8 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
29771
29771
|
const k = [];
|
29772
29772
|
E.result().forEach((S) => {
|
29773
29773
|
const M = {};
|
29774
|
-
S.names().forEach((
|
29775
|
-
M[
|
29774
|
+
S.names().forEach((R) => {
|
29775
|
+
M[R] = S.stat(R);
|
29776
29776
|
}), M.id = S.id, M.type = S.type, M.timestamp = S.timestamp, k.push(w(M));
|
29777
29777
|
}), v(null, k);
|
29778
29778
|
}, (E) => v(E)) : v(null, []);
|
@@ -29785,20 +29785,20 @@ Use Chrome, Firefox or Internet Explorer 11`);
|
|
29785
29785
|
if (this.destroyed) return;
|
29786
29786
|
w && (E = []);
|
29787
29787
|
const k = {}, S = {}, M = {};
|
29788
|
-
let
|
29788
|
+
let R = !1;
|
29789
29789
|
E.forEach((D) => {
|
29790
29790
|
(D.type === "remotecandidate" || D.type === "remote-candidate") && (k[D.id] = D), (D.type === "localcandidate" || D.type === "local-candidate") && (S[D.id] = D), (D.type === "candidatepair" || D.type === "candidate-pair") && (M[D.id] = D);
|
29791
29791
|
});
|
29792
|
-
const
|
29793
|
-
|
29792
|
+
const O = (D) => {
|
29793
|
+
R = !0;
|
29794
29794
|
let L = S[D.localCandidateId];
|
29795
29795
|
L && (L.ip || L.address) ? (this.localAddress = L.ip || L.address, this.localPort = +L.port) : L && L.ipAddress ? (this.localAddress = L.ipAddress, this.localPort = +L.portNumber) : typeof D.googLocalAddress == "string" && (L = D.googLocalAddress.split(":"), this.localAddress = L[0], this.localPort = +L[1]), this.localAddress && (this.localFamily = this.localAddress.includes(":") ? "IPv6" : "IPv4");
|
29796
|
-
let
|
29797
|
-
|
29796
|
+
let F = k[D.remoteCandidateId];
|
29797
|
+
F && (F.ip || F.address) ? (this.remoteAddress = F.ip || F.address, this.remotePort = +F.port) : F && F.ipAddress ? (this.remoteAddress = F.ipAddress, this.remotePort = +F.portNumber) : typeof D.googRemoteAddress == "string" && (F = D.googRemoteAddress.split(":"), this.remoteAddress = F[0], this.remotePort = +F[1]), this.remoteAddress && (this.remoteFamily = this.remoteAddress.includes(":") ? "IPv6" : "IPv4"), this._debug("connect local: %s:%s remote: %s:%s", this.localAddress, this.localPort, this.remoteAddress, this.remotePort);
|
29798
29798
|
};
|
29799
29799
|
if (E.forEach((D) => {
|
29800
|
-
D.type === "transport" && D.selectedCandidatePairId &&
|
29801
|
-
}), !
|
29800
|
+
D.type === "transport" && D.selectedCandidatePairId && O(M[D.selectedCandidatePairId]), (D.type === "googCandidatePair" && D.googActiveConnection === "true" || (D.type === "candidatepair" || D.type === "candidate-pair") && D.selected) && O(D);
|
29801
|
+
}), !R && (!Object.keys(M).length || Object.keys(S).length)) return void setTimeout(v, 100);
|
29802
29802
|
if (this._connecting = !1, this._connected = !0, this._chunk) {
|
29803
29803
|
try {
|
29804
29804
|
this.send(this._chunk);
|
@@ -30859,7 +30859,7 @@ const fR = (n, e, t, r, s, i) => {
|
|
30859
30859
|
let e = "", t = n._start;
|
30860
30860
|
const r = {};
|
30861
30861
|
for (; t !== null; )
|
30862
|
-
t.deleted || (t.countable && t.content instanceof ds ? e += t.content.str : t.content instanceof
|
30862
|
+
t.deleted || (t.countable && t.content instanceof ds ? e += t.content.str : t.content instanceof Qt && (r[t.content.key] = null)), t = t.right;
|
30863
30863
|
return {
|
30864
30864
|
str: e,
|
30865
30865
|
nAttrs: r
|
@@ -33523,7 +33523,7 @@ function _V(n) {
|
|
33523
33523
|
Ye(w, e.numeric, E);
|
33524
33524
|
const k = Or(Oh), S = Or();
|
33525
33525
|
Ye(k, t, k), Ye(k, r, S), Ye(S, t, k), Ye(S, r, S), de(v, Ss, k), de(E, Ss, k);
|
33526
|
-
const M = de(l, io),
|
33526
|
+
const M = de(l, io), R = de(c, io), O = de(R, Ss), D = de(O, Ss);
|
33527
33527
|
Ye(l, e.domain, a), de(l, ks, A), de(l, Cs, b), Ye(c, e.domain, a), de(c, ks, A), de(c, Cs, b), Ye(M, e.domain, k), de(M, Ss, k), Ye(D, e.domain, k), Ye(D, t, k), de(D, Ss, k);
|
33528
33528
|
const L = [
|
33529
33529
|
[Af, Ef],
|
@@ -33543,8 +33543,8 @@ function _V(n) {
|
|
33543
33543
|
[vg, xg]
|
33544
33544
|
// <>
|
33545
33545
|
];
|
33546
|
-
for (let
|
33547
|
-
const [G, _] = L[
|
33546
|
+
for (let F = 0; F < L.length; F++) {
|
33547
|
+
const [G, _] = L[F], W = de(k, G);
|
33548
33548
|
de(S, G, W), de(W, _, k);
|
33549
33549
|
const Q = Or(Oh);
|
33550
33550
|
Ye(W, t, Q);
|
@@ -34116,10 +34116,10 @@ function r9({ pluginKey: n = n9, editor: e, char: t = "@", allowSpaces: r = !1,
|
|
34116
34116
|
return {
|
34117
34117
|
update: async (y, b) => {
|
34118
34118
|
var A, v, w, E, k, S, M;
|
34119
|
-
const
|
34119
|
+
const R = (A = this.key) === null || A === void 0 ? void 0 : A.getState(b), O = (v = this.key) === null || v === void 0 ? void 0 : v.getState(y.state), D = R.active && O.active && R.range.from !== O.range.from, L = !R.active && O.active, F = R.active && !O.active, G = !L && !F && R.query !== O.query, _ = L || D, W = G && !D, Q = F || D;
|
34120
34120
|
if (!_ && !W && !Q)
|
34121
34121
|
return;
|
34122
|
-
const ne = Q && !_ ?
|
34122
|
+
const ne = Q && !_ ? R : O, X = y.dom.querySelector(`[data-decoration-id="${ne.decorationId}"]`);
|
34123
34123
|
h = {
|
34124
34124
|
editor: e,
|
34125
34125
|
range: ne.range,
|
@@ -34166,20 +34166,20 @@ function r9({ pluginKey: n = n9, editor: e, char: t = "@", allowSpaces: r = !1,
|
|
34166
34166
|
},
|
34167
34167
|
// Apply changes to the plugin state from a view transaction.
|
34168
34168
|
apply(y, b, A, v) {
|
34169
|
-
const { isEditable: w } = e, { composing: E } = e.view, { selection: k } = y, { empty: S, from: M } = k,
|
34170
|
-
if (
|
34171
|
-
(M < b.range.from || M > b.range.to) && !E && !b.composing && (
|
34172
|
-
const
|
34169
|
+
const { isEditable: w } = e, { composing: E } = e.view, { selection: k } = y, { empty: S, from: M } = k, R = { ...b };
|
34170
|
+
if (R.composing = E, w && (S || e.view.composing)) {
|
34171
|
+
(M < b.range.from || M > b.range.to) && !E && !b.composing && (R.active = !1);
|
34172
|
+
const O = d({
|
34173
34173
|
char: t,
|
34174
34174
|
allowSpaces: r,
|
34175
34175
|
allowedPrefixes: s,
|
34176
34176
|
startOfLine: i,
|
34177
34177
|
$position: k.$from
|
34178
34178
|
}), D = `id_${Math.floor(Math.random() * 4294967295)}`;
|
34179
|
-
|
34179
|
+
O && f({ editor: e, state: v, range: O.range }) ? (R.active = !0, R.decorationId = b.decorationId ? b.decorationId : D, R.range = O.range, R.query = O.query, R.text = O.text) : R.active = !1;
|
34180
34180
|
} else
|
34181
|
-
|
34182
|
-
return
|
34181
|
+
R.active = !1;
|
34182
|
+
return R.active || (R.decorationId = null, R.range = { from: 0, to: 0 }, R.query = null, R.text = null), R;
|
34183
34183
|
}
|
34184
34184
|
},
|
34185
34185
|
props: {
|
@@ -34423,7 +34423,7 @@ const s9 = Nt.create({
|
|
34423
34423
|
}, [n, r, s, i]), dt(() => {
|
34424
34424
|
s(0);
|
34425
34425
|
}, [n]);
|
34426
|
-
const o =
|
34426
|
+
const o = Kt(null);
|
34427
34427
|
return dm(() => {
|
34428
34428
|
const a = o == null ? void 0 : o.current, l = a == null ? void 0 : a.children[r];
|
34429
34429
|
l && a && o9(a, l);
|
@@ -34592,14 +34592,14 @@ const RR = ({
|
|
34592
34592
|
updateAttributes: e,
|
34593
34593
|
deleteNode: t
|
34594
34594
|
}) => {
|
34595
|
-
const r = _m(), [s, i] = st(), [o, a] = st(0), [l, c] = st(0), [u, f] = st({}), d =
|
34596
|
-
const
|
34595
|
+
const r = _m(), [s, i] = st(), [o, a] = st(0), [l, c] = st(0), [u, f] = st({}), d = Kt(null), [h, p] = st(!1), g = () => {
|
34596
|
+
const F = {};
|
34597
34597
|
vk.forEach(({ tooltip: G, isActive: _ }) => {
|
34598
|
-
|
34599
|
-
}), f(
|
34598
|
+
F[G] = !!(_ != null && _(n.attrs));
|
34599
|
+
}), f(F);
|
34600
34600
|
}, y = () => {
|
34601
|
-
const
|
34602
|
-
if (
|
34601
|
+
const F = document.querySelector(".ProseMirror");
|
34602
|
+
if (F && c(F == null ? void 0 : F.clientWidth), !!d.current) {
|
34603
34603
|
if (s === "video") {
|
34604
34604
|
const G = d.current;
|
34605
34605
|
G.addEventListener("loadeddata", function() {
|
@@ -34618,21 +34618,21 @@ const RR = ({
|
|
34618
34618
|
};
|
34619
34619
|
setTimeout(() => g(), 200);
|
34620
34620
|
}
|
34621
|
-
}, b = (
|
34622
|
-
Ll =
|
34621
|
+
}, b = (F) => {
|
34622
|
+
Ll = F;
|
34623
34623
|
};
|
34624
34624
|
dt(() => {
|
34625
34625
|
y();
|
34626
34626
|
}, []);
|
34627
|
-
const A = ({ width:
|
34628
|
-
setTimeout(() => S(
|
34629
|
-
}, w = (
|
34630
|
-
Ll =
|
34627
|
+
const A = ({ width: F, height: G }) => F < 200 || G < 200, v = (F) => {
|
34628
|
+
setTimeout(() => S(F));
|
34629
|
+
}, w = (F) => {
|
34630
|
+
Ll = F.clientX, setTimeout(() => {
|
34631
34631
|
document.addEventListener("mousemove", v), document.addEventListener("mouseup", E);
|
34632
34632
|
}), p(!0);
|
34633
34633
|
}, E = () => {
|
34634
34634
|
Ll = -1, document.removeEventListener("mousemove", v), document.removeEventListener("mouseup", E), p(!1);
|
34635
|
-
}, k = (
|
34635
|
+
}, k = (F, G) => {
|
34636
34636
|
var Q, ne;
|
34637
34637
|
if (!d.current) {
|
34638
34638
|
console.error("Media ref is undefined|null", {
|
@@ -34647,21 +34647,21 @@ const RR = ({
|
|
34647
34647
|
width: -1,
|
34648
34648
|
height: -1
|
34649
34649
|
};
|
34650
|
-
|
34651
|
-
}, S = (
|
34650
|
+
F === "left" ? W.width = _.width - Math.abs(G) : (typeof _.width == "string" && (_.width = Number(_.width)), W.width = _.width + Math.abs(G)), W.width > l && (W.width = l), s === "iframe" ? W.height = W.width / (16 / 9) : W.height = W.width / o, !A(W) && e(W);
|
34651
|
+
}, S = (F) => {
|
34652
34652
|
if (Ll === -1) return;
|
34653
|
-
const { clientX: G } =
|
34653
|
+
const { clientX: G } = F, _ = Ll - G;
|
34654
34654
|
if (_ === 0) return;
|
34655
34655
|
const W = _ > 0 ? "left" : "right";
|
34656
34656
|
setTimeout(() => {
|
34657
34657
|
k(W, Math.abs(_)), Ll = G;
|
34658
34658
|
});
|
34659
|
-
}, [M,
|
34659
|
+
}, [M, R] = st(), [O, D] = st();
|
34660
34660
|
dt(() => {
|
34661
|
-
i(n.attrs["media-type"]), g(),
|
34661
|
+
i(n.attrs["media-type"]), g(), R(n.attrs.dataFloat), D(n.attrs.dataAlign);
|
34662
34662
|
}, [n.attrs]);
|
34663
|
-
const L = (
|
34664
|
-
switch (
|
34663
|
+
const L = (F) => {
|
34664
|
+
switch (F) {
|
34665
34665
|
case "AlignLeft":
|
34666
34666
|
return /* @__PURE__ */ C.jsx(Hd, { size: 16 });
|
34667
34667
|
case "AlignCenter":
|
@@ -34681,7 +34681,7 @@ const RR = ({
|
|
34681
34681
|
className: pe(
|
34682
34682
|
"media-node-view not-prose transition-all ease-in-out w-full",
|
34683
34683
|
M && `f-${n.attrs.dataFloat}`,
|
34684
|
-
|
34684
|
+
O && `justify-${n.attrs.dataAlign}`
|
34685
34685
|
),
|
34686
34686
|
children: /* @__PURE__ */ C.jsxs("div", { className: "w-fit flex relative group transition-all ease-in-out", children: [
|
34687
34687
|
s === "img" && /* @__PURE__ */ C.jsx(
|
@@ -34725,24 +34725,24 @@ const RR = ({
|
|
34725
34725
|
{
|
34726
34726
|
className: "horizontal-resize-handle group-hover:bg-black group-hover:border-2 group-hover:border-white/80",
|
34727
34727
|
title: "Resize",
|
34728
|
-
onClick: ({ clientX:
|
34728
|
+
onClick: ({ clientX: F }) => b(F),
|
34729
34729
|
onMouseDown: w,
|
34730
34730
|
onMouseUp: E
|
34731
34731
|
}
|
34732
34732
|
),
|
34733
|
-
/* @__PURE__ */ C.jsx("section", { className: "media-control-buttons opacity-0 group-hover:opacity-100 transition-opacity duration-200 flex", children: vk.map((
|
34733
|
+
/* @__PURE__ */ C.jsx("section", { className: "media-control-buttons opacity-0 group-hover:opacity-100 transition-opacity duration-200 flex", children: vk.map((F, G) => /* @__PURE__ */ C.jsx("div", { className: "tooltip", "data-tip": F.tooltip, children: /* @__PURE__ */ C.jsx(
|
34734
34734
|
"button",
|
34735
34735
|
{
|
34736
34736
|
type: "button",
|
34737
34737
|
className: pe(
|
34738
34738
|
"btn rounded-none h-8 px-2 py-1 transition",
|
34739
|
-
u[
|
34739
|
+
u[F.tooltip] && "active"
|
34740
34740
|
),
|
34741
34741
|
onClick: () => {
|
34742
34742
|
var _;
|
34743
|
-
return
|
34743
|
+
return F.tooltip === "Delete" ? t() : (_ = F.action) == null ? void 0 : _.call(F, e);
|
34744
34744
|
},
|
34745
|
-
children:
|
34745
|
+
children: F.icon && L(F.icon)
|
34746
34746
|
}
|
34747
34747
|
) }, G)) })
|
34748
34748
|
] })
|
@@ -35405,7 +35405,7 @@ const D9 = (n) => ({
|
|
35405
35405
|
}, h = F1(s), p = B1(h), g = await o.getDimensions(c), y = h === "y", b = y ? "top" : "left", A = y ? "bottom" : "right", v = y ? "clientHeight" : "clientWidth", w = i.reference[p] + i.reference[h] - d[h] - i.floating[p], E = d[h] - i.reference[h], k = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(c));
|
35406
35406
|
let S = k ? k[v] : 0;
|
35407
35407
|
(!S || !await (o.isElement == null ? void 0 : o.isElement(k))) && (S = a.floating[v] || i.floating[p]);
|
35408
|
-
const M = w / 2 - E / 2,
|
35408
|
+
const M = w / 2 - E / 2, R = S / 2 - g[p] / 2 - 1, O = Vs(f[b], R), D = Vs(f[A], R), L = O, F = S - g[p] - D, G = S / 2 - g[p] / 2 + M, _ = Yb(L, G, F), W = !l.arrow && Fu(s) != null && G !== _ && i.reference[p] / 2 - (G < L ? O : D) - g[p] / 2 < 0, Q = W ? G < L ? G - L : G - F : 0;
|
35409
35409
|
return {
|
35410
35410
|
[h]: d[h] + Q,
|
35411
35411
|
data: {
|
@@ -35454,19 +35454,19 @@ const D9 = (n) => ({
|
|
35454
35454
|
placement: s,
|
35455
35455
|
overflows: S
|
35456
35456
|
}], !S.every((L) => L <= 0)) {
|
35457
|
-
var
|
35458
|
-
const L = (((
|
35459
|
-
if (
|
35457
|
+
var R, O;
|
35458
|
+
const L = (((R = i.flip) == null ? void 0 : R.index) || 0) + 1, F = E[L];
|
35459
|
+
if (F)
|
35460
35460
|
return {
|
35461
35461
|
data: {
|
35462
35462
|
index: L,
|
35463
35463
|
overflows: M
|
35464
35464
|
},
|
35465
35465
|
reset: {
|
35466
|
-
placement:
|
35466
|
+
placement: F
|
35467
35467
|
}
|
35468
35468
|
};
|
35469
|
-
let G = (
|
35469
|
+
let G = (O = M.filter((_) => _.overflows[0] <= 0).sort((_, W) => _.overflows[1] - W.overflows[1])[0]) == null ? void 0 : O.placement;
|
35470
35470
|
if (!G)
|
35471
35471
|
switch (h) {
|
35472
35472
|
case "bestFit": {
|
@@ -35710,8 +35710,8 @@ const _9 = function(n) {
|
|
35710
35710
|
const y = h - l.top - l.bottom, b = d - l.left - l.right, A = Vs(h - l[p], y), v = Vs(d - l[g], b), w = !e.middlewareData.shift;
|
35711
35711
|
let E = A, k = v;
|
35712
35712
|
if (f ? k = u || w ? Vs(v, b) : b : E = u || w ? Vs(A, y) : y, w && !u) {
|
35713
|
-
const M = mr(l.left, 0),
|
35714
|
-
f ? k = d - 2 * (M !== 0 ||
|
35713
|
+
const M = mr(l.left, 0), R = mr(l.right, 0), O = mr(l.top, 0), D = mr(l.bottom, 0);
|
35714
|
+
f ? k = d - 2 * (M !== 0 || R !== 0 ? M + R : mr(l.left, l.right)) : E = h - 2 * (O !== 0 || D !== 0 ? O + D : mr(l.top, l.bottom));
|
35715
35715
|
}
|
35716
35716
|
await o({
|
35717
35717
|
...e,
|
@@ -36253,7 +36253,7 @@ function d$(n) {
|
|
36253
36253
|
Q !== k.current && (k.current = Q, g(Q));
|
36254
36254
|
}, []), v = H.useCallback((Q) => {
|
36255
36255
|
Q !== S.current && (S.current = Q, b(Q));
|
36256
|
-
}, []), w = i || p, E = o || y, k = H.useRef(null), S = H.useRef(null), M = H.useRef(u),
|
36256
|
+
}, []), w = i || p, E = o || y, k = H.useRef(null), S = H.useRef(null), M = H.useRef(u), R = l != null, O = Ok(l), D = Ok(s), L = H.useCallback(() => {
|
36257
36257
|
if (!k.current || !S.current)
|
36258
36258
|
return;
|
36259
36259
|
const Q = {
|
@@ -36266,7 +36266,7 @@ function d$(n) {
|
|
36266
36266
|
...ne,
|
36267
36267
|
isPositioned: !0
|
36268
36268
|
};
|
36269
|
-
|
36269
|
+
F.current && !Ug(M.current, X) && (M.current = X, Hw.flushSync(() => {
|
36270
36270
|
f(X);
|
36271
36271
|
}));
|
36272
36272
|
});
|
@@ -36277,16 +36277,16 @@ function d$(n) {
|
|
36277
36277
|
isPositioned: !1
|
36278
36278
|
})));
|
36279
36279
|
}, [c]);
|
36280
|
-
const
|
36281
|
-
fp(() => (
|
36282
|
-
|
36280
|
+
const F = H.useRef(!1);
|
36281
|
+
fp(() => (F.current = !0, () => {
|
36282
|
+
F.current = !1;
|
36283
36283
|
}), []), fp(() => {
|
36284
36284
|
if (w && (k.current = w), E && (S.current = E), w && E) {
|
36285
|
-
if (
|
36286
|
-
return
|
36285
|
+
if (O.current)
|
36286
|
+
return O.current(w, E, L);
|
36287
36287
|
L();
|
36288
36288
|
}
|
36289
|
-
}, [w, E, L,
|
36289
|
+
}, [w, E, L, O, R]);
|
36290
36290
|
const G = H.useMemo(() => ({
|
36291
36291
|
reference: k,
|
36292
36292
|
floating: S,
|
@@ -36438,15 +36438,15 @@ var $1 = "PopperContent", [C$, S$] = HR($1), KR = H.forwardRef(
|
|
36438
36438
|
updatePositionStrategy: h = "optimized",
|
36439
36439
|
onPlaced: p,
|
36440
36440
|
...g
|
36441
|
-
} = n, y = VR($1, t), [b, A] = H.useState(null), v = Kr(e, (be) => A(be)), [w, E] = H.useState(null), k = E$(w), S = (k == null ? void 0 : k.width) ?? 0, M = (k == null ? void 0 : k.height) ?? 0,
|
36442
|
-
padding:
|
36441
|
+
} = n, y = VR($1, t), [b, A] = H.useState(null), v = Kr(e, (be) => A(be)), [w, E] = H.useState(null), k = E$(w), S = (k == null ? void 0 : k.width) ?? 0, M = (k == null ? void 0 : k.height) ?? 0, R = r + (i !== "center" ? "-" + i : ""), O = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, D = Array.isArray(c) ? c : [c], L = D.length > 0, F = {
|
36442
|
+
padding: O,
|
36443
36443
|
boundary: D.filter(N$),
|
36444
36444
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
36445
36445
|
altBoundary: L
|
36446
36446
|
}, { refs: G, floatingStyles: _, placement: W, isPositioned: Q, middlewareData: ne } = d$({
|
36447
36447
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
36448
36448
|
strategy: "fixed",
|
36449
|
-
placement:
|
36449
|
+
placement: R,
|
36450
36450
|
whileElementsMounted: (...be) => s$(...be, {
|
36451
36451
|
animationFrame: h === "always"
|
36452
36452
|
}),
|
@@ -36459,11 +36459,11 @@ var $1 = "PopperContent", [C$, S$] = HR($1), KR = H.forwardRef(
|
|
36459
36459
|
mainAxis: !0,
|
36460
36460
|
crossAxis: !1,
|
36461
36461
|
limiter: f === "partial" ? m$() : void 0,
|
36462
|
-
...
|
36462
|
+
...F
|
36463
36463
|
}),
|
36464
|
-
l && y$({ ...
|
36464
|
+
l && y$({ ...F }),
|
36465
36465
|
b$({
|
36466
|
-
...
|
36466
|
+
...F,
|
36467
36467
|
apply: ({ elements: be, rects: Le, availableWidth: U, availableHeight: K }) => {
|
36468
36468
|
const { width: te, height: ce } = Le.reference, P = be.floating.style;
|
36469
36469
|
P.setProperty("--radix-popper-available-width", `${U}px`), P.setProperty("--radix-popper-available-height", `${K}px`), P.setProperty("--radix-popper-anchor-width", `${te}px`), P.setProperty("--radix-popper-anchor-height", `${ce}px`);
|
@@ -36471,7 +36471,7 @@ var $1 = "PopperContent", [C$, S$] = HR($1), KR = H.forwardRef(
|
|
36471
36471
|
}),
|
36472
36472
|
w && v$({ element: w, padding: a }),
|
36473
36473
|
O$({ arrowWidth: S, arrowHeight: M }),
|
36474
|
-
d && w$({ strategy: "referenceHidden", ...
|
36474
|
+
d && w$({ strategy: "referenceHidden", ...F })
|
36475
36475
|
]
|
36476
36476
|
}), [X, ge] = QR(W), ke = jo(p);
|
36477
36477
|
nl(() => {
|
@@ -36854,30 +36854,30 @@ const Dh = ({
|
|
36854
36854
|
deleteNode: r
|
36855
36855
|
}) => {
|
36856
36856
|
const [s, i] = st(!1), o = $$(t, n, e()), a = _m(), l = ["https://twitter.com", "https://x.com"], c = Kl(() => {
|
36857
|
-
const { content:
|
36858
|
-
return
|
36857
|
+
const { content: R } = n.content;
|
36858
|
+
return R[0].type.name === "table";
|
36859
36859
|
}, [n.content]), u = Kl(() => {
|
36860
|
-
var
|
36861
|
-
const { content:
|
36862
|
-
return (
|
36860
|
+
var O;
|
36861
|
+
const { content: R } = n.content;
|
36862
|
+
return (O = R[0].content.content[0]) == null ? void 0 : O.text;
|
36863
36863
|
}, [n.content]), f = Kl(() => {
|
36864
|
-
var
|
36865
|
-
const { content:
|
36866
|
-
return (
|
36864
|
+
var O;
|
36865
|
+
const { content: R } = n.content;
|
36866
|
+
return (O = R[0].content.content[1]) == null ? void 0 : O.text;
|
36867
36867
|
}, [n.content]), d = Kl(() => {
|
36868
|
-
const { content:
|
36869
|
-
return
|
36870
|
-
(
|
36868
|
+
const { content: R } = n.content;
|
36869
|
+
return R[0].content.content.find(
|
36870
|
+
(O) => {
|
36871
36871
|
var D;
|
36872
|
-
return (D =
|
36872
|
+
return (D = O == null ? void 0 : O.text) == null ? void 0 : D.match(/\/status\/([0-9]*)/);
|
36873
36873
|
}
|
36874
36874
|
);
|
36875
36875
|
}, [n.content]), h = () => {
|
36876
36876
|
if (!u)
|
36877
36877
|
return;
|
36878
|
-
let
|
36878
|
+
let R = u;
|
36879
36879
|
if (u.includes("<iframe"))
|
36880
|
-
|
36880
|
+
R = f;
|
36881
36881
|
else
|
36882
36882
|
switch (!0) {
|
36883
36883
|
case /youtu\.?be(?:\.com)?\/(?:.*v(?:\/|=)|(?:.*\/)?)([a-zA-Z0-9-_]+)/.test(
|
@@ -36886,33 +36886,33 @@ const Dh = ({
|
|
36886
36886
|
const G = u.match(
|
36887
36887
|
/youtu\.?be(?:\.com)?\/(?:.*v(?:\/|=)|(?:.*\/)?)([a-zA-Z0-9-_]+)/
|
36888
36888
|
);
|
36889
|
-
G && G.length > 0 && (
|
36889
|
+
G && G.length > 0 && (R = `https://www.youtube.com/embed/${G[1]}`);
|
36890
36890
|
break;
|
36891
36891
|
}
|
36892
36892
|
case /vimeo\.com\/([a-zA-Z0-9-_]+)/.test(u): {
|
36893
36893
|
const G = u.match(/vimeo\.com\/([a-zA-Z0-9-_]+)/);
|
36894
|
-
G && G.length > 0 && (
|
36894
|
+
G && G.length > 0 && (R = `https://player.vimeo.com/video/${G[1]}`);
|
36895
36895
|
break;
|
36896
36896
|
}
|
36897
36897
|
default:
|
36898
36898
|
return;
|
36899
36899
|
}
|
36900
|
-
const
|
36901
|
-
|
36902
|
-
}, p = (
|
36903
|
-
const
|
36904
|
-
return
|
36900
|
+
const O = 640, D = 360, L = e(), F = L + n.nodeSize;
|
36901
|
+
R && (t == null || t.chain().focus(L).deleteRange({ from: L === 0 ? L : L + 1, to: F }).setIframe({ src: R, width: O, height: D }).run());
|
36902
|
+
}, p = (R) => {
|
36903
|
+
const O = R.match(/\/status\/([0-9]*)/);
|
36904
|
+
return O && O.length > 0 ? O[1] : null;
|
36905
36905
|
}, g = () => {
|
36906
36906
|
if (!u)
|
36907
36907
|
return;
|
36908
|
-
let
|
36909
|
-
const
|
36910
|
-
|
36911
|
-
const L = e(),
|
36912
|
-
|
36908
|
+
let R = u;
|
36909
|
+
const O = l.some((G) => u.includes(G)), D = p(u);
|
36910
|
+
O && D ? R = D : d && (R = p(d.text));
|
36911
|
+
const L = e(), F = L + n.nodeSize;
|
36912
|
+
R && (t == null || t.chain().focus(L).deleteRange({ from: L === 2 ? L : L + 1, to: F }).setTweetEmbed({ tweetId: R }).run());
|
36913
36913
|
}, y = () => {
|
36914
|
-
const
|
36915
|
-
t.commands.insertContentAt(
|
36914
|
+
const R = e() + n.nodeSize;
|
36915
|
+
t.commands.insertContentAt(R, {
|
36916
36916
|
type: "dBlock",
|
36917
36917
|
content: [
|
36918
36918
|
{
|
@@ -36921,8 +36921,8 @@ const Dh = ({
|
|
36921
36921
|
]
|
36922
36922
|
});
|
36923
36923
|
}, b = () => {
|
36924
|
-
const
|
36925
|
-
t.commands.insertContentAt(
|
36924
|
+
const R = e();
|
36925
|
+
t.commands.insertContentAt(R, {
|
36926
36926
|
type: "dBlock",
|
36927
36927
|
content: [
|
36928
36928
|
{
|
@@ -36932,16 +36932,16 @@ const Dh = ({
|
|
36932
36932
|
});
|
36933
36933
|
}, A = () => {
|
36934
36934
|
r();
|
36935
|
-
}, v = (
|
36936
|
-
|
36935
|
+
}, v = (R) => {
|
36936
|
+
R.altKey ? E() : w();
|
36937
36937
|
}, w = () => {
|
36938
36938
|
y();
|
36939
36939
|
}, E = () => {
|
36940
36940
|
b();
|
36941
|
-
}, k = (
|
36942
|
-
|
36941
|
+
}, k = (R) => {
|
36942
|
+
R.altKey && A();
|
36943
36943
|
}, M = L1(() => {
|
36944
|
-
if (l.some((
|
36944
|
+
if (l.some((R) => u.includes(R)) || d != null && d.text) {
|
36945
36945
|
g();
|
36946
36946
|
return;
|
36947
36947
|
} else {
|
@@ -38805,7 +38805,7 @@ function QW(n, e) {
|
|
38805
38805
|
}
|
38806
38806
|
var g0 = yM ? dm : dt;
|
38807
38807
|
function YW(n) {
|
38808
|
-
var e =
|
38808
|
+
var e = Kt();
|
38809
38809
|
return e.current || (e.current = typeof n == "function" ? n() : n), e.current;
|
38810
38810
|
}
|
38811
38811
|
function $k(n, e, t) {
|
@@ -38842,21 +38842,21 @@ function ZW(n) {
|
|
38842
38842
|
function e(t) {
|
38843
38843
|
var r = t.children, s = t.content, i = t.visible, o = t.singleton, a = t.render, l = t.reference, c = t.disabled, u = c === void 0 ? !1 : c, f = t.ignoreAttributes, d = f === void 0 ? !0 : f;
|
38844
38844
|
t.__source, t.__self;
|
38845
|
-
var h = mM(t, ["children", "content", "visible", "singleton", "render", "reference", "disabled", "ignoreAttributes", "__source", "__self"]), p = i !== void 0, g = o !== void 0, y = st(!1), b = y[0], A = y[1], v = st({}), w = v[0], E = v[1], k = st(), S = k[0], M = k[1],
|
38845
|
+
var h = mM(t, ["children", "content", "visible", "singleton", "render", "reference", "disabled", "ignoreAttributes", "__source", "__self"]), p = i !== void 0, g = o !== void 0, y = st(!1), b = y[0], A = y[1], v = st({}), w = v[0], E = v[1], k = st(), S = k[0], M = k[1], R = YW(function() {
|
38846
38846
|
return {
|
38847
38847
|
container: Vk(),
|
38848
38848
|
renders: 1
|
38849
38849
|
};
|
38850
|
-
}),
|
38850
|
+
}), O = Object.assign({
|
38851
38851
|
ignoreAttributes: d
|
38852
38852
|
}, h, {
|
38853
|
-
content:
|
38853
|
+
content: R.container
|
38854
38854
|
});
|
38855
38855
|
p && (process.env.NODE_ENV !== "production" && ["trigger", "hideOnClick", "showOnCreate"].forEach(function(G) {
|
38856
|
-
|
38857
|
-
}),
|
38858
|
-
var D =
|
38859
|
-
a && (D = Object.assign({},
|
38856
|
+
O[G] !== void 0 && console.warn(["@tippyjs/react: Cannot specify `" + G + "` prop in", "controlled mode (`visible` prop)"].join(" "));
|
38857
|
+
}), O.trigger = "manual", O.hideOnClick = !1), g && (u = !0);
|
38858
|
+
var D = O, L = O.plugins || [];
|
38859
|
+
a && (D = Object.assign({}, O, {
|
38860
38860
|
plugins: g && o.data != null ? [].concat(L, [{
|
38861
38861
|
fn: function() {
|
38862
38862
|
return {
|
@@ -38872,18 +38872,18 @@ function ZW(n) {
|
|
38872
38872
|
}]) : L,
|
38873
38873
|
render: function() {
|
38874
38874
|
return {
|
38875
|
-
popper:
|
38875
|
+
popper: R.container
|
38876
38876
|
};
|
38877
38877
|
}
|
38878
38878
|
}));
|
38879
|
-
var
|
38879
|
+
var F = [l].concat(r ? [r.type] : []);
|
38880
38880
|
return g0(function() {
|
38881
38881
|
var G = l;
|
38882
38882
|
l && l.hasOwnProperty("current") && (G = l.current);
|
38883
|
-
var _ = n(G ||
|
38884
|
-
plugins: [XW].concat(
|
38883
|
+
var _ = n(G || R.ref || Vk(), Object.assign({}, D, {
|
38884
|
+
plugins: [XW].concat(O.plugins || [])
|
38885
38885
|
}));
|
38886
|
-
return
|
38886
|
+
return R.instance = _, u && _.disable(), i && _.show(), g && o.hook({
|
38887
38887
|
instance: _,
|
38888
38888
|
content: s,
|
38889
38889
|
props: D,
|
@@ -38891,13 +38891,13 @@ function ZW(n) {
|
|
38891
38891
|
}), A(!0), function() {
|
38892
38892
|
_.destroy(), o == null || o.cleanup(_);
|
38893
38893
|
};
|
38894
|
-
},
|
38894
|
+
}, F), g0(function() {
|
38895
38895
|
var G;
|
38896
|
-
if (
|
38897
|
-
|
38896
|
+
if (R.renders === 1) {
|
38897
|
+
R.renders++;
|
38898
38898
|
return;
|
38899
38899
|
}
|
38900
|
-
var _ =
|
38900
|
+
var _ = R.instance;
|
38901
38901
|
_.setProps(QW(_.props, D)), (G = _.popperInstance) == null || G.forceUpdate(), u ? _.disable() : _.enable(), p && (i ? _.show() : _.hide()), g && o.hook({
|
38902
38902
|
instance: _,
|
38903
38903
|
content: s,
|
@@ -38907,7 +38907,7 @@ function ZW(n) {
|
|
38907
38907
|
}), g0(function() {
|
38908
38908
|
var G;
|
38909
38909
|
if (a) {
|
38910
|
-
var _ =
|
38910
|
+
var _ = R.instance;
|
38911
38911
|
_.setProps({
|
38912
38912
|
popperOptions: Object.assign({}, _.props.popperOptions, {
|
38913
38913
|
modifiers: [].concat((((G = _.props.popperOptions) == null ? void 0 : G.modifiers) || []).filter(function(W) {
|
@@ -38930,11 +38930,11 @@ function ZW(n) {
|
|
38930
38930
|
})
|
38931
38931
|
});
|
38932
38932
|
}
|
38933
|
-
}, [w.placement, w.referenceHidden, w.escaped].concat(
|
38933
|
+
}, [w.placement, w.referenceHidden, w.escaped].concat(F)), /* @__PURE__ */ re.createElement(re.Fragment, null, r ? /* @__PURE__ */ dS(r, {
|
38934
38934
|
ref: function(_) {
|
38935
|
-
|
38935
|
+
R.ref = _, sw(r.ref, _);
|
38936
38936
|
}
|
38937
|
-
}) : null, b && /* @__PURE__ */ NP(a ? a(JW(w), S,
|
38937
|
+
}) : null, b && /* @__PURE__ */ NP(a ? a(JW(w), S, R.instance) : s, R.container));
|
38938
38938
|
}
|
38939
38939
|
return e;
|
38940
38940
|
}
|
@@ -39069,7 +39069,7 @@ const nG = [
|
|
39069
39069
|
selected: t,
|
39070
39070
|
editor: r
|
39071
39071
|
}) => {
|
39072
|
-
const [s, i] = st(!1), o = _m(), a =
|
39072
|
+
const [s, i] = st(!1), o = _m(), a = Kt(null), l = () => {
|
39073
39073
|
const { from: u, to: f } = r.state.selection, d = e(), h = d + n.nodeSize;
|
39074
39074
|
i(d <= u && f <= h);
|
39075
39075
|
};
|
@@ -39470,7 +39470,7 @@ const cG = Nt.create({
|
|
39470
39470
|
}, [r]), dt(() => {
|
39471
39471
|
e == null || e.chain().focus();
|
39472
39472
|
}, []);
|
39473
|
-
const h =
|
39473
|
+
const h = Kt(null);
|
39474
39474
|
return dt(() => {
|
39475
39475
|
var p;
|
39476
39476
|
(p = h.current) == null || p.focus();
|
@@ -41657,15 +41657,15 @@ class g7 extends jM {
|
|
41657
41657
|
for (let v = 0; v < 16; v++, t += 4)
|
41658
41658
|
Ji[v] = e.getUint32(t), qi[v] = e.getUint32(t += 4);
|
41659
41659
|
for (let v = 16; v < 80; v++) {
|
41660
|
-
const w = Ji[v - 15] | 0, E = qi[v - 15] | 0, k = Xe.rotrSH(w, E, 1) ^ Xe.rotrSH(w, E, 8) ^ Xe.shrSH(w, E, 7), S = Xe.rotrSL(w, E, 1) ^ Xe.rotrSL(w, E, 8) ^ Xe.shrSL(w, E, 7), M = Ji[v - 2] | 0,
|
41661
|
-
Ji[v] =
|
41660
|
+
const w = Ji[v - 15] | 0, E = qi[v - 15] | 0, k = Xe.rotrSH(w, E, 1) ^ Xe.rotrSH(w, E, 8) ^ Xe.shrSH(w, E, 7), S = Xe.rotrSL(w, E, 1) ^ Xe.rotrSL(w, E, 8) ^ Xe.shrSL(w, E, 7), M = Ji[v - 2] | 0, R = qi[v - 2] | 0, O = Xe.rotrSH(M, R, 19) ^ Xe.rotrBH(M, R, 61) ^ Xe.shrSH(M, R, 6), D = Xe.rotrSL(M, R, 19) ^ Xe.rotrBL(M, R, 61) ^ Xe.shrSL(M, R, 6), L = Xe.add4L(S, D, qi[v - 7], qi[v - 16]), F = Xe.add4H(L, k, O, Ji[v - 7], Ji[v - 16]);
|
41661
|
+
Ji[v] = F | 0, qi[v] = L | 0;
|
41662
41662
|
}
|
41663
41663
|
let { Ah: r, Al: s, Bh: i, Bl: o, Ch: a, Cl: l, Dh: c, Dl: u, Eh: f, El: d, Fh: h, Fl: p, Gh: g, Gl: y, Hh: b, Hl: A } = this;
|
41664
41664
|
for (let v = 0; v < 80; v++) {
|
41665
|
-
const w = Xe.rotrSH(f, d, 14) ^ Xe.rotrSH(f, d, 18) ^ Xe.rotrBH(f, d, 41), E = Xe.rotrSL(f, d, 14) ^ Xe.rotrSL(f, d, 18) ^ Xe.rotrBL(f, d, 41), k = f & h ^ ~f & g, S = d & p ^ ~d & y, M = Xe.add5L(A, E, S, p7[v], qi[v]),
|
41666
|
-
b = g | 0, A = y | 0, g = h | 0, y = p | 0, h = f | 0, p = d | 0, { h: f, l: d } = Xe.add(c | 0, u | 0,
|
41667
|
-
const _ = Xe.add3L(
|
41668
|
-
r = Xe.add3H(_,
|
41665
|
+
const w = Xe.rotrSH(f, d, 14) ^ Xe.rotrSH(f, d, 18) ^ Xe.rotrBH(f, d, 41), E = Xe.rotrSL(f, d, 14) ^ Xe.rotrSL(f, d, 18) ^ Xe.rotrBL(f, d, 41), k = f & h ^ ~f & g, S = d & p ^ ~d & y, M = Xe.add5L(A, E, S, p7[v], qi[v]), R = Xe.add5H(M, b, w, k, h7[v], Ji[v]), O = M | 0, D = Xe.rotrSH(r, s, 28) ^ Xe.rotrBH(r, s, 34) ^ Xe.rotrBH(r, s, 39), L = Xe.rotrSL(r, s, 28) ^ Xe.rotrBL(r, s, 34) ^ Xe.rotrBL(r, s, 39), F = r & i ^ r & a ^ i & a, G = s & o ^ s & l ^ o & l;
|
41666
|
+
b = g | 0, A = y | 0, g = h | 0, y = p | 0, h = f | 0, p = d | 0, { h: f, l: d } = Xe.add(c | 0, u | 0, R | 0, O | 0), c = a | 0, u = l | 0, a = i | 0, l = o | 0, i = r | 0, o = s | 0;
|
41667
|
+
const _ = Xe.add3L(O, L, G);
|
41668
|
+
r = Xe.add3H(_, R, D, F), s = _ | 0;
|
41669
41669
|
}
|
41670
41670
|
({ h: r, l: s } = Xe.add(this.Ah | 0, this.Al | 0, r | 0, s | 0)), { h: i, l: o } = Xe.add(this.Bh | 0, this.Bl | 0, i | 0, o | 0), { h: a, l } = Xe.add(this.Ch | 0, this.Cl | 0, a | 0, l | 0), { h: c, l: u } = Xe.add(this.Dh | 0, this.Dl | 0, c | 0, u | 0), { h: f, l: d } = Xe.add(this.Eh | 0, this.El | 0, f | 0, d | 0), { h, l: p } = Xe.add(this.Fh | 0, this.Fl | 0, h | 0, p | 0), { h: g, l: y } = Xe.add(this.Gh | 0, this.Gl | 0, g | 0, y | 0), { h: b, l: A } = Xe.add(this.Hh | 0, this.Hl | 0, b | 0, A | 0), this.set(r, s, i, o, a, l, c, u, f, d, h, p, g, y, b, A);
|
41671
41671
|
}
|
@@ -41801,20 +41801,20 @@ const YM = function(n) {
|
|
41801
41801
|
return N7(n);
|
41802
41802
|
};
|
41803
41803
|
let XM = YM;
|
41804
|
-
function
|
41804
|
+
function Jt(n) {
|
41805
41805
|
const e = ct(n, "data");
|
41806
41806
|
return ve(XM(e));
|
41807
41807
|
}
|
41808
|
-
|
41809
|
-
|
41808
|
+
Jt._ = YM;
|
41809
|
+
Jt.lock = function() {
|
41810
41810
|
QM = !0;
|
41811
41811
|
};
|
41812
|
-
|
41812
|
+
Jt.register = function(n) {
|
41813
41813
|
if (QM)
|
41814
41814
|
throw new TypeError("keccak256 is locked");
|
41815
41815
|
XM = n;
|
41816
41816
|
};
|
41817
|
-
Object.freeze(
|
41817
|
+
Object.freeze(Jt);
|
41818
41818
|
const ZM = function(n) {
|
41819
41819
|
return b7("sha256").update(n).digest();
|
41820
41820
|
};
|
@@ -42504,8 +42504,8 @@ function eK(n) {
|
|
42504
42504
|
// Cost: 8M + 3S + 3*a + 2*b3 + 15add.
|
42505
42505
|
double() {
|
42506
42506
|
const { a: g, b: y } = e, b = t.mul(y, dC), { px: A, py: v, pz: w } = this;
|
42507
|
-
let E = t.ZERO, k = t.ZERO, S = t.ZERO, M = t.mul(A, A),
|
42508
|
-
return D = t.add(D, D), S = t.mul(A, w), S = t.add(S, S), E = t.mul(g, S), k = t.mul(b,
|
42507
|
+
let E = t.ZERO, k = t.ZERO, S = t.ZERO, M = t.mul(A, A), R = t.mul(v, v), O = t.mul(w, w), D = t.mul(A, v);
|
42508
|
+
return D = t.add(D, D), S = t.mul(A, w), S = t.add(S, S), E = t.mul(g, S), k = t.mul(b, O), k = t.add(E, k), E = t.sub(R, k), k = t.add(R, k), k = t.mul(E, k), E = t.mul(D, E), S = t.mul(b, S), O = t.mul(g, O), D = t.sub(M, O), D = t.mul(g, D), D = t.add(D, S), S = t.add(M, M), M = t.add(S, M), M = t.add(M, O), M = t.mul(M, D), k = t.add(k, M), O = t.mul(v, w), O = t.add(O, O), M = t.mul(O, D), E = t.sub(E, M), S = t.mul(O, R), S = t.add(S, S), S = t.add(S, S), new f(E, k, S);
|
42509
42509
|
}
|
42510
42510
|
// Renes-Costello-Batina exception-free addition formula.
|
42511
42511
|
// There is 30% faster Jacobian formula, but it is not complete.
|
@@ -42515,11 +42515,11 @@ function eK(n) {
|
|
42515
42515
|
u(g);
|
42516
42516
|
const { px: y, py: b, pz: A } = this, { px: v, py: w, pz: E } = g;
|
42517
42517
|
let k = t.ZERO, S = t.ZERO, M = t.ZERO;
|
42518
|
-
const
|
42519
|
-
let D = t.mul(y, v), L = t.mul(b, w),
|
42518
|
+
const R = e.a, O = t.mul(e.b, dC);
|
42519
|
+
let D = t.mul(y, v), L = t.mul(b, w), F = t.mul(A, E), G = t.add(y, b), _ = t.add(v, w);
|
42520
42520
|
G = t.mul(G, _), _ = t.add(D, L), G = t.sub(G, _), _ = t.add(y, A);
|
42521
42521
|
let W = t.add(v, E);
|
42522
|
-
return _ = t.mul(_, W), W = t.add(D,
|
42522
|
+
return _ = t.mul(_, W), W = t.add(D, F), _ = t.sub(_, W), W = t.add(b, A), k = t.add(w, E), W = t.mul(W, k), k = t.add(L, F), W = t.sub(W, k), M = t.mul(R, _), k = t.mul(O, F), M = t.add(k, M), k = t.sub(L, M), M = t.add(L, M), S = t.mul(k, M), L = t.add(D, D), L = t.add(L, D), F = t.mul(R, F), _ = t.mul(O, _), L = t.add(L, F), F = t.sub(D, F), F = t.mul(R, F), _ = t.add(_, F), D = t.mul(L, _), S = t.add(S, D), D = t.mul(W, _), k = t.mul(G, k), k = t.sub(k, D), D = t.mul(G, L), M = t.mul(W, M), M = t.add(M, D), new f(k, S, M);
|
42523
42523
|
}
|
42524
42524
|
subtract(g) {
|
42525
42525
|
return this.add(g.negate());
|
@@ -42567,8 +42567,8 @@ function eK(n) {
|
|
42567
42567
|
const { endo: v } = e;
|
42568
42568
|
if (v) {
|
42569
42569
|
const { k1neg: w, k1: E, k2neg: k, k2: S } = v.splitScalar(y);
|
42570
|
-
let { p: M, f:
|
42571
|
-
M = h.constTimeNegate(w, M),
|
42570
|
+
let { p: M, f: R } = this.wNAF(E), { p: O, f: D } = this.wNAF(S);
|
42571
|
+
M = h.constTimeNegate(w, M), O = h.constTimeNegate(k, O), O = new f(t.mul(O.px, v.beta), O.py, O.pz), b = M.add(O), A = R.add(D);
|
42572
42572
|
} else {
|
42573
42573
|
const { p: w, f: E } = this.wNAF(y);
|
42574
42574
|
b = w, A = E;
|
@@ -42788,20 +42788,20 @@ function nK(n) {
|
|
42788
42788
|
}, S = e.bits2int_modN || function(_) {
|
42789
42789
|
return a(k(_));
|
42790
42790
|
}, M = sx(e.nBitLength);
|
42791
|
-
function
|
42791
|
+
function R(_) {
|
42792
42792
|
if (typeof _ != "bigint")
|
42793
42793
|
throw new Error("bigint expected");
|
42794
42794
|
if (!(Ci <= _ && _ < M))
|
42795
42795
|
throw new Error(`bigint expected < 2^${e.nBitLength}`);
|
42796
42796
|
return Nu(_, e.nByteLength);
|
42797
42797
|
}
|
42798
|
-
function
|
42798
|
+
function O(_, W, Q = D) {
|
42799
42799
|
if (["recovered", "canonical"].some((Ze) => Ze in Q))
|
42800
42800
|
throw new Error("sign() legacy options not supported");
|
42801
42801
|
const { hash: ne, randomBytes: X } = e;
|
42802
42802
|
let { lowS: ge, prehash: ke, extraEntropy: Pe } = Q;
|
42803
42803
|
ge == null && (ge = !0), _ = Qr("msgHash", _), ke && (_ = Qr("prehashed msgHash", ne(_)));
|
42804
|
-
const Ce = S(_), Ae = u(W), Ue = [
|
42804
|
+
const Ce = S(_), Ae = u(W), Ue = [R(Ae), R(Ce)];
|
42805
42805
|
if (Pe != null) {
|
42806
42806
|
const Ze = Pe === !0 ? X(t.BYTES) : Pe;
|
42807
42807
|
Ue.push(Qr("extraEntropy", Ze));
|
@@ -42823,8 +42823,8 @@ function nK(n) {
|
|
42823
42823
|
return { seed: Fe, k2sig: Ie };
|
42824
42824
|
}
|
42825
42825
|
const D = { lowS: e.lowS, prehash: !1 }, L = { lowS: e.lowS, prehash: !1 };
|
42826
|
-
function
|
42827
|
-
const { seed: ne, k2sig: X } =
|
42826
|
+
function F(_, W, Q = D) {
|
42827
|
+
const { seed: ne, k2sig: X } = O(_, W, Q), ge = e;
|
42828
42828
|
return sD(ge.hash.outputLen, ge.nByteLength, ge.hmac)(ne, X);
|
42829
42829
|
}
|
42830
42830
|
c.BASE._setWindowSize(8);
|
@@ -42865,7 +42865,7 @@ function nK(n) {
|
|
42865
42865
|
CURVE: e,
|
42866
42866
|
getPublicKey: v,
|
42867
42867
|
getSharedSecret: E,
|
42868
|
-
sign:
|
42868
|
+
sign: F,
|
42869
42869
|
verify: G,
|
42870
42870
|
ProjectivePoint: c,
|
42871
42871
|
Signature: b,
|
@@ -43330,7 +43330,7 @@ function AC(n) {
|
|
43330
43330
|
const e = n.substring(2).split(""), t = new Uint8Array(40);
|
43331
43331
|
for (let s = 0; s < 40; s++)
|
43332
43332
|
t[s] = e[s].charCodeAt(0);
|
43333
|
-
const r = ct(
|
43333
|
+
const r = ct(Jt(t));
|
43334
43334
|
for (let s = 0; s < 40; s += 2)
|
43335
43335
|
r[s >> 1] >> 4 >= 8 && (e[s] = e[s].toUpperCase()), (r[s >> 1] & 15) >= 8 && (e[s + 1] = e[s + 1].toUpperCase());
|
43336
43336
|
return "0x" + e.join("");
|
@@ -43386,7 +43386,7 @@ function pt(n) {
|
|
43386
43386
|
function dK(n) {
|
43387
43387
|
const e = pt(n.from);
|
43388
43388
|
let r = Ee(n.nonce, "tx.nonce").toString(16);
|
43389
|
-
return r === "0" ? r = "0x" : r.length % 2 ? r = "0x0" + r : r = "0x" + r, pt(_t(
|
43389
|
+
return r === "0" ? r = "0x" : r.length % 2 ? r = "0x0" + r : r = "0x" + r, pt(_t(Jt(pl([e, r])), 12));
|
43390
43390
|
}
|
43391
43391
|
function uD(n) {
|
43392
43392
|
return n && typeof n.getAddress == "function";
|
@@ -44441,7 +44441,7 @@ class zh extends $i {
|
|
44441
44441
|
}
|
44442
44442
|
}
|
44443
44443
|
function gl(n) {
|
44444
|
-
return
|
44444
|
+
return Jt(Di(n));
|
44445
44445
|
}
|
44446
44446
|
var TK = "AEEUdwmgDS8BxQKKAP4BOgDjATAAngDUAIMAoABoAOAAagCOAEQAhABMAHIAOwA9ACsANgAmAGIAHgAuACgAJwAXAC0AGgAjAB8ALwAUACkAEgAeAAkAGwARABkAFgA5ACgALQArADcAFQApABAAHgAiABAAGgAeABMAGAUhBe8BFxREN8sF2wC5AK5HAW8ArQkDzQCuhzc3NzcBP68NEfMABQdHBuw5BV8FYAA9MzkI9r4ZBg7QyQAWA9CeOwLNCjcCjqkChuA/lm+RAsXTAoP6ASfnEQDytQFJAjWVCkeXAOsA6godAB/cwdAUE0WlBCN/AQUCQRjFD/MRBjHxDQSJbw0jBzUAswBxme+tnIcAYwabAysG8QAjAEMMmxcDqgPKQyDXCMMxA7kUQwD3NXOrAKmFIAAfBC0D3x4BJQDBGdUFAhEgVD8JnwmQJiNWYUzrg0oAGwAUAB0AFnNcACkAFgBP9h3gPfsDOWDKneY2ChglX1UDYD30ABsAFAAdABZzIGRAnwDD8wAjAEEMzRbDqgMB2sAFYwXqAtCnAsS4AwpUJKRtFHsadUz9AMMVbwLpABM1NJEX0ZkCgYMBEyMAxRVvAukAEzUBUFAtmUwSAy4DBTER33EftQHfSwB5MxJ/AjkWKQLzL8E/cwBB6QH9LQDPDtO9ASNriQC5DQANAwCK21EFI91zHwCoL9kBqQcHBwcHKzUDowBvAQohPvU3fAQgHwCyAc8CKQMA5zMSezr7ULgFmDp/LzVQBgEGAi8FYQVgt8AFcTtlQhpCWEmfe5tmZ6IAExsDzQ8t+X8rBKtTAltbAn0jsy8Bl6utPWMDTR8Ei2kRANkDBrNHNysDBzECQWUAcwFpJ3kAiyUhAJ0BUb8AL3EfAbfNAz81KUsFWwF3YQZtAm0A+VEfAzEJDQBRSQCzAQBlAHsAM70GD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WMXVkmnPSEkpGpUI2h1MThideGFEOK6YZHPwYzMBvpNC7+ZHxPb7epfefGyIB4JzO9DTNEYnDLVVHdQyvOEVefrk6Uv5kTQYVYWWdqrdcIl7yljwwIWdfQ/y+2QB3eR/qxYObuYyB4gTbo2in4PzarU1sO9nETkmj9/AoxDA+JM3GMqQtJR4jtduHtnoCLxd1gQUscHRB/MoRYIEsP2pDZ9KvHgtlk1iTbWWbHhohwFEYX7y51fUV2nuUmnoUcqnWIQAAgl9LTVX+Bc0QGNEhChxHR4YjfE51PUdGfsSFE6ck7BL3/hTf9jLq4G1IafINxOLKeAtO7quulYvH5YOBc+zX7CrMgWnW47/jfRsWnJjYYoE7xMfWV2HN2iyIqLI";
|
44447
44447
|
const CC = /* @__PURE__ */ new Map([[8217, "apostrophe"], [8260, "fraction slash"], [12539, "middle dot"]]), SC = 4;
|
@@ -44466,17 +44466,17 @@ function NK(n) {
|
|
44466
44466
|
for (; ; ) {
|
44467
44467
|
let E = Math.floor(((y - A + 1) * s - 1) / v), k = 0, S = r;
|
44468
44468
|
for (; S - k > 1; ) {
|
44469
|
-
let
|
44470
|
-
E < i[
|
44469
|
+
let O = k + S >>> 1;
|
44470
|
+
E < i[O] ? S = O : k = O;
|
44471
44471
|
}
|
44472
44472
|
if (k == 0) break;
|
44473
44473
|
b.push(k);
|
44474
|
-
let M = A + Math.floor(v * i[k] / s),
|
44475
|
-
for (; !((M ^
|
44476
|
-
y = y << 1 & g | u(), M = M << 1 & g,
|
44477
|
-
for (; M & ~
|
44478
|
-
y = y & h | y << 1 & g >>> 1 | u(), M = M << 1 ^ h,
|
44479
|
-
A = M, v = 1 +
|
44474
|
+
let M = A + Math.floor(v * i[k] / s), R = A + Math.floor(v * i[k + 1] / s) - 1;
|
44475
|
+
for (; !((M ^ R) & h); )
|
44476
|
+
y = y << 1 & g | u(), M = M << 1 & g, R = R << 1 & g | 1;
|
44477
|
+
for (; M & ~R & p; )
|
44478
|
+
y = y & h | y << 1 & g >>> 1 | u(), M = M << 1 ^ h, R = (R ^ h) << 1 | h | 1;
|
44479
|
+
A = M, v = 1 + R - M;
|
44480
44480
|
}
|
44481
44481
|
let w = r - 4;
|
44482
44482
|
return b.map((E) => {
|
@@ -45000,7 +45000,7 @@ function vw(n) {
|
|
45000
45000
|
let e = PD;
|
45001
45001
|
const t = ID(n);
|
45002
45002
|
for (; t.length; )
|
45003
|
-
e =
|
45003
|
+
e = Jt($t([e, Jt(t.pop())]));
|
45004
45004
|
return ve(e);
|
45005
45005
|
}
|
45006
45006
|
function uJ(n, e) {
|
@@ -45029,7 +45029,7 @@ function qo(n) {
|
|
45029
45029
|
}
|
45030
45030
|
function fJ(n) {
|
45031
45031
|
let e;
|
45032
|
-
return typeof n == "string" ? e = ud.computePublicKey(n, !1) : e = n.publicKey, pt(
|
45032
|
+
return typeof n == "string" ? e = ud.computePublicKey(n, !1) : e = n.publicKey, pt(Jt("0x" + e.substring(4)).substring(26));
|
45033
45033
|
}
|
45034
45034
|
function dJ(n, e) {
|
45035
45035
|
return fJ(ud.recoverPublicKey(n, e));
|
@@ -45545,7 +45545,7 @@ const ui = class ui {
|
|
45545
45545
|
* The transaction hash, if signed. Otherwise, ``null``.
|
45546
45546
|
*/
|
45547
45547
|
get hash() {
|
45548
|
-
return this.signature == null ? null :
|
45548
|
+
return this.signature == null ? null : Jt(ue(this, Fc, gp).call(this, !0, !1));
|
45549
45549
|
}
|
45550
45550
|
/**
|
45551
45551
|
* The pre-image hash of this transaction.
|
@@ -45554,7 +45554,7 @@ const ui = class ui {
|
|
45554
45554
|
* this transaction.
|
45555
45555
|
*/
|
45556
45556
|
get unsignedHash() {
|
45557
|
-
return
|
45557
|
+
return Jt(this.unsignedSerialized);
|
45558
45558
|
}
|
45559
45559
|
/**
|
45560
45560
|
* The sending address, if signed. Otherwise, ``null``.
|
@@ -45799,7 +45799,7 @@ function T0(n) {
|
|
45799
45799
|
};
|
45800
45800
|
case "bytes":
|
45801
45801
|
return function(e) {
|
45802
|
-
return
|
45802
|
+
return Jt(e);
|
45803
45803
|
};
|
45804
45804
|
case "string":
|
45805
45805
|
return function(e) {
|
@@ -45910,7 +45910,7 @@ const Mr = class Mr {
|
|
45910
45910
|
* Returns the hash of %%value%% for the type of %%name%%.
|
45911
45911
|
*/
|
45912
45912
|
hashStruct(e, t) {
|
45913
|
-
return
|
45913
|
+
return Jt(this.encodeData(e, t));
|
45914
45914
|
}
|
45915
45915
|
/**
|
45916
45916
|
* Return the fulled encoded %%value%% for the [[types]].
|
@@ -45993,7 +45993,7 @@ const Mr = class Mr {
|
|
45993
45993
|
* Return the hash of the fully encoded [[link-eip-712]] %%value%% for %%types%% with %%domain%%.
|
45994
45994
|
*/
|
45995
45995
|
static hash(e, t, r) {
|
45996
|
-
return
|
45996
|
+
return Jt(Mr.encode(e, t, r));
|
45997
45997
|
}
|
45998
45998
|
// Replaces all address types with ENS names with their looked up address
|
45999
45999
|
/**
|
@@ -46060,7 +46060,7 @@ Ad = new WeakMap(), yi = new WeakMap(), jc = new WeakMap(), sm = new WeakSet(),
|
|
46060
46060
|
return (o) => {
|
46061
46061
|
z(t.count === -1 || t.count === o.length, `array length mismatch; expected length ${t.count}`, "value", o);
|
46062
46062
|
let a = o.map(i);
|
46063
|
-
return T(this, yi).has(s) && (a = a.map(
|
46063
|
+
return T(this, yi).has(s) && (a = a.map(Jt)), Jt($t(a));
|
46064
46064
|
};
|
46065
46065
|
}
|
46066
46066
|
const r = this.types[e];
|
@@ -46069,7 +46069,7 @@ Ad = new WeakMap(), yi = new WeakMap(), jc = new WeakMap(), sm = new WeakSet(),
|
|
46069
46069
|
return (i) => {
|
46070
46070
|
const o = r.map(({ name: a, type: l }) => {
|
46071
46071
|
const c = this.getEncoder(l)(i[a]);
|
46072
|
-
return T(this, yi).has(l) ?
|
46072
|
+
return T(this, yi).has(l) ? Jt(c) : c;
|
46073
46073
|
});
|
46074
46074
|
return o.unshift(s), $t(o);
|
46075
46075
|
};
|
@@ -47788,7 +47788,7 @@ const ca = class ca {
|
|
47788
47788
|
Z(t.length <= e.inputs.length, `too many arguments for ${e.format()}`, "UNEXPECTED_ARGUMENT", { count: t.length, expectedCount: e.inputs.length });
|
47789
47789
|
const r = [];
|
47790
47790
|
e.anonymous || r.push(e.topicHash);
|
47791
|
-
const s = (i, o) => i.type === "string" ? gl(o) : i.type === "bytes" ?
|
47791
|
+
const s = (i, o) => i.type === "string" ? gl(o) : i.type === "bytes" ? Jt(ve(o)) : (i.type === "bool" && typeof o == "boolean" ? o = o ? "0x01" : "0x00" : i.type.match(/^u?int/) ? o = Vo(o) : i.type.match(/^bytes/) ? o = vG(o, 32) : i.type === "address" && T(this, xn).encode(["address"], [o]), hl(ve(o), 32));
|
47792
47792
|
for (t.forEach((i, o) => {
|
47793
47793
|
const a = e.inputs[o];
|
47794
47794
|
if (!a.indexed) {
|
@@ -47812,7 +47812,7 @@ const ca = class ca {
|
|
47812
47812
|
if (o.type === "string")
|
47813
47813
|
r.push(gl(l));
|
47814
47814
|
else if (o.type === "bytes")
|
47815
|
-
r.push(
|
47815
|
+
r.push(Jt(l));
|
47816
47816
|
else {
|
47817
47817
|
if (o.baseType === "tuple" || o.baseType === "array")
|
47818
47818
|
throw new Error("not implemented");
|
@@ -54209,32 +54209,32 @@ const wQ = async (n, e) => {
|
|
54209
54209
|
onChange: a,
|
54210
54210
|
onCollaboratorChange: l
|
54211
54211
|
}) => {
|
54212
|
-
var
|
54212
|
+
var M, R;
|
54213
54213
|
const [c] = st(new Al()), [u, f] = st(!1), [d, h] = st([
|
54214
54214
|
...dG
|
54215
|
-
]), p = qA(
|
54215
|
+
]), p = Kt(!1), g = qA(
|
54216
54216
|
{
|
54217
54217
|
extensions: d,
|
54218
54218
|
editorProps: ZE,
|
54219
54219
|
autofocus: "start",
|
54220
54220
|
onUpdate: (O) => {
|
54221
|
-
|
54221
|
+
w != null && w.isEmpty || a == null || a(O.editor.getJSON());
|
54222
54222
|
}
|
54223
54223
|
},
|
54224
54224
|
[d]
|
54225
|
-
),
|
54225
|
+
), y = qA({
|
54226
54226
|
extensions: d,
|
54227
54227
|
editorProps: ZE,
|
54228
54228
|
autofocus: "start",
|
54229
54229
|
onUpdate: (O) => {
|
54230
|
-
|
54230
|
+
w != null && w.isEmpty || a == null || a(O.editor.getJSON());
|
54231
54231
|
}
|
54232
|
-
}),
|
54233
|
-
}),
|
54232
|
+
}), b = Kt(() => {
|
54233
|
+
}), A = (O, D = !1) => {
|
54234
54234
|
if (!t || !r || !O)
|
54235
54235
|
throw new Error("docId or username is not provided");
|
54236
54236
|
f(!0);
|
54237
|
-
const
|
54237
|
+
const L = new Q6(r, c, {
|
54238
54238
|
signaling: [
|
54239
54239
|
"wss://fileverse-signaling-server-0529292ff51c.herokuapp.com/"
|
54240
54240
|
]
|
@@ -54245,72 +54245,70 @@ const wQ = async (n, e) => {
|
|
54245
54245
|
document: c
|
54246
54246
|
}),
|
54247
54247
|
kz.configure({
|
54248
|
-
provider:
|
54248
|
+
provider: L,
|
54249
54249
|
user: {
|
54250
54250
|
name: O,
|
54251
54251
|
color: uS[Math.floor(Math.random() * uS.length)],
|
54252
|
-
isEns:
|
54252
|
+
isEns: D
|
54253
54253
|
},
|
54254
54254
|
render: yG
|
54255
54255
|
})
|
54256
54256
|
]);
|
54257
|
-
const
|
54257
|
+
const F = setTimeout(() => {
|
54258
54258
|
f(!1);
|
54259
54259
|
}, 100);
|
54260
|
-
return
|
54261
|
-
clearTimeout(
|
54262
|
-
},
|
54263
|
-
},
|
54264
|
-
var
|
54265
|
-
(
|
54260
|
+
return b.current = () => {
|
54261
|
+
clearTimeout(F), L.destroy(), c.destroy(), f(!1);
|
54262
|
+
}, b.current;
|
54263
|
+
}, v = Kt(null), w = Kl(() => t && r && g && !u ? g : y, [g, y, u]), E = (O) => {
|
54264
|
+
var D;
|
54265
|
+
(D = v.current) != null && D.contains(O.target) || w == null || w.chain().focus().run();
|
54266
54266
|
};
|
54267
54267
|
dt(() => {
|
54268
|
-
|
54268
|
+
w == null || w.chain().focus();
|
54269
54269
|
}, []), dt(() => {
|
54270
|
-
|
54271
|
-
}, [n,
|
54272
|
-
e &&
|
54273
|
-
|
54274
|
-
|
54275
|
-
}, [e, v]);
|
54276
|
-
const E = async () => {
|
54270
|
+
w == null || w.setEditable(!n);
|
54271
|
+
}, [n, w]), dt(() => {
|
54272
|
+
e && w && !p.current && (w.commands.setContent(e), p.current = !0);
|
54273
|
+
}, [e, w]);
|
54274
|
+
const k = async () => {
|
54277
54275
|
if (!i) return;
|
54278
|
-
let O = i,
|
54276
|
+
let O = i, D = !1;
|
54279
54277
|
if (s) {
|
54280
|
-
const { name:
|
54281
|
-
O =
|
54278
|
+
const { name: L, isEns: F } = await wQ(i, s);
|
54279
|
+
O = L, D = F;
|
54282
54280
|
}
|
54283
|
-
|
54281
|
+
A(O, D);
|
54284
54282
|
};
|
54285
54283
|
dt(() => {
|
54286
|
-
t && i ?
|
54284
|
+
t && i ? k() : b.current();
|
54287
54285
|
}, [t]);
|
54288
|
-
const
|
54289
|
-
() => L1((O,
|
54290
|
-
|
54286
|
+
const S = Kl(
|
54287
|
+
() => L1((O, D) => {
|
54288
|
+
D({
|
54291
54289
|
editorJSONData: O.getJSON()
|
54292
54290
|
});
|
54293
54291
|
}, 1e3),
|
54294
54292
|
[o]
|
54295
54293
|
);
|
54296
54294
|
return dt(() => {
|
54297
|
-
if (
|
54295
|
+
if (w && o) {
|
54298
54296
|
const O = () => {
|
54299
|
-
|
54297
|
+
S(w, o);
|
54300
54298
|
};
|
54301
|
-
return
|
54302
|
-
|
54299
|
+
return w.on("update", O), () => {
|
54300
|
+
w.off("update", O);
|
54303
54301
|
};
|
54304
54302
|
}
|
54305
|
-
}, [
|
54306
|
-
var O,
|
54307
|
-
l == null || l((
|
54308
|
-
}, [(
|
54309
|
-
editor:
|
54310
|
-
focusEditor:
|
54311
|
-
ref:
|
54303
|
+
}, [w, o, S]), dt(() => {
|
54304
|
+
var O, D;
|
54305
|
+
l == null || l((D = (O = w == null ? void 0 : w.storage) == null ? void 0 : O.collaborationCursor) == null ? void 0 : D.users);
|
54306
|
+
}, [(R = (M = w == null ? void 0 : w.storage) == null ? void 0 : M.collaborationCursor) == null ? void 0 : R.users]), {
|
54307
|
+
editor: w,
|
54308
|
+
focusEditor: E,
|
54309
|
+
ref: v,
|
54312
54310
|
loading: u,
|
54313
|
-
connect:
|
54311
|
+
connect: A,
|
54314
54312
|
ydoc: c
|
54315
54313
|
};
|
54316
54314
|
}, EQ = ({
|