@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.es.js CHANGED
@@ -1318,14 +1318,14 @@ function orderModifiers(modifiers2) {
1318
1318
  }, []);
1319
1319
  }
1320
1320
  __name(orderModifiers, "orderModifiers");
1321
- function debounce$3(fn3) {
1321
+ function debounce$3(fn4) {
1322
1322
  var pending;
1323
1323
  return function() {
1324
1324
  if (!pending) {
1325
1325
  pending = new Promise(function(resolve) {
1326
1326
  Promise.resolve().then(function() {
1327
1327
  pending = void 0;
1328
- resolve(fn3());
1328
+ resolve(fn4());
1329
1329
  });
1330
1330
  });
1331
1331
  }
@@ -1429,9 +1429,9 @@ function popperGenerator(generatorOptions) {
1429
1429
  index2 = -1;
1430
1430
  continue;
1431
1431
  }
1432
- var _state$orderedModifie = state2.orderedModifiers[index2], fn3 = _state$orderedModifie.fn, _state$orderedModifie2 = _state$orderedModifie.options, _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2, name2 = _state$orderedModifie.name;
1433
- if (typeof fn3 === "function") {
1434
- state2 = fn3({
1432
+ 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;
1433
+ if (typeof fn4 === "function") {
1434
+ state2 = fn4({
1435
1435
  state: state2,
1436
1436
  options: _options,
1437
1437
  name: name2,
@@ -1479,8 +1479,8 @@ function popperGenerator(generatorOptions) {
1479
1479
  }
1480
1480
  __name(runModifierEffects, "runModifierEffects");
1481
1481
  function cleanupModifierEffects() {
1482
- effectCleanupFns.forEach(function(fn3) {
1483
- return fn3();
1482
+ effectCleanupFns.forEach(function(fn4) {
1483
+ return fn4();
1484
1484
  });
1485
1485
  effectCleanupFns = [];
1486
1486
  }
@@ -1522,15 +1522,15 @@ function invokeWithArgsOrReturn(value, args) {
1522
1522
  return typeof value === "function" ? value.apply(void 0, args) : value;
1523
1523
  }
1524
1524
  __name(invokeWithArgsOrReturn, "invokeWithArgsOrReturn");
1525
- function debounce$2(fn3, ms) {
1525
+ function debounce$2(fn4, ms) {
1526
1526
  if (ms === 0) {
1527
- return fn3;
1527
+ return fn4;
1528
1528
  }
1529
1529
  var timeout;
1530
1530
  return function(arg) {
1531
1531
  clearTimeout(timeout);
1532
1532
  timeout = setTimeout(function() {
1533
- fn3(arg);
1533
+ fn4(arg);
1534
1534
  }, ms);
1535
1535
  };
1536
1536
  }
@@ -2362,7 +2362,7 @@ function createTippy(reference2, passedProps) {
2362
2362
  enabled: true,
2363
2363
  phase: "beforeWrite",
2364
2364
  requires: ["computeStyles"],
2365
- fn: /* @__PURE__ */ __name(function fn3(_ref2) {
2365
+ fn: /* @__PURE__ */ __name(function fn4(_ref2) {
2366
2366
  var state3 = _ref2.state;
2367
2367
  if (getIsDefaultRenderFn()) {
2368
2368
  var _getDefaultTemplateCh = getDefaultTemplateChildren(), box2 = _getDefaultTemplateCh.box;
@@ -2736,11 +2736,174 @@ Object.assign({}, applyStyles$1, {
2736
2736
  }
2737
2737
  }, "effect")
2738
2738
  });
2739
+ var mouseCoords = {
2740
+ clientX: 0,
2741
+ clientY: 0
2742
+ };
2743
+ var activeInstances = [];
2744
+ function storeMouseCoords(_ref) {
2745
+ var clientX = _ref.clientX, clientY = _ref.clientY;
2746
+ mouseCoords = {
2747
+ clientX,
2748
+ clientY
2749
+ };
2750
+ }
2751
+ __name(storeMouseCoords, "storeMouseCoords");
2752
+ function addMouseCoordsListener(doc) {
2753
+ doc.addEventListener("mousemove", storeMouseCoords);
2754
+ }
2755
+ __name(addMouseCoordsListener, "addMouseCoordsListener");
2756
+ function removeMouseCoordsListener(doc) {
2757
+ doc.removeEventListener("mousemove", storeMouseCoords);
2758
+ }
2759
+ __name(removeMouseCoordsListener, "removeMouseCoordsListener");
2760
+ var followCursor = {
2761
+ name: "followCursor",
2762
+ defaultValue: false,
2763
+ fn: /* @__PURE__ */ __name(function fn2(instance) {
2764
+ var reference2 = instance.reference;
2765
+ var doc = getOwnerDocument(instance.props.triggerTarget || reference2);
2766
+ var isInternalUpdate = false;
2767
+ var wasFocusEvent = false;
2768
+ var isUnmounted = true;
2769
+ var prevProps = instance.props;
2770
+ function getIsInitialBehavior() {
2771
+ return instance.props.followCursor === "initial" && instance.state.isVisible;
2772
+ }
2773
+ __name(getIsInitialBehavior, "getIsInitialBehavior");
2774
+ function addListener() {
2775
+ doc.addEventListener("mousemove", onMouseMove);
2776
+ }
2777
+ __name(addListener, "addListener");
2778
+ function removeListener() {
2779
+ doc.removeEventListener("mousemove", onMouseMove);
2780
+ }
2781
+ __name(removeListener, "removeListener");
2782
+ function unsetGetReferenceClientRect() {
2783
+ isInternalUpdate = true;
2784
+ instance.setProps({
2785
+ getReferenceClientRect: null
2786
+ });
2787
+ isInternalUpdate = false;
2788
+ }
2789
+ __name(unsetGetReferenceClientRect, "unsetGetReferenceClientRect");
2790
+ function onMouseMove(event) {
2791
+ var isCursorOverReference = event.target ? reference2.contains(event.target) : true;
2792
+ var followCursor2 = instance.props.followCursor;
2793
+ var clientX = event.clientX, clientY = event.clientY;
2794
+ var rect = reference2.getBoundingClientRect();
2795
+ var relativeX = clientX - rect.left;
2796
+ var relativeY = clientY - rect.top;
2797
+ if (isCursorOverReference || !instance.props.interactive) {
2798
+ instance.setProps({
2799
+ // @ts-ignore - unneeded DOMRect properties
2800
+ getReferenceClientRect: /* @__PURE__ */ __name(function getReferenceClientRect() {
2801
+ var rect2 = reference2.getBoundingClientRect();
2802
+ var x = clientX;
2803
+ var y2 = clientY;
2804
+ if (followCursor2 === "initial") {
2805
+ x = rect2.left + relativeX;
2806
+ y2 = rect2.top + relativeY;
2807
+ }
2808
+ var top2 = followCursor2 === "horizontal" ? rect2.top : y2;
2809
+ var right2 = followCursor2 === "vertical" ? rect2.right : x;
2810
+ var bottom2 = followCursor2 === "horizontal" ? rect2.bottom : y2;
2811
+ var left2 = followCursor2 === "vertical" ? rect2.left : x;
2812
+ return {
2813
+ width: right2 - left2,
2814
+ height: bottom2 - top2,
2815
+ top: top2,
2816
+ right: right2,
2817
+ bottom: bottom2,
2818
+ left: left2
2819
+ };
2820
+ }, "getReferenceClientRect")
2821
+ });
2822
+ }
2823
+ }
2824
+ __name(onMouseMove, "onMouseMove");
2825
+ function create7() {
2826
+ if (instance.props.followCursor) {
2827
+ activeInstances.push({
2828
+ instance,
2829
+ doc
2830
+ });
2831
+ addMouseCoordsListener(doc);
2832
+ }
2833
+ }
2834
+ __name(create7, "create");
2835
+ function destroy2() {
2836
+ activeInstances = activeInstances.filter(function(data) {
2837
+ return data.instance !== instance;
2838
+ });
2839
+ if (activeInstances.filter(function(data) {
2840
+ return data.doc === doc;
2841
+ }).length === 0) {
2842
+ removeMouseCoordsListener(doc);
2843
+ }
2844
+ }
2845
+ __name(destroy2, "destroy");
2846
+ return {
2847
+ onCreate: create7,
2848
+ onDestroy: destroy2,
2849
+ onBeforeUpdate: /* @__PURE__ */ __name(function onBeforeUpdate2() {
2850
+ prevProps = instance.props;
2851
+ }, "onBeforeUpdate"),
2852
+ onAfterUpdate: /* @__PURE__ */ __name(function onAfterUpdate2(_2, _ref2) {
2853
+ var followCursor2 = _ref2.followCursor;
2854
+ if (isInternalUpdate) {
2855
+ return;
2856
+ }
2857
+ if (followCursor2 !== void 0 && prevProps.followCursor !== followCursor2) {
2858
+ destroy2();
2859
+ if (followCursor2) {
2860
+ create7();
2861
+ if (instance.state.isMounted && !wasFocusEvent && !getIsInitialBehavior()) {
2862
+ addListener();
2863
+ }
2864
+ } else {
2865
+ removeListener();
2866
+ unsetGetReferenceClientRect();
2867
+ }
2868
+ }
2869
+ }, "onAfterUpdate"),
2870
+ onMount: /* @__PURE__ */ __name(function onMount2() {
2871
+ if (instance.props.followCursor && !wasFocusEvent) {
2872
+ if (isUnmounted) {
2873
+ onMouseMove(mouseCoords);
2874
+ isUnmounted = false;
2875
+ }
2876
+ if (!getIsInitialBehavior()) {
2877
+ addListener();
2878
+ }
2879
+ }
2880
+ }, "onMount"),
2881
+ onTrigger: /* @__PURE__ */ __name(function onTrigger2(_2, event) {
2882
+ if (isMouseEvent$1(event)) {
2883
+ mouseCoords = {
2884
+ clientX: event.clientX,
2885
+ clientY: event.clientY
2886
+ };
2887
+ }
2888
+ wasFocusEvent = event.type === "focus";
2889
+ }, "onTrigger"),
2890
+ onHidden: /* @__PURE__ */ __name(function onHidden2() {
2891
+ if (instance.props.followCursor) {
2892
+ unsetGetReferenceClientRect();
2893
+ removeListener();
2894
+ isUnmounted = true;
2895
+ }
2896
+ }, "onHidden")
2897
+ };
2898
+ }, "fn")
2899
+ };
2739
2900
  tippy$1.setDefaultProps({
2740
2901
  render: render$1
2741
2902
  });
2742
2903
  const tippy = "";
2743
2904
  let tippys = [];
2905
+ let recentlyHidden = false;
2906
+ let clearMe;
2744
2907
  (function() {
2745
2908
  let lastMouseOverElement = null;
2746
2909
  document.addEventListener("mouseover", function(event) {
@@ -2761,21 +2924,63 @@ let tippys = [];
2761
2924
  lastMouseOverElement = element2;
2762
2925
  const id2 = "tippyEllipsizedEl";
2763
2926
  let innerRun = false;
2764
- const inner2 = /* @__PURE__ */ __name((content2, el2) => {
2927
+ const inner2 = /* @__PURE__ */ __name((content2, el2, { dataTitle, dataAvoid, dataAvoidBackup }) => {
2928
+ var _a3, _b3;
2765
2929
  innerRun = true;
2766
2930
  document.querySelectorAll(`.${id2}`).forEach((elem) => {
2767
2931
  elem.classList.remove(id2);
2768
2932
  });
2769
2933
  el2.classList.add(id2);
2770
- const inst = tippy$1(`.${id2}`, {
2934
+ const inst = tippy$1(`.${id2}`, __spreadValues(__spreadProps(__spreadValues({
2935
+ plugins: [followCursor],
2771
2936
  content: content2,
2772
- delay: [0, 0],
2937
+ delay: dataTitle && !recentlyHidden ? [1300, 1300] : dataTitle ? [150, 150] : [0, 0],
2773
2938
  allowHTML: true
2774
- });
2939
+ }, dataTitle && {
2940
+ followCursor: dataTitle ? "initial" : false
2941
+ }), {
2942
+ onHidden() {
2943
+ recentlyHidden = true;
2944
+ clearMe && clearTimeout(clearMe);
2945
+ clearMe = setTimeout(() => {
2946
+ if (tippys.length === 0)
2947
+ recentlyHidden = false;
2948
+ }, 700);
2949
+ }
2950
+ }), dataAvoid && {
2951
+ popperOptions: {
2952
+ modifiers: [
2953
+ {
2954
+ name: "myModifier",
2955
+ enabled: true,
2956
+ phase: "beforeWrite",
2957
+ requires: ["computeStyles"],
2958
+ requiresIfExists: ["offset"],
2959
+ fn({ state: state2 }) {
2960
+ const customBoundary = document.querySelector(dataAvoid) || document.querySelector(dataAvoidBackup);
2961
+ if (!customBoundary)
2962
+ return;
2963
+ const a2 = customBoundary.getBoundingClientRect();
2964
+ if (a2.top < state2.rects.reference.y) {
2965
+ const b3 = Math.abs(
2966
+ Math.abs(a2.top - state2.rects.reference.y) - 10
2967
+ );
2968
+ state2.styles.popper.bottom = b3 + "px";
2969
+ }
2970
+ }
2971
+ }
2972
+ ]
2973
+ }
2974
+ }));
2975
+ if (dataTitle) {
2976
+ (_b3 = (_a3 = inst[0]) == null ? void 0 : _a3.popper) == null ? void 0 : _b3.classList.add("isDataTitle");
2977
+ }
2775
2978
  clearOldTippys(...inst);
2776
- inst.forEach((i) => {
2777
- i.show();
2778
- });
2979
+ if (!dataTitle) {
2980
+ inst.forEach((i) => {
2981
+ i.show();
2982
+ });
2983
+ }
2779
2984
  tippys = [...tippys, ...inst];
2780
2985
  if (content2 === el2.getAttribute("title")) {
2781
2986
  el2.removeAttribute("title");
@@ -2790,14 +2995,22 @@ let tippys = [];
2790
2995
  const style2 = window.getComputedStyle(el);
2791
2996
  const whiteSpace = style2.getPropertyValue("white-space");
2792
2997
  const textOverflow = style2.getPropertyValue("text-overflow");
2793
- dataTip = el.getAttribute("data-tip");
2998
+ const dataTitle = el.getAttribute("data-title");
2999
+ const dataAvoid = el.getAttribute("data-avoid");
3000
+ const dataAvoidBackup = el.getAttribute("data-avoid-backup");
3001
+ dataTip = el.getAttribute("data-tip") || dataTitle;
2794
3002
  const isEllipsized = whiteSpace === "nowrap" && textOverflow === "ellipsis";
3003
+ const opts2 = {
3004
+ dataTitle,
3005
+ dataAvoid,
3006
+ dataAvoidBackup
3007
+ };
2795
3008
  if (dataTip) {
2796
- inner2(dataTip, el);
3009
+ inner2(dataTip, el, opts2);
2797
3010
  break;
2798
3011
  } 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
2799
3012
  !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) {
2800
- inner2(el.textContent, el);
3013
+ inner2(el.textContent, el, opts2);
2801
3014
  break;
2802
3015
  } else if (isEllipsized && el.offsetWidth >= el.scrollWidth)
2803
3016
  ;
@@ -2861,13 +3074,13 @@ function getAugmentedNamespace(n2) {
2861
3074
  }
2862
3075
  __name(getAugmentedNamespace, "getAugmentedNamespace");
2863
3076
  var axios$3 = { exports: {} };
2864
- var bind$5 = /* @__PURE__ */ __name(function bind(fn3, thisArg) {
3077
+ var bind$5 = /* @__PURE__ */ __name(function bind(fn4, thisArg) {
2865
3078
  return /* @__PURE__ */ __name(function wrap2() {
2866
3079
  var args = new Array(arguments.length);
2867
3080
  for (var i = 0; i < args.length; i++) {
2868
3081
  args[i] = arguments[i];
2869
3082
  }
2870
- return fn3.apply(thisArg, args);
3083
+ return fn4.apply(thisArg, args);
2871
3084
  }, "wrap");
2872
3085
  }, "bind");
2873
3086
  var bind$4 = bind$5;
@@ -2957,7 +3170,7 @@ function isStandardBrowserEnv() {
2957
3170
  return typeof window !== "undefined" && typeof document !== "undefined";
2958
3171
  }
2959
3172
  __name(isStandardBrowserEnv, "isStandardBrowserEnv");
2960
- function forEach$5(obj, fn3) {
3173
+ function forEach$5(obj, fn4) {
2961
3174
  if (obj === null || typeof obj === "undefined") {
2962
3175
  return;
2963
3176
  }
@@ -2966,12 +3179,12 @@ function forEach$5(obj, fn3) {
2966
3179
  }
2967
3180
  if (isArray$r(obj)) {
2968
3181
  for (var i = 0, l2 = obj.length; i < l2; i++) {
2969
- fn3.call(null, obj[i], i, obj);
3182
+ fn4.call(null, obj[i], i, obj);
2970
3183
  }
2971
3184
  } else {
2972
3185
  for (var key in obj) {
2973
3186
  if (Object.prototype.hasOwnProperty.call(obj, key)) {
2974
- fn3.call(null, obj[key], key, obj);
3187
+ fn4.call(null, obj[key], key, obj);
2975
3188
  }
2976
3189
  }
2977
3190
  }
@@ -3103,10 +3316,10 @@ InterceptorManager$1.prototype.eject = /* @__PURE__ */ __name(function eject(id2
3103
3316
  this.handlers[id2] = null;
3104
3317
  }
3105
3318
  }, "eject");
3106
- InterceptorManager$1.prototype.forEach = /* @__PURE__ */ __name(function forEach(fn3) {
3319
+ InterceptorManager$1.prototype.forEach = /* @__PURE__ */ __name(function forEach(fn4) {
3107
3320
  utils$e.forEach(this.handlers, /* @__PURE__ */ __name(function forEachHandler(h2) {
3108
3321
  if (h2 !== null) {
3109
- fn3(h2);
3322
+ fn4(h2);
3110
3323
  }
3111
3324
  }, "forEachHandler"));
3112
3325
  }, "forEach");
@@ -3627,8 +3840,8 @@ var utils$b = utils$g;
3627
3840
  var defaults$5 = defaults_1;
3628
3841
  var transformData$1 = /* @__PURE__ */ __name(function transformData(data, headers, fns) {
3629
3842
  var context = this || defaults$5;
3630
- utils$b.forEach(fns, /* @__PURE__ */ __name(function transform3(fn3) {
3631
- data = fn3.call(context, data, headers);
3843
+ utils$b.forEach(fns, /* @__PURE__ */ __name(function transform3(fn4) {
3844
+ data = fn4.call(context, data, headers);
3632
3845
  }, "transform"));
3633
3846
  return data;
3634
3847
  }, "transformData");
@@ -4921,9 +5134,9 @@ function composeEventHandlers() {
4921
5134
  for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
4922
5135
  args[_key2 - 1] = arguments[_key2];
4923
5136
  }
4924
- return fns.some(function(fn3) {
4925
- if (!isPropagationStopped(event) && fn3) {
4926
- fn3.apply(void 0, [event].concat(args));
5137
+ return fns.some(function(fn4) {
5138
+ if (!isPropagationStopped(event) && fn4) {
5139
+ fn4.apply(void 0, [event].concat(args));
4927
5140
  }
4928
5141
  return isPropagationStopped(event);
4929
5142
  });
@@ -5540,14 +5753,14 @@ function useDropzone() {
5540
5753
  openFileDialog();
5541
5754
  }
5542
5755
  }, [inputRef, noClick, openFileDialog]);
5543
- var composeHandler = /* @__PURE__ */ __name(function composeHandler2(fn3) {
5544
- return disabled ? null : fn3;
5756
+ var composeHandler = /* @__PURE__ */ __name(function composeHandler2(fn4) {
5757
+ return disabled ? null : fn4;
5545
5758
  }, "composeHandler");
5546
- var composeKeyboardHandler = /* @__PURE__ */ __name(function composeKeyboardHandler2(fn3) {
5547
- return noKeyboard ? null : composeHandler(fn3);
5759
+ var composeKeyboardHandler = /* @__PURE__ */ __name(function composeKeyboardHandler2(fn4) {
5760
+ return noKeyboard ? null : composeHandler(fn4);
5548
5761
  }, "composeKeyboardHandler");
5549
- var composeDragHandler = /* @__PURE__ */ __name(function composeDragHandler2(fn3) {
5550
- return noDrag ? null : composeHandler(fn3);
5762
+ var composeDragHandler = /* @__PURE__ */ __name(function composeDragHandler2(fn4) {
5763
+ return noDrag ? null : composeHandler(fn4);
5551
5764
  }, "composeDragHandler");
5552
5765
  var stopPropagation2 = /* @__PURE__ */ __name(function stopPropagation3(event) {
5553
5766
  if (noDragEventsBubbling) {
@@ -6489,8 +6702,8 @@ function once(func) {
6489
6702
  __name(once, "once");
6490
6703
  var noop$5 = /* @__PURE__ */ __name(function noop() {
6491
6704
  }, "noop");
6492
- function isFunction$7(fn3) {
6493
- return typeof fn3 === "function";
6705
+ function isFunction$7(fn4) {
6706
+ return typeof fn4 === "function";
6494
6707
  }
6495
6708
  __name(isFunction$7, "isFunction$7");
6496
6709
  function isStringish(value) {
@@ -6586,10 +6799,10 @@ var ownKeys$7 = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownK
6586
6799
  /* istanbul ignore next */
6587
6800
  Object.getOwnPropertyNames
6588
6801
  );
6589
- function toPrimitive$3(value) {
6802
+ function toPrimitive$2(value) {
6590
6803
  return value === null ? null : typeof value === "object" ? "" + value : value;
6591
6804
  }
6592
- __name(toPrimitive$3, "toPrimitive$3");
6805
+ __name(toPrimitive$2, "toPrimitive$2");
6593
6806
  function hasProp(target, prop2) {
6594
6807
  return objectPrototype$1.hasOwnProperty.call(target, prop2);
6595
6808
  }
@@ -7296,12 +7509,12 @@ var tmpNameDescriptor = {
7296
7509
  writable: false,
7297
7510
  enumerable: false
7298
7511
  };
7299
- function createAction$1(actionName, fn3, autoAction2, ref) {
7512
+ function createAction$1(actionName, fn4, autoAction2, ref) {
7300
7513
  if (autoAction2 === void 0) {
7301
7514
  autoAction2 = false;
7302
7515
  }
7303
7516
  function res() {
7304
- return executeAction(actionName, autoAction2, fn3, ref || this, arguments);
7517
+ return executeAction(actionName, autoAction2, fn4, ref || this, arguments);
7305
7518
  }
7306
7519
  __name(res, "res");
7307
7520
  res.isMobxAction = true;
@@ -7312,10 +7525,10 @@ function createAction$1(actionName, fn3, autoAction2, ref) {
7312
7525
  return res;
7313
7526
  }
7314
7527
  __name(createAction$1, "createAction$1");
7315
- function executeAction(actionName, canRunAsDerivation, fn3, scope, args) {
7528
+ function executeAction(actionName, canRunAsDerivation, fn4, scope, args) {
7316
7529
  var runInfo = _startAction(actionName, canRunAsDerivation);
7317
7530
  try {
7318
- return fn3.apply(scope, args);
7531
+ return fn4.apply(scope, args);
7319
7532
  } catch (err2) {
7320
7533
  runInfo.error_ = err2;
7321
7534
  throw err2;
@@ -7486,7 +7699,7 @@ var ObservableValue = /* @__PURE__ */ function(_Atom) {
7486
7699
  return this.name_ + "[" + this.value_ + "]";
7487
7700
  }, "toString");
7488
7701
  _proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
7489
- return toPrimitive$3(this.get());
7702
+ return toPrimitive$2(this.get());
7490
7703
  }, "valueOf");
7491
7704
  _proto[_Symbol$toPrimitive] = function() {
7492
7705
  return this.valueOf();
@@ -7671,7 +7884,7 @@ var ComputedValue = /* @__PURE__ */ function() {
7671
7884
  return this.name_ + "[" + this.derivation.toString() + "]";
7672
7885
  }, "toString");
7673
7886
  _proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
7674
- return toPrimitive$3(this.get());
7887
+ return toPrimitive$2(this.get());
7675
7888
  }, "valueOf");
7676
7889
  _proto[_Symbol$toPrimitive$1] = function() {
7677
7890
  return this.valueOf();
@@ -8100,7 +8313,7 @@ var Reaction = /* @__PURE__ */ function() {
8100
8313
  endBatch();
8101
8314
  }
8102
8315
  }, "runReaction_");
8103
- _proto.track = /* @__PURE__ */ __name(function track2(fn3) {
8316
+ _proto.track = /* @__PURE__ */ __name(function track2(fn4) {
8104
8317
  if (this.isDisposed_) {
8105
8318
  return;
8106
8319
  }
@@ -8108,7 +8321,7 @@ var Reaction = /* @__PURE__ */ function() {
8108
8321
  this.isRunning_ = true;
8109
8322
  var prevReaction = globalState.trackingContext;
8110
8323
  globalState.trackingContext = this;
8111
- var result = trackDerivedFunction(this, fn3, void 0);
8324
+ var result = trackDerivedFunction(this, fn4, void 0);
8112
8325
  globalState.trackingContext = prevReaction;
8113
8326
  this.isRunning_ = false;
8114
8327
  this.isTrackPending_ = false;
@@ -8193,10 +8406,10 @@ function runReactionsHelper() {
8193
8406
  }
8194
8407
  __name(runReactionsHelper, "runReactionsHelper");
8195
8408
  var isReaction = /* @__PURE__ */ createInstanceofPredicate("Reaction", Reaction);
8196
- function setReactionScheduler(fn3) {
8409
+ function setReactionScheduler(fn4) {
8197
8410
  var baseScheduler = reactionScheduler;
8198
8411
  reactionScheduler = /* @__PURE__ */ __name(function reactionScheduler3(f2) {
8199
- return fn3(function() {
8412
+ return fn4(function() {
8200
8413
  return baseScheduler(f2);
8201
8414
  });
8202
8415
  }, "reactionScheduler");
@@ -8507,8 +8720,8 @@ function cancelPromise(promise) {
8507
8720
  }
8508
8721
  }
8509
8722
  __name(cancelPromise, "cancelPromise");
8510
- function isFlow(fn3) {
8511
- return (fn3 == null ? void 0 : fn3.isMobXFlow) === true;
8723
+ function isFlow(fn4) {
8724
+ return (fn4 == null ? void 0 : fn4.isMobXFlow) === true;
8512
8725
  }
8513
8726
  __name(isFlow, "isFlow");
8514
8727
  function _isObservable(value, property2) {
@@ -10191,9 +10404,9 @@ var LegacyObservableArray = /* @__PURE__ */ function(_StubArray, _Symbol$toStrin
10191
10404
  return LegacyObservableArray2;
10192
10405
  }(StubArray, Symbol.toStringTag, Symbol.iterator);
10193
10406
  Object.entries(arrayExtensions).forEach(function(_ref) {
10194
- var prop2 = _ref[0], fn3 = _ref[1];
10407
+ var prop2 = _ref[0], fn4 = _ref[1];
10195
10408
  if (prop2 !== "concat") {
10196
- addHiddenProp(LegacyObservableArray.prototype, prop2, fn3);
10409
+ addHiddenProp(LegacyObservableArray.prototype, prop2, fn4);
10197
10410
  }
10198
10411
  });
10199
10412
  function createArrayEntryDescriptor(index2) {
@@ -10842,13 +11055,13 @@ function wrapper(realMethod, mixins) {
10842
11055
  }
10843
11056
  __name(wrapper, "wrapper");
10844
11057
  function wrapFunction(realMethod, mixins) {
10845
- var fn3 = /* @__PURE__ */ __name(function fn4() {
11058
+ var fn4 = /* @__PURE__ */ __name(function fn5() {
10846
11059
  for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
10847
11060
  args[_key2] = arguments[_key2];
10848
11061
  }
10849
11062
  wrapper.call.apply(wrapper, [this, realMethod, mixins].concat(args));
10850
11063
  }, "fn");
10851
- return fn3;
11064
+ return fn4;
10852
11065
  }
10853
11066
  __name(wrapFunction, "wrapFunction");
10854
11067
  function patch$2(target, methodName, mixinMethod) {
@@ -11529,12 +11742,12 @@ var un = function() {
11529
11742
  return o2(n3, t2);
11530
11743
  });
11531
11744
  }, e2;
11532
- }(), an = new un(), fn2 = an.produce, cn = an.produceWithPatches.bind(an), sn = an.setAutoFreeze.bind(an);
11745
+ }(), an = new un(), fn3 = an.produce, cn = an.produceWithPatches.bind(an), sn = an.setAutoFreeze.bind(an);
11533
11746
  an.setUseProxies.bind(an);
11534
11747
  var pn = an.applyPatches.bind(an);
11535
11748
  an.createDraft.bind(an);
11536
11749
  an.finishDraft.bind(an);
11537
- const immer = fn2;
11750
+ const immer = fn3;
11538
11751
  const UploadCsvWizard = "";
11539
11752
  var lodash = { exports: {} };
11540
11753
  /**
@@ -12305,7 +12518,7 @@ lodash.exports;
12305
12518
  "^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar2, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
12306
12519
  );
12307
12520
  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;
12308
- var defineProperty6 = function() {
12521
+ var defineProperty5 = function() {
12309
12522
  try {
12310
12523
  var func = getNative2(Object2, "defineProperty");
12311
12524
  func({}, "", {});
@@ -12745,8 +12958,8 @@ lodash.exports;
12745
12958
  }
12746
12959
  __name(baseAssignIn2, "baseAssignIn");
12747
12960
  function baseAssignValue2(object3, key, value) {
12748
- if (key == "__proto__" && defineProperty6) {
12749
- defineProperty6(object3, key, {
12961
+ if (key == "__proto__" && defineProperty5) {
12962
+ defineProperty5(object3, key, {
12750
12963
  "configurable": true,
12751
12964
  "enumerable": true,
12752
12965
  "value": value,
@@ -13479,8 +13692,8 @@ lodash.exports;
13479
13692
  metaMap.set(func, data);
13480
13693
  return func;
13481
13694
  };
13482
- var baseSetToString2 = !defineProperty6 ? identity4 : function(func, string2) {
13483
- return defineProperty6(func, "toString", {
13695
+ var baseSetToString2 = !defineProperty5 ? identity4 : function(func, string2) {
13696
+ return defineProperty5(func, "toString", {
13484
13697
  "configurable": true,
13485
13698
  "enumerable": false,
13486
13699
  "value": constant2(string2),
@@ -13913,8 +14126,8 @@ lodash.exports;
13913
14126
  function createBind(func, bitmask, thisArg) {
13914
14127
  var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
13915
14128
  function wrapper2() {
13916
- var fn3 = this && this !== root2 && this instanceof wrapper2 ? Ctor : func;
13917
- return fn3.apply(isBind ? thisArg : this, arguments);
14129
+ var fn4 = this && this !== root2 && this instanceof wrapper2 ? Ctor : func;
14130
+ return fn4.apply(isBind ? thisArg : this, arguments);
13918
14131
  }
13919
14132
  __name(wrapper2, "wrapper");
13920
14133
  return wrapper2;
@@ -13985,8 +14198,8 @@ lodash.exports;
13985
14198
  arity - length
13986
14199
  );
13987
14200
  }
13988
- var fn3 = this && this !== root2 && this instanceof wrapper2 ? Ctor : func;
13989
- return apply2(fn3, this, args);
14201
+ var fn4 = this && this !== root2 && this instanceof wrapper2 ? Ctor : func;
14202
+ return apply2(fn4, this, args);
13990
14203
  }
13991
14204
  __name(wrapper2, "wrapper");
13992
14205
  return wrapper2;
@@ -14078,7 +14291,7 @@ lodash.exports;
14078
14291
  arity - length
14079
14292
  );
14080
14293
  }
14081
- var thisBinding = isBind ? thisArg : this, fn3 = isBindKey ? thisBinding[func] : func;
14294
+ var thisBinding = isBind ? thisArg : this, fn4 = isBindKey ? thisBinding[func] : func;
14082
14295
  length = args.length;
14083
14296
  if (argPos) {
14084
14297
  args = reorder2(args, argPos);
@@ -14089,9 +14302,9 @@ lodash.exports;
14089
14302
  args.length = ary2;
14090
14303
  }
14091
14304
  if (this && this !== root2 && this instanceof wrapper2) {
14092
- fn3 = Ctor || createCtor(fn3);
14305
+ fn4 = Ctor || createCtor(fn4);
14093
14306
  }
14094
- return fn3.apply(thisBinding, args);
14307
+ return fn4.apply(thisBinding, args);
14095
14308
  }
14096
14309
  __name(wrapper2, "wrapper");
14097
14310
  return wrapper2;
@@ -14154,14 +14367,14 @@ lodash.exports;
14154
14367
  function createPartial(func, bitmask, thisArg, partials) {
14155
14368
  var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
14156
14369
  function wrapper2() {
14157
- var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength), fn3 = this && this !== root2 && this instanceof wrapper2 ? Ctor : func;
14370
+ var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength), fn4 = this && this !== root2 && this instanceof wrapper2 ? Ctor : func;
14158
14371
  while (++leftIndex < leftLength) {
14159
14372
  args[leftIndex] = partials[leftIndex];
14160
14373
  }
14161
14374
  while (argsLength--) {
14162
14375
  args[leftIndex++] = arguments[++argsIndex];
14163
14376
  }
14164
- return apply2(fn3, isBind ? thisArg : this, args);
14377
+ return apply2(fn4, isBind ? thisArg : this, args);
14165
14378
  }
14166
14379
  __name(wrapper2, "wrapper");
14167
14380
  return wrapper2;
@@ -17966,26 +18179,26 @@ var _aFunction = /* @__PURE__ */ __name(function(it) {
17966
18179
  return it;
17967
18180
  }, "_aFunction");
17968
18181
  var aFunction = _aFunction;
17969
- var _ctx = /* @__PURE__ */ __name(function(fn3, that, length) {
17970
- aFunction(fn3);
18182
+ var _ctx = /* @__PURE__ */ __name(function(fn4, that, length) {
18183
+ aFunction(fn4);
17971
18184
  if (that === void 0)
17972
- return fn3;
18185
+ return fn4;
17973
18186
  switch (length) {
17974
18187
  case 1:
17975
18188
  return function(a2) {
17976
- return fn3.call(that, a2);
18189
+ return fn4.call(that, a2);
17977
18190
  };
17978
18191
  case 2:
17979
18192
  return function(a2, b3) {
17980
- return fn3.call(that, a2, b3);
18193
+ return fn4.call(that, a2, b3);
17981
18194
  };
17982
18195
  case 3:
17983
18196
  return function(a2, b3, c2) {
17984
- return fn3.call(that, a2, b3, c2);
18197
+ return fn4.call(that, a2, b3, c2);
17985
18198
  };
17986
18199
  }
17987
18200
  return function() {
17988
- return fn3.apply(that, arguments);
18201
+ return fn4.apply(that, arguments);
17989
18202
  };
17990
18203
  }, "_ctx");
17991
18204
  var _objectDp = {};
@@ -18005,11 +18218,20 @@ var _fails = /* @__PURE__ */ __name(function(exec) {
18005
18218
  return true;
18006
18219
  }
18007
18220
  }, "_fails");
18008
- var _descriptors = !_fails(function() {
18009
- return Object.defineProperty({}, "a", { get: function() {
18010
- return 7;
18011
- } }).a != 7;
18012
- });
18221
+ var _descriptors;
18222
+ var hasRequired_descriptors;
18223
+ function require_descriptors() {
18224
+ if (hasRequired_descriptors)
18225
+ return _descriptors;
18226
+ hasRequired_descriptors = 1;
18227
+ _descriptors = !_fails(function() {
18228
+ return Object.defineProperty({}, "a", { get: function() {
18229
+ return 7;
18230
+ } }).a != 7;
18231
+ });
18232
+ return _descriptors;
18233
+ }
18234
+ __name(require_descriptors, "require_descriptors");
18013
18235
  var _domCreate;
18014
18236
  var hasRequired_domCreate;
18015
18237
  function require_domCreate() {
@@ -18025,43 +18247,60 @@ function require_domCreate() {
18025
18247
  return _domCreate;
18026
18248
  }
18027
18249
  __name(require_domCreate, "require_domCreate");
18028
- var _ie8DomDefine = !_descriptors && !_fails(function() {
18029
- return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
18030
- return 7;
18031
- } }).a != 7;
18032
- });
18250
+ var _ie8DomDefine;
18251
+ var hasRequired_ie8DomDefine;
18252
+ function require_ie8DomDefine() {
18253
+ if (hasRequired_ie8DomDefine)
18254
+ return _ie8DomDefine;
18255
+ hasRequired_ie8DomDefine = 1;
18256
+ _ie8DomDefine = !require_descriptors() && !_fails(function() {
18257
+ return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
18258
+ return 7;
18259
+ } }).a != 7;
18260
+ });
18261
+ return _ie8DomDefine;
18262
+ }
18263
+ __name(require_ie8DomDefine, "require_ie8DomDefine");
18033
18264
  var isObject$d = _isObject;
18034
18265
  var _toPrimitive$1 = /* @__PURE__ */ __name(function(it, S2) {
18035
18266
  if (!isObject$d(it))
18036
18267
  return it;
18037
- var fn3, val2;
18038
- if (S2 && typeof (fn3 = it.toString) == "function" && !isObject$d(val2 = fn3.call(it)))
18268
+ var fn4, val2;
18269
+ if (S2 && typeof (fn4 = it.toString) == "function" && !isObject$d(val2 = fn4.call(it)))
18039
18270
  return val2;
18040
- if (typeof (fn3 = it.valueOf) == "function" && !isObject$d(val2 = fn3.call(it)))
18271
+ if (typeof (fn4 = it.valueOf) == "function" && !isObject$d(val2 = fn4.call(it)))
18041
18272
  return val2;
18042
- if (!S2 && typeof (fn3 = it.toString) == "function" && !isObject$d(val2 = fn3.call(it)))
18273
+ if (!S2 && typeof (fn4 = it.toString) == "function" && !isObject$d(val2 = fn4.call(it)))
18043
18274
  return val2;
18044
18275
  throw TypeError("Can't convert object to primitive value");
18045
18276
  }, "_toPrimitive$1");
18046
- var anObject$5 = _anObject;
18047
- var IE8_DOM_DEFINE$1 = _ie8DomDefine;
18048
- var toPrimitive$2 = _toPrimitive$1;
18049
- var dP$3 = Object.defineProperty;
18050
- _objectDp.f = _descriptors ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty2(O2, P2, Attributes) {
18051
- anObject$5(O2);
18052
- P2 = toPrimitive$2(P2, true);
18053
- anObject$5(Attributes);
18054
- if (IE8_DOM_DEFINE$1)
18055
- try {
18056
- return dP$3(O2, P2, Attributes);
18057
- } catch (e2) {
18058
- }
18059
- if ("get" in Attributes || "set" in Attributes)
18060
- throw TypeError("Accessors not supported!");
18061
- if ("value" in Attributes)
18062
- O2[P2] = Attributes.value;
18063
- return O2;
18064
- }, "defineProperty");
18277
+ var hasRequired_objectDp;
18278
+ function require_objectDp() {
18279
+ if (hasRequired_objectDp)
18280
+ return _objectDp;
18281
+ hasRequired_objectDp = 1;
18282
+ var anObject2 = _anObject;
18283
+ var IE8_DOM_DEFINE2 = require_ie8DomDefine();
18284
+ var toPrimitive2 = _toPrimitive$1;
18285
+ var dP2 = Object.defineProperty;
18286
+ _objectDp.f = require_descriptors() ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty5(O2, P2, Attributes) {
18287
+ anObject2(O2);
18288
+ P2 = toPrimitive2(P2, true);
18289
+ anObject2(Attributes);
18290
+ if (IE8_DOM_DEFINE2)
18291
+ try {
18292
+ return dP2(O2, P2, Attributes);
18293
+ } catch (e2) {
18294
+ }
18295
+ if ("get" in Attributes || "set" in Attributes)
18296
+ throw TypeError("Accessors not supported!");
18297
+ if ("value" in Attributes)
18298
+ O2[P2] = Attributes.value;
18299
+ return O2;
18300
+ }, "defineProperty");
18301
+ return _objectDp;
18302
+ }
18303
+ __name(require_objectDp, "require_objectDp");
18065
18304
  var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
18066
18305
  return {
18067
18306
  enumerable: !(bitmap & 1),
@@ -18070,9 +18309,9 @@ var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
18070
18309
  value
18071
18310
  };
18072
18311
  }, "_propertyDesc");
18073
- var dP$2 = _objectDp;
18312
+ var dP$2 = require_objectDp();
18074
18313
  var createDesc$3 = _propertyDesc;
18075
- var _hide = _descriptors ? function(object3, key, value) {
18314
+ var _hide = require_descriptors() ? function(object3, key, value) {
18076
18315
  return dP$2.f(object3, key, createDesc$3(1, value));
18077
18316
  } : function(object3, key, value) {
18078
18317
  object3[key] = value;
@@ -18250,15 +18489,7 @@ var _objectKeys = Object.keys || /* @__PURE__ */ __name(function keys(O2) {
18250
18489
  var _objectGops = {};
18251
18490
  _objectGops.f = Object.getOwnPropertySymbols;
18252
18491
  var _objectPie = {};
18253
- var hasRequired_objectPie;
18254
- function require_objectPie() {
18255
- if (hasRequired_objectPie)
18256
- return _objectPie;
18257
- hasRequired_objectPie = 1;
18258
- _objectPie.f = {}.propertyIsEnumerable;
18259
- return _objectPie;
18260
- }
18261
- __name(require_objectPie, "require_objectPie");
18492
+ _objectPie.f = {}.propertyIsEnumerable;
18262
18493
  var defined$1 = _defined;
18263
18494
  var _toObject = /* @__PURE__ */ __name(function(it) {
18264
18495
  return Object(defined$1(it));
@@ -18269,10 +18500,10 @@ function require_objectAssign() {
18269
18500
  if (hasRequired_objectAssign)
18270
18501
  return _objectAssign;
18271
18502
  hasRequired_objectAssign = 1;
18272
- var DESCRIPTORS2 = _descriptors;
18503
+ var DESCRIPTORS2 = require_descriptors();
18273
18504
  var getKeys2 = _objectKeys;
18274
18505
  var gOPS2 = _objectGops;
18275
- var pIE2 = require_objectPie();
18506
+ var pIE2 = _objectPie;
18276
18507
  var toObject2 = _toObject;
18277
18508
  var IObject2 = _iobject;
18278
18509
  var $assign = Object.assign;
@@ -18335,10 +18566,10 @@ var _iterStep = /* @__PURE__ */ __name(function(done, value) {
18335
18566
  }, "_iterStep");
18336
18567
  var _iterators = {};
18337
18568
  var _redefine = _hide;
18338
- var dP$1 = _objectDp;
18569
+ var dP$1 = require_objectDp();
18339
18570
  var anObject$4 = _anObject;
18340
18571
  var getKeys$1 = _objectKeys;
18341
- var _objectDps = _descriptors ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties(O2, Properties2) {
18572
+ var _objectDps = require_descriptors() ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties(O2, Properties2) {
18342
18573
  anObject$4(O2);
18343
18574
  var keys5 = getKeys$1(Properties2);
18344
18575
  var length = keys5.length;
@@ -18405,7 +18636,7 @@ var $exports = _wks.exports = function(name2) {
18405
18636
  };
18406
18637
  $exports.store = store$2;
18407
18638
  var _wksExports = _wks.exports;
18408
- var def = _objectDp.f;
18639
+ var def = require_objectDp().f;
18409
18640
  var has$c = _has;
18410
18641
  var TAG$1 = _wksExports("toStringTag");
18411
18642
  var _setToStringTag = /* @__PURE__ */ __name(function(it, tag, stat) {
@@ -18662,9 +18893,9 @@ var _default$a = function() {
18662
18893
  };
18663
18894
  }();
18664
18895
  var anObject$1 = _anObject;
18665
- var _iterCall = /* @__PURE__ */ __name(function(iterator2, fn3, value, entries2) {
18896
+ var _iterCall = /* @__PURE__ */ __name(function(iterator2, fn4, value, entries2) {
18666
18897
  try {
18667
- return entries2 ? fn3(anObject$1(value)[0], value[1]) : fn3(value);
18898
+ return entries2 ? fn4(anObject$1(value)[0], value[1]) : fn4(value);
18668
18899
  } catch (e2) {
18669
18900
  var ret = iterator2["return"];
18670
18901
  if (ret !== void 0)
@@ -18678,7 +18909,7 @@ var ArrayProto = Array.prototype;
18678
18909
  var _isArrayIter = /* @__PURE__ */ __name(function(it) {
18679
18910
  return it !== void 0 && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
18680
18911
  }, "_isArrayIter");
18681
- var $defineProperty$2 = _objectDp;
18912
+ var $defineProperty$2 = require_objectDp();
18682
18913
  var createDesc$2 = _propertyDesc;
18683
18914
  var _createProperty = /* @__PURE__ */ __name(function(object3, index2, value) {
18684
18915
  if (index2 in object3)
@@ -18784,11 +19015,11 @@ var $export$4 = _export;
18784
19015
  var core$1 = _coreExports;
18785
19016
  var fails = _fails;
18786
19017
  var _objectSap = /* @__PURE__ */ __name(function(KEY, exec) {
18787
- var fn3 = (core$1.Object || {})[KEY] || Object[KEY];
19018
+ var fn4 = (core$1.Object || {})[KEY] || Object[KEY];
18788
19019
  var exp = {};
18789
- exp[KEY] = exec(fn3);
19020
+ exp[KEY] = exec(fn4);
18790
19021
  $export$4($export$4.S + $export$4.F * fails(function() {
18791
- fn3(1);
19022
+ fn4(1);
18792
19023
  }), "Object", exp);
18793
19024
  }, "_objectSap");
18794
19025
  var toObject$2 = _toObject;
@@ -18807,9 +19038,9 @@ var _default$8 = /* @__PURE__ */ __name(function(instance, Constructor) {
18807
19038
  }
18808
19039
  }, "_default$8");
18809
19040
  var $export$3 = _export;
18810
- $export$3($export$3.S + $export$3.F * !_descriptors, "Object", { defineProperty: _objectDp.f });
19041
+ $export$3($export$3.S + $export$3.F * !require_descriptors(), "Object", { defineProperty: require_objectDp().f });
18811
19042
  var $Object$2 = _coreExports.Object;
18812
- var defineProperty$c = /* @__PURE__ */ __name(function defineProperty3(it, key, desc) {
19043
+ var defineProperty$c = /* @__PURE__ */ __name(function defineProperty2(it, key, desc) {
18813
19044
  return $Object$2.defineProperty(it, key, desc);
18814
19045
  }, "defineProperty");
18815
19046
  var defineProperty$b = { "default": defineProperty$c, __esModule: true };
@@ -18848,7 +19079,7 @@ var _meta = { exports: {} };
18848
19079
  var META$1 = _uid("meta");
18849
19080
  var isObject$c = _isObject;
18850
19081
  var has$a = _has;
18851
- var setDesc = _objectDp.f;
19082
+ var setDesc = require_objectDp().f;
18852
19083
  var id$1 = 0;
18853
19084
  var isExtensible = Object.isExtensible || function() {
18854
19085
  return true;
@@ -18901,7 +19132,7 @@ var meta = _meta.exports = {
18901
19132
  var _metaExports = _meta.exports;
18902
19133
  var core = _coreExports;
18903
19134
  var wksExt$1 = _wksExt;
18904
- var defineProperty$a = _objectDp.f;
19135
+ var defineProperty$a = require_objectDp().f;
18905
19136
  var _wksDefine = /* @__PURE__ */ __name(function(name2) {
18906
19137
  var $Symbol2 = core.Symbol || (core.Symbol = {});
18907
19138
  if (name2.charAt(0) != "_" && !(name2 in $Symbol2))
@@ -18909,7 +19140,7 @@ var _wksDefine = /* @__PURE__ */ __name(function(name2) {
18909
19140
  }, "_wksDefine");
18910
19141
  var getKeys = _objectKeys;
18911
19142
  var gOPS$1 = _objectGops;
18912
- var pIE$1 = require_objectPie();
19143
+ var pIE$1 = _objectPie;
18913
19144
  var _enumKeys = /* @__PURE__ */ __name(function(it) {
18914
19145
  var result = getKeys(it);
18915
19146
  var getSymbols2 = gOPS$1.f;
@@ -18950,14 +19181,14 @@ _objectGopnExt.f = /* @__PURE__ */ __name(function getOwnPropertyNames2(it) {
18950
19181
  return windowNames && toString$5.call(it) == "[object Window]" ? getWindowNames(it) : gOPN$1(toIObject$2(it));
18951
19182
  }, "getOwnPropertyNames");
18952
19183
  var _objectGopd = {};
18953
- var pIE = require_objectPie();
19184
+ var pIE = _objectPie;
18954
19185
  var createDesc$1 = _propertyDesc;
18955
19186
  var toIObject$1 = _toIobject;
18956
19187
  var toPrimitive$1 = _toPrimitive$1;
18957
19188
  var has$9 = _has;
18958
- var IE8_DOM_DEFINE = _ie8DomDefine;
19189
+ var IE8_DOM_DEFINE = require_ie8DomDefine();
18959
19190
  var gOPD$5 = Object.getOwnPropertyDescriptor;
18960
- _objectGopd.f = _descriptors ? gOPD$5 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor(O2, P2) {
19191
+ _objectGopd.f = require_descriptors() ? gOPD$5 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor(O2, P2) {
18961
19192
  O2 = toIObject$1(O2);
18962
19193
  P2 = toPrimitive$1(P2, true);
18963
19194
  if (IE8_DOM_DEFINE)
@@ -18970,7 +19201,7 @@ _objectGopd.f = _descriptors ? gOPD$5 : /* @__PURE__ */ __name(function getOwnPr
18970
19201
  }, "getOwnPropertyDescriptor");
18971
19202
  var global$2 = _globalExports;
18972
19203
  var has$8 = _has;
18973
- var DESCRIPTORS = _descriptors;
19204
+ var DESCRIPTORS = require_descriptors();
18974
19205
  var $export$2 = _export;
18975
19206
  var redefine = _redefine;
18976
19207
  var META = _metaExports.KEY;
@@ -18993,7 +19224,7 @@ var _create$1 = _objectCreate;
18993
19224
  var gOPNExt = _objectGopnExt;
18994
19225
  var $GOPD = _objectGopd;
18995
19226
  var $GOPS = _objectGops;
18996
- var $DP = _objectDp;
19227
+ var $DP = require_objectDp();
18997
19228
  var $keys$1 = _objectKeys;
18998
19229
  var gOPD$4 = $GOPD.f;
18999
19230
  var dP = $DP.f;
@@ -19036,7 +19267,7 @@ var isSymbol$8 = USE_NATIVE && typeof $Symbol.iterator == "symbol" ? function(it
19036
19267
  } : function(it) {
19037
19268
  return it instanceof $Symbol;
19038
19269
  };
19039
- var $defineProperty$1 = /* @__PURE__ */ __name(function defineProperty4(it, key, D2) {
19270
+ var $defineProperty$1 = /* @__PURE__ */ __name(function defineProperty3(it, key, D2) {
19040
19271
  if (it === ObjectProto)
19041
19272
  $defineProperty$1(OPSymbols, key, D2);
19042
19273
  anObject(it);
@@ -19130,7 +19361,7 @@ if (!USE_NATIVE) {
19130
19361
  $GOPD.f = $getOwnPropertyDescriptor;
19131
19362
  $DP.f = $defineProperty$1;
19132
19363
  _objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
19133
- require_objectPie().f = $propertyIsEnumerable;
19364
+ _objectPie.f = $propertyIsEnumerable;
19134
19365
  $GOPS.f = $getOwnPropertySymbols;
19135
19366
  if (DESCRIPTORS && !_library) {
19136
19367
  redefine(ObjectProto, "propertyIsEnumerable", $propertyIsEnumerable);
@@ -21068,9 +21299,9 @@ var vendorPrefix = function() {
21068
21299
  return pre && pre.length ? pre[0].toUpperCase() + pre.substr(1) : "";
21069
21300
  }
21070
21301
  }();
21071
- function closest$2(el, fn3) {
21302
+ function closest$2(el, fn4) {
21072
21303
  while (el) {
21073
- if (fn3(el))
21304
+ if (fn4(el))
21074
21305
  return el;
21075
21306
  el = el.parentNode;
21076
21307
  }
@@ -22084,9 +22315,9 @@ var getComputedStyleX;
22084
22315
  if (typeof window !== "undefined") {
22085
22316
  getComputedStyleX = window.getComputedStyle ? _getComputedStyle : _getComputedStyleIE;
22086
22317
  }
22087
- function each$2(arr, fn3) {
22318
+ function each$2(arr, fn4) {
22088
22319
  for (var i = 0; i < arr.length; i++) {
22089
- fn3(arr[i]);
22320
+ fn4(arr[i]);
22090
22321
  }
22091
22322
  }
22092
22323
  __name(each$2, "each$2");
@@ -26737,7 +26968,7 @@ function trough() {
26737
26968
  }
26738
26969
  next(null, ...values2);
26739
26970
  function next(error, ...output) {
26740
- const fn3 = fns[++middlewareIndex];
26971
+ const fn4 = fns[++middlewareIndex];
26741
26972
  let index2 = -1;
26742
26973
  if (error) {
26743
26974
  callback2(error);
@@ -26749,8 +26980,8 @@ function trough() {
26749
26980
  }
26750
26981
  }
26751
26982
  values2 = output;
26752
- if (fn3) {
26753
- wrap$1(fn3, next)(...output);
26983
+ if (fn4) {
26984
+ wrap$1(fn4, next)(...output);
26754
26985
  } else {
26755
26986
  callback2(null, ...output);
26756
26987
  }
@@ -38137,9 +38368,9 @@ var swizzle$1 = simpleSwizzle.exports = /* @__PURE__ */ __name(function swizzle(
38137
38368
  }
38138
38369
  return results;
38139
38370
  }, "swizzle");
38140
- swizzle$1.wrap = function(fn3) {
38371
+ swizzle$1.wrap = function(fn4) {
38141
38372
  return function() {
38142
- return fn3(swizzle$1(arguments));
38373
+ return fn4(swizzle$1(arguments));
38143
38374
  };
38144
38375
  };
38145
38376
  var simpleSwizzleExports = simpleSwizzle.exports;
@@ -39223,15 +39454,15 @@ function link$1(from3, to) {
39223
39454
  __name(link$1, "link$1");
39224
39455
  function wrapConversion$1(toModel, graph) {
39225
39456
  var path2 = [graph[toModel].parent, toModel];
39226
- var fn3 = conversions$4[graph[toModel].parent][toModel];
39457
+ var fn4 = conversions$4[graph[toModel].parent][toModel];
39227
39458
  var cur = graph[toModel].parent;
39228
39459
  while (graph[cur].parent) {
39229
39460
  path2.unshift(graph[cur].parent);
39230
- fn3 = link$1(conversions$4[graph[cur].parent][cur], fn3);
39461
+ fn4 = link$1(conversions$4[graph[cur].parent][cur], fn4);
39231
39462
  cur = graph[cur].parent;
39232
39463
  }
39233
- fn3.conversion = path2;
39234
- return fn3;
39464
+ fn4.conversion = path2;
39465
+ return fn4;
39235
39466
  }
39236
39467
  __name(wrapConversion$1, "wrapConversion$1");
39237
39468
  var route$3 = /* @__PURE__ */ __name(function(fromModel) {
@@ -39252,7 +39483,7 @@ var conversions$3 = conversionsExports;
39252
39483
  var route$2 = route$3;
39253
39484
  var convert$4 = {};
39254
39485
  var models$1 = Object.keys(conversions$3);
39255
- function wrapRaw$1(fn3) {
39486
+ function wrapRaw$1(fn4) {
39256
39487
  var wrappedFn = /* @__PURE__ */ __name(function(args) {
39257
39488
  if (args === void 0 || args === null) {
39258
39489
  return args;
@@ -39260,15 +39491,15 @@ function wrapRaw$1(fn3) {
39260
39491
  if (arguments.length > 1) {
39261
39492
  args = Array.prototype.slice.call(arguments);
39262
39493
  }
39263
- return fn3(args);
39494
+ return fn4(args);
39264
39495
  }, "wrappedFn");
39265
- if ("conversion" in fn3) {
39266
- wrappedFn.conversion = fn3.conversion;
39496
+ if ("conversion" in fn4) {
39497
+ wrappedFn.conversion = fn4.conversion;
39267
39498
  }
39268
39499
  return wrappedFn;
39269
39500
  }
39270
39501
  __name(wrapRaw$1, "wrapRaw$1");
39271
- function wrapRounded$1(fn3) {
39502
+ function wrapRounded$1(fn4) {
39272
39503
  var wrappedFn = /* @__PURE__ */ __name(function(args) {
39273
39504
  if (args === void 0 || args === null) {
39274
39505
  return args;
@@ -39276,7 +39507,7 @@ function wrapRounded$1(fn3) {
39276
39507
  if (arguments.length > 1) {
39277
39508
  args = Array.prototype.slice.call(arguments);
39278
39509
  }
39279
- var result = fn3(args);
39510
+ var result = fn4(args);
39280
39511
  if (typeof result === "object") {
39281
39512
  for (var len = result.length, i = 0; i < len; i++) {
39282
39513
  result[i] = Math.round(result[i]);
@@ -39284,8 +39515,8 @@ function wrapRounded$1(fn3) {
39284
39515
  }
39285
39516
  return result;
39286
39517
  }, "wrappedFn");
39287
- if ("conversion" in fn3) {
39288
- wrappedFn.conversion = fn3.conversion;
39518
+ if ("conversion" in fn4) {
39519
+ wrappedFn.conversion = fn4.conversion;
39289
39520
  }
39290
39521
  return wrappedFn;
39291
39522
  }
@@ -39297,9 +39528,9 @@ models$1.forEach(function(fromModel) {
39297
39528
  var routes = route$2(fromModel);
39298
39529
  var routeModels = Object.keys(routes);
39299
39530
  routeModels.forEach(function(toModel) {
39300
- var fn3 = routes[toModel];
39301
- convert$4[fromModel][toModel] = wrapRounded$1(fn3);
39302
- convert$4[fromModel][toModel].raw = wrapRaw$1(fn3);
39531
+ var fn4 = routes[toModel];
39532
+ convert$4[fromModel][toModel] = wrapRounded$1(fn4);
39533
+ convert$4[fromModel][toModel].raw = wrapRaw$1(fn4);
39303
39534
  });
39304
39535
  });
39305
39536
  var colorConvert$1 = convert$4;
@@ -40749,9 +40980,9 @@ var doEval = /* @__PURE__ */ __name(function doEval2(name2) {
40749
40980
  } else if (name2 === "%AsyncGeneratorFunction%") {
40750
40981
  value = getEvalledConstructor("async function* () {}");
40751
40982
  } else if (name2 === "%AsyncGenerator%") {
40752
- var fn3 = doEval2("%AsyncGeneratorFunction%");
40753
- if (fn3) {
40754
- value = fn3.prototype;
40983
+ var fn4 = doEval2("%AsyncGeneratorFunction%");
40984
+ if (fn4) {
40985
+ value = fn4.prototype;
40755
40986
  }
40756
40987
  } else if (name2 === "%AsyncIteratorPrototype%") {
40757
40988
  var gen = doEval2("%AsyncGenerator%");
@@ -41807,15 +42038,15 @@ var isBuffer$4 = /* @__PURE__ */ __name(function isBuffer2(obj) {
41807
42038
  var combine$1 = /* @__PURE__ */ __name(function combine(a2, b3) {
41808
42039
  return [].concat(a2, b3);
41809
42040
  }, "combine");
41810
- var maybeMap = /* @__PURE__ */ __name(function maybeMap2(val2, fn3) {
42041
+ var maybeMap = /* @__PURE__ */ __name(function maybeMap2(val2, fn4) {
41811
42042
  if (isArray$b(val2)) {
41812
42043
  var mapped = [];
41813
42044
  for (var i = 0; i < val2.length; i += 1) {
41814
- mapped.push(fn3(val2[i]));
42045
+ mapped.push(fn4(val2[i]));
41815
42046
  }
41816
42047
  return mapped;
41817
42048
  }
41818
- return fn3(val2);
42049
+ return fn4(val2);
41819
42050
  }, "maybeMap");
41820
42051
  var utils$6 = {
41821
42052
  arrayToObject,
@@ -46439,8 +46670,8 @@ var Saturation = function(_ref) {
46439
46670
  _this.handleMouseUp = function() {
46440
46671
  _this.unbindEventListeners();
46441
46672
  };
46442
- _this.throttle = throttle$1(function(fn3, data, e2) {
46443
- fn3(data, e2);
46673
+ _this.throttle = throttle$1(function(fn4, data, e2) {
46674
+ fn4(data, e2);
46444
46675
  }, 50);
46445
46676
  return _this;
46446
46677
  }
@@ -46812,8 +47043,8 @@ tinycolor.prototype = {
46812
47043
  clone: /* @__PURE__ */ __name(function clone3() {
46813
47044
  return tinycolor(this.toString());
46814
47045
  }, "clone"),
46815
- _applyModification: /* @__PURE__ */ __name(function _applyModification(fn3, args) {
46816
- var color2 = fn3.apply(null, [this].concat([].slice.call(args)));
47046
+ _applyModification: /* @__PURE__ */ __name(function _applyModification(fn4, args) {
47047
+ var color2 = fn4.apply(null, [this].concat([].slice.call(args)));
46817
47048
  this._r = color2._r;
46818
47049
  this._g = color2._g;
46819
47050
  this._b = color2._b;
@@ -46841,8 +47072,8 @@ tinycolor.prototype = {
46841
47072
  spin: /* @__PURE__ */ __name(function spin() {
46842
47073
  return this._applyModification(_spin, arguments);
46843
47074
  }, "spin"),
46844
- _applyCombination: /* @__PURE__ */ __name(function _applyCombination(fn3, args) {
46845
- return fn3.apply(null, [this].concat([].slice.call(args)));
47075
+ _applyCombination: /* @__PURE__ */ __name(function _applyCombination(fn4, args) {
47076
+ return fn4.apply(null, [this].concat([].slice.call(args)));
46846
47077
  }, "_applyCombination"),
46847
47078
  analogous: /* @__PURE__ */ __name(function analogous() {
46848
47079
  return this._applyCombination(_analogous, arguments);
@@ -47762,8 +47993,8 @@ var ColorWrap = /* @__PURE__ */ __name(function ColorWrap2(Picker) {
47762
47993
  }
47763
47994
  };
47764
47995
  _this.state = _extends$e({}, toState(props.color, 0));
47765
- _this.debounce = debounce$1(function(fn3, data, event) {
47766
- fn3(data, event);
47996
+ _this.debounce = debounce$1(function(fn4, data, event) {
47997
+ fn4(data, event);
47767
47998
  }, 100);
47768
47999
  return _this;
47769
48000
  }
@@ -56502,9 +56733,9 @@ const _DataTable = class _DataTable extends React__default$1.Component {
56502
56733
  return window.toastr.warning("No text to copy");
56503
56734
  this.handleCopyHelper(textToCopy, "Column copied");
56504
56735
  }, "handleCopyColumn"));
56505
- __publicField(this, "updateEntitiesHelper", /* @__PURE__ */ __name((ents, fn3) => {
56736
+ __publicField(this, "updateEntitiesHelper", /* @__PURE__ */ __name((ents, fn4) => {
56506
56737
  const { change: change2, reduxFormEntitiesUndoRedoStack = { currentVersion: 0 } } = this.props;
56507
- const [nextState, patches, inversePatches] = cn(ents, fn3);
56738
+ const [nextState, patches, inversePatches] = cn(ents, fn4);
56508
56739
  if (!inversePatches.length)
56509
56740
  return;
56510
56741
  const thatNewNew = [...nextState];
@@ -58276,8 +58507,8 @@ const _DataTable = class _DataTable extends React__default$1.Component {
58276
58507
  let updateTableDisplayDensityToUse = updateTableDisplayDensity;
58277
58508
  let resetDefaultVisibilityToUse = resetDefaultVisibility;
58278
58509
  if (withDisplayOptions && !syncDisplayOptionsToDb) {
58279
- const wrapUpdate = /* @__PURE__ */ __name((fn3) => (...args) => {
58280
- fn3(...args);
58510
+ const wrapUpdate = /* @__PURE__ */ __name((fn4) => (...args) => {
58511
+ fn4(...args);
58281
58512
  change2("localStorageForceUpdate", Math.random());
58282
58513
  }, "wrapUpdate");
58283
58514
  updateColumnVisibilityToUse = wrapUpdate(updateColumnVisibility);
@@ -58472,12 +58703,13 @@ const _DataTable = class _DataTable extends React__default$1.Component {
58472
58703
  tabIndex: -1,
58473
58704
  onKeyDown: (e2) => {
58474
58705
  var _a2, _b2, _c, _d, _e, _f;
58475
- const isArrowKey = e2.keyCode >= 37 && e2.keyCode <= 40 || e2.keyCode === 9;
58476
- if (isArrowKey && ((_a2 = e2.target) == null ? void 0 : _a2.tagName) !== "INPUT") {
58706
+ const isTabKey = e2.keyCode === 9;
58707
+ const isArrowKey = e2.keyCode >= 37 && e2.keyCode <= 40;
58708
+ if (isArrowKey && ((_a2 = e2.target) == null ? void 0 : _a2.tagName) !== "INPUT" || isTabKey) {
58477
58709
  const { schema: schema22, entities: entities2 } = computePresets(this.props);
58478
58710
  const left2 = e2.keyCode === 37;
58479
58711
  const up = e2.keyCode === 38;
58480
- const down = e2.keyCode === 40;
58712
+ const down = e2.keyCode === 40 || e2.keyCode === 13;
58481
58713
  let cellIdToUse = this.getPrimarySelectedCellId();
58482
58714
  const pathToIndex = getFieldPathToIndex(schema22);
58483
58715
  const entityMap = getEntityIdToEntity(entities2);
@@ -59148,7 +59380,7 @@ const wrapDialog = /* @__PURE__ */ __name((topLevelDialogProps = {}) => (Compone
59148
59380
  /* @__PURE__ */ React__default$1.createElement(Component2, __spreadValues({ hideModal }, otherProps))
59149
59381
  );
59150
59382
  }, "wrapDialog");
59151
- function renderOnDoc(fn3) {
59383
+ function renderOnDoc(fn4) {
59152
59384
  const elemDiv = document.createElement("div");
59153
59385
  elemDiv.style.cssText = "position:absolute;width:100%;height:100%;top:0px;opacity:0.3;z-index:0;";
59154
59386
  document.body.appendChild(elemDiv);
@@ -59158,7 +59390,7 @@ function renderOnDoc(fn3) {
59158
59390
  document.body.removeChild(elemDiv);
59159
59391
  });
59160
59392
  }, "handleClose");
59161
- return ReactDOM$1.render(fn3(handleClose), elemDiv);
59393
+ return ReactDOM$1.render(fn4(handleClose), elemDiv);
59162
59394
  }
59163
59395
  __name(renderOnDoc, "renderOnDoc");
59164
59396
  function showConfirmationDialog(opts2) {
@@ -64490,9 +64722,9 @@ var bluebird = { exports: {} };
64490
64722
  this._schedule = schedule;
64491
64723
  }
64492
64724
  __name(Async, "Async");
64493
- Async.prototype.setScheduler = function(fn3) {
64725
+ Async.prototype.setScheduler = function(fn4) {
64494
64726
  var prev = this._schedule;
64495
- this._schedule = fn3;
64727
+ this._schedule = fn4;
64496
64728
  this._customScheduler = true;
64497
64729
  return prev;
64498
64730
  };
@@ -64510,33 +64742,33 @@ var bluebird = { exports: {} };
64510
64742
  this.throwLater(e2);
64511
64743
  }
64512
64744
  };
64513
- Async.prototype.throwLater = function(fn3, arg) {
64745
+ Async.prototype.throwLater = function(fn4, arg) {
64514
64746
  if (arguments.length === 1) {
64515
- arg = fn3;
64516
- fn3 = /* @__PURE__ */ __name(function() {
64747
+ arg = fn4;
64748
+ fn4 = /* @__PURE__ */ __name(function() {
64517
64749
  throw arg;
64518
64750
  }, "fn");
64519
64751
  }
64520
64752
  if (typeof setTimeout !== "undefined") {
64521
64753
  setTimeout(function() {
64522
- fn3(arg);
64754
+ fn4(arg);
64523
64755
  }, 0);
64524
64756
  } else
64525
64757
  try {
64526
64758
  this._schedule(function() {
64527
- fn3(arg);
64759
+ fn4(arg);
64528
64760
  });
64529
64761
  } catch (e2) {
64530
64762
  throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n");
64531
64763
  }
64532
64764
  };
64533
- function AsyncInvokeLater(fn3, receiver, arg) {
64534
- this._lateQueue.push(fn3, receiver, arg);
64765
+ function AsyncInvokeLater(fn4, receiver, arg) {
64766
+ this._lateQueue.push(fn4, receiver, arg);
64535
64767
  this._queueTick();
64536
64768
  }
64537
64769
  __name(AsyncInvokeLater, "AsyncInvokeLater");
64538
- function AsyncInvoke(fn3, receiver, arg) {
64539
- this._normalQueue.push(fn3, receiver, arg);
64770
+ function AsyncInvoke(fn4, receiver, arg) {
64771
+ this._normalQueue.push(fn4, receiver, arg);
64540
64772
  this._queueTick();
64541
64773
  }
64542
64774
  __name(AsyncInvoke, "AsyncInvoke");
@@ -64555,13 +64787,13 @@ var bluebird = { exports: {} };
64555
64787
  }
64556
64788
  __name(_drainQueue, "_drainQueue");
64557
64789
  function _drainQueueStep(queue) {
64558
- var fn3 = queue.shift();
64559
- if (typeof fn3 !== "function") {
64560
- fn3._settlePromises();
64790
+ var fn4 = queue.shift();
64791
+ if (typeof fn4 !== "function") {
64792
+ fn4._settlePromises();
64561
64793
  } else {
64562
64794
  var receiver = queue.shift();
64563
64795
  var arg = queue.shift();
64564
- fn3.call(receiver, arg);
64796
+ fn4.call(receiver, arg);
64565
64797
  }
64566
64798
  }
64567
64799
  __name(_drainQueueStep, "_drainQueueStep");
@@ -64677,20 +64909,20 @@ var bluebird = { exports: {} };
64677
64909
  util2.isIdentifier;
64678
64910
  var getGetter;
64679
64911
  function ensureMethod(obj, methodName) {
64680
- var fn3;
64912
+ var fn4;
64681
64913
  if (obj != null)
64682
- fn3 = obj[methodName];
64683
- if (typeof fn3 !== "function") {
64914
+ fn4 = obj[methodName];
64915
+ if (typeof fn4 !== "function") {
64684
64916
  var message = "Object " + util2.classString(obj) + " has no method '" + util2.toString(methodName) + "'";
64685
64917
  throw new Promise2.TypeError(message);
64686
64918
  }
64687
- return fn3;
64919
+ return fn4;
64688
64920
  }
64689
64921
  __name(ensureMethod, "ensureMethod");
64690
64922
  function caller(obj) {
64691
64923
  var methodName = this.pop();
64692
- var fn3 = ensureMethod(obj, methodName);
64693
- return fn3.apply(obj, this);
64924
+ var fn4 = ensureMethod(obj, methodName);
64925
+ return fn4.apply(obj, this);
64694
64926
  }
64695
64927
  __name(caller, "caller");
64696
64928
  Promise2.prototype.call = function(methodName) {
@@ -65061,13 +65293,13 @@ var bluebird = { exports: {} };
65061
65293
  Promise2.prototype._warn = function(message, shouldUseOwnTrace, promise) {
65062
65294
  return warn(message, shouldUseOwnTrace, promise || this);
65063
65295
  };
65064
- Promise2.onPossiblyUnhandledRejection = function(fn3) {
65296
+ Promise2.onPossiblyUnhandledRejection = function(fn4) {
65065
65297
  var context = Promise2._getContext();
65066
- possiblyUnhandledRejection = util2.contextBind(context, fn3);
65298
+ possiblyUnhandledRejection = util2.contextBind(context, fn4);
65067
65299
  };
65068
- Promise2.onUnhandledRejectionHandled = function(fn3) {
65300
+ Promise2.onUnhandledRejectionHandled = function(fn4) {
65069
65301
  var context = Promise2._getContext();
65070
- unhandledRejectionHandled = util2.contextBind(context, fn3);
65302
+ unhandledRejectionHandled = util2.contextBind(context, fn4);
65071
65303
  };
65072
65304
  var disableLongStackTraces = /* @__PURE__ */ __name(function() {
65073
65305
  }, "disableLongStackTraces");
@@ -65106,8 +65338,8 @@ var bluebird = { exports: {} };
65106
65338
  util2.global.onunhandledrejection = null;
65107
65339
  return ret;
65108
65340
  },
65109
- after: function(fn3) {
65110
- util2.global.onunhandledrejection = fn3;
65341
+ after: function(fn4) {
65342
+ util2.global.onunhandledrejection = fn4;
65111
65343
  }
65112
65344
  },
65113
65345
  rejectionhandled: {
@@ -65116,20 +65348,20 @@ var bluebird = { exports: {} };
65116
65348
  util2.global.onrejectionhandled = null;
65117
65349
  return ret;
65118
65350
  },
65119
- after: function(fn3) {
65120
- util2.global.onrejectionhandled = fn3;
65351
+ after: function(fn4) {
65352
+ util2.global.onrejectionhandled = fn4;
65121
65353
  }
65122
65354
  }
65123
65355
  };
65124
65356
  var fireDomEvent = function() {
65125
65357
  var dispatch = /* @__PURE__ */ __name(function(legacy, e2) {
65126
65358
  if (legacy) {
65127
- var fn3;
65359
+ var fn4;
65128
65360
  try {
65129
- fn3 = legacy.before();
65361
+ fn4 = legacy.before();
65130
65362
  return !util2.global.dispatchEvent(e2);
65131
65363
  } finally {
65132
- legacy.after(fn3);
65364
+ legacy.after(fn4);
65133
65365
  }
65134
65366
  } else {
65135
65367
  return !util2.global.dispatchEvent(e2);
@@ -65995,18 +66227,18 @@ var bluebird = { exports: {} };
65995
66227
  return PromiseAll(this);
65996
66228
  }
65997
66229
  __name(promiseAllThis, "promiseAllThis");
65998
- function PromiseMapSeries(promises, fn3) {
65999
- return PromiseReduce(promises, fn3, INTERNAL, INTERNAL);
66230
+ function PromiseMapSeries(promises, fn4) {
66231
+ return PromiseReduce(promises, fn4, INTERNAL, INTERNAL);
66000
66232
  }
66001
66233
  __name(PromiseMapSeries, "PromiseMapSeries");
66002
- Promise2.prototype.each = function(fn3) {
66003
- return PromiseReduce(this, fn3, INTERNAL, 0)._then(promiseAllThis, void 0, void 0, this, void 0);
66234
+ Promise2.prototype.each = function(fn4) {
66235
+ return PromiseReduce(this, fn4, INTERNAL, 0)._then(promiseAllThis, void 0, void 0, this, void 0);
66004
66236
  };
66005
- Promise2.prototype.mapSeries = function(fn3) {
66006
- return PromiseReduce(this, fn3, INTERNAL, INTERNAL);
66237
+ Promise2.prototype.mapSeries = function(fn4) {
66238
+ return PromiseReduce(this, fn4, INTERNAL, INTERNAL);
66007
66239
  };
66008
- Promise2.each = function(promises, fn3) {
66009
- return PromiseReduce(promises, fn3, INTERNAL, 0)._then(promiseAllThis, void 0, void 0, promises, void 0);
66240
+ Promise2.each = function(promises, fn4) {
66241
+ return PromiseReduce(promises, fn4, INTERNAL, 0)._then(promiseAllThis, void 0, void 0, promises, void 0);
66010
66242
  };
66011
66243
  Promise2.mapSeries = PromiseMapSeries;
66012
66244
  };
@@ -66195,11 +66427,11 @@ var bluebird = { exports: {} };
66195
66427
  }, {}], 14: [function(_dereq_2, module3, exports3) {
66196
66428
  module3.exports = function(Promise2, INTERNAL) {
66197
66429
  var PromiseMap = Promise2.map;
66198
- Promise2.prototype.filter = function(fn3, options) {
66199
- return PromiseMap(this, fn3, options, INTERNAL);
66430
+ Promise2.prototype.filter = function(fn4, options) {
66431
+ return PromiseMap(this, fn4, options, INTERNAL);
66200
66432
  };
66201
- Promise2.filter = function(promises, fn3, options) {
66202
- return PromiseMap(promises, fn3, options, INTERNAL);
66433
+ Promise2.filter = function(promises, fn4, options) {
66434
+ return PromiseMap(promises, fn4, options, INTERNAL);
66203
66435
  };
66204
66436
  };
66205
66437
  }, {}], 15: [function(_dereq_2, module3, exports3) {
@@ -66545,11 +66777,11 @@ var bluebird = { exports: {} };
66545
66777
  return ret;
66546
66778
  };
66547
66779
  };
66548
- Promise2.coroutine.addYieldHandler = function(fn3) {
66549
- if (typeof fn3 !== "function") {
66550
- throw new TypeError2("expecting a function but got " + util2.classString(fn3));
66780
+ Promise2.coroutine.addYieldHandler = function(fn4) {
66781
+ if (typeof fn4 !== "function") {
66782
+ throw new TypeError2("expecting a function but got " + util2.classString(fn4));
66551
66783
  }
66552
- yieldHandlers.push(fn3);
66784
+ yieldHandlers.push(fn4);
66553
66785
  };
66554
66786
  Promise2.spawn = function(generatorFunction) {
66555
66787
  debug.deprecated("Promise.spawn()", "Promise.coroutine()");
@@ -66570,16 +66802,16 @@ var bluebird = { exports: {} };
66570
66802
  util2.errorObj;
66571
66803
  Promise2.join = function() {
66572
66804
  var last2 = arguments.length - 1;
66573
- var fn3;
66805
+ var fn4;
66574
66806
  if (last2 > 0 && typeof arguments[last2] === "function") {
66575
- fn3 = arguments[last2];
66807
+ fn4 = arguments[last2];
66576
66808
  var ret;
66577
66809
  }
66578
66810
  var args = [].slice.call(arguments);
66579
- if (fn3)
66811
+ if (fn4)
66580
66812
  args.pop();
66581
66813
  var ret = new PromiseArray(args).promise();
66582
- return fn3 !== void 0 ? ret.spread(fn3) : ret;
66814
+ return fn4 !== void 0 ? ret.spread(fn4) : ret;
66583
66815
  };
66584
66816
  };
66585
66817
  }, { "./util": 36 }], 18: [function(_dereq_2, module3, exports3) {
@@ -66588,11 +66820,11 @@ var bluebird = { exports: {} };
66588
66820
  var tryCatch = util2.tryCatch;
66589
66821
  var errorObj = util2.errorObj;
66590
66822
  var async = Promise2._async;
66591
- function MappingPromiseArray(promises, fn3, limit2, _filter) {
66823
+ function MappingPromiseArray(promises, fn4, limit2, _filter) {
66592
66824
  this.constructor$(promises);
66593
66825
  this._promise._captureStackTrace();
66594
66826
  var context = Promise2._getContext();
66595
- this._callback = util2.contextBind(context, fn3);
66827
+ this._callback = util2.contextBind(context, fn4);
66596
66828
  this._preservedValues = _filter === INTERNAL ? new Array(this.length()) : null;
66597
66829
  this._limit = limit2;
66598
66830
  this._inFlight = 0;
@@ -66710,9 +66942,9 @@ var bluebird = { exports: {} };
66710
66942
  MappingPromiseArray.prototype.preservedValues = function() {
66711
66943
  return this._preservedValues;
66712
66944
  };
66713
- function map3(promises, fn3, options, _filter) {
66714
- if (typeof fn3 !== "function") {
66715
- return apiRejection("expecting a function but got " + util2.classString(fn3));
66945
+ function map3(promises, fn4, options, _filter) {
66946
+ if (typeof fn4 !== "function") {
66947
+ return apiRejection("expecting a function but got " + util2.classString(fn4));
66716
66948
  }
66717
66949
  var limit2 = 0;
66718
66950
  if (options !== void 0) {
@@ -66730,29 +66962,29 @@ var bluebird = { exports: {} };
66730
66962
  }
66731
66963
  }
66732
66964
  limit2 = typeof limit2 === "number" && isFinite(limit2) && limit2 >= 1 ? limit2 : 0;
66733
- return new MappingPromiseArray(promises, fn3, limit2, _filter).promise();
66965
+ return new MappingPromiseArray(promises, fn4, limit2, _filter).promise();
66734
66966
  }
66735
66967
  __name(map3, "map");
66736
- Promise2.prototype.map = function(fn3, options) {
66737
- return map3(this, fn3, options, null);
66968
+ Promise2.prototype.map = function(fn4, options) {
66969
+ return map3(this, fn4, options, null);
66738
66970
  };
66739
- Promise2.map = function(promises, fn3, options, _filter) {
66740
- return map3(promises, fn3, options, _filter);
66971
+ Promise2.map = function(promises, fn4, options, _filter) {
66972
+ return map3(promises, fn4, options, _filter);
66741
66973
  };
66742
66974
  };
66743
66975
  }, { "./util": 36 }], 19: [function(_dereq_2, module3, exports3) {
66744
66976
  module3.exports = function(Promise2, INTERNAL, tryConvertToPromise, apiRejection, debug) {
66745
66977
  var util2 = _dereq_2("./util");
66746
66978
  var tryCatch = util2.tryCatch;
66747
- Promise2.method = function(fn3) {
66748
- if (typeof fn3 !== "function") {
66749
- throw new Promise2.TypeError("expecting a function but got " + util2.classString(fn3));
66979
+ Promise2.method = function(fn4) {
66980
+ if (typeof fn4 !== "function") {
66981
+ throw new Promise2.TypeError("expecting a function but got " + util2.classString(fn4));
66750
66982
  }
66751
66983
  return function() {
66752
66984
  var ret = new Promise2(INTERNAL);
66753
66985
  ret._captureStackTrace();
66754
66986
  ret._pushContext();
66755
- var value = tryCatch(fn3).apply(this, arguments);
66987
+ var value = tryCatch(fn4).apply(this, arguments);
66756
66988
  var promiseCreated = ret._popContext();
66757
66989
  debug.checkForgottenReturns(
66758
66990
  value,
@@ -66764,9 +66996,9 @@ var bluebird = { exports: {} };
66764
66996
  return ret;
66765
66997
  };
66766
66998
  };
66767
- Promise2.attempt = Promise2["try"] = function(fn3) {
66768
- if (typeof fn3 !== "function") {
66769
- return apiRejection("expecting a function but got " + util2.classString(fn3));
66999
+ Promise2.attempt = Promise2["try"] = function(fn4) {
67000
+ if (typeof fn4 !== "function") {
67001
+ return apiRejection("expecting a function but got " + util2.classString(fn4));
66770
67002
  }
66771
67003
  var ret = new Promise2(INTERNAL);
66772
67004
  ret._captureStackTrace();
@@ -66776,9 +67008,9 @@ var bluebird = { exports: {} };
66776
67008
  debug.deprecated("calling Promise.try with more than 1 argument");
66777
67009
  var arg = arguments[1];
66778
67010
  var ctx2 = arguments[2];
66779
- value = util2.isArray(arg) ? tryCatch(fn3).apply(ctx2, arg) : tryCatch(fn3).call(ctx2, arg);
67011
+ value = util2.isArray(arg) ? tryCatch(fn4).apply(ctx2, arg) : tryCatch(fn4).call(ctx2, arg);
66780
67012
  } else {
66781
- value = tryCatch(fn3)();
67013
+ value = tryCatch(fn4)();
66782
67014
  }
66783
67015
  var promiseCreated = ret._popContext();
66784
67016
  debug.checkForgottenReturns(
@@ -67017,7 +67249,7 @@ var bluebird = { exports: {} };
67017
67249
  Promise2.prototype.toString = function() {
67018
67250
  return "[object Promise]";
67019
67251
  };
67020
- Promise2.prototype.caught = Promise2.prototype["catch"] = function(fn3) {
67252
+ Promise2.prototype.caught = Promise2.prototype["catch"] = function(fn4) {
67021
67253
  var len = arguments.length;
67022
67254
  if (len > 1) {
67023
67255
  var catchInstances = new Array(len - 1), j = 0, i;
@@ -67030,13 +67262,13 @@ var bluebird = { exports: {} };
67030
67262
  }
67031
67263
  }
67032
67264
  catchInstances.length = j;
67033
- fn3 = arguments[i];
67034
- if (typeof fn3 !== "function") {
67035
- throw new TypeError2("The last argument to .catch() must be a function, got " + util2.toString(fn3));
67265
+ fn4 = arguments[i];
67266
+ if (typeof fn4 !== "function") {
67267
+ throw new TypeError2("The last argument to .catch() must be a function, got " + util2.toString(fn4));
67036
67268
  }
67037
- return this.then(void 0, catchFilter(catchInstances, fn3, this));
67269
+ return this.then(void 0, catchFilter(catchInstances, fn4, this));
67038
67270
  }
67039
- return this.then(void 0, fn3);
67271
+ return this.then(void 0, fn4);
67040
67272
  };
67041
67273
  Promise2.prototype.reflect = function() {
67042
67274
  return this._then(
@@ -67061,11 +67293,11 @@ var bluebird = { exports: {} };
67061
67293
  var promise = this._then(didFulfill, didReject, void 0, void 0, void 0);
67062
67294
  promise._setIsFinal();
67063
67295
  };
67064
- Promise2.prototype.spread = function(fn3) {
67065
- if (typeof fn3 !== "function") {
67066
- return apiRejection("expecting a function but got " + util2.classString(fn3));
67296
+ Promise2.prototype.spread = function(fn4) {
67297
+ if (typeof fn4 !== "function") {
67298
+ return apiRejection("expecting a function but got " + util2.classString(fn4));
67067
67299
  }
67068
- return this.all()._then(fn3, void 0, void 0, APPLY, void 0);
67300
+ return this.all()._then(fn4, void 0, void 0, APPLY, void 0);
67069
67301
  };
67070
67302
  Promise2.prototype.toJSON = function() {
67071
67303
  var ret = {
@@ -67089,18 +67321,18 @@ var bluebird = { exports: {} };
67089
67321
  }
67090
67322
  return new PromiseArray(this).promise();
67091
67323
  };
67092
- Promise2.prototype.error = function(fn3) {
67093
- return this.caught(util2.originatesFromRejection, fn3);
67324
+ Promise2.prototype.error = function(fn4) {
67325
+ return this.caught(util2.originatesFromRejection, fn4);
67094
67326
  };
67095
67327
  Promise2.getNewLibraryCopy = module3.exports;
67096
67328
  Promise2.is = function(val2) {
67097
67329
  return val2 instanceof Promise2;
67098
67330
  };
67099
- Promise2.fromNode = Promise2.fromCallback = function(fn3) {
67331
+ Promise2.fromNode = Promise2.fromCallback = function(fn4) {
67100
67332
  var ret = new Promise2(INTERNAL);
67101
67333
  ret._captureStackTrace();
67102
67334
  var multiArgs = arguments.length > 1 ? !!Object(arguments[1]).multiArgs : false;
67103
- var result = tryCatch(fn3)(nodebackForPromise(ret, multiArgs));
67335
+ var result = tryCatch(fn4)(nodebackForPromise(ret, multiArgs));
67104
67336
  if (result === errorObj) {
67105
67337
  ret._rejectCallback(result.e, true);
67106
67338
  }
@@ -67128,11 +67360,11 @@ var bluebird = { exports: {} };
67128
67360
  ret._rejectCallback(reason, true);
67129
67361
  return ret;
67130
67362
  };
67131
- Promise2.setScheduler = function(fn3) {
67132
- if (typeof fn3 !== "function") {
67133
- throw new TypeError2("expecting a function but got " + util2.classString(fn3));
67363
+ Promise2.setScheduler = function(fn4) {
67364
+ if (typeof fn4 !== "function") {
67365
+ throw new TypeError2("expecting a function but got " + util2.classString(fn4));
67134
67366
  }
67135
- return async.setScheduler(fn3);
67367
+ return async.setScheduler(fn4);
67136
67368
  };
67137
67369
  Promise2.prototype._then = function(didFulfill, didReject, _2, receiver, internalData) {
67138
67370
  var haveInternalData = internalData !== void 0;
@@ -67849,9 +68081,9 @@ var bluebird = { exports: {} };
67849
68081
  return !noCopyPropsPattern.test(key);
67850
68082
  }
67851
68083
  __name(propsFilter, "propsFilter");
67852
- function isPromisified(fn3) {
68084
+ function isPromisified(fn4) {
67853
68085
  try {
67854
- return fn3.__isPromisified__ === true;
68086
+ return fn4.__isPromisified__ === true;
67855
68087
  } catch (e2) {
67856
68088
  return false;
67857
68089
  }
@@ -67899,13 +68131,13 @@ var bluebird = { exports: {} };
67899
68131
  return str.replace(/([$])/, "\\$");
67900
68132
  }, "escapeIdentRegex");
67901
68133
  var makeNodePromisifiedEval;
67902
- function makeNodePromisifiedClosure(callback2, receiver, _2, fn3, __, multiArgs) {
68134
+ function makeNodePromisifiedClosure(callback2, receiver, _2, fn4, __, multiArgs) {
67903
68135
  var defaultThis = function() {
67904
68136
  return this;
67905
68137
  }();
67906
68138
  var method = callback2;
67907
68139
  if (typeof method === "string") {
67908
- callback2 = fn3;
68140
+ callback2 = fn4;
67909
68141
  }
67910
68142
  function promisified() {
67911
68143
  var _receiver = receiver;
@@ -67914,9 +68146,9 @@ var bluebird = { exports: {} };
67914
68146
  var promise = new Promise2(INTERNAL);
67915
68147
  promise._captureStackTrace();
67916
68148
  var cb = typeof method === "string" && this !== defaultThis ? this[method] : callback2;
67917
- var fn4 = nodebackForPromise(promise, multiArgs);
68149
+ var fn5 = nodebackForPromise(promise, multiArgs);
67918
68150
  try {
67919
- cb.apply(_receiver, withAppended(arguments, fn4));
68151
+ cb.apply(_receiver, withAppended(arguments, fn5));
67920
68152
  } catch (e2) {
67921
68153
  promise._rejectCallback(maybeWrapAsError(e2), true, true);
67922
68154
  }
@@ -67935,17 +68167,17 @@ var bluebird = { exports: {} };
67935
68167
  var methods = promisifiableMethods(obj, suffix, suffixRegexp, filter);
67936
68168
  for (var i = 0, len = methods.length; i < len; i += 2) {
67937
68169
  var key = methods[i];
67938
- var fn3 = methods[i + 1];
68170
+ var fn4 = methods[i + 1];
67939
68171
  var promisifiedKey = key + suffix;
67940
68172
  if (promisifier === makeNodePromisified) {
67941
- obj[promisifiedKey] = makeNodePromisified(key, THIS, key, fn3, suffix, multiArgs);
68173
+ obj[promisifiedKey] = makeNodePromisified(key, THIS, key, fn4, suffix, multiArgs);
67942
68174
  } else {
67943
- var promisified = promisifier(fn3, function() {
68175
+ var promisified = promisifier(fn4, function() {
67944
68176
  return makeNodePromisified(
67945
68177
  key,
67946
68178
  THIS,
67947
68179
  key,
67948
- fn3,
68180
+ fn4,
67949
68181
  suffix,
67950
68182
  multiArgs
67951
68183
  );
@@ -67969,18 +68201,18 @@ var bluebird = { exports: {} };
67969
68201
  );
67970
68202
  }
67971
68203
  __name(promisify, "promisify");
67972
- Promise2.promisify = function(fn3, options) {
67973
- if (typeof fn3 !== "function") {
67974
- throw new TypeError2("expecting a function but got " + util2.classString(fn3));
68204
+ Promise2.promisify = function(fn4, options) {
68205
+ if (typeof fn4 !== "function") {
68206
+ throw new TypeError2("expecting a function but got " + util2.classString(fn4));
67975
68207
  }
67976
- if (isPromisified(fn3)) {
67977
- return fn3;
68208
+ if (isPromisified(fn4)) {
68209
+ return fn4;
67978
68210
  }
67979
68211
  options = Object(options);
67980
68212
  var receiver = options.context === void 0 ? THIS : options.context;
67981
68213
  var multiArgs = !!options.multiArgs;
67982
- var ret = promisify(fn3, receiver, multiArgs);
67983
- util2.copyDescriptors(fn3, ret, propsFilter);
68214
+ var ret = promisify(fn4, receiver, multiArgs);
68215
+ util2.copyDescriptors(fn4, ret, propsFilter);
67984
68216
  return ret;
67985
68217
  };
67986
68218
  Promise2.promisifyAll = function(target, options) {
@@ -68155,10 +68387,10 @@ var bluebird = { exports: {} };
68155
68387
  this[i] = arg;
68156
68388
  this._length = length + 1;
68157
68389
  };
68158
- Queue.prototype.push = function(fn3, receiver, arg) {
68390
+ Queue.prototype.push = function(fn4, receiver, arg) {
68159
68391
  var length = this.length() + 3;
68160
68392
  if (this._willBeOverCapacity(length)) {
68161
- this._pushOne(fn3);
68393
+ this._pushOne(fn4);
68162
68394
  this._pushOne(receiver);
68163
68395
  this._pushOne(arg);
68164
68396
  return;
@@ -68166,7 +68398,7 @@ var bluebird = { exports: {} };
68166
68398
  var j = this._front + length - 3;
68167
68399
  this._checkCapacity(length);
68168
68400
  var wrapMask = this._capacity - 1;
68169
- this[j + 0 & wrapMask] = fn3;
68401
+ this[j + 0 & wrapMask] = fn4;
68170
68402
  this[j + 1 & wrapMask] = receiver;
68171
68403
  this[j + 2 & wrapMask] = arg;
68172
68404
  this._length = length;
@@ -68239,10 +68471,10 @@ var bluebird = { exports: {} };
68239
68471
  module3.exports = function(Promise2, PromiseArray, apiRejection, tryConvertToPromise, INTERNAL, debug) {
68240
68472
  var util2 = _dereq_2("./util");
68241
68473
  var tryCatch = util2.tryCatch;
68242
- function ReductionPromiseArray(promises, fn3, initialValue, _each) {
68474
+ function ReductionPromiseArray(promises, fn4, initialValue, _each) {
68243
68475
  this.constructor$(promises);
68244
68476
  var context = Promise2._getContext();
68245
- this._fn = util2.contextBind(context, fn3);
68477
+ this._fn = util2.contextBind(context, fn4);
68246
68478
  if (initialValue !== void 0) {
68247
68479
  initialValue = Promise2.resolve(initialValue);
68248
68480
  initialValue._attachCancellationCallback(this);
@@ -68336,11 +68568,11 @@ var bluebird = { exports: {} };
68336
68568
  }
68337
68569
  value._then(completed, completed, void 0, value, this);
68338
68570
  };
68339
- Promise2.prototype.reduce = function(fn3, initialValue) {
68340
- return reduce(this, fn3, initialValue, null);
68571
+ Promise2.prototype.reduce = function(fn4, initialValue) {
68572
+ return reduce(this, fn4, initialValue, null);
68341
68573
  };
68342
- Promise2.reduce = function(promises, fn3, initialValue, _each) {
68343
- return reduce(promises, fn3, initialValue, _each);
68574
+ Promise2.reduce = function(promises, fn4, initialValue, _each) {
68575
+ return reduce(promises, fn4, initialValue, _each);
68344
68576
  };
68345
68577
  function completed(valueOrReason, array2) {
68346
68578
  if (this.isFulfilled()) {
@@ -68350,11 +68582,11 @@ var bluebird = { exports: {} };
68350
68582
  }
68351
68583
  }
68352
68584
  __name(completed, "completed");
68353
- function reduce(promises, fn3, initialValue, _each) {
68354
- if (typeof fn3 !== "function") {
68355
- return apiRejection("expecting a function but got " + util2.classString(fn3));
68585
+ function reduce(promises, fn4, initialValue, _each) {
68586
+ if (typeof fn4 !== "function") {
68587
+ return apiRejection("expecting a function but got " + util2.classString(fn4));
68356
68588
  }
68357
- var array2 = new ReductionPromiseArray(promises, fn3, initialValue, _each);
68589
+ var array2 = new ReductionPromiseArray(promises, fn4, initialValue, _each);
68358
68590
  return array2.promise();
68359
68591
  }
68360
68592
  __name(reduce, "reduce");
@@ -68373,13 +68605,13 @@ var bluebird = { exports: {} };
68373
68605
  function gotValue(value) {
68374
68606
  var array2 = this.array;
68375
68607
  var promise = array2._promise;
68376
- var fn3 = tryCatch(array2._fn);
68608
+ var fn4 = tryCatch(array2._fn);
68377
68609
  promise._pushContext();
68378
68610
  var ret;
68379
68611
  if (array2._eachValues !== void 0) {
68380
- ret = fn3.call(promise._boundValue(), value, this.index, this.length);
68612
+ ret = fn4.call(promise._boundValue(), value, this.index, this.length);
68381
68613
  } else {
68382
- ret = fn3.call(
68614
+ ret = fn4.call(
68383
68615
  promise._boundValue(),
68384
68616
  this.accum,
68385
68617
  value,
@@ -68411,15 +68643,15 @@ var bluebird = { exports: {} };
68411
68643
  if (util2.isNode && typeof MutationObserver === "undefined") {
68412
68644
  var GlobalSetImmediate = commonjsGlobal.setImmediate;
68413
68645
  var ProcessNextTick = process.nextTick;
68414
- schedule = util2.isRecentNode ? function(fn3) {
68415
- GlobalSetImmediate.call(commonjsGlobal, fn3);
68416
- } : function(fn3) {
68417
- ProcessNextTick.call(process, fn3);
68646
+ schedule = util2.isRecentNode ? function(fn4) {
68647
+ GlobalSetImmediate.call(commonjsGlobal, fn4);
68648
+ } : function(fn4) {
68649
+ ProcessNextTick.call(process, fn4);
68418
68650
  };
68419
68651
  } else if (typeof NativePromise === "function" && typeof NativePromise.resolve === "function") {
68420
68652
  var nativePromise = NativePromise.resolve();
68421
- schedule = /* @__PURE__ */ __name(function(fn3) {
68422
- nativePromise.then(fn3);
68653
+ schedule = /* @__PURE__ */ __name(function(fn4) {
68654
+ nativePromise.then(fn4);
68423
68655
  }, "schedule");
68424
68656
  } else if (typeof MutationObserver !== "undefined" && !(typeof window !== "undefined" && window.navigator && (window.navigator.standalone || window.cordova)) && "classList" in document.documentElement) {
68425
68657
  schedule = function() {
@@ -68438,22 +68670,22 @@ var bluebird = { exports: {} };
68438
68670
  toggleScheduled = true;
68439
68671
  div22.classList.toggle("foo");
68440
68672
  }, "scheduleToggle");
68441
- return /* @__PURE__ */ __name(function schedule2(fn3) {
68673
+ return /* @__PURE__ */ __name(function schedule2(fn4) {
68442
68674
  var o3 = new MutationObserver(function() {
68443
68675
  o3.disconnect();
68444
- fn3();
68676
+ fn4();
68445
68677
  });
68446
68678
  o3.observe(div2, opts2);
68447
68679
  scheduleToggle();
68448
68680
  }, "schedule");
68449
68681
  }();
68450
68682
  } else if (typeof setImmediate !== "undefined") {
68451
- schedule = /* @__PURE__ */ __name(function(fn3) {
68452
- setImmediate(fn3);
68683
+ schedule = /* @__PURE__ */ __name(function(fn4) {
68684
+ setImmediate(fn4);
68453
68685
  }, "schedule");
68454
68686
  } else if (typeof setTimeout !== "undefined") {
68455
- schedule = /* @__PURE__ */ __name(function(fn3) {
68456
- setTimeout(fn3, 0);
68687
+ schedule = /* @__PURE__ */ __name(function(fn4) {
68688
+ setTimeout(fn4, 0);
68457
68689
  }, "schedule");
68458
68690
  } else {
68459
68691
  schedule = noAsyncScheduler;
@@ -68981,14 +69213,14 @@ var bluebird = { exports: {} };
68981
69213
  Disposer.isDisposer = function(d2) {
68982
69214
  return d2 != null && typeof d2.resource === "function" && typeof d2.tryDispose === "function";
68983
69215
  };
68984
- function FunctionDisposer(fn3, promise, context) {
68985
- this.constructor$(fn3, promise, context);
69216
+ function FunctionDisposer(fn4, promise, context) {
69217
+ this.constructor$(fn4, promise, context);
68986
69218
  }
68987
69219
  __name(FunctionDisposer, "FunctionDisposer");
68988
69220
  inherits2(FunctionDisposer, Disposer);
68989
69221
  FunctionDisposer.prototype.doDispose = function(resource, inspection) {
68990
- var fn3 = this.data();
68991
- return fn3.call(resource, resource, inspection);
69222
+ var fn4 = this.data();
69223
+ return fn4.call(resource, resource, inspection);
68992
69224
  };
68993
69225
  function maybeUnwrapDisposer(value) {
68994
69226
  if (Disposer.isDisposer(value)) {
@@ -69019,9 +69251,9 @@ var bluebird = { exports: {} };
69019
69251
  return apiRejection(
69020
69252
  "you must pass at least 2 arguments to Promise.using"
69021
69253
  );
69022
- var fn3 = arguments[len - 1];
69023
- if (typeof fn3 !== "function") {
69024
- return apiRejection("expecting a function but got " + util2.classString(fn3));
69254
+ var fn4 = arguments[len - 1];
69255
+ if (typeof fn4 !== "function") {
69256
+ return apiRejection("expecting a function but got " + util2.classString(fn4));
69025
69257
  }
69026
69258
  var input;
69027
69259
  var spreadArgs = true;
@@ -69068,8 +69300,8 @@ var bluebird = { exports: {} };
69068
69300
  inspections[i2] = inspection.value();
69069
69301
  }
69070
69302
  promise._pushContext();
69071
- fn3 = tryCatch(fn3);
69072
- var ret = spreadArgs ? fn3.apply(void 0, inspections) : fn3(inspections);
69303
+ fn4 = tryCatch(fn4);
69304
+ var ret = spreadArgs ? fn4.apply(void 0, inspections) : fn4(inspections);
69073
69305
  var promiseCreated = promise._popContext();
69074
69306
  debug.checkForgottenReturns(
69075
69307
  ret,
@@ -69101,9 +69333,9 @@ var bluebird = { exports: {} };
69101
69333
  this._bitField = this._bitField & ~131072;
69102
69334
  this._disposer = void 0;
69103
69335
  };
69104
- Promise2.prototype.disposer = function(fn3) {
69105
- if (typeof fn3 === "function") {
69106
- return new FunctionDisposer(fn3, this, createContext());
69336
+ Promise2.prototype.disposer = function(fn4) {
69337
+ if (typeof fn4 === "function") {
69338
+ return new FunctionDisposer(fn4, this, createContext());
69107
69339
  }
69108
69340
  throw new TypeError2();
69109
69341
  };
@@ -69125,8 +69357,8 @@ var bluebird = { exports: {} };
69125
69357
  }
69126
69358
  }
69127
69359
  __name(tryCatcher, "tryCatcher");
69128
- function tryCatch(fn3) {
69129
- tryCatchTarget = fn3;
69360
+ function tryCatch(fn4) {
69361
+ tryCatchTarget = fn4;
69130
69362
  return tryCatcher;
69131
69363
  }
69132
69364
  __name(tryCatch, "tryCatch");
@@ -69263,13 +69495,13 @@ var bluebird = { exports: {} };
69263
69495
  }
69264
69496
  }();
69265
69497
  var thisAssignmentPattern = /this\s*\.\s*\S+\s*=/;
69266
- function isClass(fn3) {
69498
+ function isClass(fn4) {
69267
69499
  try {
69268
- if (typeof fn3 === "function") {
69269
- var keys5 = es5.names(fn3.prototype);
69500
+ if (typeof fn4 === "function") {
69501
+ var keys5 = es5.names(fn4.prototype);
69270
69502
  var hasMethods = es5.isES5 && keys5.length > 1;
69271
69503
  var hasMethodsOtherThanConstructor = keys5.length > 0 && !(keys5.length === 1 && keys5[0] === "constructor");
69272
- var hasThisAssignmentAndStaticMethods = thisAssignmentPattern.test(fn3 + "") && es5.names(fn3).length > 0;
69504
+ var hasThisAssignmentAndStaticMethods = thisAssignmentPattern.test(fn4 + "") && es5.names(fn4).length > 0;
69273
69505
  if (hasMethods || hasMethodsOtherThanConstructor || hasThisAssignmentAndStaticMethods) {
69274
69506
  return true;
69275
69507
  }
@@ -69441,8 +69673,8 @@ var bluebird = { exports: {} };
69441
69673
  }
69442
69674
  __name(contextBind, "contextBind");
69443
69675
  var ret = {
69444
- setReflectHandler: function(fn3) {
69445
- reflectHandler = fn3;
69676
+ setReflectHandler: function(fn4) {
69677
+ reflectHandler = fn4;
69446
69678
  },
69447
69679
  isClass,
69448
69680
  isIdentifier,
@@ -71602,9 +71834,7 @@ function UploaderInner({
71602
71834
  if (!acceptedFiles.length)
71603
71835
  return;
71604
71836
  setLoading(true);
71605
- if (fileLimit) {
71606
- acceptedFiles = acceptedFiles.slice(0, fileLimit);
71607
- }
71837
+ acceptedFiles = trimFiles(acceptedFiles, fileLimit);
71608
71838
  acceptedFiles.forEach((file) => {
71609
71839
  file.preview = URL.createObjectURL(file);
71610
71840
  file.loading = true;
@@ -71790,9 +72020,9 @@ function UploaderInner({
71790
72020
  `It looks like there wasn't any data in your file. Please add some data and try again`
71791
72021
  );
71792
72022
  }
71793
- const cleanedFileList = [...toKeep, ...fileListToUse].slice(
71794
- 0,
71795
- fileLimit ? fileLimit : void 0
72023
+ const cleanedFileList = trimFiles(
72024
+ [...toKeep, ...fileListToUse],
72025
+ fileLimit
71796
72026
  );
71797
72027
  handleSecondHalfOfUpload({ acceptedFiles, cleanedFileList });
71798
72028
  })
@@ -72040,6 +72270,18 @@ function stripId(ents = []) {
72040
72270
  __name(stripId, "stripId");
72041
72271
  const manualEnterMessage = "Build CSV File";
72042
72272
  const manualEnterSubMessage = "Paste or type data to build a CSV file";
72273
+ function trimFiles(incomingFiles, fileLimit) {
72274
+ if (fileLimit) {
72275
+ if (fileLimit && incomingFiles.length > fileLimit) {
72276
+ window.toastr && window.toastr.warning(
72277
+ `Detected additional files in your upload that we are ignoring. You can only upload ${fileLimit} file${fileLimit > 1 ? "s" : ""} at a time.`
72278
+ );
72279
+ }
72280
+ return incomingFiles.slice(0, fileLimit);
72281
+ }
72282
+ return incomingFiles;
72283
+ }
72284
+ __name(trimFiles, "trimFiles");
72043
72285
  const style$w = "";
72044
72286
  function DNALoader({ style: style2, className }) {
72045
72287
  return /* @__PURE__ */ React__default$1.createElement("div", { className: classNames("dna-loader", className), style: style2 }, /* @__PURE__ */ React__default$1.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React__default$1.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React__default$1.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React__default$1.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React__default$1.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React__default$1.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React__default$1.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React__default$1.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React__default$1.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React__default$1.createElement("div", { className: "nucleobase" }));
@@ -74072,11 +74314,11 @@ var Resizer = (
74072
74314
  }(React$2.PureComponent)
74073
74315
  );
74074
74316
  var src = { exports: {} };
74075
- function memoize(fn3, options) {
74317
+ function memoize(fn4, options) {
74076
74318
  var cache2 = options && options.cache ? options.cache : cacheDefault;
74077
74319
  var serializer = options && options.serializer ? options.serializer : serializerDefault;
74078
74320
  var strategy = options && options.strategy ? options.strategy : strategyDefault;
74079
- return strategy(fn3, {
74321
+ return strategy(fn4, {
74080
74322
  cache: cache2,
74081
74323
  serializer
74082
74324
  });
@@ -74086,40 +74328,40 @@ function isPrimitive(value) {
74086
74328
  return value == null || typeof value === "number" || typeof value === "boolean";
74087
74329
  }
74088
74330
  __name(isPrimitive, "isPrimitive");
74089
- function monadic(fn3, cache2, serializer, arg) {
74331
+ function monadic(fn4, cache2, serializer, arg) {
74090
74332
  var cacheKey = isPrimitive(arg) ? arg : serializer(arg);
74091
74333
  var computedValue = cache2.get(cacheKey);
74092
74334
  if (typeof computedValue === "undefined") {
74093
- computedValue = fn3.call(this, arg);
74335
+ computedValue = fn4.call(this, arg);
74094
74336
  cache2.set(cacheKey, computedValue);
74095
74337
  }
74096
74338
  return computedValue;
74097
74339
  }
74098
74340
  __name(monadic, "monadic");
74099
- function variadic(fn3, cache2, serializer) {
74341
+ function variadic(fn4, cache2, serializer) {
74100
74342
  var args = Array.prototype.slice.call(arguments, 3);
74101
74343
  var cacheKey = serializer(args);
74102
74344
  var computedValue = cache2.get(cacheKey);
74103
74345
  if (typeof computedValue === "undefined") {
74104
- computedValue = fn3.apply(this, args);
74346
+ computedValue = fn4.apply(this, args);
74105
74347
  cache2.set(cacheKey, computedValue);
74106
74348
  }
74107
74349
  return computedValue;
74108
74350
  }
74109
74351
  __name(variadic, "variadic");
74110
- function assemble(fn3, context, strategy, cache2, serialize2) {
74352
+ function assemble(fn4, context, strategy, cache2, serialize2) {
74111
74353
  return strategy.bind(
74112
74354
  context,
74113
- fn3,
74355
+ fn4,
74114
74356
  cache2,
74115
74357
  serialize2
74116
74358
  );
74117
74359
  }
74118
74360
  __name(assemble, "assemble");
74119
- function strategyDefault(fn3, options) {
74120
- var strategy = fn3.length === 1 ? monadic : variadic;
74361
+ function strategyDefault(fn4, options) {
74362
+ var strategy = fn4.length === 1 ? monadic : variadic;
74121
74363
  return assemble(
74122
- fn3,
74364
+ fn4,
74123
74365
  this,
74124
74366
  strategy,
74125
74367
  options.cache.create(),
@@ -74127,10 +74369,10 @@ function strategyDefault(fn3, options) {
74127
74369
  );
74128
74370
  }
74129
74371
  __name(strategyDefault, "strategyDefault");
74130
- function strategyVariadic(fn3, options) {
74372
+ function strategyVariadic(fn4, options) {
74131
74373
  var strategy = variadic;
74132
74374
  return assemble(
74133
- fn3,
74375
+ fn4,
74134
74376
  this,
74135
74377
  strategy,
74136
74378
  options.cache.create(),
@@ -74138,10 +74380,10 @@ function strategyVariadic(fn3, options) {
74138
74380
  );
74139
74381
  }
74140
74382
  __name(strategyVariadic, "strategyVariadic");
74141
- function strategyMonadic(fn3, options) {
74383
+ function strategyMonadic(fn4, options) {
74142
74384
  var strategy = monadic;
74143
74385
  return assemble(
74144
- fn3,
74386
+ fn4,
74145
74387
  this,
74146
74388
  strategy,
74147
74389
  options.cache.create(),
@@ -80686,8 +80928,8 @@ __name(requireEmpty, "requireEmpty");
80686
80928
  }
80687
80929
  }, "datesDiffFilter");
80688
80930
  diffFilter$2.filterName = "dates";
80689
- function createCommonjsModule(fn3, module3) {
80690
- return module3 = { exports: {} }, fn3(module3, module3.exports), module3.exports;
80931
+ function createCommonjsModule(fn4, module3) {
80932
+ return module3 = { exports: {} }, fn4(module3, module3.exports), module3.exports;
80691
80933
  }
80692
80934
  __name(createCommonjsModule, "createCommonjsModule");
80693
80935
  var diffMatchPatch = createCommonjsModule(function(module3) {
@@ -82399,7 +82641,7 @@ __name(requireEmpty, "requireEmpty");
82399
82641
  }, "formatDeltaChildren")
82400
82642
  }, {
82401
82643
  key: "forEachDeltaKey",
82402
- value: /* @__PURE__ */ __name(function forEachDeltaKey(delta, left2, fn3) {
82644
+ value: /* @__PURE__ */ __name(function forEachDeltaKey(delta, left2, fn4) {
82403
82645
  var keys5 = getObjectKeys(delta);
82404
82646
  var arrayKeys = delta._t === "a";
82405
82647
  var moveDestinations = {};
@@ -82441,7 +82683,7 @@ __name(requireEmpty, "requireEmpty");
82441
82683
  }
82442
82684
  var leftKey = arrayKeys ? typeof key === "number" ? key : parseInt(trimUnderscore(key), 10) : key;
82443
82685
  var isLast = index3 === length - 1;
82444
- fn3(key, leftKey, moveDestinations[leftKey], isLast);
82686
+ fn4(key, leftKey, moveDestinations[leftKey], isLast);
82445
82687
  }
82446
82688
  }, "forEachDeltaKey")
82447
82689
  }, {
@@ -82662,16 +82904,16 @@ __name(requireEmpty, "requireEmpty");
82662
82904
  var textContent = _ref.textContent, innerText = _ref.innerText;
82663
82905
  return textContent || innerText;
82664
82906
  }, "getElementText");
82665
- var eachByQuery = /* @__PURE__ */ __name(function eachByQuery2(el, query, fn3) {
82907
+ var eachByQuery = /* @__PURE__ */ __name(function eachByQuery2(el, query, fn4) {
82666
82908
  var elems = el.querySelectorAll(query);
82667
82909
  for (var i = 0, l2 = elems.length; i < l2; i++) {
82668
- fn3(elems[i]);
82910
+ fn4(elems[i]);
82669
82911
  }
82670
82912
  }, "eachByQuery");
82671
- var eachChildren = /* @__PURE__ */ __name(function eachChildren2(_ref2, fn3) {
82913
+ var eachChildren = /* @__PURE__ */ __name(function eachChildren2(_ref2, fn4) {
82672
82914
  var children = _ref2.children;
82673
82915
  for (var i = 0, l2 = children.length; i < l2; i++) {
82674
- fn3(children[i], i);
82916
+ fn4(children[i], i);
82675
82917
  }
82676
82918
  }, "eachChildren");
82677
82919
  eachByQuery(node2, ".jsondiffpatch-arrow", function(_ref3) {
@@ -83108,8 +83350,8 @@ __name(requireEmpty, "requireEmpty");
83108
83350
  return [];
83109
83351
  });
83110
83352
  return arr.map(function(item) {
83111
- var position2 = fns.map(function(fn3) {
83112
- return fn3(item);
83353
+ var position2 = fns.map(function(fn4) {
83354
+ return fn4(item);
83113
83355
  }).indexOf(true);
83114
83356
  if (position2 < 0) {
83115
83357
  position2 = fns.length;
@@ -100341,8 +100583,8 @@ var buffer$2 = {};
100341
100583
  }
100342
100584
  return table2;
100343
100585
  }();
100344
- function defineBigIntMethod(fn3) {
100345
- return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn3;
100586
+ function defineBigIntMethod(fn4) {
100587
+ return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn4;
100346
100588
  }
100347
100589
  __name(defineBigIntMethod, "defineBigIntMethod");
100348
100590
  function BufferBigIntNotDefined() {
@@ -101273,9 +101515,9 @@ function requireBrowser() {
101273
101515
  return browser;
101274
101516
  hasRequiredBrowser = 1;
101275
101517
  browser = deprecate;
101276
- function deprecate(fn3, msg) {
101518
+ function deprecate(fn4, msg) {
101277
101519
  if (config("noDeprecation")) {
101278
- return fn3;
101520
+ return fn4;
101279
101521
  }
101280
101522
  var warned = false;
101281
101523
  function deprecated2() {
@@ -101289,7 +101531,7 @@ function requireBrowser() {
101289
101531
  }
101290
101532
  warned = true;
101291
101533
  }
101292
- return fn3.apply(this, arguments);
101534
+ return fn4.apply(this, arguments);
101293
101535
  }
101294
101536
  __name(deprecated2, "deprecated");
101295
101537
  return deprecated2;
@@ -102284,15 +102526,15 @@ function require_stream_readable() {
102284
102526
  inherits_browserExports(Readable, Stream2);
102285
102527
  var errorOrDestroy = destroyImpl.errorOrDestroy;
102286
102528
  var kProxyEvents = ["error", "close", "destroy", "pause", "resume"];
102287
- function prependListener(emitter, event, fn3) {
102529
+ function prependListener(emitter, event, fn4) {
102288
102530
  if (typeof emitter.prependListener === "function")
102289
- return emitter.prependListener(event, fn3);
102531
+ return emitter.prependListener(event, fn4);
102290
102532
  if (!emitter._events || !emitter._events[event])
102291
- emitter.on(event, fn3);
102533
+ emitter.on(event, fn4);
102292
102534
  else if (Array.isArray(emitter._events[event]))
102293
- emitter._events[event].unshift(fn3);
102535
+ emitter._events[event].unshift(fn4);
102294
102536
  else
102295
- emitter._events[event] = [fn3, emitter._events[event]];
102537
+ emitter._events[event] = [fn4, emitter._events[event]];
102296
102538
  }
102297
102539
  __name(prependListener, "prependListener");
102298
102540
  function ReadableState(options, stream, isDuplex) {
@@ -102808,8 +103050,8 @@ function require_stream_readable() {
102808
103050
  dest.emit("unpipe", this, unpipeInfo);
102809
103051
  return this;
102810
103052
  };
102811
- Readable.prototype.on = function(ev, fn3) {
102812
- var res = Stream2.prototype.on.call(this, ev, fn3);
103053
+ Readable.prototype.on = function(ev, fn4) {
103054
+ var res = Stream2.prototype.on.call(this, ev, fn4);
102813
103055
  var state2 = this._readableState;
102814
103056
  if (ev === "data") {
102815
103057
  state2.readableListening = this.listenerCount("readable") > 0;
@@ -102831,8 +103073,8 @@ function require_stream_readable() {
102831
103073
  return res;
102832
103074
  };
102833
103075
  Readable.prototype.addListener = Readable.prototype.on;
102834
- Readable.prototype.removeListener = function(ev, fn3) {
102835
- var res = Stream2.prototype.removeListener.call(this, ev, fn3);
103076
+ Readable.prototype.removeListener = function(ev, fn4) {
103077
+ var res = Stream2.prototype.removeListener.call(this, ev, fn4);
102836
103078
  if (ev === "readable") {
102837
103079
  process.nextTick(updateReadableListening, this);
102838
103080
  }
@@ -103257,8 +103499,8 @@ function requirePipeline() {
103257
103499
  };
103258
103500
  }
103259
103501
  __name(destroyer, "destroyer");
103260
- function call2(fn3) {
103261
- fn3();
103502
+ function call2(fn4) {
103503
+ fn4();
103262
103504
  }
103263
103505
  __name(call2, "call");
103264
103506
  function pipe(from3, to) {
@@ -104665,9 +104907,9 @@ var slzh = /* @__PURE__ */ __name(function(d2, b3) {
104665
104907
  return b3 + 30 + b2(d2, b3 + 26) + b2(d2, b3 + 28);
104666
104908
  }, "slzh");
104667
104909
  var zh = /* @__PURE__ */ __name(function(d2, b3, z2) {
104668
- var fnl = b2(d2, b3 + 28), fn3 = strFromU8(d2.subarray(b3 + 46, b3 + 46 + fnl), !(b2(d2, b3 + 8) & 2048)), es = b3 + 46 + fnl, bs = b4(d2, b3 + 20);
104910
+ 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);
104669
104911
  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];
104670
- return [b2(d2, b3 + 10), sc, su, fn3, es + b2(d2, b3 + 30) + b2(d2, b3 + 32), off2];
104912
+ return [b2(d2, b3 + 10), sc, su, fn4, es + b2(d2, b3 + 30) + b2(d2, b3 + 32), off2];
104671
104913
  }, "zh");
104672
104914
  var z64e = /* @__PURE__ */ __name(function(d2, b3) {
104673
104915
  for (; b2(d2, b3) != 1; b3 += 4 + b2(d2, b3 + 2))
@@ -104696,18 +104938,18 @@ function unzipSync(data, opts2) {
104696
104938
  }
104697
104939
  var fltr = opts2 && opts2.filter;
104698
104940
  for (var i = 0; i < c2; ++i) {
104699
- var _a2 = zh(data, o2, z2), c_2 = _a2[0], sc = _a2[1], su = _a2[2], fn3 = _a2[3], no = _a2[4], off2 = _a2[5], b3 = slzh(data, off2);
104941
+ 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);
104700
104942
  o2 = no;
104701
104943
  if (!fltr || fltr({
104702
- name: fn3,
104944
+ name: fn4,
104703
104945
  size: sc,
104704
104946
  originalSize: su,
104705
104947
  compression: c_2
104706
104948
  })) {
104707
104949
  if (!c_2)
104708
- files[fn3] = slc(data, b3, b3 + sc);
104950
+ files[fn4] = slc(data, b3, b3 + sc);
104709
104951
  else if (c_2 == 8)
104710
- files[fn3] = inflateSync(data.subarray(b3, b3 + sc), { out: new u8(su) });
104952
+ files[fn4] = inflateSync(data.subarray(b3, b3 + sc), { out: new u8(su) });
104711
104953
  else
104712
104954
  err(14, "unknown compression type " + c_2);
104713
104955
  }
@@ -105584,15 +105826,15 @@ function link(from3, to) {
105584
105826
  __name(link, "link");
105585
105827
  function wrapConversion(toModel, graph) {
105586
105828
  const path2 = [graph[toModel].parent, toModel];
105587
- let fn3 = conversions$1[graph[toModel].parent][toModel];
105829
+ let fn4 = conversions$1[graph[toModel].parent][toModel];
105588
105830
  let cur = graph[toModel].parent;
105589
105831
  while (graph[cur].parent) {
105590
105832
  path2.unshift(graph[cur].parent);
105591
- fn3 = link(conversions$1[graph[cur].parent][cur], fn3);
105833
+ fn4 = link(conversions$1[graph[cur].parent][cur], fn4);
105592
105834
  cur = graph[cur].parent;
105593
105835
  }
105594
- fn3.conversion = path2;
105595
- return fn3;
105836
+ fn4.conversion = path2;
105837
+ return fn4;
105596
105838
  }
105597
105839
  __name(wrapConversion, "wrapConversion");
105598
105840
  var route$1 = /* @__PURE__ */ __name(function(fromModel) {
@@ -105613,7 +105855,7 @@ const conversions = conversions$2;
105613
105855
  const route = route$1;
105614
105856
  const convert$1 = {};
105615
105857
  const models = Object.keys(conversions);
105616
- function wrapRaw(fn3) {
105858
+ function wrapRaw(fn4) {
105617
105859
  const wrappedFn = /* @__PURE__ */ __name(function(...args) {
105618
105860
  const arg0 = args[0];
105619
105861
  if (arg0 === void 0 || arg0 === null) {
@@ -105622,15 +105864,15 @@ function wrapRaw(fn3) {
105622
105864
  if (arg0.length > 1) {
105623
105865
  args = arg0;
105624
105866
  }
105625
- return fn3(args);
105867
+ return fn4(args);
105626
105868
  }, "wrappedFn");
105627
- if ("conversion" in fn3) {
105628
- wrappedFn.conversion = fn3.conversion;
105869
+ if ("conversion" in fn4) {
105870
+ wrappedFn.conversion = fn4.conversion;
105629
105871
  }
105630
105872
  return wrappedFn;
105631
105873
  }
105632
105874
  __name(wrapRaw, "wrapRaw");
105633
- function wrapRounded(fn3) {
105875
+ function wrapRounded(fn4) {
105634
105876
  const wrappedFn = /* @__PURE__ */ __name(function(...args) {
105635
105877
  const arg0 = args[0];
105636
105878
  if (arg0 === void 0 || arg0 === null) {
@@ -105639,7 +105881,7 @@ function wrapRounded(fn3) {
105639
105881
  if (arg0.length > 1) {
105640
105882
  args = arg0;
105641
105883
  }
105642
- const result = fn3(args);
105884
+ const result = fn4(args);
105643
105885
  if (typeof result === "object") {
105644
105886
  for (let len = result.length, i = 0; i < len; i++) {
105645
105887
  result[i] = Math.round(result[i]);
@@ -105647,8 +105889,8 @@ function wrapRounded(fn3) {
105647
105889
  }
105648
105890
  return result;
105649
105891
  }, "wrappedFn");
105650
- if ("conversion" in fn3) {
105651
- wrappedFn.conversion = fn3.conversion;
105892
+ if ("conversion" in fn4) {
105893
+ wrappedFn.conversion = fn4.conversion;
105652
105894
  }
105653
105895
  return wrappedFn;
105654
105896
  }
@@ -105660,9 +105902,9 @@ models.forEach((fromModel) => {
105660
105902
  const routes = route(fromModel);
105661
105903
  const routeModels = Object.keys(routes);
105662
105904
  routeModels.forEach((toModel) => {
105663
- const fn3 = routes[toModel];
105664
- convert$1[fromModel][toModel] = wrapRounded(fn3);
105665
- convert$1[fromModel][toModel].raw = wrapRaw(fn3);
105905
+ const fn4 = routes[toModel];
105906
+ convert$1[fromModel][toModel] = wrapRounded(fn4);
105907
+ convert$1[fromModel][toModel].raw = wrapRaw(fn4);
105666
105908
  });
105667
105909
  });
105668
105910
  var colorConvert = convert$1;
@@ -107660,8 +107902,8 @@ var hasSymbols2 = typeof Symbol === "function" && typeof Symbol("foo") === "symb
107660
107902
  var toStr$1 = Object.prototype.toString;
107661
107903
  var concat = Array.prototype.concat;
107662
107904
  var origDefineProperty = Object.defineProperty;
107663
- var isFunction$1 = /* @__PURE__ */ __name(function(fn3) {
107664
- return typeof fn3 === "function" && toStr$1.call(fn3) === "[object Function]";
107905
+ var isFunction$1 = /* @__PURE__ */ __name(function(fn4) {
107906
+ return typeof fn4 === "function" && toStr$1.call(fn4) === "[object Function]";
107665
107907
  }, "isFunction$1");
107666
107908
  var hasPropertyDescriptors2 = hasPropertyDescriptors_1();
107667
107909
  var supportsDescriptors$2 = origDefineProperty && hasPropertyDescriptors2;
@@ -111150,7 +111392,7 @@ function doAnySpanOrigin(annotations) {
111150
111392
  });
111151
111393
  }
111152
111394
  __name(doAnySpanOrigin, "doAnySpanOrigin");
111153
- const connectToEditor = /* @__PURE__ */ __name((fn3) => {
111395
+ const connectToEditor = /* @__PURE__ */ __name((fn4) => {
111154
111396
  return connect(
111155
111397
  (state2, ownProps, ...rest) => {
111156
111398
  const editor = state2.VectorEditor[ownProps.editorName] || {};
@@ -111159,7 +111401,7 @@ const connectToEditor = /* @__PURE__ */ __name((fn3) => {
111159
111401
  state2.VectorEditor.__allEditorsOptions.uppercaseSequenceMapFont,
111160
111402
  editor.sequenceData.sequence
111161
111403
  );
111162
- return fn3 ? fn3(editor, ownProps, ...rest, state2) : {};
111404
+ return fn4 ? fn4(editor, ownProps, ...rest, state2) : {};
111163
111405
  },
111164
111406
  mapDispatchToActions
111165
111407
  // function mergeProps(propsFromState, propsFromDispatch) {
@@ -111781,7 +112023,7 @@ function memoizeOne(resultFn, isEqual2) {
111781
112023
  return memoized;
111782
112024
  }
111783
112025
  __name(memoizeOne, "memoizeOne");
111784
- var rafSchd = /* @__PURE__ */ __name(function rafSchd2(fn3) {
112026
+ var rafSchd = /* @__PURE__ */ __name(function rafSchd2(fn4) {
111785
112027
  var lastArgs = [];
111786
112028
  var frameId = null;
111787
112029
  var wrapperFn = /* @__PURE__ */ __name(function wrapperFn2() {
@@ -111794,7 +112036,7 @@ var rafSchd = /* @__PURE__ */ __name(function rafSchd2(fn3) {
111794
112036
  }
111795
112037
  frameId = requestAnimationFrame(function() {
111796
112038
  frameId = null;
111797
- fn3.apply(void 0, lastArgs);
112039
+ fn4.apply(void 0, lastArgs);
111798
112040
  });
111799
112041
  }, "wrapperFn");
111800
112042
  wrapperFn.cancel = function() {
@@ -112023,9 +112265,9 @@ const patch = /* @__PURE__ */ __name(function(line, value, otherValue) {
112023
112265
  }, "patch");
112024
112266
  const distance$1 = /* @__PURE__ */ __name((point1, point2) => Math.sqrt(__pow(point2.x - point1.x, 2) + __pow(point2.y - point1.y, 2)), "distance$1");
112025
112267
  const closest$1 = /* @__PURE__ */ __name((target, points) => Math.min(...points.map((point2) => distance$1(target, point2))), "closest$1");
112026
- const apply = /* @__PURE__ */ __name((fn3) => (point2) => ({
112027
- x: fn3(point2.x),
112028
- y: fn3(point2.y)
112268
+ const apply = /* @__PURE__ */ __name((fn4) => (point2) => ({
112269
+ x: fn4(point2.x),
112270
+ y: fn4(point2.y)
112029
112271
  }), "apply");
112030
112272
  var executeClip = /* @__PURE__ */ __name((frame, subject) => {
112031
112273
  const result = getRect({
@@ -114672,11 +114914,11 @@ var getAsyncMarshal = /* @__PURE__ */ __name(() => {
114672
114914
  const [entry] = entries2.splice(index2, 1);
114673
114915
  entry.callback();
114674
114916
  }, "execute");
114675
- const add3 = /* @__PURE__ */ __name((fn3) => {
114917
+ const add3 = /* @__PURE__ */ __name((fn4) => {
114676
114918
  const timerId = setTimeout(() => execute2(timerId));
114677
114919
  const entry = {
114678
114920
  timerId,
114679
- callback: fn3
114921
+ callback: fn4
114680
114922
  };
114681
114923
  entries2.push(entry);
114682
114924
  }, "add");
@@ -114722,8 +114964,8 @@ const isCriticalEqual = /* @__PURE__ */ __name((first, second) => {
114722
114964
  const isDroppableEqual = first.droppable.id === second.droppable.id && first.droppable.type === second.droppable.type;
114723
114965
  return isDraggableEqual && isDroppableEqual;
114724
114966
  }, "isCriticalEqual");
114725
- const withTimings = /* @__PURE__ */ __name((key, fn3) => {
114726
- fn3();
114967
+ const withTimings = /* @__PURE__ */ __name((key, fn4) => {
114968
+ fn4();
114727
114969
  }, "withTimings");
114728
114970
  const getDragStart = /* @__PURE__ */ __name((critical, mode) => ({
114729
114971
  draggableId: critical.draggable.id,
@@ -114755,22 +114997,22 @@ var getPublisher = /* @__PURE__ */ __name((getResponders, announce) => {
114755
114997
  const beforeCapture = /* @__PURE__ */ __name((draggableId, mode) => {
114756
114998
  !!dragging ? invariant$1(false) : void 0;
114757
114999
  withTimings("onBeforeCapture", () => {
114758
- const fn3 = getResponders().onBeforeCapture;
114759
- if (fn3) {
115000
+ const fn4 = getResponders().onBeforeCapture;
115001
+ if (fn4) {
114760
115002
  const before = {
114761
115003
  draggableId,
114762
115004
  mode
114763
115005
  };
114764
- fn3(before);
115006
+ fn4(before);
114765
115007
  }
114766
115008
  });
114767
115009
  }, "beforeCapture");
114768
115010
  const beforeStart = /* @__PURE__ */ __name((critical, mode) => {
114769
115011
  !!dragging ? invariant$1(false) : void 0;
114770
115012
  withTimings("onBeforeDragStart", () => {
114771
- const fn3 = getResponders().onBeforeDragStart;
114772
- if (fn3) {
114773
- fn3(getDragStart(critical, mode));
115013
+ const fn4 = getResponders().onBeforeDragStart;
115014
+ if (fn4) {
115015
+ fn4(getDragStart(critical, mode));
114774
115016
  }
114775
115017
  });
114776
115018
  }, "beforeStart");
@@ -118228,7 +118470,7 @@ __name(PublicDraggable, "PublicDraggable");
118228
118470
  const isEqual = /* @__PURE__ */ __name((base2) => (value) => base2 === value, "isEqual");
118229
118471
  const isScroll = isEqual("scroll");
118230
118472
  const isAuto$1 = isEqual("auto");
118231
- const isEither = /* @__PURE__ */ __name((overflow2, fn3) => fn3(overflow2.overflowX) || fn3(overflow2.overflowY), "isEither");
118473
+ const isEither = /* @__PURE__ */ __name((overflow2, fn4) => fn4(overflow2.overflowX) || fn4(overflow2.overflowY), "isEither");
118232
118474
  const isElementScrollable = /* @__PURE__ */ __name((el) => {
118233
118475
  const style2 = window.getComputedStyle(el);
118234
118476
  const overflow2 = {
@@ -119819,15 +120061,15 @@ function releaseReactionKeyConnection(reactionsForKey) {
119819
120061
  __name(releaseReactionKeyConnection, "releaseReactionKeyConnection");
119820
120062
  var reactionStack = [];
119821
120063
  var isDebugging$1 = false;
119822
- function runAsReaction(reaction, fn3, context, args) {
120064
+ function runAsReaction(reaction, fn4, context, args) {
119823
120065
  if (reaction.unobserved) {
119824
- return Reflect.apply(fn3, context, args);
120066
+ return Reflect.apply(fn4, context, args);
119825
120067
  }
119826
120068
  if (reactionStack.indexOf(reaction) === -1) {
119827
120069
  releaseReaction(reaction);
119828
120070
  try {
119829
120071
  reactionStack.push(reaction);
119830
- return Reflect.apply(fn3, context, args);
120072
+ return Reflect.apply(fn4, context, args);
119831
120073
  } finally {
119832
120074
  reactionStack.pop();
119833
120075
  }
@@ -119873,11 +120115,11 @@ function hasRunningReaction() {
119873
120115
  }
119874
120116
  __name(hasRunningReaction, "hasRunningReaction");
119875
120117
  var IS_REACTION = Symbol("is reaction");
119876
- function observe(fn3, options) {
120118
+ function observe(fn4, options) {
119877
120119
  if (options === void 0)
119878
120120
  options = {};
119879
- var reaction = fn3[IS_REACTION] ? fn3 : /* @__PURE__ */ __name(function reaction2() {
119880
- return runAsReaction(reaction2, fn3, this, arguments);
120121
+ var reaction = fn4[IS_REACTION] ? fn4 : /* @__PURE__ */ __name(function reaction2() {
120122
+ return runAsReaction(reaction2, fn4, this, arguments);
119881
120123
  }, "reaction");
119882
120124
  reaction.scheduler = options.scheduler;
119883
120125
  reaction.debugger = options.debugger;
@@ -120327,13 +120569,13 @@ const scheduler = {
120327
120569
  scheduler.isOn = false;
120328
120570
  }
120329
120571
  };
120330
- function batch(fn3, ctx2, args) {
120572
+ function batch(fn4, ctx2, args) {
120331
120573
  if (scheduler.isOn) {
120332
- return unstable_batchedUpdates(() => fn3.apply(ctx2, args));
120574
+ return unstable_batchedUpdates(() => fn4.apply(ctx2, args));
120333
120575
  }
120334
120576
  try {
120335
120577
  scheduler.on();
120336
- return unstable_batchedUpdates(() => fn3.apply(ctx2, args));
120578
+ return unstable_batchedUpdates(() => fn4.apply(ctx2, args));
120337
120579
  } finally {
120338
120580
  scheduler.flush();
120339
120581
  scheduler.off();
@@ -120341,18 +120583,18 @@ function batch(fn3, ctx2, args) {
120341
120583
  }
120342
120584
  __name(batch, "batch");
120343
120585
  const cache = /* @__PURE__ */ new WeakMap();
120344
- function batchFn(fn3) {
120345
- if (typeof fn3 !== "function") {
120346
- return fn3;
120586
+ function batchFn(fn4) {
120587
+ if (typeof fn4 !== "function") {
120588
+ return fn4;
120347
120589
  }
120348
- let batched = cache.get(fn3);
120590
+ let batched = cache.get(fn4);
120349
120591
  if (!batched) {
120350
- batched = new Proxy(fn3, {
120592
+ batched = new Proxy(fn4, {
120351
120593
  apply(target, thisArg, args) {
120352
120594
  return batch(target, thisArg, args);
120353
120595
  }
120354
120596
  });
120355
- cache.set(fn3, batched);
120597
+ cache.set(fn4, batched);
120356
120598
  }
120357
120599
  return batched;
120358
120600
  }
@@ -121116,8 +121358,23 @@ const withHover = compose$1(
121116
121358
  }, hoveredAnnotationActions)
121117
121359
  ),
121118
121360
  withHandlers({
121119
- onMouseOver: (props) => (e2) => {
121361
+ onMouseOver: (props) => function(e2) {
121120
121362
  var _a2;
121363
+ const target = e2.target;
121364
+ let alreadyHandled = false;
121365
+ let currentElement = target;
121366
+ while (currentElement) {
121367
+ if (currentElement === e2.currentTarget) {
121368
+ break;
121369
+ }
121370
+ if (currentElement.classList.contains("hoverHelper")) {
121371
+ alreadyHandled = true;
121372
+ break;
121373
+ }
121374
+ currentElement = currentElement.parentElement;
121375
+ }
121376
+ if (alreadyHandled)
121377
+ return;
121121
121378
  const { editorName, id: id2, hoveredAnnotationUpdate: hoveredAnnotationUpdate2 } = props;
121122
121379
  const isIdHashmap = typeof id2 === "object";
121123
121380
  const idToPass = isIdHashmap ? Object.keys(id2)[0] : id2;
@@ -121127,7 +121384,6 @@ const withHover = compose$1(
121127
121384
  }
121128
121385
  if (window.__veDragging || window.__veScrolling)
121129
121386
  return;
121130
- e2.stopPropagation();
121131
121387
  hoveredAnnotationUpdate2 && hoveredAnnotationUpdate2(idToPass, { editorName });
121132
121388
  },
121133
121389
  onMouseLeave: (props) => (e2) => {
@@ -125667,7 +125923,7 @@ function showFileDialog({ multiple = false, onSelect }) {
125667
125923
  }
125668
125924
  __name(showFileDialog, "showFileDialog");
125669
125925
  const name = "@teselagen/ove";
125670
- const version = "0.3.24";
125926
+ const version = "0.3.25";
125671
125927
  const main = "./src/index.js";
125672
125928
  const exports$1 = {
125673
125929
  ".": {
@@ -127782,7 +128038,7 @@ var timeoutDuration = function() {
127782
128038
  }
127783
128039
  return 0;
127784
128040
  }();
127785
- function microtaskDebounce(fn3) {
128041
+ function microtaskDebounce(fn4) {
127786
128042
  var called = false;
127787
128043
  return function() {
127788
128044
  if (called) {
@@ -127791,19 +128047,19 @@ function microtaskDebounce(fn3) {
127791
128047
  called = true;
127792
128048
  window.Promise.resolve().then(function() {
127793
128049
  called = false;
127794
- fn3();
128050
+ fn4();
127795
128051
  });
127796
128052
  };
127797
128053
  }
127798
128054
  __name(microtaskDebounce, "microtaskDebounce");
127799
- function taskDebounce(fn3) {
128055
+ function taskDebounce(fn4) {
127800
128056
  var scheduled = false;
127801
128057
  return function() {
127802
128058
  if (!scheduled) {
127803
128059
  scheduled = true;
127804
128060
  setTimeout(function() {
127805
128061
  scheduled = false;
127806
- fn3();
128062
+ fn4();
127807
128063
  }, timeoutDuration);
127808
128064
  }
127809
128065
  };
@@ -127994,7 +128250,7 @@ var createClass = function() {
127994
128250
  return Constructor;
127995
128251
  };
127996
128252
  }();
127997
- var defineProperty5 = /* @__PURE__ */ __name(function(obj, key, value) {
128253
+ var defineProperty4 = /* @__PURE__ */ __name(function(obj, key, value) {
127998
128254
  if (key in obj) {
127999
128255
  Object.defineProperty(obj, key, {
128000
128256
  value,
@@ -128299,11 +128555,11 @@ function runModifiers(modifiers2, data, ends) {
128299
128555
  if (modifier["function"]) {
128300
128556
  console.warn("`modifier.function` is deprecated, use `modifier.fn`!");
128301
128557
  }
128302
- var fn3 = modifier["function"] || modifier.fn;
128303
- if (modifier.enabled && isFunction(fn3)) {
128558
+ var fn4 = modifier["function"] || modifier.fn;
128559
+ if (modifier.enabled && isFunction(fn4)) {
128304
128560
  data.offsets.popper = getClientRect(data.offsets.popper);
128305
128561
  data.offsets.reference = getClientRect(data.offsets.reference);
128306
- data = fn3(data, modifier);
128562
+ data = fn4(data, modifier);
128307
128563
  }
128308
128564
  });
128309
128565
  return data;
@@ -128605,7 +128861,7 @@ function arrow(data, options) {
128605
128861
  var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide;
128606
128862
  sideValue = Math.max(Math.min(popper2[len] - arrowElementSize, sideValue), 0);
128607
128863
  data.arrowElement = arrowElement;
128608
- data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty5(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty5(_data$offsets$arrow, altSide, ""), _data$offsets$arrow);
128864
+ data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty4(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty4(_data$offsets$arrow, altSide, ""), _data$offsets$arrow);
128609
128865
  return data;
128610
128866
  }
128611
128867
  __name(arrow, "arrow");
@@ -128836,7 +129092,7 @@ function preventOverflow(data, options) {
128836
129092
  if (popper2[placement] < boundaries[placement] && !options.escapeWithReference) {
128837
129093
  value = Math.max(popper2[placement], boundaries[placement]);
128838
129094
  }
128839
- return defineProperty5({}, placement, value);
129095
+ return defineProperty4({}, placement, value);
128840
129096
  }, "primary"),
128841
129097
  secondary: /* @__PURE__ */ __name(function secondary(placement) {
128842
129098
  var mainSide = placement === "right" ? "left" : "top";
@@ -128844,7 +129100,7 @@ function preventOverflow(data, options) {
128844
129100
  if (popper2[placement] > boundaries[placement] && !options.escapeWithReference) {
128845
129101
  value = Math.min(popper2[mainSide], boundaries[placement] - (placement === "right" ? popper2.width : popper2.height));
128846
129102
  }
128847
- return defineProperty5({}, mainSide, value);
129103
+ return defineProperty4({}, mainSide, value);
128848
129104
  }, "secondary")
128849
129105
  };
128850
129106
  order2.forEach(function(placement) {
@@ -128865,8 +129121,8 @@ function shift3(data) {
128865
129121
  var side = isVertical ? "left" : "top";
128866
129122
  var measurement = isVertical ? "width" : "height";
128867
129123
  var shiftOffsets = {
128868
- start: defineProperty5({}, side, reference2[side]),
128869
- end: defineProperty5({}, side, reference2[side] + reference2[measurement] - popper2[measurement])
129124
+ start: defineProperty4({}, side, reference2[side]),
129125
+ end: defineProperty4({}, side, reference2[side] + reference2[measurement] - popper2[measurement])
128870
129126
  };
128871
129127
  data.offsets.popper = _extends$1({}, popper2, shiftOffsets[shiftvariation]);
128872
129128
  }
@@ -131632,8 +131888,8 @@ function chain(...fns) {
131632
131888
  return fns[0];
131633
131889
  return function() {
131634
131890
  let result;
131635
- for (const fn3 of fns) {
131636
- result = fn3.apply(this, arguments) || result;
131891
+ for (const fn4 of fns) {
131892
+ result = fn4.apply(this, arguments) || result;
131637
131893
  }
131638
131894
  return result;
131639
131895
  };
@@ -132853,9 +133109,9 @@ const _UncontrolledSliderWithPlusMinusBtns = class _UncontrolledSliderWithPlusMi
132853
133109
  const { min: min2, max: max2 } = this.props;
132854
133110
  const stepSize = this.props.stepSize || (max2 - min2) / 10;
132855
133111
  if (bindOutsideChangeHelper) {
132856
- bindOutsideChangeHelper.triggerChange = (fn3) => {
133112
+ bindOutsideChangeHelper.triggerChange = (fn4) => {
132857
133113
  const valToPass = lodashExports.isNumber(value) && !isNaN(value) ? value : initialValue;
132858
- return fn3({
133114
+ return fn4({
132859
133115
  value: valToPass,
132860
133116
  changeValue: (newVal2) => {
132861
133117
  const newnew = lodashExports.clamp(newVal2, min2, max2);
@@ -134162,438 +134418,18 @@ function combineLabels(labels, numberOfBuckets) {
134162
134418
  }
134163
134419
  __name(combineLabels, "combineLabels");
134164
134420
  const style$f = "";
134165
- const fontWidthToFontSize = 1.75;
134166
- const getTextLength = /* @__PURE__ */ __name((text2) => {
134167
- let len = (text2 || "Unlabeled").length;
134168
- const nonEnInputReg = /[^\x00-\xff]+/g;
134169
- const nonEnStrings = (text2 || "Unlabeled").match(nonEnInputReg) || [];
134170
- nonEnStrings.forEach((str) => len += str.length * 0.5);
134171
- return len;
134172
- }, "getTextLength");
134173
- function Labels({
134174
- labels = [],
134175
- extraSideSpace,
134176
- smartCircViewLabelRender,
134177
- radius: outerRadius,
134178
- editorName,
134179
- noRedux,
134180
- rotationRadians,
134181
- textScalingFactor,
134182
- labelLineIntensity: labelLineIntensity2,
134183
- labelSize: labelSize2 = 8,
134184
- fontHeightMultiplier = 2.4,
134185
- circularViewWidthVsHeightRatio,
134186
- //width of the circular view
134187
- condenseOverflowingXLabels = true
134188
- //set to true to make labels tha
134189
- }) {
134190
- if (!labels.length) {
134191
- return {
134192
- component: null,
134193
- height: 15
134194
- };
134195
- }
134196
- const originalOuterRadius = outerRadius;
134197
- outerRadius += smartCircViewLabelRender ? 10 : 25;
134198
- const radius = outerRadius;
134199
- const outerPointRadius = outerRadius - 20;
134200
- const fontWidth = labelSize2 * (textScalingFactor < 1 ? textScalingFactor : 1);
134201
- const fontHeight = fontWidth * lodashExports.clamp(fontHeightMultiplier, 1.5, 3.5);
134202
- const labelPoints = labels.map(function(label) {
134203
- const {
134204
- annotationCenterAngle: _annotationCenterAngle,
134205
- annotationCenterRadius
134206
- } = label;
134207
- const annotationCenterAngle = _annotationCenterAngle + (rotationRadians || 0);
134208
- return __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, label), {
134209
- width: getTextLength(label.text) * fontWidth,
134210
- //three points define the label:
134211
- innerPoint: __spreadProps(__spreadValues({}, polarToSpecialCartesian$1(
134212
- annotationCenterRadius,
134213
- annotationCenterAngle
134214
- )), {
134215
- radius: annotationCenterRadius,
134216
- angle: annotationCenterAngle
134217
- }),
134218
- truncatedInnerPoint: __spreadProps(__spreadValues({}, polarToSpecialCartesian$1(
134219
- outerPointRadius - 15,
134220
- annotationCenterAngle
134221
- )), {
134222
- radius: outerPointRadius - 15,
134223
- angle: annotationCenterAngle
134224
- }),
134225
- outerPoint: __spreadProps(__spreadValues({}, polarToSpecialCartesian$1(outerPointRadius, annotationCenterAngle)), {
134226
- radius: outerPointRadius,
134227
- angle: annotationCenterAngle
134228
- })
134229
- }), polarToSpecialCartesian$1(radius, annotationCenterAngle)), {
134230
- radius: radius + 10,
134231
- angle: annotationCenterAngle
134232
- });
134233
- }).map(function(label) {
134234
- label.labelAndSublabels = [label];
134235
- label.labelIds = { [label.id]: true };
134236
- return label;
134237
- });
134238
- let maxRadius = 1;
134239
- const groupedLabels = relaxLabelAngles(labelPoints, fontHeight, outerRadius).filter((l2) => !!l2).map((originalLabel) => {
134240
- if (smartCircViewLabelRender) {
134241
- const newR = Math.sqrt(
134242
- Math.pow(
134243
- Math.abs(originalLabel.x) + Math.max(0, originalLabel.text.length * 11 - extraSideSpace / 2),
134244
- 2
134245
- ) + Math.pow(Math.abs(originalLabel.y), 2)
134246
- );
134247
- if (newR > maxRadius)
134248
- maxRadius = newR;
134249
- }
134250
- if (originalLabel.highPriorityLabel) {
134251
- return originalLabel;
134252
- }
134253
- const _highPrioritySublabel = originalLabel.labelAndSublabels.find(
134254
- (l2) => l2.highPriorityLabel
134255
- );
134256
- if (_highPrioritySublabel) {
134257
- const highPrioritySublabel = lodashExports.cloneDeep(_highPrioritySublabel);
134258
- [
134259
- "angle",
134260
- "annotationCenterAngle",
134261
- "annotationCenterRadius",
134262
- "innerPoint",
134263
- "labelAndSublabels",
134264
- "labelIds",
134265
- "outerPoint",
134266
- "radius",
134267
- "truncatedInnerPoint",
134268
- "x",
134269
- "y"
134270
- ].forEach((k2) => {
134271
- highPrioritySublabel[k2] = originalLabel[k2];
134272
- });
134273
- delete originalLabel.labelAndSublabels;
134274
- return highPrioritySublabel;
134275
- }
134276
- return originalLabel;
134277
- });
134278
- window.isLabelGroupOpen = false;
134279
- return {
134280
- component: /* @__PURE__ */ React__default$1.createElement(
134281
- "g",
134282
- {
134283
- key: "veLabels",
134284
- className: "veLabels ve-monospace-font",
134285
- transform: `rotate(-${rotationRadians * 180 / Math.PI})`
134286
- },
134287
- /* @__PURE__ */ React__default$1.createElement(
134288
- DrawGroupedLabels,
134289
- __spreadValues({}, {
134290
- editorName,
134291
- noRedux,
134292
- groupedLabels,
134293
- circularViewWidthVsHeightRatio,
134294
- fontWidth,
134295
- fontHeight,
134296
- condenseOverflowingXLabels,
134297
- outerRadius,
134298
- labelLineIntensity: labelLineIntensity2
134299
- })
134300
- )
134301
- ),
134302
- //we use the <use> tag to position the hovered label group at the top of the stack
134303
- //point events: none is to fix a click bug..
134304
- //http://stackoverflow.com/questions/24078524/svg-click-events-not-firing-bubbling-when-using-use-element
134305
- height: smartCircViewLabelRender ? Math.min(105, maxRadius - originalOuterRadius) : 120
134306
- };
134307
- }
134308
- __name(Labels, "Labels");
134309
- const DrawLabelGroup = withHover(function({
134310
- hovered,
134311
- className,
134312
- label,
134313
- labelAndSublabels,
134314
- fontWidth,
134315
- noRedux,
134316
- fontHeight,
134317
- outerRadius,
134318
- onMouseLeave,
134319
- onMouseOver,
134320
- editorName,
134321
- circularViewWidthVsHeightRatio,
134322
- condenseOverflowingXLabels,
134323
- hoveredId,
134324
- labelLineIntensity: labelLineIntensity2,
134325
- // labelIds,
134326
- multipleLabels
134327
- // isIdHashmap,
134328
- }) {
134329
- let { text: text2 = "Unlabeled" } = label;
134330
- const textLength = getTextLength(text2);
134331
- let groupLabelXStart;
134332
- if (label.labelAndSublabels && label.labelAndSublabels.length > 1) {
134333
- text2 = "+" + (label.labelAndSublabels.length - 1) + "," + text2;
134334
- }
134335
- const labelLength = textLength * fontWidth;
134336
- const maxLabelLength = labelAndSublabels.reduce(function(currentLength, { text: text22 = "Unlabeled" }) {
134337
- const _textLength = getTextLength(text22);
134338
- if (_textLength > currentLength) {
134339
- return _textLength;
134340
- }
134341
- return currentLength;
134342
- }, 0);
134343
- const maxLabelWidth = maxLabelLength * fontWidth;
134344
- const labelOnLeft = label.angle > Math.PI;
134345
- let labelXStart = label.x - (labelOnLeft ? labelLength : 0);
134346
- if (condenseOverflowingXLabels) {
134347
- const distancePastBoundary = Math.abs(label.x + (labelOnLeft ? -labelLength : labelLength)) - (outerRadius + 90) * Math.max(1, circularViewWidthVsHeightRatio);
134348
- if (distancePastBoundary > 0) {
134349
- const numberOfCharsToChop = Math.ceil(distancePastBoundary / fontWidth) + 2;
134350
- text2 = text2.slice(0, -numberOfCharsToChop) + "..";
134351
- groupLabelXStart = labelXStart + (labelOnLeft ? distancePastBoundary : -distancePastBoundary);
134352
- labelXStart += labelOnLeft ? distancePastBoundary : 0;
134353
- }
134354
- }
134355
- const dy = fontHeight;
134356
- const textYStart = label.y + dy / 2;
134357
- let content2;
134358
- const labelClass = ` veLabelText veCircularViewLabelText clickable ${label.color} `;
134359
- if ((multipleLabels || groupLabelXStart !== void 0) && hovered) {
134360
- window.isLabelGroupOpen = true;
134361
- let hoveredLabel;
134362
- if (groupLabelXStart !== void 0) {
134363
- labelXStart = groupLabelXStart;
134364
- }
134365
- labelAndSublabels.some(function(label2) {
134366
- if (label2.id === hoveredId) {
134367
- hoveredLabel = label2;
134368
- return true;
134369
- }
134370
- return false;
134371
- });
134372
- if (!hoveredLabel) {
134373
- hoveredLabel = label;
134374
- }
134375
- let labelYStart = label.y;
134376
- const labelGroupHeight = labelAndSublabels.length * dy;
134377
- const labelGroupBottom = label.y + labelGroupHeight;
134378
- if (labelGroupBottom > outerRadius + 20) {
134379
- labelYStart -= (label.labelAndSublabels.length - 1) * dy;
134380
- }
134381
- const line = LabelLine(
134382
- [
134383
- hoveredLabel.innerPoint,
134384
- // hoveredLabel.labelAndSublabels &&
134385
- // hoveredLabel.labelAndSublabels.length > 0
134386
- // ? hoveredLabel.outerPoint
134387
- // : {},
134388
- label
134389
- ],
134390
- { style: { opacity: 1 }, strokeWidth: 2 }
134391
- );
134392
- content2 = [
134393
- line,
134394
- /* @__PURE__ */ React__default$1.createElement(PutMyParentOnTop, { editorName, key: "gGroup" }, /* @__PURE__ */ React__default$1.createElement("g", { className: className + " topLevelLabelGroup" }, /* @__PURE__ */ React__default$1.createElement(
134395
- "rect",
134396
- {
134397
- onMouseOver: cancelFn,
134398
- x: labelXStart - 4,
134399
- y: labelYStart - dy / 2,
134400
- width: maxLabelWidth + 24,
134401
- height: labelGroupHeight + 4,
134402
- fill: "white",
134403
- stroke: "black"
134404
- }
134405
- ), /* @__PURE__ */ React__default$1.createElement(
134406
- "text",
134407
- {
134408
- x: labelXStart,
134409
- y: labelYStart,
134410
- style: {
134411
- fontSize: fontWidth * fontWidthToFontSize,
134412
- fontStyle: label.fontStyle
134413
- }
134414
- },
134415
- labelAndSublabels.map(function(label2, index2) {
134416
- return /* @__PURE__ */ React__default$1.createElement(
134417
- DrawGroupInnerLabel,
134418
- __spreadValues({
134419
- isSubLabel: true,
134420
- noRedux,
134421
- editorName,
134422
- logHover: true,
134423
- key: "labelItem" + index2,
134424
- className: (label2.className || "") + labelClass + " veDrawGroupInnerLabel",
134425
- id: label2.id
134426
- }, { labelXStart, label: label2, fontWidth, index: index2, dy })
134427
- );
134428
- })
134429
- )))
134430
- ];
134431
- } else {
134432
- content2 = [
134433
- /* @__PURE__ */ React__default$1.createElement("title", { key: "labeltitle" }, label.title || label.text),
134434
- /* @__PURE__ */ React__default$1.createElement(
134435
- "text",
134436
- {
134437
- key: "text",
134438
- x: labelXStart,
134439
- textLength: getTextLength(text2) * fontWidth,
134440
- lengthAdjust: "spacing",
134441
- className: labelClass + label.className + (hovered ? " veAnnotationHovered" : ""),
134442
- y: textYStart,
134443
- style: {
134444
- fontSize: fontWidth * fontWidthToFontSize,
134445
- fontStyle: label.fontStyle,
134446
- fill: label.color || "black"
134447
- // stroke: label.color ? label.color : "black"
134448
- }
134449
- },
134450
- text2
134451
- ),
134452
- LabelLine(
134453
- [
134454
- label.innerPoint,
134455
- // 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
134456
- // ? label.innerPoint
134457
- // : label.truncatedInnerPoint,
134458
- label.outerPoint,
134459
- label
134460
- ],
134461
- hovered ? { style: { opacity: 1 }, strokeWidth: 2 } : { style: { opacity: labelLineIntensity2 } }
134462
- )
134463
- ];
134464
- }
134465
- return /* @__PURE__ */ React__default$1.createElement(
134466
- "g",
134467
- __spreadValues(__spreadValues({}, { onMouseLeave, onMouseOver }), {
134468
- onClick: label.onClick,
134469
- onDoubleClick: label.onDoubleClick || lodashExports.noop,
134470
- onContextMenu: label.onContextMenu || lodashExports.noop
134471
- }),
134472
- content2
134473
- );
134474
- });
134475
- function LabelLine(pointArray, options) {
134476
- let points = "";
134477
- pointArray.forEach(function({ x, y: y2 }) {
134478
- if (!x && x !== 0)
134479
- return;
134480
- points += `${x},${y2} `;
134481
- });
134482
- return /* @__PURE__ */ React__default$1.createElement(React__default$1.Fragment, { key: "labelLine" }, /* @__PURE__ */ React__default$1.createElement(
134483
- "polyline",
134484
- __spreadValues({}, __spreadValues({
134485
- key: "polyline-long",
134486
- points,
134487
- stroke: "black",
134488
- fill: "none",
134489
- strokeWidth: 1,
134490
- className: "veLabelLine"
134491
- }, options))
134492
- ));
134493
- }
134494
- __name(LabelLine, "LabelLine");
134495
- const DrawGroupInnerLabel = withHover(
134496
- ({ className, labelXStart, label, fontWidth, onMouseOver, index: index2, dy }) => {
134497
- return /* @__PURE__ */ React__default$1.createElement(
134498
- "tspan",
134499
- __spreadProps(__spreadValues({
134500
- x: labelXStart,
134501
- textLength: getTextLength(label.text) * fontWidth,
134502
- lengthAdjust: "spacing",
134503
- onClick: label.onClick,
134504
- onDoubleClick: (e2) => {
134505
- e2.stopPropagation();
134506
- label.onDoubleClick && label.onDoubleClick(e2);
134507
- },
134508
- onContextMenu: label.onContextMenu,
134509
- dy: index2 === 0 ? dy / 2 : dy,
134510
- style: {
134511
- fill: label.color ? label.color : "black",
134512
- fontStyle: label.fontStyle
134513
- }
134514
- }, { onMouseOver }), {
134515
- className
134516
- }),
134517
- /* @__PURE__ */ React__default$1.createElement("title", null, label.title),
134518
- label.text
134519
- );
134520
- }
134521
- );
134522
- const DrawGroupedLabels = /* @__PURE__ */ __name(function DrawGroupedLabelsInner({
134523
- groupedLabels,
134524
- circularViewWidthVsHeightRatio,
134525
- fontWidth,
134526
- noRedux,
134527
- fontHeight,
134528
- condenseOverflowingXLabels,
134529
- outerRadius,
134530
- editorName,
134531
- labelLineIntensity: labelLineIntensity2
134532
- }) {
134533
- return groupedLabels.map(function(label, i) {
134534
- const { labelAndSublabels, labelIds } = label;
134535
- const multipleLabels = labelAndSublabels.length > 1;
134536
- return /* @__PURE__ */ React__default$1.createElement(
134537
- DrawLabelGroup,
134538
- __spreadValues({
134539
- key: i,
134540
- id: labelIds
134541
- }, {
134542
- label,
134543
- noRedux,
134544
- passHoveredId: true,
134545
- //needed to get the hoveredId
134546
- isLabelGroup: true,
134547
- className: "DrawLabelGroup",
134548
- multipleLabels,
134549
- labelAndSublabels,
134550
- labelIds,
134551
- circularViewWidthVsHeightRatio,
134552
- fontWidth,
134553
- editorName,
134554
- fontHeight,
134555
- condenseOverflowingXLabels,
134556
- outerRadius,
134557
- labelLineIntensity: labelLineIntensity2
134558
- })
134559
- );
134560
- });
134561
- }, "DrawGroupedLabelsInner");
134562
- function cancelFn(e2) {
134563
- e2.stopPropagation();
134564
- }
134565
- __name(cancelFn, "cancelFn");
134566
- const _PutMyParentOnTop = class _PutMyParentOnTop extends React__default$1.Component {
134567
- componentDidMount() {
134568
- const { editorName } = this.props;
134569
- try {
134570
- const el = document.querySelector(
134571
- `.veEditor.${editorName} .topLevelLabelGroup`
134572
- );
134573
- const parent2 = el.parentElement.parentElement;
134574
- const i = Array.prototype.indexOf.call(parent2.children, el.parentElement);
134575
- parent2.insertBefore(parent2.children[i], null);
134576
- } catch (error) {
134577
- console.warn(
134578
- "OVE-975239 - hit an error trying to re-order labels:",
134579
- error
134580
- );
134581
- }
134582
- }
134583
- render() {
134584
- return this.props.children;
134585
- }
134586
- };
134587
- __name(_PutMyParentOnTop, "PutMyParentOnTop");
134588
- let PutMyParentOnTop = _PutMyParentOnTop;
134589
- var baseGetTag = _baseGetTag, isObjectLike = isObjectLike_1;
134590
- var numberTag = "[object Number]";
134591
- function isNumber(value) {
134592
- return typeof value == "number" || isObjectLike(value) && baseGetTag(value) == numberTag;
134421
+ function getRangeAnglesSpecial() {
134422
+ const _a2 = getRangeAngles.apply(
134423
+ this,
134424
+ arguments
134425
+ ), { endAngle, totalAngle } = _a2, rest = __objRest(_a2, ["endAngle", "totalAngle"]);
134426
+ return __spreadValues({
134427
+ endAngle: endAngle - 1e-5,
134428
+ //we subtract a tiny amount because an angle of 2PI will cause nothing to be drawn!
134429
+ totalAngle: totalAngle - 1e-5
134430
+ }, rest);
134593
134431
  }
134594
- __name(isNumber, "isNumber");
134595
- var isNumber_1 = isNumber;
134596
- const isNumber$1 = /* @__PURE__ */ getDefaultExportFromCjs(isNumber_1);
134432
+ __name(getRangeAnglesSpecial, "getRangeAnglesSpecial");
134597
134433
  function PositionAnnotationOnCircle(_z) {
134598
134434
  var _A = _z, {
134599
134435
  children,
@@ -134624,60 +134460,6 @@ function PositionAnnotationOnCircle(_z) {
134624
134460
  return React__default$1.cloneElement(children, props);
134625
134461
  }
134626
134462
  __name(PositionAnnotationOnCircle, "PositionAnnotationOnCircle");
134627
- function Caret({
134628
- caretPosition: caretPosition2,
134629
- sequenceLength,
134630
- className,
134631
- onClick,
134632
- isSelection,
134633
- innerRadius,
134634
- outerRadius,
134635
- isProtein: isProtein2,
134636
- selectionMessage
134637
- }) {
134638
- const { startAngle, endAngle } = getRangeAngles(
134639
- { start: caretPosition2, end: caretPosition2 },
134640
- sequenceLength || 1
134641
- );
134642
- if (!isNumber$1(startAngle)) {
134643
- console.error("we've got a problem!");
134644
- }
134645
- const { transform: transform3 } = PositionAnnotationOnCircle({
134646
- sAngle: startAngle,
134647
- eAngle: endAngle,
134648
- height: 0
134649
- });
134650
- return /* @__PURE__ */ React__default$1.createElement(
134651
- "g",
134652
- {
134653
- onClick,
134654
- transform: transform3,
134655
- className: className + " veCaret " + draggableClassnames.caret
134656
- },
134657
- /* @__PURE__ */ React__default$1.createElement("title", null, selectionMessage || getSelectionMessage({ caretPosition: caretPosition2, isProtein: isProtein2, sequenceLength })),
134658
- /* @__PURE__ */ React__default$1.createElement(
134659
- "line",
134660
- {
134661
- strokeWidth: "1.5px",
134662
- x1: 0,
134663
- y1: -innerRadius,
134664
- x2: 0,
134665
- y2: -outerRadius
134666
- }
134667
- ),
134668
- isSelection ? /* @__PURE__ */ React__default$1.createElement(
134669
- "polygon",
134670
- {
134671
- className: "vePolygonCaretHandle",
134672
- fill: "black",
134673
- points: `0,${-outerRadius + 2} 5,${-outerRadius - 10} -5,${-outerRadius - 10}`
134674
- }
134675
- ) : null
134676
- );
134677
- }
134678
- __name(Caret, "Caret");
134679
- const Caret$1 = pure(Caret);
134680
- var sector$1 = { exports: {} };
134681
134463
  var path = { exports: {} };
134682
134464
  var geom = { exports: {} };
134683
134465
  (function(module2, exports2) {
@@ -135286,407 +135068,6 @@ var geomExports = geom.exports;
135286
135068
  })(path, path.exports);
135287
135069
  var pathExports = path.exports;
135288
135070
  const Path = /* @__PURE__ */ getDefaultExportFromCjs(pathExports);
135289
- var ops = {};
135290
- (function(exports2) {
135291
- Object.defineProperty(exports2, "__esModule", {
135292
- value: true
135293
- });
135294
- var _slicedToArray2 = function() {
135295
- function sliceIterator(arr, i) {
135296
- var _arr = [];
135297
- var _n = true;
135298
- var _d = false;
135299
- var _e = void 0;
135300
- try {
135301
- for (var _i = arr[Symbol.iterator](), _s2; !(_n = (_s2 = _i.next()).done); _n = true) {
135302
- _arr.push(_s2.value);
135303
- if (i && _arr.length === i)
135304
- break;
135305
- }
135306
- } catch (err2) {
135307
- _d = true;
135308
- _e = err2;
135309
- } finally {
135310
- try {
135311
- if (!_n && _i["return"])
135312
- _i["return"]();
135313
- } finally {
135314
- if (_d)
135315
- throw _e;
135316
- }
135317
- }
135318
- return _arr;
135319
- }
135320
- __name(sliceIterator, "sliceIterator");
135321
- return function(arr, i) {
135322
- if (Array.isArray(arr)) {
135323
- return arr;
135324
- } else if (Symbol.iterator in Object(arr)) {
135325
- return sliceIterator(arr, i);
135326
- } else {
135327
- throw new TypeError("Invalid attempt to destructure non-iterable instance");
135328
- }
135329
- };
135330
- }();
135331
- var sum2 = /* @__PURE__ */ __name(function sum3(xs) {
135332
- return xs.reduce(function(a2, b3) {
135333
- return a2 + b3;
135334
- }, 0);
135335
- }, "sum");
135336
- var min2 = /* @__PURE__ */ __name(function min3(xs) {
135337
- return xs.reduce(function(a2, b3) {
135338
- return Math.min(a2, b3);
135339
- });
135340
- }, "min");
135341
- var max2 = /* @__PURE__ */ __name(function max3(xs) {
135342
- return xs.reduce(function(a2, b3) {
135343
- return Math.max(a2, b3);
135344
- });
135345
- }, "max");
135346
- var sumBy = /* @__PURE__ */ __name(function sumBy2(xs, f2) {
135347
- return xs.reduce(function(a2, b3) {
135348
- return a2 + f2(b3);
135349
- }, 0);
135350
- }, "sumBy");
135351
- var minBy = /* @__PURE__ */ __name(function minBy2(xs, f2) {
135352
- return xs.reduce(function(a2, b3) {
135353
- return Math.min(a2, f2(b3));
135354
- }, Infinity);
135355
- }, "minBy");
135356
- var maxBy = /* @__PURE__ */ __name(function maxBy2(xs, f2) {
135357
- return xs.reduce(function(a2, b3) {
135358
- return Math.max(a2, f2(b3));
135359
- }, -Infinity);
135360
- }, "maxBy");
135361
- var plus = /* @__PURE__ */ __name(function plus2(_ref, _ref3) {
135362
- var _ref2 = _slicedToArray2(_ref, 2);
135363
- var a2 = _ref2[0];
135364
- var b3 = _ref2[1];
135365
- var _ref32 = _slicedToArray2(_ref3, 2);
135366
- var c2 = _ref32[0];
135367
- var d2 = _ref32[1];
135368
- return [a2 + c2, b3 + d2];
135369
- }, "plus");
135370
- var minus = /* @__PURE__ */ __name(function minus2(_ref4, _ref5) {
135371
- var _ref42 = _slicedToArray2(_ref4, 2);
135372
- var a2 = _ref42[0];
135373
- var b3 = _ref42[1];
135374
- var _ref52 = _slicedToArray2(_ref5, 2);
135375
- var c2 = _ref52[0];
135376
- var d2 = _ref52[1];
135377
- return [a2 - c2, b3 - d2];
135378
- }, "minus");
135379
- var times = /* @__PURE__ */ __name(function times2(k2, _ref6) {
135380
- var _ref62 = _slicedToArray2(_ref6, 2);
135381
- var a2 = _ref62[0];
135382
- var b3 = _ref62[1];
135383
- return [k2 * a2, k2 * b3];
135384
- }, "times");
135385
- var length = /* @__PURE__ */ __name(function length2(_ref7) {
135386
- var _ref72 = _slicedToArray2(_ref7, 2);
135387
- var a2 = _ref72[0];
135388
- var b3 = _ref72[1];
135389
- return Math.sqrt(a2 * a2 + b3 * b3);
135390
- }, "length");
135391
- var sumVectors = /* @__PURE__ */ __name(function sumVectors2(xs) {
135392
- return xs.reduce(plus, [0, 0]);
135393
- }, "sumVectors");
135394
- var average = /* @__PURE__ */ __name(function average2(points) {
135395
- return times(1 / points.length, points.reduce(plus));
135396
- }, "average");
135397
- var onCircle = /* @__PURE__ */ __name(function onCircle2(r2, angle2) {
135398
- return times(r2, [Math.sin(angle2), -Math.cos(angle2)]);
135399
- }, "onCircle");
135400
- var enhance = /* @__PURE__ */ __name(function enhance2(compute, curve) {
135401
- var obj = compute || {};
135402
- for (var key in obj) {
135403
- var method = obj[key];
135404
- curve[key] = method(curve.index, curve.item, curve.group);
135405
- }
135406
- return curve;
135407
- }, "enhance");
135408
- var range2 = /* @__PURE__ */ __name(function range3(a2, b3, inclusive) {
135409
- var result = [];
135410
- for (var i = a2; i < b3; i++) {
135411
- result.push(i);
135412
- }
135413
- if (inclusive) {
135414
- result.push(b3);
135415
- }
135416
- return result;
135417
- }, "range");
135418
- var mapObject = /* @__PURE__ */ __name(function mapObject2(obj, f2) {
135419
- var result = [];
135420
- var _iteratorNormalCompletion = true;
135421
- var _didIteratorError = false;
135422
- var _iteratorError = void 0;
135423
- try {
135424
- for (var _iterator3 = Object.keys(obj)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator3.next()).done); _iteratorNormalCompletion = true) {
135425
- var k2 = _step.value;
135426
- var v2 = obj[k2];
135427
- result.push(f2(k2, v2));
135428
- }
135429
- } catch (err2) {
135430
- _didIteratorError = true;
135431
- _iteratorError = err2;
135432
- } finally {
135433
- try {
135434
- if (!_iteratorNormalCompletion && _iterator3["return"]) {
135435
- _iterator3["return"]();
135436
- }
135437
- } finally {
135438
- if (_didIteratorError) {
135439
- throw _iteratorError;
135440
- }
135441
- }
135442
- }
135443
- return result;
135444
- }, "mapObject");
135445
- var pairs = /* @__PURE__ */ __name(function pairs2(obj) {
135446
- return mapObject(obj, function(k2, v2) {
135447
- return [k2, v2];
135448
- });
135449
- }, "pairs");
135450
- var id2 = /* @__PURE__ */ __name(function id3(x) {
135451
- return x;
135452
- }, "id");
135453
- exports2.sum = sum2;
135454
- exports2.min = min2;
135455
- exports2.max = max2;
135456
- exports2.sumBy = sumBy;
135457
- exports2.minBy = minBy;
135458
- exports2.maxBy = maxBy;
135459
- exports2.plus = plus;
135460
- exports2.minus = minus;
135461
- exports2.times = times;
135462
- exports2.id = id2;
135463
- exports2.length = length;
135464
- exports2.sumVectors = sumVectors;
135465
- exports2.average = average;
135466
- exports2.onCircle = onCircle;
135467
- exports2.enhance = enhance;
135468
- exports2.range = range2;
135469
- exports2.mapObject = mapObject;
135470
- exports2.pairs = pairs;
135471
- exports2["default"] = {
135472
- sum: sum2,
135473
- min: min2,
135474
- max: max2,
135475
- sumBy,
135476
- minBy,
135477
- maxBy,
135478
- plus,
135479
- minus,
135480
- times,
135481
- id: id2,
135482
- length,
135483
- sumVectors,
135484
- average,
135485
- onCircle,
135486
- enhance,
135487
- range: range2,
135488
- mapObject,
135489
- pairs
135490
- };
135491
- })(ops);
135492
- (function(module2, exports2) {
135493
- Object.defineProperty(exports2, "__esModule", {
135494
- value: true
135495
- });
135496
- function _interopRequireDefault2(obj) {
135497
- return obj && obj.__esModule ? obj : { "default": obj };
135498
- }
135499
- __name(_interopRequireDefault2, "_interopRequireDefault");
135500
- function _toConsumableArray2(arr) {
135501
- if (Array.isArray(arr)) {
135502
- for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++)
135503
- arr2[i] = arr[i];
135504
- return arr2;
135505
- } else {
135506
- return Array.from(arr);
135507
- }
135508
- }
135509
- __name(_toConsumableArray2, "_toConsumableArray");
135510
- var _path = pathExports;
135511
- var _path2 = _interopRequireDefault2(_path);
135512
- var _ops = ops;
135513
- exports2["default"] = function(_ref) {
135514
- var _Path$moveto$arc$lineto, _Path$moveto$arc, _Path$moveto, _Path;
135515
- var center = _ref.center;
135516
- var r2 = _ref.r;
135517
- var R2 = _ref.R;
135518
- var start2 = _ref.start;
135519
- var end2 = _ref.end;
135520
- var epsilon = 1e-4;
135521
- if (Math.abs(end2 - 2 * Math.PI) < epsilon) {
135522
- end2 = 2 * Math.PI - epsilon;
135523
- }
135524
- var a2 = (0, _ops.plus)(center, (0, _ops.onCircle)(R2, start2));
135525
- var b3 = (0, _ops.plus)(center, (0, _ops.onCircle)(R2, end2));
135526
- var c2 = (0, _ops.plus)(center, (0, _ops.onCircle)(r2, end2));
135527
- var d2 = (0, _ops.plus)(center, (0, _ops.onCircle)(r2, start2));
135528
- var large = end2 - start2 > Math.PI ? 1 : 0;
135529
- 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();
135530
- var midAngle = (start2 + end2) / 2;
135531
- var midRadius = (r2 + R2) / 2;
135532
- var centroid = (0, _ops.plus)(center, (0, _ops.onCircle)(midRadius, midAngle));
135533
- return {
135534
- path: path2,
135535
- centroid
135536
- };
135537
- };
135538
- module2.exports = exports2["default"];
135539
- })(sector$1, sector$1.exports);
135540
- var sectorExports = sector$1.exports;
135541
- const sector = /* @__PURE__ */ getDefaultExportFromCjs(sectorExports);
135542
- function getRangeAnglesSpecial() {
135543
- const _a2 = getRangeAngles.apply(
135544
- this,
135545
- arguments
135546
- ), { endAngle, totalAngle } = _a2, rest = __objRest(_a2, ["endAngle", "totalAngle"]);
135547
- return __spreadValues({
135548
- endAngle: endAngle - 1e-5,
135549
- //we subtract a tiny amount because an angle of 2PI will cause nothing to be drawn!
135550
- totalAngle: totalAngle - 1e-5
135551
- }, rest);
135552
- }
135553
- __name(getRangeAnglesSpecial, "getRangeAnglesSpecial");
135554
- function SelectionLayer({
135555
- isDraggable,
135556
- selectionLayer: selectionLayer2,
135557
- sequenceLength,
135558
- radius,
135559
- hideTitle,
135560
- innerRadius,
135561
- onRightClicked,
135562
- onClick,
135563
- index: index2,
135564
- isProtein: isProtein2
135565
- }) {
135566
- const {
135567
- color: color2,
135568
- start: start2,
135569
- end: end2,
135570
- hideCarets = false,
135571
- style: style2,
135572
- className
135573
- } = selectionLayer2;
135574
- const { startAngle, endAngle, totalAngle } = getRangeAnglesSpecial(
135575
- selectionLayer2,
135576
- sequenceLength
135577
- );
135578
- const section = sector({
135579
- center: [0, 0],
135580
- //the center is always 0,0 for our annotations :) we rotate later!
135581
- r: innerRadius,
135582
- R: radius,
135583
- start: 0,
135584
- end: totalAngle
135585
- });
135586
- const selectionMessage = getSelectionMessage({
135587
- sequenceLength,
135588
- selectionLayer: selectionLayer2,
135589
- isProtein: isProtein2
135590
- });
135591
- const { transform: transform3 } = PositionAnnotationOnCircle({
135592
- sAngle: startAngle,
135593
- eAngle: endAngle,
135594
- height: 0
135595
- });
135596
- return /* @__PURE__ */ React__default$1.createElement(
135597
- "g",
135598
- {
135599
- onContextMenu: (event) => {
135600
- onRightClicked && onRightClicked({
135601
- annotation: selectionLayer2,
135602
- event
135603
- });
135604
- },
135605
- onClick: onClick ? (event) => {
135606
- onClick({
135607
- annotation: selectionLayer2,
135608
- event
135609
- });
135610
- } : void 0,
135611
- key: "veSelectionLayer" + index2,
135612
- className: "veSelectionLayer " + (className || "")
135613
- },
135614
- !hideTitle && /* @__PURE__ */ React__default$1.createElement("title", null, selectionMessage),
135615
- /* @__PURE__ */ React__default$1.createElement(
135616
- "path",
135617
- {
135618
- transform: transform3,
135619
- className: "selectionLayer",
135620
- style: __spreadValues({ opacity: 0.3 }, style2),
135621
- d: section.path.print(),
135622
- fill: color2
135623
- }
135624
- ),
135625
- !hideCarets && /* @__PURE__ */ React__default$1.createElement(
135626
- Caret$1,
135627
- {
135628
- key: "caret1",
135629
- className: className + " selectionLayerCaret " + (isDraggable ? draggableClassnames.selectionStart : ""),
135630
- isSelection: true,
135631
- onClick: onClick ? noop$4 : preventDefaultStopPropagation,
135632
- selectionMessage,
135633
- caretPosition: start2,
135634
- sequenceLength,
135635
- innerRadius,
135636
- outerRadius: radius
135637
- }
135638
- ),
135639
- !hideCarets && /* @__PURE__ */ React__default$1.createElement(
135640
- Caret$1,
135641
- {
135642
- key: "caret2",
135643
- className: className + " selectionLayerCaret " + (isDraggable ? draggableClassnames.selectionEnd : ""),
135644
- isSelection: true,
135645
- onClick: onClick ? noop$4 : preventDefaultStopPropagation,
135646
- selectionMessage,
135647
- caretPosition: end2 + 1,
135648
- sequenceLength,
135649
- innerRadius,
135650
- outerRadius: radius
135651
- }
135652
- )
135653
- );
135654
- }
135655
- __name(SelectionLayer, "SelectionLayer");
135656
- const SelectionLayer$1 = pure(SelectionLayer);
135657
- function Axis({
135658
- radius,
135659
- showAxisNumbers,
135660
- tickMarkHeight = 5,
135661
- textOffset = 15,
135662
- ringThickness = 4,
135663
- zoomLevel
135664
- }) {
135665
- const height2 = (ringThickness + (showAxisNumbers ? textOffset + tickMarkHeight : 0)) / zoomLevel;
135666
- const radiusToUse = showAxisNumbers ? radius + textOffset + tickMarkHeight : radius;
135667
- const component = /* @__PURE__ */ React__default$1.createElement("g", { key: "veAxis", className: "veAxis" }, /* @__PURE__ */ React__default$1.createElement(
135668
- "circle",
135669
- {
135670
- className: "veAxisLine veAxisOuter",
135671
- key: "circleOuter",
135672
- r: radiusToUse + ringThickness,
135673
- style: { fill: "#ffffff00", stroke: "black", strokeWidth: 0.5 }
135674
- }
135675
- ), /* @__PURE__ */ React__default$1.createElement(
135676
- "circle",
135677
- {
135678
- className: "veAxisLine veAxisInner",
135679
- key: "circle",
135680
- r: radiusToUse,
135681
- style: { fill: "#ffffff00", stroke: "black", strokeWidth: 0.5 }
135682
- }
135683
- ));
135684
- return {
135685
- component,
135686
- height: height2
135687
- };
135688
- }
135689
- __name(Axis, "Axis");
135690
135071
  function polarToSpecialCartesian(radius, angleInRadians) {
135691
135072
  return {
135692
135073
  x: radius * Math.cos(angleInRadians - Math.PI / 2),
@@ -135802,30 +135183,6 @@ function drawDirectedPiePiece({
135802
135183
  return path2;
135803
135184
  }
135804
135185
  __name(drawDirectedPiePiece, "drawDirectedPiePiece");
135805
- function CircularPrimer$1({
135806
- color: color2 = "orange",
135807
- radius,
135808
- annotationHeight,
135809
- totalAngle
135810
- }) {
135811
- return /* @__PURE__ */ React__default$1.createElement(
135812
- "path",
135813
- {
135814
- className: "veOrf",
135815
- strokeWidth: ".5",
135816
- stroke: color2,
135817
- fill: color2,
135818
- d: drawDirectedPiePiece({
135819
- radius,
135820
- annotationHeight,
135821
- totalAngle,
135822
- arrowheadLength: 0.4,
135823
- tailThickness: 0.4
135824
- }).print()
135825
- }
135826
- );
135827
- }
135828
- __name(CircularPrimer$1, "CircularPrimer$1");
135829
135186
  function getInternalLabel({
135830
135187
  ellipsizedName,
135831
135188
  id: id2,
@@ -135939,58 +135296,6 @@ function Feature(props) {
135939
135296
  })));
135940
135297
  }
135941
135298
  __name(Feature, "Feature");
135942
- function CircularPrimer(props) {
135943
- const {
135944
- color: color2 = "orange",
135945
- radius,
135946
- arrowheadLength = 0.5,
135947
- annotationHeight,
135948
- totalAngle,
135949
- id: id2,
135950
- labelNeedsFlip,
135951
- ellipsizedName
135952
- } = props;
135953
- const [path2, textPath] = drawDirectedPiePiece({
135954
- radius,
135955
- annotationHeight,
135956
- totalAngle,
135957
- arrowheadLength,
135958
- tailThickness: 1,
135959
- //feature specific
135960
- returnTextPath: true,
135961
- hasLabel: ellipsizedName,
135962
- labelNeedsFlip
135963
- });
135964
- return /* @__PURE__ */ React__default$1.createElement(React__default$1.Fragment, null, getStripedPattern({ color: color2 }), /* @__PURE__ */ React__default$1.createElement(
135965
- "path",
135966
- {
135967
- className: "vePrimer veCircularViewPrimer",
135968
- id: id2,
135969
- strokeWidth: ".5",
135970
- stroke: "black",
135971
- fill: "url(#diagonalHatch)",
135972
- d: path2.print()
135973
- }
135974
- ), getInternalLabel(__spreadProps(__spreadValues({}, props), { colorToUse: color2, textPath })));
135975
- }
135976
- __name(CircularPrimer, "CircularPrimer");
135977
- function Cutsite({
135978
- annotationHeight,
135979
- radius
135980
- // totalAngle,
135981
- // ...rest
135982
- }) {
135983
- return /* @__PURE__ */ React__default$1.createElement(
135984
- "rect",
135985
- {
135986
- className: "veCutsite",
135987
- width: 1,
135988
- y: -radius - 4,
135989
- height: annotationHeight
135990
- }
135991
- );
135992
- }
135993
- __name(Cutsite, "Cutsite");
135994
135299
  function drawAnnotations(props) {
135995
135300
  const {
135996
135301
  readOnly: readOnly2,
@@ -136271,7 +135576,6 @@ function DrawAnnotationInner({
136271
135576
  onMouseLeave,
136272
135577
  onMouseOver
136273
135578
  };
136274
- const title = /* @__PURE__ */ React__default$1.createElement("title", null, titleText);
136275
135579
  function getInner({
136276
135580
  startAngle: startAngle2,
136277
135581
  endAngle: endAngle2,
@@ -136288,11 +135592,12 @@ function DrawAnnotationInner({
136288
135592
  });
136289
135593
  return /* @__PURE__ */ React__default$1.createElement(
136290
135594
  "g",
136291
- __spreadValues({
135595
+ __spreadValues(__spreadProps(__spreadValues({
136292
135596
  transform: transform3,
135597
+ "data-title": noTitle ? null : titleText
135598
+ }, avoidOverlapWith), {
136293
135599
  key: isNotLocation ? "notLocation" : "location--" + annotation.id + "--" + i
136294
- }, sharedProps),
136295
- noTitle ? null : title,
135600
+ }), sharedProps),
136296
135601
  /* @__PURE__ */ React__default$1.createElement(
136297
135602
  Annotation,
136298
135603
  __spreadValues(__spreadValues(__spreadProps(__spreadValues({}, passAnnotation && { annotation }), {
@@ -136325,6 +135630,964 @@ function DrawAnnotationInner({
136325
135630
  }
136326
135631
  __name(DrawAnnotationInner, "DrawAnnotationInner");
136327
135632
  const DrawAnnotation = withHover(DrawAnnotationInner);
135633
+ const avoidOverlapWith = {
135634
+ "data-avoid": ".topLevelLabelGroup",
135635
+ "data-avoid-backup": ".veLabel.veAnnotationHovered"
135636
+ };
135637
+ const fontWidthToFontSize = 1.75;
135638
+ const getTextLength = /* @__PURE__ */ __name((text2) => {
135639
+ let len = (text2 || "Unlabeled").length;
135640
+ const nonEnInputReg = /[^\x00-\xff]+/g;
135641
+ const nonEnStrings = (text2 || "Unlabeled").match(nonEnInputReg) || [];
135642
+ nonEnStrings.forEach((str) => len += str.length * 0.5);
135643
+ return len;
135644
+ }, "getTextLength");
135645
+ function Labels({
135646
+ labels = [],
135647
+ extraSideSpace,
135648
+ smartCircViewLabelRender,
135649
+ radius: outerRadius,
135650
+ editorName,
135651
+ noRedux,
135652
+ rotationRadians,
135653
+ textScalingFactor,
135654
+ labelLineIntensity: labelLineIntensity2,
135655
+ labelSize: labelSize2 = 8,
135656
+ fontHeightMultiplier = 2.4,
135657
+ circularViewWidthVsHeightRatio,
135658
+ //width of the circular view
135659
+ condenseOverflowingXLabels = true
135660
+ //set to true to make labels tha
135661
+ }) {
135662
+ if (!labels.length) {
135663
+ return {
135664
+ component: null,
135665
+ height: 15
135666
+ };
135667
+ }
135668
+ const originalOuterRadius = outerRadius;
135669
+ outerRadius += smartCircViewLabelRender ? 10 : 25;
135670
+ const radius = outerRadius;
135671
+ const outerPointRadius = outerRadius - 20;
135672
+ const fontWidth = labelSize2 * (textScalingFactor < 1 ? textScalingFactor : 1);
135673
+ const fontHeight = fontWidth * lodashExports.clamp(fontHeightMultiplier, 1.5, 3.5);
135674
+ const labelPoints = labels.map(function(label) {
135675
+ const {
135676
+ annotationCenterAngle: _annotationCenterAngle,
135677
+ annotationCenterRadius
135678
+ } = label;
135679
+ const annotationCenterAngle = _annotationCenterAngle + (rotationRadians || 0);
135680
+ return __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, label), {
135681
+ width: getTextLength(label.text) * fontWidth,
135682
+ //three points define the label:
135683
+ innerPoint: __spreadProps(__spreadValues({}, polarToSpecialCartesian$1(
135684
+ annotationCenterRadius,
135685
+ annotationCenterAngle
135686
+ )), {
135687
+ radius: annotationCenterRadius,
135688
+ angle: annotationCenterAngle
135689
+ }),
135690
+ truncatedInnerPoint: __spreadProps(__spreadValues({}, polarToSpecialCartesian$1(
135691
+ outerPointRadius - 15,
135692
+ annotationCenterAngle
135693
+ )), {
135694
+ radius: outerPointRadius - 15,
135695
+ angle: annotationCenterAngle
135696
+ }),
135697
+ outerPoint: __spreadProps(__spreadValues({}, polarToSpecialCartesian$1(outerPointRadius, annotationCenterAngle)), {
135698
+ radius: outerPointRadius,
135699
+ angle: annotationCenterAngle
135700
+ })
135701
+ }), polarToSpecialCartesian$1(radius, annotationCenterAngle)), {
135702
+ radius: radius + 10,
135703
+ angle: annotationCenterAngle
135704
+ });
135705
+ }).map(function(label) {
135706
+ label.labelAndSublabels = [label];
135707
+ label.labelIds = { [label.id]: true };
135708
+ return label;
135709
+ });
135710
+ let maxRadius = 1;
135711
+ const groupedLabels = relaxLabelAngles(labelPoints, fontHeight, outerRadius).filter((l2) => !!l2).map((originalLabel) => {
135712
+ if (smartCircViewLabelRender) {
135713
+ const newR = Math.sqrt(
135714
+ Math.pow(
135715
+ Math.abs(originalLabel.x) + Math.max(0, originalLabel.text.length * 11 - extraSideSpace / 2),
135716
+ 2
135717
+ ) + Math.pow(Math.abs(originalLabel.y), 2)
135718
+ );
135719
+ if (newR > maxRadius)
135720
+ maxRadius = newR;
135721
+ }
135722
+ if (originalLabel.highPriorityLabel) {
135723
+ return originalLabel;
135724
+ }
135725
+ const _highPrioritySublabel = originalLabel.labelAndSublabels.find(
135726
+ (l2) => l2.highPriorityLabel
135727
+ );
135728
+ if (_highPrioritySublabel) {
135729
+ const highPrioritySublabel = lodashExports.cloneDeep(_highPrioritySublabel);
135730
+ [
135731
+ "angle",
135732
+ "annotationCenterAngle",
135733
+ "annotationCenterRadius",
135734
+ "innerPoint",
135735
+ "labelAndSublabels",
135736
+ "labelIds",
135737
+ "outerPoint",
135738
+ "radius",
135739
+ "truncatedInnerPoint",
135740
+ "x",
135741
+ "y"
135742
+ ].forEach((k2) => {
135743
+ highPrioritySublabel[k2] = originalLabel[k2];
135744
+ });
135745
+ delete originalLabel.labelAndSublabels;
135746
+ return highPrioritySublabel;
135747
+ }
135748
+ return originalLabel;
135749
+ });
135750
+ window.isLabelGroupOpen = false;
135751
+ return {
135752
+ component: /* @__PURE__ */ React__default$1.createElement(
135753
+ "g",
135754
+ {
135755
+ key: "veLabels",
135756
+ className: "veLabels ve-monospace-font",
135757
+ transform: `rotate(-${rotationRadians * 180 / Math.PI})`
135758
+ },
135759
+ /* @__PURE__ */ React__default$1.createElement(
135760
+ DrawGroupedLabels,
135761
+ __spreadValues({}, {
135762
+ editorName,
135763
+ noRedux,
135764
+ groupedLabels,
135765
+ circularViewWidthVsHeightRatio,
135766
+ fontWidth,
135767
+ fontHeight,
135768
+ condenseOverflowingXLabels,
135769
+ outerRadius,
135770
+ labelLineIntensity: labelLineIntensity2
135771
+ })
135772
+ )
135773
+ ),
135774
+ //we use the <use> tag to position the hovered label group at the top of the stack
135775
+ //point events: none is to fix a click bug..
135776
+ //http://stackoverflow.com/questions/24078524/svg-click-events-not-firing-bubbling-when-using-use-element
135777
+ height: smartCircViewLabelRender ? Math.min(105, maxRadius - originalOuterRadius) : 120
135778
+ };
135779
+ }
135780
+ __name(Labels, "Labels");
135781
+ const DrawLabelGroup = withHover(function({
135782
+ hovered,
135783
+ className,
135784
+ label,
135785
+ labelAndSublabels,
135786
+ fontWidth,
135787
+ noRedux,
135788
+ fontHeight,
135789
+ outerRadius,
135790
+ onMouseLeave,
135791
+ onMouseOver,
135792
+ editorName,
135793
+ circularViewWidthVsHeightRatio,
135794
+ condenseOverflowingXLabels,
135795
+ hoveredId,
135796
+ labelLineIntensity: labelLineIntensity2,
135797
+ // labelIds,
135798
+ multipleLabels
135799
+ // isIdHashmap,
135800
+ }) {
135801
+ let { text: text2 = "Unlabeled" } = label;
135802
+ const textLength = getTextLength(text2);
135803
+ let groupLabelXStart;
135804
+ if (label.labelAndSublabels && label.labelAndSublabels.length > 1) {
135805
+ text2 = "+" + (label.labelAndSublabels.length - 1) + "," + text2;
135806
+ }
135807
+ const labelLength = textLength * fontWidth;
135808
+ const maxLabelLength = labelAndSublabels.reduce(function(currentLength, { text: text22 = "Unlabeled" }) {
135809
+ const _textLength = getTextLength(text22);
135810
+ if (_textLength > currentLength) {
135811
+ return _textLength;
135812
+ }
135813
+ return currentLength;
135814
+ }, 0);
135815
+ const maxLabelWidth = maxLabelLength * fontWidth;
135816
+ const labelOnLeft = label.angle > Math.PI;
135817
+ let labelXStart = label.x - (labelOnLeft ? labelLength : 0);
135818
+ if (condenseOverflowingXLabels) {
135819
+ const distancePastBoundary = Math.abs(label.x + (labelOnLeft ? -labelLength : labelLength)) - (outerRadius + 90) * Math.max(1, circularViewWidthVsHeightRatio);
135820
+ if (distancePastBoundary > 0) {
135821
+ const numberOfCharsToChop = Math.ceil(distancePastBoundary / fontWidth) + 2;
135822
+ text2 = text2.slice(0, -numberOfCharsToChop) + "..";
135823
+ groupLabelXStart = labelXStart + (labelOnLeft ? distancePastBoundary : -distancePastBoundary);
135824
+ labelXStart += labelOnLeft ? distancePastBoundary : 0;
135825
+ }
135826
+ }
135827
+ const dy = fontHeight;
135828
+ const textYStart = label.y + dy / 2;
135829
+ let content2;
135830
+ const labelClass = ` veLabelText veLabel veCircularViewLabelText clickable ${label.color} `;
135831
+ if ((multipleLabels || groupLabelXStart !== void 0) && hovered) {
135832
+ window.isLabelGroupOpen = true;
135833
+ let hoveredLabel;
135834
+ if (groupLabelXStart !== void 0) {
135835
+ labelXStart = groupLabelXStart;
135836
+ }
135837
+ labelAndSublabels.some(function(label2) {
135838
+ if (label2.id === hoveredId) {
135839
+ hoveredLabel = label2;
135840
+ return true;
135841
+ }
135842
+ return false;
135843
+ });
135844
+ if (!hoveredLabel) {
135845
+ hoveredLabel = label;
135846
+ }
135847
+ let labelYStart = label.y;
135848
+ const labelGroupHeight = labelAndSublabels.length * dy;
135849
+ const labelGroupBottom = label.y + labelGroupHeight;
135850
+ if (labelGroupBottom > outerRadius + 20) {
135851
+ labelYStart -= (label.labelAndSublabels.length - 1) * dy;
135852
+ }
135853
+ const line = LabelLine(
135854
+ [
135855
+ hoveredLabel.innerPoint,
135856
+ // hoveredLabel.labelAndSublabels &&
135857
+ // hoveredLabel.labelAndSublabels.length > 0
135858
+ // ? hoveredLabel.outerPoint
135859
+ // : {},
135860
+ label
135861
+ ],
135862
+ { style: { opacity: 1 }, strokeWidth: 2 }
135863
+ );
135864
+ content2 = [
135865
+ line,
135866
+ /* @__PURE__ */ React__default$1.createElement(PutMyParentOnTop, { editorName, key: "gGroup" }, /* @__PURE__ */ React__default$1.createElement("g", { className: className + " veLabel topLevelLabelGroup" }, /* @__PURE__ */ React__default$1.createElement(
135867
+ "rect",
135868
+ {
135869
+ onMouseOver: cancelFn,
135870
+ x: labelXStart - 4,
135871
+ y: labelYStart - dy / 2,
135872
+ width: maxLabelWidth + 24,
135873
+ height: labelGroupHeight + 4,
135874
+ fill: "white",
135875
+ stroke: "black"
135876
+ }
135877
+ ), /* @__PURE__ */ React__default$1.createElement(
135878
+ "text",
135879
+ {
135880
+ x: labelXStart,
135881
+ y: labelYStart,
135882
+ style: {
135883
+ fontSize: fontWidth * fontWidthToFontSize,
135884
+ fontStyle: label.fontStyle
135885
+ }
135886
+ },
135887
+ labelAndSublabels.map(function(label2, index2) {
135888
+ return /* @__PURE__ */ React__default$1.createElement(
135889
+ DrawGroupInnerLabel,
135890
+ __spreadValues({
135891
+ isSubLabel: true,
135892
+ noRedux,
135893
+ editorName,
135894
+ logHover: true,
135895
+ key: "labelItem" + index2,
135896
+ className: (label2.className || "") + labelClass + " veDrawGroupInnerLabel",
135897
+ id: label2.id
135898
+ }, { labelXStart, label: label2, fontWidth, index: index2, dy })
135899
+ );
135900
+ })
135901
+ )))
135902
+ ];
135903
+ } else {
135904
+ content2 = [
135905
+ // <title key="labeltitle">{label.title || label.text}</title>,
135906
+ /* @__PURE__ */ React__default$1.createElement(
135907
+ "text",
135908
+ __spreadProps(__spreadValues({
135909
+ key: "text",
135910
+ "data-title": label.title || label.text
135911
+ }, avoidOverlapWith), {
135912
+ x: labelXStart,
135913
+ textLength: getTextLength(text2) * fontWidth,
135914
+ lengthAdjust: "spacing",
135915
+ className: labelClass + label.className + (hovered ? " veAnnotationHovered" : ""),
135916
+ y: textYStart,
135917
+ style: {
135918
+ fontSize: fontWidth * fontWidthToFontSize,
135919
+ fontStyle: label.fontStyle,
135920
+ fill: label.color || "black"
135921
+ // stroke: label.color ? label.color : "black"
135922
+ }
135923
+ }),
135924
+ text2
135925
+ ),
135926
+ LabelLine(
135927
+ [
135928
+ label.innerPoint,
135929
+ // 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
135930
+ // ? label.innerPoint
135931
+ // : label.truncatedInnerPoint,
135932
+ label.outerPoint,
135933
+ label
135934
+ ],
135935
+ hovered ? { style: { opacity: 1 }, strokeWidth: 2 } : { style: { opacity: labelLineIntensity2 } }
135936
+ )
135937
+ ];
135938
+ }
135939
+ return /* @__PURE__ */ React__default$1.createElement(
135940
+ "g",
135941
+ __spreadValues(__spreadValues({}, { onMouseLeave, onMouseOver }), {
135942
+ onClick: label.onClick,
135943
+ onDoubleClick: label.onDoubleClick || lodashExports.noop,
135944
+ onContextMenu: label.onContextMenu || lodashExports.noop
135945
+ }),
135946
+ content2
135947
+ );
135948
+ });
135949
+ function LabelLine(pointArray, options) {
135950
+ let points = "";
135951
+ pointArray.forEach(function({ x, y: y2 }) {
135952
+ if (!x && x !== 0)
135953
+ return;
135954
+ points += `${x},${y2} `;
135955
+ });
135956
+ return /* @__PURE__ */ React__default$1.createElement(React__default$1.Fragment, { key: "labelLine" }, /* @__PURE__ */ React__default$1.createElement(
135957
+ "polyline",
135958
+ __spreadValues({}, __spreadValues({
135959
+ key: "polyline-long",
135960
+ points,
135961
+ stroke: "black",
135962
+ fill: "none",
135963
+ strokeWidth: 1,
135964
+ className: "veLabelLine"
135965
+ }, options))
135966
+ ));
135967
+ }
135968
+ __name(LabelLine, "LabelLine");
135969
+ const DrawGroupInnerLabel = withHover(
135970
+ ({ className, labelXStart, label, fontWidth, onMouseOver, index: index2, dy }) => {
135971
+ return /* @__PURE__ */ React__default$1.createElement(
135972
+ "tspan",
135973
+ __spreadProps(__spreadValues(__spreadProps(__spreadValues({
135974
+ "data-title": label.title
135975
+ }, avoidOverlapWith), {
135976
+ x: labelXStart,
135977
+ textLength: getTextLength(label.text) * fontWidth,
135978
+ lengthAdjust: "spacing",
135979
+ onClick: label.onClick,
135980
+ onDoubleClick: (e2) => {
135981
+ e2.stopPropagation();
135982
+ label.onDoubleClick && label.onDoubleClick(e2);
135983
+ },
135984
+ onContextMenu: label.onContextMenu,
135985
+ dy: index2 === 0 ? dy / 2 : dy,
135986
+ style: {
135987
+ fill: label.color ? label.color : "black",
135988
+ fontStyle: label.fontStyle
135989
+ }
135990
+ }), { onMouseOver }), {
135991
+ className
135992
+ }),
135993
+ label.text
135994
+ );
135995
+ }
135996
+ );
135997
+ const DrawGroupedLabels = /* @__PURE__ */ __name(function DrawGroupedLabelsInner({
135998
+ groupedLabels,
135999
+ circularViewWidthVsHeightRatio,
136000
+ fontWidth,
136001
+ noRedux,
136002
+ fontHeight,
136003
+ condenseOverflowingXLabels,
136004
+ outerRadius,
136005
+ editorName,
136006
+ labelLineIntensity: labelLineIntensity2
136007
+ }) {
136008
+ return groupedLabels.map(function(label, i) {
136009
+ const { labelAndSublabels, labelIds } = label;
136010
+ const multipleLabels = labelAndSublabels.length > 1;
136011
+ return /* @__PURE__ */ React__default$1.createElement(
136012
+ DrawLabelGroup,
136013
+ __spreadValues({
136014
+ key: i,
136015
+ id: labelIds
136016
+ }, {
136017
+ label,
136018
+ noRedux,
136019
+ passHoveredId: true,
136020
+ //needed to get the hoveredId
136021
+ isLabelGroup: true,
136022
+ className: "DrawLabelGroup",
136023
+ multipleLabels,
136024
+ labelAndSublabels,
136025
+ labelIds,
136026
+ circularViewWidthVsHeightRatio,
136027
+ fontWidth,
136028
+ editorName,
136029
+ fontHeight,
136030
+ condenseOverflowingXLabels,
136031
+ outerRadius,
136032
+ labelLineIntensity: labelLineIntensity2
136033
+ })
136034
+ );
136035
+ });
136036
+ }, "DrawGroupedLabelsInner");
136037
+ function cancelFn(e2) {
136038
+ e2.stopPropagation();
136039
+ }
136040
+ __name(cancelFn, "cancelFn");
136041
+ const _PutMyParentOnTop = class _PutMyParentOnTop extends React__default$1.Component {
136042
+ componentDidMount() {
136043
+ const { editorName } = this.props;
136044
+ try {
136045
+ const el = document.querySelector(
136046
+ `.veEditor.${editorName} .topLevelLabelGroup`
136047
+ );
136048
+ const parent2 = el.parentElement.parentElement;
136049
+ const i = Array.prototype.indexOf.call(parent2.children, el.parentElement);
136050
+ parent2.insertBefore(parent2.children[i], null);
136051
+ } catch (error) {
136052
+ console.warn(
136053
+ "OVE-975239 - hit an error trying to re-order labels:",
136054
+ error
136055
+ );
136056
+ }
136057
+ }
136058
+ render() {
136059
+ return this.props.children;
136060
+ }
136061
+ };
136062
+ __name(_PutMyParentOnTop, "PutMyParentOnTop");
136063
+ let PutMyParentOnTop = _PutMyParentOnTop;
136064
+ var baseGetTag = _baseGetTag, isObjectLike = isObjectLike_1;
136065
+ var numberTag = "[object Number]";
136066
+ function isNumber(value) {
136067
+ return typeof value == "number" || isObjectLike(value) && baseGetTag(value) == numberTag;
136068
+ }
136069
+ __name(isNumber, "isNumber");
136070
+ var isNumber_1 = isNumber;
136071
+ const isNumber$1 = /* @__PURE__ */ getDefaultExportFromCjs(isNumber_1);
136072
+ function Caret({
136073
+ caretPosition: caretPosition2,
136074
+ sequenceLength,
136075
+ className,
136076
+ onClick,
136077
+ isSelection,
136078
+ innerRadius,
136079
+ outerRadius,
136080
+ isProtein: isProtein2,
136081
+ selectionMessage
136082
+ }) {
136083
+ const { startAngle, endAngle } = getRangeAngles(
136084
+ { start: caretPosition2, end: caretPosition2 },
136085
+ sequenceLength || 1
136086
+ );
136087
+ if (!isNumber$1(startAngle)) {
136088
+ console.error("we've got a problem!");
136089
+ }
136090
+ const { transform: transform3 } = PositionAnnotationOnCircle({
136091
+ sAngle: startAngle,
136092
+ eAngle: endAngle,
136093
+ height: 0
136094
+ });
136095
+ return /* @__PURE__ */ React__default$1.createElement(
136096
+ "g",
136097
+ {
136098
+ onClick,
136099
+ transform: transform3,
136100
+ className: className + " veCaret " + draggableClassnames.caret
136101
+ },
136102
+ /* @__PURE__ */ React__default$1.createElement("title", null, selectionMessage || getSelectionMessage({ caretPosition: caretPosition2, isProtein: isProtein2, sequenceLength })),
136103
+ /* @__PURE__ */ React__default$1.createElement(
136104
+ "line",
136105
+ {
136106
+ strokeWidth: "1.5px",
136107
+ x1: 0,
136108
+ y1: -innerRadius,
136109
+ x2: 0,
136110
+ y2: -outerRadius
136111
+ }
136112
+ ),
136113
+ isSelection ? /* @__PURE__ */ React__default$1.createElement(
136114
+ "polygon",
136115
+ {
136116
+ className: "vePolygonCaretHandle",
136117
+ fill: "black",
136118
+ points: `0,${-outerRadius + 2} 5,${-outerRadius - 10} -5,${-outerRadius - 10}`
136119
+ }
136120
+ ) : null
136121
+ );
136122
+ }
136123
+ __name(Caret, "Caret");
136124
+ const Caret$1 = pure(Caret);
136125
+ var sector$1 = { exports: {} };
136126
+ var ops = {};
136127
+ (function(exports2) {
136128
+ Object.defineProperty(exports2, "__esModule", {
136129
+ value: true
136130
+ });
136131
+ var _slicedToArray2 = function() {
136132
+ function sliceIterator(arr, i) {
136133
+ var _arr = [];
136134
+ var _n = true;
136135
+ var _d = false;
136136
+ var _e = void 0;
136137
+ try {
136138
+ for (var _i = arr[Symbol.iterator](), _s2; !(_n = (_s2 = _i.next()).done); _n = true) {
136139
+ _arr.push(_s2.value);
136140
+ if (i && _arr.length === i)
136141
+ break;
136142
+ }
136143
+ } catch (err2) {
136144
+ _d = true;
136145
+ _e = err2;
136146
+ } finally {
136147
+ try {
136148
+ if (!_n && _i["return"])
136149
+ _i["return"]();
136150
+ } finally {
136151
+ if (_d)
136152
+ throw _e;
136153
+ }
136154
+ }
136155
+ return _arr;
136156
+ }
136157
+ __name(sliceIterator, "sliceIterator");
136158
+ return function(arr, i) {
136159
+ if (Array.isArray(arr)) {
136160
+ return arr;
136161
+ } else if (Symbol.iterator in Object(arr)) {
136162
+ return sliceIterator(arr, i);
136163
+ } else {
136164
+ throw new TypeError("Invalid attempt to destructure non-iterable instance");
136165
+ }
136166
+ };
136167
+ }();
136168
+ var sum2 = /* @__PURE__ */ __name(function sum3(xs) {
136169
+ return xs.reduce(function(a2, b3) {
136170
+ return a2 + b3;
136171
+ }, 0);
136172
+ }, "sum");
136173
+ var min2 = /* @__PURE__ */ __name(function min3(xs) {
136174
+ return xs.reduce(function(a2, b3) {
136175
+ return Math.min(a2, b3);
136176
+ });
136177
+ }, "min");
136178
+ var max2 = /* @__PURE__ */ __name(function max3(xs) {
136179
+ return xs.reduce(function(a2, b3) {
136180
+ return Math.max(a2, b3);
136181
+ });
136182
+ }, "max");
136183
+ var sumBy = /* @__PURE__ */ __name(function sumBy2(xs, f2) {
136184
+ return xs.reduce(function(a2, b3) {
136185
+ return a2 + f2(b3);
136186
+ }, 0);
136187
+ }, "sumBy");
136188
+ var minBy = /* @__PURE__ */ __name(function minBy2(xs, f2) {
136189
+ return xs.reduce(function(a2, b3) {
136190
+ return Math.min(a2, f2(b3));
136191
+ }, Infinity);
136192
+ }, "minBy");
136193
+ var maxBy = /* @__PURE__ */ __name(function maxBy2(xs, f2) {
136194
+ return xs.reduce(function(a2, b3) {
136195
+ return Math.max(a2, f2(b3));
136196
+ }, -Infinity);
136197
+ }, "maxBy");
136198
+ var plus = /* @__PURE__ */ __name(function plus2(_ref, _ref3) {
136199
+ var _ref2 = _slicedToArray2(_ref, 2);
136200
+ var a2 = _ref2[0];
136201
+ var b3 = _ref2[1];
136202
+ var _ref32 = _slicedToArray2(_ref3, 2);
136203
+ var c2 = _ref32[0];
136204
+ var d2 = _ref32[1];
136205
+ return [a2 + c2, b3 + d2];
136206
+ }, "plus");
136207
+ var minus = /* @__PURE__ */ __name(function minus2(_ref4, _ref5) {
136208
+ var _ref42 = _slicedToArray2(_ref4, 2);
136209
+ var a2 = _ref42[0];
136210
+ var b3 = _ref42[1];
136211
+ var _ref52 = _slicedToArray2(_ref5, 2);
136212
+ var c2 = _ref52[0];
136213
+ var d2 = _ref52[1];
136214
+ return [a2 - c2, b3 - d2];
136215
+ }, "minus");
136216
+ var times = /* @__PURE__ */ __name(function times2(k2, _ref6) {
136217
+ var _ref62 = _slicedToArray2(_ref6, 2);
136218
+ var a2 = _ref62[0];
136219
+ var b3 = _ref62[1];
136220
+ return [k2 * a2, k2 * b3];
136221
+ }, "times");
136222
+ var length = /* @__PURE__ */ __name(function length2(_ref7) {
136223
+ var _ref72 = _slicedToArray2(_ref7, 2);
136224
+ var a2 = _ref72[0];
136225
+ var b3 = _ref72[1];
136226
+ return Math.sqrt(a2 * a2 + b3 * b3);
136227
+ }, "length");
136228
+ var sumVectors = /* @__PURE__ */ __name(function sumVectors2(xs) {
136229
+ return xs.reduce(plus, [0, 0]);
136230
+ }, "sumVectors");
136231
+ var average = /* @__PURE__ */ __name(function average2(points) {
136232
+ return times(1 / points.length, points.reduce(plus));
136233
+ }, "average");
136234
+ var onCircle = /* @__PURE__ */ __name(function onCircle2(r2, angle2) {
136235
+ return times(r2, [Math.sin(angle2), -Math.cos(angle2)]);
136236
+ }, "onCircle");
136237
+ var enhance = /* @__PURE__ */ __name(function enhance2(compute, curve) {
136238
+ var obj = compute || {};
136239
+ for (var key in obj) {
136240
+ var method = obj[key];
136241
+ curve[key] = method(curve.index, curve.item, curve.group);
136242
+ }
136243
+ return curve;
136244
+ }, "enhance");
136245
+ var range2 = /* @__PURE__ */ __name(function range3(a2, b3, inclusive) {
136246
+ var result = [];
136247
+ for (var i = a2; i < b3; i++) {
136248
+ result.push(i);
136249
+ }
136250
+ if (inclusive) {
136251
+ result.push(b3);
136252
+ }
136253
+ return result;
136254
+ }, "range");
136255
+ var mapObject = /* @__PURE__ */ __name(function mapObject2(obj, f2) {
136256
+ var result = [];
136257
+ var _iteratorNormalCompletion = true;
136258
+ var _didIteratorError = false;
136259
+ var _iteratorError = void 0;
136260
+ try {
136261
+ for (var _iterator3 = Object.keys(obj)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator3.next()).done); _iteratorNormalCompletion = true) {
136262
+ var k2 = _step.value;
136263
+ var v2 = obj[k2];
136264
+ result.push(f2(k2, v2));
136265
+ }
136266
+ } catch (err2) {
136267
+ _didIteratorError = true;
136268
+ _iteratorError = err2;
136269
+ } finally {
136270
+ try {
136271
+ if (!_iteratorNormalCompletion && _iterator3["return"]) {
136272
+ _iterator3["return"]();
136273
+ }
136274
+ } finally {
136275
+ if (_didIteratorError) {
136276
+ throw _iteratorError;
136277
+ }
136278
+ }
136279
+ }
136280
+ return result;
136281
+ }, "mapObject");
136282
+ var pairs = /* @__PURE__ */ __name(function pairs2(obj) {
136283
+ return mapObject(obj, function(k2, v2) {
136284
+ return [k2, v2];
136285
+ });
136286
+ }, "pairs");
136287
+ var id2 = /* @__PURE__ */ __name(function id3(x) {
136288
+ return x;
136289
+ }, "id");
136290
+ exports2.sum = sum2;
136291
+ exports2.min = min2;
136292
+ exports2.max = max2;
136293
+ exports2.sumBy = sumBy;
136294
+ exports2.minBy = minBy;
136295
+ exports2.maxBy = maxBy;
136296
+ exports2.plus = plus;
136297
+ exports2.minus = minus;
136298
+ exports2.times = times;
136299
+ exports2.id = id2;
136300
+ exports2.length = length;
136301
+ exports2.sumVectors = sumVectors;
136302
+ exports2.average = average;
136303
+ exports2.onCircle = onCircle;
136304
+ exports2.enhance = enhance;
136305
+ exports2.range = range2;
136306
+ exports2.mapObject = mapObject;
136307
+ exports2.pairs = pairs;
136308
+ exports2["default"] = {
136309
+ sum: sum2,
136310
+ min: min2,
136311
+ max: max2,
136312
+ sumBy,
136313
+ minBy,
136314
+ maxBy,
136315
+ plus,
136316
+ minus,
136317
+ times,
136318
+ id: id2,
136319
+ length,
136320
+ sumVectors,
136321
+ average,
136322
+ onCircle,
136323
+ enhance,
136324
+ range: range2,
136325
+ mapObject,
136326
+ pairs
136327
+ };
136328
+ })(ops);
136329
+ (function(module2, exports2) {
136330
+ Object.defineProperty(exports2, "__esModule", {
136331
+ value: true
136332
+ });
136333
+ function _interopRequireDefault2(obj) {
136334
+ return obj && obj.__esModule ? obj : { "default": obj };
136335
+ }
136336
+ __name(_interopRequireDefault2, "_interopRequireDefault");
136337
+ function _toConsumableArray2(arr) {
136338
+ if (Array.isArray(arr)) {
136339
+ for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++)
136340
+ arr2[i] = arr[i];
136341
+ return arr2;
136342
+ } else {
136343
+ return Array.from(arr);
136344
+ }
136345
+ }
136346
+ __name(_toConsumableArray2, "_toConsumableArray");
136347
+ var _path = pathExports;
136348
+ var _path2 = _interopRequireDefault2(_path);
136349
+ var _ops = ops;
136350
+ exports2["default"] = function(_ref) {
136351
+ var _Path$moveto$arc$lineto, _Path$moveto$arc, _Path$moveto, _Path;
136352
+ var center = _ref.center;
136353
+ var r2 = _ref.r;
136354
+ var R2 = _ref.R;
136355
+ var start2 = _ref.start;
136356
+ var end2 = _ref.end;
136357
+ var epsilon = 1e-4;
136358
+ if (Math.abs(end2 - 2 * Math.PI) < epsilon) {
136359
+ end2 = 2 * Math.PI - epsilon;
136360
+ }
136361
+ var a2 = (0, _ops.plus)(center, (0, _ops.onCircle)(R2, start2));
136362
+ var b3 = (0, _ops.plus)(center, (0, _ops.onCircle)(R2, end2));
136363
+ var c2 = (0, _ops.plus)(center, (0, _ops.onCircle)(r2, end2));
136364
+ var d2 = (0, _ops.plus)(center, (0, _ops.onCircle)(r2, start2));
136365
+ var large = end2 - start2 > Math.PI ? 1 : 0;
136366
+ 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();
136367
+ var midAngle = (start2 + end2) / 2;
136368
+ var midRadius = (r2 + R2) / 2;
136369
+ var centroid = (0, _ops.plus)(center, (0, _ops.onCircle)(midRadius, midAngle));
136370
+ return {
136371
+ path: path2,
136372
+ centroid
136373
+ };
136374
+ };
136375
+ module2.exports = exports2["default"];
136376
+ })(sector$1, sector$1.exports);
136377
+ var sectorExports = sector$1.exports;
136378
+ const sector = /* @__PURE__ */ getDefaultExportFromCjs(sectorExports);
136379
+ function SelectionLayer({
136380
+ isDraggable,
136381
+ selectionLayer: selectionLayer2,
136382
+ sequenceLength,
136383
+ radius,
136384
+ hideTitle,
136385
+ innerRadius,
136386
+ onRightClicked,
136387
+ onClick,
136388
+ index: index2,
136389
+ isProtein: isProtein2
136390
+ }) {
136391
+ const {
136392
+ color: color2,
136393
+ start: start2,
136394
+ end: end2,
136395
+ hideCarets = false,
136396
+ style: style2,
136397
+ className
136398
+ } = selectionLayer2;
136399
+ const { startAngle, endAngle, totalAngle } = getRangeAnglesSpecial(
136400
+ selectionLayer2,
136401
+ sequenceLength
136402
+ );
136403
+ const section = sector({
136404
+ center: [0, 0],
136405
+ //the center is always 0,0 for our annotations :) we rotate later!
136406
+ r: innerRadius,
136407
+ R: radius,
136408
+ start: 0,
136409
+ end: totalAngle
136410
+ });
136411
+ const selectionMessage = getSelectionMessage({
136412
+ sequenceLength,
136413
+ selectionLayer: selectionLayer2,
136414
+ isProtein: isProtein2
136415
+ });
136416
+ const { transform: transform3 } = PositionAnnotationOnCircle({
136417
+ sAngle: startAngle,
136418
+ eAngle: endAngle,
136419
+ height: 0
136420
+ });
136421
+ return /* @__PURE__ */ React__default$1.createElement(
136422
+ "g",
136423
+ {
136424
+ onContextMenu: (event) => {
136425
+ onRightClicked && onRightClicked({
136426
+ annotation: selectionLayer2,
136427
+ event
136428
+ });
136429
+ },
136430
+ onClick: onClick ? (event) => {
136431
+ onClick({
136432
+ annotation: selectionLayer2,
136433
+ event
136434
+ });
136435
+ } : void 0,
136436
+ key: "veSelectionLayer" + index2,
136437
+ className: "veSelectionLayer " + (className || "")
136438
+ },
136439
+ !hideTitle && /* @__PURE__ */ React__default$1.createElement("title", null, selectionMessage),
136440
+ /* @__PURE__ */ React__default$1.createElement(
136441
+ "path",
136442
+ {
136443
+ transform: transform3,
136444
+ className: "selectionLayer",
136445
+ style: __spreadValues({ opacity: 0.3 }, style2),
136446
+ d: section.path.print(),
136447
+ fill: color2
136448
+ }
136449
+ ),
136450
+ !hideCarets && /* @__PURE__ */ React__default$1.createElement(
136451
+ Caret$1,
136452
+ {
136453
+ key: "caret1",
136454
+ className: className + " selectionLayerCaret " + (isDraggable ? draggableClassnames.selectionStart : ""),
136455
+ isSelection: true,
136456
+ onClick: onClick ? noop$4 : preventDefaultStopPropagation,
136457
+ selectionMessage,
136458
+ caretPosition: start2,
136459
+ sequenceLength,
136460
+ innerRadius,
136461
+ outerRadius: radius
136462
+ }
136463
+ ),
136464
+ !hideCarets && /* @__PURE__ */ React__default$1.createElement(
136465
+ Caret$1,
136466
+ {
136467
+ key: "caret2",
136468
+ className: className + " selectionLayerCaret " + (isDraggable ? draggableClassnames.selectionEnd : ""),
136469
+ isSelection: true,
136470
+ onClick: onClick ? noop$4 : preventDefaultStopPropagation,
136471
+ selectionMessage,
136472
+ caretPosition: end2 + 1,
136473
+ sequenceLength,
136474
+ innerRadius,
136475
+ outerRadius: radius
136476
+ }
136477
+ )
136478
+ );
136479
+ }
136480
+ __name(SelectionLayer, "SelectionLayer");
136481
+ const SelectionLayer$1 = pure(SelectionLayer);
136482
+ function Axis({
136483
+ radius,
136484
+ showAxisNumbers,
136485
+ tickMarkHeight = 5,
136486
+ textOffset = 15,
136487
+ ringThickness = 4,
136488
+ zoomLevel
136489
+ }) {
136490
+ const height2 = (ringThickness + (showAxisNumbers ? textOffset + tickMarkHeight : 0)) / zoomLevel;
136491
+ const radiusToUse = showAxisNumbers ? radius + textOffset + tickMarkHeight : radius;
136492
+ const component = /* @__PURE__ */ React__default$1.createElement("g", { key: "veAxis", className: "veAxis" }, /* @__PURE__ */ React__default$1.createElement(
136493
+ "circle",
136494
+ {
136495
+ className: "veAxisLine veAxisOuter",
136496
+ key: "circleOuter",
136497
+ r: radiusToUse + ringThickness,
136498
+ style: { fill: "#ffffff00", stroke: "black", strokeWidth: 0.5 }
136499
+ }
136500
+ ), /* @__PURE__ */ React__default$1.createElement(
136501
+ "circle",
136502
+ {
136503
+ className: "veAxisLine veAxisInner",
136504
+ key: "circle",
136505
+ r: radiusToUse,
136506
+ style: { fill: "#ffffff00", stroke: "black", strokeWidth: 0.5 }
136507
+ }
136508
+ ));
136509
+ return {
136510
+ component,
136511
+ height: height2
136512
+ };
136513
+ }
136514
+ __name(Axis, "Axis");
136515
+ function CircularPrimer$1({
136516
+ color: color2 = "orange",
136517
+ radius,
136518
+ annotationHeight,
136519
+ totalAngle
136520
+ }) {
136521
+ return /* @__PURE__ */ React__default$1.createElement(
136522
+ "path",
136523
+ {
136524
+ className: "veOrf",
136525
+ strokeWidth: ".5",
136526
+ stroke: color2,
136527
+ fill: color2,
136528
+ d: drawDirectedPiePiece({
136529
+ radius,
136530
+ annotationHeight,
136531
+ totalAngle,
136532
+ arrowheadLength: 0.4,
136533
+ tailThickness: 0.4
136534
+ }).print()
136535
+ }
136536
+ );
136537
+ }
136538
+ __name(CircularPrimer$1, "CircularPrimer$1");
136539
+ function CircularPrimer(props) {
136540
+ const {
136541
+ color: color2 = "orange",
136542
+ radius,
136543
+ arrowheadLength = 0.5,
136544
+ annotationHeight,
136545
+ totalAngle,
136546
+ id: id2,
136547
+ labelNeedsFlip,
136548
+ ellipsizedName
136549
+ } = props;
136550
+ const [path2, textPath] = drawDirectedPiePiece({
136551
+ radius,
136552
+ annotationHeight,
136553
+ totalAngle,
136554
+ arrowheadLength,
136555
+ tailThickness: 1,
136556
+ //feature specific
136557
+ returnTextPath: true,
136558
+ hasLabel: ellipsizedName,
136559
+ labelNeedsFlip
136560
+ });
136561
+ return /* @__PURE__ */ React__default$1.createElement(React__default$1.Fragment, null, getStripedPattern({ color: color2 }), /* @__PURE__ */ React__default$1.createElement(
136562
+ "path",
136563
+ {
136564
+ className: "vePrimer veCircularViewPrimer",
136565
+ id: id2,
136566
+ strokeWidth: ".5",
136567
+ stroke: "black",
136568
+ fill: "url(#diagonalHatch)",
136569
+ d: path2.print()
136570
+ }
136571
+ ), getInternalLabel(__spreadProps(__spreadValues({}, props), { colorToUse: color2, textPath })));
136572
+ }
136573
+ __name(CircularPrimer, "CircularPrimer");
136574
+ function Cutsite({
136575
+ annotationHeight,
136576
+ radius
136577
+ // totalAngle,
136578
+ // ...rest
136579
+ }) {
136580
+ return /* @__PURE__ */ React__default$1.createElement(
136581
+ "rect",
136582
+ {
136583
+ className: "veCutsite",
136584
+ width: 1,
136585
+ y: -radius - 4,
136586
+ height: annotationHeight
136587
+ }
136588
+ );
136589
+ }
136590
+ __name(Cutsite, "Cutsite");
136328
136591
  const style$e = "";
136329
136592
  function c(u2, e2, c2) {
136330
136593
  var i = this, a2 = useRef(null), o2 = useRef(0), f2 = useRef(null), l2 = useRef([]), m2 = useRef(), v2 = useRef(), d2 = useRef(u2), p2 = useRef(true);
@@ -142844,7 +143107,7 @@ ${seqDataToCopy}\r
142844
143107
  scrollbarWidth: "none",
142845
143108
  whiteSpace: "nowrap"
142846
143109
  },
142847
- title: name2,
143110
+ "data-title": name2,
142848
143111
  key: i
142849
143112
  },
142850
143113
  /* @__PURE__ */ React__default$1.createElement(
@@ -143644,7 +143907,7 @@ ${seqDataToCopy}\r
143644
143907
  textOverflow: "ellipsis",
143645
143908
  whiteSpace: "nowrap"
143646
143909
  },
143647
- title: this.props.alignmentType || "Unknown Alignment Type"
143910
+ "data-title": this.props.alignmentType || "Unknown Alignment Type"
143648
143911
  },
143649
143912
  this.props.alignmentType || "Unknown Alignment Type"
143650
143913
  )),
@@ -158291,11 +158554,11 @@ var batchProcessor = /* @__PURE__ */ __name(function batchProcessorMaker(options
158291
158554
  var batch2 = Batch();
158292
158555
  var asyncFrameHandler;
158293
158556
  var isProcessing = false;
158294
- function addFunction(level, fn3) {
158557
+ function addFunction(level, fn4) {
158295
158558
  if (!isProcessing && autoProcess && asyncProcess && batch2.size() === 0) {
158296
158559
  processBatchAsync();
158297
158560
  }
158298
- batch2.add(level, fn3);
158561
+ batch2.add(level, fn4);
158299
158562
  }
158300
158563
  __name(addFunction, "addFunction");
158301
158564
  function processBatch() {
@@ -158336,8 +158599,8 @@ var batchProcessor = /* @__PURE__ */ __name(function batchProcessorMaker(options
158336
158599
  }
158337
158600
  __name(cancelFrame, "cancelFrame");
158338
158601
  function requestFrame(callback2) {
158339
- var raf = /* @__PURE__ */ __name(function(fn3) {
158340
- return setTimeout(fn3, 0);
158602
+ var raf = /* @__PURE__ */ __name(function(fn4) {
158603
+ return setTimeout(fn4, 0);
158341
158604
  }, "raf");
158342
158605
  return raf(callback2);
158343
158606
  }
@@ -158352,9 +158615,9 @@ function Batch() {
158352
158615
  var size = 0;
158353
158616
  var topLevel2 = 0;
158354
158617
  var bottomLevel2 = 0;
158355
- function add3(level, fn3) {
158356
- if (!fn3) {
158357
- fn3 = level;
158618
+ function add3(level, fn4) {
158619
+ if (!fn4) {
158620
+ fn4 = level;
158358
158621
  level = 0;
158359
158622
  }
158360
158623
  if (level > topLevel2) {
@@ -158365,7 +158628,7 @@ function Batch() {
158365
158628
  if (!batch2[level]) {
158366
158629
  batch2[level] = [];
158367
158630
  }
158368
- batch2[level].push(fn3);
158631
+ batch2[level].push(fn4);
158369
158632
  size++;
158370
158633
  }
158371
158634
  __name(add3, "add");
@@ -158373,8 +158636,8 @@ function Batch() {
158373
158636
  for (var level = bottomLevel2; level <= topLevel2; level++) {
158374
158637
  var fns = batch2[level];
158375
158638
  for (var i = 0; i < fns.length; i++) {
158376
- var fn3 = fns[i];
158377
- fn3();
158639
+ var fn4 = fns[i];
158640
+ fn4();
158378
158641
  }
158379
158642
  }
158380
158643
  }