@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,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -16,14 +17,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
17
|
};
|
|
17
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
19
|
|
|
19
|
-
// src/index.
|
|
20
|
-
var
|
|
21
|
-
__export(
|
|
22
|
-
default: () =>
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
default: () => index_default
|
|
23
24
|
});
|
|
24
|
-
module.exports = __toCommonJS(
|
|
25
|
+
module.exports = __toCommonJS(index_exports);
|
|
25
26
|
|
|
26
|
-
// src/prefixUtils.
|
|
27
|
+
// src/prefixUtils.ts
|
|
27
28
|
function extractPrefixes(yasr) {
|
|
28
29
|
const prefixMap = /* @__PURE__ */ new Map();
|
|
29
30
|
if (yasr && yasr.getPrefixes) {
|
|
@@ -50,8 +51,7 @@ function extractPrefixes(yasr) {
|
|
|
50
51
|
return prefixMap;
|
|
51
52
|
}
|
|
52
53
|
function applyPrefix(uri, prefixMap) {
|
|
53
|
-
if (!uri || typeof uri !== "string")
|
|
54
|
-
return uri;
|
|
54
|
+
if (!uri || typeof uri !== "string") return uri;
|
|
55
55
|
for (const [namespace, prefix] of prefixMap.entries()) {
|
|
56
56
|
if (uri.startsWith(namespace)) {
|
|
57
57
|
const localName = uri.substring(namespace.length);
|
|
@@ -61,19 +61,18 @@ function applyPrefix(uri, prefixMap) {
|
|
|
61
61
|
return uri;
|
|
62
62
|
}
|
|
63
63
|
function truncateLabel(text, maxLength = 50) {
|
|
64
|
-
if (!text || typeof text !== "string")
|
|
65
|
-
|
|
66
|
-
if (text.length <= maxLength)
|
|
67
|
-
return text;
|
|
64
|
+
if (!text || typeof text !== "string") return text;
|
|
65
|
+
if (text.length <= maxLength) return text;
|
|
68
66
|
return text.substring(0, maxLength - 3) + "...";
|
|
69
67
|
}
|
|
70
68
|
|
|
71
|
-
// src/networkConfig.
|
|
69
|
+
// src/networkConfig.ts
|
|
72
70
|
function getDefaultNetworkOptions(themeColors) {
|
|
73
71
|
return {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
72
|
+
// Configure canvas background color based on theme
|
|
73
|
+
configure: {
|
|
74
|
+
enabled: false
|
|
75
|
+
},
|
|
77
76
|
physics: {
|
|
78
77
|
enabled: true,
|
|
79
78
|
stabilization: {
|
|
@@ -118,7 +117,8 @@ function getDefaultNetworkOptions(themeColors) {
|
|
|
118
117
|
},
|
|
119
118
|
smooth: {
|
|
120
119
|
enabled: true,
|
|
121
|
-
type: "dynamic"
|
|
120
|
+
type: "dynamic",
|
|
121
|
+
roundness: 0.5
|
|
122
122
|
},
|
|
123
123
|
font: {
|
|
124
124
|
size: 12,
|
|
@@ -135,7 +135,7 @@ function getDefaultNetworkOptions(themeColors) {
|
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
// src/parsers.
|
|
138
|
+
// src/parsers.ts
|
|
139
139
|
function parseConstructResults(yasrResults) {
|
|
140
140
|
const triples = [];
|
|
141
141
|
if (!yasrResults || !yasrResults.getBindings) {
|
|
@@ -161,7 +161,7 @@ function parseConstructResults(yasrResults) {
|
|
|
161
161
|
return triples;
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
// src/colorUtils.
|
|
164
|
+
// src/colorUtils.ts
|
|
165
165
|
function getNodeColor(node, triples, themeColors) {
|
|
166
166
|
if (node.uri && node.uri.startsWith("_:")) {
|
|
167
167
|
return themeColors.blankNode;
|
|
@@ -178,7 +178,7 @@ function getNodeColor(node, triples, themeColors) {
|
|
|
178
178
|
return themeColors.uri;
|
|
179
179
|
}
|
|
180
180
|
|
|
181
|
-
// src/transformers.
|
|
181
|
+
// src/transformers.ts
|
|
182
182
|
function createNodeMap(triples, prefixMap, themeColors) {
|
|
183
183
|
const nodeMap = /* @__PURE__ */ new Map();
|
|
184
184
|
let nodeId = 1;
|
|
@@ -200,7 +200,9 @@ function createNodeMap(triples, prefixMap, themeColors) {
|
|
|
200
200
|
if (!nodeMap.has(objValue)) {
|
|
201
201
|
const isLiteral = triple.object.type === "literal";
|
|
202
202
|
const isBlankNode = !isLiteral && objValue.startsWith("_:");
|
|
203
|
-
let label
|
|
203
|
+
let label;
|
|
204
|
+
let fullValue;
|
|
205
|
+
let title;
|
|
204
206
|
if (isLiteral) {
|
|
205
207
|
label = truncateLabel(objValue);
|
|
206
208
|
fullValue = objValue;
|
|
@@ -237,8 +239,7 @@ function createEdgesArray(triples, nodeMap, prefixMap) {
|
|
|
237
239
|
triples.forEach((triple) => {
|
|
238
240
|
const fromNode = nodeMap.get(triple.subject);
|
|
239
241
|
const toNode = nodeMap.get(triple.object.value);
|
|
240
|
-
if (!fromNode || !toNode)
|
|
241
|
-
return;
|
|
242
|
+
if (!fromNode || !toNode) return;
|
|
242
243
|
const edgeKey = `${fromNode.id}-${triple.predicate}-${toNode.id}`;
|
|
243
244
|
if (!edgeSet.has(edgeKey)) {
|
|
244
245
|
edgeSet.add(edgeKey);
|
|
@@ -274,9 +275,9 @@ var global$n = (
|
|
|
274
275
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
275
276
|
check(typeof globalThis == "object" && globalThis) || check(typeof window == "object" && window) || // eslint-disable-next-line no-restricted-globals -- safe
|
|
276
277
|
check(typeof self == "object" && self) || check(typeof commonjsGlobal == "object" && commonjsGlobal) || // eslint-disable-next-line no-new-func -- fallback
|
|
277
|
-
/* @__PURE__ */ function() {
|
|
278
|
+
/* @__PURE__ */ (function() {
|
|
278
279
|
return this;
|
|
279
|
-
}() || commonjsGlobal || Function("return this")()
|
|
280
|
+
})() || commonjsGlobal || Function("return this")()
|
|
280
281
|
);
|
|
281
282
|
var fails$v = function(exec2) {
|
|
282
283
|
try {
|
|
@@ -287,8 +288,8 @@ var fails$v = function(exec2) {
|
|
|
287
288
|
};
|
|
288
289
|
var fails$u = fails$v;
|
|
289
290
|
var functionBindNative = !fails$u(function() {
|
|
290
|
-
var test2 = function() {
|
|
291
|
-
}.bind();
|
|
291
|
+
var test2 = (function() {
|
|
292
|
+
}).bind();
|
|
292
293
|
return typeof test2 != "function" || test2.hasOwnProperty("prototype");
|
|
293
294
|
});
|
|
294
295
|
var NATIVE_BIND$4 = functionBindNative;
|
|
@@ -316,8 +317,7 @@ var classofRaw$2 = function(it2) {
|
|
|
316
317
|
var classofRaw$1 = classofRaw$2;
|
|
317
318
|
var uncurryThis$w = functionUncurryThis;
|
|
318
319
|
var functionUncurryThisClause = function(fn) {
|
|
319
|
-
if (classofRaw$1(fn) === "Function")
|
|
320
|
-
return uncurryThis$w(fn);
|
|
320
|
+
if (classofRaw$1(fn) === "Function") return uncurryThis$w(fn);
|
|
321
321
|
};
|
|
322
322
|
var documentAll$2 = typeof document == "object" && document.all;
|
|
323
323
|
var IS_HTMLDDA = typeof documentAll$2 == "undefined" && documentAll$2 !== void 0;
|
|
@@ -376,8 +376,7 @@ var isNullOrUndefined$6 = function(it2) {
|
|
|
376
376
|
var isNullOrUndefined$5 = isNullOrUndefined$6;
|
|
377
377
|
var $TypeError$e = TypeError;
|
|
378
378
|
var requireObjectCoercible$5 = function(it2) {
|
|
379
|
-
if (isNullOrUndefined$5(it2))
|
|
380
|
-
throw new $TypeError$e("Can't call method on " + it2);
|
|
379
|
+
if (isNullOrUndefined$5(it2)) throw new $TypeError$e("Can't call method on " + it2);
|
|
381
380
|
return it2;
|
|
382
381
|
};
|
|
383
382
|
var IndexedObject$3 = indexedObject;
|
|
@@ -422,8 +421,7 @@ if (!version && userAgent$2) {
|
|
|
422
421
|
match = userAgent$2.match(/Edge\/(\d+)/);
|
|
423
422
|
if (!match || match[1] >= 74) {
|
|
424
423
|
match = userAgent$2.match(/Chrome\/(\d+)/);
|
|
425
|
-
if (match)
|
|
426
|
-
version = +match[1];
|
|
424
|
+
if (match) version = +match[1];
|
|
427
425
|
}
|
|
428
426
|
}
|
|
429
427
|
var engineV8Version = version;
|
|
@@ -432,7 +430,7 @@ var fails$r = fails$v;
|
|
|
432
430
|
var global$k = global$n;
|
|
433
431
|
var $String$4 = global$k.String;
|
|
434
432
|
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$r(function() {
|
|
435
|
-
var symbol2 = Symbol("symbol detection");
|
|
433
|
+
var symbol2 = /* @__PURE__ */ Symbol("symbol detection");
|
|
436
434
|
return !$String$4(symbol2) || !(Object(symbol2) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
437
435
|
!Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
|
|
438
436
|
});
|
|
@@ -461,8 +459,7 @@ var isCallable$d = isCallable$h;
|
|
|
461
459
|
var tryToString$4 = tryToString$5;
|
|
462
460
|
var $TypeError$d = TypeError;
|
|
463
461
|
var aCallable$7 = function(argument) {
|
|
464
|
-
if (isCallable$d(argument))
|
|
465
|
-
return argument;
|
|
462
|
+
if (isCallable$d(argument)) return argument;
|
|
466
463
|
throw new $TypeError$d(tryToString$4(argument) + " is not a function");
|
|
467
464
|
};
|
|
468
465
|
var aCallable$6 = aCallable$7;
|
|
@@ -477,12 +474,9 @@ var isObject$g = isObject$h;
|
|
|
477
474
|
var $TypeError$c = TypeError;
|
|
478
475
|
var ordinaryToPrimitive$1 = function(input, pref) {
|
|
479
476
|
var fn, val;
|
|
480
|
-
if (pref === "string" && isCallable$c(fn = input.toString) && !isObject$g(val = call$a(fn, input)))
|
|
481
|
-
|
|
482
|
-
if (isCallable$c(fn = input.
|
|
483
|
-
return val;
|
|
484
|
-
if (pref !== "string" && isCallable$c(fn = input.toString) && !isObject$g(val = call$a(fn, input)))
|
|
485
|
-
return val;
|
|
477
|
+
if (pref === "string" && isCallable$c(fn = input.toString) && !isObject$g(val = call$a(fn, input))) return val;
|
|
478
|
+
if (isCallable$c(fn = input.valueOf) && !isObject$g(val = call$a(fn, input))) return val;
|
|
479
|
+
if (pref !== "string" && isCallable$c(fn = input.toString) && !isObject$g(val = call$a(fn, input))) return val;
|
|
486
480
|
throw new $TypeError$c("Can't convert object to primitive value");
|
|
487
481
|
};
|
|
488
482
|
var shared$7 = { exports: {} };
|
|
@@ -554,20 +548,16 @@ var wellKnownSymbol$k = wellKnownSymbol$l;
|
|
|
554
548
|
var $TypeError$b = TypeError;
|
|
555
549
|
var TO_PRIMITIVE = wellKnownSymbol$k("toPrimitive");
|
|
556
550
|
var toPrimitive$6 = function(input, pref) {
|
|
557
|
-
if (!isObject$f(input) || isSymbol$4(input))
|
|
558
|
-
return input;
|
|
551
|
+
if (!isObject$f(input) || isSymbol$4(input)) return input;
|
|
559
552
|
var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
|
|
560
553
|
var result;
|
|
561
554
|
if (exoticToPrim) {
|
|
562
|
-
if (pref === void 0)
|
|
563
|
-
pref = "default";
|
|
555
|
+
if (pref === void 0) pref = "default";
|
|
564
556
|
result = call$9(exoticToPrim, input, pref);
|
|
565
|
-
if (!isObject$f(result) || isSymbol$4(result))
|
|
566
|
-
return result;
|
|
557
|
+
if (!isObject$f(result) || isSymbol$4(result)) return result;
|
|
567
558
|
throw new $TypeError$b("Can't convert object to primitive value");
|
|
568
559
|
}
|
|
569
|
-
if (pref === void 0)
|
|
570
|
-
pref = "number";
|
|
560
|
+
if (pref === void 0) pref = "number";
|
|
571
561
|
return ordinaryToPrimitive(input, pref);
|
|
572
562
|
};
|
|
573
563
|
var toPrimitive$5 = toPrimitive$6;
|
|
@@ -605,13 +595,11 @@ var $getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
|
|
|
605
595
|
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$h ? $getOwnPropertyDescriptor$2 : function getOwnPropertyDescriptor(O, P) {
|
|
606
596
|
O = toIndexedObject$a(O);
|
|
607
597
|
P = toPropertyKey$3(P);
|
|
608
|
-
if (IE8_DOM_DEFINE$1)
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
if (hasOwn$h(O, P))
|
|
614
|
-
return createPropertyDescriptor$4(!call$8(propertyIsEnumerableModule$2.f, O, P), O[P]);
|
|
598
|
+
if (IE8_DOM_DEFINE$1) try {
|
|
599
|
+
return $getOwnPropertyDescriptor$2(O, P);
|
|
600
|
+
} catch (error) {
|
|
601
|
+
}
|
|
602
|
+
if (hasOwn$h(O, P)) return createPropertyDescriptor$4(!call$8(propertyIsEnumerableModule$2.f, O, P), O[P]);
|
|
615
603
|
};
|
|
616
604
|
var fails$p = fails$v;
|
|
617
605
|
var isCallable$b = isCallable$h;
|
|
@@ -651,8 +639,7 @@ var isObject$d = isObject$h;
|
|
|
651
639
|
var $String$2 = String;
|
|
652
640
|
var $TypeError$a = TypeError;
|
|
653
641
|
var anObject$9 = function(argument) {
|
|
654
|
-
if (isObject$d(argument))
|
|
655
|
-
return argument;
|
|
642
|
+
if (isObject$d(argument)) return argument;
|
|
656
643
|
throw new $TypeError$a($String$2(argument) + " is not an object");
|
|
657
644
|
};
|
|
658
645
|
var DESCRIPTORS$f = descriptors;
|
|
@@ -686,15 +673,12 @@ objectDefineProperty.f = DESCRIPTORS$f ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
686
673
|
anObject$8(O);
|
|
687
674
|
P = toPropertyKey$2(P);
|
|
688
675
|
anObject$8(Attributes);
|
|
689
|
-
if (IE8_DOM_DEFINE)
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
if ("
|
|
695
|
-
throw new $TypeError$9("Accessors not supported");
|
|
696
|
-
if ("value" in Attributes)
|
|
697
|
-
O[P] = Attributes.value;
|
|
676
|
+
if (IE8_DOM_DEFINE) try {
|
|
677
|
+
return $defineProperty$1(O, P, Attributes);
|
|
678
|
+
} catch (error) {
|
|
679
|
+
}
|
|
680
|
+
if ("get" in Attributes || "set" in Attributes) throw new $TypeError$9("Accessors not supported");
|
|
681
|
+
if ("value" in Attributes) O[P] = Attributes.value;
|
|
698
682
|
return O;
|
|
699
683
|
};
|
|
700
684
|
var DESCRIPTORS$e = descriptors;
|
|
@@ -748,23 +732,16 @@ var _export = function(options, source) {
|
|
|
748
732
|
FORCED2 = isForced(GLOBAL ? key : TARGET + (STATIC ? "." : "#") + key, options.forced);
|
|
749
733
|
USE_NATIVE = !FORCED2 && nativeSource && hasOwn$g(nativeSource, key);
|
|
750
734
|
targetProperty = target[key];
|
|
751
|
-
if (USE_NATIVE)
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
} else
|
|
756
|
-
nativeProperty = nativeSource[key];
|
|
735
|
+
if (USE_NATIVE) if (options.dontCallGetSet) {
|
|
736
|
+
descriptor = getOwnPropertyDescriptor$5(nativeSource, key);
|
|
737
|
+
nativeProperty = descriptor && descriptor.value;
|
|
738
|
+
} else nativeProperty = nativeSource[key];
|
|
757
739
|
sourceProperty = USE_NATIVE && nativeProperty ? nativeProperty : source[key];
|
|
758
|
-
if (USE_NATIVE && typeof targetProperty == typeof sourceProperty)
|
|
759
|
-
|
|
760
|
-
if (options.
|
|
761
|
-
|
|
762
|
-
else
|
|
763
|
-
resultProperty = wrapConstructor(sourceProperty);
|
|
764
|
-
else if (PROTO && isCallable$a(sourceProperty))
|
|
765
|
-
resultProperty = uncurryThis$q(sourceProperty);
|
|
766
|
-
else
|
|
767
|
-
resultProperty = sourceProperty;
|
|
740
|
+
if (USE_NATIVE && typeof targetProperty == typeof sourceProperty) continue;
|
|
741
|
+
if (options.bind && USE_NATIVE) resultProperty = bind$9(sourceProperty, global$f);
|
|
742
|
+
else if (options.wrap && USE_NATIVE) resultProperty = wrapConstructor(sourceProperty);
|
|
743
|
+
else if (PROTO && isCallable$a(sourceProperty)) resultProperty = uncurryThis$q(sourceProperty);
|
|
744
|
+
else resultProperty = sourceProperty;
|
|
768
745
|
if (options.sham || sourceProperty && sourceProperty.sham || targetProperty && targetProperty.sham) {
|
|
769
746
|
createNonEnumerableProperty$5(resultProperty, "sham", true);
|
|
770
747
|
}
|
|
@@ -817,17 +794,13 @@ var createMethod$5 = function(IS_INCLUDES) {
|
|
|
817
794
|
var length2 = lengthOfArrayLike$b(O);
|
|
818
795
|
var index = toAbsoluteIndex$4(fromIndex, length2);
|
|
819
796
|
var value;
|
|
820
|
-
if (IS_INCLUDES && el !== el)
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
for (; length2 > index; index++) {
|
|
828
|
-
if ((IS_INCLUDES || index in O) && O[index] === el)
|
|
829
|
-
return IS_INCLUDES || index || 0;
|
|
830
|
-
}
|
|
797
|
+
if (IS_INCLUDES && el !== el) while (length2 > index) {
|
|
798
|
+
value = O[index++];
|
|
799
|
+
if (value !== value) return true;
|
|
800
|
+
}
|
|
801
|
+
else for (; length2 > index; index++) {
|
|
802
|
+
if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
|
|
803
|
+
}
|
|
831
804
|
return !IS_INCLUDES && -1;
|
|
832
805
|
};
|
|
833
806
|
};
|
|
@@ -851,12 +824,10 @@ var objectKeysInternal = function(object2, names) {
|
|
|
851
824
|
var i = 0;
|
|
852
825
|
var result = [];
|
|
853
826
|
var key;
|
|
854
|
-
for (key in O)
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
~indexOf$4(result, key) || push$5(result, key);
|
|
859
|
-
}
|
|
827
|
+
for (key in O) !hasOwn$f(hiddenKeys$5, key) && hasOwn$f(O, key) && push$5(result, key);
|
|
828
|
+
while (names.length > i) if (hasOwn$f(O, key = names[i++])) {
|
|
829
|
+
~indexOf$4(result, key) || push$5(result, key);
|
|
830
|
+
}
|
|
860
831
|
return result;
|
|
861
832
|
};
|
|
862
833
|
var enumBugKeys$3 = [
|
|
@@ -896,11 +867,10 @@ var objectAssign = !$assign || fails$n(function() {
|
|
|
896
867
|
enumerable: false
|
|
897
868
|
});
|
|
898
869
|
}
|
|
899
|
-
}), { b: 2 })).b !== 1)
|
|
900
|
-
return true;
|
|
870
|
+
}), { b: 2 })).b !== 1) return true;
|
|
901
871
|
var A = {};
|
|
902
872
|
var B = {};
|
|
903
|
-
var symbol2 = Symbol("assign detection");
|
|
873
|
+
var symbol2 = /* @__PURE__ */ Symbol("assign detection");
|
|
904
874
|
var alphabet = "abcdefghijklmnopqrst";
|
|
905
875
|
A[symbol2] = 7;
|
|
906
876
|
alphabet.split("").forEach(function(chr) {
|
|
@@ -921,8 +891,7 @@ var objectAssign = !$assign || fails$n(function() {
|
|
|
921
891
|
var key;
|
|
922
892
|
while (length2 > j) {
|
|
923
893
|
key = keys4[j++];
|
|
924
|
-
if (!DESCRIPTORS$d || call$7(propertyIsEnumerable4, S, key))
|
|
925
|
-
T[key] = S[key];
|
|
894
|
+
if (!DESCRIPTORS$d || call$7(propertyIsEnumerable4, S, key)) T[key] = S[key];
|
|
926
895
|
}
|
|
927
896
|
}
|
|
928
897
|
return T;
|
|
@@ -954,8 +923,7 @@ var construct$1 = function(C, argsLength, args) {
|
|
|
954
923
|
if (!hasOwn$e(factories, argsLength)) {
|
|
955
924
|
var list = [];
|
|
956
925
|
var i = 0;
|
|
957
|
-
for (; i < argsLength; i++)
|
|
958
|
-
list[i] = "a[" + i + "]";
|
|
926
|
+
for (; i < argsLength; i++) list[i] = "a[" + i + "]";
|
|
959
927
|
factories[argsLength] = $Function("C,a", "return new C(" + join(list, ",") + ")");
|
|
960
928
|
}
|
|
961
929
|
return factories[argsLength](C, args);
|
|
@@ -968,8 +936,7 @@ var functionBind = NATIVE_BIND ? $Function.bind : function bind(that) {
|
|
|
968
936
|
var args = concat$5(partArgs, arraySlice$4(arguments));
|
|
969
937
|
return this instanceof boundFunction ? construct$1(F, args.length, args) : F.apply(that, args);
|
|
970
938
|
};
|
|
971
|
-
if (isObject$c(Prototype))
|
|
972
|
-
boundFunction.prototype = Prototype;
|
|
939
|
+
if (isObject$c(Prototype)) boundFunction.prototype = Prototype;
|
|
973
940
|
return boundFunction;
|
|
974
941
|
};
|
|
975
942
|
var $$L = _export;
|
|
@@ -1163,8 +1130,7 @@ function getShape(name) {
|
|
|
1163
1130
|
}
|
|
1164
1131
|
}
|
|
1165
1132
|
function styleInject(css, ref) {
|
|
1166
|
-
if (ref === void 0)
|
|
1167
|
-
ref = {};
|
|
1133
|
+
if (ref === void 0) ref = {};
|
|
1168
1134
|
var insertAt = ref.insertAt;
|
|
1169
1135
|
if (!css || typeof document === "undefined") {
|
|
1170
1136
|
return;
|
|
@@ -1791,8 +1757,7 @@ var componentEmitter = { exports: {} };
|
|
|
1791
1757
|
module2.exports = Emitter2;
|
|
1792
1758
|
}
|
|
1793
1759
|
function Emitter2(obj) {
|
|
1794
|
-
if (obj)
|
|
1795
|
-
return mixin(obj);
|
|
1760
|
+
if (obj) return mixin(obj);
|
|
1796
1761
|
}
|
|
1797
1762
|
function mixin(obj) {
|
|
1798
1763
|
for (var key in Emitter2.prototype) {
|
|
@@ -1821,8 +1786,7 @@ var componentEmitter = { exports: {} };
|
|
|
1821
1786
|
return this;
|
|
1822
1787
|
}
|
|
1823
1788
|
var callbacks = this._callbacks["$" + event];
|
|
1824
|
-
if (!callbacks)
|
|
1825
|
-
return this;
|
|
1789
|
+
if (!callbacks) return this;
|
|
1826
1790
|
if (1 == arguments.length) {
|
|
1827
1791
|
delete this._callbacks["$" + event];
|
|
1828
1792
|
return this;
|
|
@@ -1871,8 +1835,7 @@ var isArray$c = Array.isArray || function isArray(argument) {
|
|
|
1871
1835
|
var $TypeError$8 = TypeError;
|
|
1872
1836
|
var MAX_SAFE_INTEGER = 9007199254740991;
|
|
1873
1837
|
var doesNotExceedSafeInteger$3 = function(it2) {
|
|
1874
|
-
if (it2 > MAX_SAFE_INTEGER)
|
|
1875
|
-
throw $TypeError$8("Maximum allowed index exceeded");
|
|
1838
|
+
if (it2 > MAX_SAFE_INTEGER) throw $TypeError$8("Maximum allowed index exceeded");
|
|
1876
1839
|
return it2;
|
|
1877
1840
|
};
|
|
1878
1841
|
var toPropertyKey$1 = toPropertyKey$4;
|
|
@@ -1880,10 +1843,8 @@ var definePropertyModule$2 = objectDefineProperty;
|
|
|
1880
1843
|
var createPropertyDescriptor$2 = createPropertyDescriptor$5;
|
|
1881
1844
|
var createProperty$5 = function(object2, key, value) {
|
|
1882
1845
|
var propertyKey = toPropertyKey$1(key);
|
|
1883
|
-
if (propertyKey in object2)
|
|
1884
|
-
|
|
1885
|
-
else
|
|
1886
|
-
object2[propertyKey] = value;
|
|
1846
|
+
if (propertyKey in object2) definePropertyModule$2.f(object2, propertyKey, createPropertyDescriptor$2(0, value));
|
|
1847
|
+
else object2[propertyKey] = value;
|
|
1887
1848
|
};
|
|
1888
1849
|
var wellKnownSymbol$j = wellKnownSymbol$l;
|
|
1889
1850
|
var TO_STRING_TAG$3 = wellKnownSymbol$j("toStringTag");
|
|
@@ -1896,9 +1857,9 @@ var classofRaw = classofRaw$2;
|
|
|
1896
1857
|
var wellKnownSymbol$i = wellKnownSymbol$l;
|
|
1897
1858
|
var TO_STRING_TAG$2 = wellKnownSymbol$i("toStringTag");
|
|
1898
1859
|
var $Object$2 = Object;
|
|
1899
|
-
var CORRECT_ARGUMENTS = classofRaw(/* @__PURE__ */ function() {
|
|
1860
|
+
var CORRECT_ARGUMENTS = classofRaw(/* @__PURE__ */ (function() {
|
|
1900
1861
|
return arguments;
|
|
1901
|
-
}()) === "Arguments";
|
|
1862
|
+
})()) === "Arguments";
|
|
1902
1863
|
var tryGet = function(it2, key) {
|
|
1903
1864
|
try {
|
|
1904
1865
|
return it2[key];
|
|
@@ -1933,8 +1894,7 @@ var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
|
1933
1894
|
var exec$2 = uncurryThis$k(constructorRegExp.exec);
|
|
1934
1895
|
var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
|
|
1935
1896
|
var isConstructorModern = function isConstructor(argument) {
|
|
1936
|
-
if (!isCallable$7(argument))
|
|
1937
|
-
return false;
|
|
1897
|
+
if (!isCallable$7(argument)) return false;
|
|
1938
1898
|
try {
|
|
1939
1899
|
construct(noop, empty, argument);
|
|
1940
1900
|
return true;
|
|
@@ -1943,8 +1903,7 @@ var isConstructorModern = function isConstructor(argument) {
|
|
|
1943
1903
|
}
|
|
1944
1904
|
};
|
|
1945
1905
|
var isConstructorLegacy = function isConstructor2(argument) {
|
|
1946
|
-
if (!isCallable$7(argument))
|
|
1947
|
-
return false;
|
|
1906
|
+
if (!isCallable$7(argument)) return false;
|
|
1948
1907
|
switch (classof$d(argument)) {
|
|
1949
1908
|
case "AsyncFunction":
|
|
1950
1909
|
case "GeneratorFunction":
|
|
@@ -1974,12 +1933,10 @@ var arraySpeciesConstructor$1 = function(originalArray) {
|
|
|
1974
1933
|
var C;
|
|
1975
1934
|
if (isArray$b(originalArray)) {
|
|
1976
1935
|
C = originalArray.constructor;
|
|
1977
|
-
if (isConstructor$1(C) && (C === $Array$2 || isArray$b(C.prototype)))
|
|
1978
|
-
C = void 0;
|
|
1936
|
+
if (isConstructor$1(C) && (C === $Array$2 || isArray$b(C.prototype))) C = void 0;
|
|
1979
1937
|
else if (isObject$b(C)) {
|
|
1980
1938
|
C = C[SPECIES$3];
|
|
1981
|
-
if (C === null)
|
|
1982
|
-
C = void 0;
|
|
1939
|
+
if (C === null) C = void 0;
|
|
1983
1940
|
}
|
|
1984
1941
|
}
|
|
1985
1942
|
return C === void 0 ? $Array$2 : C;
|
|
@@ -2021,8 +1978,7 @@ var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$k(function() {
|
|
|
2021
1978
|
return array2.concat()[0] !== array2;
|
|
2022
1979
|
});
|
|
2023
1980
|
var isConcatSpreadable = function(O) {
|
|
2024
|
-
if (!isObject$a(O))
|
|
2025
|
-
return false;
|
|
1981
|
+
if (!isObject$a(O)) return false;
|
|
2026
1982
|
var spreadable = O[IS_CONCAT_SPREADABLE];
|
|
2027
1983
|
return spreadable !== void 0 ? !!spreadable : isArray$a(O);
|
|
2028
1984
|
};
|
|
@@ -2039,9 +1995,7 @@ $$K({ target: "Array", proto: true, arity: 1, forced: FORCED$8 }, {
|
|
|
2039
1995
|
if (isConcatSpreadable(E)) {
|
|
2040
1996
|
len = lengthOfArrayLike$a(E);
|
|
2041
1997
|
doesNotExceedSafeInteger$2(n + len);
|
|
2042
|
-
for (k = 0; k < len; k++, n++)
|
|
2043
|
-
if (k in E)
|
|
2044
|
-
createProperty$4(A, n, E[k]);
|
|
1998
|
+
for (k = 0; k < len; k++, n++) if (k in E) createProperty$4(A, n, E[k]);
|
|
2045
1999
|
} else {
|
|
2046
2000
|
doesNotExceedSafeInteger$2(n + 1);
|
|
2047
2001
|
createProperty$4(A, n++, E);
|
|
@@ -2054,8 +2008,7 @@ $$K({ target: "Array", proto: true, arity: 1, forced: FORCED$8 }, {
|
|
|
2054
2008
|
var classof$c = classof$e;
|
|
2055
2009
|
var $String$1 = String;
|
|
2056
2010
|
var toString$a = function(argument) {
|
|
2057
|
-
if (classof$c(argument) === "Symbol")
|
|
2058
|
-
throw new TypeError("Cannot convert a Symbol value to a string");
|
|
2011
|
+
if (classof$c(argument) === "Symbol") throw new TypeError("Cannot convert a Symbol value to a string");
|
|
2059
2012
|
return $String$1(argument);
|
|
2060
2013
|
};
|
|
2061
2014
|
var objectDefineProperties = {};
|
|
@@ -2072,8 +2025,7 @@ objectDefineProperties.f = DESCRIPTORS$c && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
|
|
|
2072
2025
|
var length2 = keys4.length;
|
|
2073
2026
|
var index = 0;
|
|
2074
2027
|
var key;
|
|
2075
|
-
while (length2 > index)
|
|
2076
|
-
definePropertyModule$1.f(O, key = keys4[index++], props[key]);
|
|
2028
|
+
while (length2 > index) definePropertyModule$1.f(O, key = keys4[index++], props[key]);
|
|
2077
2029
|
return O;
|
|
2078
2030
|
};
|
|
2079
2031
|
var getBuiltIn$8 = getBuiltIn$b;
|
|
@@ -2129,8 +2081,7 @@ var NullProtoObject = function() {
|
|
|
2129
2081
|
}
|
|
2130
2082
|
NullProtoObject = typeof document != "undefined" ? document.domain && activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame() : NullProtoObjectViaActiveX(activeXDocument);
|
|
2131
2083
|
var length2 = enumBugKeys$1.length;
|
|
2132
|
-
while (length2--)
|
|
2133
|
-
delete NullProtoObject[PROTOTYPE$1][enumBugKeys$1[length2]];
|
|
2084
|
+
while (length2--) delete NullProtoObject[PROTOTYPE$1][enumBugKeys$1[length2]];
|
|
2134
2085
|
return NullProtoObject();
|
|
2135
2086
|
};
|
|
2136
2087
|
hiddenKeys$4[IE_PROTO$1] = true;
|
|
@@ -2141,8 +2092,7 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
2141
2092
|
result = new EmptyConstructor();
|
|
2142
2093
|
EmptyConstructor[PROTOTYPE$1] = null;
|
|
2143
2094
|
result[IE_PROTO$1] = O;
|
|
2144
|
-
} else
|
|
2145
|
-
result = NullProtoObject();
|
|
2095
|
+
} else result = NullProtoObject();
|
|
2146
2096
|
return Properties === void 0 ? result : definePropertiesModule$1.f(result, Properties);
|
|
2147
2097
|
};
|
|
2148
2098
|
var objectGetOwnPropertyNames = {};
|
|
@@ -2164,8 +2114,7 @@ var arraySliceSimple = function(O, start, end) {
|
|
|
2164
2114
|
var fin = toAbsoluteIndex$3(end === void 0 ? length2 : end, length2);
|
|
2165
2115
|
var result = $Array$1(max$2(fin - k, 0));
|
|
2166
2116
|
var n = 0;
|
|
2167
|
-
for (; k < fin; k++, n++)
|
|
2168
|
-
createProperty$3(result, n, O[k]);
|
|
2117
|
+
for (; k < fin; k++, n++) createProperty$3(result, n, O[k]);
|
|
2169
2118
|
result.length = n;
|
|
2170
2119
|
return result;
|
|
2171
2120
|
};
|
|
@@ -2186,10 +2135,8 @@ objectGetOwnPropertyNamesExternal.f = function getOwnPropertyNames2(it2) {
|
|
|
2186
2135
|
};
|
|
2187
2136
|
var createNonEnumerableProperty$4 = createNonEnumerableProperty$6;
|
|
2188
2137
|
var defineBuiltIn$5 = function(target, key, value, options) {
|
|
2189
|
-
if (options && options.enumerable)
|
|
2190
|
-
|
|
2191
|
-
else
|
|
2192
|
-
createNonEnumerableProperty$4(target, key, value);
|
|
2138
|
+
if (options && options.enumerable) target[key] = value;
|
|
2139
|
+
else createNonEnumerableProperty$4(target, key, value);
|
|
2193
2140
|
return target;
|
|
2194
2141
|
};
|
|
2195
2142
|
var defineProperty$d = objectDefineProperty;
|
|
@@ -2205,10 +2152,9 @@ var wrappedWellKnownSymbolModule$1 = wellKnownSymbolWrapped;
|
|
|
2205
2152
|
var defineProperty$c = objectDefineProperty.f;
|
|
2206
2153
|
var wellKnownSymbolDefine = function(NAME) {
|
|
2207
2154
|
var Symbol2 = path$p.Symbol || (path$p.Symbol = {});
|
|
2208
|
-
if (!hasOwn$d(Symbol2, NAME))
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
});
|
|
2155
|
+
if (!hasOwn$d(Symbol2, NAME)) defineProperty$c(Symbol2, NAME, {
|
|
2156
|
+
value: wrappedWellKnownSymbolModule$1.f(NAME)
|
|
2157
|
+
});
|
|
2212
2158
|
};
|
|
2213
2159
|
var call$6 = functionCall;
|
|
2214
2160
|
var getBuiltIn$7 = getBuiltIn$b;
|
|
@@ -2284,8 +2230,7 @@ if (NATIVE_WEAK_MAP$1 || shared$4.state) {
|
|
|
2284
2230
|
store.has = store.has;
|
|
2285
2231
|
store.set = store.set;
|
|
2286
2232
|
set$3 = function(it2, metadata) {
|
|
2287
|
-
if (store.has(it2))
|
|
2288
|
-
throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
2233
|
+
if (store.has(it2)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
2289
2234
|
metadata.facade = it2;
|
|
2290
2235
|
store.set(it2, metadata);
|
|
2291
2236
|
return metadata;
|
|
@@ -2300,8 +2245,7 @@ if (NATIVE_WEAK_MAP$1 || shared$4.state) {
|
|
|
2300
2245
|
STATE = sharedKey$2("state");
|
|
2301
2246
|
hiddenKeys$2[STATE] = true;
|
|
2302
2247
|
set$3 = function(it2, metadata) {
|
|
2303
|
-
if (hasOwn$b(it2, STATE))
|
|
2304
|
-
throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
2248
|
+
if (hasOwn$b(it2, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
2305
2249
|
metadata.facade = it2;
|
|
2306
2250
|
createNonEnumerableProperty$2(it2, STATE, metadata);
|
|
2307
2251
|
return metadata;
|
|
@@ -2346,33 +2290,33 @@ var createMethod$4 = function(TYPE) {
|
|
|
2346
2290
|
var create5 = specificCreate || arraySpeciesCreate$2;
|
|
2347
2291
|
var target = IS_MAP ? create5($this, length2) : IS_FILTER || IS_FILTER_REJECT ? create5($this, 0) : void 0;
|
|
2348
2292
|
var value, result;
|
|
2349
|
-
for (; length2 > index; index++)
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
if (
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
}
|
|
2293
|
+
for (; length2 > index; index++) if (NO_HOLES || index in self2) {
|
|
2294
|
+
value = self2[index];
|
|
2295
|
+
result = boundFunction(value, index, O);
|
|
2296
|
+
if (TYPE) {
|
|
2297
|
+
if (IS_MAP) target[index] = result;
|
|
2298
|
+
else if (result) switch (TYPE) {
|
|
2299
|
+
case 3:
|
|
2300
|
+
return true;
|
|
2301
|
+
// some
|
|
2302
|
+
case 5:
|
|
2303
|
+
return value;
|
|
2304
|
+
// find
|
|
2305
|
+
case 6:
|
|
2306
|
+
return index;
|
|
2307
|
+
// findIndex
|
|
2308
|
+
case 2:
|
|
2309
|
+
push$4(target, value);
|
|
2310
|
+
}
|
|
2311
|
+
else switch (TYPE) {
|
|
2312
|
+
case 4:
|
|
2313
|
+
return false;
|
|
2314
|
+
// every
|
|
2315
|
+
case 7:
|
|
2316
|
+
push$4(target, value);
|
|
2374
2317
|
}
|
|
2375
2318
|
}
|
|
2319
|
+
}
|
|
2376
2320
|
return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
|
|
2377
2321
|
};
|
|
2378
2322
|
};
|
|
@@ -2460,8 +2404,7 @@ var WellKnownSymbolsStore$1 = shared$3("wks");
|
|
|
2460
2404
|
var USE_SETTER = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
|
|
2461
2405
|
var fallbackDefineProperty = function(O, P, Attributes) {
|
|
2462
2406
|
var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor$1(ObjectPrototype$1, P);
|
|
2463
|
-
if (ObjectPrototypeDescriptor)
|
|
2464
|
-
delete ObjectPrototype$1[P];
|
|
2407
|
+
if (ObjectPrototypeDescriptor) delete ObjectPrototype$1[P];
|
|
2465
2408
|
nativeDefineProperty(O, P, Attributes);
|
|
2466
2409
|
if (ObjectPrototypeDescriptor && O !== ObjectPrototype$1) {
|
|
2467
2410
|
nativeDefineProperty(ObjectPrototype$1, P, ObjectPrototypeDescriptor);
|
|
@@ -2481,24 +2424,20 @@ var wrap = function(tag, description) {
|
|
|
2481
2424
|
tag,
|
|
2482
2425
|
description
|
|
2483
2426
|
});
|
|
2484
|
-
if (!DESCRIPTORS$b)
|
|
2485
|
-
symbol2.description = description;
|
|
2427
|
+
if (!DESCRIPTORS$b) symbol2.description = description;
|
|
2486
2428
|
return symbol2;
|
|
2487
2429
|
};
|
|
2488
2430
|
var $defineProperty = function defineProperty3(O, P, Attributes) {
|
|
2489
|
-
if (O === ObjectPrototype$1)
|
|
2490
|
-
$defineProperty(ObjectPrototypeSymbols, P, Attributes);
|
|
2431
|
+
if (O === ObjectPrototype$1) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
|
|
2491
2432
|
anObject$5(O);
|
|
2492
2433
|
var key = toPropertyKey(P);
|
|
2493
2434
|
anObject$5(Attributes);
|
|
2494
2435
|
if (hasOwn$a(AllSymbols, key)) {
|
|
2495
2436
|
if (!Attributes.enumerable) {
|
|
2496
|
-
if (!hasOwn$a(O, HIDDEN))
|
|
2497
|
-
nativeDefineProperty(O, HIDDEN, createPropertyDescriptor$1(1, {}));
|
|
2437
|
+
if (!hasOwn$a(O, HIDDEN)) nativeDefineProperty(O, HIDDEN, createPropertyDescriptor$1(1, {}));
|
|
2498
2438
|
O[HIDDEN][key] = true;
|
|
2499
2439
|
} else {
|
|
2500
|
-
if (hasOwn$a(O, HIDDEN) && O[HIDDEN][key])
|
|
2501
|
-
O[HIDDEN][key] = false;
|
|
2440
|
+
if (hasOwn$a(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
|
|
2502
2441
|
Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor$1(0, false) });
|
|
2503
2442
|
}
|
|
2504
2443
|
return setSymbolDescriptor(O, key, Attributes);
|
|
@@ -2510,8 +2449,7 @@ var $defineProperties = function defineProperties2(O, Properties) {
|
|
|
2510
2449
|
var properties = toIndexedObject$5(Properties);
|
|
2511
2450
|
var keys4 = objectKeys$1(properties).concat($getOwnPropertySymbols(properties));
|
|
2512
2451
|
$forEach$1(keys4, function(key) {
|
|
2513
|
-
if (!DESCRIPTORS$b || call$5($propertyIsEnumerable$1, properties, key))
|
|
2514
|
-
$defineProperty(O, key, properties[key]);
|
|
2452
|
+
if (!DESCRIPTORS$b || call$5($propertyIsEnumerable$1, properties, key)) $defineProperty(O, key, properties[key]);
|
|
2515
2453
|
});
|
|
2516
2454
|
return O;
|
|
2517
2455
|
};
|
|
@@ -2521,15 +2459,13 @@ var $create = function create2(O, Properties) {
|
|
|
2521
2459
|
var $propertyIsEnumerable$1 = function propertyIsEnumerable2(V) {
|
|
2522
2460
|
var P = toPropertyKey(V);
|
|
2523
2461
|
var enumerable = call$5(nativePropertyIsEnumerable, this, P);
|
|
2524
|
-
if (this === ObjectPrototype$1 && hasOwn$a(AllSymbols, P) && !hasOwn$a(ObjectPrototypeSymbols, P))
|
|
2525
|
-
return false;
|
|
2462
|
+
if (this === ObjectPrototype$1 && hasOwn$a(AllSymbols, P) && !hasOwn$a(ObjectPrototypeSymbols, P)) return false;
|
|
2526
2463
|
return enumerable || !hasOwn$a(this, P) || !hasOwn$a(AllSymbols, P) || hasOwn$a(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;
|
|
2527
2464
|
};
|
|
2528
2465
|
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor2(O, P) {
|
|
2529
2466
|
var it2 = toIndexedObject$5(O);
|
|
2530
2467
|
var key = toPropertyKey(P);
|
|
2531
|
-
if (it2 === ObjectPrototype$1 && hasOwn$a(AllSymbols, key) && !hasOwn$a(ObjectPrototypeSymbols, key))
|
|
2532
|
-
return;
|
|
2468
|
+
if (it2 === ObjectPrototype$1 && hasOwn$a(AllSymbols, key) && !hasOwn$a(ObjectPrototypeSymbols, key)) return;
|
|
2533
2469
|
var descriptor = nativeGetOwnPropertyDescriptor$1(it2, key);
|
|
2534
2470
|
if (descriptor && hasOwn$a(AllSymbols, key) && !(hasOwn$a(it2, HIDDEN) && it2[HIDDEN][key])) {
|
|
2535
2471
|
descriptor.enumerable = true;
|
|
@@ -2540,8 +2476,7 @@ var $getOwnPropertyNames = function getOwnPropertyNames3(O) {
|
|
|
2540
2476
|
var names = nativeGetOwnPropertyNames(toIndexedObject$5(O));
|
|
2541
2477
|
var result = [];
|
|
2542
2478
|
$forEach$1(names, function(key) {
|
|
2543
|
-
if (!hasOwn$a(AllSymbols, key) && !hasOwn$a(hiddenKeys$1, key))
|
|
2544
|
-
push$3(result, key);
|
|
2479
|
+
if (!hasOwn$a(AllSymbols, key) && !hasOwn$a(hiddenKeys$1, key)) push$3(result, key);
|
|
2545
2480
|
});
|
|
2546
2481
|
return result;
|
|
2547
2482
|
};
|
|
@@ -2558,26 +2493,21 @@ var $getOwnPropertySymbols = function(O) {
|
|
|
2558
2493
|
};
|
|
2559
2494
|
if (!NATIVE_SYMBOL$3) {
|
|
2560
2495
|
$Symbol = function Symbol2() {
|
|
2561
|
-
if (isPrototypeOf$k(SymbolPrototype, this))
|
|
2562
|
-
throw new TypeError$1("Symbol is not a constructor");
|
|
2496
|
+
if (isPrototypeOf$k(SymbolPrototype, this)) throw new TypeError$1("Symbol is not a constructor");
|
|
2563
2497
|
var description = !arguments.length || arguments[0] === void 0 ? void 0 : $toString(arguments[0]);
|
|
2564
2498
|
var tag = uid$1(description);
|
|
2565
2499
|
var setter = function(value) {
|
|
2566
|
-
if (this === ObjectPrototype$1)
|
|
2567
|
-
|
|
2568
|
-
if (hasOwn$a(this, HIDDEN) && hasOwn$a(this[HIDDEN], tag))
|
|
2569
|
-
this[HIDDEN][tag] = false;
|
|
2500
|
+
if (this === ObjectPrototype$1) call$5(setter, ObjectPrototypeSymbols, value);
|
|
2501
|
+
if (hasOwn$a(this, HIDDEN) && hasOwn$a(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
|
|
2570
2502
|
var descriptor = createPropertyDescriptor$1(1, value);
|
|
2571
2503
|
try {
|
|
2572
2504
|
setSymbolDescriptor(this, tag, descriptor);
|
|
2573
2505
|
} catch (error) {
|
|
2574
|
-
if (!(error instanceof RangeError$1))
|
|
2575
|
-
throw error;
|
|
2506
|
+
if (!(error instanceof RangeError$1)) throw error;
|
|
2576
2507
|
fallbackDefineProperty(this, tag, descriptor);
|
|
2577
2508
|
}
|
|
2578
2509
|
};
|
|
2579
|
-
if (DESCRIPTORS$b && USE_SETTER)
|
|
2580
|
-
setSymbolDescriptor(ObjectPrototype$1, tag, { configurable: true, set: setter });
|
|
2510
|
+
if (DESCRIPTORS$b && USE_SETTER) setSymbolDescriptor(ObjectPrototype$1, tag, { configurable: true, set: setter });
|
|
2581
2511
|
return wrap(tag, description);
|
|
2582
2512
|
};
|
|
2583
2513
|
SymbolPrototype = $Symbol[PROTOTYPE];
|
|
@@ -2654,8 +2584,7 @@ var SymbolToStringRegistry$1 = shared$2("symbol-to-string-registry");
|
|
|
2654
2584
|
$$I({ target: "Symbol", stat: true, forced: !NATIVE_SYMBOL_REGISTRY$1 }, {
|
|
2655
2585
|
"for": function(key) {
|
|
2656
2586
|
var string2 = toString$8(key);
|
|
2657
|
-
if (hasOwn$9(StringToSymbolRegistry, string2))
|
|
2658
|
-
return StringToSymbolRegistry[string2];
|
|
2587
|
+
if (hasOwn$9(StringToSymbolRegistry, string2)) return StringToSymbolRegistry[string2];
|
|
2659
2588
|
var symbol2 = getBuiltIn$6("Symbol")(string2);
|
|
2660
2589
|
StringToSymbolRegistry[string2] = symbol2;
|
|
2661
2590
|
SymbolToStringRegistry$1[symbol2] = string2;
|
|
@@ -2671,10 +2600,8 @@ var NATIVE_SYMBOL_REGISTRY = symbolRegistryDetection;
|
|
|
2671
2600
|
var SymbolToStringRegistry = shared$1("symbol-to-string-registry");
|
|
2672
2601
|
$$H({ target: "Symbol", stat: true, forced: !NATIVE_SYMBOL_REGISTRY }, {
|
|
2673
2602
|
keyFor: function keyFor(sym) {
|
|
2674
|
-
if (!isSymbol$2(sym))
|
|
2675
|
-
|
|
2676
|
-
if (hasOwn$8(SymbolToStringRegistry, sym))
|
|
2677
|
-
return SymbolToStringRegistry[sym];
|
|
2603
|
+
if (!isSymbol$2(sym)) throw new TypeError(tryToString$3(sym) + " is not a symbol");
|
|
2604
|
+
if (hasOwn$8(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
|
|
2678
2605
|
}
|
|
2679
2606
|
});
|
|
2680
2607
|
var uncurryThis$h = functionUncurryThis;
|
|
@@ -2684,18 +2611,14 @@ var classof$9 = classofRaw$2;
|
|
|
2684
2611
|
var toString$7 = toString$a;
|
|
2685
2612
|
var push$2 = uncurryThis$h([].push);
|
|
2686
2613
|
var getJsonReplacerFunction = function(replacer) {
|
|
2687
|
-
if (isCallable$5(replacer))
|
|
2688
|
-
|
|
2689
|
-
if (!isArray$9(replacer))
|
|
2690
|
-
return;
|
|
2614
|
+
if (isCallable$5(replacer)) return replacer;
|
|
2615
|
+
if (!isArray$9(replacer)) return;
|
|
2691
2616
|
var rawLength = replacer.length;
|
|
2692
2617
|
var keys4 = [];
|
|
2693
2618
|
for (var i = 0; i < rawLength; i++) {
|
|
2694
2619
|
var element = replacer[i];
|
|
2695
|
-
if (typeof element == "string")
|
|
2696
|
-
|
|
2697
|
-
else if (typeof element == "number" || classof$9(element) === "Number" || classof$9(element) === "String")
|
|
2698
|
-
push$2(keys4, toString$7(element));
|
|
2620
|
+
if (typeof element == "string") push$2(keys4, element);
|
|
2621
|
+
else if (typeof element == "number" || classof$9(element) === "Number" || classof$9(element) === "String") push$2(keys4, toString$7(element));
|
|
2699
2622
|
}
|
|
2700
2623
|
var keysLength = keys4.length;
|
|
2701
2624
|
var root = true;
|
|
@@ -2704,11 +2627,8 @@ var getJsonReplacerFunction = function(replacer) {
|
|
|
2704
2627
|
root = false;
|
|
2705
2628
|
return value;
|
|
2706
2629
|
}
|
|
2707
|
-
if (isArray$9(this))
|
|
2708
|
-
|
|
2709
|
-
for (var j = 0; j < keysLength; j++)
|
|
2710
|
-
if (keys4[j] === key)
|
|
2711
|
-
return value;
|
|
2630
|
+
if (isArray$9(this)) return value;
|
|
2631
|
+
for (var j = 0; j < keysLength; j++) if (keys4[j] === key) return value;
|
|
2712
2632
|
};
|
|
2713
2633
|
};
|
|
2714
2634
|
var $$G = _export;
|
|
@@ -2742,13 +2662,10 @@ var ILL_FORMED_UNICODE = fails$i(function() {
|
|
|
2742
2662
|
var stringifyWithSymbolsFix = function(it2, replacer) {
|
|
2743
2663
|
var args = arraySlice$2(arguments);
|
|
2744
2664
|
var $replacer = getReplacerFunction(replacer);
|
|
2745
|
-
if (!isCallable$4($replacer) && (it2 === void 0 || isSymbol$1(it2)))
|
|
2746
|
-
return;
|
|
2665
|
+
if (!isCallable$4($replacer) && (it2 === void 0 || isSymbol$1(it2))) return;
|
|
2747
2666
|
args[1] = function(key, value) {
|
|
2748
|
-
if (isCallable$4($replacer))
|
|
2749
|
-
|
|
2750
|
-
if (!isSymbol$1(value))
|
|
2751
|
-
return value;
|
|
2667
|
+
if (isCallable$4($replacer)) value = call$4($replacer, this, $String(key), value);
|
|
2668
|
+
if (!isSymbol$1(value)) return value;
|
|
2752
2669
|
};
|
|
2753
2670
|
return apply$2($stringify, null, args);
|
|
2754
2671
|
};
|
|
@@ -2826,8 +2743,8 @@ var hasOwn$7 = hasOwnProperty_1;
|
|
|
2826
2743
|
var FunctionPrototype$1 = Function.prototype;
|
|
2827
2744
|
var getDescriptor = DESCRIPTORS$a && Object.getOwnPropertyDescriptor;
|
|
2828
2745
|
var EXISTS = hasOwn$7(FunctionPrototype$1, "name");
|
|
2829
|
-
var PROPER = EXISTS && function something() {
|
|
2830
|
-
}.name === "something";
|
|
2746
|
+
var PROPER = EXISTS && (function something() {
|
|
2747
|
+
}).name === "something";
|
|
2831
2748
|
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$a || DESCRIPTORS$a && getDescriptor(FunctionPrototype$1, "name").configurable);
|
|
2832
2749
|
var functionName = {
|
|
2833
2750
|
EXISTS,
|
|
@@ -2851,8 +2768,7 @@ var $Object$1 = Object;
|
|
|
2851
2768
|
var ObjectPrototype = $Object$1.prototype;
|
|
2852
2769
|
var objectGetPrototypeOf$1 = CORRECT_PROTOTYPE_GETTER$1 ? $Object$1.getPrototypeOf : function(O) {
|
|
2853
2770
|
var object2 = toObject$7(O);
|
|
2854
|
-
if (hasOwn$6(object2, IE_PROTO))
|
|
2855
|
-
return object2[IE_PROTO];
|
|
2771
|
+
if (hasOwn$6(object2, IE_PROTO)) return object2[IE_PROTO];
|
|
2856
2772
|
var constructor = object2.constructor;
|
|
2857
2773
|
if (isCallable$3(constructor) && object2 instanceof constructor) {
|
|
2858
2774
|
return constructor.prototype;
|
|
@@ -2873,22 +2789,18 @@ var PrototypeOfArrayIteratorPrototype;
|
|
|
2873
2789
|
var arrayIterator;
|
|
2874
2790
|
if ([].keys) {
|
|
2875
2791
|
arrayIterator = [].keys();
|
|
2876
|
-
if (!("next" in arrayIterator))
|
|
2877
|
-
BUGGY_SAFARI_ITERATORS$1 = true;
|
|
2792
|
+
if (!("next" in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
|
|
2878
2793
|
else {
|
|
2879
2794
|
PrototypeOfArrayIteratorPrototype = getPrototypeOf$4(getPrototypeOf$4(arrayIterator));
|
|
2880
|
-
if (PrototypeOfArrayIteratorPrototype !== Object.prototype)
|
|
2881
|
-
IteratorPrototype$1 = PrototypeOfArrayIteratorPrototype;
|
|
2795
|
+
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$1 = PrototypeOfArrayIteratorPrototype;
|
|
2882
2796
|
}
|
|
2883
2797
|
}
|
|
2884
2798
|
var NEW_ITERATOR_PROTOTYPE = !isObject$8(IteratorPrototype$1) || fails$f(function() {
|
|
2885
2799
|
var test2 = {};
|
|
2886
2800
|
return IteratorPrototype$1[ITERATOR$5].call(test2) !== test2;
|
|
2887
2801
|
});
|
|
2888
|
-
if (NEW_ITERATOR_PROTOTYPE)
|
|
2889
|
-
|
|
2890
|
-
else
|
|
2891
|
-
IteratorPrototype$1 = create$6(IteratorPrototype$1);
|
|
2802
|
+
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$1 = {};
|
|
2803
|
+
else IteratorPrototype$1 = create$6(IteratorPrototype$1);
|
|
2892
2804
|
if (!isCallable$2(IteratorPrototype$1[ITERATOR$5])) {
|
|
2893
2805
|
defineBuiltIn$2(IteratorPrototype$1, ITERATOR$5, function() {
|
|
2894
2806
|
return this;
|
|
@@ -2937,10 +2849,8 @@ var returnThis = function() {
|
|
|
2937
2849
|
var iteratorDefine = function(Iterable, NAME, IteratorConstructor, next3, DEFAULT, IS_SET, FORCED2) {
|
|
2938
2850
|
createIteratorConstructor(IteratorConstructor, NAME, next3);
|
|
2939
2851
|
var getIterationMethod = function(KIND) {
|
|
2940
|
-
if (KIND === DEFAULT && defaultIterator)
|
|
2941
|
-
|
|
2942
|
-
if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype)
|
|
2943
|
-
return IterablePrototype[KIND];
|
|
2852
|
+
if (KIND === DEFAULT && defaultIterator) return defaultIterator;
|
|
2853
|
+
if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
|
|
2944
2854
|
switch (KIND) {
|
|
2945
2855
|
case KEYS:
|
|
2946
2856
|
return function keys4() {
|
|
@@ -2987,14 +2897,12 @@ var iteratorDefine = function(Iterable, NAME, IteratorConstructor, next3, DEFAUL
|
|
|
2987
2897
|
keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
|
|
2988
2898
|
entries: getIterationMethod(ENTRIES)
|
|
2989
2899
|
};
|
|
2990
|
-
if (FORCED2)
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
|
|
2994
|
-
}
|
|
2900
|
+
if (FORCED2) for (KEY in methods) {
|
|
2901
|
+
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
2902
|
+
defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
|
|
2995
2903
|
}
|
|
2996
|
-
|
|
2997
|
-
|
|
2904
|
+
}
|
|
2905
|
+
else $$E({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
2998
2906
|
}
|
|
2999
2907
|
if (FORCED2 && IterablePrototype[ITERATOR$4] !== defaultIterator) {
|
|
3000
2908
|
defineBuiltIn$1(IterablePrototype, ITERATOR$4, defaultIterator, { name: DEFAULT });
|
|
@@ -3125,17 +3033,14 @@ $$D({ target: "Array", proto: true, forced: !HAS_SPECIES_SUPPORT$3 }, {
|
|
|
3125
3033
|
Constructor = void 0;
|
|
3126
3034
|
} else if (isObject$7(Constructor)) {
|
|
3127
3035
|
Constructor = Constructor[SPECIES$1];
|
|
3128
|
-
if (Constructor === null)
|
|
3129
|
-
Constructor = void 0;
|
|
3036
|
+
if (Constructor === null) Constructor = void 0;
|
|
3130
3037
|
}
|
|
3131
3038
|
if (Constructor === $Array || Constructor === void 0) {
|
|
3132
3039
|
return nativeSlice(O, k, fin);
|
|
3133
3040
|
}
|
|
3134
3041
|
}
|
|
3135
3042
|
result = new (Constructor === void 0 ? $Array : Constructor)(max$1(fin - k, 0));
|
|
3136
|
-
for (n = 0; k < fin; k++, n++)
|
|
3137
|
-
if (k in O)
|
|
3138
|
-
createProperty$2(result, n, O[k]);
|
|
3043
|
+
for (n = 0; k < fin; k++, n++) if (k in O) createProperty$2(result, n, O[k]);
|
|
3139
3044
|
result.length = n;
|
|
3140
3045
|
return result;
|
|
3141
3046
|
}
|
|
@@ -3287,8 +3192,7 @@ var nativeReverse = uncurryThis$d([].reverse);
|
|
|
3287
3192
|
var test$1 = [1, 2];
|
|
3288
3193
|
$$w({ target: "Array", proto: true, forced: String(test$1) === String(test$1.reverse()) }, {
|
|
3289
3194
|
reverse: function reverse() {
|
|
3290
|
-
if (isArray$3(this))
|
|
3291
|
-
this.length = this.length;
|
|
3195
|
+
if (isArray$3(this)) this.length = this.length;
|
|
3292
3196
|
return nativeReverse(this);
|
|
3293
3197
|
}
|
|
3294
3198
|
});
|
|
@@ -3309,15 +3213,14 @@ var DESCRIPTORS$9 = descriptors;
|
|
|
3309
3213
|
var isArray$2 = isArray$c;
|
|
3310
3214
|
var $TypeError$7 = TypeError;
|
|
3311
3215
|
var getOwnPropertyDescriptor$4 = Object.getOwnPropertyDescriptor;
|
|
3312
|
-
var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$9 && !function() {
|
|
3313
|
-
if (this !== void 0)
|
|
3314
|
-
return true;
|
|
3216
|
+
var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$9 && !(function() {
|
|
3217
|
+
if (this !== void 0) return true;
|
|
3315
3218
|
try {
|
|
3316
3219
|
Object.defineProperty([], "length", { writable: false }).length = 1;
|
|
3317
3220
|
} catch (error) {
|
|
3318
3221
|
return error instanceof TypeError;
|
|
3319
3222
|
}
|
|
3320
|
-
}();
|
|
3223
|
+
})();
|
|
3321
3224
|
var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function(O, length2) {
|
|
3322
3225
|
if (isArray$2(O) && !getOwnPropertyDescriptor$4(O, "length").writable) {
|
|
3323
3226
|
throw new $TypeError$7("Cannot set read only .length");
|
|
@@ -3329,8 +3232,7 @@ var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function(O, length2) {
|
|
|
3329
3232
|
var tryToString$2 = tryToString$5;
|
|
3330
3233
|
var $TypeError$6 = TypeError;
|
|
3331
3234
|
var deletePropertyOrThrow$2 = function(O, P) {
|
|
3332
|
-
if (!delete O[P])
|
|
3333
|
-
throw new $TypeError$6("Cannot delete property " + tryToString$2(P) + " of " + tryToString$2(O));
|
|
3235
|
+
if (!delete O[P]) throw new $TypeError$6("Cannot delete property " + tryToString$2(P) + " of " + tryToString$2(O));
|
|
3334
3236
|
};
|
|
3335
3237
|
var $$v = _export;
|
|
3336
3238
|
var toObject$5 = toObject$d;
|
|
@@ -3366,29 +3268,23 @@ $$v({ target: "Array", proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
|
|
|
3366
3268
|
A = arraySpeciesCreate$1(O, actualDeleteCount);
|
|
3367
3269
|
for (k = 0; k < actualDeleteCount; k++) {
|
|
3368
3270
|
from = actualStart + k;
|
|
3369
|
-
if (from in O)
|
|
3370
|
-
createProperty$1(A, k, O[from]);
|
|
3271
|
+
if (from in O) createProperty$1(A, k, O[from]);
|
|
3371
3272
|
}
|
|
3372
3273
|
A.length = actualDeleteCount;
|
|
3373
3274
|
if (insertCount < actualDeleteCount) {
|
|
3374
3275
|
for (k = actualStart; k < len - actualDeleteCount; k++) {
|
|
3375
3276
|
from = k + actualDeleteCount;
|
|
3376
3277
|
to = k + insertCount;
|
|
3377
|
-
if (from in O)
|
|
3378
|
-
|
|
3379
|
-
else
|
|
3380
|
-
deletePropertyOrThrow$1(O, to);
|
|
3278
|
+
if (from in O) O[to] = O[from];
|
|
3279
|
+
else deletePropertyOrThrow$1(O, to);
|
|
3381
3280
|
}
|
|
3382
|
-
for (k = len; k > len - actualDeleteCount + insertCount; k--)
|
|
3383
|
-
deletePropertyOrThrow$1(O, k - 1);
|
|
3281
|
+
for (k = len; k > len - actualDeleteCount + insertCount; k--) deletePropertyOrThrow$1(O, k - 1);
|
|
3384
3282
|
} else if (insertCount > actualDeleteCount) {
|
|
3385
3283
|
for (k = len - actualDeleteCount; k > actualStart; k--) {
|
|
3386
3284
|
from = k + actualDeleteCount - 1;
|
|
3387
3285
|
to = k + insertCount - 1;
|
|
3388
|
-
if (from in O)
|
|
3389
|
-
|
|
3390
|
-
else
|
|
3391
|
-
deletePropertyOrThrow$1(O, to);
|
|
3286
|
+
if (from in O) O[to] = O[from];
|
|
3287
|
+
else deletePropertyOrThrow$1(O, to);
|
|
3392
3288
|
}
|
|
3393
3289
|
}
|
|
3394
3290
|
for (k = 0; k < insertCount; k++) {
|
|
@@ -3480,8 +3376,7 @@ var ArrayPrototype$d = Array.prototype;
|
|
|
3480
3376
|
var StringPrototype = String.prototype;
|
|
3481
3377
|
var includes$2 = function(it2) {
|
|
3482
3378
|
var own = it2.includes;
|
|
3483
|
-
if (it2 === ArrayPrototype$d || isPrototypeOf$e(ArrayPrototype$d, it2) && own === ArrayPrototype$d.includes)
|
|
3484
|
-
return arrayMethod;
|
|
3379
|
+
if (it2 === ArrayPrototype$d || isPrototypeOf$e(ArrayPrototype$d, it2) && own === ArrayPrototype$d.includes) return arrayMethod;
|
|
3485
3380
|
if (typeof it2 == "string" || it2 === StringPrototype || isPrototypeOf$e(StringPrototype, it2) && own === StringPrototype.includes) {
|
|
3486
3381
|
return stringMethod;
|
|
3487
3382
|
}
|
|
@@ -3609,10 +3504,8 @@ var rtrim = RegExp("(^|[^" + whitespaces$2 + "])[" + whitespaces$2 + "]+$");
|
|
|
3609
3504
|
var createMethod$2 = function(TYPE) {
|
|
3610
3505
|
return function($this) {
|
|
3611
3506
|
var string2 = toString$5(requireObjectCoercible$1($this));
|
|
3612
|
-
if (TYPE & 1)
|
|
3613
|
-
|
|
3614
|
-
if (TYPE & 2)
|
|
3615
|
-
string2 = replace(string2, rtrim, "$1");
|
|
3507
|
+
if (TYPE & 1) string2 = replace(string2, ltrim, "");
|
|
3508
|
+
if (TYPE & 2) string2 = replace(string2, rtrim, "$1");
|
|
3616
3509
|
return string2;
|
|
3617
3510
|
};
|
|
3618
3511
|
};
|
|
@@ -3699,8 +3592,7 @@ var create$1 = create$2;
|
|
|
3699
3592
|
var _Object$create = /* @__PURE__ */ getDefaultExportFromCjs(create$1);
|
|
3700
3593
|
var path$f = path$u;
|
|
3701
3594
|
var apply$1 = functionApply;
|
|
3702
|
-
if (!path$f.JSON)
|
|
3703
|
-
path$f.JSON = { stringify: JSON.stringify };
|
|
3595
|
+
if (!path$f.JSON) path$f.JSON = { stringify: JSON.stringify };
|
|
3704
3596
|
var stringify$2 = function stringify(it2, replacer, space) {
|
|
3705
3597
|
return apply$1(path$f.JSON.stringify, null, arguments);
|
|
3706
3598
|
};
|
|
@@ -3711,8 +3603,7 @@ var _JSON$stringify = /* @__PURE__ */ getDefaultExportFromCjs(stringify2);
|
|
|
3711
3603
|
var engineIsBun = typeof Bun == "function" && Bun && typeof Bun.version == "string";
|
|
3712
3604
|
var $TypeError$4 = TypeError;
|
|
3713
3605
|
var validateArgumentsLength$1 = function(passed, required) {
|
|
3714
|
-
if (passed < required)
|
|
3715
|
-
throw new $TypeError$4("Not enough arguments");
|
|
3606
|
+
if (passed < required) throw new $TypeError$4("Not enough arguments");
|
|
3716
3607
|
return passed;
|
|
3717
3608
|
};
|
|
3718
3609
|
var global$8 = global$n;
|
|
@@ -3723,10 +3614,10 @@ var USER_AGENT = engineUserAgent;
|
|
|
3723
3614
|
var arraySlice$1 = arraySlice$5;
|
|
3724
3615
|
var validateArgumentsLength = validateArgumentsLength$1;
|
|
3725
3616
|
var Function$1 = global$8.Function;
|
|
3726
|
-
var WRAP = /MSIE .\./.test(USER_AGENT) || ENGINE_IS_BUN && function() {
|
|
3617
|
+
var WRAP = /MSIE .\./.test(USER_AGENT) || ENGINE_IS_BUN && (function() {
|
|
3727
3618
|
var version2 = global$8.Bun.version.split(".");
|
|
3728
3619
|
return version2.length < 3 || version2[0] === "0" && (version2[1] < 3 || version2[1] === "3" && version2[2] === "0");
|
|
3729
|
-
}();
|
|
3620
|
+
})();
|
|
3730
3621
|
var schedulersFix$2 = function(scheduler, hasTimeArg) {
|
|
3731
3622
|
var firstParamIndex = hasTimeArg ? 2 : 1;
|
|
3732
3623
|
return WRAP ? function(handler, timeout) {
|
|
@@ -3767,8 +3658,7 @@ var arrayFill = function fill(value) {
|
|
|
3767
3658
|
var index = toAbsoluteIndex(argumentsLength > 1 ? arguments[1] : void 0, length2);
|
|
3768
3659
|
var end = argumentsLength > 2 ? arguments[2] : void 0;
|
|
3769
3660
|
var endPos = end === void 0 ? length2 : toAbsoluteIndex(end, length2);
|
|
3770
|
-
while (endPos > index)
|
|
3771
|
-
O[index++] = value;
|
|
3661
|
+
while (endPos > index) O[index++] = value;
|
|
3772
3662
|
return O;
|
|
3773
3663
|
};
|
|
3774
3664
|
var $$k = _export;
|
|
@@ -3954,7 +3844,7 @@ function cleanTouchActions(actions) {
|
|
|
3954
3844
|
}
|
|
3955
3845
|
return TOUCH_ACTION_AUTO;
|
|
3956
3846
|
}
|
|
3957
|
-
var TouchAction = /* @__PURE__ */ function() {
|
|
3847
|
+
var TouchAction = /* @__PURE__ */ (function() {
|
|
3958
3848
|
function TouchAction2(manager, value) {
|
|
3959
3849
|
this.manager = manager;
|
|
3960
3850
|
this.set(value);
|
|
@@ -4012,7 +3902,7 @@ var TouchAction = /* @__PURE__ */ function() {
|
|
|
4012
3902
|
srcEvent.preventDefault();
|
|
4013
3903
|
};
|
|
4014
3904
|
return TouchAction2;
|
|
4015
|
-
}();
|
|
3905
|
+
})();
|
|
4016
3906
|
function hasParent(node, parent2) {
|
|
4017
3907
|
while (node) {
|
|
4018
3908
|
if (node === parent2) {
|
|
@@ -4220,7 +4110,7 @@ function getWindowForElement(element) {
|
|
|
4220
4110
|
var doc = element.ownerDocument || element;
|
|
4221
4111
|
return doc.defaultView || doc.parentWindow || window;
|
|
4222
4112
|
}
|
|
4223
|
-
var Input = /* @__PURE__ */ function() {
|
|
4113
|
+
var Input = /* @__PURE__ */ (function() {
|
|
4224
4114
|
function Input2(manager, callback) {
|
|
4225
4115
|
var self2 = this;
|
|
4226
4116
|
this.manager = manager;
|
|
@@ -4248,7 +4138,7 @@ var Input = /* @__PURE__ */ function() {
|
|
|
4248
4138
|
this.evWin && removeEventListeners(getWindowForElement(this.element), this.evWin, this.domHandler);
|
|
4249
4139
|
};
|
|
4250
4140
|
return Input2;
|
|
4251
|
-
}();
|
|
4141
|
+
})();
|
|
4252
4142
|
function inArray(src, find2, findByKey) {
|
|
4253
4143
|
if (src.indexOf && !findByKey) {
|
|
4254
4144
|
return src.indexOf(find2);
|
|
@@ -4283,7 +4173,7 @@ if (win.MSPointerEvent && !win.PointerEvent) {
|
|
|
4283
4173
|
POINTER_ELEMENT_EVENTS = "MSPointerDown";
|
|
4284
4174
|
POINTER_WINDOW_EVENTS = "MSPointerMove MSPointerUp MSPointerCancel";
|
|
4285
4175
|
}
|
|
4286
|
-
var PointerEventInput = /* @__PURE__ */ function(_Input) {
|
|
4176
|
+
var PointerEventInput = /* @__PURE__ */ (function(_Input) {
|
|
4287
4177
|
_inheritsLoose(PointerEventInput2, _Input);
|
|
4288
4178
|
function PointerEventInput2() {
|
|
4289
4179
|
var _this;
|
|
@@ -4326,7 +4216,7 @@ var PointerEventInput = /* @__PURE__ */ function(_Input) {
|
|
|
4326
4216
|
}
|
|
4327
4217
|
};
|
|
4328
4218
|
return PointerEventInput2;
|
|
4329
|
-
}(Input);
|
|
4219
|
+
})(Input);
|
|
4330
4220
|
function toArray(obj) {
|
|
4331
4221
|
return Array.prototype.slice.call(obj, 0);
|
|
4332
4222
|
}
|
|
@@ -4360,7 +4250,7 @@ var TOUCH_INPUT_MAP = {
|
|
|
4360
4250
|
touchcancel: INPUT_CANCEL
|
|
4361
4251
|
};
|
|
4362
4252
|
var TOUCH_TARGET_EVENTS = "touchstart touchmove touchend touchcancel";
|
|
4363
|
-
var TouchInput = /* @__PURE__ */ function(_Input) {
|
|
4253
|
+
var TouchInput = /* @__PURE__ */ (function(_Input) {
|
|
4364
4254
|
_inheritsLoose(TouchInput2, _Input);
|
|
4365
4255
|
function TouchInput2() {
|
|
4366
4256
|
var _this;
|
|
@@ -4384,7 +4274,7 @@ var TouchInput = /* @__PURE__ */ function(_Input) {
|
|
|
4384
4274
|
});
|
|
4385
4275
|
};
|
|
4386
4276
|
return TouchInput2;
|
|
4387
|
-
}(Input);
|
|
4277
|
+
})(Input);
|
|
4388
4278
|
function getTouches(ev, type) {
|
|
4389
4279
|
var allTouches = toArray(ev.touches);
|
|
4390
4280
|
var targetIds = this.targetIds;
|
|
@@ -4433,7 +4323,7 @@ var MOUSE_INPUT_MAP = {
|
|
|
4433
4323
|
};
|
|
4434
4324
|
var MOUSE_ELEMENT_EVENTS = "mousedown";
|
|
4435
4325
|
var MOUSE_WINDOW_EVENTS = "mousemove mouseup";
|
|
4436
|
-
var MouseInput = /* @__PURE__ */ function(_Input) {
|
|
4326
|
+
var MouseInput = /* @__PURE__ */ (function(_Input) {
|
|
4437
4327
|
_inheritsLoose(MouseInput2, _Input);
|
|
4438
4328
|
function MouseInput2() {
|
|
4439
4329
|
var _this;
|
|
@@ -4467,7 +4357,7 @@ var MouseInput = /* @__PURE__ */ function(_Input) {
|
|
|
4467
4357
|
});
|
|
4468
4358
|
};
|
|
4469
4359
|
return MouseInput2;
|
|
4470
|
-
}(Input);
|
|
4360
|
+
})(Input);
|
|
4471
4361
|
var DEDUP_TIMEOUT = 2500;
|
|
4472
4362
|
var DEDUP_DISTANCE = 25;
|
|
4473
4363
|
function setLastTouch(eventData) {
|
|
@@ -4509,8 +4399,8 @@ function isSyntheticEvent(eventData) {
|
|
|
4509
4399
|
}
|
|
4510
4400
|
return false;
|
|
4511
4401
|
}
|
|
4512
|
-
var TouchMouseInput = /* @__PURE__ */ function() {
|
|
4513
|
-
var TouchMouseInput2 = /* @__PURE__ */ function(_Input) {
|
|
4402
|
+
var TouchMouseInput = /* @__PURE__ */ (function() {
|
|
4403
|
+
var TouchMouseInput2 = /* @__PURE__ */ (function(_Input) {
|
|
4514
4404
|
_inheritsLoose(TouchMouseInput3, _Input);
|
|
4515
4405
|
function TouchMouseInput3(_manager, callback) {
|
|
4516
4406
|
var _this;
|
|
@@ -4540,9 +4430,9 @@ var TouchMouseInput = /* @__PURE__ */ function() {
|
|
|
4540
4430
|
this.mouse.destroy();
|
|
4541
4431
|
};
|
|
4542
4432
|
return TouchMouseInput3;
|
|
4543
|
-
}(Input);
|
|
4433
|
+
})(Input);
|
|
4544
4434
|
return TouchMouseInput2;
|
|
4545
|
-
}();
|
|
4435
|
+
})();
|
|
4546
4436
|
function createInputInstance(manager) {
|
|
4547
4437
|
var Type;
|
|
4548
4438
|
var inputClass = manager.options.inputClass;
|
|
@@ -4596,7 +4486,7 @@ function stateStr(state) {
|
|
|
4596
4486
|
}
|
|
4597
4487
|
return "";
|
|
4598
4488
|
}
|
|
4599
|
-
var Recognizer = /* @__PURE__ */ function() {
|
|
4489
|
+
var Recognizer = /* @__PURE__ */ (function() {
|
|
4600
4490
|
function Recognizer2(options) {
|
|
4601
4491
|
if (options === void 0) {
|
|
4602
4492
|
options = {};
|
|
@@ -4720,8 +4610,8 @@ var Recognizer = /* @__PURE__ */ function() {
|
|
|
4720
4610
|
_proto.reset = function reset() {
|
|
4721
4611
|
};
|
|
4722
4612
|
return Recognizer2;
|
|
4723
|
-
}();
|
|
4724
|
-
var TapRecognizer = /* @__PURE__ */ function(_Recognizer) {
|
|
4613
|
+
})();
|
|
4614
|
+
var TapRecognizer = /* @__PURE__ */ (function(_Recognizer) {
|
|
4725
4615
|
_inheritsLoose(TapRecognizer2, _Recognizer);
|
|
4726
4616
|
function TapRecognizer2(options) {
|
|
4727
4617
|
var _this;
|
|
@@ -4807,8 +4697,8 @@ var TapRecognizer = /* @__PURE__ */ function(_Recognizer) {
|
|
|
4807
4697
|
}
|
|
4808
4698
|
};
|
|
4809
4699
|
return TapRecognizer2;
|
|
4810
|
-
}(Recognizer);
|
|
4811
|
-
var AttrRecognizer = /* @__PURE__ */ function(_Recognizer) {
|
|
4700
|
+
})(Recognizer);
|
|
4701
|
+
var AttrRecognizer = /* @__PURE__ */ (function(_Recognizer) {
|
|
4812
4702
|
_inheritsLoose(AttrRecognizer2, _Recognizer);
|
|
4813
4703
|
function AttrRecognizer2(options) {
|
|
4814
4704
|
if (options === void 0) {
|
|
@@ -4841,7 +4731,7 @@ var AttrRecognizer = /* @__PURE__ */ function(_Recognizer) {
|
|
|
4841
4731
|
return STATE_FAILED;
|
|
4842
4732
|
};
|
|
4843
4733
|
return AttrRecognizer2;
|
|
4844
|
-
}(Recognizer);
|
|
4734
|
+
})(Recognizer);
|
|
4845
4735
|
function directionStr(direction) {
|
|
4846
4736
|
if (direction === DIRECTION_DOWN) {
|
|
4847
4737
|
return "down";
|
|
@@ -4854,7 +4744,7 @@ function directionStr(direction) {
|
|
|
4854
4744
|
}
|
|
4855
4745
|
return "";
|
|
4856
4746
|
}
|
|
4857
|
-
var PanRecognizer = /* @__PURE__ */ function(_AttrRecognizer) {
|
|
4747
|
+
var PanRecognizer = /* @__PURE__ */ (function(_AttrRecognizer) {
|
|
4858
4748
|
_inheritsLoose(PanRecognizer2, _AttrRecognizer);
|
|
4859
4749
|
function PanRecognizer2(options) {
|
|
4860
4750
|
var _this;
|
|
@@ -4918,8 +4808,8 @@ var PanRecognizer = /* @__PURE__ */ function(_AttrRecognizer) {
|
|
|
4918
4808
|
_AttrRecognizer.prototype.emit.call(this, input);
|
|
4919
4809
|
};
|
|
4920
4810
|
return PanRecognizer2;
|
|
4921
|
-
}(AttrRecognizer);
|
|
4922
|
-
var SwipeRecognizer = /* @__PURE__ */ function(_AttrRecognizer) {
|
|
4811
|
+
})(AttrRecognizer);
|
|
4812
|
+
var SwipeRecognizer = /* @__PURE__ */ (function(_AttrRecognizer) {
|
|
4923
4813
|
_inheritsLoose(SwipeRecognizer2, _AttrRecognizer);
|
|
4924
4814
|
function SwipeRecognizer2(options) {
|
|
4925
4815
|
if (options === void 0) {
|
|
@@ -4957,8 +4847,8 @@ var SwipeRecognizer = /* @__PURE__ */ function(_AttrRecognizer) {
|
|
|
4957
4847
|
this.manager.emit(this.options.event, input);
|
|
4958
4848
|
};
|
|
4959
4849
|
return SwipeRecognizer2;
|
|
4960
|
-
}(AttrRecognizer);
|
|
4961
|
-
var PinchRecognizer = /* @__PURE__ */ function(_AttrRecognizer) {
|
|
4850
|
+
})(AttrRecognizer);
|
|
4851
|
+
var PinchRecognizer = /* @__PURE__ */ (function(_AttrRecognizer) {
|
|
4962
4852
|
_inheritsLoose(PinchRecognizer2, _AttrRecognizer);
|
|
4963
4853
|
function PinchRecognizer2(options) {
|
|
4964
4854
|
if (options === void 0) {
|
|
@@ -4985,8 +4875,8 @@ var PinchRecognizer = /* @__PURE__ */ function(_AttrRecognizer) {
|
|
|
4985
4875
|
_AttrRecognizer.prototype.emit.call(this, input);
|
|
4986
4876
|
};
|
|
4987
4877
|
return PinchRecognizer2;
|
|
4988
|
-
}(AttrRecognizer);
|
|
4989
|
-
var RotateRecognizer = /* @__PURE__ */ function(_AttrRecognizer) {
|
|
4878
|
+
})(AttrRecognizer);
|
|
4879
|
+
var RotateRecognizer = /* @__PURE__ */ (function(_AttrRecognizer) {
|
|
4990
4880
|
_inheritsLoose(RotateRecognizer2, _AttrRecognizer);
|
|
4991
4881
|
function RotateRecognizer2(options) {
|
|
4992
4882
|
if (options === void 0) {
|
|
@@ -5006,8 +4896,8 @@ var RotateRecognizer = /* @__PURE__ */ function(_AttrRecognizer) {
|
|
|
5006
4896
|
return _AttrRecognizer.prototype.attrTest.call(this, input) && (Math.abs(input.rotation) > this.options.threshold || this.state & STATE_BEGAN);
|
|
5007
4897
|
};
|
|
5008
4898
|
return RotateRecognizer2;
|
|
5009
|
-
}(AttrRecognizer);
|
|
5010
|
-
var PressRecognizer = /* @__PURE__ */ function(_Recognizer) {
|
|
4899
|
+
})(AttrRecognizer);
|
|
4900
|
+
var PressRecognizer = /* @__PURE__ */ (function(_Recognizer) {
|
|
5011
4901
|
_inheritsLoose(PressRecognizer2, _Recognizer);
|
|
5012
4902
|
function PressRecognizer2(options) {
|
|
5013
4903
|
var _this;
|
|
@@ -5064,7 +4954,7 @@ var PressRecognizer = /* @__PURE__ */ function(_Recognizer) {
|
|
|
5064
4954
|
}
|
|
5065
4955
|
};
|
|
5066
4956
|
return PressRecognizer2;
|
|
5067
|
-
}(Recognizer);
|
|
4957
|
+
})(Recognizer);
|
|
5068
4958
|
var defaults = {
|
|
5069
4959
|
/**
|
|
5070
4960
|
* @private
|
|
@@ -5197,7 +5087,7 @@ function triggerDomEvent(event, data2) {
|
|
|
5197
5087
|
gestureEvent.gesture = data2;
|
|
5198
5088
|
data2.target.dispatchEvent(gestureEvent);
|
|
5199
5089
|
}
|
|
5200
|
-
var Manager = /* @__PURE__ */ function() {
|
|
5090
|
+
var Manager = /* @__PURE__ */ (function() {
|
|
5201
5091
|
function Manager2(element, options) {
|
|
5202
5092
|
var _this = this;
|
|
5203
5093
|
this.options = assign$1({}, defaults, options || {});
|
|
@@ -5353,7 +5243,7 @@ var Manager = /* @__PURE__ */ function() {
|
|
|
5353
5243
|
this.element = null;
|
|
5354
5244
|
};
|
|
5355
5245
|
return Manager2;
|
|
5356
|
-
}();
|
|
5246
|
+
})();
|
|
5357
5247
|
var SINGLE_TOUCH_INPUT_MAP = {
|
|
5358
5248
|
touchstart: INPUT_START,
|
|
5359
5249
|
touchmove: INPUT_MOVE,
|
|
@@ -5362,7 +5252,7 @@ var SINGLE_TOUCH_INPUT_MAP = {
|
|
|
5362
5252
|
};
|
|
5363
5253
|
var SINGLE_TOUCH_TARGET_EVENTS = "touchstart";
|
|
5364
5254
|
var SINGLE_TOUCH_WINDOW_EVENTS = "touchstart touchmove touchend touchcancel";
|
|
5365
|
-
var SingleTouchInput = /* @__PURE__ */ function(_Input) {
|
|
5255
|
+
var SingleTouchInput = /* @__PURE__ */ (function(_Input) {
|
|
5366
5256
|
_inheritsLoose(SingleTouchInput2, _Input);
|
|
5367
5257
|
function SingleTouchInput2() {
|
|
5368
5258
|
var _this;
|
|
@@ -5394,7 +5284,7 @@ var SingleTouchInput = /* @__PURE__ */ function(_Input) {
|
|
|
5394
5284
|
});
|
|
5395
5285
|
};
|
|
5396
5286
|
return SingleTouchInput2;
|
|
5397
|
-
}(Input);
|
|
5287
|
+
})(Input);
|
|
5398
5288
|
function normalizeSingleTouches(ev, type) {
|
|
5399
5289
|
var all = toArray(ev.touches);
|
|
5400
5290
|
var changed = toArray(ev.changedTouches);
|
|
@@ -5444,7 +5334,7 @@ function bindFn(fn, context) {
|
|
|
5444
5334
|
return fn.apply(context, arguments);
|
|
5445
5335
|
};
|
|
5446
5336
|
}
|
|
5447
|
-
var Hammer$2 = /* @__PURE__ */ function() {
|
|
5337
|
+
var Hammer$2 = /* @__PURE__ */ (function() {
|
|
5448
5338
|
var Hammer2 = (
|
|
5449
5339
|
/**
|
|
5450
5340
|
* @private
|
|
@@ -5518,7 +5408,7 @@ var Hammer$2 = /* @__PURE__ */ function() {
|
|
|
5518
5408
|
preset
|
|
5519
5409
|
});
|
|
5520
5410
|
return Hammer2;
|
|
5521
|
-
}();
|
|
5411
|
+
})();
|
|
5522
5412
|
Hammer$2.defaults;
|
|
5523
5413
|
var RealHammer = Hammer$2;
|
|
5524
5414
|
var DELETE = _Symbol$1("DELETE");
|
|
@@ -5549,8 +5439,7 @@ function deepObjectAssignNonentry() {
|
|
|
5549
5439
|
return a;
|
|
5550
5440
|
}
|
|
5551
5441
|
for (const prop of _Reflect$ownKeys(b)) {
|
|
5552
|
-
if (!Object.prototype.propertyIsEnumerable.call(b, prop))
|
|
5553
|
-
;
|
|
5442
|
+
if (!Object.prototype.propertyIsEnumerable.call(b, prop)) ;
|
|
5554
5443
|
else if (b[prop] === DELETE) {
|
|
5555
5444
|
delete a[prop];
|
|
5556
5445
|
} else if (a[prop] !== null && b[prop] !== null && typeof a[prop] === "object" && typeof b[prop] === "object" && !_Array$isArray(a[prop]) && !_Array$isArray(b[prop])) {
|
|
@@ -8083,10 +7972,8 @@ var Validator$1 = class Validator {
|
|
|
8083
7972
|
* @static
|
|
8084
7973
|
*/
|
|
8085
7974
|
static levenshteinDistance(a, b) {
|
|
8086
|
-
if (a.length === 0)
|
|
8087
|
-
|
|
8088
|
-
if (b.length === 0)
|
|
8089
|
-
return a.length;
|
|
7975
|
+
if (a.length === 0) return b.length;
|
|
7976
|
+
if (b.length === 0) return a.length;
|
|
8090
7977
|
const matrix = [];
|
|
8091
7978
|
let i;
|
|
8092
7979
|
for (i = 0; i <= b.length; i++) {
|
|
@@ -9388,8 +9275,7 @@ var CachedImage = class {
|
|
|
9388
9275
|
* Called when the image has been successfully loaded.
|
|
9389
9276
|
*/
|
|
9390
9277
|
init() {
|
|
9391
|
-
if (this.initialized())
|
|
9392
|
-
return;
|
|
9278
|
+
if (this.initialized()) return;
|
|
9393
9279
|
this.src = this.image.src;
|
|
9394
9280
|
const w = this.image.width;
|
|
9395
9281
|
const h = this.image.height;
|
|
@@ -9455,8 +9341,7 @@ var CachedImage = class {
|
|
|
9455
9341
|
* @param {number} height
|
|
9456
9342
|
*/
|
|
9457
9343
|
drawImageAtPosition(ctx, factor, left, top, width, height) {
|
|
9458
|
-
if (!this.initialized())
|
|
9459
|
-
return;
|
|
9344
|
+
if (!this.initialized()) return;
|
|
9460
9345
|
if (factor > 2) {
|
|
9461
9346
|
factor *= 0.5;
|
|
9462
9347
|
let iterations = 0;
|
|
@@ -9489,8 +9374,7 @@ var Images = class {
|
|
|
9489
9374
|
* @param {Image} imageToLoadBrokenUrlOn The image object
|
|
9490
9375
|
*/
|
|
9491
9376
|
_tryloadBrokenUrl(url, brokenUrl, imageToLoadBrokenUrlOn) {
|
|
9492
|
-
if (url === void 0 || imageToLoadBrokenUrlOn === void 0)
|
|
9493
|
-
return;
|
|
9377
|
+
if (url === void 0 || imageToLoadBrokenUrlOn === void 0) return;
|
|
9494
9378
|
if (brokenUrl === void 0) {
|
|
9495
9379
|
console.warn("No broken url image defined");
|
|
9496
9380
|
return;
|
|
@@ -9517,8 +9401,7 @@ var Images = class {
|
|
|
9517
9401
|
*/
|
|
9518
9402
|
load(url, brokenUrl) {
|
|
9519
9403
|
const cachedImage = this.images[url];
|
|
9520
|
-
if (cachedImage)
|
|
9521
|
-
return cachedImage;
|
|
9404
|
+
if (cachedImage) return cachedImage;
|
|
9522
9405
|
const img = new CachedImage();
|
|
9523
9406
|
this.images[url] = img;
|
|
9524
9407
|
img.image.onload = () => {
|
|
@@ -9554,8 +9437,7 @@ var fails$8 = fails$v;
|
|
|
9554
9437
|
var arrayBufferNonExtensible = fails$8(function() {
|
|
9555
9438
|
if (typeof ArrayBuffer == "function") {
|
|
9556
9439
|
var buffer = new ArrayBuffer(8);
|
|
9557
|
-
if (Object.isExtensible(buffer))
|
|
9558
|
-
Object.defineProperty(buffer, "a", { value: 8 });
|
|
9440
|
+
if (Object.isExtensible(buffer)) Object.defineProperty(buffer, "a", { value: 8 });
|
|
9559
9441
|
}
|
|
9560
9442
|
});
|
|
9561
9443
|
var fails$7 = fails$v;
|
|
@@ -9567,10 +9449,8 @@ var FAILS_ON_PRIMITIVES$1 = fails$7(function() {
|
|
|
9567
9449
|
$isExtensible(1);
|
|
9568
9450
|
});
|
|
9569
9451
|
var objectIsExtensible = FAILS_ON_PRIMITIVES$1 || ARRAY_BUFFER_NON_EXTENSIBLE ? function isExtensible(it2) {
|
|
9570
|
-
if (!isObject$4(it2))
|
|
9571
|
-
|
|
9572
|
-
if (ARRAY_BUFFER_NON_EXTENSIBLE && classof$5(it2) === "ArrayBuffer")
|
|
9573
|
-
return false;
|
|
9452
|
+
if (!isObject$4(it2)) return false;
|
|
9453
|
+
if (ARRAY_BUFFER_NON_EXTENSIBLE && classof$5(it2) === "ArrayBuffer") return false;
|
|
9574
9454
|
return $isExtensible ? $isExtensible(it2) : true;
|
|
9575
9455
|
} : $isExtensible;
|
|
9576
9456
|
var fails$6 = fails$v;
|
|
@@ -9600,30 +9480,24 @@ var setMetadata = function(it2) {
|
|
|
9600
9480
|
} });
|
|
9601
9481
|
};
|
|
9602
9482
|
var fastKey$1 = function(it2, create5) {
|
|
9603
|
-
if (!isObject$3(it2))
|
|
9604
|
-
return typeof it2 == "symbol" ? it2 : (typeof it2 == "string" ? "S" : "P") + it2;
|
|
9483
|
+
if (!isObject$3(it2)) return typeof it2 == "symbol" ? it2 : (typeof it2 == "string" ? "S" : "P") + it2;
|
|
9605
9484
|
if (!hasOwn$4(it2, METADATA$1)) {
|
|
9606
|
-
if (!isExtensible$1(it2))
|
|
9607
|
-
|
|
9608
|
-
if (!create5)
|
|
9609
|
-
return "E";
|
|
9485
|
+
if (!isExtensible$1(it2)) return "F";
|
|
9486
|
+
if (!create5) return "E";
|
|
9610
9487
|
setMetadata(it2);
|
|
9611
9488
|
}
|
|
9612
9489
|
return it2[METADATA$1].objectID;
|
|
9613
9490
|
};
|
|
9614
9491
|
var getWeakData$1 = function(it2, create5) {
|
|
9615
9492
|
if (!hasOwn$4(it2, METADATA$1)) {
|
|
9616
|
-
if (!isExtensible$1(it2))
|
|
9617
|
-
|
|
9618
|
-
if (!create5)
|
|
9619
|
-
return false;
|
|
9493
|
+
if (!isExtensible$1(it2)) return true;
|
|
9494
|
+
if (!create5) return false;
|
|
9620
9495
|
setMetadata(it2);
|
|
9621
9496
|
}
|
|
9622
9497
|
return it2[METADATA$1].weakData;
|
|
9623
9498
|
};
|
|
9624
9499
|
var onFreeze = function(it2) {
|
|
9625
|
-
if (FREEZING$1 && REQUIRED && isExtensible$1(it2) && !hasOwn$4(it2, METADATA$1))
|
|
9626
|
-
setMetadata(it2);
|
|
9500
|
+
if (FREEZING$1 && REQUIRED && isExtensible$1(it2) && !hasOwn$4(it2, METADATA$1)) setMetadata(it2);
|
|
9627
9501
|
return it2;
|
|
9628
9502
|
};
|
|
9629
9503
|
var enable = function() {
|
|
@@ -9672,8 +9546,7 @@ var Iterators = iterators;
|
|
|
9672
9546
|
var wellKnownSymbol$3 = wellKnownSymbol$l;
|
|
9673
9547
|
var ITERATOR$1 = wellKnownSymbol$3("iterator");
|
|
9674
9548
|
var getIteratorMethod$2 = function(it2) {
|
|
9675
|
-
if (!isNullOrUndefined$3(it2))
|
|
9676
|
-
return getMethod$1(it2, ITERATOR$1) || getMethod$1(it2, "@@iterator") || Iterators[classof$4(it2)];
|
|
9549
|
+
if (!isNullOrUndefined$3(it2)) return getMethod$1(it2, ITERATOR$1) || getMethod$1(it2, "@@iterator") || Iterators[classof$4(it2)];
|
|
9677
9550
|
};
|
|
9678
9551
|
var call$2 = functionCall;
|
|
9679
9552
|
var aCallable$3 = aCallable$7;
|
|
@@ -9683,8 +9556,7 @@ var getIteratorMethod$1 = getIteratorMethod$2;
|
|
|
9683
9556
|
var $TypeError$3 = TypeError;
|
|
9684
9557
|
var getIterator$7 = function(argument, usingIterator) {
|
|
9685
9558
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
|
9686
|
-
if (aCallable$3(iteratorMethod))
|
|
9687
|
-
return anObject$3(call$2(iteratorMethod, argument));
|
|
9559
|
+
if (aCallable$3(iteratorMethod)) return anObject$3(call$2(iteratorMethod, argument));
|
|
9688
9560
|
throw new $TypeError$3(tryToString$1(argument) + " is not iterable");
|
|
9689
9561
|
};
|
|
9690
9562
|
var call$1 = functionCall;
|
|
@@ -9696,8 +9568,7 @@ var iteratorClose$1 = function(iterator2, kind, value) {
|
|
|
9696
9568
|
try {
|
|
9697
9569
|
innerResult = getMethod(iterator2, "return");
|
|
9698
9570
|
if (!innerResult) {
|
|
9699
|
-
if (kind === "throw")
|
|
9700
|
-
throw value;
|
|
9571
|
+
if (kind === "throw") throw value;
|
|
9701
9572
|
return value;
|
|
9702
9573
|
}
|
|
9703
9574
|
innerResult = call$1(innerResult, iterator2);
|
|
@@ -9705,10 +9576,8 @@ var iteratorClose$1 = function(iterator2, kind, value) {
|
|
|
9705
9576
|
innerError = true;
|
|
9706
9577
|
innerResult = error;
|
|
9707
9578
|
}
|
|
9708
|
-
if (kind === "throw")
|
|
9709
|
-
|
|
9710
|
-
if (innerError)
|
|
9711
|
-
throw innerResult;
|
|
9579
|
+
if (kind === "throw") throw value;
|
|
9580
|
+
if (innerError) throw innerResult;
|
|
9712
9581
|
anObject$2(innerResult);
|
|
9713
9582
|
return value;
|
|
9714
9583
|
};
|
|
@@ -9737,8 +9606,7 @@ var iterate$3 = function(iterable, unboundFunction, options) {
|
|
|
9737
9606
|
var fn = bind$2(unboundFunction, that);
|
|
9738
9607
|
var iterator2, iterFn, index, length2, result, next3, step;
|
|
9739
9608
|
var stop = function(condition) {
|
|
9740
|
-
if (iterator2)
|
|
9741
|
-
iteratorClose(iterator2, "normal", condition);
|
|
9609
|
+
if (iterator2) iteratorClose(iterator2, "normal", condition);
|
|
9742
9610
|
return new Result(true, condition);
|
|
9743
9611
|
};
|
|
9744
9612
|
var callFn = function(value) {
|
|
@@ -9754,13 +9622,11 @@ var iterate$3 = function(iterable, unboundFunction, options) {
|
|
|
9754
9622
|
iterator2 = iterable;
|
|
9755
9623
|
} else {
|
|
9756
9624
|
iterFn = getIteratorMethod(iterable);
|
|
9757
|
-
if (!iterFn)
|
|
9758
|
-
throw new $TypeError$2(tryToString(iterable) + " is not iterable");
|
|
9625
|
+
if (!iterFn) throw new $TypeError$2(tryToString(iterable) + " is not iterable");
|
|
9759
9626
|
if (isArrayIteratorMethod(iterFn)) {
|
|
9760
9627
|
for (index = 0, length2 = lengthOfArrayLike$4(iterable); length2 > index; index++) {
|
|
9761
9628
|
result = callFn(iterable[index]);
|
|
9762
|
-
if (result && isPrototypeOf$9(ResultPrototype, result))
|
|
9763
|
-
return result;
|
|
9629
|
+
if (result && isPrototypeOf$9(ResultPrototype, result)) return result;
|
|
9764
9630
|
}
|
|
9765
9631
|
return new Result(false);
|
|
9766
9632
|
}
|
|
@@ -9773,16 +9639,14 @@ var iterate$3 = function(iterable, unboundFunction, options) {
|
|
|
9773
9639
|
} catch (error) {
|
|
9774
9640
|
iteratorClose(iterator2, "throw", error);
|
|
9775
9641
|
}
|
|
9776
|
-
if (typeof result == "object" && result && isPrototypeOf$9(ResultPrototype, result))
|
|
9777
|
-
return result;
|
|
9642
|
+
if (typeof result == "object" && result && isPrototypeOf$9(ResultPrototype, result)) return result;
|
|
9778
9643
|
}
|
|
9779
9644
|
return new Result(false);
|
|
9780
9645
|
};
|
|
9781
9646
|
var isPrototypeOf$8 = objectIsPrototypeOf;
|
|
9782
9647
|
var $TypeError$1 = TypeError;
|
|
9783
9648
|
var anInstance$3 = function(it2, Prototype) {
|
|
9784
|
-
if (isPrototypeOf$8(Prototype, it2))
|
|
9785
|
-
return it2;
|
|
9649
|
+
if (isPrototypeOf$8(Prototype, it2)) return it2;
|
|
9786
9650
|
throw new $TypeError$1("Incorrect invocation");
|
|
9787
9651
|
};
|
|
9788
9652
|
var $$i = _export;
|
|
@@ -9821,8 +9685,7 @@ var collection$3 = function(CONSTRUCTOR_NAME, wrapper2, common) {
|
|
|
9821
9685
|
type: CONSTRUCTOR_NAME,
|
|
9822
9686
|
collection: new NativeConstructor()
|
|
9823
9687
|
});
|
|
9824
|
-
if (!isNullOrUndefined$2(iterable))
|
|
9825
|
-
iterate$2(iterable, target[ADDER], { that: target, AS_ENTRIES: IS_MAP });
|
|
9688
|
+
if (!isNullOrUndefined$2(iterable)) iterate$2(iterable, target[ADDER], { that: target, AS_ENTRIES: IS_MAP });
|
|
9826
9689
|
});
|
|
9827
9690
|
var Prototype = Constructor.prototype;
|
|
9828
9691
|
var getInternalState2 = internalStateGetterFor$2(CONSTRUCTOR_NAME);
|
|
@@ -9831,8 +9694,7 @@ var collection$3 = function(CONSTRUCTOR_NAME, wrapper2, common) {
|
|
|
9831
9694
|
if (KEY in NativePrototype && !(IS_WEAK && KEY === "clear")) {
|
|
9832
9695
|
createNonEnumerableProperty(Prototype, KEY, function(a, b) {
|
|
9833
9696
|
var collection2 = getInternalState2(this).collection;
|
|
9834
|
-
if (!IS_ADDER && IS_WEAK && !isObject$2(a))
|
|
9835
|
-
return KEY === "get" ? void 0 : false;
|
|
9697
|
+
if (!IS_ADDER && IS_WEAK && !isObject$2(a)) return KEY === "get" ? void 0 : false;
|
|
9836
9698
|
var result = collection2[KEY](a === 0 ? 0 : a, b);
|
|
9837
9699
|
return IS_ADDER ? this : result;
|
|
9838
9700
|
});
|
|
@@ -9848,17 +9710,14 @@ var collection$3 = function(CONSTRUCTOR_NAME, wrapper2, common) {
|
|
|
9848
9710
|
setToStringTag(Constructor, CONSTRUCTOR_NAME, false, true);
|
|
9849
9711
|
exported[CONSTRUCTOR_NAME] = Constructor;
|
|
9850
9712
|
$$i({ global: true, forced: true }, exported);
|
|
9851
|
-
if (!IS_WEAK)
|
|
9852
|
-
common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);
|
|
9713
|
+
if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);
|
|
9853
9714
|
return Constructor;
|
|
9854
9715
|
};
|
|
9855
9716
|
var defineBuiltIn = defineBuiltIn$5;
|
|
9856
9717
|
var defineBuiltIns$3 = function(target, src, options) {
|
|
9857
9718
|
for (var key in src) {
|
|
9858
|
-
if (options && options.unsafe && target[key])
|
|
9859
|
-
|
|
9860
|
-
else
|
|
9861
|
-
defineBuiltIn(target, key, src[key], options);
|
|
9719
|
+
if (options && options.unsafe && target[key]) target[key] = src[key];
|
|
9720
|
+
else defineBuiltIn(target, key, src[key], options);
|
|
9862
9721
|
}
|
|
9863
9722
|
return target;
|
|
9864
9723
|
};
|
|
@@ -9904,10 +9763,8 @@ var collectionStrong$2 = {
|
|
|
9904
9763
|
last: void 0,
|
|
9905
9764
|
size: 0
|
|
9906
9765
|
});
|
|
9907
|
-
if (!DESCRIPTORS$4)
|
|
9908
|
-
|
|
9909
|
-
if (!isNullOrUndefined$1(iterable))
|
|
9910
|
-
iterate$1(iterable, that[ADDER], { that, AS_ENTRIES: IS_MAP });
|
|
9766
|
+
if (!DESCRIPTORS$4) that.size = 0;
|
|
9767
|
+
if (!isNullOrUndefined$1(iterable)) iterate$1(iterable, that[ADDER], { that, AS_ENTRIES: IS_MAP });
|
|
9911
9768
|
});
|
|
9912
9769
|
var Prototype = Constructor.prototype;
|
|
9913
9770
|
var getInternalState2 = internalStateGetterFor$1(CONSTRUCTOR_NAME);
|
|
@@ -9926,16 +9783,11 @@ var collectionStrong$2 = {
|
|
|
9926
9783
|
next: void 0,
|
|
9927
9784
|
removed: false
|
|
9928
9785
|
};
|
|
9929
|
-
if (!state.first)
|
|
9930
|
-
|
|
9931
|
-
if (
|
|
9932
|
-
|
|
9933
|
-
if (
|
|
9934
|
-
state.size++;
|
|
9935
|
-
else
|
|
9936
|
-
that.size++;
|
|
9937
|
-
if (index !== "F")
|
|
9938
|
-
state.index[index] = entry;
|
|
9786
|
+
if (!state.first) state.first = entry;
|
|
9787
|
+
if (previous) previous.next = entry;
|
|
9788
|
+
if (DESCRIPTORS$4) state.size++;
|
|
9789
|
+
else that.size++;
|
|
9790
|
+
if (index !== "F") state.index[index] = entry;
|
|
9939
9791
|
}
|
|
9940
9792
|
return that;
|
|
9941
9793
|
};
|
|
@@ -9943,11 +9795,9 @@ var collectionStrong$2 = {
|
|
|
9943
9795
|
var state = getInternalState2(that);
|
|
9944
9796
|
var index = fastKey(key);
|
|
9945
9797
|
var entry;
|
|
9946
|
-
if (index !== "F")
|
|
9947
|
-
return state.index[index];
|
|
9798
|
+
if (index !== "F") return state.index[index];
|
|
9948
9799
|
for (entry = state.first; entry; entry = entry.next) {
|
|
9949
|
-
if (entry.key === key)
|
|
9950
|
-
return entry;
|
|
9800
|
+
if (entry.key === key) return entry;
|
|
9951
9801
|
}
|
|
9952
9802
|
};
|
|
9953
9803
|
defineBuiltIns$2(Prototype, {
|
|
@@ -9961,16 +9811,13 @@ var collectionStrong$2 = {
|
|
|
9961
9811
|
var entry = state.first;
|
|
9962
9812
|
while (entry) {
|
|
9963
9813
|
entry.removed = true;
|
|
9964
|
-
if (entry.previous)
|
|
9965
|
-
entry.previous = entry.previous.next = void 0;
|
|
9814
|
+
if (entry.previous) entry.previous = entry.previous.next = void 0;
|
|
9966
9815
|
delete data2[entry.index];
|
|
9967
9816
|
entry = entry.next;
|
|
9968
9817
|
}
|
|
9969
9818
|
state.first = state.last = void 0;
|
|
9970
|
-
if (DESCRIPTORS$4)
|
|
9971
|
-
|
|
9972
|
-
else
|
|
9973
|
-
that.size = 0;
|
|
9819
|
+
if (DESCRIPTORS$4) state.size = 0;
|
|
9820
|
+
else that.size = 0;
|
|
9974
9821
|
},
|
|
9975
9822
|
// `{ Map, Set }.prototype.delete(key)` methods
|
|
9976
9823
|
// https://tc39.es/ecma262/#sec-map.prototype.delete
|
|
@@ -9984,18 +9831,12 @@ var collectionStrong$2 = {
|
|
|
9984
9831
|
var prev = entry.previous;
|
|
9985
9832
|
delete state.index[entry.index];
|
|
9986
9833
|
entry.removed = true;
|
|
9987
|
-
if (prev)
|
|
9988
|
-
|
|
9989
|
-
if (next3
|
|
9990
|
-
|
|
9991
|
-
if (state.
|
|
9992
|
-
|
|
9993
|
-
if (state.last === entry)
|
|
9994
|
-
state.last = prev;
|
|
9995
|
-
if (DESCRIPTORS$4)
|
|
9996
|
-
state.size--;
|
|
9997
|
-
else
|
|
9998
|
-
that.size--;
|
|
9834
|
+
if (prev) prev.next = next3;
|
|
9835
|
+
if (next3) next3.previous = prev;
|
|
9836
|
+
if (state.first === entry) state.first = next3;
|
|
9837
|
+
if (state.last === entry) state.last = prev;
|
|
9838
|
+
if (DESCRIPTORS$4) state.size--;
|
|
9839
|
+
else that.size--;
|
|
9999
9840
|
}
|
|
10000
9841
|
return !!entry;
|
|
10001
9842
|
},
|
|
@@ -10008,8 +9849,7 @@ var collectionStrong$2 = {
|
|
|
10008
9849
|
var entry;
|
|
10009
9850
|
while (entry = entry ? entry.next : state.first) {
|
|
10010
9851
|
boundFunction(entry.value, entry.key, this);
|
|
10011
|
-
while (entry && entry.removed)
|
|
10012
|
-
entry = entry.previous;
|
|
9852
|
+
while (entry && entry.removed) entry = entry.previous;
|
|
10013
9853
|
}
|
|
10014
9854
|
},
|
|
10015
9855
|
// `{ Map, Set}.prototype.has(key)` methods
|
|
@@ -10038,13 +9878,12 @@ var collectionStrong$2 = {
|
|
|
10038
9878
|
return define(this, value = value === 0 ? 0 : value, value);
|
|
10039
9879
|
}
|
|
10040
9880
|
});
|
|
10041
|
-
if (DESCRIPTORS$4)
|
|
10042
|
-
|
|
10043
|
-
|
|
10044
|
-
|
|
10045
|
-
|
|
10046
|
-
|
|
10047
|
-
});
|
|
9881
|
+
if (DESCRIPTORS$4) defineBuiltInAccessor(Prototype, "size", {
|
|
9882
|
+
configurable: true,
|
|
9883
|
+
get: function() {
|
|
9884
|
+
return getInternalState2(this).size;
|
|
9885
|
+
}
|
|
9886
|
+
});
|
|
10048
9887
|
return Constructor;
|
|
10049
9888
|
},
|
|
10050
9889
|
setStrong: function(Constructor, CONSTRUCTOR_NAME, IS_MAP) {
|
|
@@ -10063,16 +9902,13 @@ var collectionStrong$2 = {
|
|
|
10063
9902
|
var state = getInternalIteratorState(this);
|
|
10064
9903
|
var kind = state.kind;
|
|
10065
9904
|
var entry = state.last;
|
|
10066
|
-
while (entry && entry.removed)
|
|
10067
|
-
entry = entry.previous;
|
|
9905
|
+
while (entry && entry.removed) entry = entry.previous;
|
|
10068
9906
|
if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) {
|
|
10069
9907
|
state.target = void 0;
|
|
10070
9908
|
return createIterResultObject$1(void 0, true);
|
|
10071
9909
|
}
|
|
10072
|
-
if (kind === "keys")
|
|
10073
|
-
|
|
10074
|
-
if (kind === "values")
|
|
10075
|
-
return createIterResultObject$1(entry.value, false);
|
|
9910
|
+
if (kind === "keys") return createIterResultObject$1(entry.key, false);
|
|
9911
|
+
if (kind === "values") return createIterResultObject$1(entry.value, false);
|
|
10076
9912
|
return createIterResultObject$1([entry.key, entry.value], false);
|
|
10077
9913
|
}, IS_MAP ? "entries" : "values", !IS_MAP, true);
|
|
10078
9914
|
setSpecies(CONSTRUCTOR_NAME);
|
|
@@ -10098,8 +9934,7 @@ var createMethod$1 = function(CONVERT_TO_STRING) {
|
|
|
10098
9934
|
var position = toIntegerOrInfinity(pos);
|
|
10099
9935
|
var size = S.length;
|
|
10100
9936
|
var first2, second;
|
|
10101
|
-
if (position < 0 || position >= size)
|
|
10102
|
-
return CONVERT_TO_STRING ? "" : void 0;
|
|
9937
|
+
if (position < 0 || position >= size) return CONVERT_TO_STRING ? "" : void 0;
|
|
10103
9938
|
first2 = charCodeAt(S, position);
|
|
10104
9939
|
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;
|
|
10105
9940
|
};
|
|
@@ -10131,8 +9966,7 @@ defineIterator(String, "String", function(iterated) {
|
|
|
10131
9966
|
var string2 = state.string;
|
|
10132
9967
|
var index = state.index;
|
|
10133
9968
|
var point;
|
|
10134
|
-
if (index >= string2.length)
|
|
10135
|
-
return createIterResultObject(void 0, true);
|
|
9969
|
+
if (index >= string2.length) return createIterResultObject(void 0, true);
|
|
10136
9970
|
point = charAt$1(string2, index);
|
|
10137
9971
|
state.index += point.length;
|
|
10138
9972
|
return createIterResultObject(point, false);
|
|
@@ -10560,8 +10394,7 @@ var Object$4 = path$9.Object;
|
|
|
10560
10394
|
var getOwnPropertyDescriptor$2 = getOwnPropertyDescriptor$3.exports = function getOwnPropertyDescriptor4(it2, key) {
|
|
10561
10395
|
return Object$4.getOwnPropertyDescriptor(it2, key);
|
|
10562
10396
|
};
|
|
10563
|
-
if (Object$4.getOwnPropertyDescriptor.sham)
|
|
10564
|
-
getOwnPropertyDescriptor$2.sham = true;
|
|
10397
|
+
if (Object$4.getOwnPropertyDescriptor.sham) getOwnPropertyDescriptor$2.sham = true;
|
|
10565
10398
|
var getOwnPropertyDescriptorExports = getOwnPropertyDescriptor$3.exports;
|
|
10566
10399
|
var parent$s = getOwnPropertyDescriptorExports;
|
|
10567
10400
|
var getOwnPropertyDescriptor$1 = parent$s;
|
|
@@ -10583,8 +10416,7 @@ $$d({ target: "Object", stat: true, sham: !DESCRIPTORS$2 }, {
|
|
|
10583
10416
|
var key, descriptor;
|
|
10584
10417
|
while (keys4.length > index) {
|
|
10585
10418
|
descriptor = getOwnPropertyDescriptor6(O, key = keys4[index++]);
|
|
10586
|
-
if (descriptor !== void 0)
|
|
10587
|
-
createProperty(result, key, descriptor);
|
|
10419
|
+
if (descriptor !== void 0) createProperty(result, key, descriptor);
|
|
10588
10420
|
}
|
|
10589
10421
|
return result;
|
|
10590
10422
|
}
|
|
@@ -10607,8 +10439,7 @@ var Object$3 = path$7.Object;
|
|
|
10607
10439
|
var defineProperties$2 = defineProperties$4.exports = function defineProperties3(T, D) {
|
|
10608
10440
|
return Object$3.defineProperties(T, D);
|
|
10609
10441
|
};
|
|
10610
|
-
if (Object$3.defineProperties.sham)
|
|
10611
|
-
defineProperties$2.sham = true;
|
|
10442
|
+
if (Object$3.defineProperties.sham) defineProperties$2.sham = true;
|
|
10612
10443
|
var definePropertiesExports = defineProperties$4.exports;
|
|
10613
10444
|
var parent$q = definePropertiesExports;
|
|
10614
10445
|
var defineProperties$1 = parent$q;
|
|
@@ -10626,8 +10457,7 @@ var Object$2 = path$6.Object;
|
|
|
10626
10457
|
var defineProperty$6 = defineProperty$8.exports = function defineProperty4(it2, key, desc) {
|
|
10627
10458
|
return Object$2.defineProperty(it2, key, desc);
|
|
10628
10459
|
};
|
|
10629
|
-
if (Object$2.defineProperty.sham)
|
|
10630
|
-
defineProperty$6.sham = true;
|
|
10460
|
+
if (Object$2.defineProperty.sham) defineProperty$6.sham = true;
|
|
10631
10461
|
var definePropertyExports = defineProperty$8.exports;
|
|
10632
10462
|
var parent$p = definePropertyExports;
|
|
10633
10463
|
var defineProperty$5 = parent$p;
|
|
@@ -10684,8 +10514,7 @@ var WellKnownSymbolsStore = shared("wks");
|
|
|
10684
10514
|
for (i = 0, symbolKeys = getOwnPropertyNames$4(Symbol$2), symbolKeysLength = symbolKeys.length; i < symbolKeysLength; i++) {
|
|
10685
10515
|
try {
|
|
10686
10516
|
symbolKey = symbolKeys[i];
|
|
10687
|
-
if (isSymbol(Symbol$2[symbolKey]))
|
|
10688
|
-
wellKnownSymbol(symbolKey);
|
|
10517
|
+
if (isSymbol(Symbol$2[symbolKey])) wellKnownSymbol(symbolKey);
|
|
10689
10518
|
} catch (error) {
|
|
10690
10519
|
}
|
|
10691
10520
|
}
|
|
@@ -10694,13 +10523,11 @@ var i;
|
|
|
10694
10523
|
var symbolKeys;
|
|
10695
10524
|
var symbolKeysLength;
|
|
10696
10525
|
var symbolIsWellKnown = function isWellKnownSymbol(value) {
|
|
10697
|
-
if ($isWellKnownSymbol && $isWellKnownSymbol(value))
|
|
10698
|
-
return true;
|
|
10526
|
+
if ($isWellKnownSymbol && $isWellKnownSymbol(value)) return true;
|
|
10699
10527
|
try {
|
|
10700
10528
|
var symbol2 = thisSymbolValue(value);
|
|
10701
10529
|
for (var j = 0, keys4 = getOwnPropertyNames$4(WellKnownSymbolsStore), keysLength = keys4.length; j < keysLength; j++) {
|
|
10702
|
-
if (WellKnownSymbolsStore[keys4[j]] == symbol2)
|
|
10703
|
-
return true;
|
|
10530
|
+
if (WellKnownSymbolsStore[keys4[j]] == symbol2) return true;
|
|
10704
10531
|
}
|
|
10705
10532
|
} catch (error) {
|
|
10706
10533
|
}
|
|
@@ -10764,13 +10591,11 @@ var toPrimitive$1 = parent$f;
|
|
|
10764
10591
|
var toPrimitive = toPrimitive$1;
|
|
10765
10592
|
var _Symbol$toPrimitive = /* @__PURE__ */ getDefaultExportFromCjs(toPrimitive);
|
|
10766
10593
|
function _toPrimitive(input, hint) {
|
|
10767
|
-
if (_typeof(input) !== "object" || input === null)
|
|
10768
|
-
return input;
|
|
10594
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
10769
10595
|
var prim = input[_Symbol$toPrimitive];
|
|
10770
10596
|
if (prim !== void 0) {
|
|
10771
10597
|
var res = prim.call(input, hint || "default");
|
|
10772
|
-
if (_typeof(res) !== "object")
|
|
10773
|
-
return res;
|
|
10598
|
+
if (_typeof(res) !== "object") return res;
|
|
10774
10599
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
10775
10600
|
}
|
|
10776
10601
|
return (hint === "string" ? String : Number)(input);
|
|
@@ -10806,22 +10631,20 @@ var createMethod = function(IS_RIGHT) {
|
|
|
10806
10631
|
var length2 = lengthOfArrayLike$3(O);
|
|
10807
10632
|
var index = IS_RIGHT ? length2 - 1 : 0;
|
|
10808
10633
|
var i = IS_RIGHT ? -1 : 1;
|
|
10809
|
-
if (argumentsLength < 2)
|
|
10810
|
-
|
|
10811
|
-
|
|
10812
|
-
memo = self2[index];
|
|
10813
|
-
index += i;
|
|
10814
|
-
break;
|
|
10815
|
-
}
|
|
10634
|
+
if (argumentsLength < 2) while (true) {
|
|
10635
|
+
if (index in self2) {
|
|
10636
|
+
memo = self2[index];
|
|
10816
10637
|
index += i;
|
|
10817
|
-
|
|
10818
|
-
throw new $TypeError("Reduce of empty array with no initial value");
|
|
10819
|
-
}
|
|
10638
|
+
break;
|
|
10820
10639
|
}
|
|
10821
|
-
|
|
10822
|
-
if (index
|
|
10823
|
-
|
|
10640
|
+
index += i;
|
|
10641
|
+
if (IS_RIGHT ? index < 0 : length2 <= index) {
|
|
10642
|
+
throw new $TypeError("Reduce of empty array with no initial value");
|
|
10824
10643
|
}
|
|
10644
|
+
}
|
|
10645
|
+
for (; IS_RIGHT ? index >= 0 : length2 > index; index += i) if (index in self2) {
|
|
10646
|
+
memo = callbackfn(memo, self2[index], index, O);
|
|
10647
|
+
}
|
|
10825
10648
|
return memo;
|
|
10826
10649
|
};
|
|
10827
10650
|
};
|
|
@@ -10956,8 +10779,7 @@ var insertionSort = function(array2, comparefn) {
|
|
|
10956
10779
|
while (j && comparefn(array2[j - 1], element) > 0) {
|
|
10957
10780
|
array2[j] = array2[--j];
|
|
10958
10781
|
}
|
|
10959
|
-
if (j !== i++)
|
|
10960
|
-
array2[j] = element;
|
|
10782
|
+
if (j !== i++) array2[j] = element;
|
|
10961
10783
|
}
|
|
10962
10784
|
return array2;
|
|
10963
10785
|
};
|
|
@@ -11005,14 +10827,10 @@ var FAILS_ON_NULL = fails$3(function() {
|
|
|
11005
10827
|
});
|
|
11006
10828
|
var STRICT_METHOD$1 = arrayMethodIsStrict$1("sort");
|
|
11007
10829
|
var STABLE_SORT = !fails$3(function() {
|
|
11008
|
-
if (V8)
|
|
11009
|
-
|
|
11010
|
-
if (
|
|
11011
|
-
|
|
11012
|
-
if (IE_OR_EDGE)
|
|
11013
|
-
return true;
|
|
11014
|
-
if (WEBKIT)
|
|
11015
|
-
return WEBKIT < 603;
|
|
10830
|
+
if (V8) return V8 < 70;
|
|
10831
|
+
if (FF && FF > 3) return;
|
|
10832
|
+
if (IE_OR_EDGE) return true;
|
|
10833
|
+
if (WEBKIT) return WEBKIT < 603;
|
|
11016
10834
|
var result = "";
|
|
11017
10835
|
var code, chr, value, index;
|
|
11018
10836
|
for (code = 65; code < 76; code++) {
|
|
@@ -11040,44 +10858,35 @@ var STABLE_SORT = !fails$3(function() {
|
|
|
11040
10858
|
});
|
|
11041
10859
|
for (index = 0; index < test.length; index++) {
|
|
11042
10860
|
chr = test[index].k.charAt(0);
|
|
11043
|
-
if (result.charAt(result.length - 1) !== chr)
|
|
11044
|
-
result += chr;
|
|
10861
|
+
if (result.charAt(result.length - 1) !== chr) result += chr;
|
|
11045
10862
|
}
|
|
11046
10863
|
return result !== "DGBEFHACIJK";
|
|
11047
10864
|
});
|
|
11048
10865
|
var FORCED$2 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD$1 || !STABLE_SORT;
|
|
11049
10866
|
var getSortCompare = function(comparefn) {
|
|
11050
10867
|
return function(x, y) {
|
|
11051
|
-
if (y === void 0)
|
|
11052
|
-
|
|
11053
|
-
if (
|
|
11054
|
-
return 1;
|
|
11055
|
-
if (comparefn !== void 0)
|
|
11056
|
-
return +comparefn(x, y) || 0;
|
|
10868
|
+
if (y === void 0) return -1;
|
|
10869
|
+
if (x === void 0) return 1;
|
|
10870
|
+
if (comparefn !== void 0) return +comparefn(x, y) || 0;
|
|
11057
10871
|
return toString$1(x) > toString$1(y) ? 1 : -1;
|
|
11058
10872
|
};
|
|
11059
10873
|
};
|
|
11060
10874
|
$$4({ target: "Array", proto: true, forced: FORCED$2 }, {
|
|
11061
10875
|
sort: function sort(comparefn) {
|
|
11062
|
-
if (comparefn !== void 0)
|
|
11063
|
-
aCallable(comparefn);
|
|
10876
|
+
if (comparefn !== void 0) aCallable(comparefn);
|
|
11064
10877
|
var array2 = toObject(this);
|
|
11065
|
-
if (STABLE_SORT)
|
|
11066
|
-
return comparefn === void 0 ? nativeSort(array2) : nativeSort(array2, comparefn);
|
|
10878
|
+
if (STABLE_SORT) return comparefn === void 0 ? nativeSort(array2) : nativeSort(array2, comparefn);
|
|
11067
10879
|
var items = [];
|
|
11068
10880
|
var arrayLength = lengthOfArrayLike(array2);
|
|
11069
10881
|
var itemsLength, index;
|
|
11070
10882
|
for (index = 0; index < arrayLength; index++) {
|
|
11071
|
-
if (index in array2)
|
|
11072
|
-
push(items, array2[index]);
|
|
10883
|
+
if (index in array2) push(items, array2[index]);
|
|
11073
10884
|
}
|
|
11074
10885
|
internalSort(items, getSortCompare(comparefn));
|
|
11075
10886
|
itemsLength = lengthOfArrayLike(items);
|
|
11076
10887
|
index = 0;
|
|
11077
|
-
while (index < itemsLength)
|
|
11078
|
-
|
|
11079
|
-
while (index < arrayLength)
|
|
11080
|
-
deletePropertyOrThrow(array2, index++);
|
|
10888
|
+
while (index < itemsLength) array2[index] = items[index++];
|
|
10889
|
+
while (index < arrayLength) deletePropertyOrThrow(array2, index++);
|
|
11081
10890
|
return array2;
|
|
11082
10891
|
}
|
|
11083
10892
|
});
|
|
@@ -12550,8 +12359,7 @@ var LabelAccumulator = class {
|
|
|
12550
12359
|
};
|
|
12551
12360
|
}
|
|
12552
12361
|
let tmpText = text;
|
|
12553
|
-
if (text === void 0 || text === "")
|
|
12554
|
-
tmpText = " ";
|
|
12362
|
+
if (text === void 0 || text === "") tmpText = " ";
|
|
12555
12363
|
const result = this.measureText(tmpText, mod);
|
|
12556
12364
|
const block = _Object$assign({}, _valuesInstanceProperty(result));
|
|
12557
12365
|
block.text = text;
|
|
@@ -12569,8 +12377,7 @@ var LabelAccumulator = class {
|
|
|
12569
12377
|
*/
|
|
12570
12378
|
curWidth() {
|
|
12571
12379
|
const line = this.lines[this.current];
|
|
12572
|
-
if (line === void 0)
|
|
12573
|
-
return 0;
|
|
12380
|
+
if (line === void 0) return 0;
|
|
12574
12381
|
return line.width;
|
|
12575
12382
|
}
|
|
12576
12383
|
/**
|
|
@@ -12642,11 +12449,9 @@ var LabelAccumulator = class {
|
|
|
12642
12449
|
const tmpLines = [];
|
|
12643
12450
|
for (let k = 0; k < this.lines.length; k++) {
|
|
12644
12451
|
const line = this.lines[k];
|
|
12645
|
-
if (line.blocks.length === 0)
|
|
12646
|
-
continue;
|
|
12452
|
+
if (line.blocks.length === 0) continue;
|
|
12647
12453
|
if (k === this.lines.length - 1) {
|
|
12648
|
-
if (line.width === 0)
|
|
12649
|
-
continue;
|
|
12454
|
+
if (line.width === 0) continue;
|
|
12650
12455
|
}
|
|
12651
12456
|
const tmpLine = {};
|
|
12652
12457
|
_Object$assign(tmpLine, line);
|
|
@@ -12735,10 +12540,8 @@ var MarkupAccumulator = class {
|
|
|
12735
12540
|
* @private
|
|
12736
12541
|
*/
|
|
12737
12542
|
modName() {
|
|
12738
|
-
if (this.modStack.length === 0)
|
|
12739
|
-
|
|
12740
|
-
else if (this.modStack[0] === "mono")
|
|
12741
|
-
return "mono";
|
|
12543
|
+
if (this.modStack.length === 0) return "normal";
|
|
12544
|
+
else if (this.modStack[0] === "mono") return "mono";
|
|
12742
12545
|
else {
|
|
12743
12546
|
if (this.bold && this.ital) {
|
|
12744
12547
|
return "boldital";
|
|
@@ -12922,8 +12725,7 @@ var LabelSplitter = class {
|
|
|
12922
12725
|
this.selected = selected;
|
|
12923
12726
|
this.hover = hover;
|
|
12924
12727
|
const textWidth = (text, mod) => {
|
|
12925
|
-
if (text === void 0)
|
|
12926
|
-
return 0;
|
|
12728
|
+
if (text === void 0) return 0;
|
|
12927
12729
|
const values3 = this.parent.getFormattingValues(ctx, selected, hover, mod);
|
|
12928
12730
|
let width = 0;
|
|
12929
12731
|
if (text !== "") {
|
|
@@ -12965,8 +12767,7 @@ var LabelSplitter = class {
|
|
|
12965
12767
|
if (font.multi) {
|
|
12966
12768
|
for (let i = 0; i < lineCount; i++) {
|
|
12967
12769
|
const blocks = this.splitBlocks(nlLines[i], font.multi);
|
|
12968
|
-
if (blocks === void 0)
|
|
12969
|
-
continue;
|
|
12770
|
+
if (blocks === void 0) continue;
|
|
12970
12771
|
if (blocks.length === 0) {
|
|
12971
12772
|
this.lines.newLine("");
|
|
12972
12773
|
continue;
|
|
@@ -13119,8 +12920,7 @@ var LabelSplitter = class {
|
|
|
13119
12920
|
while (w < words.length) {
|
|
13120
12921
|
const pre = text === "" ? "" : " ";
|
|
13121
12922
|
const newText = text + pre + words[w];
|
|
13122
|
-
if (this.overMaxWidth(newText))
|
|
13123
|
-
break;
|
|
12923
|
+
if (this.overMaxWidth(newText)) break;
|
|
13124
12924
|
text = newText;
|
|
13125
12925
|
w++;
|
|
13126
12926
|
}
|
|
@@ -13135,8 +12935,7 @@ var LabelSplitter = class {
|
|
|
13135
12935
|
getLongestFitWord(words) {
|
|
13136
12936
|
let w = 0;
|
|
13137
12937
|
while (w < words.length) {
|
|
13138
|
-
if (this.overMaxWidth(_sliceInstanceProperty(words).call(words, 0, w)))
|
|
13139
|
-
break;
|
|
12938
|
+
if (this.overMaxWidth(_sliceInstanceProperty(words).call(words, 0, w))) break;
|
|
13140
12939
|
w++;
|
|
13141
12940
|
}
|
|
13142
12941
|
return w;
|
|
@@ -13264,8 +13063,7 @@ var Label = class _Label {
|
|
|
13264
13063
|
* @static
|
|
13265
13064
|
*/
|
|
13266
13065
|
static parseFontString(outOptions, inOptions) {
|
|
13267
|
-
if (!inOptions || typeof inOptions !== "string")
|
|
13268
|
-
return false;
|
|
13066
|
+
if (!inOptions || typeof inOptions !== "string") return false;
|
|
13269
13067
|
const newOptionsArray = inOptions.split(" ");
|
|
13270
13068
|
outOptions.size = +newOptionsArray[0].replace("px", "");
|
|
13271
13069
|
outOptions.face = newOptionsArray[1];
|
|
@@ -13368,10 +13166,8 @@ var Label = class _Label {
|
|
|
13368
13166
|
* @private
|
|
13369
13167
|
*/
|
|
13370
13168
|
addFontToPile(pile, options) {
|
|
13371
|
-
if (options === void 0)
|
|
13372
|
-
|
|
13373
|
-
if (options.font === void 0 || options.font === null)
|
|
13374
|
-
return;
|
|
13169
|
+
if (options === void 0) return;
|
|
13170
|
+
if (options.font === void 0 || options.font === null) return;
|
|
13375
13171
|
const item = options.font;
|
|
13376
13172
|
pile.push(item);
|
|
13377
13173
|
}
|
|
@@ -13390,10 +13186,8 @@ var Label = class _Label {
|
|
|
13390
13186
|
fontOptions = tmpShorthand;
|
|
13391
13187
|
}
|
|
13392
13188
|
forEach$1(fontOptions, (opt, name) => {
|
|
13393
|
-
if (opt === void 0)
|
|
13394
|
-
|
|
13395
|
-
if (Object.prototype.hasOwnProperty.call(ret, name))
|
|
13396
|
-
return;
|
|
13189
|
+
if (opt === void 0) return;
|
|
13190
|
+
if (Object.prototype.hasOwnProperty.call(ret, name)) return;
|
|
13397
13191
|
if (_indexOfInstanceProperty(multiFontStyle).call(multiFontStyle, name) !== -1) {
|
|
13398
13192
|
ret[name] = {};
|
|
13399
13193
|
} else {
|
|
@@ -13435,8 +13229,7 @@ var Label = class _Label {
|
|
|
13435
13229
|
const fontOptions = pile[n];
|
|
13436
13230
|
if (Object.prototype.hasOwnProperty.call(fontOptions, multiName)) {
|
|
13437
13231
|
multiFont = fontOptions[multiName];
|
|
13438
|
-
if (multiFont === void 0 || multiFont === null)
|
|
13439
|
-
continue;
|
|
13232
|
+
if (multiFont === void 0 || multiFont === null) continue;
|
|
13440
13233
|
const tmpShorthand = {};
|
|
13441
13234
|
if (_Label.parseFontString(tmpShorthand, multiFont)) {
|
|
13442
13235
|
multiFont = tmpShorthand;
|
|
@@ -13504,11 +13297,9 @@ var Label = class _Label {
|
|
|
13504
13297
|
*/
|
|
13505
13298
|
draw(ctx, x, y, selected, hover) {
|
|
13506
13299
|
let baseline = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : "middle";
|
|
13507
|
-
if (this.elementOptions.label === void 0)
|
|
13508
|
-
return;
|
|
13300
|
+
if (this.elementOptions.label === void 0) return;
|
|
13509
13301
|
let viewFontSize = this.fontOptions.size * this.body.view.scale;
|
|
13510
|
-
if (this.elementOptions.label && viewFontSize < this.elementOptions.scaling.label.drawThreshold - 1)
|
|
13511
|
-
return;
|
|
13302
|
+
if (this.elementOptions.label && viewFontSize < this.elementOptions.scaling.label.drawThreshold - 1) return;
|
|
13512
13303
|
if (viewFontSize >= this.elementOptions.scaling.label.maxVisible) {
|
|
13513
13304
|
viewFontSize = Number(this.elementOptions.scaling.label.maxVisible) / this.body.view.scale;
|
|
13514
13305
|
}
|
|
@@ -13711,8 +13502,7 @@ var Label = class _Label {
|
|
|
13711
13502
|
getFormattingValues(ctx, selected, hover, mod) {
|
|
13712
13503
|
const getValue = function(fontOptions, mod2, option) {
|
|
13713
13504
|
if (mod2 === "normal") {
|
|
13714
|
-
if (option === "mod")
|
|
13715
|
-
return "";
|
|
13505
|
+
if (option === "mod") return "";
|
|
13716
13506
|
return fontOptions[option];
|
|
13717
13507
|
}
|
|
13718
13508
|
if (fontOptions[mod2][option] !== void 0) {
|
|
@@ -13779,8 +13569,7 @@ var Label = class _Label {
|
|
|
13779
13569
|
* @private
|
|
13780
13570
|
*/
|
|
13781
13571
|
_processLabel(ctx, selected, hover) {
|
|
13782
|
-
if (this.labelDirty === false && !this.differentState(selected, hover))
|
|
13783
|
-
return;
|
|
13572
|
+
if (this.labelDirty === false && !this.differentState(selected, hover)) return;
|
|
13784
13573
|
const state = this._processLabelText(ctx, selected, hover, this.elementOptions.label);
|
|
13785
13574
|
if (this.fontOptions.minWdt > 0 && state.width < this.fontOptions.minWdt) {
|
|
13786
13575
|
state.width = this.fontOptions.minWdt;
|
|
@@ -15476,15 +15265,13 @@ var Node = class _Node {
|
|
|
15476
15265
|
*/
|
|
15477
15266
|
static updateGroupOptions(parentOptions, newOptions, groupList) {
|
|
15478
15267
|
var _context4;
|
|
15479
|
-
if (groupList === void 0)
|
|
15480
|
-
return;
|
|
15268
|
+
if (groupList === void 0) return;
|
|
15481
15269
|
const group = parentOptions.group;
|
|
15482
15270
|
if (newOptions !== void 0 && newOptions.group !== void 0 && group !== newOptions.group) {
|
|
15483
15271
|
throw new Error("updateGroupOptions: group values in options don't match.");
|
|
15484
15272
|
}
|
|
15485
15273
|
const hasGroup = typeof group === "number" || typeof group === "string" && group != "";
|
|
15486
|
-
if (!hasGroup)
|
|
15487
|
-
return;
|
|
15274
|
+
if (!hasGroup) return;
|
|
15488
15275
|
const groupObj = groupList.get(group);
|
|
15489
15276
|
if (groupObj.opacity !== void 0 && newOptions.opacity === void 0) {
|
|
15490
15277
|
if (!_Node.checkOpacity(groupObj.opacity)) {
|
|
@@ -16045,8 +15832,7 @@ var NodesHandler = class {
|
|
|
16045
15832
|
this.body.emitter.on("refresh", _bindInstanceProperty(_context3 = this.refresh).call(_context3, this));
|
|
16046
15833
|
this.body.emitter.on("destroy", () => {
|
|
16047
15834
|
forEach$1(this.nodesListeners, (callback, event) => {
|
|
16048
|
-
if (this.body.data.nodes)
|
|
16049
|
-
this.body.data.nodes.off(event, callback);
|
|
15835
|
+
if (this.body.data.nodes) this.body.data.nodes.off(event, callback);
|
|
16050
15836
|
});
|
|
16051
15837
|
delete this.body.functions.createNode;
|
|
16052
15838
|
delete this.nodesListeners.add;
|
|
@@ -16408,8 +16194,7 @@ $$1({ target: "Math", stat: true, arity: 2, forced: FORCED }, {
|
|
|
16408
16194
|
} else if (arg > 0) {
|
|
16409
16195
|
div = arg / larg;
|
|
16410
16196
|
sum += div * div;
|
|
16411
|
-
} else
|
|
16412
|
-
sum += arg;
|
|
16197
|
+
} else sum += arg;
|
|
16413
16198
|
}
|
|
16414
16199
|
return larg === Infinity ? Infinity : larg * sqrt(sum);
|
|
16415
16200
|
}
|
|
@@ -16794,6 +16579,7 @@ var EndPoints = class {
|
|
|
16794
16579
|
case "vee":
|
|
16795
16580
|
return Vee.draw(ctx, arrowData);
|
|
16796
16581
|
case "arrow":
|
|
16582
|
+
// fall-through
|
|
16797
16583
|
default:
|
|
16798
16584
|
return Arrow.draw(ctx, arrowData);
|
|
16799
16585
|
}
|
|
@@ -18468,8 +18254,7 @@ var Edge = class _Edge {
|
|
|
18468
18254
|
this.edgeType.toPoint = this.edgeType.to;
|
|
18469
18255
|
if (values3.fromArrow) {
|
|
18470
18256
|
arrowData.from = this.edgeType.getArrowData(ctx, "from", viaNode, this.selected, this.hover, values3);
|
|
18471
|
-
if (values3.arrowStrikethrough === false)
|
|
18472
|
-
this.edgeType.fromPoint = arrowData.from.core;
|
|
18257
|
+
if (values3.arrowStrikethrough === false) this.edgeType.fromPoint = arrowData.from.core;
|
|
18473
18258
|
if (values3.fromArrowSrc) {
|
|
18474
18259
|
arrowData.from.image = this.imagelist.load(values3.fromArrowSrc);
|
|
18475
18260
|
}
|
|
@@ -18482,8 +18267,7 @@ var Edge = class _Edge {
|
|
|
18482
18267
|
}
|
|
18483
18268
|
if (values3.toArrow) {
|
|
18484
18269
|
arrowData.to = this.edgeType.getArrowData(ctx, "to", viaNode, this.selected, this.hover, values3);
|
|
18485
|
-
if (values3.arrowStrikethrough === false)
|
|
18486
|
-
this.edgeType.toPoint = arrowData.to.core;
|
|
18270
|
+
if (values3.arrowStrikethrough === false) this.edgeType.toPoint = arrowData.to.core;
|
|
18487
18271
|
if (values3.toArrowSrc) {
|
|
18488
18272
|
arrowData.to.image = this.imagelist.load(values3.toArrowSrc);
|
|
18489
18273
|
}
|
|
@@ -18867,8 +18651,7 @@ var EdgesHandler = class {
|
|
|
18867
18651
|
this.body.emitter.on("refresh", _bindInstanceProperty(_context3 = this.refresh).call(_context3, this));
|
|
18868
18652
|
this.body.emitter.on("destroy", () => {
|
|
18869
18653
|
forEach$1(this.edgesListeners, (callback, event) => {
|
|
18870
|
-
if (this.body.data.edges)
|
|
18871
|
-
this.body.data.edges.off(event, callback);
|
|
18654
|
+
if (this.body.data.edges) this.body.data.edges.off(event, callback);
|
|
18872
18655
|
});
|
|
18873
18656
|
delete this.body.functions.createEdge;
|
|
18874
18657
|
delete this.edgesListeners.add;
|
|
@@ -19004,8 +18787,7 @@ var EdgesHandler = class {
|
|
|
19004
18787
|
*/
|
|
19005
18788
|
remove(ids) {
|
|
19006
18789
|
let emit = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
|
|
19007
|
-
if (ids.length === 0)
|
|
19008
|
-
return;
|
|
18790
|
+
if (ids.length === 0) return;
|
|
19009
18791
|
const edges = this.body.edges;
|
|
19010
18792
|
forEach$1(ids, (id2) => {
|
|
19011
18793
|
const edge = edges[id2];
|
|
@@ -20218,8 +20000,7 @@ var PhysicsEngine = class {
|
|
|
20218
20000
|
*/
|
|
20219
20001
|
physicsTick() {
|
|
20220
20002
|
this._startStabilizing();
|
|
20221
|
-
if (this.stabilized === true)
|
|
20222
|
-
return;
|
|
20003
|
+
if (this.stabilized === true) return;
|
|
20223
20004
|
if (this.adaptiveTimestep === true && this.adaptiveTimestepEnabled === true) {
|
|
20224
20005
|
const doAdaptive = this.adaptiveCounter % this.adaptiveInterval === 0;
|
|
20225
20006
|
if (doAdaptive) {
|
|
@@ -20238,8 +20019,7 @@ var PhysicsEngine = class {
|
|
|
20238
20019
|
this.timestep = this.options.timestep;
|
|
20239
20020
|
this.physicsStep();
|
|
20240
20021
|
}
|
|
20241
|
-
if (this.stabilized === true)
|
|
20242
|
-
this.revert();
|
|
20022
|
+
if (this.stabilized === true) this.revert();
|
|
20243
20023
|
this.stabilizationIterations++;
|
|
20244
20024
|
}
|
|
20245
20025
|
/**
|
|
@@ -20476,8 +20256,7 @@ var PhysicsEngine = class {
|
|
|
20476
20256
|
* @private
|
|
20477
20257
|
*/
|
|
20478
20258
|
_startStabilizing() {
|
|
20479
|
-
if (this.startedStabilization === true)
|
|
20480
|
-
return false;
|
|
20259
|
+
if (this.startedStabilization === true) return false;
|
|
20481
20260
|
this.body.emitter.emit("startStabilizing");
|
|
20482
20261
|
this.startedStabilization = true;
|
|
20483
20262
|
return true;
|
|
@@ -20728,8 +20507,7 @@ var Cluster = class extends Node {
|
|
|
20728
20507
|
forEach$1(this.edges, (parentClusterEdge) => {
|
|
20729
20508
|
var _context, _context2;
|
|
20730
20509
|
const index = _indexOfInstanceProperty(_context = parentClusterEdge.clusteringEdgeReplacingIds).call(_context, clusterEdge.id);
|
|
20731
|
-
if (index === -1)
|
|
20732
|
-
return;
|
|
20510
|
+
if (index === -1) return;
|
|
20733
20511
|
forEach$1(clusterEdge.clusteringEdgeReplacingIds, (srcId) => {
|
|
20734
20512
|
parentClusterEdge.clusteringEdgeReplacingIds.push(srcId);
|
|
20735
20513
|
this.body.edges[srcId].edgeReplacedById = parentClusterEdge.id;
|
|
@@ -20974,8 +20752,7 @@ var ClusterEngine = class {
|
|
|
20974
20752
|
return childNodesObj[childNode].id;
|
|
20975
20753
|
});
|
|
20976
20754
|
for (const childNodeKey in childNodesObj) {
|
|
20977
|
-
if (!Object.prototype.hasOwnProperty.call(childNodesObj, childNodeKey))
|
|
20978
|
-
continue;
|
|
20755
|
+
if (!Object.prototype.hasOwnProperty.call(childNodesObj, childNodeKey)) continue;
|
|
20979
20756
|
const childNode = childNodesObj[childNodeKey];
|
|
20980
20757
|
for (let y = 0; y < childNode.edges.length; y++) {
|
|
20981
20758
|
const childEdge = childNode.edges[y];
|
|
@@ -21307,8 +21084,7 @@ var ClusterEngine = class {
|
|
|
21307
21084
|
for (let j = 0; j < edge.clusteringEdgeReplacingIds.length; j++) {
|
|
21308
21085
|
const transferId = edge.clusteringEdgeReplacingIds[j];
|
|
21309
21086
|
const transferEdge = this.body.edges[transferId];
|
|
21310
|
-
if (transferEdge === void 0)
|
|
21311
|
-
continue;
|
|
21087
|
+
if (transferEdge === void 0) continue;
|
|
21312
21088
|
if (otherNode !== void 0) {
|
|
21313
21089
|
const otherCluster = this.body.nodes[otherNode.clusterId];
|
|
21314
21090
|
otherCluster.containedEdges[transferEdge.id] = transferEdge;
|
|
@@ -21371,15 +21147,13 @@ var ClusterEngine = class {
|
|
|
21371
21147
|
let node;
|
|
21372
21148
|
while (this.clusteredNodes[nodeId] !== void 0 && counter < max2) {
|
|
21373
21149
|
node = this.body.nodes[nodeId];
|
|
21374
|
-
if (node === void 0)
|
|
21375
|
-
return [];
|
|
21150
|
+
if (node === void 0) return [];
|
|
21376
21151
|
stack.push(node.id);
|
|
21377
21152
|
nodeId = this.clusteredNodes[nodeId].clusterId;
|
|
21378
21153
|
counter++;
|
|
21379
21154
|
}
|
|
21380
21155
|
node = this.body.nodes[nodeId];
|
|
21381
|
-
if (node === void 0)
|
|
21382
|
-
return [];
|
|
21156
|
+
if (node === void 0) return [];
|
|
21383
21157
|
stack.push(node.id);
|
|
21384
21158
|
_reverseInstanceProperty(stack).call(stack);
|
|
21385
21159
|
return stack;
|
|
@@ -21464,11 +21238,9 @@ var ClusterEngine = class {
|
|
|
21464
21238
|
let counter = 0;
|
|
21465
21239
|
while (IdsToHandle.length > 0 && counter < max2) {
|
|
21466
21240
|
const nextId = IdsToHandle.pop();
|
|
21467
|
-
if (nextId === void 0)
|
|
21468
|
-
continue;
|
|
21241
|
+
if (nextId === void 0) continue;
|
|
21469
21242
|
const nextEdge = this.body.edges[nextId];
|
|
21470
|
-
if (nextEdge === void 0)
|
|
21471
|
-
continue;
|
|
21243
|
+
if (nextEdge === void 0) continue;
|
|
21472
21244
|
counter++;
|
|
21473
21245
|
const replacingIds = nextEdge.clusteringEdgeReplacingIds;
|
|
21474
21246
|
if (replacingIds === void 0) {
|
|
@@ -21619,14 +21391,11 @@ var ClusterEngine = class {
|
|
|
21619
21391
|
* @private
|
|
21620
21392
|
*/
|
|
21621
21393
|
_getClusterNodeForNode(nodeId) {
|
|
21622
|
-
if (nodeId === void 0)
|
|
21623
|
-
return void 0;
|
|
21394
|
+
if (nodeId === void 0) return void 0;
|
|
21624
21395
|
const clusteredNode = this.clusteredNodes[nodeId];
|
|
21625
|
-
if (clusteredNode === void 0)
|
|
21626
|
-
return void 0;
|
|
21396
|
+
if (clusteredNode === void 0) return void 0;
|
|
21627
21397
|
const clusterId = clusteredNode.clusterId;
|
|
21628
|
-
if (clusterId === void 0)
|
|
21629
|
-
return void 0;
|
|
21398
|
+
if (clusterId === void 0) return void 0;
|
|
21630
21399
|
return this.body.nodes[clusterId];
|
|
21631
21400
|
}
|
|
21632
21401
|
/**
|
|
@@ -21668,8 +21437,7 @@ var ClusterEngine = class {
|
|
|
21668
21437
|
});
|
|
21669
21438
|
};
|
|
21670
21439
|
for (nodeId in this.clusteredNodes) {
|
|
21671
|
-
if (!Object.prototype.hasOwnProperty.call(this.clusteredNodes, nodeId))
|
|
21672
|
-
continue;
|
|
21440
|
+
if (!Object.prototype.hasOwnProperty.call(this.clusteredNodes, nodeId)) continue;
|
|
21673
21441
|
const node = this.body.nodes[nodeId];
|
|
21674
21442
|
if (node === void 0) {
|
|
21675
21443
|
deletedNodeIds.push(nodeId);
|
|
@@ -24012,25 +23780,21 @@ var findUncaughtFrozen = function(store, key) {
|
|
|
24012
23780
|
UncaughtFrozenStore.prototype = {
|
|
24013
23781
|
get: function(key) {
|
|
24014
23782
|
var entry = findUncaughtFrozen(this, key);
|
|
24015
|
-
if (entry)
|
|
24016
|
-
return entry[1];
|
|
23783
|
+
if (entry) return entry[1];
|
|
24017
23784
|
},
|
|
24018
23785
|
has: function(key) {
|
|
24019
23786
|
return !!findUncaughtFrozen(this, key);
|
|
24020
23787
|
},
|
|
24021
23788
|
set: function(key, value) {
|
|
24022
23789
|
var entry = findUncaughtFrozen(this, key);
|
|
24023
|
-
if (entry)
|
|
24024
|
-
|
|
24025
|
-
else
|
|
24026
|
-
this.entries.push([key, value]);
|
|
23790
|
+
if (entry) entry[1] = value;
|
|
23791
|
+
else this.entries.push([key, value]);
|
|
24027
23792
|
},
|
|
24028
23793
|
"delete": function(key) {
|
|
24029
23794
|
var index = findIndex(this.entries, function(it2) {
|
|
24030
23795
|
return it2[0] === key;
|
|
24031
23796
|
});
|
|
24032
|
-
if (~index)
|
|
24033
|
-
splice2(this.entries, index, 1);
|
|
23797
|
+
if (~index) splice2(this.entries, index, 1);
|
|
24034
23798
|
return !!~index;
|
|
24035
23799
|
}
|
|
24036
23800
|
};
|
|
@@ -24043,18 +23807,15 @@ var collectionWeak$1 = {
|
|
|
24043
23807
|
id: id++,
|
|
24044
23808
|
frozen: void 0
|
|
24045
23809
|
});
|
|
24046
|
-
if (!isNullOrUndefined(iterable))
|
|
24047
|
-
iterate(iterable, that[ADDER], { that, AS_ENTRIES: IS_MAP });
|
|
23810
|
+
if (!isNullOrUndefined(iterable)) iterate(iterable, that[ADDER], { that, AS_ENTRIES: IS_MAP });
|
|
24048
23811
|
});
|
|
24049
23812
|
var Prototype = Constructor.prototype;
|
|
24050
23813
|
var getInternalState2 = internalStateGetterFor(CONSTRUCTOR_NAME);
|
|
24051
23814
|
var define = function(that, key, value) {
|
|
24052
23815
|
var state = getInternalState2(that);
|
|
24053
23816
|
var data2 = getWeakData(anObject(key), true);
|
|
24054
|
-
if (data2 === true)
|
|
24055
|
-
|
|
24056
|
-
else
|
|
24057
|
-
data2[state.id] = value;
|
|
23817
|
+
if (data2 === true) uncaughtFrozenStore(state).set(key, value);
|
|
23818
|
+
else data2[state.id] = value;
|
|
24058
23819
|
return that;
|
|
24059
23820
|
};
|
|
24060
23821
|
defineBuiltIns$1(Prototype, {
|
|
@@ -24063,11 +23824,9 @@ var collectionWeak$1 = {
|
|
|
24063
23824
|
// https://tc39.es/ecma262/#sec-weakset.prototype.delete
|
|
24064
23825
|
"delete": function(key) {
|
|
24065
23826
|
var state = getInternalState2(this);
|
|
24066
|
-
if (!isObject$1(key))
|
|
24067
|
-
return false;
|
|
23827
|
+
if (!isObject$1(key)) return false;
|
|
24068
23828
|
var data2 = getWeakData(key);
|
|
24069
|
-
if (data2 === true)
|
|
24070
|
-
return uncaughtFrozenStore(state)["delete"](key);
|
|
23829
|
+
if (data2 === true) return uncaughtFrozenStore(state)["delete"](key);
|
|
24071
23830
|
return data2 && hasOwn2(data2, state.id) && delete data2[state.id];
|
|
24072
23831
|
},
|
|
24073
23832
|
// `{ WeakMap, WeakSet }.prototype.has(key)` methods
|
|
@@ -24075,11 +23834,9 @@ var collectionWeak$1 = {
|
|
|
24075
23834
|
// https://tc39.es/ecma262/#sec-weakset.prototype.has
|
|
24076
23835
|
has: function has2(key) {
|
|
24077
23836
|
var state = getInternalState2(this);
|
|
24078
|
-
if (!isObject$1(key))
|
|
24079
|
-
return false;
|
|
23837
|
+
if (!isObject$1(key)) return false;
|
|
24080
23838
|
var data2 = getWeakData(key);
|
|
24081
|
-
if (data2 === true)
|
|
24082
|
-
return uncaughtFrozenStore(state).has(key);
|
|
23839
|
+
if (data2 === true) return uncaughtFrozenStore(state).has(key);
|
|
24083
23840
|
return data2 && hasOwn2(data2, state.id);
|
|
24084
23841
|
}
|
|
24085
23842
|
});
|
|
@@ -24090,8 +23847,7 @@ var collectionWeak$1 = {
|
|
|
24090
23847
|
var state = getInternalState2(this);
|
|
24091
23848
|
if (isObject$1(key)) {
|
|
24092
23849
|
var data2 = getWeakData(key);
|
|
24093
|
-
if (data2 === true)
|
|
24094
|
-
return uncaughtFrozenStore(state).get(key);
|
|
23850
|
+
if (data2 === true) return uncaughtFrozenStore(state).get(key);
|
|
24095
23851
|
return data2 ? data2[state.id] : void 0;
|
|
24096
23852
|
}
|
|
24097
23853
|
},
|
|
@@ -24158,8 +23914,7 @@ if (NATIVE_WEAK_MAP) {
|
|
|
24158
23914
|
"delete": function(key) {
|
|
24159
23915
|
if (isObject(key) && !isExtensible2(key)) {
|
|
24160
23916
|
var state = enforceInternalState(this);
|
|
24161
|
-
if (!state.frozen)
|
|
24162
|
-
state.frozen = new InternalWeakMap();
|
|
23917
|
+
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
24163
23918
|
return nativeDelete(this, key) || state.frozen["delete"](key);
|
|
24164
23919
|
}
|
|
24165
23920
|
return nativeDelete(this, key);
|
|
@@ -24167,8 +23922,7 @@ if (NATIVE_WEAK_MAP) {
|
|
|
24167
23922
|
has: function has2(key) {
|
|
24168
23923
|
if (isObject(key) && !isExtensible2(key)) {
|
|
24169
23924
|
var state = enforceInternalState(this);
|
|
24170
|
-
if (!state.frozen)
|
|
24171
|
-
state.frozen = new InternalWeakMap();
|
|
23925
|
+
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
24172
23926
|
return nativeHas(this, key) || state.frozen.has(key);
|
|
24173
23927
|
}
|
|
24174
23928
|
return nativeHas(this, key);
|
|
@@ -24176,8 +23930,7 @@ if (NATIVE_WEAK_MAP) {
|
|
|
24176
23930
|
get: function get2(key) {
|
|
24177
23931
|
if (isObject(key) && !isExtensible2(key)) {
|
|
24178
23932
|
var state = enforceInternalState(this);
|
|
24179
|
-
if (!state.frozen)
|
|
24180
|
-
state.frozen = new InternalWeakMap();
|
|
23933
|
+
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
24181
23934
|
return nativeHas(this, key) ? nativeGet(this, key) : state.frozen.get(key);
|
|
24182
23935
|
}
|
|
24183
23936
|
return nativeGet(this, key);
|
|
@@ -24185,11 +23938,9 @@ if (NATIVE_WEAK_MAP) {
|
|
|
24185
23938
|
set: function set2(key, value) {
|
|
24186
23939
|
if (isObject(key) && !isExtensible2(key)) {
|
|
24187
23940
|
var state = enforceInternalState(this);
|
|
24188
|
-
if (!state.frozen)
|
|
24189
|
-
state.frozen = new InternalWeakMap();
|
|
23941
|
+
if (!state.frozen) state.frozen = new InternalWeakMap();
|
|
24190
23942
|
nativeHas(this, key) ? nativeSet(this, key, value) : state.frozen.set(key, value);
|
|
24191
|
-
} else
|
|
24192
|
-
nativeSet(this, key, value);
|
|
23943
|
+
} else nativeSet(this, key, value);
|
|
24193
23944
|
return this;
|
|
24194
23945
|
}
|
|
24195
23946
|
});
|
|
@@ -24198,16 +23949,12 @@ if (NATIVE_WEAK_MAP) {
|
|
|
24198
23949
|
set: function set2(key, value) {
|
|
24199
23950
|
var arrayIntegrityLevel;
|
|
24200
23951
|
if (isArray2(key)) {
|
|
24201
|
-
if (isFrozen(key))
|
|
24202
|
-
|
|
24203
|
-
else if (isSealed(key))
|
|
24204
|
-
arrayIntegrityLevel = SEALED;
|
|
23952
|
+
if (isFrozen(key)) arrayIntegrityLevel = FROZEN;
|
|
23953
|
+
else if (isSealed(key)) arrayIntegrityLevel = SEALED;
|
|
24205
23954
|
}
|
|
24206
23955
|
nativeSet(this, key, value);
|
|
24207
|
-
if (arrayIntegrityLevel === FROZEN)
|
|
24208
|
-
|
|
24209
|
-
if (arrayIntegrityLevel === SEALED)
|
|
24210
|
-
seal(key);
|
|
23956
|
+
if (arrayIntegrityLevel === FROZEN) freeze(key);
|
|
23957
|
+
if (arrayIntegrityLevel === SEALED) seal(key);
|
|
24211
23958
|
return this;
|
|
24212
23959
|
}
|
|
24213
23960
|
});
|
|
@@ -24223,19 +23970,14 @@ var weakMap$1 = parent$1;
|
|
|
24223
23970
|
var weakMap = weakMap$1;
|
|
24224
23971
|
var _WeakMap = /* @__PURE__ */ getDefaultExportFromCjs(weakMap);
|
|
24225
23972
|
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
24226
|
-
if (kind === "a" && !f)
|
|
24227
|
-
|
|
24228
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
24229
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
23973
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
23974
|
+
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");
|
|
24230
23975
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
24231
23976
|
}
|
|
24232
23977
|
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
24233
|
-
if (kind === "m")
|
|
24234
|
-
|
|
24235
|
-
if (
|
|
24236
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
24237
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
24238
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
23978
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
23979
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
23980
|
+
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");
|
|
24239
23981
|
return kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value), value;
|
|
24240
23982
|
}
|
|
24241
23983
|
var _SingleTypeSelectionAccumulator_previousSelection;
|
|
@@ -24903,8 +24645,7 @@ var SelectionHandler = class {
|
|
|
24903
24645
|
*/
|
|
24904
24646
|
selectNodes(selection) {
|
|
24905
24647
|
let highlightEdges = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
|
|
24906
|
-
if (!selection || selection.length === void 0)
|
|
24907
|
-
throw "Selection must be an array with ids";
|
|
24648
|
+
if (!selection || selection.length === void 0) throw "Selection must be an array with ids";
|
|
24908
24649
|
this.setSelection({
|
|
24909
24650
|
nodes: selection
|
|
24910
24651
|
}, {
|
|
@@ -24917,8 +24658,7 @@ var SelectionHandler = class {
|
|
|
24917
24658
|
* selected nodes.
|
|
24918
24659
|
*/
|
|
24919
24660
|
selectEdges(selection) {
|
|
24920
|
-
if (!selection || selection.length === void 0)
|
|
24921
|
-
throw "Selection must be an array with ids";
|
|
24661
|
+
if (!selection || selection.length === void 0) throw "Selection must be an array with ids";
|
|
24922
24662
|
this.setSelection({
|
|
24923
24663
|
edges: selection
|
|
24924
24664
|
});
|
|
@@ -25364,8 +25104,7 @@ var HierarchicalStatus = class {
|
|
|
25364
25104
|
* @param {string|number} treeId
|
|
25365
25105
|
*/
|
|
25366
25106
|
setTreeIndex(node, treeId) {
|
|
25367
|
-
if (treeId === void 0)
|
|
25368
|
-
return;
|
|
25107
|
+
if (treeId === void 0) return;
|
|
25369
25108
|
if (this.trees[node.id] === void 0) {
|
|
25370
25109
|
this.trees[node.id] = treeId;
|
|
25371
25110
|
this.treeIndex = Math.max(treeId, this.treeIndex);
|
|
@@ -26017,8 +25756,7 @@ var LayoutEngine = class {
|
|
|
26017
25756
|
if (offset < 0) {
|
|
26018
25757
|
_this._shiftBlock(node2.id, offset);
|
|
26019
25758
|
stillShifting = true;
|
|
26020
|
-
if (centerParent === true)
|
|
26021
|
-
_this._centerParent(node2);
|
|
25759
|
+
if (centerParent === true) _this._centerParent(node2);
|
|
26022
25760
|
}
|
|
26023
25761
|
}
|
|
26024
25762
|
}
|
|
@@ -26148,8 +25886,7 @@ var LayoutEngine = class {
|
|
|
26148
25886
|
};
|
|
26149
25887
|
const centerAllParents = () => {
|
|
26150
25888
|
for (const nodeId in this.body.nodes) {
|
|
26151
|
-
if (Object.prototype.hasOwnProperty.call(this.body.nodes, nodeId))
|
|
26152
|
-
this._centerParent(this.body.nodes[nodeId]);
|
|
25889
|
+
if (Object.prototype.hasOwnProperty.call(this.body.nodes, nodeId)) this._centerParent(this.body.nodes[nodeId]);
|
|
26153
25890
|
}
|
|
26154
25891
|
};
|
|
26155
25892
|
const centerAllParentsBottomUp = () => {
|
|
@@ -26315,8 +26052,7 @@ var LayoutEngine = class {
|
|
|
26315
26052
|
* @private
|
|
26316
26053
|
*/
|
|
26317
26054
|
_validatePositionAndContinue(node, level, pos) {
|
|
26318
|
-
if (!this.hierarchical.isTree)
|
|
26319
|
-
return;
|
|
26055
|
+
if (!this.hierarchical.isTree) return;
|
|
26320
26056
|
if (this.lastNodeOnLevel[level] !== void 0) {
|
|
26321
26057
|
const previousPos = this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[level]]);
|
|
26322
26058
|
if (pos - previousPos < this.options.hierarchical.nodeSpacing) {
|
|
@@ -26412,8 +26148,7 @@ var LayoutEngine = class {
|
|
|
26412
26148
|
const hubSizes = this._getHubSizes();
|
|
26413
26149
|
for (let i = 0; i < hubSizes.length; ++i) {
|
|
26414
26150
|
const hubSize = hubSizes[i];
|
|
26415
|
-
if (hubSize === 0)
|
|
26416
|
-
break;
|
|
26151
|
+
if (hubSize === 0) break;
|
|
26417
26152
|
forEach$1(this.body.nodeIndices, (nodeId) => {
|
|
26418
26153
|
const node = this.body.nodes[nodeId];
|
|
26419
26154
|
if (hubSize === this._getActiveEdges(node).length) {
|
|
@@ -29750,13 +29485,11 @@ Network.prototype.destroy = function() {
|
|
|
29750
29485
|
delete this.configurator;
|
|
29751
29486
|
delete this.images;
|
|
29752
29487
|
for (const nodeId in this.body.nodes) {
|
|
29753
|
-
if (!Object.prototype.hasOwnProperty.call(this.body.nodes, nodeId))
|
|
29754
|
-
continue;
|
|
29488
|
+
if (!Object.prototype.hasOwnProperty.call(this.body.nodes, nodeId)) continue;
|
|
29755
29489
|
delete this.body.nodes[nodeId];
|
|
29756
29490
|
}
|
|
29757
29491
|
for (const edgeId in this.body.edges) {
|
|
29758
|
-
if (!Object.prototype.hasOwnProperty.call(this.body.edges, edgeId))
|
|
29759
|
-
continue;
|
|
29492
|
+
if (!Object.prototype.hasOwnProperty.call(this.body.edges, edgeId)) continue;
|
|
29760
29493
|
delete this.body.edges[edgeId];
|
|
29761
29494
|
}
|
|
29762
29495
|
recursiveDOMDelete(this.body.container);
|
|
@@ -29963,48 +29696,22 @@ Network.prototype.getOptionsFromConfigurator = function() {
|
|
|
29963
29696
|
return options;
|
|
29964
29697
|
};
|
|
29965
29698
|
|
|
29966
|
-
// src/themeUtils.
|
|
29699
|
+
// src/themeUtils.ts
|
|
29967
29700
|
function getCurrentTheme() {
|
|
29968
29701
|
return document.documentElement.getAttribute("data-theme") || "light";
|
|
29969
29702
|
}
|
|
29970
29703
|
function getThemeNodeColors(theme) {
|
|
29971
|
-
|
|
29972
|
-
return {
|
|
29973
|
-
uri: "#97C2FC",
|
|
29974
|
-
// Light blue for URIs
|
|
29975
|
-
literal: "#a6c8a6ff",
|
|
29976
|
-
// Light green for literals
|
|
29977
|
-
blankNode: "#888888",
|
|
29978
|
-
// Medium grey for blank nodes (darker than light mode)
|
|
29979
|
-
typeObject: "#e15b13ff",
|
|
29980
|
-
// Orange for rdf:type objects
|
|
29981
|
-
text: "#e0e0e0",
|
|
29982
|
-
// Light text for dark backgrounds
|
|
29983
|
-
edge: "#666666",
|
|
29984
|
-
// Darker edges
|
|
29985
|
-
edgeLabel: "#cccccc",
|
|
29986
|
-
// Lighter edge labels
|
|
29987
|
-
edgeLabelBackground: "rgba(30, 30, 30, 0.8)"
|
|
29988
|
-
// Dark semi-transparent background
|
|
29989
|
-
};
|
|
29990
|
-
}
|
|
29704
|
+
const styles = getComputedStyle(document.documentElement);
|
|
29991
29705
|
return {
|
|
29992
|
-
uri: "#97C2FC",
|
|
29993
|
-
|
|
29994
|
-
|
|
29995
|
-
|
|
29996
|
-
|
|
29997
|
-
|
|
29998
|
-
|
|
29999
|
-
|
|
30000
|
-
|
|
30001
|
-
// Black text
|
|
30002
|
-
edge: "#cccccc",
|
|
30003
|
-
// Light grey edges
|
|
30004
|
-
edgeLabel: "#666666",
|
|
30005
|
-
// Dark grey edge labels
|
|
30006
|
-
edgeLabelBackground: "rgba(255, 255, 255, 0.8)"
|
|
30007
|
-
// Light semi-transparent background
|
|
29706
|
+
uri: styles.getPropertyValue("--yasgui-graph-uri").trim() || "#97C2FC",
|
|
29707
|
+
literal: styles.getPropertyValue("--yasgui-graph-literal").trim() || "#a6c8a6ff",
|
|
29708
|
+
blankNode: styles.getPropertyValue("--yasgui-graph-blank-node").trim() || (theme === "dark" ? "#888888" : "#c5c5c5ff"),
|
|
29709
|
+
typeObject: styles.getPropertyValue("--yasgui-graph-type-object").trim() || "#e15b13ff",
|
|
29710
|
+
text: styles.getPropertyValue("--yasgui-graph-text").trim() || (theme === "dark" ? "#e0e0e0" : "#000000"),
|
|
29711
|
+
edge: styles.getPropertyValue("--yasgui-graph-edge").trim() || (theme === "dark" ? "#666666" : "#cccccc"),
|
|
29712
|
+
edgeLabel: styles.getPropertyValue("--yasgui-graph-edge-label").trim() || (theme === "dark" ? "#cccccc" : "#666666"),
|
|
29713
|
+
edgeLabelBackground: styles.getPropertyValue("--yasgui-graph-edge-label-bg").trim() || (theme === "dark" ? "rgba(30, 30, 30, 0.8)" : "rgba(255, 255, 255, 0.8)"),
|
|
29714
|
+
background: styles.getPropertyValue("--yasgui-graph-background").trim() || (theme === "dark" ? "#1e1e1e" : "#ffffff")
|
|
30008
29715
|
};
|
|
30009
29716
|
}
|
|
30010
29717
|
function watchThemeChanges(callback) {
|
|
@@ -30023,16 +29730,18 @@ function watchThemeChanges(callback) {
|
|
|
30023
29730
|
return observer;
|
|
30024
29731
|
}
|
|
30025
29732
|
|
|
30026
|
-
// src/GraphPlugin.
|
|
30027
|
-
function getVisNetwork() {
|
|
30028
|
-
return { Network, DataSet };
|
|
30029
|
-
}
|
|
29733
|
+
// src/GraphPlugin.ts
|
|
30030
29734
|
var GraphPlugin = class {
|
|
30031
29735
|
constructor(yasr) {
|
|
30032
29736
|
this.yasr = yasr;
|
|
30033
29737
|
this.network = null;
|
|
30034
29738
|
this.currentTheme = getCurrentTheme();
|
|
30035
29739
|
this.themeObserver = null;
|
|
29740
|
+
this.resizeObserver = null;
|
|
29741
|
+
this.nodesDataSet = null;
|
|
29742
|
+
this.edgesDataSet = null;
|
|
29743
|
+
this.triples = null;
|
|
29744
|
+
this.prefixMap = null;
|
|
30036
29745
|
}
|
|
30037
29746
|
/**
|
|
30038
29747
|
* Plugin priority (higher = shown first in tabs)
|
|
@@ -30048,11 +29757,10 @@ var GraphPlugin = class {
|
|
|
30048
29757
|
}
|
|
30049
29758
|
/**
|
|
30050
29759
|
* Check if plugin can handle the current results
|
|
30051
|
-
* @returns
|
|
29760
|
+
* @returns True if results are from CONSTRUCT or DESCRIBE query
|
|
30052
29761
|
*/
|
|
30053
29762
|
canHandleResults() {
|
|
30054
|
-
if (!this.yasr || !this.yasr.results)
|
|
30055
|
-
return false;
|
|
29763
|
+
if (!this.yasr || !this.yasr.results) return false;
|
|
30056
29764
|
const results = this.yasr.results;
|
|
30057
29765
|
if (results.getBindings && typeof results.getBindings === "function") {
|
|
30058
29766
|
const bindings = results.getBindings();
|
|
@@ -30069,44 +29777,38 @@ var GraphPlugin = class {
|
|
|
30069
29777
|
draw() {
|
|
30070
29778
|
this.yasr.resultsEl.innerHTML = "";
|
|
30071
29779
|
try {
|
|
30072
|
-
|
|
30073
|
-
if (!triples || triples.length === 0) {
|
|
30074
|
-
|
|
29780
|
+
this.triples = parseConstructResults(this.yasr.results);
|
|
29781
|
+
if (!this.triples || this.triples.length === 0) {
|
|
29782
|
+
const emptyDiv = document.createElement("div");
|
|
29783
|
+
emptyDiv.className = "yasgui-graph-plugin-empty-state";
|
|
29784
|
+
emptyDiv.textContent = "No graph data to visualize";
|
|
29785
|
+
this.yasr.resultsEl.appendChild(emptyDiv);
|
|
30075
29786
|
return;
|
|
30076
29787
|
}
|
|
30077
|
-
|
|
29788
|
+
if (this.triples.length > 1e3) {
|
|
29789
|
+
console.warn("Large graph detected (>1000 triples). Rendering may be slow.");
|
|
29790
|
+
}
|
|
29791
|
+
this.prefixMap = extractPrefixes(this.yasr);
|
|
30078
29792
|
this.currentTheme = getCurrentTheme();
|
|
30079
29793
|
const themeColors = getThemeNodeColors(this.currentTheme);
|
|
30080
|
-
const { nodes, edges } = triplesToGraph(triples, prefixMap, themeColors);
|
|
29794
|
+
const { nodes, edges } = triplesToGraph(this.triples, this.prefixMap, themeColors);
|
|
30081
29795
|
const container = document.createElement("div");
|
|
29796
|
+
container.className = "yasgui-graph-plugin-container";
|
|
30082
29797
|
container.id = "yasgui-graph-plugin-container";
|
|
30083
|
-
container.style.width = "100%";
|
|
30084
|
-
container.style.minHeight = "500px";
|
|
30085
|
-
container.style.height = "100%";
|
|
30086
|
-
container.style.position = "relative";
|
|
30087
|
-
container.style.overflow = "hidden";
|
|
30088
29798
|
this.yasr.resultsEl.appendChild(container);
|
|
30089
|
-
|
|
30090
|
-
|
|
30091
|
-
const edgesDataSet = new DataSet2(edges);
|
|
29799
|
+
this.nodesDataSet = new DataSet(nodes);
|
|
29800
|
+
this.edgesDataSet = new DataSet(edges);
|
|
30092
29801
|
const options = getDefaultNetworkOptions(themeColors);
|
|
30093
|
-
this.
|
|
30094
|
-
this.edgesDataSet = edgesDataSet;
|
|
30095
|
-
this.triples = triples;
|
|
30096
|
-
this.prefixMap = prefixMap;
|
|
30097
|
-
this.network = new Network2(
|
|
29802
|
+
this.network = new Network(
|
|
30098
29803
|
container,
|
|
30099
|
-
{ nodes: nodesDataSet, edges: edgesDataSet },
|
|
29804
|
+
{ nodes: this.nodesDataSet, edges: this.edgesDataSet },
|
|
30100
29805
|
options
|
|
30101
29806
|
);
|
|
30102
|
-
this.
|
|
30103
|
-
const isHorizontal = document.querySelector(".orientation-horizontal") !== null;
|
|
30104
|
-
container.style.height = isHorizontal ? "80vh" : "50vh";
|
|
30105
|
-
});
|
|
30106
|
-
this.networkReady = false;
|
|
29807
|
+
this.applyCanvasBackground(themeColors.background);
|
|
30107
29808
|
this.network.on("stabilizationIterationsDone", () => {
|
|
30108
29809
|
this.network.setOptions({ physics: { enabled: true } });
|
|
30109
|
-
this.
|
|
29810
|
+
this.network.fit({ maxZoomLevel: 3 });
|
|
29811
|
+
this.setupContainerResize(container);
|
|
30110
29812
|
});
|
|
30111
29813
|
if (!this.themeObserver) {
|
|
30112
29814
|
this.themeObserver = watchThemeChanges((newTheme) => {
|
|
@@ -30114,43 +29816,28 @@ var GraphPlugin = class {
|
|
|
30114
29816
|
});
|
|
30115
29817
|
}
|
|
30116
29818
|
const controls = document.createElement("div");
|
|
30117
|
-
controls.
|
|
30118
|
-
controls.style.top = "10px";
|
|
30119
|
-
controls.style.right = "10px";
|
|
30120
|
-
controls.style.zIndex = "10000";
|
|
30121
|
-
controls.style.display = "flex";
|
|
30122
|
-
controls.style.gap = "10px";
|
|
30123
|
-
controls.style.pointerEvents = "auto";
|
|
29819
|
+
controls.className = "yasgui-graph-controls";
|
|
30124
29820
|
container.appendChild(controls);
|
|
30125
29821
|
const fitButton = document.createElement("button");
|
|
29822
|
+
fitButton.className = "yasgui-graph-button";
|
|
30126
29823
|
fitButton.textContent = "Zoom to Fit";
|
|
30127
|
-
fitButton.style.padding = "8px 12px";
|
|
30128
|
-
fitButton.style.background = "#4CAF50";
|
|
30129
|
-
fitButton.style.color = "white";
|
|
30130
|
-
fitButton.style.border = "none";
|
|
30131
|
-
fitButton.style.borderRadius = "4px";
|
|
30132
|
-
fitButton.style.cursor = "pointer";
|
|
30133
|
-
fitButton.style.fontSize = "14px";
|
|
30134
|
-
fitButton.style.boxShadow = "0 2px 4px rgba(0,0,0,0.2)";
|
|
30135
|
-
fitButton.onmouseover = () => fitButton.style.background = "#45a049";
|
|
30136
|
-
fitButton.onmouseout = () => fitButton.style.background = "#4CAF50";
|
|
30137
29824
|
fitButton.onclick = () => {
|
|
30138
29825
|
if (this.network) {
|
|
30139
|
-
this.network.fit({ animation: { duration: 300, easingFunction: "easeInOutQuad" } });
|
|
29826
|
+
this.network.fit({ maxZoomLevel: 1e3, animation: { duration: 300, easingFunction: "easeInOutQuad" } });
|
|
30140
29827
|
}
|
|
30141
29828
|
};
|
|
30142
29829
|
controls.appendChild(fitButton);
|
|
30143
|
-
if (triples.length > 1e3) {
|
|
30144
|
-
console.warn("Large graph detected (>1000 triples). Rendering may be slow.");
|
|
30145
|
-
}
|
|
30146
29830
|
} catch (error) {
|
|
30147
29831
|
console.error("Error rendering graph:", error);
|
|
30148
|
-
|
|
29832
|
+
const errorDiv = document.createElement("div");
|
|
29833
|
+
errorDiv.className = "yasgui-graph-plugin-error";
|
|
29834
|
+
errorDiv.textContent = "Error rendering graph. See console for details.";
|
|
29835
|
+
this.yasr.resultsEl.appendChild(errorDiv);
|
|
30149
29836
|
}
|
|
30150
29837
|
}
|
|
30151
29838
|
/**
|
|
30152
29839
|
* Apply theme to existing network
|
|
30153
|
-
* @param
|
|
29840
|
+
* @param newTheme - 'light' or 'dark'
|
|
30154
29841
|
*/
|
|
30155
29842
|
applyTheme(newTheme) {
|
|
30156
29843
|
if (!this.network || !this.nodesDataSet || !this.triples || !this.prefixMap) {
|
|
@@ -30165,17 +29852,48 @@ var GraphPlugin = class {
|
|
|
30165
29852
|
this.edgesDataSet.add(edges);
|
|
30166
29853
|
const options = getDefaultNetworkOptions(themeColors);
|
|
30167
29854
|
this.network.setOptions(options);
|
|
29855
|
+
this.applyCanvasBackground(themeColors.background);
|
|
29856
|
+
}
|
|
29857
|
+
/**
|
|
29858
|
+
* Apply background color to vis-network canvas using CSS custom property
|
|
29859
|
+
* @param color - Background color
|
|
29860
|
+
*/
|
|
29861
|
+
applyCanvasBackground(color) {
|
|
29862
|
+
if (this.network && this.network.body && this.network.body.container) {
|
|
29863
|
+
this.network.body.container.style.setProperty("--yasgui-graph-canvas-bg", color);
|
|
29864
|
+
}
|
|
29865
|
+
}
|
|
29866
|
+
/**
|
|
29867
|
+
* Setup ResizeObserver to adjust container height based on parent
|
|
29868
|
+
* Workaround for viz-network bug: container must have fixed pixel height
|
|
29869
|
+
* @param container - The graph container element
|
|
29870
|
+
*/
|
|
29871
|
+
setupContainerResize(container) {
|
|
29872
|
+
const parent2 = container.parentElement;
|
|
29873
|
+
if (!parent2) return;
|
|
29874
|
+
const updateHeight = () => {
|
|
29875
|
+
const parentHeight = parent2.clientHeight;
|
|
29876
|
+
if (parentHeight > 0) {
|
|
29877
|
+
container.style.height = `${parentHeight}px`;
|
|
29878
|
+
if (this.network) {
|
|
29879
|
+
this.network.fit({ maxZoomLevel: 1e3 });
|
|
29880
|
+
}
|
|
29881
|
+
}
|
|
29882
|
+
};
|
|
29883
|
+
updateHeight();
|
|
29884
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
29885
|
+
updateHeight();
|
|
29886
|
+
});
|
|
29887
|
+
this.resizeObserver.observe(parent2);
|
|
30168
29888
|
}
|
|
30169
29889
|
/**
|
|
30170
29890
|
* Get icon for plugin tab
|
|
30171
|
-
* @returns
|
|
29891
|
+
* @returns Icon element
|
|
30172
29892
|
*/
|
|
30173
29893
|
getIcon() {
|
|
30174
29894
|
const icon = document.createElement("div");
|
|
29895
|
+
icon.className = "yasgui-graph-icon";
|
|
30175
29896
|
icon.setAttribute("aria-label", "Graph visualization");
|
|
30176
|
-
icon.style.display = "inline-flex";
|
|
30177
|
-
icon.style.alignItems = "center";
|
|
30178
|
-
icon.style.justifyContent = "center";
|
|
30179
29897
|
icon.innerHTML = `<svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
30180
29898
|
<circle cx="3" cy="3" r="2" />
|
|
30181
29899
|
<circle cx="13" cy="3" r="2" />
|
|
@@ -30194,6 +29912,10 @@ var GraphPlugin = class {
|
|
|
30194
29912
|
this.themeObserver.disconnect();
|
|
30195
29913
|
this.themeObserver = null;
|
|
30196
29914
|
}
|
|
29915
|
+
if (this.resizeObserver) {
|
|
29916
|
+
this.resizeObserver.disconnect();
|
|
29917
|
+
this.resizeObserver = null;
|
|
29918
|
+
}
|
|
30197
29919
|
if (this.network) {
|
|
30198
29920
|
this.network.destroy();
|
|
30199
29921
|
this.network = null;
|
|
@@ -30202,11 +29924,11 @@ var GraphPlugin = class {
|
|
|
30202
29924
|
};
|
|
30203
29925
|
var GraphPlugin_default = GraphPlugin;
|
|
30204
29926
|
|
|
30205
|
-
// src/index.
|
|
29927
|
+
// src/index.ts
|
|
30206
29928
|
if (typeof window !== "undefined" && window.Yasgui && window.Yasgui.Yasr) {
|
|
30207
29929
|
window.Yasgui.Yasr.registerPlugin("Graph", GraphPlugin_default);
|
|
30208
29930
|
}
|
|
30209
|
-
var
|
|
29931
|
+
var index_default = GraphPlugin_default;
|
|
30210
29932
|
/*! Bundled license information:
|
|
30211
29933
|
|
|
30212
29934
|
vis-network/standalone/esm/vis-network.js:
|