@loaders.gl/i3s 3.3.2 → 3.4.0-alpha.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.
Files changed (50) hide show
  1. package/dist/dist.min.js +194 -148
  2. package/dist/es5/arcgis-webscene-loader.js +1 -1
  3. package/dist/es5/arcgis-webscene-loader.js.map +1 -1
  4. package/dist/es5/i3s-attribute-loader.js +1 -1
  5. package/dist/es5/i3s-attribute-loader.js.map +1 -1
  6. package/dist/es5/i3s-building-scene-layer-loader.js +1 -1
  7. package/dist/es5/i3s-building-scene-layer-loader.js.map +1 -1
  8. package/dist/es5/i3s-content-loader.js +1 -1
  9. package/dist/es5/i3s-content-loader.js.map +1 -1
  10. package/dist/es5/i3s-loader.js +1 -1
  11. package/dist/es5/i3s-loader.js.map +1 -1
  12. package/dist/es5/i3s-node-page-loader.js +1 -1
  13. package/dist/es5/i3s-node-page-loader.js.map +1 -1
  14. package/dist/es5/lib/helpers/i3s-nodepages-tiles.js.map +1 -1
  15. package/dist/es5/lib/parsers/parse-i3s-tile-content.js.map +1 -1
  16. package/dist/es5/lib/parsers/parse-i3s.js.map +1 -1
  17. package/dist/es5/types.js.map +1 -1
  18. package/dist/esm/arcgis-webscene-loader.js +1 -1
  19. package/dist/esm/arcgis-webscene-loader.js.map +1 -1
  20. package/dist/esm/i3s-attribute-loader.js +1 -1
  21. package/dist/esm/i3s-attribute-loader.js.map +1 -1
  22. package/dist/esm/i3s-building-scene-layer-loader.js +1 -1
  23. package/dist/esm/i3s-building-scene-layer-loader.js.map +1 -1
  24. package/dist/esm/i3s-content-loader.js +1 -1
  25. package/dist/esm/i3s-content-loader.js.map +1 -1
  26. package/dist/esm/i3s-loader.js +1 -1
  27. package/dist/esm/i3s-loader.js.map +1 -1
  28. package/dist/esm/i3s-node-page-loader.js +1 -1
  29. package/dist/esm/i3s-node-page-loader.js.map +1 -1
  30. package/dist/esm/lib/helpers/i3s-nodepages-tiles.js.map +1 -1
  31. package/dist/esm/lib/parsers/parse-i3s-tile-content.js +1 -0
  32. package/dist/esm/lib/parsers/parse-i3s-tile-content.js.map +1 -1
  33. package/dist/esm/lib/parsers/parse-i3s.js.map +1 -1
  34. package/dist/esm/types.js.map +1 -1
  35. package/dist/i3s-content-nodejs-worker.js +59 -62
  36. package/dist/i3s-content-nodejs-worker.js.map +3 -3
  37. package/dist/i3s-content-worker.js +139 -95
  38. package/dist/lib/helpers/i3s-nodepages-tiles.d.ts.map +1 -1
  39. package/dist/lib/helpers/i3s-nodepages-tiles.js +5 -1
  40. package/dist/lib/parsers/parse-i3s-tile-content.d.ts.map +1 -1
  41. package/dist/lib/parsers/parse-i3s-tile-content.js +2 -0
  42. package/dist/lib/parsers/parse-i3s.d.ts.map +1 -1
  43. package/dist/lib/parsers/parse-i3s.js +2 -0
  44. package/dist/types.d.ts +5 -5
  45. package/dist/types.d.ts.map +1 -1
  46. package/package.json +8 -8
  47. package/src/lib/helpers/i3s-nodepages-tiles.ts +3 -0
  48. package/src/lib/parsers/parse-i3s-tile-content.ts +2 -0
  49. package/src/lib/parsers/parse-i3s.ts +2 -0
  50. package/src/types.ts +6 -5
package/dist/dist.min.js CHANGED
@@ -538,7 +538,7 @@
538
538
  var init_get_worker_url = __esm({
539
539
  "../worker-utils/src/lib/worker-api/get-worker-url.ts"() {
540
540
  init_assert2();
541
- NPM_TAG = "latest";
541
+ NPM_TAG = "beta";
542
542
  }
543
543
  });
544
544
 
@@ -636,7 +636,7 @@
636
636
  node = __toModule(require_require_utils());
637
637
  init_assert2();
638
638
  init_version();
639
- LATEST = "latest";
639
+ LATEST = "beta";
640
640
  VERSION2 = typeof VERSION !== "undefined" ? VERSION : LATEST;
641
641
  loadLibraryPromises = {};
642
642
  }
@@ -818,9 +818,12 @@
818
818
  }
819
819
  });
820
820
 
821
- // (disabled):../loader-utils/src/lib/node/buffer
822
- var init_buffer = __esm({
823
- "(disabled):../loader-utils/src/lib/node/buffer"() {
821
+ // ../loader-utils/src/lib/node/buffer.browser.ts
822
+ function toArrayBuffer(buffer) {
823
+ return buffer;
824
+ }
825
+ var init_buffer_browser = __esm({
826
+ "../loader-utils/src/lib/node/buffer.browser.ts"() {
824
827
  }
825
828
  });
826
829
 
@@ -830,7 +833,7 @@
830
833
  }
831
834
  function toArrayBuffer2(data) {
832
835
  if (isBuffer(data)) {
833
- return node2.toArrayBuffer(data);
836
+ return toArrayBuffer(data);
834
837
  }
835
838
  if (data instanceof ArrayBuffer) {
836
839
  return data;
@@ -853,7 +856,7 @@
853
856
  }
854
857
  var init_memory_conversion_utils = __esm({
855
858
  "../loader-utils/src/lib/binary-utils/memory-conversion-utils.ts"() {
856
- init_buffer();
859
+ init_buffer_browser();
857
860
  }
858
861
  });
859
862
 
@@ -1103,12 +1106,12 @@
1103
1106
  }
1104
1107
  });
