likec4 1.0.0-next.4 → 1.0.0-next.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__app__/src/{app-DbbGThOv.js → app-YGudT20Y.js} +173 -1468
- package/dist/__app__/src/app.js +1 -1
- package/dist/__app__/src/main.jsx +30 -0
- package/dist/__app__/src/{view._viewId.d2.lazy-ZtaDM-kN.js → view._viewId.d2.lazy-CfyitoRw.js} +1 -1
- package/dist/__app__/src/{view._viewId.dot.lazy-DDE5Trvt.js → view._viewId.dot.lazy-Bug0AuTj.js} +1 -1
- package/dist/__app__/src/{view._viewId.mmd.lazy-CmXc5WnB.js → view._viewId.mmd.lazy-BkXRK8lt.js} +1 -1
- package/dist/__app__/src/view._viewId.react-legacy.lazy-BCfsZGJv.js +21991 -0
- package/dist/cli/index.js +3 -3
- package/package.json +3 -3
- package/dist/__app__/src/main.js +0 -13
- package/dist/__app__/src/view._viewId.react-legacy.lazy-D6tQf--G.js +0 -37266
|
@@ -261,34 +261,16 @@ function parseHref(href, state) {
|
|
|
261
261
|
function createRandomKey() {
|
|
262
262
|
return (Math.random() + 1).toString(36).substring(7);
|
|
263
263
|
}
|
|
264
|
-
var isProduction$1 = process.env.NODE_ENV === "production";
|
|
265
264
|
var prefix = "Invariant failed";
|
|
266
265
|
function invariant$2(condition, message) {
|
|
267
266
|
if (condition) {
|
|
268
267
|
return;
|
|
269
268
|
}
|
|
270
|
-
|
|
269
|
+
{
|
|
271
270
|
throw new Error(prefix);
|
|
272
271
|
}
|
|
273
|
-
var provided = typeof message === "function" ? message() : message;
|
|
274
|
-
var value = provided ? "".concat(prefix, ": ").concat(provided) : prefix;
|
|
275
|
-
throw new Error(value);
|
|
276
272
|
}
|
|
277
|
-
|
|
278
|
-
function warning$1(condition, message) {
|
|
279
|
-
if (!isProduction) {
|
|
280
|
-
if (condition) {
|
|
281
|
-
return;
|
|
282
|
-
}
|
|
283
|
-
var text = "Warning: " + message;
|
|
284
|
-
if (typeof console !== "undefined") {
|
|
285
|
-
console.warn(text);
|
|
286
|
-
}
|
|
287
|
-
try {
|
|
288
|
-
throw Error(text);
|
|
289
|
-
} catch (x2) {
|
|
290
|
-
}
|
|
291
|
-
}
|
|
273
|
+
function warning(condition, message) {
|
|
292
274
|
}
|
|
293
275
|
let routerContext = React.createContext(null);
|
|
294
276
|
function getRouterContext() {
|
|
@@ -303,9 +285,8 @@ function getRouterContext() {
|
|
|
303
285
|
}
|
|
304
286
|
function useRouter(opts) {
|
|
305
287
|
const value = React.useContext(getRouterContext());
|
|
306
|
-
warning
|
|
307
|
-
!(((opts == null ? void 0 : opts.warn) ?? true) && !value)
|
|
308
|
-
"useRouter must be used inside a <RouterProvider> component!"
|
|
288
|
+
warning(
|
|
289
|
+
!(((opts == null ? void 0 : opts.warn) ?? true) && !value)
|
|
309
290
|
);
|
|
310
291
|
return value;
|
|
311
292
|
}
|
|
@@ -326,192 +307,46 @@ var useSyncExternalStoreShim_production_min = {};
|
|
|
326
307
|
* This source code is licensed under the MIT license found in the
|
|
327
308
|
* LICENSE file in the root directory of this source tree.
|
|
328
309
|
*/
|
|
329
|
-
var
|
|
330
|
-
function
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
r2(c2) && g2({ inst: c2 });
|
|
350
|
-
});
|
|
351
|
-
}, [a2]);
|
|
352
|
-
p2(d2);
|
|
353
|
-
return d2;
|
|
354
|
-
}
|
|
355
|
-
function r2(a2) {
|
|
356
|
-
var b2 = a2.getSnapshot;
|
|
357
|
-
a2 = a2.value;
|
|
358
|
-
try {
|
|
359
|
-
var d2 = b2();
|
|
360
|
-
return !k2(a2, d2);
|
|
361
|
-
} catch (f2) {
|
|
362
|
-
return true;
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
function t2(a2, b2) {
|
|
366
|
-
return b2();
|
|
367
|
-
}
|
|
368
|
-
var u2 = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? t2 : q2;
|
|
369
|
-
useSyncExternalStoreShim_production_min.useSyncExternalStore = void 0 !== e2.useSyncExternalStore ? e2.useSyncExternalStore : u2;
|
|
370
|
-
return useSyncExternalStoreShim_production_min;
|
|
310
|
+
var e$2 = React__default;
|
|
311
|
+
function h$3(a2, b2) {
|
|
312
|
+
return a2 === b2 && (0 !== a2 || 1 / a2 === 1 / b2) || a2 !== a2 && b2 !== b2;
|
|
313
|
+
}
|
|
314
|
+
var k$1 = "function" === typeof Object.is ? Object.is : h$3, l$1 = e$2.useState, m$1 = e$2.useEffect, n$2 = e$2.useLayoutEffect, p$3 = e$2.useDebugValue;
|
|
315
|
+
function q$2(a2, b2) {
|
|
316
|
+
var d2 = b2(), f2 = l$1({ inst: { value: d2, getSnapshot: b2 } }), c2 = f2[0].inst, g2 = f2[1];
|
|
317
|
+
n$2(function() {
|
|
318
|
+
c2.value = d2;
|
|
319
|
+
c2.getSnapshot = b2;
|
|
320
|
+
r$3(c2) && g2({ inst: c2 });
|
|
321
|
+
}, [a2, d2, b2]);
|
|
322
|
+
m$1(function() {
|
|
323
|
+
r$3(c2) && g2({ inst: c2 });
|
|
324
|
+
return a2(function() {
|
|
325
|
+
r$3(c2) && g2({ inst: c2 });
|
|
326
|
+
});
|
|
327
|
+
}, [a2]);
|
|
328
|
+
p$3(d2);
|
|
329
|
+
return d2;
|
|
371
330
|
}
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
* LICENSE file in the root directory of this source tree.
|
|
381
|
-
*/
|
|
382
|
-
var hasRequiredUseSyncExternalStoreShim_development;
|
|
383
|
-
function requireUseSyncExternalStoreShim_development() {
|
|
384
|
-
if (hasRequiredUseSyncExternalStoreShim_development)
|
|
385
|
-
return useSyncExternalStoreShim_development;
|
|
386
|
-
hasRequiredUseSyncExternalStoreShim_development = 1;
|
|
387
|
-
if (process.env.NODE_ENV !== "production") {
|
|
388
|
-
(function() {
|
|
389
|
-
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
|
|
390
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
391
|
-
}
|
|
392
|
-
var React2 = React__default;
|
|
393
|
-
var ReactSharedInternals = React2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
394
|
-
function error(format) {
|
|
395
|
-
{
|
|
396
|
-
{
|
|
397
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
398
|
-
args[_key2 - 1] = arguments[_key2];
|
|
399
|
-
}
|
|
400
|
-
printWarning("error", format, args);
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
function printWarning(level, format, args) {
|
|
405
|
-
{
|
|
406
|
-
var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
407
|
-
var stack = ReactDebugCurrentFrame.getStackAddendum();
|
|
408
|
-
if (stack !== "") {
|
|
409
|
-
format += "%s";
|
|
410
|
-
args = args.concat([stack]);
|
|
411
|
-
}
|
|
412
|
-
var argsWithFormat = args.map(function(item) {
|
|
413
|
-
return String(item);
|
|
414
|
-
});
|
|
415
|
-
argsWithFormat.unshift("Warning: " + format);
|
|
416
|
-
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
417
|
-
}
|
|
418
|
-
}
|
|
419
|
-
function is(x2, y2) {
|
|
420
|
-
return x2 === y2 && (x2 !== 0 || 1 / x2 === 1 / y2) || x2 !== x2 && y2 !== y2;
|
|
421
|
-
}
|
|
422
|
-
var objectIs = typeof Object.is === "function" ? Object.is : is;
|
|
423
|
-
var useState2 = React2.useState, useEffect2 = React2.useEffect, useLayoutEffect2 = React2.useLayoutEffect, useDebugValue2 = React2.useDebugValue;
|
|
424
|
-
var didWarnOld18Alpha = false;
|
|
425
|
-
var didWarnUncachedGetSnapshot = false;
|
|
426
|
-
function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
|
|
427
|
-
{
|
|
428
|
-
if (!didWarnOld18Alpha) {
|
|
429
|
-
if (React2.startTransition !== void 0) {
|
|
430
|
-
didWarnOld18Alpha = true;
|
|
431
|
-
error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.");
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
var value = getSnapshot();
|
|
436
|
-
{
|
|
437
|
-
if (!didWarnUncachedGetSnapshot) {
|
|
438
|
-
var cachedValue = getSnapshot();
|
|
439
|
-
if (!objectIs(value, cachedValue)) {
|
|
440
|
-
error("The result of getSnapshot should be cached to avoid an infinite loop");
|
|
441
|
-
didWarnUncachedGetSnapshot = true;
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
var _useState = useState2({
|
|
446
|
-
inst: {
|
|
447
|
-
value,
|
|
448
|
-
getSnapshot
|
|
449
|
-
}
|
|
450
|
-
}), inst = _useState[0].inst, forceUpdate = _useState[1];
|
|
451
|
-
useLayoutEffect2(function() {
|
|
452
|
-
inst.value = value;
|
|
453
|
-
inst.getSnapshot = getSnapshot;
|
|
454
|
-
if (checkIfSnapshotChanged(inst)) {
|
|
455
|
-
forceUpdate({
|
|
456
|
-
inst
|
|
457
|
-
});
|
|
458
|
-
}
|
|
459
|
-
}, [subscribe, value, getSnapshot]);
|
|
460
|
-
useEffect2(function() {
|
|
461
|
-
if (checkIfSnapshotChanged(inst)) {
|
|
462
|
-
forceUpdate({
|
|
463
|
-
inst
|
|
464
|
-
});
|
|
465
|
-
}
|
|
466
|
-
var handleStoreChange = function() {
|
|
467
|
-
if (checkIfSnapshotChanged(inst)) {
|
|
468
|
-
forceUpdate({
|
|
469
|
-
inst
|
|
470
|
-
});
|
|
471
|
-
}
|
|
472
|
-
};
|
|
473
|
-
return subscribe(handleStoreChange);
|
|
474
|
-
}, [subscribe]);
|
|
475
|
-
useDebugValue2(value);
|
|
476
|
-
return value;
|
|
477
|
-
}
|
|
478
|
-
function checkIfSnapshotChanged(inst) {
|
|
479
|
-
var latestGetSnapshot = inst.getSnapshot;
|
|
480
|
-
var prevValue = inst.value;
|
|
481
|
-
try {
|
|
482
|
-
var nextValue = latestGetSnapshot();
|
|
483
|
-
return !objectIs(prevValue, nextValue);
|
|
484
|
-
} catch (error2) {
|
|
485
|
-
return true;
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
function useSyncExternalStore$1(subscribe, getSnapshot, getServerSnapshot) {
|
|
489
|
-
return getSnapshot();
|
|
490
|
-
}
|
|
491
|
-
var canUseDOM = !!(typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined");
|
|
492
|
-
var isServerEnvironment = !canUseDOM;
|
|
493
|
-
var shim2 = isServerEnvironment ? useSyncExternalStore$1 : useSyncExternalStore;
|
|
494
|
-
var useSyncExternalStore$2 = React2.useSyncExternalStore !== void 0 ? React2.useSyncExternalStore : shim2;
|
|
495
|
-
useSyncExternalStoreShim_development.useSyncExternalStore = useSyncExternalStore$2;
|
|
496
|
-
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
|
|
497
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
498
|
-
}
|
|
499
|
-
})();
|
|
331
|
+
function r$3(a2) {
|
|
332
|
+
var b2 = a2.getSnapshot;
|
|
333
|
+
a2 = a2.value;
|
|
334
|
+
try {
|
|
335
|
+
var d2 = b2();
|
|
336
|
+
return !k$1(a2, d2);
|
|
337
|
+
} catch (f2) {
|
|
338
|
+
return true;
|
|
500
339
|
}
|
|
501
|
-
return useSyncExternalStoreShim_development;
|
|
502
340
|
}
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
} else {
|
|
511
|
-
shim.exports = requireUseSyncExternalStoreShim_development();
|
|
512
|
-
}
|
|
513
|
-
return shim.exports;
|
|
341
|
+
function t$3(a2, b2) {
|
|
342
|
+
return b2();
|
|
343
|
+
}
|
|
344
|
+
var u$3 = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? t$3 : q$2;
|
|
345
|
+
useSyncExternalStoreShim_production_min.useSyncExternalStore = void 0 !== e$2.useSyncExternalStore ? e$2.useSyncExternalStore : u$3;
|
|
346
|
+
{
|
|
347
|
+
shim.exports = useSyncExternalStoreShim_production_min;
|
|
514
348
|
}
|
|
349
|
+
var shimExports = shim.exports;
|
|
515
350
|
/**
|
|
516
351
|
* @license React
|
|
517
352
|
* use-sync-external-store-shim/with-selector.production.min.js
|
|
@@ -521,165 +356,57 @@ function requireShim() {
|
|
|
521
356
|
* This source code is licensed under the MIT license found in the
|
|
522
357
|
* LICENSE file in the root directory of this source tree.
|
|
523
358
|
*/
|
|
524
|
-
var
|
|
525
|
-
function
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
f2 = c2.current;
|
|
541
|
-
c2 = v2(function() {
|
|
542
|
-
function a3(a4) {
|
|
543
|
-
if (!c3) {
|
|
544
|
-
c3 = true;
|
|
545
|
-
d3 = a4;
|
|
546
|
-
a4 = l2(a4);
|
|
547
|
-
if (void 0 !== g2 && f2.hasValue) {
|
|
548
|
-
var b3 = f2.value;
|
|
549
|
-
if (g2(b3, a4))
|
|
550
|
-
return k2 = b3;
|
|
551
|
-
}
|
|
552
|
-
return k2 = a4;
|
|
553
|
-
}
|
|
554
|
-
b3 = k2;
|
|
555
|
-
if (q2(d3, a4))
|
|
556
|
-
return b3;
|
|
557
|
-
var e3 = l2(a4);
|
|
558
|
-
if (void 0 !== g2 && g2(b3, e3))
|
|
559
|
-
return b3;
|
|
359
|
+
var h$2 = React__default, n$1 = shimExports;
|
|
360
|
+
function p$2(a2, b2) {
|
|
361
|
+
return a2 === b2 && (0 !== a2 || 1 / a2 === 1 / b2) || a2 !== a2 && b2 !== b2;
|
|
362
|
+
}
|
|
363
|
+
var q$1 = "function" === typeof Object.is ? Object.is : p$2, r$2 = n$1.useSyncExternalStore, t$2 = h$2.useRef, u$2 = h$2.useEffect, v$2 = h$2.useMemo, w$2 = h$2.useDebugValue;
|
|
364
|
+
withSelector_production_min.useSyncExternalStoreWithSelector = function(a2, b2, e2, l2, g2) {
|
|
365
|
+
var c2 = t$2(null);
|
|
366
|
+
if (null === c2.current) {
|
|
367
|
+
var f2 = { hasValue: false, value: null };
|
|
368
|
+
c2.current = f2;
|
|
369
|
+
} else
|
|
370
|
+
f2 = c2.current;
|
|
371
|
+
c2 = v$2(function() {
|
|
372
|
+
function a3(a4) {
|
|
373
|
+
if (!c3) {
|
|
374
|
+
c3 = true;
|
|
560
375
|
d3 = a4;
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
return
|
|
568
|
-
}
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
if (process.env.NODE_ENV !== "production") {
|
|
596
|
-
(function() {
|
|
597
|
-
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
|
|
598
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
599
|
-
}
|
|
600
|
-
var React2 = React__default;
|
|
601
|
-
var shim2 = requireShim();
|
|
602
|
-
function is(x2, y2) {
|
|
603
|
-
return x2 === y2 && (x2 !== 0 || 1 / x2 === 1 / y2) || x2 !== x2 && y2 !== y2;
|
|
604
|
-
}
|
|
605
|
-
var objectIs = typeof Object.is === "function" ? Object.is : is;
|
|
606
|
-
var useSyncExternalStore = shim2.useSyncExternalStore;
|
|
607
|
-
var useRef2 = React2.useRef, useEffect2 = React2.useEffect, useMemo2 = React2.useMemo, useDebugValue2 = React2.useDebugValue;
|
|
608
|
-
function useSyncExternalStoreWithSelector2(subscribe, getSnapshot, getServerSnapshot, selector2, isEqual2) {
|
|
609
|
-
var instRef = useRef2(null);
|
|
610
|
-
var inst;
|
|
611
|
-
if (instRef.current === null) {
|
|
612
|
-
inst = {
|
|
613
|
-
hasValue: false,
|
|
614
|
-
value: null
|
|
615
|
-
};
|
|
616
|
-
instRef.current = inst;
|
|
617
|
-
} else {
|
|
618
|
-
inst = instRef.current;
|
|
619
|
-
}
|
|
620
|
-
var _useMemo = useMemo2(function() {
|
|
621
|
-
var hasMemo = false;
|
|
622
|
-
var memoizedSnapshot;
|
|
623
|
-
var memoizedSelection;
|
|
624
|
-
var memoizedSelector = function(nextSnapshot) {
|
|
625
|
-
if (!hasMemo) {
|
|
626
|
-
hasMemo = true;
|
|
627
|
-
memoizedSnapshot = nextSnapshot;
|
|
628
|
-
var _nextSelection = selector2(nextSnapshot);
|
|
629
|
-
if (isEqual2 !== void 0) {
|
|
630
|
-
if (inst.hasValue) {
|
|
631
|
-
var currentSelection = inst.value;
|
|
632
|
-
if (isEqual2(currentSelection, _nextSelection)) {
|
|
633
|
-
memoizedSelection = currentSelection;
|
|
634
|
-
return currentSelection;
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
memoizedSelection = _nextSelection;
|
|
639
|
-
return _nextSelection;
|
|
640
|
-
}
|
|
641
|
-
var prevSnapshot = memoizedSnapshot;
|
|
642
|
-
var prevSelection = memoizedSelection;
|
|
643
|
-
if (objectIs(prevSnapshot, nextSnapshot)) {
|
|
644
|
-
return prevSelection;
|
|
645
|
-
}
|
|
646
|
-
var nextSelection = selector2(nextSnapshot);
|
|
647
|
-
if (isEqual2 !== void 0 && isEqual2(prevSelection, nextSelection)) {
|
|
648
|
-
return prevSelection;
|
|
649
|
-
}
|
|
650
|
-
memoizedSnapshot = nextSnapshot;
|
|
651
|
-
memoizedSelection = nextSelection;
|
|
652
|
-
return nextSelection;
|
|
653
|
-
};
|
|
654
|
-
var maybeGetServerSnapshot = getServerSnapshot === void 0 ? null : getServerSnapshot;
|
|
655
|
-
var getSnapshotWithSelector = function() {
|
|
656
|
-
return memoizedSelector(getSnapshot());
|
|
657
|
-
};
|
|
658
|
-
var getServerSnapshotWithSelector = maybeGetServerSnapshot === null ? void 0 : function() {
|
|
659
|
-
return memoizedSelector(maybeGetServerSnapshot());
|
|
660
|
-
};
|
|
661
|
-
return [getSnapshotWithSelector, getServerSnapshotWithSelector];
|
|
662
|
-
}, [getSnapshot, getServerSnapshot, selector2, isEqual2]), getSelection = _useMemo[0], getServerSelection = _useMemo[1];
|
|
663
|
-
var value = useSyncExternalStore(subscribe, getSelection, getServerSelection);
|
|
664
|
-
useEffect2(function() {
|
|
665
|
-
inst.hasValue = true;
|
|
666
|
-
inst.value = value;
|
|
667
|
-
}, [value]);
|
|
668
|
-
useDebugValue2(value);
|
|
669
|
-
return value;
|
|
670
|
-
}
|
|
671
|
-
withSelector_development.useSyncExternalStoreWithSelector = useSyncExternalStoreWithSelector2;
|
|
672
|
-
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
|
|
673
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
674
|
-
}
|
|
675
|
-
})();
|
|
676
|
-
}
|
|
677
|
-
return withSelector_development;
|
|
678
|
-
}
|
|
679
|
-
if (process.env.NODE_ENV === "production") {
|
|
680
|
-
withSelector.exports = requireWithSelector_production_min();
|
|
681
|
-
} else {
|
|
682
|
-
withSelector.exports = requireWithSelector_development();
|
|
376
|
+
a4 = l2(a4);
|
|
377
|
+
if (void 0 !== g2 && f2.hasValue) {
|
|
378
|
+
var b3 = f2.value;
|
|
379
|
+
if (g2(b3, a4))
|
|
380
|
+
return k2 = b3;
|
|
381
|
+
}
|
|
382
|
+
return k2 = a4;
|
|
383
|
+
}
|
|
384
|
+
b3 = k2;
|
|
385
|
+
if (q$1(d3, a4))
|
|
386
|
+
return b3;
|
|
387
|
+
var e3 = l2(a4);
|
|
388
|
+
if (void 0 !== g2 && g2(b3, e3))
|
|
389
|
+
return b3;
|
|
390
|
+
d3 = a4;
|
|
391
|
+
return k2 = e3;
|
|
392
|
+
}
|
|
393
|
+
var c3 = false, d3, k2, m2 = void 0 === e2 ? null : e2;
|
|
394
|
+
return [function() {
|
|
395
|
+
return a3(b2());
|
|
396
|
+
}, null === m2 ? void 0 : function() {
|
|
397
|
+
return a3(m2());
|
|
398
|
+
}];
|
|
399
|
+
}, [b2, e2, l2, g2]);
|
|
400
|
+
var d2 = r$2(a2, c2[0], c2[1]);
|
|
401
|
+
u$2(function() {
|
|
402
|
+
f2.hasValue = true;
|
|
403
|
+
f2.value = d2;
|
|
404
|
+
}, [d2]);
|
|
405
|
+
w$2(d2);
|
|
406
|
+
return d2;
|
|
407
|
+
};
|
|
408
|
+
{
|
|
409
|
+
withSelector.exports = withSelector_production_min;
|
|
683
410
|
}
|
|
684
411
|
var withSelectorExports = withSelector.exports;
|
|
685
412
|
const useSyncExternalStoreExports = /* @__PURE__ */ getDefaultExportFromCjs(withSelectorExports);
|
|
@@ -815,7 +542,7 @@ class CatchBoundaryImpl extends React.Component {
|
|
|
815
542
|
}
|
|
816
543
|
}
|
|
817
544
|
function ErrorComponent({ error }) {
|
|
818
|
-
const [show, setShow] = React.useState(
|
|
545
|
+
const [show, setShow] = React.useState(false);
|
|
819
546
|
return /* @__PURE__ */ jsxs("div", { style: { padding: ".5rem", maxWidth: "100%" }, children: [
|
|
820
547
|
/* @__PURE__ */ jsxs("div", { style: { display: "flex", alignItems: "center", gap: ".5rem" }, children: [
|
|
821
548
|
/* @__PURE__ */ jsx("strong", { style: { fontSize: "1rem" }, children: "Something went wrong!" }),
|
|
@@ -1006,10 +733,6 @@ function Matches() {
|
|
|
1006
733
|
},
|
|
1007
734
|
errorComponent: ErrorComponent,
|
|
1008
735
|
onCatch: (error) => {
|
|
1009
|
-
warning$1(
|
|
1010
|
-
false,
|
|
1011
|
-
`The following error wasn't caught by any route! 👇 At the very least, consider setting an 'errorComponent' in your RootRoute!`
|
|
1012
|
-
);
|
|
1013
736
|
console.error(error);
|
|
1014
737
|
},
|
|
1015
738
|
children: matchId ? /* @__PURE__ */ jsx(Match, { matchId }) : null
|
|
@@ -1029,8 +752,7 @@ function Match({ matchId }) {
|
|
|
1029
752
|
}
|
|
1030
753
|
});
|
|
1031
754
|
invariant$2(
|
|
1032
|
-
routeId
|
|
1033
|
-
`Could not find routeId for matchId "${matchId}". Please file an issue!`
|
|
755
|
+
routeId
|
|
1034
756
|
);
|
|
1035
757
|
const route = router.routesById[routeId];
|
|
1036
758
|
const PendingComponent = route.options.pendingComponent ?? router.options.defaultPendingComponent;
|
|
@@ -1054,7 +776,6 @@ function Match({ matchId }) {
|
|
|
1054
776
|
onCatch: (error) => {
|
|
1055
777
|
if (isNotFound(error))
|
|
1056
778
|
throw error;
|
|
1057
|
-
warning$1(false, `Error in route match: ${matchId}`);
|
|
1058
779
|
console.error(error);
|
|
1059
780
|
},
|
|
1060
781
|
children: /* @__PURE__ */ jsx(
|
|
@@ -1101,15 +822,11 @@ function MatchInner({
|
|
|
1101
822
|
} else {
|
|
1102
823
|
error = match.error;
|
|
1103
824
|
}
|
|
1104
|
-
invariant$2(isNotFound(error)
|
|
825
|
+
invariant$2(isNotFound(error));
|
|
1105
826
|
return renderRouteNotFound(router, route, error);
|
|
1106
827
|
}
|
|
1107
828
|
if (match.status === "redirected") {
|
|
1108
|
-
invariant$2(isRedirect(match.error)
|
|
1109
|
-
warning$1(
|
|
1110
|
-
false,
|
|
1111
|
-
"Tried to render a redirected route match! This is a weird circumstance, please file an issue!"
|
|
1112
|
-
);
|
|
829
|
+
invariant$2(isRedirect(match.error));
|
|
1113
830
|
return null;
|
|
1114
831
|
}
|
|
1115
832
|
if (match.status === "error") {
|
|
@@ -1145,8 +862,7 @@ function MatchInner({
|
|
|
1145
862
|
return /* @__PURE__ */ jsx(Outlet, {});
|
|
1146
863
|
}
|
|
1147
864
|
invariant$2(
|
|
1148
|
-
false
|
|
1149
|
-
"Idle routeMatch status encountered during rendering! You should never see this. File an issue!"
|
|
865
|
+
false
|
|
1150
866
|
);
|
|
1151
867
|
}
|
|
1152
868
|
const Outlet = React.memo(function Outlet2() {
|
|
@@ -1164,8 +880,7 @@ const Outlet = React.memo(function Outlet2() {
|
|
|
1164
880
|
const matches = getRenderedMatches(s2);
|
|
1165
881
|
const parentMatch = matches.find((d2) => d2.id === matchId);
|
|
1166
882
|
invariant$2(
|
|
1167
|
-
parentMatch
|
|
1168
|
-
`Could not find parent match for matchId "${matchId}"`
|
|
883
|
+
parentMatch
|
|
1169
884
|
);
|
|
1170
885
|
return {
|
|
1171
886
|
parentGlobalNotFound: parentMatch.globalNotFound
|
|
@@ -1193,12 +908,6 @@ function renderRouteNotFound(router, route, data) {
|
|
|
1193
908
|
if (router.options.defaultNotFoundComponent) {
|
|
1194
909
|
return /* @__PURE__ */ jsx(router.options.defaultNotFoundComponent, { data });
|
|
1195
910
|
}
|
|
1196
|
-
if (process.env.NODE_ENV === "development") {
|
|
1197
|
-
warning$1(
|
|
1198
|
-
route.options.notFoundComponent,
|
|
1199
|
-
`A notFoundError was encountered on the route with ID "${route.id}", but a notFoundComponent option was not configured, nor was a router level defaultNotFoundComponent configured. Consider configuring at least one of these to avoid TanStack Router's overly generic defaultNotFoundComponent (<div>Not Found<div>)`
|
|
1200
|
-
);
|
|
1201
|
-
}
|
|
1202
911
|
return /* @__PURE__ */ jsx(DefaultGlobalNotFound, {});
|
|
1203
912
|
}
|
|
1204
913
|
return /* @__PURE__ */ jsx(route.options.notFoundComponent, { data });
|
|
@@ -1268,9 +977,6 @@ function defaultDeserializeError(serializedData) {
|
|
|
1268
977
|
if ("name" in serializedData && "message" in serializedData) {
|
|
1269
978
|
const error = new Error(serializedData.message);
|
|
1270
979
|
error.name = serializedData.name;
|
|
1271
|
-
if (process.env.NODE_ENV === "development") {
|
|
1272
|
-
error.stack = serializedData.stack;
|
|
1273
|
-
}
|
|
1274
980
|
return error;
|
|
1275
981
|
}
|
|
1276
982
|
return serializedData.data;
|
|
@@ -1505,8 +1211,7 @@ let Route$7 = class Route {
|
|
|
1505
1211
|
this.path = rootRouteId;
|
|
1506
1212
|
} else {
|
|
1507
1213
|
invariant$2(
|
|
1508
|
-
this.parentRoute
|
|
1509
|
-
`Child Route instances must pass a 'getParentRoute: () => ParentRoute' option that returns a Route instance.`
|
|
1214
|
+
this.parentRoute
|
|
1510
1215
|
);
|
|
1511
1216
|
}
|
|
1512
1217
|
let path = isRoot ? rootRouteId : options2.path;
|
|
@@ -1571,8 +1276,7 @@ let Route$7 = class Route {
|
|
|
1571
1276
|
this.options = options || {};
|
|
1572
1277
|
this.isRoot = !(options == null ? void 0 : options.getParentRoute);
|
|
1573
1278
|
invariant$2(
|
|
1574
|
-
!((options == null ? void 0 : options.id) && (options == null ? void 0 : options.path))
|
|
1575
|
-
`Route cannot have both an 'id' and a 'path' option.`
|
|
1279
|
+
!((options == null ? void 0 : options.id) && (options == null ? void 0 : options.path))
|
|
1576
1280
|
);
|
|
1577
1281
|
this.$$typeof = Symbol.for("react.memo");
|
|
1578
1282
|
}
|
|
@@ -2345,8 +2049,7 @@ class Router {
|
|
|
2345
2049
|
} catch (e2) {
|
|
2346
2050
|
}
|
|
2347
2051
|
invariant$2(
|
|
2348
|
-
!isExternal
|
|
2349
|
-
"Attempting to navigate to external url with this.navigate!"
|
|
2052
|
+
!isExternal
|
|
2350
2053
|
);
|
|
2351
2054
|
return this.buildAndCommitLocation({
|
|
2352
2055
|
...rest,
|
|
@@ -2595,8 +2298,7 @@ class Router {
|
|
|
2595
2298
|
(this.state.pendingMatches || this.state.matches).find((d2) => d2.id === match.id);
|
|
2596
2299
|
handleError(err);
|
|
2597
2300
|
invariant$2(
|
|
2598
|
-
false
|
|
2599
|
-
"You need to redirect from a background fetch? This is not supported yet. File an issue."
|
|
2301
|
+
false
|
|
2600
2302
|
);
|
|
2601
2303
|
}
|
|
2602
2304
|
}
|
|
@@ -2859,10 +2561,6 @@ class Router {
|
|
|
2859
2561
|
return this.registeredDeferreds.get(token);
|
|
2860
2562
|
};
|
|
2861
2563
|
this.dehydrateData = (key, getData) => {
|
|
2862
|
-
warning$1(
|
|
2863
|
-
false,
|
|
2864
|
-
`The dehydrateData method is deprecated. Please use the injectHtml method to inject your own data.`
|
|
2865
|
-
);
|
|
2866
2564
|
if (typeof document === "undefined") {
|
|
2867
2565
|
const strKey = typeof key === "string" ? key : JSON.stringify(key);
|
|
2868
2566
|
this.injectHtml(async () => {
|
|
@@ -2879,10 +2577,6 @@ class Router {
|
|
|
2879
2577
|
return () => void 0;
|
|
2880
2578
|
};
|
|
2881
2579
|
this.hydrateData = (key) => {
|
|
2882
|
-
warning$1(
|
|
2883
|
-
false,
|
|
2884
|
-
`The hydrateData method is deprecated. Please use the extractHtml method to extract your own data.`
|
|
2885
|
-
);
|
|
2886
2580
|
if (typeof document !== "undefined") {
|
|
2887
2581
|
const strKey = typeof key === "string" ? key : JSON.stringify(key);
|
|
2888
2582
|
return this.options.transformer.parse(
|
|
@@ -2915,8 +2609,7 @@ class Router {
|
|
|
2915
2609
|
_ctx = (_a = window.__TSR_DEHYDRATED__) == null ? void 0 : _a.data;
|
|
2916
2610
|
}
|
|
2917
2611
|
invariant$2(
|
|
2918
|
-
_ctx
|
|
2919
|
-
"Expected to find a __TSR_DEHYDRATED__ property on window... but we did not. Did you forget to render <DehydrateRouter /> in your app?"
|
|
2612
|
+
_ctx
|
|
2920
2613
|
);
|
|
2921
2614
|
const ctx = this.options.transformer.parse(_ctx);
|
|
2922
2615
|
this.dehydratedData = ctx.payload;
|
|
@@ -2968,8 +2661,7 @@ class Router {
|
|
|
2968
2661
|
while (!routeCursor.options.notFoundComponent && !this.options.defaultNotFoundComponent && routeCursor.id !== rootRouteId) {
|
|
2969
2662
|
routeCursor = routeCursor == null ? void 0 : routeCursor.parentRoute;
|
|
2970
2663
|
invariant$2(
|
|
2971
|
-
routeCursor
|
|
2972
|
-
"Found invalid route tree while trying to find not-found handler."
|
|
2664
|
+
routeCursor
|
|
2973
2665
|
);
|
|
2974
2666
|
}
|
|
2975
2667
|
let match = matchesByRouteId[routeCursor.id];
|
|
@@ -3035,9 +2727,6 @@ function defaultSerializeError(err) {
|
|
|
3035
2727
|
name: err.name,
|
|
3036
2728
|
message: err.message
|
|
3037
2729
|
};
|
|
3038
|
-
if (process.env.NODE_ENV === "development") {
|
|
3039
|
-
obj.stack = err.stack;
|
|
3040
|
-
}
|
|
3041
2730
|
return obj;
|
|
3042
2731
|
}
|
|
3043
2732
|
return {
|
|
@@ -3053,9 +2742,8 @@ class FileRoute {
|
|
|
3053
2742
|
constructor(path, _opts) {
|
|
3054
2743
|
this.path = path;
|
|
3055
2744
|
this.createRoute = (options) => {
|
|
3056
|
-
warning
|
|
3057
|
-
this.silent
|
|
3058
|
-
"FileRoute is deprecated and will be removed in the next major version. Use the createFileRoute(path)(options) function instead."
|
|
2745
|
+
warning(
|
|
2746
|
+
this.silent
|
|
3059
2747
|
);
|
|
3060
2748
|
const route = createRoute(options);
|
|
3061
2749
|
route.isRoot = false;
|
|
@@ -4571,9 +4259,6 @@ function createAriaHider(containerNode, selector2 = "body > :not(script)") {
|
|
|
4571
4259
|
const TABBABLE_NODES = /input|select|textarea|button|object/;
|
|
4572
4260
|
const FOCUS_SELECTOR = "a, input, select, textarea, button, object, [tabindex]";
|
|
4573
4261
|
function hidden(element) {
|
|
4574
|
-
if (process.env.NODE_ENV === "test") {
|
|
4575
|
-
return false;
|
|
4576
|
-
}
|
|
4577
4262
|
return element.style.display === "none";
|
|
4578
4263
|
}
|
|
4579
4264
|
function visible(element) {
|
|
@@ -4656,11 +4341,6 @@ function useFocusTrap(active = true) {
|
|
|
4656
4341
|
}
|
|
4657
4342
|
if (focusElement) {
|
|
4658
4343
|
focusElement.focus({ preventScroll: true });
|
|
4659
|
-
} else if (process.env.NODE_ENV === "development") {
|
|
4660
|
-
console.warn(
|
|
4661
|
-
"[@mantine/hooks/use-focus-trap] Failed to find focusable element within provided node",
|
|
4662
|
-
node
|
|
4663
|
-
);
|
|
4664
4344
|
}
|
|
4665
4345
|
};
|
|
4666
4346
|
const setRef = useCallback(
|
|
@@ -4683,8 +4363,6 @@ function useFocusTrap(active = true) {
|
|
|
4683
4363
|
setTimeout(() => {
|
|
4684
4364
|
if (node.getRootNode()) {
|
|
4685
4365
|
focusNode(node);
|
|
4686
|
-
} else if (process.env.NODE_ENV === "development") {
|
|
4687
|
-
console.warn("[@mantine/hooks/use-focus-trap] Ref node is not part of the dom", node);
|
|
4688
4366
|
}
|
|
4689
4367
|
});
|
|
4690
4368
|
ref.current = node;
|
|
@@ -9848,9 +9526,6 @@ const useInsertionEffect = React[/* @__PURE__ */ "useInsertionEffect".toString()
|
|
|
9848
9526
|
const useSafeInsertionEffect = useInsertionEffect || ((fn) => fn());
|
|
9849
9527
|
function useEffectEvent(callback) {
|
|
9850
9528
|
const ref = React.useRef(() => {
|
|
9851
|
-
if (process.env.NODE_ENV !== "production") {
|
|
9852
|
-
throw new Error("Cannot call an event handler while rendering.");
|
|
9853
|
-
}
|
|
9854
9529
|
});
|
|
9855
9530
|
useSafeInsertionEffect(() => {
|
|
9856
9531
|
ref.current = callback;
|
|
@@ -10557,10 +10232,6 @@ function useDismiss(context, props) {
|
|
|
10557
10232
|
};
|
|
10558
10233
|
}, [enabled, referencePress, outsidePressEvent, referencePressEvent, onOpenChange, closeOnEscapeKeyDown]);
|
|
10559
10234
|
}
|
|
10560
|
-
let devMessageSet;
|
|
10561
|
-
if (process.env.NODE_ENV !== "production") {
|
|
10562
|
-
devMessageSet = /* @__PURE__ */ new Set();
|
|
10563
|
-
}
|
|
10564
10235
|
function useFloating(options) {
|
|
10565
10236
|
var _options$elements2;
|
|
10566
10237
|
if (options === void 0) {
|
|
@@ -10571,18 +10242,6 @@ function useFloating(options) {
|
|
|
10571
10242
|
onOpenChange: unstable_onOpenChange,
|
|
10572
10243
|
nodeId
|
|
10573
10244
|
} = options;
|
|
10574
|
-
if (process.env.NODE_ENV !== "production") {
|
|
10575
|
-
var _options$elements;
|
|
10576
|
-
const err = "Floating UI: Cannot pass a virtual element to the `elements.reference` option, as it must be a real DOM element. Use `refs.setPositionReference` instead.";
|
|
10577
|
-
if ((_options$elements = options.elements) != null && _options$elements.reference && !isElement(options.elements.reference)) {
|
|
10578
|
-
var _devMessageSet;
|
|
10579
|
-
if (!((_devMessageSet = devMessageSet) != null && _devMessageSet.has(err))) {
|
|
10580
|
-
var _devMessageSet2;
|
|
10581
|
-
(_devMessageSet2 = devMessageSet) == null || _devMessageSet2.add(err);
|
|
10582
|
-
console.error(err);
|
|
10583
|
-
}
|
|
10584
|
-
}
|
|
10585
|
-
}
|
|
10586
10245
|
const [_domReference, setDomReference] = React.useState(null);
|
|
10587
10246
|
const domReference = ((_options$elements2 = options.elements) == null ? void 0 : _options$elements2.reference) || _domReference;
|
|
10588
10247
|
const position = useFloating$1(options);
|
|
@@ -25896,9 +25555,6 @@ const getOverlappingArea = (rectA, rectB) => {
|
|
|
25896
25555
|
const isRectObject = (obj) => isNumeric(obj.width) && isNumeric(obj.height) && isNumeric(obj.x) && isNumeric(obj.y);
|
|
25897
25556
|
const isNumeric = (n2) => !isNaN(n2) && isFinite(n2);
|
|
25898
25557
|
const devWarn = (id2, message) => {
|
|
25899
|
-
if (process.env.NODE_ENV === "development") {
|
|
25900
|
-
console.warn(`[React Flow]: ${message} Help: https://reactflow.dev/error#${id2}`);
|
|
25901
|
-
}
|
|
25902
25558
|
};
|
|
25903
25559
|
const getPositionWithOrigin = ({ x: x2, y: y2, width, height, origin = [0, 0] }) => {
|
|
25904
25560
|
if (!width || !height || origin[0] < 0 || origin[1] < 0 || origin[0] > 1 || origin[1] > 1) {
|
|
@@ -26113,7 +25769,6 @@ const connectionExists = (edge, edges) => {
|
|
|
26113
25769
|
};
|
|
26114
25770
|
const addEdge = (edgeParams, edges) => {
|
|
26115
25771
|
if (!edgeParams.source || !edgeParams.target) {
|
|
26116
|
-
devWarn("006", errorMessages["error006"]());
|
|
26117
25772
|
return edges;
|
|
26118
25773
|
}
|
|
26119
25774
|
let edge;
|
|
@@ -26897,8 +26552,8 @@ function onPointerDown(event, { connectionMode, connectionRadius, handleId, node
|
|
|
26897
26552
|
if (!autoPanOnConnect || !containerBounds) {
|
|
26898
26553
|
return;
|
|
26899
26554
|
}
|
|
26900
|
-
const [
|
|
26901
|
-
panBy2({ x:
|
|
26555
|
+
const [x22, y22] = calcAutoPan(connectionPosition, containerBounds);
|
|
26556
|
+
panBy2({ x: x22, y: y22 });
|
|
26902
26557
|
autoPanId = requestAnimationFrame(autoPan);
|
|
26903
26558
|
}
|
|
26904
26559
|
connectionStartHandle = {
|
|
@@ -29965,16 +29620,9 @@ function ConnectionLineWrapper({ containerStyle: containerStyle2, style: style2,
|
|
|
29965
29620
|
}
|
|
29966
29621
|
const emptyTypes = {};
|
|
29967
29622
|
function useNodeOrEdgeTypesWarning(nodeOrEdgeTypes = emptyTypes) {
|
|
29968
|
-
|
|
29969
|
-
|
|
29623
|
+
useRef(0);
|
|
29624
|
+
useStoreApi();
|
|
29970
29625
|
useEffect(() => {
|
|
29971
|
-
var _a, _b;
|
|
29972
|
-
if (process.env.NODE_ENV === "development") {
|
|
29973
|
-
if (updateCount.current > 1) {
|
|
29974
|
-
(_b = (_a = store.getState()).onError) == null ? void 0 : _b.call(_a, "002", errorMessages["error002"]());
|
|
29975
|
-
}
|
|
29976
|
-
updateCount.current += 1;
|
|
29977
|
-
}
|
|
29978
29626
|
}, [nodeOrEdgeTypes]);
|
|
29979
29627
|
}
|
|
29980
29628
|
function GraphViewComponent({ nodeTypes: nodeTypes2, edgeTypes: edgeTypes2, onInit, onNodeClick, onEdgeClick, onNodeDoubleClick, onEdgeDoubleClick, onNodeMouseEnter, onNodeMouseMove, onNodeMouseLeave, onNodeContextMenu, onSelectionContextMenu, onSelectionStart, onSelectionEnd, connectionLineType, connectionLineStyle, connectionLineComponent, connectionLineContainerStyle, selectionKeyCode, selectionOnDrag, selectionMode, multiSelectionKeyCode, panActivationKeyCode, zoomActivationKeyCode, deleteKeyCode, onlyRenderVisibleElements, elementsSelectable, defaultViewport: defaultViewport2, translateExtent, minZoom, maxZoom, preventScrolling, defaultMarkerColor, zoomOnScroll, zoomOnPinch, panOnScroll, panOnScrollSpeed, panOnScrollMode, zoomOnDoubleClick, panOnDrag, onPaneClick, onPaneMouseEnter, onPaneMouseMove, onPaneMouseLeave, onPaneScroll, onPaneContextMenu, onEdgeUpdate, onEdgeContextMenu, onEdgeMouseEnter, onEdgeMouseMove, onEdgeMouseLeave, edgeUpdaterRadius, onEdgeUpdateStart, onEdgeUpdateEnd, noDragClassName, noWheelClassName, noPanClassName, disableKeyboardA11y, nodeOrigin, nodeExtent, rfId, viewport, onViewportChange }) {
|
|
@@ -30507,11 +30155,11 @@ function MiniMapNodes({
|
|
|
30507
30155
|
function NodeComponentWrapperInner({ id: id2, nodeOrigin, nodeColorFunc, nodeStrokeColorFunc, nodeClassNameFunc, nodeBorderRadius, nodeStrokeWidth, shapeRendering, NodeComponent, onClick }) {
|
|
30508
30156
|
const { node, x: x2, y: y2 } = useStore((s2) => {
|
|
30509
30157
|
const node2 = s2.nodeLookup.get(id2);
|
|
30510
|
-
const { x:
|
|
30158
|
+
const { x: x22, y: y22 } = getNodePositionWithOrigin(node2, (node2 == null ? void 0 : node2.origin) || nodeOrigin).positionAbsolute;
|
|
30511
30159
|
return {
|
|
30512
30160
|
node: node2,
|
|
30513
|
-
x:
|
|
30514
|
-
y:
|
|
30161
|
+
x: x22,
|
|
30162
|
+
y: y22
|
|
30515
30163
|
};
|
|
30516
30164
|
}, shallow$1);
|
|
30517
30165
|
if (!node || node.hidden || !nodeHasDimensions(node)) {
|
|
@@ -30615,8 +30263,8 @@ function MiniMapComponent({
|
|
|
30615
30263
|
}, [pannable, zoomable, inversePan, zoomStep, translateExtent, flowWidth, flowHeight]);
|
|
30616
30264
|
const onSvgClick = onClick ? (event) => {
|
|
30617
30265
|
var _a;
|
|
30618
|
-
const [
|
|
30619
|
-
onClick(event, { x:
|
|
30266
|
+
const [x22, y22] = ((_a = minimapInstance.current) == null ? void 0 : _a.pointer(event)) || [0, 0];
|
|
30267
|
+
onClick(event, { x: x22, y: y22 });
|
|
30620
30268
|
} : void 0;
|
|
30621
30269
|
const onSvgNodeClick = onNodeClick ? useCallback((event, nodeId) => {
|
|
30622
30270
|
const node = store.getState().nodeLookup.get(nodeId);
|
|
@@ -30796,7 +30444,7 @@ function E$1(r2) {
|
|
|
30796
30444
|
}
|
|
30797
30445
|
function h$1(e2, n2) {
|
|
30798
30446
|
const o2 = useContext(e2)[d$1];
|
|
30799
|
-
if ("object" == typeof process &&
|
|
30447
|
+
if ("object" == typeof process && false)
|
|
30800
30448
|
throw new Error("useContextSelector requires special context");
|
|
30801
30449
|
const { v: { current: c2 }, n: { current: u2 }, l: s2 } = o2, i2 = n2(c2), [p2, l2] = useReducer((e3, r2) => {
|
|
30802
30450
|
if (!r2)
|
|
@@ -30822,7 +30470,7 @@ function h$1(e2, n2) {
|
|
|
30822
30470
|
}
|
|
30823
30471
|
function b$1(e2) {
|
|
30824
30472
|
const t2 = useContext(e2)[d$1];
|
|
30825
|
-
if ("object" == typeof process &&
|
|
30473
|
+
if ("object" == typeof process && false)
|
|
30826
30474
|
throw new Error("useContextUpdate requires special context");
|
|
30827
30475
|
const { u: n2 } = t2;
|
|
30828
30476
|
return n2;
|
|
@@ -30959,7 +30607,7 @@ const createTrackedSelector = (useSelector) => {
|
|
|
30959
30607
|
return nextState;
|
|
30960
30608
|
}, []);
|
|
30961
30609
|
const state = useSelector(selector2);
|
|
30962
|
-
if (typeof process === "object" &&
|
|
30610
|
+
if (typeof process === "object" && false) {
|
|
30963
30611
|
useAffectedDebugValue(state, affected);
|
|
30964
30612
|
}
|
|
30965
30613
|
const proxyCache = useMemo(() => /* @__PURE__ */ new WeakMap(), []);
|
|
@@ -30993,7 +30641,7 @@ const createContainer = (useValue, options) => {
|
|
|
30993
30641
|
}, props.children));
|
|
30994
30642
|
};
|
|
30995
30643
|
const useSelector = (selector2) => {
|
|
30996
|
-
if (typeof process === "object" &&
|
|
30644
|
+
if (typeof process === "object" && false) {
|
|
30997
30645
|
const selectorOrig = selector2;
|
|
30998
30646
|
selector2 = (state) => {
|
|
30999
30647
|
if (state === void 0) {
|
|
@@ -31008,7 +30656,7 @@ const createContainer = (useValue, options) => {
|
|
|
31008
30656
|
};
|
|
31009
30657
|
const useTrackedState = createTrackedSelector(useSelector);
|
|
31010
30658
|
const useUpdate = concurrentMode ? () => {
|
|
31011
|
-
if (typeof process === "object" &&
|
|
30659
|
+
if (typeof process === "object" && false) {
|
|
31012
30660
|
throw new Error("Please use <Provider>");
|
|
31013
30661
|
}
|
|
31014
30662
|
const contextUpdate = b$1(StateContext);
|
|
@@ -31021,7 +30669,7 @@ const createContainer = (useValue, options) => {
|
|
|
31021
30669
|
return result;
|
|
31022
30670
|
}, [contextUpdate, update]);
|
|
31023
30671
|
} : () => {
|
|
31024
|
-
if (typeof process === "object" &&
|
|
30672
|
+
if (typeof process === "object" && false) {
|
|
31025
30673
|
throw new Error("Please use <Provider>");
|
|
31026
30674
|
}
|
|
31027
30675
|
return useContext(UpdateContext);
|
|
@@ -32601,20 +32249,7 @@ function isNone(value) {
|
|
|
32601
32249
|
return true;
|
|
32602
32250
|
}
|
|
32603
32251
|
}
|
|
32604
|
-
let warning = noop;
|
|
32605
32252
|
let invariant = noop;
|
|
32606
|
-
if (process.env.NODE_ENV !== "production") {
|
|
32607
|
-
warning = (check, message) => {
|
|
32608
|
-
if (!check && typeof console !== "undefined") {
|
|
32609
|
-
console.warn(message);
|
|
32610
|
-
}
|
|
32611
|
-
};
|
|
32612
|
-
invariant = (check, message) => {
|
|
32613
|
-
if (!check) {
|
|
32614
|
-
throw new Error(message);
|
|
32615
|
-
}
|
|
32616
|
-
};
|
|
32617
|
-
}
|
|
32618
32253
|
const isNumericalString = (v2) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(v2);
|
|
32619
32254
|
const splitCSSVariableRegex = (
|
|
32620
32255
|
// eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
|
|
@@ -32627,9 +32262,7 @@ function parseCSSVariable(current) {
|
|
|
32627
32262
|
const [, token1, token2, fallback] = match;
|
|
32628
32263
|
return [`--${token1 !== null && token1 !== void 0 ? token1 : token2}`, fallback];
|
|
32629
32264
|
}
|
|
32630
|
-
const maxDepth = 4;
|
|
32631
32265
|
function getVariableValue(current, element, depth = 1) {
|
|
32632
|
-
invariant(depth <= maxDepth, `Max CSS variable fallback depth detected in property "${current}". This may indicate a circular fallback dependency.`);
|
|
32633
32266
|
const [token, fallback] = parseCSSVariable(current);
|
|
32634
32267
|
if (!token)
|
|
32635
32268
|
return;
|
|
@@ -33159,7 +32792,6 @@ function canAnimate(keyframes2, name, type, velocity) {
|
|
|
33159
32792
|
const targetKeyframe = keyframes2[keyframes2.length - 1];
|
|
33160
32793
|
const isOriginAnimatable = isAnimatable(originKeyframe, name);
|
|
33161
32794
|
const isTargetAnimatable = isAnimatable(targetKeyframe, name);
|
|
33162
|
-
warning(isOriginAnimatable === isTargetAnimatable, `You are trying to animate ${name} from "${originKeyframe}" to "${targetKeyframe}". ${originKeyframe} is not an animatable value - to enable this animation set ${originKeyframe} to a value animatable to ${targetKeyframe} via the \`style\` property.`);
|
|
33163
32795
|
if (!isOriginAnimatable || !isTargetAnimatable) {
|
|
33164
32796
|
return false;
|
|
33165
32797
|
}
|
|
@@ -33251,7 +32883,6 @@ const maxDamping = 1;
|
|
|
33251
32883
|
function findSpring({ duration = 800, bounce = 0.25, velocity = 0, mass = 1 }) {
|
|
33252
32884
|
let envelope;
|
|
33253
32885
|
let derivative;
|
|
33254
|
-
warning(duration <= secondsToMilliseconds(maxDuration$1), "Spring duration must be 10 seconds or less");
|
|
33255
32886
|
let dampingRatio = 1 - bounce;
|
|
33256
32887
|
dampingRatio = clamp(minDamping, maxDamping, dampingRatio);
|
|
33257
32888
|
duration = clamp(minDuration, maxDuration$1, millisecondsToSeconds(duration));
|
|
@@ -33511,11 +33142,10 @@ const easingLookup = {
|
|
|
33511
33142
|
};
|
|
33512
33143
|
const easingDefinitionToFunction = (definition) => {
|
|
33513
33144
|
if (Array.isArray(definition)) {
|
|
33514
|
-
invariant(definition.length === 4
|
|
33145
|
+
invariant(definition.length === 4);
|
|
33515
33146
|
const [x1, y1, x2, y2] = definition;
|
|
33516
33147
|
return cubicBezier(x1, y1, x2, y2);
|
|
33517
33148
|
} else if (typeof definition === "string") {
|
|
33518
|
-
invariant(easingLookup[definition] !== void 0, `Invalid easing type '${definition}'`);
|
|
33519
33149
|
return easingLookup[definition];
|
|
33520
33150
|
}
|
|
33521
33151
|
return definition;
|
|
@@ -33572,7 +33202,6 @@ const colorTypes = [hex, rgba, hsla];
|
|
|
33572
33202
|
const getColorType = (v2) => colorTypes.find((type) => type.test(v2));
|
|
33573
33203
|
function asRGBA(color2) {
|
|
33574
33204
|
const type = getColorType(color2);
|
|
33575
|
-
invariant(Boolean(type), `'${color2}' is not an animatable color. Use the equivalent color code instead.`);
|
|
33576
33205
|
let model = type.parse(color2);
|
|
33577
33206
|
if (type === hsla) {
|
|
33578
33207
|
model = hslaToRgba(model);
|
|
@@ -33656,7 +33285,6 @@ const mixComplex = (origin, target) => {
|
|
|
33656
33285
|
if (canInterpolate) {
|
|
33657
33286
|
return pipe(mixArray(matchOrder(originStats, targetStats), targetStats.values), template);
|
|
33658
33287
|
} else {
|
|
33659
|
-
warning(true, `Complex values '${origin}' and '${target}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`);
|
|
33660
33288
|
return mixImmediate(origin, target);
|
|
33661
33289
|
}
|
|
33662
33290
|
};
|
|
@@ -33683,7 +33311,7 @@ function createMixers(output, ease2, customMixer) {
|
|
|
33683
33311
|
}
|
|
33684
33312
|
function interpolate(input, output, { clamp: isClamp = true, ease: ease2, mixer } = {}) {
|
|
33685
33313
|
const inputLength = input.length;
|
|
33686
|
-
invariant(inputLength === output.length
|
|
33314
|
+
invariant(inputLength === output.length);
|
|
33687
33315
|
if (inputLength === 1)
|
|
33688
33316
|
return () => output[0];
|
|
33689
33317
|
if (inputLength === 2 && input[0] === input[1])
|
|
@@ -33805,9 +33433,6 @@ class MainThreadAnimation extends BaseAnimation {
|
|
|
33805
33433
|
let mapPercentToKeyframes;
|
|
33806
33434
|
let mirroredGenerator;
|
|
33807
33435
|
if (generatorFactory !== keyframes && typeof keyframes$1[0] !== "number") {
|
|
33808
|
-
if (process.env.NODE_ENV !== "production") {
|
|
33809
|
-
invariant(keyframes$1.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${keyframes$1}`);
|
|
33810
|
-
}
|
|
33811
33436
|
mapPercentToKeyframes = pipe(percentToProgress, mix(keyframes$1[0], keyframes$1[1]));
|
|
33812
33437
|
keyframes$1 = [0, 100];
|
|
33813
33438
|
}
|
|
@@ -34378,15 +34003,6 @@ class SubscriptionManager {
|
|
|
34378
34003
|
this.subscriptions.length = 0;
|
|
34379
34004
|
}
|
|
34380
34005
|
}
|
|
34381
|
-
const warned = /* @__PURE__ */ new Set();
|
|
34382
|
-
function warnOnce(condition, message, element) {
|
|
34383
|
-
if (condition || warned.has(message))
|
|
34384
|
-
return;
|
|
34385
|
-
console.warn(message);
|
|
34386
|
-
if (element)
|
|
34387
|
-
console.warn(element);
|
|
34388
|
-
warned.add(message);
|
|
34389
|
-
}
|
|
34390
34006
|
const MAX_VELOCITY_DELTA = 30;
|
|
34391
34007
|
const isFloat = (value) => {
|
|
34392
34008
|
return !isNaN(parseFloat(value));
|
|
@@ -34472,9 +34088,6 @@ class MotionValue {
|
|
|
34472
34088
|
* @deprecated
|
|
34473
34089
|
*/
|
|
34474
34090
|
onChange(subscription) {
|
|
34475
|
-
if (process.env.NODE_ENV !== "production") {
|
|
34476
|
-
warnOnce(false, `value.onChange(callback) is deprecated. Switch to value.on("change", callback).`);
|
|
34477
|
-
}
|
|
34478
34091
|
return this.on("change", subscription);
|
|
34479
34092
|
}
|
|
34480
34093
|
on(eventName, callback) {
|
|
@@ -35554,7 +35167,6 @@ class VisualElementDragControls {
|
|
|
35554
35167
|
if (!constraints || !isRefObject(constraints))
|
|
35555
35168
|
return false;
|
|
35556
35169
|
const constraintsElement = constraints.current;
|
|
35557
|
-
invariant(constraintsElement !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");
|
|
35558
35170
|
const { projection } = this.visualElement;
|
|
35559
35171
|
if (!projection || !projection.layout)
|
|
35560
35172
|
return false;
|
|
@@ -37304,9 +36916,6 @@ function updateMotionValuesFromProps(element, next, prev) {
|
|
|
37304
36916
|
if (isWillChangeMotionValue(willChange)) {
|
|
37305
36917
|
willChange.add(key);
|
|
37306
36918
|
}
|
|
37307
|
-
if (process.env.NODE_ENV === "development") {
|
|
37308
|
-
warnOnce(nextValue.version === "11.0.22", `Attempting to mix Framer Motion versions ${nextValue.version} with 11.0.22 may not work as expected.`);
|
|
37309
|
-
}
|
|
37310
36919
|
} else if (isMotionValue(prevValue)) {
|
|
37311
36920
|
element.addValue(key, motionValue(nextValue, { owner: element }));
|
|
37312
36921
|
if (isWillChangeMotionValue(willChange)) {
|
|
@@ -37421,9 +37030,6 @@ class VisualElement {
|
|
|
37421
37030
|
initPrefersReducedMotion();
|
|
37422
37031
|
}
|
|
37423
37032
|
this.shouldReduceMotion = this.reducedMotionConfig === "never" ? false : this.reducedMotionConfig === "always" ? true : prefersReducedMotion.current;
|
|
37424
|
-
if (process.env.NODE_ENV !== "production") {
|
|
37425
|
-
warnOnce(this.shouldReduceMotion !== true, "You have Reduced Motion enabled on your device. Animations may not appear as expected.");
|
|
37426
|
-
}
|
|
37427
37033
|
if (this.parent)
|
|
37428
37034
|
this.parent.children.add(this);
|
|
37429
37035
|
this.update(this.props, this.presenceContext);
|
|
@@ -37470,10 +37076,6 @@ class VisualElement {
|
|
|
37470
37076
|
loadFeatures({ children: children2, ...renderedProps }, isStrict, preloadedFeatures2, initialLayoutGroupConfig) {
|
|
37471
37077
|
let ProjectionNodeConstructor;
|
|
37472
37078
|
let MeasureLayout2;
|
|
37473
|
-
if (process.env.NODE_ENV !== "production" && preloadedFeatures2 && isStrict) {
|
|
37474
|
-
const strictMessage = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
|
37475
|
-
renderedProps.ignoreStrict ? warning(false, strictMessage) : invariant(false, strictMessage);
|
|
37476
|
-
}
|
|
37477
37079
|
for (let i2 = 0; i2 < numFeatures; i2++) {
|
|
37478
37080
|
const name = featureNames[i2];
|
|
37479
37081
|
const { isEnabled, Feature: FeatureConstructor, ProjectionNode, MeasureLayout: MeasureLayoutComponent } = featureDefinitions[name];
|
|
@@ -37962,7 +37564,6 @@ function onlyElements(children2) {
|
|
|
37962
37564
|
return filtered;
|
|
37963
37565
|
}
|
|
37964
37566
|
const AnimatePresence = ({ children: children2, custom, initial = true, onExitComplete, exitBeforeEnter, presenceAffectsLayout = true, mode = "sync" }) => {
|
|
37965
|
-
invariant(!exitBeforeEnter, "Replace exitBeforeEnter with mode='wait'");
|
|
37966
37567
|
const forceRender = useContext(LayoutGroupContext).forceRender || useForceUpdate()[0];
|
|
37967
37568
|
const isMounted = useIsMounted();
|
|
37968
37569
|
const filteredChildren = onlyElements(children2);
|
|
@@ -38034,9 +37635,6 @@ const AnimatePresence = ({ children: children2, custom, initial = true, onExitCo
|
|
|
38034
37635
|
const key = child.key;
|
|
38035
37636
|
return exitingChildren.has(key) ? child : React.createElement(PresenceChild, { key: getChildKey(child), isPresent: true, presenceAffectsLayout, mode }, child);
|
|
38036
37637
|
});
|
|
38037
|
-
if (process.env.NODE_ENV !== "production" && mode === "wait" && childrenToRender.length > 1) {
|
|
38038
|
-
console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`);
|
|
38039
|
-
}
|
|
38040
37638
|
return React.createElement(React.Fragment, null, exitingChildren.size ? childrenToRender : childrenToRender.map((child) => cloneElement(child)));
|
|
38041
37639
|
};
|
|
38042
37640
|
var XYFlowNode;
|
|
@@ -42258,950 +41856,57 @@ function DiagramPreview(props) {
|
|
|
42258
41856
|
) });
|
|
42259
41857
|
}
|
|
42260
41858
|
var propTypes = { exports: {} };
|
|
42261
|
-
var
|
|
42262
|
-
var
|
|
42263
|
-
|
|
42264
|
-
|
|
42265
|
-
*
|
|
42266
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
42267
|
-
*
|
|
42268
|
-
* This source code is licensed under the MIT license found in the
|
|
42269
|
-
* LICENSE file in the root directory of this source tree.
|
|
42270
|
-
*/
|
|
42271
|
-
var hasRequiredReactIs_production_min;
|
|
42272
|
-
function requireReactIs_production_min() {
|
|
42273
|
-
if (hasRequiredReactIs_production_min)
|
|
42274
|
-
return reactIs_production_min;
|
|
42275
|
-
hasRequiredReactIs_production_min = 1;
|
|
42276
|
-
var b2 = "function" === typeof Symbol && Symbol.for, c2 = b2 ? Symbol.for("react.element") : 60103, d2 = b2 ? Symbol.for("react.portal") : 60106, e2 = b2 ? Symbol.for("react.fragment") : 60107, f2 = b2 ? Symbol.for("react.strict_mode") : 60108, g2 = b2 ? Symbol.for("react.profiler") : 60114, h2 = b2 ? Symbol.for("react.provider") : 60109, k2 = b2 ? Symbol.for("react.context") : 60110, l2 = b2 ? Symbol.for("react.async_mode") : 60111, m2 = b2 ? Symbol.for("react.concurrent_mode") : 60111, n2 = b2 ? Symbol.for("react.forward_ref") : 60112, p2 = b2 ? Symbol.for("react.suspense") : 60113, q2 = b2 ? Symbol.for("react.suspense_list") : 60120, r2 = b2 ? Symbol.for("react.memo") : 60115, t2 = b2 ? Symbol.for("react.lazy") : 60116, v2 = b2 ? Symbol.for("react.block") : 60121, w2 = b2 ? Symbol.for("react.fundamental") : 60117, x2 = b2 ? Symbol.for("react.responder") : 60118, y2 = b2 ? Symbol.for("react.scope") : 60119;
|
|
42277
|
-
function z2(a2) {
|
|
42278
|
-
if ("object" === typeof a2 && null !== a2) {
|
|
42279
|
-
var u2 = a2.$$typeof;
|
|
42280
|
-
switch (u2) {
|
|
42281
|
-
case c2:
|
|
42282
|
-
switch (a2 = a2.type, a2) {
|
|
42283
|
-
case l2:
|
|
42284
|
-
case m2:
|
|
42285
|
-
case e2:
|
|
42286
|
-
case g2:
|
|
42287
|
-
case f2:
|
|
42288
|
-
case p2:
|
|
42289
|
-
return a2;
|
|
42290
|
-
default:
|
|
42291
|
-
switch (a2 = a2 && a2.$$typeof, a2) {
|
|
42292
|
-
case k2:
|
|
42293
|
-
case n2:
|
|
42294
|
-
case t2:
|
|
42295
|
-
case r2:
|
|
42296
|
-
case h2:
|
|
42297
|
-
return a2;
|
|
42298
|
-
default:
|
|
42299
|
-
return u2;
|
|
42300
|
-
}
|
|
42301
|
-
}
|
|
42302
|
-
case d2:
|
|
42303
|
-
return u2;
|
|
42304
|
-
}
|
|
42305
|
-
}
|
|
42306
|
-
}
|
|
42307
|
-
function A2(a2) {
|
|
42308
|
-
return z2(a2) === m2;
|
|
42309
|
-
}
|
|
42310
|
-
reactIs_production_min.AsyncMode = l2;
|
|
42311
|
-
reactIs_production_min.ConcurrentMode = m2;
|
|
42312
|
-
reactIs_production_min.ContextConsumer = k2;
|
|
42313
|
-
reactIs_production_min.ContextProvider = h2;
|
|
42314
|
-
reactIs_production_min.Element = c2;
|
|
42315
|
-
reactIs_production_min.ForwardRef = n2;
|
|
42316
|
-
reactIs_production_min.Fragment = e2;
|
|
42317
|
-
reactIs_production_min.Lazy = t2;
|
|
42318
|
-
reactIs_production_min.Memo = r2;
|
|
42319
|
-
reactIs_production_min.Portal = d2;
|
|
42320
|
-
reactIs_production_min.Profiler = g2;
|
|
42321
|
-
reactIs_production_min.StrictMode = f2;
|
|
42322
|
-
reactIs_production_min.Suspense = p2;
|
|
42323
|
-
reactIs_production_min.isAsyncMode = function(a2) {
|
|
42324
|
-
return A2(a2) || z2(a2) === l2;
|
|
42325
|
-
};
|
|
42326
|
-
reactIs_production_min.isConcurrentMode = A2;
|
|
42327
|
-
reactIs_production_min.isContextConsumer = function(a2) {
|
|
42328
|
-
return z2(a2) === k2;
|
|
42329
|
-
};
|
|
42330
|
-
reactIs_production_min.isContextProvider = function(a2) {
|
|
42331
|
-
return z2(a2) === h2;
|
|
42332
|
-
};
|
|
42333
|
-
reactIs_production_min.isElement = function(a2) {
|
|
42334
|
-
return "object" === typeof a2 && null !== a2 && a2.$$typeof === c2;
|
|
42335
|
-
};
|
|
42336
|
-
reactIs_production_min.isForwardRef = function(a2) {
|
|
42337
|
-
return z2(a2) === n2;
|
|
42338
|
-
};
|
|
42339
|
-
reactIs_production_min.isFragment = function(a2) {
|
|
42340
|
-
return z2(a2) === e2;
|
|
42341
|
-
};
|
|
42342
|
-
reactIs_production_min.isLazy = function(a2) {
|
|
42343
|
-
return z2(a2) === t2;
|
|
42344
|
-
};
|
|
42345
|
-
reactIs_production_min.isMemo = function(a2) {
|
|
42346
|
-
return z2(a2) === r2;
|
|
42347
|
-
};
|
|
42348
|
-
reactIs_production_min.isPortal = function(a2) {
|
|
42349
|
-
return z2(a2) === d2;
|
|
42350
|
-
};
|
|
42351
|
-
reactIs_production_min.isProfiler = function(a2) {
|
|
42352
|
-
return z2(a2) === g2;
|
|
42353
|
-
};
|
|
42354
|
-
reactIs_production_min.isStrictMode = function(a2) {
|
|
42355
|
-
return z2(a2) === f2;
|
|
42356
|
-
};
|
|
42357
|
-
reactIs_production_min.isSuspense = function(a2) {
|
|
42358
|
-
return z2(a2) === p2;
|
|
42359
|
-
};
|
|
42360
|
-
reactIs_production_min.isValidElementType = function(a2) {
|
|
42361
|
-
return "string" === typeof a2 || "function" === typeof a2 || a2 === e2 || a2 === m2 || a2 === g2 || a2 === f2 || a2 === p2 || a2 === q2 || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t2 || a2.$$typeof === r2 || a2.$$typeof === h2 || a2.$$typeof === k2 || a2.$$typeof === n2 || a2.$$typeof === w2 || a2.$$typeof === x2 || a2.$$typeof === y2 || a2.$$typeof === v2);
|
|
42362
|
-
};
|
|
42363
|
-
reactIs_production_min.typeOf = z2;
|
|
42364
|
-
return reactIs_production_min;
|
|
41859
|
+
var ReactPropTypesSecret$1 = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
41860
|
+
var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
|
|
41861
|
+
var ReactPropTypesSecret = ReactPropTypesSecret_1;
|
|
41862
|
+
function emptyFunction() {
|
|
42365
41863
|
}
|
|
42366
|
-
|
|
42367
|
-
/** @license React v16.13.1
|
|
42368
|
-
* react-is.development.js
|
|
42369
|
-
*
|
|
42370
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
42371
|
-
*
|
|
42372
|
-
* This source code is licensed under the MIT license found in the
|
|
42373
|
-
* LICENSE file in the root directory of this source tree.
|
|
42374
|
-
*/
|
|
42375
|
-
var hasRequiredReactIs_development;
|
|
42376
|
-
function requireReactIs_development() {
|
|
42377
|
-
if (hasRequiredReactIs_development)
|
|
42378
|
-
return reactIs_development;
|
|
42379
|
-
hasRequiredReactIs_development = 1;
|
|
42380
|
-
if (process.env.NODE_ENV !== "production") {
|
|
42381
|
-
(function() {
|
|
42382
|
-
var hasSymbol = typeof Symbol === "function" && Symbol.for;
|
|
42383
|
-
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
|
|
42384
|
-
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
|
|
42385
|
-
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
|
|
42386
|
-
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
|
|
42387
|
-
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
|
|
42388
|
-
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
|
|
42389
|
-
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
|
|
42390
|
-
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
|
|
42391
|
-
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
|
|
42392
|
-
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
|
|
42393
|
-
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
|
|
42394
|
-
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
|
|
42395
|
-
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
|
|
42396
|
-
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
|
|
42397
|
-
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
|
|
42398
|
-
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
|
|
42399
|
-
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
|
|
42400
|
-
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
|
|
42401
|
-
function isValidElementType(type) {
|
|
42402
|
-
return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
42403
|
-
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
42404
|
-
}
|
|
42405
|
-
function typeOf(object) {
|
|
42406
|
-
if (typeof object === "object" && object !== null) {
|
|
42407
|
-
var $$typeof = object.$$typeof;
|
|
42408
|
-
switch ($$typeof) {
|
|
42409
|
-
case REACT_ELEMENT_TYPE:
|
|
42410
|
-
var type = object.type;
|
|
42411
|
-
switch (type) {
|
|
42412
|
-
case REACT_ASYNC_MODE_TYPE:
|
|
42413
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
42414
|
-
case REACT_FRAGMENT_TYPE:
|
|
42415
|
-
case REACT_PROFILER_TYPE:
|
|
42416
|
-
case REACT_STRICT_MODE_TYPE:
|
|
42417
|
-
case REACT_SUSPENSE_TYPE:
|
|
42418
|
-
return type;
|
|
42419
|
-
default:
|
|
42420
|
-
var $$typeofType = type && type.$$typeof;
|
|
42421
|
-
switch ($$typeofType) {
|
|
42422
|
-
case REACT_CONTEXT_TYPE:
|
|
42423
|
-
case REACT_FORWARD_REF_TYPE:
|
|
42424
|
-
case REACT_LAZY_TYPE:
|
|
42425
|
-
case REACT_MEMO_TYPE:
|
|
42426
|
-
case REACT_PROVIDER_TYPE:
|
|
42427
|
-
return $$typeofType;
|
|
42428
|
-
default:
|
|
42429
|
-
return $$typeof;
|
|
42430
|
-
}
|
|
42431
|
-
}
|
|
42432
|
-
case REACT_PORTAL_TYPE:
|
|
42433
|
-
return $$typeof;
|
|
42434
|
-
}
|
|
42435
|
-
}
|
|
42436
|
-
return void 0;
|
|
42437
|
-
}
|
|
42438
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
42439
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
42440
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
42441
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
42442
|
-
var Element2 = REACT_ELEMENT_TYPE;
|
|
42443
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
42444
|
-
var Fragment2 = REACT_FRAGMENT_TYPE;
|
|
42445
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
42446
|
-
var Memo = REACT_MEMO_TYPE;
|
|
42447
|
-
var Portal2 = REACT_PORTAL_TYPE;
|
|
42448
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
42449
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
42450
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
42451
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
42452
|
-
function isAsyncMode(object) {
|
|
42453
|
-
{
|
|
42454
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
42455
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
42456
|
-
console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.");
|
|
42457
|
-
}
|
|
42458
|
-
}
|
|
42459
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
42460
|
-
}
|
|
42461
|
-
function isConcurrentMode(object) {
|
|
42462
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
42463
|
-
}
|
|
42464
|
-
function isContextConsumer(object) {
|
|
42465
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
42466
|
-
}
|
|
42467
|
-
function isContextProvider(object) {
|
|
42468
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
42469
|
-
}
|
|
42470
|
-
function isElement2(object) {
|
|
42471
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
42472
|
-
}
|
|
42473
|
-
function isForwardRef(object) {
|
|
42474
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
42475
|
-
}
|
|
42476
|
-
function isFragment(object) {
|
|
42477
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
42478
|
-
}
|
|
42479
|
-
function isLazy(object) {
|
|
42480
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
42481
|
-
}
|
|
42482
|
-
function isMemo(object) {
|
|
42483
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
42484
|
-
}
|
|
42485
|
-
function isPortal(object) {
|
|
42486
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
42487
|
-
}
|
|
42488
|
-
function isProfiler(object) {
|
|
42489
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
42490
|
-
}
|
|
42491
|
-
function isStrictMode(object) {
|
|
42492
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
42493
|
-
}
|
|
42494
|
-
function isSuspense(object) {
|
|
42495
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
42496
|
-
}
|
|
42497
|
-
reactIs_development.AsyncMode = AsyncMode;
|
|
42498
|
-
reactIs_development.ConcurrentMode = ConcurrentMode;
|
|
42499
|
-
reactIs_development.ContextConsumer = ContextConsumer;
|
|
42500
|
-
reactIs_development.ContextProvider = ContextProvider;
|
|
42501
|
-
reactIs_development.Element = Element2;
|
|
42502
|
-
reactIs_development.ForwardRef = ForwardRef;
|
|
42503
|
-
reactIs_development.Fragment = Fragment2;
|
|
42504
|
-
reactIs_development.Lazy = Lazy;
|
|
42505
|
-
reactIs_development.Memo = Memo;
|
|
42506
|
-
reactIs_development.Portal = Portal2;
|
|
42507
|
-
reactIs_development.Profiler = Profiler;
|
|
42508
|
-
reactIs_development.StrictMode = StrictMode;
|
|
42509
|
-
reactIs_development.Suspense = Suspense;
|
|
42510
|
-
reactIs_development.isAsyncMode = isAsyncMode;
|
|
42511
|
-
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
42512
|
-
reactIs_development.isContextConsumer = isContextConsumer;
|
|
42513
|
-
reactIs_development.isContextProvider = isContextProvider;
|
|
42514
|
-
reactIs_development.isElement = isElement2;
|
|
42515
|
-
reactIs_development.isForwardRef = isForwardRef;
|
|
42516
|
-
reactIs_development.isFragment = isFragment;
|
|
42517
|
-
reactIs_development.isLazy = isLazy;
|
|
42518
|
-
reactIs_development.isMemo = isMemo;
|
|
42519
|
-
reactIs_development.isPortal = isPortal;
|
|
42520
|
-
reactIs_development.isProfiler = isProfiler;
|
|
42521
|
-
reactIs_development.isStrictMode = isStrictMode;
|
|
42522
|
-
reactIs_development.isSuspense = isSuspense;
|
|
42523
|
-
reactIs_development.isValidElementType = isValidElementType;
|
|
42524
|
-
reactIs_development.typeOf = typeOf;
|
|
42525
|
-
})();
|
|
42526
|
-
}
|
|
42527
|
-
return reactIs_development;
|
|
42528
|
-
}
|
|
42529
|
-
var hasRequiredReactIs;
|
|
42530
|
-
function requireReactIs() {
|
|
42531
|
-
if (hasRequiredReactIs)
|
|
42532
|
-
return reactIs.exports;
|
|
42533
|
-
hasRequiredReactIs = 1;
|
|
42534
|
-
if (process.env.NODE_ENV === "production") {
|
|
42535
|
-
reactIs.exports = requireReactIs_production_min();
|
|
42536
|
-
} else {
|
|
42537
|
-
reactIs.exports = requireReactIs_development();
|
|
42538
|
-
}
|
|
42539
|
-
return reactIs.exports;
|
|
41864
|
+
function emptyFunctionWithReset() {
|
|
42540
41865
|
}
|
|
42541
|
-
|
|
42542
|
-
|
|
42543
|
-
(
|
|
42544
|
-
|
|
42545
|
-
|
|
42546
|
-
var objectAssign;
|
|
42547
|
-
var hasRequiredObjectAssign;
|
|
42548
|
-
function requireObjectAssign() {
|
|
42549
|
-
if (hasRequiredObjectAssign)
|
|
42550
|
-
return objectAssign;
|
|
42551
|
-
hasRequiredObjectAssign = 1;
|
|
42552
|
-
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
42553
|
-
var hasOwnProperty2 = Object.prototype.hasOwnProperty;
|
|
42554
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
42555
|
-
function toObject(val) {
|
|
42556
|
-
if (val === null || val === void 0) {
|
|
42557
|
-
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
42558
|
-
}
|
|
42559
|
-
return Object(val);
|
|
42560
|
-
}
|
|
42561
|
-
function shouldUseNative() {
|
|
42562
|
-
try {
|
|
42563
|
-
if (!Object.assign) {
|
|
42564
|
-
return false;
|
|
42565
|
-
}
|
|
42566
|
-
var test1 = new String("abc");
|
|
42567
|
-
test1[5] = "de";
|
|
42568
|
-
if (Object.getOwnPropertyNames(test1)[0] === "5") {
|
|
42569
|
-
return false;
|
|
42570
|
-
}
|
|
42571
|
-
var test2 = {};
|
|
42572
|
-
for (var i2 = 0; i2 < 10; i2++) {
|
|
42573
|
-
test2["_" + String.fromCharCode(i2)] = i2;
|
|
42574
|
-
}
|
|
42575
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function(n2) {
|
|
42576
|
-
return test2[n2];
|
|
42577
|
-
});
|
|
42578
|
-
if (order2.join("") !== "0123456789") {
|
|
42579
|
-
return false;
|
|
42580
|
-
}
|
|
42581
|
-
var test3 = {};
|
|
42582
|
-
"abcdefghijklmnopqrst".split("").forEach(function(letter) {
|
|
42583
|
-
test3[letter] = letter;
|
|
42584
|
-
});
|
|
42585
|
-
if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
|
|
42586
|
-
return false;
|
|
42587
|
-
}
|
|
42588
|
-
return true;
|
|
42589
|
-
} catch (err) {
|
|
42590
|
-
return false;
|
|
42591
|
-
}
|
|
42592
|
-
}
|
|
42593
|
-
objectAssign = shouldUseNative() ? Object.assign : function(target, source) {
|
|
42594
|
-
var from;
|
|
42595
|
-
var to = toObject(target);
|
|
42596
|
-
var symbols;
|
|
42597
|
-
for (var s2 = 1; s2 < arguments.length; s2++) {
|
|
42598
|
-
from = Object(arguments[s2]);
|
|
42599
|
-
for (var key in from) {
|
|
42600
|
-
if (hasOwnProperty2.call(from, key)) {
|
|
42601
|
-
to[key] = from[key];
|
|
42602
|
-
}
|
|
42603
|
-
}
|
|
42604
|
-
if (getOwnPropertySymbols) {
|
|
42605
|
-
symbols = getOwnPropertySymbols(from);
|
|
42606
|
-
for (var i2 = 0; i2 < symbols.length; i2++) {
|
|
42607
|
-
if (propIsEnumerable.call(from, symbols[i2])) {
|
|
42608
|
-
to[symbols[i2]] = from[symbols[i2]];
|
|
42609
|
-
}
|
|
42610
|
-
}
|
|
42611
|
-
}
|
|
42612
|
-
}
|
|
42613
|
-
return to;
|
|
42614
|
-
};
|
|
42615
|
-
return objectAssign;
|
|
42616
|
-
}
|
|
42617
|
-
var ReactPropTypesSecret_1;
|
|
42618
|
-
var hasRequiredReactPropTypesSecret;
|
|
42619
|
-
function requireReactPropTypesSecret() {
|
|
42620
|
-
if (hasRequiredReactPropTypesSecret)
|
|
42621
|
-
return ReactPropTypesSecret_1;
|
|
42622
|
-
hasRequiredReactPropTypesSecret = 1;
|
|
42623
|
-
var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
42624
|
-
ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
42625
|
-
return ReactPropTypesSecret_1;
|
|
42626
|
-
}
|
|
42627
|
-
var has;
|
|
42628
|
-
var hasRequiredHas;
|
|
42629
|
-
function requireHas() {
|
|
42630
|
-
if (hasRequiredHas)
|
|
42631
|
-
return has;
|
|
42632
|
-
hasRequiredHas = 1;
|
|
42633
|
-
has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
42634
|
-
return has;
|
|
42635
|
-
}
|
|
42636
|
-
var checkPropTypes_1;
|
|
42637
|
-
var hasRequiredCheckPropTypes;
|
|
42638
|
-
function requireCheckPropTypes() {
|
|
42639
|
-
if (hasRequiredCheckPropTypes)
|
|
42640
|
-
return checkPropTypes_1;
|
|
42641
|
-
hasRequiredCheckPropTypes = 1;
|
|
42642
|
-
var printWarning = function() {
|
|
42643
|
-
};
|
|
42644
|
-
if (process.env.NODE_ENV !== "production") {
|
|
42645
|
-
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
42646
|
-
var loggedTypeFailures = {};
|
|
42647
|
-
var has2 = requireHas();
|
|
42648
|
-
printWarning = function(text) {
|
|
42649
|
-
var message = "Warning: " + text;
|
|
42650
|
-
if (typeof console !== "undefined") {
|
|
42651
|
-
console.error(message);
|
|
42652
|
-
}
|
|
42653
|
-
try {
|
|
42654
|
-
throw new Error(message);
|
|
42655
|
-
} catch (x2) {
|
|
42656
|
-
}
|
|
42657
|
-
};
|
|
42658
|
-
}
|
|
42659
|
-
function checkPropTypes(typeSpecs, values2, location, componentName, getStack) {
|
|
42660
|
-
if (process.env.NODE_ENV !== "production") {
|
|
42661
|
-
for (var typeSpecName in typeSpecs) {
|
|
42662
|
-
if (has2(typeSpecs, typeSpecName)) {
|
|
42663
|
-
var error;
|
|
42664
|
-
try {
|
|
42665
|
-
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
42666
|
-
var err = Error(
|
|
42667
|
-
(componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
42668
|
-
);
|
|
42669
|
-
err.name = "Invariant Violation";
|
|
42670
|
-
throw err;
|
|
42671
|
-
}
|
|
42672
|
-
error = typeSpecs[typeSpecName](values2, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
42673
|
-
} catch (ex) {
|
|
42674
|
-
error = ex;
|
|
42675
|
-
}
|
|
42676
|
-
if (error && !(error instanceof Error)) {
|
|
42677
|
-
printWarning(
|
|
42678
|
-
(componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
42679
|
-
);
|
|
42680
|
-
}
|
|
42681
|
-
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
42682
|
-
loggedTypeFailures[error.message] = true;
|
|
42683
|
-
var stack = getStack ? getStack() : "";
|
|
42684
|
-
printWarning(
|
|
42685
|
-
"Failed " + location + " type: " + error.message + (stack != null ? stack : "")
|
|
42686
|
-
);
|
|
42687
|
-
}
|
|
42688
|
-
}
|
|
42689
|
-
}
|
|
42690
|
-
}
|
|
42691
|
-
}
|
|
42692
|
-
checkPropTypes.resetWarningCache = function() {
|
|
42693
|
-
if (process.env.NODE_ENV !== "production") {
|
|
42694
|
-
loggedTypeFailures = {};
|
|
42695
|
-
}
|
|
42696
|
-
};
|
|
42697
|
-
checkPropTypes_1 = checkPropTypes;
|
|
42698
|
-
return checkPropTypes_1;
|
|
42699
|
-
}
|
|
42700
|
-
var factoryWithTypeCheckers;
|
|
42701
|
-
var hasRequiredFactoryWithTypeCheckers;
|
|
42702
|
-
function requireFactoryWithTypeCheckers() {
|
|
42703
|
-
if (hasRequiredFactoryWithTypeCheckers)
|
|
42704
|
-
return factoryWithTypeCheckers;
|
|
42705
|
-
hasRequiredFactoryWithTypeCheckers = 1;
|
|
42706
|
-
var ReactIs = requireReactIs();
|
|
42707
|
-
var assign = requireObjectAssign();
|
|
42708
|
-
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
42709
|
-
var has2 = requireHas();
|
|
42710
|
-
var checkPropTypes = requireCheckPropTypes();
|
|
42711
|
-
var printWarning = function() {
|
|
42712
|
-
};
|
|
42713
|
-
if (process.env.NODE_ENV !== "production") {
|
|
42714
|
-
printWarning = function(text) {
|
|
42715
|
-
var message = "Warning: " + text;
|
|
42716
|
-
if (typeof console !== "undefined") {
|
|
42717
|
-
console.error(message);
|
|
42718
|
-
}
|
|
42719
|
-
try {
|
|
42720
|
-
throw new Error(message);
|
|
42721
|
-
} catch (x2) {
|
|
42722
|
-
}
|
|
42723
|
-
};
|
|
42724
|
-
}
|
|
42725
|
-
function emptyFunctionThatReturnsNull() {
|
|
42726
|
-
return null;
|
|
42727
|
-
}
|
|
42728
|
-
factoryWithTypeCheckers = function(isValidElement2, throwOnDirectAccess) {
|
|
42729
|
-
var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
|
|
42730
|
-
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
42731
|
-
function getIteratorFn(maybeIterable) {
|
|
42732
|
-
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
42733
|
-
if (typeof iteratorFn === "function") {
|
|
42734
|
-
return iteratorFn;
|
|
42735
|
-
}
|
|
42736
|
-
}
|
|
42737
|
-
var ANONYMOUS = "<<anonymous>>";
|
|
42738
|
-
var ReactPropTypes = {
|
|
42739
|
-
array: createPrimitiveTypeChecker("array"),
|
|
42740
|
-
bigint: createPrimitiveTypeChecker("bigint"),
|
|
42741
|
-
bool: createPrimitiveTypeChecker("boolean"),
|
|
42742
|
-
func: createPrimitiveTypeChecker("function"),
|
|
42743
|
-
number: createPrimitiveTypeChecker("number"),
|
|
42744
|
-
object: createPrimitiveTypeChecker("object"),
|
|
42745
|
-
string: createPrimitiveTypeChecker("string"),
|
|
42746
|
-
symbol: createPrimitiveTypeChecker("symbol"),
|
|
42747
|
-
any: createAnyTypeChecker(),
|
|
42748
|
-
arrayOf: createArrayOfTypeChecker,
|
|
42749
|
-
element: createElementTypeChecker(),
|
|
42750
|
-
elementType: createElementTypeTypeChecker(),
|
|
42751
|
-
instanceOf: createInstanceTypeChecker,
|
|
42752
|
-
node: createNodeChecker(),
|
|
42753
|
-
objectOf: createObjectOfTypeChecker,
|
|
42754
|
-
oneOf: createEnumTypeChecker,
|
|
42755
|
-
oneOfType: createUnionTypeChecker,
|
|
42756
|
-
shape: createShapeTypeChecker,
|
|
42757
|
-
exact: createStrictShapeTypeChecker
|
|
42758
|
-
};
|
|
42759
|
-
function is(x2, y2) {
|
|
42760
|
-
if (x2 === y2) {
|
|
42761
|
-
return x2 !== 0 || 1 / x2 === 1 / y2;
|
|
42762
|
-
} else {
|
|
42763
|
-
return x2 !== x2 && y2 !== y2;
|
|
42764
|
-
}
|
|
42765
|
-
}
|
|
42766
|
-
function PropTypeError(message, data) {
|
|
42767
|
-
this.message = message;
|
|
42768
|
-
this.data = data && typeof data === "object" ? data : {};
|
|
42769
|
-
this.stack = "";
|
|
42770
|
-
}
|
|
42771
|
-
PropTypeError.prototype = Error.prototype;
|
|
42772
|
-
function createChainableTypeChecker(validate) {
|
|
42773
|
-
if (process.env.NODE_ENV !== "production") {
|
|
42774
|
-
var manualPropTypeCallCache = {};
|
|
42775
|
-
var manualPropTypeWarningCount = 0;
|
|
42776
|
-
}
|
|
42777
|
-
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
42778
|
-
componentName = componentName || ANONYMOUS;
|
|
42779
|
-
propFullName = propFullName || propName;
|
|
42780
|
-
if (secret !== ReactPropTypesSecret) {
|
|
42781
|
-
if (throwOnDirectAccess) {
|
|
42782
|
-
var err = new Error(
|
|
42783
|
-
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
42784
|
-
);
|
|
42785
|
-
err.name = "Invariant Violation";
|
|
42786
|
-
throw err;
|
|
42787
|
-
} else if (process.env.NODE_ENV !== "production" && typeof console !== "undefined") {
|
|
42788
|
-
var cacheKey = componentName + ":" + propName;
|
|
42789
|
-
if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
42790
|
-
manualPropTypeWarningCount < 3) {
|
|
42791
|
-
printWarning(
|
|
42792
|
-
"You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
42793
|
-
);
|
|
42794
|
-
manualPropTypeCallCache[cacheKey] = true;
|
|
42795
|
-
manualPropTypeWarningCount++;
|
|
42796
|
-
}
|
|
42797
|
-
}
|
|
42798
|
-
}
|
|
42799
|
-
if (props[propName] == null) {
|
|
42800
|
-
if (isRequired) {
|
|
42801
|
-
if (props[propName] === null) {
|
|
42802
|
-
return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`."));
|
|
42803
|
-
}
|
|
42804
|
-
return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`."));
|
|
42805
|
-
}
|
|
42806
|
-
return null;
|
|
42807
|
-
} else {
|
|
42808
|
-
return validate(props, propName, componentName, location, propFullName);
|
|
42809
|
-
}
|
|
42810
|
-
}
|
|
42811
|
-
var chainedCheckType = checkType.bind(null, false);
|
|
42812
|
-
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
42813
|
-
return chainedCheckType;
|
|
42814
|
-
}
|
|
42815
|
-
function createPrimitiveTypeChecker(expectedType) {
|
|
42816
|
-
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
42817
|
-
var propValue = props[propName];
|
|
42818
|
-
var propType = getPropType(propValue);
|
|
42819
|
-
if (propType !== expectedType) {
|
|
42820
|
-
var preciseType = getPreciseType(propValue);
|
|
42821
|
-
return new PropTypeError(
|
|
42822
|
-
"Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."),
|
|
42823
|
-
{ expectedType }
|
|
42824
|
-
);
|
|
42825
|
-
}
|
|
42826
|
-
return null;
|
|
42827
|
-
}
|
|
42828
|
-
return createChainableTypeChecker(validate);
|
|
42829
|
-
}
|
|
42830
|
-
function createAnyTypeChecker() {
|
|
42831
|
-
return createChainableTypeChecker(emptyFunctionThatReturnsNull);
|
|
42832
|
-
}
|
|
42833
|
-
function createArrayOfTypeChecker(typeChecker) {
|
|
42834
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
42835
|
-
if (typeof typeChecker !== "function") {
|
|
42836
|
-
return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
|
|
42837
|
-
}
|
|
42838
|
-
var propValue = props[propName];
|
|
42839
|
-
if (!Array.isArray(propValue)) {
|
|
42840
|
-
var propType = getPropType(propValue);
|
|
42841
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
|
|
42842
|
-
}
|
|
42843
|
-
for (var i2 = 0; i2 < propValue.length; i2++) {
|
|
42844
|
-
var error = typeChecker(propValue, i2, componentName, location, propFullName + "[" + i2 + "]", ReactPropTypesSecret);
|
|
42845
|
-
if (error instanceof Error) {
|
|
42846
|
-
return error;
|
|
42847
|
-
}
|
|
42848
|
-
}
|
|
42849
|
-
return null;
|
|
42850
|
-
}
|
|
42851
|
-
return createChainableTypeChecker(validate);
|
|
42852
|
-
}
|
|
42853
|
-
function createElementTypeChecker() {
|
|
42854
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
42855
|
-
var propValue = props[propName];
|
|
42856
|
-
if (!isValidElement2(propValue)) {
|
|
42857
|
-
var propType = getPropType(propValue);
|
|
42858
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
|
|
42859
|
-
}
|
|
42860
|
-
return null;
|
|
42861
|
-
}
|
|
42862
|
-
return createChainableTypeChecker(validate);
|
|
42863
|
-
}
|
|
42864
|
-
function createElementTypeTypeChecker() {
|
|
42865
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
42866
|
-
var propValue = props[propName];
|
|
42867
|
-
if (!ReactIs.isValidElementType(propValue)) {
|
|
42868
|
-
var propType = getPropType(propValue);
|
|
42869
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type."));
|
|
42870
|
-
}
|
|
42871
|
-
return null;
|
|
42872
|
-
}
|
|
42873
|
-
return createChainableTypeChecker(validate);
|
|
42874
|
-
}
|
|
42875
|
-
function createInstanceTypeChecker(expectedClass) {
|
|
42876
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
42877
|
-
if (!(props[propName] instanceof expectedClass)) {
|
|
42878
|
-
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
42879
|
-
var actualClassName = getClassName2(props[propName]);
|
|
42880
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`."));
|
|
42881
|
-
}
|
|
42882
|
-
return null;
|
|
42883
|
-
}
|
|
42884
|
-
return createChainableTypeChecker(validate);
|
|
42885
|
-
}
|
|
42886
|
-
function createEnumTypeChecker(expectedValues) {
|
|
42887
|
-
if (!Array.isArray(expectedValues)) {
|
|
42888
|
-
if (process.env.NODE_ENV !== "production") {
|
|
42889
|
-
if (arguments.length > 1) {
|
|
42890
|
-
printWarning(
|
|
42891
|
-
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
42892
|
-
);
|
|
42893
|
-
} else {
|
|
42894
|
-
printWarning("Invalid argument supplied to oneOf, expected an array.");
|
|
42895
|
-
}
|
|
42896
|
-
}
|
|
42897
|
-
return emptyFunctionThatReturnsNull;
|
|
42898
|
-
}
|
|
42899
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
42900
|
-
var propValue = props[propName];
|
|
42901
|
-
for (var i2 = 0; i2 < expectedValues.length; i2++) {
|
|
42902
|
-
if (is(propValue, expectedValues[i2])) {
|
|
42903
|
-
return null;
|
|
42904
|
-
}
|
|
42905
|
-
}
|
|
42906
|
-
var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
|
|
42907
|
-
var type = getPreciseType(value);
|
|
42908
|
-
if (type === "symbol") {
|
|
42909
|
-
return String(value);
|
|
42910
|
-
}
|
|
42911
|
-
return value;
|
|
42912
|
-
});
|
|
42913
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + "."));
|
|
42914
|
-
}
|
|
42915
|
-
return createChainableTypeChecker(validate);
|
|
42916
|
-
}
|
|
42917
|
-
function createObjectOfTypeChecker(typeChecker) {
|
|
42918
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
42919
|
-
if (typeof typeChecker !== "function") {
|
|
42920
|
-
return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
|
|
42921
|
-
}
|
|
42922
|
-
var propValue = props[propName];
|
|
42923
|
-
var propType = getPropType(propValue);
|
|
42924
|
-
if (propType !== "object") {
|
|
42925
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
|
|
42926
|
-
}
|
|
42927
|
-
for (var key in propValue) {
|
|
42928
|
-
if (has2(propValue, key)) {
|
|
42929
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
|
42930
|
-
if (error instanceof Error) {
|
|
42931
|
-
return error;
|
|
42932
|
-
}
|
|
42933
|
-
}
|
|
42934
|
-
}
|
|
42935
|
-
return null;
|
|
42936
|
-
}
|
|
42937
|
-
return createChainableTypeChecker(validate);
|
|
42938
|
-
}
|
|
42939
|
-
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
42940
|
-
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
42941
|
-
process.env.NODE_ENV !== "production" ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
|
|
42942
|
-
return emptyFunctionThatReturnsNull;
|
|
42943
|
-
}
|
|
42944
|
-
for (var i2 = 0; i2 < arrayOfTypeCheckers.length; i2++) {
|
|
42945
|
-
var checker = arrayOfTypeCheckers[i2];
|
|
42946
|
-
if (typeof checker !== "function") {
|
|
42947
|
-
printWarning(
|
|
42948
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i2 + "."
|
|
42949
|
-
);
|
|
42950
|
-
return emptyFunctionThatReturnsNull;
|
|
42951
|
-
}
|
|
42952
|
-
}
|
|
42953
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
42954
|
-
var expectedTypes = [];
|
|
42955
|
-
for (var i3 = 0; i3 < arrayOfTypeCheckers.length; i3++) {
|
|
42956
|
-
var checker2 = arrayOfTypeCheckers[i3];
|
|
42957
|
-
var checkerResult = checker2(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
42958
|
-
if (checkerResult == null) {
|
|
42959
|
-
return null;
|
|
42960
|
-
}
|
|
42961
|
-
if (checkerResult.data && has2(checkerResult.data, "expectedType")) {
|
|
42962
|
-
expectedTypes.push(checkerResult.data.expectedType);
|
|
42963
|
-
}
|
|
42964
|
-
}
|
|
42965
|
-
var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : "";
|
|
42966
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + "."));
|
|
42967
|
-
}
|
|
42968
|
-
return createChainableTypeChecker(validate);
|
|
42969
|
-
}
|
|
42970
|
-
function createNodeChecker() {
|
|
42971
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
42972
|
-
if (!isNode2(props[propName])) {
|
|
42973
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode."));
|
|
42974
|
-
}
|
|
42975
|
-
return null;
|
|
42976
|
-
}
|
|
42977
|
-
return createChainableTypeChecker(validate);
|
|
42978
|
-
}
|
|
42979
|
-
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
42980
|
-
return new PropTypeError(
|
|
42981
|
-
(componentName || "React class") + ": " + location + " type `" + propFullName + "." + key + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + type + "`."
|
|
42982
|
-
);
|
|
42983
|
-
}
|
|
42984
|
-
function createShapeTypeChecker(shapeTypes) {
|
|
42985
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
42986
|
-
var propValue = props[propName];
|
|
42987
|
-
var propType = getPropType(propValue);
|
|
42988
|
-
if (propType !== "object") {
|
|
42989
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
|
|
42990
|
-
}
|
|
42991
|
-
for (var key in shapeTypes) {
|
|
42992
|
-
var checker = shapeTypes[key];
|
|
42993
|
-
if (typeof checker !== "function") {
|
|
42994
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
42995
|
-
}
|
|
42996
|
-
var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
|
42997
|
-
if (error) {
|
|
42998
|
-
return error;
|
|
42999
|
-
}
|
|
43000
|
-
}
|
|
43001
|
-
return null;
|
|
43002
|
-
}
|
|
43003
|
-
return createChainableTypeChecker(validate);
|
|
43004
|
-
}
|
|
43005
|
-
function createStrictShapeTypeChecker(shapeTypes) {
|
|
43006
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
43007
|
-
var propValue = props[propName];
|
|
43008
|
-
var propType = getPropType(propValue);
|
|
43009
|
-
if (propType !== "object") {
|
|
43010
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
|
|
43011
|
-
}
|
|
43012
|
-
var allKeys = assign({}, props[propName], shapeTypes);
|
|
43013
|
-
for (var key in allKeys) {
|
|
43014
|
-
var checker = shapeTypes[key];
|
|
43015
|
-
if (has2(shapeTypes, key) && typeof checker !== "function") {
|
|
43016
|
-
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
43017
|
-
}
|
|
43018
|
-
if (!checker) {
|
|
43019
|
-
return new PropTypeError(
|
|
43020
|
-
"Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " ")
|
|
43021
|
-
);
|
|
43022
|
-
}
|
|
43023
|
-
var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
|
43024
|
-
if (error) {
|
|
43025
|
-
return error;
|
|
43026
|
-
}
|
|
43027
|
-
}
|
|
43028
|
-
return null;
|
|
43029
|
-
}
|
|
43030
|
-
return createChainableTypeChecker(validate);
|
|
43031
|
-
}
|
|
43032
|
-
function isNode2(propValue) {
|
|
43033
|
-
switch (typeof propValue) {
|
|
43034
|
-
case "number":
|
|
43035
|
-
case "string":
|
|
43036
|
-
case "undefined":
|
|
43037
|
-
return true;
|
|
43038
|
-
case "boolean":
|
|
43039
|
-
return !propValue;
|
|
43040
|
-
case "object":
|
|
43041
|
-
if (Array.isArray(propValue)) {
|
|
43042
|
-
return propValue.every(isNode2);
|
|
43043
|
-
}
|
|
43044
|
-
if (propValue === null || isValidElement2(propValue)) {
|
|
43045
|
-
return true;
|
|
43046
|
-
}
|
|
43047
|
-
var iteratorFn = getIteratorFn(propValue);
|
|
43048
|
-
if (iteratorFn) {
|
|
43049
|
-
var iterator = iteratorFn.call(propValue);
|
|
43050
|
-
var step;
|
|
43051
|
-
if (iteratorFn !== propValue.entries) {
|
|
43052
|
-
while (!(step = iterator.next()).done) {
|
|
43053
|
-
if (!isNode2(step.value)) {
|
|
43054
|
-
return false;
|
|
43055
|
-
}
|
|
43056
|
-
}
|
|
43057
|
-
} else {
|
|
43058
|
-
while (!(step = iterator.next()).done) {
|
|
43059
|
-
var entry = step.value;
|
|
43060
|
-
if (entry) {
|
|
43061
|
-
if (!isNode2(entry[1])) {
|
|
43062
|
-
return false;
|
|
43063
|
-
}
|
|
43064
|
-
}
|
|
43065
|
-
}
|
|
43066
|
-
}
|
|
43067
|
-
} else {
|
|
43068
|
-
return false;
|
|
43069
|
-
}
|
|
43070
|
-
return true;
|
|
43071
|
-
default:
|
|
43072
|
-
return false;
|
|
43073
|
-
}
|
|
43074
|
-
}
|
|
43075
|
-
function isSymbol(propType, propValue) {
|
|
43076
|
-
if (propType === "symbol") {
|
|
43077
|
-
return true;
|
|
43078
|
-
}
|
|
43079
|
-
if (!propValue) {
|
|
43080
|
-
return false;
|
|
43081
|
-
}
|
|
43082
|
-
if (propValue["@@toStringTag"] === "Symbol") {
|
|
43083
|
-
return true;
|
|
43084
|
-
}
|
|
43085
|
-
if (typeof Symbol === "function" && propValue instanceof Symbol) {
|
|
43086
|
-
return true;
|
|
43087
|
-
}
|
|
43088
|
-
return false;
|
|
43089
|
-
}
|
|
43090
|
-
function getPropType(propValue) {
|
|
43091
|
-
var propType = typeof propValue;
|
|
43092
|
-
if (Array.isArray(propValue)) {
|
|
43093
|
-
return "array";
|
|
43094
|
-
}
|
|
43095
|
-
if (propValue instanceof RegExp) {
|
|
43096
|
-
return "object";
|
|
43097
|
-
}
|
|
43098
|
-
if (isSymbol(propType, propValue)) {
|
|
43099
|
-
return "symbol";
|
|
43100
|
-
}
|
|
43101
|
-
return propType;
|
|
43102
|
-
}
|
|
43103
|
-
function getPreciseType(propValue) {
|
|
43104
|
-
if (typeof propValue === "undefined" || propValue === null) {
|
|
43105
|
-
return "" + propValue;
|
|
43106
|
-
}
|
|
43107
|
-
var propType = getPropType(propValue);
|
|
43108
|
-
if (propType === "object") {
|
|
43109
|
-
if (propValue instanceof Date) {
|
|
43110
|
-
return "date";
|
|
43111
|
-
} else if (propValue instanceof RegExp) {
|
|
43112
|
-
return "regexp";
|
|
43113
|
-
}
|
|
43114
|
-
}
|
|
43115
|
-
return propType;
|
|
43116
|
-
}
|
|
43117
|
-
function getPostfixForTypeWarning(value) {
|
|
43118
|
-
var type = getPreciseType(value);
|
|
43119
|
-
switch (type) {
|
|
43120
|
-
case "array":
|
|
43121
|
-
case "object":
|
|
43122
|
-
return "an " + type;
|
|
43123
|
-
case "boolean":
|
|
43124
|
-
case "date":
|
|
43125
|
-
case "regexp":
|
|
43126
|
-
return "a " + type;
|
|
43127
|
-
default:
|
|
43128
|
-
return type;
|
|
43129
|
-
}
|
|
43130
|
-
}
|
|
43131
|
-
function getClassName2(propValue) {
|
|
43132
|
-
if (!propValue.constructor || !propValue.constructor.name) {
|
|
43133
|
-
return ANONYMOUS;
|
|
43134
|
-
}
|
|
43135
|
-
return propValue.constructor.name;
|
|
41866
|
+
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
41867
|
+
var factoryWithThrowingShims = function() {
|
|
41868
|
+
function shim2(props, propName, componentName, location, propFullName, secret) {
|
|
41869
|
+
if (secret === ReactPropTypesSecret) {
|
|
41870
|
+
return;
|
|
43136
41871
|
}
|
|
43137
|
-
|
|
43138
|
-
|
|
43139
|
-
|
|
43140
|
-
|
|
43141
|
-
|
|
43142
|
-
|
|
43143
|
-
|
|
43144
|
-
|
|
43145
|
-
|
|
43146
|
-
|
|
43147
|
-
|
|
43148
|
-
|
|
43149
|
-
|
|
43150
|
-
|
|
43151
|
-
|
|
43152
|
-
|
|
43153
|
-
|
|
43154
|
-
|
|
43155
|
-
|
|
43156
|
-
|
|
43157
|
-
|
|
43158
|
-
|
|
43159
|
-
|
|
43160
|
-
|
|
43161
|
-
|
|
43162
|
-
|
|
43163
|
-
|
|
43164
|
-
|
|
43165
|
-
|
|
43166
|
-
|
|
43167
|
-
|
|
43168
|
-
|
|
43169
|
-
|
|
43170
|
-
|
|
43171
|
-
|
|
43172
|
-
|
|
43173
|
-
|
|
43174
|
-
|
|
43175
|
-
func: shim2,
|
|
43176
|
-
number: shim2,
|
|
43177
|
-
object: shim2,
|
|
43178
|
-
string: shim2,
|
|
43179
|
-
symbol: shim2,
|
|
43180
|
-
any: shim2,
|
|
43181
|
-
arrayOf: getShim,
|
|
43182
|
-
element: shim2,
|
|
43183
|
-
elementType: shim2,
|
|
43184
|
-
instanceOf: getShim,
|
|
43185
|
-
node: shim2,
|
|
43186
|
-
objectOf: getShim,
|
|
43187
|
-
oneOf: getShim,
|
|
43188
|
-
oneOfType: getShim,
|
|
43189
|
-
shape: getShim,
|
|
43190
|
-
exact: getShim,
|
|
43191
|
-
checkPropTypes: emptyFunctionWithReset,
|
|
43192
|
-
resetWarningCache: emptyFunction
|
|
43193
|
-
};
|
|
43194
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
43195
|
-
return ReactPropTypes;
|
|
43196
|
-
};
|
|
43197
|
-
return factoryWithThrowingShims;
|
|
43198
|
-
}
|
|
43199
|
-
if (process.env.NODE_ENV !== "production") {
|
|
43200
|
-
var ReactIs = requireReactIs();
|
|
43201
|
-
var throwOnDirectAccess = true;
|
|
43202
|
-
propTypes.exports = requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
|
|
43203
|
-
} else {
|
|
43204
|
-
propTypes.exports = requireFactoryWithThrowingShims()();
|
|
41872
|
+
var err = new Error(
|
|
41873
|
+
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
41874
|
+
);
|
|
41875
|
+
err.name = "Invariant Violation";
|
|
41876
|
+
throw err;
|
|
41877
|
+
}
|
|
41878
|
+
shim2.isRequired = shim2;
|
|
41879
|
+
function getShim() {
|
|
41880
|
+
return shim2;
|
|
41881
|
+
}
|
|
41882
|
+
var ReactPropTypes = {
|
|
41883
|
+
array: shim2,
|
|
41884
|
+
bigint: shim2,
|
|
41885
|
+
bool: shim2,
|
|
41886
|
+
func: shim2,
|
|
41887
|
+
number: shim2,
|
|
41888
|
+
object: shim2,
|
|
41889
|
+
string: shim2,
|
|
41890
|
+
symbol: shim2,
|
|
41891
|
+
any: shim2,
|
|
41892
|
+
arrayOf: getShim,
|
|
41893
|
+
element: shim2,
|
|
41894
|
+
elementType: shim2,
|
|
41895
|
+
instanceOf: getShim,
|
|
41896
|
+
node: shim2,
|
|
41897
|
+
objectOf: getShim,
|
|
41898
|
+
oneOf: getShim,
|
|
41899
|
+
oneOfType: getShim,
|
|
41900
|
+
shape: getShim,
|
|
41901
|
+
exact: getShim,
|
|
41902
|
+
checkPropTypes: emptyFunctionWithReset,
|
|
41903
|
+
resetWarningCache: emptyFunction
|
|
41904
|
+
};
|
|
41905
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
41906
|
+
return ReactPropTypes;
|
|
41907
|
+
};
|
|
41908
|
+
{
|
|
41909
|
+
propTypes.exports = factoryWithThrowingShims();
|
|
43205
41910
|
}
|
|
43206
41911
|
var propTypesExports = propTypes.exports;
|
|
43207
41912
|
const t = /* @__PURE__ */ getDefaultExportFromCjs(propTypesExports);
|
|
@@ -44862,25 +43567,25 @@ const ViewViewIdReactLegacyLazyRoute = ViewViewIdReactLegacyLazyImport.update({
|
|
|
44862
43567
|
path: "/react-legacy",
|
|
44863
43568
|
getParentRoute: () => ViewViewIdRoute
|
|
44864
43569
|
}).lazy(
|
|
44865
|
-
() => import("./view._viewId.react-legacy.lazy-
|
|
43570
|
+
() => import("./view._viewId.react-legacy.lazy-BCfsZGJv.js").then((d2) => d2.Route)
|
|
44866
43571
|
);
|
|
44867
43572
|
const ViewViewIdMmdLazyRoute = ViewViewIdMmdLazyImport.update({
|
|
44868
43573
|
path: "/mmd",
|
|
44869
43574
|
getParentRoute: () => ViewViewIdRoute
|
|
44870
43575
|
}).lazy(
|
|
44871
|
-
() => import("./view._viewId.mmd.lazy-
|
|
43576
|
+
() => import("./view._viewId.mmd.lazy-BkXRK8lt.js").then((d2) => d2.Route)
|
|
44872
43577
|
);
|
|
44873
43578
|
const ViewViewIdDotLazyRoute = ViewViewIdDotLazyImport.update({
|
|
44874
43579
|
path: "/dot",
|
|
44875
43580
|
getParentRoute: () => ViewViewIdRoute
|
|
44876
43581
|
}).lazy(
|
|
44877
|
-
() => import("./view._viewId.dot.lazy-
|
|
43582
|
+
() => import("./view._viewId.dot.lazy-Bug0AuTj.js").then((d2) => d2.Route)
|
|
44878
43583
|
);
|
|
44879
43584
|
const ViewViewIdD2LazyRoute = ViewViewIdD2LazyImport.update({
|
|
44880
43585
|
path: "/d2",
|
|
44881
43586
|
getParentRoute: () => ViewViewIdRoute
|
|
44882
43587
|
}).lazy(
|
|
44883
|
-
() => import("./view._viewId.d2.lazy-
|
|
43588
|
+
() => import("./view._viewId.d2.lazy-CfyitoRw.js").then((d2) => d2.Route)
|
|
44884
43589
|
);
|
|
44885
43590
|
const ViewViewIdEditorRoute = Route2.update({
|
|
44886
43591
|
path: "/editor",
|