@vitessce/gl 3.5.6 → 3.5.8

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.
@@ -1091,16 +1091,16 @@ function dirname(url) {
1091
1091
  return slashIndex >= 0 ? url.substr(0, slashIndex) : "";
1092
1092
  }
1093
1093
  const isBoolean = (x2) => typeof x2 === "boolean";
1094
- const isFunction$2 = (x2) => typeof x2 === "function";
1095
- const isObject$4 = (x2) => x2 !== null && typeof x2 === "object";
1096
- const isPureObject = (x2) => isObject$4(x2) && x2.constructor === {}.constructor;
1094
+ const isFunction$3 = (x2) => typeof x2 === "function";
1095
+ const isObject$5 = (x2) => x2 !== null && typeof x2 === "object";
1096
+ const isPureObject = (x2) => isObject$5(x2) && x2.constructor === {}.constructor;
1097
1097
  const isIterable = (x2) => x2 && typeof x2[Symbol.iterator] === "function";
1098
1098
  const isAsyncIterable$1 = (x2) => x2 && typeof x2[Symbol.asyncIterator] === "function";
1099
1099
  const isResponse = (x2) => typeof Response !== "undefined" && x2 instanceof Response || x2 && x2.arrayBuffer && x2.text && x2.json;
1100
1100
  const isBlob = (x2) => typeof Blob !== "undefined" && x2 instanceof Blob;
1101
1101
  const isBuffer$1 = (x2) => x2 && typeof x2 === "object" && x2.isBuffer;
1102
- const isReadableDOMStream = (x2) => typeof ReadableStream !== "undefined" && x2 instanceof ReadableStream || isObject$4(x2) && isFunction$2(x2.tee) && isFunction$2(x2.cancel) && isFunction$2(x2.getReader);
1103
- const isReadableNodeStream = (x2) => isObject$4(x2) && isFunction$2(x2.read) && isFunction$2(x2.pipe) && isBoolean(x2.readable);
1102
+ const isReadableDOMStream = (x2) => typeof ReadableStream !== "undefined" && x2 instanceof ReadableStream || isObject$5(x2) && isFunction$3(x2.tee) && isFunction$3(x2.cancel) && isFunction$3(x2.getReader);
1103
+ const isReadableNodeStream = (x2) => isObject$5(x2) && isFunction$3(x2.read) && isFunction$3(x2.pipe) && isBoolean(x2.readable);
1104
1104
  const isReadableStream = (x2) => isReadableDOMStream(x2) || isReadableNodeStream(x2);
1105
1105
  const DATA_URL_PATTERN = /^data:([-\w.]+\/[-\w.+]+)(;|,)/;
1106
1106
  const MIME_TYPE_PATTERN = /^([-\w.]+\/[-\w.+]+)/;
