@loaders.gl/las 4.2.0-alpha.3 → 4.2.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -17,16 +17,16 @@ var __copyProps = (to, from, except, desc) => {
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
 
20
- // src/index.ts
21
- var src_exports = {};
22
- __export(src_exports, {
20
+ // dist/index.js
21
+ var dist_exports = {};
22
+ __export(dist_exports, {
23
23
  LASLoader: () => LASLoader3,
24
24
  LASWorkerLoader: () => LASLoader
25
25
  });
26
- module.exports = __toCommonJS(src_exports);
26
+ module.exports = __toCommonJS(dist_exports);
27
27
 
28
- // src/las-loader.ts
29
- var VERSION = typeof __VERSION__ !== "undefined" ? __VERSION__ : "latest";
28
+ // dist/las-loader.js
29
+ var VERSION = true ? "4.2.0-alpha.4" : "latest";
30
30
  var LASLoader = {
31
31
  name: "LAS",
32
32
  id: "las",
@@ -50,10 +50,10 @@ var LASLoader = {
50
50
  }
51
51
  };
52
52
 
53
- // src/lib/parse-las.ts
53
+ // dist/lib/parse-las.js
54
54
  var import_schema2 = require("@loaders.gl/schema");
55
55
 
56
- // src/lib/libs/laz-perf.ts
56
+ // dist/lib/libs/laz-perf.js
57
57
  function getModule() {
58
58
  var Module2 = typeof Module2 !== "undefined" ? Module2 : {};
59
59
  var moduleOverrides = {};
@@ -890,10 +890,7 @@ function getModule() {
890
890
  }
891
891
  function createNamedFunction(name, body) {
892
892
  name = makeLegalFunctionName(name);
893
- return new Function(
894
- "body",
895
- "return function " + name + '() {\n "use strict"; return body.apply(this, arguments);\n};\n'
896
- )(body);
893
+ return new Function("body", "return function " + name + '() {\n "use strict"; return body.apply(this, arguments);\n};\n')(body);
897
894
  }
898
895
  function extendError(baseErrorType, errorName) {
899
896
  var errorClass = createNamedFunction(errorName, function(message) {
@@ -1103,13 +1100,11 @@ function getModule() {
1103
1100
  this.$$.count.value += 1;
1104
1101
  return this;
1105
1102
  } else {
1106
- var clone = attachFinalizer(
1107
- Object.create(Object.getPrototypeOf(this), {
1108
- $$: {
1109
- value: shallowCopyInternalPointer(this.$$)
1110
- }
1111
- })
1112
- );
1103
+ var clone = attachFinalizer(Object.create(Object.getPrototypeOf(this), {
1104
+ $$: {
1105
+ value: shallowCopyInternalPointer(this.$$)
1106
+ }
1107
+ }));
1113
1108
  clone.$$.count.value += 1;
1114
1109
  clone.$$.deleteScheduled = false;
1115
1110
  return clone;
@@ -1170,9 +1165,7 @@ function getModule() {
1170
1165
  var prevFunc = proto[methodName];
1171
1166
  proto[methodName] = function() {
1172
1167
  if (!proto[methodName].overloadTable.hasOwnProperty(arguments.length)) {
1173
- throwBindingError(
1174
- "Function '" + humanName + "' called with an invalid number of arguments (" + arguments.length + ") - expects one of (" + proto[methodName].overloadTable + ")!"
1175
- );
1168
+ throwBindingError("Function '" + humanName + "' called with an invalid number of arguments (" + arguments.length + ") - expects one of (" + proto[methodName].overloadTable + ")!");
1176
1169
  }
1177
1170
  return proto[methodName].overloadTable[arguments.length].apply(this, arguments);
1178
1171
  };
@@ -1187,9 +1180,7 @@ function getModule() {
1187
1180
  }
1188
1181
  ensureOverloadTable(Module2, name, name);
1189
1182
  if (Module2.hasOwnProperty(numArguments)) {
1190
- throwBindingError(
1191
- "Cannot register multiple overloads of a function with the same number of arguments (" + numArguments + ")!"
1192
- );
1183
+ throwBindingError("Cannot register multiple overloads of a function with the same number of arguments (" + numArguments + ")!");
1193
1184
  }
1194
1185
  Module2[name].overloadTable[numArguments] = value;
1195
1186
  } else {
@@ -1213,9 +1204,7 @@ function getModule() {
1213
1204
  function upcastPointer(ptr, ptrClass, desiredClass) {
1214
1205
  while (ptrClass !== desiredClass) {
1215
1206
  if (!ptrClass.upcast) {
1216
- throwBindingError(
1217
- "Expected null or instance of " + desiredClass.name + ", got an instance of " + ptrClass.name
1218
- );
1207
+ throwBindingError("Expected null or instance of " + desiredClass.name + ", got an instance of " + ptrClass.name);
1219
1208
  }
1220
1209
  ptr = ptrClass.upcast(ptr);
1221
1210
  ptrClass = ptrClass.baseClass;
@@ -1262,9 +1251,7 @@ function getModule() {
1262
1251
  throwBindingError("Cannot pass deleted object as a pointer of type " + this.name);
1263
1252
  }
1264
1253
  if (!this.isConst && handle.$$.ptrType.isConst) {
1265
- throwBindingError(
1266
- "Cannot convert argument of type " + (handle.$$.smartPtrType ? handle.$$.smartPtrType.name : handle.$$.ptrType.name) + " to parameter type " + this.name
1267
- );
1254
+ throwBindingError("Cannot convert argument of type " + (handle.$$.smartPtrType ? handle.$$.smartPtrType.name : handle.$$.ptrType.name) + " to parameter type " + this.name);
1268
1255
  }
1269
1256
  var handleClass = handle.$$.ptrType.registeredClass;
1270
1257
  ptr = upcastPointer(handle.$$.ptr, handleClass, this.registeredClass);
@@ -1277,9 +1264,7 @@ function getModule() {
1277
1264
  if (handle.$$.smartPtrType === this) {
1278
1265
  ptr = handle.$$.smartPtr;
1279
1266
  } else {
1280
- throwBindingError(
1281
- "Cannot convert argument of type " + (handle.$$.smartPtrType ? handle.$$.smartPtrType.name : handle.$$.ptrType.name) + " to parameter type " + this.name
1282
- );
1267
+ throwBindingError("Cannot convert argument of type " + (handle.$$.smartPtrType ? handle.$$.smartPtrType.name : handle.$$.ptrType.name) + " to parameter type " + this.name);
1283
1268
  }
1284
1269
  break;
1285
1270
  case 1:
@@ -1290,12 +1275,9 @@ function getModule() {
1290
1275
  ptr = handle.$$.smartPtr;
1291
1276
  } else {
1292
1277
  var clonedHandle = handle["clone"]();
1293
- ptr = this.rawShare(
1294
- ptr,
1295
- __emval_register(function() {
1296
- clonedHandle["delete"]();
1297
- })
1298
- );
1278
+ ptr = this.rawShare(ptr, __emval_register(function() {
1279
+ clonedHandle["delete"]();
1280
+ }));
1299
1281
  if (destructors !== null) {
1300
1282
  destructors.push(this.rawDestructor, ptr);
1301
1283
  }
@@ -1321,9 +1303,7 @@ function getModule() {
1321
1303
  throwBindingError("Cannot pass deleted object as a pointer of type " + this.name);
1322
1304
  }
1323
1305
  if (handle.$$.ptrType.isConst) {
1324
- throwBindingError(
1325
- "Cannot convert argument of type " + handle.$$.ptrType.name + " to parameter type " + this.name
1326
- );
1306
+ throwBindingError("Cannot convert argument of type " + handle.$$.ptrType.name + " to parameter type " + this.name);
1327
1307
  }
1328
1308
  var handleClass = handle.$$.ptrType.registeredClass;
1329
1309
  var ptr = upcastPointer(handle.$$.ptr, handleClass, this.registeredClass);
@@ -1412,13 +1392,11 @@ function getModule() {
1412
1392
  record.count = {
1413
1393
  value: 1
1414
1394
  };
1415
- return attachFinalizer(
1416
- Object.create(prototype, {
1417
- $$: {
1418
- value: record
1419
- }
1420
- })
1421
- );
1395
+ return attachFinalizer(Object.create(prototype, {
1396
+ $$: {
1397
+ value: record
1398
+ }
1399
+ }));
1422
1400
  }
1423
1401
  function RegisteredPointer_fromWireType(ptr) {
1424
1402
  var rawPointer = this.getPointee(ptr);
@@ -1541,9 +1519,7 @@ function getModule() {
1541
1519
  var dc = Module2["dynCall_" + signature];
1542
1520
  var fp = makeDynCaller(dc);
1543
1521
  if (typeof fp !== "function") {
1544
- throwBindingError(
1545
- "unknown function pointer with signature " + signature + ": " + rawFunction
1546
- );
1522
+ throwBindingError("unknown function pointer with signature " + signature + ": " + rawFunction);
1547
1523
  }
1548
1524
  return fp;
1549
1525
  }
@@ -1590,73 +1566,46 @@ function getModule() {
1590
1566
  baseClassRawType
1591
1567
  ]);
1592
1568
  });
1593
- whenDependentTypesAreResolved(
1594
- [rawType, rawPointerType, rawConstPointerType],
1595
- baseClassRawType ? [baseClassRawType] : [],
1596
- function(base) {
1597
- base = base[0];
1598
- var baseClass;
1599
- var basePrototype;
1600
- if (baseClassRawType) {
1601
- baseClass = base.registeredClass;
1602
- basePrototype = baseClass.instancePrototype;
1603
- } else {
1604
- basePrototype = ClassHandle.prototype;
1605
- }
1606
- var constructor = createNamedFunction(legalFunctionName, function() {
1607
- if (Object.getPrototypeOf(this) !== instancePrototype) {
1608
- throw new BindingError("Use 'new' to construct " + name);
1609
- }
1610
- if (void 0 === registeredClass.constructor_body) {
1611
- throw new BindingError(name + " has no accessible constructor");
1612
- }
1613
- var body = registeredClass.constructor_body[arguments.length];
1614
- if (void 0 === body) {
1615
- throw new BindingError(
1616
- "Tried to invoke ctor of " + name + " with invalid number of parameters (" + arguments.length + ") - expected (" + Object.keys(registeredClass.constructor_body).toString() + ") parameters instead!"
1617
- );
1618
- }
1619
- return body.apply(this, arguments);
1620
- });
1621
- var instancePrototype = Object.create(basePrototype, {
1622
- constructor: {
1623
- value: constructor
1624
- }
1625
- });
1626
- constructor.prototype = instancePrototype;
1627
- var registeredClass = new RegisteredClass(
1628
- name,
1629
- constructor,
1630
- instancePrototype,
1631
- rawDestructor,
1632
- baseClass,
1633
- getActualType,
1634
- upcast,
1635
- downcast
1636
- );
1637
- var referenceConverter = new RegisteredPointer(name, registeredClass, true, false, false);
1638
- var pointerConverter = new RegisteredPointer(
1639
- name + "*",
1640
- registeredClass,
1641
- false,
1642
- false,
1643
- false
1644
- );
1645
- var constPointerConverter = new RegisteredPointer(
1646
- name + " const*",
1647
- registeredClass,
1648
- false,
1649
- true,
1650
- false
1651
- );
1652
- registeredPointers[rawType] = {
1653
- pointerType: pointerConverter,
1654
- constPointerType: constPointerConverter
1655
- };
1656
- replacePublicSymbol(legalFunctionName, constructor);
1657
- return [referenceConverter, pointerConverter, constPointerConverter];
1569
+ whenDependentTypesAreResolved([rawType, rawPointerType, rawConstPointerType], baseClassRawType ? [baseClassRawType] : [], function(base) {
1570
+ base = base[0];
1571
+ var baseClass;
1572
+ var basePrototype;
1573
+ if (baseClassRawType) {
1574
+ baseClass = base.registeredClass;
1575
+ basePrototype = baseClass.instancePrototype;
1576
+ } else {
1577
+ basePrototype = ClassHandle.prototype;
1658
1578
  }
1659
- );
1579
+ var constructor = createNamedFunction(legalFunctionName, function() {
1580
+ if (Object.getPrototypeOf(this) !== instancePrototype) {
1581
+ throw new BindingError("Use 'new' to construct " + name);
1582
+ }
1583
+ if (void 0 === registeredClass.constructor_body) {
1584
+ throw new BindingError(name + " has no accessible constructor");
1585
+ }
1586
+ var body = registeredClass.constructor_body[arguments.length];
1587
+ if (void 0 === body) {
1588
+ throw new BindingError("Tried to invoke ctor of " + name + " with invalid number of parameters (" + arguments.length + ") - expected (" + Object.keys(registeredClass.constructor_body).toString() + ") parameters instead!");
1589
+ }
1590
+ return body.apply(this, arguments);
1591
+ });
1592
+ var instancePrototype = Object.create(basePrototype, {
1593
+ constructor: {
1594
+ value: constructor
1595
+ }
1596
+ });
1597
+ constructor.prototype = instancePrototype;
1598
+ var registeredClass = new RegisteredClass(name, constructor, instancePrototype, rawDestructor, baseClass, getActualType, upcast, downcast);
1599
+ var referenceConverter = new RegisteredPointer(name, registeredClass, true, false, false);
1600
+ var pointerConverter = new RegisteredPointer(name + "*", registeredClass, false, false, false);
1601
+ var constPointerConverter = new RegisteredPointer(name + " const*", registeredClass, false, true, false);
1602
+ registeredPointers[rawType] = {
1603
+ pointerType: pointerConverter,
1604
+ constPointerType: constPointerConverter
1605
+ };
1606
+ replacePublicSymbol(legalFunctionName, constructor);
1607
+ return [referenceConverter, pointerConverter, constPointerConverter];
1608
+ });
1660
1609
  }
1661
1610
  function heap32VectorToArray(count, firstElement) {
1662
1611
  var array = [];
@@ -1685,22 +1634,15 @@ function getModule() {
1685
1634
  classType.registeredClass.constructor_body = [];
1686
1635
  }
1687
1636
  if (void 0 !== classType.registeredClass.constructor_body[argCount - 1]) {
1688
- throw new BindingError(
1689
- "Cannot register multiple constructors with identical number of parameters (" + (argCount - 1) + ") for class '" + classType.name + "'! Overload resolution is currently only performed using the parameter count, not actual type info!"
1690
- );
1637
+ throw new BindingError("Cannot register multiple constructors with identical number of parameters (" + (argCount - 1) + ") for class '" + classType.name + "'! Overload resolution is currently only performed using the parameter count, not actual type info!");
1691
1638
  }
1692
1639
  classType.registeredClass.constructor_body[argCount - 1] = function unboundTypeHandler() {
1693
- throwUnboundTypeError(
1694
- "Cannot construct " + classType.name + " due to unbound types",
1695
- rawArgTypes
1696
- );
1640
+ throwUnboundTypeError("Cannot construct " + classType.name + " due to unbound types", rawArgTypes);
1697
1641
  };
1698
1642
  whenDependentTypesAreResolved([], rawArgTypes, function(argTypes) {
1699
1643
  classType.registeredClass.constructor_body[argCount - 1] = function constructor_body() {
1700
1644
  if (arguments.length !== argCount - 1) {
1701
- throwBindingError(
1702
- humanName + " called with " + arguments.length + " arguments, expected " + (argCount - 1)
1703
- );
1645
+ throwBindingError(humanName + " called with " + arguments.length + " arguments, expected " + (argCount - 1));
1704
1646
  }
1705
1647
  destructors.length = 0;
1706
1648
  args.length = argCount;
@@ -1718,9 +1660,7 @@ function getModule() {
1718
1660
  }
1719
1661
  function new_(constructor, argumentList) {
1720
1662
  if (!(constructor instanceof Function)) {
1721
- throw new TypeError(
1722
- "new_ called with constructor type " + typeof constructor + " which is not a function"
1723
- );
1663
+ throw new TypeError("new_ called with constructor type " + typeof constructor + " which is not a function");
1724
1664
  }
1725
1665
  var dummy = createNamedFunction(constructor.name || "unknownFunctionName", function() {
1726
1666
  });
@@ -1732,9 +1672,7 @@ function getModule() {
1732
1672
  function craftInvokerFunction(humanName, argTypes, classType, cppInvokerFunc, cppTargetFunc) {
1733
1673
  var argCount = argTypes.length;
1734
1674
  if (argCount < 2) {
1735
- throwBindingError(
1736
- "argTypes array size mismatch! Must at least get return value and 'this' types!"
1737
- );
1675
+ throwBindingError("argTypes array size mismatch! Must at least get return value and 'this' types!");
1738
1676
  }
1739
1677
  var isClassMethodFunc = argTypes[1] !== null && classType !== null;
1740
1678
  var needsDestructorStack = false;
@@ -1822,13 +1760,7 @@ function getModule() {
1822
1760
  proto[methodName].overloadTable[argCount - 2] = unboundTypesHandler;
1823
1761
  }
1824
1762
  whenDependentTypesAreResolved([], rawArgTypes, function(argTypes) {
1825
- var memberFunction = craftInvokerFunction(
1826
- humanName,
1827
- argTypes,
1828
- classType,
1829
- rawInvoker,
1830
- context
1831
- );
1763
+ var memberFunction = craftInvokerFunction(humanName, argTypes, classType, rawInvoker, context);
1832
1764
  if (void 0 === proto[methodName].overloadTable) {
1833
1765
  memberFunction.argCount = argCount - 2;
1834
1766
  proto[methodName] = memberFunction;
@@ -2016,9 +1948,7 @@ function getModule() {
2016
1948
  throw new TypeError('Cannot convert "' + _embind_repr(value) + '" to ' + this.name);
2017
1949
  }
2018
1950
  if (value < minRange || value > maxRange) {
2019
- throw new TypeError(
2020
- 'Passing a number "' + _embind_repr(value) + '" from JS side to C/C++ side to an argument of type "' + name + '", which is outside the valid range [' + minRange + ", " + maxRange + "]!"
2021
- );
1951
+ throw new TypeError('Passing a number "' + _embind_repr(value) + '" from JS side to C/C++ side to an argument of type "' + name + '", which is outside the valid range [' + minRange + ", " + maxRange + "]!");
2022
1952
  }
2023
1953
  return isUnsignedType ? value >>> 0 : value | 0;
2024
1954
  },
@@ -2047,18 +1977,14 @@ function getModule() {
2047
1977
  return new TA(buffer, data2, size);
2048
1978
  }
2049
1979
  name = readLatin1String(name);
2050
- registerType(
2051
- rawType,
2052
- {
2053
- name,
2054
- fromWireType: decodeMemoryView,
2055
- argPackAdvance: 8,
2056
- readValueFromPointer: decodeMemoryView
2057
- },
2058
- {
2059
- ignoreDuplicateRegistrations: true
2060
- }
2061
- );
1980
+ registerType(rawType, {
1981
+ name,
1982
+ fromWireType: decodeMemoryView,
1983
+ argPackAdvance: 8,
1984
+ readValueFromPointer: decodeMemoryView
1985
+ }, {
1986
+ ignoreDuplicateRegistrations: true
1987
+ });
2062
1988
  }
2063
1989
  function __embind_register_std_string(rawType, name) {
2064
1990
  name = readLatin1String(name);
@@ -2257,10 +2183,7 @@ function getModule() {
2257
2183
  var chr = array[i];
2258
2184
  if (chr > 255) {
2259
2185
  if (ASSERTIONS) {
2260
- assert(
2261
- false,
2262
- "Character code " + chr + " (" + String.fromCharCode(chr) + ") at offset " + i + " not in 0x00-0xFF."
2263
- );
2186
+ assert(false, "Character code " + chr + " (" + String.fromCharCode(chr) + ") at offset " + i + " not in 0x00-0xFF.");
2264
2187
  }
2265
2188
  chr &= 255;
2266
2189
  }
@@ -3212,12 +3135,7 @@ function getModule() {
3212
3135
  h2 = c[5374] | 0;
3213
3136
  j2 = ((c[5376] | 0) - h2 | 0) / 24 | 0;
3214
3137
  i2 = j2 << 1;
3215
- ub(
3216
- e2,
3217
- j2 >>> 0 < d2 >>> 1 >>> 0 ? i2 >>> 0 < b2 >>> 0 ? b2 : i2 : d2,
3218
- ((c[5375] | 0) - h2 | 0) / 24 | 0,
3219
- 21504
3220
- );
3138
+ ub(e2, j2 >>> 0 < d2 >>> 1 >>> 0 ? i2 >>> 0 < b2 >>> 0 ? b2 : i2 : d2, ((c[5375] | 0) - h2 | 0) / 24 | 0, 21504);
3221
3139
  d2 = e2 + 8 | 0;
3222
3140
  sb(c[d2 >> 2] | 0, f2);
3223
3141
  c[d2 >> 2] = (c[d2 >> 2] | 0) + 24;
@@ -3892,12 +3810,7 @@ function getModule() {
3892
3810
  k2 = j2 + (b2 * 6 | 0) | 0;
3893
3811
  i2 = j2 + (b2 * 6 | 0) + 2 | 0;
3894
3812
  j2 = j2 + (b2 * 6 | 0) + 4 | 0;
3895
- _b(
3896
- g2,
3897
- (d[k2 >> 0] | d[k2 + 1 >> 0] << 8) & 65535,
3898
- (d[i2 >> 0] | d[i2 + 1 >> 0] << 8) & 65535,
3899
- (d[j2 >> 0] | d[j2 + 1 >> 0] << 8) & 65535
3900
- );
3813
+ _b(g2, (d[k2 >> 0] | d[k2 + 1 >> 0] << 8) & 65535, (d[i2 >> 0] | d[i2 + 1 >> 0] << 8) & 65535, (d[j2 >> 0] | d[j2 + 1 >> 0] << 8) & 65535);
3901
3814
  Zb(a2, g2);
3902
3815
  c2 = c2 - ((d[i2 >> 0] | d[i2 + 1 >> 0] << 8) & 65535) | 0;
3903
3816
  b2 = b2 + 1 | 0;
@@ -4074,12 +3987,7 @@ function getModule() {
4074
3987
  j2 = c[a2 >> 2] | 0;
4075
3988
  k2 = ((c[h2 >> 2] | 0) - j2 | 0) / 12 | 0;
4076
3989
  h2 = k2 << 1;
4077
- bc(
4078
- f2,
4079
- k2 >>> 0 < e2 >>> 1 >>> 0 ? h2 >>> 0 < d2 >>> 0 ? d2 : h2 : e2,
4080
- ((c[g2 >> 2] | 0) - j2 | 0) / 12 | 0,
4081
- a2 + 8 | 0
4082
- );
3990
+ bc(f2, k2 >>> 0 < e2 >>> 1 >>> 0 ? h2 >>> 0 < d2 >>> 0 ? d2 : h2 : e2, ((c[g2 >> 2] | 0) - j2 | 0) / 12 | 0, a2 + 8 | 0);
4083
3991
  h2 = f2 + 8 | 0;
4084
3992
  g2 = c[h2 >> 2] | 0;
4085
3993
  c[g2 >> 2] = c[b2 >> 2];
@@ -4389,12 +4297,7 @@ function getModule() {
4389
4297
  r2 = c[k2 >> 2] | 0;
4390
4298
  t2 = ((c[g2 >> 2] | 0) - r2 | 0) / 44 | 0;
4391
4299
  s2 = t2 << 1;
4392
- Sc(
4393
- o2,
4394
- t2 >>> 0 < d2 >>> 1 >>> 0 ? s2 >>> 0 < b2 >>> 0 ? b2 : s2 : d2,
4395
- ((c[l2 >> 2] | 0) - r2 | 0) / 44 | 0,
4396
- i2
4397
- );
4300
+ Sc(o2, t2 >>> 0 < d2 >>> 1 >>> 0 ? s2 >>> 0 < b2 >>> 0 ? b2 : s2 : d2, ((c[l2 >> 2] | 0) - r2 | 0) / 44 | 0, i2);
4398
4301
  Rc(c[j2 >> 2] | 0, p2);
4399
4302
  c[j2 >> 2] = (c[j2 >> 2] | 0) + 44;
4400
4303
  Tc(k2, o2);
@@ -4436,12 +4339,7 @@ function getModule() {
4436
4339
  t2 = c[i2 >> 2] | 0;
4437
4340
  r2 = ((c[k2 >> 2] | 0) - t2 | 0) / 44 | 0;
4438
4341
  s2 = r2 << 1;
4439
- Sc(
4440
- o2,
4441
- r2 >>> 0 < d2 >>> 1 >>> 0 ? s2 >>> 0 < b2 >>> 0 ? b2 : s2 : d2,
4442
- ((c[j2 >> 2] | 0) - t2 | 0) / 44 | 0,
4443
- f2
4444
- );
4342
+ Sc(o2, r2 >>> 0 < d2 >>> 1 >>> 0 ? s2 >>> 0 < b2 >>> 0 ? b2 : s2 : d2, ((c[j2 >> 2] | 0) - t2 | 0) / 44 | 0, f2);
4445
4343
  Rc(c[g2 >> 2] | 0, p2);
4446
4344
  c[g2 >> 2] = (c[g2 >> 2] | 0) + 44;
4447
4345
  Tc(i2, o2);
@@ -4520,12 +4418,7 @@ function getModule() {
4520
4418
  j2 = c[a2 >> 2] | 0;
4521
4419
  k2 = (c[g2 >> 2] | 0) - j2 | 0;
4522
4420
  g2 = k2 >> 2;
4523
- xc(
4524
- f2,
4525
- k2 >> 3 >>> 0 < e2 >>> 1 >>> 0 ? g2 >>> 0 < d2 >>> 0 ? d2 : g2 : e2,
4526
- (c[h2 >> 2] | 0) - j2 >> 3,
4527
- a2 + 8 | 0
4528
- );
4421
+ xc(f2, k2 >> 3 >>> 0 < e2 >>> 1 >>> 0 ? g2 >>> 0 < d2 >>> 0 ? d2 : g2 : e2, (c[h2 >> 2] | 0) - j2 >> 3, a2 + 8 | 0);
4529
4422
  yc(f2, b2);
4530
4423
  zc(a2, f2);
4531
4424
  Ac(f2);
@@ -5606,12 +5499,7 @@ function getModule() {
5606
5499
  k2 = c[g2 >> 2] | 0;
5607
5500
  l2 = (c[i2 >> 2] | 0) - k2 | 0;
5608
5501
  i2 = l2 >> 2;
5609
- be(
5610
- e2,
5611
- l2 >> 3 >>> 0 < d2 >>> 1 >>> 0 ? i2 >>> 0 < b2 >>> 0 ? b2 : i2 : d2,
5612
- (c[h2 >> 2] | 0) - k2 >> 3,
5613
- a2 + 16 | 0
5614
- );
5502
+ be(e2, l2 >> 3 >>> 0 < d2 >>> 1 >>> 0 ? i2 >>> 0 < b2 >>> 0 ? b2 : i2 : d2, (c[h2 >> 2] | 0) - k2 >> 3, a2 + 16 | 0);
5615
5503
  i2 = e2 + 8 | 0;
5616
5504
  h2 = c[i2 >> 2] | 0;
5617
5505
  c[h2 >> 2] = c[f2 >> 2];
@@ -5668,12 +5556,7 @@ function getModule() {
5668
5556
  k2 = c[g2 >> 2] | 0;
5669
5557
  l2 = (c[i2 >> 2] | 0) - k2 | 0;
5670
5558
  i2 = l2 >> 2;
5671
- be(
5672
- e2,
5673
- l2 >> 3 >>> 0 < d2 >>> 1 >>> 0 ? i2 >>> 0 < b2 >>> 0 ? b2 : i2 : d2,
5674
- (c[h2 >> 2] | 0) - k2 >> 3,
5675
- a2 + 16 | 0
5676
- );
5559
+ be(e2, l2 >> 3 >>> 0 < d2 >>> 1 >>> 0 ? i2 >>> 0 < b2 >>> 0 ? b2 : i2 : d2, (c[h2 >> 2] | 0) - k2 >> 3, a2 + 16 | 0);
5677
5560
  i2 = e2 + 8 | 0;
5678
5561
  h2 = c[i2 >> 2] | 0;
5679
5562
  c[h2 >> 2] = c[f2 >> 2];
@@ -5730,12 +5613,7 @@ function getModule() {
5730
5613
  k2 = c[g2 >> 2] | 0;
5731
5614
  l2 = (c[i2 >> 2] | 0) - k2 | 0;
5732
5615
  i2 = l2 >> 2;
5733
- be(
5734
- e2,
5735
- l2 >> 3 >>> 0 < d2 >>> 1 >>> 0 ? i2 >>> 0 < b2 >>> 0 ? b2 : i2 : d2,
5736
- (c[h2 >> 2] | 0) - k2 >> 3,
5737
- a2 + 16 | 0
5738
- );
5616
+ be(e2, l2 >> 3 >>> 0 < d2 >>> 1 >>> 0 ? i2 >>> 0 < b2 >>> 0 ? b2 : i2 : d2, (c[h2 >> 2] | 0) - k2 >> 3, a2 + 16 | 0);
5739
5617
  i2 = e2 + 8 | 0;
5740
5618
  h2 = c[i2 >> 2] | 0;
5741
5619
  c[h2 >> 2] = c[f2 >> 2];
@@ -5793,12 +5671,7 @@ function getModule() {
5793
5671
  k2 = c[f2 >> 2] | 0;
5794
5672
  l2 = (c[e2 >> 2] | 0) - k2 | 0;
5795
5673
  e2 = l2 >> 2;
5796
- be(
5797
- h2,
5798
- l2 >> 3 >>> 0 < d2 >>> 1 >>> 0 ? e2 >>> 0 < b2 >>> 0 ? b2 : e2 : d2,
5799
- (c[g2 >> 2] | 0) - k2 >> 3,
5800
- a2 + 16 | 0
5801
- );
5674
+ be(h2, l2 >> 3 >>> 0 < d2 >>> 1 >>> 0 ? e2 >>> 0 < b2 >>> 0 ? b2 : e2 : d2, (c[g2 >> 2] | 0) - k2 >> 3, a2 + 16 | 0);
5802
5675
  a2 = h2 + 8 | 0;
5803
5676
  g2 = c[a2 >> 2] | 0;
5804
5677
  c[g2 >> 2] = c[i2 >> 2];
@@ -6878,15 +6751,9 @@ function getModule() {
6878
6751
  var e2 = 0;
6879
6752
  Se(d[b2 >> 0] | d[b2 + 1 >> 0] << 8 | d[b2 + 2 >> 0] << 16 | d[b2 + 3 >> 0] << 24, c2);
6880
6753
  e2 = b2 + 4 | 0;
6881
- Se(
6882
- d[e2 >> 0] | d[e2 + 1 >> 0] << 8 | d[e2 + 2 >> 0] << 16 | d[e2 + 3 >> 0] << 24,
6883
- c2 + 4 | 0
6884
- );
6754
+ Se(d[e2 >> 0] | d[e2 + 1 >> 0] << 8 | d[e2 + 2 >> 0] << 16 | d[e2 + 3 >> 0] << 24, c2 + 4 | 0);
6885
6755
  e2 = b2 + 8 | 0;
6886
- Se(
6887
- d[e2 >> 0] | d[e2 + 1 >> 0] << 8 | d[e2 + 2 >> 0] << 16 | d[e2 + 3 >> 0] << 24,
6888
- c2 + 8 | 0
6889
- );
6756
+ Se(d[e2 >> 0] | d[e2 + 1 >> 0] << 8 | d[e2 + 2 >> 0] << 16 | d[e2 + 3 >> 0] << 24, c2 + 8 | 0);
6890
6757
  e2 = b2 + 12 | 0;
6891
6758
  Te(d[e2 >> 0] | d[e2 + 1 >> 0] << 8, c2 + 12 | 0);
6892
6759
  Ue(Ge(b2) | 0, c2 + 14 | 0);
@@ -7183,12 +7050,7 @@ function getModule() {
7183
7050
  h2 = i2;
7184
7051
  g2 = h2;
7185
7052
  h2 = h2 + 4 | 0;
7186
- k2 = lr(
7187
- d[g2 >> 0] | d[g2 + 1 >> 0] << 8 | d[g2 + 2 >> 0] << 16 | d[g2 + 3 >> 0] << 24 | 0,
7188
- d[h2 >> 0] | d[h2 + 1 >> 0] << 8 | d[h2 + 2 >> 0] << 16 | d[h2 + 3 >> 0] << 24 | 0,
7189
- k2 | 0,
7190
- ((k2 | 0) < 0) << 31 >> 31 | 0
7191
- ) | 0;
7053
+ k2 = lr(d[g2 >> 0] | d[g2 + 1 >> 0] << 8 | d[g2 + 2 >> 0] << 16 | d[g2 + 3 >> 0] << 24 | 0, d[h2 >> 0] | d[h2 + 1 >> 0] << 8 | d[h2 + 2 >> 0] << 16 | d[h2 + 3 >> 0] << 24 | 0, k2 | 0, ((k2 | 0) < 0) << 31 >> 31 | 0) | 0;
7192
7054
  h2 = u() | 0;
7193
7055
  g2 = i2;
7194
7056
  a[g2 >> 0] = k2;
@@ -7207,12 +7069,7 @@ function getModule() {
7207
7069
  k2 = b2 + 96 | 0;
7208
7070
  c[k2 >> 2] = (c[k2 >> 2] | 0) + 1 & 3;
7209
7071
  i2 = b2 + 100 + (c[j2 >> 2] << 3) + 4 | 0;
7210
- i2 = pc(
7211
- b2 + 244 | 0,
7212
- e2,
7213
- d[i2 >> 0] | d[i2 + 1 >> 0] << 8 | d[i2 + 2 >> 0] << 16 | d[i2 + 3 >> 0] << 24,
7214
- 8
7215
- ) | 0;
7072
+ i2 = pc(b2 + 244 | 0, e2, d[i2 >> 0] | d[i2 + 1 >> 0] << 8 | d[i2 + 2 >> 0] << 16 | d[i2 + 3 >> 0] << 24, 8) | 0;
7216
7073
  g2 = b2 + 100 + (c[k2 >> 2] << 3) | 0;
7217
7074
  h2 = g2;
7218
7075
  a[h2 >> 0] = 0;
@@ -7264,12 +7121,7 @@ function getModule() {
7264
7121
  i2 = e2;
7265
7122
  h2 = i2;
7266
7123
  i2 = i2 + 4 | 0;
7267
- g2 = lr(
7268
- d[h2 >> 0] | d[h2 + 1 >> 0] << 8 | d[h2 + 2 >> 0] << 16 | d[h2 + 3 >> 0] << 24 | 0,
7269
- d[i2 >> 0] | d[i2 + 1 >> 0] << 8 | d[i2 + 2 >> 0] << 16 | d[i2 + 3 >> 0] << 24 | 0,
7270
- g2 | 0,
7271
- ((g2 | 0) < 0) << 31 >> 31 | 0
7272
- ) | 0;
7124
+ g2 = lr(d[h2 >> 0] | d[h2 + 1 >> 0] << 8 | d[h2 + 2 >> 0] << 16 | d[h2 + 3 >> 0] << 24 | 0, d[i2 >> 0] | d[i2 + 1 >> 0] << 8 | d[i2 + 2 >> 0] << 16 | d[i2 + 3 >> 0] << 24 | 0, g2 | 0, ((g2 | 0) < 0) << 31 >> 31 | 0) | 0;
7273
7125
  i2 = u() | 0;
7274
7126
  h2 = e2;
7275
7127
  a[h2 >> 0] = g2;
@@ -7289,12 +7141,7 @@ function getModule() {
7289
7141
  k2 = b2 + 96 | 0;
7290
7142
  c[k2 >> 2] = (c[k2 >> 2] | 0) + 1 & 3;
7291
7143
  i2 = b2 + 100 + (c[j2 >> 2] << 3) + 4 | 0;
7292
- i2 = pc(
7293
- b2 + 244 | 0,
7294
- e2,
7295
- d[i2 >> 0] | d[i2 + 1 >> 0] << 8 | d[i2 + 2 >> 0] << 16 | d[i2 + 3 >> 0] << 24,
7296
- 8
7297
- ) | 0;
7144
+ i2 = pc(b2 + 244 | 0, e2, d[i2 >> 0] | d[i2 + 1 >> 0] << 8 | d[i2 + 2 >> 0] << 16 | d[i2 + 3 >> 0] << 24, 8) | 0;
7298
7145
  g2 = b2 + 100 + (c[k2 >> 2] << 3) | 0;
7299
7146
  h2 = g2;
7300
7147
  a[h2 >> 0] = 0;
@@ -7358,12 +7205,7 @@ function getModule() {
7358
7205
  }
7359
7206
  }
7360
7207
  if ((i2 | 0) == 500) {
7361
- g2 = pc(
7362
- b2 + 244 | 0,
7363
- e2,
7364
- (c[b2 + 132 + (c[j2 >> 2] << 2) >> 2] | 0) * 500 | 0,
7365
- 4
7366
- ) | 0;
7208
+ g2 = pc(b2 + 244 | 0, e2, (c[b2 + 132 + (c[j2 >> 2] << 2) >> 2] | 0) * 500 | 0, 4) | 0;
7367
7209
  h2 = b2 + 148 + (c[j2 >> 2] << 2) | 0;
7368
7210
  c[h2 >> 2] = (c[h2 >> 2] | 0) + 1;
7369
7211
  h2 = c[j2 >> 2] | 0;
@@ -7394,12 +7236,7 @@ function getModule() {
7394
7236
  h2 = k2;
7395
7237
  e2 = h2;
7396
7238
  h2 = h2 + 4 | 0;
7397
- h2 = lr(
7398
- d[e2 >> 0] | d[e2 + 1 >> 0] << 8 | d[e2 + 2 >> 0] << 16 | d[e2 + 3 >> 0] << 24 | 0,
7399
- d[h2 >> 0] | d[h2 + 1 >> 0] << 8 | d[h2 + 2 >> 0] << 16 | d[h2 + 3 >> 0] << 24 | 0,
7400
- g2 | 0,
7401
- ((g2 | 0) < 0) << 31 >> 31 | 0
7402
- ) | 0;
7239
+ h2 = lr(d[e2 >> 0] | d[e2 + 1 >> 0] << 8 | d[e2 + 2 >> 0] << 16 | d[e2 + 3 >> 0] << 24 | 0, d[h2 >> 0] | d[h2 + 1 >> 0] << 8 | d[h2 + 2 >> 0] << 16 | d[h2 + 3 >> 0] << 24 | 0, g2 | 0, ((g2 | 0) < 0) << 31 >> 31 | 0) | 0;
7403
7240
  e2 = u() | 0;
7404
7241
  i2 = k2;
7405
7242
  a[i2 >> 0] = h2;
@@ -7448,10 +7285,7 @@ function getModule() {
7448
7285
  c2 = a2;
7449
7286
  We(d[c2 >> 0] | d[c2 + 1 >> 0] << 8 | d[c2 + 2 >> 0] << 16 | d[c2 + 3 >> 0] << 24, b2);
7450
7287
  a2 = a2 + 4 | 0;
7451
- We(
7452
- d[a2 >> 0] | d[a2 + 1 >> 0] << 8 | d[a2 + 2 >> 0] << 16 | d[a2 + 3 >> 0] << 24,
7453
- b2 + 4 | 0
7454
- );
7288
+ We(d[a2 >> 0] | d[a2 + 1 >> 0] << 8 | d[a2 + 2 >> 0] << 16 | d[a2 + 3 >> 0] << 24, b2 + 4 | 0);
7455
7289
  return;
7456
7290
  }
7457
7291
  function vf(b2, c2, d2) {
@@ -9918,12 +9752,7 @@ function getModule() {
9918
9752
  k2 = c[g2 >> 2] | 0;
9919
9753
  l2 = (c[i2 >> 2] | 0) - k2 | 0;
9920
9754
  i2 = l2 >> 2;
9921
- be(
9922
- e2,
9923
- l2 >> 3 >>> 0 < d2 >>> 1 >>> 0 ? i2 >>> 0 < b2 >>> 0 ? b2 : i2 : d2,
9924
- (c[h2 >> 2] | 0) - k2 >> 3,
9925
- a2 + 16 | 0
9926
- );
9755
+ be(e2, l2 >> 3 >>> 0 < d2 >>> 1 >>> 0 ? i2 >>> 0 < b2 >>> 0 ? b2 : i2 : d2, (c[h2 >> 2] | 0) - k2 >> 3, a2 + 16 | 0);
9927
9756
  i2 = e2 + 8 | 0;
9928
9757
  h2 = c[i2 >> 2] | 0;
9929
9758
  c[h2 >> 2] = c[f2 >> 2];
@@ -9980,12 +9809,7 @@ function getModule() {
9980
9809
  k2 = c[g2 >> 2] | 0;
9981
9810
  l2 = (c[i2 >> 2] | 0) - k2 | 0;
9982
9811
  i2 = l2 >> 2;
9983
- be(
9984
- e2,
9985
- l2 >> 3 >>> 0 < d2 >>> 1 >>> 0 ? i2 >>> 0 < b2 >>> 0 ? b2 : i2 : d2,
9986
- (c[h2 >> 2] | 0) - k2 >> 3,
9987
- a2 + 16 | 0
9988
- );
9812
+ be(e2, l2 >> 3 >>> 0 < d2 >>> 1 >>> 0 ? i2 >>> 0 < b2 >>> 0 ? b2 : i2 : d2, (c[h2 >> 2] | 0) - k2 >> 3, a2 + 16 | 0);
9989
9813
  i2 = e2 + 8 | 0;
9990
9814
  h2 = c[i2 >> 2] | 0;
9991
9815
  c[h2 >> 2] = c[f2 >> 2];
@@ -10506,12 +10330,7 @@ function getModule() {
10506
10330
  k2 = c[g2 >> 2] | 0;
10507
10331
  l2 = (c[i2 >> 2] | 0) - k2 | 0;
10508
10332
  i2 = l2 >> 2;
10509
- be(
10510
- e2,
10511
- l2 >> 3 >>> 0 < d2 >>> 1 >>> 0 ? i2 >>> 0 < b2 >>> 0 ? b2 : i2 : d2,
10512
- (c[h2 >> 2] | 0) - k2 >> 3,
10513
- a2 + 16 | 0
10514
- );
10333
+ be(e2, l2 >> 3 >>> 0 < d2 >>> 1 >>> 0 ? i2 >>> 0 < b2 >>> 0 ? b2 : i2 : d2, (c[h2 >> 2] | 0) - k2 >> 3, a2 + 16 | 0);
10515
10334
  i2 = e2 + 8 | 0;
10516
10335
  h2 = c[i2 >> 2] | 0;
10517
10336
  c[h2 >> 2] = c[f2 >> 2];
@@ -10568,12 +10387,7 @@ function getModule() {
10568
10387
  k2 = c[g2 >> 2] | 0;
10569
10388
  l2 = (c[i2 >> 2] | 0) - k2 | 0;
10570
10389
  i2 = l2 >> 2;
10571
- be(
10572
- e2,
10573
- l2 >> 3 >>> 0 < d2 >>> 1 >>> 0 ? i2 >>> 0 < b2 >>> 0 ? b2 : i2 : d2,
10574
- (c[h2 >> 2] | 0) - k2 >> 3,
10575
- a2 + 16 | 0
10576
- );
10390
+ be(e2, l2 >> 3 >>> 0 < d2 >>> 1 >>> 0 ? i2 >>> 0 < b2 >>> 0 ? b2 : i2 : d2, (c[h2 >> 2] | 0) - k2 >> 3, a2 + 16 | 0);
10577
10391
  i2 = e2 + 8 | 0;
10578
10392
  h2 = c[i2 >> 2] | 0;
10579
10393
  c[h2 >> 2] = c[f2 >> 2];
@@ -10906,12 +10720,7 @@ function getModule() {
10906
10720
  k2 = c[g2 >> 2] | 0;
10907
10721
  l2 = (c[i2 >> 2] | 0) - k2 | 0;
10908
10722
  i2 = l2 >> 2;
10909
- be(
10910
- e2,
10911
- l2 >> 3 >>> 0 < d2 >>> 1 >>> 0 ? i2 >>> 0 < b2 >>> 0 ? b2 : i2 : d2,
10912
- (c[h2 >> 2] | 0) - k2 >> 3,
10913
- a2 + 16 | 0
10914
- );
10723
+ be(e2, l2 >> 3 >>> 0 < d2 >>> 1 >>> 0 ? i2 >>> 0 < b2 >>> 0 ? b2 : i2 : d2, (c[h2 >> 2] | 0) - k2 >> 3, a2 + 16 | 0);
10915
10724
  i2 = e2 + 8 | 0;
10916
10725
  h2 = c[i2 >> 2] | 0;
10917
10726
  c[h2 >> 2] = c[f2 >> 2];
@@ -10968,12 +10777,7 @@ function getModule() {
10968
10777
  k2 = c[g2 >> 2] | 0;
10969
10778
  l2 = (c[i2 >> 2] | 0) - k2 | 0;
10970
10779
  i2 = l2 >> 2;
10971
- be(
10972
- e2,
10973
- l2 >> 3 >>> 0 < d2 >>> 1 >>> 0 ? i2 >>> 0 < b2 >>> 0 ? b2 : i2 : d2,
10974
- (c[h2 >> 2] | 0) - k2 >> 3,
10975
- a2 + 16 | 0
10976
- );
10780
+ be(e2, l2 >> 3 >>> 0 < d2 >>> 1 >>> 0 ? i2 >>> 0 < b2 >>> 0 ? b2 : i2 : d2, (c[h2 >> 2] | 0) - k2 >> 3, a2 + 16 | 0);
10977
10781
  i2 = e2 + 8 | 0;
10978
10782
  h2 = c[i2 >> 2] | 0;
10979
10783
  c[h2 >> 2] = c[f2 >> 2];
@@ -17803,12 +17607,7 @@ function getModule() {
17803
17607
  p2 = u() | 0;
17804
17608
  o2 = p2 >> 31 | ((p2 | 0) < 0 ? -1 : 0) << 1;
17805
17609
  i2 = o2 & 1;
17806
- a2 = mr(
17807
- e2 | 0,
17808
- n2 | 0,
17809
- o2 & m2 | 0,
17810
- (((p2 | 0) < 0 ? -1 : 0) >> 31 | ((p2 | 0) < 0 ? -1 : 0) << 1) & l2 | 0
17811
- ) | 0;
17610
+ a2 = mr(e2 | 0, n2 | 0, o2 & m2 | 0, (((p2 | 0) < 0 ? -1 : 0) >> 31 | ((p2 | 0) < 0 ? -1 : 0) << 1) & l2 | 0) | 0;
17812
17611
  b2 = u() | 0;
17813
17612
  h2 = h2 - 1 | 0;
17814
17613
  } while ((h2 | 0) != 0);
@@ -18594,9 +18393,7 @@ function getModule() {
18594
18393
  if (data2) {
18595
18394
  response = data2.buffer;
18596
18395
  } else {
18597
- console.warn(
18598
- "a problem seems to have happened with Module.memoryInitializerRequest, status: " + request.status + ", retrying " + memoryInitializer
18599
- );
18396
+ console.warn("a problem seems to have happened with Module.memoryInitializerRequest, status: " + request.status + ", retrying " + memoryInitializer);
18600
18397
  doBrowserLoad();
18601
18398
  return;
18602
18399
  }
@@ -18671,7 +18468,7 @@ function getModule() {
18671
18468
  return Module2;
18672
18469
  }
18673
18470
 
18674
- // src/lib/laslaz-decoder.ts
18471
+ // dist/lib/laslaz-decoder.js
18675
18472
  var Module = null;
18676
18473
  var POINT_FORMAT_READERS = {
18677
18474
  0: (dv) => {
@@ -18826,7 +18623,6 @@ var LASLoader2 = class {
18826
18623
  var LAZLoader = class {
18827
18624
  constructor(arraybuffer) {
18828
18625
  this.instance = null;
18829
- // LASZip instance
18830
18626
  this.header = null;
18831
18627
  this.arraybuffer = arraybuffer;
18832
18628
  if (!Module) {
@@ -18878,9 +18674,7 @@ var LAZLoader = class {
18878
18674
  }
18879
18675
  const { header, instance } = this;
18880
18676
  if (!header) {
18881
- throw new Error(
18882
- "You need to query header before reading, I maintain state that way, sorry :("
18883
- );
18677
+ throw new Error("You need to query header before reading, I maintain state that way, sorry :(");
18884
18678
  }
18885
18679
  try {
18886
18680
  const pointsToRead = Math.min(count * skip, header.pointsCount - instance.readOffset);
@@ -19026,7 +18820,7 @@ var LASFile = class {
19026
18820
  }
19027
18821
  };
19028
18822
 
19029
- // src/lib/get-las-schema.ts
18823
+ // dist/lib/get-las-schema.js
19030
18824
  var import_schema = require("@loaders.gl/schema");
19031
18825
  function getLASSchema(lasHeader, attributes) {
19032
18826
  const metadataMap = makeMetadataFromLasHeader(lasHeader);
@@ -19058,7 +18852,7 @@ function makeMetadataFromLasHeader(lasHeader) {
19058
18852
  return metadata;
19059
18853
  }
19060
18854
 
19061
- // src/lib/parse-las.ts
18855
+ // dist/lib/parse-las.js
19062
18856
  function parseLAS(arrayBuffer, options) {
19063
18857
  return parseLASMesh(arrayBuffer, options);
19064
18858
  }
@@ -19109,10 +18903,7 @@ function parseLASMesh(arrayBuffer, options = {}) {
19109
18903
  }
19110
18904
  }
19111
18905
  const batchSize = decoder.pointsCount;
19112
- const {
19113
- scale: [scaleX, scaleY, scaleZ],
19114
- offset: [offsetX, offsetY, offsetZ]
19115
- } = lasHeader;
18906
+ const { scale: [scaleX, scaleY, scaleZ], offset: [offsetX, offsetY, offsetZ] } = lasHeader;
19116
18907
  const twoByteColor = detectTwoByteColors(decoder, batchSize, (_b = options.las) == null ? void 0 : _b.colorDepth);
19117
18908
  for (let i = 0; i < batchSize; i++) {
19118
18909
  const { position, color, intensity, classification } = decoder.getPoint(i);
@@ -19206,9 +18997,10 @@ function detectTwoByteColors(decoder = {}, batchSize, colorDepth) {
19206
18997
  return twoByteColor;
19207
18998
  }
19208
18999
 
19209
- // src/index.ts
19000
+ // dist/index.js
19210
19001
  var LASLoader3 = {
19211
19002
  ...LASLoader,
19212
19003
  parse: async (arrayBuffer, options) => parseLAS(arrayBuffer, options),
19213
19004
  parseSync: (arrayBuffer, options) => parseLAS(arrayBuffer, options)
19214
19005
  };
19006
+ //# sourceMappingURL=index.cjs.map