@teselagen/ove 0.5.13 → 0.5.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +412 -317
- package/index.es.js +412 -317
- package/index.umd.js +253 -219
- package/package.json +2 -2
- package/src/GlobalDialogUtils.js +4 -1
- package/src/RowItem/Translations/AASliver.js +12 -11
- package/src/RowItem/Translations/Translation.js +41 -9
- package/src/withEditorInteractions/index.js +15 -28
- package/src/withEditorProps/index.js +9 -8
- package/style.css +7 -0
package/index.cjs.js
CHANGED
|
@@ -2835,7 +2835,7 @@ var followCursor = {
|
|
|
2835
2835
|
}
|
|
2836
2836
|
}
|
|
2837
2837
|
__name(onMouseMove, "onMouseMove");
|
|
2838
|
-
function
|
|
2838
|
+
function create5() {
|
|
2839
2839
|
if (instance.props.followCursor) {
|
|
2840
2840
|
activeInstances.push({
|
|
2841
2841
|
instance,
|
|
@@ -2844,7 +2844,7 @@ var followCursor = {
|
|
|
2844
2844
|
addMouseCoordsListener(doc);
|
|
2845
2845
|
}
|
|
2846
2846
|
}
|
|
2847
|
-
__name(
|
|
2847
|
+
__name(create5, "create");
|
|
2848
2848
|
function destroy2() {
|
|
2849
2849
|
activeInstances = activeInstances.filter(function(data) {
|
|
2850
2850
|
return data.instance !== instance;
|
|
@@ -2857,7 +2857,7 @@ var followCursor = {
|
|
|
2857
2857
|
}
|
|
2858
2858
|
__name(destroy2, "destroy");
|
|
2859
2859
|
return {
|
|
2860
|
-
onCreate:
|
|
2860
|
+
onCreate: create5,
|
|
2861
2861
|
onDestroy: destroy2,
|
|
2862
2862
|
onBeforeUpdate: /* @__PURE__ */ __name(function onBeforeUpdate2() {
|
|
2863
2863
|
prevProps = instance.props;
|
|
@@ -2870,7 +2870,7 @@ var followCursor = {
|
|
|
2870
2870
|
if (followCursor2 !== void 0 && prevProps.followCursor !== followCursor2) {
|
|
2871
2871
|
destroy2();
|
|
2872
2872
|
if (followCursor2) {
|
|
2873
|
-
|
|
2873
|
+
create5();
|
|
2874
2874
|
if (instance.state.isMounted && !wasFocusEvent && !getIsInitialBehavior()) {
|
|
2875
2875
|
addListener();
|
|
2876
2876
|
}
|
|
@@ -14299,10 +14299,10 @@ var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
|
|
|
14299
14299
|
value
|
|
14300
14300
|
};
|
|
14301
14301
|
}, "_propertyDesc");
|
|
14302
|
-
var dP$
|
|
14302
|
+
var dP$1 = require_objectDp();
|
|
14303
14303
|
var createDesc$3 = _propertyDesc;
|
|
14304
14304
|
var _hide = require_descriptors() ? function(object3, key, value) {
|
|
14305
|
-
return dP$
|
|
14305
|
+
return dP$1.f(object3, key, createDesc$3(1, value));
|
|
14306
14306
|
} : function(object3, key, value) {
|
|
14307
14307
|
object3[key] = value;
|
|
14308
14308
|
return object3;
|
|
@@ -14316,7 +14316,7 @@ var core$3 = _coreExports;
|
|
|
14316
14316
|
var ctx$1 = _ctx;
|
|
14317
14317
|
var hide$3 = _hide;
|
|
14318
14318
|
var has$e = _has;
|
|
14319
|
-
var PROTOTYPE$
|
|
14319
|
+
var PROTOTYPE$1 = "prototype";
|
|
14320
14320
|
var $export$8 = /* @__PURE__ */ __name(function(type2, name2, source) {
|
|
14321
14321
|
var IS_FORCED = type2 & $export$8.F;
|
|
14322
14322
|
var IS_GLOBAL = type2 & $export$8.G;
|
|
@@ -14325,8 +14325,8 @@ var $export$8 = /* @__PURE__ */ __name(function(type2, name2, source) {
|
|
|
14325
14325
|
var IS_BIND = type2 & $export$8.B;
|
|
14326
14326
|
var IS_WRAP = type2 & $export$8.W;
|
|
14327
14327
|
var exports2 = IS_GLOBAL ? core$3 : core$3[name2] || (core$3[name2] = {});
|
|
14328
|
-
var expProto = exports2[PROTOTYPE$
|
|
14329
|
-
var target = IS_GLOBAL ? global$5 : IS_STATIC ? global$5[name2] : (global$5[name2] || {})[PROTOTYPE$
|
|
14328
|
+
var expProto = exports2[PROTOTYPE$1];
|
|
14329
|
+
var target = IS_GLOBAL ? global$5 : IS_STATIC ? global$5[name2] : (global$5[name2] || {})[PROTOTYPE$1];
|
|
14330
14330
|
var key, own2, out;
|
|
14331
14331
|
if (IS_GLOBAL)
|
|
14332
14332
|
source = name2;
|
|
@@ -14350,7 +14350,7 @@ var $export$8 = /* @__PURE__ */ __name(function(type2, name2, source) {
|
|
|
14350
14350
|
}
|
|
14351
14351
|
return C.apply(this, arguments);
|
|
14352
14352
|
}, "F");
|
|
14353
|
-
F[PROTOTYPE$
|
|
14353
|
+
F[PROTOTYPE$1] = C[PROTOTYPE$1];
|
|
14354
14354
|
return F;
|
|
14355
14355
|
}(out) : IS_PROTO && typeof out == "function" ? ctx$1(Function.call, out) : out;
|
|
14356
14356
|
if (IS_PROTO) {
|
|
@@ -14373,16 +14373,25 @@ var toString$5 = {}.toString;
|
|
|
14373
14373
|
var _cof = /* @__PURE__ */ __name(function(it) {
|
|
14374
14374
|
return toString$5.call(it).slice(8, -1);
|
|
14375
14375
|
}, "_cof");
|
|
14376
|
-
var
|
|
14377
|
-
var
|
|
14378
|
-
|
|
14379
|
-
|
|
14376
|
+
var _iobject;
|
|
14377
|
+
var hasRequired_iobject;
|
|
14378
|
+
function require_iobject() {
|
|
14379
|
+
if (hasRequired_iobject)
|
|
14380
|
+
return _iobject;
|
|
14381
|
+
hasRequired_iobject = 1;
|
|
14382
|
+
var cof2 = _cof;
|
|
14383
|
+
_iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
|
|
14384
|
+
return cof2(it) == "String" ? it.split("") : Object(it);
|
|
14385
|
+
};
|
|
14386
|
+
return _iobject;
|
|
14387
|
+
}
|
|
14388
|
+
__name(require_iobject, "require_iobject");
|
|
14380
14389
|
var _defined = /* @__PURE__ */ __name(function(it) {
|
|
14381
14390
|
if (it == void 0)
|
|
14382
14391
|
throw TypeError("Can't call method on " + it);
|
|
14383
14392
|
return it;
|
|
14384
14393
|
}, "_defined");
|
|
14385
|
-
var IObject =
|
|
14394
|
+
var IObject = require_iobject();
|
|
14386
14395
|
var defined$2 = _defined;
|
|
14387
14396
|
var _toIobject = /* @__PURE__ */ __name(function(it) {
|
|
14388
14397
|
return IObject(defined$2(it));
|
|
@@ -14455,14 +14464,14 @@ var _sharedKey = /* @__PURE__ */ __name(function(key) {
|
|
|
14455
14464
|
var has$d = _has;
|
|
14456
14465
|
var toIObject$4 = _toIobject;
|
|
14457
14466
|
var arrayIndexOf = _arrayIncludes$1(false);
|
|
14458
|
-
var IE_PROTO$
|
|
14467
|
+
var IE_PROTO$1 = _sharedKey("IE_PROTO");
|
|
14459
14468
|
var _objectKeysInternal = /* @__PURE__ */ __name(function(object3, names2) {
|
|
14460
14469
|
var O2 = toIObject$4(object3);
|
|
14461
14470
|
var i = 0;
|
|
14462
14471
|
var result = [];
|
|
14463
14472
|
var key;
|
|
14464
14473
|
for (key in O2)
|
|
14465
|
-
if (key != IE_PROTO$
|
|
14474
|
+
if (key != IE_PROTO$1)
|
|
14466
14475
|
has$d(O2, key) && result.push(key);
|
|
14467
14476
|
while (names2.length > i)
|
|
14468
14477
|
if (has$d(O2, key = names2[i++])) {
|
|
@@ -14471,10 +14480,10 @@ var _objectKeysInternal = /* @__PURE__ */ __name(function(object3, names2) {
|
|
|
14471
14480
|
return result;
|
|
14472
14481
|
}, "_objectKeysInternal");
|
|
14473
14482
|
var _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
|
|
14474
|
-
var $keys$
|
|
14475
|
-
var enumBugKeys
|
|
14483
|
+
var $keys$2 = _objectKeysInternal;
|
|
14484
|
+
var enumBugKeys = _enumBugKeys;
|
|
14476
14485
|
var _objectKeys = Object.keys || /* @__PURE__ */ __name(function keys(O2) {
|
|
14477
|
-
return $keys$
|
|
14486
|
+
return $keys$2(O2, enumBugKeys);
|
|
14478
14487
|
}, "keys");
|
|
14479
14488
|
var _objectGops = {};
|
|
14480
14489
|
_objectGops.f = Object.getOwnPropertySymbols;
|
|
@@ -14503,7 +14512,7 @@ function require_objectAssign() {
|
|
|
14503
14512
|
var gOPS2 = _objectGops;
|
|
14504
14513
|
var pIE2 = require_objectPie();
|
|
14505
14514
|
var toObject2 = _toObject;
|
|
14506
|
-
var IObject2 =
|
|
14515
|
+
var IObject2 = require_iobject();
|
|
14507
14516
|
var $assign = Object.assign;
|
|
14508
14517
|
_objectAssign = !$assign || _fails(function() {
|
|
14509
14518
|
var A2 = {};
|
|
@@ -14564,19 +14573,28 @@ var _iterStep = /* @__PURE__ */ __name(function(done, value) {
|
|
|
14564
14573
|
}, "_iterStep");
|
|
14565
14574
|
var _iterators = {};
|
|
14566
14575
|
var _redefine = _hide;
|
|
14567
|
-
var
|
|
14568
|
-
var
|
|
14569
|
-
|
|
14570
|
-
|
|
14571
|
-
|
|
14572
|
-
|
|
14573
|
-
var
|
|
14574
|
-
var
|
|
14575
|
-
var
|
|
14576
|
-
|
|
14577
|
-
|
|
14578
|
-
|
|
14579
|
-
|
|
14576
|
+
var _objectDps;
|
|
14577
|
+
var hasRequired_objectDps;
|
|
14578
|
+
function require_objectDps() {
|
|
14579
|
+
if (hasRequired_objectDps)
|
|
14580
|
+
return _objectDps;
|
|
14581
|
+
hasRequired_objectDps = 1;
|
|
14582
|
+
var dP2 = require_objectDp();
|
|
14583
|
+
var anObject2 = _anObject;
|
|
14584
|
+
var getKeys2 = _objectKeys;
|
|
14585
|
+
_objectDps = require_descriptors() ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties3(O2, Properties2) {
|
|
14586
|
+
anObject2(O2);
|
|
14587
|
+
var keys5 = getKeys2(Properties2);
|
|
14588
|
+
var length = keys5.length;
|
|
14589
|
+
var i = 0;
|
|
14590
|
+
var P2;
|
|
14591
|
+
while (length > i)
|
|
14592
|
+
dP2.f(O2, P2 = keys5[i++], Properties2[P2]);
|
|
14593
|
+
return O2;
|
|
14594
|
+
}, "defineProperties");
|
|
14595
|
+
return _objectDps;
|
|
14596
|
+
}
|
|
14597
|
+
__name(require_objectDps, "require_objectDps");
|
|
14580
14598
|
var _html;
|
|
14581
14599
|
var hasRequired_html;
|
|
14582
14600
|
function require_html() {
|
|
@@ -14588,42 +14606,51 @@ function require_html() {
|
|
|
14588
14606
|
return _html;
|
|
14589
14607
|
}
|
|
14590
14608
|
__name(require_html, "require_html");
|
|
14591
|
-
var
|
|
14592
|
-
var
|
|
14593
|
-
|
|
14594
|
-
|
|
14595
|
-
|
|
14596
|
-
|
|
14597
|
-
var
|
|
14598
|
-
var
|
|
14599
|
-
var
|
|
14600
|
-
var
|
|
14601
|
-
var
|
|
14602
|
-
|
|
14603
|
-
var
|
|
14604
|
-
|
|
14605
|
-
|
|
14606
|
-
|
|
14607
|
-
|
|
14608
|
-
|
|
14609
|
-
|
|
14610
|
-
|
|
14611
|
-
|
|
14612
|
-
|
|
14613
|
-
|
|
14614
|
-
|
|
14615
|
-
|
|
14616
|
-
|
|
14617
|
-
|
|
14618
|
-
|
|
14619
|
-
|
|
14620
|
-
|
|
14621
|
-
|
|
14622
|
-
|
|
14623
|
-
|
|
14624
|
-
|
|
14625
|
-
|
|
14626
|
-
|
|
14609
|
+
var _objectCreate;
|
|
14610
|
+
var hasRequired_objectCreate;
|
|
14611
|
+
function require_objectCreate() {
|
|
14612
|
+
if (hasRequired_objectCreate)
|
|
14613
|
+
return _objectCreate;
|
|
14614
|
+
hasRequired_objectCreate = 1;
|
|
14615
|
+
var anObject2 = _anObject;
|
|
14616
|
+
var dPs = require_objectDps();
|
|
14617
|
+
var enumBugKeys2 = _enumBugKeys;
|
|
14618
|
+
var IE_PROTO2 = _sharedKey("IE_PROTO");
|
|
14619
|
+
var Empty = /* @__PURE__ */ __name(function() {
|
|
14620
|
+
}, "Empty");
|
|
14621
|
+
var PROTOTYPE2 = "prototype";
|
|
14622
|
+
var createDict = /* @__PURE__ */ __name(function() {
|
|
14623
|
+
var iframe = require_domCreate()("iframe");
|
|
14624
|
+
var i = enumBugKeys2.length;
|
|
14625
|
+
var lt = "<";
|
|
14626
|
+
var gt = ">";
|
|
14627
|
+
var iframeDocument;
|
|
14628
|
+
iframe.style.display = "none";
|
|
14629
|
+
require_html().appendChild(iframe);
|
|
14630
|
+
iframe.src = "javascript:";
|
|
14631
|
+
iframeDocument = iframe.contentWindow.document;
|
|
14632
|
+
iframeDocument.open();
|
|
14633
|
+
iframeDocument.write(lt + "script" + gt + "document.F=Object" + lt + "/script" + gt);
|
|
14634
|
+
iframeDocument.close();
|
|
14635
|
+
createDict = iframeDocument.F;
|
|
14636
|
+
while (i--)
|
|
14637
|
+
delete createDict[PROTOTYPE2][enumBugKeys2[i]];
|
|
14638
|
+
return createDict();
|
|
14639
|
+
}, "createDict");
|
|
14640
|
+
_objectCreate = Object.create || /* @__PURE__ */ __name(function create5(O2, Properties2) {
|
|
14641
|
+
var result;
|
|
14642
|
+
if (O2 !== null) {
|
|
14643
|
+
Empty[PROTOTYPE2] = anObject2(O2);
|
|
14644
|
+
result = new Empty();
|
|
14645
|
+
Empty[PROTOTYPE2] = null;
|
|
14646
|
+
result[IE_PROTO2] = O2;
|
|
14647
|
+
} else
|
|
14648
|
+
result = createDict();
|
|
14649
|
+
return Properties2 === void 0 ? result : dPs(result, Properties2);
|
|
14650
|
+
}, "create");
|
|
14651
|
+
return _objectCreate;
|
|
14652
|
+
}
|
|
14653
|
+
__name(require_objectCreate, "require_objectCreate");
|
|
14627
14654
|
var _wks = { exports: {} };
|
|
14628
14655
|
var store$2 = _sharedExports("wks");
|
|
14629
14656
|
var uid$1 = _uid;
|
|
@@ -14641,7 +14668,7 @@ var _setToStringTag = /* @__PURE__ */ __name(function(it, tag, stat) {
|
|
|
14641
14668
|
if (it && !has$c(it = stat ? it : it.prototype, TAG$1))
|
|
14642
14669
|
def(it, TAG$1, { configurable: true, value: tag });
|
|
14643
14670
|
}, "_setToStringTag");
|
|
14644
|
-
var create$4 =
|
|
14671
|
+
var create$4 = require_objectCreate();
|
|
14645
14672
|
var descriptor = _propertyDesc;
|
|
14646
14673
|
var setToStringTag$2 = _setToStringTag;
|
|
14647
14674
|
var IteratorPrototype = {};
|
|
@@ -15049,7 +15076,7 @@ function _interopRequireDefault$c(obj) {
|
|
|
15049
15076
|
}
|
|
15050
15077
|
__name(_interopRequireDefault$c, "_interopRequireDefault$c");
|
|
15051
15078
|
var _default$7 = /* @__PURE__ */ function() {
|
|
15052
|
-
function
|
|
15079
|
+
function defineProperties3(target, props) {
|
|
15053
15080
|
for (var i = 0; i < props.length; i++) {
|
|
15054
15081
|
var descriptor2 = props[i];
|
|
15055
15082
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -15059,12 +15086,12 @@ var _default$7 = /* @__PURE__ */ function() {
|
|
|
15059
15086
|
(0, _defineProperty2.default)(target, descriptor2.key, descriptor2);
|
|
15060
15087
|
}
|
|
15061
15088
|
}
|
|
15062
|
-
__name(
|
|
15089
|
+
__name(defineProperties3, "defineProperties");
|
|
15063
15090
|
return function(Constructor, protoProps, staticProps) {
|
|
15064
15091
|
if (protoProps)
|
|
15065
|
-
|
|
15092
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
15066
15093
|
if (staticProps)
|
|
15067
|
-
|
|
15094
|
+
defineProperties3(Constructor, staticProps);
|
|
15068
15095
|
return Constructor;
|
|
15069
15096
|
};
|
|
15070
15097
|
}();
|
|
@@ -15093,23 +15120,23 @@ var setMeta = /* @__PURE__ */ __name(function(it) {
|
|
|
15093
15120
|
// weak collections IDs
|
|
15094
15121
|
} });
|
|
15095
15122
|
}, "setMeta");
|
|
15096
|
-
var fastKey = /* @__PURE__ */ __name(function(it,
|
|
15123
|
+
var fastKey = /* @__PURE__ */ __name(function(it, create5) {
|
|
15097
15124
|
if (!isObject$b(it))
|
|
15098
15125
|
return typeof it == "symbol" ? it : (typeof it == "string" ? "S" : "P") + it;
|
|
15099
15126
|
if (!has$a(it, META$1)) {
|
|
15100
15127
|
if (!isExtensible(it))
|
|
15101
15128
|
return "F";
|
|
15102
|
-
if (!
|
|
15129
|
+
if (!create5)
|
|
15103
15130
|
return "E";
|
|
15104
15131
|
setMeta(it);
|
|
15105
15132
|
}
|
|
15106
15133
|
return it[META$1].i;
|
|
15107
15134
|
}, "fastKey");
|
|
15108
|
-
var getWeak = /* @__PURE__ */ __name(function(it,
|
|
15135
|
+
var getWeak = /* @__PURE__ */ __name(function(it, create5) {
|
|
15109
15136
|
if (!has$a(it, META$1)) {
|
|
15110
15137
|
if (!isExtensible(it))
|
|
15111
15138
|
return true;
|
|
15112
|
-
if (!
|
|
15139
|
+
if (!create5)
|
|
15113
15140
|
return false;
|
|
15114
15141
|
setMeta(it);
|
|
15115
15142
|
}
|
|
@@ -15159,13 +15186,21 @@ var _isArray = Array.isArray || /* @__PURE__ */ __name(function isArray(arg) {
|
|
|
15159
15186
|
}, "isArray");
|
|
15160
15187
|
var _objectGopnExt = {};
|
|
15161
15188
|
var _objectGopn = {};
|
|
15162
|
-
var
|
|
15163
|
-
|
|
15164
|
-
|
|
15165
|
-
|
|
15166
|
-
|
|
15189
|
+
var hasRequired_objectGopn;
|
|
15190
|
+
function require_objectGopn() {
|
|
15191
|
+
if (hasRequired_objectGopn)
|
|
15192
|
+
return _objectGopn;
|
|
15193
|
+
hasRequired_objectGopn = 1;
|
|
15194
|
+
var $keys2 = _objectKeysInternal;
|
|
15195
|
+
var hiddenKeys = _enumBugKeys.concat("length", "prototype");
|
|
15196
|
+
_objectGopn.f = Object.getOwnPropertyNames || /* @__PURE__ */ __name(function getOwnPropertyNames4(O2) {
|
|
15197
|
+
return $keys2(O2, hiddenKeys);
|
|
15198
|
+
}, "getOwnPropertyNames");
|
|
15199
|
+
return _objectGopn;
|
|
15200
|
+
}
|
|
15201
|
+
__name(require_objectGopn, "require_objectGopn");
|
|
15167
15202
|
var toIObject$2 = _toIobject;
|
|
15168
|
-
var gOPN$1 =
|
|
15203
|
+
var gOPN$1 = require_objectGopn().f;
|
|
15169
15204
|
var toString$4 = {}.toString;
|
|
15170
15205
|
var windowNames = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
|
|
15171
15206
|
var getWindowNames = /* @__PURE__ */ __name(function(it) {
|
|
@@ -15175,7 +15210,7 @@ var getWindowNames = /* @__PURE__ */ __name(function(it) {
|
|
|
15175
15210
|
return windowNames.slice();
|
|
15176
15211
|
}
|
|
15177
15212
|
}, "getWindowNames");
|
|
15178
|
-
_objectGopnExt.f = /* @__PURE__ */ __name(function
|
|
15213
|
+
_objectGopnExt.f = /* @__PURE__ */ __name(function getOwnPropertyNames(it) {
|
|
15179
15214
|
return windowNames && toString$4.call(it) == "[object Window]" ? getWindowNames(it) : gOPN$1(toIObject$2(it));
|
|
15180
15215
|
}, "getOwnPropertyNames");
|
|
15181
15216
|
var _objectGopd = {};
|
|
@@ -15218,7 +15253,7 @@ var toObject$1 = _toObject;
|
|
|
15218
15253
|
var toIObject = _toIobject;
|
|
15219
15254
|
var toPrimitive = _toPrimitive$1;
|
|
15220
15255
|
var createDesc = _propertyDesc;
|
|
15221
|
-
var _create$1 =
|
|
15256
|
+
var _create$1 = require_objectCreate();
|
|
15222
15257
|
var gOPNExt = _objectGopnExt;
|
|
15223
15258
|
var $GOPD = _objectGopd;
|
|
15224
15259
|
var $GOPS = _objectGops;
|
|
@@ -15285,7 +15320,7 @@ var $defineProperty$3 = /* @__PURE__ */ __name(function defineProperty3(it, key,
|
|
|
15285
15320
|
}
|
|
15286
15321
|
return dP(it, key, D2);
|
|
15287
15322
|
}, "defineProperty");
|
|
15288
|
-
var $defineProperties = /* @__PURE__ */ __name(function
|
|
15323
|
+
var $defineProperties = /* @__PURE__ */ __name(function defineProperties(it, P2) {
|
|
15289
15324
|
anObject(it);
|
|
15290
15325
|
var keys5 = enumKeys(P2 = toIObject(P2));
|
|
15291
15326
|
var i = 0;
|
|
@@ -15295,7 +15330,7 @@ var $defineProperties = /* @__PURE__ */ __name(function defineProperties2(it, P2
|
|
|
15295
15330
|
$defineProperty$3(it, key = keys5[i++], P2[key]);
|
|
15296
15331
|
return it;
|
|
15297
15332
|
}, "defineProperties");
|
|
15298
|
-
var $create = /* @__PURE__ */ __name(function
|
|
15333
|
+
var $create = /* @__PURE__ */ __name(function create(it, P2) {
|
|
15299
15334
|
return P2 === void 0 ? _create$1(it) : $defineProperties(_create$1(it), P2);
|
|
15300
15335
|
}, "create");
|
|
15301
15336
|
var $propertyIsEnumerable = /* @__PURE__ */ __name(function propertyIsEnumerable(key) {
|
|
@@ -15314,7 +15349,7 @@ var $getOwnPropertyDescriptor = /* @__PURE__ */ __name(function getOwnPropertyDe
|
|
|
15314
15349
|
D2.enumerable = true;
|
|
15315
15350
|
return D2;
|
|
15316
15351
|
}, "getOwnPropertyDescriptor");
|
|
15317
|
-
var $getOwnPropertyNames = /* @__PURE__ */ __name(function
|
|
15352
|
+
var $getOwnPropertyNames = /* @__PURE__ */ __name(function getOwnPropertyNames2(it) {
|
|
15318
15353
|
var names2 = gOPN(toIObject(it));
|
|
15319
15354
|
var result = [];
|
|
15320
15355
|
var i = 0;
|
|
@@ -15358,7 +15393,7 @@ if (!USE_NATIVE) {
|
|
|
15358
15393
|
}, "toString"));
|
|
15359
15394
|
$GOPD.f = $getOwnPropertyDescriptor;
|
|
15360
15395
|
$DP.f = $defineProperty$3;
|
|
15361
|
-
|
|
15396
|
+
require_objectGopn().f = gOPNExt.f = $getOwnPropertyNames;
|
|
15362
15397
|
require_objectPie().f = $propertyIsEnumerable;
|
|
15363
15398
|
$GOPS.f = $getOwnPropertySymbols;
|
|
15364
15399
|
if (DESCRIPTORS && !_library) {
|
|
@@ -15525,9 +15560,9 @@ $export$1($export$1.S, "Object", { setPrototypeOf: require_setProto().set });
|
|
|
15525
15560
|
var setPrototypeOf$1 = _coreExports.Object.setPrototypeOf;
|
|
15526
15561
|
var setPrototypeOf = { "default": setPrototypeOf$1, __esModule: true };
|
|
15527
15562
|
var $export = _export;
|
|
15528
|
-
$export($export.S, "Object", { create:
|
|
15563
|
+
$export($export.S, "Object", { create: require_objectCreate() });
|
|
15529
15564
|
var $Object$2 = _coreExports.Object;
|
|
15530
|
-
var create$3 = /* @__PURE__ */ __name(function
|
|
15565
|
+
var create$3 = /* @__PURE__ */ __name(function create2(P2, D2) {
|
|
15531
15566
|
return $Object$2.create(P2, D2);
|
|
15532
15567
|
}, "create");
|
|
15533
15568
|
var create$2 = { "default": create$3, __esModule: true };
|
|
@@ -19614,7 +19649,7 @@ function normalizeComponent(Comp) {
|
|
|
19614
19649
|
}
|
|
19615
19650
|
__name(normalizeComponent, "normalizeComponent");
|
|
19616
19651
|
var _createClass$d = /* @__PURE__ */ function() {
|
|
19617
|
-
function
|
|
19652
|
+
function defineProperties3(target, props) {
|
|
19618
19653
|
for (var i = 0; i < props.length; i++) {
|
|
19619
19654
|
var descriptor2 = props[i];
|
|
19620
19655
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -19624,12 +19659,12 @@ var _createClass$d = /* @__PURE__ */ function() {
|
|
|
19624
19659
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
19625
19660
|
}
|
|
19626
19661
|
}
|
|
19627
|
-
__name(
|
|
19662
|
+
__name(defineProperties3, "defineProperties");
|
|
19628
19663
|
return function(Constructor, protoProps, staticProps) {
|
|
19629
19664
|
if (protoProps)
|
|
19630
|
-
|
|
19665
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
19631
19666
|
if (staticProps)
|
|
19632
|
-
|
|
19667
|
+
defineProperties3(Constructor, staticProps);
|
|
19633
19668
|
return Constructor;
|
|
19634
19669
|
};
|
|
19635
19670
|
}();
|
|
@@ -19790,7 +19825,7 @@ var _extends$o = Object.assign || function(target) {
|
|
|
19790
19825
|
return target;
|
|
19791
19826
|
};
|
|
19792
19827
|
var _createClass$c = /* @__PURE__ */ function() {
|
|
19793
|
-
function
|
|
19828
|
+
function defineProperties3(target, props) {
|
|
19794
19829
|
for (var i = 0; i < props.length; i++) {
|
|
19795
19830
|
var descriptor2 = props[i];
|
|
19796
19831
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -19800,12 +19835,12 @@ var _createClass$c = /* @__PURE__ */ function() {
|
|
|
19800
19835
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
19801
19836
|
}
|
|
19802
19837
|
}
|
|
19803
|
-
__name(
|
|
19838
|
+
__name(defineProperties3, "defineProperties");
|
|
19804
19839
|
return function(Constructor, protoProps, staticProps) {
|
|
19805
19840
|
if (protoProps)
|
|
19806
|
-
|
|
19841
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
19807
19842
|
if (staticProps)
|
|
19808
|
-
|
|
19843
|
+
defineProperties3(Constructor, staticProps);
|
|
19809
19844
|
return Constructor;
|
|
19810
19845
|
};
|
|
19811
19846
|
}();
|
|
@@ -20396,7 +20431,7 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
|
|
|
20396
20431
|
}(Base);
|
|
20397
20432
|
}, "Methods");
|
|
20398
20433
|
var _createClass$b = /* @__PURE__ */ function() {
|
|
20399
|
-
function
|
|
20434
|
+
function defineProperties3(target, props) {
|
|
20400
20435
|
for (var i = 0; i < props.length; i++) {
|
|
20401
20436
|
var descriptor2 = props[i];
|
|
20402
20437
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -20406,12 +20441,12 @@ var _createClass$b = /* @__PURE__ */ function() {
|
|
|
20406
20441
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
20407
20442
|
}
|
|
20408
20443
|
}
|
|
20409
|
-
__name(
|
|
20444
|
+
__name(defineProperties3, "defineProperties");
|
|
20410
20445
|
return function(Constructor, protoProps, staticProps) {
|
|
20411
20446
|
if (protoProps)
|
|
20412
|
-
|
|
20447
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
20413
20448
|
if (staticProps)
|
|
20414
|
-
|
|
20449
|
+
defineProperties3(Constructor, staticProps);
|
|
20415
20450
|
return Constructor;
|
|
20416
20451
|
};
|
|
20417
20452
|
}();
|
|
@@ -21183,7 +21218,7 @@ var _extends$l = Object.assign || function(target) {
|
|
|
21183
21218
|
return target;
|
|
21184
21219
|
};
|
|
21185
21220
|
var _createClass$a = /* @__PURE__ */ function() {
|
|
21186
|
-
function
|
|
21221
|
+
function defineProperties3(target, props) {
|
|
21187
21222
|
for (var i = 0; i < props.length; i++) {
|
|
21188
21223
|
var descriptor2 = props[i];
|
|
21189
21224
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -21193,12 +21228,12 @@ var _createClass$a = /* @__PURE__ */ function() {
|
|
|
21193
21228
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
21194
21229
|
}
|
|
21195
21230
|
}
|
|
21196
|
-
__name(
|
|
21231
|
+
__name(defineProperties3, "defineProperties");
|
|
21197
21232
|
return function(Constructor, protoProps, staticProps) {
|
|
21198
21233
|
if (protoProps)
|
|
21199
|
-
|
|
21234
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
21200
21235
|
if (staticProps)
|
|
21201
|
-
|
|
21236
|
+
defineProperties3(Constructor, staticProps);
|
|
21202
21237
|
return Constructor;
|
|
21203
21238
|
};
|
|
21204
21239
|
}();
|
|
@@ -27522,21 +27557,21 @@ function parse$7(options) {
|
|
|
27522
27557
|
defined: [],
|
|
27523
27558
|
lazy: {},
|
|
27524
27559
|
constructs: constructs2,
|
|
27525
|
-
content:
|
|
27526
|
-
document:
|
|
27527
|
-
flow:
|
|
27528
|
-
string:
|
|
27529
|
-
text:
|
|
27560
|
+
content: create5(content$1),
|
|
27561
|
+
document: create5(document$2),
|
|
27562
|
+
flow: create5(flow$1),
|
|
27563
|
+
string: create5(string$1),
|
|
27564
|
+
text: create5(text$3)
|
|
27530
27565
|
};
|
|
27531
27566
|
return parser;
|
|
27532
|
-
function
|
|
27567
|
+
function create5(initial) {
|
|
27533
27568
|
return creator;
|
|
27534
27569
|
function creator(from3) {
|
|
27535
27570
|
return createTokenizer(parser, initial, from3);
|
|
27536
27571
|
}
|
|
27537
27572
|
__name(creator, "creator");
|
|
27538
27573
|
}
|
|
27539
|
-
__name(
|
|
27574
|
+
__name(create5, "create");
|
|
27540
27575
|
}
|
|
27541
27576
|
__name(parse$7, "parse$7");
|
|
27542
27577
|
const search$1 = /[\0\t\n\r]/g;
|
|
@@ -27947,10 +27982,10 @@ function compiler(options) {
|
|
|
27947
27982
|
return data[key];
|
|
27948
27983
|
}
|
|
27949
27984
|
__name(getData, "getData");
|
|
27950
|
-
function opener(
|
|
27985
|
+
function opener(create5, and) {
|
|
27951
27986
|
return open2;
|
|
27952
27987
|
function open2(token) {
|
|
27953
|
-
enter2.call(this,
|
|
27988
|
+
enter2.call(this, create5(token), token);
|
|
27954
27989
|
if (and)
|
|
27955
27990
|
and.call(this, token);
|
|
27956
27991
|
}
|
|
@@ -35960,6 +35995,7 @@ function getKeyedTagsAndTagOptions(tags) {
|
|
|
35960
35995
|
}
|
|
35961
35996
|
__name(getKeyedTagsAndTagOptions, "getKeyedTagsAndTagOptions");
|
|
35962
35997
|
function getTagColorStyle(color2) {
|
|
35998
|
+
console.log(`color:`, color2);
|
|
35963
35999
|
return color2 ? {
|
|
35964
36000
|
style: {
|
|
35965
36001
|
backgroundColor: color2,
|
|
@@ -36325,22 +36361,6 @@ const _TgSelect = class _TgSelect extends React$2.Component {
|
|
|
36325
36361
|
})
|
|
36326
36362
|
}), rest)
|
|
36327
36363
|
);
|
|
36328
|
-
if (backgroundColor) {
|
|
36329
|
-
return /* @__PURE__ */ React$2.createElement(
|
|
36330
|
-
"div",
|
|
36331
|
-
{
|
|
36332
|
-
style: {
|
|
36333
|
-
backgroundColor,
|
|
36334
|
-
borderRadius: "4px 4px 4px 4px",
|
|
36335
|
-
overflow: "hidden",
|
|
36336
|
-
width: "fit-content",
|
|
36337
|
-
color: "white",
|
|
36338
|
-
border: "2px solid white"
|
|
36339
|
-
}
|
|
36340
|
-
},
|
|
36341
|
-
toRet
|
|
36342
|
-
);
|
|
36343
|
-
}
|
|
36344
36364
|
return toRet;
|
|
36345
36365
|
}
|
|
36346
36366
|
};
|
|
@@ -36964,11 +36984,11 @@ var implementation$8 = /* @__PURE__ */ __name(function bind(that) {
|
|
|
36964
36984
|
}
|
|
36965
36985
|
bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
|
|
36966
36986
|
if (target.prototype) {
|
|
36967
|
-
var
|
|
36987
|
+
var Empty = /* @__PURE__ */ __name(function Empty2() {
|
|
36968
36988
|
}, "Empty");
|
|
36969
|
-
|
|
36970
|
-
bound.prototype = new
|
|
36971
|
-
|
|
36989
|
+
Empty.prototype = target.prototype;
|
|
36990
|
+
bound.prototype = new Empty();
|
|
36991
|
+
Empty.prototype = null;
|
|
36972
36992
|
}
|
|
36973
36993
|
return bound;
|
|
36974
36994
|
}, "bind");
|
|
@@ -41319,7 +41339,7 @@ var _extends$f = Object.assign || function(target) {
|
|
|
41319
41339
|
return target;
|
|
41320
41340
|
};
|
|
41321
41341
|
var _createClass$9 = /* @__PURE__ */ function() {
|
|
41322
|
-
function
|
|
41342
|
+
function defineProperties3(target, props) {
|
|
41323
41343
|
for (var i = 0; i < props.length; i++) {
|
|
41324
41344
|
var descriptor2 = props[i];
|
|
41325
41345
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -41329,12 +41349,12 @@ var _createClass$9 = /* @__PURE__ */ function() {
|
|
|
41329
41349
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
41330
41350
|
}
|
|
41331
41351
|
}
|
|
41332
|
-
__name(
|
|
41352
|
+
__name(defineProperties3, "defineProperties");
|
|
41333
41353
|
return function(Constructor, protoProps, staticProps) {
|
|
41334
41354
|
if (protoProps)
|
|
41335
|
-
|
|
41355
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
41336
41356
|
if (staticProps)
|
|
41337
|
-
|
|
41357
|
+
defineProperties3(Constructor, staticProps);
|
|
41338
41358
|
return Constructor;
|
|
41339
41359
|
};
|
|
41340
41360
|
}();
|
|
@@ -41476,7 +41496,7 @@ var Alpha = function(_ref) {
|
|
|
41476
41496
|
return Alpha2;
|
|
41477
41497
|
}(React$2.PureComponent || React$2.Component);
|
|
41478
41498
|
var _createClass$8 = /* @__PURE__ */ function() {
|
|
41479
|
-
function
|
|
41499
|
+
function defineProperties3(target, props) {
|
|
41480
41500
|
for (var i = 0; i < props.length; i++) {
|
|
41481
41501
|
var descriptor2 = props[i];
|
|
41482
41502
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -41486,12 +41506,12 @@ var _createClass$8 = /* @__PURE__ */ function() {
|
|
|
41486
41506
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
41487
41507
|
}
|
|
41488
41508
|
}
|
|
41489
|
-
__name(
|
|
41509
|
+
__name(defineProperties3, "defineProperties");
|
|
41490
41510
|
return function(Constructor, protoProps, staticProps) {
|
|
41491
41511
|
if (protoProps)
|
|
41492
|
-
|
|
41512
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
41493
41513
|
if (staticProps)
|
|
41494
|
-
|
|
41514
|
+
defineProperties3(Constructor, staticProps);
|
|
41495
41515
|
return Constructor;
|
|
41496
41516
|
};
|
|
41497
41517
|
}();
|
|
@@ -41724,7 +41744,7 @@ var calculateChange$1 = /* @__PURE__ */ __name(function calculateChange2(e2, dir
|
|
|
41724
41744
|
return null;
|
|
41725
41745
|
}, "calculateChange");
|
|
41726
41746
|
var _createClass$7 = /* @__PURE__ */ function() {
|
|
41727
|
-
function
|
|
41747
|
+
function defineProperties3(target, props) {
|
|
41728
41748
|
for (var i = 0; i < props.length; i++) {
|
|
41729
41749
|
var descriptor2 = props[i];
|
|
41730
41750
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -41734,12 +41754,12 @@ var _createClass$7 = /* @__PURE__ */ function() {
|
|
|
41734
41754
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
41735
41755
|
}
|
|
41736
41756
|
}
|
|
41737
|
-
__name(
|
|
41757
|
+
__name(defineProperties3, "defineProperties");
|
|
41738
41758
|
return function(Constructor, protoProps, staticProps) {
|
|
41739
41759
|
if (protoProps)
|
|
41740
|
-
|
|
41760
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
41741
41761
|
if (staticProps)
|
|
41742
|
-
|
|
41762
|
+
defineProperties3(Constructor, staticProps);
|
|
41743
41763
|
return Constructor;
|
|
41744
41764
|
};
|
|
41745
41765
|
}();
|
|
@@ -41976,7 +41996,7 @@ var calculateChange3 = /* @__PURE__ */ __name(function calculateChange4(e2, hsl,
|
|
|
41976
41996
|
};
|
|
41977
41997
|
}, "calculateChange");
|
|
41978
41998
|
var _createClass$6 = /* @__PURE__ */ function() {
|
|
41979
|
-
function
|
|
41999
|
+
function defineProperties3(target, props) {
|
|
41980
42000
|
for (var i = 0; i < props.length; i++) {
|
|
41981
42001
|
var descriptor2 = props[i];
|
|
41982
42002
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -41986,12 +42006,12 @@ var _createClass$6 = /* @__PURE__ */ function() {
|
|
|
41986
42006
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
41987
42007
|
}
|
|
41988
42008
|
}
|
|
41989
|
-
__name(
|
|
42009
|
+
__name(defineProperties3, "defineProperties");
|
|
41990
42010
|
return function(Constructor, protoProps, staticProps) {
|
|
41991
42011
|
if (protoProps)
|
|
41992
|
-
|
|
42012
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
41993
42013
|
if (staticProps)
|
|
41994
|
-
|
|
42014
|
+
defineProperties3(Constructor, staticProps);
|
|
41995
42015
|
return Constructor;
|
|
41996
42016
|
};
|
|
41997
42017
|
}();
|
|
@@ -43229,7 +43249,7 @@ var _extends$e = Object.assign || function(target) {
|
|
|
43229
43249
|
return target;
|
|
43230
43250
|
};
|
|
43231
43251
|
var _createClass$5 = /* @__PURE__ */ function() {
|
|
43232
|
-
function
|
|
43252
|
+
function defineProperties3(target, props) {
|
|
43233
43253
|
for (var i = 0; i < props.length; i++) {
|
|
43234
43254
|
var descriptor2 = props[i];
|
|
43235
43255
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -43239,12 +43259,12 @@ var _createClass$5 = /* @__PURE__ */ function() {
|
|
|
43239
43259
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
43240
43260
|
}
|
|
43241
43261
|
}
|
|
43242
|
-
__name(
|
|
43262
|
+
__name(defineProperties3, "defineProperties");
|
|
43243
43263
|
return function(Constructor, protoProps, staticProps) {
|
|
43244
43264
|
if (protoProps)
|
|
43245
|
-
|
|
43265
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
43246
43266
|
if (staticProps)
|
|
43247
|
-
|
|
43267
|
+
defineProperties3(Constructor, staticProps);
|
|
43248
43268
|
return Constructor;
|
|
43249
43269
|
};
|
|
43250
43270
|
}();
|
|
@@ -43341,7 +43361,7 @@ var _extends$d = Object.assign || function(target) {
|
|
|
43341
43361
|
return target;
|
|
43342
43362
|
};
|
|
43343
43363
|
var _createClass$4 = /* @__PURE__ */ function() {
|
|
43344
|
-
function
|
|
43364
|
+
function defineProperties3(target, props) {
|
|
43345
43365
|
for (var i = 0; i < props.length; i++) {
|
|
43346
43366
|
var descriptor2 = props[i];
|
|
43347
43367
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -43351,12 +43371,12 @@ var _createClass$4 = /* @__PURE__ */ function() {
|
|
|
43351
43371
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
43352
43372
|
}
|
|
43353
43373
|
}
|
|
43354
|
-
__name(
|
|
43374
|
+
__name(defineProperties3, "defineProperties");
|
|
43355
43375
|
return function(Constructor, protoProps, staticProps) {
|
|
43356
43376
|
if (protoProps)
|
|
43357
|
-
|
|
43377
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
43358
43378
|
if (staticProps)
|
|
43359
|
-
|
|
43379
|
+
defineProperties3(Constructor, staticProps);
|
|
43360
43380
|
return Constructor;
|
|
43361
43381
|
};
|
|
43362
43382
|
}();
|
|
@@ -43837,7 +43857,7 @@ var _default$3 = UnfoldMoreHorizontalIcon.default = function(_ref) {
|
|
|
43837
43857
|
);
|
|
43838
43858
|
};
|
|
43839
43859
|
var _createClass$3 = /* @__PURE__ */ function() {
|
|
43840
|
-
function
|
|
43860
|
+
function defineProperties3(target, props) {
|
|
43841
43861
|
for (var i = 0; i < props.length; i++) {
|
|
43842
43862
|
var descriptor2 = props[i];
|
|
43843
43863
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -43847,12 +43867,12 @@ var _createClass$3 = /* @__PURE__ */ function() {
|
|
|
43847
43867
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
43848
43868
|
}
|
|
43849
43869
|
}
|
|
43850
|
-
__name(
|
|
43870
|
+
__name(defineProperties3, "defineProperties");
|
|
43851
43871
|
return function(Constructor, protoProps, staticProps) {
|
|
43852
43872
|
if (protoProps)
|
|
43853
|
-
|
|
43873
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
43854
43874
|
if (staticProps)
|
|
43855
|
-
|
|
43875
|
+
defineProperties3(Constructor, staticProps);
|
|
43856
43876
|
return Constructor;
|
|
43857
43877
|
};
|
|
43858
43878
|
}();
|
|
@@ -45262,7 +45282,7 @@ var PhotoshopPreviews = /* @__PURE__ */ __name(function PhotoshopPreviews2(_ref)
|
|
|
45262
45282
|
);
|
|
45263
45283
|
}, "PhotoshopPreviews");
|
|
45264
45284
|
var _createClass$2 = /* @__PURE__ */ function() {
|
|
45265
|
-
function
|
|
45285
|
+
function defineProperties3(target, props) {
|
|
45266
45286
|
for (var i = 0; i < props.length; i++) {
|
|
45267
45287
|
var descriptor2 = props[i];
|
|
45268
45288
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -45272,12 +45292,12 @@ var _createClass$2 = /* @__PURE__ */ function() {
|
|
|
45272
45292
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
45273
45293
|
}
|
|
45274
45294
|
}
|
|
45275
|
-
__name(
|
|
45295
|
+
__name(defineProperties3, "defineProperties");
|
|
45276
45296
|
return function(Constructor, protoProps, staticProps) {
|
|
45277
45297
|
if (protoProps)
|
|
45278
|
-
|
|
45298
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
45279
45299
|
if (staticProps)
|
|
45280
|
-
|
|
45300
|
+
defineProperties3(Constructor, staticProps);
|
|
45281
45301
|
return Constructor;
|
|
45282
45302
|
};
|
|
45283
45303
|
}();
|
|
@@ -49882,7 +49902,7 @@ var KNOWN_STATICS = {
|
|
|
49882
49902
|
arity: true
|
|
49883
49903
|
};
|
|
49884
49904
|
var defineProperty$3 = Object.defineProperty;
|
|
49885
|
-
var
|
|
49905
|
+
var getOwnPropertyNames3 = Object.getOwnPropertyNames;
|
|
49886
49906
|
var getOwnPropertySymbols3 = Object.getOwnPropertySymbols;
|
|
49887
49907
|
var getOwnPropertyDescriptor3 = Object.getOwnPropertyDescriptor;
|
|
49888
49908
|
var getPrototypeOf = Object.getPrototypeOf;
|
|
@@ -49895,7 +49915,7 @@ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
|
49895
49915
|
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
|
49896
49916
|
}
|
|
49897
49917
|
}
|
|
49898
|
-
var keys5 =
|
|
49918
|
+
var keys5 = getOwnPropertyNames3(sourceComponent);
|
|
49899
49919
|
if (getOwnPropertySymbols3) {
|
|
49900
49920
|
keys5 = keys5.concat(getOwnPropertySymbols3(sourceComponent));
|
|
49901
49921
|
}
|
|
@@ -69529,7 +69549,7 @@ ObjectWithoutPrototypeCache.prototype.set = function(key, value) {
|
|
|
69529
69549
|
this.cache[key] = value;
|
|
69530
69550
|
};
|
|
69531
69551
|
var cacheDefault = {
|
|
69532
|
-
create: /* @__PURE__ */ __name(function
|
|
69552
|
+
create: /* @__PURE__ */ __name(function create3() {
|
|
69533
69553
|
return new ObjectWithoutPrototypeCache();
|
|
69534
69554
|
}, "create")
|
|
69535
69555
|
};
|
|
@@ -74635,7 +74655,7 @@ __name(requireEmpty, "requireEmpty");
|
|
|
74635
74655
|
}
|
|
74636
74656
|
}, "classCallCheck");
|
|
74637
74657
|
var createClass2 = /* @__PURE__ */ function() {
|
|
74638
|
-
function
|
|
74658
|
+
function defineProperties3(target, props) {
|
|
74639
74659
|
for (var i = 0; i < props.length; i++) {
|
|
74640
74660
|
var descriptor2 = props[i];
|
|
74641
74661
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -74645,12 +74665,12 @@ __name(requireEmpty, "requireEmpty");
|
|
|
74645
74665
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
74646
74666
|
}
|
|
74647
74667
|
}
|
|
74648
|
-
__name(
|
|
74668
|
+
__name(defineProperties3, "defineProperties");
|
|
74649
74669
|
return function(Constructor, protoProps, staticProps) {
|
|
74650
74670
|
if (protoProps)
|
|
74651
|
-
|
|
74671
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
74652
74672
|
if (staticProps)
|
|
74653
|
-
|
|
74673
|
+
defineProperties3(Constructor, staticProps);
|
|
74654
74674
|
return Constructor;
|
|
74655
74675
|
};
|
|
74656
74676
|
}();
|
|
@@ -78465,10 +78485,10 @@ __name(requireEmpty, "requireEmpty");
|
|
|
78465
78485
|
return value;
|
|
78466
78486
|
}
|
|
78467
78487
|
__name(dateReviver, "dateReviver");
|
|
78468
|
-
function
|
|
78488
|
+
function create5(options) {
|
|
78469
78489
|
return new DiffPatcher(options);
|
|
78470
78490
|
}
|
|
78471
|
-
__name(
|
|
78491
|
+
__name(create5, "create");
|
|
78472
78492
|
var defaultInstance$4 = void 0;
|
|
78473
78493
|
function diff() {
|
|
78474
78494
|
if (!defaultInstance$4) {
|
|
@@ -78508,7 +78528,7 @@ __name(requireEmpty, "requireEmpty");
|
|
|
78508
78528
|
exports3.DiffPatcher = DiffPatcher;
|
|
78509
78529
|
exports3.formatters = index2;
|
|
78510
78530
|
exports3.console = console$1;
|
|
78511
|
-
exports3.create =
|
|
78531
|
+
exports3.create = create5;
|
|
78512
78532
|
exports3.dateReviver = dateReviver;
|
|
78513
78533
|
exports3.diff = diff;
|
|
78514
78534
|
exports3.patch = patch2;
|
|
@@ -78892,123 +78912,167 @@ function getAminoAcidFromSequenceTriplet(sequenceString) {
|
|
|
78892
78912
|
return proteinAlphabet[letter.toUpperCase()];
|
|
78893
78913
|
}
|
|
78894
78914
|
__name(getAminoAcidFromSequenceTriplet, "getAminoAcidFromSequenceTriplet");
|
|
78895
|
-
function
|
|
78915
|
+
function getNextTriplet(index2, sequenceString, exonRange) {
|
|
78916
|
+
let triplet = "";
|
|
78917
|
+
let internalIndex;
|
|
78918
|
+
const codonPositions = [];
|
|
78919
|
+
const isBaseInExon = /* @__PURE__ */ __name((baseIndex) => exonRange.some(
|
|
78920
|
+
(r2) => isPositionWithinRange(baseIndex, r2, sequenceString.length, true, false)
|
|
78921
|
+
), "isBaseInExon");
|
|
78922
|
+
for (internalIndex = index2; internalIndex < sequenceString.length; internalIndex++) {
|
|
78923
|
+
if (triplet.length === 3) {
|
|
78924
|
+
break;
|
|
78925
|
+
}
|
|
78926
|
+
if (isBaseInExon(internalIndex)) {
|
|
78927
|
+
triplet += sequenceString[internalIndex];
|
|
78928
|
+
codonPositions.push(internalIndex);
|
|
78929
|
+
}
|
|
78930
|
+
}
|
|
78931
|
+
return { triplet, basesRead: internalIndex - index2, codonPositions };
|
|
78932
|
+
}
|
|
78933
|
+
__name(getNextTriplet, "getNextTriplet");
|
|
78934
|
+
function getTranslatedSequenceProperties(originalSequenceString, forward, optionalSubrangeRange, isProteinSequence) {
|
|
78896
78935
|
const originalSequenceStringLength = isProteinSequence ? originalSequenceString.length * 3 : originalSequenceString.length;
|
|
78897
78936
|
let sequenceString = originalSequenceString;
|
|
78898
|
-
|
|
78937
|
+
const translationRange = { start: 0, end: originalSequenceStringLength - 1 };
|
|
78899
78938
|
if (optionalSubrangeRange) {
|
|
78900
78939
|
sequenceString = getSequenceWithinRange(
|
|
78901
78940
|
optionalSubrangeRange,
|
|
78902
78941
|
originalSequenceString
|
|
78903
78942
|
);
|
|
78904
|
-
|
|
78943
|
+
translationRange.start = optionalSubrangeRange.start;
|
|
78944
|
+
translationRange.end = optionalSubrangeRange.end;
|
|
78905
78945
|
}
|
|
78906
78946
|
const sequenceStringLength = isProteinSequence ? sequenceString.length * 3 : sequenceString.length;
|
|
78907
|
-
|
|
78908
|
-
|
|
78909
|
-
|
|
78910
|
-
|
|
78911
|
-
|
|
78912
|
-
|
|
78913
|
-
|
|
78914
|
-
|
|
78915
|
-
{
|
|
78916
|
-
start: 0,
|
|
78917
|
-
end: revCompGapLength - 1
|
|
78918
|
-
},
|
|
78919
|
-
startOffset,
|
|
78947
|
+
if (!isProteinSequence && !forward) {
|
|
78948
|
+
sequenceString = getReverseComplementSequenceString(sequenceString);
|
|
78949
|
+
}
|
|
78950
|
+
const absoluteExonRange = !isProteinSequence && optionalSubrangeRange && optionalSubrangeRange.locations ? optionalSubrangeRange.locations : [translationRange];
|
|
78951
|
+
const exonRange = absoluteExonRange.map((range2) => {
|
|
78952
|
+
let outputRange = translateRange(
|
|
78953
|
+
range2,
|
|
78954
|
+
-translationRange.start,
|
|
78920
78955
|
originalSequenceStringLength
|
|
78921
78956
|
);
|
|
78922
|
-
if (
|
|
78923
|
-
|
|
78924
|
-
|
|
78925
|
-
|
|
78926
|
-
|
|
78927
|
-
|
|
78928
|
-
aminoAcidIndex,
|
|
78929
|
-
sequenceIndex: codonRange.start + i,
|
|
78930
|
-
codonRange,
|
|
78931
|
-
fullCodon: false
|
|
78932
|
-
});
|
|
78933
|
-
}
|
|
78934
|
-
aminoAcidIndex--;
|
|
78957
|
+
if (!forward) {
|
|
78958
|
+
outputRange = flipRelativeRange(
|
|
78959
|
+
outputRange,
|
|
78960
|
+
{ start: 0, end: sequenceStringLength - 1 },
|
|
78961
|
+
sequenceStringLength
|
|
78962
|
+
);
|
|
78935
78963
|
}
|
|
78964
|
+
return outputRange;
|
|
78965
|
+
});
|
|
78966
|
+
return {
|
|
78967
|
+
sequenceString,
|
|
78968
|
+
translationRange,
|
|
78969
|
+
sequenceStringLength,
|
|
78970
|
+
originalSequenceStringLength,
|
|
78971
|
+
exonRange
|
|
78972
|
+
};
|
|
78973
|
+
}
|
|
78974
|
+
__name(getTranslatedSequenceProperties, "getTranslatedSequenceProperties");
|
|
78975
|
+
function positionInCdsToPositionInMainSequence(index2, forward, translationRange, mainSequenceLength) {
|
|
78976
|
+
let outputRange = translateRange(
|
|
78977
|
+
{ start: index2, end: index2 },
|
|
78978
|
+
translationRange.start,
|
|
78979
|
+
mainSequenceLength
|
|
78980
|
+
);
|
|
78981
|
+
if (!forward) {
|
|
78982
|
+
outputRange = flipRelativeRange(
|
|
78983
|
+
outputRange,
|
|
78984
|
+
translationRange,
|
|
78985
|
+
mainSequenceLength
|
|
78986
|
+
);
|
|
78936
78987
|
}
|
|
78937
|
-
|
|
78988
|
+
return outputRange.start;
|
|
78989
|
+
}
|
|
78990
|
+
__name(positionInCdsToPositionInMainSequence, "positionInCdsToPositionInMainSequence");
|
|
78991
|
+
function getAminoAcidDataForEachBaseOfDna(originalSequenceString, forward, optionalSubrangeRange, isProteinSequence) {
|
|
78992
|
+
const {
|
|
78993
|
+
sequenceString,
|
|
78994
|
+
translationRange,
|
|
78995
|
+
sequenceStringLength,
|
|
78996
|
+
originalSequenceStringLength,
|
|
78997
|
+
exonRange
|
|
78998
|
+
} = getTranslatedSequenceProperties(
|
|
78999
|
+
originalSequenceString,
|
|
79000
|
+
forward,
|
|
79001
|
+
optionalSubrangeRange,
|
|
79002
|
+
isProteinSequence
|
|
79003
|
+
);
|
|
79004
|
+
const aminoAcidDataForEachBaseOfDNA = [];
|
|
79005
|
+
for (let index2 = 0; index2 < sequenceStringLength; index2 += 3) {
|
|
78938
79006
|
let aminoAcid;
|
|
79007
|
+
const aminoAcidIndex = index2 / 3;
|
|
79008
|
+
let codonPositionsInCDS;
|
|
79009
|
+
let basesRead;
|
|
78939
79010
|
if (isProteinSequence) {
|
|
78940
|
-
|
|
79011
|
+
codonPositionsInCDS = [0, 1, 2].map((i) => index2 + i);
|
|
79012
|
+
basesRead = 3;
|
|
79013
|
+
aminoAcid = proteinAlphabet[sequenceString[index2 / 3].toUpperCase()];
|
|
78941
79014
|
} else {
|
|
78942
|
-
|
|
78943
|
-
|
|
78944
|
-
|
|
78945
|
-
|
|
78946
|
-
|
|
78947
|
-
|
|
78948
|
-
|
|
78949
|
-
|
|
78950
|
-
|
|
78951
|
-
|
|
78952
|
-
|
|
78953
|
-
|
|
78954
|
-
|
|
79015
|
+
const {
|
|
79016
|
+
triplet,
|
|
79017
|
+
basesRead: _basesRead,
|
|
79018
|
+
codonPositions
|
|
79019
|
+
} = getNextTriplet(index2, sequenceString, exonRange);
|
|
79020
|
+
basesRead = _basesRead;
|
|
79021
|
+
codonPositionsInCDS = codonPositions;
|
|
79022
|
+
aminoAcid = triplet.length === 3 ? getAminoAcidFromSequenceTriplet(triplet) : getAminoAcidFromSequenceTriplet("xxx");
|
|
79023
|
+
}
|
|
79024
|
+
const absoluteCodonPositions = codonPositionsInCDS.map(
|
|
79025
|
+
(i) => positionInCdsToPositionInMainSequence(
|
|
79026
|
+
i,
|
|
79027
|
+
forward,
|
|
79028
|
+
translationRange,
|
|
79029
|
+
originalSequenceStringLength
|
|
79030
|
+
)
|
|
78955
79031
|
);
|
|
78956
|
-
|
|
78957
|
-
|
|
78958
|
-
|
|
78959
|
-
|
|
78960
|
-
|
|
78961
|
-
|
|
78962
|
-
|
|
78963
|
-
|
|
78964
|
-
|
|
78965
|
-
|
|
78966
|
-
|
|
78967
|
-
|
|
78968
|
-
|
|
78969
|
-
|
|
78970
|
-
|
|
78971
|
-
|
|
78972
|
-
|
|
78973
|
-
|
|
78974
|
-
|
|
78975
|
-
|
|
78976
|
-
|
|
78977
|
-
|
|
78978
|
-
|
|
78979
|
-
|
|
78980
|
-
|
|
78981
|
-
|
|
78982
|
-
|
|
78983
|
-
|
|
78984
|
-
|
|
78985
|
-
|
|
78986
|
-
|
|
79032
|
+
const codonRange = forward ? {
|
|
79033
|
+
start: absoluteCodonPositions[0],
|
|
79034
|
+
end: absoluteCodonPositions[codonPositionsInCDS.length - 1]
|
|
79035
|
+
} : {
|
|
79036
|
+
start: absoluteCodonPositions[codonPositionsInCDS.length - 1],
|
|
79037
|
+
end: absoluteCodonPositions[0]
|
|
79038
|
+
};
|
|
79039
|
+
let positionInCodon = 0;
|
|
79040
|
+
for (let i = 0; i < basesRead; i++) {
|
|
79041
|
+
const posInCds = i + index2;
|
|
79042
|
+
if (codonPositionsInCDS.includes(posInCds)) {
|
|
79043
|
+
aminoAcidDataForEachBaseOfDNA.push({
|
|
79044
|
+
aminoAcid,
|
|
79045
|
+
positionInCodon,
|
|
79046
|
+
aminoAcidIndex,
|
|
79047
|
+
sequenceIndex: absoluteCodonPositions[i],
|
|
79048
|
+
codonRange,
|
|
79049
|
+
fullCodon: codonPositionsInCDS.length === 3
|
|
79050
|
+
});
|
|
79051
|
+
positionInCodon++;
|
|
79052
|
+
} else {
|
|
79053
|
+
aminoAcidDataForEachBaseOfDNA.push({
|
|
79054
|
+
aminoAcid: null,
|
|
79055
|
+
positionInCodon: null,
|
|
79056
|
+
aminoAcidIndex: null,
|
|
79057
|
+
sequenceIndex: positionInCdsToPositionInMainSequence(
|
|
79058
|
+
posInCds,
|
|
79059
|
+
forward,
|
|
79060
|
+
translationRange,
|
|
79061
|
+
originalSequenceStringLength
|
|
79062
|
+
),
|
|
79063
|
+
codonRange: null,
|
|
79064
|
+
fullCodon: null
|
|
79065
|
+
});
|
|
79066
|
+
}
|
|
78987
79067
|
}
|
|
78988
|
-
|
|
78989
|
-
const lengthOfEndBpsNotCoveredByAminoAcids = sequenceStringLength - aminoAcidDataForEachBaseOfDNA.length;
|
|
78990
|
-
codonRange = translateRange(
|
|
78991
|
-
{
|
|
78992
|
-
start: sequenceStringLength - lengthOfEndBpsNotCoveredByAminoAcids,
|
|
78993
|
-
end: sequenceStringLength - 1
|
|
78994
|
-
},
|
|
78995
|
-
startOffset,
|
|
78996
|
-
originalSequenceStringLength
|
|
78997
|
-
);
|
|
78998
|
-
for (let j = 0; j < lengthOfEndBpsNotCoveredByAminoAcids; j++) {
|
|
78999
|
-
aminoAcidDataForEachBaseOfDNA.push({
|
|
79000
|
-
aminoAcid: getAminoAcidFromSequenceTriplet("xxx"),
|
|
79001
|
-
//fake xxx triplet returns the gap amino acid
|
|
79002
|
-
positionInCodon: j,
|
|
79003
|
-
aminoAcidIndex,
|
|
79004
|
-
sequenceIndex: codonRange.start + j,
|
|
79005
|
-
fullCodon: false,
|
|
79006
|
-
codonRange
|
|
79007
|
-
});
|
|
79068
|
+
index2 += basesRead - codonPositionsInCDS.length;
|
|
79008
79069
|
}
|
|
79009
79070
|
if (sequenceStringLength !== aminoAcidDataForEachBaseOfDNA.length) {
|
|
79010
79071
|
throw new Error("something went wrong!");
|
|
79011
79072
|
}
|
|
79073
|
+
if (!forward) {
|
|
79074
|
+
aminoAcidDataForEachBaseOfDNA.reverse();
|
|
79075
|
+
}
|
|
79012
79076
|
return aminoAcidDataForEachBaseOfDNA;
|
|
79013
79077
|
}
|
|
79014
79078
|
__name(getAminoAcidDataForEachBaseOfDna, "getAminoAcidDataForEachBaseOfDna");
|
|
@@ -102938,7 +103002,7 @@ var defineProperty$2 = /* @__PURE__ */ __name(function(object3, name2, value, pr
|
|
|
102938
103002
|
defineDataProperty2(object3, name2, value);
|
|
102939
103003
|
}
|
|
102940
103004
|
}, "defineProperty$2");
|
|
102941
|
-
var
|
|
103005
|
+
var defineProperties2 = /* @__PURE__ */ __name(function(object3, map3) {
|
|
102942
103006
|
var predicates = arguments.length > 2 ? arguments[2] : {};
|
|
102943
103007
|
var props = keys$1(map3);
|
|
102944
103008
|
if (hasSymbols2) {
|
|
@@ -102948,8 +103012,8 @@ var defineProperties3 = /* @__PURE__ */ __name(function(object3, map3) {
|
|
|
102948
103012
|
defineProperty$2(object3, props[i], map3[props[i]], predicates[props[i]]);
|
|
102949
103013
|
}
|
|
102950
103014
|
}, "defineProperties");
|
|
102951
|
-
|
|
102952
|
-
var defineProperties_1 =
|
|
103015
|
+
defineProperties2.supportsDescriptors = !!supportsDescriptors$2;
|
|
103016
|
+
var defineProperties_1 = defineProperties2;
|
|
102953
103017
|
var numberIsNaN = /* @__PURE__ */ __name(function(value) {
|
|
102954
103018
|
return value !== value;
|
|
102955
103019
|
}, "numberIsNaN");
|
|
@@ -105572,7 +105636,7 @@ function showDialog({
|
|
|
105572
105636
|
(_a2 = document.activeElement.closest(".veEditor")) == null ? void 0 : _a2.className.split(" ").forEach((c2) => {
|
|
105573
105637
|
if (!c2.trim())
|
|
105574
105638
|
return;
|
|
105575
|
-
if (!c2.trim().includes("veEditor")) {
|
|
105639
|
+
if (!c2.trim().includes("veEditor") && !c2.trim().includes("previewModeFullscreen")) {
|
|
105576
105640
|
editorName = c2;
|
|
105577
105641
|
}
|
|
105578
105642
|
});
|
|
@@ -106051,18 +106115,19 @@ const withEditorProps = compose(
|
|
|
106051
106115
|
),
|
|
106052
106116
|
withHandlers({
|
|
106053
106117
|
wrappedInsertSequenceDataAtPositionOrRange: (props) => {
|
|
106054
|
-
return (_sequenceDataToInsert, _existingSequenceData, _caretPositionOrRange, _options) => {
|
|
106118
|
+
return (_sequenceDataToInsert, _existingSequenceData, _caretPositionOrRange, _options) => __async(exports, null, function* () {
|
|
106055
106119
|
const {
|
|
106056
106120
|
sequenceDataToInsert,
|
|
106057
106121
|
existingSequenceData,
|
|
106058
106122
|
caretPositionOrRange,
|
|
106059
106123
|
options
|
|
106060
|
-
} = props.beforeSequenceInsertOrDelete ? props.beforeSequenceInsertOrDelete(
|
|
106124
|
+
} = props.beforeSequenceInsertOrDelete ? (yield props.beforeSequenceInsertOrDelete(
|
|
106061
106125
|
tidyUpSequenceData(_sequenceDataToInsert),
|
|
106062
106126
|
tidyUpSequenceData(_existingSequenceData),
|
|
106063
106127
|
_caretPositionOrRange,
|
|
106064
106128
|
_options
|
|
106065
|
-
) || {} : {};
|
|
106129
|
+
)) || {} : {};
|
|
106130
|
+
console.log(`zoink2`);
|
|
106066
106131
|
return [
|
|
106067
106132
|
insertSequenceDataAtPositionOrRange(
|
|
106068
106133
|
sequenceDataToInsert || _sequenceDataToInsert,
|
|
@@ -106072,7 +106137,7 @@ const withEditorProps = compose(
|
|
|
106072
106137
|
),
|
|
106073
106138
|
options || _options || {}
|
|
106074
106139
|
];
|
|
106075
|
-
};
|
|
106140
|
+
});
|
|
106076
106141
|
},
|
|
106077
106142
|
upsertTranslation: (props) => {
|
|
106078
106143
|
return (translationToUpsert) => __async(exports, null, function* () {
|
|
@@ -106157,7 +106222,7 @@ const withEditorProps = compose(
|
|
|
106157
106222
|
);
|
|
106158
106223
|
caretPositionUpdate2(0);
|
|
106159
106224
|
},
|
|
106160
|
-
handleReverseComplementSelection: (props) => () => {
|
|
106225
|
+
handleReverseComplementSelection: (props) => () => __async(exports, null, function* () {
|
|
106161
106226
|
const {
|
|
106162
106227
|
sequenceData: sequenceData2,
|
|
106163
106228
|
updateSequenceData: updateSequenceData2,
|
|
@@ -106173,7 +106238,7 @@ const withEditorProps = compose(
|
|
|
106173
106238
|
range: selectionLayer2
|
|
106174
106239
|
}
|
|
106175
106240
|
);
|
|
106176
|
-
const [newSeqData] = wrappedInsertSequenceDataAtPositionOrRange(
|
|
106241
|
+
const [newSeqData] = yield wrappedInsertSequenceDataAtPositionOrRange(
|
|
106177
106242
|
reversedSeqData,
|
|
106178
106243
|
sequenceData2,
|
|
106179
106244
|
selectionLayer2,
|
|
@@ -106182,8 +106247,8 @@ const withEditorProps = compose(
|
|
|
106182
106247
|
}
|
|
106183
106248
|
);
|
|
106184
106249
|
updateSequenceData2(newSeqData);
|
|
106185
|
-
},
|
|
106186
|
-
handleComplementSelection: (props) => () => {
|
|
106250
|
+
}),
|
|
106251
|
+
handleComplementSelection: (props) => () => __async(exports, null, function* () {
|
|
106187
106252
|
const {
|
|
106188
106253
|
sequenceData: sequenceData2,
|
|
106189
106254
|
updateSequenceData: updateSequenceData2,
|
|
@@ -106196,7 +106261,7 @@ const withEditorProps = compose(
|
|
|
106196
106261
|
const comp = getComplementSequenceAndAnnotations(sequenceData2, {
|
|
106197
106262
|
range: selectionLayer2
|
|
106198
106263
|
});
|
|
106199
|
-
const [newSeqData] = wrappedInsertSequenceDataAtPositionOrRange(
|
|
106264
|
+
const [newSeqData] = yield wrappedInsertSequenceDataAtPositionOrRange(
|
|
106200
106265
|
comp,
|
|
106201
106266
|
sequenceData2,
|
|
106202
106267
|
selectionLayer2,
|
|
@@ -106205,7 +106270,7 @@ const withEditorProps = compose(
|
|
|
106205
106270
|
}
|
|
106206
106271
|
);
|
|
106207
106272
|
updateSequenceData2(newSeqData);
|
|
106208
|
-
},
|
|
106273
|
+
}),
|
|
106209
106274
|
handleReverseComplementSequence: (props) => () => {
|
|
106210
106275
|
const { sequenceData: sequenceData2, updateSequenceData: updateSequenceData2 } = props;
|
|
106211
106276
|
updateSequenceData2(
|
|
@@ -111711,7 +111776,7 @@ function usePrevious(current) {
|
|
|
111711
111776
|
return ref2;
|
|
111712
111777
|
}
|
|
111713
111778
|
__name(usePrevious, "usePrevious");
|
|
111714
|
-
function
|
|
111779
|
+
function create4() {
|
|
111715
111780
|
let lock = null;
|
|
111716
111781
|
function isClaimed() {
|
|
111717
111782
|
return Boolean(lock);
|
|
@@ -111750,7 +111815,7 @@ function create5() {
|
|
|
111750
111815
|
tryAbandon
|
|
111751
111816
|
};
|
|
111752
111817
|
}
|
|
111753
|
-
__name(
|
|
111818
|
+
__name(create4, "create");
|
|
111754
111819
|
function isDragging(state2) {
|
|
111755
111820
|
if (state2.phase === "IDLE" || state2.phase === "DROP_ANIMATING") {
|
|
111756
111821
|
return false;
|
|
@@ -112793,7 +112858,7 @@ function useSensorMarshal(_ref4) {
|
|
|
112793
112858
|
enableDefaultSensors
|
|
112794
112859
|
} = _ref4;
|
|
112795
112860
|
const useSensors = [...enableDefaultSensors ? defaultSensors : [], ...customSensors || []];
|
|
112796
|
-
const lockAPI = React$2.useState(() =>
|
|
112861
|
+
const lockAPI = React$2.useState(() => create4())[0];
|
|
112797
112862
|
const tryAbandonLock = useCallback(/* @__PURE__ */ __name(function tryAbandonLock2(previous2, current) {
|
|
112798
112863
|
if (isDragging(previous2) && !isDragging(current)) {
|
|
112799
112864
|
lockAPI.tryAbandon();
|
|
@@ -118622,7 +118687,7 @@ function AASliver(props) {
|
|
|
118622
118687
|
fill: color2 || "gray"
|
|
118623
118688
|
}
|
|
118624
118689
|
)),
|
|
118625
|
-
!isFiller && /* @__PURE__ */ React$2.createElement(
|
|
118690
|
+
(!isFiller || isTruncatedEnd && isTruncatedStart) && /* @__PURE__ */ React$2.createElement(
|
|
118626
118691
|
"text",
|
|
118627
118692
|
{
|
|
118628
118693
|
fontSize: 25,
|
|
@@ -118699,18 +118764,39 @@ const _Translation = class _Translation extends React$2.Component {
|
|
|
118699
118764
|
subrangeStartRelativeToAnnotationStart,
|
|
118700
118765
|
aminoAcids
|
|
118701
118766
|
);
|
|
118767
|
+
let prevAaSliver;
|
|
118768
|
+
let nextAaSliver = aminoAcidsForSubrange[1];
|
|
118769
|
+
const lastIndex = aminoAcidsForSubrange.length - 1;
|
|
118702
118770
|
const translationSVG = aminoAcidsForSubrange.map(
|
|
118703
118771
|
function(aminoAcidSliver, index2) {
|
|
118704
|
-
|
|
118705
|
-
|
|
118706
|
-
|
|
118772
|
+
if (aminoAcidSliver.positionInCodon === null) {
|
|
118773
|
+
prevAaSliver = aminoAcidSliver;
|
|
118774
|
+
nextAaSliver = aminoAcidsForSubrange[index2 + 2];
|
|
118775
|
+
return /* @__PURE__ */ React$2.createElement(
|
|
118776
|
+
"rect",
|
|
118777
|
+
{
|
|
118778
|
+
x: index2 * charWidth2,
|
|
118779
|
+
y: height2 / 2 - height2 / 16,
|
|
118780
|
+
width: charWidth2,
|
|
118781
|
+
height: height2 / 8,
|
|
118782
|
+
fill: "grey",
|
|
118783
|
+
stroke: "black",
|
|
118784
|
+
strokeWidth: 1
|
|
118785
|
+
}
|
|
118786
|
+
);
|
|
118787
|
+
}
|
|
118788
|
+
const isEndFiller = (index2 === 0 || (prevAaSliver == null ? void 0 : prevAaSliver.positionInCodon) === null) && aminoAcidSliver.positionInCodon === (annotation.forward ? 2 : 0);
|
|
118789
|
+
const isStartFiller = (index2 === lastIndex || (nextAaSliver == null ? void 0 : nextAaSliver.positionInCodon) === null) && aminoAcidSliver.positionInCodon === (annotation.forward ? 0 : 2);
|
|
118790
|
+
let isTruncatedEnd = (index2 === 0 || (prevAaSliver == null ? void 0 : prevAaSliver.positionInCodon) === null) && aminoAcidSliver.positionInCodon === 1;
|
|
118791
|
+
let isTruncatedStart = (index2 === lastIndex || (nextAaSliver == null ? void 0 : nextAaSliver.positionInCodon) === null) && aminoAcidSliver.positionInCodon === 1;
|
|
118707
118792
|
if (!annotation.forward) {
|
|
118708
118793
|
const holder = isTruncatedEnd;
|
|
118709
118794
|
isTruncatedEnd = isTruncatedStart;
|
|
118710
118795
|
isTruncatedStart = holder;
|
|
118711
118796
|
}
|
|
118712
|
-
const isStartFiller = index2 === aminoAcidsForSubrange.length - 1 && aminoAcidSliver.positionInCodon === (annotation.forward ? 0 : 2);
|
|
118713
118797
|
if (aminoAcidSliver.positionInCodon !== 1 && !isStartFiller && !isEndFiller) {
|
|
118798
|
+
prevAaSliver = aminoAcidSliver;
|
|
118799
|
+
nextAaSliver = aminoAcidsForSubrange[index2 + 2];
|
|
118714
118800
|
return null;
|
|
118715
118801
|
}
|
|
118716
118802
|
const { gapsInside, gapsBefore } = getGaps(aminoAcidSliver.codonRange);
|
|
@@ -118727,10 +118813,12 @@ const _Translation = class _Translation extends React$2.Component {
|
|
|
118727
118813
|
} else {
|
|
118728
118814
|
color2 = aminoAcid.color;
|
|
118729
118815
|
}
|
|
118816
|
+
prevAaSliver = aminoAcidSliver;
|
|
118817
|
+
nextAaSliver = aminoAcidsForSubrange[index2 + 2];
|
|
118730
118818
|
return /* @__PURE__ */ React$2.createElement(
|
|
118731
118819
|
AASliver$1,
|
|
118732
118820
|
{
|
|
118733
|
-
isFiller: isEndFiller || isStartFiller,
|
|
118821
|
+
isFiller: isEndFiller || isStartFiller || isTruncatedEnd && isTruncatedStart,
|
|
118734
118822
|
isTruncatedEnd,
|
|
118735
118823
|
isTruncatedStart,
|
|
118736
118824
|
onClick: function(event) {
|
|
@@ -120963,7 +121051,7 @@ function showFileDialog({ multiple = false, onSelect }) {
|
|
|
120963
121051
|
}
|
|
120964
121052
|
__name(showFileDialog, "showFileDialog");
|
|
120965
121053
|
const name = "@teselagen/ove";
|
|
120966
|
-
const version = "0.5.
|
|
121054
|
+
const version = "0.5.14";
|
|
120967
121055
|
const main = "./src/index.js";
|
|
120968
121056
|
const type = "module";
|
|
120969
121057
|
const exports$1 = {
|
|
@@ -123282,7 +123370,7 @@ var classCallCheck = /* @__PURE__ */ __name(function(instance, Constructor) {
|
|
|
123282
123370
|
}
|
|
123283
123371
|
}, "classCallCheck");
|
|
123284
123372
|
var createClass = /* @__PURE__ */ function() {
|
|
123285
|
-
function
|
|
123373
|
+
function defineProperties3(target, props) {
|
|
123286
123374
|
for (var i = 0; i < props.length; i++) {
|
|
123287
123375
|
var descriptor2 = props[i];
|
|
123288
123376
|
descriptor2.enumerable = descriptor2.enumerable || false;
|
|
@@ -123292,12 +123380,12 @@ var createClass = /* @__PURE__ */ function() {
|
|
|
123292
123380
|
Object.defineProperty(target, descriptor2.key, descriptor2);
|
|
123293
123381
|
}
|
|
123294
123382
|
}
|
|
123295
|
-
__name(
|
|
123383
|
+
__name(defineProperties3, "defineProperties");
|
|
123296
123384
|
return function(Constructor, protoProps, staticProps) {
|
|
123297
123385
|
if (protoProps)
|
|
123298
|
-
|
|
123386
|
+
defineProperties3(Constructor.prototype, protoProps);
|
|
123299
123387
|
if (staticProps)
|
|
123300
|
-
|
|
123388
|
+
defineProperties3(Constructor, staticProps);
|
|
123301
123389
|
return Constructor;
|
|
123302
123390
|
};
|
|
123303
123391
|
}();
|
|
@@ -125635,7 +125723,7 @@ function VectorInteractionHOC(Component) {
|
|
|
125635
125723
|
caretPositionUpdate: this.caretPositionUpdate
|
|
125636
125724
|
});
|
|
125637
125725
|
}, "updateSelectionOrCaret"));
|
|
125638
|
-
__publicField(this, "handlePaste", /* @__PURE__ */ __name((e2) => {
|
|
125726
|
+
__publicField(this, "handlePaste", /* @__PURE__ */ __name((e2) => __async(this, null, function* () {
|
|
125639
125727
|
const {
|
|
125640
125728
|
caretPosition: caretPosition2 = -1,
|
|
125641
125729
|
selectionLayer: selectionLayer2 = { start: -1, end: -1 },
|
|
@@ -125677,13 +125765,13 @@ function VectorInteractionHOC(Component) {
|
|
|
125677
125765
|
});
|
|
125678
125766
|
if (!seqDataToInsert.sequence.length)
|
|
125679
125767
|
return window.toastr.warning("Sorry no valid base pairs to paste");
|
|
125680
|
-
insertAndSelectHelper({
|
|
125768
|
+
yield insertAndSelectHelper({
|
|
125681
125769
|
seqDataToInsert,
|
|
125682
125770
|
props: this.props
|
|
125683
125771
|
});
|
|
125684
125772
|
window.toastr.success("Sequence Pasted Successfully");
|
|
125685
125773
|
e2.preventDefault();
|
|
125686
|
-
}, "handlePaste"));
|
|
125774
|
+
}), "handlePaste"));
|
|
125687
125775
|
__publicField(this, "handleCutOrCopy", /* @__PURE__ */ __name((isCut) => (e2) => {
|
|
125688
125776
|
const {
|
|
125689
125777
|
onCopy = noop$5,
|
|
@@ -125750,7 +125838,7 @@ function VectorInteractionHOC(Component) {
|
|
|
125750
125838
|
}, "handleCutOrCopy"));
|
|
125751
125839
|
__publicField(this, "handleCut", this.handleCutOrCopy(true));
|
|
125752
125840
|
__publicField(this, "handleCopy", this.handleCutOrCopy());
|
|
125753
|
-
__publicField(this, "handleDnaInsert", /* @__PURE__ */ __name(({ useEventPositioning })
|
|
125841
|
+
__publicField(this, "handleDnaInsert", /* @__PURE__ */ __name((_0) => __async(this, [_0], function* ({ useEventPositioning }) {
|
|
125754
125842
|
const {
|
|
125755
125843
|
caretPosition: caretPosition2 = -1,
|
|
125756
125844
|
selectionLayer: selectionLayer2 = { start: -1, end: -1 },
|
|
@@ -125777,17 +125865,17 @@ function VectorInteractionHOC(Component) {
|
|
|
125777
125865
|
selectionLayer: selectionLayer2,
|
|
125778
125866
|
sequenceLength,
|
|
125779
125867
|
caretPosition: caretPosition2,
|
|
125780
|
-
handleInsert: (seqDataToInsert) => {
|
|
125781
|
-
insertAndSelectHelper({
|
|
125868
|
+
handleInsert: (seqDataToInsert) => __async(this, null, function* () {
|
|
125869
|
+
yield insertAndSelectHelper({
|
|
125782
125870
|
props: this.props,
|
|
125783
125871
|
seqDataToInsert
|
|
125784
125872
|
});
|
|
125785
125873
|
window.toastr.success("Sequence Inserted Successfully");
|
|
125786
|
-
}
|
|
125874
|
+
})
|
|
125787
125875
|
});
|
|
125788
125876
|
}
|
|
125789
|
-
}, "handleDnaInsert"));
|
|
125790
|
-
__publicField(this, "handleDnaDelete", /* @__PURE__ */ __name((showToast = true) => {
|
|
125877
|
+
}), "handleDnaInsert"));
|
|
125878
|
+
__publicField(this, "handleDnaDelete", /* @__PURE__ */ __name((showToast = true) => __async(this, null, function* () {
|
|
125791
125879
|
const {
|
|
125792
125880
|
caretPosition: caretPosition2 = -1,
|
|
125793
125881
|
selectionLayer: selectionLayer2 = { start: -1, end: -1 },
|
|
@@ -125828,11 +125916,14 @@ function VectorInteractionHOC(Component) {
|
|
|
125828
125916
|
isCaretAtEndOfSeq = true;
|
|
125829
125917
|
}
|
|
125830
125918
|
}
|
|
125831
|
-
const [newSeqData] = wrappedInsertSequenceDataAtPositionOrRange(
|
|
125919
|
+
const [newSeqData, { abortSeqChange }] = yield wrappedInsertSequenceDataAtPositionOrRange(
|
|
125832
125920
|
{},
|
|
125833
125921
|
sequenceData2,
|
|
125834
125922
|
rangeToDelete
|
|
125835
125923
|
);
|
|
125924
|
+
console.log(`z3`);
|
|
125925
|
+
if (abortSeqChange)
|
|
125926
|
+
return;
|
|
125836
125927
|
updateSequenceData2(newSeqData);
|
|
125837
125928
|
caretPositionUpdate2(
|
|
125838
125929
|
isCaretAtEndOfSeq ? newSeqData.sequence.length : rangeToDelete.start > newSeqData.sequence.length ? (
|
|
@@ -125846,7 +125937,7 @@ function VectorInteractionHOC(Component) {
|
|
|
125846
125937
|
if (showToast)
|
|
125847
125938
|
window.toastr.success("Sequence Deleted Successfully");
|
|
125848
125939
|
}
|
|
125849
|
-
}, "handleDnaDelete"));
|
|
125940
|
+
}), "handleDnaDelete"));
|
|
125850
125941
|
__publicField(this, "caretPositionUpdate", /* @__PURE__ */ __name((position2) => {
|
|
125851
125942
|
const { caretPosition: caretPosition2 = -1 } = this.props;
|
|
125852
125943
|
if (caretPosition2 === position2) {
|
|
@@ -126605,7 +126696,7 @@ function getGenbankFromSelection(selectedSeqData, sequenceData2) {
|
|
|
126605
126696
|
});
|
|
126606
126697
|
}
|
|
126607
126698
|
__name(getGenbankFromSelection, "getGenbankFromSelection");
|
|
126608
|
-
const insertAndSelectHelper = /* @__PURE__ */ __name(({ seqDataToInsert, props })
|
|
126699
|
+
const insertAndSelectHelper = /* @__PURE__ */ __name((_0) => __async(exports, [_0], function* ({ seqDataToInsert, props }) {
|
|
126609
126700
|
const {
|
|
126610
126701
|
updateSequenceData: updateSequenceData2,
|
|
126611
126702
|
wrappedInsertSequenceDataAtPositionOrRange,
|
|
@@ -126615,11 +126706,15 @@ const insertAndSelectHelper = /* @__PURE__ */ __name(({ seqDataToInsert, props }
|
|
|
126615
126706
|
selectionLayer: selectionLayer2,
|
|
126616
126707
|
bpLimit
|
|
126617
126708
|
} = props;
|
|
126618
|
-
const [newSeqData, { maintainOriginSplit }] = wrappedInsertSequenceDataAtPositionOrRange(
|
|
126709
|
+
const [newSeqData, { maintainOriginSplit, abortSeqChange }] = yield wrappedInsertSequenceDataAtPositionOrRange(
|
|
126619
126710
|
seqDataToInsert,
|
|
126620
126711
|
sequenceData2,
|
|
126621
126712
|
caretPosition2 > -1 ? caretPosition2 : selectionLayer2
|
|
126622
126713
|
);
|
|
126714
|
+
console.log(`z4`);
|
|
126715
|
+
if (abortSeqChange) {
|
|
126716
|
+
throw new Error("abortSeqChange");
|
|
126717
|
+
}
|
|
126623
126718
|
if (bpLimit) {
|
|
126624
126719
|
if (newSeqData.sequence.length > bpLimit) {
|
|
126625
126720
|
window.toastr.error(
|
|
@@ -126637,7 +126732,7 @@ const insertAndSelectHelper = /* @__PURE__ */ __name(({ seqDataToInsert, props }
|
|
|
126637
126732
|
start: newSelectionLayerStart,
|
|
126638
126733
|
end: newSelectionLayerEnd % newSeqData.sequence.length
|
|
126639
126734
|
});
|
|
126640
|
-
}, "insertAndSelectHelper");
|
|
126735
|
+
}), "insertAndSelectHelper");
|
|
126641
126736
|
function getEditDeleteHandlers(type2, annotation) {
|
|
126642
126737
|
return [
|
|
126643
126738
|
...annotation.isEditLocked ? [
|