@matdata/yasgui-graph-plugin 1.3.0 → 1.4.1
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/README.md +310 -301
- package/dist/yasgui-graph-plugin.cjs.css +103 -0
- package/dist/yasgui-graph-plugin.cjs.css.map +7 -0
- package/dist/yasgui-graph-plugin.cjs.js +485 -763
- package/dist/yasgui-graph-plugin.cjs.js.map +4 -4
- package/dist/yasgui-graph-plugin.css +117 -0
- package/dist/yasgui-graph-plugin.esm.css +103 -0
- package/dist/yasgui-graph-plugin.esm.css.map +7 -0
- package/dist/yasgui-graph-plugin.esm.js +480 -759
- package/dist/yasgui-graph-plugin.esm.js.map +4 -4
- package/dist/yasgui-graph-plugin.min.css +2 -0
- package/dist/yasgui-graph-plugin.min.css.map +7 -0
- package/dist/yasgui-graph-plugin.min.js +17 -17
- package/dist/yasgui-graph-plugin.min.js.map +4 -4
- package/package.json +22 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// src/prefixUtils.
|
|
1
|
+
// src/prefixUtils.ts
|
|
2
2
|
function extractPrefixes(yasr) {
|
|
3
3
|
const prefixMap = /* @__PURE__ */ new Map();
|
|
4
4
|
if (yasr && yasr.getPrefixes) {
|
|
@@ -25,8 +25,7 @@ function extractPrefixes(yasr) {
|
|
|
25
25
|
return prefixMap;
|
|
26
26
|
}
|
|
27
27
|
function applyPrefix(uri, prefixMap) {
|
|
28
|
-
if (!uri || typeof uri !== "string")
|
|
29
|
-
return uri;
|
|
28
|
+
if (!uri || typeof uri !== "string") return uri;
|
|
30
29
|
for (const [namespace, prefix] of prefixMap.entries()) {
|
|
31
30
|
if (uri.startsWith(namespace)) {
|
|
32
31
|
const localName = uri.substring(namespace.length);
|
|
@@ -36,19 +35,18 @@ function applyPrefix(uri, prefixMap) {
|
|
|
36
35
|
return uri;
|
|
37
36
|
}
|
|
38
37
|
function truncateLabel(text, maxLength = 50) {
|
|
39
|
-
if (!text || typeof text !== "string")
|
|
40
|
-
|
|
41
|
-
if (text.length <= maxLength)
|
|
42
|
-
return text;
|
|
38
|
+
if (!text || typeof text !== "string") return text;
|
|
39
|
+
if (text.length <= maxLength) return text;
|
|
43
40
|
return text.substring(0, maxLength - 3) + "...";
|
|
44
41
|
}
|
|
45
42
|
|
|
46
|
-
// src/networkConfig.
|
|
43
|
+
// src/networkConfig.ts
|
|
47
44
|
function getDefaultNetworkOptions(themeColors) {
|
|
48
45
|
return {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
// Configure canvas background color based on theme
|
|
47
|
+
configure: {
|
|
48
|
+
enabled: false
|
|
49
|
+
},
|
|
52
50
|
physics: {
|
|
53
51
|
enabled: true,
|
|
54
52
|
stabilization: {
|
|
@@ -93,7 +91,8 @@ function getDefaultNetworkOptions(themeColors) {
|
|
|
93
91
|
},
|
|
94
92
|
smooth: {
|
|
95
93
|
enabled: true,
|
|
96
|
-
type: "dynamic"
|
|
94
|
+
type: "dynamic",
|
|
95
|
+
roundness: 0.5
|
|
97
96
|
},
|
|
98
97
|
font: {
|
|
99
98
|
size: 12,
|
|
@@ -110,7 +109,7 @@ function getDefaultNetworkOptions(themeColors) {
|
|
|
110
109
|
};
|
|
111
110
|
}
|
|
112
111
|
|
|
113
|
-
// src/parsers.
|
|
112
|
+
// src/parsers.ts
|
|
114
113
|
function parseConstructResults(yasrResults) {
|
|
115
114
|
const triples = [];
|
|
116
115
|
if (!yasrResults || !yasrResults.getBindings) {
|
|
@@ -136,7 +135,7 @@ function parseConstructResults(yasrResults) {
|
|
|
136
135
|
return triples;
|
|
137
136
|
}
|
|
138
137
|
|
|
139
|
-
// src/colorUtils.
|
|
138
|
+
// src/colorUtils.ts
|
|
140
139
|
function getNodeColor(node, triples, themeColors) {
|
|
141
140
|
if (node.uri && node.uri.startsWith("_:")) {
|
|
142
141
|
return themeColors.blankNode;
|
|
@@ -153,7 +152,7 @@ function getNodeColor(node, triples, themeColors) {
|
|
|
153
152
|
return themeColors.uri;
|
|
154
153
|
}
|
|
155
154
|
|
|
156
|
-
// src/transformers.
|
|
155
|
+
// src/transformers.ts
|
|
157
156
|
function createNodeMap(triples, prefixMap, themeColors) {
|
|
158
157
|
const nodeMap = /* @__PURE__ */ new Map();
|
|
159
158
|
let nodeId = 1;
|
|
@@ -175,7 +174,9 @@ function createNodeMap(triples, prefixMap, themeColors) {
|
|
|
175
174
|
if (!nodeMap.has(objValue)) {
|
|
176
175
|
const isLiteral = triple.object.type === "literal";
|
|
177
176
|
const isBlankNode = !isLiteral && objValue.startsWith("_:");
|
|
178
|
-
let label
|
|
177
|
+
let label;
|
|
178
|
+
let fullValue;
|
|
179
|
+
let title;
|
|
179
180
|
if (isLiteral) {
|
|
180
181
|
label = truncateLabel(objValue);
|
|
181
182
|
fullValue = objValue;
|
|
@@ -212,8 +213,7 @@ function createEdgesArray(triples, nodeMap, prefixMap) {
|
|
|
212
213
|
triples.forEach((triple) => {
|
|
213
214
|
const fromNode = nodeMap.get(triple.subject);
|
|
214
215
|
const toNode = nodeMap.get(triple.object.value);
|
|
215
|
-
if (!fromNode || !toNode)
|
|
216
|
-
return;
|
|
216
|
+
if (!fromNode || !toNode) return;
|
|
217
217
|
const edgeKey = `${fromNode.id}-${triple.predicate}-${toNode.id}`;
|
|
218
218
|
if (!edgeSet.has(edgeKey)) {
|
|
219
219
|
edgeSet.add(edgeKey);
|
|
@@ -249,9 +249,9 @@ var global$n = (
|
|
|
249
249
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
250
250
|
check(typeof globalThis == "object" && globalThis) || check(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
|
|
251
251
|
check(typeof self == "object" && self) || check(typeof commonjsGlobal == "object" && commonjsGlobal) || // eslint-disable-next-line no-new-func -- fallback
|
|
252
|
-
/* @__PURE__ */ function() {
|
|
252
|
+
/* @__PURE__ */ (function() {
|
|
253
253
|
return this;
|
|
254
|
-
}() || commonjsGlobal || Function("return this")()
|
|
254
|
+
})() || commonjsGlobal || Function("return this")()
|
|
255
255
|
);
|
|
256
256
|
var fails$v = function(exec2) {
|
|
257
257
|
try {
|
|
@@ -262,8 +262,8 @@ var fails$v = function(exec2) {
|
|
|
262
262
|
};
|
|
263
263
|
var fails$u = fails$v;
|
|
264
264
|
var functionBindNative = !fails$u(function() {
|
|
265
|
-
var test2 = function() {
|
|
266
|
-
}.bind();
|
|
265
|
+
var test2 = (function() {
|
|
266
|
+
}).bind();
|
|
267
267
|
return typeof test2 != "function" || test2.hasOwnProperty("prototype");
|
|
268
268
|
});
|
|
269
269
|
var NATIVE_BIND$4 = functionBindNative;
|
|
@@ -291,8 +291,7 @@ var classofRaw$2 = function(it2) {
|
|
|
291
291
|
var classofRaw$1 = classofRaw$2;
|
|
292
292
|
var uncurryThis$w = functionUncurryThis;
|
|
293
293
|
var functionUncurryThisClause = function(fn) {
|
|
294
|
-
if (classofRaw$1(fn) === "Function")
|
|
295
|
-
return uncurryThis$w(fn);
|
|
294
|
+
if (classofRaw$1(fn) === "Function") return uncurryThis$w(fn);
|
|
296
295
|
};
|
|
297
296
|
var documentAll$2 = typeof document == "object" && document.all;
|
|
298
297
|
var IS_HTMLDDA = typeof documentAll$2 == "undefined" && documentAll$2 !== void 0;
|
|
@@ -351,8 +350,7 @@ var isNullOrUndefined$6 = function(it2) {
|
|
|
351
350
|
var isNullOrUndefined$5 = isNullOrUndefined$6;
|
|
352
351
|
var $TypeError$e = TypeError;
|
|
353
352
|
var requireObjectCoercible$5 = function(it2) {
|
|
354
|
-
if (isNullOrUndefined$5(it2))
|
|
355
|
-
throw new $TypeError$e("Can't call method on " + it2);
|
|
353
|
+
if (isNullOrUndefined$5(it2)) throw new $TypeError$e("Can't call method on " + it2);
|
|
356
354
|
return it2;
|
|
357
355
|
};
|
|
358
356
|
var IndexedObject$3 = indexedObject;
|
|
@@ -397,8 +395,7 @@ if (!version && userAgent$2) {
|
|
|
397
395
|
match = userAgent$2.match(/Edge\/(\d+)/);
|
|
398
396
|
if (!match || match[1] >= 74) {
|
|
399
397
|
match = userAgent$2.match(/Chrome\/(\d+)/);
|
|
400
|
-
if (match)
|
|
401
|
-
version = +match[1];
|
|
398
|
+
if (match) version = +match[1];
|
|
402
399
|
}
|
|
403
400
|
}
|
|
404
401
|
var engineV8Version = version;
|
|
@@ -407,7 +404,7 @@ var fails$r = fails$v;
|
|
|
407
404
|
var global$k = global$n;
|
|
408
405
|
var $String$4 = global$k.String;
|
|
409
406
|
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$r(function() {
|
|
410
|
-
var symbol2 = Symbol("symbol detection");
|
|
407
|
+
var symbol2 = /* @__PURE__ */ Symbol("symbol detection");
|
|
411
408
|
return !$String$4(symbol2) || !(Object(symbol2) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
412
409
|
!Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
|
|
413
410
|
});
|
|
@@ -436,8 +433,7 @@ var isCallable$d = isCallable$h;
|
|
|
436
433
|
var tryToString$4 = tryToString$5;
|
|
437
434
|
var $TypeError$d = TypeError;
|
|
438
435
|
var aCallable$7 = function(argument) {
|
|
439
|
-
if (isCallable$d(argument))
|
|
440
|
-
return argument;
|
|
436
|
+
if (isCallable$d(argument)) return argument;
|
|
441
437
|
throw new $TypeError$d(tryToString$4(argument) + " is not a function");
|
|
442
438
|
};
|
|
443
439
|
var aCallable$6 = aCallable$7;
|
|
@@ -452,12 +448,9 @@ var isObject$g = isObject$h;
|
|
|
452
448
|
var $TypeError$c = TypeError;
|
|
453
449
|
var ordinaryToPrimitive$1 = function(input, pref) {
|
|
454
450
|
var fn, val;
|
|
455
|
-
if (pref === "string" && isCallable$c(fn = input.toString) && !isObject$g(val = call$a(fn, input)))
|
|
456
|
-
|
|
457
|
-
if (isCallable$c(fn = input.
|
|
458
|
-
return val;
|
|
459
|
-
if (pref !== "string" && isCallable$c(fn = input.toString) && !isObject$g(val = call$a(fn, input)))
|
|
460
|
-
return val;
|
|
451
|
+
if (pref === "string" && isCallable$c(fn = input.toString) && !isObject$g(val = call$a(fn, input))) return val;
|
|
452
|
+
if (isCallable$c(fn = input.valueOf) && !isObject$g(val = call$a(fn, input))) return val;
|
|
453
|
+
if (pref !== "string" && isCallable$c(fn = input.toString) && !isObject$g(val = call$a(fn, input))) return val;
|
|
461
454
|
throw new $TypeError$c("Can't convert object to primitive value");
|
|
462
455
|
};
|
|
463
456
|
var shared$7 = { exports: {} };
|
|
@@ -529,20 +522,16 @@ var wellKnownSymbol$k = wellKnownSymbol$l;
|
|
|
529
522
|
var $TypeError$b = TypeError;
|
|
530
523
|
var TO_PRIMITIVE = wellKnownSymbol$k("toPrimitive");
|
|
531
524
|
var toPrimitive$6 = function(input, pref) {
|
|
532
|
-
if (!isObject$f(input) || isSymbol$4(input))
|
|
533
|
-
return input;
|
|
525
|
+
if (!isObject$f(input) || isSymbol$4(input)) return input;
|
|
534
526
|
var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
|
|
535
527
|
var result;
|
|
536
528
|
if (exoticToPrim) {
|
|
537
|
-
if (pref === void 0)
|
|
538
|
-
pref = "default";
|
|
529
|
+
if (pref === void 0) pref = "default";
|
|
539
530
|
result = call$9(exoticToPrim, input, pref);
|
|
540
|
-
if (!isObject$f(result) || isSymbol$4(result))
|
|
541
|
-
return result;
|
|
531
|
+
if (!isObject$f(result) || isSymbol$4(result)) return result;
|
|
542
532
|
throw new $TypeError$b("Can't convert object to primitive value");
|
|
543
533
|
}
|
|
544
|
-
if (pref === void 0)
|
|
545
|
-
pref = "number";
|
|
534
|
+
if (pref === void 0) pref = "number";
|
|
546
535
|
return ordinaryToPrimitive(input, pref);
|
|
547
536
|
};
|
|
548
537
|
var toPrimitive$5 = toPrimitive$6;
|
|
@@ -580,13 +569,11 @@ var $getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
|
|
|
580
569
|
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$h ? $getOwnPropertyDescriptor$2 : function getOwnPropertyDescriptor(O, P) {
|
|
581
570
|
O = toIndexedObject$a(O);
|
|
582
571
|
P = toPropertyKey$3(P);
|
|
583
|
-
if (IE8_DOM_DEFINE$1)
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
if (hasOwn$h(O, P))
|
|
589
|
-
return createPropertyDescriptor$4(!call$8(propertyIsEnumerableModule$2.f, O, P), O[P]);
|
|
572
|
+
if (IE8_DOM_DEFINE$1) try {
|
|
573
|
+
return $getOwnPropertyDescriptor$2(O, P);
|
|
574
|
+
} catch (error) {
|
|
575
|
+
}
|
|
576
|
+
if (hasOwn$h(O, P)) return createPropertyDescriptor$4(!call$8(propertyIsEnumerableModule$2.f, O, P), O[P]);
|
|
590
577
|
};
|
|
591
578
|
var fails$p = fails$v;
|
|
592
579
|
var isCallable$b = isCallable$h;
|
|
@@ -626,8 +613,7 @@ var isObject$d = isObject$h;
|
|
|
626
613
|
var $String$2 = String;
|
|
627
614
|
var $TypeError$a = TypeError;
|
|
628
615
|
var anObject$9 = function(argument) {
|
|
629
|
-
if (isObject$d(argument))
|
|
630
|
-
return argument;
|
|
616
|
+
if (isObject$d(argument)) return argument;
|
|
631
617
|
throw new $TypeError$a($String$2(argument) + " is not an object");
|
|
632
618
|
};
|
|
633
619
|
var DESCRIPTORS$f = descriptors;
|
|
@@ -661,15 +647,12 @@ objectDefineProperty.f = DESCRIPTORS$f ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
661
647
|
anObject$8(O);
|
|
662
648
|
P = toPropertyKey$2(P);
|
|
663
649
|
anObject$8(Attributes);
|
|
664
|
-
if (IE8_DOM_DEFINE)
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
if ("
|
|
670
|
-
throw new $TypeError$9("Accessors not supported");
|
|
671
|
-
if ("value" in Attributes)
|
|
672
|
-
O[P] = Attributes.value;
|
|
650
|
+
if (IE8_DOM_DEFINE) try {
|
|
651
|
+
return $defineProperty$1(O, P, Attributes);
|
|
652
|
+
} catch (error) {
|
|
653
|
+
}
|
|
654
|
+
if ("get" in Attributes || "set" in Attributes) throw new $TypeError$9("Accessors not supported");
|
|
655
|
+
if ("value" in Attributes) O[P] = Attributes.value;
|
|
673
656
|
return O;
|
|
674
657
|
};
|
|
675
658
|
var DESCRIPTORS$e = descriptors;
|
|
@@ -723,23 +706,16 @@ var _export = function(options, source) {
|
|
|
723
706
|
FORCED2 = isForced(GLOBAL ? key : TARGET + (STATIC ? "." : "#") + key, options.forced);
|
|
724
707
|
USE_NATIVE = !FORCED2 && nativeSource && hasOwn$g(nativeSource, key);
|
|
725
708
|
targetProperty = target[key];
|
|
726
|
-
if (USE_NATIVE)
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
} else
|
|
731
|
-
nativeProperty = nativeSource[key];
|
|
709
|
+
if (USE_NATIVE) if (options.dontCallGetSet) {
|
|
710
|
+
descriptor = getOwnPropertyDescriptor$5(nativeSource, key);
|
|
711
|
+
nativeProperty = descriptor && descriptor.value;
|
|
712
|
+
} else nativeProperty = nativeSource[key];
|
|
732
713
|
sourceProperty = USE_NATIVE && nativeProperty ? nativeProperty : source[key];
|
|
733
|
-
if (USE_NATIVE && typeof targetProperty == typeof sourceProperty)
|
|
734
|
-
|
|
735
|
-
if (options.
|
|
736
|
-
|
|
737
|
-
else
|
|
738
|
-
resultProperty = wrapConstructor(sourceProperty);
|
|
739
|
-
else if (PROTO && isCallable$a(sourceProperty))
|
|
740
|
-
resultProperty = uncurryThis$q(sourceProperty);
|
|
741
|
-
else
|
|
742
|
-
resultProperty = sourceProperty;
|
|
714
|
+
if (USE_NATIVE && typeof targetProperty == typeof sourceProperty) continue;
|
|
715
|
+
if (options.bind && USE_NATIVE) resultProperty = bind$9(sourceProperty, global$f);
|
|
716
|
+
else if (options.wrap && USE_NATIVE) resultProperty = wrapConstructor(sourceProperty);
|
|
717
|
+
else if (PROTO && isCallable$a(sourceProperty)) resultProperty = uncurryThis$q(sourceProperty);
|
|
718
|
+
else resultProperty = sourceProperty;
|
|
743
719
|
if (options.sham || sourceProperty && sourceProperty.sham || targetProperty && targetProperty.sham) {
|
|
744
720
|
createNonEnumerableProperty$5(resultProperty, "sham", true);
|
|
745
721
|
}
|
|
@@ -792,17 +768,13 @@ var createMethod$5 = function(IS_INCLUDES) {
|
|
|
792
768
|
var length2 = lengthOfArrayLike$b(O);
|
|
793
769
|
var index = toAbsoluteIndex$4(fromIndex, length2);
|
|
794
770
|
var value;
|
|
795
|
-
if (IS_INCLUDES && el !== el)
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
for (; length2 > index; index++) {
|
|
803
|
-
if ((IS_INCLUDES || index in O) && O[index] === el)
|
|
804
|
-
return IS_INCLUDES || index || 0;
|
|
805
|
-
}
|
|
771
|
+
if (IS_INCLUDES && el !== el) while (length2 > index) {
|
|
772
|
+
value = O[index++];
|
|
773
|
+
if (value !== value) return true;
|
|
774
|
+
}
|
|
775
|
+
else for (; length2 > index; index++) {
|
|
776
|
+
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
777
|
+
}
|
|
806
778
|
return !IS_INCLUDES && -1;
|
|
807
779
|
};
|
|
808
780
|
};
|
|
@@ -826,12 +798,10 @@ var objectKeysInternal = function(object2, names) {
|
|
|
826
798
|
var i = 0;
|
|
827
799
|
var result = [];
|
|
828
800
|
var key;
|
|
829
|
-
for (key in O)
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
~indexOf$4(result, key) || push$5(result, key);
|
|
834
|
-
}
|
|
801
|
+
for (key in O) !hasOwn$f(hiddenKeys$5, key) && hasOwn$f(O, key) && push$5(result, key);
|
|
802
|
+
while (names.length > i) if (hasOwn$f(O, key = names[i++])) {
|
|
803
|
+
~indexOf$4(result, key) || push$5(result, key);
|
|
804
|
+
}
|
|
835
805
|
return result;
|
|
836
806
|
};
|
|
837
807
|
var enumBugKeys$3 = [
|
|
@@ -871,11 +841,10 @@ var objectAssign = !$assign || fails$n(function() {
|
|
|
871
841
|
enumerable: false
|
|
872
842
|
});
|
|
873
843
|
}
|
|
874
|
-
}), { b: 2 })).b !== 1)
|
|
875
|
-
return true;
|
|
844
|
+
}), { b: 2 })).b !== 1) return true;
|
|
876
845
|
var A = {};
|
|
877
846
|
var B = {};
|
|
878
|
-
var symbol2 = Symbol("assign detection");
|
|
847
|
+
var symbol2 = /* @__PURE__ */ Symbol("assign detection");
|
|
879
848
|
var alphabet = "abcdefghijklmnopqrst";
|
|
880
849
|
A[symbol2] = 7;
|
|
881
850
|
alphabet.split("").forEach(function(chr) {
|
|
@@ -896,8 +865,7 @@ var objectAssign = !$assign || fails$n(function() {
|
|
|
896
865
|
var key;
|
|
897
866
|
while (length2 > j) {
|
|
898
867
|
key = keys4[j++];
|
|
899
|
-
if (!DESCRIPTORS$d || call$7(propertyIsEnumerable4, S, key))
|
|
900
|
-
T[key] = S[key];
|
|
868
|
+
if (!DESCRIPTORS$d || call$7(propertyIsEnumerable4, S, key)) T[key] = S[key];
|
|
901
869
|
}
|
|
902
870
|
}
|
|
903
871
|
return T;
|
|
@@ -929,8 +897,7 @@ var construct$1 = function(C, argsLength, args) {
|
|
|
929
897
|
if (!hasOwn$e(factories, argsLength)) {
|
|
930
898
|
var list = [];
|
|
931
899
|
var i = 0;
|
|
932
|
-
for (; i < argsLength; i++)
|
|
933
|
-
list[i] = "a[" + i + "]";
|
|
900
|
+
for (; i < argsLength; i++) list[i] = "a[" + i + "]";
|
|
934
901
|
factories[argsLength] = $Function("C,a", "return new C(" + join(list, ",") + ")");
|
|
935
902
|
}
|
|
936
903
|
return factories[argsLength](C, args);
|
|
@@ -943,8 +910,7 @@ var functionBind = NATIVE_BIND ? $Function.bind : function bind(that) {
|
|
|
943
910
|
var args = concat$5(partArgs, arraySlice$4(arguments));
|
|
944
911
|
return this instanceof boundFunction ? construct$1(F, args.length, args) : F.apply(that, args);
|
|
945
912
|
};
|
|
946
|
-
if (isObject$c(Prototype))
|
|
947
|
-
boundFunction.prototype = Prototype;
|
|
913
|
+
if (isObject$c(Prototype)) boundFunction.prototype = Prototype;
|
|
948
914
|
return boundFunction;
|
|
949
915
|
};
|
|
950
916
|
var $$L = _export;
|
|
@@ -1138,8 +1104,7 @@ function getShape(name) {
|
|
|
1138
1104
|
}
|
|
1139
1105
|
}
|
|
1140
1106
|
function styleInject(css, ref) {
|
|
1141
|
-
if (ref === void 0)
|
|
1142
|
-
ref = {};
|
|
1107
|
+
if (ref === void 0) ref = {};
|
|
1143
1108
|
var insertAt = ref.insertAt;
|
|
1144
1109
|
if (!css || typeof document === "undefined") {
|
|
1145
1110
|
return;
|
|
@@ -1766,8 +1731,7 @@ var componentEmitter = { exports: {} };
|
|
|
1766
1731
|
module.exports = Emitter2;
|
|
1767
1732
|
}
|
|
1768
1733
|
function Emitter2(obj) {
|
|
1769
|
-
if (obj)
|
|
1770
|
-
return mixin(obj);
|
|
1734
|
+
if (obj) return mixin(obj);
|
|
1771
1735
|
}
|
|
1772
1736
|
function mixin(obj) {
|
|
1773
1737
|
for (var key in Emitter2.prototype) {
|
|
@@ -1796,8 +1760,7 @@ var componentEmitter = { exports: {} };
|
|
|
1796
1760
|
return this;
|
|
1797
1761
|
}
|
|
1798
1762
|
var callbacks = this._callbacks["$" + event];
|
|
1799
|
-
if (!callbacks)
|
|
1800
|
-
return this;
|
|
1763
|
+
if (!callbacks) return this;
|
|
1801
1764
|
if (1 == arguments.length) {
|
|
1802
1765
|
delete this._callbacks["$" + event];
|
|
1803
1766
|
return this;
|
|
@@ -1846,8 +1809,7 @@ var isArray$c = Array.isArray || function isArray(argument) {
|
|
|
1846
1809
|
var $TypeError$8 = TypeError;
|
|
1847
1810
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
1848
1811
|
var doesNotExceedSafeInteger$3 = function(it2) {
|
|
1849
|
-
if (it2 > MAX_SAFE_INTEGER)
|
|
1850
|
-
throw $TypeError$8("Maximum allowed index exceeded");
|
|
1812
|
+
if (it2 > MAX_SAFE_INTEGER) throw $TypeError$8("Maximum allowed index exceeded");
|
|
1851
1813
|
return it2;
|
|
1852
1814
|
};
|
|
1853
1815
|
var toPropertyKey$1 = toPropertyKey$4;
|
|
@@ -1855,10 +1817,8 @@ var definePropertyModule$2 = objectDefineProperty;
|
|
|
1855
1817
|
var createPropertyDescriptor$2 = createPropertyDescriptor$5;
|
|
1856
1818
|
var createProperty$5 = function(object2, key, value) {
|
|
1857
1819
|
var propertyKey = toPropertyKey$1(key);
|
|
1858
|
-
if (propertyKey in object2)
|
|
1859
|
-
|
|
1860
|
-
else
|
|
1861
|
-
object2[propertyKey] = value;
|
|
1820
|
+
if (propertyKey in object2) definePropertyModule$2.f(object2, propertyKey, createPropertyDescriptor$2(0, value));
|
|
1821
|
+
else object2[propertyKey] = value;
|
|
1862
1822
|
};
|
|
1863
1823
|
var wellKnownSymbol$j = wellKnownSymbol$l;
|
|
1864
1824
|
var TO_STRING_TAG$3 = wellKnownSymbol$j("toStringTag");
|
|
@@ -1871,9 +1831,9 @@ var classofRaw = classofRaw$2;
|
|
|
1871
1831
|
var wellKnownSymbol$i = wellKnownSymbol$l;
|
|
1872
1832
|
var TO_STRING_TAG$2 = wellKnownSymbol$i("toStringTag");
|
|
1873
1833
|
var $Object$2 = Object;
|
|
1874
|
-
var CORRECT_ARGUMENTS = classofRaw(/* @__PURE__ */ function() {
|
|
1834
|
+
var CORRECT_ARGUMENTS = classofRaw(/* @__PURE__ */ (function() {
|
|
1875
1835
|
return arguments;
|
|
1876
|
-
}()) === "Arguments";
|
|
1836
|
+
})()) === "Arguments";
|
|
1877
1837
|
var tryGet = function(it2, key) {
|
|
1878
1838
|
try {
|
|
1879
1839
|
return it2[key];
|
|
@@ -1908,8 +1868,7 @@ var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
|
1908
1868
|
var exec$2 = uncurryThis$k(constructorRegExp.exec);
|
|
1909
1869
|
var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
|
|
1910
1870
|
var isConstructorModern = function isConstructor(argument) {
|
|
1911
|
-
if (!isCallable$7(argument))
|
|
1912
|
-
return false;
|
|
1871
|
+
if (!isCallable$7(argument)) return false;
|
|
1913
1872
|
try {
|
|
1914
1873
|
construct(noop, empty, argument);
|
|
1915
1874
|
return true;
|
|
@@ -1918,8 +1877,7 @@ var isConstructorModern = function isConstructor(argument) {
|
|
|
1918
1877
|
}
|
|
1919
1878
|
};
|
|
1920
1879
|
var isConstructorLegacy = function isConstructor2(argument) {
|
|
1921
|
-
if (!isCallable$7(argument))
|
|
1922
|
-
return false;
|
|
1880
|
+
if (!isCallable$7(argument)) return false;
|
|
1923
1881
|
switch (classof$d(argument)) {
|
|
1924
1882
|
case "AsyncFunction":
|
|
1925
1883
|
case "GeneratorFunction":
|
|
@@ -1949,12 +1907,10 @@ var arraySpeciesConstructor$1 = function(originalArray) {
|
|
|
1949
1907
|
var C;
|
|
1950
1908
|
if (isArray$b(originalArray)) {
|
|
1951
1909
|
C = originalArray.constructor;
|
|
1952
|
-
if (isConstructor$1(C) && (C === $Array$2 || isArray$b(C.prototype)))
|
|
1953
|
-
C = void 0;
|
|
1910
|
+
if (isConstructor$1(C) && (C === $Array$2 || isArray$b(C.prototype))) C = void 0;
|
|
1954
1911
|
else if (isObject$b(C)) {
|
|
1955
1912
|
C = C[SPECIES$3];
|
|
1956
|
-
if (C === null)
|
|
1957
|
-
C = void 0;
|
|
1913
|
+
if (C === null) C = void 0;
|
|
1958
1914
|
}
|
|
1959
1915
|
}
|
|
1960
1916
|
return C === void 0 ? $Array$2 : C;
|
|
@@ -1996,8 +1952,7 @@ var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$k(function() {
|
|
|
1996
1952
|
return array2.concat()[0] !== array2;
|
|
1997
1953
|
});
|
|
1998
1954
|
var isConcatSpreadable = function(O) {
|
|
1999
|
-
if (!isObject$a(O))
|
|
2000
|
-
return false;
|
|
1955
|
+
if (!isObject$a(O)) return false;
|
|
2001
1956
|
var spreadable = O[IS_CONCAT_SPREADABLE];
|
|
2002
1957
|
return spreadable !== void 0 ? !!spreadable : isArray$a(O);
|
|
2003
1958
|
};
|
|
@@ -2014,9 +1969,7 @@ $$K({ target: "Array", proto: true, arity: 1, forced: FORCED$8 }, {
|
|
|
2014
1969
|
if (isConcatSpreadable(E)) {
|
|
2015
1970
|
len = lengthOfArrayLike$a(E);
|
|
2016
1971
|
doesNotExceedSafeInteger$2(n + len);
|
|
2017
|
-
for (k = 0; k < len; k++, n++)
|
|
2018
|
-
if (k in E)
|
|
2019
|
-
createProperty$4(A, n, E[k]);
|
|
1972
|
+
for (k = 0; k < len; k++, n++) if (k in E) createProperty$4(A, n, E[k]);
|
|
2020
1973
|
} else {
|
|
2021
1974
|
doesNotExceedSafeInteger$2(n + 1);
|
|
2022
1975
|
createProperty$4(A, n++, E);
|
|
@@ -2029,8 +1982,7 @@ $$K({ target: "Array", proto: true, arity: 1, forced: FORCED$8 }, {
|
|
|
2029
1982
|
var classof$c = classof$e;
|
|
2030
1983
|
var $String$1 = String;
|
|
2031
1984
|
var toString$a = function(argument) {
|
|
2032
|
-
if (classof$c(argument) === "Symbol")
|
|
2033
|
-
throw new TypeError("Cannot convert a Symbol value to a string");
|
|
1985
|
+
if (classof$c(argument) === "Symbol") throw new TypeError("Cannot convert a Symbol value to a string");
|
|
2034
1986
|
return $String$1(argument);
|
|
2035
1987
|
};
|
|
2036
1988
|
var objectDefineProperties = {};
|
|
@@ -2047,8 +1999,7 @@ objectDefineProperties.f = DESCRIPTORS$c && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
|
|
|
2047
1999
|
var length2 = keys4.length;
|
|
2048
2000
|
var index = 0;
|
|
2049
2001
|
var key;
|
|
2050
|
-
while (length2 > index)
|
|
2051
|
-
definePropertyModule$1.f(O, key = keys4[index++], props[key]);
|
|
2002
|
+
while (length2 > index) definePropertyModule$1.f(O, key = keys4[index++], props[key]);
|
|
2052
2003
|
return O;
|
|
2053
2004
|
};
|
|
2054
2005
|
var getBuiltIn$8 = getBuiltIn$b;
|
|
@@ -2104,8 +2055,7 @@ var NullProtoObject = function() {
|
|
|
2104
2055
|
}
|
|
2105
2056
|
NullProtoObject = typeof document != "undefined" ? document.domain && activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame() : NullProtoObjectViaActiveX(activeXDocument);
|
|
2106
2057
|
var length2 = enumBugKeys$1.length;
|
|
2107
|
-
while (length2--)
|
|
2108
|
-
delete NullProtoObject[PROTOTYPE$1][enumBugKeys$1[length2]];
|
|
2058
|
+
while (length2--) delete NullProtoObject[PROTOTYPE$1][enumBugKeys$1[length2]];
|
|
2109
2059
|
return NullProtoObject();
|
|
2110
2060
|
};
|
|
2111
2061
|
hiddenKeys$4[IE_PROTO$1] = true;
|
|
@@ -2116,8 +2066,7 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
2116
2066
|
result = new EmptyConstructor();
|
|
2117
2067
|
EmptyConstructor[PROTOTYPE$1] = null;
|
|
2118
2068
|
result[IE_PROTO$1] = O;
|
|
2119
|
-
} else
|
|
2120
|
-
result = NullProtoObject();
|
|
2069
|
+
} else result = NullProtoObject();
|
|
2121
2070
|
return Properties === void 0 ? result : definePropertiesModule$1.f(result, Properties);
|
|
2122
2071
|
};
|
|
2123
2072
|
var objectGetOwnPropertyNames = {};
|
|
@@ -2139,8 +2088,7 @@ var arraySliceSimple = function(O, start, end) {
|
|
|
2139
2088
|
var fin = toAbsoluteIndex$3(end === void 0 ? length2 : end, length2);
|
|
2140
2089
|
var result = $Array$1(max$2(fin - k, 0));
|
|
2141
2090
|
var n = 0;
|
|
2142
|
-
for (; k < fin; k++, n++)
|
|
2143
|
-
createProperty$3(result, n, O[k]);
|
|
2091
|
+
for (; k < fin; k++, n++) createProperty$3(result, n, O[k]);
|
|
2144
2092
|
result.length = n;
|
|
2145
2093
|
return result;
|
|
2146
2094
|
};
|
|
@@ -2161,10 +2109,8 @@ objectGetOwnPropertyNamesExternal.f = function getOwnPropertyNames2(it2) {
|
|
|
2161
2109
|
};
|
|
2162
2110
|
var createNonEnumerableProperty$4 = createNonEnumerableProperty$6;
|
|
2163
2111
|
var defineBuiltIn$5 = function(target, key, value, options) {
|
|
2164
|
-
if (options && options.enumerable)
|
|
2165
|
-
|
|
2166
|
-
else
|
|
2167
|
-
createNonEnumerableProperty$4(target, key, value);
|
|
2112
|
+
if (options && options.enumerable) target[key] = value;
|
|
2113
|
+
else createNonEnumerableProperty$4(target, key, value);
|
|
2168
2114
|
return target;
|
|
2169
2115
|
};
|
|
2170
2116
|
var defineProperty$d = objectDefineProperty;
|
|
@@ -2180,10 +2126,9 @@ var wrappedWellKnownSymbolModule$1 = wellKnownSymbolWrapped;
|
|
|
2180
2126
|
var defineProperty$c = objectDefineProperty.f;
|
|
2181
2127
|
var wellKnownSymbolDefine = function(NAME) {
|
|
2182
2128
|
var Symbol2 = path$p.Symbol || (path$p.Symbol = {});
|
|
2183
|
-
if (!hasOwn$d(Symbol2, NAME))
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
});
|
|
2129
|
+
if (!hasOwn$d(Symbol2, NAME)) defineProperty$c(Symbol2, NAME, {
|
|
2130
|
+
value: wrappedWellKnownSymbolModule$1.f(NAME)
|
|
2131
|
+
});
|
|
2187
2132
|
};
|
|
2188
2133
|
var call$6 = functionCall;
|
|
2189
2134
|
var getBuiltIn$7 = getBuiltIn$b;
|
|
@@ -2259,8 +2204,7 @@ if (NATIVE_WEAK_MAP$1 || shared$4.state) {
|
|
|
2259
2204
|
store.has = store.has;
|
|
2260
2205
|
store.set = store.set;
|
|
2261
2206
|
set$3 = function(it2, metadata) {
|
|
2262
|
-
if (store.has(it2))
|
|
2263
|
-
throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
2207
|
+
if (store.has(it2)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
2264
2208
|
metadata.facade = it2;
|
|
2265
2209
|
store.set(it2, metadata);
|
|
2266
2210
|
return metadata;
|
|
@@ -2275,8 +2219,7 @@ if (NATIVE_WEAK_MAP$1 || shared$4.state) {
|
|
|
2275
2219
|
STATE = sharedKey$2("state");
|
|
2276
2220
|
hiddenKeys$2[STATE] = true;
|
|
2277
2221
|
set$3 = function(it2, metadata) {
|
|
2278
|
-
if (hasOwn$b(it2, STATE))
|
|
2279
|
-
throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
2222
|
+
if (hasOwn$b(it2, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
2280
2223
|
metadata.facade = it2;
|
|
2281
2224
|
createNonEnumerableProperty$2(it2, STATE, metadata);
|
|
2282
2225
|
return metadata;
|
|
@@ -2321,33 +2264,33 @@ var createMethod$4 = function(TYPE) {
|
|
|
2321
2264
|
var create5 = specificCreate || arraySpeciesCreate$2;
|
|
2322
2265
|
var target = IS_MAP ? create5($this, length2) : IS_FILTER || IS_FILTER_REJECT ? create5($this, 0) : void 0;
|
|
2323
2266
|
var value, result;
|
|
2324
|
-
for (; length2 > index; index++)
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
if (
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
}
|
|
2267
|
+
for (; length2 > index; index++) if (NO_HOLES || index in self2) {
|
|
2268
|
+
value = self2[index];
|
|
2269
|
+
result = boundFunction(value, index, O);
|
|
2270
|
+
if (TYPE) {
|
|
2271
|
+
if (IS_MAP) target[index] = result;
|
|
2272
|
+
else if (result) switch (TYPE) {
|
|
2273
|
+
case 3:
|
|
2274
|
+
return true;
|
|
2275
|
+
// some
|
|
2276
|
+
case 5:
|
|
2277
|
+
return value;
|
|
2278
|
+
// find
|
|
2279
|
+
case 6:
|
|
2280
|
+
return index;
|
|
2281
|
+
// findIndex
|
|
2282
|
+
case 2:
|
|
2283
|
+
push$4(target, value);
|
|
2284
|
+
}
|
|
2285
|
+
else switch (TYPE) {
|
|
2286
|
+
case 4:
|
|
2287
|
+
return false;
|
|
2288
|
+
// every
|
|
2289
|
+
case 7:
|
|
2290
|
+
push$4(target, value);
|
|
2349
2291
|
}
|
|
2350
2292
|
}
|
|
2293
|
+
}
|
|
2351
2294
|
return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
|
|
2352
2295
|
};
|
|
2353
2296
|
};
|
|
@@ -2435,8 +2378,7 @@ var WellKnownSymbolsStore$1 = shared$3("wks");
|
|
|
2435
2378
|
var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
|
|
2436
2379
|
var fallbackDefineProperty = function(O, P, Attributes) {
|
|
2437
2380
|
var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor$1(ObjectPrototype$1, P);
|
|
2438
|
-
if (ObjectPrototypeDescriptor)
|
|
2439
|
-
delete ObjectPrototype$1[P];
|
|
2381
|
+
if (ObjectPrototypeDescriptor) delete ObjectPrototype$1[P];
|
|
2440
2382
|
nativeDefineProperty(O, P, Attributes);
|
|
2441
2383
|
if (ObjectPrototypeDescriptor && O !== ObjectPrototype$1) {
|
|
2442
2384
|
nativeDefineProperty(ObjectPrototype$1, P, ObjectPrototypeDescriptor);
|
|
@@ -2456,24 +2398,20 @@ var wrap = function(tag, description) {
|
|
|
2456
2398
|
tag,
|
|
2457
2399
|
description
|
|
2458
2400
|
});
|
|
2459
|
-
if (!DESCRIPTORS$b)
|
|
2460
|
-
symbol2.description = description;
|
|
2401
|
+
if (!DESCRIPTORS$b) symbol2.description = description;
|
|
2461
2402
|
return symbol2;
|
|
2462
2403
|
};
|
|
2463
2404
|
var $defineProperty = function defineProperty3(O, P, Attributes) {
|
|
2464
|
-
if (O === ObjectPrototype$1)
|
|
2465
|
-
$defineProperty(ObjectPrototypeSymbols, P, Attributes);
|
|
2405
|
+
if (O === ObjectPrototype$1) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
|
|
2466
2406
|
anObject$5(O);
|
|
2467
2407
|
var key = toPropertyKey(P);
|
|
2468
2408
|
anObject$5(Attributes);
|
|
2469
2409
|
if (hasOwn$a(AllSymbols, key)) {
|
|
2470
2410
|
if (!Attributes.enumerable) {
|
|
2471
|
-
if (!hasOwn$a(O, HIDDEN))
|
|
2472
|
-
nativeDefineProperty(O, HIDDEN, createPropertyDescriptor$1(1, {}));
|
|
2411
|
+
if (!hasOwn$a(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor$1(1, {}));
|
|
2473
2412
|
O[HIDDEN][key] = true;
|
|
2474
2413
|
} else {
|
|
2475
|
-
if (hasOwn$a(O, HIDDEN) && O[HIDDEN][key])
|
|
2476
|
-
O[HIDDEN][key] = false;
|
|
2414
|
+
if (hasOwn$a(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
|
|
2477
2415
|
Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor$1(0, false) });
|
|
2478
2416
|
}
|
|
2479
2417
|
return setSymbolDescriptor(O, key, Attributes);
|
|
@@ -2485,8 +2423,7 @@ var $defineProperties = function defineProperties2(O, Properties) {
|
|
|
2485
2423
|
var properties = toIndexedObject$5(Properties);
|
|
2486
2424
|
var keys4 = objectKeys$1(properties).concat($getOwnPropertySymbols(properties));
|
|
2487
2425
|
$forEach$1(keys4, function(key) {
|
|
2488
|
-
if (!DESCRIPTORS$b || call$5($propertyIsEnumerable$1, properties, key))
|
|
2489
|
-
$defineProperty(O, key, properties[key]);
|
|
2426
|
+
if (!DESCRIPTORS$b || call$5($propertyIsEnumerable$1, properties, key)) $defineProperty(O, key, properties[key]);
|
|
2490
2427
|
});
|
|
2491
2428
|
return O;
|
|
2492
2429
|
};
|
|
@@ -2496,15 +2433,13 @@ var $create = function create2(O, Properties) {
|
|
|
2496
2433
|
var $propertyIsEnumerable$1 = function propertyIsEnumerable2(V) {
|
|
2497
2434
|
var P = toPropertyKey(V);
|
|
2498
2435
|
var enumerable = call$5(nativePropertyIsEnumerable, this, P);
|
|
2499
|
-
if (this === ObjectPrototype$1 && hasOwn$a(AllSymbols, P) && !hasOwn$a(ObjectPrototypeSymbols, P))
|
|
2500
|
-
return false;
|
|
2436
|
+
if (this === ObjectPrototype$1 && hasOwn$a(AllSymbols, P) && !hasOwn$a(ObjectPrototypeSymbols, P)) return false;
|
|
2501
2437
|
return enumerable || !hasOwn$a(this, P) || !hasOwn$a(AllSymbols, P) || hasOwn$a(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;
|
|
2502
2438
|
};
|
|
2503
2439
|
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor2(O, P) {
|
|
2504
2440
|
var it2 = toIndexedObject$5(O);
|
|
2505
2441
|
var key = toPropertyKey(P);
|
|
2506
|
-
if (it2 === ObjectPrototype$1 && hasOwn$a(AllSymbols, key) && !hasOwn$a(ObjectPrototypeSymbols, key))
|
|
2507
|
-
return;
|
|
2442
|
+
if (it2 === ObjectPrototype$1 && hasOwn$a(AllSymbols, key) && !hasOwn$a(ObjectPrototypeSymbols, key)) return;
|
|
2508
2443
|
var descriptor = nativeGetOwnPropertyDescriptor$1(it2, key);
|
|
2509
2444
|
if (descriptor && hasOwn$a(AllSymbols, key) && !(hasOwn$a(it2, HIDDEN) && it2[HIDDEN][key])) {
|
|
2510
2445
|
descriptor.enumerable = true;
|
|
@@ -2515,8 +2450,7 @@ var $getOwnPropertyNames = function getOwnPropertyNames3(O) {
|
|
|
2515
2450
|
var names = nativeGetOwnPropertyNames(toIndexedObject$5(O));
|
|
2516
2451
|
var result = [];
|
|
2517
2452
|
$forEach$1(names, function(key) {
|
|
2518
|
-
if (!hasOwn$a(AllSymbols, key) && !hasOwn$a(hiddenKeys$1, key))
|
|
2519
|
-
push$3(result, key);
|
|
2453
|
+
if (!hasOwn$a(AllSymbols, key) && !hasOwn$a(hiddenKeys$1, key)) push$3(result, key);
|
|
2520
2454
|
});
|
|
2521
2455
|
return result;
|
|
2522
2456
|
};
|
|
@@ -2533,26 +2467,21 @@ var $getOwnPropertySymbols = function(O) {
|
|
|
2533
2467
|
};
|
|
2534
2468
|
if (!NATIVE_SYMBOL$3) {
|
|
2535
2469
|
$Symbol = function Symbol2() {
|
|
2536
|
-
if (isPrototypeOf$k(SymbolPrototype, this))
|
|
2537
|
-
throw new TypeError$1("Symbol is not a constructor");
|
|
2470
|
+
if (isPrototypeOf$k(SymbolPrototype, this)) throw new TypeError$1("Symbol is not a constructor");
|
|
2538
2471
|
var description = !arguments.length || arguments[0] === void 0 ? void 0 : $toString(arguments[0]);
|
|
2539
2472
|
var tag = uid$1(description);
|
|
2540
2473
|
var setter = function(value) {
|
|
2541
|
-
if (this === ObjectPrototype$1)
|
|
2542
|
-
|
|
2543
|
-
if (hasOwn$a(this, HIDDEN) && hasOwn$a(this[HIDDEN], tag))
|
|
2544
|
-
this[HIDDEN][tag] = false;
|
|
2474
|
+
if (this === ObjectPrototype$1) call$5(setter, ObjectPrototypeSymbols, value);
|
|
2475
|
+
if (hasOwn$a(this, HIDDEN) && hasOwn$a(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
|
|
2545
2476
|
var descriptor = createPropertyDescriptor$1(1, value);
|
|
2546
2477
|
try {
|
|
2547
2478
|
setSymbolDescriptor(this, tag, descriptor);
|
|
2548
2479
|
} catch (error) {
|
|
2549
|
-
if (!(error instanceof RangeError$1))
|
|
2550
|
-
throw error;
|
|
2480
|
+
if (!(error instanceof RangeError$1)) throw error;
|
|
2551
2481
|
fallbackDefineProperty(this, tag, descriptor);
|
|
2552
2482
|
}
|
|
2553
2483
|
};
|
|
2554
|
-
if (DESCRIPTORS$b && USE_SETTER)
|
|
2555
|
-
setSymbolDescriptor(ObjectPrototype$1, tag, { configurable: true, set: setter });
|
|
2484
|
+
if (DESCRIPTORS$b && USE_SETTER) setSymbolDescriptor(ObjectPrototype$1, tag, { configurable: true, set: setter });
|
|
2556
2485
|
return wrap(tag, description);
|
|
2557
2486
|
};
|
|
2558
2487
|
SymbolPrototype = $Symbol[PROTOTYPE];
|
|
@@ -2629,8 +2558,7 @@ var SymbolToStringRegistry$1 = shared$2("symbol-to-string-registry");
|
|
|
2629
2558
|
$$I({ target: "Symbol", stat: true, forced: !NATIVE_SYMBOL_REGISTRY$1 }, {
|
|
2630
2559
|
"for": function(key) {
|
|
2631
2560
|
var string2 = toString$8(key);
|
|
2632
|
-
if (hasOwn$9(StringToSymbolRegistry, string2))
|
|
2633
|
-
return StringToSymbolRegistry[string2];
|
|
2561
|
+
if (hasOwn$9(StringToSymbolRegistry, string2)) return StringToSymbolRegistry[string2];
|
|
2634
2562
|
var symbol2 = getBuiltIn$6("Symbol")(string2);
|
|
2635
2563
|
StringToSymbolRegistry[string2] = symbol2;
|
|
2636
2564
|
SymbolToStringRegistry$1[symbol2] = string2;
|
|
@@ -2646,10 +2574,8 @@ var NATIVE_SYMBOL_REGISTRY = symbolRegistryDetection;
|
|
|
2646
2574
|
var SymbolToStringRegistry = shared$1("symbol-to-string-registry");
|
|
2647
2575
|
$$H({ target: "Symbol", stat: true, forced: !NATIVE_SYMBOL_REGISTRY }, {
|
|
2648
2576
|
keyFor: function keyFor(sym) {
|
|
2649
|
-
if (!isSymbol$2(sym))
|
|
2650
|
-
|
|
2651
|
-
if (hasOwn$8(SymbolToStringRegistry, sym))
|
|
2652
|
-
return SymbolToStringRegistry[sym];
|
|
2577
|
+
if (!isSymbol$2(sym)) throw new TypeError(tryToString$3(sym) + " is not a symbol");
|
|
2578
|
+
if (hasOwn$8(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
|
|
2653
2579
|
}
|
|
2654
2580
|
});
|
|
2655
2581
|
var uncurryThis$h = functionUncurryThis;
|
|
@@ -2659,18 +2585,14 @@ var classof$9 = classofRaw$2;
|
|
|
2659
2585
|
var toString$7 = toString$a;
|
|
2660
2586
|
var push$2 = uncurryThis$h([].push);
|
|
2661
2587
|
var getJsonReplacerFunction = function(replacer) {
|
|
2662
|
-
if (isCallable$5(replacer))
|
|
2663
|
-
|
|
2664
|
-
if (!isArray$9(replacer))
|
|
2665
|
-
return;
|
|
2588
|
+
if (isCallable$5(replacer)) return replacer;
|
|
2589
|
+
if (!isArray$9(replacer)) return;
|
|
2666
2590
|
var rawLength = replacer.length;
|
|
2667
2591
|
var keys4 = [];
|
|
2668
2592
|
for (var i = 0; i < rawLength; i++) {
|
|
2669
2593
|
var element = replacer[i];
|
|
2670
|
-
if (typeof element == "string")
|
|
2671
|
-
|
|
2672
|
-
else if (typeof element == "number" || classof$9(element) === "Number" || classof$9(element) === "String")
|
|
2673
|
-
push$2(keys4, toString$7(element));
|
|
2594
|
+
if (typeof element == "string") push$2(keys4, element);
|
|
2595
|
+
else if (typeof element == "number" || classof$9(element) === "Number" || classof$9(element) === "String") push$2(keys4, toString$7(element));
|
|
2674
2596
|
}
|
|
2675
2597
|
var keysLength = keys4.length;
|
|
2676
2598
|
var root = true;
|
|
@@ -2679,11 +2601,8 @@ var getJsonReplacerFunction = function(replacer) {
|
|
|
2679
2601
|
root = false;
|
|
2680
2602
|
return value;
|
|
2681
2603
|
}
|
|
2682
|
-
if (isArray$9(this))
|
|
2683
|
-
|
|
2684
|
-
for (var j = 0; j < keysLength; j++)
|
|
2685
|
-
if (keys4[j] === key)
|
|
2686
|
-
return value;
|
|
2604
|
+
if (isArray$9(this)) return value;
|
|
2605
|
+
for (var j = 0; j < keysLength; j++) if (keys4[j] === key) return value;
|
|
2687
2606
|
};
|
|
2688
2607
|
};
|
|
2689
2608
|
var $$G = _export;
|
|
@@ -2717,13 +2636,10 @@ var ILL_FORMED_UNICODE = fails$i(function() {
|
|
|
2717
2636
|
var stringifyWithSymbolsFix = function(it2, replacer) {
|
|
2718
2637
|
var args = arraySlice$2(arguments);
|
|
2719
2638
|
var $replacer = getReplacerFunction(replacer);
|
|
2720
|
-
if (!isCallable$4($replacer) && (it2 === void 0 || isSymbol$1(it2)))
|
|
2721
|
-
return;
|
|
2639
|
+
if (!isCallable$4($replacer) && (it2 === void 0 || isSymbol$1(it2))) return;
|
|
2722
2640
|
args[1] = function(key, value) {
|
|
2723
|
-
if (isCallable$4($replacer))
|
|
2724
|
-
|
|
2725
|
-
if (!isSymbol$1(value))
|
|
2726
|
-
return value;
|
|
2641
|
+
if (isCallable$4($replacer)) value = call$4($replacer, this, $String(key), value);
|
|
2642
|
+
if (!isSymbol$1(value)) return value;
|
|
2727
2643
|
};
|
|
2728
2644
|
return apply$2($stringify, null, args);
|
|
2729
2645
|
};
|
|
@@ -2801,8 +2717,8 @@ var hasOwn$7 = hasOwnProperty_1;
|
|
|
2801
2717
|
var FunctionPrototype$1 = Function.prototype;
|
|
2802
2718
|
var getDescriptor = DESCRIPTORS$a && Object.getOwnPropertyDescriptor;
|
|
2803
2719
|
var EXISTS = hasOwn$7(FunctionPrototype$1, "name");
|
|
2804
|
-
var PROPER = EXISTS && function something() {
|
|
2805
|
-
}.name === "something";
|
|
2720
|
+
var PROPER = EXISTS && (function something() {
|
|
2721
|
+
}).name === "something";
|
|
2806
2722
|
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$a || DESCRIPTORS$a && getDescriptor(FunctionPrototype$1, "name").configurable);
|
|
2807
2723
|
var functionName = {
|
|
2808
2724
|
EXISTS,
|
|
@@ -2826,8 +2742,7 @@ var $Object$1 = Object;
|
|
|
2826
2742
|
var ObjectPrototype = $Object$1.prototype;
|
|
2827
2743
|
var objectGetPrototypeOf$1 = CORRECT_PROTOTYPE_GETTER$1 ? $Object$1.getPrototypeOf : function(O) {
|
|
2828
2744
|
var object2 = toObject$7(O);
|
|
2829
|
-
if (hasOwn$6(object2, IE_PROTO))
|
|
2830
|
-
return object2[IE_PROTO];
|
|
2745
|
+
if (hasOwn$6(object2, IE_PROTO)) return object2[IE_PROTO];
|
|
2831
2746
|
var constructor = object2.constructor;
|
|
2832
2747
|
if (isCallable$3(constructor) && object2 instanceof constructor) {
|
|
2833
2748
|
return constructor.prototype;
|
|
@@ -2848,22 +2763,18 @@ var PrototypeOfArrayIteratorPrototype;
|
|
|
2848
2763
|
var arrayIterator;
|
|
2849
2764
|
if ([].keys) {
|
|
2850
2765
|
arrayIterator = [].keys();
|
|
2851
|
-
if (!("next" in arrayIterator))
|
|
2852
|
-
BUGGY_SAFARI_ITERATORS$1 = true;
|
|
2766
|
+
if (!("next" in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
|
|
2853
2767
|
else {
|
|
2854
2768
|
PrototypeOfArrayIteratorPrototype = getPrototypeOf$4(getPrototypeOf$4(arrayIterator));
|
|
2855
|
-
if (PrototypeOfArrayIteratorPrototype !== Object.prototype)
|
|
2856
|
-
IteratorPrototype$1 = PrototypeOfArrayIteratorPrototype;
|
|
2769
|
+
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$1 = PrototypeOfArrayIteratorPrototype;
|
|
2857
2770
|
}
|
|
2858
2771
|
}
|
|
2859
2772
|
var NEW_ITERATOR_PROTOTYPE = !isObject$8(IteratorPrototype$1) || fails$f(function() {
|
|
2860
2773
|
var test2 = {};
|
|
2861
2774
|
return IteratorPrototype$1[ITERATOR$5].call(test2) !== test2;
|
|
2862
2775
|
});
|
|
2863
|
-
if (NEW_ITERATOR_PROTOTYPE)
|
|
2864
|
-
|
|
2865
|
-
else
|
|
2866
|
-
IteratorPrototype$1 = create$6(IteratorPrototype$1);
|
|
2776
|
+
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$1 = {};
|
|
2777
|
+
else IteratorPrototype$1 = create$6(IteratorPrototype$1);
|
|
2867
2778
|
if (!isCallable$2(IteratorPrototype$1[ITERATOR$5])) {
|
|
2868
2779
|
defineBuiltIn$2(IteratorPrototype$1, ITERATOR$5, function() {
|
|
2869
2780
|
return this;
|
|
@@ -2912,10 +2823,8 @@ var returnThis = function() {
|
|
|
2912
2823
|
var iteratorDefine = function(Iterable, NAME, IteratorConstructor, next3, DEFAULT, IS_SET, FORCED2) {
|
|
2913
2824
|
createIteratorConstructor(IteratorConstructor, NAME, next3);
|
|
2914
2825
|
var getIterationMethod = function(KIND) {
|
|
2915
|
-
if (KIND === DEFAULT && defaultIterator)
|
|
2916
|
-
|
|
2917
|
-
if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype)
|
|
2918
|
-
return IterablePrototype[KIND];
|
|
2826
|
+
if (KIND === DEFAULT && defaultIterator) return defaultIterator;
|
|
2827
|
+
if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
|
|
2919
2828
|
switch (KIND) {
|
|
2920
2829
|
case KEYS:
|
|
2921
2830
|
return function keys4() {
|
|
@@ -2962,14 +2871,12 @@ var iteratorDefine = function(Iterable, NAME, IteratorConstructor, next3, DEFAUL
|
|
|
2962
2871
|
keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
|
|
2963
2872
|
entries: getIterationMethod(ENTRIES)
|
|
2964
2873
|
};
|
|
2965
|
-
if (FORCED2)
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
|
|
2969
|
-
}
|
|
2874
|
+
if (FORCED2) for (KEY in methods) {
|
|
2875
|
+
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
2876
|
+
defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
|
|
2970
2877
|
}
|
|
2971
|
-
|
|
2972
|
-
|
|
2878
|
+
}
|
|
2879
|
+
else $$E({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
2973
2880
|
}
|
|
2974
2881
|
if (FORCED2 && IterablePrototype[ITERATOR$4] !== defaultIterator) {
|
|
2975
2882
|
defineBuiltIn$1(IterablePrototype, ITERATOR$4, defaultIterator, { name: DEFAULT });
|
|
@@ -3100,17 +3007,14 @@ $$D({ target: "Array", proto: true, forced: !HAS_SPECIES_SUPPORT$3 }, {
|
|
|
3100
3007
|
Constructor = void 0;
|
|
3101
3008
|
} else if (isObject$7(Constructor)) {
|
|
3102
3009
|
Constructor = Constructor[SPECIES$1];
|
|
3103
|
-
if (Constructor === null)
|
|
3104
|
-
Constructor = void 0;
|
|
3010
|
+
if (Constructor === null) Constructor = void 0;
|
|
3105
3011
|
}
|
|
3106
3012
|
if (Constructor === $Array || Constructor === void 0) {
|
|
3107
3013
|
return nativeSlice(O, k, fin);
|
|
3108
3014
|
}
|
|
3109
3015
|
}
|
|
3110
3016
|
result = new (Constructor === void 0 ? $Array : Constructor)(max$1(fin - k, 0));
|
|
3111
|
-
for (n = 0; k < fin; k++, n++)
|
|
3112
|
-
if (k in O)
|
|
3113
|
-
createProperty$2(result, n, O[k]);
|
|
3017
|
+
for (n = 0; k < fin; k++, n++) if (k in O) createProperty$2(result, n, O[k]);
|
|
3114
3018
|
result.length = n;
|
|
3115
3019
|
return result;
|
|
3116
3020
|
}
|
|
@@ -3262,8 +3166,7 @@ var nativeReverse = uncurryThis$d([].reverse);
|
|
|
3262
3166
|
var test$1 = [1, 2];
|
|
3263
3167
|
$$w({ target: "Array", proto: true, forced: String(test$1) === String(test$1.reverse()) }, {
|
|
3264
3168
|
reverse: function reverse() {
|
|
3265
|
-
if (isArray$3(this))
|
|
3266
|
-
this.length = this.length;
|
|
3169
|
+
if (isArray$3(this)) this.length = this.length;
|
|
3267
3170
|
return nativeReverse(this);
|
|
3268
3171
|
}
|
|
3269
3172
|
});
|
|
@@ -3284,15 +3187,14 @@ var DESCRIPTORS$9 = descriptors;
|
|
|
3284
3187
|
var isArray$2 = isArray$c;
|
|
3285
3188
|
var $TypeError$7 = TypeError;
|
|
3286
3189
|
var getOwnPropertyDescriptor$4 = Object.getOwnPropertyDescriptor;
|
|
3287
|
-
var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$9 && !function() {
|
|
3288
|
-
if (this !== void 0)
|
|
3289
|
-
return true;
|
|
3190
|
+
var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$9 && !(function() {
|
|
3191
|
+
if (this !== void 0) return true;
|
|
3290
3192
|
try {
|
|
3291
3193
|
Object.defineProperty([], "length", { writable: false }).length = 1;
|
|
3292
3194
|
} catch (error) {
|
|
3293
3195
|
return error instanceof TypeError;
|
|
3294
3196
|
}
|
|
3295
|
-
}();
|
|
3197
|
+
})();
|
|
3296
3198
|
var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function(O, length2) {
|
|
3297
3199
|
if (isArray$2(O) && !getOwnPropertyDescriptor$4(O, "length").writable) {
|
|
3298
3200
|
throw new $TypeError$7("Cannot set read only .length");
|
|
@@ -3304,8 +3206,7 @@ var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function(O, length2) {
|
|
|
3304
3206
|
var tryToString$2 = tryToString$5;
|
|
3305
3207
|
var $TypeError$6 = TypeError;
|
|
3306
3208
|
var deletePropertyOrThrow$2 = function(O, P) {
|
|
3307
|
-
if (!delete O[P])
|
|
3308
|
-
throw new $TypeError$6("Cannot delete property " + tryToString$2(P) + " of " + tryToString$2(O));
|
|
3209
|
+
if (!delete O[P]) throw new $TypeError$6("Cannot delete property " + tryToString$2(P) + " of " + tryToString$2(O));
|
|
3309
3210
|
};
|
|
3310
3211
|
var $$v = _export;
|
|
3311
3212
|
var toObject$5 = toObject$d;
|
|
@@ -3341,29 +3242,23 @@ $$v({ target: "Array", proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
|
|
|
3341
3242
|
A = arraySpeciesCreate$1(O, actualDeleteCount);
|
|
3342
3243
|
for (k = 0; k < actualDeleteCount; k++) {
|
|
3343
3244
|
from = actualStart + k;
|
|
3344
|
-
if (from in O)
|
|
3345
|
-
createProperty$1(A, k, O[from]);
|
|
3245
|
+
if (from in O) createProperty$1(A, k, O[from]);
|
|
3346
3246
|
}
|
|
3347
3247
|
A.length = actualDeleteCount;
|
|
3348
3248
|
if (insertCount < actualDeleteCount) {
|
|
3349
3249
|
for (k = actualStart; k < len - actualDeleteCount; k++) {
|
|
3350
3250
|
from = k + actualDeleteCount;
|
|
3351
3251
|
to = k + insertCount;
|
|
3352
|
-
if (from in O)
|
|
3353
|
-
|
|
3354
|
-
else
|
|
3355
|
-
deletePropertyOrThrow$1(O, to);
|
|
3252
|
+
if (from in O) O[to] = O[from];
|
|
3253
|
+
else deletePropertyOrThrow$1(O, to);
|
|
3356
3254
|
}
|
|
3357
|
-
for (k = len; k > len - actualDeleteCount + insertCount; k--)
|
|
3358
|
-
deletePropertyOrThrow$1(O, k - 1);
|
|
3255
|
+
for (k = len; k > len - actualDeleteCount + insertCount; k--) deletePropertyOrThrow$1(O, k - 1);
|
|
3359
3256
|
} else if (insertCount > actualDeleteCount) {
|
|
3360
3257
|
for (k = len - actualDeleteCount; k > actualStart; k--) {
|
|
3361
3258
|
from = k + actualDeleteCount - 1;
|
|
3362
3259
|
to = k + insertCount - 1;
|
|
3363
|
-
if (from in O)
|
|
3364
|
-
|
|
3365
|
-
else
|
|
3366
|
-
deletePropertyOrThrow$1(O, to);
|
|
3260
|
+
if (from in O) O[to] = O[from];
|
|
3261
|
+
else deletePropertyOrThrow$1(O, to);
|
|
3367
3262
|
}
|
|
3368
3263
|
}
|
|
3369
3264
|
for (k = 0; k < insertCount; k++) {
|
|
@@ -3455,8 +3350,7 @@ var ArrayPrototype$d = Array.prototype;
|
|
|
3455
3350
|
var StringPrototype = String.prototype;
|
|
3456
3351
|
var includes$2 = function(it2) {
|
|
3457
3352
|
var own = it2.includes;
|
|
3458
|
-
if (it2 === ArrayPrototype$d || isPrototypeOf$e(ArrayPrototype$d, it2) && own === ArrayPrototype$d.includes)
|
|
3459
|
-
return arrayMethod;
|
|
3353
|
+
if (it2 === ArrayPrototype$d || isPrototypeOf$e(ArrayPrototype$d, it2) && own === ArrayPrototype$d.includes) return arrayMethod;
|
|
3460
3354
|
if (typeof it2 == "string" || it2 === StringPrototype || isPrototypeOf$e(StringPrototype, it2) && own === StringPrototype.includes) {
|
|
3461
3355
|
return stringMethod;
|
|
3462
3356
|
}
|
|
@@ -3584,10 +3478,8 @@ var rtrim = RegExp("(^|[^" + whitespaces$2 + "])[" + whitespaces$2 + "]+$");
|
|
|
3584
3478
|
var createMethod$2 = function(TYPE) {
|
|
3585
3479
|
return function($this) {
|
|
3586
3480
|
var string2 = toString$5(requireObjectCoercible$1($this));
|
|
3587
|
-
if (TYPE & 1)
|
|
3588
|
-
|
|
3589
|
-
if (TYPE & 2)
|
|
3590
|
-
string2 = replace(string2, rtrim, "$1");
|
|
3481
|
+
if (TYPE & 1) string2 = replace(string2, ltrim, "");
|
|
3482
|
+
if (TYPE & 2) string2 = replace(string2, rtrim, "$1");
|
|
3591
3483
|
return string2;
|
|
3592
3484
|
};
|
|
3593
3485
|
};
|
|
@@ -3674,8 +3566,7 @@ var create$1 = create$2;
|
|
|
3674
3566
|
var _Object$create = /* @__PURE__ */ getDefaultExportFromCjs(create$1);
|
|
3675
3567
|
var path$f = path$u;
|
|
3676
3568
|
var apply$1 = functionApply;
|
|
3677
|
-
if (!path$f.JSON)
|
|
3678
|
-
path$f.JSON = { stringify: JSON.stringify };
|
|
3569
|
+
if (!path$f.JSON) path$f.JSON = { stringify: JSON.stringify };
|
|
3679
3570
|
var stringify$2 = function stringify(it2, replacer, space) {
|
|
3680
3571
|
return apply$1(path$f.JSON.stringify, null, arguments);
|
|
3681
3572
|
};
|
|
@@ -3686,8 +3577,7 @@ var _JSON$stringify = /* @__PURE__ */ getDefaultExportFromCjs(stringify2);
|
|
|
3686
3577
|
var engineIsBun = typeof Bun == "function" && Bun && typeof Bun.version == "string";
|
|
3687
3578
|
var $TypeError$4 = TypeError;
|
|
3688
3579
|
var validateArgumentsLength$1 = function(passed, required) {
|
|
3689
|
-
if (passed < required)
|
|
3690
|
-
throw new $TypeError$4("Not enough arguments");
|
|
3580
|
+
if (passed < required) throw new $TypeError$4("Not enough arguments");
|
|
3691
3581
|
return passed;
|
|
3692
3582
|
};
|
|
3693
3583
|
var global$8 = global$n;
|
|
@@ -3698,10 +3588,10 @@ var USER_AGENT = engineUserAgent;
|
|
|
3698
3588
|
var arraySlice$1 = arraySlice$5;
|
|
3699
3589
|
var validateArgumentsLength = validateArgumentsLength$1;
|
|
3700
3590
|
var Function$1 = global$8.Function;
|
|
3701
|
-
var WRAP = /MSIE .\./.test(USER_AGENT) || ENGINE_IS_BUN && function() {
|
|
3591
|
+
var WRAP = /MSIE .\./.test(USER_AGENT) || ENGINE_IS_BUN && (function() {
|
|
3702
3592
|
var version2 = global$8.Bun.version.split(".");
|
|
3703
3593
|
return version2.length < 3 || version2[0] === "0" && (version2[1] < 3 || version2[1] === "3" && version2[2] === "0");
|
|
3704
|
-
}();
|
|
3594
|
+
})();
|
|
3705
3595
|
var schedulersFix$2 = function(scheduler, hasTimeArg) {
|
|
3706
3596
|
var firstParamIndex = hasTimeArg ? 2 : 1;
|
|
3707
3597
|
return WRAP ? function(handler, timeout) {
|
|
@@ -3742,8 +3632,7 @@ var arrayFill = function fill(value) {
|
|
|
3742
3632
|
var index = toAbsoluteIndex(argumentsLength > 1 ? arguments[1] : void 0, length2);
|
|
3743
3633
|
var end = argumentsLength > 2 ? arguments[2] : void 0;
|
|
3744
3634
|
var endPos = end === void 0 ? length2 : toAbsoluteIndex(end, length2);
|
|
3745
|
-
while (endPos > index)
|
|
3746
|
-
O[index++] = value;
|
|
3635
|
+
while (endPos > index) O[index++] = value;
|
|
3747
3636
|
return O;
|
|
3748
3637
|
};
|
|
3749
3638
|
var $$k = _export;
|
|
@@ -3929,7 +3818,7 @@ function cleanTouchActions(actions) {
|
|
|
3929
3818
|
}
|
|
3930
3819
|
return TOUCH_ACTION_AUTO;
|
|
3931
3820
|
}
|
|
3932
|
-
var TouchAction = /* @__PURE__ */ function() {
|
|
3821
|
+
var TouchAction = /* @__PURE__ */ (function() {
|
|
3933
3822
|
function TouchAction2(manager, value) {
|
|
3934
3823
|
this.manager = manager;
|
|
3935
3824
|
this.set(value);
|
|
@@ -3987,7 +3876,7 @@ var TouchAction = /* @__PURE__ */ function() {
|
|
|
3987
3876
|
srcEvent.preventDefault();
|
|
3988
3877
|
};
|
|
3989
3878
|
return TouchAction2;
|
|
3990
|
-
}();
|
|
3879
|
+
})();
|
|
3991
3880
|
function hasParent(node, parent2) {
|
|
3992
3881
|
while (node) {
|
|
3993
3882
|
if (node === parent2) {
|
|
@@ -4195,7 +4084,7 @@ function getWindowForElement(element) {
|
|
|
4195
4084
|
var doc = element.ownerDocument || element;
|
|
4196
4085
|
return doc.defaultView || doc.parentWindow || window;
|
|
4197
4086
|
}
|
|
4198
|
-
var Input = /* @__PURE__ */ function() {
|
|
4087
|
+
var Input = /* @__PURE__ */ (function() {
|
|
4199
4088
|
function Input2(manager, callback) {
|
|
4200
4089
|
var self2 = this;
|
|
4201
4090
|
this.manager = manager;
|
|
@@ -4223,7 +4112,7 @@ var Input = /* @__PURE__ */ function() {
|
|
|
4223
4112
|
this.evWin && removeEventListeners(getWindowForElement(this.element), this.evWin, this.domHandler);
|
|
4224
4113
|
};
|
|
4225
4114
|
return Input2;
|
|
4226
|
-
}();
|
|
4115
|
+
})();
|
|
4227
4116
|
function inArray(src, find2, findByKey) {
|
|
4228
4117
|
if (src.indexOf && !findByKey) {
|
|
4229
4118
|
return src.indexOf(find2);
|
|
@@ -4258,7 +4147,7 @@ if (win.MSPointerEvent && !win.PointerEvent) {
|
|
|
4258
4147
|
POINTER_ELEMENT_EVENTS = "MSPointerDown";
|
|
4259
4148
|
POINTER_WINDOW_EVENTS = "MSPointerMove MSPointerUp MSPointerCancel";
|
|
4260
4149
|
}
|
|
4261
|
-
var PointerEventInput = /* @__PURE__ */ function(_Input) {
|
|
4150
|
+
var PointerEventInput = /* @__PURE__ */ (function(_Input) {
|
|
4262
4151
|
_inheritsLoose(PointerEventInput2, _Input);
|
|
4263
4152
|
function PointerEventInput2() {
|
|
4264
4153
|
var _this;
|
|
@@ -4301,7 +4190,7 @@ var PointerEventInput = /* @__PURE__ */ function(_Input) {
|
|
|
4301
4190
|
}
|
|
4302
4191
|
};
|
|
4303
4192
|
return PointerEventInput2;
|
|
4304
|
-
}(Input);
|
|
4193
|
+
})(Input);
|
|
4305
4194
|
function toArray(obj) {
|
|
4306
4195
|
return Array.prototype.slice.call(obj, 0);
|
|
4307
4196
|
}
|
|
@@ -4335,7 +4224,7 @@ var TOUCH_INPUT_MAP = {
|
|
|
4335
4224
|
touchcancel: INPUT_CANCEL
|
|
4336
4225
|
};
|
|
4337
4226
|
var TOUCH_TARGET_EVENTS = "touchstart touchmove touchend touchcancel";
|
|
4338
|
-
var TouchInput = /* @__PURE__ */ function(_Input) {
|
|
4227
|
+
var TouchInput = /* @__PURE__ */ (function(_Input) {
|
|
4339
4228
|
_inheritsLoose(TouchInput2, _Input);
|
|
4340
4229
|
function TouchInput2() {
|
|
4341
4230
|
var _this;
|
|
@@ -4359,7 +4248,7 @@ var TouchInput = /* @__PURE__ */ function(_Input) {
|
|
|
4359
4248
|
});
|
|
4360
4249
|
};
|
|
4361
4250
|
return TouchInput2;
|
|
4362
|
-
}(Input);
|
|
4251
|
+
})(Input);
|
|
4363
4252
|
function getTouches(ev, type) {
|
|
4364
4253
|
var allTouches = toArray(ev.touches);
|
|
4365
4254
|
var targetIds = this.targetIds;
|
|
@@ -4408,7 +4297,7 @@ var MOUSE_INPUT_MAP = {
|
|
|
4408
4297
|
};
|
|
4409
4298
|
var MOUSE_ELEMENT_EVENTS = "mousedown";
|
|
4410
4299
|
var MOUSE_WINDOW_EVENTS = "mousemove mouseup";
|
|
4411
|
-
var MouseInput = /* @__PURE__ */ function(_Input) {
|
|
4300
|
+
var MouseInput = /* @__PURE__ */ (function(_Input) {
|
|
4412
4301
|
_inheritsLoose(MouseInput2, _Input);
|
|
4413
4302
|
function MouseInput2() {
|
|
4414
4303
|
var _this;
|
|
@@ -4442,7 +4331,7 @@ var MouseInput = /* @__PURE__ */ function(_Input) {
|
|
|
4442
4331
|
});
|
|
4443
4332
|
};
|
|
4444
4333
|
return MouseInput2;
|
|
4445
|
-
}(Input);
|
|
4334
|
+
})(Input);
|
|
4446
4335
|
var DEDUP_TIMEOUT = 2500;
|
|
4447
4336
|
var DEDUP_DISTANCE = 25;
|
|
4448
4337
|
function setLastTouch(eventData) {
|
|
@@ -4484,8 +4373,8 @@ function isSyntheticEvent(eventData) {
|
|
|
4484
4373
|
}
|
|
4485
4374
|
return false;
|
|
4486
4375
|
}
|
|
4487
|
-
var TouchMouseInput = /* @__PURE__ */ function() {
|
|
4488
|
-
var TouchMouseInput2 = /* @__PURE__ */ function(_Input) {
|
|
4376
|
+
var TouchMouseInput = /* @__PURE__ */ (function() {
|
|
4377
|
+
var TouchMouseInput2 = /* @__PURE__ */ (function(_Input) {
|
|
4489
4378
|
_inheritsLoose(TouchMouseInput3, _Input);
|
|
4490
4379
|
function TouchMouseInput3(_manager, callback) {
|
|
4491
4380
|
var _this;
|
|
@@ -4515,9 +4404,9 @@ var TouchMouseInput = /* @__PURE__ */ function() {
|
|
|
4515
4404
|
this.mouse.destroy();
|
|
4516
4405
|
};
|
|
4517
4406
|
return TouchMouseInput3;
|
|
4518
|
-
}(Input);
|
|
4407
|
+
})(Input);
|
|
4519
4408
|
return TouchMouseInput2;
|
|
4520
|
-
}();
|
|
4409
|
+
})();
|
|
4521
4410
|
function createInputInstance(manager) {
|
|
4522
4411
|
var Type;
|
|
4523
4412
|
var inputClass = manager.options.inputClass;
|
|
@@ -4571,7 +4460,7 @@ function stateStr(state) {
|
|
|
4571
4460
|
}
|
|
4572
4461
|
return "";
|
|
4573
4462
|
}
|
|
4574
|
-
var Recognizer = /* @__PURE__ */ function() {
|
|
4463
|
+
var Recognizer = /* @__PURE__ */ (function() {
|
|
4575
4464
|
function Recognizer2(options) {
|
|
4576
4465
|
if (options === void 0) {
|
|
4577
4466
|
options = {};
|
|
@@ -4695,8 +4584,8 @@ var Recognizer = /* @__PURE__ */ function() {
|
|
|
4695
4584
|
_proto.reset = function reset() {
|
|
4696
4585
|
};
|
|
4697
4586
|
return Recognizer2;
|
|
4698
|
-
}();
|
|
4699
|
-
var TapRecognizer = /* @__PURE__ */ function(_Recognizer) {
|
|
4587
|
+
})();
|
|
4588
|
+
var TapRecognizer = /* @__PURE__ */ (function(_Recognizer) {
|
|
4700
4589
|
_inheritsLoose(TapRecognizer2, _Recognizer);
|
|
4701
4590
|
function TapRecognizer2(options) {
|
|
4702
4591
|
var _this;
|
|
@@ -4782,8 +4671,8 @@ var TapRecognizer = /* @__PURE__ */ function(_Recognizer) {
|
|
|
4782
4671
|
}
|
|
4783
4672
|
};
|
|
4784
4673
|
return TapRecognizer2;
|
|
4785
|
-
}(Recognizer);
|
|
4786
|
-
var AttrRecognizer = /* @__PURE__ */ function(_Recognizer) {
|
|
4674
|
+
})(Recognizer);
|
|
4675
|
+
var AttrRecognizer = /* @__PURE__ */ (function(_Recognizer) {
|
|
4787
4676
|
_inheritsLoose(AttrRecognizer2, _Recognizer);
|
|
4788
4677
|
function AttrRecognizer2(options) {
|
|
4789
4678
|
if (options === void 0) {
|
|
@@ -4816,7 +4705,7 @@ var AttrRecognizer = /* @__PURE__ */ function(_Recognizer) {
|
|
|
4816
4705
|
return STATE_FAILED;
|
|
4817
4706
|
};
|
|
4818
4707
|
return AttrRecognizer2;
|
|
4819
|
-
}(Recognizer);
|
|
4708
|
+
})(Recognizer);
|
|
4820
4709
|
function directionStr(direction) {
|
|
4821
4710
|
if (direction === DIRECTION_DOWN) {
|
|
4822
4711
|
return "down";
|
|
@@ -4829,7 +4718,7 @@ function directionStr(direction) {
|
|
|
4829
4718
|
}
|
|
4830
4719
|
return "";
|
|
4831
4720
|
}
|
|
4832
|
-
var PanRecognizer = /* @__PURE__ */ function(_AttrRecognizer) {
|
|
4721
|
+
var PanRecognizer = /* @__PURE__ */ (function(_AttrRecognizer) {
|
|
4833
4722
|
_inheritsLoose(PanRecognizer2, _AttrRecognizer);
|
|
4834
4723
|
function PanRecognizer2(options) {
|
|
4835
4724
|
var _this;
|
|
@@ -4893,8 +4782,8 @@ var PanRecognizer = /* @__PURE__ */ function(_AttrRecognizer) {
|
|
|
4893
4782
|
_AttrRecognizer.prototype.emit.call(this, input);
|
|
4894
4783
|
};
|
|
4895
4784
|
return PanRecognizer2;
|
|
4896
|
-
}(AttrRecognizer);
|
|
4897
|
-
var SwipeRecognizer = /* @__PURE__ */ function(_AttrRecognizer) {
|
|
4785
|
+
})(AttrRecognizer);
|
|
4786
|
+
var SwipeRecognizer = /* @__PURE__ */ (function(_AttrRecognizer) {
|
|
4898
4787
|
_inheritsLoose(SwipeRecognizer2, _AttrRecognizer);
|
|
4899
4788
|
function SwipeRecognizer2(options) {
|
|
4900
4789
|
if (options === void 0) {
|
|
@@ -4932,8 +4821,8 @@ var SwipeRecognizer = /* @__PURE__ */ function(_AttrRecognizer) {
|
|
|
4932
4821
|
this.manager.emit(this.options.event, input);
|
|
4933
4822
|
};
|
|
4934
4823
|
return SwipeRecognizer2;
|
|
4935
|
-
}(AttrRecognizer);
|
|
4936
|
-
var PinchRecognizer = /* @__PURE__ */ function(_AttrRecognizer) {
|
|
4824
|
+
})(AttrRecognizer);
|
|
4825
|
+
var PinchRecognizer = /* @__PURE__ */ (function(_AttrRecognizer) {
|
|
4937
4826
|
_inheritsLoose(PinchRecognizer2, _AttrRecognizer);
|
|
4938
4827
|
function PinchRecognizer2(options) {
|
|
4939
4828
|
if (options === void 0) {
|
|
@@ -4960,8 +4849,8 @@ var PinchRecognizer = /* @__PURE__ */ function(_AttrRecognizer) {
|
|
|
4960
4849
|
_AttrRecognizer.prototype.emit.call(this, input);
|
|
4961
4850
|
};
|
|
4962
4851
|
return PinchRecognizer2;
|
|
4963
|
-
}(AttrRecognizer);
|
|
4964
|
-
var RotateRecognizer = /* @__PURE__ */ function(_AttrRecognizer) {
|
|
4852
|
+
})(AttrRecognizer);
|
|
4853
|
+
var RotateRecognizer = /* @__PURE__ */ (function(_AttrRecognizer) {
|
|
4965
4854
|
_inheritsLoose(RotateRecognizer2, _AttrRecognizer);
|
|
4966
4855
|
function RotateRecognizer2(options) {
|
|
4967
4856
|
if (options === void 0) {
|
|
@@ -4981,8 +4870,8 @@ var RotateRecognizer = /* @__PURE__ */ function(_AttrRecognizer) {
|
|
|
4981
4870
|
return _AttrRecognizer.prototype.attrTest.call(this, input) && (Math.abs(input.rotation) > this.options.threshold || this.state & STATE_BEGAN);
|
|
4982
4871
|
};
|
|
4983
4872
|
return RotateRecognizer2;
|
|
4984
|
-
}(AttrRecognizer);
|
|
4985
|
-
var PressRecognizer = /* @__PURE__ */ function(_Recognizer) {
|
|
4873
|
+
})(AttrRecognizer);
|
|
4874
|
+
var PressRecognizer = /* @__PURE__ */ (function(_Recognizer) {
|
|
4986
4875
|
_inheritsLoose(PressRecognizer2, _Recognizer);
|
|
4987
4876
|
function PressRecognizer2(options) {
|
|
4988
4877
|
var _this;
|
|
@@ -5039,7 +4928,7 @@ var PressRecognizer = /* @__PURE__ */ function(_Recognizer) {
|
|
|
5039
4928
|
}
|
|
5040
4929
|
};
|
|
5041
4930
|
return PressRecognizer2;
|
|
5042
|
-
}(Recognizer);
|
|
4931
|
+
})(Recognizer);
|
|
5043
4932
|
var defaults = {
|
|
5044
4933
|
/**
|
|
5045
4934
|
* @private
|
|
@@ -5172,7 +5061,7 @@ function triggerDomEvent(event, data2) {
|
|
|
5172
5061
|
gestureEvent.gesture = data2;
|
|
5173
5062
|
data2.target.dispatchEvent(gestureEvent);
|
|
5174
5063
|
}
|
|
5175
|
-
var Manager = /* @__PURE__ */ function() {
|
|
5064
|
+
var Manager = /* @__PURE__ */ (function() {
|
|
5176
5065
|
function Manager2(element, options) {
|
|
5177
5066
|
var _this = this;
|
|
5178
5067
|
this.options = assign$1({}, defaults, options || {});
|
|
@@ -5328,7 +5217,7 @@ var Manager = /* @__PURE__ */ function() {
|
|
|
5328
5217
|
this.element = null;
|
|
5329
5218
|
};
|
|
5330
5219
|
return Manager2;
|
|
5331
|
-
}();
|
|
5220
|
+
})();
|
|
5332
5221
|
var SINGLE_TOUCH_INPUT_MAP = {
|
|
5333
5222
|
touchstart: INPUT_START,
|
|
5334
5223
|
touchmove: INPUT_MOVE,
|
|
@@ -5337,7 +5226,7 @@ var SINGLE_TOUCH_INPUT_MAP = {
|
|
|
5337
5226
|
};
|
|
5338
5227
|
var SINGLE_TOUCH_TARGET_EVENTS = "touchstart";
|
|
5339
5228
|
var SINGLE_TOUCH_WINDOW_EVENTS = "touchstart touchmove touchend touchcancel";
|
|
5340
|
-
var SingleTouchInput = /* @__PURE__ */ function(_Input) {
|
|
5229
|
+
var SingleTouchInput = /* @__PURE__ */ (function(_Input) {
|
|
5341
5230
|
_inheritsLoose(SingleTouchInput2, _Input);
|
|
5342
5231
|
function SingleTouchInput2() {
|
|
5343
5232
|
var _this;
|
|
@@ -5369,7 +5258,7 @@ var SingleTouchInput = /* @__PURE__ */ function(_Input) {
|
|
|
5369
5258
|
});
|
|
5370
5259
|
};
|
|
5371
5260
|
return SingleTouchInput2;
|
|
5372
|
-
}(Input);
|
|
5261
|
+
})(Input);
|
|
5373
5262
|
function normalizeSingleTouches(ev, type) {
|
|
5374
5263
|
var all = toArray(ev.touches);
|
|
5375
5264
|
var changed = toArray(ev.changedTouches);
|
|
@@ -5419,7 +5308,7 @@ function bindFn(fn, context) {
|
|
|
5419
5308
|
return fn.apply(context, arguments);
|
|
5420
5309
|
};
|
|
5421
5310
|
}
|
|
5422
|
-
var Hammer$2 = /* @__PURE__ */ function() {
|
|
5311
|
+
var Hammer$2 = /* @__PURE__ */ (function() {
|
|
5423
5312
|
var Hammer2 = (
|
|
5424
5313
|
/**
|
|
5425
5314
|
* @private
|
|
@@ -5493,7 +5382,7 @@ var Hammer$2 = /* @__PURE__ */ function() {
|
|
|
5493
5382
|
preset
|
|
5494
5383
|
});
|
|
5495
5384
|
return Hammer2;
|
|
5496
|
-
}();
|
|
5385
|
+
})();
|
|
5497
5386
|
Hammer$2.defaults;
|
|
5498
5387
|
var RealHammer = Hammer$2;
|
|
5499
5388
|
var DELETE = _Symbol$1("DELETE");
|
|
@@ -5524,8 +5413,7 @@ function deepObjectAssignNonentry() {
|
|
|
5524
5413
|
return a;
|
|
5525
5414
|
}
|
|
5526
5415
|
for (const prop of _Reflect$ownKeys(b)) {
|
|
5527
|
-
if (!Object.prototype.propertyIsEnumerable.call(b, prop))
|
|
5528
|
-
;
|
|
5416
|
+
if (!Object.prototype.propertyIsEnumerable.call(b, prop)) ;
|
|
5529
5417
|
else if (b[prop] === DELETE) {
|
|
5530
5418
|
delete a[prop];
|
|
5531
5419
|
} else if (a[prop] !== null && b[prop] !== null && typeof a[prop] === "object" && typeof b[prop] === "object" && !_Array$isArray(a[prop]) && !_Array$isArray(b[prop])) {
|
|
@@ -8058,10 +7946,8 @@ var Validator$1 = class Validator {
|
|
|
8058
7946
|
* @static
|
|
8059
7947
|
*/
|
|
8060
7948
|
static levenshteinDistance(a, b) {
|
|
8061
|
-
if (a.length === 0)
|
|
8062
|
-
|
|
8063
|
-
if (b.length === 0)
|
|
8064
|
-
return a.length;
|
|
7949
|
+
if (a.length === 0) return b.length;
|
|
7950
|
+
if (b.length === 0) return a.length;
|
|
8065
7951
|
const matrix = [];
|
|
8066
7952
|
let i;
|
|
8067
7953
|
for (i = 0; i <= b.length; i++) {
|
|
@@ -9363,8 +9249,7 @@ var CachedImage = class {
|
|
|
9363
9249
|
* Called when the image has been successfully loaded.
|
|
9364
9250
|
*/
|
|
9365
9251
|
init() {
|
|
9366
|
-
if (this.initialized())
|
|
9367
|
-
return;
|
|
9252
|
+
if (this.initialized()) return;
|
|
9368
9253
|
this.src = this.image.src;
|
|
9369
9254
|
const w = this.image.width;
|
|
9370
9255
|
const h = this.image.height;
|
|
@@ -9430,8 +9315,7 @@ var CachedImage = class {
|
|
|
9430
9315
|
* @param {number} height
|
|
9431
9316
|
*/
|
|
9432
9317
|
drawImageAtPosition(ctx, factor, left, top, width, height) {
|
|
9433
|
-
if (!this.initialized())
|
|
9434
|
-
return;
|
|
9318
|
+
if (!this.initialized()) return;
|
|
9435
9319
|
if (factor > 2) {
|
|
9436
9320
|
factor *= 0.5;
|
|
9437
9321
|
let iterations = 0;
|
|
@@ -9464,8 +9348,7 @@ var Images = class {
|
|
|
9464
9348
|
* @param {Image} imageToLoadBrokenUrlOn The image object
|
|
9465
9349
|
*/
|
|
9466
9350
|
_tryloadBrokenUrl(url, brokenUrl, imageToLoadBrokenUrlOn) {
|
|
9467
|
-
if (url === void 0 || imageToLoadBrokenUrlOn === void 0)
|
|
9468
|
-
return;
|
|
9351
|
+
if (url === void 0 || imageToLoadBrokenUrlOn === void 0) return;
|
|
9469
9352
|
if (brokenUrl === void 0) {
|
|
9470
9353
|
console.warn("No broken url image defined");
|
|
9471
9354
|
return;
|
|
@@ -9492,8 +9375,7 @@ var Images = class {
|
|
|
9492
9375
|
*/
|
|
9493
9376
|
load(url, brokenUrl) {
|
|
9494
9377
|
const cachedImage = this.images[url];
|
|
9495
|
-
if (cachedImage)
|
|
9496
|
-
return cachedImage;
|
|
9378
|
+
if (cachedImage) return cachedImage;
|
|
9497
9379
|
const img = new CachedImage();
|
|
9498
9380
|
this.images[url] = img;
|
|
9499
9381
|
img.image.onload = () => {
|
|
@@ -9529,8 +9411,7 @@ var fails$8 = fails$v;
|
|
|
9529
9411
|
var arrayBufferNonExtensible = fails$8(function() {
|
|
9530
9412
|
if (typeof ArrayBuffer == "function") {
|
|
9531
9413
|
var buffer = new ArrayBuffer(8);
|
|
9532
|
-
if (Object.isExtensible(buffer))
|
|
9533
|
-
Object.defineProperty(buffer, "a", { value: 8 });
|
|
9414
|
+
if (Object.isExtensible(buffer)) Object.defineProperty(buffer, "a", { value: 8 });
|
|
9534
9415
|
}
|
|
9535
9416
|
});
|
|
9536
9417
|
var fails$7 = fails$v;
|
|
@@ -9542,10 +9423,8 @@ var FAILS_ON_PRIMITIVES$1 = fails$7(function() {
|
|
|
9542
9423
|
$isExtensible(1);
|
|
9543
9424
|
});
|
|
9544
9425
|
var objectIsExtensible = FAILS_ON_PRIMITIVES$1 || ARRAY_BUFFER_NON_EXTENSIBLE ? function isExtensible(it2) {
|
|
9545
|
-
if (!isObject$4(it2))
|
|
9546
|
-
|
|
9547
|
-
if (ARRAY_BUFFER_NON_EXTENSIBLE && classof$5(it2) === "ArrayBuffer")
|
|
9548
|
-
return false;
|
|
9426
|
+
if (!isObject$4(it2)) return false;
|
|
9427
|
+
if (ARRAY_BUFFER_NON_EXTENSIBLE && classof$5(it2) === "ArrayBuffer") return false;
|
|
9549
9428
|
return $isExtensible ? $isExtensible(it2) : true;
|
|
9550
9429
|
} : $isExtensible;
|
|
9551
9430
|
var fails$6 = fails$v;
|
|
@@ -9575,30 +9454,24 @@ var setMetadata = function(it2) {
|
|
|
9575
9454
|
} });
|
|
9576
9455
|
};
|
|
9577
9456
|
var fastKey$1 = function(it2, create5) {
|
|
9578
|
-
if (!isObject$3(it2))
|
|
9579
|
-
return typeof it2 == "symbol" ? it2 : (typeof it2 == "string" ? "S" : "P") + it2;
|
|
9457
|
+
if (!isObject$3(it2)) return typeof it2 == "symbol" ? it2 : (typeof it2 == "string" ? "S" : "P") + it2;
|
|
9580
9458
|
if (!hasOwn$4(it2, METADATA$1)) {
|
|
9581
|
-
if (!isExtensible$1(it2))
|
|
9582
|
-
|
|
9583
|
-
if (!create5)
|
|
9584
|
-
return "E";
|
|
9459
|
+
if (!isExtensible$1(it2)) return "F";
|
|
9460
|
+
if (!create5) return "E";
|
|
9585
9461
|
setMetadata(it2);
|
|
9586
9462
|
}
|
|
9587
9463
|
return it2[METADATA$1].objectID;
|
|
9588
9464
|
};
|
|
9589
9465
|
var getWeakData$1 = function(it2, create5) {
|
|
9590
9466
|
if (!hasOwn$4(it2, METADATA$1)) {
|
|
9591
|
-
if (!isExtensible$1(it2))
|
|
9592
|
-
|
|
9593
|
-
if (!create5)
|
|
9594
|
-
return false;
|
|
9467
|
+
if (!isExtensible$1(it2)) return true;
|
|
9468
|
+
if (!create5) return false;
|
|
9595
9469
|
setMetadata(it2);
|
|
9596
9470
|
}
|
|
9597
9471
|
return it2[METADATA$1].weakData;
|
|
9598
9472
|
};
|
|
9599
9473
|
var onFreeze = function(it2) {
|
|
9600
|
-
if (FREEZING$1 && REQUIRED && isExtensible$1(it2) && !hasOwn$4(it2, METADATA$1))
|
|
9601
|
-
setMetadata(it2);
|
|
9474
|
+
if (FREEZING$1 && REQUIRED && isExtensible$1(it2) && !hasOwn$4(it2, METADATA$1)) setMetadata(it2);
|
|
9602
9475
|
return it2;
|
|
9603
9476
|
};
|
|
9604
9477
|
var enable = function() {
|
|
@@ -9647,8 +9520,7 @@ var Iterators = iterators;
|
|
|
9647
9520
|
var wellKnownSymbol$3 = wellKnownSymbol$l;
|
|
9648
9521
|
var ITERATOR$1 = wellKnownSymbol$3("iterator");
|
|
9649
9522
|
var getIteratorMethod$2 = function(it2) {
|
|
9650
|
-
if (!isNullOrUndefined$3(it2))
|
|
9651
|
-
return getMethod$1(it2, ITERATOR$1) || getMethod$1(it2, "@@iterator") || Iterators[classof$4(it2)];
|
|
9523
|
+
if (!isNullOrUndefined$3(it2)) return getMethod$1(it2, ITERATOR$1) || getMethod$1(it2, "@@iterator") || Iterators[classof$4(it2)];
|
|
9652
9524
|
};
|
|
9653
9525
|
var call$2 = functionCall;
|
|
9654
9526
|
var aCallable$3 = aCallable$7;
|
|
@@ -9658,8 +9530,7 @@ var getIteratorMethod$1 = getIteratorMethod$2;
|
|
|
9658
9530
|
var $TypeError$3 = TypeError;
|
|
9659
9531
|
var getIterator$7 = function(argument, usingIterator) {
|
|
9660
9532
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
|
9661
|
-
if (aCallable$3(iteratorMethod))
|
|
9662
|
-
return anObject$3(call$2(iteratorMethod, argument));
|
|
9533
|
+
if (aCallable$3(iteratorMethod)) return anObject$3(call$2(iteratorMethod, argument));
|
|
9663
9534
|
throw new $TypeError$3(tryToString$1(argument) + " is not iterable");
|
|
9664
9535
|
};
|
|
9665
9536
|
var call$1 = functionCall;
|
|
@@ -9671,8 +9542,7 @@ var iteratorClose$1 = function(iterator2, kind, value) {
|
|
|
9671
9542
|
try {
|
|
9672
9543
|
innerResult = getMethod(iterator2, "return");
|
|
9673
9544
|
if (!innerResult) {
|
|
9674
|
-
if (kind === "throw")
|
|
9675
|
-
throw value;
|
|
9545
|
+
if (kind === "throw") throw value;
|
|
9676
9546
|
return value;
|
|
9677
9547
|
}
|
|
9678
9548
|
innerResult = call$1(innerResult, iterator2);
|
|
@@ -9680,10 +9550,8 @@ var iteratorClose$1 = function(iterator2, kind, value) {
|
|
|
9680
9550
|
innerError = true;
|
|
9681
9551
|
innerResult = error;
|
|
9682
9552
|
}
|
|
9683
|
-
if (kind === "throw")
|
|
9684
|
-
|
|
9685
|
-
if (innerError)
|
|
9686
|
-
throw innerResult;
|
|
9553
|
+
if (kind === "throw") throw value;
|
|
9554
|
+
if (innerError) throw innerResult;
|
|
9687
9555
|
anObject$2(innerResult);
|
|
9688
9556
|
return value;
|
|
9689
9557
|
};
|
|
@@ -9712,8 +9580,7 @@ var iterate$3 = function(iterable, unboundFunction, options) {
|
|
|
9712
9580
|
var fn = bind$2(unboundFunction, that);
|
|
9713
9581
|
var iterator2, iterFn, index, length2, result, next3, step;
|
|
9714
9582
|
var stop = function(condition) {
|
|
9715
|
-
if (iterator2)
|
|
9716
|
-
iteratorClose(iterator2, "normal", condition);
|
|
9583
|
+
if (iterator2) iteratorClose(iterator2, "normal", condition);
|
|
9717
9584
|
return new Result(true, condition);
|
|
9718
9585
|
};
|
|
9719
9586
|
var callFn = function(value) {
|
|
@@ -9729,13 +9596,11 @@ var iterate$3 = function(iterable, unboundFunction, options) {
|
|
|
9729
9596
|
iterator2 = iterable;
|
|
9730
9597
|
} else {
|
|
9731
9598
|
iterFn = getIteratorMethod(iterable);
|
|
9732
|
-
if (!iterFn)
|
|
9733
|
-
throw new $TypeError$2(tryToString(iterable) + " is not iterable");
|
|
9599
|
+
if (!iterFn) throw new $TypeError$2(tryToString(iterable) + " is not iterable");
|
|
9734
9600
|
if (isArrayIteratorMethod(iterFn)) {
|
|
9735
9601
|
for (index = 0, length2 = lengthOfArrayLike$4(iterable); length2 > index; index++) {
|
|
9736
9602
|
result = callFn(iterable[index]);
|
|
9737
|
-
if (result && isPrototypeOf$9(ResultPrototype, result))
|
|
9738
|
-
return result;
|
|
9603
|
+
if (result && isPrototypeOf$9(ResultPrototype, result)) return result;
|
|
9739
9604
|
}
|
|
9740
9605
|
return new Result(false);
|
|
9741
9606
|
}
|
|
@@ -9748,16 +9613,14 @@ var iterate$3 = function(iterable, unboundFunction, options) {
|
|
|
9748
9613
|
} catch (error) {
|
|
9749
9614
|
iteratorClose(iterator2, "throw", error);
|
|
9750
9615
|
}
|
|
9751
|
-
if (typeof result == "object" && result && isPrototypeOf$9(ResultPrototype, result))
|
|
9752
|
-
return result;
|
|
9616
|
+
if (typeof result == "object" && result && isPrototypeOf$9(ResultPrototype, result)) return result;
|
|
9753
9617
|
}
|
|
9754
9618
|
return new Result(false);
|
|
9755
9619
|
};
|
|
9756
9620
|
var isPrototypeOf$8 = objectIsPrototypeOf;
|
|
9757
9621
|
var $TypeError$1 = TypeError;
|
|
9758
9622
|
var anInstance$3 = function(it2, Prototype) {
|
|
9759
|
-
if (isPrototypeOf$8(Prototype, it2))
|
|
9760
|
-
return it2;
|
|
9623
|
+
if (isPrototypeOf$8(Prototype, it2)) return it2;
|
|
9761
9624
|
throw new $TypeError$1("Incorrect invocation");
|
|
9762
9625
|
};
|
|
9763
9626
|
var $$i = _export;
|
|
@@ -9796,8 +9659,7 @@ var collection$3 = function(CONSTRUCTOR_NAME, wrapper2, common) {
|
|
|
9796
9659
|
type: CONSTRUCTOR_NAME,
|
|
9797
9660
|
collection: new NativeConstructor()
|
|
9798
9661
|
});
|
|
9799
|
-
if (!isNullOrUndefined$2(iterable))
|
|
9800
|
-
iterate$2(iterable, target[ADDER], { that: target, AS_ENTRIES: IS_MAP });
|
|
9662
|
+
if (!isNullOrUndefined$2(iterable)) iterate$2(iterable, target[ADDER], { that: target, AS_ENTRIES: IS_MAP });
|
|
9801
9663
|
});
|
|
9802
9664
|
var Prototype = Constructor.prototype;
|
|
9803
9665
|
var getInternalState2 = internalStateGetterFor$2(CONSTRUCTOR_NAME);
|
|
@@ -9806,8 +9668,7 @@ var collection$3 = function(CONSTRUCTOR_NAME, wrapper2, common) {
|
|
|
9806
9668
|
if (KEY in NativePrototype && !(IS_WEAK && KEY === "clear")) {
|
|
9807
9669
|
createNonEnumerableProperty(Prototype, KEY, function(a, b) {
|
|
9808
9670
|
var collection2 = getInternalState2(this).collection;
|
|
9809
|
-
if (!IS_ADDER && IS_WEAK && !isObject$2(a))
|
|
9810
|
-
return KEY === "get" ? void 0 : false;
|
|
9671
|
+
if (!IS_ADDER && IS_WEAK && !isObject$2(a)) return KEY === "get" ? void 0 : false;
|
|
9811
9672
|
var result = collection2[KEY](a === 0 ? 0 : a, b);
|
|
9812
9673
|
return IS_ADDER ? this : result;
|
|
9813
9674
|
});
|
|
@@ -9823,17 +9684,14 @@ var collection$3 = function(CONSTRUCTOR_NAME, wrapper2, common) {
|
|
|
9823
9684
|
setToStringTag(Constructor, CONSTRUCTOR_NAME, false, true);
|
|
9824
9685
|
exported[CONSTRUCTOR_NAME] = Constructor;
|
|
9825
9686
|
$$i({ global: true, forced: true }, exported);
|
|
9826
|
-
if (!IS_WEAK)
|
|
9827
|
-
common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);
|
|
9687
|
+
if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);
|
|
9828
9688
|
return Constructor;
|
|
9829
9689
|
};
|
|
9830
9690
|
var defineBuiltIn = defineBuiltIn$5;
|
|
9831
9691
|
var defineBuiltIns$3 = function(target, src, options) {
|
|
9832
9692
|
for (var key in src) {
|
|
9833
|
-
if (options && options.unsafe && target[key])
|
|
9834
|
-
|
|
9835
|
-
else
|
|
9836
|
-
defineBuiltIn(target, key, src[key], options);
|
|
9693
|
+
if (options && options.unsafe && target[key]) target[key] = src[key];
|
|
9694
|
+
else defineBuiltIn(target, key, src[key], options);
|
|
9837
9695
|
}
|
|
9838
9696
|
return target;
|
|
9839
9697
|
};
|
|
@@ -9879,10 +9737,8 @@ var collectionStrong$2 = {
|
|
|
9879
9737
|
last: void 0,
|
|
9880
9738
|
size: 0
|
|
9881
9739
|
});
|
|
9882
|
-
if (!DESCRIPTORS$4)
|
|
9883
|
-
|
|
9884
|
-
if (!isNullOrUndefined$1(iterable))
|
|
9885
|
-
iterate$1(iterable, that[ADDER], { that, AS_ENTRIES: IS_MAP });
|
|
9740
|
+
if (!DESCRIPTORS$4) that.size = 0;
|
|
9741
|
+
if (!isNullOrUndefined$1(iterable)) iterate$1(iterable, that[ADDER], { that, AS_ENTRIES: IS_MAP });
|
|
9886
9742
|
});
|
|
9887
9743
|
var Prototype = Constructor.prototype;
|
|
9888
9744
|
var getInternalState2 = internalStateGetterFor$1(CONSTRUCTOR_NAME);
|
|
@@ -9901,16 +9757,11 @@ var collectionStrong$2 = {
|
|
|
9901
9757
|
next: void 0,
|
|
9902
9758
|
removed: false
|
|
9903
9759
|
};
|
|
9904
|
-
if (!state.first)
|
|
9905
|
-
|
|
9906
|
-
if (
|
|
9907
|
-
|
|
9908
|
-
if (
|
|
9909
|
-
state.size++;
|
|
9910
|
-
else
|
|
9911
|
-
that.size++;
|
|
9912
|
-
if (index !== "F")
|
|
9913
|
-
state.index[index] = entry;
|
|
9760
|
+
if (!state.first) state.first = entry;
|
|
9761
|
+
if (previous) previous.next = entry;
|
|
9762
|
+
if (DESCRIPTORS$4) state.size++;
|
|
9763
|
+
else that.size++;
|
|
9764
|
+
if (index !== "F") state.index[index] = entry;
|
|
9914
9765
|
}
|
|
9915
9766
|
return that;
|
|
9916
9767
|
};
|
|
@@ -9918,11 +9769,9 @@ var collectionStrong$2 = {
|
|
|
9918
9769
|
var state = getInternalState2(that);
|
|
9919
9770
|
var index = fastKey(key);
|
|
9920
9771
|
var entry;
|
|
9921
|
-
if (index !== "F")
|
|
9922
|
-
return state.index[index];
|
|
9772
|
+
if (index !== "F") return state.index[index];
|
|
9923
9773
|
for (entry = state.first; entry; entry = entry.next) {
|
|
9924
|
-
if (entry.key === key)
|
|
9925
|
-
return entry;
|
|
9774
|
+
if (entry.key === key) return entry;
|
|
9926
9775
|
}
|
|
9927
9776
|
};
|
|
9928
9777
|
defineBuiltIns$2(Prototype, {
|
|
@@ -9936,16 +9785,13 @@ var collectionStrong$2 = {
|
|
|
9936
9785
|
var entry = state.first;
|
|
9937
9786
|
while (entry) {
|
|
9938
9787
|
entry.removed = true;
|
|
9939
|
-
if (entry.previous)
|
|
9940
|
-
entry.previous = entry.previous.next = void 0;
|
|
9788
|
+
if (entry.previous) entry.previous = entry.previous.next = void 0;
|
|
9941
9789
|
delete data2[entry.index];
|
|
9942
9790
|
entry = entry.next;
|
|
9943
9791
|
}
|
|
9944
9792
|
state.first = state.last = void 0;
|
|
9945
|
-
if (DESCRIPTORS$4)
|
|
9946
|
-
|
|
9947
|
-
else
|
|
9948
|
-
that.size = 0;
|
|
9793
|
+
if (DESCRIPTORS$4) state.size = 0;
|
|
9794
|
+
else that.size = 0;
|
|
9949
9795
|
},
|
|
9950
9796
|
// `{ Map, Set }.prototype.delete(key)` methods
|
|
9951
9797
|
// https://tc39.es/ecma262/#sec-map.prototype.delete
|
|
@@ -9959,18 +9805,12 @@ var collectionStrong$2 = {
|
|
|
9959
9805
|
var prev = entry.previous;
|
|
9960
9806
|
delete state.index[entry.index];
|
|
9961
9807
|
entry.removed = true;
|
|
9962
|
-
if (prev)
|
|
9963
|
-
|
|
9964
|
-
if (next3
|
|
9965
|
-
|
|
9966
|
-
if (state.
|
|
9967
|
-
|
|
9968
|
-
if (state.last === entry)
|
|
9969
|
-
state.last = prev;
|
|
9970
|
-
if (DESCRIPTORS$4)
|
|
9971
|
-
state.size--;
|
|
9972
|
-
else
|
|
9973
|
-
that.size--;
|
|
9808
|
+
if (prev) prev.next = next3;
|
|
9809
|
+
if (next3) next3.previous = prev;
|
|
9810
|
+
if (state.first === entry) state.first = next3;
|
|
9811
|
+
if (state.last === entry) state.last = prev;
|
|
9812
|
+
if (DESCRIPTORS$4) state.size--;
|
|
9813
|
+
else that.size--;
|
|
9974
9814
|
}
|
|
9975
9815
|
return !!entry;
|
|
9976
9816
|
},
|
|
@@ -9983,8 +9823,7 @@ var collectionStrong$2 = {
|
|
|
9983
9823
|
var entry;
|
|
9984
9824
|
while (entry = entry ? entry.next : state.first) {
|
|
9985
9825
|
boundFunction(entry.value, entry.key, this);
|
|
9986
|
-
while (entry && entry.removed)
|
|
9987
|
-
entry = entry.previous;
|
|
9826
|
+
while (entry && entry.removed) entry = entry.previous;
|
|
9988
9827
|
}
|
|
9989
9828
|
},
|
|
9990
9829
|
// `{ Map, Set}.prototype.has(key)` methods
|
|
@@ -10013,13 +9852,12 @@ var collectionStrong$2 = {
|
|
|
10013
9852
|
return define(this, value = value === 0 ? 0 : value, value);
|
|
10014
9853
|
}
|
|
10015
9854
|
});
|
|
10016
|
-
if (DESCRIPTORS$4)
|
|
10017
|
-
|
|
10018
|
-
|
|
10019
|
-
|
|
10020
|
-
|
|
10021
|
-
|
|
10022
|
-
});
|
|
9855
|
+
if (DESCRIPTORS$4) defineBuiltInAccessor(Prototype, "size", {
|
|
9856
|
+
configurable: true,
|
|
9857
|
+
get: function() {
|
|
9858
|
+
return getInternalState2(this).size;
|
|
9859
|
+
}
|
|
9860
|
+
});
|
|
10023
9861
|
return Constructor;
|
|
10024
9862
|
},
|
|
10025
9863
|
setStrong: function(Constructor, CONSTRUCTOR_NAME, IS_MAP) {
|
|
@@ -10038,16 +9876,13 @@ var collectionStrong$2 = {
|
|
|
10038
9876
|
var state = getInternalIteratorState(this);
|
|
10039
9877
|
var kind = state.kind;
|
|
10040
9878
|
var entry = state.last;
|
|
10041
|
-
while (entry && entry.removed)
|
|
10042
|
-
entry = entry.previous;
|
|
9879
|
+
while (entry && entry.removed) entry = entry.previous;
|
|
10043
9880
|
if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {
|
|
10044
9881
|
state.target = void 0;
|
|
10045
9882
|
return createIterResultObject$1(void 0, true);
|
|
10046
9883
|
}
|
|
10047
|
-
if (kind === "keys")
|
|
10048
|
-
|
|
10049
|
-
if (kind === "values")
|
|
10050
|
-
return createIterResultObject$1(entry.value, false);
|
|
9884
|
+
if (kind === "keys") return createIterResultObject$1(entry.key, false);
|
|
9885
|
+
if (kind === "values") return createIterResultObject$1(entry.value, false);
|
|
10051
9886
|
return createIterResultObject$1([entry.key, entry.value], false);
|
|
10052
9887
|
}, IS_MAP ? "entries" : "values", !IS_MAP, true);
|
|
10053
9888
|
setSpecies(CONSTRUCTOR_NAME);
|
|
@@ -10073,8 +9908,7 @@ var createMethod$1 = function(CONVERT_TO_STRING) {
|
|
|
10073
9908
|
var position = toIntegerOrInfinity(pos);
|
|
10074
9909
|
var size = S.length;
|
|
10075
9910
|
var first2, second;
|
|
10076
|
-
if (position < 0 || position >= size)
|
|
10077
|
-
return CONVERT_TO_STRING ? "" : void 0;
|
|
9911
|
+
if (position < 0 || position >= size) return CONVERT_TO_STRING ? "" : void 0;
|
|
10078
9912
|
first2 = charCodeAt(S, position);
|
|
10079
9913
|
return first2 < 55296 || first2 > 56319 || position + 1 === size || (second = charCodeAt(S, position + 1)) < 56320 || second > 57343 ? CONVERT_TO_STRING ? charAt$2(S, position) : first2 : CONVERT_TO_STRING ? stringSlice(S, position, position + 2) : (first2 - 55296 << 10) + (second - 56320) + 65536;
|
|
10080
9914
|
};
|
|
@@ -10106,8 +9940,7 @@ defineIterator(String, "String", function(iterated) {
|
|
|
10106
9940
|
var string2 = state.string;
|
|
10107
9941
|
var index = state.index;
|
|
10108
9942
|
var point;
|
|
10109
|
-
if (index >= string2.length)
|
|
10110
|
-
return createIterResultObject(void 0, true);
|
|
9943
|
+
if (index >= string2.length) return createIterResultObject(void 0, true);
|
|
10111
9944
|
point = charAt$1(string2, index);
|
|
10112
9945
|
state.index += point.length;
|
|
10113
9946
|
return createIterResultObject(point, false);
|
|
@@ -10535,8 +10368,7 @@ var Object$4 = path$9.Object;
|
|
|
10535
10368
|
var getOwnPropertyDescriptor$2 = getOwnPropertyDescriptor$3.exports = function getOwnPropertyDescriptor4(it2, key) {
|
|
10536
10369
|
return Object$4.getOwnPropertyDescriptor(it2, key);
|
|
10537
10370
|
};
|
|
10538
|
-
if (Object$4.getOwnPropertyDescriptor.sham)
|
|
10539
|
-
getOwnPropertyDescriptor$2.sham = true;
|
|
10371
|
+
if (Object$4.getOwnPropertyDescriptor.sham) getOwnPropertyDescriptor$2.sham = true;
|
|
10540
10372
|
var getOwnPropertyDescriptorExports = getOwnPropertyDescriptor$3.exports;
|
|
10541
10373
|
var parent$s = getOwnPropertyDescriptorExports;
|
|
10542
10374
|
var getOwnPropertyDescriptor$1 = parent$s;
|
|
@@ -10558,8 +10390,7 @@ $$d({ target: "Object", stat: true, sham: !DESCRIPTORS$2 }, {
|
|
|
10558
10390
|
var key, descriptor;
|
|
10559
10391
|
while (keys4.length > index) {
|
|
10560
10392
|
descriptor = getOwnPropertyDescriptor6(O, key = keys4[index++]);
|
|
10561
|
-
if (descriptor !== void 0)
|
|
10562
|
-
createProperty(result, key, descriptor);
|
|
10393
|
+
if (descriptor !== void 0) createProperty(result, key, descriptor);
|
|
10563
10394
|
}
|
|
10564
10395
|
return result;
|
|
10565
10396
|
}
|
|
@@ -10582,8 +10413,7 @@ var Object$3 = path$7.Object;
|
|
|
10582
10413
|
var defineProperties$2 = defineProperties$4.exports = function defineProperties3(T, D) {
|
|
10583
10414
|
return Object$3.defineProperties(T, D);
|
|
10584
10415
|
};
|
|
10585
|
-
if (Object$3.defineProperties.sham)
|
|
10586
|
-
defineProperties$2.sham = true;
|
|
10416
|
+
if (Object$3.defineProperties.sham) defineProperties$2.sham = true;
|
|
10587
10417
|
var definePropertiesExports = defineProperties$4.exports;
|
|
10588
10418
|
var parent$q = definePropertiesExports;
|
|
10589
10419
|
var defineProperties$1 = parent$q;
|
|
@@ -10601,8 +10431,7 @@ var Object$2 = path$6.Object;
|
|
|
10601
10431
|
var defineProperty$6 = defineProperty$8.exports = function defineProperty4(it2, key, desc) {
|
|
10602
10432
|
return Object$2.defineProperty(it2, key, desc);
|
|
10603
10433
|
};
|
|
10604
|
-
if (Object$2.defineProperty.sham)
|
|
10605
|
-
defineProperty$6.sham = true;
|
|
10434
|
+
if (Object$2.defineProperty.sham) defineProperty$6.sham = true;
|
|
10606
10435
|
var definePropertyExports = defineProperty$8.exports;
|
|
10607
10436
|
var parent$p = definePropertyExports;
|
|
10608
10437
|
var defineProperty$5 = parent$p;
|
|
@@ -10659,8 +10488,7 @@ var WellKnownSymbolsStore = shared("wks");
|
|
|
10659
10488
|
for (i = 0, symbolKeys = getOwnPropertyNames$4(Symbol$2), symbolKeysLength = symbolKeys.length; i < symbolKeysLength; i++) {
|
|
10660
10489
|
try {
|
|
10661
10490
|
symbolKey = symbolKeys[i];
|
|
10662
|
-
if (isSymbol(Symbol$2[symbolKey]))
|
|
10663
|
-
wellKnownSymbol(symbolKey);
|
|
10491
|
+
if (isSymbol(Symbol$2[symbolKey])) wellKnownSymbol(symbolKey);
|
|
10664
10492
|
} catch (error) {
|
|
10665
10493
|
}
|
|
10666
10494
|
}
|
|
@@ -10669,13 +10497,11 @@ var i;
|
|
|
10669
10497
|
var symbolKeys;
|
|
10670
10498
|
var symbolKeysLength;
|
|
10671
10499
|
var symbolIsWellKnown = function isWellKnownSymbol(value) {
|
|
10672
|
-
if ($isWellKnownSymbol && $isWellKnownSymbol(value))
|
|
10673
|
-
return true;
|
|
10500
|
+
if ($isWellKnownSymbol && $isWellKnownSymbol(value)) return true;
|
|
10674
10501
|
try {
|
|
10675
10502
|
var symbol2 = thisSymbolValue(value);
|
|
10676
10503
|
for (var j = 0, keys4 = getOwnPropertyNames$4(WellKnownSymbolsStore), keysLength = keys4.length; j < keysLength; j++) {
|
|
10677
|
-
if (WellKnownSymbolsStore[keys4[j]] == symbol2)
|
|
10678
|
-
return true;
|
|
10504
|
+
if (WellKnownSymbolsStore[keys4[j]] == symbol2) return true;
|
|
10679
10505
|
}
|
|
10680
10506
|
} catch (error) {
|
|
10681
10507
|
}
|
|
@@ -10739,13 +10565,11 @@ var toPrimitive$1 = parent$f;
|
|
|
10739
10565
|
var toPrimitive = toPrimitive$1;
|
|
10740
10566
|
var _Symbol$toPrimitive = /* @__PURE__ */ getDefaultExportFromCjs(toPrimitive);
|
|
10741
10567
|
function _toPrimitive(input, hint) {
|
|
10742
|
-
if (_typeof(input) !== "object" || input === null)
|
|
10743
|
-
return input;
|
|
10568
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
10744
10569
|
var prim = input[_Symbol$toPrimitive];
|
|
10745
10570
|
if (prim !== void 0) {
|
|
10746
10571
|
var res = prim.call(input, hint || "default");
|
|
10747
|
-
if (_typeof(res) !== "object")
|
|
10748
|
-
return res;
|
|
10572
|
+
if (_typeof(res) !== "object") return res;
|
|
10749
10573
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
10750
10574
|
}
|
|
10751
10575
|
return (hint === "string" ? String : Number)(input);
|
|
@@ -10781,22 +10605,20 @@ var createMethod = function(IS_RIGHT) {
|
|
|
10781
10605
|
var length2 = lengthOfArrayLike$3(O);
|
|
10782
10606
|
var index = IS_RIGHT ? length2 - 1 : 0;
|
|
10783
10607
|
var i = IS_RIGHT ? -1 : 1;
|
|
10784
|
-
if (argumentsLength < 2)
|
|
10785
|
-
|
|
10786
|
-
|
|
10787
|
-
memo = self2[index];
|
|
10788
|
-
index += i;
|
|
10789
|
-
break;
|
|
10790
|
-
}
|
|
10608
|
+
if (argumentsLength < 2) while (true) {
|
|
10609
|
+
if (index in self2) {
|
|
10610
|
+
memo = self2[index];
|
|
10791
10611
|
index += i;
|
|
10792
|
-
|
|
10793
|
-
throw new $TypeError("Reduce of empty array with no initial value");
|
|
10794
|
-
}
|
|
10612
|
+
break;
|
|
10795
10613
|
}
|
|
10796
|
-
|
|
10797
|
-
if (index
|
|
10798
|
-
|
|
10614
|
+
index += i;
|
|
10615
|
+
if (IS_RIGHT ? index < 0 : length2 <= index) {
|
|
10616
|
+
throw new $TypeError("Reduce of empty array with no initial value");
|
|
10799
10617
|
}
|
|
10618
|
+
}
|
|
10619
|
+
for (; IS_RIGHT ? index >= 0 : length2 > index; index += i) if (index in self2) {
|
|
10620
|
+
memo = callbackfn(memo, self2[index], index, O);
|
|
10621
|
+
}
|
|
10800
10622
|
return memo;
|
|
10801
10623
|
};
|
|
10802
10624
|
};
|
|
@@ -10931,8 +10753,7 @@ var insertionSort = function(array2, comparefn) {
|
|
|
10931
10753
|
while (j && comparefn(array2[j - 1], element) > 0) {
|
|
10932
10754
|
array2[j] = array2[--j];
|
|
10933
10755
|
}
|
|
10934
|
-
if (j !== i++)
|
|
10935
|
-
array2[j] = element;
|
|
10756
|
+
if (j !== i++) array2[j] = element;
|
|
10936
10757
|
}
|
|
10937
10758
|
return array2;
|
|
10938
10759
|
};
|
|
@@ -10980,14 +10801,10 @@ var FAILS_ON_NULL = fails$3(function() {
|
|
|
10980
10801
|
});
|
|
10981
10802
|
var STRICT_METHOD$1 = arrayMethodIsStrict$1("sort");
|
|
10982
10803
|
var STABLE_SORT = !fails$3(function() {
|
|
10983
|
-
if (V8)
|
|
10984
|
-
|
|
10985
|
-
if (
|
|
10986
|
-
|
|
10987
|
-
if (IE_OR_EDGE)
|
|
10988
|
-
return true;
|
|
10989
|
-
if (WEBKIT)
|
|
10990
|
-
return WEBKIT < 603;
|
|
10804
|
+
if (V8) return V8 < 70;
|
|
10805
|
+
if (FF && FF > 3) return;
|
|
10806
|
+
if (IE_OR_EDGE) return true;
|
|
10807
|
+
if (WEBKIT) return WEBKIT < 603;
|
|
10991
10808
|
var result = "";
|
|
10992
10809
|
var code, chr, value, index;
|
|
10993
10810
|
for (code = 65; code < 76; code++) {
|
|
@@ -11015,44 +10832,35 @@ var STABLE_SORT = !fails$3(function() {
|
|
|
11015
10832
|
});
|
|
11016
10833
|
for (index = 0; index < test.length; index++) {
|
|
11017
10834
|
chr = test[index].k.charAt(0);
|
|
11018
|
-
if (result.charAt(result.length - 1) !== chr)
|
|
11019
|
-
result += chr;
|
|
10835
|
+
if (result.charAt(result.length - 1) !== chr) result += chr;
|
|
11020
10836
|
}
|
|
11021
10837
|
return result !== "DGBEFHACIJK";
|
|
11022
10838
|
});
|
|
11023
10839
|
var FORCED$2 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD$1 || !STABLE_SORT;
|
|
11024
10840
|
var getSortCompare = function(comparefn) {
|
|
11025
10841
|
return function(x, y) {
|
|
11026
|
-
if (y === void 0)
|
|
11027
|
-
|
|
11028
|
-
if (
|
|
11029
|
-
return 1;
|
|
11030
|
-
if (comparefn !== void 0)
|
|
11031
|
-
return +comparefn(x, y) || 0;
|
|
10842
|
+
if (y === void 0) return -1;
|
|
10843
|
+
if (x === void 0) return 1;
|
|
10844
|
+
if (comparefn !== void 0) return +comparefn(x, y) || 0;
|
|
11032
10845
|
return toString$1(x) > toString$1(y) ? 1 : -1;
|
|
11033
10846
|
};
|
|
11034
10847
|
};
|
|
11035
10848
|
$$4({ target: "Array", proto: true, forced: FORCED$2 }, {
|
|
11036
10849
|
sort: function sort(comparefn) {
|
|
11037
|
-
if (comparefn !== void 0)
|
|
11038
|
-
aCallable(comparefn);
|
|
10850
|
+
if (comparefn !== void 0) aCallable(comparefn);
|
|
11039
10851
|
var array2 = toObject(this);
|
|
11040
|
-
if (STABLE_SORT)
|
|
11041
|
-
return comparefn === void 0 ? nativeSort(array2) : nativeSort(array2, comparefn);
|
|
10852
|
+
if (STABLE_SORT) return comparefn === void 0 ? nativeSort(array2) : nativeSort(array2, comparefn);
|
|
11042
10853
|
var items = [];
|
|
11043
10854
|
var arrayLength = lengthOfArrayLike(array2);
|
|
11044
10855
|
var itemsLength, index;
|
|
11045
10856
|
for (index = 0; index < arrayLength; index++) {
|
|
11046
|
-
if (index in array2)
|
|
11047
|
-
push(items, array2[index]);
|
|
10857
|
+
if (index in array2) push(items, array2[index]);
|
|
11048
10858
|
}
|
|
11049
10859
|
internalSort(items, getSortCompare(comparefn));
|
|
11050
10860
|
itemsLength = lengthOfArrayLike(items);
|
|
11051
10861
|
index = 0;
|
|
11052
|
-
while (index < itemsLength)
|
|
11053
|
-
|
|
11054
|
-
while (index < arrayLength)
|
|
11055
|
-
deletePropertyOrThrow(array2, index++);
|
|
10862
|
+
while (index < itemsLength) array2[index] = items[index++];
|
|
10863
|
+
while (index < arrayLength) deletePropertyOrThrow(array2, index++);
|
|
11056
10864
|
return array2;
|
|
11057
10865
|
}
|
|
11058
10866
|
});
|
|
@@ -12525,8 +12333,7 @@ var LabelAccumulator = class {
|
|
|
12525
12333
|
};
|
|
12526
12334
|
}
|
|
12527
12335
|
let tmpText = text;
|
|
12528
|
-
if (text === void 0 || text === "")
|
|
12529
|
-
tmpText = " ";
|
|
12336
|
+
if (text === void 0 || text === "") tmpText = " ";
|
|
12530
12337
|
const result = this.measureText(tmpText, mod);
|
|
12531
12338
|
const block = _Object$assign({}, _valuesInstanceProperty(result));
|
|
12532
12339
|
block.text = text;
|
|
@@ -12544,8 +12351,7 @@ var LabelAccumulator = class {
|
|
|
12544
12351
|
*/
|
|
12545
12352
|
curWidth() {
|
|
12546
12353
|
const line = this.lines[this.current];
|
|
12547
|
-
if (line === void 0)
|
|
12548
|
-
return 0;
|
|
12354
|
+
if (line === void 0) return 0;
|
|
12549
12355
|
return line.width;
|
|
12550
12356
|
}
|
|
12551
12357
|
/**
|
|
@@ -12617,11 +12423,9 @@ var LabelAccumulator = class {
|
|
|
12617
12423
|
const tmpLines = [];
|
|
12618
12424
|
for (let k = 0; k < this.lines.length; k++) {
|
|
12619
12425
|
const line = this.lines[k];
|
|
12620
|
-
if (line.blocks.length === 0)
|
|
12621
|
-
continue;
|
|
12426
|
+
if (line.blocks.length === 0) continue;
|
|
12622
12427
|
if (k === this.lines.length - 1) {
|
|
12623
|
-
if (line.width === 0)
|
|
12624
|
-
continue;
|
|
12428
|
+
if (line.width === 0) continue;
|
|
12625
12429
|
}
|
|
12626
12430
|
const tmpLine = {};
|
|
12627
12431
|
_Object$assign(tmpLine, line);
|
|
@@ -12710,10 +12514,8 @@ var MarkupAccumulator = class {
|
|
|
12710
12514
|
* @private
|
|
12711
12515
|
*/
|
|
12712
12516
|
modName() {
|
|
12713
|
-
if (this.modStack.length === 0)
|
|
12714
|
-
|
|
12715
|
-
else if (this.modStack[0] === "mono")
|
|
12716
|
-
return "mono";
|
|
12517
|
+
if (this.modStack.length === 0) return "normal";
|
|
12518
|
+
else if (this.modStack[0] === "mono") return "mono";
|
|
12717
12519
|
else {
|
|
12718
12520
|
if (this.bold && this.ital) {
|
|
12719
12521
|
return "boldital";
|
|
@@ -12897,8 +12699,7 @@ var LabelSplitter = class {
|
|
|
12897
12699
|
this.selected = selected;
|
|
12898
12700
|
this.hover = hover;
|
|
12899
12701
|
const textWidth = (text, mod) => {
|
|
12900
|
-
if (text === void 0)
|
|
12901
|
-
return 0;
|
|
12702
|
+
if (text === void 0) return 0;
|
|
12902
12703
|
const values3 = this.parent.getFormattingValues(ctx, selected, hover, mod);
|
|
12903
12704
|
let width = 0;
|
|
12904
12705
|
if (text !== "") {
|
|
@@ -12940,8 +12741,7 @@ var LabelSplitter = class {
|
|
|
12940
12741
|
if (font.multi) {
|
|
12941
12742
|
for (let i = 0; i < lineCount; i++) {
|
|
12942
12743
|
const blocks = this.splitBlocks(nlLines[i], font.multi);
|
|
12943
|
-
if (blocks === void 0)
|
|
12944
|
-
continue;
|
|
12744
|
+
if (blocks === void 0) continue;
|
|
12945
12745
|
if (blocks.length === 0) {
|
|
12946
12746
|
this.lines.newLine("");
|
|
12947
12747
|
continue;
|
|
@@ -13094,8 +12894,7 @@ var LabelSplitter = class {
|
|
|
13094
12894
|
while (w < words.length) {
|
|
13095
12895
|
const pre = text === "" ? "" : " ";
|
|
13096
12896
|
const newText = text + pre + words[w];
|
|
13097
|
-
if (this.overMaxWidth(newText))
|
|
13098
|
-
break;
|
|
12897
|
+
if (this.overMaxWidth(newText)) break;
|
|
13099
12898
|
text = newText;
|
|
13100
12899
|
w++;
|
|
13101
12900
|
}
|
|
@@ -13110,8 +12909,7 @@ var LabelSplitter = class {
|
|
|
13110
12909
|
getLongestFitWord(words) {
|
|
13111
12910
|
let w = 0;
|
|
13112
12911
|
while (w < words.length) {
|
|
13113
|
-
if (this.overMaxWidth(_sliceInstanceProperty(words).call(words, 0, w)))
|
|
13114
|
-
break;
|
|
12912
|
+
if (this.overMaxWidth(_sliceInstanceProperty(words).call(words, 0, w))) break;
|
|
13115
12913
|
w++;
|
|
13116
12914
|
}
|
|
13117
12915
|
return w;
|
|
@@ -13239,8 +13037,7 @@ var Label = class _Label {
|
|
|
13239
13037
|
* @static
|
|
13240
13038
|
*/
|
|
13241
13039
|
static parseFontString(outOptions, inOptions) {
|
|
13242
|
-
if (!inOptions || typeof inOptions !== "string")
|
|
13243
|
-
return false;
|
|
13040
|
+
if (!inOptions || typeof inOptions !== "string") return false;
|
|
13244
13041
|
const newOptionsArray = inOptions.split(" ");
|
|
13245
13042
|
outOptions.size = +newOptionsArray[0].replace("px", "");
|
|
13246
13043
|
outOptions.face = newOptionsArray[1];
|
|
@@ -13343,10 +13140,8 @@ var Label = class _Label {
|
|
|
13343
13140
|
* @private
|
|
13344
13141
|
*/
|
|
13345
13142
|
addFontToPile(pile, options) {
|
|
13346
|
-
if (options === void 0)
|
|
13347
|
-
|
|
13348
|
-
if (options.font === void 0 || options.font === null)
|
|
13349
|
-
return;
|
|
13143
|
+
if (options === void 0) return;
|
|
13144
|
+
if (options.font === void 0 || options.font === null) return;
|
|
13350
13145
|
const item = options.font;
|
|
13351
13146
|
pile.push(item);
|
|
13352
13147
|
}
|
|
@@ -13365,10 +13160,8 @@ var Label = class _Label {
|
|
|
13365
13160
|
fontOptions = tmpShorthand;
|
|
13366
13161
|
}
|
|
13367
13162
|
forEach$1(fontOptions, (opt, name) => {
|
|
13368
|
-
if (opt === void 0)
|
|
13369
|
-
|
|
13370
|
-
if (Object.prototype.hasOwnProperty.call(ret, name))
|
|
13371
|
-
return;
|
|
13163
|
+
if (opt === void 0) return;
|
|
13164
|
+
if (Object.prototype.hasOwnProperty.call(ret, name)) return;
|
|
13372
13165
|
if (_indexOfInstanceProperty(multiFontStyle).call(multiFontStyle, name) !== -1) {
|
|
13373
13166
|
ret[name] = {};
|
|
13374
13167
|
} else {
|
|
@@ -13410,8 +13203,7 @@ var Label = class _Label {
|
|
|
13410
13203
|
const fontOptions = pile[n];
|
|
13411
13204
|
if (Object.prototype.hasOwnProperty.call(fontOptions, multiName)) {
|
|
13412
13205
|
multiFont = fontOptions[multiName];
|
|
13413
|
-
if (multiFont === void 0 || multiFont === null)
|
|
13414
|
-
continue;
|
|
13206
|
+
if (multiFont === void 0 || multiFont === null) continue;
|
|
13415
13207
|
const tmpShorthand = {};
|
|
13416
13208
|
if (_Label.parseFontString(tmpShorthand, multiFont)) {
|
|
13417
13209
|
multiFont = tmpShorthand;
|
|
@@ -13479,11 +13271,9 @@ var Label = class _Label {
|
|
|
13479
13271
|
*/
|
|
13480
13272
|
draw(ctx, x, y, selected, hover) {
|
|
13481
13273
|
let baseline = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : "middle";
|
|
13482
|
-
if (this.elementOptions.label === void 0)
|
|
13483
|
-
return;
|
|
13274
|
+
if (this.elementOptions.label === void 0) return;
|
|
13484
13275
|
let viewFontSize = this.fontOptions.size * this.body.view.scale;
|
|
13485
|
-
if (this.elementOptions.label && viewFontSize < this.elementOptions.scaling.label.drawThreshold - 1)
|
|
13486
|
-
return;
|
|
13276
|
+
if (this.elementOptions.label && viewFontSize < this.elementOptions.scaling.label.drawThreshold - 1) return;
|
|
13487
13277
|
if (viewFontSize >= this.elementOptions.scaling.label.maxVisible) {
|
|
13488
13278
|
viewFontSize = Number(this.elementOptions.scaling.label.maxVisible) / this.body.view.scale;
|
|
13489
13279
|
}
|
|
@@ -13686,8 +13476,7 @@ var Label = class _Label {
|
|
|
13686
13476
|
getFormattingValues(ctx, selected, hover, mod) {
|
|
13687
13477
|
const getValue = function(fontOptions, mod2, option) {
|
|
13688
13478
|
if (mod2 === "normal") {
|
|
13689
|
-
if (option === "mod")
|
|
13690
|
-
return "";
|
|
13479
|
+
if (option === "mod") return "";
|
|
13691
13480
|
return fontOptions[option];
|
|
13692
13481
|
}
|
|
13693
13482
|
if (fontOptions[mod2][option] !== void 0) {
|
|
@@ -13754,8 +13543,7 @@ var Label = class _Label {
|
|
|
13754
13543
|
* @private
|
|
13755
13544
|
*/
|
|
13756
13545
|
_processLabel(ctx, selected, hover) {
|
|
13757
|
-
if (this.labelDirty === false && !this.differentState(selected, hover))
|
|
13758
|
-
return;
|
|
13546
|
+
if (this.labelDirty === false && !this.differentState(selected, hover)) return;
|
|
13759
13547
|
const state = this._processLabelText(ctx, selected, hover, this.elementOptions.label);
|
|
13760
13548
|
if (this.fontOptions.minWdt > 0 && state.width < this.fontOptions.minWdt) {
|
|
13761
13549
|
state.width = this.fontOptions.minWdt;
|
|
@@ -15451,15 +15239,13 @@ var Node = class _Node {
|
|
|
15451
15239
|
*/
|
|
15452
15240
|
static updateGroupOptions(parentOptions, newOptions, groupList) {
|
|
15453
15241
|
var _context4;
|
|
15454
|
-
if (groupList === void 0)
|
|
15455
|
-
return;
|
|
15242
|
+
if (groupList === void 0) return;
|
|
15456
15243
|
const group = parentOptions.group;
|
|
15457
15244
|
if (newOptions !== void 0 && newOptions.group !== void 0 && group !== newOptions.group) {
|
|
15458
15245
|
throw new Error("updateGroupOptions: group values in options don't match.");
|
|
15459
15246
|
}
|
|
15460
15247
|
const hasGroup = typeof group === "number" || typeof group === "string" && group != "";
|
|
15461
|
-
if (!hasGroup)
|
|
15462
|
-
return;
|
|
15248
|
+
if (!hasGroup) return;
|
|
15463
15249
|
const groupObj = groupList.get(group);
|
|
15464
15250
|
if (groupObj.opacity !== void 0 && newOptions.opacity === void 0) {
|
|
15465
15251
|
if (!_Node.checkOpacity(groupObj.opacity)) {
|
|
@@ -16020,8 +15806,7 @@ var NodesHandler = class {
|
|
|
16020
15806
|
this.body.emitter.on("refresh", _bindInstanceProperty(_context3 = this.refresh).call(_context3, this));
|
|
16021
15807
|
this.body.emitter.on("destroy", () => {
|
|
16022
15808
|
forEach$1(this.nodesListeners, (callback, event) => {
|
|
16023
|
-
if (this.body.data.nodes)
|
|
16024
|
-
this.body.data.nodes.off(event, callback);
|
|
15809
|
+
if (this.body.data.nodes) this.body.data.nodes.off(event, callback);
|
|
16025
15810
|
});
|
|
16026
15811
|
delete this.body.functions.createNode;
|
|
16027
15812
|
delete this.nodesListeners.add;
|
|
@@ -16383,8 +16168,7 @@ $$1({ target: "Math", stat: true, arity: 2, forced: FORCED }, {
|
|
|
16383
16168
|
} else if (arg > 0) {
|
|
16384
16169
|
div = arg / larg;
|
|
16385
16170
|
sum += div * div;
|
|
16386
|
-
} else
|
|
16387
|
-
sum += arg;
|
|
16171
|
+
} else sum += arg;
|
|
16388
16172
|
}
|
|
16389
16173
|
return larg === Infinity ? Infinity : larg * sqrt(sum);
|
|
16390
16174
|
}
|
|
@@ -16769,6 +16553,7 @@ var EndPoints = class {
|
|
|
16769
16553
|
case "vee":
|
|
16770
16554
|
return Vee.draw(ctx, arrowData);
|
|
16771
16555
|
case "arrow":
|
|
16556
|
+
// fall-through
|
|
16772
16557
|
default:
|
|
16773
16558
|
return Arrow.draw(ctx, arrowData);
|
|
16774
16559
|
}
|
|
@@ -18443,8 +18228,7 @@ var Edge = class _Edge {
|
|
|
18443
18228
|
this.edgeType.toPoint = this.edgeType.to;
|
|
18444
18229
|
if (values3.fromArrow) {
|
|
18445
18230
|
arrowData.from = this.edgeType.getArrowData(ctx, "from", viaNode, this.selected, this.hover, values3);
|
|
18446
|
-
if (values3.arrowStrikethrough === false)
|
|
18447
|
-
this.edgeType.fromPoint = arrowData.from.core;
|
|
18231
|
+
if (values3.arrowStrikethrough === false) this.edgeType.fromPoint = arrowData.from.core;
|
|
18448
18232
|
if (values3.fromArrowSrc) {
|
|
18449
18233
|
arrowData.from.image = this.imagelist.load(values3.fromArrowSrc);
|
|
18450
18234
|
}
|
|
@@ -18457,8 +18241,7 @@ var Edge = class _Edge {
|
|
|
18457
18241
|
}
|
|
18458
18242
|
if (values3.toArrow) {
|
|
18459
18243
|
arrowData.to = this.edgeType.getArrowData(ctx, "to", viaNode, this.selected, this.hover, values3);
|
|
18460
|
-
if (values3.arrowStrikethrough === false)
|
|
18461
|
-
this.edgeType.toPoint = arrowData.to.core;
|
|
18244
|
+
if (values3.arrowStrikethrough === false) this.edgeType.toPoint = arrowData.to.core;
|
|
18462
18245
|
if (values3.toArrowSrc) {
|
|
18463
18246
|
arrowData.to.image = this.imagelist.load(values3.toArrowSrc);
|
|
18464
18247
|
}
|
|
@@ -18842,8 +18625,7 @@ var EdgesHandler = class {
|
|
|
18842
18625
|
this.body.emitter.on("refresh", _bindInstanceProperty(_context3 = this.refresh).call(_context3, this));
|
|
18843
18626
|
this.body.emitter.on("destroy", () => {
|
|
18844
18627
|
forEach$1(this.edgesListeners, (callback, event) => {
|
|
18845
|
-
if (this.body.data.edges)
|
|
18846
|
-
this.body.data.edges.off(event, callback);
|
|
18628
|
+
if (this.body.data.edges) this.body.data.edges.off(event, callback);
|
|
18847
18629
|
});
|
|
18848
18630
|
delete this.body.functions.createEdge;
|
|
18849
18631
|
delete this.edgesListeners.add;
|
|
@@ -18979,8 +18761,7 @@ var EdgesHandler = class {
|
|
|
18979
18761
|
*/
|
|
18980
18762
|
remove(ids) {
|
|
18981
18763
|
let emit = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
|
|
18982
|
-
if (ids.length === 0)
|
|
18983
|
-
return;
|
|
18764
|
+
if (ids.length === 0) return;
|
|
18984
18765
|
const edges = this.body.edges;
|
|
18985
18766
|
forEach$1(ids, (id2) => {
|
|
18986
18767
|
const edge = edges[id2];
|
|
@@ -20193,8 +19974,7 @@ var PhysicsEngine = class {
|
|
|
20193
19974
|
*/
|
|
20194
19975
|
physicsTick() {
|
|
20195
19976
|
this._startStabilizing();
|
|
20196
|
-
if (this.stabilized === true)
|
|
20197
|
-
return;
|
|
19977
|
+
if (this.stabilized === true) return;
|
|
20198
19978
|
if (this.adaptiveTimestep === true && this.adaptiveTimestepEnabled === true) {
|
|
20199
19979
|
const doAdaptive = this.adaptiveCounter % this.adaptiveInterval === 0;
|
|
20200
19980
|
if (doAdaptive) {
|
|
@@ -20213,8 +19993,7 @@ var PhysicsEngine = class {
|
|
|
20213
19993
|
this.timestep = this.options.timestep;
|
|
20214
19994
|
this.physicsStep();
|
|
20215
19995
|
}
|
|
20216
|
-
if (this.stabilized === true)
|
|
20217
|
-
this.revert();
|
|
19996
|
+
if (this.stabilized === true) this.revert();
|
|
20218
19997
|
this.stabilizationIterations++;
|
|
20219
19998
|
}
|
|
20220
19999
|
/**
|
|
@@ -20451,8 +20230,7 @@ var PhysicsEngine = class {
|
|
|
20451
20230
|
* @private
|
|
20452
20231
|
*/
|
|
20453
20232
|
_startStabilizing() {
|
|
20454
|
-
if (this.startedStabilization === true)
|
|
20455
|
-
return false;
|
|
20233
|
+
if (this.startedStabilization === true) return false;
|
|
20456
20234
|
this.body.emitter.emit("startStabilizing");
|
|
20457
20235
|
this.startedStabilization = true;
|
|
20458
20236
|
return true;
|
|
@@ -20703,8 +20481,7 @@ var Cluster = class extends Node {
|
|
|
20703
20481
|
forEach$1(this.edges, (parentClusterEdge) => {
|
|
20704
20482
|
var _context, _context2;
|
|
20705
20483
|
const index = _indexOfInstanceProperty(_context = parentClusterEdge.clusteringEdgeReplacingIds).call(_context, clusterEdge.id);
|
|
20706
|
-
if (index === -1)
|
|
20707
|
-
return;
|
|
20484
|
+
if (index === -1) return;
|
|
20708
20485
|
forEach$1(clusterEdge.clusteringEdgeReplacingIds, (srcId) => {
|
|
20709
20486
|
parentClusterEdge.clusteringEdgeReplacingIds.push(srcId);
|
|
20710
20487
|
this.body.edges[srcId].edgeReplacedById = parentClusterEdge.id;
|
|
@@ -20949,8 +20726,7 @@ var ClusterEngine = class {
|
|
|
20949
20726
|
return childNodesObj[childNode].id;
|
|
20950
20727
|
});
|
|
20951
20728
|
for (const childNodeKey in childNodesObj) {
|
|
20952
|
-
if (!Object.prototype.hasOwnProperty.call(childNodesObj, childNodeKey))
|
|
20953
|
-
continue;
|
|
20729
|
+
if (!Object.prototype.hasOwnProperty.call(childNodesObj, childNodeKey)) continue;
|
|
20954
20730
|
const childNode = childNodesObj[childNodeKey];
|
|
20955
20731
|
for (let y = 0; y < childNode.edges.length; y++) {
|
|
20956
20732
|
const childEdge = childNode.edges[y];
|
|
@@ -21282,8 +21058,7 @@ var ClusterEngine = class {
|
|
|
21282
21058
|
for (let j = 0; j < edge.clusteringEdgeReplacingIds.length; j++) {
|
|
21283
21059
|
const transferId = edge.clusteringEdgeReplacingIds[j];
|
|
21284
21060
|
const transferEdge = this.body.edges[transferId];
|
|
21285
|
-
if (transferEdge === void 0)
|
|
21286
|
-
continue;
|
|
21061
|
+
if (transferEdge === void 0) continue;
|
|
21287
21062
|
if (otherNode !== void 0) {
|
|
21288
21063
|
const otherCluster = this.body.nodes[otherNode.clusterId];
|
|
21289
21064
|
otherCluster.containedEdges[transferEdge.id] = transferEdge;
|
|
@@ -21346,15 +21121,13 @@ var ClusterEngine = class {
|
|
|
21346
21121
|
let node;
|
|
21347
21122
|
while (this.clusteredNodes[nodeId] !== void 0 && counter < max2) {
|
|
21348
21123
|
node = this.body.nodes[nodeId];
|
|
21349
|
-
if (node === void 0)
|
|
21350
|
-
return [];
|
|
21124
|
+
if (node === void 0) return [];
|
|
21351
21125
|
stack.push(node.id);
|
|
21352
21126
|
nodeId = this.clusteredNodes[nodeId].clusterId;
|
|
21353
21127
|
counter++;
|
|
21354
21128
|
}
|
|
21355
21129
|
node = this.body.nodes[nodeId];
|
|
21356
|
-
if (node === void 0)
|
|
21357
|
-
return [];
|
|
21130
|
+
if (node === void 0) return [];
|
|
21358
21131
|
stack.push(node.id);
|
|
21359
21132
|
_reverseInstanceProperty(stack).call(stack);
|
|
21360
21133
|
return stack;
|
|
@@ -21439,11 +21212,9 @@ var ClusterEngine = class {
|
|
|
21439
21212
|
let counter = 0;
|
|
21440
21213
|
while (IdsToHandle.length > 0 && counter < max2) {
|
|
21441
21214
|
const nextId = IdsToHandle.pop();
|
|
21442
|
-
if (nextId === void 0)
|
|
21443
|
-
continue;
|
|
21215
|
+
if (nextId === void 0) continue;
|
|
21444
21216
|
const nextEdge = this.body.edges[nextId];
|
|
21445
|
-
if (nextEdge === void 0)
|
|
21446
|
-
continue;
|
|
21217
|
+
if (nextEdge === void 0) continue;
|
|
21447
21218
|
counter++;
|
|
21448
21219
|
const replacingIds = nextEdge.clusteringEdgeReplacingIds;
|
|
21449
21220
|
if (replacingIds === void 0) {
|
|
@@ -21594,14 +21365,11 @@ var ClusterEngine = class {
|
|
|
21594
21365
|
* @private
|
|
21595
21366
|
*/
|
|
21596
21367
|
_getClusterNodeForNode(nodeId) {
|
|
21597
|
-
if (nodeId === void 0)
|
|
21598
|
-
return void 0;
|
|
21368
|
+
if (nodeId === void 0) return void 0;
|
|
21599
21369
|
const clusteredNode = this.clusteredNodes[nodeId];
|
|
21600
|
-
if (clusteredNode === void 0)
|
|
21601
|
-
return void 0;
|
|
21370
|
+
if (clusteredNode === void 0) return void 0;
|
|
21602
21371
|
const clusterId = clusteredNode.clusterId;
|
|
21603
|
-
if (clusterId === void 0)
|
|
21604
|
-
return void 0;
|
|
21372
|
+
if (clusterId === void 0) return void 0;
|
|
21605
21373
|
return this.body.nodes[clusterId];
|
|
21606
21374
|
}
|
|
21607
21375
|
/**
|
|
@@ -21643,8 +21411,7 @@ var ClusterEngine = class {
|
|
|
21643
21411
|
});
|
|
21644
21412
|
};
|
|
21645
21413
|
for (nodeId in this.clusteredNodes) {
|
|
21646
|
-
if (!Object.prototype.hasOwnProperty.call(this.clusteredNodes, nodeId))
|
|
21647
|
-
continue;
|
|
21414
|
+
if (!Object.prototype.hasOwnProperty.call(this.clusteredNodes, nodeId)) continue;
|
|
21648
21415
|
const node = this.body.nodes[nodeId];
|
|
21649
21416
|
if (node === void 0) {
|
|
21650
21417
|
deletedNodeIds.push(nodeId);
|
|
@@ -23987,25 +23754,21 @@ var findUncaughtFrozen = function(store, key) {
|
|
|
23987
23754
|
UncaughtFrozenStore.prototype = {
|
|
23988
23755
|
get: function(key) {
|
|
23989
23756
|
var entry = findUncaughtFrozen(this, key);
|
|
23990
|
-
if (entry)
|
|
23991
|
-
return entry[1];
|
|
23757
|
+
if (entry) return entry[1];
|
|
23992
23758
|
},
|
|
23993
23759
|
has: function(key) {
|
|
23994
23760
|
return !!findUncaughtFrozen(this, key);
|
|
23995
23761
|
},
|
|
23996
23762
|
set: function(key, value) {
|
|
23997
23763
|
var entry = findUncaughtFrozen(this, key);
|
|
23998
|
-
if (entry)
|
|
23999
|
-
|
|
24000
|
-
else
|
|
24001
|
-
this.entries.push([key, value]);
|
|
23764
|
+
if (entry) entry[1] = value;
|
|
23765
|
+
else this.entries.push([key, value]);
|
|
24002
23766
|
},
|
|
24003
23767
|
"delete": function(key) {
|
|
24004
23768
|
var index = findIndex(this.entries, function(it2) {
|
|
24005
23769
|
return it2[0] === key;
|
|
24006
23770
|
});
|
|
24007
|
-
if (~index)
|
|
24008
|
-
splice2(this.entries, index, 1);
|
|
23771
|
+
if (~index) splice2(this.entries, index, 1);
|
|
24009
23772
|
return !!~index;
|
|
24010
23773
|
}
|
|
24011
23774
|
};
|
|
@@ -24018,18 +23781,15 @@ var collectionWeak$1 = {
|
|
|
24018
23781
|
id: id++,
|
|
24019
23782
|
frozen: void 0
|
|
24020
23783
|
});
|
|
24021
|
-
if (!isNullOrUndefined(iterable))
|
|
24022
|
-
iterate(iterable, that[ADDER], { that, AS_ENTRIES: IS_MAP });
|
|
23784
|
+
if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that, AS_ENTRIES: IS_MAP });
|
|
24023
23785
|
});
|
|
24024
23786
|
var Prototype = Constructor.prototype;
|
|
24025
23787
|
var getInternalState2 = internalStateGetterFor(CONSTRUCTOR_NAME);
|
|
24026
23788
|
var define = function(that, key, value) {
|
|
24027
23789
|
var state = getInternalState2(that);
|
|
24028
23790
|
var data2 = getWeakData(anObject(key), true);
|
|
24029
|
-
if (data2 === true)
|
|
24030
|
-
|
|
24031
|
-
else
|
|
24032
|
-
data2[state.id] = value;
|
|
23791
|
+
if (data2 === true) uncaughtFrozenStore(state).set(key, value);
|
|
23792
|
+
else data2[state.id] = value;
|
|
24033
23793
|
return that;
|
|
24034
23794
|
};
|
|
24035
23795
|
defineBuiltIns$1(Prototype, {
|
|
@@ -24038,11 +23798,9 @@ var collectionWeak$1 = {
|
|
|
24038
23798
|
// https://tc39.es/ecma262/#sec-weakset.prototype.delete
|
|
24039
23799
|
"delete": function(key) {
|
|
24040
23800
|
var state = getInternalState2(this);
|
|
24041
|
-
if (!isObject$1(key))
|
|
24042
|
-
return false;
|
|
23801
|
+
if (!isObject$1(key)) return false;
|
|
24043
23802
|
var data2 = getWeakData(key);
|
|
24044
|
-
if (data2 === true)
|
|
24045
|
-
return uncaughtFrozenStore(state)["delete"](key);
|
|
23803
|
+
if (data2 === true) return uncaughtFrozenStore(state)["delete"](key);
|
|
24046
23804
|
return data2 && hasOwn2(data2, state.id) && delete data2[state.id];
|
|
24047
23805
|
},
|
|
24048
23806
|
// `{ WeakMap, WeakSet }.prototype.has(key)` methods
|
|
@@ -24050,11 +23808,9 @@ var collectionWeak$1 = {
|
|
|
24050
23808
|
// https://tc39.es/ecma262/#sec-weakset.prototype.has
|
|
24051
23809
|
has: function has2(key) {
|
|
24052
23810
|
var state = getInternalState2(this);
|
|
24053
|
-
if (!isObject$1(key))
|
|
24054
|
-
return false;
|
|
23811
|
+
if (!isObject$1(key)) return false;
|
|
24055
23812
|
var data2 = getWeakData(key);
|
|
24056
|
-
if (data2 === true)
|
|
24057
|
-
return uncaughtFrozenStore(state).has(key);
|
|
23813
|
+
if (data2 === true) return uncaughtFrozenStore(state).has(key);
|
|
24058
23814
|
return data2 && hasOwn2(data2, state.id);
|
|
24059
23815
|
}
|
|
24060
23816
|
});
|
|
@@ -24065,8 +23821,7 @@ var collectionWeak$1 = {
|
|
|
24065
23821
|
var state = getInternalState2(this);
|
|
24066
23822
|
if (isObject$1(key)) {
|
|
24067
23823
|
var data2 = getWeakData(key);
|
|
24068
|
-
if (data2 === true)
|
|
24069
|
-
return uncaughtFrozenStore(state).get(key);
|
|
23824
|
+
if (data2 === true) return uncaughtFrozenStore(state).get(key);
|
|
24070
23825
|
return data2 ? data2[state.id] : void 0;
|
|
24071
23826
|
}
|
|
24072
23827
|
},
|
|
@@ -24133,8 +23888,7 @@ if (NATIVE_WEAK_MAP) {
|
|
|
24133
23888
|
"delete": function(key) {
|
|
24134
23889
|
if (isObject(key) && !isExtensible2(key)) {
|
|
24135
23890
|
var state = enforceInternalState(this);
|
|
24136
|
-
if (!state.frozen)
|
|
24137
|
-
state.frozen = new InternalWeakMap();
|
|
23891
|
+
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
24138
23892
|
return nativeDelete(this, key) || state.frozen["delete"](key);
|
|
24139
23893
|
}
|
|
24140
23894
|
return nativeDelete(this, key);
|
|
@@ -24142,8 +23896,7 @@ if (NATIVE_WEAK_MAP) {
|
|
|
24142
23896
|
has: function has2(key) {
|
|
24143
23897
|
if (isObject(key) && !isExtensible2(key)) {
|
|
24144
23898
|
var state = enforceInternalState(this);
|
|
24145
|
-
if (!state.frozen)
|
|
24146
|
-
state.frozen = new InternalWeakMap();
|
|
23899
|
+
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
24147
23900
|
return nativeHas(this, key) || state.frozen.has(key);
|
|
24148
23901
|
}
|
|
24149
23902
|
return nativeHas(this, key);
|
|
@@ -24151,8 +23904,7 @@ if (NATIVE_WEAK_MAP) {
|
|
|
24151
23904
|
get: function get2(key) {
|
|
24152
23905
|
if (isObject(key) && !isExtensible2(key)) {
|
|
24153
23906
|
var state = enforceInternalState(this);
|
|
24154
|
-
if (!state.frozen)
|
|
24155
|
-
state.frozen = new InternalWeakMap();
|
|
23907
|
+
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
24156
23908
|
return nativeHas(this, key) ? nativeGet(this, key) : state.frozen.get(key);
|
|
24157
23909
|
}
|
|
24158
23910
|
return nativeGet(this, key);
|
|
@@ -24160,11 +23912,9 @@ if (NATIVE_WEAK_MAP) {
|
|
|
24160
23912
|
set: function set2(key, value) {
|
|
24161
23913
|
if (isObject(key) && !isExtensible2(key)) {
|
|
24162
23914
|
var state = enforceInternalState(this);
|
|
24163
|
-
if (!state.frozen)
|
|
24164
|
-
state.frozen = new InternalWeakMap();
|
|
23915
|
+
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
24165
23916
|
nativeHas(this, key) ? nativeSet(this, key, value) : state.frozen.set(key, value);
|
|
24166
|
-
} else
|
|
24167
|
-
nativeSet(this, key, value);
|
|
23917
|
+
} else nativeSet(this, key, value);
|
|
24168
23918
|
return this;
|
|
24169
23919
|
}
|
|
24170
23920
|
});
|
|
@@ -24173,16 +23923,12 @@ if (NATIVE_WEAK_MAP) {
|
|
|
24173
23923
|
set: function set2(key, value) {
|
|
24174
23924
|
var arrayIntegrityLevel;
|
|
24175
23925
|
if (isArray2(key)) {
|
|
24176
|
-
if (isFrozen(key))
|
|
24177
|
-
|
|
24178
|
-
else if (isSealed(key))
|
|
24179
|
-
arrayIntegrityLevel = SEALED;
|
|
23926
|
+
if (isFrozen(key)) arrayIntegrityLevel = FROZEN;
|
|
23927
|
+
else if (isSealed(key)) arrayIntegrityLevel = SEALED;
|
|
24180
23928
|
}
|
|
24181
23929
|
nativeSet(this, key, value);
|
|
24182
|
-
if (arrayIntegrityLevel === FROZEN)
|
|
24183
|
-
|
|
24184
|
-
if (arrayIntegrityLevel === SEALED)
|
|
24185
|
-
seal(key);
|
|
23930
|
+
if (arrayIntegrityLevel === FROZEN) freeze(key);
|
|
23931
|
+
if (arrayIntegrityLevel === SEALED) seal(key);
|
|
24186
23932
|
return this;
|
|
24187
23933
|
}
|
|
24188
23934
|
});
|
|
@@ -24198,19 +23944,14 @@ var weakMap$1 = parent$1;
|
|
|
24198
23944
|
var weakMap = weakMap$1;
|
|
24199
23945
|
var _WeakMap = /* @__PURE__ */ getDefaultExportFromCjs(weakMap);
|
|
24200
23946
|
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
24201
|
-
if (kind === "a" && !f)
|
|
24202
|
-
|
|
24203
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
24204
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
23947
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
23948
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
24205
23949
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
24206
23950
|
}
|
|
24207
23951
|
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
24208
|
-
if (kind === "m")
|
|
24209
|
-
|
|
24210
|
-
if (
|
|
24211
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
24212
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
24213
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
23952
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
23953
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
23954
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
24214
23955
|
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
24215
23956
|
}
|
|
24216
23957
|
var _SingleTypeSelectionAccumulator_previousSelection;
|
|
@@ -24878,8 +24619,7 @@ var SelectionHandler = class {
|
|
|
24878
24619
|
*/
|
|
24879
24620
|
selectNodes(selection) {
|
|
24880
24621
|
let highlightEdges = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
|
|
24881
|
-
if (!selection || selection.length === void 0)
|
|
24882
|
-
throw "Selection must be an array with ids";
|
|
24622
|
+
if (!selection || selection.length === void 0) throw "Selection must be an array with ids";
|
|
24883
24623
|
this.setSelection({
|
|
24884
24624
|
nodes: selection
|
|
24885
24625
|
}, {
|
|
@@ -24892,8 +24632,7 @@ var SelectionHandler = class {
|
|
|
24892
24632
|
* selected nodes.
|
|
24893
24633
|
*/
|
|
24894
24634
|
selectEdges(selection) {
|
|
24895
|
-
if (!selection || selection.length === void 0)
|
|
24896
|
-
throw "Selection must be an array with ids";
|
|
24635
|
+
if (!selection || selection.length === void 0) throw "Selection must be an array with ids";
|
|
24897
24636
|
this.setSelection({
|
|
24898
24637
|
edges: selection
|
|
24899
24638
|
});
|
|
@@ -25339,8 +25078,7 @@ var HierarchicalStatus = class {
|
|
|
25339
25078
|
* @param {string|number} treeId
|
|
25340
25079
|
*/
|
|
25341
25080
|
setTreeIndex(node, treeId) {
|
|
25342
|
-
if (treeId === void 0)
|
|
25343
|
-
return;
|
|
25081
|
+
if (treeId === void 0) return;
|
|
25344
25082
|
if (this.trees[node.id] === void 0) {
|
|
25345
25083
|
this.trees[node.id] = treeId;
|
|
25346
25084
|
this.treeIndex = Math.max(treeId, this.treeIndex);
|
|
@@ -25992,8 +25730,7 @@ var LayoutEngine = class {
|
|
|
25992
25730
|
if (offset < 0) {
|
|
25993
25731
|
_this._shiftBlock(node2.id, offset);
|
|
25994
25732
|
stillShifting = true;
|
|
25995
|
-
if (centerParent === true)
|
|
25996
|
-
_this._centerParent(node2);
|
|
25733
|
+
if (centerParent === true) _this._centerParent(node2);
|
|
25997
25734
|
}
|
|
25998
25735
|
}
|
|
25999
25736
|
}
|
|
@@ -26123,8 +25860,7 @@ var LayoutEngine = class {
|
|
|
26123
25860
|
};
|
|
26124
25861
|
const centerAllParents = () => {
|
|
26125
25862
|
for (const nodeId in this.body.nodes) {
|
|
26126
|
-
if (Object.prototype.hasOwnProperty.call(this.body.nodes, nodeId))
|
|
26127
|
-
this._centerParent(this.body.nodes[nodeId]);
|
|
25863
|
+
if (Object.prototype.hasOwnProperty.call(this.body.nodes, nodeId)) this._centerParent(this.body.nodes[nodeId]);
|
|
26128
25864
|
}
|
|
26129
25865
|
};
|
|
26130
25866
|
const centerAllParentsBottomUp = () => {
|
|
@@ -26290,8 +26026,7 @@ var LayoutEngine = class {
|
|
|
26290
26026
|
* @private
|
|
26291
26027
|
*/
|
|
26292
26028
|
_validatePositionAndContinue(node, level, pos) {
|
|
26293
|
-
if (!this.hierarchical.isTree)
|
|
26294
|
-
return;
|
|
26029
|
+
if (!this.hierarchical.isTree) return;
|
|
26295
26030
|
if (this.lastNodeOnLevel[level] !== void 0) {
|
|
26296
26031
|
const previousPos = this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[level]]);
|
|
26297
26032
|
if (pos - previousPos < this.options.hierarchical.nodeSpacing) {
|
|
@@ -26387,8 +26122,7 @@ var LayoutEngine = class {
|
|
|
26387
26122
|
const hubSizes = this._getHubSizes();
|
|
26388
26123
|
for (let i = 0; i < hubSizes.length; ++i) {
|
|
26389
26124
|
const hubSize = hubSizes[i];
|
|
26390
|
-
if (hubSize === 0)
|
|
26391
|
-
break;
|
|
26125
|
+
if (hubSize === 0) break;
|
|
26392
26126
|
forEach$1(this.body.nodeIndices, (nodeId) => {
|
|
26393
26127
|
const node = this.body.nodes[nodeId];
|
|
26394
26128
|
if (hubSize === this._getActiveEdges(node).length) {
|
|
@@ -29725,13 +29459,11 @@ Network.prototype.destroy = function() {
|
|
|
29725
29459
|
delete this.configurator;
|
|
29726
29460
|
delete this.images;
|
|
29727
29461
|
for (const nodeId in this.body.nodes) {
|
|
29728
|
-
if (!Object.prototype.hasOwnProperty.call(this.body.nodes, nodeId))
|
|
29729
|
-
continue;
|
|
29462
|
+
if (!Object.prototype.hasOwnProperty.call(this.body.nodes, nodeId)) continue;
|
|
29730
29463
|
delete this.body.nodes[nodeId];
|
|
29731
29464
|
}
|
|
29732
29465
|
for (const edgeId in this.body.edges) {
|
|
29733
|
-
if (!Object.prototype.hasOwnProperty.call(this.body.edges, edgeId))
|
|
29734
|
-
continue;
|
|
29466
|
+
if (!Object.prototype.hasOwnProperty.call(this.body.edges, edgeId)) continue;
|
|
29735
29467
|
delete this.body.edges[edgeId];
|
|
29736
29468
|
}
|
|
29737
29469
|
recursiveDOMDelete(this.body.container);
|
|
@@ -29938,48 +29670,22 @@ Network.prototype.getOptionsFromConfigurator = function() {
|
|
|
29938
29670
|
return options;
|
|
29939
29671
|
};
|
|
29940
29672
|
|
|
29941
|
-
// src/themeUtils.
|
|
29673
|
+
// src/themeUtils.ts
|
|
29942
29674
|
function getCurrentTheme() {
|
|
29943
29675
|
return document.documentElement.getAttribute("data-theme") || "light";
|
|
29944
29676
|
}
|
|
29945
29677
|
function getThemeNodeColors(theme) {
|
|
29946
|
-
|
|
29947
|
-
return {
|
|
29948
|
-
uri: "#97C2FC",
|
|
29949
|
-
// Light blue for URIs
|
|
29950
|
-
literal: "#a6c8a6ff",
|
|
29951
|
-
// Light green for literals
|
|
29952
|
-
blankNode: "#888888",
|
|
29953
|
-
// Medium grey for blank nodes (darker than light mode)
|
|
29954
|
-
typeObject: "#e15b13ff",
|
|
29955
|
-
// Orange for rdf:type objects
|
|
29956
|
-
text: "#e0e0e0",
|
|
29957
|
-
// Light text for dark backgrounds
|
|
29958
|
-
edge: "#666666",
|
|
29959
|
-
// Darker edges
|
|
29960
|
-
edgeLabel: "#cccccc",
|
|
29961
|
-
// Lighter edge labels
|
|
29962
|
-
edgeLabelBackground: "rgba(30, 30, 30, 0.8)"
|
|
29963
|
-
// Dark semi-transparent background
|
|
29964
|
-
};
|
|
29965
|
-
}
|
|
29678
|
+
const styles = getComputedStyle(document.documentElement);
|
|
29966
29679
|
return {
|
|
29967
|
-
uri: "#97C2FC",
|
|
29968
|
-
|
|
29969
|
-
|
|
29970
|
-
|
|
29971
|
-
|
|
29972
|
-
|
|
29973
|
-
|
|
29974
|
-
|
|
29975
|
-
|
|
29976
|
-
// Black text
|
|
29977
|
-
edge: "#cccccc",
|
|
29978
|
-
// Light grey edges
|
|
29979
|
-
edgeLabel: "#666666",
|
|
29980
|
-
// Dark grey edge labels
|
|
29981
|
-
edgeLabelBackground: "rgba(255, 255, 255, 0.8)"
|
|
29982
|
-
// Light semi-transparent background
|
|
29680
|
+
uri: styles.getPropertyValue("--yasgui-graph-uri").trim() || "#97C2FC",
|
|
29681
|
+
literal: styles.getPropertyValue("--yasgui-graph-literal").trim() || "#a6c8a6ff",
|
|
29682
|
+
blankNode: styles.getPropertyValue("--yasgui-graph-blank-node").trim() || (theme === "dark" ? "#888888" : "#c5c5c5ff"),
|
|
29683
|
+
typeObject: styles.getPropertyValue("--yasgui-graph-type-object").trim() || "#e15b13ff",
|
|
29684
|
+
text: styles.getPropertyValue("--yasgui-graph-text").trim() || (theme === "dark" ? "#e0e0e0" : "#000000"),
|
|
29685
|
+
edge: styles.getPropertyValue("--yasgui-graph-edge").trim() || (theme === "dark" ? "#666666" : "#cccccc"),
|
|
29686
|
+
edgeLabel: styles.getPropertyValue("--yasgui-graph-edge-label").trim() || (theme === "dark" ? "#cccccc" : "#666666"),
|
|
29687
|
+
edgeLabelBackground: styles.getPropertyValue("--yasgui-graph-edge-label-bg").trim() || (theme === "dark" ? "rgba(30, 30, 30, 0.8)" : "rgba(255, 255, 255, 0.8)"),
|
|
29688
|
+
background: styles.getPropertyValue("--yasgui-graph-background").trim() || (theme === "dark" ? "#1e1e1e" : "#ffffff")
|
|
29983
29689
|
};
|
|
29984
29690
|
}
|
|
29985
29691
|
function watchThemeChanges(callback) {
|
|
@@ -29998,16 +29704,18 @@ function watchThemeChanges(callback) {
|
|
|
29998
29704
|
return observer;
|
|
29999
29705
|
}
|
|
30000
29706
|
|
|
30001
|
-
// src/GraphPlugin.
|
|
30002
|
-
function getVisNetwork() {
|
|
30003
|
-
return { Network, DataSet };
|
|
30004
|
-
}
|
|
29707
|
+
// src/GraphPlugin.ts
|
|
30005
29708
|
var GraphPlugin = class {
|
|
30006
29709
|
constructor(yasr) {
|
|
30007
29710
|
this.yasr = yasr;
|
|
30008
29711
|
this.network = null;
|
|
30009
29712
|
this.currentTheme = getCurrentTheme();
|
|
30010
29713
|
this.themeObserver = null;
|
|
29714
|
+
this.resizeObserver = null;
|
|
29715
|
+
this.nodesDataSet = null;
|
|
29716
|
+
this.edgesDataSet = null;
|
|
29717
|
+
this.triples = null;
|
|
29718
|
+
this.prefixMap = null;
|
|
30011
29719
|
}
|
|
30012
29720
|
/**
|
|
30013
29721
|
* Plugin priority (higher = shown first in tabs)
|
|
@@ -30023,11 +29731,10 @@ var GraphPlugin = class {
|
|
|
30023
29731
|
}
|
|
30024
29732
|
/**
|
|
30025
29733
|
* Check if plugin can handle the current results
|
|
30026
|
-
* @returns
|
|
29734
|
+
* @returns True if results are from CONSTRUCT or DESCRIBE query
|
|
30027
29735
|
*/
|
|
30028
29736
|
canHandleResults() {
|
|
30029
|
-
if (!this.yasr || !this.yasr.results)
|
|
30030
|
-
return false;
|
|
29737
|
+
if (!this.yasr || !this.yasr.results) return false;
|
|
30031
29738
|
const results = this.yasr.results;
|
|
30032
29739
|
if (results.getBindings && typeof results.getBindings === "function") {
|
|
30033
29740
|
const bindings = results.getBindings();
|
|
@@ -30044,44 +29751,38 @@ var GraphPlugin = class {
|
|
|
30044
29751
|
draw() {
|
|
30045
29752
|
this.yasr.resultsEl.innerHTML = "";
|
|
30046
29753
|
try {
|
|
30047
|
-
|
|
30048
|
-
if (!triples || triples.length === 0) {
|
|
30049
|
-
|
|
29754
|
+
this.triples = parseConstructResults(this.yasr.results);
|
|
29755
|
+
if (!this.triples || this.triples.length === 0) {
|
|
29756
|
+
const emptyDiv = document.createElement("div");
|
|
29757
|
+
emptyDiv.className = "yasgui-graph-plugin-empty-state";
|
|
29758
|
+
emptyDiv.textContent = "No graph data to visualize";
|
|
29759
|
+
this.yasr.resultsEl.appendChild(emptyDiv);
|
|
30050
29760
|
return;
|
|
30051
29761
|
}
|
|
30052
|
-
|
|
29762
|
+
if (this.triples.length > 1e3) {
|
|
29763
|
+
console.warn("Large graph detected (>1000 triples). Rendering may be slow.");
|
|
29764
|
+
}
|
|
29765
|
+
this.prefixMap = extractPrefixes(this.yasr);
|
|
30053
29766
|
this.currentTheme = getCurrentTheme();
|
|
30054
29767
|
const themeColors = getThemeNodeColors(this.currentTheme);
|
|
30055
|
-
const { nodes, edges } = triplesToGraph(triples, prefixMap, themeColors);
|
|
29768
|
+
const { nodes, edges } = triplesToGraph(this.triples, this.prefixMap, themeColors);
|
|
30056
29769
|
const container = document.createElement("div");
|
|
29770
|
+
container.className = "yasgui-graph-plugin-container";
|
|
30057
29771
|
container.id = "yasgui-graph-plugin-container";
|
|
30058
|
-
container.style.width = "100%";
|
|
30059
|
-
container.style.minHeight = "500px";
|
|
30060
|
-
container.style.height = "100%";
|
|
30061
|
-
container.style.position = "relative";
|
|
30062
|
-
container.style.overflow = "hidden";
|
|
30063
29772
|
this.yasr.resultsEl.appendChild(container);
|
|
30064
|
-
|
|
30065
|
-
|
|
30066
|
-
const edgesDataSet = new DataSet2(edges);
|
|
29773
|
+
this.nodesDataSet = new DataSet(nodes);
|
|
29774
|
+
this.edgesDataSet = new DataSet(edges);
|
|
30067
29775
|
const options = getDefaultNetworkOptions(themeColors);
|
|
30068
|
-
this.
|
|
30069
|
-
this.edgesDataSet = edgesDataSet;
|
|
30070
|
-
this.triples = triples;
|
|
30071
|
-
this.prefixMap = prefixMap;
|
|
30072
|
-
this.network = new Network2(
|
|
29776
|
+
this.network = new Network(
|
|
30073
29777
|
container,
|
|
30074
|
-
{ nodes: nodesDataSet, edges: edgesDataSet },
|
|
29778
|
+
{ nodes: this.nodesDataSet, edges: this.edgesDataSet },
|
|
30075
29779
|
options
|
|
30076
29780
|
);
|
|
30077
|
-
this.
|
|
30078
|
-
const isHorizontal = document.querySelector(".orientation-horizontal") !== null;
|
|
30079
|
-
container.style.height = isHorizontal ? "80vh" : "50vh";
|
|
30080
|
-
});
|
|
30081
|
-
this.networkReady = false;
|
|
29781
|
+
this.applyCanvasBackground(themeColors.background);
|
|
30082
29782
|
this.network.on("stabilizationIterationsDone", () => {
|
|
30083
29783
|
this.network.setOptions({ physics: { enabled: true } });
|
|
30084
|
-
this.
|
|
29784
|
+
this.network.fit({ maxZoomLevel: 3 });
|
|
29785
|
+
this.setupContainerResize(container);
|
|
30085
29786
|
});
|
|
30086
29787
|
if (!this.themeObserver) {
|
|
30087
29788
|
this.themeObserver = watchThemeChanges((newTheme) => {
|
|
@@ -30089,43 +29790,28 @@ var GraphPlugin = class {
|
|
|
30089
29790
|
});
|
|
30090
29791
|
}
|
|
30091
29792
|
const controls = document.createElement("div");
|
|
30092
|
-
controls.
|
|
30093
|
-
controls.style.top = "10px";
|
|
30094
|
-
controls.style.right = "10px";
|
|
30095
|
-
controls.style.zIndex = "10000";
|
|
30096
|
-
controls.style.display = "flex";
|
|
30097
|
-
controls.style.gap = "10px";
|
|
30098
|
-
controls.style.pointerEvents = "auto";
|
|
29793
|
+
controls.className = "yasgui-graph-controls";
|
|
30099
29794
|
container.appendChild(controls);
|
|
30100
29795
|
const fitButton = document.createElement("button");
|
|
29796
|
+
fitButton.className = "yasgui-graph-button";
|
|
30101
29797
|
fitButton.textContent = "Zoom to Fit";
|
|
30102
|
-
fitButton.style.padding = "8px 12px";
|
|
30103
|
-
fitButton.style.background = "#4CAF50";
|
|
30104
|
-
fitButton.style.color = "white";
|
|
30105
|
-
fitButton.style.border = "none";
|
|
30106
|
-
fitButton.style.borderRadius = "4px";
|
|
30107
|
-
fitButton.style.cursor = "pointer";
|
|
30108
|
-
fitButton.style.fontSize = "14px";
|
|
30109
|
-
fitButton.style.boxShadow = "0 2px 4px rgba(0,0,0,0.2)";
|
|
30110
|
-
fitButton.onmouseover = () => fitButton.style.background = "#45a049";
|
|
30111
|
-
fitButton.onmouseout = () => fitButton.style.background = "#4CAF50";
|
|
30112
29798
|
fitButton.onclick = () => {
|
|
30113
29799
|
if (this.network) {
|
|
30114
|
-
this.network.fit({ animation: { duration: 300, easingFunction: "easeInOutQuad" } });
|
|
29800
|
+
this.network.fit({ maxZoomLevel: 1e3, animation: { duration: 300, easingFunction: "easeInOutQuad" } });
|
|
30115
29801
|
}
|
|
30116
29802
|
};
|
|
30117
29803
|
controls.appendChild(fitButton);
|
|
30118
|
-
if (triples.length > 1e3) {
|
|
30119
|
-
console.warn("Large graph detected (>1000 triples). Rendering may be slow.");
|
|
30120
|
-
}
|
|
30121
29804
|
} catch (error) {
|
|
30122
29805
|
console.error("Error rendering graph:", error);
|
|
30123
|
-
|
|
29806
|
+
const errorDiv = document.createElement("div");
|
|
29807
|
+
errorDiv.className = "yasgui-graph-plugin-error";
|
|
29808
|
+
errorDiv.textContent = "Error rendering graph. See console for details.";
|
|
29809
|
+
this.yasr.resultsEl.appendChild(errorDiv);
|
|
30124
29810
|
}
|
|
30125
29811
|
}
|
|
30126
29812
|
/**
|
|
30127
29813
|
* Apply theme to existing network
|
|
30128
|
-
* @param
|
|
29814
|
+
* @param newTheme - 'light' or 'dark'
|
|
30129
29815
|
*/
|
|
30130
29816
|
applyTheme(newTheme) {
|
|
30131
29817
|
if (!this.network || !this.nodesDataSet || !this.triples || !this.prefixMap) {
|
|
@@ -30140,17 +29826,48 @@ var GraphPlugin = class {
|
|
|
30140
29826
|
this.edgesDataSet.add(edges);
|
|
30141
29827
|
const options = getDefaultNetworkOptions(themeColors);
|
|
30142
29828
|
this.network.setOptions(options);
|
|
29829
|
+
this.applyCanvasBackground(themeColors.background);
|
|
29830
|
+
}
|
|
29831
|
+
/**
|
|
29832
|
+
* Apply background color to vis-network canvas using CSS custom property
|
|
29833
|
+
* @param color - Background color
|
|
29834
|
+
*/
|
|
29835
|
+
applyCanvasBackground(color) {
|
|
29836
|
+
if (this.network && this.network.body && this.network.body.container) {
|
|
29837
|
+
this.network.body.container.style.setProperty("--yasgui-graph-canvas-bg", color);
|
|
29838
|
+
}
|
|
29839
|
+
}
|
|
29840
|
+
/**
|
|
29841
|
+
* Setup ResizeObserver to adjust container height based on parent
|
|
29842
|
+
* Workaround for viz-network bug: container must have fixed pixel height
|
|
29843
|
+
* @param container - The graph container element
|
|
29844
|
+
*/
|
|
29845
|
+
setupContainerResize(container) {
|
|
29846
|
+
const parent2 = container.parentElement;
|
|
29847
|
+
if (!parent2) return;
|
|
29848
|
+
const updateHeight = () => {
|
|
29849
|
+
const parentHeight = parent2.clientHeight;
|
|
29850
|
+
if (parentHeight > 0) {
|
|
29851
|
+
container.style.height = `${parentHeight}px`;
|
|
29852
|
+
if (this.network) {
|
|
29853
|
+
this.network.fit({ maxZoomLevel: 1e3 });
|
|
29854
|
+
}
|
|
29855
|
+
}
|
|
29856
|
+
};
|
|
29857
|
+
updateHeight();
|
|
29858
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
29859
|
+
updateHeight();
|
|
29860
|
+
});
|
|
29861
|
+
this.resizeObserver.observe(parent2);
|
|
30143
29862
|
}
|
|
30144
29863
|
/**
|
|
30145
29864
|
* Get icon for plugin tab
|
|
30146
|
-
* @returns
|
|
29865
|
+
* @returns Icon element
|
|
30147
29866
|
*/
|
|
30148
29867
|
getIcon() {
|
|
30149
29868
|
const icon = document.createElement("div");
|
|
29869
|
+
icon.className = "yasgui-graph-icon";
|
|
30150
29870
|
icon.setAttribute("aria-label", "Graph visualization");
|
|
30151
|
-
icon.style.display = "inline-flex";
|
|
30152
|
-
icon.style.alignItems = "center";
|
|
30153
|
-
icon.style.justifyContent = "center";
|
|
30154
29871
|
icon.innerHTML = `<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
30155
29872
|
<circle cx="3" cy="3" r="2" />
|
|
30156
29873
|
<circle cx="13" cy="3" r="2" />
|
|
@@ -30169,6 +29886,10 @@ var GraphPlugin = class {
|
|
|
30169
29886
|
this.themeObserver.disconnect();
|
|
30170
29887
|
this.themeObserver = null;
|
|
30171
29888
|
}
|
|
29889
|
+
if (this.resizeObserver) {
|
|
29890
|
+
this.resizeObserver.disconnect();
|
|
29891
|
+
this.resizeObserver = null;
|
|
29892
|
+
}
|
|
30172
29893
|
if (this.network) {
|
|
30173
29894
|
this.network.destroy();
|
|
30174
29895
|
this.network = null;
|
|
@@ -30177,13 +29898,13 @@ var GraphPlugin = class {
|
|
|
30177
29898
|
};
|
|
30178
29899
|
var GraphPlugin_default = GraphPlugin;
|
|
30179
29900
|
|
|
30180
|
-
// src/index.
|
|
29901
|
+
// src/index.ts
|
|
30181
29902
|
if (typeof window !== "undefined" && window.Yasgui && window.Yasgui.Yasr) {
|
|
30182
29903
|
window.Yasgui.Yasr.registerPlugin("Graph", GraphPlugin_default);
|
|
30183
29904
|
}
|
|
30184
|
-
var
|
|
29905
|
+
var index_default = GraphPlugin_default;
|
|
30185
29906
|
export {
|
|
30186
|
-
|
|
29907
|
+
index_default as default
|
|
30187
29908
|
};
|
|
30188
29909
|
/*! Bundled license information:
|
|
30189
29910
|
|