@vitessce/feature-list 3.1.1 → 3.1.2
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/index.js +734 -694
- package/dist-tsc/FeatureListOptions.d.ts.map +1 -1
- package/dist-tsc/FeatureListOptions.js +11 -6
- package/dist-tsc/FeatureListSubscriber.d.ts.map +1 -1
- package/dist-tsc/FeatureListSubscriber.js +1 -2
- package/package.json +4 -5
- package/src/FeatureListOptions.js +19 -12
- package/src/FeatureListSubscriber.js +1 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import React__default, { Children, isValidElement, cloneElement, useState, useEffect, useCallback, useMemo } from "react";
|
|
2
|
+
import React__default, { Children, isValidElement, cloneElement, useState, useEffect, useCallback, useMemo, useId } from "react";
|
|
3
3
|
import { usePlotOptionsStyles, OptionsContainer, OptionSelect, useLoaders, useCoordination, useFeatureLabelsData, useObsFeatureMatrixIndices, useReady, useUrls, TitleInfo } from "@vitessce/vit-s";
|
|
4
4
|
import * as ReactDOM from "react-dom";
|
|
5
5
|
import ReactDOM__default from "react-dom";
|
|
@@ -769,9 +769,9 @@ var reactJsxRuntime_development = {};
|
|
|
769
769
|
}
|
|
770
770
|
if (isArray2(node)) {
|
|
771
771
|
for (var i = 0; i < node.length; i++) {
|
|
772
|
-
var
|
|
773
|
-
if (isValidElement2(
|
|
774
|
-
validateExplicitKey(
|
|
772
|
+
var child = node[i];
|
|
773
|
+
if (isValidElement2(child)) {
|
|
774
|
+
validateExplicitKey(child, parentType);
|
|
775
775
|
}
|
|
776
776
|
}
|
|
777
777
|
} else if (isValidElement2(node)) {
|
|
@@ -921,332 +921,363 @@ var reactJsxRuntime_development = {};
|
|
|
921
921
|
jsxRuntime.exports = reactJsxRuntime_development;
|
|
922
922
|
}
|
|
923
923
|
var jsxRuntimeExports = jsxRuntime.exports;
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
const cactus = "cacti";
|
|
947
|
-
const calf = "calves";
|
|
948
|
-
const carp = "carp";
|
|
949
|
-
const census = "censuses";
|
|
950
|
-
const chassis = "chassis";
|
|
951
|
-
const cherub = "cherubim";
|
|
952
|
-
const child = "children";
|
|
953
|
-
const cod = "cod";
|
|
954
|
-
const codex = "codices";
|
|
955
|
-
const concerto = "concerti";
|
|
956
|
-
const corpus = "corpora";
|
|
957
|
-
const crisis = "crises";
|
|
958
|
-
const criterion = "criteria";
|
|
959
|
-
const curriculum = "curricula";
|
|
960
|
-
const datum = "data";
|
|
961
|
-
const deer = "deer";
|
|
962
|
-
const diagnosis = "diagnoses";
|
|
963
|
-
const die = "dice";
|
|
964
|
-
const dwarf = "dwarfs";
|
|
965
|
-
const echo = "echoes";
|
|
966
|
-
const elf = "elves";
|
|
967
|
-
const elk = "elk";
|
|
968
|
-
const ellipsis = "ellipses";
|
|
969
|
-
const embargo = "embargoes";
|
|
970
|
-
const emphasis = "emphases";
|
|
971
|
-
const erratum = "errata";
|
|
972
|
-
const fez = "fezes";
|
|
973
|
-
const firmware = "firmware";
|
|
974
|
-
const fish = "fish";
|
|
975
|
-
const focus = "foci";
|
|
976
|
-
const foot = "feet";
|
|
977
|
-
const formula = "formulae";
|
|
978
|
-
const fungus = "fungi";
|
|
979
|
-
const gallows = "gallows";
|
|
980
|
-
const genus = "genera";
|
|
981
|
-
const goose = "geese";
|
|
982
|
-
const graffito = "graffiti";
|
|
983
|
-
const grouse = "grouse";
|
|
984
|
-
const half = "halves";
|
|
985
|
-
const hero = "heroes";
|
|
986
|
-
const hoof = "hooves";
|
|
987
|
-
const hovercraft = "hovercraft";
|
|
988
|
-
const hypothesis = "hypotheses";
|
|
989
|
-
const index = "indices";
|
|
990
|
-
const kakapo = "kakapo";
|
|
991
|
-
const knife = "knives";
|
|
992
|
-
const larva = "larvae";
|
|
993
|
-
const leaf = "leaves";
|
|
994
|
-
const libretto = "libretti";
|
|
995
|
-
const life = "lives";
|
|
996
|
-
const loaf = "loaves";
|
|
997
|
-
const locus = "loci";
|
|
998
|
-
const louse = "lice";
|
|
999
|
-
const man = "men";
|
|
1000
|
-
const matrix = "matrices";
|
|
1001
|
-
const means = "means";
|
|
1002
|
-
const medium = "media";
|
|
1003
|
-
const media = "media";
|
|
1004
|
-
const memorandum = "memoranda";
|
|
1005
|
-
const millennium = "millennia";
|
|
1006
|
-
const minutia = "minutiae";
|
|
1007
|
-
const moose = "moose";
|
|
1008
|
-
const mouse = "mice";
|
|
1009
|
-
const nebula = "nebulae";
|
|
1010
|
-
const nemesis = "nemeses";
|
|
1011
|
-
const neurosis = "neuroses";
|
|
1012
|
-
const news = "news";
|
|
1013
|
-
const nucleus = "nuclei";
|
|
1014
|
-
const oasis = "oases";
|
|
1015
|
-
const offspring = "offspring";
|
|
1016
|
-
const opus = "opera";
|
|
1017
|
-
const ovum = "ova";
|
|
1018
|
-
const ox = "oxen";
|
|
1019
|
-
const paralysis = "paralyses";
|
|
1020
|
-
const parenthesis = "parentheses";
|
|
1021
|
-
const person = "people";
|
|
1022
|
-
const phenomenon = "phenomena";
|
|
1023
|
-
const phylum = "phyla";
|
|
1024
|
-
const pike = "pike";
|
|
1025
|
-
const polyhedron = "polyhedra";
|
|
1026
|
-
const potato = "potatoes";
|
|
1027
|
-
const prognosis = "prognoses";
|
|
1028
|
-
const quiz = "quizzes";
|
|
1029
|
-
const radius = "radii";
|
|
1030
|
-
const referendum = "referenda";
|
|
1031
|
-
const salmon = "salmon";
|
|
1032
|
-
const scarf = "scarves";
|
|
1033
|
-
const self$1 = "selves";
|
|
1034
|
-
const series = "series";
|
|
1035
|
-
const sheep = "sheep";
|
|
1036
|
-
const shelf = "shelves";
|
|
1037
|
-
const shrimp = "shrimp";
|
|
1038
|
-
const soliloquy = "soliloquies";
|
|
1039
|
-
const spacecraft = "spacecraft";
|
|
1040
|
-
const species = "species";
|
|
1041
|
-
const spectrum = "spectra";
|
|
1042
|
-
const squid = "squid";
|
|
1043
|
-
const stimulus = "stimuli";
|
|
1044
|
-
const stratum = "strata";
|
|
1045
|
-
const swine = "swine";
|
|
1046
|
-
const syllabus = "syllabi";
|
|
1047
|
-
const symposium = "symposia";
|
|
1048
|
-
const synopsis = "synopses";
|
|
1049
|
-
const synthesis = "syntheses";
|
|
1050
|
-
const tableau = "tableaus";
|
|
1051
|
-
const that = "those";
|
|
1052
|
-
const thesis = "theses";
|
|
1053
|
-
const thief = "thieves";
|
|
1054
|
-
const tomato = "tomatoes";
|
|
1055
|
-
const tooth = "teeth";
|
|
1056
|
-
const trout = "trout";
|
|
1057
|
-
const tuna = "tuna";
|
|
1058
|
-
const vertebra = "vertebrae";
|
|
1059
|
-
const vertex = "vertices";
|
|
1060
|
-
const veto = "vetoes";
|
|
1061
|
-
const vita = "vitae";
|
|
1062
|
-
const vortex = "vortices";
|
|
1063
|
-
const watercraft = "watercraft";
|
|
1064
|
-
const wharf = "wharves";
|
|
1065
|
-
const wife = "wives";
|
|
1066
|
-
const wolf = "wolves";
|
|
1067
|
-
const woman = "women";
|
|
1068
|
-
const require$$0 = {
|
|
1069
|
-
addendum,
|
|
1070
|
-
aircraft,
|
|
1071
|
-
alga,
|
|
1072
|
-
alumna,
|
|
1073
|
-
alumnus,
|
|
1074
|
-
amoeba,
|
|
1075
|
-
analysis,
|
|
1076
|
-
antenna,
|
|
1077
|
-
antithesis,
|
|
1078
|
-
apex,
|
|
1079
|
-
appendix,
|
|
1080
|
-
automaton,
|
|
1081
|
-
axis,
|
|
1082
|
-
bacillus,
|
|
1083
|
-
bacterium,
|
|
1084
|
-
barracks,
|
|
1085
|
-
basis: basis$1,
|
|
1086
|
-
beau,
|
|
1087
|
-
bison,
|
|
1088
|
-
buffalo,
|
|
1089
|
-
bureau,
|
|
1090
|
-
cactus,
|
|
1091
|
-
calf,
|
|
1092
|
-
carp,
|
|
1093
|
-
census,
|
|
1094
|
-
chassis,
|
|
1095
|
-
cherub,
|
|
1096
|
-
child,
|
|
1097
|
-
"château": "châteaus",
|
|
1098
|
-
cod,
|
|
1099
|
-
codex,
|
|
1100
|
-
concerto,
|
|
1101
|
-
corpus,
|
|
1102
|
-
crisis,
|
|
1103
|
-
criterion,
|
|
1104
|
-
curriculum,
|
|
1105
|
-
datum,
|
|
1106
|
-
deer,
|
|
1107
|
-
diagnosis,
|
|
1108
|
-
die,
|
|
1109
|
-
dwarf,
|
|
1110
|
-
echo,
|
|
1111
|
-
elf,
|
|
1112
|
-
elk,
|
|
1113
|
-
ellipsis,
|
|
1114
|
-
embargo,
|
|
1115
|
-
emphasis,
|
|
1116
|
-
erratum,
|
|
1117
|
-
"faux pas": "faux pas",
|
|
1118
|
-
fez,
|
|
1119
|
-
firmware,
|
|
1120
|
-
fish,
|
|
1121
|
-
focus,
|
|
1122
|
-
foot,
|
|
1123
|
-
formula,
|
|
1124
|
-
fungus,
|
|
1125
|
-
gallows,
|
|
1126
|
-
genus,
|
|
1127
|
-
goose,
|
|
1128
|
-
graffito,
|
|
1129
|
-
grouse,
|
|
1130
|
-
half,
|
|
1131
|
-
hero,
|
|
1132
|
-
hoof,
|
|
1133
|
-
hovercraft,
|
|
1134
|
-
hypothesis,
|
|
1135
|
-
index,
|
|
1136
|
-
kakapo,
|
|
1137
|
-
knife,
|
|
1138
|
-
larva,
|
|
1139
|
-
leaf,
|
|
1140
|
-
libretto,
|
|
1141
|
-
life,
|
|
1142
|
-
loaf,
|
|
1143
|
-
locus,
|
|
1144
|
-
louse,
|
|
1145
|
-
man,
|
|
1146
|
-
matrix,
|
|
1147
|
-
means,
|
|
1148
|
-
medium,
|
|
1149
|
-
media,
|
|
1150
|
-
memorandum,
|
|
1151
|
-
millennium,
|
|
1152
|
-
minutia,
|
|
1153
|
-
moose,
|
|
1154
|
-
mouse,
|
|
1155
|
-
nebula,
|
|
1156
|
-
nemesis,
|
|
1157
|
-
neurosis,
|
|
1158
|
-
news,
|
|
1159
|
-
nucleus,
|
|
1160
|
-
oasis,
|
|
1161
|
-
offspring,
|
|
1162
|
-
opus,
|
|
1163
|
-
ovum,
|
|
1164
|
-
ox,
|
|
1165
|
-
paralysis,
|
|
1166
|
-
parenthesis,
|
|
1167
|
-
person,
|
|
1168
|
-
phenomenon,
|
|
1169
|
-
phylum,
|
|
1170
|
-
pike,
|
|
1171
|
-
polyhedron,
|
|
1172
|
-
potato,
|
|
1173
|
-
prognosis,
|
|
1174
|
-
quiz,
|
|
1175
|
-
radius,
|
|
1176
|
-
referendum,
|
|
1177
|
-
salmon,
|
|
1178
|
-
scarf,
|
|
1179
|
-
self: self$1,
|
|
1180
|
-
series,
|
|
1181
|
-
sheep,
|
|
1182
|
-
shelf,
|
|
1183
|
-
shrimp,
|
|
1184
|
-
soliloquy,
|
|
1185
|
-
spacecraft,
|
|
1186
|
-
species,
|
|
1187
|
-
spectrum,
|
|
1188
|
-
squid,
|
|
1189
|
-
stimulus,
|
|
1190
|
-
stratum,
|
|
1191
|
-
swine,
|
|
1192
|
-
syllabus,
|
|
1193
|
-
symposium,
|
|
1194
|
-
synopsis,
|
|
1195
|
-
synthesis,
|
|
1196
|
-
tableau,
|
|
1197
|
-
that,
|
|
1198
|
-
thesis,
|
|
1199
|
-
thief,
|
|
1200
|
-
"this": "these",
|
|
1201
|
-
tomato,
|
|
1202
|
-
tooth,
|
|
1203
|
-
trout,
|
|
1204
|
-
tuna,
|
|
1205
|
-
vertebra,
|
|
1206
|
-
vertex,
|
|
1207
|
-
veto,
|
|
1208
|
-
vita,
|
|
1209
|
-
vortex,
|
|
1210
|
-
watercraft,
|
|
1211
|
-
wharf,
|
|
1212
|
-
wife,
|
|
1213
|
-
wolf,
|
|
1214
|
-
woman
|
|
1215
|
-
};
|
|
1216
|
-
irregularPlurals$1.exports;
|
|
1217
|
-
(function(module2) {
|
|
1218
|
-
const irregularPlurals2 = require$$0;
|
|
1219
|
-
Object.defineProperty(module2, "exports", {
|
|
1220
|
-
get() {
|
|
1221
|
-
return new Map(Object.entries(irregularPlurals2));
|
|
924
|
+
function commonjsRequire(path) {
|
|
925
|
+
throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
926
|
+
}
|
|
927
|
+
var pluralize$1 = { exports: {} };
|
|
928
|
+
(function(module2, exports2) {
|
|
929
|
+
(function(root2, pluralize2) {
|
|
930
|
+
if (typeof commonjsRequire === "function" && true && true) {
|
|
931
|
+
module2.exports = pluralize2();
|
|
932
|
+
} else {
|
|
933
|
+
root2.pluralize = pluralize2();
|
|
934
|
+
}
|
|
935
|
+
})(commonjsGlobal, function() {
|
|
936
|
+
var pluralRules = [];
|
|
937
|
+
var singularRules = [];
|
|
938
|
+
var uncountables = {};
|
|
939
|
+
var irregularPlurals = {};
|
|
940
|
+
var irregularSingles = {};
|
|
941
|
+
function sanitizeRule(rule) {
|
|
942
|
+
if (typeof rule === "string") {
|
|
943
|
+
return new RegExp("^" + rule + "$", "i");
|
|
944
|
+
}
|
|
945
|
+
return rule;
|
|
1222
946
|
}
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
947
|
+
function restoreCase(word, token) {
|
|
948
|
+
if (word === token)
|
|
949
|
+
return token;
|
|
950
|
+
if (word === word.toLowerCase())
|
|
951
|
+
return token.toLowerCase();
|
|
952
|
+
if (word === word.toUpperCase())
|
|
953
|
+
return token.toUpperCase();
|
|
954
|
+
if (word[0] === word[0].toUpperCase()) {
|
|
955
|
+
return token.charAt(0).toUpperCase() + token.substr(1).toLowerCase();
|
|
956
|
+
}
|
|
957
|
+
return token.toLowerCase();
|
|
958
|
+
}
|
|
959
|
+
function interpolate(str, args) {
|
|
960
|
+
return str.replace(/\$(\d{1,2})/g, function(match, index) {
|
|
961
|
+
return args[index] || "";
|
|
962
|
+
});
|
|
963
|
+
}
|
|
964
|
+
function replace(word, rule) {
|
|
965
|
+
return word.replace(rule[0], function(match, index) {
|
|
966
|
+
var result = interpolate(rule[1], arguments);
|
|
967
|
+
if (match === "") {
|
|
968
|
+
return restoreCase(word[index - 1], result);
|
|
969
|
+
}
|
|
970
|
+
return restoreCase(match, result);
|
|
971
|
+
});
|
|
972
|
+
}
|
|
973
|
+
function sanitizeWord(token, word, rules) {
|
|
974
|
+
if (!token.length || uncountables.hasOwnProperty(token)) {
|
|
975
|
+
return word;
|
|
976
|
+
}
|
|
977
|
+
var len = rules.length;
|
|
978
|
+
while (len--) {
|
|
979
|
+
var rule = rules[len];
|
|
980
|
+
if (rule[0].test(word))
|
|
981
|
+
return replace(word, rule);
|
|
982
|
+
}
|
|
983
|
+
return word;
|
|
984
|
+
}
|
|
985
|
+
function replaceWord(replaceMap, keepMap, rules) {
|
|
986
|
+
return function(word) {
|
|
987
|
+
var token = word.toLowerCase();
|
|
988
|
+
if (keepMap.hasOwnProperty(token)) {
|
|
989
|
+
return restoreCase(word, token);
|
|
990
|
+
}
|
|
991
|
+
if (replaceMap.hasOwnProperty(token)) {
|
|
992
|
+
return restoreCase(word, replaceMap[token]);
|
|
993
|
+
}
|
|
994
|
+
return sanitizeWord(token, word, rules);
|
|
995
|
+
};
|
|
996
|
+
}
|
|
997
|
+
function checkWord(replaceMap, keepMap, rules, bool) {
|
|
998
|
+
return function(word) {
|
|
999
|
+
var token = word.toLowerCase();
|
|
1000
|
+
if (keepMap.hasOwnProperty(token))
|
|
1001
|
+
return true;
|
|
1002
|
+
if (replaceMap.hasOwnProperty(token))
|
|
1003
|
+
return false;
|
|
1004
|
+
return sanitizeWord(token, token, rules) === token;
|
|
1005
|
+
};
|
|
1006
|
+
}
|
|
1007
|
+
function pluralize2(word, count, inclusive) {
|
|
1008
|
+
var pluralized = count === 1 ? pluralize2.singular(word) : pluralize2.plural(word);
|
|
1009
|
+
return (inclusive ? count + " " : "") + pluralized;
|
|
1010
|
+
}
|
|
1011
|
+
pluralize2.plural = replaceWord(
|
|
1012
|
+
irregularSingles,
|
|
1013
|
+
irregularPlurals,
|
|
1014
|
+
pluralRules
|
|
1015
|
+
);
|
|
1016
|
+
pluralize2.isPlural = checkWord(
|
|
1017
|
+
irregularSingles,
|
|
1018
|
+
irregularPlurals,
|
|
1019
|
+
pluralRules
|
|
1020
|
+
);
|
|
1021
|
+
pluralize2.singular = replaceWord(
|
|
1022
|
+
irregularPlurals,
|
|
1023
|
+
irregularSingles,
|
|
1024
|
+
singularRules
|
|
1025
|
+
);
|
|
1026
|
+
pluralize2.isSingular = checkWord(
|
|
1027
|
+
irregularPlurals,
|
|
1028
|
+
irregularSingles,
|
|
1029
|
+
singularRules
|
|
1030
|
+
);
|
|
1031
|
+
pluralize2.addPluralRule = function(rule, replacement) {
|
|
1032
|
+
pluralRules.push([sanitizeRule(rule), replacement]);
|
|
1033
|
+
};
|
|
1034
|
+
pluralize2.addSingularRule = function(rule, replacement) {
|
|
1035
|
+
singularRules.push([sanitizeRule(rule), replacement]);
|
|
1036
|
+
};
|
|
1037
|
+
pluralize2.addUncountableRule = function(word) {
|
|
1038
|
+
if (typeof word === "string") {
|
|
1039
|
+
uncountables[word.toLowerCase()] = true;
|
|
1040
|
+
return;
|
|
1041
|
+
}
|
|
1042
|
+
pluralize2.addPluralRule(word, "$0");
|
|
1043
|
+
pluralize2.addSingularRule(word, "$0");
|
|
1044
|
+
};
|
|
1045
|
+
pluralize2.addIrregularRule = function(single, plural) {
|
|
1046
|
+
plural = plural.toLowerCase();
|
|
1047
|
+
single = single.toLowerCase();
|
|
1048
|
+
irregularSingles[single] = plural;
|
|
1049
|
+
irregularPlurals[plural] = single;
|
|
1050
|
+
};
|
|
1051
|
+
[
|
|
1052
|
+
// Pronouns.
|
|
1053
|
+
["I", "we"],
|
|
1054
|
+
["me", "us"],
|
|
1055
|
+
["he", "they"],
|
|
1056
|
+
["she", "they"],
|
|
1057
|
+
["them", "them"],
|
|
1058
|
+
["myself", "ourselves"],
|
|
1059
|
+
["yourself", "yourselves"],
|
|
1060
|
+
["itself", "themselves"],
|
|
1061
|
+
["herself", "themselves"],
|
|
1062
|
+
["himself", "themselves"],
|
|
1063
|
+
["themself", "themselves"],
|
|
1064
|
+
["is", "are"],
|
|
1065
|
+
["was", "were"],
|
|
1066
|
+
["has", "have"],
|
|
1067
|
+
["this", "these"],
|
|
1068
|
+
["that", "those"],
|
|
1069
|
+
// Words ending in with a consonant and `o`.
|
|
1070
|
+
["echo", "echoes"],
|
|
1071
|
+
["dingo", "dingoes"],
|
|
1072
|
+
["volcano", "volcanoes"],
|
|
1073
|
+
["tornado", "tornadoes"],
|
|
1074
|
+
["torpedo", "torpedoes"],
|
|
1075
|
+
// Ends with `us`.
|
|
1076
|
+
["genus", "genera"],
|
|
1077
|
+
["viscus", "viscera"],
|
|
1078
|
+
// Ends with `ma`.
|
|
1079
|
+
["stigma", "stigmata"],
|
|
1080
|
+
["stoma", "stomata"],
|
|
1081
|
+
["dogma", "dogmata"],
|
|
1082
|
+
["lemma", "lemmata"],
|
|
1083
|
+
["schema", "schemata"],
|
|
1084
|
+
["anathema", "anathemata"],
|
|
1085
|
+
// Other irregular rules.
|
|
1086
|
+
["ox", "oxen"],
|
|
1087
|
+
["axe", "axes"],
|
|
1088
|
+
["die", "dice"],
|
|
1089
|
+
["yes", "yeses"],
|
|
1090
|
+
["foot", "feet"],
|
|
1091
|
+
["eave", "eaves"],
|
|
1092
|
+
["goose", "geese"],
|
|
1093
|
+
["tooth", "teeth"],
|
|
1094
|
+
["quiz", "quizzes"],
|
|
1095
|
+
["human", "humans"],
|
|
1096
|
+
["proof", "proofs"],
|
|
1097
|
+
["carve", "carves"],
|
|
1098
|
+
["valve", "valves"],
|
|
1099
|
+
["looey", "looies"],
|
|
1100
|
+
["thief", "thieves"],
|
|
1101
|
+
["groove", "grooves"],
|
|
1102
|
+
["pickaxe", "pickaxes"],
|
|
1103
|
+
["passerby", "passersby"]
|
|
1104
|
+
].forEach(function(rule) {
|
|
1105
|
+
return pluralize2.addIrregularRule(rule[0], rule[1]);
|
|
1246
1106
|
});
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1107
|
+
[
|
|
1108
|
+
[/s?$/i, "s"],
|
|
1109
|
+
[/[^\u0000-\u007F]$/i, "$0"],
|
|
1110
|
+
[/([^aeiou]ese)$/i, "$1"],
|
|
1111
|
+
[/(ax|test)is$/i, "$1es"],
|
|
1112
|
+
[/(alias|[^aou]us|t[lm]as|gas|ris)$/i, "$1es"],
|
|
1113
|
+
[/(e[mn]u)s?$/i, "$1s"],
|
|
1114
|
+
[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i, "$1"],
|
|
1115
|
+
[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1i"],
|
|
1116
|
+
[/(alumn|alg|vertebr)(?:a|ae)$/i, "$1ae"],
|
|
1117
|
+
[/(seraph|cherub)(?:im)?$/i, "$1im"],
|
|
1118
|
+
[/(her|at|gr)o$/i, "$1oes"],
|
|
1119
|
+
[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i, "$1a"],
|
|
1120
|
+
[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i, "$1a"],
|
|
1121
|
+
[/sis$/i, "ses"],
|
|
1122
|
+
[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i, "$1$2ves"],
|
|
1123
|
+
[/([^aeiouy]|qu)y$/i, "$1ies"],
|
|
1124
|
+
[/([^ch][ieo][ln])ey$/i, "$1ies"],
|
|
1125
|
+
[/(x|ch|ss|sh|zz)$/i, "$1es"],
|
|
1126
|
+
[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i, "$1ices"],
|
|
1127
|
+
[/\b((?:tit)?m|l)(?:ice|ouse)$/i, "$1ice"],
|
|
1128
|
+
[/(pe)(?:rson|ople)$/i, "$1ople"],
|
|
1129
|
+
[/(child)(?:ren)?$/i, "$1ren"],
|
|
1130
|
+
[/eaux$/i, "$0"],
|
|
1131
|
+
[/m[ae]n$/i, "men"],
|
|
1132
|
+
["thou", "you"]
|
|
1133
|
+
].forEach(function(rule) {
|
|
1134
|
+
return pluralize2.addPluralRule(rule[0], rule[1]);
|
|
1135
|
+
});
|
|
1136
|
+
[
|
|
1137
|
+
[/s$/i, ""],
|
|
1138
|
+
[/(ss)$/i, "$1"],
|
|
1139
|
+
[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i, "$1fe"],
|
|
1140
|
+
[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i, "$1f"],
|
|
1141
|
+
[/ies$/i, "y"],
|
|
1142
|
+
[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i, "$1ie"],
|
|
1143
|
+
[/\b(mon|smil)ies$/i, "$1ey"],
|
|
1144
|
+
[/\b((?:tit)?m|l)ice$/i, "$1ouse"],
|
|
1145
|
+
[/(seraph|cherub)im$/i, "$1"],
|
|
1146
|
+
[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i, "$1"],
|
|
1147
|
+
[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i, "$1sis"],
|
|
1148
|
+
[/(movie|twelve|abuse|e[mn]u)s$/i, "$1"],
|
|
1149
|
+
[/(test)(?:is|es)$/i, "$1is"],
|
|
1150
|
+
[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1us"],
|
|
1151
|
+
[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i, "$1um"],
|
|
1152
|
+
[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i, "$1on"],
|
|
1153
|
+
[/(alumn|alg|vertebr)ae$/i, "$1a"],
|
|
1154
|
+
[/(cod|mur|sil|vert|ind)ices$/i, "$1ex"],
|
|
1155
|
+
[/(matr|append)ices$/i, "$1ix"],
|
|
1156
|
+
[/(pe)(rson|ople)$/i, "$1rson"],
|
|
1157
|
+
[/(child)ren$/i, "$1"],
|
|
1158
|
+
[/(eau)x?$/i, "$1"],
|
|
1159
|
+
[/men$/i, "man"]
|
|
1160
|
+
].forEach(function(rule) {
|
|
1161
|
+
return pluralize2.addSingularRule(rule[0], rule[1]);
|
|
1162
|
+
});
|
|
1163
|
+
[
|
|
1164
|
+
// Singular words with no plurals.
|
|
1165
|
+
"adulthood",
|
|
1166
|
+
"advice",
|
|
1167
|
+
"agenda",
|
|
1168
|
+
"aid",
|
|
1169
|
+
"aircraft",
|
|
1170
|
+
"alcohol",
|
|
1171
|
+
"ammo",
|
|
1172
|
+
"analytics",
|
|
1173
|
+
"anime",
|
|
1174
|
+
"athletics",
|
|
1175
|
+
"audio",
|
|
1176
|
+
"bison",
|
|
1177
|
+
"blood",
|
|
1178
|
+
"bream",
|
|
1179
|
+
"buffalo",
|
|
1180
|
+
"butter",
|
|
1181
|
+
"carp",
|
|
1182
|
+
"cash",
|
|
1183
|
+
"chassis",
|
|
1184
|
+
"chess",
|
|
1185
|
+
"clothing",
|
|
1186
|
+
"cod",
|
|
1187
|
+
"commerce",
|
|
1188
|
+
"cooperation",
|
|
1189
|
+
"corps",
|
|
1190
|
+
"debris",
|
|
1191
|
+
"diabetes",
|
|
1192
|
+
"digestion",
|
|
1193
|
+
"elk",
|
|
1194
|
+
"energy",
|
|
1195
|
+
"equipment",
|
|
1196
|
+
"excretion",
|
|
1197
|
+
"expertise",
|
|
1198
|
+
"firmware",
|
|
1199
|
+
"flounder",
|
|
1200
|
+
"fun",
|
|
1201
|
+
"gallows",
|
|
1202
|
+
"garbage",
|
|
1203
|
+
"graffiti",
|
|
1204
|
+
"hardware",
|
|
1205
|
+
"headquarters",
|
|
1206
|
+
"health",
|
|
1207
|
+
"herpes",
|
|
1208
|
+
"highjinks",
|
|
1209
|
+
"homework",
|
|
1210
|
+
"housework",
|
|
1211
|
+
"information",
|
|
1212
|
+
"jeans",
|
|
1213
|
+
"justice",
|
|
1214
|
+
"kudos",
|
|
1215
|
+
"labour",
|
|
1216
|
+
"literature",
|
|
1217
|
+
"machinery",
|
|
1218
|
+
"mackerel",
|
|
1219
|
+
"mail",
|
|
1220
|
+
"media",
|
|
1221
|
+
"mews",
|
|
1222
|
+
"moose",
|
|
1223
|
+
"music",
|
|
1224
|
+
"mud",
|
|
1225
|
+
"manga",
|
|
1226
|
+
"news",
|
|
1227
|
+
"only",
|
|
1228
|
+
"personnel",
|
|
1229
|
+
"pike",
|
|
1230
|
+
"plankton",
|
|
1231
|
+
"pliers",
|
|
1232
|
+
"police",
|
|
1233
|
+
"pollution",
|
|
1234
|
+
"premises",
|
|
1235
|
+
"rain",
|
|
1236
|
+
"research",
|
|
1237
|
+
"rice",
|
|
1238
|
+
"salmon",
|
|
1239
|
+
"scissors",
|
|
1240
|
+
"series",
|
|
1241
|
+
"sewage",
|
|
1242
|
+
"shambles",
|
|
1243
|
+
"shrimp",
|
|
1244
|
+
"software",
|
|
1245
|
+
"species",
|
|
1246
|
+
"staff",
|
|
1247
|
+
"swine",
|
|
1248
|
+
"tennis",
|
|
1249
|
+
"traffic",
|
|
1250
|
+
"transportation",
|
|
1251
|
+
"trout",
|
|
1252
|
+
"tuna",
|
|
1253
|
+
"wealth",
|
|
1254
|
+
"welfare",
|
|
1255
|
+
"whiting",
|
|
1256
|
+
"wildebeest",
|
|
1257
|
+
"wildlife",
|
|
1258
|
+
"you",
|
|
1259
|
+
/pok[eé]mon$/i,
|
|
1260
|
+
// Regexes.
|
|
1261
|
+
/[^aeiou]ese$/i,
|
|
1262
|
+
// "chinese", "japanese"
|
|
1263
|
+
/deer$/i,
|
|
1264
|
+
// "deer", "reindeer"
|
|
1265
|
+
/fish$/i,
|
|
1266
|
+
// "fish", "blowfish", "angelfish"
|
|
1267
|
+
/measles$/i,
|
|
1268
|
+
/o[iu]s$/i,
|
|
1269
|
+
// "carnivorous"
|
|
1270
|
+
/pox$/i,
|
|
1271
|
+
// "chickpox", "smallpox"
|
|
1272
|
+
/sheep$/i
|
|
1273
|
+
].forEach(pluralize2.addUncountableRule);
|
|
1274
|
+
return pluralize2;
|
|
1275
|
+
});
|
|
1276
|
+
})(pluralize$1);
|
|
1277
|
+
var pluralizeExports = pluralize$1.exports;
|
|
1278
|
+
const plur = /* @__PURE__ */ getDefaultExportFromCjs(pluralizeExports);
|
|
1279
|
+
plur.addPluralRule("glomerulus", "glomeruli");
|
|
1280
|
+
plur.addPluralRule("interstitium", "interstitia");
|
|
1250
1281
|
function fromEntries(iterable) {
|
|
1251
1282
|
return [...iterable].reduce((obj, { 0: key, 1: val }) => Object.assign(obj, { [key]: val }), {});
|
|
1252
1283
|
}
|
|
@@ -1257,6 +1288,9 @@ function commaNumber(n) {
|
|
|
1257
1288
|
function capitalize$1(word) {
|
|
1258
1289
|
return word ? word.charAt(0).toUpperCase() + word.slice(1) : "";
|
|
1259
1290
|
}
|
|
1291
|
+
function pluralize(word, count = null) {
|
|
1292
|
+
return plur(word, count);
|
|
1293
|
+
}
|
|
1260
1294
|
function getNextScope(prevScopes) {
|
|
1261
1295
|
const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
1262
1296
|
const nextCharIndices = [0];
|
|
@@ -1374,9 +1408,9 @@ function isSymbol(value) {
|
|
|
1374
1408
|
return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag$3;
|
|
1375
1409
|
}
|
|
1376
1410
|
function arrayMap(array, iteratee) {
|
|
1377
|
-
var
|
|
1378
|
-
while (++
|
|
1379
|
-
result[
|
|
1411
|
+
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
|
1412
|
+
while (++index < length) {
|
|
1413
|
+
result[index] = iteratee(array[index], index, array);
|
|
1380
1414
|
}
|
|
1381
1415
|
return result;
|
|
1382
1416
|
}
|
|
@@ -1494,10 +1528,10 @@ function apply(func, thisArg, args) {
|
|
|
1494
1528
|
function noop() {
|
|
1495
1529
|
}
|
|
1496
1530
|
function copyArray(source, array) {
|
|
1497
|
-
var
|
|
1531
|
+
var index = -1, length = source.length;
|
|
1498
1532
|
array || (array = Array(length));
|
|
1499
|
-
while (++
|
|
1500
|
-
array[
|
|
1533
|
+
while (++index < length) {
|
|
1534
|
+
array[index] = source[index];
|
|
1501
1535
|
}
|
|
1502
1536
|
return array;
|
|
1503
1537
|
}
|
|
@@ -1544,19 +1578,19 @@ const baseSetToString$1 = baseSetToString;
|
|
|
1544
1578
|
var setToString = shortOut(baseSetToString$1);
|
|
1545
1579
|
const setToString$1 = setToString;
|
|
1546
1580
|
function arrayEach(array, iteratee) {
|
|
1547
|
-
var
|
|
1548
|
-
while (++
|
|
1549
|
-
if (iteratee(array[
|
|
1581
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
1582
|
+
while (++index < length) {
|
|
1583
|
+
if (iteratee(array[index], index, array) === false) {
|
|
1550
1584
|
break;
|
|
1551
1585
|
}
|
|
1552
1586
|
}
|
|
1553
1587
|
return array;
|
|
1554
1588
|
}
|
|
1555
1589
|
function baseFindIndex(array, predicate, fromIndex, fromRight) {
|
|
1556
|
-
var length = array.length,
|
|
1557
|
-
while (fromRight ?
|
|
1558
|
-
if (predicate(array[
|
|
1559
|
-
return
|
|
1590
|
+
var length = array.length, index = fromIndex + (fromRight ? 1 : -1);
|
|
1591
|
+
while (fromRight ? index-- : ++index < length) {
|
|
1592
|
+
if (predicate(array[index], index, array)) {
|
|
1593
|
+
return index;
|
|
1560
1594
|
}
|
|
1561
1595
|
}
|
|
1562
1596
|
return -1;
|
|
@@ -1565,10 +1599,10 @@ function baseIsNaN(value) {
|
|
|
1565
1599
|
return value !== value;
|
|
1566
1600
|
}
|
|
1567
1601
|
function strictIndexOf(array, value, fromIndex) {
|
|
1568
|
-
var
|
|
1569
|
-
while (++
|
|
1570
|
-
if (array[
|
|
1571
|
-
return
|
|
1602
|
+
var index = fromIndex - 1, length = array.length;
|
|
1603
|
+
while (++index < length) {
|
|
1604
|
+
if (array[index] === value) {
|
|
1605
|
+
return index;
|
|
1572
1606
|
}
|
|
1573
1607
|
}
|
|
1574
1608
|
return -1;
|
|
@@ -1613,9 +1647,9 @@ function assignValue(object, key, value) {
|
|
|
1613
1647
|
function copyObject(source, props, object, customizer) {
|
|
1614
1648
|
var isNew = !object;
|
|
1615
1649
|
object || (object = {});
|
|
1616
|
-
var
|
|
1617
|
-
while (++
|
|
1618
|
-
var key = props[
|
|
1650
|
+
var index = -1, length = props.length;
|
|
1651
|
+
while (++index < length) {
|
|
1652
|
+
var key = props[index];
|
|
1619
1653
|
var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
|
|
1620
1654
|
if (newValue === void 0) {
|
|
1621
1655
|
newValue = source[key];
|
|
@@ -1632,14 +1666,14 @@ var nativeMax = Math.max;
|
|
|
1632
1666
|
function overRest(func, start, transform2) {
|
|
1633
1667
|
start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
|
|
1634
1668
|
return function() {
|
|
1635
|
-
var args = arguments,
|
|
1636
|
-
while (++
|
|
1637
|
-
array[
|
|
1669
|
+
var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
|
|
1670
|
+
while (++index < length) {
|
|
1671
|
+
array[index] = args[start + index];
|
|
1638
1672
|
}
|
|
1639
|
-
|
|
1673
|
+
index = -1;
|
|
1640
1674
|
var otherArgs = Array(start + 1);
|
|
1641
|
-
while (++
|
|
1642
|
-
otherArgs[
|
|
1675
|
+
while (++index < start) {
|
|
1676
|
+
otherArgs[index] = args[index];
|
|
1643
1677
|
}
|
|
1644
1678
|
otherArgs[start] = transform2(array);
|
|
1645
1679
|
return apply(func, this, otherArgs);
|
|
@@ -1655,13 +1689,13 @@ function isLength(value) {
|
|
|
1655
1689
|
function isArrayLike(value) {
|
|
1656
1690
|
return value != null && isLength(value.length) && !isFunction(value);
|
|
1657
1691
|
}
|
|
1658
|
-
function isIterateeCall(value,
|
|
1692
|
+
function isIterateeCall(value, index, object) {
|
|
1659
1693
|
if (!isObject(object)) {
|
|
1660
1694
|
return false;
|
|
1661
1695
|
}
|
|
1662
|
-
var type = typeof
|
|
1663
|
-
if (type == "number" ? isArrayLike(object) && isIndex(
|
|
1664
|
-
return eq$4(object[
|
|
1696
|
+
var type = typeof index;
|
|
1697
|
+
if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) {
|
|
1698
|
+
return eq$4(object[index], value);
|
|
1665
1699
|
}
|
|
1666
1700
|
return false;
|
|
1667
1701
|
}
|
|
@@ -1671,9 +1705,9 @@ function isPrototype(value) {
|
|
|
1671
1705
|
return value === proto;
|
|
1672
1706
|
}
|
|
1673
1707
|
function baseTimes(n, iteratee) {
|
|
1674
|
-
var
|
|
1675
|
-
while (++
|
|
1676
|
-
result[
|
|
1708
|
+
var index = -1, result = Array(n);
|
|
1709
|
+
while (++index < n) {
|
|
1710
|
+
result[index] = iteratee(index);
|
|
1677
1711
|
}
|
|
1678
1712
|
return result;
|
|
1679
1713
|
}
|
|
@@ -1843,10 +1877,10 @@ function hashSet(key, value) {
|
|
|
1843
1877
|
return this;
|
|
1844
1878
|
}
|
|
1845
1879
|
function Hash(entries) {
|
|
1846
|
-
var
|
|
1880
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
1847
1881
|
this.clear();
|
|
1848
|
-
while (++
|
|
1849
|
-
var entry = entries[
|
|
1882
|
+
while (++index < length) {
|
|
1883
|
+
var entry = entries[index];
|
|
1850
1884
|
this.set(entry[0], entry[1]);
|
|
1851
1885
|
}
|
|
1852
1886
|
}
|
|
@@ -1871,41 +1905,41 @@ function assocIndexOf(array, key) {
|
|
|
1871
1905
|
var arrayProto = Array.prototype;
|
|
1872
1906
|
var splice = arrayProto.splice;
|
|
1873
1907
|
function listCacheDelete(key) {
|
|
1874
|
-
var data = this.__data__,
|
|
1875
|
-
if (
|
|
1908
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
1909
|
+
if (index < 0) {
|
|
1876
1910
|
return false;
|
|
1877
1911
|
}
|
|
1878
1912
|
var lastIndex = data.length - 1;
|
|
1879
|
-
if (
|
|
1913
|
+
if (index == lastIndex) {
|
|
1880
1914
|
data.pop();
|
|
1881
1915
|
} else {
|
|
1882
|
-
splice.call(data,
|
|
1916
|
+
splice.call(data, index, 1);
|
|
1883
1917
|
}
|
|
1884
1918
|
--this.size;
|
|
1885
1919
|
return true;
|
|
1886
1920
|
}
|
|
1887
1921
|
function listCacheGet(key) {
|
|
1888
|
-
var data = this.__data__,
|
|
1889
|
-
return
|
|
1922
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
1923
|
+
return index < 0 ? void 0 : data[index][1];
|
|
1890
1924
|
}
|
|
1891
1925
|
function listCacheHas(key) {
|
|
1892
1926
|
return assocIndexOf(this.__data__, key) > -1;
|
|
1893
1927
|
}
|
|
1894
1928
|
function listCacheSet(key, value) {
|
|
1895
|
-
var data = this.__data__,
|
|
1896
|
-
if (
|
|
1929
|
+
var data = this.__data__, index = assocIndexOf(data, key);
|
|
1930
|
+
if (index < 0) {
|
|
1897
1931
|
++this.size;
|
|
1898
1932
|
data.push([key, value]);
|
|
1899
1933
|
} else {
|
|
1900
|
-
data[
|
|
1934
|
+
data[index][1] = value;
|
|
1901
1935
|
}
|
|
1902
1936
|
return this;
|
|
1903
1937
|
}
|
|
1904
1938
|
function ListCache(entries) {
|
|
1905
|
-
var
|
|
1939
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
1906
1940
|
this.clear();
|
|
1907
|
-
while (++
|
|
1908
|
-
var entry = entries[
|
|
1941
|
+
while (++index < length) {
|
|
1942
|
+
var entry = entries[index];
|
|
1909
1943
|
this.set(entry[0], entry[1]);
|
|
1910
1944
|
}
|
|
1911
1945
|
}
|
|
@@ -1950,10 +1984,10 @@ function mapCacheSet(key, value) {
|
|
|
1950
1984
|
return this;
|
|
1951
1985
|
}
|
|
1952
1986
|
function MapCache(entries) {
|
|
1953
|
-
var
|
|
1987
|
+
var index = -1, length = entries == null ? 0 : entries.length;
|
|
1954
1988
|
this.clear();
|
|
1955
|
-
while (++
|
|
1956
|
-
var entry = entries[
|
|
1989
|
+
while (++index < length) {
|
|
1990
|
+
var entry = entries[index];
|
|
1957
1991
|
this.set(entry[0], entry[1]);
|
|
1958
1992
|
}
|
|
1959
1993
|
}
|
|
@@ -2023,20 +2057,20 @@ function toKey(value) {
|
|
|
2023
2057
|
}
|
|
2024
2058
|
function baseGet(object, path) {
|
|
2025
2059
|
path = castPath(path, object);
|
|
2026
|
-
var
|
|
2027
|
-
while (object != null &&
|
|
2028
|
-
object = object[toKey(path[
|
|
2060
|
+
var index = 0, length = path.length;
|
|
2061
|
+
while (object != null && index < length) {
|
|
2062
|
+
object = object[toKey(path[index++])];
|
|
2029
2063
|
}
|
|
2030
|
-
return
|
|
2064
|
+
return index && index == length ? object : void 0;
|
|
2031
2065
|
}
|
|
2032
2066
|
function get$1(object, path, defaultValue) {
|
|
2033
2067
|
var result = object == null ? void 0 : baseGet(object, path);
|
|
2034
2068
|
return result === void 0 ? defaultValue : result;
|
|
2035
2069
|
}
|
|
2036
2070
|
function arrayPush(array, values2) {
|
|
2037
|
-
var
|
|
2038
|
-
while (++
|
|
2039
|
-
array[offset +
|
|
2071
|
+
var index = -1, length = values2.length, offset = array.length;
|
|
2072
|
+
while (++index < length) {
|
|
2073
|
+
array[offset + index] = values2[index];
|
|
2040
2074
|
}
|
|
2041
2075
|
return array;
|
|
2042
2076
|
}
|
|
@@ -2045,11 +2079,11 @@ function isFlattenable(value) {
|
|
|
2045
2079
|
return isArray$1(value) || isArguments$1(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
|
|
2046
2080
|
}
|
|
2047
2081
|
function baseFlatten(array, depth, predicate, isStrict, result) {
|
|
2048
|
-
var
|
|
2082
|
+
var index = -1, length = array.length;
|
|
2049
2083
|
predicate || (predicate = isFlattenable);
|
|
2050
2084
|
result || (result = []);
|
|
2051
|
-
while (++
|
|
2052
|
-
var value = array[
|
|
2085
|
+
while (++index < length) {
|
|
2086
|
+
var value = array[index];
|
|
2053
2087
|
if (depth > 0 && predicate(value)) {
|
|
2054
2088
|
if (depth > 1) {
|
|
2055
2089
|
baseFlatten(value, depth - 1, predicate, isStrict, result);
|
|
@@ -2123,10 +2157,10 @@ function cloneBuffer(buffer, isDeep) {
|
|
|
2123
2157
|
return result;
|
|
2124
2158
|
}
|
|
2125
2159
|
function arrayFilter(array, predicate) {
|
|
2126
|
-
var
|
|
2127
|
-
while (++
|
|
2128
|
-
var value = array[
|
|
2129
|
-
if (predicate(value,
|
|
2160
|
+
var index = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
|
2161
|
+
while (++index < length) {
|
|
2162
|
+
var value = array[index];
|
|
2163
|
+
if (predicate(value, index, array)) {
|
|
2130
2164
|
result[resIndex++] = value;
|
|
2131
2165
|
}
|
|
2132
2166
|
}
|
|
@@ -2371,18 +2405,18 @@ function setCacheHas(value) {
|
|
|
2371
2405
|
return this.__data__.has(value);
|
|
2372
2406
|
}
|
|
2373
2407
|
function SetCache(values2) {
|
|
2374
|
-
var
|
|
2408
|
+
var index = -1, length = values2 == null ? 0 : values2.length;
|
|
2375
2409
|
this.__data__ = new MapCache();
|
|
2376
|
-
while (++
|
|
2377
|
-
this.add(values2[
|
|
2410
|
+
while (++index < length) {
|
|
2411
|
+
this.add(values2[index]);
|
|
2378
2412
|
}
|
|
2379
2413
|
}
|
|
2380
2414
|
SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
|
|
2381
2415
|
SetCache.prototype.has = setCacheHas;
|
|
2382
2416
|
function arraySome(array, predicate) {
|
|
2383
|
-
var
|
|
2384
|
-
while (++
|
|
2385
|
-
if (predicate(array[
|
|
2417
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
2418
|
+
while (++index < length) {
|
|
2419
|
+
if (predicate(array[index], index, array)) {
|
|
2386
2420
|
return true;
|
|
2387
2421
|
}
|
|
2388
2422
|
}
|
|
@@ -2402,13 +2436,13 @@ function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
|
|
2402
2436
|
if (arrStacked && othStacked) {
|
|
2403
2437
|
return arrStacked == other && othStacked == array;
|
|
2404
2438
|
}
|
|
2405
|
-
var
|
|
2439
|
+
var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
|
|
2406
2440
|
stack.set(array, other);
|
|
2407
2441
|
stack.set(other, array);
|
|
2408
|
-
while (++
|
|
2409
|
-
var arrValue = array[
|
|
2442
|
+
while (++index < arrLength) {
|
|
2443
|
+
var arrValue = array[index], othValue = other[index];
|
|
2410
2444
|
if (customizer) {
|
|
2411
|
-
var compared = isPartial ? customizer(othValue, arrValue,
|
|
2445
|
+
var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
|
|
2412
2446
|
}
|
|
2413
2447
|
if (compared !== void 0) {
|
|
2414
2448
|
if (compared) {
|
|
@@ -2436,16 +2470,16 @@ function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
|
|
2436
2470
|
return result;
|
|
2437
2471
|
}
|
|
2438
2472
|
function mapToArray(map) {
|
|
2439
|
-
var
|
|
2473
|
+
var index = -1, result = Array(map.size);
|
|
2440
2474
|
map.forEach(function(value, key) {
|
|
2441
|
-
result[++
|
|
2475
|
+
result[++index] = [key, value];
|
|
2442
2476
|
});
|
|
2443
2477
|
return result;
|
|
2444
2478
|
}
|
|
2445
2479
|
function setToArray(set2) {
|
|
2446
|
-
var
|
|
2480
|
+
var index = -1, result = Array(set2.size);
|
|
2447
2481
|
set2.forEach(function(value) {
|
|
2448
|
-
result[++
|
|
2482
|
+
result[++index] = value;
|
|
2449
2483
|
});
|
|
2450
2484
|
return result;
|
|
2451
2485
|
}
|
|
@@ -2507,9 +2541,9 @@ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
|
2507
2541
|
if (objLength != othLength && !isPartial) {
|
|
2508
2542
|
return false;
|
|
2509
2543
|
}
|
|
2510
|
-
var
|
|
2511
|
-
while (
|
|
2512
|
-
var key = objProps[
|
|
2544
|
+
var index = objLength;
|
|
2545
|
+
while (index--) {
|
|
2546
|
+
var key = objProps[index];
|
|
2513
2547
|
if (!(isPartial ? key in other : hasOwnProperty$2.call(other, key))) {
|
|
2514
2548
|
return false;
|
|
2515
2549
|
}
|
|
@@ -2523,8 +2557,8 @@ function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
|
|
2523
2557
|
stack.set(object, other);
|
|
2524
2558
|
stack.set(other, object);
|
|
2525
2559
|
var skipCtor = isPartial;
|
|
2526
|
-
while (++
|
|
2527
|
-
key = objProps[
|
|
2560
|
+
while (++index < objLength) {
|
|
2561
|
+
key = objProps[index];
|
|
2528
2562
|
var objValue = object[key], othValue = other[key];
|
|
2529
2563
|
if (customizer) {
|
|
2530
2564
|
var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
|
|
@@ -2590,19 +2624,19 @@ function baseIsEqual(value, other, bitmask, customizer, stack) {
|
|
|
2590
2624
|
}
|
|
2591
2625
|
var COMPARE_PARTIAL_FLAG$1 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
|
|
2592
2626
|
function baseIsMatch(object, source, matchData, customizer) {
|
|
2593
|
-
var
|
|
2627
|
+
var index = matchData.length, length = index, noCustomizer = !customizer;
|
|
2594
2628
|
if (object == null) {
|
|
2595
2629
|
return !length;
|
|
2596
2630
|
}
|
|
2597
2631
|
object = Object(object);
|
|
2598
|
-
while (
|
|
2599
|
-
var data = matchData[
|
|
2632
|
+
while (index--) {
|
|
2633
|
+
var data = matchData[index];
|
|
2600
2634
|
if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) {
|
|
2601
2635
|
return false;
|
|
2602
2636
|
}
|
|
2603
2637
|
}
|
|
2604
|
-
while (++
|
|
2605
|
-
data = matchData[
|
|
2638
|
+
while (++index < length) {
|
|
2639
|
+
data = matchData[index];
|
|
2606
2640
|
var key = data[0], objValue = object[key], srcValue = data[1];
|
|
2607
2641
|
if (noCustomizer && data[2]) {
|
|
2608
2642
|
if (objValue === void 0 && !(key in object)) {
|
|
@@ -2653,15 +2687,15 @@ function baseHasIn(object, key) {
|
|
|
2653
2687
|
}
|
|
2654
2688
|
function hasPath(object, path, hasFunc) {
|
|
2655
2689
|
path = castPath(path, object);
|
|
2656
|
-
var
|
|
2657
|
-
while (++
|
|
2658
|
-
var key = toKey(path[
|
|
2690
|
+
var index = -1, length = path.length, result = false;
|
|
2691
|
+
while (++index < length) {
|
|
2692
|
+
var key = toKey(path[index]);
|
|
2659
2693
|
if (!(result = object != null && hasFunc(object, key))) {
|
|
2660
2694
|
break;
|
|
2661
2695
|
}
|
|
2662
2696
|
object = object[key];
|
|
2663
2697
|
}
|
|
2664
|
-
if (result || ++
|
|
2698
|
+
if (result || ++index != length) {
|
|
2665
2699
|
return result;
|
|
2666
2700
|
}
|
|
2667
2701
|
length = object == null ? 0 : object.length;
|
|
@@ -2707,9 +2741,9 @@ function baseIteratee(value) {
|
|
|
2707
2741
|
}
|
|
2708
2742
|
function createBaseFor(fromRight) {
|
|
2709
2743
|
return function(object, iteratee, keysFunc) {
|
|
2710
|
-
var
|
|
2744
|
+
var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
|
|
2711
2745
|
while (length--) {
|
|
2712
|
-
var key = props[fromRight ? length : ++
|
|
2746
|
+
var key = props[fromRight ? length : ++index];
|
|
2713
2747
|
if (iteratee(iterable[key], key, iterable) === false) {
|
|
2714
2748
|
break;
|
|
2715
2749
|
}
|
|
@@ -2730,9 +2764,9 @@ function createBaseEach(eachFunc, fromRight) {
|
|
|
2730
2764
|
if (!isArrayLike(collection)) {
|
|
2731
2765
|
return eachFunc(collection, iteratee);
|
|
2732
2766
|
}
|
|
2733
|
-
var length = collection.length,
|
|
2734
|
-
while (fromRight ?
|
|
2735
|
-
if (iteratee(iterable[
|
|
2767
|
+
var length = collection.length, index = fromRight ? length : -1, iterable = Object(collection);
|
|
2768
|
+
while (fromRight ? index-- : ++index < length) {
|
|
2769
|
+
if (iteratee(iterable[index], index, iterable) === false) {
|
|
2736
2770
|
break;
|
|
2737
2771
|
}
|
|
2738
2772
|
}
|
|
@@ -2745,9 +2779,9 @@ function isArrayLikeObject(value) {
|
|
|
2745
2779
|
return isObjectLike(value) && isArrayLike(value);
|
|
2746
2780
|
}
|
|
2747
2781
|
function arrayIncludesWith(array, value, comparator2) {
|
|
2748
|
-
var
|
|
2749
|
-
while (++
|
|
2750
|
-
if (comparator2(value, array[
|
|
2782
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
2783
|
+
while (++index < length) {
|
|
2784
|
+
if (comparator2(value, array[index])) {
|
|
2751
2785
|
return true;
|
|
2752
2786
|
}
|
|
2753
2787
|
}
|
|
@@ -2755,7 +2789,7 @@ function arrayIncludesWith(array, value, comparator2) {
|
|
|
2755
2789
|
}
|
|
2756
2790
|
var LARGE_ARRAY_SIZE$1 = 200;
|
|
2757
2791
|
function baseDifference(array, values2, iteratee, comparator2) {
|
|
2758
|
-
var
|
|
2792
|
+
var index = -1, includes = arrayIncludes, isCommon = true, length = array.length, result = [], valuesLength = values2.length;
|
|
2759
2793
|
if (!length) {
|
|
2760
2794
|
return result;
|
|
2761
2795
|
}
|
|
@@ -2771,8 +2805,8 @@ function baseDifference(array, values2, iteratee, comparator2) {
|
|
|
2771
2805
|
values2 = new SetCache(values2);
|
|
2772
2806
|
}
|
|
2773
2807
|
outer:
|
|
2774
|
-
while (++
|
|
2775
|
-
var value = array[
|
|
2808
|
+
while (++index < length) {
|
|
2809
|
+
var value = array[index], computed = iteratee == null ? value : iteratee(value);
|
|
2776
2810
|
value = comparator2 || value !== 0 ? value : 0;
|
|
2777
2811
|
if (isCommon && computed === computed) {
|
|
2778
2812
|
var valuesIndex = valuesLength;
|
|
@@ -2793,9 +2827,9 @@ var difference = baseRest(function(array, values2) {
|
|
|
2793
2827
|
});
|
|
2794
2828
|
const difference$1 = difference;
|
|
2795
2829
|
function arrayEvery(array, predicate) {
|
|
2796
|
-
var
|
|
2797
|
-
while (++
|
|
2798
|
-
if (!predicate(array[
|
|
2830
|
+
var index = -1, length = array == null ? 0 : array.length;
|
|
2831
|
+
while (++index < length) {
|
|
2832
|
+
if (!predicate(array[index], index, array)) {
|
|
2799
2833
|
return false;
|
|
2800
2834
|
}
|
|
2801
2835
|
}
|
|
@@ -2803,8 +2837,8 @@ function arrayEvery(array, predicate) {
|
|
|
2803
2837
|
}
|
|
2804
2838
|
function baseEvery(collection, predicate) {
|
|
2805
2839
|
var result = true;
|
|
2806
|
-
baseEach$1(collection, function(value,
|
|
2807
|
-
result = !!predicate(value,
|
|
2840
|
+
baseEach$1(collection, function(value, index, collection2) {
|
|
2841
|
+
result = !!predicate(value, index, collection2);
|
|
2808
2842
|
return result;
|
|
2809
2843
|
});
|
|
2810
2844
|
return result;
|
|
@@ -2826,7 +2860,7 @@ var createSet = !(Set$2 && 1 / setToArray(new Set$2([, -0]))[1] == INFINITY) ? n
|
|
|
2826
2860
|
const createSet$1 = createSet;
|
|
2827
2861
|
var LARGE_ARRAY_SIZE = 200;
|
|
2828
2862
|
function baseUniq(array, iteratee, comparator2) {
|
|
2829
|
-
var
|
|
2863
|
+
var index = -1, includes = arrayIncludes, length = array.length, isCommon = true, result = [], seen = result;
|
|
2830
2864
|
if (comparator2) {
|
|
2831
2865
|
isCommon = false;
|
|
2832
2866
|
includes = arrayIncludesWith;
|
|
@@ -2842,8 +2876,8 @@ function baseUniq(array, iteratee, comparator2) {
|
|
|
2842
2876
|
seen = iteratee ? [] : result;
|
|
2843
2877
|
}
|
|
2844
2878
|
outer:
|
|
2845
|
-
while (++
|
|
2846
|
-
var value = array[
|
|
2879
|
+
while (++index < length) {
|
|
2880
|
+
var value = array[index], computed = iteratee ? iteratee(value) : value;
|
|
2847
2881
|
value = comparator2 || value !== 0 ? value : 0;
|
|
2848
2882
|
if (isCommon && computed === computed) {
|
|
2849
2883
|
var seenIndex = seen.length;
|
|
@@ -3352,12 +3386,12 @@ function findCandidate(tree, a, b, c, d, maxDist, segTree) {
|
|
|
3352
3386
|
var node = tree.data;
|
|
3353
3387
|
while (node) {
|
|
3354
3388
|
for (var i = 0; i < node.children.length; i++) {
|
|
3355
|
-
var
|
|
3356
|
-
var dist = node.leaf ? sqSegDist(
|
|
3389
|
+
var child = node.children[i];
|
|
3390
|
+
var dist = node.leaf ? sqSegDist(child, b, c) : sqSegBoxDist(b, c, child);
|
|
3357
3391
|
if (dist > maxDist)
|
|
3358
3392
|
continue;
|
|
3359
3393
|
queue.push({
|
|
3360
|
-
node:
|
|
3394
|
+
node: child,
|
|
3361
3395
|
dist
|
|
3362
3396
|
});
|
|
3363
3397
|
}
|
|
@@ -5788,10 +5822,10 @@ class ZodObject extends ZodType {
|
|
|
5788
5822
|
// }) as any;
|
|
5789
5823
|
// return merged;
|
|
5790
5824
|
// }
|
|
5791
|
-
catchall(
|
|
5825
|
+
catchall(index) {
|
|
5792
5826
|
return new ZodObject({
|
|
5793
5827
|
...this._def,
|
|
5794
|
-
catchall:
|
|
5828
|
+
catchall: index
|
|
5795
5829
|
});
|
|
5796
5830
|
}
|
|
5797
5831
|
pick(mask2) {
|
|
@@ -6099,9 +6133,9 @@ function mergeValues(a, b) {
|
|
|
6099
6133
|
return { valid: false };
|
|
6100
6134
|
}
|
|
6101
6135
|
const newArray = [];
|
|
6102
|
-
for (let
|
|
6103
|
-
const itemA = a[
|
|
6104
|
-
const itemB = b[
|
|
6136
|
+
for (let index = 0; index < a.length; index++) {
|
|
6137
|
+
const itemA = a[index];
|
|
6138
|
+
const itemB = b[index];
|
|
6105
6139
|
const sharedValue = mergeValues(itemA, itemB);
|
|
6106
6140
|
if (!sharedValue.valid) {
|
|
6107
6141
|
return { valid: false };
|
|
@@ -6300,10 +6334,10 @@ class ZodMap extends ZodType {
|
|
|
6300
6334
|
}
|
|
6301
6335
|
const keyType = this._def.keyType;
|
|
6302
6336
|
const valueType = this._def.valueType;
|
|
6303
|
-
const pairs = [...ctx.data.entries()].map(([key, value],
|
|
6337
|
+
const pairs = [...ctx.data.entries()].map(([key, value], index) => {
|
|
6304
6338
|
return {
|
|
6305
|
-
key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, [
|
|
6306
|
-
value: valueType._parse(new ParseInputLazyPath(ctx, value, ctx.path, [
|
|
6339
|
+
key: keyType._parse(new ParseInputLazyPath(ctx, key, ctx.path, [index, "key"])),
|
|
6340
|
+
value: valueType._parse(new ParseInputLazyPath(ctx, value, ctx.path, [index, "value"]))
|
|
6307
6341
|
};
|
|
6308
6342
|
});
|
|
6309
6343
|
if (ctx.common.async) {
|
|
@@ -7306,7 +7340,7 @@ function nodeTransform(node, predicate, transform2, transformedPaths, currPath =
|
|
|
7306
7340
|
if ("children" in node) {
|
|
7307
7341
|
return {
|
|
7308
7342
|
...node,
|
|
7309
|
-
children: node.children.map((
|
|
7343
|
+
children: node.children.map((child) => nodeTransform(child, predicate, transform2, transformedPaths, newPath.concat([child.name])))
|
|
7310
7344
|
};
|
|
7311
7345
|
}
|
|
7312
7346
|
return node;
|
|
@@ -7668,9 +7702,9 @@ function upgradeFrom1_0_1(config) {
|
|
|
7668
7702
|
Object.keys(((_a = newConfig == null ? void 0 : newConfig.coordinationSpace) == null ? void 0 : _a.spatialRasterLayers) || {}).forEach((key) => {
|
|
7669
7703
|
var _a2, _b;
|
|
7670
7704
|
if ((_b = (_a2 = newConfig.coordinationSpace) == null ? void 0 : _a2.spatialRasterLayers) == null ? void 0 : _b[key]) {
|
|
7671
|
-
newConfig.coordinationSpace.spatialRasterLayers[key].forEach((layer,
|
|
7705
|
+
newConfig.coordinationSpace.spatialRasterLayers[key].forEach((layer, index) => {
|
|
7672
7706
|
if (newConfig.coordinationSpace) {
|
|
7673
|
-
newConfig.coordinationSpace.spatialRasterLayers[key][
|
|
7707
|
+
newConfig.coordinationSpace.spatialRasterLayers[key][index].type = ["bitmask", "raster"].includes(layer.type) ? layer.type : "raster";
|
|
7674
7708
|
}
|
|
7675
7709
|
});
|
|
7676
7710
|
}
|
|
@@ -8019,11 +8053,11 @@ var debug_1 = debug$1;
|
|
|
8019
8053
|
const t2 = exports2.t = {};
|
|
8020
8054
|
let R = 0;
|
|
8021
8055
|
const createToken = (name, value, isGlobal) => {
|
|
8022
|
-
const
|
|
8023
|
-
debug2(name,
|
|
8024
|
-
t2[name] =
|
|
8025
|
-
src[
|
|
8026
|
-
re2[
|
|
8056
|
+
const index = R++;
|
|
8057
|
+
debug2(name, index, value);
|
|
8058
|
+
t2[name] = index;
|
|
8059
|
+
src[index] = value;
|
|
8060
|
+
re2[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
8027
8061
|
};
|
|
8028
8062
|
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
8029
8063
|
createToken("NUMERICIDENTIFIERLOOSE", "[0-9]+");
|
|
@@ -11840,10 +11874,10 @@ var json2csv_umd = { exports: {} };
|
|
|
11840
11874
|
this._maxListeners = n;
|
|
11841
11875
|
return this;
|
|
11842
11876
|
};
|
|
11843
|
-
function $getMaxListeners(
|
|
11844
|
-
if (
|
|
11877
|
+
function $getMaxListeners(that) {
|
|
11878
|
+
if (that._maxListeners === void 0)
|
|
11845
11879
|
return EventEmitter.defaultMaxListeners;
|
|
11846
|
-
return
|
|
11880
|
+
return that._maxListeners;
|
|
11847
11881
|
}
|
|
11848
11882
|
EventEmitter.prototype.getMaxListeners = function getMaxListeners() {
|
|
11849
11883
|
return $getMaxListeners(this);
|
|
@@ -12159,8 +12193,8 @@ var json2csv_umd = { exports: {} };
|
|
|
12159
12193
|
EventEmitter.prototype.eventNames = function eventNames() {
|
|
12160
12194
|
return this._eventsCount > 0 ? Reflect.ownKeys(this._events) : [];
|
|
12161
12195
|
};
|
|
12162
|
-
function spliceOne(list,
|
|
12163
|
-
for (var i =
|
|
12196
|
+
function spliceOne(list, index) {
|
|
12197
|
+
for (var i = index, k = i + 1, n = list.length; k < n; i += 1, k += 1)
|
|
12164
12198
|
list[i] = list[k];
|
|
12165
12199
|
list.pop();
|
|
12166
12200
|
}
|
|
@@ -12347,20 +12381,20 @@ var json2csv_umd = { exports: {} };
|
|
|
12347
12381
|
function kMaxLength() {
|
|
12348
12382
|
return Buffer2.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
|
|
12349
12383
|
}
|
|
12350
|
-
function createBuffer(
|
|
12384
|
+
function createBuffer(that, length) {
|
|
12351
12385
|
if (kMaxLength() < length) {
|
|
12352
12386
|
throw new RangeError("Invalid typed array length");
|
|
12353
12387
|
}
|
|
12354
12388
|
if (Buffer2.TYPED_ARRAY_SUPPORT) {
|
|
12355
|
-
|
|
12356
|
-
|
|
12389
|
+
that = new Uint8Array(length);
|
|
12390
|
+
that.__proto__ = Buffer2.prototype;
|
|
12357
12391
|
} else {
|
|
12358
|
-
if (
|
|
12359
|
-
|
|
12392
|
+
if (that === null) {
|
|
12393
|
+
that = new Buffer2(length);
|
|
12360
12394
|
}
|
|
12361
|
-
|
|
12395
|
+
that.length = length;
|
|
12362
12396
|
}
|
|
12363
|
-
return
|
|
12397
|
+
return that;
|
|
12364
12398
|
}
|
|
12365
12399
|
function Buffer2(arg, encodingOrOffset, length) {
|
|
12366
12400
|
if (!Buffer2.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer2)) {
|
|
@@ -12381,17 +12415,17 @@ var json2csv_umd = { exports: {} };
|
|
|
12381
12415
|
arr.__proto__ = Buffer2.prototype;
|
|
12382
12416
|
return arr;
|
|
12383
12417
|
};
|
|
12384
|
-
function from(
|
|
12418
|
+
function from(that, value, encodingOrOffset, length) {
|
|
12385
12419
|
if (typeof value === "number") {
|
|
12386
12420
|
throw new TypeError('"value" argument must not be a number');
|
|
12387
12421
|
}
|
|
12388
12422
|
if (typeof ArrayBuffer !== "undefined" && value instanceof ArrayBuffer) {
|
|
12389
|
-
return fromArrayBuffer(
|
|
12423
|
+
return fromArrayBuffer(that, value, encodingOrOffset, length);
|
|
12390
12424
|
}
|
|
12391
12425
|
if (typeof value === "string") {
|
|
12392
|
-
return fromString(
|
|
12426
|
+
return fromString(that, value, encodingOrOffset);
|
|
12393
12427
|
}
|
|
12394
|
-
return fromObject(
|
|
12428
|
+
return fromObject(that, value);
|
|
12395
12429
|
}
|
|
12396
12430
|
Buffer2.from = function(value, encodingOrOffset, length) {
|
|
12397
12431
|
return from(null, value, encodingOrOffset, length);
|
|
@@ -12407,28 +12441,28 @@ var json2csv_umd = { exports: {} };
|
|
|
12407
12441
|
throw new RangeError('"size" argument must not be negative');
|
|
12408
12442
|
}
|
|
12409
12443
|
}
|
|
12410
|
-
function alloc(
|
|
12444
|
+
function alloc(that, size2, fill, encoding) {
|
|
12411
12445
|
assertSize(size2);
|
|
12412
12446
|
if (size2 <= 0) {
|
|
12413
|
-
return createBuffer(
|
|
12447
|
+
return createBuffer(that, size2);
|
|
12414
12448
|
}
|
|
12415
12449
|
if (fill !== void 0) {
|
|
12416
|
-
return typeof encoding === "string" ? createBuffer(
|
|
12450
|
+
return typeof encoding === "string" ? createBuffer(that, size2).fill(fill, encoding) : createBuffer(that, size2).fill(fill);
|
|
12417
12451
|
}
|
|
12418
|
-
return createBuffer(
|
|
12452
|
+
return createBuffer(that, size2);
|
|
12419
12453
|
}
|
|
12420
12454
|
Buffer2.alloc = function(size2, fill, encoding) {
|
|
12421
12455
|
return alloc(null, size2, fill, encoding);
|
|
12422
12456
|
};
|
|
12423
|
-
function allocUnsafe2(
|
|
12457
|
+
function allocUnsafe2(that, size2) {
|
|
12424
12458
|
assertSize(size2);
|
|
12425
|
-
|
|
12459
|
+
that = createBuffer(that, size2 < 0 ? 0 : checked(size2) | 0);
|
|
12426
12460
|
if (!Buffer2.TYPED_ARRAY_SUPPORT) {
|
|
12427
12461
|
for (var i = 0; i < size2; ++i) {
|
|
12428
|
-
|
|
12462
|
+
that[i] = 0;
|
|
12429
12463
|
}
|
|
12430
12464
|
}
|
|
12431
|
-
return
|
|
12465
|
+
return that;
|
|
12432
12466
|
}
|
|
12433
12467
|
Buffer2.allocUnsafe = function(size2) {
|
|
12434
12468
|
return allocUnsafe2(null, size2);
|
|
@@ -12436,7 +12470,7 @@ var json2csv_umd = { exports: {} };
|
|
|
12436
12470
|
Buffer2.allocUnsafeSlow = function(size2) {
|
|
12437
12471
|
return allocUnsafe2(null, size2);
|
|
12438
12472
|
};
|
|
12439
|
-
function fromString(
|
|
12473
|
+
function fromString(that, string, encoding) {
|
|
12440
12474
|
if (typeof encoding !== "string" || encoding === "") {
|
|
12441
12475
|
encoding = "utf8";
|
|
12442
12476
|
}
|
|
@@ -12444,22 +12478,22 @@ var json2csv_umd = { exports: {} };
|
|
|
12444
12478
|
throw new TypeError('"encoding" must be a valid string encoding');
|
|
12445
12479
|
}
|
|
12446
12480
|
var length = byteLength(string, encoding) | 0;
|
|
12447
|
-
|
|
12448
|
-
var actual =
|
|
12481
|
+
that = createBuffer(that, length);
|
|
12482
|
+
var actual = that.write(string, encoding);
|
|
12449
12483
|
if (actual !== length) {
|
|
12450
|
-
|
|
12484
|
+
that = that.slice(0, actual);
|
|
12451
12485
|
}
|
|
12452
|
-
return
|
|
12486
|
+
return that;
|
|
12453
12487
|
}
|
|
12454
|
-
function fromArrayLike(
|
|
12488
|
+
function fromArrayLike(that, array) {
|
|
12455
12489
|
var length = array.length < 0 ? 0 : checked(array.length) | 0;
|
|
12456
|
-
|
|
12490
|
+
that = createBuffer(that, length);
|
|
12457
12491
|
for (var i = 0; i < length; i += 1) {
|
|
12458
|
-
|
|
12492
|
+
that[i] = array[i] & 255;
|
|
12459
12493
|
}
|
|
12460
|
-
return
|
|
12494
|
+
return that;
|
|
12461
12495
|
}
|
|
12462
|
-
function fromArrayBuffer(
|
|
12496
|
+
function fromArrayBuffer(that, array, byteOffset, length) {
|
|
12463
12497
|
array.byteLength;
|
|
12464
12498
|
if (byteOffset < 0 || array.byteLength < byteOffset) {
|
|
12465
12499
|
throw new RangeError("'offset' is out of bounds");
|
|
@@ -12475,32 +12509,32 @@ var json2csv_umd = { exports: {} };
|
|
|
12475
12509
|
array = new Uint8Array(array, byteOffset, length);
|
|
12476
12510
|
}
|
|
12477
12511
|
if (Buffer2.TYPED_ARRAY_SUPPORT) {
|
|
12478
|
-
|
|
12479
|
-
|
|
12512
|
+
that = array;
|
|
12513
|
+
that.__proto__ = Buffer2.prototype;
|
|
12480
12514
|
} else {
|
|
12481
|
-
|
|
12515
|
+
that = fromArrayLike(that, array);
|
|
12482
12516
|
}
|
|
12483
|
-
return
|
|
12517
|
+
return that;
|
|
12484
12518
|
}
|
|
12485
|
-
function fromObject(
|
|
12519
|
+
function fromObject(that, obj) {
|
|
12486
12520
|
if (internalIsBuffer(obj)) {
|
|
12487
12521
|
var len = checked(obj.length) | 0;
|
|
12488
|
-
|
|
12489
|
-
if (
|
|
12490
|
-
return
|
|
12522
|
+
that = createBuffer(that, len);
|
|
12523
|
+
if (that.length === 0) {
|
|
12524
|
+
return that;
|
|
12491
12525
|
}
|
|
12492
|
-
obj.copy(
|
|
12493
|
-
return
|
|
12526
|
+
obj.copy(that, 0, 0, len);
|
|
12527
|
+
return that;
|
|
12494
12528
|
}
|
|
12495
12529
|
if (obj) {
|
|
12496
12530
|
if (typeof ArrayBuffer !== "undefined" && obj.buffer instanceof ArrayBuffer || "length" in obj) {
|
|
12497
12531
|
if (typeof obj.length !== "number" || isnan(obj.length)) {
|
|
12498
|
-
return createBuffer(
|
|
12532
|
+
return createBuffer(that, 0);
|
|
12499
12533
|
}
|
|
12500
|
-
return fromArrayLike(
|
|
12534
|
+
return fromArrayLike(that, obj);
|
|
12501
12535
|
}
|
|
12502
12536
|
if (obj.type === "Buffer" && isArray2(obj.data)) {
|
|
12503
|
-
return fromArrayLike(
|
|
12537
|
+
return fromArrayLike(that, obj.data);
|
|
12504
12538
|
}
|
|
12505
12539
|
}
|
|
12506
12540
|
throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.");
|
|
@@ -15942,10 +15976,10 @@ var json2csv_umd = { exports: {} };
|
|
|
15942
15976
|
var Map2 = getNative2(root2, "Map"), nativeCreate2 = getNative2(Object, "create");
|
|
15943
15977
|
var symbolProto2 = Symbol$12 ? Symbol$12.prototype : void 0, symbolToString2 = symbolProto2 ? symbolProto2.toString : void 0;
|
|
15944
15978
|
function Hash2(entries) {
|
|
15945
|
-
var
|
|
15979
|
+
var index = -1, length = entries ? entries.length : 0;
|
|
15946
15980
|
this.clear();
|
|
15947
|
-
while (++
|
|
15948
|
-
var entry = entries[
|
|
15981
|
+
while (++index < length) {
|
|
15982
|
+
var entry = entries[index];
|
|
15949
15983
|
this.set(entry[0], entry[1]);
|
|
15950
15984
|
}
|
|
15951
15985
|
}
|
|
@@ -15978,10 +16012,10 @@ var json2csv_umd = { exports: {} };
|
|
|
15978
16012
|
Hash2.prototype.has = hashHas2;
|
|
15979
16013
|
Hash2.prototype.set = hashSet2;
|
|
15980
16014
|
function ListCache2(entries) {
|
|
15981
|
-
var
|
|
16015
|
+
var index = -1, length = entries ? entries.length : 0;
|
|
15982
16016
|
this.clear();
|
|
15983
|
-
while (++
|
|
15984
|
-
var entry = entries[
|
|
16017
|
+
while (++index < length) {
|
|
16018
|
+
var entry = entries[index];
|
|
15985
16019
|
this.set(entry[0], entry[1]);
|
|
15986
16020
|
}
|
|
15987
16021
|
}
|
|
@@ -15989,31 +16023,31 @@ var json2csv_umd = { exports: {} };
|
|
|
15989
16023
|
this.__data__ = [];
|
|
15990
16024
|
}
|
|
15991
16025
|
function listCacheDelete2(key) {
|
|
15992
|
-
var data = this.__data__,
|
|
15993
|
-
if (
|
|
16026
|
+
var data = this.__data__, index = assocIndexOf2(data, key);
|
|
16027
|
+
if (index < 0) {
|
|
15994
16028
|
return false;
|
|
15995
16029
|
}
|
|
15996
16030
|
var lastIndex = data.length - 1;
|
|
15997
|
-
if (
|
|
16031
|
+
if (index == lastIndex) {
|
|
15998
16032
|
data.pop();
|
|
15999
16033
|
} else {
|
|
16000
|
-
splice2.call(data,
|
|
16034
|
+
splice2.call(data, index, 1);
|
|
16001
16035
|
}
|
|
16002
16036
|
return true;
|
|
16003
16037
|
}
|
|
16004
16038
|
function listCacheGet2(key) {
|
|
16005
|
-
var data = this.__data__,
|
|
16006
|
-
return
|
|
16039
|
+
var data = this.__data__, index = assocIndexOf2(data, key);
|
|
16040
|
+
return index < 0 ? void 0 : data[index][1];
|
|
16007
16041
|
}
|
|
16008
16042
|
function listCacheHas2(key) {
|
|
16009
16043
|
return assocIndexOf2(this.__data__, key) > -1;
|
|
16010
16044
|
}
|
|
16011
16045
|
function listCacheSet2(key, value) {
|
|
16012
|
-
var data = this.__data__,
|
|
16013
|
-
if (
|
|
16046
|
+
var data = this.__data__, index = assocIndexOf2(data, key);
|
|
16047
|
+
if (index < 0) {
|
|
16014
16048
|
data.push([key, value]);
|
|
16015
16049
|
} else {
|
|
16016
|
-
data[
|
|
16050
|
+
data[index][1] = value;
|
|
16017
16051
|
}
|
|
16018
16052
|
return this;
|
|
16019
16053
|
}
|
|
@@ -16023,10 +16057,10 @@ var json2csv_umd = { exports: {} };
|
|
|
16023
16057
|
ListCache2.prototype.has = listCacheHas2;
|
|
16024
16058
|
ListCache2.prototype.set = listCacheSet2;
|
|
16025
16059
|
function MapCache2(entries) {
|
|
16026
|
-
var
|
|
16060
|
+
var index = -1, length = entries ? entries.length : 0;
|
|
16027
16061
|
this.clear();
|
|
16028
|
-
while (++
|
|
16029
|
-
var entry = entries[
|
|
16062
|
+
while (++index < length) {
|
|
16063
|
+
var entry = entries[index];
|
|
16030
16064
|
this.set(entry[0], entry[1]);
|
|
16031
16065
|
}
|
|
16032
16066
|
}
|
|
@@ -16066,11 +16100,11 @@ var json2csv_umd = { exports: {} };
|
|
|
16066
16100
|
}
|
|
16067
16101
|
function baseGet2(object, path) {
|
|
16068
16102
|
path = isKey2(path, object) ? [path] : castPath2(path);
|
|
16069
|
-
var
|
|
16070
|
-
while (object != null &&
|
|
16071
|
-
object = object[toKey2(path[
|
|
16103
|
+
var index = 0, length = path.length;
|
|
16104
|
+
while (object != null && index < length) {
|
|
16105
|
+
object = object[toKey2(path[index++])];
|
|
16072
16106
|
}
|
|
16073
|
-
return
|
|
16107
|
+
return index && index == length ? object : void 0;
|
|
16074
16108
|
}
|
|
16075
16109
|
function baseIsNative2(value) {
|
|
16076
16110
|
if (!isObject$1(value) || isMasked2(value)) {
|
|
@@ -17239,8 +17273,8 @@ var json2csv_umd = { exports: {} };
|
|
|
17239
17273
|
unwindablePaths.push(newPath);
|
|
17240
17274
|
unwindablePaths = unwindablePaths.concat(value.map(function(arrObj) {
|
|
17241
17275
|
return getUnwindablePaths(arrObj, newPath);
|
|
17242
|
-
}).reduce(flattenReducer$3, []).filter(function(item,
|
|
17243
|
-
return arr.indexOf(item) !==
|
|
17276
|
+
}).reduce(flattenReducer$3, []).filter(function(item, index, arr) {
|
|
17277
|
+
return arr.indexOf(item) !== index;
|
|
17244
17278
|
}));
|
|
17245
17279
|
}
|
|
17246
17280
|
return unwindablePaths;
|
|
@@ -17257,8 +17291,8 @@ var json2csv_umd = { exports: {} };
|
|
|
17257
17291
|
if (!unwindArray.length) {
|
|
17258
17292
|
return unsetProp$1(row, unwindPath);
|
|
17259
17293
|
}
|
|
17260
|
-
return unwindArray.map(function(unwindRow,
|
|
17261
|
-
var clonedRow = blankOut &&
|
|
17294
|
+
return unwindArray.map(function(unwindRow, index) {
|
|
17295
|
+
var clonedRow = blankOut && index > 0 ? {} : row;
|
|
17262
17296
|
return setProp$1(clonedRow, unwindPath, unwindRow);
|
|
17263
17297
|
});
|
|
17264
17298
|
}).reduce(flattenReducer$3, []);
|
|
@@ -18589,8 +18623,8 @@ function hexToRgb(color) {
|
|
|
18589
18623
|
return n + n;
|
|
18590
18624
|
});
|
|
18591
18625
|
}
|
|
18592
|
-
return colors ? "rgb".concat(colors.length === 4 ? "a" : "", "(").concat(colors.map(function(n,
|
|
18593
|
-
return
|
|
18626
|
+
return colors ? "rgb".concat(colors.length === 4 ? "a" : "", "(").concat(colors.map(function(n, index) {
|
|
18627
|
+
return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1e3) / 1e3;
|
|
18594
18628
|
}).join(", "), ")") : "";
|
|
18595
18629
|
}
|
|
18596
18630
|
function hslToRgb(color) {
|
|
@@ -19373,15 +19407,15 @@ function createTheme() {
|
|
|
19373
19407
|
var depth = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1;
|
|
19374
19408
|
var key;
|
|
19375
19409
|
for (key in node) {
|
|
19376
|
-
var
|
|
19410
|
+
var child = node[key];
|
|
19377
19411
|
if (depth === 1) {
|
|
19378
|
-
if (key.indexOf("Mui") === 0 &&
|
|
19379
|
-
traverse2(
|
|
19412
|
+
if (key.indexOf("Mui") === 0 && child) {
|
|
19413
|
+
traverse2(child, key, depth + 1);
|
|
19380
19414
|
}
|
|
19381
|
-
} else if (pseudoClasses2.indexOf(key) !== -1 && Object.keys(
|
|
19415
|
+
} else if (pseudoClasses2.indexOf(key) !== -1 && Object.keys(child).length > 0) {
|
|
19382
19416
|
{
|
|
19383
19417
|
console.error(["Material-UI: The `".concat(parentKey, "` component increases ") + "the CSS specificity of the `".concat(key, "` internal state."), "You can not override it like this: ", JSON.stringify(node, null, 2), "", "Instead, you need to use the $ruleName syntax:", JSON.stringify({
|
|
19384
|
-
root: _defineProperty({}, "&$".concat(key),
|
|
19418
|
+
root: _defineProperty({}, "&$".concat(key), child)
|
|
19385
19419
|
}, null, 2), "", "https://mui.com/r/pseudo-classes-guide"].join("\n"));
|
|
19386
19420
|
}
|
|
19387
19421
|
node[key] = {};
|
|
@@ -19590,7 +19624,7 @@ function getWhitespaceSymbols(options) {
|
|
|
19590
19624
|
}
|
|
19591
19625
|
function indentStr(str, indent) {
|
|
19592
19626
|
var result = "";
|
|
19593
|
-
for (var
|
|
19627
|
+
for (var index = 0; index < indent; index++) {
|
|
19594
19628
|
result += " ";
|
|
19595
19629
|
}
|
|
19596
19630
|
return result + str;
|
|
@@ -19612,8 +19646,8 @@ function toCss(selector, style, options) {
|
|
|
19612
19646
|
indent++;
|
|
19613
19647
|
if (fallbacks) {
|
|
19614
19648
|
if (Array.isArray(fallbacks)) {
|
|
19615
|
-
for (var
|
|
19616
|
-
var fallback = fallbacks[
|
|
19649
|
+
for (var index = 0; index < fallbacks.length; index++) {
|
|
19650
|
+
var fallback = fallbacks[index];
|
|
19617
19651
|
for (var prop in fallback) {
|
|
19618
19652
|
var value = fallback[prop];
|
|
19619
19653
|
if (value != null) {
|
|
@@ -19980,9 +20014,9 @@ var FontFaceRule = /* @__PURE__ */ function() {
|
|
|
19980
20014
|
var _getWhitespaceSymbols = getWhitespaceSymbols(options), linebreak = _getWhitespaceSymbols.linebreak;
|
|
19981
20015
|
if (Array.isArray(this.style)) {
|
|
19982
20016
|
var str = "";
|
|
19983
|
-
for (var
|
|
19984
|
-
str += toCss(this.at, this.style[
|
|
19985
|
-
if (this.style[
|
|
20017
|
+
for (var index = 0; index < this.style.length; index++) {
|
|
20018
|
+
str += toCss(this.at, this.style[index]);
|
|
20019
|
+
if (this.style[index + 1])
|
|
19986
20020
|
str += linebreak;
|
|
19987
20021
|
}
|
|
19988
20022
|
return str;
|
|
@@ -20029,9 +20063,9 @@ var SimpleRule = /* @__PURE__ */ function() {
|
|
|
20029
20063
|
_proto.toString = function toString2(options) {
|
|
20030
20064
|
if (Array.isArray(this.value)) {
|
|
20031
20065
|
var str = "";
|
|
20032
|
-
for (var
|
|
20033
|
-
str += this.key + " " + this.value[
|
|
20034
|
-
if (this.value[
|
|
20066
|
+
for (var index = 0; index < this.value.length; index++) {
|
|
20067
|
+
str += this.key + " " + this.value[index] + ";";
|
|
20068
|
+
if (this.value[index + 1])
|
|
20035
20069
|
str += "\n";
|
|
20036
20070
|
}
|
|
20037
20071
|
return str;
|
|
@@ -20099,8 +20133,8 @@ var RuleList = /* @__PURE__ */ function() {
|
|
|
20099
20133
|
if (!rule)
|
|
20100
20134
|
return null;
|
|
20101
20135
|
this.register(rule);
|
|
20102
|
-
var
|
|
20103
|
-
this.index.splice(
|
|
20136
|
+
var index = options.index === void 0 ? this.index.length : options.index;
|
|
20137
|
+
this.index.splice(index, 0, rule);
|
|
20104
20138
|
return rule;
|
|
20105
20139
|
};
|
|
20106
20140
|
_proto.replace = function replace(name, decl, ruleOptions) {
|
|
@@ -20166,8 +20200,8 @@ var RuleList = /* @__PURE__ */ function() {
|
|
|
20166
20200
|
if (name) {
|
|
20167
20201
|
this.updateOne(this.get(name), data, options);
|
|
20168
20202
|
} else {
|
|
20169
|
-
for (var
|
|
20170
|
-
this.updateOne(this.index[
|
|
20203
|
+
for (var index = 0; index < this.index.length; index++) {
|
|
20204
|
+
this.updateOne(this.index[index], data, options);
|
|
20171
20205
|
}
|
|
20172
20206
|
}
|
|
20173
20207
|
};
|
|
@@ -20205,8 +20239,8 @@ var RuleList = /* @__PURE__ */ function() {
|
|
|
20205
20239
|
var sheet = this.options.sheet;
|
|
20206
20240
|
var link = sheet ? sheet.options.link : false;
|
|
20207
20241
|
var _getWhitespaceSymbols = getWhitespaceSymbols(options), linebreak = _getWhitespaceSymbols.linebreak;
|
|
20208
|
-
for (var
|
|
20209
|
-
var rule = this.index[
|
|
20242
|
+
for (var index = 0; index < this.index.length; index++) {
|
|
20243
|
+
var rule = this.index[index];
|
|
20210
20244
|
var css2 = rule.toString(options);
|
|
20211
20245
|
if (!css2 && !link)
|
|
20212
20246
|
continue;
|
|
@@ -20447,15 +20481,15 @@ var SheetsRegistry = /* @__PURE__ */ function() {
|
|
|
20447
20481
|
var _proto = SheetsRegistry2.prototype;
|
|
20448
20482
|
_proto.add = function add(sheet) {
|
|
20449
20483
|
var registry = this.registry;
|
|
20450
|
-
var
|
|
20484
|
+
var index = sheet.options.index;
|
|
20451
20485
|
if (registry.indexOf(sheet) !== -1)
|
|
20452
20486
|
return;
|
|
20453
|
-
if (registry.length === 0 ||
|
|
20487
|
+
if (registry.length === 0 || index >= this.index) {
|
|
20454
20488
|
registry.push(sheet);
|
|
20455
20489
|
return;
|
|
20456
20490
|
}
|
|
20457
20491
|
for (var i = 0; i < registry.length; i++) {
|
|
20458
|
-
if (registry[i].options.index >
|
|
20492
|
+
if (registry[i].options.index > index) {
|
|
20459
20493
|
registry.splice(i, 0, sheet);
|
|
20460
20494
|
return;
|
|
20461
20495
|
}
|
|
@@ -20465,8 +20499,8 @@ var SheetsRegistry = /* @__PURE__ */ function() {
|
|
|
20465
20499
|
this.registry = [];
|
|
20466
20500
|
};
|
|
20467
20501
|
_proto.remove = function remove(sheet) {
|
|
20468
|
-
var
|
|
20469
|
-
this.registry.splice(
|
|
20502
|
+
var index = this.registry.indexOf(sheet);
|
|
20503
|
+
this.registry.splice(index, 1);
|
|
20470
20504
|
};
|
|
20471
20505
|
_proto.toString = function toString2(_temp) {
|
|
20472
20506
|
var _ref = _temp === void 0 ? {} : _temp, attached = _ref.attached, options = _objectWithoutPropertiesLoose(_ref, ["attached"]);
|
|
@@ -20663,10 +20697,10 @@ var getNonce = memoize(function() {
|
|
|
20663
20697
|
var node = document.querySelector('meta[property="csp-nonce"]');
|
|
20664
20698
|
return node ? node.getAttribute("content") : null;
|
|
20665
20699
|
});
|
|
20666
|
-
var _insertRule = function insertRule(container, rule,
|
|
20700
|
+
var _insertRule = function insertRule(container, rule, index) {
|
|
20667
20701
|
try {
|
|
20668
20702
|
if ("insertRule" in container) {
|
|
20669
|
-
container.insertRule(rule,
|
|
20703
|
+
container.insertRule(rule, index);
|
|
20670
20704
|
} else if ("appendRule" in container) {
|
|
20671
20705
|
container.appendRule(rule);
|
|
20672
20706
|
}
|
|
@@ -20674,14 +20708,14 @@ var _insertRule = function insertRule(container, rule, index2) {
|
|
|
20674
20708
|
warning(false, "[JSS] " + err.message);
|
|
20675
20709
|
return false;
|
|
20676
20710
|
}
|
|
20677
|
-
return container.cssRules[
|
|
20711
|
+
return container.cssRules[index];
|
|
20678
20712
|
};
|
|
20679
|
-
var getValidRuleInsertionIndex = function getValidRuleInsertionIndex2(container,
|
|
20713
|
+
var getValidRuleInsertionIndex = function getValidRuleInsertionIndex2(container, index) {
|
|
20680
20714
|
var maxIndex = container.cssRules.length;
|
|
20681
|
-
if (
|
|
20715
|
+
if (index === void 0 || index > maxIndex) {
|
|
20682
20716
|
return maxIndex;
|
|
20683
20717
|
}
|
|
20684
|
-
return
|
|
20718
|
+
return index;
|
|
20685
20719
|
};
|
|
20686
20720
|
var createStyle = function createStyle2() {
|
|
20687
20721
|
var el2 = document.createElement("style");
|
|
@@ -20699,11 +20733,11 @@ var DomRenderer = /* @__PURE__ */ function() {
|
|
|
20699
20733
|
if (sheet)
|
|
20700
20734
|
sheets.add(sheet);
|
|
20701
20735
|
this.sheet = sheet;
|
|
20702
|
-
var _ref = this.sheet ? this.sheet.options : {},
|
|
20736
|
+
var _ref = this.sheet ? this.sheet.options : {}, media = _ref.media, meta = _ref.meta, element = _ref.element;
|
|
20703
20737
|
this.element = element || createStyle();
|
|
20704
20738
|
this.element.setAttribute("data-jss", "");
|
|
20705
|
-
if (
|
|
20706
|
-
this.element.setAttribute("media",
|
|
20739
|
+
if (media)
|
|
20740
|
+
this.element.setAttribute("media", media);
|
|
20707
20741
|
if (meta)
|
|
20708
20742
|
this.element.setAttribute("data-meta", meta);
|
|
20709
20743
|
var nonce = getNonce();
|
|
@@ -20747,7 +20781,7 @@ var DomRenderer = /* @__PURE__ */ function() {
|
|
|
20747
20781
|
this.insertRule(rules.index[i], i, nativeParent);
|
|
20748
20782
|
}
|
|
20749
20783
|
};
|
|
20750
|
-
_proto.insertRule = function insertRule2(rule,
|
|
20784
|
+
_proto.insertRule = function insertRule2(rule, index, nativeParent) {
|
|
20751
20785
|
if (nativeParent === void 0) {
|
|
20752
20786
|
nativeParent = this.element.sheet;
|
|
20753
20787
|
}
|
|
@@ -20755,7 +20789,7 @@ var DomRenderer = /* @__PURE__ */ function() {
|
|
|
20755
20789
|
var parent = rule;
|
|
20756
20790
|
var latestNativeParent = nativeParent;
|
|
20757
20791
|
if (rule.type === "conditional" || rule.type === "keyframes") {
|
|
20758
|
-
var _insertionIndex = getValidRuleInsertionIndex(nativeParent,
|
|
20792
|
+
var _insertionIndex = getValidRuleInsertionIndex(nativeParent, index);
|
|
20759
20793
|
latestNativeParent = _insertRule(nativeParent, parent.toString({
|
|
20760
20794
|
children: false
|
|
20761
20795
|
}), _insertionIndex);
|
|
@@ -20770,7 +20804,7 @@ var DomRenderer = /* @__PURE__ */ function() {
|
|
|
20770
20804
|
var ruleStr = rule.toString();
|
|
20771
20805
|
if (!ruleStr)
|
|
20772
20806
|
return false;
|
|
20773
|
-
var insertionIndex = getValidRuleInsertionIndex(nativeParent,
|
|
20807
|
+
var insertionIndex = getValidRuleInsertionIndex(nativeParent, index);
|
|
20774
20808
|
var nativeRule = _insertRule(nativeParent, ruleStr, insertionIndex);
|
|
20775
20809
|
if (nativeRule === false) {
|
|
20776
20810
|
return false;
|
|
@@ -20779,31 +20813,31 @@ var DomRenderer = /* @__PURE__ */ function() {
|
|
|
20779
20813
|
this.refCssRule(rule, insertionIndex, nativeRule);
|
|
20780
20814
|
return nativeRule;
|
|
20781
20815
|
};
|
|
20782
|
-
_proto.refCssRule = function refCssRule(rule,
|
|
20816
|
+
_proto.refCssRule = function refCssRule(rule, index, cssRule) {
|
|
20783
20817
|
rule.renderable = cssRule;
|
|
20784
20818
|
if (rule.options.parent instanceof StyleSheet) {
|
|
20785
|
-
this.cssRules.splice(
|
|
20819
|
+
this.cssRules.splice(index, 0, cssRule);
|
|
20786
20820
|
}
|
|
20787
20821
|
};
|
|
20788
20822
|
_proto.deleteRule = function deleteRule(cssRule) {
|
|
20789
20823
|
var sheet = this.element.sheet;
|
|
20790
|
-
var
|
|
20791
|
-
if (
|
|
20824
|
+
var index = this.indexOf(cssRule);
|
|
20825
|
+
if (index === -1)
|
|
20792
20826
|
return false;
|
|
20793
|
-
sheet.deleteRule(
|
|
20794
|
-
this.cssRules.splice(
|
|
20827
|
+
sheet.deleteRule(index);
|
|
20828
|
+
this.cssRules.splice(index, 1);
|
|
20795
20829
|
return true;
|
|
20796
20830
|
};
|
|
20797
20831
|
_proto.indexOf = function indexOf(cssRule) {
|
|
20798
20832
|
return this.cssRules.indexOf(cssRule);
|
|
20799
20833
|
};
|
|
20800
20834
|
_proto.replaceRule = function replaceRule(cssRule, rule) {
|
|
20801
|
-
var
|
|
20802
|
-
if (
|
|
20835
|
+
var index = this.indexOf(cssRule);
|
|
20836
|
+
if (index === -1)
|
|
20803
20837
|
return false;
|
|
20804
|
-
this.element.sheet.deleteRule(
|
|
20805
|
-
this.cssRules.splice(
|
|
20806
|
-
return this.insertRule(rule,
|
|
20838
|
+
this.element.sheet.deleteRule(index);
|
|
20839
|
+
this.cssRules.splice(index, 1);
|
|
20840
|
+
return this.insertRule(rule, index);
|
|
20807
20841
|
};
|
|
20808
20842
|
_proto.getRules = function getRules() {
|
|
20809
20843
|
return this.element.sheet.cssRules;
|
|
@@ -20861,16 +20895,16 @@ var Jss = /* @__PURE__ */ function() {
|
|
|
20861
20895
|
if (options === void 0) {
|
|
20862
20896
|
options = {};
|
|
20863
20897
|
}
|
|
20864
|
-
var _options = options,
|
|
20865
|
-
if (typeof
|
|
20866
|
-
|
|
20898
|
+
var _options = options, index = _options.index;
|
|
20899
|
+
if (typeof index !== "number") {
|
|
20900
|
+
index = sheets.index === 0 ? 0 : sheets.index + 1;
|
|
20867
20901
|
}
|
|
20868
20902
|
var sheet = new StyleSheet(styles8, _extends$2({}, options, {
|
|
20869
20903
|
jss: this,
|
|
20870
20904
|
generateId: options.generateId || this.generateId,
|
|
20871
20905
|
insertionPoint: this.options.insertionPoint,
|
|
20872
20906
|
Renderer: this.options.Renderer,
|
|
20873
|
-
index
|
|
20907
|
+
index
|
|
20874
20908
|
}));
|
|
20875
20909
|
this.plugins.onProcessSheet(sheet);
|
|
20876
20910
|
return sheet;
|
|
@@ -21233,8 +21267,8 @@ function convertCase(style) {
|
|
|
21233
21267
|
function camelCase() {
|
|
21234
21268
|
function onProcessStyle2(style) {
|
|
21235
21269
|
if (Array.isArray(style)) {
|
|
21236
|
-
for (var
|
|
21237
|
-
style[
|
|
21270
|
+
for (var index = 0; index < style.length; index++) {
|
|
21271
|
+
style[index] = convertCase(style[index]);
|
|
21238
21272
|
}
|
|
21239
21273
|
return style;
|
|
21240
21274
|
}
|
|
@@ -22865,15 +22899,15 @@ function _assertThisInitialized(self2) {
|
|
|
22865
22899
|
return self2;
|
|
22866
22900
|
}
|
|
22867
22901
|
function getChildMapping(children, mapFn) {
|
|
22868
|
-
var mapper = function mapper2(
|
|
22869
|
-
return mapFn && isValidElement(
|
|
22902
|
+
var mapper = function mapper2(child) {
|
|
22903
|
+
return mapFn && isValidElement(child) ? mapFn(child) : child;
|
|
22870
22904
|
};
|
|
22871
22905
|
var result = /* @__PURE__ */ Object.create(null);
|
|
22872
22906
|
if (children)
|
|
22873
22907
|
Children.map(children, function(c) {
|
|
22874
22908
|
return c;
|
|
22875
|
-
}).forEach(function(
|
|
22876
|
-
result[
|
|
22909
|
+
}).forEach(function(child) {
|
|
22910
|
+
result[child.key] = mapper(child);
|
|
22877
22911
|
});
|
|
22878
22912
|
return result;
|
|
22879
22913
|
}
|
|
@@ -22911,17 +22945,17 @@ function mergeChildMappings(prev, next) {
|
|
|
22911
22945
|
}
|
|
22912
22946
|
return childMapping;
|
|
22913
22947
|
}
|
|
22914
|
-
function getProp(
|
|
22915
|
-
return props[prop] != null ? props[prop] :
|
|
22948
|
+
function getProp(child, prop, props) {
|
|
22949
|
+
return props[prop] != null ? props[prop] : child.props[prop];
|
|
22916
22950
|
}
|
|
22917
22951
|
function getInitialChildMapping(props, onExited) {
|
|
22918
|
-
return getChildMapping(props.children, function(
|
|
22919
|
-
return cloneElement(
|
|
22920
|
-
onExited: onExited.bind(null,
|
|
22952
|
+
return getChildMapping(props.children, function(child) {
|
|
22953
|
+
return cloneElement(child, {
|
|
22954
|
+
onExited: onExited.bind(null, child),
|
|
22921
22955
|
in: true,
|
|
22922
|
-
appear: getProp(
|
|
22923
|
-
enter: getProp(
|
|
22924
|
-
exit: getProp(
|
|
22956
|
+
appear: getProp(child, "appear", props),
|
|
22957
|
+
enter: getProp(child, "enter", props),
|
|
22958
|
+
exit: getProp(child, "exit", props)
|
|
22925
22959
|
});
|
|
22926
22960
|
});
|
|
22927
22961
|
}
|
|
@@ -22929,30 +22963,30 @@ function getNextChildMapping(nextProps, prevChildMapping, onExited) {
|
|
|
22929
22963
|
var nextChildMapping = getChildMapping(nextProps.children);
|
|
22930
22964
|
var children = mergeChildMappings(prevChildMapping, nextChildMapping);
|
|
22931
22965
|
Object.keys(children).forEach(function(key) {
|
|
22932
|
-
var
|
|
22933
|
-
if (!isValidElement(
|
|
22966
|
+
var child = children[key];
|
|
22967
|
+
if (!isValidElement(child))
|
|
22934
22968
|
return;
|
|
22935
22969
|
var hasPrev = key in prevChildMapping;
|
|
22936
22970
|
var hasNext = key in nextChildMapping;
|
|
22937
22971
|
var prevChild = prevChildMapping[key];
|
|
22938
22972
|
var isLeaving = isValidElement(prevChild) && !prevChild.props.in;
|
|
22939
22973
|
if (hasNext && (!hasPrev || isLeaving)) {
|
|
22940
|
-
children[key] = cloneElement(
|
|
22941
|
-
onExited: onExited.bind(null,
|
|
22974
|
+
children[key] = cloneElement(child, {
|
|
22975
|
+
onExited: onExited.bind(null, child),
|
|
22942
22976
|
in: true,
|
|
22943
|
-
exit: getProp(
|
|
22944
|
-
enter: getProp(
|
|
22977
|
+
exit: getProp(child, "exit", nextProps),
|
|
22978
|
+
enter: getProp(child, "enter", nextProps)
|
|
22945
22979
|
});
|
|
22946
22980
|
} else if (!hasNext && hasPrev && !isLeaving) {
|
|
22947
|
-
children[key] = cloneElement(
|
|
22981
|
+
children[key] = cloneElement(child, {
|
|
22948
22982
|
in: false
|
|
22949
22983
|
});
|
|
22950
22984
|
} else if (hasNext && hasPrev && isValidElement(prevChild)) {
|
|
22951
|
-
children[key] = cloneElement(
|
|
22952
|
-
onExited: onExited.bind(null,
|
|
22985
|
+
children[key] = cloneElement(child, {
|
|
22986
|
+
onExited: onExited.bind(null, child),
|
|
22953
22987
|
in: prevChild.props.in,
|
|
22954
|
-
exit: getProp(
|
|
22955
|
-
enter: getProp(
|
|
22988
|
+
exit: getProp(child, "exit", nextProps),
|
|
22989
|
+
enter: getProp(child, "enter", nextProps)
|
|
22956
22990
|
});
|
|
22957
22991
|
}
|
|
22958
22992
|
});
|
|
@@ -22965,8 +22999,8 @@ var values = Object.values || function(obj) {
|
|
|
22965
22999
|
};
|
|
22966
23000
|
var defaultProps = {
|
|
22967
23001
|
component: "div",
|
|
22968
|
-
childFactory: function childFactory(
|
|
22969
|
-
return
|
|
23002
|
+
childFactory: function childFactory(child) {
|
|
23003
|
+
return child;
|
|
22970
23004
|
}
|
|
22971
23005
|
};
|
|
22972
23006
|
var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
|
|
@@ -23003,17 +23037,17 @@ var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
|
|
|
23003
23037
|
firstRender: false
|
|
23004
23038
|
};
|
|
23005
23039
|
};
|
|
23006
|
-
_proto.handleExited = function handleExited(
|
|
23040
|
+
_proto.handleExited = function handleExited(child, node) {
|
|
23007
23041
|
var currentChildMapping = getChildMapping(this.props.children);
|
|
23008
|
-
if (
|
|
23042
|
+
if (child.key in currentChildMapping)
|
|
23009
23043
|
return;
|
|
23010
|
-
if (
|
|
23011
|
-
|
|
23044
|
+
if (child.props.onExited) {
|
|
23045
|
+
child.props.onExited(node);
|
|
23012
23046
|
}
|
|
23013
23047
|
if (this.mounted) {
|
|
23014
23048
|
this.setState(function(state) {
|
|
23015
23049
|
var children = _extends$1({}, state.children);
|
|
23016
|
-
delete children[
|
|
23050
|
+
delete children[child.key];
|
|
23017
23051
|
return {
|
|
23018
23052
|
children
|
|
23019
23053
|
};
|
|
@@ -23865,8 +23899,8 @@ IconButton.propTypes = {
|
|
|
23865
23899
|
* The icon element.
|
|
23866
23900
|
*/
|
|
23867
23901
|
children: chainPropTypes(PropTypes.node, function(props) {
|
|
23868
|
-
var found = React.Children.toArray(props.children).some(function(
|
|
23869
|
-
return /* @__PURE__ */ React.isValidElement(
|
|
23902
|
+
var found = React.Children.toArray(props.children).some(function(child) {
|
|
23903
|
+
return /* @__PURE__ */ React.isValidElement(child) && child.props.onClick;
|
|
23870
23904
|
});
|
|
23871
23905
|
if (found) {
|
|
23872
23906
|
return new Error(["Material-UI: You are providing an onClick event listener to a child of a button element.", "Firefox will never trigger the event.", "You should move the onClick listener to the parent button element.", "https://github.com/mui-org/material-ui/issues/13957"].join("\n"));
|
|
@@ -25177,9 +25211,9 @@ function requireCreateMultiSort() {
|
|
|
25177
25211
|
sortBy.push(dataKey);
|
|
25178
25212
|
}
|
|
25179
25213
|
} else if (event.ctrlKey || event.metaKey) {
|
|
25180
|
-
var
|
|
25181
|
-
if (
|
|
25182
|
-
sortBy.splice(
|
|
25214
|
+
var index = sortBy.indexOf(dataKey);
|
|
25215
|
+
if (index >= 0) {
|
|
25216
|
+
sortBy.splice(index, 1);
|
|
25183
25217
|
delete sortDirection[dataKey];
|
|
25184
25218
|
}
|
|
25185
25219
|
} else {
|
|
@@ -25521,9 +25555,9 @@ function requireDefaultRowRenderer() {
|
|
|
25521
25555
|
var _types = requireTypes$1();
|
|
25522
25556
|
var _propTypes = _interopRequireDefault(propTypesExports);
|
|
25523
25557
|
function defaultRowRenderer2(_ref) {
|
|
25524
|
-
var className = _ref.className, columns = _ref.columns,
|
|
25558
|
+
var className = _ref.className, columns = _ref.columns, index = _ref.index, key = _ref.key, onRowClick = _ref.onRowClick, onRowDoubleClick = _ref.onRowDoubleClick, onRowMouseOut = _ref.onRowMouseOut, onRowMouseOver = _ref.onRowMouseOver, onRowRightClick = _ref.onRowRightClick, rowData = _ref.rowData, style = _ref.style;
|
|
25525
25559
|
var a11yProps = {
|
|
25526
|
-
"aria-rowindex":
|
|
25560
|
+
"aria-rowindex": index + 1
|
|
25527
25561
|
};
|
|
25528
25562
|
if (onRowClick || onRowDoubleClick || onRowMouseOut || onRowMouseOver || onRowRightClick) {
|
|
25529
25563
|
a11yProps["aria-label"] = "row";
|
|
@@ -25532,7 +25566,7 @@ function requireDefaultRowRenderer() {
|
|
|
25532
25566
|
a11yProps.onClick = function(event) {
|
|
25533
25567
|
return onRowClick({
|
|
25534
25568
|
event,
|
|
25535
|
-
index
|
|
25569
|
+
index,
|
|
25536
25570
|
rowData
|
|
25537
25571
|
});
|
|
25538
25572
|
};
|
|
@@ -25541,7 +25575,7 @@ function requireDefaultRowRenderer() {
|
|
|
25541
25575
|
a11yProps.onDoubleClick = function(event) {
|
|
25542
25576
|
return onRowDoubleClick({
|
|
25543
25577
|
event,
|
|
25544
|
-
index
|
|
25578
|
+
index,
|
|
25545
25579
|
rowData
|
|
25546
25580
|
});
|
|
25547
25581
|
};
|
|
@@ -25550,7 +25584,7 @@ function requireDefaultRowRenderer() {
|
|
|
25550
25584
|
a11yProps.onMouseOut = function(event) {
|
|
25551
25585
|
return onRowMouseOut({
|
|
25552
25586
|
event,
|
|
25553
|
-
index
|
|
25587
|
+
index,
|
|
25554
25588
|
rowData
|
|
25555
25589
|
});
|
|
25556
25590
|
};
|
|
@@ -25559,7 +25593,7 @@ function requireDefaultRowRenderer() {
|
|
|
25559
25593
|
a11yProps.onMouseOver = function(event) {
|
|
25560
25594
|
return onRowMouseOver({
|
|
25561
25595
|
event,
|
|
25562
|
-
index
|
|
25596
|
+
index,
|
|
25563
25597
|
rowData
|
|
25564
25598
|
});
|
|
25565
25599
|
};
|
|
@@ -25568,7 +25602,7 @@ function requireDefaultRowRenderer() {
|
|
|
25568
25602
|
a11yProps.onContextMenu = function(event) {
|
|
25569
25603
|
return onRowRightClick({
|
|
25570
25604
|
event,
|
|
25571
|
-
index
|
|
25605
|
+
index,
|
|
25572
25606
|
rowData
|
|
25573
25607
|
});
|
|
25574
25608
|
};
|
|
@@ -25957,14 +25991,14 @@ function requireCellSizeAndPositionManager() {
|
|
|
25957
25991
|
*/
|
|
25958
25992
|
}, {
|
|
25959
25993
|
key: "getSizeAndPositionOfCell",
|
|
25960
|
-
value: function getSizeAndPositionOfCell(
|
|
25961
|
-
if (
|
|
25962
|
-
throw Error("Requested index ".concat(
|
|
25994
|
+
value: function getSizeAndPositionOfCell(index) {
|
|
25995
|
+
if (index < 0 || index >= this._cellCount) {
|
|
25996
|
+
throw Error("Requested index ".concat(index, " is outside of range 0..").concat(this._cellCount));
|
|
25963
25997
|
}
|
|
25964
|
-
if (
|
|
25998
|
+
if (index > this._lastMeasuredIndex) {
|
|
25965
25999
|
var lastMeasuredCellSizeAndPosition = this.getSizeAndPositionOfLastMeasuredCell();
|
|
25966
26000
|
var offset = lastMeasuredCellSizeAndPosition.offset + lastMeasuredCellSizeAndPosition.size;
|
|
25967
|
-
for (var i = this._lastMeasuredIndex + 1; i <=
|
|
26001
|
+
for (var i = this._lastMeasuredIndex + 1; i <= index; i++) {
|
|
25968
26002
|
var size2 = this._cellSizeGetter({
|
|
25969
26003
|
index: i
|
|
25970
26004
|
});
|
|
@@ -25975,18 +26009,18 @@ function requireCellSizeAndPositionManager() {
|
|
|
25975
26009
|
offset,
|
|
25976
26010
|
size: 0
|
|
25977
26011
|
};
|
|
25978
|
-
this._lastBatchedIndex =
|
|
26012
|
+
this._lastBatchedIndex = index;
|
|
25979
26013
|
} else {
|
|
25980
26014
|
this._cellSizeAndPositionData[i] = {
|
|
25981
26015
|
offset,
|
|
25982
26016
|
size: size2
|
|
25983
26017
|
};
|
|
25984
26018
|
offset += size2;
|
|
25985
|
-
this._lastMeasuredIndex =
|
|
26019
|
+
this._lastMeasuredIndex = index;
|
|
25986
26020
|
}
|
|
25987
26021
|
}
|
|
25988
26022
|
}
|
|
25989
|
-
return this._cellSizeAndPositionData[
|
|
26023
|
+
return this._cellSizeAndPositionData[index];
|
|
25990
26024
|
}
|
|
25991
26025
|
}, {
|
|
25992
26026
|
key: "getSizeAndPositionOfLastMeasuredCell",
|
|
@@ -26028,9 +26062,9 @@ function requireCellSizeAndPositionManager() {
|
|
|
26028
26062
|
if (containerSize <= 0) {
|
|
26029
26063
|
return 0;
|
|
26030
26064
|
}
|
|
26031
|
-
var
|
|
26032
|
-
var maxOffset =
|
|
26033
|
-
var minOffset = maxOffset - containerSize +
|
|
26065
|
+
var datum = this.getSizeAndPositionOfCell(targetIndex);
|
|
26066
|
+
var maxOffset = datum.offset;
|
|
26067
|
+
var minOffset = maxOffset - containerSize + datum.size;
|
|
26034
26068
|
var idealOffset;
|
|
26035
26069
|
switch (align) {
|
|
26036
26070
|
case "start":
|
|
@@ -26040,7 +26074,7 @@ function requireCellSizeAndPositionManager() {
|
|
|
26040
26074
|
idealOffset = minOffset;
|
|
26041
26075
|
break;
|
|
26042
26076
|
case "center":
|
|
26043
|
-
idealOffset = maxOffset - (containerSize -
|
|
26077
|
+
idealOffset = maxOffset - (containerSize - datum.size) / 2;
|
|
26044
26078
|
break;
|
|
26045
26079
|
default:
|
|
26046
26080
|
idealOffset = Math.max(minOffset, Math.min(maxOffset, currentOffset));
|
|
@@ -26059,8 +26093,8 @@ function requireCellSizeAndPositionManager() {
|
|
|
26059
26093
|
}
|
|
26060
26094
|
var maxOffset = offset + containerSize;
|
|
26061
26095
|
var start = this._findNearestCell(offset);
|
|
26062
|
-
var
|
|
26063
|
-
offset =
|
|
26096
|
+
var datum = this.getSizeAndPositionOfCell(start);
|
|
26097
|
+
offset = datum.offset + datum.size;
|
|
26064
26098
|
var stop = start;
|
|
26065
26099
|
while (offset < maxOffset && stop < this._cellCount - 1) {
|
|
26066
26100
|
stop++;
|
|
@@ -26078,8 +26112,8 @@ function requireCellSizeAndPositionManager() {
|
|
|
26078
26112
|
*/
|
|
26079
26113
|
}, {
|
|
26080
26114
|
key: "resetCell",
|
|
26081
|
-
value: function resetCell(
|
|
26082
|
-
this._lastMeasuredIndex = Math.min(this._lastMeasuredIndex,
|
|
26115
|
+
value: function resetCell(index) {
|
|
26116
|
+
this._lastMeasuredIndex = Math.min(this._lastMeasuredIndex, index - 1);
|
|
26083
26117
|
}
|
|
26084
26118
|
}, {
|
|
26085
26119
|
key: "_binarySearch",
|
|
@@ -26103,13 +26137,13 @@ function requireCellSizeAndPositionManager() {
|
|
|
26103
26137
|
}
|
|
26104
26138
|
}, {
|
|
26105
26139
|
key: "_exponentialSearch",
|
|
26106
|
-
value: function _exponentialSearch(
|
|
26140
|
+
value: function _exponentialSearch(index, offset) {
|
|
26107
26141
|
var interval = 1;
|
|
26108
|
-
while (
|
|
26109
|
-
|
|
26142
|
+
while (index < this._cellCount && this.getSizeAndPositionOfCell(index).offset < offset) {
|
|
26143
|
+
index += interval;
|
|
26110
26144
|
interval *= 2;
|
|
26111
26145
|
}
|
|
26112
|
-
return this._binarySearch(Math.min(
|
|
26146
|
+
return this._binarySearch(Math.min(index, this._cellCount - 1), Math.floor(index / 2), offset);
|
|
26113
26147
|
}
|
|
26114
26148
|
/**
|
|
26115
26149
|
* Searches for the cell (index) nearest the specified offset.
|
|
@@ -26239,8 +26273,8 @@ function requireScalingCellSizeAndPositionManager() {
|
|
|
26239
26273
|
}
|
|
26240
26274
|
}, {
|
|
26241
26275
|
key: "getSizeAndPositionOfCell",
|
|
26242
|
-
value: function getSizeAndPositionOfCell(
|
|
26243
|
-
return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(
|
|
26276
|
+
value: function getSizeAndPositionOfCell(index) {
|
|
26277
|
+
return this._cellSizeAndPositionManager.getSizeAndPositionOfCell(index);
|
|
26244
26278
|
}
|
|
26245
26279
|
}, {
|
|
26246
26280
|
key: "getSizeAndPositionOfLastMeasuredCell",
|
|
@@ -26289,8 +26323,8 @@ function requireScalingCellSizeAndPositionManager() {
|
|
|
26289
26323
|
}
|
|
26290
26324
|
}, {
|
|
26291
26325
|
key: "resetCell",
|
|
26292
|
-
value: function resetCell(
|
|
26293
|
-
this._cellSizeAndPositionManager.resetCell(
|
|
26326
|
+
value: function resetCell(index) {
|
|
26327
|
+
this._cellSizeAndPositionManager.resetCell(index);
|
|
26294
26328
|
}
|
|
26295
26329
|
}, {
|
|
26296
26330
|
key: "_getOffsetPercentage",
|
|
@@ -28078,11 +28112,11 @@ function requireTable() {
|
|
|
28078
28112
|
}, {
|
|
28079
28113
|
key: "getOffsetForRow",
|
|
28080
28114
|
value: function getOffsetForRow(_ref) {
|
|
28081
|
-
var alignment = _ref.alignment,
|
|
28115
|
+
var alignment = _ref.alignment, index = _ref.index;
|
|
28082
28116
|
if (this.Grid) {
|
|
28083
28117
|
var _this$Grid$getOffsetF = this.Grid.getOffsetForCell({
|
|
28084
28118
|
alignment,
|
|
28085
|
-
rowIndex:
|
|
28119
|
+
rowIndex: index
|
|
28086
28120
|
}), scrollTop = _this$Grid$getOffsetF.scrollTop;
|
|
28087
28121
|
return scrollTop;
|
|
28088
28122
|
}
|
|
@@ -28124,10 +28158,10 @@ function requireTable() {
|
|
|
28124
28158
|
}, {
|
|
28125
28159
|
key: "recomputeRowHeights",
|
|
28126
28160
|
value: function recomputeRowHeights() {
|
|
28127
|
-
var
|
|
28161
|
+
var index = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
28128
28162
|
if (this.Grid) {
|
|
28129
28163
|
this.Grid.recomputeGridSize({
|
|
28130
|
-
rowIndex:
|
|
28164
|
+
rowIndex: index
|
|
28131
28165
|
});
|
|
28132
28166
|
}
|
|
28133
28167
|
}
|
|
@@ -28146,11 +28180,11 @@ function requireTable() {
|
|
|
28146
28180
|
}, {
|
|
28147
28181
|
key: "scrollToRow",
|
|
28148
28182
|
value: function scrollToRow() {
|
|
28149
|
-
var
|
|
28183
|
+
var index = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
28150
28184
|
if (this.Grid) {
|
|
28151
28185
|
this.Grid.scrollToCell({
|
|
28152
28186
|
columnIndex: 0,
|
|
28153
|
-
rowIndex:
|
|
28187
|
+
rowIndex: index
|
|
28154
28188
|
});
|
|
28155
28189
|
}
|
|
28156
28190
|
}
|
|
@@ -28189,9 +28223,9 @@ function requireTable() {
|
|
|
28189
28223
|
index: -1
|
|
28190
28224
|
}) : rowStyle;
|
|
28191
28225
|
this._cachedColumnStyles = [];
|
|
28192
|
-
React2.Children.toArray(children).forEach(function(column,
|
|
28226
|
+
React2.Children.toArray(children).forEach(function(column, index) {
|
|
28193
28227
|
var flexStyles = _this2._getFlexStyleForColumn(column, column.props.style);
|
|
28194
|
-
_this2._cachedColumnStyles[
|
|
28228
|
+
_this2._cachedColumnStyles[index] = _objectSpread({
|
|
28195
28229
|
overflow: "hidden"
|
|
28196
28230
|
}, flexStyles);
|
|
28197
28231
|
});
|
|
@@ -28278,7 +28312,7 @@ function requireTable() {
|
|
|
28278
28312
|
}, {
|
|
28279
28313
|
key: "_createHeader",
|
|
28280
28314
|
value: function _createHeader(_ref5) {
|
|
28281
|
-
var column = _ref5.column,
|
|
28315
|
+
var column = _ref5.column, index = _ref5.index;
|
|
28282
28316
|
var _this$props2 = this.props, headerClassName = _this$props2.headerClassName, headerStyle = _this$props2.headerStyle, onHeaderClick = _this$props2.onHeaderClick, sort2 = _this$props2.sort, sortBy = _this$props2.sortBy, sortDirection = _this$props2.sortDirection;
|
|
28283
28317
|
var _column$props2 = column.props, columnData = _column$props2.columnData, dataKey = _column$props2.dataKey, defaultSortDirection = _column$props2.defaultSortDirection, disableSort = _column$props2.disableSort, headerRenderer = _column$props2.headerRenderer, id = _column$props2.id, label = _column$props2.label;
|
|
28284
28318
|
var sortEnabled = !disableSort && sort2;
|
|
@@ -28330,7 +28364,7 @@ function requireTable() {
|
|
|
28330
28364
|
"aria-sort": headerAriaSort,
|
|
28331
28365
|
className: classNames,
|
|
28332
28366
|
id,
|
|
28333
|
-
key: "Header-Col" +
|
|
28367
|
+
key: "Header-Col" + index,
|
|
28334
28368
|
onClick: headerOnClick,
|
|
28335
28369
|
onKeyDown: headerOnKeyDown,
|
|
28336
28370
|
role: "columnheader",
|
|
@@ -28342,17 +28376,17 @@ function requireTable() {
|
|
|
28342
28376
|
key: "_createRow",
|
|
28343
28377
|
value: function _createRow(_ref6) {
|
|
28344
28378
|
var _this3 = this;
|
|
28345
|
-
var
|
|
28379
|
+
var index = _ref6.rowIndex, isScrolling = _ref6.isScrolling, key = _ref6.key, parent = _ref6.parent, style = _ref6.style;
|
|
28346
28380
|
var _this$props3 = this.props, children = _this$props3.children, onRowClick = _this$props3.onRowClick, onRowDoubleClick = _this$props3.onRowDoubleClick, onRowRightClick = _this$props3.onRowRightClick, onRowMouseOver = _this$props3.onRowMouseOver, onRowMouseOut = _this$props3.onRowMouseOut, rowClassName = _this$props3.rowClassName, rowGetter = _this$props3.rowGetter, rowRenderer = _this$props3.rowRenderer, rowStyle = _this$props3.rowStyle;
|
|
28347
28381
|
var scrollbarWidth = this.state.scrollbarWidth;
|
|
28348
28382
|
var rowClass = typeof rowClassName === "function" ? rowClassName({
|
|
28349
|
-
index
|
|
28383
|
+
index
|
|
28350
28384
|
}) : rowClassName;
|
|
28351
28385
|
var rowStyleObject = typeof rowStyle === "function" ? rowStyle({
|
|
28352
|
-
index
|
|
28386
|
+
index
|
|
28353
28387
|
}) : rowStyle;
|
|
28354
28388
|
var rowData = rowGetter({
|
|
28355
|
-
index
|
|
28389
|
+
index
|
|
28356
28390
|
});
|
|
28357
28391
|
var columns = React2.Children.toArray(children).map(function(column, columnIndex) {
|
|
28358
28392
|
return _this3._createColumn({
|
|
@@ -28361,20 +28395,20 @@ function requireTable() {
|
|
|
28361
28395
|
isScrolling,
|
|
28362
28396
|
parent,
|
|
28363
28397
|
rowData,
|
|
28364
|
-
rowIndex:
|
|
28398
|
+
rowIndex: index,
|
|
28365
28399
|
scrollbarWidth
|
|
28366
28400
|
});
|
|
28367
28401
|
});
|
|
28368
28402
|
var className = (0, _clsx["default"])("ReactVirtualized__Table__row", rowClass);
|
|
28369
28403
|
var flattenedStyle = _objectSpread({}, style, {
|
|
28370
|
-
height: this._getRowHeight(
|
|
28404
|
+
height: this._getRowHeight(index),
|
|
28371
28405
|
overflow: "hidden",
|
|
28372
28406
|
paddingRight: scrollbarWidth
|
|
28373
28407
|
}, rowStyleObject);
|
|
28374
28408
|
return rowRenderer({
|
|
28375
28409
|
className,
|
|
28376
28410
|
columns,
|
|
28377
|
-
index
|
|
28411
|
+
index,
|
|
28378
28412
|
isScrolling,
|
|
28379
28413
|
key,
|
|
28380
28414
|
onRowClick,
|
|
@@ -28413,10 +28447,10 @@ function requireTable() {
|
|
|
28413
28447
|
var _this4 = this;
|
|
28414
28448
|
var _this$props4 = this.props, children = _this$props4.children, disableHeader = _this$props4.disableHeader;
|
|
28415
28449
|
var items = disableHeader ? [] : React2.Children.toArray(children);
|
|
28416
|
-
return items.map(function(column,
|
|
28450
|
+
return items.map(function(column, index) {
|
|
28417
28451
|
return _this4._createHeader({
|
|
28418
28452
|
column,
|
|
28419
|
-
index
|
|
28453
|
+
index
|
|
28420
28454
|
});
|
|
28421
28455
|
});
|
|
28422
28456
|
}
|
|
@@ -28909,42 +28943,42 @@ function SelectableTable(props) {
|
|
|
28909
28943
|
}, [selectedRows, allowMultiple]);
|
|
28910
28944
|
const classes = useStyles$1();
|
|
28911
28945
|
const inputUuid = v4();
|
|
28912
|
-
const rowRenderer = ({ index
|
|
28946
|
+
const rowRenderer = ({ index, style }) => (
|
|
28913
28947
|
// eslint-disable-next-line jsx-a11y/interactive-supports-focus
|
|
28914
28948
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
28915
28949
|
"div",
|
|
28916
28950
|
{
|
|
28917
|
-
className: clsx(classes.tableItem, classes.tableRow, { "row-checked": isSelected(data[
|
|
28951
|
+
className: clsx(classes.tableItem, classes.tableRow, { "row-checked": isSelected(data[index][idKey]) }),
|
|
28918
28952
|
style,
|
|
28919
28953
|
role: "button",
|
|
28920
28954
|
onClick: () => onSelectRow(
|
|
28921
|
-
data[
|
|
28922
|
-
!isSelected(data[
|
|
28955
|
+
data[index][idKey],
|
|
28956
|
+
!isSelected(data[index][idKey]) || !hasColorEncoding
|
|
28923
28957
|
),
|
|
28924
28958
|
children: [
|
|
28925
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(classes.inputContainer, classes.tableCell, { [classes.hiddenInputColumn]: !showTableInputs }), children: /* @__PURE__ */ jsxRuntimeExports.jsx("label", { htmlFor: `${inputUuid}_${data[
|
|
28959
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: clsx(classes.inputContainer, classes.tableCell, { [classes.hiddenInputColumn]: !showTableInputs }), children: /* @__PURE__ */ jsxRuntimeExports.jsx("label", { htmlFor: `${inputUuid}_${data[index][idKey]}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28926
28960
|
"input",
|
|
28927
28961
|
{
|
|
28928
|
-
id: `${inputUuid}_${data[
|
|
28962
|
+
id: `${inputUuid}_${data[index][idKey]}`,
|
|
28929
28963
|
type: "checkbox",
|
|
28930
28964
|
className: clsx(classes.radioOrCheckbox, isCheckingMultiple ? classes.tableCheckbox : classes.tableRadio),
|
|
28931
28965
|
name: inputUuid,
|
|
28932
|
-
value: data[
|
|
28966
|
+
value: data[index][idKey],
|
|
28933
28967
|
onChange: handleInputChange,
|
|
28934
|
-
checked: isSelected(data[
|
|
28968
|
+
checked: isSelected(data[index][idKey])
|
|
28935
28969
|
}
|
|
28936
28970
|
) }) }),
|
|
28937
28971
|
columns.map((column) => /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
28938
28972
|
"div",
|
|
28939
28973
|
{
|
|
28940
28974
|
className: classes.tableCell,
|
|
28941
|
-
children: data[
|
|
28975
|
+
children: data[index][column]
|
|
28942
28976
|
},
|
|
28943
28977
|
column
|
|
28944
28978
|
))
|
|
28945
28979
|
]
|
|
28946
28980
|
},
|
|
28947
|
-
data[
|
|
28981
|
+
data[index][idKey]
|
|
28948
28982
|
)
|
|
28949
28983
|
);
|
|
28950
28984
|
const headerRowRenderer = ({ style }) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classes.tableRow, style, children: columnLabels.map((columnLabel) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classes.tableCell, style: { fontWeight: "bold" }, children: columnLabel }, columnLabel)) });
|
|
@@ -28959,7 +28993,7 @@ function SelectableTable(props) {
|
|
|
28959
28993
|
rowRenderer,
|
|
28960
28994
|
width: testWidth || width,
|
|
28961
28995
|
headerRowRenderer: showTableHead ? headerRowRenderer : void 0,
|
|
28962
|
-
rowGetter: ({ index
|
|
28996
|
+
rowGetter: ({ index }) => data[index]
|
|
28963
28997
|
}
|
|
28964
28998
|
) }) });
|
|
28965
28999
|
}
|
|
@@ -29092,6 +29126,7 @@ function FeatureListOptions(props) {
|
|
|
29092
29126
|
hasFeatureLabels,
|
|
29093
29127
|
primaryColumnName
|
|
29094
29128
|
} = props;
|
|
29129
|
+
const featureListId = useId();
|
|
29095
29130
|
function handleFeatureListSortChange(event) {
|
|
29096
29131
|
setFeatureListSort(event.target.value);
|
|
29097
29132
|
}
|
|
@@ -29105,15 +29140,15 @@ function FeatureListOptions(props) {
|
|
|
29105
29140
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(OptionsContainer, { children: [
|
|
29106
29141
|
children,
|
|
29107
29142
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(TableRow$1, { children: [
|
|
29108
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, htmlFor:
|
|
29109
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29143
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: /* @__PURE__ */ jsxRuntimeExports.jsx("label", { htmlFor: `feature-list-sort-option-${featureListId}`, children: "Sort Ordering" }) }),
|
|
29144
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { variant: "body", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29110
29145
|
OptionSelect,
|
|
29111
29146
|
{
|
|
29112
29147
|
className: classes.select,
|
|
29113
29148
|
value: featureListSort,
|
|
29114
29149
|
onChange: handleFeatureListSortChange,
|
|
29115
29150
|
inputProps: {
|
|
29116
|
-
id:
|
|
29151
|
+
id: `feature-list-sort-option-${featureListId}`
|
|
29117
29152
|
},
|
|
29118
29153
|
children: FEATURELIST_SORT_OPTIONS.map((option) => /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: option, children: option }, option))
|
|
29119
29154
|
}
|
|
@@ -29121,8 +29156,8 @@ function FeatureListOptions(props) {
|
|
|
29121
29156
|
] }),
|
|
29122
29157
|
hasFeatureLabels ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
29123
29158
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(TableRow$1, { children: [
|
|
29124
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, htmlFor:
|
|
29125
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29159
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: /* @__PURE__ */ jsxRuntimeExports.jsx("label", { htmlFor: `feature-list-sort-key-${featureListId}`, children: "Sort Key" }) }),
|
|
29160
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { variant: "body", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29126
29161
|
OptionSelect,
|
|
29127
29162
|
{
|
|
29128
29163
|
className: classes.select,
|
|
@@ -29130,7 +29165,8 @@ function FeatureListOptions(props) {
|
|
|
29130
29165
|
value: featureListSortKey,
|
|
29131
29166
|
onChange: handleFeatureListSortKeyChange,
|
|
29132
29167
|
inputProps: {
|
|
29133
|
-
|
|
29168
|
+
"aria-label": "Select the feature list sort key",
|
|
29169
|
+
id: `feature-list-sort-key-${featureListId}`
|
|
29134
29170
|
},
|
|
29135
29171
|
children: hasFeatureLabels ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
29136
29172
|
/* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: "featureLabels", children: primaryColumnName }),
|
|
@@ -29140,15 +29176,19 @@ function FeatureListOptions(props) {
|
|
|
29140
29176
|
) })
|
|
29141
29177
|
] }),
|
|
29142
29178
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(TableRow$1, { children: [
|
|
29143
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, children: "Show Alternate IDs" }),
|
|
29144
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29179
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: /* @__PURE__ */ jsxRuntimeExports.jsx("label", { htmlFor: `feature-list-show-alternative-ids-${featureListId}`, children: "Show Alternate IDs" }) }),
|
|
29180
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29145
29181
|
Checkbox$1,
|
|
29146
29182
|
{
|
|
29147
29183
|
className: classes.tableCheckbox,
|
|
29148
29184
|
checked: showFeatureTable,
|
|
29149
29185
|
onChange: handleShowTableChange,
|
|
29150
29186
|
name: "feature-list-show-table",
|
|
29151
|
-
color: "default"
|
|
29187
|
+
color: "default",
|
|
29188
|
+
inputProps: {
|
|
29189
|
+
"aria-label": "Show or hide alternative feature ids",
|
|
29190
|
+
id: `feature-list-show-alternative-ids-${featureListId}`
|
|
29191
|
+
}
|
|
29152
29192
|
}
|
|
29153
29193
|
) })
|
|
29154
29194
|
] })
|
|
@@ -29220,7 +29260,7 @@ function FeatureListSubscriber(props) {
|
|
|
29220
29260
|
TitleInfo,
|
|
29221
29261
|
{
|
|
29222
29262
|
title,
|
|
29223
|
-
info: `${commaNumber(numGenes)} ${
|
|
29263
|
+
info: `${commaNumber(numGenes)} ${pluralize(variablesLabel, numGenes)}`,
|
|
29224
29264
|
theme,
|
|
29225
29265
|
isScroll: true,
|
|
29226
29266
|
removeGridComponent,
|