@teselagen/ove 0.3.25 → 0.3.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +1714 -1451
- package/index.es.js +1714 -1451
- package/index.umd.js +1283 -1072
- package/package.json +2 -2
- package/src/AlignmentView/index.js +2 -2
- package/src/CircularView/Labels/index.js +9 -4
- package/src/CircularView/drawAnnotations.js +7 -5
- package/src/helperComponents/withHover.js +38 -14
- package/style.css +12 -0
package/index.cjs.js
CHANGED
|
@@ -1336,14 +1336,14 @@ function orderModifiers(modifiers2) {
|
|
|
1336
1336
|
}, []);
|
|
1337
1337
|
}
|
|
1338
1338
|
__name(orderModifiers, "orderModifiers");
|
|
1339
|
-
function debounce$3(
|
|
1339
|
+
function debounce$3(fn4) {
|
|
1340
1340
|
var pending;
|
|
1341
1341
|
return function() {
|
|
1342
1342
|
if (!pending) {
|
|
1343
1343
|
pending = new Promise(function(resolve) {
|
|
1344
1344
|
Promise.resolve().then(function() {
|
|
1345
1345
|
pending = void 0;
|
|
1346
|
-
resolve(
|
|
1346
|
+
resolve(fn4());
|
|
1347
1347
|
});
|
|
1348
1348
|
});
|
|
1349
1349
|
}
|
|
@@ -1447,9 +1447,9 @@ function popperGenerator(generatorOptions) {
|
|
|
1447
1447
|
index2 = -1;
|
|
1448
1448
|
continue;
|
|
1449
1449
|
}
|
|
1450
|
-
var _state$orderedModifie = state2.orderedModifiers[index2],
|
|
1451
|
-
if (typeof
|
|
1452
|
-
state2 =
|
|
1450
|
+
var _state$orderedModifie = state2.orderedModifiers[index2], fn4 = _state$orderedModifie.fn, _state$orderedModifie2 = _state$orderedModifie.options, _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2, name2 = _state$orderedModifie.name;
|
|
1451
|
+
if (typeof fn4 === "function") {
|
|
1452
|
+
state2 = fn4({
|
|
1453
1453
|
state: state2,
|
|
1454
1454
|
options: _options,
|
|
1455
1455
|
name: name2,
|
|
@@ -1497,8 +1497,8 @@ function popperGenerator(generatorOptions) {
|
|
|
1497
1497
|
}
|
|
1498
1498
|
__name(runModifierEffects, "runModifierEffects");
|
|
1499
1499
|
function cleanupModifierEffects() {
|
|
1500
|
-
effectCleanupFns.forEach(function(
|
|
1501
|
-
return
|
|
1500
|
+
effectCleanupFns.forEach(function(fn4) {
|
|
1501
|
+
return fn4();
|
|
1502
1502
|
});
|
|
1503
1503
|
effectCleanupFns = [];
|
|
1504
1504
|
}
|
|
@@ -1540,15 +1540,15 @@ function invokeWithArgsOrReturn(value, args) {
|
|
|
1540
1540
|
return typeof value === "function" ? value.apply(void 0, args) : value;
|
|
1541
1541
|
}
|
|
1542
1542
|
__name(invokeWithArgsOrReturn, "invokeWithArgsOrReturn");
|
|
1543
|
-
function debounce$2(
|
|
1543
|
+
function debounce$2(fn4, ms) {
|
|
1544
1544
|
if (ms === 0) {
|
|
1545
|
-
return
|
|
1545
|
+
return fn4;
|
|
1546
1546
|
}
|
|
1547
1547
|
var timeout;
|
|
1548
1548
|
return function(arg) {
|
|
1549
1549
|
clearTimeout(timeout);
|
|
1550
1550
|
timeout = setTimeout(function() {
|
|
1551
|
-
|
|
1551
|
+
fn4(arg);
|
|
1552
1552
|
}, ms);
|
|
1553
1553
|
};
|
|
1554
1554
|
}
|
|
@@ -2380,7 +2380,7 @@ function createTippy(reference2, passedProps) {
|
|
|
2380
2380
|
enabled: true,
|
|
2381
2381
|
phase: "beforeWrite",
|
|
2382
2382
|
requires: ["computeStyles"],
|
|
2383
|
-
fn: /* @__PURE__ */ __name(function
|
|
2383
|
+
fn: /* @__PURE__ */ __name(function fn4(_ref2) {
|
|
2384
2384
|
var state3 = _ref2.state;
|
|
2385
2385
|
if (getIsDefaultRenderFn()) {
|
|
2386
2386
|
var _getDefaultTemplateCh = getDefaultTemplateChildren(), box2 = _getDefaultTemplateCh.box;
|
|
@@ -2754,11 +2754,174 @@ Object.assign({}, applyStyles$1, {
|
|
|
2754
2754
|
}
|
|
2755
2755
|
}, "effect")
|
|
2756
2756
|
});
|
|
2757
|
+
var mouseCoords = {
|
|
2758
|
+
clientX: 0,
|
|
2759
|
+
clientY: 0
|
|
2760
|
+
};
|
|
2761
|
+
var activeInstances = [];
|
|
2762
|
+
function storeMouseCoords(_ref) {
|
|
2763
|
+
var clientX = _ref.clientX, clientY = _ref.clientY;
|
|
2764
|
+
mouseCoords = {
|
|
2765
|
+
clientX,
|
|
2766
|
+
clientY
|
|
2767
|
+
};
|
|
2768
|
+
}
|
|
2769
|
+
__name(storeMouseCoords, "storeMouseCoords");
|
|
2770
|
+
function addMouseCoordsListener(doc) {
|
|
2771
|
+
doc.addEventListener("mousemove", storeMouseCoords);
|
|
2772
|
+
}
|
|
2773
|
+
__name(addMouseCoordsListener, "addMouseCoordsListener");
|
|
2774
|
+
function removeMouseCoordsListener(doc) {
|
|
2775
|
+
doc.removeEventListener("mousemove", storeMouseCoords);
|
|
2776
|
+
}
|
|
2777
|
+
__name(removeMouseCoordsListener, "removeMouseCoordsListener");
|
|
2778
|
+
var followCursor = {
|
|
2779
|
+
name: "followCursor",
|
|
2780
|
+
defaultValue: false,
|
|
2781
|
+
fn: /* @__PURE__ */ __name(function fn2(instance) {
|
|
2782
|
+
var reference2 = instance.reference;
|
|
2783
|
+
var doc = getOwnerDocument(instance.props.triggerTarget || reference2);
|
|
2784
|
+
var isInternalUpdate = false;
|
|
2785
|
+
var wasFocusEvent = false;
|
|
2786
|
+
var isUnmounted = true;
|
|
2787
|
+
var prevProps = instance.props;
|
|
2788
|
+
function getIsInitialBehavior() {
|
|
2789
|
+
return instance.props.followCursor === "initial" && instance.state.isVisible;
|
|
2790
|
+
}
|
|
2791
|
+
__name(getIsInitialBehavior, "getIsInitialBehavior");
|
|
2792
|
+
function addListener() {
|
|
2793
|
+
doc.addEventListener("mousemove", onMouseMove);
|
|
2794
|
+
}
|
|
2795
|
+
__name(addListener, "addListener");
|
|
2796
|
+
function removeListener() {
|
|
2797
|
+
doc.removeEventListener("mousemove", onMouseMove);
|
|
2798
|
+
}
|
|
2799
|
+
__name(removeListener, "removeListener");
|
|
2800
|
+
function unsetGetReferenceClientRect() {
|
|
2801
|
+
isInternalUpdate = true;
|
|
2802
|
+
instance.setProps({
|
|
2803
|
+
getReferenceClientRect: null
|
|
2804
|
+
});
|
|
2805
|
+
isInternalUpdate = false;
|
|
2806
|
+
}
|
|
2807
|
+
__name(unsetGetReferenceClientRect, "unsetGetReferenceClientRect");
|
|
2808
|
+
function onMouseMove(event) {
|
|
2809
|
+
var isCursorOverReference = event.target ? reference2.contains(event.target) : true;
|
|
2810
|
+
var followCursor2 = instance.props.followCursor;
|
|
2811
|
+
var clientX = event.clientX, clientY = event.clientY;
|
|
2812
|
+
var rect = reference2.getBoundingClientRect();
|
|
2813
|
+
var relativeX = clientX - rect.left;
|
|
2814
|
+
var relativeY = clientY - rect.top;
|
|
2815
|
+
if (isCursorOverReference || !instance.props.interactive) {
|
|
2816
|
+
instance.setProps({
|
|
2817
|
+
// @ts-ignore - unneeded DOMRect properties
|
|
2818
|
+
getReferenceClientRect: /* @__PURE__ */ __name(function getReferenceClientRect() {
|
|
2819
|
+
var rect2 = reference2.getBoundingClientRect();
|
|
2820
|
+
var x = clientX;
|
|
2821
|
+
var y2 = clientY;
|
|
2822
|
+
if (followCursor2 === "initial") {
|
|
2823
|
+
x = rect2.left + relativeX;
|
|
2824
|
+
y2 = rect2.top + relativeY;
|
|
2825
|
+
}
|
|
2826
|
+
var top2 = followCursor2 === "horizontal" ? rect2.top : y2;
|
|
2827
|
+
var right2 = followCursor2 === "vertical" ? rect2.right : x;
|
|
2828
|
+
var bottom2 = followCursor2 === "horizontal" ? rect2.bottom : y2;
|
|
2829
|
+
var left2 = followCursor2 === "vertical" ? rect2.left : x;
|
|
2830
|
+
return {
|
|
2831
|
+
width: right2 - left2,
|
|
2832
|
+
height: bottom2 - top2,
|
|
2833
|
+
top: top2,
|
|
2834
|
+
right: right2,
|
|
2835
|
+
bottom: bottom2,
|
|
2836
|
+
left: left2
|
|
2837
|
+
};
|
|
2838
|
+
}, "getReferenceClientRect")
|
|
2839
|
+
});
|
|
2840
|
+
}
|
|
2841
|
+
}
|
|
2842
|
+
__name(onMouseMove, "onMouseMove");
|
|
2843
|
+
function create7() {
|
|
2844
|
+
if (instance.props.followCursor) {
|
|
2845
|
+
activeInstances.push({
|
|
2846
|
+
instance,
|
|
2847
|
+
doc
|
|
2848
|
+
});
|
|
2849
|
+
addMouseCoordsListener(doc);
|
|
2850
|
+
}
|
|
2851
|
+
}
|
|
2852
|
+
__name(create7, "create");
|
|
2853
|
+
function destroy2() {
|
|
2854
|
+
activeInstances = activeInstances.filter(function(data) {
|
|
2855
|
+
return data.instance !== instance;
|
|
2856
|
+
});
|
|
2857
|
+
if (activeInstances.filter(function(data) {
|
|
2858
|
+
return data.doc === doc;
|
|
2859
|
+
}).length === 0) {
|
|
2860
|
+
removeMouseCoordsListener(doc);
|
|
2861
|
+
}
|
|
2862
|
+
}
|
|
2863
|
+
__name(destroy2, "destroy");
|
|
2864
|
+
return {
|
|
2865
|
+
onCreate: create7,
|
|
2866
|
+
onDestroy: destroy2,
|
|
2867
|
+
onBeforeUpdate: /* @__PURE__ */ __name(function onBeforeUpdate2() {
|
|
2868
|
+
prevProps = instance.props;
|
|
2869
|
+
}, "onBeforeUpdate"),
|
|
2870
|
+
onAfterUpdate: /* @__PURE__ */ __name(function onAfterUpdate2(_2, _ref2) {
|
|
2871
|
+
var followCursor2 = _ref2.followCursor;
|
|
2872
|
+
if (isInternalUpdate) {
|
|
2873
|
+
return;
|
|
2874
|
+
}
|
|
2875
|
+
if (followCursor2 !== void 0 && prevProps.followCursor !== followCursor2) {
|
|
2876
|
+
destroy2();
|
|
2877
|
+
if (followCursor2) {
|
|
2878
|
+
create7();
|
|
2879
|
+
if (instance.state.isMounted && !wasFocusEvent && !getIsInitialBehavior()) {
|
|
2880
|
+
addListener();
|
|
2881
|
+
}
|
|
2882
|
+
} else {
|
|
2883
|
+
removeListener();
|
|
2884
|
+
unsetGetReferenceClientRect();
|
|
2885
|
+
}
|
|
2886
|
+
}
|
|
2887
|
+
}, "onAfterUpdate"),
|
|
2888
|
+
onMount: /* @__PURE__ */ __name(function onMount2() {
|
|
2889
|
+
if (instance.props.followCursor && !wasFocusEvent) {
|
|
2890
|
+
if (isUnmounted) {
|
|
2891
|
+
onMouseMove(mouseCoords);
|
|
2892
|
+
isUnmounted = false;
|
|
2893
|
+
}
|
|
2894
|
+
if (!getIsInitialBehavior()) {
|
|
2895
|
+
addListener();
|
|
2896
|
+
}
|
|
2897
|
+
}
|
|
2898
|
+
}, "onMount"),
|
|
2899
|
+
onTrigger: /* @__PURE__ */ __name(function onTrigger2(_2, event) {
|
|
2900
|
+
if (isMouseEvent$1(event)) {
|
|
2901
|
+
mouseCoords = {
|
|
2902
|
+
clientX: event.clientX,
|
|
2903
|
+
clientY: event.clientY
|
|
2904
|
+
};
|
|
2905
|
+
}
|
|
2906
|
+
wasFocusEvent = event.type === "focus";
|
|
2907
|
+
}, "onTrigger"),
|
|
2908
|
+
onHidden: /* @__PURE__ */ __name(function onHidden2() {
|
|
2909
|
+
if (instance.props.followCursor) {
|
|
2910
|
+
unsetGetReferenceClientRect();
|
|
2911
|
+
removeListener();
|
|
2912
|
+
isUnmounted = true;
|
|
2913
|
+
}
|
|
2914
|
+
}, "onHidden")
|
|
2915
|
+
};
|
|
2916
|
+
}, "fn")
|
|
2917
|
+
};
|
|
2757
2918
|
tippy$1.setDefaultProps({
|
|
2758
2919
|
render: render$1
|
|
2759
2920
|
});
|
|
2760
2921
|
const tippy = "";
|
|
2761
2922
|
let tippys = [];
|
|
2923
|
+
let recentlyHidden = false;
|
|
2924
|
+
let clearMe;
|
|
2762
2925
|
(function() {
|
|
2763
2926
|
let lastMouseOverElement = null;
|
|
2764
2927
|
document.addEventListener("mouseover", function(event) {
|
|
@@ -2779,21 +2942,63 @@ let tippys = [];
|
|
|
2779
2942
|
lastMouseOverElement = element2;
|
|
2780
2943
|
const id2 = "tippyEllipsizedEl";
|
|
2781
2944
|
let innerRun = false;
|
|
2782
|
-
const inner2 = /* @__PURE__ */ __name((content2, el2) => {
|
|
2945
|
+
const inner2 = /* @__PURE__ */ __name((content2, el2, { dataTitle, dataAvoid, dataAvoidBackup }) => {
|
|
2946
|
+
var _a3, _b3;
|
|
2783
2947
|
innerRun = true;
|
|
2784
2948
|
document.querySelectorAll(`.${id2}`).forEach((elem) => {
|
|
2785
2949
|
elem.classList.remove(id2);
|
|
2786
2950
|
});
|
|
2787
2951
|
el2.classList.add(id2);
|
|
2788
|
-
const inst = tippy$1(`.${id2}`, {
|
|
2952
|
+
const inst = tippy$1(`.${id2}`, __spreadValues(__spreadProps(__spreadValues({
|
|
2953
|
+
plugins: [followCursor],
|
|
2789
2954
|
content: content2,
|
|
2790
|
-
delay: [0, 0],
|
|
2955
|
+
delay: dataTitle && !recentlyHidden ? [1300, 1300] : dataTitle ? [150, 150] : [0, 0],
|
|
2791
2956
|
allowHTML: true
|
|
2792
|
-
}
|
|
2957
|
+
}, dataTitle && {
|
|
2958
|
+
followCursor: dataTitle ? "initial" : false
|
|
2959
|
+
}), {
|
|
2960
|
+
onHidden() {
|
|
2961
|
+
recentlyHidden = true;
|
|
2962
|
+
clearMe && clearTimeout(clearMe);
|
|
2963
|
+
clearMe = setTimeout(() => {
|
|
2964
|
+
if (tippys.length === 0)
|
|
2965
|
+
recentlyHidden = false;
|
|
2966
|
+
}, 700);
|
|
2967
|
+
}
|
|
2968
|
+
}), dataAvoid && {
|
|
2969
|
+
popperOptions: {
|
|
2970
|
+
modifiers: [
|
|
2971
|
+
{
|
|
2972
|
+
name: "myModifier",
|
|
2973
|
+
enabled: true,
|
|
2974
|
+
phase: "beforeWrite",
|
|
2975
|
+
requires: ["computeStyles"],
|
|
2976
|
+
requiresIfExists: ["offset"],
|
|
2977
|
+
fn({ state: state2 }) {
|
|
2978
|
+
const customBoundary = document.querySelector(dataAvoid) || document.querySelector(dataAvoidBackup);
|
|
2979
|
+
if (!customBoundary)
|
|
2980
|
+
return;
|
|
2981
|
+
const a2 = customBoundary.getBoundingClientRect();
|
|
2982
|
+
if (a2.top < state2.rects.reference.y) {
|
|
2983
|
+
const b3 = Math.abs(
|
|
2984
|
+
Math.abs(a2.top - state2.rects.reference.y) - 10
|
|
2985
|
+
);
|
|
2986
|
+
state2.styles.popper.bottom = b3 + "px";
|
|
2987
|
+
}
|
|
2988
|
+
}
|
|
2989
|
+
}
|
|
2990
|
+
]
|
|
2991
|
+
}
|
|
2992
|
+
}));
|
|
2993
|
+
if (dataTitle) {
|
|
2994
|
+
(_b3 = (_a3 = inst[0]) == null ? void 0 : _a3.popper) == null ? void 0 : _b3.classList.add("isDataTitle");
|
|
2995
|
+
}
|
|
2793
2996
|
clearOldTippys(...inst);
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2997
|
+
if (!dataTitle) {
|
|
2998
|
+
inst.forEach((i) => {
|
|
2999
|
+
i.show();
|
|
3000
|
+
});
|
|
3001
|
+
}
|
|
2797
3002
|
tippys = [...tippys, ...inst];
|
|
2798
3003
|
if (content2 === el2.getAttribute("title")) {
|
|
2799
3004
|
el2.removeAttribute("title");
|
|
@@ -2808,14 +3013,22 @@ let tippys = [];
|
|
|
2808
3013
|
const style2 = window.getComputedStyle(el);
|
|
2809
3014
|
const whiteSpace = style2.getPropertyValue("white-space");
|
|
2810
3015
|
const textOverflow = style2.getPropertyValue("text-overflow");
|
|
2811
|
-
|
|
3016
|
+
const dataTitle = el.getAttribute("data-title");
|
|
3017
|
+
const dataAvoid = el.getAttribute("data-avoid");
|
|
3018
|
+
const dataAvoidBackup = el.getAttribute("data-avoid-backup");
|
|
3019
|
+
dataTip = el.getAttribute("data-tip") || dataTitle;
|
|
2812
3020
|
const isEllipsized = whiteSpace === "nowrap" && textOverflow === "ellipsis";
|
|
3021
|
+
const opts2 = {
|
|
3022
|
+
dataTitle,
|
|
3023
|
+
dataAvoid,
|
|
3024
|
+
dataAvoidBackup
|
|
3025
|
+
};
|
|
2813
3026
|
if (dataTip) {
|
|
2814
|
-
inner2(dataTip, el);
|
|
3027
|
+
inner2(dataTip, el, opts2);
|
|
2815
3028
|
break;
|
|
2816
3029
|
} else if (isEllipsized && el.offsetWidth < el.scrollWidth - 4 && //the -4 is adding a teeny bit of tolerance to fix issues with the column headers getting tooltips even when fully visible
|
|
2817
3030
|
!el.classList.contains("no-data-tip") && el.textContent && ((_b2 = (_a2 = el.textContent) == null ? void 0 : _a2.trim) == null ? void 0 : _b2.call(_a2).length) !== 0) {
|
|
2818
|
-
inner2(el.textContent, el);
|
|
3031
|
+
inner2(el.textContent, el, opts2);
|
|
2819
3032
|
break;
|
|
2820
3033
|
} else if (isEllipsized && el.offsetWidth >= el.scrollWidth)
|
|
2821
3034
|
;
|
|
@@ -2879,13 +3092,13 @@ function getAugmentedNamespace(n2) {
|
|
|
2879
3092
|
}
|
|
2880
3093
|
__name(getAugmentedNamespace, "getAugmentedNamespace");
|
|
2881
3094
|
var axios$3 = { exports: {} };
|
|
2882
|
-
var bind$5 = /* @__PURE__ */ __name(function bind(
|
|
3095
|
+
var bind$5 = /* @__PURE__ */ __name(function bind(fn4, thisArg) {
|
|
2883
3096
|
return /* @__PURE__ */ __name(function wrap2() {
|
|
2884
3097
|
var args = new Array(arguments.length);
|
|
2885
3098
|
for (var i = 0; i < args.length; i++) {
|
|
2886
3099
|
args[i] = arguments[i];
|
|
2887
3100
|
}
|
|
2888
|
-
return
|
|
3101
|
+
return fn4.apply(thisArg, args);
|
|
2889
3102
|
}, "wrap");
|
|
2890
3103
|
}, "bind");
|
|
2891
3104
|
var bind$4 = bind$5;
|
|
@@ -2975,7 +3188,7 @@ function isStandardBrowserEnv() {
|
|
|
2975
3188
|
return typeof window !== "undefined" && typeof document !== "undefined";
|
|
2976
3189
|
}
|
|
2977
3190
|
__name(isStandardBrowserEnv, "isStandardBrowserEnv");
|
|
2978
|
-
function forEach$5(obj,
|
|
3191
|
+
function forEach$5(obj, fn4) {
|
|
2979
3192
|
if (obj === null || typeof obj === "undefined") {
|
|
2980
3193
|
return;
|
|
2981
3194
|
}
|
|
@@ -2984,12 +3197,12 @@ function forEach$5(obj, fn3) {
|
|
|
2984
3197
|
}
|
|
2985
3198
|
if (isArray$r(obj)) {
|
|
2986
3199
|
for (var i = 0, l2 = obj.length; i < l2; i++) {
|
|
2987
|
-
|
|
3200
|
+
fn4.call(null, obj[i], i, obj);
|
|
2988
3201
|
}
|
|
2989
3202
|
} else {
|
|
2990
3203
|
for (var key in obj) {
|
|
2991
3204
|
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
2992
|
-
|
|
3205
|
+
fn4.call(null, obj[key], key, obj);
|
|
2993
3206
|
}
|
|
2994
3207
|
}
|
|
2995
3208
|
}
|
|
@@ -3121,10 +3334,10 @@ InterceptorManager$1.prototype.eject = /* @__PURE__ */ __name(function eject(id2
|
|
|
3121
3334
|
this.handlers[id2] = null;
|
|
3122
3335
|
}
|
|
3123
3336
|
}, "eject");
|
|
3124
|
-
InterceptorManager$1.prototype.forEach = /* @__PURE__ */ __name(function forEach(
|
|
3337
|
+
InterceptorManager$1.prototype.forEach = /* @__PURE__ */ __name(function forEach(fn4) {
|
|
3125
3338
|
utils$e.forEach(this.handlers, /* @__PURE__ */ __name(function forEachHandler(h2) {
|
|
3126
3339
|
if (h2 !== null) {
|
|
3127
|
-
|
|
3340
|
+
fn4(h2);
|
|
3128
3341
|
}
|
|
3129
3342
|
}, "forEachHandler"));
|
|
3130
3343
|
}, "forEach");
|
|
@@ -3645,8 +3858,8 @@ var utils$b = utils$g;
|
|
|
3645
3858
|
var defaults$5 = defaults_1;
|
|
3646
3859
|
var transformData$1 = /* @__PURE__ */ __name(function transformData(data, headers, fns) {
|
|
3647
3860
|
var context = this || defaults$5;
|
|
3648
|
-
utils$b.forEach(fns, /* @__PURE__ */ __name(function transform3(
|
|
3649
|
-
data =
|
|
3861
|
+
utils$b.forEach(fns, /* @__PURE__ */ __name(function transform3(fn4) {
|
|
3862
|
+
data = fn4.call(context, data, headers);
|
|
3650
3863
|
}, "transform"));
|
|
3651
3864
|
return data;
|
|
3652
3865
|
}, "transformData");
|
|
@@ -4939,9 +5152,9 @@ function composeEventHandlers() {
|
|
|
4939
5152
|
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
4940
5153
|
args[_key2 - 1] = arguments[_key2];
|
|
4941
5154
|
}
|
|
4942
|
-
return fns.some(function(
|
|
4943
|
-
if (!isPropagationStopped(event) &&
|
|
4944
|
-
|
|
5155
|
+
return fns.some(function(fn4) {
|
|
5156
|
+
if (!isPropagationStopped(event) && fn4) {
|
|
5157
|
+
fn4.apply(void 0, [event].concat(args));
|
|
4945
5158
|
}
|
|
4946
5159
|
return isPropagationStopped(event);
|
|
4947
5160
|
});
|
|
@@ -5558,14 +5771,14 @@ function useDropzone() {
|
|
|
5558
5771
|
openFileDialog();
|
|
5559
5772
|
}
|
|
5560
5773
|
}, [inputRef, noClick, openFileDialog]);
|
|
5561
|
-
var composeHandler = /* @__PURE__ */ __name(function composeHandler2(
|
|
5562
|
-
return disabled ? null :
|
|
5774
|
+
var composeHandler = /* @__PURE__ */ __name(function composeHandler2(fn4) {
|
|
5775
|
+
return disabled ? null : fn4;
|
|
5563
5776
|
}, "composeHandler");
|
|
5564
|
-
var composeKeyboardHandler = /* @__PURE__ */ __name(function composeKeyboardHandler2(
|
|
5565
|
-
return noKeyboard ? null : composeHandler(
|
|
5777
|
+
var composeKeyboardHandler = /* @__PURE__ */ __name(function composeKeyboardHandler2(fn4) {
|
|
5778
|
+
return noKeyboard ? null : composeHandler(fn4);
|
|
5566
5779
|
}, "composeKeyboardHandler");
|
|
5567
|
-
var composeDragHandler = /* @__PURE__ */ __name(function composeDragHandler2(
|
|
5568
|
-
return noDrag ? null : composeHandler(
|
|
5780
|
+
var composeDragHandler = /* @__PURE__ */ __name(function composeDragHandler2(fn4) {
|
|
5781
|
+
return noDrag ? null : composeHandler(fn4);
|
|
5569
5782
|
}, "composeDragHandler");
|
|
5570
5783
|
var stopPropagation2 = /* @__PURE__ */ __name(function stopPropagation3(event) {
|
|
5571
5784
|
if (noDragEventsBubbling) {
|
|
@@ -6507,8 +6720,8 @@ function once(func) {
|
|
|
6507
6720
|
__name(once, "once");
|
|
6508
6721
|
var noop$5 = /* @__PURE__ */ __name(function noop() {
|
|
6509
6722
|
}, "noop");
|
|
6510
|
-
function isFunction$7(
|
|
6511
|
-
return typeof
|
|
6723
|
+
function isFunction$7(fn4) {
|
|
6724
|
+
return typeof fn4 === "function";
|
|
6512
6725
|
}
|
|
6513
6726
|
__name(isFunction$7, "isFunction$7");
|
|
6514
6727
|
function isStringish(value) {
|
|
@@ -6604,10 +6817,10 @@ var ownKeys$7 = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownK
|
|
|
6604
6817
|
/* istanbul ignore next */
|
|
6605
6818
|
Object.getOwnPropertyNames
|
|
6606
6819
|
);
|
|
6607
|
-
function toPrimitive$
|
|
6820
|
+
function toPrimitive$2(value) {
|
|
6608
6821
|
return value === null ? null : typeof value === "object" ? "" + value : value;
|
|
6609
6822
|
}
|
|
6610
|
-
__name(toPrimitive$
|
|
6823
|
+
__name(toPrimitive$2, "toPrimitive$2");
|
|
6611
6824
|
function hasProp(target, prop2) {
|
|
6612
6825
|
return objectPrototype$1.hasOwnProperty.call(target, prop2);
|
|
6613
6826
|
}
|
|
@@ -7314,12 +7527,12 @@ var tmpNameDescriptor = {
|
|
|
7314
7527
|
writable: false,
|
|
7315
7528
|
enumerable: false
|
|
7316
7529
|
};
|
|
7317
|
-
function createAction$1(actionName,
|
|
7530
|
+
function createAction$1(actionName, fn4, autoAction2, ref) {
|
|
7318
7531
|
if (autoAction2 === void 0) {
|
|
7319
7532
|
autoAction2 = false;
|
|
7320
7533
|
}
|
|
7321
7534
|
function res() {
|
|
7322
|
-
return executeAction(actionName, autoAction2,
|
|
7535
|
+
return executeAction(actionName, autoAction2, fn4, ref || this, arguments);
|
|
7323
7536
|
}
|
|
7324
7537
|
__name(res, "res");
|
|
7325
7538
|
res.isMobxAction = true;
|
|
@@ -7330,10 +7543,10 @@ function createAction$1(actionName, fn3, autoAction2, ref) {
|
|
|
7330
7543
|
return res;
|
|
7331
7544
|
}
|
|
7332
7545
|
__name(createAction$1, "createAction$1");
|
|
7333
|
-
function executeAction(actionName, canRunAsDerivation,
|
|
7546
|
+
function executeAction(actionName, canRunAsDerivation, fn4, scope, args) {
|
|
7334
7547
|
var runInfo = _startAction(actionName, canRunAsDerivation);
|
|
7335
7548
|
try {
|
|
7336
|
-
return
|
|
7549
|
+
return fn4.apply(scope, args);
|
|
7337
7550
|
} catch (err2) {
|
|
7338
7551
|
runInfo.error_ = err2;
|
|
7339
7552
|
throw err2;
|
|
@@ -7504,7 +7717,7 @@ var ObservableValue = /* @__PURE__ */ function(_Atom) {
|
|
|
7504
7717
|
return this.name_ + "[" + this.value_ + "]";
|
|
7505
7718
|
}, "toString");
|
|
7506
7719
|
_proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
|
|
7507
|
-
return toPrimitive$
|
|
7720
|
+
return toPrimitive$2(this.get());
|
|
7508
7721
|
}, "valueOf");
|
|
7509
7722
|
_proto[_Symbol$toPrimitive] = function() {
|
|
7510
7723
|
return this.valueOf();
|
|
@@ -7689,7 +7902,7 @@ var ComputedValue = /* @__PURE__ */ function() {
|
|
|
7689
7902
|
return this.name_ + "[" + this.derivation.toString() + "]";
|
|
7690
7903
|
}, "toString");
|
|
7691
7904
|
_proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
|
|
7692
|
-
return toPrimitive$
|
|
7905
|
+
return toPrimitive$2(this.get());
|
|
7693
7906
|
}, "valueOf");
|
|
7694
7907
|
_proto[_Symbol$toPrimitive$1] = function() {
|
|
7695
7908
|
return this.valueOf();
|
|
@@ -8118,7 +8331,7 @@ var Reaction = /* @__PURE__ */ function() {
|
|
|
8118
8331
|
endBatch();
|
|
8119
8332
|
}
|
|
8120
8333
|
}, "runReaction_");
|
|
8121
|
-
_proto.track = /* @__PURE__ */ __name(function track2(
|
|
8334
|
+
_proto.track = /* @__PURE__ */ __name(function track2(fn4) {
|
|
8122
8335
|
if (this.isDisposed_) {
|
|
8123
8336
|
return;
|
|
8124
8337
|
}
|
|
@@ -8126,7 +8339,7 @@ var Reaction = /* @__PURE__ */ function() {
|
|
|
8126
8339
|
this.isRunning_ = true;
|
|
8127
8340
|
var prevReaction = globalState.trackingContext;
|
|
8128
8341
|
globalState.trackingContext = this;
|
|
8129
|
-
var result = trackDerivedFunction(this,
|
|
8342
|
+
var result = trackDerivedFunction(this, fn4, void 0);
|
|
8130
8343
|
globalState.trackingContext = prevReaction;
|
|
8131
8344
|
this.isRunning_ = false;
|
|
8132
8345
|
this.isTrackPending_ = false;
|
|
@@ -8211,10 +8424,10 @@ function runReactionsHelper() {
|
|
|
8211
8424
|
}
|
|
8212
8425
|
__name(runReactionsHelper, "runReactionsHelper");
|
|
8213
8426
|
var isReaction = /* @__PURE__ */ createInstanceofPredicate("Reaction", Reaction);
|
|
8214
|
-
function setReactionScheduler(
|
|
8427
|
+
function setReactionScheduler(fn4) {
|
|
8215
8428
|
var baseScheduler = reactionScheduler;
|
|
8216
8429
|
reactionScheduler = /* @__PURE__ */ __name(function reactionScheduler3(f2) {
|
|
8217
|
-
return
|
|
8430
|
+
return fn4(function() {
|
|
8218
8431
|
return baseScheduler(f2);
|
|
8219
8432
|
});
|
|
8220
8433
|
}, "reactionScheduler");
|
|
@@ -8525,8 +8738,8 @@ function cancelPromise(promise) {
|
|
|
8525
8738
|
}
|
|
8526
8739
|
}
|
|
8527
8740
|
__name(cancelPromise, "cancelPromise");
|
|
8528
|
-
function isFlow(
|
|
8529
|
-
return (
|
|
8741
|
+
function isFlow(fn4) {
|
|
8742
|
+
return (fn4 == null ? void 0 : fn4.isMobXFlow) === true;
|
|
8530
8743
|
}
|
|
8531
8744
|
__name(isFlow, "isFlow");
|
|
8532
8745
|
function _isObservable(value, property2) {
|
|
@@ -10209,9 +10422,9 @@ var LegacyObservableArray = /* @__PURE__ */ function(_StubArray, _Symbol$toStrin
|
|
|
10209
10422
|
return LegacyObservableArray2;
|
|
10210
10423
|
}(StubArray, Symbol.toStringTag, Symbol.iterator);
|
|
10211
10424
|
Object.entries(arrayExtensions).forEach(function(_ref) {
|
|
10212
|
-
var prop2 = _ref[0],
|
|
10425
|
+
var prop2 = _ref[0], fn4 = _ref[1];
|
|
10213
10426
|
if (prop2 !== "concat") {
|
|
10214
|
-
addHiddenProp(LegacyObservableArray.prototype, prop2,
|
|
10427
|
+
addHiddenProp(LegacyObservableArray.prototype, prop2, fn4);
|
|
10215
10428
|
}
|
|
10216
10429
|
});
|
|
10217
10430
|
function createArrayEntryDescriptor(index2) {
|
|
@@ -10860,13 +11073,13 @@ function wrapper(realMethod, mixins) {
|
|
|
10860
11073
|
}
|
|
10861
11074
|
__name(wrapper, "wrapper");
|
|
10862
11075
|
function wrapFunction(realMethod, mixins) {
|
|
10863
|
-
var
|
|
11076
|
+
var fn4 = /* @__PURE__ */ __name(function fn5() {
|
|
10864
11077
|
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
10865
11078
|
args[_key2] = arguments[_key2];
|
|
10866
11079
|
}
|
|
10867
11080
|
wrapper.call.apply(wrapper, [this, realMethod, mixins].concat(args));
|
|
10868
11081
|
}, "fn");
|
|
10869
|
-
return
|
|
11082
|
+
return fn4;
|
|
10870
11083
|
}
|
|
10871
11084
|
__name(wrapFunction, "wrapFunction");
|
|
10872
11085
|
function patch$2(target, methodName, mixinMethod) {
|
|
@@ -11547,12 +11760,12 @@ var un = function() {
|
|
|
11547
11760
|
return o2(n3, t2);
|
|
11548
11761
|
});
|
|
11549
11762
|
}, e2;
|
|
11550
|
-
}(), an = new un(),
|
|
11763
|
+
}(), an = new un(), fn3 = an.produce, cn = an.produceWithPatches.bind(an), sn = an.setAutoFreeze.bind(an);
|
|
11551
11764
|
an.setUseProxies.bind(an);
|
|
11552
11765
|
var pn = an.applyPatches.bind(an);
|
|
11553
11766
|
an.createDraft.bind(an);
|
|
11554
11767
|
an.finishDraft.bind(an);
|
|
11555
|
-
const immer =
|
|
11768
|
+
const immer = fn3;
|
|
11556
11769
|
const UploadCsvWizard = "";
|
|
11557
11770
|
var lodash = { exports: {} };
|
|
11558
11771
|
/**
|
|
@@ -12323,7 +12536,7 @@ lodash.exports;
|
|
|
12323
12536
|
"^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar2, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
12324
12537
|
);
|
|
12325
12538
|
var Buffer2 = moduleExports2 ? context.Buffer : undefined$12, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe2 = Buffer2 ? Buffer2.allocUnsafe : undefined$12, getPrototype2 = overArg2(Object2.getPrototypeOf, Object2), objectCreate2 = Object2.create, propertyIsEnumerable3 = objectProto2.propertyIsEnumerable, splice3 = arrayProto2.splice, spreadableSymbol2 = Symbol2 ? Symbol2.isConcatSpreadable : undefined$12, symIterator = Symbol2 ? Symbol2.iterator : undefined$12, symToStringTag2 = Symbol2 ? Symbol2.toStringTag : undefined$12;
|
|
12326
|
-
var
|
|
12539
|
+
var defineProperty5 = function() {
|
|
12327
12540
|
try {
|
|
12328
12541
|
var func = getNative2(Object2, "defineProperty");
|
|
12329
12542
|
func({}, "", {});
|
|
@@ -12763,8 +12976,8 @@ lodash.exports;
|
|
|
12763
12976
|
}
|
|
12764
12977
|
__name(baseAssignIn2, "baseAssignIn");
|
|
12765
12978
|
function baseAssignValue2(object3, key, value) {
|
|
12766
|
-
if (key == "__proto__" &&
|
|
12767
|
-
|
|
12979
|
+
if (key == "__proto__" && defineProperty5) {
|
|
12980
|
+
defineProperty5(object3, key, {
|
|
12768
12981
|
"configurable": true,
|
|
12769
12982
|
"enumerable": true,
|
|
12770
12983
|
"value": value,
|
|
@@ -13497,8 +13710,8 @@ lodash.exports;
|
|
|
13497
13710
|
metaMap.set(func, data);
|
|
13498
13711
|
return func;
|
|
13499
13712
|
};
|
|
13500
|
-
var baseSetToString2 = !
|
|
13501
|
-
return
|
|
13713
|
+
var baseSetToString2 = !defineProperty5 ? identity4 : function(func, string2) {
|
|
13714
|
+
return defineProperty5(func, "toString", {
|
|
13502
13715
|
"configurable": true,
|
|
13503
13716
|
"enumerable": false,
|
|
13504
13717
|
"value": constant2(string2),
|
|
@@ -13931,8 +14144,8 @@ lodash.exports;
|
|
|
13931
14144
|
function createBind(func, bitmask, thisArg) {
|
|
13932
14145
|
var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
|
|
13933
14146
|
function wrapper2() {
|
|
13934
|
-
var
|
|
13935
|
-
return
|
|
14147
|
+
var fn4 = this && this !== root2 && this instanceof wrapper2 ? Ctor : func;
|
|
14148
|
+
return fn4.apply(isBind ? thisArg : this, arguments);
|
|
13936
14149
|
}
|
|
13937
14150
|
__name(wrapper2, "wrapper");
|
|
13938
14151
|
return wrapper2;
|
|
@@ -14003,8 +14216,8 @@ lodash.exports;
|
|
|
14003
14216
|
arity - length
|
|
14004
14217
|
);
|
|
14005
14218
|
}
|
|
14006
|
-
var
|
|
14007
|
-
return apply2(
|
|
14219
|
+
var fn4 = this && this !== root2 && this instanceof wrapper2 ? Ctor : func;
|
|
14220
|
+
return apply2(fn4, this, args);
|
|
14008
14221
|
}
|
|
14009
14222
|
__name(wrapper2, "wrapper");
|
|
14010
14223
|
return wrapper2;
|
|
@@ -14096,7 +14309,7 @@ lodash.exports;
|
|
|
14096
14309
|
arity - length
|
|
14097
14310
|
);
|
|
14098
14311
|
}
|
|
14099
|
-
var thisBinding = isBind ? thisArg : this,
|
|
14312
|
+
var thisBinding = isBind ? thisArg : this, fn4 = isBindKey ? thisBinding[func] : func;
|
|
14100
14313
|
length = args.length;
|
|
14101
14314
|
if (argPos) {
|
|
14102
14315
|
args = reorder2(args, argPos);
|
|
@@ -14107,9 +14320,9 @@ lodash.exports;
|
|
|
14107
14320
|
args.length = ary2;
|
|
14108
14321
|
}
|
|
14109
14322
|
if (this && this !== root2 && this instanceof wrapper2) {
|
|
14110
|
-
|
|
14323
|
+
fn4 = Ctor || createCtor(fn4);
|
|
14111
14324
|
}
|
|
14112
|
-
return
|
|
14325
|
+
return fn4.apply(thisBinding, args);
|
|
14113
14326
|
}
|
|
14114
14327
|
__name(wrapper2, "wrapper");
|
|
14115
14328
|
return wrapper2;
|
|
@@ -14172,14 +14385,14 @@ lodash.exports;
|
|
|
14172
14385
|
function createPartial(func, bitmask, thisArg, partials) {
|
|
14173
14386
|
var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
|
|
14174
14387
|
function wrapper2() {
|
|
14175
|
-
var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength),
|
|
14388
|
+
var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength), fn4 = this && this !== root2 && this instanceof wrapper2 ? Ctor : func;
|
|
14176
14389
|
while (++leftIndex < leftLength) {
|
|
14177
14390
|
args[leftIndex] = partials[leftIndex];
|
|
14178
14391
|
}
|
|
14179
14392
|
while (argsLength--) {
|
|
14180
14393
|
args[leftIndex++] = arguments[++argsIndex];
|
|
14181
14394
|
}
|
|
14182
|
-
return apply2(
|
|
14395
|
+
return apply2(fn4, isBind ? thisArg : this, args);
|
|
14183
14396
|
}
|
|
14184
14397
|
__name(wrapper2, "wrapper");
|
|
14185
14398
|
return wrapper2;
|
|
@@ -17984,26 +18197,26 @@ var _aFunction = /* @__PURE__ */ __name(function(it) {
|
|
|
17984
18197
|
return it;
|
|
17985
18198
|
}, "_aFunction");
|
|
17986
18199
|
var aFunction = _aFunction;
|
|
17987
|
-
var _ctx = /* @__PURE__ */ __name(function(
|
|
17988
|
-
aFunction(
|
|
18200
|
+
var _ctx = /* @__PURE__ */ __name(function(fn4, that, length) {
|
|
18201
|
+
aFunction(fn4);
|
|
17989
18202
|
if (that === void 0)
|
|
17990
|
-
return
|
|
18203
|
+
return fn4;
|
|
17991
18204
|
switch (length) {
|
|
17992
18205
|
case 1:
|
|
17993
18206
|
return function(a2) {
|
|
17994
|
-
return
|
|
18207
|
+
return fn4.call(that, a2);
|
|
17995
18208
|
};
|
|
17996
18209
|
case 2:
|
|
17997
18210
|
return function(a2, b3) {
|
|
17998
|
-
return
|
|
18211
|
+
return fn4.call(that, a2, b3);
|
|
17999
18212
|
};
|
|
18000
18213
|
case 3:
|
|
18001
18214
|
return function(a2, b3, c2) {
|
|
18002
|
-
return
|
|
18215
|
+
return fn4.call(that, a2, b3, c2);
|
|
18003
18216
|
};
|
|
18004
18217
|
}
|
|
18005
18218
|
return function() {
|
|
18006
|
-
return
|
|
18219
|
+
return fn4.apply(that, arguments);
|
|
18007
18220
|
};
|
|
18008
18221
|
}, "_ctx");
|
|
18009
18222
|
var _objectDp = {};
|
|
@@ -18023,11 +18236,20 @@ var _fails = /* @__PURE__ */ __name(function(exec) {
|
|
|
18023
18236
|
return true;
|
|
18024
18237
|
}
|
|
18025
18238
|
}, "_fails");
|
|
18026
|
-
var _descriptors
|
|
18027
|
-
|
|
18028
|
-
|
|
18029
|
-
|
|
18030
|
-
|
|
18239
|
+
var _descriptors;
|
|
18240
|
+
var hasRequired_descriptors;
|
|
18241
|
+
function require_descriptors() {
|
|
18242
|
+
if (hasRequired_descriptors)
|
|
18243
|
+
return _descriptors;
|
|
18244
|
+
hasRequired_descriptors = 1;
|
|
18245
|
+
_descriptors = !_fails(function() {
|
|
18246
|
+
return Object.defineProperty({}, "a", { get: function() {
|
|
18247
|
+
return 7;
|
|
18248
|
+
} }).a != 7;
|
|
18249
|
+
});
|
|
18250
|
+
return _descriptors;
|
|
18251
|
+
}
|
|
18252
|
+
__name(require_descriptors, "require_descriptors");
|
|
18031
18253
|
var _domCreate;
|
|
18032
18254
|
var hasRequired_domCreate;
|
|
18033
18255
|
function require_domCreate() {
|
|
@@ -18043,43 +18265,60 @@ function require_domCreate() {
|
|
|
18043
18265
|
return _domCreate;
|
|
18044
18266
|
}
|
|
18045
18267
|
__name(require_domCreate, "require_domCreate");
|
|
18046
|
-
var _ie8DomDefine
|
|
18047
|
-
|
|
18048
|
-
|
|
18049
|
-
|
|
18050
|
-
|
|
18268
|
+
var _ie8DomDefine;
|
|
18269
|
+
var hasRequired_ie8DomDefine;
|
|
18270
|
+
function require_ie8DomDefine() {
|
|
18271
|
+
if (hasRequired_ie8DomDefine)
|
|
18272
|
+
return _ie8DomDefine;
|
|
18273
|
+
hasRequired_ie8DomDefine = 1;
|
|
18274
|
+
_ie8DomDefine = !require_descriptors() && !_fails(function() {
|
|
18275
|
+
return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
|
|
18276
|
+
return 7;
|
|
18277
|
+
} }).a != 7;
|
|
18278
|
+
});
|
|
18279
|
+
return _ie8DomDefine;
|
|
18280
|
+
}
|
|
18281
|
+
__name(require_ie8DomDefine, "require_ie8DomDefine");
|
|
18051
18282
|
var isObject$d = _isObject;
|
|
18052
18283
|
var _toPrimitive$1 = /* @__PURE__ */ __name(function(it, S2) {
|
|
18053
18284
|
if (!isObject$d(it))
|
|
18054
18285
|
return it;
|
|
18055
|
-
var
|
|
18056
|
-
if (S2 && typeof (
|
|
18286
|
+
var fn4, val2;
|
|
18287
|
+
if (S2 && typeof (fn4 = it.toString) == "function" && !isObject$d(val2 = fn4.call(it)))
|
|
18057
18288
|
return val2;
|
|
18058
|
-
if (typeof (
|
|
18289
|
+
if (typeof (fn4 = it.valueOf) == "function" && !isObject$d(val2 = fn4.call(it)))
|
|
18059
18290
|
return val2;
|
|
18060
|
-
if (!S2 && typeof (
|
|
18291
|
+
if (!S2 && typeof (fn4 = it.toString) == "function" && !isObject$d(val2 = fn4.call(it)))
|
|
18061
18292
|
return val2;
|
|
18062
18293
|
throw TypeError("Can't convert object to primitive value");
|
|
18063
18294
|
}, "_toPrimitive$1");
|
|
18064
|
-
var
|
|
18065
|
-
|
|
18066
|
-
|
|
18067
|
-
|
|
18068
|
-
|
|
18069
|
-
|
|
18070
|
-
|
|
18071
|
-
|
|
18072
|
-
|
|
18073
|
-
|
|
18074
|
-
|
|
18075
|
-
|
|
18076
|
-
|
|
18077
|
-
|
|
18078
|
-
|
|
18079
|
-
|
|
18080
|
-
|
|
18081
|
-
|
|
18082
|
-
|
|
18295
|
+
var hasRequired_objectDp;
|
|
18296
|
+
function require_objectDp() {
|
|
18297
|
+
if (hasRequired_objectDp)
|
|
18298
|
+
return _objectDp;
|
|
18299
|
+
hasRequired_objectDp = 1;
|
|
18300
|
+
var anObject2 = _anObject;
|
|
18301
|
+
var IE8_DOM_DEFINE2 = require_ie8DomDefine();
|
|
18302
|
+
var toPrimitive2 = _toPrimitive$1;
|
|
18303
|
+
var dP2 = Object.defineProperty;
|
|
18304
|
+
_objectDp.f = require_descriptors() ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty5(O2, P2, Attributes) {
|
|
18305
|
+
anObject2(O2);
|
|
18306
|
+
P2 = toPrimitive2(P2, true);
|
|
18307
|
+
anObject2(Attributes);
|
|
18308
|
+
if (IE8_DOM_DEFINE2)
|
|
18309
|
+
try {
|
|
18310
|
+
return dP2(O2, P2, Attributes);
|
|
18311
|
+
} catch (e2) {
|
|
18312
|
+
}
|
|
18313
|
+
if ("get" in Attributes || "set" in Attributes)
|
|
18314
|
+
throw TypeError("Accessors not supported!");
|
|
18315
|
+
if ("value" in Attributes)
|
|
18316
|
+
O2[P2] = Attributes.value;
|
|
18317
|
+
return O2;
|
|
18318
|
+
}, "defineProperty");
|
|
18319
|
+
return _objectDp;
|
|
18320
|
+
}
|
|
18321
|
+
__name(require_objectDp, "require_objectDp");
|
|
18083
18322
|
var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
|
|
18084
18323
|
return {
|
|
18085
18324
|
enumerable: !(bitmap & 1),
|
|
@@ -18088,9 +18327,9 @@ var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
|
|
|
18088
18327
|
value
|
|
18089
18328
|
};
|
|
18090
18329
|
}, "_propertyDesc");
|
|
18091
|
-
var dP$2 =
|
|
18330
|
+
var dP$2 = require_objectDp();
|
|
18092
18331
|
var createDesc$3 = _propertyDesc;
|
|
18093
|
-
var _hide =
|
|
18332
|
+
var _hide = require_descriptors() ? function(object3, key, value) {
|
|
18094
18333
|
return dP$2.f(object3, key, createDesc$3(1, value));
|
|
18095
18334
|
} : function(object3, key, value) {
|
|
18096
18335
|
object3[key] = value;
|
|
@@ -18268,15 +18507,7 @@ var _objectKeys = Object.keys || /* @__PURE__ */ __name(function keys(O2) {
|
|
|
18268
18507
|
var _objectGops = {};
|
|
18269
18508
|
_objectGops.f = Object.getOwnPropertySymbols;
|
|
18270
18509
|
var _objectPie = {};
|
|
18271
|
-
|
|
18272
|
-
function require_objectPie() {
|
|
18273
|
-
if (hasRequired_objectPie)
|
|
18274
|
-
return _objectPie;
|
|
18275
|
-
hasRequired_objectPie = 1;
|
|
18276
|
-
_objectPie.f = {}.propertyIsEnumerable;
|
|
18277
|
-
return _objectPie;
|
|
18278
|
-
}
|
|
18279
|
-
__name(require_objectPie, "require_objectPie");
|
|
18510
|
+
_objectPie.f = {}.propertyIsEnumerable;
|
|
18280
18511
|
var defined$1 = _defined;
|
|
18281
18512
|
var _toObject = /* @__PURE__ */ __name(function(it) {
|
|
18282
18513
|
return Object(defined$1(it));
|
|
@@ -18287,10 +18518,10 @@ function require_objectAssign() {
|
|
|
18287
18518
|
if (hasRequired_objectAssign)
|
|
18288
18519
|
return _objectAssign;
|
|
18289
18520
|
hasRequired_objectAssign = 1;
|
|
18290
|
-
var DESCRIPTORS2 =
|
|
18521
|
+
var DESCRIPTORS2 = require_descriptors();
|
|
18291
18522
|
var getKeys2 = _objectKeys;
|
|
18292
18523
|
var gOPS2 = _objectGops;
|
|
18293
|
-
var pIE2 =
|
|
18524
|
+
var pIE2 = _objectPie;
|
|
18294
18525
|
var toObject2 = _toObject;
|
|
18295
18526
|
var IObject2 = _iobject;
|
|
18296
18527
|
var $assign = Object.assign;
|
|
@@ -18353,10 +18584,10 @@ var _iterStep = /* @__PURE__ */ __name(function(done, value) {
|
|
|
18353
18584
|
}, "_iterStep");
|
|
18354
18585
|
var _iterators = {};
|
|
18355
18586
|
var _redefine = _hide;
|
|
18356
|
-
var dP$1 =
|
|
18587
|
+
var dP$1 = require_objectDp();
|
|
18357
18588
|
var anObject$4 = _anObject;
|
|
18358
18589
|
var getKeys$1 = _objectKeys;
|
|
18359
|
-
var _objectDps =
|
|
18590
|
+
var _objectDps = require_descriptors() ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties(O2, Properties2) {
|
|
18360
18591
|
anObject$4(O2);
|
|
18361
18592
|
var keys5 = getKeys$1(Properties2);
|
|
18362
18593
|
var length = keys5.length;
|
|
@@ -18423,7 +18654,7 @@ var $exports = _wks.exports = function(name2) {
|
|
|
18423
18654
|
};
|
|
18424
18655
|
$exports.store = store$2;
|
|
18425
18656
|
var _wksExports = _wks.exports;
|
|
18426
|
-
var def =
|
|
18657
|
+
var def = require_objectDp().f;
|
|
18427
18658
|
var has$c = _has;
|
|
18428
18659
|
var TAG$1 = _wksExports("toStringTag");
|
|
18429
18660
|
var _setToStringTag = /* @__PURE__ */ __name(function(it, tag, stat) {
|
|
@@ -18680,9 +18911,9 @@ var _default$a = function() {
|
|
|
18680
18911
|
};
|
|
18681
18912
|
}();
|
|
18682
18913
|
var anObject$1 = _anObject;
|
|
18683
|
-
var _iterCall = /* @__PURE__ */ __name(function(iterator2,
|
|
18914
|
+
var _iterCall = /* @__PURE__ */ __name(function(iterator2, fn4, value, entries2) {
|
|
18684
18915
|
try {
|
|
18685
|
-
return entries2 ?
|
|
18916
|
+
return entries2 ? fn4(anObject$1(value)[0], value[1]) : fn4(value);
|
|
18686
18917
|
} catch (e2) {
|
|
18687
18918
|
var ret = iterator2["return"];
|
|
18688
18919
|
if (ret !== void 0)
|
|
@@ -18696,7 +18927,7 @@ var ArrayProto = Array.prototype;
|
|
|
18696
18927
|
var _isArrayIter = /* @__PURE__ */ __name(function(it) {
|
|
18697
18928
|
return it !== void 0 && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
|
|
18698
18929
|
}, "_isArrayIter");
|
|
18699
|
-
var $defineProperty$2 =
|
|
18930
|
+
var $defineProperty$2 = require_objectDp();
|
|
18700
18931
|
var createDesc$2 = _propertyDesc;
|
|
18701
18932
|
var _createProperty = /* @__PURE__ */ __name(function(object3, index2, value) {
|
|
18702
18933
|
if (index2 in object3)
|
|
@@ -18802,11 +19033,11 @@ var $export$4 = _export;
|
|
|
18802
19033
|
var core$1 = _coreExports;
|
|
18803
19034
|
var fails = _fails;
|
|
18804
19035
|
var _objectSap = /* @__PURE__ */ __name(function(KEY, exec) {
|
|
18805
|
-
var
|
|
19036
|
+
var fn4 = (core$1.Object || {})[KEY] || Object[KEY];
|
|
18806
19037
|
var exp = {};
|
|
18807
|
-
exp[KEY] = exec(
|
|
19038
|
+
exp[KEY] = exec(fn4);
|
|
18808
19039
|
$export$4($export$4.S + $export$4.F * fails(function() {
|
|
18809
|
-
|
|
19040
|
+
fn4(1);
|
|
18810
19041
|
}), "Object", exp);
|
|
18811
19042
|
}, "_objectSap");
|
|
18812
19043
|
var toObject$2 = _toObject;
|
|
@@ -18825,9 +19056,9 @@ var _default$8 = /* @__PURE__ */ __name(function(instance, Constructor) {
|
|
|
18825
19056
|
}
|
|
18826
19057
|
}, "_default$8");
|
|
18827
19058
|
var $export$3 = _export;
|
|
18828
|
-
$export$3($export$3.S + $export$3.F * !
|
|
19059
|
+
$export$3($export$3.S + $export$3.F * !require_descriptors(), "Object", { defineProperty: require_objectDp().f });
|
|
18829
19060
|
var $Object$2 = _coreExports.Object;
|
|
18830
|
-
var defineProperty$c = /* @__PURE__ */ __name(function
|
|
19061
|
+
var defineProperty$c = /* @__PURE__ */ __name(function defineProperty2(it, key, desc) {
|
|
18831
19062
|
return $Object$2.defineProperty(it, key, desc);
|
|
18832
19063
|
}, "defineProperty");
|
|
18833
19064
|
var defineProperty$b = { "default": defineProperty$c, __esModule: true };
|
|
@@ -18866,7 +19097,7 @@ var _meta = { exports: {} };
|
|
|
18866
19097
|
var META$1 = _uid("meta");
|
|
18867
19098
|
var isObject$c = _isObject;
|
|
18868
19099
|
var has$a = _has;
|
|
18869
|
-
var setDesc =
|
|
19100
|
+
var setDesc = require_objectDp().f;
|
|
18870
19101
|
var id$1 = 0;
|
|
18871
19102
|
var isExtensible = Object.isExtensible || function() {
|
|
18872
19103
|
return true;
|
|
@@ -18919,7 +19150,7 @@ var meta = _meta.exports = {
|
|
|
18919
19150
|
var _metaExports = _meta.exports;
|
|
18920
19151
|
var core = _coreExports;
|
|
18921
19152
|
var wksExt$1 = _wksExt;
|
|
18922
|
-
var defineProperty$a =
|
|
19153
|
+
var defineProperty$a = require_objectDp().f;
|
|
18923
19154
|
var _wksDefine = /* @__PURE__ */ __name(function(name2) {
|
|
18924
19155
|
var $Symbol2 = core.Symbol || (core.Symbol = {});
|
|
18925
19156
|
if (name2.charAt(0) != "_" && !(name2 in $Symbol2))
|
|
@@ -18927,7 +19158,7 @@ var _wksDefine = /* @__PURE__ */ __name(function(name2) {
|
|
|
18927
19158
|
}, "_wksDefine");
|
|
18928
19159
|
var getKeys = _objectKeys;
|
|
18929
19160
|
var gOPS$1 = _objectGops;
|
|
18930
|
-
var pIE$1 =
|
|
19161
|
+
var pIE$1 = _objectPie;
|
|
18931
19162
|
var _enumKeys = /* @__PURE__ */ __name(function(it) {
|
|
18932
19163
|
var result = getKeys(it);
|
|
18933
19164
|
var getSymbols2 = gOPS$1.f;
|
|
@@ -18968,14 +19199,14 @@ _objectGopnExt.f = /* @__PURE__ */ __name(function getOwnPropertyNames2(it) {
|
|
|
18968
19199
|
return windowNames && toString$5.call(it) == "[object Window]" ? getWindowNames(it) : gOPN$1(toIObject$2(it));
|
|
18969
19200
|
}, "getOwnPropertyNames");
|
|
18970
19201
|
var _objectGopd = {};
|
|
18971
|
-
var pIE =
|
|
19202
|
+
var pIE = _objectPie;
|
|
18972
19203
|
var createDesc$1 = _propertyDesc;
|
|
18973
19204
|
var toIObject$1 = _toIobject;
|
|
18974
19205
|
var toPrimitive$1 = _toPrimitive$1;
|
|
18975
19206
|
var has$9 = _has;
|
|
18976
|
-
var IE8_DOM_DEFINE =
|
|
19207
|
+
var IE8_DOM_DEFINE = require_ie8DomDefine();
|
|
18977
19208
|
var gOPD$5 = Object.getOwnPropertyDescriptor;
|
|
18978
|
-
_objectGopd.f =
|
|
19209
|
+
_objectGopd.f = require_descriptors() ? gOPD$5 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor(O2, P2) {
|
|
18979
19210
|
O2 = toIObject$1(O2);
|
|
18980
19211
|
P2 = toPrimitive$1(P2, true);
|
|
18981
19212
|
if (IE8_DOM_DEFINE)
|
|
@@ -18988,7 +19219,7 @@ _objectGopd.f = _descriptors ? gOPD$5 : /* @__PURE__ */ __name(function getOwnPr
|
|
|
18988
19219
|
}, "getOwnPropertyDescriptor");
|
|
18989
19220
|
var global$2 = _globalExports;
|
|
18990
19221
|
var has$8 = _has;
|
|
18991
|
-
var DESCRIPTORS =
|
|
19222
|
+
var DESCRIPTORS = require_descriptors();
|
|
18992
19223
|
var $export$2 = _export;
|
|
18993
19224
|
var redefine = _redefine;
|
|
18994
19225
|
var META = _metaExports.KEY;
|
|
@@ -19011,7 +19242,7 @@ var _create$1 = _objectCreate;
|
|
|
19011
19242
|
var gOPNExt = _objectGopnExt;
|
|
19012
19243
|
var $GOPD = _objectGopd;
|
|
19013
19244
|
var $GOPS = _objectGops;
|
|
19014
|
-
var $DP =
|
|
19245
|
+
var $DP = require_objectDp();
|
|
19015
19246
|
var $keys$1 = _objectKeys;
|
|
19016
19247
|
var gOPD$4 = $GOPD.f;
|
|
19017
19248
|
var dP = $DP.f;
|
|
@@ -19054,7 +19285,7 @@ var isSymbol$8 = USE_NATIVE && typeof $Symbol.iterator == "symbol" ? function(it
|
|
|
19054
19285
|
} : function(it) {
|
|
19055
19286
|
return it instanceof $Symbol;
|
|
19056
19287
|
};
|
|
19057
|
-
var $defineProperty$1 = /* @__PURE__ */ __name(function
|
|
19288
|
+
var $defineProperty$1 = /* @__PURE__ */ __name(function defineProperty3(it, key, D2) {
|
|
19058
19289
|
if (it === ObjectProto)
|
|
19059
19290
|
$defineProperty$1(OPSymbols, key, D2);
|
|
19060
19291
|
anObject(it);
|
|
@@ -19148,7 +19379,7 @@ if (!USE_NATIVE) {
|
|
|
19148
19379
|
$GOPD.f = $getOwnPropertyDescriptor;
|
|
19149
19380
|
$DP.f = $defineProperty$1;
|
|
19150
19381
|
_objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
|
|
19151
|
-
|
|
19382
|
+
_objectPie.f = $propertyIsEnumerable;
|
|
19152
19383
|
$GOPS.f = $getOwnPropertySymbols;
|
|
19153
19384
|
if (DESCRIPTORS && !_library) {
|
|
19154
19385
|
redefine(ObjectProto, "propertyIsEnumerable", $propertyIsEnumerable);
|
|
@@ -21086,9 +21317,9 @@ var vendorPrefix = function() {
|
|
|
21086
21317
|
return pre && pre.length ? pre[0].toUpperCase() + pre.substr(1) : "";
|
|
21087
21318
|
}
|
|
21088
21319
|
}();
|
|
21089
|
-
function closest$2(el,
|
|
21320
|
+
function closest$2(el, fn4) {
|
|
21090
21321
|
while (el) {
|
|
21091
|
-
if (
|
|
21322
|
+
if (fn4(el))
|
|
21092
21323
|
return el;
|
|
21093
21324
|
el = el.parentNode;
|
|
21094
21325
|
}
|
|
@@ -22102,9 +22333,9 @@ var getComputedStyleX;
|
|
|
22102
22333
|
if (typeof window !== "undefined") {
|
|
22103
22334
|
getComputedStyleX = window.getComputedStyle ? _getComputedStyle : _getComputedStyleIE;
|
|
22104
22335
|
}
|
|
22105
|
-
function each$2(arr,
|
|
22336
|
+
function each$2(arr, fn4) {
|
|
22106
22337
|
for (var i = 0; i < arr.length; i++) {
|
|
22107
|
-
|
|
22338
|
+
fn4(arr[i]);
|
|
22108
22339
|
}
|
|
22109
22340
|
}
|
|
22110
22341
|
__name(each$2, "each$2");
|
|
@@ -26755,7 +26986,7 @@ function trough() {
|
|
|
26755
26986
|
}
|
|
26756
26987
|
next(null, ...values2);
|
|
26757
26988
|
function next(error, ...output) {
|
|
26758
|
-
const
|
|
26989
|
+
const fn4 = fns[++middlewareIndex];
|
|
26759
26990
|
let index2 = -1;
|
|
26760
26991
|
if (error) {
|
|
26761
26992
|
callback2(error);
|
|
@@ -26767,8 +26998,8 @@ function trough() {
|
|
|
26767
26998
|
}
|
|
26768
26999
|
}
|
|
26769
27000
|
values2 = output;
|
|
26770
|
-
if (
|
|
26771
|
-
wrap$1(
|
|
27001
|
+
if (fn4) {
|
|
27002
|
+
wrap$1(fn4, next)(...output);
|
|
26772
27003
|
} else {
|
|
26773
27004
|
callback2(null, ...output);
|
|
26774
27005
|
}
|
|
@@ -38155,9 +38386,9 @@ var swizzle$1 = simpleSwizzle.exports = /* @__PURE__ */ __name(function swizzle(
|
|
|
38155
38386
|
}
|
|
38156
38387
|
return results;
|
|
38157
38388
|
}, "swizzle");
|
|
38158
|
-
swizzle$1.wrap = function(
|
|
38389
|
+
swizzle$1.wrap = function(fn4) {
|
|
38159
38390
|
return function() {
|
|
38160
|
-
return
|
|
38391
|
+
return fn4(swizzle$1(arguments));
|
|
38161
38392
|
};
|
|
38162
38393
|
};
|
|
38163
38394
|
var simpleSwizzleExports = simpleSwizzle.exports;
|
|
@@ -39241,15 +39472,15 @@ function link$1(from3, to) {
|
|
|
39241
39472
|
__name(link$1, "link$1");
|
|
39242
39473
|
function wrapConversion$1(toModel, graph) {
|
|
39243
39474
|
var path2 = [graph[toModel].parent, toModel];
|
|
39244
|
-
var
|
|
39475
|
+
var fn4 = conversions$4[graph[toModel].parent][toModel];
|
|
39245
39476
|
var cur = graph[toModel].parent;
|
|
39246
39477
|
while (graph[cur].parent) {
|
|
39247
39478
|
path2.unshift(graph[cur].parent);
|
|
39248
|
-
|
|
39479
|
+
fn4 = link$1(conversions$4[graph[cur].parent][cur], fn4);
|
|
39249
39480
|
cur = graph[cur].parent;
|
|
39250
39481
|
}
|
|
39251
|
-
|
|
39252
|
-
return
|
|
39482
|
+
fn4.conversion = path2;
|
|
39483
|
+
return fn4;
|
|
39253
39484
|
}
|
|
39254
39485
|
__name(wrapConversion$1, "wrapConversion$1");
|
|
39255
39486
|
var route$3 = /* @__PURE__ */ __name(function(fromModel) {
|
|
@@ -39270,7 +39501,7 @@ var conversions$3 = conversionsExports;
|
|
|
39270
39501
|
var route$2 = route$3;
|
|
39271
39502
|
var convert$4 = {};
|
|
39272
39503
|
var models$1 = Object.keys(conversions$3);
|
|
39273
|
-
function wrapRaw$1(
|
|
39504
|
+
function wrapRaw$1(fn4) {
|
|
39274
39505
|
var wrappedFn = /* @__PURE__ */ __name(function(args) {
|
|
39275
39506
|
if (args === void 0 || args === null) {
|
|
39276
39507
|
return args;
|
|
@@ -39278,15 +39509,15 @@ function wrapRaw$1(fn3) {
|
|
|
39278
39509
|
if (arguments.length > 1) {
|
|
39279
39510
|
args = Array.prototype.slice.call(arguments);
|
|
39280
39511
|
}
|
|
39281
|
-
return
|
|
39512
|
+
return fn4(args);
|
|
39282
39513
|
}, "wrappedFn");
|
|
39283
|
-
if ("conversion" in
|
|
39284
|
-
wrappedFn.conversion =
|
|
39514
|
+
if ("conversion" in fn4) {
|
|
39515
|
+
wrappedFn.conversion = fn4.conversion;
|
|
39285
39516
|
}
|
|
39286
39517
|
return wrappedFn;
|
|
39287
39518
|
}
|
|
39288
39519
|
__name(wrapRaw$1, "wrapRaw$1");
|
|
39289
|
-
function wrapRounded$1(
|
|
39520
|
+
function wrapRounded$1(fn4) {
|
|
39290
39521
|
var wrappedFn = /* @__PURE__ */ __name(function(args) {
|
|
39291
39522
|
if (args === void 0 || args === null) {
|
|
39292
39523
|
return args;
|
|
@@ -39294,7 +39525,7 @@ function wrapRounded$1(fn3) {
|
|
|
39294
39525
|
if (arguments.length > 1) {
|
|
39295
39526
|
args = Array.prototype.slice.call(arguments);
|
|
39296
39527
|
}
|
|
39297
|
-
var result =
|
|
39528
|
+
var result = fn4(args);
|
|
39298
39529
|
if (typeof result === "object") {
|
|
39299
39530
|
for (var len = result.length, i = 0; i < len; i++) {
|
|
39300
39531
|
result[i] = Math.round(result[i]);
|
|
@@ -39302,8 +39533,8 @@ function wrapRounded$1(fn3) {
|
|
|
39302
39533
|
}
|
|
39303
39534
|
return result;
|
|
39304
39535
|
}, "wrappedFn");
|
|
39305
|
-
if ("conversion" in
|
|
39306
|
-
wrappedFn.conversion =
|
|
39536
|
+
if ("conversion" in fn4) {
|
|
39537
|
+
wrappedFn.conversion = fn4.conversion;
|
|
39307
39538
|
}
|
|
39308
39539
|
return wrappedFn;
|
|
39309
39540
|
}
|
|
@@ -39315,9 +39546,9 @@ models$1.forEach(function(fromModel) {
|
|
|
39315
39546
|
var routes = route$2(fromModel);
|
|
39316
39547
|
var routeModels = Object.keys(routes);
|
|
39317
39548
|
routeModels.forEach(function(toModel) {
|
|
39318
|
-
var
|
|
39319
|
-
convert$4[fromModel][toModel] = wrapRounded$1(
|
|
39320
|
-
convert$4[fromModel][toModel].raw = wrapRaw$1(
|
|
39549
|
+
var fn4 = routes[toModel];
|
|
39550
|
+
convert$4[fromModel][toModel] = wrapRounded$1(fn4);
|
|
39551
|
+
convert$4[fromModel][toModel].raw = wrapRaw$1(fn4);
|
|
39321
39552
|
});
|
|
39322
39553
|
});
|
|
39323
39554
|
var colorConvert$1 = convert$4;
|
|
@@ -40767,9 +40998,9 @@ var doEval = /* @__PURE__ */ __name(function doEval2(name2) {
|
|
|
40767
40998
|
} else if (name2 === "%AsyncGeneratorFunction%") {
|
|
40768
40999
|
value = getEvalledConstructor("async function* () {}");
|
|
40769
41000
|
} else if (name2 === "%AsyncGenerator%") {
|
|
40770
|
-
var
|
|
40771
|
-
if (
|
|
40772
|
-
value =
|
|
41001
|
+
var fn4 = doEval2("%AsyncGeneratorFunction%");
|
|
41002
|
+
if (fn4) {
|
|
41003
|
+
value = fn4.prototype;
|
|
40773
41004
|
}
|
|
40774
41005
|
} else if (name2 === "%AsyncIteratorPrototype%") {
|
|
40775
41006
|
var gen = doEval2("%AsyncGenerator%");
|
|
@@ -41825,15 +42056,15 @@ var isBuffer$4 = /* @__PURE__ */ __name(function isBuffer2(obj) {
|
|
|
41825
42056
|
var combine$1 = /* @__PURE__ */ __name(function combine(a2, b3) {
|
|
41826
42057
|
return [].concat(a2, b3);
|
|
41827
42058
|
}, "combine");
|
|
41828
|
-
var maybeMap = /* @__PURE__ */ __name(function maybeMap2(val2,
|
|
42059
|
+
var maybeMap = /* @__PURE__ */ __name(function maybeMap2(val2, fn4) {
|
|
41829
42060
|
if (isArray$b(val2)) {
|
|
41830
42061
|
var mapped = [];
|
|
41831
42062
|
for (var i = 0; i < val2.length; i += 1) {
|
|
41832
|
-
mapped.push(
|
|
42063
|
+
mapped.push(fn4(val2[i]));
|
|
41833
42064
|
}
|
|
41834
42065
|
return mapped;
|
|
41835
42066
|
}
|
|
41836
|
-
return
|
|
42067
|
+
return fn4(val2);
|
|
41837
42068
|
}, "maybeMap");
|
|
41838
42069
|
var utils$6 = {
|
|
41839
42070
|
arrayToObject,
|
|
@@ -46457,8 +46688,8 @@ var Saturation = function(_ref) {
|
|
|
46457
46688
|
_this.handleMouseUp = function() {
|
|
46458
46689
|
_this.unbindEventListeners();
|
|
46459
46690
|
};
|
|
46460
|
-
_this.throttle = throttle$1(function(
|
|
46461
|
-
|
|
46691
|
+
_this.throttle = throttle$1(function(fn4, data, e2) {
|
|
46692
|
+
fn4(data, e2);
|
|
46462
46693
|
}, 50);
|
|
46463
46694
|
return _this;
|
|
46464
46695
|
}
|
|
@@ -46830,8 +47061,8 @@ tinycolor.prototype = {
|
|
|
46830
47061
|
clone: /* @__PURE__ */ __name(function clone3() {
|
|
46831
47062
|
return tinycolor(this.toString());
|
|
46832
47063
|
}, "clone"),
|
|
46833
|
-
_applyModification: /* @__PURE__ */ __name(function _applyModification(
|
|
46834
|
-
var color2 =
|
|
47064
|
+
_applyModification: /* @__PURE__ */ __name(function _applyModification(fn4, args) {
|
|
47065
|
+
var color2 = fn4.apply(null, [this].concat([].slice.call(args)));
|
|
46835
47066
|
this._r = color2._r;
|
|
46836
47067
|
this._g = color2._g;
|
|
46837
47068
|
this._b = color2._b;
|
|
@@ -46859,8 +47090,8 @@ tinycolor.prototype = {
|
|
|
46859
47090
|
spin: /* @__PURE__ */ __name(function spin() {
|
|
46860
47091
|
return this._applyModification(_spin, arguments);
|
|
46861
47092
|
}, "spin"),
|
|
46862
|
-
_applyCombination: /* @__PURE__ */ __name(function _applyCombination(
|
|
46863
|
-
return
|
|
47093
|
+
_applyCombination: /* @__PURE__ */ __name(function _applyCombination(fn4, args) {
|
|
47094
|
+
return fn4.apply(null, [this].concat([].slice.call(args)));
|
|
46864
47095
|
}, "_applyCombination"),
|
|
46865
47096
|
analogous: /* @__PURE__ */ __name(function analogous() {
|
|
46866
47097
|
return this._applyCombination(_analogous, arguments);
|
|
@@ -47780,8 +48011,8 @@ var ColorWrap = /* @__PURE__ */ __name(function ColorWrap2(Picker) {
|
|
|
47780
48011
|
}
|
|
47781
48012
|
};
|
|
47782
48013
|
_this.state = _extends$e({}, toState(props.color, 0));
|
|
47783
|
-
_this.debounce = debounce$1(function(
|
|
47784
|
-
|
|
48014
|
+
_this.debounce = debounce$1(function(fn4, data, event) {
|
|
48015
|
+
fn4(data, event);
|
|
47785
48016
|
}, 100);
|
|
47786
48017
|
return _this;
|
|
47787
48018
|
}
|
|
@@ -56520,9 +56751,9 @@ const _DataTable = class _DataTable extends React$2.Component {
|
|
|
56520
56751
|
return window.toastr.warning("No text to copy");
|
|
56521
56752
|
this.handleCopyHelper(textToCopy, "Column copied");
|
|
56522
56753
|
}, "handleCopyColumn"));
|
|
56523
|
-
__publicField(this, "updateEntitiesHelper", /* @__PURE__ */ __name((ents,
|
|
56754
|
+
__publicField(this, "updateEntitiesHelper", /* @__PURE__ */ __name((ents, fn4) => {
|
|
56524
56755
|
const { change, reduxFormEntitiesUndoRedoStack = { currentVersion: 0 } } = this.props;
|
|
56525
|
-
const [nextState, patches, inversePatches] = cn(ents,
|
|
56756
|
+
const [nextState, patches, inversePatches] = cn(ents, fn4);
|
|
56526
56757
|
if (!inversePatches.length)
|
|
56527
56758
|
return;
|
|
56528
56759
|
const thatNewNew = [...nextState];
|
|
@@ -58294,8 +58525,8 @@ const _DataTable = class _DataTable extends React$2.Component {
|
|
|
58294
58525
|
let updateTableDisplayDensityToUse = updateTableDisplayDensity;
|
|
58295
58526
|
let resetDefaultVisibilityToUse = resetDefaultVisibility;
|
|
58296
58527
|
if (withDisplayOptions && !syncDisplayOptionsToDb) {
|
|
58297
|
-
const wrapUpdate = /* @__PURE__ */ __name((
|
|
58298
|
-
|
|
58528
|
+
const wrapUpdate = /* @__PURE__ */ __name((fn4) => (...args) => {
|
|
58529
|
+
fn4(...args);
|
|
58299
58530
|
change("localStorageForceUpdate", Math.random());
|
|
58300
58531
|
}, "wrapUpdate");
|
|
58301
58532
|
updateColumnVisibilityToUse = wrapUpdate(updateColumnVisibility);
|
|
@@ -58490,12 +58721,13 @@ const _DataTable = class _DataTable extends React$2.Component {
|
|
|
58490
58721
|
tabIndex: -1,
|
|
58491
58722
|
onKeyDown: (e2) => {
|
|
58492
58723
|
var _a2, _b2, _c, _d, _e, _f;
|
|
58493
|
-
const
|
|
58494
|
-
|
|
58724
|
+
const isTabKey = e2.keyCode === 9;
|
|
58725
|
+
const isArrowKey = e2.keyCode >= 37 && e2.keyCode <= 40;
|
|
58726
|
+
if (isArrowKey && ((_a2 = e2.target) == null ? void 0 : _a2.tagName) !== "INPUT" || isTabKey) {
|
|
58495
58727
|
const { schema: schema22, entities: entities2 } = computePresets(this.props);
|
|
58496
58728
|
const left2 = e2.keyCode === 37;
|
|
58497
58729
|
const up = e2.keyCode === 38;
|
|
58498
|
-
const down = e2.keyCode === 40;
|
|
58730
|
+
const down = e2.keyCode === 40 || e2.keyCode === 13;
|
|
58499
58731
|
let cellIdToUse = this.getPrimarySelectedCellId();
|
|
58500
58732
|
const pathToIndex = getFieldPathToIndex(schema22);
|
|
58501
58733
|
const entityMap = getEntityIdToEntity(entities2);
|
|
@@ -59166,7 +59398,7 @@ const wrapDialog = /* @__PURE__ */ __name((topLevelDialogProps = {}) => (Compone
|
|
|
59166
59398
|
/* @__PURE__ */ React$2.createElement(Component, __spreadValues({ hideModal }, otherProps))
|
|
59167
59399
|
);
|
|
59168
59400
|
}, "wrapDialog");
|
|
59169
|
-
function renderOnDoc(
|
|
59401
|
+
function renderOnDoc(fn4) {
|
|
59170
59402
|
const elemDiv = document.createElement("div");
|
|
59171
59403
|
elemDiv.style.cssText = "position:absolute;width:100%;height:100%;top:0px;opacity:0.3;z-index:0;";
|
|
59172
59404
|
document.body.appendChild(elemDiv);
|
|
@@ -59176,7 +59408,7 @@ function renderOnDoc(fn3) {
|
|
|
59176
59408
|
document.body.removeChild(elemDiv);
|
|
59177
59409
|
});
|
|
59178
59410
|
}, "handleClose");
|
|
59179
|
-
return ReactDOM$1.render(
|
|
59411
|
+
return ReactDOM$1.render(fn4(handleClose), elemDiv);
|
|
59180
59412
|
}
|
|
59181
59413
|
__name(renderOnDoc, "renderOnDoc");
|
|
59182
59414
|
function showConfirmationDialog(opts2) {
|
|
@@ -64508,9 +64740,9 @@ var bluebird = { exports: {} };
|
|
|
64508
64740
|
this._schedule = schedule;
|
|
64509
64741
|
}
|
|
64510
64742
|
__name(Async, "Async");
|
|
64511
|
-
Async.prototype.setScheduler = function(
|
|
64743
|
+
Async.prototype.setScheduler = function(fn4) {
|
|
64512
64744
|
var prev = this._schedule;
|
|
64513
|
-
this._schedule =
|
|
64745
|
+
this._schedule = fn4;
|
|
64514
64746
|
this._customScheduler = true;
|
|
64515
64747
|
return prev;
|
|
64516
64748
|
};
|
|
@@ -64528,33 +64760,33 @@ var bluebird = { exports: {} };
|
|
|
64528
64760
|
this.throwLater(e2);
|
|
64529
64761
|
}
|
|
64530
64762
|
};
|
|
64531
|
-
Async.prototype.throwLater = function(
|
|
64763
|
+
Async.prototype.throwLater = function(fn4, arg) {
|
|
64532
64764
|
if (arguments.length === 1) {
|
|
64533
|
-
arg =
|
|
64534
|
-
|
|
64765
|
+
arg = fn4;
|
|
64766
|
+
fn4 = /* @__PURE__ */ __name(function() {
|
|
64535
64767
|
throw arg;
|
|
64536
64768
|
}, "fn");
|
|
64537
64769
|
}
|
|
64538
64770
|
if (typeof setTimeout !== "undefined") {
|
|
64539
64771
|
setTimeout(function() {
|
|
64540
|
-
|
|
64772
|
+
fn4(arg);
|
|
64541
64773
|
}, 0);
|
|
64542
64774
|
} else
|
|
64543
64775
|
try {
|
|
64544
64776
|
this._schedule(function() {
|
|
64545
|
-
|
|
64777
|
+
fn4(arg);
|
|
64546
64778
|
});
|
|
64547
64779
|
} catch (e2) {
|
|
64548
64780
|
throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n");
|
|
64549
64781
|
}
|
|
64550
64782
|
};
|
|
64551
|
-
function AsyncInvokeLater(
|
|
64552
|
-
this._lateQueue.push(
|
|
64783
|
+
function AsyncInvokeLater(fn4, receiver, arg) {
|
|
64784
|
+
this._lateQueue.push(fn4, receiver, arg);
|
|
64553
64785
|
this._queueTick();
|
|
64554
64786
|
}
|
|
64555
64787
|
__name(AsyncInvokeLater, "AsyncInvokeLater");
|
|
64556
|
-
function AsyncInvoke(
|
|
64557
|
-
this._normalQueue.push(
|
|
64788
|
+
function AsyncInvoke(fn4, receiver, arg) {
|
|
64789
|
+
this._normalQueue.push(fn4, receiver, arg);
|
|
64558
64790
|
this._queueTick();
|
|
64559
64791
|
}
|
|
64560
64792
|
__name(AsyncInvoke, "AsyncInvoke");
|
|
@@ -64573,13 +64805,13 @@ var bluebird = { exports: {} };
|
|
|
64573
64805
|
}
|
|
64574
64806
|
__name(_drainQueue, "_drainQueue");
|
|
64575
64807
|
function _drainQueueStep(queue) {
|
|
64576
|
-
var
|
|
64577
|
-
if (typeof
|
|
64578
|
-
|
|
64808
|
+
var fn4 = queue.shift();
|
|
64809
|
+
if (typeof fn4 !== "function") {
|
|
64810
|
+
fn4._settlePromises();
|
|
64579
64811
|
} else {
|
|
64580
64812
|
var receiver = queue.shift();
|
|
64581
64813
|
var arg = queue.shift();
|
|
64582
|
-
|
|
64814
|
+
fn4.call(receiver, arg);
|
|
64583
64815
|
}
|
|
64584
64816
|
}
|
|
64585
64817
|
__name(_drainQueueStep, "_drainQueueStep");
|
|
@@ -64695,20 +64927,20 @@ var bluebird = { exports: {} };
|
|
|
64695
64927
|
util2.isIdentifier;
|
|
64696
64928
|
var getGetter;
|
|
64697
64929
|
function ensureMethod(obj, methodName) {
|
|
64698
|
-
var
|
|
64930
|
+
var fn4;
|
|
64699
64931
|
if (obj != null)
|
|
64700
|
-
|
|
64701
|
-
if (typeof
|
|
64932
|
+
fn4 = obj[methodName];
|
|
64933
|
+
if (typeof fn4 !== "function") {
|
|
64702
64934
|
var message = "Object " + util2.classString(obj) + " has no method '" + util2.toString(methodName) + "'";
|
|
64703
64935
|
throw new Promise2.TypeError(message);
|
|
64704
64936
|
}
|
|
64705
|
-
return
|
|
64937
|
+
return fn4;
|
|
64706
64938
|
}
|
|
64707
64939
|
__name(ensureMethod, "ensureMethod");
|
|
64708
64940
|
function caller(obj) {
|
|
64709
64941
|
var methodName = this.pop();
|
|
64710
|
-
var
|
|
64711
|
-
return
|
|
64942
|
+
var fn4 = ensureMethod(obj, methodName);
|
|
64943
|
+
return fn4.apply(obj, this);
|
|
64712
64944
|
}
|
|
64713
64945
|
__name(caller, "caller");
|
|
64714
64946
|
Promise2.prototype.call = function(methodName) {
|
|
@@ -65079,13 +65311,13 @@ var bluebird = { exports: {} };
|
|
|
65079
65311
|
Promise2.prototype._warn = function(message, shouldUseOwnTrace, promise) {
|
|
65080
65312
|
return warn(message, shouldUseOwnTrace, promise || this);
|
|
65081
65313
|
};
|
|
65082
|
-
Promise2.onPossiblyUnhandledRejection = function(
|
|
65314
|
+
Promise2.onPossiblyUnhandledRejection = function(fn4) {
|
|
65083
65315
|
var context = Promise2._getContext();
|
|
65084
|
-
possiblyUnhandledRejection = util2.contextBind(context,
|
|
65316
|
+
possiblyUnhandledRejection = util2.contextBind(context, fn4);
|
|
65085
65317
|
};
|
|
65086
|
-
Promise2.onUnhandledRejectionHandled = function(
|
|
65318
|
+
Promise2.onUnhandledRejectionHandled = function(fn4) {
|
|
65087
65319
|
var context = Promise2._getContext();
|
|
65088
|
-
unhandledRejectionHandled = util2.contextBind(context,
|
|
65320
|
+
unhandledRejectionHandled = util2.contextBind(context, fn4);
|
|
65089
65321
|
};
|
|
65090
65322
|
var disableLongStackTraces = /* @__PURE__ */ __name(function() {
|
|
65091
65323
|
}, "disableLongStackTraces");
|
|
@@ -65124,8 +65356,8 @@ var bluebird = { exports: {} };
|
|
|
65124
65356
|
util2.global.onunhandledrejection = null;
|
|
65125
65357
|
return ret;
|
|
65126
65358
|
},
|
|
65127
|
-
after: function(
|
|
65128
|
-
util2.global.onunhandledrejection =
|
|
65359
|
+
after: function(fn4) {
|
|
65360
|
+
util2.global.onunhandledrejection = fn4;
|
|
65129
65361
|
}
|
|
65130
65362
|
},
|
|
65131
65363
|
rejectionhandled: {
|
|
@@ -65134,20 +65366,20 @@ var bluebird = { exports: {} };
|
|
|
65134
65366
|
util2.global.onrejectionhandled = null;
|
|
65135
65367
|
return ret;
|
|
65136
65368
|
},
|
|
65137
|
-
after: function(
|
|
65138
|
-
util2.global.onrejectionhandled =
|
|
65369
|
+
after: function(fn4) {
|
|
65370
|
+
util2.global.onrejectionhandled = fn4;
|
|
65139
65371
|
}
|
|
65140
65372
|
}
|
|
65141
65373
|
};
|
|
65142
65374
|
var fireDomEvent = function() {
|
|
65143
65375
|
var dispatch = /* @__PURE__ */ __name(function(legacy, e2) {
|
|
65144
65376
|
if (legacy) {
|
|
65145
|
-
var
|
|
65377
|
+
var fn4;
|
|
65146
65378
|
try {
|
|
65147
|
-
|
|
65379
|
+
fn4 = legacy.before();
|
|
65148
65380
|
return !util2.global.dispatchEvent(e2);
|
|
65149
65381
|
} finally {
|
|
65150
|
-
legacy.after(
|
|
65382
|
+
legacy.after(fn4);
|
|
65151
65383
|
}
|
|
65152
65384
|
} else {
|
|
65153
65385
|
return !util2.global.dispatchEvent(e2);
|
|
@@ -66013,18 +66245,18 @@ var bluebird = { exports: {} };
|
|
|
66013
66245
|
return PromiseAll(this);
|
|
66014
66246
|
}
|
|
66015
66247
|
__name(promiseAllThis, "promiseAllThis");
|
|
66016
|
-
function PromiseMapSeries(promises,
|
|
66017
|
-
return PromiseReduce(promises,
|
|
66248
|
+
function PromiseMapSeries(promises, fn4) {
|
|
66249
|
+
return PromiseReduce(promises, fn4, INTERNAL, INTERNAL);
|
|
66018
66250
|
}
|
|
66019
66251
|
__name(PromiseMapSeries, "PromiseMapSeries");
|
|
66020
|
-
Promise2.prototype.each = function(
|
|
66021
|
-
return PromiseReduce(this,
|
|
66252
|
+
Promise2.prototype.each = function(fn4) {
|
|
66253
|
+
return PromiseReduce(this, fn4, INTERNAL, 0)._then(promiseAllThis, void 0, void 0, this, void 0);
|
|
66022
66254
|
};
|
|
66023
|
-
Promise2.prototype.mapSeries = function(
|
|
66024
|
-
return PromiseReduce(this,
|
|
66255
|
+
Promise2.prototype.mapSeries = function(fn4) {
|
|
66256
|
+
return PromiseReduce(this, fn4, INTERNAL, INTERNAL);
|
|
66025
66257
|
};
|
|
66026
|
-
Promise2.each = function(promises,
|
|
66027
|
-
return PromiseReduce(promises,
|
|
66258
|
+
Promise2.each = function(promises, fn4) {
|
|
66259
|
+
return PromiseReduce(promises, fn4, INTERNAL, 0)._then(promiseAllThis, void 0, void 0, promises, void 0);
|
|
66028
66260
|
};
|
|
66029
66261
|
Promise2.mapSeries = PromiseMapSeries;
|
|
66030
66262
|
};
|
|
@@ -66213,11 +66445,11 @@ var bluebird = { exports: {} };
|
|
|
66213
66445
|
}, {}], 14: [function(_dereq_2, module3, exports3) {
|
|
66214
66446
|
module3.exports = function(Promise2, INTERNAL) {
|
|
66215
66447
|
var PromiseMap = Promise2.map;
|
|
66216
|
-
Promise2.prototype.filter = function(
|
|
66217
|
-
return PromiseMap(this,
|
|
66448
|
+
Promise2.prototype.filter = function(fn4, options) {
|
|
66449
|
+
return PromiseMap(this, fn4, options, INTERNAL);
|
|
66218
66450
|
};
|
|
66219
|
-
Promise2.filter = function(promises,
|
|
66220
|
-
return PromiseMap(promises,
|
|
66451
|
+
Promise2.filter = function(promises, fn4, options) {
|
|
66452
|
+
return PromiseMap(promises, fn4, options, INTERNAL);
|
|
66221
66453
|
};
|
|
66222
66454
|
};
|
|
66223
66455
|
}, {}], 15: [function(_dereq_2, module3, exports3) {
|
|
@@ -66563,11 +66795,11 @@ var bluebird = { exports: {} };
|
|
|
66563
66795
|
return ret;
|
|
66564
66796
|
};
|
|
66565
66797
|
};
|
|
66566
|
-
Promise2.coroutine.addYieldHandler = function(
|
|
66567
|
-
if (typeof
|
|
66568
|
-
throw new TypeError2("expecting a function but got " + util2.classString(
|
|
66798
|
+
Promise2.coroutine.addYieldHandler = function(fn4) {
|
|
66799
|
+
if (typeof fn4 !== "function") {
|
|
66800
|
+
throw new TypeError2("expecting a function but got " + util2.classString(fn4));
|
|
66569
66801
|
}
|
|
66570
|
-
yieldHandlers.push(
|
|
66802
|
+
yieldHandlers.push(fn4);
|
|
66571
66803
|
};
|
|
66572
66804
|
Promise2.spawn = function(generatorFunction) {
|
|
66573
66805
|
debug.deprecated("Promise.spawn()", "Promise.coroutine()");
|
|
@@ -66588,16 +66820,16 @@ var bluebird = { exports: {} };
|
|
|
66588
66820
|
util2.errorObj;
|
|
66589
66821
|
Promise2.join = function() {
|
|
66590
66822
|
var last2 = arguments.length - 1;
|
|
66591
|
-
var
|
|
66823
|
+
var fn4;
|
|
66592
66824
|
if (last2 > 0 && typeof arguments[last2] === "function") {
|
|
66593
|
-
|
|
66825
|
+
fn4 = arguments[last2];
|
|
66594
66826
|
var ret;
|
|
66595
66827
|
}
|
|
66596
66828
|
var args = [].slice.call(arguments);
|
|
66597
|
-
if (
|
|
66829
|
+
if (fn4)
|
|
66598
66830
|
args.pop();
|
|
66599
66831
|
var ret = new PromiseArray(args).promise();
|
|
66600
|
-
return
|
|
66832
|
+
return fn4 !== void 0 ? ret.spread(fn4) : ret;
|
|
66601
66833
|
};
|
|
66602
66834
|
};
|
|
66603
66835
|
}, { "./util": 36 }], 18: [function(_dereq_2, module3, exports3) {
|
|
@@ -66606,11 +66838,11 @@ var bluebird = { exports: {} };
|
|
|
66606
66838
|
var tryCatch = util2.tryCatch;
|
|
66607
66839
|
var errorObj = util2.errorObj;
|
|
66608
66840
|
var async = Promise2._async;
|
|
66609
|
-
function MappingPromiseArray(promises,
|
|
66841
|
+
function MappingPromiseArray(promises, fn4, limit2, _filter) {
|
|
66610
66842
|
this.constructor$(promises);
|
|
66611
66843
|
this._promise._captureStackTrace();
|
|
66612
66844
|
var context = Promise2._getContext();
|
|
66613
|
-
this._callback = util2.contextBind(context,
|
|
66845
|
+
this._callback = util2.contextBind(context, fn4);
|
|
66614
66846
|
this._preservedValues = _filter === INTERNAL ? new Array(this.length()) : null;
|
|
66615
66847
|
this._limit = limit2;
|
|
66616
66848
|
this._inFlight = 0;
|
|
@@ -66728,9 +66960,9 @@ var bluebird = { exports: {} };
|
|
|
66728
66960
|
MappingPromiseArray.prototype.preservedValues = function() {
|
|
66729
66961
|
return this._preservedValues;
|
|
66730
66962
|
};
|
|
66731
|
-
function map3(promises,
|
|
66732
|
-
if (typeof
|
|
66733
|
-
return apiRejection("expecting a function but got " + util2.classString(
|
|
66963
|
+
function map3(promises, fn4, options, _filter) {
|
|
66964
|
+
if (typeof fn4 !== "function") {
|
|
66965
|
+
return apiRejection("expecting a function but got " + util2.classString(fn4));
|
|
66734
66966
|
}
|
|
66735
66967
|
var limit2 = 0;
|
|
66736
66968
|
if (options !== void 0) {
|
|
@@ -66748,29 +66980,29 @@ var bluebird = { exports: {} };
|
|
|
66748
66980
|
}
|
|
66749
66981
|
}
|
|
66750
66982
|
limit2 = typeof limit2 === "number" && isFinite(limit2) && limit2 >= 1 ? limit2 : 0;
|
|
66751
|
-
return new MappingPromiseArray(promises,
|
|
66983
|
+
return new MappingPromiseArray(promises, fn4, limit2, _filter).promise();
|
|
66752
66984
|
}
|
|
66753
66985
|
__name(map3, "map");
|
|
66754
|
-
Promise2.prototype.map = function(
|
|
66755
|
-
return map3(this,
|
|
66986
|
+
Promise2.prototype.map = function(fn4, options) {
|
|
66987
|
+
return map3(this, fn4, options, null);
|
|
66756
66988
|
};
|
|
66757
|
-
Promise2.map = function(promises,
|
|
66758
|
-
return map3(promises,
|
|
66989
|
+
Promise2.map = function(promises, fn4, options, _filter) {
|
|
66990
|
+
return map3(promises, fn4, options, _filter);
|
|
66759
66991
|
};
|
|
66760
66992
|
};
|
|
66761
66993
|
}, { "./util": 36 }], 19: [function(_dereq_2, module3, exports3) {
|
|
66762
66994
|
module3.exports = function(Promise2, INTERNAL, tryConvertToPromise, apiRejection, debug) {
|
|
66763
66995
|
var util2 = _dereq_2("./util");
|
|
66764
66996
|
var tryCatch = util2.tryCatch;
|
|
66765
|
-
Promise2.method = function(
|
|
66766
|
-
if (typeof
|
|
66767
|
-
throw new Promise2.TypeError("expecting a function but got " + util2.classString(
|
|
66997
|
+
Promise2.method = function(fn4) {
|
|
66998
|
+
if (typeof fn4 !== "function") {
|
|
66999
|
+
throw new Promise2.TypeError("expecting a function but got " + util2.classString(fn4));
|
|
66768
67000
|
}
|
|
66769
67001
|
return function() {
|
|
66770
67002
|
var ret = new Promise2(INTERNAL);
|
|
66771
67003
|
ret._captureStackTrace();
|
|
66772
67004
|
ret._pushContext();
|
|
66773
|
-
var value = tryCatch(
|
|
67005
|
+
var value = tryCatch(fn4).apply(this, arguments);
|
|
66774
67006
|
var promiseCreated = ret._popContext();
|
|
66775
67007
|
debug.checkForgottenReturns(
|
|
66776
67008
|
value,
|
|
@@ -66782,9 +67014,9 @@ var bluebird = { exports: {} };
|
|
|
66782
67014
|
return ret;
|
|
66783
67015
|
};
|
|
66784
67016
|
};
|
|
66785
|
-
Promise2.attempt = Promise2["try"] = function(
|
|
66786
|
-
if (typeof
|
|
66787
|
-
return apiRejection("expecting a function but got " + util2.classString(
|
|
67017
|
+
Promise2.attempt = Promise2["try"] = function(fn4) {
|
|
67018
|
+
if (typeof fn4 !== "function") {
|
|
67019
|
+
return apiRejection("expecting a function but got " + util2.classString(fn4));
|
|
66788
67020
|
}
|
|
66789
67021
|
var ret = new Promise2(INTERNAL);
|
|
66790
67022
|
ret._captureStackTrace();
|
|
@@ -66794,9 +67026,9 @@ var bluebird = { exports: {} };
|
|
|
66794
67026
|
debug.deprecated("calling Promise.try with more than 1 argument");
|
|
66795
67027
|
var arg = arguments[1];
|
|
66796
67028
|
var ctx2 = arguments[2];
|
|
66797
|
-
value = util2.isArray(arg) ? tryCatch(
|
|
67029
|
+
value = util2.isArray(arg) ? tryCatch(fn4).apply(ctx2, arg) : tryCatch(fn4).call(ctx2, arg);
|
|
66798
67030
|
} else {
|
|
66799
|
-
value = tryCatch(
|
|
67031
|
+
value = tryCatch(fn4)();
|
|
66800
67032
|
}
|
|
66801
67033
|
var promiseCreated = ret._popContext();
|
|
66802
67034
|
debug.checkForgottenReturns(
|
|
@@ -67035,7 +67267,7 @@ var bluebird = { exports: {} };
|
|
|
67035
67267
|
Promise2.prototype.toString = function() {
|
|
67036
67268
|
return "[object Promise]";
|
|
67037
67269
|
};
|
|
67038
|
-
Promise2.prototype.caught = Promise2.prototype["catch"] = function(
|
|
67270
|
+
Promise2.prototype.caught = Promise2.prototype["catch"] = function(fn4) {
|
|
67039
67271
|
var len = arguments.length;
|
|
67040
67272
|
if (len > 1) {
|
|
67041
67273
|
var catchInstances = new Array(len - 1), j = 0, i;
|
|
@@ -67048,13 +67280,13 @@ var bluebird = { exports: {} };
|
|
|
67048
67280
|
}
|
|
67049
67281
|
}
|
|
67050
67282
|
catchInstances.length = j;
|
|
67051
|
-
|
|
67052
|
-
if (typeof
|
|
67053
|
-
throw new TypeError2("The last argument to .catch() must be a function, got " + util2.toString(
|
|
67283
|
+
fn4 = arguments[i];
|
|
67284
|
+
if (typeof fn4 !== "function") {
|
|
67285
|
+
throw new TypeError2("The last argument to .catch() must be a function, got " + util2.toString(fn4));
|
|
67054
67286
|
}
|
|
67055
|
-
return this.then(void 0, catchFilter(catchInstances,
|
|
67287
|
+
return this.then(void 0, catchFilter(catchInstances, fn4, this));
|
|
67056
67288
|
}
|
|
67057
|
-
return this.then(void 0,
|
|
67289
|
+
return this.then(void 0, fn4);
|
|
67058
67290
|
};
|
|
67059
67291
|
Promise2.prototype.reflect = function() {
|
|
67060
67292
|
return this._then(
|
|
@@ -67079,11 +67311,11 @@ var bluebird = { exports: {} };
|
|
|
67079
67311
|
var promise = this._then(didFulfill, didReject, void 0, void 0, void 0);
|
|
67080
67312
|
promise._setIsFinal();
|
|
67081
67313
|
};
|
|
67082
|
-
Promise2.prototype.spread = function(
|
|
67083
|
-
if (typeof
|
|
67084
|
-
return apiRejection("expecting a function but got " + util2.classString(
|
|
67314
|
+
Promise2.prototype.spread = function(fn4) {
|
|
67315
|
+
if (typeof fn4 !== "function") {
|
|
67316
|
+
return apiRejection("expecting a function but got " + util2.classString(fn4));
|
|
67085
67317
|
}
|
|
67086
|
-
return this.all()._then(
|
|
67318
|
+
return this.all()._then(fn4, void 0, void 0, APPLY, void 0);
|
|
67087
67319
|
};
|
|
67088
67320
|
Promise2.prototype.toJSON = function() {
|
|
67089
67321
|
var ret = {
|
|
@@ -67107,18 +67339,18 @@ var bluebird = { exports: {} };
|
|
|
67107
67339
|
}
|
|
67108
67340
|
return new PromiseArray(this).promise();
|
|
67109
67341
|
};
|
|
67110
|
-
Promise2.prototype.error = function(
|
|
67111
|
-
return this.caught(util2.originatesFromRejection,
|
|
67342
|
+
Promise2.prototype.error = function(fn4) {
|
|
67343
|
+
return this.caught(util2.originatesFromRejection, fn4);
|
|
67112
67344
|
};
|
|
67113
67345
|
Promise2.getNewLibraryCopy = module3.exports;
|
|
67114
67346
|
Promise2.is = function(val2) {
|
|
67115
67347
|
return val2 instanceof Promise2;
|
|
67116
67348
|
};
|
|
67117
|
-
Promise2.fromNode = Promise2.fromCallback = function(
|
|
67349
|
+
Promise2.fromNode = Promise2.fromCallback = function(fn4) {
|
|
67118
67350
|
var ret = new Promise2(INTERNAL);
|
|
67119
67351
|
ret._captureStackTrace();
|
|
67120
67352
|
var multiArgs = arguments.length > 1 ? !!Object(arguments[1]).multiArgs : false;
|
|
67121
|
-
var result = tryCatch(
|
|
67353
|
+
var result = tryCatch(fn4)(nodebackForPromise(ret, multiArgs));
|
|
67122
67354
|
if (result === errorObj) {
|
|
67123
67355
|
ret._rejectCallback(result.e, true);
|
|
67124
67356
|
}
|
|
@@ -67146,11 +67378,11 @@ var bluebird = { exports: {} };
|
|
|
67146
67378
|
ret._rejectCallback(reason, true);
|
|
67147
67379
|
return ret;
|
|
67148
67380
|
};
|
|
67149
|
-
Promise2.setScheduler = function(
|
|
67150
|
-
if (typeof
|
|
67151
|
-
throw new TypeError2("expecting a function but got " + util2.classString(
|
|
67381
|
+
Promise2.setScheduler = function(fn4) {
|
|
67382
|
+
if (typeof fn4 !== "function") {
|
|
67383
|
+
throw new TypeError2("expecting a function but got " + util2.classString(fn4));
|
|
67152
67384
|
}
|
|
67153
|
-
return async.setScheduler(
|
|
67385
|
+
return async.setScheduler(fn4);
|
|
67154
67386
|
};
|
|
67155
67387
|
Promise2.prototype._then = function(didFulfill, didReject, _2, receiver, internalData) {
|
|
67156
67388
|
var haveInternalData = internalData !== void 0;
|
|
@@ -67867,9 +68099,9 @@ var bluebird = { exports: {} };
|
|
|
67867
68099
|
return !noCopyPropsPattern.test(key);
|
|
67868
68100
|
}
|
|
67869
68101
|
__name(propsFilter, "propsFilter");
|
|
67870
|
-
function isPromisified(
|
|
68102
|
+
function isPromisified(fn4) {
|
|
67871
68103
|
try {
|
|
67872
|
-
return
|
|
68104
|
+
return fn4.__isPromisified__ === true;
|
|
67873
68105
|
} catch (e2) {
|
|
67874
68106
|
return false;
|
|
67875
68107
|
}
|
|
@@ -67917,13 +68149,13 @@ var bluebird = { exports: {} };
|
|
|
67917
68149
|
return str.replace(/([$])/, "\\$");
|
|
67918
68150
|
}, "escapeIdentRegex");
|
|
67919
68151
|
var makeNodePromisifiedEval;
|
|
67920
|
-
function makeNodePromisifiedClosure(callback2, receiver, _2,
|
|
68152
|
+
function makeNodePromisifiedClosure(callback2, receiver, _2, fn4, __, multiArgs) {
|
|
67921
68153
|
var defaultThis = function() {
|
|
67922
68154
|
return this;
|
|
67923
68155
|
}();
|
|
67924
68156
|
var method = callback2;
|
|
67925
68157
|
if (typeof method === "string") {
|
|
67926
|
-
callback2 =
|
|
68158
|
+
callback2 = fn4;
|
|
67927
68159
|
}
|
|
67928
68160
|
function promisified() {
|
|
67929
68161
|
var _receiver = receiver;
|
|
@@ -67932,9 +68164,9 @@ var bluebird = { exports: {} };
|
|
|
67932
68164
|
var promise = new Promise2(INTERNAL);
|
|
67933
68165
|
promise._captureStackTrace();
|
|
67934
68166
|
var cb = typeof method === "string" && this !== defaultThis ? this[method] : callback2;
|
|
67935
|
-
var
|
|
68167
|
+
var fn5 = nodebackForPromise(promise, multiArgs);
|
|
67936
68168
|
try {
|
|
67937
|
-
cb.apply(_receiver, withAppended(arguments,
|
|
68169
|
+
cb.apply(_receiver, withAppended(arguments, fn5));
|
|
67938
68170
|
} catch (e2) {
|
|
67939
68171
|
promise._rejectCallback(maybeWrapAsError(e2), true, true);
|
|
67940
68172
|
}
|
|
@@ -67953,17 +68185,17 @@ var bluebird = { exports: {} };
|
|
|
67953
68185
|
var methods = promisifiableMethods(obj, suffix, suffixRegexp, filter);
|
|
67954
68186
|
for (var i = 0, len = methods.length; i < len; i += 2) {
|
|
67955
68187
|
var key = methods[i];
|
|
67956
|
-
var
|
|
68188
|
+
var fn4 = methods[i + 1];
|
|
67957
68189
|
var promisifiedKey = key + suffix;
|
|
67958
68190
|
if (promisifier === makeNodePromisified) {
|
|
67959
|
-
obj[promisifiedKey] = makeNodePromisified(key, THIS, key,
|
|
68191
|
+
obj[promisifiedKey] = makeNodePromisified(key, THIS, key, fn4, suffix, multiArgs);
|
|
67960
68192
|
} else {
|
|
67961
|
-
var promisified = promisifier(
|
|
68193
|
+
var promisified = promisifier(fn4, function() {
|
|
67962
68194
|
return makeNodePromisified(
|
|
67963
68195
|
key,
|
|
67964
68196
|
THIS,
|
|
67965
68197
|
key,
|
|
67966
|
-
|
|
68198
|
+
fn4,
|
|
67967
68199
|
suffix,
|
|
67968
68200
|
multiArgs
|
|
67969
68201
|
);
|
|
@@ -67987,18 +68219,18 @@ var bluebird = { exports: {} };
|
|
|
67987
68219
|
);
|
|
67988
68220
|
}
|
|
67989
68221
|
__name(promisify, "promisify");
|
|
67990
|
-
Promise2.promisify = function(
|
|
67991
|
-
if (typeof
|
|
67992
|
-
throw new TypeError2("expecting a function but got " + util2.classString(
|
|
68222
|
+
Promise2.promisify = function(fn4, options) {
|
|
68223
|
+
if (typeof fn4 !== "function") {
|
|
68224
|
+
throw new TypeError2("expecting a function but got " + util2.classString(fn4));
|
|
67993
68225
|
}
|
|
67994
|
-
if (isPromisified(
|
|
67995
|
-
return
|
|
68226
|
+
if (isPromisified(fn4)) {
|
|
68227
|
+
return fn4;
|
|
67996
68228
|
}
|
|
67997
68229
|
options = Object(options);
|
|
67998
68230
|
var receiver = options.context === void 0 ? THIS : options.context;
|
|
67999
68231
|
var multiArgs = !!options.multiArgs;
|
|
68000
|
-
var ret = promisify(
|
|
68001
|
-
util2.copyDescriptors(
|
|
68232
|
+
var ret = promisify(fn4, receiver, multiArgs);
|
|
68233
|
+
util2.copyDescriptors(fn4, ret, propsFilter);
|
|
68002
68234
|
return ret;
|
|
68003
68235
|
};
|
|
68004
68236
|
Promise2.promisifyAll = function(target, options) {
|
|
@@ -68173,10 +68405,10 @@ var bluebird = { exports: {} };
|
|
|
68173
68405
|
this[i] = arg;
|
|
68174
68406
|
this._length = length + 1;
|
|
68175
68407
|
};
|
|
68176
|
-
Queue.prototype.push = function(
|
|
68408
|
+
Queue.prototype.push = function(fn4, receiver, arg) {
|
|
68177
68409
|
var length = this.length() + 3;
|
|
68178
68410
|
if (this._willBeOverCapacity(length)) {
|
|
68179
|
-
this._pushOne(
|
|
68411
|
+
this._pushOne(fn4);
|
|
68180
68412
|
this._pushOne(receiver);
|
|
68181
68413
|
this._pushOne(arg);
|
|
68182
68414
|
return;
|
|
@@ -68184,7 +68416,7 @@ var bluebird = { exports: {} };
|
|
|
68184
68416
|
var j = this._front + length - 3;
|
|
68185
68417
|
this._checkCapacity(length);
|
|
68186
68418
|
var wrapMask = this._capacity - 1;
|
|
68187
|
-
this[j + 0 & wrapMask] =
|
|
68419
|
+
this[j + 0 & wrapMask] = fn4;
|
|
68188
68420
|
this[j + 1 & wrapMask] = receiver;
|
|
68189
68421
|
this[j + 2 & wrapMask] = arg;
|
|
68190
68422
|
this._length = length;
|
|
@@ -68257,10 +68489,10 @@ var bluebird = { exports: {} };
|
|
|
68257
68489
|
module3.exports = function(Promise2, PromiseArray, apiRejection, tryConvertToPromise, INTERNAL, debug) {
|
|
68258
68490
|
var util2 = _dereq_2("./util");
|
|
68259
68491
|
var tryCatch = util2.tryCatch;
|
|
68260
|
-
function ReductionPromiseArray(promises,
|
|
68492
|
+
function ReductionPromiseArray(promises, fn4, initialValue, _each) {
|
|
68261
68493
|
this.constructor$(promises);
|
|
68262
68494
|
var context = Promise2._getContext();
|
|
68263
|
-
this._fn = util2.contextBind(context,
|
|
68495
|
+
this._fn = util2.contextBind(context, fn4);
|
|
68264
68496
|
if (initialValue !== void 0) {
|
|
68265
68497
|
initialValue = Promise2.resolve(initialValue);
|
|
68266
68498
|
initialValue._attachCancellationCallback(this);
|
|
@@ -68354,11 +68586,11 @@ var bluebird = { exports: {} };
|
|
|
68354
68586
|
}
|
|
68355
68587
|
value._then(completed, completed, void 0, value, this);
|
|
68356
68588
|
};
|
|
68357
|
-
Promise2.prototype.reduce = function(
|
|
68358
|
-
return reduce(this,
|
|
68589
|
+
Promise2.prototype.reduce = function(fn4, initialValue) {
|
|
68590
|
+
return reduce(this, fn4, initialValue, null);
|
|
68359
68591
|
};
|
|
68360
|
-
Promise2.reduce = function(promises,
|
|
68361
|
-
return reduce(promises,
|
|
68592
|
+
Promise2.reduce = function(promises, fn4, initialValue, _each) {
|
|
68593
|
+
return reduce(promises, fn4, initialValue, _each);
|
|
68362
68594
|
};
|
|
68363
68595
|
function completed(valueOrReason, array2) {
|
|
68364
68596
|
if (this.isFulfilled()) {
|
|
@@ -68368,11 +68600,11 @@ var bluebird = { exports: {} };
|
|
|
68368
68600
|
}
|
|
68369
68601
|
}
|
|
68370
68602
|
__name(completed, "completed");
|
|
68371
|
-
function reduce(promises,
|
|
68372
|
-
if (typeof
|
|
68373
|
-
return apiRejection("expecting a function but got " + util2.classString(
|
|
68603
|
+
function reduce(promises, fn4, initialValue, _each) {
|
|
68604
|
+
if (typeof fn4 !== "function") {
|
|
68605
|
+
return apiRejection("expecting a function but got " + util2.classString(fn4));
|
|
68374
68606
|
}
|
|
68375
|
-
var array2 = new ReductionPromiseArray(promises,
|
|
68607
|
+
var array2 = new ReductionPromiseArray(promises, fn4, initialValue, _each);
|
|
68376
68608
|
return array2.promise();
|
|
68377
68609
|
}
|
|
68378
68610
|
__name(reduce, "reduce");
|
|
@@ -68391,13 +68623,13 @@ var bluebird = { exports: {} };
|
|
|
68391
68623
|
function gotValue(value) {
|
|
68392
68624
|
var array2 = this.array;
|
|
68393
68625
|
var promise = array2._promise;
|
|
68394
|
-
var
|
|
68626
|
+
var fn4 = tryCatch(array2._fn);
|
|
68395
68627
|
promise._pushContext();
|
|
68396
68628
|
var ret;
|
|
68397
68629
|
if (array2._eachValues !== void 0) {
|
|
68398
|
-
ret =
|
|
68630
|
+
ret = fn4.call(promise._boundValue(), value, this.index, this.length);
|
|
68399
68631
|
} else {
|
|
68400
|
-
ret =
|
|
68632
|
+
ret = fn4.call(
|
|
68401
68633
|
promise._boundValue(),
|
|
68402
68634
|
this.accum,
|
|
68403
68635
|
value,
|
|
@@ -68429,15 +68661,15 @@ var bluebird = { exports: {} };
|
|
|
68429
68661
|
if (util2.isNode && typeof MutationObserver === "undefined") {
|
|
68430
68662
|
var GlobalSetImmediate = commonjsGlobal.setImmediate;
|
|
68431
68663
|
var ProcessNextTick = process.nextTick;
|
|
68432
|
-
schedule = util2.isRecentNode ? function(
|
|
68433
|
-
GlobalSetImmediate.call(commonjsGlobal,
|
|
68434
|
-
} : function(
|
|
68435
|
-
ProcessNextTick.call(process,
|
|
68664
|
+
schedule = util2.isRecentNode ? function(fn4) {
|
|
68665
|
+
GlobalSetImmediate.call(commonjsGlobal, fn4);
|
|
68666
|
+
} : function(fn4) {
|
|
68667
|
+
ProcessNextTick.call(process, fn4);
|
|
68436
68668
|
};
|
|
68437
68669
|
} else if (typeof NativePromise === "function" && typeof NativePromise.resolve === "function") {
|
|
68438
68670
|
var nativePromise = NativePromise.resolve();
|
|
68439
|
-
schedule = /* @__PURE__ */ __name(function(
|
|
68440
|
-
nativePromise.then(
|
|
68671
|
+
schedule = /* @__PURE__ */ __name(function(fn4) {
|
|
68672
|
+
nativePromise.then(fn4);
|
|
68441
68673
|
}, "schedule");
|
|
68442
68674
|
} else if (typeof MutationObserver !== "undefined" && !(typeof window !== "undefined" && window.navigator && (window.navigator.standalone || window.cordova)) && "classList" in document.documentElement) {
|
|
68443
68675
|
schedule = function() {
|
|
@@ -68456,22 +68688,22 @@ var bluebird = { exports: {} };
|
|
|
68456
68688
|
toggleScheduled = true;
|
|
68457
68689
|
div22.classList.toggle("foo");
|
|
68458
68690
|
}, "scheduleToggle");
|
|
68459
|
-
return /* @__PURE__ */ __name(function schedule2(
|
|
68691
|
+
return /* @__PURE__ */ __name(function schedule2(fn4) {
|
|
68460
68692
|
var o3 = new MutationObserver(function() {
|
|
68461
68693
|
o3.disconnect();
|
|
68462
|
-
|
|
68694
|
+
fn4();
|
|
68463
68695
|
});
|
|
68464
68696
|
o3.observe(div2, opts2);
|
|
68465
68697
|
scheduleToggle();
|
|
68466
68698
|
}, "schedule");
|
|
68467
68699
|
}();
|
|
68468
68700
|
} else if (typeof setImmediate !== "undefined") {
|
|
68469
|
-
schedule = /* @__PURE__ */ __name(function(
|
|
68470
|
-
setImmediate(
|
|
68701
|
+
schedule = /* @__PURE__ */ __name(function(fn4) {
|
|
68702
|
+
setImmediate(fn4);
|
|
68471
68703
|
}, "schedule");
|
|
68472
68704
|
} else if (typeof setTimeout !== "undefined") {
|
|
68473
|
-
schedule = /* @__PURE__ */ __name(function(
|
|
68474
|
-
setTimeout(
|
|
68705
|
+
schedule = /* @__PURE__ */ __name(function(fn4) {
|
|
68706
|
+
setTimeout(fn4, 0);
|
|
68475
68707
|
}, "schedule");
|
|
68476
68708
|
} else {
|
|
68477
68709
|
schedule = noAsyncScheduler;
|
|
@@ -68999,14 +69231,14 @@ var bluebird = { exports: {} };
|
|
|
68999
69231
|
Disposer.isDisposer = function(d2) {
|
|
69000
69232
|
return d2 != null && typeof d2.resource === "function" && typeof d2.tryDispose === "function";
|
|
69001
69233
|
};
|
|
69002
|
-
function FunctionDisposer(
|
|
69003
|
-
this.constructor$(
|
|
69234
|
+
function FunctionDisposer(fn4, promise, context) {
|
|
69235
|
+
this.constructor$(fn4, promise, context);
|
|
69004
69236
|
}
|
|
69005
69237
|
__name(FunctionDisposer, "FunctionDisposer");
|
|
69006
69238
|
inherits2(FunctionDisposer, Disposer);
|
|
69007
69239
|
FunctionDisposer.prototype.doDispose = function(resource, inspection) {
|
|
69008
|
-
var
|
|
69009
|
-
return
|
|
69240
|
+
var fn4 = this.data();
|
|
69241
|
+
return fn4.call(resource, resource, inspection);
|
|
69010
69242
|
};
|
|
69011
69243
|
function maybeUnwrapDisposer(value) {
|
|
69012
69244
|
if (Disposer.isDisposer(value)) {
|
|
@@ -69037,9 +69269,9 @@ var bluebird = { exports: {} };
|
|
|
69037
69269
|
return apiRejection(
|
|
69038
69270
|
"you must pass at least 2 arguments to Promise.using"
|
|
69039
69271
|
);
|
|
69040
|
-
var
|
|
69041
|
-
if (typeof
|
|
69042
|
-
return apiRejection("expecting a function but got " + util2.classString(
|
|
69272
|
+
var fn4 = arguments[len - 1];
|
|
69273
|
+
if (typeof fn4 !== "function") {
|
|
69274
|
+
return apiRejection("expecting a function but got " + util2.classString(fn4));
|
|
69043
69275
|
}
|
|
69044
69276
|
var input;
|
|
69045
69277
|
var spreadArgs = true;
|
|
@@ -69086,8 +69318,8 @@ var bluebird = { exports: {} };
|
|
|
69086
69318
|
inspections[i2] = inspection.value();
|
|
69087
69319
|
}
|
|
69088
69320
|
promise._pushContext();
|
|
69089
|
-
|
|
69090
|
-
var ret = spreadArgs ?
|
|
69321
|
+
fn4 = tryCatch(fn4);
|
|
69322
|
+
var ret = spreadArgs ? fn4.apply(void 0, inspections) : fn4(inspections);
|
|
69091
69323
|
var promiseCreated = promise._popContext();
|
|
69092
69324
|
debug.checkForgottenReturns(
|
|
69093
69325
|
ret,
|
|
@@ -69119,9 +69351,9 @@ var bluebird = { exports: {} };
|
|
|
69119
69351
|
this._bitField = this._bitField & ~131072;
|
|
69120
69352
|
this._disposer = void 0;
|
|
69121
69353
|
};
|
|
69122
|
-
Promise2.prototype.disposer = function(
|
|
69123
|
-
if (typeof
|
|
69124
|
-
return new FunctionDisposer(
|
|
69354
|
+
Promise2.prototype.disposer = function(fn4) {
|
|
69355
|
+
if (typeof fn4 === "function") {
|
|
69356
|
+
return new FunctionDisposer(fn4, this, createContext());
|
|
69125
69357
|
}
|
|
69126
69358
|
throw new TypeError2();
|
|
69127
69359
|
};
|
|
@@ -69143,8 +69375,8 @@ var bluebird = { exports: {} };
|
|
|
69143
69375
|
}
|
|
69144
69376
|
}
|
|
69145
69377
|
__name(tryCatcher, "tryCatcher");
|
|
69146
|
-
function tryCatch(
|
|
69147
|
-
tryCatchTarget =
|
|
69378
|
+
function tryCatch(fn4) {
|
|
69379
|
+
tryCatchTarget = fn4;
|
|
69148
69380
|
return tryCatcher;
|
|
69149
69381
|
}
|
|
69150
69382
|
__name(tryCatch, "tryCatch");
|
|
@@ -69281,13 +69513,13 @@ var bluebird = { exports: {} };
|
|
|
69281
69513
|
}
|
|
69282
69514
|
}();
|
|
69283
69515
|
var thisAssignmentPattern = /this\s*\.\s*\S+\s*=/;
|
|
69284
|
-
function isClass(
|
|
69516
|
+
function isClass(fn4) {
|
|
69285
69517
|
try {
|
|
69286
|
-
if (typeof
|
|
69287
|
-
var keys5 = es5.names(
|
|
69518
|
+
if (typeof fn4 === "function") {
|
|
69519
|
+
var keys5 = es5.names(fn4.prototype);
|
|
69288
69520
|
var hasMethods = es5.isES5 && keys5.length > 1;
|
|
69289
69521
|
var hasMethodsOtherThanConstructor = keys5.length > 0 && !(keys5.length === 1 && keys5[0] === "constructor");
|
|
69290
|
-
var hasThisAssignmentAndStaticMethods = thisAssignmentPattern.test(
|
|
69522
|
+
var hasThisAssignmentAndStaticMethods = thisAssignmentPattern.test(fn4 + "") && es5.names(fn4).length > 0;
|
|
69291
69523
|
if (hasMethods || hasMethodsOtherThanConstructor || hasThisAssignmentAndStaticMethods) {
|
|
69292
69524
|
return true;
|
|
69293
69525
|
}
|
|
@@ -69459,8 +69691,8 @@ var bluebird = { exports: {} };
|
|
|
69459
69691
|
}
|
|
69460
69692
|
__name(contextBind, "contextBind");
|
|
69461
69693
|
var ret = {
|
|
69462
|
-
setReflectHandler: function(
|
|
69463
|
-
reflectHandler =
|
|
69694
|
+
setReflectHandler: function(fn4) {
|
|
69695
|
+
reflectHandler = fn4;
|
|
69464
69696
|
},
|
|
69465
69697
|
isClass,
|
|
69466
69698
|
isIdentifier,
|
|
@@ -71620,9 +71852,7 @@ function UploaderInner({
|
|
|
71620
71852
|
if (!acceptedFiles.length)
|
|
71621
71853
|
return;
|
|
71622
71854
|
setLoading(true);
|
|
71623
|
-
|
|
71624
|
-
acceptedFiles = acceptedFiles.slice(0, fileLimit);
|
|
71625
|
-
}
|
|
71855
|
+
acceptedFiles = trimFiles(acceptedFiles, fileLimit);
|
|
71626
71856
|
acceptedFiles.forEach((file) => {
|
|
71627
71857
|
file.preview = URL.createObjectURL(file);
|
|
71628
71858
|
file.loading = true;
|
|
@@ -71808,9 +72038,9 @@ function UploaderInner({
|
|
|
71808
72038
|
`It looks like there wasn't any data in your file. Please add some data and try again`
|
|
71809
72039
|
);
|
|
71810
72040
|
}
|
|
71811
|
-
const cleanedFileList =
|
|
71812
|
-
|
|
71813
|
-
fileLimit
|
|
72041
|
+
const cleanedFileList = trimFiles(
|
|
72042
|
+
[...toKeep, ...fileListToUse],
|
|
72043
|
+
fileLimit
|
|
71814
72044
|
);
|
|
71815
72045
|
handleSecondHalfOfUpload({ acceptedFiles, cleanedFileList });
|
|
71816
72046
|
})
|
|
@@ -72058,6 +72288,18 @@ function stripId(ents = []) {
|
|
|
72058
72288
|
__name(stripId, "stripId");
|
|
72059
72289
|
const manualEnterMessage = "Build CSV File";
|
|
72060
72290
|
const manualEnterSubMessage = "Paste or type data to build a CSV file";
|
|
72291
|
+
function trimFiles(incomingFiles, fileLimit) {
|
|
72292
|
+
if (fileLimit) {
|
|
72293
|
+
if (fileLimit && incomingFiles.length > fileLimit) {
|
|
72294
|
+
window.toastr && window.toastr.warning(
|
|
72295
|
+
`Detected additional files in your upload that we are ignoring. You can only upload ${fileLimit} file${fileLimit > 1 ? "s" : ""} at a time.`
|
|
72296
|
+
);
|
|
72297
|
+
}
|
|
72298
|
+
return incomingFiles.slice(0, fileLimit);
|
|
72299
|
+
}
|
|
72300
|
+
return incomingFiles;
|
|
72301
|
+
}
|
|
72302
|
+
__name(trimFiles, "trimFiles");
|
|
72061
72303
|
const style$w = "";
|
|
72062
72304
|
function DNALoader({ style: style2, className }) {
|
|
72063
72305
|
return /* @__PURE__ */ React$2.createElement("div", { className: classNames("dna-loader", className), style: style2 }, /* @__PURE__ */ React$2.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React$2.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React$2.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React$2.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React$2.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React$2.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React$2.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React$2.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React$2.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React$2.createElement("div", { className: "nucleobase" }));
|
|
@@ -74090,11 +74332,11 @@ var Resizer = (
|
|
|
74090
74332
|
}(React__namespace.PureComponent)
|
|
74091
74333
|
);
|
|
74092
74334
|
var src = { exports: {} };
|
|
74093
|
-
function memoize(
|
|
74335
|
+
function memoize(fn4, options) {
|
|
74094
74336
|
var cache2 = options && options.cache ? options.cache : cacheDefault;
|
|
74095
74337
|
var serializer = options && options.serializer ? options.serializer : serializerDefault;
|
|
74096
74338
|
var strategy = options && options.strategy ? options.strategy : strategyDefault;
|
|
74097
|
-
return strategy(
|
|
74339
|
+
return strategy(fn4, {
|
|
74098
74340
|
cache: cache2,
|
|
74099
74341
|
serializer
|
|
74100
74342
|
});
|
|
@@ -74104,40 +74346,40 @@ function isPrimitive(value) {
|
|
|
74104
74346
|
return value == null || typeof value === "number" || typeof value === "boolean";
|
|
74105
74347
|
}
|
|
74106
74348
|
__name(isPrimitive, "isPrimitive");
|
|
74107
|
-
function monadic(
|
|
74349
|
+
function monadic(fn4, cache2, serializer, arg) {
|
|
74108
74350
|
var cacheKey = isPrimitive(arg) ? arg : serializer(arg);
|
|
74109
74351
|
var computedValue = cache2.get(cacheKey);
|
|
74110
74352
|
if (typeof computedValue === "undefined") {
|
|
74111
|
-
computedValue =
|
|
74353
|
+
computedValue = fn4.call(this, arg);
|
|
74112
74354
|
cache2.set(cacheKey, computedValue);
|
|
74113
74355
|
}
|
|
74114
74356
|
return computedValue;
|
|
74115
74357
|
}
|
|
74116
74358
|
__name(monadic, "monadic");
|
|
74117
|
-
function variadic(
|
|
74359
|
+
function variadic(fn4, cache2, serializer) {
|
|
74118
74360
|
var args = Array.prototype.slice.call(arguments, 3);
|
|
74119
74361
|
var cacheKey = serializer(args);
|
|
74120
74362
|
var computedValue = cache2.get(cacheKey);
|
|
74121
74363
|
if (typeof computedValue === "undefined") {
|
|
74122
|
-
computedValue =
|
|
74364
|
+
computedValue = fn4.apply(this, args);
|
|
74123
74365
|
cache2.set(cacheKey, computedValue);
|
|
74124
74366
|
}
|
|
74125
74367
|
return computedValue;
|
|
74126
74368
|
}
|
|
74127
74369
|
__name(variadic, "variadic");
|
|
74128
|
-
function assemble(
|
|
74370
|
+
function assemble(fn4, context, strategy, cache2, serialize2) {
|
|
74129
74371
|
return strategy.bind(
|
|
74130
74372
|
context,
|
|
74131
|
-
|
|
74373
|
+
fn4,
|
|
74132
74374
|
cache2,
|
|
74133
74375
|
serialize2
|
|
74134
74376
|
);
|
|
74135
74377
|
}
|
|
74136
74378
|
__name(assemble, "assemble");
|
|
74137
|
-
function strategyDefault(
|
|
74138
|
-
var strategy =
|
|
74379
|
+
function strategyDefault(fn4, options) {
|
|
74380
|
+
var strategy = fn4.length === 1 ? monadic : variadic;
|
|
74139
74381
|
return assemble(
|
|
74140
|
-
|
|
74382
|
+
fn4,
|
|
74141
74383
|
this,
|
|
74142
74384
|
strategy,
|
|
74143
74385
|
options.cache.create(),
|
|
@@ -74145,10 +74387,10 @@ function strategyDefault(fn3, options) {
|
|
|
74145
74387
|
);
|
|
74146
74388
|
}
|
|
74147
74389
|
__name(strategyDefault, "strategyDefault");
|
|
74148
|
-
function strategyVariadic(
|
|
74390
|
+
function strategyVariadic(fn4, options) {
|
|
74149
74391
|
var strategy = variadic;
|
|
74150
74392
|
return assemble(
|
|
74151
|
-
|
|
74393
|
+
fn4,
|
|
74152
74394
|
this,
|
|
74153
74395
|
strategy,
|
|
74154
74396
|
options.cache.create(),
|
|
@@ -74156,10 +74398,10 @@ function strategyVariadic(fn3, options) {
|
|
|
74156
74398
|
);
|
|
74157
74399
|
}
|
|
74158
74400
|
__name(strategyVariadic, "strategyVariadic");
|
|
74159
|
-
function strategyMonadic(
|
|
74401
|
+
function strategyMonadic(fn4, options) {
|
|
74160
74402
|
var strategy = monadic;
|
|
74161
74403
|
return assemble(
|
|
74162
|
-
|
|
74404
|
+
fn4,
|
|
74163
74405
|
this,
|
|
74164
74406
|
strategy,
|
|
74165
74407
|
options.cache.create(),
|
|
@@ -80704,8 +80946,8 @@ __name(requireEmpty, "requireEmpty");
|
|
|
80704
80946
|
}
|
|
80705
80947
|
}, "datesDiffFilter");
|
|
80706
80948
|
diffFilter$2.filterName = "dates";
|
|
80707
|
-
function createCommonjsModule(
|
|
80708
|
-
return module3 = { exports: {} },
|
|
80949
|
+
function createCommonjsModule(fn4, module3) {
|
|
80950
|
+
return module3 = { exports: {} }, fn4(module3, module3.exports), module3.exports;
|
|
80709
80951
|
}
|
|
80710
80952
|
__name(createCommonjsModule, "createCommonjsModule");
|
|
80711
80953
|
var diffMatchPatch = createCommonjsModule(function(module3) {
|
|
@@ -82417,7 +82659,7 @@ __name(requireEmpty, "requireEmpty");
|
|
|
82417
82659
|
}, "formatDeltaChildren")
|
|
82418
82660
|
}, {
|
|
82419
82661
|
key: "forEachDeltaKey",
|
|
82420
|
-
value: /* @__PURE__ */ __name(function forEachDeltaKey(delta, left2,
|
|
82662
|
+
value: /* @__PURE__ */ __name(function forEachDeltaKey(delta, left2, fn4) {
|
|
82421
82663
|
var keys5 = getObjectKeys(delta);
|
|
82422
82664
|
var arrayKeys = delta._t === "a";
|
|
82423
82665
|
var moveDestinations = {};
|
|
@@ -82459,7 +82701,7 @@ __name(requireEmpty, "requireEmpty");
|
|
|
82459
82701
|
}
|
|
82460
82702
|
var leftKey = arrayKeys ? typeof key === "number" ? key : parseInt(trimUnderscore(key), 10) : key;
|
|
82461
82703
|
var isLast = index3 === length - 1;
|
|
82462
|
-
|
|
82704
|
+
fn4(key, leftKey, moveDestinations[leftKey], isLast);
|
|
82463
82705
|
}
|
|
82464
82706
|
}, "forEachDeltaKey")
|
|
82465
82707
|
}, {
|
|
@@ -82680,16 +82922,16 @@ __name(requireEmpty, "requireEmpty");
|
|
|
82680
82922
|
var textContent = _ref.textContent, innerText = _ref.innerText;
|
|
82681
82923
|
return textContent || innerText;
|
|
82682
82924
|
}, "getElementText");
|
|
82683
|
-
var eachByQuery = /* @__PURE__ */ __name(function eachByQuery2(el, query,
|
|
82925
|
+
var eachByQuery = /* @__PURE__ */ __name(function eachByQuery2(el, query, fn4) {
|
|
82684
82926
|
var elems = el.querySelectorAll(query);
|
|
82685
82927
|
for (var i = 0, l2 = elems.length; i < l2; i++) {
|
|
82686
|
-
|
|
82928
|
+
fn4(elems[i]);
|
|
82687
82929
|
}
|
|
82688
82930
|
}, "eachByQuery");
|
|
82689
|
-
var eachChildren = /* @__PURE__ */ __name(function eachChildren2(_ref2,
|
|
82931
|
+
var eachChildren = /* @__PURE__ */ __name(function eachChildren2(_ref2, fn4) {
|
|
82690
82932
|
var children = _ref2.children;
|
|
82691
82933
|
for (var i = 0, l2 = children.length; i < l2; i++) {
|
|
82692
|
-
|
|
82934
|
+
fn4(children[i], i);
|
|
82693
82935
|
}
|
|
82694
82936
|
}, "eachChildren");
|
|
82695
82937
|
eachByQuery(node2, ".jsondiffpatch-arrow", function(_ref3) {
|
|
@@ -83126,8 +83368,8 @@ __name(requireEmpty, "requireEmpty");
|
|
|
83126
83368
|
return [];
|
|
83127
83369
|
});
|
|
83128
83370
|
return arr.map(function(item) {
|
|
83129
|
-
var position2 = fns.map(function(
|
|
83130
|
-
return
|
|
83371
|
+
var position2 = fns.map(function(fn4) {
|
|
83372
|
+
return fn4(item);
|
|
83131
83373
|
}).indexOf(true);
|
|
83132
83374
|
if (position2 < 0) {
|
|
83133
83375
|
position2 = fns.length;
|
|
@@ -100359,8 +100601,8 @@ var buffer$2 = {};
|
|
|
100359
100601
|
}
|
|
100360
100602
|
return table2;
|
|
100361
100603
|
}();
|
|
100362
|
-
function defineBigIntMethod(
|
|
100363
|
-
return typeof BigInt === "undefined" ? BufferBigIntNotDefined :
|
|
100604
|
+
function defineBigIntMethod(fn4) {
|
|
100605
|
+
return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn4;
|
|
100364
100606
|
}
|
|
100365
100607
|
__name(defineBigIntMethod, "defineBigIntMethod");
|
|
100366
100608
|
function BufferBigIntNotDefined() {
|
|
@@ -101291,9 +101533,9 @@ function requireBrowser() {
|
|
|
101291
101533
|
return browser;
|
|
101292
101534
|
hasRequiredBrowser = 1;
|
|
101293
101535
|
browser = deprecate;
|
|
101294
|
-
function deprecate(
|
|
101536
|
+
function deprecate(fn4, msg) {
|
|
101295
101537
|
if (config("noDeprecation")) {
|
|
101296
|
-
return
|
|
101538
|
+
return fn4;
|
|
101297
101539
|
}
|
|
101298
101540
|
var warned = false;
|
|
101299
101541
|
function deprecated2() {
|
|
@@ -101307,7 +101549,7 @@ function requireBrowser() {
|
|
|
101307
101549
|
}
|
|
101308
101550
|
warned = true;
|
|
101309
101551
|
}
|
|
101310
|
-
return
|
|
101552
|
+
return fn4.apply(this, arguments);
|
|
101311
101553
|
}
|
|
101312
101554
|
__name(deprecated2, "deprecated");
|
|
101313
101555
|
return deprecated2;
|
|
@@ -102302,15 +102544,15 @@ function require_stream_readable() {
|
|
|
102302
102544
|
inherits_browserExports(Readable, Stream2);
|
|
102303
102545
|
var errorOrDestroy = destroyImpl.errorOrDestroy;
|
|
102304
102546
|
var kProxyEvents = ["error", "close", "destroy", "pause", "resume"];
|
|
102305
|
-
function prependListener(emitter, event,
|
|
102547
|
+
function prependListener(emitter, event, fn4) {
|
|
102306
102548
|
if (typeof emitter.prependListener === "function")
|
|
102307
|
-
return emitter.prependListener(event,
|
|
102549
|
+
return emitter.prependListener(event, fn4);
|
|
102308
102550
|
if (!emitter._events || !emitter._events[event])
|
|
102309
|
-
emitter.on(event,
|
|
102551
|
+
emitter.on(event, fn4);
|
|
102310
102552
|
else if (Array.isArray(emitter._events[event]))
|
|
102311
|
-
emitter._events[event].unshift(
|
|
102553
|
+
emitter._events[event].unshift(fn4);
|
|
102312
102554
|
else
|
|
102313
|
-
emitter._events[event] = [
|
|
102555
|
+
emitter._events[event] = [fn4, emitter._events[event]];
|
|
102314
102556
|
}
|
|
102315
102557
|
__name(prependListener, "prependListener");
|
|
102316
102558
|
function ReadableState(options, stream, isDuplex) {
|
|
@@ -102826,8 +103068,8 @@ function require_stream_readable() {
|
|
|
102826
103068
|
dest.emit("unpipe", this, unpipeInfo);
|
|
102827
103069
|
return this;
|
|
102828
103070
|
};
|
|
102829
|
-
Readable.prototype.on = function(ev,
|
|
102830
|
-
var res = Stream2.prototype.on.call(this, ev,
|
|
103071
|
+
Readable.prototype.on = function(ev, fn4) {
|
|
103072
|
+
var res = Stream2.prototype.on.call(this, ev, fn4);
|
|
102831
103073
|
var state2 = this._readableState;
|
|
102832
103074
|
if (ev === "data") {
|
|
102833
103075
|
state2.readableListening = this.listenerCount("readable") > 0;
|
|
@@ -102849,8 +103091,8 @@ function require_stream_readable() {
|
|
|
102849
103091
|
return res;
|
|
102850
103092
|
};
|
|
102851
103093
|
Readable.prototype.addListener = Readable.prototype.on;
|
|
102852
|
-
Readable.prototype.removeListener = function(ev,
|
|
102853
|
-
var res = Stream2.prototype.removeListener.call(this, ev,
|
|
103094
|
+
Readable.prototype.removeListener = function(ev, fn4) {
|
|
103095
|
+
var res = Stream2.prototype.removeListener.call(this, ev, fn4);
|
|
102854
103096
|
if (ev === "readable") {
|
|
102855
103097
|
process.nextTick(updateReadableListening, this);
|
|
102856
103098
|
}
|
|
@@ -103275,8 +103517,8 @@ function requirePipeline() {
|
|
|
103275
103517
|
};
|
|
103276
103518
|
}
|
|
103277
103519
|
__name(destroyer, "destroyer");
|
|
103278
|
-
function call2(
|
|
103279
|
-
|
|
103520
|
+
function call2(fn4) {
|
|
103521
|
+
fn4();
|
|
103280
103522
|
}
|
|
103281
103523
|
__name(call2, "call");
|
|
103282
103524
|
function pipe(from3, to) {
|
|
@@ -104683,9 +104925,9 @@ var slzh = /* @__PURE__ */ __name(function(d2, b3) {
|
|
|
104683
104925
|
return b3 + 30 + b2(d2, b3 + 26) + b2(d2, b3 + 28);
|
|
104684
104926
|
}, "slzh");
|
|
104685
104927
|
var zh = /* @__PURE__ */ __name(function(d2, b3, z2) {
|
|
104686
|
-
var fnl = b2(d2, b3 + 28),
|
|
104928
|
+
var fnl = b2(d2, b3 + 28), fn4 = strFromU8(d2.subarray(b3 + 46, b3 + 46 + fnl), !(b2(d2, b3 + 8) & 2048)), es = b3 + 46 + fnl, bs = b4(d2, b3 + 20);
|
|
104687
104929
|
var _a2 = z2 && bs == 4294967295 ? z64e(d2, es) : [bs, b4(d2, b3 + 24), b4(d2, b3 + 42)], sc = _a2[0], su = _a2[1], off2 = _a2[2];
|
|
104688
|
-
return [b2(d2, b3 + 10), sc, su,
|
|
104930
|
+
return [b2(d2, b3 + 10), sc, su, fn4, es + b2(d2, b3 + 30) + b2(d2, b3 + 32), off2];
|
|
104689
104931
|
}, "zh");
|
|
104690
104932
|
var z64e = /* @__PURE__ */ __name(function(d2, b3) {
|
|
104691
104933
|
for (; b2(d2, b3) != 1; b3 += 4 + b2(d2, b3 + 2))
|
|
@@ -104714,18 +104956,18 @@ function unzipSync(data, opts2) {
|
|
|
104714
104956
|
}
|
|
104715
104957
|
var fltr = opts2 && opts2.filter;
|
|
104716
104958
|
for (var i = 0; i < c2; ++i) {
|
|
104717
|
-
var _a2 = zh(data, o2, z2), c_2 = _a2[0], sc = _a2[1], su = _a2[2],
|
|
104959
|
+
var _a2 = zh(data, o2, z2), c_2 = _a2[0], sc = _a2[1], su = _a2[2], fn4 = _a2[3], no = _a2[4], off2 = _a2[5], b3 = slzh(data, off2);
|
|
104718
104960
|
o2 = no;
|
|
104719
104961
|
if (!fltr || fltr({
|
|
104720
|
-
name:
|
|
104962
|
+
name: fn4,
|
|
104721
104963
|
size: sc,
|
|
104722
104964
|
originalSize: su,
|
|
104723
104965
|
compression: c_2
|
|
104724
104966
|
})) {
|
|
104725
104967
|
if (!c_2)
|
|
104726
|
-
files[
|
|
104968
|
+
files[fn4] = slc(data, b3, b3 + sc);
|
|
104727
104969
|
else if (c_2 == 8)
|
|
104728
|
-
files[
|
|
104970
|
+
files[fn4] = inflateSync(data.subarray(b3, b3 + sc), { out: new u8(su) });
|
|
104729
104971
|
else
|
|
104730
104972
|
err(14, "unknown compression type " + c_2);
|
|
104731
104973
|
}
|
|
@@ -105602,15 +105844,15 @@ function link(from3, to) {
|
|
|
105602
105844
|
__name(link, "link");
|
|
105603
105845
|
function wrapConversion(toModel, graph) {
|
|
105604
105846
|
const path2 = [graph[toModel].parent, toModel];
|
|
105605
|
-
let
|
|
105847
|
+
let fn4 = conversions$1[graph[toModel].parent][toModel];
|
|
105606
105848
|
let cur = graph[toModel].parent;
|
|
105607
105849
|
while (graph[cur].parent) {
|
|
105608
105850
|
path2.unshift(graph[cur].parent);
|
|
105609
|
-
|
|
105851
|
+
fn4 = link(conversions$1[graph[cur].parent][cur], fn4);
|
|
105610
105852
|
cur = graph[cur].parent;
|
|
105611
105853
|
}
|
|
105612
|
-
|
|
105613
|
-
return
|
|
105854
|
+
fn4.conversion = path2;
|
|
105855
|
+
return fn4;
|
|
105614
105856
|
}
|
|
105615
105857
|
__name(wrapConversion, "wrapConversion");
|
|
105616
105858
|
var route$1 = /* @__PURE__ */ __name(function(fromModel) {
|
|
@@ -105631,7 +105873,7 @@ const conversions = conversions$2;
|
|
|
105631
105873
|
const route = route$1;
|
|
105632
105874
|
const convert$1 = {};
|
|
105633
105875
|
const models = Object.keys(conversions);
|
|
105634
|
-
function wrapRaw(
|
|
105876
|
+
function wrapRaw(fn4) {
|
|
105635
105877
|
const wrappedFn = /* @__PURE__ */ __name(function(...args) {
|
|
105636
105878
|
const arg0 = args[0];
|
|
105637
105879
|
if (arg0 === void 0 || arg0 === null) {
|
|
@@ -105640,15 +105882,15 @@ function wrapRaw(fn3) {
|
|
|
105640
105882
|
if (arg0.length > 1) {
|
|
105641
105883
|
args = arg0;
|
|
105642
105884
|
}
|
|
105643
|
-
return
|
|
105885
|
+
return fn4(args);
|
|
105644
105886
|
}, "wrappedFn");
|
|
105645
|
-
if ("conversion" in
|
|
105646
|
-
wrappedFn.conversion =
|
|
105887
|
+
if ("conversion" in fn4) {
|
|
105888
|
+
wrappedFn.conversion = fn4.conversion;
|
|
105647
105889
|
}
|
|
105648
105890
|
return wrappedFn;
|
|
105649
105891
|
}
|
|
105650
105892
|
__name(wrapRaw, "wrapRaw");
|
|
105651
|
-
function wrapRounded(
|
|
105893
|
+
function wrapRounded(fn4) {
|
|
105652
105894
|
const wrappedFn = /* @__PURE__ */ __name(function(...args) {
|
|
105653
105895
|
const arg0 = args[0];
|
|
105654
105896
|
if (arg0 === void 0 || arg0 === null) {
|
|
@@ -105657,7 +105899,7 @@ function wrapRounded(fn3) {
|
|
|
105657
105899
|
if (arg0.length > 1) {
|
|
105658
105900
|
args = arg0;
|
|
105659
105901
|
}
|
|
105660
|
-
const result =
|
|
105902
|
+
const result = fn4(args);
|
|
105661
105903
|
if (typeof result === "object") {
|
|
105662
105904
|
for (let len = result.length, i = 0; i < len; i++) {
|
|
105663
105905
|
result[i] = Math.round(result[i]);
|
|
@@ -105665,8 +105907,8 @@ function wrapRounded(fn3) {
|
|
|
105665
105907
|
}
|
|
105666
105908
|
return result;
|
|
105667
105909
|
}, "wrappedFn");
|
|
105668
|
-
if ("conversion" in
|
|
105669
|
-
wrappedFn.conversion =
|
|
105910
|
+
if ("conversion" in fn4) {
|
|
105911
|
+
wrappedFn.conversion = fn4.conversion;
|
|
105670
105912
|
}
|
|
105671
105913
|
return wrappedFn;
|
|
105672
105914
|
}
|
|
@@ -105678,9 +105920,9 @@ models.forEach((fromModel) => {
|
|
|
105678
105920
|
const routes = route(fromModel);
|
|
105679
105921
|
const routeModels = Object.keys(routes);
|
|
105680
105922
|
routeModels.forEach((toModel) => {
|
|
105681
|
-
const
|
|
105682
|
-
convert$1[fromModel][toModel] = wrapRounded(
|
|
105683
|
-
convert$1[fromModel][toModel].raw = wrapRaw(
|
|
105923
|
+
const fn4 = routes[toModel];
|
|
105924
|
+
convert$1[fromModel][toModel] = wrapRounded(fn4);
|
|
105925
|
+
convert$1[fromModel][toModel].raw = wrapRaw(fn4);
|
|
105684
105926
|
});
|
|
105685
105927
|
});
|
|
105686
105928
|
var colorConvert = convert$1;
|
|
@@ -107678,8 +107920,8 @@ var hasSymbols2 = typeof Symbol === "function" && typeof Symbol("foo") === "symb
|
|
|
107678
107920
|
var toStr$1 = Object.prototype.toString;
|
|
107679
107921
|
var concat = Array.prototype.concat;
|
|
107680
107922
|
var origDefineProperty = Object.defineProperty;
|
|
107681
|
-
var isFunction$1 = /* @__PURE__ */ __name(function(
|
|
107682
|
-
return typeof
|
|
107923
|
+
var isFunction$1 = /* @__PURE__ */ __name(function(fn4) {
|
|
107924
|
+
return typeof fn4 === "function" && toStr$1.call(fn4) === "[object Function]";
|
|
107683
107925
|
}, "isFunction$1");
|
|
107684
107926
|
var hasPropertyDescriptors2 = hasPropertyDescriptors_1();
|
|
107685
107927
|
var supportsDescriptors$2 = origDefineProperty && hasPropertyDescriptors2;
|
|
@@ -111168,7 +111410,7 @@ function doAnySpanOrigin(annotations) {
|
|
|
111168
111410
|
});
|
|
111169
111411
|
}
|
|
111170
111412
|
__name(doAnySpanOrigin, "doAnySpanOrigin");
|
|
111171
|
-
const connectToEditor = /* @__PURE__ */ __name((
|
|
111413
|
+
const connectToEditor = /* @__PURE__ */ __name((fn4) => {
|
|
111172
111414
|
return reactRedux.connect(
|
|
111173
111415
|
(state2, ownProps, ...rest) => {
|
|
111174
111416
|
const editor = state2.VectorEditor[ownProps.editorName] || {};
|
|
@@ -111177,7 +111419,7 @@ const connectToEditor = /* @__PURE__ */ __name((fn3) => {
|
|
|
111177
111419
|
state2.VectorEditor.__allEditorsOptions.uppercaseSequenceMapFont,
|
|
111178
111420
|
editor.sequenceData.sequence
|
|
111179
111421
|
);
|
|
111180
|
-
return
|
|
111422
|
+
return fn4 ? fn4(editor, ownProps, ...rest, state2) : {};
|
|
111181
111423
|
},
|
|
111182
111424
|
mapDispatchToActions
|
|
111183
111425
|
// function mergeProps(propsFromState, propsFromDispatch) {
|
|
@@ -111799,7 +112041,7 @@ function memoizeOne(resultFn, isEqual2) {
|
|
|
111799
112041
|
return memoized;
|
|
111800
112042
|
}
|
|
111801
112043
|
__name(memoizeOne, "memoizeOne");
|
|
111802
|
-
var rafSchd = /* @__PURE__ */ __name(function rafSchd2(
|
|
112044
|
+
var rafSchd = /* @__PURE__ */ __name(function rafSchd2(fn4) {
|
|
111803
112045
|
var lastArgs = [];
|
|
111804
112046
|
var frameId = null;
|
|
111805
112047
|
var wrapperFn = /* @__PURE__ */ __name(function wrapperFn2() {
|
|
@@ -111812,7 +112054,7 @@ var rafSchd = /* @__PURE__ */ __name(function rafSchd2(fn3) {
|
|
|
111812
112054
|
}
|
|
111813
112055
|
frameId = requestAnimationFrame(function() {
|
|
111814
112056
|
frameId = null;
|
|
111815
|
-
|
|
112057
|
+
fn4.apply(void 0, lastArgs);
|
|
111816
112058
|
});
|
|
111817
112059
|
}, "wrapperFn");
|
|
111818
112060
|
wrapperFn.cancel = function() {
|
|
@@ -112041,9 +112283,9 @@ const patch = /* @__PURE__ */ __name(function(line, value, otherValue) {
|
|
|
112041
112283
|
}, "patch");
|
|
112042
112284
|
const distance$1 = /* @__PURE__ */ __name((point1, point2) => Math.sqrt(__pow(point2.x - point1.x, 2) + __pow(point2.y - point1.y, 2)), "distance$1");
|
|
112043
112285
|
const closest$1 = /* @__PURE__ */ __name((target, points) => Math.min(...points.map((point2) => distance$1(target, point2))), "closest$1");
|
|
112044
|
-
const apply = /* @__PURE__ */ __name((
|
|
112045
|
-
x:
|
|
112046
|
-
y:
|
|
112286
|
+
const apply = /* @__PURE__ */ __name((fn4) => (point2) => ({
|
|
112287
|
+
x: fn4(point2.x),
|
|
112288
|
+
y: fn4(point2.y)
|
|
112047
112289
|
}), "apply");
|
|
112048
112290
|
var executeClip = /* @__PURE__ */ __name((frame, subject) => {
|
|
112049
112291
|
const result = getRect({
|
|
@@ -114690,11 +114932,11 @@ var getAsyncMarshal = /* @__PURE__ */ __name(() => {
|
|
|
114690
114932
|
const [entry] = entries2.splice(index2, 1);
|
|
114691
114933
|
entry.callback();
|
|
114692
114934
|
}, "execute");
|
|
114693
|
-
const add3 = /* @__PURE__ */ __name((
|
|
114935
|
+
const add3 = /* @__PURE__ */ __name((fn4) => {
|
|
114694
114936
|
const timerId = setTimeout(() => execute2(timerId));
|
|
114695
114937
|
const entry = {
|
|
114696
114938
|
timerId,
|
|
114697
|
-
callback:
|
|
114939
|
+
callback: fn4
|
|
114698
114940
|
};
|
|
114699
114941
|
entries2.push(entry);
|
|
114700
114942
|
}, "add");
|
|
@@ -114740,8 +114982,8 @@ const isCriticalEqual = /* @__PURE__ */ __name((first, second) => {
|
|
|
114740
114982
|
const isDroppableEqual = first.droppable.id === second.droppable.id && first.droppable.type === second.droppable.type;
|
|
114741
114983
|
return isDraggableEqual && isDroppableEqual;
|
|
114742
114984
|
}, "isCriticalEqual");
|
|
114743
|
-
const withTimings = /* @__PURE__ */ __name((key,
|
|
114744
|
-
|
|
114985
|
+
const withTimings = /* @__PURE__ */ __name((key, fn4) => {
|
|
114986
|
+
fn4();
|
|
114745
114987
|
}, "withTimings");
|
|
114746
114988
|
const getDragStart = /* @__PURE__ */ __name((critical, mode) => ({
|
|
114747
114989
|
draggableId: critical.draggable.id,
|
|
@@ -114773,22 +115015,22 @@ var getPublisher = /* @__PURE__ */ __name((getResponders, announce) => {
|
|
|
114773
115015
|
const beforeCapture = /* @__PURE__ */ __name((draggableId, mode) => {
|
|
114774
115016
|
!!dragging ? invariant$1(false) : void 0;
|
|
114775
115017
|
withTimings("onBeforeCapture", () => {
|
|
114776
|
-
const
|
|
114777
|
-
if (
|
|
115018
|
+
const fn4 = getResponders().onBeforeCapture;
|
|
115019
|
+
if (fn4) {
|
|
114778
115020
|
const before = {
|
|
114779
115021
|
draggableId,
|
|
114780
115022
|
mode
|
|
114781
115023
|
};
|
|
114782
|
-
|
|
115024
|
+
fn4(before);
|
|
114783
115025
|
}
|
|
114784
115026
|
});
|
|
114785
115027
|
}, "beforeCapture");
|
|
114786
115028
|
const beforeStart = /* @__PURE__ */ __name((critical, mode) => {
|
|
114787
115029
|
!!dragging ? invariant$1(false) : void 0;
|
|
114788
115030
|
withTimings("onBeforeDragStart", () => {
|
|
114789
|
-
const
|
|
114790
|
-
if (
|
|
114791
|
-
|
|
115031
|
+
const fn4 = getResponders().onBeforeDragStart;
|
|
115032
|
+
if (fn4) {
|
|
115033
|
+
fn4(getDragStart(critical, mode));
|
|
114792
115034
|
}
|
|
114793
115035
|
});
|
|
114794
115036
|
}, "beforeStart");
|
|
@@ -118246,7 +118488,7 @@ __name(PublicDraggable, "PublicDraggable");
|
|
|
118246
118488
|
const isEqual = /* @__PURE__ */ __name((base2) => (value) => base2 === value, "isEqual");
|
|
118247
118489
|
const isScroll = isEqual("scroll");
|
|
118248
118490
|
const isAuto$1 = isEqual("auto");
|
|
118249
|
-
const isEither = /* @__PURE__ */ __name((overflow2,
|
|
118491
|
+
const isEither = /* @__PURE__ */ __name((overflow2, fn4) => fn4(overflow2.overflowX) || fn4(overflow2.overflowY), "isEither");
|
|
118250
118492
|
const isElementScrollable = /* @__PURE__ */ __name((el) => {
|
|
118251
118493
|
const style2 = window.getComputedStyle(el);
|
|
118252
118494
|
const overflow2 = {
|
|
@@ -119837,15 +120079,15 @@ function releaseReactionKeyConnection(reactionsForKey) {
|
|
|
119837
120079
|
__name(releaseReactionKeyConnection, "releaseReactionKeyConnection");
|
|
119838
120080
|
var reactionStack = [];
|
|
119839
120081
|
var isDebugging$1 = false;
|
|
119840
|
-
function runAsReaction(reaction,
|
|
120082
|
+
function runAsReaction(reaction, fn4, context, args) {
|
|
119841
120083
|
if (reaction.unobserved) {
|
|
119842
|
-
return Reflect.apply(
|
|
120084
|
+
return Reflect.apply(fn4, context, args);
|
|
119843
120085
|
}
|
|
119844
120086
|
if (reactionStack.indexOf(reaction) === -1) {
|
|
119845
120087
|
releaseReaction(reaction);
|
|
119846
120088
|
try {
|
|
119847
120089
|
reactionStack.push(reaction);
|
|
119848
|
-
return Reflect.apply(
|
|
120090
|
+
return Reflect.apply(fn4, context, args);
|
|
119849
120091
|
} finally {
|
|
119850
120092
|
reactionStack.pop();
|
|
119851
120093
|
}
|
|
@@ -119891,11 +120133,11 @@ function hasRunningReaction() {
|
|
|
119891
120133
|
}
|
|
119892
120134
|
__name(hasRunningReaction, "hasRunningReaction");
|
|
119893
120135
|
var IS_REACTION = Symbol("is reaction");
|
|
119894
|
-
function observe(
|
|
120136
|
+
function observe(fn4, options) {
|
|
119895
120137
|
if (options === void 0)
|
|
119896
120138
|
options = {};
|
|
119897
|
-
var reaction =
|
|
119898
|
-
return runAsReaction(reaction2,
|
|
120139
|
+
var reaction = fn4[IS_REACTION] ? fn4 : /* @__PURE__ */ __name(function reaction2() {
|
|
120140
|
+
return runAsReaction(reaction2, fn4, this, arguments);
|
|
119899
120141
|
}, "reaction");
|
|
119900
120142
|
reaction.scheduler = options.scheduler;
|
|
119901
120143
|
reaction.debugger = options.debugger;
|
|
@@ -120345,13 +120587,13 @@ const scheduler = {
|
|
|
120345
120587
|
scheduler.isOn = false;
|
|
120346
120588
|
}
|
|
120347
120589
|
};
|
|
120348
|
-
function batch(
|
|
120590
|
+
function batch(fn4, ctx2, args) {
|
|
120349
120591
|
if (scheduler.isOn) {
|
|
120350
|
-
return ReactDOM$1.unstable_batchedUpdates(() =>
|
|
120592
|
+
return ReactDOM$1.unstable_batchedUpdates(() => fn4.apply(ctx2, args));
|
|
120351
120593
|
}
|
|
120352
120594
|
try {
|
|
120353
120595
|
scheduler.on();
|
|
120354
|
-
return ReactDOM$1.unstable_batchedUpdates(() =>
|
|
120596
|
+
return ReactDOM$1.unstable_batchedUpdates(() => fn4.apply(ctx2, args));
|
|
120355
120597
|
} finally {
|
|
120356
120598
|
scheduler.flush();
|
|
120357
120599
|
scheduler.off();
|
|
@@ -120359,18 +120601,18 @@ function batch(fn3, ctx2, args) {
|
|
|
120359
120601
|
}
|
|
120360
120602
|
__name(batch, "batch");
|
|
120361
120603
|
const cache = /* @__PURE__ */ new WeakMap();
|
|
120362
|
-
function batchFn(
|
|
120363
|
-
if (typeof
|
|
120364
|
-
return
|
|
120604
|
+
function batchFn(fn4) {
|
|
120605
|
+
if (typeof fn4 !== "function") {
|
|
120606
|
+
return fn4;
|
|
120365
120607
|
}
|
|
120366
|
-
let batched = cache.get(
|
|
120608
|
+
let batched = cache.get(fn4);
|
|
120367
120609
|
if (!batched) {
|
|
120368
|
-
batched = new Proxy(
|
|
120610
|
+
batched = new Proxy(fn4, {
|
|
120369
120611
|
apply(target, thisArg, args) {
|
|
120370
120612
|
return batch(target, thisArg, args);
|
|
120371
120613
|
}
|
|
120372
120614
|
});
|
|
120373
|
-
cache.set(
|
|
120615
|
+
cache.set(fn4, batched);
|
|
120374
120616
|
}
|
|
120375
120617
|
return batched;
|
|
120376
120618
|
}
|
|
@@ -121134,8 +121376,23 @@ const withHover = redux.compose(
|
|
|
121134
121376
|
}, hoveredAnnotationActions)
|
|
121135
121377
|
),
|
|
121136
121378
|
withHandlers({
|
|
121137
|
-
onMouseOver: (props) => (e2)
|
|
121379
|
+
onMouseOver: (props) => function(e2) {
|
|
121138
121380
|
var _a2;
|
|
121381
|
+
const target = e2.target;
|
|
121382
|
+
let alreadyHandled = false;
|
|
121383
|
+
let currentElement = target;
|
|
121384
|
+
while (currentElement) {
|
|
121385
|
+
if (currentElement === e2.currentTarget) {
|
|
121386
|
+
break;
|
|
121387
|
+
}
|
|
121388
|
+
if (currentElement.classList.contains("hoverHelper")) {
|
|
121389
|
+
alreadyHandled = true;
|
|
121390
|
+
break;
|
|
121391
|
+
}
|
|
121392
|
+
currentElement = currentElement.parentElement;
|
|
121393
|
+
}
|
|
121394
|
+
if (alreadyHandled)
|
|
121395
|
+
return;
|
|
121139
121396
|
const { editorName, id: id2, hoveredAnnotationUpdate: hoveredAnnotationUpdate2 } = props;
|
|
121140
121397
|
const isIdHashmap = typeof id2 === "object";
|
|
121141
121398
|
const idToPass = isIdHashmap ? Object.keys(id2)[0] : id2;
|
|
@@ -121145,7 +121402,6 @@ const withHover = redux.compose(
|
|
|
121145
121402
|
}
|
|
121146
121403
|
if (window.__veDragging || window.__veScrolling)
|
|
121147
121404
|
return;
|
|
121148
|
-
e2.stopPropagation();
|
|
121149
121405
|
hoveredAnnotationUpdate2 && hoveredAnnotationUpdate2(idToPass, { editorName });
|
|
121150
121406
|
},
|
|
121151
121407
|
onMouseLeave: (props) => (e2) => {
|
|
@@ -125685,7 +125941,7 @@ function showFileDialog({ multiple = false, onSelect }) {
|
|
|
125685
125941
|
}
|
|
125686
125942
|
__name(showFileDialog, "showFileDialog");
|
|
125687
125943
|
const name = "@teselagen/ove";
|
|
125688
|
-
const version = "0.3.
|
|
125944
|
+
const version = "0.3.25";
|
|
125689
125945
|
const main = "./src/index.js";
|
|
125690
125946
|
const exports$1 = {
|
|
125691
125947
|
".": {
|
|
@@ -127800,7 +128056,7 @@ var timeoutDuration = function() {
|
|
|
127800
128056
|
}
|
|
127801
128057
|
return 0;
|
|
127802
128058
|
}();
|
|
127803
|
-
function microtaskDebounce(
|
|
128059
|
+
function microtaskDebounce(fn4) {
|
|
127804
128060
|
var called = false;
|
|
127805
128061
|
return function() {
|
|
127806
128062
|
if (called) {
|
|
@@ -127809,19 +128065,19 @@ function microtaskDebounce(fn3) {
|
|
|
127809
128065
|
called = true;
|
|
127810
128066
|
window.Promise.resolve().then(function() {
|
|
127811
128067
|
called = false;
|
|
127812
|
-
|
|
128068
|
+
fn4();
|
|
127813
128069
|
});
|
|
127814
128070
|
};
|
|
127815
128071
|
}
|
|
127816
128072
|
__name(microtaskDebounce, "microtaskDebounce");
|
|
127817
|
-
function taskDebounce(
|
|
128073
|
+
function taskDebounce(fn4) {
|
|
127818
128074
|
var scheduled = false;
|
|
127819
128075
|
return function() {
|
|
127820
128076
|
if (!scheduled) {
|
|
127821
128077
|
scheduled = true;
|
|
127822
128078
|
setTimeout(function() {
|
|
127823
128079
|
scheduled = false;
|
|
127824
|
-
|
|
128080
|
+
fn4();
|
|
127825
128081
|
}, timeoutDuration);
|
|
127826
128082
|
}
|
|
127827
128083
|
};
|
|
@@ -128012,7 +128268,7 @@ var createClass = function() {
|
|
|
128012
128268
|
return Constructor;
|
|
128013
128269
|
};
|
|
128014
128270
|
}();
|
|
128015
|
-
var
|
|
128271
|
+
var defineProperty4 = /* @__PURE__ */ __name(function(obj, key, value) {
|
|
128016
128272
|
if (key in obj) {
|
|
128017
128273
|
Object.defineProperty(obj, key, {
|
|
128018
128274
|
value,
|
|
@@ -128317,11 +128573,11 @@ function runModifiers(modifiers2, data, ends) {
|
|
|
128317
128573
|
if (modifier["function"]) {
|
|
128318
128574
|
console.warn("`modifier.function` is deprecated, use `modifier.fn`!");
|
|
128319
128575
|
}
|
|
128320
|
-
var
|
|
128321
|
-
if (modifier.enabled && isFunction(
|
|
128576
|
+
var fn4 = modifier["function"] || modifier.fn;
|
|
128577
|
+
if (modifier.enabled && isFunction(fn4)) {
|
|
128322
128578
|
data.offsets.popper = getClientRect(data.offsets.popper);
|
|
128323
128579
|
data.offsets.reference = getClientRect(data.offsets.reference);
|
|
128324
|
-
data =
|
|
128580
|
+
data = fn4(data, modifier);
|
|
128325
128581
|
}
|
|
128326
128582
|
});
|
|
128327
128583
|
return data;
|
|
@@ -128623,7 +128879,7 @@ function arrow(data, options) {
|
|
|
128623
128879
|
var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide;
|
|
128624
128880
|
sideValue = Math.max(Math.min(popper2[len] - arrowElementSize, sideValue), 0);
|
|
128625
128881
|
data.arrowElement = arrowElement;
|
|
128626
|
-
data.offsets.arrow = (_data$offsets$arrow = {},
|
|
128882
|
+
data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty4(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty4(_data$offsets$arrow, altSide, ""), _data$offsets$arrow);
|
|
128627
128883
|
return data;
|
|
128628
128884
|
}
|
|
128629
128885
|
__name(arrow, "arrow");
|
|
@@ -128854,7 +129110,7 @@ function preventOverflow(data, options) {
|
|
|
128854
129110
|
if (popper2[placement] < boundaries[placement] && !options.escapeWithReference) {
|
|
128855
129111
|
value = Math.max(popper2[placement], boundaries[placement]);
|
|
128856
129112
|
}
|
|
128857
|
-
return
|
|
129113
|
+
return defineProperty4({}, placement, value);
|
|
128858
129114
|
}, "primary"),
|
|
128859
129115
|
secondary: /* @__PURE__ */ __name(function secondary(placement) {
|
|
128860
129116
|
var mainSide = placement === "right" ? "left" : "top";
|
|
@@ -128862,7 +129118,7 @@ function preventOverflow(data, options) {
|
|
|
128862
129118
|
if (popper2[placement] > boundaries[placement] && !options.escapeWithReference) {
|
|
128863
129119
|
value = Math.min(popper2[mainSide], boundaries[placement] - (placement === "right" ? popper2.width : popper2.height));
|
|
128864
129120
|
}
|
|
128865
|
-
return
|
|
129121
|
+
return defineProperty4({}, mainSide, value);
|
|
128866
129122
|
}, "secondary")
|
|
128867
129123
|
};
|
|
128868
129124
|
order2.forEach(function(placement) {
|
|
@@ -128883,8 +129139,8 @@ function shift3(data) {
|
|
|
128883
129139
|
var side = isVertical ? "left" : "top";
|
|
128884
129140
|
var measurement = isVertical ? "width" : "height";
|
|
128885
129141
|
var shiftOffsets = {
|
|
128886
|
-
start:
|
|
128887
|
-
end:
|
|
129142
|
+
start: defineProperty4({}, side, reference2[side]),
|
|
129143
|
+
end: defineProperty4({}, side, reference2[side] + reference2[measurement] - popper2[measurement])
|
|
128888
129144
|
};
|
|
128889
129145
|
data.offsets.popper = _extends$1({}, popper2, shiftOffsets[shiftvariation]);
|
|
128890
129146
|
}
|
|
@@ -131650,8 +131906,8 @@ function chain(...fns) {
|
|
|
131650
131906
|
return fns[0];
|
|
131651
131907
|
return function() {
|
|
131652
131908
|
let result;
|
|
131653
|
-
for (const
|
|
131654
|
-
result =
|
|
131909
|
+
for (const fn4 of fns) {
|
|
131910
|
+
result = fn4.apply(this, arguments) || result;
|
|
131655
131911
|
}
|
|
131656
131912
|
return result;
|
|
131657
131913
|
};
|
|
@@ -132871,9 +133127,9 @@ const _UncontrolledSliderWithPlusMinusBtns = class _UncontrolledSliderWithPlusMi
|
|
|
132871
133127
|
const { min: min2, max: max2 } = this.props;
|
|
132872
133128
|
const stepSize = this.props.stepSize || (max2 - min2) / 10;
|
|
132873
133129
|
if (bindOutsideChangeHelper) {
|
|
132874
|
-
bindOutsideChangeHelper.triggerChange = (
|
|
133130
|
+
bindOutsideChangeHelper.triggerChange = (fn4) => {
|
|
132875
133131
|
const valToPass = lodashExports.isNumber(value) && !isNaN(value) ? value : initialValue;
|
|
132876
|
-
return
|
|
133132
|
+
return fn4({
|
|
132877
133133
|
value: valToPass,
|
|
132878
133134
|
changeValue: (newVal2) => {
|
|
132879
133135
|
const newnew = lodashExports.clamp(newVal2, min2, max2);
|
|
@@ -134180,438 +134436,18 @@ function combineLabels(labels, numberOfBuckets) {
|
|
|
134180
134436
|
}
|
|
134181
134437
|
__name(combineLabels, "combineLabels");
|
|
134182
134438
|
const style$f = "";
|
|
134183
|
-
|
|
134184
|
-
const
|
|
134185
|
-
|
|
134186
|
-
|
|
134187
|
-
|
|
134188
|
-
|
|
134189
|
-
|
|
134190
|
-
|
|
134191
|
-
|
|
134192
|
-
|
|
134193
|
-
extraSideSpace,
|
|
134194
|
-
smartCircViewLabelRender,
|
|
134195
|
-
radius: outerRadius,
|
|
134196
|
-
editorName,
|
|
134197
|
-
noRedux,
|
|
134198
|
-
rotationRadians,
|
|
134199
|
-
textScalingFactor,
|
|
134200
|
-
labelLineIntensity: labelLineIntensity2,
|
|
134201
|
-
labelSize: labelSize2 = 8,
|
|
134202
|
-
fontHeightMultiplier = 2.4,
|
|
134203
|
-
circularViewWidthVsHeightRatio,
|
|
134204
|
-
//width of the circular view
|
|
134205
|
-
condenseOverflowingXLabels = true
|
|
134206
|
-
//set to true to make labels tha
|
|
134207
|
-
}) {
|
|
134208
|
-
if (!labels.length) {
|
|
134209
|
-
return {
|
|
134210
|
-
component: null,
|
|
134211
|
-
height: 15
|
|
134212
|
-
};
|
|
134213
|
-
}
|
|
134214
|
-
const originalOuterRadius = outerRadius;
|
|
134215
|
-
outerRadius += smartCircViewLabelRender ? 10 : 25;
|
|
134216
|
-
const radius = outerRadius;
|
|
134217
|
-
const outerPointRadius = outerRadius - 20;
|
|
134218
|
-
const fontWidth = labelSize2 * (textScalingFactor < 1 ? textScalingFactor : 1);
|
|
134219
|
-
const fontHeight = fontWidth * lodashExports.clamp(fontHeightMultiplier, 1.5, 3.5);
|
|
134220
|
-
const labelPoints = labels.map(function(label) {
|
|
134221
|
-
const {
|
|
134222
|
-
annotationCenterAngle: _annotationCenterAngle,
|
|
134223
|
-
annotationCenterRadius
|
|
134224
|
-
} = label;
|
|
134225
|
-
const annotationCenterAngle = _annotationCenterAngle + (rotationRadians || 0);
|
|
134226
|
-
return __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, label), {
|
|
134227
|
-
width: getTextLength(label.text) * fontWidth,
|
|
134228
|
-
//three points define the label:
|
|
134229
|
-
innerPoint: __spreadProps(__spreadValues({}, polarToSpecialCartesian$1(
|
|
134230
|
-
annotationCenterRadius,
|
|
134231
|
-
annotationCenterAngle
|
|
134232
|
-
)), {
|
|
134233
|
-
radius: annotationCenterRadius,
|
|
134234
|
-
angle: annotationCenterAngle
|
|
134235
|
-
}),
|
|
134236
|
-
truncatedInnerPoint: __spreadProps(__spreadValues({}, polarToSpecialCartesian$1(
|
|
134237
|
-
outerPointRadius - 15,
|
|
134238
|
-
annotationCenterAngle
|
|
134239
|
-
)), {
|
|
134240
|
-
radius: outerPointRadius - 15,
|
|
134241
|
-
angle: annotationCenterAngle
|
|
134242
|
-
}),
|
|
134243
|
-
outerPoint: __spreadProps(__spreadValues({}, polarToSpecialCartesian$1(outerPointRadius, annotationCenterAngle)), {
|
|
134244
|
-
radius: outerPointRadius,
|
|
134245
|
-
angle: annotationCenterAngle
|
|
134246
|
-
})
|
|
134247
|
-
}), polarToSpecialCartesian$1(radius, annotationCenterAngle)), {
|
|
134248
|
-
radius: radius + 10,
|
|
134249
|
-
angle: annotationCenterAngle
|
|
134250
|
-
});
|
|
134251
|
-
}).map(function(label) {
|
|
134252
|
-
label.labelAndSublabels = [label];
|
|
134253
|
-
label.labelIds = { [label.id]: true };
|
|
134254
|
-
return label;
|
|
134255
|
-
});
|
|
134256
|
-
let maxRadius = 1;
|
|
134257
|
-
const groupedLabels = relaxLabelAngles(labelPoints, fontHeight, outerRadius).filter((l2) => !!l2).map((originalLabel) => {
|
|
134258
|
-
if (smartCircViewLabelRender) {
|
|
134259
|
-
const newR = Math.sqrt(
|
|
134260
|
-
Math.pow(
|
|
134261
|
-
Math.abs(originalLabel.x) + Math.max(0, originalLabel.text.length * 11 - extraSideSpace / 2),
|
|
134262
|
-
2
|
|
134263
|
-
) + Math.pow(Math.abs(originalLabel.y), 2)
|
|
134264
|
-
);
|
|
134265
|
-
if (newR > maxRadius)
|
|
134266
|
-
maxRadius = newR;
|
|
134267
|
-
}
|
|
134268
|
-
if (originalLabel.highPriorityLabel) {
|
|
134269
|
-
return originalLabel;
|
|
134270
|
-
}
|
|
134271
|
-
const _highPrioritySublabel = originalLabel.labelAndSublabels.find(
|
|
134272
|
-
(l2) => l2.highPriorityLabel
|
|
134273
|
-
);
|
|
134274
|
-
if (_highPrioritySublabel) {
|
|
134275
|
-
const highPrioritySublabel = lodashExports.cloneDeep(_highPrioritySublabel);
|
|
134276
|
-
[
|
|
134277
|
-
"angle",
|
|
134278
|
-
"annotationCenterAngle",
|
|
134279
|
-
"annotationCenterRadius",
|
|
134280
|
-
"innerPoint",
|
|
134281
|
-
"labelAndSublabels",
|
|
134282
|
-
"labelIds",
|
|
134283
|
-
"outerPoint",
|
|
134284
|
-
"radius",
|
|
134285
|
-
"truncatedInnerPoint",
|
|
134286
|
-
"x",
|
|
134287
|
-
"y"
|
|
134288
|
-
].forEach((k2) => {
|
|
134289
|
-
highPrioritySublabel[k2] = originalLabel[k2];
|
|
134290
|
-
});
|
|
134291
|
-
delete originalLabel.labelAndSublabels;
|
|
134292
|
-
return highPrioritySublabel;
|
|
134293
|
-
}
|
|
134294
|
-
return originalLabel;
|
|
134295
|
-
});
|
|
134296
|
-
window.isLabelGroupOpen = false;
|
|
134297
|
-
return {
|
|
134298
|
-
component: /* @__PURE__ */ React$2.createElement(
|
|
134299
|
-
"g",
|
|
134300
|
-
{
|
|
134301
|
-
key: "veLabels",
|
|
134302
|
-
className: "veLabels ve-monospace-font",
|
|
134303
|
-
transform: `rotate(-${rotationRadians * 180 / Math.PI})`
|
|
134304
|
-
},
|
|
134305
|
-
/* @__PURE__ */ React$2.createElement(
|
|
134306
|
-
DrawGroupedLabels,
|
|
134307
|
-
__spreadValues({}, {
|
|
134308
|
-
editorName,
|
|
134309
|
-
noRedux,
|
|
134310
|
-
groupedLabels,
|
|
134311
|
-
circularViewWidthVsHeightRatio,
|
|
134312
|
-
fontWidth,
|
|
134313
|
-
fontHeight,
|
|
134314
|
-
condenseOverflowingXLabels,
|
|
134315
|
-
outerRadius,
|
|
134316
|
-
labelLineIntensity: labelLineIntensity2
|
|
134317
|
-
})
|
|
134318
|
-
)
|
|
134319
|
-
),
|
|
134320
|
-
//we use the <use> tag to position the hovered label group at the top of the stack
|
|
134321
|
-
//point events: none is to fix a click bug..
|
|
134322
|
-
//http://stackoverflow.com/questions/24078524/svg-click-events-not-firing-bubbling-when-using-use-element
|
|
134323
|
-
height: smartCircViewLabelRender ? Math.min(105, maxRadius - originalOuterRadius) : 120
|
|
134324
|
-
};
|
|
134325
|
-
}
|
|
134326
|
-
__name(Labels, "Labels");
|
|
134327
|
-
const DrawLabelGroup = withHover(function({
|
|
134328
|
-
hovered,
|
|
134329
|
-
className,
|
|
134330
|
-
label,
|
|
134331
|
-
labelAndSublabels,
|
|
134332
|
-
fontWidth,
|
|
134333
|
-
noRedux,
|
|
134334
|
-
fontHeight,
|
|
134335
|
-
outerRadius,
|
|
134336
|
-
onMouseLeave,
|
|
134337
|
-
onMouseOver,
|
|
134338
|
-
editorName,
|
|
134339
|
-
circularViewWidthVsHeightRatio,
|
|
134340
|
-
condenseOverflowingXLabels,
|
|
134341
|
-
hoveredId,
|
|
134342
|
-
labelLineIntensity: labelLineIntensity2,
|
|
134343
|
-
// labelIds,
|
|
134344
|
-
multipleLabels
|
|
134345
|
-
// isIdHashmap,
|
|
134346
|
-
}) {
|
|
134347
|
-
let { text: text2 = "Unlabeled" } = label;
|
|
134348
|
-
const textLength = getTextLength(text2);
|
|
134349
|
-
let groupLabelXStart;
|
|
134350
|
-
if (label.labelAndSublabels && label.labelAndSublabels.length > 1) {
|
|
134351
|
-
text2 = "+" + (label.labelAndSublabels.length - 1) + "," + text2;
|
|
134352
|
-
}
|
|
134353
|
-
const labelLength = textLength * fontWidth;
|
|
134354
|
-
const maxLabelLength = labelAndSublabels.reduce(function(currentLength, { text: text22 = "Unlabeled" }) {
|
|
134355
|
-
const _textLength = getTextLength(text22);
|
|
134356
|
-
if (_textLength > currentLength) {
|
|
134357
|
-
return _textLength;
|
|
134358
|
-
}
|
|
134359
|
-
return currentLength;
|
|
134360
|
-
}, 0);
|
|
134361
|
-
const maxLabelWidth = maxLabelLength * fontWidth;
|
|
134362
|
-
const labelOnLeft = label.angle > Math.PI;
|
|
134363
|
-
let labelXStart = label.x - (labelOnLeft ? labelLength : 0);
|
|
134364
|
-
if (condenseOverflowingXLabels) {
|
|
134365
|
-
const distancePastBoundary = Math.abs(label.x + (labelOnLeft ? -labelLength : labelLength)) - (outerRadius + 90) * Math.max(1, circularViewWidthVsHeightRatio);
|
|
134366
|
-
if (distancePastBoundary > 0) {
|
|
134367
|
-
const numberOfCharsToChop = Math.ceil(distancePastBoundary / fontWidth) + 2;
|
|
134368
|
-
text2 = text2.slice(0, -numberOfCharsToChop) + "..";
|
|
134369
|
-
groupLabelXStart = labelXStart + (labelOnLeft ? distancePastBoundary : -distancePastBoundary);
|
|
134370
|
-
labelXStart += labelOnLeft ? distancePastBoundary : 0;
|
|
134371
|
-
}
|
|
134372
|
-
}
|
|
134373
|
-
const dy = fontHeight;
|
|
134374
|
-
const textYStart = label.y + dy / 2;
|
|
134375
|
-
let content2;
|
|
134376
|
-
const labelClass = ` veLabelText veCircularViewLabelText clickable ${label.color} `;
|
|
134377
|
-
if ((multipleLabels || groupLabelXStart !== void 0) && hovered) {
|
|
134378
|
-
window.isLabelGroupOpen = true;
|
|
134379
|
-
let hoveredLabel;
|
|
134380
|
-
if (groupLabelXStart !== void 0) {
|
|
134381
|
-
labelXStart = groupLabelXStart;
|
|
134382
|
-
}
|
|
134383
|
-
labelAndSublabels.some(function(label2) {
|
|
134384
|
-
if (label2.id === hoveredId) {
|
|
134385
|
-
hoveredLabel = label2;
|
|
134386
|
-
return true;
|
|
134387
|
-
}
|
|
134388
|
-
return false;
|
|
134389
|
-
});
|
|
134390
|
-
if (!hoveredLabel) {
|
|
134391
|
-
hoveredLabel = label;
|
|
134392
|
-
}
|
|
134393
|
-
let labelYStart = label.y;
|
|
134394
|
-
const labelGroupHeight = labelAndSublabels.length * dy;
|
|
134395
|
-
const labelGroupBottom = label.y + labelGroupHeight;
|
|
134396
|
-
if (labelGroupBottom > outerRadius + 20) {
|
|
134397
|
-
labelYStart -= (label.labelAndSublabels.length - 1) * dy;
|
|
134398
|
-
}
|
|
134399
|
-
const line = LabelLine(
|
|
134400
|
-
[
|
|
134401
|
-
hoveredLabel.innerPoint,
|
|
134402
|
-
// hoveredLabel.labelAndSublabels &&
|
|
134403
|
-
// hoveredLabel.labelAndSublabels.length > 0
|
|
134404
|
-
// ? hoveredLabel.outerPoint
|
|
134405
|
-
// : {},
|
|
134406
|
-
label
|
|
134407
|
-
],
|
|
134408
|
-
{ style: { opacity: 1 }, strokeWidth: 2 }
|
|
134409
|
-
);
|
|
134410
|
-
content2 = [
|
|
134411
|
-
line,
|
|
134412
|
-
/* @__PURE__ */ React$2.createElement(PutMyParentOnTop, { editorName, key: "gGroup" }, /* @__PURE__ */ React$2.createElement("g", { className: className + " topLevelLabelGroup" }, /* @__PURE__ */ React$2.createElement(
|
|
134413
|
-
"rect",
|
|
134414
|
-
{
|
|
134415
|
-
onMouseOver: cancelFn,
|
|
134416
|
-
x: labelXStart - 4,
|
|
134417
|
-
y: labelYStart - dy / 2,
|
|
134418
|
-
width: maxLabelWidth + 24,
|
|
134419
|
-
height: labelGroupHeight + 4,
|
|
134420
|
-
fill: "white",
|
|
134421
|
-
stroke: "black"
|
|
134422
|
-
}
|
|
134423
|
-
), /* @__PURE__ */ React$2.createElement(
|
|
134424
|
-
"text",
|
|
134425
|
-
{
|
|
134426
|
-
x: labelXStart,
|
|
134427
|
-
y: labelYStart,
|
|
134428
|
-
style: {
|
|
134429
|
-
fontSize: fontWidth * fontWidthToFontSize,
|
|
134430
|
-
fontStyle: label.fontStyle
|
|
134431
|
-
}
|
|
134432
|
-
},
|
|
134433
|
-
labelAndSublabels.map(function(label2, index2) {
|
|
134434
|
-
return /* @__PURE__ */ React$2.createElement(
|
|
134435
|
-
DrawGroupInnerLabel,
|
|
134436
|
-
__spreadValues({
|
|
134437
|
-
isSubLabel: true,
|
|
134438
|
-
noRedux,
|
|
134439
|
-
editorName,
|
|
134440
|
-
logHover: true,
|
|
134441
|
-
key: "labelItem" + index2,
|
|
134442
|
-
className: (label2.className || "") + labelClass + " veDrawGroupInnerLabel",
|
|
134443
|
-
id: label2.id
|
|
134444
|
-
}, { labelXStart, label: label2, fontWidth, index: index2, dy })
|
|
134445
|
-
);
|
|
134446
|
-
})
|
|
134447
|
-
)))
|
|
134448
|
-
];
|
|
134449
|
-
} else {
|
|
134450
|
-
content2 = [
|
|
134451
|
-
/* @__PURE__ */ React$2.createElement("title", { key: "labeltitle" }, label.title || label.text),
|
|
134452
|
-
/* @__PURE__ */ React$2.createElement(
|
|
134453
|
-
"text",
|
|
134454
|
-
{
|
|
134455
|
-
key: "text",
|
|
134456
|
-
x: labelXStart,
|
|
134457
|
-
textLength: getTextLength(text2) * fontWidth,
|
|
134458
|
-
lengthAdjust: "spacing",
|
|
134459
|
-
className: labelClass + label.className + (hovered ? " veAnnotationHovered" : ""),
|
|
134460
|
-
y: textYStart,
|
|
134461
|
-
style: {
|
|
134462
|
-
fontSize: fontWidth * fontWidthToFontSize,
|
|
134463
|
-
fontStyle: label.fontStyle,
|
|
134464
|
-
fill: label.color || "black"
|
|
134465
|
-
// stroke: label.color ? label.color : "black"
|
|
134466
|
-
}
|
|
134467
|
-
},
|
|
134468
|
-
text2
|
|
134469
|
-
),
|
|
134470
|
-
LabelLine(
|
|
134471
|
-
[
|
|
134472
|
-
label.innerPoint,
|
|
134473
|
-
// hovered || label.annotationType === "part" //because parts live on the outside of the sequence, we don't need to show the truncated point, we can just point to them directly
|
|
134474
|
-
// ? label.innerPoint
|
|
134475
|
-
// : label.truncatedInnerPoint,
|
|
134476
|
-
label.outerPoint,
|
|
134477
|
-
label
|
|
134478
|
-
],
|
|
134479
|
-
hovered ? { style: { opacity: 1 }, strokeWidth: 2 } : { style: { opacity: labelLineIntensity2 } }
|
|
134480
|
-
)
|
|
134481
|
-
];
|
|
134482
|
-
}
|
|
134483
|
-
return /* @__PURE__ */ React$2.createElement(
|
|
134484
|
-
"g",
|
|
134485
|
-
__spreadValues(__spreadValues({}, { onMouseLeave, onMouseOver }), {
|
|
134486
|
-
onClick: label.onClick,
|
|
134487
|
-
onDoubleClick: label.onDoubleClick || lodashExports.noop,
|
|
134488
|
-
onContextMenu: label.onContextMenu || lodashExports.noop
|
|
134489
|
-
}),
|
|
134490
|
-
content2
|
|
134491
|
-
);
|
|
134492
|
-
});
|
|
134493
|
-
function LabelLine(pointArray, options) {
|
|
134494
|
-
let points = "";
|
|
134495
|
-
pointArray.forEach(function({ x, y: y2 }) {
|
|
134496
|
-
if (!x && x !== 0)
|
|
134497
|
-
return;
|
|
134498
|
-
points += `${x},${y2} `;
|
|
134499
|
-
});
|
|
134500
|
-
return /* @__PURE__ */ React$2.createElement(React$2.Fragment, { key: "labelLine" }, /* @__PURE__ */ React$2.createElement(
|
|
134501
|
-
"polyline",
|
|
134502
|
-
__spreadValues({}, __spreadValues({
|
|
134503
|
-
key: "polyline-long",
|
|
134504
|
-
points,
|
|
134505
|
-
stroke: "black",
|
|
134506
|
-
fill: "none",
|
|
134507
|
-
strokeWidth: 1,
|
|
134508
|
-
className: "veLabelLine"
|
|
134509
|
-
}, options))
|
|
134510
|
-
));
|
|
134511
|
-
}
|
|
134512
|
-
__name(LabelLine, "LabelLine");
|
|
134513
|
-
const DrawGroupInnerLabel = withHover(
|
|
134514
|
-
({ className, labelXStart, label, fontWidth, onMouseOver, index: index2, dy }) => {
|
|
134515
|
-
return /* @__PURE__ */ React$2.createElement(
|
|
134516
|
-
"tspan",
|
|
134517
|
-
__spreadProps(__spreadValues({
|
|
134518
|
-
x: labelXStart,
|
|
134519
|
-
textLength: getTextLength(label.text) * fontWidth,
|
|
134520
|
-
lengthAdjust: "spacing",
|
|
134521
|
-
onClick: label.onClick,
|
|
134522
|
-
onDoubleClick: (e2) => {
|
|
134523
|
-
e2.stopPropagation();
|
|
134524
|
-
label.onDoubleClick && label.onDoubleClick(e2);
|
|
134525
|
-
},
|
|
134526
|
-
onContextMenu: label.onContextMenu,
|
|
134527
|
-
dy: index2 === 0 ? dy / 2 : dy,
|
|
134528
|
-
style: {
|
|
134529
|
-
fill: label.color ? label.color : "black",
|
|
134530
|
-
fontStyle: label.fontStyle
|
|
134531
|
-
}
|
|
134532
|
-
}, { onMouseOver }), {
|
|
134533
|
-
className
|
|
134534
|
-
}),
|
|
134535
|
-
/* @__PURE__ */ React$2.createElement("title", null, label.title),
|
|
134536
|
-
label.text
|
|
134537
|
-
);
|
|
134538
|
-
}
|
|
134539
|
-
);
|
|
134540
|
-
const DrawGroupedLabels = /* @__PURE__ */ __name(function DrawGroupedLabelsInner({
|
|
134541
|
-
groupedLabels,
|
|
134542
|
-
circularViewWidthVsHeightRatio,
|
|
134543
|
-
fontWidth,
|
|
134544
|
-
noRedux,
|
|
134545
|
-
fontHeight,
|
|
134546
|
-
condenseOverflowingXLabels,
|
|
134547
|
-
outerRadius,
|
|
134548
|
-
editorName,
|
|
134549
|
-
labelLineIntensity: labelLineIntensity2
|
|
134550
|
-
}) {
|
|
134551
|
-
return groupedLabels.map(function(label, i) {
|
|
134552
|
-
const { labelAndSublabels, labelIds } = label;
|
|
134553
|
-
const multipleLabels = labelAndSublabels.length > 1;
|
|
134554
|
-
return /* @__PURE__ */ React$2.createElement(
|
|
134555
|
-
DrawLabelGroup,
|
|
134556
|
-
__spreadValues({
|
|
134557
|
-
key: i,
|
|
134558
|
-
id: labelIds
|
|
134559
|
-
}, {
|
|
134560
|
-
label,
|
|
134561
|
-
noRedux,
|
|
134562
|
-
passHoveredId: true,
|
|
134563
|
-
//needed to get the hoveredId
|
|
134564
|
-
isLabelGroup: true,
|
|
134565
|
-
className: "DrawLabelGroup",
|
|
134566
|
-
multipleLabels,
|
|
134567
|
-
labelAndSublabels,
|
|
134568
|
-
labelIds,
|
|
134569
|
-
circularViewWidthVsHeightRatio,
|
|
134570
|
-
fontWidth,
|
|
134571
|
-
editorName,
|
|
134572
|
-
fontHeight,
|
|
134573
|
-
condenseOverflowingXLabels,
|
|
134574
|
-
outerRadius,
|
|
134575
|
-
labelLineIntensity: labelLineIntensity2
|
|
134576
|
-
})
|
|
134577
|
-
);
|
|
134578
|
-
});
|
|
134579
|
-
}, "DrawGroupedLabelsInner");
|
|
134580
|
-
function cancelFn(e2) {
|
|
134581
|
-
e2.stopPropagation();
|
|
134582
|
-
}
|
|
134583
|
-
__name(cancelFn, "cancelFn");
|
|
134584
|
-
const _PutMyParentOnTop = class _PutMyParentOnTop extends React$2.Component {
|
|
134585
|
-
componentDidMount() {
|
|
134586
|
-
const { editorName } = this.props;
|
|
134587
|
-
try {
|
|
134588
|
-
const el = document.querySelector(
|
|
134589
|
-
`.veEditor.${editorName} .topLevelLabelGroup`
|
|
134590
|
-
);
|
|
134591
|
-
const parent2 = el.parentElement.parentElement;
|
|
134592
|
-
const i = Array.prototype.indexOf.call(parent2.children, el.parentElement);
|
|
134593
|
-
parent2.insertBefore(parent2.children[i], null);
|
|
134594
|
-
} catch (error) {
|
|
134595
|
-
console.warn(
|
|
134596
|
-
"OVE-975239 - hit an error trying to re-order labels:",
|
|
134597
|
-
error
|
|
134598
|
-
);
|
|
134599
|
-
}
|
|
134600
|
-
}
|
|
134601
|
-
render() {
|
|
134602
|
-
return this.props.children;
|
|
134603
|
-
}
|
|
134604
|
-
};
|
|
134605
|
-
__name(_PutMyParentOnTop, "PutMyParentOnTop");
|
|
134606
|
-
let PutMyParentOnTop = _PutMyParentOnTop;
|
|
134607
|
-
var baseGetTag = _baseGetTag, isObjectLike = isObjectLike_1;
|
|
134608
|
-
var numberTag = "[object Number]";
|
|
134609
|
-
function isNumber(value) {
|
|
134610
|
-
return typeof value == "number" || isObjectLike(value) && baseGetTag(value) == numberTag;
|
|
134439
|
+
function getRangeAnglesSpecial() {
|
|
134440
|
+
const _a2 = getRangeAngles.apply(
|
|
134441
|
+
this,
|
|
134442
|
+
arguments
|
|
134443
|
+
), { endAngle, totalAngle } = _a2, rest = __objRest(_a2, ["endAngle", "totalAngle"]);
|
|
134444
|
+
return __spreadValues({
|
|
134445
|
+
endAngle: endAngle - 1e-5,
|
|
134446
|
+
//we subtract a tiny amount because an angle of 2PI will cause nothing to be drawn!
|
|
134447
|
+
totalAngle: totalAngle - 1e-5
|
|
134448
|
+
}, rest);
|
|
134611
134449
|
}
|
|
134612
|
-
__name(
|
|
134613
|
-
var isNumber_1 = isNumber;
|
|
134614
|
-
const isNumber$1 = /* @__PURE__ */ getDefaultExportFromCjs(isNumber_1);
|
|
134450
|
+
__name(getRangeAnglesSpecial, "getRangeAnglesSpecial");
|
|
134615
134451
|
function PositionAnnotationOnCircle(_z) {
|
|
134616
134452
|
var _A = _z, {
|
|
134617
134453
|
children,
|
|
@@ -134642,60 +134478,6 @@ function PositionAnnotationOnCircle(_z) {
|
|
|
134642
134478
|
return React$2.cloneElement(children, props);
|
|
134643
134479
|
}
|
|
134644
134480
|
__name(PositionAnnotationOnCircle, "PositionAnnotationOnCircle");
|
|
134645
|
-
function Caret({
|
|
134646
|
-
caretPosition: caretPosition2,
|
|
134647
|
-
sequenceLength,
|
|
134648
|
-
className,
|
|
134649
|
-
onClick,
|
|
134650
|
-
isSelection,
|
|
134651
|
-
innerRadius,
|
|
134652
|
-
outerRadius,
|
|
134653
|
-
isProtein: isProtein2,
|
|
134654
|
-
selectionMessage
|
|
134655
|
-
}) {
|
|
134656
|
-
const { startAngle, endAngle } = getRangeAngles(
|
|
134657
|
-
{ start: caretPosition2, end: caretPosition2 },
|
|
134658
|
-
sequenceLength || 1
|
|
134659
|
-
);
|
|
134660
|
-
if (!isNumber$1(startAngle)) {
|
|
134661
|
-
console.error("we've got a problem!");
|
|
134662
|
-
}
|
|
134663
|
-
const { transform: transform3 } = PositionAnnotationOnCircle({
|
|
134664
|
-
sAngle: startAngle,
|
|
134665
|
-
eAngle: endAngle,
|
|
134666
|
-
height: 0
|
|
134667
|
-
});
|
|
134668
|
-
return /* @__PURE__ */ React$2.createElement(
|
|
134669
|
-
"g",
|
|
134670
|
-
{
|
|
134671
|
-
onClick,
|
|
134672
|
-
transform: transform3,
|
|
134673
|
-
className: className + " veCaret " + draggableClassnames.caret
|
|
134674
|
-
},
|
|
134675
|
-
/* @__PURE__ */ React$2.createElement("title", null, selectionMessage || getSelectionMessage({ caretPosition: caretPosition2, isProtein: isProtein2, sequenceLength })),
|
|
134676
|
-
/* @__PURE__ */ React$2.createElement(
|
|
134677
|
-
"line",
|
|
134678
|
-
{
|
|
134679
|
-
strokeWidth: "1.5px",
|
|
134680
|
-
x1: 0,
|
|
134681
|
-
y1: -innerRadius,
|
|
134682
|
-
x2: 0,
|
|
134683
|
-
y2: -outerRadius
|
|
134684
|
-
}
|
|
134685
|
-
),
|
|
134686
|
-
isSelection ? /* @__PURE__ */ React$2.createElement(
|
|
134687
|
-
"polygon",
|
|
134688
|
-
{
|
|
134689
|
-
className: "vePolygonCaretHandle",
|
|
134690
|
-
fill: "black",
|
|
134691
|
-
points: `0,${-outerRadius + 2} 5,${-outerRadius - 10} -5,${-outerRadius - 10}`
|
|
134692
|
-
}
|
|
134693
|
-
) : null
|
|
134694
|
-
);
|
|
134695
|
-
}
|
|
134696
|
-
__name(Caret, "Caret");
|
|
134697
|
-
const Caret$1 = pure(Caret);
|
|
134698
|
-
var sector$1 = { exports: {} };
|
|
134699
134481
|
var path = { exports: {} };
|
|
134700
134482
|
var geom = { exports: {} };
|
|
134701
134483
|
(function(module2, exports2) {
|
|
@@ -135304,407 +135086,6 @@ var geomExports = geom.exports;
|
|
|
135304
135086
|
})(path, path.exports);
|
|
135305
135087
|
var pathExports = path.exports;
|
|
135306
135088
|
const Path = /* @__PURE__ */ getDefaultExportFromCjs(pathExports);
|
|
135307
|
-
var ops = {};
|
|
135308
|
-
(function(exports2) {
|
|
135309
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
135310
|
-
value: true
|
|
135311
|
-
});
|
|
135312
|
-
var _slicedToArray2 = function() {
|
|
135313
|
-
function sliceIterator(arr, i) {
|
|
135314
|
-
var _arr = [];
|
|
135315
|
-
var _n = true;
|
|
135316
|
-
var _d = false;
|
|
135317
|
-
var _e = void 0;
|
|
135318
|
-
try {
|
|
135319
|
-
for (var _i = arr[Symbol.iterator](), _s2; !(_n = (_s2 = _i.next()).done); _n = true) {
|
|
135320
|
-
_arr.push(_s2.value);
|
|
135321
|
-
if (i && _arr.length === i)
|
|
135322
|
-
break;
|
|
135323
|
-
}
|
|
135324
|
-
} catch (err2) {
|
|
135325
|
-
_d = true;
|
|
135326
|
-
_e = err2;
|
|
135327
|
-
} finally {
|
|
135328
|
-
try {
|
|
135329
|
-
if (!_n && _i["return"])
|
|
135330
|
-
_i["return"]();
|
|
135331
|
-
} finally {
|
|
135332
|
-
if (_d)
|
|
135333
|
-
throw _e;
|
|
135334
|
-
}
|
|
135335
|
-
}
|
|
135336
|
-
return _arr;
|
|
135337
|
-
}
|
|
135338
|
-
__name(sliceIterator, "sliceIterator");
|
|
135339
|
-
return function(arr, i) {
|
|
135340
|
-
if (Array.isArray(arr)) {
|
|
135341
|
-
return arr;
|
|
135342
|
-
} else if (Symbol.iterator in Object(arr)) {
|
|
135343
|
-
return sliceIterator(arr, i);
|
|
135344
|
-
} else {
|
|
135345
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
135346
|
-
}
|
|
135347
|
-
};
|
|
135348
|
-
}();
|
|
135349
|
-
var sum2 = /* @__PURE__ */ __name(function sum3(xs) {
|
|
135350
|
-
return xs.reduce(function(a2, b3) {
|
|
135351
|
-
return a2 + b3;
|
|
135352
|
-
}, 0);
|
|
135353
|
-
}, "sum");
|
|
135354
|
-
var min2 = /* @__PURE__ */ __name(function min3(xs) {
|
|
135355
|
-
return xs.reduce(function(a2, b3) {
|
|
135356
|
-
return Math.min(a2, b3);
|
|
135357
|
-
});
|
|
135358
|
-
}, "min");
|
|
135359
|
-
var max2 = /* @__PURE__ */ __name(function max3(xs) {
|
|
135360
|
-
return xs.reduce(function(a2, b3) {
|
|
135361
|
-
return Math.max(a2, b3);
|
|
135362
|
-
});
|
|
135363
|
-
}, "max");
|
|
135364
|
-
var sumBy = /* @__PURE__ */ __name(function sumBy2(xs, f2) {
|
|
135365
|
-
return xs.reduce(function(a2, b3) {
|
|
135366
|
-
return a2 + f2(b3);
|
|
135367
|
-
}, 0);
|
|
135368
|
-
}, "sumBy");
|
|
135369
|
-
var minBy = /* @__PURE__ */ __name(function minBy2(xs, f2) {
|
|
135370
|
-
return xs.reduce(function(a2, b3) {
|
|
135371
|
-
return Math.min(a2, f2(b3));
|
|
135372
|
-
}, Infinity);
|
|
135373
|
-
}, "minBy");
|
|
135374
|
-
var maxBy = /* @__PURE__ */ __name(function maxBy2(xs, f2) {
|
|
135375
|
-
return xs.reduce(function(a2, b3) {
|
|
135376
|
-
return Math.max(a2, f2(b3));
|
|
135377
|
-
}, -Infinity);
|
|
135378
|
-
}, "maxBy");
|
|
135379
|
-
var plus = /* @__PURE__ */ __name(function plus2(_ref, _ref3) {
|
|
135380
|
-
var _ref2 = _slicedToArray2(_ref, 2);
|
|
135381
|
-
var a2 = _ref2[0];
|
|
135382
|
-
var b3 = _ref2[1];
|
|
135383
|
-
var _ref32 = _slicedToArray2(_ref3, 2);
|
|
135384
|
-
var c2 = _ref32[0];
|
|
135385
|
-
var d2 = _ref32[1];
|
|
135386
|
-
return [a2 + c2, b3 + d2];
|
|
135387
|
-
}, "plus");
|
|
135388
|
-
var minus = /* @__PURE__ */ __name(function minus2(_ref4, _ref5) {
|
|
135389
|
-
var _ref42 = _slicedToArray2(_ref4, 2);
|
|
135390
|
-
var a2 = _ref42[0];
|
|
135391
|
-
var b3 = _ref42[1];
|
|
135392
|
-
var _ref52 = _slicedToArray2(_ref5, 2);
|
|
135393
|
-
var c2 = _ref52[0];
|
|
135394
|
-
var d2 = _ref52[1];
|
|
135395
|
-
return [a2 - c2, b3 - d2];
|
|
135396
|
-
}, "minus");
|
|
135397
|
-
var times = /* @__PURE__ */ __name(function times2(k2, _ref6) {
|
|
135398
|
-
var _ref62 = _slicedToArray2(_ref6, 2);
|
|
135399
|
-
var a2 = _ref62[0];
|
|
135400
|
-
var b3 = _ref62[1];
|
|
135401
|
-
return [k2 * a2, k2 * b3];
|
|
135402
|
-
}, "times");
|
|
135403
|
-
var length = /* @__PURE__ */ __name(function length2(_ref7) {
|
|
135404
|
-
var _ref72 = _slicedToArray2(_ref7, 2);
|
|
135405
|
-
var a2 = _ref72[0];
|
|
135406
|
-
var b3 = _ref72[1];
|
|
135407
|
-
return Math.sqrt(a2 * a2 + b3 * b3);
|
|
135408
|
-
}, "length");
|
|
135409
|
-
var sumVectors = /* @__PURE__ */ __name(function sumVectors2(xs) {
|
|
135410
|
-
return xs.reduce(plus, [0, 0]);
|
|
135411
|
-
}, "sumVectors");
|
|
135412
|
-
var average = /* @__PURE__ */ __name(function average2(points) {
|
|
135413
|
-
return times(1 / points.length, points.reduce(plus));
|
|
135414
|
-
}, "average");
|
|
135415
|
-
var onCircle = /* @__PURE__ */ __name(function onCircle2(r2, angle2) {
|
|
135416
|
-
return times(r2, [Math.sin(angle2), -Math.cos(angle2)]);
|
|
135417
|
-
}, "onCircle");
|
|
135418
|
-
var enhance = /* @__PURE__ */ __name(function enhance2(compute, curve) {
|
|
135419
|
-
var obj = compute || {};
|
|
135420
|
-
for (var key in obj) {
|
|
135421
|
-
var method = obj[key];
|
|
135422
|
-
curve[key] = method(curve.index, curve.item, curve.group);
|
|
135423
|
-
}
|
|
135424
|
-
return curve;
|
|
135425
|
-
}, "enhance");
|
|
135426
|
-
var range2 = /* @__PURE__ */ __name(function range3(a2, b3, inclusive) {
|
|
135427
|
-
var result = [];
|
|
135428
|
-
for (var i = a2; i < b3; i++) {
|
|
135429
|
-
result.push(i);
|
|
135430
|
-
}
|
|
135431
|
-
if (inclusive) {
|
|
135432
|
-
result.push(b3);
|
|
135433
|
-
}
|
|
135434
|
-
return result;
|
|
135435
|
-
}, "range");
|
|
135436
|
-
var mapObject = /* @__PURE__ */ __name(function mapObject2(obj, f2) {
|
|
135437
|
-
var result = [];
|
|
135438
|
-
var _iteratorNormalCompletion = true;
|
|
135439
|
-
var _didIteratorError = false;
|
|
135440
|
-
var _iteratorError = void 0;
|
|
135441
|
-
try {
|
|
135442
|
-
for (var _iterator3 = Object.keys(obj)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator3.next()).done); _iteratorNormalCompletion = true) {
|
|
135443
|
-
var k2 = _step.value;
|
|
135444
|
-
var v2 = obj[k2];
|
|
135445
|
-
result.push(f2(k2, v2));
|
|
135446
|
-
}
|
|
135447
|
-
} catch (err2) {
|
|
135448
|
-
_didIteratorError = true;
|
|
135449
|
-
_iteratorError = err2;
|
|
135450
|
-
} finally {
|
|
135451
|
-
try {
|
|
135452
|
-
if (!_iteratorNormalCompletion && _iterator3["return"]) {
|
|
135453
|
-
_iterator3["return"]();
|
|
135454
|
-
}
|
|
135455
|
-
} finally {
|
|
135456
|
-
if (_didIteratorError) {
|
|
135457
|
-
throw _iteratorError;
|
|
135458
|
-
}
|
|
135459
|
-
}
|
|
135460
|
-
}
|
|
135461
|
-
return result;
|
|
135462
|
-
}, "mapObject");
|
|
135463
|
-
var pairs = /* @__PURE__ */ __name(function pairs2(obj) {
|
|
135464
|
-
return mapObject(obj, function(k2, v2) {
|
|
135465
|
-
return [k2, v2];
|
|
135466
|
-
});
|
|
135467
|
-
}, "pairs");
|
|
135468
|
-
var id2 = /* @__PURE__ */ __name(function id3(x) {
|
|
135469
|
-
return x;
|
|
135470
|
-
}, "id");
|
|
135471
|
-
exports2.sum = sum2;
|
|
135472
|
-
exports2.min = min2;
|
|
135473
|
-
exports2.max = max2;
|
|
135474
|
-
exports2.sumBy = sumBy;
|
|
135475
|
-
exports2.minBy = minBy;
|
|
135476
|
-
exports2.maxBy = maxBy;
|
|
135477
|
-
exports2.plus = plus;
|
|
135478
|
-
exports2.minus = minus;
|
|
135479
|
-
exports2.times = times;
|
|
135480
|
-
exports2.id = id2;
|
|
135481
|
-
exports2.length = length;
|
|
135482
|
-
exports2.sumVectors = sumVectors;
|
|
135483
|
-
exports2.average = average;
|
|
135484
|
-
exports2.onCircle = onCircle;
|
|
135485
|
-
exports2.enhance = enhance;
|
|
135486
|
-
exports2.range = range2;
|
|
135487
|
-
exports2.mapObject = mapObject;
|
|
135488
|
-
exports2.pairs = pairs;
|
|
135489
|
-
exports2["default"] = {
|
|
135490
|
-
sum: sum2,
|
|
135491
|
-
min: min2,
|
|
135492
|
-
max: max2,
|
|
135493
|
-
sumBy,
|
|
135494
|
-
minBy,
|
|
135495
|
-
maxBy,
|
|
135496
|
-
plus,
|
|
135497
|
-
minus,
|
|
135498
|
-
times,
|
|
135499
|
-
id: id2,
|
|
135500
|
-
length,
|
|
135501
|
-
sumVectors,
|
|
135502
|
-
average,
|
|
135503
|
-
onCircle,
|
|
135504
|
-
enhance,
|
|
135505
|
-
range: range2,
|
|
135506
|
-
mapObject,
|
|
135507
|
-
pairs
|
|
135508
|
-
};
|
|
135509
|
-
})(ops);
|
|
135510
|
-
(function(module2, exports2) {
|
|
135511
|
-
Object.defineProperty(exports2, "__esModule", {
|
|
135512
|
-
value: true
|
|
135513
|
-
});
|
|
135514
|
-
function _interopRequireDefault2(obj) {
|
|
135515
|
-
return obj && obj.__esModule ? obj : { "default": obj };
|
|
135516
|
-
}
|
|
135517
|
-
__name(_interopRequireDefault2, "_interopRequireDefault");
|
|
135518
|
-
function _toConsumableArray2(arr) {
|
|
135519
|
-
if (Array.isArray(arr)) {
|
|
135520
|
-
for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++)
|
|
135521
|
-
arr2[i] = arr[i];
|
|
135522
|
-
return arr2;
|
|
135523
|
-
} else {
|
|
135524
|
-
return Array.from(arr);
|
|
135525
|
-
}
|
|
135526
|
-
}
|
|
135527
|
-
__name(_toConsumableArray2, "_toConsumableArray");
|
|
135528
|
-
var _path = pathExports;
|
|
135529
|
-
var _path2 = _interopRequireDefault2(_path);
|
|
135530
|
-
var _ops = ops;
|
|
135531
|
-
exports2["default"] = function(_ref) {
|
|
135532
|
-
var _Path$moveto$arc$lineto, _Path$moveto$arc, _Path$moveto, _Path;
|
|
135533
|
-
var center = _ref.center;
|
|
135534
|
-
var r2 = _ref.r;
|
|
135535
|
-
var R2 = _ref.R;
|
|
135536
|
-
var start2 = _ref.start;
|
|
135537
|
-
var end2 = _ref.end;
|
|
135538
|
-
var epsilon = 1e-4;
|
|
135539
|
-
if (Math.abs(end2 - 2 * Math.PI) < epsilon) {
|
|
135540
|
-
end2 = 2 * Math.PI - epsilon;
|
|
135541
|
-
}
|
|
135542
|
-
var a2 = (0, _ops.plus)(center, (0, _ops.onCircle)(R2, start2));
|
|
135543
|
-
var b3 = (0, _ops.plus)(center, (0, _ops.onCircle)(R2, end2));
|
|
135544
|
-
var c2 = (0, _ops.plus)(center, (0, _ops.onCircle)(r2, end2));
|
|
135545
|
-
var d2 = (0, _ops.plus)(center, (0, _ops.onCircle)(r2, start2));
|
|
135546
|
-
var large = end2 - start2 > Math.PI ? 1 : 0;
|
|
135547
|
-
var path2 = (_Path$moveto$arc$lineto = (_Path$moveto$arc = (_Path$moveto = (_Path = (0, _path2["default"])()).moveto.apply(_Path, _toConsumableArray2(a2))).arc.apply(_Path$moveto, [R2, R2, 0, large, 1].concat(_toConsumableArray2(b3)))).lineto.apply(_Path$moveto$arc, _toConsumableArray2(c2))).arc.apply(_Path$moveto$arc$lineto, [r2, r2, 0, large, 0].concat(_toConsumableArray2(d2))).closepath();
|
|
135548
|
-
var midAngle = (start2 + end2) / 2;
|
|
135549
|
-
var midRadius = (r2 + R2) / 2;
|
|
135550
|
-
var centroid = (0, _ops.plus)(center, (0, _ops.onCircle)(midRadius, midAngle));
|
|
135551
|
-
return {
|
|
135552
|
-
path: path2,
|
|
135553
|
-
centroid
|
|
135554
|
-
};
|
|
135555
|
-
};
|
|
135556
|
-
module2.exports = exports2["default"];
|
|
135557
|
-
})(sector$1, sector$1.exports);
|
|
135558
|
-
var sectorExports = sector$1.exports;
|
|
135559
|
-
const sector = /* @__PURE__ */ getDefaultExportFromCjs(sectorExports);
|
|
135560
|
-
function getRangeAnglesSpecial() {
|
|
135561
|
-
const _a2 = getRangeAngles.apply(
|
|
135562
|
-
this,
|
|
135563
|
-
arguments
|
|
135564
|
-
), { endAngle, totalAngle } = _a2, rest = __objRest(_a2, ["endAngle", "totalAngle"]);
|
|
135565
|
-
return __spreadValues({
|
|
135566
|
-
endAngle: endAngle - 1e-5,
|
|
135567
|
-
//we subtract a tiny amount because an angle of 2PI will cause nothing to be drawn!
|
|
135568
|
-
totalAngle: totalAngle - 1e-5
|
|
135569
|
-
}, rest);
|
|
135570
|
-
}
|
|
135571
|
-
__name(getRangeAnglesSpecial, "getRangeAnglesSpecial");
|
|
135572
|
-
function SelectionLayer({
|
|
135573
|
-
isDraggable,
|
|
135574
|
-
selectionLayer: selectionLayer2,
|
|
135575
|
-
sequenceLength,
|
|
135576
|
-
radius,
|
|
135577
|
-
hideTitle,
|
|
135578
|
-
innerRadius,
|
|
135579
|
-
onRightClicked,
|
|
135580
|
-
onClick,
|
|
135581
|
-
index: index2,
|
|
135582
|
-
isProtein: isProtein2
|
|
135583
|
-
}) {
|
|
135584
|
-
const {
|
|
135585
|
-
color: color2,
|
|
135586
|
-
start: start2,
|
|
135587
|
-
end: end2,
|
|
135588
|
-
hideCarets = false,
|
|
135589
|
-
style: style2,
|
|
135590
|
-
className
|
|
135591
|
-
} = selectionLayer2;
|
|
135592
|
-
const { startAngle, endAngle, totalAngle } = getRangeAnglesSpecial(
|
|
135593
|
-
selectionLayer2,
|
|
135594
|
-
sequenceLength
|
|
135595
|
-
);
|
|
135596
|
-
const section = sector({
|
|
135597
|
-
center: [0, 0],
|
|
135598
|
-
//the center is always 0,0 for our annotations :) we rotate later!
|
|
135599
|
-
r: innerRadius,
|
|
135600
|
-
R: radius,
|
|
135601
|
-
start: 0,
|
|
135602
|
-
end: totalAngle
|
|
135603
|
-
});
|
|
135604
|
-
const selectionMessage = getSelectionMessage({
|
|
135605
|
-
sequenceLength,
|
|
135606
|
-
selectionLayer: selectionLayer2,
|
|
135607
|
-
isProtein: isProtein2
|
|
135608
|
-
});
|
|
135609
|
-
const { transform: transform3 } = PositionAnnotationOnCircle({
|
|
135610
|
-
sAngle: startAngle,
|
|
135611
|
-
eAngle: endAngle,
|
|
135612
|
-
height: 0
|
|
135613
|
-
});
|
|
135614
|
-
return /* @__PURE__ */ React$2.createElement(
|
|
135615
|
-
"g",
|
|
135616
|
-
{
|
|
135617
|
-
onContextMenu: (event) => {
|
|
135618
|
-
onRightClicked && onRightClicked({
|
|
135619
|
-
annotation: selectionLayer2,
|
|
135620
|
-
event
|
|
135621
|
-
});
|
|
135622
|
-
},
|
|
135623
|
-
onClick: onClick ? (event) => {
|
|
135624
|
-
onClick({
|
|
135625
|
-
annotation: selectionLayer2,
|
|
135626
|
-
event
|
|
135627
|
-
});
|
|
135628
|
-
} : void 0,
|
|
135629
|
-
key: "veSelectionLayer" + index2,
|
|
135630
|
-
className: "veSelectionLayer " + (className || "")
|
|
135631
|
-
},
|
|
135632
|
-
!hideTitle && /* @__PURE__ */ React$2.createElement("title", null, selectionMessage),
|
|
135633
|
-
/* @__PURE__ */ React$2.createElement(
|
|
135634
|
-
"path",
|
|
135635
|
-
{
|
|
135636
|
-
transform: transform3,
|
|
135637
|
-
className: "selectionLayer",
|
|
135638
|
-
style: __spreadValues({ opacity: 0.3 }, style2),
|
|
135639
|
-
d: section.path.print(),
|
|
135640
|
-
fill: color2
|
|
135641
|
-
}
|
|
135642
|
-
),
|
|
135643
|
-
!hideCarets && /* @__PURE__ */ React$2.createElement(
|
|
135644
|
-
Caret$1,
|
|
135645
|
-
{
|
|
135646
|
-
key: "caret1",
|
|
135647
|
-
className: className + " selectionLayerCaret " + (isDraggable ? draggableClassnames.selectionStart : ""),
|
|
135648
|
-
isSelection: true,
|
|
135649
|
-
onClick: onClick ? noop$4 : preventDefaultStopPropagation,
|
|
135650
|
-
selectionMessage,
|
|
135651
|
-
caretPosition: start2,
|
|
135652
|
-
sequenceLength,
|
|
135653
|
-
innerRadius,
|
|
135654
|
-
outerRadius: radius
|
|
135655
|
-
}
|
|
135656
|
-
),
|
|
135657
|
-
!hideCarets && /* @__PURE__ */ React$2.createElement(
|
|
135658
|
-
Caret$1,
|
|
135659
|
-
{
|
|
135660
|
-
key: "caret2",
|
|
135661
|
-
className: className + " selectionLayerCaret " + (isDraggable ? draggableClassnames.selectionEnd : ""),
|
|
135662
|
-
isSelection: true,
|
|
135663
|
-
onClick: onClick ? noop$4 : preventDefaultStopPropagation,
|
|
135664
|
-
selectionMessage,
|
|
135665
|
-
caretPosition: end2 + 1,
|
|
135666
|
-
sequenceLength,
|
|
135667
|
-
innerRadius,
|
|
135668
|
-
outerRadius: radius
|
|
135669
|
-
}
|
|
135670
|
-
)
|
|
135671
|
-
);
|
|
135672
|
-
}
|
|
135673
|
-
__name(SelectionLayer, "SelectionLayer");
|
|
135674
|
-
const SelectionLayer$1 = pure(SelectionLayer);
|
|
135675
|
-
function Axis({
|
|
135676
|
-
radius,
|
|
135677
|
-
showAxisNumbers,
|
|
135678
|
-
tickMarkHeight = 5,
|
|
135679
|
-
textOffset = 15,
|
|
135680
|
-
ringThickness = 4,
|
|
135681
|
-
zoomLevel
|
|
135682
|
-
}) {
|
|
135683
|
-
const height2 = (ringThickness + (showAxisNumbers ? textOffset + tickMarkHeight : 0)) / zoomLevel;
|
|
135684
|
-
const radiusToUse = showAxisNumbers ? radius + textOffset + tickMarkHeight : radius;
|
|
135685
|
-
const component = /* @__PURE__ */ React$2.createElement("g", { key: "veAxis", className: "veAxis" }, /* @__PURE__ */ React$2.createElement(
|
|
135686
|
-
"circle",
|
|
135687
|
-
{
|
|
135688
|
-
className: "veAxisLine veAxisOuter",
|
|
135689
|
-
key: "circleOuter",
|
|
135690
|
-
r: radiusToUse + ringThickness,
|
|
135691
|
-
style: { fill: "#ffffff00", stroke: "black", strokeWidth: 0.5 }
|
|
135692
|
-
}
|
|
135693
|
-
), /* @__PURE__ */ React$2.createElement(
|
|
135694
|
-
"circle",
|
|
135695
|
-
{
|
|
135696
|
-
className: "veAxisLine veAxisInner",
|
|
135697
|
-
key: "circle",
|
|
135698
|
-
r: radiusToUse,
|
|
135699
|
-
style: { fill: "#ffffff00", stroke: "black", strokeWidth: 0.5 }
|
|
135700
|
-
}
|
|
135701
|
-
));
|
|
135702
|
-
return {
|
|
135703
|
-
component,
|
|
135704
|
-
height: height2
|
|
135705
|
-
};
|
|
135706
|
-
}
|
|
135707
|
-
__name(Axis, "Axis");
|
|
135708
135089
|
function polarToSpecialCartesian(radius, angleInRadians) {
|
|
135709
135090
|
return {
|
|
135710
135091
|
x: radius * Math.cos(angleInRadians - Math.PI / 2),
|
|
@@ -135820,30 +135201,6 @@ function drawDirectedPiePiece({
|
|
|
135820
135201
|
return path2;
|
|
135821
135202
|
}
|
|
135822
135203
|
__name(drawDirectedPiePiece, "drawDirectedPiePiece");
|
|
135823
|
-
function CircularPrimer$1({
|
|
135824
|
-
color: color2 = "orange",
|
|
135825
|
-
radius,
|
|
135826
|
-
annotationHeight,
|
|
135827
|
-
totalAngle
|
|
135828
|
-
}) {
|
|
135829
|
-
return /* @__PURE__ */ React$2.createElement(
|
|
135830
|
-
"path",
|
|
135831
|
-
{
|
|
135832
|
-
className: "veOrf",
|
|
135833
|
-
strokeWidth: ".5",
|
|
135834
|
-
stroke: color2,
|
|
135835
|
-
fill: color2,
|
|
135836
|
-
d: drawDirectedPiePiece({
|
|
135837
|
-
radius,
|
|
135838
|
-
annotationHeight,
|
|
135839
|
-
totalAngle,
|
|
135840
|
-
arrowheadLength: 0.4,
|
|
135841
|
-
tailThickness: 0.4
|
|
135842
|
-
}).print()
|
|
135843
|
-
}
|
|
135844
|
-
);
|
|
135845
|
-
}
|
|
135846
|
-
__name(CircularPrimer$1, "CircularPrimer$1");
|
|
135847
135204
|
function getInternalLabel({
|
|
135848
135205
|
ellipsizedName,
|
|
135849
135206
|
id: id2,
|
|
@@ -135957,58 +135314,6 @@ function Feature(props) {
|
|
|
135957
135314
|
})));
|
|
135958
135315
|
}
|
|
135959
135316
|
__name(Feature, "Feature");
|
|
135960
|
-
function CircularPrimer(props) {
|
|
135961
|
-
const {
|
|
135962
|
-
color: color2 = "orange",
|
|
135963
|
-
radius,
|
|
135964
|
-
arrowheadLength = 0.5,
|
|
135965
|
-
annotationHeight,
|
|
135966
|
-
totalAngle,
|
|
135967
|
-
id: id2,
|
|
135968
|
-
labelNeedsFlip,
|
|
135969
|
-
ellipsizedName
|
|
135970
|
-
} = props;
|
|
135971
|
-
const [path2, textPath] = drawDirectedPiePiece({
|
|
135972
|
-
radius,
|
|
135973
|
-
annotationHeight,
|
|
135974
|
-
totalAngle,
|
|
135975
|
-
arrowheadLength,
|
|
135976
|
-
tailThickness: 1,
|
|
135977
|
-
//feature specific
|
|
135978
|
-
returnTextPath: true,
|
|
135979
|
-
hasLabel: ellipsizedName,
|
|
135980
|
-
labelNeedsFlip
|
|
135981
|
-
});
|
|
135982
|
-
return /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, getStripedPattern({ color: color2 }), /* @__PURE__ */ React$2.createElement(
|
|
135983
|
-
"path",
|
|
135984
|
-
{
|
|
135985
|
-
className: "vePrimer veCircularViewPrimer",
|
|
135986
|
-
id: id2,
|
|
135987
|
-
strokeWidth: ".5",
|
|
135988
|
-
stroke: "black",
|
|
135989
|
-
fill: "url(#diagonalHatch)",
|
|
135990
|
-
d: path2.print()
|
|
135991
|
-
}
|
|
135992
|
-
), getInternalLabel(__spreadProps(__spreadValues({}, props), { colorToUse: color2, textPath })));
|
|
135993
|
-
}
|
|
135994
|
-
__name(CircularPrimer, "CircularPrimer");
|
|
135995
|
-
function Cutsite({
|
|
135996
|
-
annotationHeight,
|
|
135997
|
-
radius
|
|
135998
|
-
// totalAngle,
|
|
135999
|
-
// ...rest
|
|
136000
|
-
}) {
|
|
136001
|
-
return /* @__PURE__ */ React$2.createElement(
|
|
136002
|
-
"rect",
|
|
136003
|
-
{
|
|
136004
|
-
className: "veCutsite",
|
|
136005
|
-
width: 1,
|
|
136006
|
-
y: -radius - 4,
|
|
136007
|
-
height: annotationHeight
|
|
136008
|
-
}
|
|
136009
|
-
);
|
|
136010
|
-
}
|
|
136011
|
-
__name(Cutsite, "Cutsite");
|
|
136012
135317
|
function drawAnnotations(props) {
|
|
136013
135318
|
const {
|
|
136014
135319
|
readOnly: readOnly2,
|
|
@@ -136289,7 +135594,6 @@ function DrawAnnotationInner({
|
|
|
136289
135594
|
onMouseLeave,
|
|
136290
135595
|
onMouseOver
|
|
136291
135596
|
};
|
|
136292
|
-
const title = /* @__PURE__ */ React$2.createElement("title", null, titleText);
|
|
136293
135597
|
function getInner({
|
|
136294
135598
|
startAngle: startAngle2,
|
|
136295
135599
|
endAngle: endAngle2,
|
|
@@ -136306,11 +135610,12 @@ function DrawAnnotationInner({
|
|
|
136306
135610
|
});
|
|
136307
135611
|
return /* @__PURE__ */ React$2.createElement(
|
|
136308
135612
|
"g",
|
|
136309
|
-
__spreadValues({
|
|
135613
|
+
__spreadValues(__spreadProps(__spreadValues({
|
|
136310
135614
|
transform: transform3,
|
|
135615
|
+
"data-title": noTitle ? null : titleText
|
|
135616
|
+
}, avoidOverlapWith), {
|
|
136311
135617
|
key: isNotLocation ? "notLocation" : "location--" + annotation.id + "--" + i
|
|
136312
|
-
}, sharedProps),
|
|
136313
|
-
noTitle ? null : title,
|
|
135618
|
+
}), sharedProps),
|
|
136314
135619
|
/* @__PURE__ */ React$2.createElement(
|
|
136315
135620
|
Annotation,
|
|
136316
135621
|
__spreadValues(__spreadValues(__spreadProps(__spreadValues({}, passAnnotation && { annotation }), {
|
|
@@ -136343,6 +135648,964 @@ function DrawAnnotationInner({
|
|
|
136343
135648
|
}
|
|
136344
135649
|
__name(DrawAnnotationInner, "DrawAnnotationInner");
|
|
136345
135650
|
const DrawAnnotation = withHover(DrawAnnotationInner);
|
|
135651
|
+
const avoidOverlapWith = {
|
|
135652
|
+
"data-avoid": ".topLevelLabelGroup",
|
|
135653
|
+
"data-avoid-backup": ".veLabel.veAnnotationHovered"
|
|
135654
|
+
};
|
|
135655
|
+
const fontWidthToFontSize = 1.75;
|
|
135656
|
+
const getTextLength = /* @__PURE__ */ __name((text2) => {
|
|
135657
|
+
let len = (text2 || "Unlabeled").length;
|
|
135658
|
+
const nonEnInputReg = /[^\x00-\xff]+/g;
|
|
135659
|
+
const nonEnStrings = (text2 || "Unlabeled").match(nonEnInputReg) || [];
|
|
135660
|
+
nonEnStrings.forEach((str) => len += str.length * 0.5);
|
|
135661
|
+
return len;
|
|
135662
|
+
}, "getTextLength");
|
|
135663
|
+
function Labels({
|
|
135664
|
+
labels = [],
|
|
135665
|
+
extraSideSpace,
|
|
135666
|
+
smartCircViewLabelRender,
|
|
135667
|
+
radius: outerRadius,
|
|
135668
|
+
editorName,
|
|
135669
|
+
noRedux,
|
|
135670
|
+
rotationRadians,
|
|
135671
|
+
textScalingFactor,
|
|
135672
|
+
labelLineIntensity: labelLineIntensity2,
|
|
135673
|
+
labelSize: labelSize2 = 8,
|
|
135674
|
+
fontHeightMultiplier = 2.4,
|
|
135675
|
+
circularViewWidthVsHeightRatio,
|
|
135676
|
+
//width of the circular view
|
|
135677
|
+
condenseOverflowingXLabels = true
|
|
135678
|
+
//set to true to make labels tha
|
|
135679
|
+
}) {
|
|
135680
|
+
if (!labels.length) {
|
|
135681
|
+
return {
|
|
135682
|
+
component: null,
|
|
135683
|
+
height: 15
|
|
135684
|
+
};
|
|
135685
|
+
}
|
|
135686
|
+
const originalOuterRadius = outerRadius;
|
|
135687
|
+
outerRadius += smartCircViewLabelRender ? 10 : 25;
|
|
135688
|
+
const radius = outerRadius;
|
|
135689
|
+
const outerPointRadius = outerRadius - 20;
|
|
135690
|
+
const fontWidth = labelSize2 * (textScalingFactor < 1 ? textScalingFactor : 1);
|
|
135691
|
+
const fontHeight = fontWidth * lodashExports.clamp(fontHeightMultiplier, 1.5, 3.5);
|
|
135692
|
+
const labelPoints = labels.map(function(label) {
|
|
135693
|
+
const {
|
|
135694
|
+
annotationCenterAngle: _annotationCenterAngle,
|
|
135695
|
+
annotationCenterRadius
|
|
135696
|
+
} = label;
|
|
135697
|
+
const annotationCenterAngle = _annotationCenterAngle + (rotationRadians || 0);
|
|
135698
|
+
return __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, label), {
|
|
135699
|
+
width: getTextLength(label.text) * fontWidth,
|
|
135700
|
+
//three points define the label:
|
|
135701
|
+
innerPoint: __spreadProps(__spreadValues({}, polarToSpecialCartesian$1(
|
|
135702
|
+
annotationCenterRadius,
|
|
135703
|
+
annotationCenterAngle
|
|
135704
|
+
)), {
|
|
135705
|
+
radius: annotationCenterRadius,
|
|
135706
|
+
angle: annotationCenterAngle
|
|
135707
|
+
}),
|
|
135708
|
+
truncatedInnerPoint: __spreadProps(__spreadValues({}, polarToSpecialCartesian$1(
|
|
135709
|
+
outerPointRadius - 15,
|
|
135710
|
+
annotationCenterAngle
|
|
135711
|
+
)), {
|
|
135712
|
+
radius: outerPointRadius - 15,
|
|
135713
|
+
angle: annotationCenterAngle
|
|
135714
|
+
}),
|
|
135715
|
+
outerPoint: __spreadProps(__spreadValues({}, polarToSpecialCartesian$1(outerPointRadius, annotationCenterAngle)), {
|
|
135716
|
+
radius: outerPointRadius,
|
|
135717
|
+
angle: annotationCenterAngle
|
|
135718
|
+
})
|
|
135719
|
+
}), polarToSpecialCartesian$1(radius, annotationCenterAngle)), {
|
|
135720
|
+
radius: radius + 10,
|
|
135721
|
+
angle: annotationCenterAngle
|
|
135722
|
+
});
|
|
135723
|
+
}).map(function(label) {
|
|
135724
|
+
label.labelAndSublabels = [label];
|
|
135725
|
+
label.labelIds = { [label.id]: true };
|
|
135726
|
+
return label;
|
|
135727
|
+
});
|
|
135728
|
+
let maxRadius = 1;
|
|
135729
|
+
const groupedLabels = relaxLabelAngles(labelPoints, fontHeight, outerRadius).filter((l2) => !!l2).map((originalLabel) => {
|
|
135730
|
+
if (smartCircViewLabelRender) {
|
|
135731
|
+
const newR = Math.sqrt(
|
|
135732
|
+
Math.pow(
|
|
135733
|
+
Math.abs(originalLabel.x) + Math.max(0, originalLabel.text.length * 11 - extraSideSpace / 2),
|
|
135734
|
+
2
|
|
135735
|
+
) + Math.pow(Math.abs(originalLabel.y), 2)
|
|
135736
|
+
);
|
|
135737
|
+
if (newR > maxRadius)
|
|
135738
|
+
maxRadius = newR;
|
|
135739
|
+
}
|
|
135740
|
+
if (originalLabel.highPriorityLabel) {
|
|
135741
|
+
return originalLabel;
|
|
135742
|
+
}
|
|
135743
|
+
const _highPrioritySublabel = originalLabel.labelAndSublabels.find(
|
|
135744
|
+
(l2) => l2.highPriorityLabel
|
|
135745
|
+
);
|
|
135746
|
+
if (_highPrioritySublabel) {
|
|
135747
|
+
const highPrioritySublabel = lodashExports.cloneDeep(_highPrioritySublabel);
|
|
135748
|
+
[
|
|
135749
|
+
"angle",
|
|
135750
|
+
"annotationCenterAngle",
|
|
135751
|
+
"annotationCenterRadius",
|
|
135752
|
+
"innerPoint",
|
|
135753
|
+
"labelAndSublabels",
|
|
135754
|
+
"labelIds",
|
|
135755
|
+
"outerPoint",
|
|
135756
|
+
"radius",
|
|
135757
|
+
"truncatedInnerPoint",
|
|
135758
|
+
"x",
|
|
135759
|
+
"y"
|
|
135760
|
+
].forEach((k2) => {
|
|
135761
|
+
highPrioritySublabel[k2] = originalLabel[k2];
|
|
135762
|
+
});
|
|
135763
|
+
delete originalLabel.labelAndSublabels;
|
|
135764
|
+
return highPrioritySublabel;
|
|
135765
|
+
}
|
|
135766
|
+
return originalLabel;
|
|
135767
|
+
});
|
|
135768
|
+
window.isLabelGroupOpen = false;
|
|
135769
|
+
return {
|
|
135770
|
+
component: /* @__PURE__ */ React$2.createElement(
|
|
135771
|
+
"g",
|
|
135772
|
+
{
|
|
135773
|
+
key: "veLabels",
|
|
135774
|
+
className: "veLabels ve-monospace-font",
|
|
135775
|
+
transform: `rotate(-${rotationRadians * 180 / Math.PI})`
|
|
135776
|
+
},
|
|
135777
|
+
/* @__PURE__ */ React$2.createElement(
|
|
135778
|
+
DrawGroupedLabels,
|
|
135779
|
+
__spreadValues({}, {
|
|
135780
|
+
editorName,
|
|
135781
|
+
noRedux,
|
|
135782
|
+
groupedLabels,
|
|
135783
|
+
circularViewWidthVsHeightRatio,
|
|
135784
|
+
fontWidth,
|
|
135785
|
+
fontHeight,
|
|
135786
|
+
condenseOverflowingXLabels,
|
|
135787
|
+
outerRadius,
|
|
135788
|
+
labelLineIntensity: labelLineIntensity2
|
|
135789
|
+
})
|
|
135790
|
+
)
|
|
135791
|
+
),
|
|
135792
|
+
//we use the <use> tag to position the hovered label group at the top of the stack
|
|
135793
|
+
//point events: none is to fix a click bug..
|
|
135794
|
+
//http://stackoverflow.com/questions/24078524/svg-click-events-not-firing-bubbling-when-using-use-element
|
|
135795
|
+
height: smartCircViewLabelRender ? Math.min(105, maxRadius - originalOuterRadius) : 120
|
|
135796
|
+
};
|
|
135797
|
+
}
|
|
135798
|
+
__name(Labels, "Labels");
|
|
135799
|
+
const DrawLabelGroup = withHover(function({
|
|
135800
|
+
hovered,
|
|
135801
|
+
className,
|
|
135802
|
+
label,
|
|
135803
|
+
labelAndSublabels,
|
|
135804
|
+
fontWidth,
|
|
135805
|
+
noRedux,
|
|
135806
|
+
fontHeight,
|
|
135807
|
+
outerRadius,
|
|
135808
|
+
onMouseLeave,
|
|
135809
|
+
onMouseOver,
|
|
135810
|
+
editorName,
|
|
135811
|
+
circularViewWidthVsHeightRatio,
|
|
135812
|
+
condenseOverflowingXLabels,
|
|
135813
|
+
hoveredId,
|
|
135814
|
+
labelLineIntensity: labelLineIntensity2,
|
|
135815
|
+
// labelIds,
|
|
135816
|
+
multipleLabels
|
|
135817
|
+
// isIdHashmap,
|
|
135818
|
+
}) {
|
|
135819
|
+
let { text: text2 = "Unlabeled" } = label;
|
|
135820
|
+
const textLength = getTextLength(text2);
|
|
135821
|
+
let groupLabelXStart;
|
|
135822
|
+
if (label.labelAndSublabels && label.labelAndSublabels.length > 1) {
|
|
135823
|
+
text2 = "+" + (label.labelAndSublabels.length - 1) + "," + text2;
|
|
135824
|
+
}
|
|
135825
|
+
const labelLength = textLength * fontWidth;
|
|
135826
|
+
const maxLabelLength = labelAndSublabels.reduce(function(currentLength, { text: text22 = "Unlabeled" }) {
|
|
135827
|
+
const _textLength = getTextLength(text22);
|
|
135828
|
+
if (_textLength > currentLength) {
|
|
135829
|
+
return _textLength;
|
|
135830
|
+
}
|
|
135831
|
+
return currentLength;
|
|
135832
|
+
}, 0);
|
|
135833
|
+
const maxLabelWidth = maxLabelLength * fontWidth;
|
|
135834
|
+
const labelOnLeft = label.angle > Math.PI;
|
|
135835
|
+
let labelXStart = label.x - (labelOnLeft ? labelLength : 0);
|
|
135836
|
+
if (condenseOverflowingXLabels) {
|
|
135837
|
+
const distancePastBoundary = Math.abs(label.x + (labelOnLeft ? -labelLength : labelLength)) - (outerRadius + 90) * Math.max(1, circularViewWidthVsHeightRatio);
|
|
135838
|
+
if (distancePastBoundary > 0) {
|
|
135839
|
+
const numberOfCharsToChop = Math.ceil(distancePastBoundary / fontWidth) + 2;
|
|
135840
|
+
text2 = text2.slice(0, -numberOfCharsToChop) + "..";
|
|
135841
|
+
groupLabelXStart = labelXStart + (labelOnLeft ? distancePastBoundary : -distancePastBoundary);
|
|
135842
|
+
labelXStart += labelOnLeft ? distancePastBoundary : 0;
|
|
135843
|
+
}
|
|
135844
|
+
}
|
|
135845
|
+
const dy = fontHeight;
|
|
135846
|
+
const textYStart = label.y + dy / 2;
|
|
135847
|
+
let content2;
|
|
135848
|
+
const labelClass = ` veLabelText veLabel veCircularViewLabelText clickable ${label.color} `;
|
|
135849
|
+
if ((multipleLabels || groupLabelXStart !== void 0) && hovered) {
|
|
135850
|
+
window.isLabelGroupOpen = true;
|
|
135851
|
+
let hoveredLabel;
|
|
135852
|
+
if (groupLabelXStart !== void 0) {
|
|
135853
|
+
labelXStart = groupLabelXStart;
|
|
135854
|
+
}
|
|
135855
|
+
labelAndSublabels.some(function(label2) {
|
|
135856
|
+
if (label2.id === hoveredId) {
|
|
135857
|
+
hoveredLabel = label2;
|
|
135858
|
+
return true;
|
|
135859
|
+
}
|
|
135860
|
+
return false;
|
|
135861
|
+
});
|
|
135862
|
+
if (!hoveredLabel) {
|
|
135863
|
+
hoveredLabel = label;
|
|
135864
|
+
}
|
|
135865
|
+
let labelYStart = label.y;
|
|
135866
|
+
const labelGroupHeight = labelAndSublabels.length * dy;
|
|
135867
|
+
const labelGroupBottom = label.y + labelGroupHeight;
|
|
135868
|
+
if (labelGroupBottom > outerRadius + 20) {
|
|
135869
|
+
labelYStart -= (label.labelAndSublabels.length - 1) * dy;
|
|
135870
|
+
}
|
|
135871
|
+
const line = LabelLine(
|
|
135872
|
+
[
|
|
135873
|
+
hoveredLabel.innerPoint,
|
|
135874
|
+
// hoveredLabel.labelAndSublabels &&
|
|
135875
|
+
// hoveredLabel.labelAndSublabels.length > 0
|
|
135876
|
+
// ? hoveredLabel.outerPoint
|
|
135877
|
+
// : {},
|
|
135878
|
+
label
|
|
135879
|
+
],
|
|
135880
|
+
{ style: { opacity: 1 }, strokeWidth: 2 }
|
|
135881
|
+
);
|
|
135882
|
+
content2 = [
|
|
135883
|
+
line,
|
|
135884
|
+
/* @__PURE__ */ React$2.createElement(PutMyParentOnTop, { editorName, key: "gGroup" }, /* @__PURE__ */ React$2.createElement("g", { className: className + " veLabel topLevelLabelGroup" }, /* @__PURE__ */ React$2.createElement(
|
|
135885
|
+
"rect",
|
|
135886
|
+
{
|
|
135887
|
+
onMouseOver: cancelFn,
|
|
135888
|
+
x: labelXStart - 4,
|
|
135889
|
+
y: labelYStart - dy / 2,
|
|
135890
|
+
width: maxLabelWidth + 24,
|
|
135891
|
+
height: labelGroupHeight + 4,
|
|
135892
|
+
fill: "white",
|
|
135893
|
+
stroke: "black"
|
|
135894
|
+
}
|
|
135895
|
+
), /* @__PURE__ */ React$2.createElement(
|
|
135896
|
+
"text",
|
|
135897
|
+
{
|
|
135898
|
+
x: labelXStart,
|
|
135899
|
+
y: labelYStart,
|
|
135900
|
+
style: {
|
|
135901
|
+
fontSize: fontWidth * fontWidthToFontSize,
|
|
135902
|
+
fontStyle: label.fontStyle
|
|
135903
|
+
}
|
|
135904
|
+
},
|
|
135905
|
+
labelAndSublabels.map(function(label2, index2) {
|
|
135906
|
+
return /* @__PURE__ */ React$2.createElement(
|
|
135907
|
+
DrawGroupInnerLabel,
|
|
135908
|
+
__spreadValues({
|
|
135909
|
+
isSubLabel: true,
|
|
135910
|
+
noRedux,
|
|
135911
|
+
editorName,
|
|
135912
|
+
logHover: true,
|
|
135913
|
+
key: "labelItem" + index2,
|
|
135914
|
+
className: (label2.className || "") + labelClass + " veDrawGroupInnerLabel",
|
|
135915
|
+
id: label2.id
|
|
135916
|
+
}, { labelXStart, label: label2, fontWidth, index: index2, dy })
|
|
135917
|
+
);
|
|
135918
|
+
})
|
|
135919
|
+
)))
|
|
135920
|
+
];
|
|
135921
|
+
} else {
|
|
135922
|
+
content2 = [
|
|
135923
|
+
// <title key="labeltitle">{label.title || label.text}</title>,
|
|
135924
|
+
/* @__PURE__ */ React$2.createElement(
|
|
135925
|
+
"text",
|
|
135926
|
+
__spreadProps(__spreadValues({
|
|
135927
|
+
key: "text",
|
|
135928
|
+
"data-title": label.title || label.text
|
|
135929
|
+
}, avoidOverlapWith), {
|
|
135930
|
+
x: labelXStart,
|
|
135931
|
+
textLength: getTextLength(text2) * fontWidth,
|
|
135932
|
+
lengthAdjust: "spacing",
|
|
135933
|
+
className: labelClass + label.className + (hovered ? " veAnnotationHovered" : ""),
|
|
135934
|
+
y: textYStart,
|
|
135935
|
+
style: {
|
|
135936
|
+
fontSize: fontWidth * fontWidthToFontSize,
|
|
135937
|
+
fontStyle: label.fontStyle,
|
|
135938
|
+
fill: label.color || "black"
|
|
135939
|
+
// stroke: label.color ? label.color : "black"
|
|
135940
|
+
}
|
|
135941
|
+
}),
|
|
135942
|
+
text2
|
|
135943
|
+
),
|
|
135944
|
+
LabelLine(
|
|
135945
|
+
[
|
|
135946
|
+
label.innerPoint,
|
|
135947
|
+
// hovered || label.annotationType === "part" //because parts live on the outside of the sequence, we don't need to show the truncated point, we can just point to them directly
|
|
135948
|
+
// ? label.innerPoint
|
|
135949
|
+
// : label.truncatedInnerPoint,
|
|
135950
|
+
label.outerPoint,
|
|
135951
|
+
label
|
|
135952
|
+
],
|
|
135953
|
+
hovered ? { style: { opacity: 1 }, strokeWidth: 2 } : { style: { opacity: labelLineIntensity2 } }
|
|
135954
|
+
)
|
|
135955
|
+
];
|
|
135956
|
+
}
|
|
135957
|
+
return /* @__PURE__ */ React$2.createElement(
|
|
135958
|
+
"g",
|
|
135959
|
+
__spreadValues(__spreadValues({}, { onMouseLeave, onMouseOver }), {
|
|
135960
|
+
onClick: label.onClick,
|
|
135961
|
+
onDoubleClick: label.onDoubleClick || lodashExports.noop,
|
|
135962
|
+
onContextMenu: label.onContextMenu || lodashExports.noop
|
|
135963
|
+
}),
|
|
135964
|
+
content2
|
|
135965
|
+
);
|
|
135966
|
+
});
|
|
135967
|
+
function LabelLine(pointArray, options) {
|
|
135968
|
+
let points = "";
|
|
135969
|
+
pointArray.forEach(function({ x, y: y2 }) {
|
|
135970
|
+
if (!x && x !== 0)
|
|
135971
|
+
return;
|
|
135972
|
+
points += `${x},${y2} `;
|
|
135973
|
+
});
|
|
135974
|
+
return /* @__PURE__ */ React$2.createElement(React$2.Fragment, { key: "labelLine" }, /* @__PURE__ */ React$2.createElement(
|
|
135975
|
+
"polyline",
|
|
135976
|
+
__spreadValues({}, __spreadValues({
|
|
135977
|
+
key: "polyline-long",
|
|
135978
|
+
points,
|
|
135979
|
+
stroke: "black",
|
|
135980
|
+
fill: "none",
|
|
135981
|
+
strokeWidth: 1,
|
|
135982
|
+
className: "veLabelLine"
|
|
135983
|
+
}, options))
|
|
135984
|
+
));
|
|
135985
|
+
}
|
|
135986
|
+
__name(LabelLine, "LabelLine");
|
|
135987
|
+
const DrawGroupInnerLabel = withHover(
|
|
135988
|
+
({ className, labelXStart, label, fontWidth, onMouseOver, index: index2, dy }) => {
|
|
135989
|
+
return /* @__PURE__ */ React$2.createElement(
|
|
135990
|
+
"tspan",
|
|
135991
|
+
__spreadProps(__spreadValues(__spreadProps(__spreadValues({
|
|
135992
|
+
"data-title": label.title
|
|
135993
|
+
}, avoidOverlapWith), {
|
|
135994
|
+
x: labelXStart,
|
|
135995
|
+
textLength: getTextLength(label.text) * fontWidth,
|
|
135996
|
+
lengthAdjust: "spacing",
|
|
135997
|
+
onClick: label.onClick,
|
|
135998
|
+
onDoubleClick: (e2) => {
|
|
135999
|
+
e2.stopPropagation();
|
|
136000
|
+
label.onDoubleClick && label.onDoubleClick(e2);
|
|
136001
|
+
},
|
|
136002
|
+
onContextMenu: label.onContextMenu,
|
|
136003
|
+
dy: index2 === 0 ? dy / 2 : dy,
|
|
136004
|
+
style: {
|
|
136005
|
+
fill: label.color ? label.color : "black",
|
|
136006
|
+
fontStyle: label.fontStyle
|
|
136007
|
+
}
|
|
136008
|
+
}), { onMouseOver }), {
|
|
136009
|
+
className
|
|
136010
|
+
}),
|
|
136011
|
+
label.text
|
|
136012
|
+
);
|
|
136013
|
+
}
|
|
136014
|
+
);
|
|
136015
|
+
const DrawGroupedLabels = /* @__PURE__ */ __name(function DrawGroupedLabelsInner({
|
|
136016
|
+
groupedLabels,
|
|
136017
|
+
circularViewWidthVsHeightRatio,
|
|
136018
|
+
fontWidth,
|
|
136019
|
+
noRedux,
|
|
136020
|
+
fontHeight,
|
|
136021
|
+
condenseOverflowingXLabels,
|
|
136022
|
+
outerRadius,
|
|
136023
|
+
editorName,
|
|
136024
|
+
labelLineIntensity: labelLineIntensity2
|
|
136025
|
+
}) {
|
|
136026
|
+
return groupedLabels.map(function(label, i) {
|
|
136027
|
+
const { labelAndSublabels, labelIds } = label;
|
|
136028
|
+
const multipleLabels = labelAndSublabels.length > 1;
|
|
136029
|
+
return /* @__PURE__ */ React$2.createElement(
|
|
136030
|
+
DrawLabelGroup,
|
|
136031
|
+
__spreadValues({
|
|
136032
|
+
key: i,
|
|
136033
|
+
id: labelIds
|
|
136034
|
+
}, {
|
|
136035
|
+
label,
|
|
136036
|
+
noRedux,
|
|
136037
|
+
passHoveredId: true,
|
|
136038
|
+
//needed to get the hoveredId
|
|
136039
|
+
isLabelGroup: true,
|
|
136040
|
+
className: "DrawLabelGroup",
|
|
136041
|
+
multipleLabels,
|
|
136042
|
+
labelAndSublabels,
|
|
136043
|
+
labelIds,
|
|
136044
|
+
circularViewWidthVsHeightRatio,
|
|
136045
|
+
fontWidth,
|
|
136046
|
+
editorName,
|
|
136047
|
+
fontHeight,
|
|
136048
|
+
condenseOverflowingXLabels,
|
|
136049
|
+
outerRadius,
|
|
136050
|
+
labelLineIntensity: labelLineIntensity2
|
|
136051
|
+
})
|
|
136052
|
+
);
|
|
136053
|
+
});
|
|
136054
|
+
}, "DrawGroupedLabelsInner");
|
|
136055
|
+
function cancelFn(e2) {
|
|
136056
|
+
e2.stopPropagation();
|
|
136057
|
+
}
|
|
136058
|
+
__name(cancelFn, "cancelFn");
|
|
136059
|
+
const _PutMyParentOnTop = class _PutMyParentOnTop extends React$2.Component {
|
|
136060
|
+
componentDidMount() {
|
|
136061
|
+
const { editorName } = this.props;
|
|
136062
|
+
try {
|
|
136063
|
+
const el = document.querySelector(
|
|
136064
|
+
`.veEditor.${editorName} .topLevelLabelGroup`
|
|
136065
|
+
);
|
|
136066
|
+
const parent2 = el.parentElement.parentElement;
|
|
136067
|
+
const i = Array.prototype.indexOf.call(parent2.children, el.parentElement);
|
|
136068
|
+
parent2.insertBefore(parent2.children[i], null);
|
|
136069
|
+
} catch (error) {
|
|
136070
|
+
console.warn(
|
|
136071
|
+
"OVE-975239 - hit an error trying to re-order labels:",
|
|
136072
|
+
error
|
|
136073
|
+
);
|
|
136074
|
+
}
|
|
136075
|
+
}
|
|
136076
|
+
render() {
|
|
136077
|
+
return this.props.children;
|
|
136078
|
+
}
|
|
136079
|
+
};
|
|
136080
|
+
__name(_PutMyParentOnTop, "PutMyParentOnTop");
|
|
136081
|
+
let PutMyParentOnTop = _PutMyParentOnTop;
|
|
136082
|
+
var baseGetTag = _baseGetTag, isObjectLike = isObjectLike_1;
|
|
136083
|
+
var numberTag = "[object Number]";
|
|
136084
|
+
function isNumber(value) {
|
|
136085
|
+
return typeof value == "number" || isObjectLike(value) && baseGetTag(value) == numberTag;
|
|
136086
|
+
}
|
|
136087
|
+
__name(isNumber, "isNumber");
|
|
136088
|
+
var isNumber_1 = isNumber;
|
|
136089
|
+
const isNumber$1 = /* @__PURE__ */ getDefaultExportFromCjs(isNumber_1);
|
|
136090
|
+
function Caret({
|
|
136091
|
+
caretPosition: caretPosition2,
|
|
136092
|
+
sequenceLength,
|
|
136093
|
+
className,
|
|
136094
|
+
onClick,
|
|
136095
|
+
isSelection,
|
|
136096
|
+
innerRadius,
|
|
136097
|
+
outerRadius,
|
|
136098
|
+
isProtein: isProtein2,
|
|
136099
|
+
selectionMessage
|
|
136100
|
+
}) {
|
|
136101
|
+
const { startAngle, endAngle } = getRangeAngles(
|
|
136102
|
+
{ start: caretPosition2, end: caretPosition2 },
|
|
136103
|
+
sequenceLength || 1
|
|
136104
|
+
);
|
|
136105
|
+
if (!isNumber$1(startAngle)) {
|
|
136106
|
+
console.error("we've got a problem!");
|
|
136107
|
+
}
|
|
136108
|
+
const { transform: transform3 } = PositionAnnotationOnCircle({
|
|
136109
|
+
sAngle: startAngle,
|
|
136110
|
+
eAngle: endAngle,
|
|
136111
|
+
height: 0
|
|
136112
|
+
});
|
|
136113
|
+
return /* @__PURE__ */ React$2.createElement(
|
|
136114
|
+
"g",
|
|
136115
|
+
{
|
|
136116
|
+
onClick,
|
|
136117
|
+
transform: transform3,
|
|
136118
|
+
className: className + " veCaret " + draggableClassnames.caret
|
|
136119
|
+
},
|
|
136120
|
+
/* @__PURE__ */ React$2.createElement("title", null, selectionMessage || getSelectionMessage({ caretPosition: caretPosition2, isProtein: isProtein2, sequenceLength })),
|
|
136121
|
+
/* @__PURE__ */ React$2.createElement(
|
|
136122
|
+
"line",
|
|
136123
|
+
{
|
|
136124
|
+
strokeWidth: "1.5px",
|
|
136125
|
+
x1: 0,
|
|
136126
|
+
y1: -innerRadius,
|
|
136127
|
+
x2: 0,
|
|
136128
|
+
y2: -outerRadius
|
|
136129
|
+
}
|
|
136130
|
+
),
|
|
136131
|
+
isSelection ? /* @__PURE__ */ React$2.createElement(
|
|
136132
|
+
"polygon",
|
|
136133
|
+
{
|
|
136134
|
+
className: "vePolygonCaretHandle",
|
|
136135
|
+
fill: "black",
|
|
136136
|
+
points: `0,${-outerRadius + 2} 5,${-outerRadius - 10} -5,${-outerRadius - 10}`
|
|
136137
|
+
}
|
|
136138
|
+
) : null
|
|
136139
|
+
);
|
|
136140
|
+
}
|
|
136141
|
+
__name(Caret, "Caret");
|
|
136142
|
+
const Caret$1 = pure(Caret);
|
|
136143
|
+
var sector$1 = { exports: {} };
|
|
136144
|
+
var ops = {};
|
|
136145
|
+
(function(exports2) {
|
|
136146
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
136147
|
+
value: true
|
|
136148
|
+
});
|
|
136149
|
+
var _slicedToArray2 = function() {
|
|
136150
|
+
function sliceIterator(arr, i) {
|
|
136151
|
+
var _arr = [];
|
|
136152
|
+
var _n = true;
|
|
136153
|
+
var _d = false;
|
|
136154
|
+
var _e = void 0;
|
|
136155
|
+
try {
|
|
136156
|
+
for (var _i = arr[Symbol.iterator](), _s2; !(_n = (_s2 = _i.next()).done); _n = true) {
|
|
136157
|
+
_arr.push(_s2.value);
|
|
136158
|
+
if (i && _arr.length === i)
|
|
136159
|
+
break;
|
|
136160
|
+
}
|
|
136161
|
+
} catch (err2) {
|
|
136162
|
+
_d = true;
|
|
136163
|
+
_e = err2;
|
|
136164
|
+
} finally {
|
|
136165
|
+
try {
|
|
136166
|
+
if (!_n && _i["return"])
|
|
136167
|
+
_i["return"]();
|
|
136168
|
+
} finally {
|
|
136169
|
+
if (_d)
|
|
136170
|
+
throw _e;
|
|
136171
|
+
}
|
|
136172
|
+
}
|
|
136173
|
+
return _arr;
|
|
136174
|
+
}
|
|
136175
|
+
__name(sliceIterator, "sliceIterator");
|
|
136176
|
+
return function(arr, i) {
|
|
136177
|
+
if (Array.isArray(arr)) {
|
|
136178
|
+
return arr;
|
|
136179
|
+
} else if (Symbol.iterator in Object(arr)) {
|
|
136180
|
+
return sliceIterator(arr, i);
|
|
136181
|
+
} else {
|
|
136182
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
136183
|
+
}
|
|
136184
|
+
};
|
|
136185
|
+
}();
|
|
136186
|
+
var sum2 = /* @__PURE__ */ __name(function sum3(xs) {
|
|
136187
|
+
return xs.reduce(function(a2, b3) {
|
|
136188
|
+
return a2 + b3;
|
|
136189
|
+
}, 0);
|
|
136190
|
+
}, "sum");
|
|
136191
|
+
var min2 = /* @__PURE__ */ __name(function min3(xs) {
|
|
136192
|
+
return xs.reduce(function(a2, b3) {
|
|
136193
|
+
return Math.min(a2, b3);
|
|
136194
|
+
});
|
|
136195
|
+
}, "min");
|
|
136196
|
+
var max2 = /* @__PURE__ */ __name(function max3(xs) {
|
|
136197
|
+
return xs.reduce(function(a2, b3) {
|
|
136198
|
+
return Math.max(a2, b3);
|
|
136199
|
+
});
|
|
136200
|
+
}, "max");
|
|
136201
|
+
var sumBy = /* @__PURE__ */ __name(function sumBy2(xs, f2) {
|
|
136202
|
+
return xs.reduce(function(a2, b3) {
|
|
136203
|
+
return a2 + f2(b3);
|
|
136204
|
+
}, 0);
|
|
136205
|
+
}, "sumBy");
|
|
136206
|
+
var minBy = /* @__PURE__ */ __name(function minBy2(xs, f2) {
|
|
136207
|
+
return xs.reduce(function(a2, b3) {
|
|
136208
|
+
return Math.min(a2, f2(b3));
|
|
136209
|
+
}, Infinity);
|
|
136210
|
+
}, "minBy");
|
|
136211
|
+
var maxBy = /* @__PURE__ */ __name(function maxBy2(xs, f2) {
|
|
136212
|
+
return xs.reduce(function(a2, b3) {
|
|
136213
|
+
return Math.max(a2, f2(b3));
|
|
136214
|
+
}, -Infinity);
|
|
136215
|
+
}, "maxBy");
|
|
136216
|
+
var plus = /* @__PURE__ */ __name(function plus2(_ref, _ref3) {
|
|
136217
|
+
var _ref2 = _slicedToArray2(_ref, 2);
|
|
136218
|
+
var a2 = _ref2[0];
|
|
136219
|
+
var b3 = _ref2[1];
|
|
136220
|
+
var _ref32 = _slicedToArray2(_ref3, 2);
|
|
136221
|
+
var c2 = _ref32[0];
|
|
136222
|
+
var d2 = _ref32[1];
|
|
136223
|
+
return [a2 + c2, b3 + d2];
|
|
136224
|
+
}, "plus");
|
|
136225
|
+
var minus = /* @__PURE__ */ __name(function minus2(_ref4, _ref5) {
|
|
136226
|
+
var _ref42 = _slicedToArray2(_ref4, 2);
|
|
136227
|
+
var a2 = _ref42[0];
|
|
136228
|
+
var b3 = _ref42[1];
|
|
136229
|
+
var _ref52 = _slicedToArray2(_ref5, 2);
|
|
136230
|
+
var c2 = _ref52[0];
|
|
136231
|
+
var d2 = _ref52[1];
|
|
136232
|
+
return [a2 - c2, b3 - d2];
|
|
136233
|
+
}, "minus");
|
|
136234
|
+
var times = /* @__PURE__ */ __name(function times2(k2, _ref6) {
|
|
136235
|
+
var _ref62 = _slicedToArray2(_ref6, 2);
|
|
136236
|
+
var a2 = _ref62[0];
|
|
136237
|
+
var b3 = _ref62[1];
|
|
136238
|
+
return [k2 * a2, k2 * b3];
|
|
136239
|
+
}, "times");
|
|
136240
|
+
var length = /* @__PURE__ */ __name(function length2(_ref7) {
|
|
136241
|
+
var _ref72 = _slicedToArray2(_ref7, 2);
|
|
136242
|
+
var a2 = _ref72[0];
|
|
136243
|
+
var b3 = _ref72[1];
|
|
136244
|
+
return Math.sqrt(a2 * a2 + b3 * b3);
|
|
136245
|
+
}, "length");
|
|
136246
|
+
var sumVectors = /* @__PURE__ */ __name(function sumVectors2(xs) {
|
|
136247
|
+
return xs.reduce(plus, [0, 0]);
|
|
136248
|
+
}, "sumVectors");
|
|
136249
|
+
var average = /* @__PURE__ */ __name(function average2(points) {
|
|
136250
|
+
return times(1 / points.length, points.reduce(plus));
|
|
136251
|
+
}, "average");
|
|
136252
|
+
var onCircle = /* @__PURE__ */ __name(function onCircle2(r2, angle2) {
|
|
136253
|
+
return times(r2, [Math.sin(angle2), -Math.cos(angle2)]);
|
|
136254
|
+
}, "onCircle");
|
|
136255
|
+
var enhance = /* @__PURE__ */ __name(function enhance2(compute, curve) {
|
|
136256
|
+
var obj = compute || {};
|
|
136257
|
+
for (var key in obj) {
|
|
136258
|
+
var method = obj[key];
|
|
136259
|
+
curve[key] = method(curve.index, curve.item, curve.group);
|
|
136260
|
+
}
|
|
136261
|
+
return curve;
|
|
136262
|
+
}, "enhance");
|
|
136263
|
+
var range2 = /* @__PURE__ */ __name(function range3(a2, b3, inclusive) {
|
|
136264
|
+
var result = [];
|
|
136265
|
+
for (var i = a2; i < b3; i++) {
|
|
136266
|
+
result.push(i);
|
|
136267
|
+
}
|
|
136268
|
+
if (inclusive) {
|
|
136269
|
+
result.push(b3);
|
|
136270
|
+
}
|
|
136271
|
+
return result;
|
|
136272
|
+
}, "range");
|
|
136273
|
+
var mapObject = /* @__PURE__ */ __name(function mapObject2(obj, f2) {
|
|
136274
|
+
var result = [];
|
|
136275
|
+
var _iteratorNormalCompletion = true;
|
|
136276
|
+
var _didIteratorError = false;
|
|
136277
|
+
var _iteratorError = void 0;
|
|
136278
|
+
try {
|
|
136279
|
+
for (var _iterator3 = Object.keys(obj)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator3.next()).done); _iteratorNormalCompletion = true) {
|
|
136280
|
+
var k2 = _step.value;
|
|
136281
|
+
var v2 = obj[k2];
|
|
136282
|
+
result.push(f2(k2, v2));
|
|
136283
|
+
}
|
|
136284
|
+
} catch (err2) {
|
|
136285
|
+
_didIteratorError = true;
|
|
136286
|
+
_iteratorError = err2;
|
|
136287
|
+
} finally {
|
|
136288
|
+
try {
|
|
136289
|
+
if (!_iteratorNormalCompletion && _iterator3["return"]) {
|
|
136290
|
+
_iterator3["return"]();
|
|
136291
|
+
}
|
|
136292
|
+
} finally {
|
|
136293
|
+
if (_didIteratorError) {
|
|
136294
|
+
throw _iteratorError;
|
|
136295
|
+
}
|
|
136296
|
+
}
|
|
136297
|
+
}
|
|
136298
|
+
return result;
|
|
136299
|
+
}, "mapObject");
|
|
136300
|
+
var pairs = /* @__PURE__ */ __name(function pairs2(obj) {
|
|
136301
|
+
return mapObject(obj, function(k2, v2) {
|
|
136302
|
+
return [k2, v2];
|
|
136303
|
+
});
|
|
136304
|
+
}, "pairs");
|
|
136305
|
+
var id2 = /* @__PURE__ */ __name(function id3(x) {
|
|
136306
|
+
return x;
|
|
136307
|
+
}, "id");
|
|
136308
|
+
exports2.sum = sum2;
|
|
136309
|
+
exports2.min = min2;
|
|
136310
|
+
exports2.max = max2;
|
|
136311
|
+
exports2.sumBy = sumBy;
|
|
136312
|
+
exports2.minBy = minBy;
|
|
136313
|
+
exports2.maxBy = maxBy;
|
|
136314
|
+
exports2.plus = plus;
|
|
136315
|
+
exports2.minus = minus;
|
|
136316
|
+
exports2.times = times;
|
|
136317
|
+
exports2.id = id2;
|
|
136318
|
+
exports2.length = length;
|
|
136319
|
+
exports2.sumVectors = sumVectors;
|
|
136320
|
+
exports2.average = average;
|
|
136321
|
+
exports2.onCircle = onCircle;
|
|
136322
|
+
exports2.enhance = enhance;
|
|
136323
|
+
exports2.range = range2;
|
|
136324
|
+
exports2.mapObject = mapObject;
|
|
136325
|
+
exports2.pairs = pairs;
|
|
136326
|
+
exports2["default"] = {
|
|
136327
|
+
sum: sum2,
|
|
136328
|
+
min: min2,
|
|
136329
|
+
max: max2,
|
|
136330
|
+
sumBy,
|
|
136331
|
+
minBy,
|
|
136332
|
+
maxBy,
|
|
136333
|
+
plus,
|
|
136334
|
+
minus,
|
|
136335
|
+
times,
|
|
136336
|
+
id: id2,
|
|
136337
|
+
length,
|
|
136338
|
+
sumVectors,
|
|
136339
|
+
average,
|
|
136340
|
+
onCircle,
|
|
136341
|
+
enhance,
|
|
136342
|
+
range: range2,
|
|
136343
|
+
mapObject,
|
|
136344
|
+
pairs
|
|
136345
|
+
};
|
|
136346
|
+
})(ops);
|
|
136347
|
+
(function(module2, exports2) {
|
|
136348
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
136349
|
+
value: true
|
|
136350
|
+
});
|
|
136351
|
+
function _interopRequireDefault2(obj) {
|
|
136352
|
+
return obj && obj.__esModule ? obj : { "default": obj };
|
|
136353
|
+
}
|
|
136354
|
+
__name(_interopRequireDefault2, "_interopRequireDefault");
|
|
136355
|
+
function _toConsumableArray2(arr) {
|
|
136356
|
+
if (Array.isArray(arr)) {
|
|
136357
|
+
for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++)
|
|
136358
|
+
arr2[i] = arr[i];
|
|
136359
|
+
return arr2;
|
|
136360
|
+
} else {
|
|
136361
|
+
return Array.from(arr);
|
|
136362
|
+
}
|
|
136363
|
+
}
|
|
136364
|
+
__name(_toConsumableArray2, "_toConsumableArray");
|
|
136365
|
+
var _path = pathExports;
|
|
136366
|
+
var _path2 = _interopRequireDefault2(_path);
|
|
136367
|
+
var _ops = ops;
|
|
136368
|
+
exports2["default"] = function(_ref) {
|
|
136369
|
+
var _Path$moveto$arc$lineto, _Path$moveto$arc, _Path$moveto, _Path;
|
|
136370
|
+
var center = _ref.center;
|
|
136371
|
+
var r2 = _ref.r;
|
|
136372
|
+
var R2 = _ref.R;
|
|
136373
|
+
var start2 = _ref.start;
|
|
136374
|
+
var end2 = _ref.end;
|
|
136375
|
+
var epsilon = 1e-4;
|
|
136376
|
+
if (Math.abs(end2 - 2 * Math.PI) < epsilon) {
|
|
136377
|
+
end2 = 2 * Math.PI - epsilon;
|
|
136378
|
+
}
|
|
136379
|
+
var a2 = (0, _ops.plus)(center, (0, _ops.onCircle)(R2, start2));
|
|
136380
|
+
var b3 = (0, _ops.plus)(center, (0, _ops.onCircle)(R2, end2));
|
|
136381
|
+
var c2 = (0, _ops.plus)(center, (0, _ops.onCircle)(r2, end2));
|
|
136382
|
+
var d2 = (0, _ops.plus)(center, (0, _ops.onCircle)(r2, start2));
|
|
136383
|
+
var large = end2 - start2 > Math.PI ? 1 : 0;
|
|
136384
|
+
var path2 = (_Path$moveto$arc$lineto = (_Path$moveto$arc = (_Path$moveto = (_Path = (0, _path2["default"])()).moveto.apply(_Path, _toConsumableArray2(a2))).arc.apply(_Path$moveto, [R2, R2, 0, large, 1].concat(_toConsumableArray2(b3)))).lineto.apply(_Path$moveto$arc, _toConsumableArray2(c2))).arc.apply(_Path$moveto$arc$lineto, [r2, r2, 0, large, 0].concat(_toConsumableArray2(d2))).closepath();
|
|
136385
|
+
var midAngle = (start2 + end2) / 2;
|
|
136386
|
+
var midRadius = (r2 + R2) / 2;
|
|
136387
|
+
var centroid = (0, _ops.plus)(center, (0, _ops.onCircle)(midRadius, midAngle));
|
|
136388
|
+
return {
|
|
136389
|
+
path: path2,
|
|
136390
|
+
centroid
|
|
136391
|
+
};
|
|
136392
|
+
};
|
|
136393
|
+
module2.exports = exports2["default"];
|
|
136394
|
+
})(sector$1, sector$1.exports);
|
|
136395
|
+
var sectorExports = sector$1.exports;
|
|
136396
|
+
const sector = /* @__PURE__ */ getDefaultExportFromCjs(sectorExports);
|
|
136397
|
+
function SelectionLayer({
|
|
136398
|
+
isDraggable,
|
|
136399
|
+
selectionLayer: selectionLayer2,
|
|
136400
|
+
sequenceLength,
|
|
136401
|
+
radius,
|
|
136402
|
+
hideTitle,
|
|
136403
|
+
innerRadius,
|
|
136404
|
+
onRightClicked,
|
|
136405
|
+
onClick,
|
|
136406
|
+
index: index2,
|
|
136407
|
+
isProtein: isProtein2
|
|
136408
|
+
}) {
|
|
136409
|
+
const {
|
|
136410
|
+
color: color2,
|
|
136411
|
+
start: start2,
|
|
136412
|
+
end: end2,
|
|
136413
|
+
hideCarets = false,
|
|
136414
|
+
style: style2,
|
|
136415
|
+
className
|
|
136416
|
+
} = selectionLayer2;
|
|
136417
|
+
const { startAngle, endAngle, totalAngle } = getRangeAnglesSpecial(
|
|
136418
|
+
selectionLayer2,
|
|
136419
|
+
sequenceLength
|
|
136420
|
+
);
|
|
136421
|
+
const section = sector({
|
|
136422
|
+
center: [0, 0],
|
|
136423
|
+
//the center is always 0,0 for our annotations :) we rotate later!
|
|
136424
|
+
r: innerRadius,
|
|
136425
|
+
R: radius,
|
|
136426
|
+
start: 0,
|
|
136427
|
+
end: totalAngle
|
|
136428
|
+
});
|
|
136429
|
+
const selectionMessage = getSelectionMessage({
|
|
136430
|
+
sequenceLength,
|
|
136431
|
+
selectionLayer: selectionLayer2,
|
|
136432
|
+
isProtein: isProtein2
|
|
136433
|
+
});
|
|
136434
|
+
const { transform: transform3 } = PositionAnnotationOnCircle({
|
|
136435
|
+
sAngle: startAngle,
|
|
136436
|
+
eAngle: endAngle,
|
|
136437
|
+
height: 0
|
|
136438
|
+
});
|
|
136439
|
+
return /* @__PURE__ */ React$2.createElement(
|
|
136440
|
+
"g",
|
|
136441
|
+
{
|
|
136442
|
+
onContextMenu: (event) => {
|
|
136443
|
+
onRightClicked && onRightClicked({
|
|
136444
|
+
annotation: selectionLayer2,
|
|
136445
|
+
event
|
|
136446
|
+
});
|
|
136447
|
+
},
|
|
136448
|
+
onClick: onClick ? (event) => {
|
|
136449
|
+
onClick({
|
|
136450
|
+
annotation: selectionLayer2,
|
|
136451
|
+
event
|
|
136452
|
+
});
|
|
136453
|
+
} : void 0,
|
|
136454
|
+
key: "veSelectionLayer" + index2,
|
|
136455
|
+
className: "veSelectionLayer " + (className || "")
|
|
136456
|
+
},
|
|
136457
|
+
!hideTitle && /* @__PURE__ */ React$2.createElement("title", null, selectionMessage),
|
|
136458
|
+
/* @__PURE__ */ React$2.createElement(
|
|
136459
|
+
"path",
|
|
136460
|
+
{
|
|
136461
|
+
transform: transform3,
|
|
136462
|
+
className: "selectionLayer",
|
|
136463
|
+
style: __spreadValues({ opacity: 0.3 }, style2),
|
|
136464
|
+
d: section.path.print(),
|
|
136465
|
+
fill: color2
|
|
136466
|
+
}
|
|
136467
|
+
),
|
|
136468
|
+
!hideCarets && /* @__PURE__ */ React$2.createElement(
|
|
136469
|
+
Caret$1,
|
|
136470
|
+
{
|
|
136471
|
+
key: "caret1",
|
|
136472
|
+
className: className + " selectionLayerCaret " + (isDraggable ? draggableClassnames.selectionStart : ""),
|
|
136473
|
+
isSelection: true,
|
|
136474
|
+
onClick: onClick ? noop$4 : preventDefaultStopPropagation,
|
|
136475
|
+
selectionMessage,
|
|
136476
|
+
caretPosition: start2,
|
|
136477
|
+
sequenceLength,
|
|
136478
|
+
innerRadius,
|
|
136479
|
+
outerRadius: radius
|
|
136480
|
+
}
|
|
136481
|
+
),
|
|
136482
|
+
!hideCarets && /* @__PURE__ */ React$2.createElement(
|
|
136483
|
+
Caret$1,
|
|
136484
|
+
{
|
|
136485
|
+
key: "caret2",
|
|
136486
|
+
className: className + " selectionLayerCaret " + (isDraggable ? draggableClassnames.selectionEnd : ""),
|
|
136487
|
+
isSelection: true,
|
|
136488
|
+
onClick: onClick ? noop$4 : preventDefaultStopPropagation,
|
|
136489
|
+
selectionMessage,
|
|
136490
|
+
caretPosition: end2 + 1,
|
|
136491
|
+
sequenceLength,
|
|
136492
|
+
innerRadius,
|
|
136493
|
+
outerRadius: radius
|
|
136494
|
+
}
|
|
136495
|
+
)
|
|
136496
|
+
);
|
|
136497
|
+
}
|
|
136498
|
+
__name(SelectionLayer, "SelectionLayer");
|
|
136499
|
+
const SelectionLayer$1 = pure(SelectionLayer);
|
|
136500
|
+
function Axis({
|
|
136501
|
+
radius,
|
|
136502
|
+
showAxisNumbers,
|
|
136503
|
+
tickMarkHeight = 5,
|
|
136504
|
+
textOffset = 15,
|
|
136505
|
+
ringThickness = 4,
|
|
136506
|
+
zoomLevel
|
|
136507
|
+
}) {
|
|
136508
|
+
const height2 = (ringThickness + (showAxisNumbers ? textOffset + tickMarkHeight : 0)) / zoomLevel;
|
|
136509
|
+
const radiusToUse = showAxisNumbers ? radius + textOffset + tickMarkHeight : radius;
|
|
136510
|
+
const component = /* @__PURE__ */ React$2.createElement("g", { key: "veAxis", className: "veAxis" }, /* @__PURE__ */ React$2.createElement(
|
|
136511
|
+
"circle",
|
|
136512
|
+
{
|
|
136513
|
+
className: "veAxisLine veAxisOuter",
|
|
136514
|
+
key: "circleOuter",
|
|
136515
|
+
r: radiusToUse + ringThickness,
|
|
136516
|
+
style: { fill: "#ffffff00", stroke: "black", strokeWidth: 0.5 }
|
|
136517
|
+
}
|
|
136518
|
+
), /* @__PURE__ */ React$2.createElement(
|
|
136519
|
+
"circle",
|
|
136520
|
+
{
|
|
136521
|
+
className: "veAxisLine veAxisInner",
|
|
136522
|
+
key: "circle",
|
|
136523
|
+
r: radiusToUse,
|
|
136524
|
+
style: { fill: "#ffffff00", stroke: "black", strokeWidth: 0.5 }
|
|
136525
|
+
}
|
|
136526
|
+
));
|
|
136527
|
+
return {
|
|
136528
|
+
component,
|
|
136529
|
+
height: height2
|
|
136530
|
+
};
|
|
136531
|
+
}
|
|
136532
|
+
__name(Axis, "Axis");
|
|
136533
|
+
function CircularPrimer$1({
|
|
136534
|
+
color: color2 = "orange",
|
|
136535
|
+
radius,
|
|
136536
|
+
annotationHeight,
|
|
136537
|
+
totalAngle
|
|
136538
|
+
}) {
|
|
136539
|
+
return /* @__PURE__ */ React$2.createElement(
|
|
136540
|
+
"path",
|
|
136541
|
+
{
|
|
136542
|
+
className: "veOrf",
|
|
136543
|
+
strokeWidth: ".5",
|
|
136544
|
+
stroke: color2,
|
|
136545
|
+
fill: color2,
|
|
136546
|
+
d: drawDirectedPiePiece({
|
|
136547
|
+
radius,
|
|
136548
|
+
annotationHeight,
|
|
136549
|
+
totalAngle,
|
|
136550
|
+
arrowheadLength: 0.4,
|
|
136551
|
+
tailThickness: 0.4
|
|
136552
|
+
}).print()
|
|
136553
|
+
}
|
|
136554
|
+
);
|
|
136555
|
+
}
|
|
136556
|
+
__name(CircularPrimer$1, "CircularPrimer$1");
|
|
136557
|
+
function CircularPrimer(props) {
|
|
136558
|
+
const {
|
|
136559
|
+
color: color2 = "orange",
|
|
136560
|
+
radius,
|
|
136561
|
+
arrowheadLength = 0.5,
|
|
136562
|
+
annotationHeight,
|
|
136563
|
+
totalAngle,
|
|
136564
|
+
id: id2,
|
|
136565
|
+
labelNeedsFlip,
|
|
136566
|
+
ellipsizedName
|
|
136567
|
+
} = props;
|
|
136568
|
+
const [path2, textPath] = drawDirectedPiePiece({
|
|
136569
|
+
radius,
|
|
136570
|
+
annotationHeight,
|
|
136571
|
+
totalAngle,
|
|
136572
|
+
arrowheadLength,
|
|
136573
|
+
tailThickness: 1,
|
|
136574
|
+
//feature specific
|
|
136575
|
+
returnTextPath: true,
|
|
136576
|
+
hasLabel: ellipsizedName,
|
|
136577
|
+
labelNeedsFlip
|
|
136578
|
+
});
|
|
136579
|
+
return /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, getStripedPattern({ color: color2 }), /* @__PURE__ */ React$2.createElement(
|
|
136580
|
+
"path",
|
|
136581
|
+
{
|
|
136582
|
+
className: "vePrimer veCircularViewPrimer",
|
|
136583
|
+
id: id2,
|
|
136584
|
+
strokeWidth: ".5",
|
|
136585
|
+
stroke: "black",
|
|
136586
|
+
fill: "url(#diagonalHatch)",
|
|
136587
|
+
d: path2.print()
|
|
136588
|
+
}
|
|
136589
|
+
), getInternalLabel(__spreadProps(__spreadValues({}, props), { colorToUse: color2, textPath })));
|
|
136590
|
+
}
|
|
136591
|
+
__name(CircularPrimer, "CircularPrimer");
|
|
136592
|
+
function Cutsite({
|
|
136593
|
+
annotationHeight,
|
|
136594
|
+
radius
|
|
136595
|
+
// totalAngle,
|
|
136596
|
+
// ...rest
|
|
136597
|
+
}) {
|
|
136598
|
+
return /* @__PURE__ */ React$2.createElement(
|
|
136599
|
+
"rect",
|
|
136600
|
+
{
|
|
136601
|
+
className: "veCutsite",
|
|
136602
|
+
width: 1,
|
|
136603
|
+
y: -radius - 4,
|
|
136604
|
+
height: annotationHeight
|
|
136605
|
+
}
|
|
136606
|
+
);
|
|
136607
|
+
}
|
|
136608
|
+
__name(Cutsite, "Cutsite");
|
|
136346
136609
|
const style$e = "";
|
|
136347
136610
|
function c(u2, e2, c2) {
|
|
136348
136611
|
var i = this, a2 = React$2.useRef(null), o2 = React$2.useRef(0), f2 = React$2.useRef(null), l2 = React$2.useRef([]), m2 = React$2.useRef(), v2 = React$2.useRef(), d2 = React$2.useRef(u2), p2 = React$2.useRef(true);
|
|
@@ -142862,7 +143125,7 @@ ${seqDataToCopy}\r
|
|
|
142862
143125
|
scrollbarWidth: "none",
|
|
142863
143126
|
whiteSpace: "nowrap"
|
|
142864
143127
|
},
|
|
142865
|
-
title: name2,
|
|
143128
|
+
"data-title": name2,
|
|
142866
143129
|
key: i
|
|
142867
143130
|
},
|
|
142868
143131
|
/* @__PURE__ */ React$2.createElement(
|
|
@@ -143662,7 +143925,7 @@ ${seqDataToCopy}\r
|
|
|
143662
143925
|
textOverflow: "ellipsis",
|
|
143663
143926
|
whiteSpace: "nowrap"
|
|
143664
143927
|
},
|
|
143665
|
-
title: this.props.alignmentType || "Unknown Alignment Type"
|
|
143928
|
+
"data-title": this.props.alignmentType || "Unknown Alignment Type"
|
|
143666
143929
|
},
|
|
143667
143930
|
this.props.alignmentType || "Unknown Alignment Type"
|
|
143668
143931
|
)),
|
|
@@ -158309,11 +158572,11 @@ var batchProcessor = /* @__PURE__ */ __name(function batchProcessorMaker(options
|
|
|
158309
158572
|
var batch2 = Batch();
|
|
158310
158573
|
var asyncFrameHandler;
|
|
158311
158574
|
var isProcessing = false;
|
|
158312
|
-
function addFunction(level,
|
|
158575
|
+
function addFunction(level, fn4) {
|
|
158313
158576
|
if (!isProcessing && autoProcess && asyncProcess && batch2.size() === 0) {
|
|
158314
158577
|
processBatchAsync();
|
|
158315
158578
|
}
|
|
158316
|
-
batch2.add(level,
|
|
158579
|
+
batch2.add(level, fn4);
|
|
158317
158580
|
}
|
|
158318
158581
|
__name(addFunction, "addFunction");
|
|
158319
158582
|
function processBatch() {
|
|
@@ -158354,8 +158617,8 @@ var batchProcessor = /* @__PURE__ */ __name(function batchProcessorMaker(options
|
|
|
158354
158617
|
}
|
|
158355
158618
|
__name(cancelFrame, "cancelFrame");
|
|
158356
158619
|
function requestFrame(callback2) {
|
|
158357
|
-
var raf = /* @__PURE__ */ __name(function(
|
|
158358
|
-
return setTimeout(
|
|
158620
|
+
var raf = /* @__PURE__ */ __name(function(fn4) {
|
|
158621
|
+
return setTimeout(fn4, 0);
|
|
158359
158622
|
}, "raf");
|
|
158360
158623
|
return raf(callback2);
|
|
158361
158624
|
}
|
|
@@ -158370,9 +158633,9 @@ function Batch() {
|
|
|
158370
158633
|
var size = 0;
|
|
158371
158634
|
var topLevel2 = 0;
|
|
158372
158635
|
var bottomLevel2 = 0;
|
|
158373
|
-
function add3(level,
|
|
158374
|
-
if (!
|
|
158375
|
-
|
|
158636
|
+
function add3(level, fn4) {
|
|
158637
|
+
if (!fn4) {
|
|
158638
|
+
fn4 = level;
|
|
158376
158639
|
level = 0;
|
|
158377
158640
|
}
|
|
158378
158641
|
if (level > topLevel2) {
|
|
@@ -158383,7 +158646,7 @@ function Batch() {
|
|
|
158383
158646
|
if (!batch2[level]) {
|
|
158384
158647
|
batch2[level] = [];
|
|
158385
158648
|
}
|
|
158386
|
-
batch2[level].push(
|
|
158649
|
+
batch2[level].push(fn4);
|
|
158387
158650
|
size++;
|
|
158388
158651
|
}
|
|
158389
158652
|
__name(add3, "add");
|
|
@@ -158391,8 +158654,8 @@ function Batch() {
|
|
|
158391
158654
|
for (var level = bottomLevel2; level <= topLevel2; level++) {
|
|
158392
158655
|
var fns = batch2[level];
|
|
158393
158656
|
for (var i = 0; i < fns.length; i++) {
|
|
158394
|
-
var
|
|
158395
|
-
|
|
158657
|
+
var fn4 = fns[i];
|
|
158658
|
+
fn4();
|
|
158396
158659
|
}
|
|
158397
158660
|
}
|
|
158398
158661
|
}
|