@loaders.gl/archives 5.0.0-beta.7 → 5.0.0-rc.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/dist.dev.js CHANGED
@@ -98,6 +98,734 @@ var __exports__ = (() => {
98
98
  }
99
99
  });
100
100
 
101
+ // ../../node_modules/probe.gl/dist/env/lib/globals.js
102
+ var window_2, document_2, process_, console_, navigator_;
103
+ var init_globals2 = __esm({
104
+ "../../node_modules/probe.gl/dist/env/lib/globals.js"() {
105
+ window_2 = globalThis;
106
+ document_2 = globalThis.document || {};
107
+ process_ = globalThis.process || {};
108
+ console_ = globalThis.console;
109
+ navigator_ = globalThis.navigator || {};
110
+ }
111
+ });
112
+
113
+ // ../../node_modules/probe.gl/dist/env/lib/is-electron.js
114
+ function isElectron(mockUserAgent) {
115
+ if (typeof window !== "undefined" && window.process?.type === "renderer") {
116
+ return true;
117
+ }
118
+ if (typeof process !== "undefined" && Boolean(process.versions?.["electron"])) {
119
+ return true;
120
+ }
121
+ const realUserAgent = typeof navigator !== "undefined" && navigator.userAgent;
122
+ const userAgent = mockUserAgent || realUserAgent;
123
+ return Boolean(userAgent && userAgent.indexOf("Electron") >= 0);
124
+ }
125
+ var init_is_electron = __esm({
126
+ "../../node_modules/probe.gl/dist/env/lib/is-electron.js"() {
127
+ }
128
+ });
129
+
130
+ // ../../node_modules/probe.gl/dist/env/lib/is-browser.js
131
+ function isBrowser2() {
132
+ const isNode = (
133
+ // @ts-expect-error
134
+ typeof process === "object" && String(process) === "[object process]" && !process?.browser
135
+ );
136
+ return !isNode || isElectron();
137
+ }
138
+ var init_is_browser = __esm({
139
+ "../../node_modules/probe.gl/dist/env/lib/is-browser.js"() {
140
+ init_is_electron();
141
+ }
142
+ });
143
+
144
+ // ../../node_modules/probe.gl/dist/env/lib/get-browser.js
145
+ var init_get_browser = __esm({
146
+ "../../node_modules/probe.gl/dist/env/lib/get-browser.js"() {
147
+ init_is_browser();
148
+ init_is_electron();
149
+ init_globals2();
150
+ }
151
+ });
152
+
153
+ // ../../node_modules/probe.gl/dist/env/utils/assert.js
154
+ var init_assert = __esm({
155
+ "../../node_modules/probe.gl/dist/env/utils/assert.js"() {
156
+ }
157
+ });
158
+
159
+ // ../../node_modules/probe.gl/dist/env/index.js
160
+ var VERSION;
161
+ var init_env = __esm({
162
+ "../../node_modules/probe.gl/dist/env/index.js"() {
163
+ init_globals2();
164
+ init_is_browser();
165
+ init_get_browser();
166
+ init_is_electron();
167
+ init_assert();
168
+ VERSION = true ? "5.0.0" : "untranspiled source";
169
+ }
170
+ });
171
+
172
+ // ../../node_modules/probe.gl/dist/log/utils/assert.js
173
+ function assert2(condition, message) {
174
+ if (!condition) {
175
+ throw new Error(message || "Assertion failed");
176
+ }
177
+ }
178
+ var init_assert2 = __esm({
179
+ "../../node_modules/probe.gl/dist/log/utils/assert.js"() {
180
+ }
181
+ });
182
+
183
+ // ../../node_modules/probe.gl/dist/log/loggers/log-utils.js
184
+ function normalizeLogLevel(logLevel) {
185
+ if (!logLevel) {
186
+ return 0;
187
+ }
188
+ let resolvedLevel;
189
+ switch (typeof logLevel) {
190
+ case "number":
191
+ resolvedLevel = logLevel;
192
+ break;
193
+ case "object":
194
+ resolvedLevel = logLevel.logLevel || logLevel.priority || 0;
195
+ break;
196
+ default:
197
+ return 0;
198
+ }
199
+ assert2(Number.isFinite(resolvedLevel) && resolvedLevel >= 0);
200
+ return resolvedLevel;
201
+ }
202
+ function normalizeArguments(opts) {
203
+ const { logLevel, message } = opts;
204
+ opts.logLevel = normalizeLogLevel(logLevel);
205
+ const args = opts.args ? Array.from(opts.args) : [];
206
+ while (args.length && args.shift() !== message) {
207
+ }
208
+ switch (typeof logLevel) {
209
+ case "string":
210
+ case "function":
211
+ if (message !== void 0) {
212
+ args.unshift(message);
213
+ }
214
+ opts.message = logLevel;
215
+ break;
216
+ case "object":
217
+ Object.assign(opts, logLevel);
218
+ break;
219
+ default:
220
+ }
221
+ if (typeof opts.message === "function") {
222
+ opts.message = opts.message();
223
+ }
224
+ const messageType = typeof opts.message;
225
+ assert2(messageType === "string" || messageType === "object");
226
+ return Object.assign(opts, { args }, opts.opts);
227
+ }
228
+ var init_log_utils = __esm({
229
+ "../../node_modules/probe.gl/dist/log/loggers/log-utils.js"() {
230
+ init_assert2();
231
+ }
232
+ });
233
+
234
+ // ../../node_modules/probe.gl/dist/log/loggers/base-log.js
235
+ var noop, BaseLog;
236
+ var init_base_log = __esm({
237
+ "../../node_modules/probe.gl/dist/log/loggers/base-log.js"() {
238
+ init_log_utils();
239
+ noop = () => {
240
+ };
241
+ BaseLog = class {
242
+ constructor({ level = 0 } = {}) {
243
+ this.userData = {};
244
+ this._onceCache = /* @__PURE__ */ new Set();
245
+ this._level = level;
246
+ }
247
+ set level(newLevel) {
248
+ this.setLevel(newLevel);
249
+ }
250
+ get level() {
251
+ return this.getLevel();
252
+ }
253
+ setLevel(level) {
254
+ this._level = level;
255
+ return this;
256
+ }
257
+ getLevel() {
258
+ return this._level;
259
+ }
260
+ // Unconditional logging
261
+ warn(message, ...args) {
262
+ return this._log("warn", 0, message, args, { once: true });
263
+ }
264
+ error(message, ...args) {
265
+ return this._log("error", 0, message, args);
266
+ }
267
+ // Conditional logging
268
+ log(logLevel, message, ...args) {
269
+ return this._log("log", logLevel, message, args);
270
+ }
271
+ info(logLevel, message, ...args) {
272
+ return this._log("info", logLevel, message, args);
273
+ }
274
+ once(logLevel, message, ...args) {
275
+ return this._log("once", logLevel, message, args, { once: true });
276
+ }
277
+ _log(type, logLevel, message, args, options = {}) {
278
+ const normalized = normalizeArguments({
279
+ logLevel,
280
+ message,
281
+ args: this._buildArgs(logLevel, message, args),
282
+ opts: options
283
+ });
284
+ return this._createLogFunction(type, normalized, options);
285
+ }
286
+ _buildArgs(logLevel, message, args) {
287
+ return [logLevel, message, ...args];
288
+ }
289
+ _createLogFunction(type, normalized, options) {
290
+ if (!this._shouldLog(normalized.logLevel)) {
291
+ return noop;
292
+ }
293
+ const tag = this._getOnceTag(options.tag ?? normalized.tag ?? normalized.message);
294
+ if ((options.once || normalized.once) && tag !== void 0) {
295
+ if (this._onceCache.has(tag)) {
296
+ return noop;
297
+ }
298
+ this._onceCache.add(tag);
299
+ }
300
+ return this._emit(type, normalized);
301
+ }
302
+ _shouldLog(logLevel) {
303
+ return this.getLevel() >= normalizeLogLevel(logLevel);
304
+ }
305
+ _getOnceTag(tag) {
306
+ if (tag === void 0) {
307
+ return void 0;
308
+ }
309
+ try {
310
+ return typeof tag === "string" ? tag : String(tag);
311
+ } catch {
312
+ return void 0;
313
+ }
314
+ }
315
+ };
316
+ }
317
+ });
318
+
319
+ // ../../node_modules/probe.gl/dist/log/utils/local-storage.js
320
+ function getStorage(type) {
321
+ try {
322
+ const storage = window[type];
323
+ const x = "__storage_test__";
324
+ storage.setItem(x, x);
325
+ storage.removeItem(x);
326
+ return storage;
327
+ } catch (e) {
328
+ return null;
329
+ }
330
+ }
331
+ var LocalStorage;
332
+ var init_local_storage = __esm({
333
+ "../../node_modules/probe.gl/dist/log/utils/local-storage.js"() {
334
+ LocalStorage = class {
335
+ constructor(id, defaultConfig, type = "sessionStorage") {
336
+ this.storage = getStorage(type);
337
+ this.id = id;
338
+ this.config = defaultConfig;
339
+ this._loadConfiguration();
340
+ }
341
+ getConfiguration() {
342
+ return this.config;
343
+ }
344
+ setConfiguration(configuration) {
345
+ Object.assign(this.config, configuration);
346
+ if (this.storage) {
347
+ const serialized = JSON.stringify(this.config);
348
+ this.storage.setItem(this.id, serialized);
349
+ }
350
+ }
351
+ // Get config from persistent store, if available
352
+ _loadConfiguration() {
353
+ let configuration = {};
354
+ if (this.storage) {
355
+ const serializedConfiguration = this.storage.getItem(this.id);
356
+ configuration = serializedConfiguration ? JSON.parse(serializedConfiguration) : {};
357
+ }
358
+ Object.assign(this.config, configuration);
359
+ return this;
360
+ }
361
+ };
362
+ }
363
+ });
364
+
365
+ // ../../node_modules/probe.gl/dist/log/utils/formatters.js
366
+ function formatTime(ms) {
367
+ let formatted;
368
+ if (ms < 10) {
369
+ formatted = `${ms.toFixed(2)}ms`;
370
+ } else if (ms < 100) {
371
+ formatted = `${ms.toFixed(1)}ms`;
372
+ } else if (ms < 1e3) {
373
+ formatted = `${ms.toFixed(0)}ms`;
374
+ } else {
375
+ formatted = `${(ms / 1e3).toFixed(2)}s`;
376
+ }
377
+ return formatted;
378
+ }
379
+ function leftPad(string, length = 8) {
380
+ const padLength = Math.max(length - string.length, 0);
381
+ return `${" ".repeat(padLength)}${string}`;
382
+ }
383
+ var init_formatters = __esm({
384
+ "../../node_modules/probe.gl/dist/log/utils/formatters.js"() {
385
+ }
386
+ });
387
+
388
+ // ../../node_modules/probe.gl/dist/log/utils/color.js
389
+ function getColor(color) {
390
+ if (typeof color !== "string") {
391
+ return color;
392
+ }
393
+ color = color.toUpperCase();
394
+ return COLOR[color] || COLOR.WHITE;
395
+ }
396
+ function addColor(string, color, background) {
397
+ if (!isBrowser2 && typeof string === "string") {
398
+ if (color) {
399
+ const colorCode = getColor(color);
400
+ string = `\x1B[${colorCode}m${string}\x1B[39m`;
401
+ }
402
+ if (background) {
403
+ const colorCode = getColor(background);
404
+ string = `\x1B[${colorCode + BACKGROUND_INCREMENT}m${string}\x1B[49m`;
405
+ }
406
+ }
407
+ return string;
408
+ }
409
+ var COLOR, BACKGROUND_INCREMENT;
410
+ var init_color = __esm({
411
+ "../../node_modules/probe.gl/dist/log/utils/color.js"() {
412
+ init_env();
413
+ (function(COLOR2) {
414
+ COLOR2[COLOR2["BLACK"] = 30] = "BLACK";
415
+ COLOR2[COLOR2["RED"] = 31] = "RED";
416
+ COLOR2[COLOR2["GREEN"] = 32] = "GREEN";
417
+ COLOR2[COLOR2["YELLOW"] = 33] = "YELLOW";
418
+ COLOR2[COLOR2["BLUE"] = 34] = "BLUE";
419
+ COLOR2[COLOR2["MAGENTA"] = 35] = "MAGENTA";
420
+ COLOR2[COLOR2["CYAN"] = 36] = "CYAN";
421
+ COLOR2[COLOR2["WHITE"] = 37] = "WHITE";
422
+ COLOR2[COLOR2["BRIGHT_BLACK"] = 90] = "BRIGHT_BLACK";
423
+ COLOR2[COLOR2["BRIGHT_RED"] = 91] = "BRIGHT_RED";
424
+ COLOR2[COLOR2["BRIGHT_GREEN"] = 92] = "BRIGHT_GREEN";
425
+ COLOR2[COLOR2["BRIGHT_YELLOW"] = 93] = "BRIGHT_YELLOW";
426
+ COLOR2[COLOR2["BRIGHT_BLUE"] = 94] = "BRIGHT_BLUE";
427
+ COLOR2[COLOR2["BRIGHT_MAGENTA"] = 95] = "BRIGHT_MAGENTA";
428
+ COLOR2[COLOR2["BRIGHT_CYAN"] = 96] = "BRIGHT_CYAN";
429
+ COLOR2[COLOR2["BRIGHT_WHITE"] = 97] = "BRIGHT_WHITE";
430
+ })(COLOR || (COLOR = {}));
431
+ BACKGROUND_INCREMENT = 10;
432
+ }
433
+ });
434
+
435
+ // ../../node_modules/probe.gl/dist/log/utils/autobind.js
436
+ function autobind(obj, predefined = ["constructor"]) {
437
+ const proto = Object.getPrototypeOf(obj);
438
+ const propNames = Object.getOwnPropertyNames(proto);
439
+ const object = obj;
440
+ for (const key of propNames) {
441
+ const value = object[key];
442
+ if (typeof value === "function") {
443
+ if (!predefined.find((name) => key === name)) {
444
+ object[key] = value.bind(obj);
445
+ }
446
+ }
447
+ }
448
+ }
449
+ var init_autobind = __esm({
450
+ "../../node_modules/probe.gl/dist/log/utils/autobind.js"() {
451
+ }
452
+ });
453
+
454
+ // ../../node_modules/probe.gl/dist/log/probe.js
455
+ var Probe, probe;
456
+ var init_probe = __esm({
457
+ "../../node_modules/probe.gl/dist/log/probe.js"() {
458
+ init_env();
459
+ Probe = class {
460
+ getHighResolutionTimer() {
461
+ let timestamp;
462
+ if (isBrowser2() && window_2.performance) {
463
+ timestamp = window_2?.performance?.now?.();
464
+ } else if ("hrtime" in process_) {
465
+ const timeParts = process_?.hrtime?.();
466
+ timestamp = timeParts[0] * 1e3 + timeParts[1] / 1e6;
467
+ } else {
468
+ timestamp = Date.now();
469
+ }
470
+ return timestamp;
471
+ }
472
+ getMemoryUsageMB() {
473
+ const performance = window_2?.performance;
474
+ const usedJSHeapSize = performance?.memory?.usedJSHeapSize;
475
+ if (usedJSHeapSize === void 0 || usedJSHeapSize === null) {
476
+ return null;
477
+ }
478
+ return Math.trunc(usedJSHeapSize / 1024 / 1024);
479
+ }
480
+ };
481
+ probe = new Probe();
482
+ globalThis.Probe = Probe;
483
+ globalThis.probe = probe;
484
+ }
485
+ });
486
+
487
+ // ../../node_modules/probe.gl/dist/log/loggers/probe-log.js
488
+ function decorateMessage(id, message, opts) {
489
+ if (typeof message === "string") {
490
+ const time = opts.time ? leftPad(formatTime(opts.total)) : "";
491
+ message = opts.time ? `${id}: ${time} ${message}` : `${id}: ${message}`;
492
+ message = addColor(message, opts.color, opts.background);
493
+ }
494
+ return message;
495
+ }
496
+ function getTableHeader(table) {
497
+ for (const key in table) {
498
+ for (const title in table[key]) {
499
+ return title || "untitled";
500
+ }
501
+ }
502
+ return "empty";
503
+ }
504
+ var originalConsole, DEFAULT_LOG_CONFIGURATION, ProbeLog;
505
+ var init_probe_log = __esm({
506
+ "../../node_modules/probe.gl/dist/log/loggers/probe-log.js"() {
507
+ init_env();
508
+ init_base_log();
509
+ init_local_storage();
510
+ init_formatters();
511
+ init_color();
512
+ init_autobind();
513
+ init_assert2();
514
+ init_probe();
515
+ init_log_utils();
516
+ init_log_utils();
517
+ originalConsole = {
518
+ debug: isBrowser2() ? console.debug || console.log : console.log,
519
+ log: console.log,
520
+ info: console.info,
521
+ warn: console.warn,
522
+ error: console.error
523
+ };
524
+ DEFAULT_LOG_CONFIGURATION = {
525
+ enabled: true,
526
+ level: 0
527
+ };
528
+ ProbeLog = class extends BaseLog {
529
+ constructor({ id } = { id: "" }) {
530
+ super({ level: 0 });
531
+ this.VERSION = VERSION;
532
+ this._startTs = probe.getHighResolutionTimer();
533
+ this._deltaTs = probe.getHighResolutionTimer();
534
+ this.userData = {};
535
+ this.LOG_THROTTLE_TIMEOUT = 0;
536
+ this.id = id;
537
+ this.userData = {};
538
+ this._storage = new LocalStorage(`__probe-${this.id}__`, { [this.id]: DEFAULT_LOG_CONFIGURATION });
539
+ this.timeStamp(`${this.id} started`);
540
+ autobind(this);
541
+ Object.seal(this);
542
+ }
543
+ isEnabled() {
544
+ return this._getConfiguration().enabled;
545
+ }
546
+ getLevel() {
547
+ return this._getConfiguration().level;
548
+ }
549
+ /** @return milliseconds, with fractions */
550
+ getTotal() {
551
+ return Number((probe.getHighResolutionTimer() - this._startTs).toPrecision(10));
552
+ }
553
+ /** @return milliseconds, with fractions */
554
+ getDelta() {
555
+ return Number((probe.getHighResolutionTimer() - this._deltaTs).toPrecision(10));
556
+ }
557
+ /** @deprecated use logLevel */
558
+ set priority(newPriority) {
559
+ this.level = newPriority;
560
+ }
561
+ /** @deprecated use logLevel */
562
+ get priority() {
563
+ return this.level;
564
+ }
565
+ /** @deprecated use logLevel */
566
+ getPriority() {
567
+ return this.level;
568
+ }
569
+ // Configure
570
+ enable(enabled = true) {
571
+ this._updateConfiguration({ enabled });
572
+ return this;
573
+ }
574
+ setLevel(level) {
575
+ this._updateConfiguration({ level });
576
+ return this;
577
+ }
578
+ /** return the current status of the setting */
579
+ get(setting) {
580
+ return this._getConfiguration()[setting];
581
+ }
582
+ // update the status of the setting
583
+ set(setting, value) {
584
+ this._updateConfiguration({ [setting]: value });
585
+ }
586
+ /** Logs the current settings as a table */
587
+ settings() {
588
+ if (console.table) {
589
+ console.table(this._storage.config);
590
+ } else {
591
+ console.log(this._storage.config);
592
+ }
593
+ }
594
+ // Unconditional logging
595
+ assert(condition, message) {
596
+ if (!condition) {
597
+ throw new Error(message || "Assertion failed");
598
+ }
599
+ }
600
+ warn(message, ...args) {
601
+ return this._log("warn", 0, message, args, {
602
+ method: originalConsole.warn,
603
+ once: true
604
+ });
605
+ }
606
+ error(message, ...args) {
607
+ return this._log("error", 0, message, args, {
608
+ method: originalConsole.error
609
+ });
610
+ }
611
+ /** Print a deprecation warning */
612
+ deprecated(oldUsage, newUsage) {
613
+ return this.warn(`\`${oldUsage}\` is deprecated and will be removed in a later version. Use \`${newUsage}\` instead`);
614
+ }
615
+ /** Print a removal warning */
616
+ removed(oldUsage, newUsage) {
617
+ return this.error(`\`${oldUsage}\` has been removed. Use \`${newUsage}\` instead`);
618
+ }
619
+ probe(logLevel, message, ...args) {
620
+ const memoryUsageMB = probe.getMemoryUsageMB();
621
+ if (memoryUsageMB !== null) {
622
+ const memoryUsagePrefix = `${memoryUsageMB}MB `;
623
+ if (typeof message === "function") {
624
+ message = () => `${memoryUsagePrefix}${message()}`;
625
+ } else if (typeof message === "string") {
626
+ message = `${memoryUsagePrefix}${message}`;
627
+ }
628
+ }
629
+ return this._log("log", logLevel, message, args, {
630
+ method: originalConsole.log,
631
+ time: true,
632
+ once: true
633
+ });
634
+ }
635
+ log(logLevel, message, ...args) {
636
+ return this._log("log", logLevel, message, args, {
637
+ method: originalConsole.debug
638
+ });
639
+ }
640
+ info(logLevel, message, ...args) {
641
+ return this._log("info", logLevel, message, args, { method: console.info });
642
+ }
643
+ once(logLevel, message, ...args) {
644
+ return this._log("once", logLevel, message, args, {
645
+ method: originalConsole.debug || originalConsole.info,
646
+ once: true
647
+ });
648
+ }
649
+ /** Logs an object as a table */
650
+ table(logLevel, table, columns) {
651
+ if (table) {
652
+ return this._log("table", logLevel, table, columns && [columns] || [], {
653
+ method: console.table || noop,
654
+ tag: getTableHeader(table)
655
+ });
656
+ }
657
+ return noop;
658
+ }
659
+ time(logLevel, message) {
660
+ return this._log("time", logLevel, message, [], {
661
+ method: console.time ? console.time : console.info
662
+ });
663
+ }
664
+ timeEnd(logLevel, message) {
665
+ return this._log("time", logLevel, message, [], {
666
+ method: console.timeEnd ? console.timeEnd : console.info
667
+ });
668
+ }
669
+ timeStamp(logLevel, message) {
670
+ return this._log("time", logLevel, message, [], {
671
+ method: console.timeStamp || noop
672
+ });
673
+ }
674
+ group(logLevel, message, opts = { collapsed: false }) {
675
+ const method = (opts.collapsed ? console.groupCollapsed : console.group) || console.info;
676
+ return this._log("group", logLevel, message, [], { method });
677
+ }
678
+ groupCollapsed(logLevel, message, opts = {}) {
679
+ return this.group(logLevel, message, Object.assign({}, opts, { collapsed: true }));
680
+ }
681
+ groupEnd(logLevel) {
682
+ return this._log("groupEnd", logLevel, "", [], {
683
+ method: console.groupEnd || noop
684
+ });
685
+ }
686
+ // EXPERIMENTAL
687
+ withGroup(logLevel, message, func) {
688
+ this.group(logLevel, message)();
689
+ try {
690
+ func();
691
+ } finally {
692
+ this.groupEnd(logLevel)();
693
+ }
694
+ }
695
+ trace() {
696
+ if (console.trace) {
697
+ console.trace();
698
+ }
699
+ }
700
+ _shouldLog(logLevel) {
701
+ return this.isEnabled() && super._shouldLog(logLevel);
702
+ }
703
+ _emit(_type, normalized) {
704
+ const method = normalized.method;
705
+ assert2(method);
706
+ normalized.total = this.getTotal();
707
+ normalized.delta = this.getDelta();
708
+ this._deltaTs = probe.getHighResolutionTimer();
709
+ const message = decorateMessage(this.id, normalized.message, normalized);
710
+ return method.bind(console, message, ...normalized.args);
711
+ }
712
+ _getConfiguration() {
713
+ if (!this._storage.config[this.id]) {
714
+ this._updateConfiguration(DEFAULT_LOG_CONFIGURATION);
715
+ }
716
+ return this._storage.config[this.id];
717
+ }
718
+ _updateConfiguration(configuration) {
719
+ const currentConfiguration = this._storage.config[this.id] || {
720
+ ...DEFAULT_LOG_CONFIGURATION
721
+ };
722
+ this._storage.setConfiguration({
723
+ [this.id]: { ...currentConfiguration, ...configuration }
724
+ });
725
+ }
726
+ };
727
+ ProbeLog.VERSION = VERSION;
728
+ }
729
+ });
730
+
731
+ // ../../node_modules/probe.gl/dist/log/loggers/console-log.js
732
+ var init_console_log = __esm({
733
+ "../../node_modules/probe.gl/dist/log/loggers/console-log.js"() {
734
+ init_base_log();
735
+ }
736
+ });
737
+
738
+ // ../../node_modules/probe.gl/dist/log/loggers/memory-log.js
739
+ var init_memory_log = __esm({
740
+ "../../node_modules/probe.gl/dist/log/loggers/memory-log.js"() {
741
+ init_base_log();
742
+ }
743
+ });
744
+
745
+ // ../../node_modules/probe.gl/dist/log/deprecated/hi-res-timestamp.js
746
+ var init_hi_res_timestamp = __esm({
747
+ "../../node_modules/probe.gl/dist/log/deprecated/hi-res-timestamp.js"() {
748
+ init_probe();
749
+ }
750
+ });
751
+
752
+ // ../../node_modules/probe.gl/dist/log/init.js
753
+ var init_init = __esm({
754
+ "../../node_modules/probe.gl/dist/log/init.js"() {
755
+ init_probe();
756
+ if (!globalThis.probe) {
757
+ globalThis.probe = probe;
758
+ }
759
+ }
760
+ });
761
+
762
+ // ../../node_modules/probe.gl/dist/log/index.js
763
+ var log;
764
+ var init_log = __esm({
765
+ "../../node_modules/probe.gl/dist/log/index.js"() {
766
+ init_probe_log();
767
+ init_probe();
768
+ init_probe_log();
769
+ init_console_log();
770
+ init_base_log();
771
+ init_memory_log();
772
+ init_color();
773
+ init_color();
774
+ init_formatters();
775
+ init_autobind();
776
+ init_local_storage();
777
+ init_hi_res_timestamp();
778
+ init_init();
779
+ log = new ProbeLog({ id: "@probe.gl/log" });
780
+ }
781
+ });
782
+
783
+ // ../core/src/loader-utils/lib/log-utils/log.ts
784
+ function createLog() {
785
+ const log3 = new ProbeLog({ id: "loaders.gl" });
786
+ globalThis.loaders ||= {};
787
+ globalThis.loaders.log = log3;
788
+ globalThis.loaders.version = version;
789
+ globalThis.probe ||= {};
790
+ globalThis.probe.loaders = log3;
791
+ return log3;
792
+ }
793
+ function ignoreMessage() {
794
+ }
795
+ var VERSION2, version, log2, NullLog, nullLog;
796
+ var init_log2 = __esm({
797
+ "../core/src/loader-utils/lib/log-utils/log.ts"() {
798
+ "use strict";
799
+ init_log();
800
+ VERSION2 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
801
+ version = VERSION2[0] >= "0" && VERSION2[0] <= "9" ? `v${VERSION2}` : "";
802
+ log2 = createLog();
803
+ NullLog = class {
804
+ /** Discards debug messages. */
805
+ log() {
806
+ return ignoreMessage;
807
+ }
808
+ /** Discards informational messages. */
809
+ info() {
810
+ return ignoreMessage;
811
+ }
812
+ /** Discards messages marked to be emitted once. */
813
+ once() {
814
+ return ignoreMessage;
815
+ }
816
+ /** Discards warnings. */
817
+ warn() {
818
+ return ignoreMessage;
819
+ }
820
+ /** Discards errors. */
821
+ error() {
822
+ return ignoreMessage;
823
+ }
824
+ };
825
+ nullLog = new NullLog();
826
+ }
827
+ });
828
+
101
829
  // ../core/src/loader-utils/lib/javascript-utils/is-type.ts
