@vitessce/heatmap 3.5.6 → 3.5.8
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/dist/{deflate-654433d0.js → deflate-0ad22b29.js} +1 -1
- package/dist/{index-85bbcec2.js → index-1efb621a.js} +883 -626
- package/dist/index.js +1 -1
- package/dist/{jpeg-189c0f73.js → jpeg-c9fcfef5.js} +1 -1
- package/dist/{lerc-a252d7c6.js → lerc-a13625a5.js} +1 -1
- package/dist/{lzw-1dfe1a39.js → lzw-a6f4336c.js} +1 -1
- package/dist/{packbits-d5a97c67.js → packbits-3a229772.js} +1 -1
- package/dist/{raw-563885e6.js → raw-e57b711b.js} +1 -1
- package/dist/{webimage-67fc7734.js → webimage-1ade83b1.js} +1 -1
- package/package.json +9 -9
|
@@ -1350,6 +1350,258 @@ function getNextScope(prevScopes) {
|
|
|
1350
1350
|
} while (prevScopes.includes(nextScope));
|
|
1351
1351
|
return nextScope;
|
|
1352
1352
|
}
|
|
1353
|
+
var loglevel = { exports: {} };
|
|
1354
|
+
(function(module2) {
|
|
1355
|
+
(function(root2, definition) {
|
|
1356
|
+
if (module2.exports) {
|
|
1357
|
+
module2.exports = definition();
|
|
1358
|
+
} else {
|
|
1359
|
+
root2.log = definition();
|
|
1360
|
+
}
|
|
1361
|
+
})(commonjsGlobal, function() {
|
|
1362
|
+
var noop2 = function() {
|
|
1363
|
+
};
|
|
1364
|
+
var undefinedType2 = "undefined";
|
|
1365
|
+
var isIE2 = typeof window !== undefinedType2 && typeof window.navigator !== undefinedType2 && /Trident\/|MSIE /.test(window.navigator.userAgent);
|
|
1366
|
+
var logMethods = [
|
|
1367
|
+
"trace",
|
|
1368
|
+
"debug",
|
|
1369
|
+
"info",
|
|
1370
|
+
"warn",
|
|
1371
|
+
"error"
|
|
1372
|
+
];
|
|
1373
|
+
var _loggersByName = {};
|
|
1374
|
+
var defaultLogger = null;
|
|
1375
|
+
function bindMethod(obj, methodName) {
|
|
1376
|
+
var method = obj[methodName];
|
|
1377
|
+
if (typeof method.bind === "function") {
|
|
1378
|
+
return method.bind(obj);
|
|
1379
|
+
} else {
|
|
1380
|
+
try {
|
|
1381
|
+
return Function.prototype.bind.call(method, obj);
|
|
1382
|
+
} catch (e3) {
|
|
1383
|
+
return function() {
|
|
1384
|
+
return Function.prototype.apply.apply(method, [obj, arguments]);
|
|
1385
|
+
};
|
|
1386
|
+
}
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
function traceForIE() {
|
|
1390
|
+
if (console.log) {
|
|
1391
|
+
if (console.log.apply) {
|
|
1392
|
+
console.log.apply(console, arguments);
|
|
1393
|
+
} else {
|
|
1394
|
+
Function.prototype.apply.apply(console.log, [console, arguments]);
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
if (console.trace)
|
|
1398
|
+
console.trace();
|
|
1399
|
+
}
|
|
1400
|
+
function realMethod(methodName) {
|
|
1401
|
+
if (methodName === "debug") {
|
|
1402
|
+
methodName = "log";
|
|
1403
|
+
}
|
|
1404
|
+
if (typeof console === undefinedType2) {
|
|
1405
|
+
return false;
|
|
1406
|
+
} else if (methodName === "trace" && isIE2) {
|
|
1407
|
+
return traceForIE;
|
|
1408
|
+
} else if (console[methodName] !== void 0) {
|
|
1409
|
+
return bindMethod(console, methodName);
|
|
1410
|
+
} else if (console.log !== void 0) {
|
|
1411
|
+
return bindMethod(console, "log");
|
|
1412
|
+
} else {
|
|
1413
|
+
return noop2;
|
|
1414
|
+
}
|
|
1415
|
+
}
|
|
1416
|
+
function replaceLoggingMethods() {
|
|
1417
|
+
var level = this.getLevel();
|
|
1418
|
+
for (var i2 = 0; i2 < logMethods.length; i2++) {
|
|
1419
|
+
var methodName = logMethods[i2];
|
|
1420
|
+
this[methodName] = i2 < level ? noop2 : this.methodFactory(methodName, level, this.name);
|
|
1421
|
+
}
|
|
1422
|
+
this.log = this.debug;
|
|
1423
|
+
if (typeof console === undefinedType2 && level < this.levels.SILENT) {
|
|
1424
|
+
return "No console available for logging";
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
function enableLoggingWhenConsoleArrives(methodName) {
|
|
1428
|
+
return function() {
|
|
1429
|
+
if (typeof console !== undefinedType2) {
|
|
1430
|
+
replaceLoggingMethods.call(this);
|
|
1431
|
+
this[methodName].apply(this, arguments);
|
|
1432
|
+
}
|
|
1433
|
+
};
|
|
1434
|
+
}
|
|
1435
|
+
function defaultMethodFactory(methodName, _level, _loggerName) {
|
|
1436
|
+
return realMethod(methodName) || enableLoggingWhenConsoleArrives.apply(this, arguments);
|
|
1437
|
+
}
|
|
1438
|
+
function Logger(name2, factory) {
|
|
1439
|
+
var self2 = this;
|
|
1440
|
+
var inheritedLevel;
|
|
1441
|
+
var defaultLevel;
|
|
1442
|
+
var userLevel;
|
|
1443
|
+
var storageKey = "loglevel";
|
|
1444
|
+
if (typeof name2 === "string") {
|
|
1445
|
+
storageKey += ":" + name2;
|
|
1446
|
+
} else if (typeof name2 === "symbol") {
|
|
1447
|
+
storageKey = void 0;
|
|
1448
|
+
}
|
|
1449
|
+
function persistLevelIfPossible(levelNum) {
|
|
1450
|
+
var levelName = (logMethods[levelNum] || "silent").toUpperCase();
|
|
1451
|
+
if (typeof window === undefinedType2 || !storageKey)
|
|
1452
|
+
return;
|
|
1453
|
+
try {
|
|
1454
|
+
window.localStorage[storageKey] = levelName;
|
|
1455
|
+
return;
|
|
1456
|
+
} catch (ignore) {
|
|
1457
|
+
}
|
|
1458
|
+
try {
|
|
1459
|
+
window.document.cookie = encodeURIComponent(storageKey) + "=" + levelName + ";";
|
|
1460
|
+
} catch (ignore) {
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
function getPersistedLevel() {
|
|
1464
|
+
var storedLevel;
|
|
1465
|
+
if (typeof window === undefinedType2 || !storageKey)
|
|
1466
|
+
return;
|
|
1467
|
+
try {
|
|
1468
|
+
storedLevel = window.localStorage[storageKey];
|
|
1469
|
+
} catch (ignore) {
|
|
1470
|
+
}
|
|
1471
|
+
if (typeof storedLevel === undefinedType2) {
|
|
1472
|
+
try {
|
|
1473
|
+
var cookie = window.document.cookie;
|
|
1474
|
+
var cookieName = encodeURIComponent(storageKey);
|
|
1475
|
+
var location = cookie.indexOf(cookieName + "=");
|
|
1476
|
+
if (location !== -1) {
|
|
1477
|
+
storedLevel = /^([^;]+)/.exec(
|
|
1478
|
+
cookie.slice(location + cookieName.length + 1)
|
|
1479
|
+
)[1];
|
|
1480
|
+
}
|
|
1481
|
+
} catch (ignore) {
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
if (self2.levels[storedLevel] === void 0) {
|
|
1485
|
+
storedLevel = void 0;
|
|
1486
|
+
}
|
|
1487
|
+
return storedLevel;
|
|
1488
|
+
}
|
|
1489
|
+
function clearPersistedLevel() {
|
|
1490
|
+
if (typeof window === undefinedType2 || !storageKey)
|
|
1491
|
+
return;
|
|
1492
|
+
try {
|
|
1493
|
+
window.localStorage.removeItem(storageKey);
|
|
1494
|
+
} catch (ignore) {
|
|
1495
|
+
}
|
|
1496
|
+
try {
|
|
1497
|
+
window.document.cookie = encodeURIComponent(storageKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
|
|
1498
|
+
} catch (ignore) {
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
function normalizeLevel(input) {
|
|
1502
|
+
var level = input;
|
|
1503
|
+
if (typeof level === "string" && self2.levels[level.toUpperCase()] !== void 0) {
|
|
1504
|
+
level = self2.levels[level.toUpperCase()];
|
|
1505
|
+
}
|
|
1506
|
+
if (typeof level === "number" && level >= 0 && level <= self2.levels.SILENT) {
|
|
1507
|
+
return level;
|
|
1508
|
+
} else {
|
|
1509
|
+
throw new TypeError("log.setLevel() called with invalid level: " + input);
|
|
1510
|
+
}
|
|
1511
|
+
}
|
|
1512
|
+
self2.name = name2;
|
|
1513
|
+
self2.levels = {
|
|
1514
|
+
"TRACE": 0,
|
|
1515
|
+
"DEBUG": 1,
|
|
1516
|
+
"INFO": 2,
|
|
1517
|
+
"WARN": 3,
|
|
1518
|
+
"ERROR": 4,
|
|
1519
|
+
"SILENT": 5
|
|
1520
|
+
};
|
|
1521
|
+
self2.methodFactory = factory || defaultMethodFactory;
|
|
1522
|
+
self2.getLevel = function() {
|
|
1523
|
+
if (userLevel != null) {
|
|
1524
|
+
return userLevel;
|
|
1525
|
+
} else if (defaultLevel != null) {
|
|
1526
|
+
return defaultLevel;
|
|
1527
|
+
} else {
|
|
1528
|
+
return inheritedLevel;
|
|
1529
|
+
}
|
|
1530
|
+
};
|
|
1531
|
+
self2.setLevel = function(level, persist) {
|
|
1532
|
+
userLevel = normalizeLevel(level);
|
|
1533
|
+
if (persist !== false) {
|
|
1534
|
+
persistLevelIfPossible(userLevel);
|
|
1535
|
+
}
|
|
1536
|
+
return replaceLoggingMethods.call(self2);
|
|
1537
|
+
};
|
|
1538
|
+
self2.setDefaultLevel = function(level) {
|
|
1539
|
+
defaultLevel = normalizeLevel(level);
|
|
1540
|
+
if (!getPersistedLevel()) {
|
|
1541
|
+
self2.setLevel(level, false);
|
|
1542
|
+
}
|
|
1543
|
+
};
|
|
1544
|
+
self2.resetLevel = function() {
|
|
1545
|
+
userLevel = null;
|
|
1546
|
+
clearPersistedLevel();
|
|
1547
|
+
replaceLoggingMethods.call(self2);
|
|
1548
|
+
};
|
|
1549
|
+
self2.enableAll = function(persist) {
|
|
1550
|
+
self2.setLevel(self2.levels.TRACE, persist);
|
|
1551
|
+
};
|
|
1552
|
+
self2.disableAll = function(persist) {
|
|
1553
|
+
self2.setLevel(self2.levels.SILENT, persist);
|
|
1554
|
+
};
|
|
1555
|
+
self2.rebuild = function() {
|
|
1556
|
+
if (defaultLogger !== self2) {
|
|
1557
|
+
inheritedLevel = normalizeLevel(defaultLogger.getLevel());
|
|
1558
|
+
}
|
|
1559
|
+
replaceLoggingMethods.call(self2);
|
|
1560
|
+
if (defaultLogger === self2) {
|
|
1561
|
+
for (var childName in _loggersByName) {
|
|
1562
|
+
_loggersByName[childName].rebuild();
|
|
1563
|
+
}
|
|
1564
|
+
}
|
|
1565
|
+
};
|
|
1566
|
+
inheritedLevel = normalizeLevel(
|
|
1567
|
+
defaultLogger ? defaultLogger.getLevel() : "WARN"
|
|
1568
|
+
);
|
|
1569
|
+
var initialLevel = getPersistedLevel();
|
|
1570
|
+
if (initialLevel != null) {
|
|
1571
|
+
userLevel = normalizeLevel(initialLevel);
|
|
1572
|
+
}
|
|
1573
|
+
replaceLoggingMethods.call(self2);
|
|
1574
|
+
}
|
|
1575
|
+
defaultLogger = new Logger();
|
|
1576
|
+
defaultLogger.getLogger = function getLogger(name2) {
|
|
1577
|
+
if (typeof name2 !== "symbol" && typeof name2 !== "string" || name2 === "") {
|
|
1578
|
+
throw new TypeError("You must supply a name when creating a logger.");
|
|
1579
|
+
}
|
|
1580
|
+
var logger = _loggersByName[name2];
|
|
1581
|
+
if (!logger) {
|
|
1582
|
+
logger = _loggersByName[name2] = new Logger(
|
|
1583
|
+
name2,
|
|
1584
|
+
defaultLogger.methodFactory
|
|
1585
|
+
);
|
|
1586
|
+
}
|
|
1587
|
+
return logger;
|
|
1588
|
+
};
|
|
1589
|
+
var _log = typeof window !== undefinedType2 ? window.log : void 0;
|
|
1590
|
+
defaultLogger.noConflict = function() {
|
|
1591
|
+
if (typeof window !== undefinedType2 && window.log === defaultLogger) {
|
|
1592
|
+
window.log = _log;
|
|
1593
|
+
}
|
|
1594
|
+
return defaultLogger;
|
|
1595
|
+
};
|
|
1596
|
+
defaultLogger.getLoggers = function getLoggers2() {
|
|
1597
|
+
return _loggersByName;
|
|
1598
|
+
};
|
|
1599
|
+
defaultLogger["default"] = defaultLogger;
|
|
1600
|
+
return defaultLogger;
|
|
1601
|
+
});
|
|
1602
|
+
})(loglevel);
|
|
1603
|
+
var loglevelExports = loglevel.exports;
|
|
1604
|
+
const log$5 = /* @__PURE__ */ getDefaultExportFromCjs(loglevelExports);
|
|
1353
1605
|
const DEFAULT_DARK_COLOR = [50, 50, 50];
|
|
1354
1606
|
const DEFAULT_LIGHT_COLOR$3 = [200, 200, 200];
|
|
1355
1607
|
const DEFAULT_LIGHT2_COLOR = [235, 235, 235];
|
|
@@ -1358,16 +1610,16 @@ function getDefaultColor(theme) {
|
|
|
1358
1610
|
}
|
|
1359
1611
|
const DEFAULT_GL_OPTIONS = { webgl2: true };
|
|
1360
1612
|
function createDefaultUpdateCellsHover(componentName) {
|
|
1361
|
-
return (hoverInfo) =>
|
|
1613
|
+
return (hoverInfo) => log$5.warn(`${componentName} updateCellsHover: ${hoverInfo.cellId}`);
|
|
1362
1614
|
}
|
|
1363
1615
|
function createDefaultUpdateGenesHover(componentName) {
|
|
1364
|
-
return (hoverInfo) =>
|
|
1616
|
+
return (hoverInfo) => log$5.warn(`${componentName} updateGenesHover: ${hoverInfo.geneId}`);
|
|
1365
1617
|
}
|
|
1366
1618
|
function createDefaultUpdateTracksHover(componentName) {
|
|
1367
|
-
return (hoverInfo) =>
|
|
1619
|
+
return (hoverInfo) => log$5.warn(`${componentName} updateTracksHover: ${hoverInfo}`);
|
|
1368
1620
|
}
|
|
1369
1621
|
function createDefaultUpdateViewInfo(componentName) {
|
|
1370
|
-
return (viewInfo) =>
|
|
1622
|
+
return (viewInfo) => log$5.warn(`${componentName} updateViewInfo: ${viewInfo}`);
|
|
1371
1623
|
}
|
|
1372
1624
|
function copyUint8Array(arr) {
|
|
1373
1625
|
const newBuffer = new ArrayBuffer(arr.buffer.byteLength);
|
|
@@ -1524,7 +1776,7 @@ var reTrimStart = /^\s+/;
|
|
|
1524
1776
|
function baseTrim(string2) {
|
|
1525
1777
|
return string2 ? string2.slice(0, trimmedEndIndex(string2) + 1).replace(reTrimStart, "") : string2;
|
|
1526
1778
|
}
|
|
1527
|
-
function isObject$
|
|
1779
|
+
function isObject$5(value) {
|
|
1528
1780
|
var type2 = typeof value;
|
|
1529
1781
|
return value != null && (type2 == "object" || type2 == "function");
|
|
1530
1782
|
}
|
|
@@ -1540,9 +1792,9 @@ function toNumber$1(value) {
|
|
|
1540
1792
|
if (isSymbol$1(value)) {
|
|
1541
1793
|
return NAN$1;
|
|
1542
1794
|
}
|
|
1543
|
-
if (isObject$
|
|
1795
|
+
if (isObject$5(value)) {
|
|
1544
1796
|
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
1545
|
-
value = isObject$
|
|
1797
|
+
value = isObject$5(other) ? other + "" : other;
|
|
1546
1798
|
}
|
|
1547
1799
|
if (typeof value != "string") {
|
|
1548
1800
|
return value === 0 ? value : +value;
|
|
@@ -1564,8 +1816,8 @@ function toFinite(value) {
|
|
|
1564
1816
|
return value === value ? value : 0;
|
|
1565
1817
|
}
|
|
1566
1818
|
var asyncTag = "[object AsyncFunction]", funcTag$2 = "[object Function]", genTag$1 = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
1567
|
-
function isFunction$
|
|
1568
|
-
if (!isObject$
|
|
1819
|
+
function isFunction$4(value) {
|
|
1820
|
+
if (!isObject$5(value)) {
|
|
1569
1821
|
return false;
|
|
1570
1822
|
}
|
|
1571
1823
|
var tag = baseGetTag(value);
|
|
@@ -1604,10 +1856,10 @@ var reIsNative = RegExp(
|
|
|
1604
1856
|
"^" + funcToString.call(hasOwnProperty$c).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
1605
1857
|
);
|
|
1606
1858
|
function baseIsNative(value) {
|
|
1607
|
-
if (!isObject$
|
|
1859
|
+
if (!isObject$5(value) || isMasked(value)) {
|
|
1608
1860
|
return false;
|
|
1609
1861
|
}
|
|
1610
|
-
var pattern = isFunction$
|
|
1862
|
+
var pattern = isFunction$4(value) ? reIsNative : reIsHostCtor;
|
|
1611
1863
|
return pattern.test(toSource(value));
|
|
1612
1864
|
}
|
|
1613
1865
|
function getValue$1(object2, key) {
|
|
@@ -1624,7 +1876,7 @@ var baseCreate = function() {
|
|
|
1624
1876
|
function object2() {
|
|
1625
1877
|
}
|
|
1626
1878
|
return function(proto) {
|
|
1627
|
-
if (!isObject$
|
|
1879
|
+
if (!isObject$5(proto)) {
|
|
1628
1880
|
return {};
|
|
1629
1881
|
}
|
|
1630
1882
|
if (objectCreate) {
|
|
@@ -1716,10 +1968,10 @@ function isLength(value) {
|
|
|
1716
1968
|
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER$2;
|
|
1717
1969
|
}
|
|
1718
1970
|
function isArrayLike(value) {
|
|
1719
|
-
return value != null && isLength(value.length) && !isFunction$
|
|
1971
|
+
return value != null && isLength(value.length) && !isFunction$4(value);
|
|
1720
1972
|
}
|
|
1721
1973
|
function isIterateeCall(value, index2, object2) {
|
|
1722
|
-
if (!isObject$
|
|
1974
|
+
if (!isObject$5(object2)) {
|
|
1723
1975
|
return false;
|
|
1724
1976
|
}
|
|
1725
1977
|
var type2 = typeof index2;
|
|
@@ -1845,7 +2097,7 @@ function nativeKeysIn(object2) {
|
|
|
1845
2097
|
var objectProto$7 = Object.prototype;
|
|
1846
2098
|
var hasOwnProperty$7 = objectProto$7.hasOwnProperty;
|
|
1847
2099
|
function baseKeysIn(object2) {
|
|
1848
|
-
if (!isObject$
|
|
2100
|
+
if (!isObject$5(object2)) {
|
|
1849
2101
|
return nativeKeysIn(object2);
|
|
1850
2102
|
}
|
|
1851
2103
|
var isProto = isPrototype(object2), result = [];
|
|
@@ -2291,7 +2543,7 @@ function baseClone(value, bitmask, customizer, key, object2, stack2) {
|
|
|
2291
2543
|
if (result !== void 0) {
|
|
2292
2544
|
return result;
|
|
2293
2545
|
}
|
|
2294
|
-
if (!isObject$
|
|
2546
|
+
if (!isObject$5(value)) {
|
|
2295
2547
|
return value;
|
|
2296
2548
|
}
|
|
2297
2549
|
var isArr = isArray$4(value);
|
|
@@ -2585,7 +2837,7 @@ function debounce$2(func, wait, options) {
|
|
|
2585
2837
|
throw new TypeError(FUNC_ERROR_TEXT$1);
|
|
2586
2838
|
}
|
|
2587
2839
|
wait = toNumber$1(wait) || 0;
|
|
2588
|
-
if (isObject$
|
|
2840
|
+
if (isObject$5(options)) {
|
|
2589
2841
|
leading = !!options.leading;
|
|
2590
2842
|
maxing = "maxWait" in options;
|
|
2591
2843
|
maxWait = maxing ? nativeMax$2(toNumber$1(options.maxWait) || 0, wait) : maxWait;
|
|
@@ -2790,7 +3042,7 @@ function point(coordinates2, properties, options) {
|
|
|
2790
3042
|
if (coordinates2.length < 2) {
|
|
2791
3043
|
throw new Error("coordinates must be at least 2 numbers long");
|
|
2792
3044
|
}
|
|
2793
|
-
if (!isNumber(coordinates2[0]) || !isNumber(coordinates2[1])) {
|
|
3045
|
+
if (!isNumber$1(coordinates2[0]) || !isNumber$1(coordinates2[1])) {
|
|
2794
3046
|
throw new Error("coordinates must contain numbers");
|
|
2795
3047
|
}
|
|
2796
3048
|
var geom = {
|
|
@@ -2991,10 +3243,10 @@ function convertArea(area2, originalUnit, finalUnit) {
|
|
|
2991
3243
|
}
|
|
2992
3244
|
return area2 / startFactor * finalFactor;
|
|
2993
3245
|
}
|
|
2994
|
-
function isNumber(num) {
|
|
3246
|
+
function isNumber$1(num) {
|
|
2995
3247
|
return !isNaN(num) && num !== null && !Array.isArray(num);
|
|
2996
3248
|
}
|
|
2997
|
-
function isObject$
|
|
3249
|
+
function isObject$4(input) {
|
|
2998
3250
|
return !!input && input.constructor === Object;
|
|
2999
3251
|
}
|
|
3000
3252
|
function validateBBox(bbox2) {
|
|
@@ -3008,7 +3260,7 @@ function validateBBox(bbox2) {
|
|
|
3008
3260
|
throw new Error("bbox must be an Array of 4 or 6 numbers");
|
|
3009
3261
|
}
|
|
3010
3262
|
bbox2.forEach(function(num) {
|
|
3011
|
-
if (!isNumber(num)) {
|
|
3263
|
+
if (!isNumber$1(num)) {
|
|
3012
3264
|
throw new Error("bbox must only contain numbers");
|
|
3013
3265
|
}
|
|
3014
3266
|
});
|
|
@@ -3034,8 +3286,8 @@ const es$7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty
|
|
|
3034
3286
|
featureCollection: featureCollection$1,
|
|
3035
3287
|
geometry: geometry$1,
|
|
3036
3288
|
geometryCollection,
|
|
3037
|
-
isNumber,
|
|
3038
|
-
isObject: isObject$
|
|
3289
|
+
isNumber: isNumber$1,
|
|
3290
|
+
isObject: isObject$4,
|
|
3039
3291
|
lengthToDegrees,
|
|
3040
3292
|
lengthToRadians,
|
|
3041
3293
|
lineString,
|
|
@@ -3477,7 +3729,7 @@ function lineReduce$1(geojson, callback, initialValue) {
|
|
|
3477
3729
|
}
|
|
3478
3730
|
function findSegment$1(geojson, options) {
|
|
3479
3731
|
options = options || {};
|
|
3480
|
-
if (!isObject$
|
|
3732
|
+
if (!isObject$4(options))
|
|
3481
3733
|
throw new Error("options is invalid");
|
|
3482
3734
|
var featureIndex = options.featureIndex || 0;
|
|
3483
3735
|
var multiFeatureIndex = options.multiFeatureIndex || 0;
|
|
@@ -3569,7 +3821,7 @@ function findSegment$1(geojson, options) {
|
|
|
3569
3821
|
}
|
|
3570
3822
|
function findPoint$1(geojson, options) {
|
|
3571
3823
|
options = options || {};
|
|
3572
|
-
if (!isObject$
|
|
3824
|
+
if (!isObject$4(options))
|
|
3573
3825
|
throw new Error("options is invalid");
|
|
3574
3826
|
var featureIndex = options.featureIndex || 0;
|
|
3575
3827
|
var multiFeatureIndex = options.multiFeatureIndex || 0;
|
|
@@ -8767,7 +9019,7 @@ function upgradeFrom1_0_14(config2) {
|
|
|
8767
9019
|
Object.entries(propAnalogies).forEach(([oldProp, newType]) => {
|
|
8768
9020
|
var _a2;
|
|
8769
9021
|
if ((_a2 = viewDef.props) == null ? void 0 : _a2[oldProp]) {
|
|
8770
|
-
|
|
9022
|
+
log$5.warn(`Warning: the '${oldProp}' prop on the ${viewDef.component} view is deprecated. Please use the '${newType}' coordination type instead.`);
|
|
8771
9023
|
}
|
|
8772
9024
|
});
|
|
8773
9025
|
});
|
|
@@ -8790,7 +9042,7 @@ function upgradeFrom1_0_15(config2) {
|
|
|
8790
9042
|
Object.entries(coordinationScopes).forEach(([coordinationType, coordinationScope]) => {
|
|
8791
9043
|
if (!Array.isArray(coordinationScope) && typeof coordinationScope === "object") {
|
|
8792
9044
|
if (coordinationType === "dataset") {
|
|
8793
|
-
|
|
9045
|
+
log$5.error("Expected coordinationScopes.dataset value to be either string or string[], but got object.");
|
|
8794
9046
|
}
|
|
8795
9047
|
coordinationScopesBy.dataset[coordinationType] = coordinationScope;
|
|
8796
9048
|
} else if (Array.isArray(coordinationScope) || typeof coordinationScope === "string") {
|
|
@@ -8900,9 +9152,9 @@ var debug_1 = debug$2;
|
|
|
8900
9152
|
const re2 = exports2.re = [];
|
|
8901
9153
|
const src = exports2.src = [];
|
|
8902
9154
|
const t2 = exports2.t = {};
|
|
8903
|
-
let
|
|
9155
|
+
let R = 0;
|
|
8904
9156
|
const createToken = (name2, value, isGlobal) => {
|
|
8905
|
-
const index2 =
|
|
9157
|
+
const index2 = R++;
|
|
8906
9158
|
debug2(name2, index2, value);
|
|
8907
9159
|
t2[name2] = index2;
|
|
8908
9160
|
src[index2] = value;
|
|
@@ -11001,9 +11253,15 @@ const ViewType$1 = {
|
|
|
11001
11253
|
FEATURE_VALUE_HISTOGRAM: "featureValueHistogram",
|
|
11002
11254
|
DOT_PLOT: "dotPlot",
|
|
11003
11255
|
FEATURE_BAR_PLOT: "featureBarPlot",
|
|
11256
|
+
VOLCANO_PLOT: "volcanoPlot",
|
|
11257
|
+
OBS_SET_COMPOSITION_BAR_PLOT: "obsSetCompositionBarPlot",
|
|
11258
|
+
FEATURE_SET_ENRICHMENT_BAR_PLOT: "featureSetEnrichmentBarPlot",
|
|
11004
11259
|
BIOMARKER_SELECT: "biomarkerSelect",
|
|
11260
|
+
COMPARATIVE_HEADING: "comparativeHeading",
|
|
11005
11261
|
LINK_CONTROLLER: "linkController",
|
|
11006
|
-
|
|
11262
|
+
NEUROGLANCER: "neuroglancer",
|
|
11263
|
+
DUAL_SCATTERPLOT: "dualScatterplot",
|
|
11264
|
+
TREEMAP: "treemap"
|
|
11007
11265
|
};
|
|
11008
11266
|
const DataType$2 = {
|
|
11009
11267
|
OBS_LABELS: "obsLabels",
|
|
@@ -11019,7 +11277,11 @@ const DataType$2 = {
|
|
|
11019
11277
|
OBS_POINTS: "obsPoints",
|
|
11020
11278
|
OBS_LOCATIONS: "obsLocations",
|
|
11021
11279
|
SAMPLE_SETS: "sampleSets",
|
|
11022
|
-
SAMPLE_EDGES: "sampleEdges"
|
|
11280
|
+
SAMPLE_EDGES: "sampleEdges",
|
|
11281
|
+
COMPARISON_METADATA: "comparisonMetadata",
|
|
11282
|
+
FEATURE_STATS: "featureStats",
|
|
11283
|
+
FEATURE_SET_STATS: "featureSetStats",
|
|
11284
|
+
OBS_SET_STATS: "obsSetStats"
|
|
11023
11285
|
};
|
|
11024
11286
|
const FileType$1 = {
|
|
11025
11287
|
// Joint file types
|
|
@@ -11057,6 +11319,11 @@ const FileType$1 = {
|
|
|
11057
11319
|
OBS_LABELS_ANNDATA_ZARR: "obsLabels.anndata.zarr",
|
|
11058
11320
|
FEATURE_LABELS_ANNDATA_ZARR: "featureLabels.anndata.zarr",
|
|
11059
11321
|
SAMPLE_EDGES_ANNDATA_ZARR: "sampleEdges.anndata.zarr",
|
|
11322
|
+
SAMPLE_SETS_ANNDATA_ZARR: "sampleSets.anndata.zarr",
|
|
11323
|
+
COMPARISON_METADATA_ANNDATA_ZARR: "comparisonMetadata.anndata.zarr",
|
|
11324
|
+
COMPARATIVE_FEATURE_STATS_ANNDATA_ZARR: "comparativeFeatureStats.anndata.zarr",
|
|
11325
|
+
COMPARATIVE_FEATURE_SET_STATS_ANNDATA_ZARR: "comparativeFeatureSetStats.anndata.zarr",
|
|
11326
|
+
COMPARATIVE_OBS_SET_STATS_ANNDATA_ZARR: "comparativeObsSetStats.anndata.zarr",
|
|
11060
11327
|
// AnnData - zipped
|
|
11061
11328
|
OBS_FEATURE_MATRIX_ANNDATA_ZARR_ZIP: "obsFeatureMatrix.anndata.zarr.zip",
|
|
11062
11329
|
OBS_FEATURE_COLUMNS_ANNDATA_ZARR_ZIP: "obsFeatureColumns.anndata.zarr.zip",
|
|
@@ -11069,6 +11336,11 @@ const FileType$1 = {
|
|
|
11069
11336
|
OBS_LABELS_ANNDATA_ZARR_ZIP: "obsLabels.anndata.zarr.zip",
|
|
11070
11337
|
FEATURE_LABELS_ANNDATA_ZARR_ZIP: "featureLabels.anndata.zarr.zip",
|
|
11071
11338
|
SAMPLE_EDGES_ANNDATA_ZARR_ZIP: "sampleEdges.anndata.zarr.zip",
|
|
11339
|
+
SAMPLE_SETS_ANNDATA_ZARR_ZIP: "sampleSets.anndata.zarr.zip",
|
|
11340
|
+
COMPARISON_METADATA_ANNDATA_ZARR_ZIP: "comparisonMetadata.anndata.zarr.zip",
|
|
11341
|
+
COMPARATIVE_FEATURE_STATS_ANNDATA_ZARR_ZIP: "comparativeFeatureStats.anndata.zarr.zip",
|
|
11342
|
+
COMPARATIVE_FEATURE_SET_STATS_ANNDATA_ZARR_ZIP: "comparativeFeatureSetStats.anndata.zarr.zip",
|
|
11343
|
+
COMPARATIVE_OBS_SET_STATS_ANNDATA_ZARR_ZIP: "comparativeObsSetStats.anndata.zarr.zip",
|
|
11072
11344
|
// AnnData - h5ad via reference spec
|
|
11073
11345
|
OBS_FEATURE_MATRIX_ANNDATA_H5AD: "obsFeatureMatrix.anndata.h5ad",
|
|
11074
11346
|
OBS_FEATURE_COLUMNS_ANNDATA_H5AD: "obsFeatureColumns.anndata.h5ad",
|
|
@@ -11081,6 +11353,11 @@ const FileType$1 = {
|
|
|
11081
11353
|
OBS_LABELS_ANNDATA_H5AD: "obsLabels.anndata.h5ad",
|
|
11082
11354
|
FEATURE_LABELS_ANNDATA_H5AD: "featureLabels.anndata.h5ad",
|
|
11083
11355
|
SAMPLE_EDGES_ANNDATA_H5AD: "sampleEdges.anndata.h5ad",
|
|
11356
|
+
SAMPLE_SETS_ANNDATA_H5AD: "sampleSets.anndata.h5ad",
|
|
11357
|
+
COMPARISON_METADATA_ANNDATA_H5AD: "comparisonMetadata.anndata.h5ad",
|
|
11358
|
+
COMPARATIVE_FEATURE_STATS_ANNDATA_H5AD: "comparativeFeatureStats.anndata.h5ad",
|
|
11359
|
+
COMPARATIVE_FEATURE_SET_STATS_ANNDATA_H5AD: "comparativeFeatureSetStats.anndata.h5ad",
|
|
11360
|
+
COMPARATIVE_OBS_SET_STATS_ANNDATA_H5AD: "comparativeObsSetStats.anndata.h5ad",
|
|
11084
11361
|
// SpatialData
|
|
11085
11362
|
IMAGE_SPATIALDATA_ZARR: "image.spatialdata.zarr",
|
|
11086
11363
|
LABELS_SPATIALDATA_ZARR: "labels.spatialdata.zarr",
|
|
@@ -11272,12 +11549,20 @@ const CoordinationType$1 = {
|
|
|
11272
11549
|
SAMPLE_SET_FILTER: "sampleSetFilter",
|
|
11273
11550
|
SAMPLE_FILTER_MODE: "sampleFilterMode",
|
|
11274
11551
|
SAMPLE_SET_COLOR: "sampleSetColor",
|
|
11552
|
+
SAMPLE_HIGHLIGHT: "sampleHighlight",
|
|
11275
11553
|
EMBEDDING_POINTS_VISIBLE: "embeddingPointsVisible",
|
|
11276
11554
|
EMBEDDING_CONTOURS_VISIBLE: "embeddingContoursVisible",
|
|
11277
11555
|
EMBEDDING_CONTOURS_FILLED: "embeddingContoursFilled",
|
|
11278
11556
|
EMBEDDING_CONTOUR_PERCENTILES: "embeddingContourPercentiles",
|
|
11279
11557
|
CONTOUR_COLOR_ENCODING: "contourColorEncoding",
|
|
11280
|
-
CONTOUR_COLOR: "contourColor"
|
|
11558
|
+
CONTOUR_COLOR: "contourColor",
|
|
11559
|
+
// For volcano plot:
|
|
11560
|
+
FEATURE_POINT_SIGNIFICANCE_THRESHOLD: "featurePointSignificanceThreshold",
|
|
11561
|
+
FEATURE_LABEL_SIGNIFICANCE_THRESHOLD: "featureLabelSignificanceThreshold",
|
|
11562
|
+
FEATURE_POINT_FOLD_CHANGE_THRESHOLD: "featurePointFoldChangeThreshold",
|
|
11563
|
+
FEATURE_LABEL_FOLD_CHANGE_THRESHOLD: "featureLabelFoldChangeThreshold",
|
|
11564
|
+
// Treemap
|
|
11565
|
+
HIERARCHY_LEVELS: "hierarchyLevels"
|
|
11281
11566
|
};
|
|
11282
11567
|
const ViewHelpMapping = {
|
|
11283
11568
|
SCATTERPLOT: "The scatterplot displays two-dimensional (pre-computed) dimensionality reduction results (such as from t-SNE or UMAP). Each point on the scatterplot represents an observation (e.g., cell).",
|
|
@@ -11294,9 +11579,17 @@ const ViewHelpMapping = {
|
|
|
11294
11579
|
OBS_SET_FEATURE_VALUE_DISTRIBUTION: "The observation set feature value distribution view displays a violin plot with values (e.g., expression values) per set (e.g., cell type) for the selected feature (e.g., gene).",
|
|
11295
11580
|
FEATURE_VALUE_HISTOGRAM: "The feature value histogram displays the distribution of values (e.g., expression) for the selected feature (e.g., gene).",
|
|
11296
11581
|
DOT_PLOT: "The dot plot displays summary information about expression of the selected features (e.g., genes) for each selected observation set (e.g., cell type).",
|
|
11297
|
-
FEATURE_BAR_PLOT: "The feature bar plot displays one bar per observation (e.g., cell) along the x-axis, where the value of a selected feature (e.g., gene) is encoded along the y-axis."
|
|
11582
|
+
FEATURE_BAR_PLOT: "The feature bar plot displays one bar per observation (e.g., cell) along the x-axis, where the value of a selected feature (e.g., gene) is encoded along the y-axis.",
|
|
11583
|
+
NEUROGLANCER: "The Neuroglancer view displays 3d meshes using Neuroglancer developed by Google.",
|
|
11584
|
+
TREEMAP: "The treemap provides an overview of the current state of sample-level or cell-level selection and filtering.",
|
|
11585
|
+
VOLCANO_PLOT: "The volcano plot displays differential expression results. Each data point represents a feature (as opposed to an observation).",
|
|
11586
|
+
OBS_SET_COMPOSITION_BAR_PLOT: "The set composition bar plot displays the results of a compositional analysis conducted using the scCODA method (Büttner et al. 2021 Nature Communications).",
|
|
11587
|
+
FEATURE_SET_ENRICHMENT_BAR_PLOT: "The feature set enrichment bar plot displays the results of a hypergeometric test applied to the differential expression test results to identify enriched pathway gene sets."
|
|
11298
11588
|
};
|
|
11299
11589
|
const COMPONENT_COORDINATION_TYPES = {
|
|
11590
|
+
[ViewType$1.NEUROGLANCER]: [
|
|
11591
|
+
CoordinationType$1.DATASET
|
|
11592
|
+
],
|
|
11300
11593
|
[ViewType$1.SCATTERPLOT]: [
|
|
11301
11594
|
CoordinationType$1.DATASET,
|
|
11302
11595
|
CoordinationType$1.OBS_TYPE,
|
|
@@ -11766,14 +12059,106 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
11766
12059
|
CoordinationType$1.OBS_COLOR_ENCODING,
|
|
11767
12060
|
CoordinationType$1.ADDITIONAL_OBS_SETS
|
|
11768
12061
|
],
|
|
12062
|
+
[ViewType$1.VOLCANO_PLOT]: [
|
|
12063
|
+
CoordinationType$1.DATASET,
|
|
12064
|
+
CoordinationType$1.OBS_TYPE,
|
|
12065
|
+
CoordinationType$1.FEATURE_TYPE,
|
|
12066
|
+
CoordinationType$1.SAMPLE_TYPE,
|
|
12067
|
+
// For selection of case-control sets of samples:
|
|
12068
|
+
CoordinationType$1.SAMPLE_SET_SELECTION,
|
|
12069
|
+
// For selection of one-vs-others sets of observations:
|
|
12070
|
+
CoordinationType$1.OBS_SET_SELECTION,
|
|
12071
|
+
// TODO: CoordinationType.FEATURE_SET_SELECTION,
|
|
12072
|
+
// TODO: CoordinationType.FEATURE_SET_HIGHLIGHT,
|
|
12073
|
+
// TODO: CoordinationType.FEATURE_SET_COLOR,
|
|
12074
|
+
CoordinationType$1.FEATURE_HIGHLIGHT,
|
|
12075
|
+
CoordinationType$1.FEATURE_SELECTION,
|
|
12076
|
+
CoordinationType$1.FEATURE_VALUE_COLORMAP,
|
|
12077
|
+
CoordinationType$1.FEATURE_VALUE_COLORMAP_RANGE,
|
|
12078
|
+
// TODO: CoordinationType.FEATURE_COLOR_ENCODING,
|
|
12079
|
+
// TODO: CoordinationType.ADDITIONAL_FEATURE_SETS,
|
|
12080
|
+
CoordinationType$1.TOOLTIPS_VISIBLE,
|
|
12081
|
+
CoordinationType$1.ADDITIONAL_OBS_SETS,
|
|
12082
|
+
CoordinationType$1.OBS_SET_COLOR,
|
|
12083
|
+
CoordinationType$1.SAMPLE_SET_COLOR,
|
|
12084
|
+
CoordinationType$1.FEATURE_POINT_SIGNIFICANCE_THRESHOLD,
|
|
12085
|
+
CoordinationType$1.FEATURE_LABEL_SIGNIFICANCE_THRESHOLD,
|
|
12086
|
+
CoordinationType$1.FEATURE_POINT_FOLD_CHANGE_THRESHOLD,
|
|
12087
|
+
CoordinationType$1.FEATURE_LABEL_FOLD_CHANGE_THRESHOLD
|
|
12088
|
+
],
|
|
12089
|
+
[ViewType$1.OBS_SET_COMPOSITION_BAR_PLOT]: [
|
|
12090
|
+
CoordinationType$1.DATASET,
|
|
12091
|
+
CoordinationType$1.OBS_TYPE,
|
|
12092
|
+
CoordinationType$1.SAMPLE_TYPE,
|
|
12093
|
+
// For selection of case-control sets of samples:
|
|
12094
|
+
CoordinationType$1.SAMPLE_SET_SELECTION,
|
|
12095
|
+
// For selection of one-vs-others sets of observations:
|
|
12096
|
+
CoordinationType$1.OBS_SET_SELECTION,
|
|
12097
|
+
CoordinationType$1.ADDITIONAL_OBS_SETS,
|
|
12098
|
+
CoordinationType$1.OBS_SET_COLOR,
|
|
12099
|
+
CoordinationType$1.SAMPLE_SET_COLOR
|
|
12100
|
+
],
|
|
12101
|
+
[ViewType$1.FEATURE_SET_ENRICHMENT_BAR_PLOT]: [
|
|
12102
|
+
CoordinationType$1.DATASET,
|
|
12103
|
+
CoordinationType$1.OBS_TYPE,
|
|
12104
|
+
CoordinationType$1.FEATURE_TYPE,
|
|
12105
|
+
CoordinationType$1.SAMPLE_TYPE,
|
|
12106
|
+
// For selection of case-control sets of samples:
|
|
12107
|
+
CoordinationType$1.SAMPLE_SET_SELECTION,
|
|
12108
|
+
// For selection of one-vs-others sets of observations:
|
|
12109
|
+
CoordinationType$1.OBS_SET_SELECTION,
|
|
12110
|
+
CoordinationType$1.ADDITIONAL_OBS_SETS,
|
|
12111
|
+
CoordinationType$1.OBS_SET_COLOR,
|
|
12112
|
+
CoordinationType$1.SAMPLE_SET_COLOR,
|
|
12113
|
+
CoordinationType$1.FEATURE_SELECTION
|
|
12114
|
+
],
|
|
11769
12115
|
[ViewType$1.LINK_CONTROLLER]: [],
|
|
11770
12116
|
[ViewType$1.BIOMARKER_SELECT]: [
|
|
12117
|
+
CoordinationType$1.DATASET,
|
|
12118
|
+
CoordinationType$1.OBS_TYPE,
|
|
12119
|
+
CoordinationType$1.SAMPLE_TYPE,
|
|
11771
12120
|
CoordinationType$1.FEATURE_SELECTION,
|
|
11772
12121
|
CoordinationType$1.SAMPLE_SET_SELECTION,
|
|
11773
12122
|
CoordinationType$1.SAMPLE_SET_FILTER,
|
|
11774
12123
|
CoordinationType$1.OBS_SET_SELECTION,
|
|
11775
12124
|
CoordinationType$1.OBS_SET_FILTER
|
|
11776
12125
|
// TODO: create coordination types for internal state of the biomarker selection view?
|
|
12126
|
+
],
|
|
12127
|
+
[ViewType$1.COMPARATIVE_HEADING]: [
|
|
12128
|
+
CoordinationType$1.DATASET,
|
|
12129
|
+
CoordinationType$1.OBS_TYPE,
|
|
12130
|
+
CoordinationType$1.SAMPLE_TYPE,
|
|
12131
|
+
CoordinationType$1.FEATURE_SELECTION,
|
|
12132
|
+
CoordinationType$1.SAMPLE_SET_SELECTION,
|
|
12133
|
+
CoordinationType$1.SAMPLE_SET_FILTER,
|
|
12134
|
+
CoordinationType$1.OBS_SET_SELECTION,
|
|
12135
|
+
CoordinationType$1.OBS_SET_FILTER
|
|
12136
|
+
],
|
|
12137
|
+
[ViewType$1.TREEMAP]: [
|
|
12138
|
+
CoordinationType$1.DATASET,
|
|
12139
|
+
CoordinationType$1.OBS_TYPE,
|
|
12140
|
+
CoordinationType$1.FEATURE_TYPE,
|
|
12141
|
+
CoordinationType$1.FEATURE_VALUE_TYPE,
|
|
12142
|
+
CoordinationType$1.OBS_FILTER,
|
|
12143
|
+
CoordinationType$1.OBS_HIGHLIGHT,
|
|
12144
|
+
CoordinationType$1.OBS_SET_SELECTION,
|
|
12145
|
+
CoordinationType$1.OBS_SET_FILTER,
|
|
12146
|
+
CoordinationType$1.OBS_SELECTION,
|
|
12147
|
+
CoordinationType$1.OBS_SELECTION_MODE,
|
|
12148
|
+
CoordinationType$1.OBS_SET_HIGHLIGHT,
|
|
12149
|
+
CoordinationType$1.OBS_SET_COLOR,
|
|
12150
|
+
CoordinationType$1.OBS_COLOR_ENCODING,
|
|
12151
|
+
CoordinationType$1.ADDITIONAL_OBS_SETS,
|
|
12152
|
+
CoordinationType$1.SAMPLE_TYPE,
|
|
12153
|
+
CoordinationType$1.SAMPLE_SET_SELECTION,
|
|
12154
|
+
CoordinationType$1.SAMPLE_SET_FILTER,
|
|
12155
|
+
CoordinationType$1.SAMPLE_SET_COLOR,
|
|
12156
|
+
CoordinationType$1.SAMPLE_SELECTION,
|
|
12157
|
+
CoordinationType$1.SAMPLE_SELECTION_MODE,
|
|
12158
|
+
CoordinationType$1.SAMPLE_FILTER,
|
|
12159
|
+
CoordinationType$1.SAMPLE_FILTER_MODE,
|
|
12160
|
+
CoordinationType$1.SAMPLE_HIGHLIGHT,
|
|
12161
|
+
CoordinationType$1.HIERARCHY_LEVELS
|
|
11777
12162
|
]
|
|
11778
12163
|
};
|
|
11779
12164
|
const ViewType = {
|
|
@@ -11942,7 +12327,7 @@ function makeConstantWithDeprecationMessage(currObj, oldObj) {
|
|
|
11942
12327
|
const oldKeys = Object.keys(oldObj);
|
|
11943
12328
|
const propKey = String(prop);
|
|
11944
12329
|
if (oldKeys.includes(propKey)) {
|
|
11945
|
-
|
|
12330
|
+
log$5.warn(`Notice about the constant mapping ${propKey}: '${oldObj[propKey][0]}':
|
|
11946
12331
|
${oldObj[propKey][1]}`);
|
|
11947
12332
|
return oldObj[propKey];
|
|
11948
12333
|
}
|
|
@@ -12021,6 +12406,42 @@ const annDataConvenienceObsEmbeddingItem = z.object({
|
|
|
12021
12406
|
dims: z.array(z.number()).optional(),
|
|
12022
12407
|
embeddingType: z.string()
|
|
12023
12408
|
});
|
|
12409
|
+
z.object({
|
|
12410
|
+
path: z.string().describe("Path to the comparison metadata, such as /uns/comparison_metadata")
|
|
12411
|
+
});
|
|
12412
|
+
z.object({
|
|
12413
|
+
// TODO: implement a featureStats.anndata.zarr loader
|
|
12414
|
+
// which does not depend on comparisonMetadata
|
|
12415
|
+
// (instead, would point directly to the root of
|
|
12416
|
+
// the dataframe containing a set of diff exp results)
|
|
12417
|
+
// path: z.string().describe('Path to the dataframe containing the results.'),
|
|
12418
|
+
metadataPath: z.string().describe("Path to the comparison metadata."),
|
|
12419
|
+
indexColumn: z.string().optional().describe("Provide a column to use for the feature index, if different than the default dataframe index."),
|
|
12420
|
+
pValueColumn: z.string(),
|
|
12421
|
+
foldChangeColumn: z.string(),
|
|
12422
|
+
pValueTransformation: z.enum(["minuslog10"]).optional(),
|
|
12423
|
+
pValueAdjusted: z.boolean().optional(),
|
|
12424
|
+
foldChangeTransformation: z.enum(["log2"]).optional()
|
|
12425
|
+
});
|
|
12426
|
+
z.object({
|
|
12427
|
+
metadataPath: z.string().describe("Path to the comparison metadata."),
|
|
12428
|
+
indexColumn: z.string().optional().describe("Provide a column to use for the feature set index, if different than the default dataframe index."),
|
|
12429
|
+
termColumn: z.string().optional(),
|
|
12430
|
+
pValueColumn: z.string(),
|
|
12431
|
+
pValueAdjusted: z.boolean().optional(),
|
|
12432
|
+
analysisType: z.string().optional().describe("Optionally, provide an analysis_type name. By default, pertpy_hypergeometric.")
|
|
12433
|
+
});
|
|
12434
|
+
z.object({
|
|
12435
|
+
metadataPath: z.string().describe("Path to the comparison metadata."),
|
|
12436
|
+
indexColumn: z.string().optional().describe("Provide a column to use for the obs set index, if different than the default dataframe index."),
|
|
12437
|
+
interceptExpectedSampleColumn: z.string().describe("If we had a new sample (with no active covariates) with a total number of cells equal to the mean sampling depth of the dataset, then this distribution over the cell types would be most likely."),
|
|
12438
|
+
effectExpectedSampleColumn: z.string().describe("If we had a new sample (with no active covariates) with a total number of cells equal to the mean sampling depth of the dataset, then this distribution over the cell types would be most likely."),
|
|
12439
|
+
foldChangeColumn: z.string().describe("The log-fold change is then calculated between this expected sample and the expected sample with no active covariates from the intercept section."),
|
|
12440
|
+
foldChangeTransformation: z.enum(["log2"]).optional(),
|
|
12441
|
+
isCredibleEffectColumn: z.string().describe("Column which annotates effects as being credible or not (boolean)."),
|
|
12442
|
+
covariateColumn: z.string().describe("Column which defines the covariate used in the analysis."),
|
|
12443
|
+
analysisType: z.string().optional().describe("Optionally, provide an analysis_type name. By default, sccoda_df.")
|
|
12444
|
+
});
|
|
12024
12445
|
const annDataObsLabels = annDataObs;
|
|
12025
12446
|
const annDataFeatureLabels = annDataObs;
|
|
12026
12447
|
const annDataSampleEdges = annDataObs;
|
|
@@ -12040,6 +12461,9 @@ const annDataObsSetsArr = z.array(z.object({
|
|
|
12040
12461
|
z.object({
|
|
12041
12462
|
obsSets: annDataObsSetsArr
|
|
12042
12463
|
});
|
|
12464
|
+
z.object({
|
|
12465
|
+
sampleSets: annDataObsSetsArr
|
|
12466
|
+
});
|
|
12043
12467
|
const annDataObsFeatureColumnsArr = z.array(z.object({
|
|
12044
12468
|
path: z.string()
|
|
12045
12469
|
}));
|
|
@@ -12337,14 +12761,14 @@ var tinycolor = { exports: {} };
|
|
|
12337
12761
|
},
|
|
12338
12762
|
getLuminance: function() {
|
|
12339
12763
|
var rgb2 = this.toRgb();
|
|
12340
|
-
var RsRGB, GsRGB, BsRGB,
|
|
12764
|
+
var RsRGB, GsRGB, BsRGB, R, G2, B2;
|
|
12341
12765
|
RsRGB = rgb2.r / 255;
|
|
12342
12766
|
GsRGB = rgb2.g / 255;
|
|
12343
12767
|
BsRGB = rgb2.b / 255;
|
|
12344
12768
|
if (RsRGB <= 0.03928) {
|
|
12345
|
-
|
|
12769
|
+
R = RsRGB / 12.92;
|
|
12346
12770
|
} else {
|
|
12347
|
-
|
|
12771
|
+
R = Math2.pow((RsRGB + 0.055) / 1.055, 2.4);
|
|
12348
12772
|
}
|
|
12349
12773
|
if (GsRGB <= 0.03928) {
|
|
12350
12774
|
G2 = GsRGB / 12.92;
|
|
@@ -12356,7 +12780,7 @@ var tinycolor = { exports: {} };
|
|
|
12356
12780
|
} else {
|
|
12357
12781
|
B2 = Math2.pow((BsRGB + 0.055) / 1.055, 2.4);
|
|
12358
12782
|
}
|
|
12359
|
-
return 0.2126 *
|
|
12783
|
+
return 0.2126 * R + 0.7152 * G2 + 0.0722 * B2;
|
|
12360
12784
|
},
|
|
12361
12785
|
setAlpha: function(value) {
|
|
12362
12786
|
this._a = boundAlpha(value);
|
|
@@ -13325,7 +13749,7 @@ var json2csv_umd = { exports: {} };
|
|
|
13325
13749
|
}
|
|
13326
13750
|
this._maxListeners = this._maxListeners || void 0;
|
|
13327
13751
|
};
|
|
13328
|
-
EventEmitter2.prototype.setMaxListeners = function
|
|
13752
|
+
EventEmitter2.prototype.setMaxListeners = function setMaxListeners(n2) {
|
|
13329
13753
|
if (typeof n2 !== "number" || n2 < 0 || isNaN(n2))
|
|
13330
13754
|
throw new TypeError('"n" argument must be a positive number');
|
|
13331
13755
|
this._maxListeners = n2;
|
|
@@ -13336,7 +13760,7 @@ var json2csv_umd = { exports: {} };
|
|
|
13336
13760
|
return EventEmitter2.defaultMaxListeners;
|
|
13337
13761
|
return that._maxListeners;
|
|
13338
13762
|
}
|
|
13339
|
-
EventEmitter2.prototype.getMaxListeners = function
|
|
13763
|
+
EventEmitter2.prototype.getMaxListeners = function getMaxListeners() {
|
|
13340
13764
|
return $getMaxListeners(this);
|
|
13341
13765
|
};
|
|
13342
13766
|
function emitNone(handler, isFn, self2) {
|
|
@@ -13344,9 +13768,9 @@ var json2csv_umd = { exports: {} };
|
|
|
13344
13768
|
handler.call(self2);
|
|
13345
13769
|
else {
|
|
13346
13770
|
var len2 = handler.length;
|
|
13347
|
-
var
|
|
13771
|
+
var listeners = arrayClone(handler, len2);
|
|
13348
13772
|
for (var i2 = 0; i2 < len2; ++i2)
|
|
13349
|
-
|
|
13773
|
+
listeners[i2].call(self2);
|
|
13350
13774
|
}
|
|
13351
13775
|
}
|
|
13352
13776
|
function emitOne(handler, isFn, self2, arg1) {
|
|
@@ -13354,9 +13778,9 @@ var json2csv_umd = { exports: {} };
|
|
|
13354
13778
|
handler.call(self2, arg1);
|
|
13355
13779
|
else {
|
|
13356
13780
|
var len2 = handler.length;
|
|
13357
|
-
var
|
|
13781
|
+
var listeners = arrayClone(handler, len2);
|
|
13358
13782
|
for (var i2 = 0; i2 < len2; ++i2)
|
|
13359
|
-
|
|
13783
|
+
listeners[i2].call(self2, arg1);
|
|
13360
13784
|
}
|
|
13361
13785
|
}
|
|
13362
13786
|
function emitTwo(handler, isFn, self2, arg1, arg2) {
|
|
@@ -13364,9 +13788,9 @@ var json2csv_umd = { exports: {} };
|
|
|
13364
13788
|
handler.call(self2, arg1, arg2);
|
|
13365
13789
|
else {
|
|
13366
13790
|
var len2 = handler.length;
|
|
13367
|
-
var
|
|
13791
|
+
var listeners = arrayClone(handler, len2);
|
|
13368
13792
|
for (var i2 = 0; i2 < len2; ++i2)
|
|
13369
|
-
|
|
13793
|
+
listeners[i2].call(self2, arg1, arg2);
|
|
13370
13794
|
}
|
|
13371
13795
|
}
|
|
13372
13796
|
function emitThree(handler, isFn, self2, arg1, arg2, arg3) {
|
|
@@ -13374,9 +13798,9 @@ var json2csv_umd = { exports: {} };
|
|
|
13374
13798
|
handler.call(self2, arg1, arg2, arg3);
|
|
13375
13799
|
else {
|
|
13376
13800
|
var len2 = handler.length;
|
|
13377
|
-
var
|
|
13801
|
+
var listeners = arrayClone(handler, len2);
|
|
13378
13802
|
for (var i2 = 0; i2 < len2; ++i2)
|
|
13379
|
-
|
|
13803
|
+
listeners[i2].call(self2, arg1, arg2, arg3);
|
|
13380
13804
|
}
|
|
13381
13805
|
}
|
|
13382
13806
|
function emitMany(handler, isFn, self2, args) {
|
|
@@ -13384,12 +13808,12 @@ var json2csv_umd = { exports: {} };
|
|
|
13384
13808
|
handler.apply(self2, args);
|
|
13385
13809
|
else {
|
|
13386
13810
|
var len2 = handler.length;
|
|
13387
|
-
var
|
|
13811
|
+
var listeners = arrayClone(handler, len2);
|
|
13388
13812
|
for (var i2 = 0; i2 < len2; ++i2)
|
|
13389
|
-
|
|
13813
|
+
listeners[i2].apply(self2, args);
|
|
13390
13814
|
}
|
|
13391
13815
|
}
|
|
13392
|
-
EventEmitter2.prototype.emit = function
|
|
13816
|
+
EventEmitter2.prototype.emit = function emit(type3) {
|
|
13393
13817
|
var er, handler, len2, args, i2, events2, domain2;
|
|
13394
13818
|
var doError = type3 === "error";
|
|
13395
13819
|
events2 = this._events;
|
|
@@ -13442,7 +13866,7 @@ var json2csv_umd = { exports: {} };
|
|
|
13442
13866
|
}
|
|
13443
13867
|
return true;
|
|
13444
13868
|
};
|
|
13445
|
-
function
|
|
13869
|
+
function _addListener(target, type3, listener, prepend) {
|
|
13446
13870
|
var m;
|
|
13447
13871
|
var events2;
|
|
13448
13872
|
var existing;
|
|
@@ -13494,14 +13918,14 @@ var json2csv_umd = { exports: {} };
|
|
|
13494
13918
|
function emitWarning(e3) {
|
|
13495
13919
|
typeof console.warn === "function" ? console.warn(e3) : console.log(e3);
|
|
13496
13920
|
}
|
|
13497
|
-
EventEmitter2.prototype.addListener = function
|
|
13498
|
-
return
|
|
13921
|
+
EventEmitter2.prototype.addListener = function addListener(type3, listener) {
|
|
13922
|
+
return _addListener(this, type3, listener, false);
|
|
13499
13923
|
};
|
|
13500
13924
|
EventEmitter2.prototype.on = EventEmitter2.prototype.addListener;
|
|
13501
|
-
EventEmitter2.prototype.prependListener = function
|
|
13502
|
-
return
|
|
13925
|
+
EventEmitter2.prototype.prependListener = function prependListener2(type3, listener) {
|
|
13926
|
+
return _addListener(this, type3, listener, true);
|
|
13503
13927
|
};
|
|
13504
|
-
function
|
|
13928
|
+
function _onceWrap(target, type3, listener) {
|
|
13505
13929
|
var fired = false;
|
|
13506
13930
|
function g2() {
|
|
13507
13931
|
target.removeListener(type3, g2);
|
|
@@ -13513,19 +13937,19 @@ var json2csv_umd = { exports: {} };
|
|
|
13513
13937
|
g2.listener = listener;
|
|
13514
13938
|
return g2;
|
|
13515
13939
|
}
|
|
13516
|
-
EventEmitter2.prototype.once = function
|
|
13940
|
+
EventEmitter2.prototype.once = function once(type3, listener) {
|
|
13517
13941
|
if (typeof listener !== "function")
|
|
13518
13942
|
throw new TypeError('"listener" argument must be a function');
|
|
13519
|
-
this.on(type3,
|
|
13943
|
+
this.on(type3, _onceWrap(this, type3, listener));
|
|
13520
13944
|
return this;
|
|
13521
13945
|
};
|
|
13522
|
-
EventEmitter2.prototype.prependOnceListener = function
|
|
13946
|
+
EventEmitter2.prototype.prependOnceListener = function prependOnceListener(type3, listener) {
|
|
13523
13947
|
if (typeof listener !== "function")
|
|
13524
13948
|
throw new TypeError('"listener" argument must be a function');
|
|
13525
|
-
this.prependListener(type3,
|
|
13949
|
+
this.prependListener(type3, _onceWrap(this, type3, listener));
|
|
13526
13950
|
return this;
|
|
13527
13951
|
};
|
|
13528
|
-
EventEmitter2.prototype.removeListener = function
|
|
13952
|
+
EventEmitter2.prototype.removeListener = function removeListener(type3, listener) {
|
|
13529
13953
|
var list, events2, position, i2, originalListener;
|
|
13530
13954
|
if (typeof listener !== "function")
|
|
13531
13955
|
throw new TypeError('"listener" argument must be a function');
|
|
@@ -13563,15 +13987,15 @@ var json2csv_umd = { exports: {} };
|
|
|
13563
13987
|
delete events2[type3];
|
|
13564
13988
|
}
|
|
13565
13989
|
} else {
|
|
13566
|
-
|
|
13990
|
+
spliceOne(list, position);
|
|
13567
13991
|
}
|
|
13568
13992
|
if (events2.removeListener)
|
|
13569
13993
|
this.emit("removeListener", type3, originalListener || listener);
|
|
13570
13994
|
}
|
|
13571
13995
|
return this;
|
|
13572
13996
|
};
|
|
13573
|
-
EventEmitter2.prototype.removeAllListeners = function
|
|
13574
|
-
var
|
|
13997
|
+
EventEmitter2.prototype.removeAllListeners = function removeAllListeners(type3) {
|
|
13998
|
+
var listeners, events2;
|
|
13575
13999
|
events2 = this._events;
|
|
13576
14000
|
if (!events2)
|
|
13577
14001
|
return this;
|
|
@@ -13600,17 +14024,17 @@ var json2csv_umd = { exports: {} };
|
|
|
13600
14024
|
this._eventsCount = 0;
|
|
13601
14025
|
return this;
|
|
13602
14026
|
}
|
|
13603
|
-
|
|
13604
|
-
if (typeof
|
|
13605
|
-
this.removeListener(type3,
|
|
13606
|
-
} else if (
|
|
14027
|
+
listeners = events2[type3];
|
|
14028
|
+
if (typeof listeners === "function") {
|
|
14029
|
+
this.removeListener(type3, listeners);
|
|
14030
|
+
} else if (listeners) {
|
|
13607
14031
|
do {
|
|
13608
|
-
this.removeListener(type3,
|
|
13609
|
-
} while (
|
|
14032
|
+
this.removeListener(type3, listeners[listeners.length - 1]);
|
|
14033
|
+
} while (listeners[0]);
|
|
13610
14034
|
}
|
|
13611
14035
|
return this;
|
|
13612
14036
|
};
|
|
13613
|
-
EventEmitter2.prototype.listeners = function
|
|
14037
|
+
EventEmitter2.prototype.listeners = function listeners(type3) {
|
|
13614
14038
|
var evlistener;
|
|
13615
14039
|
var ret;
|
|
13616
14040
|
var events2 = this._events;
|
|
@@ -13623,7 +14047,7 @@ var json2csv_umd = { exports: {} };
|
|
|
13623
14047
|
else if (typeof evlistener === "function")
|
|
13624
14048
|
ret = [evlistener.listener || evlistener];
|
|
13625
14049
|
else
|
|
13626
|
-
ret =
|
|
14050
|
+
ret = unwrapListeners(evlistener);
|
|
13627
14051
|
}
|
|
13628
14052
|
return ret;
|
|
13629
14053
|
};
|
|
@@ -13631,11 +14055,11 @@ var json2csv_umd = { exports: {} };
|
|
|
13631
14055
|
if (typeof emitter.listenerCount === "function") {
|
|
13632
14056
|
return emitter.listenerCount(type3);
|
|
13633
14057
|
} else {
|
|
13634
|
-
return
|
|
14058
|
+
return listenerCount.call(emitter, type3);
|
|
13635
14059
|
}
|
|
13636
14060
|
};
|
|
13637
|
-
EventEmitter2.prototype.listenerCount =
|
|
13638
|
-
function
|
|
14061
|
+
EventEmitter2.prototype.listenerCount = listenerCount;
|
|
14062
|
+
function listenerCount(type3) {
|
|
13639
14063
|
var events2 = this._events;
|
|
13640
14064
|
if (events2) {
|
|
13641
14065
|
var evlistener = events2[type3];
|
|
@@ -13647,21 +14071,21 @@ var json2csv_umd = { exports: {} };
|
|
|
13647
14071
|
}
|
|
13648
14072
|
return 0;
|
|
13649
14073
|
}
|
|
13650
|
-
EventEmitter2.prototype.eventNames = function
|
|
14074
|
+
EventEmitter2.prototype.eventNames = function eventNames() {
|
|
13651
14075
|
return this._eventsCount > 0 ? Reflect.ownKeys(this._events) : [];
|
|
13652
14076
|
};
|
|
13653
|
-
function
|
|
14077
|
+
function spliceOne(list, index2) {
|
|
13654
14078
|
for (var i2 = index2, k = i2 + 1, n2 = list.length; k < n2; i2 += 1, k += 1)
|
|
13655
14079
|
list[i2] = list[k];
|
|
13656
14080
|
list.pop();
|
|
13657
14081
|
}
|
|
13658
|
-
function
|
|
14082
|
+
function arrayClone(arr, i2) {
|
|
13659
14083
|
var copy2 = new Array(i2);
|
|
13660
14084
|
while (i2--)
|
|
13661
14085
|
copy2[i2] = arr[i2];
|
|
13662
14086
|
return copy2;
|
|
13663
14087
|
}
|
|
13664
|
-
function
|
|
14088
|
+
function unwrapListeners(arr) {
|
|
13665
14089
|
var ret = new Array(arr.length);
|
|
13666
14090
|
for (var i2 = 0; i2 < ret.length; ++i2) {
|
|
13667
14091
|
ret[i2] = arr[i2].listener || arr[i2];
|
|
@@ -15453,7 +15877,7 @@ var json2csv_umd = { exports: {} };
|
|
|
15453
15877
|
return str;
|
|
15454
15878
|
}
|
|
15455
15879
|
function deprecate(fn, msg) {
|
|
15456
|
-
if (
|
|
15880
|
+
if (isUndefined2(global$1.process)) {
|
|
15457
15881
|
return function() {
|
|
15458
15882
|
return deprecate(fn, msg).apply(this, arguments);
|
|
15459
15883
|
};
|
|
@@ -15473,7 +15897,7 @@ var json2csv_umd = { exports: {} };
|
|
|
15473
15897
|
var debugs = {};
|
|
15474
15898
|
var debugEnviron;
|
|
15475
15899
|
function debuglog(set2) {
|
|
15476
|
-
if (
|
|
15900
|
+
if (isUndefined2(debugEnviron))
|
|
15477
15901
|
debugEnviron = "";
|
|
15478
15902
|
set2 = set2.toUpperCase();
|
|
15479
15903
|
if (!debugs[set2]) {
|
|
@@ -15504,13 +15928,13 @@ var json2csv_umd = { exports: {} };
|
|
|
15504
15928
|
} else if (opts2) {
|
|
15505
15929
|
_extend(ctx, opts2);
|
|
15506
15930
|
}
|
|
15507
|
-
if (
|
|
15931
|
+
if (isUndefined2(ctx.showHidden))
|
|
15508
15932
|
ctx.showHidden = false;
|
|
15509
|
-
if (
|
|
15933
|
+
if (isUndefined2(ctx.depth))
|
|
15510
15934
|
ctx.depth = 2;
|
|
15511
|
-
if (
|
|
15935
|
+
if (isUndefined2(ctx.colors))
|
|
15512
15936
|
ctx.colors = false;
|
|
15513
|
-
if (
|
|
15937
|
+
if (isUndefined2(ctx.customInspect))
|
|
15514
15938
|
ctx.customInspect = true;
|
|
15515
15939
|
if (ctx.colors)
|
|
15516
15940
|
ctx.stylize = stylizeWithColor;
|
|
@@ -15638,7 +16062,7 @@ var json2csv_umd = { exports: {} };
|
|
|
15638
16062
|
return reduceToSingleString(output, base, braces);
|
|
15639
16063
|
}
|
|
15640
16064
|
function formatPrimitive(ctx, value) {
|
|
15641
|
-
if (
|
|
16065
|
+
if (isUndefined2(value))
|
|
15642
16066
|
return ctx.stylize("undefined", "undefined");
|
|
15643
16067
|
if (isString(value)) {
|
|
15644
16068
|
var simple = "'" + JSON.stringify(value).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
|
|
@@ -15723,7 +16147,7 @@ var json2csv_umd = { exports: {} };
|
|
|
15723
16147
|
str = ctx.stylize("[Circular]", "special");
|
|
15724
16148
|
}
|
|
15725
16149
|
}
|
|
15726
|
-
if (
|
|
16150
|
+
if (isUndefined2(name2)) {
|
|
15727
16151
|
if (array2 && key.match(/^\d+$/)) {
|
|
15728
16152
|
return str;
|
|
15729
16153
|
}
|
|
@@ -15764,7 +16188,7 @@ var json2csv_umd = { exports: {} };
|
|
|
15764
16188
|
function isString(arg) {
|
|
15765
16189
|
return typeof arg === "string";
|
|
15766
16190
|
}
|
|
15767
|
-
function
|
|
16191
|
+
function isUndefined2(arg) {
|
|
15768
16192
|
return arg === void 0;
|
|
15769
16193
|
}
|
|
15770
16194
|
function isRegExp(re2) {
|
|
@@ -15993,7 +16417,7 @@ var json2csv_umd = { exports: {} };
|
|
|
15993
16417
|
Readable.ReadableState = ReadableState;
|
|
15994
16418
|
var debug2 = debuglog("stream");
|
|
15995
16419
|
inherits$1(Readable, EventEmitter2);
|
|
15996
|
-
function
|
|
16420
|
+
function prependListener(emitter, event, fn) {
|
|
15997
16421
|
if (typeof emitter.prependListener === "function") {
|
|
15998
16422
|
return emitter.prependListener(event, fn);
|
|
15999
16423
|
} else {
|
|
@@ -16347,7 +16771,7 @@ var json2csv_umd = { exports: {} };
|
|
|
16347
16771
|
if (listenerCount$1(dest, "error") === 0)
|
|
16348
16772
|
dest.emit("error", er);
|
|
16349
16773
|
}
|
|
16350
|
-
|
|
16774
|
+
prependListener(dest, "error", onerror);
|
|
16351
16775
|
function onclose() {
|
|
16352
16776
|
dest.removeListener("finish", onfinish);
|
|
16353
16777
|
unpipe();
|
|
@@ -25929,7 +26353,7 @@ function taskDebounce(fn) {
|
|
|
25929
26353
|
}
|
|
25930
26354
|
var supportsMicroTasks = isBrowser$4 && window.Promise;
|
|
25931
26355
|
var debounce$1 = supportsMicroTasks ? microtaskDebounce : taskDebounce;
|
|
25932
|
-
function isFunction$
|
|
26356
|
+
function isFunction$3(functionToCheck) {
|
|
25933
26357
|
var getType2 = {};
|
|
25934
26358
|
return functionToCheck && getType2.toString.call(functionToCheck) === "[object Function]";
|
|
25935
26359
|
}
|
|
@@ -26387,7 +26811,7 @@ function runModifiers(modifiers2, data, ends) {
|
|
|
26387
26811
|
console.warn("`modifier.function` is deprecated, use `modifier.fn`!");
|
|
26388
26812
|
}
|
|
26389
26813
|
var fn = modifier["function"] || modifier.fn;
|
|
26390
|
-
if (modifier.enabled && isFunction$
|
|
26814
|
+
if (modifier.enabled && isFunction$3(fn)) {
|
|
26391
26815
|
data.offsets.popper = getClientRect(data.offsets.popper);
|
|
26392
26816
|
data.offsets.reference = getClientRect(data.offsets.reference);
|
|
26393
26817
|
data = fn(data, modifier);
|
|
@@ -27350,7 +27774,7 @@ var Popper$2 = function() {
|
|
|
27350
27774
|
return a2.order - b.order;
|
|
27351
27775
|
});
|
|
27352
27776
|
this.modifiers.forEach(function(modifierOptions) {
|
|
27353
|
-
if (modifierOptions.enabled && isFunction$
|
|
27777
|
+
if (modifierOptions.enabled && isFunction$3(modifierOptions.onLoad)) {
|
|
27354
27778
|
modifierOptions.onLoad(_this.reference, _this.popper, _this.options, modifierOptions, _this.state);
|
|
27355
27779
|
}
|
|
27356
27780
|
});
|
|
@@ -29532,58 +29956,55 @@ function select(selector2) {
|
|
|
29532
29956
|
return typeof selector2 === "string" ? new Selection([[document.querySelector(selector2)]], [document.documentElement]) : new Selection([[selector2]], root$1);
|
|
29533
29957
|
}
|
|
29534
29958
|
function ascending$1(a2, b) {
|
|
29535
|
-
return a2
|
|
29536
|
-
}
|
|
29537
|
-
function descending(a2, b) {
|
|
29538
|
-
return a2 == null || b == null ? NaN : b < a2 ? -1 : b > a2 ? 1 : b >= a2 ? 0 : NaN;
|
|
29959
|
+
return a2 < b ? -1 : a2 > b ? 1 : a2 >= b ? 0 : NaN;
|
|
29539
29960
|
}
|
|
29540
29961
|
function bisector$1(f2) {
|
|
29541
|
-
let
|
|
29542
|
-
|
|
29543
|
-
|
|
29544
|
-
compare2 = (d, x2) => ascending$1(f2(d), x2);
|
|
29962
|
+
let delta = f2;
|
|
29963
|
+
let compare2 = f2;
|
|
29964
|
+
if (f2.length === 1) {
|
|
29545
29965
|
delta = (d, x2) => f2(d) - x2;
|
|
29546
|
-
|
|
29547
|
-
|
|
29548
|
-
|
|
29549
|
-
|
|
29550
|
-
|
|
29551
|
-
|
|
29552
|
-
|
|
29553
|
-
|
|
29554
|
-
|
|
29555
|
-
|
|
29556
|
-
|
|
29557
|
-
|
|
29558
|
-
|
|
29559
|
-
else
|
|
29560
|
-
hi = mid;
|
|
29561
|
-
} while (lo < hi);
|
|
29966
|
+
compare2 = ascendingComparator$1(f2);
|
|
29967
|
+
}
|
|
29968
|
+
function left2(a2, x2, lo, hi) {
|
|
29969
|
+
if (lo == null)
|
|
29970
|
+
lo = 0;
|
|
29971
|
+
if (hi == null)
|
|
29972
|
+
hi = a2.length;
|
|
29973
|
+
while (lo < hi) {
|
|
29974
|
+
const mid = lo + hi >>> 1;
|
|
29975
|
+
if (compare2(a2[mid], x2) < 0)
|
|
29976
|
+
lo = mid + 1;
|
|
29977
|
+
else
|
|
29978
|
+
hi = mid;
|
|
29562
29979
|
}
|
|
29563
29980
|
return lo;
|
|
29564
29981
|
}
|
|
29565
|
-
function right2(a2, x2, lo
|
|
29566
|
-
if (lo
|
|
29567
|
-
|
|
29568
|
-
|
|
29569
|
-
|
|
29570
|
-
|
|
29571
|
-
|
|
29572
|
-
|
|
29573
|
-
|
|
29574
|
-
|
|
29575
|
-
|
|
29982
|
+
function right2(a2, x2, lo, hi) {
|
|
29983
|
+
if (lo == null)
|
|
29984
|
+
lo = 0;
|
|
29985
|
+
if (hi == null)
|
|
29986
|
+
hi = a2.length;
|
|
29987
|
+
while (lo < hi) {
|
|
29988
|
+
const mid = lo + hi >>> 1;
|
|
29989
|
+
if (compare2(a2[mid], x2) > 0)
|
|
29990
|
+
hi = mid;
|
|
29991
|
+
else
|
|
29992
|
+
lo = mid + 1;
|
|
29576
29993
|
}
|
|
29577
29994
|
return lo;
|
|
29578
29995
|
}
|
|
29579
|
-
function center2(a2, x2, lo
|
|
29996
|
+
function center2(a2, x2, lo, hi) {
|
|
29997
|
+
if (lo == null)
|
|
29998
|
+
lo = 0;
|
|
29999
|
+
if (hi == null)
|
|
30000
|
+
hi = a2.length;
|
|
29580
30001
|
const i2 = left2(a2, x2, lo, hi - 1);
|
|
29581
30002
|
return i2 > lo && delta(a2[i2 - 1], x2) > -delta(a2[i2], x2) ? i2 - 1 : i2;
|
|
29582
30003
|
}
|
|
29583
30004
|
return { left: left2, center: center2, right: right2 };
|
|
29584
30005
|
}
|
|
29585
|
-
function
|
|
29586
|
-
return
|
|
30006
|
+
function ascendingComparator$1(f2) {
|
|
30007
|
+
return (d, x2) => ascending$1(f2(d), x2);
|
|
29587
30008
|
}
|
|
29588
30009
|
function number$3(x2) {
|
|
29589
30010
|
return x2 === null ? NaN : +x2;
|
|
@@ -29592,6 +30013,41 @@ const ascendingBisect = bisector$1(ascending$1);
|
|
|
29592
30013
|
const bisectRight = ascendingBisect.right;
|
|
29593
30014
|
bisector$1(number$3).center;
|
|
29594
30015
|
const bisect = bisectRight;
|
|
30016
|
+
function extent$1(values2, valueof) {
|
|
30017
|
+
let min;
|
|
30018
|
+
let max2;
|
|
30019
|
+
if (valueof === void 0) {
|
|
30020
|
+
for (const value of values2) {
|
|
30021
|
+
if (value != null) {
|
|
30022
|
+
if (min === void 0) {
|
|
30023
|
+
if (value >= value)
|
|
30024
|
+
min = max2 = value;
|
|
30025
|
+
} else {
|
|
30026
|
+
if (min > value)
|
|
30027
|
+
min = value;
|
|
30028
|
+
if (max2 < value)
|
|
30029
|
+
max2 = value;
|
|
30030
|
+
}
|
|
30031
|
+
}
|
|
30032
|
+
}
|
|
30033
|
+
} else {
|
|
30034
|
+
let index2 = -1;
|
|
30035
|
+
for (let value of values2) {
|
|
30036
|
+
if ((value = valueof(value, ++index2, values2)) != null) {
|
|
30037
|
+
if (min === void 0) {
|
|
30038
|
+
if (value >= value)
|
|
30039
|
+
min = max2 = value;
|
|
30040
|
+
} else {
|
|
30041
|
+
if (min > value)
|
|
30042
|
+
min = value;
|
|
30043
|
+
if (max2 < value)
|
|
30044
|
+
max2 = value;
|
|
30045
|
+
}
|
|
30046
|
+
}
|
|
30047
|
+
}
|
|
30048
|
+
}
|
|
30049
|
+
return [min, max2];
|
|
30050
|
+
}
|
|
29595
30051
|
var e10 = Math.sqrt(50), e5 = Math.sqrt(10), e2 = Math.sqrt(2);
|
|
29596
30052
|
function ticks(start, stop, count2) {
|
|
29597
30053
|
var reverse, i2 = -1, n2, ticks2, step;
|
|
@@ -29640,6 +30096,24 @@ function tickStep(start, stop, count2) {
|
|
|
29640
30096
|
step1 *= 2;
|
|
29641
30097
|
return stop < start ? -step1 : step1;
|
|
29642
30098
|
}
|
|
30099
|
+
function max$1(values2, valueof) {
|
|
30100
|
+
let max2;
|
|
30101
|
+
if (valueof === void 0) {
|
|
30102
|
+
for (const value of values2) {
|
|
30103
|
+
if (value != null && (max2 < value || max2 === void 0 && value >= value)) {
|
|
30104
|
+
max2 = value;
|
|
30105
|
+
}
|
|
30106
|
+
}
|
|
30107
|
+
} else {
|
|
30108
|
+
let index2 = -1;
|
|
30109
|
+
for (let value of values2) {
|
|
30110
|
+
if ((value = valueof(value, ++index2, values2)) != null && (max2 < value || max2 === void 0 && value >= value)) {
|
|
30111
|
+
max2 = value;
|
|
30112
|
+
}
|
|
30113
|
+
}
|
|
30114
|
+
}
|
|
30115
|
+
return max2;
|
|
30116
|
+
}
|
|
29643
30117
|
function initRange(domain, range2) {
|
|
29644
30118
|
switch (arguments.length) {
|
|
29645
30119
|
case 0:
|
|
@@ -32492,16 +32966,16 @@ function dirname(url) {
|
|
|
32492
32966
|
return slashIndex >= 0 ? url.substr(0, slashIndex) : "";
|
|
32493
32967
|
}
|
|
32494
32968
|
const isBoolean = (x2) => typeof x2 === "boolean";
|
|
32495
|
-
const isFunction$
|
|
32496
|
-
const isObject$
|
|
32497
|
-
const isPureObject = (x2) => isObject$
|
|
32969
|
+
const isFunction$2 = (x2) => typeof x2 === "function";
|
|
32970
|
+
const isObject$3 = (x2) => x2 !== null && typeof x2 === "object";
|
|
32971
|
+
const isPureObject = (x2) => isObject$3(x2) && x2.constructor === {}.constructor;
|
|
32498
32972
|
const isIterable = (x2) => x2 && typeof x2[Symbol.iterator] === "function";
|
|
32499
32973
|
const isAsyncIterable$1 = (x2) => x2 && typeof x2[Symbol.asyncIterator] === "function";
|
|
32500
32974
|
const isResponse = (x2) => typeof Response !== "undefined" && x2 instanceof Response || x2 && x2.arrayBuffer && x2.text && x2.json;
|
|
32501
32975
|
const isBlob = (x2) => typeof Blob !== "undefined" && x2 instanceof Blob;
|
|
32502
32976
|
const isBuffer$1 = (x2) => x2 && typeof x2 === "object" && x2.isBuffer;
|
|
32503
|
-
const isReadableDOMStream = (x2) => typeof ReadableStream !== "undefined" && x2 instanceof ReadableStream || isObject$
|
|
32504
|
-
const isReadableNodeStream = (x2) => isObject$
|
|
32977
|
+
const isReadableDOMStream = (x2) => typeof ReadableStream !== "undefined" && x2 instanceof ReadableStream || isObject$3(x2) && isFunction$2(x2.tee) && isFunction$2(x2.cancel) && isFunction$2(x2.getReader);
|
|
32978
|
+
const isReadableNodeStream = (x2) => isObject$3(x2) && isFunction$2(x2.read) && isFunction$2(x2.pipe) && isBoolean(x2.readable);
|
|
32505
32979
|
const isReadableStream = (x2) => isReadableDOMStream(x2) || isReadableNodeStream(x2);
|
|
32506
32980
|
const DATA_URL_PATTERN = /^data:([-\w.]+\/[-\w.+]+)(;|,)/;
|
|
32507
32981
|
const MIME_TYPE_PATTERN = /^([-\w.]+\/[-\w.+]+)/;
|
|
@@ -33301,7 +33775,7 @@ function getFetchFunction(options, context) {
|
|
|
33301
33775
|
if (typeof fetchOptions.fetch === "function") {
|
|
33302
33776
|
return fetchOptions.fetch;
|
|
33303
33777
|
}
|
|
33304
|
-
if (isObject$
|
|
33778
|
+
if (isObject$3(fetchOptions.fetch)) {
|
|
33305
33779
|
return (url) => fetchFile(url, fetchOptions);
|
|
33306
33780
|
}
|
|
33307
33781
|
if (context !== null && context !== void 0 && context.fetch) {
|
|
@@ -33322,7 +33796,7 @@ function validateOptionsObject(options, id, defaultOptions2, deprecatedOptions,
|
|
|
33322
33796
|
const loaderName = id || "Top level";
|
|
33323
33797
|
const prefix2 = id ? "".concat(id, ".") : "";
|
|
33324
33798
|
for (const key in options) {
|
|
33325
|
-
const isSubOptions = !id && isObject$
|
|
33799
|
+
const isSubOptions = !id && isObject$3(options[key]);
|
|
33326
33800
|
const isBaseUriOption = key === "baseUri" && !id;
|
|
33327
33801
|
const isWorkerUrlOption = key === "workerUrl" && id;
|
|
33328
33802
|
if (!(key in defaultOptions2) && !isBaseUriOption && !isWorkerUrlOption) {
|
|
@@ -52290,9 +52764,9 @@ class Controller {
|
|
|
52290
52764
|
updateTransition() {
|
|
52291
52765
|
this.transitionManager.updateTransition();
|
|
52292
52766
|
}
|
|
52293
|
-
toggleEvents(
|
|
52767
|
+
toggleEvents(eventNames, enabled) {
|
|
52294
52768
|
if (this.eventManager) {
|
|
52295
|
-
|
|
52769
|
+
eventNames.forEach((eventName) => {
|
|
52296
52770
|
if (this._events[eventName] !== enabled) {
|
|
52297
52771
|
this._events[eventName] = enabled;
|
|
52298
52772
|
if (enabled) {
|
|
@@ -55743,18 +56217,18 @@ var hammer$1 = { exports: {} };
|
|
|
55743
56217
|
emit: function(input) {
|
|
55744
56218
|
var self2 = this;
|
|
55745
56219
|
var state = this.state;
|
|
55746
|
-
function
|
|
56220
|
+
function emit(event) {
|
|
55747
56221
|
self2.manager.emit(event, input);
|
|
55748
56222
|
}
|
|
55749
56223
|
if (state < STATE_ENDED) {
|
|
55750
|
-
|
|
56224
|
+
emit(self2.options.event + stateStr(state));
|
|
55751
56225
|
}
|
|
55752
|
-
|
|
56226
|
+
emit(self2.options.event);
|
|
55753
56227
|
if (input.additionalEvent) {
|
|
55754
|
-
|
|
56228
|
+
emit(input.additionalEvent);
|
|
55755
56229
|
}
|
|
55756
56230
|
if (state >= STATE_ENDED) {
|
|
55757
|
-
|
|
56231
|
+
emit(self2.options.event + stateStr(state));
|
|
55758
56232
|
}
|
|
55759
56233
|
},
|
|
55760
56234
|
/**
|
|
@@ -57114,7 +57588,7 @@ class EventRegistrar {
|
|
|
57114
57588
|
isEmpty() {
|
|
57115
57589
|
return !this._active;
|
|
57116
57590
|
}
|
|
57117
|
-
add(type2, handler, options,
|
|
57591
|
+
add(type2, handler, options, once = false, passive = false) {
|
|
57118
57592
|
const { handlers, handlersByElement } = this;
|
|
57119
57593
|
let opts2 = DEFAULT_OPTIONS$2;
|
|
57120
57594
|
if (typeof options === "string" || options && options.addEventListener) {
|
|
@@ -57133,7 +57607,7 @@ class EventRegistrar {
|
|
|
57133
57607
|
srcElement: opts2.srcElement,
|
|
57134
57608
|
priority: opts2.priority
|
|
57135
57609
|
};
|
|
57136
|
-
if (
|
|
57610
|
+
if (once) {
|
|
57137
57611
|
entry.once = true;
|
|
57138
57612
|
}
|
|
57139
57613
|
if (passive) {
|
|
@@ -57181,7 +57655,7 @@ class EventRegistrar {
|
|
|
57181
57655
|
};
|
|
57182
57656
|
const entriesToRemove = [];
|
|
57183
57657
|
for (let i2 = 0; i2 < entries.length; i2++) {
|
|
57184
|
-
const { type: type2, handler, once
|
|
57658
|
+
const { type: type2, handler, once } = entries[i2];
|
|
57185
57659
|
handler({
|
|
57186
57660
|
...event,
|
|
57187
57661
|
// @ts-ignore
|
|
@@ -57189,7 +57663,7 @@ class EventRegistrar {
|
|
|
57189
57663
|
stopPropagation,
|
|
57190
57664
|
stopImmediatePropagation
|
|
57191
57665
|
});
|
|
57192
|
-
if (
|
|
57666
|
+
if (once) {
|
|
57193
57667
|
entriesToRemove.push(entries[i2]);
|
|
57194
57668
|
}
|
|
57195
57669
|
if (immediatePropagationStopped) {
|
|
@@ -57370,11 +57844,11 @@ class EventManager {
|
|
|
57370
57844
|
/**
|
|
57371
57845
|
* Process the event registration for a single event + handler.
|
|
57372
57846
|
*/
|
|
57373
|
-
_addEventHandler(event, handler, opts2,
|
|
57847
|
+
_addEventHandler(event, handler, opts2, once, passive) {
|
|
57374
57848
|
if (typeof event !== "string") {
|
|
57375
57849
|
opts2 = handler;
|
|
57376
57850
|
for (const eventName in event) {
|
|
57377
|
-
this._addEventHandler(eventName, event[eventName], opts2,
|
|
57851
|
+
this._addEventHandler(eventName, event[eventName], opts2, once, passive);
|
|
57378
57852
|
}
|
|
57379
57853
|
return;
|
|
57380
57854
|
}
|
|
@@ -57389,7 +57863,7 @@ class EventManager {
|
|
|
57389
57863
|
manager.on(eventAlias, eventRegistrar.handleEvent);
|
|
57390
57864
|
}
|
|
57391
57865
|
}
|
|
57392
|
-
eventRegistrar.add(event, handler, opts2,
|
|
57866
|
+
eventRegistrar.add(event, handler, opts2, once, passive);
|
|
57393
57867
|
if (!eventRegistrar.isEmpty()) {
|
|
57394
57868
|
this._toggleRecognizer(eventRegistrar.recognizerName, true);
|
|
57395
57869
|
}
|
|
@@ -60110,7 +60584,7 @@ function getPropTypes(props) {
|
|
|
60110
60584
|
const ERR_NOT_OBJECT = "count(): argument not an object";
|
|
60111
60585
|
const ERR_NOT_CONTAINER = "count(): argument not a container";
|
|
60112
60586
|
function count(container) {
|
|
60113
|
-
if (!isObject$
|
|
60587
|
+
if (!isObject$2(container)) {
|
|
60114
60588
|
throw new Error(ERR_NOT_OBJECT);
|
|
60115
60589
|
}
|
|
60116
60590
|
if (typeof container.count === "function") {
|
|
@@ -60130,7 +60604,7 @@ function count(container) {
|
|
|
60130
60604
|
function isPlainObject(value) {
|
|
60131
60605
|
return value !== null && typeof value === "object" && value.constructor === Object;
|
|
60132
60606
|
}
|
|
60133
|
-
function isObject$
|
|
60607
|
+
function isObject$2(value) {
|
|
60134
60608
|
return value !== null && typeof value === "object";
|
|
60135
60609
|
}
|
|
60136
60610
|
function mergeShaders(target, source) {
|
|
@@ -97150,7 +97624,7 @@ function getCoords$1(coords) {
|
|
|
97150
97624
|
throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array");
|
|
97151
97625
|
}
|
|
97152
97626
|
function containsNumber$1(coordinates2) {
|
|
97153
|
-
if (coordinates2.length > 1 && isNumber(coordinates2[0]) && isNumber(coordinates2[1])) {
|
|
97627
|
+
if (coordinates2.length > 1 && isNumber$1(coordinates2[0]) && isNumber$1(coordinates2[1])) {
|
|
97154
97628
|
return true;
|
|
97155
97629
|
}
|
|
97156
97630
|
if (Array.isArray(coordinates2[0]) && coordinates2[0].length) {
|
|
@@ -99381,7 +99855,7 @@ var hasProto$1 = function hasProto() {
|
|
|
99381
99855
|
};
|
|
99382
99856
|
var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
|
|
99383
99857
|
var toStr$2 = Object.prototype.toString;
|
|
99384
|
-
var max
|
|
99858
|
+
var max = Math.max;
|
|
99385
99859
|
var funcType = "[object Function]";
|
|
99386
99860
|
var concatty = function concatty2(a2, b) {
|
|
99387
99861
|
var arr = [];
|
|
@@ -99433,7 +99907,7 @@ var implementation$7 = function bind2(that) {
|
|
|
99433
99907
|
concatty(args, arguments)
|
|
99434
99908
|
);
|
|
99435
99909
|
};
|
|
99436
|
-
var boundLength = max
|
|
99910
|
+
var boundLength = max(0, target.length - args.length);
|
|
99437
99911
|
var boundArgs = [];
|
|
99438
99912
|
for (var i2 = 0; i2 < boundLength; i2++) {
|
|
99439
99913
|
boundArgs[i2] = "$" + i2;
|
|
@@ -99761,24 +100235,16 @@ var getIntrinsic = function GetIntrinsic(name2, allowMissing) {
|
|
|
99761
100235
|
return value;
|
|
99762
100236
|
};
|
|
99763
100237
|
var callBind$3 = { exports: {} };
|
|
99764
|
-
var
|
|
99765
|
-
var
|
|
99766
|
-
|
|
99767
|
-
|
|
99768
|
-
|
|
99769
|
-
|
|
99770
|
-
|
|
99771
|
-
var $defineProperty2 = GetIntrinsic3("%Object.defineProperty%", true) || false;
|
|
99772
|
-
if ($defineProperty2) {
|
|
99773
|
-
try {
|
|
99774
|
-
$defineProperty2({}, "a", { value: 1 });
|
|
99775
|
-
} catch (e3) {
|
|
99776
|
-
$defineProperty2 = false;
|
|
99777
|
-
}
|
|
100238
|
+
var GetIntrinsic$4 = getIntrinsic;
|
|
100239
|
+
var $defineProperty$3 = GetIntrinsic$4("%Object.defineProperty%", true) || false;
|
|
100240
|
+
if ($defineProperty$3) {
|
|
100241
|
+
try {
|
|
100242
|
+
$defineProperty$3({}, "a", { value: 1 });
|
|
100243
|
+
} catch (e3) {
|
|
100244
|
+
$defineProperty$3 = false;
|
|
99778
100245
|
}
|
|
99779
|
-
esDefineProperty = $defineProperty2;
|
|
99780
|
-
return esDefineProperty;
|
|
99781
100246
|
}
|
|
100247
|
+
var esDefineProperty = $defineProperty$3;
|
|
99782
100248
|
var GetIntrinsic$3 = getIntrinsic;
|
|
99783
100249
|
var $gOPD$1 = GetIntrinsic$3("%Object.getOwnPropertyDescriptor%", true);
|
|
99784
100250
|
if ($gOPD$1) {
|
|
@@ -99789,7 +100255,7 @@ if ($gOPD$1) {
|
|
|
99789
100255
|
}
|
|
99790
100256
|
}
|
|
99791
100257
|
var gopd$1 = $gOPD$1;
|
|
99792
|
-
var $defineProperty$2 =
|
|
100258
|
+
var $defineProperty$2 = esDefineProperty;
|
|
99793
100259
|
var $SyntaxError = syntax;
|
|
99794
100260
|
var $TypeError$3 = type;
|
|
99795
100261
|
var gopd = gopd$1;
|
|
@@ -99830,7 +100296,7 @@ var defineDataProperty$1 = function defineDataProperty(obj, property, value) {
|
|
|
99830
100296
|
throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
99831
100297
|
}
|
|
99832
100298
|
};
|
|
99833
|
-
var $defineProperty$1 =
|
|
100299
|
+
var $defineProperty$1 = esDefineProperty;
|
|
99834
100300
|
var hasPropertyDescriptors$1 = function hasPropertyDescriptors() {
|
|
99835
100301
|
return !!$defineProperty$1;
|
|
99836
100302
|
};
|
|
@@ -99899,7 +100365,7 @@ var setFunctionLength = function setFunctionLength2(fn, length2) {
|
|
|
99899
100365
|
var $apply = GetIntrinsic3("%Function.prototype.apply%");
|
|
99900
100366
|
var $call = GetIntrinsic3("%Function.prototype.call%");
|
|
99901
100367
|
var $reflectApply = GetIntrinsic3("%Reflect.apply%", true) || bind4.call($call, $apply);
|
|
99902
|
-
var $defineProperty2 =
|
|
100368
|
+
var $defineProperty2 = esDefineProperty;
|
|
99903
100369
|
var $max = GetIntrinsic3("%Math.max%");
|
|
99904
100370
|
module2.exports = function callBind2(originalFunction) {
|
|
99905
100371
|
if (typeof originalFunction !== "function") {
|
|
@@ -99981,7 +100447,7 @@ var hasSymbols2 = typeof Symbol === "function" && typeof Symbol("foo") === "symb
|
|
|
99981
100447
|
var toStr$1 = Object.prototype.toString;
|
|
99982
100448
|
var concat = Array.prototype.concat;
|
|
99983
100449
|
var defineDataProperty2 = defineDataProperty$1;
|
|
99984
|
-
var isFunction = function(fn) {
|
|
100450
|
+
var isFunction$1 = function(fn) {
|
|
99985
100451
|
return typeof fn === "function" && toStr$1.call(fn) === "[object Function]";
|
|
99986
100452
|
};
|
|
99987
100453
|
var supportsDescriptors$2 = hasPropertyDescriptors_1();
|
|
@@ -99991,7 +100457,7 @@ var defineProperty$1 = function(object2, name2, value, predicate) {
|
|
|
99991
100457
|
if (object2[name2] === value) {
|
|
99992
100458
|
return;
|
|
99993
100459
|
}
|
|
99994
|
-
} else if (!isFunction(predicate) || !predicate()) {
|
|
100460
|
+
} else if (!isFunction$1(predicate) || !predicate()) {
|
|
99995
100461
|
return;
|
|
99996
100462
|
}
|
|
99997
100463
|
}
|
|
@@ -100375,7 +100841,7 @@ function lineOverlap(line1, line2, options) {
|
|
|
100375
100841
|
options = {};
|
|
100376
100842
|
}
|
|
100377
100843
|
options = options || {};
|
|
100378
|
-
if (!isObject$
|
|
100844
|
+
if (!isObject$4(options))
|
|
100379
100845
|
throw new Error("options is invalid");
|
|
100380
100846
|
var tolerance = options.tolerance || 0;
|
|
100381
100847
|
var features = [];
|
|
@@ -100935,19 +101401,19 @@ var jsts_min = { exports: {} };
|
|
|
100935
101401
|
}, Object.defineProperties(w2, O);
|
|
100936
101402
|
var T = function(t3, e4) {
|
|
100937
101403
|
return t3.interfaces_ && t3.interfaces_().indexOf(e4) > -1;
|
|
100938
|
-
},
|
|
101404
|
+
}, R = function() {
|
|
100939
101405
|
}, P = { LOG_10: { configurable: true } };
|
|
100940
|
-
|
|
101406
|
+
R.prototype.interfaces_ = function() {
|
|
100941
101407
|
return [];
|
|
100942
|
-
},
|
|
100943
|
-
return
|
|
100944
|
-
},
|
|
101408
|
+
}, R.prototype.getClass = function() {
|
|
101409
|
+
return R;
|
|
101410
|
+
}, R.log10 = function(t3) {
|
|
100945
101411
|
var e4 = Math.log(t3);
|
|
100946
|
-
return v.isInfinite(e4) ? e4 : v.isNaN(e4) ? e4 : e4 /
|
|
100947
|
-
},
|
|
101412
|
+
return v.isInfinite(e4) ? e4 : v.isNaN(e4) ? e4 : e4 / R.LOG_10;
|
|
101413
|
+
}, R.min = function(t3, e4, n3, i3) {
|
|
100948
101414
|
var r3 = t3;
|
|
100949
101415
|
return e4 < r3 && (r3 = e4), n3 < r3 && (r3 = n3), i3 < r3 && (r3 = i3), r3;
|
|
100950
|
-
},
|
|
101416
|
+
}, R.clamp = function() {
|
|
100951
101417
|
if ("number" == typeof arguments[2] && "number" == typeof arguments[0] && "number" == typeof arguments[1]) {
|
|
100952
101418
|
var t3 = arguments[0], e4 = arguments[1], n3 = arguments[2];
|
|
100953
101419
|
return t3 < e4 ? e4 : t3 > n3 ? n3 : t3;
|
|
@@ -100956,9 +101422,9 @@ var jsts_min = { exports: {} };
|
|
|
100956
101422
|
var i3 = arguments[0], r3 = arguments[1], o3 = arguments[2];
|
|
100957
101423
|
return i3 < r3 ? r3 : i3 > o3 ? o3 : i3;
|
|
100958
101424
|
}
|
|
100959
|
-
},
|
|
101425
|
+
}, R.wrap = function(t3, e4) {
|
|
100960
101426
|
return t3 < 0 ? e4 - -t3 % e4 : t3 % e4;
|
|
100961
|
-
},
|
|
101427
|
+
}, R.max = function() {
|
|
100962
101428
|
if (3 === arguments.length) {
|
|
100963
101429
|
var t3 = arguments[0], e4 = arguments[1], n3 = arguments[2], i3 = t3;
|
|
100964
101430
|
return e4 > i3 && (i3 = e4), n3 > i3 && (i3 = n3), i3;
|
|
@@ -100967,11 +101433,11 @@ var jsts_min = { exports: {} };
|
|
|
100967
101433
|
var r3 = arguments[0], o3 = arguments[1], s3 = arguments[2], a3 = arguments[3], u2 = r3;
|
|
100968
101434
|
return o3 > u2 && (u2 = o3), s3 > u2 && (u2 = s3), a3 > u2 && (u2 = a3), u2;
|
|
100969
101435
|
}
|
|
100970
|
-
},
|
|
101436
|
+
}, R.average = function(t3, e4) {
|
|
100971
101437
|
return (t3 + e4) / 2;
|
|
100972
101438
|
}, P.LOG_10.get = function() {
|
|
100973
101439
|
return Math.log(10);
|
|
100974
|
-
}, Object.defineProperties(
|
|
101440
|
+
}, Object.defineProperties(R, P);
|
|
100975
101441
|
var D2 = function(t3) {
|
|
100976
101442
|
this.str = t3;
|
|
100977
101443
|
};
|
|
@@ -102126,7 +102592,7 @@ var jsts_min = { exports: {} };
|
|
|
102126
102592
|
}
|
|
102127
102593
|
} else
|
|
102128
102594
|
r3 = true;
|
|
102129
|
-
return r3 ?
|
|
102595
|
+
return r3 ? R.min(at2.distancePointLine(t3, n3, i3), at2.distancePointLine(e4, n3, i3), at2.distancePointLine(n3, t3, e4), at2.distancePointLine(i3, t3, e4)) : 0;
|
|
102130
102596
|
}, at2.isPointInRing = function(t3, e4) {
|
|
102131
102597
|
return at2.locatePointInRing(t3, e4) !== w2.EXTERIOR;
|
|
102132
102598
|
}, at2.computeLength = function(t3) {
|
|
@@ -102716,8 +103182,8 @@ var jsts_min = { exports: {} };
|
|
|
102716
103182
|
(null === e4 || e4.compareTo(t3[n3]) > 0) && (e4 = t3[n3]);
|
|
102717
103183
|
return e4;
|
|
102718
103184
|
}, Lt.extract = function(t3, e4, n3) {
|
|
102719
|
-
e4 =
|
|
102720
|
-
var i3 = (n3 =
|
|
103185
|
+
e4 = R.clamp(e4, 0, t3.length);
|
|
103186
|
+
var i3 = (n3 = R.clamp(n3, -1, t3.length)) - e4 + 1;
|
|
102721
103187
|
n3 < 0 && (i3 = 0), e4 >= t3.length && (i3 = 0), n3 < e4 && (i3 = 0);
|
|
102722
103188
|
var r3 = new Array(i3).fill(null);
|
|
102723
103189
|
if (0 === i3)
|
|
@@ -108462,7 +108928,7 @@ var jsts_min = { exports: {} };
|
|
|
108462
108928
|
return f3.getResultGeometry(c2);
|
|
108463
108929
|
}
|
|
108464
108930
|
}, di.precisionScaleFactor = function(t3, e4, n3) {
|
|
108465
|
-
var i3 = t3.getEnvelopeInternal(), r3 =
|
|
108931
|
+
var i3 = t3.getEnvelopeInternal(), r3 = R.max(Math.abs(i3.getMaxX()), Math.abs(i3.getMaxY()), Math.abs(i3.getMinX()), Math.abs(i3.getMinY())) + 2 * (e4 > 0 ? e4 : 0), o3 = n3 - Math.trunc(Math.log(r3) / Math.log(10) + 1);
|
|
108466
108932
|
return Math.pow(10, o3);
|
|
108467
108933
|
}, yi.CAP_ROUND.get = function() {
|
|
108468
108934
|
return Cn.CAP_ROUND;
|
|
@@ -111705,7 +112171,7 @@ function clipExtent(x02, y02, x12, y12) {
|
|
|
111705
112171
|
return clipStream;
|
|
111706
112172
|
};
|
|
111707
112173
|
}
|
|
111708
|
-
function extent
|
|
112174
|
+
function extent() {
|
|
111709
112175
|
var x02 = 0, y02 = 0, x12 = 960, y12 = 500, cache2, cacheStream, clip2;
|
|
111710
112176
|
return clip2 = {
|
|
111711
112177
|
stream: function(stream) {
|
|
@@ -113112,7 +113578,7 @@ const d3Geo$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
113112
113578
|
geoBounds: bounds,
|
|
113113
113579
|
geoCentroid: centroid$3,
|
|
113114
113580
|
geoCircle: circle$2,
|
|
113115
|
-
geoClipExtent: extent
|
|
113581
|
+
geoClipExtent: extent,
|
|
113116
113582
|
geoConicConformal: conicConformal,
|
|
113117
113583
|
geoConicConformalRaw: conicConformalRaw,
|
|
113118
113584
|
geoConicEqualArea: conicEqualArea,
|
|
@@ -115853,372 +116319,216 @@ var layerMouseEvent = {};
|
|
|
115853
116319
|
exports2["default"] = LayerMouseEvent;
|
|
115854
116320
|
})(layerMouseEvent);
|
|
115855
116321
|
var nebulaLayer = {};
|
|
115856
|
-
var events = { exports: {} };
|
|
115857
|
-
var R = typeof Reflect === "object" ? Reflect : null;
|
|
115858
|
-
var ReflectApply = R && typeof R.apply === "function" ? R.apply : function ReflectApply2(target, receiver, args) {
|
|
115859
|
-
return Function.prototype.apply.call(target, receiver, args);
|
|
115860
|
-
};
|
|
115861
|
-
var ReflectOwnKeys;
|
|
115862
|
-
if (R && typeof R.ownKeys === "function") {
|
|
115863
|
-
ReflectOwnKeys = R.ownKeys;
|
|
115864
|
-
} else if (Object.getOwnPropertySymbols) {
|
|
115865
|
-
ReflectOwnKeys = function ReflectOwnKeys2(target) {
|
|
115866
|
-
return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
|
|
115867
|
-
};
|
|
115868
|
-
} else {
|
|
115869
|
-
ReflectOwnKeys = function ReflectOwnKeys2(target) {
|
|
115870
|
-
return Object.getOwnPropertyNames(target);
|
|
115871
|
-
};
|
|
115872
|
-
}
|
|
115873
|
-
function ProcessEmitWarning(warning2) {
|
|
115874
|
-
if (console && console.warn)
|
|
115875
|
-
console.warn(warning2);
|
|
115876
|
-
}
|
|
115877
|
-
var NumberIsNaN = Number.isNaN || function NumberIsNaN2(value) {
|
|
115878
|
-
return value !== value;
|
|
115879
|
-
};
|
|
115880
116322
|
function EventEmitter() {
|
|
115881
|
-
|
|
116323
|
+
this._events = this._events || {};
|
|
116324
|
+
this._maxListeners = this._maxListeners || void 0;
|
|
115882
116325
|
}
|
|
115883
|
-
events
|
|
115884
|
-
events.exports.once = once2;
|
|
116326
|
+
var events = EventEmitter;
|
|
115885
116327
|
EventEmitter.EventEmitter = EventEmitter;
|
|
115886
116328
|
EventEmitter.prototype._events = void 0;
|
|
115887
|
-
EventEmitter.prototype._eventsCount = 0;
|
|
115888
116329
|
EventEmitter.prototype._maxListeners = void 0;
|
|
115889
|
-
|
|
115890
|
-
function
|
|
115891
|
-
if (
|
|
115892
|
-
throw
|
|
115893
|
-
}
|
|
115894
|
-
}
|
|
115895
|
-
Object.defineProperty(EventEmitter, "defaultMaxListeners", {
|
|
115896
|
-
enumerable: true,
|
|
115897
|
-
get: function() {
|
|
115898
|
-
return defaultMaxListeners;
|
|
115899
|
-
},
|
|
115900
|
-
set: function(arg) {
|
|
115901
|
-
if (typeof arg !== "number" || arg < 0 || NumberIsNaN(arg)) {
|
|
115902
|
-
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + ".");
|
|
115903
|
-
}
|
|
115904
|
-
defaultMaxListeners = arg;
|
|
115905
|
-
}
|
|
115906
|
-
});
|
|
115907
|
-
EventEmitter.init = function() {
|
|
115908
|
-
if (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) {
|
|
115909
|
-
this._events = /* @__PURE__ */ Object.create(null);
|
|
115910
|
-
this._eventsCount = 0;
|
|
115911
|
-
}
|
|
115912
|
-
this._maxListeners = this._maxListeners || void 0;
|
|
115913
|
-
};
|
|
115914
|
-
EventEmitter.prototype.setMaxListeners = function setMaxListeners(n2) {
|
|
115915
|
-
if (typeof n2 !== "number" || n2 < 0 || NumberIsNaN(n2)) {
|
|
115916
|
-
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n2 + ".");
|
|
115917
|
-
}
|
|
116330
|
+
EventEmitter.defaultMaxListeners = 10;
|
|
116331
|
+
EventEmitter.prototype.setMaxListeners = function(n2) {
|
|
116332
|
+
if (!isNumber(n2) || n2 < 0 || isNaN(n2))
|
|
116333
|
+
throw TypeError("n must be a positive number");
|
|
115918
116334
|
this._maxListeners = n2;
|
|
115919
116335
|
return this;
|
|
115920
116336
|
};
|
|
115921
|
-
function
|
|
115922
|
-
|
|
115923
|
-
|
|
115924
|
-
|
|
115925
|
-
|
|
115926
|
-
|
|
115927
|
-
|
|
115928
|
-
|
|
115929
|
-
|
|
115930
|
-
|
|
115931
|
-
|
|
115932
|
-
|
|
115933
|
-
|
|
115934
|
-
|
|
115935
|
-
|
|
115936
|
-
|
|
115937
|
-
|
|
115938
|
-
|
|
115939
|
-
if (doError) {
|
|
115940
|
-
var er;
|
|
115941
|
-
if (args.length > 0)
|
|
115942
|
-
er = args[0];
|
|
115943
|
-
if (er instanceof Error) {
|
|
115944
|
-
throw er;
|
|
115945
|
-
}
|
|
115946
|
-
var err2 = new Error("Unhandled error." + (er ? " (" + er.message + ")" : ""));
|
|
115947
|
-
err2.context = er;
|
|
115948
|
-
throw err2;
|
|
115949
|
-
}
|
|
115950
|
-
var handler = events2[type2];
|
|
115951
|
-
if (handler === void 0)
|
|
116337
|
+
EventEmitter.prototype.emit = function(type2) {
|
|
116338
|
+
var er, handler, len2, args, i2, listeners;
|
|
116339
|
+
if (!this._events)
|
|
116340
|
+
this._events = {};
|
|
116341
|
+
if (type2 === "error") {
|
|
116342
|
+
if (!this._events.error || isObject$1(this._events.error) && !this._events.error.length) {
|
|
116343
|
+
er = arguments[1];
|
|
116344
|
+
if (er instanceof Error) {
|
|
116345
|
+
throw er;
|
|
116346
|
+
} else {
|
|
116347
|
+
var err2 = new Error('Uncaught, unspecified "error" event. (' + er + ")");
|
|
116348
|
+
err2.context = er;
|
|
116349
|
+
throw err2;
|
|
116350
|
+
}
|
|
116351
|
+
}
|
|
116352
|
+
}
|
|
116353
|
+
handler = this._events[type2];
|
|
116354
|
+
if (isUndefined(handler))
|
|
115952
116355
|
return false;
|
|
115953
|
-
if (
|
|
115954
|
-
|
|
115955
|
-
|
|
115956
|
-
|
|
115957
|
-
|
|
115958
|
-
|
|
115959
|
-
|
|
116356
|
+
if (isFunction(handler)) {
|
|
116357
|
+
switch (arguments.length) {
|
|
116358
|
+
case 1:
|
|
116359
|
+
handler.call(this);
|
|
116360
|
+
break;
|
|
116361
|
+
case 2:
|
|
116362
|
+
handler.call(this, arguments[1]);
|
|
116363
|
+
break;
|
|
116364
|
+
case 3:
|
|
116365
|
+
handler.call(this, arguments[1], arguments[2]);
|
|
116366
|
+
break;
|
|
116367
|
+
default:
|
|
116368
|
+
args = Array.prototype.slice.call(arguments, 1);
|
|
116369
|
+
handler.apply(this, args);
|
|
116370
|
+
}
|
|
116371
|
+
} else if (isObject$1(handler)) {
|
|
116372
|
+
args = Array.prototype.slice.call(arguments, 1);
|
|
116373
|
+
listeners = handler.slice();
|
|
116374
|
+
len2 = listeners.length;
|
|
116375
|
+
for (i2 = 0; i2 < len2; i2++)
|
|
116376
|
+
listeners[i2].apply(this, args);
|
|
115960
116377
|
}
|
|
115961
116378
|
return true;
|
|
115962
116379
|
};
|
|
115963
|
-
function
|
|
116380
|
+
EventEmitter.prototype.addListener = function(type2, listener) {
|
|
115964
116381
|
var m;
|
|
115965
|
-
|
|
115966
|
-
|
|
115967
|
-
|
|
115968
|
-
|
|
115969
|
-
if (
|
|
115970
|
-
|
|
115971
|
-
|
|
115972
|
-
|
|
115973
|
-
|
|
115974
|
-
|
|
115975
|
-
|
|
115976
|
-
|
|
115977
|
-
|
|
115978
|
-
|
|
115979
|
-
|
|
115980
|
-
|
|
115981
|
-
|
|
115982
|
-
|
|
115983
|
-
|
|
115984
|
-
existing = events2[type2] = listener;
|
|
115985
|
-
++target._eventsCount;
|
|
115986
|
-
} else {
|
|
115987
|
-
if (typeof existing === "function") {
|
|
115988
|
-
existing = events2[type2] = prepend ? [listener, existing] : [existing, listener];
|
|
115989
|
-
} else if (prepend) {
|
|
115990
|
-
existing.unshift(listener);
|
|
116382
|
+
if (!isFunction(listener))
|
|
116383
|
+
throw TypeError("listener must be a function");
|
|
116384
|
+
if (!this._events)
|
|
116385
|
+
this._events = {};
|
|
116386
|
+
if (this._events.newListener)
|
|
116387
|
+
this.emit(
|
|
116388
|
+
"newListener",
|
|
116389
|
+
type2,
|
|
116390
|
+
isFunction(listener.listener) ? listener.listener : listener
|
|
116391
|
+
);
|
|
116392
|
+
if (!this._events[type2])
|
|
116393
|
+
this._events[type2] = listener;
|
|
116394
|
+
else if (isObject$1(this._events[type2]))
|
|
116395
|
+
this._events[type2].push(listener);
|
|
116396
|
+
else
|
|
116397
|
+
this._events[type2] = [this._events[type2], listener];
|
|
116398
|
+
if (isObject$1(this._events[type2]) && !this._events[type2].warned) {
|
|
116399
|
+
if (!isUndefined(this._maxListeners)) {
|
|
116400
|
+
m = this._maxListeners;
|
|
115991
116401
|
} else {
|
|
115992
|
-
|
|
116402
|
+
m = EventEmitter.defaultMaxListeners;
|
|
115993
116403
|
}
|
|
115994
|
-
m
|
|
115995
|
-
|
|
115996
|
-
|
|
115997
|
-
|
|
115998
|
-
|
|
115999
|
-
|
|
116000
|
-
|
|
116001
|
-
|
|
116002
|
-
|
|
116404
|
+
if (m && m > 0 && this._events[type2].length > m) {
|
|
116405
|
+
this._events[type2].warned = true;
|
|
116406
|
+
console.error(
|
|
116407
|
+
"(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",
|
|
116408
|
+
this._events[type2].length
|
|
116409
|
+
);
|
|
116410
|
+
if (typeof console.trace === "function") {
|
|
116411
|
+
console.trace();
|
|
116412
|
+
}
|
|
116003
116413
|
}
|
|
116004
116414
|
}
|
|
116005
|
-
return target;
|
|
116006
|
-
}
|
|
116007
|
-
EventEmitter.prototype.addListener = function addListener(type2, listener) {
|
|
116008
|
-
return _addListener(this, type2, listener, false);
|
|
116009
|
-
};
|
|
116010
|
-
EventEmitter.prototype.on = EventEmitter.prototype.addListener;
|
|
116011
|
-
EventEmitter.prototype.prependListener = function prependListener(type2, listener) {
|
|
116012
|
-
return _addListener(this, type2, listener, true);
|
|
116013
|
-
};
|
|
116014
|
-
function onceWrapper() {
|
|
116015
|
-
if (!this.fired) {
|
|
116016
|
-
this.target.removeListener(this.type, this.wrapFn);
|
|
116017
|
-
this.fired = true;
|
|
116018
|
-
if (arguments.length === 0)
|
|
116019
|
-
return this.listener.call(this.target);
|
|
116020
|
-
return this.listener.apply(this.target, arguments);
|
|
116021
|
-
}
|
|
116022
|
-
}
|
|
116023
|
-
function _onceWrap(target, type2, listener) {
|
|
116024
|
-
var state = { fired: false, wrapFn: void 0, target, type: type2, listener };
|
|
116025
|
-
var wrapped = onceWrapper.bind(state);
|
|
116026
|
-
wrapped.listener = listener;
|
|
116027
|
-
state.wrapFn = wrapped;
|
|
116028
|
-
return wrapped;
|
|
116029
|
-
}
|
|
116030
|
-
EventEmitter.prototype.once = function once(type2, listener) {
|
|
116031
|
-
checkListener(listener);
|
|
116032
|
-
this.on(type2, _onceWrap(this, type2, listener));
|
|
116033
116415
|
return this;
|
|
116034
116416
|
};
|
|
116035
|
-
EventEmitter.prototype.
|
|
116036
|
-
|
|
116037
|
-
|
|
116417
|
+
EventEmitter.prototype.on = EventEmitter.prototype.addListener;
|
|
116418
|
+
EventEmitter.prototype.once = function(type2, listener) {
|
|
116419
|
+
if (!isFunction(listener))
|
|
116420
|
+
throw TypeError("listener must be a function");
|
|
116421
|
+
var fired = false;
|
|
116422
|
+
function g2() {
|
|
116423
|
+
this.removeListener(type2, g2);
|
|
116424
|
+
if (!fired) {
|
|
116425
|
+
fired = true;
|
|
116426
|
+
listener.apply(this, arguments);
|
|
116427
|
+
}
|
|
116428
|
+
}
|
|
116429
|
+
g2.listener = listener;
|
|
116430
|
+
this.on(type2, g2);
|
|
116038
116431
|
return this;
|
|
116039
116432
|
};
|
|
116040
|
-
EventEmitter.prototype.removeListener = function
|
|
116041
|
-
var list,
|
|
116042
|
-
|
|
116043
|
-
|
|
116044
|
-
if (
|
|
116045
|
-
return this;
|
|
116046
|
-
list = events2[type2];
|
|
116047
|
-
if (list === void 0)
|
|
116433
|
+
EventEmitter.prototype.removeListener = function(type2, listener) {
|
|
116434
|
+
var list, position, length2, i2;
|
|
116435
|
+
if (!isFunction(listener))
|
|
116436
|
+
throw TypeError("listener must be a function");
|
|
116437
|
+
if (!this._events || !this._events[type2])
|
|
116048
116438
|
return this;
|
|
116049
|
-
|
|
116050
|
-
|
|
116051
|
-
|
|
116052
|
-
|
|
116053
|
-
|
|
116054
|
-
|
|
116055
|
-
|
|
116056
|
-
|
|
116057
|
-
|
|
116058
|
-
|
|
116059
|
-
for (i2 = list.length - 1; i2 >= 0; i2--) {
|
|
116060
|
-
if (list[i2] === listener || list[i2].listener === listener) {
|
|
116061
|
-
originalListener = list[i2].listener;
|
|
116439
|
+
list = this._events[type2];
|
|
116440
|
+
length2 = list.length;
|
|
116441
|
+
position = -1;
|
|
116442
|
+
if (list === listener || isFunction(list.listener) && list.listener === listener) {
|
|
116443
|
+
delete this._events[type2];
|
|
116444
|
+
if (this._events.removeListener)
|
|
116445
|
+
this.emit("removeListener", type2, listener);
|
|
116446
|
+
} else if (isObject$1(list)) {
|
|
116447
|
+
for (i2 = length2; i2-- > 0; ) {
|
|
116448
|
+
if (list[i2] === listener || list[i2].listener && list[i2].listener === listener) {
|
|
116062
116449
|
position = i2;
|
|
116063
116450
|
break;
|
|
116064
116451
|
}
|
|
116065
116452
|
}
|
|
116066
116453
|
if (position < 0)
|
|
116067
116454
|
return this;
|
|
116068
|
-
if (
|
|
116069
|
-
list.
|
|
116070
|
-
|
|
116071
|
-
|
|
116455
|
+
if (list.length === 1) {
|
|
116456
|
+
list.length = 0;
|
|
116457
|
+
delete this._events[type2];
|
|
116458
|
+
} else {
|
|
116459
|
+
list.splice(position, 1);
|
|
116072
116460
|
}
|
|
116073
|
-
if (
|
|
116074
|
-
|
|
116075
|
-
if (events2.removeListener !== void 0)
|
|
116076
|
-
this.emit("removeListener", type2, originalListener || listener);
|
|
116461
|
+
if (this._events.removeListener)
|
|
116462
|
+
this.emit("removeListener", type2, listener);
|
|
116077
116463
|
}
|
|
116078
116464
|
return this;
|
|
116079
116465
|
};
|
|
116080
|
-
EventEmitter.prototype.
|
|
116081
|
-
|
|
116082
|
-
|
|
116083
|
-
events2 = this._events;
|
|
116084
|
-
if (events2 === void 0)
|
|
116466
|
+
EventEmitter.prototype.removeAllListeners = function(type2) {
|
|
116467
|
+
var key, listeners;
|
|
116468
|
+
if (!this._events)
|
|
116085
116469
|
return this;
|
|
116086
|
-
if (
|
|
116087
|
-
if (arguments.length === 0)
|
|
116088
|
-
this._events =
|
|
116089
|
-
|
|
116090
|
-
|
|
116091
|
-
if (--this._eventsCount === 0)
|
|
116092
|
-
this._events = /* @__PURE__ */ Object.create(null);
|
|
116093
|
-
else
|
|
116094
|
-
delete events2[type2];
|
|
116095
|
-
}
|
|
116470
|
+
if (!this._events.removeListener) {
|
|
116471
|
+
if (arguments.length === 0)
|
|
116472
|
+
this._events = {};
|
|
116473
|
+
else if (this._events[type2])
|
|
116474
|
+
delete this._events[type2];
|
|
116096
116475
|
return this;
|
|
116097
116476
|
}
|
|
116098
116477
|
if (arguments.length === 0) {
|
|
116099
|
-
|
|
116100
|
-
var key;
|
|
116101
|
-
for (i2 = 0; i2 < keys3.length; ++i2) {
|
|
116102
|
-
key = keys3[i2];
|
|
116478
|
+
for (key in this._events) {
|
|
116103
116479
|
if (key === "removeListener")
|
|
116104
116480
|
continue;
|
|
116105
116481
|
this.removeAllListeners(key);
|
|
116106
116482
|
}
|
|
116107
116483
|
this.removeAllListeners("removeListener");
|
|
116108
|
-
this._events =
|
|
116109
|
-
this._eventsCount = 0;
|
|
116484
|
+
this._events = {};
|
|
116110
116485
|
return this;
|
|
116111
116486
|
}
|
|
116112
|
-
|
|
116113
|
-
if (
|
|
116114
|
-
this.removeListener(type2,
|
|
116115
|
-
} else if (
|
|
116116
|
-
|
|
116117
|
-
this.removeListener(type2,
|
|
116118
|
-
}
|
|
116487
|
+
listeners = this._events[type2];
|
|
116488
|
+
if (isFunction(listeners)) {
|
|
116489
|
+
this.removeListener(type2, listeners);
|
|
116490
|
+
} else if (listeners) {
|
|
116491
|
+
while (listeners.length)
|
|
116492
|
+
this.removeListener(type2, listeners[listeners.length - 1]);
|
|
116119
116493
|
}
|
|
116494
|
+
delete this._events[type2];
|
|
116120
116495
|
return this;
|
|
116121
116496
|
};
|
|
116122
|
-
function
|
|
116123
|
-
var
|
|
116124
|
-
if (
|
|
116125
|
-
|
|
116126
|
-
|
|
116127
|
-
|
|
116128
|
-
|
|
116129
|
-
|
|
116130
|
-
|
|
116131
|
-
return unwrap ? unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);
|
|
116132
|
-
}
|
|
116133
|
-
EventEmitter.prototype.listeners = function listeners(type2) {
|
|
116134
|
-
return _listeners(this, type2, true);
|
|
116135
|
-
};
|
|
116136
|
-
EventEmitter.prototype.rawListeners = function rawListeners(type2) {
|
|
116137
|
-
return _listeners(this, type2, false);
|
|
116138
|
-
};
|
|
116139
|
-
EventEmitter.listenerCount = function(emitter, type2) {
|
|
116140
|
-
if (typeof emitter.listenerCount === "function") {
|
|
116141
|
-
return emitter.listenerCount(type2);
|
|
116142
|
-
} else {
|
|
116143
|
-
return listenerCount.call(emitter, type2);
|
|
116144
|
-
}
|
|
116497
|
+
EventEmitter.prototype.listeners = function(type2) {
|
|
116498
|
+
var ret;
|
|
116499
|
+
if (!this._events || !this._events[type2])
|
|
116500
|
+
ret = [];
|
|
116501
|
+
else if (isFunction(this._events[type2]))
|
|
116502
|
+
ret = [this._events[type2]];
|
|
116503
|
+
else
|
|
116504
|
+
ret = this._events[type2].slice();
|
|
116505
|
+
return ret;
|
|
116145
116506
|
};
|
|
116146
|
-
EventEmitter.prototype.listenerCount =
|
|
116147
|
-
|
|
116148
|
-
|
|
116149
|
-
|
|
116150
|
-
var evlistener = events2[type2];
|
|
116151
|
-
if (typeof evlistener === "function") {
|
|
116507
|
+
EventEmitter.prototype.listenerCount = function(type2) {
|
|
116508
|
+
if (this._events) {
|
|
116509
|
+
var evlistener = this._events[type2];
|
|
116510
|
+
if (isFunction(evlistener))
|
|
116152
116511
|
return 1;
|
|
116153
|
-
|
|
116512
|
+
else if (evlistener)
|
|
116154
116513
|
return evlistener.length;
|
|
116155
|
-
}
|
|
116156
116514
|
}
|
|
116157
116515
|
return 0;
|
|
116158
|
-
}
|
|
116159
|
-
EventEmitter.prototype.eventNames = function eventNames() {
|
|
116160
|
-
return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];
|
|
116161
116516
|
};
|
|
116162
|
-
function
|
|
116163
|
-
|
|
116164
|
-
|
|
116165
|
-
|
|
116166
|
-
return
|
|
116167
|
-
}
|
|
116168
|
-
function spliceOne(list, index2) {
|
|
116169
|
-
for (; index2 + 1 < list.length; index2++)
|
|
116170
|
-
list[index2] = list[index2 + 1];
|
|
116171
|
-
list.pop();
|
|
116517
|
+
EventEmitter.listenerCount = function(emitter, type2) {
|
|
116518
|
+
return emitter.listenerCount(type2);
|
|
116519
|
+
};
|
|
116520
|
+
function isFunction(arg) {
|
|
116521
|
+
return typeof arg === "function";
|
|
116172
116522
|
}
|
|
116173
|
-
function
|
|
116174
|
-
|
|
116175
|
-
for (var i2 = 0; i2 < ret.length; ++i2) {
|
|
116176
|
-
ret[i2] = arr[i2].listener || arr[i2];
|
|
116177
|
-
}
|
|
116178
|
-
return ret;
|
|
116523
|
+
function isNumber(arg) {
|
|
116524
|
+
return typeof arg === "number";
|
|
116179
116525
|
}
|
|
116180
|
-
function
|
|
116181
|
-
return
|
|
116182
|
-
function errorListener(err2) {
|
|
116183
|
-
emitter.removeListener(name2, resolver);
|
|
116184
|
-
reject(err2);
|
|
116185
|
-
}
|
|
116186
|
-
function resolver() {
|
|
116187
|
-
if (typeof emitter.removeListener === "function") {
|
|
116188
|
-
emitter.removeListener("error", errorListener);
|
|
116189
|
-
}
|
|
116190
|
-
resolve([].slice.call(arguments));
|
|
116191
|
-
}
|
|
116192
|
-
eventTargetAgnosticAddListener(emitter, name2, resolver, { once: true });
|
|
116193
|
-
if (name2 !== "error") {
|
|
116194
|
-
addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });
|
|
116195
|
-
}
|
|
116196
|
-
});
|
|
116526
|
+
function isObject$1(arg) {
|
|
116527
|
+
return typeof arg === "object" && arg !== null;
|
|
116197
116528
|
}
|
|
116198
|
-
function
|
|
116199
|
-
|
|
116200
|
-
eventTargetAgnosticAddListener(emitter, "error", handler, flags3);
|
|
116201
|
-
}
|
|
116529
|
+
function isUndefined(arg) {
|
|
116530
|
+
return arg === void 0;
|
|
116202
116531
|
}
|
|
116203
|
-
function eventTargetAgnosticAddListener(emitter, name2, listener, flags3) {
|
|
116204
|
-
if (typeof emitter.on === "function") {
|
|
116205
|
-
if (flags3.once) {
|
|
116206
|
-
emitter.once(name2, listener);
|
|
116207
|
-
} else {
|
|
116208
|
-
emitter.on(name2, listener);
|
|
116209
|
-
}
|
|
116210
|
-
} else if (typeof emitter.addEventListener === "function") {
|
|
116211
|
-
emitter.addEventListener(name2, function wrapListener(arg) {
|
|
116212
|
-
if (flags3.once) {
|
|
116213
|
-
emitter.removeEventListener(name2, wrapListener);
|
|
116214
|
-
}
|
|
116215
|
-
listener(arg);
|
|
116216
|
-
});
|
|
116217
|
-
} else {
|
|
116218
|
-
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter);
|
|
116219
|
-
}
|
|
116220
|
-
}
|
|
116221
|
-
var eventsExports = events.exports;
|
|
116222
116532
|
var getRandomValues = typeof crypto != "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto != "undefined" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto);
|
|
116223
116533
|
var rnds8 = new Uint8Array(16);
|
|
116224
116534
|
function rng() {
|
|
@@ -116584,7 +116894,7 @@ const require$$1$3 = /* @__PURE__ */ getAugmentedNamespace(esmBrowser);
|
|
|
116584
116894
|
value: true
|
|
116585
116895
|
});
|
|
116586
116896
|
exports2["default"] = void 0;
|
|
116587
|
-
var _events = _interopRequireDefault2(
|
|
116897
|
+
var _events = _interopRequireDefault2(events);
|
|
116588
116898
|
var _uuid = _interopRequireDefault2(require$$1$3);
|
|
116589
116899
|
function _interopRequireDefault2(obj) {
|
|
116590
116900
|
return obj && obj.__esModule ? obj : { "default": obj };
|
|
@@ -117068,7 +117378,7 @@ function rhumbDistance$2(from, to, options) {
|
|
|
117068
117378
|
}
|
|
117069
117379
|
function calculateRhumbDistance(origin, destination2, radius) {
|
|
117070
117380
|
radius = radius === void 0 ? helpers_1$9.earthRadius : Number(radius);
|
|
117071
|
-
var
|
|
117381
|
+
var R = radius;
|
|
117072
117382
|
var phi12 = origin[1] * Math.PI / 180;
|
|
117073
117383
|
var phi2 = destination2[1] * Math.PI / 180;
|
|
117074
117384
|
var DeltaPhi = phi2 - phi12;
|
|
@@ -117079,7 +117389,7 @@ function calculateRhumbDistance(origin, destination2, radius) {
|
|
|
117079
117389
|
var DeltaPsi = Math.log(Math.tan(phi2 / 2 + Math.PI / 4) / Math.tan(phi12 / 2 + Math.PI / 4));
|
|
117080
117390
|
var q = Math.abs(DeltaPsi) > 1e-11 ? DeltaPhi / DeltaPsi : Math.cos(phi12);
|
|
117081
117391
|
var delta = Math.sqrt(DeltaPhi * DeltaPhi + q * q * DeltaLambda * DeltaLambda);
|
|
117082
|
-
var dist = delta *
|
|
117392
|
+
var dist = delta * R;
|
|
117083
117393
|
return dist;
|
|
117084
117394
|
}
|
|
117085
117395
|
js$e.default = rhumbDistance$2;
|
|
@@ -131626,7 +131936,7 @@ var document_1 = doccy;
|
|
|
131626
131936
|
value: true
|
|
131627
131937
|
});
|
|
131628
131938
|
exports2["default"] = void 0;
|
|
131629
|
-
var _events =
|
|
131939
|
+
var _events = events;
|
|
131630
131940
|
var _document = _interopRequireDefault2(document_1);
|
|
131631
131941
|
var _core = require$$2$2;
|
|
131632
131942
|
var _deckDrawer = _interopRequireDefault2(deckDrawer);
|
|
@@ -133552,16 +133862,16 @@ function addDecoder(cases, importFn) {
|
|
|
133552
133862
|
}
|
|
133553
133863
|
cases.forEach((c) => registry$1.set(c, importFn));
|
|
133554
133864
|
}
|
|
133555
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
133556
|
-
addDecoder(5, () => import("./lzw-
|
|
133865
|
+
addDecoder([void 0, 1], () => import("./raw-e57b711b.js").then((m) => m.default));
|
|
133866
|
+
addDecoder(5, () => import("./lzw-a6f4336c.js").then((m) => m.default));
|
|
133557
133867
|
addDecoder(6, () => {
|
|
133558
133868
|
throw new Error("old style JPEG compression is not supported.");
|
|
133559
133869
|
});
|
|
133560
|
-
addDecoder(7, () => import("./jpeg-
|
|
133561
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
133562
|
-
addDecoder(32773, () => import("./packbits-
|
|
133563
|
-
addDecoder(34887, () => import("./lerc-
|
|
133564
|
-
addDecoder(50001, () => import("./webimage-
|
|
133870
|
+
addDecoder(7, () => import("./jpeg-c9fcfef5.js").then((m) => m.default));
|
|
133871
|
+
addDecoder([8, 32946], () => import("./deflate-0ad22b29.js").then((m) => m.default));
|
|
133872
|
+
addDecoder(32773, () => import("./packbits-3a229772.js").then((m) => m.default));
|
|
133873
|
+
addDecoder(34887, () => import("./lerc-a13625a5.js").then((m) => m.default));
|
|
133874
|
+
addDecoder(50001, () => import("./webimage-1ade83b1.js").then((m) => m.default));
|
|
133565
133875
|
function decodeRowAcc(row, stride) {
|
|
133566
133876
|
let length2 = row.length - stride;
|
|
133567
133877
|
let offset5 = 0;
|
|
@@ -133751,16 +134061,16 @@ createCommonjsModule(function(module2) {
|
|
|
133751
134061
|
if (!new Events().__proto__)
|
|
133752
134062
|
prefix2 = false;
|
|
133753
134063
|
}
|
|
133754
|
-
function EE(fn, context,
|
|
134064
|
+
function EE(fn, context, once) {
|
|
133755
134065
|
this.fn = fn;
|
|
133756
134066
|
this.context = context;
|
|
133757
|
-
this.once =
|
|
134067
|
+
this.once = once || false;
|
|
133758
134068
|
}
|
|
133759
|
-
function
|
|
134069
|
+
function addListener(emitter, event, fn, context, once) {
|
|
133760
134070
|
if (typeof fn !== "function") {
|
|
133761
134071
|
throw new TypeError("The listener must be a function");
|
|
133762
134072
|
}
|
|
133763
|
-
var listener = new EE(fn, context || emitter,
|
|
134073
|
+
var listener = new EE(fn, context || emitter, once), evt = prefix2 ? prefix2 + event : event;
|
|
133764
134074
|
if (!emitter._events[evt])
|
|
133765
134075
|
emitter._events[evt] = listener, emitter._eventsCount++;
|
|
133766
134076
|
else if (!emitter._events[evt].fn)
|
|
@@ -133779,7 +134089,7 @@ createCommonjsModule(function(module2) {
|
|
|
133779
134089
|
this._events = new Events();
|
|
133780
134090
|
this._eventsCount = 0;
|
|
133781
134091
|
}
|
|
133782
|
-
EventEmitter2.prototype.eventNames = function
|
|
134092
|
+
EventEmitter2.prototype.eventNames = function eventNames() {
|
|
133783
134093
|
var names = [], events2, name2;
|
|
133784
134094
|
if (this._eventsCount === 0)
|
|
133785
134095
|
return names;
|
|
@@ -133792,7 +134102,7 @@ createCommonjsModule(function(module2) {
|
|
|
133792
134102
|
}
|
|
133793
134103
|
return names;
|
|
133794
134104
|
};
|
|
133795
|
-
EventEmitter2.prototype.listeners = function
|
|
134105
|
+
EventEmitter2.prototype.listeners = function listeners(event) {
|
|
133796
134106
|
var evt = prefix2 ? prefix2 + event : event, handlers = this._events[evt];
|
|
133797
134107
|
if (!handlers)
|
|
133798
134108
|
return [];
|
|
@@ -133803,76 +134113,76 @@ createCommonjsModule(function(module2) {
|
|
|
133803
134113
|
}
|
|
133804
134114
|
return ee;
|
|
133805
134115
|
};
|
|
133806
|
-
EventEmitter2.prototype.listenerCount = function
|
|
133807
|
-
var evt = prefix2 ? prefix2 + event : event,
|
|
133808
|
-
if (!
|
|
134116
|
+
EventEmitter2.prototype.listenerCount = function listenerCount(event) {
|
|
134117
|
+
var evt = prefix2 ? prefix2 + event : event, listeners = this._events[evt];
|
|
134118
|
+
if (!listeners)
|
|
133809
134119
|
return 0;
|
|
133810
|
-
if (
|
|
134120
|
+
if (listeners.fn)
|
|
133811
134121
|
return 1;
|
|
133812
|
-
return
|
|
134122
|
+
return listeners.length;
|
|
133813
134123
|
};
|
|
133814
|
-
EventEmitter2.prototype.emit = function
|
|
134124
|
+
EventEmitter2.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {
|
|
133815
134125
|
var evt = prefix2 ? prefix2 + event : event;
|
|
133816
134126
|
if (!this._events[evt])
|
|
133817
134127
|
return false;
|
|
133818
|
-
var
|
|
133819
|
-
if (
|
|
133820
|
-
if (
|
|
133821
|
-
this.removeListener(event,
|
|
134128
|
+
var listeners = this._events[evt], len2 = arguments.length, args, i2;
|
|
134129
|
+
if (listeners.fn) {
|
|
134130
|
+
if (listeners.once)
|
|
134131
|
+
this.removeListener(event, listeners.fn, void 0, true);
|
|
133822
134132
|
switch (len2) {
|
|
133823
134133
|
case 1:
|
|
133824
|
-
return
|
|
134134
|
+
return listeners.fn.call(listeners.context), true;
|
|
133825
134135
|
case 2:
|
|
133826
|
-
return
|
|
134136
|
+
return listeners.fn.call(listeners.context, a1), true;
|
|
133827
134137
|
case 3:
|
|
133828
|
-
return
|
|
134138
|
+
return listeners.fn.call(listeners.context, a1, a2), true;
|
|
133829
134139
|
case 4:
|
|
133830
|
-
return
|
|
134140
|
+
return listeners.fn.call(listeners.context, a1, a2, a3), true;
|
|
133831
134141
|
case 5:
|
|
133832
|
-
return
|
|
134142
|
+
return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;
|
|
133833
134143
|
case 6:
|
|
133834
|
-
return
|
|
134144
|
+
return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;
|
|
133835
134145
|
}
|
|
133836
134146
|
for (i2 = 1, args = new Array(len2 - 1); i2 < len2; i2++) {
|
|
133837
134147
|
args[i2 - 1] = arguments[i2];
|
|
133838
134148
|
}
|
|
133839
|
-
|
|
134149
|
+
listeners.fn.apply(listeners.context, args);
|
|
133840
134150
|
} else {
|
|
133841
|
-
var length2 =
|
|
134151
|
+
var length2 = listeners.length, j;
|
|
133842
134152
|
for (i2 = 0; i2 < length2; i2++) {
|
|
133843
|
-
if (
|
|
133844
|
-
this.removeListener(event,
|
|
134153
|
+
if (listeners[i2].once)
|
|
134154
|
+
this.removeListener(event, listeners[i2].fn, void 0, true);
|
|
133845
134155
|
switch (len2) {
|
|
133846
134156
|
case 1:
|
|
133847
|
-
|
|
134157
|
+
listeners[i2].fn.call(listeners[i2].context);
|
|
133848
134158
|
break;
|
|
133849
134159
|
case 2:
|
|
133850
|
-
|
|
134160
|
+
listeners[i2].fn.call(listeners[i2].context, a1);
|
|
133851
134161
|
break;
|
|
133852
134162
|
case 3:
|
|
133853
|
-
|
|
134163
|
+
listeners[i2].fn.call(listeners[i2].context, a1, a2);
|
|
133854
134164
|
break;
|
|
133855
134165
|
case 4:
|
|
133856
|
-
|
|
134166
|
+
listeners[i2].fn.call(listeners[i2].context, a1, a2, a3);
|
|
133857
134167
|
break;
|
|
133858
134168
|
default:
|
|
133859
134169
|
if (!args)
|
|
133860
134170
|
for (j = 1, args = new Array(len2 - 1); j < len2; j++) {
|
|
133861
134171
|
args[j - 1] = arguments[j];
|
|
133862
134172
|
}
|
|
133863
|
-
|
|
134173
|
+
listeners[i2].fn.apply(listeners[i2].context, args);
|
|
133864
134174
|
}
|
|
133865
134175
|
}
|
|
133866
134176
|
}
|
|
133867
134177
|
return true;
|
|
133868
134178
|
};
|
|
133869
134179
|
EventEmitter2.prototype.on = function on(event, fn, context) {
|
|
133870
|
-
return
|
|
134180
|
+
return addListener(this, event, fn, context, false);
|
|
133871
134181
|
};
|
|
133872
|
-
EventEmitter2.prototype.once = function
|
|
133873
|
-
return
|
|
134182
|
+
EventEmitter2.prototype.once = function once(event, fn, context) {
|
|
134183
|
+
return addListener(this, event, fn, context, true);
|
|
133874
134184
|
};
|
|
133875
|
-
EventEmitter2.prototype.removeListener = function
|
|
134185
|
+
EventEmitter2.prototype.removeListener = function removeListener(event, fn, context, once) {
|
|
133876
134186
|
var evt = prefix2 ? prefix2 + event : event;
|
|
133877
134187
|
if (!this._events[evt])
|
|
133878
134188
|
return this;
|
|
@@ -133880,15 +134190,15 @@ createCommonjsModule(function(module2) {
|
|
|
133880
134190
|
clearEvent(this, evt);
|
|
133881
134191
|
return this;
|
|
133882
134192
|
}
|
|
133883
|
-
var
|
|
133884
|
-
if (
|
|
133885
|
-
if (
|
|
134193
|
+
var listeners = this._events[evt];
|
|
134194
|
+
if (listeners.fn) {
|
|
134195
|
+
if (listeners.fn === fn && (!once || listeners.once) && (!context || listeners.context === context)) {
|
|
133886
134196
|
clearEvent(this, evt);
|
|
133887
134197
|
}
|
|
133888
134198
|
} else {
|
|
133889
|
-
for (var i2 = 0, events2 = [], length2 =
|
|
133890
|
-
if (
|
|
133891
|
-
events2.push(
|
|
134199
|
+
for (var i2 = 0, events2 = [], length2 = listeners.length; i2 < length2; i2++) {
|
|
134200
|
+
if (listeners[i2].fn !== fn || once && !listeners[i2].once || context && listeners[i2].context !== context) {
|
|
134201
|
+
events2.push(listeners[i2]);
|
|
133892
134202
|
}
|
|
133893
134203
|
}
|
|
133894
134204
|
if (events2.length)
|
|
@@ -133898,7 +134208,7 @@ createCommonjsModule(function(module2) {
|
|
|
133898
134208
|
}
|
|
133899
134209
|
return this;
|
|
133900
134210
|
};
|
|
133901
|
-
EventEmitter2.prototype.removeAllListeners = function
|
|
134211
|
+
EventEmitter2.prototype.removeAllListeners = function removeAllListeners(event) {
|
|
133902
134212
|
var evt;
|
|
133903
134213
|
if (event) {
|
|
133904
134214
|
evt = prefix2 ? prefix2 + event : event;
|
|
@@ -138381,7 +138691,7 @@ var blosc_codec = function() {
|
|
|
138381
138691
|
b += Ga[z2[a2++]];
|
|
138382
138692
|
return b;
|
|
138383
138693
|
}
|
|
138384
|
-
var Q2 = {},
|
|
138694
|
+
var Q2 = {}, R = {}, S = {};
|
|
138385
138695
|
function Ha(a2) {
|
|
138386
138696
|
if (void 0 === a2)
|
|
138387
138697
|
return "_unknown";
|
|
@@ -138426,8 +138736,8 @@ var blosc_codec = function() {
|
|
|
138426
138736
|
});
|
|
138427
138737
|
var e3 = Array(a2.length), g2 = [], k = 0;
|
|
138428
138738
|
a2.forEach(function(h, l2) {
|
|
138429
|
-
|
|
138430
|
-
e3[l2] =
|
|
138739
|
+
R.hasOwnProperty(h) ? e3[l2] = R[h] : (g2.push(h), Q2.hasOwnProperty(h) || (Q2[h] = []), Q2[h].push(function() {
|
|
138740
|
+
e3[l2] = R[h];
|
|
138431
138741
|
++k;
|
|
138432
138742
|
k === g2.length && c(e3);
|
|
138433
138743
|
}));
|
|
@@ -138440,12 +138750,12 @@ var blosc_codec = function() {
|
|
|
138440
138750
|
throw new TypeError("registerType registeredInstance requires argPackAdvance");
|
|
138441
138751
|
var d = b.name;
|
|
138442
138752
|
a2 || T('type "' + d + '" must have a positive integer typeid pointer');
|
|
138443
|
-
if (
|
|
138753
|
+
if (R.hasOwnProperty(a2)) {
|
|
138444
138754
|
if (c.U)
|
|
138445
138755
|
return;
|
|
138446
138756
|
T("Cannot register type '" + d + "' twice");
|
|
138447
138757
|
}
|
|
138448
|
-
|
|
138758
|
+
R[a2] = b;
|
|
138449
138759
|
delete S[a2];
|
|
138450
138760
|
Q2.hasOwnProperty(a2) && (b = Q2[a2], delete Q2[a2], b.forEach(function(e3) {
|
|
138451
138761
|
e3();
|
|
@@ -138558,7 +138868,7 @@ var blosc_codec = function() {
|
|
|
138558
138868
|
}
|
|
138559
138869
|
function eb(a2, b) {
|
|
138560
138870
|
function c(g2) {
|
|
138561
|
-
e3[g2] ||
|
|
138871
|
+
e3[g2] || R[g2] || (S[g2] ? S[g2].forEach(c) : (d.push(g2), e3[g2] = true));
|
|
138562
138872
|
}
|
|
138563
138873
|
var d = [], e3 = {};
|
|
138564
138874
|
b.forEach(c);
|
|
@@ -138846,7 +139156,7 @@ var blosc_codec = function() {
|
|
|
138846
139156
|
}, n: Qa, x: function(a2) {
|
|
138847
139157
|
4 < a2 && (V[a2].P += 1);
|
|
138848
139158
|
}, C: function(a2, b) {
|
|
138849
|
-
var c =
|
|
139159
|
+
var c = R[a2];
|
|
138850
139160
|
void 0 === c && T("_emval_take_value has unknown type " + cb(a2));
|
|
138851
139161
|
a2 = c.readValueFromPointer(b);
|
|
138852
139162
|
return Ra(a2);
|
|
@@ -143597,61 +143907,8 @@ void main() {
|
|
|
143597
143907
|
DECKGL_FILTER_COLOR(gl_FragColor, geometry);
|
|
143598
143908
|
}
|
|
143599
143909
|
`;
|
|
143600
|
-
function extent(values2, valueof) {
|
|
143601
|
-
let min;
|
|
143602
|
-
let max2;
|
|
143603
|
-
if (valueof === void 0) {
|
|
143604
|
-
for (const value of values2) {
|
|
143605
|
-
if (value != null) {
|
|
143606
|
-
if (min === void 0) {
|
|
143607
|
-
if (value >= value)
|
|
143608
|
-
min = max2 = value;
|
|
143609
|
-
} else {
|
|
143610
|
-
if (min > value)
|
|
143611
|
-
min = value;
|
|
143612
|
-
if (max2 < value)
|
|
143613
|
-
max2 = value;
|
|
143614
|
-
}
|
|
143615
|
-
}
|
|
143616
|
-
}
|
|
143617
|
-
} else {
|
|
143618
|
-
let index2 = -1;
|
|
143619
|
-
for (let value of values2) {
|
|
143620
|
-
if ((value = valueof(value, ++index2, values2)) != null) {
|
|
143621
|
-
if (min === void 0) {
|
|
143622
|
-
if (value >= value)
|
|
143623
|
-
min = max2 = value;
|
|
143624
|
-
} else {
|
|
143625
|
-
if (min > value)
|
|
143626
|
-
min = value;
|
|
143627
|
-
if (max2 < value)
|
|
143628
|
-
max2 = value;
|
|
143629
|
-
}
|
|
143630
|
-
}
|
|
143631
|
-
}
|
|
143632
|
-
}
|
|
143633
|
-
return [min, max2];
|
|
143634
|
-
}
|
|
143635
|
-
function max(values2, valueof) {
|
|
143636
|
-
let max2;
|
|
143637
|
-
if (valueof === void 0) {
|
|
143638
|
-
for (const value of values2) {
|
|
143639
|
-
if (value != null && (max2 < value || max2 === void 0 && value >= value)) {
|
|
143640
|
-
max2 = value;
|
|
143641
|
-
}
|
|
143642
|
-
}
|
|
143643
|
-
} else {
|
|
143644
|
-
let index2 = -1;
|
|
143645
|
-
for (let value of values2) {
|
|
143646
|
-
if ((value = valueof(value, ++index2, values2)) != null && (max2 < value || max2 === void 0 && value >= value)) {
|
|
143647
|
-
max2 = value;
|
|
143648
|
-
}
|
|
143649
|
-
}
|
|
143650
|
-
}
|
|
143651
|
-
return max2;
|
|
143652
|
-
}
|
|
143653
143910
|
function normalize(arr) {
|
|
143654
|
-
const [min, max2] = extent(arr);
|
|
143911
|
+
const [min, max2] = extent$1(arr);
|
|
143655
143912
|
const ratio = 255 / (max2 - min);
|
|
143656
143913
|
const data = new Uint8Array(arr.map((i2) => Math.floor((i2 - min) * ratio)));
|
|
143657
143914
|
return data;
|
|
@@ -143663,18 +143920,18 @@ function multiSetsToTextureData(multiFeatureValues, multiMatrixObsIndex, setColo
|
|
|
143663
143920
|
var _a2, _b, _c, _d;
|
|
143664
143921
|
if (isSetColorMode) {
|
|
143665
143922
|
totalColorsLength += (((_b = (_a2 = setColorValues[channelIndex]) == null ? void 0 : _a2.setColors) == null ? void 0 : _b.length) || 0) * 3;
|
|
143666
|
-
totalValuesLength += ((_c = setColorValues[channelIndex]) == null ? void 0 : _c.obsIndex) ? max(setColorValues[channelIndex].obsIndex.map((d) => parseInt(d))) : 0;
|
|
143923
|
+
totalValuesLength += ((_c = setColorValues[channelIndex]) == null ? void 0 : _c.obsIndex) ? max$1(setColorValues[channelIndex].obsIndex.map((d) => parseInt(d))) : 0;
|
|
143667
143924
|
} else {
|
|
143668
|
-
totalValuesLength += multiMatrixObsIndex[channelIndex] ? max(multiMatrixObsIndex[channelIndex].map((d) => parseInt(d))) : ((_d = multiFeatureValues[channelIndex]) == null ? void 0 : _d.length) || 0;
|
|
143925
|
+
totalValuesLength += multiMatrixObsIndex[channelIndex] ? max$1(multiMatrixObsIndex[channelIndex].map((d) => parseInt(d))) : ((_d = multiFeatureValues[channelIndex]) == null ? void 0 : _d.length) || 0;
|
|
143669
143926
|
}
|
|
143670
143927
|
});
|
|
143671
143928
|
const valueTexHeight = Math.max(2, Math.ceil(totalValuesLength / texSize));
|
|
143672
143929
|
const colorTexHeight = Math.max(2, Math.ceil(totalColorsLength / texSize));
|
|
143673
143930
|
if (valueTexHeight > texSize) {
|
|
143674
|
-
|
|
143931
|
+
log$5.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
|
|
143675
143932
|
}
|
|
143676
143933
|
if (colorTexHeight > texSize) {
|
|
143677
|
-
|
|
143934
|
+
log$5.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
|
|
143678
143935
|
}
|
|
143679
143936
|
const totalData = new Uint8Array(texSize * valueTexHeight);
|
|
143680
143937
|
const totalColors = new Uint8Array(texSize * colorTexHeight);
|