@@ -1900,7 +1900,7 @@ function getFetchFunction(options, context) {
1900
1900
  if (typeof fetchOptions.fetch === "function") {
1901
1901
  return fetchOptions.fetch;
1902
1902
  }
1903
- if (isObject$4(fetchOptions.fetch)) {
1903
+ if (isObject$5(fetchOptions.fetch)) {
1904
1904
  return (url) => fetchFile(url, fetchOptions);
1905
1905
  }
1906
1906
  if (context !== null && context !== void 0 && context.fetch) {
@@ -1921,7 +1921,7 @@ function validateOptionsObject(options, id, defaultOptions, deprecatedOptions, l
1921
1921
  const loaderName = id || "Top level";
1922
1922
  const prefix = id ? "".concat(id, ".") : "";
1923
1923
  for (const key in options) {
1924
- const isSubOptions = !id && isObject$4(options[key]);
1924
+ const isSubOptions = !id && isObject$5(options[key]);
1925
1925
  const isBaseUriOption = key === "baseUri" && !id;
1926
1926
  const isWorkerUrlOption = key === "workerUrl" && id;
1927
1927
  if (!(key in defaultOptions) && !isBaseUriOption && !isWorkerUrlOption) {
@@ -2037,7 +2037,7 @@ function registerLoaders(loaders) {
2037
2037
  function getRegisteredLoaders() {
2038
2038
  return getGlobalLoaderRegistry();
2039
2039
  }
2040
- const log$4 = new Log({
2040
+ const log$5 = new Log({
2041
2041
  id: "loaders.gl"
2042
2042
  });
2043
2043
  const EXT_PATTERN = /\.([^.]+)$/;
@@ -2104,7 +2104,7 @@ function selectLoaderInternal(data, loaders, options, context) {
2104
2104
  reason = reason || (loader ? "matched fallback MIME type ".concat(type2) : "");
2105
2105
  if (reason) {
2106
2106
  var _loader;
2107
- log$4.log(1, "selectLoader selected ".concat((_loader = loader) === null || _loader === void 0 ? void 0 : _loader.name, ": ").concat(reason, "."));
2107
+ log$5.log(1, "selectLoader selected ".concat((_loader = loader) === null || _loader === void 0 ? void 0 : _loader.name, ": ").concat(reason, "."));
2108
2108
  }
2109
2109
  return loader;
2110
2110
  }
@@ -2829,7 +2829,7 @@ function checkWebPSupport() {
2829
2829
  return false;
2830
2830
  }
2831
2831
  }
2832
- const log$3 = new Log({
2832
+ const log$4 = new Log({
2833
2833
  id: "deck"
2834
2834
  });
2835
2835
  const logState = {
@@ -2931,13 +2931,13 @@ const getLoggers = (log3) => ({
2931
2931
  });
2932
2932
  let loggers = {};
2933
2933
  {
2934
- loggers = getLoggers(log$3);
2934
+ loggers = getLoggers(log$4);
2935
2935
  }
2936
2936
  function register(handlers) {
2937
2937
  loggers = handlers;
2938
2938
  }
2939
2939
  function debug(eventType, arg1, arg2, arg3) {
2940
- if (log$3.level > 0 && loggers[eventType]) {
2940
+ if (log$4.level > 0 && loggers[eventType]) {
2941
2941
  loggers[eventType].call(null, arg1, arg2, arg3);
2942
2942
  }
2943
2943
  }
@@ -2963,12 +2963,12 @@ if (existingVersion && existingVersion !== version) {
2963
2963
  throw new Error("deck.gl - multiple versions detected: ".concat(existingVersion, " vs ").concat(version));
2964
2964
  }
2965
2965
  if (!existingVersion) {
2966
- log$3.log(1, "deck.gl ".concat(version))();
2966
+ log$4.log(1, "deck.gl ".concat(version))();
2967
2967
  globalThis.deck = {
2968
2968
  ...globalThis.deck,
2969
2969
  VERSION: version,
2970
2970
  version,
2971
- log: log$3,
2971
+ log: log$4,
2972
2972
  _registerLoggers: register
2973
2973
  };
2974
2974
  registerLoaders([jsonLoader, [ImageLoader, {
@@ -2978,7 +2978,7 @@ if (!existingVersion) {
2978
2978
  }]]);
2979
2979
  }
2980
2980
  const deckGlobal = globalThis.deck;
2981
- const log$2 = new Log({
2981
+ const log$3 = new Log({
2982
2982
  id: "luma.gl"
2983
2983
  });
2984
2984
  function assert$a(condition, message) {
@@ -3020,7 +3020,7 @@ function error(msg) {
3020
3020
  globalThis.console.error(msg);
3021
3021
  }
3022
3022
  }
3023
- function log$1(msg) {
3023
+ function log$2(msg) {
3024
3024
  if (globalThis.console && globalThis.console.log) {
3025
3025
  globalThis.console.log(msg);
3026
3026
  }
@@ -3161,7 +3161,7 @@ const OESVertexArrayObject = function OESVertexArrayObject2(gl) {
3161
3161
  }
3162
3162
  if (gl.canvas) {
3163
3163
  gl.canvas.addEventListener("webglcontextrestored", () => {
3164
- log$1("OESVertexArrayObject emulation library context restored");
3164
+ log$2("OESVertexArrayObject emulation library context restored");
3165
3165
  self2.reset_();
3166
3166
  }, true);
3167
3167
  }
@@ -4270,16 +4270,16 @@ function instrumentGLContext(gl) {
4270
4270
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
4271
4271
  args[_key] = arguments[_key];
4272
4272
  }
4273
- return log$2.log(1, ...args)();
4273
+ return log$3.log(1, ...args)();
4274
4274
  }
4275
4275
  });
4276
4276
  }
4277
4277
  if (isBrowser && debug2) {
4278
4278
  if (!globalThis.makeDebugContext) {
4279
- log$2.warn('WebGL debug mode not activated. import "@luma.gl/debug" to enable.')();
4279
+ log$3.warn('WebGL debug mode not activated. import "@luma.gl/debug" to enable.')();
4280
4280
  } else {
4281
4281
  gl = globalThis.makeDebugContext(gl, options);
4282
- log$2.level = Math.max(log$2.level, 1);
4282
+ log$3.level = Math.max(log$3.level, 1);
4283
4283
  }
4284
4284
  }
4285
4285
  gl._instrumented = true;
@@ -4374,7 +4374,7 @@ function logInfo(gl) {
4374
4374
  const info = getContextDebugInfo(gl);
4375
4375
  const driver = info ? "(".concat(info.vendor, ",").concat(info.renderer, ")") : "";
4376
4376
  const debug2 = gl.debug ? " debug" : "";
4377
- log$2.info(1, "".concat(webGL).concat(debug2, " context ").concat(driver))();
4377
+ log$3.info(1, "".concat(webGL).concat(debug2, " context ").concat(driver))();
4378
4378
  }
4379
4379
  function getVersion(gl) {
4380
4380
  if (typeof WebGL2RenderingContext !== "undefined" && gl instanceof WebGL2RenderingContext) {
@@ -4386,7 +4386,7 @@ function setDevicePixelRatio(gl, devicePixelRatio, options) {
4386
4386
  let clientWidth = "width" in options ? options.width : gl.canvas.clientWidth;
4387
4387
  let clientHeight = "height" in options ? options.height : gl.canvas.clientHeight;
4388
4388
  if (!clientWidth || !clientHeight) {
4389
- log$2.log(1, "Canvas clientWidth/clientHeight is 0")();
4389
+ log$3.log(1, "Canvas clientWidth/clientHeight is 0")();
4390
4390
  devicePixelRatio = 1;
4391
4391
  clientWidth = gl.canvas.width || 1;
4392
4392
  clientHeight = gl.canvas.height || 1;
@@ -4401,7 +4401,7 @@ function setDevicePixelRatio(gl, devicePixelRatio, options) {
4401
4401
  gl.canvas.width = canvasWidth;
4402
4402
  gl.canvas.height = canvasHeight;
4403
4403
  if (gl.drawingBufferWidth !== canvasWidth || gl.drawingBufferHeight !== canvasHeight) {
4404
- log$2.warn("Device pixel ratio clamped")();
4404
+ log$3.warn("Device pixel ratio clamped")();
4405
4405
  clampedPixelRatio = Math.min(gl.drawingBufferWidth / clientWidth, gl.drawingBufferHeight / clientHeight);
4406
4406
  gl.canvas.width = Math.floor(clientWidth * clampedPixelRatio);
4407
4407
  gl.canvas.height = Math.floor(clientHeight * clampedPixelRatio);
@@ -4434,12 +4434,12 @@ if (globalThis.luma && globalThis.luma.VERSION !== VERSION$7) {
4434
4434
  }
4435
4435
  if (!globalThis.luma) {
4436
4436
  if (isBrowser$1()) {
4437
- log$2.log(1, "luma.gl ".concat(VERSION$7, " - ").concat(STARTUP_MESSAGE))();
4437
+ log$3.log(1, "luma.gl ".concat(VERSION$7, " - ").concat(STARTUP_MESSAGE))();
4438
4438
  }
4439
4439
  globalThis.luma = globalThis.luma || {
4440
4440
  VERSION: VERSION$7,
4441
4441
  version: VERSION$7,
4442
- log: log$2,
4442
+ log: log$3,
4443
4443
  stats: lumaStats,
4444
4444
  globals: {
4445
4445
  modules: {},
@@ -4507,7 +4507,7 @@ function stubRemovedMethods(instance, className, version2, methodNames) {
4507
4507
  return;
4508
4508
  }
4509
4509
  prototype[methodName] = () => {
4510
- log$2.removed("Calling removed method ".concat(className, ".").concat(methodName, ": "), upgradeMessage)();
4510
+ log$3.removed("Calling removed method ".concat(className, ".").concat(methodName, ": "), upgradeMessage)();
4511
4511
  throw new Error(methodName);
4512
4512
  };
4513
4513
  });
@@ -4808,20 +4808,20 @@ function checkProps(className, props, propChecks) {
4808
4808
  if (propName in props) {
4809
4809
  const replacementProp = removedProps[propName];
4810
4810
  const replacement = replacementProp ? "".concat(className, ".").concat(removedProps[propName]) : "N/A";
4811
- log$2.removed("".concat(className, ".").concat(propName), replacement)();
4811
+ log$3.removed("".concat(className, ".").concat(propName), replacement)();
4812
4812
  }
4813
4813
  }
4814
4814
  for (const propName in deprecatedProps) {
4815
4815
  if (propName in props) {
4816
4816
  const replacementProp = deprecatedProps[propName];
4817
- log$2.deprecated("".concat(className, ".").concat(propName), "".concat(className, ".").concat(replacementProp))();
4817
+ log$3.deprecated("".concat(className, ".").concat(propName), "".concat(className, ".").concat(replacementProp))();
4818
4818
  }
4819
4819
  }
4820
4820
  let newProps = null;
4821
4821
  for (const propName in replacedProps) {
4822
4822
  if (propName in props) {
4823
4823
  const replacementProp = replacedProps[propName];
4824
- log$2.deprecated("".concat(className, ".").concat(propName), "".concat(className, ".").concat(replacementProp))();
4824
+ log$3.deprecated("".concat(className, ".").concat(propName), "".concat(className, ".").concat(replacementProp))();
4825
4825
  newProps = newProps || Object.assign({}, props);
4826
4826
  newProps[replacementProp] = props[propName];
4827
4827
  delete newProps[propName];
@@ -5206,19 +5206,19 @@ let Buffer$1 = class Buffer2 extends Resource$1 {
5206
5206
  return value;
5207
5207
  }
5208
5208
  get type() {
5209
- log$2.deprecated("Buffer.type", "Buffer.accessor.type")();
5209
+ log$3.deprecated("Buffer.type", "Buffer.accessor.type")();
5210
5210
  return this.accessor.type;
5211
5211
  }
5212
5212
  get bytes() {
5213
- log$2.deprecated("Buffer.bytes", "Buffer.byteLength")();
5213
+ log$3.deprecated("Buffer.bytes", "Buffer.byteLength")();
5214
5214
  return this.byteLength;
5215
5215
  }
5216
5216
  setByteLength(byteLength) {
5217
- log$2.deprecated("setByteLength", "reallocate")();
5217
+ log$3.deprecated("setByteLength", "reallocate")();
5218
5218
  return this.reallocate(byteLength);
5219
5219
  }
5220
5220
  updateAccessor(opts) {
5221
- log$2.deprecated("updateAccessor(...)", "setAccessor(new Accessor(buffer.accessor, ...)")();
5221
+ log$3.deprecated("updateAccessor(...)", "setAccessor(new Accessor(buffer.accessor, ...)")();
5222
5222
  this.accessor = new Accessor(this.accessor, opts);
5223
5223
  return this;
5224
5224
  }
@@ -5425,7 +5425,7 @@ class Texture extends Resource$1 {
5425
5425
  this.gl.bindTexture(this.target, this.handle);
5426
5426
  }
5427
5427
  if (mipmaps && this._isNPOT()) {
5428
- log$2.warn("texture: ".concat(this, " is Non-Power-Of-Two, disabling mipmaping"))();
5428
+ log$3.warn("texture: ".concat(this, " is Non-Power-Of-Two, disabling mipmaping"))();
5429
5429
  mipmaps = false;
5430
5430
  this._updateForNPOT(parameters);
5431
5431
  }
@@ -5501,7 +5501,7 @@ class Texture extends Resource$1 {
5501
5501
  generateMipmap() {
5502
5502
  let params = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
5503
5503
  if (this._isNPOT()) {
5504
- log$2.warn("texture: ".concat(this, " is Non-Power-Of-Two, disabling mipmaping"))();
5504
+ log$3.warn("texture: ".concat(this, " is Non-Power-Of-Two, disabling mipmaping"))();
5505
5505
  return this;
5506
5506
  }
5507
5507
  this.mipmaps = true;
@@ -5675,7 +5675,7 @@ class Texture extends Resource$1 {
5675
5675
  this.gl.bindTexture(this.target, null);
5676
5676
  }
5677
5677
  copyFramebuffer() {
5678
- log$2.error("Texture.copyFramebuffer({...}) is no logner supported, use copyToTexture(source, target, opts})")();
5678
+ log$3.error("Texture.copyFramebuffer({...}) is no logner supported, use copyToTexture(source, target, opts})")();
5679
5679
  return null;
5680
5680
  }
5681
5681
  getActiveUnit() {
@@ -6006,7 +6006,7 @@ class TextureCube extends Texture {
6006
6006
  this.bind();
6007
6007
  FACES.forEach((face, index2) => {
6008
6008
  if (resolvedFaces[index2].length > 1 && this.opts.mipmaps !== false) {
6009
- log$2.warn("".concat(this.id, " has mipmap and multiple LODs."))();
6009
+ log$3.warn("".concat(this.id, " has mipmap and multiple LODs."))();
6010
6010
  }
6011
6011
  resolvedFaces[index2].forEach((image, lodLevel) => {
6012
6012
  if (width && height) {
@@ -6782,7 +6782,7 @@ function isFeatureSupported(gl, cap) {
6782
6782
  gl.luma.caps[cap] = queryFeature(gl, cap);
6783
6783
  }
6784
6784
  if (!gl.luma.caps[cap]) {
6785
- log$2.log(LOG_UNSUPPORTED_FEATURE, "Feature: ".concat(cap, " not supported"))();
6785
+ log$3.log(LOG_UNSUPPORTED_FEATURE, "Feature: ".concat(cap, " not supported"))();
6786
6786
  }
6787
6787
  return gl.luma.caps[cap];
6788
6788
  }
@@ -6956,7 +6956,7 @@ class Framebuffer extends Resource$1 {
6956
6956
  height = this.gl.drawingBufferHeight;
6957
6957
  }
6958
6958
  if (width !== this.width && height !== this.height) {
6959
- log$2.log(2, "Resizing framebuffer ".concat(this.id, " to ").concat(width, "x").concat(height))();
6959
+ log$3.log(2, "Resizing framebuffer ".concat(this.id, " to ").concat(width, "x").concat(height))();
6960
6960
  }
6961
6961
  for (const attachmentPoint in this.attachments) {
6962
6962
  this.attachments[attachmentPoint].resize({
@@ -7065,27 +7065,27 @@ class Framebuffer extends Resource$1 {
7065
7065
  return this;
7066
7066
  }
7067
7067
  readPixels() {
7068
- log$2.error("Framebuffer.readPixels() is no logner supported, use readPixelsToArray(framebuffer)")();
7068
+ log$3.error("Framebuffer.readPixels() is no logner supported, use readPixelsToArray(framebuffer)")();
7069
7069
  return null;
7070
7070
  }
7071
7071
  readPixelsToBuffer() {
7072
- log$2.error("Framebuffer.readPixelsToBuffer()is no logner supported, use readPixelsToBuffer(framebuffer)")();
7072
+ log$3.error("Framebuffer.readPixelsToBuffer()is no logner supported, use readPixelsToBuffer(framebuffer)")();
7073
7073
  return null;
7074
7074
  }
7075
7075
  copyToDataUrl() {
7076
- log$2.error("Framebuffer.copyToDataUrl() is no logner supported, use copyToDataUrl(framebuffer)")();
7076
+ log$3.error("Framebuffer.copyToDataUrl() is no logner supported, use copyToDataUrl(framebuffer)")();
7077
7077
  return null;
7078
7078
  }
7079
7079
  copyToImage() {
7080
- log$2.error("Framebuffer.copyToImage() is no logner supported, use copyToImage(framebuffer)")();
7080
+ log$3.error("Framebuffer.copyToImage() is no logner supported, use copyToImage(framebuffer)")();
7081
7081
  return null;
7082
7082
  }
7083
7083
  copyToTexture() {
7084
- log$2.error("Framebuffer.copyToTexture({...}) is no logner supported, use copyToTexture(source, target, opts})")();
7084
+ log$3.error("Framebuffer.copyToTexture({...}) is no logner supported, use copyToTexture(source, target, opts})")();
7085
7085
  return null;
7086
7086
  }
7087
7087
  blit() {
7088
- log$2.error("Framebuffer.blit({...}) is no logner supported, use blit(source, target, opts)")();
7088
+ log$3.error("Framebuffer.blit({...}) is no logner supported, use blit(source, target, opts)")();
7089
7089
  return null;
7090
7090
  }
7091
7091
  invalidate(_ref3) {
@@ -7150,14 +7150,14 @@ class Framebuffer extends Resource$1 {
7150
7150
  log() {
7151
7151
  let logLevel = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
7152
7152
  let message = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
7153
- if (logLevel > log$2.level || typeof window === "undefined") {
7153
+ if (logLevel > log$3.level || typeof window === "undefined") {
7154
7154
  return this;
7155
7155
  }
7156
7156
  message = message || "Framebuffer ".concat(this.id);
7157
7157
  const image = copyToDataUrl(this, {
7158
7158
  targetMaxHeight: 100
7159
7159
  });
7160
- log$2.image({
7160
+ log$3.image({
7161
7161
  logLevel,
7162
7162
  message,
7163
7163
  image
@@ -7547,8 +7547,8 @@ class Shader extends Resource$1 {
7547
7547
  errors,
7548
7548
  warnings
7549
7549
  } = parseGLSLCompilerError(infoLog, this.source, this.shaderType, this.id);
7550
- log$2.error("GLSL compilation errors in ".concat(shaderName, "\n").concat(errors))();
7551
- log$2.warn("GLSL compilation warnings in ".concat(shaderName, "\n").concat(warnings))();
7550
+ log$3.error("GLSL compilation errors in ".concat(shaderName, "\n").concat(errors))();
7551
+ log$3.warn("GLSL compilation warnings in ".concat(shaderName, "\n").concat(warnings))();
7552
7552
  throw new Error("GLSL compilation errors in ".concat(shaderName));
7553
7553
  }
7554
7554
  }
@@ -7656,7 +7656,7 @@ function toTypedArray$1(value, uniformLength, Type2, cache2) {
7656
7656
  }
7657
7657
  const length2 = value.length;
7658
7658
  if (length2 % uniformLength) {
7659
- log$2.warn("Uniform size should be multiples of ".concat(uniformLength), value)();
7659
+ log$3.warn("Uniform size should be multiples of ".concat(uniformLength), value)();
7660
7660
  }
7661
7661
  if (value instanceof Type2) {
7662
7662
  return value;
@@ -8121,13 +8121,13 @@ class Program extends Resource$1 {
8121
8121
  samplers
8122
8122
  } = _ref;
8123
8123
  if (uniforms || samplers) {
8124
- log$2.deprecated("Program.draw({uniforms})", "Program.setUniforms(uniforms)")();
8124
+ log$3.deprecated("Program.draw({uniforms})", "Program.setUniforms(uniforms)")();
8125
8125
  this.setUniforms(uniforms || {});
8126
8126
  }
8127
- if (log$2.priority >= logPriority) {
8127
+ if (log$3.priority >= logPriority) {
8128
8128
  const fb = framebuffer ? framebuffer.id : "default";
8129
8129
  const message = "mode=".concat(getKey(this.gl, drawMode), " verts=").concat(vertexCount, " ") + "instances=".concat(instanceCount, " indexType=").concat(getKey(this.gl, indexType), " ") + "isInstanced=".concat(isInstanced, " isIndexed=").concat(isIndexed, " ") + "Framebuffer=".concat(fb);
8130
- log$2.log(logPriority, message)();
8130
+ log$3.log(logPriority, message)();
8131
8131
  }
8132
8132
  assert$9(vertexArray);
8133
8133
  this.gl.useProgram(this.handle);
@@ -8166,7 +8166,7 @@ class Program extends Resource$1 {
8166
8166
  }
8167
8167
  setUniforms() {
8168
8168
  let uniforms = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
8169
- if (log$2.priority >= 2) {
8169
+ if (log$3.priority >= 2) {
8170
8170
  checkUniformValues(uniforms, this.id, this._uniformSetters);
8171
8171
  }
8172
8172
  this.gl.useProgram(this.handle);
@@ -8267,10 +8267,10 @@ class Program extends Resource$1 {
8267
8267
  } = this;
8268
8268
  gl.attachShader(this.handle, this.vs.handle);
8269
8269
  gl.attachShader(this.handle, this.fs.handle);
8270
- log$2.time(LOG_PROGRAM_PERF_PRIORITY, "linkProgram for ".concat(this._getName()))();
8270
+ log$3.time(LOG_PROGRAM_PERF_PRIORITY, "linkProgram for ".concat(this._getName()))();
8271
8271
  gl.linkProgram(this.handle);
8272
- log$2.timeEnd(LOG_PROGRAM_PERF_PRIORITY, "linkProgram for ".concat(this._getName()))();
8273
- if (gl.debug || log$2.level > 0) {
8272
+ log$3.timeEnd(LOG_PROGRAM_PERF_PRIORITY, "linkProgram for ".concat(this._getName()))();
8273
+ if (gl.debug || log$3.level > 0) {
8274
8274
  const linked = gl.getProgramParameter(this.handle, 35714);
8275
8275
  if (!linked) {
8276
8276
  throw new Error("Error linking: ".concat(gl.getProgramInfoLog(this.handle)));
@@ -8493,7 +8493,7 @@ class TransformFeedback extends Resource$1 {
8493
8493
  } = this._getBufferParams(bufferOrParams);
8494
8494
  if (location < 0) {
8495
8495
  this.unused[locationOrName] = buffer2;
8496
- log$2.warn("".concat(this.id, " unused varying buffer ").concat(locationOrName))();
8496
+ log$3.warn("".concat(this.id, " unused varying buffer ").concat(locationOrName))();
8497
8497
  return this;
8498
8498
  }
8499
8499
  this.buffers[location] = bufferOrParams;
@@ -9042,7 +9042,7 @@ class VertexArray {
9042
9042
  } = this._getAttributeIndex(locationOrName);
9043
9043
  if (!Number.isFinite(location) || location < 0) {
9044
9044
  this.unused[locationOrName] = value;
9045
- log$2.once(3, () => "unused value ".concat(locationOrName, " in ").concat(this.id))();
9045
+ log$3.once(3, () => "unused value ".concat(locationOrName, " in ").concat(this.id))();
9046
9046
  return INVALID_RESULT;
9047
9047
  }
9048
9048
  const accessInfo = this._getAttributeInfo(name2 || location);
@@ -9180,7 +9180,7 @@ class VertexArray {
9180
9180
  setElements() {
9181
9181
  let elementBuffer = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null;
9182
9182
  let accessor = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
9183
- log$2.deprecated("setElements", "setElementBuffer")();
9183
+ log$3.deprecated("setElements", "setElementBuffer")();
9184
9184
  return this.setElementBuffer(elementBuffer, accessor);
9185
9185
  }
9186
9186
  }
@@ -9474,7 +9474,7 @@ class AnimationLoop {
9474
9474
  useDevicePixels = true
9475
9475
  } = props;
9476
9476
  if ("useDevicePixelRatio" in props) {
9477
- log$2.deprecated("useDevicePixelRatio", "useDevicePixels")();
9477
+ log$3.deprecated("useDevicePixelRatio", "useDevicePixels")();
9478
9478
  useDevicePixels = props.useDevicePixelRatio;
9479
9479
  }
9480
9480
  this.props = {
@@ -9640,7 +9640,7 @@ class AnimationLoop {
9640
9640
  return element ? Number(element.value) : defaultValue2;
9641
9641
  }
9642
9642
  setViewParameters() {
9643
- log$2.removed("AnimationLoop.setViewParameters", "AnimationLoop.setProps")();
9643
+ log$3.removed("AnimationLoop.setViewParameters", "AnimationLoop.setProps")();
9644
9644
  return this;
9645
9645
  }
9646
9646
  _startLoop() {
@@ -14949,7 +14949,7 @@ class Model {
14949
14949
  this.updateModuleSettings(moduleSettings);
14950
14950
  this.setUniforms(uniforms);
14951
14951
  let logPriority;
14952
- if (log$2.priority >= LOG_DRAW_PRIORITY) {
14952
+ if (log$3.priority >= LOG_DRAW_PRIORITY) {
14953
14953
  logPriority = this._logDrawCallStart(LOG_DRAW_PRIORITY);
14954
14954
  }
14955
14955
  const drawParams = this.vertexArray.getDrawParams();
@@ -14960,7 +14960,7 @@ class Model {
14960
14960
  vertexArrayInstanced = drawParams.isInstanced
14961
14961
  } = this.props;
14962
14962
  if (vertexArrayInstanced && !this.isInstanced) {
14963
- log$2.warn("Found instanced attributes on non-instanced model", this.id)();
14963
+ log$3.warn("Found instanced attributes on non-instanced model", this.id)();
14964
14964
  }
14965
14965
  const {
14966
14966
  isInstanced,
@@ -14988,7 +14988,7 @@ class Model {
14988
14988
  offset: isIndexed ? indexOffset : 0
14989
14989
  }));
14990
14990
  onAfterRender();
14991
- if (log$2.priority >= LOG_DRAW_PRIORITY) {
14991
+ if (log$3.priority >= LOG_DRAW_PRIORITY) {
14992
14992
  this._logDrawCallEnd(logPriority, vertexArray, framebuffer);
14993
14993
  }
14994
14994
  return didDraw;
@@ -15023,7 +15023,7 @@ class Model {
15023
15023
  }
15024
15024
  render() {
15025
15025
  let uniforms = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
15026
- log$2.warn("Model.render() is deprecated. Use Model.setUniforms() and Model.draw()")();
15026
+ log$3.warn("Model.render() is deprecated. Use Model.setUniforms() and Model.draw()")();
15027
15027
  return this.setUniforms(uniforms).draw();
15028
15028
  }
15029
15029
  _setModelProps(props) {
@@ -15135,8 +15135,8 @@ class Model {
15135
15135
  return void 0;
15136
15136
  }
15137
15137
  this.lastLogTime = Date.now();
15138
- log$2.group(LOG_DRAW_PRIORITY, ">>> DRAWING MODEL ".concat(this.id), {
15139
- collapsed: log$2.level <= 2
15138
+ log$3.group(LOG_DRAW_PRIORITY, ">>> DRAWING MODEL ".concat(this.id), {
15139
+ collapsed: log$3.level <= 2
15140
15140
  })();
15141
15141
  return logLevel;
15142
15142
  }
@@ -15168,22 +15168,22 @@ class Model {
15168
15168
  undefinedOnly: true
15169
15169
  });
15170
15170
  if (missingCount > 0) {
15171
- log$2.log("MISSING UNIFORMS", Object.keys(missingTable))();
15171
+ log$3.log("MISSING UNIFORMS", Object.keys(missingTable))();
15172
15172
  }
15173
15173
  if (unusedCount > 0) {
15174
- log$2.log("UNUSED UNIFORMS", Object.keys(unusedTable))();
15174
+ log$3.log("UNUSED UNIFORMS", Object.keys(unusedTable))();
15175
15175
  }
15176
15176
  const configTable = getDebugTableForProgramConfiguration(this.vertexArray.configuration);
15177
- log$2.table(logLevel, attributeTable)();
15178
- log$2.table(logLevel, uniformTable)();
15179
- log$2.table(logLevel + 1, configTable)();
15177
+ log$3.table(logLevel, attributeTable)();
15178
+ log$3.table(logLevel, uniformTable)();
15179
+ log$3.table(logLevel + 1, configTable)();
15180
15180
  if (framebuffer) {
15181
15181
  framebuffer.log({
15182
15182
  logLevel: LOG_DRAW_PRIORITY,
15183
15183
  message: "Rendered to ".concat(framebuffer.id)
15184
15184
  });
15185
15185
  }
15186
- log$2.groupEnd(LOG_DRAW_PRIORITY)();
15186
+ log$3.groupEnd(LOG_DRAW_PRIORITY)();
15187
15187
  }
15188
15188
  }
15189
15189
  class BufferTransform {
@@ -16874,7 +16874,7 @@ const esm$6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
16874
16874
  instrumentGLContext,
16875
16875
  isWebGL,
16876
16876
  isWebGL2: isWebGL2$1,
16877
- log: log$2,
16877
+ log: log$3,
16878
16878
  lumaStats,
16879
16879
  normalizeShaderModule,
16880
16880
  pbr,
@@ -16905,7 +16905,7 @@ const COORDINATE_SYSTEM = {
16905
16905
  };
16906
16906
  Object.defineProperty(COORDINATE_SYSTEM, "IDENTITY", {
16907
16907
  get: () => {
16908
- log$3.deprecated("COORDINATE_SYSTEM.IDENTITY", "COORDINATE_SYSTEM.CARTESIAN")();
16908
+ log$4.deprecated("COORDINATE_SYSTEM.IDENTITY", "COORDINATE_SYSTEM.CARTESIAN")();
16909
16909
  return 0;
16910
16910
  }
16911
16911
  });
@@ -18907,7 +18907,7 @@ class Viewport {
18907
18907
  this.pixelProjectionMatrix = pixelProjectionMatrix;
18908
18908
  this.pixelUnprojectionMatrix = invert$1(createMat4(), this.pixelProjectionMatrix);
18909
18909
  if (!this.pixelUnprojectionMatrix) {
18910
- log$3.warn("Pixel project matrix not invertible")();
18910
+ log$4.warn("Pixel project matrix not invertible")();
18911
18911
  }
18912
18912
  }
18913
18913
  }
@@ -19856,7 +19856,7 @@ class LayerManager {
19856
19856
  const oldLayerMap = {};
19857
19857
  for (const oldLayer of oldLayers) {
19858
19858
  if (oldLayerMap[oldLayer.id]) {
19859
- log$3.warn("Multiple old layers with same id ".concat(oldLayer.id))();
19859
+ log$4.warn("Multiple old layers with same id ".concat(oldLayer.id))();
19860
19860
  } else {
19861
19861
  oldLayerMap[oldLayer.id] = oldLayer;
19862
19862
  }
@@ -19879,7 +19879,7 @@ class LayerManager {
19879
19879
  newLayer.context = this.context;
19880
19880
  const oldLayer = oldLayerMap[newLayer.id];
19881
19881
  if (oldLayer === null) {
19882
- log$3.warn("Multiple new layers with same id ".concat(newLayer.id))();
19882
+ log$4.warn("Multiple new layers with same id ".concat(newLayer.id))();
19883
19883
  }
19884
19884
  oldLayerMap[newLayer.id] = null;
19885
19885
  let sublayers = null;
@@ -20115,7 +20115,7 @@ class ViewManager {
20115
20115
  }
20116
20116
  this.viewState = viewState;
20117
20117
  } else {
20118
- log$3.warn("missing `viewState` or `initialViewState`")();
20118
+ log$4.warn("missing `viewState` or `initialViewState`")();
20119
20119
  }
20120
20120
  }
20121
20121
  _onViewStateChange(viewId, event) {
@@ -20889,9 +20889,9 @@ class Controller {
20889
20889
  updateTransition() {
20890
20890
  this.transitionManager.updateTransition();
20891
20891
  }
20892
- toggleEvents(eventNames2, enabled) {
20892
+ toggleEvents(eventNames, enabled) {
20893
20893
  if (this.eventManager) {
20894
- eventNames2.forEach((eventName) => {
20894
+ eventNames.forEach((eventName) => {
20895
20895
  if (this._events[eventName] !== enabled) {
20896
20896
  this._events[eventName] = enabled;
20897
20897
  if (enabled) {
@@ -22418,7 +22418,7 @@ class MaskEffect {
22418
22418
  let channelInfo = channelMap[id];
22419
22419
  if (!channelInfo) {
22420
22420
  if (++channelCount > 4) {
22421
- log$3.warn("Too many mask layers. The max supported is 4")();
22421
+ log$4.warn("Too many mask layers. The max supported is 4")();
22422
22422
  continue;
22423
22423
  }
22424
22424
  channelInfo = {
@@ -22643,7 +22643,7 @@ function encodeColor(encoded, layer, viewport) {
22643
22643
  byLayer.set(layer, entry);
22644
22644
  byAlpha[a2] = entry;
22645
22645
  } else {
22646
- log$3.warn("Too many pickable layers, only picking the first 255")();
22646
+ log$4.warn("Too many pickable layers, only picking the first 255")();
22647
22647
  a2 = 0;
22648
22648
  }
22649
22649
  }
@@ -22814,7 +22814,7 @@ function getClosestObject({
22814
22814
  pickedY: y2 + dy
22815
22815
  };
22816
22816
  }
22817
- log$3.error("Picked non-existent layer. Is picking buffer corrupt?")();
22817
+ log$4.error("Picked non-existent layer. Is picking buffer corrupt?")();
22818
22818
  }
22819
22819
  return NO_PICKED_OBJECT;
22820
22820
  }
@@ -22837,7 +22837,7 @@ function getUniqueObjects({
22837
22837
  color: pickedColor
22838
22838
  });
22839
22839
  } else {
22840
- log$3.error("Picked non-existent layer. Is picking buffer corrupt?")();
22840
+ log$4.error("Picked non-existent layer. Is picking buffer corrupt?")();
22841
22841
  }
22842
22842
  }
22843
22843
  }
@@ -24375,18 +24375,18 @@ var hammer$1 = { exports: {} };
24375
24375
  emit: function(input) {
24376
24376
  var self2 = this;
24377
24377
  var state = this.state;
24378
- function emit2(event) {
24378
+ function emit(event) {
24379
24379
  self2.manager.emit(event, input);
24380
24380
  }
24381
24381
  if (state < STATE_ENDED) {
24382
- emit2(self2.options.event + stateStr(state));
24382
+ emit(self2.options.event + stateStr(state));
24383
24383
  }
24384
- emit2(self2.options.event);
24384
+ emit(self2.options.event);
24385
24385
  if (input.additionalEvent) {
24386
- emit2(input.additionalEvent);
24386
+ emit(input.additionalEvent);
24387
24387
  }
24388
24388
  if (state >= STATE_ENDED) {
24389
- emit2(self2.options.event + stateStr(state));
24389
+ emit(self2.options.event + stateStr(state));
24390
24390
  }
24391
24391
  },
24392
24392
  /**
@@ -25746,7 +25746,7 @@ class EventRegistrar {
25746
25746
  isEmpty() {
25747
25747
  return !this._active;
25748
25748
  }
25749
- add(type2, handler, options, once3 = false, passive = false) {
25749
+ add(type2, handler, options, once = false, passive = false) {
25750
25750
  const { handlers, handlersByElement } = this;
25751
25751
  let opts = DEFAULT_OPTIONS$2;
25752
25752
  if (typeof options === "string" || options && options.addEventListener) {
@@ -25765,7 +25765,7 @@ class EventRegistrar {
25765
25765
  srcElement: opts.srcElement,
25766
25766
  priority: opts.priority
25767
25767
  };
25768
- if (once3) {
25768
+ if (once) {
25769
25769
  entry.once = true;
25770
25770
  }
25771
25771
  if (passive) {
@@ -25813,7 +25813,7 @@ class EventRegistrar {
25813
25813
  };
25814
25814
  const entriesToRemove = [];
25815
25815
  for (let i2 = 0; i2 < entries.length; i2++) {
25816
- const { type: type2, handler, once: once3 } = entries[i2];
25816
+ const { type: type2, handler, once } = entries[i2];
25817
25817
  handler({
25818
25818
  ...event,
25819
25819
  // @ts-ignore
@@ -25821,7 +25821,7 @@ class EventRegistrar {
25821
25821
  stopPropagation,
25822
25822
  stopImmediatePropagation
25823
25823
  });
25824
- if (once3) {
25824
+ if (once) {
25825
25825
  entriesToRemove.push(entries[i2]);
25826
25826
  }
25827
25827
  if (immediatePropagationStopped) {
@@ -26002,11 +26002,11 @@ class EventManager {
26002
26002
  /**
26003
26003
  * Process the event registration for a single event + handler.
26004
26004
  */
26005
- _addEventHandler(event, handler, opts, once3, passive) {
26005
+ _addEventHandler(event, handler, opts, once, passive) {
26006
26006
  if (typeof event !== "string") {
26007
26007
  opts = handler;
26008
26008
  for (const eventName in event) {
26009
- this._addEventHandler(eventName, event[eventName], opts, once3, passive);
26009
+ this._addEventHandler(eventName, event[eventName], opts, once, passive);
26010
26010
  }
26011
26011
  return;
26012
26012
  }
@@ -26021,7 +26021,7 @@ class EventManager {
26021
26021
  manager.on(eventAlias, eventRegistrar.handleEvent);
26022
26022
  }
26023
26023
  }
26024
- eventRegistrar.add(event, handler, opts, once3, passive);
26024
+ eventRegistrar.add(event, handler, opts, once, passive);
26025
26025
  if (!eventRegistrar.isEmpty()) {
26026
26026
  this._toggleRecognizer(eventRegistrar.recognizerName, true);
26027
26027
  }
@@ -26096,7 +26096,7 @@ const defaultProps$O = {
26096
26096
  onBeforeRender: noop$2,
26097
26097
  onAfterRender: noop$2,
26098
26098
  onLoad: noop$2,
26099
- onError: (error2) => log$3.error(error2.message)(),
26099
+ onError: (error2) => log$4.error(error2.message)(),
26100
26100
  onHover: null,
26101
26101
  onClick: null,
26102
26102
  onDragStart: null,
@@ -26211,10 +26211,10 @@ class Deck {
26211
26211
  isDragging: false
26212
26212
  };
26213
26213
  if (props.viewState && props.initialViewState) {
26214
- log$3.warn("View state tracking is disabled. Use either `initialViewState` for auto update or `viewState` for manual update.")();
26214
+ log$4.warn("View state tracking is disabled. Use either `initialViewState` for auto update or `viewState` for manual update.")();
26215
26215
  }
26216
26216
  if (getBrowser() === "IE") {
26217
- log$3.warn("IE 11 is not supported")();
26217
+ log$4.warn("IE 11 is not supported")();
26218
26218
  }
26219
26219
  this.viewState = props.initialViewState;
26220
26220
  if (!props.gl) {
@@ -26277,10 +26277,10 @@ class Deck {
26277
26277
  setProps(props) {
26278
26278
  this.stats.get("setProps Time").timeStart();
26279
26279
  if ("onLayerHover" in props) {
26280
- log$3.removed("onLayerHover", "onHover")();
26280
+ log$4.removed("onLayerHover", "onHover")();
26281
26281
  }
26282
26282
  if ("onLayerClick" in props) {
26283
- log$3.removed("onLayerClick", "onClick")();
26283
+ log$4.removed("onLayerClick", "onClick")();
26284
26284
  }
26285
26285
  if (props.initialViewState && !deepEqual$2(this.props.initialViewState, props.initialViewState)) {
26286
26286
  this.viewState = props.initialViewState;
@@ -26627,7 +26627,7 @@ class Deck {
26627
26627
  if (this._metricsCounter++ % 60 === 0) {
26628
26628
  this._getMetrics();
26629
26629
  this.stats.reset();
26630
- log$3.table(4, this.metrics)();
26630
+ log$4.table(4, this.metrics)();
26631
26631
  if (this.props._onMetrics) {
26632
26632
  this.props._onMetrics(this.metrics);
26633
26633
  }
@@ -26767,7 +26767,7 @@ function getStride(accessor) {
26767
26767
  }
26768
26768
  function resolveShaderAttribute(baseAccessor, shaderAttributeOptions) {
26769
26769
  if (shaderAttributeOptions.offset) {
26770
- log$3.removed("shaderAttribute.offset", "vertexOffset, elementOffset")();
26770
+ log$4.removed("shaderAttribute.offset", "vertexOffset, elementOffset")();
26771
26771
  }
26772
26772
  const stride = getStride(baseAccessor);
26773
26773
  const vertexOffset = shaderAttributeOptions.vertexOffset !== void 0 ? shaderAttributeOptions.vertexOffset : baseAccessor.vertexOffset || 0;
@@ -27082,7 +27082,7 @@ class DataColumn {
27082
27082
  throw new Error("Attribute ".concat(this.id, " does not support ").concat(value.constructor.name));
27083
27083
  }
27084
27084
  if (!(value instanceof ArrayType) && this.settings.normalized && !("normalized" in opts)) {
27085
- log$3.warn("Attribute ".concat(this.id, " is normalized"))();
27085
+ log$4.warn("Attribute ".concat(this.id, " is normalized"))();
27086
27086
  }
27087
27087
  }
27088
27088
  normalizeConstant(value) {
@@ -28140,7 +28140,7 @@ class AttributeTransitionManager {
28140
28140
  let isNew = !transition || transition.type !== settings.type;
28141
28141
  if (isNew) {
28142
28142
  if (!this.isSupported) {
28143
- log$3.warn("WebGL2 not supported by this browser. Transition for ".concat(attributeName, " is disabled."))();
28143
+ log$4.warn("WebGL2 not supported by this browser. Transition for ".concat(attributeName, " is disabled."))();
28144
28144
  return;
28145
28145
  }
28146
28146
  if (transition) {
@@ -28154,7 +28154,7 @@ class AttributeTransitionManager {
28154
28154
  gl: this.gl
28155
28155
  });
28156
28156
  } else {
28157
- log$3.error("unsupported transition type '".concat(settings.type, "'"))();
28157
+ log$4.error("unsupported transition type '".concat(settings.type, "'"))();
28158
28158
  isNew = false;
28159
28159
  }
28160
28160
  }
@@ -28259,7 +28259,7 @@ class AttributeManager {
28259
28259
  attribute.startIndices = startIndices;
28260
28260
  attribute.numInstances = numInstances;
28261
28261
  if (props[attributeName]) {
28262
- log$3.removed("props.".concat(attributeName), "data.attributes.".concat(attributeName))();
28262
+ log$4.removed("props.".concat(attributeName), "data.attributes.".concat(attributeName))();
28263
28263
  }
28264
28264
  if (attribute.setExternalBuffer(buffers[attributeName]))
28265
28265
  ;
@@ -28500,7 +28500,7 @@ class UniformTransitionManager {
28500
28500
  }
28501
28501
  const TransitionType = TRANSITION_TYPES[settings.type];
28502
28502
  if (!TransitionType) {
28503
- log$3.error("unsupported transition type '".concat(settings.type, "'"))();
28503
+ log$4.error("unsupported transition type '".concat(settings.type, "'"))();
28504
28504
  return;
28505
28505
  }
28506
28506
  const transition = new TransitionType(this.timeline);
@@ -28742,7 +28742,7 @@ function getPropTypes(props) {
28742
28742
  const ERR_NOT_OBJECT = "count(): argument not an object";
28743
28743
  const ERR_NOT_CONTAINER = "count(): argument not a container";
28744
28744
  function count(container) {
28745
- if (!isObject$3(container)) {
28745
+ if (!isObject$4(container)) {
28746
28746
  throw new Error(ERR_NOT_OBJECT);
28747
28747
  }
28748
28748
  if (typeof container.count === "function") {
@@ -28762,7 +28762,7 @@ function count(container) {
28762
28762
  function isPlainObject(value) {
28763
28763
  return value !== null && typeof value === "object" && value.constructor === Object;
28764
28764
  }
28765
- function isObject$3(value) {
28765
+ function isObject$4(value) {
28766
28766
  return value !== null && typeof value === "object";
28767
28767
  }
28768
28768
  function mergeShaders(target, source) {
@@ -29096,7 +29096,7 @@ function addDeprecatedPropsToPropPrototype(defaultProps2, deprecatedProps) {
29096
29096
  this[newPropName] = newValue;
29097
29097
  }
29098
29098
  }
29099
- log$3.deprecated(nameStr, deprecatedProps[propName].join("/"))();
29099
+ log$4.deprecated(nameStr, deprecatedProps[propName].join("/"))();
29100
29100
  }
29101
29101
  });
29102
29102
  }
@@ -29155,7 +29155,7 @@ function getOwnProperty(object2, prop) {
29155
29155
  function getComponentName(componentClass) {
29156
29156
  const componentName = getOwnProperty(componentClass, "layerName") || getOwnProperty(componentClass, "componentName");
29157
29157
  if (!componentName) {
29158
- log$3.once(0, "".concat(componentClass.name, ".componentName not specified"))();
29158
+ log$4.once(0, "".concat(componentClass.name, ".componentName not specified"))();
29159
29159
  }
29160
29160
  return componentName || componentClass.name;
29161
29161
  }
@@ -29984,7 +29984,7 @@ class Layer extends Component {
29984
29984
  this.internalState.usesPickingColorCache = true;
29985
29985
  if (cacheSize < numInstances) {
29986
29986
  if (numInstances > MAX_PICKING_COLOR_CACHE_SIZE) {
29987
- log$3.warn("Layer has too many data objects. Picking might not be able to distinguish all objects.")();
29987
+ log$4.warn("Layer has too many data objects. Picking might not be able to distinguish all objects.")();
29988
29988
  }
29989
29989
  pickingColorCache = defaultTypedArrayManager.allocate(pickingColorCache, numInstances, {
29990
29990
  size: 3,
@@ -30066,7 +30066,7 @@ class Layer extends Component {
30066
30066
  this.state = {};
30067
30067
  Object.defineProperty(this.state, "attributeManager", {
30068
30068
  get: () => {
30069
- log$3.deprecated("layer.state.attributeManager", "layer.getAttributeManager()")();
30069
+ log$4.deprecated("layer.state.attributeManager", "layer.getAttributeManager()")();
30070
30070
  return attributeManager;
30071
30071
  }
30072
30072
  });
@@ -31365,7 +31365,7 @@ const esm$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
31365
31365
  createIterable,
31366
31366
  fp64LowPart,
31367
31367
  gouraudLighting,
31368
- log: log$3,
31368
+ log: log$4,
31369
31369
  phongLighting,
31370
31370
  picking,
31371
31371
  project: project$1,
@@ -32426,7 +32426,7 @@ class IconLayer extends Layer {
32426
32426
  if (onIconError) {
32427
32427
  onIconError(evt);
32428
32428
  } else {
32429
- log$3.error(evt.error.message)();
32429
+ log$4.error(evt.error.message)();
32430
32430
  }
32431
32431
  }
32432
32432
  getInstanceOffset(icon) {
@@ -33843,7 +33843,7 @@ function tesselateColumn(props) {
33843
33843
  vertices
33844
33844
  } = props;
33845
33845
  if (vertices) {
33846
- log$3.assert(vertices.length >= nradial);
33846
+ log$4.assert(vertices.length >= nradial);
33847
33847
  vertices = vertices.flatMap((v) => [v[0], v[1]]);
33848
33848
  modifyPolygonWindingDirection(vertices, WINDING.COUNTER_CLOCKWISE);
33849
33849
  }
@@ -35850,7 +35850,7 @@ class PolygonLayer extends CompositeLayer {
35850
35850
  paths: []
35851
35851
  };
35852
35852
  if (this.props.getLineDashArray) {
35853
- log$3.removed("getLineDashArray", "PathStyleExtension")();
35853
+ log$4.removed("getLineDashArray", "PathStyleExtension")();
35854
35854
  }
35855
35855
  }
35856
35856
  updateState({
@@ -36122,7 +36122,7 @@ class MultiIconLayer extends IconLayer {
36122
36122
  });
36123
36123
  }
36124
36124
  if (!props.sdf && props.outlineWidth) {
36125
- log$3.warn("".concat(this.id, ": fontSettings.sdf is required to render outline"))();
36125
+ log$4.warn("".concat(this.id, ": fontSettings.sdf is required to render outline"))();
36126
36126
  }
36127
36127
  }
36128
36128
  draw(params) {
@@ -36425,7 +36425,7 @@ function transformRow(line, startIndex, endIndex, iconMapping, leftOffsets, rowS
36425
36425
  leftOffsets[i2] = x2 + frame.width / 2;
36426
36426
  x2 += frame.width;
36427
36427
  } else {
36428
- log$3.warn("Missing character: ".concat(character, " (").concat(character.codePointAt(0), ")"))();
36428
+ log$4.warn("Missing character: ".concat(character, " (").concat(character.codePointAt(0), ")"))();
36429
36429
  leftOffsets[i2] = x2;
36430
36430
  x2 += MISSING_CHAR_WIDTH;
36431
36431
  }
@@ -36619,7 +36619,7 @@ function setTextStyle(ctx, fontFamily, fontSize, fontWeight) {
36619
36619
  ctx.textAlign = "left";
36620
36620
  }
36621
36621
  function setFontAtlasCacheLimit(limit) {
36622
- log$3.assert(Number.isFinite(limit) && limit >= CACHE_LIMIT, "Invalid cache limit");
36622
+ log$4.assert(Number.isFinite(limit) && limit >= CACHE_LIMIT, "Invalid cache limit");
36623
36623
  cache = new LRUCache(limit);
36624
36624
  }
36625
36625
  class FontAtlasManager {
@@ -37441,12 +37441,12 @@ function getGeojsonFeatures(geojson) {
37441
37441
  if (Array.isArray(geojson)) {
37442
37442
  return geojson;
37443
37443
  }
37444
- log$3.assert(geojson.type, "GeoJSON does not have type");
37444
+ log$4.assert(geojson.type, "GeoJSON does not have type");
37445
37445
  switch (geojson.type) {
37446
37446
  case "Feature":
37447
37447
  return [geojson];
37448
37448
  case "FeatureCollection":
37449
- log$3.assert(Array.isArray(geojson.features), "GeoJSON does not have features array");
37449
+ log$4.assert(Array.isArray(geojson.features), "GeoJSON does not have features array");
37450
37450
  return geojson.features;
37451
37451
  default:
37452
37452
  return [{
@@ -37474,7 +37474,7 @@ function separateGeojsonFeatures(features, wrapFeature, dataRange = {}) {
37474
37474
  continue;
37475
37475
  }
37476
37476
  if (geometry2.type === "GeometryCollection") {
37477
- log$3.assert(Array.isArray(geometry2.geometries), "GeoJSON does not have geometries array");
37477
+ log$4.assert(Array.isArray(geometry2.geometries), "GeoJSON does not have geometries array");
37478
37478
  const {
37479
37479
  geometries
37480
37480
  } = geometry2;
@@ -37500,7 +37500,7 @@ function separateGeometry(geometry2, separated, wrapFeature, sourceFeature, sour
37500
37500
  polygonOutlineFeatures
37501
37501
  } = separated;
37502
37502
  if (!validateGeometry(type2, coordinates2)) {
37503
- log$3.warn("".concat(type2, " coordinates are malformed"))();
37503
+ log$4.warn("".concat(type2, " coordinates are malformed"))();
37504
37504
  return;
37505
37505
  }
37506
37506
  switch (type2) {
@@ -37577,7 +37577,7 @@ const COORDINATE_NEST_LEVEL = {
37577
37577
  };
37578
37578
  function validateGeometry(type2, coordinates2) {
37579
37579
  let nestLevel = COORDINATE_NEST_LEVEL[type2];
37580
- log$3.assert(nestLevel, "Unknown GeoJSON type ".concat(type2));
37580
+ log$4.assert(nestLevel, "Unknown GeoJSON type ".concat(type2));
37581
37581
  while (coordinates2 && --nestLevel > 0) {
37582
37582
  coordinates2 = coordinates2[0];
37583
37583
  }
@@ -38204,7 +38204,7 @@ class GPUGridAggregator {
38204
38204
  });
38205
38205
  const aggregationParams = this._normalizeAggregationParams(opts);
38206
38206
  if (!this._hasGPUSupport) {
38207
- log$3.log(1, "GPUGridAggregator: not supported")();
38207
+ log$4.log(1, "GPUGridAggregator: not supported")();
38208
38208
  }
38209
38209
  return this._runAggregation(aggregationParams);
38210
38210
  }
@@ -39045,7 +39045,7 @@ function getTranslation(boundingBox, gridOffset, coordinateSystem, viewport) {
39045
39045
  height
39046
39046
  } = viewport;
39047
39047
  const worldOrigin = coordinateSystem === COORDINATE_SYSTEM.CARTESIAN ? [-width / 2, -height / 2] : [-180, -90];
39048
- log$3.assert(coordinateSystem === COORDINATE_SYSTEM.CARTESIAN || coordinateSystem === COORDINATE_SYSTEM.LNGLAT || coordinateSystem === COORDINATE_SYSTEM.DEFAULT);
39048
+ log$4.assert(coordinateSystem === COORDINATE_SYSTEM.CARTESIAN || coordinateSystem === COORDINATE_SYSTEM.LNGLAT || coordinateSystem === COORDINATE_SYSTEM.DEFAULT);
39049
39049
  const {
39050
39050
  xMin,
39051
39051
  yMin
@@ -39294,7 +39294,7 @@ class GridAggregationLayer extends AggregationLayer {
39294
39294
  }
39295
39295
  }
39296
39296
  updateAggregationState(opts) {
39297
- log$3.assert(false);
39297
+ log$4.assert(false);
39298
39298
  }
39299
39299
  allocateResources(numRow, numCol) {
39300
39300
  if (this.state.numRow !== numRow || this.state.numCol !== numCol) {
@@ -39683,7 +39683,7 @@ function getCode(opts) {
39683
39683
  } = opts;
39684
39684
  let threshold = opts.threshold;
39685
39685
  if (opts.thresholdValue) {
39686
- log$3.deprecated("thresholdValue", "threshold")();
39686
+ log$4.deprecated("thresholdValue", "threshold")();
39687
39687
  threshold = opts.thresholdValue;
39688
39688
  }
39689
39689
  const isLeftBoundary = x2 < 0;
@@ -39981,7 +39981,7 @@ class ContourLayer extends GridAggregationLayer {
39981
39981
  let gpuAggregation = props.gpuAggregation;
39982
39982
  if (this.state.gpuAggregation !== props.gpuAggregation) {
39983
39983
  if (gpuAggregation && !GPUGridAggregator.isSupported(this.context.gl)) {
39984
- log$3.warn("GPU Grid Aggregation not supported, falling back to CPU")();
39984
+ log$4.warn("GPU Grid Aggregation not supported, falling back to CPU")();
39985
39985
  gpuAggregation = false;
39986
39986
  }
39987
39987
  }
@@ -41014,7 +41014,7 @@ class Tile2DHeader {
41014
41014
  get byteLength() {
41015
41015
  const result = this.content ? this.content.byteLength : 0;
41016
41016
  if (!Number.isFinite(result)) {
41017
- log$3.error("byteLength not defined in tile data")();
41017
+ log$4.error("byteLength not defined in tile data")();
41018
41018
  }
41019
41019
  return result;
41020
41020
  }
@@ -54809,7 +54809,7 @@ function validateGeometryAttributes$1(attributes, useMeshColors) {
54809
54809
  value: new Float32Array([1, 1, 1])
54810
54810
  };
54811
54811
  }
54812
- log$3.assert(attributes.positions || attributes.POSITION, 'no "postions" or "POSITION" attribute in mesh');
54812
+ log$4.assert(attributes.positions || attributes.POSITION, 'no "postions" or "POSITION" attribute in mesh');
54813
54813
  }
54814
54814
  function getGeometry(data, useMeshColors) {
54815
54815
  if (data.attributes) {
@@ -55151,7 +55151,7 @@ class GroupNode extends ScenegraphNode {
55151
55151
  const {
55152
55152
  children = []
55153
55153
  } = props;
55154
- log$2.assert(children.every((child) => child instanceof ScenegraphNode), "every child must an instance of ScenegraphNode");
55154
+ log$3.assert(children.every((child) => child instanceof ScenegraphNode), "every child must an instance of ScenegraphNode");
55155
55155
  super(props);
55156
55156
  this.children = children;
55157
55157
  }
@@ -55343,7 +55343,7 @@ function interpolate$1(time, _ref2, target, path) {
55343
55343
  target[path] = [1, 1, 1];
55344
55344
  break;
55345
55345
  default:
55346
- log$2.warn("Bad animation path ".concat(path))();
55346
+ log$3.warn("Bad animation path ".concat(path))();
55347
55347
  }
55348
55348
  }
55349
55349
  assert$9(target[path].length === output[previousIndex].length);
@@ -55378,7 +55378,7 @@ function interpolate$1(time, _ref2, target, path) {
55378
55378
  }
55379
55379
  break;
55380
55380
  default:
55381
- log$2.warn("Interpolation ".concat(interpolation, " not supported"))();
55381
+ log$3.warn("Interpolation ".concat(interpolation, " not supported"))();
55382
55382
  break;
55383
55383
  }
55384
55384
  }
@@ -55624,7 +55624,7 @@ class GLTFMaterialParser {
55624
55624
  this.defines.ALPHA_CUTOFF = 1;
55625
55625
  this.uniforms.u_AlphaCutoff = alphaCutoff;
55626
55626
  } else if (material.alphaMode === "BLEND") {
55627
- log$2.warn("BLEND alphaMode might not work well because it requires mesh sorting")();
55627
+ log$3.warn("BLEND alphaMode might not work well because it requires mesh sorting")();
55628
55628
  Object.assign(this.parameters, {
55629
55629
  blend: true,
55630
55630
  blendEquation: this.gl.FUNC_ADD,
@@ -55653,7 +55653,7 @@ function createGLTFModel(gl, options) {
55653
55653
  modelOptions
55654
55654
  } = options;
55655
55655
  const materialParser = new GLTFMaterialParser(gl, options);
55656
- log$2.info(4, "createGLTFModel defines: ", materialParser.defines)();
55656
+ log$3.info(4, "createGLTFModel defines: ", materialParser.defines)();
55657
55657
  const managedResources = [];
55658
55658
  managedResources.push(...materialParser.generatedTextures);
55659
55659
  managedResources.push(...Object.values(attributes).map((attribute) => attribute.buffer));
@@ -55763,7 +55763,7 @@ class GLTFInstantiator {
55763
55763
  return gltfMesh._mesh;
55764
55764
  }
55765
55765
  getVertexCount(attributes) {
55766
- log$2.warn("getVertexCount() not found")();
55766
+ log$3.warn("getVertexCount() not found")();
55767
55767
  }
55768
55768
  createPrimitive(gltfPrimitive, i2, gltfMesh) {
55769
55769
  const model = createGLTFModel(this.gl, Object.assign({
@@ -55784,7 +55784,7 @@ class GLTFInstantiator {
55784
55784
  if (indices) {
55785
55785
  loadedAttributes.indices = this.createAccessor(indices, this.createBuffer(indices, this.gl.ELEMENT_ARRAY_BUFFER));
55786
55786
  }
55787
- log$2.info(4, "glTF Attributes", {
55787
+ log$3.info(4, "glTF Attributes", {
55788
55788
  attributes,
55789
55789
  indices,
55790
55790
  generated: loadedAttributes
@@ -59110,7 +59110,7 @@ class ScenegraphLayer extends Layer {
59110
59110
  };
59111
59111
  waitForGLTFAssets(gltfObjects).then(() => this.setNeedsRedraw());
59112
59112
  } else if (props.scenegraph) {
59113
- log$3.deprecated("ScenegraphLayer.props.scenegraph", "Use GLTFLoader instead of GLTFScenegraphLoader")();
59113
+ log$4.deprecated("ScenegraphLayer.props.scenegraph", "Use GLTFLoader instead of GLTFScenegraphLoader")();
59114
59114
  scenegraphData = props.scenegraph;
59115
59115
  }
59116
59116
  const options = {
@@ -59128,7 +59128,7 @@ class ScenegraphLayer extends Layer {
59128
59128
  animator
59129
59129
  });
59130
59130
  } else if (scenegraph !== null) {
59131
- log$3.warn("invalid scenegraph:", scenegraph)();
59131
+ log$4.warn("invalid scenegraph:", scenegraph)();
59132
59132
  }
59133
59133
  }
59134
59134
  _applyAllAttributes(scenegraph) {
@@ -59155,7 +59155,7 @@ class ScenegraphLayer extends Layer {
59155
59155
  if (number >= 0 && number < animations.length) {
59156
59156
  Object.assign(animations[number], value);
59157
59157
  } else {
59158
- log$3.warn("animation ".concat(key, " not found"))();
59158
+ log$4.warn("animation ".concat(key, " not found"))();
59159
59159
  }
59160
59160
  } else {
59161
59161
  const findResult = animations.find(({
@@ -59164,7 +59164,7 @@ class ScenegraphLayer extends Layer {
59164
59164
  if (findResult) {
59165
59165
  Object.assign(findResult, value);
59166
59166
  } else {
59167
- log$3.warn("animation ".concat(key, " not found"))();
59167
+ log$4.warn("animation ".concat(key, " not found"))();
59168
59168
  }
59169
59169
  }
59170
59170
  });
@@ -63635,7 +63635,7 @@ class Tile3DLayer extends CompositeLayer {
63635
63635
  }
63636
63636
  initializeState() {
63637
63637
  if ("onTileLoadFail" in this.props) {
63638
- log$3.removed("onTileLoadFail", "onTileError")();
63638
+ log$4.removed("onTileLoadFail", "onTileError")();
63639
63639
  }
63640
63640
  this.state = {
63641
63641
  layerMap: {},
@@ -64805,7 +64805,7 @@ class TerrainLayer extends CompositeLayer {
64805
64805
  });
64806
64806
  }
64807
64807
  if (props.workerUrl) {
64808
- log$3.removed("workerUrl", "loadOptions.terrain.workerUrl")();
64808
+ log$4.removed("workerUrl", "loadOptions.terrain.workerUrl")();
64809
64809
  }
64810
64810
  }
64811
64811
  loadTerrain({
@@ -67255,7 +67255,7 @@ class MVTLayer extends TileLayer {
67255
67255
  }
67256
67256
  const subLayers = super.renderSubLayers(props);
67257
67257
  if (this.state.binary && !(subLayers instanceof GeoJsonLayer)) {
67258
- log$3.warn("renderSubLayers() must return GeoJsonLayer when using binary:true")();
67258
+ log$4.warn("renderSubLayers() must return GeoJsonLayer when using binary:true")();
67259
67259
  }
67260
67260
  return subLayers;
67261
67261
  }
@@ -67999,7 +67999,7 @@ function point(coordinates2, properties, options) {
67999
67999
  if (coordinates2.length < 2) {
68000
68000
  throw new Error("coordinates must be at least 2 numbers long");
68001
68001
  }
68002
- if (!isNumber(coordinates2[0]) || !isNumber(coordinates2[1])) {
68002
+ if (!isNumber$1(coordinates2[0]) || !isNumber$1(coordinates2[1])) {
68003
68003
  throw new Error("coordinates must contain numbers");
68004
68004
  }
68005
68005
  var geom = {
@@ -68200,10 +68200,10 @@ function convertArea(area2, originalUnit, finalUnit) {
68200
68200
  }
68201
68201
  return area2 / startFactor * finalFactor;
68202
68202
  }
68203
- function isNumber(num) {
68203
+ function isNumber$1(num) {
68204
68204
  return !isNaN(num) && num !== null && !Array.isArray(num);
68205
68205
  }
68206
- function isObject$2(input) {
68206
+ function isObject$3(input) {
68207
68207
  return !!input && input.constructor === Object;
68208
68208
  }
68209
68209
  function validateBBox(bbox2) {
@@ -68217,7 +68217,7 @@ function validateBBox(bbox2) {
68217
68217
  throw new Error("bbox must be an Array of 4 or 6 numbers");
68218
68218
  }
68219
68219
  bbox2.forEach(function(num) {
68220
- if (!isNumber(num)) {
68220
+ if (!isNumber$1(num)) {
68221
68221
  throw new Error("bbox must only contain numbers");
68222
68222
  }
68223
68223
  });
@@ -68243,8 +68243,8 @@ const es$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty
68243
68243
  featureCollection: featureCollection$1,
68244
68244
  geometry,
68245
68245
  geometryCollection,
68246
- isNumber,
68247
- isObject: isObject$2,
68246
+ isNumber: isNumber$1,
68247
+ isObject: isObject$3,
68248
68248
  lengthToDegrees,
68249
68249
  lengthToRadians,
68250
68250
  lineString,
@@ -68923,7 +68923,7 @@ function getCoords$1(coords) {
68923
68923
  throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array");
68924
68924
  }
68925
68925
  function containsNumber$1(coordinates2) {
68926
- if (coordinates2.length > 1 && isNumber(coordinates2[0]) && isNumber(coordinates2[1])) {
68926
+ if (coordinates2.length > 1 && isNumber$1(coordinates2[0]) && isNumber$1(coordinates2[1])) {
68927
68927
  return true;
68928
68928
  }
68929
68929
  if (Array.isArray(coordinates2[0]) && coordinates2[0].length) {
@@ -69908,7 +69908,7 @@ function lineReduce(geojson, callback, initialValue) {
69908
69908
  }
69909
69909
  function findSegment(geojson, options) {
69910
69910
  options = options || {};
69911
- if (!isObject$2(options))
69911
+ if (!isObject$3(options))
69912
69912
  throw new Error("options is invalid");
69913
69913
  var featureIndex = options.featureIndex || 0;
69914
69914
  var multiFeatureIndex = options.multiFeatureIndex || 0;
@@ -70000,7 +70000,7 @@ function findSegment(geojson, options) {
70000
70000
  }
70001
70001
  function findPoint(geojson, options) {
70002
70002
  options = options || {};
70003
- if (!isObject$2(options))
70003
+ if (!isObject$3(options))
70004
70004
  throw new Error("options is invalid");
70005
70005
  var featureIndex = options.featureIndex || 0;
70006
70006
  var multiFeatureIndex = options.multiFeatureIndex || 0;
@@ -71990,7 +71990,7 @@ var hasSymbols2 = typeof Symbol === "function" && typeof Symbol("foo") === "symb
71990
71990
  var toStr$1 = Object.prototype.toString;
71991
71991
  var concat = Array.prototype.concat;
71992
71992
  var defineDataProperty2 = defineDataProperty$1;
71993
- var isFunction$1 = function(fn) {
71993
+ var isFunction$2 = function(fn) {
71994
71994
  return typeof fn === "function" && toStr$1.call(fn) === "[object Function]";
71995
71995
  };
71996
71996
  var supportsDescriptors$2 = hasPropertyDescriptors_1();
@@ -72000,7 +72000,7 @@ var defineProperty$1 = function(object2, name2, value, predicate) {
72000
72000
  if (object2[name2] === value) {
72001
72001
  return;
72002
72002
  }
72003
- } else if (!isFunction$1(predicate) || !predicate()) {
72003
+ } else if (!isFunction$2(predicate) || !predicate()) {
72004
72004
  return;
72005
72005
  }
72006
72006
  }
@@ -72384,7 +72384,7 @@ function lineOverlap(line1, line2, options) {
72384
72384
  options = {};
72385
72385
  }
72386
72386
  options = options || {};
72387
- if (!isObject$2(options))
72387
+ if (!isObject$3(options))
72388
72388
  throw new Error("options is invalid");
72389
72389
  var tolerance = options.tolerance || 0;
72390
72390
  var features = [];
@@ -73011,19 +73011,19 @@ var jsts_min = { exports: {} };
73011
73011
  }, Object.defineProperties(w2, O);
73012
73012
  var T = function(t2, e3) {
73013
73013
  return t2.interfaces_ && t2.interfaces_().indexOf(e3) > -1;
73014
- }, R2 = function() {
73014
+ }, R = function() {
73015
73015
  }, P = { LOG_10: { configurable: true } };
73016
- R2.prototype.interfaces_ = function() {
73016
+ R.prototype.interfaces_ = function() {
73017
73017
  return [];
73018
- }, R2.prototype.getClass = function() {
73019
- return R2;
73020
- }, R2.log10 = function(t2) {
73018
+ }, R.prototype.getClass = function() {
73019
+ return R;
73020
+ }, R.log10 = function(t2) {
73021
73021
  var e3 = Math.log(t2);
73022
- return v.isInfinite(e3) ? e3 : v.isNaN(e3) ? e3 : e3 / R2.LOG_10;
73023
- }, R2.min = function(t2, e3, n3, i3) {
73022
+ return v.isInfinite(e3) ? e3 : v.isNaN(e3) ? e3 : e3 / R.LOG_10;
73023
+ }, R.min = function(t2, e3, n3, i3) {
73024
73024
  var r3 = t2;
73025
73025
  return e3 < r3 && (r3 = e3), n3 < r3 && (r3 = n3), i3 < r3 && (r3 = i3), r3;
73026
- }, R2.clamp = function() {
73026
+ }, R.clamp = function() {
73027
73027
  if ("number" == typeof arguments[2] && "number" == typeof arguments[0] && "number" == typeof arguments[1]) {
73028
73028
  var t2 = arguments[0], e3 = arguments[1], n3 = arguments[2];
73029
73029
  return t2 < e3 ? e3 : t2 > n3 ? n3 : t2;
@@ -73032,9 +73032,9 @@ var jsts_min = { exports: {} };
73032
73032
  var i3 = arguments[0], r3 = arguments[1], o3 = arguments[2];
73033
73033
  return i3 < r3 ? r3 : i3 > o3 ? o3 : i3;
73034
73034
  }
73035
- }, R2.wrap = function(t2, e3) {
73035
+ }, R.wrap = function(t2, e3) {
73036
73036
  return t2 < 0 ? e3 - -t2 % e3 : t2 % e3;
73037
- }, R2.max = function() {
73037
+ }, R.max = function() {
73038
73038
  if (3 === arguments.length) {
73039
73039
  var t2 = arguments[0], e3 = arguments[1], n3 = arguments[2], i3 = t2;
73040
73040
  return e3 > i3 && (i3 = e3), n3 > i3 && (i3 = n3), i3;
@@ -73043,11 +73043,11 @@ var jsts_min = { exports: {} };
73043
73043
  var r3 = arguments[0], o3 = arguments[1], s3 = arguments[2], a3 = arguments[3], u2 = r3;
73044
73044
  return o3 > u2 && (u2 = o3), s3 > u2 && (u2 = s3), a3 > u2 && (u2 = a3), u2;
73045
73045
  }
73046
- }, R2.average = function(t2, e3) {
73046
+ }, R.average = function(t2, e3) {
73047
73047
  return (t2 + e3) / 2;
73048
73048
  }, P.LOG_10.get = function() {
73049
73049
  return Math.log(10);
73050
- }, Object.defineProperties(R2, P);
73050
+ }, Object.defineProperties(R, P);
73051
73051
  var D2 = function(t2) {
73052
73052
  this.str = t2;
73053
73053
  };
@@ -74202,7 +74202,7 @@ var jsts_min = { exports: {} };
74202
74202
  }
74203
74203
  } else
74204
74204
  r3 = true;
74205
- return r3 ? R2.min(at.distancePointLine(t2, n3, i3), at.distancePointLine(e3, n3, i3), at.distancePointLine(n3, t2, e3), at.distancePointLine(i3, t2, e3)) : 0;
74205
+ return r3 ? R.min(at.distancePointLine(t2, n3, i3), at.distancePointLine(e3, n3, i3), at.distancePointLine(n3, t2, e3), at.distancePointLine(i3, t2, e3)) : 0;
74206
74206
  }, at.isPointInRing = function(t2, e3) {
74207
74207
  return at.locatePointInRing(t2, e3) !== w2.EXTERIOR;
74208
74208
  }, at.computeLength = function(t2) {
@@ -74792,8 +74792,8 @@ var jsts_min = { exports: {} };
74792
74792
  (null === e3 || e3.compareTo(t2[n3]) > 0) && (e3 = t2[n3]);
74793
74793
  return e3;
74794
74794
  }, Lt.extract = function(t2, e3, n3) {
74795
- e3 = R2.clamp(e3, 0, t2.length);
74796
- var i3 = (n3 = R2.clamp(n3, -1, t2.length)) - e3 + 1;
74795
+ e3 = R.clamp(e3, 0, t2.length);
74796
+ var i3 = (n3 = R.clamp(n3, -1, t2.length)) - e3 + 1;
74797
74797
  n3 < 0 && (i3 = 0), e3 >= t2.length && (i3 = 0), n3 < e3 && (i3 = 0);
74798
74798
  var r3 = new Array(i3).fill(null);
74799
74799
  if (0 === i3)
@@ -80538,7 +80538,7 @@ var jsts_min = { exports: {} };
80538
80538
  return f3.getResultGeometry(c2);
80539
80539
  }
80540
80540
  }, di.precisionScaleFactor = function(t2, e3, n3) {
80541
- var i3 = t2.getEnvelopeInternal(), r3 = R2.max(Math.abs(i3.getMaxX()), Math.abs(i3.getMaxY()), Math.abs(i3.getMinX()), Math.abs(i3.getMinY())) + 2 * (e3 > 0 ? e3 : 0), o3 = n3 - Math.trunc(Math.log(r3) / Math.log(10) + 1);
80541
+ var i3 = t2.getEnvelopeInternal(), r3 = R.max(Math.abs(i3.getMaxX()), Math.abs(i3.getMaxY()), Math.abs(i3.getMinX()), Math.abs(i3.getMinY())) + 2 * (e3 > 0 ? e3 : 0), o3 = n3 - Math.trunc(Math.log(r3) / Math.log(10) + 1);
80542
80542
  return Math.pow(10, o3);
80543
80543
  }, yi.CAP_ROUND.get = function() {
80544
80544
  return Cn.CAP_ROUND;
@@ -82899,7 +82899,7 @@ var atan2 = Math.atan2;
82899
82899
  var cos = Math.cos;
82900
82900
  var ceil = Math.ceil;
82901
82901
  var exp = Math.exp;
82902
- var log = Math.log;
82902
+ var log$1 = Math.log;
82903
82903
  var pow = Math.pow;
82904
82904
  var sin = Math.sin;
82905
82905
  var sign = Math.sign || function(x2) {
@@ -84995,7 +84995,7 @@ function azimuthalEquidistant() {
84995
84995
  return projection(azimuthalEquidistantRaw).scale(79.4188).clipAngle(180 - 1e-3);
84996
84996
  }
84997
84997
  function mercatorRaw(lambda, phi) {
84998
- return [lambda, log(tan((halfPi + phi) / 2))];
84998
+ return [lambda, log$1(tan((halfPi + phi) / 2))];
84999
84999
  }
85000
85000
  mercatorRaw.invert = function(x2, y2) {
85001
85001
  return [x2, 2 * atan(exp(y2)) - halfPi];
@@ -85027,7 +85027,7 @@ function tany(y2) {
85027
85027
  return tan((halfPi + y2) / 2);
85028
85028
  }
85029
85029
  function conicConformalRaw(y02, y12) {
85030
- var cy0 = cos(y02), n2 = y02 === y12 ? sin(y02) : log(cy0 / cos(y12)) / log(tany(y12) / tany(y02)), f2 = cy0 * pow(tany(y02), n2) / n2;
85030
+ var cy0 = cos(y02), n2 = y02 === y12 ? sin(y02) : log$1(cy0 / cos(y12)) / log$1(tany(y12) / tany(y02)), f2 = cy0 * pow(tany(y02), n2) / n2;
85031
85031
  if (!n2)
85032
85032
  return mercatorRaw;
85033
85033
  function project2(x2, y2) {
@@ -85161,7 +85161,7 @@ function stereographic() {
85161
85161
  return projection(stereographicRaw).scale(250).clipAngle(142);
85162
85162
  }
85163
85163
  function transverseMercatorRaw(lambda, phi) {
85164
- return [log(tan((halfPi + phi) / 2)), -lambda];
85164
+ return [log$1(tan((halfPi + phi) / 2)), -lambda];
85165
85165
  }
85166
85166
  transverseMercatorRaw.invert = function(x2, y2) {
85167
85167
  return [-y2, 2 * atan(exp(x2)) - halfPi];
@@ -87911,372 +87911,216 @@ var layerMouseEvent = {};
87911
87911
  exports["default"] = LayerMouseEvent;
87912
87912
  })(layerMouseEvent);
87913
87913
  var nebulaLayer = {};
87914
- var events = { exports: {} };
87915
- var R = typeof Reflect === "object" ? Reflect : null;
87916
- var ReflectApply$1 = R && typeof R.apply === "function" ? R.apply : function ReflectApply(target, receiver, args) {
87917
- return Function.prototype.apply.call(target, receiver, args);
87918
- };
87919
- var ReflectOwnKeys$1;
87920
- if (R && typeof R.ownKeys === "function") {
87921
- ReflectOwnKeys$1 = R.ownKeys;
87922
- } else if (Object.getOwnPropertySymbols) {
87923
- ReflectOwnKeys$1 = function ReflectOwnKeys2(target) {
87924
- return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
87925
- };
87926
- } else {
87927
- ReflectOwnKeys$1 = function ReflectOwnKeys2(target) {
87928
- return Object.getOwnPropertyNames(target);
87929
- };
87930
- }
87931
- function ProcessEmitWarning(warning) {
87932
- if (console && console.warn)
87933
- console.warn(warning);
87934
- }
87935
- var NumberIsNaN = Number.isNaN || function NumberIsNaN2(value) {
87936
- return value !== value;
87937
- };
87938
87914
  function EventEmitter() {
87939
- EventEmitter.init.call(this);
87915
+ this._events = this._events || {};
87916
+ this._maxListeners = this._maxListeners || void 0;
87940
87917
  }
87941
- events.exports = EventEmitter;
87942
- events.exports.once = once2;
87918
+ var events = EventEmitter;
87943
87919
  EventEmitter.EventEmitter = EventEmitter;
87944
87920
  EventEmitter.prototype._events = void 0;
87945
- EventEmitter.prototype._eventsCount = 0;
87946
87921
  EventEmitter.prototype._maxListeners = void 0;
87947
- var defaultMaxListeners = 10;
87948
- function checkListener(listener) {
87949
- if (typeof listener !== "function") {
87950
- throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener);
87951
- }
87952
- }
87953
- Object.defineProperty(EventEmitter, "defaultMaxListeners", {
87954
- enumerable: true,
87955
- get: function() {
87956
- return defaultMaxListeners;
87957
- },
87958
- set: function(arg) {
87959
- if (typeof arg !== "number" || arg < 0 || NumberIsNaN(arg)) {
87960
- throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + ".");
87961
- }
87962
- defaultMaxListeners = arg;
87963
- }
87964
- });
87965
- EventEmitter.init = function() {
87966
- if (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) {
87967
- this._events = /* @__PURE__ */ Object.create(null);
87968
- this._eventsCount = 0;
87969
- }
87970
- this._maxListeners = this._maxListeners || void 0;
87971
- };
87972
- EventEmitter.prototype.setMaxListeners = function setMaxListeners(n2) {
87973
- if (typeof n2 !== "number" || n2 < 0 || NumberIsNaN(n2)) {
87974
- throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n2 + ".");
87975
- }
87922
+ EventEmitter.defaultMaxListeners = 10;
87923
+ EventEmitter.prototype.setMaxListeners = function(n2) {
87924
+ if (!isNumber(n2) || n2 < 0 || isNaN(n2))
87925
+ throw TypeError("n must be a positive number");
87976
87926
  this._maxListeners = n2;
87977
87927
  return this;
87978
87928
  };
87979
- function _getMaxListeners(that) {
87980
- if (that._maxListeners === void 0)
87981
- return EventEmitter.defaultMaxListeners;
87982
- return that._maxListeners;
87983
- }
87984
- EventEmitter.prototype.getMaxListeners = function getMaxListeners() {
87985
- return _getMaxListeners(this);
87986
- };
87987
- EventEmitter.prototype.emit = function emit(type2) {
87988
- var args = [];
87989
- for (var i2 = 1; i2 < arguments.length; i2++)
87990
- args.push(arguments[i2]);
87991
- var doError = type2 === "error";
87992
- var events2 = this._events;
87993
- if (events2 !== void 0)
87994
- doError = doError && events2.error === void 0;
87995
- else if (!doError)
87996
- return false;
87997
- if (doError) {
87998
- var er;
87999
- if (args.length > 0)
88000
- er = args[0];
88001
- if (er instanceof Error) {
88002
- throw er;
88003
- }
88004
- var err2 = new Error("Unhandled error." + (er ? " (" + er.message + ")" : ""));
88005
- err2.context = er;
88006
- throw err2;
88007
- }
88008
- var handler = events2[type2];
88009
- if (handler === void 0)
87929
+ EventEmitter.prototype.emit = function(type2) {
87930
+ var er, handler, len2, args, i2, listeners;
87931
+ if (!this._events)
87932
+ this._events = {};
87933
+ if (type2 === "error") {
87934
+ if (!this._events.error || isObject$2(this._events.error) && !this._events.error.length) {
87935
+ er = arguments[1];
87936
+ if (er instanceof Error) {
87937
+ throw er;
87938
+ } else {
87939
+ var err2 = new Error('Uncaught, unspecified "error" event. (' + er + ")");
87940
+ err2.context = er;
87941
+ throw err2;
87942
+ }
87943
+ }
87944
+ }
87945
+ handler = this._events[type2];
87946
+ if (isUndefined(handler))
88010
87947
  return false;
88011
- if (typeof handler === "function") {
88012
- ReflectApply$1(handler, this, args);
88013
- } else {
88014
- var len2 = handler.length;
88015
- var listeners2 = arrayClone(handler, len2);
88016
- for (var i2 = 0; i2 < len2; ++i2)
88017
- ReflectApply$1(listeners2[i2], this, args);
87948
+ if (isFunction$1(handler)) {
87949
+ switch (arguments.length) {
87950
+ case 1:
87951
+ handler.call(this);
87952
+ break;
87953
+ case 2:
87954
+ handler.call(this, arguments[1]);
87955
+ break;
87956
+ case 3:
87957
+ handler.call(this, arguments[1], arguments[2]);
87958
+ break;
87959
+ default:
87960
+ args = Array.prototype.slice.call(arguments, 1);
87961
+ handler.apply(this, args);
87962
+ }
87963
+ } else if (isObject$2(handler)) {
87964
+ args = Array.prototype.slice.call(arguments, 1);
87965
+ listeners = handler.slice();
87966
+ len2 = listeners.length;
87967
+ for (i2 = 0; i2 < len2; i2++)
87968
+ listeners[i2].apply(this, args);
88018
87969
  }
88019
87970
  return true;
88020
87971
  };
88021
- function _addListener(target, type2, listener, prepend) {
87972
+ EventEmitter.prototype.addListener = function(type2, listener) {
88022
87973
  var m;
88023
- var events2;
88024
- var existing;
88025
- checkListener(listener);
88026
- events2 = target._events;
88027
- if (events2 === void 0) {
88028
- events2 = target._events = /* @__PURE__ */ Object.create(null);
88029
- target._eventsCount = 0;
88030
- } else {
88031
- if (events2.newListener !== void 0) {
88032
- target.emit(
88033
- "newListener",
88034
- type2,
88035
- listener.listener ? listener.listener : listener
88036
- );
88037
- events2 = target._events;
88038
- }
88039
- existing = events2[type2];
88040
- }
88041
- if (existing === void 0) {
88042
- existing = events2[type2] = listener;
88043
- ++target._eventsCount;
88044
- } else {
88045
- if (typeof existing === "function") {
88046
- existing = events2[type2] = prepend ? [listener, existing] : [existing, listener];
88047
- } else if (prepend) {
88048
- existing.unshift(listener);
87974
+ if (!isFunction$1(listener))
87975
+ throw TypeError("listener must be a function");
87976
+ if (!this._events)
87977
+ this._events = {};
87978
+ if (this._events.newListener)
87979
+ this.emit(
87980
+ "newListener",
87981
+ type2,
87982
+ isFunction$1(listener.listener) ? listener.listener : listener
87983
+ );
87984
+ if (!this._events[type2])
87985
+ this._events[type2] = listener;
87986
+ else if (isObject$2(this._events[type2]))
87987
+ this._events[type2].push(listener);
87988
+ else
87989
+ this._events[type2] = [this._events[type2], listener];
87990
+ if (isObject$2(this._events[type2]) && !this._events[type2].warned) {
87991
+ if (!isUndefined(this._maxListeners)) {
87992
+ m = this._maxListeners;
88049
87993
  } else {
88050
- existing.push(listener);
87994
+ m = EventEmitter.defaultMaxListeners;
88051
87995
  }
88052
- m = _getMaxListeners(target);
88053
- if (m > 0 && existing.length > m && !existing.warned) {
88054
- existing.warned = true;
88055
- var w2 = new Error("Possible EventEmitter memory leak detected. " + existing.length + " " + String(type2) + " listeners added. Use emitter.setMaxListeners() to increase limit");
88056
- w2.name = "MaxListenersExceededWarning";
88057
- w2.emitter = target;
88058
- w2.type = type2;
88059
- w2.count = existing.length;
88060
- ProcessEmitWarning(w2);
87996
+ if (m && m > 0 && this._events[type2].length > m) {
87997
+ this._events[type2].warned = true;
87998
+ console.error(
87999
+ "(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",
88000
+ this._events[type2].length
88001
+ );
88002
+ if (typeof console.trace === "function") {
88003
+ console.trace();
88004
+ }
88061
88005
  }
88062
88006
  }
88063
- return target;
88064
- }
88065
- EventEmitter.prototype.addListener = function addListener(type2, listener) {
88066
- return _addListener(this, type2, listener, false);
88067
- };
88068
- EventEmitter.prototype.on = EventEmitter.prototype.addListener;
88069
- EventEmitter.prototype.prependListener = function prependListener(type2, listener) {
88070
- return _addListener(this, type2, listener, true);
88071
- };
88072
- function onceWrapper() {
88073
- if (!this.fired) {
88074
- this.target.removeListener(this.type, this.wrapFn);
88075
- this.fired = true;
88076
- if (arguments.length === 0)
88077
- return this.listener.call(this.target);
88078
- return this.listener.apply(this.target, arguments);
88079
- }
88080
- }
88081
- function _onceWrap(target, type2, listener) {
88082
- var state = { fired: false, wrapFn: void 0, target, type: type2, listener };
88083
- var wrapped = onceWrapper.bind(state);
88084
- wrapped.listener = listener;
88085
- state.wrapFn = wrapped;
88086
- return wrapped;
88087
- }
88088
- EventEmitter.prototype.once = function once(type2, listener) {
88089
- checkListener(listener);
88090
- this.on(type2, _onceWrap(this, type2, listener));
88091
88007
  return this;
88092
88008
  };
88093
- EventEmitter.prototype.prependOnceListener = function prependOnceListener(type2, listener) {
88094
- checkListener(listener);
88095
- this.prependListener(type2, _onceWrap(this, type2, listener));
88009
+ EventEmitter.prototype.on = EventEmitter.prototype.addListener;
88010
+ EventEmitter.prototype.once = function(type2, listener) {
88011
+ if (!isFunction$1(listener))
88012
+ throw TypeError("listener must be a function");
88013
+ var fired = false;
88014
+ function g2() {
88015
+ this.removeListener(type2, g2);
88016
+ if (!fired) {
88017
+ fired = true;
88018
+ listener.apply(this, arguments);
88019
+ }
88020
+ }
88021
+ g2.listener = listener;
88022
+ this.on(type2, g2);
88096
88023
  return this;
88097
88024
  };
88098
- EventEmitter.prototype.removeListener = function removeListener(type2, listener) {
88099
- var list, events2, position, i2, originalListener;
88100
- checkListener(listener);
88101
- events2 = this._events;
88102
- if (events2 === void 0)
88103
- return this;
88104
- list = events2[type2];
88105
- if (list === void 0)
88025
+ EventEmitter.prototype.removeListener = function(type2, listener) {
88026
+ var list, position, length2, i2;
88027
+ if (!isFunction$1(listener))
88028
+ throw TypeError("listener must be a function");
88029
+ if (!this._events || !this._events[type2])
88106
88030
  return this;
88107
- if (list === listener || list.listener === listener) {
88108
- if (--this._eventsCount === 0)
88109
- this._events = /* @__PURE__ */ Object.create(null);
88110
- else {
88111
- delete events2[type2];
88112
- if (events2.removeListener)
88113
- this.emit("removeListener", type2, list.listener || listener);
88114
- }
88115
- } else if (typeof list !== "function") {
88116
- position = -1;
88117
- for (i2 = list.length - 1; i2 >= 0; i2--) {
88118
- if (list[i2] === listener || list[i2].listener === listener) {
88119
- originalListener = list[i2].listener;
88031
+ list = this._events[type2];
88032
+ length2 = list.length;
88033
+ position = -1;
88034
+ if (list === listener || isFunction$1(list.listener) && list.listener === listener) {
88035
+ delete this._events[type2];
88036
+ if (this._events.removeListener)
88037
+ this.emit("removeListener", type2, listener);
88038
+ } else if (isObject$2(list)) {
88039
+ for (i2 = length2; i2-- > 0; ) {
88040
+ if (list[i2] === listener || list[i2].listener && list[i2].listener === listener) {
88120
88041
  position = i2;
88121
88042
  break;
88122
88043
  }
88123
88044
  }
88124
88045
  if (position < 0)
88125
88046
  return this;
88126
- if (position === 0)
88127
- list.shift();
88128
- else {
88129
- spliceOne(list, position);
88047
+ if (list.length === 1) {
88048
+ list.length = 0;
88049
+ delete this._events[type2];
88050
+ } else {
88051
+ list.splice(position, 1);
88130
88052
  }
88131
- if (list.length === 1)
88132
- events2[type2] = list[0];
88133
- if (events2.removeListener !== void 0)
88134
- this.emit("removeListener", type2, originalListener || listener);
88053
+ if (this._events.removeListener)
88054
+ this.emit("removeListener", type2, listener);
88135
88055
  }
88136
88056
  return this;
88137
88057
  };
88138
- EventEmitter.prototype.off = EventEmitter.prototype.removeListener;
88139
- EventEmitter.prototype.removeAllListeners = function removeAllListeners(type2) {
88140
- var listeners2, events2, i2;
88141
- events2 = this._events;
88142
- if (events2 === void 0)
88058
+ EventEmitter.prototype.removeAllListeners = function(type2) {
88059
+ var key, listeners;
88060
+ if (!this._events)
88143
88061
  return this;
88144
- if (events2.removeListener === void 0) {
88145
- if (arguments.length === 0) {
88146
- this._events = /* @__PURE__ */ Object.create(null);
88147
- this._eventsCount = 0;
88148
- } else if (events2[type2] !== void 0) {
88149
- if (--this._eventsCount === 0)
88150
- this._events = /* @__PURE__ */ Object.create(null);
88151
- else
88152
- delete events2[type2];
88153
- }
88062
+ if (!this._events.removeListener) {
88063
+ if (arguments.length === 0)
88064
+ this._events = {};
88065
+ else if (this._events[type2])
88066
+ delete this._events[type2];
88154
88067
  return this;
88155
88068
  }
88156
88069
  if (arguments.length === 0) {
88157
- var keys3 = Object.keys(events2);
88158
- var key;
88159
- for (i2 = 0; i2 < keys3.length; ++i2) {
88160
- key = keys3[i2];
88070
+ for (key in this._events) {
88161
88071
  if (key === "removeListener")
88162
88072
  continue;
88163
88073
  this.removeAllListeners(key);
88164
88074
  }
88165
88075
  this.removeAllListeners("removeListener");
88166
- this._events = /* @__PURE__ */ Object.create(null);
88167
- this._eventsCount = 0;
88076
+ this._events = {};
88168
88077
  return this;
88169
88078
  }
88170
- listeners2 = events2[type2];
88171
- if (typeof listeners2 === "function") {
88172
- this.removeListener(type2, listeners2);
88173
- } else if (listeners2 !== void 0) {
88174
- for (i2 = listeners2.length - 1; i2 >= 0; i2--) {
88175
- this.removeListener(type2, listeners2[i2]);
88176
- }
88079
+ listeners = this._events[type2];
88080
+ if (isFunction$1(listeners)) {
88081
+ this.removeListener(type2, listeners);
88082
+ } else if (listeners) {
88083
+ while (listeners.length)
88084
+ this.removeListener(type2, listeners[listeners.length - 1]);
88177
88085
  }
88086
+ delete this._events[type2];
88178
88087
  return this;
88179
88088
  };
88180
- function _listeners(target, type2, unwrap) {
88181
- var events2 = target._events;
88182
- if (events2 === void 0)
88183
- return [];
88184
- var evlistener = events2[type2];
88185
- if (evlistener === void 0)
88186
- return [];
88187
- if (typeof evlistener === "function")
88188
- return unwrap ? [evlistener.listener || evlistener] : [evlistener];
88189
- return unwrap ? unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);
88190
- }
88191
- EventEmitter.prototype.listeners = function listeners(type2) {
88192
- return _listeners(this, type2, true);
88193
- };
88194
- EventEmitter.prototype.rawListeners = function rawListeners(type2) {
88195
- return _listeners(this, type2, false);
88196
- };
88197
- EventEmitter.listenerCount = function(emitter, type2) {
88198
- if (typeof emitter.listenerCount === "function") {
88199
- return emitter.listenerCount(type2);
88200
- } else {
88201
- return listenerCount.call(emitter, type2);
88202
- }
88089
+ EventEmitter.prototype.listeners = function(type2) {
88090
+ var ret;
88091
+ if (!this._events || !this._events[type2])
88092
+ ret = [];
88093
+ else if (isFunction$1(this._events[type2]))
88094
+ ret = [this._events[type2]];
88095
+ else
88096
+ ret = this._events[type2].slice();
88097
+ return ret;
88203
88098
  };
88204
- EventEmitter.prototype.listenerCount = listenerCount;
88205
- function listenerCount(type2) {
88206
- var events2 = this._events;
88207
- if (events2 !== void 0) {
88208
- var evlistener = events2[type2];
88209
- if (typeof evlistener === "function") {
88099
+ EventEmitter.prototype.listenerCount = function(type2) {
88100
+ if (this._events) {
88101
+ var evlistener = this._events[type2];
88102
+ if (isFunction$1(evlistener))
88210
88103
  return 1;
88211
- } else if (evlistener !== void 0) {
88104
+ else if (evlistener)
88212
88105
  return evlistener.length;
88213
- }
88214
88106
  }
88215
88107
  return 0;
88216
- }
88217
- EventEmitter.prototype.eventNames = function eventNames() {
88218
- return this._eventsCount > 0 ? ReflectOwnKeys$1(this._events) : [];
88219
88108
  };
88220
- function arrayClone(arr, n2) {
88221
- var copy2 = new Array(n2);
88222
- for (var i2 = 0; i2 < n2; ++i2)
88223
- copy2[i2] = arr[i2];
88224
- return copy2;
88109
+ EventEmitter.listenerCount = function(emitter, type2) {
88110
+ return emitter.listenerCount(type2);
88111
+ };
88112
+ function isFunction$1(arg) {
88113
+ return typeof arg === "function";
88225
88114
  }
88226
- function spliceOne(list, index2) {
88227
- for (; index2 + 1 < list.length; index2++)
88228
- list[index2] = list[index2 + 1];
88229
- list.pop();
88115
+ function isNumber(arg) {
88116
+ return typeof arg === "number";
88230
88117
  }
88231
- function unwrapListeners(arr) {
88232
- var ret = new Array(arr.length);
88233
- for (var i2 = 0; i2 < ret.length; ++i2) {
88234
- ret[i2] = arr[i2].listener || arr[i2];
88235
- }
88236
- return ret;
88118
+ function isObject$2(arg) {
88119
+ return typeof arg === "object" && arg !== null;
88237
88120
  }
88238
- function once2(emitter, name2) {
88239
- return new Promise(function(resolve, reject) {
88240
- function errorListener(err2) {
88241
- emitter.removeListener(name2, resolver);
88242
- reject(err2);
88243
- }
88244
- function resolver() {
88245
- if (typeof emitter.removeListener === "function") {
88246
- emitter.removeListener("error", errorListener);
88247
- }
88248
- resolve([].slice.call(arguments));
88249
- }
88250
- eventTargetAgnosticAddListener(emitter, name2, resolver, { once: true });
88251
- if (name2 !== "error") {
88252
- addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });
88253
- }
88254
- });
88255
- }
88256
- function addErrorHandlerIfEventEmitter(emitter, handler, flags3) {
88257
- if (typeof emitter.on === "function") {
88258
- eventTargetAgnosticAddListener(emitter, "error", handler, flags3);
88259
- }
88260
- }
88261
- function eventTargetAgnosticAddListener(emitter, name2, listener, flags3) {
88262
- if (typeof emitter.on === "function") {
88263
- if (flags3.once) {
88264
- emitter.once(name2, listener);
88265
- } else {
88266
- emitter.on(name2, listener);
88267
- }
88268
- } else if (typeof emitter.addEventListener === "function") {
88269
- emitter.addEventListener(name2, function wrapListener(arg) {
88270
- if (flags3.once) {
88271
- emitter.removeEventListener(name2, wrapListener);
88272
- }
88273
- listener(arg);
88274
- });
88275
- } else {
88276
- throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter);
88277
- }
88121
+ function isUndefined(arg) {
88122
+ return arg === void 0;
88278
88123
  }
88279
- var eventsExports = events.exports;
88280
88124
  var getRandomValues = typeof crypto != "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto != "undefined" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto);
88281
88125
  var rnds8 = new Uint8Array(16);
88282
88126
  function rng() {
@@ -88642,7 +88486,7 @@ const require$$1$1 = /* @__PURE__ */ getAugmentedNamespace(esmBrowser);
88642
88486
  value: true
88643
88487
  });
88644
88488
  exports["default"] = void 0;
88645
- var _events = _interopRequireDefault2(eventsExports);
88489
+ var _events = _interopRequireDefault2(events);
88646
88490
  var _uuid = _interopRequireDefault2(require$$1$1);
88647
88491
  function _interopRequireDefault2(obj) {
88648
88492
  return obj && obj.__esModule ? obj : { "default": obj };
@@ -89079,7 +88923,7 @@ function rhumbDistance$2(from, to, options) {
89079
88923
  }
89080
88924
  function calculateRhumbDistance(origin, destination2, radius) {
89081
88925
  radius = radius === void 0 ? helpers_1$8.earthRadius : Number(radius);
89082
- var R2 = radius;
88926
+ var R = radius;
89083
88927
  var phi12 = origin[1] * Math.PI / 180;
89084
88928
  var phi2 = destination2[1] * Math.PI / 180;
89085
88929
  var DeltaPhi = phi2 - phi12;
@@ -89090,7 +88934,7 @@ function calculateRhumbDistance(origin, destination2, radius) {
89090
88934
  var DeltaPsi = Math.log(Math.tan(phi2 / 2 + Math.PI / 4) / Math.tan(phi12 / 2 + Math.PI / 4));
89091
88935
  var q = Math.abs(DeltaPsi) > 1e-11 ? DeltaPhi / DeltaPsi : Math.cos(phi12);
89092
88936
  var delta = Math.sqrt(DeltaPhi * DeltaPhi + q * q * DeltaLambda * DeltaLambda);
89093
- var dist = delta * R2;
88937
+ var dist = delta * R;
89094
88938
  return dist;
89095
88939
  }
89096
88940
  js$d.default = rhumbDistance$2;
@@ -103553,7 +103397,7 @@ var document_1 = doccy;
103553
103397
  value: true
103554
103398
  });
103555
103399
  exports["default"] = void 0;
103556
- var _events = eventsExports;
103400
+ var _events = events;
103557
103401
  var _document = _interopRequireDefault2(document_1);
103558
103402
  var _core = require$$2$2;
103559
103403
  var _deckDrawer = _interopRequireDefault2(deckDrawer);
@@ -105598,7 +105442,7 @@ class SelectionExtension extends LayerExtension {
105598
105442
  SelectionExtension.extensionName = "SelectionExtension";
105599
105443
  function uncurryThis(target) {
105600
105444
  return (thisArg, ...args) => {
105601
- return ReflectApply2(target, thisArg, args);
105445
+ return ReflectApply(target, thisArg, args);
105602
105446
  };
105603
105447
  }
105604
105448
  function uncurryThisGetter(target, key) {
@@ -105610,7 +105454,7 @@ function uncurryThisGetter(target, key) {
105610
105454
  );
105611
105455
  }
105612
105456
  const {
105613
- apply: ReflectApply2,
105457
+ apply: ReflectApply,
105614
105458
  construct: ReflectConstruct,
105615
105459
  defineProperty: ReflectDefineProperty,
105616
105460
  get: ReflectGet,
@@ -106282,16 +106126,16 @@ async function getDecoder(fileDirectory) {
106282
106126
  const Decoder = await importFn();
106283
106127
  return new Decoder(fileDirectory);
106284
106128
  }
106285
- addDecoder([void 0, 1], () => import("./raw-3d70ff2e.js").then((m) => m.default));
106286
- addDecoder(5, () => import("./lzw-4c807d51.js").then((m) => m.default));
106129
+ addDecoder([void 0, 1], () => import("./raw-2ccdfb85.js").then((m) => m.default));
106130
+ addDecoder(5, () => import("./lzw-5698c290.js").then((m) => m.default));
106287
106131
  addDecoder(6, () => {
106288
106132
  throw new Error("old style JPEG compression is not supported.");
106289
106133
  });
106290
- addDecoder(7, () => import("./jpeg-7428d0cc.js").then((m) => m.default));
106291
- addDecoder([8, 32946], () => import("./deflate-5f6bf017.js").then((m) => m.default));
106292
- addDecoder(32773, () => import("./packbits-865e9a4b.js").then((m) => m.default));
106293
- addDecoder(34887, () => import("./lerc-70c5067b.js").then((m) => m.default));
106294
- addDecoder(50001, () => import("./webimage-baf0ad55.js").then((m) => m.default));
106134
+ addDecoder(7, () => import("./jpeg-45af9337.js").then((m) => m.default));
106135
+ addDecoder([8, 32946], () => import("./deflate-cfdd9e56.js").then((m) => m.default));
106136
+ addDecoder(32773, () => import("./packbits-110b757d.js").then((m) => m.default));
106137
+ addDecoder(34887, () => import("./lerc-956ec4f4.js").then((m) => m.default));
106138
+ addDecoder(50001, () => import("./webimage-f56b4603.js").then((m) => m.default));
106295
106139
  function copyNewSize(array, width, height, samplesPerPixel = 1) {
106296
106140
  return new (Object.getPrototypeOf(array)).constructor(width * height * samplesPerPixel);
106297
106141
  }
@@ -112706,16 +112550,16 @@ createCommonjsModule(function(module2) {
112706
112550
  if (!new Events().__proto__)
112707
112551
  prefix = false;
112708
112552
  }
112709
- function EE(fn, context, once3) {
112553
+ function EE(fn, context, once) {
112710
112554
  this.fn = fn;
112711
112555
  this.context = context;
112712
- this.once = once3 || false;
112556
+ this.once = once || false;
112713
112557
  }
112714
- function addListener2(emitter, event, fn, context, once3) {
112558
+ function addListener(emitter, event, fn, context, once) {
112715
112559
  if (typeof fn !== "function") {
112716
112560
  throw new TypeError("The listener must be a function");
112717
112561
  }
112718
- var listener = new EE(fn, context || emitter, once3), evt = prefix ? prefix + event : event;
112562
+ var listener = new EE(fn, context || emitter, once), evt = prefix ? prefix + event : event;
112719
112563
  if (!emitter._events[evt])
112720
112564
  emitter._events[evt] = listener, emitter._eventsCount++;
112721
112565
  else if (!emitter._events[evt].fn)
@@ -112734,7 +112578,7 @@ createCommonjsModule(function(module2) {
112734
112578
  this._events = new Events();
112735
112579
  this._eventsCount = 0;
112736
112580
  }
112737
- EventEmitter2.prototype.eventNames = function eventNames2() {
112581
+ EventEmitter2.prototype.eventNames = function eventNames() {
112738
112582
  var names = [], events2, name2;
112739
112583
  if (this._eventsCount === 0)
112740
112584
  return names;
@@ -112747,7 +112591,7 @@ createCommonjsModule(function(module2) {
112747
112591
  }
112748
112592
  return names;
112749
112593
  };
112750
- EventEmitter2.prototype.listeners = function listeners2(event) {
112594
+ EventEmitter2.prototype.listeners = function listeners(event) {
112751
112595
  var evt = prefix ? prefix + event : event, handlers = this._events[evt];
112752
112596
  if (!handlers)
112753
112597
  return [];
@@ -112758,76 +112602,76 @@ createCommonjsModule(function(module2) {
112758
112602
  }
112759
112603
  return ee;
112760
112604
  };
112761
- EventEmitter2.prototype.listenerCount = function listenerCount2(event) {
112762
- var evt = prefix ? prefix + event : event, listeners2 = this._events[evt];
112763
- if (!listeners2)
112605
+ EventEmitter2.prototype.listenerCount = function listenerCount(event) {
112606
+ var evt = prefix ? prefix + event : event, listeners = this._events[evt];
112607
+ if (!listeners)
112764
112608
  return 0;
112765
- if (listeners2.fn)
112609
+ if (listeners.fn)
112766
112610
  return 1;
112767
- return listeners2.length;
112611
+ return listeners.length;
112768
112612
  };
112769
- EventEmitter2.prototype.emit = function emit2(event, a1, a2, a3, a4, a5) {
112613
+ EventEmitter2.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {
112770
112614
  var evt = prefix ? prefix + event : event;
112771
112615
  if (!this._events[evt])
112772
112616
  return false;
112773
- var listeners2 = this._events[evt], len2 = arguments.length, args, i2;
112774
- if (listeners2.fn) {
112775
- if (listeners2.once)
112776
- this.removeListener(event, listeners2.fn, void 0, true);
112617
+ var listeners = this._events[evt], len2 = arguments.length, args, i2;
112618
+ if (listeners.fn) {
112619
+ if (listeners.once)
112620
+ this.removeListener(event, listeners.fn, void 0, true);
112777
112621
  switch (len2) {
112778
112622
  case 1:
112779
- return listeners2.fn.call(listeners2.context), true;
112623
+ return listeners.fn.call(listeners.context), true;
112780
112624
  case 2:
112781
- return listeners2.fn.call(listeners2.context, a1), true;
112625
+ return listeners.fn.call(listeners.context, a1), true;
112782
112626
  case 3:
112783
- return listeners2.fn.call(listeners2.context, a1, a2), true;
112627
+ return listeners.fn.call(listeners.context, a1, a2), true;
112784
112628
  case 4:
112785
- return listeners2.fn.call(listeners2.context, a1, a2, a3), true;
112629
+ return listeners.fn.call(listeners.context, a1, a2, a3), true;
112786
112630
  case 5:
112787
- return listeners2.fn.call(listeners2.context, a1, a2, a3, a4), true;
112631
+ return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;
112788
112632
  case 6:
112789
- return listeners2.fn.call(listeners2.context, a1, a2, a3, a4, a5), true;
112633
+ return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;
112790
112634
  }
112791
112635
  for (i2 = 1, args = new Array(len2 - 1); i2 < len2; i2++) {
112792
112636
  args[i2 - 1] = arguments[i2];
112793
112637
  }
112794
- listeners2.fn.apply(listeners2.context, args);
112638
+ listeners.fn.apply(listeners.context, args);
112795
112639
  } else {
112796
- var length2 = listeners2.length, j;
112640
+ var length2 = listeners.length, j;
112797
112641
  for (i2 = 0; i2 < length2; i2++) {
112798
- if (listeners2[i2].once)
112799
- this.removeListener(event, listeners2[i2].fn, void 0, true);
112642
+ if (listeners[i2].once)
112643
+ this.removeListener(event, listeners[i2].fn, void 0, true);
112800
112644
  switch (len2) {
112801
112645
  case 1:
112802
- listeners2[i2].fn.call(listeners2[i2].context);
112646
+ listeners[i2].fn.call(listeners[i2].context);
112803
112647
  break;
112804
112648
  case 2:
112805
- listeners2[i2].fn.call(listeners2[i2].context, a1);
112649
+ listeners[i2].fn.call(listeners[i2].context, a1);
112806
112650
  break;
112807
112651
  case 3:
112808
- listeners2[i2].fn.call(listeners2[i2].context, a1, a2);
112652
+ listeners[i2].fn.call(listeners[i2].context, a1, a2);
112809
112653
  break;
112810
112654
  case 4:
112811
- listeners2[i2].fn.call(listeners2[i2].context, a1, a2, a3);
112655
+ listeners[i2].fn.call(listeners[i2].context, a1, a2, a3);
112812
112656
  break;
112813
112657
  default:
112814
112658
  if (!args)
112815
112659
  for (j = 1, args = new Array(len2 - 1); j < len2; j++) {
112816
112660
  args[j - 1] = arguments[j];
112817
112661
  }
112818
- listeners2[i2].fn.apply(listeners2[i2].context, args);
112662
+ listeners[i2].fn.apply(listeners[i2].context, args);
112819
112663
  }
112820
112664
  }
112821
112665
  }
112822
112666
  return true;
112823
112667
  };
112824
112668
  EventEmitter2.prototype.on = function on(event, fn, context) {
112825
- return addListener2(this, event, fn, context, false);
112669
+ return addListener(this, event, fn, context, false);
112826
112670
  };
112827
- EventEmitter2.prototype.once = function once3(event, fn, context) {
112828
- return addListener2(this, event, fn, context, true);
112671
+ EventEmitter2.prototype.once = function once(event, fn, context) {
112672
+ return addListener(this, event, fn, context, true);
112829
112673
  };
112830
- EventEmitter2.prototype.removeListener = function removeListener2(event, fn, context, once3) {
112674
+ EventEmitter2.prototype.removeListener = function removeListener(event, fn, context, once) {
112831
112675
  var evt = prefix ? prefix + event : event;
112832
112676
  if (!this._events[evt])
112833
112677
  return this;
@@ -112835,15 +112679,15 @@ createCommonjsModule(function(module2) {
112835
112679
  clearEvent(this, evt);
112836
112680
  return this;
112837
112681
  }
112838
- var listeners2 = this._events[evt];
112839
- if (listeners2.fn) {
112840
- if (listeners2.fn === fn && (!once3 || listeners2.once) && (!context || listeners2.context === context)) {
112682
+ var listeners = this._events[evt];
112683
+ if (listeners.fn) {
112684
+ if (listeners.fn === fn && (!once || listeners.once) && (!context || listeners.context === context)) {
112841
112685
  clearEvent(this, evt);
112842
112686
  }
112843
112687
  } else {
112844
- for (var i2 = 0, events2 = [], length2 = listeners2.length; i2 < length2; i2++) {
112845
- if (listeners2[i2].fn !== fn || once3 && !listeners2[i2].once || context && listeners2[i2].context !== context) {
112846
- events2.push(listeners2[i2]);
112688
+ for (var i2 = 0, events2 = [], length2 = listeners.length; i2 < length2; i2++) {
112689
+ if (listeners[i2].fn !== fn || once && !listeners[i2].once || context && listeners[i2].context !== context) {
112690
+ events2.push(listeners[i2]);
112847
112691
  }
112848
112692
  }
112849
112693
  if (events2.length)
@@ -112853,7 +112697,7 @@ createCommonjsModule(function(module2) {
112853
112697
  }
112854
112698
  return this;
112855
112699
  };
112856
- EventEmitter2.prototype.removeAllListeners = function removeAllListeners2(event) {
112700
+ EventEmitter2.prototype.removeAllListeners = function removeAllListeners(event) {
112857
112701
  var evt;
112858
112702
  if (event) {
112859
112703
  evt = prefix ? prefix + event : event;
@@ -117336,7 +117180,7 @@ var blosc_codec = function() {
117336
117180
  b += Ga[z[a2++]];
117337
117181
  return b;
117338
117182
  }
117339
- var Q2 = {}, R2 = {}, S = {};
117183
+ var Q2 = {}, R = {}, S = {};
117340
117184
  function Ha(a2) {
117341
117185
  if (void 0 === a2)
117342
117186
  return "_unknown";
@@ -117381,8 +117225,8 @@ var blosc_codec = function() {
117381
117225
  });
117382
117226
  var e2 = Array(a2.length), g2 = [], k = 0;
117383
117227
  a2.forEach(function(h, l2) {
117384
- R2.hasOwnProperty(h) ? e2[l2] = R2[h] : (g2.push(h), Q2.hasOwnProperty(h) || (Q2[h] = []), Q2[h].push(function() {
117385
- e2[l2] = R2[h];
117228
+ R.hasOwnProperty(h) ? e2[l2] = R[h] : (g2.push(h), Q2.hasOwnProperty(h) || (Q2[h] = []), Q2[h].push(function() {
117229
+ e2[l2] = R[h];
117386
117230
  ++k;
117387
117231
  k === g2.length && c(e2);
117388
117232
  }));
@@ -117395,12 +117239,12 @@ var blosc_codec = function() {
117395
117239
  throw new TypeError("registerType registeredInstance requires argPackAdvance");
117396
117240
  var d = b.name;
117397
117241
  a2 || T('type "' + d + '" must have a positive integer typeid pointer');
117398
- if (R2.hasOwnProperty(a2)) {
117242
+ if (R.hasOwnProperty(a2)) {
117399
117243
  if (c.U)
117400
117244
  return;
117401
117245
  T("Cannot register type '" + d + "' twice");
117402
117246
  }
117403
- R2[a2] = b;
117247
+ R[a2] = b;
117404
117248
  delete S[a2];
117405
117249
  Q2.hasOwnProperty(a2) && (b = Q2[a2], delete Q2[a2], b.forEach(function(e2) {
117406
117250
  e2();
@@ -117513,7 +117357,7 @@ var blosc_codec = function() {
117513
117357
  }
117514
117358
  function eb(a2, b) {
117515
117359
  function c(g2) {
117516
- e2[g2] || R2[g2] || (S[g2] ? S[g2].forEach(c) : (d.push(g2), e2[g2] = true));
117360
+ e2[g2] || R[g2] || (S[g2] ? S[g2].forEach(c) : (d.push(g2), e2[g2] = true));
117517
117361
  }
117518
117362
  var d = [], e2 = {};
117519
117363
  b.forEach(c);
@@ -117801,7 +117645,7 @@ var blosc_codec = function() {
117801
117645
  }, n: Qa, x: function(a2) {
117802
117646
  4 < a2 && (V[a2].P += 1);
117803
117647
  }, C: function(a2, b) {
117804
- var c = R2[a2];
117648
+ var c = R[a2];
117805
117649
  void 0 === c && T("_emval_take_value has unknown type " + cb(a2));
117806
117650
  a2 = c.readValueFromPointer(b);
117807
117651
  return Ra(a2);
@@ -123474,6 +123318,258 @@ function max(values2, valueof) {
123474
123318
  }
123475
123319
  return max2;
123476
123320
  }
123321
+ var loglevel = { exports: {} };
123322
+ (function(module2) {
123323
+ (function(root2, definition) {
123324
+ if (module2.exports) {
123325
+ module2.exports = definition();
123326
+ } else {
123327
+ root2.log = definition();
123328
+ }
123329
+ })(commonjsGlobal, function() {
123330
+ var noop2 = function() {
123331
+ };
123332
+ var undefinedType = "undefined";
123333
+ var isIE = typeof window !== undefinedType && typeof window.navigator !== undefinedType && /Trident\/|MSIE /.test(window.navigator.userAgent);
123334
+ var logMethods = [
123335
+ "trace",
123336
+ "debug",
123337
+ "info",
123338
+ "warn",
123339
+ "error"
123340
+ ];
123341
+ var _loggersByName = {};
123342
+ var defaultLogger = null;
123343
+ function bindMethod(obj, methodName) {
123344
+ var method = obj[methodName];
123345
+ if (typeof method.bind === "function") {
123346
+ return method.bind(obj);
123347
+ } else {
123348
+ try {
123349
+ return Function.prototype.bind.call(method, obj);
123350
+ } catch (e2) {
123351
+ return function() {
123352
+ return Function.prototype.apply.apply(method, [obj, arguments]);
123353
+ };
123354
+ }
123355
+ }
123356
+ }
123357
+ function traceForIE() {
123358
+ if (console.log) {
123359
+ if (console.log.apply) {
123360
+ console.log.apply(console, arguments);
123361
+ } else {
123362
+ Function.prototype.apply.apply(console.log, [console, arguments]);
123363
+ }
123364
+ }
123365
+ if (console.trace)
123366
+ console.trace();
123367
+ }
123368
+ function realMethod(methodName) {
123369
+ if (methodName === "debug") {
123370
+ methodName = "log";
123371
+ }
123372
+ if (typeof console === undefinedType) {
123373
+ return false;
123374
+ } else if (methodName === "trace" && isIE) {
123375
+ return traceForIE;
123376
+ } else if (console[methodName] !== void 0) {
123377
+ return bindMethod(console, methodName);
123378
+ } else if (console.log !== void 0) {
123379
+ return bindMethod(console, "log");
123380
+ } else {
123381
+ return noop2;
123382
+ }
123383
+ }
123384
+ function replaceLoggingMethods() {
123385
+ var level = this.getLevel();
123386
+ for (var i2 = 0; i2 < logMethods.length; i2++) {
123387
+ var methodName = logMethods[i2];
123388
+ this[methodName] = i2 < level ? noop2 : this.methodFactory(methodName, level, this.name);
123389
+ }
123390
+ this.log = this.debug;
123391
+ if (typeof console === undefinedType && level < this.levels.SILENT) {
123392
+ return "No console available for logging";
123393
+ }
123394
+ }
123395
+ function enableLoggingWhenConsoleArrives(methodName) {
123396
+ return function() {
123397
+ if (typeof console !== undefinedType) {
123398
+ replaceLoggingMethods.call(this);
123399
+ this[methodName].apply(this, arguments);
123400
+ }
123401
+ };
123402
+ }
123403
+ function defaultMethodFactory(methodName, _level, _loggerName) {
123404
+ return realMethod(methodName) || enableLoggingWhenConsoleArrives.apply(this, arguments);
123405
+ }
123406
+ function Logger(name2, factory) {
123407
+ var self2 = this;
123408
+ var inheritedLevel;
123409
+ var defaultLevel;
123410
+ var userLevel;
123411
+ var storageKey = "loglevel";
123412
+ if (typeof name2 === "string") {
123413
+ storageKey += ":" + name2;
123414
+ } else if (typeof name2 === "symbol") {
123415
+ storageKey = void 0;
123416
+ }
123417
+ function persistLevelIfPossible(levelNum) {
123418
+ var levelName = (logMethods[levelNum] || "silent").toUpperCase();
123419
+ if (typeof window === undefinedType || !storageKey)
123420
+ return;
123421
+ try {
123422
+ window.localStorage[storageKey] = levelName;
123423
+ return;
123424
+ } catch (ignore) {
123425
+ }
123426
+ try {
123427
+ window.document.cookie = encodeURIComponent(storageKey) + "=" + levelName + ";";
123428
+ } catch (ignore) {
123429
+ }
123430
+ }
123431
+ function getPersistedLevel() {
123432
+ var storedLevel;
123433
+ if (typeof window === undefinedType || !storageKey)
123434
+ return;
123435
+ try {
123436
+ storedLevel = window.localStorage[storageKey];
123437
+ } catch (ignore) {
123438
+ }
123439
+ if (typeof storedLevel === undefinedType) {
123440
+ try {
123441
+ var cookie = window.document.cookie;
123442
+ var cookieName = encodeURIComponent(storageKey);
123443
+ var location = cookie.indexOf(cookieName + "=");
123444
+ if (location !== -1) {
123445
+ storedLevel = /^([^;]+)/.exec(
123446
+ cookie.slice(location + cookieName.length + 1)
123447
+ )[1];
123448
+ }
123449
+ } catch (ignore) {
123450
+ }
123451
+ }
123452
+ if (self2.levels[storedLevel] === void 0) {
123453
+ storedLevel = void 0;
123454
+ }
123455
+ return storedLevel;
123456
+ }
123457
+ function clearPersistedLevel() {
123458
+ if (typeof window === undefinedType || !storageKey)
123459
+ return;
123460
+ try {
123461
+ window.localStorage.removeItem(storageKey);
123462
+ } catch (ignore) {
123463
+ }
123464
+ try {
123465
+ window.document.cookie = encodeURIComponent(storageKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
123466
+ } catch (ignore) {
123467
+ }
123468
+ }
123469
+ function normalizeLevel(input) {
123470
+ var level = input;
123471
+ if (typeof level === "string" && self2.levels[level.toUpperCase()] !== void 0) {
123472
+ level = self2.levels[level.toUpperCase()];
123473
+ }
123474
+ if (typeof level === "number" && level >= 0 && level <= self2.levels.SILENT) {
123475
+ return level;
123476
+ } else {
123477
+ throw new TypeError("log.setLevel() called with invalid level: " + input);
123478
+ }
123479
+ }
123480
+ self2.name = name2;
123481
+ self2.levels = {
123482
+ "TRACE": 0,
123483
+ "DEBUG": 1,
123484
+ "INFO": 2,
123485
+ "WARN": 3,
123486
+ "ERROR": 4,
123487
+ "SILENT": 5
123488
+ };
123489
+ self2.methodFactory = factory || defaultMethodFactory;
123490
+ self2.getLevel = function() {
123491
+ if (userLevel != null) {
123492
+ return userLevel;
123493
+ } else if (defaultLevel != null) {
123494
+ return defaultLevel;
123495
+ } else {
123496
+ return inheritedLevel;
123497
+ }
123498
+ };
123499
+ self2.setLevel = function(level, persist) {
123500
+ userLevel = normalizeLevel(level);
123501
+ if (persist !== false) {
123502
+ persistLevelIfPossible(userLevel);
123503
+ }
123504
+ return replaceLoggingMethods.call(self2);
123505
+ };
123506
+ self2.setDefaultLevel = function(level) {
123507
+ defaultLevel = normalizeLevel(level);
123508
+ if (!getPersistedLevel()) {
123509
+ self2.setLevel(level, false);
123510
+ }
123511
+ };
123512
+ self2.resetLevel = function() {
123513
+ userLevel = null;
123514
+ clearPersistedLevel();
123515
+ replaceLoggingMethods.call(self2);
123516
+ };
123517
+ self2.enableAll = function(persist) {
123518
+ self2.setLevel(self2.levels.TRACE, persist);
123519
+ };
123520
+ self2.disableAll = function(persist) {
123521
+ self2.setLevel(self2.levels.SILENT, persist);
123522
+ };
123523
+ self2.rebuild = function() {
123524
+ if (defaultLogger !== self2) {
123525
+ inheritedLevel = normalizeLevel(defaultLogger.getLevel());
123526
+ }
123527
+ replaceLoggingMethods.call(self2);
123528
+ if (defaultLogger === self2) {
123529
+ for (var childName in _loggersByName) {
123530
+ _loggersByName[childName].rebuild();
123531
+ }
123532
+ }
123533
+ };
123534
+ inheritedLevel = normalizeLevel(
123535
+ defaultLogger ? defaultLogger.getLevel() : "WARN"
123536
+ );
123537
+ var initialLevel = getPersistedLevel();
123538
+ if (initialLevel != null) {
123539
+ userLevel = normalizeLevel(initialLevel);
123540
+ }
123541
+ replaceLoggingMethods.call(self2);
123542
+ }
123543
+ defaultLogger = new Logger();
123544
+ defaultLogger.getLogger = function getLogger(name2) {
123545
+ if (typeof name2 !== "symbol" && typeof name2 !== "string" || name2 === "") {
123546
+ throw new TypeError("You must supply a name when creating a logger.");
123547
+ }
123548
+ var logger = _loggersByName[name2];
123549
+ if (!logger) {
123550
+ logger = _loggersByName[name2] = new Logger(
123551
+ name2,
123552
+ defaultLogger.methodFactory
123553
+ );
123554
+ }
123555
+ return logger;
123556
+ };
123557
+ var _log = typeof window !== undefinedType ? window.log : void 0;
123558
+ defaultLogger.noConflict = function() {
123559
+ if (typeof window !== undefinedType && window.log === defaultLogger) {
123560
+ window.log = _log;
123561
+ }
123562
+ return defaultLogger;
123563
+ };
123564
+ defaultLogger.getLoggers = function getLoggers2() {
123565
+ return _loggersByName;
123566
+ };
123567
+ defaultLogger["default"] = defaultLogger;
123568
+ return defaultLogger;
123569
+ });
123570
+ })(loglevel);
123571
+ var loglevelExports = loglevel.exports;
123572
+ const log = /* @__PURE__ */ getDefaultExportFromCjs(loglevelExports);
123477
123573
  function normalize(arr) {
123478
123574
  const [min, max2] = extent(arr);
123479
123575
  const ratio = 255 / (max2 - min);
@@ -123497,10 +123593,10 @@ function multiSetsToTextureData(multiFeatureValues, multiMatrixObsIndex, setColo
123497
123593
  const valueTexHeight = Math.max(2, Math.ceil(totalValuesLength / texSize));
123498
123594
  const colorTexHeight = Math.max(2, Math.ceil(totalColorsLength / texSize));
123499
123595
  if (valueTexHeight > texSize) {
123500
- console.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
123596
+ log.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
123501
123597
  }
123502
123598
  if (colorTexHeight > texSize) {
123503
- console.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
123599
+ log.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
123504
123600
  }
123505
123601
  const totalData = new Uint8Array(texSize * valueTexHeight);
123506
123602
  const totalColors = new Uint8Array(texSize * colorTexHeight);
@@ -123924,6 +124020,7 @@ const deck = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty
123924
124020
  COORDINATE_SYSTEM,
123925
124021
  ContourLayer,
123926
124022
  DeckGL: DeckGL$1,
124023
+ LineLayer,
123927
124024
  OrbitView,
123928
124025
  OrthographicView,
123929
124026
  PolygonLayer,