@darajs/components 1.4.5 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/anchor/anchor.d.ts.map +1 -1
- package/dist/common/anchor/anchor.js +17 -5
- package/dist/common/anchor/anchor.js.map +1 -1
- package/dist/common/button/button.js.map +1 -1
- package/dist/common/carousel/carousel.js.map +1 -1
- package/dist/common/checkbox-group/checkbox-group.js.map +1 -1
- package/dist/common/code/code.js.map +1 -1
- package/dist/common/context/form-context.js.map +1 -1
- package/dist/common/datepicker/datepicker.js.map +1 -1
- package/dist/common/dropzone/dropzone.js.map +1 -1
- package/dist/common/form/form.js.map +1 -1
- package/dist/common/grid/row.js.map +1 -1
- package/dist/common/if/if.js.map +1 -1
- package/dist/common/input/input.js.map +1 -1
- package/dist/common/markdown/markdown.js.map +1 -1
- package/dist/common/select/select.js.map +1 -1
- package/dist/common/slider/slider.js.map +1 -1
- package/dist/common/stack/stack.js.map +1 -1
- package/dist/common/tabbed-card/tabbed-card.js.map +1 -1
- package/dist/common/table/cells/adaptive-precision-cell.js.map +1 -1
- package/dist/common/table/cells/code-cell.js.map +1 -1
- package/dist/common/table/cells/compare-cell.js.map +1 -1
- package/dist/common/table/cells/formatted-text-cell.js.map +1 -1
- package/dist/common/table/cells/link-cell.js.map +1 -1
- package/dist/common/table/cells/number-cell.js.map +1 -1
- package/dist/common/table/cells/number-intl-cell.js.map +1 -1
- package/dist/common/table/cells/percentage-cell.js.map +1 -1
- package/dist/common/table/cells/threshold-formatted-cell.js.map +1 -1
- package/dist/common/table/table.js.map +1 -1
- package/dist/common/text/text.js.map +1 -1
- package/dist/dara_components-1.5.0-py3-none-any.whl +0 -0
- package/dist/graphs/causal-graph-viewer.d.ts +1 -1
- package/dist/graphs/causal-graph-viewer.d.ts.map +1 -1
- package/dist/graphs/causal-graph-viewer.js.map +1 -1
- package/dist/graphs/graph-layout.js.map +1 -1
- package/dist/graphs/node-hierarchy-builder.js.map +1 -1
- package/dist/graphs/visual-edge-encoder.d.ts.map +1 -1
- package/dist/graphs/visual-edge-encoder.js +5 -8
- package/dist/graphs/visual-edge-encoder.js.map +1 -1
- package/dist/plotting/bokeh/bokeh.js.map +1 -1
- package/dist/plotting/plotly/plotly.js.map +1 -1
- package/dist/smart/data-slicer-filter/data-slicer-filter.js.map +1 -1
- package/dist/umd/dara.components.umd.js +1271 -712
- package/package.json +14 -14
- package/dist/dara_components-1.4.5-py3-none-any.whl +0 -0
|
@@ -261,21 +261,21 @@
|
|
|
261
261
|
}
|
|
262
262
|
subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
|
|
263
263
|
if (superClass)
|
|
264
|
-
_setPrototypeOf$
|
|
264
|
+
_setPrototypeOf$4(subClass, superClass);
|
|
265
265
|
}
|
|
266
|
-
function _setPrototypeOf$
|
|
267
|
-
_setPrototypeOf$
|
|
266
|
+
function _setPrototypeOf$4(o2, p2) {
|
|
267
|
+
_setPrototypeOf$4 = Object.setPrototypeOf || function _setPrototypeOf2(o3, p3) {
|
|
268
268
|
o3.__proto__ = p3;
|
|
269
269
|
return o3;
|
|
270
270
|
};
|
|
271
|
-
return _setPrototypeOf$
|
|
271
|
+
return _setPrototypeOf$4(o2, p2);
|
|
272
272
|
}
|
|
273
273
|
function _createSuper$3(Derived) {
|
|
274
|
-
var hasNativeReflectConstruct = _isNativeReflectConstruct$
|
|
274
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct$3();
|
|
275
275
|
return function _createSuperInternal() {
|
|
276
|
-
var Super = _getPrototypeOf$
|
|
276
|
+
var Super = _getPrototypeOf$3(Derived), result;
|
|
277
277
|
if (hasNativeReflectConstruct) {
|
|
278
|
-
var NewTarget = _getPrototypeOf$
|
|
278
|
+
var NewTarget = _getPrototypeOf$3(this).constructor;
|
|
279
279
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
280
280
|
} else {
|
|
281
281
|
result = Super.apply(this, arguments);
|
|
@@ -289,15 +289,15 @@
|
|
|
289
289
|
} else if (call2 !== void 0) {
|
|
290
290
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
291
291
|
}
|
|
292
|
-
return _assertThisInitialized$
|
|
292
|
+
return _assertThisInitialized$4(self2);
|
|
293
293
|
}
|
|
294
|
-
function _assertThisInitialized$
|
|
294
|
+
function _assertThisInitialized$4(self2) {
|
|
295
295
|
if (self2 === void 0) {
|
|
296
296
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
297
297
|
}
|
|
298
298
|
return self2;
|
|
299
299
|
}
|
|
300
|
-
function _isNativeReflectConstruct$
|
|
300
|
+
function _isNativeReflectConstruct$3() {
|
|
301
301
|
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
302
302
|
return false;
|
|
303
303
|
if (Reflect.construct.sham)
|
|
@@ -312,11 +312,11 @@
|
|
|
312
312
|
return false;
|
|
313
313
|
}
|
|
314
314
|
}
|
|
315
|
-
function _getPrototypeOf$
|
|
316
|
-
_getPrototypeOf$
|
|
315
|
+
function _getPrototypeOf$3(o2) {
|
|
316
|
+
_getPrototypeOf$3 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o3) {
|
|
317
317
|
return o3.__proto__ || Object.getPrototypeOf(o3);
|
|
318
318
|
};
|
|
319
|
-
return _getPrototypeOf$
|
|
319
|
+
return _getPrototypeOf$3(o2);
|
|
320
320
|
}
|
|
321
321
|
function _defineProperty$s(obj, key, value) {
|
|
322
322
|
if (key in obj) {
|
|
@@ -333,10 +333,10 @@
|
|
|
333
333
|
var _this;
|
|
334
334
|
_classCallCheck$j(this, Collapse2);
|
|
335
335
|
_this = _super.call(this, props);
|
|
336
|
-
_defineProperty$s(_assertThisInitialized$
|
|
337
|
-
_defineProperty$s(_assertThisInitialized$
|
|
338
|
-
_defineProperty$s(_assertThisInitialized$
|
|
339
|
-
_defineProperty$s(_assertThisInitialized$
|
|
336
|
+
_defineProperty$s(_assertThisInitialized$4(_this), "timeout", void 0);
|
|
337
|
+
_defineProperty$s(_assertThisInitialized$4(_this), "container", void 0);
|
|
338
|
+
_defineProperty$s(_assertThisInitialized$4(_this), "content", void 0);
|
|
339
|
+
_defineProperty$s(_assertThisInitialized$4(_this), "onResize", function() {
|
|
340
340
|
clearTimeout(_this.timeout);
|
|
341
341
|
if (!_this.container || !_this.content) {
|
|
342
342
|
return;
|
|
@@ -367,7 +367,7 @@
|
|
|
367
367
|
}, checkTimeout);
|
|
368
368
|
}
|
|
369
369
|
});
|
|
370
|
-
_defineProperty$s(_assertThisInitialized$
|
|
370
|
+
_defineProperty$s(_assertThisInitialized$4(_this), "onRest", function(_ref2) {
|
|
371
371
|
var isFullyOpened = _ref2.isFullyOpened, isFullyClosed = _ref2.isFullyClosed, isOpened = _ref2.isOpened, containerHeight = _ref2.containerHeight, contentHeight = _ref2.contentHeight;
|
|
372
372
|
if (!_this.container || !_this.content) {
|
|
373
373
|
return;
|
|
@@ -389,7 +389,7 @@
|
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
391
|
});
|
|
392
|
-
_defineProperty$s(_assertThisInitialized$
|
|
392
|
+
_defineProperty$s(_assertThisInitialized$4(_this), "onWork", function(_ref2) {
|
|
393
393
|
var isFullyOpened = _ref2.isFullyOpened, isFullyClosed = _ref2.isFullyClosed, isOpened = _ref2.isOpened, containerHeight = _ref2.containerHeight, contentHeight = _ref2.contentHeight;
|
|
394
394
|
if (!_this.container || !_this.content) {
|
|
395
395
|
return;
|
|
@@ -412,10 +412,10 @@
|
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
414
|
});
|
|
415
|
-
_defineProperty$s(_assertThisInitialized$
|
|
415
|
+
_defineProperty$s(_assertThisInitialized$4(_this), "onRefContainer", function(container) {
|
|
416
416
|
_this.container = container;
|
|
417
417
|
});
|
|
418
|
-
_defineProperty$s(_assertThisInitialized$
|
|
418
|
+
_defineProperty$s(_assertThisInitialized$4(_this), "onRefContent", function(content2) {
|
|
419
419
|
_this.content = content2;
|
|
420
420
|
});
|
|
421
421
|
if (props.initialStyle) {
|
|
@@ -518,8 +518,8 @@
|
|
|
518
518
|
function _interopRequireDefault(obj) {
|
|
519
519
|
return obj && obj.__esModule ? obj : { "default": obj };
|
|
520
520
|
}
|
|
521
|
-
function _extends$
|
|
522
|
-
_extends$
|
|
521
|
+
function _extends$3() {
|
|
522
|
+
_extends$3 = Object.assign || function(target) {
|
|
523
523
|
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
524
524
|
var source = arguments[i2];
|
|
525
525
|
for (var key in source) {
|
|
@@ -530,7 +530,7 @@
|
|
|
530
530
|
}
|
|
531
531
|
return target;
|
|
532
532
|
};
|
|
533
|
-
return _extends$
|
|
533
|
+
return _extends$3.apply(this, arguments);
|
|
534
534
|
}
|
|
535
535
|
function ownKeys$9(object2, enumerableOnly) {
|
|
536
536
|
var keys2 = Object.keys(object2);
|
|
@@ -622,21 +622,21 @@
|
|
|
622
622
|
}
|
|
623
623
|
subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
|
|
624
624
|
if (superClass)
|
|
625
|
-
_setPrototypeOf$
|
|
625
|
+
_setPrototypeOf$3(subClass, superClass);
|
|
626
626
|
}
|
|
627
|
-
function _setPrototypeOf$
|
|
628
|
-
_setPrototypeOf$
|
|
627
|
+
function _setPrototypeOf$3(o2, p2) {
|
|
628
|
+
_setPrototypeOf$3 = Object.setPrototypeOf || function _setPrototypeOf2(o3, p3) {
|
|
629
629
|
o3.__proto__ = p3;
|
|
630
630
|
return o3;
|
|
631
631
|
};
|
|
632
|
-
return _setPrototypeOf$
|
|
632
|
+
return _setPrototypeOf$3(o2, p2);
|
|
633
633
|
}
|
|
634
634
|
function _createSuper$2(Derived) {
|
|
635
|
-
var hasNativeReflectConstruct = _isNativeReflectConstruct$
|
|
635
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct$2();
|
|
636
636
|
return function _createSuperInternal() {
|
|
637
|
-
var Super = _getPrototypeOf$
|
|
637
|
+
var Super = _getPrototypeOf$2(Derived), result;
|
|
638
638
|
if (hasNativeReflectConstruct) {
|
|
639
|
-
var NewTarget = _getPrototypeOf$
|
|
639
|
+
var NewTarget = _getPrototypeOf$2(this).constructor;
|
|
640
640
|
result = Reflect.construct(Super, arguments, NewTarget);
|
|
641
641
|
} else {
|
|
642
642
|
result = Super.apply(this, arguments);
|
|
@@ -650,15 +650,15 @@
|
|
|
650
650
|
} else if (call2 !== void 0) {
|
|
651
651
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
652
652
|
}
|
|
653
|
-
return _assertThisInitialized$
|
|
653
|
+
return _assertThisInitialized$3(self2);
|
|
654
654
|
}
|
|
655
|
-
function _assertThisInitialized$
|
|
655
|
+
function _assertThisInitialized$3(self2) {
|
|
656
656
|
if (self2 === void 0) {
|
|
657
657
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
658
658
|
}
|
|
659
659
|
return self2;
|
|
660
660
|
}
|
|
661
|
-
function _isNativeReflectConstruct$
|
|
661
|
+
function _isNativeReflectConstruct$2() {
|
|
662
662
|
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
663
663
|
return false;
|
|
664
664
|
if (Reflect.construct.sham)
|
|
@@ -673,11 +673,11 @@
|
|
|
673
673
|
return false;
|
|
674
674
|
}
|
|
675
675
|
}
|
|
676
|
-
function _getPrototypeOf$
|
|
677
|
-
_getPrototypeOf$
|
|
676
|
+
function _getPrototypeOf$2(o2) {
|
|
677
|
+
_getPrototypeOf$2 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o3) {
|
|
678
678
|
return o3.__proto__ || Object.getPrototypeOf(o3);
|
|
679
679
|
};
|
|
680
|
-
return _getPrototypeOf$
|
|
680
|
+
return _getPrototypeOf$2(o2);
|
|
681
681
|
}
|
|
682
682
|
function _defineProperty$r(obj, key, value) {
|
|
683
683
|
if (key in obj) {
|
|
@@ -694,7 +694,7 @@
|
|
|
694
694
|
var _this;
|
|
695
695
|
_classCallCheck$i(this, UnmountClosed2);
|
|
696
696
|
_this = _super.call(this, props);
|
|
697
|
-
_defineProperty$r(_assertThisInitialized$
|
|
697
|
+
_defineProperty$r(_assertThisInitialized$3(_this), "onWork", function(_ref2) {
|
|
698
698
|
var isOpened = _ref2.isOpened, rest = _objectWithoutProperties$3(_ref2, _excluded$6);
|
|
699
699
|
_this.setState({
|
|
700
700
|
isResting: false,
|
|
@@ -707,7 +707,7 @@
|
|
|
707
707
|
}, rest));
|
|
708
708
|
}
|
|
709
709
|
});
|
|
710
|
-
_defineProperty$r(_assertThisInitialized$
|
|
710
|
+
_defineProperty$r(_assertThisInitialized$3(_this), "onRest", function(_ref2) {
|
|
711
711
|
var isOpened = _ref2.isOpened, rest = _objectWithoutProperties$3(_ref2, _excluded2$3);
|
|
712
712
|
_this.setState({
|
|
713
713
|
isResting: true,
|
|
@@ -721,7 +721,7 @@
|
|
|
721
721
|
}, rest));
|
|
722
722
|
}
|
|
723
723
|
});
|
|
724
|
-
_defineProperty$r(_assertThisInitialized$
|
|
724
|
+
_defineProperty$r(_assertThisInitialized$3(_this), "getInitialStyle", function() {
|
|
725
725
|
var _this$state = _this.state, isOpened = _this$state.isOpened, isInitialRender = _this$state.isInitialRender;
|
|
726
726
|
if (isInitialRender) {
|
|
727
727
|
return isOpened ? {
|
|
@@ -760,7 +760,7 @@
|
|
|
760
760
|
key: "render",
|
|
761
761
|
value: function render2() {
|
|
762
762
|
var _this$state2 = this.state, isResting = _this$state2.isResting, isOpened = _this$state2.isOpened;
|
|
763
|
-
return isResting && !isOpened ? null : /* @__PURE__ */ _react["default"].createElement(_Collapse.Collapse, _extends$
|
|
763
|
+
return isResting && !isOpened ? null : /* @__PURE__ */ _react["default"].createElement(_Collapse.Collapse, _extends$3({}, this.props, {
|
|
764
764
|
initialStyle: this.getInitialStyle(),
|
|
765
765
|
onWork: this.onWork,
|
|
766
766
|
onRest: this.onRest
|
|
@@ -1333,7 +1333,7 @@
|
|
|
1333
1333
|
}
|
|
1334
1334
|
return id2;
|
|
1335
1335
|
}
|
|
1336
|
-
function toArray(obj) {
|
|
1336
|
+
function toArray$1(obj) {
|
|
1337
1337
|
var array2 = [];
|
|
1338
1338
|
for (var i2 = (obj || []).length >>> 0; i2--; ) {
|
|
1339
1339
|
array2[i2] = obj[i2];
|
|
@@ -1342,7 +1342,7 @@
|
|
|
1342
1342
|
}
|
|
1343
1343
|
function classArray$1(node2) {
|
|
1344
1344
|
if (node2.classList) {
|
|
1345
|
-
return toArray(node2.classList);
|
|
1345
|
+
return toArray$1(node2.classList);
|
|
1346
1346
|
} else {
|
|
1347
1347
|
return (node2.getAttribute("class") || "").split(" ").filter(function(i2) {
|
|
1348
1348
|
return i2;
|
|
@@ -2422,7 +2422,7 @@
|
|
|
2422
2422
|
if (disabled)
|
|
2423
2423
|
return;
|
|
2424
2424
|
var defaultPrefix = getDefaultUsablePrefix();
|
|
2425
|
-
toArray(objects).forEach(function(mutationRecord) {
|
|
2425
|
+
toArray$1(objects).forEach(function(mutationRecord) {
|
|
2426
2426
|
if (mutationRecord.type === "childList" && mutationRecord.addedNodes.length > 0 && !isWatched(mutationRecord.addedNodes[0])) {
|
|
2427
2427
|
if (config$1.searchPseudoElements) {
|
|
2428
2428
|
pseudoElementsCallback(mutationRecord.target);
|
|
@@ -2498,7 +2498,7 @@
|
|
|
2498
2498
|
return val;
|
|
2499
2499
|
}
|
|
2500
2500
|
function attributesParser(node2) {
|
|
2501
|
-
var extraAttributes = toArray(node2.attributes).reduce(function(acc, attr) {
|
|
2501
|
+
var extraAttributes = toArray$1(node2.attributes).reduce(function(acc, attr) {
|
|
2502
2502
|
if (acc.name !== "class" && acc.name !== "style") {
|
|
2503
2503
|
acc[attr.name] = attr.value;
|
|
2504
2504
|
}
|
|
@@ -2608,7 +2608,7 @@
|
|
|
2608
2608
|
}
|
|
2609
2609
|
var candidates = [];
|
|
2610
2610
|
try {
|
|
2611
|
-
candidates = toArray(root2.querySelectorAll(prefixesDomQuery));
|
|
2611
|
+
candidates = toArray$1(root2.querySelectorAll(prefixesDomQuery));
|
|
2612
2612
|
} catch (e3) {
|
|
2613
2613
|
}
|
|
2614
2614
|
if (candidates.length > 0) {
|
|
@@ -2920,7 +2920,7 @@
|
|
|
2920
2920
|
if (node2.getAttribute(pendingAttribute) !== null) {
|
|
2921
2921
|
return resolve2();
|
|
2922
2922
|
}
|
|
2923
|
-
var children2 = toArray(node2.children);
|
|
2923
|
+
var children2 = toArray$1(node2.children);
|
|
2924
2924
|
var alreadyProcessedPseudoElement = children2.filter(function(c2) {
|
|
2925
2925
|
return c2.getAttribute(DATA_FA_PSEUDO_ELEMENT) === position2;
|
|
2926
2926
|
})[0];
|
|
@@ -2995,7 +2995,7 @@
|
|
|
2995
2995
|
if (!IS_DOM)
|
|
2996
2996
|
return;
|
|
2997
2997
|
return new Promise(function(resolve2, reject) {
|
|
2998
|
-
var operations = toArray(root2.querySelectorAll("*")).filter(processable).map(replace$2);
|
|
2998
|
+
var operations = toArray$1(root2.querySelectorAll("*")).filter(processable).map(replace$2);
|
|
2999
2999
|
var end2 = perf.begin("searchPseudoElements");
|
|
3000
3000
|
disableObservation();
|
|
3001
3001
|
Promise.all(operations).then(function() {
|
|
@@ -4507,11 +4507,11 @@
|
|
|
4507
4507
|
var _Symbol = Symbol$6;
|
|
4508
4508
|
var Symbol$5 = _Symbol;
|
|
4509
4509
|
var objectProto$e = Object.prototype;
|
|
4510
|
-
var hasOwnProperty$
|
|
4510
|
+
var hasOwnProperty$d = objectProto$e.hasOwnProperty;
|
|
4511
4511
|
var nativeObjectToString$1 = objectProto$e.toString;
|
|
4512
4512
|
var symToStringTag$1 = Symbol$5 ? Symbol$5.toStringTag : void 0;
|
|
4513
4513
|
function getRawTag$1(value) {
|
|
4514
|
-
var isOwn = hasOwnProperty$
|
|
4514
|
+
var isOwn = hasOwnProperty$d.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
|
4515
4515
|
try {
|
|
4516
4516
|
value[symToStringTag$1] = void 0;
|
|
4517
4517
|
var unmasked = true;
|
|
@@ -4592,9 +4592,9 @@
|
|
|
4592
4592
|
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
|
4593
4593
|
var funcProto = Function.prototype, objectProto$c = Object.prototype;
|
|
4594
4594
|
var funcToString = funcProto.toString;
|
|
4595
|
-
var hasOwnProperty$
|
|
4595
|
+
var hasOwnProperty$c = objectProto$c.hasOwnProperty;
|
|
4596
4596
|
var reIsNative = RegExp(
|
|
4597
|
-
"^" + funcToString.call(hasOwnProperty$
|
|
4597
|
+
"^" + funcToString.call(hasOwnProperty$c).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
4598
4598
|
);
|
|
4599
4599
|
function baseIsNative$1(value) {
|
|
4600
4600
|
if (!isObject$8(value) || isMasked(value)) {
|
|
@@ -4635,22 +4635,22 @@
|
|
|
4635
4635
|
var nativeCreate$2 = _nativeCreate;
|
|
4636
4636
|
var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
|
|
4637
4637
|
var objectProto$b = Object.prototype;
|
|
4638
|
-
var hasOwnProperty$
|
|
4638
|
+
var hasOwnProperty$b = objectProto$b.hasOwnProperty;
|
|
4639
4639
|
function hashGet$1(key) {
|
|
4640
4640
|
var data2 = this.__data__;
|
|
4641
4641
|
if (nativeCreate$2) {
|
|
4642
4642
|
var result = data2[key];
|
|
4643
4643
|
return result === HASH_UNDEFINED$2 ? void 0 : result;
|
|
4644
4644
|
}
|
|
4645
|
-
return hasOwnProperty$
|
|
4645
|
+
return hasOwnProperty$b.call(data2, key) ? data2[key] : void 0;
|
|
4646
4646
|
}
|
|
4647
4647
|
var _hashGet = hashGet$1;
|
|
4648
4648
|
var nativeCreate$1 = _nativeCreate;
|
|
4649
4649
|
var objectProto$a = Object.prototype;
|
|
4650
|
-
var hasOwnProperty$
|
|
4650
|
+
var hasOwnProperty$a = objectProto$a.hasOwnProperty;
|
|
4651
4651
|
function hashHas$1(key) {
|
|
4652
4652
|
var data2 = this.__data__;
|
|
4653
|
-
return nativeCreate$1 ? data2[key] !== void 0 : hasOwnProperty$
|
|
4653
|
+
return nativeCreate$1 ? data2[key] !== void 0 : hasOwnProperty$a.call(data2, key);
|
|
4654
4654
|
}
|
|
4655
4655
|
var _hashHas = hashHas$1;
|
|
4656
4656
|
var nativeCreate = _nativeCreate;
|
|
@@ -4984,12 +4984,12 @@
|
|
|
4984
4984
|
var _baseIsArguments = baseIsArguments$1;
|
|
4985
4985
|
var baseIsArguments = _baseIsArguments, isObjectLike$5 = isObjectLike_1;
|
|
4986
4986
|
var objectProto$8 = Object.prototype;
|
|
4987
|
-
var hasOwnProperty$
|
|
4987
|
+
var hasOwnProperty$9 = objectProto$8.hasOwnProperty;
|
|
4988
4988
|
var propertyIsEnumerable = objectProto$8.propertyIsEnumerable;
|
|
4989
4989
|
var isArguments$1 = baseIsArguments(function() {
|
|
4990
4990
|
return arguments;
|
|
4991
4991
|
}()) ? baseIsArguments : function(value) {
|
|
4992
|
-
return isObjectLike$5(value) && hasOwnProperty$
|
|
4992
|
+
return isObjectLike$5(value) && hasOwnProperty$9.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
|
|
4993
4993
|
};
|
|
4994
4994
|
var isArguments_1 = isArguments$1;
|
|
4995
4995
|
var isBuffer$5 = { exports: {} };
|
|
@@ -5061,11 +5061,11 @@
|
|
|
5061
5061
|
var isTypedArray_1 = isTypedArray$2;
|
|
5062
5062
|
var baseTimes = _baseTimes, isArguments = isArguments_1, isArray$c = isArray_1, isBuffer$4 = isBuffer$5.exports, isIndex$1 = _isIndex, isTypedArray$1 = isTypedArray_1;
|
|
5063
5063
|
var objectProto$7 = Object.prototype;
|
|
5064
|
-
var hasOwnProperty$
|
|
5064
|
+
var hasOwnProperty$8 = objectProto$7.hasOwnProperty;
|
|
5065
5065
|
function arrayLikeKeys$2(value, inherited) {
|
|
5066
5066
|
var isArr = isArray$c(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer$4(value), isType2 = !isArr && !isArg && !isBuff && isTypedArray$1(value), skipIndexes = isArr || isArg || isBuff || isType2, result = skipIndexes ? baseTimes(value.length, String) : [], length2 = result.length;
|
|
5067
5067
|
for (var key in value) {
|
|
5068
|
-
if ((inherited || hasOwnProperty$
|
|
5068
|
+
if ((inherited || hasOwnProperty$8.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType2 && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex$1(key, length2)))) {
|
|
5069
5069
|
result.push(key);
|
|
5070
5070
|
}
|
|
5071
5071
|
}
|
|
@@ -5089,14 +5089,14 @@
|
|
|
5089
5089
|
var _nativeKeys = nativeKeys$1;
|
|
5090
5090
|
var isPrototype$2 = _isPrototype, nativeKeys = _nativeKeys;
|
|
5091
5091
|
var objectProto$5 = Object.prototype;
|
|
5092
|
-
var hasOwnProperty$
|
|
5092
|
+
var hasOwnProperty$7 = objectProto$5.hasOwnProperty;
|
|
5093
5093
|
function baseKeys$1(object2) {
|
|
5094
5094
|
if (!isPrototype$2(object2)) {
|
|
5095
5095
|
return nativeKeys(object2);
|
|
5096
5096
|
}
|
|
5097
5097
|
var result = [];
|
|
5098
5098
|
for (var key in Object(object2)) {
|
|
5099
|
-
if (hasOwnProperty$
|
|
5099
|
+
if (hasOwnProperty$7.call(object2, key) && key != "constructor") {
|
|
5100
5100
|
result.push(key);
|
|
5101
5101
|
}
|
|
5102
5102
|
}
|
|
@@ -5104,13 +5104,13 @@
|
|
|
5104
5104
|
}
|
|
5105
5105
|
var _baseKeys = baseKeys$1;
|
|
5106
5106
|
var isFunction = isFunction_1, isLength = isLength_1;
|
|
5107
|
-
function isArrayLike$
|
|
5107
|
+
function isArrayLike$3(value) {
|
|
5108
5108
|
return value != null && isLength(value.length) && !isFunction(value);
|
|
5109
5109
|
}
|
|
5110
|
-
var isArrayLike_1 = isArrayLike$
|
|
5111
|
-
var arrayLikeKeys$1 = _arrayLikeKeys, baseKeys = _baseKeys, isArrayLike$
|
|
5110
|
+
var isArrayLike_1 = isArrayLike$3;
|
|
5111
|
+
var arrayLikeKeys$1 = _arrayLikeKeys, baseKeys = _baseKeys, isArrayLike$2 = isArrayLike_1;
|
|
5112
5112
|
function keys$4(object2) {
|
|
5113
|
-
return isArrayLike$
|
|
5113
|
+
return isArrayLike$2(object2) ? arrayLikeKeys$1(object2) : baseKeys(object2);
|
|
5114
5114
|
}
|
|
5115
5115
|
var keys_1 = keys$4;
|
|
5116
5116
|
var baseGetAllKeys$1 = _baseGetAllKeys, getSymbols$2 = _getSymbols, keys$3 = keys_1;
|
|
@@ -5121,7 +5121,7 @@
|
|
|
5121
5121
|
var getAllKeys$1 = _getAllKeys;
|
|
5122
5122
|
var COMPARE_PARTIAL_FLAG$1 = 1;
|
|
5123
5123
|
var objectProto$4 = Object.prototype;
|
|
5124
|
-
var hasOwnProperty$
|
|
5124
|
+
var hasOwnProperty$6 = objectProto$4.hasOwnProperty;
|
|
5125
5125
|
function equalObjects$1(object2, other, bitmask, customizer, equalFunc, stack) {
|
|
5126
5126
|
var isPartial = bitmask & COMPARE_PARTIAL_FLAG$1, objProps = getAllKeys$1(object2), objLength = objProps.length, othProps = getAllKeys$1(other), othLength = othProps.length;
|
|
5127
5127
|
if (objLength != othLength && !isPartial) {
|
|
@@ -5130,7 +5130,7 @@
|
|
|
5130
5130
|
var index2 = objLength;
|
|
5131
5131
|
while (index2--) {
|
|
5132
5132
|
var key = objProps[index2];
|
|
5133
|
-
if (!(isPartial ? key in other : hasOwnProperty$
|
|
5133
|
+
if (!(isPartial ? key in other : hasOwnProperty$6.call(other, key))) {
|
|
5134
5134
|
return false;
|
|
5135
5135
|
}
|
|
5136
5136
|
}
|
|
@@ -5208,7 +5208,7 @@
|
|
|
5208
5208
|
var COMPARE_PARTIAL_FLAG = 1;
|
|
5209
5209
|
var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", objectTag$1 = "[object Object]";
|
|
5210
5210
|
var objectProto$3 = Object.prototype;
|
|
5211
|
-
var hasOwnProperty$
|
|
5211
|
+
var hasOwnProperty$5 = objectProto$3.hasOwnProperty;
|
|
5212
5212
|
function baseIsEqualDeep$1(object2, other, bitmask, customizer, equalFunc, stack) {
|
|
5213
5213
|
var objIsArr = isArray$b(object2), othIsArr = isArray$b(other), objTag = objIsArr ? arrayTag$1 : getTag$3(object2), othTag = othIsArr ? arrayTag$1 : getTag$3(other);
|
|
5214
5214
|
objTag = objTag == argsTag$1 ? objectTag$1 : objTag;
|
|
@@ -5226,7 +5226,7 @@
|
|
|
5226
5226
|
return objIsArr || isTypedArray(object2) ? equalArrays(object2, other, bitmask, customizer, equalFunc, stack) : equalByTag(object2, other, objTag, bitmask, customizer, equalFunc, stack);
|
|
5227
5227
|
}
|
|
5228
5228
|
if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
|
|
5229
|
-
var objIsWrapped = objIsObj && hasOwnProperty$
|
|
5229
|
+
var objIsWrapped = objIsObj && hasOwnProperty$5.call(object2, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty$5.call(other, "__wrapped__");
|
|
5230
5230
|
if (objIsWrapped || othIsWrapped) {
|
|
5231
5231
|
var objUnwrapped = objIsWrapped ? object2.value() : object2, othUnwrapped = othIsWrapped ? other.value() : other;
|
|
5232
5232
|
stack || (stack = new Stack$4());
|
|
@@ -5488,55 +5488,6 @@
|
|
|
5488
5488
|
var step2 = (stop - start2) / Math.max(0, count2), power = Math.floor(Math.log(step2) / Math.LN10), error2 = step2 / Math.pow(10, power);
|
|
5489
5489
|
return power >= 0 ? (error2 >= e10$1 ? 10 : error2 >= e5$1 ? 5 : error2 >= e2$1 ? 2 : 1) * Math.pow(10, power) : -Math.pow(10, -power) / (error2 >= e10$1 ? 10 : error2 >= e5$1 ? 5 : error2 >= e2$1 ? 2 : 1);
|
|
5490
5490
|
}
|
|
5491
|
-
function initRange(domain2, range2) {
|
|
5492
|
-
switch (arguments.length) {
|
|
5493
|
-
case 0:
|
|
5494
|
-
break;
|
|
5495
|
-
case 1:
|
|
5496
|
-
this.range(domain2);
|
|
5497
|
-
break;
|
|
5498
|
-
default:
|
|
5499
|
-
this.range(range2).domain(domain2);
|
|
5500
|
-
break;
|
|
5501
|
-
}
|
|
5502
|
-
return this;
|
|
5503
|
-
}
|
|
5504
|
-
const implicit = Symbol("implicit");
|
|
5505
|
-
function ordinal() {
|
|
5506
|
-
var index2 = /* @__PURE__ */ new Map(), domain2 = [], range2 = [], unknown2 = implicit;
|
|
5507
|
-
function scale(d2) {
|
|
5508
|
-
var key = d2 + "", i2 = index2.get(key);
|
|
5509
|
-
if (!i2) {
|
|
5510
|
-
if (unknown2 !== implicit)
|
|
5511
|
-
return unknown2;
|
|
5512
|
-
index2.set(key, i2 = domain2.push(d2));
|
|
5513
|
-
}
|
|
5514
|
-
return range2[(i2 - 1) % range2.length];
|
|
5515
|
-
}
|
|
5516
|
-
scale.domain = function(_2) {
|
|
5517
|
-
if (!arguments.length)
|
|
5518
|
-
return domain2.slice();
|
|
5519
|
-
domain2 = [], index2 = /* @__PURE__ */ new Map();
|
|
5520
|
-
for (const value of _2) {
|
|
5521
|
-
const key = value + "";
|
|
5522
|
-
if (index2.has(key))
|
|
5523
|
-
continue;
|
|
5524
|
-
index2.set(key, domain2.push(value));
|
|
5525
|
-
}
|
|
5526
|
-
return scale;
|
|
5527
|
-
};
|
|
5528
|
-
scale.range = function(_2) {
|
|
5529
|
-
return arguments.length ? (range2 = Array.from(_2), scale) : range2.slice();
|
|
5530
|
-
};
|
|
5531
|
-
scale.unknown = function(_2) {
|
|
5532
|
-
return arguments.length ? (unknown2 = _2, scale) : unknown2;
|
|
5533
|
-
};
|
|
5534
|
-
scale.copy = function() {
|
|
5535
|
-
return ordinal(domain2, range2).unknown(unknown2);
|
|
5536
|
-
};
|
|
5537
|
-
initRange.apply(scale, arguments);
|
|
5538
|
-
return scale;
|
|
5539
|
-
}
|
|
5540
5491
|
function useIntersectionObserver(ref, rootMargin = "0px", threshold = 1) {
|
|
5541
5492
|
const [isIntersecting, setIntersecting] = React.useState(false);
|
|
5542
5493
|
React.useEffect(() => {
|
|
@@ -5818,8 +5769,8 @@
|
|
|
5818
5769
|
border: 1px solid ${(props) => props.color};
|
|
5819
5770
|
border-radius: ${(props) => props.height ? `${props.height / 2}px` : "1rem"};
|
|
5820
5771
|
`;
|
|
5821
|
-
function _extends$
|
|
5822
|
-
_extends$
|
|
5772
|
+
function _extends$2() {
|
|
5773
|
+
_extends$2 = Object.assign ? Object.assign.bind() : function(target) {
|
|
5823
5774
|
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
5824
5775
|
var source = arguments[i2];
|
|
5825
5776
|
for (var key in source) {
|
|
@@ -5830,40 +5781,40 @@
|
|
|
5830
5781
|
}
|
|
5831
5782
|
return target;
|
|
5832
5783
|
};
|
|
5833
|
-
return _extends$
|
|
5784
|
+
return _extends$2.apply(this, arguments);
|
|
5834
5785
|
}
|
|
5835
|
-
function _assertThisInitialized$
|
|
5786
|
+
function _assertThisInitialized$2(self2) {
|
|
5836
5787
|
if (self2 === void 0) {
|
|
5837
5788
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
5838
5789
|
}
|
|
5839
5790
|
return self2;
|
|
5840
5791
|
}
|
|
5841
|
-
function _setPrototypeOf$
|
|
5842
|
-
_setPrototypeOf$
|
|
5792
|
+
function _setPrototypeOf$2(o2, p2) {
|
|
5793
|
+
_setPrototypeOf$2 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o3, p3) {
|
|
5843
5794
|
o3.__proto__ = p3;
|
|
5844
5795
|
return o3;
|
|
5845
5796
|
};
|
|
5846
|
-
return _setPrototypeOf$
|
|
5797
|
+
return _setPrototypeOf$2(o2, p2);
|
|
5847
5798
|
}
|
|
5848
|
-
function _inheritsLoose$
|
|
5799
|
+
function _inheritsLoose$1(subClass, superClass) {
|
|
5849
5800
|
subClass.prototype = Object.create(superClass.prototype);
|
|
5850
5801
|
subClass.prototype.constructor = subClass;
|
|
5851
|
-
_setPrototypeOf$
|
|
5802
|
+
_setPrototypeOf$2(subClass, superClass);
|
|
5852
5803
|
}
|
|
5853
|
-
function _getPrototypeOf$
|
|
5854
|
-
_getPrototypeOf$
|
|
5804
|
+
function _getPrototypeOf$1(o2) {
|
|
5805
|
+
_getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o3) {
|
|
5855
5806
|
return o3.__proto__ || Object.getPrototypeOf(o3);
|
|
5856
5807
|
};
|
|
5857
|
-
return _getPrototypeOf$
|
|
5808
|
+
return _getPrototypeOf$1(o2);
|
|
5858
5809
|
}
|
|
5859
|
-
function _isNativeFunction
|
|
5810
|
+
function _isNativeFunction(fn2) {
|
|
5860
5811
|
try {
|
|
5861
5812
|
return Function.toString.call(fn2).indexOf("[native code]") !== -1;
|
|
5862
5813
|
} catch (e3) {
|
|
5863
5814
|
return typeof fn2 === "function";
|
|
5864
5815
|
}
|
|
5865
5816
|
}
|
|
5866
|
-
function _isNativeReflectConstruct$
|
|
5817
|
+
function _isNativeReflectConstruct$1() {
|
|
5867
5818
|
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
5868
5819
|
return false;
|
|
5869
5820
|
if (Reflect.construct.sham)
|
|
@@ -5878,26 +5829,26 @@
|
|
|
5878
5829
|
return false;
|
|
5879
5830
|
}
|
|
5880
5831
|
}
|
|
5881
|
-
function _construct
|
|
5882
|
-
if (_isNativeReflectConstruct$
|
|
5883
|
-
_construct
|
|
5832
|
+
function _construct(Parent, args, Class) {
|
|
5833
|
+
if (_isNativeReflectConstruct$1()) {
|
|
5834
|
+
_construct = Reflect.construct.bind();
|
|
5884
5835
|
} else {
|
|
5885
|
-
_construct
|
|
5836
|
+
_construct = function _construct2(Parent2, args2, Class2) {
|
|
5886
5837
|
var a2 = [null];
|
|
5887
5838
|
a2.push.apply(a2, args2);
|
|
5888
5839
|
var Constructor = Function.bind.apply(Parent2, a2);
|
|
5889
5840
|
var instance2 = new Constructor();
|
|
5890
5841
|
if (Class2)
|
|
5891
|
-
_setPrototypeOf$
|
|
5842
|
+
_setPrototypeOf$2(instance2, Class2.prototype);
|
|
5892
5843
|
return instance2;
|
|
5893
5844
|
};
|
|
5894
5845
|
}
|
|
5895
|
-
return _construct
|
|
5846
|
+
return _construct.apply(null, arguments);
|
|
5896
5847
|
}
|
|
5897
|
-
function _wrapNativeSuper
|
|
5848
|
+
function _wrapNativeSuper(Class) {
|
|
5898
5849
|
var _cache = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
5899
|
-
_wrapNativeSuper
|
|
5900
|
-
if (Class2 === null || !_isNativeFunction
|
|
5850
|
+
_wrapNativeSuper = function _wrapNativeSuper2(Class2) {
|
|
5851
|
+
if (Class2 === null || !_isNativeFunction(Class2))
|
|
5901
5852
|
return Class2;
|
|
5902
5853
|
if (typeof Class2 !== "function") {
|
|
5903
5854
|
throw new TypeError("Super expression must either be null or a function");
|
|
@@ -5908,7 +5859,7 @@
|
|
|
5908
5859
|
_cache.set(Class2, Wrapper2);
|
|
5909
5860
|
}
|
|
5910
5861
|
function Wrapper2() {
|
|
5911
|
-
return _construct
|
|
5862
|
+
return _construct(Class2, arguments, _getPrototypeOf$1(this).constructor);
|
|
5912
5863
|
}
|
|
5913
5864
|
Wrapper2.prototype = Object.create(Class2.prototype, {
|
|
5914
5865
|
constructor: {
|
|
@@ -5918,21 +5869,21 @@
|
|
|
5918
5869
|
configurable: true
|
|
5919
5870
|
}
|
|
5920
5871
|
});
|
|
5921
|
-
return _setPrototypeOf$
|
|
5872
|
+
return _setPrototypeOf$2(Wrapper2, Class2);
|
|
5922
5873
|
};
|
|
5923
|
-
return _wrapNativeSuper
|
|
5874
|
+
return _wrapNativeSuper(Class);
|
|
5924
5875
|
}
|
|
5925
5876
|
var PolishedError$1 = /* @__PURE__ */ function(_Error) {
|
|
5926
|
-
_inheritsLoose$
|
|
5877
|
+
_inheritsLoose$1(PolishedError2, _Error);
|
|
5927
5878
|
function PolishedError2(code2) {
|
|
5928
5879
|
var _this;
|
|
5929
5880
|
{
|
|
5930
5881
|
_this = _Error.call(this, "An error occurred. See https://github.com/styled-components/polished/blob/master/src/internalHelpers/errors.md#" + code2 + " for more information.") || this;
|
|
5931
5882
|
}
|
|
5932
|
-
return _assertThisInitialized$
|
|
5883
|
+
return _assertThisInitialized$2(_this);
|
|
5933
5884
|
}
|
|
5934
5885
|
return PolishedError2;
|
|
5935
|
-
}(/* @__PURE__ */ _wrapNativeSuper
|
|
5886
|
+
}(/* @__PURE__ */ _wrapNativeSuper(Error));
|
|
5936
5887
|
function colorToInt$1(color2) {
|
|
5937
5888
|
return Math.round(color2 * 255);
|
|
5938
5889
|
}
|
|
@@ -6276,7 +6227,7 @@
|
|
|
6276
6227
|
return color2;
|
|
6277
6228
|
var parsedColor = parseToRgb$1(color2);
|
|
6278
6229
|
var alpha = typeof parsedColor.alpha === "number" ? parsedColor.alpha : 1;
|
|
6279
|
-
var colorWithAlpha = _extends$
|
|
6230
|
+
var colorWithAlpha = _extends$2({}, parsedColor, {
|
|
6280
6231
|
alpha: guard$1(0, 1, (alpha * 100 - parseFloat(amount) * 100) / 100)
|
|
6281
6232
|
});
|
|
6282
6233
|
return rgba$3(colorWithAlpha);
|
|
@@ -7746,7 +7697,7 @@
|
|
|
7746
7697
|
}
|
|
7747
7698
|
});
|
|
7748
7699
|
if (props.onStateChange && Object.keys(changes).length) {
|
|
7749
|
-
props.onStateChange(_extends$
|
|
7700
|
+
props.onStateChange(_extends$2({
|
|
7750
7701
|
type
|
|
7751
7702
|
}, changes));
|
|
7752
7703
|
}
|
|
@@ -7755,7 +7706,7 @@
|
|
|
7755
7706
|
var props = action.props, type = action.type;
|
|
7756
7707
|
var handler = "on" + capitalizeString(key) + "Change";
|
|
7757
7708
|
if (props[handler] && newState[key] !== void 0 && newState[key] !== state[key]) {
|
|
7758
|
-
props[handler](_extends$
|
|
7709
|
+
props[handler](_extends$2({
|
|
7759
7710
|
type
|
|
7760
7711
|
}, newState));
|
|
7761
7712
|
}
|
|
@@ -7819,7 +7770,7 @@
|
|
|
7819
7770
|
actionRef.current = action2;
|
|
7820
7771
|
state2 = getState(state2, action2.props);
|
|
7821
7772
|
var changes = reducer2(state2, action2);
|
|
7822
|
-
var newState = action2.props.stateReducer(state2, _extends$
|
|
7773
|
+
var newState = action2.props.stateReducer(state2, _extends$2({}, action2, {
|
|
7823
7774
|
changes
|
|
7824
7775
|
}));
|
|
7825
7776
|
return newState;
|
|
@@ -7827,7 +7778,7 @@
|
|
|
7827
7778
|
var _useReducer = React.useReducer(enhancedReducer, initialState2), state = _useReducer[0], dispatch2 = _useReducer[1];
|
|
7828
7779
|
var propsRef = useLatestRef(props);
|
|
7829
7780
|
var dispatchWithProps = React.useCallback(function(action2) {
|
|
7830
|
-
return dispatch2(_extends$
|
|
7781
|
+
return dispatch2(_extends$2({
|
|
7831
7782
|
props: propsRef.current
|
|
7832
7783
|
}, action2));
|
|
7833
7784
|
}, [propsRef]);
|
|
@@ -7965,7 +7916,7 @@
|
|
|
7965
7916
|
return;
|
|
7966
7917
|
}
|
|
7967
7918
|
updateA11yStatus(function() {
|
|
7968
|
-
return getA11yMessage(_extends$
|
|
7919
|
+
return getA11yMessage(_extends$2({
|
|
7969
7920
|
highlightedIndex,
|
|
7970
7921
|
highlightedItem: items[highlightedIndex],
|
|
7971
7922
|
resultCount: items.length
|
|
@@ -7995,10 +7946,10 @@
|
|
|
7995
7946
|
inputValue = true;
|
|
7996
7947
|
}
|
|
7997
7948
|
var shouldSelect = ((_props$items = props.items) == null ? void 0 : _props$items.length) && highlightedIndex >= 0;
|
|
7998
|
-
return _extends$
|
|
7949
|
+
return _extends$2({
|
|
7999
7950
|
isOpen: false,
|
|
8000
7951
|
highlightedIndex: -1
|
|
8001
|
-
}, shouldSelect && _extends$
|
|
7952
|
+
}, shouldSelect && _extends$2({
|
|
8002
7953
|
selectedItem: props.items[highlightedIndex],
|
|
8003
7954
|
isOpen: getDefaultValue$1(props, "isOpen"),
|
|
8004
7955
|
highlightedIndex: getDefaultValue$1(props, "highlightedIndex")
|
|
@@ -8059,7 +8010,7 @@
|
|
|
8059
8010
|
default:
|
|
8060
8011
|
throw new Error("Reducer called without proper action type.");
|
|
8061
8012
|
}
|
|
8062
|
-
return _extends$
|
|
8013
|
+
return _extends$2({}, state, changes);
|
|
8063
8014
|
}
|
|
8064
8015
|
function getItemIndexByCharacterKey(_a3) {
|
|
8065
8016
|
var keysSoFar = _a3.keysSoFar, highlightedIndex = _a3.highlightedIndex, items = _a3.items, itemToString2 = _a3.itemToString, getItemNodeFromIndex = _a3.getItemNodeFromIndex;
|
|
@@ -8255,7 +8206,7 @@
|
|
|
8255
8206
|
};
|
|
8256
8207
|
break;
|
|
8257
8208
|
case ToggleButtonBlur:
|
|
8258
|
-
changes = _extends$
|
|
8209
|
+
changes = _extends$2({
|
|
8259
8210
|
isOpen: false,
|
|
8260
8211
|
highlightedIndex: -1
|
|
8261
8212
|
}, state.highlightedIndex >= 0 && ((_props$items = props.items) == null ? void 0 : _props$items.length) && {
|
|
@@ -8270,7 +8221,7 @@
|
|
|
8270
8221
|
default:
|
|
8271
8222
|
return downshiftCommonReducer(state, action, stateChangeTypes$2$1);
|
|
8272
8223
|
}
|
|
8273
|
-
return _extends$
|
|
8224
|
+
return _extends$2({}, state, changes);
|
|
8274
8225
|
}
|
|
8275
8226
|
var _excluded$2 = ["onMouseLeave", "refKey", "onKeyDown", "onBlur", "ref"], _excluded2$2 = ["onBlur", "onClick", "onPress", "onKeyDown", "refKey", "ref"], _excluded3$1 = ["item", "index", "onMouseMove", "onClick", "onPress", "refKey", "ref", "disabled"];
|
|
8276
8227
|
useSelect.stateChangeTypes = stateChangeTypes$2$1;
|
|
@@ -8278,7 +8229,7 @@
|
|
|
8278
8229
|
if (userProps === void 0) {
|
|
8279
8230
|
userProps = {};
|
|
8280
8231
|
}
|
|
8281
|
-
var props = _extends$
|
|
8232
|
+
var props = _extends$2({}, defaultProps$2$1, userProps);
|
|
8282
8233
|
var items = props.items, scrollIntoView2 = props.scrollIntoView, environment = props.environment, itemToString2 = props.itemToString, getA11ySelectionMessage2 = props.getA11ySelectionMessage, getA11yStatusMessage2 = props.getA11yStatusMessage;
|
|
8283
8234
|
var initialState2 = getInitialState$2(props);
|
|
8284
8235
|
var _useControlledReducer = useControlledReducer$1(downshiftSelectReducer, initialState2, props), state = _useControlledReducer[0], dispatch2 = _useControlledReducer[1];
|
|
@@ -8297,14 +8248,14 @@
|
|
|
8297
8248
|
var getItemNodeFromIndex = React.useCallback(function(index2) {
|
|
8298
8249
|
return itemRefs.current[elementIds.getItemId(index2)];
|
|
8299
8250
|
}, [elementIds]);
|
|
8300
|
-
useA11yMessageSetter(getA11yStatusMessage2, [isOpen, highlightedIndex, inputValue, items], _extends$
|
|
8251
|
+
useA11yMessageSetter(getA11yStatusMessage2, [isOpen, highlightedIndex, inputValue, items], _extends$2({
|
|
8301
8252
|
isInitialMount: isInitialMountRef.current,
|
|
8302
8253
|
previousResultCount: previousResultCountRef.current,
|
|
8303
8254
|
items,
|
|
8304
8255
|
environment,
|
|
8305
8256
|
itemToString: itemToString2
|
|
8306
8257
|
}, state));
|
|
8307
|
-
useA11yMessageSetter(getA11ySelectionMessage2, [selectedItem], _extends$
|
|
8258
|
+
useA11yMessageSetter(getA11ySelectionMessage2, [selectedItem], _extends$2({
|
|
8308
8259
|
isInitialMount: isInitialMountRef.current,
|
|
8309
8260
|
previousResultCount: previousResultCountRef.current,
|
|
8310
8261
|
items,
|
|
@@ -8489,7 +8440,7 @@
|
|
|
8489
8440
|
});
|
|
8490
8441
|
}, [dispatch2]);
|
|
8491
8442
|
var getLabelProps = React.useCallback(function(labelProps) {
|
|
8492
|
-
return _extends$
|
|
8443
|
+
return _extends$2({
|
|
8493
8444
|
id: elementIds.labelId,
|
|
8494
8445
|
htmlFor: elementIds.toggleButtonId
|
|
8495
8446
|
}, labelProps);
|
|
@@ -8507,7 +8458,7 @@
|
|
|
8507
8458
|
type: MenuMouseLeave$1
|
|
8508
8459
|
});
|
|
8509
8460
|
};
|
|
8510
|
-
return _extends$
|
|
8461
|
+
return _extends$2((_extends2 = {}, _extends2[refKey] = handleRefs(ref, function(menuNode) {
|
|
8511
8462
|
menuRef.current = menuNode;
|
|
8512
8463
|
}), _extends2.id = elementIds.menuId, _extends2.role = "listbox", _extends2["aria-labelledby"] = rest && rest["aria-label"] ? void 0 : "" + elementIds.labelId, _extends2.onMouseLeave = callAllEventHandlers(onMouseLeave, menuHandleMouseLeave), _extends2), rest);
|
|
8513
8464
|
}, [dispatch2, setGetterPropCallInfo, elementIds]);
|
|
@@ -8543,7 +8494,7 @@
|
|
|
8543
8494
|
});
|
|
8544
8495
|
}
|
|
8545
8496
|
};
|
|
8546
|
-
var toggleProps = _extends$
|
|
8497
|
+
var toggleProps = _extends$2((_extends3 = {}, _extends3[refKey] = handleRefs(ref, function(toggleButtonNode) {
|
|
8547
8498
|
toggleButtonRef.current = toggleButtonNode;
|
|
8548
8499
|
}), _extends3["aria-activedescendant"] = latestState.isOpen && latestState.highlightedIndex > -1 ? elementIds.getItemId(latestState.highlightedIndex) : "", _extends3["aria-controls"] = elementIds.menuId, _extends3["aria-expanded"] = latest.current.state.isOpen, _extends3["aria-haspopup"] = "listbox", _extends3["aria-labelledby"] = rest && rest["aria-label"] ? void 0 : "" + elementIds.labelId, _extends3.id = elementIds.toggleButtonId, _extends3.role = "combobox", _extends3.tabIndex = 0, _extends3.onBlur = callAllEventHandlers(onBlur, toggleButtonHandleBlur), _extends3), rest);
|
|
8549
8500
|
if (!rest.disabled) {
|
|
@@ -8578,7 +8529,7 @@
|
|
|
8578
8529
|
index: index2
|
|
8579
8530
|
});
|
|
8580
8531
|
};
|
|
8581
|
-
var itemProps = _extends$
|
|
8532
|
+
var itemProps = _extends$2((_extends4 = {
|
|
8582
8533
|
disabled: disabled2,
|
|
8583
8534
|
role: "option",
|
|
8584
8535
|
"aria-selected": "" + (item === selectedItem),
|
|
@@ -8670,7 +8621,7 @@
|
|
|
8670
8621
|
if (inputValue === "" && selectedItem && props.defaultInputValue === void 0 && props.initialInputValue === void 0 && props.inputValue === void 0) {
|
|
8671
8622
|
inputValue = props.itemToString(selectedItem);
|
|
8672
8623
|
}
|
|
8673
|
-
return _extends$
|
|
8624
|
+
return _extends$2({}, initialState2, {
|
|
8674
8625
|
inputValue
|
|
8675
8626
|
});
|
|
8676
8627
|
}
|
|
@@ -8731,7 +8682,7 @@
|
|
|
8731
8682
|
}, [state.selectedItem, props.selectedItem]);
|
|
8732
8683
|
return [getState(state, props), dispatch2];
|
|
8733
8684
|
}
|
|
8734
|
-
var defaultProps$1$1 = _extends$
|
|
8685
|
+
var defaultProps$1$1 = _extends$2({}, defaultProps$3, {
|
|
8735
8686
|
selectedItemChanged: function selectedItemChanged(prevItem, item) {
|
|
8736
8687
|
return prevItem !== item;
|
|
8737
8688
|
},
|
|
@@ -8782,7 +8733,7 @@
|
|
|
8782
8733
|
changes = getChangesOnSelection(props, state.highlightedIndex);
|
|
8783
8734
|
break;
|
|
8784
8735
|
case InputKeyDownEscape:
|
|
8785
|
-
changes = _extends$
|
|
8736
|
+
changes = _extends$2({
|
|
8786
8737
|
isOpen: false,
|
|
8787
8738
|
highlightedIndex: -1
|
|
8788
8739
|
}, !state.isOpen && {
|
|
@@ -8811,7 +8762,7 @@
|
|
|
8811
8762
|
};
|
|
8812
8763
|
break;
|
|
8813
8764
|
case InputBlur:
|
|
8814
|
-
changes = _extends$
|
|
8765
|
+
changes = _extends$2({
|
|
8815
8766
|
isOpen: false,
|
|
8816
8767
|
highlightedIndex: -1
|
|
8817
8768
|
}, state.highlightedIndex >= 0 && ((_props$items = props.items) == null ? void 0 : _props$items.length) && action.selectItem && {
|
|
@@ -8846,7 +8797,7 @@
|
|
|
8846
8797
|
default:
|
|
8847
8798
|
return downshiftCommonReducer(state, action, stateChangeTypes$1$1);
|
|
8848
8799
|
}
|
|
8849
|
-
return _extends$
|
|
8800
|
+
return _extends$2({}, state, changes);
|
|
8850
8801
|
}
|
|
8851
8802
|
var _excluded$1 = ["onMouseLeave", "refKey", "ref"], _excluded2$1 = ["item", "index", "refKey", "ref", "onMouseMove", "onMouseDown", "onClick", "onPress", "disabled"], _excluded3 = ["onClick", "onPress", "refKey", "ref"], _excluded4 = ["onKeyDown", "onChange", "onInput", "onFocus", "onBlur", "onChangeText", "refKey", "ref"];
|
|
8852
8803
|
useCombobox.stateChangeTypes = stateChangeTypes$1$1;
|
|
@@ -8854,7 +8805,7 @@
|
|
|
8854
8805
|
if (userProps === void 0) {
|
|
8855
8806
|
userProps = {};
|
|
8856
8807
|
}
|
|
8857
|
-
var props = _extends$
|
|
8808
|
+
var props = _extends$2({}, defaultProps$1$1, userProps);
|
|
8858
8809
|
var initialIsOpen = props.initialIsOpen, defaultIsOpen = props.defaultIsOpen, items = props.items, scrollIntoView2 = props.scrollIntoView, environment = props.environment, getA11yStatusMessage2 = props.getA11yStatusMessage, getA11ySelectionMessage2 = props.getA11ySelectionMessage, itemToString2 = props.itemToString;
|
|
8859
8810
|
var initialState2 = getInitialState$1(props);
|
|
8860
8811
|
var _useControlledReducer = useControlledReducer(downshiftUseComboboxReducer, initialState2, props), state = _useControlledReducer[0], dispatch2 = _useControlledReducer[1];
|
|
@@ -8873,14 +8824,14 @@
|
|
|
8873
8824
|
var getItemNodeFromIndex = React.useCallback(function(index2) {
|
|
8874
8825
|
return itemRefs.current[elementIds.getItemId(index2)];
|
|
8875
8826
|
}, [elementIds]);
|
|
8876
|
-
useA11yMessageSetter(getA11yStatusMessage2, [isOpen, highlightedIndex, inputValue, items], _extends$
|
|
8827
|
+
useA11yMessageSetter(getA11yStatusMessage2, [isOpen, highlightedIndex, inputValue, items], _extends$2({
|
|
8877
8828
|
isInitialMount: isInitialMountRef.current,
|
|
8878
8829
|
previousResultCount: previousResultCountRef.current,
|
|
8879
8830
|
items,
|
|
8880
8831
|
environment,
|
|
8881
8832
|
itemToString: itemToString2
|
|
8882
8833
|
}, state));
|
|
8883
|
-
useA11yMessageSetter(getA11ySelectionMessage2, [selectedItem], _extends$
|
|
8834
|
+
useA11yMessageSetter(getA11ySelectionMessage2, [selectedItem], _extends$2({
|
|
8884
8835
|
isInitialMount: isInitialMountRef.current,
|
|
8885
8836
|
previousResultCount: previousResultCountRef.current,
|
|
8886
8837
|
items,
|
|
@@ -9013,7 +8964,7 @@
|
|
|
9013
8964
|
};
|
|
9014
8965
|
}, [dispatch2, latest, getItemNodeFromIndex]);
|
|
9015
8966
|
var getLabelProps = React.useCallback(function(labelProps) {
|
|
9016
|
-
return _extends$
|
|
8967
|
+
return _extends$2({
|
|
9017
8968
|
id: elementIds.labelId,
|
|
9018
8969
|
htmlFor: elementIds.inputId
|
|
9019
8970
|
}, labelProps);
|
|
@@ -9023,7 +8974,7 @@
|
|
|
9023
8974
|
var _ref2 = _temp === void 0 ? {} : _temp, onMouseLeave = _ref2.onMouseLeave, _ref$refKey = _ref2.refKey, refKey = _ref$refKey === void 0 ? "ref" : _ref$refKey, ref = _ref2.ref, rest = _objectWithoutPropertiesLoose$4(_ref2, _excluded$1);
|
|
9024
8975
|
var _ref22 = _temp2 === void 0 ? {} : _temp2;
|
|
9025
8976
|
_ref22.suppressRefError;
|
|
9026
|
-
return _extends$
|
|
8977
|
+
return _extends$2((_extends2 = {}, _extends2[refKey] = handleRefs(ref, function(menuNode) {
|
|
9027
8978
|
menuRef.current = menuNode;
|
|
9028
8979
|
}), _extends2.id = elementIds.menuId, _extends2.role = "listbox", _extends2["aria-labelledby"] = rest && rest["aria-label"] ? void 0 : "" + elementIds.labelId, _extends2.onMouseLeave = callAllEventHandlers(onMouseLeave, function() {
|
|
9029
8980
|
dispatch2({
|
|
@@ -9060,7 +9011,7 @@
|
|
|
9060
9011
|
var itemHandleMouseDown = function itemHandleMouseDown2(e3) {
|
|
9061
9012
|
return e3.preventDefault();
|
|
9062
9013
|
};
|
|
9063
|
-
return _extends$
|
|
9014
|
+
return _extends$2((_extends3 = {}, _extends3[refKey] = handleRefs(ref, function(itemNode) {
|
|
9064
9015
|
if (itemNode) {
|
|
9065
9016
|
itemRefs.current[elementIds.getItemId(index2)] = itemNode;
|
|
9066
9017
|
}
|
|
@@ -9080,9 +9031,9 @@
|
|
|
9080
9031
|
type: ToggleButtonClick
|
|
9081
9032
|
});
|
|
9082
9033
|
};
|
|
9083
|
-
return _extends$
|
|
9034
|
+
return _extends$2((_extends4 = {}, _extends4[refKey] = handleRefs(ref, function(toggleButtonNode) {
|
|
9084
9035
|
toggleButtonRef.current = toggleButtonNode;
|
|
9085
|
-
}), _extends4["aria-controls"] = elementIds.menuId, _extends4["aria-expanded"] = latestState.isOpen, _extends4.id = elementIds.toggleButtonId, _extends4.tabIndex = -1, _extends4), !rest.disabled && _extends$
|
|
9036
|
+
}), _extends4["aria-controls"] = elementIds.menuId, _extends4["aria-expanded"] = latestState.isOpen, _extends4.id = elementIds.toggleButtonId, _extends4.tabIndex = -1, _extends4), !rest.disabled && _extends$2({}, {
|
|
9086
9037
|
onClick: callAllEventHandlers(onClick, toggleButtonHandleClick)
|
|
9087
9038
|
}), rest);
|
|
9088
9039
|
}, [dispatch2, latest, elementIds]);
|
|
@@ -9128,7 +9079,7 @@
|
|
|
9128
9079
|
var _eventHandlers;
|
|
9129
9080
|
eventHandlers = (_eventHandlers = {}, _eventHandlers[onChangeKey] = callAllEventHandlers(onChange2, onInput, inputHandleChange), _eventHandlers.onKeyDown = callAllEventHandlers(onKeyDown, inputHandleKeyDown), _eventHandlers.onBlur = callAllEventHandlers(onBlur, inputHandleBlur), _eventHandlers.onFocus = callAllEventHandlers(onFocus, inputHandleFocus), _eventHandlers);
|
|
9130
9081
|
}
|
|
9131
|
-
return _extends$
|
|
9082
|
+
return _extends$2((_extends5 = {}, _extends5[refKey] = handleRefs(ref, function(inputNode) {
|
|
9132
9083
|
inputRef.current = inputNode;
|
|
9133
9084
|
}), _extends5["aria-activedescendant"] = latestState.isOpen && latestState.highlightedIndex > -1 ? elementIds.getItemId(latestState.highlightedIndex) : "", _extends5["aria-autocomplete"] = "list", _extends5["aria-controls"] = elementIds.menuId, _extends5["aria-expanded"] = latestState.isOpen, _extends5["aria-labelledby"] = rest && rest["aria-label"] ? void 0 : "" + elementIds.labelId, _extends5.autoComplete = "off", _extends5.id = elementIds.inputId, _extends5.role = "combobox", _extends5.value = latestState.inputValue, _extends5), eventHandlers, rest);
|
|
9134
9085
|
}, [setGetterPropCallInfo, latest, elementIds, inputKeyDownHandlers, dispatch2, mouseAndTouchTrackersRef, environment]);
|
|
@@ -9313,7 +9264,7 @@
|
|
|
9313
9264
|
} else if (activeIndex === selectedItems.length - 1) {
|
|
9314
9265
|
newActiveIndex = selectedItems.length - 2;
|
|
9315
9266
|
}
|
|
9316
|
-
changes = _extends$
|
|
9267
|
+
changes = _extends$2({
|
|
9317
9268
|
selectedItems: [].concat(selectedItems.slice(0, activeIndex), selectedItems.slice(activeIndex + 1))
|
|
9318
9269
|
}, {
|
|
9319
9270
|
activeIndex: newActiveIndex
|
|
@@ -9380,7 +9331,7 @@
|
|
|
9380
9331
|
default:
|
|
9381
9332
|
throw new Error("Reducer called without proper action type.");
|
|
9382
9333
|
}
|
|
9383
|
-
return _extends$
|
|
9334
|
+
return _extends$2({}, state, changes);
|
|
9384
9335
|
}
|
|
9385
9336
|
var _excluded$4 = ["refKey", "ref", "onClick", "onKeyDown", "selectedItem", "index"], _excluded2 = ["refKey", "ref", "onKeyDown", "onClick", "preventKeyAction"];
|
|
9386
9337
|
useMultipleSelection.stateChangeTypes = stateChangeTypes$4;
|
|
@@ -9388,7 +9339,7 @@
|
|
|
9388
9339
|
if (userProps === void 0) {
|
|
9389
9340
|
userProps = {};
|
|
9390
9341
|
}
|
|
9391
|
-
var props = _extends$
|
|
9342
|
+
var props = _extends$2({}, defaultProps$4, userProps);
|
|
9392
9343
|
var getA11yRemovalMessage2 = props.getA11yRemovalMessage, itemToString2 = props.itemToString, environment = props.environment, keyNavigationNext = props.keyNavigationNext, keyNavigationPrevious = props.keyNavigationPrevious;
|
|
9393
9344
|
var _useControlledReducer = useControlledReducer$1(downshiftMultipleSelectionReducer, getInitialState(props), props), state = _useControlledReducer[0], dispatch2 = _useControlledReducer[1];
|
|
9394
9345
|
var activeIndex = state.activeIndex, selectedItems = state.selectedItems;
|
|
@@ -9495,7 +9446,7 @@
|
|
|
9495
9446
|
selectedItemKeyDownHandlers[key](event2);
|
|
9496
9447
|
}
|
|
9497
9448
|
};
|
|
9498
|
-
return _extends$
|
|
9449
|
+
return _extends$2((_extends2 = {}, _extends2[refKey] = handleRefs(ref, function(selectedItemNode) {
|
|
9499
9450
|
if (selectedItemNode) {
|
|
9500
9451
|
selectedItemRefs.current.push(selectedItemNode);
|
|
9501
9452
|
}
|
|
@@ -9517,7 +9468,7 @@
|
|
|
9517
9468
|
type: DropdownClick
|
|
9518
9469
|
});
|
|
9519
9470
|
};
|
|
9520
|
-
return _extends$
|
|
9471
|
+
return _extends$2((_extends3 = {}, _extends3[refKey] = handleRefs(ref, function(dropdownNode) {
|
|
9521
9472
|
if (dropdownNode) {
|
|
9522
9473
|
dropdownRef.current = dropdownNode;
|
|
9523
9474
|
}
|
|
@@ -11056,7 +11007,7 @@
|
|
|
11056
11007
|
function getBasePlacement$2(placement) {
|
|
11057
11008
|
return placement.split("-")[0];
|
|
11058
11009
|
}
|
|
11059
|
-
var max$
|
|
11010
|
+
var max$4 = Math.max;
|
|
11060
11011
|
var min$3 = Math.min;
|
|
11061
11012
|
var round$2 = Math.round;
|
|
11062
11013
|
function getUAString() {
|
|
@@ -11193,7 +11144,7 @@
|
|
|
11193
11144
|
return ["top", "bottom"].indexOf(placement) >= 0 ? "x" : "y";
|
|
11194
11145
|
}
|
|
11195
11146
|
function within(min2, value, max2) {
|
|
11196
|
-
return max$
|
|
11147
|
+
return max$4(min2, min$3(value, max2));
|
|
11197
11148
|
}
|
|
11198
11149
|
function withinMaxClamp(min2, value, max2) {
|
|
11199
11150
|
var v2 = within(min2, value, max2);
|
|
@@ -11489,12 +11440,12 @@
|
|
|
11489
11440
|
var html2 = getDocumentElement(element2);
|
|
11490
11441
|
var winScroll = getWindowScroll(element2);
|
|
11491
11442
|
var body = (_element$ownerDocumen = element2.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
|
11492
|
-
var width = max$
|
|
11493
|
-
var height = max$
|
|
11443
|
+
var width = max$4(html2.scrollWidth, html2.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
11444
|
+
var height = max$4(html2.scrollHeight, html2.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
11494
11445
|
var x2 = -winScroll.scrollLeft + getWindowScrollBarX(element2);
|
|
11495
11446
|
var y2 = -winScroll.scrollTop;
|
|
11496
11447
|
if (getComputedStyle$1(body || html2).direction === "rtl") {
|
|
11497
|
-
x2 += max$
|
|
11448
|
+
x2 += max$4(html2.clientWidth, body ? body.clientWidth : 0) - width;
|
|
11498
11449
|
}
|
|
11499
11450
|
return {
|
|
11500
11451
|
width,
|
|
@@ -11568,10 +11519,10 @@
|
|
|
11568
11519
|
var firstClippingParent = clippingParents2[0];
|
|
11569
11520
|
var clippingRect = clippingParents2.reduce(function(accRect, clippingParent) {
|
|
11570
11521
|
var rect = getClientRectFromMixedType(element2, clippingParent, strategy);
|
|
11571
|
-
accRect.top = max$
|
|
11522
|
+
accRect.top = max$4(rect.top, accRect.top);
|
|
11572
11523
|
accRect.right = min$3(rect.right, accRect.right);
|
|
11573
11524
|
accRect.bottom = min$3(rect.bottom, accRect.bottom);
|
|
11574
|
-
accRect.left = max$
|
|
11525
|
+
accRect.left = max$4(rect.left, accRect.left);
|
|
11575
11526
|
return accRect;
|
|
11576
11527
|
}, getClientRectFromMixedType(element2, firstClippingParent, strategy));
|
|
11577
11528
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
@@ -11970,7 +11921,7 @@
|
|
|
11970
11921
|
var offsetModifierValue = (_offsetModifierState$ = offsetModifierState == null ? void 0 : offsetModifierState[mainAxis]) != null ? _offsetModifierState$ : 0;
|
|
11971
11922
|
var tetherMin = offset2 + minOffset - offsetModifierValue - clientOffset;
|
|
11972
11923
|
var tetherMax = offset2 + maxOffset2 - offsetModifierValue;
|
|
11973
|
-
var preventedOffset = within(tether ? min$3(min2, tetherMin) : min2, offset2, tether ? max$
|
|
11924
|
+
var preventedOffset = within(tether ? min$3(min2, tetherMin) : min2, offset2, tether ? max$4(max2, tetherMax) : max2);
|
|
11974
11925
|
popperOffsets2[mainAxis] = preventedOffset;
|
|
11975
11926
|
data2[mainAxis] = preventedOffset - offset2;
|
|
11976
11927
|
}
|
|
@@ -14865,8 +14816,8 @@
|
|
|
14865
14816
|
}}
|
|
14866
14817
|
}
|
|
14867
14818
|
`;
|
|
14868
|
-
function Tooltip$1({ appendTo = document.body, getReferenceClientRect, children: children2, className, content: content2, disabled: disabled2, hideOnClick = true, interactive, visible, placement = "auto", styling = "default", followCursor: followCursor$1 = false, hidden = false, style: style2, onClickOutside = () => false }) {
|
|
14869
|
-
return jsxRuntime.exports.jsx(Tippy, { appendTo, arrow: true, disabled: disabled2, followCursor: followCursor$1, getReferenceClientRect, hideOnClick: visible !== void 0 ? void 0 : hideOnClick, interactive, onClickOutside, placement, plugins: [followCursor], render: (attrs2) => jsxRuntime.exports.jsxs(TooltipWrapper, Object.assign({ "$hidden": hidden, className, style: style2, styling }, attrs2, { children: [content2, jsxRuntime.exports.jsx(Arrow, { "$hidden": hidden, "data-popper-arrow": "", placement: attrs2["data-placement"], styling })] })), visible, zIndex: 9998, children: children2 });
|
|
14819
|
+
function Tooltip$1({ appendTo = document.body, getReferenceClientRect, children: children2, className, content: content2, disabled: disabled2, hideOnClick = true, interactive, visible, placement = "auto", styling = "default", followCursor: followCursor$1 = false, hidden = false, style: style2, delay = 0, onClickOutside = () => false }) {
|
|
14820
|
+
return jsxRuntime.exports.jsx(Tippy, { appendTo, arrow: true, delay, disabled: disabled2, followCursor: followCursor$1, getReferenceClientRect, hideOnClick: visible !== void 0 ? void 0 : hideOnClick, interactive, onClickOutside, placement, plugins: [followCursor], render: (attrs2) => jsxRuntime.exports.jsxs(TooltipWrapper, Object.assign({ "$hidden": hidden, className, style: style2, styling }, attrs2, { children: [content2, jsxRuntime.exports.jsx(Arrow, { "$hidden": hidden, "data-popper-arrow": "", placement: attrs2["data-placement"], styling })] })), visible, zIndex: 9998, children: children2 });
|
|
14870
14821
|
}
|
|
14871
14822
|
const { stateChangeTypes: stateChangeTypes$3 } = useCombobox;
|
|
14872
14823
|
const Wrapper$a = styled__default.default.div`
|
|
@@ -21834,7 +21785,7 @@
|
|
|
21834
21785
|
depth = depth === undefined$12 ? 1 : toInteger2(depth);
|
|
21835
21786
|
return baseFlatten(map2(collection2, iteratee2), depth);
|
|
21836
21787
|
}
|
|
21837
|
-
function
|
|
21788
|
+
function forEach2(collection2, iteratee2) {
|
|
21838
21789
|
var func = isArray2(collection2) ? arrayEach2 : baseEach;
|
|
21839
21790
|
return func(collection2, getIteratee(iteratee2, 3));
|
|
21840
21791
|
}
|
|
@@ -23365,7 +23316,7 @@
|
|
|
23365
23316
|
lodash2.findLastIndex = findLastIndex;
|
|
23366
23317
|
lodash2.findLastKey = findLastKey;
|
|
23367
23318
|
lodash2.floor = floor;
|
|
23368
|
-
lodash2.forEach =
|
|
23319
|
+
lodash2.forEach = forEach2;
|
|
23369
23320
|
lodash2.forEachRight = forEachRight;
|
|
23370
23321
|
lodash2.forIn = forIn;
|
|
23371
23322
|
lodash2.forInRight = forInRight;
|
|
@@ -23488,7 +23439,7 @@
|
|
|
23488
23439
|
lodash2.uniqueId = uniqueId;
|
|
23489
23440
|
lodash2.upperCase = upperCase;
|
|
23490
23441
|
lodash2.upperFirst = upperFirst;
|
|
23491
|
-
lodash2.each =
|
|
23442
|
+
lodash2.each = forEach2;
|
|
23492
23443
|
lodash2.eachRight = forEachRight;
|
|
23493
23444
|
lodash2.first = head;
|
|
23494
23445
|
mixin2(lodash2, function() {
|
|
@@ -25451,7 +25402,7 @@
|
|
|
25451
25402
|
});
|
|
25452
25403
|
return result || new Date(NaN);
|
|
25453
25404
|
}
|
|
25454
|
-
function max$
|
|
25405
|
+
function max$3(dirtyDatesArray) {
|
|
25455
25406
|
requiredArgs(1, arguments);
|
|
25456
25407
|
var datesArray;
|
|
25457
25408
|
if (dirtyDatesArray && typeof dirtyDatesArray.forEach === "function") {
|
|
@@ -25666,19 +25617,6 @@
|
|
|
25666
25617
|
}
|
|
25667
25618
|
return target;
|
|
25668
25619
|
}
|
|
25669
|
-
function _assertThisInitialized$2(self2) {
|
|
25670
|
-
if (self2 === void 0) {
|
|
25671
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
25672
|
-
}
|
|
25673
|
-
return self2;
|
|
25674
|
-
}
|
|
25675
|
-
function _setPrototypeOf$2(o2, p2) {
|
|
25676
|
-
_setPrototypeOf$2 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o3, p3) {
|
|
25677
|
-
o3.__proto__ = p3;
|
|
25678
|
-
return o3;
|
|
25679
|
-
};
|
|
25680
|
-
return _setPrototypeOf$2(o2, p2);
|
|
25681
|
-
}
|
|
25682
25620
|
function _inherits$1(subClass, superClass) {
|
|
25683
25621
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
25684
25622
|
throw new TypeError("Super expression must either be null or a function");
|
|
@@ -25696,27 +25634,6 @@
|
|
|
25696
25634
|
if (superClass)
|
|
25697
25635
|
_setPrototypeOf$2(subClass, superClass);
|
|
25698
25636
|
}
|
|
25699
|
-
function _getPrototypeOf$1(o2) {
|
|
25700
|
-
_getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o3) {
|
|
25701
|
-
return o3.__proto__ || Object.getPrototypeOf(o3);
|
|
25702
|
-
};
|
|
25703
|
-
return _getPrototypeOf$1(o2);
|
|
25704
|
-
}
|
|
25705
|
-
function _isNativeReflectConstruct$1() {
|
|
25706
|
-
if (typeof Reflect === "undefined" || !Reflect.construct)
|
|
25707
|
-
return false;
|
|
25708
|
-
if (Reflect.construct.sham)
|
|
25709
|
-
return false;
|
|
25710
|
-
if (typeof Proxy === "function")
|
|
25711
|
-
return true;
|
|
25712
|
-
try {
|
|
25713
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
25714
|
-
}));
|
|
25715
|
-
return true;
|
|
25716
|
-
} catch (e3) {
|
|
25717
|
-
return false;
|
|
25718
|
-
}
|
|
25719
|
-
}
|
|
25720
25637
|
function _possibleConstructorReturn$1(self2, call2) {
|
|
25721
25638
|
if (call2 && (_typeof$5(call2) === "object" || typeof call2 === "function")) {
|
|
25722
25639
|
return call2;
|
|
@@ -28080,7 +27997,7 @@
|
|
|
28080
27997
|
function validateTimezone(_hours, minutes) {
|
|
28081
27998
|
return minutes >= 0 && minutes <= 59;
|
|
28082
27999
|
}
|
|
28083
|
-
function _inheritsLoose
|
|
28000
|
+
function _inheritsLoose(subClass, superClass) {
|
|
28084
28001
|
subClass.prototype = Object.create(superClass.prototype);
|
|
28085
28002
|
subClass.prototype.constructor = subClass;
|
|
28086
28003
|
_setPrototypeOf$1(subClass, superClass);
|
|
@@ -28178,7 +28095,7 @@
|
|
|
28178
28095
|
var _class, _temp;
|
|
28179
28096
|
var componentName = WrappedComponent.displayName || WrappedComponent.name || "Component";
|
|
28180
28097
|
return _temp = _class = /* @__PURE__ */ function(_Component) {
|
|
28181
|
-
_inheritsLoose
|
|
28098
|
+
_inheritsLoose(onClickOutside, _Component);
|
|
28182
28099
|
function onClickOutside(props) {
|
|
28183
28100
|
var _this;
|
|
28184
28101
|
_this = _Component.call(this, props) || this;
|
|
@@ -28909,9 +28826,9 @@
|
|
|
28909
28826
|
var n2 = r2.filter(function(e4) {
|
|
28910
28827
|
return differenceInCalendarDays(e4, t2) <= 0;
|
|
28911
28828
|
});
|
|
28912
|
-
return max$
|
|
28829
|
+
return max$3(n2);
|
|
28913
28830
|
}
|
|
28914
|
-
return r2 ? max$
|
|
28831
|
+
return r2 ? max$3(r2) : t2;
|
|
28915
28832
|
}
|
|
28916
28833
|
function mt() {
|
|
28917
28834
|
for (var e3 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : [], t2 = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : "react-datepicker__day--highlighted", r2 = /* @__PURE__ */ new Map(), o2 = 0, a2 = e3.length; o2 < a2; o2++) {
|
|
@@ -36377,7 +36294,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
36377
36294
|
return Constructor;
|
|
36378
36295
|
};
|
|
36379
36296
|
}();
|
|
36380
|
-
var _extends$
|
|
36297
|
+
var _extends$1 = Object.assign || function(target) {
|
|
36381
36298
|
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
36382
36299
|
var source = arguments[i2];
|
|
36383
36300
|
for (var key in source) {
|
|
@@ -36707,7 +36624,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
36707
36624
|
{
|
|
36708
36625
|
className,
|
|
36709
36626
|
ref: this._setRef,
|
|
36710
|
-
style: _extends$
|
|
36627
|
+
style: _extends$1({}, outerStyle, style2)
|
|
36711
36628
|
},
|
|
36712
36629
|
!bailoutOnChildren && children2(childParams)
|
|
36713
36630
|
);
|
|
@@ -36833,15 +36750,15 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
36833
36750
|
var _class, _temp;
|
|
36834
36751
|
var getItemOffset = _ref2.getItemOffset, getEstimatedTotalSize = _ref2.getEstimatedTotalSize, getItemSize = _ref2.getItemSize, getOffsetForIndexAndAlignment = _ref2.getOffsetForIndexAndAlignment, getStartIndexForOffset = _ref2.getStartIndexForOffset, getStopIndexForStartIndex = _ref2.getStopIndexForStartIndex, initInstanceProps = _ref2.initInstanceProps, shouldResetStyleCacheOnItemSizeChange = _ref2.shouldResetStyleCacheOnItemSizeChange, validateProps = _ref2.validateProps;
|
|
36835
36752
|
return _temp = _class = /* @__PURE__ */ function(_PureComponent) {
|
|
36836
|
-
_inheritsLoose$
|
|
36753
|
+
_inheritsLoose$1(List2, _PureComponent);
|
|
36837
36754
|
function List2(props) {
|
|
36838
36755
|
var _this;
|
|
36839
36756
|
_this = _PureComponent.call(this, props) || this;
|
|
36840
|
-
_this._instanceProps = initInstanceProps(_this.props, _assertThisInitialized$
|
|
36757
|
+
_this._instanceProps = initInstanceProps(_this.props, _assertThisInitialized$2(_assertThisInitialized$2(_this)));
|
|
36841
36758
|
_this._outerRef = void 0;
|
|
36842
36759
|
_this._resetIsScrollingTimeoutId = null;
|
|
36843
36760
|
_this.state = {
|
|
36844
|
-
instance: _assertThisInitialized$
|
|
36761
|
+
instance: _assertThisInitialized$2(_assertThisInitialized$2(_this)),
|
|
36845
36762
|
isScrolling: false,
|
|
36846
36763
|
scrollDirection: "forward",
|
|
36847
36764
|
scrollOffset: typeof _this.props.initialScrollOffset === "number" ? _this.props.initialScrollOffset : 0,
|
|
@@ -37055,7 +36972,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
37055
36972
|
className,
|
|
37056
36973
|
onScroll,
|
|
37057
36974
|
ref: this._outerRefSetter,
|
|
37058
|
-
style: _extends$
|
|
36975
|
+
style: _extends$2({
|
|
37059
36976
|
position: "relative",
|
|
37060
36977
|
height,
|
|
37061
36978
|
width,
|
|
@@ -38430,7 +38347,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
38430
38347
|
ComponentType2["TOOLTIP"] = "tooltip";
|
|
38431
38348
|
return ComponentType2;
|
|
38432
38349
|
})(ComponentType || {});
|
|
38433
|
-
const
|
|
38350
|
+
const StyledA = core$2.injectCss(styled__default.default.a`
|
|
38434
38351
|
:visited {
|
|
38435
38352
|
color: ${(props) => props.theme.colors.secondary};
|
|
38436
38353
|
}
|
|
@@ -38443,20 +38360,35 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
38443
38360
|
:active {
|
|
38444
38361
|
color: ${(props) => props.theme.colors.primaryDown};
|
|
38445
38362
|
}
|
|
38446
|
-
|
|
38447
|
-
const StyledA = core$2.injectCss(CustomA);
|
|
38363
|
+
`);
|
|
38448
38364
|
function Anchor(props) {
|
|
38449
38365
|
const [style2, css2] = core$2.useComponentStyles(props);
|
|
38366
|
+
const isRelative = React.useMemo(() => {
|
|
38367
|
+
var _a3;
|
|
38368
|
+
return (_a3 = props.href) == null ? void 0 : _a3.startsWith("/");
|
|
38369
|
+
}, [props.href]);
|
|
38370
|
+
const extraProps = React.useMemo(() => {
|
|
38371
|
+
if (!isRelative) {
|
|
38372
|
+
return {};
|
|
38373
|
+
}
|
|
38374
|
+
return {
|
|
38375
|
+
href: void 0,
|
|
38376
|
+
to: props.href
|
|
38377
|
+
};
|
|
38378
|
+
}, [isRelative, props.href]);
|
|
38379
|
+
const AsComponent = React.useMemo(() => isRelative ? core$2.ReactRouter.Link : "a", [isRelative]);
|
|
38450
38380
|
return /* @__PURE__ */ React__default.default.createElement(
|
|
38451
38381
|
StyledA,
|
|
38452
38382
|
{
|
|
38453
38383
|
$rawCss: css2,
|
|
38384
|
+
as: AsComponent,
|
|
38454
38385
|
className: props.clean ? "report-clean-anchor" : props.className,
|
|
38455
38386
|
href: props.href,
|
|
38456
38387
|
id: props.name,
|
|
38457
38388
|
rel: "noreferrer",
|
|
38458
38389
|
style: style2,
|
|
38459
|
-
target: props.new_tab ? "_blank" : "_self"
|
|
38390
|
+
target: props.new_tab ? "_blank" : "_self",
|
|
38391
|
+
...extraProps
|
|
38460
38392
|
},
|
|
38461
38393
|
/* @__PURE__ */ React__default.default.createElement(core$2.DisplayCtx.Provider, { value: { component: ComponentType.ANCHOR, direction: "horizontal" } }, props.children.map((child, idx) => /* @__PURE__ */ React__default.default.createElement(core$2.DynamicComponent, { component: child, key: `stack-${idx}-${child.name}` })))
|
|
38462
38394
|
);
|
|
@@ -38606,74 +38538,8 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
38606
38538
|
}
|
|
38607
38539
|
);
|
|
38608
38540
|
}
|
|
38609
|
-
function _extends$1() {
|
|
38610
|
-
_extends$1 = Object.assign ? Object.assign.bind() : function(target) {
|
|
38611
|
-
for (var i2 = 1; i2 < arguments.length; i2++) {
|
|
38612
|
-
var source = arguments[i2];
|
|
38613
|
-
for (var key in source) {
|
|
38614
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
38615
|
-
target[key] = source[key];
|
|
38616
|
-
}
|
|
38617
|
-
}
|
|
38618
|
-
}
|
|
38619
|
-
return target;
|
|
38620
|
-
};
|
|
38621
|
-
return _extends$1.apply(this, arguments);
|
|
38622
|
-
}
|
|
38623
|
-
function _inheritsLoose(subClass, superClass) {
|
|
38624
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
38625
|
-
subClass.prototype.constructor = subClass;
|
|
38626
|
-
_setPrototypeOf$2(subClass, superClass);
|
|
38627
|
-
}
|
|
38628
|
-
function _isNativeFunction(fn2) {
|
|
38629
|
-
return Function.toString.call(fn2).indexOf("[native code]") !== -1;
|
|
38630
|
-
}
|
|
38631
|
-
function _construct(Parent, args, Class) {
|
|
38632
|
-
if (_isNativeReflectConstruct$1()) {
|
|
38633
|
-
_construct = Reflect.construct.bind();
|
|
38634
|
-
} else {
|
|
38635
|
-
_construct = function _construct2(Parent2, args2, Class2) {
|
|
38636
|
-
var a2 = [null];
|
|
38637
|
-
a2.push.apply(a2, args2);
|
|
38638
|
-
var Constructor = Function.bind.apply(Parent2, a2);
|
|
38639
|
-
var instance2 = new Constructor();
|
|
38640
|
-
if (Class2)
|
|
38641
|
-
_setPrototypeOf$2(instance2, Class2.prototype);
|
|
38642
|
-
return instance2;
|
|
38643
|
-
};
|
|
38644
|
-
}
|
|
38645
|
-
return _construct.apply(null, arguments);
|
|
38646
|
-
}
|
|
38647
|
-
function _wrapNativeSuper(Class) {
|
|
38648
|
-
var _cache = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
38649
|
-
_wrapNativeSuper = function _wrapNativeSuper2(Class2) {
|
|
38650
|
-
if (Class2 === null || !_isNativeFunction(Class2))
|
|
38651
|
-
return Class2;
|
|
38652
|
-
if (typeof Class2 !== "function") {
|
|
38653
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
38654
|
-
}
|
|
38655
|
-
if (typeof _cache !== "undefined") {
|
|
38656
|
-
if (_cache.has(Class2))
|
|
38657
|
-
return _cache.get(Class2);
|
|
38658
|
-
_cache.set(Class2, Wrapper2);
|
|
38659
|
-
}
|
|
38660
|
-
function Wrapper2() {
|
|
38661
|
-
return _construct(Class2, arguments, _getPrototypeOf$1(this).constructor);
|
|
38662
|
-
}
|
|
38663
|
-
Wrapper2.prototype = Object.create(Class2.prototype, {
|
|
38664
|
-
constructor: {
|
|
38665
|
-
value: Wrapper2,
|
|
38666
|
-
enumerable: false,
|
|
38667
|
-
writable: true,
|
|
38668
|
-
configurable: true
|
|
38669
|
-
}
|
|
38670
|
-
});
|
|
38671
|
-
return _setPrototypeOf$2(Wrapper2, Class2);
|
|
38672
|
-
};
|
|
38673
|
-
return _wrapNativeSuper(Class);
|
|
38674
|
-
}
|
|
38675
38541
|
var PolishedError = /* @__PURE__ */ function(_Error) {
|
|
38676
|
-
_inheritsLoose(PolishedError2, _Error);
|
|
38542
|
+
_inheritsLoose$1(PolishedError2, _Error);
|
|
38677
38543
|
function PolishedError2(code2) {
|
|
38678
38544
|
var _this;
|
|
38679
38545
|
{
|
|
@@ -39027,7 +38893,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
39027
38893
|
return color2;
|
|
39028
38894
|
var parsedColor = parseToRgb(color2);
|
|
39029
38895
|
var alpha = typeof parsedColor.alpha === "number" ? parsedColor.alpha : 1;
|
|
39030
|
-
var colorWithAlpha = _extends$
|
|
38896
|
+
var colorWithAlpha = _extends$2({}, parsedColor, {
|
|
39031
38897
|
alpha: guard(0, 1, +(alpha * 100 - parseFloat(amount) * 100).toFixed(2) / 100)
|
|
39032
38898
|
});
|
|
39033
38899
|
return rgba$2(colorWithAlpha);
|
|
@@ -43444,7 +43310,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
43444
43310
|
var hasOwn$2 = Object.prototype.hasOwnProperty;
|
|
43445
43311
|
var toStr$2 = Object.prototype.toString;
|
|
43446
43312
|
var defineProperty$2 = Object.defineProperty;
|
|
43447
|
-
var gOPD = Object.getOwnPropertyDescriptor;
|
|
43313
|
+
var gOPD$1 = Object.getOwnPropertyDescriptor;
|
|
43448
43314
|
var isArray$8 = function isArray2(arr) {
|
|
43449
43315
|
if (typeof Array.isArray === "function") {
|
|
43450
43316
|
return Array.isArray(arr);
|
|
@@ -43481,8 +43347,8 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
43481
43347
|
if (name2 === "__proto__") {
|
|
43482
43348
|
if (!hasOwn$2.call(obj, name2)) {
|
|
43483
43349
|
return void 0;
|
|
43484
|
-
} else if (gOPD) {
|
|
43485
|
-
return gOPD(obj, name2).value;
|
|
43350
|
+
} else if (gOPD$1) {
|
|
43351
|
+
return gOPD$1(obj, name2).value;
|
|
43486
43352
|
}
|
|
43487
43353
|
}
|
|
43488
43354
|
return obj[name2];
|
|
@@ -43979,7 +43845,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
43979
43845
|
}
|
|
43980
43846
|
return items;
|
|
43981
43847
|
}
|
|
43982
|
-
const hasOwnProperty$
|
|
43848
|
+
const hasOwnProperty$4 = {}.hasOwnProperty;
|
|
43983
43849
|
function combineExtensions(extensions2) {
|
|
43984
43850
|
const all2 = {};
|
|
43985
43851
|
let index2 = -1;
|
|
@@ -43991,13 +43857,13 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
43991
43857
|
function syntaxExtension(all2, extension2) {
|
|
43992
43858
|
let hook;
|
|
43993
43859
|
for (hook in extension2) {
|
|
43994
|
-
const maybe = hasOwnProperty$
|
|
43860
|
+
const maybe = hasOwnProperty$4.call(all2, hook) ? all2[hook] : void 0;
|
|
43995
43861
|
const left2 = maybe || (all2[hook] = {});
|
|
43996
43862
|
const right2 = extension2[hook];
|
|
43997
43863
|
let code2;
|
|
43998
43864
|
if (right2) {
|
|
43999
43865
|
for (code2 in right2) {
|
|
44000
|
-
if (!hasOwnProperty$
|
|
43866
|
+
if (!hasOwnProperty$4.call(left2, code2))
|
|
44001
43867
|
left2[code2] = [];
|
|
44002
43868
|
const value = right2[code2];
|
|
44003
43869
|
constructs(
|
|
@@ -49826,6 +49692,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
49826
49692
|
onAuxClick: null,
|
|
49827
49693
|
onBeforeMatch: null,
|
|
49828
49694
|
onBeforePrint: null,
|
|
49695
|
+
onBeforeToggle: null,
|
|
49829
49696
|
onBeforeUnload: null,
|
|
49830
49697
|
onBlur: null,
|
|
49831
49698
|
onCancel: null,
|
|
@@ -49931,6 +49798,8 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
49931
49798
|
scoped: boolean,
|
|
49932
49799
|
seamless: boolean,
|
|
49933
49800
|
selected: boolean,
|
|
49801
|
+
shadowRootDelegatesFocus: boolean,
|
|
49802
|
+
shadowRootMode: null,
|
|
49934
49803
|
shape: null,
|
|
49935
49804
|
size: number$4,
|
|
49936
49805
|
sizes: null,
|
|
@@ -100033,10 +99902,10 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
100033
99902
|
fullLayout = fullLayout || {};
|
|
100034
99903
|
var axId = ax._id || "x";
|
|
100035
99904
|
var axLetter = axId.charAt(0);
|
|
100036
|
-
function toLog(v2,
|
|
99905
|
+
function toLog(v2, clip2) {
|
|
100037
99906
|
if (v2 > 0)
|
|
100038
99907
|
return Math.log(v2) / Math.LN10;
|
|
100039
|
-
else if (v2 <= 0 &&
|
|
99908
|
+
else if (v2 <= 0 && clip2 && ax.range && ax.range.length === 2) {
|
|
100040
99909
|
var r0 = ax.range[0];
|
|
100041
99910
|
var r1 = ax.range[1];
|
|
100042
99911
|
return 0.5 * (r0 + r1 - 2 * LOG_CLIP * Math.abs(r0 - r1));
|
|
@@ -100168,8 +100037,8 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
100168
100037
|
ax.l2c = ax.type === "log" ? fromLog : ensureNumber;
|
|
100169
100038
|
ax.l2p = l2p;
|
|
100170
100039
|
ax.p2l = p2l;
|
|
100171
|
-
ax.c2p = ax.type === "log" ? function(v2,
|
|
100172
|
-
return l2p(toLog(v2,
|
|
100040
|
+
ax.c2p = ax.type === "log" ? function(v2, clip2) {
|
|
100041
|
+
return l2p(toLog(v2, clip2));
|
|
100173
100042
|
} : l2p;
|
|
100174
100043
|
ax.p2c = ax.type === "log" ? function(px) {
|
|
100175
100044
|
return fromLog(p2l(px));
|
|
@@ -100183,8 +100052,8 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
100183
100052
|
ax.p2d = ax.p2r = p2l;
|
|
100184
100053
|
ax.cleanPos = ensureNumber;
|
|
100185
100054
|
} else if (ax.type === "log") {
|
|
100186
|
-
ax.d2r = ax.d2l = function(v2,
|
|
100187
|
-
return toLog(cleanNumber(v2),
|
|
100055
|
+
ax.d2r = ax.d2l = function(v2, clip2) {
|
|
100056
|
+
return toLog(cleanNumber(v2), clip2);
|
|
100188
100057
|
};
|
|
100189
100058
|
ax.r2d = ax.r2c = function(v2) {
|
|
100190
100059
|
return fromLog(cleanNumber(v2));
|
|
@@ -100193,8 +100062,8 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
100193
100062
|
ax.c2d = ax.l2r = ensureNumber;
|
|
100194
100063
|
ax.c2r = toLog;
|
|
100195
100064
|
ax.l2d = fromLog;
|
|
100196
|
-
ax.d2p = function(v2,
|
|
100197
|
-
return ax.l2p(ax.d2r(v2,
|
|
100065
|
+
ax.d2p = function(v2, clip2) {
|
|
100066
|
+
return ax.l2p(ax.d2r(v2, clip2));
|
|
100198
100067
|
};
|
|
100199
100068
|
ax.p2d = function(px) {
|
|
100200
100069
|
return fromLog(p2l(px));
|
|
@@ -119789,11 +119658,11 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
119789
119658
|
};
|
|
119790
119659
|
function drawClipPath(trace, t2, layer, xaxis, yaxis) {
|
|
119791
119660
|
var seg, xp, yp, i2;
|
|
119792
|
-
var
|
|
119793
|
-
if (!
|
|
119794
|
-
|
|
119661
|
+
var clip2 = layer.select("#" + trace._clipPathId);
|
|
119662
|
+
if (!clip2.size()) {
|
|
119663
|
+
clip2 = layer.append("clipPath").classed("carpetclip", true);
|
|
119795
119664
|
}
|
|
119796
|
-
var path2 = Lib.ensureSingle(
|
|
119665
|
+
var path2 = Lib.ensureSingle(clip2, "path", "carpetboundary");
|
|
119797
119666
|
var segments = t2.clipsegments;
|
|
119798
119667
|
var segs = [];
|
|
119799
119668
|
for (i2 = 0; i2 < segments.length; i2++) {
|
|
@@ -119803,7 +119672,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
119803
119672
|
segs.push(makepath(xp, yp, seg.bicubic));
|
|
119804
119673
|
}
|
|
119805
119674
|
var clipPathData = "M" + segs.join("L") + "Z";
|
|
119806
|
-
|
|
119675
|
+
clip2.attr("id", trace._clipPathId);
|
|
119807
119676
|
path2.attr("d", clipPathData);
|
|
119808
119677
|
}
|
|
119809
119678
|
function drawGridLines(xaxis, yaxis, layer, axis, axisLetter, gridlines, isStatic) {
|
|
@@ -163483,7 +163352,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
163483
163352
|
}, 7080: function(module4) {
|
|
163484
163353
|
module4.exports = createRBTree;
|
|
163485
163354
|
var RED = 0;
|
|
163486
|
-
var
|
|
163355
|
+
var BLACK2 = 1;
|
|
163487
163356
|
function RBNode(color2, key, value, left2, right2, count2) {
|
|
163488
163357
|
this._color = color2;
|
|
163489
163358
|
this.key = key;
|
|
@@ -163553,7 +163422,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
163553
163422
|
for (var s2 = n_stack.length - 1; s2 > 1; --s2) {
|
|
163554
163423
|
var p2 = n_stack[s2 - 1];
|
|
163555
163424
|
var n2 = n_stack[s2];
|
|
163556
|
-
if (p2._color ===
|
|
163425
|
+
if (p2._color === BLACK2 || n2._color === BLACK2) {
|
|
163557
163426
|
break;
|
|
163558
163427
|
}
|
|
163559
163428
|
var pp = n_stack[s2 - 2];
|
|
@@ -163561,14 +163430,14 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
163561
163430
|
if (p2.left === n2) {
|
|
163562
163431
|
var y2 = pp.right;
|
|
163563
163432
|
if (y2 && y2._color === RED) {
|
|
163564
|
-
p2._color =
|
|
163565
|
-
pp.right = repaint(
|
|
163433
|
+
p2._color = BLACK2;
|
|
163434
|
+
pp.right = repaint(BLACK2, y2);
|
|
163566
163435
|
pp._color = RED;
|
|
163567
163436
|
s2 -= 1;
|
|
163568
163437
|
} else {
|
|
163569
163438
|
pp._color = RED;
|
|
163570
163439
|
pp.left = p2.right;
|
|
163571
|
-
p2._color =
|
|
163440
|
+
p2._color = BLACK2;
|
|
163572
163441
|
p2.right = pp;
|
|
163573
163442
|
n_stack[s2 - 2] = p2;
|
|
163574
163443
|
n_stack[s2 - 1] = n2;
|
|
@@ -163587,15 +163456,15 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
163587
163456
|
} else {
|
|
163588
163457
|
var y2 = pp.right;
|
|
163589
163458
|
if (y2 && y2._color === RED) {
|
|
163590
|
-
p2._color =
|
|
163591
|
-
pp.right = repaint(
|
|
163459
|
+
p2._color = BLACK2;
|
|
163460
|
+
pp.right = repaint(BLACK2, y2);
|
|
163592
163461
|
pp._color = RED;
|
|
163593
163462
|
s2 -= 1;
|
|
163594
163463
|
} else {
|
|
163595
163464
|
p2.right = n2.left;
|
|
163596
163465
|
pp._color = RED;
|
|
163597
163466
|
pp.left = n2.right;
|
|
163598
|
-
n2._color =
|
|
163467
|
+
n2._color = BLACK2;
|
|
163599
163468
|
n2.left = p2;
|
|
163600
163469
|
n2.right = pp;
|
|
163601
163470
|
n_stack[s2 - 2] = n2;
|
|
@@ -163618,14 +163487,14 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
163618
163487
|
if (p2.right === n2) {
|
|
163619
163488
|
var y2 = pp.left;
|
|
163620
163489
|
if (y2 && y2._color === RED) {
|
|
163621
|
-
p2._color =
|
|
163622
|
-
pp.left = repaint(
|
|
163490
|
+
p2._color = BLACK2;
|
|
163491
|
+
pp.left = repaint(BLACK2, y2);
|
|
163623
163492
|
pp._color = RED;
|
|
163624
163493
|
s2 -= 1;
|
|
163625
163494
|
} else {
|
|
163626
163495
|
pp._color = RED;
|
|
163627
163496
|
pp.right = p2.left;
|
|
163628
|
-
p2._color =
|
|
163497
|
+
p2._color = BLACK2;
|
|
163629
163498
|
p2.left = pp;
|
|
163630
163499
|
n_stack[s2 - 2] = p2;
|
|
163631
163500
|
n_stack[s2 - 1] = n2;
|
|
@@ -163644,15 +163513,15 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
163644
163513
|
} else {
|
|
163645
163514
|
var y2 = pp.left;
|
|
163646
163515
|
if (y2 && y2._color === RED) {
|
|
163647
|
-
p2._color =
|
|
163648
|
-
pp.left = repaint(
|
|
163516
|
+
p2._color = BLACK2;
|
|
163517
|
+
pp.left = repaint(BLACK2, y2);
|
|
163649
163518
|
pp._color = RED;
|
|
163650
163519
|
s2 -= 1;
|
|
163651
163520
|
} else {
|
|
163652
163521
|
p2.left = n2.right;
|
|
163653
163522
|
pp._color = RED;
|
|
163654
163523
|
pp.right = n2.left;
|
|
163655
|
-
n2._color =
|
|
163524
|
+
n2._color = BLACK2;
|
|
163656
163525
|
n2.right = p2;
|
|
163657
163526
|
n2.left = pp;
|
|
163658
163527
|
n_stack[s2 - 2] = n2;
|
|
@@ -163673,7 +163542,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
163673
163542
|
}
|
|
163674
163543
|
}
|
|
163675
163544
|
}
|
|
163676
|
-
n_stack[0]._color =
|
|
163545
|
+
n_stack[0]._color = BLACK2;
|
|
163677
163546
|
return new RedBlackTree(cmp, n_stack[0]);
|
|
163678
163547
|
};
|
|
163679
163548
|
function doVisitFull(visit2, node2) {
|
|
@@ -163946,7 +163815,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
163946
163815
|
for (var i2 = stack.length - 1; i2 >= 0; --i2) {
|
|
163947
163816
|
n2 = stack[i2];
|
|
163948
163817
|
if (i2 === 0) {
|
|
163949
|
-
n2._color =
|
|
163818
|
+
n2._color = BLACK2;
|
|
163950
163819
|
return;
|
|
163951
163820
|
}
|
|
163952
163821
|
p2 = stack[i2 - 1];
|
|
@@ -163959,9 +163828,9 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
163959
163828
|
s2.left = p2;
|
|
163960
163829
|
s2.right = z2;
|
|
163961
163830
|
s2._color = p2._color;
|
|
163962
|
-
n2._color =
|
|
163963
|
-
p2._color =
|
|
163964
|
-
z2._color =
|
|
163831
|
+
n2._color = BLACK2;
|
|
163832
|
+
p2._color = BLACK2;
|
|
163833
|
+
z2._color = BLACK2;
|
|
163965
163834
|
recount(p2);
|
|
163966
163835
|
recount(s2);
|
|
163967
163836
|
if (i2 > 1) {
|
|
@@ -163982,9 +163851,9 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
163982
163851
|
z2.left = p2;
|
|
163983
163852
|
z2.right = s2;
|
|
163984
163853
|
z2._color = p2._color;
|
|
163985
|
-
p2._color =
|
|
163986
|
-
s2._color =
|
|
163987
|
-
n2._color =
|
|
163854
|
+
p2._color = BLACK2;
|
|
163855
|
+
s2._color = BLACK2;
|
|
163856
|
+
n2._color = BLACK2;
|
|
163988
163857
|
recount(p2);
|
|
163989
163858
|
recount(s2);
|
|
163990
163859
|
recount(z2);
|
|
@@ -163999,9 +163868,9 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
163999
163868
|
stack[i2 - 1] = z2;
|
|
164000
163869
|
return;
|
|
164001
163870
|
}
|
|
164002
|
-
if (s2._color ===
|
|
163871
|
+
if (s2._color === BLACK2) {
|
|
164003
163872
|
if (p2._color === RED) {
|
|
164004
|
-
p2._color =
|
|
163873
|
+
p2._color = BLACK2;
|
|
164005
163874
|
p2.right = repaint(RED, s2);
|
|
164006
163875
|
return;
|
|
164007
163876
|
} else {
|
|
@@ -164042,9 +163911,9 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
164042
163911
|
s2.right = p2;
|
|
164043
163912
|
s2.left = z2;
|
|
164044
163913
|
s2._color = p2._color;
|
|
164045
|
-
n2._color =
|
|
164046
|
-
p2._color =
|
|
164047
|
-
z2._color =
|
|
163914
|
+
n2._color = BLACK2;
|
|
163915
|
+
p2._color = BLACK2;
|
|
163916
|
+
z2._color = BLACK2;
|
|
164048
163917
|
recount(p2);
|
|
164049
163918
|
recount(s2);
|
|
164050
163919
|
if (i2 > 1) {
|
|
@@ -164065,9 +163934,9 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
164065
163934
|
z2.right = p2;
|
|
164066
163935
|
z2.left = s2;
|
|
164067
163936
|
z2._color = p2._color;
|
|
164068
|
-
p2._color =
|
|
164069
|
-
s2._color =
|
|
164070
|
-
n2._color =
|
|
163937
|
+
p2._color = BLACK2;
|
|
163938
|
+
s2._color = BLACK2;
|
|
163939
|
+
n2._color = BLACK2;
|
|
164071
163940
|
recount(p2);
|
|
164072
163941
|
recount(s2);
|
|
164073
163942
|
recount(z2);
|
|
@@ -164082,9 +163951,9 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
164082
163951
|
stack[i2 - 1] = z2;
|
|
164083
163952
|
return;
|
|
164084
163953
|
}
|
|
164085
|
-
if (s2._color ===
|
|
163954
|
+
if (s2._color === BLACK2) {
|
|
164086
163955
|
if (p2._color === RED) {
|
|
164087
|
-
p2._color =
|
|
163956
|
+
p2._color = BLACK2;
|
|
164088
163957
|
p2.left = repaint(RED, s2);
|
|
164089
163958
|
return;
|
|
164090
163959
|
} else {
|
|
@@ -164173,7 +164042,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
164173
164042
|
} else if (n2.right) {
|
|
164174
164043
|
swapNode(n2, n2.right);
|
|
164175
164044
|
}
|
|
164176
|
-
n2._color =
|
|
164045
|
+
n2._color = BLACK2;
|
|
164177
164046
|
for (var i2 = 0; i2 < cstack.length - 1; ++i2) {
|
|
164178
164047
|
cstack[i2]._count--;
|
|
164179
164048
|
}
|
|
@@ -174373,9 +174242,9 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
174373
174242
|
return out;
|
|
174374
174243
|
}
|
|
174375
174244
|
}, 7447: function(module4, __unused_webpack_exports2, __nested_webpack_require_594470__) {
|
|
174376
|
-
module4.exports =
|
|
174245
|
+
module4.exports = forEach2;
|
|
174377
174246
|
var vec = __nested_webpack_require_594470__(8501)();
|
|
174378
|
-
function
|
|
174247
|
+
function forEach2(a2, stride, offset2, count2, fn2, arg) {
|
|
174379
174248
|
var i2, l2;
|
|
174380
174249
|
if (!stride) {
|
|
174381
174250
|
stride = 3;
|
|
@@ -190732,10 +190601,10 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
190732
190601
|
};
|
|
190733
190602
|
}
|
|
190734
190603
|
function d3_geom_voronoiClipEdges(extent2) {
|
|
190735
|
-
var edges = d3_geom_voronoiEdges,
|
|
190604
|
+
var edges = d3_geom_voronoiEdges, clip2 = d3_geom_clipLine(extent2[0][0], extent2[0][1], extent2[1][0], extent2[1][1]), i2 = edges.length, e3;
|
|
190736
190605
|
while (i2--) {
|
|
190737
190606
|
e3 = edges[i2];
|
|
190738
|
-
if (!d3_geom_voronoiConnectEdge(e3, extent2) || !
|
|
190607
|
+
if (!d3_geom_voronoiConnectEdge(e3, extent2) || !clip2(e3) || abs(e3.a.x - e3.b.x) < \u03B5 && abs(e3.a.y - e3.b.y) < \u03B5) {
|
|
190739
190608
|
e3.a = e3.b = null;
|
|
190740
190609
|
edges.splice(i2, 1);
|
|
190741
190610
|
}
|
|
@@ -200806,21 +200675,21 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
200806
200675
|
var $call = GetIntrinsic2("%Function.prototype.call%");
|
|
200807
200676
|
var $reflectApply = GetIntrinsic2("%Reflect.apply%", true) || bind2.call($call, $apply);
|
|
200808
200677
|
var $gOPD2 = GetIntrinsic2("%Object.getOwnPropertyDescriptor%", true);
|
|
200809
|
-
var $
|
|
200678
|
+
var $defineProperty2 = GetIntrinsic2("%Object.defineProperty%", true);
|
|
200810
200679
|
var $max = GetIntrinsic2("%Math.max%");
|
|
200811
|
-
if ($
|
|
200680
|
+
if ($defineProperty2) {
|
|
200812
200681
|
try {
|
|
200813
|
-
$
|
|
200682
|
+
$defineProperty2({}, "a", { value: 1 });
|
|
200814
200683
|
} catch (e3) {
|
|
200815
|
-
$
|
|
200684
|
+
$defineProperty2 = null;
|
|
200816
200685
|
}
|
|
200817
200686
|
}
|
|
200818
200687
|
module3.exports = function callBind2(originalFunction) {
|
|
200819
200688
|
var func = $reflectApply(bind2, $call, arguments);
|
|
200820
|
-
if ($gOPD2 && $
|
|
200689
|
+
if ($gOPD2 && $defineProperty2) {
|
|
200821
200690
|
var desc = $gOPD2(func, "length");
|
|
200822
200691
|
if (desc.configurable) {
|
|
200823
|
-
$
|
|
200692
|
+
$defineProperty2(
|
|
200824
200693
|
func,
|
|
200825
200694
|
"length",
|
|
200826
200695
|
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
|
@@ -200832,8 +200701,8 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
200832
200701
|
var applyBind = function applyBind2() {
|
|
200833
200702
|
return $reflectApply(bind2, $apply, arguments);
|
|
200834
200703
|
};
|
|
200835
|
-
if ($
|
|
200836
|
-
$
|
|
200704
|
+
if ($defineProperty2) {
|
|
200705
|
+
$defineProperty2(module3.exports, "apply", { value: applyBind });
|
|
200837
200706
|
} else {
|
|
200838
200707
|
module3.exports.apply = applyBind;
|
|
200839
200708
|
}
|
|
@@ -208116,21 +207985,21 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
208116
207985
|
function __WEBPACK_DEFAULT_EXPORT__(pointVisible, clipLine, interpolate2, start2) {
|
|
208117
207986
|
return function(sink) {
|
|
208118
207987
|
var line = clipLine(sink), ringBuffer = (0, _buffer_js__WEBPACK_IMPORTED_MODULE_1__.Z)(), ringSink = clipLine(ringBuffer), polygonStarted = false, polygon2, segments, ring;
|
|
208119
|
-
var
|
|
207988
|
+
var clip2 = {
|
|
208120
207989
|
point: point2,
|
|
208121
207990
|
lineStart,
|
|
208122
207991
|
lineEnd,
|
|
208123
207992
|
polygonStart: function() {
|
|
208124
|
-
|
|
208125
|
-
|
|
208126
|
-
|
|
207993
|
+
clip2.point = pointRing;
|
|
207994
|
+
clip2.lineStart = ringStart;
|
|
207995
|
+
clip2.lineEnd = ringEnd;
|
|
208127
207996
|
segments = [];
|
|
208128
207997
|
polygon2 = [];
|
|
208129
207998
|
},
|
|
208130
207999
|
polygonEnd: function() {
|
|
208131
|
-
|
|
208132
|
-
|
|
208133
|
-
|
|
208000
|
+
clip2.point = point2;
|
|
208001
|
+
clip2.lineStart = lineStart;
|
|
208002
|
+
clip2.lineEnd = lineEnd;
|
|
208134
208003
|
segments = (0, d3_array__WEBPACK_IMPORTED_MODULE_0__.TS)(segments);
|
|
208135
208004
|
var startInside = (0, _polygonContains_js__WEBPACK_IMPORTED_MODULE_2__.Z)(polygon2, start2);
|
|
208136
208005
|
if (segments.length) {
|
|
@@ -208164,11 +208033,11 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
208164
208033
|
line.point(lambda, phi2);
|
|
208165
208034
|
}
|
|
208166
208035
|
function lineStart() {
|
|
208167
|
-
|
|
208036
|
+
clip2.point = pointLine;
|
|
208168
208037
|
line.lineStart();
|
|
208169
208038
|
}
|
|
208170
208039
|
function lineEnd() {
|
|
208171
|
-
|
|
208040
|
+
clip2.point = point2;
|
|
208172
208041
|
line.lineEnd();
|
|
208173
208042
|
}
|
|
208174
208043
|
function pointRing(lambda, phi2) {
|
|
@@ -208204,7 +208073,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
208204
208073
|
ringSegments.push(ringSegments.pop().concat(ringSegments.shift()));
|
|
208205
208074
|
segments.push(ringSegments.filter(validSegment));
|
|
208206
208075
|
}
|
|
208207
|
-
return
|
|
208076
|
+
return clip2;
|
|
208208
208077
|
};
|
|
208209
208078
|
}
|
|
208210
208079
|
function validSegment(segment) {
|
|
@@ -208439,7 +208308,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
208439
208308
|
this.n = this.p = null;
|
|
208440
208309
|
}
|
|
208441
208310
|
function __WEBPACK_DEFAULT_EXPORT__(segments, compareIntersection, startInside, interpolate2, stream) {
|
|
208442
|
-
var subject = [],
|
|
208311
|
+
var subject = [], clip2 = [], i2, n2;
|
|
208443
208312
|
segments.forEach(function(segment) {
|
|
208444
208313
|
if ((n3 = segment.length - 1) <= 0)
|
|
208445
208314
|
return;
|
|
@@ -208455,17 +208324,17 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
208455
208324
|
p1[0] += 2 * _math_js__WEBPACK_IMPORTED_MODULE_1__.Ho;
|
|
208456
208325
|
}
|
|
208457
208326
|
subject.push(x2 = new Intersection(p0, segment, null, true));
|
|
208458
|
-
|
|
208327
|
+
clip2.push(x2.o = new Intersection(p0, null, x2, false));
|
|
208459
208328
|
subject.push(x2 = new Intersection(p1, segment, null, false));
|
|
208460
|
-
|
|
208329
|
+
clip2.push(x2.o = new Intersection(p1, null, x2, true));
|
|
208461
208330
|
});
|
|
208462
208331
|
if (!subject.length)
|
|
208463
208332
|
return;
|
|
208464
|
-
|
|
208333
|
+
clip2.sort(compareIntersection);
|
|
208465
208334
|
link2(subject);
|
|
208466
|
-
link2(
|
|
208467
|
-
for (i2 = 0, n2 =
|
|
208468
|
-
|
|
208335
|
+
link2(clip2);
|
|
208336
|
+
for (i2 = 0, n2 = clip2.length; i2 < n2; ++i2) {
|
|
208337
|
+
clip2[i2].e = startInside = !startInside;
|
|
208469
208338
|
}
|
|
208470
208339
|
var start2 = subject[0], points, point2;
|
|
208471
208340
|
while (1) {
|
|
@@ -208701,13 +208570,13 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
208701
208570
|
var clip_circle = __webpack_require__2(1457);
|
|
208702
208571
|
var rectangle = __webpack_require__2(87605);
|
|
208703
208572
|
function extent2() {
|
|
208704
|
-
var x02 = 0, y02 = 0, x1 = 960, y1 = 500, cache2, cacheStream,
|
|
208705
|
-
return
|
|
208573
|
+
var x02 = 0, y02 = 0, x1 = 960, y1 = 500, cache2, cacheStream, clip2;
|
|
208574
|
+
return clip2 = {
|
|
208706
208575
|
stream: function(stream2) {
|
|
208707
208576
|
return cache2 && cacheStream === stream2 ? cache2 : cache2 = (0, rectangle.Z)(x02, y02, x1, y1)(cacheStream = stream2);
|
|
208708
208577
|
},
|
|
208709
208578
|
extent: function(_2) {
|
|
208710
|
-
return arguments.length ? (x02 = +_2[0][0], y02 = +_2[0][1], x1 = +_2[1][0], y1 = +_2[1][1], cache2 = cacheStream = null,
|
|
208579
|
+
return arguments.length ? (x02 = +_2[0][0], y02 = +_2[0][1], x1 = +_2[1][0], y1 = +_2[1][1], cache2 = cacheStream = null, clip2) : [[x02, y02], [x1, y1]];
|
|
208711
208580
|
}
|
|
208712
208581
|
};
|
|
208713
208582
|
}
|
|
@@ -209891,14 +209760,14 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
209891
209760
|
var _stream_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__2(72736);
|
|
209892
209761
|
var _path_bounds_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__2(3559);
|
|
209893
209762
|
function fit(projection, fitBounds, object2) {
|
|
209894
|
-
var
|
|
209763
|
+
var clip2 = projection.clipExtent && projection.clipExtent();
|
|
209895
209764
|
projection.scale(150).translate([0, 0]);
|
|
209896
|
-
if (
|
|
209765
|
+
if (clip2 != null)
|
|
209897
209766
|
projection.clipExtent(null);
|
|
209898
209767
|
(0, _stream_js__WEBPACK_IMPORTED_MODULE_0__.Z)(object2, projection.stream(_path_bounds_js__WEBPACK_IMPORTED_MODULE_1__.Z));
|
|
209899
209768
|
fitBounds(_path_bounds_js__WEBPACK_IMPORTED_MODULE_1__.Z.result());
|
|
209900
|
-
if (
|
|
209901
|
-
projection.clipExtent(
|
|
209769
|
+
if (clip2 != null)
|
|
209770
|
+
projection.clipExtent(clip2);
|
|
209902
209771
|
return projection;
|
|
209903
209772
|
}
|
|
209904
209773
|
function fitExtent(projection, extent2, object2) {
|
|
@@ -212716,8 +212585,8 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
212716
212585
|
var isFunction2 = function(fn2) {
|
|
212717
212586
|
return typeof fn2 === "function" && toStr2.call(fn2) === "[object Function]";
|
|
212718
212587
|
};
|
|
212719
|
-
var
|
|
212720
|
-
var supportsDescriptors = origDefineProperty &&
|
|
212588
|
+
var hasPropertyDescriptors2 = __webpack_require__2(55622)();
|
|
212589
|
+
var supportsDescriptors = origDefineProperty && hasPropertyDescriptors2;
|
|
212721
212590
|
var defineProperty2 = function(object2, name2, value, predicate) {
|
|
212722
212591
|
if (name2 in object2) {
|
|
212723
212592
|
if (predicate === true) {
|
|
@@ -213807,11 +213676,11 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
213807
213676
|
};
|
|
213808
213677
|
},
|
|
213809
213678
|
16906: function(module3, __unused_webpack_exports, __webpack_require__2) {
|
|
213810
|
-
var callable = __webpack_require__2(78513),
|
|
213679
|
+
var callable = __webpack_require__2(78513), forEach2 = __webpack_require__2(96437), call2 = Function.prototype.call;
|
|
213811
213680
|
module3.exports = function(obj, cb) {
|
|
213812
213681
|
var result = {}, thisArg = arguments[2];
|
|
213813
213682
|
callable(cb);
|
|
213814
|
-
|
|
213683
|
+
forEach2(obj, function(value, key, targetObj, index2) {
|
|
213815
213684
|
result[key] = call2.call(cb, thisArg, value, key, targetObj, index2);
|
|
213816
213685
|
});
|
|
213817
213686
|
return result;
|
|
@@ -213819,7 +213688,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
213819
213688
|
},
|
|
213820
213689
|
21780: function(module3, __unused_webpack_exports, __webpack_require__2) {
|
|
213821
213690
|
var isValue = __webpack_require__2(95296);
|
|
213822
|
-
var
|
|
213691
|
+
var forEach2 = Array.prototype.forEach, create2 = Object.create;
|
|
213823
213692
|
var process2 = function(src2, obj) {
|
|
213824
213693
|
var key;
|
|
213825
213694
|
for (key in src2)
|
|
@@ -213827,7 +213696,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
213827
213696
|
};
|
|
213828
213697
|
module3.exports = function(opts1) {
|
|
213829
213698
|
var result = create2(null);
|
|
213830
|
-
|
|
213699
|
+
forEach2.call(arguments, function(options) {
|
|
213831
213700
|
if (!isValue(options))
|
|
213832
213701
|
return;
|
|
213833
213702
|
process2(Object(options), result);
|
|
@@ -215238,7 +215107,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
215238
215107
|
}
|
|
215239
215108
|
}
|
|
215240
215109
|
};
|
|
215241
|
-
var
|
|
215110
|
+
var forEach2 = function forEach3(list2, iterator2, thisArg) {
|
|
215242
215111
|
if (!isCallable(iterator2)) {
|
|
215243
215112
|
throw new TypeError("iterator must be a function");
|
|
215244
215113
|
}
|
|
@@ -215254,7 +215123,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
215254
215123
|
forEachObject(list2, iterator2, receiver);
|
|
215255
215124
|
}
|
|
215256
215125
|
};
|
|
215257
|
-
module3.exports =
|
|
215126
|
+
module3.exports = forEach2;
|
|
215258
215127
|
},
|
|
215259
215128
|
73047: function(module3) {
|
|
215260
215129
|
var ERROR_MESSAGE2 = "Function.prototype.bind called on incompatible ";
|
|
@@ -217177,11 +217046,11 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
217177
217046
|
},
|
|
217178
217047
|
55622: function(module3, __unused_webpack_exports, __webpack_require__2) {
|
|
217179
217048
|
var GetIntrinsic2 = __webpack_require__2(68318);
|
|
217180
|
-
var $
|
|
217181
|
-
var
|
|
217182
|
-
if ($
|
|
217049
|
+
var $defineProperty2 = GetIntrinsic2("%Object.defineProperty%", true);
|
|
217050
|
+
var hasPropertyDescriptors2 = function hasPropertyDescriptors3() {
|
|
217051
|
+
if ($defineProperty2) {
|
|
217183
217052
|
try {
|
|
217184
|
-
$
|
|
217053
|
+
$defineProperty2({}, "a", { value: 1 });
|
|
217185
217054
|
return true;
|
|
217186
217055
|
} catch (e3) {
|
|
217187
217056
|
return false;
|
|
@@ -217189,17 +217058,17 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
217189
217058
|
}
|
|
217190
217059
|
return false;
|
|
217191
217060
|
};
|
|
217192
|
-
|
|
217193
|
-
if (!
|
|
217061
|
+
hasPropertyDescriptors2.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
|
|
217062
|
+
if (!hasPropertyDescriptors2()) {
|
|
217194
217063
|
return null;
|
|
217195
217064
|
}
|
|
217196
217065
|
try {
|
|
217197
|
-
return $
|
|
217066
|
+
return $defineProperty2([], "length", { value: 1 }).length !== 1;
|
|
217198
217067
|
} catch (e3) {
|
|
217199
217068
|
return true;
|
|
217200
217069
|
}
|
|
217201
217070
|
};
|
|
217202
|
-
module3.exports =
|
|
217071
|
+
module3.exports = hasPropertyDescriptors2;
|
|
217203
217072
|
},
|
|
217204
217073
|
57877: function(module3, __unused_webpack_exports, __webpack_require__2) {
|
|
217205
217074
|
var origSymbol2 = typeof Symbol !== "undefined" && Symbol;
|
|
@@ -217639,14 +217508,14 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
217639
217508
|
};
|
|
217640
217509
|
},
|
|
217641
217510
|
9187: function(module3, __unused_webpack_exports, __webpack_require__2) {
|
|
217642
|
-
var
|
|
217511
|
+
var forEach2 = __webpack_require__2(31353);
|
|
217643
217512
|
var availableTypedArrays = __webpack_require__2(72077);
|
|
217644
217513
|
var callBound2 = __webpack_require__2(6614);
|
|
217645
217514
|
var $toString = callBound2("Object.prototype.toString");
|
|
217646
217515
|
var hasToStringTag = __webpack_require__2(84543)();
|
|
217647
217516
|
var gOPD2 = __webpack_require__2(40383);
|
|
217648
217517
|
var g2 = typeof globalThis === "undefined" ? __webpack_require__2.g : globalThis;
|
|
217649
|
-
var
|
|
217518
|
+
var typedArrays2 = availableTypedArrays();
|
|
217650
217519
|
var $indexOf2 = callBound2("Array.prototype.indexOf", true) || function indexOf2(array2, value) {
|
|
217651
217520
|
for (var i2 = 0; i2 < array2.length; i2 += 1) {
|
|
217652
217521
|
if (array2[i2] === value) {
|
|
@@ -217659,7 +217528,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
217659
217528
|
var toStrTags = {};
|
|
217660
217529
|
var getPrototypeOf = Object.getPrototypeOf;
|
|
217661
217530
|
if (hasToStringTag && gOPD2 && getPrototypeOf) {
|
|
217662
|
-
|
|
217531
|
+
forEach2(typedArrays2, function(typedArray) {
|
|
217663
217532
|
var arr = new g2[typedArray]();
|
|
217664
217533
|
if (Symbol.toStringTag in arr) {
|
|
217665
217534
|
var proto2 = getPrototypeOf(arr);
|
|
@@ -217674,7 +217543,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
217674
217543
|
}
|
|
217675
217544
|
var tryTypedArrays = function tryAllTypedArrays(value) {
|
|
217676
217545
|
var anyTrue = false;
|
|
217677
|
-
|
|
217546
|
+
forEach2(toStrTags, function(getter, typedArray) {
|
|
217678
217547
|
if (!anyTrue) {
|
|
217679
217548
|
try {
|
|
217680
217549
|
anyTrue = getter.call(value) === typedArray;
|
|
@@ -217690,7 +217559,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
217690
217559
|
}
|
|
217691
217560
|
if (!hasToStringTag || !(Symbol.toStringTag in value)) {
|
|
217692
217561
|
var tag = $slice2($toString(value), 8, -1);
|
|
217693
|
-
return $indexOf2(
|
|
217562
|
+
return $indexOf2(typedArrays2, tag) > -1;
|
|
217694
217563
|
}
|
|
217695
217564
|
if (!gOPD2) {
|
|
217696
217565
|
return false;
|
|
@@ -236546,17 +236415,17 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
236546
236415
|
}, src2.data);
|
|
236547
236416
|
}
|
|
236548
236417
|
for (var id$12 in patterns2) {
|
|
236549
|
-
var src$
|
|
236418
|
+
var src$1 = patterns2[id$12];
|
|
236550
236419
|
var bin$1 = patternPositions[id$12].paddedRect;
|
|
236551
|
-
var x2 = bin$1.x + IMAGE_PADDING, y2 = bin$1.y + IMAGE_PADDING, w$12 = src$
|
|
236552
|
-
RGBAImage.copy(src$
|
|
236420
|
+
var x2 = bin$1.x + IMAGE_PADDING, y2 = bin$1.y + IMAGE_PADDING, w$12 = src$1.data.width, h$12 = src$1.data.height;
|
|
236421
|
+
RGBAImage.copy(src$1.data, image2, {
|
|
236553
236422
|
x: 0,
|
|
236554
236423
|
y: 0
|
|
236555
236424
|
}, {
|
|
236556
236425
|
x: x2,
|
|
236557
236426
|
y: y2
|
|
236558
|
-
}, src$
|
|
236559
|
-
RGBAImage.copy(src$
|
|
236427
|
+
}, src$1.data);
|
|
236428
|
+
RGBAImage.copy(src$1.data, image2, {
|
|
236560
236429
|
x: 0,
|
|
236561
236430
|
y: h$12 - 1
|
|
236562
236431
|
}, {
|
|
@@ -236566,7 +236435,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
236566
236435
|
width: w$12,
|
|
236567
236436
|
height: 1
|
|
236568
236437
|
});
|
|
236569
|
-
RGBAImage.copy(src$
|
|
236438
|
+
RGBAImage.copy(src$1.data, image2, {
|
|
236570
236439
|
x: 0,
|
|
236571
236440
|
y: 0
|
|
236572
236441
|
}, {
|
|
@@ -236576,7 +236445,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
236576
236445
|
width: w$12,
|
|
236577
236446
|
height: 1
|
|
236578
236447
|
});
|
|
236579
|
-
RGBAImage.copy(src$
|
|
236448
|
+
RGBAImage.copy(src$1.data, image2, {
|
|
236580
236449
|
x: w$12 - 1,
|
|
236581
236450
|
y: 0
|
|
236582
236451
|
}, {
|
|
@@ -236586,7 +236455,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
236586
236455
|
width: 1,
|
|
236587
236456
|
height: h$12
|
|
236588
236457
|
});
|
|
236589
|
-
RGBAImage.copy(src$
|
|
236458
|
+
RGBAImage.copy(src$1.data, image2, {
|
|
236590
236459
|
x: 0,
|
|
236591
236460
|
y: 0
|
|
236592
236461
|
}, {
|
|
@@ -241049,18 +240918,18 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
241049
240918
|
for (var stack$1 in stacks) {
|
|
241050
240919
|
var glyphs$1 = stacks[stack$1];
|
|
241051
240920
|
for (var id$12 in glyphs$1) {
|
|
241052
|
-
var src$
|
|
241053
|
-
if (!src$
|
|
240921
|
+
var src$1 = glyphs$1[+id$12];
|
|
240922
|
+
if (!src$1 || src$1.bitmap.width === 0 || src$1.bitmap.height === 0) {
|
|
241054
240923
|
continue;
|
|
241055
240924
|
}
|
|
241056
240925
|
var bin$1 = positions[stack$1][id$12].rect;
|
|
241057
|
-
performance$12.AlphaImage.copy(src$
|
|
240926
|
+
performance$12.AlphaImage.copy(src$1.bitmap, image2, {
|
|
241058
240927
|
x: 0,
|
|
241059
240928
|
y: 0
|
|
241060
240929
|
}, {
|
|
241061
240930
|
x: bin$1.x + padding,
|
|
241062
240931
|
y: bin$1.y + padding
|
|
241063
|
-
}, src$
|
|
240932
|
+
}, src$1.bitmap);
|
|
241064
240933
|
}
|
|
241065
240934
|
}
|
|
241066
240935
|
this.image = image2;
|
|
@@ -242394,7 +242263,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
242394
242263
|
var y22 = 0.5 - 0.25 * Math.log((1 + sin2) / (1 - sin2)) / Math.PI;
|
|
242395
242264
|
return y22 < 0 ? 0 : y22 > 1 ? 1 : y22;
|
|
242396
242265
|
}
|
|
242397
|
-
function
|
|
242266
|
+
function clip2(features, scale, k1, k2, axis, minAll, maxAll, options) {
|
|
242398
242267
|
k1 /= scale;
|
|
242399
242268
|
k2 /= scale;
|
|
242400
242269
|
if (minAll >= k1 && maxAll < k2) {
|
|
@@ -242569,10 +242438,10 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
242569
242438
|
function wrap2(features, options) {
|
|
242570
242439
|
var buffer2 = options.buffer / options.extent;
|
|
242571
242440
|
var merged = features;
|
|
242572
|
-
var left2 =
|
|
242573
|
-
var right2 =
|
|
242441
|
+
var left2 = clip2(features, 1, -1 - buffer2, buffer2, 0, -1, 2, options);
|
|
242442
|
+
var right2 = clip2(features, 1, 1 - buffer2, 2 + buffer2, 0, -1, 2, options);
|
|
242574
242443
|
if (left2 || right2) {
|
|
242575
|
-
merged =
|
|
242444
|
+
merged = clip2(features, 1, -buffer2, 1 + buffer2, 0, -1, 2, options) || [];
|
|
242576
242445
|
if (left2) {
|
|
242577
242446
|
merged = shiftFeatureCoords(left2, 1).concat(merged);
|
|
242578
242447
|
}
|
|
@@ -242875,17 +242744,17 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
242875
242744
|
}
|
|
242876
242745
|
var k1 = 0.5 * options.buffer / options.extent, k2 = 0.5 - k1, k3 = 0.5 + k1, k4 = 1 + k1, tl, bl, tr, br, left2, right2;
|
|
242877
242746
|
tl = bl = tr = br = null;
|
|
242878
|
-
left2 =
|
|
242879
|
-
right2 =
|
|
242747
|
+
left2 = clip2(features, z22, x2 - k1, x2 + k3, 0, tile.minX, tile.maxX, options);
|
|
242748
|
+
right2 = clip2(features, z22, x2 + k2, x2 + k4, 0, tile.minX, tile.maxX, options);
|
|
242880
242749
|
features = null;
|
|
242881
242750
|
if (left2) {
|
|
242882
|
-
tl =
|
|
242883
|
-
bl =
|
|
242751
|
+
tl = clip2(left2, z22, y2 - k1, y2 + k3, 1, tile.minY, tile.maxY, options);
|
|
242752
|
+
bl = clip2(left2, z22, y2 + k2, y2 + k4, 1, tile.minY, tile.maxY, options);
|
|
242884
242753
|
left2 = null;
|
|
242885
242754
|
}
|
|
242886
242755
|
if (right2) {
|
|
242887
|
-
tr =
|
|
242888
|
-
br =
|
|
242756
|
+
tr = clip2(right2, z22, y2 - k1, y2 + k3, 1, tile.minY, tile.maxY, options);
|
|
242757
|
+
br = clip2(right2, z22, y2 + k2, y2 + k4, 1, tile.minY, tile.maxY, options);
|
|
242889
242758
|
right2 = null;
|
|
242890
242759
|
}
|
|
242891
242760
|
if (debug > 1) {
|
|
@@ -275941,19 +275810,19 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
275941
275810
|
};
|
|
275942
275811
|
},
|
|
275943
275812
|
21099: function(module3, __unused_webpack_exports, __webpack_require__2) {
|
|
275944
|
-
var
|
|
275813
|
+
var forEach2 = __webpack_require__2(31353);
|
|
275945
275814
|
var availableTypedArrays = __webpack_require__2(72077);
|
|
275946
275815
|
var callBound2 = __webpack_require__2(6614);
|
|
275947
275816
|
var gOPD2 = __webpack_require__2(40383);
|
|
275948
275817
|
var $toString = callBound2("Object.prototype.toString");
|
|
275949
275818
|
var hasToStringTag = __webpack_require__2(84543)();
|
|
275950
275819
|
var g2 = typeof globalThis === "undefined" ? __webpack_require__2.g : globalThis;
|
|
275951
|
-
var
|
|
275820
|
+
var typedArrays2 = availableTypedArrays();
|
|
275952
275821
|
var $slice2 = callBound2("String.prototype.slice");
|
|
275953
275822
|
var toStrTags = {};
|
|
275954
275823
|
var getPrototypeOf = Object.getPrototypeOf;
|
|
275955
275824
|
if (hasToStringTag && gOPD2 && getPrototypeOf) {
|
|
275956
|
-
|
|
275825
|
+
forEach2(typedArrays2, function(typedArray) {
|
|
275957
275826
|
if (typeof g2[typedArray] === "function") {
|
|
275958
275827
|
var arr = new g2[typedArray]();
|
|
275959
275828
|
if (Symbol.toStringTag in arr) {
|
|
@@ -275970,7 +275839,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
275970
275839
|
}
|
|
275971
275840
|
var tryTypedArrays = function tryAllTypedArrays(value) {
|
|
275972
275841
|
var foundName = false;
|
|
275973
|
-
|
|
275842
|
+
forEach2(toStrTags, function(getter, typedArray) {
|
|
275974
275843
|
if (!foundName) {
|
|
275975
275844
|
try {
|
|
275976
275845
|
var name2 = getter.call(value);
|
|
@@ -284240,7 +284109,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
284240
284109
|
dispatch: selection_dispatch,
|
|
284241
284110
|
[Symbol.iterator]: selection_iterator
|
|
284242
284111
|
};
|
|
284243
|
-
function define$
|
|
284112
|
+
function define$5(constructor, factory2, prototype) {
|
|
284244
284113
|
constructor.prototype = factory2.prototype = prototype;
|
|
284245
284114
|
prototype.constructor = constructor;
|
|
284246
284115
|
}
|
|
@@ -284405,7 +284274,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
284405
284274
|
yellow: 16776960,
|
|
284406
284275
|
yellowgreen: 10145074
|
|
284407
284276
|
};
|
|
284408
|
-
define$
|
|
284277
|
+
define$5(Color$1, color, {
|
|
284409
284278
|
copy: function(channels) {
|
|
284410
284279
|
return Object.assign(new this.constructor(), this, channels);
|
|
284411
284280
|
},
|
|
@@ -284457,7 +284326,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
284457
284326
|
this.b = +b2;
|
|
284458
284327
|
this.opacity = +opacity;
|
|
284459
284328
|
}
|
|
284460
|
-
define$
|
|
284329
|
+
define$5(Rgb, rgb, extend$2(Color$1, {
|
|
284461
284330
|
brighter: function(k2) {
|
|
284462
284331
|
k2 = k2 == null ? brighter : Math.pow(brighter, k2);
|
|
284463
284332
|
return new Rgb(this.r * k2, this.g * k2, this.b * k2, this.opacity);
|
|
@@ -284532,7 +284401,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
284532
284401
|
this.l = +l2;
|
|
284533
284402
|
this.opacity = +opacity;
|
|
284534
284403
|
}
|
|
284535
|
-
define$
|
|
284404
|
+
define$5(Hsl, hsl, extend$2(Color$1, {
|
|
284536
284405
|
brighter: function(k2) {
|
|
284537
284406
|
k2 = k2 == null ? brighter : Math.pow(brighter, k2);
|
|
284538
284407
|
return new Hsl(this.h, this.s, this.l * k2, this.opacity);
|
|
@@ -286689,6 +286558,55 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
286689
286558
|
};
|
|
286690
286559
|
return treemap;
|
|
286691
286560
|
}
|
|
286561
|
+
function initRange(domain2, range2) {
|
|
286562
|
+
switch (arguments.length) {
|
|
286563
|
+
case 0:
|
|
286564
|
+
break;
|
|
286565
|
+
case 1:
|
|
286566
|
+
this.range(domain2);
|
|
286567
|
+
break;
|
|
286568
|
+
default:
|
|
286569
|
+
this.range(range2).domain(domain2);
|
|
286570
|
+
break;
|
|
286571
|
+
}
|
|
286572
|
+
return this;
|
|
286573
|
+
}
|
|
286574
|
+
const implicit = Symbol("implicit");
|
|
286575
|
+
function ordinal() {
|
|
286576
|
+
var index2 = /* @__PURE__ */ new Map(), domain2 = [], range2 = [], unknown2 = implicit;
|
|
286577
|
+
function scale(d2) {
|
|
286578
|
+
var key = d2 + "", i2 = index2.get(key);
|
|
286579
|
+
if (!i2) {
|
|
286580
|
+
if (unknown2 !== implicit)
|
|
286581
|
+
return unknown2;
|
|
286582
|
+
index2.set(key, i2 = domain2.push(d2));
|
|
286583
|
+
}
|
|
286584
|
+
return range2[(i2 - 1) % range2.length];
|
|
286585
|
+
}
|
|
286586
|
+
scale.domain = function(_2) {
|
|
286587
|
+
if (!arguments.length)
|
|
286588
|
+
return domain2.slice();
|
|
286589
|
+
domain2 = [], index2 = /* @__PURE__ */ new Map();
|
|
286590
|
+
for (const value of _2) {
|
|
286591
|
+
const key = value + "";
|
|
286592
|
+
if (index2.has(key))
|
|
286593
|
+
continue;
|
|
286594
|
+
index2.set(key, domain2.push(value));
|
|
286595
|
+
}
|
|
286596
|
+
return scale;
|
|
286597
|
+
};
|
|
286598
|
+
scale.range = function(_2) {
|
|
286599
|
+
return arguments.length ? (range2 = Array.from(_2), scale) : range2.slice();
|
|
286600
|
+
};
|
|
286601
|
+
scale.unknown = function(_2) {
|
|
286602
|
+
return arguments.length ? (unknown2 = _2, scale) : unknown2;
|
|
286603
|
+
};
|
|
286604
|
+
scale.copy = function() {
|
|
286605
|
+
return ordinal(domain2, range2).unknown(unknown2);
|
|
286606
|
+
};
|
|
286607
|
+
initRange.apply(scale, arguments);
|
|
286608
|
+
return scale;
|
|
286609
|
+
}
|
|
286692
286610
|
function Transform$1(k2, x2, y2) {
|
|
286693
286611
|
this.k = k2;
|
|
286694
286612
|
this.x = x2;
|
|
@@ -286825,6 +286743,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
286825
286743
|
return this.lineInner(n2, true, 1, 0);
|
|
286826
286744
|
}
|
|
286827
286745
|
replace(from, to, text2) {
|
|
286746
|
+
[from, to] = clip(this, from, to);
|
|
286828
286747
|
let parts = [];
|
|
286829
286748
|
this.decompose(0, from, parts, 2);
|
|
286830
286749
|
if (text2.length)
|
|
@@ -286836,6 +286755,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
286836
286755
|
return this.replace(this.length, this.length, other);
|
|
286837
286756
|
}
|
|
286838
286757
|
slice(from, to = this.length) {
|
|
286758
|
+
[from, to] = clip(this, from, to);
|
|
286839
286759
|
let parts = [];
|
|
286840
286760
|
this.decompose(from, to, parts, 0);
|
|
286841
286761
|
return TextNode.from(parts, to - from);
|
|
@@ -286933,6 +286853,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
286933
286853
|
replace(from, to, text2) {
|
|
286934
286854
|
if (!(text2 instanceof TextLeaf))
|
|
286935
286855
|
return super.replace(from, to, text2);
|
|
286856
|
+
[from, to] = clip(this, from, to);
|
|
286936
286857
|
let lines = appendText(this.text, appendText(text2.text, sliceText(this.text, 0, from)), to);
|
|
286937
286858
|
let newLen = this.length + text2.length - (to - from);
|
|
286938
286859
|
if (lines.length <= 32)
|
|
@@ -286940,6 +286861,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
286940
286861
|
return TextNode.from(TextLeaf.split(lines, []), newLen);
|
|
286941
286862
|
}
|
|
286942
286863
|
sliceString(from, to = this.length, lineSep = "\n") {
|
|
286864
|
+
[from, to] = clip(this, from, to);
|
|
286943
286865
|
let result = "";
|
|
286944
286866
|
for (let pos = 0, i2 = 0; pos <= to && i2 < this.text.length; i2++) {
|
|
286945
286867
|
let line = this.text[i2], end2 = pos + line.length;
|
|
@@ -287006,6 +286928,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
287006
286928
|
}
|
|
287007
286929
|
}
|
|
287008
286930
|
replace(from, to, text2) {
|
|
286931
|
+
[from, to] = clip(this, from, to);
|
|
287009
286932
|
if (text2.lines < this.lines)
|
|
287010
286933
|
for (let i2 = 0, pos = 0; i2 < this.children.length; i2++) {
|
|
287011
286934
|
let child = this.children[i2], end2 = pos + child.length;
|
|
@@ -287024,6 +286947,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
287024
286947
|
return super.replace(from, to, text2);
|
|
287025
286948
|
}
|
|
287026
286949
|
sliceString(from, to = this.length, lineSep = "\n") {
|
|
286950
|
+
[from, to] = clip(this, from, to);
|
|
287027
286951
|
let result = "";
|
|
287028
286952
|
for (let i2 = 0, pos = 0; i2 < this.children.length && pos <= to; i2++) {
|
|
287029
286953
|
let child = this.children[i2], end2 = pos + child.length;
|
|
@@ -287235,7 +287159,10 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
287235
287159
|
}
|
|
287236
287160
|
next(skip = 0) {
|
|
287237
287161
|
let { done, lineBreak, value } = this.inner.next(skip);
|
|
287238
|
-
if (done) {
|
|
287162
|
+
if (done && this.afterBreak) {
|
|
287163
|
+
this.value = "";
|
|
287164
|
+
this.afterBreak = false;
|
|
287165
|
+
} else if (done) {
|
|
287239
287166
|
this.done = true;
|
|
287240
287167
|
this.value = "";
|
|
287241
287168
|
} else if (lineBreak) {
|
|
@@ -287274,6 +287201,10 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
287274
287201
|
return this.to - this.from;
|
|
287275
287202
|
}
|
|
287276
287203
|
}
|
|
287204
|
+
function clip(text2, from, to) {
|
|
287205
|
+
from = Math.max(0, Math.min(text2.length, from));
|
|
287206
|
+
return [from, Math.max(from, Math.min(text2.length, to))];
|
|
287207
|
+
}
|
|
287277
287208
|
let extend$1 = /* @__PURE__ */ "lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((s2) => s2 ? parseInt(s2, 36) : 1);
|
|
287278
287209
|
for (let i2 = 1; i2 < extend$1.length; i2++)
|
|
287279
287210
|
extend$1[i2] += extend$1[i2 - 1];
|
|
@@ -288637,7 +288568,8 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
288637
288568
|
} else {
|
|
288638
288569
|
startValues = tr.startState.values.slice();
|
|
288639
288570
|
}
|
|
288640
|
-
|
|
288571
|
+
let selection2 = tr.startState.facet(allowMultipleSelections) ? tr.newSelection : tr.newSelection.asSingle();
|
|
288572
|
+
new EditorState(conf, tr.newDoc, selection2, startValues, (state, slot) => slot.update(state, tr), tr);
|
|
288641
288573
|
}
|
|
288642
288574
|
replaceSelection(text2) {
|
|
288643
288575
|
if (typeof text2 == "string")
|
|
@@ -290194,7 +290126,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
290194
290126
|
this.markDirty();
|
|
290195
290127
|
for (let i2 = from; i2 < to; i2++) {
|
|
290196
290128
|
let child = this.children[i2];
|
|
290197
|
-
if (child.parent == this)
|
|
290129
|
+
if (child.parent == this && children2.indexOf(child) < 0)
|
|
290198
290130
|
child.destroy();
|
|
290199
290131
|
}
|
|
290200
290132
|
this.children.splice(from, to - from, ...children2);
|
|
@@ -290242,6 +290174,8 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
290242
290174
|
return 0;
|
|
290243
290175
|
}
|
|
290244
290176
|
destroy() {
|
|
290177
|
+
for (let child of this.children)
|
|
290178
|
+
child.destroy();
|
|
290245
290179
|
this.parent = null;
|
|
290246
290180
|
}
|
|
290247
290181
|
}
|
|
@@ -291357,15 +291291,19 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
291357
291291
|
combine: (values) => values.some((x2) => x2)
|
|
291358
291292
|
});
|
|
291359
291293
|
class ScrollTarget {
|
|
291360
|
-
constructor(range2, y2 = "nearest", x2 = "nearest", yMargin = 5, xMargin = 5) {
|
|
291294
|
+
constructor(range2, y2 = "nearest", x2 = "nearest", yMargin = 5, xMargin = 5, isSnapshot = false) {
|
|
291361
291295
|
this.range = range2;
|
|
291362
291296
|
this.y = y2;
|
|
291363
291297
|
this.x = x2;
|
|
291364
291298
|
this.yMargin = yMargin;
|
|
291365
291299
|
this.xMargin = xMargin;
|
|
291300
|
+
this.isSnapshot = isSnapshot;
|
|
291366
291301
|
}
|
|
291367
291302
|
map(changes) {
|
|
291368
|
-
return changes.empty ? this : new ScrollTarget(this.range.map(changes), this.y, this.x, this.yMargin, this.xMargin);
|
|
291303
|
+
return changes.empty ? this : new ScrollTarget(this.range.map(changes), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot);
|
|
291304
|
+
}
|
|
291305
|
+
clip(state) {
|
|
291306
|
+
return this.range.to <= state.doc.length ? this : new ScrollTarget(EditorSelection.cursor(state.doc.length), this.y, this.x, this.yMargin, this.xMargin, this.isSnapshot);
|
|
291369
291307
|
}
|
|
291370
291308
|
}
|
|
291371
291309
|
const scrollIntoView = /* @__PURE__ */ StateEffect.define({ map: (t2, ch) => t2.map(ch) });
|
|
@@ -292372,6 +292310,12 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
292372
292310
|
];
|
|
292373
292311
|
}
|
|
292374
292312
|
scrollIntoView(target) {
|
|
292313
|
+
if (target.isSnapshot) {
|
|
292314
|
+
let ref = this.view.viewState.lineBlockAt(target.range.head);
|
|
292315
|
+
this.view.scrollDOM.scrollTop = ref.top - target.yMargin;
|
|
292316
|
+
this.view.scrollDOM.scrollLeft = target.xMargin;
|
|
292317
|
+
return;
|
|
292318
|
+
}
|
|
292375
292319
|
let { range: range2 } = target;
|
|
292376
292320
|
let rect = this.coordsAt(range2.head, range2.empty ? range2.assoc : range2.head > range2.anchor ? -1 : 1), other;
|
|
292377
292321
|
if (!rect)
|
|
@@ -292390,7 +292334,8 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
292390
292334
|
right: rect.right + margins.right,
|
|
292391
292335
|
bottom: rect.bottom + margins.bottom
|
|
292392
292336
|
};
|
|
292393
|
-
|
|
292337
|
+
let { offsetWidth, offsetHeight } = this.view.scrollDOM;
|
|
292338
|
+
scrollRectIntoView(this.view.scrollDOM, targetRect, range2.head < range2.anchor ? -1 : 1, target.x, target.y, Math.max(Math.min(target.xMargin, offsetWidth), -offsetWidth), Math.max(Math.min(target.yMargin, offsetHeight), -offsetHeight), this.view.textDirection == Direction.LTR);
|
|
292394
292339
|
}
|
|
292395
292340
|
}
|
|
292396
292341
|
function betweenUneditable(pos) {
|
|
@@ -292876,6 +292821,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
292876
292821
|
this.compositionPendingKey = false;
|
|
292877
292822
|
this.compositionPendingChange = false;
|
|
292878
292823
|
this.mouseSelection = null;
|
|
292824
|
+
this.draggedContent = null;
|
|
292879
292825
|
this.handleEvent = this.handleEvent.bind(this);
|
|
292880
292826
|
this.notifiedFocused = view.hasFocus;
|
|
292881
292827
|
if (browser.safari)
|
|
@@ -292970,6 +292916,8 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
292970
292916
|
update(update2) {
|
|
292971
292917
|
if (this.mouseSelection)
|
|
292972
292918
|
this.mouseSelection.update(update2);
|
|
292919
|
+
if (this.draggedContent && update2.docChanged)
|
|
292920
|
+
this.draggedContent = this.draggedContent.map(update2.changes);
|
|
292973
292921
|
if (update2.transactions.length)
|
|
292974
292922
|
this.lastKeyCode = this.lastSelectionTime = 0;
|
|
292975
292923
|
}
|
|
@@ -293082,7 +293030,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
293082
293030
|
let doc2 = this.view.contentDOM.ownerDocument;
|
|
293083
293031
|
doc2.removeEventListener("mousemove", this.move);
|
|
293084
293032
|
doc2.removeEventListener("mouseup", this.up);
|
|
293085
|
-
this.view.inputState.mouseSelection = null;
|
|
293033
|
+
this.view.inputState.mouseSelection = this.view.inputState.draggedContent = null;
|
|
293086
293034
|
}
|
|
293087
293035
|
setScrollSpeed(sx, sy) {
|
|
293088
293036
|
this.scrollSpeed = { x: sx, y: sy };
|
|
@@ -293136,8 +293084,6 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
293136
293084
|
this.mustSelect = false;
|
|
293137
293085
|
}
|
|
293138
293086
|
update(update2) {
|
|
293139
|
-
if (update2.docChanged && this.dragging)
|
|
293140
|
-
this.dragging = this.dragging.map(update2.changes);
|
|
293141
293087
|
if (this.style.update(update2))
|
|
293142
293088
|
setTimeout(() => this.select(this.lastEvent), 20);
|
|
293143
293089
|
}
|
|
@@ -293350,22 +293296,35 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
293350
293296
|
return null;
|
|
293351
293297
|
}
|
|
293352
293298
|
handlers.dragstart = (view, event2) => {
|
|
293353
|
-
let { selection: { main:
|
|
293354
|
-
|
|
293355
|
-
|
|
293356
|
-
|
|
293299
|
+
let { selection: { main: range2 } } = view.state;
|
|
293300
|
+
if (event2.target.draggable) {
|
|
293301
|
+
let cView = view.docView.nearest(event2.target);
|
|
293302
|
+
if (cView && cView.isWidget) {
|
|
293303
|
+
let from = cView.posAtStart, to = from + cView.length;
|
|
293304
|
+
if (from >= range2.to || to <= range2.from)
|
|
293305
|
+
range2 = EditorSelection.range(from, to);
|
|
293306
|
+
}
|
|
293307
|
+
}
|
|
293308
|
+
let { inputState } = view;
|
|
293309
|
+
if (inputState.mouseSelection)
|
|
293310
|
+
inputState.mouseSelection.dragging = true;
|
|
293311
|
+
inputState.draggedContent = range2;
|
|
293357
293312
|
if (event2.dataTransfer) {
|
|
293358
|
-
event2.dataTransfer.setData("Text", view.state.sliceDoc(
|
|
293313
|
+
event2.dataTransfer.setData("Text", view.state.sliceDoc(range2.from, range2.to));
|
|
293359
293314
|
event2.dataTransfer.effectAllowed = "copyMove";
|
|
293360
293315
|
}
|
|
293361
293316
|
return false;
|
|
293362
293317
|
};
|
|
293318
|
+
handlers.dragend = (view) => {
|
|
293319
|
+
view.inputState.draggedContent = null;
|
|
293320
|
+
return false;
|
|
293321
|
+
};
|
|
293363
293322
|
function dropText(view, event2, text2, direct) {
|
|
293364
293323
|
if (!text2)
|
|
293365
293324
|
return;
|
|
293366
293325
|
let dropPos = view.posAtCoords({ x: event2.clientX, y: event2.clientY }, false);
|
|
293367
|
-
let {
|
|
293368
|
-
let del = direct &&
|
|
293326
|
+
let { draggedContent } = view.inputState;
|
|
293327
|
+
let del = direct && draggedContent && dragMovesSelection(view, event2) ? { from: draggedContent.from, to: draggedContent.to } : null;
|
|
293369
293328
|
let ins = { from: dropPos, insert: text2 };
|
|
293370
293329
|
let changes = view.state.changes(del ? [del, ins] : ins);
|
|
293371
293330
|
view.focus();
|
|
@@ -293374,6 +293333,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
293374
293333
|
selection: { anchor: changes.mapPos(dropPos, -1), head: changes.mapPos(dropPos, 1) },
|
|
293375
293334
|
userEvent: del ? "move.drop" : "input.drop"
|
|
293376
293335
|
});
|
|
293336
|
+
view.inputState.draggedContent = null;
|
|
293377
293337
|
}
|
|
293378
293338
|
handlers.drop = (view, event2) => {
|
|
293379
293339
|
if (!event2.dataTransfer)
|
|
@@ -294878,6 +294838,13 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
294878
294838
|
"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor": {
|
|
294879
294839
|
display: "block"
|
|
294880
294840
|
},
|
|
294841
|
+
".cm-announced": {
|
|
294842
|
+
position: "fixed",
|
|
294843
|
+
top: "-10000px"
|
|
294844
|
+
},
|
|
294845
|
+
"@media print": {
|
|
294846
|
+
".cm-announced": { display: "none" }
|
|
294847
|
+
},
|
|
294881
294848
|
"&light .cm-activeLine": { backgroundColor: "#cceeff44" },
|
|
294882
294849
|
"&dark .cm-activeLine": { backgroundColor: "#99eeff33" },
|
|
294883
294850
|
"&light .cm-specialChar": { color: "red" },
|
|
@@ -295739,7 +295706,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
295739
295706
|
this.scrollDOM.className = "cm-scroller";
|
|
295740
295707
|
this.scrollDOM.appendChild(this.contentDOM);
|
|
295741
295708
|
this.announceDOM = document.createElement("div");
|
|
295742
|
-
this.announceDOM.
|
|
295709
|
+
this.announceDOM.className = "cm-announced";
|
|
295743
295710
|
this.announceDOM.setAttribute("aria-live", "polite");
|
|
295744
295711
|
this.dom = document.createElement("div");
|
|
295745
295712
|
this.dom.appendChild(this.announceDOM);
|
|
@@ -295749,6 +295716,8 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
295749
295716
|
this.dispatch = this.dispatch.bind(this);
|
|
295750
295717
|
this._root = config2.root || getRoot(config2.parent) || document;
|
|
295751
295718
|
this.viewState = new ViewState(config2.state || EditorState.create(config2));
|
|
295719
|
+
if (config2.scrollTo && config2.scrollTo.is(scrollIntoView))
|
|
295720
|
+
this.viewState.scrollTarget = config2.scrollTo.value.clip(this.viewState.state);
|
|
295752
295721
|
this.plugins = this.state.facet(viewPlugin).map((spec) => new PluginInstance(spec));
|
|
295753
295722
|
for (let plugin of this.plugins)
|
|
295754
295723
|
plugin.update(this);
|
|
@@ -295816,7 +295785,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
295816
295785
|
}
|
|
295817
295786
|
for (let e3 of tr.effects)
|
|
295818
295787
|
if (e3.is(scrollIntoView))
|
|
295819
|
-
scrollTarget = e3.value;
|
|
295788
|
+
scrollTarget = e3.value.clip(this.state);
|
|
295820
295789
|
}
|
|
295821
295790
|
this.viewState.update(update2, scrollTarget);
|
|
295822
295791
|
this.bidiCache = CachedOrder.update(this.bidiCache, update2.changes);
|
|
@@ -295838,8 +295807,13 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
295838
295807
|
if (redrawn || attrsChanged || scrollTarget || this.viewState.mustEnforceCursorAssoc || this.viewState.mustMeasureContent)
|
|
295839
295808
|
this.requestMeasure();
|
|
295840
295809
|
if (!update2.empty)
|
|
295841
|
-
for (let listener2 of this.state.facet(updateListener))
|
|
295842
|
-
|
|
295810
|
+
for (let listener2 of this.state.facet(updateListener)) {
|
|
295811
|
+
try {
|
|
295812
|
+
listener2(update2);
|
|
295813
|
+
} catch (e3) {
|
|
295814
|
+
logException(this.state, e3, "update listener");
|
|
295815
|
+
}
|
|
295816
|
+
}
|
|
295843
295817
|
if (dispatchFocus || domChange)
|
|
295844
295818
|
Promise.resolve().then(() => {
|
|
295845
295819
|
if (dispatchFocus && this.state == dispatchFocus.startState)
|
|
@@ -295867,6 +295841,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
295867
295841
|
this.pluginMap.clear();
|
|
295868
295842
|
for (let plugin of this.plugins)
|
|
295869
295843
|
plugin.update(this);
|
|
295844
|
+
this.docView.destroy();
|
|
295870
295845
|
this.docView = new DocView(this);
|
|
295871
295846
|
this.inputState.ensureHandlers(this.plugins);
|
|
295872
295847
|
this.mountStyles();
|
|
@@ -296204,6 +296179,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
296204
296179
|
plugin.destroy(this);
|
|
296205
296180
|
this.plugins = [];
|
|
296206
296181
|
this.inputState.destroy();
|
|
296182
|
+
this.docView.destroy();
|
|
296207
296183
|
this.dom.remove();
|
|
296208
296184
|
this.observer.destroy();
|
|
296209
296185
|
if (this.measureScheduled > -1)
|
|
@@ -296213,6 +296189,11 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
296213
296189
|
static scrollIntoView(pos, options = {}) {
|
|
296214
296190
|
return scrollIntoView.of(new ScrollTarget(typeof pos == "number" ? EditorSelection.cursor(pos) : pos, options.y, options.x, options.yMargin, options.xMargin));
|
|
296215
296191
|
}
|
|
296192
|
+
scrollSnapshot() {
|
|
296193
|
+
let { scrollTop, scrollLeft } = this.scrollDOM;
|
|
296194
|
+
let ref = this.viewState.scrollAnchorAt(scrollTop);
|
|
296195
|
+
return scrollIntoView.of(new ScrollTarget(EditorSelection.cursor(ref.from), "start", "start", ref.top - scrollTop, scrollLeft, true));
|
|
296196
|
+
}
|
|
296216
296197
|
static domEventHandlers(handlers2) {
|
|
296217
296198
|
return ViewPlugin.define(() => ({}), { eventHandlers: handlers2 });
|
|
296218
296199
|
}
|
|
@@ -296478,8 +296459,10 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
296478
296459
|
"&::selection": { backgroundColor: "transparent !important" }
|
|
296479
296460
|
}
|
|
296480
296461
|
};
|
|
296481
|
-
if (CanHidePrimary)
|
|
296462
|
+
if (CanHidePrimary) {
|
|
296482
296463
|
themeSpec[".cm-line"].caretColor = "transparent !important";
|
|
296464
|
+
themeSpec[".cm-content"] = { caretColor: "transparent !important" };
|
|
296465
|
+
}
|
|
296483
296466
|
const panelConfig = /* @__PURE__ */ Facet.define({
|
|
296484
296467
|
combine(configs) {
|
|
296485
296468
|
let topContainer, bottomContainer;
|
|
@@ -297620,8 +297603,6 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
297620
297603
|
function iterStack(heads) {
|
|
297621
297604
|
if (!heads.length)
|
|
297622
297605
|
return null;
|
|
297623
|
-
if (heads.length == 1)
|
|
297624
|
-
return heads[0];
|
|
297625
297606
|
let pick = 0, picked = heads[0];
|
|
297626
297607
|
for (let i2 = 1; i2 < heads.length; i2++) {
|
|
297627
297608
|
let node2 = heads[i2];
|
|
@@ -297657,7 +297638,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
297657
297638
|
} else {
|
|
297658
297639
|
let mount = MountedTree.get(scan2.tree);
|
|
297659
297640
|
if (mount && mount.overlay && mount.overlay[0].from <= pos && mount.overlay[mount.overlay.length - 1].to >= pos) {
|
|
297660
|
-
let root2 = new TreeNode(mount.tree, mount.overlay[0].from + scan2.from,
|
|
297641
|
+
let root2 = new TreeNode(mount.tree, mount.overlay[0].from + scan2.from, -1, scan2);
|
|
297661
297642
|
(layers || (layers = [inner])).push(resolveNode(root2, pos, side, false));
|
|
297662
297643
|
}
|
|
297663
297644
|
}
|
|
@@ -297897,7 +297878,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
297897
297878
|
let cursor = Array.isArray(buffer2) ? new FlatBufferCursor(buffer2, buffer2.length) : buffer2;
|
|
297898
297879
|
let types2 = nodeSet.types;
|
|
297899
297880
|
let contextHash = 0, lookAhead = 0;
|
|
297900
|
-
function takeNode(parentStart, minPos, children3, positions2, inRepeat) {
|
|
297881
|
+
function takeNode(parentStart, minPos, children3, positions2, inRepeat, depth) {
|
|
297901
297882
|
let { id: id2, start: start2, end: end2, size } = cursor;
|
|
297902
297883
|
let lookAheadAtStart = lookAhead;
|
|
297903
297884
|
while (size < 0) {
|
|
@@ -297940,8 +297921,10 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
297940
297921
|
lastEnd = cursor.end;
|
|
297941
297922
|
}
|
|
297942
297923
|
cursor.next();
|
|
297924
|
+
} else if (depth > 2500) {
|
|
297925
|
+
takeFlatNode(start2, endPos, localChildren, localPositions);
|
|
297943
297926
|
} else {
|
|
297944
|
-
takeNode(start2, endPos, localChildren, localPositions, localInRepeat);
|
|
297927
|
+
takeNode(start2, endPos, localChildren, localPositions, localInRepeat, depth + 1);
|
|
297945
297928
|
}
|
|
297946
297929
|
}
|
|
297947
297930
|
if (localInRepeat >= 0 && lastGroup > 0 && lastGroup < localChildren.length)
|
|
@@ -297958,6 +297941,36 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
297958
297941
|
children3.push(node2);
|
|
297959
297942
|
positions2.push(startPos);
|
|
297960
297943
|
}
|
|
297944
|
+
function takeFlatNode(parentStart, minPos, children3, positions2) {
|
|
297945
|
+
let nodes = [];
|
|
297946
|
+
let nodeCount = 0, stopAt = -1;
|
|
297947
|
+
while (cursor.pos > minPos) {
|
|
297948
|
+
let { id: id2, start: start2, end: end2, size } = cursor;
|
|
297949
|
+
if (size > 4) {
|
|
297950
|
+
cursor.next();
|
|
297951
|
+
} else if (stopAt > -1 && start2 < stopAt) {
|
|
297952
|
+
break;
|
|
297953
|
+
} else {
|
|
297954
|
+
if (stopAt < 0)
|
|
297955
|
+
stopAt = end2 - maxBufferLength;
|
|
297956
|
+
nodes.push(id2, start2, end2);
|
|
297957
|
+
nodeCount++;
|
|
297958
|
+
cursor.next();
|
|
297959
|
+
}
|
|
297960
|
+
}
|
|
297961
|
+
if (nodeCount) {
|
|
297962
|
+
let buffer3 = new Uint16Array(nodeCount * 4);
|
|
297963
|
+
let start2 = nodes[nodes.length - 2];
|
|
297964
|
+
for (let i2 = nodes.length - 3, j2 = 0; i2 >= 0; i2 -= 3) {
|
|
297965
|
+
buffer3[j2++] = nodes[i2];
|
|
297966
|
+
buffer3[j2++] = nodes[i2 + 1] - start2;
|
|
297967
|
+
buffer3[j2++] = nodes[i2 + 2] - start2;
|
|
297968
|
+
buffer3[j2++] = j2;
|
|
297969
|
+
}
|
|
297970
|
+
children3.push(new TreeBuffer(buffer3, nodes[2] - start2, nodeSet));
|
|
297971
|
+
positions2.push(start2 - parentStart);
|
|
297972
|
+
}
|
|
297973
|
+
}
|
|
297961
297974
|
function makeBalanced(type) {
|
|
297962
297975
|
return (children3, positions2, length3) => {
|
|
297963
297976
|
let lookAhead2 = 0, lastI = children3.length - 1, last, lookAheadProp;
|
|
@@ -298057,7 +298070,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
298057
298070
|
}
|
|
298058
298071
|
let children2 = [], positions = [];
|
|
298059
298072
|
while (cursor.pos > 0)
|
|
298060
|
-
takeNode(data2.start || 0, data2.bufferStart || 0, children2, positions, -1);
|
|
298073
|
+
takeNode(data2.start || 0, data2.bufferStart || 0, children2, positions, -1, 0);
|
|
298061
298074
|
let length2 = (_a3 = data2.length) !== null && _a3 !== void 0 ? _a3 : children2.length ? positions[0] + children2[0].length : 0;
|
|
298062
298075
|
return new Tree(types2[data2.topID], children2.reverse(), positions.reverse(), length2);
|
|
298063
298076
|
}
|
|
@@ -299558,6 +299571,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
299558
299571
|
const noTokens = /* @__PURE__ */ Object.create(null);
|
|
299559
299572
|
const typeArray = [NodeType.none];
|
|
299560
299573
|
const warned = [];
|
|
299574
|
+
const byTag = /* @__PURE__ */ Object.create(null);
|
|
299561
299575
|
const defaultTable = /* @__PURE__ */ Object.create(null);
|
|
299562
299576
|
for (let [legacyName, name2] of [
|
|
299563
299577
|
["variable", "variableName"],
|
|
@@ -299605,7 +299619,11 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
299605
299619
|
}
|
|
299606
299620
|
if (!tags$1.length)
|
|
299607
299621
|
return 0;
|
|
299608
|
-
let name2 = tagStr.replace(/ /g, "_"),
|
|
299622
|
+
let name2 = tagStr.replace(/ /g, "_"), key = name2 + " " + tags$1.map((t2) => t2.id);
|
|
299623
|
+
let known = byTag[key];
|
|
299624
|
+
if (known)
|
|
299625
|
+
return known.id;
|
|
299626
|
+
let type = byTag[key] = NodeType.define({
|
|
299609
299627
|
id: typeArray.length,
|
|
299610
299628
|
name: name2,
|
|
299611
299629
|
props: [styleTags({ [name2]: tags$1 })]
|
|
@@ -300001,13 +300019,11 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
300001
300019
|
return RangeSet.empty;
|
|
300002
300020
|
},
|
|
300003
300021
|
update(value, tr) {
|
|
300022
|
+
value = value.map(tr.changes);
|
|
300004
300023
|
if (tr.selection) {
|
|
300005
|
-
let
|
|
300006
|
-
|
|
300007
|
-
if (lineStart != tr.changes.mapPos(prevLineStart, -1))
|
|
300008
|
-
value = RangeSet.empty;
|
|
300024
|
+
let line = tr.state.doc.lineAt(tr.selection.main.head);
|
|
300025
|
+
value = value.update({ filter: (from) => from >= line.from && from <= line.to });
|
|
300009
300026
|
}
|
|
300010
|
-
value = value.map(tr.changes);
|
|
300011
300027
|
for (let effect2 of tr.effects)
|
|
300012
300028
|
if (effect2.is(closeBracketEffect))
|
|
300013
300029
|
value = value.update({ add: [closedBracket.range(effect2.value, effect2.value + 1)] });
|
|
@@ -300340,11 +300356,6 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
300340
300356
|
});
|
|
300341
300357
|
}
|
|
300342
300358
|
});
|
|
300343
|
-
function changeEnd(changes) {
|
|
300344
|
-
let end2 = 0;
|
|
300345
|
-
changes.iterChangedRanges((_2, to) => end2 = to);
|
|
300346
|
-
return end2;
|
|
300347
|
-
}
|
|
300348
300359
|
const historyField_ = /* @__PURE__ */ StateField.define({
|
|
300349
300360
|
create() {
|
|
300350
300361
|
return HistoryState.empty;
|
|
@@ -300353,8 +300364,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
300353
300364
|
let config2 = tr.state.facet(historyConfig);
|
|
300354
300365
|
let fromHist = tr.annotation(fromHistory);
|
|
300355
300366
|
if (fromHist) {
|
|
300356
|
-
let
|
|
300357
|
-
let item = HistEvent.fromTransaction(tr, selection2), from = fromHist.side;
|
|
300367
|
+
let item = HistEvent.fromTransaction(tr, fromHist.selection), from = fromHist.side;
|
|
300358
300368
|
let other = from == 0 ? state.undone : state.done;
|
|
300359
300369
|
if (item)
|
|
300360
300370
|
other = updateBranch(other, other.length, config2.minDepth, item);
|
|
@@ -300554,15 +300564,15 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
300554
300564
|
addMapping(mapping) {
|
|
300555
300565
|
return new HistoryState(addMappingToBranch(this.done, mapping), addMappingToBranch(this.undone, mapping), this.prevTime, this.prevUserEvent);
|
|
300556
300566
|
}
|
|
300557
|
-
pop(side, state,
|
|
300567
|
+
pop(side, state, onlySelection) {
|
|
300558
300568
|
let branch = side == 0 ? this.done : this.undone;
|
|
300559
300569
|
if (branch.length == 0)
|
|
300560
300570
|
return null;
|
|
300561
|
-
let event2 = branch[branch.length - 1];
|
|
300562
|
-
if (
|
|
300571
|
+
let event2 = branch[branch.length - 1], selection2 = event2.selectionsAfter[0] || state.selection;
|
|
300572
|
+
if (onlySelection && event2.selectionsAfter.length) {
|
|
300563
300573
|
return state.update({
|
|
300564
300574
|
selection: event2.selectionsAfter[event2.selectionsAfter.length - 1],
|
|
300565
|
-
annotations: fromHistory.of({ side, rest: popSelection(branch) }),
|
|
300575
|
+
annotations: fromHistory.of({ side, rest: popSelection(branch), selection: selection2 }),
|
|
300566
300576
|
userEvent: side == 0 ? "select.undo" : "select.redo",
|
|
300567
300577
|
scrollIntoView: true
|
|
300568
300578
|
});
|
|
@@ -300576,7 +300586,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
300576
300586
|
changes: event2.changes,
|
|
300577
300587
|
selection: event2.startSelection,
|
|
300578
300588
|
effects: event2.effects,
|
|
300579
|
-
annotations: fromHistory.of({ side, rest }),
|
|
300589
|
+
annotations: fromHistory.of({ side, rest, selection: selection2 }),
|
|
300580
300590
|
filter: false,
|
|
300581
300591
|
userEvent: side == 0 ? "undo" : "redo",
|
|
300582
300592
|
scrollIntoView: true
|
|
@@ -300874,6 +300884,8 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
300874
300884
|
targetPos = findClusterBreak(line.text, pos - line.from, forward, forward) + line.from;
|
|
300875
300885
|
if (targetPos == pos && line.number != (forward ? state.doc.lines : 1))
|
|
300876
300886
|
targetPos += forward ? 1 : -1;
|
|
300887
|
+
else if (!forward && /[\ufe00-\ufe0f]/.test(line.text.slice(targetPos - line.from, pos - line.from)))
|
|
300888
|
+
targetPos = findClusterBreak(line.text, targetPos - line.from, false, false) + line.from;
|
|
300877
300889
|
}
|
|
300878
300890
|
return targetPos;
|
|
300879
300891
|
});
|
|
@@ -301837,7 +301849,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
301837
301849
|
}
|
|
301838
301850
|
}
|
|
301839
301851
|
let next2 = input.next, low = 0, high = data2[state + 2];
|
|
301840
|
-
if (input.next < 0 && high > low && data2[accEnd + high * 3 - 3] == 65535
|
|
301852
|
+
if (input.next < 0 && high > low && data2[accEnd + high * 3 - 3] == 65535) {
|
|
301841
301853
|
state = data2[accEnd + high * 3 - 1];
|
|
301842
301854
|
continue scan;
|
|
301843
301855
|
}
|
|
@@ -302224,7 +302236,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
302224
302236
|
console.log(base2 + this.stackID(stack) + ` (via always-reduce ${parser2.getName(defaultReduce & 65535)})`);
|
|
302225
302237
|
return true;
|
|
302226
302238
|
}
|
|
302227
|
-
if (stack.stack.length >=
|
|
302239
|
+
if (stack.stack.length >= 8400) {
|
|
302228
302240
|
while (stack.stack.length > 6e3 && stack.forceReduce()) {
|
|
302229
302241
|
}
|
|
302230
302242
|
}
|
|
@@ -303779,7 +303791,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
303779
303791
|
return this.prevMatchInRange(state, 0, curFrom) || this.prevMatchInRange(state, curTo, state.doc.length);
|
|
303780
303792
|
}
|
|
303781
303793
|
getReplacement(result) {
|
|
303782
|
-
return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g, (m2, i2) => i2 == "$" ? "$" : i2 == "&" ? result.match[0] : i2 != "0" && +i2 < result.match.length ? result.match[i2] : m2)
|
|
303794
|
+
return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g, (m2, i2) => i2 == "$" ? "$" : i2 == "&" ? result.match[0] : i2 != "0" && +i2 < result.match.length ? result.match[i2] : m2);
|
|
303783
303795
|
}
|
|
303784
303796
|
matchAll(state, limit) {
|
|
303785
303797
|
let cursor = regexpCursor(this.spec, state, 0, state.doc.length), ranges = [];
|
|
@@ -304022,7 +304034,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
304022
304034
|
{ key: "Mod-g", run: findNext, shift: findPrevious, scope: "editor search-panel", preventDefault: true },
|
|
304023
304035
|
{ key: "Escape", run: closeSearchPanel, scope: "editor search-panel" },
|
|
304024
304036
|
{ key: "Mod-Shift-l", run: selectSelectionMatches },
|
|
304025
|
-
{ key: "Alt-g", run: gotoLine },
|
|
304037
|
+
{ key: "Mod-Alt-g", run: gotoLine },
|
|
304026
304038
|
{ key: "Mod-d", run: selectNextOccurrence, preventDefault: true }
|
|
304027
304039
|
];
|
|
304028
304040
|
class SearchPanel {
|
|
@@ -304511,10 +304523,10 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
304511
304523
|
})(EdgeType || (EdgeType = {}));
|
|
304512
304524
|
var EdgeConstraintType;
|
|
304513
304525
|
(function(EdgeConstraintType2) {
|
|
304514
|
-
EdgeConstraintType2[
|
|
304515
|
-
EdgeConstraintType2[
|
|
304516
|
-
EdgeConstraintType2[
|
|
304517
|
-
EdgeConstraintType2[
|
|
304526
|
+
EdgeConstraintType2["FORBIDDEN"] = "forbidden";
|
|
304527
|
+
EdgeConstraintType2["HARD_DIRECTED"] = "hard_directed";
|
|
304528
|
+
EdgeConstraintType2["SOFT_DIRECTED"] = "soft_directed";
|
|
304529
|
+
EdgeConstraintType2["UNDIRECTED"] = "hard_undirected";
|
|
304518
304530
|
})(EdgeConstraintType || (EdgeConstraintType = {}));
|
|
304519
304531
|
var PagSymbol;
|
|
304520
304532
|
(function(PagSymbol2) {
|
|
@@ -304548,14 +304560,61 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
304548
304560
|
}
|
|
304549
304561
|
throw new Error(`Unrecognised symbol: ${string2}`);
|
|
304550
304562
|
}
|
|
304563
|
+
const FloatingButton = styled__default.default(Button$3).attrs((props) => {
|
|
304564
|
+
var _a3;
|
|
304565
|
+
return Object.assign(Object.assign({}, props), { styling: (_a3 = props.styling) !== null && _a3 !== void 0 ? _a3 : "ghost" });
|
|
304566
|
+
})`
|
|
304567
|
+
pointer-events: ${(props) => props.disableEvents ? "none" : "all"};
|
|
304568
|
+
min-width: 0;
|
|
304569
|
+
margin: 0;
|
|
304570
|
+
padding: 0 1rem;
|
|
304571
|
+
|
|
304572
|
+
${(props) => props.fixedSize ? "height: 40px; width: 40px;" : ""};
|
|
304573
|
+
|
|
304574
|
+
${(props) => props.styling === "ghost" ? `background-color: ${props.theme.colors.blue1}` : ""};
|
|
304575
|
+
${(props) => props.disableBoxShadow ? "" : `box-shadow: ${props.theme.shadow.light};`}
|
|
304576
|
+
`;
|
|
304577
|
+
function EditControls(props) {
|
|
304578
|
+
const { disableLatentNodeAdd, editorMode, editable: editable2 } = useSettings();
|
|
304579
|
+
const { disablePointerEvents } = React.useContext(pointerCtx);
|
|
304580
|
+
return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment, { children: editable2 && editorMode !== EditorMode.EDGE_ENCODER && !disableLatentNodeAdd && jsxRuntime.exports.jsx(Tooltip$1, { content: "Add Latent Node", placement: "bottom", children: jsxRuntime.exports.jsx(FloatingButton, { "aria-label": "Add Latent Node", disableEvents: disablePointerEvents, fixedSize: true, onClick: props.onAddNode, children: jsxRuntime.exports.jsx(Plus, {}) }) }) });
|
|
304581
|
+
}
|
|
304582
|
+
function CenterGraphButton(props) {
|
|
304583
|
+
const { disablePointerEvents } = React.useContext(pointerCtx);
|
|
304584
|
+
const theme2 = useClTheme();
|
|
304585
|
+
return jsxRuntime.exports.jsx(Tooltip$1, { content: "Center Graph", placement: "bottom", children: jsxRuntime.exports.jsx(FloatingButton, { "aria-label": "Center Graph", disableEvents: disablePointerEvents, fixedSize: true, onClick: props.onResetZoom, style: { padding: "0 0.75rem" }, children: jsxRuntime.exports.jsx("svg", { fill: "none", stroke: theme2.colors.grey4, strokeWidth: 2, style: {
|
|
304586
|
+
height: "100%",
|
|
304587
|
+
width: "100%"
|
|
304588
|
+
}, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: jsxRuntime.exports.jsx("path", { d: "M9 9V4.5M9 9H4.5M9 9L3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5l5.25 5.25", strokeLinecap: "round", strokeLinejoin: "round" }) }) }) });
|
|
304589
|
+
}
|
|
304590
|
+
function DragModeButton(props) {
|
|
304591
|
+
const { editable: editable2, disableEdgeAdd, allowNodeDrag } = useSettings();
|
|
304592
|
+
const { disablePointerEvents } = React.useContext(pointerCtx);
|
|
304593
|
+
const theme2 = useClTheme();
|
|
304594
|
+
const isMoveNode = props.dragMode === "move_node";
|
|
304595
|
+
return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment, { children: editable2 && !disableEdgeAdd && allowNodeDrag && jsxRuntime.exports.jsx(Tooltip$1, { content: `Drag behaviour: ${isMoveNode ? "Node Move" : "Edge Creation"}. Press and hold Command or Control to switch mode temporarily`, placement: "bottom", children: jsxRuntime.exports.jsx(FloatingButton, { "aria-label": "Toggle drag behaviour", disableEvents: disablePointerEvents, fixedSize: true, onClick: () => props.setDragMode(isMoveNode ? "create_edge" : "move_node"), style: {
|
|
304596
|
+
color: isMoveNode ? theme2.colors.primary : theme2.colors.grey4
|
|
304597
|
+
}, children: jsxRuntime.exports.jsx(Arrows$1, {}) }) }) });
|
|
304598
|
+
}
|
|
304599
|
+
function RecalculateLayoutButton(props) {
|
|
304600
|
+
const { disablePointerEvents } = React.useContext(pointerCtx);
|
|
304601
|
+
return jsxRuntime.exports.jsx(Tooltip$1, { content: "Recalculate Layout", placement: "bottom", children: jsxRuntime.exports.jsx(FloatingButton, { "aria-label": "Recalculate Layout", disableEvents: disablePointerEvents, fixedSize: true, onClick: props.onResetLayout, children: jsxRuntime.exports.jsx(Refresh, {}) }) });
|
|
304602
|
+
}
|
|
304603
|
+
function SoftEdgeArrowButton() {
|
|
304604
|
+
return jsxRuntime.exports.jsxs("svg", { fill: "none", height: "15", viewBox: "0 0 16 15", width: "16", xmlns: "http://www.w3.org/2000/svg", children: [jsxRuntime.exports.jsx("path", { d: "M9.1333 0.867188C10.9545 0.867188 12.701 1.59064 13.9888 2.87839C15.2765 4.16614 16 5.9127 16 7.73385C16 9.55501 15.2765 11.3016 13.9888 12.5893C12.701 13.8771 10.9545 14.6005 9.1333 14.6005L9.1333 12.2659C10.3353 12.2659 11.488 11.7884 12.3379 10.9385C13.1878 10.0885 13.6653 8.93581 13.6653 7.73385C13.6653 6.53189 13.1878 5.37916 12.3379 4.52925C11.488 3.67933 10.3353 3.20185 9.1333 3.20185V0.867188Z", fill: "currentColor" }), jsxRuntime.exports.jsx("path", { d: "M1.14286 6.59375H14.1667V8.87946H1.14286C0.510714 8.87946 0 8.36875 0 7.73661C0 7.10446 0.510714 6.59375 1.14286 6.59375Z", fill: "currentColor" }), jsxRuntime.exports.jsx("circle", { cx: "9.13389", cy: "2.03452", fill: "currentColor", r: "1.16733" }), jsxRuntime.exports.jsx("circle", { cx: "9.13389", cy: "13.4344", fill: "currentColor", r: "1.16733" })] });
|
|
304605
|
+
}
|
|
304551
304606
|
const constraintItems = [
|
|
304552
304607
|
{
|
|
304553
|
-
label: jsxRuntime.exports.jsx(Tooltip$1, { content: "
|
|
304554
|
-
value: EdgeConstraintType.
|
|
304608
|
+
label: jsxRuntime.exports.jsx(Tooltip$1, { content: "Hard Directed", children: jsxRuntime.exports.jsx("span", { children: jsxRuntime.exports.jsx(ArrowRightLong, { size: "lg" }) }) }),
|
|
304609
|
+
value: EdgeConstraintType.HARD_DIRECTED
|
|
304610
|
+
},
|
|
304611
|
+
{
|
|
304612
|
+
label: jsxRuntime.exports.jsx(Tooltip$1, { content: "Soft Directed", children: jsxRuntime.exports.jsx("span", { style: { alignItems: "center", display: "flex" }, children: jsxRuntime.exports.jsx(SoftEdgeArrowButton, {}) }) }),
|
|
304613
|
+
value: EdgeConstraintType.SOFT_DIRECTED
|
|
304555
304614
|
},
|
|
304556
304615
|
{
|
|
304557
|
-
label: jsxRuntime.exports.jsx(Tooltip$1, { content: "
|
|
304558
|
-
value: EdgeConstraintType.
|
|
304616
|
+
label: jsxRuntime.exports.jsx(Tooltip$1, { content: "Undirected", children: jsxRuntime.exports.jsx("span", { children: jsxRuntime.exports.jsx(ArrowsHorizontal, { size: "lg" }) }) }),
|
|
304617
|
+
value: EdgeConstraintType.UNDIRECTED
|
|
304559
304618
|
},
|
|
304560
304619
|
{
|
|
304561
304620
|
label: jsxRuntime.exports.jsx(Tooltip$1, { content: "Forbidden", children: jsxRuntime.exports.jsx("span", { children: jsxRuntime.exports.jsx(Ban, { size: "lg" }) }) }),
|
|
@@ -304573,6 +304632,421 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
304573
304632
|
}
|
|
304574
304633
|
return jsxRuntime.exports.jsxs(ColumnWrapper, { children: [jsxRuntime.exports.jsx(SectionTitle, { children: "Connection" }), jsxRuntime.exports.jsx(ButtonBar$1, { initialValue: constraintItems.find((i2) => i2.value === props.edgeConstraint.type), items: constraintItems, onSelect: (e3) => updateConstraintType(e3.value), styling: "secondary" }, props.edgeConstraint.id)] });
|
|
304575
304634
|
}
|
|
304635
|
+
var isGraph$8 = function isGraph2(value) {
|
|
304636
|
+
return value !== null && typeof value === "object" && typeof value.addUndirectedEdgeWithKey === "function" && typeof value.dropNode === "function" && typeof value.multi === "boolean";
|
|
304637
|
+
};
|
|
304638
|
+
const isGraph$7 = isGraph$8;
|
|
304639
|
+
const WHITE = void 0;
|
|
304640
|
+
const GREY = 0;
|
|
304641
|
+
const BLACK = 1;
|
|
304642
|
+
var hasCycle$1 = function hasCycle2(graph) {
|
|
304643
|
+
if (!isGraph$7(graph))
|
|
304644
|
+
throw new Error(
|
|
304645
|
+
"graphology-dag/has-cycle: the given graph is not a valid graphology instance."
|
|
304646
|
+
);
|
|
304647
|
+
if (graph.size === 0)
|
|
304648
|
+
return false;
|
|
304649
|
+
if (graph.selfLoopCount !== 0)
|
|
304650
|
+
return true;
|
|
304651
|
+
const labels = {};
|
|
304652
|
+
const stack = [];
|
|
304653
|
+
function neighborCallback(neighbor) {
|
|
304654
|
+
const neighborLabel = labels[neighbor];
|
|
304655
|
+
if (neighborLabel === WHITE)
|
|
304656
|
+
stack.push(neighbor);
|
|
304657
|
+
else if (neighborLabel === GREY)
|
|
304658
|
+
return true;
|
|
304659
|
+
return false;
|
|
304660
|
+
}
|
|
304661
|
+
return graph.someNode((node2) => {
|
|
304662
|
+
if (labels[node2] === BLACK)
|
|
304663
|
+
return false;
|
|
304664
|
+
stack.push(node2);
|
|
304665
|
+
while (stack.length !== 0) {
|
|
304666
|
+
const current = stack[stack.length - 1];
|
|
304667
|
+
const currentLabel = labels[current];
|
|
304668
|
+
if (currentLabel !== GREY) {
|
|
304669
|
+
labels[current] = GREY;
|
|
304670
|
+
const shouldStop = graph.someOutboundNeighbor(
|
|
304671
|
+
current,
|
|
304672
|
+
neighborCallback
|
|
304673
|
+
);
|
|
304674
|
+
if (shouldStop)
|
|
304675
|
+
return true;
|
|
304676
|
+
} else if (currentLabel === GREY) {
|
|
304677
|
+
stack.pop();
|
|
304678
|
+
labels[current] = BLACK;
|
|
304679
|
+
}
|
|
304680
|
+
}
|
|
304681
|
+
return false;
|
|
304682
|
+
});
|
|
304683
|
+
};
|
|
304684
|
+
var iterables$1 = {};
|
|
304685
|
+
var support$2 = {};
|
|
304686
|
+
support$2.ARRAY_BUFFER_SUPPORT = typeof ArrayBuffer !== "undefined";
|
|
304687
|
+
support$2.SYMBOL_SUPPORT = typeof Symbol !== "undefined";
|
|
304688
|
+
var support$1 = support$2;
|
|
304689
|
+
var ARRAY_BUFFER_SUPPORT$1 = support$1.ARRAY_BUFFER_SUPPORT;
|
|
304690
|
+
var SYMBOL_SUPPORT$1 = support$1.SYMBOL_SUPPORT;
|
|
304691
|
+
var foreach = function forEach2(iterable, callback) {
|
|
304692
|
+
var iterator2, k2, i2, l2, s2;
|
|
304693
|
+
if (!iterable)
|
|
304694
|
+
throw new Error("obliterator/forEach: invalid iterable.");
|
|
304695
|
+
if (typeof callback !== "function")
|
|
304696
|
+
throw new Error("obliterator/forEach: expecting a callback.");
|
|
304697
|
+
if (Array.isArray(iterable) || ARRAY_BUFFER_SUPPORT$1 && ArrayBuffer.isView(iterable) || typeof iterable === "string" || iterable.toString() === "[object Arguments]") {
|
|
304698
|
+
for (i2 = 0, l2 = iterable.length; i2 < l2; i2++)
|
|
304699
|
+
callback(iterable[i2], i2);
|
|
304700
|
+
return;
|
|
304701
|
+
}
|
|
304702
|
+
if (typeof iterable.forEach === "function") {
|
|
304703
|
+
iterable.forEach(callback);
|
|
304704
|
+
return;
|
|
304705
|
+
}
|
|
304706
|
+
if (SYMBOL_SUPPORT$1 && Symbol.iterator in iterable && typeof iterable.next !== "function") {
|
|
304707
|
+
iterable = iterable[Symbol.iterator]();
|
|
304708
|
+
}
|
|
304709
|
+
if (typeof iterable.next === "function") {
|
|
304710
|
+
iterator2 = iterable;
|
|
304711
|
+
i2 = 0;
|
|
304712
|
+
while (s2 = iterator2.next(), s2.done !== true) {
|
|
304713
|
+
callback(s2.value, i2);
|
|
304714
|
+
i2++;
|
|
304715
|
+
}
|
|
304716
|
+
return;
|
|
304717
|
+
}
|
|
304718
|
+
for (k2 in iterable) {
|
|
304719
|
+
if (iterable.hasOwnProperty(k2)) {
|
|
304720
|
+
callback(iterable[k2], k2);
|
|
304721
|
+
}
|
|
304722
|
+
}
|
|
304723
|
+
return;
|
|
304724
|
+
};
|
|
304725
|
+
var typedArrays = {};
|
|
304726
|
+
(function(exports3) {
|
|
304727
|
+
var MAX_8BIT_INTEGER = Math.pow(2, 8) - 1, MAX_16BIT_INTEGER = Math.pow(2, 16) - 1, MAX_32BIT_INTEGER = Math.pow(2, 32) - 1;
|
|
304728
|
+
var MAX_SIGNED_8BIT_INTEGER = Math.pow(2, 7) - 1, MAX_SIGNED_16BIT_INTEGER = Math.pow(2, 15) - 1, MAX_SIGNED_32BIT_INTEGER = Math.pow(2, 31) - 1;
|
|
304729
|
+
exports3.getPointerArray = function(size) {
|
|
304730
|
+
var maxIndex2 = size - 1;
|
|
304731
|
+
if (maxIndex2 <= MAX_8BIT_INTEGER)
|
|
304732
|
+
return Uint8Array;
|
|
304733
|
+
if (maxIndex2 <= MAX_16BIT_INTEGER)
|
|
304734
|
+
return Uint16Array;
|
|
304735
|
+
if (maxIndex2 <= MAX_32BIT_INTEGER)
|
|
304736
|
+
return Uint32Array;
|
|
304737
|
+
throw new Error("mnemonist: Pointer Array of size > 4294967295 is not supported.");
|
|
304738
|
+
};
|
|
304739
|
+
exports3.getSignedPointerArray = function(size) {
|
|
304740
|
+
var maxIndex2 = size - 1;
|
|
304741
|
+
if (maxIndex2 <= MAX_SIGNED_8BIT_INTEGER)
|
|
304742
|
+
return Int8Array;
|
|
304743
|
+
if (maxIndex2 <= MAX_SIGNED_16BIT_INTEGER)
|
|
304744
|
+
return Int16Array;
|
|
304745
|
+
if (maxIndex2 <= MAX_SIGNED_32BIT_INTEGER)
|
|
304746
|
+
return Int32Array;
|
|
304747
|
+
return Float64Array;
|
|
304748
|
+
};
|
|
304749
|
+
exports3.getNumberType = function(value) {
|
|
304750
|
+
if (value === (value | 0)) {
|
|
304751
|
+
if (Math.sign(value) === -1) {
|
|
304752
|
+
if (value <= 127 && value >= -128)
|
|
304753
|
+
return Int8Array;
|
|
304754
|
+
if (value <= 32767 && value >= -32768)
|
|
304755
|
+
return Int16Array;
|
|
304756
|
+
return Int32Array;
|
|
304757
|
+
} else {
|
|
304758
|
+
if (value <= 255)
|
|
304759
|
+
return Uint8Array;
|
|
304760
|
+
if (value <= 65535)
|
|
304761
|
+
return Uint16Array;
|
|
304762
|
+
return Uint32Array;
|
|
304763
|
+
}
|
|
304764
|
+
}
|
|
304765
|
+
return Float64Array;
|
|
304766
|
+
};
|
|
304767
|
+
var TYPE_PRIORITY = {
|
|
304768
|
+
Uint8Array: 1,
|
|
304769
|
+
Int8Array: 2,
|
|
304770
|
+
Uint16Array: 3,
|
|
304771
|
+
Int16Array: 4,
|
|
304772
|
+
Uint32Array: 5,
|
|
304773
|
+
Int32Array: 6,
|
|
304774
|
+
Float32Array: 7,
|
|
304775
|
+
Float64Array: 8
|
|
304776
|
+
};
|
|
304777
|
+
exports3.getMinimalRepresentation = function(array2, getter) {
|
|
304778
|
+
var maxType = null, maxPriority = 0, p2, t2, v2, i2, l2;
|
|
304779
|
+
for (i2 = 0, l2 = array2.length; i2 < l2; i2++) {
|
|
304780
|
+
v2 = getter ? getter(array2[i2]) : array2[i2];
|
|
304781
|
+
t2 = exports3.getNumberType(v2);
|
|
304782
|
+
p2 = TYPE_PRIORITY[t2.name];
|
|
304783
|
+
if (p2 > maxPriority) {
|
|
304784
|
+
maxPriority = p2;
|
|
304785
|
+
maxType = t2;
|
|
304786
|
+
}
|
|
304787
|
+
}
|
|
304788
|
+
return maxType;
|
|
304789
|
+
};
|
|
304790
|
+
exports3.isTypedArray = function(value) {
|
|
304791
|
+
return typeof ArrayBuffer !== "undefined" && ArrayBuffer.isView(value);
|
|
304792
|
+
};
|
|
304793
|
+
exports3.concat = function() {
|
|
304794
|
+
var length2 = 0, i2, o2, l2;
|
|
304795
|
+
for (i2 = 0, l2 = arguments.length; i2 < l2; i2++)
|
|
304796
|
+
length2 += arguments[i2].length;
|
|
304797
|
+
var array2 = new arguments[0].constructor(length2);
|
|
304798
|
+
for (i2 = 0, o2 = 0; i2 < l2; i2++) {
|
|
304799
|
+
array2.set(arguments[i2], o2);
|
|
304800
|
+
o2 += arguments[i2].length;
|
|
304801
|
+
}
|
|
304802
|
+
return array2;
|
|
304803
|
+
};
|
|
304804
|
+
exports3.indices = function(length2) {
|
|
304805
|
+
var PointerArray = exports3.getPointerArray(length2);
|
|
304806
|
+
var array2 = new PointerArray(length2);
|
|
304807
|
+
for (var i2 = 0; i2 < length2; i2++)
|
|
304808
|
+
array2[i2] = i2;
|
|
304809
|
+
return array2;
|
|
304810
|
+
};
|
|
304811
|
+
})(typedArrays);
|
|
304812
|
+
var forEach = foreach;
|
|
304813
|
+
var typed = typedArrays;
|
|
304814
|
+
function isArrayLike$1(target) {
|
|
304815
|
+
return Array.isArray(target) || typed.isTypedArray(target);
|
|
304816
|
+
}
|
|
304817
|
+
function guessLength(target) {
|
|
304818
|
+
if (typeof target.length === "number")
|
|
304819
|
+
return target.length;
|
|
304820
|
+
if (typeof target.size === "number")
|
|
304821
|
+
return target.size;
|
|
304822
|
+
return;
|
|
304823
|
+
}
|
|
304824
|
+
function toArray(target) {
|
|
304825
|
+
var l2 = guessLength(target);
|
|
304826
|
+
var array2 = typeof l2 === "number" ? new Array(l2) : [];
|
|
304827
|
+
var i2 = 0;
|
|
304828
|
+
forEach(target, function(value) {
|
|
304829
|
+
array2[i2++] = value;
|
|
304830
|
+
});
|
|
304831
|
+
return array2;
|
|
304832
|
+
}
|
|
304833
|
+
function toArrayWithIndices(target) {
|
|
304834
|
+
var l2 = guessLength(target);
|
|
304835
|
+
var IndexArray = typeof l2 === "number" ? typed.getPointerArray(l2) : Array;
|
|
304836
|
+
var array2 = typeof l2 === "number" ? new Array(l2) : [];
|
|
304837
|
+
var indices2 = typeof l2 === "number" ? new IndexArray(l2) : [];
|
|
304838
|
+
var i2 = 0;
|
|
304839
|
+
forEach(target, function(value) {
|
|
304840
|
+
array2[i2] = value;
|
|
304841
|
+
indices2[i2] = i2++;
|
|
304842
|
+
});
|
|
304843
|
+
return [array2, indices2];
|
|
304844
|
+
}
|
|
304845
|
+
iterables$1.isArrayLike = isArrayLike$1;
|
|
304846
|
+
iterables$1.guessLength = guessLength;
|
|
304847
|
+
iterables$1.toArray = toArray;
|
|
304848
|
+
iterables$1.toArrayWithIndices = toArrayWithIndices;
|
|
304849
|
+
function Iterator$3(next2) {
|
|
304850
|
+
if (typeof next2 !== "function")
|
|
304851
|
+
throw new Error("obliterator/iterator: expecting a function!");
|
|
304852
|
+
this.next = next2;
|
|
304853
|
+
}
|
|
304854
|
+
if (typeof Symbol !== "undefined")
|
|
304855
|
+
Iterator$3.prototype[Symbol.iterator] = function() {
|
|
304856
|
+
return this;
|
|
304857
|
+
};
|
|
304858
|
+
Iterator$3.of = function() {
|
|
304859
|
+
var args = arguments, l2 = args.length, i2 = 0;
|
|
304860
|
+
return new Iterator$3(function() {
|
|
304861
|
+
if (i2 >= l2)
|
|
304862
|
+
return { done: true };
|
|
304863
|
+
return { done: false, value: args[i2++] };
|
|
304864
|
+
});
|
|
304865
|
+
};
|
|
304866
|
+
Iterator$3.empty = function() {
|
|
304867
|
+
var iterator2 = new Iterator$3(function() {
|
|
304868
|
+
return { done: true };
|
|
304869
|
+
});
|
|
304870
|
+
return iterator2;
|
|
304871
|
+
};
|
|
304872
|
+
Iterator$3.fromSequence = function(sequence) {
|
|
304873
|
+
var i2 = 0, l2 = sequence.length;
|
|
304874
|
+
return new Iterator$3(function() {
|
|
304875
|
+
if (i2 >= l2)
|
|
304876
|
+
return { done: true };
|
|
304877
|
+
return { done: false, value: sequence[i2++] };
|
|
304878
|
+
});
|
|
304879
|
+
};
|
|
304880
|
+
Iterator$3.is = function(value) {
|
|
304881
|
+
if (value instanceof Iterator$3)
|
|
304882
|
+
return true;
|
|
304883
|
+
return typeof value === "object" && value !== null && typeof value.next === "function";
|
|
304884
|
+
};
|
|
304885
|
+
var iterator = Iterator$3;
|
|
304886
|
+
var iterables = iterables$1, Iterator$2 = iterator;
|
|
304887
|
+
function FixedDeque(ArrayClass, capacity) {
|
|
304888
|
+
if (arguments.length < 2)
|
|
304889
|
+
throw new Error("mnemonist/fixed-deque: expecting an Array class and a capacity.");
|
|
304890
|
+
if (typeof capacity !== "number" || capacity <= 0)
|
|
304891
|
+
throw new Error("mnemonist/fixed-deque: `capacity` should be a positive number.");
|
|
304892
|
+
this.ArrayClass = ArrayClass;
|
|
304893
|
+
this.capacity = capacity;
|
|
304894
|
+
this.items = new ArrayClass(this.capacity);
|
|
304895
|
+
this.clear();
|
|
304896
|
+
}
|
|
304897
|
+
FixedDeque.prototype.clear = function() {
|
|
304898
|
+
this.start = 0;
|
|
304899
|
+
this.size = 0;
|
|
304900
|
+
};
|
|
304901
|
+
FixedDeque.prototype.push = function(item) {
|
|
304902
|
+
if (this.size === this.capacity)
|
|
304903
|
+
throw new Error("mnemonist/fixed-deque.push: deque capacity (" + this.capacity + ") exceeded!");
|
|
304904
|
+
var index2 = (this.start + this.size) % this.capacity;
|
|
304905
|
+
this.items[index2] = item;
|
|
304906
|
+
return ++this.size;
|
|
304907
|
+
};
|
|
304908
|
+
FixedDeque.prototype.unshift = function(item) {
|
|
304909
|
+
if (this.size === this.capacity)
|
|
304910
|
+
throw new Error("mnemonist/fixed-deque.unshift: deque capacity (" + this.capacity + ") exceeded!");
|
|
304911
|
+
var index2 = this.start - 1;
|
|
304912
|
+
if (this.start === 0)
|
|
304913
|
+
index2 = this.capacity - 1;
|
|
304914
|
+
this.items[index2] = item;
|
|
304915
|
+
this.start = index2;
|
|
304916
|
+
return ++this.size;
|
|
304917
|
+
};
|
|
304918
|
+
FixedDeque.prototype.pop = function() {
|
|
304919
|
+
if (this.size === 0)
|
|
304920
|
+
return;
|
|
304921
|
+
const index2 = (this.start + this.size - 1) % this.capacity;
|
|
304922
|
+
this.size--;
|
|
304923
|
+
return this.items[index2];
|
|
304924
|
+
};
|
|
304925
|
+
FixedDeque.prototype.shift = function() {
|
|
304926
|
+
if (this.size === 0)
|
|
304927
|
+
return;
|
|
304928
|
+
var index2 = this.start;
|
|
304929
|
+
this.size--;
|
|
304930
|
+
this.start++;
|
|
304931
|
+
if (this.start === this.capacity)
|
|
304932
|
+
this.start = 0;
|
|
304933
|
+
return this.items[index2];
|
|
304934
|
+
};
|
|
304935
|
+
FixedDeque.prototype.peekFirst = function() {
|
|
304936
|
+
if (this.size === 0)
|
|
304937
|
+
return;
|
|
304938
|
+
return this.items[this.start];
|
|
304939
|
+
};
|
|
304940
|
+
FixedDeque.prototype.peekLast = function() {
|
|
304941
|
+
if (this.size === 0)
|
|
304942
|
+
return;
|
|
304943
|
+
var index2 = this.start + this.size - 1;
|
|
304944
|
+
if (index2 > this.capacity)
|
|
304945
|
+
index2 -= this.capacity;
|
|
304946
|
+
return this.items[index2];
|
|
304947
|
+
};
|
|
304948
|
+
FixedDeque.prototype.get = function(index2) {
|
|
304949
|
+
if (this.size === 0)
|
|
304950
|
+
return;
|
|
304951
|
+
index2 = this.start + index2;
|
|
304952
|
+
if (index2 > this.capacity)
|
|
304953
|
+
index2 -= this.capacity;
|
|
304954
|
+
return this.items[index2];
|
|
304955
|
+
};
|
|
304956
|
+
FixedDeque.prototype.forEach = function(callback, scope2) {
|
|
304957
|
+
scope2 = arguments.length > 1 ? scope2 : this;
|
|
304958
|
+
var c2 = this.capacity, l2 = this.size, i2 = this.start, j2 = 0;
|
|
304959
|
+
while (j2 < l2) {
|
|
304960
|
+
callback.call(scope2, this.items[i2], j2, this);
|
|
304961
|
+
i2++;
|
|
304962
|
+
j2++;
|
|
304963
|
+
if (i2 === c2)
|
|
304964
|
+
i2 = 0;
|
|
304965
|
+
}
|
|
304966
|
+
};
|
|
304967
|
+
FixedDeque.prototype.toArray = function() {
|
|
304968
|
+
var offset2 = this.start + this.size;
|
|
304969
|
+
if (offset2 < this.capacity)
|
|
304970
|
+
return this.items.slice(this.start, offset2);
|
|
304971
|
+
var array2 = new this.ArrayClass(this.size), c2 = this.capacity, l2 = this.size, i2 = this.start, j2 = 0;
|
|
304972
|
+
while (j2 < l2) {
|
|
304973
|
+
array2[j2] = this.items[i2];
|
|
304974
|
+
i2++;
|
|
304975
|
+
j2++;
|
|
304976
|
+
if (i2 === c2)
|
|
304977
|
+
i2 = 0;
|
|
304978
|
+
}
|
|
304979
|
+
return array2;
|
|
304980
|
+
};
|
|
304981
|
+
FixedDeque.prototype.values = function() {
|
|
304982
|
+
var items = this.items, c2 = this.capacity, l2 = this.size, i2 = this.start, j2 = 0;
|
|
304983
|
+
return new Iterator$2(function() {
|
|
304984
|
+
if (j2 >= l2)
|
|
304985
|
+
return {
|
|
304986
|
+
done: true
|
|
304987
|
+
};
|
|
304988
|
+
var value = items[i2];
|
|
304989
|
+
i2++;
|
|
304990
|
+
j2++;
|
|
304991
|
+
if (i2 === c2)
|
|
304992
|
+
i2 = 0;
|
|
304993
|
+
return {
|
|
304994
|
+
value,
|
|
304995
|
+
done: false
|
|
304996
|
+
};
|
|
304997
|
+
});
|
|
304998
|
+
};
|
|
304999
|
+
FixedDeque.prototype.entries = function() {
|
|
305000
|
+
var items = this.items, c2 = this.capacity, l2 = this.size, i2 = this.start, j2 = 0;
|
|
305001
|
+
return new Iterator$2(function() {
|
|
305002
|
+
if (j2 >= l2)
|
|
305003
|
+
return {
|
|
305004
|
+
done: true
|
|
305005
|
+
};
|
|
305006
|
+
var value = items[i2];
|
|
305007
|
+
i2++;
|
|
305008
|
+
if (i2 === c2)
|
|
305009
|
+
i2 = 0;
|
|
305010
|
+
return {
|
|
305011
|
+
value: [j2++, value],
|
|
305012
|
+
done: false
|
|
305013
|
+
};
|
|
305014
|
+
});
|
|
305015
|
+
};
|
|
305016
|
+
if (typeof Symbol !== "undefined")
|
|
305017
|
+
FixedDeque.prototype[Symbol.iterator] = FixedDeque.prototype.values;
|
|
305018
|
+
FixedDeque.prototype.inspect = function() {
|
|
305019
|
+
var array2 = this.toArray();
|
|
305020
|
+
array2.type = this.ArrayClass.name;
|
|
305021
|
+
array2.capacity = this.capacity;
|
|
305022
|
+
Object.defineProperty(array2, "constructor", {
|
|
305023
|
+
value: FixedDeque,
|
|
305024
|
+
enumerable: false
|
|
305025
|
+
});
|
|
305026
|
+
return array2;
|
|
305027
|
+
};
|
|
305028
|
+
if (typeof Symbol !== "undefined")
|
|
305029
|
+
FixedDeque.prototype[Symbol.for("nodejs.util.inspect.custom")] = FixedDeque.prototype.inspect;
|
|
305030
|
+
FixedDeque.from = function(iterable, ArrayClass, capacity) {
|
|
305031
|
+
if (arguments.length < 3) {
|
|
305032
|
+
capacity = iterables.guessLength(iterable);
|
|
305033
|
+
if (typeof capacity !== "number")
|
|
305034
|
+
throw new Error("mnemonist/fixed-deque.from: could not guess iterable length. Please provide desired capacity as last argument.");
|
|
305035
|
+
}
|
|
305036
|
+
var deque = new FixedDeque(ArrayClass, capacity);
|
|
305037
|
+
if (iterables.isArrayLike(iterable)) {
|
|
305038
|
+
var i2, l2;
|
|
305039
|
+
for (i2 = 0, l2 = iterable.length; i2 < l2; i2++)
|
|
305040
|
+
deque.items[i2] = iterable[i2];
|
|
305041
|
+
deque.size = l2;
|
|
305042
|
+
return deque;
|
|
305043
|
+
}
|
|
305044
|
+
iterables.forEach(iterable, function(value) {
|
|
305045
|
+
deque.push(value);
|
|
305046
|
+
});
|
|
305047
|
+
return deque;
|
|
305048
|
+
};
|
|
305049
|
+
var hasCycle = hasCycle$1;
|
|
304576
305050
|
function willCreateCycle(graphOriginal, edge) {
|
|
304577
305051
|
const graph = graphOriginal.copy();
|
|
304578
305052
|
try {
|
|
@@ -304618,6 +305092,18 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
304618
305092
|
}
|
|
304619
305093
|
return group2;
|
|
304620
305094
|
}
|
|
305095
|
+
function isDag(graph) {
|
|
305096
|
+
if (hasCycle(graph)) {
|
|
305097
|
+
return false;
|
|
305098
|
+
}
|
|
305099
|
+
const isDirected = graph.everyEdge((edge, attributes2) => {
|
|
305100
|
+
if (attributes2.edge_type !== EdgeType.DIRECTED_EDGE) {
|
|
305101
|
+
return false;
|
|
305102
|
+
}
|
|
305103
|
+
return true;
|
|
305104
|
+
});
|
|
305105
|
+
return isDirected;
|
|
305106
|
+
}
|
|
304621
305107
|
const DIRECTED_SYMBOLS = [EdgeType.DIRECTED_EDGE, EdgeType.BACKWARDS_DIRECTED_EDGE];
|
|
304622
305108
|
const symbolItems = [
|
|
304623
305109
|
{ label: "Directed", value: PagSymbol.ARROW },
|
|
@@ -304859,46 +305345,6 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
304859
305345
|
const showClass = props.showFrameButtons ? "show" : void 0;
|
|
304860
305346
|
return jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, { children: [jsxRuntime.exports.jsxs(TopDiv, { className: showClass, padding: controlPadding, children: [jsxRuntime.exports.jsx(TopLeftDiv, { onMouseEnter: onPanelEnter, onMouseLeave: onPanelExit, children: props.topLeft }), jsxRuntime.exports.jsx(TopRightDiv, { onMouseEnter: onPanelEnter, onMouseLeave: onPanelExit, children: props.topRight })] }), jsxRuntime.exports.jsxs(BottomDiv, { className: showClass, padding: controlPadding, children: [jsxRuntime.exports.jsx(BottomLeftDiv, { onMouseEnter: onPanelEnter, onMouseLeave: onPanelExit, children: props.bottomLeft }), jsxRuntime.exports.jsx(BottomRightDiv, { onMouseEnter: onPanelEnter, onMouseLeave: onPanelExit, children: props.bottomRight })] }), showPanel2 && props.validContentSelected && jsxRuntime.exports.jsx(PanelContent, { onDelete: props.onDelete, onMouseEnter: onPanelEnter, onMouseLeave: onPanelExit, onNext: props.onNext, onPrev: props.onPrev, title: props.title, children: (_a3 = props.children) !== null && _a3 !== void 0 ? _a3 : null })] });
|
|
304861
305347
|
}
|
|
304862
|
-
const FloatingButton = styled__default.default(Button$3).attrs((props) => {
|
|
304863
|
-
var _a3;
|
|
304864
|
-
return Object.assign(Object.assign({}, props), { styling: (_a3 = props.styling) !== null && _a3 !== void 0 ? _a3 : "ghost" });
|
|
304865
|
-
})`
|
|
304866
|
-
pointer-events: ${(props) => props.disableEvents ? "none" : "all"};
|
|
304867
|
-
min-width: 0;
|
|
304868
|
-
margin: 0;
|
|
304869
|
-
padding: 0 1rem;
|
|
304870
|
-
|
|
304871
|
-
${(props) => props.fixedSize ? "height: 40px; width: 40px;" : ""};
|
|
304872
|
-
|
|
304873
|
-
${(props) => props.styling === "ghost" ? `background-color: ${props.theme.colors.blue1}` : ""};
|
|
304874
|
-
${(props) => props.disableBoxShadow ? "" : `box-shadow: ${props.theme.shadow.light};`}
|
|
304875
|
-
`;
|
|
304876
|
-
function EditControls(props) {
|
|
304877
|
-
const { disableLatentNodeAdd, editorMode, editable: editable2 } = useSettings();
|
|
304878
|
-
const { disablePointerEvents } = React.useContext(pointerCtx);
|
|
304879
|
-
return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment, { children: editable2 && editorMode !== EditorMode.EDGE_ENCODER && !disableLatentNodeAdd && jsxRuntime.exports.jsx(Tooltip$1, { content: "Add Latent Node", placement: "bottom", children: jsxRuntime.exports.jsx(FloatingButton, { "aria-label": "Add Latent Node", disableEvents: disablePointerEvents, fixedSize: true, onClick: props.onAddNode, children: jsxRuntime.exports.jsx(Plus, {}) }) }) });
|
|
304880
|
-
}
|
|
304881
|
-
function CenterGraphButton(props) {
|
|
304882
|
-
const { disablePointerEvents } = React.useContext(pointerCtx);
|
|
304883
|
-
const theme2 = useClTheme();
|
|
304884
|
-
return jsxRuntime.exports.jsx(Tooltip$1, { content: "Center Graph", placement: "bottom", children: jsxRuntime.exports.jsx(FloatingButton, { "aria-label": "Center Graph", disableEvents: disablePointerEvents, fixedSize: true, onClick: props.onResetZoom, style: { padding: "0 0.75rem" }, children: jsxRuntime.exports.jsx("svg", { fill: "none", stroke: theme2.colors.grey4, strokeWidth: 2, style: {
|
|
304885
|
-
height: "100%",
|
|
304886
|
-
width: "100%"
|
|
304887
|
-
}, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", children: jsxRuntime.exports.jsx("path", { d: "M9 9V4.5M9 9H4.5M9 9L3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5l5.25 5.25", strokeLinecap: "round", strokeLinejoin: "round" }) }) }) });
|
|
304888
|
-
}
|
|
304889
|
-
function DragModeButton(props) {
|
|
304890
|
-
const { editable: editable2, disableEdgeAdd, allowNodeDrag } = useSettings();
|
|
304891
|
-
const { disablePointerEvents } = React.useContext(pointerCtx);
|
|
304892
|
-
const theme2 = useClTheme();
|
|
304893
|
-
const isMoveNode = props.dragMode === "move_node";
|
|
304894
|
-
return jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment, { children: editable2 && !disableEdgeAdd && allowNodeDrag && jsxRuntime.exports.jsx(Tooltip$1, { content: `Drag behaviour: ${isMoveNode ? "Node Move" : "Edge Creation"}. Press and hold Command or Control to switch mode temporarily`, placement: "bottom", children: jsxRuntime.exports.jsx(FloatingButton, { "aria-label": "Toggle drag behaviour", disableEvents: disablePointerEvents, fixedSize: true, onClick: () => props.setDragMode(isMoveNode ? "create_edge" : "move_node"), style: {
|
|
304895
|
-
color: isMoveNode ? theme2.colors.primary : theme2.colors.grey4
|
|
304896
|
-
}, children: jsxRuntime.exports.jsx(Arrows$1, {}) }) }) });
|
|
304897
|
-
}
|
|
304898
|
-
function RecalculateLayoutButton(props) {
|
|
304899
|
-
const { disablePointerEvents } = React.useContext(pointerCtx);
|
|
304900
|
-
return jsxRuntime.exports.jsx(Tooltip$1, { content: "Recalculate Layout", placement: "bottom", children: jsxRuntime.exports.jsx(FloatingButton, { "aria-label": "Recalculate Layout", disableEvents: disablePointerEvents, fixedSize: true, onClick: props.onResetLayout, children: jsxRuntime.exports.jsx(Refresh, {}) }) });
|
|
304901
|
-
}
|
|
304902
305348
|
const Results = styled__default.default.span`
|
|
304903
305349
|
pointer-events: none;
|
|
304904
305350
|
|
|
@@ -306269,10 +306715,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
306269
306715
|
})();
|
|
306270
306716
|
})(fontfaceobserver_standalone);
|
|
306271
306717
|
const FontFaceObserver = fontfaceobserver_standalone.exports;
|
|
306272
|
-
var isGraph$
|
|
306273
|
-
return value !== null && typeof value === "object" && typeof value.addUndirectedEdgeWithKey === "function" && typeof value.dropNode === "function" && typeof value.multi === "boolean";
|
|
306274
|
-
};
|
|
306275
|
-
var isGraph$6 = isGraph$7;
|
|
306718
|
+
var isGraph$6 = isGraph$8;
|
|
306276
306719
|
var DEFAULT_DIMENSIONS = ["x", "y"];
|
|
306277
306720
|
function assignLayout(graph, layout2, options) {
|
|
306278
306721
|
if (!isGraph$6(graph))
|
|
@@ -307542,39 +307985,65 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
307542
307985
|
return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
|
|
307543
307986
|
};
|
|
307544
307987
|
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
307545
|
-
var slice$1 = Array.prototype.slice;
|
|
307546
307988
|
var toStr$1 = Object.prototype.toString;
|
|
307989
|
+
var max$2 = Math.max;
|
|
307547
307990
|
var funcType = "[object Function]";
|
|
307991
|
+
var concatty = function concatty2(a2, b2) {
|
|
307992
|
+
var arr = [];
|
|
307993
|
+
for (var i2 = 0; i2 < a2.length; i2 += 1) {
|
|
307994
|
+
arr[i2] = a2[i2];
|
|
307995
|
+
}
|
|
307996
|
+
for (var j2 = 0; j2 < b2.length; j2 += 1) {
|
|
307997
|
+
arr[j2 + a2.length] = b2[j2];
|
|
307998
|
+
}
|
|
307999
|
+
return arr;
|
|
308000
|
+
};
|
|
308001
|
+
var slicy = function slicy2(arrLike, offset2) {
|
|
308002
|
+
var arr = [];
|
|
308003
|
+
for (var i2 = offset2 || 0, j2 = 0; i2 < arrLike.length; i2 += 1, j2 += 1) {
|
|
308004
|
+
arr[j2] = arrLike[i2];
|
|
308005
|
+
}
|
|
308006
|
+
return arr;
|
|
308007
|
+
};
|
|
308008
|
+
var joiny = function(arr, joiner) {
|
|
308009
|
+
var str = "";
|
|
308010
|
+
for (var i2 = 0; i2 < arr.length; i2 += 1) {
|
|
308011
|
+
str += arr[i2];
|
|
308012
|
+
if (i2 + 1 < arr.length) {
|
|
308013
|
+
str += joiner;
|
|
308014
|
+
}
|
|
308015
|
+
}
|
|
308016
|
+
return str;
|
|
308017
|
+
};
|
|
307548
308018
|
var implementation$1 = function bind2(that) {
|
|
307549
308019
|
var target = this;
|
|
307550
|
-
if (typeof target !== "function" || toStr$1.
|
|
308020
|
+
if (typeof target !== "function" || toStr$1.apply(target) !== funcType) {
|
|
307551
308021
|
throw new TypeError(ERROR_MESSAGE + target);
|
|
307552
308022
|
}
|
|
307553
|
-
var args =
|
|
308023
|
+
var args = slicy(arguments, 1);
|
|
307554
308024
|
var bound2;
|
|
307555
308025
|
var binder = function() {
|
|
307556
308026
|
if (this instanceof bound2) {
|
|
307557
308027
|
var result = target.apply(
|
|
307558
308028
|
this,
|
|
307559
|
-
args
|
|
308029
|
+
concatty(args, arguments)
|
|
307560
308030
|
);
|
|
307561
308031
|
if (Object(result) === result) {
|
|
307562
308032
|
return result;
|
|
307563
308033
|
}
|
|
307564
308034
|
return this;
|
|
307565
|
-
} else {
|
|
307566
|
-
return target.apply(
|
|
307567
|
-
that,
|
|
307568
|
-
args.concat(slice$1.call(arguments))
|
|
307569
|
-
);
|
|
307570
308035
|
}
|
|
308036
|
+
return target.apply(
|
|
308037
|
+
that,
|
|
308038
|
+
concatty(args, arguments)
|
|
308039
|
+
);
|
|
307571
308040
|
};
|
|
307572
|
-
var boundLength =
|
|
308041
|
+
var boundLength = max$2(0, target.length - args.length);
|
|
307573
308042
|
var boundArgs = [];
|
|
307574
308043
|
for (var i2 = 0; i2 < boundLength; i2++) {
|
|
307575
|
-
boundArgs
|
|
308044
|
+
boundArgs[i2] = "$" + i2;
|
|
307576
308045
|
}
|
|
307577
|
-
bound2 = Function("binder", "return function (" + boundArgs
|
|
308046
|
+
bound2 = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
307578
308047
|
if (target.prototype) {
|
|
307579
308048
|
var Empty = function Empty2() {
|
|
307580
308049
|
};
|
|
@@ -307586,39 +308055,38 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
307586
308055
|
};
|
|
307587
308056
|
var implementation = implementation$1;
|
|
307588
308057
|
var functionBind = Function.prototype.bind || implementation;
|
|
307589
|
-
var hasOwnProperty$4 = {}.hasOwnProperty;
|
|
307590
308058
|
var call = Function.prototype.call;
|
|
307591
|
-
var
|
|
307592
|
-
|
|
307593
|
-
|
|
308059
|
+
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
308060
|
+
var bind$1 = functionBind;
|
|
308061
|
+
var hasown = bind$1.call(call, $hasOwn);
|
|
307594
308062
|
var undefined$1;
|
|
307595
|
-
var $SyntaxError = SyntaxError;
|
|
308063
|
+
var $SyntaxError$1 = SyntaxError;
|
|
307596
308064
|
var $Function = Function;
|
|
307597
|
-
var $TypeError$
|
|
308065
|
+
var $TypeError$3 = TypeError;
|
|
307598
308066
|
var getEvalledConstructor = function(expressionSyntax) {
|
|
307599
308067
|
try {
|
|
307600
308068
|
return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
|
|
307601
308069
|
} catch (e3) {
|
|
307602
308070
|
}
|
|
307603
308071
|
};
|
|
307604
|
-
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
307605
|
-
if ($gOPD) {
|
|
308072
|
+
var $gOPD$1 = Object.getOwnPropertyDescriptor;
|
|
308073
|
+
if ($gOPD$1) {
|
|
307606
308074
|
try {
|
|
307607
|
-
$gOPD({}, "");
|
|
308075
|
+
$gOPD$1({}, "");
|
|
307608
308076
|
} catch (e3) {
|
|
307609
|
-
$gOPD = null;
|
|
308077
|
+
$gOPD$1 = null;
|
|
307610
308078
|
}
|
|
307611
308079
|
}
|
|
307612
308080
|
var throwTypeError = function() {
|
|
307613
|
-
throw new $TypeError$
|
|
308081
|
+
throw new $TypeError$3();
|
|
307614
308082
|
};
|
|
307615
|
-
var ThrowTypeError = $gOPD ? function() {
|
|
308083
|
+
var ThrowTypeError = $gOPD$1 ? function() {
|
|
307616
308084
|
try {
|
|
307617
308085
|
arguments.callee;
|
|
307618
308086
|
return throwTypeError;
|
|
307619
308087
|
} catch (calleeThrows) {
|
|
307620
308088
|
try {
|
|
307621
|
-
return $gOPD(arguments, "callee").get;
|
|
308089
|
+
return $gOPD$1(arguments, "callee").get;
|
|
307622
308090
|
} catch (gOPDthrows) {
|
|
307623
308091
|
return throwTypeError;
|
|
307624
308092
|
}
|
|
@@ -307686,10 +308154,10 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
307686
308154
|
"%String%": String,
|
|
307687
308155
|
"%StringIteratorPrototype%": hasSymbols && getProto ? getProto(""[Symbol.iterator]()) : undefined$1,
|
|
307688
308156
|
"%Symbol%": hasSymbols ? Symbol : undefined$1,
|
|
307689
|
-
"%SyntaxError%": $SyntaxError,
|
|
308157
|
+
"%SyntaxError%": $SyntaxError$1,
|
|
307690
308158
|
"%ThrowTypeError%": ThrowTypeError,
|
|
307691
308159
|
"%TypedArray%": TypedArray,
|
|
307692
|
-
"%TypeError%": $TypeError$
|
|
308160
|
+
"%TypeError%": $TypeError$3,
|
|
307693
308161
|
"%Uint8Array%": typeof Uint8Array === "undefined" ? undefined$1 : Uint8Array,
|
|
307694
308162
|
"%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined$1 : Uint8ClampedArray,
|
|
307695
308163
|
"%Uint16Array%": typeof Uint16Array === "undefined" ? undefined$1 : Uint16Array,
|
|
@@ -307783,7 +308251,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
307783
308251
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
307784
308252
|
};
|
|
307785
308253
|
var bind = functionBind;
|
|
307786
|
-
var hasOwn$1 =
|
|
308254
|
+
var hasOwn$1 = hasown;
|
|
307787
308255
|
var $concat$1 = bind.call(Function.call, Array.prototype.concat);
|
|
307788
308256
|
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
307789
308257
|
var $replace$1 = bind.call(Function.call, String.prototype.replace);
|
|
@@ -307795,9 +308263,9 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
307795
308263
|
var first = $strSlice(string2, 0, 1);
|
|
307796
308264
|
var last = $strSlice(string2, -1);
|
|
307797
308265
|
if (first === "%" && last !== "%") {
|
|
307798
|
-
throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
|
|
308266
|
+
throw new $SyntaxError$1("invalid intrinsic syntax, expected closing `%`");
|
|
307799
308267
|
} else if (last === "%" && first !== "%") {
|
|
307800
|
-
throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
|
|
308268
|
+
throw new $SyntaxError$1("invalid intrinsic syntax, expected opening `%`");
|
|
307801
308269
|
}
|
|
307802
308270
|
var result = [];
|
|
307803
308271
|
$replace$1(string2, rePropName$1, function(match2, number2, quote2, subString) {
|
|
@@ -307818,7 +308286,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
307818
308286
|
value = doEval(intrinsicName);
|
|
307819
308287
|
}
|
|
307820
308288
|
if (typeof value === "undefined" && !allowMissing) {
|
|
307821
|
-
throw new $TypeError$
|
|
308289
|
+
throw new $TypeError$3("intrinsic " + name2 + " exists, but is not available. Please file an issue!");
|
|
307822
308290
|
}
|
|
307823
308291
|
return {
|
|
307824
308292
|
alias,
|
|
@@ -307826,17 +308294,17 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
307826
308294
|
value
|
|
307827
308295
|
};
|
|
307828
308296
|
}
|
|
307829
|
-
throw new $SyntaxError("intrinsic " + name2 + " does not exist!");
|
|
308297
|
+
throw new $SyntaxError$1("intrinsic " + name2 + " does not exist!");
|
|
307830
308298
|
};
|
|
307831
308299
|
var getIntrinsic = function GetIntrinsic2(name2, allowMissing) {
|
|
307832
308300
|
if (typeof name2 !== "string" || name2.length === 0) {
|
|
307833
|
-
throw new $TypeError$
|
|
308301
|
+
throw new $TypeError$3("intrinsic name must be a non-empty string");
|
|
307834
308302
|
}
|
|
307835
308303
|
if (arguments.length > 1 && typeof allowMissing !== "boolean") {
|
|
307836
|
-
throw new $TypeError$
|
|
308304
|
+
throw new $TypeError$3('"allowMissing" argument must be a boolean');
|
|
307837
308305
|
}
|
|
307838
308306
|
if ($exec(/^%?[^%]*%?$/, name2) === null) {
|
|
307839
|
-
throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
308307
|
+
throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
|
|
307840
308308
|
}
|
|
307841
308309
|
var parts = stringToPath$3(name2);
|
|
307842
308310
|
var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
|
|
@@ -307854,7 +308322,7 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
307854
308322
|
var first = $strSlice(part, 0, 1);
|
|
307855
308323
|
var last = $strSlice(part, -1);
|
|
307856
308324
|
if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {
|
|
307857
|
-
throw new $SyntaxError("property names with quotes must have matching quotes");
|
|
308325
|
+
throw new $SyntaxError$1("property names with quotes must have matching quotes");
|
|
307858
308326
|
}
|
|
307859
308327
|
if (part === "constructor" || !isOwn) {
|
|
307860
308328
|
skipFurtherCaching = true;
|
|
@@ -307866,12 +308334,12 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
307866
308334
|
} else if (value != null) {
|
|
307867
308335
|
if (!(part in value)) {
|
|
307868
308336
|
if (!allowMissing) {
|
|
307869
|
-
throw new $TypeError$
|
|
308337
|
+
throw new $TypeError$3("base intrinsic for " + name2 + " exists, but the property is not available.");
|
|
307870
308338
|
}
|
|
307871
308339
|
return void 0;
|
|
307872
308340
|
}
|
|
307873
|
-
if ($gOPD && i2 + 1 >= parts.length) {
|
|
307874
|
-
var desc = $gOPD(value, part);
|
|
308341
|
+
if ($gOPD$1 && i2 + 1 >= parts.length) {
|
|
308342
|
+
var desc = $gOPD$1(value, part);
|
|
307875
308343
|
isOwn = !!desc;
|
|
307876
308344
|
if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
|
|
307877
308345
|
value = desc.get;
|
|
@@ -307890,41 +308358,157 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
307890
308358
|
return value;
|
|
307891
308359
|
};
|
|
307892
308360
|
var callBind$1 = { exports: {} };
|
|
308361
|
+
var GetIntrinsic$5 = getIntrinsic;
|
|
308362
|
+
var $defineProperty$1 = GetIntrinsic$5("%Object.defineProperty%", true);
|
|
308363
|
+
var hasPropertyDescriptors$1 = function hasPropertyDescriptors2() {
|
|
308364
|
+
if ($defineProperty$1) {
|
|
308365
|
+
try {
|
|
308366
|
+
$defineProperty$1({}, "a", { value: 1 });
|
|
308367
|
+
return true;
|
|
308368
|
+
} catch (e3) {
|
|
308369
|
+
return false;
|
|
308370
|
+
}
|
|
308371
|
+
}
|
|
308372
|
+
return false;
|
|
308373
|
+
};
|
|
308374
|
+
hasPropertyDescriptors$1.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
|
|
308375
|
+
if (!hasPropertyDescriptors$1()) {
|
|
308376
|
+
return null;
|
|
308377
|
+
}
|
|
308378
|
+
try {
|
|
308379
|
+
return $defineProperty$1([], "length", { value: 1 }).length !== 1;
|
|
308380
|
+
} catch (e3) {
|
|
308381
|
+
return true;
|
|
308382
|
+
}
|
|
308383
|
+
};
|
|
308384
|
+
var hasPropertyDescriptors_1 = hasPropertyDescriptors$1;
|
|
308385
|
+
var GetIntrinsic$4 = getIntrinsic;
|
|
308386
|
+
var $gOPD = GetIntrinsic$4("%Object.getOwnPropertyDescriptor%", true);
|
|
308387
|
+
if ($gOPD) {
|
|
308388
|
+
try {
|
|
308389
|
+
$gOPD([], "length");
|
|
308390
|
+
} catch (e3) {
|
|
308391
|
+
$gOPD = null;
|
|
308392
|
+
}
|
|
308393
|
+
}
|
|
308394
|
+
var gopd$1 = $gOPD;
|
|
308395
|
+
var hasPropertyDescriptors = hasPropertyDescriptors_1();
|
|
308396
|
+
var GetIntrinsic$3 = getIntrinsic;
|
|
308397
|
+
var $defineProperty = hasPropertyDescriptors && GetIntrinsic$3("%Object.defineProperty%", true);
|
|
308398
|
+
if ($defineProperty) {
|
|
308399
|
+
try {
|
|
308400
|
+
$defineProperty({}, "a", { value: 1 });
|
|
308401
|
+
} catch (e3) {
|
|
308402
|
+
$defineProperty = false;
|
|
308403
|
+
}
|
|
308404
|
+
}
|
|
308405
|
+
var $SyntaxError = GetIntrinsic$3("%SyntaxError%");
|
|
308406
|
+
var $TypeError$2 = GetIntrinsic$3("%TypeError%");
|
|
308407
|
+
var gopd = gopd$1;
|
|
308408
|
+
var defineDataProperty = function defineDataProperty2(obj, property, value) {
|
|
308409
|
+
if (!obj || typeof obj !== "object" && typeof obj !== "function") {
|
|
308410
|
+
throw new $TypeError$2("`obj` must be an object or a function`");
|
|
308411
|
+
}
|
|
308412
|
+
if (typeof property !== "string" && typeof property !== "symbol") {
|
|
308413
|
+
throw new $TypeError$2("`property` must be a string or a symbol`");
|
|
308414
|
+
}
|
|
308415
|
+
if (arguments.length > 3 && typeof arguments[3] !== "boolean" && arguments[3] !== null) {
|
|
308416
|
+
throw new $TypeError$2("`nonEnumerable`, if provided, must be a boolean or null");
|
|
308417
|
+
}
|
|
308418
|
+
if (arguments.length > 4 && typeof arguments[4] !== "boolean" && arguments[4] !== null) {
|
|
308419
|
+
throw new $TypeError$2("`nonWritable`, if provided, must be a boolean or null");
|
|
308420
|
+
}
|
|
308421
|
+
if (arguments.length > 5 && typeof arguments[5] !== "boolean" && arguments[5] !== null) {
|
|
308422
|
+
throw new $TypeError$2("`nonConfigurable`, if provided, must be a boolean or null");
|
|
308423
|
+
}
|
|
308424
|
+
if (arguments.length > 6 && typeof arguments[6] !== "boolean") {
|
|
308425
|
+
throw new $TypeError$2("`loose`, if provided, must be a boolean");
|
|
308426
|
+
}
|
|
308427
|
+
var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
|
|
308428
|
+
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
|
308429
|
+
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
|
308430
|
+
var loose = arguments.length > 6 ? arguments[6] : false;
|
|
308431
|
+
var desc = !!gopd && gopd(obj, property);
|
|
308432
|
+
if ($defineProperty) {
|
|
308433
|
+
$defineProperty(obj, property, {
|
|
308434
|
+
configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
|
|
308435
|
+
enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
|
|
308436
|
+
value,
|
|
308437
|
+
writable: nonWritable === null && desc ? desc.writable : !nonWritable
|
|
308438
|
+
});
|
|
308439
|
+
} else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) {
|
|
308440
|
+
obj[property] = value;
|
|
308441
|
+
} else {
|
|
308442
|
+
throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
308443
|
+
}
|
|
308444
|
+
};
|
|
308445
|
+
var GetIntrinsic$2 = getIntrinsic;
|
|
308446
|
+
var define$4 = defineDataProperty;
|
|
308447
|
+
var hasDescriptors = hasPropertyDescriptors_1();
|
|
308448
|
+
var gOPD = gopd$1;
|
|
308449
|
+
var $TypeError$1 = GetIntrinsic$2("%TypeError%");
|
|
308450
|
+
var $floor$1 = GetIntrinsic$2("%Math.floor%");
|
|
308451
|
+
var setFunctionLength = function setFunctionLength2(fn2, length2) {
|
|
308452
|
+
if (typeof fn2 !== "function") {
|
|
308453
|
+
throw new $TypeError$1("`fn` is not a function");
|
|
308454
|
+
}
|
|
308455
|
+
if (typeof length2 !== "number" || length2 < 0 || length2 > 4294967295 || $floor$1(length2) !== length2) {
|
|
308456
|
+
throw new $TypeError$1("`length` must be a positive 32-bit integer");
|
|
308457
|
+
}
|
|
308458
|
+
var loose = arguments.length > 2 && !!arguments[2];
|
|
308459
|
+
var functionLengthIsConfigurable = true;
|
|
308460
|
+
var functionLengthIsWritable = true;
|
|
308461
|
+
if ("length" in fn2 && gOPD) {
|
|
308462
|
+
var desc = gOPD(fn2, "length");
|
|
308463
|
+
if (desc && !desc.configurable) {
|
|
308464
|
+
functionLengthIsConfigurable = false;
|
|
308465
|
+
}
|
|
308466
|
+
if (desc && !desc.writable) {
|
|
308467
|
+
functionLengthIsWritable = false;
|
|
308468
|
+
}
|
|
308469
|
+
}
|
|
308470
|
+
if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
|
|
308471
|
+
if (hasDescriptors) {
|
|
308472
|
+
define$4(fn2, "length", length2, true, true);
|
|
308473
|
+
} else {
|
|
308474
|
+
define$4(fn2, "length", length2);
|
|
308475
|
+
}
|
|
308476
|
+
}
|
|
308477
|
+
return fn2;
|
|
308478
|
+
};
|
|
307893
308479
|
(function(module2) {
|
|
307894
308480
|
var bind2 = functionBind;
|
|
307895
308481
|
var GetIntrinsic2 = getIntrinsic;
|
|
308482
|
+
var setFunctionLength$1 = setFunctionLength;
|
|
308483
|
+
var $TypeError2 = GetIntrinsic2("%TypeError%");
|
|
307896
308484
|
var $apply = GetIntrinsic2("%Function.prototype.apply%");
|
|
307897
308485
|
var $call = GetIntrinsic2("%Function.prototype.call%");
|
|
307898
308486
|
var $reflectApply = GetIntrinsic2("%Reflect.apply%", true) || bind2.call($call, $apply);
|
|
307899
|
-
var $
|
|
307900
|
-
var $defineProperty = GetIntrinsic2("%Object.defineProperty%", true);
|
|
308487
|
+
var $defineProperty2 = GetIntrinsic2("%Object.defineProperty%", true);
|
|
307901
308488
|
var $max = GetIntrinsic2("%Math.max%");
|
|
307902
|
-
if ($
|
|
308489
|
+
if ($defineProperty2) {
|
|
307903
308490
|
try {
|
|
307904
|
-
$
|
|
308491
|
+
$defineProperty2({}, "a", { value: 1 });
|
|
307905
308492
|
} catch (e3) {
|
|
307906
|
-
$
|
|
308493
|
+
$defineProperty2 = null;
|
|
307907
308494
|
}
|
|
307908
308495
|
}
|
|
307909
308496
|
module2.exports = function callBind2(originalFunction) {
|
|
307910
|
-
|
|
307911
|
-
|
|
307912
|
-
var desc = $gOPD2(func, "length");
|
|
307913
|
-
if (desc.configurable) {
|
|
307914
|
-
$defineProperty(
|
|
307915
|
-
func,
|
|
307916
|
-
"length",
|
|
307917
|
-
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
|
307918
|
-
);
|
|
307919
|
-
}
|
|
308497
|
+
if (typeof originalFunction !== "function") {
|
|
308498
|
+
throw new $TypeError2("a function is required");
|
|
307920
308499
|
}
|
|
307921
|
-
|
|
308500
|
+
var func = $reflectApply(bind2, $call, arguments);
|
|
308501
|
+
return setFunctionLength$1(
|
|
308502
|
+
func,
|
|
308503
|
+
1 + $max(0, originalFunction.length - (arguments.length - 1)),
|
|
308504
|
+
true
|
|
308505
|
+
);
|
|
307922
308506
|
};
|
|
307923
308507
|
var applyBind = function applyBind2() {
|
|
307924
308508
|
return $reflectApply(bind2, $apply, arguments);
|
|
307925
308509
|
};
|
|
307926
|
-
if ($
|
|
307927
|
-
$
|
|
308510
|
+
if ($defineProperty2) {
|
|
308511
|
+
$defineProperty2(module2.exports, "apply", { value: applyBind });
|
|
307928
308512
|
} else {
|
|
307929
308513
|
module2.exports.apply = applyBind;
|
|
307930
308514
|
}
|
|
@@ -308158,6 +308742,12 @@ You must set sticky: 'left' | 'right' for the '${bugWithUnderColumnsSticky.Heade
|
|
|
308158
308742
|
if (isString(obj)) {
|
|
308159
308743
|
return markBoxed(inspect2(String(obj)));
|
|
308160
308744
|
}
|
|
308745
|
+
if (typeof window !== "undefined" && obj === window) {
|
|
308746
|
+
return "{ [object Window] }";
|
|
308747
|
+
}
|
|
308748
|
+
if (obj === commonjsGlobal) {
|
|
308749
|
+
return "{ [object globalThis] }";
|
|
308750
|
+
}
|
|
308161
308751
|
if (!isDate(obj) && !isRegExp$1(obj)) {
|
|
308162
308752
|
var ys = arrObjKeys(obj, inspect2);
|
|
308163
308753
|
var isPlainObject2 = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
@@ -337481,48 +338071,8 @@ ${e3}`);
|
|
|
337481
338071
|
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter);
|
|
337482
338072
|
}
|
|
337483
338073
|
}
|
|
337484
|
-
function Iterator$2(next2) {
|
|
337485
|
-
if (typeof next2 !== "function")
|
|
337486
|
-
throw new Error("obliterator/iterator: expecting a function!");
|
|
337487
|
-
this.next = next2;
|
|
337488
|
-
}
|
|
337489
|
-
if (typeof Symbol !== "undefined")
|
|
337490
|
-
Iterator$2.prototype[Symbol.iterator] = function() {
|
|
337491
|
-
return this;
|
|
337492
|
-
};
|
|
337493
|
-
Iterator$2.of = function() {
|
|
337494
|
-
var args = arguments, l2 = args.length, i2 = 0;
|
|
337495
|
-
return new Iterator$2(function() {
|
|
337496
|
-
if (i2 >= l2)
|
|
337497
|
-
return { done: true };
|
|
337498
|
-
return { done: false, value: args[i2++] };
|
|
337499
|
-
});
|
|
337500
|
-
};
|
|
337501
|
-
Iterator$2.empty = function() {
|
|
337502
|
-
var iterator2 = new Iterator$2(function() {
|
|
337503
|
-
return { done: true };
|
|
337504
|
-
});
|
|
337505
|
-
return iterator2;
|
|
337506
|
-
};
|
|
337507
|
-
Iterator$2.fromSequence = function(sequence) {
|
|
337508
|
-
var i2 = 0, l2 = sequence.length;
|
|
337509
|
-
return new Iterator$2(function() {
|
|
337510
|
-
if (i2 >= l2)
|
|
337511
|
-
return { done: true };
|
|
337512
|
-
return { done: false, value: sequence[i2++] };
|
|
337513
|
-
});
|
|
337514
|
-
};
|
|
337515
|
-
Iterator$2.is = function(value) {
|
|
337516
|
-
if (value instanceof Iterator$2)
|
|
337517
|
-
return true;
|
|
337518
|
-
return typeof value === "object" && value !== null && typeof value.next === "function";
|
|
337519
|
-
};
|
|
337520
|
-
var iterator = Iterator$2;
|
|
337521
|
-
var support$1 = {};
|
|
337522
|
-
support$1.ARRAY_BUFFER_SUPPORT = typeof ArrayBuffer !== "undefined";
|
|
337523
|
-
support$1.SYMBOL_SUPPORT = typeof Symbol !== "undefined";
|
|
337524
338074
|
var Iterator$1 = iterator;
|
|
337525
|
-
var support = support$
|
|
338075
|
+
var support = support$2;
|
|
337526
338076
|
var ARRAY_BUFFER_SUPPORT = support.ARRAY_BUFFER_SUPPORT;
|
|
337527
338077
|
var SYMBOL_SUPPORT = support.SYMBOL_SUPPORT;
|
|
337528
338078
|
function iterOrNull(target) {
|
|
@@ -337563,7 +338113,7 @@ ${e3}`);
|
|
|
337563
338113
|
var Iterator = iterator;
|
|
337564
338114
|
var iter = iter$2;
|
|
337565
338115
|
var chain = function chain2() {
|
|
337566
|
-
var
|
|
338116
|
+
var iterables2 = arguments;
|
|
337567
338117
|
var current = null;
|
|
337568
338118
|
var i2 = -1;
|
|
337569
338119
|
return new Iterator(function next2() {
|
|
@@ -337571,9 +338121,9 @@ ${e3}`);
|
|
|
337571
338121
|
do {
|
|
337572
338122
|
if (current === null) {
|
|
337573
338123
|
i2++;
|
|
337574
|
-
if (i2 >=
|
|
338124
|
+
if (i2 >= iterables2.length)
|
|
337575
338125
|
return { done: true };
|
|
337576
|
-
current = iter(
|
|
338126
|
+
current = iter(iterables2[i2]);
|
|
337577
338127
|
}
|
|
337578
338128
|
step2 = current.next();
|
|
337579
338129
|
if (step2.done === true) {
|
|
@@ -341628,7 +342178,7 @@ ${e3}`);
|
|
|
341628
342178
|
shuffleInPlace.createShuffleInPlace = createShuffleInPlace;
|
|
341629
342179
|
var shuffleInPlace_1 = shuffleInPlace;
|
|
341630
342180
|
var resolveDefaults$3 = defaults$j;
|
|
341631
|
-
var isGraph$5 = isGraph$
|
|
342181
|
+
var isGraph$5 = isGraph$8;
|
|
341632
342182
|
var shuffle = shuffleInPlace_1;
|
|
341633
342183
|
var DEFAULTS$3 = {
|
|
341634
342184
|
attributes: {
|
|
@@ -341957,7 +342507,7 @@ ${e3}`);
|
|
|
341957
342507
|
var circlePackLayout = genericCirclePackLayout.bind(null, false);
|
|
341958
342508
|
circlePackLayout.assign = genericCirclePackLayout.bind(null, true);
|
|
341959
342509
|
var resolveDefaults$2 = defaults$j;
|
|
341960
|
-
var isGraph$4 = isGraph$
|
|
342510
|
+
var isGraph$4 = isGraph$8;
|
|
341961
342511
|
var DEFAULTS$2 = {
|
|
341962
342512
|
dimensions: ["x", "y"],
|
|
341963
342513
|
center: 0.5,
|
|
@@ -342006,7 +342556,7 @@ ${e3}`);
|
|
|
342006
342556
|
circularLayout.assign = genericCircularLayout.bind(null, true);
|
|
342007
342557
|
var circular$1 = circularLayout;
|
|
342008
342558
|
var resolveDefaults$1 = defaults$j;
|
|
342009
|
-
var isGraph$3 = isGraph$
|
|
342559
|
+
var isGraph$3 = isGraph$8;
|
|
342010
342560
|
var DEFAULTS$1 = {
|
|
342011
342561
|
dimensions: ["x", "y"],
|
|
342012
342562
|
center: 0.5,
|
|
@@ -342054,7 +342604,7 @@ ${e3}`);
|
|
|
342054
342604
|
randomLayout.assign = genericRandomLayout.bind(null, true);
|
|
342055
342605
|
var random$1 = randomLayout;
|
|
342056
342606
|
var resolveDefaults = defaults$j;
|
|
342057
|
-
var isGraph$2 = isGraph$
|
|
342607
|
+
var isGraph$2 = isGraph$8;
|
|
342058
342608
|
var RAD_CONVERSION = Math.PI / 180;
|
|
342059
342609
|
var DEFAULTS = {
|
|
342060
342610
|
dimensions: ["x", "y"],
|
|
@@ -342829,7 +343379,7 @@ ${e3}`);
|
|
|
342829
343379
|
barnesHutOptimize: false,
|
|
342830
343380
|
barnesHutTheta: 0.5
|
|
342831
343381
|
};
|
|
342832
|
-
var isGraph$1 = isGraph$
|
|
343382
|
+
var isGraph$1 = isGraph$8;
|
|
342833
343383
|
var createEdgeWeightGetter = getters.createEdgeWeightGetter;
|
|
342834
343384
|
var iterate$2 = iterate$3;
|
|
342835
343385
|
var helpers$2 = helpers$3;
|
|
@@ -343070,7 +343620,7 @@ ${e3}`);
|
|
|
343070
343620
|
ratio: 1,
|
|
343071
343621
|
speed: 3
|
|
343072
343622
|
};
|
|
343073
|
-
var isGraph = isGraph$
|
|
343623
|
+
var isGraph = isGraph$8;
|
|
343074
343624
|
var iterate = iterate$1;
|
|
343075
343625
|
var helpers = helpers$1;
|
|
343076
343626
|
var DEFAULT_SETTINGS = defaults$h;
|
|
@@ -344559,7 +345109,7 @@ ${e3}`);
|
|
|
344559
345109
|
}
|
|
344560
345110
|
}, {
|
|
344561
345111
|
key: "forEach",
|
|
344562
|
-
value: function
|
|
345112
|
+
value: function forEach2(callback, thisArg) {
|
|
344563
345113
|
return this.toArray().forEach(callback, thisArg);
|
|
344564
345114
|
}
|
|
344565
345115
|
}]);
|
|
@@ -352334,7 +352884,7 @@ ${e3}`);
|
|
|
352334
352884
|
return a2.poolIndex() - b2.poolIndex();
|
|
352335
352885
|
};
|
|
352336
352886
|
var elesfn$6 = {
|
|
352337
|
-
forEach: function
|
|
352887
|
+
forEach: function forEach2(fn2, thisArg) {
|
|
352338
352888
|
if (fn$6(fn2)) {
|
|
352339
352889
|
var N2 = this.length;
|
|
352340
352890
|
for (var i2 = 0; i2 < N2; i2++) {
|
|
@@ -366493,8 +367043,8 @@ ${e3}`);
|
|
|
366493
367043
|
var nodeTW = nodeW + (getIndexedStyle(node2, "background-width-relative-to", "value", index2) === "inner" ? 0 : paddingX2);
|
|
366494
367044
|
var nodeTH = nodeH + (getIndexedStyle(node2, "background-height-relative-to", "value", index2) === "inner" ? 0 : paddingX2);
|
|
366495
367045
|
var rs = node2._private.rscratch;
|
|
366496
|
-
var
|
|
366497
|
-
var shouldClip =
|
|
367046
|
+
var clip2 = getIndexedStyle(node2, "background-clip", "value", index2);
|
|
367047
|
+
var shouldClip = clip2 === "node";
|
|
366498
367048
|
var imgOpacity = getIndexedStyle(node2, "background-image-opacity", "value", index2) * nodeOpacity;
|
|
366499
367049
|
var smooth = getIndexedStyle(node2, "background-image-smoothing", "value", index2);
|
|
366500
367050
|
var imgW = img.width || img.cachedW;
|
|
@@ -381491,7 +382041,7 @@ void main(void){
|
|
|
381491
382041
|
}
|
|
381492
382042
|
}
|
|
381493
382043
|
function createSideSymbol(style2, position2, tint, bgTint) {
|
|
381494
|
-
var _a3;
|
|
382044
|
+
var _a3, _b;
|
|
381495
382045
|
const gfx = new SmoothGraphics();
|
|
381496
382046
|
const color2 = tint;
|
|
381497
382047
|
if ([EditorMode.RESOLVER, EditorMode.DEFAULT, EditorMode.EDGE_ENCODER].includes(style2.editorMode)) {
|
|
@@ -381504,7 +382054,16 @@ void main(void){
|
|
|
381504
382054
|
}
|
|
381505
382055
|
}
|
|
381506
382056
|
if (style2.editorMode === EditorMode.EDGE_ENCODER) {
|
|
381507
|
-
if (((_a3 = style2.constraint) === null || _a3 === void 0 ? void 0 : _a3.type)
|
|
382057
|
+
if (((_a3 = style2.constraint) === null || _a3 === void 0 ? void 0 : _a3.type) === EdgeConstraintType.SOFT_DIRECTED) {
|
|
382058
|
+
gfx.lineStyle({
|
|
382059
|
+
cap: LINE_CAP.ROUND,
|
|
382060
|
+
color: color2,
|
|
382061
|
+
width: 2
|
|
382062
|
+
});
|
|
382063
|
+
gfx.arc(0, 0, 8, 0, Math.PI, false);
|
|
382064
|
+
return gfx;
|
|
382065
|
+
}
|
|
382066
|
+
if (((_b = style2.constraint) === null || _b === void 0 ? void 0 : _b.type) !== EdgeConstraintType.HARD_DIRECTED) {
|
|
381508
382067
|
return gfx;
|
|
381509
382068
|
}
|
|
381510
382069
|
}
|
|
@@ -382999,13 +383558,10 @@ ${letters.join("\n")}`;
|
|
|
382999
383558
|
return [newKey, val];
|
|
383000
383559
|
}));
|
|
383001
383560
|
const _b = (_a3 = attributes2.extras) !== null && _a3 !== void 0 ? _a3 : {}, { meta: newMeta } = _b, restExtras = __rest$2(_b, ["meta"]);
|
|
383002
|
-
const output2 = Object.assign({ edge_type: attributes2.edge_type, meta: Object.assign(Object.assign(Object.assign({}, attributes2.originalMeta), newMeta), { rendering_properties: unflattenedMeta }) }, restExtras)
|
|
383003
|
-
|
|
383004
|
-
|
|
383005
|
-
}
|
|
383006
|
-
if (destination) {
|
|
383007
|
-
output2.destination = destination;
|
|
383008
|
-
}
|
|
383561
|
+
const output2 = Object.assign(Object.assign({ edge_type: attributes2.edge_type, meta: Object.assign(Object.assign(Object.assign({}, attributes2.originalMeta), newMeta), { rendering_properties: unflattenedMeta }) }, restExtras), {
|
|
383562
|
+
destination,
|
|
383563
|
+
source
|
|
383564
|
+
});
|
|
383009
383565
|
if (output2.edge_type === EdgeType.BACKWARDS_DIRECTED_EDGE) {
|
|
383010
383566
|
output2.edge_type = EdgeType.DIRECTED_EDGE;
|
|
383011
383567
|
if (output2.source) {
|
|
@@ -383017,7 +383573,7 @@ ${letters.join("\n")}`;
|
|
|
383017
383573
|
}
|
|
383018
383574
|
return output2;
|
|
383019
383575
|
}
|
|
383020
|
-
function serializeGraphNode(attributes2
|
|
383576
|
+
function serializeGraphNode(attributes2) {
|
|
383021
383577
|
var _a3;
|
|
383022
383578
|
const entries = Object.entries(attributes2);
|
|
383023
383579
|
const unflattenedMeta = Object.fromEntries(entries.filter(([key]) => isPrefixed(key)).map(([key, val]) => {
|
|
@@ -383025,19 +383581,30 @@ ${letters.join("\n")}`;
|
|
|
383025
383581
|
return [newKey, val];
|
|
383026
383582
|
}));
|
|
383027
383583
|
const _b = (_a3 = attributes2.extras) !== null && _a3 !== void 0 ? _a3 : {}, { meta: newMeta } = _b, restExtras = __rest$2(_b, ["meta"]);
|
|
383028
|
-
const output2 = Object.assign({ meta: Object.assign(Object.assign(Object.assign({}, attributes2.originalMeta), newMeta), { rendering_properties: unflattenedMeta }), variable_type: attributes2.variable_type }, restExtras);
|
|
383029
|
-
if (includeIdentifier) {
|
|
383030
|
-
output2.identifier = attributes2.id;
|
|
383031
|
-
}
|
|
383584
|
+
const output2 = Object.assign(Object.assign({ meta: Object.assign(Object.assign(Object.assign({}, attributes2.originalMeta), newMeta), { rendering_properties: unflattenedMeta }), variable_type: attributes2.variable_type }, restExtras), { identifier: attributes2.id });
|
|
383032
383585
|
return output2;
|
|
383033
383586
|
}
|
|
383034
383587
|
function causalGraphSerializer(state) {
|
|
383588
|
+
const nodes = state.graph.reduceNodes((acc, id2, attributes2) => {
|
|
383589
|
+
var _a3;
|
|
383590
|
+
const entries = Object.entries(attributes2);
|
|
383591
|
+
const unflattenedMeta = Object.fromEntries(entries.filter(([key]) => isPrefixed(key)).map(([key, val]) => {
|
|
383592
|
+
const newKey = removeNodePrefix(key);
|
|
383593
|
+
return [newKey, val];
|
|
383594
|
+
}));
|
|
383595
|
+
const _b = (_a3 = attributes2.extras) !== null && _a3 !== void 0 ? _a3 : {}, { meta: newMeta } = _b, restExtras = __rest$2(_b, ["meta"]);
|
|
383596
|
+
acc[id2] = Object.assign(Object.assign({ meta: Object.assign(Object.assign(Object.assign({}, attributes2.originalMeta), newMeta), { rendering_properties: unflattenedMeta }), variable_type: attributes2.variable_type }, restExtras), { identifier: attributes2.id });
|
|
383597
|
+
return acc;
|
|
383598
|
+
}, {});
|
|
383035
383599
|
const edges = state.graph.reduceEdges((acc, id2, attributes2, source, target) => {
|
|
383036
|
-
const serializedEdge = serializeGraphEdge(attributes2);
|
|
383600
|
+
const serializedEdge = serializeGraphEdge(attributes2, nodes[source], nodes[target]);
|
|
383037
383601
|
if (attributes2.edge_type === EdgeType.BACKWARDS_DIRECTED_EDGE) {
|
|
383038
383602
|
if (!(target in acc)) {
|
|
383039
383603
|
acc[target] = {};
|
|
383040
383604
|
}
|
|
383605
|
+
const temp = serializedEdge.destination;
|
|
383606
|
+
serializedEdge.destination = serializedEdge.source;
|
|
383607
|
+
serializedEdge.source = temp;
|
|
383041
383608
|
acc[target][source] = serializedEdge;
|
|
383042
383609
|
} else {
|
|
383043
383610
|
if (!(source in acc)) {
|
|
@@ -383047,17 +383614,6 @@ ${letters.join("\n")}`;
|
|
|
383047
383614
|
}
|
|
383048
383615
|
return acc;
|
|
383049
383616
|
}, {});
|
|
383050
|
-
const nodes = state.graph.reduceNodes((acc, id2, attributes2) => {
|
|
383051
|
-
var _a3;
|
|
383052
|
-
const entries = Object.entries(attributes2);
|
|
383053
|
-
const unflattenedMeta = Object.fromEntries(entries.filter(([key]) => isPrefixed(key)).map(([key, val]) => {
|
|
383054
|
-
const newKey = removeNodePrefix(key);
|
|
383055
|
-
return [newKey, val];
|
|
383056
|
-
}));
|
|
383057
|
-
const _b = (_a3 = attributes2.extras) !== null && _a3 !== void 0 ? _a3 : {}, { meta: newMeta } = _b, restExtras = __rest$2(_b, ["meta"]);
|
|
383058
|
-
acc[id2] = Object.assign({ meta: Object.assign(Object.assign(Object.assign({}, attributes2.originalMeta), newMeta), { rendering_properties: unflattenedMeta }), variable_type: attributes2.variable_type }, restExtras);
|
|
383059
|
-
return acc;
|
|
383060
|
-
}, {});
|
|
383061
383617
|
return Object.assign({
|
|
383062
383618
|
edges,
|
|
383063
383619
|
nodes,
|
|
@@ -383342,7 +383898,8 @@ ${letters.join("\n")}`;
|
|
|
383342
383898
|
return constraints.map((c2) => {
|
|
383343
383899
|
let constraintType = c2.type;
|
|
383344
383900
|
switch (constraintType) {
|
|
383345
|
-
case EdgeConstraintType.
|
|
383901
|
+
case EdgeConstraintType.HARD_DIRECTED:
|
|
383902
|
+
case EdgeConstraintType.SOFT_DIRECTED:
|
|
383346
383903
|
case EdgeConstraintType.FORBIDDEN:
|
|
383347
383904
|
case EdgeConstraintType.UNDIRECTED:
|
|
383348
383905
|
break;
|
|
@@ -383458,7 +384015,11 @@ ${letters.join("\n")}`;
|
|
|
383458
384015
|
const theme2 = useClTheme();
|
|
383459
384016
|
const canvasParentRef = React__namespace.useRef(null);
|
|
383460
384017
|
const { state, api: api2 } = useCausalGraphEditor(props.graphData, props.editorMode, props.availableInputs, props.graphLayout.requiresPosition);
|
|
383461
|
-
const
|
|
384018
|
+
const [editorMode] = React.useState(() => {
|
|
384019
|
+
var _a4;
|
|
384020
|
+
return (_a4 = props.editorMode) !== null && _a4 !== void 0 ? _a4 : isDag(state.graph) ? EditorMode.DEFAULT : EditorMode.PAG_VIEWER;
|
|
384021
|
+
});
|
|
384022
|
+
const { getCenterPosition, useEngineEvent, resetViewport, resetLayout, onSetDragMode, onNodeSelected, onEdgeSelected, onSearchResults, onUpdateConstraints } = useRenderEngine(canvasParentRef, state.graph, props.graphLayout, props.editable, editorMode, props.initialConstraints, props.processEdgeStyle, props.zoomThresholds);
|
|
383462
384023
|
const [selectedEdge, setSelectedEdge] = React.useState(null);
|
|
383463
384024
|
const [selectedNode, setSelectedNode] = React.useState(null);
|
|
383464
384025
|
const [highlightedNode, setHighlightedNode] = React.useState();
|
|
@@ -383472,7 +384033,7 @@ ${letters.join("\n")}`;
|
|
|
383472
384033
|
if (props.onClickNode) {
|
|
383473
384034
|
let serializedNode = null;
|
|
383474
384035
|
if (selectedNode) {
|
|
383475
|
-
serializedNode = serializeGraphNode(state.graph.getNodeAttributes(selectedNode)
|
|
384036
|
+
serializedNode = serializeGraphNode(state.graph.getNodeAttributes(selectedNode));
|
|
383476
384037
|
}
|
|
383477
384038
|
props.onClickNode(serializedNode);
|
|
383478
384039
|
}
|
|
@@ -383485,18 +384046,18 @@ ${letters.join("\n")}`;
|
|
|
383485
384046
|
let serializedEdge = null;
|
|
383486
384047
|
if (selectedEdge) {
|
|
383487
384048
|
const [source, target] = selectedEdge;
|
|
383488
|
-
serializedEdge = serializeGraphEdge(state.graph.getEdgeAttributes(source, target), source, target);
|
|
384049
|
+
serializedEdge = serializeGraphEdge(state.graph.getEdgeAttributes(source, target), serializeGraphNode(state.graph.getNodeAttributes(source)), serializeGraphNode(state.graph.getNodeAttributes(target)));
|
|
383489
384050
|
}
|
|
383490
384051
|
props.onClickEdge(serializedEdge);
|
|
383491
384052
|
}
|
|
383492
384053
|
}, [selectedEdge]);
|
|
383493
384054
|
const { constraints, addConstraint, updateConstraint, removeConstraint, reverseConstraint } = useEdgeConstraintEncoder(props.initialConstraints, props.onEdgeConstraintsUpdate);
|
|
383494
384055
|
const selectedConstraint = React.useMemo(() => {
|
|
383495
|
-
if (
|
|
384056
|
+
if (editorMode === EditorMode.EDGE_ENCODER && selectedEdge) {
|
|
383496
384057
|
const [source, target] = selectedEdge;
|
|
383497
384058
|
return constraints.find((c2) => c2.source === source && c2.target === target || c2.source === target && c2.target === source);
|
|
383498
384059
|
}
|
|
383499
|
-
}, [
|
|
384060
|
+
}, [editorMode, selectedEdge, constraints]);
|
|
383500
384061
|
function onRemoveNode() {
|
|
383501
384062
|
api2.removeNode(selectedNode);
|
|
383502
384063
|
setSelectedNode(null);
|
|
@@ -383505,7 +384066,7 @@ ${letters.join("\n")}`;
|
|
|
383505
384066
|
removeConstraint(selectedConstraint.id);
|
|
383506
384067
|
}
|
|
383507
384068
|
function onConfirmRemoveEdge() {
|
|
383508
|
-
if (
|
|
384069
|
+
if (editorMode === EditorMode.EDGE_ENCODER) {
|
|
383509
384070
|
onRemoveConstraint();
|
|
383510
384071
|
}
|
|
383511
384072
|
api2.removeEdge(selectedEdge);
|
|
@@ -383540,7 +384101,7 @@ ${letters.join("\n")}`;
|
|
|
383540
384101
|
});
|
|
383541
384102
|
return;
|
|
383542
384103
|
}
|
|
383543
|
-
if (
|
|
384104
|
+
if (editorMode === EditorMode.EDGE_ENCODER) {
|
|
383544
384105
|
const [source, target] = edge;
|
|
383545
384106
|
addConstraint(source, target);
|
|
383546
384107
|
}
|
|
@@ -383576,7 +384137,7 @@ ${letters.join("\n")}`;
|
|
|
383576
384137
|
function confirmDirection(reverse2) {
|
|
383577
384138
|
api2.updateEdgeType(selectedEdge, EdgeType.DIRECTED_EDGE);
|
|
383578
384139
|
if (reverse2) {
|
|
383579
|
-
if (
|
|
384140
|
+
if (editorMode === EditorMode.EDGE_ENCODER) {
|
|
383580
384141
|
onReverseConstraint();
|
|
383581
384142
|
}
|
|
383582
384143
|
onReverseEdge();
|
|
@@ -383622,7 +384183,7 @@ ${letters.join("\n")}`;
|
|
|
383622
384183
|
const targetNodeAttributes = state.graph.getNodeAttributes(targetNodeKey);
|
|
383623
384184
|
const sourceLabel = (_a4 = sourceNodeAttributes["meta.rendering_properties.label"]) !== null && _a4 !== void 0 ? _a4 : sourceNodeAttributes.id;
|
|
383624
384185
|
const targetLabel = (_b2 = targetNodeAttributes["meta.rendering_properties.label"]) !== null && _b2 !== void 0 ? _b2 : targetNodeAttributes.id;
|
|
383625
|
-
const tooltipArrow =
|
|
384186
|
+
const tooltipArrow = editorMode === EditorMode.DEFAULT ? "\u279C" : "-";
|
|
383626
384187
|
const edgeTooltipContent = getTooltipContent(`${sourceLabel} ${tooltipArrow} ${targetLabel}`, edgeAttributes["meta.rendering_properties.tooltip"], theme2, null, props.tooltipSize);
|
|
383627
384188
|
tooltipRef.current = () => ({
|
|
383628
384189
|
bottom: event2.clientY,
|
|
@@ -383721,7 +384282,7 @@ ${letters.join("\n")}`;
|
|
|
383721
384282
|
if (selectedEdge) {
|
|
383722
384283
|
contentSelected = state.graph.hasEdge(selectedEdge[0], selectedEdge[1]);
|
|
383723
384284
|
panelTitle = "Edge";
|
|
383724
|
-
} else if (selectedNode &&
|
|
384285
|
+
} else if (selectedNode && editorMode !== EditorMode.EDGE_ENCODER) {
|
|
383725
384286
|
contentSelected = state.graph.hasNode(selectedNode);
|
|
383726
384287
|
panelTitle = "Node";
|
|
383727
384288
|
}
|
|
@@ -383735,10 +384296,10 @@ ${letters.join("\n")}`;
|
|
|
383735
384296
|
disableLatentNodeAdd: props.disableLatentNodeAdd,
|
|
383736
384297
|
disableNodeRemoval: props.disableNodeRemoval,
|
|
383737
384298
|
editable: props.editable,
|
|
383738
|
-
editorMode
|
|
384299
|
+
editorMode,
|
|
383739
384300
|
onNotify: props.onNotify,
|
|
383740
384301
|
verboseDescriptions: props.verboseDescriptions
|
|
383741
|
-
}, children: jsxRuntime.exports.jsx(pointerCtx.Provider, { value: { disablePointerEvents: isDragging, onPanelEnter, onPanelExit }, children: jsxRuntime.exports.jsx("div", { style: Object.assign({ display: "flex", flex: "1 1 auto", flexDirection: "column", minHeight: "100px", position: "relative" }, props.style), children: jsxRuntime.exports.jsxs(Graph, { onMouseEnter: () => setShowFrameButtons(true), onMouseLeave: () => setShowFrameButtons(false), children: [jsxRuntime.exports.jsx(EditorOverlay, { bottomLeft: jsxRuntime.exports.jsx(Legend, { listItems: getLegendData(
|
|
384302
|
+
}, children: jsxRuntime.exports.jsx(pointerCtx.Provider, { value: { disablePointerEvents: isDragging, onPanelEnter, onPanelExit }, children: jsxRuntime.exports.jsx("div", { style: Object.assign({ display: "flex", flex: "1 1 auto", flexDirection: "column", minHeight: "100px", position: "relative" }, props.style), children: jsxRuntime.exports.jsxs(Graph, { onMouseEnter: () => setShowFrameButtons(true), onMouseLeave: () => setShowFrameButtons(false), children: [jsxRuntime.exports.jsx(EditorOverlay, { bottomLeft: jsxRuntime.exports.jsx(Legend, { listItems: getLegendData(editorMode, props.additionalLegends) }), onDelete, onNext, onPrev, showFrameButtons: !isDragging && showFrameButtons, title: panelTitle, topLeft: jsxRuntime.exports.jsx(RecalculateLayoutButton, { onResetLayout: resetLayout }), topRight: jsxRuntime.exports.jsxs(jsxRuntime.exports.Fragment, { children: [jsxRuntime.exports.jsx(FloatingSearchBar, { onChange: onSearchBarChange, onClose: () => setSelectedNode(null), onNext: onNextSearchResult, onPrev: onPrevSearchResult, selectedResult: currentSearchNode + 1, totalNumberOfResults: searchResults.length }), jsxRuntime.exports.jsx(CenterGraphButton, { onResetZoom: resetViewport }), jsxRuntime.exports.jsx(EditControls, { onAddNode }), jsxRuntime.exports.jsx(DragModeButton, { dragMode, setDragMode })] }), validContentSelected: contentSelected, children: jsxRuntime.exports.jsxs(graphCtx.Provider, { value: {
|
|
383742
384303
|
api: api2,
|
|
383743
384304
|
constraints,
|
|
383744
384305
|
editable: props.editable,
|
|
@@ -388734,12 +389295,8 @@ ${letters.join("\n")}`;
|
|
|
388734
389295
|
return [];
|
|
388735
389296
|
}
|
|
388736
389297
|
return constraints.map((c2) => {
|
|
388737
|
-
|
|
388738
|
-
|
|
388739
|
-
if (constraintType === EdgeConstraintType.BACKWARD_DIRECTED) {
|
|
388740
|
-
[source, target] = [target, source];
|
|
388741
|
-
constraintType = EdgeConstraintType.DIRECTED;
|
|
388742
|
-
}
|
|
389298
|
+
const constraintType = c2.type;
|
|
389299
|
+
const { source, target } = c2;
|
|
388743
389300
|
return {
|
|
388744
389301
|
...c2,
|
|
388745
389302
|
source,
|
|
@@ -388778,8 +389335,10 @@ ${letters.join("\n")}`;
|
|
|
388778
389335
|
acc[c2.source] = {};
|
|
388779
389336
|
}
|
|
388780
389337
|
acc[c2.source][c2.target] = {
|
|
389338
|
+
destination: parsedNodes[c2.target],
|
|
388781
389339
|
edge_type: EdgeType.UNDIRECTED_EDGE,
|
|
388782
|
-
meta: {}
|
|
389340
|
+
meta: {},
|
|
389341
|
+
source: parsedNodes[c2.source]
|
|
388783
389342
|
};
|
|
388784
389343
|
}
|
|
388785
389344
|
return acc;
|