1105
1108
 
1106
- // ../../node_modules/@probe.gl/env/dist/esm/lib/is-electron.js
1109
+ // ../core/node_modules/@probe.gl/env/dist/lib/is-electron.js
1107
1110
  function isElectron(mockUserAgent) {
1108
1111
  if (typeof window !== "undefined" && typeof window.process === "object" && window.process.type === "renderer") {
1109
1112
  return true;
1110
1113
  }
1111
- if (typeof process !== "undefined" && typeof process.versions === "object" && Boolean(process.versions.electron)) {
1114
+ if (typeof process !== "undefined" && typeof process.versions === "object" && Boolean(process.versions["electron"])) {
1112
1115
  return true;
1113
1116
  }
1114
1117
  const realUserAgent = typeof navigator === "object" && typeof navigator.userAgent === "string" && navigator.userAgent;
@@ -1119,59 +1122,54 @@
1119
1122
  return false;
1120
1123
  }
1121
1124
  var init_is_electron = __esm({
1122
- "../../node_modules/@probe.gl/env/dist/esm/lib/is-electron.js"() {
1125
+ "../core/node_modules/@probe.gl/env/dist/lib/is-electron.js"() {
1123
1126
  }
1124
1127
  });
1125
1128
 
1126
- // ../../node_modules/@probe.gl/env/dist/esm/lib/is-browser.js
1129
+ // ../core/node_modules/@probe.gl/env/dist/lib/is-browser.js
1127
1130
  function isBrowser3() {
1128
1131
  const isNode = typeof process === "object" && String(process) === "[object process]" && !process.browser;
1129
1132
  return !isNode || isElectron();
1130
1133
  }
1131
1134
  var init_is_browser = __esm({
1132
- "../../node_modules/@probe.gl/env/dist/esm/lib/is-browser.js"() {
1135
+ "../core/node_modules/@probe.gl/env/dist/lib/is-browser.js"() {
1133
1136
  init_is_electron();
1134
1137
  }
1135
1138
  });
1136
1139
 
1137
- // ../../node_modules/@probe.gl/env/dist/esm/lib/globals.js
1138
- var globals3, self_3, window_3, document_3, process_;
1140
+ // ../core/node_modules/@probe.gl/env/dist/lib/globals.js
1141
+ var self2, window2, document2, process2, console2, navigator2;
1139
1142
  var init_globals3 = __esm({
1140
- "../../node_modules/@probe.gl/env/dist/esm/lib/globals.js"() {
1141
- globals3 = {
1142
- self: typeof self !== "undefined" && self,
1143
- window: typeof window !== "undefined" && window,
1144
- global: typeof global !== "undefined" && global,
1145
- document: typeof document !== "undefined" && document,
1146
- process: typeof process === "object" && process
1147
- };
1148
- self_3 = globals3.self || globals3.window || globals3.global;
1149
- window_3 = globals3.window || globals3.self || globals3.global;
1150
- document_3 = globals3.document || {};
1151
- process_ = globals3.process || {};
1143
+ "../core/node_modules/@probe.gl/env/dist/lib/globals.js"() {
1144
+ self2 = globalThis.self || globalThis.window || globalThis.global;
1145
+ window2 = globalThis.window || globalThis.self || globalThis.global;
1146
+ document2 = globalThis.document || {};
1147
+ process2 = globalThis.process || {};
1148
+ console2 = globalThis.console;
1149
+ navigator2 = globalThis.navigator || {};
1152
1150
  }
1153
1151
  });
1154
1152
 
1155
- // ../../node_modules/@probe.gl/env/dist/esm/utils/globals.js
1153
+ // ../core/node_modules/@probe.gl/env/dist/utils/globals.js
1156
1154
  var VERSION4, isBrowser4;
1157
1155
  var init_globals4 = __esm({
1158
- "../../node_modules/@probe.gl/env/dist/esm/utils/globals.js"() {
1156
+ "../core/node_modules/@probe.gl/env/dist/utils/globals.js"() {
1159
1157
  init_is_browser();
1160
1158
  VERSION4 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "untranspiled source";
1161
1159
  isBrowser4 = isBrowser3();
1162
1160
  }
1163
1161
  });
1164
1162
 
1165
- // ../../node_modules/@probe.gl/env/dist/esm/index.js
1166
- var init_esm = __esm({
1167
- "../../node_modules/@probe.gl/env/dist/esm/index.js"() {
1163
+ // ../core/node_modules/@probe.gl/env/dist/index.js
1164
+ var init_dist = __esm({
1165
+ "../core/node_modules/@probe.gl/env/dist/index.js"() {
1168
1166
  init_globals4();
1169
1167
  init_globals3();
1170
1168
  init_is_browser();
1171
1169
  }
1172
1170
  });
1173
1171
 
1174
- // ../../node_modules/@probe.gl/log/dist/esm/utils/local-storage.js
1172
+ // ../core/node_modules/@probe.gl/log/dist/utils/local-storage.js
1175
1173
  function getStorage(type) {
1176
1174
  try {
1177
1175
  const storage = window[type];
@@ -1185,35 +1183,28 @@
1185
1183
  }
1186
1184
  var LocalStorage;
1187
1185
  var init_local_storage = __esm({
1188
- "../../node_modules/@probe.gl/log/dist/esm/utils/local-storage.js"() {
1186
+ "../core/node_modules/@probe.gl/log/dist/utils/local-storage.js"() {
1189
1187
  init_defineProperty();
1190
1188
  LocalStorage = class {
1191
- constructor(id) {
1192
- let defaultSettings = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1189
+ constructor(id, defaultConfig) {
1193
1190
  let type = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "sessionStorage";
1194
1191
  _defineProperty(this, "storage", void 0);
1195
1192
  _defineProperty(this, "id", void 0);
1196
- _defineProperty(this, "config", {});
1193
+ _defineProperty(this, "config", void 0);
1197
1194
  this.storage = getStorage(type);
1198
1195
  this.id = id;
1199
- this.config = {};
1200
- Object.assign(this.config, defaultSettings);
1196
+ this.config = defaultConfig;
1201
1197
  this._loadConfiguration();
1202
1198
  }
1203
1199
  getConfiguration() {
1204
1200
  return this.config;
1205
1201
  }
1206
1202
  setConfiguration(configuration) {
1207
- this.config = {};
1208
- return this.updateConfiguration(configuration);
1209
- }
1210
- updateConfiguration(configuration) {
1211
1203
  Object.assign(this.config, configuration);
1212
1204
  if (this.storage) {
1213
1205
  const serialized = JSON.stringify(this.config);
1214
1206
  this.storage.setItem(this.id, serialized);
1215
1207
  }
1216
- return this;
1217
1208
  }
1218
1209
  _loadConfiguration() {
1219
1210
  let configuration = {};
@@ -1228,7 +1219,7 @@
1228
1219
  }
1229
1220
  });
1230
1221
 
1231
- // ../../node_modules/@probe.gl/log/dist/esm/utils/formatters.js
1222
+ // ../core/node_modules/@probe.gl/log/dist/utils/formatters.js
1232
1223
  function formatTime(ms) {
1233
1224
  let formatted;
1234
1225
  if (ms < 10) {
@@ -1259,31 +1250,35 @@
1259
1250
  return ["".concat(message, " %c+"), style];
1260
1251
  }
1261
1252
  var init_formatters = __esm({
1262
- "../../node_modules/@probe.gl/log/dist/esm/utils/formatters.js"() {
1253
+ "../core/node_modules/@probe.gl/log/dist/utils/formatters.js"() {
1263
1254
  }
1264
1255
  });
1265
1256
 
1266
- // ../../node_modules/@probe.gl/log/dist/esm/utils/color.js
1257
+ // ../core/node_modules/@probe.gl/log/dist/utils/color.js
1267
1258
  function getColor(color) {
1268
- return typeof color === "string" ? COLOR[color.toUpperCase()] || COLOR.WHITE : color;
1259
+ if (typeof color !== "string") {
1260
+ return color;
1261
+ }
1262
+ color = color.toUpperCase();
1263
+ return COLOR[color] || COLOR.WHITE;
1269
1264
  }
1270
1265
  function addColor(string, color, background) {
1271
1266
  if (!isBrowser3 && typeof string === "string") {
1272
1267
  if (color) {
1273
- color = getColor(color);
1274
- string = "[".concat(color, "m").concat(string, "");
1268
+ const colorCode = getColor(color);
1269
+ string = "[".concat(colorCode, "m").concat(string, "");
1275
1270
  }
1276
1271
  if (background) {
1277
- color = getColor(background);
1278
- string = "[".concat(background + 10, "m").concat(string, "");
1272
+ const colorCode = getColor(background);
1273
+ string = "[".concat(colorCode + BACKGROUND_INCREMENT, "m").concat(string, "");
1279
1274
  }
1280
1275
  }
1281
1276
  return string;
1282
1277
  }
1283
- var COLOR;
1278
+ var COLOR, BACKGROUND_INCREMENT;
1284
1279
  var init_color = __esm({
1285
- "../../node_modules/@probe.gl/log/dist/esm/utils/color.js"() {
1286
- init_esm();
1280
+ "../core/node_modules/@probe.gl/log/dist/utils/color.js"() {
1281
+ init_dist();
1287
1282
  (function(COLOR2) {
1288
1283
  COLOR2[COLOR2["BLACK"] = 30] = "BLACK";
1289
1284
  COLOR2[COLOR2["RED"] = 31] = "RED";
@@ -1302,47 +1297,50 @@
1302
1297
  COLOR2[COLOR2["BRIGHT_CYAN"] = 96] = "BRIGHT_CYAN";
1303
1298
  COLOR2[COLOR2["BRIGHT_WHITE"] = 97] = "BRIGHT_WHITE";
1304
1299
  })(COLOR || (COLOR = {}));
1300
+ BACKGROUND_INCREMENT = 10;
1305
1301
  }
1306
1302
  });
1307
1303
 
1308
- // ../../node_modules/@probe.gl/log/dist/esm/utils/autobind.js
1304
+ // ../core/node_modules/@probe.gl/log/dist/utils/autobind.js
1309
1305
  function autobind(obj) {
1310
1306
  let predefined = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ["constructor"];
1311
1307
  const proto = Object.getPrototypeOf(obj);
1312
1308
  const propNames = Object.getOwnPropertyNames(proto);
1309
+ const object = obj;
1313
1310
  for (const key of propNames) {
1314
- if (typeof obj[key] === "function") {
1311
+ const value = object[key];
1312
+ if (typeof value === "function") {
1315
1313
  if (!predefined.find((name) => key === name)) {
1316
- obj[key] = obj[key].bind(obj);
1314
+ object[key] = value.bind(obj);
1317
1315
  }
1318
1316
  }
1319
1317
  }
1320
1318
  }
1321
1319
  var init_autobind = __esm({
1322
- "../../node_modules/@probe.gl/log/dist/esm/utils/autobind.js"() {
1320
+ "../core/node_modules/@probe.gl/log/dist/utils/autobind.js"() {
1323
1321
  }
1324
1322
  });
1325
1323
 
1326
- // ../../node_modules/@probe.gl/log/dist/esm/utils/assert.js
1324
+ // ../core/node_modules/@probe.gl/log/dist/utils/assert.js
1327
1325
  function assert3(condition, message) {
1328
1326
  if (!condition) {
1329
1327
  throw new Error(message || "Assertion failed");
1330
1328
  }
1331
1329
  }
1332
1330
  var init_assert3 = __esm({
1333
- "../../node_modules/@probe.gl/log/dist/esm/utils/assert.js"() {
1331
+ "../core/node_modules/@probe.gl/log/dist/utils/assert.js"() {
1334
1332
  }
1335
1333
  });
1336
1334
 
1337
- // ../../node_modules/@probe.gl/log/dist/esm/utils/hi-res-timestamp.js
1335
+ // ../core/node_modules/@probe.gl/log/dist/utils/hi-res-timestamp.js
1338
1336
  function getHiResTimestamp() {
1339
1337
  let timestamp;
1340
- if (isBrowser3 && "performance" in window_3) {
1338
+ if (isBrowser3() && window2.performance) {
1341
1339
  var _window$performance, _window$performance$n;
1342
- timestamp = window_3 === null || window_3 === void 0 ? void 0 : (_window$performance = window_3.performance) === null || _window$performance === void 0 ? void 0 : (_window$performance$n = _window$performance.now) === null || _window$performance$n === void 0 ? void 0 : _window$performance$n.call(_window$performance);
1343
- } else if ("hrtime" in process_) {
1340
+ timestamp = window2 === null || window2 === void 0 ? void 0 : (_window$performance = window2.performance) === null || _window$performance === void 0 ? void 0 : (_window$performance$n = _window$performance.now) === null || _window$performance$n === void 0 ? void 0 : _window$performance$n.call(_window$performance);
1341
+ } else if ("hrtime" in process2) {
1344
1342
  var _process$hrtime;
1345
- const timeParts = process_ === null || process_ === void 0 ? void 0 : (_process$hrtime = process_.hrtime) === null || _process$hrtime === void 0 ? void 0 : _process$hrtime.call(process_);
1343
+ const timeParts = process2 === null || process2 === void 0 ? void 0 : (_process$hrtime = process2.hrtime) === null || _process$hrtime === void 0 ? void 0 : _process$hrtime.call(process2);
1346
1344
  timestamp = timeParts[0] * 1e3 + timeParts[1] / 1e6;
1347
1345
  } else {
1348
1346
  timestamp = Date.now();
@@ -1350,18 +1348,12 @@
1350
1348
  return timestamp;
1351
1349
  }
1352
1350
  var init_hi_res_timestamp = __esm({
1353
- "../../node_modules/@probe.gl/log/dist/esm/utils/hi-res-timestamp.js"() {
1354
- init_esm();
1355
- }
1356
- });
1357
-
1358
- // (disabled):../../node_modules/@probe.gl/log/dist/esm/node/node-asciify-image
1359
- var init_node_asciify_image = __esm({
1360
- "(disabled):../../node_modules/@probe.gl/log/dist/esm/node/node-asciify-image"() {
1351
+ "../core/node_modules/@probe.gl/log/dist/utils/hi-res-timestamp.js"() {
1352
+ init_dist();
1361
1353
  }
1362
1354
  });
1363
1355
 
1364
- // ../../node_modules/@probe.gl/log/dist/esm/log.js
1356
+ // ../core/node_modules/@probe.gl/log/dist/log.js
1365
1357
  function noop() {
1366
1358
  }
1367
1359
  function normalizeLogLevel(logLevel) {
@@ -1427,11 +1419,7 @@
1427
1419
  message = "",
1428
1420
  scale: scale5 = 1
1429
1421
  } = _ref2;
1430
- asciify.nodeAsciifyImage({
1431
- image,
1432
- message,
1433
- scale: scale5
1434
- });
1422
+ console.warn("removed");
1435
1423
  return noop;
1436
1424
  }
1437
1425
  function logImageInBrowser(_ref3) {
@@ -1470,26 +1458,25 @@
1470
1458
  }
1471
1459
  return "empty";
1472
1460
  }
1473
- var originalConsole, DEFAULT_SETTINGS, cache, ONCE, Log;
1461
+ var originalConsole, DEFAULT_LOG_CONFIGURATION, cache, ONCE, Log;
1474
1462
  var init_log = __esm({
1475
- "../../node_modules/@probe.gl/log/dist/esm/log.js"() {
1463
+ "../core/node_modules/@probe.gl/log/dist/log.js"() {
1476
1464
  init_defineProperty();
1477
- init_esm();
1465
+ init_dist();
1478
1466
  init_local_storage();
1479
1467
  init_formatters();
1480
1468
  init_color();
1481
1469
  init_autobind();
1482
1470
  init_assert3();
1483
1471
  init_hi_res_timestamp();
1484
- init_node_asciify_image();
1485
1472
  originalConsole = {
1486
- debug: isBrowser3 ? console.debug || console.log : console.log,
1473
+ debug: isBrowser3() ? console.debug || console.log : console.log,
1487
1474
  log: console.log,
1488
1475
  info: console.info,
1489
1476
  warn: console.warn,
1490
1477
  error: console.error
1491
1478
  };
1492
- DEFAULT_SETTINGS = {
1479
+ DEFAULT_LOG_CONFIGURATION = {
1493
1480
  enabled: true,
1494
1481
  level: 0
1495
1482
  };
@@ -1512,8 +1499,8 @@
1512
1499
  _defineProperty(this, "userData", {});
1513
1500
  _defineProperty(this, "LOG_THROTTLE_TIMEOUT", 0);
1514
1501
  this.id = id;
1515
- this._storage = new LocalStorage("__probe-".concat(this.id, "__"), DEFAULT_SETTINGS);
1516
1502
  this.userData = {};
1503
+ this._storage = new LocalStorage("__probe-".concat(this.id, "__"), DEFAULT_LOG_CONFIGURATION);
1517
1504
  this.timeStamp("".concat(this.id, " started"));
1518
1505
  autobind(this);
1519
1506
  Object.seal(this);
@@ -1547,13 +1534,13 @@
1547
1534
  }
1548
1535
  enable() {
1549
1536
  let enabled = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : true;
1550
- this._storage.updateConfiguration({
1537
+ this._storage.setConfiguration({
1551
1538
  enabled
1552
1539
  });
1553
1540
  return this;
1554
1541
  }
1555
1542
  setLevel(level) {
1556
- this._storage.updateConfiguration({
1543
+ this._storage.setConfiguration({
1557
1544
  level
1558
1545
  });
1559
1546
  return this;
@@ -1562,7 +1549,7 @@
1562
1549
  return this._storage.config[setting];
1563
1550
  }
1564
1551
  set(setting, value) {
1565
- this._storage.updateConfiguration({
1552
+ this._storage.setConfiguration({
1566
1553
  [setting]: value
1567
1554
  });
1568
1555
  }
@@ -1601,9 +1588,6 @@
1601
1588
  return this._getLogFunction(logLevel, message, console.info, arguments);
1602
1589
  }
1603
1590
  once(logLevel, message) {
1604
- for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
1605
- args[_key - 2] = arguments[_key];
1606
- }
1607
1591
  return this._getLogFunction(logLevel, message, originalConsole.debug || originalConsole.info, arguments, ONCE);
1608
1592
  }
1609
1593
  table(logLevel, table, columns) {
@@ -1625,7 +1609,7 @@
1625
1609
  if (!this._shouldLog(logLevel || priority)) {
1626
1610
  return noop;
1627
1611
  }
1628
- return isBrowser3 ? logImageInBrowser({
1612
+ return isBrowser3() ? logImageInBrowser({
1629
1613
  image,
1630
1614
  message,
1631
1615
  scale: scale5
@@ -1698,7 +1682,7 @@
1698
1682
  opts.delta = this.getDelta();
1699
1683
  this._deltaTs = getHiResTimestamp();
1700
1684
  const tag = opts.tag || opts.message;
1701
- if (opts.once) {
1685
+ if (opts.once && tag) {
1702
1686
  if (!cache[tag]) {
1703
1687
  cache[tag] = getHiResTimestamp();
1704
1688
  } else {
@@ -1715,13 +1699,13 @@
1715
1699
  }
1716
1700
  });
1717
1701
 
1718
- // ../../node_modules/@probe.gl/log/dist/esm/index.js
1719
- var esm_default;
1720
- var init_esm2 = __esm({
1721
- "../../node_modules/@probe.gl/log/dist/esm/index.js"() {
1702
+ // ../core/node_modules/@probe.gl/log/dist/index.js
1703
+ var dist_default;
1704
+ var init_dist2 = __esm({
1705
+ "../core/node_modules/@probe.gl/log/dist/index.js"() {
1722
1706
  init_log();
1723
1707
  init_log();
1724
- esm_default = new Log({
1708
+ dist_default = new Log({
1725
1709
  id: "@probe.gl/log"
1726
1710
  });
1727
1711
  }
@@ -1731,7 +1715,7 @@
1731
1715
  var probeLog, NullLog, ConsoleLog;
1732
1716
  var init_loggers = __esm({
1733
1717
  "../core/src/lib/loader-utils/loggers.ts"() {
1734
- init_esm2();
1718
+ init_dist2();
1735
1719
  probeLog = new Log({ id: "loaders.gl" });
1736
1720
  NullLog = class {
1737
1721
  log() {
@@ -1829,20 +1813,6 @@
1829
1813
  validateOptions(options, loaders);
1830
1814
  return normalizeOptionsInternal(loader, options, url);
1831
1815
  }
1832
- function getFetchFunction(options, context) {
1833
- const globalOptions = getGlobalLoaderOptions();
1834
- const fetchOptions = options || globalOptions;
1835
- if (typeof fetchOptions.fetch === "function") {
1836
- return fetchOptions.fetch;
1837
- }
1838
- if (isObject(fetchOptions.fetch)) {
1839
- return (url) => fetchFile(url, fetchOptions);
1840
- }
1841
- if (context?.fetch) {
1842
- return context?.fetch;
1843
- }
1844
- return fetchFile;
1845
- }
1846
1816
  function validateOptions(options, loaders) {
1847
1817
  validateOptionsObject(options, null, DEFAULT_LOADER_OPTIONS, REMOVED_LOADER_OPTIONS, loaders);
1848
1818
  for (const loader of loaders) {
@@ -1921,7 +1891,6 @@
1921
1891
  var init_option_utils = __esm({
1922
1892
  "../core/src/lib/loader-utils/option-utils.ts"() {
1923
1893
  init_is_type();
1924
- init_fetch_file();
1925
1894
  init_loggers();
1926
1895
  init_option_defaults();
1927
1896
  getGlobalLoaderOptions = () => {
@@ -1989,7 +1958,7 @@
1989
1958
  var log;
1990
1959
  var init_log2 = __esm({
1991
1960
  "../core/src/lib/utils/log.ts"() {
1992
- init_esm2();
1961
+ init_dist2();
1993
1962
  log = new Log({ id: "loaders.gl" });
1994
1963
  }
1995
1964
  });
@@ -2371,6 +2340,29 @@
2371
2340
  }
2372
2341
  });
2373
2342
 
2343
+ // ../core/src/lib/loader-utils/get-fetch-function.ts
2344
+ function getFetchFunction(options, context) {
2345
+ const globalOptions = getGlobalLoaderOptions();
2346
+ const fetchOptions = options || globalOptions;
2347
+ if (typeof fetchOptions.fetch === "function") {
2348
+ return fetchOptions.fetch;
2349
+ }
2350
+ if (isObject(fetchOptions.fetch)) {
2351
+ return (url) => fetchFile(url, fetchOptions);
2352
+ }
2353
+ if (context?.fetch) {
2354
+ return context?.fetch;
2355
+ }
2356
+ return fetchFile;
2357
+ }
2358
+ var init_get_fetch_function = __esm({
2359
+ "../core/src/lib/loader-utils/get-fetch-function.ts"() {
2360
+ init_is_type();
2361
+ init_fetch_file();
2362
+ init_option_utils();
2363
+ }
2364
+ });
2365
+
2374
2366
  // ../core/src/lib/loader-utils/loader-context.ts
2375
2367
  function getLoaderContext(context, options, previousContext = null) {
2376
2368
  if (previousContext) {
@@ -2401,7 +2393,7 @@
2401
2393
  }
2402
2394
  var init_loader_context = __esm({
2403
2395
  "../core/src/lib/loader-utils/loader-context.ts"() {
2404
- init_option_utils();
2396
+ init_get_fetch_function();
2405
2397
  }
2406
2398
  });
2407
2399
 
@@ -2486,7 +2478,7 @@
2486
2478
  "../core/src/lib/api/load.ts"() {
2487
2479
  init_is_type();
2488
2480
  init_normalize_loader();
2489
- init_option_utils();
2481
+ init_get_fetch_function();
2490
2482
  init_parse();
2491
2483
  }
2492
2484
  });
@@ -5404,7 +5396,7 @@
5404
5396
  });
5405
5397
 
5406
5398
  // ../../node_modules/@math.gl/core/dist/esm/index.js
5407
- var init_esm3 = __esm({
5399
+ var init_esm = __esm({
5408
5400
  "../../node_modules/@math.gl/core/dist/esm/index.js"() {
5409
5401
  init_vector3();
5410
5402
  init_matrix3();
@@ -5479,7 +5471,7 @@
5479
5471
  var scratchVector;
5480
5472
  var init_type_utils = __esm({
5481
5473
  "../../node_modules/@math.gl/geospatial/dist/esm/type-utils.js"() {
5482
- init_esm3();
5474
+ init_esm();
5483
5475
  init_constants();
5484
5476
  scratchVector = new Vector3();
5485
5477
  }
@@ -5544,7 +5536,7 @@
5544
5536
  var scratchVector2, scaleToGeodeticSurfaceIntersection, scaleToGeodeticSurfaceGradient;
5545
5537
  var init_scale_to_geodetic_surface = __esm({
5546
5538
  "../../node_modules/@math.gl/geospatial/dist/esm/ellipsoid/helpers/scale-to-geodetic-surface.js"() {
5547
- init_esm3();
5539
+ init_esm();
5548
5540
  scratchVector2 = new Vector3();
5549
5541
  scaleToGeodeticSurfaceIntersection = new Vector3();
5550
5542
  scaleToGeodeticSurfaceGradient = new Vector3();
@@ -5616,7 +5608,7 @@
5616
5608
  var EPSILON14, scratchOrigin, VECTOR_PRODUCT_LOCAL_FRAME, degeneratePositionLocalFrame, scratchAxisVectors, scratchVector1, scratchVector22, scratchVector3;
5617
5609
  var init_ellipsoid_transform = __esm({
5618
5610
  "../../node_modules/@math.gl/geospatial/dist/esm/ellipsoid/helpers/ellipsoid-transform.js"() {
5619
- init_esm3();
5611
+ init_esm();
5620
5612
  EPSILON14 = 1e-14;
5621
5613
  scratchOrigin = new Vector3();
5622
5614
  VECTOR_PRODUCT_LOCAL_FRAME = {
@@ -5684,7 +5676,7 @@
5684
5676
  var init_ellipsoid = __esm({
5685
5677
  "../../node_modules/@math.gl/geospatial/dist/esm/ellipsoid/ellipsoid.js"() {
5686
5678
  init_defineProperty();
5687
- init_esm3();
5679
+ init_esm();
5688
5680
  init_vec3();
5689
5681
  init_constants();
5690
5682
  init_type_utils();
@@ -5808,7 +5800,7 @@
5808
5800
  });
5809
5801
 
5810
5802
  // ../../node_modules/@math.gl/geospatial/dist/esm/index.js
5811
- var init_esm4 = __esm({
5803
+ var init_esm2 = __esm({
5812
5804
  "../../node_modules/@math.gl/geospatial/dist/esm/index.js"() {
5813
5805
  init_ellipsoid();
5814
5806
  init_type_utils();
@@ -6017,10 +6009,62 @@
6017
6009
  }
6018
6010
  });
6019
6011
 
6012
+ // ../images/src/lib/category-api/parse-isobmff-binary.ts
6013
+ function getISOBMFFMediaType(buffer) {
6014
+ if (!checkString(buffer, "ftyp", 4)) {
6015
+ return null;
6016
+ }
6017
+ if ((buffer[8] & 96) === 0) {
6018
+ return null;
6019
+ }
6020
+ return decodeMajorBrand(buffer);
6021
+ }
6022
+ function decodeMajorBrand(buffer) {
6023
+ const brandMajor = getUTF8String(buffer, 8, 12).replace("\0", " ").trim();
6024
+ switch (brandMajor) {
6025
+ case "avif":
6026
+ case "avis":
6027
+ return { extension: "avif", mimeType: "image/avif" };
6028
+ default:
6029
+ return null;
6030
+ }
6031
+ }
6032
+ function getUTF8String(array, start, end) {
6033
+ return String.fromCharCode(...array.slice(start, end));
6034
+ }
6035
+ function stringToBytes(string) {
6036
+ return [...string].map((character) => character.charCodeAt(0));
6037
+ }
6038
+ function checkString(buffer, header, offset = 0) {
6039
+ const headerBytes = stringToBytes(header);
6040
+ for (let i2 = 0; i2 < headerBytes.length; ++i2) {
6041
+ if (headerBytes[i2] !== buffer[i2 + offset]) {
6042
+ return false;
6043
+ }
6044
+ }
6045
+ return true;
6046
+ }
6047
+ var init_parse_isobmff_binary = __esm({
6048
+ "../images/src/lib/category-api/parse-isobmff-binary.ts"() {
6049
+ }
6050
+ });
6051
+
6020
6052
  // ../images/src/lib/category-api/binary-image-api.ts
6021
6053
  function getBinaryImageMetadata(binaryData) {
6022
6054
  const dataView = toDataView(binaryData);
6023
- return getPngMetadata(dataView) || getJpegMetadata(dataView) || getGifMetadata(dataView) || getBmpMetadata(dataView);
6055
+ return getPngMetadata(dataView) || getJpegMetadata(dataView) || getGifMetadata(dataView) || getBmpMetadata(dataView) || getISOBMFFMetadata(dataView);
6056
+ }
6057
+ function getISOBMFFMetadata(binaryData) {
6058
+ const buffer = new Uint8Array(binaryData instanceof DataView ? binaryData.buffer : binaryData);
6059
+ const mediaType = getISOBMFFMediaType(buffer);
6060
+ if (!mediaType) {
6061
+ return null;
6062
+ }
6063
+ return {
6064
+ mimeType: mediaType.mimeType,
6065
+ width: 0,
6066
+ height: 0
6067
+ };
6024
6068
  }
6025
6069
  function getPngMetadata(binaryData) {
6026
6070
  const dataView = toDataView(binaryData);
@@ -6121,6 +6165,7 @@
6121
6165
  var BIG_ENDIAN, LITTLE_ENDIAN;
6122
6166
  var init_binary_image_api = __esm({
6123
6167
  "../images/src/lib/category-api/binary-image-api.ts"() {
6168
+ init_parse_isobmff_binary();
6124
6169
  BIG_ENDIAN = false;
6125
6170
  LITTLE_ENDIAN = true;
6126
6171
  }
@@ -6194,12 +6239,13 @@
6194
6239
  init_version2();
6195
6240
  init_parse_image();
6196
6241
  init_binary_image_api();
6197
- EXTENSIONS = ["png", "jpg", "jpeg", "gif", "webp", "bmp", "ico", "svg"];
6242
+ EXTENSIONS = ["png", "jpg", "jpeg", "gif", "webp", "bmp", "ico", "svg", "avif"];
6198
6243
  MIME_TYPES = [
6199
6244
  "image/png",
6200
6245
  "image/jpeg",
6201
6246
  "image/gif",
6202
6247
  "image/webp",
6248
+ "image/avif",
6203
6249
  "image/bmp",
6204
6250
  "image/vnd.microsoft.icon",
6205
6251
  "image/svg+xml"
@@ -8400,10 +8446,10 @@
8400
8446
  });
8401
8447
 
8402
8448
  // ../../node_modules/@luma.gl/constants/dist/esm/index.js
8403
- var esm_default2;
8404
- var init_esm5 = __esm({
8449
+ var esm_default;
8450
+ var init_esm3 = __esm({
8405
8451
  "../../node_modules/@luma.gl/constants/dist/esm/index.js"() {
8406
- esm_default2 = {
8452
+ esm_default = {
8407
8453
  DEPTH_BUFFER_BIT: 256,
8408
8454
  STENCIL_BUFFER_BIT: 1024,
8409
8455
  COLOR_BUFFER_BIT: 16384,
@@ -9061,14 +9107,14 @@
9061
9107
  var GL_TYPE_MAP, STRING_ATTRIBUTE_TYPE, OBJECT_ID_ATTRIBUTE_TYPE, FLOAT_64_TYPE, INT_16_ATTRIBUTE_TYPE, COORDINATE_SYSTEM;
9062
9108
  var init_constants2 = __esm({
9063
9109
  "src/lib/parsers/constants.ts"() {
9064
- init_esm5();
9110
+ init_esm3();
9065
9111
  init_types();
9066
9112
  GL_TYPE_MAP = {
9067
- UInt8: esm_default2.UNSIGNED_BYTE,
9068
- UInt16: esm_default2.UNSIGNED_SHORT,
9069
- Float32: esm_default2.FLOAT,
9070
- UInt32: esm_default2.UNSIGNED_INT,
9071
- UInt64: esm_default2.DOUBLE
9113
+ UInt8: esm_default.UNSIGNED_BYTE,
9114
+ UInt16: esm_default.UNSIGNED_SHORT,
9115
+ Float32: esm_default.FLOAT,
9116
+ UInt32: esm_default.UNSIGNED_INT,
9117
+ UInt64: esm_default.DOUBLE
9072
9118
  };
9073
9119
  STRING_ATTRIBUTE_TYPE = "String";
9074
9120
  OBJECT_ID_ATTRIBUTE_TYPE = "Oid32";
@@ -9703,8 +9749,8 @@
9703
9749
  var init_parse_i3s_tile_content = __esm({
9704
9750
  "src/lib/parsers/parse-i3s-tile-content.ts"() {
9705
9751
  init_src3();
9706
- init_esm3();
9707
- init_esm4();
9752
+ init_esm();
9753
+ init_esm2();
9708
9754
  init_src4();
9709
9755
  init_src6();
9710
9756
  init_src7();
@@ -9766,7 +9812,7 @@
9766
9812
  var init_axis_aligned_bounding_box = __esm({
9767
9813
  "../../node_modules/@math.gl/culling/dist/esm/lib/bounding-volumes/axis-aligned-bounding-box.js"() {
9768
9814
  init_defineProperty();
9769
- init_esm3();
9815
+ init_esm();
9770
9816
  init_constants3();
9771
9817
  scratchVector6 = new Vector3();
9772
9818
  scratchNormal2 = new Vector3();
@@ -9778,7 +9824,7 @@
9778
9824
  var init_bounding_sphere = __esm({
9779
9825
  "../../node_modules/@math.gl/culling/dist/esm/lib/bounding-volumes/bounding-sphere.js"() {
9780
9826
  init_defineProperty();
9781
- init_esm3();
9827
+ init_esm();
9782
9828
  init_mat4();
9783
9829
  init_constants3();
9784
9830
  scratchVector7 = new Vector3();
@@ -9872,7 +9918,7 @@
9872
9918
  var init_oriented_bounding_box = __esm({
9873
9919
  "../../node_modules/@math.gl/culling/dist/esm/lib/bounding-volumes/oriented-bounding-box.js"() {
9874
9920
  init_defineProperty();
9875
- init_esm3();
9921
+ init_esm();
9876
9922
  init_bounding_sphere();
9877
9923
  init_constants3();
9878
9924
  scratchVector32 = new Vector3();
@@ -10069,7 +10115,7 @@
10069
10115
  var init_plane = __esm({
10070
10116
  "../../node_modules/@math.gl/culling/dist/esm/lib/plane.js"() {
10071
10117
  init_defineProperty();
10072
- init_esm3();
10118
+ init_esm();
10073
10119
  scratchPosition2 = new Vector3();
10074
10120
  scratchNormal3 = new Vector3();
10075
10121
  Plane = class {
@@ -10128,7 +10174,7 @@
10128
10174
  var init_culling_volume = __esm({
10129
10175
  "../../node_modules/@math.gl/culling/dist/esm/lib/culling-volume.js"() {
10130
10176
  init_defineProperty();
10131
- init_esm3();
10177
+ init_esm();
10132
10178
  init_constants3();
10133
10179
  init_plane();
10134
10180
  faces = [new Vector3([1, 0, 0]), new Vector3([0, 1, 0]), new Vector3([0, 0, 1])];
@@ -10214,7 +10260,7 @@
10214
10260
  var init_perspective_off_center_frustum = __esm({
10215
10261
  "../../node_modules/@math.gl/culling/dist/esm/lib/perspective-off-center-frustum.js"() {
10216
10262
  init_defineProperty();
10217
- init_esm3();
10263
+ init_esm();
10218
10264
  init_culling_volume();
10219
10265
  init_plane();
10220
10266
  scratchPlaneUpVector = new Vector3();
@@ -10237,7 +10283,7 @@
10237
10283
  var fromPointsXMin, fromPointsYMin, fromPointsZMin, fromPointsXMax, fromPointsYMax, fromPointsZMax, fromPointsCurrentPos, fromPointsScratch, fromPointsRitterCenter, fromPointsMinBoxPt, fromPointsMaxBoxPt, fromPointsNaiveCenterScratch, volumeConstant;
10238
10284
  var init_bounding_sphere_from_points = __esm({
10239
10285
  "../../node_modules/@math.gl/culling/dist/esm/lib/algorithms/bounding-sphere-from-points.js"() {
10240
- init_esm3();
10286
+ init_esm();
10241
10287
  init_bounding_sphere();
10242
10288
  fromPointsXMin = new Vector3();
10243
10289
  fromPointsYMin = new Vector3();
@@ -10259,7 +10305,7 @@
10259
10305
  var scratchMatrix, scratchUnitary, scratchDiagonal, jMatrix, jMatrixTranspose;
10260
10306
  var init_compute_eigen_decomposition = __esm({
10261
10307
  "../../node_modules/@math.gl/culling/dist/esm/lib/algorithms/compute-eigen-decomposition.js"() {
10262
- init_esm3();
10308
+ init_esm();
10263
10309
  scratchMatrix = new Matrix3();
10264
10310
  scratchUnitary = new Matrix3();
10265
10311
  scratchDiagonal = new Matrix3();
@@ -10272,7 +10318,7 @@
10272
10318
  var scratchVector24, scratchVector33, scratchVector42, scratchVector52, scratchVector62, scratchCovarianceResult, scratchEigenResult;
10273
10319
  var init_bounding_box_from_points = __esm({
10274
10320
  "../../node_modules/@math.gl/culling/dist/esm/lib/algorithms/bounding-box-from-points.js"() {
10275
- init_esm3();
10321
+ init_esm();
10276
10322
  init_compute_eigen_decomposition();
10277
10323
  init_oriented_bounding_box();
10278
10324
  init_axis_aligned_bounding_box();
@@ -10290,7 +10336,7 @@
10290
10336
  });
10291
10337
 
10292
10338
  // ../../node_modules/@math.gl/culling/dist/esm/index.js
10293
- var init_esm6 = __esm({
10339
+ var init_esm4 = __esm({
10294
10340
  "../../node_modules/@math.gl/culling/dist/esm/index.js"() {
10295
10341
  init_constants3();
10296
10342
  init_axis_aligned_bounding_box();
@@ -10614,8 +10660,8 @@
10614
10660
  }
10615
10661
  var init_parse_i3s = __esm({
10616
10662
  "src/lib/parsers/parse-i3s.ts"() {
10617
- init_esm6();
10618
10663
  init_esm4();
10664
+ init_esm2();
10619
10665
  init_src3();
10620
10666
  init_src8();
10621
10667
  init_i3s_nodepages_tiles();