@vitessce/ome-tiff 3.3.4 → 3.3.6
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-0f58bee5.js → deflate-2f2aa589.js} +1 -1
- package/dist/{index-0bfa571c.js → index-ff0f21ef.js} +500 -502
- package/dist/index.js +1 -1
- package/dist/{jpeg-84155fcd.js → jpeg-6aedf9d1.js} +1 -1
- package/dist/{lerc-85b51660.js → lerc-dd1bd56a.js} +1 -1
- package/dist/{lzw-3a99a2e8.js → lzw-454966c7.js} +1 -1
- package/dist/{packbits-da510b69.js → packbits-fe5ed657.js} +1 -1
- package/dist/{raw-42b199bf.js → raw-88f7b196.js} +1 -1
- package/dist/{webimage-01cf8fb0.js → webimage-0cb51961.js} +1 -1
- package/package.json +9 -9
|
@@ -101739,7 +101739,8 @@ const AXIS_TITLE_TEXT_SIZE = 15;
|
|
|
101739
101739
|
const AXIS_MARGIN = 3;
|
|
101740
101740
|
const THEME_TO_TEXT_COLOR = {
|
|
101741
101741
|
dark: [224, 224, 224],
|
|
101742
|
-
light: [64, 64, 64]
|
|
101742
|
+
light: [64, 64, 64],
|
|
101743
|
+
light2: [64, 64, 64]
|
|
101743
101744
|
};
|
|
101744
101745
|
const AXIS_FONT_FAMILY = "-apple-system, 'Helvetica Neue', Arial, sans-serif";
|
|
101745
101746
|
const PIXELATED_TEXTURE_PARAMETERS = {
|
|
@@ -103521,16 +103522,16 @@ async function getDecoder(fileDirectory) {
|
|
|
103521
103522
|
const Decoder = await importFn();
|
|
103522
103523
|
return new Decoder(fileDirectory);
|
|
103523
103524
|
}
|
|
103524
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
103525
|
-
addDecoder(5, () => import("./lzw-
|
|
103525
|
+
addDecoder([void 0, 1], () => import("./raw-88f7b196.js").then((m) => m.default));
|
|
103526
|
+
addDecoder(5, () => import("./lzw-454966c7.js").then((m) => m.default));
|
|
103526
103527
|
addDecoder(6, () => {
|
|
103527
103528
|
throw new Error("old style JPEG compression is not supported.");
|
|
103528
103529
|
});
|
|
103529
|
-
addDecoder(7, () => import("./jpeg-
|
|
103530
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
103531
|
-
addDecoder(32773, () => import("./packbits-
|
|
103532
|
-
addDecoder(34887, () => import("./lerc-
|
|
103533
|
-
addDecoder(50001, () => import("./webimage-
|
|
103530
|
+
addDecoder(7, () => import("./jpeg-6aedf9d1.js").then((m) => m.default));
|
|
103531
|
+
addDecoder([8, 32946], () => import("./deflate-2f2aa589.js").then((m) => m.default));
|
|
103532
|
+
addDecoder(32773, () => import("./packbits-fe5ed657.js").then((m) => m.default));
|
|
103533
|
+
addDecoder(34887, () => import("./lerc-dd1bd56a.js").then((m) => m.default));
|
|
103534
|
+
addDecoder(50001, () => import("./webimage-0cb51961.js").then((m) => m.default));
|
|
103534
103535
|
function copyNewSize(array, width, height, samplesPerPixel = 1) {
|
|
103535
103536
|
return new (Object.getPrototypeOf(array)).constructor(width * height * samplesPerPixel);
|
|
103536
103537
|
}
|
|
@@ -117407,501 +117408,134 @@ let BitmaskLayer$1 = class BitmaskLayer extends XRLayer {
|
|
|
117407
117408
|
};
|
|
117408
117409
|
BitmaskLayer$1.layerName = "BitmaskLayer";
|
|
117409
117410
|
BitmaskLayer$1.defaultProps = defaultProps$1;
|
|
117410
|
-
var
|
|
117411
|
-
|
|
117412
|
-
|
|
117413
|
-
|
|
117414
|
-
|
|
117411
|
+
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
117412
|
+
const freeGlobal$1 = freeGlobal;
|
|
117413
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
117414
|
+
var root = freeGlobal$1 || freeSelf || Function("return this")();
|
|
117415
|
+
const root$1 = root;
|
|
117416
|
+
var Symbol$1 = root$1.Symbol;
|
|
117417
|
+
const Symbol$2 = Symbol$1;
|
|
117418
|
+
var objectProto$b = Object.prototype;
|
|
117419
|
+
var hasOwnProperty$a = objectProto$b.hasOwnProperty;
|
|
117420
|
+
var nativeObjectToString$1 = objectProto$b.toString;
|
|
117421
|
+
var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : void 0;
|
|
117422
|
+
function getRawTag(value) {
|
|
117423
|
+
var isOwn = hasOwnProperty$a.call(value, symToStringTag$1), tag2 = value[symToStringTag$1];
|
|
117424
|
+
try {
|
|
117425
|
+
value[symToStringTag$1] = void 0;
|
|
117426
|
+
var unmasked = true;
|
|
117427
|
+
} catch (e2) {
|
|
117428
|
+
}
|
|
117429
|
+
var result = nativeObjectToString$1.call(value);
|
|
117430
|
+
if (unmasked) {
|
|
117431
|
+
if (isOwn) {
|
|
117432
|
+
value[symToStringTag$1] = tag2;
|
|
117415
117433
|
} else {
|
|
117416
|
-
|
|
117417
|
-
}
|
|
117418
|
-
})(commonjsGlobal, function() {
|
|
117419
|
-
var pluralRules = [];
|
|
117420
|
-
var singularRules = [];
|
|
117421
|
-
var uncountables = {};
|
|
117422
|
-
var irregularPlurals = {};
|
|
117423
|
-
var irregularSingles = {};
|
|
117424
|
-
function sanitizeRule(rule) {
|
|
117425
|
-
if (typeof rule === "string") {
|
|
117426
|
-
return new RegExp("^" + rule + "$", "i");
|
|
117427
|
-
}
|
|
117428
|
-
return rule;
|
|
117429
|
-
}
|
|
117430
|
-
function restoreCase(word, token) {
|
|
117431
|
-
if (word === token)
|
|
117432
|
-
return token;
|
|
117433
|
-
if (word === word.toLowerCase())
|
|
117434
|
-
return token.toLowerCase();
|
|
117435
|
-
if (word === word.toUpperCase())
|
|
117436
|
-
return token.toUpperCase();
|
|
117437
|
-
if (word[0] === word[0].toUpperCase()) {
|
|
117438
|
-
return token.charAt(0).toUpperCase() + token.substr(1).toLowerCase();
|
|
117439
|
-
}
|
|
117440
|
-
return token.toLowerCase();
|
|
117441
|
-
}
|
|
117442
|
-
function interpolate2(str, args) {
|
|
117443
|
-
return str.replace(/\$(\d{1,2})/g, function(match, index2) {
|
|
117444
|
-
return args[index2] || "";
|
|
117445
|
-
});
|
|
117446
|
-
}
|
|
117447
|
-
function replace(word, rule) {
|
|
117448
|
-
return word.replace(rule[0], function(match, index2) {
|
|
117449
|
-
var result = interpolate2(rule[1], arguments);
|
|
117450
|
-
if (match === "") {
|
|
117451
|
-
return restoreCase(word[index2 - 1], result);
|
|
117452
|
-
}
|
|
117453
|
-
return restoreCase(match, result);
|
|
117454
|
-
});
|
|
117455
|
-
}
|
|
117456
|
-
function sanitizeWord(token, word, rules) {
|
|
117457
|
-
if (!token.length || uncountables.hasOwnProperty(token)) {
|
|
117458
|
-
return word;
|
|
117459
|
-
}
|
|
117460
|
-
var len2 = rules.length;
|
|
117461
|
-
while (len2--) {
|
|
117462
|
-
var rule = rules[len2];
|
|
117463
|
-
if (rule[0].test(word))
|
|
117464
|
-
return replace(word, rule);
|
|
117465
|
-
}
|
|
117466
|
-
return word;
|
|
117467
|
-
}
|
|
117468
|
-
function replaceWord(replaceMap, keepMap, rules) {
|
|
117469
|
-
return function(word) {
|
|
117470
|
-
var token = word.toLowerCase();
|
|
117471
|
-
if (keepMap.hasOwnProperty(token)) {
|
|
117472
|
-
return restoreCase(word, token);
|
|
117473
|
-
}
|
|
117474
|
-
if (replaceMap.hasOwnProperty(token)) {
|
|
117475
|
-
return restoreCase(word, replaceMap[token]);
|
|
117476
|
-
}
|
|
117477
|
-
return sanitizeWord(token, word, rules);
|
|
117478
|
-
};
|
|
117434
|
+
delete value[symToStringTag$1];
|
|
117479
117435
|
}
|
|
117480
|
-
|
|
117481
|
-
|
|
117482
|
-
|
|
117483
|
-
|
|
117484
|
-
|
|
117485
|
-
|
|
117486
|
-
|
|
117487
|
-
|
|
117488
|
-
|
|
117436
|
+
}
|
|
117437
|
+
return result;
|
|
117438
|
+
}
|
|
117439
|
+
var objectProto$a = Object.prototype;
|
|
117440
|
+
var nativeObjectToString = objectProto$a.toString;
|
|
117441
|
+
function objectToString(value) {
|
|
117442
|
+
return nativeObjectToString.call(value);
|
|
117443
|
+
}
|
|
117444
|
+
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
|
117445
|
+
var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : void 0;
|
|
117446
|
+
function baseGetTag(value) {
|
|
117447
|
+
if (value == null) {
|
|
117448
|
+
return value === void 0 ? undefinedTag : nullTag;
|
|
117449
|
+
}
|
|
117450
|
+
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
117451
|
+
}
|
|
117452
|
+
function isObjectLike(value) {
|
|
117453
|
+
return value != null && typeof value == "object";
|
|
117454
|
+
}
|
|
117455
|
+
var symbolTag$1 = "[object Symbol]";
|
|
117456
|
+
function isSymbol(value) {
|
|
117457
|
+
return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag$1;
|
|
117458
|
+
}
|
|
117459
|
+
var isArray$1 = Array.isArray;
|
|
117460
|
+
const isArray$2 = isArray$1;
|
|
117461
|
+
var reWhitespace = /\s/;
|
|
117462
|
+
function trimmedEndIndex(string) {
|
|
117463
|
+
var index2 = string.length;
|
|
117464
|
+
while (index2-- && reWhitespace.test(string.charAt(index2))) {
|
|
117465
|
+
}
|
|
117466
|
+
return index2;
|
|
117467
|
+
}
|
|
117468
|
+
var reTrimStart = /^\s+/;
|
|
117469
|
+
function baseTrim(string) {
|
|
117470
|
+
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
|
117471
|
+
}
|
|
117472
|
+
function isObject$1(value) {
|
|
117473
|
+
var type = typeof value;
|
|
117474
|
+
return value != null && (type == "object" || type == "function");
|
|
117475
|
+
}
|
|
117476
|
+
var NAN = 0 / 0;
|
|
117477
|
+
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
117478
|
+
var reIsBinary = /^0b[01]+$/i;
|
|
117479
|
+
var reIsOctal = /^0o[0-7]+$/i;
|
|
117480
|
+
var freeParseInt = parseInt;
|
|
117481
|
+
function toNumber(value) {
|
|
117482
|
+
if (typeof value == "number") {
|
|
117483
|
+
return value;
|
|
117484
|
+
}
|
|
117485
|
+
if (isSymbol(value)) {
|
|
117486
|
+
return NAN;
|
|
117487
|
+
}
|
|
117488
|
+
if (isObject$1(value)) {
|
|
117489
|
+
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
117490
|
+
value = isObject$1(other) ? other + "" : other;
|
|
117491
|
+
}
|
|
117492
|
+
if (typeof value != "string") {
|
|
117493
|
+
return value === 0 ? value : +value;
|
|
117494
|
+
}
|
|
117495
|
+
value = baseTrim(value);
|
|
117496
|
+
var isBinary2 = reIsBinary.test(value);
|
|
117497
|
+
return isBinary2 || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary2 ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
|
117498
|
+
}
|
|
117499
|
+
var INFINITY = 1 / 0, MAX_INTEGER = 17976931348623157e292;
|
|
117500
|
+
function toFinite(value) {
|
|
117501
|
+
if (!value) {
|
|
117502
|
+
return value === 0 ? value : 0;
|
|
117503
|
+
}
|
|
117504
|
+
value = toNumber(value);
|
|
117505
|
+
if (value === INFINITY || value === -INFINITY) {
|
|
117506
|
+
var sign2 = value < 0 ? -1 : 1;
|
|
117507
|
+
return sign2 * MAX_INTEGER;
|
|
117508
|
+
}
|
|
117509
|
+
return value === value ? value : 0;
|
|
117510
|
+
}
|
|
117511
|
+
var asyncTag = "[object AsyncFunction]", funcTag$1 = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
117512
|
+
function isFunction$1(value) {
|
|
117513
|
+
if (!isObject$1(value)) {
|
|
117514
|
+
return false;
|
|
117515
|
+
}
|
|
117516
|
+
var tag2 = baseGetTag(value);
|
|
117517
|
+
return tag2 == funcTag$1 || tag2 == genTag || tag2 == asyncTag || tag2 == proxyTag;
|
|
117518
|
+
}
|
|
117519
|
+
var coreJsData = root$1["__core-js_shared__"];
|
|
117520
|
+
const coreJsData$1 = coreJsData;
|
|
117521
|
+
var maskSrcKey = function() {
|
|
117522
|
+
var uid2 = /[^.]+$/.exec(coreJsData$1 && coreJsData$1.keys && coreJsData$1.keys.IE_PROTO || "");
|
|
117523
|
+
return uid2 ? "Symbol(src)_1." + uid2 : "";
|
|
117524
|
+
}();
|
|
117525
|
+
function isMasked(func) {
|
|
117526
|
+
return !!maskSrcKey && maskSrcKey in func;
|
|
117527
|
+
}
|
|
117528
|
+
var funcProto$1 = Function.prototype;
|
|
117529
|
+
var funcToString$1 = funcProto$1.toString;
|
|
117530
|
+
function toSource(func) {
|
|
117531
|
+
if (func != null) {
|
|
117532
|
+
try {
|
|
117533
|
+
return funcToString$1.call(func);
|
|
117534
|
+
} catch (e2) {
|
|
117489
117535
|
}
|
|
117490
|
-
|
|
117491
|
-
|
|
117492
|
-
|
|
117493
|
-
}
|
|
117494
|
-
pluralize2.plural = replaceWord(
|
|
117495
|
-
irregularSingles,
|
|
117496
|
-
irregularPlurals,
|
|
117497
|
-
pluralRules
|
|
117498
|
-
);
|
|
117499
|
-
pluralize2.isPlural = checkWord(
|
|
117500
|
-
irregularSingles,
|
|
117501
|
-
irregularPlurals,
|
|
117502
|
-
pluralRules
|
|
117503
|
-
);
|
|
117504
|
-
pluralize2.singular = replaceWord(
|
|
117505
|
-
irregularPlurals,
|
|
117506
|
-
irregularSingles,
|
|
117507
|
-
singularRules
|
|
117508
|
-
);
|
|
117509
|
-
pluralize2.isSingular = checkWord(
|
|
117510
|
-
irregularPlurals,
|
|
117511
|
-
irregularSingles,
|
|
117512
|
-
singularRules
|
|
117513
|
-
);
|
|
117514
|
-
pluralize2.addPluralRule = function(rule, replacement) {
|
|
117515
|
-
pluralRules.push([sanitizeRule(rule), replacement]);
|
|
117516
|
-
};
|
|
117517
|
-
pluralize2.addSingularRule = function(rule, replacement) {
|
|
117518
|
-
singularRules.push([sanitizeRule(rule), replacement]);
|
|
117519
|
-
};
|
|
117520
|
-
pluralize2.addUncountableRule = function(word) {
|
|
117521
|
-
if (typeof word === "string") {
|
|
117522
|
-
uncountables[word.toLowerCase()] = true;
|
|
117523
|
-
return;
|
|
117524
|
-
}
|
|
117525
|
-
pluralize2.addPluralRule(word, "$0");
|
|
117526
|
-
pluralize2.addSingularRule(word, "$0");
|
|
117527
|
-
};
|
|
117528
|
-
pluralize2.addIrregularRule = function(single, plural) {
|
|
117529
|
-
plural = plural.toLowerCase();
|
|
117530
|
-
single = single.toLowerCase();
|
|
117531
|
-
irregularSingles[single] = plural;
|
|
117532
|
-
irregularPlurals[plural] = single;
|
|
117533
|
-
};
|
|
117534
|
-
[
|
|
117535
|
-
// Pronouns.
|
|
117536
|
-
["I", "we"],
|
|
117537
|
-
["me", "us"],
|
|
117538
|
-
["he", "they"],
|
|
117539
|
-
["she", "they"],
|
|
117540
|
-
["them", "them"],
|
|
117541
|
-
["myself", "ourselves"],
|
|
117542
|
-
["yourself", "yourselves"],
|
|
117543
|
-
["itself", "themselves"],
|
|
117544
|
-
["herself", "themselves"],
|
|
117545
|
-
["himself", "themselves"],
|
|
117546
|
-
["themself", "themselves"],
|
|
117547
|
-
["is", "are"],
|
|
117548
|
-
["was", "were"],
|
|
117549
|
-
["has", "have"],
|
|
117550
|
-
["this", "these"],
|
|
117551
|
-
["that", "those"],
|
|
117552
|
-
// Words ending in with a consonant and `o`.
|
|
117553
|
-
["echo", "echoes"],
|
|
117554
|
-
["dingo", "dingoes"],
|
|
117555
|
-
["volcano", "volcanoes"],
|
|
117556
|
-
["tornado", "tornadoes"],
|
|
117557
|
-
["torpedo", "torpedoes"],
|
|
117558
|
-
// Ends with `us`.
|
|
117559
|
-
["genus", "genera"],
|
|
117560
|
-
["viscus", "viscera"],
|
|
117561
|
-
// Ends with `ma`.
|
|
117562
|
-
["stigma", "stigmata"],
|
|
117563
|
-
["stoma", "stomata"],
|
|
117564
|
-
["dogma", "dogmata"],
|
|
117565
|
-
["lemma", "lemmata"],
|
|
117566
|
-
["schema", "schemata"],
|
|
117567
|
-
["anathema", "anathemata"],
|
|
117568
|
-
// Other irregular rules.
|
|
117569
|
-
["ox", "oxen"],
|
|
117570
|
-
["axe", "axes"],
|
|
117571
|
-
["die", "dice"],
|
|
117572
|
-
["yes", "yeses"],
|
|
117573
|
-
["foot", "feet"],
|
|
117574
|
-
["eave", "eaves"],
|
|
117575
|
-
["goose", "geese"],
|
|
117576
|
-
["tooth", "teeth"],
|
|
117577
|
-
["quiz", "quizzes"],
|
|
117578
|
-
["human", "humans"],
|
|
117579
|
-
["proof", "proofs"],
|
|
117580
|
-
["carve", "carves"],
|
|
117581
|
-
["valve", "valves"],
|
|
117582
|
-
["looey", "looies"],
|
|
117583
|
-
["thief", "thieves"],
|
|
117584
|
-
["groove", "grooves"],
|
|
117585
|
-
["pickaxe", "pickaxes"],
|
|
117586
|
-
["passerby", "passersby"]
|
|
117587
|
-
].forEach(function(rule) {
|
|
117588
|
-
return pluralize2.addIrregularRule(rule[0], rule[1]);
|
|
117589
|
-
});
|
|
117590
|
-
[
|
|
117591
|
-
[/s?$/i, "s"],
|
|
117592
|
-
[/[^\u0000-\u007F]$/i, "$0"],
|
|
117593
|
-
[/([^aeiou]ese)$/i, "$1"],
|
|
117594
|
-
[/(ax|test)is$/i, "$1es"],
|
|
117595
|
-
[/(alias|[^aou]us|t[lm]as|gas|ris)$/i, "$1es"],
|
|
117596
|
-
[/(e[mn]u)s?$/i, "$1s"],
|
|
117597
|
-
[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i, "$1"],
|
|
117598
|
-
[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1i"],
|
|
117599
|
-
[/(alumn|alg|vertebr)(?:a|ae)$/i, "$1ae"],
|
|
117600
|
-
[/(seraph|cherub)(?:im)?$/i, "$1im"],
|
|
117601
|
-
[/(her|at|gr)o$/i, "$1oes"],
|
|
117602
|
-
[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i, "$1a"],
|
|
117603
|
-
[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i, "$1a"],
|
|
117604
|
-
[/sis$/i, "ses"],
|
|
117605
|
-
[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i, "$1$2ves"],
|
|
117606
|
-
[/([^aeiouy]|qu)y$/i, "$1ies"],
|
|
117607
|
-
[/([^ch][ieo][ln])ey$/i, "$1ies"],
|
|
117608
|
-
[/(x|ch|ss|sh|zz)$/i, "$1es"],
|
|
117609
|
-
[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i, "$1ices"],
|
|
117610
|
-
[/\b((?:tit)?m|l)(?:ice|ouse)$/i, "$1ice"],
|
|
117611
|
-
[/(pe)(?:rson|ople)$/i, "$1ople"],
|
|
117612
|
-
[/(child)(?:ren)?$/i, "$1ren"],
|
|
117613
|
-
[/eaux$/i, "$0"],
|
|
117614
|
-
[/m[ae]n$/i, "men"],
|
|
117615
|
-
["thou", "you"]
|
|
117616
|
-
].forEach(function(rule) {
|
|
117617
|
-
return pluralize2.addPluralRule(rule[0], rule[1]);
|
|
117618
|
-
});
|
|
117619
|
-
[
|
|
117620
|
-
[/s$/i, ""],
|
|
117621
|
-
[/(ss)$/i, "$1"],
|
|
117622
|
-
[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i, "$1fe"],
|
|
117623
|
-
[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i, "$1f"],
|
|
117624
|
-
[/ies$/i, "y"],
|
|
117625
|
-
[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i, "$1ie"],
|
|
117626
|
-
[/\b(mon|smil)ies$/i, "$1ey"],
|
|
117627
|
-
[/\b((?:tit)?m|l)ice$/i, "$1ouse"],
|
|
117628
|
-
[/(seraph|cherub)im$/i, "$1"],
|
|
117629
|
-
[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i, "$1"],
|
|
117630
|
-
[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i, "$1sis"],
|
|
117631
|
-
[/(movie|twelve|abuse|e[mn]u)s$/i, "$1"],
|
|
117632
|
-
[/(test)(?:is|es)$/i, "$1is"],
|
|
117633
|
-
[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1us"],
|
|
117634
|
-
[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i, "$1um"],
|
|
117635
|
-
[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i, "$1on"],
|
|
117636
|
-
[/(alumn|alg|vertebr)ae$/i, "$1a"],
|
|
117637
|
-
[/(cod|mur|sil|vert|ind)ices$/i, "$1ex"],
|
|
117638
|
-
[/(matr|append)ices$/i, "$1ix"],
|
|
117639
|
-
[/(pe)(rson|ople)$/i, "$1rson"],
|
|
117640
|
-
[/(child)ren$/i, "$1"],
|
|
117641
|
-
[/(eau)x?$/i, "$1"],
|
|
117642
|
-
[/men$/i, "man"]
|
|
117643
|
-
].forEach(function(rule) {
|
|
117644
|
-
return pluralize2.addSingularRule(rule[0], rule[1]);
|
|
117645
|
-
});
|
|
117646
|
-
[
|
|
117647
|
-
// Singular words with no plurals.
|
|
117648
|
-
"adulthood",
|
|
117649
|
-
"advice",
|
|
117650
|
-
"agenda",
|
|
117651
|
-
"aid",
|
|
117652
|
-
"aircraft",
|
|
117653
|
-
"alcohol",
|
|
117654
|
-
"ammo",
|
|
117655
|
-
"analytics",
|
|
117656
|
-
"anime",
|
|
117657
|
-
"athletics",
|
|
117658
|
-
"audio",
|
|
117659
|
-
"bison",
|
|
117660
|
-
"blood",
|
|
117661
|
-
"bream",
|
|
117662
|
-
"buffalo",
|
|
117663
|
-
"butter",
|
|
117664
|
-
"carp",
|
|
117665
|
-
"cash",
|
|
117666
|
-
"chassis",
|
|
117667
|
-
"chess",
|
|
117668
|
-
"clothing",
|
|
117669
|
-
"cod",
|
|
117670
|
-
"commerce",
|
|
117671
|
-
"cooperation",
|
|
117672
|
-
"corps",
|
|
117673
|
-
"debris",
|
|
117674
|
-
"diabetes",
|
|
117675
|
-
"digestion",
|
|
117676
|
-
"elk",
|
|
117677
|
-
"energy",
|
|
117678
|
-
"equipment",
|
|
117679
|
-
"excretion",
|
|
117680
|
-
"expertise",
|
|
117681
|
-
"firmware",
|
|
117682
|
-
"flounder",
|
|
117683
|
-
"fun",
|
|
117684
|
-
"gallows",
|
|
117685
|
-
"garbage",
|
|
117686
|
-
"graffiti",
|
|
117687
|
-
"hardware",
|
|
117688
|
-
"headquarters",
|
|
117689
|
-
"health",
|
|
117690
|
-
"herpes",
|
|
117691
|
-
"highjinks",
|
|
117692
|
-
"homework",
|
|
117693
|
-
"housework",
|
|
117694
|
-
"information",
|
|
117695
|
-
"jeans",
|
|
117696
|
-
"justice",
|
|
117697
|
-
"kudos",
|
|
117698
|
-
"labour",
|
|
117699
|
-
"literature",
|
|
117700
|
-
"machinery",
|
|
117701
|
-
"mackerel",
|
|
117702
|
-
"mail",
|
|
117703
|
-
"media",
|
|
117704
|
-
"mews",
|
|
117705
|
-
"moose",
|
|
117706
|
-
"music",
|
|
117707
|
-
"mud",
|
|
117708
|
-
"manga",
|
|
117709
|
-
"news",
|
|
117710
|
-
"only",
|
|
117711
|
-
"personnel",
|
|
117712
|
-
"pike",
|
|
117713
|
-
"plankton",
|
|
117714
|
-
"pliers",
|
|
117715
|
-
"police",
|
|
117716
|
-
"pollution",
|
|
117717
|
-
"premises",
|
|
117718
|
-
"rain",
|
|
117719
|
-
"research",
|
|
117720
|
-
"rice",
|
|
117721
|
-
"salmon",
|
|
117722
|
-
"scissors",
|
|
117723
|
-
"series",
|
|
117724
|
-
"sewage",
|
|
117725
|
-
"shambles",
|
|
117726
|
-
"shrimp",
|
|
117727
|
-
"software",
|
|
117728
|
-
"species",
|
|
117729
|
-
"staff",
|
|
117730
|
-
"swine",
|
|
117731
|
-
"tennis",
|
|
117732
|
-
"traffic",
|
|
117733
|
-
"transportation",
|
|
117734
|
-
"trout",
|
|
117735
|
-
"tuna",
|
|
117736
|
-
"wealth",
|
|
117737
|
-
"welfare",
|
|
117738
|
-
"whiting",
|
|
117739
|
-
"wildebeest",
|
|
117740
|
-
"wildlife",
|
|
117741
|
-
"you",
|
|
117742
|
-
/pok[eé]mon$/i,
|
|
117743
|
-
// Regexes.
|
|
117744
|
-
/[^aeiou]ese$/i,
|
|
117745
|
-
// "chinese", "japanese"
|
|
117746
|
-
/deer$/i,
|
|
117747
|
-
// "deer", "reindeer"
|
|
117748
|
-
/fish$/i,
|
|
117749
|
-
// "fish", "blowfish", "angelfish"
|
|
117750
|
-
/measles$/i,
|
|
117751
|
-
/o[iu]s$/i,
|
|
117752
|
-
// "carnivorous"
|
|
117753
|
-
/pox$/i,
|
|
117754
|
-
// "chickpox", "smallpox"
|
|
117755
|
-
/sheep$/i
|
|
117756
|
-
].forEach(pluralize2.addUncountableRule);
|
|
117757
|
-
return pluralize2;
|
|
117758
|
-
});
|
|
117759
|
-
})(pluralize);
|
|
117760
|
-
var pluralizeExports = pluralize.exports;
|
|
117761
|
-
const plur = /* @__PURE__ */ getDefaultExportFromCjs(pluralizeExports);
|
|
117762
|
-
plur.addPluralRule("glomerulus", "glomeruli");
|
|
117763
|
-
plur.addPluralRule("interstitium", "interstitia");
|
|
117764
|
-
function fromEntries(iterable) {
|
|
117765
|
-
return [...iterable].reduce((obj, { 0: key, 1: val }) => Object.assign(obj, { [key]: val }), {});
|
|
117766
|
-
}
|
|
117767
|
-
const VIEWER_PALETTE = [
|
|
117768
|
-
[0, 0, 255],
|
|
117769
|
-
[0, 255, 0],
|
|
117770
|
-
[255, 0, 255],
|
|
117771
|
-
[255, 255, 0],
|
|
117772
|
-
[0, 255, 255],
|
|
117773
|
-
[255, 255, 255],
|
|
117774
|
-
[255, 128, 0],
|
|
117775
|
-
[255, 0, 0]
|
|
117776
|
-
];
|
|
117777
|
-
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
117778
|
-
const freeGlobal$1 = freeGlobal;
|
|
117779
|
-
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
117780
|
-
var root = freeGlobal$1 || freeSelf || Function("return this")();
|
|
117781
|
-
const root$1 = root;
|
|
117782
|
-
var Symbol$1 = root$1.Symbol;
|
|
117783
|
-
const Symbol$2 = Symbol$1;
|
|
117784
|
-
var objectProto$b = Object.prototype;
|
|
117785
|
-
var hasOwnProperty$a = objectProto$b.hasOwnProperty;
|
|
117786
|
-
var nativeObjectToString$1 = objectProto$b.toString;
|
|
117787
|
-
var symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : void 0;
|
|
117788
|
-
function getRawTag(value) {
|
|
117789
|
-
var isOwn = hasOwnProperty$a.call(value, symToStringTag$1), tag2 = value[symToStringTag$1];
|
|
117790
|
-
try {
|
|
117791
|
-
value[symToStringTag$1] = void 0;
|
|
117792
|
-
var unmasked = true;
|
|
117793
|
-
} catch (e2) {
|
|
117794
|
-
}
|
|
117795
|
-
var result = nativeObjectToString$1.call(value);
|
|
117796
|
-
if (unmasked) {
|
|
117797
|
-
if (isOwn) {
|
|
117798
|
-
value[symToStringTag$1] = tag2;
|
|
117799
|
-
} else {
|
|
117800
|
-
delete value[symToStringTag$1];
|
|
117801
|
-
}
|
|
117802
|
-
}
|
|
117803
|
-
return result;
|
|
117804
|
-
}
|
|
117805
|
-
var objectProto$a = Object.prototype;
|
|
117806
|
-
var nativeObjectToString = objectProto$a.toString;
|
|
117807
|
-
function objectToString(value) {
|
|
117808
|
-
return nativeObjectToString.call(value);
|
|
117809
|
-
}
|
|
117810
|
-
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
|
117811
|
-
var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : void 0;
|
|
117812
|
-
function baseGetTag(value) {
|
|
117813
|
-
if (value == null) {
|
|
117814
|
-
return value === void 0 ? undefinedTag : nullTag;
|
|
117815
|
-
}
|
|
117816
|
-
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
|
117817
|
-
}
|
|
117818
|
-
function isObjectLike(value) {
|
|
117819
|
-
return value != null && typeof value == "object";
|
|
117820
|
-
}
|
|
117821
|
-
var symbolTag$1 = "[object Symbol]";
|
|
117822
|
-
function isSymbol(value) {
|
|
117823
|
-
return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag$1;
|
|
117824
|
-
}
|
|
117825
|
-
var isArray$1 = Array.isArray;
|
|
117826
|
-
const isArray$2 = isArray$1;
|
|
117827
|
-
var reWhitespace = /\s/;
|
|
117828
|
-
function trimmedEndIndex(string) {
|
|
117829
|
-
var index2 = string.length;
|
|
117830
|
-
while (index2-- && reWhitespace.test(string.charAt(index2))) {
|
|
117831
|
-
}
|
|
117832
|
-
return index2;
|
|
117833
|
-
}
|
|
117834
|
-
var reTrimStart = /^\s+/;
|
|
117835
|
-
function baseTrim(string) {
|
|
117836
|
-
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
|
117837
|
-
}
|
|
117838
|
-
function isObject$1(value) {
|
|
117839
|
-
var type = typeof value;
|
|
117840
|
-
return value != null && (type == "object" || type == "function");
|
|
117841
|
-
}
|
|
117842
|
-
var NAN = 0 / 0;
|
|
117843
|
-
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
|
117844
|
-
var reIsBinary = /^0b[01]+$/i;
|
|
117845
|
-
var reIsOctal = /^0o[0-7]+$/i;
|
|
117846
|
-
var freeParseInt = parseInt;
|
|
117847
|
-
function toNumber(value) {
|
|
117848
|
-
if (typeof value == "number") {
|
|
117849
|
-
return value;
|
|
117850
|
-
}
|
|
117851
|
-
if (isSymbol(value)) {
|
|
117852
|
-
return NAN;
|
|
117853
|
-
}
|
|
117854
|
-
if (isObject$1(value)) {
|
|
117855
|
-
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
117856
|
-
value = isObject$1(other) ? other + "" : other;
|
|
117857
|
-
}
|
|
117858
|
-
if (typeof value != "string") {
|
|
117859
|
-
return value === 0 ? value : +value;
|
|
117860
|
-
}
|
|
117861
|
-
value = baseTrim(value);
|
|
117862
|
-
var isBinary2 = reIsBinary.test(value);
|
|
117863
|
-
return isBinary2 || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary2 ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
|
117864
|
-
}
|
|
117865
|
-
var INFINITY = 1 / 0, MAX_INTEGER = 17976931348623157e292;
|
|
117866
|
-
function toFinite(value) {
|
|
117867
|
-
if (!value) {
|
|
117868
|
-
return value === 0 ? value : 0;
|
|
117869
|
-
}
|
|
117870
|
-
value = toNumber(value);
|
|
117871
|
-
if (value === INFINITY || value === -INFINITY) {
|
|
117872
|
-
var sign2 = value < 0 ? -1 : 1;
|
|
117873
|
-
return sign2 * MAX_INTEGER;
|
|
117874
|
-
}
|
|
117875
|
-
return value === value ? value : 0;
|
|
117876
|
-
}
|
|
117877
|
-
var asyncTag = "[object AsyncFunction]", funcTag$1 = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
117878
|
-
function isFunction$1(value) {
|
|
117879
|
-
if (!isObject$1(value)) {
|
|
117880
|
-
return false;
|
|
117881
|
-
}
|
|
117882
|
-
var tag2 = baseGetTag(value);
|
|
117883
|
-
return tag2 == funcTag$1 || tag2 == genTag || tag2 == asyncTag || tag2 == proxyTag;
|
|
117884
|
-
}
|
|
117885
|
-
var coreJsData = root$1["__core-js_shared__"];
|
|
117886
|
-
const coreJsData$1 = coreJsData;
|
|
117887
|
-
var maskSrcKey = function() {
|
|
117888
|
-
var uid2 = /[^.]+$/.exec(coreJsData$1 && coreJsData$1.keys && coreJsData$1.keys.IE_PROTO || "");
|
|
117889
|
-
return uid2 ? "Symbol(src)_1." + uid2 : "";
|
|
117890
|
-
}();
|
|
117891
|
-
function isMasked(func) {
|
|
117892
|
-
return !!maskSrcKey && maskSrcKey in func;
|
|
117893
|
-
}
|
|
117894
|
-
var funcProto$1 = Function.prototype;
|
|
117895
|
-
var funcToString$1 = funcProto$1.toString;
|
|
117896
|
-
function toSource(func) {
|
|
117897
|
-
if (func != null) {
|
|
117898
|
-
try {
|
|
117899
|
-
return funcToString$1.call(func);
|
|
117900
|
-
} catch (e2) {
|
|
117901
|
-
}
|
|
117902
|
-
try {
|
|
117903
|
-
return func + "";
|
|
117904
|
-
} catch (e2) {
|
|
117536
|
+
try {
|
|
117537
|
+
return func + "";
|
|
117538
|
+
} catch (e2) {
|
|
117905
117539
|
}
|
|
117906
117540
|
}
|
|
117907
117541
|
return "";
|
|
@@ -119072,7 +118706,7 @@ class BitmaskLayer2 extends XRLayer {
|
|
|
119072
118706
|
} = this.state;
|
|
119073
118707
|
if (textures && model) {
|
|
119074
118708
|
const scaleFactor = 1 / 2 ** (maxZoom - zoom);
|
|
119075
|
-
const colors = fromEntries(range$1(MAX_CHANNELS).map((i2) => [`color${i2}`, getColor(channelColors[i2])]));
|
|
118709
|
+
const colors = Object.fromEntries(range$1(MAX_CHANNELS).map((i2) => [`color${i2}`, getColor(channelColors[i2])]));
|
|
119076
118710
|
model.setUniforms(Object.assign({}, uniforms, {
|
|
119077
118711
|
...colors,
|
|
119078
118712
|
// Bitmask image channel data textures
|
|
@@ -134258,13 +133892,377 @@ var unit = /* @__PURE__ */ createUnitFunction({
|
|
|
134258
133892
|
Unit,
|
|
134259
133893
|
typed
|
|
134260
133894
|
});
|
|
133895
|
+
var pluralize = { exports: {} };
|
|
133896
|
+
(function(module2, exports2) {
|
|
133897
|
+
(function(root2, pluralize2) {
|
|
133898
|
+
if (typeof commonjsRequire === "function" && true && true) {
|
|
133899
|
+
module2.exports = pluralize2();
|
|
133900
|
+
} else {
|
|
133901
|
+
root2.pluralize = pluralize2();
|
|
133902
|
+
}
|
|
133903
|
+
})(commonjsGlobal, function() {
|
|
133904
|
+
var pluralRules = [];
|
|
133905
|
+
var singularRules = [];
|
|
133906
|
+
var uncountables = {};
|
|
133907
|
+
var irregularPlurals = {};
|
|
133908
|
+
var irregularSingles = {};
|
|
133909
|
+
function sanitizeRule(rule) {
|
|
133910
|
+
if (typeof rule === "string") {
|
|
133911
|
+
return new RegExp("^" + rule + "$", "i");
|
|
133912
|
+
}
|
|
133913
|
+
return rule;
|
|
133914
|
+
}
|
|
133915
|
+
function restoreCase(word, token) {
|
|
133916
|
+
if (word === token)
|
|
133917
|
+
return token;
|
|
133918
|
+
if (word === word.toLowerCase())
|
|
133919
|
+
return token.toLowerCase();
|
|
133920
|
+
if (word === word.toUpperCase())
|
|
133921
|
+
return token.toUpperCase();
|
|
133922
|
+
if (word[0] === word[0].toUpperCase()) {
|
|
133923
|
+
return token.charAt(0).toUpperCase() + token.substr(1).toLowerCase();
|
|
133924
|
+
}
|
|
133925
|
+
return token.toLowerCase();
|
|
133926
|
+
}
|
|
133927
|
+
function interpolate2(str, args) {
|
|
133928
|
+
return str.replace(/\$(\d{1,2})/g, function(match, index2) {
|
|
133929
|
+
return args[index2] || "";
|
|
133930
|
+
});
|
|
133931
|
+
}
|
|
133932
|
+
function replace(word, rule) {
|
|
133933
|
+
return word.replace(rule[0], function(match, index2) {
|
|
133934
|
+
var result = interpolate2(rule[1], arguments);
|
|
133935
|
+
if (match === "") {
|
|
133936
|
+
return restoreCase(word[index2 - 1], result);
|
|
133937
|
+
}
|
|
133938
|
+
return restoreCase(match, result);
|
|
133939
|
+
});
|
|
133940
|
+
}
|
|
133941
|
+
function sanitizeWord(token, word, rules) {
|
|
133942
|
+
if (!token.length || uncountables.hasOwnProperty(token)) {
|
|
133943
|
+
return word;
|
|
133944
|
+
}
|
|
133945
|
+
var len2 = rules.length;
|
|
133946
|
+
while (len2--) {
|
|
133947
|
+
var rule = rules[len2];
|
|
133948
|
+
if (rule[0].test(word))
|
|
133949
|
+
return replace(word, rule);
|
|
133950
|
+
}
|
|
133951
|
+
return word;
|
|
133952
|
+
}
|
|
133953
|
+
function replaceWord(replaceMap, keepMap, rules) {
|
|
133954
|
+
return function(word) {
|
|
133955
|
+
var token = word.toLowerCase();
|
|
133956
|
+
if (keepMap.hasOwnProperty(token)) {
|
|
133957
|
+
return restoreCase(word, token);
|
|
133958
|
+
}
|
|
133959
|
+
if (replaceMap.hasOwnProperty(token)) {
|
|
133960
|
+
return restoreCase(word, replaceMap[token]);
|
|
133961
|
+
}
|
|
133962
|
+
return sanitizeWord(token, word, rules);
|
|
133963
|
+
};
|
|
133964
|
+
}
|
|
133965
|
+
function checkWord(replaceMap, keepMap, rules, bool) {
|
|
133966
|
+
return function(word) {
|
|
133967
|
+
var token = word.toLowerCase();
|
|
133968
|
+
if (keepMap.hasOwnProperty(token))
|
|
133969
|
+
return true;
|
|
133970
|
+
if (replaceMap.hasOwnProperty(token))
|
|
133971
|
+
return false;
|
|
133972
|
+
return sanitizeWord(token, token, rules) === token;
|
|
133973
|
+
};
|
|
133974
|
+
}
|
|
133975
|
+
function pluralize2(word, count2, inclusive) {
|
|
133976
|
+
var pluralized = count2 === 1 ? pluralize2.singular(word) : pluralize2.plural(word);
|
|
133977
|
+
return (inclusive ? count2 + " " : "") + pluralized;
|
|
133978
|
+
}
|
|
133979
|
+
pluralize2.plural = replaceWord(
|
|
133980
|
+
irregularSingles,
|
|
133981
|
+
irregularPlurals,
|
|
133982
|
+
pluralRules
|
|
133983
|
+
);
|
|
133984
|
+
pluralize2.isPlural = checkWord(
|
|
133985
|
+
irregularSingles,
|
|
133986
|
+
irregularPlurals,
|
|
133987
|
+
pluralRules
|
|
133988
|
+
);
|
|
133989
|
+
pluralize2.singular = replaceWord(
|
|
133990
|
+
irregularPlurals,
|
|
133991
|
+
irregularSingles,
|
|
133992
|
+
singularRules
|
|
133993
|
+
);
|
|
133994
|
+
pluralize2.isSingular = checkWord(
|
|
133995
|
+
irregularPlurals,
|
|
133996
|
+
irregularSingles,
|
|
133997
|
+
singularRules
|
|
133998
|
+
);
|
|
133999
|
+
pluralize2.addPluralRule = function(rule, replacement) {
|
|
134000
|
+
pluralRules.push([sanitizeRule(rule), replacement]);
|
|
134001
|
+
};
|
|
134002
|
+
pluralize2.addSingularRule = function(rule, replacement) {
|
|
134003
|
+
singularRules.push([sanitizeRule(rule), replacement]);
|
|
134004
|
+
};
|
|
134005
|
+
pluralize2.addUncountableRule = function(word) {
|
|
134006
|
+
if (typeof word === "string") {
|
|
134007
|
+
uncountables[word.toLowerCase()] = true;
|
|
134008
|
+
return;
|
|
134009
|
+
}
|
|
134010
|
+
pluralize2.addPluralRule(word, "$0");
|
|
134011
|
+
pluralize2.addSingularRule(word, "$0");
|
|
134012
|
+
};
|
|
134013
|
+
pluralize2.addIrregularRule = function(single, plural) {
|
|
134014
|
+
plural = plural.toLowerCase();
|
|
134015
|
+
single = single.toLowerCase();
|
|
134016
|
+
irregularSingles[single] = plural;
|
|
134017
|
+
irregularPlurals[plural] = single;
|
|
134018
|
+
};
|
|
134019
|
+
[
|
|
134020
|
+
// Pronouns.
|
|
134021
|
+
["I", "we"],
|
|
134022
|
+
["me", "us"],
|
|
134023
|
+
["he", "they"],
|
|
134024
|
+
["she", "they"],
|
|
134025
|
+
["them", "them"],
|
|
134026
|
+
["myself", "ourselves"],
|
|
134027
|
+
["yourself", "yourselves"],
|
|
134028
|
+
["itself", "themselves"],
|
|
134029
|
+
["herself", "themselves"],
|
|
134030
|
+
["himself", "themselves"],
|
|
134031
|
+
["themself", "themselves"],
|
|
134032
|
+
["is", "are"],
|
|
134033
|
+
["was", "were"],
|
|
134034
|
+
["has", "have"],
|
|
134035
|
+
["this", "these"],
|
|
134036
|
+
["that", "those"],
|
|
134037
|
+
// Words ending in with a consonant and `o`.
|
|
134038
|
+
["echo", "echoes"],
|
|
134039
|
+
["dingo", "dingoes"],
|
|
134040
|
+
["volcano", "volcanoes"],
|
|
134041
|
+
["tornado", "tornadoes"],
|
|
134042
|
+
["torpedo", "torpedoes"],
|
|
134043
|
+
// Ends with `us`.
|
|
134044
|
+
["genus", "genera"],
|
|
134045
|
+
["viscus", "viscera"],
|
|
134046
|
+
// Ends with `ma`.
|
|
134047
|
+
["stigma", "stigmata"],
|
|
134048
|
+
["stoma", "stomata"],
|
|
134049
|
+
["dogma", "dogmata"],
|
|
134050
|
+
["lemma", "lemmata"],
|
|
134051
|
+
["schema", "schemata"],
|
|
134052
|
+
["anathema", "anathemata"],
|
|
134053
|
+
// Other irregular rules.
|
|
134054
|
+
["ox", "oxen"],
|
|
134055
|
+
["axe", "axes"],
|
|
134056
|
+
["die", "dice"],
|
|
134057
|
+
["yes", "yeses"],
|
|
134058
|
+
["foot", "feet"],
|
|
134059
|
+
["eave", "eaves"],
|
|
134060
|
+
["goose", "geese"],
|
|
134061
|
+
["tooth", "teeth"],
|
|
134062
|
+
["quiz", "quizzes"],
|
|
134063
|
+
["human", "humans"],
|
|
134064
|
+
["proof", "proofs"],
|
|
134065
|
+
["carve", "carves"],
|
|
134066
|
+
["valve", "valves"],
|
|
134067
|
+
["looey", "looies"],
|
|
134068
|
+
["thief", "thieves"],
|
|
134069
|
+
["groove", "grooves"],
|
|
134070
|
+
["pickaxe", "pickaxes"],
|
|
134071
|
+
["passerby", "passersby"]
|
|
134072
|
+
].forEach(function(rule) {
|
|
134073
|
+
return pluralize2.addIrregularRule(rule[0], rule[1]);
|
|
134074
|
+
});
|
|
134075
|
+
[
|
|
134076
|
+
[/s?$/i, "s"],
|
|
134077
|
+
[/[^\u0000-\u007F]$/i, "$0"],
|
|
134078
|
+
[/([^aeiou]ese)$/i, "$1"],
|
|
134079
|
+
[/(ax|test)is$/i, "$1es"],
|
|
134080
|
+
[/(alias|[^aou]us|t[lm]as|gas|ris)$/i, "$1es"],
|
|
134081
|
+
[/(e[mn]u)s?$/i, "$1s"],
|
|
134082
|
+
[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i, "$1"],
|
|
134083
|
+
[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1i"],
|
|
134084
|
+
[/(alumn|alg|vertebr)(?:a|ae)$/i, "$1ae"],
|
|
134085
|
+
[/(seraph|cherub)(?:im)?$/i, "$1im"],
|
|
134086
|
+
[/(her|at|gr)o$/i, "$1oes"],
|
|
134087
|
+
[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i, "$1a"],
|
|
134088
|
+
[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i, "$1a"],
|
|
134089
|
+
[/sis$/i, "ses"],
|
|
134090
|
+
[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i, "$1$2ves"],
|
|
134091
|
+
[/([^aeiouy]|qu)y$/i, "$1ies"],
|
|
134092
|
+
[/([^ch][ieo][ln])ey$/i, "$1ies"],
|
|
134093
|
+
[/(x|ch|ss|sh|zz)$/i, "$1es"],
|
|
134094
|
+
[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i, "$1ices"],
|
|
134095
|
+
[/\b((?:tit)?m|l)(?:ice|ouse)$/i, "$1ice"],
|
|
134096
|
+
[/(pe)(?:rson|ople)$/i, "$1ople"],
|
|
134097
|
+
[/(child)(?:ren)?$/i, "$1ren"],
|
|
134098
|
+
[/eaux$/i, "$0"],
|
|
134099
|
+
[/m[ae]n$/i, "men"],
|
|
134100
|
+
["thou", "you"]
|
|
134101
|
+
].forEach(function(rule) {
|
|
134102
|
+
return pluralize2.addPluralRule(rule[0], rule[1]);
|
|
134103
|
+
});
|
|
134104
|
+
[
|
|
134105
|
+
[/s$/i, ""],
|
|
134106
|
+
[/(ss)$/i, "$1"],
|
|
134107
|
+
[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i, "$1fe"],
|
|
134108
|
+
[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i, "$1f"],
|
|
134109
|
+
[/ies$/i, "y"],
|
|
134110
|
+
[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i, "$1ie"],
|
|
134111
|
+
[/\b(mon|smil)ies$/i, "$1ey"],
|
|
134112
|
+
[/\b((?:tit)?m|l)ice$/i, "$1ouse"],
|
|
134113
|
+
[/(seraph|cherub)im$/i, "$1"],
|
|
134114
|
+
[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i, "$1"],
|
|
134115
|
+
[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i, "$1sis"],
|
|
134116
|
+
[/(movie|twelve|abuse|e[mn]u)s$/i, "$1"],
|
|
134117
|
+
[/(test)(?:is|es)$/i, "$1is"],
|
|
134118
|
+
[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1us"],
|
|
134119
|
+
[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i, "$1um"],
|
|
134120
|
+
[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i, "$1on"],
|
|
134121
|
+
[/(alumn|alg|vertebr)ae$/i, "$1a"],
|
|
134122
|
+
[/(cod|mur|sil|vert|ind)ices$/i, "$1ex"],
|
|
134123
|
+
[/(matr|append)ices$/i, "$1ix"],
|
|
134124
|
+
[/(pe)(rson|ople)$/i, "$1rson"],
|
|
134125
|
+
[/(child)ren$/i, "$1"],
|
|
134126
|
+
[/(eau)x?$/i, "$1"],
|
|
134127
|
+
[/men$/i, "man"]
|
|
134128
|
+
].forEach(function(rule) {
|
|
134129
|
+
return pluralize2.addSingularRule(rule[0], rule[1]);
|
|
134130
|
+
});
|
|
134131
|
+
[
|
|
134132
|
+
// Singular words with no plurals.
|
|
134133
|
+
"adulthood",
|
|
134134
|
+
"advice",
|
|
134135
|
+
"agenda",
|
|
134136
|
+
"aid",
|
|
134137
|
+
"aircraft",
|
|
134138
|
+
"alcohol",
|
|
134139
|
+
"ammo",
|
|
134140
|
+
"analytics",
|
|
134141
|
+
"anime",
|
|
134142
|
+
"athletics",
|
|
134143
|
+
"audio",
|
|
134144
|
+
"bison",
|
|
134145
|
+
"blood",
|
|
134146
|
+
"bream",
|
|
134147
|
+
"buffalo",
|
|
134148
|
+
"butter",
|
|
134149
|
+
"carp",
|
|
134150
|
+
"cash",
|
|
134151
|
+
"chassis",
|
|
134152
|
+
"chess",
|
|
134153
|
+
"clothing",
|
|
134154
|
+
"cod",
|
|
134155
|
+
"commerce",
|
|
134156
|
+
"cooperation",
|
|
134157
|
+
"corps",
|
|
134158
|
+
"debris",
|
|
134159
|
+
"diabetes",
|
|
134160
|
+
"digestion",
|
|
134161
|
+
"elk",
|
|
134162
|
+
"energy",
|
|
134163
|
+
"equipment",
|
|
134164
|
+
"excretion",
|
|
134165
|
+
"expertise",
|
|
134166
|
+
"firmware",
|
|
134167
|
+
"flounder",
|
|
134168
|
+
"fun",
|
|
134169
|
+
"gallows",
|
|
134170
|
+
"garbage",
|
|
134171
|
+
"graffiti",
|
|
134172
|
+
"hardware",
|
|
134173
|
+
"headquarters",
|
|
134174
|
+
"health",
|
|
134175
|
+
"herpes",
|
|
134176
|
+
"highjinks",
|
|
134177
|
+
"homework",
|
|
134178
|
+
"housework",
|
|
134179
|
+
"information",
|
|
134180
|
+
"jeans",
|
|
134181
|
+
"justice",
|
|
134182
|
+
"kudos",
|
|
134183
|
+
"labour",
|
|
134184
|
+
"literature",
|
|
134185
|
+
"machinery",
|
|
134186
|
+
"mackerel",
|
|
134187
|
+
"mail",
|
|
134188
|
+
"media",
|
|
134189
|
+
"mews",
|
|
134190
|
+
"moose",
|
|
134191
|
+
"music",
|
|
134192
|
+
"mud",
|
|
134193
|
+
"manga",
|
|
134194
|
+
"news",
|
|
134195
|
+
"only",
|
|
134196
|
+
"personnel",
|
|
134197
|
+
"pike",
|
|
134198
|
+
"plankton",
|
|
134199
|
+
"pliers",
|
|
134200
|
+
"police",
|
|
134201
|
+
"pollution",
|
|
134202
|
+
"premises",
|
|
134203
|
+
"rain",
|
|
134204
|
+
"research",
|
|
134205
|
+
"rice",
|
|
134206
|
+
"salmon",
|
|
134207
|
+
"scissors",
|
|
134208
|
+
"series",
|
|
134209
|
+
"sewage",
|
|
134210
|
+
"shambles",
|
|
134211
|
+
"shrimp",
|
|
134212
|
+
"software",
|
|
134213
|
+
"species",
|
|
134214
|
+
"staff",
|
|
134215
|
+
"swine",
|
|
134216
|
+
"tennis",
|
|
134217
|
+
"traffic",
|
|
134218
|
+
"transportation",
|
|
134219
|
+
"trout",
|
|
134220
|
+
"tuna",
|
|
134221
|
+
"wealth",
|
|
134222
|
+
"welfare",
|
|
134223
|
+
"whiting",
|
|
134224
|
+
"wildebeest",
|
|
134225
|
+
"wildlife",
|
|
134226
|
+
"you",
|
|
134227
|
+
/pok[eé]mon$/i,
|
|
134228
|
+
// Regexes.
|
|
134229
|
+
/[^aeiou]ese$/i,
|
|
134230
|
+
// "chinese", "japanese"
|
|
134231
|
+
/deer$/i,
|
|
134232
|
+
// "deer", "reindeer"
|
|
134233
|
+
/fish$/i,
|
|
134234
|
+
// "fish", "blowfish", "angelfish"
|
|
134235
|
+
/measles$/i,
|
|
134236
|
+
/o[iu]s$/i,
|
|
134237
|
+
// "carnivorous"
|
|
134238
|
+
/pox$/i,
|
|
134239
|
+
// "chickpox", "smallpox"
|
|
134240
|
+
/sheep$/i
|
|
134241
|
+
].forEach(pluralize2.addUncountableRule);
|
|
134242
|
+
return pluralize2;
|
|
134243
|
+
});
|
|
134244
|
+
})(pluralize);
|
|
134245
|
+
var pluralizeExports = pluralize.exports;
|
|
134246
|
+
const plur = /* @__PURE__ */ getDefaultExportFromCjs(pluralizeExports);
|
|
134247
|
+
plur.addPluralRule("glomerulus", "glomeruli");
|
|
134248
|
+
plur.addPluralRule("interstitium", "interstitia");
|
|
134249
|
+
const VIEWER_PALETTE = [
|
|
134250
|
+
[0, 0, 255],
|
|
134251
|
+
[0, 255, 0],
|
|
134252
|
+
[255, 0, 255],
|
|
134253
|
+
[255, 255, 0],
|
|
134254
|
+
[0, 255, 255],
|
|
134255
|
+
[255, 255, 255],
|
|
134256
|
+
[255, 128, 0],
|
|
134257
|
+
[255, 0, 0]
|
|
134258
|
+
];
|
|
134261
134259
|
function filterSelection(loader, selection) {
|
|
134262
134260
|
if (!selection) {
|
|
134263
134261
|
return selection;
|
|
134264
134262
|
}
|
|
134265
134263
|
const data = Array.isArray(loader) ? loader[loader.length - 1] : loader;
|
|
134266
134264
|
const { labels } = data;
|
|
134267
|
-
return fromEntries(Object.entries(selection).filter(([key]) => labels.includes(key)));
|
|
134265
|
+
return Object.fromEntries(Object.entries(selection).filter(([key]) => labels.includes(key)));
|
|
134268
134266
|
}
|
|
134269
134267
|
async function getSingleSelectionStats2D({ loader, selection }) {
|
|
134270
134268
|
const data = Array.isArray(loader) ? loader[loader.length - 1] : loader;
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
|
|
2
|
-
import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-
|
|
2
|
+
import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-ff0f21ef.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "@vitessce/vit-s";
|
|
5
5
|
var LercDecode = { exports: {} };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/ome-tiff",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.6",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
"ajv": "^6.10.0",
|
|
20
20
|
"d3-array": "^2.4.0",
|
|
21
21
|
"lodash-es": "^4.17.21",
|
|
22
|
-
"@vitessce/constants-internal": "3.3.
|
|
23
|
-
"@vitessce/
|
|
24
|
-
"@vitessce/gl": "3.3.
|
|
25
|
-
"@vitessce/
|
|
26
|
-
"@vitessce/
|
|
27
|
-
"@vitessce/utils": "3.3.
|
|
28
|
-
"@vitessce/
|
|
29
|
-
"@vitessce/
|
|
22
|
+
"@vitessce/constants-internal": "3.3.6",
|
|
23
|
+
"@vitessce/config": "3.3.6",
|
|
24
|
+
"@vitessce/gl": "3.3.6",
|
|
25
|
+
"@vitessce/sets-utils": "3.3.6",
|
|
26
|
+
"@vitessce/utils": "3.3.6",
|
|
27
|
+
"@vitessce/image-utils": "3.3.6",
|
|
28
|
+
"@vitessce/spatial-utils": "3.3.6",
|
|
29
|
+
"@vitessce/vit-s": "3.3.6"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"ajv": "^6.10.0"
|