@vitessce/image-utils 3.4.5 → 3.4.7

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.
@@ -86,8 +86,8 @@ function baseTrim(string) {
86
86
  return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
87
87
  }
88
88
  function isObject$5(value) {
89
- var type = typeof value;
90
- return value != null && (type == "object" || type == "function");
89
+ var type2 = typeof value;
90
+ return value != null && (type2 == "object" || type2 == "function");
91
91
  }
92
92
  var NAN$1 = 0 / 0;
93
93
  var reIsBadHex$1 = /^[-+]0x[0-9a-f]+$/i;
@@ -183,9 +183,9 @@ const WeakMap$2 = WeakMap$1;
183
183
  var MAX_SAFE_INTEGER$2 = 9007199254740991;
184
184
  var reIsUint = /^(?:0|[1-9]\d*)$/;
185
185
  function isIndex$1(value, length2) {
186
- var type = typeof value;
186
+ var type2 = typeof value;
187
187
  length2 = length2 == null ? MAX_SAFE_INTEGER$2 : length2;
188
- return !!length2 && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length2);
188
+ return !!length2 && (type2 == "number" || type2 != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length2);
189
189
  }
190
190
  function eq(value, other) {
191
191
  return value === other || value !== value && other !== other;
@@ -201,8 +201,8 @@ function isIterateeCall(value, index2, object2) {
201
201
  if (!isObject$5(object2)) {
202
202
  return false;
203
203
  }
204
- var type = typeof index2;
205
- if (type == "number" ? isArrayLike(object2) && isIndex$1(index2, object2.length) : type == "string" && index2 in object2) {
204
+ var type2 = typeof index2;
205
+ if (type2 == "number" ? isArrayLike(object2) && isIndex$1(index2, object2.length) : type2 == "string" && index2 in object2) {
206
206
  return eq(object2[index2], value);
207
207
  }
208
208
  return false;
@@ -430,8 +430,8 @@ function mapCacheClear() {
430
430
  };
431
431
  }
432
432
  function isKeyable(value) {
433
- var type = typeof value;
434
- return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
433
+ var type2 = typeof value;
434
+ return type2 == "string" || type2 == "number" || type2 == "symbol" || type2 == "boolean" ? value !== "__proto__" : value === null;
435
435
  }
436
436
  function getMapData(map2, key) {
437
437
  var data = map2.__data__;
@@ -834,8 +834,8 @@ function createRange(fromRight) {
834
834
  return baseRange(start, end, step, fromRight);
835
835
  };
836
836
  }
837
- var range$3 = createRange();
838
- const range$4 = range$3;
837
+ var range$4 = createRange();
838
+ const range$5 = range$4;
839
839
  function assert$c(condition, message) {
840
840
  if (!condition) {
841
841
  throw new Error("math.gl assertion ".concat(message));
@@ -3779,7 +3779,32 @@ class Quaternion extends MathArray {
3779
3779
  return this.multiplyRight(a2);
3780
3780
  }
3781
3781
  }
3782
- function _defineProperty$f(obj, key, value) {
3782
+ function _typeof$v(obj) {
3783
+ "@babel/helpers - typeof";
3784
+ return _typeof$v = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
3785
+ return typeof obj2;
3786
+ } : function(obj2) {
3787
+ return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
3788
+ }, _typeof$v(obj);
3789
+ }
3790
+ function _toPrimitive(input, hint2) {
3791
+ if (_typeof$v(input) !== "object" || input === null)
3792
+ return input;
3793
+ var prim = input[Symbol.toPrimitive];
3794
+ if (prim !== void 0) {
3795
+ var res = prim.call(input, hint2 || "default");
3796
+ if (_typeof$v(res) !== "object")
3797
+ return res;
3798
+ throw new TypeError("@@toPrimitive must return a primitive value.");
3799
+ }
3800
+ return (hint2 === "string" ? String : Number)(input);
3801
+ }
3802
+ function _toPropertyKey(arg) {
3803
+ var key = _toPrimitive(arg, "string");
3804
+ return _typeof$v(key) === "symbol" ? key : String(key);
3805
+ }
3806
+ function _defineProperty$e(obj, key, value) {
3807
+ key = _toPropertyKey(key);
3783
3808
  if (key in obj) {
3784
3809
  Object.defineProperty(obj, key, {
3785
3810
  value,
@@ -3804,10 +3829,10 @@ class SphericalCoordinates {
3804
3829
  altitude,
3805
3830
  radiusScale = EARTH_RADIUS_METERS
3806
3831
  } = {}) {
3807
- _defineProperty$f(this, "phi", void 0);
3808
- _defineProperty$f(this, "theta", void 0);
3809
- _defineProperty$f(this, "radius", void 0);
3810
- _defineProperty$f(this, "radiusScale", void 0);
3832
+ _defineProperty$e(this, "phi", void 0);
3833
+ _defineProperty$e(this, "theta", void 0);
3834
+ _defineProperty$e(this, "radius", void 0);
3835
+ _defineProperty$e(this, "radiusScale", void 0);
3811
3836
  this.phi = phi;
3812
3837
  this.theta = theta;
3813
3838
  this.radius = radius || altitude || 1;
@@ -4341,8 +4366,8 @@ class Pose {
4341
4366
  position,
4342
4367
  orientation
4343
4368
  } = {}) {
4344
- _defineProperty$f(this, "position", void 0);
4345
- _defineProperty$f(this, "orientation", void 0);
4369
+ _defineProperty$e(this, "position", void 0);
4370
+ _defineProperty$e(this, "orientation", void 0);
4346
4371
  if (Array.isArray(position) && position.length === 3) {
4347
4372
  this.position = new Vector3(position);
4348
4373
  } else {
@@ -4681,8 +4706,8 @@ function typeOf(x2) {
4681
4706
  return t;
4682
4707
  }
4683
4708
  function clone$7(x2) {
4684
- var type = typeof x2;
4685
- if (type === "number" || type === "string" || type === "boolean" || x2 === null || x2 === void 0) {
4709
+ var type2 = typeof x2;
4710
+ if (type2 === "number" || type2 === "string" || type2 === "boolean" || x2 === null || x2 === void 0) {
4686
4711
  return x2;
4687
4712
  }
4688
4713
  if (typeof x2.clone === "function") {
@@ -4886,11 +4911,11 @@ var typedFunction$1 = { exports: {} };
4886
4911
  });
4887
4912
  throw new TypeError('Unknown type "' + typeName + '"' + (hint2 ? '. Did you mean "' + hint2.name + '"?' : ""));
4888
4913
  }
4889
- function findTypeIndex(type) {
4890
- if (type === anyType) {
4914
+ function findTypeIndex(type2) {
4915
+ if (type2 === anyType) {
4891
4916
  return 999;
4892
4917
  }
4893
- return typed2.types.indexOf(type);
4918
+ return typed2.types.indexOf(type2);
4894
4919
  }
4895
4920
  function findTypeName(value) {
4896
4921
  var entry = findInArray(typed2.types, function(entry2) {
@@ -4923,18 +4948,18 @@ var typedFunction$1 = { exports: {} };
4923
4948
  }
4924
4949
  throw new TypeError("Signature not found (signature: " + (fn.name || "unnamed") + "(" + arr.join(", ") + "))");
4925
4950
  }
4926
- function convert(value, type) {
4951
+ function convert(value, type2) {
4927
4952
  var from = findTypeName(value);
4928
- if (type === from) {
4953
+ if (type2 === from) {
4929
4954
  return value;
4930
4955
  }
4931
4956
  for (var i2 = 0; i2 < typed2.conversions.length; i2++) {
4932
4957
  var conversion = typed2.conversions[i2];
4933
- if (conversion.from === from && conversion.to === type) {
4958
+ if (conversion.from === from && conversion.to === type2) {
4934
4959
  return conversion.convert(value);
4935
4960
  }
4936
4961
  }
4937
- throw new Error("Cannot convert from " + from + " to " + type);
4962
+ throw new Error("Cannot convert from " + from + " to " + type2);
4938
4963
  }
4939
4964
  function stringifyParams(params) {
4940
4965
  return params.map(function(param) {
@@ -4948,21 +4973,21 @@ var typedFunction$1 = { exports: {} };
4948
4973
  var typeNames = types.split("|").map(trim).filter(notEmpty).filter(notIgnore);
4949
4974
  var matchingConversions = filterConversions(conversions, typeNames);
4950
4975
  var exactTypes = typeNames.map(function(typeName) {
4951
- var type = findTypeByName(typeName);
4976
+ var type2 = findTypeByName(typeName);
4952
4977
  return {
4953
4978
  name: typeName,
4954
- typeIndex: findTypeIndex(type),
4955
- test: type.test,
4979
+ typeIndex: findTypeIndex(type2),
4980
+ test: type2.test,
4956
4981
  conversion: null,
4957
4982
  conversionIndex: -1
4958
4983
  };
4959
4984
  });
4960
4985
  var convertibleTypes = matchingConversions.map(function(conversion) {
4961
- var type = findTypeByName(conversion.from);
4986
+ var type2 = findTypeByName(conversion.from);
4962
4987
  return {
4963
4988
  name: conversion.from,
4964
- typeIndex: findTypeIndex(type),
4965
- test: type.test,
4989
+ typeIndex: findTypeIndex(type2),
4990
+ test: type2.test,
4966
4991
  conversion,
4967
4992
  conversionIndex: conversions.indexOf(conversion)
4968
4993
  };
@@ -4996,8 +5021,8 @@ var typedFunction$1 = { exports: {} };
4996
5021
  return param ? param.restParam : false;
4997
5022
  }
4998
5023
  function hasConversions(param) {
4999
- return param.types.some(function(type) {
5000
- return type.conversion != null;
5024
+ return param.types.some(function(type2) {
5025
+ return type2.conversion != null;
5001
5026
  });
5002
5027
  }
5003
5028
  function compileTest(param) {
@@ -5012,8 +5037,8 @@ var typedFunction$1 = { exports: {} };
5012
5037
  return test0(x2) || test1(x2);
5013
5038
  };
5014
5039
  } else {
5015
- var tests = param.types.map(function(type) {
5016
- return findTypeByName(type.name).test;
5040
+ var tests = param.types.map(function(type2) {
5041
+ return findTypeByName(type2.name).test;
5017
5042
  });
5018
5043
  return function or(x2) {
5019
5044
  for (var i2 = 0; i2 < tests.length; i2++) {
@@ -5084,11 +5109,11 @@ var typedFunction$1 = { exports: {} };
5084
5109
  var types = param ? excludeConversions ? param.types.filter(isExactType) : param.types : [];
5085
5110
  return types.map(getTypeName);
5086
5111
  }
5087
- function getTypeName(type) {
5088
- return type.name;
5112
+ function getTypeName(type2) {
5113
+ return type2.name;
5089
5114
  }
5090
- function isExactType(type) {
5091
- return type.conversion === null || type.conversion === void 0;
5115
+ function isExactType(type2) {
5116
+ return type2.conversion === null || type2.conversion === void 0;
5092
5117
  }
5093
5118
  function mergeExpectedParams(signatures, index2) {
5094
5119
  var typeNames = uniq(flatMap(signatures, function(signature) {
@@ -5256,10 +5281,10 @@ var typedFunction$1 = { exports: {} };
5256
5281
  var test0, test1, conversion0, conversion1;
5257
5282
  var tests = [];
5258
5283
  var conversions = [];
5259
- param.types.forEach(function(type) {
5260
- if (type.conversion) {
5261
- tests.push(findTypeByName(type.conversion.from).test);
5262
- conversions.push(type.conversion.convert);
5284
+ param.types.forEach(function(type2) {
5285
+ if (type2.conversion) {
5286
+ tests.push(findTypeByName(type2.conversion.from).test);
5287
+ conversions.push(type2.conversion.convert);
5263
5288
  }
5264
5289
  });
5265
5290
  switch (conversions.length) {
@@ -5322,17 +5347,17 @@ var typedFunction$1 = { exports: {} };
5322
5347
  var exactTypes = filteredTypes.filter(isExactType);
5323
5348
  typeGroups = exactTypes.length < filteredTypes.length ? [exactTypes, filteredTypes] : [filteredTypes];
5324
5349
  } else {
5325
- typeGroups = filteredTypes.map(function(type) {
5326
- return [type];
5350
+ typeGroups = filteredTypes.map(function(type2) {
5351
+ return [type2];
5327
5352
  });
5328
5353
  }
5329
5354
  return flatMap(typeGroups, function(typeGroup) {
5330
5355
  return _splitParams(params2, index2 + 1, types.concat([typeGroup]));
5331
5356
  });
5332
5357
  } else {
5333
- var splittedParams = types.map(function(type, typeIndex) {
5358
+ var splittedParams = types.map(function(type2, typeIndex) {
5334
5359
  return {
5335
- types: type,
5360
+ types: type2,
5336
5361
  restParam: typeIndex === params2.length - 1 && hasRestParam(params2)
5337
5362
  };
5338
5363
  });
@@ -5590,19 +5615,19 @@ var typedFunction$1 = { exports: {} };
5590
5615
  typed2.createError = createError;
5591
5616
  typed2.convert = convert;
5592
5617
  typed2.find = find;
5593
- typed2.addType = function(type, beforeObjectTest) {
5594
- if (!type || typeof type.name !== "string" || typeof type.test !== "function") {
5618
+ typed2.addType = function(type2, beforeObjectTest) {
5619
+ if (!type2 || typeof type2.name !== "string" || typeof type2.test !== "function") {
5595
5620
  throw new TypeError("Object with properties {name: string, test: function} expected");
5596
5621
  }
5597
5622
  if (beforeObjectTest !== false) {
5598
5623
  for (var i2 = 0; i2 < typed2.types.length; i2++) {
5599
5624
  if (typed2.types[i2].name === "Object") {
5600
- typed2.types.splice(i2, 0, type);
5625
+ typed2.types.splice(i2, 0, type2);
5601
5626
  return;
5602
5627
  }
5603
5628
  }
5604
5629
  }
5605
- typed2.types.push(type);
5630
+ typed2.types.push(type2);
5606
5631
  };
5607
5632
  typed2.addConversion = function(conversion) {
5608
5633
  if (!conversion || typeof conversion.from !== "string" || typeof conversion.to !== "string" || typeof conversion.convert !== "function") {
@@ -6303,7 +6328,7 @@ function flatten$1(array) {
6303
6328
  return flat;
6304
6329
  }
6305
6330
  function getArrayDataType(array, typeOf2) {
6306
- var type;
6331
+ var type2;
6307
6332
  var length2 = 0;
6308
6333
  for (var i2 = 0; i2 < array.length; i2++) {
6309
6334
  var item = array[i2];
@@ -6315,14 +6340,14 @@ function getArrayDataType(array, typeOf2) {
6315
6340
  return void 0;
6316
6341
  }
6317
6342
  var itemType = isArray2 ? getArrayDataType(item, typeOf2) : typeOf2(item);
6318
- if (type === void 0) {
6319
- type = itemType;
6320
- } else if (type !== itemType) {
6343
+ if (type2 === void 0) {
6344
+ type2 = itemType;
6345
+ } else if (type2 !== itemType) {
6321
6346
  return "mixed";
6322
6347
  } else
6323
6348
  ;
6324
6349
  }
6325
- return type;
6350
+ return type2;
6326
6351
  }
6327
6352
  function factory(name2, dependencies2, create2, meta2) {
6328
6353
  function assertAndCreate(scope) {
@@ -8929,7 +8954,7 @@ function clone$6(obj) {
8929
8954
  Decimal2.log = log$5;
8930
8955
  Decimal2.log10 = log10;
8931
8956
  Decimal2.log2 = log2$1;
8932
- Decimal2.max = max$1;
8957
+ Decimal2.max = max$2;
8933
8958
  Decimal2.min = min;
8934
8959
  Decimal2.mod = mod$2;
8935
8960
  Decimal2.mul = mul;
@@ -9000,7 +9025,7 @@ function log2$1(x2) {
9000
9025
  function log10(x2) {
9001
9026
  return new this(x2).log(10);
9002
9027
  }
9003
- function max$1() {
9028
+ function max$2() {
9004
9029
  return maxOrMin(this, arguments, "lt");
9005
9030
  }
9006
9031
  function min() {
@@ -14579,7 +14604,7 @@ function _objectSpread$5(target) {
14579
14604
  var source = arguments[i2] != null ? arguments[i2] : {};
14580
14605
  if (i2 % 2) {
14581
14606
  ownKeys$5(Object(source), true).forEach(function(key) {
14582
- _defineProperty$f(target, key, source[key]);
14607
+ _defineProperty$e(target, key, source[key]);
14583
14608
  });
14584
14609
  } else if (Object.getOwnPropertyDescriptors) {
14585
14610
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
@@ -15315,7 +15340,7 @@ function _objectSpread$4(target) {
15315
15340
  var source = arguments[i2] != null ? arguments[i2] : {};
15316
15341
  if (i2 % 2) {
15317
15342
  ownKeys$4(Object(source), true).forEach(function(key) {
15318
- _defineProperty$f(target, key, source[key]);
15343
+ _defineProperty$e(target, key, source[key]);
15319
15344
  });
15320
15345
  } else if (Object.getOwnPropertyDescriptors) {
15321
15346
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
@@ -18356,11 +18381,11 @@ var createUnitClass = /* @__PURE__ */ factory(name$d, dependencies$6, (_ref) =>
18356
18381
  return x2;
18357
18382
  }
18358
18383
  };
18359
- Unit2._getNumberConverter = function(type) {
18360
- if (!Unit2.typeConverters[type]) {
18361
- throw new TypeError('Unsupported type "' + type + '"');
18384
+ Unit2._getNumberConverter = function(type2) {
18385
+ if (!Unit2.typeConverters[type2]) {
18386
+ throw new TypeError('Unsupported type "' + type2 + '"');
18362
18387
  }
18363
- return Unit2.typeConverters[type];
18388
+ return Unit2.typeConverters[type2];
18364
18389
  };
18365
18390
  for (var _key2 in UNITS2) {
18366
18391
  if (hasOwnProperty$2(UNITS2, _key2)) {
@@ -19853,44 +19878,6 @@ const isWorker = typeof importScripts === "function";
19853
19878
  const isMobile = typeof window !== "undefined" && typeof window.orientation !== "undefined";
19854
19879
  const matches = typeof process !== "undefined" && process.version && /v([0-9]*)/.exec(process.version);
19855
19880
  matches && parseFloat(matches[1]) || 0;
19856
- function _typeof$v(obj) {
19857
- "@babel/helpers - typeof";
19858
- return _typeof$v = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
19859
- return typeof obj2;
19860
- } : function(obj2) {
19861
- return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
19862
- }, _typeof$v(obj);
19863
- }
19864
- function _toPrimitive(input, hint2) {
19865
- if (_typeof$v(input) !== "object" || input === null)
19866
- return input;
19867
- var prim = input[Symbol.toPrimitive];
19868
- if (prim !== void 0) {
19869
- var res = prim.call(input, hint2 || "default");
19870
- if (_typeof$v(res) !== "object")
19871
- return res;
19872
- throw new TypeError("@@toPrimitive must return a primitive value.");
19873
- }
19874
- return (hint2 === "string" ? String : Number)(input);
19875
- }
19876
- function _toPropertyKey(arg) {
19877
- var key = _toPrimitive(arg, "string");
19878
- return _typeof$v(key) === "symbol" ? key : String(key);
19879
- }
19880
- function _defineProperty$e(obj, key, value) {
19881
- key = _toPropertyKey(key);
19882
- if (key in obj) {
19883
- Object.defineProperty(obj, key, {
19884
- value,
19885
- enumerable: true,
19886
- configurable: true,
19887
- writable: true
19888
- });
19889
- } else {
19890
- obj[key] = value;
19891
- }
19892
- return obj;
19893
- }
19894
19881
  class WorkerJob {
19895
19882
  constructor(jobName, workerThread) {
19896
19883
  _defineProperty$e(this, "name", void 0);
@@ -19908,10 +19895,10 @@ class WorkerJob {
19908
19895
  this._reject = reject;
19909
19896
  });
19910
19897
  }
19911
- postMessage(type, payload) {
19898
+ postMessage(type2, payload) {
19912
19899
  this.workerThread.postMessage({
19913
19900
  source: "loaders.gl",
19914
- type,
19901
+ type: type2,
19915
19902
  payload
19916
19903
  });
19917
19904
  }
@@ -20143,7 +20130,7 @@ class WorkerPool {
20143
20130
  this.onDebug = props.onDebug;
20144
20131
  }
20145
20132
  }
20146
- async startJob(name2, onMessage2 = (job, type, data) => job.done(data), onError = (job, error2) => job.error(error2)) {
20133
+ async startJob(name2, onMessage2 = (job, type2, data) => job.done(data), onError = (job, error2) => job.error(error2)) {
20147
20134
  const startPromise = new Promise((onStart) => {
20148
20135
  this.jobQueue.push({
20149
20136
  name: name2,
@@ -20406,8 +20393,8 @@ async function parseWithWorker(loader, data, options, context, parseOnMainThread
20406
20393
  const result = await job.result;
20407
20394
  return await result.result;
20408
20395
  }
20409
- async function onMessage(parseOnMainThread, job, type, payload) {
20410
- switch (type) {
20396
+ async function onMessage(parseOnMainThread, job, type2, payload) {
20397
+ switch (type2) {
20411
20398
  case "done":
20412
20399
  job.done(payload);
20413
20400
  break;
@@ -20435,7 +20422,7 @@ async function onMessage(parseOnMainThread, job, type, payload) {
20435
20422
  }
20436
20423
  break;
20437
20424
  default:
20438
- console.warn("parse-with-worker unknown message ".concat(type));
20425
+ console.warn("parse-with-worker unknown message ".concat(type2));
20439
20426
  }
20440
20427
  }
20441
20428
  function getFirstCharacters$1(data, length2 = 5) {
@@ -20582,7 +20569,7 @@ function getHiResTimestamp$1() {
20582
20569
  return timestamp;
20583
20570
  }
20584
20571
  class Stat {
20585
- constructor(name2, type) {
20572
+ constructor(name2, type2) {
20586
20573
  _defineProperty$e(this, "name", void 0);
20587
20574
  _defineProperty$e(this, "type", void 0);
20588
20575
  _defineProperty$e(this, "sampleSize", 1);
@@ -20598,7 +20585,7 @@ class Stat {
20598
20585
  _defineProperty$e(this, "_startTime", 0);
20599
20586
  _defineProperty$e(this, "_timerPending", false);
20600
20587
  this.name = name2;
20601
- this.type = type;
20588
+ this.type = type2;
20602
20589
  this.reset();
20603
20590
  }
20604
20591
  setSampleSize(samples) {
@@ -20701,10 +20688,10 @@ class Stats {
20701
20688
  Object.seal(this);
20702
20689
  }
20703
20690
  get(name2) {
20704
- let type = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "count";
20691
+ let type2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "count";
20705
20692
  return this._getOrCreate({
20706
20693
  name: name2,
20707
- type
20694
+ type: type2
20708
20695
  });
20709
20696
  }
20710
20697
  get size() {
@@ -20743,13 +20730,13 @@ class Stats {
20743
20730
  }
20744
20731
  const {
20745
20732
  name: name2,
20746
- type
20733
+ type: type2
20747
20734
  } = stat;
20748
20735
  if (!this.stats[name2]) {
20749
20736
  if (stat instanceof Stat) {
20750
20737
  this.stats[name2] = stat;
20751
20738
  } else {
20752
- this.stats[name2] = new Stat(name2, type);
20739
+ this.stats[name2] = new Stat(name2, type2);
20753
20740
  }
20754
20741
  }
20755
20742
  return this.stats[name2];
@@ -20767,12 +20754,12 @@ const DEFAULT_PROPS$3 = {
20767
20754
  };
20768
20755
  class RequestScheduler {
20769
20756
  constructor(props = {}) {
20770
- _defineProperty$f(this, "props", void 0);
20771
- _defineProperty$f(this, "stats", void 0);
20772
- _defineProperty$f(this, "activeRequestCount", 0);
20773
- _defineProperty$f(this, "requestQueue", []);
20774
- _defineProperty$f(this, "requestMap", /* @__PURE__ */ new Map());
20775
- _defineProperty$f(this, "deferredUpdate", null);
20757
+ _defineProperty$e(this, "props", void 0);
20758
+ _defineProperty$e(this, "stats", void 0);
20759
+ _defineProperty$e(this, "activeRequestCount", 0);
20760
+ _defineProperty$e(this, "requestQueue", []);
20761
+ _defineProperty$e(this, "requestMap", /* @__PURE__ */ new Map());
20762
+ _defineProperty$e(this, "deferredUpdate", null);
20776
20763
  this.props = {
20777
20764
  ...DEFAULT_PROPS$3,
20778
20765
  ...props
@@ -20980,10 +20967,10 @@ async function makeResponse(resource) {
20980
20967
  }
20981
20968
  const {
20982
20969
  url,
20983
- type
20970
+ type: type2
20984
20971
  } = getResourceUrlAndType(resource);
20985
- if (type) {
20986
- headers["content-type"] = type;
20972
+ if (type2) {
20973
+ headers["content-type"] = type2;
20987
20974
  }
20988
20975
  const initialDataUrl = await getInitialDataUrl(resource);
20989
20976
  if (initialDataUrl) {
@@ -21120,9 +21107,9 @@ function getBrowser(mockUserAgent) {
21120
21107
  }
21121
21108
  return "Unknown";
21122
21109
  }
21123
- function getStorage(type) {
21110
+ function getStorage(type2) {
21124
21111
  try {
21125
- const storage = window[type];
21112
+ const storage = window[type2];
21126
21113
  const x2 = "__storage_test__";
21127
21114
  storage.setItem(x2, x2);
21128
21115
  storage.removeItem(x2);
@@ -21134,11 +21121,11 @@ function getStorage(type) {
21134
21121
  class LocalStorage {
21135
21122
  constructor(id) {
21136
21123
  let defaultSettings = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
21137
- let type = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "sessionStorage";
21124
+ let type2 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "sessionStorage";
21138
21125
  _defineProperty$e(this, "storage", void 0);
21139
21126
  _defineProperty$e(this, "id", void 0);
21140
21127
  _defineProperty$e(this, "config", {});
21141
- this.storage = getStorage(type);
21128
+ this.storage = getStorage(type2);
21142
21129
  this.id = id;
21143
21130
  this.config = {};
21144
21131
  Object.assign(this.config, defaultSettings);
@@ -21624,7 +21611,7 @@ class NullLog {
21624
21611
  }
21625
21612
  class ConsoleLog {
21626
21613
  constructor() {
21627
- _defineProperty$f(this, "console", void 0);
21614
+ _defineProperty$e(this, "console", void 0);
21628
21615
  this.console = console;
21629
21616
  }
21630
21617
  log(...args) {
@@ -21888,7 +21875,7 @@ function selectLoaderSync(data, loaders = [], options, context) {
21888
21875
  function selectLoaderInternal(data, loaders, options, context) {
21889
21876
  const {
21890
21877
  url,
21891
- type
21878
+ type: type2
21892
21879
  } = getResourceUrlAndType(data);
21893
21880
  const testUrl = url || (context === null || context === void 0 ? void 0 : context.url);
21894
21881
  let loader = null;
@@ -21899,12 +21886,12 @@ function selectLoaderInternal(data, loaders, options, context) {
21899
21886
  }
21900
21887
  loader = loader || findLoaderByUrl(loaders, testUrl);
21901
21888
  reason = reason || (loader ? "matched url ".concat(testUrl) : "");
21902
- loader = loader || findLoaderByMIMEType(loaders, type);
21903
- reason = reason || (loader ? "matched MIME type ".concat(type) : "");
21889
+ loader = loader || findLoaderByMIMEType(loaders, type2);
21890
+ reason = reason || (loader ? "matched MIME type ".concat(type2) : "");
21904
21891
  loader = loader || findLoaderByInitialBytes(loaders, data);
21905
21892
  reason = reason || (loader ? "matched initial data ".concat(getFirstCharacters(data)) : "");
21906
21893
  loader = loader || findLoaderByMIMEType(loaders, options === null || options === void 0 ? void 0 : options.fallbackMimeType);
21907
- reason = reason || (loader ? "matched fallback MIME type ".concat(type) : "");
21894
+ reason = reason || (loader ? "matched fallback MIME type ".concat(type2) : "");
21908
21895
  if (reason) {
21909
21896
  var _loader;
21910
21897
  log$4.log(1, "selectLoader selected ".concat((_loader = loader) === null || _loader === void 0 ? void 0 : _loader.name, ": ").concat(reason, "."));
@@ -21922,11 +21909,11 @@ function validHTTPResponse(data) {
21922
21909
  function getNoValidLoaderMessage(data) {
21923
21910
  const {
21924
21911
  url,
21925
- type
21912
+ type: type2
21926
21913
  } = getResourceUrlAndType(data);
21927
21914
  let message = "No valid loader found (";
21928
21915
  message += url ? "".concat(filename(url), ", ") : "no url provided, ";
21929
- message += "MIME type: ".concat(type ? '"'.concat(type, '"') : "not provided", ", ");
21916
+ message += "MIME type: ".concat(type2 ? '"'.concat(type2, '"') : "not provided", ", ");
21930
21917
  const firstCharacters = data ? getFirstCharacters(data) : "";
21931
21918
  message += firstCharacters ? ' first bytes: "'.concat(firstCharacters, '"') : "first bytes: not available";
21932
21919
  message += ")";
@@ -22234,7 +22221,7 @@ async function parseWithLoader(loader, data, options, context) {
22234
22221
  redirected,
22235
22222
  status,
22236
22223
  statusText,
22237
- type,
22224
+ type: type2,
22238
22225
  url
22239
22226
  } = response;
22240
22227
  const headers = Object.fromEntries(response.headers.entries());
@@ -22244,7 +22231,7 @@ async function parseWithLoader(loader, data, options, context) {
22244
22231
  redirected,
22245
22232
  status,
22246
22233
  statusText,
22247
- type,
22234
+ type: type2,
22248
22235
  url
22249
22236
  };
22250
22237
  }
@@ -22288,8 +22275,8 @@ const IMAGE_SUPPORTED = typeof Image !== "undefined";
22288
22275
  const IMAGE_BITMAP_SUPPORTED = typeof ImageBitmap !== "undefined";
22289
22276
  const NODE_IMAGE_SUPPORTED = Boolean(_parseImageNode);
22290
22277
  const DATA_SUPPORTED = isBrowser$3 ? true : NODE_IMAGE_SUPPORTED;
22291
- function isImageTypeSupported(type) {
22292
- switch (type) {
22278
+ function isImageTypeSupported(type2) {
22279
+ switch (type2) {
22293
22280
  case "auto":
22294
22281
  return IMAGE_BITMAP_SUPPORTED || IMAGE_SUPPORTED || DATA_SUPPORTED;
22295
22282
  case "imagebitmap":
@@ -22299,7 +22286,7 @@ function isImageTypeSupported(type) {
22299
22286
  case "data":
22300
22287
  return DATA_SUPPORTED;
22301
22288
  default:
22302
- throw new Error("@loaders.gl/images: image ".concat(type, " not supported in this environment"));
22289
+ throw new Error("@loaders.gl/images: image ".concat(type2, " not supported in this environment"));
22303
22290
  }
22304
22291
  }
22305
22292
  function getDefaultImageType() {
@@ -22368,8 +22355,8 @@ function getBlobOrSVGDataUrl(arrayBuffer2, url) {
22368
22355
  } catch (error2) {
22369
22356
  throw new Error(error2.message);
22370
22357
  }
22371
- const src2 = "data:image/svg+xml;base64,".concat(btoa(xmlText));
22372
- return src2;
22358
+ const src = "data:image/svg+xml;base64,".concat(btoa(xmlText));
22359
+ return src;
22373
22360
  }
22374
22361
  return getBlob(arrayBuffer2, url);
22375
22362
  }
@@ -22568,14 +22555,14 @@ async function parseImage(arrayBuffer2, options, context) {
22568
22555
  }
22569
22556
  return image;
22570
22557
  }
22571
- function getLoadableImageType(type) {
22572
- switch (type) {
22558
+ function getLoadableImageType(type2) {
22559
+ switch (type2) {
22573
22560
  case "auto":
22574
22561
  case "data":
22575
22562
  return getDefaultImageType();
22576
22563
  default:
22577
- isImageTypeSupported(type);
22578
- return type;
22564
+ isImageTypeSupported(type2);
22565
+ return type2;
22579
22566
  }
22580
22567
  }
22581
22568
  const EXTENSIONS$1 = ["png", "jpg", "jpeg", "gif", "webp", "bmp", "ico", "svg"];
@@ -22646,16 +22633,16 @@ const LOG_LEVEL_UPDATE_DETAIL = 3;
22646
22633
  const LOG_LEVEL_INFO = 4;
22647
22634
  const LOG_LEVEL_DRAW = 2;
22648
22635
  const getLoggers = (log3) => ({
22649
- "layer.changeFlag": (layer, key, flags2) => {
22650
- log3.log(LOG_LEVEL_UPDATE_DETAIL, "".concat(layer.id, " ").concat(key, ": "), flags2[key])();
22636
+ "layer.changeFlag": (layer, key, flags3) => {
22637
+ log3.log(LOG_LEVEL_UPDATE_DETAIL, "".concat(layer.id, " ").concat(key, ": "), flags3[key])();
22651
22638
  },
22652
22639
  "layer.initialize": (layer) => {
22653
22640
  log3.log(LOG_LEVEL_MAJOR_UPDATE, "Initializing ".concat(layer))();
22654
22641
  },
22655
22642
  "layer.update": (layer, needsUpdate) => {
22656
22643
  if (needsUpdate) {
22657
- const flags2 = layer.getChangeFlags();
22658
- log3.log(LOG_LEVEL_MINOR_UPDATE, "Updating ".concat(layer, " because: ").concat(Object.keys(flags2).filter((key) => flags2[key]).join(", ")))();
22644
+ const flags3 = layer.getChangeFlags();
22645
+ log3.log(LOG_LEVEL_MINOR_UPDATE, "Updating ".concat(layer, " because: ").concat(Object.keys(flags3).filter((key) => flags3[key]).join(", ")))();
22659
22646
  } else {
22660
22647
  log3.log(LOG_LEVEL_INFO, "".concat(layer, " does not need update"))();
22661
22648
  }
@@ -22946,13 +22933,13 @@ const OESVertexArrayObject = function OESVertexArrayObject2(gl) {
22946
22933
  return original.getVertexAttrib.apply(this, arguments);
22947
22934
  }
22948
22935
  };
22949
- gl.vertexAttribPointer = function vertexAttribPointer(indx, size2, type, normalized, stride, offset) {
22936
+ gl.vertexAttribPointer = function vertexAttribPointer(indx, size2, type2, normalized, stride, offset) {
22950
22937
  const vao = self2.currentVertexArrayObject;
22951
22938
  vao.maxAttrib = Math.max(vao.maxAttrib, indx);
22952
22939
  const attrib = vao.attribs[indx];
22953
22940
  attrib.buffer = self2.currentArrayBuffer;
22954
22941
  attrib.size = size2;
22955
- attrib.type = type;
22942
+ attrib.type = type2;
22956
22943
  attrib.normalized = normalized;
22957
22944
  attrib.stride = stride;
22958
22945
  attrib.offset = offset;
@@ -23565,8 +23552,8 @@ const GL_PARAMETER_SETTERS = {
23565
23552
  },
23566
23553
  stencilFunc: (gl, args) => {
23567
23554
  args = isArray$1(args) && args.length === 3 ? [...args, ...args] : args;
23568
- const [func, ref, mask, backFunc, backRef, backMask] = args;
23569
- gl.stencilFuncSeparate(1028, func, ref, mask);
23555
+ const [func, ref2, mask, backFunc, backRef, backMask] = args;
23556
+ gl.stencilFuncSeparate(1028, func, ref2, mask);
23570
23557
  gl.stencilFuncSeparate(1029, backFunc, backRef, backMask);
23571
23558
  },
23572
23559
  stencilOp: (gl, args) => {
@@ -23633,10 +23620,10 @@ const GL_HOOKED_SETTERS = {
23633
23620
  [32777]: modeRGB,
23634
23621
  [34877]: modeAlpha
23635
23622
  }),
23636
- blendFunc: (update, src2, dst) => update({
23637
- [32969]: src2,
23623
+ blendFunc: (update, src, dst) => update({
23624
+ [32969]: src,
23638
23625
  [32968]: dst,
23639
- [32971]: src2,
23626
+ [32971]: src,
23640
23627
  [32970]: dst
23641
23628
  }),
23642
23629
  blendFuncSeparate: (update, srcRGB, dstRGB, srcAlpha, dstAlpha) => update({
@@ -23693,17 +23680,17 @@ const GL_HOOKED_SETTERS = {
23693
23680
  stencilMaskSeparate: (update, face, mask) => update({
23694
23681
  [face === 1028 ? 2968 : 36005]: mask
23695
23682
  }),
23696
- stencilFunc: (update, func, ref, mask) => update({
23683
+ stencilFunc: (update, func, ref2, mask) => update({
23697
23684
  [2962]: func,
23698
- [2967]: ref,
23685
+ [2967]: ref2,
23699
23686
  [2963]: mask,
23700
23687
  [34816]: func,
23701
- [36003]: ref,
23688
+ [36003]: ref2,
23702
23689
  [36004]: mask
23703
23690
  }),
23704
- stencilFuncSeparate: (update, face, func, ref, mask) => update({
23691
+ stencilFuncSeparate: (update, face, func, ref2, mask) => update({
23705
23692
  [face === 1028 ? 2962 : 34816]: func,
23706
- [face === 1028 ? 2967 : 36003]: ref,
23693
+ [face === 1028 ? 2967 : 36003]: ref2,
23707
23694
  [face === 1028 ? 2963 : 36004]: mask
23708
23695
  }),
23709
23696
  stencilOp: (update, fail, zfail, zpass) => update({
@@ -24513,8 +24500,8 @@ let Resource$1 = class Resource {
24513
24500
  };
24514
24501
  const ERR_TYPE_DEDUCTION = "Failed to deduce GL constant from typed array";
24515
24502
  function getGLTypeFromTypedArray(arrayOrType) {
24516
- const type = ArrayBuffer.isView(arrayOrType) ? arrayOrType.constructor : arrayOrType;
24517
- switch (type) {
24503
+ const type2 = ArrayBuffer.isView(arrayOrType) ? arrayOrType.constructor : arrayOrType;
24504
+ switch (type2) {
24518
24505
  case Float32Array:
24519
24506
  return 5126;
24520
24507
  case Uint16Array:
@@ -24953,10 +24940,10 @@ let Buffer$1 = class Buffer2 extends Resource$1 {
24953
24940
  this.debugData = data.slice(0, DEBUG_DATA_LENGTH);
24954
24941
  this.bytesUsed = byteLength;
24955
24942
  this._trackAllocatedMemory(byteLength);
24956
- const type = getGLTypeFromTypedArray(data);
24957
- assert$7(type);
24943
+ const type2 = getGLTypeFromTypedArray(data);
24944
+ assert$7(type2);
24958
24945
  this.setAccessor(new Accessor(this.accessor, {
24959
- type
24946
+ type: type2
24960
24947
  }));
24961
24948
  return this;
24962
24949
  }
@@ -25193,7 +25180,7 @@ class Texture extends Resource$1 {
25193
25180
  width,
25194
25181
  height,
25195
25182
  dataFormat,
25196
- type,
25183
+ type: type2,
25197
25184
  compressed = false,
25198
25185
  mipmaps = true
25199
25186
  } = props;
@@ -25205,10 +25192,10 @@ class Texture extends Resource$1 {
25205
25192
  height,
25206
25193
  compressed,
25207
25194
  dataFormat,
25208
- type
25195
+ type: type2
25209
25196
  } = this._deduceParameters({
25210
25197
  format: format2,
25211
- type,
25198
+ type: type2,
25212
25199
  dataFormat,
25213
25200
  compressed,
25214
25201
  data,
@@ -25219,7 +25206,7 @@ class Texture extends Resource$1 {
25219
25206
  this.height = height;
25220
25207
  this.depth = depth;
25221
25208
  this.format = format2;
25222
- this.type = type;
25209
+ this.type = type2;
25223
25210
  this.dataFormat = dataFormat;
25224
25211
  this.border = border;
25225
25212
  this.textureUnit = textureUnit;
@@ -25239,7 +25226,7 @@ class Texture extends Resource$1 {
25239
25226
  height,
25240
25227
  depth,
25241
25228
  format: format2,
25242
- type,
25229
+ type: type2,
25243
25230
  dataFormat,
25244
25231
  border,
25245
25232
  mipmaps,
@@ -25328,7 +25315,7 @@ class Texture extends Resource$1 {
25328
25315
  } = options;
25329
25316
  let {
25330
25317
  data = null,
25331
- type = this.type,
25318
+ type: type2 = this.type,
25332
25319
  width = this.width,
25333
25320
  height = this.height,
25334
25321
  dataFormat = this.dataFormat,
@@ -25338,14 +25325,14 @@ class Texture extends Resource$1 {
25338
25325
  data = pixels;
25339
25326
  }
25340
25327
  ({
25341
- type,
25328
+ type: type2,
25342
25329
  dataFormat,
25343
25330
  compressed,
25344
25331
  width,
25345
25332
  height
25346
25333
  } = this._deduceParameters({
25347
25334
  format: format2,
25348
- type,
25335
+ type: type2,
25349
25336
  dataFormat,
25350
25337
  compressed,
25351
25338
  data,
@@ -25369,22 +25356,22 @@ class Texture extends Resource$1 {
25369
25356
  withParameters(this.gl, parameters, () => {
25370
25357
  switch (dataType) {
25371
25358
  case "null":
25372
- gl.texImage2D(target, level, format2, width, height, border, dataFormat, type, data);
25359
+ gl.texImage2D(target, level, format2, width, height, border, dataFormat, type2, data);
25373
25360
  break;
25374
25361
  case "typed-array":
25375
- gl.texImage2D(target, level, format2, width, height, border, dataFormat, type, data, offset);
25362
+ gl.texImage2D(target, level, format2, width, height, border, dataFormat, type2, data, offset);
25376
25363
  break;
25377
25364
  case "buffer":
25378
25365
  gl2 = assertWebGL2Context(gl);
25379
25366
  gl2.bindBuffer(35052, data.handle || data);
25380
- gl2.texImage2D(target, level, format2, width, height, border, dataFormat, type, offset);
25367
+ gl2.texImage2D(target, level, format2, width, height, border, dataFormat, type2, offset);
25381
25368
  gl2.bindBuffer(35052, null);
25382
25369
  break;
25383
25370
  case "browser-object":
25384
25371
  if (isWebGL2$1(gl)) {
25385
- gl.texImage2D(target, level, format2, width, height, border, dataFormat, type, data);
25372
+ gl.texImage2D(target, level, format2, width, height, border, dataFormat, type2, data);
25386
25373
  } else {
25387
- gl.texImage2D(target, level, format2, dataFormat, type, data);
25374
+ gl.texImage2D(target, level, format2, dataFormat, type2, data);
25388
25375
  }
25389
25376
  break;
25390
25377
  case "compressed":
@@ -25420,7 +25407,7 @@ class Texture extends Resource$1 {
25420
25407
  height = this.height,
25421
25408
  level = 0,
25422
25409
  format: format2 = this.format,
25423
- type = this.type,
25410
+ type: type2 = this.type,
25424
25411
  dataFormat = this.dataFormat,
25425
25412
  compressed = false,
25426
25413
  offset = 0,
@@ -25428,14 +25415,14 @@ class Texture extends Resource$1 {
25428
25415
  parameters = {}
25429
25416
  } = _ref2;
25430
25417
  ({
25431
- type,
25418
+ type: type2,
25432
25419
  dataFormat,
25433
25420
  compressed,
25434
25421
  width,
25435
25422
  height
25436
25423
  } = this._deduceParameters({
25437
25424
  format: format2,
25438
- type,
25425
+ type: type2,
25439
25426
  dataFormat,
25440
25427
  compressed,
25441
25428
  data,
@@ -25460,19 +25447,19 @@ class Texture extends Resource$1 {
25460
25447
  if (compressed) {
25461
25448
  this.gl.compressedTexSubImage2D(target, level, x2, y2, width, height, format2, data);
25462
25449
  } else if (data === null) {
25463
- this.gl.texSubImage2D(target, level, x2, y2, width, height, dataFormat, type, null);
25450
+ this.gl.texSubImage2D(target, level, x2, y2, width, height, dataFormat, type2, null);
25464
25451
  } else if (ArrayBuffer.isView(data)) {
25465
- this.gl.texSubImage2D(target, level, x2, y2, width, height, dataFormat, type, data, offset);
25452
+ this.gl.texSubImage2D(target, level, x2, y2, width, height, dataFormat, type2, data, offset);
25466
25453
  } else if (data instanceof WebGLBuffer) {
25467
25454
  const gl2 = assertWebGL2Context(this.gl);
25468
25455
  gl2.bindBuffer(35052, data);
25469
- gl2.texSubImage2D(target, level, x2, y2, width, height, dataFormat, type, offset);
25456
+ gl2.texSubImage2D(target, level, x2, y2, width, height, dataFormat, type2, offset);
25470
25457
  gl2.bindBuffer(35052, null);
25471
25458
  } else if (isWebGL2$1(this.gl)) {
25472
25459
  const gl2 = assertWebGL2Context(this.gl);
25473
- gl2.texSubImage2D(target, level, x2, y2, width, height, dataFormat, type, data);
25460
+ gl2.texSubImage2D(target, level, x2, y2, width, height, dataFormat, type2, data);
25474
25461
  } else {
25475
- this.gl.texSubImage2D(target, level, x2, y2, dataFormat, type, data);
25462
+ this.gl.texSubImage2D(target, level, x2, y2, dataFormat, type2, data);
25476
25463
  }
25477
25464
  });
25478
25465
  this.gl.bindTexture(this.target, null);
@@ -25557,12 +25544,12 @@ class Texture extends Resource$1 {
25557
25544
  width,
25558
25545
  height,
25559
25546
  dataFormat,
25560
- type,
25547
+ type: type2,
25561
25548
  compressed
25562
25549
  } = opts;
25563
25550
  const textureFormat = TEXTURE_FORMATS[format2];
25564
25551
  dataFormat = dataFormat || textureFormat && textureFormat.dataFormat;
25565
- type = type || textureFormat && textureFormat.types[0];
25552
+ type2 = type2 || textureFormat && textureFormat.types[0];
25566
25553
  compressed = compressed || textureFormat && textureFormat.compressed;
25567
25554
  ({
25568
25555
  width,
@@ -25570,7 +25557,7 @@ class Texture extends Resource$1 {
25570
25557
  } = this._deduceImageSize(data, width, height));
25571
25558
  return {
25572
25559
  dataFormat,
25573
- type,
25560
+ type: type2,
25574
25561
  compressed,
25575
25562
  width,
25576
25563
  height,
@@ -25796,7 +25783,7 @@ class TextureCube extends Texture {
25796
25783
  data,
25797
25784
  border = 0,
25798
25785
  format: format2 = 6408,
25799
- type = 5121
25786
+ type: type2 = 5121
25800
25787
  } = _ref2;
25801
25788
  const {
25802
25789
  gl
@@ -25813,9 +25800,9 @@ class TextureCube extends Texture {
25813
25800
  }
25814
25801
  resolvedFaces[index2].forEach((image, lodLevel) => {
25815
25802
  if (width && height) {
25816
- gl.texImage2D(face, lodLevel, format2, width, height, border, format2, type, image);
25803
+ gl.texImage2D(face, lodLevel, format2, width, height, border, format2, type2, image);
25817
25804
  } else {
25818
- gl.texImage2D(face, lodLevel, format2, format2, type, image);
25805
+ gl.texImage2D(face, lodLevel, format2, format2, type2, image);
25819
25806
  }
25820
25807
  });
25821
25808
  });
@@ -25830,7 +25817,7 @@ class TextureCube extends Texture {
25830
25817
  data,
25831
25818
  border = 0,
25832
25819
  format: format2 = 6408,
25833
- type = 5121
25820
+ type: type2 = 5121
25834
25821
  } = options;
25835
25822
  const {
25836
25823
  gl
@@ -25844,9 +25831,9 @@ class TextureCube extends Texture {
25844
25831
  pixels: resolvedImageData
25845
25832
  })));
25846
25833
  } else if (this.width || this.height) {
25847
- gl.texImage2D(face, 0, format2, width, height, border, format2, type, imageData);
25834
+ gl.texImage2D(face, 0, format2, width, height, border, format2, type2, imageData);
25848
25835
  } else {
25849
- gl.texImage2D(face, 0, format2, format2, type, imageData);
25836
+ gl.texImage2D(face, 0, format2, format2, type2, imageData);
25850
25837
  }
25851
25838
  return this;
25852
25839
  }
@@ -25881,7 +25868,7 @@ class Texture3D extends Texture {
25881
25868
  depth = 1,
25882
25869
  border = 0,
25883
25870
  format: format2,
25884
- type = 5121,
25871
+ type: type2 = 5121,
25885
25872
  offset = 0,
25886
25873
  data,
25887
25874
  parameters = {}
@@ -25890,11 +25877,11 @@ class Texture3D extends Texture {
25890
25877
  this.gl.bindTexture(this.target, this.handle);
25891
25878
  withParameters(this.gl, parameters, () => {
25892
25879
  if (ArrayBuffer.isView(data)) {
25893
- this.gl.texImage3D(this.target, level, dataFormat, width, height, depth, border, format2, type, data);
25880
+ this.gl.texImage3D(this.target, level, dataFormat, width, height, depth, border, format2, type2, data);
25894
25881
  }
25895
25882
  if (data instanceof Buffer$1) {
25896
25883
  this.gl.bindBuffer(35052, data.handle);
25897
- this.gl.texImage3D(this.target, level, dataFormat, width, height, depth, border, format2, type, offset);
25884
+ this.gl.texImage3D(this.target, level, dataFormat, width, height, depth, border, format2, type2, offset);
25898
25885
  }
25899
25886
  });
25900
25887
  if (data && data.byteLength) {
@@ -26266,8 +26253,8 @@ function glFormatToComponents(format2) {
26266
26253
  return 0;
26267
26254
  }
26268
26255
  }
26269
- function glTypeToBytes(type) {
26270
- switch (type) {
26256
+ function glTypeToBytes(type2) {
26257
+ switch (type2) {
26271
26258
  case 5121:
26272
26259
  return 1;
26273
26260
  case 33635:
@@ -26481,12 +26468,12 @@ function getFramebuffer$1(source) {
26481
26468
  deleteFramebuffer: false
26482
26469
  };
26483
26470
  }
26484
- function getPixelArray(pixelArray, type, format2, width, height) {
26471
+ function getPixelArray(pixelArray, type2, format2, width, height) {
26485
26472
  if (pixelArray) {
26486
26473
  return pixelArray;
26487
26474
  }
26488
- type = type || 5121;
26489
- const ArrayType = getTypedArrayFromGLType(type, {
26475
+ type2 = type2 || 5121;
26476
+ const ArrayType = getTypedArrayFromGLType(type2, {
26490
26477
  clamped: false
26491
26478
  });
26492
26479
  const components = glFormatToComponents(format2);
@@ -27151,7 +27138,7 @@ function cloneTextureFrom(refTexture, overrides) {
27151
27138
  width,
27152
27139
  height,
27153
27140
  format: format2,
27154
- type,
27141
+ type: type2,
27155
27142
  dataFormat,
27156
27143
  border,
27157
27144
  mipmaps
@@ -27160,7 +27147,7 @@ function cloneTextureFrom(refTexture, overrides) {
27160
27147
  width,
27161
27148
  height,
27162
27149
  format: format2,
27163
- type,
27150
+ type: type2,
27164
27151
  dataFormat,
27165
27152
  border,
27166
27153
  mipmaps
@@ -27192,8 +27179,8 @@ function getShaderName$1(shader) {
27192
27179
  }
27193
27180
  const GL_FRAGMENT_SHADER = 35632;
27194
27181
  const GL_VERTEX_SHADER = 35633;
27195
- function getShaderTypeName(type) {
27196
- switch (type) {
27182
+ function getShaderTypeName(type2) {
27183
+ switch (type2) {
27197
27184
  case GL_FRAGMENT_SHADER:
27198
27185
  return "fragment";
27199
27186
  case GL_VERTEX_SHADER:
@@ -27202,11 +27189,11 @@ function getShaderTypeName(type) {
27202
27189
  return "unknown type";
27203
27190
  }
27204
27191
  }
27205
- function parseGLSLCompilerError(errLog, src2, shaderType, shaderName) {
27192
+ function parseGLSLCompilerError(errLog, src, shaderType, shaderName) {
27206
27193
  const errorStrings = errLog.split(/\r?\n/);
27207
27194
  const errors = {};
27208
27195
  const warnings = {};
27209
- const name2 = shaderName || getShaderName$1(src2) || "(unnamed)";
27196
+ const name2 = shaderName || getShaderName$1(src) || "(unnamed)";
27210
27197
  const shaderDescription = "".concat(getShaderTypeName(shaderType), " shader ").concat(name2);
27211
27198
  for (let i2 = 0; i2 < errorStrings.length; i2++) {
27212
27199
  const errorString = errorStrings[i2];
@@ -27214,18 +27201,18 @@ function parseGLSLCompilerError(errLog, src2, shaderType, shaderName) {
27214
27201
  continue;
27215
27202
  }
27216
27203
  const segments = errorString.split(":");
27217
- const type = segments[0];
27204
+ const type2 = segments[0];
27218
27205
  const line = parseInt(segments[2], 10);
27219
27206
  if (isNaN(line)) {
27220
27207
  throw new Error("GLSL compilation error in ".concat(shaderDescription, ": ").concat(errLog));
27221
27208
  }
27222
- if (type !== "WARNING") {
27209
+ if (type2 !== "WARNING") {
27223
27210
  errors[line] = errorString;
27224
27211
  } else {
27225
27212
  warnings[line] = errorString;
27226
27213
  }
27227
27214
  }
27228
- const lines = addLineNumbers(src2);
27215
+ const lines = addLineNumbers(src);
27229
27216
  return {
27230
27217
  shaderName: shaderDescription,
27231
27218
  errors: formatErrors(errors, lines),
@@ -27243,10 +27230,10 @@ function formatErrors(errors, lines) {
27243
27230
  if (errors[i2 + 1]) {
27244
27231
  const error2 = errors[i2 + 1];
27245
27232
  const segments = error2.split(":", 3);
27246
- const type = segments[0];
27233
+ const type2 = segments[0];
27247
27234
  const column = parseInt(segments[1], 10) || 0;
27248
27235
  const err2 = error2.substring(segments.join(":").length + 1).trim();
27249
- message += padLeft("^^^ ".concat(type, ": ").concat(err2, "\n\n"), column);
27236
+ message += padLeft("^^^ ".concat(type2, ": ").concat(err2, "\n\n"), column);
27250
27237
  }
27251
27238
  }
27252
27239
  return message;
@@ -27697,24 +27684,24 @@ function decomposeCompositeGLType(compositeGLType) {
27697
27684
  if (!typeAndSize) {
27698
27685
  return null;
27699
27686
  }
27700
- const [type, components] = typeAndSize;
27687
+ const [type2, components] = typeAndSize;
27701
27688
  return {
27702
- type,
27689
+ type: type2,
27703
27690
  components
27704
27691
  };
27705
27692
  }
27706
- function getCompositeGLType(type, components) {
27707
- switch (type) {
27693
+ function getCompositeGLType(type2, components) {
27694
+ switch (type2) {
27708
27695
  case GL_BYTE:
27709
27696
  case GL_UNSIGNED_BYTE:
27710
27697
  case GL_SHORT:
27711
27698
  case GL_UNSIGNED_SHORT:
27712
- type = GL_FLOAT;
27699
+ type2 = GL_FLOAT;
27713
27700
  break;
27714
27701
  }
27715
27702
  for (const glType in COMPOSITE_GL_TYPES) {
27716
27703
  const [compType, compComponents, name2] = COMPOSITE_GL_TYPES[glType];
27717
- if (compType === type && compComponents === components) {
27704
+ if (compType === type2 && compComponents === components) {
27718
27705
  return {
27719
27706
  glType,
27720
27707
  name: name2
@@ -27773,12 +27760,12 @@ class ProgramConfiguration {
27773
27760
  for (let index2 = 0; index2 < count2; index2++) {
27774
27761
  const {
27775
27762
  name: name2,
27776
- type,
27763
+ type: type2,
27777
27764
  size: size2
27778
27765
  } = gl.getActiveAttrib(program.handle, index2);
27779
27766
  const location = gl.getAttribLocation(program.handle, name2);
27780
27767
  if (location >= 0) {
27781
- this._addAttribute(location, name2, type, size2);
27768
+ this._addAttribute(location, name2, type2, size2);
27782
27769
  }
27783
27770
  }
27784
27771
  this.attributeInfos.sort((a2, b) => a2.location - b.location);
@@ -27794,20 +27781,20 @@ class ProgramConfiguration {
27794
27781
  for (let location = 0; location < count2; location++) {
27795
27782
  const {
27796
27783
  name: name2,
27797
- type,
27784
+ type: type2,
27798
27785
  size: size2
27799
27786
  } = gl.getTransformFeedbackVarying(program.handle, location);
27800
- this._addVarying(location, name2, type, size2);
27787
+ this._addVarying(location, name2, type2, size2);
27801
27788
  }
27802
27789
  this.varyingInfos.sort((a2, b) => a2.location - b.location);
27803
27790
  }
27804
27791
  _addAttribute(location, name2, compositeType, size2) {
27805
27792
  const {
27806
- type,
27793
+ type: type2,
27807
27794
  components
27808
27795
  } = decomposeCompositeGLType(compositeType);
27809
27796
  const accessor = {
27810
- type,
27797
+ type: type2,
27811
27798
  size: size2 * components
27812
27799
  };
27813
27800
  this._inferProperties(location, name2, accessor);
@@ -27827,11 +27814,11 @@ class ProgramConfiguration {
27827
27814
  }
27828
27815
  _addVarying(location, name2, compositeType, size2) {
27829
27816
  const {
27830
- type,
27817
+ type: type2,
27831
27818
  components
27832
27819
  } = decomposeCompositeGLType(compositeType);
27833
27820
  const accessor = new Accessor({
27834
- type,
27821
+ type: type2,
27835
27822
  size: size2 * components
27836
27823
  });
27837
27824
  const varying = {
@@ -28033,8 +28020,8 @@ class Program extends Resource$1 {
28033
28020
  const shaderHandles = this.gl.getAttachedShaders(handle);
28034
28021
  const opts = {};
28035
28022
  for (const shaderHandle of shaderHandles) {
28036
- const type = this.gl.getShaderParameter(this.handle, 35663);
28037
- switch (type) {
28023
+ const type2 = this.gl.getShaderParameter(this.handle, 35663);
28024
+ switch (type2) {
28038
28025
  case 35633:
28039
28026
  opts.vs = new VertexShader({
28040
28027
  handle: shaderHandle
@@ -28509,7 +28496,7 @@ class VertexArrayObject extends Resource$1 {
28509
28496
  }
28510
28497
  const {
28511
28498
  size: size2,
28512
- type,
28499
+ type: type2,
28513
28500
  stride,
28514
28501
  offset,
28515
28502
  normalized,
@@ -28525,9 +28512,9 @@ class VertexArrayObject extends Resource$1 {
28525
28512
  gl.bindBuffer(34962, buffer2.handle);
28526
28513
  if (integer) {
28527
28514
  assert$7(isWebGL2$1(gl));
28528
- gl2.vertexAttribIPointer(location, size2, type, stride, offset);
28515
+ gl2.vertexAttribIPointer(location, size2, type2, stride, offset);
28529
28516
  } else {
28530
- gl.vertexAttribPointer(location, size2, type, normalized, stride, offset);
28517
+ gl.vertexAttribPointer(location, size2, type2, normalized, stride, offset);
28531
28518
  }
28532
28519
  gl.enableVertexAttribArray(location);
28533
28520
  gl2.vertexAttribDivisor(location, divisor || 0);
@@ -28856,9 +28843,9 @@ class VertexArray {
28856
28843
  const accessor = Accessor.resolve(accessInfo.accessor, currentAccessor, valueAccessor, appAccessor);
28857
28844
  const {
28858
28845
  size: size2,
28859
- type
28846
+ type: type2
28860
28847
  } = accessor;
28861
- assert$7(Number.isFinite(size2) && Number.isFinite(type));
28848
+ assert$7(Number.isFinite(size2) && Number.isFinite(type2));
28862
28849
  return {
28863
28850
  location,
28864
28851
  accessor
@@ -29159,7 +29146,7 @@ function getDebugTableRow(vertexArray, attribute, accessor, header) {
29159
29146
  "Format ": "N/A"
29160
29147
  };
29161
29148
  }
29162
- let type = "NOT PROVIDED";
29149
+ let type2 = "NOT PROVIDED";
29163
29150
  let size2 = 1;
29164
29151
  let verts = 0;
29165
29152
  let bytes = 0;
@@ -29167,10 +29154,10 @@ function getDebugTableRow(vertexArray, attribute, accessor, header) {
29167
29154
  let marker2;
29168
29155
  let value;
29169
29156
  if (accessor) {
29170
- type = accessor.type;
29157
+ type2 = accessor.type;
29171
29158
  size2 = accessor.size;
29172
- type = String(type).replace("Array", "");
29173
- isInteger2 = type.indexOf("nt") !== -1;
29159
+ type2 = String(type2).replace("Array", "");
29160
+ isInteger2 = type2.indexOf("nt") !== -1;
29174
29161
  }
29175
29162
  if (attribute instanceof Buffer$1) {
29176
29163
  const buffer2 = attribute;
@@ -29185,7 +29172,7 @@ function getDebugTableRow(vertexArray, attribute, accessor, header) {
29185
29172
  let format2;
29186
29173
  if (accessor) {
29187
29174
  const instanced = accessor.divisor > 0;
29188
- format2 = "".concat(instanced ? "I " : "P ", " ").concat(verts, " (x").concat(size2, "=").concat(bytes, " bytes ").concat(getKey(gl, type), ")");
29175
+ format2 = "".concat(instanced ? "I " : "P ", " ").concat(verts, " (x").concat(size2, "=").concat(bytes, " bytes ").concat(getKey(gl, type2), ")");
29189
29176
  } else {
29190
29177
  isInteger2 = true;
29191
29178
  format2 = "".concat(bytes, " bytes");
@@ -29200,22 +29187,22 @@ function getDebugTableRow(vertexArray, attribute, accessor, header) {
29200
29187
  }
29201
29188
  value = attribute;
29202
29189
  size2 = attribute.length;
29203
- type = String(attribute.constructor.name).replace("Array", "");
29204
- isInteger2 = type.indexOf("nt") !== -1;
29190
+ type2 = String(attribute.constructor.name).replace("Array", "");
29191
+ isInteger2 = type2.indexOf("nt") !== -1;
29205
29192
  return {
29206
29193
  [header]: "".concat(formatValue(value, {
29207
29194
  size: size2,
29208
29195
  isInteger: isInteger2
29209
29196
  }), " (constant)"),
29210
- "Format ": "".concat(size2, "x").concat(type, " (constant)")
29197
+ "Format ": "".concat(size2, "x").concat(type2, " (constant)")
29211
29198
  };
29212
29199
  }
29213
29200
  function getGLSLDeclaration$1(name2, accessor) {
29214
29201
  const {
29215
- type,
29202
+ type: type2,
29216
29203
  size: size2
29217
29204
  } = accessor;
29218
- const typeAndName = getCompositeGLType(type, size2);
29205
+ const typeAndName = getCompositeGLType(type2, size2);
29219
29206
  return typeAndName ? "".concat(name2, " (").concat(typeAndName.name, ")") : name2;
29220
29207
  }
29221
29208
  function getDebugTableForProgramConfiguration(config3) {
@@ -29241,10 +29228,10 @@ function getDebugTableForProgramConfiguration(config3) {
29241
29228
  }
29242
29229
  function getGLSLDeclaration(attributeInfo) {
29243
29230
  const {
29244
- type,
29231
+ type: type2,
29245
29232
  size: size2
29246
29233
  } = attributeInfo.accessor;
29247
- const typeAndName = getCompositeGLType(type, size2);
29234
+ const typeAndName = getCompositeGLType(type2, size2);
29248
29235
  if (typeAndName) {
29249
29236
  return "".concat(typeAndName.name, " ").concat(attributeInfo.name);
29250
29237
  }
@@ -29697,8 +29684,8 @@ function parsePropTypes$1(propDefs) {
29697
29684
  return propTypes;
29698
29685
  }
29699
29686
  function parsePropType$1(propDef) {
29700
- let type = getTypeOf$1(propDef);
29701
- if (type === "object") {
29687
+ let type2 = getTypeOf$1(propDef);
29688
+ if (type2 === "object") {
29702
29689
  if (!propDef) {
29703
29690
  return {
29704
29691
  type: "object",
@@ -29714,15 +29701,15 @@ function parsePropType$1(propDef) {
29714
29701
  value: propDef
29715
29702
  };
29716
29703
  }
29717
- type = getTypeOf$1(propDef.value);
29704
+ type2 = getTypeOf$1(propDef.value);
29718
29705
  return Object.assign({
29719
- type
29720
- }, propDef, TYPE_DEFINITIONS$1[type]);
29706
+ type: type2
29707
+ }, propDef, TYPE_DEFINITIONS$1[type2]);
29721
29708
  }
29722
29709
  return Object.assign({
29723
- type,
29710
+ type: type2,
29724
29711
  value: propDef
29725
- }, TYPE_DEFINITIONS$1[type]);
29712
+ }, TYPE_DEFINITIONS$1[type2]);
29726
29713
  }
29727
29714
  function getTypeOf$1(value) {
29728
29715
  if (Array.isArray(value) || ArrayBuffer.isView(value)) {
@@ -29760,9 +29747,9 @@ class ShaderModule {
29760
29747
  this.uniforms = parsePropTypes$1(uniforms);
29761
29748
  }
29762
29749
  }
29763
- getModuleSource(type) {
29750
+ getModuleSource(type2) {
29764
29751
  let moduleSource;
29765
- switch (type) {
29752
+ switch (type2) {
29766
29753
  case VERTEX_SHADER:
29767
29754
  moduleSource = this.vs || "";
29768
29755
  break;
@@ -30037,9 +30024,9 @@ const DECLARATION_INJECT_MARKER = "__LUMA_INJECT_DECLARATIONS__";
30037
30024
  const REGEX_START_OF_MAIN$1 = /void\s+main\s*\([^)]*\)\s*\{\n?/;
30038
30025
  const REGEX_END_OF_MAIN = /}\n?[^{}]*$/;
30039
30026
  const fragments = [];
30040
- function injectShader(source, type, inject2) {
30027
+ function injectShader(source, type2, inject2) {
30041
30028
  let injectStandardStubs = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;
30042
- const isVertex = type === VERTEX_SHADER$1;
30029
+ const isVertex = type2 === VERTEX_SHADER$1;
30043
30030
  for (const key in inject2) {
30044
30031
  const fragmentData = inject2[key];
30045
30032
  fragmentData.sort((a2, b) => a2.order - b.order);
@@ -30085,7 +30072,7 @@ function injectShader(source, type, inject2) {
30085
30072
  }
30086
30073
  source = source.replace(DECLARATION_INJECT_MARKER, "");
30087
30074
  if (injectStandardStubs) {
30088
- source = source.replace(/\}\s*$/, (match) => match + MODULE_INJECTORS[type]);
30075
+ source = source.replace(/\}\s*$/, (match) => match + MODULE_INJECTORS[type2]);
30089
30076
  }
30090
30077
  return source;
30091
30078
  }
@@ -30179,7 +30166,7 @@ function assembleShader(gl, _ref) {
30179
30166
  let {
30180
30167
  id,
30181
30168
  source,
30182
- type,
30169
+ type: type2,
30183
30170
  modules,
30184
30171
  defines: defines2 = {},
30185
30172
  hookFunctions = [],
@@ -30189,7 +30176,7 @@ function assembleShader(gl, _ref) {
30189
30176
  log: log3
30190
30177
  } = _ref;
30191
30178
  assert$6(typeof source === "string", "shader source must be a string");
30192
- const isVertex = type === VERTEX_SHADER$1;
30179
+ const isVertex = type2 === VERTEX_SHADER$1;
30193
30180
  const sourceLines = source.split("\n");
30194
30181
  let glslVersion = 100;
30195
30182
  let versionLine = "";
@@ -30209,9 +30196,9 @@ function assembleShader(gl, _ref) {
30209
30196
  let assembledSource = prologue ? "".concat(versionLine, "\n").concat(getShaderName({
30210
30197
  id,
30211
30198
  source,
30212
- type
30199
+ type: type2
30213
30200
  }), "\n").concat(getShaderType({
30214
- type
30201
+ type: type2
30215
30202
  }), "\n").concat(getPlatformShaderDefines(gl), "\n").concat(getVersionDefines(gl), "\n").concat(getApplicationDefines(allDefines), "\n").concat(isVertex ? "" : FRAGMENT_SHADER_PROLOGUE, "\n") : "".concat(versionLine, "\n");
30216
30203
  const hookFunctionMap = normalizeHookFunctions(hookFunctions);
30217
30204
  const hookInjections = {};
@@ -30243,9 +30230,9 @@ function assembleShader(gl, _ref) {
30243
30230
  if (log3) {
30244
30231
  module2.checkDeprecations(coreSource, log3);
30245
30232
  }
30246
- const moduleSource = module2.getModuleSource(type, glslVersion);
30233
+ const moduleSource = module2.getModuleSource(type2, glslVersion);
30247
30234
  assembledSource += moduleSource;
30248
- const injections = module2.injections[type];
30235
+ const injections = module2.injections[type2];
30249
30236
  for (const key in injections) {
30250
30237
  const match = key.match(/^(v|f)s:#([\w-]+)$/);
30251
30238
  if (match) {
@@ -30260,10 +30247,10 @@ function assembleShader(gl, _ref) {
30260
30247
  }
30261
30248
  }
30262
30249
  assembledSource += INJECT_SHADER_DECLARATIONS;
30263
- assembledSource = injectShader(assembledSource, type, declInjections);
30264
- assembledSource += getHookFunctions(hookFunctionMap[type], hookInjections);
30250
+ assembledSource = injectShader(assembledSource, type2, declInjections);
30251
+ assembledSource += getHookFunctions(hookFunctionMap[type2], hookInjections);
30265
30252
  assembledSource += coreSource;
30266
- assembledSource = injectShader(assembledSource, type, mainInjections);
30253
+ assembledSource = injectShader(assembledSource, type2, mainInjections);
30267
30254
  assembledSource = transpileShader(assembledSource, transpileToGLSL100 ? 100 : glslVersion, isVertex);
30268
30255
  return assembledSource;
30269
30256
  }
@@ -30279,18 +30266,18 @@ function assembleGetUniforms(modules) {
30279
30266
  }
30280
30267
  function getShaderType(_ref2) {
30281
30268
  let {
30282
- type
30269
+ type: type2
30283
30270
  } = _ref2;
30284
- return "\n#define SHADER_TYPE_".concat(SHADER_TYPE[type].toUpperCase(), "\n");
30271
+ return "\n#define SHADER_TYPE_".concat(SHADER_TYPE[type2].toUpperCase(), "\n");
30285
30272
  }
30286
30273
  function getShaderName(_ref3) {
30287
30274
  let {
30288
30275
  id,
30289
30276
  source,
30290
- type
30277
+ type: type2
30291
30278
  } = _ref3;
30292
30279
  const injectShaderName = id && typeof id === "string" && source.indexOf("SHADER_NAME") === -1;
30293
- return injectShaderName ? "\n#define SHADER_NAME ".concat(id, "_").concat(SHADER_TYPE[type], "\n\n") : "";
30280
+ return injectShaderName ? "\n#define SHADER_NAME ".concat(id, "_").concat(SHADER_TYPE[type2], "\n\n") : "";
30294
30281
  }
30295
30282
  function getApplicationDefines() {
30296
30283
  let defines2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -30361,14 +30348,14 @@ const FS300 = "#version 300 es\n".concat(FS_GLES);
30361
30348
  function getQualifierDetails(line, qualifiers) {
30362
30349
  qualifiers = Array.isArray(qualifiers) ? qualifiers : [qualifiers];
30363
30350
  const words = line.replace(/^\s+/, "").split(/\s+/);
30364
- const [qualifier, type, definition] = words;
30365
- if (!qualifiers.includes(qualifier) || !type || !definition) {
30351
+ const [qualifier, type2, definition] = words;
30352
+ if (!qualifiers.includes(qualifier) || !type2 || !definition) {
30366
30353
  return null;
30367
30354
  }
30368
30355
  const name2 = definition.split(";")[0];
30369
30356
  return {
30370
30357
  qualifier,
30371
- type,
30358
+ type: type2,
30372
30359
  name: name2
30373
30360
  };
30374
30361
  }
@@ -30394,8 +30381,8 @@ function getPassthroughFS() {
30394
30381
  }
30395
30382
  return "varying ".concat(inputType, " ").concat(input, ";\nvoid main() {\n gl_FragColor = ").concat(outputValue, ";\n}");
30396
30383
  }
30397
- function typeToChannelSuffix(type) {
30398
- switch (type) {
30384
+ function typeToChannelSuffix(type2) {
30385
+ switch (type2) {
30399
30386
  case "float":
30400
30387
  return "x";
30401
30388
  case "vec2":
@@ -30409,8 +30396,8 @@ function typeToChannelSuffix(type) {
30409
30396
  return null;
30410
30397
  }
30411
30398
  }
30412
- function typeToChannelCount(type) {
30413
- switch (type) {
30399
+ function typeToChannelCount(type2) {
30400
+ switch (type2) {
30414
30401
  case "float":
30415
30402
  return 1;
30416
30403
  case "vec2":
@@ -30424,8 +30411,8 @@ function typeToChannelCount(type) {
30424
30411
  return null;
30425
30412
  }
30426
30413
  }
30427
- function convertToVec4(variable, type) {
30428
- switch (type) {
30414
+ function convertToVec4(variable, type2) {
30415
+ switch (type2) {
30429
30416
  case "float":
30430
30417
  return "vec4(".concat(variable, ", 0.0, 0.0, 1.0)");
30431
30418
  case "vec2":
@@ -31700,7 +31687,7 @@ function processAttributeDefinition(line, textureMap) {
31700
31687
  return null;
31701
31688
  }
31702
31689
  const {
31703
- type,
31690
+ type: type2,
31704
31691
  name: name2
31705
31692
  } = attributeData;
31706
31693
  if (name2 && textureMap[name2]) {
@@ -31710,8 +31697,8 @@ function processAttributeDefinition(line, textureMap) {
31710
31697
  sizeName,
31711
31698
  uniformDeclerations
31712
31699
  } = getSamplerDeclerations(name2);
31713
- const channels2 = typeToChannelSuffix(type);
31714
- const sampleInstruction = " ".concat(type, " ").concat(name2, " = transform_getInput(").concat(samplerName, ", ").concat(sizeName, ").").concat(channels2, ";\n");
31700
+ const channels2 = typeToChannelSuffix(type2);
31701
+ const sampleInstruction = " ".concat(type2, " ").concat(name2, " = transform_getInput(").concat(samplerName, ", ").concat(sizeName, ").").concat(channels2, ";\n");
31715
31702
  samplerTextureMap[samplerName] = name2;
31716
31703
  const inject2 = {
31717
31704
  "vs:#decl": uniformDeclerations,
@@ -32695,12 +32682,12 @@ class PlaneGeometry extends Geometry {
32695
32682
  }
32696
32683
  function tesselatePlane(props) {
32697
32684
  const {
32698
- type = "x,y",
32685
+ type: type2 = "x,y",
32699
32686
  offset = 0,
32700
32687
  flipCull = false,
32701
32688
  unpack: unpack2 = false
32702
32689
  } = props;
32703
- const coords = type.split(",");
32690
+ const coords = type2.split(",");
32704
32691
  let c1len = props["".concat(coords[0], "len")] || 1;
32705
32692
  const c2len = props["".concat(coords[1], "len")] || 1;
32706
32693
  const subdivisions1 = props["n".concat(coords[0])] || 1;
@@ -32720,7 +32707,7 @@ function tesselatePlane(props) {
32720
32707
  const v = z / subdivisions2;
32721
32708
  texCoords[i2 + 0] = flipCull ? 1 - u : u;
32722
32709
  texCoords[i2 + 1] = v;
32723
- switch (type) {
32710
+ switch (type2) {
32724
32711
  case "x,y":
32725
32712
  positions[i3 + 0] = c1len * u - c1len * 0.5;
32726
32713
  positions[i3 + 1] = c2len * v - c2len * 0.5;
@@ -34710,13 +34697,13 @@ class TypedArrayManager {
34710
34697
  }
34711
34698
  allocate(typedArray, count2, {
34712
34699
  size: size2 = 1,
34713
- type,
34700
+ type: type2,
34714
34701
  padding = 0,
34715
34702
  copy: copy2 = false,
34716
34703
  initialize = false,
34717
34704
  maxCount
34718
34705
  }) {
34719
- const Type2 = type || typedArray && typedArray.constructor || Float32Array;
34706
+ const Type2 = type2 || typedArray && typedArray.constructor || Float32Array;
34720
34707
  const newSize = count2 * size2 + padding;
34721
34708
  if (ArrayBuffer.isView(typedArray)) {
34722
34709
  if (newSize <= typedArray.length) {
@@ -39669,19 +39656,19 @@ var hammer$1 = { exports: {} };
39669
39656
  } else {
39670
39657
  assign2 = Object.assign;
39671
39658
  }
39672
- var extend2 = deprecate(function extend3(dest, src2, merge3) {
39673
- var keys3 = Object.keys(src2);
39659
+ var extend2 = deprecate(function extend3(dest, src, merge3) {
39660
+ var keys3 = Object.keys(src);
39674
39661
  var i2 = 0;
39675
39662
  while (i2 < keys3.length) {
39676
39663
  if (!merge3 || merge3 && dest[keys3[i2]] === undefined$12) {
39677
- dest[keys3[i2]] = src2[keys3[i2]];
39664
+ dest[keys3[i2]] = src[keys3[i2]];
39678
39665
  }
39679
39666
  i2++;
39680
39667
  }
39681
39668
  return dest;
39682
39669
  }, "extend", "Use `assign`.");
39683
- var merge2 = deprecate(function merge3(dest, src2) {
39684
- return extend2(dest, src2, true);
39670
+ var merge2 = deprecate(function merge3(dest, src) {
39671
+ return extend2(dest, src, true);
39685
39672
  }, "merge", "Use `assign`.");
39686
39673
  function inherit(child, base, properties) {
39687
39674
  var baseP = base.prototype, childP;
@@ -39707,13 +39694,13 @@ var hammer$1 = { exports: {} };
39707
39694
  return val1 === undefined$12 ? val2 : val1;
39708
39695
  }
39709
39696
  function addEventListeners(target, types, handler) {
39710
- each(splitStr(types), function(type) {
39711
- target.addEventListener(type, handler, false);
39697
+ each(splitStr(types), function(type2) {
39698
+ target.addEventListener(type2, handler, false);
39712
39699
  });
39713
39700
  }
39714
39701
  function removeEventListeners(target, types, handler) {
39715
- each(splitStr(types), function(type) {
39716
- target.removeEventListener(type, handler, false);
39702
+ each(splitStr(types), function(type2) {
39703
+ target.removeEventListener(type2, handler, false);
39717
39704
  });
39718
39705
  }
39719
39706
  function hasParent(node2, parent) {
@@ -39731,13 +39718,13 @@ var hammer$1 = { exports: {} };
39731
39718
  function splitStr(str) {
39732
39719
  return str.trim().split(/\s+/g);
39733
39720
  }
39734
- function inArray(src2, find, findByKey) {
39735
- if (src2.indexOf && !findByKey) {
39736
- return src2.indexOf(find);
39721
+ function inArray(src, find, findByKey) {
39722
+ if (src.indexOf && !findByKey) {
39723
+ return src.indexOf(find);
39737
39724
  } else {
39738
39725
  var i2 = 0;
39739
- while (i2 < src2.length) {
39740
- if (findByKey && src2[i2][findByKey] == find || !findByKey && src2[i2] === find) {
39726
+ while (i2 < src.length) {
39727
+ if (findByKey && src[i2][findByKey] == find || !findByKey && src[i2] === find) {
39741
39728
  return i2;
39742
39729
  }
39743
39730
  i2++;
@@ -39748,14 +39735,14 @@ var hammer$1 = { exports: {} };
39748
39735
  function toArray(obj) {
39749
39736
  return Array.prototype.slice.call(obj, 0);
39750
39737
  }
39751
- function uniqueArray(src2, key, sort) {
39738
+ function uniqueArray(src, key, sort) {
39752
39739
  var results = [];
39753
39740
  var values = [];
39754
39741
  var i2 = 0;
39755
- while (i2 < src2.length) {
39756
- var val = key ? src2[i2][key] : src2[i2];
39742
+ while (i2 < src.length) {
39743
+ var val = key ? src[i2][key] : src[i2];
39757
39744
  if (inArray(values, val) < 0) {
39758
- results.push(src2[i2]);
39745
+ results.push(src[i2]);
39759
39746
  }
39760
39747
  values[i2] = val;
39761
39748
  i2++;
@@ -40151,18 +40138,18 @@ var hammer$1 = { exports: {} };
40151
40138
  }
40152
40139
  inherit(SingleTouchInput, Input2, {
40153
40140
  handler: function TEhandler(ev) {
40154
- var type = SINGLE_TOUCH_INPUT_MAP[ev.type];
40155
- if (type === INPUT_START2) {
40141
+ var type2 = SINGLE_TOUCH_INPUT_MAP[ev.type];
40142
+ if (type2 === INPUT_START2) {
40156
40143
  this.started = true;
40157
40144
  }
40158
40145
  if (!this.started) {
40159
40146
  return;
40160
40147
  }
40161
- var touches = normalizeSingleTouches.call(this, ev, type);
40162
- if (type & (INPUT_END2 | INPUT_CANCEL) && touches[0].length - touches[1].length === 0) {
40148
+ var touches = normalizeSingleTouches.call(this, ev, type2);
40149
+ if (type2 & (INPUT_END2 | INPUT_CANCEL) && touches[0].length - touches[1].length === 0) {
40163
40150
  this.started = false;
40164
40151
  }
40165
- this.callback(this.manager, type, {
40152
+ this.callback(this.manager, type2, {
40166
40153
  pointers: touches[0],
40167
40154
  changedPointers: touches[1],
40168
40155
  pointerType: INPUT_TYPE_TOUCH,
@@ -40170,10 +40157,10 @@ var hammer$1 = { exports: {} };
40170
40157
  });
40171
40158
  }
40172
40159
  });
40173
- function normalizeSingleTouches(ev, type) {
40160
+ function normalizeSingleTouches(ev, type2) {
40174
40161
  var all = toArray(ev.touches);
40175
40162
  var changed = toArray(ev.changedTouches);
40176
- if (type & (INPUT_END2 | INPUT_CANCEL)) {
40163
+ if (type2 & (INPUT_END2 | INPUT_CANCEL)) {
40177
40164
  all = uniqueArray(all.concat(changed), "identifier", true);
40178
40165
  }
40179
40166
  return [all, changed];
@@ -40192,12 +40179,12 @@ var hammer$1 = { exports: {} };
40192
40179
  }
40193
40180
  inherit(TouchInput, Input2, {
40194
40181
  handler: function MTEhandler(ev) {
40195
- var type = TOUCH_INPUT_MAP[ev.type];
40196
- var touches = getTouches.call(this, ev, type);
40182
+ var type2 = TOUCH_INPUT_MAP[ev.type];
40183
+ var touches = getTouches.call(this, ev, type2);
40197
40184
  if (!touches) {
40198
40185
  return;
40199
40186
  }
40200
- this.callback(this.manager, type, {
40187
+ this.callback(this.manager, type2, {
40201
40188
  pointers: touches[0],
40202
40189
  changedPointers: touches[1],
40203
40190
  pointerType: INPUT_TYPE_TOUCH,
@@ -40205,10 +40192,10 @@ var hammer$1 = { exports: {} };
40205
40192
  });
40206
40193
  }
40207
40194
  });
40208
- function getTouches(ev, type) {
40195
+ function getTouches(ev, type2) {
40209
40196
  var allTouches = toArray(ev.touches);
40210
40197
  var targetIds = this.targetIds;
40211
- if (type & (INPUT_START2 | INPUT_MOVE2) && allTouches.length === 1) {
40198
+ if (type2 & (INPUT_START2 | INPUT_MOVE2) && allTouches.length === 1) {
40212
40199
  targetIds[allTouches[0].identifier] = true;
40213
40200
  return [allTouches, allTouches];
40214
40201
  }
@@ -40216,7 +40203,7 @@ var hammer$1 = { exports: {} };
40216
40203
  targetTouches = allTouches.filter(function(touch) {
40217
40204
  return hasParent(touch.target, target);
40218
40205
  });
40219
- if (type === INPUT_START2) {
40206
+ if (type2 === INPUT_START2) {
40220
40207
  i2 = 0;
40221
40208
  while (i2 < targetTouches.length) {
40222
40209
  targetIds[targetTouches[i2].identifier] = true;
@@ -40228,7 +40215,7 @@ var hammer$1 = { exports: {} };
40228
40215
  if (targetIds[changedTouches[i2].identifier]) {
40229
40216
  changedTargetTouches.push(changedTouches[i2]);
40230
40217
  }
40231
- if (type & (INPUT_END2 | INPUT_CANCEL)) {
40218
+ if (type2 & (INPUT_END2 | INPUT_CANCEL)) {
40232
40219
  delete targetIds[changedTouches[i2].identifier];
40233
40220
  }
40234
40221
  i2++;
@@ -41725,9 +41712,9 @@ class MoveInput extends Input {
41725
41712
  }
41726
41713
  }
41727
41714
  }
41728
- _emit(type, event) {
41715
+ _emit(type2, event) {
41729
41716
  this.callback({
41730
- type,
41717
+ type: type2,
41731
41718
  center: {
41732
41719
  x: event.clientX,
41733
41720
  y: event.clientY
@@ -41915,7 +41902,7 @@ class EventRegistrar {
41915
41902
  isEmpty() {
41916
41903
  return !this._active;
41917
41904
  }
41918
- add(type, handler, options, once3 = false, passive = false) {
41905
+ add(type2, handler, options, once3 = false, passive = false) {
41919
41906
  const { handlers, handlersByElement } = this;
41920
41907
  let opts = DEFAULT_OPTIONS$2;
41921
41908
  if (typeof options === "string" || options && options.addEventListener) {
@@ -41929,7 +41916,7 @@ class EventRegistrar {
41929
41916
  handlersByElement.set(opts.srcElement, entries);
41930
41917
  }
41931
41918
  const entry = {
41932
- type,
41919
+ type: type2,
41933
41920
  handler,
41934
41921
  srcElement: opts.srcElement,
41935
41922
  priority: opts.priority
@@ -41951,11 +41938,11 @@ class EventRegistrar {
41951
41938
  }
41952
41939
  entries.splice(insertPosition + 1, 0, entry);
41953
41940
  }
41954
- remove(type, handler) {
41941
+ remove(type2, handler) {
41955
41942
  const { handlers, handlersByElement } = this;
41956
41943
  for (let i2 = handlers.length - 1; i2 >= 0; i2--) {
41957
41944
  const entry = handlers[i2];
41958
- if (entry.type === type && entry.handler === handler) {
41945
+ if (entry.type === type2 && entry.handler === handler) {
41959
41946
  handlers.splice(i2, 1);
41960
41947
  const entries = handlersByElement.get(entry.srcElement);
41961
41948
  entries.splice(entries.indexOf(entry), 1);
@@ -41982,11 +41969,11 @@ class EventRegistrar {
41982
41969
  };
41983
41970
  const entriesToRemove = [];
41984
41971
  for (let i2 = 0; i2 < entries.length; i2++) {
41985
- const { type, handler, once: once3 } = entries[i2];
41972
+ const { type: type2, handler, once: once3 } = entries[i2];
41986
41973
  handler({
41987
41974
  ...event,
41988
41975
  // @ts-ignore
41989
- type,
41976
+ type: type2,
41990
41977
  stopPropagation,
41991
41978
  stopImmediatePropagation
41992
41979
  });
@@ -41998,8 +41985,8 @@ class EventRegistrar {
41998
41985
  }
41999
41986
  }
42000
41987
  for (let i2 = 0; i2 < entriesToRemove.length; i2++) {
42001
- const { type, handler } = entriesToRemove[i2];
42002
- this.remove(type, handler);
41988
+ const { type: type2, handler } = entriesToRemove[i2];
41989
+ this.remove(type2, handler);
42003
41990
  }
42004
41991
  }
42005
41992
  }
@@ -43018,13 +43005,13 @@ class DataColumn {
43018
43005
  if (!this._buffer) {
43019
43006
  const {
43020
43007
  isIndexed,
43021
- type
43008
+ type: type2
43022
43009
  } = this.settings;
43023
43010
  this._buffer = new Buffer$1(this.gl, {
43024
43011
  id: this.id,
43025
43012
  target: isIndexed ? 34963 : 34962,
43026
43013
  accessor: {
43027
- type
43014
+ type: type2
43028
43015
  }
43029
43016
  });
43030
43017
  }
@@ -43517,12 +43504,12 @@ function normalizeTransitionSettings(userSettings, layerSettings) {
43517
43504
  duration: userSettings
43518
43505
  };
43519
43506
  }
43520
- const type = userSettings.type || "interpolation";
43507
+ const type2 = userSettings.type || "interpolation";
43521
43508
  return {
43522
- ...DEFAULT_TRANSITION_SETTINGS[type],
43509
+ ...DEFAULT_TRANSITION_SETTINGS[type2],
43523
43510
  ...layerSettings,
43524
43511
  ...userSettings,
43525
- type
43512
+ type: type2
43526
43513
  };
43527
43514
  }
43528
43515
  function getSourceBufferAttribute(gl, attribute) {
@@ -44752,8 +44739,8 @@ function diffTransitions(props, oldProps) {
44752
44739
  let changed = false;
44753
44740
  for (const key in props.transitions) {
44754
44741
  const propType = propTypes[key];
44755
- const type = propType && propType.type;
44756
- const isTransitionable = type === "number" || type === "color" || type === "array";
44742
+ const type2 = propType && propType.type;
44743
+ const isTransitionable = type2 === "number" || type2 === "color" || type2 === "array";
44757
44744
  if (isTransitionable && comparePropValues(props[key], oldProps[key], propType)) {
44758
44745
  result[key] = true;
44759
44746
  changed = true;
@@ -46357,19 +46344,19 @@ class Layer extends Component {
46357
46344
  var _this$internalState2;
46358
46345
  return (_this$internalState2 = this.internalState) === null || _this$internalState2 === void 0 ? void 0 : _this$internalState2.changeFlags;
46359
46346
  }
46360
- setChangeFlags(flags2) {
46347
+ setChangeFlags(flags3) {
46361
46348
  if (!this.internalState) {
46362
46349
  return;
46363
46350
  }
46364
46351
  const {
46365
46352
  changeFlags
46366
46353
  } = this.internalState;
46367
- for (const key in flags2) {
46368
- if (flags2[key]) {
46354
+ for (const key in flags3) {
46355
+ if (flags3[key]) {
46369
46356
  let flagChanged = false;
46370
46357
  switch (key) {
46371
46358
  case "dataChanged":
46372
- const dataChangedReason = flags2[key];
46359
+ const dataChangedReason = flags3[key];
46373
46360
  const prevDataChangedReason = changeFlags[key];
46374
46361
  if (dataChangedReason && Array.isArray(prevDataChangedReason)) {
46375
46362
  changeFlags.dataChanged = Array.isArray(dataChangedReason) ? prevDataChangedReason.concat(dataChangedReason) : dataChangedReason;
@@ -46377,12 +46364,12 @@ class Layer extends Component {
46377
46364
  }
46378
46365
  default:
46379
46366
  if (!changeFlags[key]) {
46380
- changeFlags[key] = flags2[key];
46367
+ changeFlags[key] = flags3[key];
46381
46368
  flagChanged = true;
46382
46369
  }
46383
46370
  }
46384
46371
  if (flagChanged) {
46385
- debug(TRACE_CHANGE_FLAG, this, key, flags2);
46372
+ debug(TRACE_CHANGE_FLAG, this, key, flags3);
46386
46373
  }
46387
46374
  }
46388
46375
  }
@@ -49786,7 +49773,7 @@ function bisectPolygon(positions, edgeTypes, size2, startIndex, endIndex, bbox2,
49786
49773
  const scratchPoint = [];
49787
49774
  let p;
49788
49775
  let side;
49789
- let type;
49776
+ let type2;
49790
49777
  const prev = getPointAtIndex(positions, numPoints - 1, size2, startIndex);
49791
49778
  let prevSide = Math.sign(edge & 8 ? prev[1] - bbox2[3] : prev[0] - bbox2[2]);
49792
49779
  let prevType = edgeTypes && edgeTypes[numPoints - 1];
@@ -49795,27 +49782,27 @@ function bisectPolygon(positions, edgeTypes, size2, startIndex, endIndex, bbox2,
49795
49782
  for (let i2 = 0; i2 < numPoints; i2++) {
49796
49783
  p = getPointAtIndex(positions, i2, size2, startIndex, p);
49797
49784
  side = Math.sign(edge & 8 ? p[1] - bbox2[3] : p[0] - bbox2[2]);
49798
- type = edgeTypes && edgeTypes[startIndex / size2 + i2];
49785
+ type2 = edgeTypes && edgeTypes[startIndex / size2 + i2];
49799
49786
  if (side && prevSide && prevSide !== side) {
49800
49787
  intersect$1(prev, p, edge, bbox2, scratchPoint);
49801
49788
  push(resultLow, scratchPoint) && typesLow.push(prevType);
49802
49789
  push(resultHigh, scratchPoint) && typesHigh.push(prevType);
49803
49790
  }
49804
49791
  if (side <= 0) {
49805
- push(resultLow, p) && typesLow.push(type);
49792
+ push(resultLow, p) && typesLow.push(type2);
49806
49793
  lowPointCount -= side;
49807
49794
  } else if (typesLow.length) {
49808
49795
  typesLow[typesLow.length - 1] = TYPE_INSIDE;
49809
49796
  }
49810
49797
  if (side >= 0) {
49811
- push(resultHigh, p) && typesHigh.push(type);
49798
+ push(resultHigh, p) && typesHigh.push(type2);
49812
49799
  highPointCount += side;
49813
49800
  } else if (typesHigh.length) {
49814
49801
  typesHigh[typesHigh.length - 1] = TYPE_INSIDE;
49815
49802
  }
49816
49803
  copy(prev, p);
49817
49804
  prevSide = side;
49818
- prevType = type;
49805
+ prevType = type2;
49819
49806
  }
49820
49807
  return [lowPointCount ? {
49821
49808
  pos: resultLow,
@@ -51611,9 +51598,9 @@ class SolidPolygonLayer extends Layer {
51611
51598
  super(...args);
51612
51599
  _defineProperty$e(this, "state", void 0);
51613
51600
  }
51614
- getShaders(type) {
51601
+ getShaders(type2) {
51615
51602
  return super.getShaders({
51616
- vs: type === "top" ? vsTop : vsSide,
51603
+ vs: type2 === "top" ? vsTop : vsSide,
51617
51604
  fs: fs$b,
51618
51605
  defines: {
51619
51606
  RING_WINDING_ORDER_CW: !this.props._normalize && this.props._windingOrder === "CCW" ? 0 : 1
@@ -53572,12 +53559,12 @@ const POLYGON_LAYER = {
53572
53559
  }
53573
53560
  };
53574
53561
  function getDefaultProps({
53575
- type,
53562
+ type: type2,
53576
53563
  props
53577
53564
  }) {
53578
53565
  const result = {};
53579
53566
  for (const key in props) {
53580
- result[key] = type.defaultProps[props[key]];
53567
+ result[key] = type2.defaultProps[props[key]];
53581
53568
  }
53582
53569
  return result;
53583
53570
  }
@@ -53659,7 +53646,7 @@ function separateGeojsonFeatures(features, wrapFeature, dataRange = {}) {
53659
53646
  }
53660
53647
  function separateGeometry(geometry2, separated, wrapFeature, sourceFeature, sourceFeatureIndex) {
53661
53648
  const {
53662
- type,
53649
+ type: type2,
53663
53650
  coordinates: coordinates2
53664
53651
  } = geometry2;
53665
53652
  const {
@@ -53668,11 +53655,11 @@ function separateGeometry(geometry2, separated, wrapFeature, sourceFeature, sour
53668
53655
  polygonFeatures,
53669
53656
  polygonOutlineFeatures
53670
53657
  } = separated;
53671
- if (!validateGeometry(type, coordinates2)) {
53672
- log$3.warn("".concat(type, " coordinates are malformed"))();
53658
+ if (!validateGeometry(type2, coordinates2)) {
53659
+ log$3.warn("".concat(type2, " coordinates are malformed"))();
53673
53660
  return;
53674
53661
  }
53675
- switch (type) {
53662
+ switch (type2) {
53676
53663
  case "Point":
53677
53664
  pointFeatures.push(wrapFeature({
53678
53665
  geometry: geometry2
@@ -53744,9 +53731,9 @@ const COORDINATE_NEST_LEVEL = {
53744
53731
  Polygon: 3,
53745
53732
  MultiPolygon: 4
53746
53733
  };
53747
- function validateGeometry(type, coordinates2) {
53748
- let nestLevel = COORDINATE_NEST_LEVEL[type];
53749
- log$3.assert(nestLevel, "Unknown GeoJSON type ".concat(type));
53734
+ function validateGeometry(type2, coordinates2) {
53735
+ let nestLevel = COORDINATE_NEST_LEVEL[type2];
53736
+ log$3.assert(nestLevel, "Unknown GeoJSON type ".concat(type2));
53750
53737
  while (coordinates2 && --nestLevel > 0) {
53751
53738
  coordinates2 = coordinates2[0];
53752
53739
  }
@@ -54054,14 +54041,14 @@ class GeoJsonLayer extends CompositeLayer {
54054
54041
  }
54055
54042
  const types = new Set(pointType.split("+"));
54056
54043
  const pointLayers = [];
54057
- for (const type of types) {
54058
- const id = "points-".concat(type);
54059
- const PointLayerMapping = POINT_LAYER[type];
54044
+ for (const type2 of types) {
54045
+ const id = "points-".concat(type2);
54046
+ const PointLayerMapping = POINT_LAYER[type2];
54060
54047
  const PointsLayer = PointLayerMapping && this.shouldRenderSubLayer(id, layerProps.points.data) && this.getSubLayerClass(id, PointLayerMapping.type);
54061
54048
  if (PointsLayer) {
54062
54049
  const forwardedProps = forwardProps(this, PointLayerMapping.props);
54063
54050
  let pointsLayerProps = layerProps.points;
54064
- if (type === "text" && binary) {
54051
+ if (type2 === "text" && binary) {
54065
54052
  const {
54066
54053
  instancePickingColors,
54067
54054
  ...rest
@@ -56879,12 +56866,12 @@ var libh3 = function(libh32) {
56879
56866
  return tempRet0;
56880
56867
  };
56881
56868
  var GLOBAL_BASE = 8;
56882
- function setValue(ptr, value, type, noSafe) {
56883
- type = type || "i8";
56884
- if (type.charAt(type.length - 1) === "*") {
56885
- type = "i32";
56869
+ function setValue(ptr, value, type2, noSafe) {
56870
+ type2 = type2 || "i8";
56871
+ if (type2.charAt(type2.length - 1) === "*") {
56872
+ type2 = "i32";
56886
56873
  }
56887
- switch (type) {
56874
+ switch (type2) {
56888
56875
  case "i1":
56889
56876
  HEAP8[ptr >> 0] = value;
56890
56877
  break;
@@ -56907,15 +56894,15 @@ var libh3 = function(libh32) {
56907
56894
  HEAPF64[ptr >> 3] = value;
56908
56895
  break;
56909
56896
  default:
56910
- abort("invalid type for setValue: " + type);
56897
+ abort("invalid type for setValue: " + type2);
56911
56898
  }
56912
56899
  }
56913
- function getValue2(ptr, type, noSafe) {
56914
- type = type || "i8";
56915
- if (type.charAt(type.length - 1) === "*") {
56916
- type = "i32";
56900
+ function getValue2(ptr, type2, noSafe) {
56901
+ type2 = type2 || "i8";
56902
+ if (type2.charAt(type2.length - 1) === "*") {
56903
+ type2 = "i32";
56917
56904
  }
56918
- switch (type) {
56905
+ switch (type2) {
56919
56906
  case "i1":
56920
56907
  return HEAP8[ptr >> 0];
56921
56908
  case "i8":
@@ -56931,7 +56918,7 @@ var libh3 = function(libh32) {
56931
56918
  case "double":
56932
56919
  return HEAPF64[ptr >> 3];
56933
56920
  default:
56934
- abort("invalid type for getValue: " + type);
56921
+ abort("invalid type for getValue: " + type2);
56935
56922
  }
56936
56923
  return null;
56937
56924
  }
@@ -56997,8 +56984,8 @@ var libh3 = function(libh32) {
56997
56984
  }
56998
56985
  function cwrap(ident, returnType, argTypes, opts) {
56999
56986
  argTypes = argTypes || [];
57000
- var numericArgs = argTypes.every(function(type) {
57001
- return type === "number";
56987
+ var numericArgs = argTypes.every(function(type2) {
56988
+ return type2 === "number";
57002
56989
  });
57003
56990
  var numericRet = returnType !== "string";
57004
56991
  if (numericRet && numericArgs && !opts) {
@@ -57257,8 +57244,8 @@ var libh3 = function(libh32) {
57257
57244
  function _emscripten_get_heap_size() {
57258
57245
  return HEAP8.length;
57259
57246
  }
57260
- function _emscripten_memcpy_big(dest, src2, num) {
57261
- HEAPU8.set(HEAPU8.subarray(src2, src2 + num), dest);
57247
+ function _emscripten_memcpy_big(dest, src, num) {
57248
+ HEAPU8.set(HEAPU8.subarray(src, src + num), dest);
57262
57249
  }
57263
57250
  function ___setErrNo(value) {
57264
57251
  if (Module["___errno_location"]) {
@@ -67716,9 +67703,9 @@ function readLong(invocation) {
67716
67703
  return [invocation, upper];
67717
67704
  }
67718
67705
  function readH3Index(invocation) {
67719
- var ref = readLong(invocation);
67720
- var lower = ref[0];
67721
- var upper = ref[1];
67706
+ var ref2 = readLong(invocation);
67707
+ var lower = ref2[0];
67708
+ var upper = ref2[1];
67722
67709
  return upper ? splitLongToh3Index(lower, upper) : null;
67723
67710
  }
67724
67711
  function readH3IndexFromPointer(cAddress, offset) {
@@ -67806,9 +67793,9 @@ function readCoordIJ(cAddress) {
67806
67793
  j: libh3.getValue(cAddress + SZ_INT, "i32")
67807
67794
  };
67808
67795
  }
67809
- function storeCoordIJ(cAddress, ref) {
67810
- var i2 = ref.i;
67811
- var j = ref.j;
67796
+ function storeCoordIJ(cAddress, ref2) {
67797
+ var i2 = ref2.i;
67798
+ var j = ref2.j;
67812
67799
  libh3.setValue(cAddress, i2, "i32");
67813
67800
  libh3.setValue(cAddress + SZ_INT, j, "i32");
67814
67801
  }
@@ -67823,33 +67810,33 @@ function readArrayOfPositiveIntegers(cAddress, count2) {
67823
67810
  return out;
67824
67811
  }
67825
67812
  function h3IsValid(h3Index) {
67826
- var ref = h3IndexToSplitLong(h3Index);
67827
- var lower = ref[0];
67828
- var upper = ref[1];
67813
+ var ref2 = h3IndexToSplitLong(h3Index);
67814
+ var lower = ref2[0];
67815
+ var upper = ref2[1];
67829
67816
  return Boolean(H3.h3IsValid(lower, upper));
67830
67817
  }
67831
67818
  function h3IsPentagon(h3Index) {
67832
- var ref = h3IndexToSplitLong(h3Index);
67833
- var lower = ref[0];
67834
- var upper = ref[1];
67819
+ var ref2 = h3IndexToSplitLong(h3Index);
67820
+ var lower = ref2[0];
67821
+ var upper = ref2[1];
67835
67822
  return Boolean(H3.h3IsPentagon(lower, upper));
67836
67823
  }
67837
67824
  function h3IsResClassIII(h3Index) {
67838
- var ref = h3IndexToSplitLong(h3Index);
67839
- var lower = ref[0];
67840
- var upper = ref[1];
67825
+ var ref2 = h3IndexToSplitLong(h3Index);
67826
+ var lower = ref2[0];
67827
+ var upper = ref2[1];
67841
67828
  return Boolean(H3.h3IsResClassIII(lower, upper));
67842
67829
  }
67843
67830
  function h3GetBaseCell(h3Index) {
67844
- var ref = h3IndexToSplitLong(h3Index);
67845
- var lower = ref[0];
67846
- var upper = ref[1];
67831
+ var ref2 = h3IndexToSplitLong(h3Index);
67832
+ var lower = ref2[0];
67833
+ var upper = ref2[1];
67847
67834
  return H3.h3GetBaseCell(lower, upper);
67848
67835
  }
67849
67836
  function h3GetFaces(h3Index) {
67850
- var ref = h3IndexToSplitLong(h3Index);
67851
- var lower = ref[0];
67852
- var upper = ref[1];
67837
+ var ref2 = h3IndexToSplitLong(h3Index);
67838
+ var lower = ref2[0];
67839
+ var upper = ref2[1];
67853
67840
  var count2 = H3.maxFaceCount(lower, upper);
67854
67841
  var faces2 = libh3._malloc(SZ_INT * count2);
67855
67842
  H3.h3GetFaces(lower, upper, faces2);
@@ -67858,9 +67845,9 @@ function h3GetFaces(h3Index) {
67858
67845
  return out;
67859
67846
  }
67860
67847
  function h3GetResolution(h3Index) {
67861
- var ref = h3IndexToSplitLong(h3Index);
67862
- var lower = ref[0];
67863
- var upper = ref[1];
67848
+ var ref2 = h3IndexToSplitLong(h3Index);
67849
+ var lower = ref2[0];
67850
+ var upper = ref2[1];
67864
67851
  if (!H3.h3IsValid(lower, upper)) {
67865
67852
  return -1;
67866
67853
  }
@@ -67875,9 +67862,9 @@ function geoToH3(lat, lng, res) {
67875
67862
  }
67876
67863
  function h3ToGeo(h3Index) {
67877
67864
  var latlng = libh3._malloc(SZ_GEOCOORD);
67878
- var ref = h3IndexToSplitLong(h3Index);
67879
- var lower = ref[0];
67880
- var upper = ref[1];
67865
+ var ref2 = h3IndexToSplitLong(h3Index);
67866
+ var lower = ref2[0];
67867
+ var upper = ref2[1];
67881
67868
  H3.h3ToGeo(lower, upper, latlng);
67882
67869
  var out = readGeoCoord(latlng);
67883
67870
  libh3._free(latlng);
@@ -67885,27 +67872,27 @@ function h3ToGeo(h3Index) {
67885
67872
  }
67886
67873
  function h3ToGeoBoundary(h3Index, formatAsGeoJson) {
67887
67874
  var geoBoundary = libh3._malloc(SZ_GEOBOUNDARY);
67888
- var ref = h3IndexToSplitLong(h3Index);
67889
- var lower = ref[0];
67890
- var upper = ref[1];
67875
+ var ref2 = h3IndexToSplitLong(h3Index);
67876
+ var lower = ref2[0];
67877
+ var upper = ref2[1];
67891
67878
  H3.h3ToGeoBoundary(lower, upper, geoBoundary);
67892
67879
  var out = readGeoBoundary(geoBoundary, formatAsGeoJson, formatAsGeoJson);
67893
67880
  libh3._free(geoBoundary);
67894
67881
  return out;
67895
67882
  }
67896
67883
  function h3ToParent(h3Index, res) {
67897
- var ref = h3IndexToSplitLong(h3Index);
67898
- var lower = ref[0];
67899
- var upper = ref[1];
67884
+ var ref2 = h3IndexToSplitLong(h3Index);
67885
+ var lower = ref2[0];
67886
+ var upper = ref2[1];
67900
67887
  return readH3Index(H3.h3ToParent(lower, upper, res));
67901
67888
  }
67902
67889
  function h3ToChildren(h3Index, res) {
67903
67890
  if (!h3IsValid(h3Index)) {
67904
67891
  return [];
67905
67892
  }
67906
- var ref = h3IndexToSplitLong(h3Index);
67907
- var lower = ref[0];
67908
- var upper = ref[1];
67893
+ var ref2 = h3IndexToSplitLong(h3Index);
67894
+ var lower = ref2[0];
67895
+ var upper = ref2[1];
67909
67896
  var maxCount = H3.maxH3ToChildrenSize(lower, upper, res);
67910
67897
  var hexagons = libh3._calloc(maxCount, SZ_H3INDEX);
67911
67898
  H3.h3ToChildren(lower, upper, res, hexagons);
@@ -67914,15 +67901,15 @@ function h3ToChildren(h3Index, res) {
67914
67901
  return out;
67915
67902
  }
67916
67903
  function h3ToCenterChild(h3Index, res) {
67917
- var ref = h3IndexToSplitLong(h3Index);
67918
- var lower = ref[0];
67919
- var upper = ref[1];
67904
+ var ref2 = h3IndexToSplitLong(h3Index);
67905
+ var lower = ref2[0];
67906
+ var upper = ref2[1];
67920
67907
  return readH3Index(H3.h3ToCenterChild(lower, upper, res));
67921
67908
  }
67922
67909
  function kRing(h3Index, ringSize) {
67923
- var ref = h3IndexToSplitLong(h3Index);
67924
- var lower = ref[0];
67925
- var upper = ref[1];
67910
+ var ref2 = h3IndexToSplitLong(h3Index);
67911
+ var lower = ref2[0];
67912
+ var upper = ref2[1];
67926
67913
  var maxCount = H3.maxKringSize(ringSize);
67927
67914
  var hexagons = libh3._calloc(maxCount, SZ_H3INDEX);
67928
67915
  H3.kRing(lower, upper, ringSize, hexagons);
@@ -67931,9 +67918,9 @@ function kRing(h3Index, ringSize) {
67931
67918
  return out;
67932
67919
  }
67933
67920
  function kRingDistances(h3Index, ringSize) {
67934
- var ref = h3IndexToSplitLong(h3Index);
67935
- var lower = ref[0];
67936
- var upper = ref[1];
67921
+ var ref2 = h3IndexToSplitLong(h3Index);
67922
+ var lower = ref2[0];
67923
+ var upper = ref2[1];
67937
67924
  var maxCount = H3.maxKringSize(ringSize);
67938
67925
  var kRings = libh3._calloc(maxCount, SZ_H3INDEX);
67939
67926
  var distances = libh3._calloc(maxCount, SZ_INT);
@@ -68041,45 +68028,45 @@ function uncompact(compactedSet, res) {
68041
68028
  return out;
68042
68029
  }
68043
68030
  function h3IndexesAreNeighbors(origin, destination2) {
68044
- var ref = h3IndexToSplitLong(origin);
68045
- var oLower = ref[0];
68046
- var oUpper = ref[1];
68031
+ var ref2 = h3IndexToSplitLong(origin);
68032
+ var oLower = ref2[0];
68033
+ var oUpper = ref2[1];
68047
68034
  var ref$1 = h3IndexToSplitLong(destination2);
68048
68035
  var dLower = ref$1[0];
68049
68036
  var dUpper = ref$1[1];
68050
68037
  return Boolean(H3.h3IndexesAreNeighbors(oLower, oUpper, dLower, dUpper));
68051
68038
  }
68052
68039
  function getH3UnidirectionalEdge(origin, destination2) {
68053
- var ref = h3IndexToSplitLong(origin);
68054
- var oLower = ref[0];
68055
- var oUpper = ref[1];
68040
+ var ref2 = h3IndexToSplitLong(origin);
68041
+ var oLower = ref2[0];
68042
+ var oUpper = ref2[1];
68056
68043
  var ref$1 = h3IndexToSplitLong(destination2);
68057
68044
  var dLower = ref$1[0];
68058
68045
  var dUpper = ref$1[1];
68059
68046
  return readH3Index(H3.getH3UnidirectionalEdge(oLower, oUpper, dLower, dUpper));
68060
68047
  }
68061
68048
  function getOriginH3IndexFromUnidirectionalEdge(edgeIndex) {
68062
- var ref = h3IndexToSplitLong(edgeIndex);
68063
- var lower = ref[0];
68064
- var upper = ref[1];
68049
+ var ref2 = h3IndexToSplitLong(edgeIndex);
68050
+ var lower = ref2[0];
68051
+ var upper = ref2[1];
68065
68052
  return readH3Index(H3.getOriginH3IndexFromUnidirectionalEdge(lower, upper));
68066
68053
  }
68067
68054
  function getDestinationH3IndexFromUnidirectionalEdge(edgeIndex) {
68068
- var ref = h3IndexToSplitLong(edgeIndex);
68069
- var lower = ref[0];
68070
- var upper = ref[1];
68055
+ var ref2 = h3IndexToSplitLong(edgeIndex);
68056
+ var lower = ref2[0];
68057
+ var upper = ref2[1];
68071
68058
  return readH3Index(H3.getDestinationH3IndexFromUnidirectionalEdge(lower, upper));
68072
68059
  }
68073
68060
  function h3UnidirectionalEdgeIsValid(edgeIndex) {
68074
- var ref = h3IndexToSplitLong(edgeIndex);
68075
- var lower = ref[0];
68076
- var upper = ref[1];
68061
+ var ref2 = h3IndexToSplitLong(edgeIndex);
68062
+ var lower = ref2[0];
68063
+ var upper = ref2[1];
68077
68064
  return Boolean(H3.h3UnidirectionalEdgeIsValid(lower, upper));
68078
68065
  }
68079
68066
  function getH3IndexesFromUnidirectionalEdge(edgeIndex) {
68080
- var ref = h3IndexToSplitLong(edgeIndex);
68081
- var lower = ref[0];
68082
- var upper = ref[1];
68067
+ var ref2 = h3IndexToSplitLong(edgeIndex);
68068
+ var lower = ref2[0];
68069
+ var upper = ref2[1];
68083
68070
  var count2 = 2;
68084
68071
  var hexagons = libh3._calloc(count2, SZ_H3INDEX);
68085
68072
  H3.getH3IndexesFromUnidirectionalEdge(lower, upper, hexagons);
@@ -68088,9 +68075,9 @@ function getH3IndexesFromUnidirectionalEdge(edgeIndex) {
68088
68075
  return out;
68089
68076
  }
68090
68077
  function getH3UnidirectionalEdgesFromHexagon(h3Index) {
68091
- var ref = h3IndexToSplitLong(h3Index);
68092
- var lower = ref[0];
68093
- var upper = ref[1];
68078
+ var ref2 = h3IndexToSplitLong(h3Index);
68079
+ var lower = ref2[0];
68080
+ var upper = ref2[1];
68094
68081
  var count2 = 6;
68095
68082
  var edges = libh3._calloc(count2, SZ_H3INDEX);
68096
68083
  H3.getH3UnidirectionalEdgesFromHexagon(lower, upper, edges);
@@ -68100,27 +68087,27 @@ function getH3UnidirectionalEdgesFromHexagon(h3Index) {
68100
68087
  }
68101
68088
  function getH3UnidirectionalEdgeBoundary(edgeIndex, formatAsGeoJson) {
68102
68089
  var geoBoundary = libh3._malloc(SZ_GEOBOUNDARY);
68103
- var ref = h3IndexToSplitLong(edgeIndex);
68104
- var lower = ref[0];
68105
- var upper = ref[1];
68090
+ var ref2 = h3IndexToSplitLong(edgeIndex);
68091
+ var lower = ref2[0];
68092
+ var upper = ref2[1];
68106
68093
  H3.getH3UnidirectionalEdgeBoundary(lower, upper, geoBoundary);
68107
68094
  var out = readGeoBoundary(geoBoundary, formatAsGeoJson);
68108
68095
  libh3._free(geoBoundary);
68109
68096
  return out;
68110
68097
  }
68111
68098
  function h3Distance(origin, destination2) {
68112
- var ref = h3IndexToSplitLong(origin);
68113
- var oLower = ref[0];
68114
- var oUpper = ref[1];
68099
+ var ref2 = h3IndexToSplitLong(origin);
68100
+ var oLower = ref2[0];
68101
+ var oUpper = ref2[1];
68115
68102
  var ref$1 = h3IndexToSplitLong(destination2);
68116
68103
  var dLower = ref$1[0];
68117
68104
  var dUpper = ref$1[1];
68118
68105
  return H3.h3Distance(oLower, oUpper, dLower, dUpper);
68119
68106
  }
68120
68107
  function h3Line(origin, destination2) {
68121
- var ref = h3IndexToSplitLong(origin);
68122
- var oLower = ref[0];
68123
- var oUpper = ref[1];
68108
+ var ref2 = h3IndexToSplitLong(origin);
68109
+ var oLower = ref2[0];
68110
+ var oUpper = ref2[1];
68124
68111
  var ref$1 = h3IndexToSplitLong(destination2);
68125
68112
  var dLower = ref$1[0];
68126
68113
  var dUpper = ref$1[1];
@@ -68194,9 +68181,9 @@ function pointDist(latlng1, latlng2, unit2) {
68194
68181
  return result;
68195
68182
  }
68196
68183
  function cellArea(h3Index, unit2) {
68197
- var ref = h3IndexToSplitLong(h3Index);
68198
- var lower = ref[0];
68199
- var upper = ref[1];
68184
+ var ref2 = h3IndexToSplitLong(h3Index);
68185
+ var lower = ref2[0];
68186
+ var upper = ref2[1];
68200
68187
  switch (unit2) {
68201
68188
  case UNITS.m2:
68202
68189
  return H3.cellAreaM2(lower, upper);
@@ -68209,9 +68196,9 @@ function cellArea(h3Index, unit2) {
68209
68196
  }
68210
68197
  }
68211
68198
  function exactEdgeLength(edge, unit2) {
68212
- var ref = h3IndexToSplitLong(edge);
68213
- var lower = ref[0];
68214
- var upper = ref[1];
68199
+ var ref2 = h3IndexToSplitLong(edge);
68200
+ var lower = ref2[0];
68201
+ var upper = ref2[1];
68215
68202
  switch (unit2) {
68216
68203
  case UNITS.m:
68217
68204
  return H3.exactEdgeLengthM(lower, upper);
@@ -68247,9 +68234,9 @@ function edgeLength(res, unit2) {
68247
68234
  }
68248
68235
  function numHexagons(res) {
68249
68236
  validateRes(res);
68250
- var ref = readLong(H3.numHexagons(res));
68251
- var lower = ref[0];
68252
- var upper = ref[1];
68237
+ var ref2 = readLong(H3.numHexagons(res));
68238
+ var lower = ref2[0];
68239
+ var upper = ref2[1];
68253
68240
  if (!upper) {
68254
68241
  return lower;
68255
68242
  }
@@ -70330,8 +70317,8 @@ const ATTRIBUTE_COMPONENT_TYPE_TO_ARRAY = {
70330
70317
  5126: Float32Array
70331
70318
  };
70332
70319
  function getAccessorTypeFromSize(size2) {
70333
- const type = TYPES[size2 - 1];
70334
- return type || TYPES[0];
70320
+ const type2 = TYPES[size2 - 1];
70321
+ return type2 || TYPES[0];
70335
70322
  }
70336
70323
  function getComponentTypeFromArray(typedArray) {
70337
70324
  const componentType = ARRAY_TO_COMPONENT_TYPE.get(typedArray.constructor);
@@ -71049,13 +71036,13 @@ function mergeMaps(m1, m2) {
71049
71036
  return new Map([...m1 || /* @__PURE__ */ new Map(), ...m2 || /* @__PURE__ */ new Map()]);
71050
71037
  }
71051
71038
  class Field {
71052
- constructor(name2, type, nullable = false, metadata = /* @__PURE__ */ new Map()) {
71039
+ constructor(name2, type2, nullable = false, metadata = /* @__PURE__ */ new Map()) {
71053
71040
  _defineProperty$e(this, "name", void 0);
71054
71041
  _defineProperty$e(this, "type", void 0);
71055
71042
  _defineProperty$e(this, "nullable", void 0);
71056
71043
  _defineProperty$e(this, "metadata", void 0);
71057
71044
  this.name = name2;
71058
- this.type = type;
71045
+ this.type = type2;
71059
71046
  this.nullable = nullable;
71060
71047
  this.metadata = metadata;
71061
71048
  }
@@ -71311,9 +71298,9 @@ function getArrowTypeFromTypedArray(array) {
71311
71298
  }
71312
71299
  }
71313
71300
  function deduceMeshField(attributeName, attribute, optionalMetadata) {
71314
- const type = getArrowTypeFromTypedArray(attribute.value);
71301
+ const type2 = getArrowTypeFromTypedArray(attribute.value);
71315
71302
  const metadata = optionalMetadata ? optionalMetadata : makeMeshAttributeMetadata(attribute);
71316
- const field = new Field(attributeName, new FixedSizeList(attribute.size, new Field("value", type)), false, metadata);
71303
+ const field = new Field(attributeName, new FixedSizeList(attribute.size, new Field("value", type2)), false, metadata);
71317
71304
  return field;
71318
71305
  }
71319
71306
  function makeMeshAttributeMetadata(attribute) {
@@ -71644,7 +71631,7 @@ class DracoParser {
71644
71631
  quantizedAttributes = []
71645
71632
  } = options;
71646
71633
  const attribute_type = dracoAttribute.attribute_type();
71647
- const skip = quantizedAttributes.map((type) => this.decoder[type]).includes(attribute_type);
71634
+ const skip = quantizedAttributes.map((type2) => this.decoder[type2]).includes(attribute_type);
71648
71635
  if (skip) {
71649
71636
  const transform2 = new this.draco.AttributeQuantizationTransform();
71650
71637
  try {
@@ -71666,7 +71653,7 @@ class DracoParser {
71666
71653
  octahedronAttributes = []
71667
71654
  } = options;
71668
71655
  const attribute_type = dracoAttribute.attribute_type();
71669
- const octahedron = octahedronAttributes.map((type) => this.decoder[type]).includes(attribute_type);
71656
+ const octahedron = octahedronAttributes.map((type2) => this.decoder[type2]).includes(attribute_type);
71670
71657
  if (octahedron) {
71671
71658
  const transform2 = new this.draco.AttributeQuantizationTransform();
71672
71659
  try {
@@ -72375,8 +72362,8 @@ const DEFAULT_SAMPLER = {
72375
72362
  function getBytesFromComponentType(componentType) {
72376
72363
  return BYTES[componentType];
72377
72364
  }
72378
- function getSizeFromAccessorType(type) {
72379
- return COMPONENTS[type];
72365
+ function getSizeFromAccessorType(type2) {
72366
+ return COMPONENTS[type2];
72380
72367
  }
72381
72368
  class GLTFPostProcessor {
72382
72369
  constructor() {
@@ -72693,7 +72680,7 @@ function isGLB(arrayBuffer2, byteOffset = 0, options = {}) {
72693
72680
  }
72694
72681
  function parseGLBSync(glb, arrayBuffer2, byteOffset = 0, options = {}) {
72695
72682
  const dataView = new DataView(arrayBuffer2);
72696
- const type = getMagicString$1(dataView, byteOffset + 0);
72683
+ const type2 = getMagicString$1(dataView, byteOffset + 0);
72697
72684
  const version2 = dataView.getUint32(byteOffset + 4, LE);
72698
72685
  const byteLength = dataView.getUint32(byteOffset + 8, LE);
72699
72686
  Object.assign(glb, {
@@ -72702,7 +72689,7 @@ function parseGLBSync(glb, arrayBuffer2, byteOffset = 0, options = {}) {
72702
72689
  byteLength,
72703
72690
  hasBinChunk: false
72704
72691
  },
72705
- type,
72692
+ type: type2,
72706
72693
  version: version2,
72707
72694
  json: {},
72708
72695
  binChunks: []
@@ -72840,8 +72827,8 @@ async function loadBuffers(gltf, options, context) {
72840
72827
  fetch: fetch2
72841
72828
  } = context;
72842
72829
  assert$3(fetch2);
72843
- const uri = resolveUrl(buffer2.uri, options);
72844
- const response = await (context === null || context === void 0 ? void 0 : (_context$fetch = context.fetch) === null || _context$fetch === void 0 ? void 0 : _context$fetch.call(context, uri));
72830
+ const uri2 = resolveUrl(buffer2.uri, options);
72831
+ const response = await (context === null || context === void 0 ? void 0 : (_context$fetch = context.fetch) === null || _context$fetch === void 0 ? void 0 : _context$fetch.call(context, uri2));
72845
72832
  const arrayBuffer2 = await (response === null || response === void 0 ? void 0 : (_response$arrayBuffer = response.arrayBuffer) === null || _response$arrayBuffer === void 0 ? void 0 : _response$arrayBuffer.call(response));
72846
72833
  gltf.buffers[i2] = {
72847
72834
  arrayBuffer: arrayBuffer2,
@@ -72884,8 +72871,8 @@ async function loadImage(gltf, image, index2, options, context) {
72884
72871
  } = context;
72885
72872
  let arrayBuffer2;
72886
72873
  if (image.uri && !image.hasOwnProperty("bufferView")) {
72887
- const uri = resolveUrl(image.uri, options);
72888
- const response = await fetch2(uri);
72874
+ const uri2 = resolveUrl(image.uri, options);
72875
+ const response = await fetch2(uri2);
72889
72876
  arrayBuffer2 = await response.arrayBuffer();
72890
72877
  }
72891
72878
  if (Number.isFinite(image.bufferView)) {
@@ -75631,8 +75618,8 @@ class Tileset3D {
75631
75618
  }
75632
75619
  _initializeTraverser() {
75633
75620
  let TraverserClass;
75634
- const type = this.type;
75635
- switch (type) {
75621
+ const type2 = this.type;
75622
+ switch (type2) {
75636
75623
  case TILESET_TYPE.TILES3D:
75637
75624
  TraverserClass = Tileset3DTraverser;
75638
75625
  break;
@@ -76082,15 +76069,15 @@ function createTypedArrayFromAccessor(tile3DAccessor, buffer2, byteOffset, lengt
76082
76069
  componentType
76083
76070
  } = tile3DAccessor;
76084
76071
  assert$b(tile3DAccessor.componentType);
76085
- const type = typeof componentType === "string" ? GLType.fromName(componentType) : componentType;
76072
+ const type2 = typeof componentType === "string" ? GLType.fromName(componentType) : componentType;
76086
76073
  const size2 = COMPONENTS_PER_ATTRIBUTE[tile3DAccessor.type];
76087
76074
  const unpacker = UNPACKER[tile3DAccessor.type];
76088
76075
  const packer = PACKER[tile3DAccessor.type];
76089
76076
  byteOffset += tile3DAccessor.byteOffset;
76090
- const values = GLType.createTypedArray(type, buffer2, byteOffset, size2 * length2);
76077
+ const values = GLType.createTypedArray(type2, buffer2, byteOffset, size2 * length2);
76091
76078
  return {
76092
76079
  values,
76093
- type,
76080
+ type: type2,
76094
76081
  size: size2,
76095
76082
  unpacker,
76096
76083
  packer
@@ -77323,14 +77310,14 @@ function formatTileData(tile, level, childCoordinates, options) {
77323
77310
  rootLodMetricValue,
77324
77311
  rootBoundingVolume
77325
77312
  } = options;
77326
- const uri = tile.contentUrl && tile.contentUrl.replace("".concat(basePath, "/"), "");
77313
+ const uri2 = tile.contentUrl && tile.contentUrl.replace("".concat(basePath, "/"), "");
77327
77314
  const lodMetricValue = rootLodMetricValue / 2 ** level;
77328
77315
  const boundingVolume = calculateBoundingVolumeForChildTile(level, rootBoundingVolume, childCoordinates);
77329
77316
  return {
77330
77317
  children: tile.children,
77331
77318
  contentUrl: tile.contentUrl,
77332
77319
  content: {
77333
- uri
77320
+ uri: uri2
77334
77321
  },
77335
77322
  id: tile.contentUrl,
77336
77323
  refine: getRefine2(refine),
@@ -77417,15 +77404,15 @@ function getRefine(refine) {
77417
77404
  return refine;
77418
77405
  }
77419
77406
  }
77420
- function resolveUri(uri, basePath) {
77407
+ function resolveUri(uri2, basePath) {
77421
77408
  const urlSchemeRegex = /^[a-z][0-9a-z+.-]*:/i;
77422
77409
  if (urlSchemeRegex.test(basePath)) {
77423
- const url = new URL(uri, "".concat(basePath, "/"));
77410
+ const url = new URL(uri2, "".concat(basePath, "/"));
77424
77411
  return decodeURI(url.toString());
77425
- } else if (uri.startsWith("/")) {
77426
- return uri;
77412
+ } else if (uri2.startsWith("/")) {
77413
+ return uri2;
77427
77414
  }
77428
- return "".concat(basePath, "/").concat(uri);
77415
+ return "".concat(basePath, "/").concat(uri2);
77429
77416
  }
77430
77417
  function normalizeTileData(tile, options) {
77431
77418
  if (!tile) {
@@ -79323,8 +79310,8 @@ function getSingleFeature(data, globalFeatureId) {
79323
79310
  }
79324
79311
  throw new Error("featureId:".concat(globalFeatureId, " not found"));
79325
79312
  }
79326
- function parseFeatures(data, type) {
79327
- const dataArray = normalizeInput(data, type);
79313
+ function parseFeatures(data, type2) {
79314
+ const dataArray = normalizeInput(data, type2);
79328
79315
  return parseFeatureCollection(dataArray);
79329
79316
  }
79330
79317
  function binaryToGeometry(data, startIndex, endIndex) {
@@ -79340,10 +79327,10 @@ function binaryToGeometry(data, startIndex, endIndex) {
79340
79327
  throw new Error("Unsupported geometry type: ".concat(unexpectedInput === null || unexpectedInput === void 0 ? void 0 : unexpectedInput.type));
79341
79328
  }
79342
79329
  }
79343
- function normalizeInput(data, type) {
79330
+ function normalizeInput(data, type2) {
79344
79331
  const isHeterogeneousType = Boolean(data.points || data.lines || data.polygons);
79345
79332
  if (!isHeterogeneousType) {
79346
- data.type = type || parseType(data);
79333
+ data.type = type2 || parseType(data);
79347
79334
  return [data];
79348
79335
  }
79349
79336
  const features = [];
@@ -79770,22 +79757,22 @@ Pbf.prototype = {
79770
79757
  return arr;
79771
79758
  },
79772
79759
  skip: function(val) {
79773
- var type = val & 7;
79774
- if (type === Pbf.Varint)
79760
+ var type2 = val & 7;
79761
+ if (type2 === Pbf.Varint)
79775
79762
  while (this.buf[this.pos++] > 127) {
79776
79763
  }
79777
- else if (type === Pbf.Bytes)
79764
+ else if (type2 === Pbf.Bytes)
79778
79765
  this.pos = this.readVarint() + this.pos;
79779
- else if (type === Pbf.Fixed32)
79766
+ else if (type2 === Pbf.Fixed32)
79780
79767
  this.pos += 4;
79781
- else if (type === Pbf.Fixed64)
79768
+ else if (type2 === Pbf.Fixed64)
79782
79769
  this.pos += 8;
79783
79770
  else
79784
- throw new Error("Unimplemented type: " + type);
79771
+ throw new Error("Unimplemented type: " + type2);
79785
79772
  },
79786
79773
  // === WRITING =================================================================
79787
- writeTag: function(tag2, type) {
79788
- this.writeVarint(tag2 << 3 | type);
79774
+ writeTag: function(tag2, type2) {
79775
+ this.writeVarint(tag2 << 3 | type2);
79789
79776
  },
79790
79777
  realloc: function(min2) {
79791
79778
  var length2 = this.length || 16;
@@ -80379,7 +80366,7 @@ let VectorTileFeature$1 = class VectorTileFeature {
80379
80366
  }
80380
80367
  _toGeoJSON(transform2) {
80381
80368
  let coords = this.loadGeometry();
80382
- let type = VectorTileFeature.types[this.type];
80369
+ let type2 = VectorTileFeature.types[this.type];
80383
80370
  let i2;
80384
80371
  let j;
80385
80372
  switch (this.type) {
@@ -80408,12 +80395,12 @@ let VectorTileFeature$1 = class VectorTileFeature {
80408
80395
  if (coords.length === 1) {
80409
80396
  coords = coords[0];
80410
80397
  } else {
80411
- type = "Multi".concat(type);
80398
+ type2 = "Multi".concat(type2);
80412
80399
  }
80413
80400
  const result = {
80414
80401
  type: "Feature",
80415
80402
  geometry: {
80416
- type,
80403
+ type: type2,
80417
80404
  coordinates: coords
80418
80405
  },
80419
80406
  properties: this.properties
@@ -80519,10 +80506,10 @@ function readTile$1(tag2, layers, pbf2) {
80519
80506
  }
80520
80507
  function classifyRings(geom) {
80521
80508
  const len2 = geom.indices.length;
80522
- const type = "Polygon";
80509
+ const type2 = "Polygon";
80523
80510
  if (len2 <= 1) {
80524
80511
  return {
80525
- type,
80512
+ type: type2,
80526
80513
  data: geom.data,
80527
80514
  areas: [[getPolygonSignedArea(geom.data)]],
80528
80515
  indices: [geom.indices]
@@ -80565,7 +80552,7 @@ function classifyRings(geom) {
80565
80552
  if (polygon2.length)
80566
80553
  polygons2.push(polygon2);
80567
80554
  return {
80568
- type,
80555
+ type: type2,
80569
80556
  areas,
80570
80557
  indices: polygons2,
80571
80558
  data: geom.data
@@ -81581,8 +81568,8 @@ function feature$1(geom, properties, options) {
81581
81568
  feat.geometry = geom;
81582
81569
  return feat;
81583
81570
  }
81584
- function geometry(type, coordinates2, _options) {
81585
- switch (type) {
81571
+ function geometry(type2, coordinates2, _options) {
81572
+ switch (type2) {
81586
81573
  case "Point":
81587
81574
  return point(coordinates2).geometry;
81588
81575
  case "LineString":
@@ -81596,7 +81583,7 @@ function geometry(type, coordinates2, _options) {
81596
81583
  case "MultiPolygon":
81597
81584
  return multiPolygon(coordinates2).geometry;
81598
81585
  default:
81599
- throw new Error(type + " is invalid");
81586
+ throw new Error(type2 + " is invalid");
81600
81587
  }
81601
81588
  }
81602
81589
  function point(coordinates2, properties, options) {
@@ -81879,7 +81866,7 @@ const es$7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty
81879
81866
  function coordEach$1(geojson, callback, excludeWrapCoord) {
81880
81867
  if (geojson === null)
81881
81868
  return;
81882
- var j, k, l2, geometry2, stopG, coords, geometryMaybeCollection, wrapShrink = 0, coordIndex = 0, isGeometryCollection, type = geojson.type, isFeatureCollection = type === "FeatureCollection", isFeature = type === "Feature", stop = isFeatureCollection ? geojson.features.length : 1;
81869
+ var j, k, l2, geometry2, stopG, coords, geometryMaybeCollection, wrapShrink = 0, coordIndex = 0, isGeometryCollection, type2 = geojson.type, isFeatureCollection = type2 === "FeatureCollection", isFeature = type2 === "Feature", stop = isFeatureCollection ? geojson.features.length : 1;
81883
81870
  for (var featureIndex = 0; featureIndex < stop; featureIndex++) {
81884
81871
  geometryMaybeCollection = isFeatureCollection ? geojson.features[featureIndex].geometry : isFeature ? geojson.geometry : geojson;
81885
81872
  isGeometryCollection = geometryMaybeCollection ? geometryMaybeCollection.type === "GeometryCollection" : false;
@@ -82132,8 +82119,8 @@ function geomReduce$1(geojson, callback, initialValue) {
82132
82119
  }
82133
82120
  function flattenEach$1(geojson, callback) {
82134
82121
  geomEach$1(geojson, function(geometry2, featureIndex, properties, bbox2, id) {
82135
- var type = geometry2 === null ? null : geometry2.type;
82136
- switch (type) {
82122
+ var type2 = geometry2 === null ? null : geometry2.type;
82123
+ switch (type2) {
82137
82124
  case null:
82138
82125
  case "Point":
82139
82126
  case "LineString":
@@ -82147,7 +82134,7 @@ function flattenEach$1(geojson, callback) {
82147
82134
  return;
82148
82135
  }
82149
82136
  var geomType;
82150
- switch (type) {
82137
+ switch (type2) {
82151
82138
  case "MultiPoint":
82152
82139
  geomType = "Point";
82153
82140
  break;
@@ -82192,8 +82179,8 @@ function segmentEach$1(geojson, callback) {
82192
82179
  var segmentIndex = 0;
82193
82180
  if (!feature2.geometry)
82194
82181
  return;
82195
- var type = feature2.geometry.type;
82196
- if (type === "Point" || type === "MultiPoint")
82182
+ var type2 = feature2.geometry.type;
82183
+ if (type2 === "Point" || type2 === "MultiPoint")
82197
82184
  return;
82198
82185
  var previousCoords;
82199
82186
  var previousFeatureIndex = 0;
@@ -82257,9 +82244,9 @@ function lineEach$1(geojson, callback) {
82257
82244
  flattenEach$1(geojson, function(feature2, featureIndex, multiFeatureIndex) {
82258
82245
  if (feature2.geometry === null)
82259
82246
  return;
82260
- var type = feature2.geometry.type;
82247
+ var type2 = feature2.geometry.type;
82261
82248
  var coords = feature2.geometry.coordinates;
82262
- switch (type) {
82249
+ switch (type2) {
82263
82250
  case "LineString":
82264
82251
  if (callback(feature2, featureIndex, multiFeatureIndex, 0, 0) === false)
82265
82252
  return false;
@@ -82543,15 +82530,15 @@ function containsNumber$1(coordinates2) {
82543
82530
  }
82544
82531
  throw new Error("coordinates must only contain numbers");
82545
82532
  }
82546
- function geojsonType$1(value, type, name2) {
82547
- if (!type || !name2) {
82533
+ function geojsonType$1(value, type2, name2) {
82534
+ if (!type2 || !name2) {
82548
82535
  throw new Error("type and name required");
82549
82536
  }
82550
- if (!value || value.type !== type) {
82551
- throw new Error("Invalid input to " + name2 + ": must be a " + type + ", given " + value.type);
82537
+ if (!value || value.type !== type2) {
82538
+ throw new Error("Invalid input to " + name2 + ": must be a " + type2 + ", given " + value.type);
82552
82539
  }
82553
82540
  }
82554
- function featureOf$1(feature2, type, name2) {
82541
+ function featureOf$1(feature2, type2, name2) {
82555
82542
  if (!feature2) {
82556
82543
  throw new Error("No feature passed");
82557
82544
  }
@@ -82561,11 +82548,11 @@ function featureOf$1(feature2, type, name2) {
82561
82548
  if (!feature2 || feature2.type !== "Feature" || !feature2.geometry) {
82562
82549
  throw new Error("Invalid input to " + name2 + ", Feature with geometry required");
82563
82550
  }
82564
- if (!feature2.geometry || feature2.geometry.type !== type) {
82565
- throw new Error("Invalid input to " + name2 + ": must be a " + type + ", given " + feature2.geometry.type);
82551
+ if (!feature2.geometry || feature2.geometry.type !== type2) {
82552
+ throw new Error("Invalid input to " + name2 + ": must be a " + type2 + ", given " + feature2.geometry.type);
82566
82553
  }
82567
82554
  }
82568
- function collectionOf$1(featureCollection2, type, name2) {
82555
+ function collectionOf$1(featureCollection2, type2, name2) {
82569
82556
  if (!featureCollection2) {
82570
82557
  throw new Error("No featureCollection passed");
82571
82558
  }
@@ -82580,8 +82567,8 @@ function collectionOf$1(featureCollection2, type, name2) {
82580
82567
  if (!feature2 || feature2.type !== "Feature" || !feature2.geometry) {
82581
82568
  throw new Error("Invalid input to " + name2 + ", Feature with geometry required");
82582
82569
  }
82583
- if (!feature2.geometry || feature2.geometry.type !== type) {
82584
- throw new Error("Invalid input to " + name2 + ": must be a " + type + ", given " + feature2.geometry.type);
82570
+ if (!feature2.geometry || feature2.geometry.type !== type2) {
82571
+ throw new Error("Invalid input to " + name2 + ": must be a " + type2 + ", given " + feature2.geometry.type);
82585
82572
  }
82586
82573
  }
82587
82574
  }
@@ -82693,13 +82680,13 @@ function booleanPointInPolygon$1(point2, polygon2, options) {
82693
82680
  }
82694
82681
  var pt = getCoord$1(point2);
82695
82682
  var geom = getGeom$1(polygon2);
82696
- var type = geom.type;
82683
+ var type2 = geom.type;
82697
82684
  var bbox2 = polygon2.bbox;
82698
82685
  var polys = geom.coordinates;
82699
82686
  if (bbox2 && inBBox$1(pt, bbox2) === false) {
82700
82687
  return false;
82701
82688
  }
82702
- if (type === "Polygon") {
82689
+ if (type2 === "Polygon") {
82703
82690
  polys = [polys];
82704
82691
  }
82705
82692
  var insidePoly = false;
@@ -83401,8 +83388,8 @@ var js$v = {};
83401
83388
  return feat;
83402
83389
  }
83403
83390
  exports2.feature = feature2;
83404
- function geometry2(type, coordinates2, _options) {
83405
- switch (type) {
83391
+ function geometry2(type2, coordinates2, _options) {
83392
+ switch (type2) {
83406
83393
  case "Point":
83407
83394
  return point2(coordinates2).geometry;
83408
83395
  case "LineString":
@@ -83416,7 +83403,7 @@ var js$v = {};
83416
83403
  case "MultiPolygon":
83417
83404
  return multiPolygon2(coordinates2).geometry;
83418
83405
  default:
83419
- throw new Error(type + " is invalid");
83406
+ throw new Error(type2 + " is invalid");
83420
83407
  }
83421
83408
  }
83422
83409
  exports2.geometry = geometry2;
@@ -83696,7 +83683,7 @@ var helpers$8 = require$$0$5;
83696
83683
  function coordEach(geojson, callback, excludeWrapCoord) {
83697
83684
  if (geojson === null)
83698
83685
  return;
83699
- var j, k, l2, geometry2, stopG, coords, geometryMaybeCollection, wrapShrink = 0, coordIndex = 0, isGeometryCollection, type = geojson.type, isFeatureCollection = type === "FeatureCollection", isFeature = type === "Feature", stop = isFeatureCollection ? geojson.features.length : 1;
83686
+ var j, k, l2, geometry2, stopG, coords, geometryMaybeCollection, wrapShrink = 0, coordIndex = 0, isGeometryCollection, type2 = geojson.type, isFeatureCollection = type2 === "FeatureCollection", isFeature = type2 === "Feature", stop = isFeatureCollection ? geojson.features.length : 1;
83700
83687
  for (var featureIndex = 0; featureIndex < stop; featureIndex++) {
83701
83688
  geometryMaybeCollection = isFeatureCollection ? geojson.features[featureIndex].geometry : isFeature ? geojson.geometry : geojson;
83702
83689
  isGeometryCollection = geometryMaybeCollection ? geometryMaybeCollection.type === "GeometryCollection" : false;
@@ -83949,8 +83936,8 @@ function geomReduce(geojson, callback, initialValue) {
83949
83936
  }
83950
83937
  function flattenEach(geojson, callback) {
83951
83938
  geomEach(geojson, function(geometry2, featureIndex, properties, bbox2, id) {
83952
- var type = geometry2 === null ? null : geometry2.type;
83953
- switch (type) {
83939
+ var type2 = geometry2 === null ? null : geometry2.type;
83940
+ switch (type2) {
83954
83941
  case null:
83955
83942
  case "Point":
83956
83943
  case "LineString":
@@ -83964,7 +83951,7 @@ function flattenEach(geojson, callback) {
83964
83951
  return;
83965
83952
  }
83966
83953
  var geomType;
83967
- switch (type) {
83954
+ switch (type2) {
83968
83955
  case "MultiPoint":
83969
83956
  geomType = "Point";
83970
83957
  break;
@@ -84009,8 +83996,8 @@ function segmentEach(geojson, callback) {
84009
83996
  var segmentIndex = 0;
84010
83997
  if (!feature2.geometry)
84011
83998
  return;
84012
- var type = feature2.geometry.type;
84013
- if (type === "Point" || type === "MultiPoint")
83999
+ var type2 = feature2.geometry.type;
84000
+ if (type2 === "Point" || type2 === "MultiPoint")
84014
84001
  return;
84015
84002
  var previousCoords;
84016
84003
  var previousFeatureIndex = 0;
@@ -84074,9 +84061,9 @@ function lineEach(geojson, callback) {
84074
84061
  flattenEach(geojson, function(feature2, featureIndex, multiFeatureIndex) {
84075
84062
  if (feature2.geometry === null)
84076
84063
  return;
84077
- var type = feature2.geometry.type;
84064
+ var type2 = feature2.geometry.type;
84078
84065
  var coords = feature2.geometry.coordinates;
84079
- switch (type) {
84066
+ switch (type2) {
84080
84067
  case "LineString":
84081
84068
  if (callback(feature2, featureIndex, multiFeatureIndex, 0, 0) === false)
84082
84069
  return false;
@@ -84511,16 +84498,16 @@ function containsNumber(coordinates2) {
84511
84498
  throw new Error("coordinates must only contain numbers");
84512
84499
  }
84513
84500
  js$s.containsNumber = containsNumber;
84514
- function geojsonType(value, type, name2) {
84515
- if (!type || !name2) {
84501
+ function geojsonType(value, type2, name2) {
84502
+ if (!type2 || !name2) {
84516
84503
  throw new Error("type and name required");
84517
84504
  }
84518
- if (!value || value.type !== type) {
84519
- throw new Error("Invalid input to " + name2 + ": must be a " + type + ", given " + value.type);
84505
+ if (!value || value.type !== type2) {
84506
+ throw new Error("Invalid input to " + name2 + ": must be a " + type2 + ", given " + value.type);
84520
84507
  }
84521
84508
  }
84522
84509
  js$s.geojsonType = geojsonType;
84523
- function featureOf(feature2, type, name2) {
84510
+ function featureOf(feature2, type2, name2) {
84524
84511
  if (!feature2) {
84525
84512
  throw new Error("No feature passed");
84526
84513
  }
@@ -84530,12 +84517,12 @@ function featureOf(feature2, type, name2) {
84530
84517
  if (!feature2 || feature2.type !== "Feature" || !feature2.geometry) {
84531
84518
  throw new Error("Invalid input to " + name2 + ", Feature with geometry required");
84532
84519
  }
84533
- if (!feature2.geometry || feature2.geometry.type !== type) {
84534
- throw new Error("Invalid input to " + name2 + ": must be a " + type + ", given " + feature2.geometry.type);
84520
+ if (!feature2.geometry || feature2.geometry.type !== type2) {
84521
+ throw new Error("Invalid input to " + name2 + ": must be a " + type2 + ", given " + feature2.geometry.type);
84535
84522
  }
84536
84523
  }
84537
84524
  js$s.featureOf = featureOf;
84538
- function collectionOf(featureCollection2, type, name2) {
84525
+ function collectionOf(featureCollection2, type2, name2) {
84539
84526
  if (!featureCollection2) {
84540
84527
  throw new Error("No featureCollection passed");
84541
84528
  }
@@ -84550,8 +84537,8 @@ function collectionOf(featureCollection2, type, name2) {
84550
84537
  if (!feature2 || feature2.type !== "Feature" || !feature2.geometry) {
84551
84538
  throw new Error("Invalid input to " + name2 + ", Feature with geometry required");
84552
84539
  }
84553
- if (!feature2.geometry || feature2.geometry.type !== type) {
84554
- throw new Error("Invalid input to " + name2 + ": must be a " + type + ", given " + feature2.geometry.type);
84540
+ if (!feature2.geometry || feature2.geometry.type !== type2) {
84541
+ throw new Error("Invalid input to " + name2 + ": must be a " + type2 + ", given " + feature2.geometry.type);
84555
84542
  }
84556
84543
  }
84557
84544
  }
@@ -84889,7 +84876,7 @@ function requireImplementation() {
84889
84876
  implementation$8 = keysShim2;
84890
84877
  return implementation$8;
84891
84878
  }
84892
- var slice$1 = Array.prototype.slice;
84879
+ var slice = Array.prototype.slice;
84893
84880
  var isArgs = isArguments$2;
84894
84881
  var origKeys = Object.keys;
84895
84882
  var keysShim = origKeys ? function keys(o2) {
@@ -84905,7 +84892,7 @@ keysShim.shim = function shimObjectKeys() {
84905
84892
  if (!keysWorksWithArguments) {
84906
84893
  Object.keys = function keys3(object2) {
84907
84894
  if (isArgs(object2)) {
84908
- return originalKeys(slice$1.call(object2));
84895
+ return originalKeys(slice.call(object2));
84909
84896
  }
84910
84897
  return originalKeys(object2);
84911
84898
  };
@@ -84916,7 +84903,7 @@ keysShim.shim = function shimObjectKeys() {
84916
84903
  return Object.keys || keysShim;
84917
84904
  };
84918
84905
  var objectKeys$1 = keysShim;
84919
- var shams$1 = function hasSymbols() {
84906
+ var shams$2 = function hasSymbols() {
84920
84907
  if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
84921
84908
  return false;
84922
84909
  }
@@ -84961,13 +84948,20 @@ var shams$1 = function hasSymbols() {
84961
84948
  }
84962
84949
  return true;
84963
84950
  };
84964
- var hasSymbols$3 = shams$1;
84965
- var shams = function hasToStringTagShams() {
84966
- return hasSymbols$3() && !!Symbol.toStringTag;
84967
- };
84951
+ var hasSymbols$4 = shams$2;
84952
+ var shams$1 = function hasToStringTagShams() {
84953
+ return hasSymbols$4() && !!Symbol.toStringTag;
84954
+ };
84955
+ var esErrors = Error;
84956
+ var _eval = EvalError;
84957
+ var range$3 = RangeError;
84958
+ var ref = ReferenceError;
84959
+ var syntax = SyntaxError;
84960
+ var type = TypeError;
84961
+ var uri = URIError;
84968
84962
  var origSymbol = typeof Symbol !== "undefined" && Symbol;
84969
- var hasSymbolSham = shams$1;
84970
- var hasSymbols$2 = function hasNativeSymbols() {
84963
+ var hasSymbolSham = shams$2;
84964
+ var hasSymbols$3 = function hasNativeSymbols() {
84971
84965
  if (typeof origSymbol !== "function") {
84972
84966
  return false;
84973
84967
  }
@@ -84985,44 +84979,70 @@ var hasSymbols$2 = function hasNativeSymbols() {
84985
84979
  var test = {
84986
84980
  foo: {}
84987
84981
  };
84988
- var $Object = Object;
84982
+ var $Object$1 = Object;
84989
84983
  var hasProto$1 = function hasProto() {
84990
- return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
84984
+ return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object$1);
84991
84985
  };
84992
84986
  var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
84993
- var slice = Array.prototype.slice;
84994
84987
  var toStr$2 = Object.prototype.toString;
84988
+ var max$1 = Math.max;
84995
84989
  var funcType = "[object Function]";
84990
+ var concatty = function concatty2(a2, b) {
84991
+ var arr = [];
84992
+ for (var i2 = 0; i2 < a2.length; i2 += 1) {
84993
+ arr[i2] = a2[i2];
84994
+ }
84995
+ for (var j = 0; j < b.length; j += 1) {
84996
+ arr[j + a2.length] = b[j];
84997
+ }
84998
+ return arr;
84999
+ };
85000
+ var slicy = function slicy2(arrLike, offset) {
85001
+ var arr = [];
85002
+ for (var i2 = offset || 0, j = 0; i2 < arrLike.length; i2 += 1, j += 1) {
85003
+ arr[j] = arrLike[i2];
85004
+ }
85005
+ return arr;
85006
+ };
85007
+ var joiny = function(arr, joiner) {
85008
+ var str = "";
85009
+ for (var i2 = 0; i2 < arr.length; i2 += 1) {
85010
+ str += arr[i2];
85011
+ if (i2 + 1 < arr.length) {
85012
+ str += joiner;
85013
+ }
85014
+ }
85015
+ return str;
85016
+ };
84996
85017
  var implementation$7 = function bind2(that) {
84997
85018
  var target = this;
84998
- if (typeof target !== "function" || toStr$2.call(target) !== funcType) {
85019
+ if (typeof target !== "function" || toStr$2.apply(target) !== funcType) {
84999
85020
  throw new TypeError(ERROR_MESSAGE + target);
85000
85021
  }
85001
- var args = slice.call(arguments, 1);
85022
+ var args = slicy(arguments, 1);
85002
85023
  var bound;
85003
85024
  var binder = function() {
85004
85025
  if (this instanceof bound) {
85005
85026
  var result = target.apply(
85006
85027
  this,
85007
- args.concat(slice.call(arguments))
85028
+ concatty(args, arguments)
85008
85029
  );
85009
85030
  if (Object(result) === result) {
85010
85031
  return result;
85011
85032
  }
85012
85033
  return this;
85013
- } else {
85014
- return target.apply(
85015
- that,
85016
- args.concat(slice.call(arguments))
85017
- );
85018
85034
  }
85035
+ return target.apply(
85036
+ that,
85037
+ concatty(args, arguments)
85038
+ );
85019
85039
  };
85020
- var boundLength = Math.max(0, target.length - args.length);
85040
+ var boundLength = max$1(0, target.length - args.length);
85021
85041
  var boundArgs = [];
85022
85042
  for (var i2 = 0; i2 < boundLength; i2++) {
85023
- boundArgs.push("$" + i2);
85043
+ boundArgs[i2] = "$" + i2;
85024
85044
  }
85025
- bound = Function("binder", "return function (" + boundArgs.join(",") + "){ return binder.apply(this,arguments); }")(binder);
85045
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
85026
85046
  if (target.prototype) {
85027
85047
  var Empty = function Empty2() {
85028
85048
  };
@@ -85034,42 +85054,49 @@ var implementation$7 = function bind2(that) {
85034
85054
  };
85035
85055
  var implementation$6 = implementation$7;
85036
85056
  var functionBind = Function.prototype.bind || implementation$6;
85057
+ var call = Function.prototype.call;
85058
+ var $hasOwn = Object.prototype.hasOwnProperty;
85037
85059
  var bind$1 = functionBind;
85038
- var src = bind$1.call(Function.call, Object.prototype.hasOwnProperty);
85060
+ var hasown = bind$1.call(call, $hasOwn);
85039
85061
  var undefined$1;
85040
- var $SyntaxError = SyntaxError;
85062
+ var $Error = esErrors;
85063
+ var $EvalError = _eval;
85064
+ var $RangeError = range$3;
85065
+ var $ReferenceError = ref;
85066
+ var $SyntaxError$1 = syntax;
85067
+ var $TypeError$4 = type;
85068
+ var $URIError = uri;
85041
85069
  var $Function = Function;
85042
- var $TypeError = TypeError;
85043
85070
  var getEvalledConstructor = function(expressionSyntax) {
85044
85071
  try {
85045
85072
  return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
85046
85073
  } catch (e2) {
85047
85074
  }
85048
85075
  };
85049
- var $gOPD$1 = Object.getOwnPropertyDescriptor;
85050
- if ($gOPD$1) {
85076
+ var $gOPD$2 = Object.getOwnPropertyDescriptor;
85077
+ if ($gOPD$2) {
85051
85078
  try {
85052
- $gOPD$1({}, "");
85079
+ $gOPD$2({}, "");
85053
85080
  } catch (e2) {
85054
- $gOPD$1 = null;
85081
+ $gOPD$2 = null;
85055
85082
  }
85056
85083
  }
85057
85084
  var throwTypeError = function() {
85058
- throw new $TypeError();
85085
+ throw new $TypeError$4();
85059
85086
  };
85060
- var ThrowTypeError = $gOPD$1 ? function() {
85087
+ var ThrowTypeError = $gOPD$2 ? function() {
85061
85088
  try {
85062
85089
  arguments.callee;
85063
85090
  return throwTypeError;
85064
85091
  } catch (calleeThrows) {
85065
85092
  try {
85066
- return $gOPD$1(arguments, "callee").get;
85093
+ return $gOPD$2(arguments, "callee").get;
85067
85094
  } catch (gOPDthrows) {
85068
85095
  return throwTypeError;
85069
85096
  }
85070
85097
  }
85071
85098
  }() : throwTypeError;
85072
- var hasSymbols$1 = hasSymbols$2();
85099
+ var hasSymbols$2 = hasSymbols$3();
85073
85100
  var hasProto2 = hasProto$1();
85074
85101
  var getProto$1 = Object.getPrototypeOf || (hasProto2 ? function(x2) {
85075
85102
  return x2.__proto__;
@@ -85077,10 +85104,11 @@ var getProto$1 = Object.getPrototypeOf || (hasProto2 ? function(x2) {
85077
85104
  var needsEval = {};
85078
85105
  var TypedArray = typeof Uint8Array === "undefined" || !getProto$1 ? undefined$1 : getProto$1(Uint8Array);
85079
85106
  var INTRINSICS = {
85107
+ __proto__: null,
85080
85108
  "%AggregateError%": typeof AggregateError === "undefined" ? undefined$1 : AggregateError,
85081
85109
  "%Array%": Array,
85082
85110
  "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined$1 : ArrayBuffer,
85083
- "%ArrayIteratorPrototype%": hasSymbols$1 && getProto$1 ? getProto$1([][Symbol.iterator]()) : undefined$1,
85111
+ "%ArrayIteratorPrototype%": hasSymbols$2 && getProto$1 ? getProto$1([][Symbol.iterator]()) : undefined$1,
85084
85112
  "%AsyncFromSyncIteratorPrototype%": undefined$1,
85085
85113
  "%AsyncFunction%": needsEval,
85086
85114
  "%AsyncGenerator%": needsEval,
@@ -85097,10 +85125,10 @@ var INTRINSICS = {
85097
85125
  "%decodeURIComponent%": decodeURIComponent,
85098
85126
  "%encodeURI%": encodeURI,
85099
85127
  "%encodeURIComponent%": encodeURIComponent,
85100
- "%Error%": Error,
85128
+ "%Error%": $Error,
85101
85129
  "%eval%": eval,
85102
85130
  // eslint-disable-line no-eval
85103
- "%EvalError%": EvalError,
85131
+ "%EvalError%": $EvalError,
85104
85132
  "%Float32Array%": typeof Float32Array === "undefined" ? undefined$1 : Float32Array,
85105
85133
  "%Float64Array%": typeof Float64Array === "undefined" ? undefined$1 : Float64Array,
85106
85134
  "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined$1 : FinalizationRegistry,
@@ -85111,10 +85139,10 @@ var INTRINSICS = {
85111
85139
  "%Int32Array%": typeof Int32Array === "undefined" ? undefined$1 : Int32Array,
85112
85140
  "%isFinite%": isFinite,
85113
85141
  "%isNaN%": isNaN,
85114
- "%IteratorPrototype%": hasSymbols$1 && getProto$1 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$1,
85142
+ "%IteratorPrototype%": hasSymbols$2 && getProto$1 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$1,
85115
85143
  "%JSON%": typeof JSON === "object" ? JSON : undefined$1,
85116
85144
  "%Map%": typeof Map === "undefined" ? undefined$1 : Map,
85117
- "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols$1 || !getProto$1 ? undefined$1 : getProto$1((/* @__PURE__ */ new Map())[Symbol.iterator]()),
85145
+ "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols$2 || !getProto$1 ? undefined$1 : getProto$1((/* @__PURE__ */ new Map())[Symbol.iterator]()),
85118
85146
  "%Math%": Math,
85119
85147
  "%Number%": Number,
85120
85148
  "%Object%": Object,
@@ -85122,25 +85150,25 @@ var INTRINSICS = {
85122
85150
  "%parseInt%": parseInt,
85123
85151
  "%Promise%": typeof Promise === "undefined" ? undefined$1 : Promise,
85124
85152
  "%Proxy%": typeof Proxy === "undefined" ? undefined$1 : Proxy,
85125
- "%RangeError%": RangeError,
85126
- "%ReferenceError%": ReferenceError,
85153
+ "%RangeError%": $RangeError,
85154
+ "%ReferenceError%": $ReferenceError,
85127
85155
  "%Reflect%": typeof Reflect === "undefined" ? undefined$1 : Reflect,
85128
85156
  "%RegExp%": RegExp,
85129
85157
  "%Set%": typeof Set === "undefined" ? undefined$1 : Set,
85130
- "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols$1 || !getProto$1 ? undefined$1 : getProto$1((/* @__PURE__ */ new Set())[Symbol.iterator]()),
85158
+ "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols$2 || !getProto$1 ? undefined$1 : getProto$1((/* @__PURE__ */ new Set())[Symbol.iterator]()),
85131
85159
  "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined$1 : SharedArrayBuffer,
85132
85160
  "%String%": String,
85133
- "%StringIteratorPrototype%": hasSymbols$1 && getProto$1 ? getProto$1(""[Symbol.iterator]()) : undefined$1,
85134
- "%Symbol%": hasSymbols$1 ? Symbol : undefined$1,
85135
- "%SyntaxError%": $SyntaxError,
85161
+ "%StringIteratorPrototype%": hasSymbols$2 && getProto$1 ? getProto$1(""[Symbol.iterator]()) : undefined$1,
85162
+ "%Symbol%": hasSymbols$2 ? Symbol : undefined$1,
85163
+ "%SyntaxError%": $SyntaxError$1,
85136
85164
  "%ThrowTypeError%": ThrowTypeError,
85137
85165
  "%TypedArray%": TypedArray,
85138
- "%TypeError%": $TypeError,
85166
+ "%TypeError%": $TypeError$4,
85139
85167
  "%Uint8Array%": typeof Uint8Array === "undefined" ? undefined$1 : Uint8Array,
85140
85168
  "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined$1 : Uint8ClampedArray,
85141
85169
  "%Uint16Array%": typeof Uint16Array === "undefined" ? undefined$1 : Uint16Array,
85142
85170
  "%Uint32Array%": typeof Uint32Array === "undefined" ? undefined$1 : Uint32Array,
85143
- "%URIError%": URIError,
85171
+ "%URIError%": $URIError,
85144
85172
  "%WeakMap%": typeof WeakMap === "undefined" ? undefined$1 : WeakMap,
85145
85173
  "%WeakRef%": typeof WeakRef === "undefined" ? undefined$1 : WeakRef,
85146
85174
  "%WeakSet%": typeof WeakSet === "undefined" ? undefined$1 : WeakSet
@@ -85176,6 +85204,7 @@ var doEval = function doEval2(name2) {
85176
85204
  return value;
85177
85205
  };
85178
85206
  var LEGACY_ALIASES = {
85207
+ __proto__: null,
85179
85208
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
85180
85209
  "%ArrayPrototype%": ["Array", "prototype"],
85181
85210
  "%ArrayProto_entries%": ["Array", "prototype", "entries"],
@@ -85229,7 +85258,7 @@ var LEGACY_ALIASES = {
85229
85258
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
85230
85259
  };
85231
85260
  var bind3 = functionBind;
85232
- var hasOwn = src;
85261
+ var hasOwn = hasown;
85233
85262
  var $concat = bind3.call(Function.call, Array.prototype.concat);
85234
85263
  var $spliceApply = bind3.call(Function.apply, Array.prototype.splice);
85235
85264
  var $replace = bind3.call(Function.call, String.prototype.replace);
@@ -85241,9 +85270,9 @@ var stringToPath = function stringToPath2(string) {
85241
85270
  var first = $strSlice(string, 0, 1);
85242
85271
  var last = $strSlice(string, -1);
85243
85272
  if (first === "%" && last !== "%") {
85244
- throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
85273
+ throw new $SyntaxError$1("invalid intrinsic syntax, expected closing `%`");
85245
85274
  } else if (last === "%" && first !== "%") {
85246
- throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
85275
+ throw new $SyntaxError$1("invalid intrinsic syntax, expected opening `%`");
85247
85276
  }
85248
85277
  var result = [];
85249
85278
  $replace(string, rePropName, function(match, number2, quote, subString) {
@@ -85264,7 +85293,7 @@ var getBaseIntrinsic = function getBaseIntrinsic2(name2, allowMissing) {
85264
85293
  value = doEval(intrinsicName);
85265
85294
  }
85266
85295
  if (typeof value === "undefined" && !allowMissing) {
85267
- throw new $TypeError("intrinsic " + name2 + " exists, but is not available. Please file an issue!");
85296
+ throw new $TypeError$4("intrinsic " + name2 + " exists, but is not available. Please file an issue!");
85268
85297
  }
85269
85298
  return {
85270
85299
  alias,
@@ -85272,17 +85301,17 @@ var getBaseIntrinsic = function getBaseIntrinsic2(name2, allowMissing) {
85272
85301
  value
85273
85302
  };
85274
85303
  }
85275
- throw new $SyntaxError("intrinsic " + name2 + " does not exist!");
85304
+ throw new $SyntaxError$1("intrinsic " + name2 + " does not exist!");
85276
85305
  };
85277
85306
  var getIntrinsic = function GetIntrinsic(name2, allowMissing) {
85278
85307
  if (typeof name2 !== "string" || name2.length === 0) {
85279
- throw new $TypeError("intrinsic name must be a non-empty string");
85308
+ throw new $TypeError$4("intrinsic name must be a non-empty string");
85280
85309
  }
85281
85310
  if (arguments.length > 1 && typeof allowMissing !== "boolean") {
85282
- throw new $TypeError('"allowMissing" argument must be a boolean');
85311
+ throw new $TypeError$4('"allowMissing" argument must be a boolean');
85283
85312
  }
85284
85313
  if ($exec$1(/^%?[^%]*%?$/, name2) === null) {
85285
- throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
85314
+ throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
85286
85315
  }
85287
85316
  var parts = stringToPath(name2);
85288
85317
  var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
@@ -85300,7 +85329,7 @@ var getIntrinsic = function GetIntrinsic(name2, allowMissing) {
85300
85329
  var first = $strSlice(part, 0, 1);
85301
85330
  var last = $strSlice(part, -1);
85302
85331
  if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {
85303
- throw new $SyntaxError("property names with quotes must have matching quotes");
85332
+ throw new $SyntaxError$1("property names with quotes must have matching quotes");
85304
85333
  }
85305
85334
  if (part === "constructor" || !isOwn) {
85306
85335
  skipFurtherCaching = true;
@@ -85312,12 +85341,12 @@ var getIntrinsic = function GetIntrinsic(name2, allowMissing) {
85312
85341
  } else if (value != null) {
85313
85342
  if (!(part in value)) {
85314
85343
  if (!allowMissing) {
85315
- throw new $TypeError("base intrinsic for " + name2 + " exists, but the property is not available.");
85344
+ throw new $TypeError$4("base intrinsic for " + name2 + " exists, but the property is not available.");
85316
85345
  }
85317
85346
  return void 0;
85318
85347
  }
85319
- if ($gOPD$1 && i2 + 1 >= parts.length) {
85320
- var desc = $gOPD$1(value, part);
85348
+ if ($gOPD$2 && i2 + 1 >= parts.length) {
85349
+ var desc = $gOPD$2(value, part);
85321
85350
  isOwn = !!desc;
85322
85351
  if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
85323
85352
  value = desc.get;
@@ -85336,35 +85365,148 @@ var getIntrinsic = function GetIntrinsic(name2, allowMissing) {
85336
85365
  return value;
85337
85366
  };
85338
85367
  var callBind$3 = { exports: {} };
85368
+ var GetIntrinsic$4 = getIntrinsic;
85369
+ var $defineProperty$3 = GetIntrinsic$4("%Object.defineProperty%", true) || false;
85370
+ if ($defineProperty$3) {
85371
+ try {
85372
+ $defineProperty$3({}, "a", { value: 1 });
85373
+ } catch (e2) {
85374
+ $defineProperty$3 = false;
85375
+ }
85376
+ }
85377
+ var esDefineProperty = $defineProperty$3;
85378
+ var GetIntrinsic$3 = getIntrinsic;
85379
+ var $gOPD$1 = GetIntrinsic$3("%Object.getOwnPropertyDescriptor%", true);
85380
+ if ($gOPD$1) {
85381
+ try {
85382
+ $gOPD$1([], "length");
85383
+ } catch (e2) {
85384
+ $gOPD$1 = null;
85385
+ }
85386
+ }
85387
+ var gopd$1 = $gOPD$1;
85388
+ var $defineProperty$2 = esDefineProperty;
85389
+ var $SyntaxError = syntax;
85390
+ var $TypeError$3 = type;
85391
+ var gopd = gopd$1;
85392
+ var defineDataProperty$1 = function defineDataProperty(obj, property, value) {
85393
+ if (!obj || typeof obj !== "object" && typeof obj !== "function") {
85394
+ throw new $TypeError$3("`obj` must be an object or a function`");
85395
+ }
85396
+ if (typeof property !== "string" && typeof property !== "symbol") {
85397
+ throw new $TypeError$3("`property` must be a string or a symbol`");
85398
+ }
85399
+ if (arguments.length > 3 && typeof arguments[3] !== "boolean" && arguments[3] !== null) {
85400
+ throw new $TypeError$3("`nonEnumerable`, if provided, must be a boolean or null");
85401
+ }
85402
+ if (arguments.length > 4 && typeof arguments[4] !== "boolean" && arguments[4] !== null) {
85403
+ throw new $TypeError$3("`nonWritable`, if provided, must be a boolean or null");
85404
+ }
85405
+ if (arguments.length > 5 && typeof arguments[5] !== "boolean" && arguments[5] !== null) {
85406
+ throw new $TypeError$3("`nonConfigurable`, if provided, must be a boolean or null");
85407
+ }
85408
+ if (arguments.length > 6 && typeof arguments[6] !== "boolean") {
85409
+ throw new $TypeError$3("`loose`, if provided, must be a boolean");
85410
+ }
85411
+ var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
85412
+ var nonWritable = arguments.length > 4 ? arguments[4] : null;
85413
+ var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
85414
+ var loose = arguments.length > 6 ? arguments[6] : false;
85415
+ var desc = !!gopd && gopd(obj, property);
85416
+ if ($defineProperty$2) {
85417
+ $defineProperty$2(obj, property, {
85418
+ configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
85419
+ enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
85420
+ value,
85421
+ writable: nonWritable === null && desc ? desc.writable : !nonWritable
85422
+ });
85423
+ } else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) {
85424
+ obj[property] = value;
85425
+ } else {
85426
+ throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
85427
+ }
85428
+ };
85429
+ var $defineProperty$1 = esDefineProperty;
85430
+ var hasPropertyDescriptors$1 = function hasPropertyDescriptors() {
85431
+ return !!$defineProperty$1;
85432
+ };
85433
+ hasPropertyDescriptors$1.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
85434
+ if (!$defineProperty$1) {
85435
+ return null;
85436
+ }
85437
+ try {
85438
+ return $defineProperty$1([], "length", { value: 1 }).length !== 1;
85439
+ } catch (e2) {
85440
+ return true;
85441
+ }
85442
+ };
85443
+ var hasPropertyDescriptors_1$1 = hasPropertyDescriptors$1;
85444
+ var GetIntrinsic$2 = getIntrinsic;
85445
+ var define$4 = defineDataProperty$1;
85446
+ var hasDescriptors$1 = hasPropertyDescriptors_1$1();
85447
+ var gOPD$3 = gopd$1;
85448
+ var $TypeError$2 = type;
85449
+ var $floor = GetIntrinsic$2("%Math.floor%");
85450
+ var setFunctionLength = function setFunctionLength2(fn, length2) {
85451
+ if (typeof fn !== "function") {
85452
+ throw new $TypeError$2("`fn` is not a function");
85453
+ }
85454
+ if (typeof length2 !== "number" || length2 < 0 || length2 > 4294967295 || $floor(length2) !== length2) {
85455
+ throw new $TypeError$2("`length` must be a positive 32-bit integer");
85456
+ }
85457
+ var loose = arguments.length > 2 && !!arguments[2];
85458
+ var functionLengthIsConfigurable = true;
85459
+ var functionLengthIsWritable = true;
85460
+ if ("length" in fn && gOPD$3) {
85461
+ var desc = gOPD$3(fn, "length");
85462
+ if (desc && !desc.configurable) {
85463
+ functionLengthIsConfigurable = false;
85464
+ }
85465
+ if (desc && !desc.writable) {
85466
+ functionLengthIsWritable = false;
85467
+ }
85468
+ }
85469
+ if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
85470
+ if (hasDescriptors$1) {
85471
+ define$4(
85472
+ /** @type {Parameters<define>[0]} */
85473
+ fn,
85474
+ "length",
85475
+ length2,
85476
+ true,
85477
+ true
85478
+ );
85479
+ } else {
85480
+ define$4(
85481
+ /** @type {Parameters<define>[0]} */
85482
+ fn,
85483
+ "length",
85484
+ length2
85485
+ );
85486
+ }
85487
+ }
85488
+ return fn;
85489
+ };
85339
85490
  (function(module2) {
85340
85491
  var bind4 = functionBind;
85341
85492
  var GetIntrinsic3 = getIntrinsic;
85493
+ var setFunctionLength$1 = setFunctionLength;
85494
+ var $TypeError2 = type;
85342
85495
  var $apply = GetIntrinsic3("%Function.prototype.apply%");
85343
85496
  var $call = GetIntrinsic3("%Function.prototype.call%");
85344
85497
  var $reflectApply = GetIntrinsic3("%Reflect.apply%", true) || bind4.call($call, $apply);
85345
- var $gOPD2 = GetIntrinsic3("%Object.getOwnPropertyDescriptor%", true);
85346
- var $defineProperty2 = GetIntrinsic3("%Object.defineProperty%", true);
85498
+ var $defineProperty2 = esDefineProperty;
85347
85499
  var $max = GetIntrinsic3("%Math.max%");
85348
- if ($defineProperty2) {
85349
- try {
85350
- $defineProperty2({}, "a", { value: 1 });
85351
- } catch (e2) {
85352
- $defineProperty2 = null;
85353
- }
85354
- }
85355
85500
  module2.exports = function callBind2(originalFunction) {
85356
- var func = $reflectApply(bind4, $call, arguments);
85357
- if ($gOPD2 && $defineProperty2) {
85358
- var desc = $gOPD2(func, "length");
85359
- if (desc.configurable) {
85360
- $defineProperty2(
85361
- func,
85362
- "length",
85363
- { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
85364
- );
85365
- }
85501
+ if (typeof originalFunction !== "function") {
85502
+ throw new $TypeError2("a function is required");
85366
85503
  }
85367
- return func;
85504
+ var func = $reflectApply(bind4, $call, arguments);
85505
+ return setFunctionLength$1(
85506
+ func,
85507
+ 1 + $max(0, originalFunction.length - (arguments.length - 1)),
85508
+ true
85509
+ );
85368
85510
  };
85369
85511
  var applyBind = function applyBind2() {
85370
85512
  return $reflectApply(bind4, $apply, arguments);
@@ -85386,7 +85528,7 @@ var callBound$2 = function callBoundIntrinsic(name2, allowMissing) {
85386
85528
  }
85387
85529
  return intrinsic;
85388
85530
  };
85389
- var hasToStringTag$2 = shams();
85531
+ var hasToStringTag$2 = shams$1();
85390
85532
  var callBound$1 = callBound$2;
85391
85533
  var $toString$1 = callBound$1("Object.prototype.toString");
85392
85534
  var isStandardArguments = function isArguments2(value) {
@@ -85408,7 +85550,7 @@ isStandardArguments.isLegacyArguments = isLegacyArguments;
85408
85550
  var isArguments$1 = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
85409
85551
  var GetIntrinsic2 = getIntrinsic;
85410
85552
  var $defineProperty = GetIntrinsic2("%Object.defineProperty%", true);
85411
- var hasPropertyDescriptors$1 = function hasPropertyDescriptors() {
85553
+ var hasPropertyDescriptors2 = function hasPropertyDescriptors3() {
85412
85554
  if ($defineProperty) {
85413
85555
  try {
85414
85556
  $defineProperty({}, "a", { value: 1 });
@@ -85419,8 +85561,8 @@ var hasPropertyDescriptors$1 = function hasPropertyDescriptors() {
85419
85561
  }
85420
85562
  return false;
85421
85563
  };
85422
- hasPropertyDescriptors$1.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
85423
- if (!hasPropertyDescriptors$1()) {
85564
+ hasPropertyDescriptors2.hasArrayLengthDefineBug = function hasArrayLengthDefineBug2() {
85565
+ if (!hasPropertyDescriptors2()) {
85424
85566
  return null;
85425
85567
  }
85426
85568
  try {
@@ -85429,17 +85571,16 @@ hasPropertyDescriptors$1.hasArrayLengthDefineBug = function hasArrayLengthDefine
85429
85571
  return true;
85430
85572
  }
85431
85573
  };
85432
- var hasPropertyDescriptors_1 = hasPropertyDescriptors$1;
85574
+ var hasPropertyDescriptors_1 = hasPropertyDescriptors2;
85433
85575
  var keys2 = objectKeys$1;
85434
- var hasSymbols2 = typeof Symbol === "function" && typeof Symbol("foo") === "symbol";
85576
+ var hasSymbols$1 = typeof Symbol === "function" && typeof Symbol("foo") === "symbol";
85435
85577
  var toStr$1 = Object.prototype.toString;
85436
85578
  var concat = Array.prototype.concat;
85437
- var origDefineProperty = Object.defineProperty;
85579
+ var defineDataProperty2 = defineDataProperty$1;
85438
85580
  var isFunction = function(fn) {
85439
85581
  return typeof fn === "function" && toStr$1.call(fn) === "[object Function]";
85440
85582
  };
85441
- var hasPropertyDescriptors2 = hasPropertyDescriptors_1();
85442
- var supportsDescriptors$2 = origDefineProperty && hasPropertyDescriptors2;
85583
+ var supportsDescriptors$2 = hasPropertyDescriptors_1();
85443
85584
  var defineProperty$1 = function(object2, name2, value, predicate) {
85444
85585
  if (name2 in object2) {
85445
85586
  if (predicate === true) {
@@ -85451,20 +85592,15 @@ var defineProperty$1 = function(object2, name2, value, predicate) {
85451
85592
  }
85452
85593
  }
85453
85594
  if (supportsDescriptors$2) {
85454
- origDefineProperty(object2, name2, {
85455
- configurable: true,
85456
- enumerable: false,
85457
- value,
85458
- writable: true
85459
- });
85595
+ defineDataProperty2(object2, name2, value, true);
85460
85596
  } else {
85461
- object2[name2] = value;
85597
+ defineDataProperty2(object2, name2, value);
85462
85598
  }
85463
85599
  };
85464
85600
  var defineProperties = function(object2, map2) {
85465
85601
  var predicates = arguments.length > 2 ? arguments[2] : {};
85466
85602
  var props = keys2(map2);
85467
- if (hasSymbols2) {
85603
+ if (hasSymbols$1) {
85468
85604
  props = concat.call(props, Object.getOwnPropertySymbols(map2));
85469
85605
  }
85470
85606
  for (var i2 = 0; i2 < props.length; i2 += 1) {
@@ -85493,28 +85629,32 @@ var polyfill$2 = function getPolyfill() {
85493
85629
  return typeof Object.is === "function" ? Object.is : implementation$4;
85494
85630
  };
85495
85631
  var getPolyfill$3 = polyfill$2;
85496
- var define$2 = defineProperties_1;
85632
+ var define$3 = defineProperties_1;
85497
85633
  var shim$3 = function shimObjectIs() {
85498
85634
  var polyfill2 = getPolyfill$3();
85499
- define$2(Object, { is: polyfill2 }, {
85635
+ define$3(Object, { is: polyfill2 }, {
85500
85636
  is: function testObjectIs() {
85501
85637
  return Object.is !== polyfill2;
85502
85638
  }
85503
85639
  });
85504
85640
  return polyfill2;
85505
85641
  };
85506
- var define$1 = defineProperties_1;
85642
+ var define$2 = defineProperties_1;
85507
85643
  var callBind$1 = callBindExports;
85508
85644
  var implementation$3 = implementation$5;
85509
85645
  var getPolyfill$2 = polyfill$2;
85510
85646
  var shim$2 = shim$3;
85511
85647
  var polyfill$1 = callBind$1(getPolyfill$2(), Object);
85512
- define$1(polyfill$1, {
85648
+ define$2(polyfill$1, {
85513
85649
  getPolyfill: getPolyfill$2,
85514
85650
  implementation: implementation$3,
85515
85651
  shim: shim$2
85516
85652
  });
85517
85653
  var objectIs = polyfill$1;
85654
+ var hasSymbols2 = shams$2;
85655
+ var shams = function hasToStringTagShams2() {
85656
+ return hasSymbols2() && !!Symbol.toStringTag;
85657
+ };
85518
85658
  var callBound = callBound$2;
85519
85659
  var hasToStringTag$1 = shams();
85520
85660
  var has;
@@ -85559,7 +85699,6 @@ var isRegex$1 = hasToStringTag$1 ? function isRegex(value) {
85559
85699
  }
85560
85700
  return $toString(value) === regexClass;
85561
85701
  };
85562
- var implementation$2 = { exports: {} };
85563
85702
  var functionsHaveNames = function functionsHaveNames2() {
85564
85703
  return typeof function f2() {
85565
85704
  }.name === "string";
@@ -85586,47 +85725,71 @@ functionsHaveNames.boundFunctionsHaveNames = function boundFunctionsHaveNames()
85586
85725
  }.bind().name !== "";
85587
85726
  };
85588
85727
  var functionsHaveNames_1 = functionsHaveNames;
85589
- (function(module2) {
85590
- var functionsHaveConfigurableNames2 = functionsHaveNames_1.functionsHaveConfigurableNames();
85591
- var $Object2 = Object;
85592
- var $TypeError2 = TypeError;
85593
- module2.exports = function flags2() {
85594
- if (this != null && this !== $Object2(this)) {
85595
- throw new $TypeError2("RegExp.prototype.flags getter called on non-object");
85596
- }
85597
- var result = "";
85598
- if (this.hasIndices) {
85599
- result += "d";
85600
- }
85601
- if (this.global) {
85602
- result += "g";
85603
- }
85604
- if (this.ignoreCase) {
85605
- result += "i";
85606
- }
85607
- if (this.multiline) {
85608
- result += "m";
85609
- }
85610
- if (this.dotAll) {
85611
- result += "s";
85612
- }
85613
- if (this.unicode) {
85614
- result += "u";
85615
- }
85616
- if (this.unicodeSets) {
85617
- result += "v";
85618
- }
85619
- if (this.sticky) {
85620
- result += "y";
85728
+ var define$1 = defineDataProperty$1;
85729
+ var hasDescriptors = hasPropertyDescriptors_1$1();
85730
+ var functionsHaveConfigurableNames2 = functionsHaveNames_1.functionsHaveConfigurableNames();
85731
+ var $TypeError$1 = type;
85732
+ var setFunctionName$1 = function setFunctionName(fn, name2) {
85733
+ if (typeof fn !== "function") {
85734
+ throw new $TypeError$1("`fn` is not a function");
85735
+ }
85736
+ var loose = arguments.length > 2 && !!arguments[2];
85737
+ if (!loose || functionsHaveConfigurableNames2) {
85738
+ if (hasDescriptors) {
85739
+ define$1(
85740
+ /** @type {Parameters<define>[0]} */
85741
+ fn,
85742
+ "name",
85743
+ name2,
85744
+ true,
85745
+ true
85746
+ );
85747
+ } else {
85748
+ define$1(
85749
+ /** @type {Parameters<define>[0]} */
85750
+ fn,
85751
+ "name",
85752
+ name2
85753
+ );
85621
85754
  }
85622
- return result;
85623
- };
85624
- if (functionsHaveConfigurableNames2 && Object.defineProperty) {
85625
- Object.defineProperty(module2.exports, "name", { value: "get flags" });
85626
85755
  }
85627
- })(implementation$2);
85628
- var implementationExports = implementation$2.exports;
85629
- var implementation$1 = implementationExports;
85756
+ return fn;
85757
+ };
85758
+ var setFunctionName2 = setFunctionName$1;
85759
+ var $TypeError = type;
85760
+ var $Object = Object;
85761
+ var implementation$2 = setFunctionName2(function flags() {
85762
+ if (this == null || this !== $Object(this)) {
85763
+ throw new $TypeError("RegExp.prototype.flags getter called on non-object");
85764
+ }
85765
+ var result = "";
85766
+ if (this.hasIndices) {
85767
+ result += "d";
85768
+ }
85769
+ if (this.global) {
85770
+ result += "g";
85771
+ }
85772
+ if (this.ignoreCase) {
85773
+ result += "i";
85774
+ }
85775
+ if (this.multiline) {
85776
+ result += "m";
85777
+ }
85778
+ if (this.dotAll) {
85779
+ result += "s";
85780
+ }
85781
+ if (this.unicode) {
85782
+ result += "u";
85783
+ }
85784
+ if (this.unicodeSets) {
85785
+ result += "v";
85786
+ }
85787
+ if (this.sticky) {
85788
+ result += "y";
85789
+ }
85790
+ return result;
85791
+ }, "get flags", true);
85792
+ var implementation$1 = implementation$2;
85630
85793
  var supportsDescriptors$1 = defineProperties_1.supportsDescriptors;
85631
85794
  var $gOPD = Object.getOwnPropertyDescriptor;
85632
85795
  var polyfill = function getPolyfill2() {
@@ -85677,7 +85840,7 @@ var shim$1 = function shimFlags() {
85677
85840
  };
85678
85841
  var define = defineProperties_1;
85679
85842
  var callBind = callBindExports;
85680
- var implementation = implementationExports;
85843
+ var implementation = implementation$2;
85681
85844
  var getPolyfill3 = polyfill;
85682
85845
  var shim = shim$1;
85683
85846
  var flagsBound = callBind(getPolyfill3());
@@ -85698,7 +85861,7 @@ var tryDateObject = function tryDateGetDayCall(value) {
85698
85861
  };
85699
85862
  var toStr = Object.prototype.toString;
85700
85863
  var dateClass = "[object Date]";
85701
- var hasToStringTag = shams();
85864
+ var hasToStringTag = shams$1();
85702
85865
  var isDateObject = function isDateObject2(value) {
85703
85866
  if (typeof value !== "object" || value === null) {
85704
85867
  return false;
@@ -85709,7 +85872,7 @@ var objectKeys = objectKeys$1;
85709
85872
  var isArguments4 = isArguments$1;
85710
85873
  var is2 = objectIs;
85711
85874
  var isRegex3 = isRegex$1;
85712
- var flags = regexp_prototype_flags;
85875
+ var flags2 = regexp_prototype_flags;
85713
85876
  var isDate = isDateObject;
85714
85877
  var getTime = Date.prototype.getTime;
85715
85878
  function deepEqual$1(actual, expected, options) {
@@ -85757,7 +85920,7 @@ function objEquiv(a2, b, opts) {
85757
85920
  return false;
85758
85921
  }
85759
85922
  if (aIsRegex || bIsRegex) {
85760
- return a2.source === b.source && flags(a2) === flags(b);
85923
+ return a2.source === b.source && flags2(a2) === flags2(b);
85761
85924
  }
85762
85925
  if (isDate(a2) && isDate(b)) {
85763
85926
  return getTime.call(a2) === getTime.call(b);
@@ -100616,8 +100779,8 @@ var polygonClipping_umd = { exports: {} };
100616
100779
  }
100617
100780
  _createClass2(Operation2, [{
100618
100781
  key: "run",
100619
- value: function run(type, geom, moreGeoms) {
100620
- operation.type = type;
100782
+ value: function run(type2, geom, moreGeoms) {
100783
+ operation.type = type2;
100621
100784
  rounder.reset();
100622
100785
  var multipolys = [new MultiPolyIn(geom, true)];
100623
100786
  for (var i2 = 0, iMax = moreGeoms.length; i2 < iMax; i2++) {
@@ -101363,11 +101526,11 @@ function _getMaxListeners(that) {
101363
101526
  EventEmitter.prototype.getMaxListeners = function getMaxListeners() {
101364
101527
  return _getMaxListeners(this);
101365
101528
  };
101366
- EventEmitter.prototype.emit = function emit(type) {
101529
+ EventEmitter.prototype.emit = function emit(type2) {
101367
101530
  var args = [];
101368
101531
  for (var i2 = 1; i2 < arguments.length; i2++)
101369
101532
  args.push(arguments[i2]);
101370
- var doError = type === "error";
101533
+ var doError = type2 === "error";
101371
101534
  var events2 = this._events;
101372
101535
  if (events2 !== void 0)
101373
101536
  doError = doError && events2.error === void 0;
@@ -101384,7 +101547,7 @@ EventEmitter.prototype.emit = function emit(type) {
101384
101547
  err2.context = er;
101385
101548
  throw err2;
101386
101549
  }
101387
- var handler = events2[type];
101550
+ var handler = events2[type2];
101388
101551
  if (handler === void 0)
101389
101552
  return false;
101390
101553
  if (typeof handler === "function") {
@@ -101397,7 +101560,7 @@ EventEmitter.prototype.emit = function emit(type) {
101397
101560
  }
101398
101561
  return true;
101399
101562
  };
101400
- function _addListener(target, type, listener, prepend) {
101563
+ function _addListener(target, type2, listener, prepend) {
101401
101564
  var m;
101402
101565
  var events2;
101403
101566
  var existing;
@@ -101410,19 +101573,19 @@ function _addListener(target, type, listener, prepend) {
101410
101573
  if (events2.newListener !== void 0) {
101411
101574
  target.emit(
101412
101575
  "newListener",
101413
- type,
101576
+ type2,
101414
101577
  listener.listener ? listener.listener : listener
101415
101578
  );
101416
101579
  events2 = target._events;
101417
101580
  }
101418
- existing = events2[type];
101581
+ existing = events2[type2];
101419
101582
  }
101420
101583
  if (existing === void 0) {
101421
- existing = events2[type] = listener;
101584
+ existing = events2[type2] = listener;
101422
101585
  ++target._eventsCount;
101423
101586
  } else {
101424
101587
  if (typeof existing === "function") {
101425
- existing = events2[type] = prepend ? [listener, existing] : [existing, listener];
101588
+ existing = events2[type2] = prepend ? [listener, existing] : [existing, listener];
101426
101589
  } else if (prepend) {
101427
101590
  existing.unshift(listener);
101428
101591
  } else {
@@ -101431,22 +101594,22 @@ function _addListener(target, type, listener, prepend) {
101431
101594
  m = _getMaxListeners(target);
101432
101595
  if (m > 0 && existing.length > m && !existing.warned) {
101433
101596
  existing.warned = true;
101434
- var w2 = new Error("Possible EventEmitter memory leak detected. " + existing.length + " " + String(type) + " listeners added. Use emitter.setMaxListeners() to increase limit");
101597
+ var w2 = new Error("Possible EventEmitter memory leak detected. " + existing.length + " " + String(type2) + " listeners added. Use emitter.setMaxListeners() to increase limit");
101435
101598
  w2.name = "MaxListenersExceededWarning";
101436
101599
  w2.emitter = target;
101437
- w2.type = type;
101600
+ w2.type = type2;
101438
101601
  w2.count = existing.length;
101439
101602
  ProcessEmitWarning(w2);
101440
101603
  }
101441
101604
  }
101442
101605
  return target;
101443
101606
  }
101444
- EventEmitter.prototype.addListener = function addListener(type, listener) {
101445
- return _addListener(this, type, listener, false);
101607
+ EventEmitter.prototype.addListener = function addListener(type2, listener) {
101608
+ return _addListener(this, type2, listener, false);
101446
101609
  };
101447
101610
  EventEmitter.prototype.on = EventEmitter.prototype.addListener;
101448
- EventEmitter.prototype.prependListener = function prependListener(type, listener) {
101449
- return _addListener(this, type, listener, true);
101611
+ EventEmitter.prototype.prependListener = function prependListener(type2, listener) {
101612
+ return _addListener(this, type2, listener, true);
101450
101613
  };
101451
101614
  function onceWrapper() {
101452
101615
  if (!this.fired) {
@@ -101457,39 +101620,39 @@ function onceWrapper() {
101457
101620
  return this.listener.apply(this.target, arguments);
101458
101621
  }
101459
101622
  }
101460
- function _onceWrap(target, type, listener) {
101461
- var state = { fired: false, wrapFn: void 0, target, type, listener };
101623
+ function _onceWrap(target, type2, listener) {
101624
+ var state = { fired: false, wrapFn: void 0, target, type: type2, listener };
101462
101625
  var wrapped = onceWrapper.bind(state);
101463
101626
  wrapped.listener = listener;
101464
101627
  state.wrapFn = wrapped;
101465
101628
  return wrapped;
101466
101629
  }
101467
- EventEmitter.prototype.once = function once(type, listener) {
101630
+ EventEmitter.prototype.once = function once(type2, listener) {
101468
101631
  checkListener(listener);
101469
- this.on(type, _onceWrap(this, type, listener));
101632
+ this.on(type2, _onceWrap(this, type2, listener));
101470
101633
  return this;
101471
101634
  };
101472
- EventEmitter.prototype.prependOnceListener = function prependOnceListener(type, listener) {
101635
+ EventEmitter.prototype.prependOnceListener = function prependOnceListener(type2, listener) {
101473
101636
  checkListener(listener);
101474
- this.prependListener(type, _onceWrap(this, type, listener));
101637
+ this.prependListener(type2, _onceWrap(this, type2, listener));
101475
101638
  return this;
101476
101639
  };
101477
- EventEmitter.prototype.removeListener = function removeListener(type, listener) {
101640
+ EventEmitter.prototype.removeListener = function removeListener(type2, listener) {
101478
101641
  var list, events2, position, i2, originalListener;
101479
101642
  checkListener(listener);
101480
101643
  events2 = this._events;
101481
101644
  if (events2 === void 0)
101482
101645
  return this;
101483
- list = events2[type];
101646
+ list = events2[type2];
101484
101647
  if (list === void 0)
101485
101648
  return this;
101486
101649
  if (list === listener || list.listener === listener) {
101487
101650
  if (--this._eventsCount === 0)
101488
101651
  this._events = /* @__PURE__ */ Object.create(null);
101489
101652
  else {
101490
- delete events2[type];
101653
+ delete events2[type2];
101491
101654
  if (events2.removeListener)
101492
- this.emit("removeListener", type, list.listener || listener);
101655
+ this.emit("removeListener", type2, list.listener || listener);
101493
101656
  }
101494
101657
  } else if (typeof list !== "function") {
101495
101658
  position = -1;
@@ -101508,14 +101671,14 @@ EventEmitter.prototype.removeListener = function removeListener(type, listener)
101508
101671
  spliceOne(list, position);
101509
101672
  }
101510
101673
  if (list.length === 1)
101511
- events2[type] = list[0];
101674
+ events2[type2] = list[0];
101512
101675
  if (events2.removeListener !== void 0)
101513
- this.emit("removeListener", type, originalListener || listener);
101676
+ this.emit("removeListener", type2, originalListener || listener);
101514
101677
  }
101515
101678
  return this;
101516
101679
  };
101517
101680
  EventEmitter.prototype.off = EventEmitter.prototype.removeListener;
101518
- EventEmitter.prototype.removeAllListeners = function removeAllListeners(type) {
101681
+ EventEmitter.prototype.removeAllListeners = function removeAllListeners(type2) {
101519
101682
  var listeners2, events2, i2;
101520
101683
  events2 = this._events;
101521
101684
  if (events2 === void 0)
@@ -101524,11 +101687,11 @@ EventEmitter.prototype.removeAllListeners = function removeAllListeners(type) {
101524
101687
  if (arguments.length === 0) {
101525
101688
  this._events = /* @__PURE__ */ Object.create(null);
101526
101689
  this._eventsCount = 0;
101527
- } else if (events2[type] !== void 0) {
101690
+ } else if (events2[type2] !== void 0) {
101528
101691
  if (--this._eventsCount === 0)
101529
101692
  this._events = /* @__PURE__ */ Object.create(null);
101530
101693
  else
101531
- delete events2[type];
101694
+ delete events2[type2];
101532
101695
  }
101533
101696
  return this;
101534
101697
  }
@@ -101546,45 +101709,45 @@ EventEmitter.prototype.removeAllListeners = function removeAllListeners(type) {
101546
101709
  this._eventsCount = 0;
101547
101710
  return this;
101548
101711
  }
101549
- listeners2 = events2[type];
101712
+ listeners2 = events2[type2];
101550
101713
  if (typeof listeners2 === "function") {
101551
- this.removeListener(type, listeners2);
101714
+ this.removeListener(type2, listeners2);
101552
101715
  } else if (listeners2 !== void 0) {
101553
101716
  for (i2 = listeners2.length - 1; i2 >= 0; i2--) {
101554
- this.removeListener(type, listeners2[i2]);
101717
+ this.removeListener(type2, listeners2[i2]);
101555
101718
  }
101556
101719
  }
101557
101720
  return this;
101558
101721
  };
101559
- function _listeners(target, type, unwrap) {
101722
+ function _listeners(target, type2, unwrap) {
101560
101723
  var events2 = target._events;
101561
101724
  if (events2 === void 0)
101562
101725
  return [];
101563
- var evlistener = events2[type];
101726
+ var evlistener = events2[type2];
101564
101727
  if (evlistener === void 0)
101565
101728
  return [];
101566
101729
  if (typeof evlistener === "function")
101567
101730
  return unwrap ? [evlistener.listener || evlistener] : [evlistener];
101568
101731
  return unwrap ? unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);
101569
101732
  }
101570
- EventEmitter.prototype.listeners = function listeners(type) {
101571
- return _listeners(this, type, true);
101733
+ EventEmitter.prototype.listeners = function listeners(type2) {
101734
+ return _listeners(this, type2, true);
101572
101735
  };
101573
- EventEmitter.prototype.rawListeners = function rawListeners(type) {
101574
- return _listeners(this, type, false);
101736
+ EventEmitter.prototype.rawListeners = function rawListeners(type2) {
101737
+ return _listeners(this, type2, false);
101575
101738
  };
101576
- EventEmitter.listenerCount = function(emitter, type) {
101739
+ EventEmitter.listenerCount = function(emitter, type2) {
101577
101740
  if (typeof emitter.listenerCount === "function") {
101578
- return emitter.listenerCount(type);
101741
+ return emitter.listenerCount(type2);
101579
101742
  } else {
101580
- return listenerCount.call(emitter, type);
101743
+ return listenerCount.call(emitter, type2);
101581
101744
  }
101582
101745
  };
101583
101746
  EventEmitter.prototype.listenerCount = listenerCount;
101584
- function listenerCount(type) {
101747
+ function listenerCount(type2) {
101585
101748
  var events2 = this._events;
101586
101749
  if (events2 !== void 0) {
101587
- var evlistener = events2[type];
101750
+ var evlistener = events2[type2];
101588
101751
  if (typeof evlistener === "function") {
101589
101752
  return 1;
101590
101753
  } else if (evlistener !== void 0) {
@@ -101632,21 +101795,21 @@ function once2(emitter, name2) {
101632
101795
  }
101633
101796
  });
101634
101797
  }
101635
- function addErrorHandlerIfEventEmitter(emitter, handler, flags2) {
101798
+ function addErrorHandlerIfEventEmitter(emitter, handler, flags3) {
101636
101799
  if (typeof emitter.on === "function") {
101637
- eventTargetAgnosticAddListener(emitter, "error", handler, flags2);
101800
+ eventTargetAgnosticAddListener(emitter, "error", handler, flags3);
101638
101801
  }
101639
101802
  }
101640
- function eventTargetAgnosticAddListener(emitter, name2, listener, flags2) {
101803
+ function eventTargetAgnosticAddListener(emitter, name2, listener, flags3) {
101641
101804
  if (typeof emitter.on === "function") {
101642
- if (flags2.once) {
101805
+ if (flags3.once) {
101643
101806
  emitter.once(name2, listener);
101644
101807
  } else {
101645
101808
  emitter.on(name2, listener);
101646
101809
  }
101647
101810
  } else if (typeof emitter.addEventListener === "function") {
101648
101811
  emitter.addEventListener(name2, function wrapListener(arg) {
101649
- if (flags2.once) {
101812
+ if (flags3.once) {
101650
101813
  emitter.removeEventListener(name2, wrapListener);
101651
101814
  }
101652
101815
  listener(arg);
@@ -102073,9 +102236,9 @@ const require$$1$3 = /* @__PURE__ */ getAugmentedNamespace(esmBrowser);
102073
102236
  return _possibleConstructorReturn2(this, result);
102074
102237
  };
102075
102238
  }
102076
- function _possibleConstructorReturn2(self2, call) {
102077
- if (call && (_typeof2(call) === "object" || typeof call === "function")) {
102078
- return call;
102239
+ function _possibleConstructorReturn2(self2, call2) {
102240
+ if (call2 && (_typeof2(call2) === "object" || typeof call2 === "function")) {
102241
+ return call2;
102079
102242
  }
102080
102243
  return _assertThisInitialized2(self2);
102081
102244
  }
@@ -102394,8 +102557,8 @@ function rewind(geojson, options) {
102394
102557
  return rewindFeature(geojson, reverse);
102395
102558
  }
102396
102559
  function rewindFeature(geojson, reverse) {
102397
- var type = geojson.type === "Feature" ? geojson.geometry.type : geojson.type;
102398
- switch (type) {
102560
+ var type2 = geojson.type === "Feature" ? geojson.geometry.type : geojson.type;
102561
+ switch (type2) {
102399
102562
  case "GeometryCollection":
102400
102563
  meta$3.geomEach(geojson, function(geometry2) {
102401
102564
  rewindFeature(geometry2, reverse);
@@ -103862,9 +104025,9 @@ function _createSuper$u(Derived) {
103862
104025
  return _possibleConstructorReturn$u(this, result);
103863
104026
  };
103864
104027
  }
103865
- function _possibleConstructorReturn$u(self2, call) {
103866
- if (call && (_typeof$u(call) === "object" || typeof call === "function")) {
103867
- return call;
104028
+ function _possibleConstructorReturn$u(self2, call2) {
104029
+ if (call2 && (_typeof$u(call2) === "object" || typeof call2 === "function")) {
104030
+ return call2;
103868
104031
  }
103869
104032
  return _assertThisInitialized$u(self2);
103870
104033
  }
@@ -104304,9 +104467,9 @@ function _createSuper$t(Derived) {
104304
104467
  return _possibleConstructorReturn$t(this, result);
104305
104468
  };
104306
104469
  }
104307
- function _possibleConstructorReturn$t(self2, call) {
104308
- if (call && (_typeof$t(call) === "object" || typeof call === "function")) {
104309
- return call;
104470
+ function _possibleConstructorReturn$t(self2, call2) {
104471
+ if (call2 && (_typeof$t(call2) === "object" || typeof call2 === "function")) {
104472
+ return call2;
104310
104473
  }
104311
104474
  return _assertThisInitialized$t(self2);
104312
104475
  }
@@ -104656,9 +104819,9 @@ function _createSuper$s(Derived) {
104656
104819
  return _possibleConstructorReturn$s(this, result);
104657
104820
  };
104658
104821
  }
104659
- function _possibleConstructorReturn$s(self2, call) {
104660
- if (call && (_typeof$s(call) === "object" || typeof call === "function")) {
104661
- return call;
104822
+ function _possibleConstructorReturn$s(self2, call2) {
104823
+ if (call2 && (_typeof$s(call2) === "object" || typeof call2 === "function")) {
104824
+ return call2;
104662
104825
  }
104663
104826
  return _assertThisInitialized$s(self2);
104664
104827
  }
@@ -105119,9 +105282,9 @@ function _createSuper$r(Derived) {
105119
105282
  return _possibleConstructorReturn$r(this, result);
105120
105283
  };
105121
105284
  }
105122
- function _possibleConstructorReturn$r(self2, call) {
105123
- if (call && (_typeof$r(call) === "object" || typeof call === "function")) {
105124
- return call;
105285
+ function _possibleConstructorReturn$r(self2, call2) {
105286
+ if (call2 && (_typeof$r(call2) === "object" || typeof call2 === "function")) {
105287
+ return call2;
105125
105288
  }
105126
105289
  return _assertThisInitialized$r(self2);
105127
105290
  }
@@ -105193,8 +105356,8 @@ var ScaleMode = /* @__PURE__ */ function(_GeoJsonEditMode) {
105193
105356
  _defineProperty$9(_assertThisInitialized$r(_this), "_isSinglePointGeometrySelected", function(geometry2) {
105194
105357
  var _ref = geometry2 || {}, features = _ref.features;
105195
105358
  if (Array.isArray(features) && features.length === 1) {
105196
- var _getGeom = (0, _invariant$1.getGeom)(features[0]), type = _getGeom.type;
105197
- return type === "Point";
105359
+ var _getGeom = (0, _invariant$1.getGeom)(features[0]), type2 = _getGeom.type;
105360
+ return type2 === "Point";
105198
105361
  }
105199
105362
  return false;
105200
105363
  });
@@ -105468,9 +105631,9 @@ function _createSuper$q(Derived) {
105468
105631
  return _possibleConstructorReturn$q(this, result);
105469
105632
  };
105470
105633
  }
105471
- function _possibleConstructorReturn$q(self2, call) {
105472
- if (call && (_typeof$q(call) === "object" || typeof call === "function")) {
105473
- return call;
105634
+ function _possibleConstructorReturn$q(self2, call2) {
105635
+ if (call2 && (_typeof$q(call2) === "object" || typeof call2 === "function")) {
105636
+ return call2;
105474
105637
  }
105475
105638
  return _assertThisInitialized$q(self2);
105476
105639
  }
@@ -105540,8 +105703,8 @@ var RotateMode = /* @__PURE__ */ function(_GeoJsonEditMode) {
105540
105703
  _defineProperty$8(_assertThisInitialized$q(_this), "_isSinglePointGeometrySelected", function(geometry2) {
105541
105704
  var _ref = geometry2 || {}, features = _ref.features;
105542
105705
  if (Array.isArray(features) && features.length === 1) {
105543
- var _getGeom = (0, _invariant.getGeom)(features[0]), type = _getGeom.type;
105544
- return type === "Point";
105706
+ var _getGeom = (0, _invariant.getGeom)(features[0]), type2 = _getGeom.type;
105707
+ return type2 === "Point";
105545
105708
  }
105546
105709
  return false;
105547
105710
  });
@@ -105762,9 +105925,9 @@ function _createSuper$p(Derived) {
105762
105925
  return _possibleConstructorReturn$p(this, result);
105763
105926
  };
105764
105927
  }
105765
- function _possibleConstructorReturn$p(self2, call) {
105766
- if (call && (_typeof$p(call) === "object" || typeof call === "function")) {
105767
- return call;
105928
+ function _possibleConstructorReturn$p(self2, call2) {
105929
+ if (call2 && (_typeof$p(call2) === "object" || typeof call2 === "function")) {
105930
+ return call2;
105768
105931
  }
105769
105932
  return _assertThisInitialized$p(self2);
105770
105933
  }
@@ -105892,9 +106055,9 @@ function _createSuper$o(Derived) {
105892
106055
  return _possibleConstructorReturn$o(this, result);
105893
106056
  };
105894
106057
  }
105895
- function _possibleConstructorReturn$o(self2, call) {
105896
- if (call && (_typeof$o(call) === "object" || typeof call === "function")) {
105897
- return call;
106058
+ function _possibleConstructorReturn$o(self2, call2) {
106059
+ if (call2 && (_typeof$o(call2) === "object" || typeof call2 === "function")) {
106060
+ return call2;
105898
106061
  }
105899
106062
  return _assertThisInitialized$o(self2);
105900
106063
  }
@@ -106038,13 +106201,13 @@ function booleanPointInPolygon(point2, polygon2, options) {
106038
106201
  }
106039
106202
  var pt = invariant_1$2.getCoord(point2);
106040
106203
  var geom = invariant_1$2.getGeom(polygon2);
106041
- var type = geom.type;
106204
+ var type2 = geom.type;
106042
106205
  var bbox2 = polygon2.bbox;
106043
106206
  var polys = geom.coordinates;
106044
106207
  if (bbox2 && inBBox(pt, bbox2) === false) {
106045
106208
  return false;
106046
106209
  }
106047
- if (type === "Polygon") {
106210
+ if (type2 === "Polygon") {
106048
106211
  polys = [polys];
106049
106212
  }
106050
106213
  var insidePoly = false;
@@ -106308,9 +106471,9 @@ function _createSuper$n(Derived) {
106308
106471
  return _possibleConstructorReturn$n(this, result);
106309
106472
  };
106310
106473
  }
106311
- function _possibleConstructorReturn$n(self2, call) {
106312
- if (call && (_typeof$n(call) === "object" || typeof call === "function")) {
106313
- return call;
106474
+ function _possibleConstructorReturn$n(self2, call2) {
106475
+ if (call2 && (_typeof$n(call2) === "object" || typeof call2 === "function")) {
106476
+ return call2;
106314
106477
  }
106315
106478
  return _assertThisInitialized$n(self2);
106316
106479
  }
@@ -106481,9 +106644,9 @@ var SplitPolygonMode = /* @__PURE__ */ function(_GeoJsonEditMode) {
106481
106644
  console.warn("Canceling edit. Split Polygon erased");
106482
106645
  return null;
106483
106646
  }
106484
- var _updatedGeometry$geom = updatedGeometry.geometry, type = _updatedGeometry$geom.type, coordinates2 = _updatedGeometry$geom.coordinates;
106647
+ var _updatedGeometry$geom = updatedGeometry.geometry, type2 = _updatedGeometry$geom.type, coordinates2 = _updatedGeometry$geom.coordinates;
106485
106648
  var updatedCoordinates = [];
106486
- if (type === "Polygon") {
106649
+ if (type2 === "Polygon") {
106487
106650
  updatedCoordinates = coordinates2.map(function(c) {
106488
106651
  return [c];
106489
106652
  });
@@ -106643,9 +106806,9 @@ function _createSuper$m(Derived) {
106643
106806
  return _possibleConstructorReturn$m(this, result);
106644
106807
  };
106645
106808
  }
106646
- function _possibleConstructorReturn$m(self2, call) {
106647
- if (call && (_typeof$m(call) === "object" || typeof call === "function")) {
106648
- return call;
106809
+ function _possibleConstructorReturn$m(self2, call2) {
106810
+ if (call2 && (_typeof$m(call2) === "object" || typeof call2 === "function")) {
106811
+ return call2;
106649
106812
  }
106650
106813
  return _assertThisInitialized$m(self2);
106651
106814
  }
@@ -106974,9 +107137,9 @@ function _createSuper$l(Derived) {
106974
107137
  return _possibleConstructorReturn$l(this, result);
106975
107138
  };
106976
107139
  }
106977
- function _possibleConstructorReturn$l(self2, call) {
106978
- if (call && (_typeof$l(call) === "object" || typeof call === "function")) {
106979
- return call;
107140
+ function _possibleConstructorReturn$l(self2, call2) {
107141
+ if (call2 && (_typeof$l(call2) === "object" || typeof call2 === "function")) {
107142
+ return call2;
106980
107143
  }
106981
107144
  return _assertThisInitialized$l(self2);
106982
107145
  }
@@ -107210,9 +107373,9 @@ function _createSuper$k(Derived) {
107210
107373
  return _possibleConstructorReturn$k(this, result);
107211
107374
  };
107212
107375
  }
107213
- function _possibleConstructorReturn$k(self2, call) {
107214
- if (call && (_typeof$k(call) === "object" || typeof call === "function")) {
107215
- return call;
107376
+ function _possibleConstructorReturn$k(self2, call2) {
107377
+ if (call2 && (_typeof$k(call2) === "object" || typeof call2 === "function")) {
107378
+ return call2;
107216
107379
  }
107217
107380
  return _assertThisInitialized$k(self2);
107218
107381
  }
@@ -107467,9 +107630,9 @@ function _createSuper$j(Derived) {
107467
107630
  return _possibleConstructorReturn$j(this, result);
107468
107631
  };
107469
107632
  }
107470
- function _possibleConstructorReturn$j(self2, call) {
107471
- if (call && (_typeof$j(call) === "object" || typeof call === "function")) {
107472
- return call;
107633
+ function _possibleConstructorReturn$j(self2, call2) {
107634
+ if (call2 && (_typeof$j(call2) === "object" || typeof call2 === "function")) {
107635
+ return call2;
107473
107636
  }
107474
107637
  return _assertThisInitialized$j(self2);
107475
107638
  }
@@ -107658,9 +107821,9 @@ function _createSuper$i(Derived) {
107658
107821
  return _possibleConstructorReturn$i(this, result);
107659
107822
  };
107660
107823
  }
107661
- function _possibleConstructorReturn$i(self2, call) {
107662
- if (call && (_typeof$i(call) === "object" || typeof call === "function")) {
107663
- return call;
107824
+ function _possibleConstructorReturn$i(self2, call2) {
107825
+ if (call2 && (_typeof$i(call2) === "object" || typeof call2 === "function")) {
107826
+ return call2;
107664
107827
  }
107665
107828
  return _assertThisInitialized$i(self2);
107666
107829
  }
@@ -107838,9 +108001,9 @@ function _createSuper$h(Derived) {
107838
108001
  return _possibleConstructorReturn$h(this, result);
107839
108002
  };
107840
108003
  }
107841
- function _possibleConstructorReturn$h(self2, call) {
107842
- if (call && (_typeof$h(call) === "object" || typeof call === "function")) {
107843
- return call;
108004
+ function _possibleConstructorReturn$h(self2, call2) {
108005
+ if (call2 && (_typeof$h(call2) === "object" || typeof call2 === "function")) {
108006
+ return call2;
107844
108007
  }
107845
108008
  return _assertThisInitialized$h(self2);
107846
108009
  }
@@ -108112,9 +108275,9 @@ function _createSuper$g(Derived) {
108112
108275
  return _possibleConstructorReturn$g(this, result);
108113
108276
  };
108114
108277
  }
108115
- function _possibleConstructorReturn$g(self2, call) {
108116
- if (call && (_typeof$g(call) === "object" || typeof call === "function")) {
108117
- return call;
108278
+ function _possibleConstructorReturn$g(self2, call2) {
108279
+ if (call2 && (_typeof$g(call2) === "object" || typeof call2 === "function")) {
108280
+ return call2;
108118
108281
  }
108119
108282
  return _assertThisInitialized$g(self2);
108120
108283
  }
@@ -108369,9 +108532,9 @@ function _createSuper$f(Derived) {
108369
108532
  return _possibleConstructorReturn$f(this, result);
108370
108533
  };
108371
108534
  }
108372
- function _possibleConstructorReturn$f(self2, call) {
108373
- if (call && (_typeof$f(call) === "object" || typeof call === "function")) {
108374
- return call;
108535
+ function _possibleConstructorReturn$f(self2, call2) {
108536
+ if (call2 && (_typeof$f(call2) === "object" || typeof call2 === "function")) {
108537
+ return call2;
108375
108538
  }
108376
108539
  return _assertThisInitialized$f(self2);
108377
108540
  }
@@ -108584,9 +108747,9 @@ function _createSuper$e(Derived) {
108584
108747
  return _possibleConstructorReturn$e(this, result);
108585
108748
  };
108586
108749
  }
108587
- function _possibleConstructorReturn$e(self2, call) {
108588
- if (call && (_typeof$e(call) === "object" || typeof call === "function")) {
108589
- return call;
108750
+ function _possibleConstructorReturn$e(self2, call2) {
108751
+ if (call2 && (_typeof$e(call2) === "object" || typeof call2 === "function")) {
108752
+ return call2;
108590
108753
  }
108591
108754
  return _assertThisInitialized$e(self2);
108592
108755
  }
@@ -108747,9 +108910,9 @@ function _createSuper$d(Derived) {
108747
108910
  return _possibleConstructorReturn$d(this, result);
108748
108911
  };
108749
108912
  }
108750
- function _possibleConstructorReturn$d(self2, call) {
108751
- if (call && (_typeof$d(call) === "object" || typeof call === "function")) {
108752
- return call;
108913
+ function _possibleConstructorReturn$d(self2, call2) {
108914
+ if (call2 && (_typeof$d(call2) === "object" || typeof call2 === "function")) {
108915
+ return call2;
108753
108916
  }
108754
108917
  return _assertThisInitialized$d(self2);
108755
108918
  }
@@ -108884,9 +109047,9 @@ function _createSuper$c(Derived) {
108884
109047
  return _possibleConstructorReturn$c(this, result);
108885
109048
  };
108886
109049
  }
108887
- function _possibleConstructorReturn$c(self2, call) {
108888
- if (call && (_typeof$c(call) === "object" || typeof call === "function")) {
108889
- return call;
109050
+ function _possibleConstructorReturn$c(self2, call2) {
109051
+ if (call2 && (_typeof$c(call2) === "object" || typeof call2 === "function")) {
109052
+ return call2;
108890
109053
  }
108891
109054
  return _assertThisInitialized$c(self2);
108892
109055
  }
@@ -109019,9 +109182,9 @@ function _createSuper$b(Derived) {
109019
109182
  return _possibleConstructorReturn$b(this, result);
109020
109183
  };
109021
109184
  }
109022
- function _possibleConstructorReturn$b(self2, call) {
109023
- if (call && (_typeof$b(call) === "object" || typeof call === "function")) {
109024
- return call;
109185
+ function _possibleConstructorReturn$b(self2, call2) {
109186
+ if (call2 && (_typeof$b(call2) === "object" || typeof call2 === "function")) {
109187
+ return call2;
109025
109188
  }
109026
109189
  return _assertThisInitialized$b(self2);
109027
109190
  }
@@ -109231,9 +109394,9 @@ function _createSuper$a(Derived) {
109231
109394
  return _possibleConstructorReturn$a(this, result);
109232
109395
  };
109233
109396
  }
109234
- function _possibleConstructorReturn$a(self2, call) {
109235
- if (call && (_typeof$a(call) === "object" || typeof call === "function")) {
109236
- return call;
109397
+ function _possibleConstructorReturn$a(self2, call2) {
109398
+ if (call2 && (_typeof$a(call2) === "object" || typeof call2 === "function")) {
109399
+ return call2;
109237
109400
  }
109238
109401
  return _assertThisInitialized$a(self2);
109239
109402
  }
@@ -109382,9 +109545,9 @@ function _createSuper$9(Derived) {
109382
109545
  return _possibleConstructorReturn$9(this, result);
109383
109546
  };
109384
109547
  }
109385
- function _possibleConstructorReturn$9(self2, call) {
109386
- if (call && (_typeof$9(call) === "object" || typeof call === "function")) {
109387
- return call;
109548
+ function _possibleConstructorReturn$9(self2, call2) {
109549
+ if (call2 && (_typeof$9(call2) === "object" || typeof call2 === "function")) {
109550
+ return call2;
109388
109551
  }
109389
109552
  return _assertThisInitialized$9(self2);
109390
109553
  }
@@ -109576,9 +109739,9 @@ function _createSuper$8(Derived) {
109576
109739
  return _possibleConstructorReturn$8(this, result);
109577
109740
  };
109578
109741
  }
109579
- function _possibleConstructorReturn$8(self2, call) {
109580
- if (call && (_typeof$8(call) === "object" || typeof call === "function")) {
109581
- return call;
109742
+ function _possibleConstructorReturn$8(self2, call2) {
109743
+ if (call2 && (_typeof$8(call2) === "object" || typeof call2 === "function")) {
109744
+ return call2;
109582
109745
  }
109583
109746
  return _assertThisInitialized$8(self2);
109584
109747
  }
@@ -109758,9 +109921,9 @@ function _createSuper$7(Derived) {
109758
109921
  return _possibleConstructorReturn$7(this, result);
109759
109922
  };
109760
109923
  }
109761
- function _possibleConstructorReturn$7(self2, call) {
109762
- if (call && (_typeof$7(call) === "object" || typeof call === "function")) {
109763
- return call;
109924
+ function _possibleConstructorReturn$7(self2, call2) {
109925
+ if (call2 && (_typeof$7(call2) === "object" || typeof call2 === "function")) {
109926
+ return call2;
109764
109927
  }
109765
109928
  return _assertThisInitialized$7(self2);
109766
109929
  }
@@ -110000,9 +110163,9 @@ function _createSuper$6(Derived) {
110000
110163
  return _possibleConstructorReturn$6(this, result);
110001
110164
  };
110002
110165
  }
110003
- function _possibleConstructorReturn$6(self2, call) {
110004
- if (call && (_typeof$6(call) === "object" || typeof call === "function")) {
110005
- return call;
110166
+ function _possibleConstructorReturn$6(self2, call2) {
110167
+ if (call2 && (_typeof$6(call2) === "object" || typeof call2 === "function")) {
110168
+ return call2;
110006
110169
  }
110007
110170
  return _assertThisInitialized$6(self2);
110008
110171
  }
@@ -110330,8 +110493,8 @@ function throttle(func, wait, options) {
110330
110493
  });
110331
110494
  }
110332
110495
  function isObject(value) {
110333
- var type = typeof value;
110334
- return !!value && (type == "object" || type == "function");
110496
+ var type2 = typeof value;
110497
+ return !!value && (type2 == "object" || type2 == "function");
110335
110498
  }
110336
110499
  function isObjectLike(value) {
110337
110500
  return !!value && typeof value == "object";
@@ -110450,9 +110613,9 @@ function _createSuper$5(Derived) {
110450
110613
  return _possibleConstructorReturn$5(this, result);
110451
110614
  };
110452
110615
  }
110453
- function _possibleConstructorReturn$5(self2, call) {
110454
- if (call && (_typeof$5(call) === "object" || typeof call === "function")) {
110455
- return call;
110616
+ function _possibleConstructorReturn$5(self2, call2) {
110617
+ if (call2 && (_typeof$5(call2) === "object" || typeof call2 === "function")) {
110618
+ return call2;
110456
110619
  }
110457
110620
  return _assertThisInitialized$5(self2);
110458
110621
  }
@@ -110609,9 +110772,9 @@ function _createSuper$4(Derived) {
110609
110772
  return _possibleConstructorReturn$4(this, result);
110610
110773
  };
110611
110774
  }
110612
- function _possibleConstructorReturn$4(self2, call) {
110613
- if (call && (_typeof$4(call) === "object" || typeof call === "function")) {
110614
- return call;
110775
+ function _possibleConstructorReturn$4(self2, call2) {
110776
+ if (call2 && (_typeof$4(call2) === "object" || typeof call2 === "function")) {
110777
+ return call2;
110615
110778
  }
110616
110779
  return _assertThisInitialized$4(self2);
110617
110780
  }
@@ -110760,9 +110923,9 @@ function _createSuper$3(Derived) {
110760
110923
  return _possibleConstructorReturn$3(this, result);
110761
110924
  };
110762
110925
  }
110763
- function _possibleConstructorReturn$3(self2, call) {
110764
- if (call && (_typeof$3(call) === "object" || typeof call === "function")) {
110765
- return call;
110926
+ function _possibleConstructorReturn$3(self2, call2) {
110927
+ if (call2 && (_typeof$3(call2) === "object" || typeof call2 === "function")) {
110928
+ return call2;
110766
110929
  }
110767
110930
  return _assertThisInitialized$3(self2);
110768
110931
  }
@@ -111182,9 +111345,9 @@ function _createSuper$2(Derived) {
111182
111345
  return _possibleConstructorReturn$2(this, result);
111183
111346
  };
111184
111347
  }
111185
- function _possibleConstructorReturn$2(self2, call) {
111186
- if (call && (_typeof$2(call) === "object" || typeof call === "function")) {
111187
- return call;
111348
+ function _possibleConstructorReturn$2(self2, call2) {
111349
+ if (call2 && (_typeof$2(call2) === "object" || typeof call2 === "function")) {
111350
+ return call2;
111188
111351
  }
111189
111352
  return _assertThisInitialized$2(self2);
111190
111353
  }
@@ -111411,9 +111574,9 @@ function _createSuper$1(Derived) {
111411
111574
  return _possibleConstructorReturn$1(this, result);
111412
111575
  };
111413
111576
  }
111414
- function _possibleConstructorReturn$1(self2, call) {
111415
- if (call && (_typeof$1(call) === "object" || typeof call === "function")) {
111416
- return call;
111577
+ function _possibleConstructorReturn$1(self2, call2) {
111578
+ if (call2 && (_typeof$1(call2) === "object" || typeof call2 === "function")) {
111579
+ return call2;
111417
111580
  }
111418
111581
  return _assertThisInitialized$1(self2);
111419
111582
  }
@@ -111748,9 +111911,9 @@ function _createSuper(Derived) {
111748
111911
  return _possibleConstructorReturn(this, result);
111749
111912
  };
111750
111913
  }
111751
- function _possibleConstructorReturn(self2, call) {
111752
- if (call && (_typeof(call) === "object" || typeof call === "function")) {
111753
- return call;
111914
+ function _possibleConstructorReturn(self2, call2) {
111915
+ if (call2 && (_typeof(call2) === "object" || typeof call2 === "function")) {
111916
+ return call2;
111754
111917
  }
111755
111918
  return _assertThisInitialized(self2);
111756
111919
  }
@@ -112376,9 +112539,9 @@ const require$$2$2 = /* @__PURE__ */ getAugmentedNamespace(esm$4);
112376
112539
  return _possibleConstructorReturn2(this, result);
112377
112540
  };
112378
112541
  }
112379
- function _possibleConstructorReturn2(self2, call) {
112380
- if (call && (_typeof2(call) === "object" || typeof call === "function")) {
112381
- return call;
112542
+ function _possibleConstructorReturn2(self2, call2) {
112543
+ if (call2 && (_typeof2(call2) === "object" || typeof call2 === "function")) {
112544
+ return call2;
112382
112545
  }
112383
112546
  return _assertThisInitialized2(self2);
112384
112547
  }
@@ -112767,9 +112930,9 @@ const require$$2$2 = /* @__PURE__ */ getAugmentedNamespace(esm$4);
112767
112930
  return _possibleConstructorReturn2(this, result);
112768
112931
  };
112769
112932
  }
112770
- function _possibleConstructorReturn2(self2, call) {
112771
- if (call && (_typeof2(call) === "object" || typeof call === "function")) {
112772
- return call;
112933
+ function _possibleConstructorReturn2(self2, call2) {
112934
+ if (call2 && (_typeof2(call2) === "object" || typeof call2 === "function")) {
112935
+ return call2;
112773
112936
  }
112774
112937
  return _assertThisInitialized2(self2);
112775
112938
  }
@@ -113376,9 +113539,9 @@ const require$$2$1 = /* @__PURE__ */ getAugmentedNamespace(h3Js_es);
113376
113539
  return _possibleConstructorReturn2(this, result);
113377
113540
  };
113378
113541
  }
113379
- function _possibleConstructorReturn2(self2, call) {
113380
- if (call && (_typeof2(call) === "object" || typeof call === "function")) {
113381
- return call;
113542
+ function _possibleConstructorReturn2(self2, call2) {
113543
+ if (call2 && (_typeof2(call2) === "object" || typeof call2 === "function")) {
113544
+ return call2;
113382
113545
  }
113383
113546
  return _assertThisInitialized2(self2);
113384
113547
  }
@@ -113799,9 +113962,9 @@ var selectionLayer = {};
113799
113962
  return _possibleConstructorReturn2(this, result);
113800
113963
  };
113801
113964
  }
113802
- function _possibleConstructorReturn2(self2, call) {
113803
- if (call && (_typeof2(call) === "object" || typeof call === "function")) {
113804
- return call;
113965
+ function _possibleConstructorReturn2(self2, call2) {
113966
+ if (call2 && (_typeof2(call2) === "object" || typeof call2 === "function")) {
113967
+ return call2;
113805
113968
  }
113806
113969
  return _assertThisInitialized2(self2);
113807
113970
  }
@@ -114074,9 +114237,9 @@ var elevatedEditHandleLayer = {};
114074
114237
  return _possibleConstructorReturn2(this, result);
114075
114238
  };
114076
114239
  }
114077
- function _possibleConstructorReturn2(self2, call) {
114078
- if (call && (_typeof2(call) === "object" || typeof call === "function")) {
114079
- return call;
114240
+ function _possibleConstructorReturn2(self2, call2) {
114241
+ if (call2 && (_typeof2(call2) === "object" || typeof call2 === "function")) {
114242
+ return call2;
114080
114243
  }
114081
114244
  return _assertThisInitialized2(self2);
114082
114245
  }
@@ -114911,9 +115074,9 @@ var outline = {};
114911
115074
  return _possibleConstructorReturn2(this, result);
114912
115075
  };
114913
115076
  }
114914
- function _possibleConstructorReturn2(self2, call) {
114915
- if (call && (_typeof2(call) === "object" || typeof call === "function")) {
114916
- return call;
115077
+ function _possibleConstructorReturn2(self2, call2) {
115078
+ if (call2 && (_typeof2(call2) === "object" || typeof call2 === "function")) {
115079
+ return call2;
114917
115080
  }
114918
115081
  return _assertThisInitialized2(self2);
114919
115082
  }
@@ -115135,9 +115298,9 @@ var arrow2dGeometry = {};
115135
115298
  return _possibleConstructorReturn2(this, result);
115136
115299
  };
115137
115300
  }
115138
- function _possibleConstructorReturn2(self2, call) {
115139
- if (call && (_typeof2(call) === "object" || typeof call === "function")) {
115140
- return call;
115301
+ function _possibleConstructorReturn2(self2, call2) {
115302
+ if (call2 && (_typeof2(call2) === "object" || typeof call2 === "function")) {
115303
+ return call2;
115141
115304
  }
115142
115305
  return _assertThisInitialized2(self2);
115143
115306
  }
@@ -115579,9 +115742,9 @@ function getClosestPointOnPolyline(_ref2) {
115579
115742
  return _possibleConstructorReturn2(this, result);
115580
115743
  };
115581
115744
  }
115582
- function _possibleConstructorReturn2(self2, call) {
115583
- if (call && (_typeof2(call) === "object" || typeof call === "function")) {
115584
- return call;
115745
+ function _possibleConstructorReturn2(self2, call2) {
115746
+ if (call2 && (_typeof2(call2) === "object" || typeof call2 === "function")) {
115747
+ return call2;
115585
115748
  }
115586
115749
  return _assertThisInitialized2(self2);
115587
115750
  }
@@ -115882,9 +116045,9 @@ var junctionScatterplotLayer = {};
115882
116045
  return _possibleConstructorReturn2(this, result);
115883
116046
  };
115884
116047
  }
115885
- function _possibleConstructorReturn2(self2, call) {
115886
- if (call && (_typeof2(call) === "object" || typeof call === "function")) {
115887
- return call;
116048
+ function _possibleConstructorReturn2(self2, call2) {
116049
+ if (call2 && (_typeof2(call2) === "object" || typeof call2 === "function")) {
116050
+ return call2;
115888
116051
  }
115889
116052
  return _assertThisInitialized2(self2);
115890
116053
  }
@@ -116477,9 +116640,9 @@ var deckCache = {};
116477
116640
  return _possibleConstructorReturn2(this, result);
116478
116641
  };
116479
116642
  }
116480
- function _possibleConstructorReturn2(self2, call) {
116481
- if (call && (_typeof2(call) === "object" || typeof call === "function")) {
116482
- return call;
116643
+ function _possibleConstructorReturn2(self2, call2) {
116644
+ if (call2 && (_typeof2(call2) === "object" || typeof call2 === "function")) {
116645
+ return call2;
116483
116646
  }
116484
116647
  return _assertThisInitialized2(self2);
116485
116648
  }
@@ -116650,9 +116813,9 @@ var textsLayer = {};
116650
116813
  return _possibleConstructorReturn2(this, result);
116651
116814
  };
116652
116815
  }
116653
- function _possibleConstructorReturn2(self2, call) {
116654
- if (call && (_typeof2(call) === "object" || typeof call === "function")) {
116655
- return call;
116816
+ function _possibleConstructorReturn2(self2, call2) {
116817
+ if (call2 && (_typeof2(call2) === "object" || typeof call2 === "function")) {
116818
+ return call2;
116656
116819
  }
116657
116820
  return _assertThisInitialized2(self2);
116658
116821
  }
@@ -116818,9 +116981,9 @@ var segmentsLayer = {};
116818
116981
  return _possibleConstructorReturn2(this, result);
116819
116982
  };
116820
116983
  }
116821
- function _possibleConstructorReturn2(self2, call) {
116822
- if (call && (_typeof2(call) === "object" || typeof call === "function")) {
116823
- return call;
116984
+ function _possibleConstructorReturn2(self2, call2) {
116985
+ if (call2 && (_typeof2(call2) === "object" || typeof call2 === "function")) {
116986
+ return call2;
116824
116987
  }
116825
116988
  return _assertThisInitialized2(self2);
116826
116989
  }
@@ -117204,13 +117367,13 @@ var document_1 = doccy;
117204
117367
  }, {
117205
117368
  key: "_isNebulaEvent",
117206
117369
  value: function _isNebulaEvent(_ref2) {
117207
- var buttons = _ref2.buttons, target = _ref2.target, type = _ref2.type;
117370
+ var buttons = _ref2.buttons, target = _ref2.target, type2 = _ref2.type;
117208
117371
  var viewport = this.props.viewport;
117209
- if (this._mouseWasDown && type === "mouseup") {
117372
+ if (this._mouseWasDown && type2 === "mouseup") {
117210
117373
  this._mouseWasDown = false;
117211
117374
  return true;
117212
117375
  }
117213
- if (type === "mousemove" && buttons > 0) {
117376
+ if (type2 === "mousemove" && buttons > 0) {
117214
117377
  return true;
117215
117378
  }
117216
117379
  if (!target.getBoundingClientRect) {
@@ -118946,16 +119109,16 @@ function addDecoder(cases, importFn) {
118946
119109
  }
118947
119110
  cases.forEach((c) => registry$1.set(c, importFn));
118948
119111
  }
118949
- addDecoder([void 0, 1], () => import("./raw-990c03f2.js").then((m) => m.default));
118950
- addDecoder(5, () => import("./lzw-ce0a27a5.js").then((m) => m.default));
119112
+ addDecoder([void 0, 1], () => import("./raw-edc1b484.js").then((m) => m.default));
119113
+ addDecoder(5, () => import("./lzw-b2d51046.js").then((m) => m.default));
118951
119114
  addDecoder(6, () => {
118952
119115
  throw new Error("old style JPEG compression is not supported.");
118953
119116
  });
118954
- addDecoder(7, () => import("./jpeg-e6962eb1.js").then((m) => m.default));
118955
- addDecoder([8, 32946], () => import("./deflate-90ed0656.js").then((m) => m.default));
118956
- addDecoder(32773, () => import("./packbits-1f714328.js").then((m) => m.default));
118957
- addDecoder(34887, () => import("./lerc-3d332179.js").then((m) => m.default));
118958
- addDecoder(50001, () => import("./webimage-41a1c67c.js").then((m) => m.default));
119117
+ addDecoder(7, () => import("./jpeg-c4ebb381.js").then((m) => m.default));
119118
+ addDecoder([8, 32946], () => import("./deflate-860335b4.js").then((m) => m.default));
119119
+ addDecoder(32773, () => import("./packbits-309d3e2b.js").then((m) => m.default));
119120
+ addDecoder(34887, () => import("./lerc-fa9e22c6.js").then((m) => m.default));
119121
+ addDecoder(50001, () => import("./webimage-2d6276a4.js").then((m) => m.default));
118959
119122
  function decodeRowAcc(row, stride) {
118960
119123
  let length2 = row.length - stride;
118961
119124
  let offset = 0;
@@ -121540,22 +121703,22 @@ ZodUnion.create = (types, params) => {
121540
121703
  ...processCreateParams(params)
121541
121704
  });
121542
121705
  };
121543
- const getDiscriminator = (type) => {
121544
- if (type instanceof ZodLazy) {
121545
- return getDiscriminator(type.schema);
121546
- } else if (type instanceof ZodEffects) {
121547
- return getDiscriminator(type.innerType());
121548
- } else if (type instanceof ZodLiteral) {
121549
- return [type.value];
121550
- } else if (type instanceof ZodEnum) {
121551
- return type.options;
121552
- } else if (type instanceof ZodNativeEnum) {
121553
- return Object.keys(type.enum);
121554
- } else if (type instanceof ZodDefault) {
121555
- return getDiscriminator(type._def.innerType);
121556
- } else if (type instanceof ZodUndefined) {
121706
+ const getDiscriminator = (type2) => {
121707
+ if (type2 instanceof ZodLazy) {
121708
+ return getDiscriminator(type2.schema);
121709
+ } else if (type2 instanceof ZodEffects) {
121710
+ return getDiscriminator(type2.innerType());
121711
+ } else if (type2 instanceof ZodLiteral) {
121712
+ return [type2.value];
121713
+ } else if (type2 instanceof ZodEnum) {
121714
+ return type2.options;
121715
+ } else if (type2 instanceof ZodNativeEnum) {
121716
+ return Object.keys(type2.enum);
121717
+ } else if (type2 instanceof ZodDefault) {
121718
+ return getDiscriminator(type2._def.innerType);
121719
+ } else if (type2 instanceof ZodUndefined) {
121557
121720
  return [void 0];
121558
- } else if (type instanceof ZodNull) {
121721
+ } else if (type2 instanceof ZodNull) {
121559
121722
  return [null];
121560
121723
  } else {
121561
121724
  return null;
@@ -121616,8 +121779,8 @@ class ZodDiscriminatedUnion extends ZodType {
121616
121779
  */
121617
121780
  static create(discriminator, options, params) {
121618
121781
  const optionsMap = /* @__PURE__ */ new Map();
121619
- for (const type of options) {
121620
- const discriminatorValues = getDiscriminator(type.shape[discriminator]);
121782
+ for (const type2 of options) {
121783
+ const discriminatorValues = getDiscriminator(type2.shape[discriminator]);
121621
121784
  if (!discriminatorValues) {
121622
121785
  throw new Error(`A discriminator value for key \`${discriminator}\` could not be extracted from all schema options`);
121623
121786
  }
@@ -121625,7 +121788,7 @@ class ZodDiscriminatedUnion extends ZodType {
121625
121788
  if (optionsMap.has(value)) {
121626
121789
  throw new Error(`Discriminator property ${String(discriminator)} has duplicate value ${String(value)}`);
121627
121790
  }
121628
- optionsMap.set(value, type);
121791
+ optionsMap.set(value, type2);
121629
121792
  }
121630
121793
  }
121631
121794
  return new ZodDiscriminatedUnion({
@@ -122418,9 +122581,9 @@ class ZodOptional extends ZodType {
122418
122581
  return this._def.innerType;
122419
122582
  }
122420
122583
  }
122421
- ZodOptional.create = (type, params) => {
122584
+ ZodOptional.create = (type2, params) => {
122422
122585
  return new ZodOptional({
122423
- innerType: type,
122586
+ innerType: type2,
122424
122587
  typeName: ZodFirstPartyTypeKind.ZodOptional,
122425
122588
  ...processCreateParams(params)
122426
122589
  });
@@ -122437,9 +122600,9 @@ class ZodNullable extends ZodType {
122437
122600
  return this._def.innerType;
122438
122601
  }
122439
122602
  }
122440
- ZodNullable.create = (type, params) => {
122603
+ ZodNullable.create = (type2, params) => {
122441
122604
  return new ZodNullable({
122442
- innerType: type,
122605
+ innerType: type2,
122443
122606
  typeName: ZodFirstPartyTypeKind.ZodNullable,
122444
122607
  ...processCreateParams(params)
122445
122608
  });
@@ -122461,9 +122624,9 @@ class ZodDefault extends ZodType {
122461
122624
  return this._def.innerType;
122462
122625
  }
122463
122626
  }
122464
- ZodDefault.create = (type, params) => {
122627
+ ZodDefault.create = (type2, params) => {
122465
122628
  return new ZodDefault({
122466
- innerType: type,
122629
+ innerType: type2,
122467
122630
  typeName: ZodFirstPartyTypeKind.ZodDefault,
122468
122631
  defaultValue: typeof params.default === "function" ? params.default : () => params.default,
122469
122632
  ...processCreateParams(params)
@@ -122514,9 +122677,9 @@ class ZodCatch extends ZodType {
122514
122677
  return this._def.innerType;
122515
122678
  }
122516
122679
  }
122517
- ZodCatch.create = (type, params) => {
122680
+ ZodCatch.create = (type2, params) => {
122518
122681
  return new ZodCatch({
122519
- innerType: type,
122682
+ innerType: type2,
122520
122683
  typeName: ZodFirstPartyTypeKind.ZodCatch,
122521
122684
  catchValue: typeof params.catch === "function" ? params.catch : () => params.catch,
122522
122685
  ...processCreateParams(params)
@@ -122621,9 +122784,9 @@ class ZodReadonly extends ZodType {
122621
122784
  return result;
122622
122785
  }
122623
122786
  }
122624
- ZodReadonly.create = (type, params) => {
122787
+ ZodReadonly.create = (type2, params) => {
122625
122788
  return new ZodReadonly({
122626
- innerType: type,
122789
+ innerType: type2,
122627
122790
  typeName: ZodFirstPartyTypeKind.ZodReadonly,
122628
122791
  ...processCreateParams(params)
122629
122792
  });
@@ -125443,7 +125606,7 @@ const dext = new Uint8Array([
125443
125606
  64,
125444
125607
  64
125445
125608
  ]);
125446
- const inflate_table = (type, lens2, lens_index, codes, table, table_index, work, opts) => {
125609
+ const inflate_table = (type2, lens2, lens_index, codes, table, table_index, work, opts) => {
125447
125610
  const bits = opts.bits;
125448
125611
  let len2 = 0;
125449
125612
  let sym = 0;
@@ -125504,7 +125667,7 @@ const inflate_table = (type, lens2, lens_index, codes, table, table_index, work,
125504
125667
  return -1;
125505
125668
  }
125506
125669
  }
125507
- if (left > 0 && (type === CODES || max2 !== 1)) {
125670
+ if (left > 0 && (type2 === CODES || max2 !== 1)) {
125508
125671
  return -1;
125509
125672
  }
125510
125673
  offs[1] = 0;
@@ -125516,10 +125679,10 @@ const inflate_table = (type, lens2, lens_index, codes, table, table_index, work,
125516
125679
  work[offs[lens2[lens_index + sym]]++] = sym;
125517
125680
  }
125518
125681
  }
125519
- if (type === CODES) {
125682
+ if (type2 === CODES) {
125520
125683
  base = extra = work;
125521
125684
  end = 19;
125522
- } else if (type === LENS) {
125685
+ } else if (type2 === LENS) {
125523
125686
  base = lbase;
125524
125687
  base_index -= 257;
125525
125688
  extra = lext;
@@ -125539,7 +125702,7 @@ const inflate_table = (type, lens2, lens_index, codes, table, table_index, work,
125539
125702
  low = -1;
125540
125703
  used = 1 << root2;
125541
125704
  mask = used - 1;
125542
- if (type === LENS && used > ENOUGH_LENS || type === DISTS && used > ENOUGH_DISTS) {
125705
+ if (type2 === LENS && used > ENOUGH_LENS || type2 === DISTS && used > ENOUGH_DISTS) {
125543
125706
  return 1;
125544
125707
  }
125545
125708
  for (; ; ) {
@@ -125594,7 +125757,7 @@ const inflate_table = (type, lens2, lens_index, codes, table, table_index, work,
125594
125757
  left <<= 1;
125595
125758
  }
125596
125759
  used += 1 << curr;
125597
- if (type === LENS && used > ENOUGH_LENS || type === DISTS && used > ENOUGH_DISTS) {
125760
+ if (type2 === LENS && used > ENOUGH_LENS || type2 === DISTS && used > ENOUGH_DISTS) {
125598
125761
  return 1;
125599
125762
  }
125600
125763
  low = huff & mask;
@@ -125806,7 +125969,7 @@ const fixedtables = (state) => {
125806
125969
  state.distcode = distfix;
125807
125970
  state.distbits = 5;
125808
125971
  };
125809
- const updatewindow = (strm, src2, end, copy2) => {
125972
+ const updatewindow = (strm, src, end, copy2) => {
125810
125973
  let dist;
125811
125974
  const state = strm.state;
125812
125975
  if (state.window === null) {
@@ -125816,7 +125979,7 @@ const updatewindow = (strm, src2, end, copy2) => {
125816
125979
  state.window = new Uint8Array(state.wsize);
125817
125980
  }
125818
125981
  if (copy2 >= state.wsize) {
125819
- state.window.set(src2.subarray(end - state.wsize, end), 0);
125982
+ state.window.set(src.subarray(end - state.wsize, end), 0);
125820
125983
  state.wnext = 0;
125821
125984
  state.whave = state.wsize;
125822
125985
  } else {
@@ -125824,10 +125987,10 @@ const updatewindow = (strm, src2, end, copy2) => {
125824
125987
  if (dist > copy2) {
125825
125988
  dist = copy2;
125826
125989
  }
125827
- state.window.set(src2.subarray(end - copy2, end - copy2 + dist), state.wnext);
125990
+ state.window.set(src.subarray(end - copy2, end - copy2 + dist), state.wnext);
125828
125991
  copy2 -= dist;
125829
125992
  if (copy2) {
125830
- state.window.set(src2.subarray(end - copy2, end), 0);
125993
+ state.window.set(src.subarray(end - copy2, end), 0);
125831
125994
  state.wnext = copy2;
125832
125995
  state.whave = state.wsize;
125833
125996
  } else {
@@ -127093,8 +127256,8 @@ let __toBinary = IS_NODE ? (base64) => new Uint8Array(Buffer.from(base64, "base6
127093
127256
  return bytes;
127094
127257
  };
127095
127258
  })();
127096
- function initEmscriptenModule(moduleFactory, src2) {
127097
- const wasmBinary = __toBinary(src2);
127259
+ function initEmscriptenModule(moduleFactory, src) {
127260
+ const wasmBinary = __toBinary(src);
127098
127261
  return moduleFactory({ noInitialRun: true, wasmBinary });
127099
127262
  }
127100
127263
  var blosc_codec = function() {
@@ -132859,7 +133022,7 @@ class BitmaskLayer2 extends XRLayer {
132859
133022
  } = this.state;
132860
133023
  if (textures && model) {
132861
133024
  const scaleFactor = 1 / 2 ** (maxZoom - zoom);
132862
- const colors = Object.fromEntries(range$4(MAX_CHANNELS).map((i2) => [`color${i2}`, getColor(channelColors[i2])]));
133025
+ const colors = Object.fromEntries(range$5(MAX_CHANNELS).map((i2) => [`color${i2}`, getColor(channelColors[i2])]));
132863
133026
  model.setUniforms(Object.assign({}, uniforms, {
132864
133027
  ...colors,
132865
133028
  // Bitmask image channel data textures
@@ -133097,8 +133260,8 @@ function getNgffAxes(firstMultiscalesAxes) {
133097
133260
  if (typeof axis === "string") {
133098
133261
  return { name: axis, type: getDefaultAxisType(axis) };
133099
133262
  }
133100
- const { name: name2, type } = axis;
133101
- return { name: name2, type: type ?? getDefaultAxisType(name2) };
133263
+ const { name: name2, type: type2 } = axis;
133264
+ return { name: name2, type: type2 ?? getDefaultAxisType(name2) };
133102
133265
  });
133103
133266
  }
133104
133267
  return axes;