@vitessce/json 4.1.3 → 4.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{deflate-CY0mCZGX.js → deflate-D3UTqEHD.js} +1 -1
- package/dist/{index-4VnDH2hy.js → index-C7Fh1DhY.js} +988 -252
- package/dist/index.js +1 -1
- package/dist/{jpeg-DUxbudwC.js → jpeg-I9GgK6x5.js} +1 -1
- package/dist/{lerc-BAU7jMsv.js → lerc-fTImAOhU.js} +1 -1
- package/dist/{lzw-kdTzw_3Y.js → lzw-j3x3gmJ8.js} +1 -1
- package/dist/{packbits-IWA_Efee.js → packbits-CvMH_RJX.js} +1 -1
- package/dist/{raw-ChZ0p3eW.js → raw-BRA6fCQh.js} +1 -1
- package/dist/{webimage-BynLS1-y.js → webimage-CY5EKEDb.js} +1 -1
- package/package.json +12 -12
|
@@ -10304,7 +10304,7 @@ const anndataZarrSchema = z.object({
|
|
|
10304
10304
|
sampleEdges: annDataSampleEdges
|
|
10305
10305
|
}).partial();
|
|
10306
10306
|
anndataZarrSchema.extend({
|
|
10307
|
-
refSpecUrl: z.string()
|
|
10307
|
+
refSpecUrl: z.string().optional()
|
|
10308
10308
|
});
|
|
10309
10309
|
z.object({
|
|
10310
10310
|
// TODO: should `image` be a special schema
|
|
@@ -12466,6 +12466,140 @@ open.v3 = openV3;
|
|
|
12466
12466
|
function extendStore(store, ...extensions) {
|
|
12467
12467
|
return applyExtensions(store, extensions);
|
|
12468
12468
|
}
|
|
12469
|
+
function assertRangeCapable(store) {
|
|
12470
|
+
if (!store.getRange) {
|
|
12471
|
+
throw new UnsupportedError("`zarr.withRangeCoalescing` requires a store with getRange");
|
|
12472
|
+
}
|
|
12473
|
+
}
|
|
12474
|
+
function mergeSignals(signals) {
|
|
12475
|
+
let present = [];
|
|
12476
|
+
for (let s2 of signals)
|
|
12477
|
+
if (s2)
|
|
12478
|
+
present.push(s2);
|
|
12479
|
+
if (present.length === 0)
|
|
12480
|
+
return void 0;
|
|
12481
|
+
if (present.length === 1)
|
|
12482
|
+
return present[0];
|
|
12483
|
+
return AbortSignal.any(present);
|
|
12484
|
+
}
|
|
12485
|
+
const DEFAULT_COALESCE_SIZE = 32768;
|
|
12486
|
+
function groupRequests(sorted, coalesceSize) {
|
|
12487
|
+
if (sorted.length === 0)
|
|
12488
|
+
return [];
|
|
12489
|
+
let groups = [];
|
|
12490
|
+
let current = [sorted[0]];
|
|
12491
|
+
let groupStart = sorted[0].offset;
|
|
12492
|
+
let groupEnd = sorted[0].offset + sorted[0].length;
|
|
12493
|
+
for (let i2 = 1; i2 < sorted.length; i2++) {
|
|
12494
|
+
let req = sorted[i2];
|
|
12495
|
+
let reqEnd = req.offset + req.length;
|
|
12496
|
+
if (req.offset <= groupEnd + coalesceSize) {
|
|
12497
|
+
current.push(req);
|
|
12498
|
+
groupEnd = Math.max(groupEnd, reqEnd);
|
|
12499
|
+
} else {
|
|
12500
|
+
groups.push({
|
|
12501
|
+
offset: groupStart,
|
|
12502
|
+
length: groupEnd - groupStart,
|
|
12503
|
+
requests: current
|
|
12504
|
+
});
|
|
12505
|
+
current = [req];
|
|
12506
|
+
groupStart = req.offset;
|
|
12507
|
+
groupEnd = reqEnd;
|
|
12508
|
+
}
|
|
12509
|
+
}
|
|
12510
|
+
groups.push({
|
|
12511
|
+
offset: groupStart,
|
|
12512
|
+
length: groupEnd - groupStart,
|
|
12513
|
+
requests: current
|
|
12514
|
+
});
|
|
12515
|
+
return groups;
|
|
12516
|
+
}
|
|
12517
|
+
function emitFlush(onFlush, report) {
|
|
12518
|
+
if (!onFlush)
|
|
12519
|
+
return;
|
|
12520
|
+
try {
|
|
12521
|
+
onFlush(report);
|
|
12522
|
+
} catch (err2) {
|
|
12523
|
+
console.warn("withRangeCoalescing: onFlush threw, swallowing:", err2);
|
|
12524
|
+
}
|
|
12525
|
+
}
|
|
12526
|
+
const withRangeCoalescing = defineStoreExtension((_store, opts = {}) => {
|
|
12527
|
+
assertRangeCapable(_store);
|
|
12528
|
+
let store = _store;
|
|
12529
|
+
let boundGetRange = store.getRange.bind(store);
|
|
12530
|
+
let coalesceSize = opts.coalesceSize ?? DEFAULT_COALESCE_SIZE;
|
|
12531
|
+
let onFlush = opts.onFlush;
|
|
12532
|
+
let pending = /* @__PURE__ */ new Map();
|
|
12533
|
+
let scheduled = false;
|
|
12534
|
+
async function flush() {
|
|
12535
|
+
let work = new Map(pending);
|
|
12536
|
+
pending.clear();
|
|
12537
|
+
scheduled = false;
|
|
12538
|
+
let pathPromises = [];
|
|
12539
|
+
for (let [path, requests] of work) {
|
|
12540
|
+
requests.sort((a2, b) => a2.offset - b.offset);
|
|
12541
|
+
let groups = groupRequests(requests, coalesceSize);
|
|
12542
|
+
emitFlush(onFlush, {
|
|
12543
|
+
path,
|
|
12544
|
+
groupCount: groups.length,
|
|
12545
|
+
requestCount: requests.length,
|
|
12546
|
+
bytesFetched: groups.reduce((sum2, g2) => sum2 + g2.length, 0)
|
|
12547
|
+
});
|
|
12548
|
+
pathPromises.push(fetchGroups(path, groups));
|
|
12549
|
+
}
|
|
12550
|
+
await Promise.all(pathPromises);
|
|
12551
|
+
}
|
|
12552
|
+
async function fetchGroups(path, groups) {
|
|
12553
|
+
await Promise.all(groups.map(async (group) => {
|
|
12554
|
+
let signal = mergeSignals(group.requests.map((r2) => r2.signal));
|
|
12555
|
+
try {
|
|
12556
|
+
let data = await boundGetRange(path, { offset: group.offset, length: group.length }, { signal });
|
|
12557
|
+
if (data && data.length < group.length) {
|
|
12558
|
+
throw new Error(`Short read: expected ${group.length} bytes but received ${data.length}`);
|
|
12559
|
+
}
|
|
12560
|
+
for (let req of group.requests) {
|
|
12561
|
+
if (!data) {
|
|
12562
|
+
req.resolve(void 0);
|
|
12563
|
+
continue;
|
|
12564
|
+
}
|
|
12565
|
+
let start = req.offset - group.offset;
|
|
12566
|
+
let slice2 = data.slice(start, start + req.length);
|
|
12567
|
+
req.resolve(slice2);
|
|
12568
|
+
}
|
|
12569
|
+
} catch (err2) {
|
|
12570
|
+
for (let req of group.requests) {
|
|
12571
|
+
req.reject(err2);
|
|
12572
|
+
}
|
|
12573
|
+
}
|
|
12574
|
+
}));
|
|
12575
|
+
}
|
|
12576
|
+
return {
|
|
12577
|
+
getRange(key, range2, options) {
|
|
12578
|
+
if ("suffixLength" in range2) {
|
|
12579
|
+
return boundGetRange(key, range2, options);
|
|
12580
|
+
}
|
|
12581
|
+
let { offset: offset2, length: length2 } = range2;
|
|
12582
|
+
return new Promise((resolve2, reject) => {
|
|
12583
|
+
let reqs = pending.get(key);
|
|
12584
|
+
if (!reqs) {
|
|
12585
|
+
reqs = [];
|
|
12586
|
+
pending.set(key, reqs);
|
|
12587
|
+
}
|
|
12588
|
+
reqs.push({
|
|
12589
|
+
offset: offset2,
|
|
12590
|
+
length: length2,
|
|
12591
|
+
signal: options?.signal,
|
|
12592
|
+
resolve: resolve2,
|
|
12593
|
+
reject
|
|
12594
|
+
});
|
|
12595
|
+
if (!scheduled) {
|
|
12596
|
+
scheduled = true;
|
|
12597
|
+
queueMicrotask(() => flush());
|
|
12598
|
+
}
|
|
12599
|
+
});
|
|
12600
|
+
}
|
|
12601
|
+
};
|
|
12602
|
+
});
|
|
12469
12603
|
function* range$3(start, stop, step = 1) {
|
|
12470
12604
|
if (stop === void 0) {
|
|
12471
12605
|
stop = start;
|
|
@@ -12936,6 +13070,354 @@ function createZarrArrayAdapter(arr) {
|
|
|
12936
13070
|
}
|
|
12937
13071
|
});
|
|
12938
13072
|
}
|
|
13073
|
+
const alphabet = "abcdefghijklmnopqrstuvwxyz";
|
|
13074
|
+
const numbers = "01234569789";
|
|
13075
|
+
const expr = "()*/+-";
|
|
13076
|
+
const space = " ";
|
|
13077
|
+
new Set(
|
|
13078
|
+
alphabet + alphabet.toUpperCase() + numbers + expr + space
|
|
13079
|
+
);
|
|
13080
|
+
(() => {
|
|
13081
|
+
var table2 = new Uint8Array(128);
|
|
13082
|
+
for (var i2 = 0; i2 < 64; i2++) {
|
|
13083
|
+
table2[i2 < 26 ? i2 + 65 : i2 < 52 ? i2 + 71 : i2 < 62 ? i2 - 4 : i2 * 4 - 205] = i2;
|
|
13084
|
+
}
|
|
13085
|
+
return (base64) => {
|
|
13086
|
+
var n3 = base64.length;
|
|
13087
|
+
var bytes = new Uint8Array(
|
|
13088
|
+
// @ts-expect-error
|
|
13089
|
+
(n3 - (base64[n3 - 1] == "=") - (base64[n3 - 2] == "=")) * 3 / 4 | 0
|
|
13090
|
+
);
|
|
13091
|
+
for (var i22 = 0, j = 0; i22 < n3; ) {
|
|
13092
|
+
var c0 = table2[base64.charCodeAt(i22++)], c1 = table2[base64.charCodeAt(i22++)];
|
|
13093
|
+
var c2 = table2[base64.charCodeAt(i22++)], c3 = table2[base64.charCodeAt(i22++)];
|
|
13094
|
+
bytes[j++] = c0 << 2 | c1 >> 4;
|
|
13095
|
+
bytes[j++] = c1 << 4 | c2 >> 2;
|
|
13096
|
+
bytes[j++] = c2 << 6 | c3;
|
|
13097
|
+
}
|
|
13098
|
+
return bytes;
|
|
13099
|
+
};
|
|
13100
|
+
})();
|
|
13101
|
+
new TextEncoder();
|
|
13102
|
+
function _structure_size(structure) {
|
|
13103
|
+
const fmt = "<" + Array.from(structure.values()).join("");
|
|
13104
|
+
return struct.calcsize(fmt);
|
|
13105
|
+
}
|
|
13106
|
+
function isBigEndian() {
|
|
13107
|
+
const array = new Uint8Array(4);
|
|
13108
|
+
const view = new Uint32Array(array.buffer);
|
|
13109
|
+
return !((view[0] = 1) & array[0]);
|
|
13110
|
+
}
|
|
13111
|
+
function decodeFloat16(low, high) {
|
|
13112
|
+
const sign2 = (high & 128) >> 7;
|
|
13113
|
+
const exponent = (high & 124) >> 2;
|
|
13114
|
+
const fraction2 = ((high & 3) << 8) + low;
|
|
13115
|
+
let magnitude;
|
|
13116
|
+
if (exponent === 31) {
|
|
13117
|
+
magnitude = fraction2 === 0 ? Infinity : NaN;
|
|
13118
|
+
} else if (exponent === 0) {
|
|
13119
|
+
magnitude = 2 ** -14 * (fraction2 / 1024);
|
|
13120
|
+
} else {
|
|
13121
|
+
magnitude = 2 ** (exponent - 15) * (1 + fraction2 / 1024);
|
|
13122
|
+
}
|
|
13123
|
+
return sign2 ? -magnitude : magnitude;
|
|
13124
|
+
}
|
|
13125
|
+
let DataView64$1 = class DataView64 extends DataView {
|
|
13126
|
+
getFloat16(byteOffset, littleEndian) {
|
|
13127
|
+
const bytes = [this.getUint8(byteOffset), this.getUint8(byteOffset + 1)];
|
|
13128
|
+
if (!littleEndian)
|
|
13129
|
+
bytes.reverse();
|
|
13130
|
+
return decodeFloat16(bytes[0], bytes[1]);
|
|
13131
|
+
}
|
|
13132
|
+
getUint64(byteOffset, littleEndian) {
|
|
13133
|
+
const left = BigInt(this.getUint32(byteOffset, littleEndian));
|
|
13134
|
+
const right = BigInt(this.getUint32(byteOffset + 4, littleEndian));
|
|
13135
|
+
const combined = littleEndian ? left + (right << 32n) : (left << 32n) + right;
|
|
13136
|
+
return Number(combined);
|
|
13137
|
+
}
|
|
13138
|
+
getInt64(byteOffset, littleEndian) {
|
|
13139
|
+
let low, high;
|
|
13140
|
+
if (littleEndian) {
|
|
13141
|
+
low = this.getUint32(byteOffset, true);
|
|
13142
|
+
high = this.getInt32(byteOffset + 4, true);
|
|
13143
|
+
} else {
|
|
13144
|
+
high = this.getInt32(byteOffset, false);
|
|
13145
|
+
low = this.getUint32(byteOffset + 4, false);
|
|
13146
|
+
}
|
|
13147
|
+
const combined = BigInt(low) + (BigInt(high) << 32n);
|
|
13148
|
+
return Number(combined);
|
|
13149
|
+
}
|
|
13150
|
+
getString(byteOffset, _littleEndian, length2) {
|
|
13151
|
+
const str_buffer = this.buffer.slice(byteOffset, byteOffset + length2);
|
|
13152
|
+
return new TextDecoder().decode(str_buffer);
|
|
13153
|
+
}
|
|
13154
|
+
getVLENStruct(byteOffset, littleEndian, _length) {
|
|
13155
|
+
const item_size = this.getUint32(byteOffset, littleEndian);
|
|
13156
|
+
const collection_address = this.getUint64(byteOffset + 4, littleEndian);
|
|
13157
|
+
const object_index = this.getUint32(byteOffset + 12, littleEndian);
|
|
13158
|
+
return [item_size, collection_address, object_index];
|
|
13159
|
+
}
|
|
13160
|
+
};
|
|
13161
|
+
class Struct {
|
|
13162
|
+
big_endian;
|
|
13163
|
+
getters;
|
|
13164
|
+
byte_lengths;
|
|
13165
|
+
fmt_size_regex;
|
|
13166
|
+
constructor() {
|
|
13167
|
+
this.big_endian = isBigEndian();
|
|
13168
|
+
this.getters = {
|
|
13169
|
+
s: "getUint8",
|
|
13170
|
+
b: "getInt8",
|
|
13171
|
+
B: "getUint8",
|
|
13172
|
+
h: "getInt16",
|
|
13173
|
+
H: "getUint16",
|
|
13174
|
+
i: "getInt32",
|
|
13175
|
+
I: "getUint32",
|
|
13176
|
+
l: "getInt32",
|
|
13177
|
+
L: "getUint32",
|
|
13178
|
+
q: "getInt64",
|
|
13179
|
+
Q: "getUint64",
|
|
13180
|
+
e: "getFloat16",
|
|
13181
|
+
f: "getFloat32",
|
|
13182
|
+
d: "getFloat64"
|
|
13183
|
+
};
|
|
13184
|
+
this.byte_lengths = {
|
|
13185
|
+
s: 1,
|
|
13186
|
+
b: 1,
|
|
13187
|
+
B: 1,
|
|
13188
|
+
h: 2,
|
|
13189
|
+
H: 2,
|
|
13190
|
+
i: 4,
|
|
13191
|
+
I: 4,
|
|
13192
|
+
l: 4,
|
|
13193
|
+
L: 4,
|
|
13194
|
+
q: 8,
|
|
13195
|
+
Q: 8,
|
|
13196
|
+
e: 2,
|
|
13197
|
+
f: 4,
|
|
13198
|
+
d: 8
|
|
13199
|
+
};
|
|
13200
|
+
const all_formats = Object.keys(this.byte_lengths).join("");
|
|
13201
|
+
this.fmt_size_regex = "(\\d*)([" + all_formats + "])";
|
|
13202
|
+
}
|
|
13203
|
+
calcsize(fmt) {
|
|
13204
|
+
let size2 = 0;
|
|
13205
|
+
const regex = new RegExp(this.fmt_size_regex, "g");
|
|
13206
|
+
let match2;
|
|
13207
|
+
while ((match2 = regex.exec(fmt)) !== null) {
|
|
13208
|
+
const n3 = parseInt(match2[1] || "1", 10);
|
|
13209
|
+
const f2 = match2[2];
|
|
13210
|
+
size2 += n3 * this.byte_lengths[f2];
|
|
13211
|
+
}
|
|
13212
|
+
return size2;
|
|
13213
|
+
}
|
|
13214
|
+
_is_big_endian(fmt) {
|
|
13215
|
+
if (/^</.test(fmt))
|
|
13216
|
+
return false;
|
|
13217
|
+
if (/^(!|>)/.test(fmt))
|
|
13218
|
+
return true;
|
|
13219
|
+
return this.big_endian;
|
|
13220
|
+
}
|
|
13221
|
+
unpack_from(fmt, buffer2, offset2) {
|
|
13222
|
+
offset2 = Number(offset2 || 0);
|
|
13223
|
+
const view = new DataView64$1(buffer2, 0);
|
|
13224
|
+
const output = [];
|
|
13225
|
+
const big_endian = this._is_big_endian(fmt);
|
|
13226
|
+
const regex = new RegExp(this.fmt_size_regex, "g");
|
|
13227
|
+
let match2;
|
|
13228
|
+
while ((match2 = regex.exec(fmt)) !== null) {
|
|
13229
|
+
const n3 = parseInt(match2[1] || "1", 10);
|
|
13230
|
+
const f2 = match2[2];
|
|
13231
|
+
const getter = this.getters[f2];
|
|
13232
|
+
const size2 = this.byte_lengths[f2];
|
|
13233
|
+
if (f2 === "s") {
|
|
13234
|
+
output.push(new TextDecoder().decode(buffer2.slice(offset2, offset2 + n3)));
|
|
13235
|
+
offset2 += n3;
|
|
13236
|
+
} else {
|
|
13237
|
+
for (let i2 = 0; i2 < n3; i2++) {
|
|
13238
|
+
output.push(view[getter](offset2, !big_endian));
|
|
13239
|
+
offset2 += size2;
|
|
13240
|
+
}
|
|
13241
|
+
}
|
|
13242
|
+
}
|
|
13243
|
+
return output;
|
|
13244
|
+
}
|
|
13245
|
+
}
|
|
13246
|
+
const struct = new Struct();
|
|
13247
|
+
const DATATYPE_MSG = /* @__PURE__ */ new Map([
|
|
13248
|
+
["class_and_version", "B"],
|
|
13249
|
+
["class_bit_field_0", "B"],
|
|
13250
|
+
["class_bit_field_1", "B"],
|
|
13251
|
+
["class_bit_field_2", "B"],
|
|
13252
|
+
["size", "I"]
|
|
13253
|
+
]);
|
|
13254
|
+
_structure_size(DATATYPE_MSG);
|
|
13255
|
+
const B_LINK_NODE_V1 = /* @__PURE__ */ new Map([
|
|
13256
|
+
["signature", "4s"],
|
|
13257
|
+
["node_type", "B"],
|
|
13258
|
+
["node_level", "B"],
|
|
13259
|
+
["entries_used", "H"],
|
|
13260
|
+
["left_sibling", "Q"],
|
|
13261
|
+
["right_sibling", "Q"]
|
|
13262
|
+
]);
|
|
13263
|
+
_structure_size(B_LINK_NODE_V1);
|
|
13264
|
+
const B_LINK_NODE_V2 = /* @__PURE__ */ new Map([
|
|
13265
|
+
["signature", "4s"],
|
|
13266
|
+
["version", "B"],
|
|
13267
|
+
["node_type", "B"]
|
|
13268
|
+
]);
|
|
13269
|
+
_structure_size(B_LINK_NODE_V2);
|
|
13270
|
+
struct.unpack_from("8s", new Uint8Array([137, 72, 68, 70, 13, 10, 26, 10]).buffer)[0];
|
|
13271
|
+
struct.unpack_from("<Q", new Uint8Array([255, 255, 255, 255, 255, 255, 255, 255]).buffer)[0];
|
|
13272
|
+
const SUPERBLOCK_V0 = /* @__PURE__ */ new Map([
|
|
13273
|
+
["format_signature", "8s"],
|
|
13274
|
+
["superblock_version", "B"],
|
|
13275
|
+
["free_storage_version", "B"],
|
|
13276
|
+
["root_group_version", "B"],
|
|
13277
|
+
["reserved_0", "B"],
|
|
13278
|
+
["shared_header_version", "B"],
|
|
13279
|
+
["offset_size", "B"],
|
|
13280
|
+
["length_size", "B"],
|
|
13281
|
+
["reserved_1", "B"],
|
|
13282
|
+
["group_leaf_node_k", "H"],
|
|
13283
|
+
["group_internal_node_k", "H"],
|
|
13284
|
+
["file_consistency_flags", "L"],
|
|
13285
|
+
["base_address_lower", "Q"],
|
|
13286
|
+
["free_space_address", "Q"],
|
|
13287
|
+
["end_of_file_address", "Q"],
|
|
13288
|
+
["driver_information_address", "Q"]
|
|
13289
|
+
]);
|
|
13290
|
+
_structure_size(SUPERBLOCK_V0);
|
|
13291
|
+
const SUPERBLOCK_V2_V3 = /* @__PURE__ */ new Map([
|
|
13292
|
+
["format_signature", "8s"],
|
|
13293
|
+
["superblock_version", "B"],
|
|
13294
|
+
["offset_size", "B"],
|
|
13295
|
+
["length_size", "B"],
|
|
13296
|
+
["file_consistency_flags", "B"],
|
|
13297
|
+
["base_address", "Q"],
|
|
13298
|
+
["superblock_extension_address", "Q"],
|
|
13299
|
+
["end_of_file_address", "Q"],
|
|
13300
|
+
["root_group_address", "Q"],
|
|
13301
|
+
["superblock_checksum", "I"]
|
|
13302
|
+
]);
|
|
13303
|
+
_structure_size(SUPERBLOCK_V2_V3);
|
|
13304
|
+
const SYMBOL_TABLE_ENTRY = /* @__PURE__ */ new Map([
|
|
13305
|
+
["link_name_offset", "Q"],
|
|
13306
|
+
["object_header_address", "Q"],
|
|
13307
|
+
["cache_type", "I"],
|
|
13308
|
+
["reserved", "I"],
|
|
13309
|
+
["scratch", "16s"]
|
|
13310
|
+
]);
|
|
13311
|
+
_structure_size(SYMBOL_TABLE_ENTRY);
|
|
13312
|
+
const SYMBOL_TABLE_NODE = /* @__PURE__ */ new Map([
|
|
13313
|
+
["signature", "4s"],
|
|
13314
|
+
["version", "B"],
|
|
13315
|
+
["reserved_0", "B"],
|
|
13316
|
+
["symbols", "H"]
|
|
13317
|
+
]);
|
|
13318
|
+
_structure_size(SYMBOL_TABLE_NODE);
|
|
13319
|
+
const GLOBAL_HEAP_HEADER = /* @__PURE__ */ new Map([
|
|
13320
|
+
["signature", "4s"],
|
|
13321
|
+
["version", "B"],
|
|
13322
|
+
["reserved", "3s"],
|
|
13323
|
+
["collection_size", "Q"]
|
|
13324
|
+
]);
|
|
13325
|
+
_structure_size(GLOBAL_HEAP_HEADER);
|
|
13326
|
+
const GLOBAL_HEAP_OBJECT = /* @__PURE__ */ new Map([
|
|
13327
|
+
["object_index", "H"],
|
|
13328
|
+
["reference_count", "H"],
|
|
13329
|
+
["reserved", "I"],
|
|
13330
|
+
["object_size", "Q"]
|
|
13331
|
+
]);
|
|
13332
|
+
_structure_size(GLOBAL_HEAP_OBJECT);
|
|
13333
|
+
const OBJECT_HEADER_V1 = /* @__PURE__ */ new Map([
|
|
13334
|
+
["version", "B"],
|
|
13335
|
+
["reserved", "B"],
|
|
13336
|
+
["total_header_messages", "H"],
|
|
13337
|
+
["object_reference_count", "I"],
|
|
13338
|
+
["object_header_size", "I"],
|
|
13339
|
+
["padding", "I"]
|
|
13340
|
+
]);
|
|
13341
|
+
_structure_size(OBJECT_HEADER_V1);
|
|
13342
|
+
const OBJECT_HEADER_V2 = /* @__PURE__ */ new Map([
|
|
13343
|
+
["signature", "4s"],
|
|
13344
|
+
["version", "B"],
|
|
13345
|
+
["flags", "B"]
|
|
13346
|
+
]);
|
|
13347
|
+
_structure_size(OBJECT_HEADER_V2);
|
|
13348
|
+
const HEADER_MSG_INFO_V1 = /* @__PURE__ */ new Map([
|
|
13349
|
+
["type", "H"],
|
|
13350
|
+
["size", "H"],
|
|
13351
|
+
["flags", "B"],
|
|
13352
|
+
["reserved", "3s"]
|
|
13353
|
+
]);
|
|
13354
|
+
_structure_size(HEADER_MSG_INFO_V1);
|
|
13355
|
+
const HEADER_MSG_INFO_V2 = /* @__PURE__ */ new Map([
|
|
13356
|
+
["type", "B"],
|
|
13357
|
+
["size", "H"],
|
|
13358
|
+
["flags", "B"]
|
|
13359
|
+
]);
|
|
13360
|
+
_structure_size(HEADER_MSG_INFO_V2);
|
|
13361
|
+
const ATTR_MSG_HEADER_V1 = /* @__PURE__ */ new Map([
|
|
13362
|
+
["version", "B"],
|
|
13363
|
+
["reserved", "B"],
|
|
13364
|
+
["name_size", "H"],
|
|
13365
|
+
["datatype_size", "H"],
|
|
13366
|
+
["dataspace_size", "H"]
|
|
13367
|
+
]);
|
|
13368
|
+
_structure_size(ATTR_MSG_HEADER_V1);
|
|
13369
|
+
const ATTR_MSG_HEADER_V3 = /* @__PURE__ */ new Map([
|
|
13370
|
+
["version", "B"],
|
|
13371
|
+
["flags", "B"],
|
|
13372
|
+
["name_size", "H"],
|
|
13373
|
+
["datatype_size", "H"],
|
|
13374
|
+
["dataspace_size", "H"],
|
|
13375
|
+
["character_set_encoding", "B"]
|
|
13376
|
+
]);
|
|
13377
|
+
_structure_size(ATTR_MSG_HEADER_V3);
|
|
13378
|
+
const DATASPACE_MSG_HEADER_V1 = /* @__PURE__ */ new Map([
|
|
13379
|
+
["version", "B"],
|
|
13380
|
+
["dimensionality", "B"],
|
|
13381
|
+
["flags", "B"],
|
|
13382
|
+
["reserved_0", "B"],
|
|
13383
|
+
["reserved_1", "I"]
|
|
13384
|
+
]);
|
|
13385
|
+
_structure_size(DATASPACE_MSG_HEADER_V1);
|
|
13386
|
+
const DATASPACE_MSG_HEADER_V2 = /* @__PURE__ */ new Map([
|
|
13387
|
+
["version", "B"],
|
|
13388
|
+
["dimensionality", "B"],
|
|
13389
|
+
["flags", "B"],
|
|
13390
|
+
["type", "B"]
|
|
13391
|
+
]);
|
|
13392
|
+
_structure_size(DATASPACE_MSG_HEADER_V2);
|
|
13393
|
+
const FILLVAL_MSG_V1V2 = /* @__PURE__ */ new Map([
|
|
13394
|
+
["version", "B"],
|
|
13395
|
+
["space_allocation_time", "B"],
|
|
13396
|
+
["fillvalue_write_time", "B"],
|
|
13397
|
+
["fillvalue_defined", "B"]
|
|
13398
|
+
]);
|
|
13399
|
+
_structure_size(FILLVAL_MSG_V1V2);
|
|
13400
|
+
const FILLVAL_MSG_V3 = /* @__PURE__ */ new Map([
|
|
13401
|
+
["version", "B"],
|
|
13402
|
+
["flags", "B"]
|
|
13403
|
+
]);
|
|
13404
|
+
_structure_size(FILLVAL_MSG_V3);
|
|
13405
|
+
const FILTER_PIPELINE_DESCR_V1 = /* @__PURE__ */ new Map([
|
|
13406
|
+
["filter_id", "H"],
|
|
13407
|
+
["name_length", "H"],
|
|
13408
|
+
["flags", "H"],
|
|
13409
|
+
["client_data_values", "H"]
|
|
13410
|
+
]);
|
|
13411
|
+
_structure_size(FILTER_PIPELINE_DESCR_V1);
|
|
13412
|
+
const GLOBAL_HEAP_ID = /* @__PURE__ */ new Map([
|
|
13413
|
+
["collection_address", "Q"],
|
|
13414
|
+
["object_index", "I"]
|
|
13415
|
+
]);
|
|
13416
|
+
_structure_size(GLOBAL_HEAP_ID);
|
|
13417
|
+
let table = new Uint8Array(128);
|
|
13418
|
+
for (let i2 = 0; i2 < 64; i2++) {
|
|
13419
|
+
table[i2 < 26 ? i2 + 65 : i2 < 52 ? i2 + 71 : i2 < 62 ? i2 - 4 : i2 * 4 - 205] = i2;
|
|
13420
|
+
}
|
|
12939
13421
|
const withGetRange = defineStoreExtension((innerStore) => ({
|
|
12940
13422
|
async getRange(...args) {
|
|
12941
13423
|
const [key, range2, opts] = args;
|
|
@@ -12957,6 +13439,56 @@ const withGetRange = defineStoreExtension((innerStore) => ({
|
|
|
12957
13439
|
throw new Error("Invalid rangeQuery value.");
|
|
12958
13440
|
}
|
|
12959
13441
|
}));
|
|
13442
|
+
function isAbortError(error2) {
|
|
13443
|
+
return error2?.name === "AbortError";
|
|
13444
|
+
}
|
|
13445
|
+
function raceAbortSignal(promise, signal) {
|
|
13446
|
+
if (!signal)
|
|
13447
|
+
return promise;
|
|
13448
|
+
if (signal.aborted)
|
|
13449
|
+
return Promise.reject(signal.reason);
|
|
13450
|
+
return new Promise((resolve2, reject) => {
|
|
13451
|
+
const onAbort = () => reject(signal.reason);
|
|
13452
|
+
signal.addEventListener("abort", onAbort, { once: true });
|
|
13453
|
+
promise.then((value) => {
|
|
13454
|
+
signal.removeEventListener("abort", onAbort);
|
|
13455
|
+
resolve2(value);
|
|
13456
|
+
}, (error2) => {
|
|
13457
|
+
signal.removeEventListener("abort", onAbort);
|
|
13458
|
+
reject(error2);
|
|
13459
|
+
});
|
|
13460
|
+
});
|
|
13461
|
+
}
|
|
13462
|
+
function createSharedAbort(onAbort) {
|
|
13463
|
+
const controller = new AbortController();
|
|
13464
|
+
let activeCallers = 0;
|
|
13465
|
+
const cleanups = [];
|
|
13466
|
+
function attach(callerSignal) {
|
|
13467
|
+
if (controller.signal.aborted)
|
|
13468
|
+
return;
|
|
13469
|
+
activeCallers += 1;
|
|
13470
|
+
if (!callerSignal)
|
|
13471
|
+
return;
|
|
13472
|
+
const onCallerAbort = () => {
|
|
13473
|
+
activeCallers -= 1;
|
|
13474
|
+
if (activeCallers === 0) {
|
|
13475
|
+
controller.abort(callerSignal.reason);
|
|
13476
|
+
onAbort?.();
|
|
13477
|
+
}
|
|
13478
|
+
};
|
|
13479
|
+
if (callerSignal.aborted) {
|
|
13480
|
+
onCallerAbort();
|
|
13481
|
+
return;
|
|
13482
|
+
}
|
|
13483
|
+
callerSignal.addEventListener("abort", onCallerAbort, { once: true });
|
|
13484
|
+
cleanups.push(() => callerSignal.removeEventListener("abort", onCallerAbort));
|
|
13485
|
+
}
|
|
13486
|
+
function release() {
|
|
13487
|
+
cleanups.forEach((cleanup) => cleanup());
|
|
13488
|
+
cleanups.length = 0;
|
|
13489
|
+
}
|
|
13490
|
+
return { signal: controller.signal, attach, release };
|
|
13491
|
+
}
|
|
12960
13492
|
async function relaxedFetch(...args) {
|
|
12961
13493
|
const response = await fetch(...args);
|
|
12962
13494
|
if (response.status === 403) {
|
|
@@ -12966,6 +13498,7 @@ async function relaxedFetch(...args) {
|
|
|
12966
13498
|
}
|
|
12967
13499
|
const CHUNK_GC_TIME = 3e4;
|
|
12968
13500
|
const UNDEFINED_SENTINEL = null;
|
|
13501
|
+
const MAX_ABORT_RETRIES = 2;
|
|
12969
13502
|
const UNCACHED_READ = "vitessceUncachedRead";
|
|
12970
13503
|
function splitReadOptions(opts) {
|
|
12971
13504
|
if (!opts || !opts[UNCACHED_READ]) {
|
|
@@ -12976,30 +13509,59 @@ function splitReadOptions(opts) {
|
|
|
12976
13509
|
return [true, rest];
|
|
12977
13510
|
}
|
|
12978
13511
|
function makeCacheFetch(queryClient) {
|
|
12979
|
-
|
|
12980
|
-
|
|
13512
|
+
const inflight = /* @__PURE__ */ new Map();
|
|
13513
|
+
function read(cacheKey, fn) {
|
|
13514
|
+
if (!queryClient) {
|
|
13515
|
+
return (signal) => Promise.resolve(fn(signal));
|
|
13516
|
+
}
|
|
13517
|
+
return async (signal) => {
|
|
12981
13518
|
const result = await queryClient.fetchQuery({
|
|
12982
13519
|
queryKey: cacheKey,
|
|
12983
|
-
queryFn: async () => await fn() ?? UNDEFINED_SENTINEL,
|
|
13520
|
+
queryFn: async () => await fn(signal) ?? UNDEFINED_SENTINEL,
|
|
12984
13521
|
staleTime: Infinity,
|
|
12985
13522
|
gcTime: CHUNK_GC_TIME
|
|
12986
13523
|
});
|
|
12987
13524
|
return result === UNDEFINED_SENTINEL ? void 0 : result;
|
|
12988
13525
|
};
|
|
12989
13526
|
}
|
|
12990
|
-
|
|
12991
|
-
return (cacheKey, fn) => {
|
|
13527
|
+
function readShared(cacheKey, fn, signal) {
|
|
12992
13528
|
const key = JSON.stringify(cacheKey);
|
|
12993
|
-
let
|
|
12994
|
-
if (!
|
|
12995
|
-
|
|
12996
|
-
inflight.
|
|
12997
|
-
|
|
12998
|
-
|
|
13529
|
+
let entry = inflight.get(key);
|
|
13530
|
+
if (!entry) {
|
|
13531
|
+
const forget = () => {
|
|
13532
|
+
if (inflight.get(key) === entry)
|
|
13533
|
+
inflight.delete(key);
|
|
13534
|
+
};
|
|
13535
|
+
const shared = createSharedAbort(forget);
|
|
13536
|
+
const newEntry = {
|
|
13537
|
+
shared,
|
|
13538
|
+
promise: read(cacheKey, fn)(shared.signal).finally(() => {
|
|
13539
|
+
shared.release();
|
|
13540
|
+
forget();
|
|
13541
|
+
})
|
|
13542
|
+
};
|
|
13543
|
+
entry = newEntry;
|
|
13544
|
+
inflight.set(key, newEntry);
|
|
13545
|
+
}
|
|
13546
|
+
entry.shared.attach(signal);
|
|
13547
|
+
return raceAbortSignal(entry.promise, signal);
|
|
13548
|
+
}
|
|
13549
|
+
return async (cacheKey, fn, signal) => {
|
|
13550
|
+
for (let attempt = 0; ; attempt++) {
|
|
13551
|
+
try {
|
|
13552
|
+
return await readShared(cacheKey, fn, signal);
|
|
13553
|
+
} catch (error2) {
|
|
13554
|
+
if (signal?.aborted || !isAbortError(error2) || attempt >= MAX_ABORT_RETRIES) {
|
|
13555
|
+
throw error2;
|
|
13556
|
+
}
|
|
13557
|
+
}
|
|
12999
13558
|
}
|
|
13000
|
-
return promise;
|
|
13001
13559
|
};
|
|
13002
13560
|
}
|
|
13561
|
+
function splitSignal(opts) {
|
|
13562
|
+
const { signal, ...init2 } = opts ?? {};
|
|
13563
|
+
return [signal ?? void 0, init2];
|
|
13564
|
+
}
|
|
13003
13565
|
const withQueryClientCache = defineStoreExtension((innerStore, extOpts) => {
|
|
13004
13566
|
const { cacheKeyPrefix, queryClient } = extOpts;
|
|
13005
13567
|
const cacheFetch = makeCacheFetch(queryClient);
|
|
@@ -13010,7 +13572,8 @@ const withQueryClientCache = defineStoreExtension((innerStore, extOpts) => {
|
|
|
13010
13572
|
if (uncached) {
|
|
13011
13573
|
return innerStore.get(key, rest);
|
|
13012
13574
|
}
|
|
13013
|
-
|
|
13575
|
+
const [signal, init2] = splitSignal(rest);
|
|
13576
|
+
return cacheFetch(["zarrStore", cacheKeyPrefix, key], (sharedSignal) => innerStore.get(key, { ...init2, signal: sharedSignal }), signal);
|
|
13014
13577
|
},
|
|
13015
13578
|
async getRange(...args) {
|
|
13016
13579
|
const [key, range2, opts] = args;
|
|
@@ -13021,19 +13584,24 @@ const withQueryClientCache = defineStoreExtension((innerStore, extOpts) => {
|
|
|
13021
13584
|
if (uncached) {
|
|
13022
13585
|
return innerStore.getRange(key, range2, rest);
|
|
13023
13586
|
}
|
|
13024
|
-
|
|
13587
|
+
const [signal, init2] = splitSignal(rest);
|
|
13588
|
+
return cacheFetch(["zarrStore", cacheKeyPrefix, key, range2], (sharedSignal) => {
|
|
13025
13589
|
if (typeof innerStore.getRange !== "function") {
|
|
13026
13590
|
throw new Error("innerStore does not implement getRange");
|
|
13027
13591
|
}
|
|
13028
|
-
return innerStore.getRange(key, range2,
|
|
13029
|
-
});
|
|
13592
|
+
return innerStore.getRange(key, range2, { ...init2, signal: sharedSignal });
|
|
13593
|
+
}, signal);
|
|
13030
13594
|
}
|
|
13031
13595
|
};
|
|
13032
13596
|
});
|
|
13033
13597
|
function applyStoreExtensions(store, url, queryClient) {
|
|
13034
13598
|
return extendStore(
|
|
13035
13599
|
store,
|
|
13600
|
+
// Ensure getRange is implemented (required by withRangeCoalescing).
|
|
13036
13601
|
withGetRange,
|
|
13602
|
+
// Concurrent getRange calls for the same key (e.g. sharded chunks)
|
|
13603
|
+
// within a single microtask are merged into fewer, larger range requests.
|
|
13604
|
+
(s2) => withRangeCoalescing(s2),
|
|
13037
13605
|
// Wrap remote stores in a read-through cache, so that concurrent reads of the
|
|
13038
13606
|
// same chunk (e.g. multiple embedding dims within one chunk column-block) share
|
|
13039
13607
|
// one request instead of downloading it once per reader.
|
|
@@ -35223,16 +35791,16 @@ class Stats {
|
|
|
35223
35791
|
}
|
|
35224
35792
|
}
|
|
35225
35793
|
getTable() {
|
|
35226
|
-
const
|
|
35794
|
+
const table2 = {};
|
|
35227
35795
|
this.forEach((stat) => {
|
|
35228
|
-
|
|
35796
|
+
table2[stat.name] = {
|
|
35229
35797
|
time: stat.time || 0,
|
|
35230
35798
|
count: stat.count || 0,
|
|
35231
35799
|
average: stat.getAverageTime() || 0,
|
|
35232
35800
|
hz: stat.getHz() || 0
|
|
35233
35801
|
};
|
|
35234
35802
|
});
|
|
35235
|
-
return
|
|
35803
|
+
return table2;
|
|
35236
35804
|
}
|
|
35237
35805
|
_initializeStats() {
|
|
35238
35806
|
let stats = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
@@ -35890,10 +36458,10 @@ class Log {
|
|
|
35890
36458
|
}
|
|
35891
36459
|
return this._getLogFunction(logLevel, message, originalConsole.debug || originalConsole.info, arguments, ONCE);
|
|
35892
36460
|
}
|
|
35893
|
-
table(logLevel,
|
|
35894
|
-
if (
|
|
35895
|
-
return this._getLogFunction(logLevel,
|
|
35896
|
-
tag: getTableHeader(
|
|
36461
|
+
table(logLevel, table2, columns) {
|
|
36462
|
+
if (table2) {
|
|
36463
|
+
return this._getLogFunction(logLevel, table2, console.table || noop$4, columns && [columns], {
|
|
36464
|
+
tag: getTableHeader(table2)
|
|
35897
36465
|
});
|
|
35898
36466
|
}
|
|
35899
36467
|
return noop$4;
|
|
@@ -36093,9 +36661,9 @@ function logImageInBrowser(_ref3) {
|
|
|
36093
36661
|
}
|
|
36094
36662
|
return noop$4;
|
|
36095
36663
|
}
|
|
36096
|
-
function getTableHeader(
|
|
36097
|
-
for (const key in
|
|
36098
|
-
for (const title in
|
|
36664
|
+
function getTableHeader(table2) {
|
|
36665
|
+
for (const key in table2) {
|
|
36666
|
+
for (const title in table2[key]) {
|
|
36099
36667
|
return title || "untitled";
|
|
36100
36668
|
}
|
|
36101
36669
|
}
|
|
@@ -43539,13 +44107,13 @@ function getDebugTableForUniforms(_ref) {
|
|
|
43539
44107
|
const SHADER_MODULE_UNIFORM_REGEXP = ".*_.*";
|
|
43540
44108
|
const PROJECT_MODULE_UNIFORM_REGEXP = ".*Matrix";
|
|
43541
44109
|
const uniformLocations = program._uniformSetters;
|
|
43542
|
-
const
|
|
44110
|
+
const table2 = {};
|
|
43543
44111
|
const uniformNames = Object.keys(uniformLocations).sort();
|
|
43544
44112
|
let count2 = 0;
|
|
43545
44113
|
for (const uniformName of uniformNames) {
|
|
43546
44114
|
if (!uniformName.match(SHADER_MODULE_UNIFORM_REGEXP) && !uniformName.match(PROJECT_MODULE_UNIFORM_REGEXP)) {
|
|
43547
44115
|
if (addUniformToTable({
|
|
43548
|
-
table,
|
|
44116
|
+
table: table2,
|
|
43549
44117
|
header,
|
|
43550
44118
|
uniforms,
|
|
43551
44119
|
uniformName,
|
|
@@ -43558,7 +44126,7 @@ function getDebugTableForUniforms(_ref) {
|
|
|
43558
44126
|
for (const uniformName of uniformNames) {
|
|
43559
44127
|
if (uniformName.match(PROJECT_MODULE_UNIFORM_REGEXP)) {
|
|
43560
44128
|
if (addUniformToTable({
|
|
43561
|
-
table,
|
|
44129
|
+
table: table2,
|
|
43562
44130
|
header,
|
|
43563
44131
|
uniforms,
|
|
43564
44132
|
uniformName,
|
|
@@ -43569,9 +44137,9 @@ function getDebugTableForUniforms(_ref) {
|
|
|
43569
44137
|
}
|
|
43570
44138
|
}
|
|
43571
44139
|
for (const uniformName of uniformNames) {
|
|
43572
|
-
if (!
|
|
44140
|
+
if (!table2[uniformName]) {
|
|
43573
44141
|
if (addUniformToTable({
|
|
43574
|
-
table,
|
|
44142
|
+
table: table2,
|
|
43575
44143
|
header,
|
|
43576
44144
|
uniforms,
|
|
43577
44145
|
uniformName,
|
|
@@ -43586,7 +44154,7 @@ function getDebugTableForUniforms(_ref) {
|
|
|
43586
44154
|
if (!undefinedOnly) {
|
|
43587
44155
|
for (const uniformName in uniforms) {
|
|
43588
44156
|
const uniform = uniforms[uniformName];
|
|
43589
|
-
if (!
|
|
44157
|
+
if (!table2[uniformName]) {
|
|
43590
44158
|
unusedCount++;
|
|
43591
44159
|
unusedTable[uniformName] = {
|
|
43592
44160
|
Type: "NOT USED: ".concat(uniform),
|
|
@@ -43596,7 +44164,7 @@ function getDebugTableForUniforms(_ref) {
|
|
|
43596
44164
|
}
|
|
43597
44165
|
}
|
|
43598
44166
|
return {
|
|
43599
|
-
table,
|
|
44167
|
+
table: table2,
|
|
43600
44168
|
count: count2,
|
|
43601
44169
|
unusedTable,
|
|
43602
44170
|
unusedCount
|
|
@@ -43604,7 +44172,7 @@ function getDebugTableForUniforms(_ref) {
|
|
|
43604
44172
|
}
|
|
43605
44173
|
function addUniformToTable(_ref2) {
|
|
43606
44174
|
let {
|
|
43607
|
-
table,
|
|
44175
|
+
table: table2,
|
|
43608
44176
|
header,
|
|
43609
44177
|
uniforms,
|
|
43610
44178
|
uniformName,
|
|
@@ -43613,7 +44181,7 @@ function addUniformToTable(_ref2) {
|
|
|
43613
44181
|
const value = uniforms[uniformName];
|
|
43614
44182
|
const isDefined = isUniformDefined(value);
|
|
43615
44183
|
if (!undefinedOnly || !isDefined) {
|
|
43616
|
-
|
|
44184
|
+
table2[uniformName] = {
|
|
43617
44185
|
[header]: isDefined ? formatValue(value) : "N/A",
|
|
43618
44186
|
"Uniform Type": isDefined ? value : "NOT PROVIDED"
|
|
43619
44187
|
};
|
|
@@ -43632,9 +44200,9 @@ function getDebugTableForVertexArray(_ref) {
|
|
|
43632
44200
|
if (!vertexArray.configuration) {
|
|
43633
44201
|
return {};
|
|
43634
44202
|
}
|
|
43635
|
-
const
|
|
44203
|
+
const table2 = {};
|
|
43636
44204
|
if (vertexArray.elements) {
|
|
43637
|
-
|
|
44205
|
+
table2.ELEMENT_ARRAY_BUFFER = getDebugTableRow(vertexArray, vertexArray.elements, null, header);
|
|
43638
44206
|
}
|
|
43639
44207
|
const attributes = vertexArray.values;
|
|
43640
44208
|
for (const attributeLocation in attributes) {
|
|
@@ -43645,10 +44213,10 @@ function getDebugTableForVertexArray(_ref) {
|
|
|
43645
44213
|
if (accessor) {
|
|
43646
44214
|
rowHeader = "".concat(attributeLocation, ": ").concat(getGLSLDeclaration$1(info.name, accessor));
|
|
43647
44215
|
}
|
|
43648
|
-
|
|
44216
|
+
table2[rowHeader] = getDebugTableRow(vertexArray, attributes[attributeLocation], accessor, header);
|
|
43649
44217
|
}
|
|
43650
44218
|
}
|
|
43651
|
-
return
|
|
44219
|
+
return table2;
|
|
43652
44220
|
}
|
|
43653
44221
|
function getDebugTableRow(vertexArray, attribute, accessor, header) {
|
|
43654
44222
|
const {
|
|
@@ -43720,12 +44288,12 @@ function getGLSLDeclaration$1(name2, accessor) {
|
|
|
43720
44288
|
return typeAndName ? "".concat(name2, " (").concat(typeAndName.name, ")") : name2;
|
|
43721
44289
|
}
|
|
43722
44290
|
function getDebugTableForProgramConfiguration(config3) {
|
|
43723
|
-
const
|
|
44291
|
+
const table2 = {};
|
|
43724
44292
|
const header = "Accessors for ".concat(config3.id);
|
|
43725
44293
|
for (const attributeInfo of config3.attributeInfos) {
|
|
43726
44294
|
if (attributeInfo) {
|
|
43727
44295
|
const glslDeclaration = getGLSLDeclaration(attributeInfo);
|
|
43728
|
-
|
|
44296
|
+
table2["in ".concat(glslDeclaration)] = {
|
|
43729
44297
|
[header]: JSON.stringify(attributeInfo.accessor)
|
|
43730
44298
|
};
|
|
43731
44299
|
}
|
|
@@ -43733,12 +44301,12 @@ function getDebugTableForProgramConfiguration(config3) {
|
|
|
43733
44301
|
for (const varyingInfo of config3.varyingInfos) {
|
|
43734
44302
|
if (varyingInfo) {
|
|
43735
44303
|
const glslDeclaration = getGLSLDeclaration(varyingInfo);
|
|
43736
|
-
|
|
44304
|
+
table2["out ".concat(glslDeclaration)] = {
|
|
43737
44305
|
[header]: JSON.stringify(varyingInfo.accessor)
|
|
43738
44306
|
};
|
|
43739
44307
|
}
|
|
43740
44308
|
}
|
|
43741
|
-
return
|
|
44309
|
+
return table2;
|
|
43742
44310
|
}
|
|
43743
44311
|
function getGLSLDeclaration(attributeInfo) {
|
|
43744
44312
|
const {
|
|
@@ -111777,223 +112345,373 @@ function requireLayerMouseEvent() {
|
|
|
111777
112345
|
return layerMouseEvent;
|
|
111778
112346
|
}
|
|
111779
112347
|
var nebulaLayer = {};
|
|
111780
|
-
var events;
|
|
112348
|
+
var events = { exports: {} };
|
|
111781
112349
|
var hasRequiredEvents;
|
|
111782
112350
|
function requireEvents() {
|
|
111783
|
-
if (hasRequiredEvents) return events;
|
|
112351
|
+
if (hasRequiredEvents) return events.exports;
|
|
111784
112352
|
hasRequiredEvents = 1;
|
|
112353
|
+
var R = typeof Reflect === "object" ? Reflect : null;
|
|
112354
|
+
var ReflectApply2 = R && typeof R.apply === "function" ? R.apply : function ReflectApply3(target, receiver, args) {
|
|
112355
|
+
return Function.prototype.apply.call(target, receiver, args);
|
|
112356
|
+
};
|
|
112357
|
+
var ReflectOwnKeys2;
|
|
112358
|
+
if (R && typeof R.ownKeys === "function") {
|
|
112359
|
+
ReflectOwnKeys2 = R.ownKeys;
|
|
112360
|
+
} else if (Object.getOwnPropertySymbols) {
|
|
112361
|
+
ReflectOwnKeys2 = function ReflectOwnKeys3(target) {
|
|
112362
|
+
return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
|
|
112363
|
+
};
|
|
112364
|
+
} else {
|
|
112365
|
+
ReflectOwnKeys2 = function ReflectOwnKeys3(target) {
|
|
112366
|
+
return Object.getOwnPropertyNames(target);
|
|
112367
|
+
};
|
|
112368
|
+
}
|
|
112369
|
+
function ProcessEmitWarning(warning) {
|
|
112370
|
+
if (console && console.warn) console.warn(warning);
|
|
112371
|
+
}
|
|
112372
|
+
var NumberIsNaN = Number.isNaN || function NumberIsNaN2(value) {
|
|
112373
|
+
return value !== value;
|
|
112374
|
+
};
|
|
111785
112375
|
function EventEmitter() {
|
|
111786
|
-
|
|
111787
|
-
this._maxListeners = this._maxListeners || void 0;
|
|
112376
|
+
EventEmitter.init.call(this);
|
|
111788
112377
|
}
|
|
111789
|
-
events = EventEmitter;
|
|
112378
|
+
events.exports = EventEmitter;
|
|
112379
|
+
events.exports.once = once;
|
|
111790
112380
|
EventEmitter.EventEmitter = EventEmitter;
|
|
111791
112381
|
EventEmitter.prototype._events = void 0;
|
|
112382
|
+
EventEmitter.prototype._eventsCount = 0;
|
|
111792
112383
|
EventEmitter.prototype._maxListeners = void 0;
|
|
111793
|
-
|
|
111794
|
-
|
|
111795
|
-
if (
|
|
111796
|
-
throw TypeError("
|
|
112384
|
+
var defaultMaxListeners = 10;
|
|
112385
|
+
function checkListener(listener) {
|
|
112386
|
+
if (typeof listener !== "function") {
|
|
112387
|
+
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener);
|
|
112388
|
+
}
|
|
112389
|
+
}
|
|
112390
|
+
Object.defineProperty(EventEmitter, "defaultMaxListeners", {
|
|
112391
|
+
enumerable: true,
|
|
112392
|
+
get: function() {
|
|
112393
|
+
return defaultMaxListeners;
|
|
112394
|
+
},
|
|
112395
|
+
set: function(arg2) {
|
|
112396
|
+
if (typeof arg2 !== "number" || arg2 < 0 || NumberIsNaN(arg2)) {
|
|
112397
|
+
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg2 + ".");
|
|
112398
|
+
}
|
|
112399
|
+
defaultMaxListeners = arg2;
|
|
112400
|
+
}
|
|
112401
|
+
});
|
|
112402
|
+
EventEmitter.init = function() {
|
|
112403
|
+
if (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) {
|
|
112404
|
+
this._events = /* @__PURE__ */ Object.create(null);
|
|
112405
|
+
this._eventsCount = 0;
|
|
112406
|
+
}
|
|
112407
|
+
this._maxListeners = this._maxListeners || void 0;
|
|
112408
|
+
};
|
|
112409
|
+
EventEmitter.prototype.setMaxListeners = function setMaxListeners(n3) {
|
|
112410
|
+
if (typeof n3 !== "number" || n3 < 0 || NumberIsNaN(n3)) {
|
|
112411
|
+
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n3 + ".");
|
|
112412
|
+
}
|
|
111797
112413
|
this._maxListeners = n3;
|
|
111798
112414
|
return this;
|
|
111799
112415
|
};
|
|
111800
|
-
|
|
111801
|
-
|
|
111802
|
-
|
|
111803
|
-
|
|
111804
|
-
|
|
111805
|
-
|
|
111806
|
-
|
|
111807
|
-
|
|
111808
|
-
|
|
111809
|
-
|
|
111810
|
-
|
|
111811
|
-
|
|
111812
|
-
|
|
111813
|
-
|
|
111814
|
-
|
|
112416
|
+
function _getMaxListeners(that) {
|
|
112417
|
+
if (that._maxListeners === void 0)
|
|
112418
|
+
return EventEmitter.defaultMaxListeners;
|
|
112419
|
+
return that._maxListeners;
|
|
112420
|
+
}
|
|
112421
|
+
EventEmitter.prototype.getMaxListeners = function getMaxListeners() {
|
|
112422
|
+
return _getMaxListeners(this);
|
|
112423
|
+
};
|
|
112424
|
+
EventEmitter.prototype.emit = function emit(type) {
|
|
112425
|
+
var args = [];
|
|
112426
|
+
for (var i2 = 1; i2 < arguments.length; i2++) args.push(arguments[i2]);
|
|
112427
|
+
var doError = type === "error";
|
|
112428
|
+
var events2 = this._events;
|
|
112429
|
+
if (events2 !== void 0)
|
|
112430
|
+
doError = doError && events2.error === void 0;
|
|
112431
|
+
else if (!doError)
|
|
112432
|
+
return false;
|
|
112433
|
+
if (doError) {
|
|
112434
|
+
var er;
|
|
112435
|
+
if (args.length > 0)
|
|
112436
|
+
er = args[0];
|
|
112437
|
+
if (er instanceof Error) {
|
|
112438
|
+
throw er;
|
|
112439
|
+
}
|
|
112440
|
+
var err2 = new Error("Unhandled error." + (er ? " (" + er.message + ")" : ""));
|
|
112441
|
+
err2.context = er;
|
|
112442
|
+
throw err2;
|
|
111815
112443
|
}
|
|
111816
|
-
handler =
|
|
111817
|
-
if (
|
|
112444
|
+
var handler = events2[type];
|
|
112445
|
+
if (handler === void 0)
|
|
111818
112446
|
return false;
|
|
111819
|
-
if (
|
|
111820
|
-
|
|
111821
|
-
|
|
111822
|
-
|
|
111823
|
-
|
|
111824
|
-
|
|
111825
|
-
|
|
111826
|
-
handler.call(this, arguments[1]);
|
|
111827
|
-
break;
|
|
111828
|
-
case 3:
|
|
111829
|
-
handler.call(this, arguments[1], arguments[2]);
|
|
111830
|
-
break;
|
|
111831
|
-
// slower
|
|
111832
|
-
default:
|
|
111833
|
-
args = Array.prototype.slice.call(arguments, 1);
|
|
111834
|
-
handler.apply(this, args);
|
|
111835
|
-
}
|
|
111836
|
-
} else if (isObject2(handler)) {
|
|
111837
|
-
args = Array.prototype.slice.call(arguments, 1);
|
|
111838
|
-
listeners = handler.slice();
|
|
111839
|
-
len2 = listeners.length;
|
|
111840
|
-
for (i2 = 0; i2 < len2; i2++)
|
|
111841
|
-
listeners[i2].apply(this, args);
|
|
112447
|
+
if (typeof handler === "function") {
|
|
112448
|
+
ReflectApply2(handler, this, args);
|
|
112449
|
+
} else {
|
|
112450
|
+
var len2 = handler.length;
|
|
112451
|
+
var listeners = arrayClone(handler, len2);
|
|
112452
|
+
for (var i2 = 0; i2 < len2; ++i2)
|
|
112453
|
+
ReflectApply2(listeners[i2], this, args);
|
|
111842
112454
|
}
|
|
111843
112455
|
return true;
|
|
111844
112456
|
};
|
|
111845
|
-
|
|
112457
|
+
function _addListener(target, type, listener, prepend) {
|
|
111846
112458
|
var m;
|
|
111847
|
-
|
|
111848
|
-
|
|
111849
|
-
|
|
111850
|
-
|
|
111851
|
-
if (
|
|
111852
|
-
|
|
111853
|
-
|
|
111854
|
-
|
|
111855
|
-
|
|
111856
|
-
|
|
111857
|
-
|
|
111858
|
-
|
|
111859
|
-
|
|
111860
|
-
|
|
111861
|
-
|
|
111862
|
-
|
|
111863
|
-
|
|
111864
|
-
|
|
111865
|
-
|
|
112459
|
+
var events2;
|
|
112460
|
+
var existing;
|
|
112461
|
+
checkListener(listener);
|
|
112462
|
+
events2 = target._events;
|
|
112463
|
+
if (events2 === void 0) {
|
|
112464
|
+
events2 = target._events = /* @__PURE__ */ Object.create(null);
|
|
112465
|
+
target._eventsCount = 0;
|
|
112466
|
+
} else {
|
|
112467
|
+
if (events2.newListener !== void 0) {
|
|
112468
|
+
target.emit(
|
|
112469
|
+
"newListener",
|
|
112470
|
+
type,
|
|
112471
|
+
listener.listener ? listener.listener : listener
|
|
112472
|
+
);
|
|
112473
|
+
events2 = target._events;
|
|
112474
|
+
}
|
|
112475
|
+
existing = events2[type];
|
|
112476
|
+
}
|
|
112477
|
+
if (existing === void 0) {
|
|
112478
|
+
existing = events2[type] = listener;
|
|
112479
|
+
++target._eventsCount;
|
|
112480
|
+
} else {
|
|
112481
|
+
if (typeof existing === "function") {
|
|
112482
|
+
existing = events2[type] = prepend ? [listener, existing] : [existing, listener];
|
|
112483
|
+
} else if (prepend) {
|
|
112484
|
+
existing.unshift(listener);
|
|
111866
112485
|
} else {
|
|
111867
|
-
|
|
112486
|
+
existing.push(listener);
|
|
111868
112487
|
}
|
|
111869
|
-
|
|
111870
|
-
|
|
111871
|
-
|
|
111872
|
-
|
|
111873
|
-
|
|
111874
|
-
|
|
111875
|
-
|
|
111876
|
-
|
|
111877
|
-
|
|
112488
|
+
m = _getMaxListeners(target);
|
|
112489
|
+
if (m > 0 && existing.length > m && !existing.warned) {
|
|
112490
|
+
existing.warned = true;
|
|
112491
|
+
var w2 = new Error("Possible EventEmitter memory leak detected. " + existing.length + " " + String(type) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
112492
|
+
w2.name = "MaxListenersExceededWarning";
|
|
112493
|
+
w2.emitter = target;
|
|
112494
|
+
w2.type = type;
|
|
112495
|
+
w2.count = existing.length;
|
|
112496
|
+
ProcessEmitWarning(w2);
|
|
111878
112497
|
}
|
|
111879
112498
|
}
|
|
111880
|
-
return
|
|
112499
|
+
return target;
|
|
112500
|
+
}
|
|
112501
|
+
EventEmitter.prototype.addListener = function addListener(type, listener) {
|
|
112502
|
+
return _addListener(this, type, listener, false);
|
|
111881
112503
|
};
|
|
111882
112504
|
EventEmitter.prototype.on = EventEmitter.prototype.addListener;
|
|
111883
|
-
EventEmitter.prototype.
|
|
111884
|
-
|
|
111885
|
-
|
|
111886
|
-
|
|
111887
|
-
|
|
111888
|
-
this.removeListener(type,
|
|
111889
|
-
|
|
111890
|
-
|
|
111891
|
-
listener.
|
|
111892
|
-
|
|
111893
|
-
}
|
|
111894
|
-
|
|
111895
|
-
|
|
112505
|
+
EventEmitter.prototype.prependListener = function prependListener(type, listener) {
|
|
112506
|
+
return _addListener(this, type, listener, true);
|
|
112507
|
+
};
|
|
112508
|
+
function onceWrapper() {
|
|
112509
|
+
if (!this.fired) {
|
|
112510
|
+
this.target.removeListener(this.type, this.wrapFn);
|
|
112511
|
+
this.fired = true;
|
|
112512
|
+
if (arguments.length === 0)
|
|
112513
|
+
return this.listener.call(this.target);
|
|
112514
|
+
return this.listener.apply(this.target, arguments);
|
|
112515
|
+
}
|
|
112516
|
+
}
|
|
112517
|
+
function _onceWrap(target, type, listener) {
|
|
112518
|
+
var state = { fired: false, wrapFn: void 0, target, type, listener };
|
|
112519
|
+
var wrapped = onceWrapper.bind(state);
|
|
112520
|
+
wrapped.listener = listener;
|
|
112521
|
+
state.wrapFn = wrapped;
|
|
112522
|
+
return wrapped;
|
|
112523
|
+
}
|
|
112524
|
+
EventEmitter.prototype.once = function once2(type, listener) {
|
|
112525
|
+
checkListener(listener);
|
|
112526
|
+
this.on(type, _onceWrap(this, type, listener));
|
|
112527
|
+
return this;
|
|
112528
|
+
};
|
|
112529
|
+
EventEmitter.prototype.prependOnceListener = function prependOnceListener(type, listener) {
|
|
112530
|
+
checkListener(listener);
|
|
112531
|
+
this.prependListener(type, _onceWrap(this, type, listener));
|
|
111896
112532
|
return this;
|
|
111897
112533
|
};
|
|
111898
|
-
EventEmitter.prototype.removeListener = function(type, listener) {
|
|
111899
|
-
var list, position2,
|
|
111900
|
-
|
|
111901
|
-
|
|
111902
|
-
if (
|
|
112534
|
+
EventEmitter.prototype.removeListener = function removeListener(type, listener) {
|
|
112535
|
+
var list, events2, position2, i2, originalListener;
|
|
112536
|
+
checkListener(listener);
|
|
112537
|
+
events2 = this._events;
|
|
112538
|
+
if (events2 === void 0)
|
|
112539
|
+
return this;
|
|
112540
|
+
list = events2[type];
|
|
112541
|
+
if (list === void 0)
|
|
111903
112542
|
return this;
|
|
111904
|
-
list
|
|
111905
|
-
|
|
111906
|
-
|
|
111907
|
-
|
|
111908
|
-
|
|
111909
|
-
|
|
111910
|
-
|
|
111911
|
-
|
|
111912
|
-
|
|
111913
|
-
|
|
112543
|
+
if (list === listener || list.listener === listener) {
|
|
112544
|
+
if (--this._eventsCount === 0)
|
|
112545
|
+
this._events = /* @__PURE__ */ Object.create(null);
|
|
112546
|
+
else {
|
|
112547
|
+
delete events2[type];
|
|
112548
|
+
if (events2.removeListener)
|
|
112549
|
+
this.emit("removeListener", type, list.listener || listener);
|
|
112550
|
+
}
|
|
112551
|
+
} else if (typeof list !== "function") {
|
|
112552
|
+
position2 = -1;
|
|
112553
|
+
for (i2 = list.length - 1; i2 >= 0; i2--) {
|
|
112554
|
+
if (list[i2] === listener || list[i2].listener === listener) {
|
|
112555
|
+
originalListener = list[i2].listener;
|
|
111914
112556
|
position2 = i2;
|
|
111915
112557
|
break;
|
|
111916
112558
|
}
|
|
111917
112559
|
}
|
|
111918
112560
|
if (position2 < 0)
|
|
111919
112561
|
return this;
|
|
111920
|
-
if (
|
|
111921
|
-
list.
|
|
111922
|
-
|
|
111923
|
-
|
|
111924
|
-
list.splice(position2, 1);
|
|
112562
|
+
if (position2 === 0)
|
|
112563
|
+
list.shift();
|
|
112564
|
+
else {
|
|
112565
|
+
spliceOne(list, position2);
|
|
111925
112566
|
}
|
|
111926
|
-
if (
|
|
111927
|
-
|
|
112567
|
+
if (list.length === 1)
|
|
112568
|
+
events2[type] = list[0];
|
|
112569
|
+
if (events2.removeListener !== void 0)
|
|
112570
|
+
this.emit("removeListener", type, originalListener || listener);
|
|
111928
112571
|
}
|
|
111929
112572
|
return this;
|
|
111930
112573
|
};
|
|
111931
|
-
EventEmitter.prototype.
|
|
111932
|
-
|
|
111933
|
-
|
|
112574
|
+
EventEmitter.prototype.off = EventEmitter.prototype.removeListener;
|
|
112575
|
+
EventEmitter.prototype.removeAllListeners = function removeAllListeners(type) {
|
|
112576
|
+
var listeners, events2, i2;
|
|
112577
|
+
events2 = this._events;
|
|
112578
|
+
if (events2 === void 0)
|
|
111934
112579
|
return this;
|
|
111935
|
-
if (
|
|
111936
|
-
if (arguments.length === 0)
|
|
111937
|
-
this._events =
|
|
111938
|
-
|
|
111939
|
-
|
|
112580
|
+
if (events2.removeListener === void 0) {
|
|
112581
|
+
if (arguments.length === 0) {
|
|
112582
|
+
this._events = /* @__PURE__ */ Object.create(null);
|
|
112583
|
+
this._eventsCount = 0;
|
|
112584
|
+
} else if (events2[type] !== void 0) {
|
|
112585
|
+
if (--this._eventsCount === 0)
|
|
112586
|
+
this._events = /* @__PURE__ */ Object.create(null);
|
|
112587
|
+
else
|
|
112588
|
+
delete events2[type];
|
|
112589
|
+
}
|
|
111940
112590
|
return this;
|
|
111941
112591
|
}
|
|
111942
112592
|
if (arguments.length === 0) {
|
|
111943
|
-
|
|
112593
|
+
var keys2 = Object.keys(events2);
|
|
112594
|
+
var key;
|
|
112595
|
+
for (i2 = 0; i2 < keys2.length; ++i2) {
|
|
112596
|
+
key = keys2[i2];
|
|
111944
112597
|
if (key === "removeListener") continue;
|
|
111945
112598
|
this.removeAllListeners(key);
|
|
111946
112599
|
}
|
|
111947
112600
|
this.removeAllListeners("removeListener");
|
|
111948
|
-
this._events =
|
|
112601
|
+
this._events = /* @__PURE__ */ Object.create(null);
|
|
112602
|
+
this._eventsCount = 0;
|
|
111949
112603
|
return this;
|
|
111950
112604
|
}
|
|
111951
|
-
listeners =
|
|
111952
|
-
if (
|
|
112605
|
+
listeners = events2[type];
|
|
112606
|
+
if (typeof listeners === "function") {
|
|
111953
112607
|
this.removeListener(type, listeners);
|
|
111954
|
-
} else if (listeners) {
|
|
111955
|
-
|
|
111956
|
-
this.removeListener(type, listeners[
|
|
112608
|
+
} else if (listeners !== void 0) {
|
|
112609
|
+
for (i2 = listeners.length - 1; i2 >= 0; i2--) {
|
|
112610
|
+
this.removeListener(type, listeners[i2]);
|
|
112611
|
+
}
|
|
111957
112612
|
}
|
|
111958
|
-
delete this._events[type];
|
|
111959
112613
|
return this;
|
|
111960
112614
|
};
|
|
111961
|
-
|
|
111962
|
-
var
|
|
111963
|
-
if (
|
|
111964
|
-
|
|
111965
|
-
|
|
111966
|
-
|
|
111967
|
-
|
|
111968
|
-
|
|
111969
|
-
|
|
112615
|
+
function _listeners(target, type, unwrap2) {
|
|
112616
|
+
var events2 = target._events;
|
|
112617
|
+
if (events2 === void 0)
|
|
112618
|
+
return [];
|
|
112619
|
+
var evlistener = events2[type];
|
|
112620
|
+
if (evlistener === void 0)
|
|
112621
|
+
return [];
|
|
112622
|
+
if (typeof evlistener === "function")
|
|
112623
|
+
return unwrap2 ? [evlistener.listener || evlistener] : [evlistener];
|
|
112624
|
+
return unwrap2 ? unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);
|
|
112625
|
+
}
|
|
112626
|
+
EventEmitter.prototype.listeners = function listeners(type) {
|
|
112627
|
+
return _listeners(this, type, true);
|
|
111970
112628
|
};
|
|
111971
|
-
EventEmitter.prototype.
|
|
111972
|
-
|
|
111973
|
-
|
|
111974
|
-
|
|
112629
|
+
EventEmitter.prototype.rawListeners = function rawListeners(type) {
|
|
112630
|
+
return _listeners(this, type, false);
|
|
112631
|
+
};
|
|
112632
|
+
EventEmitter.listenerCount = function(emitter, type) {
|
|
112633
|
+
if (typeof emitter.listenerCount === "function") {
|
|
112634
|
+
return emitter.listenerCount(type);
|
|
112635
|
+
} else {
|
|
112636
|
+
return listenerCount.call(emitter, type);
|
|
112637
|
+
}
|
|
112638
|
+
};
|
|
112639
|
+
EventEmitter.prototype.listenerCount = listenerCount;
|
|
112640
|
+
function listenerCount(type) {
|
|
112641
|
+
var events2 = this._events;
|
|
112642
|
+
if (events2 !== void 0) {
|
|
112643
|
+
var evlistener = events2[type];
|
|
112644
|
+
if (typeof evlistener === "function") {
|
|
111975
112645
|
return 1;
|
|
111976
|
-
else if (evlistener)
|
|
112646
|
+
} else if (evlistener !== void 0) {
|
|
111977
112647
|
return evlistener.length;
|
|
112648
|
+
}
|
|
111978
112649
|
}
|
|
111979
112650
|
return 0;
|
|
112651
|
+
}
|
|
112652
|
+
EventEmitter.prototype.eventNames = function eventNames() {
|
|
112653
|
+
return this._eventsCount > 0 ? ReflectOwnKeys2(this._events) : [];
|
|
111980
112654
|
};
|
|
111981
|
-
|
|
111982
|
-
|
|
111983
|
-
|
|
111984
|
-
|
|
111985
|
-
return
|
|
112655
|
+
function arrayClone(arr, n3) {
|
|
112656
|
+
var copy2 = new Array(n3);
|
|
112657
|
+
for (var i2 = 0; i2 < n3; ++i2)
|
|
112658
|
+
copy2[i2] = arr[i2];
|
|
112659
|
+
return copy2;
|
|
111986
112660
|
}
|
|
111987
|
-
function
|
|
111988
|
-
|
|
112661
|
+
function spliceOne(list, index2) {
|
|
112662
|
+
for (; index2 + 1 < list.length; index2++)
|
|
112663
|
+
list[index2] = list[index2 + 1];
|
|
112664
|
+
list.pop();
|
|
112665
|
+
}
|
|
112666
|
+
function unwrapListeners(arr) {
|
|
112667
|
+
var ret = new Array(arr.length);
|
|
112668
|
+
for (var i2 = 0; i2 < ret.length; ++i2) {
|
|
112669
|
+
ret[i2] = arr[i2].listener || arr[i2];
|
|
112670
|
+
}
|
|
112671
|
+
return ret;
|
|
112672
|
+
}
|
|
112673
|
+
function once(emitter, name2) {
|
|
112674
|
+
return new Promise(function(resolve2, reject) {
|
|
112675
|
+
function errorListener(err2) {
|
|
112676
|
+
emitter.removeListener(name2, resolver);
|
|
112677
|
+
reject(err2);
|
|
112678
|
+
}
|
|
112679
|
+
function resolver() {
|
|
112680
|
+
if (typeof emitter.removeListener === "function") {
|
|
112681
|
+
emitter.removeListener("error", errorListener);
|
|
112682
|
+
}
|
|
112683
|
+
resolve2([].slice.call(arguments));
|
|
112684
|
+
}
|
|
112685
|
+
eventTargetAgnosticAddListener(emitter, name2, resolver, { once: true });
|
|
112686
|
+
if (name2 !== "error") {
|
|
112687
|
+
addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });
|
|
112688
|
+
}
|
|
112689
|
+
});
|
|
111989
112690
|
}
|
|
111990
|
-
function
|
|
111991
|
-
|
|
112691
|
+
function addErrorHandlerIfEventEmitter(emitter, handler, flags) {
|
|
112692
|
+
if (typeof emitter.on === "function") {
|
|
112693
|
+
eventTargetAgnosticAddListener(emitter, "error", handler, flags);
|
|
112694
|
+
}
|
|
111992
112695
|
}
|
|
111993
|
-
function
|
|
111994
|
-
|
|
112696
|
+
function eventTargetAgnosticAddListener(emitter, name2, listener, flags) {
|
|
112697
|
+
if (typeof emitter.on === "function") {
|
|
112698
|
+
if (flags.once) {
|
|
112699
|
+
emitter.once(name2, listener);
|
|
112700
|
+
} else {
|
|
112701
|
+
emitter.on(name2, listener);
|
|
112702
|
+
}
|
|
112703
|
+
} else if (typeof emitter.addEventListener === "function") {
|
|
112704
|
+
emitter.addEventListener(name2, function wrapListener(arg2) {
|
|
112705
|
+
if (flags.once) {
|
|
112706
|
+
emitter.removeEventListener(name2, wrapListener);
|
|
112707
|
+
}
|
|
112708
|
+
listener(arg2);
|
|
112709
|
+
});
|
|
112710
|
+
} else {
|
|
112711
|
+
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter);
|
|
112712
|
+
}
|
|
111995
112713
|
}
|
|
111996
|
-
return events;
|
|
112714
|
+
return events.exports;
|
|
111997
112715
|
}
|
|
111998
112716
|
var getRandomValues = typeof crypto != "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto != "undefined" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto);
|
|
111999
112717
|
var rnds8 = new Uint8Array(16);
|
|
@@ -112546,7 +113264,7 @@ function requireBignumber() {
|
|
|
112546
113264
|
suffix: ""
|
|
112547
113265
|
}, ALPHABET = "0123456789abcdefghijklmnopqrstuvwxyz", alphabetHasNormalDecimalDigits = true;
|
|
112548
113266
|
function BigNumber3(v, b) {
|
|
112549
|
-
var
|
|
113267
|
+
var alphabet2, c, caseChanged, e2, i2, isNum, len2, str, x = this;
|
|
112550
113268
|
if (!(x instanceof BigNumber3)) return new BigNumber3(v, b);
|
|
112551
113269
|
if (b == null) {
|
|
112552
113270
|
if (v && v._isBigNumber === true) {
|
|
@@ -112602,10 +113320,10 @@ function requireBignumber() {
|
|
|
112602
113320
|
} else {
|
|
112603
113321
|
x.s = str.charCodeAt(0) === 45 ? (str = str.slice(1), -1) : 1;
|
|
112604
113322
|
}
|
|
112605
|
-
|
|
113323
|
+
alphabet2 = ALPHABET.slice(0, b);
|
|
112606
113324
|
e2 = i2 = 0;
|
|
112607
113325
|
for (len2 = str.length; i2 < len2; i2++) {
|
|
112608
|
-
if (
|
|
113326
|
+
if (alphabet2.indexOf(c = str.charAt(i2)) < 0) {
|
|
112609
113327
|
if (c == ".") {
|
|
112610
113328
|
if (i2 > e2) {
|
|
112611
113329
|
e2 = len2;
|
|
@@ -112876,11 +113594,11 @@ function requireBignumber() {
|
|
|
112876
113594
|
};
|
|
112877
113595
|
convertBase2 = /* @__PURE__ */ function() {
|
|
112878
113596
|
var decimal = "0123456789";
|
|
112879
|
-
function toBaseOut(str, baseIn, baseOut,
|
|
113597
|
+
function toBaseOut(str, baseIn, baseOut, alphabet2) {
|
|
112880
113598
|
var j, arr = [0], arrL, i2 = 0, len2 = str.length;
|
|
112881
113599
|
for (; i2 < len2; ) {
|
|
112882
113600
|
for (arrL = arr.length; arrL--; arr[arrL] *= baseIn) ;
|
|
112883
|
-
arr[0] +=
|
|
113601
|
+
arr[0] += alphabet2.indexOf(str.charAt(i2++));
|
|
112884
113602
|
for (j = 0; j < arr.length; j++) {
|
|
112885
113603
|
if (arr[j] > baseOut - 1) {
|
|
112886
113604
|
if (arr[j + 1] == null) arr[j + 1] = 0;
|
|
@@ -112892,7 +113610,7 @@ function requireBignumber() {
|
|
|
112892
113610
|
return arr.reverse();
|
|
112893
113611
|
}
|
|
112894
113612
|
return function(str, baseIn, baseOut, sign2, callerIsToString) {
|
|
112895
|
-
var
|
|
113613
|
+
var alphabet2, d, e2, k, r2, x, xc, y, i2 = str.indexOf("."), dp = DECIMAL_PLACES, rm = ROUNDING_MODE;
|
|
112896
113614
|
if (i2 >= 0) {
|
|
112897
113615
|
k = POW_PRECISION;
|
|
112898
113616
|
POW_PRECISION = 0;
|
|
@@ -112908,10 +113626,10 @@ function requireBignumber() {
|
|
|
112908
113626
|
);
|
|
112909
113627
|
y.e = y.c.length;
|
|
112910
113628
|
}
|
|
112911
|
-
xc = toBaseOut(str, baseIn, baseOut, callerIsToString ? (
|
|
113629
|
+
xc = toBaseOut(str, baseIn, baseOut, callerIsToString ? (alphabet2 = ALPHABET, decimal) : (alphabet2 = decimal, ALPHABET));
|
|
112912
113630
|
e2 = k = xc.length;
|
|
112913
113631
|
for (; xc[--k] == 0; xc.pop()) ;
|
|
112914
|
-
if (!xc[0]) return
|
|
113632
|
+
if (!xc[0]) return alphabet2.charAt(0);
|
|
112915
113633
|
if (i2 < 0) {
|
|
112916
113634
|
--e2;
|
|
112917
113635
|
} else {
|
|
@@ -112929,7 +113647,7 @@ function requireBignumber() {
|
|
|
112929
113647
|
r2 = r2 || d < 0 || xc[d + 1] != null;
|
|
112930
113648
|
r2 = rm < 4 ? (i2 != null || r2) && (rm == 0 || rm == (x.s < 0 ? 3 : 2)) : i2 > k || i2 == k && (rm == 4 || r2 || rm == 6 && xc[d - 1] & 1 || rm == (x.s < 0 ? 8 : 7));
|
|
112931
113649
|
if (d < 1 || !xc[0]) {
|
|
112932
|
-
str = r2 ? toFixedPoint2(
|
|
113650
|
+
str = r2 ? toFixedPoint2(alphabet2.charAt(1), -dp, alphabet2.charAt(0)) : alphabet2.charAt(0);
|
|
112933
113651
|
} else {
|
|
112934
113652
|
xc.length = d;
|
|
112935
113653
|
if (r2) {
|
|
@@ -112942,8 +113660,8 @@ function requireBignumber() {
|
|
|
112942
113660
|
}
|
|
112943
113661
|
}
|
|
112944
113662
|
for (k = xc.length; !xc[--k]; ) ;
|
|
112945
|
-
for (i2 = 0, str = ""; i2 <= k; str +=
|
|
112946
|
-
str = toFixedPoint2(str, e2,
|
|
113663
|
+
for (i2 = 0, str = ""; i2 <= k; str += alphabet2.charAt(xc[i2++])) ;
|
|
113664
|
+
str = toFixedPoint2(str, e2, alphabet2.charAt(0));
|
|
112947
113665
|
}
|
|
112948
113666
|
return str;
|
|
112949
113667
|
};
|
|
@@ -133634,22 +134352,22 @@ async function getDecoder(fileDirectory) {
|
|
|
133634
134352
|
const Decoder = await importFn();
|
|
133635
134353
|
return new Decoder(fileDirectory);
|
|
133636
134354
|
}
|
|
133637
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
133638
|
-
addDecoder(5, () => import("./lzw-
|
|
134355
|
+
addDecoder([void 0, 1], () => import("./raw-BRA6fCQh.js").then((m) => m.default));
|
|
134356
|
+
addDecoder(5, () => import("./lzw-j3x3gmJ8.js").then((m) => m.default));
|
|
133639
134357
|
addDecoder(6, () => {
|
|
133640
134358
|
throw new Error("old style JPEG compression is not supported.");
|
|
133641
134359
|
});
|
|
133642
|
-
addDecoder(7, () => import("./jpeg-
|
|
133643
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
133644
|
-
addDecoder(32773, () => import("./packbits-
|
|
134360
|
+
addDecoder(7, () => import("./jpeg-I9GgK6x5.js").then((m) => m.default));
|
|
134361
|
+
addDecoder([8, 32946], () => import("./deflate-D3UTqEHD.js").then((m) => m.default));
|
|
134362
|
+
addDecoder(32773, () => import("./packbits-CvMH_RJX.js").then((m) => m.default));
|
|
133645
134363
|
addDecoder(
|
|
133646
134364
|
34887,
|
|
133647
|
-
() => import("./lerc-
|
|
134365
|
+
() => import("./lerc-fTImAOhU.js").then(async (m) => {
|
|
133648
134366
|
await m.zstd.init();
|
|
133649
134367
|
return m;
|
|
133650
134368
|
}).then((m) => m.default)
|
|
133651
134369
|
);
|
|
133652
|
-
addDecoder(50001, () => import("./webimage-
|
|
134370
|
+
addDecoder(50001, () => import("./webimage-CY5EKEDb.js").then((m) => m.default));
|
|
133653
134371
|
function copyNewSize(array, width2, height2, samplesPerPixel = 1) {
|
|
133654
134372
|
return new (Object.getPrototypeOf(array)).constructor(width2 * height2 * samplesPerPixel);
|
|
133655
134373
|
}
|
|
@@ -134583,7 +135301,7 @@ class GeoTIFFImage {
|
|
|
134583
135301
|
}
|
|
134584
135302
|
}
|
|
134585
135303
|
}
|
|
134586
|
-
class
|
|
135304
|
+
class DataView642 {
|
|
134587
135305
|
constructor(arrayBuffer2) {
|
|
134588
135306
|
this._dataView = new DataView(arrayBuffer2);
|
|
134589
135307
|
}
|
|
@@ -135290,13 +136008,13 @@ class BlockedSource extends BaseSource {
|
|
|
135290
136008
|
fetchBlocks(signal) {
|
|
135291
136009
|
if (this.blockIdsToFetch.size > 0) {
|
|
135292
136010
|
const groups = this.groupBlocks(this.blockIdsToFetch);
|
|
135293
|
-
const
|
|
136011
|
+
const groupRequests2 = this.source.fetch(groups, signal);
|
|
135294
136012
|
for (let groupIndex = 0; groupIndex < groups.length; ++groupIndex) {
|
|
135295
136013
|
const group = groups[groupIndex];
|
|
135296
136014
|
for (const blockId of group.blockIds) {
|
|
135297
136015
|
this.blockRequests.set(blockId, (async () => {
|
|
135298
136016
|
try {
|
|
135299
|
-
const response = (await
|
|
136017
|
+
const response = (await groupRequests2)[groupIndex];
|
|
135300
136018
|
const blockOffset = blockId * this.blockSize;
|
|
135301
136019
|
const o2 = blockOffset - response.offset;
|
|
135302
136020
|
const t = Math.min(o2 + this.blockSize, response.data.byteLength);
|
|
@@ -136347,7 +137065,7 @@ class GeoTIFF extends GeoTIFFBase {
|
|
|
136347
137065
|
*/
|
|
136348
137066
|
static async fromSource(source, options, signal) {
|
|
136349
137067
|
const headerData = (await source.fetch([{ offset: 0, length: 1024 }], signal))[0];
|
|
136350
|
-
const dataView = new
|
|
137068
|
+
const dataView = new DataView642(headerData);
|
|
136351
137069
|
const BOM = dataView.getUint16(0, 0);
|
|
136352
137070
|
let littleEndian;
|
|
136353
137071
|
if (BOM === 18761) {
|
|
@@ -137333,15 +138051,15 @@ const adler32 = (adler, buf, len2, pos) => {
|
|
|
137333
138051
|
};
|
|
137334
138052
|
var adler32_1 = adler32;
|
|
137335
138053
|
const makeTable = () => {
|
|
137336
|
-
let c,
|
|
138054
|
+
let c, table2 = [];
|
|
137337
138055
|
for (var n3 = 0; n3 < 256; n3++) {
|
|
137338
138056
|
c = n3;
|
|
137339
138057
|
for (var k = 0; k < 8; k++) {
|
|
137340
138058
|
c = c & 1 ? 3988292384 ^ c >>> 1 : c >>> 1;
|
|
137341
138059
|
}
|
|
137342
|
-
|
|
138060
|
+
table2[n3] = c;
|
|
137343
138061
|
}
|
|
137344
|
-
return
|
|
138062
|
+
return table2;
|
|
137345
138063
|
};
|
|
137346
138064
|
const crcTable = new Uint32Array(makeTable());
|
|
137347
138065
|
const crc32 = (crc, buf, len2, pos) => {
|
|
@@ -139149,7 +139867,7 @@ const dext = new Uint8Array([
|
|
|
139149
139867
|
64,
|
|
139150
139868
|
64
|
|
139151
139869
|
]);
|
|
139152
|
-
const inflate_table = (type, lens2, lens_index, codes,
|
|
139870
|
+
const inflate_table = (type, lens2, lens_index, codes, table2, table_index, work, opts) => {
|
|
139153
139871
|
const bits = opts.bits;
|
|
139154
139872
|
let len2 = 0;
|
|
139155
139873
|
let sym = 0;
|
|
@@ -139189,8 +139907,8 @@ const inflate_table = (type, lens2, lens_index, codes, table, table_index, work,
|
|
|
139189
139907
|
root2 = max2;
|
|
139190
139908
|
}
|
|
139191
139909
|
if (max2 === 0) {
|
|
139192
|
-
|
|
139193
|
-
|
|
139910
|
+
table2[table_index++] = 1 << 24 | 64 << 16 | 0;
|
|
139911
|
+
table2[table_index++] = 1 << 24 | 64 << 16 | 0;
|
|
139194
139912
|
opts.bits = 1;
|
|
139195
139913
|
return 0;
|
|
139196
139914
|
}
|
|
@@ -139265,7 +139983,7 @@ const inflate_table = (type, lens2, lens_index, codes, table, table_index, work,
|
|
|
139265
139983
|
min2 = fill;
|
|
139266
139984
|
do {
|
|
139267
139985
|
fill -= incr;
|
|
139268
|
-
|
|
139986
|
+
table2[next4 + (huff >> drop) + fill] = here_bits << 24 | here_op << 16 | here_val | 0;
|
|
139269
139987
|
} while (fill !== 0);
|
|
139270
139988
|
incr = 1 << len2 - 1;
|
|
139271
139989
|
while (huff & incr) {
|
|
@@ -139304,11 +140022,11 @@ const inflate_table = (type, lens2, lens_index, codes, table, table_index, work,
|
|
|
139304
140022
|
return 1;
|
|
139305
140023
|
}
|
|
139306
140024
|
low = huff & mask;
|
|
139307
|
-
|
|
140025
|
+
table2[low] = root2 << 24 | curr << 16 | next4 - table_index | 0;
|
|
139308
140026
|
}
|
|
139309
140027
|
}
|
|
139310
140028
|
if (huff !== 0) {
|
|
139311
|
-
|
|
140029
|
+
table2[next4 + huff] = len2 - drop << 24 | 64 << 16 | 0;
|
|
139312
140030
|
}
|
|
139313
140031
|
opts.bits = root2;
|
|
139314
140032
|
return 0;
|
|
@@ -141695,13 +142413,13 @@ var blosc_codec = function() {
|
|
|
141695
142413
|
}();
|
|
141696
142414
|
var __isNode = typeof process !== "undefined" && process.versions != null && process.versions.node != null;
|
|
141697
142415
|
var __toBinary = __isNode ? (base64) => new Uint8Array(Buffer.from(base64, "base64")) : /* @__PURE__ */ (() => {
|
|
141698
|
-
var
|
|
141699
|
-
for (var i2 = 0; i2 < 64; i2++)
|
|
142416
|
+
var table2 = new Uint8Array(128);
|
|
142417
|
+
for (var i2 = 0; i2 < 64; i2++) table2[i2 < 26 ? i2 + 65 : i2 < 52 ? i2 + 71 : i2 < 62 ? i2 - 4 : i2 * 4 - 205] = i2;
|
|
141700
142418
|
return (base64) => {
|
|
141701
142419
|
var n3 = base64.length, bytes = new Uint8Array((n3 - (base64[n3 - 1] == "=") - (base64[n3 - 2] == "=")) * 3 / 4 | 0);
|
|
141702
142420
|
for (var i3 = 0, j = 0; i3 < n3; ) {
|
|
141703
|
-
var c0 =
|
|
141704
|
-
var c2 =
|
|
142421
|
+
var c0 = table2[base64.charCodeAt(i3++)], c1 = table2[base64.charCodeAt(i3++)];
|
|
142422
|
+
var c2 = table2[base64.charCodeAt(i3++)], c3 = table2[base64.charCodeAt(i3++)];
|
|
141705
142423
|
bytes[j++] = c0 << 2 | c1 >> 4;
|
|
141706
142424
|
bytes[j++] = c1 << 4 | c2 >> 2;
|
|
141707
142425
|
bytes[j++] = c2 << 6 | c3;
|
|
@@ -147326,7 +148044,7 @@ function clone$1(configObject) {
|
|
|
147326
148044
|
suffix: ""
|
|
147327
148045
|
}, ALPHABET = "0123456789abcdefghijklmnopqrstuvwxyz", alphabetHasNormalDecimalDigits = true;
|
|
147328
148046
|
function BigNumber2(v, b) {
|
|
147329
|
-
var
|
|
148047
|
+
var alphabet2, c, caseChanged, e2, i2, isNum, len2, str, x = this;
|
|
147330
148048
|
if (!(x instanceof BigNumber2)) return new BigNumber2(v, b);
|
|
147331
148049
|
if (b == null) {
|
|
147332
148050
|
if (v && v._isBigNumber === true) {
|
|
@@ -147382,10 +148100,10 @@ function clone$1(configObject) {
|
|
|
147382
148100
|
} else {
|
|
147383
148101
|
x.s = str.charCodeAt(0) === 45 ? (str = str.slice(1), -1) : 1;
|
|
147384
148102
|
}
|
|
147385
|
-
|
|
148103
|
+
alphabet2 = ALPHABET.slice(0, b);
|
|
147386
148104
|
e2 = i2 = 0;
|
|
147387
148105
|
for (len2 = str.length; i2 < len2; i2++) {
|
|
147388
|
-
if (
|
|
148106
|
+
if (alphabet2.indexOf(c = str.charAt(i2)) < 0) {
|
|
147389
148107
|
if (c == ".") {
|
|
147390
148108
|
if (i2 > e2) {
|
|
147391
148109
|
e2 = len2;
|
|
@@ -147656,11 +148374,11 @@ function clone$1(configObject) {
|
|
|
147656
148374
|
};
|
|
147657
148375
|
convertBase2 = /* @__PURE__ */ function() {
|
|
147658
148376
|
var decimal = "0123456789";
|
|
147659
|
-
function toBaseOut(str, baseIn, baseOut,
|
|
148377
|
+
function toBaseOut(str, baseIn, baseOut, alphabet2) {
|
|
147660
148378
|
var j, arr = [0], arrL, i2 = 0, len2 = str.length;
|
|
147661
148379
|
for (; i2 < len2; ) {
|
|
147662
148380
|
for (arrL = arr.length; arrL--; arr[arrL] *= baseIn) ;
|
|
147663
|
-
arr[0] +=
|
|
148381
|
+
arr[0] += alphabet2.indexOf(str.charAt(i2++));
|
|
147664
148382
|
for (j = 0; j < arr.length; j++) {
|
|
147665
148383
|
if (arr[j] > baseOut - 1) {
|
|
147666
148384
|
if (arr[j + 1] == null) arr[j + 1] = 0;
|
|
@@ -147672,7 +148390,7 @@ function clone$1(configObject) {
|
|
|
147672
148390
|
return arr.reverse();
|
|
147673
148391
|
}
|
|
147674
148392
|
return function(str, baseIn, baseOut, sign2, callerIsToString) {
|
|
147675
|
-
var
|
|
148393
|
+
var alphabet2, d, e2, k, r2, x, xc, y, i2 = str.indexOf("."), dp = DECIMAL_PLACES, rm = ROUNDING_MODE;
|
|
147676
148394
|
if (i2 >= 0) {
|
|
147677
148395
|
k = POW_PRECISION;
|
|
147678
148396
|
POW_PRECISION = 0;
|
|
@@ -147688,10 +148406,10 @@ function clone$1(configObject) {
|
|
|
147688
148406
|
);
|
|
147689
148407
|
y.e = y.c.length;
|
|
147690
148408
|
}
|
|
147691
|
-
xc = toBaseOut(str, baseIn, baseOut, callerIsToString ? (
|
|
148409
|
+
xc = toBaseOut(str, baseIn, baseOut, callerIsToString ? (alphabet2 = ALPHABET, decimal) : (alphabet2 = decimal, ALPHABET));
|
|
147692
148410
|
e2 = k = xc.length;
|
|
147693
148411
|
for (; xc[--k] == 0; xc.pop()) ;
|
|
147694
|
-
if (!xc[0]) return
|
|
148412
|
+
if (!xc[0]) return alphabet2.charAt(0);
|
|
147695
148413
|
if (i2 < 0) {
|
|
147696
148414
|
--e2;
|
|
147697
148415
|
} else {
|
|
@@ -147709,7 +148427,7 @@ function clone$1(configObject) {
|
|
|
147709
148427
|
r2 = r2 || d < 0 || xc[d + 1] != null;
|
|
147710
148428
|
r2 = rm < 4 ? (i2 != null || r2) && (rm == 0 || rm == (x.s < 0 ? 3 : 2)) : i2 > k || i2 == k && (rm == 4 || r2 || rm == 6 && xc[d - 1] & 1 || rm == (x.s < 0 ? 8 : 7));
|
|
147711
148429
|
if (d < 1 || !xc[0]) {
|
|
147712
|
-
str = r2 ? toFixedPoint(
|
|
148430
|
+
str = r2 ? toFixedPoint(alphabet2.charAt(1), -dp, alphabet2.charAt(0)) : alphabet2.charAt(0);
|
|
147713
148431
|
} else {
|
|
147714
148432
|
xc.length = d;
|
|
147715
148433
|
if (r2) {
|
|
@@ -147722,8 +148440,8 @@ function clone$1(configObject) {
|
|
|
147722
148440
|
}
|
|
147723
148441
|
}
|
|
147724
148442
|
for (k = xc.length; !xc[--k]; ) ;
|
|
147725
|
-
for (i2 = 0, str = ""; i2 <= k; str +=
|
|
147726
|
-
str = toFixedPoint(str, e2,
|
|
148443
|
+
for (i2 = 0, str = ""; i2 <= k; str += alphabet2.charAt(xc[i2++])) ;
|
|
148444
|
+
str = toFixedPoint(str, e2, alphabet2.charAt(0));
|
|
147727
148445
|
}
|
|
147728
148446
|
return str;
|
|
147729
148447
|
};
|
|
@@ -157531,13 +158249,13 @@ const parseAddition = (str) => {
|
|
|
157531
158249
|
if (!Number.isNaN(+str)) {
|
|
157532
158250
|
return +str;
|
|
157533
158251
|
}
|
|
157534
|
-
const
|
|
157535
|
-
if (!
|
|
158252
|
+
const numbers2 = str.match(/\d*\.?\d+/g);
|
|
158253
|
+
if (!numbers2) {
|
|
157536
158254
|
return 0;
|
|
157537
158255
|
}
|
|
157538
158256
|
let sum2 = 0;
|
|
157539
|
-
for (let i2 = 0; i2 <
|
|
157540
|
-
sum2 += +
|
|
158257
|
+
for (let i2 = 0; i2 < numbers2.length; i2 += 1) {
|
|
158258
|
+
sum2 += +numbers2[i2];
|
|
157541
158259
|
}
|
|
157542
158260
|
return sum2;
|
|
157543
158261
|
};
|
|
@@ -161437,6 +162155,24 @@ function guessTileSize(arr) {
|
|
|
161437
162155
|
function isAxis(axisOrLabel) {
|
|
161438
162156
|
return typeof axisOrLabel[0] !== "string";
|
|
161439
162157
|
}
|
|
162158
|
+
function lowercaseAxisNames(rootAttrs) {
|
|
162159
|
+
if (!Array.isArray(rootAttrs?.multiscales))
|
|
162160
|
+
return rootAttrs;
|
|
162161
|
+
const multiscales = rootAttrs.multiscales.map((multiscale) => {
|
|
162162
|
+
const { axes } = multiscale;
|
|
162163
|
+
if (!Array.isArray(axes))
|
|
162164
|
+
return multiscale;
|
|
162165
|
+
const names = axes.map((axis) => typeof axis === "string" ? axis : axis.name);
|
|
162166
|
+
const lowerNames = names.map((name2) => typeof name2 === "string" ? name2.toLowerCase() : name2);
|
|
162167
|
+
if (new Set(lowerNames).size !== new Set(names).size)
|
|
162168
|
+
return multiscale;
|
|
162169
|
+
return {
|
|
162170
|
+
...multiscale,
|
|
162171
|
+
axes: axes.map((axis, i2) => typeof axis === "string" ? lowerNames[i2] : { ...axis, name: lowerNames[i2] })
|
|
162172
|
+
};
|
|
162173
|
+
});
|
|
162174
|
+
return { ...rootAttrs, multiscales };
|
|
162175
|
+
}
|
|
161440
162176
|
async function loadMultiscales(root2) {
|
|
161441
162177
|
let rootAttrs;
|
|
161442
162178
|
try {
|
|
@@ -161447,7 +162183,7 @@ async function loadMultiscales(root2) {
|
|
|
161447
162183
|
}
|
|
161448
162184
|
throw e2;
|
|
161449
162185
|
}
|
|
161450
|
-
rootAttrs = flattenOmeAttrs(rootAttrs);
|
|
162186
|
+
rootAttrs = lowercaseAxisNames(flattenOmeAttrs(rootAttrs));
|
|
161451
162187
|
let paths = ["0"];
|
|
161452
162188
|
let labels = ["t", "c", "z", "y", "x"];
|
|
161453
162189
|
if ("multiscales" in rootAttrs) {
|