@vitessce/spatial-utils 3.4.6 → 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.
@@ -105,8 +105,8 @@ function baseTrim(string) {
105
105
  return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
106
106
  }
107
107
  function isObject$5(value) {
108
- var type = typeof value;
109
- return value != null && (type == "object" || type == "function");
108
+ var type2 = typeof value;
109
+ return value != null && (type2 == "object" || type2 == "function");
110
110
  }
111
111
  var NAN$1 = 0 / 0;
112
112
  var reIsBadHex$1 = /^[-+]0x[0-9a-f]+$/i;
@@ -202,9 +202,9 @@ const WeakMap$2 = WeakMap$1;
202
202
  var MAX_SAFE_INTEGER$2 = 9007199254740991;
203
203
  var reIsUint = /^(?:0|[1-9]\d*)$/;
204
204
  function isIndex$1(value, length2) {
205
- var type = typeof value;
205
+ var type2 = typeof value;
206
206
  length2 = length2 == null ? MAX_SAFE_INTEGER$2 : length2;
207
- return !!length2 && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length2);
207
+ return !!length2 && (type2 == "number" || type2 != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length2);
208
208
  }
209
209
  function eq(value, other) {
210
210
  return value === other || value !== value && other !== other;
@@ -220,8 +220,8 @@ function isIterateeCall(value, index2, object2) {
220
220
  if (!isObject$5(object2)) {
221
221
  return false;
222
222
  }
223
- var type = typeof index2;
224
- if (type == "number" ? isArrayLike(object2) && isIndex$1(index2, object2.length) : type == "string" && index2 in object2) {
223
+ var type2 = typeof index2;
224
+ if (type2 == "number" ? isArrayLike(object2) && isIndex$1(index2, object2.length) : type2 == "string" && index2 in object2) {
225
225
  return eq(object2[index2], value);
226
226
  }
227
227
  return false;
@@ -449,8 +449,8 @@ function mapCacheClear() {
449
449
  };
450
450
  }
451
451
  function isKeyable(value) {
452
- var type = typeof value;
453
- return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
452
+ var type2 = typeof value;
453
+ return type2 == "string" || type2 == "number" || type2 == "symbol" || type2 == "boolean" ? value !== "__proto__" : value === null;
454
454
  }
455
455
  function getMapData(map2, key) {
456
456
  var data = map2.__data__;
@@ -853,8 +853,8 @@ function createRange(fromRight) {
853
853
  return baseRange(start, end, step, fromRight);
854
854
  };
855
855
  }
856
- var range$4 = createRange();
857
- const range$5 = range$4;
856
+ var range$5 = createRange();
857
+ const range$6 = range$5;
858
858
  function assert$c(condition, message) {
859
859
  if (!condition) {
860
860
  throw new Error("math.gl assertion ".concat(message));
@@ -3798,7 +3798,32 @@ class Quaternion extends MathArray {
3798
3798
  return this.multiplyRight(a2);
3799
3799
  }
3800
3800
  }
3801
- function _defineProperty$f(obj, key, value) {
3801
+ function _typeof$v(obj) {
3802
+ "@babel/helpers - typeof";
3803
+ return _typeof$v = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
3804
+ return typeof obj2;
3805
+ } : function(obj2) {
3806
+ return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
3807
+ }, _typeof$v(obj);
3808
+ }
3809
+ function _toPrimitive(input, hint2) {
3810
+ if (_typeof$v(input) !== "object" || input === null)
3811
+ return input;
3812
+ var prim = input[Symbol.toPrimitive];
3813
+ if (prim !== void 0) {
3814
+ var res = prim.call(input, hint2 || "default");
3815
+ if (_typeof$v(res) !== "object")
3816
+ return res;
3817
+ throw new TypeError("@@toPrimitive must return a primitive value.");
3818
+ }
3819
+ return (hint2 === "string" ? String : Number)(input);
3820
+ }
3821
+ function _toPropertyKey(arg) {
3822
+ var key = _toPrimitive(arg, "string");
3823
+ return _typeof$v(key) === "symbol" ? key : String(key);
3824
+ }
3825
+ function _defineProperty$e(obj, key, value) {
3826
+ key = _toPropertyKey(key);
3802
3827
  if (key in obj) {
3803
3828
  Object.defineProperty(obj, key, {
3804
3829
  value,
@@ -3823,10 +3848,10 @@ class SphericalCoordinates {
3823
3848
  altitude,
3824
3849
  radiusScale = EARTH_RADIUS_METERS
3825
3850
  } = {}) {
3826
- _defineProperty$f(this, "phi", void 0);
3827
- _defineProperty$f(this, "theta", void 0);
3828
- _defineProperty$f(this, "radius", void 0);
3829
- _defineProperty$f(this, "radiusScale", void 0);
3851
+ _defineProperty$e(this, "phi", void 0);
3852
+ _defineProperty$e(this, "theta", void 0);
3853
+ _defineProperty$e(this, "radius", void 0);
3854
+ _defineProperty$e(this, "radiusScale", void 0);
3830
3855
  this.phi = phi;
3831
3856
  this.theta = theta;
3832
3857
  this.radius = radius || altitude || 1;
@@ -4360,8 +4385,8 @@ class Pose {
4360
4385
  position,
4361
4386
  orientation
4362
4387
  } = {}) {
4363
- _defineProperty$f(this, "position", void 0);
4364
- _defineProperty$f(this, "orientation", void 0);
4388
+ _defineProperty$e(this, "position", void 0);
4389
+ _defineProperty$e(this, "orientation", void 0);
4365
4390
  if (Array.isArray(position) && position.length === 3) {
4366
4391
  this.position = new Vector3(position);
4367
4392
  } else {
@@ -4700,8 +4725,8 @@ function typeOf(x2) {
4700
4725
  return t;
4701
4726
  }
4702
4727
  function clone$7(x2) {
4703
- var type = typeof x2;
4704
- if (type === "number" || type === "string" || type === "boolean" || x2 === null || x2 === void 0) {
4728
+ var type2 = typeof x2;
4729
+ if (type2 === "number" || type2 === "string" || type2 === "boolean" || x2 === null || x2 === void 0) {
4705
4730
  return x2;
4706
4731
  }
4707
4732
  if (typeof x2.clone === "function") {
@@ -4905,11 +4930,11 @@ var typedFunction$1 = { exports: {} };
4905
4930
  });
4906
4931
  throw new TypeError('Unknown type "' + typeName + '"' + (hint2 ? '. Did you mean "' + hint2.name + '"?' : ""));
4907
4932
  }
4908
- function findTypeIndex(type) {
4909
- if (type === anyType) {
4933
+ function findTypeIndex(type2) {
4934
+ if (type2 === anyType) {
4910
4935
  return 999;
4911
4936
  }
4912
- return typed2.types.indexOf(type);
4937
+ return typed2.types.indexOf(type2);
4913
4938
  }
4914
4939
  function findTypeName(value) {
4915
4940
  var entry = findInArray(typed2.types, function(entry2) {
@@ -4942,18 +4967,18 @@ var typedFunction$1 = { exports: {} };
4942
4967
  }
4943
4968
  throw new TypeError("Signature not found (signature: " + (fn.name || "unnamed") + "(" + arr.join(", ") + "))");
4944
4969
  }
4945
- function convert(value, type) {
4970
+ function convert(value, type2) {
4946
4971
  var from = findTypeName(value);
4947
- if (type === from) {
4972
+ if (type2 === from) {
4948
4973
  return value;
4949
4974
  }
4950
4975
  for (var i2 = 0; i2 < typed2.conversions.length; i2++) {
4951
4976
  var conversion = typed2.conversions[i2];
4952
- if (conversion.from === from && conversion.to === type) {
4977
+ if (conversion.from === from && conversion.to === type2) {
4953
4978
  return conversion.convert(value);
4954
4979
  }
4955
4980
  }
4956
- throw new Error("Cannot convert from " + from + " to " + type);
4981
+ throw new Error("Cannot convert from " + from + " to " + type2);
4957
4982
  }
4958
4983
  function stringifyParams(params) {
4959
4984
  return params.map(function(param) {
@@ -4967,21 +4992,21 @@ var typedFunction$1 = { exports: {} };
4967
4992
  var typeNames = types.split("|").map(trim).filter(notEmpty).filter(notIgnore);
4968
4993
  var matchingConversions = filterConversions(conversions, typeNames);
4969
4994
  var exactTypes = typeNames.map(function(typeName) {
4970
- var type = findTypeByName(typeName);
4995
+ var type2 = findTypeByName(typeName);
4971
4996
  return {
4972
4997
  name: typeName,
4973
- typeIndex: findTypeIndex(type),
4974
- test: type.test,
4998
+ typeIndex: findTypeIndex(type2),
4999
+ test: type2.test,
4975
5000
  conversion: null,
4976
5001
  conversionIndex: -1
4977
5002
  };
4978
5003
  });
4979
5004
  var convertibleTypes = matchingConversions.map(function(conversion) {
4980
- var type = findTypeByName(conversion.from);
5005
+ var type2 = findTypeByName(conversion.from);
4981
5006
  return {
4982
5007
  name: conversion.from,
4983
- typeIndex: findTypeIndex(type),
4984
- test: type.test,
5008
+ typeIndex: findTypeIndex(type2),
5009
+ test: type2.test,
4985
5010
  conversion,
4986
5011
  conversionIndex: conversions.indexOf(conversion)
4987
5012
  };
@@ -5015,8 +5040,8 @@ var typedFunction$1 = { exports: {} };
5015
5040
  return param ? param.restParam : false;
5016
5041
  }
5017
5042
  function hasConversions(param) {
5018
- return param.types.some(function(type) {
5019
- return type.conversion != null;
5043
+ return param.types.some(function(type2) {
5044
+ return type2.conversion != null;
5020
5045
  });
5021
5046
  }
5022
5047
  function compileTest(param) {
@@ -5031,8 +5056,8 @@ var typedFunction$1 = { exports: {} };
5031
5056
  return test0(x2) || test1(x2);
5032
5057
  };
5033
5058
  } else {
5034
- var tests = param.types.map(function(type) {
5035
- return findTypeByName(type.name).test;
5059
+ var tests = param.types.map(function(type2) {
5060
+ return findTypeByName(type2.name).test;
5036
5061
  });
5037
5062
  return function or(x2) {
5038
5063
  for (var i2 = 0; i2 < tests.length; i2++) {
@@ -5103,11 +5128,11 @@ var typedFunction$1 = { exports: {} };
5103
5128
  var types = param ? excludeConversions ? param.types.filter(isExactType) : param.types : [];
5104
5129
  return types.map(getTypeName);
5105
5130
  }
5106
- function getTypeName(type) {
5107
- return type.name;
5131
+ function getTypeName(type2) {
5132
+ return type2.name;
5108
5133
  }
5109
- function isExactType(type) {
5110
- return type.conversion === null || type.conversion === void 0;
5134
+ function isExactType(type2) {
5135
+ return type2.conversion === null || type2.conversion === void 0;
5111
5136
  }
5112
5137
  function mergeExpectedParams(signatures, index2) {
5113
5138
  var typeNames = uniq(flatMap(signatures, function(signature) {
@@ -5275,10 +5300,10 @@ var typedFunction$1 = { exports: {} };
5275
5300
  var test0, test1, conversion0, conversion1;
5276
5301
  var tests = [];
5277
5302
  var conversions = [];
5278
- param.types.forEach(function(type) {
5279
- if (type.conversion) {
5280
- tests.push(findTypeByName(type.conversion.from).test);
5281
- conversions.push(type.conversion.convert);
5303
+ param.types.forEach(function(type2) {
5304
+ if (type2.conversion) {
5305
+ tests.push(findTypeByName(type2.conversion.from).test);
5306
+ conversions.push(type2.conversion.convert);
5282
5307
  }
5283
5308
  });
5284
5309
  switch (conversions.length) {
@@ -5341,17 +5366,17 @@ var typedFunction$1 = { exports: {} };
5341
5366
  var exactTypes = filteredTypes.filter(isExactType);
5342
5367
  typeGroups = exactTypes.length < filteredTypes.length ? [exactTypes, filteredTypes] : [filteredTypes];
5343
5368
  } else {
5344
- typeGroups = filteredTypes.map(function(type) {
5345
- return [type];
5369
+ typeGroups = filteredTypes.map(function(type2) {
5370
+ return [type2];
5346
5371
  });
5347
5372
  }
5348
5373
  return flatMap(typeGroups, function(typeGroup) {
5349
5374
  return _splitParams(params2, index2 + 1, types.concat([typeGroup]));
5350
5375
  });
5351
5376
  } else {
5352
- var splittedParams = types.map(function(type, typeIndex) {
5377
+ var splittedParams = types.map(function(type2, typeIndex) {
5353
5378
  return {
5354
- types: type,
5379
+ types: type2,
5355
5380
  restParam: typeIndex === params2.length - 1 && hasRestParam(params2)
5356
5381
  };
5357
5382
  });
@@ -5609,19 +5634,19 @@ var typedFunction$1 = { exports: {} };
5609
5634
  typed2.createError = createError;
5610
5635
  typed2.convert = convert;
5611
5636
  typed2.find = find;
5612
- typed2.addType = function(type, beforeObjectTest) {
5613
- if (!type || typeof type.name !== "string" || typeof type.test !== "function") {
5637
+ typed2.addType = function(type2, beforeObjectTest) {
5638
+ if (!type2 || typeof type2.name !== "string" || typeof type2.test !== "function") {
5614
5639
  throw new TypeError("Object with properties {name: string, test: function} expected");
5615
5640
  }
5616
5641
  if (beforeObjectTest !== false) {
5617
5642
  for (var i2 = 0; i2 < typed2.types.length; i2++) {
5618
5643
  if (typed2.types[i2].name === "Object") {
5619
- typed2.types.splice(i2, 0, type);
5644
+ typed2.types.splice(i2, 0, type2);
5620
5645
  return;
5621
5646
  }
5622
5647
  }
5623
5648
  }
5624
- typed2.types.push(type);
5649
+ typed2.types.push(type2);
5625
5650
  };
5626
5651
  typed2.addConversion = function(conversion) {
5627
5652
  if (!conversion || typeof conversion.from !== "string" || typeof conversion.to !== "string" || typeof conversion.convert !== "function") {
@@ -6322,7 +6347,7 @@ function flatten$1(array) {
6322
6347
  return flat;
6323
6348
  }
6324
6349
  function getArrayDataType(array, typeOf2) {
6325
- var type;
6350
+ var type2;
6326
6351
  var length2 = 0;
6327
6352
  for (var i2 = 0; i2 < array.length; i2++) {
6328
6353
  var item = array[i2];
@@ -6334,14 +6359,14 @@ function getArrayDataType(array, typeOf2) {
6334
6359
  return void 0;
6335
6360
  }
6336
6361
  var itemType = isArray2 ? getArrayDataType(item, typeOf2) : typeOf2(item);
6337
- if (type === void 0) {
6338
- type = itemType;
6339
- } else if (type !== itemType) {
6362
+ if (type2 === void 0) {
6363
+ type2 = itemType;
6364
+ } else if (type2 !== itemType) {
6340
6365
  return "mixed";
6341
6366
  } else
6342
6367
  ;
6343
6368
  }
6344
- return type;
6369
+ return type2;
6345
6370
  }
6346
6371
  function factory(name2, dependencies2, create2, meta2) {
6347
6372
  function assertAndCreate(scope) {
@@ -8948,7 +8973,7 @@ function clone$6(obj) {
8948
8973
  Decimal2.log = log$5;
8949
8974
  Decimal2.log10 = log10;
8950
8975
  Decimal2.log2 = log2$1;
8951
- Decimal2.max = max$1;
8976
+ Decimal2.max = max$2;
8952
8977
  Decimal2.min = min;
8953
8978
  Decimal2.mod = mod$2;
8954
8979
  Decimal2.mul = mul;
@@ -9019,7 +9044,7 @@ function log2$1(x2) {
9019
9044
  function log10(x2) {
9020
9045
  return new this(x2).log(10);
9021
9046
  }
9022
- function max$1() {
9047
+ function max$2() {
9023
9048
  return maxOrMin(this, arguments, "lt");
9024
9049
  }
9025
9050
  function min() {
@@ -14598,7 +14623,7 @@ function _objectSpread$5(target) {
14598
14623
  var source = arguments[i2] != null ? arguments[i2] : {};
14599
14624
  if (i2 % 2) {
14600
14625
  ownKeys$5(Object(source), true).forEach(function(key) {
14601
- _defineProperty$f(target, key, source[key]);
14626
+ _defineProperty$e(target, key, source[key]);
14602
14627
  });
14603
14628
  } else if (Object.getOwnPropertyDescriptors) {
14604
14629
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
@@ -15426,7 +15451,7 @@ function _objectSpread$4(target) {
15426
15451
  var source = arguments[i2] != null ? arguments[i2] : {};
15427
15452
  if (i2 % 2) {
15428
15453
  ownKeys$4(Object(source), true).forEach(function(key) {
15429
- _defineProperty$f(target, key, source[key]);
15454
+ _defineProperty$e(target, key, source[key]);
15430
15455
  });
15431
15456
  } else if (Object.getOwnPropertyDescriptors) {
15432
15457
  Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
@@ -18467,11 +18492,11 @@ var createUnitClass = /* @__PURE__ */ factory(name$d, dependencies$6, (_ref) =>
18467
18492
  return x2;
18468
18493
  }
18469
18494
  };
18470
- Unit2._getNumberConverter = function(type) {
18471
- if (!Unit2.typeConverters[type]) {
18472
- throw new TypeError('Unsupported type "' + type + '"');
18495
+ Unit2._getNumberConverter = function(type2) {
18496
+ if (!Unit2.typeConverters[type2]) {
18497
+ throw new TypeError('Unsupported type "' + type2 + '"');
18473
18498
  }
18474
- return Unit2.typeConverters[type];
18499
+ return Unit2.typeConverters[type2];
18475
18500
  };
18476
18501
  for (var _key2 in UNITS2) {
18477
18502
  if (hasOwnProperty$2(UNITS2, _key2)) {
@@ -19973,44 +19998,6 @@ const isWorker = typeof importScripts === "function";
19973
19998
  const isMobile = typeof window !== "undefined" && typeof window.orientation !== "undefined";
19974
19999
  const matches = typeof process !== "undefined" && process.version && /v([0-9]*)/.exec(process.version);
19975
20000
  matches && parseFloat(matches[1]) || 0;
19976
- function _typeof$v(obj) {
19977
- "@babel/helpers - typeof";
19978
- return _typeof$v = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
19979
- return typeof obj2;
19980
- } : function(obj2) {
19981
- return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
19982
- }, _typeof$v(obj);
19983
- }
19984
- function _toPrimitive(input, hint2) {
19985
- if (_typeof$v(input) !== "object" || input === null)
19986
- return input;
19987
- var prim = input[Symbol.toPrimitive];
19988
- if (prim !== void 0) {
19989
- var res = prim.call(input, hint2 || "default");
19990
- if (_typeof$v(res) !== "object")
19991
- return res;
19992
- throw new TypeError("@@toPrimitive must return a primitive value.");
19993
- }
19994
- return (hint2 === "string" ? String : Number)(input);
19995
- }
19996
- function _toPropertyKey(arg) {
19997
- var key = _toPrimitive(arg, "string");
19998
- return _typeof$v(key) === "symbol" ? key : String(key);
19999
- }
20000
- function _defineProperty$e(obj, key, value) {
20001
- key = _toPropertyKey(key);
20002
- if (key in obj) {
20003
- Object.defineProperty(obj, key, {
20004
- value,
20005
- enumerable: true,
20006
- configurable: true,
20007
- writable: true
20008
- });
20009
- } else {
20010
- obj[key] = value;
20011
- }
20012
- return obj;
20013
- }
20014
20001
  class WorkerJob {
20015
20002
  constructor(jobName, workerThread) {
20016
20003
  _defineProperty$e(this, "name", void 0);
@@ -20028,10 +20015,10 @@ class WorkerJob {
20028
20015
  this._reject = reject;
20029
20016
  });
20030
20017
  }
20031
- postMessage(type, payload) {
20018
+ postMessage(type2, payload) {
20032
20019
  this.workerThread.postMessage({
20033
20020
  source: "loaders.gl",
20034
- type,
20021
+ type: type2,
20035
20022
  payload
20036
20023
  });
20037
20024
  }
@@ -20263,7 +20250,7 @@ class WorkerPool {
20263
20250
  this.onDebug = props.onDebug;
20264
20251
  }
20265
20252
  }
20266
- async startJob(name2, onMessage2 = (job, type, data) => job.done(data), onError = (job, error2) => job.error(error2)) {
20253
+ async startJob(name2, onMessage2 = (job, type2, data) => job.done(data), onError = (job, error2) => job.error(error2)) {
20267
20254
  const startPromise = new Promise((onStart) => {
20268
20255
  this.jobQueue.push({
20269
20256
  name: name2,
@@ -20526,8 +20513,8 @@ async function parseWithWorker(loader, data, options, context, parseOnMainThread
20526
20513
  const result = await job.result;
20527
20514
  return await result.result;
20528
20515
  }
20529
- async function onMessage(parseOnMainThread, job, type, payload) {
20530
- switch (type) {
20516
+ async function onMessage(parseOnMainThread, job, type2, payload) {
20517
+ switch (type2) {
20531
20518
  case "done":
20532
20519
  job.done(payload);
20533
20520
  break;
@@ -20555,7 +20542,7 @@ async function onMessage(parseOnMainThread, job, type, payload) {
20555
20542
  }
20556
20543
  break;
20557
20544
  default:
20558
- console.warn("parse-with-worker unknown message ".concat(type));
20545
+ console.warn("parse-with-worker unknown message ".concat(type2));
20559
20546
  }
20560
20547
  }
20561
20548
  function getFirstCharacters$1(data, length2 = 5) {
@@ -20702,7 +20689,7 @@ function getHiResTimestamp$1() {
20702
20689
  return timestamp;
20703
20690
  }
20704
20691
  class Stat {
20705
- constructor(name2, type) {
20692
+ constructor(name2, type2) {
20706
20693
  _defineProperty$e(this, "name", void 0);
20707
20694
  _defineProperty$e(this, "type", void 0);
20708
20695
  _defineProperty$e(this, "sampleSize", 1);
@@ -20718,7 +20705,7 @@ class Stat {
20718
20705
  _defineProperty$e(this, "_startTime", 0);
20719
20706
  _defineProperty$e(this, "_timerPending", false);
20720
20707
  this.name = name2;
20721
- this.type = type;
20708
+ this.type = type2;
20722
20709
  this.reset();
20723
20710
  }
20724
20711
  setSampleSize(samples) {
@@ -20821,10 +20808,10 @@ class Stats {
20821
20808
  Object.seal(this);
20822
20809
  }
20823
20810
  get(name2) {
20824
- let type = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "count";
20811
+ let type2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "count";
20825
20812
  return this._getOrCreate({
20826
20813
  name: name2,
20827
- type
20814
+ type: type2
20828
20815
  });
20829
20816
  }
20830
20817
  get size() {
@@ -20863,13 +20850,13 @@ class Stats {
20863
20850
  }
20864
20851
  const {
20865
20852
  name: name2,
20866
- type
20853
+ type: type2
20867
20854
  } = stat;
20868
20855
  if (!this.stats[name2]) {
20869
20856
  if (stat instanceof Stat) {
20870
20857
  this.stats[name2] = stat;
20871
20858
  } else {
20872
- this.stats[name2] = new Stat(name2, type);
20859
+ this.stats[name2] = new Stat(name2, type2);
20873
20860
  }
20874
20861
  }
20875
20862
  return this.stats[name2];
@@ -20887,12 +20874,12 @@ const DEFAULT_PROPS$3 = {
20887
20874
  };
20888
20875
  class RequestScheduler {
20889
20876
  constructor(props = {}) {
20890
- _defineProperty$f(this, "props", void 0);
20891
- _defineProperty$f(this, "stats", void 0);
20892
- _defineProperty$f(this, "activeRequestCount", 0);
20893
- _defineProperty$f(this, "requestQueue", []);
20894
- _defineProperty$f(this, "requestMap", /* @__PURE__ */ new Map());
20895
- _defineProperty$f(this, "deferredUpdate", null);
20877
+ _defineProperty$e(this, "props", void 0);
20878
+ _defineProperty$e(this, "stats", void 0);
20879
+ _defineProperty$e(this, "activeRequestCount", 0);
20880
+ _defineProperty$e(this, "requestQueue", []);
20881
+ _defineProperty$e(this, "requestMap", /* @__PURE__ */ new Map());
20882
+ _defineProperty$e(this, "deferredUpdate", null);
20896
20883
  this.props = {
20897
20884
  ...DEFAULT_PROPS$3,
20898
20885
  ...props
@@ -21100,10 +21087,10 @@ async function makeResponse(resource) {
21100
21087
  }
21101
21088
  const {
21102
21089
  url,
21103
- type
21090
+ type: type2
21104
21091
  } = getResourceUrlAndType(resource);
21105
- if (type) {
21106
- headers["content-type"] = type;
21092
+ if (type2) {
21093
+ headers["content-type"] = type2;
21107
21094
  }
21108
21095
  const initialDataUrl = await getInitialDataUrl(resource);
21109
21096
  if (initialDataUrl) {
@@ -21240,9 +21227,9 @@ function getBrowser(mockUserAgent) {
21240
21227
  }
21241
21228
  return "Unknown";
21242
21229
  }
21243
- function getStorage(type) {
21230
+ function getStorage(type2) {
21244
21231
  try {
21245
- const storage = window[type];
21232
+ const storage = window[type2];
21246
21233
  const x2 = "__storage_test__";
21247
21234
  storage.setItem(x2, x2);
21248
21235
  storage.removeItem(x2);
@@ -21254,11 +21241,11 @@ function getStorage(type) {
21254
21241
  class LocalStorage {
21255
21242
  constructor(id) {
21256
21243
  let defaultSettings = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
21257
- let type = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "sessionStorage";
21244
+ let type2 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "sessionStorage";
21258
21245
  _defineProperty$e(this, "storage", void 0);
21259
21246
  _defineProperty$e(this, "id", void 0);
21260
21247
  _defineProperty$e(this, "config", {});
21261
- this.storage = getStorage(type);
21248
+ this.storage = getStorage(type2);
21262
21249
  this.id = id;
21263
21250
  this.config = {};
21264
21251
  Object.assign(this.config, defaultSettings);
@@ -21744,7 +21731,7 @@ class NullLog {
21744
21731
  }
21745
21732
  class ConsoleLog {
21746
21733
  constructor() {
21747
- _defineProperty$f(this, "console", void 0);
21734
+ _defineProperty$e(this, "console", void 0);
21748
21735
  this.console = console;
21749
21736
  }
21750
21737
  log(...args) {
@@ -22008,7 +21995,7 @@ function selectLoaderSync(data, loaders = [], options, context) {
22008
21995
  function selectLoaderInternal(data, loaders, options, context) {
22009
21996
  const {
22010
21997
  url,
22011
- type
21998
+ type: type2
22012
21999
  } = getResourceUrlAndType(data);
22013
22000
  const testUrl = url || (context === null || context === void 0 ? void 0 : context.url);
22014
22001
  let loader = null;
@@ -22019,12 +22006,12 @@ function selectLoaderInternal(data, loaders, options, context) {
22019
22006
  }
22020
22007
  loader = loader || findLoaderByUrl(loaders, testUrl);
22021
22008
  reason = reason || (loader ? "matched url ".concat(testUrl) : "");
22022
- loader = loader || findLoaderByMIMEType(loaders, type);
22023
- reason = reason || (loader ? "matched MIME type ".concat(type) : "");
22009
+ loader = loader || findLoaderByMIMEType(loaders, type2);
22010
+ reason = reason || (loader ? "matched MIME type ".concat(type2) : "");
22024
22011
  loader = loader || findLoaderByInitialBytes(loaders, data);
22025
22012
  reason = reason || (loader ? "matched initial data ".concat(getFirstCharacters(data)) : "");
22026
22013
  loader = loader || findLoaderByMIMEType(loaders, options === null || options === void 0 ? void 0 : options.fallbackMimeType);
22027
- reason = reason || (loader ? "matched fallback MIME type ".concat(type) : "");
22014
+ reason = reason || (loader ? "matched fallback MIME type ".concat(type2) : "");
22028
22015
  if (reason) {
22029
22016
  var _loader;
22030
22017
  log$4.log(1, "selectLoader selected ".concat((_loader = loader) === null || _loader === void 0 ? void 0 : _loader.name, ": ").concat(reason, "."));
@@ -22042,11 +22029,11 @@ function validHTTPResponse(data) {
22042
22029
  function getNoValidLoaderMessage(data) {
22043
22030
  const {
22044
22031
  url,
22045
- type
22032
+ type: type2
22046
22033
  } = getResourceUrlAndType(data);
22047
22034
  let message = "No valid loader found (";
22048
22035
  message += url ? "".concat(filename(url), ", ") : "no url provided, ";
22049
- message += "MIME type: ".concat(type ? '"'.concat(type, '"') : "not provided", ", ");
22036
+ message += "MIME type: ".concat(type2 ? '"'.concat(type2, '"') : "not provided", ", ");
22050
22037
  const firstCharacters = data ? getFirstCharacters(data) : "";
22051
22038
  message += firstCharacters ? ' first bytes: "'.concat(firstCharacters, '"') : "first bytes: not available";
22052
22039
  message += ")";
@@ -22354,7 +22341,7 @@ async function parseWithLoader(loader, data, options, context) {
22354
22341
  redirected,
22355
22342
  status,
22356
22343
  statusText,
22357
- type,
22344
+ type: type2,
22358
22345
  url
22359
22346
  } = response;
22360
22347
  const headers = Object.fromEntries(response.headers.entries());
@@ -22364,7 +22351,7 @@ async function parseWithLoader(loader, data, options, context) {
22364
22351
  redirected,
22365
22352
  status,
22366
22353
  statusText,
22367
- type,
22354
+ type: type2,
22368
22355
  url
22369
22356
  };
22370
22357
  }
@@ -22408,8 +22395,8 @@ const IMAGE_SUPPORTED = typeof Image !== "undefined";
22408
22395
  const IMAGE_BITMAP_SUPPORTED = typeof ImageBitmap !== "undefined";
22409
22396
  const NODE_IMAGE_SUPPORTED = Boolean(_parseImageNode);
22410
22397
  const DATA_SUPPORTED = isBrowser$3 ? true : NODE_IMAGE_SUPPORTED;
22411
- function isImageTypeSupported(type) {
22412
- switch (type) {
22398
+ function isImageTypeSupported(type2) {
22399
+ switch (type2) {
22413
22400
  case "auto":
22414
22401
  return IMAGE_BITMAP_SUPPORTED || IMAGE_SUPPORTED || DATA_SUPPORTED;
22415
22402
  case "imagebitmap":
@@ -22419,7 +22406,7 @@ function isImageTypeSupported(type) {
22419
22406
  case "data":
22420
22407
  return DATA_SUPPORTED;
22421
22408
  default:
22422
- throw new Error("@loaders.gl/images: image ".concat(type, " not supported in this environment"));
22409
+ throw new Error("@loaders.gl/images: image ".concat(type2, " not supported in this environment"));
22423
22410
  }
22424
22411
  }
22425
22412
  function getDefaultImageType() {
@@ -22488,8 +22475,8 @@ function getBlobOrSVGDataUrl(arrayBuffer2, url) {
22488
22475
  } catch (error2) {
22489
22476
  throw new Error(error2.message);
22490
22477
  }
22491
- const src2 = "data:image/svg+xml;base64,".concat(btoa(xmlText));
22492
- return src2;
22478
+ const src = "data:image/svg+xml;base64,".concat(btoa(xmlText));
22479
+ return src;
22493
22480
  }
22494
22481
  return getBlob(arrayBuffer2, url);
22495
22482
  }
@@ -22688,14 +22675,14 @@ async function parseImage(arrayBuffer2, options, context) {
22688
22675
  }
22689
22676
  return image;
22690
22677
  }
22691
- function getLoadableImageType(type) {
22692
- switch (type) {
22678
+ function getLoadableImageType(type2) {
22679
+ switch (type2) {
22693
22680
  case "auto":
22694
22681
  case "data":
22695
22682
  return getDefaultImageType();
22696
22683
  default:
22697
- isImageTypeSupported(type);
22698
- return type;
22684
+ isImageTypeSupported(type2);
22685
+ return type2;
22699
22686
  }
22700
22687
  }
22701
22688
  const EXTENSIONS$1 = ["png", "jpg", "jpeg", "gif", "webp", "bmp", "ico", "svg"];
@@ -22766,16 +22753,16 @@ const LOG_LEVEL_UPDATE_DETAIL = 3;
22766
22753
  const LOG_LEVEL_INFO = 4;
22767
22754
  const LOG_LEVEL_DRAW = 2;
22768
22755
  const getLoggers = (log3) => ({
22769
- "layer.changeFlag": (layer, key, flags2) => {
22770
- log3.log(LOG_LEVEL_UPDATE_DETAIL, "".concat(layer.id, " ").concat(key, ": "), flags2[key])();
22756
+ "layer.changeFlag": (layer, key, flags3) => {
22757
+ log3.log(LOG_LEVEL_UPDATE_DETAIL, "".concat(layer.id, " ").concat(key, ": "), flags3[key])();
22771
22758
  },
22772
22759
  "layer.initialize": (layer) => {
22773
22760
  log3.log(LOG_LEVEL_MAJOR_UPDATE, "Initializing ".concat(layer))();
22774
22761
  },
22775
22762
  "layer.update": (layer, needsUpdate) => {
22776
22763
  if (needsUpdate) {
22777
- const flags2 = layer.getChangeFlags();
22778
- log3.log(LOG_LEVEL_MINOR_UPDATE, "Updating ".concat(layer, " because: ").concat(Object.keys(flags2).filter((key) => flags2[key]).join(", ")))();
22764
+ const flags3 = layer.getChangeFlags();
22765
+ log3.log(LOG_LEVEL_MINOR_UPDATE, "Updating ".concat(layer, " because: ").concat(Object.keys(flags3).filter((key) => flags3[key]).join(", ")))();
22779
22766
  } else {
22780
22767
  log3.log(LOG_LEVEL_INFO, "".concat(layer, " does not need update"))();
22781
22768
  }
@@ -23066,13 +23053,13 @@ const OESVertexArrayObject = function OESVertexArrayObject2(gl) {
23066
23053
  return original.getVertexAttrib.apply(this, arguments);
23067
23054
  }
23068
23055
  };
23069
- gl.vertexAttribPointer = function vertexAttribPointer(indx, size2, type, normalized, stride, offset) {
23056
+ gl.vertexAttribPointer = function vertexAttribPointer(indx, size2, type2, normalized, stride, offset) {
23070
23057
  const vao = self2.currentVertexArrayObject;
23071
23058
  vao.maxAttrib = Math.max(vao.maxAttrib, indx);
23072
23059
  const attrib = vao.attribs[indx];
23073
23060
  attrib.buffer = self2.currentArrayBuffer;
23074
23061
  attrib.size = size2;
23075
- attrib.type = type;
23062
+ attrib.type = type2;
23076
23063
  attrib.normalized = normalized;
23077
23064
  attrib.stride = stride;
23078
23065
  attrib.offset = offset;
@@ -23685,8 +23672,8 @@ const GL_PARAMETER_SETTERS = {
23685
23672
  },
23686
23673
  stencilFunc: (gl, args) => {
23687
23674
  args = isArray$1(args) && args.length === 3 ? [...args, ...args] : args;
23688
- const [func, ref, mask, backFunc, backRef, backMask] = args;
23689
- gl.stencilFuncSeparate(1028, func, ref, mask);
23675
+ const [func, ref2, mask, backFunc, backRef, backMask] = args;
23676
+ gl.stencilFuncSeparate(1028, func, ref2, mask);
23690
23677
  gl.stencilFuncSeparate(1029, backFunc, backRef, backMask);
23691
23678
  },
23692
23679
  stencilOp: (gl, args) => {
@@ -23753,10 +23740,10 @@ const GL_HOOKED_SETTERS = {
23753
23740
  [32777]: modeRGB,
23754
23741
  [34877]: modeAlpha
23755
23742
  }),
23756
- blendFunc: (update, src2, dst) => update({
23757
- [32969]: src2,
23743
+ blendFunc: (update, src, dst) => update({
23744
+ [32969]: src,
23758
23745
  [32968]: dst,
23759
- [32971]: src2,
23746
+ [32971]: src,
23760
23747
  [32970]: dst
23761
23748
  }),
23762
23749
  blendFuncSeparate: (update, srcRGB, dstRGB, srcAlpha, dstAlpha) => update({
@@ -23813,17 +23800,17 @@ const GL_HOOKED_SETTERS = {
23813
23800
  stencilMaskSeparate: (update, face, mask) => update({
23814
23801
  [face === 1028 ? 2968 : 36005]: mask
23815
23802
  }),
23816
- stencilFunc: (update, func, ref, mask) => update({
23803
+ stencilFunc: (update, func, ref2, mask) => update({
23817
23804
  [2962]: func,
23818
- [2967]: ref,
23805
+ [2967]: ref2,
23819
23806
  [2963]: mask,
23820
23807
  [34816]: func,
23821
- [36003]: ref,
23808
+ [36003]: ref2,
23822
23809
  [36004]: mask
23823
23810
  }),
23824
- stencilFuncSeparate: (update, face, func, ref, mask) => update({
23811
+ stencilFuncSeparate: (update, face, func, ref2, mask) => update({
23825
23812
  [face === 1028 ? 2962 : 34816]: func,
23826
- [face === 1028 ? 2967 : 36003]: ref,
23813
+ [face === 1028 ? 2967 : 36003]: ref2,
23827
23814
  [face === 1028 ? 2963 : 36004]: mask
23828
23815
  }),
23829
23816
  stencilOp: (update, fail, zfail, zpass) => update({
@@ -24633,8 +24620,8 @@ let Resource$1 = class Resource {
24633
24620
  };
24634
24621
  const ERR_TYPE_DEDUCTION = "Failed to deduce GL constant from typed array";
24635
24622
  function getGLTypeFromTypedArray(arrayOrType) {
24636
- const type = ArrayBuffer.isView(arrayOrType) ? arrayOrType.constructor : arrayOrType;
24637
- switch (type) {
24623
+ const type2 = ArrayBuffer.isView(arrayOrType) ? arrayOrType.constructor : arrayOrType;
24624
+ switch (type2) {
24638
24625
  case Float32Array:
24639
24626
  return 5126;
24640
24627
  case Uint16Array:
@@ -25073,10 +25060,10 @@ let Buffer$1 = class Buffer2 extends Resource$1 {
25073
25060
  this.debugData = data.slice(0, DEBUG_DATA_LENGTH);
25074
25061
  this.bytesUsed = byteLength;
25075
25062
  this._trackAllocatedMemory(byteLength);
25076
- const type = getGLTypeFromTypedArray(data);
25077
- assert$7(type);
25063
+ const type2 = getGLTypeFromTypedArray(data);
25064
+ assert$7(type2);
25078
25065
  this.setAccessor(new Accessor(this.accessor, {
25079
- type
25066
+ type: type2
25080
25067
  }));
25081
25068
  return this;
25082
25069
  }
@@ -25313,7 +25300,7 @@ class Texture extends Resource$1 {
25313
25300
  width,
25314
25301
  height,
25315
25302
  dataFormat,
25316
- type,
25303
+ type: type2,
25317
25304
  compressed = false,
25318
25305
  mipmaps = true
25319
25306
  } = props;
@@ -25325,10 +25312,10 @@ class Texture extends Resource$1 {
25325
25312
  height,
25326
25313
  compressed,
25327
25314
  dataFormat,
25328
- type
25315
+ type: type2
25329
25316
  } = this._deduceParameters({
25330
25317
  format: format2,
25331
- type,
25318
+ type: type2,
25332
25319
  dataFormat,
25333
25320
  compressed,
25334
25321
  data,
@@ -25339,7 +25326,7 @@ class Texture extends Resource$1 {
25339
25326
  this.height = height;
25340
25327
  this.depth = depth;
25341
25328
  this.format = format2;
25342
- this.type = type;
25329
+ this.type = type2;
25343
25330
  this.dataFormat = dataFormat;
25344
25331
  this.border = border;
25345
25332
  this.textureUnit = textureUnit;
@@ -25359,7 +25346,7 @@ class Texture extends Resource$1 {
25359
25346
  height,
25360
25347
  depth,
25361
25348
  format: format2,
25362
- type,
25349
+ type: type2,
25363
25350
  dataFormat,
25364
25351
  border,
25365
25352
  mipmaps,
@@ -25448,7 +25435,7 @@ class Texture extends Resource$1 {
25448
25435
  } = options;
25449
25436
  let {
25450
25437
  data = null,
25451
- type = this.type,
25438
+ type: type2 = this.type,
25452
25439
  width = this.width,
25453
25440
  height = this.height,
25454
25441
  dataFormat = this.dataFormat,
@@ -25458,14 +25445,14 @@ class Texture extends Resource$1 {
25458
25445
  data = pixels;
25459
25446
  }
25460
25447
  ({
25461
- type,
25448
+ type: type2,
25462
25449
  dataFormat,
25463
25450
  compressed,
25464
25451
  width,
25465
25452
  height
25466
25453
  } = this._deduceParameters({
25467
25454
  format: format2,
25468
- type,
25455
+ type: type2,
25469
25456
  dataFormat,
25470
25457
  compressed,
25471
25458
  data,
@@ -25489,22 +25476,22 @@ class Texture extends Resource$1 {
25489
25476
  withParameters(this.gl, parameters, () => {
25490
25477
  switch (dataType) {
25491
25478
  case "null":
25492
- gl.texImage2D(target, level, format2, width, height, border, dataFormat, type, data);
25479
+ gl.texImage2D(target, level, format2, width, height, border, dataFormat, type2, data);
25493
25480
  break;
25494
25481
  case "typed-array":
25495
- gl.texImage2D(target, level, format2, width, height, border, dataFormat, type, data, offset);
25482
+ gl.texImage2D(target, level, format2, width, height, border, dataFormat, type2, data, offset);
25496
25483
  break;
25497
25484
  case "buffer":
25498
25485
  gl2 = assertWebGL2Context(gl);
25499
25486
  gl2.bindBuffer(35052, data.handle || data);
25500
- gl2.texImage2D(target, level, format2, width, height, border, dataFormat, type, offset);
25487
+ gl2.texImage2D(target, level, format2, width, height, border, dataFormat, type2, offset);
25501
25488
  gl2.bindBuffer(35052, null);
25502
25489
  break;
25503
25490
  case "browser-object":
25504
25491
  if (isWebGL2$1(gl)) {
25505
- gl.texImage2D(target, level, format2, width, height, border, dataFormat, type, data);
25492
+ gl.texImage2D(target, level, format2, width, height, border, dataFormat, type2, data);
25506
25493
  } else {
25507
- gl.texImage2D(target, level, format2, dataFormat, type, data);
25494
+ gl.texImage2D(target, level, format2, dataFormat, type2, data);
25508
25495
  }
25509
25496
  break;
25510
25497
  case "compressed":
@@ -25540,7 +25527,7 @@ class Texture extends Resource$1 {
25540
25527
  height = this.height,
25541
25528
  level = 0,
25542
25529
  format: format2 = this.format,
25543
- type = this.type,
25530
+ type: type2 = this.type,
25544
25531
  dataFormat = this.dataFormat,
25545
25532
  compressed = false,
25546
25533
  offset = 0,
@@ -25548,14 +25535,14 @@ class Texture extends Resource$1 {
25548
25535
  parameters = {}
25549
25536
  } = _ref2;
25550
25537
  ({
25551
- type,
25538
+ type: type2,
25552
25539
  dataFormat,
25553
25540
  compressed,
25554
25541
  width,
25555
25542
  height
25556
25543
  } = this._deduceParameters({
25557
25544
  format: format2,
25558
- type,
25545
+ type: type2,
25559
25546
  dataFormat,
25560
25547
  compressed,
25561
25548
  data,
@@ -25580,19 +25567,19 @@ class Texture extends Resource$1 {
25580
25567
  if (compressed) {
25581
25568
  this.gl.compressedTexSubImage2D(target, level, x2, y2, width, height, format2, data);
25582
25569
  } else if (data === null) {
25583
- this.gl.texSubImage2D(target, level, x2, y2, width, height, dataFormat, type, null);
25570
+ this.gl.texSubImage2D(target, level, x2, y2, width, height, dataFormat, type2, null);
25584
25571
  } else if (ArrayBuffer.isView(data)) {
25585
- this.gl.texSubImage2D(target, level, x2, y2, width, height, dataFormat, type, data, offset);
25572
+ this.gl.texSubImage2D(target, level, x2, y2, width, height, dataFormat, type2, data, offset);
25586
25573
  } else if (data instanceof WebGLBuffer) {
25587
25574
  const gl2 = assertWebGL2Context(this.gl);
25588
25575
  gl2.bindBuffer(35052, data);
25589
- gl2.texSubImage2D(target, level, x2, y2, width, height, dataFormat, type, offset);
25576
+ gl2.texSubImage2D(target, level, x2, y2, width, height, dataFormat, type2, offset);
25590
25577
  gl2.bindBuffer(35052, null);
25591
25578
  } else if (isWebGL2$1(this.gl)) {
25592
25579
  const gl2 = assertWebGL2Context(this.gl);
25593
- gl2.texSubImage2D(target, level, x2, y2, width, height, dataFormat, type, data);
25580
+ gl2.texSubImage2D(target, level, x2, y2, width, height, dataFormat, type2, data);
25594
25581
  } else {
25595
- this.gl.texSubImage2D(target, level, x2, y2, dataFormat, type, data);
25582
+ this.gl.texSubImage2D(target, level, x2, y2, dataFormat, type2, data);
25596
25583
  }
25597
25584
  });
25598
25585
  this.gl.bindTexture(this.target, null);
@@ -25677,12 +25664,12 @@ class Texture extends Resource$1 {
25677
25664
  width,
25678
25665
  height,
25679
25666
  dataFormat,
25680
- type,
25667
+ type: type2,
25681
25668
  compressed
25682
25669
  } = opts;
25683
25670
  const textureFormat = TEXTURE_FORMATS[format2];
25684
25671
  dataFormat = dataFormat || textureFormat && textureFormat.dataFormat;
25685
- type = type || textureFormat && textureFormat.types[0];
25672
+ type2 = type2 || textureFormat && textureFormat.types[0];
25686
25673
  compressed = compressed || textureFormat && textureFormat.compressed;
25687
25674
  ({
25688
25675
  width,
@@ -25690,7 +25677,7 @@ class Texture extends Resource$1 {
25690
25677
  } = this._deduceImageSize(data, width, height));
25691
25678
  return {
25692
25679
  dataFormat,
25693
- type,
25680
+ type: type2,
25694
25681
  compressed,
25695
25682
  width,
25696
25683
  height,
@@ -25916,7 +25903,7 @@ class TextureCube extends Texture {
25916
25903
  data,
25917
25904
  border = 0,
25918
25905
  format: format2 = 6408,
25919
- type = 5121
25906
+ type: type2 = 5121
25920
25907
  } = _ref2;
25921
25908
  const {
25922
25909
  gl
@@ -25933,9 +25920,9 @@ class TextureCube extends Texture {
25933
25920
  }
25934
25921
  resolvedFaces[index2].forEach((image, lodLevel) => {
25935
25922
  if (width && height) {
25936
- gl.texImage2D(face, lodLevel, format2, width, height, border, format2, type, image);
25923
+ gl.texImage2D(face, lodLevel, format2, width, height, border, format2, type2, image);
25937
25924
  } else {
25938
- gl.texImage2D(face, lodLevel, format2, format2, type, image);
25925
+ gl.texImage2D(face, lodLevel, format2, format2, type2, image);
25939
25926
  }
25940
25927
  });
25941
25928
  });
@@ -25950,7 +25937,7 @@ class TextureCube extends Texture {
25950
25937
  data,
25951
25938
  border = 0,
25952
25939
  format: format2 = 6408,
25953
- type = 5121
25940
+ type: type2 = 5121
25954
25941
  } = options;
25955
25942
  const {
25956
25943
  gl
@@ -25964,9 +25951,9 @@ class TextureCube extends Texture {
25964
25951
  pixels: resolvedImageData
25965
25952
  })));
25966
25953
  } else if (this.width || this.height) {
25967
- gl.texImage2D(face, 0, format2, width, height, border, format2, type, imageData);
25954
+ gl.texImage2D(face, 0, format2, width, height, border, format2, type2, imageData);
25968
25955
  } else {
25969
- gl.texImage2D(face, 0, format2, format2, type, imageData);
25956
+ gl.texImage2D(face, 0, format2, format2, type2, imageData);
25970
25957
  }
25971
25958
  return this;
25972
25959
  }
@@ -26001,7 +25988,7 @@ class Texture3D extends Texture {
26001
25988
  depth = 1,
26002
25989
  border = 0,
26003
25990
  format: format2,
26004
- type = 5121,
25991
+ type: type2 = 5121,
26005
25992
  offset = 0,
26006
25993
  data,
26007
25994
  parameters = {}
@@ -26010,11 +25997,11 @@ class Texture3D extends Texture {
26010
25997
  this.gl.bindTexture(this.target, this.handle);
26011
25998
  withParameters(this.gl, parameters, () => {
26012
25999
  if (ArrayBuffer.isView(data)) {
26013
- this.gl.texImage3D(this.target, level, dataFormat, width, height, depth, border, format2, type, data);
26000
+ this.gl.texImage3D(this.target, level, dataFormat, width, height, depth, border, format2, type2, data);
26014
26001
  }
26015
26002
  if (data instanceof Buffer$1) {
26016
26003
  this.gl.bindBuffer(35052, data.handle);
26017
- this.gl.texImage3D(this.target, level, dataFormat, width, height, depth, border, format2, type, offset);
26004
+ this.gl.texImage3D(this.target, level, dataFormat, width, height, depth, border, format2, type2, offset);
26018
26005
  }
26019
26006
  });
26020
26007
  if (data && data.byteLength) {
@@ -26386,8 +26373,8 @@ function glFormatToComponents(format2) {
26386
26373
  return 0;
26387
26374
  }
26388
26375
  }
26389
- function glTypeToBytes(type) {
26390
- switch (type) {
26376
+ function glTypeToBytes(type2) {
26377
+ switch (type2) {
26391
26378
  case 5121:
26392
26379
  return 1;
26393
26380
  case 33635:
@@ -26601,12 +26588,12 @@ function getFramebuffer$1(source) {
26601
26588
  deleteFramebuffer: false
26602
26589
  };
26603
26590
  }
26604
- function getPixelArray(pixelArray, type, format2, width, height) {
26591
+ function getPixelArray(pixelArray, type2, format2, width, height) {
26605
26592
  if (pixelArray) {
26606
26593
  return pixelArray;
26607
26594
  }
26608
- type = type || 5121;
26609
- const ArrayType = getTypedArrayFromGLType(type, {
26595
+ type2 = type2 || 5121;
26596
+ const ArrayType = getTypedArrayFromGLType(type2, {
26610
26597
  clamped: false
26611
26598
  });
26612
26599
  const components = glFormatToComponents(format2);
@@ -27271,7 +27258,7 @@ function cloneTextureFrom(refTexture, overrides) {
27271
27258
  width,
27272
27259
  height,
27273
27260
  format: format2,
27274
- type,
27261
+ type: type2,
27275
27262
  dataFormat,
27276
27263
  border,
27277
27264
  mipmaps
@@ -27280,7 +27267,7 @@ function cloneTextureFrom(refTexture, overrides) {
27280
27267
  width,
27281
27268
  height,
27282
27269
  format: format2,
27283
- type,
27270
+ type: type2,
27284
27271
  dataFormat,
27285
27272
  border,
27286
27273
  mipmaps
@@ -27312,8 +27299,8 @@ function getShaderName$1(shader) {
27312
27299
  }
27313
27300
  const GL_FRAGMENT_SHADER = 35632;
27314
27301
  const GL_VERTEX_SHADER = 35633;
27315
- function getShaderTypeName(type) {
27316
- switch (type) {
27302
+ function getShaderTypeName(type2) {
27303
+ switch (type2) {
27317
27304
  case GL_FRAGMENT_SHADER:
27318
27305
  return "fragment";
27319
27306
  case GL_VERTEX_SHADER:
@@ -27322,11 +27309,11 @@ function getShaderTypeName(type) {
27322
27309
  return "unknown type";
27323
27310
  }
27324
27311
  }
27325
- function parseGLSLCompilerError(errLog, src2, shaderType, shaderName) {
27312
+ function parseGLSLCompilerError(errLog, src, shaderType, shaderName) {
27326
27313
  const errorStrings = errLog.split(/\r?\n/);
27327
27314
  const errors = {};
27328
27315
  const warnings = {};
27329
- const name2 = shaderName || getShaderName$1(src2) || "(unnamed)";
27316
+ const name2 = shaderName || getShaderName$1(src) || "(unnamed)";
27330
27317
  const shaderDescription = "".concat(getShaderTypeName(shaderType), " shader ").concat(name2);
27331
27318
  for (let i2 = 0; i2 < errorStrings.length; i2++) {
27332
27319
  const errorString = errorStrings[i2];
@@ -27334,18 +27321,18 @@ function parseGLSLCompilerError(errLog, src2, shaderType, shaderName) {
27334
27321
  continue;
27335
27322
  }
27336
27323
  const segments = errorString.split(":");
27337
- const type = segments[0];
27324
+ const type2 = segments[0];
27338
27325
  const line = parseInt(segments[2], 10);
27339
27326
  if (isNaN(line)) {
27340
27327
  throw new Error("GLSL compilation error in ".concat(shaderDescription, ": ").concat(errLog));
27341
27328
  }
27342
- if (type !== "WARNING") {
27329
+ if (type2 !== "WARNING") {
27343
27330
  errors[line] = errorString;
27344
27331
  } else {
27345
27332
  warnings[line] = errorString;
27346
27333
  }
27347
27334
  }
27348
- const lines = addLineNumbers(src2);
27335
+ const lines = addLineNumbers(src);
27349
27336
  return {
27350
27337
  shaderName: shaderDescription,
27351
27338
  errors: formatErrors(errors, lines),
@@ -27363,10 +27350,10 @@ function formatErrors(errors, lines) {
27363
27350
  if (errors[i2 + 1]) {
27364
27351
  const error2 = errors[i2 + 1];
27365
27352
  const segments = error2.split(":", 3);
27366
- const type = segments[0];
27353
+ const type2 = segments[0];
27367
27354
  const column = parseInt(segments[1], 10) || 0;
27368
27355
  const err2 = error2.substring(segments.join(":").length + 1).trim();
27369
- message += padLeft("^^^ ".concat(type, ": ").concat(err2, "\n\n"), column);
27356
+ message += padLeft("^^^ ".concat(type2, ": ").concat(err2, "\n\n"), column);
27370
27357
  }
27371
27358
  }
27372
27359
  return message;
@@ -27817,24 +27804,24 @@ function decomposeCompositeGLType(compositeGLType) {
27817
27804
  if (!typeAndSize) {
27818
27805
  return null;
27819
27806
  }
27820
- const [type, components] = typeAndSize;
27807
+ const [type2, components] = typeAndSize;
27821
27808
  return {
27822
- type,
27809
+ type: type2,
27823
27810
  components
27824
27811
  };
27825
27812
  }
27826
- function getCompositeGLType(type, components) {
27827
- switch (type) {
27813
+ function getCompositeGLType(type2, components) {
27814
+ switch (type2) {
27828
27815
  case GL_BYTE:
27829
27816
  case GL_UNSIGNED_BYTE:
27830
27817
  case GL_SHORT:
27831
27818
  case GL_UNSIGNED_SHORT:
27832
- type = GL_FLOAT;
27819
+ type2 = GL_FLOAT;
27833
27820
  break;
27834
27821
  }
27835
27822
  for (const glType in COMPOSITE_GL_TYPES) {
27836
27823
  const [compType, compComponents, name2] = COMPOSITE_GL_TYPES[glType];
27837
- if (compType === type && compComponents === components) {
27824
+ if (compType === type2 && compComponents === components) {
27838
27825
  return {
27839
27826
  glType,
27840
27827
  name: name2
@@ -27893,12 +27880,12 @@ class ProgramConfiguration {
27893
27880
  for (let index2 = 0; index2 < count2; index2++) {
27894
27881
  const {
27895
27882
  name: name2,
27896
- type,
27883
+ type: type2,
27897
27884
  size: size2
27898
27885
  } = gl.getActiveAttrib(program.handle, index2);
27899
27886
  const location = gl.getAttribLocation(program.handle, name2);
27900
27887
  if (location >= 0) {
27901
- this._addAttribute(location, name2, type, size2);
27888
+ this._addAttribute(location, name2, type2, size2);
27902
27889
  }
27903
27890
  }
27904
27891
  this.attributeInfos.sort((a2, b) => a2.location - b.location);
@@ -27914,20 +27901,20 @@ class ProgramConfiguration {
27914
27901
  for (let location = 0; location < count2; location++) {
27915
27902
  const {
27916
27903
  name: name2,
27917
- type,
27904
+ type: type2,
27918
27905
  size: size2
27919
27906
  } = gl.getTransformFeedbackVarying(program.handle, location);
27920
- this._addVarying(location, name2, type, size2);
27907
+ this._addVarying(location, name2, type2, size2);
27921
27908
  }
27922
27909
  this.varyingInfos.sort((a2, b) => a2.location - b.location);
27923
27910
  }
27924
27911
  _addAttribute(location, name2, compositeType, size2) {
27925
27912
  const {
27926
- type,
27913
+ type: type2,
27927
27914
  components
27928
27915
  } = decomposeCompositeGLType(compositeType);
27929
27916
  const accessor = {
27930
- type,
27917
+ type: type2,
27931
27918
  size: size2 * components
27932
27919
  };
27933
27920
  this._inferProperties(location, name2, accessor);
@@ -27947,11 +27934,11 @@ class ProgramConfiguration {
27947
27934
  }
27948
27935
  _addVarying(location, name2, compositeType, size2) {
27949
27936
  const {
27950
- type,
27937
+ type: type2,
27951
27938
  components
27952
27939
  } = decomposeCompositeGLType(compositeType);
27953
27940
  const accessor = new Accessor({
27954
- type,
27941
+ type: type2,
27955
27942
  size: size2 * components
27956
27943
  });
27957
27944
  const varying = {
@@ -28153,8 +28140,8 @@ class Program extends Resource$1 {
28153
28140
  const shaderHandles = this.gl.getAttachedShaders(handle);
28154
28141
  const opts = {};
28155
28142
  for (const shaderHandle of shaderHandles) {
28156
- const type = this.gl.getShaderParameter(this.handle, 35663);
28157
- switch (type) {
28143
+ const type2 = this.gl.getShaderParameter(this.handle, 35663);
28144
+ switch (type2) {
28158
28145
  case 35633:
28159
28146
  opts.vs = new VertexShader({
28160
28147
  handle: shaderHandle
@@ -28629,7 +28616,7 @@ class VertexArrayObject extends Resource$1 {
28629
28616
  }
28630
28617
  const {
28631
28618
  size: size2,
28632
- type,
28619
+ type: type2,
28633
28620
  stride,
28634
28621
  offset,
28635
28622
  normalized,
@@ -28645,9 +28632,9 @@ class VertexArrayObject extends Resource$1 {
28645
28632
  gl.bindBuffer(34962, buffer2.handle);
28646
28633
  if (integer) {
28647
28634
  assert$7(isWebGL2$1(gl));
28648
- gl2.vertexAttribIPointer(location, size2, type, stride, offset);
28635
+ gl2.vertexAttribIPointer(location, size2, type2, stride, offset);
28649
28636
  } else {
28650
- gl.vertexAttribPointer(location, size2, type, normalized, stride, offset);
28637
+ gl.vertexAttribPointer(location, size2, type2, normalized, stride, offset);
28651
28638
  }
28652
28639
  gl.enableVertexAttribArray(location);
28653
28640
  gl2.vertexAttribDivisor(location, divisor || 0);
@@ -28976,9 +28963,9 @@ class VertexArray {
28976
28963
  const accessor = Accessor.resolve(accessInfo.accessor, currentAccessor, valueAccessor, appAccessor);
28977
28964
  const {
28978
28965
  size: size2,
28979
- type
28966
+ type: type2
28980
28967
  } = accessor;
28981
- assert$7(Number.isFinite(size2) && Number.isFinite(type));
28968
+ assert$7(Number.isFinite(size2) && Number.isFinite(type2));
28982
28969
  return {
28983
28970
  location,
28984
28971
  accessor
@@ -29279,7 +29266,7 @@ function getDebugTableRow(vertexArray, attribute, accessor, header) {
29279
29266
  "Format ": "N/A"
29280
29267
  };
29281
29268
  }
29282
- let type = "NOT PROVIDED";
29269
+ let type2 = "NOT PROVIDED";
29283
29270
  let size2 = 1;
29284
29271
  let verts = 0;
29285
29272
  let bytes = 0;
@@ -29287,10 +29274,10 @@ function getDebugTableRow(vertexArray, attribute, accessor, header) {
29287
29274
  let marker2;
29288
29275
  let value;
29289
29276
  if (accessor) {
29290
- type = accessor.type;
29277
+ type2 = accessor.type;
29291
29278
  size2 = accessor.size;
29292
- type = String(type).replace("Array", "");
29293
- isInteger2 = type.indexOf("nt") !== -1;
29279
+ type2 = String(type2).replace("Array", "");
29280
+ isInteger2 = type2.indexOf("nt") !== -1;
29294
29281
  }
29295
29282
  if (attribute instanceof Buffer$1) {
29296
29283
  const buffer2 = attribute;
@@ -29305,7 +29292,7 @@ function getDebugTableRow(vertexArray, attribute, accessor, header) {
29305
29292
  let format2;
29306
29293
  if (accessor) {
29307
29294
  const instanced = accessor.divisor > 0;
29308
- format2 = "".concat(instanced ? "I " : "P ", " ").concat(verts, " (x").concat(size2, "=").concat(bytes, " bytes ").concat(getKey(gl, type), ")");
29295
+ format2 = "".concat(instanced ? "I " : "P ", " ").concat(verts, " (x").concat(size2, "=").concat(bytes, " bytes ").concat(getKey(gl, type2), ")");
29309
29296
  } else {
29310
29297
  isInteger2 = true;
29311
29298
  format2 = "".concat(bytes, " bytes");
@@ -29320,22 +29307,22 @@ function getDebugTableRow(vertexArray, attribute, accessor, header) {
29320
29307
  }
29321
29308
  value = attribute;
29322
29309
  size2 = attribute.length;
29323
- type = String(attribute.constructor.name).replace("Array", "");
29324
- isInteger2 = type.indexOf("nt") !== -1;
29310
+ type2 = String(attribute.constructor.name).replace("Array", "");
29311
+ isInteger2 = type2.indexOf("nt") !== -1;
29325
29312
  return {
29326
29313
  [header]: "".concat(formatValue(value, {
29327
29314
  size: size2,
29328
29315
  isInteger: isInteger2
29329
29316
  }), " (constant)"),
29330
- "Format ": "".concat(size2, "x").concat(type, " (constant)")
29317
+ "Format ": "".concat(size2, "x").concat(type2, " (constant)")
29331
29318
  };
29332
29319
  }
29333
29320
  function getGLSLDeclaration$1(name2, accessor) {
29334
29321
  const {
29335
- type,
29322
+ type: type2,
29336
29323
  size: size2
29337
29324
  } = accessor;
29338
- const typeAndName = getCompositeGLType(type, size2);
29325
+ const typeAndName = getCompositeGLType(type2, size2);
29339
29326
  return typeAndName ? "".concat(name2, " (").concat(typeAndName.name, ")") : name2;
29340
29327
  }
29341
29328
  function getDebugTableForProgramConfiguration(config3) {
@@ -29361,10 +29348,10 @@ function getDebugTableForProgramConfiguration(config3) {
29361
29348
  }
29362
29349
  function getGLSLDeclaration(attributeInfo) {
29363
29350
  const {
29364
- type,
29351
+ type: type2,
29365
29352
  size: size2
29366
29353
  } = attributeInfo.accessor;
29367
- const typeAndName = getCompositeGLType(type, size2);
29354
+ const typeAndName = getCompositeGLType(type2, size2);
29368
29355
  if (typeAndName) {
29369
29356
  return "".concat(typeAndName.name, " ").concat(attributeInfo.name);
29370
29357
  }
@@ -29817,8 +29804,8 @@ function parsePropTypes$1(propDefs) {
29817
29804
  return propTypes;
29818
29805
  }
29819
29806
  function parsePropType$1(propDef) {
29820
- let type = getTypeOf$1(propDef);
29821
- if (type === "object") {
29807
+ let type2 = getTypeOf$1(propDef);
29808
+ if (type2 === "object") {
29822
29809
  if (!propDef) {
29823
29810
  return {
29824
29811
  type: "object",
@@ -29834,15 +29821,15 @@ function parsePropType$1(propDef) {
29834
29821
  value: propDef
29835
29822
  };
29836
29823
  }
29837
- type = getTypeOf$1(propDef.value);
29824
+ type2 = getTypeOf$1(propDef.value);
29838
29825
  return Object.assign({
29839
- type
29840
- }, propDef, TYPE_DEFINITIONS$1[type]);
29826
+ type: type2
29827
+ }, propDef, TYPE_DEFINITIONS$1[type2]);
29841
29828
  }
29842
29829
  return Object.assign({
29843
- type,
29830
+ type: type2,
29844
29831
  value: propDef
29845
- }, TYPE_DEFINITIONS$1[type]);
29832
+ }, TYPE_DEFINITIONS$1[type2]);
29846
29833
  }
29847
29834
  function getTypeOf$1(value) {
29848
29835
  if (Array.isArray(value) || ArrayBuffer.isView(value)) {
@@ -29880,9 +29867,9 @@ class ShaderModule {
29880
29867
  this.uniforms = parsePropTypes$1(uniforms);
29881
29868
  }
29882
29869
  }
29883
- getModuleSource(type) {
29870
+ getModuleSource(type2) {
29884
29871
  let moduleSource;
29885
- switch (type) {
29872
+ switch (type2) {
29886
29873
  case VERTEX_SHADER:
29887
29874
  moduleSource = this.vs || "";
29888
29875
  break;
@@ -30157,9 +30144,9 @@ const DECLARATION_INJECT_MARKER = "__LUMA_INJECT_DECLARATIONS__";
30157
30144
  const REGEX_START_OF_MAIN$1 = /void\s+main\s*\([^)]*\)\s*\{\n?/;
30158
30145
  const REGEX_END_OF_MAIN = /}\n?[^{}]*$/;
30159
30146
  const fragments = [];
30160
- function injectShader(source, type, inject2) {
30147
+ function injectShader(source, type2, inject2) {
30161
30148
  let injectStandardStubs = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;
30162
- const isVertex = type === VERTEX_SHADER$1;
30149
+ const isVertex = type2 === VERTEX_SHADER$1;
30163
30150
  for (const key in inject2) {
30164
30151
  const fragmentData = inject2[key];
30165
30152
  fragmentData.sort((a2, b) => a2.order - b.order);
@@ -30205,7 +30192,7 @@ function injectShader(source, type, inject2) {
30205
30192
  }
30206
30193
  source = source.replace(DECLARATION_INJECT_MARKER, "");
30207
30194
  if (injectStandardStubs) {
30208
- source = source.replace(/\}\s*$/, (match) => match + MODULE_INJECTORS[type]);
30195
+ source = source.replace(/\}\s*$/, (match) => match + MODULE_INJECTORS[type2]);
30209
30196
  }
30210
30197
  return source;
30211
30198
  }
@@ -30299,7 +30286,7 @@ function assembleShader(gl, _ref) {
30299
30286
  let {
30300
30287
  id,
30301
30288
  source,
30302
- type,
30289
+ type: type2,
30303
30290
  modules,
30304
30291
  defines: defines2 = {},
30305
30292
  hookFunctions = [],
@@ -30309,7 +30296,7 @@ function assembleShader(gl, _ref) {
30309
30296
  log: log3
30310
30297
  } = _ref;
30311
30298
  assert$6(typeof source === "string", "shader source must be a string");
30312
- const isVertex = type === VERTEX_SHADER$1;
30299
+ const isVertex = type2 === VERTEX_SHADER$1;
30313
30300
  const sourceLines = source.split("\n");
30314
30301
  let glslVersion = 100;
30315
30302
  let versionLine = "";
@@ -30329,9 +30316,9 @@ function assembleShader(gl, _ref) {
30329
30316
  let assembledSource = prologue ? "".concat(versionLine, "\n").concat(getShaderName({
30330
30317
  id,
30331
30318
  source,
30332
- type
30319
+ type: type2
30333
30320
  }), "\n").concat(getShaderType({
30334
- type
30321
+ type: type2
30335
30322
  }), "\n").concat(getPlatformShaderDefines(gl), "\n").concat(getVersionDefines(gl), "\n").concat(getApplicationDefines(allDefines), "\n").concat(isVertex ? "" : FRAGMENT_SHADER_PROLOGUE, "\n") : "".concat(versionLine, "\n");
30336
30323
  const hookFunctionMap = normalizeHookFunctions(hookFunctions);
30337
30324
  const hookInjections = {};
@@ -30363,9 +30350,9 @@ function assembleShader(gl, _ref) {
30363
30350
  if (log3) {
30364
30351
  module2.checkDeprecations(coreSource, log3);
30365
30352
  }
30366
- const moduleSource = module2.getModuleSource(type, glslVersion);
30353
+ const moduleSource = module2.getModuleSource(type2, glslVersion);
30367
30354
  assembledSource += moduleSource;
30368
- const injections = module2.injections[type];
30355
+ const injections = module2.injections[type2];
30369
30356
  for (const key in injections) {
30370
30357
  const match = key.match(/^(v|f)s:#([\w-]+)$/);
30371
30358
  if (match) {
@@ -30380,10 +30367,10 @@ function assembleShader(gl, _ref) {
30380
30367
  }
30381
30368
  }
30382
30369
  assembledSource += INJECT_SHADER_DECLARATIONS;
30383
- assembledSource = injectShader(assembledSource, type, declInjections);
30384
- assembledSource += getHookFunctions(hookFunctionMap[type], hookInjections);
30370
+ assembledSource = injectShader(assembledSource, type2, declInjections);
30371
+ assembledSource += getHookFunctions(hookFunctionMap[type2], hookInjections);
30385
30372
  assembledSource += coreSource;
30386
- assembledSource = injectShader(assembledSource, type, mainInjections);
30373
+ assembledSource = injectShader(assembledSource, type2, mainInjections);
30387
30374
  assembledSource = transpileShader(assembledSource, transpileToGLSL100 ? 100 : glslVersion, isVertex);
30388
30375
  return assembledSource;
30389
30376
  }
@@ -30399,18 +30386,18 @@ function assembleGetUniforms(modules) {
30399
30386
  }
30400
30387
  function getShaderType(_ref2) {
30401
30388
  let {
30402
- type
30389
+ type: type2
30403
30390
  } = _ref2;
30404
- return "\n#define SHADER_TYPE_".concat(SHADER_TYPE[type].toUpperCase(), "\n");
30391
+ return "\n#define SHADER_TYPE_".concat(SHADER_TYPE[type2].toUpperCase(), "\n");
30405
30392
  }
30406
30393
  function getShaderName(_ref3) {
30407
30394
  let {
30408
30395
  id,
30409
30396
  source,
30410
- type
30397
+ type: type2
30411
30398
  } = _ref3;
30412
30399
  const injectShaderName = id && typeof id === "string" && source.indexOf("SHADER_NAME") === -1;
30413
- return injectShaderName ? "\n#define SHADER_NAME ".concat(id, "_").concat(SHADER_TYPE[type], "\n\n") : "";
30400
+ return injectShaderName ? "\n#define SHADER_NAME ".concat(id, "_").concat(SHADER_TYPE[type2], "\n\n") : "";
30414
30401
  }
30415
30402
  function getApplicationDefines() {
30416
30403
  let defines2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
@@ -30481,14 +30468,14 @@ const FS300 = "#version 300 es\n".concat(FS_GLES);
30481
30468
  function getQualifierDetails(line, qualifiers) {
30482
30469
  qualifiers = Array.isArray(qualifiers) ? qualifiers : [qualifiers];
30483
30470
  const words = line.replace(/^\s+/, "").split(/\s+/);
30484
- const [qualifier, type, definition] = words;
30485
- if (!qualifiers.includes(qualifier) || !type || !definition) {
30471
+ const [qualifier, type2, definition] = words;
30472
+ if (!qualifiers.includes(qualifier) || !type2 || !definition) {
30486
30473
  return null;
30487
30474
  }
30488
30475
  const name2 = definition.split(";")[0];
30489
30476
  return {
30490
30477
  qualifier,
30491
- type,
30478
+ type: type2,
30492
30479
  name: name2
30493
30480
  };
30494
30481
  }
@@ -30514,8 +30501,8 @@ function getPassthroughFS() {
30514
30501
  }
30515
30502
  return "varying ".concat(inputType, " ").concat(input, ";\nvoid main() {\n gl_FragColor = ").concat(outputValue, ";\n}");
30516
30503
  }
30517
- function typeToChannelSuffix(type) {
30518
- switch (type) {
30504
+ function typeToChannelSuffix(type2) {
30505
+ switch (type2) {
30519
30506
  case "float":
30520
30507
  return "x";
30521
30508
  case "vec2":
@@ -30529,8 +30516,8 @@ function typeToChannelSuffix(type) {
30529
30516
  return null;
30530
30517
  }
30531
30518
  }
30532
- function typeToChannelCount(type) {
30533
- switch (type) {
30519
+ function typeToChannelCount(type2) {
30520
+ switch (type2) {
30534
30521
  case "float":
30535
30522
  return 1;
30536
30523
  case "vec2":
@@ -30544,8 +30531,8 @@ function typeToChannelCount(type) {
30544
30531
  return null;
30545
30532
  }
30546
30533
  }
30547
- function convertToVec4(variable, type) {
30548
- switch (type) {
30534
+ function convertToVec4(variable, type2) {
30535
+ switch (type2) {
30549
30536
  case "float":
30550
30537
  return "vec4(".concat(variable, ", 0.0, 0.0, 1.0)");
30551
30538
  case "vec2":
@@ -31820,7 +31807,7 @@ function processAttributeDefinition(line, textureMap) {
31820
31807
  return null;
31821
31808
  }
31822
31809
  const {
31823
- type,
31810
+ type: type2,
31824
31811
  name: name2
31825
31812
  } = attributeData;
31826
31813
  if (name2 && textureMap[name2]) {
@@ -31830,8 +31817,8 @@ function processAttributeDefinition(line, textureMap) {
31830
31817
  sizeName,
31831
31818
  uniformDeclerations
31832
31819
  } = getSamplerDeclerations(name2);
31833
- const channels2 = typeToChannelSuffix(type);
31834
- const sampleInstruction = " ".concat(type, " ").concat(name2, " = transform_getInput(").concat(samplerName, ", ").concat(sizeName, ").").concat(channels2, ";\n");
31820
+ const channels2 = typeToChannelSuffix(type2);
31821
+ const sampleInstruction = " ".concat(type2, " ").concat(name2, " = transform_getInput(").concat(samplerName, ", ").concat(sizeName, ").").concat(channels2, ";\n");
31835
31822
  samplerTextureMap[samplerName] = name2;
31836
31823
  const inject2 = {
31837
31824
  "vs:#decl": uniformDeclerations,
@@ -32815,12 +32802,12 @@ class PlaneGeometry extends Geometry {
32815
32802
  }
32816
32803
  function tesselatePlane(props) {
32817
32804
  const {
32818
- type = "x,y",
32805
+ type: type2 = "x,y",
32819
32806
  offset = 0,
32820
32807
  flipCull = false,
32821
32808
  unpack: unpack2 = false
32822
32809
  } = props;
32823
- const coords = type.split(",");
32810
+ const coords = type2.split(",");
32824
32811
  let c1len = props["".concat(coords[0], "len")] || 1;
32825
32812
  const c2len = props["".concat(coords[1], "len")] || 1;
32826
32813
  const subdivisions1 = props["n".concat(coords[0])] || 1;
@@ -32840,7 +32827,7 @@ function tesselatePlane(props) {
32840
32827
  const v = z / subdivisions2;
32841
32828
  texCoords[i2 + 0] = flipCull ? 1 - u : u;
32842
32829
  texCoords[i2 + 1] = v;
32843
- switch (type) {
32830
+ switch (type2) {
32844
32831
  case "x,y":
32845
32832
  positions[i3 + 0] = c1len * u - c1len * 0.5;
32846
32833
  positions[i3 + 1] = c2len * v - c2len * 0.5;
@@ -34830,13 +34817,13 @@ class TypedArrayManager {
34830
34817
  }
34831
34818
  allocate(typedArray, count2, {
34832
34819
  size: size2 = 1,
34833
- type,
34820
+ type: type2,
34834
34821
  padding = 0,
34835
34822
  copy: copy2 = false,
34836
34823
  initialize = false,
34837
34824
  maxCount
34838
34825
  }) {
34839
- const Type2 = type || typedArray && typedArray.constructor || Float32Array;
34826
+ const Type2 = type2 || typedArray && typedArray.constructor || Float32Array;
34840
34827
  const newSize = count2 * size2 + padding;
34841
34828
  if (ArrayBuffer.isView(typedArray)) {
34842
34829
  if (newSize <= typedArray.length) {
@@ -39789,19 +39776,19 @@ var hammer$1 = { exports: {} };
39789
39776
  } else {
39790
39777
  assign2 = Object.assign;
39791
39778
  }
39792
- var extend2 = deprecate(function extend3(dest, src2, merge3) {
39793
- var keys3 = Object.keys(src2);
39779
+ var extend2 = deprecate(function extend3(dest, src, merge3) {
39780
+ var keys3 = Object.keys(src);
39794
39781
  var i2 = 0;
39795
39782
  while (i2 < keys3.length) {
39796
39783
  if (!merge3 || merge3 && dest[keys3[i2]] === undefined$12) {
39797
- dest[keys3[i2]] = src2[keys3[i2]];
39784
+ dest[keys3[i2]] = src[keys3[i2]];
39798
39785
  }
39799
39786
  i2++;
39800
39787
  }
39801
39788
  return dest;
39802
39789
  }, "extend", "Use `assign`.");
39803
- var merge2 = deprecate(function merge3(dest, src2) {
39804
- return extend2(dest, src2, true);
39790
+ var merge2 = deprecate(function merge3(dest, src) {
39791
+ return extend2(dest, src, true);
39805
39792
  }, "merge", "Use `assign`.");
39806
39793
  function inherit(child, base, properties) {
39807
39794
  var baseP = base.prototype, childP;
@@ -39827,13 +39814,13 @@ var hammer$1 = { exports: {} };
39827
39814
  return val1 === undefined$12 ? val2 : val1;
39828
39815
  }
39829
39816
  function addEventListeners(target, types, handler) {
39830
- each(splitStr(types), function(type) {
39831
- target.addEventListener(type, handler, false);
39817
+ each(splitStr(types), function(type2) {
39818
+ target.addEventListener(type2, handler, false);
39832
39819
  });
39833
39820
  }
39834
39821
  function removeEventListeners(target, types, handler) {
39835
- each(splitStr(types), function(type) {
39836
- target.removeEventListener(type, handler, false);
39822
+ each(splitStr(types), function(type2) {
39823
+ target.removeEventListener(type2, handler, false);
39837
39824
  });
39838
39825
  }
39839
39826
  function hasParent(node2, parent) {
@@ -39851,13 +39838,13 @@ var hammer$1 = { exports: {} };
39851
39838
  function splitStr(str) {
39852
39839
  return str.trim().split(/\s+/g);
39853
39840
  }
39854
- function inArray(src2, find, findByKey) {
39855
- if (src2.indexOf && !findByKey) {
39856
- return src2.indexOf(find);
39841
+ function inArray(src, find, findByKey) {
39842
+ if (src.indexOf && !findByKey) {
39843
+ return src.indexOf(find);
39857
39844
  } else {
39858
39845
  var i2 = 0;
39859
- while (i2 < src2.length) {
39860
- if (findByKey && src2[i2][findByKey] == find || !findByKey && src2[i2] === find) {
39846
+ while (i2 < src.length) {
39847
+ if (findByKey && src[i2][findByKey] == find || !findByKey && src[i2] === find) {
39861
39848
  return i2;
39862
39849
  }
39863
39850
  i2++;
@@ -39868,14 +39855,14 @@ var hammer$1 = { exports: {} };
39868
39855
  function toArray(obj) {
39869
39856
  return Array.prototype.slice.call(obj, 0);
39870
39857
  }
39871
- function uniqueArray(src2, key, sort) {
39858
+ function uniqueArray(src, key, sort) {
39872
39859
  var results = [];
39873
39860
  var values = [];
39874
39861
  var i2 = 0;
39875
- while (i2 < src2.length) {
39876
- var val = key ? src2[i2][key] : src2[i2];
39862
+ while (i2 < src.length) {
39863
+ var val = key ? src[i2][key] : src[i2];
39877
39864
  if (inArray(values, val) < 0) {
39878
- results.push(src2[i2]);
39865
+ results.push(src[i2]);
39879
39866
  }
39880
39867
  values[i2] = val;
39881
39868
  i2++;
@@ -40271,18 +40258,18 @@ var hammer$1 = { exports: {} };
40271
40258
  }
40272
40259
  inherit(SingleTouchInput, Input2, {
40273
40260
  handler: function TEhandler(ev) {
40274
- var type = SINGLE_TOUCH_INPUT_MAP[ev.type];
40275
- if (type === INPUT_START2) {
40261
+ var type2 = SINGLE_TOUCH_INPUT_MAP[ev.type];
40262
+ if (type2 === INPUT_START2) {
40276
40263
  this.started = true;
40277
40264
  }
40278
40265
  if (!this.started) {
40279
40266
  return;
40280
40267
  }
40281
- var touches = normalizeSingleTouches.call(this, ev, type);
40282
- if (type & (INPUT_END2 | INPUT_CANCEL) && touches[0].length - touches[1].length === 0) {
40268
+ var touches = normalizeSingleTouches.call(this, ev, type2);
40269
+ if (type2 & (INPUT_END2 | INPUT_CANCEL) && touches[0].length - touches[1].length === 0) {
40283
40270
  this.started = false;
40284
40271
  }
40285
- this.callback(this.manager, type, {
40272
+ this.callback(this.manager, type2, {
40286
40273
  pointers: touches[0],
40287
40274
  changedPointers: touches[1],
40288
40275
  pointerType: INPUT_TYPE_TOUCH,
@@ -40290,10 +40277,10 @@ var hammer$1 = { exports: {} };
40290
40277
  });
40291
40278
  }
40292
40279
  });
40293
- function normalizeSingleTouches(ev, type) {
40280
+ function normalizeSingleTouches(ev, type2) {
40294
40281
  var all = toArray(ev.touches);
40295
40282
  var changed = toArray(ev.changedTouches);
40296
- if (type & (INPUT_END2 | INPUT_CANCEL)) {
40283
+ if (type2 & (INPUT_END2 | INPUT_CANCEL)) {
40297
40284
  all = uniqueArray(all.concat(changed), "identifier", true);
40298
40285
  }
40299
40286
  return [all, changed];
@@ -40312,12 +40299,12 @@ var hammer$1 = { exports: {} };
40312
40299
  }
40313
40300
  inherit(TouchInput, Input2, {
40314
40301
  handler: function MTEhandler(ev) {
40315
- var type = TOUCH_INPUT_MAP[ev.type];
40316
- var touches = getTouches.call(this, ev, type);
40302
+ var type2 = TOUCH_INPUT_MAP[ev.type];
40303
+ var touches = getTouches.call(this, ev, type2);
40317
40304
  if (!touches) {
40318
40305
  return;
40319
40306
  }
40320
- this.callback(this.manager, type, {
40307
+ this.callback(this.manager, type2, {
40321
40308
  pointers: touches[0],
40322
40309
  changedPointers: touches[1],
40323
40310
  pointerType: INPUT_TYPE_TOUCH,
@@ -40325,10 +40312,10 @@ var hammer$1 = { exports: {} };
40325
40312
  });
40326
40313
  }
40327
40314
  });
40328
- function getTouches(ev, type) {
40315
+ function getTouches(ev, type2) {
40329
40316
  var allTouches = toArray(ev.touches);
40330
40317
  var targetIds = this.targetIds;
40331
- if (type & (INPUT_START2 | INPUT_MOVE2) && allTouches.length === 1) {
40318
+ if (type2 & (INPUT_START2 | INPUT_MOVE2) && allTouches.length === 1) {
40332
40319
  targetIds[allTouches[0].identifier] = true;
40333
40320
  return [allTouches, allTouches];
40334
40321
  }
@@ -40336,7 +40323,7 @@ var hammer$1 = { exports: {} };
40336
40323
  targetTouches = allTouches.filter(function(touch) {
40337
40324
  return hasParent(touch.target, target);
40338
40325
  });
40339
- if (type === INPUT_START2) {
40326
+ if (type2 === INPUT_START2) {
40340
40327
  i2 = 0;
40341
40328
  while (i2 < targetTouches.length) {
40342
40329
  targetIds[targetTouches[i2].identifier] = true;
@@ -40348,7 +40335,7 @@ var hammer$1 = { exports: {} };
40348
40335
  if (targetIds[changedTouches[i2].identifier]) {
40349
40336
  changedTargetTouches.push(changedTouches[i2]);
40350
40337
  }
40351
- if (type & (INPUT_END2 | INPUT_CANCEL)) {
40338
+ if (type2 & (INPUT_END2 | INPUT_CANCEL)) {
40352
40339
  delete targetIds[changedTouches[i2].identifier];
40353
40340
  }
40354
40341
  i2++;
@@ -41845,9 +41832,9 @@ class MoveInput extends Input {
41845
41832
  }
41846
41833
  }
41847
41834
  }
41848
- _emit(type, event) {
41835
+ _emit(type2, event) {
41849
41836
  this.callback({
41850
- type,
41837
+ type: type2,
41851
41838
  center: {
41852
41839
  x: event.clientX,
41853
41840
  y: event.clientY
@@ -42035,7 +42022,7 @@ class EventRegistrar {
42035
42022
  isEmpty() {
42036
42023
  return !this._active;
42037
42024
  }
42038
- add(type, handler, options, once3 = false, passive = false) {
42025
+ add(type2, handler, options, once3 = false, passive = false) {
42039
42026
  const { handlers, handlersByElement } = this;
42040
42027
  let opts = DEFAULT_OPTIONS$2;
42041
42028
  if (typeof options === "string" || options && options.addEventListener) {
@@ -42049,7 +42036,7 @@ class EventRegistrar {
42049
42036
  handlersByElement.set(opts.srcElement, entries);
42050
42037
  }
42051
42038
  const entry = {
42052
- type,
42039
+ type: type2,
42053
42040
  handler,
42054
42041
  srcElement: opts.srcElement,
42055
42042
  priority: opts.priority
@@ -42071,11 +42058,11 @@ class EventRegistrar {
42071
42058
  }
42072
42059
  entries.splice(insertPosition + 1, 0, entry);
42073
42060
  }
42074
- remove(type, handler) {
42061
+ remove(type2, handler) {
42075
42062
  const { handlers, handlersByElement } = this;
42076
42063
  for (let i2 = handlers.length - 1; i2 >= 0; i2--) {
42077
42064
  const entry = handlers[i2];
42078
- if (entry.type === type && entry.handler === handler) {
42065
+ if (entry.type === type2 && entry.handler === handler) {
42079
42066
  handlers.splice(i2, 1);
42080
42067
  const entries = handlersByElement.get(entry.srcElement);
42081
42068
  entries.splice(entries.indexOf(entry), 1);
@@ -42102,11 +42089,11 @@ class EventRegistrar {
42102
42089
  };
42103
42090
  const entriesToRemove = [];
42104
42091
  for (let i2 = 0; i2 < entries.length; i2++) {
42105
- const { type, handler, once: once3 } = entries[i2];
42092
+ const { type: type2, handler, once: once3 } = entries[i2];
42106
42093
  handler({
42107
42094
  ...event,
42108
42095
  // @ts-ignore
42109
- type,
42096
+ type: type2,
42110
42097
  stopPropagation,
42111
42098
  stopImmediatePropagation
42112
42099
  });
@@ -42118,8 +42105,8 @@ class EventRegistrar {
42118
42105
  }
42119
42106
  }
42120
42107
  for (let i2 = 0; i2 < entriesToRemove.length; i2++) {
42121
- const { type, handler } = entriesToRemove[i2];
42122
- this.remove(type, handler);
42108
+ const { type: type2, handler } = entriesToRemove[i2];
42109
+ this.remove(type2, handler);
42123
42110
  }
42124
42111
  }
42125
42112
  }
@@ -43138,13 +43125,13 @@ class DataColumn {
43138
43125
  if (!this._buffer) {
43139
43126
  const {
43140
43127
  isIndexed,
43141
- type
43128
+ type: type2
43142
43129
  } = this.settings;
43143
43130
  this._buffer = new Buffer$1(this.gl, {
43144
43131
  id: this.id,
43145
43132
  target: isIndexed ? 34963 : 34962,
43146
43133
  accessor: {
43147
- type
43134
+ type: type2
43148
43135
  }
43149
43136
  });
43150
43137
  }
@@ -43637,12 +43624,12 @@ function normalizeTransitionSettings(userSettings, layerSettings) {
43637
43624
  duration: userSettings
43638
43625
  };
43639
43626
  }
43640
- const type = userSettings.type || "interpolation";
43627
+ const type2 = userSettings.type || "interpolation";
43641
43628
  return {
43642
- ...DEFAULT_TRANSITION_SETTINGS[type],
43629
+ ...DEFAULT_TRANSITION_SETTINGS[type2],
43643
43630
  ...layerSettings,
43644
43631
  ...userSettings,
43645
- type
43632
+ type: type2
43646
43633
  };
43647
43634
  }
43648
43635
  function getSourceBufferAttribute(gl, attribute) {
@@ -44872,8 +44859,8 @@ function diffTransitions(props, oldProps) {
44872
44859
  let changed = false;
44873
44860
  for (const key in props.transitions) {
44874
44861
  const propType = propTypes[key];
44875
- const type = propType && propType.type;
44876
- const isTransitionable = type === "number" || type === "color" || type === "array";
44862
+ const type2 = propType && propType.type;
44863
+ const isTransitionable = type2 === "number" || type2 === "color" || type2 === "array";
44877
44864
  if (isTransitionable && comparePropValues(props[key], oldProps[key], propType)) {
44878
44865
  result[key] = true;
44879
44866
  changed = true;
@@ -46477,19 +46464,19 @@ class Layer extends Component {
46477
46464
  var _this$internalState2;
46478
46465
  return (_this$internalState2 = this.internalState) === null || _this$internalState2 === void 0 ? void 0 : _this$internalState2.changeFlags;
46479
46466
  }
46480
- setChangeFlags(flags2) {
46467
+ setChangeFlags(flags3) {
46481
46468
  if (!this.internalState) {
46482
46469
  return;
46483
46470
  }
46484
46471
  const {
46485
46472
  changeFlags
46486
46473
  } = this.internalState;
46487
- for (const key in flags2) {
46488
- if (flags2[key]) {
46474
+ for (const key in flags3) {
46475
+ if (flags3[key]) {
46489
46476
  let flagChanged = false;
46490
46477
  switch (key) {
46491
46478
  case "dataChanged":
46492
- const dataChangedReason = flags2[key];
46479
+ const dataChangedReason = flags3[key];
46493
46480
  const prevDataChangedReason = changeFlags[key];
46494
46481
  if (dataChangedReason && Array.isArray(prevDataChangedReason)) {
46495
46482
  changeFlags.dataChanged = Array.isArray(dataChangedReason) ? prevDataChangedReason.concat(dataChangedReason) : dataChangedReason;
@@ -46497,12 +46484,12 @@ class Layer extends Component {
46497
46484
  }
46498
46485
  default:
46499
46486
  if (!changeFlags[key]) {
46500
- changeFlags[key] = flags2[key];
46487
+ changeFlags[key] = flags3[key];
46501
46488
  flagChanged = true;
46502
46489
  }
46503
46490
  }
46504
46491
  if (flagChanged) {
46505
- debug(TRACE_CHANGE_FLAG, this, key, flags2);
46492
+ debug(TRACE_CHANGE_FLAG, this, key, flags3);
46506
46493
  }
46507
46494
  }
46508
46495
  }
@@ -49906,7 +49893,7 @@ function bisectPolygon(positions, edgeTypes, size2, startIndex, endIndex, bbox2,
49906
49893
  const scratchPoint = [];
49907
49894
  let p;
49908
49895
  let side;
49909
- let type;
49896
+ let type2;
49910
49897
  const prev = getPointAtIndex(positions, numPoints - 1, size2, startIndex);
49911
49898
  let prevSide = Math.sign(edge & 8 ? prev[1] - bbox2[3] : prev[0] - bbox2[2]);
49912
49899
  let prevType = edgeTypes && edgeTypes[numPoints - 1];
@@ -49915,27 +49902,27 @@ function bisectPolygon(positions, edgeTypes, size2, startIndex, endIndex, bbox2,
49915
49902
  for (let i2 = 0; i2 < numPoints; i2++) {
49916
49903
  p = getPointAtIndex(positions, i2, size2, startIndex, p);
49917
49904
  side = Math.sign(edge & 8 ? p[1] - bbox2[3] : p[0] - bbox2[2]);
49918
- type = edgeTypes && edgeTypes[startIndex / size2 + i2];
49905
+ type2 = edgeTypes && edgeTypes[startIndex / size2 + i2];
49919
49906
  if (side && prevSide && prevSide !== side) {
49920
49907
  intersect$1(prev, p, edge, bbox2, scratchPoint);
49921
49908
  push(resultLow, scratchPoint) && typesLow.push(prevType);
49922
49909
  push(resultHigh, scratchPoint) && typesHigh.push(prevType);
49923
49910
  }
49924
49911
  if (side <= 0) {
49925
- push(resultLow, p) && typesLow.push(type);
49912
+ push(resultLow, p) && typesLow.push(type2);
49926
49913
  lowPointCount -= side;
49927
49914
  } else if (typesLow.length) {
49928
49915
  typesLow[typesLow.length - 1] = TYPE_INSIDE;
49929
49916
  }
49930
49917
  if (side >= 0) {
49931
- push(resultHigh, p) && typesHigh.push(type);
49918
+ push(resultHigh, p) && typesHigh.push(type2);
49932
49919
  highPointCount += side;
49933
49920
  } else if (typesHigh.length) {
49934
49921
  typesHigh[typesHigh.length - 1] = TYPE_INSIDE;
49935
49922
  }
49936
49923
  copy(prev, p);
49937
49924
  prevSide = side;
49938
- prevType = type;
49925
+ prevType = type2;
49939
49926
  }
49940
49927
  return [lowPointCount ? {
49941
49928
  pos: resultLow,
@@ -51731,9 +51718,9 @@ class SolidPolygonLayer extends Layer {
51731
51718
  super(...args);
51732
51719
  _defineProperty$e(this, "state", void 0);
51733
51720
  }
51734
- getShaders(type) {
51721
+ getShaders(type2) {
51735
51722
  return super.getShaders({
51736
- vs: type === "top" ? vsTop : vsSide,
51723
+ vs: type2 === "top" ? vsTop : vsSide,
51737
51724
  fs: fs$b,
51738
51725
  defines: {
51739
51726
  RING_WINDING_ORDER_CW: !this.props._normalize && this.props._windingOrder === "CCW" ? 0 : 1
@@ -53692,12 +53679,12 @@ const POLYGON_LAYER = {
53692
53679
  }
53693
53680
  };
53694
53681
  function getDefaultProps({
53695
- type,
53682
+ type: type2,
53696
53683
  props
53697
53684
  }) {
53698
53685
  const result = {};
53699
53686
  for (const key in props) {
53700
- result[key] = type.defaultProps[props[key]];
53687
+ result[key] = type2.defaultProps[props[key]];
53701
53688
  }
53702
53689
  return result;
53703
53690
  }
@@ -53779,7 +53766,7 @@ function separateGeojsonFeatures(features, wrapFeature, dataRange = {}) {
53779
53766
  }
53780
53767
  function separateGeometry(geometry2, separated, wrapFeature, sourceFeature, sourceFeatureIndex) {
53781
53768
  const {
53782
- type,
53769
+ type: type2,
53783
53770
  coordinates: coordinates2
53784
53771
  } = geometry2;
53785
53772
  const {
@@ -53788,11 +53775,11 @@ function separateGeometry(geometry2, separated, wrapFeature, sourceFeature, sour
53788
53775
  polygonFeatures,
53789
53776
  polygonOutlineFeatures
53790
53777
  } = separated;
53791
- if (!validateGeometry(type, coordinates2)) {
53792
- log$3.warn("".concat(type, " coordinates are malformed"))();
53778
+ if (!validateGeometry(type2, coordinates2)) {
53779
+ log$3.warn("".concat(type2, " coordinates are malformed"))();
53793
53780
  return;
53794
53781
  }
53795
- switch (type) {
53782
+ switch (type2) {
53796
53783
  case "Point":
53797
53784
  pointFeatures.push(wrapFeature({
53798
53785
  geometry: geometry2
@@ -53864,9 +53851,9 @@ const COORDINATE_NEST_LEVEL = {
53864
53851
  Polygon: 3,
53865
53852
  MultiPolygon: 4
53866
53853
  };
53867
- function validateGeometry(type, coordinates2) {
53868
- let nestLevel = COORDINATE_NEST_LEVEL[type];
53869
- log$3.assert(nestLevel, "Unknown GeoJSON type ".concat(type));
53854
+ function validateGeometry(type2, coordinates2) {
53855
+ let nestLevel = COORDINATE_NEST_LEVEL[type2];
53856
+ log$3.assert(nestLevel, "Unknown GeoJSON type ".concat(type2));
53870
53857
  while (coordinates2 && --nestLevel > 0) {
53871
53858
  coordinates2 = coordinates2[0];
53872
53859
  }
@@ -54174,14 +54161,14 @@ class GeoJsonLayer extends CompositeLayer {
54174
54161
  }
54175
54162
  const types = new Set(pointType.split("+"));
54176
54163
  const pointLayers = [];
54177
- for (const type of types) {
54178
- const id = "points-".concat(type);
54179
- const PointLayerMapping = POINT_LAYER[type];
54164
+ for (const type2 of types) {
54165
+ const id = "points-".concat(type2);
54166
+ const PointLayerMapping = POINT_LAYER[type2];
54180
54167
  const PointsLayer = PointLayerMapping && this.shouldRenderSubLayer(id, layerProps.points.data) && this.getSubLayerClass(id, PointLayerMapping.type);
54181
54168
  if (PointsLayer) {
54182
54169
  const forwardedProps = forwardProps(this, PointLayerMapping.props);
54183
54170
  let pointsLayerProps = layerProps.points;
54184
- if (type === "text" && binary) {
54171
+ if (type2 === "text" && binary) {
54185
54172
  const {
54186
54173
  instancePickingColors,
54187
54174
  ...rest
@@ -56999,12 +56986,12 @@ var libh3 = function(libh32) {
56999
56986
  return tempRet0;
57000
56987
  };
57001
56988
  var GLOBAL_BASE = 8;
57002
- function setValue(ptr, value, type, noSafe) {
57003
- type = type || "i8";
57004
- if (type.charAt(type.length - 1) === "*") {
57005
- type = "i32";
56989
+ function setValue(ptr, value, type2, noSafe) {
56990
+ type2 = type2 || "i8";
56991
+ if (type2.charAt(type2.length - 1) === "*") {
56992
+ type2 = "i32";
57006
56993
  }
57007
- switch (type) {
56994
+ switch (type2) {
57008
56995
  case "i1":
57009
56996
  HEAP8[ptr >> 0] = value;
57010
56997
  break;
@@ -57027,15 +57014,15 @@ var libh3 = function(libh32) {
57027
57014
  HEAPF64[ptr >> 3] = value;
57028
57015
  break;
57029
57016
  default:
57030
- abort("invalid type for setValue: " + type);
57017
+ abort("invalid type for setValue: " + type2);
57031
57018
  }
57032
57019
  }
57033
- function getValue2(ptr, type, noSafe) {
57034
- type = type || "i8";
57035
- if (type.charAt(type.length - 1) === "*") {
57036
- type = "i32";
57020
+ function getValue2(ptr, type2, noSafe) {
57021
+ type2 = type2 || "i8";
57022
+ if (type2.charAt(type2.length - 1) === "*") {
57023
+ type2 = "i32";
57037
57024
  }
57038
- switch (type) {
57025
+ switch (type2) {
57039
57026
  case "i1":
57040
57027
  return HEAP8[ptr >> 0];
57041
57028
  case "i8":
@@ -57051,7 +57038,7 @@ var libh3 = function(libh32) {
57051
57038
  case "double":
57052
57039
  return HEAPF64[ptr >> 3];
57053
57040
  default:
57054
- abort("invalid type for getValue: " + type);
57041
+ abort("invalid type for getValue: " + type2);
57055
57042
  }
57056
57043
  return null;
57057
57044
  }
@@ -57117,8 +57104,8 @@ var libh3 = function(libh32) {
57117
57104
  }
57118
57105
  function cwrap(ident, returnType, argTypes, opts) {
57119
57106
  argTypes = argTypes || [];
57120
- var numericArgs = argTypes.every(function(type) {
57121
- return type === "number";
57107
+ var numericArgs = argTypes.every(function(type2) {
57108
+ return type2 === "number";
57122
57109
  });
57123
57110
  var numericRet = returnType !== "string";
57124
57111
  if (numericRet && numericArgs && !opts) {
@@ -57377,8 +57364,8 @@ var libh3 = function(libh32) {
57377
57364
  function _emscripten_get_heap_size() {
57378
57365
  return HEAP8.length;
57379
57366
  }
57380
- function _emscripten_memcpy_big(dest, src2, num) {
57381
- HEAPU8.set(HEAPU8.subarray(src2, src2 + num), dest);
57367
+ function _emscripten_memcpy_big(dest, src, num) {
57368
+ HEAPU8.set(HEAPU8.subarray(src, src + num), dest);
57382
57369
  }
57383
57370
  function ___setErrNo(value) {
57384
57371
  if (Module["___errno_location"]) {
@@ -67836,9 +67823,9 @@ function readLong(invocation) {
67836
67823
  return [invocation, upper];
67837
67824
  }
67838
67825
  function readH3Index(invocation) {
67839
- var ref = readLong(invocation);
67840
- var lower = ref[0];
67841
- var upper = ref[1];
67826
+ var ref2 = readLong(invocation);
67827
+ var lower = ref2[0];
67828
+ var upper = ref2[1];
67842
67829
  return upper ? splitLongToh3Index(lower, upper) : null;
67843
67830
  }
67844
67831
  function readH3IndexFromPointer(cAddress, offset) {
@@ -67926,9 +67913,9 @@ function readCoordIJ(cAddress) {
67926
67913
  j: libh3.getValue(cAddress + SZ_INT, "i32")
67927
67914
  };
67928
67915
  }
67929
- function storeCoordIJ(cAddress, ref) {
67930
- var i2 = ref.i;
67931
- var j = ref.j;
67916
+ function storeCoordIJ(cAddress, ref2) {
67917
+ var i2 = ref2.i;
67918
+ var j = ref2.j;
67932
67919
  libh3.setValue(cAddress, i2, "i32");
67933
67920
  libh3.setValue(cAddress + SZ_INT, j, "i32");
67934
67921
  }
@@ -67943,33 +67930,33 @@ function readArrayOfPositiveIntegers(cAddress, count2) {
67943
67930
  return out;
67944
67931
  }
67945
67932
  function h3IsValid(h3Index) {
67946
- var ref = h3IndexToSplitLong(h3Index);
67947
- var lower = ref[0];
67948
- var upper = ref[1];
67933
+ var ref2 = h3IndexToSplitLong(h3Index);
67934
+ var lower = ref2[0];
67935
+ var upper = ref2[1];
67949
67936
  return Boolean(H3.h3IsValid(lower, upper));
67950
67937
  }
67951
67938
  function h3IsPentagon(h3Index) {
67952
- var ref = h3IndexToSplitLong(h3Index);
67953
- var lower = ref[0];
67954
- var upper = ref[1];
67939
+ var ref2 = h3IndexToSplitLong(h3Index);
67940
+ var lower = ref2[0];
67941
+ var upper = ref2[1];
67955
67942
  return Boolean(H3.h3IsPentagon(lower, upper));
67956
67943
  }
67957
67944
  function h3IsResClassIII(h3Index) {
67958
- var ref = h3IndexToSplitLong(h3Index);
67959
- var lower = ref[0];
67960
- var upper = ref[1];
67945
+ var ref2 = h3IndexToSplitLong(h3Index);
67946
+ var lower = ref2[0];
67947
+ var upper = ref2[1];
67961
67948
  return Boolean(H3.h3IsResClassIII(lower, upper));
67962
67949
  }
67963
67950
  function h3GetBaseCell(h3Index) {
67964
- var ref = h3IndexToSplitLong(h3Index);
67965
- var lower = ref[0];
67966
- var upper = ref[1];
67951
+ var ref2 = h3IndexToSplitLong(h3Index);
67952
+ var lower = ref2[0];
67953
+ var upper = ref2[1];
67967
67954
  return H3.h3GetBaseCell(lower, upper);
67968
67955
  }
67969
67956
  function h3GetFaces(h3Index) {
67970
- var ref = h3IndexToSplitLong(h3Index);
67971
- var lower = ref[0];
67972
- var upper = ref[1];
67957
+ var ref2 = h3IndexToSplitLong(h3Index);
67958
+ var lower = ref2[0];
67959
+ var upper = ref2[1];
67973
67960
  var count2 = H3.maxFaceCount(lower, upper);
67974
67961
  var faces2 = libh3._malloc(SZ_INT * count2);
67975
67962
  H3.h3GetFaces(lower, upper, faces2);
@@ -67978,9 +67965,9 @@ function h3GetFaces(h3Index) {
67978
67965
  return out;
67979
67966
  }
67980
67967
  function h3GetResolution(h3Index) {
67981
- var ref = h3IndexToSplitLong(h3Index);
67982
- var lower = ref[0];
67983
- var upper = ref[1];
67968
+ var ref2 = h3IndexToSplitLong(h3Index);
67969
+ var lower = ref2[0];
67970
+ var upper = ref2[1];
67984
67971
  if (!H3.h3IsValid(lower, upper)) {
67985
67972
  return -1;
67986
67973
  }
@@ -67995,9 +67982,9 @@ function geoToH3(lat, lng, res) {
67995
67982
  }
67996
67983
  function h3ToGeo(h3Index) {
67997
67984
  var latlng = libh3._malloc(SZ_GEOCOORD);
67998
- var ref = h3IndexToSplitLong(h3Index);
67999
- var lower = ref[0];
68000
- var upper = ref[1];
67985
+ var ref2 = h3IndexToSplitLong(h3Index);
67986
+ var lower = ref2[0];
67987
+ var upper = ref2[1];
68001
67988
  H3.h3ToGeo(lower, upper, latlng);
68002
67989
  var out = readGeoCoord(latlng);
68003
67990
  libh3._free(latlng);
@@ -68005,27 +67992,27 @@ function h3ToGeo(h3Index) {
68005
67992
  }
68006
67993
  function h3ToGeoBoundary(h3Index, formatAsGeoJson) {
68007
67994
  var geoBoundary = libh3._malloc(SZ_GEOBOUNDARY);
68008
- var ref = h3IndexToSplitLong(h3Index);
68009
- var lower = ref[0];
68010
- var upper = ref[1];
67995
+ var ref2 = h3IndexToSplitLong(h3Index);
67996
+ var lower = ref2[0];
67997
+ var upper = ref2[1];
68011
67998
  H3.h3ToGeoBoundary(lower, upper, geoBoundary);
68012
67999
  var out = readGeoBoundary(geoBoundary, formatAsGeoJson, formatAsGeoJson);
68013
68000
  libh3._free(geoBoundary);
68014
68001
  return out;
68015
68002
  }
68016
68003
  function h3ToParent(h3Index, res) {
68017
- var ref = h3IndexToSplitLong(h3Index);
68018
- var lower = ref[0];
68019
- var upper = ref[1];
68004
+ var ref2 = h3IndexToSplitLong(h3Index);
68005
+ var lower = ref2[0];
68006
+ var upper = ref2[1];
68020
68007
  return readH3Index(H3.h3ToParent(lower, upper, res));
68021
68008
  }
68022
68009
  function h3ToChildren(h3Index, res) {
68023
68010
  if (!h3IsValid(h3Index)) {
68024
68011
  return [];
68025
68012
  }
68026
- var ref = h3IndexToSplitLong(h3Index);
68027
- var lower = ref[0];
68028
- var upper = ref[1];
68013
+ var ref2 = h3IndexToSplitLong(h3Index);
68014
+ var lower = ref2[0];
68015
+ var upper = ref2[1];
68029
68016
  var maxCount = H3.maxH3ToChildrenSize(lower, upper, res);
68030
68017
  var hexagons = libh3._calloc(maxCount, SZ_H3INDEX);
68031
68018
  H3.h3ToChildren(lower, upper, res, hexagons);
@@ -68034,15 +68021,15 @@ function h3ToChildren(h3Index, res) {
68034
68021
  return out;
68035
68022
  }
68036
68023
  function h3ToCenterChild(h3Index, res) {
68037
- var ref = h3IndexToSplitLong(h3Index);
68038
- var lower = ref[0];
68039
- var upper = ref[1];
68024
+ var ref2 = h3IndexToSplitLong(h3Index);
68025
+ var lower = ref2[0];
68026
+ var upper = ref2[1];
68040
68027
  return readH3Index(H3.h3ToCenterChild(lower, upper, res));
68041
68028
  }
68042
68029
  function kRing(h3Index, ringSize) {
68043
- var ref = h3IndexToSplitLong(h3Index);
68044
- var lower = ref[0];
68045
- var upper = ref[1];
68030
+ var ref2 = h3IndexToSplitLong(h3Index);
68031
+ var lower = ref2[0];
68032
+ var upper = ref2[1];
68046
68033
  var maxCount = H3.maxKringSize(ringSize);
68047
68034
  var hexagons = libh3._calloc(maxCount, SZ_H3INDEX);
68048
68035
  H3.kRing(lower, upper, ringSize, hexagons);
@@ -68051,9 +68038,9 @@ function kRing(h3Index, ringSize) {
68051
68038
  return out;
68052
68039
  }
68053
68040
  function kRingDistances(h3Index, ringSize) {
68054
- var ref = h3IndexToSplitLong(h3Index);
68055
- var lower = ref[0];
68056
- var upper = ref[1];
68041
+ var ref2 = h3IndexToSplitLong(h3Index);
68042
+ var lower = ref2[0];
68043
+ var upper = ref2[1];
68057
68044
  var maxCount = H3.maxKringSize(ringSize);
68058
68045
  var kRings = libh3._calloc(maxCount, SZ_H3INDEX);
68059
68046
  var distances = libh3._calloc(maxCount, SZ_INT);
@@ -68161,45 +68148,45 @@ function uncompact(compactedSet, res) {
68161
68148
  return out;
68162
68149
  }
68163
68150
  function h3IndexesAreNeighbors(origin, destination2) {
68164
- var ref = h3IndexToSplitLong(origin);
68165
- var oLower = ref[0];
68166
- var oUpper = ref[1];
68151
+ var ref2 = h3IndexToSplitLong(origin);
68152
+ var oLower = ref2[0];
68153
+ var oUpper = ref2[1];
68167
68154
  var ref$1 = h3IndexToSplitLong(destination2);
68168
68155
  var dLower = ref$1[0];
68169
68156
  var dUpper = ref$1[1];
68170
68157
  return Boolean(H3.h3IndexesAreNeighbors(oLower, oUpper, dLower, dUpper));
68171
68158
  }
68172
68159
  function getH3UnidirectionalEdge(origin, destination2) {
68173
- var ref = h3IndexToSplitLong(origin);
68174
- var oLower = ref[0];
68175
- var oUpper = ref[1];
68160
+ var ref2 = h3IndexToSplitLong(origin);
68161
+ var oLower = ref2[0];
68162
+ var oUpper = ref2[1];
68176
68163
  var ref$1 = h3IndexToSplitLong(destination2);
68177
68164
  var dLower = ref$1[0];
68178
68165
  var dUpper = ref$1[1];
68179
68166
  return readH3Index(H3.getH3UnidirectionalEdge(oLower, oUpper, dLower, dUpper));
68180
68167
  }
68181
68168
  function getOriginH3IndexFromUnidirectionalEdge(edgeIndex) {
68182
- var ref = h3IndexToSplitLong(edgeIndex);
68183
- var lower = ref[0];
68184
- var upper = ref[1];
68169
+ var ref2 = h3IndexToSplitLong(edgeIndex);
68170
+ var lower = ref2[0];
68171
+ var upper = ref2[1];
68185
68172
  return readH3Index(H3.getOriginH3IndexFromUnidirectionalEdge(lower, upper));
68186
68173
  }
68187
68174
  function getDestinationH3IndexFromUnidirectionalEdge(edgeIndex) {
68188
- var ref = h3IndexToSplitLong(edgeIndex);
68189
- var lower = ref[0];
68190
- var upper = ref[1];
68175
+ var ref2 = h3IndexToSplitLong(edgeIndex);
68176
+ var lower = ref2[0];
68177
+ var upper = ref2[1];
68191
68178
  return readH3Index(H3.getDestinationH3IndexFromUnidirectionalEdge(lower, upper));
68192
68179
  }
68193
68180
  function h3UnidirectionalEdgeIsValid(edgeIndex) {
68194
- var ref = h3IndexToSplitLong(edgeIndex);
68195
- var lower = ref[0];
68196
- var upper = ref[1];
68181
+ var ref2 = h3IndexToSplitLong(edgeIndex);
68182
+ var lower = ref2[0];
68183
+ var upper = ref2[1];
68197
68184
  return Boolean(H3.h3UnidirectionalEdgeIsValid(lower, upper));
68198
68185
  }
68199
68186
  function getH3IndexesFromUnidirectionalEdge(edgeIndex) {
68200
- var ref = h3IndexToSplitLong(edgeIndex);
68201
- var lower = ref[0];
68202
- var upper = ref[1];
68187
+ var ref2 = h3IndexToSplitLong(edgeIndex);
68188
+ var lower = ref2[0];
68189
+ var upper = ref2[1];
68203
68190
  var count2 = 2;
68204
68191
  var hexagons = libh3._calloc(count2, SZ_H3INDEX);
68205
68192
  H3.getH3IndexesFromUnidirectionalEdge(lower, upper, hexagons);
@@ -68208,9 +68195,9 @@ function getH3IndexesFromUnidirectionalEdge(edgeIndex) {
68208
68195
  return out;
68209
68196
  }
68210
68197
  function getH3UnidirectionalEdgesFromHexagon(h3Index) {
68211
- var ref = h3IndexToSplitLong(h3Index);
68212
- var lower = ref[0];
68213
- var upper = ref[1];
68198
+ var ref2 = h3IndexToSplitLong(h3Index);
68199
+ var lower = ref2[0];
68200
+ var upper = ref2[1];
68214
68201
  var count2 = 6;
68215
68202
  var edges = libh3._calloc(count2, SZ_H3INDEX);
68216
68203
  H3.getH3UnidirectionalEdgesFromHexagon(lower, upper, edges);
@@ -68220,27 +68207,27 @@ function getH3UnidirectionalEdgesFromHexagon(h3Index) {
68220
68207
  }
68221
68208
  function getH3UnidirectionalEdgeBoundary(edgeIndex, formatAsGeoJson) {
68222
68209
  var geoBoundary = libh3._malloc(SZ_GEOBOUNDARY);
68223
- var ref = h3IndexToSplitLong(edgeIndex);
68224
- var lower = ref[0];
68225
- var upper = ref[1];
68210
+ var ref2 = h3IndexToSplitLong(edgeIndex);
68211
+ var lower = ref2[0];
68212
+ var upper = ref2[1];
68226
68213
  H3.getH3UnidirectionalEdgeBoundary(lower, upper, geoBoundary);
68227
68214
  var out = readGeoBoundary(geoBoundary, formatAsGeoJson);
68228
68215
  libh3._free(geoBoundary);
68229
68216
  return out;
68230
68217
  }
68231
68218
  function h3Distance(origin, destination2) {
68232
- var ref = h3IndexToSplitLong(origin);
68233
- var oLower = ref[0];
68234
- var oUpper = ref[1];
68219
+ var ref2 = h3IndexToSplitLong(origin);
68220
+ var oLower = ref2[0];
68221
+ var oUpper = ref2[1];
68235
68222
  var ref$1 = h3IndexToSplitLong(destination2);
68236
68223
  var dLower = ref$1[0];
68237
68224
  var dUpper = ref$1[1];
68238
68225
  return H3.h3Distance(oLower, oUpper, dLower, dUpper);
68239
68226
  }
68240
68227
  function h3Line(origin, destination2) {
68241
- var ref = h3IndexToSplitLong(origin);
68242
- var oLower = ref[0];
68243
- var oUpper = ref[1];
68228
+ var ref2 = h3IndexToSplitLong(origin);
68229
+ var oLower = ref2[0];
68230
+ var oUpper = ref2[1];
68244
68231
  var ref$1 = h3IndexToSplitLong(destination2);
68245
68232
  var dLower = ref$1[0];
68246
68233
  var dUpper = ref$1[1];
@@ -68314,9 +68301,9 @@ function pointDist(latlng1, latlng2, unit2) {
68314
68301
  return result;
68315
68302
  }
68316
68303
  function cellArea(h3Index, unit2) {
68317
- var ref = h3IndexToSplitLong(h3Index);
68318
- var lower = ref[0];
68319
- var upper = ref[1];
68304
+ var ref2 = h3IndexToSplitLong(h3Index);
68305
+ var lower = ref2[0];
68306
+ var upper = ref2[1];
68320
68307
  switch (unit2) {
68321
68308
  case UNITS.m2:
68322
68309
  return H3.cellAreaM2(lower, upper);
@@ -68329,9 +68316,9 @@ function cellArea(h3Index, unit2) {
68329
68316
  }
68330
68317
  }
68331
68318
  function exactEdgeLength(edge, unit2) {
68332
- var ref = h3IndexToSplitLong(edge);
68333
- var lower = ref[0];
68334
- var upper = ref[1];
68319
+ var ref2 = h3IndexToSplitLong(edge);
68320
+ var lower = ref2[0];
68321
+ var upper = ref2[1];
68335
68322
  switch (unit2) {
68336
68323
  case UNITS.m:
68337
68324
  return H3.exactEdgeLengthM(lower, upper);
@@ -68367,9 +68354,9 @@ function edgeLength(res, unit2) {
68367
68354
  }
68368
68355
  function numHexagons(res) {
68369
68356
  validateRes(res);
68370
- var ref = readLong(H3.numHexagons(res));
68371
- var lower = ref[0];
68372
- var upper = ref[1];
68357
+ var ref2 = readLong(H3.numHexagons(res));
68358
+ var lower = ref2[0];
68359
+ var upper = ref2[1];
68373
68360
  if (!upper) {
68374
68361
  return lower;
68375
68362
  }
@@ -70450,8 +70437,8 @@ const ATTRIBUTE_COMPONENT_TYPE_TO_ARRAY = {
70450
70437
  5126: Float32Array
70451
70438
  };
70452
70439
  function getAccessorTypeFromSize(size2) {
70453
- const type = TYPES[size2 - 1];
70454
- return type || TYPES[0];
70440
+ const type2 = TYPES[size2 - 1];
70441
+ return type2 || TYPES[0];
70455
70442
  }
70456
70443
  function getComponentTypeFromArray(typedArray) {
70457
70444
  const componentType = ARRAY_TO_COMPONENT_TYPE.get(typedArray.constructor);
@@ -71169,13 +71156,13 @@ function mergeMaps(m1, m2) {
71169
71156
  return new Map([...m1 || /* @__PURE__ */ new Map(), ...m2 || /* @__PURE__ */ new Map()]);
71170
71157
  }
71171
71158
  class Field {
71172
- constructor(name2, type, nullable = false, metadata = /* @__PURE__ */ new Map()) {
71159
+ constructor(name2, type2, nullable = false, metadata = /* @__PURE__ */ new Map()) {
71173
71160
  _defineProperty$e(this, "name", void 0);
71174
71161
  _defineProperty$e(this, "type", void 0);
71175
71162
  _defineProperty$e(this, "nullable", void 0);
71176
71163
  _defineProperty$e(this, "metadata", void 0);
71177
71164
  this.name = name2;
71178
- this.type = type;
71165
+ this.type = type2;
71179
71166
  this.nullable = nullable;
71180
71167
  this.metadata = metadata;
71181
71168
  }
@@ -71431,9 +71418,9 @@ function getArrowTypeFromTypedArray(array) {
71431
71418
  }
71432
71419
  }
71433
71420
  function deduceMeshField(attributeName, attribute, optionalMetadata) {
71434
- const type = getArrowTypeFromTypedArray(attribute.value);
71421
+ const type2 = getArrowTypeFromTypedArray(attribute.value);
71435
71422
  const metadata = optionalMetadata ? optionalMetadata : makeMeshAttributeMetadata(attribute);
71436
- const field = new Field(attributeName, new FixedSizeList(attribute.size, new Field("value", type)), false, metadata);
71423
+ const field = new Field(attributeName, new FixedSizeList(attribute.size, new Field("value", type2)), false, metadata);
71437
71424
  return field;
71438
71425
  }
71439
71426
  function makeMeshAttributeMetadata(attribute) {
@@ -71764,7 +71751,7 @@ class DracoParser {
71764
71751
  quantizedAttributes = []
71765
71752
  } = options;
71766
71753
  const attribute_type = dracoAttribute.attribute_type();
71767
- const skip = quantizedAttributes.map((type) => this.decoder[type]).includes(attribute_type);
71754
+ const skip = quantizedAttributes.map((type2) => this.decoder[type2]).includes(attribute_type);
71768
71755
  if (skip) {
71769
71756
  const transform2 = new this.draco.AttributeQuantizationTransform();
71770
71757
  try {
@@ -71786,7 +71773,7 @@ class DracoParser {
71786
71773
  octahedronAttributes = []
71787
71774
  } = options;
71788
71775
  const attribute_type = dracoAttribute.attribute_type();
71789
- const octahedron = octahedronAttributes.map((type) => this.decoder[type]).includes(attribute_type);
71776
+ const octahedron = octahedronAttributes.map((type2) => this.decoder[type2]).includes(attribute_type);
71790
71777
  if (octahedron) {
71791
71778
  const transform2 = new this.draco.AttributeQuantizationTransform();
71792
71779
  try {
@@ -72495,8 +72482,8 @@ const DEFAULT_SAMPLER = {
72495
72482
  function getBytesFromComponentType(componentType) {
72496
72483
  return BYTES[componentType];
72497
72484
  }
72498
- function getSizeFromAccessorType(type) {
72499
- return COMPONENTS[type];
72485
+ function getSizeFromAccessorType(type2) {
72486
+ return COMPONENTS[type2];
72500
72487
  }
72501
72488
  class GLTFPostProcessor {
72502
72489
  constructor() {
@@ -72813,7 +72800,7 @@ function isGLB(arrayBuffer2, byteOffset = 0, options = {}) {
72813
72800
  }
72814
72801
  function parseGLBSync(glb, arrayBuffer2, byteOffset = 0, options = {}) {
72815
72802
  const dataView = new DataView(arrayBuffer2);
72816
- const type = getMagicString$1(dataView, byteOffset + 0);
72803
+ const type2 = getMagicString$1(dataView, byteOffset + 0);
72817
72804
  const version2 = dataView.getUint32(byteOffset + 4, LE);
72818
72805
  const byteLength = dataView.getUint32(byteOffset + 8, LE);
72819
72806
  Object.assign(glb, {
@@ -72822,7 +72809,7 @@ function parseGLBSync(glb, arrayBuffer2, byteOffset = 0, options = {}) {
72822
72809
  byteLength,
72823
72810
  hasBinChunk: false
72824
72811
  },
72825
- type,
72812
+ type: type2,
72826
72813
  version: version2,
72827
72814
  json: {},
72828
72815
  binChunks: []
@@ -72960,8 +72947,8 @@ async function loadBuffers(gltf, options, context) {
72960
72947
  fetch: fetch2
72961
72948
  } = context;
72962
72949
  assert$3(fetch2);
72963
- const uri = resolveUrl(buffer2.uri, options);
72964
- 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));
72950
+ const uri2 = resolveUrl(buffer2.uri, options);
72951
+ 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));
72965
72952
  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));
72966
72953
  gltf.buffers[i2] = {
72967
72954
  arrayBuffer: arrayBuffer2,
@@ -73004,8 +72991,8 @@ async function loadImage(gltf, image, index2, options, context) {
73004
72991
  } = context;
73005
72992
  let arrayBuffer2;
73006
72993
  if (image.uri && !image.hasOwnProperty("bufferView")) {
73007
- const uri = resolveUrl(image.uri, options);
73008
- const response = await fetch2(uri);
72994
+ const uri2 = resolveUrl(image.uri, options);
72995
+ const response = await fetch2(uri2);
73009
72996
  arrayBuffer2 = await response.arrayBuffer();
73010
72997
  }
73011
72998
  if (Number.isFinite(image.bufferView)) {
@@ -75751,8 +75738,8 @@ class Tileset3D {
75751
75738
  }
75752
75739
  _initializeTraverser() {
75753
75740
  let TraverserClass;
75754
- const type = this.type;
75755
- switch (type) {
75741
+ const type2 = this.type;
75742
+ switch (type2) {
75756
75743
  case TILESET_TYPE.TILES3D:
75757
75744
  TraverserClass = Tileset3DTraverser;
75758
75745
  break;
@@ -76202,15 +76189,15 @@ function createTypedArrayFromAccessor(tile3DAccessor, buffer2, byteOffset, lengt
76202
76189
  componentType
76203
76190
  } = tile3DAccessor;
76204
76191
  assert$b(tile3DAccessor.componentType);
76205
- const type = typeof componentType === "string" ? GLType.fromName(componentType) : componentType;
76192
+ const type2 = typeof componentType === "string" ? GLType.fromName(componentType) : componentType;
76206
76193
  const size2 = COMPONENTS_PER_ATTRIBUTE[tile3DAccessor.type];
76207
76194
  const unpacker = UNPACKER[tile3DAccessor.type];
76208
76195
  const packer = PACKER[tile3DAccessor.type];
76209
76196
  byteOffset += tile3DAccessor.byteOffset;
76210
- const values = GLType.createTypedArray(type, buffer2, byteOffset, size2 * length2);
76197
+ const values = GLType.createTypedArray(type2, buffer2, byteOffset, size2 * length2);
76211
76198
  return {
76212
76199
  values,
76213
- type,
76200
+ type: type2,
76214
76201
  size: size2,
76215
76202
  unpacker,
76216
76203
  packer
@@ -77443,14 +77430,14 @@ function formatTileData(tile, level, childCoordinates, options) {
77443
77430
  rootLodMetricValue,
77444
77431
  rootBoundingVolume
77445
77432
  } = options;
77446
- const uri = tile.contentUrl && tile.contentUrl.replace("".concat(basePath, "/"), "");
77433
+ const uri2 = tile.contentUrl && tile.contentUrl.replace("".concat(basePath, "/"), "");
77447
77434
  const lodMetricValue = rootLodMetricValue / 2 ** level;
77448
77435
  const boundingVolume = calculateBoundingVolumeForChildTile(level, rootBoundingVolume, childCoordinates);
77449
77436
  return {
77450
77437
  children: tile.children,
77451
77438
  contentUrl: tile.contentUrl,
77452
77439
  content: {
77453
- uri
77440
+ uri: uri2
77454
77441
  },
77455
77442
  id: tile.contentUrl,
77456
77443
  refine: getRefine2(refine),
@@ -77537,15 +77524,15 @@ function getRefine(refine) {
77537
77524
  return refine;
77538
77525
  }
77539
77526
  }
77540
- function resolveUri(uri, basePath) {
77527
+ function resolveUri(uri2, basePath) {
77541
77528
  const urlSchemeRegex = /^[a-z][0-9a-z+.-]*:/i;
77542
77529
  if (urlSchemeRegex.test(basePath)) {
77543
- const url = new URL(uri, "".concat(basePath, "/"));
77530
+ const url = new URL(uri2, "".concat(basePath, "/"));
77544
77531
  return decodeURI(url.toString());
77545
- } else if (uri.startsWith("/")) {
77546
- return uri;
77532
+ } else if (uri2.startsWith("/")) {
77533
+ return uri2;
77547
77534
  }
77548
- return "".concat(basePath, "/").concat(uri);
77535
+ return "".concat(basePath, "/").concat(uri2);
77549
77536
  }
77550
77537
  function normalizeTileData(tile, options) {
77551
77538
  if (!tile) {
@@ -79443,8 +79430,8 @@ function getSingleFeature(data, globalFeatureId) {
79443
79430
  }
79444
79431
  throw new Error("featureId:".concat(globalFeatureId, " not found"));
79445
79432
  }
79446
- function parseFeatures(data, type) {
79447
- const dataArray = normalizeInput(data, type);
79433
+ function parseFeatures(data, type2) {
79434
+ const dataArray = normalizeInput(data, type2);
79448
79435
  return parseFeatureCollection(dataArray);
79449
79436
  }
79450
79437
  function binaryToGeometry(data, startIndex, endIndex) {
@@ -79460,10 +79447,10 @@ function binaryToGeometry(data, startIndex, endIndex) {
79460
79447
  throw new Error("Unsupported geometry type: ".concat(unexpectedInput === null || unexpectedInput === void 0 ? void 0 : unexpectedInput.type));
79461
79448
  }
79462
79449
  }
79463
- function normalizeInput(data, type) {
79450
+ function normalizeInput(data, type2) {
79464
79451
  const isHeterogeneousType = Boolean(data.points || data.lines || data.polygons);
79465
79452
  if (!isHeterogeneousType) {
79466
- data.type = type || parseType(data);
79453
+ data.type = type2 || parseType(data);
79467
79454
  return [data];
79468
79455
  }
79469
79456
  const features = [];
@@ -79890,22 +79877,22 @@ Pbf.prototype = {
79890
79877
  return arr;
79891
79878
  },
79892
79879
  skip: function(val) {
79893
- var type = val & 7;
79894
- if (type === Pbf.Varint)
79880
+ var type2 = val & 7;
79881
+ if (type2 === Pbf.Varint)
79895
79882
  while (this.buf[this.pos++] > 127) {
79896
79883
  }
79897
- else if (type === Pbf.Bytes)
79884
+ else if (type2 === Pbf.Bytes)
79898
79885
  this.pos = this.readVarint() + this.pos;
79899
- else if (type === Pbf.Fixed32)
79886
+ else if (type2 === Pbf.Fixed32)
79900
79887
  this.pos += 4;
79901
- else if (type === Pbf.Fixed64)
79888
+ else if (type2 === Pbf.Fixed64)
79902
79889
  this.pos += 8;
79903
79890
  else
79904
- throw new Error("Unimplemented type: " + type);
79891
+ throw new Error("Unimplemented type: " + type2);
79905
79892
  },
79906
79893
  // === WRITING =================================================================
79907
- writeTag: function(tag2, type) {
79908
- this.writeVarint(tag2 << 3 | type);
79894
+ writeTag: function(tag2, type2) {
79895
+ this.writeVarint(tag2 << 3 | type2);
79909
79896
  },
79910
79897
  realloc: function(min2) {
79911
79898
  var length2 = this.length || 16;
@@ -80499,7 +80486,7 @@ let VectorTileFeature$1 = class VectorTileFeature {
80499
80486
  }
80500
80487
  _toGeoJSON(transform2) {
80501
80488
  let coords = this.loadGeometry();
80502
- let type = VectorTileFeature.types[this.type];
80489
+ let type2 = VectorTileFeature.types[this.type];
80503
80490
  let i2;
80504
80491
  let j;
80505
80492
  switch (this.type) {
@@ -80528,12 +80515,12 @@ let VectorTileFeature$1 = class VectorTileFeature {
80528
80515
  if (coords.length === 1) {
80529
80516
  coords = coords[0];
80530
80517
  } else {
80531
- type = "Multi".concat(type);
80518
+ type2 = "Multi".concat(type2);
80532
80519
  }
80533
80520
  const result = {
80534
80521
  type: "Feature",
80535
80522
  geometry: {
80536
- type,
80523
+ type: type2,
80537
80524
  coordinates: coords
80538
80525
  },
80539
80526
  properties: this.properties
@@ -80639,10 +80626,10 @@ function readTile$1(tag2, layers, pbf2) {
80639
80626
  }
80640
80627
  function classifyRings(geom) {
80641
80628
  const len2 = geom.indices.length;
80642
- const type = "Polygon";
80629
+ const type2 = "Polygon";
80643
80630
  if (len2 <= 1) {
80644
80631
  return {
80645
- type,
80632
+ type: type2,
80646
80633
  data: geom.data,
80647
80634
  areas: [[getPolygonSignedArea(geom.data)]],
80648
80635
  indices: [geom.indices]
@@ -80685,7 +80672,7 @@ function classifyRings(geom) {
80685
80672
  if (polygon2.length)
80686
80673
  polygons2.push(polygon2);
80687
80674
  return {
80688
- type,
80675
+ type: type2,
80689
80676
  areas,
80690
80677
  indices: polygons2,
80691
80678
  data: geom.data
@@ -81701,8 +81688,8 @@ function feature$1(geom, properties, options) {
81701
81688
  feat.geometry = geom;
81702
81689
  return feat;
81703
81690
  }
81704
- function geometry(type, coordinates2, _options) {
81705
- switch (type) {
81691
+ function geometry(type2, coordinates2, _options) {
81692
+ switch (type2) {
81706
81693
  case "Point":
81707
81694
  return point(coordinates2).geometry;
81708
81695
  case "LineString":
@@ -81716,7 +81703,7 @@ function geometry(type, coordinates2, _options) {
81716
81703
  case "MultiPolygon":
81717
81704
  return multiPolygon(coordinates2).geometry;
81718
81705
  default:
81719
- throw new Error(type + " is invalid");
81706
+ throw new Error(type2 + " is invalid");
81720
81707
  }
81721
81708
  }
81722
81709
  function point(coordinates2, properties, options) {
@@ -81999,7 +81986,7 @@ const es$7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty
81999
81986
  function coordEach$1(geojson, callback, excludeWrapCoord) {
82000
81987
  if (geojson === null)
82001
81988
  return;
82002
- 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;
81989
+ 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;
82003
81990
  for (var featureIndex = 0; featureIndex < stop; featureIndex++) {
82004
81991
  geometryMaybeCollection = isFeatureCollection ? geojson.features[featureIndex].geometry : isFeature ? geojson.geometry : geojson;
82005
81992
  isGeometryCollection = geometryMaybeCollection ? geometryMaybeCollection.type === "GeometryCollection" : false;
@@ -82252,8 +82239,8 @@ function geomReduce$1(geojson, callback, initialValue) {
82252
82239
  }
82253
82240
  function flattenEach$1(geojson, callback) {
82254
82241
  geomEach$1(geojson, function(geometry2, featureIndex, properties, bbox2, id) {
82255
- var type = geometry2 === null ? null : geometry2.type;
82256
- switch (type) {
82242
+ var type2 = geometry2 === null ? null : geometry2.type;
82243
+ switch (type2) {
82257
82244
  case null:
82258
82245
  case "Point":
82259
82246
  case "LineString":
@@ -82267,7 +82254,7 @@ function flattenEach$1(geojson, callback) {
82267
82254
  return;
82268
82255
  }
82269
82256
  var geomType;
82270
- switch (type) {
82257
+ switch (type2) {
82271
82258
  case "MultiPoint":
82272
82259
  geomType = "Point";
82273
82260
  break;
@@ -82312,8 +82299,8 @@ function segmentEach$1(geojson, callback) {
82312
82299
  var segmentIndex = 0;
82313
82300
  if (!feature2.geometry)
82314
82301
  return;
82315
- var type = feature2.geometry.type;
82316
- if (type === "Point" || type === "MultiPoint")
82302
+ var type2 = feature2.geometry.type;
82303
+ if (type2 === "Point" || type2 === "MultiPoint")
82317
82304
  return;
82318
82305
  var previousCoords;
82319
82306
  var previousFeatureIndex = 0;
@@ -82377,9 +82364,9 @@ function lineEach$1(geojson, callback) {
82377
82364
  flattenEach$1(geojson, function(feature2, featureIndex, multiFeatureIndex) {
82378
82365
  if (feature2.geometry === null)
82379
82366
  return;
82380
- var type = feature2.geometry.type;
82367
+ var type2 = feature2.geometry.type;
82381
82368
  var coords = feature2.geometry.coordinates;
82382
- switch (type) {
82369
+ switch (type2) {
82383
82370
  case "LineString":
82384
82371
  if (callback(feature2, featureIndex, multiFeatureIndex, 0, 0) === false)
82385
82372
  return false;
@@ -82663,15 +82650,15 @@ function containsNumber$1(coordinates2) {
82663
82650
  }
82664
82651
  throw new Error("coordinates must only contain numbers");
82665
82652
  }
82666
- function geojsonType$1(value, type, name2) {
82667
- if (!type || !name2) {
82653
+ function geojsonType$1(value, type2, name2) {
82654
+ if (!type2 || !name2) {
82668
82655
  throw new Error("type and name required");
82669
82656
  }
82670
- if (!value || value.type !== type) {
82671
- throw new Error("Invalid input to " + name2 + ": must be a " + type + ", given " + value.type);
82657
+ if (!value || value.type !== type2) {
82658
+ throw new Error("Invalid input to " + name2 + ": must be a " + type2 + ", given " + value.type);
82672
82659
  }
82673
82660
  }
82674
- function featureOf$1(feature2, type, name2) {
82661
+ function featureOf$1(feature2, type2, name2) {
82675
82662
  if (!feature2) {
82676
82663
  throw new Error("No feature passed");
82677
82664
  }
@@ -82681,11 +82668,11 @@ function featureOf$1(feature2, type, name2) {
82681
82668
  if (!feature2 || feature2.type !== "Feature" || !feature2.geometry) {
82682
82669
  throw new Error("Invalid input to " + name2 + ", Feature with geometry required");
82683
82670
  }
82684
- if (!feature2.geometry || feature2.geometry.type !== type) {
82685
- throw new Error("Invalid input to " + name2 + ": must be a " + type + ", given " + feature2.geometry.type);
82671
+ if (!feature2.geometry || feature2.geometry.type !== type2) {
82672
+ throw new Error("Invalid input to " + name2 + ": must be a " + type2 + ", given " + feature2.geometry.type);
82686
82673
  }
82687
82674
  }
82688
- function collectionOf$1(featureCollection2, type, name2) {
82675
+ function collectionOf$1(featureCollection2, type2, name2) {
82689
82676
  if (!featureCollection2) {
82690
82677
  throw new Error("No featureCollection passed");
82691
82678
  }
@@ -82700,8 +82687,8 @@ function collectionOf$1(featureCollection2, type, name2) {
82700
82687
  if (!feature2 || feature2.type !== "Feature" || !feature2.geometry) {
82701
82688
  throw new Error("Invalid input to " + name2 + ", Feature with geometry required");
82702
82689
  }
82703
- if (!feature2.geometry || feature2.geometry.type !== type) {
82704
- throw new Error("Invalid input to " + name2 + ": must be a " + type + ", given " + feature2.geometry.type);
82690
+ if (!feature2.geometry || feature2.geometry.type !== type2) {
82691
+ throw new Error("Invalid input to " + name2 + ": must be a " + type2 + ", given " + feature2.geometry.type);
82705
82692
  }
82706
82693
  }
82707
82694
  }
@@ -82813,13 +82800,13 @@ function booleanPointInPolygon$1(point2, polygon2, options) {
82813
82800
  }
82814
82801
  var pt = getCoord$1(point2);
82815
82802
  var geom = getGeom$1(polygon2);
82816
- var type = geom.type;
82803
+ var type2 = geom.type;
82817
82804
  var bbox2 = polygon2.bbox;
82818
82805
  var polys = geom.coordinates;
82819
82806
  if (bbox2 && inBBox$1(pt, bbox2) === false) {
82820
82807
  return false;
82821
82808
  }
82822
- if (type === "Polygon") {
82809
+ if (type2 === "Polygon") {
82823
82810
  polys = [polys];
82824
82811
  }
82825
82812
  var insidePoly = false;
@@ -83521,8 +83508,8 @@ var js$v = {};
83521
83508
  return feat;
83522
83509
  }
83523
83510
  exports2.feature = feature2;
83524
- function geometry2(type, coordinates2, _options) {
83525
- switch (type) {
83511
+ function geometry2(type2, coordinates2, _options) {
83512
+ switch (type2) {
83526
83513
  case "Point":
83527
83514
  return point2(coordinates2).geometry;
83528
83515
  case "LineString":
@@ -83536,7 +83523,7 @@ var js$v = {};
83536
83523
  case "MultiPolygon":
83537
83524
  return multiPolygon2(coordinates2).geometry;
83538
83525
  default:
83539
- throw new Error(type + " is invalid");
83526
+ throw new Error(type2 + " is invalid");
83540
83527
  }
83541
83528
  }
83542
83529
  exports2.geometry = geometry2;
@@ -83816,7 +83803,7 @@ var helpers$8 = require$$0$5;
83816
83803
  function coordEach(geojson, callback, excludeWrapCoord) {
83817
83804
  if (geojson === null)
83818
83805
  return;
83819
- 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;
83806
+ 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;
83820
83807
  for (var featureIndex = 0; featureIndex < stop; featureIndex++) {
83821
83808
  geometryMaybeCollection = isFeatureCollection ? geojson.features[featureIndex].geometry : isFeature ? geojson.geometry : geojson;
83822
83809
  isGeometryCollection = geometryMaybeCollection ? geometryMaybeCollection.type === "GeometryCollection" : false;
@@ -84069,8 +84056,8 @@ function geomReduce(geojson, callback, initialValue) {
84069
84056
  }
84070
84057
  function flattenEach(geojson, callback) {
84071
84058
  geomEach(geojson, function(geometry2, featureIndex, properties, bbox2, id) {
84072
- var type = geometry2 === null ? null : geometry2.type;
84073
- switch (type) {
84059
+ var type2 = geometry2 === null ? null : geometry2.type;
84060
+ switch (type2) {
84074
84061
  case null:
84075
84062
  case "Point":
84076
84063
  case "LineString":
@@ -84084,7 +84071,7 @@ function flattenEach(geojson, callback) {
84084
84071
  return;
84085
84072
  }
84086
84073
  var geomType;
84087
- switch (type) {
84074
+ switch (type2) {
84088
84075
  case "MultiPoint":
84089
84076
  geomType = "Point";
84090
84077
  break;
@@ -84129,8 +84116,8 @@ function segmentEach(geojson, callback) {
84129
84116
  var segmentIndex = 0;
84130
84117
  if (!feature2.geometry)
84131
84118
  return;
84132
- var type = feature2.geometry.type;
84133
- if (type === "Point" || type === "MultiPoint")
84119
+ var type2 = feature2.geometry.type;
84120
+ if (type2 === "Point" || type2 === "MultiPoint")
84134
84121
  return;
84135
84122
  var previousCoords;
84136
84123
  var previousFeatureIndex = 0;
@@ -84194,9 +84181,9 @@ function lineEach(geojson, callback) {
84194
84181
  flattenEach(geojson, function(feature2, featureIndex, multiFeatureIndex) {
84195
84182
  if (feature2.geometry === null)
84196
84183
  return;
84197
- var type = feature2.geometry.type;
84184
+ var type2 = feature2.geometry.type;
84198
84185
  var coords = feature2.geometry.coordinates;
84199
- switch (type) {
84186
+ switch (type2) {
84200
84187
  case "LineString":
84201
84188
  if (callback(feature2, featureIndex, multiFeatureIndex, 0, 0) === false)
84202
84189
  return false;
@@ -84631,16 +84618,16 @@ function containsNumber(coordinates2) {
84631
84618
  throw new Error("coordinates must only contain numbers");
84632
84619
  }
84633
84620
  js$s.containsNumber = containsNumber;
84634
- function geojsonType(value, type, name2) {
84635
- if (!type || !name2) {
84621
+ function geojsonType(value, type2, name2) {
84622
+ if (!type2 || !name2) {
84636
84623
  throw new Error("type and name required");
84637
84624
  }
84638
- if (!value || value.type !== type) {
84639
- throw new Error("Invalid input to " + name2 + ": must be a " + type + ", given " + value.type);
84625
+ if (!value || value.type !== type2) {
84626
+ throw new Error("Invalid input to " + name2 + ": must be a " + type2 + ", given " + value.type);
84640
84627
  }
84641
84628
  }
84642
84629
  js$s.geojsonType = geojsonType;
84643
- function featureOf(feature2, type, name2) {
84630
+ function featureOf(feature2, type2, name2) {
84644
84631
  if (!feature2) {
84645
84632
  throw new Error("No feature passed");
84646
84633
  }
@@ -84650,12 +84637,12 @@ function featureOf(feature2, type, name2) {
84650
84637
  if (!feature2 || feature2.type !== "Feature" || !feature2.geometry) {
84651
84638
  throw new Error("Invalid input to " + name2 + ", Feature with geometry required");
84652
84639
  }
84653
- if (!feature2.geometry || feature2.geometry.type !== type) {
84654
- throw new Error("Invalid input to " + name2 + ": must be a " + type + ", given " + feature2.geometry.type);
84640
+ if (!feature2.geometry || feature2.geometry.type !== type2) {
84641
+ throw new Error("Invalid input to " + name2 + ": must be a " + type2 + ", given " + feature2.geometry.type);
84655
84642
  }
84656
84643
  }
84657
84644
  js$s.featureOf = featureOf;
84658
- function collectionOf(featureCollection2, type, name2) {
84645
+ function collectionOf(featureCollection2, type2, name2) {
84659
84646
  if (!featureCollection2) {
84660
84647
  throw new Error("No featureCollection passed");
84661
84648
  }
@@ -84670,8 +84657,8 @@ function collectionOf(featureCollection2, type, name2) {
84670
84657
  if (!feature2 || feature2.type !== "Feature" || !feature2.geometry) {
84671
84658
  throw new Error("Invalid input to " + name2 + ", Feature with geometry required");
84672
84659
  }
84673
- if (!feature2.geometry || feature2.geometry.type !== type) {
84674
- throw new Error("Invalid input to " + name2 + ": must be a " + type + ", given " + feature2.geometry.type);
84660
+ if (!feature2.geometry || feature2.geometry.type !== type2) {
84661
+ throw new Error("Invalid input to " + name2 + ": must be a " + type2 + ", given " + feature2.geometry.type);
84675
84662
  }
84676
84663
  }
84677
84664
  }
@@ -85009,7 +84996,7 @@ function requireImplementation() {
85009
84996
  implementation$8 = keysShim2;
85010
84997
  return implementation$8;
85011
84998
  }
85012
- var slice$3 = Array.prototype.slice;
84999
+ var slice$2 = Array.prototype.slice;
85013
85000
  var isArgs = isArguments$2;
85014
85001
  var origKeys = Object.keys;
85015
85002
  var keysShim = origKeys ? function keys(o2) {
@@ -85025,7 +85012,7 @@ keysShim.shim = function shimObjectKeys() {
85025
85012
  if (!keysWorksWithArguments) {
85026
85013
  Object.keys = function keys3(object2) {
85027
85014
  if (isArgs(object2)) {
85028
- return originalKeys(slice$3.call(object2));
85015
+ return originalKeys(slice$2.call(object2));
85029
85016
  }
85030
85017
  return originalKeys(object2);
85031
85018
  };
@@ -85036,7 +85023,7 @@ keysShim.shim = function shimObjectKeys() {
85036
85023
  return Object.keys || keysShim;
85037
85024
  };
85038
85025
  var objectKeys$1 = keysShim;
85039
- var shams$1 = function hasSymbols() {
85026
+ var shams$2 = function hasSymbols() {
85040
85027
  if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
85041
85028
  return false;
85042
85029
  }
@@ -85081,13 +85068,20 @@ var shams$1 = function hasSymbols() {
85081
85068
  }
85082
85069
  return true;
85083
85070
  };
85084
- var hasSymbols$3 = shams$1;
85085
- var shams = function hasToStringTagShams() {
85086
- return hasSymbols$3() && !!Symbol.toStringTag;
85087
- };
85071
+ var hasSymbols$4 = shams$2;
85072
+ var shams$1 = function hasToStringTagShams() {
85073
+ return hasSymbols$4() && !!Symbol.toStringTag;
85074
+ };
85075
+ var esErrors = Error;
85076
+ var _eval = EvalError;
85077
+ var range$4 = RangeError;
85078
+ var ref = ReferenceError;
85079
+ var syntax = SyntaxError;
85080
+ var type = TypeError;
85081
+ var uri = URIError;
85088
85082
  var origSymbol = typeof Symbol !== "undefined" && Symbol;
85089
- var hasSymbolSham = shams$1;
85090
- var hasSymbols$2 = function hasNativeSymbols() {
85083
+ var hasSymbolSham = shams$2;
85084
+ var hasSymbols$3 = function hasNativeSymbols() {
85091
85085
  if (typeof origSymbol !== "function") {
85092
85086
  return false;
85093
85087
  }
@@ -85105,44 +85099,70 @@ var hasSymbols$2 = function hasNativeSymbols() {
85105
85099
  var test = {
85106
85100
  foo: {}
85107
85101
  };
85108
- var $Object = Object;
85102
+ var $Object$1 = Object;
85109
85103
  var hasProto$1 = function hasProto() {
85110
- return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
85104
+ return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object$1);
85111
85105
  };
85112
85106
  var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
85113
- var slice$2 = Array.prototype.slice;
85114
85107
  var toStr$2 = Object.prototype.toString;
85108
+ var max$1 = Math.max;
85115
85109
  var funcType = "[object Function]";
85110
+ var concatty = function concatty2(a2, b) {
85111
+ var arr = [];
85112
+ for (var i2 = 0; i2 < a2.length; i2 += 1) {
85113
+ arr[i2] = a2[i2];
85114
+ }
85115
+ for (var j = 0; j < b.length; j += 1) {
85116
+ arr[j + a2.length] = b[j];
85117
+ }
85118
+ return arr;
85119
+ };
85120
+ var slicy = function slicy2(arrLike, offset) {
85121
+ var arr = [];
85122
+ for (var i2 = offset || 0, j = 0; i2 < arrLike.length; i2 += 1, j += 1) {
85123
+ arr[j] = arrLike[i2];
85124
+ }
85125
+ return arr;
85126
+ };
85127
+ var joiny = function(arr, joiner) {
85128
+ var str = "";
85129
+ for (var i2 = 0; i2 < arr.length; i2 += 1) {
85130
+ str += arr[i2];
85131
+ if (i2 + 1 < arr.length) {
85132
+ str += joiner;
85133
+ }
85134
+ }
85135
+ return str;
85136
+ };
85116
85137
  var implementation$7 = function bind2(that) {
85117
85138
  var target = this;
85118
- if (typeof target !== "function" || toStr$2.call(target) !== funcType) {
85139
+ if (typeof target !== "function" || toStr$2.apply(target) !== funcType) {
85119
85140
  throw new TypeError(ERROR_MESSAGE + target);
85120
85141
  }
85121
- var args = slice$2.call(arguments, 1);
85142
+ var args = slicy(arguments, 1);
85122
85143
  var bound;
85123
85144
  var binder = function() {
85124
85145
  if (this instanceof bound) {
85125
85146
  var result = target.apply(
85126
85147
  this,
85127
- args.concat(slice$2.call(arguments))
85148
+ concatty(args, arguments)
85128
85149
  );
85129
85150
  if (Object(result) === result) {
85130
85151
  return result;
85131
85152
  }
85132
85153
  return this;
85133
- } else {
85134
- return target.apply(
85135
- that,
85136
- args.concat(slice$2.call(arguments))
85137
- );
85138
85154
  }
85155
+ return target.apply(
85156
+ that,
85157
+ concatty(args, arguments)
85158
+ );
85139
85159
  };
85140
- var boundLength = Math.max(0, target.length - args.length);
85160
+ var boundLength = max$1(0, target.length - args.length);
85141
85161
  var boundArgs = [];
85142
85162
  for (var i2 = 0; i2 < boundLength; i2++) {
85143
- boundArgs.push("$" + i2);
85163
+ boundArgs[i2] = "$" + i2;
85144
85164
  }
85145
- bound = Function("binder", "return function (" + boundArgs.join(",") + "){ return binder.apply(this,arguments); }")(binder);
85165
+ bound = Function("binder", "return function (" + joiny(boundArgs, ",") + "){ return binder.apply(this,arguments); }")(binder);
85146
85166
  if (target.prototype) {
85147
85167
  var Empty = function Empty2() {
85148
85168
  };
@@ -85154,42 +85174,49 @@ var implementation$7 = function bind2(that) {
85154
85174
  };
85155
85175
  var implementation$6 = implementation$7;
85156
85176
  var functionBind = Function.prototype.bind || implementation$6;
85177
+ var call = Function.prototype.call;
85178
+ var $hasOwn = Object.prototype.hasOwnProperty;
85157
85179
  var bind$1 = functionBind;
85158
- var src = bind$1.call(Function.call, Object.prototype.hasOwnProperty);
85180
+ var hasown = bind$1.call(call, $hasOwn);
85159
85181
  var undefined$1;
85160
- var $SyntaxError = SyntaxError;
85182
+ var $Error = esErrors;
85183
+ var $EvalError = _eval;
85184
+ var $RangeError = range$4;
85185
+ var $ReferenceError = ref;
85186
+ var $SyntaxError$1 = syntax;
85187
+ var $TypeError$4 = type;
85188
+ var $URIError = uri;
85161
85189
  var $Function = Function;
85162
- var $TypeError = TypeError;
85163
85190
  var getEvalledConstructor = function(expressionSyntax) {
85164
85191
  try {
85165
85192
  return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
85166
85193
  } catch (e2) {
85167
85194
  }
85168
85195
  };
85169
- var $gOPD$1 = Object.getOwnPropertyDescriptor;
85170
- if ($gOPD$1) {
85196
+ var $gOPD$2 = Object.getOwnPropertyDescriptor;
85197
+ if ($gOPD$2) {
85171
85198
  try {
85172
- $gOPD$1({}, "");
85199
+ $gOPD$2({}, "");
85173
85200
  } catch (e2) {
85174
- $gOPD$1 = null;
85201
+ $gOPD$2 = null;
85175
85202
  }
85176
85203
  }
85177
85204
  var throwTypeError = function() {
85178
- throw new $TypeError();
85205
+ throw new $TypeError$4();
85179
85206
  };
85180
- var ThrowTypeError = $gOPD$1 ? function() {
85207
+ var ThrowTypeError = $gOPD$2 ? function() {
85181
85208
  try {
85182
85209
  arguments.callee;
85183
85210
  return throwTypeError;
85184
85211
  } catch (calleeThrows) {
85185
85212
  try {
85186
- return $gOPD$1(arguments, "callee").get;
85213
+ return $gOPD$2(arguments, "callee").get;
85187
85214
  } catch (gOPDthrows) {
85188
85215
  return throwTypeError;
85189
85216
  }
85190
85217
  }
85191
85218
  }() : throwTypeError;
85192
- var hasSymbols$1 = hasSymbols$2();
85219
+ var hasSymbols$2 = hasSymbols$3();
85193
85220
  var hasProto2 = hasProto$1();
85194
85221
  var getProto$1 = Object.getPrototypeOf || (hasProto2 ? function(x2) {
85195
85222
  return x2.__proto__;
@@ -85197,10 +85224,11 @@ var getProto$1 = Object.getPrototypeOf || (hasProto2 ? function(x2) {
85197
85224
  var needsEval = {};
85198
85225
  var TypedArray = typeof Uint8Array === "undefined" || !getProto$1 ? undefined$1 : getProto$1(Uint8Array);
85199
85226
  var INTRINSICS = {
85227
+ __proto__: null,
85200
85228
  "%AggregateError%": typeof AggregateError === "undefined" ? undefined$1 : AggregateError,
85201
85229
  "%Array%": Array,
85202
85230
  "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined$1 : ArrayBuffer,
85203
- "%ArrayIteratorPrototype%": hasSymbols$1 && getProto$1 ? getProto$1([][Symbol.iterator]()) : undefined$1,
85231
+ "%ArrayIteratorPrototype%": hasSymbols$2 && getProto$1 ? getProto$1([][Symbol.iterator]()) : undefined$1,
85204
85232
  "%AsyncFromSyncIteratorPrototype%": undefined$1,
85205
85233
  "%AsyncFunction%": needsEval,
85206
85234
  "%AsyncGenerator%": needsEval,
@@ -85217,10 +85245,10 @@ var INTRINSICS = {
85217
85245
  "%decodeURIComponent%": decodeURIComponent,
85218
85246
  "%encodeURI%": encodeURI,
85219
85247
  "%encodeURIComponent%": encodeURIComponent,
85220
- "%Error%": Error,
85248
+ "%Error%": $Error,
85221
85249
  "%eval%": eval,
85222
85250
  // eslint-disable-line no-eval
85223
- "%EvalError%": EvalError,
85251
+ "%EvalError%": $EvalError,
85224
85252
  "%Float32Array%": typeof Float32Array === "undefined" ? undefined$1 : Float32Array,
85225
85253
  "%Float64Array%": typeof Float64Array === "undefined" ? undefined$1 : Float64Array,
85226
85254
  "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined$1 : FinalizationRegistry,
@@ -85231,10 +85259,10 @@ var INTRINSICS = {
85231
85259
  "%Int32Array%": typeof Int32Array === "undefined" ? undefined$1 : Int32Array,
85232
85260
  "%isFinite%": isFinite,
85233
85261
  "%isNaN%": isNaN,
85234
- "%IteratorPrototype%": hasSymbols$1 && getProto$1 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$1,
85262
+ "%IteratorPrototype%": hasSymbols$2 && getProto$1 ? getProto$1(getProto$1([][Symbol.iterator]())) : undefined$1,
85235
85263
  "%JSON%": typeof JSON === "object" ? JSON : undefined$1,
85236
85264
  "%Map%": typeof Map === "undefined" ? undefined$1 : Map,
85237
- "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols$1 || !getProto$1 ? undefined$1 : getProto$1((/* @__PURE__ */ new Map())[Symbol.iterator]()),
85265
+ "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols$2 || !getProto$1 ? undefined$1 : getProto$1((/* @__PURE__ */ new Map())[Symbol.iterator]()),
85238
85266
  "%Math%": Math,
85239
85267
  "%Number%": Number,
85240
85268
  "%Object%": Object,
@@ -85242,25 +85270,25 @@ var INTRINSICS = {
85242
85270
  "%parseInt%": parseInt,
85243
85271
  "%Promise%": typeof Promise === "undefined" ? undefined$1 : Promise,
85244
85272
  "%Proxy%": typeof Proxy === "undefined" ? undefined$1 : Proxy,
85245
- "%RangeError%": RangeError,
85246
- "%ReferenceError%": ReferenceError,
85273
+ "%RangeError%": $RangeError,
85274
+ "%ReferenceError%": $ReferenceError,
85247
85275
  "%Reflect%": typeof Reflect === "undefined" ? undefined$1 : Reflect,
85248
85276
  "%RegExp%": RegExp,
85249
85277
  "%Set%": typeof Set === "undefined" ? undefined$1 : Set,
85250
- "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols$1 || !getProto$1 ? undefined$1 : getProto$1((/* @__PURE__ */ new Set())[Symbol.iterator]()),
85278
+ "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols$2 || !getProto$1 ? undefined$1 : getProto$1((/* @__PURE__ */ new Set())[Symbol.iterator]()),
85251
85279
  "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined$1 : SharedArrayBuffer,
85252
85280
  "%String%": String,
85253
- "%StringIteratorPrototype%": hasSymbols$1 && getProto$1 ? getProto$1(""[Symbol.iterator]()) : undefined$1,
85254
- "%Symbol%": hasSymbols$1 ? Symbol : undefined$1,
85255
- "%SyntaxError%": $SyntaxError,
85281
+ "%StringIteratorPrototype%": hasSymbols$2 && getProto$1 ? getProto$1(""[Symbol.iterator]()) : undefined$1,
85282
+ "%Symbol%": hasSymbols$2 ? Symbol : undefined$1,
85283
+ "%SyntaxError%": $SyntaxError$1,
85256
85284
  "%ThrowTypeError%": ThrowTypeError,
85257
85285
  "%TypedArray%": TypedArray,
85258
- "%TypeError%": $TypeError,
85286
+ "%TypeError%": $TypeError$4,
85259
85287
  "%Uint8Array%": typeof Uint8Array === "undefined" ? undefined$1 : Uint8Array,
85260
85288
  "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined$1 : Uint8ClampedArray,
85261
85289
  "%Uint16Array%": typeof Uint16Array === "undefined" ? undefined$1 : Uint16Array,
85262
85290
  "%Uint32Array%": typeof Uint32Array === "undefined" ? undefined$1 : Uint32Array,
85263
- "%URIError%": URIError,
85291
+ "%URIError%": $URIError,
85264
85292
  "%WeakMap%": typeof WeakMap === "undefined" ? undefined$1 : WeakMap,
85265
85293
  "%WeakRef%": typeof WeakRef === "undefined" ? undefined$1 : WeakRef,
85266
85294
  "%WeakSet%": typeof WeakSet === "undefined" ? undefined$1 : WeakSet
@@ -85296,6 +85324,7 @@ var doEval = function doEval2(name2) {
85296
85324
  return value;
85297
85325
  };
85298
85326
  var LEGACY_ALIASES = {
85327
+ __proto__: null,
85299
85328
  "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
85300
85329
  "%ArrayPrototype%": ["Array", "prototype"],
85301
85330
  "%ArrayProto_entries%": ["Array", "prototype", "entries"],
@@ -85349,7 +85378,7 @@ var LEGACY_ALIASES = {
85349
85378
  "%WeakSetPrototype%": ["WeakSet", "prototype"]
85350
85379
  };
85351
85380
  var bind3 = functionBind;
85352
- var hasOwn = src;
85381
+ var hasOwn = hasown;
85353
85382
  var $concat = bind3.call(Function.call, Array.prototype.concat);
85354
85383
  var $spliceApply = bind3.call(Function.apply, Array.prototype.splice);
85355
85384
  var $replace = bind3.call(Function.call, String.prototype.replace);
@@ -85361,9 +85390,9 @@ var stringToPath = function stringToPath2(string) {
85361
85390
  var first = $strSlice(string, 0, 1);
85362
85391
  var last = $strSlice(string, -1);
85363
85392
  if (first === "%" && last !== "%") {
85364
- throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
85393
+ throw new $SyntaxError$1("invalid intrinsic syntax, expected closing `%`");
85365
85394
  } else if (last === "%" && first !== "%") {
85366
- throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
85395
+ throw new $SyntaxError$1("invalid intrinsic syntax, expected opening `%`");
85367
85396
  }
85368
85397
  var result = [];
85369
85398
  $replace(string, rePropName, function(match, number2, quote, subString) {
@@ -85384,7 +85413,7 @@ var getBaseIntrinsic = function getBaseIntrinsic2(name2, allowMissing) {
85384
85413
  value = doEval(intrinsicName);
85385
85414
  }
85386
85415
  if (typeof value === "undefined" && !allowMissing) {
85387
- throw new $TypeError("intrinsic " + name2 + " exists, but is not available. Please file an issue!");
85416
+ throw new $TypeError$4("intrinsic " + name2 + " exists, but is not available. Please file an issue!");
85388
85417
  }
85389
85418
  return {
85390
85419
  alias,
@@ -85392,17 +85421,17 @@ var getBaseIntrinsic = function getBaseIntrinsic2(name2, allowMissing) {
85392
85421
  value
85393
85422
  };
85394
85423
  }
85395
- throw new $SyntaxError("intrinsic " + name2 + " does not exist!");
85424
+ throw new $SyntaxError$1("intrinsic " + name2 + " does not exist!");
85396
85425
  };
85397
85426
  var getIntrinsic = function GetIntrinsic(name2, allowMissing) {
85398
85427
  if (typeof name2 !== "string" || name2.length === 0) {
85399
- throw new $TypeError("intrinsic name must be a non-empty string");
85428
+ throw new $TypeError$4("intrinsic name must be a non-empty string");
85400
85429
  }
85401
85430
  if (arguments.length > 1 && typeof allowMissing !== "boolean") {
85402
- throw new $TypeError('"allowMissing" argument must be a boolean');
85431
+ throw new $TypeError$4('"allowMissing" argument must be a boolean');
85403
85432
  }
85404
85433
  if ($exec$1(/^%?[^%]*%?$/, name2) === null) {
85405
- throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
85434
+ throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
85406
85435
  }
85407
85436
  var parts = stringToPath(name2);
85408
85437
  var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
@@ -85420,7 +85449,7 @@ var getIntrinsic = function GetIntrinsic(name2, allowMissing) {
85420
85449
  var first = $strSlice(part, 0, 1);
85421
85450
  var last = $strSlice(part, -1);
85422
85451
  if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {
85423
- throw new $SyntaxError("property names with quotes must have matching quotes");
85452
+ throw new $SyntaxError$1("property names with quotes must have matching quotes");
85424
85453
  }
85425
85454
  if (part === "constructor" || !isOwn) {
85426
85455
  skipFurtherCaching = true;
@@ -85432,12 +85461,12 @@ var getIntrinsic = function GetIntrinsic(name2, allowMissing) {
85432
85461
  } else if (value != null) {
85433
85462
  if (!(part in value)) {
85434
85463
  if (!allowMissing) {
85435
- throw new $TypeError("base intrinsic for " + name2 + " exists, but the property is not available.");
85464
+ throw new $TypeError$4("base intrinsic for " + name2 + " exists, but the property is not available.");
85436
85465
  }
85437
85466
  return void 0;
85438
85467
  }
85439
- if ($gOPD$1 && i2 + 1 >= parts.length) {
85440
- var desc = $gOPD$1(value, part);
85468
+ if ($gOPD$2 && i2 + 1 >= parts.length) {
85469
+ var desc = $gOPD$2(value, part);
85441
85470
  isOwn = !!desc;
85442
85471
  if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
85443
85472
  value = desc.get;
@@ -85456,35 +85485,148 @@ var getIntrinsic = function GetIntrinsic(name2, allowMissing) {
85456
85485
  return value;
85457
85486
  };
85458
85487
  var callBind$3 = { exports: {} };
85488
+ var GetIntrinsic$4 = getIntrinsic;
85489
+ var $defineProperty$3 = GetIntrinsic$4("%Object.defineProperty%", true) || false;
85490
+ if ($defineProperty$3) {
85491
+ try {
85492
+ $defineProperty$3({}, "a", { value: 1 });
85493
+ } catch (e2) {
85494
+ $defineProperty$3 = false;
85495
+ }
85496
+ }
85497
+ var esDefineProperty = $defineProperty$3;
85498
+ var GetIntrinsic$3 = getIntrinsic;
85499
+ var $gOPD$1 = GetIntrinsic$3("%Object.getOwnPropertyDescriptor%", true);
85500
+ if ($gOPD$1) {
85501
+ try {
85502
+ $gOPD$1([], "length");
85503
+ } catch (e2) {
85504
+ $gOPD$1 = null;
85505
+ }
85506
+ }
85507
+ var gopd$1 = $gOPD$1;
85508
+ var $defineProperty$2 = esDefineProperty;
85509
+ var $SyntaxError = syntax;
85510
+ var $TypeError$3 = type;
85511
+ var gopd = gopd$1;
85512
+ var defineDataProperty$1 = function defineDataProperty(obj, property, value) {
85513
+ if (!obj || typeof obj !== "object" && typeof obj !== "function") {
85514
+ throw new $TypeError$3("`obj` must be an object or a function`");
85515
+ }
85516
+ if (typeof property !== "string" && typeof property !== "symbol") {
85517
+ throw new $TypeError$3("`property` must be a string or a symbol`");
85518
+ }
85519
+ if (arguments.length > 3 && typeof arguments[3] !== "boolean" && arguments[3] !== null) {
85520
+ throw new $TypeError$3("`nonEnumerable`, if provided, must be a boolean or null");
85521
+ }
85522
+ if (arguments.length > 4 && typeof arguments[4] !== "boolean" && arguments[4] !== null) {
85523
+ throw new $TypeError$3("`nonWritable`, if provided, must be a boolean or null");
85524
+ }
85525
+ if (arguments.length > 5 && typeof arguments[5] !== "boolean" && arguments[5] !== null) {
85526
+ throw new $TypeError$3("`nonConfigurable`, if provided, must be a boolean or null");
85527
+ }
85528
+ if (arguments.length > 6 && typeof arguments[6] !== "boolean") {
85529
+ throw new $TypeError$3("`loose`, if provided, must be a boolean");
85530
+ }
85531
+ var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
85532
+ var nonWritable = arguments.length > 4 ? arguments[4] : null;
85533
+ var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
85534
+ var loose = arguments.length > 6 ? arguments[6] : false;
85535
+ var desc = !!gopd && gopd(obj, property);
85536
+ if ($defineProperty$2) {
85537
+ $defineProperty$2(obj, property, {
85538
+ configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
85539
+ enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
85540
+ value,
85541
+ writable: nonWritable === null && desc ? desc.writable : !nonWritable
85542
+ });
85543
+ } else if (loose || !nonEnumerable && !nonWritable && !nonConfigurable) {
85544
+ obj[property] = value;
85545
+ } else {
85546
+ throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
85547
+ }
85548
+ };
85549
+ var $defineProperty$1 = esDefineProperty;
85550
+ var hasPropertyDescriptors$1 = function hasPropertyDescriptors() {
85551
+ return !!$defineProperty$1;
85552
+ };
85553
+ hasPropertyDescriptors$1.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
85554
+ if (!$defineProperty$1) {
85555
+ return null;
85556
+ }
85557
+ try {
85558
+ return $defineProperty$1([], "length", { value: 1 }).length !== 1;
85559
+ } catch (e2) {
85560
+ return true;
85561
+ }
85562
+ };
85563
+ var hasPropertyDescriptors_1$1 = hasPropertyDescriptors$1;
85564
+ var GetIntrinsic$2 = getIntrinsic;
85565
+ var define$4 = defineDataProperty$1;
85566
+ var hasDescriptors$1 = hasPropertyDescriptors_1$1();
85567
+ var gOPD$3 = gopd$1;
85568
+ var $TypeError$2 = type;
85569
+ var $floor = GetIntrinsic$2("%Math.floor%");
85570
+ var setFunctionLength = function setFunctionLength2(fn, length2) {
85571
+ if (typeof fn !== "function") {
85572
+ throw new $TypeError$2("`fn` is not a function");
85573
+ }
85574
+ if (typeof length2 !== "number" || length2 < 0 || length2 > 4294967295 || $floor(length2) !== length2) {
85575
+ throw new $TypeError$2("`length` must be a positive 32-bit integer");
85576
+ }
85577
+ var loose = arguments.length > 2 && !!arguments[2];
85578
+ var functionLengthIsConfigurable = true;
85579
+ var functionLengthIsWritable = true;
85580
+ if ("length" in fn && gOPD$3) {
85581
+ var desc = gOPD$3(fn, "length");
85582
+ if (desc && !desc.configurable) {
85583
+ functionLengthIsConfigurable = false;
85584
+ }
85585
+ if (desc && !desc.writable) {
85586
+ functionLengthIsWritable = false;
85587
+ }
85588
+ }
85589
+ if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
85590
+ if (hasDescriptors$1) {
85591
+ define$4(
85592
+ /** @type {Parameters<define>[0]} */
85593
+ fn,
85594
+ "length",
85595
+ length2,
85596
+ true,
85597
+ true
85598
+ );
85599
+ } else {
85600
+ define$4(
85601
+ /** @type {Parameters<define>[0]} */
85602
+ fn,
85603
+ "length",
85604
+ length2
85605
+ );
85606
+ }
85607
+ }
85608
+ return fn;
85609
+ };
85459
85610
  (function(module2) {
85460
85611
  var bind4 = functionBind;
85461
85612
  var GetIntrinsic3 = getIntrinsic;
85613
+ var setFunctionLength$1 = setFunctionLength;
85614
+ var $TypeError2 = type;
85462
85615
  var $apply = GetIntrinsic3("%Function.prototype.apply%");
85463
85616
  var $call = GetIntrinsic3("%Function.prototype.call%");
85464
85617
  var $reflectApply = GetIntrinsic3("%Reflect.apply%", true) || bind4.call($call, $apply);
85465
- var $gOPD2 = GetIntrinsic3("%Object.getOwnPropertyDescriptor%", true);
85466
- var $defineProperty2 = GetIntrinsic3("%Object.defineProperty%", true);
85618
+ var $defineProperty2 = esDefineProperty;
85467
85619
  var $max = GetIntrinsic3("%Math.max%");
85468
- if ($defineProperty2) {
85469
- try {
85470
- $defineProperty2({}, "a", { value: 1 });
85471
- } catch (e2) {
85472
- $defineProperty2 = null;
85473
- }
85474
- }
85475
85620
  module2.exports = function callBind2(originalFunction) {
85476
- var func = $reflectApply(bind4, $call, arguments);
85477
- if ($gOPD2 && $defineProperty2) {
85478
- var desc = $gOPD2(func, "length");
85479
- if (desc.configurable) {
85480
- $defineProperty2(
85481
- func,
85482
- "length",
85483
- { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
85484
- );
85485
- }
85621
+ if (typeof originalFunction !== "function") {
85622
+ throw new $TypeError2("a function is required");
85486
85623
  }
85487
- return func;
85624
+ var func = $reflectApply(bind4, $call, arguments);
85625
+ return setFunctionLength$1(
85626
+ func,
85627
+ 1 + $max(0, originalFunction.length - (arguments.length - 1)),
85628
+ true
85629
+ );
85488
85630
  };
85489
85631
  var applyBind = function applyBind2() {
85490
85632
  return $reflectApply(bind4, $apply, arguments);
@@ -85506,7 +85648,7 @@ var callBound$2 = function callBoundIntrinsic(name2, allowMissing) {
85506
85648
  }
85507
85649
  return intrinsic;
85508
85650
  };
85509
- var hasToStringTag$2 = shams();
85651
+ var hasToStringTag$2 = shams$1();
85510
85652
  var callBound$1 = callBound$2;
85511
85653
  var $toString$1 = callBound$1("Object.prototype.toString");
85512
85654
  var isStandardArguments = function isArguments2(value) {
@@ -85528,7 +85670,7 @@ isStandardArguments.isLegacyArguments = isLegacyArguments;
85528
85670
  var isArguments$1 = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
85529
85671
  var GetIntrinsic2 = getIntrinsic;
85530
85672
  var $defineProperty = GetIntrinsic2("%Object.defineProperty%", true);
85531
- var hasPropertyDescriptors$1 = function hasPropertyDescriptors() {
85673
+ var hasPropertyDescriptors2 = function hasPropertyDescriptors3() {
85532
85674
  if ($defineProperty) {
85533
85675
  try {
85534
85676
  $defineProperty({}, "a", { value: 1 });
@@ -85539,8 +85681,8 @@ var hasPropertyDescriptors$1 = function hasPropertyDescriptors() {
85539
85681
  }
85540
85682
  return false;
85541
85683
  };
85542
- hasPropertyDescriptors$1.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
85543
- if (!hasPropertyDescriptors$1()) {
85684
+ hasPropertyDescriptors2.hasArrayLengthDefineBug = function hasArrayLengthDefineBug2() {
85685
+ if (!hasPropertyDescriptors2()) {
85544
85686
  return null;
85545
85687
  }
85546
85688
  try {
@@ -85549,17 +85691,16 @@ hasPropertyDescriptors$1.hasArrayLengthDefineBug = function hasArrayLengthDefine
85549
85691
  return true;
85550
85692
  }
85551
85693
  };
85552
- var hasPropertyDescriptors_1 = hasPropertyDescriptors$1;
85694
+ var hasPropertyDescriptors_1 = hasPropertyDescriptors2;
85553
85695
  var keys2 = objectKeys$1;
85554
- var hasSymbols2 = typeof Symbol === "function" && typeof Symbol("foo") === "symbol";
85696
+ var hasSymbols$1 = typeof Symbol === "function" && typeof Symbol("foo") === "symbol";
85555
85697
  var toStr$1 = Object.prototype.toString;
85556
85698
  var concat = Array.prototype.concat;
85557
- var origDefineProperty = Object.defineProperty;
85699
+ var defineDataProperty2 = defineDataProperty$1;
85558
85700
  var isFunction = function(fn) {
85559
85701
  return typeof fn === "function" && toStr$1.call(fn) === "[object Function]";
85560
85702
  };
85561
- var hasPropertyDescriptors2 = hasPropertyDescriptors_1();
85562
- var supportsDescriptors$2 = origDefineProperty && hasPropertyDescriptors2;
85703
+ var supportsDescriptors$2 = hasPropertyDescriptors_1();
85563
85704
  var defineProperty$1 = function(object2, name2, value, predicate) {
85564
85705
  if (name2 in object2) {
85565
85706
  if (predicate === true) {
@@ -85571,20 +85712,15 @@ var defineProperty$1 = function(object2, name2, value, predicate) {
85571
85712
  }
85572
85713
  }
85573
85714
  if (supportsDescriptors$2) {
85574
- origDefineProperty(object2, name2, {
85575
- configurable: true,
85576
- enumerable: false,
85577
- value,
85578
- writable: true
85579
- });
85715
+ defineDataProperty2(object2, name2, value, true);
85580
85716
  } else {
85581
- object2[name2] = value;
85717
+ defineDataProperty2(object2, name2, value);
85582
85718
  }
85583
85719
  };
85584
85720
  var defineProperties = function(object2, map2) {
85585
85721
  var predicates = arguments.length > 2 ? arguments[2] : {};
85586
85722
  var props = keys2(map2);
85587
- if (hasSymbols2) {
85723
+ if (hasSymbols$1) {
85588
85724
  props = concat.call(props, Object.getOwnPropertySymbols(map2));
85589
85725
  }
85590
85726
  for (var i2 = 0; i2 < props.length; i2 += 1) {
@@ -85613,28 +85749,32 @@ var polyfill$2 = function getPolyfill() {
85613
85749
  return typeof Object.is === "function" ? Object.is : implementation$4;
85614
85750
  };
85615
85751
  var getPolyfill$3 = polyfill$2;
85616
- var define$2 = defineProperties_1;
85752
+ var define$3 = defineProperties_1;
85617
85753
  var shim$3 = function shimObjectIs() {
85618
85754
  var polyfill2 = getPolyfill$3();
85619
- define$2(Object, { is: polyfill2 }, {
85755
+ define$3(Object, { is: polyfill2 }, {
85620
85756
  is: function testObjectIs() {
85621
85757
  return Object.is !== polyfill2;
85622
85758
  }
85623
85759
  });
85624
85760
  return polyfill2;
85625
85761
  };
85626
- var define$1 = defineProperties_1;
85762
+ var define$2 = defineProperties_1;
85627
85763
  var callBind$1 = callBindExports;
85628
85764
  var implementation$3 = implementation$5;
85629
85765
  var getPolyfill$2 = polyfill$2;
85630
85766
  var shim$2 = shim$3;
85631
85767
  var polyfill$1 = callBind$1(getPolyfill$2(), Object);
85632
- define$1(polyfill$1, {
85768
+ define$2(polyfill$1, {
85633
85769
  getPolyfill: getPolyfill$2,
85634
85770
  implementation: implementation$3,
85635
85771
  shim: shim$2
85636
85772
  });
85637
85773
  var objectIs = polyfill$1;
85774
+ var hasSymbols2 = shams$2;
85775
+ var shams = function hasToStringTagShams2() {
85776
+ return hasSymbols2() && !!Symbol.toStringTag;
85777
+ };
85638
85778
  var callBound = callBound$2;
85639
85779
  var hasToStringTag$1 = shams();
85640
85780
  var has;
@@ -85679,7 +85819,6 @@ var isRegex$1 = hasToStringTag$1 ? function isRegex(value) {
85679
85819
  }
85680
85820
  return $toString(value) === regexClass;
85681
85821
  };
85682
- var implementation$2 = { exports: {} };
85683
85822
  var functionsHaveNames = function functionsHaveNames2() {
85684
85823
  return typeof function f2() {
85685
85824
  }.name === "string";
@@ -85706,47 +85845,71 @@ functionsHaveNames.boundFunctionsHaveNames = function boundFunctionsHaveNames()
85706
85845
  }.bind().name !== "";
85707
85846
  };
85708
85847
  var functionsHaveNames_1 = functionsHaveNames;
85709
- (function(module2) {
85710
- var functionsHaveConfigurableNames2 = functionsHaveNames_1.functionsHaveConfigurableNames();
85711
- var $Object2 = Object;
85712
- var $TypeError2 = TypeError;
85713
- module2.exports = function flags2() {
85714
- if (this != null && this !== $Object2(this)) {
85715
- throw new $TypeError2("RegExp.prototype.flags getter called on non-object");
85716
- }
85717
- var result = "";
85718
- if (this.hasIndices) {
85719
- result += "d";
85720
- }
85721
- if (this.global) {
85722
- result += "g";
85723
- }
85724
- if (this.ignoreCase) {
85725
- result += "i";
85726
- }
85727
- if (this.multiline) {
85728
- result += "m";
85729
- }
85730
- if (this.dotAll) {
85731
- result += "s";
85732
- }
85733
- if (this.unicode) {
85734
- result += "u";
85735
- }
85736
- if (this.unicodeSets) {
85737
- result += "v";
85738
- }
85739
- if (this.sticky) {
85740
- result += "y";
85848
+ var define$1 = defineDataProperty$1;
85849
+ var hasDescriptors = hasPropertyDescriptors_1$1();
85850
+ var functionsHaveConfigurableNames2 = functionsHaveNames_1.functionsHaveConfigurableNames();
85851
+ var $TypeError$1 = type;
85852
+ var setFunctionName$1 = function setFunctionName(fn, name2) {
85853
+ if (typeof fn !== "function") {
85854
+ throw new $TypeError$1("`fn` is not a function");
85855
+ }
85856
+ var loose = arguments.length > 2 && !!arguments[2];
85857
+ if (!loose || functionsHaveConfigurableNames2) {
85858
+ if (hasDescriptors) {
85859
+ define$1(
85860
+ /** @type {Parameters<define>[0]} */
85861
+ fn,
85862
+ "name",
85863
+ name2,
85864
+ true,
85865
+ true
85866
+ );
85867
+ } else {
85868
+ define$1(
85869
+ /** @type {Parameters<define>[0]} */
85870
+ fn,
85871
+ "name",
85872
+ name2
85873
+ );
85741
85874
  }
85742
- return result;
85743
- };
85744
- if (functionsHaveConfigurableNames2 && Object.defineProperty) {
85745
- Object.defineProperty(module2.exports, "name", { value: "get flags" });
85746
85875
  }
85747
- })(implementation$2);
85748
- var implementationExports = implementation$2.exports;
85749
- var implementation$1 = implementationExports;
85876
+ return fn;
85877
+ };
85878
+ var setFunctionName2 = setFunctionName$1;
85879
+ var $TypeError = type;
85880
+ var $Object = Object;
85881
+ var implementation$2 = setFunctionName2(function flags() {
85882
+ if (this == null || this !== $Object(this)) {
85883
+ throw new $TypeError("RegExp.prototype.flags getter called on non-object");
85884
+ }
85885
+ var result = "";
85886
+ if (this.hasIndices) {
85887
+ result += "d";
85888
+ }
85889
+ if (this.global) {
85890
+ result += "g";
85891
+ }
85892
+ if (this.ignoreCase) {
85893
+ result += "i";
85894
+ }
85895
+ if (this.multiline) {
85896
+ result += "m";
85897
+ }
85898
+ if (this.dotAll) {
85899
+ result += "s";
85900
+ }
85901
+ if (this.unicode) {
85902
+ result += "u";
85903
+ }
85904
+ if (this.unicodeSets) {
85905
+ result += "v";
85906
+ }
85907
+ if (this.sticky) {
85908
+ result += "y";
85909
+ }
85910
+ return result;
85911
+ }, "get flags", true);
85912
+ var implementation$1 = implementation$2;
85750
85913
  var supportsDescriptors$1 = defineProperties_1.supportsDescriptors;
85751
85914
  var $gOPD = Object.getOwnPropertyDescriptor;
85752
85915
  var polyfill = function getPolyfill2() {
@@ -85797,7 +85960,7 @@ var shim$1 = function shimFlags() {
85797
85960
  };
85798
85961
  var define = defineProperties_1;
85799
85962
  var callBind = callBindExports;
85800
- var implementation = implementationExports;
85963
+ var implementation = implementation$2;
85801
85964
  var getPolyfill3 = polyfill;
85802
85965
  var shim = shim$1;
85803
85966
  var flagsBound = callBind(getPolyfill3());
@@ -85818,7 +85981,7 @@ var tryDateObject = function tryDateGetDayCall(value) {
85818
85981
  };
85819
85982
  var toStr = Object.prototype.toString;
85820
85983
  var dateClass = "[object Date]";
85821
- var hasToStringTag = shams();
85984
+ var hasToStringTag = shams$1();
85822
85985
  var isDateObject = function isDateObject2(value) {
85823
85986
  if (typeof value !== "object" || value === null) {
85824
85987
  return false;
@@ -85829,7 +85992,7 @@ var objectKeys = objectKeys$1;
85829
85992
  var isArguments4 = isArguments$1;
85830
85993
  var is2 = objectIs;
85831
85994
  var isRegex3 = isRegex$1;
85832
- var flags = regexp_prototype_flags;
85995
+ var flags2 = regexp_prototype_flags;
85833
85996
  var isDate = isDateObject;
85834
85997
  var getTime = Date.prototype.getTime;
85835
85998
  function deepEqual$1(actual, expected, options) {
@@ -85877,7 +86040,7 @@ function objEquiv(a2, b, opts) {
85877
86040
  return false;
85878
86041
  }
85879
86042
  if (aIsRegex || bIsRegex) {
85880
- return a2.source === b.source && flags(a2) === flags(b);
86043
+ return a2.source === b.source && flags2(a2) === flags2(b);
85881
86044
  }
85882
86045
  if (isDate(a2) && isDate(b)) {
85883
86046
  return getTime.call(a2) === getTime.call(b);
@@ -100736,8 +100899,8 @@ var polygonClipping_umd = { exports: {} };
100736
100899
  }
100737
100900
  _createClass2(Operation2, [{
100738
100901
  key: "run",
100739
- value: function run(type, geom, moreGeoms) {
100740
- operation.type = type;
100902
+ value: function run(type2, geom, moreGeoms) {
100903
+ operation.type = type2;
100741
100904
  rounder.reset();
100742
100905
  var multipolys = [new MultiPolyIn(geom, true)];
100743
100906
  for (var i2 = 0, iMax = moreGeoms.length; i2 < iMax; i2++) {
@@ -101483,11 +101646,11 @@ function _getMaxListeners(that) {
101483
101646
  EventEmitter.prototype.getMaxListeners = function getMaxListeners() {
101484
101647
  return _getMaxListeners(this);
101485
101648
  };
101486
- EventEmitter.prototype.emit = function emit(type) {
101649
+ EventEmitter.prototype.emit = function emit(type2) {
101487
101650
  var args = [];
101488
101651
  for (var i2 = 1; i2 < arguments.length; i2++)
101489
101652
  args.push(arguments[i2]);
101490
- var doError = type === "error";
101653
+ var doError = type2 === "error";
101491
101654
  var events2 = this._events;
101492
101655
  if (events2 !== void 0)
101493
101656
  doError = doError && events2.error === void 0;
@@ -101504,7 +101667,7 @@ EventEmitter.prototype.emit = function emit(type) {
101504
101667
  err2.context = er;
101505
101668
  throw err2;
101506
101669
  }
101507
- var handler = events2[type];
101670
+ var handler = events2[type2];
101508
101671
  if (handler === void 0)
101509
101672
  return false;
101510
101673
  if (typeof handler === "function") {
@@ -101517,7 +101680,7 @@ EventEmitter.prototype.emit = function emit(type) {
101517
101680
  }
101518
101681
  return true;
101519
101682
  };
101520
- function _addListener(target, type, listener, prepend) {
101683
+ function _addListener(target, type2, listener, prepend) {
101521
101684
  var m;
101522
101685
  var events2;
101523
101686
  var existing;
@@ -101530,19 +101693,19 @@ function _addListener(target, type, listener, prepend) {
101530
101693
  if (events2.newListener !== void 0) {
101531
101694
  target.emit(
101532
101695
  "newListener",
101533
- type,
101696
+ type2,
101534
101697
  listener.listener ? listener.listener : listener
101535
101698
  );
101536
101699
  events2 = target._events;
101537
101700
  }
101538
- existing = events2[type];
101701
+ existing = events2[type2];
101539
101702
  }
101540
101703
  if (existing === void 0) {
101541
- existing = events2[type] = listener;
101704
+ existing = events2[type2] = listener;
101542
101705
  ++target._eventsCount;
101543
101706
  } else {
101544
101707
  if (typeof existing === "function") {
101545
- existing = events2[type] = prepend ? [listener, existing] : [existing, listener];
101708
+ existing = events2[type2] = prepend ? [listener, existing] : [existing, listener];
101546
101709
  } else if (prepend) {
101547
101710
  existing.unshift(listener);
101548
101711
  } else {
@@ -101551,22 +101714,22 @@ function _addListener(target, type, listener, prepend) {
101551
101714
  m = _getMaxListeners(target);
101552
101715
  if (m > 0 && existing.length > m && !existing.warned) {
101553
101716
  existing.warned = true;
101554
- var w2 = new Error("Possible EventEmitter memory leak detected. " + existing.length + " " + String(type) + " listeners added. Use emitter.setMaxListeners() to increase limit");
101717
+ var w2 = new Error("Possible EventEmitter memory leak detected. " + existing.length + " " + String(type2) + " listeners added. Use emitter.setMaxListeners() to increase limit");
101555
101718
  w2.name = "MaxListenersExceededWarning";
101556
101719
  w2.emitter = target;
101557
- w2.type = type;
101720
+ w2.type = type2;
101558
101721
  w2.count = existing.length;
101559
101722
  ProcessEmitWarning(w2);
101560
101723
  }
101561
101724
  }
101562
101725
  return target;
101563
101726
  }
101564
- EventEmitter.prototype.addListener = function addListener(type, listener) {
101565
- return _addListener(this, type, listener, false);
101727
+ EventEmitter.prototype.addListener = function addListener(type2, listener) {
101728
+ return _addListener(this, type2, listener, false);
101566
101729
  };
101567
101730
  EventEmitter.prototype.on = EventEmitter.prototype.addListener;
101568
- EventEmitter.prototype.prependListener = function prependListener(type, listener) {
101569
- return _addListener(this, type, listener, true);
101731
+ EventEmitter.prototype.prependListener = function prependListener(type2, listener) {
101732
+ return _addListener(this, type2, listener, true);
101570
101733
  };
101571
101734
  function onceWrapper() {
101572
101735
  if (!this.fired) {
@@ -101577,39 +101740,39 @@ function onceWrapper() {
101577
101740
  return this.listener.apply(this.target, arguments);
101578
101741
  }
101579
101742
  }
101580
- function _onceWrap(target, type, listener) {
101581
- var state = { fired: false, wrapFn: void 0, target, type, listener };
101743
+ function _onceWrap(target, type2, listener) {
101744
+ var state = { fired: false, wrapFn: void 0, target, type: type2, listener };
101582
101745
  var wrapped = onceWrapper.bind(state);
101583
101746
  wrapped.listener = listener;
101584
101747
  state.wrapFn = wrapped;
101585
101748
  return wrapped;
101586
101749
  }
101587
- EventEmitter.prototype.once = function once(type, listener) {
101750
+ EventEmitter.prototype.once = function once(type2, listener) {
101588
101751
  checkListener(listener);
101589
- this.on(type, _onceWrap(this, type, listener));
101752
+ this.on(type2, _onceWrap(this, type2, listener));
101590
101753
  return this;
101591
101754
  };
101592
- EventEmitter.prototype.prependOnceListener = function prependOnceListener(type, listener) {
101755
+ EventEmitter.prototype.prependOnceListener = function prependOnceListener(type2, listener) {
101593
101756
  checkListener(listener);
101594
- this.prependListener(type, _onceWrap(this, type, listener));
101757
+ this.prependListener(type2, _onceWrap(this, type2, listener));
101595
101758
  return this;
101596
101759
  };
101597
- EventEmitter.prototype.removeListener = function removeListener(type, listener) {
101760
+ EventEmitter.prototype.removeListener = function removeListener(type2, listener) {
101598
101761
  var list, events2, position, i2, originalListener;
101599
101762
  checkListener(listener);
101600
101763
  events2 = this._events;
101601
101764
  if (events2 === void 0)
101602
101765
  return this;
101603
- list = events2[type];
101766
+ list = events2[type2];
101604
101767
  if (list === void 0)
101605
101768
  return this;
101606
101769
  if (list === listener || list.listener === listener) {
101607
101770
  if (--this._eventsCount === 0)
101608
101771
  this._events = /* @__PURE__ */ Object.create(null);
101609
101772
  else {
101610
- delete events2[type];
101773
+ delete events2[type2];
101611
101774
  if (events2.removeListener)
101612
- this.emit("removeListener", type, list.listener || listener);
101775
+ this.emit("removeListener", type2, list.listener || listener);
101613
101776
  }
101614
101777
  } else if (typeof list !== "function") {
101615
101778
  position = -1;
@@ -101628,14 +101791,14 @@ EventEmitter.prototype.removeListener = function removeListener(type, listener)
101628
101791
  spliceOne(list, position);
101629
101792
  }
101630
101793
  if (list.length === 1)
101631
- events2[type] = list[0];
101794
+ events2[type2] = list[0];
101632
101795
  if (events2.removeListener !== void 0)
101633
- this.emit("removeListener", type, originalListener || listener);
101796
+ this.emit("removeListener", type2, originalListener || listener);
101634
101797
  }
101635
101798
  return this;
101636
101799
  };
101637
101800
  EventEmitter.prototype.off = EventEmitter.prototype.removeListener;
101638
- EventEmitter.prototype.removeAllListeners = function removeAllListeners(type) {
101801
+ EventEmitter.prototype.removeAllListeners = function removeAllListeners(type2) {
101639
101802
  var listeners2, events2, i2;
101640
101803
  events2 = this._events;
101641
101804
  if (events2 === void 0)
@@ -101644,11 +101807,11 @@ EventEmitter.prototype.removeAllListeners = function removeAllListeners(type) {
101644
101807
  if (arguments.length === 0) {
101645
101808
  this._events = /* @__PURE__ */ Object.create(null);
101646
101809
  this._eventsCount = 0;
101647
- } else if (events2[type] !== void 0) {
101810
+ } else if (events2[type2] !== void 0) {
101648
101811
  if (--this._eventsCount === 0)
101649
101812
  this._events = /* @__PURE__ */ Object.create(null);
101650
101813
  else
101651
- delete events2[type];
101814
+ delete events2[type2];
101652
101815
  }
101653
101816
  return this;
101654
101817
  }
@@ -101666,45 +101829,45 @@ EventEmitter.prototype.removeAllListeners = function removeAllListeners(type) {
101666
101829
  this._eventsCount = 0;
101667
101830
  return this;
101668
101831
  }
101669
- listeners2 = events2[type];
101832
+ listeners2 = events2[type2];
101670
101833
  if (typeof listeners2 === "function") {
101671
- this.removeListener(type, listeners2);
101834
+ this.removeListener(type2, listeners2);
101672
101835
  } else if (listeners2 !== void 0) {
101673
101836
  for (i2 = listeners2.length - 1; i2 >= 0; i2--) {
101674
- this.removeListener(type, listeners2[i2]);
101837
+ this.removeListener(type2, listeners2[i2]);
101675
101838
  }
101676
101839
  }
101677
101840
  return this;
101678
101841
  };
101679
- function _listeners(target, type, unwrap2) {
101842
+ function _listeners(target, type2, unwrap2) {
101680
101843
  var events2 = target._events;
101681
101844
  if (events2 === void 0)
101682
101845
  return [];
101683
- var evlistener = events2[type];
101846
+ var evlistener = events2[type2];
101684
101847
  if (evlistener === void 0)
101685
101848
  return [];
101686
101849
  if (typeof evlistener === "function")
101687
101850
  return unwrap2 ? [evlistener.listener || evlistener] : [evlistener];
101688
101851
  return unwrap2 ? unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);
101689
101852
  }
101690
- EventEmitter.prototype.listeners = function listeners(type) {
101691
- return _listeners(this, type, true);
101853
+ EventEmitter.prototype.listeners = function listeners(type2) {
101854
+ return _listeners(this, type2, true);
101692
101855
  };
101693
- EventEmitter.prototype.rawListeners = function rawListeners(type) {
101694
- return _listeners(this, type, false);
101856
+ EventEmitter.prototype.rawListeners = function rawListeners(type2) {
101857
+ return _listeners(this, type2, false);
101695
101858
  };
101696
- EventEmitter.listenerCount = function(emitter, type) {
101859
+ EventEmitter.listenerCount = function(emitter, type2) {
101697
101860
  if (typeof emitter.listenerCount === "function") {
101698
- return emitter.listenerCount(type);
101861
+ return emitter.listenerCount(type2);
101699
101862
  } else {
101700
- return listenerCount.call(emitter, type);
101863
+ return listenerCount.call(emitter, type2);
101701
101864
  }
101702
101865
  };
101703
101866
  EventEmitter.prototype.listenerCount = listenerCount;
101704
- function listenerCount(type) {
101867
+ function listenerCount(type2) {
101705
101868
  var events2 = this._events;
101706
101869
  if (events2 !== void 0) {
101707
- var evlistener = events2[type];
101870
+ var evlistener = events2[type2];
101708
101871
  if (typeof evlistener === "function") {
101709
101872
  return 1;
101710
101873
  } else if (evlistener !== void 0) {
@@ -101752,21 +101915,21 @@ function once2(emitter, name2) {
101752
101915
  }
101753
101916
  });
101754
101917
  }
101755
- function addErrorHandlerIfEventEmitter(emitter, handler, flags2) {
101918
+ function addErrorHandlerIfEventEmitter(emitter, handler, flags3) {
101756
101919
  if (typeof emitter.on === "function") {
101757
- eventTargetAgnosticAddListener(emitter, "error", handler, flags2);
101920
+ eventTargetAgnosticAddListener(emitter, "error", handler, flags3);
101758
101921
  }
101759
101922
  }
101760
- function eventTargetAgnosticAddListener(emitter, name2, listener, flags2) {
101923
+ function eventTargetAgnosticAddListener(emitter, name2, listener, flags3) {
101761
101924
  if (typeof emitter.on === "function") {
101762
- if (flags2.once) {
101925
+ if (flags3.once) {
101763
101926
  emitter.once(name2, listener);
101764
101927
  } else {
101765
101928
  emitter.on(name2, listener);
101766
101929
  }
101767
101930
  } else if (typeof emitter.addEventListener === "function") {
101768
101931
  emitter.addEventListener(name2, function wrapListener(arg) {
101769
- if (flags2.once) {
101932
+ if (flags3.once) {
101770
101933
  emitter.removeEventListener(name2, wrapListener);
101771
101934
  }
101772
101935
  listener(arg);
@@ -102193,9 +102356,9 @@ const require$$1$3 = /* @__PURE__ */ getAugmentedNamespace(esmBrowser);
102193
102356
  return _possibleConstructorReturn2(this, result);
102194
102357
  };
102195
102358
  }
102196
- function _possibleConstructorReturn2(self2, call) {
102197
- if (call && (_typeof2(call) === "object" || typeof call === "function")) {
102198
- return call;
102359
+ function _possibleConstructorReturn2(self2, call2) {
102360
+ if (call2 && (_typeof2(call2) === "object" || typeof call2 === "function")) {
102361
+ return call2;
102199
102362
  }
102200
102363
  return _assertThisInitialized2(self2);
102201
102364
  }
@@ -102514,8 +102677,8 @@ function rewind(geojson, options) {
102514
102677
  return rewindFeature(geojson, reverse);
102515
102678
  }
102516
102679
  function rewindFeature(geojson, reverse) {
102517
- var type = geojson.type === "Feature" ? geojson.geometry.type : geojson.type;
102518
- switch (type) {
102680
+ var type2 = geojson.type === "Feature" ? geojson.geometry.type : geojson.type;
102681
+ switch (type2) {
102519
102682
  case "GeometryCollection":
102520
102683
  meta$3.geomEach(geojson, function(geometry2) {
102521
102684
  rewindFeature(geometry2, reverse);
@@ -103982,9 +104145,9 @@ function _createSuper$u(Derived) {
103982
104145
  return _possibleConstructorReturn$u(this, result);
103983
104146
  };
103984
104147
  }
103985
- function _possibleConstructorReturn$u(self2, call) {
103986
- if (call && (_typeof$u(call) === "object" || typeof call === "function")) {
103987
- return call;
104148
+ function _possibleConstructorReturn$u(self2, call2) {
104149
+ if (call2 && (_typeof$u(call2) === "object" || typeof call2 === "function")) {
104150
+ return call2;
103988
104151
  }
103989
104152
  return _assertThisInitialized$u(self2);
103990
104153
  }
@@ -104424,9 +104587,9 @@ function _createSuper$t(Derived) {
104424
104587
  return _possibleConstructorReturn$t(this, result);
104425
104588
  };
104426
104589
  }
104427
- function _possibleConstructorReturn$t(self2, call) {
104428
- if (call && (_typeof$t(call) === "object" || typeof call === "function")) {
104429
- return call;
104590
+ function _possibleConstructorReturn$t(self2, call2) {
104591
+ if (call2 && (_typeof$t(call2) === "object" || typeof call2 === "function")) {
104592
+ return call2;
104430
104593
  }
104431
104594
  return _assertThisInitialized$t(self2);
104432
104595
  }
@@ -104776,9 +104939,9 @@ function _createSuper$s(Derived) {
104776
104939
  return _possibleConstructorReturn$s(this, result);
104777
104940
  };
104778
104941
  }
104779
- function _possibleConstructorReturn$s(self2, call) {
104780
- if (call && (_typeof$s(call) === "object" || typeof call === "function")) {
104781
- return call;
104942
+ function _possibleConstructorReturn$s(self2, call2) {
104943
+ if (call2 && (_typeof$s(call2) === "object" || typeof call2 === "function")) {
104944
+ return call2;
104782
104945
  }
104783
104946
  return _assertThisInitialized$s(self2);
104784
104947
  }
@@ -105239,9 +105402,9 @@ function _createSuper$r(Derived) {
105239
105402
  return _possibleConstructorReturn$r(this, result);
105240
105403
  };
105241
105404
  }
105242
- function _possibleConstructorReturn$r(self2, call) {
105243
- if (call && (_typeof$r(call) === "object" || typeof call === "function")) {
105244
- return call;
105405
+ function _possibleConstructorReturn$r(self2, call2) {
105406
+ if (call2 && (_typeof$r(call2) === "object" || typeof call2 === "function")) {
105407
+ return call2;
105245
105408
  }
105246
105409
  return _assertThisInitialized$r(self2);
105247
105410
  }
@@ -105313,8 +105476,8 @@ var ScaleMode = /* @__PURE__ */ function(_GeoJsonEditMode) {
105313
105476
  _defineProperty$9(_assertThisInitialized$r(_this), "_isSinglePointGeometrySelected", function(geometry2) {
105314
105477
  var _ref = geometry2 || {}, features = _ref.features;
105315
105478
  if (Array.isArray(features) && features.length === 1) {
105316
- var _getGeom = (0, _invariant$1.getGeom)(features[0]), type = _getGeom.type;
105317
- return type === "Point";
105479
+ var _getGeom = (0, _invariant$1.getGeom)(features[0]), type2 = _getGeom.type;
105480
+ return type2 === "Point";
105318
105481
  }
105319
105482
  return false;
105320
105483
  });
@@ -105588,9 +105751,9 @@ function _createSuper$q(Derived) {
105588
105751
  return _possibleConstructorReturn$q(this, result);
105589
105752
  };
105590
105753
  }
105591
- function _possibleConstructorReturn$q(self2, call) {
105592
- if (call && (_typeof$q(call) === "object" || typeof call === "function")) {
105593
- return call;
105754
+ function _possibleConstructorReturn$q(self2, call2) {
105755
+ if (call2 && (_typeof$q(call2) === "object" || typeof call2 === "function")) {
105756
+ return call2;
105594
105757
  }
105595
105758
  return _assertThisInitialized$q(self2);
105596
105759
  }
@@ -105660,8 +105823,8 @@ var RotateMode = /* @__PURE__ */ function(_GeoJsonEditMode) {
105660
105823
  _defineProperty$8(_assertThisInitialized$q(_this), "_isSinglePointGeometrySelected", function(geometry2) {
105661
105824
  var _ref = geometry2 || {}, features = _ref.features;
105662
105825
  if (Array.isArray(features) && features.length === 1) {
105663
- var _getGeom = (0, _invariant.getGeom)(features[0]), type = _getGeom.type;
105664
- return type === "Point";
105826
+ var _getGeom = (0, _invariant.getGeom)(features[0]), type2 = _getGeom.type;
105827
+ return type2 === "Point";
105665
105828
  }
105666
105829
  return false;
105667
105830
  });
@@ -105882,9 +106045,9 @@ function _createSuper$p(Derived) {
105882
106045
  return _possibleConstructorReturn$p(this, result);
105883
106046
  };
105884
106047
  }
105885
- function _possibleConstructorReturn$p(self2, call) {
105886
- if (call && (_typeof$p(call) === "object" || typeof call === "function")) {
105887
- return call;
106048
+ function _possibleConstructorReturn$p(self2, call2) {
106049
+ if (call2 && (_typeof$p(call2) === "object" || typeof call2 === "function")) {
106050
+ return call2;
105888
106051
  }
105889
106052
  return _assertThisInitialized$p(self2);
105890
106053
  }
@@ -106012,9 +106175,9 @@ function _createSuper$o(Derived) {
106012
106175
  return _possibleConstructorReturn$o(this, result);
106013
106176
  };
106014
106177
  }
106015
- function _possibleConstructorReturn$o(self2, call) {
106016
- if (call && (_typeof$o(call) === "object" || typeof call === "function")) {
106017
- return call;
106178
+ function _possibleConstructorReturn$o(self2, call2) {
106179
+ if (call2 && (_typeof$o(call2) === "object" || typeof call2 === "function")) {
106180
+ return call2;
106018
106181
  }
106019
106182
  return _assertThisInitialized$o(self2);
106020
106183
  }
@@ -106158,13 +106321,13 @@ function booleanPointInPolygon(point2, polygon2, options) {
106158
106321
  }
106159
106322
  var pt = invariant_1$2.getCoord(point2);
106160
106323
  var geom = invariant_1$2.getGeom(polygon2);
106161
- var type = geom.type;
106324
+ var type2 = geom.type;
106162
106325
  var bbox2 = polygon2.bbox;
106163
106326
  var polys = geom.coordinates;
106164
106327
  if (bbox2 && inBBox(pt, bbox2) === false) {
106165
106328
  return false;
106166
106329
  }
106167
- if (type === "Polygon") {
106330
+ if (type2 === "Polygon") {
106168
106331
  polys = [polys];
106169
106332
  }
106170
106333
  var insidePoly = false;
@@ -106428,9 +106591,9 @@ function _createSuper$n(Derived) {
106428
106591
  return _possibleConstructorReturn$n(this, result);
106429
106592
  };
106430
106593
  }
106431
- function _possibleConstructorReturn$n(self2, call) {
106432
- if (call && (_typeof$n(call) === "object" || typeof call === "function")) {
106433
- return call;
106594
+ function _possibleConstructorReturn$n(self2, call2) {
106595
+ if (call2 && (_typeof$n(call2) === "object" || typeof call2 === "function")) {
106596
+ return call2;
106434
106597
  }
106435
106598
  return _assertThisInitialized$n(self2);
106436
106599
  }
@@ -106601,9 +106764,9 @@ var SplitPolygonMode = /* @__PURE__ */ function(_GeoJsonEditMode) {
106601
106764
  console.warn("Canceling edit. Split Polygon erased");
106602
106765
  return null;
106603
106766
  }
106604
- var _updatedGeometry$geom = updatedGeometry.geometry, type = _updatedGeometry$geom.type, coordinates2 = _updatedGeometry$geom.coordinates;
106767
+ var _updatedGeometry$geom = updatedGeometry.geometry, type2 = _updatedGeometry$geom.type, coordinates2 = _updatedGeometry$geom.coordinates;
106605
106768
  var updatedCoordinates = [];
106606
- if (type === "Polygon") {
106769
+ if (type2 === "Polygon") {
106607
106770
  updatedCoordinates = coordinates2.map(function(c) {
106608
106771
  return [c];
106609
106772
  });
@@ -106763,9 +106926,9 @@ function _createSuper$m(Derived) {
106763
106926
  return _possibleConstructorReturn$m(this, result);
106764
106927
  };
106765
106928
  }
106766
- function _possibleConstructorReturn$m(self2, call) {
106767
- if (call && (_typeof$m(call) === "object" || typeof call === "function")) {
106768
- return call;
106929
+ function _possibleConstructorReturn$m(self2, call2) {
106930
+ if (call2 && (_typeof$m(call2) === "object" || typeof call2 === "function")) {
106931
+ return call2;
106769
106932
  }
106770
106933
  return _assertThisInitialized$m(self2);
106771
106934
  }
@@ -107094,9 +107257,9 @@ function _createSuper$l(Derived) {
107094
107257
  return _possibleConstructorReturn$l(this, result);
107095
107258
  };
107096
107259
  }
107097
- function _possibleConstructorReturn$l(self2, call) {
107098
- if (call && (_typeof$l(call) === "object" || typeof call === "function")) {
107099
- return call;
107260
+ function _possibleConstructorReturn$l(self2, call2) {
107261
+ if (call2 && (_typeof$l(call2) === "object" || typeof call2 === "function")) {
107262
+ return call2;
107100
107263
  }
107101
107264
  return _assertThisInitialized$l(self2);
107102
107265
  }
@@ -107330,9 +107493,9 @@ function _createSuper$k(Derived) {
107330
107493
  return _possibleConstructorReturn$k(this, result);
107331
107494
  };
107332
107495
  }
107333
- function _possibleConstructorReturn$k(self2, call) {
107334
- if (call && (_typeof$k(call) === "object" || typeof call === "function")) {
107335
- return call;
107496
+ function _possibleConstructorReturn$k(self2, call2) {
107497
+ if (call2 && (_typeof$k(call2) === "object" || typeof call2 === "function")) {
107498
+ return call2;
107336
107499
  }
107337
107500
  return _assertThisInitialized$k(self2);
107338
107501
  }
@@ -107587,9 +107750,9 @@ function _createSuper$j(Derived) {
107587
107750
  return _possibleConstructorReturn$j(this, result);
107588
107751
  };
107589
107752
  }
107590
- function _possibleConstructorReturn$j(self2, call) {
107591
- if (call && (_typeof$j(call) === "object" || typeof call === "function")) {
107592
- return call;
107753
+ function _possibleConstructorReturn$j(self2, call2) {
107754
+ if (call2 && (_typeof$j(call2) === "object" || typeof call2 === "function")) {
107755
+ return call2;
107593
107756
  }
107594
107757
  return _assertThisInitialized$j(self2);
107595
107758
  }
@@ -107778,9 +107941,9 @@ function _createSuper$i(Derived) {
107778
107941
  return _possibleConstructorReturn$i(this, result);
107779
107942
  };
107780
107943
  }
107781
- function _possibleConstructorReturn$i(self2, call) {
107782
- if (call && (_typeof$i(call) === "object" || typeof call === "function")) {
107783
- return call;
107944
+ function _possibleConstructorReturn$i(self2, call2) {
107945
+ if (call2 && (_typeof$i(call2) === "object" || typeof call2 === "function")) {
107946
+ return call2;
107784
107947
  }
107785
107948
  return _assertThisInitialized$i(self2);
107786
107949
  }
@@ -107958,9 +108121,9 @@ function _createSuper$h(Derived) {
107958
108121
  return _possibleConstructorReturn$h(this, result);
107959
108122
  };
107960
108123
  }
107961
- function _possibleConstructorReturn$h(self2, call) {
107962
- if (call && (_typeof$h(call) === "object" || typeof call === "function")) {
107963
- return call;
108124
+ function _possibleConstructorReturn$h(self2, call2) {
108125
+ if (call2 && (_typeof$h(call2) === "object" || typeof call2 === "function")) {
108126
+ return call2;
107964
108127
  }
107965
108128
  return _assertThisInitialized$h(self2);
107966
108129
  }
@@ -108232,9 +108395,9 @@ function _createSuper$g(Derived) {
108232
108395
  return _possibleConstructorReturn$g(this, result);
108233
108396
  };
108234
108397
  }
108235
- function _possibleConstructorReturn$g(self2, call) {
108236
- if (call && (_typeof$g(call) === "object" || typeof call === "function")) {
108237
- return call;
108398
+ function _possibleConstructorReturn$g(self2, call2) {
108399
+ if (call2 && (_typeof$g(call2) === "object" || typeof call2 === "function")) {
108400
+ return call2;
108238
108401
  }
108239
108402
  return _assertThisInitialized$g(self2);
108240
108403
  }
@@ -108489,9 +108652,9 @@ function _createSuper$f(Derived) {
108489
108652
  return _possibleConstructorReturn$f(this, result);
108490
108653
  };
108491
108654
  }
108492
- function _possibleConstructorReturn$f(self2, call) {
108493
- if (call && (_typeof$f(call) === "object" || typeof call === "function")) {
108494
- return call;
108655
+ function _possibleConstructorReturn$f(self2, call2) {
108656
+ if (call2 && (_typeof$f(call2) === "object" || typeof call2 === "function")) {
108657
+ return call2;
108495
108658
  }
108496
108659
  return _assertThisInitialized$f(self2);
108497
108660
  }
@@ -108704,9 +108867,9 @@ function _createSuper$e(Derived) {
108704
108867
  return _possibleConstructorReturn$e(this, result);
108705
108868
  };
108706
108869
  }
108707
- function _possibleConstructorReturn$e(self2, call) {
108708
- if (call && (_typeof$e(call) === "object" || typeof call === "function")) {
108709
- return call;
108870
+ function _possibleConstructorReturn$e(self2, call2) {
108871
+ if (call2 && (_typeof$e(call2) === "object" || typeof call2 === "function")) {
108872
+ return call2;
108710
108873
  }
108711
108874
  return _assertThisInitialized$e(self2);
108712
108875
  }
@@ -108867,9 +109030,9 @@ function _createSuper$d(Derived) {
108867
109030
  return _possibleConstructorReturn$d(this, result);
108868
109031
  };
108869
109032
  }
108870
- function _possibleConstructorReturn$d(self2, call) {
108871
- if (call && (_typeof$d(call) === "object" || typeof call === "function")) {
108872
- return call;
109033
+ function _possibleConstructorReturn$d(self2, call2) {
109034
+ if (call2 && (_typeof$d(call2) === "object" || typeof call2 === "function")) {
109035
+ return call2;
108873
109036
  }
108874
109037
  return _assertThisInitialized$d(self2);
108875
109038
  }
@@ -109004,9 +109167,9 @@ function _createSuper$c(Derived) {
109004
109167
  return _possibleConstructorReturn$c(this, result);
109005
109168
  };
109006
109169
  }
109007
- function _possibleConstructorReturn$c(self2, call) {
109008
- if (call && (_typeof$c(call) === "object" || typeof call === "function")) {
109009
- return call;
109170
+ function _possibleConstructorReturn$c(self2, call2) {
109171
+ if (call2 && (_typeof$c(call2) === "object" || typeof call2 === "function")) {
109172
+ return call2;
109010
109173
  }
109011
109174
  return _assertThisInitialized$c(self2);
109012
109175
  }
@@ -109139,9 +109302,9 @@ function _createSuper$b(Derived) {
109139
109302
  return _possibleConstructorReturn$b(this, result);
109140
109303
  };
109141
109304
  }
109142
- function _possibleConstructorReturn$b(self2, call) {
109143
- if (call && (_typeof$b(call) === "object" || typeof call === "function")) {
109144
- return call;
109305
+ function _possibleConstructorReturn$b(self2, call2) {
109306
+ if (call2 && (_typeof$b(call2) === "object" || typeof call2 === "function")) {
109307
+ return call2;
109145
109308
  }
109146
109309
  return _assertThisInitialized$b(self2);
109147
109310
  }
@@ -109351,9 +109514,9 @@ function _createSuper$a(Derived) {
109351
109514
  return _possibleConstructorReturn$a(this, result);
109352
109515
  };
109353
109516
  }
109354
- function _possibleConstructorReturn$a(self2, call) {
109355
- if (call && (_typeof$a(call) === "object" || typeof call === "function")) {
109356
- return call;
109517
+ function _possibleConstructorReturn$a(self2, call2) {
109518
+ if (call2 && (_typeof$a(call2) === "object" || typeof call2 === "function")) {
109519
+ return call2;
109357
109520
  }
109358
109521
  return _assertThisInitialized$a(self2);
109359
109522
  }
@@ -109502,9 +109665,9 @@ function _createSuper$9(Derived) {
109502
109665
  return _possibleConstructorReturn$9(this, result);
109503
109666
  };
109504
109667
  }
109505
- function _possibleConstructorReturn$9(self2, call) {
109506
- if (call && (_typeof$9(call) === "object" || typeof call === "function")) {
109507
- return call;
109668
+ function _possibleConstructorReturn$9(self2, call2) {
109669
+ if (call2 && (_typeof$9(call2) === "object" || typeof call2 === "function")) {
109670
+ return call2;
109508
109671
  }
109509
109672
  return _assertThisInitialized$9(self2);
109510
109673
  }
@@ -109696,9 +109859,9 @@ function _createSuper$8(Derived) {
109696
109859
  return _possibleConstructorReturn$8(this, result);
109697
109860
  };
109698
109861
  }
109699
- function _possibleConstructorReturn$8(self2, call) {
109700
- if (call && (_typeof$8(call) === "object" || typeof call === "function")) {
109701
- return call;
109862
+ function _possibleConstructorReturn$8(self2, call2) {
109863
+ if (call2 && (_typeof$8(call2) === "object" || typeof call2 === "function")) {
109864
+ return call2;
109702
109865
  }
109703
109866
  return _assertThisInitialized$8(self2);
109704
109867
  }
@@ -109878,9 +110041,9 @@ function _createSuper$7(Derived) {
109878
110041
  return _possibleConstructorReturn$7(this, result);
109879
110042
  };
109880
110043
  }
109881
- function _possibleConstructorReturn$7(self2, call) {
109882
- if (call && (_typeof$7(call) === "object" || typeof call === "function")) {
109883
- return call;
110044
+ function _possibleConstructorReturn$7(self2, call2) {
110045
+ if (call2 && (_typeof$7(call2) === "object" || typeof call2 === "function")) {
110046
+ return call2;
109884
110047
  }
109885
110048
  return _assertThisInitialized$7(self2);
109886
110049
  }
@@ -110120,9 +110283,9 @@ function _createSuper$6(Derived) {
110120
110283
  return _possibleConstructorReturn$6(this, result);
110121
110284
  };
110122
110285
  }
110123
- function _possibleConstructorReturn$6(self2, call) {
110124
- if (call && (_typeof$6(call) === "object" || typeof call === "function")) {
110125
- return call;
110286
+ function _possibleConstructorReturn$6(self2, call2) {
110287
+ if (call2 && (_typeof$6(call2) === "object" || typeof call2 === "function")) {
110288
+ return call2;
110126
110289
  }
110127
110290
  return _assertThisInitialized$6(self2);
110128
110291
  }
@@ -110450,8 +110613,8 @@ function throttle(func, wait, options) {
110450
110613
  });
110451
110614
  }
110452
110615
  function isObject(value) {
110453
- var type = typeof value;
110454
- return !!value && (type == "object" || type == "function");
110616
+ var type2 = typeof value;
110617
+ return !!value && (type2 == "object" || type2 == "function");
110455
110618
  }
110456
110619
  function isObjectLike(value) {
110457
110620
  return !!value && typeof value == "object";
@@ -110570,9 +110733,9 @@ function _createSuper$5(Derived) {
110570
110733
  return _possibleConstructorReturn$5(this, result);
110571
110734
  };
110572
110735
  }
110573
- function _possibleConstructorReturn$5(self2, call) {
110574
- if (call && (_typeof$5(call) === "object" || typeof call === "function")) {
110575
- return call;
110736
+ function _possibleConstructorReturn$5(self2, call2) {
110737
+ if (call2 && (_typeof$5(call2) === "object" || typeof call2 === "function")) {
110738
+ return call2;
110576
110739
  }
110577
110740
  return _assertThisInitialized$5(self2);
110578
110741
  }
@@ -110729,9 +110892,9 @@ function _createSuper$4(Derived) {
110729
110892
  return _possibleConstructorReturn$4(this, result);
110730
110893
  };
110731
110894
  }
110732
- function _possibleConstructorReturn$4(self2, call) {
110733
- if (call && (_typeof$4(call) === "object" || typeof call === "function")) {
110734
- return call;
110895
+ function _possibleConstructorReturn$4(self2, call2) {
110896
+ if (call2 && (_typeof$4(call2) === "object" || typeof call2 === "function")) {
110897
+ return call2;
110735
110898
  }
110736
110899
  return _assertThisInitialized$4(self2);
110737
110900
  }
@@ -110880,9 +111043,9 @@ function _createSuper$3(Derived) {
110880
111043
  return _possibleConstructorReturn$3(this, result);
110881
111044
  };
110882
111045
  }
110883
- function _possibleConstructorReturn$3(self2, call) {
110884
- if (call && (_typeof$3(call) === "object" || typeof call === "function")) {
110885
- return call;
111046
+ function _possibleConstructorReturn$3(self2, call2) {
111047
+ if (call2 && (_typeof$3(call2) === "object" || typeof call2 === "function")) {
111048
+ return call2;
110886
111049
  }
110887
111050
  return _assertThisInitialized$3(self2);
110888
111051
  }
@@ -111302,9 +111465,9 @@ function _createSuper$2(Derived) {
111302
111465
  return _possibleConstructorReturn$2(this, result);
111303
111466
  };
111304
111467
  }
111305
- function _possibleConstructorReturn$2(self2, call) {
111306
- if (call && (_typeof$2(call) === "object" || typeof call === "function")) {
111307
- return call;
111468
+ function _possibleConstructorReturn$2(self2, call2) {
111469
+ if (call2 && (_typeof$2(call2) === "object" || typeof call2 === "function")) {
111470
+ return call2;
111308
111471
  }
111309
111472
  return _assertThisInitialized$2(self2);
111310
111473
  }
@@ -111531,9 +111694,9 @@ function _createSuper$1(Derived) {
111531
111694
  return _possibleConstructorReturn$1(this, result);
111532
111695
  };
111533
111696
  }
111534
- function _possibleConstructorReturn$1(self2, call) {
111535
- if (call && (_typeof$1(call) === "object" || typeof call === "function")) {
111536
- return call;
111697
+ function _possibleConstructorReturn$1(self2, call2) {
111698
+ if (call2 && (_typeof$1(call2) === "object" || typeof call2 === "function")) {
111699
+ return call2;
111537
111700
  }
111538
111701
  return _assertThisInitialized$1(self2);
111539
111702
  }
@@ -111868,9 +112031,9 @@ function _createSuper(Derived) {
111868
112031
  return _possibleConstructorReturn(this, result);
111869
112032
  };
111870
112033
  }
111871
- function _possibleConstructorReturn(self2, call) {
111872
- if (call && (_typeof(call) === "object" || typeof call === "function")) {
111873
- return call;
112034
+ function _possibleConstructorReturn(self2, call2) {
112035
+ if (call2 && (_typeof(call2) === "object" || typeof call2 === "function")) {
112036
+ return call2;
111874
112037
  }
111875
112038
  return _assertThisInitialized(self2);
111876
112039
  }
@@ -112496,9 +112659,9 @@ const require$$2$2 = /* @__PURE__ */ getAugmentedNamespace(esm$4);
112496
112659
  return _possibleConstructorReturn2(this, result);
112497
112660
  };
112498
112661
  }
112499
- function _possibleConstructorReturn2(self2, call) {
112500
- if (call && (_typeof2(call) === "object" || typeof call === "function")) {
112501
- return call;
112662
+ function _possibleConstructorReturn2(self2, call2) {
112663
+ if (call2 && (_typeof2(call2) === "object" || typeof call2 === "function")) {
112664
+ return call2;
112502
112665
  }
112503
112666
  return _assertThisInitialized2(self2);
112504
112667
  }
@@ -112887,9 +113050,9 @@ const require$$2$2 = /* @__PURE__ */ getAugmentedNamespace(esm$4);
112887
113050
  return _possibleConstructorReturn2(this, result);
112888
113051
  };
112889
113052
  }
112890
- function _possibleConstructorReturn2(self2, call) {
112891
- if (call && (_typeof2(call) === "object" || typeof call === "function")) {
112892
- return call;
113053
+ function _possibleConstructorReturn2(self2, call2) {
113054
+ if (call2 && (_typeof2(call2) === "object" || typeof call2 === "function")) {
113055
+ return call2;
112893
113056
  }
112894
113057
  return _assertThisInitialized2(self2);
112895
113058
  }
@@ -113496,9 +113659,9 @@ const require$$2$1 = /* @__PURE__ */ getAugmentedNamespace(h3Js_es);
113496
113659
  return _possibleConstructorReturn2(this, result);
113497
113660
  };
113498
113661
  }
113499
- function _possibleConstructorReturn2(self2, call) {
113500
- if (call && (_typeof2(call) === "object" || typeof call === "function")) {
113501
- return call;
113662
+ function _possibleConstructorReturn2(self2, call2) {
113663
+ if (call2 && (_typeof2(call2) === "object" || typeof call2 === "function")) {
113664
+ return call2;
113502
113665
  }
113503
113666
  return _assertThisInitialized2(self2);
113504
113667
  }
@@ -113919,9 +114082,9 @@ var selectionLayer = {};
113919
114082
  return _possibleConstructorReturn2(this, result);
113920
114083
  };
113921
114084
  }
113922
- function _possibleConstructorReturn2(self2, call) {
113923
- if (call && (_typeof2(call) === "object" || typeof call === "function")) {
113924
- return call;
114085
+ function _possibleConstructorReturn2(self2, call2) {
114086
+ if (call2 && (_typeof2(call2) === "object" || typeof call2 === "function")) {
114087
+ return call2;
113925
114088
  }
113926
114089
  return _assertThisInitialized2(self2);
113927
114090
  }
@@ -114194,9 +114357,9 @@ var elevatedEditHandleLayer = {};
114194
114357
  return _possibleConstructorReturn2(this, result);
114195
114358
  };
114196
114359
  }
114197
- function _possibleConstructorReturn2(self2, call) {
114198
- if (call && (_typeof2(call) === "object" || typeof call === "function")) {
114199
- return call;
114360
+ function _possibleConstructorReturn2(self2, call2) {
114361
+ if (call2 && (_typeof2(call2) === "object" || typeof call2 === "function")) {
114362
+ return call2;
114200
114363
  }
114201
114364
  return _assertThisInitialized2(self2);
114202
114365
  }
@@ -115031,9 +115194,9 @@ var outline = {};
115031
115194
  return _possibleConstructorReturn2(this, result);
115032
115195
  };
115033
115196
  }
115034
- function _possibleConstructorReturn2(self2, call) {
115035
- if (call && (_typeof2(call) === "object" || typeof call === "function")) {
115036
- return call;
115197
+ function _possibleConstructorReturn2(self2, call2) {
115198
+ if (call2 && (_typeof2(call2) === "object" || typeof call2 === "function")) {
115199
+ return call2;
115037
115200
  }
115038
115201
  return _assertThisInitialized2(self2);
115039
115202
  }
@@ -115255,9 +115418,9 @@ var arrow2dGeometry = {};
115255
115418
  return _possibleConstructorReturn2(this, result);
115256
115419
  };
115257
115420
  }
115258
- function _possibleConstructorReturn2(self2, call) {
115259
- if (call && (_typeof2(call) === "object" || typeof call === "function")) {
115260
- return call;
115421
+ function _possibleConstructorReturn2(self2, call2) {
115422
+ if (call2 && (_typeof2(call2) === "object" || typeof call2 === "function")) {
115423
+ return call2;
115261
115424
  }
115262
115425
  return _assertThisInitialized2(self2);
115263
115426
  }
@@ -115699,9 +115862,9 @@ function getClosestPointOnPolyline(_ref2) {
115699
115862
  return _possibleConstructorReturn2(this, result);
115700
115863
  };
115701
115864
  }
115702
- function _possibleConstructorReturn2(self2, call) {
115703
- if (call && (_typeof2(call) === "object" || typeof call === "function")) {
115704
- return call;
115865
+ function _possibleConstructorReturn2(self2, call2) {
115866
+ if (call2 && (_typeof2(call2) === "object" || typeof call2 === "function")) {
115867
+ return call2;
115705
115868
  }
115706
115869
  return _assertThisInitialized2(self2);
115707
115870
  }
@@ -116002,9 +116165,9 @@ var junctionScatterplotLayer = {};
116002
116165
  return _possibleConstructorReturn2(this, result);
116003
116166
  };
116004
116167
  }
116005
- function _possibleConstructorReturn2(self2, call) {
116006
- if (call && (_typeof2(call) === "object" || typeof call === "function")) {
116007
- return call;
116168
+ function _possibleConstructorReturn2(self2, call2) {
116169
+ if (call2 && (_typeof2(call2) === "object" || typeof call2 === "function")) {
116170
+ return call2;
116008
116171
  }
116009
116172
  return _assertThisInitialized2(self2);
116010
116173
  }
@@ -116597,9 +116760,9 @@ var deckCache = {};
116597
116760
  return _possibleConstructorReturn2(this, result);
116598
116761
  };
116599
116762
  }
116600
- function _possibleConstructorReturn2(self2, call) {
116601
- if (call && (_typeof2(call) === "object" || typeof call === "function")) {
116602
- return call;
116763
+ function _possibleConstructorReturn2(self2, call2) {
116764
+ if (call2 && (_typeof2(call2) === "object" || typeof call2 === "function")) {
116765
+ return call2;
116603
116766
  }
116604
116767
  return _assertThisInitialized2(self2);
116605
116768
  }
@@ -116770,9 +116933,9 @@ var textsLayer = {};
116770
116933
  return _possibleConstructorReturn2(this, result);
116771
116934
  };
116772
116935
  }
116773
- function _possibleConstructorReturn2(self2, call) {
116774
- if (call && (_typeof2(call) === "object" || typeof call === "function")) {
116775
- return call;
116936
+ function _possibleConstructorReturn2(self2, call2) {
116937
+ if (call2 && (_typeof2(call2) === "object" || typeof call2 === "function")) {
116938
+ return call2;
116776
116939
  }
116777
116940
  return _assertThisInitialized2(self2);
116778
116941
  }
@@ -116938,9 +117101,9 @@ var segmentsLayer = {};
116938
117101
  return _possibleConstructorReturn2(this, result);
116939
117102
  };
116940
117103
  }
116941
- function _possibleConstructorReturn2(self2, call) {
116942
- if (call && (_typeof2(call) === "object" || typeof call === "function")) {
116943
- return call;
117104
+ function _possibleConstructorReturn2(self2, call2) {
117105
+ if (call2 && (_typeof2(call2) === "object" || typeof call2 === "function")) {
117106
+ return call2;
116944
117107
  }
116945
117108
  return _assertThisInitialized2(self2);
116946
117109
  }
@@ -117324,13 +117487,13 @@ var document_1 = doccy;
117324
117487
  }, {
117325
117488
  key: "_isNebulaEvent",
117326
117489
  value: function _isNebulaEvent(_ref2) {
117327
- var buttons = _ref2.buttons, target = _ref2.target, type = _ref2.type;
117490
+ var buttons = _ref2.buttons, target = _ref2.target, type2 = _ref2.type;
117328
117491
  var viewport = this.props.viewport;
117329
- if (this._mouseWasDown && type === "mouseup") {
117492
+ if (this._mouseWasDown && type2 === "mouseup") {
117330
117493
  this._mouseWasDown = false;
117331
117494
  return true;
117332
117495
  }
117333
- if (type === "mousemove" && buttons > 0) {
117496
+ if (type2 === "mousemove" && buttons > 0) {
117334
117497
  return true;
117335
117498
  }
117336
117499
  if (!target.getBoundingClientRect) {
@@ -119066,16 +119229,16 @@ function addDecoder(cases, importFn) {
119066
119229
  }
119067
119230
  cases.forEach((c) => registry$2.set(c, importFn));
119068
119231
  }
119069
- addDecoder([void 0, 1], () => import("./raw-7f3d8ece.js").then((m) => m.default));
119070
- addDecoder(5, () => import("./lzw-46a4b38d.js").then((m) => m.default));
119232
+ addDecoder([void 0, 1], () => import("./raw-072bb393.js").then((m) => m.default));
119233
+ addDecoder(5, () => import("./lzw-3ea2d511.js").then((m) => m.default));
119071
119234
  addDecoder(6, () => {
119072
119235
  throw new Error("old style JPEG compression is not supported.");
119073
119236
  });
119074
- addDecoder(7, () => import("./jpeg-cbd947a2.js").then((m) => m.default));
119075
- addDecoder([8, 32946], () => import("./deflate-0baa3ce6.js").then((m) => m.default));
119076
- addDecoder(32773, () => import("./packbits-a1435c65.js").then((m) => m.default));
119077
- addDecoder(34887, () => import("./lerc-31be5457.js").then((m) => m.default));
119078
- addDecoder(50001, () => import("./webimage-6fcd929e.js").then((m) => m.default));
119237
+ addDecoder(7, () => import("./jpeg-43f7eb3d.js").then((m) => m.default));
119238
+ addDecoder([8, 32946], () => import("./deflate-f1fb5f5f.js").then((m) => m.default));
119239
+ addDecoder(32773, () => import("./packbits-bb194562.js").then((m) => m.default));
119240
+ addDecoder(34887, () => import("./lerc-f6703f92.js").then((m) => m.default));
119241
+ addDecoder(50001, () => import("./webimage-50d4efbc.js").then((m) => m.default));
119079
119242
  function decodeRowAcc(row, stride) {
119080
119243
  let length2 = row.length - stride;
119081
119244
  let offset = 0;
@@ -121710,22 +121873,22 @@ ZodUnion.create = (types, params) => {
121710
121873
  ...processCreateParams(params)
121711
121874
  });
121712
121875
  };
121713
- const getDiscriminator = (type) => {
121714
- if (type instanceof ZodLazy) {
121715
- return getDiscriminator(type.schema);
121716
- } else if (type instanceof ZodEffects) {
121717
- return getDiscriminator(type.innerType());
121718
- } else if (type instanceof ZodLiteral) {
121719
- return [type.value];
121720
- } else if (type instanceof ZodEnum) {
121721
- return type.options;
121722
- } else if (type instanceof ZodNativeEnum) {
121723
- return Object.keys(type.enum);
121724
- } else if (type instanceof ZodDefault) {
121725
- return getDiscriminator(type._def.innerType);
121726
- } else if (type instanceof ZodUndefined) {
121876
+ const getDiscriminator = (type2) => {
121877
+ if (type2 instanceof ZodLazy) {
121878
+ return getDiscriminator(type2.schema);
121879
+ } else if (type2 instanceof ZodEffects) {
121880
+ return getDiscriminator(type2.innerType());
121881
+ } else if (type2 instanceof ZodLiteral) {
121882
+ return [type2.value];
121883
+ } else if (type2 instanceof ZodEnum) {
121884
+ return type2.options;
121885
+ } else if (type2 instanceof ZodNativeEnum) {
121886
+ return Object.keys(type2.enum);
121887
+ } else if (type2 instanceof ZodDefault) {
121888
+ return getDiscriminator(type2._def.innerType);
121889
+ } else if (type2 instanceof ZodUndefined) {
121727
121890
  return [void 0];
121728
- } else if (type instanceof ZodNull) {
121891
+ } else if (type2 instanceof ZodNull) {
121729
121892
  return [null];
121730
121893
  } else {
121731
121894
  return null;
@@ -121786,8 +121949,8 @@ class ZodDiscriminatedUnion extends ZodType {
121786
121949
  */
121787
121950
  static create(discriminator, options, params) {
121788
121951
  const optionsMap = /* @__PURE__ */ new Map();
121789
- for (const type of options) {
121790
- const discriminatorValues = getDiscriminator(type.shape[discriminator]);
121952
+ for (const type2 of options) {
121953
+ const discriminatorValues = getDiscriminator(type2.shape[discriminator]);
121791
121954
  if (!discriminatorValues) {
121792
121955
  throw new Error(`A discriminator value for key \`${discriminator}\` could not be extracted from all schema options`);
121793
121956
  }
@@ -121795,7 +121958,7 @@ class ZodDiscriminatedUnion extends ZodType {
121795
121958
  if (optionsMap.has(value)) {
121796
121959
  throw new Error(`Discriminator property ${String(discriminator)} has duplicate value ${String(value)}`);
121797
121960
  }
121798
- optionsMap.set(value, type);
121961
+ optionsMap.set(value, type2);
121799
121962
  }
121800
121963
  }
121801
121964
  return new ZodDiscriminatedUnion({
@@ -122588,9 +122751,9 @@ class ZodOptional extends ZodType {
122588
122751
  return this._def.innerType;
122589
122752
  }
122590
122753
  }
122591
- ZodOptional.create = (type, params) => {
122754
+ ZodOptional.create = (type2, params) => {
122592
122755
  return new ZodOptional({
122593
- innerType: type,
122756
+ innerType: type2,
122594
122757
  typeName: ZodFirstPartyTypeKind.ZodOptional,
122595
122758
  ...processCreateParams(params)
122596
122759
  });
@@ -122607,9 +122770,9 @@ class ZodNullable extends ZodType {
122607
122770
  return this._def.innerType;
122608
122771
  }
122609
122772
  }
122610
- ZodNullable.create = (type, params) => {
122773
+ ZodNullable.create = (type2, params) => {
122611
122774
  return new ZodNullable({
122612
- innerType: type,
122775
+ innerType: type2,
122613
122776
  typeName: ZodFirstPartyTypeKind.ZodNullable,
122614
122777
  ...processCreateParams(params)
122615
122778
  });
@@ -122631,9 +122794,9 @@ class ZodDefault extends ZodType {
122631
122794
  return this._def.innerType;
122632
122795
  }
122633
122796
  }
122634
- ZodDefault.create = (type, params) => {
122797
+ ZodDefault.create = (type2, params) => {
122635
122798
  return new ZodDefault({
122636
- innerType: type,
122799
+ innerType: type2,
122637
122800
  typeName: ZodFirstPartyTypeKind.ZodDefault,
122638
122801
  defaultValue: typeof params.default === "function" ? params.default : () => params.default,
122639
122802
  ...processCreateParams(params)
@@ -122684,9 +122847,9 @@ class ZodCatch extends ZodType {
122684
122847
  return this._def.innerType;
122685
122848
  }
122686
122849
  }
122687
- ZodCatch.create = (type, params) => {
122850
+ ZodCatch.create = (type2, params) => {
122688
122851
  return new ZodCatch({
122689
- innerType: type,
122852
+ innerType: type2,
122690
122853
  typeName: ZodFirstPartyTypeKind.ZodCatch,
122691
122854
  catchValue: typeof params.catch === "function" ? params.catch : () => params.catch,
122692
122855
  ...processCreateParams(params)
@@ -122791,9 +122954,9 @@ class ZodReadonly extends ZodType {
122791
122954
  return result;
122792
122955
  }
122793
122956
  }
122794
- ZodReadonly.create = (type, params) => {
122957
+ ZodReadonly.create = (type2, params) => {
122795
122958
  return new ZodReadonly({
122796
- innerType: type,
122959
+ innerType: type2,
122797
122960
  typeName: ZodFirstPartyTypeKind.ZodReadonly,
122798
122961
  ...processCreateParams(params)
122799
122962
  });
@@ -125613,7 +125776,7 @@ const dext = new Uint8Array([
125613
125776
  64,
125614
125777
  64
125615
125778
  ]);
125616
- const inflate_table = (type, lens2, lens_index, codes, table, table_index, work, opts) => {
125779
+ const inflate_table = (type2, lens2, lens_index, codes, table, table_index, work, opts) => {
125617
125780
  const bits = opts.bits;
125618
125781
  let len2 = 0;
125619
125782
  let sym = 0;
@@ -125674,7 +125837,7 @@ const inflate_table = (type, lens2, lens_index, codes, table, table_index, work,
125674
125837
  return -1;
125675
125838
  }
125676
125839
  }
125677
- if (left > 0 && (type === CODES || max2 !== 1)) {
125840
+ if (left > 0 && (type2 === CODES || max2 !== 1)) {
125678
125841
  return -1;
125679
125842
  }
125680
125843
  offs[1] = 0;
@@ -125686,10 +125849,10 @@ const inflate_table = (type, lens2, lens_index, codes, table, table_index, work,
125686
125849
  work[offs[lens2[lens_index + sym]]++] = sym;
125687
125850
  }
125688
125851
  }
125689
- if (type === CODES) {
125852
+ if (type2 === CODES) {
125690
125853
  base = extra = work;
125691
125854
  end = 19;
125692
- } else if (type === LENS) {
125855
+ } else if (type2 === LENS) {
125693
125856
  base = lbase;
125694
125857
  base_index -= 257;
125695
125858
  extra = lext;
@@ -125709,7 +125872,7 @@ const inflate_table = (type, lens2, lens_index, codes, table, table_index, work,
125709
125872
  low = -1;
125710
125873
  used = 1 << root2;
125711
125874
  mask = used - 1;
125712
- if (type === LENS && used > ENOUGH_LENS || type === DISTS && used > ENOUGH_DISTS) {
125875
+ if (type2 === LENS && used > ENOUGH_LENS || type2 === DISTS && used > ENOUGH_DISTS) {
125713
125876
  return 1;
125714
125877
  }
125715
125878
  for (; ; ) {
@@ -125764,7 +125927,7 @@ const inflate_table = (type, lens2, lens_index, codes, table, table_index, work,
125764
125927
  left <<= 1;
125765
125928
  }
125766
125929
  used += 1 << curr;
125767
- if (type === LENS && used > ENOUGH_LENS || type === DISTS && used > ENOUGH_DISTS) {
125930
+ if (type2 === LENS && used > ENOUGH_LENS || type2 === DISTS && used > ENOUGH_DISTS) {
125768
125931
  return 1;
125769
125932
  }
125770
125933
  low = huff & mask;
@@ -125976,7 +126139,7 @@ const fixedtables = (state) => {
125976
126139
  state.distcode = distfix;
125977
126140
  state.distbits = 5;
125978
126141
  };
125979
- const updatewindow = (strm, src2, end, copy2) => {
126142
+ const updatewindow = (strm, src, end, copy2) => {
125980
126143
  let dist;
125981
126144
  const state = strm.state;
125982
126145
  if (state.window === null) {
@@ -125986,7 +126149,7 @@ const updatewindow = (strm, src2, end, copy2) => {
125986
126149
  state.window = new Uint8Array(state.wsize);
125987
126150
  }
125988
126151
  if (copy2 >= state.wsize) {
125989
- state.window.set(src2.subarray(end - state.wsize, end), 0);
126152
+ state.window.set(src.subarray(end - state.wsize, end), 0);
125990
126153
  state.wnext = 0;
125991
126154
  state.whave = state.wsize;
125992
126155
  } else {
@@ -125994,10 +126157,10 @@ const updatewindow = (strm, src2, end, copy2) => {
125994
126157
  if (dist > copy2) {
125995
126158
  dist = copy2;
125996
126159
  }
125997
- state.window.set(src2.subarray(end - copy2, end - copy2 + dist), state.wnext);
126160
+ state.window.set(src.subarray(end - copy2, end - copy2 + dist), state.wnext);
125998
126161
  copy2 -= dist;
125999
126162
  if (copy2) {
126000
- state.window.set(src2.subarray(end - copy2, end), 0);
126163
+ state.window.set(src.subarray(end - copy2, end), 0);
126001
126164
  state.wnext = copy2;
126002
126165
  state.whave = state.wsize;
126003
126166
  } else {
@@ -127263,8 +127426,8 @@ let __toBinary = IS_NODE ? (base64) => new Uint8Array(Buffer.from(base64, "base6
127263
127426
  return bytes;
127264
127427
  };
127265
127428
  })();
127266
- function initEmscriptenModule(moduleFactory, src2) {
127267
- const wasmBinary = __toBinary(src2);
127429
+ function initEmscriptenModule(moduleFactory, src) {
127430
+ const wasmBinary = __toBinary(src);
127268
127431
  return moduleFactory({ noInitialRun: true, wasmBinary });
127269
127432
  }
127270
127433
  var blosc_codec = function() {
@@ -133207,7 +133370,7 @@ class BitmaskLayer2 extends XRLayer {
133207
133370
  } = this.state;
133208
133371
  if (textures && model) {
133209
133372
  const scaleFactor = 1 / 2 ** (maxZoom - zoom);
133210
- const colors = Object.fromEntries(range$5(MAX_CHANNELS).map((i2) => [`color${i2}`, getColor(channelColors[i2])]));
133373
+ const colors = Object.fromEntries(range$6(MAX_CHANNELS).map((i2) => [`color${i2}`, getColor(channelColors[i2])]));
133211
133374
  model.setUniforms(Object.assign({}, uniforms, {
133212
133375
  ...colors,
133213
133376
  // Bitmask image channel data textures
@@ -133767,8 +133930,8 @@ function getNgffAxes(firstMultiscalesAxes) {
133767
133930
  if (typeof axis === "string") {
133768
133931
  return { name: axis, type: getDefaultAxisType(axis) };
133769
133932
  }
133770
- const { name: name2, type } = axis;
133771
- return { name: name2, type: type ?? getDefaultAxisType(name2) };
133933
+ const { name: name2, type: type2 } = axis;
133934
+ return { name: name2, type: type2 ?? getDefaultAxisType(name2) };
133772
133935
  });
133773
133936
  }
133774
133937
  return axes;
@@ -133822,23 +133985,23 @@ function normalizeCoordinateTransformations(coordinateTransformations, datasets)
133822
133985
  if (Array.isArray(coordinateTransformations)) {
133823
133986
  result = coordinateTransformations.map((transform2) => {
133824
133987
  if (transform2.input && transform2.output) {
133825
- const { type } = transform2;
133826
- if (type === "translation") {
133988
+ const { type: type2 } = transform2;
133989
+ if (type2 === "translation") {
133827
133990
  return {
133828
- type,
133991
+ type: type2,
133829
133992
  translation: transform2.translation
133830
133993
  };
133831
133994
  }
133832
- if (type === "scale") {
133995
+ if (type2 === "scale") {
133833
133996
  return {
133834
- type,
133997
+ type: type2,
133835
133998
  scale: transform2.scale
133836
133999
  };
133837
134000
  }
133838
- if (type === "identity") {
133839
- return { type };
134001
+ if (type2 === "identity") {
134002
+ return { type: type2 };
133840
134003
  }
133841
- console.warn(`Coordinate transformation type "${type}" is not supported.`);
134004
+ console.warn(`Coordinate transformation type "${type2}" is not supported.`);
133842
134005
  }
133843
134006
  return transform2;
133844
134007
  });
@@ -134255,12 +134418,12 @@ function empty_like(chunk, order) {
134255
134418
  stride: get_strides(chunk.shape, order)
134256
134419
  };
134257
134420
  }
134258
- function convert_array_order(src2, target) {
134259
- let out = empty_like(src2, target);
134260
- let n_dims = src2.shape.length;
134261
- let size2 = src2.data.length;
134421
+ function convert_array_order(src, target) {
134422
+ let out = empty_like(src, target);
134423
+ let n_dims = src.shape.length;
134424
+ let size2 = src.data.length;
134262
134425
  let index2 = Array(n_dims).fill(0);
134263
- let src_data = proxy(src2.data);
134426
+ let src_data = proxy(src.data);
134264
134427
  let out_data = proxy(out.data);
134265
134428
  for (let src_idx = 0; src_idx < size2; src_idx++) {
134266
134429
  let out_idx = 0;
@@ -134270,7 +134433,7 @@ function convert_array_order(src2, target) {
134270
134433
  out_data[out_idx] = src_data[src_idx];
134271
134434
  index2[0] += 1;
134272
134435
  for (let dim = 0; dim < n_dims; dim++) {
134273
- if (index2[dim] === src2.shape[dim]) {
134436
+ if (index2[dim] === src.shape[dim]) {
134274
134437
  if (dim + 1 === n_dims) {
134275
134438
  break;
134276
134439
  }
@@ -135157,9 +135320,9 @@ const setter = {
135157
135320
  let view = compat_chunk(dest);
135158
135321
  set_scalar_binary(view, sel, compat_scalar(dest, value), view.bytes_per_element);
135159
135322
  },
135160
- set_from_chunk(dest, src2, projections) {
135323
+ set_from_chunk(dest, src, projections) {
135161
135324
  let view = compat_chunk(dest);
135162
- set_from_chunk_binary(view, compat_chunk(src2), view.bytes_per_element, projections);
135325
+ set_from_chunk_binary(view, compat_chunk(src), view.bytes_per_element, projections);
135163
135326
  }
135164
135327
  };
135165
135328
  async function get(arr, selection = null, opts = {}) {
@@ -135198,29 +135361,29 @@ function set_scalar_binary(out, out_selection, value, bytes_per_element2) {
135198
135361
  set_scalar_binary({ data, stride }, slices, value, bytes_per_element2);
135199
135362
  }
135200
135363
  }
135201
- function set_from_chunk_binary(dest, src2, bytes_per_element2, projections) {
135364
+ function set_from_chunk_binary(dest, src, bytes_per_element2, projections) {
135202
135365
  const [proj, ...projs] = projections;
135203
135366
  const [dstride, ...dstrides] = dest.stride;
135204
- const [sstride, ...sstrides] = src2.stride;
135367
+ const [sstride, ...sstrides] = src.stride;
135205
135368
  if (proj.from === null) {
135206
135369
  if (projs.length === 0) {
135207
- dest.data.set(src2.data.subarray(0, bytes_per_element2), proj.to * bytes_per_element2);
135370
+ dest.data.set(src.data.subarray(0, bytes_per_element2), proj.to * bytes_per_element2);
135208
135371
  return;
135209
135372
  }
135210
135373
  set_from_chunk_binary({
135211
135374
  data: dest.data.subarray(dstride * proj.to * bytes_per_element2),
135212
135375
  stride: dstrides
135213
- }, src2, bytes_per_element2, projs);
135376
+ }, src, bytes_per_element2, projs);
135214
135377
  return;
135215
135378
  }
135216
135379
  if (proj.to === null) {
135217
135380
  if (projs.length === 0) {
135218
135381
  let offset = proj.from * bytes_per_element2;
135219
- dest.data.set(src2.data.subarray(offset, offset + bytes_per_element2), 0);
135382
+ dest.data.set(src.data.subarray(offset, offset + bytes_per_element2), 0);
135220
135383
  return;
135221
135384
  }
135222
135385
  set_from_chunk_binary(dest, {
135223
- data: src2.data.subarray(sstride * proj.from * bytes_per_element2),
135386
+ data: src.data.subarray(sstride * proj.from * bytes_per_element2),
135224
135387
  stride: sstrides
135225
135388
  }, bytes_per_element2, projs);
135226
135389
  return;
@@ -135232,12 +135395,12 @@ function set_from_chunk_binary(dest, src2, bytes_per_element2, projections) {
135232
135395
  if (step === 1 && sstep === 1 && dstride === 1 && sstride === 1) {
135233
135396
  let offset = sfrom * bytes_per_element2;
135234
135397
  let size2 = len2 * bytes_per_element2;
135235
- dest.data.set(src2.data.subarray(offset, offset + size2), from * bytes_per_element2);
135398
+ dest.data.set(src.data.subarray(offset, offset + size2), from * bytes_per_element2);
135236
135399
  return;
135237
135400
  }
135238
135401
  for (let i2 = 0; i2 < len2; i2++) {
135239
135402
  let offset = sstride * (sfrom + sstep * i2) * bytes_per_element2;
135240
- dest.data.set(src2.data.subarray(offset, offset + bytes_per_element2), dstride * (from + step * i2) * bytes_per_element2);
135403
+ dest.data.set(src.data.subarray(offset, offset + bytes_per_element2), dstride * (from + step * i2) * bytes_per_element2);
135241
135404
  }
135242
135405
  return;
135243
135406
  }
@@ -135246,7 +135409,7 @@ function set_from_chunk_binary(dest, src2, bytes_per_element2, projections) {
135246
135409
  data: dest.data.subarray(dstride * (from + i2 * step) * bytes_per_element2),
135247
135410
  stride: dstrides
135248
135411
  }, {
135249
- data: src2.data.subarray(sstride * (sfrom + i2 * sstep) * bytes_per_element2),
135412
+ data: src.data.subarray(sstride * (sfrom + i2 * sstep) * bytes_per_element2),
135250
135413
  stride: sstrides
135251
135414
  }, bytes_per_element2, projs);
135252
135415
  }