@takram/three-geospatial 0.1.0 → 0.2.0

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/build/index.js CHANGED
@@ -1,22 +1,22 @@
1
- import { Loader as Vt, FileLoader as _i, BufferGeometry as bi, BufferAttribute as Zr, Box3 as Ni, Vector3 as Re, Sphere as Oi, ByteType as Ui, UnsignedByteType as Hr, ShortType as mi, UnsignedShortType as Ci, IntType as Ri, UnsignedIntType as xi, HalfFloatType as lt, FloatType as ft, LinearFilter as kt, RGBAFormat as hn, Data3DTexture as fn, DataTexture as Fi, MathUtils as ye, Material as Jt, REVISION as Li, DataTextureLoader as Pi, RedFormat as vn, DataUtils as Gr, Quaternion as Mi, Matrix4 as Di, Ray as Bi, RepeatWrapping as or, NearestFilter as Wr, Vector2 as yn } from "three";
2
- import { E as Xr, G as st } from "./shared.js";
3
- import { a as la } from "./shared.js";
4
- var zi = process.env.NODE_ENV === "production", Yr = "Invariant failed";
5
- function _r(r, e) {
1
+ import { Loader as qt, FileLoader as _i, BufferGeometry as bi, BufferAttribute as zr, Box3 as Ni, Vector3 as Re, Sphere as Oi, ByteType as mi, UnsignedByteType as kr, ShortType as Ui, UnsignedShortType as Ci, IntType as Ri, UnsignedIntType as xi, HalfFloatType as lt, FloatType as ft, LinearFilter as zt, RGBAFormat as ln, Data3DTexture as un, DataTexture as Fi, MathUtils as ye, Material as Vt, REVISION as Li, DataTextureLoader as Pi, RedFormat as hn, DataUtils as Zr, Quaternion as Mi, Matrix4 as Di, Ray as Bi, RepeatWrapping as sr, NearestFilter as Hr, Vector2 as fn } from "three";
2
+ import { E as Gr, G as st } from "./shared.js";
3
+ import { a as oa } from "./shared.js";
4
+ var zi = process.env.NODE_ENV === "production", Wr = "Invariant failed";
5
+ function vn(r, e) {
6
6
  if (!r) {
7
7
  if (zi)
8
- throw new Error(Yr);
9
- var i = Yr;
8
+ throw new Error(Wr);
9
+ var i = Wr;
10
10
  throw new Error(i);
11
11
  }
12
12
  }
13
- class ki extends Vt {
13
+ class ki extends qt {
14
14
  load(e, i, s, o) {
15
15
  const c = new _i(this.manager);
16
16
  c.setResponseType("arraybuffer"), c.setRequestHeader(this.requestHeader), c.setPath(this.path), c.setWithCredentials(this.withCredentials), c.load(
17
17
  e,
18
18
  (l) => {
19
- _r(l instanceof ArrayBuffer);
19
+ vn(l instanceof ArrayBuffer);
20
20
  try {
21
21
  i(l);
22
22
  } catch (v) {
@@ -28,9 +28,9 @@ class ki extends Vt {
28
28
  );
29
29
  }
30
30
  }
31
- function To(r) {
31
+ function go(r) {
32
32
  }
33
- function Eo(r) {
33
+ function So(r) {
34
34
  var c;
35
35
  const { attributes: e, index: i, boundingBox: s, boundingSphere: o } = r;
36
36
  return [
@@ -43,17 +43,17 @@ function Eo(r) {
43
43
  ].filter((l) => l != null)
44
44
  ];
45
45
  }
46
- function Io(r, e = new bi()) {
46
+ function To(r, e = new bi()) {
47
47
  for (const [i, s] of Object.entries(r.attributes))
48
48
  e.setAttribute(
49
49
  i,
50
- new Zr(
50
+ new zr(
51
51
  s.array,
52
52
  s.itemSize,
53
53
  s.normalized
54
54
  )
55
55
  );
56
- if (e.index = r.index != null ? new Zr(
56
+ if (e.index = r.index != null ? new zr(
57
57
  r.index.array,
58
58
  r.index.itemSize,
59
59
  r.index.normalized
@@ -73,7 +73,7 @@ function Io(r, e = new bi()) {
73
73
  }
74
74
  return e;
75
75
  }
76
- const Zi = 128, Hi = 128, Gi = 64, _o = "https://media.githubusercontent.com/media/takram-design-engineering/three-geospatial/9627216cc50057994c98a2118f3c4a23765d43b9/packages/core/assets/stbn.bin", Wi = "This is not an object", Xi = "This is not a Float16Array object", qr = "This constructor is not a subclass of Float16Array", pn = "The constructor property value is not an object", Yi = "Species constructor didn't return TypedArray object", qi = "Derived constructor created TypedArray object which was too small length", vt = "Attempting to access detached ArrayBuffer", pr = "Cannot convert undefined or null to object", dr = "Cannot mix BigInt and other types, use explicit conversions", Vr = "@@iterator property is not callable", Jr = "Reduce of empty array with no initial value", Vi = "The comparison function must be either a function or undefined", ar = "Offset is out of bounds";
76
+ const Zi = 128, Hi = 128, Gi = 64, Wi = "9627216cc50057994c98a2118f3c4a23765d43b9", Eo = `https://media.githubusercontent.com/media/takram-design-engineering/three-geospatial/${Wi}/packages/core/assets/stbn.bin`, Xi = "This is not an object", Yi = "This is not a Float16Array object", Xr = "This constructor is not a subclass of Float16Array", yn = "The constructor property value is not an object", qi = "Species constructor didn't return TypedArray object", Vi = "Derived constructor created TypedArray object which was too small length", vt = "Attempting to access detached ArrayBuffer", yr = "Cannot convert undefined or null to object", pr = "Cannot mix BigInt and other types, use explicit conversions", Yr = "@@iterator property is not callable", qr = "Reduce of empty array with no initial value", Ji = "The comparison function must be either a function or undefined", or = "Offset is out of bounds";
77
77
  function Z(r) {
78
78
  return (e, ...i) => ie(r, e, i);
79
79
  }
@@ -88,38 +88,38 @@ function $e(r, e) {
88
88
  const {
89
89
  apply: ie,
90
90
  construct: ut,
91
- defineProperty: $r,
92
- get: cr,
91
+ defineProperty: Vr,
92
+ get: ar,
93
93
  getOwnPropertyDescriptor: Ye,
94
94
  getPrototypeOf: At,
95
- has: wr,
96
- ownKeys: dn,
97
- set: Qr,
98
- setPrototypeOf: wn
99
- } = Reflect, Ji = Proxy, {
100
- EPSILON: $i,
101
- MAX_SAFE_INTEGER: jr,
102
- isFinite: An,
95
+ has: dr,
96
+ ownKeys: pn,
97
+ set: Jr,
98
+ setPrototypeOf: dn
99
+ } = Reflect, $i = Proxy, {
100
+ EPSILON: Qi,
101
+ MAX_SAFE_INTEGER: $r,
102
+ isFinite: wn,
103
103
  isNaN: qe
104
104
  } = Number, {
105
105
  iterator: Ie,
106
- species: Qi,
107
- toStringTag: br,
108
- for: ji
106
+ species: ji,
107
+ toStringTag: Ir,
108
+ for: Ki
109
109
  } = Symbol, Ve = Object, {
110
- create: $t,
110
+ create: Jt,
111
111
  defineProperty: gt,
112
- freeze: Ki,
113
- is: Kr
114
- } = Ve, Ar = Ve.prototype, es = (
112
+ freeze: es,
113
+ is: Qr
114
+ } = Ve, wr = Ve.prototype, ts = (
115
115
  /** @type {any} */
116
- Ar.__lookupGetter__ ? Z(
116
+ wr.__lookupGetter__ ? Z(
117
117
  /** @type {any} */
118
- Ar.__lookupGetter__
118
+ wr.__lookupGetter__
119
119
  ) : (r, e) => {
120
120
  if (r == null)
121
121
  throw X(
122
- pr
122
+ yr
123
123
  );
124
124
  let i = Ve(r);
125
125
  do {
@@ -130,21 +130,21 @@ const {
130
130
  }
131
131
  ), Ce = (
132
132
  /** @type {any} */
133
- Ve.hasOwn || Z(Ar.hasOwnProperty)
134
- ), gn = Array, Sn = gn.isArray, Qt = gn.prototype, ts = Z(Qt.join), rs = Z(Qt.push), ns = Z(
135
- Qt.toLocaleString
136
- ), Nr = Qt[Ie], is = Z(Nr), {
137
- abs: ss,
138
- trunc: Tn
139
- } = Math, jt = ArrayBuffer, os = jt.isView, En = jt.prototype, as = Z(En.slice), cs = $e(En, "byteLength"), gr = typeof SharedArrayBuffer < "u" ? SharedArrayBuffer : null, ls = gr && $e(gr.prototype, "byteLength"), Or = At(Uint8Array), us = Or.from, Q = Or.prototype, hs = Q[Ie], fs = Z(Q.keys), vs = Z(
133
+ Ve.hasOwn || Z(wr.hasOwnProperty)
134
+ ), An = Array, gn = An.isArray, $t = An.prototype, rs = Z($t.join), ns = Z($t.push), is = Z(
135
+ $t.toLocaleString
136
+ ), _r = $t[Ie], ss = Z(_r), {
137
+ abs: os,
138
+ trunc: Sn
139
+ } = Math, Qt = ArrayBuffer, as = Qt.isView, Tn = Qt.prototype, cs = Z(Tn.slice), ls = $e(Tn, "byteLength"), Ar = typeof SharedArrayBuffer < "u" ? SharedArrayBuffer : null, us = Ar && $e(Ar.prototype, "byteLength"), br = At(Uint8Array), hs = br.from, Q = br.prototype, fs = Q[Ie], vs = Z(Q.keys), ys = Z(
140
140
  Q.values
141
- ), ys = Z(
141
+ ), ps = Z(
142
142
  Q.entries
143
- ), ps = Z(Q.set), en = Z(
143
+ ), ds = Z(Q.set), jr = Z(
144
144
  Q.reverse
145
- ), ds = Z(Q.fill), ws = Z(
145
+ ), ws = Z(Q.fill), As = Z(
146
146
  Q.copyWithin
147
- ), tn = Z(Q.sort), ot = Z(Q.slice), As = Z(
147
+ ), Kr = Z(Q.sort), ot = Z(Q.slice), gs = Z(
148
148
  Q.subarray
149
149
  ), $ = $e(
150
150
  Q,
@@ -155,17 +155,17 @@ const {
155
155
  ), x = $e(
156
156
  Q,
157
157
  "length"
158
- ), In = $e(
158
+ ), En = $e(
159
159
  Q,
160
- br
161
- ), gs = Uint8Array, ce = Uint16Array, rn = (...r) => ie(us, ce, r), Ur = Uint32Array, Ss = Float32Array, ze = At([][Ie]()), Kt = Z(ze.next), Ts = Z(function* () {
162
- }().next), Es = At(ze), Is = DataView.prototype, _s = Z(
163
- Is.getUint16
164
- ), X = TypeError, lr = RangeError, _n = WeakSet, bn = _n.prototype, bs = Z(bn.add), Ns = Z(bn.has), er = WeakMap, mr = er.prototype, Zt = Z(mr.get), Os = Z(mr.has), Cr = Z(mr.set), Nn = new er(), Us = $t(null, {
160
+ Ir
161
+ ), Ss = Uint8Array, ce = Uint16Array, en = (...r) => ie(hs, ce, r), Nr = Uint32Array, Ts = Float32Array, ze = At([][Ie]()), jt = Z(ze.next), Es = Z(function* () {
162
+ }().next), Is = At(ze), _s = DataView.prototype, bs = Z(
163
+ _s.getUint16
164
+ ), X = TypeError, cr = RangeError, In = WeakSet, _n = In.prototype, Ns = Z(_n.add), Os = Z(_n.has), Kt = WeakMap, Or = Kt.prototype, kt = Z(Or.get), ms = Z(Or.has), mr = Z(Or.set), bn = new Kt(), Us = Jt(null, {
165
165
  next: {
166
166
  value: function() {
167
- const e = Zt(Nn, this);
168
- return Kt(e);
167
+ const e = kt(bn, this);
168
+ return jt(e);
169
169
  }
170
170
  },
171
171
  [Ie]: {
@@ -175,43 +175,43 @@ const {
175
175
  }
176
176
  });
177
177
  function ht(r) {
178
- if (r[Ie] === Nr && ze.next === Kt)
178
+ if (r[Ie] === _r && ze.next === jt)
179
179
  return r;
180
- const e = $t(Us);
181
- return Cr(Nn, e, is(r)), e;
180
+ const e = Jt(Us);
181
+ return mr(bn, e, ss(r)), e;
182
182
  }
183
- const On = new er(), Un = $t(Es, {
183
+ const Nn = new Kt(), On = Jt(Is, {
184
184
  next: {
185
185
  value: function() {
186
- const e = Zt(On, this);
187
- return Ts(e);
186
+ const e = kt(Nn, this);
187
+ return Es(e);
188
188
  },
189
189
  writable: !0,
190
190
  configurable: !0
191
191
  }
192
192
  });
193
- for (const r of dn(ze))
194
- r !== "next" && gt(Un, r, Ye(ze, r));
195
- function nn(r) {
196
- const e = $t(Un);
197
- return Cr(On, e, r), e;
193
+ for (const r of pn(ze))
194
+ r !== "next" && gt(On, r, Ye(ze, r));
195
+ function tn(r) {
196
+ const e = Jt(On);
197
+ return mr(Nn, e, r), e;
198
198
  }
199
- function Ht(r) {
199
+ function Zt(r) {
200
200
  return r !== null && typeof r == "object" || typeof r == "function";
201
201
  }
202
- function sn(r) {
202
+ function rn(r) {
203
203
  return r !== null && typeof r == "object";
204
204
  }
205
- function Gt(r) {
206
- return In(r) !== void 0;
205
+ function Ht(r) {
206
+ return En(r) !== void 0;
207
207
  }
208
- function Sr(r) {
209
- const e = In(r);
208
+ function gr(r) {
209
+ const e = En(r);
210
210
  return e === "BigInt64Array" || e === "BigUint64Array";
211
211
  }
212
- function ms(r) {
212
+ function Cs(r) {
213
213
  try {
214
- return Sn(r) ? !1 : (cs(
214
+ return gn(r) ? !1 : (ls(
215
215
  /** @type {any} */
216
216
  r
217
217
  ), !0);
@@ -220,10 +220,10 @@ function ms(r) {
220
220
  }
221
221
  }
222
222
  function mn(r) {
223
- if (gr === null)
223
+ if (Ar === null)
224
224
  return !1;
225
225
  try {
226
- return ls(
226
+ return us(
227
227
  /** @type {any} */
228
228
  r
229
229
  ), !0;
@@ -231,70 +231,70 @@ function mn(r) {
231
231
  return !1;
232
232
  }
233
233
  }
234
- function Cs(r) {
235
- return ms(r) || mn(r);
234
+ function Rs(r) {
235
+ return Cs(r) || mn(r);
236
236
  }
237
- function on(r) {
238
- return Sn(r) ? r[Ie] === Nr && ze.next === Kt : !1;
237
+ function nn(r) {
238
+ return gn(r) ? r[Ie] === _r && ze.next === jt : !1;
239
239
  }
240
- function Rs(r) {
241
- return Gt(r) ? r[Ie] === hs && ze.next === Kt : !1;
240
+ function xs(r) {
241
+ return Ht(r) ? r[Ie] === fs && ze.next === jt : !1;
242
242
  }
243
- function Ft(r) {
243
+ function xt(r) {
244
244
  if (typeof r != "string")
245
245
  return !1;
246
246
  const e = +r;
247
- return r !== e + "" || !An(e) ? !1 : e === Tn(e);
247
+ return r !== e + "" || !wn(e) ? !1 : e === Sn(e);
248
248
  }
249
- const Wt = ji("__Float16Array__");
250
- function xs(r) {
251
- if (!sn(r))
249
+ const Gt = Ki("__Float16Array__");
250
+ function Fs(r) {
251
+ if (!rn(r))
252
252
  return !1;
253
253
  const e = At(r);
254
- if (!sn(e))
254
+ if (!rn(e))
255
255
  return !1;
256
256
  const i = e.constructor;
257
257
  if (i === void 0)
258
258
  return !1;
259
- if (!Ht(i))
260
- throw X(pn);
261
- return wr(i, Wt);
259
+ if (!Zt(i))
260
+ throw X(yn);
261
+ return dr(i, Gt);
262
262
  }
263
- const Tr = 1 / $i;
264
- function Fs(r) {
265
- return r + Tr - Tr;
263
+ const Sr = 1 / Qi;
264
+ function Ls(r) {
265
+ return r + Sr - Sr;
266
266
  }
267
- const Cn = 6103515625e-14, Ls = 65504, Rn = 9765625e-10, an = Rn * Cn, Ps = Rn * Tr;
268
- function Ms(r) {
267
+ const Un = 6103515625e-14, Ps = 65504, Cn = 9765625e-10, sn = Cn * Un, Ms = Cn * Sr;
268
+ function Ds(r) {
269
269
  const e = +r;
270
- if (!An(e) || e === 0)
270
+ if (!wn(e) || e === 0)
271
271
  return e;
272
- const i = e > 0 ? 1 : -1, s = ss(e);
273
- if (s < Cn)
274
- return i * Fs(s / an) * an;
275
- const o = (1 + Ps) * s, c = o - (o - s);
276
- return c > Ls || qe(c) ? i * (1 / 0) : i * c;
272
+ const i = e > 0 ? 1 : -1, s = os(e);
273
+ if (s < Un)
274
+ return i * Ls(s / sn) * sn;
275
+ const o = (1 + Ms) * s, c = o - (o - s);
276
+ return c > Ps || qe(c) ? i * (1 / 0) : i * c;
277
277
  }
278
- const xn = new jt(4), Fn = new Ss(xn), Ln = new Ur(xn), we = new ce(512), Ae = new gs(512);
278
+ const Rn = new Qt(4), xn = new Ts(Rn), Fn = new Nr(Rn), we = new ce(512), Ae = new Ss(512);
279
279
  for (let r = 0; r < 256; ++r) {
280
280
  const e = r - 127;
281
281
  e < -24 ? (we[r] = 0, we[r | 256] = 32768, Ae[r] = 24, Ae[r | 256] = 24) : e < -14 ? (we[r] = 1024 >> -e - 14, we[r | 256] = 1024 >> -e - 14 | 32768, Ae[r] = -e - 1, Ae[r | 256] = -e - 1) : e <= 15 ? (we[r] = e + 15 << 10, we[r | 256] = e + 15 << 10 | 32768, Ae[r] = 13, Ae[r | 256] = 13) : e < 128 ? (we[r] = 31744, we[r | 256] = 64512, Ae[r] = 24, Ae[r | 256] = 24) : (we[r] = 31744, we[r | 256] = 64512, Ae[r] = 13, Ae[r | 256] = 13);
282
282
  }
283
283
  function Ee(r) {
284
- Fn[0] = Ms(r);
285
- const e = Ln[0], i = e >> 23 & 511;
284
+ xn[0] = Ds(r);
285
+ const e = Fn[0], i = e >> 23 & 511;
286
286
  return we[i] + ((e & 8388607) >> Ae[i]);
287
287
  }
288
- const Rr = new Ur(2048);
288
+ const Ur = new Nr(2048);
289
289
  for (let r = 1; r < 1024; ++r) {
290
290
  let e = r << 13, i = 0;
291
- for (; !(e & 8388608); )
291
+ for (; (e & 8388608) === 0; )
292
292
  e <<= 1, i -= 8388608;
293
- e &= -8388609, i += 947912704, Rr[r] = e | i;
293
+ e &= -8388609, i += 947912704, Ur[r] = e | i;
294
294
  }
295
295
  for (let r = 1024; r < 2048; ++r)
296
- Rr[r] = 939524096 + (r - 1024 << 13);
297
- const Qe = new Ur(64);
296
+ Ur[r] = 939524096 + (r - 1024 << 13);
297
+ const Qe = new Nr(64);
298
298
  for (let r = 1; r < 31; ++r)
299
299
  Qe[r] = r << 23;
300
300
  Qe[31] = 1199570944;
@@ -302,42 +302,42 @@ Qe[32] = 2147483648;
302
302
  for (let r = 33; r < 63; ++r)
303
303
  Qe[r] = 2147483648 + (r - 32 << 23);
304
304
  Qe[63] = 3347054592;
305
- const Pn = new ce(64);
305
+ const Ln = new ce(64);
306
306
  for (let r = 1; r < 64; ++r)
307
- r !== 32 && (Pn[r] = 1024);
307
+ r !== 32 && (Ln[r] = 1024);
308
308
  function L(r) {
309
309
  const e = r >> 10;
310
- return Ln[0] = Rr[Pn[e] + (r & 1023)] + Qe[e], Fn[0];
310
+ return Fn[0] = Ur[Ln[e] + (r & 1023)] + Qe[e], xn[0];
311
311
  }
312
- function me(r) {
312
+ function Ue(r) {
313
313
  const e = +r;
314
- return qe(e) || e === 0 ? 0 : Tn(e);
314
+ return qe(e) || e === 0 ? 0 : Sn(e);
315
315
  }
316
- function ur(r) {
317
- const e = me(r);
318
- return e < 0 ? 0 : e < jr ? e : jr;
316
+ function lr(r) {
317
+ const e = Ue(r);
318
+ return e < 0 ? 0 : e < $r ? e : $r;
319
319
  }
320
- function Lt(r, e) {
321
- if (!Ht(r))
322
- throw X(Wi);
320
+ function Ft(r, e) {
321
+ if (!Zt(r))
322
+ throw X(Xi);
323
323
  const i = r.constructor;
324
324
  if (i === void 0)
325
325
  return e;
326
- if (!Ht(i))
327
- throw X(pn);
328
- const s = i[Qi];
326
+ if (!Zt(i))
327
+ throw X(yn);
328
+ const s = i[ji];
329
329
  return s ?? e;
330
330
  }
331
331
  function yt(r) {
332
332
  if (mn(r))
333
333
  return !1;
334
334
  try {
335
- return as(r, 0, 0), !1;
335
+ return cs(r, 0, 0), !1;
336
336
  } catch {
337
337
  }
338
338
  return !0;
339
339
  }
340
- function cn(r, e) {
340
+ function on(r, e) {
341
341
  const i = qe(r), s = qe(e);
342
342
  if (i && s)
343
343
  return 0;
@@ -348,7 +348,7 @@ function cn(r, e) {
348
348
  if (r > e)
349
349
  return 1;
350
350
  if (r === 0 && e === 0) {
351
- const o = Kr(r, 0), c = Kr(e, 0);
351
+ const o = Qr(r, 0), c = Qr(e, 0);
352
352
  if (!o && c)
353
353
  return -1;
354
354
  if (o && !c)
@@ -356,18 +356,18 @@ function cn(r, e) {
356
356
  }
357
357
  return 0;
358
358
  }
359
- const xr = 2, Xt = new er();
359
+ const Cr = 2, Wt = new Kt();
360
360
  function Xe(r) {
361
- return Os(Xt, r) || !os(r) && xs(r);
361
+ return ms(Wt, r) || !as(r) && Fs(r);
362
362
  }
363
363
  function R(r) {
364
364
  if (!Xe(r))
365
- throw X(Xi);
365
+ throw X(Yi);
366
366
  }
367
- function Pt(r, e) {
368
- const i = Xe(r), s = Gt(r);
367
+ function Lt(r, e) {
368
+ const i = Xe(r), s = Ht(r);
369
369
  if (!i && !s)
370
- throw X(Yi);
370
+ throw X(qi);
371
371
  if (typeof e == "number") {
372
372
  let o;
373
373
  if (i) {
@@ -377,14 +377,14 @@ function Pt(r, e) {
377
377
  o = x(r);
378
378
  if (o < e)
379
379
  throw X(
380
- qi
380
+ Vi
381
381
  );
382
382
  }
383
- if (Sr(r))
384
- throw X(dr);
383
+ if (gr(r))
384
+ throw X(pr);
385
385
  }
386
386
  function O(r) {
387
- const e = Zt(Xt, r);
387
+ const e = kt(Wt, r);
388
388
  if (e !== void 0) {
389
389
  const o = $(e);
390
390
  if (yt(o))
@@ -397,75 +397,75 @@ function O(r) {
397
397
  );
398
398
  if (yt(i))
399
399
  throw X(vt);
400
- const s = ut(P, [
400
+ const s = ut(B, [
401
401
  i,
402
402
  /** @type {any} */
403
403
  r.byteOffset,
404
404
  /** @type {any} */
405
405
  r.length
406
406
  ], r.constructor);
407
- return Zt(Xt, s);
407
+ return kt(Wt, s);
408
408
  }
409
- function ln(r) {
409
+ function an(r) {
410
410
  const e = x(r), i = [];
411
411
  for (let s = 0; s < e; ++s)
412
412
  i[s] = L(r[s]);
413
413
  return i;
414
414
  }
415
- const Mn = new _n();
416
- for (const r of dn(Q)) {
417
- if (r === br)
415
+ const Pn = new In();
416
+ for (const r of pn(Q)) {
417
+ if (r === Ir)
418
418
  continue;
419
419
  const e = Ye(Q, r);
420
- Ce(e, "get") && typeof e.get == "function" && bs(Mn, e.get);
420
+ Ce(e, "get") && typeof e.get == "function" && Ns(Pn, e.get);
421
421
  }
422
- const Ds = Ki(
422
+ const Bs = es(
423
423
  /** @type {ProxyHandler<Float16BitsArray>} */
424
424
  {
425
425
  get(r, e, i) {
426
- return Ft(e) && Ce(r, e) ? L(cr(r, e)) : Ns(Mn, es(r, e)) ? cr(r, e) : cr(r, e, i);
426
+ return xt(e) && Ce(r, e) ? L(ar(r, e)) : Os(Pn, ts(r, e)) ? ar(r, e) : ar(r, e, i);
427
427
  },
428
428
  set(r, e, i, s) {
429
- return Ft(e) && Ce(r, e) ? Qr(r, e, Ee(i)) : Qr(r, e, i, s);
429
+ return xt(e) && Ce(r, e) ? Jr(r, e, Ee(i)) : Jr(r, e, i, s);
430
430
  },
431
431
  getOwnPropertyDescriptor(r, e) {
432
- if (Ft(e) && Ce(r, e)) {
432
+ if (xt(e) && Ce(r, e)) {
433
433
  const i = Ye(r, e);
434
434
  return i.value = L(i.value), i;
435
435
  }
436
436
  return Ye(r, e);
437
437
  },
438
438
  defineProperty(r, e, i) {
439
- return Ft(e) && Ce(r, e) && Ce(i, "value") && (i.value = Ee(i.value)), $r(r, e, i);
439
+ return xt(e) && Ce(r, e) && Ce(i, "value") && (i.value = Ee(i.value)), Vr(r, e, i);
440
440
  }
441
441
  }
442
442
  );
443
- class P {
443
+ class B {
444
444
  /** @see https://tc39.es/ecma262/#sec-typedarray */
445
445
  constructor(e, i, s) {
446
446
  let o;
447
447
  if (Xe(e))
448
448
  o = ut(ce, [O(e)], new.target);
449
- else if (Ht(e) && !Cs(e)) {
449
+ else if (Zt(e) && !Rs(e)) {
450
450
  let l, v;
451
- if (Gt(e)) {
451
+ if (Ht(e)) {
452
452
  l = e, v = x(e);
453
453
  const y = $(e);
454
454
  if (yt(y))
455
455
  throw X(vt);
456
- if (Sr(e))
457
- throw X(dr);
458
- const E = new jt(
459
- v * xr
456
+ if (gr(e))
457
+ throw X(pr);
458
+ const E = new Qt(
459
+ v * Cr
460
460
  );
461
461
  o = ut(ce, [E], new.target);
462
462
  } else {
463
463
  const y = e[Ie];
464
464
  if (y != null && typeof y != "function")
465
- throw X(Vr);
466
- y != null ? on(e) ? (l = e, v = e.length) : (l = [.../** @type {Iterable<unknown>} */
465
+ throw X(Yr);
466
+ y != null ? nn(e) ? (l = e, v = e.length) : (l = [.../** @type {Iterable<unknown>} */
467
467
  e], v = l.length) : (l = /** @type {ArrayLike<unknown>} */
468
- e, v = ur(l.length)), o = ut(ce, [v], new.target);
468
+ e, v = lr(l.length)), o = ut(ce, [v], new.target);
469
469
  }
470
470
  for (let y = 0; y < v; ++y)
471
471
  o[y] = Ee(l[y]);
@@ -473,9 +473,9 @@ class P {
473
473
  o = ut(ce, arguments, new.target);
474
474
  const c = (
475
475
  /** @type {any} */
476
- new Ji(o, Ds)
476
+ new $i(o, Bs)
477
477
  );
478
- return Cr(Xt, c, o), c;
478
+ return mr(Wt, c, o), c;
479
479
  }
480
480
  /**
481
481
  * limitation: `Object.getOwnPropertyNames(Float16Array)` or `Reflect.ownKeys(Float16Array)` include this key
@@ -483,33 +483,33 @@ class P {
483
483
  */
484
484
  static from(e, ...i) {
485
485
  const s = this;
486
- if (!wr(s, Wt))
486
+ if (!dr(s, Gt))
487
487
  throw X(
488
- qr
488
+ Xr
489
489
  );
490
- if (s === P) {
490
+ if (s === B) {
491
491
  if (Xe(e) && i.length === 0) {
492
- const b = O(e), m = new ce(
492
+ const b = O(e), U = new ce(
493
493
  $(b),
494
494
  Be(b),
495
495
  x(b)
496
496
  );
497
- return new P(
498
- $(ot(m))
497
+ return new B(
498
+ $(ot(U))
499
499
  );
500
500
  }
501
501
  if (i.length === 0)
502
- return new P(
502
+ return new B(
503
503
  $(
504
- rn(e, Ee)
504
+ en(e, Ee)
505
505
  )
506
506
  );
507
507
  const y = i[0], E = i[1];
508
- return new P(
508
+ return new B(
509
509
  $(
510
- rn(e, function(b, ...m) {
510
+ en(e, function(b, ...U) {
511
511
  return Ee(
512
- ie(y, this, [b, ...ht(m)])
512
+ ie(y, this, [b, ...ht(U)])
513
513
  );
514
514
  }, E)
515
515
  )
@@ -518,15 +518,15 @@ class P {
518
518
  let o, c;
519
519
  const l = e[Ie];
520
520
  if (l != null && typeof l != "function")
521
- throw X(Vr);
521
+ throw X(Yr);
522
522
  if (l != null)
523
- on(e) ? (o = e, c = e.length) : Rs(e) ? (o = e, c = x(e)) : (o = [...e], c = o.length);
523
+ nn(e) ? (o = e, c = e.length) : xs(e) ? (o = e, c = x(e)) : (o = [...e], c = o.length);
524
524
  else {
525
525
  if (e == null)
526
526
  throw X(
527
- pr
527
+ yr
528
528
  );
529
- o = Ve(e), c = ur(o.length);
529
+ o = Ve(e), c = lr(o.length);
530
530
  }
531
531
  const v = new s(c);
532
532
  if (i.length === 0)
@@ -546,13 +546,13 @@ class P {
546
546
  */
547
547
  static of(...e) {
548
548
  const i = this;
549
- if (!wr(i, Wt))
549
+ if (!dr(i, Gt))
550
550
  throw X(
551
- qr
551
+ Xr
552
552
  );
553
553
  const s = e.length;
554
- if (i === P) {
555
- const c = new P(s), l = O(c);
554
+ if (i === B) {
555
+ const c = new B(s), l = O(c);
556
556
  for (let v = 0; v < s; ++v)
557
557
  l[v] = Ee(e[v]);
558
558
  return c;
@@ -566,7 +566,7 @@ class P {
566
566
  keys() {
567
567
  R(this);
568
568
  const e = O(this);
569
- return fs(e);
569
+ return vs(e);
570
570
  }
571
571
  /**
572
572
  * limitation: returns a object whose prototype is not `%ArrayIteratorPrototype%`
@@ -575,8 +575,8 @@ class P {
575
575
  values() {
576
576
  R(this);
577
577
  const e = O(this);
578
- return nn(function* () {
579
- for (const i of vs(e))
578
+ return tn(function* () {
579
+ for (const i of ys(e))
580
580
  yield L(i);
581
581
  }());
582
582
  }
@@ -587,8 +587,8 @@ class P {
587
587
  entries() {
588
588
  R(this);
589
589
  const e = O(this);
590
- return nn(function* () {
591
- for (const [i, s] of ys(e))
590
+ return tn(function* () {
591
+ for (const [i, s] of ps(e))
592
592
  yield (
593
593
  /** @type {[number, number]} */
594
594
  [i, L(s)]
@@ -598,21 +598,21 @@ class P {
598
598
  /** @see https://tc39.es/ecma262/#sec-%typedarray%.prototype.at */
599
599
  at(e) {
600
600
  R(this);
601
- const i = O(this), s = x(i), o = me(e), c = o >= 0 ? o : s + o;
601
+ const i = O(this), s = x(i), o = Ue(e), c = o >= 0 ? o : s + o;
602
602
  if (!(c < 0 || c >= s))
603
603
  return L(i[c]);
604
604
  }
605
605
  /** @see https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.with */
606
606
  with(e, i) {
607
607
  R(this);
608
- const s = O(this), o = x(s), c = me(e), l = c >= 0 ? c : o + c, v = +i;
608
+ const s = O(this), o = x(s), c = Ue(e), l = c >= 0 ? c : o + c, v = +i;
609
609
  if (l < 0 || l >= o)
610
- throw lr(ar);
610
+ throw cr(or);
611
611
  const y = new ce(
612
612
  $(s),
613
613
  Be(s),
614
614
  x(s)
615
- ), E = new P(
615
+ ), E = new B(
616
616
  $(
617
617
  ot(y)
618
618
  )
@@ -622,19 +622,19 @@ class P {
622
622
  /** @see https://tc39.es/ecma262/#sec-%typedarray%.prototype.map */
623
623
  map(e, ...i) {
624
624
  R(this);
625
- const s = O(this), o = x(s), c = i[0], l = Lt(s, P);
626
- if (l === P) {
627
- const y = new P(o), E = O(y);
625
+ const s = O(this), o = x(s), c = i[0], l = Ft(s, B);
626
+ if (l === B) {
627
+ const y = new B(o), E = O(y);
628
628
  for (let b = 0; b < o; ++b) {
629
- const m = L(s[b]);
629
+ const U = L(s[b]);
630
630
  E[b] = Ee(
631
- ie(e, c, [m, b, this])
631
+ ie(e, c, [U, b, this])
632
632
  );
633
633
  }
634
634
  return y;
635
635
  }
636
636
  const v = new l(o);
637
- Pt(v, o);
637
+ Lt(v, o);
638
638
  for (let y = 0; y < o; ++y) {
639
639
  const E = L(s[y]);
640
640
  v[y] = ie(e, c, [E, y, this]);
@@ -650,10 +650,10 @@ class P {
650
650
  const s = O(this), o = x(s), c = i[0], l = [];
651
651
  for (let E = 0; E < o; ++E) {
652
652
  const b = L(s[E]);
653
- ie(e, c, [b, E, this]) && rs(l, b);
653
+ ie(e, c, [b, E, this]) && ns(l, b);
654
654
  }
655
- const v = Lt(s, P), y = new v(l);
656
- return Pt(y), /** @type {any} */
655
+ const v = Ft(s, B), y = new v(l);
656
+ return Lt(y), /** @type {any} */
657
657
  y;
658
658
  }
659
659
  /** @see https://tc39.es/ecma262/#sec-%typedarray%.prototype.reduce */
@@ -661,7 +661,7 @@ class P {
661
661
  R(this);
662
662
  const s = O(this), o = x(s);
663
663
  if (o === 0 && i.length === 0)
664
- throw X(Jr);
664
+ throw X(qr);
665
665
  let c, l;
666
666
  i.length === 0 ? (c = L(s[0]), l = 1) : (c = i[0], l = 0);
667
667
  for (let v = l; v < o; ++v)
@@ -678,7 +678,7 @@ class P {
678
678
  R(this);
679
679
  const s = O(this), o = x(s);
680
680
  if (o === 0 && i.length === 0)
681
- throw X(Jr);
681
+ throw X(qr);
682
682
  let c, l;
683
683
  i.length === 0 ? (c = L(s[o - 1]), l = o - 2) : (c = i[0], l = o - 1);
684
684
  for (let v = l; v >= 0; --v)
@@ -772,31 +772,31 @@ class P {
772
772
  /** @see https://tc39.es/ecma262/#sec-%typedarray%.prototype.set */
773
773
  set(e, ...i) {
774
774
  R(this);
775
- const s = O(this), o = me(i[0]);
775
+ const s = O(this), o = Ue(i[0]);
776
776
  if (o < 0)
777
- throw lr(ar);
777
+ throw cr(or);
778
778
  if (e == null)
779
779
  throw X(
780
- pr
780
+ yr
781
781
  );
782
- if (Sr(e))
782
+ if (gr(e))
783
783
  throw X(
784
- dr
784
+ pr
785
785
  );
786
786
  if (Xe(e))
787
- return ps(
787
+ return ds(
788
788
  O(this),
789
789
  O(e),
790
790
  o
791
791
  );
792
- if (Gt(e)) {
792
+ if (Ht(e)) {
793
793
  const y = $(e);
794
794
  if (yt(y))
795
795
  throw X(vt);
796
796
  }
797
- const c = x(s), l = Ve(e), v = ur(l.length);
797
+ const c = x(s), l = Ve(e), v = lr(l.length);
798
798
  if (o === 1 / 0 || v + o > c)
799
- throw lr(ar);
799
+ throw cr(or);
800
800
  for (let y = 0; y < v; ++y)
801
801
  s[y + o] = Ee(l[y]);
802
802
  }
@@ -804,7 +804,7 @@ class P {
804
804
  reverse() {
805
805
  R(this);
806
806
  const e = O(this);
807
- return en(e), this;
807
+ return jr(e), this;
808
808
  }
809
809
  /** @see https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.toReversed */
810
810
  toReversed() {
@@ -813,18 +813,18 @@ class P {
813
813
  $(e),
814
814
  Be(e),
815
815
  x(e)
816
- ), s = new P(
816
+ ), s = new B(
817
817
  $(
818
818
  ot(i)
819
819
  )
820
820
  ), o = O(s);
821
- return en(o), s;
821
+ return jr(o), s;
822
822
  }
823
823
  /** @see https://tc39.es/ecma262/#sec-%typedarray%.prototype.fill */
824
824
  fill(e, ...i) {
825
825
  R(this);
826
826
  const s = O(this);
827
- return ds(
827
+ return ws(
828
828
  s,
829
829
  Ee(e),
830
830
  ...ht(i)
@@ -834,86 +834,86 @@ class P {
834
834
  copyWithin(e, i, ...s) {
835
835
  R(this);
836
836
  const o = O(this);
837
- return ws(o, e, i, ...ht(s)), this;
837
+ return As(o, e, i, ...ht(s)), this;
838
838
  }
839
839
  /** @see https://tc39.es/ecma262/#sec-%typedarray%.prototype.sort */
840
840
  sort(e) {
841
841
  R(this);
842
- const i = O(this), s = e !== void 0 ? e : cn;
843
- return tn(i, (o, c) => s(L(o), L(c))), this;
842
+ const i = O(this), s = e !== void 0 ? e : on;
843
+ return Kr(i, (o, c) => s(L(o), L(c))), this;
844
844
  }
845
845
  /** @see https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.toSorted */
846
846
  toSorted(e) {
847
847
  R(this);
848
848
  const i = O(this);
849
849
  if (e !== void 0 && typeof e != "function")
850
- throw new X(Vi);
851
- const s = e !== void 0 ? e : cn, o = new ce(
850
+ throw new X(Ji);
851
+ const s = e !== void 0 ? e : on, o = new ce(
852
852
  $(i),
853
853
  Be(i),
854
854
  x(i)
855
- ), c = new P(
855
+ ), c = new B(
856
856
  $(
857
857
  ot(o)
858
858
  )
859
859
  ), l = O(c);
860
- return tn(l, (v, y) => s(L(v), L(y))), c;
860
+ return Kr(l, (v, y) => s(L(v), L(y))), c;
861
861
  }
862
862
  /** @see https://tc39.es/ecma262/#sec-%typedarray%.prototype.slice */
863
863
  slice(e, i) {
864
864
  R(this);
865
- const s = O(this), o = Lt(s, P);
866
- if (o === P) {
865
+ const s = O(this), o = Ft(s, B);
866
+ if (o === B) {
867
867
  const Ze = new ce(
868
868
  $(s),
869
869
  Be(s),
870
870
  x(s)
871
871
  );
872
- return new P(
872
+ return new B(
873
873
  $(
874
874
  ot(Ze, e, i)
875
875
  )
876
876
  );
877
877
  }
878
- const c = x(s), l = me(e), v = i === void 0 ? c : me(i);
878
+ const c = x(s), l = Ue(e), v = i === void 0 ? c : Ue(i);
879
879
  let y;
880
880
  l === -1 / 0 ? y = 0 : l < 0 ? y = c + l > 0 ? c + l : 0 : y = c < l ? c : l;
881
881
  let E;
882
882
  v === -1 / 0 ? E = 0 : v < 0 ? E = c + v > 0 ? c + v : 0 : E = c < v ? c : v;
883
- const b = E - y > 0 ? E - y : 0, m = new o(b);
884
- if (Pt(m, b), b === 0)
885
- return m;
883
+ const b = E - y > 0 ? E - y : 0, U = new o(b);
884
+ if (Lt(U, b), b === 0)
885
+ return U;
886
886
  const q = $(s);
887
887
  if (yt(q))
888
888
  throw X(vt);
889
889
  let se = 0;
890
890
  for (; y < E; )
891
- m[se] = L(s[y]), ++y, ++se;
891
+ U[se] = L(s[y]), ++y, ++se;
892
892
  return (
893
893
  /** @type {any} */
894
- m
894
+ U
895
895
  );
896
896
  }
897
897
  /** @see https://tc39.es/ecma262/#sec-%typedarray%.prototype.subarray */
898
898
  subarray(e, i) {
899
899
  R(this);
900
- const s = O(this), o = Lt(s, P), c = new ce(
900
+ const s = O(this), o = Ft(s, B), c = new ce(
901
901
  $(s),
902
902
  Be(s),
903
903
  x(s)
904
- ), l = As(c, e, i), v = new o(
904
+ ), l = gs(c, e, i), v = new o(
905
905
  $(l),
906
906
  Be(l),
907
907
  x(l)
908
908
  );
909
- return Pt(v), /** @type {any} */
909
+ return Lt(v), /** @type {any} */
910
910
  v;
911
911
  }
912
912
  /** @see https://tc39.es/ecma262/#sec-%typedarray%.prototype.indexof */
913
913
  indexOf(e, ...i) {
914
914
  R(this);
915
915
  const s = O(this), o = x(s);
916
- let c = me(i[0]);
916
+ let c = Ue(i[0]);
917
917
  if (c === 1 / 0)
918
918
  return -1;
919
919
  c < 0 && (c += o, c < 0 && (c = 0));
@@ -926,7 +926,7 @@ class P {
926
926
  lastIndexOf(e, ...i) {
927
927
  R(this);
928
928
  const s = O(this), o = x(s);
929
- let c = i.length >= 1 ? me(i[0]) : o - 1;
929
+ let c = i.length >= 1 ? Ue(i[0]) : o - 1;
930
930
  if (c === -1 / 0)
931
931
  return -1;
932
932
  c >= 0 ? c = c < o - 1 ? c : o - 1 : c += o;
@@ -939,7 +939,7 @@ class P {
939
939
  includes(e, ...i) {
940
940
  R(this);
941
941
  const s = O(this), o = x(s);
942
- let c = me(i[0]);
942
+ let c = Ue(i[0]);
943
943
  if (c === 1 / 0)
944
944
  return !1;
945
945
  c < 0 && (c += o, c < 0 && (c = 0));
@@ -954,17 +954,17 @@ class P {
954
954
  /** @see https://tc39.es/ecma262/#sec-%typedarray%.prototype.join */
955
955
  join(e) {
956
956
  R(this);
957
- const i = O(this), s = ln(i);
958
- return ts(s, e);
957
+ const i = O(this), s = an(i);
958
+ return rs(s, e);
959
959
  }
960
960
  /** @see https://tc39.es/ecma262/#sec-%typedarray%.prototype.tolocalestring */
961
961
  toLocaleString(...e) {
962
962
  R(this);
963
- const i = O(this), s = ln(i);
964
- return ns(s, ...ht(e));
963
+ const i = O(this), s = an(i);
964
+ return is(s, ...ht(e));
965
965
  }
966
966
  /** @see https://tc39.es/ecma262/#sec-get-%typedarray%.prototype-@@tostringtag */
967
- get [br]() {
967
+ get [Ir]() {
968
968
  if (Xe(this))
969
969
  return (
970
970
  /** @type {any} */
@@ -972,54 +972,30 @@ class P {
972
972
  );
973
973
  }
974
974
  }
975
- gt(P, "BYTES_PER_ELEMENT", {
976
- value: xr
975
+ gt(B, "BYTES_PER_ELEMENT", {
976
+ value: Cr
977
977
  });
978
- gt(P, Wt, {});
979
- wn(P, Or);
980
- const Yt = P.prototype;
981
- gt(Yt, "BYTES_PER_ELEMENT", {
982
- value: xr
978
+ gt(B, Gt, {});
979
+ dn(B, br);
980
+ const Xt = B.prototype;
981
+ gt(Xt, "BYTES_PER_ELEMENT", {
982
+ value: Cr
983
983
  });
984
- gt(Yt, Ie, {
985
- value: Yt.values,
984
+ gt(Xt, Ie, {
985
+ value: Xt.values,
986
986
  writable: !0,
987
987
  configurable: !0
988
988
  });
989
- wn(Yt, Q);
990
- function Bs(r, e, ...i) {
989
+ dn(Xt, Q);
990
+ function zs(r, e, ...i) {
991
991
  return L(
992
- _s(r, e, ...ht(i))
992
+ bs(r, e, ...ht(i))
993
993
  );
994
994
  }
995
- function bo(r) {
996
- const e = r instanceof Int8Array ? "int8" : r instanceof Uint8Array || r instanceof Uint8ClampedArray ? "uint8" : r instanceof Int16Array ? "int16" : r instanceof Uint16Array ? "uint16" : r instanceof Int32Array ? "int32" : r instanceof Uint32Array ? "uint32" : r instanceof P ? "float16" : r instanceof Float32Array ? "float32" : r instanceof Float64Array ? "float64" : null;
997
- return _r(e != null), e;
998
- }
999
- function No(r) {
1000
- return r instanceof Int8Array || r instanceof Uint8Array || r instanceof Uint8ClampedArray || r instanceof Int16Array || r instanceof Uint16Array || r instanceof Int32Array || r instanceof Uint32Array || r instanceof P || r instanceof Float32Array || r instanceof Float64Array;
1001
- }
1002
- let Mt;
1003
- function zs() {
1004
- if (Mt != null)
1005
- return Mt;
1006
- const r = new Uint32Array([268435456]);
1007
- return Mt = new Uint8Array(r.buffer, r.byteOffset, r.byteLength)[0] === 0, Mt;
1008
- }
1009
- function ke(r, e, i, s = !0) {
1010
- if (s === zs())
1011
- return new e(r);
1012
- const o = Object.assign(new DataView(r), {
1013
- getFloat16(l, v) {
1014
- return Bs(this, l, v);
1015
- }
1016
- }), c = new e(o.byteLength / e.BYTES_PER_ELEMENT);
1017
- for (let l = 0, v = 0; l < c.length; ++l, v += e.BYTES_PER_ELEMENT)
1018
- c[l] = o[i](v, s);
1019
- return c;
995
+ function Io(r) {
996
+ return r instanceof Int8Array || r instanceof Uint8Array || r instanceof Uint8ClampedArray || r instanceof Int16Array || r instanceof Uint16Array || r instanceof Int32Array || r instanceof Uint32Array || r instanceof B || r instanceof Float32Array || r instanceof Float64Array;
1020
997
  }
1021
- const ks = (r) => new Uint8Array(r), Oo = (r) => new Int8Array(r), Zs = (r, e) => ke(r, Uint16Array, "getUint16", e), Hs = (r, e) => ke(r, Int16Array, "getInt16", e), Uo = (r, e) => ke(r, Int32Array, "getInt32", e), mo = (r, e) => ke(r, Uint32Array, "getUint32", e), Co = (r, e) => ke(r, P, "getFloat16", e), Gs = (r, e) => ke(r, Float32Array, "getFloat32", e), Ro = (r, e) => ke(r, Float64Array, "getFloat64", e);
1022
- class Ws extends Vt {
998
+ class ks extends qt {
1023
999
  load(e, i, s, o) {
1024
1000
  const c = new ki(this.manager);
1025
1001
  c.setRequestHeader(this.requestHeader), c.setPath(this.path), c.setWithCredentials(this.withCredentials), c.load(
@@ -1036,27 +1012,26 @@ class Ws extends Vt {
1036
1012
  );
1037
1013
  }
1038
1014
  }
1039
- function St(r) {
1040
- return class extends Ws {
1015
+ function Mn(r) {
1016
+ return class extends ks {
1041
1017
  constructor() {
1042
1018
  super(...arguments), this.parseTypedArray = r;
1043
1019
  }
1044
1020
  };
1045
1021
  }
1046
- function xo(r) {
1047
- return new (St(r))();
1022
+ function _o(r) {
1023
+ return new (Mn(r))();
1048
1024
  }
1049
- const Fo = /* @__PURE__ */ St(Hs), Lo = /* @__PURE__ */ St(Zs), Po = /* @__PURE__ */ St(Gs);
1050
- function Xs(r) {
1051
- const e = r instanceof Int8Array ? Ui : r instanceof Uint8Array ? Hr : r instanceof Uint8ClampedArray ? Hr : r instanceof Int16Array ? mi : r instanceof Uint16Array ? Ci : r instanceof Int32Array ? Ri : r instanceof Uint32Array ? xi : r instanceof P ? lt : r instanceof Float32Array ? ft : r instanceof Float64Array ? ft : null;
1052
- return _r(e != null), e;
1025
+ function Zs(r) {
1026
+ const e = r instanceof Int8Array ? mi : r instanceof Uint8Array ? kr : r instanceof Uint8ClampedArray ? kr : r instanceof Int16Array ? Ui : r instanceof Uint16Array ? Ci : r instanceof Int32Array ? Ri : r instanceof Uint32Array ? xi : r instanceof B ? lt : r instanceof Float32Array ? ft : r instanceof Float64Array ? ft : null;
1027
+ return vn(e != null), e;
1053
1028
  }
1054
- const Ys = {
1055
- format: hn,
1056
- minFilter: kt,
1057
- magFilter: kt
1029
+ const Hs = {
1030
+ format: ln,
1031
+ minFilter: zt,
1032
+ magFilter: zt
1058
1033
  };
1059
- class qs extends Vt {
1034
+ class Gs extends qt {
1060
1035
  constructor() {
1061
1036
  super(...arguments), this.parameters = {};
1062
1037
  }
@@ -1065,9 +1040,9 @@ class qs extends Vt {
1065
1040
  l.setRequestHeader(this.requestHeader), l.setPath(this.path), l.setWithCredentials(this.withCredentials), l.load(
1066
1041
  e,
1067
1042
  (v) => {
1068
- c.image.data = v instanceof P ? new Uint16Array(v.buffer) : v;
1069
- const { width: y, height: E, depth: b, ...m } = this.parameters;
1070
- y != null && (c.image.width = y), E != null && (c.image.height = E), "depth" in c.image && b != null && (c.image.depth = b), c.type = Xs(v), Object.assign(c, m), c.needsUpdate = !0, i(c);
1043
+ c.image.data = v instanceof B ? new Uint16Array(v.buffer) : v;
1044
+ const { width: y, height: E, depth: b, ...U } = this.parameters;
1045
+ y != null && (c.image.width = y), E != null && (c.image.height = E), "depth" in c.image && b != null && (c.image.depth = b), c.type = Zs(v), Object.assign(c, U), c.needsUpdate = !0, i(c);
1071
1046
  },
1072
1047
  s,
1073
1048
  o
@@ -1075,47 +1050,47 @@ class qs extends Vt {
1075
1050
  }
1076
1051
  }
1077
1052
  function Dn(r, e, i) {
1078
- return class extends qs {
1053
+ return class extends Gs {
1079
1054
  constructor() {
1080
- super(...arguments), this.Texture = r, this.TypedArrayLoader = St(e), this.parameters = {
1081
- ...Ys,
1055
+ super(...arguments), this.Texture = r, this.TypedArrayLoader = Mn(e), this.parameters = {
1056
+ ...Hs,
1082
1057
  ...i
1083
1058
  };
1084
1059
  }
1085
1060
  };
1086
1061
  }
1087
1062
  function Bn(r, e) {
1088
- return Dn(fn, r, e);
1063
+ return Dn(un, r, e);
1089
1064
  }
1090
- function Vs(r, e) {
1065
+ function Ws(r, e) {
1091
1066
  return Dn(Fi, r, e);
1092
1067
  }
1093
- function Mo(r, e) {
1068
+ function bo(r, e) {
1094
1069
  return new (Bn(r, e))();
1095
1070
  }
1096
- function Do(r, e) {
1097
- return new (Vs(r, e))();
1071
+ function No(r, e) {
1072
+ return new (Ws(r, e))();
1098
1073
  }
1099
- const Je = ye.clamp, Bo = ye.euclideanModulo, zo = ye.inverseLerp, ko = ye.lerp, Zo = ye.degToRad, Ho = ye.radToDeg, Go = ye.isPowerOfTwo, Wo = ye.ceilPowerOfTwo, Xo = ye.floorPowerOfTwo, Yo = ye.normalize;
1100
- function qo(r, e, i, s = 0, o = 1) {
1074
+ const Je = ye.clamp, Oo = ye.euclideanModulo, mo = ye.inverseLerp, Uo = ye.lerp, Co = ye.degToRad, Ro = ye.radToDeg, xo = ye.isPowerOfTwo, Fo = ye.ceilPowerOfTwo, Lo = ye.floorPowerOfTwo, Po = ye.normalize;
1075
+ function Mo(r, e, i, s = 0, o = 1) {
1101
1076
  return ye.mapLinear(r, e, i, s, o);
1102
1077
  }
1103
- function Vo(r, e, i, s = 0, o = 1) {
1078
+ function Do(r, e, i, s = 0, o = 1) {
1104
1079
  return Je(ye.mapLinear(r, e, i, s, o), s, o);
1105
1080
  }
1106
- function Jo(r, e, i) {
1081
+ function Bo(r, e, i) {
1107
1082
  return i <= r ? 0 : i >= e ? 1 : (i = (i - r) / (e - r), i * i * (3 - 2 * i));
1108
1083
  }
1109
- function $o(r) {
1084
+ function zo(r) {
1110
1085
  return Math.min(Math.max(r, 0), 1);
1111
1086
  }
1112
- function Qo(r, e, i, s = i) {
1087
+ function ko(r, e, i, s = i) {
1113
1088
  const o = Math.abs(r - e);
1114
1089
  return o <= s || o <= i * Math.max(Math.abs(r), Math.abs(e));
1115
1090
  }
1116
- function jo(r) {
1091
+ function Zo(r) {
1117
1092
  return (e, i) => {
1118
- e instanceof Jt ? Object.defineProperty(e, i, {
1093
+ e instanceof Vt ? Object.defineProperty(e, i, {
1119
1094
  enumerable: !0,
1120
1095
  get() {
1121
1096
  var s;
@@ -1136,12 +1111,12 @@ function jo(r) {
1136
1111
  });
1137
1112
  };
1138
1113
  }
1139
- function Ko(r, {
1114
+ function Ho(r, {
1140
1115
  min: e = Number.MIN_SAFE_INTEGER,
1141
1116
  max: i = Number.MAX_SAFE_INTEGER
1142
1117
  } = {}) {
1143
1118
  return (s, o) => {
1144
- s instanceof Jt ? Object.defineProperty(s, o, {
1119
+ s instanceof Vt ? Object.defineProperty(s, o, {
1145
1120
  enumerable: !0,
1146
1121
  get() {
1147
1122
  var l;
@@ -1165,13 +1140,13 @@ function Ko(r, {
1165
1140
  });
1166
1141
  };
1167
1142
  }
1168
- function ea(r, {
1143
+ function Go(r, {
1169
1144
  min: e = -1 / 0,
1170
1145
  max: i = 1 / 0,
1171
1146
  precision: s = 7
1172
1147
  } = {}) {
1173
1148
  return (o, c) => {
1174
- o instanceof Jt ? Object.defineProperty(o, c, {
1149
+ o instanceof Vt ? Object.defineProperty(o, c, {
1175
1150
  enumerable: !0,
1176
1151
  get() {
1177
1152
  var v;
@@ -1195,9 +1170,9 @@ function ea(r, {
1195
1170
  });
1196
1171
  };
1197
1172
  }
1198
- function ta(r, { validate: e } = {}) {
1173
+ function Wo(r, { validate: e } = {}) {
1199
1174
  return (i, s) => {
1200
- i instanceof Jt ? Object.defineProperty(i, s, {
1175
+ i instanceof Vt ? Object.defineProperty(i, s, {
1201
1176
  enumerable: !0,
1202
1177
  get() {
1203
1178
  var o;
@@ -1229,7 +1204,7 @@ function ta(r, { validate: e } = {}) {
1229
1204
  });
1230
1205
  };
1231
1206
  }
1232
- function ra(r, ...e) {
1207
+ function Xo(r, ...e) {
1233
1208
  const i = {};
1234
1209
  for (let s = 0; s < e.length; s += 2) {
1235
1210
  const o = e[s], c = e[s + 1];
@@ -1244,7 +1219,7 @@ function ra(r, ...e) {
1244
1219
  }
1245
1220
  return Object.defineProperties(r, i), r;
1246
1221
  }
1247
- function na(r, e, i) {
1222
+ function Yo(r, e, i) {
1248
1223
  const s = {};
1249
1224
  for (const o of i)
1250
1225
  s[o] = {
@@ -1256,8 +1231,8 @@ function na(r, e, i) {
1256
1231
  };
1257
1232
  return Object.defineProperties(r, s), r;
1258
1233
  }
1259
- const Js = parseInt(Li.replace(/\D+/g, ""));
1260
- var ve = Uint8Array, Le = Uint16Array, Er = Uint32Array, zn = new ve([
1234
+ const Xs = parseInt(Li.replace(/\D+/g, ""));
1235
+ var ve = Uint8Array, Le = Uint16Array, Tr = Uint32Array, zn = new ve([
1261
1236
  0,
1262
1237
  0,
1263
1238
  0,
@@ -1326,19 +1301,19 @@ var ve = Uint8Array, Le = Uint16Array, Er = Uint32Array, zn = new ve([
1326
1301
  /* unused */
1327
1302
  0,
1328
1303
  0
1329
- ]), $s = new ve([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), Zn = function(r, e) {
1304
+ ]), Ys = new ve([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), Zn = function(r, e) {
1330
1305
  for (var i = new Le(31), s = 0; s < 31; ++s)
1331
1306
  i[s] = e += 1 << r[s - 1];
1332
- for (var o = new Er(i[30]), s = 1; s < 30; ++s)
1307
+ for (var o = new Tr(i[30]), s = 1; s < 30; ++s)
1333
1308
  for (var c = i[s]; c < i[s + 1]; ++c)
1334
1309
  o[c] = c - i[s] << 5 | s;
1335
1310
  return [i, o];
1336
- }, Hn = Zn(zn, 2), Gn = Hn[0], Qs = Hn[1];
1337
- Gn[28] = 258, Qs[258] = 28;
1338
- var js = Zn(kn, 0), Ks = js[0], Ir = new Le(32768);
1311
+ }, Hn = Zn(zn, 2), Gn = Hn[0], qs = Hn[1];
1312
+ Gn[28] = 258, qs[258] = 28;
1313
+ var Vs = Zn(kn, 0), Js = Vs[0], Er = new Le(32768);
1339
1314
  for (var G = 0; G < 32768; ++G) {
1340
1315
  var Fe = (G & 43690) >>> 1 | (G & 21845) << 1;
1341
- Fe = (Fe & 52428) >>> 2 | (Fe & 13107) << 2, Fe = (Fe & 61680) >>> 4 | (Fe & 3855) << 4, Ir[G] = ((Fe & 65280) >>> 8 | (Fe & 255) << 8) >>> 1;
1316
+ Fe = (Fe & 52428) >>> 2 | (Fe & 13107) << 2, Fe = (Fe & 61680) >>> 4 | (Fe & 3855) << 4, Er[G] = ((Fe & 65280) >>> 8 | (Fe & 255) << 8) >>> 1;
1342
1317
  }
1343
1318
  var pt = function(r, e, i) {
1344
1319
  for (var s = r.length, o = 0, c = new Le(e); o < s; ++o)
@@ -1352,68 +1327,68 @@ var pt = function(r, e, i) {
1352
1327
  var y = 15 - e;
1353
1328
  for (o = 0; o < s; ++o)
1354
1329
  if (r[o])
1355
- for (var E = o << 4 | r[o], b = e - r[o], m = l[r[o] - 1]++ << b, q = m | (1 << b) - 1; m <= q; ++m)
1356
- v[Ir[m] >>> y] = E;
1330
+ for (var E = o << 4 | r[o], b = e - r[o], U = l[r[o] - 1]++ << b, q = U | (1 << b) - 1; U <= q; ++U)
1331
+ v[Er[U] >>> y] = E;
1357
1332
  } else
1358
1333
  for (v = new Le(s), o = 0; o < s; ++o)
1359
- r[o] && (v[o] = Ir[l[r[o] - 1]++] >>> 15 - r[o]);
1334
+ r[o] && (v[o] = Er[l[r[o] - 1]++] >>> 15 - r[o]);
1360
1335
  return v;
1361
- }, Tt = new ve(288);
1336
+ }, St = new ve(288);
1362
1337
  for (var G = 0; G < 144; ++G)
1363
- Tt[G] = 8;
1338
+ St[G] = 8;
1364
1339
  for (var G = 144; G < 256; ++G)
1365
- Tt[G] = 9;
1340
+ St[G] = 9;
1366
1341
  for (var G = 256; G < 280; ++G)
1367
- Tt[G] = 7;
1342
+ St[G] = 7;
1368
1343
  for (var G = 280; G < 288; ++G)
1369
- Tt[G] = 8;
1344
+ St[G] = 8;
1370
1345
  var Wn = new ve(32);
1371
1346
  for (var G = 0; G < 32; ++G)
1372
1347
  Wn[G] = 5;
1373
- var eo = /* @__PURE__ */ pt(Tt, 9, 1), to = /* @__PURE__ */ pt(Wn, 5, 1), hr = function(r) {
1348
+ var $s = /* @__PURE__ */ pt(St, 9, 1), Qs = /* @__PURE__ */ pt(Wn, 5, 1), ur = function(r) {
1374
1349
  for (var e = r[0], i = 1; i < r.length; ++i)
1375
1350
  r[i] > e && (e = r[i]);
1376
1351
  return e;
1377
1352
  }, de = function(r, e, i) {
1378
1353
  var s = e / 8 | 0;
1379
1354
  return (r[s] | r[s + 1] << 8) >> (e & 7) & i;
1380
- }, fr = function(r, e) {
1355
+ }, hr = function(r, e) {
1381
1356
  var i = e / 8 | 0;
1382
1357
  return (r[i] | r[i + 1] << 8 | r[i + 2] << 16) >> (e & 7);
1383
- }, ro = function(r) {
1358
+ }, js = function(r) {
1384
1359
  return (r / 8 | 0) + (r & 7 && 1);
1385
- }, no = function(r, e, i) {
1360
+ }, Ks = function(r, e, i) {
1386
1361
  (i == null || i > r.length) && (i = r.length);
1387
- var s = new (r instanceof Le ? Le : r instanceof Er ? Er : ve)(i - e);
1362
+ var s = new (r instanceof Le ? Le : r instanceof Tr ? Tr : ve)(i - e);
1388
1363
  return s.set(r.subarray(e, i)), s;
1389
- }, io = function(r, e, i) {
1364
+ }, eo = function(r, e, i) {
1390
1365
  var s = r.length;
1391
1366
  if (!s || i && !i.l && s < 5)
1392
1367
  return e || new ve(0);
1393
1368
  var o = !e || i, c = !i || i.i;
1394
1369
  i || (i = {}), e || (e = new ve(s * 3));
1395
- var l = function(M) {
1370
+ var l = function(P) {
1396
1371
  var be = e.length;
1397
- if (M > be) {
1398
- var Ne = new ve(Math.max(be * 2, M));
1372
+ if (P > be) {
1373
+ var Ne = new ve(Math.max(be * 2, P));
1399
1374
  Ne.set(e), e = Ne;
1400
1375
  }
1401
- }, v = i.f || 0, y = i.p || 0, E = i.b || 0, b = i.l, m = i.d, q = i.m, se = i.n, Ze = s * 8;
1376
+ }, v = i.f || 0, y = i.p || 0, E = i.b || 0, b = i.l, U = i.d, q = i.m, se = i.n, Ze = s * 8;
1402
1377
  do {
1403
1378
  if (!b) {
1404
1379
  i.f = v = de(r, y, 1);
1405
- var Et = de(r, y + 1, 3);
1406
- if (y += 3, Et)
1407
- if (Et == 1)
1408
- b = eo, m = to, q = 9, se = 5;
1409
- else if (Et == 2) {
1410
- var bt = de(r, y, 31) + 257, tr = de(r, y + 10, 15) + 4, rr = bt + de(r, y + 5, 31) + 1;
1380
+ var Tt = de(r, y + 1, 3);
1381
+ if (y += 3, Tt)
1382
+ if (Tt == 1)
1383
+ b = $s, U = Qs, q = 9, se = 5;
1384
+ else if (Tt == 2) {
1385
+ var _t = de(r, y, 31) + 257, er = de(r, y + 10, 15) + 4, tr = _t + de(r, y + 5, 31) + 1;
1411
1386
  y += 14;
1412
- for (var He = new ve(rr), Nt = new ve(19), oe = 0; oe < tr; ++oe)
1413
- Nt[$s[oe]] = de(r, y + oe * 3, 7);
1414
- y += tr * 3;
1415
- for (var Ot = hr(Nt), nr = (1 << Ot) - 1, ir = pt(Nt, Ot, 1), oe = 0; oe < rr; ) {
1416
- var le = ir[de(r, y, nr)];
1387
+ for (var He = new ve(tr), bt = new ve(19), oe = 0; oe < er; ++oe)
1388
+ bt[Ys[oe]] = de(r, y + oe * 3, 7);
1389
+ y += er * 3;
1390
+ for (var Nt = ur(bt), rr = (1 << Nt) - 1, nr = pt(bt, Nt, 1), oe = 0; oe < tr; ) {
1391
+ var le = nr[de(r, y, rr)];
1417
1392
  y += le & 15;
1418
1393
  var pe = le >>> 4;
1419
1394
  if (pe < 16)
@@ -1424,18 +1399,18 @@ var eo = /* @__PURE__ */ pt(Tt, 9, 1), to = /* @__PURE__ */ pt(Wn, 5, 1), hr = f
1424
1399
  He[oe++] = _e;
1425
1400
  }
1426
1401
  }
1427
- var Ut = He.subarray(0, bt), Se = He.subarray(bt);
1428
- q = hr(Ut), se = hr(Se), b = pt(Ut, q, 1), m = pt(Se, se, 1);
1402
+ var Ot = He.subarray(0, _t), Se = He.subarray(_t);
1403
+ q = ur(Ot), se = ur(Se), b = pt(Ot, q, 1), U = pt(Se, se, 1);
1429
1404
  } else
1430
1405
  throw "invalid block type";
1431
1406
  else {
1432
- var pe = ro(y) + 4, It = r[pe - 4] | r[pe - 3] << 8, _t = pe + It;
1433
- if (_t > s) {
1407
+ var pe = js(y) + 4, Et = r[pe - 4] | r[pe - 3] << 8, It = pe + Et;
1408
+ if (It > s) {
1434
1409
  if (c)
1435
1410
  throw "unexpected EOF";
1436
1411
  break;
1437
1412
  }
1438
- o && l(E + It), e.set(r.subarray(pe, _t), E), i.b = E += It, i.p = y = _t * 8;
1413
+ o && l(E + Et), e.set(r.subarray(pe, It), E), i.b = E += Et, i.p = y = It * 8;
1439
1414
  continue;
1440
1415
  }
1441
1416
  if (y > Ze) {
@@ -1445,8 +1420,8 @@ var eo = /* @__PURE__ */ pt(Tt, 9, 1), to = /* @__PURE__ */ pt(Wn, 5, 1), hr = f
1445
1420
  }
1446
1421
  }
1447
1422
  o && l(E + 131072);
1448
- for (var mt = (1 << q) - 1, Ct = (1 << se) - 1, je = y; ; je = y) {
1449
- var _e = b[fr(r, y) & mt], ee = _e >>> 4;
1423
+ for (var mt = (1 << q) - 1, Ut = (1 << se) - 1, je = y; ; je = y) {
1424
+ var _e = b[hr(r, y) & mt], ee = _e >>> 4;
1450
1425
  if (y += _e & 15, y > Ze) {
1451
1426
  if (c)
1452
1427
  throw "unexpected EOF";
@@ -1465,14 +1440,14 @@ var eo = /* @__PURE__ */ pt(Tt, 9, 1), to = /* @__PURE__ */ pt(Wn, 5, 1), hr = f
1465
1440
  var oe = ee - 257, re = zn[oe];
1466
1441
  Ge = de(r, y, (1 << re) - 1) + Gn[oe], y += re;
1467
1442
  }
1468
- var Pe = m[fr(r, y) & Ct], Me = Pe >>> 4;
1443
+ var Pe = U[hr(r, y) & Ut], Me = Pe >>> 4;
1469
1444
  if (!Pe)
1470
1445
  throw "invalid distance";
1471
1446
  y += Pe & 15;
1472
- var Se = Ks[Me];
1447
+ var Se = Js[Me];
1473
1448
  if (Me > 3) {
1474
1449
  var re = kn[Me];
1475
- Se += fr(r, y) & (1 << re) - 1, y += re;
1450
+ Se += hr(r, y) & (1 << re) - 1, y += re;
1476
1451
  }
1477
1452
  if (y > Ze) {
1478
1453
  if (c)
@@ -1485,49 +1460,49 @@ var eo = /* @__PURE__ */ pt(Tt, 9, 1), to = /* @__PURE__ */ pt(Wn, 5, 1), hr = f
1485
1460
  E = Ke;
1486
1461
  }
1487
1462
  }
1488
- i.l = b, i.p = je, i.b = E, b && (v = 1, i.m = q, i.d = m, i.n = se);
1463
+ i.l = b, i.p = je, i.b = E, b && (v = 1, i.m = q, i.d = U, i.n = se);
1489
1464
  } while (!v);
1490
- return E == e.length ? e : no(e, 0, E);
1491
- }, so = /* @__PURE__ */ new ve(0), oo = function(r) {
1465
+ return E == e.length ? e : Ks(e, 0, E);
1466
+ }, to = /* @__PURE__ */ new ve(0), ro = function(r) {
1492
1467
  if ((r[0] & 15) != 8 || r[0] >>> 4 > 7 || (r[0] << 8 | r[1]) % 31)
1493
1468
  throw "invalid zlib data";
1494
1469
  if (r[1] & 32)
1495
1470
  throw "invalid zlib data: preset dictionaries not supported";
1496
1471
  };
1497
- function Dt(r, e) {
1498
- return io((oo(r), r.subarray(2, -4)), e);
1472
+ function Pt(r, e) {
1473
+ return eo((ro(r), r.subarray(2, -4)), e);
1499
1474
  }
1500
- var ao = typeof TextDecoder < "u" && /* @__PURE__ */ new TextDecoder(), co = 0;
1475
+ var no = typeof TextDecoder < "u" && /* @__PURE__ */ new TextDecoder(), io = 0;
1501
1476
  try {
1502
- ao.decode(so, { stream: !0 }), co = 1;
1477
+ no.decode(to, { stream: !0 }), io = 1;
1503
1478
  } catch {
1504
1479
  }
1505
- const at = Js >= 152;
1506
- class lo extends Pi {
1480
+ const at = Xs >= 152;
1481
+ class so extends Pi {
1507
1482
  constructor(e) {
1508
1483
  super(e), this.type = lt;
1509
1484
  }
1510
1485
  parse(e) {
1511
- const Ot = Math.pow(2.7182818, 2.2);
1512
- function nr(t, n) {
1486
+ const Nt = Math.pow(2.7182818, 2.2);
1487
+ function rr(t, n) {
1513
1488
  for (var a = 0, u = 0; u < 65536; ++u)
1514
1489
  (u == 0 || t[u >> 3] & 1 << (u & 7)) && (n[a++] = u);
1515
1490
  for (var h = a - 1; a < 65536; )
1516
1491
  n[a++] = 0;
1517
1492
  return h;
1518
1493
  }
1519
- function ir(t) {
1494
+ function nr(t) {
1520
1495
  for (var n = 0; n < 16384; n++)
1521
1496
  t[n] = {}, t[n].len = 0, t[n].lit = 0, t[n].p = null;
1522
1497
  }
1523
1498
  const le = { l: 0, c: 0, lc: 0 };
1524
1499
  function _e(t, n, a, u, h) {
1525
1500
  for (; a < t; )
1526
- n = n << 8 | zr(u, h), a += 8;
1501
+ n = n << 8 | Dr(u, h), a += 8;
1527
1502
  a -= t, le.l = n >> a & (1 << t) - 1, le.c = n, le.lc = a;
1528
1503
  }
1529
1504
  const ge = new Array(59);
1530
- function Ut(t) {
1505
+ function Ot(t) {
1531
1506
  for (var n = 0; n <= 58; ++n)
1532
1507
  ge[n] = 0;
1533
1508
  for (var n = 0; n < 65537; ++n)
@@ -1566,17 +1541,17 @@ class lo extends Pi {
1566
1541
  h--;
1567
1542
  }
1568
1543
  }
1569
- Ut(d);
1544
+ Ot(d);
1570
1545
  }
1571
1546
  function mt(t) {
1572
1547
  return t & 63;
1573
1548
  }
1574
- function Ct(t) {
1549
+ function Ut(t) {
1575
1550
  return t >> 6;
1576
1551
  }
1577
1552
  function je(t, n, a, u) {
1578
1553
  for (; n <= a; n++) {
1579
- var h = Ct(t[n]), f = mt(t[n]);
1554
+ var h = Ut(t[n]), f = mt(t[n]);
1580
1555
  if (h >> f)
1581
1556
  throw "Invalid table entry";
1582
1557
  if (f > 14) {
@@ -1603,7 +1578,7 @@ class lo extends Pi {
1603
1578
  }
1604
1579
  const ee = { c: 0, lc: 0 };
1605
1580
  function Ge(t, n, a, u) {
1606
- t = t << 8 | zr(a, u), n += 8, ee.c = t, ee.lc = n;
1581
+ t = t << 8 | Dr(a, u), n += 8, ee.c = t, ee.lc = n;
1607
1582
  }
1608
1583
  const re = { c: 0, lc: 0 };
1609
1584
  function Pe(t, n, a, u, h, f, d, p, g, A) {
@@ -1627,33 +1602,33 @@ class lo extends Pi {
1627
1602
  var n = Me(t);
1628
1603
  return n > 32767 ? n - 65536 : n;
1629
1604
  }
1630
- const M = { a: 0, b: 0 };
1605
+ const P = { a: 0, b: 0 };
1631
1606
  function be(t, n) {
1632
1607
  var a = Ke(t), u = Ke(n), h = u, f = a + (h & 1) + (h >> 1), d = f, p = f - h;
1633
- M.a = d, M.b = p;
1608
+ P.a = d, P.b = p;
1634
1609
  }
1635
1610
  function Ne(t, n) {
1636
1611
  var a = Me(t), u = Me(n), h = a - (u >> 1) & 65535, f = u + h - 32768 & 65535;
1637
- M.a = f, M.b = h;
1612
+ P.a = f, P.b = h;
1638
1613
  }
1639
1614
  function Vn(t, n, a, u, h, f, d) {
1640
1615
  for (var p = d < 16384, g = a > h ? h : a, A = 1, S; A <= g; )
1641
1616
  A <<= 1;
1642
1617
  for (A >>= 1, S = A, A >>= 1; A >= 1; ) {
1643
- for (var w = 0, Y = w + f * (h - S), I = f * A, _ = f * S, N = u * A, U = u * S, D, z, V, te; w <= Y; w += _) {
1644
- for (var k = w, Te = w + u * (a - S); k <= Te; k += U) {
1618
+ for (var w = 0, Y = w + f * (h - S), I = f * A, _ = f * S, N = u * A, m = u * S, M, z, V, te; w <= Y; w += _) {
1619
+ for (var k = w, Te = w + u * (a - S); k <= Te; k += m) {
1645
1620
  var H = k + N, J = k + I, Oe = J + N;
1646
- p ? (be(t[k + n], t[J + n]), D = M.a, V = M.b, be(t[H + n], t[Oe + n]), z = M.a, te = M.b, be(D, z), t[k + n] = M.a, t[H + n] = M.b, be(V, te), t[J + n] = M.a, t[Oe + n] = M.b) : (Ne(t[k + n], t[J + n]), D = M.a, V = M.b, Ne(t[H + n], t[Oe + n]), z = M.a, te = M.b, Ne(D, z), t[k + n] = M.a, t[H + n] = M.b, Ne(V, te), t[J + n] = M.a, t[Oe + n] = M.b);
1621
+ p ? (be(t[k + n], t[J + n]), M = P.a, V = P.b, be(t[H + n], t[Oe + n]), z = P.a, te = P.b, be(M, z), t[k + n] = P.a, t[H + n] = P.b, be(V, te), t[J + n] = P.a, t[Oe + n] = P.b) : (Ne(t[k + n], t[J + n]), M = P.a, V = P.b, Ne(t[H + n], t[Oe + n]), z = P.a, te = P.b, Ne(M, z), t[k + n] = P.a, t[H + n] = P.b, Ne(V, te), t[J + n] = P.a, t[Oe + n] = P.b);
1647
1622
  }
1648
1623
  if (a & A) {
1649
1624
  var J = k + I;
1650
- p ? be(t[k + n], t[J + n]) : Ne(t[k + n], t[J + n]), D = M.a, t[J + n] = M.b, t[k + n] = D;
1625
+ p ? be(t[k + n], t[J + n]) : Ne(t[k + n], t[J + n]), M = P.a, t[J + n] = P.b, t[k + n] = M;
1651
1626
  }
1652
1627
  }
1653
1628
  if (h & A)
1654
- for (var k = w, Te = w + u * (a - S); k <= Te; k += U) {
1629
+ for (var k = w, Te = w + u * (a - S); k <= Te; k += m) {
1655
1630
  var H = k + N;
1656
- p ? be(t[k + n], t[H + n]) : Ne(t[k + n], t[H + n]), D = M.a, t[H + n] = M.b, t[k + n] = D;
1631
+ p ? be(t[k + n], t[H + n]) : Ne(t[k + n], t[H + n]), M = P.a, t[H + n] = P.b, t[k + n] = M;
1657
1632
  }
1658
1633
  S = A, A >>= 1;
1659
1634
  }
@@ -1668,13 +1643,13 @@ class lo extends Pi {
1668
1643
  else {
1669
1644
  if (!N.p)
1670
1645
  throw "hufDecode issues";
1671
- var U;
1672
- for (U = 0; U < N.lit; U++) {
1673
- for (var D = mt(t[N.p[U]]); w < D && h.value < I; )
1646
+ var m;
1647
+ for (m = 0; m < N.lit; m++) {
1648
+ for (var M = mt(t[N.p[m]]); w < M && h.value < I; )
1674
1649
  Ge(S, w, a, h), S = ee.c, w = ee.lc;
1675
- if (w >= D && Ct(t[N.p[U]]) == (S >> w - D & (1 << D) - 1)) {
1676
- w -= D, Pe(
1677
- N.p[U],
1650
+ if (w >= M && Ut(t[N.p[m]]) == (S >> w - M & (1 << M) - 1)) {
1651
+ w -= M, Pe(
1652
+ N.p[m],
1678
1653
  d,
1679
1654
  S,
1680
1655
  w,
@@ -1688,7 +1663,7 @@ class lo extends Pi {
1688
1663
  break;
1689
1664
  }
1690
1665
  }
1691
- if (U == N.lit)
1666
+ if (m == N.lit)
1692
1667
  throw "hufDecode issues";
1693
1668
  }
1694
1669
  }
@@ -1702,14 +1677,14 @@ class lo extends Pi {
1702
1677
  }
1703
1678
  return !0;
1704
1679
  }
1705
- function Fr(t, n, a, u, h, f) {
1680
+ function Rr(t, n, a, u, h, f) {
1706
1681
  var d = { value: 0 }, p = a.value, g = ne(n, a), A = ne(n, a);
1707
1682
  a.value += 4;
1708
1683
  var S = ne(n, a);
1709
1684
  if (a.value += 4, g < 0 || g >= 65537 || A < 0 || A >= 65537)
1710
1685
  throw "Something wrong with HUF_ENCSIZE";
1711
1686
  var w = new Array(65537), Y = new Array(16384);
1712
- ir(Y);
1687
+ nr(Y);
1713
1688
  var I = u - (a.value - p);
1714
1689
  if (Se(t, n, a, I, g, A, w), S > 8 * (u - (a.value - p)))
1715
1690
  throw "Something wrong with hufUncompress";
@@ -1719,17 +1694,17 @@ class lo extends Pi {
1719
1694
  for (var u = 0; u < a; ++u)
1720
1695
  n[u] = t[n[u]];
1721
1696
  }
1722
- function Lr(t) {
1697
+ function xr(t) {
1723
1698
  for (var n = 1; n < t.length; n++) {
1724
1699
  var a = t[n - 1] + t[n] - 128;
1725
1700
  t[n] = a;
1726
1701
  }
1727
1702
  }
1728
- function Pr(t, n) {
1703
+ function Fr(t, n) {
1729
1704
  for (var a = 0, u = Math.floor((t.length + 1) / 2), h = 0, f = t.length - 1; !(h > f || (n[h++] = t[a++], h > f)); )
1730
1705
  n[h++] = t[u++];
1731
1706
  }
1732
- function Mr(t) {
1707
+ function Lr(t) {
1733
1708
  for (var n = t.byteLength, a = new Array(), u = 0, h = new DataView(t); n > 0; ) {
1734
1709
  var f = h.getInt8(u++);
1735
1710
  if (f < 0) {
@@ -1747,25 +1722,25 @@ class lo extends Pi {
1747
1722
  return a;
1748
1723
  }
1749
1724
  function Qn(t, n, a, u, h, f) {
1750
- var H = new DataView(f.buffer), d = a[t.idx[0]].width, p = a[t.idx[0]].height, g = 3, A = Math.floor(d / 8), S = Math.ceil(d / 8), w = Math.ceil(p / 8), Y = d - (S - 1) * 8, I = p - (w - 1) * 8, _ = { value: 0 }, N = new Array(g), U = new Array(g), D = new Array(g), z = new Array(g), V = new Array(g);
1751
- for (let B = 0; B < g; ++B)
1752
- V[B] = n[t.idx[B]], N[B] = B < 1 ? 0 : N[B - 1] + S * w, U[B] = new Float32Array(64), D[B] = new Uint16Array(64), z[B] = new Uint16Array(S * 64);
1753
- for (let B = 0; B < w; ++B) {
1725
+ var H = new DataView(f.buffer), d = a[t.idx[0]].width, p = a[t.idx[0]].height, g = 3, A = Math.floor(d / 8), S = Math.ceil(d / 8), w = Math.ceil(p / 8), Y = d - (S - 1) * 8, I = p - (w - 1) * 8, _ = { value: 0 }, N = new Array(g), m = new Array(g), M = new Array(g), z = new Array(g), V = new Array(g);
1726
+ for (let D = 0; D < g; ++D)
1727
+ V[D] = n[t.idx[D]], N[D] = D < 1 ? 0 : N[D - 1] + S * w, m[D] = new Float32Array(64), M[D] = new Uint16Array(64), z[D] = new Uint16Array(S * 64);
1728
+ for (let D = 0; D < w; ++D) {
1754
1729
  var te = 8;
1755
- B == w - 1 && (te = I);
1730
+ D == w - 1 && (te = I);
1756
1731
  var k = 8;
1757
1732
  for (let W = 0; W < S; ++W) {
1758
1733
  W == S - 1 && (k = Y);
1759
1734
  for (let F = 0; F < g; ++F)
1760
- D[F].fill(0), D[F][0] = h[N[F]++], jn(_, u, D[F]), Kn(D[F], U[F]), ei(U[F]);
1761
- ti(U);
1735
+ M[F].fill(0), M[F][0] = h[N[F]++], jn(_, u, M[F]), Kn(M[F], m[F]), ei(m[F]);
1736
+ ti(m);
1762
1737
  for (let F = 0; F < g; ++F)
1763
- ri(U[F], z[F], W * 64);
1738
+ ri(m[F], z[F], W * 64);
1764
1739
  }
1765
1740
  let K = 0;
1766
1741
  for (let W = 0; W < g; ++W) {
1767
1742
  const F = a[t.idx[W]].type;
1768
- for (let fe = 8 * B; fe < 8 * B + te; ++fe) {
1743
+ for (let fe = 8 * D; fe < 8 * D + te; ++fe) {
1769
1744
  K = V[W][fe];
1770
1745
  for (let De = 0; De < A; ++De) {
1771
1746
  const ae = De * 64 + (fe & 7) * 8;
@@ -1773,7 +1748,7 @@ class lo extends Pi {
1773
1748
  }
1774
1749
  }
1775
1750
  if (A != S)
1776
- for (let fe = 8 * B; fe < 8 * B + te; ++fe) {
1751
+ for (let fe = 8 * D; fe < 8 * D + te; ++fe) {
1777
1752
  const De = V[W][fe] + 8 * A * 2 * F, ae = A * 64 + (fe & 7) * 8;
1778
1753
  for (let xe = 0; xe < k; ++xe)
1779
1754
  H.setUint16(De + xe * 2 * F, z[W][ae + xe], !0);
@@ -1785,11 +1760,11 @@ class lo extends Pi {
1785
1760
  var Oe = a[t.idx[J]].type;
1786
1761
  if (a[J].type == 2)
1787
1762
  for (var it = 0; it < p; ++it) {
1788
- const B = V[J][it];
1763
+ const D = V[J][it];
1789
1764
  for (var he = 0; he < d; ++he)
1790
- Te[he] = H.getUint16(B + he * 2 * Oe, !0);
1765
+ Te[he] = H.getUint16(D + he * 2 * Oe, !0);
1791
1766
  for (var he = 0; he < d; ++he)
1792
- H.setFloat32(B + he * 2 * Oe, T(Te[he]), !0);
1767
+ H.setFloat32(D + he * 2 * Oe, T(Te[he]), !0);
1793
1768
  }
1794
1769
  }
1795
1770
  }
@@ -1817,21 +1792,21 @@ class lo extends Pi {
1817
1792
  }
1818
1793
  function ri(t, n, a) {
1819
1794
  for (var u = 0; u < 64; ++u)
1820
- n[a + u] = Gr.toHalfFloat(ni(t[u]));
1795
+ n[a + u] = Zr.toHalfFloat(ni(t[u]));
1821
1796
  }
1822
1797
  function ni(t) {
1823
- return t <= 1 ? Math.sign(t) * Math.pow(Math.abs(t), 2.2) : Math.sign(t) * Math.pow(Ot, Math.abs(t) - 1);
1798
+ return t <= 1 ? Math.sign(t) * Math.pow(Math.abs(t), 2.2) : Math.sign(t) * Math.pow(Nt, Math.abs(t) - 1);
1824
1799
  }
1825
- function Dr(t) {
1800
+ function Pr(t) {
1826
1801
  return new DataView(t.array.buffer, t.offset.value, t.size);
1827
1802
  }
1828
1803
  function ii(t) {
1829
- var n = t.viewer.buffer.slice(t.offset.value, t.offset.value + t.size), a = new Uint8Array(Mr(n)), u = new Uint8Array(a.length);
1830
- return Lr(a), Pr(a, u), new DataView(u.buffer);
1804
+ var n = t.viewer.buffer.slice(t.offset.value, t.offset.value + t.size), a = new Uint8Array(Lr(n)), u = new Uint8Array(a.length);
1805
+ return xr(a), Fr(a, u), new DataView(u.buffer);
1831
1806
  }
1832
- function sr(t) {
1833
- var n = t.array.slice(t.offset.value, t.offset.value + t.size), a = Dt(n), u = new Uint8Array(a.length);
1834
- return Lr(a), Pr(a, u), new DataView(u.buffer);
1807
+ function ir(t) {
1808
+ var n = t.array.slice(t.offset.value, t.offset.value + t.size), a = Pt(n), u = new Uint8Array(a.length);
1809
+ return xr(a), Fr(a, u), new DataView(u.buffer);
1835
1810
  }
1836
1811
  function si(t) {
1837
1812
  for (var n = t.viewer, a = { value: t.offset.value }, u = new Uint16Array(t.width * t.scanlineBlockSize * (t.channels * t.type)), h = new Uint8Array(8192), f = 0, d = new Array(t.channels), p = 0; p < t.channels; p++)
@@ -1842,21 +1817,21 @@ class lo extends Pi {
1842
1817
  if (g <= A)
1843
1818
  for (var p = 0; p < A - g + 1; p++)
1844
1819
  h[p + g] = We(n, a);
1845
- var S = new Uint16Array(65536), w = nr(h, S), Y = ne(n, a);
1846
- Fr(t.array, n, a, Y, u, f);
1820
+ var S = new Uint16Array(65536), w = rr(h, S), Y = ne(n, a);
1821
+ Rr(t.array, n, a, Y, u, f);
1847
1822
  for (var p = 0; p < t.channels; ++p)
1848
1823
  for (var I = d[p], _ = 0; _ < d[p].size; ++_)
1849
1824
  Vn(u, I.start + _, I.nx, I.size, I.ny, I.nx * I.size, w);
1850
1825
  $n(S, u, f);
1851
- for (var N = 0, U = new Uint8Array(u.buffer.byteLength), D = 0; D < t.lines; D++)
1826
+ for (var N = 0, m = new Uint8Array(u.buffer.byteLength), M = 0; M < t.lines; M++)
1852
1827
  for (var z = 0; z < t.channels; z++) {
1853
1828
  var I = d[z], V = I.nx * I.size, te = new Uint8Array(u.buffer, I.end * 2, V * 2);
1854
- U.set(te, N), N += V * 2, I.end += V;
1829
+ m.set(te, N), N += V * 2, I.end += V;
1855
1830
  }
1856
- return new DataView(U.buffer);
1831
+ return new DataView(m.buffer);
1857
1832
  }
1858
1833
  function oi(t) {
1859
- var n = t.array.slice(t.offset.value, t.offset.value + t.size), a = Dt(n);
1834
+ var n = t.array.slice(t.offset.value, t.offset.value + t.size), a = Pt(n);
1860
1835
  const u = t.lines * t.channels * t.width, h = t.type == 1 ? new Uint16Array(u) : new Uint32Array(u);
1861
1836
  let f = 0, d = 0;
1862
1837
  const p = new Array(4);
@@ -1882,7 +1857,7 @@ class lo extends Pi {
1882
1857
  }
1883
1858
  return new DataView(h.buffer);
1884
1859
  }
1885
- function Br(t) {
1860
+ function Mr(t) {
1886
1861
  var n = t.viewer, a = { value: t.offset.value }, u = new Uint8Array(t.width * t.lines * (t.channels * t.type * 2)), h = {
1887
1862
  version: ue(n, a),
1888
1863
  unknownUncompressedSize: ue(n, a),
@@ -1899,7 +1874,7 @@ class lo extends Pi {
1899
1874
  if (h.version < 2)
1900
1875
  throw "EXRLoader.parse: " + nt.compression + " version " + h.version + " is unsupported";
1901
1876
  for (var f = new Array(), d = tt(n, a) - 2; d > 0; ) {
1902
- var p = Rt(n.buffer, a), g = We(n, a), A = g >> 2 & 3, S = (g >> 4) - 1, w = new Int8Array([S])[0], Y = We(n, a);
1877
+ var p = Ct(n.buffer, a), g = We(n, a), A = g >> 2 & 3, S = (g >> 4) - 1, w = new Int8Array([S])[0], Y = We(n, a);
1903
1878
  f.push({
1904
1879
  name: p,
1905
1880
  index: w,
@@ -1908,21 +1883,21 @@ class lo extends Pi {
1908
1883
  }), d -= p.length + 3;
1909
1884
  }
1910
1885
  for (var I = nt.channels, _ = new Array(t.channels), N = 0; N < t.channels; ++N) {
1911
- var U = _[N] = {}, D = I[N];
1912
- U.name = D.name, U.compression = 0, U.decoded = !1, U.type = D.pixelType, U.pLinear = D.pLinear, U.width = t.width, U.height = t.lines;
1886
+ var m = _[N] = {}, M = I[N];
1887
+ m.name = M.name, m.compression = 0, m.decoded = !1, m.type = M.pixelType, m.pLinear = M.pLinear, m.width = t.width, m.height = t.lines;
1913
1888
  }
1914
1889
  for (var z = {
1915
1890
  idx: new Array(3)
1916
1891
  }, V = 0; V < t.channels; ++V)
1917
- for (var U = _[V], N = 0; N < f.length; ++N) {
1892
+ for (var m = _[V], N = 0; N < f.length; ++N) {
1918
1893
  var te = f[N];
1919
- U.name == te.name && (U.compression = te.compression, te.index >= 0 && (z.idx[te.index] = V), U.offset = V);
1894
+ m.name == te.name && (m.compression = te.compression, te.index >= 0 && (z.idx[te.index] = V), m.offset = V);
1920
1895
  }
1921
1896
  if (h.acCompressedSize > 0)
1922
1897
  switch (h.acCompression) {
1923
1898
  case 0:
1924
1899
  var H = new Uint16Array(h.totalAcUncompressedCount);
1925
- Fr(
1900
+ Rr(
1926
1901
  t.array,
1927
1902
  n,
1928
1903
  a,
@@ -1932,7 +1907,7 @@ class lo extends Pi {
1932
1907
  );
1933
1908
  break;
1934
1909
  case 1:
1935
- var k = t.array.slice(a.value, a.value + h.totalAcUncompressedCount), Te = Dt(k), H = new Uint16Array(Te.buffer);
1910
+ var k = t.array.slice(a.value, a.value + h.totalAcUncompressedCount), Te = Pt(k), H = new Uint16Array(Te.buffer);
1936
1911
  a.value += h.totalAcUncompressedCount;
1937
1912
  break;
1938
1913
  }
@@ -1941,28 +1916,28 @@ class lo extends Pi {
1941
1916
  array: t.array,
1942
1917
  offset: a,
1943
1918
  size: h.dcCompressedSize
1944
- }, Oe = new Uint16Array(sr(J).buffer);
1919
+ }, Oe = new Uint16Array(ir(J).buffer);
1945
1920
  a.value += h.dcCompressedSize;
1946
1921
  }
1947
1922
  if (h.rleRawSize > 0) {
1948
- var k = t.array.slice(a.value, a.value + h.rleCompressedSize), Te = Dt(k), it = Mr(Te.buffer);
1923
+ var k = t.array.slice(a.value, a.value + h.rleCompressedSize), Te = Pt(k), it = Lr(Te.buffer);
1949
1924
  a.value += h.rleCompressedSize;
1950
1925
  }
1951
- for (var he = 0, B = new Array(_.length), N = 0; N < B.length; ++N)
1952
- B[N] = new Array();
1926
+ for (var he = 0, D = new Array(_.length), N = 0; N < D.length; ++N)
1927
+ D[N] = new Array();
1953
1928
  for (var K = 0; K < t.lines; ++K)
1954
1929
  for (var W = 0; W < _.length; ++W)
1955
- B[W].push(he), he += _[W].width * t.type * 2;
1956
- Qn(z, B, _, H, Oe, u);
1930
+ D[W].push(he), he += _[W].width * t.type * 2;
1931
+ Qn(z, D, _, H, Oe, u);
1957
1932
  for (var N = 0; N < _.length; ++N) {
1958
- var U = _[N];
1959
- if (!U.decoded)
1960
- switch (U.compression) {
1933
+ var m = _[N];
1934
+ if (!m.decoded)
1935
+ switch (m.compression) {
1961
1936
  case 2:
1962
1937
  for (var F = 0, fe = 0, K = 0; K < t.lines; ++K) {
1963
- for (var De = B[N][F], ae = 0; ae < U.width; ++ae) {
1964
- for (var xe = 0; xe < 2 * U.type; ++xe)
1965
- u[De++] = it[fe + xe * U.width * U.height];
1938
+ for (var De = D[N][F], ae = 0; ae < m.width; ++ae) {
1939
+ for (var xe = 0; xe < 2 * m.type; ++xe)
1940
+ u[De++] = it[fe + xe * m.width * m.height];
1966
1941
  fe++;
1967
1942
  }
1968
1943
  F++;
@@ -1975,7 +1950,7 @@ class lo extends Pi {
1975
1950
  }
1976
1951
  return new DataView(u.buffer);
1977
1952
  }
1978
- function Rt(t, n) {
1953
+ function Ct(t, n) {
1979
1954
  for (var a = new Uint8Array(t), u = 0; a[n.value + u] != 0; )
1980
1955
  u += 1;
1981
1956
  var h = new TextDecoder().decode(a.slice(n.value, n.value + u));
@@ -2001,7 +1976,7 @@ class lo extends Pi {
2001
1976
  var a = t.getUint32(n.value, !0);
2002
1977
  return n.value = n.value + 4, a;
2003
1978
  }
2004
- function zr(t, n) {
1979
+ function Dr(t, n) {
2005
1980
  var a = t[n.value];
2006
1981
  return n.value = n.value + 1, a;
2007
1982
  }
@@ -2018,7 +1993,7 @@ class lo extends Pi {
2018
1993
  return n.value += 4, a;
2019
1994
  }
2020
1995
  function ui(t, n) {
2021
- return Gr.toHalfFloat(j(t, n));
1996
+ return Zr.toHalfFloat(j(t, n));
2022
1997
  }
2023
1998
  function T(t) {
2024
1999
  var n = (t & 31744) >> 10, a = t & 1023;
@@ -2033,7 +2008,7 @@ class lo extends Pi {
2033
2008
  }
2034
2009
  function fi(t, n, a, u) {
2035
2010
  for (var h = a.value, f = []; a.value < h + u - 1; ) {
2036
- var d = Rt(n, a), p = et(t, a), g = We(t, a);
2011
+ var d = Ct(n, a), p = et(t, a), g = We(t, a);
2037
2012
  a.value += 3;
2038
2013
  var A = et(t, a), S = et(t, a);
2039
2014
  f.push({
@@ -2132,15 +2107,15 @@ class lo extends Pi {
2132
2107
  multiPart: !!(h & 16)
2133
2108
  }, a.value = 8;
2134
2109
  for (var f = !0; f; ) {
2135
- var d = Rt(n, a);
2110
+ var d = Ct(n, a);
2136
2111
  if (d == 0)
2137
2112
  f = !1;
2138
2113
  else {
2139
- var p = Rt(n, a), g = ne(t, a), A = gi(t, n, a, p, g);
2114
+ var p = Ct(n, a), g = ne(t, a), A = gi(t, n, a, p, g);
2140
2115
  A === void 0 ? console.warn(`EXRLoader.parse: skipped unknown header attribute type '${p}'.`) : u[d] = A;
2141
2116
  }
2142
2117
  }
2143
- if (h & -5)
2118
+ if ((h & -5) != 0)
2144
2119
  throw console.error("EXRHeader:", u), "THREE.EXRLoader: provided file is currently unsupported.";
2145
2120
  return u;
2146
2121
  }
@@ -2164,16 +2139,16 @@ class lo extends Pi {
2164
2139
  };
2165
2140
  switch (t.compression) {
2166
2141
  case "NO_COMPRESSION":
2167
- f.lines = 1, f.uncompress = Dr;
2142
+ f.lines = 1, f.uncompress = Pr;
2168
2143
  break;
2169
2144
  case "RLE_COMPRESSION":
2170
2145
  f.lines = 1, f.uncompress = ii;
2171
2146
  break;
2172
2147
  case "ZIPS_COMPRESSION":
2173
- f.lines = 1, f.uncompress = sr;
2148
+ f.lines = 1, f.uncompress = ir;
2174
2149
  break;
2175
2150
  case "ZIP_COMPRESSION":
2176
- f.lines = 16, f.uncompress = sr;
2151
+ f.lines = 16, f.uncompress = ir;
2177
2152
  break;
2178
2153
  case "PIZ_COMPRESSION":
2179
2154
  f.lines = 32, f.uncompress = si;
@@ -2182,10 +2157,10 @@ class lo extends Pi {
2182
2157
  f.lines = 16, f.uncompress = oi;
2183
2158
  break;
2184
2159
  case "DWAA_COMPRESSION":
2185
- f.lines = 32, f.uncompress = Br;
2160
+ f.lines = 32, f.uncompress = Mr;
2186
2161
  break;
2187
2162
  case "DWAB_COMPRESSION":
2188
- f.lines = 256, f.uncompress = Br;
2163
+ f.lines = 256, f.uncompress = Mr;
2189
2164
  break;
2190
2165
  default:
2191
2166
  throw "EXRLoader.parse: " + t.compression + " is unsupported";
@@ -2225,13 +2200,13 @@ class lo extends Pi {
2225
2200
  console.error("THREE.EXRLoader: unsupported type: ", h);
2226
2201
  break;
2227
2202
  }
2228
- return f.bytesPerLine = f.width * f.inputSize * f.channels, f.outputChannels == 4 ? f.format = hn : f.format = vn, at ? f.colorSpace = "srgb-linear" : f.encoding = 3e3, f;
2203
+ return f.bytesPerLine = f.width * f.inputSize * f.channels, f.outputChannels == 4 ? f.format = ln : f.format = hn, at ? f.colorSpace = "srgb-linear" : f.encoding = 3e3, f;
2229
2204
  }
2230
- const xt = new DataView(e), Ei = new Uint8Array(e), rt = { value: 0 }, nt = Si(xt, e, rt), C = Ti(nt, xt, Ei, rt, this.type), kr = { value: 0 }, Ii = { R: 0, G: 1, B: 2, A: 3, Y: 0 };
2205
+ const Rt = new DataView(e), Ei = new Uint8Array(e), rt = { value: 0 }, nt = Si(Rt, e, rt), C = Ti(nt, Rt, Ei, rt, this.type), Br = { value: 0 }, Ii = { R: 0, G: 1, B: 2, A: 3, Y: 0 };
2231
2206
  for (let t = 0; t < C.height / C.scanlineBlockSize; t++) {
2232
- const n = ne(xt, rt);
2233
- C.size = ne(xt, rt), C.lines = n + C.scanlineBlockSize > C.height ? C.height - n : C.scanlineBlockSize;
2234
- const u = C.size < C.lines * C.bytesPerLine ? C.uncompress(C) : Dr(C);
2207
+ const n = ne(Rt, rt);
2208
+ C.size = ne(Rt, rt), C.lines = n + C.scanlineBlockSize > C.height ? C.height - n : C.scanlineBlockSize;
2209
+ const u = C.size < C.lines * C.bytesPerLine ? C.uncompress(C) : Pr(C);
2235
2210
  rt.value += C.size;
2236
2211
  for (let h = 0; h < C.scanlineBlockSize; h++) {
2237
2212
  const f = h + t * C.scanlineBlockSize;
@@ -2240,9 +2215,9 @@ class lo extends Pi {
2240
2215
  for (let d = 0; d < C.channels; d++) {
2241
2216
  const p = Ii[nt.channels[d].name];
2242
2217
  for (let g = 0; g < C.width; g++) {
2243
- kr.value = (h * (C.channels * C.width) + d * C.width + g) * C.inputSize;
2218
+ Br.value = (h * (C.channels * C.width) + d * C.width + g) * C.inputSize;
2244
2219
  const A = (C.height - 1 - f) * (C.width * C.outputChannels) + g * C.outputChannels + p;
2245
- C.byteArray[A] = C.getter(u, kr);
2220
+ C.byteArray[A] = C.getter(u, Br);
2246
2221
  }
2247
2222
  }
2248
2223
  }
@@ -2262,24 +2237,24 @@ class lo extends Pi {
2262
2237
  }
2263
2238
  load(e, i, s, o) {
2264
2239
  function c(l, v) {
2265
- at ? l.colorSpace = v.colorSpace : l.encoding = v.encoding, l.minFilter = kt, l.magFilter = kt, l.generateMipmaps = !1, l.flipY = !1, i && i(l, v);
2240
+ at ? l.colorSpace = v.colorSpace : l.encoding = v.encoding, l.minFilter = zt, l.magFilter = zt, l.generateMipmaps = !1, l.flipY = !1, i && i(l, v);
2266
2241
  }
2267
2242
  return super.load(e, c, s, o);
2268
2243
  }
2269
2244
  }
2270
- class ia extends Vt {
2245
+ class qo extends qt {
2271
2246
  setDepth(e) {
2272
2247
  return this.depth = e, this;
2273
2248
  }
2274
2249
  load(e, i, s, o) {
2275
- const c = new lo(this.manager);
2250
+ const c = new so(this.manager);
2276
2251
  c.setRequestHeader(this.requestHeader), c.setPath(this.path), c.setWithCredentials(this.withCredentials), c.load(
2277
2252
  e,
2278
2253
  (l) => {
2279
- const { data: v, width: y, height: E } = l.image, b = this.depth ?? Math.sqrt(E), m = new fn(v, y, E / b, b);
2280
- m.type = l.type, m.format = l.format, m.colorSpace = l.colorSpace, m.needsUpdate = !0;
2254
+ const { data: v, width: y, height: E } = l.image, b = this.depth ?? Math.sqrt(E), U = new un(v, y, E / b, b);
2255
+ U.type = l.type, U.format = l.format, U.colorSpace = l.colorSpace, U.needsUpdate = !0;
2281
2256
  try {
2282
- i(m);
2257
+ i(U);
2283
2258
  } catch (q) {
2284
2259
  o != null ? o(q) : console.error(q), this.manager.itemError(e);
2285
2260
  }
@@ -2289,7 +2264,7 @@ class ia extends Vt {
2289
2264
  );
2290
2265
  }
2291
2266
  }
2292
- const vr = 1e-6, Bt = /* @__PURE__ */ new Re(), zt = /* @__PURE__ */ new Re(), Ue = /* @__PURE__ */ new Re(), ct = /* @__PURE__ */ new Re(), yr = /* @__PURE__ */ new Re(), uo = /* @__PURE__ */ new Re(), ho = /* @__PURE__ */ new Di(), fo = /* @__PURE__ */ new Mi(), vo = /* @__PURE__ */ new Bi();
2267
+ const fr = 1e-6, Mt = /* @__PURE__ */ new Re(), Dt = /* @__PURE__ */ new Re(), me = /* @__PURE__ */ new Re(), ct = /* @__PURE__ */ new Re(), vr = /* @__PURE__ */ new Re(), oo = /* @__PURE__ */ new Re(), ao = /* @__PURE__ */ new Di(), co = /* @__PURE__ */ new Mi(), lo = /* @__PURE__ */ new Bi();
2293
2268
  class Xn {
2294
2269
  constructor(e = 0, i = 0, s = 0, o = 0) {
2295
2270
  this.distance = e, this.heading = i, this.pitch = s, this.roll = o;
@@ -2298,13 +2273,13 @@ class Xn {
2298
2273
  return this._distance;
2299
2274
  }
2300
2275
  set distance(e) {
2301
- this._distance = Math.max(e, vr);
2276
+ this._distance = Math.max(e, fr);
2302
2277
  }
2303
2278
  get pitch() {
2304
2279
  return this._pitch;
2305
2280
  }
2306
2281
  set pitch(e) {
2307
- this._pitch = Je(e, -Math.PI / 2 + vr, Math.PI / 2 - vr);
2282
+ this._pitch = Je(e, -Math.PI / 2 + fr, Math.PI / 2 - fr);
2308
2283
  }
2309
2284
  set(e, i, s, o) {
2310
2285
  return this.distance = e, this.heading = i, this.pitch = s, o != null && (this.roll = o), this;
@@ -2318,40 +2293,40 @@ class Xn {
2318
2293
  equals(e) {
2319
2294
  return e.distance === this.distance && e.heading === this.heading && e.pitch === this.pitch && e.roll === this.roll;
2320
2295
  }
2321
- decompose(e, i, s, o, c = Xr.WGS84) {
2296
+ decompose(e, i, s, o, c = Gr.WGS84) {
2322
2297
  c.getEastNorthUpVectors(
2323
2298
  e,
2324
- Bt,
2325
- zt,
2326
- Ue
2327
- ), o == null || o.copy(Ue);
2328
- const l = ct.copy(Bt).multiplyScalar(Math.cos(this.heading)).add(
2329
- yr.copy(zt).multiplyScalar(Math.sin(this.heading))
2330
- ).multiplyScalar(Math.cos(this.pitch)).add(yr.copy(Ue).multiplyScalar(Math.sin(this.pitch))).normalize().multiplyScalar(this.distance);
2299
+ Mt,
2300
+ Dt,
2301
+ me
2302
+ ), o == null || o.copy(me);
2303
+ const l = ct.copy(Mt).multiplyScalar(Math.cos(this.heading)).add(
2304
+ vr.copy(Dt).multiplyScalar(Math.sin(this.heading))
2305
+ ).multiplyScalar(Math.cos(this.pitch)).add(vr.copy(me).multiplyScalar(Math.sin(this.pitch))).normalize().multiplyScalar(this.distance);
2331
2306
  if (i.copy(e).sub(l), this.roll !== 0) {
2332
2307
  const v = ct.copy(e).sub(i).normalize();
2333
- Ue.applyQuaternion(
2334
- fo.setFromAxisAngle(v, this.roll)
2308
+ me.applyQuaternion(
2309
+ co.setFromAxisAngle(v, this.roll)
2335
2310
  );
2336
2311
  }
2337
2312
  s.setFromRotationMatrix(
2338
- ho.lookAt(i, e, Ue)
2313
+ ao.lookAt(i, e, me)
2339
2314
  );
2340
2315
  }
2341
- setFromCamera(e, i = Xr.WGS84) {
2342
- const s = ct.setFromMatrixPosition(e.matrixWorld), o = yr.set(0, 0, 0.5).unproject(e).sub(s).normalize(), c = i.getIntersection(vo.set(s, o));
2316
+ setFromCamera(e, i = Gr.WGS84) {
2317
+ const s = ct.setFromMatrixPosition(e.matrixWorld), o = vr.set(0, 0, 0.5).unproject(e).sub(s).normalize(), c = i.getIntersection(lo.set(s, o));
2343
2318
  if (c == null)
2344
2319
  return;
2345
2320
  this.distance = s.distanceTo(c), i.getEastNorthUpVectors(
2346
2321
  c,
2347
- Bt,
2348
- zt,
2349
- Ue
2322
+ Mt,
2323
+ Dt,
2324
+ me
2350
2325
  ), this.heading = Math.atan2(
2351
- zt.dot(o),
2352
- Bt.dot(o)
2353
- ), this.pitch = Math.asin(Ue.dot(o));
2354
- const l = ct.copy(e.up).applyQuaternion(e.quaternion), v = uo.copy(o).multiplyScalar(-l.dot(o)).add(l).normalize(), y = ct.copy(o).multiplyScalar(-Ue.dot(o)).add(Ue).normalize(), E = y.dot(v), b = o.dot(y.cross(v));
2326
+ Dt.dot(o),
2327
+ Mt.dot(o)
2328
+ ), this.pitch = Math.asin(me.dot(o));
2329
+ const l = ct.copy(e.up).applyQuaternion(e.quaternion), v = oo.copy(o).multiplyScalar(-l.dot(o)).add(l).normalize(), y = ct.copy(o).multiplyScalar(-me.dot(o)).add(me).normalize(), E = y.dot(v), b = o.dot(y.cross(v));
2355
2330
  return this.roll = Math.atan2(b, E), this;
2356
2331
  }
2357
2332
  }
@@ -2400,26 +2375,45 @@ dt.MAX = /* @__PURE__ */ new dt(
2400
2375
  st.MAX_LONGITUDE,
2401
2376
  st.MAX_LATITUDE
2402
2377
  );
2403
- let qt = dt;
2404
- const yo = /^[ \t]*#include +"([\w\d./]+)"/gm;
2405
- function po(r, e) {
2406
- return r.replace(yo, (i, s) => {
2378
+ let Yt = dt;
2379
+ const uo = /^[ \t]*#include +"([\w\d./]+)"/gm;
2380
+ function ho(r, e) {
2381
+ return r.replace(uo, (i, s) => {
2407
2382
  const c = s.split("/").reduce(
2408
2383
  (l, v) => typeof l != "string" && l != null ? l[v] : void 0,
2409
2384
  e
2410
2385
  );
2411
2386
  if (typeof c != "string")
2412
2387
  throw new Error(`Could not find include for ${s}.`);
2413
- return po(c, e);
2388
+ return ho(c, e);
2414
2389
  });
2415
2390
  }
2416
- const sa = Bn(ks, {
2417
- format: vn,
2418
- minFilter: Wr,
2419
- magFilter: Wr,
2420
- wrapS: or,
2421
- wrapT: or,
2422
- wrapR: or,
2391
+ let Bt;
2392
+ function fo() {
2393
+ if (Bt != null)
2394
+ return Bt;
2395
+ const r = new Uint32Array([268435456]);
2396
+ return Bt = new Uint8Array(r.buffer, r.byteOffset, r.byteLength)[0] === 0, Bt;
2397
+ }
2398
+ function ke(r, e, i, s = !0) {
2399
+ if (s === fo())
2400
+ return new e(r);
2401
+ const o = Object.assign(new DataView(r), {
2402
+ getFloat16(l, v) {
2403
+ return zs(this, l, v);
2404
+ }
2405
+ }), c = new e(o.byteLength / e.BYTES_PER_ELEMENT);
2406
+ for (let l = 0, v = 0; l < c.length; ++l, v += e.BYTES_PER_ELEMENT)
2407
+ c[l] = o[i](v, s);
2408
+ return c;
2409
+ }
2410
+ const vo = (r) => new Uint8Array(r), Vo = (r) => new Int8Array(r), Jo = (r, e) => ke(r, Uint16Array, "getUint16", e), $o = (r, e) => ke(r, Int16Array, "getInt16", e), Qo = (r, e) => ke(r, Int32Array, "getInt32", e), jo = (r, e) => ke(r, Uint32Array, "getUint32", e), Ko = (r, e) => ke(r, B, "getFloat16", e), ea = (r, e) => ke(r, Float32Array, "getFloat32", e), ta = (r, e) => ke(r, Float64Array, "getFloat64", e), ra = Bn(vo, {
2411
+ format: hn,
2412
+ minFilter: Hr,
2413
+ magFilter: Hr,
2414
+ wrapS: sr,
2415
+ wrapT: sr,
2416
+ wrapR: sr,
2423
2417
  width: Zi,
2424
2418
  height: Hi,
2425
2419
  depth: Gi
@@ -2434,12 +2428,12 @@ function* Yn(r, e, i, s, o) {
2434
2428
  [y + 1, E + 1, l]
2435
2429
  ];
2436
2430
  if (l < s)
2437
- for (const m of b)
2438
- for (const q of Yn(...m, s, o))
2431
+ for (const U of b)
2432
+ for (const q of Yn(...U, s, o))
2439
2433
  yield q;
2440
2434
  else
2441
- for (const m of b)
2442
- yield (o ?? new wt()).set(...m);
2435
+ for (const U of b)
2436
+ yield (o ?? new wt()).set(...U);
2443
2437
  }
2444
2438
  class wt {
2445
2439
  constructor(e = 0, i = 0, s = 0) {
@@ -2476,9 +2470,9 @@ class wt {
2476
2470
  yield this.x, yield this.y, yield this.z;
2477
2471
  }
2478
2472
  }
2479
- const un = /* @__PURE__ */ new yn();
2473
+ const cn = /* @__PURE__ */ new fn();
2480
2474
  class qn {
2481
- constructor(e = 2, i = 1, s = qt.MAX) {
2475
+ constructor(e = 2, i = 1, s = Yt.MAX) {
2482
2476
  this.width = e, this.height = i, this.rectangle = s;
2483
2477
  }
2484
2478
  clone() {
@@ -2487,98 +2481,94 @@ class qn {
2487
2481
  copy(e) {
2488
2482
  return this.width = e.width, this.height = e.height, this.rectangle.copy(e.rectangle), this;
2489
2483
  }
2490
- getSize(e, i = new yn()) {
2484
+ getSize(e, i = new fn()) {
2491
2485
  return i.set(this.width << e, this.height << e);
2492
2486
  }
2493
2487
  // Reference: https://github.com/CesiumGS/cesium/blob/1.122/packages/engine/Source/Core/GeographicTilingScheme.js#L210
2494
2488
  getTile(e, i, s = new wt()) {
2495
- const o = this.getSize(i, un), { rectangle: c } = this, l = c.width / o.x, v = c.height / o.y, { west: y, south: E, east: b } = c;
2496
- let m = e.longitude;
2497
- b < y && (m += Math.PI * 2);
2498
- let q = Math.floor((m - y) / l);
2489
+ const o = this.getSize(i, cn), { rectangle: c } = this, l = c.width / o.x, v = c.height / o.y, { west: y, south: E, east: b } = c;
2490
+ let U = e.longitude;
2491
+ b < y && (U += Math.PI * 2);
2492
+ let q = Math.floor((U - y) / l);
2499
2493
  q >= o.x && (q = o.x - 1);
2500
2494
  let se = Math.floor((e.latitude - E) / v);
2501
2495
  return se >= o.y && (se = o.y - 1), s.x = q, s.y = se, s.z = i, s;
2502
2496
  }
2503
2497
  // Reference: https://github.com/CesiumGS/cesium/blob/1.122/packages/engine/Source/Core/GeographicTilingScheme.js#L169
2504
- getRectangle(e, i = new qt()) {
2505
- const s = this.getSize(e.z, un), { rectangle: o } = this, c = o.width / s.x, l = o.height / s.y, { west: v, north: y } = o;
2498
+ getRectangle(e, i = new Yt()) {
2499
+ const s = this.getSize(e.z, cn), { rectangle: o } = this, c = o.width / s.x, l = o.height / s.y, { west: v, north: y } = o;
2506
2500
  return i.west = e.x * c + v, i.east = (e.x + 1) * c + v, i.north = y - (s.y - e.y - 1) * l, i.south = y - (s.y - e.y) * l, i;
2507
2501
  }
2508
2502
  }
2509
- const wo = /#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*(?:i\s*\+\+|\+\+\s*i)\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;
2510
- function Ao(r, e, i, s) {
2503
+ const yo = /#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*(?:i\s*\+\+|\+\+\s*i)\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;
2504
+ function po(r, e, i, s) {
2511
2505
  let o = "";
2512
2506
  for (let c = parseInt(e); c < parseInt(i); ++c)
2513
2507
  o += s.replace(/\[\s*i\s*\]/g, "[" + c + "]").replace(/UNROLLED_LOOP_INDEX/g, `${c}`);
2514
2508
  return o;
2515
2509
  }
2516
- function oa(r) {
2517
- return r.replace(wo, Ao);
2510
+ function na(r) {
2511
+ return r.replace(yo, po);
2518
2512
  }
2519
2513
  export {
2520
2514
  ki as ArrayBufferLoader,
2521
- _o as DEFAULT_STBN_URL,
2522
- qs as DataLoader,
2523
- ia as EXR3DLoader,
2524
- Xr as Ellipsoid,
2525
- la as EllipsoidGeometry,
2526
- P as Float16Array,
2527
- Po as Float32ArrayLoader,
2515
+ Eo as DEFAULT_STBN_URL,
2516
+ Gs as DataLoader,
2517
+ qo as EXR3DLoader,
2518
+ Gr as Ellipsoid,
2519
+ oa as EllipsoidGeometry,
2520
+ B as Float16Array,
2528
2521
  st as Geodetic,
2529
- Fo as Int16ArrayLoader,
2530
2522
  Xn as PointOfView,
2531
- qt as Rectangle,
2532
- sa as STBNLoader,
2523
+ Yt as Rectangle,
2524
+ ra as STBNLoader,
2533
2525
  Gi as STBN_TEXTURE_DEPTH,
2534
2526
  Hi as STBN_TEXTURE_HEIGHT,
2535
2527
  Zi as STBN_TEXTURE_WIDTH,
2536
2528
  wt as TileCoordinate,
2537
2529
  qn as TilingScheme,
2538
- Ws as TypedArrayLoader,
2539
- Lo as Uint16ArrayLoader,
2540
- To as assertType,
2541
- Wo as ceilPowerOfTwo,
2530
+ ks as TypedArrayLoader,
2531
+ go as assertType,
2532
+ Fo as ceilPowerOfTwo,
2542
2533
  Je as clamp,
2543
- Qo as closeTo,
2544
- Mo as createData3DTextureLoader,
2534
+ ko as closeTo,
2535
+ bo as createData3DTextureLoader,
2545
2536
  Bn as createData3DTextureLoaderClass,
2546
- Do as createDataTextureLoader,
2547
- Vs as createDataTextureLoaderClass,
2548
- xo as createTypedArrayLoader,
2549
- St as createTypedArrayLoaderClass,
2550
- jo as define,
2551
- ta as defineExpression,
2552
- ea as defineFloat,
2553
- Ko as defineInt,
2554
- ra as definePropertyShorthand,
2555
- na as defineUniformShorthand,
2556
- Ho as degrees,
2557
- Bo as euclideanModulo,
2558
- Xo as floorPowerOfTwo,
2559
- Io as fromBufferGeometryLike,
2560
- bo as getTypedArrayElementType,
2561
- zo as inverseLerp,
2562
- Go as isPowerOfTwo,
2563
- No as isTypedArray,
2564
- ko as lerp,
2565
- Yo as normalize,
2566
- Co as parseFloat16Array,
2567
- Gs as parseFloat32Array,
2568
- Ro as parseFloat64Array,
2569
- Hs as parseInt16Array,
2570
- Uo as parseInt32Array,
2571
- Oo as parseInt8Array,
2572
- Zs as parseUint16Array,
2573
- mo as parseUint32Array,
2574
- ks as parseUint8Array,
2575
- Zo as radians,
2576
- qo as remap,
2577
- Vo as remapClamped,
2578
- po as resolveIncludes,
2579
- $o as saturate,
2580
- Jo as smoothstep,
2581
- Eo as toBufferGeometryLike,
2582
- oa as unrollLoops
2537
+ No as createDataTextureLoader,
2538
+ Ws as createDataTextureLoaderClass,
2539
+ _o as createTypedArrayLoader,
2540
+ Mn as createTypedArrayLoaderClass,
2541
+ Zo as define,
2542
+ Wo as defineExpression,
2543
+ Go as defineFloat,
2544
+ Ho as defineInt,
2545
+ Xo as definePropertyShorthand,
2546
+ Yo as defineUniformShorthand,
2547
+ Ro as degrees,
2548
+ Oo as euclideanModulo,
2549
+ Lo as floorPowerOfTwo,
2550
+ To as fromBufferGeometryLike,
2551
+ mo as inverseLerp,
2552
+ xo as isPowerOfTwo,
2553
+ Io as isTypedArray,
2554
+ Uo as lerp,
2555
+ Po as normalize,
2556
+ Ko as parseFloat16Array,
2557
+ ea as parseFloat32Array,
2558
+ ta as parseFloat64Array,
2559
+ $o as parseInt16Array,
2560
+ Qo as parseInt32Array,
2561
+ Vo as parseInt8Array,
2562
+ Jo as parseUint16Array,
2563
+ jo as parseUint32Array,
2564
+ vo as parseUint8Array,
2565
+ Co as radians,
2566
+ Mo as remap,
2567
+ Do as remapClamped,
2568
+ ho as resolveIncludes,
2569
+ zo as saturate,
2570
+ Bo as smoothstep,
2571
+ So as toBufferGeometryLike,
2572
+ na as unrollLoops
2583
2573
  };
2584
2574
  //# sourceMappingURL=index.js.map