102
830
  var isSharedArrayBuffer;
103
831
  var init_is_type = __esm({
@@ -523,6 +1251,7 @@ var __exports__ = (() => {
523
1251
  "../core/src/loader-utils/index.ts"() {
524
1252
  "use strict";
525
1253
  init_globals();
1254
+ init_log2();
526
1255
  init_js_module_utils();
527
1256
  init_array_buffer_utils();
528
1257
  init_async_iteration();
@@ -1453,9 +2182,9 @@ var __exports__ = (() => {
1453
2182
  decompressionStream: () => decompressionStream,
1454
2183
  preload: () => preload,
1455
2184
  setMaxDecompressedSize: () => setMaxDecompressedSize,
1456
- version: () => version
2185
+ version: () => version2
1457
2186
  });
1458
- var bindings, decompress, decompressSync, createDecompressStream, createDecompressStreamSync, decompressionStream, preload, version, setMaxDecompressedSize;
2187
+ var bindings, decompress, decompressSync, createDecompressStream, createDecompressStreamSync, decompressionStream, preload, version2, setMaxDecompressedSize;
1459
2188
  var init_decompress = __esm({
1460
2189
  "../../node_modules/compress-utils/dist/algorithms/deflate/decompress/index.js"() {
1461
2190
  init_zlib();
@@ -1469,7 +2198,7 @@ var __exports__ = (() => {
1469
2198
  createDecompressStreamSync = bindings.createDecompressStreamSync;
1470
2199
  decompressionStream = bindings.decompressionStream;
1471
2200
  preload = bindings.preload;
1472
- version = bindings.version;
2201
+ version2 = bindings.version;
1473
2202
  setMaxDecompressedSize = bindings.setMaxDecompressedSize;
1474
2203
  }
1475
2204
  });
@@ -1485,9 +2214,9 @@ var __exports__ = (() => {
1485
2214
  decompressionStream: () => decompressionStream2,
1486
2215
  preload: () => preload2,
1487
2216
  setMaxDecompressedSize: () => setMaxDecompressedSize2,
1488
- version: () => version2
2217
+ version: () => version3
1489
2218
  });
1490
- var bindings2, decompress2, decompressSync2, createDecompressStream2, createDecompressStreamSync2, decompressionStream2, preload2, version2, setMaxDecompressedSize2;
2219
+ var bindings2, decompress2, decompressSync2, createDecompressStream2, createDecompressStreamSync2, decompressionStream2, preload2, version3, setMaxDecompressedSize2;
1491
2220
  var init_decompress2 = __esm({
1492
2221
  "../../node_modules/compress-utils/dist/algorithms/zlib/decompress/index.js"() {
1493
2222
  init_zlib();
@@ -1501,7 +2230,7 @@ var __exports__ = (() => {
1501
2230
  createDecompressStreamSync2 = bindings2.createDecompressStreamSync;
1502
2231
  decompressionStream2 = bindings2.decompressionStream;
1503
2232
  preload2 = bindings2.preload;
1504
- version2 = bindings2.version;
2233
+ version3 = bindings2.version;
1505
2234
  setMaxDecompressedSize2 = bindings2.setMaxDecompressedSize;
1506
2235
  }
1507
2236
  });
@@ -2125,7 +2854,7 @@ var __exports__ = (() => {
2125
2854
  });
2126
2855
  const memoryView = new Uint32Array(memory.buffer);
2127
2856
  const { instance } = await WebAssembly.instantiate(wasm, {
2128
- imports: { mem: memory, log: console.log }
2857
+ imports: { mem: memory, log: (...values) => log2.log(1, ...values)() }
2129
2858
  });
2130
2859
  return makeMD5WA()(input, instance.exports, memoryView);
2131
2860
  }
@@ -2499,6 +3228,7 @@ var __exports__ = (() => {
2499
3228
  var init_md5_wasm = __esm({
2500
3229
  "../crypto/src/lib/algorithms/md5-wasm.ts"() {
2501
3230
  "use strict";
3231
+ init_loader_utils();
2502
3232
  BASE64_LOOKUP = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
2503
3233
  wasmB64Bytes = decodeBase64Safely(
2504
3234
  "AGFzbQEAAAABDANgAX8AYAAAYAABfwIeAgdpbXBvc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0EwVsb29wRBQGbG9vcEQxFQZsb29wRDIWBmxvb3BEMxcGbG9vcEQ0GAhvbmVGdWxsQRkIb25lRnVsbEIaCG9uZUZ1bGxDGwhvbmVGdWxsRBwIdHdvRnVsbEEdCHR3b0Z1bGxCHgh0d29GdWxsQx8IdHdvRnVsbEQgCHRyZUZ1bGxBIQh0cmVGdWxsQiIIdHJlRnVsbEMjCHRyZUZ1bGxEJAhxdWFGdWxsQSUIcXVhRnVsbEImCHF1YUZ1bGxDJwhxdWFGdWxsRCgEZ2V0QSkEZ2V0QioEZ2V0QysEZ2V0RCwEZ2V0WC0Ec2V0QS4Ec2V0Qi8Ec2V0QzAEc2V0RDEEc2V0WALNATIAAQAAAQIAAAEIbnVtbG9vcHMCAAMABAAFAAYABwAIAAkACgALAAwADQAOAA8AEAARABIAEwAUABUAFgAXABgCAAABAW4ZAgAAAQFuGgIAAAEBbhsCAAABAW4cAgAAAQFuHQIAAAEBbh4CAAABAW4fAgAAAQFuIAIAAAEBbiECAAABAW4iAgAAAQFuIwIAAAEBbiQCAAABAW4lAgAAAQFuJgIAAAEBbicCAAABAW4oACkAKgArACwALQEAAC4BAAAvAQAAMAEAADEBAAA="
@@ -3446,15 +4176,15 @@ var __exports__ = (() => {
3446
4176
  });
3447
4177
 
3448
4178
  // src/zip/zip-loader-types.ts
3449
- var VERSION, ZipLoader;
4179
+ var VERSION3, ZipLoader;
3450
4180
  var init_zip_loader_types = __esm({
3451
4181
  "src/zip/zip-loader-types.ts"() {
3452
4182
  "use strict";
3453
4183
  init_zip_format();
3454
- VERSION = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
4184
+ VERSION3 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
3455
4185
  ZipLoader = {
3456
4186
  ...ZipFormat,
3457
- version: VERSION,
4187
+ version: VERSION3,
3458
4188
  dataType: null,
3459
4189
  batchType: null,
3460
4190
  options: { zip: { maxTotalDecodedBytes: 64n * 1024n * 1024n } },
@@ -3485,9 +4215,9 @@ var __exports__ = (() => {
3485
4215
  createCompressStream: () => createCompressStream,
3486
4216
  createCompressStreamSync: () => createCompressStreamSync,
3487
4217
  preload: () => preload3,
3488
- version: () => version3
4218
+ version: () => version4
3489
4219
  });
3490
- var bindings3, compress, compressSync, createCompressStream, createCompressStreamSync, compressionStream, preload3, version3;
4220
+ var bindings3, compress, compressSync, createCompressStream, createCompressStreamSync, compressionStream, preload3, version4;
3491
4221
  var init_compress = __esm({
3492
4222
  "../../node_modules/compress-utils/dist/algorithms/deflate/compress/index.js"() {
3493
4223
  init_zlib2();
@@ -3501,7 +4231,7 @@ var __exports__ = (() => {
3501
4231
  createCompressStreamSync = bindings3.createCompressStreamSync;
3502
4232
  compressionStream = bindings3.compressionStream;
3503
4233
  preload3 = bindings3.preload;
3504
- version3 = bindings3.version;
4234
+ version4 = bindings3.version;
3505
4235
  }
3506
4236
  });
3507
4237
 
@@ -3515,9 +4245,9 @@ var __exports__ = (() => {
3515
4245
  createCompressStream: () => createCompressStream2,
3516
4246
  createCompressStreamSync: () => createCompressStreamSync2,
3517
4247
  preload: () => preload4,
3518
- version: () => version4
4248
+ version: () => version5
3519
4249
  });
3520
- var bindings4, compress2, compressSync2, createCompressStream2, createCompressStreamSync2, compressionStream2, preload4, version4;
4250
+ var bindings4, compress2, compressSync2, createCompressStream2, createCompressStreamSync2, compressionStream2, preload4, version5;
3521
4251
  var init_compress2 = __esm({
3522
4252
  "../../node_modules/compress-utils/dist/algorithms/zlib/compress/index.js"() {
3523
4253
  init_zlib2();
@@ -3531,7 +4261,7 @@ var __exports__ = (() => {
3531
4261
  createCompressStreamSync2 = bindings4.createCompressStreamSync;
3532
4262
  compressionStream2 = bindings4.compressionStream;
3533
4263
  preload4 = bindings4.preload;
3534
- version4 = bindings4.version;
4264
+ version5 = bindings4.version;
3535
4265
  }
3536
4266
  });
3537
4267
 
@@ -3656,15 +4386,15 @@ var __exports__ = (() => {
3656
4386
  });
3657
4387
 
3658
4388
  // src/tar/tar-loader-types.ts
3659
- var VERSION3, TarLoader;
4389
+ var VERSION5, TarLoader;
3660
4390
  var init_tar_loader_types = __esm({
3661
4391
  "src/tar/tar-loader-types.ts"() {
3662
4392
  "use strict";
3663
4393
  init_tar_format();
3664
- VERSION3 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
4394
+ VERSION5 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
3665
4395
  TarLoader = {
3666
4396
  ...TarFormat,
3667
- version: VERSION3,
4397
+ version: VERSION5,
3668
4398
  dataType: null,
3669
4399
  batchType: null,
3670
4400
  options: { tar: { maxEntries: 1e5, maxTotalDecodedBytes: 64 * 1024 * 1024 } },
@@ -3684,7 +4414,6 @@ var __exports__ = (() => {
3684
4414
  IndexedArchive: () => IndexedArchive,
3685
4415
  JSONLoader: () => import_core.JSONLoader,
3686
4416
  NullLoader: () => import_core.NullLoader,
3687
- NullWorkerLoader: () => import_core.NullWorkerLoader,
3688
4417
  RequestScheduler: () => import_core.RequestScheduler,
3689
4418
  TarBuilder: () => TarBuilder,
3690
4419
  TarLoader: () => TarLoader,
@@ -3700,10 +4429,12 @@ var __exports__ = (() => {
3700
4429
  _unregisterLoaders: () => import_core._unregisterLoaders,
3701
4430
  addOneFile: () => addOneFile,
3702
4431
  assert: () => import_core.assert,
4432
+ compareLoaderOptions: () => import_core.compareLoaderOptions,
3703
4433
  composeHashFile: () => composeHashFile,
3704
4434
  concatenateArrayBuffersAsync: () => import_core.concatenateArrayBuffersAsync,
3705
4435
  coreApi: () => import_core.coreApi,
3706
4436
  createDataSource: () => import_core.createDataSource,
4437
+ createDataSourceSync: () => import_core.createDataSourceSync,
3707
4438
  createZip: () => createZip,
3708
4439
  document: () => import_core.document,
3709
4440
  encode: () => import_core.encode,
@@ -4153,10 +4884,10 @@ var __exports__ = (() => {
4153
4884
  }
4154
4885
 
4155
4886
  // src/zip/zip-writer.ts
4156
- var VERSION2 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
4887
+ var VERSION4 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
4157
4888
  var ZipWriter = {
4158
4889
  ...ZipFormat,
4159
- version: VERSION2,
4890
+ version: VERSION4,
4160
4891
  options: { zip: { createFolders: false } },
4161
4892
  encode: encodeZipFiles
4162
4893
  };
@@ -5094,7 +5825,7 @@ var __exports__ = (() => {
5094
5825
 
5095
5826
  // src/tar/tar-writer.ts
5096
5827
  init_tar_format();
5097
- var VERSION4 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
5828
+ var VERSION6 = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
5098
5829
  var BLOCK_SIZE2 = 512;
5099
5830
  var encoder = new TextEncoder();
5100
5831
  function writeOctal(header, offset, width, value) {
@@ -5158,7 +5889,7 @@ var __exports__ = (() => {
5158
5889
  }
5159
5890
  var TarWriter = {
5160
5891
  ...TarFormat,
5161
- version: VERSION4,
5892
+ version: VERSION6,
5162
5893
  options: {},
5163
5894
  encode: async (files, _options) => encodeTar(files)
5164
5895
  };