shop-components 0.1.36 → 0.1.38

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.
@@ -2353,8 +2353,8 @@ class zA {
2353
2353
  }
2354
2354
  }
2355
2355
  const so = /* @__PURE__ */ new O(), ki = /* @__PURE__ */ new zA(), yM = /* @__PURE__ */ new O(0, 0, 0), wM = /* @__PURE__ */ new O(1, 1, 1), fr = /* @__PURE__ */ new O(), ch = /* @__PURE__ */ new O(), ti = /* @__PURE__ */ new O(), tw = /* @__PURE__ */ new zA(), iw = /* @__PURE__ */ new Oi();
2356
- class xn {
2357
- constructor(A = 0, e = 0, t = 0, i = xn.DEFAULT_ORDER) {
2356
+ class In {
2357
+ constructor(A = 0, e = 0, t = 0, i = In.DEFAULT_ORDER) {
2358
2358
  this.isEuler = !0, this._x = A, this._y = e, this._z = t, this._order = i;
2359
2359
  }
2360
2360
  get x() {
@@ -2443,7 +2443,7 @@ class xn {
2443
2443
  yield this._x, yield this._y, yield this._z, yield this._order;
2444
2444
  }
2445
2445
  }
2446
- xn.DEFAULT_ORDER = "XYZ";
2446
+ In.DEFAULT_ORDER = "XYZ";
2447
2447
  class tv {
2448
2448
  constructor() {
2449
2449
  this.mask = 1;
@@ -2478,7 +2478,7 @@ const nw = /* @__PURE__ */ new O(), oo = /* @__PURE__ */ new Oi(), qn = /* @__PU
2478
2478
  class Ie extends Gs {
2479
2479
  constructor() {
2480
2480
  super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: CM++ }), this.uuid = Li(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = Ie.DEFAULT_UP.clone();
2481
- const A = new O(), e = new xn(), t = new Oi(), i = new O(1, 1, 1);
2481
+ const A = new O(), e = new In(), t = new Oi(), i = new O(1, 1, 1);
2482
2482
  function r() {
2483
2483
  t.setFromEuler(e, !1);
2484
2484
  }
@@ -3242,7 +3242,7 @@ let FA = class {
3242
3242
  const Pt = /* @__PURE__ */ new FA();
3243
3243
  FA.NAMES = C2;
3244
3244
  let _M = 0;
3245
- class yn extends Gs {
3245
+ class wn extends Gs {
3246
3246
  constructor() {
3247
3247
  super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: _M++ }), this.uuid = Li(), this.name = "", this.type = "Material", this.blending = Kr, this.side = Ft, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = sm, this.blendDst = om, this.blendEquation = bs, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new FA(0, 0, 0), this.blendAlpha = 0, this.depthFunc = wf, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = Zy, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = eo, this.stencilZFail = eo, this.stencilZPass = eo, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.forceSinglePass = !1, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
3248
3248
  }
@@ -3327,9 +3327,9 @@ class yn extends Gs {
3327
3327
  A === !0 && this.version++;
3328
3328
  }
3329
3329
  }
3330
- class si extends yn {
3330
+ class si extends wn {
3331
3331
  constructor(A) {
3332
- super(), this.isMeshBasicMaterial = !0, this.type = "MeshBasicMaterial", this.color = new FA(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new xn(), this.combine = s2, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.fog = !0, this.setValues(A);
3332
+ super(), this.isMeshBasicMaterial = !0, this.type = "MeshBasicMaterial", this.color = new FA(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new In(), this.combine = s2, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.fog = !0, this.setValues(A);
3333
3333
  }
3334
3334
  copy(A) {
3335
3335
  return super.copy(A), this.color.copy(A.color), this.map = A.map, this.lightMap = A.lightMap, this.lightMapIntensity = A.lightMapIntensity, this.aoMap = A.aoMap, this.aoMapIntensity = A.aoMapIntensity, this.specularMap = A.specularMap, this.alphaMap = A.alphaMap, this.envMap = A.envMap, this.envMapRotation.copy(A.envMapRotation), this.combine = A.combine, this.reflectivity = A.reflectivity, this.refractionRatio = A.refractionRatio, this.wireframe = A.wireframe, this.wireframeLinewidth = A.wireframeLinewidth, this.wireframeLinecap = A.wireframeLinecap, this.wireframeLinejoin = A.wireframeLinejoin, this.fog = A.fog, this;
@@ -4013,7 +4013,7 @@ var LM = `void main() {
4013
4013
  }`, OM = `void main() {
4014
4014
  gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );
4015
4015
  }`;
4016
- class $e extends yn {
4016
+ class $e extends wn {
4017
4017
  constructor(A) {
4018
4018
  super(), this.isShaderMaterial = !0, this.type = "ShaderMaterial", this.defines = {}, this.uniforms = {}, this.uniformsGroups = [], this.vertexShader = LM, this.fragmentShader = OM, this.linewidth = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.fog = !1, this.lights = !1, this.clipping = !1, this.forceSinglePass = !0, this.extensions = {
4019
4019
  clipCullDistance: !1,
@@ -8434,7 +8434,7 @@ void main() {
8434
8434
  alphaMapTransform: { value: /* @__PURE__ */ new le() },
8435
8435
  alphaTest: { value: 0 }
8436
8436
  }
8437
- }, pn = {
8437
+ }, gn = {
8438
8438
  basic: {
8439
8439
  uniforms: /* @__PURE__ */ zt([
8440
8440
  LA.common,
@@ -8658,9 +8658,9 @@ void main() {
8658
8658
  fragmentShader: ae.shadow_frag
8659
8659
  }
8660
8660
  };
8661
- pn.physical = {
8661
+ gn.physical = {
8662
8662
  uniforms: /* @__PURE__ */ zt([
8663
- pn.standard.uniforms,
8663
+ gn.standard.uniforms,
8664
8664
  {
8665
8665
  clearcoat: { value: 0 },
8666
8666
  clearcoatMap: { value: null },
@@ -8711,7 +8711,7 @@ pn.physical = {
8711
8711
  vertexShader: ae.meshphysical_vert,
8712
8712
  fragmentShader: ae.meshphysical_frag
8713
8713
  };
8714
- const Ih = { r: 0, b: 0, g: 0 }, ss = /* @__PURE__ */ new xn(), vP = /* @__PURE__ */ new zA();
8714
+ const Ih = { r: 0, b: 0, g: 0 }, ss = /* @__PURE__ */ new In(), vP = /* @__PURE__ */ new zA();
8715
8715
  function yP(n, A, e, t, i, r, s) {
8716
8716
  const o = new FA(0);
8717
8717
  let a = r === !0 ? 0 : 1, l, u, c = null, h = 0, f = null;
@@ -8732,9 +8732,9 @@ function yP(n, A, e, t, i, r, s) {
8732
8732
  new Ys(1, 1, 1),
8733
8733
  new $e({
8734
8734
  name: "BackgroundCubeMaterial",
8735
- uniforms: Ra(pn.backgroundCube.uniforms),
8736
- vertexShader: pn.backgroundCube.vertexShader,
8737
- fragmentShader: pn.backgroundCube.fragmentShader,
8735
+ uniforms: Ra(gn.backgroundCube.uniforms),
8736
+ vertexShader: gn.backgroundCube.vertexShader,
8737
+ fragmentShader: gn.backgroundCube.fragmentShader,
8738
8738
  side: Ct,
8739
8739
  depthTest: !1,
8740
8740
  depthWrite: !1,
@@ -8750,9 +8750,9 @@ function yP(n, A, e, t, i, r, s) {
8750
8750
  new or(2, 2),
8751
8751
  new $e({
8752
8752
  name: "BackgroundMaterial",
8753
- uniforms: Ra(pn.background.uniforms),
8754
- vertexShader: pn.background.vertexShader,
8755
- fragmentShader: pn.background.fragmentShader,
8753
+ uniforms: Ra(gn.background.uniforms),
8754
+ vertexShader: gn.background.vertexShader,
8755
+ fragmentShader: gn.background.fragmentShader,
8756
8756
  side: Ft,
8757
8757
  depthTest: !1,
8758
8758
  depthWrite: !1,
@@ -11073,7 +11073,7 @@ function WT(n, A, e, t, i, r, s) {
11073
11073
  q.morphAttributes.position !== void 0 && (Y = 1), q.morphAttributes.normal !== void 0 && (Y = 2), q.morphAttributes.color !== void 0 && (Y = 3);
11074
11074
  let X, j, G, V;
11075
11075
  if (U) {
11076
- const NA = pn[U];
11076
+ const NA = gn[U];
11077
11077
  X = NA.vertexShader, j = NA.fragmentShader;
11078
11078
  } else
11079
11079
  X = b.vertexShader, j = b.fragmentShader, a.update(b), G = a.getVertexShaderID(b), V = a.getFragmentShaderID(b);
@@ -11229,7 +11229,7 @@ function WT(n, A, e, t, i, r, s) {
11229
11229
  const I = p[b.type];
11230
11230
  let D;
11231
11231
  if (I) {
11232
- const P = pn[I];
11232
+ const P = gn[I];
11233
11233
  D = Kc.clone(P.uniforms);
11234
11234
  } else
11235
11235
  D = b.uniforms;
@@ -11626,7 +11626,7 @@ function tD(n) {
11626
11626
  dispose: t
11627
11627
  };
11628
11628
  }
11629
- class rv extends yn {
11629
+ class rv extends wn {
11630
11630
  constructor(A) {
11631
11631
  super(), this.isMeshDepthMaterial = !0, this.type = "MeshDepthMaterial", this.depthPacking = k3, this.map = null, this.alphaMap = null, this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.wireframe = !1, this.wireframeLinewidth = 1, this.setValues(A);
11632
11632
  }
@@ -11634,7 +11634,7 @@ class rv extends yn {
11634
11634
  return super.copy(A), this.depthPacking = A.depthPacking, this.map = A.map, this.alphaMap = A.alphaMap, this.displacementMap = A.displacementMap, this.displacementScale = A.displacementScale, this.displacementBias = A.displacementBias, this.wireframe = A.wireframe, this.wireframeLinewidth = A.wireframeLinewidth, this;
11635
11635
  }
11636
11636
  }
11637
- class q2 extends yn {
11637
+ class q2 extends wn {
11638
11638
  constructor(A) {
11639
11639
  super(), this.isMeshDistanceMaterial = !0, this.type = "MeshDistanceMaterial", this.map = null, this.alphaMap = null, this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.setValues(A);
11640
11640
  }
@@ -13163,7 +13163,7 @@ class dD extends Gs {
13163
13163
  };
13164
13164
  }
13165
13165
  }
13166
- const os = /* @__PURE__ */ new xn(), pD = /* @__PURE__ */ new zA();
13166
+ const os = /* @__PURE__ */ new In(), pD = /* @__PURE__ */ new zA();
13167
13167
  function gD(n, A) {
13168
13168
  function e(d, g) {
13169
13169
  d.matrixAutoUpdate === !0 && d.updateMatrix(), g.value.copy(d.matrix);
@@ -13534,8 +13534,8 @@ class N2 {
13534
13534
  else if (sA.isInstancedMesh)
13535
13535
  ye.renderInstances(Ye, dt, sA.count);
13536
13536
  else if (oA.isInstancedBufferGeometry) {
13537
- const Ae = oA._maxInstanceCount !== void 0 ? oA._maxInstanceCount : 1 / 0, on = Math.min(oA.instanceCount, Ae);
13538
- ye.renderInstances(Ye, dt, on);
13537
+ const Ae = oA._maxInstanceCount !== void 0 ? oA._maxInstanceCount : 1 / 0, an = Math.min(oA.instanceCount, Ae);
13538
+ ye.renderInstances(Ye, dt, an);
13539
13539
  } else
13540
13540
  ye.render(Ye, dt);
13541
13541
  };
@@ -13677,8 +13677,8 @@ class N2 {
13677
13677
  for (let re = 0, Ye = $.length; re < Ye; re++) {
13678
13678
  const je = $[re], dt = je.object, gi = je.geometry, ye = je.material, Ae = je.group;
13679
13679
  if (ye.side === ot && dt.layers.test(rA.layers)) {
13680
- const on = ye.side;
13681
- ye.side = Ct, ye.needsUpdate = !0, Nt(dt, oA, rA, gi, ye, Ae), ye.side = on, ye.needsUpdate = !0, bA = !0;
13680
+ const an = ye.side;
13681
+ ye.side = Ct, ye.needsUpdate = !0, Nt(dt, oA, rA, gi, ye, Ae), ye.side = an, ye.needsUpdate = !0, bA = !0;
13682
13682
  }
13683
13683
  }
13684
13684
  bA === !0 && (_A.updateMultisampleRenderTarget(BA), _A.updateRenderTargetMipmap(BA));
@@ -13709,7 +13709,7 @@ class N2 {
13709
13709
  const re = rA.uniforms;
13710
13710
  return (!z.isShaderMaterial && !z.isRawShaderMaterial || z.clipping === !0) && (re.clippingPlanes = cA.uniform), pi(z, UA), rA.needsLights = Xc(z), rA.lightsStateVersion = YA, rA.needsLights && (re.ambientLightColor.value = sA.state.ambient, re.lightProbe.value = sA.state.probe, re.directionalLights.value = sA.state.directional, re.directionalLightShadows.value = sA.state.directionalShadow, re.spotLights.value = sA.state.spot, re.spotLightShadows.value = sA.state.spotShadow, re.rectAreaLights.value = sA.state.rectArea, re.ltc_1.value = sA.state.rectAreaLTC1, re.ltc_2.value = sA.state.rectAreaLTC2, re.pointLights.value = sA.state.point, re.pointLightShadows.value = sA.state.pointShadow, re.hemisphereLights.value = sA.state.hemi, re.directionalShadowMap.value = sA.state.directionalShadowMap, re.directionalShadowMatrix.value = sA.state.directionalShadowMatrix, re.spotShadowMap.value = sA.state.spotShadowMap, re.spotLightMatrix.value = sA.state.spotLightMatrix, re.spotLightMap.value = sA.state.spotLightMap, re.pointShadowMap.value = sA.state.pointShadowMap, re.pointShadowMatrix.value = sA.state.pointShadowMatrix), rA.currentProgram = bA, rA.uniformsList = null, bA;
13711
13711
  }
13712
- function sn(z) {
13712
+ function on(z) {
13713
13713
  if (z.uniformsList === null) {
13714
13714
  const $ = z.currentProgram.getUniforms();
13715
13715
  z.uniformsList = Af.seqWithValue($.seq, z.uniforms);
@@ -13725,13 +13725,13 @@ class N2 {
13725
13725
  const BA = $.fog, YA = rA.isMeshStandardMaterial ? $.environment : null, UA = x === null ? v.outputColorSpace : x.isXRRenderTarget === !0 ? x.texture.colorSpace : lt, QA = (rA.isMeshStandardMaterial ? R : gA).get(rA.envMap || YA), ee = rA.vertexColors === !0 && !!oA.attributes.color && oA.attributes.color.itemSize === 4, bA = !!oA.attributes.tangent && (!!rA.normalMap || rA.anisotropy > 0), re = !!oA.morphAttributes.position, Ye = !!oA.morphAttributes.normal, je = !!oA.morphAttributes.color;
13726
13726
  let dt = Ar;
13727
13727
  rA.toneMapped && (x === null || x.isXRRenderTarget === !0) && (dt = v.toneMapping);
13728
- const gi = oA.morphAttributes.position || oA.morphAttributes.normal || oA.morphAttributes.color, ye = gi !== void 0 ? gi.length : 0, Ae = yA.get(rA), on = d.state.lights;
13728
+ const gi = oA.morphAttributes.position || oA.morphAttributes.normal || oA.morphAttributes.color, ye = gi !== void 0 ? gi.length : 0, Ae = yA.get(rA), an = d.state.lights;
13729
13729
  if (j === !0 && (G === !0 || z !== b)) {
13730
13730
  const St = z === b && rA.id === S;
13731
13731
  cA.setState(rA, z, St);
13732
13732
  }
13733
13733
  let De = !1;
13734
- rA.version === Ae.__version ? (Ae.needsLights && Ae.lightsStateVersion !== on.state.version || Ae.outputColorSpace !== UA || sA.isBatchedMesh && Ae.batching === !1 || !sA.isBatchedMesh && Ae.batching === !0 || sA.isInstancedMesh && Ae.instancing === !1 || !sA.isInstancedMesh && Ae.instancing === !0 || sA.isSkinnedMesh && Ae.skinning === !1 || !sA.isSkinnedMesh && Ae.skinning === !0 || sA.isInstancedMesh && Ae.instancingColor === !0 && sA.instanceColor === null || sA.isInstancedMesh && Ae.instancingColor === !1 && sA.instanceColor !== null || sA.isInstancedMesh && Ae.instancingMorph === !0 && sA.morphTexture === null || sA.isInstancedMesh && Ae.instancingMorph === !1 && sA.morphTexture !== null || Ae.envMap !== QA || rA.fog === !0 && Ae.fog !== BA || Ae.numClippingPlanes !== void 0 && (Ae.numClippingPlanes !== cA.numPlanes || Ae.numIntersection !== cA.numIntersection) || Ae.vertexAlphas !== ee || Ae.vertexTangents !== bA || Ae.morphTargets !== re || Ae.morphNormals !== Ye || Ae.morphColors !== je || Ae.toneMapping !== dt || Ae.morphTargetsCount !== ye) && (De = !0) : (De = !0, Ae.__version = rA.version);
13734
+ rA.version === Ae.__version ? (Ae.needsLights && Ae.lightsStateVersion !== an.state.version || Ae.outputColorSpace !== UA || sA.isBatchedMesh && Ae.batching === !1 || !sA.isBatchedMesh && Ae.batching === !0 || sA.isInstancedMesh && Ae.instancing === !1 || !sA.isInstancedMesh && Ae.instancing === !0 || sA.isSkinnedMesh && Ae.skinning === !1 || !sA.isSkinnedMesh && Ae.skinning === !0 || sA.isInstancedMesh && Ae.instancingColor === !0 && sA.instanceColor === null || sA.isInstancedMesh && Ae.instancingColor === !1 && sA.instanceColor !== null || sA.isInstancedMesh && Ae.instancingMorph === !0 && sA.morphTexture === null || sA.isInstancedMesh && Ae.instancingMorph === !1 && sA.morphTexture !== null || Ae.envMap !== QA || rA.fog === !0 && Ae.fog !== BA || Ae.numClippingPlanes !== void 0 && (Ae.numClippingPlanes !== cA.numPlanes || Ae.numIntersection !== cA.numIntersection) || Ae.vertexAlphas !== ee || Ae.vertexTangents !== bA || Ae.morphTargets !== re || Ae.morphNormals !== Ye || Ae.morphColors !== je || Ae.toneMapping !== dt || Ae.morphTargetsCount !== ye) && (De = !0) : (De = !0, Ae.__version = rA.version);
13735
13735
  let mi = Ae.currentProgram;
13736
13736
  De === !0 && (mi = $t(rA, $, sA));
13737
13737
  let sl = !1, En = !1, Xs = !1;
@@ -13751,8 +13751,8 @@ class N2 {
13751
13751
  St && (St.boneTexture === null && St.computeBoneTexture(), Ue.setValue(H, "boneTexture", St.boneTexture, _A));
13752
13752
  }
13753
13753
  sA.isBatchedMesh && (Ue.setOptional(H, sA, "batchingTexture"), Ue.setValue(H, "batchingTexture", sA._matricesTexture, _A));
13754
- const an = oA.morphAttributes;
13755
- if ((an.position !== void 0 || an.normal !== void 0 || an.color !== void 0) && IA.update(sA, oA, mi), (En || Ae.receiveShadow !== sA.receiveShadow) && (Ae.receiveShadow = sA.receiveShadow, Ue.setValue(H, "receiveShadow", sA.receiveShadow)), rA.isMeshGouraudMaterial && rA.envMap !== null && (vi.envMap.value = QA, vi.flipEnvMap.value = QA.isCubeTexture && QA.isRenderTargetTexture === !1 ? -1 : 1), rA.isMeshStandardMaterial && rA.envMap === null && $.environment !== null && (vi.envMapIntensity.value = $.environmentIntensity), En && (Ue.setValue(H, "toneMappingExposure", v.toneMappingExposure), Ae.needsLights && Dn(vi, Xs), BA && rA.fog === !0 && nA.refreshFogUniforms(vi, BA), nA.refreshMaterialUniforms(vi, rA, W, B, d.state.transmissionRenderTarget[z.id]), Af.upload(H, sn(Ae), vi, _A)), rA.isShaderMaterial && rA.uniformsNeedUpdate === !0 && (Af.upload(H, sn(Ae), vi, _A), rA.uniformsNeedUpdate = !1), rA.isSpriteMaterial && Ue.setValue(H, "center", sA.center), Ue.setValue(H, "modelViewMatrix", sA.modelViewMatrix), Ue.setValue(H, "normalMatrix", sA.normalMatrix), Ue.setValue(H, "modelMatrix", sA.matrixWorld), rA.isShaderMaterial || rA.isRawShaderMaterial) {
13754
+ const ln = oA.morphAttributes;
13755
+ if ((ln.position !== void 0 || ln.normal !== void 0 || ln.color !== void 0) && IA.update(sA, oA, mi), (En || Ae.receiveShadow !== sA.receiveShadow) && (Ae.receiveShadow = sA.receiveShadow, Ue.setValue(H, "receiveShadow", sA.receiveShadow)), rA.isMeshGouraudMaterial && rA.envMap !== null && (vi.envMap.value = QA, vi.flipEnvMap.value = QA.isCubeTexture && QA.isRenderTargetTexture === !1 ? -1 : 1), rA.isMeshStandardMaterial && rA.envMap === null && $.environment !== null && (vi.envMapIntensity.value = $.environmentIntensity), En && (Ue.setValue(H, "toneMappingExposure", v.toneMappingExposure), Ae.needsLights && Dn(vi, Xs), BA && rA.fog === !0 && nA.refreshFogUniforms(vi, BA), nA.refreshMaterialUniforms(vi, rA, W, B, d.state.transmissionRenderTarget[z.id]), Af.upload(H, on(Ae), vi, _A)), rA.isShaderMaterial && rA.uniformsNeedUpdate === !0 && (Af.upload(H, on(Ae), vi, _A), rA.uniformsNeedUpdate = !1), rA.isSpriteMaterial && Ue.setValue(H, "center", sA.center), Ue.setValue(H, "modelViewMatrix", sA.modelViewMatrix), Ue.setValue(H, "normalMatrix", sA.normalMatrix), Ue.setValue(H, "modelMatrix", sA.matrixWorld), rA.isShaderMaterial || rA.isRawShaderMaterial) {
13756
13756
  const St = rA.uniformsGroups;
13757
13757
  for (let es = 0, ol = St.length; es < ol; es++) {
13758
13758
  const Ai = St[es];
@@ -13870,7 +13870,7 @@ class N2 {
13870
13870
  }
13871
13871
  class ka extends Ie {
13872
13872
  constructor() {
13873
- super(), this.isScene = !0, this.type = "Scene", this.background = null, this.environment = null, this.fog = null, this.backgroundBlurriness = 0, this.backgroundIntensity = 1, this.backgroundRotation = new xn(), this.environmentIntensity = 1, this.environmentRotation = new xn(), this.overrideMaterial = null, typeof __THREE_DEVTOOLS__ < "u" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe", { detail: this }));
13873
+ super(), this.isScene = !0, this.type = "Scene", this.background = null, this.environment = null, this.fog = null, this.backgroundBlurriness = 0, this.backgroundIntensity = 1, this.backgroundRotation = new In(), this.environmentIntensity = 1, this.environmentRotation = new In(), this.overrideMaterial = null, typeof __THREE_DEVTOOLS__ < "u" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe", { detail: this }));
13874
13874
  }
13875
13875
  copy(A, e) {
13876
13876
  return super.copy(A, e), A.background !== null && (this.background = A.background.clone()), A.environment !== null && (this.environment = A.environment.clone()), A.fog !== null && (this.fog = A.fog.clone()), this.backgroundBlurriness = A.backgroundBlurriness, this.backgroundIntensity = A.backgroundIntensity, this.backgroundRotation.copy(A.backgroundRotation), this.environmentIntensity = A.environmentIntensity, this.environmentRotation.copy(A.environmentRotation), A.overrideMaterial !== null && (this.overrideMaterial = A.overrideMaterial.clone()), this.matrixAutoUpdate = A.matrixAutoUpdate, this;
@@ -14280,7 +14280,7 @@ class ID extends Me {
14280
14280
  return this.dispatchEvent({ type: "dispose" }), this.morphTexture !== null && (this.morphTexture.dispose(), this.morphTexture = null), this;
14281
14281
  }
14282
14282
  }
14283
- class ld extends yn {
14283
+ class ld extends wn {
14284
14284
  constructor(A) {
14285
14285
  super(), this.isLineBasicMaterial = !0, this.type = "LineBasicMaterial", this.color = new FA(16777215), this.map = null, this.linewidth = 1, this.linecap = "round", this.linejoin = "round", this.fog = !0, this.setValues(A);
14286
14286
  }
@@ -14389,7 +14389,7 @@ class bD extends av {
14389
14389
  super(A, e), this.isLineLoop = !0, this.type = "LineLoop";
14390
14390
  }
14391
14391
  }
14392
- class z2 extends yn {
14392
+ class z2 extends wn {
14393
14393
  constructor(A) {
14394
14394
  super(), this.isPointsMaterial = !0, this.type = "PointsMaterial", this.color = new FA(16777215), this.map = null, this.alphaMap = null, this.size = 1, this.sizeAttenuation = !0, this.fog = !0, this.setValues(A);
14395
14395
  }
@@ -15521,9 +15521,9 @@ class iE extends $e {
15521
15521
  super(A), this.isRawShaderMaterial = !0, this.type = "RawShaderMaterial";
15522
15522
  }
15523
15523
  }
15524
- class Gc extends yn {
15524
+ class Gc extends wn {
15525
15525
  constructor(A) {
15526
- super(), this.isMeshStandardMaterial = !0, this.defines = { STANDARD: "" }, this.type = "MeshStandardMaterial", this.color = new FA(16777215), this.roughness = 1, this.metalness = 0, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new FA(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = m2, this.normalScale = new uA(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.roughnessMap = null, this.metalnessMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new xn(), this.envMapIntensity = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(A);
15526
+ super(), this.isMeshStandardMaterial = !0, this.defines = { STANDARD: "" }, this.type = "MeshStandardMaterial", this.color = new FA(16777215), this.roughness = 1, this.metalness = 0, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new FA(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = m2, this.normalScale = new uA(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.roughnessMap = null, this.metalnessMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new In(), this.envMapIntensity = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(A);
15527
15527
  }
15528
15528
  copy(A) {
15529
15529
  return super.copy(A), this.defines = { STANDARD: "" }, this.color.copy(A.color), this.roughness = A.roughness, this.metalness = A.metalness, this.map = A.map, this.lightMap = A.lightMap, this.lightMapIntensity = A.lightMapIntensity, this.aoMap = A.aoMap, this.aoMapIntensity = A.aoMapIntensity, this.emissive.copy(A.emissive), this.emissiveMap = A.emissiveMap, this.emissiveIntensity = A.emissiveIntensity, this.bumpMap = A.bumpMap, this.bumpScale = A.bumpScale, this.normalMap = A.normalMap, this.normalMapType = A.normalMapType, this.normalScale.copy(A.normalScale), this.displacementMap = A.displacementMap, this.displacementScale = A.displacementScale, this.displacementBias = A.displacementBias, this.roughnessMap = A.roughnessMap, this.metalnessMap = A.metalnessMap, this.alphaMap = A.alphaMap, this.envMap = A.envMap, this.envMapRotation.copy(A.envMapRotation), this.envMapIntensity = A.envMapIntensity, this.wireframe = A.wireframe, this.wireframeLinewidth = A.wireframeLinewidth, this.wireframeLinecap = A.wireframeLinecap, this.wireframeLinejoin = A.wireframeLinejoin, this.flatShading = A.flatShading, this.fog = A.fog, this;
@@ -28065,7 +28065,7 @@ var Ca = Object.freeze({
28065
28065
  typeof t == "string" ? this._valuesStartRepeat[A] = this._valuesStartRepeat[A] + parseFloat(t) : this._valuesStartRepeat[A] = this._valuesEnd[A], this._valuesEnd[A] = e;
28066
28066
  }, n;
28067
28067
  }()
28068
- ), t5 = "23.1.2", i5 = _v.nextId, In = Dm, n5 = In.getAll.bind(In), r5 = In.removeAll.bind(In), s5 = In.add.bind(In), o5 = In.remove.bind(In), a5 = In.update.bind(In), Ds = {
28068
+ ), t5 = "23.1.2", i5 = _v.nextId, bn = Dm, n5 = bn.getAll.bind(bn), r5 = bn.removeAll.bind(bn), s5 = bn.add.bind(bn), o5 = bn.remove.bind(bn), a5 = bn.update.bind(bn), Ds = {
28069
28069
  Easing: Ca,
28070
28070
  Group: vb,
28071
28071
  Interpolation: Ps,
@@ -28274,7 +28274,7 @@ uc.Panel = function(n, A, e) {
28274
28274
  }
28275
28275
  };
28276
28276
  };
28277
- var Us = /* @__PURE__ */ ((n) => (n[n.WEBGL_LEGACY = 0] = "WEBGL_LEGACY", n[n.WEBGL = 1] = "WEBGL", n[n.WEBGL2 = 2] = "WEBGL2", n))(Us || {}), wb = /* @__PURE__ */ ((n) => (n[n.UNKNOWN = 0] = "UNKNOWN", n[n.WEBGL = 1] = "WEBGL", n[n.CANVAS = 2] = "CANVAS", n))(wb || {}), Em = /* @__PURE__ */ ((n) => (n[n.COLOR = 16384] = "COLOR", n[n.DEPTH = 256] = "DEPTH", n[n.STENCIL = 1024] = "STENCIL", n))(Em || {}), $A = /* @__PURE__ */ ((n) => (n[n.NORMAL = 0] = "NORMAL", n[n.ADD = 1] = "ADD", n[n.MULTIPLY = 2] = "MULTIPLY", n[n.SCREEN = 3] = "SCREEN", n[n.OVERLAY = 4] = "OVERLAY", n[n.DARKEN = 5] = "DARKEN", n[n.LIGHTEN = 6] = "LIGHTEN", n[n.COLOR_DODGE = 7] = "COLOR_DODGE", n[n.COLOR_BURN = 8] = "COLOR_BURN", n[n.HARD_LIGHT = 9] = "HARD_LIGHT", n[n.SOFT_LIGHT = 10] = "SOFT_LIGHT", n[n.DIFFERENCE = 11] = "DIFFERENCE", n[n.EXCLUSION = 12] = "EXCLUSION", n[n.HUE = 13] = "HUE", n[n.SATURATION = 14] = "SATURATION", n[n.COLOR = 15] = "COLOR", n[n.LUMINOSITY = 16] = "LUMINOSITY", n[n.NORMAL_NPM = 17] = "NORMAL_NPM", n[n.ADD_NPM = 18] = "ADD_NPM", n[n.SCREEN_NPM = 19] = "SCREEN_NPM", n[n.NONE = 20] = "NONE", n[n.SRC_OVER = 0] = "SRC_OVER", n[n.SRC_IN = 21] = "SRC_IN", n[n.SRC_OUT = 22] = "SRC_OUT", n[n.SRC_ATOP = 23] = "SRC_ATOP", n[n.DST_OVER = 24] = "DST_OVER", n[n.DST_IN = 25] = "DST_IN", n[n.DST_OUT = 26] = "DST_OUT", n[n.DST_ATOP = 27] = "DST_ATOP", n[n.ERASE = 26] = "ERASE", n[n.SUBTRACT = 28] = "SUBTRACT", n[n.XOR = 29] = "XOR", n))($A || {}), vn = /* @__PURE__ */ ((n) => (n[n.POINTS = 0] = "POINTS", n[n.LINES = 1] = "LINES", n[n.LINE_LOOP = 2] = "LINE_LOOP", n[n.LINE_STRIP = 3] = "LINE_STRIP", n[n.TRIANGLES = 4] = "TRIANGLES", n[n.TRIANGLE_STRIP = 5] = "TRIANGLE_STRIP", n[n.TRIANGLE_FAN = 6] = "TRIANGLE_FAN", n))(vn || {}), PA = /* @__PURE__ */ ((n) => (n[n.RGBA = 6408] = "RGBA", n[n.RGB = 6407] = "RGB", n[n.RG = 33319] = "RG", n[n.RED = 6403] = "RED", n[n.RGBA_INTEGER = 36249] = "RGBA_INTEGER", n[n.RGB_INTEGER = 36248] = "RGB_INTEGER", n[n.RG_INTEGER = 33320] = "RG_INTEGER", n[n.RED_INTEGER = 36244] = "RED_INTEGER", n[n.ALPHA = 6406] = "ALPHA", n[n.LUMINANCE = 6409] = "LUMINANCE", n[n.LUMINANCE_ALPHA = 6410] = "LUMINANCE_ALPHA", n[n.DEPTH_COMPONENT = 6402] = "DEPTH_COMPONENT", n[n.DEPTH_STENCIL = 34041] = "DEPTH_STENCIL", n))(PA || {}), xa = /* @__PURE__ */ ((n) => (n[n.TEXTURE_2D = 3553] = "TEXTURE_2D", n[n.TEXTURE_CUBE_MAP = 34067] = "TEXTURE_CUBE_MAP", n[n.TEXTURE_2D_ARRAY = 35866] = "TEXTURE_2D_ARRAY", n[n.TEXTURE_CUBE_MAP_POSITIVE_X = 34069] = "TEXTURE_CUBE_MAP_POSITIVE_X", n[n.TEXTURE_CUBE_MAP_NEGATIVE_X = 34070] = "TEXTURE_CUBE_MAP_NEGATIVE_X", n[n.TEXTURE_CUBE_MAP_POSITIVE_Y = 34071] = "TEXTURE_CUBE_MAP_POSITIVE_Y", n[n.TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y", n[n.TEXTURE_CUBE_MAP_POSITIVE_Z = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z", n[n.TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z", n))(xa || {}), ZA = /* @__PURE__ */ ((n) => (n[n.UNSIGNED_BYTE = 5121] = "UNSIGNED_BYTE", n[n.UNSIGNED_SHORT = 5123] = "UNSIGNED_SHORT", n[n.UNSIGNED_SHORT_5_6_5 = 33635] = "UNSIGNED_SHORT_5_6_5", n[n.UNSIGNED_SHORT_4_4_4_4 = 32819] = "UNSIGNED_SHORT_4_4_4_4", n[n.UNSIGNED_SHORT_5_5_5_1 = 32820] = "UNSIGNED_SHORT_5_5_5_1", n[n.UNSIGNED_INT = 5125] = "UNSIGNED_INT", n[n.UNSIGNED_INT_10F_11F_11F_REV = 35899] = "UNSIGNED_INT_10F_11F_11F_REV", n[n.UNSIGNED_INT_2_10_10_10_REV = 33640] = "UNSIGNED_INT_2_10_10_10_REV", n[n.UNSIGNED_INT_24_8 = 34042] = "UNSIGNED_INT_24_8", n[n.UNSIGNED_INT_5_9_9_9_REV = 35902] = "UNSIGNED_INT_5_9_9_9_REV", n[n.BYTE = 5120] = "BYTE", n[n.SHORT = 5122] = "SHORT", n[n.INT = 5124] = "INT", n[n.FLOAT = 5126] = "FLOAT", n[n.FLOAT_32_UNSIGNED_INT_24_8_REV = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV", n[n.HALF_FLOAT = 36193] = "HALF_FLOAT", n))(ZA || {}), kA = /* @__PURE__ */ ((n) => (n[n.FLOAT = 0] = "FLOAT", n[n.INT = 1] = "INT", n[n.UINT = 2] = "UINT", n))(kA || {}), Xn = /* @__PURE__ */ ((n) => (n[n.NEAREST = 0] = "NEAREST", n[n.LINEAR = 1] = "LINEAR", n))(Xn || {}), Gr = /* @__PURE__ */ ((n) => (n[n.CLAMP = 33071] = "CLAMP", n[n.REPEAT = 10497] = "REPEAT", n[n.MIRRORED_REPEAT = 33648] = "MIRRORED_REPEAT", n))(Gr || {}), bn = /* @__PURE__ */ ((n) => (n[n.OFF = 0] = "OFF", n[n.POW2 = 1] = "POW2", n[n.ON = 2] = "ON", n[n.ON_MANUAL = 3] = "ON_MANUAL", n))(bn || {}), Qt = /* @__PURE__ */ ((n) => (n[n.NPM = 0] = "NPM", n[n.UNPACK = 1] = "UNPACK", n[n.PMA = 2] = "PMA", n[n.NO_PREMULTIPLIED_ALPHA = 0] = "NO_PREMULTIPLIED_ALPHA", n[n.PREMULTIPLY_ON_UPLOAD = 1] = "PREMULTIPLY_ON_UPLOAD", n[n.PREMULTIPLIED_ALPHA = 2] = "PREMULTIPLIED_ALPHA", n))(Qt || {}), gn = /* @__PURE__ */ ((n) => (n[n.NO = 0] = "NO", n[n.YES = 1] = "YES", n[n.AUTO = 2] = "AUTO", n[n.BLEND = 0] = "BLEND", n[n.CLEAR = 1] = "CLEAR", n[n.BLIT = 2] = "BLIT", n))(gn || {}), Mv = /* @__PURE__ */ ((n) => (n[n.AUTO = 0] = "AUTO", n[n.MANUAL = 1] = "MANUAL", n))(Mv || {}), Si = /* @__PURE__ */ ((n) => (n.LOW = "lowp", n.MEDIUM = "mediump", n.HIGH = "highp", n))(Si || {}), st = /* @__PURE__ */ ((n) => (n[n.NONE = 0] = "NONE", n[n.SCISSOR = 1] = "SCISSOR", n[n.STENCIL = 2] = "STENCIL", n[n.SPRITE = 3] = "SPRITE", n[n.COLOR = 4] = "COLOR", n))(st || {}), tt = /* @__PURE__ */ ((n) => (n[n.NONE = 0] = "NONE", n[n.LOW = 2] = "LOW", n[n.MEDIUM = 4] = "MEDIUM", n[n.HIGH = 8] = "HIGH", n))(tt || {}), wn = /* @__PURE__ */ ((n) => (n[n.ELEMENT_ARRAY_BUFFER = 34963] = "ELEMENT_ARRAY_BUFFER", n[n.ARRAY_BUFFER = 34962] = "ARRAY_BUFFER", n[n.UNIFORM_BUFFER = 35345] = "UNIFORM_BUFFER", n))(wn || {});
28277
+ var Us = /* @__PURE__ */ ((n) => (n[n.WEBGL_LEGACY = 0] = "WEBGL_LEGACY", n[n.WEBGL = 1] = "WEBGL", n[n.WEBGL2 = 2] = "WEBGL2", n))(Us || {}), wb = /* @__PURE__ */ ((n) => (n[n.UNKNOWN = 0] = "UNKNOWN", n[n.WEBGL = 1] = "WEBGL", n[n.CANVAS = 2] = "CANVAS", n))(wb || {}), Em = /* @__PURE__ */ ((n) => (n[n.COLOR = 16384] = "COLOR", n[n.DEPTH = 256] = "DEPTH", n[n.STENCIL = 1024] = "STENCIL", n))(Em || {}), $A = /* @__PURE__ */ ((n) => (n[n.NORMAL = 0] = "NORMAL", n[n.ADD = 1] = "ADD", n[n.MULTIPLY = 2] = "MULTIPLY", n[n.SCREEN = 3] = "SCREEN", n[n.OVERLAY = 4] = "OVERLAY", n[n.DARKEN = 5] = "DARKEN", n[n.LIGHTEN = 6] = "LIGHTEN", n[n.COLOR_DODGE = 7] = "COLOR_DODGE", n[n.COLOR_BURN = 8] = "COLOR_BURN", n[n.HARD_LIGHT = 9] = "HARD_LIGHT", n[n.SOFT_LIGHT = 10] = "SOFT_LIGHT", n[n.DIFFERENCE = 11] = "DIFFERENCE", n[n.EXCLUSION = 12] = "EXCLUSION", n[n.HUE = 13] = "HUE", n[n.SATURATION = 14] = "SATURATION", n[n.COLOR = 15] = "COLOR", n[n.LUMINOSITY = 16] = "LUMINOSITY", n[n.NORMAL_NPM = 17] = "NORMAL_NPM", n[n.ADD_NPM = 18] = "ADD_NPM", n[n.SCREEN_NPM = 19] = "SCREEN_NPM", n[n.NONE = 20] = "NONE", n[n.SRC_OVER = 0] = "SRC_OVER", n[n.SRC_IN = 21] = "SRC_IN", n[n.SRC_OUT = 22] = "SRC_OUT", n[n.SRC_ATOP = 23] = "SRC_ATOP", n[n.DST_OVER = 24] = "DST_OVER", n[n.DST_IN = 25] = "DST_IN", n[n.DST_OUT = 26] = "DST_OUT", n[n.DST_ATOP = 27] = "DST_ATOP", n[n.ERASE = 26] = "ERASE", n[n.SUBTRACT = 28] = "SUBTRACT", n[n.XOR = 29] = "XOR", n))($A || {}), yn = /* @__PURE__ */ ((n) => (n[n.POINTS = 0] = "POINTS", n[n.LINES = 1] = "LINES", n[n.LINE_LOOP = 2] = "LINE_LOOP", n[n.LINE_STRIP = 3] = "LINE_STRIP", n[n.TRIANGLES = 4] = "TRIANGLES", n[n.TRIANGLE_STRIP = 5] = "TRIANGLE_STRIP", n[n.TRIANGLE_FAN = 6] = "TRIANGLE_FAN", n))(yn || {}), PA = /* @__PURE__ */ ((n) => (n[n.RGBA = 6408] = "RGBA", n[n.RGB = 6407] = "RGB", n[n.RG = 33319] = "RG", n[n.RED = 6403] = "RED", n[n.RGBA_INTEGER = 36249] = "RGBA_INTEGER", n[n.RGB_INTEGER = 36248] = "RGB_INTEGER", n[n.RG_INTEGER = 33320] = "RG_INTEGER", n[n.RED_INTEGER = 36244] = "RED_INTEGER", n[n.ALPHA = 6406] = "ALPHA", n[n.LUMINANCE = 6409] = "LUMINANCE", n[n.LUMINANCE_ALPHA = 6410] = "LUMINANCE_ALPHA", n[n.DEPTH_COMPONENT = 6402] = "DEPTH_COMPONENT", n[n.DEPTH_STENCIL = 34041] = "DEPTH_STENCIL", n))(PA || {}), xa = /* @__PURE__ */ ((n) => (n[n.TEXTURE_2D = 3553] = "TEXTURE_2D", n[n.TEXTURE_CUBE_MAP = 34067] = "TEXTURE_CUBE_MAP", n[n.TEXTURE_2D_ARRAY = 35866] = "TEXTURE_2D_ARRAY", n[n.TEXTURE_CUBE_MAP_POSITIVE_X = 34069] = "TEXTURE_CUBE_MAP_POSITIVE_X", n[n.TEXTURE_CUBE_MAP_NEGATIVE_X = 34070] = "TEXTURE_CUBE_MAP_NEGATIVE_X", n[n.TEXTURE_CUBE_MAP_POSITIVE_Y = 34071] = "TEXTURE_CUBE_MAP_POSITIVE_Y", n[n.TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y", n[n.TEXTURE_CUBE_MAP_POSITIVE_Z = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z", n[n.TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z", n))(xa || {}), ZA = /* @__PURE__ */ ((n) => (n[n.UNSIGNED_BYTE = 5121] = "UNSIGNED_BYTE", n[n.UNSIGNED_SHORT = 5123] = "UNSIGNED_SHORT", n[n.UNSIGNED_SHORT_5_6_5 = 33635] = "UNSIGNED_SHORT_5_6_5", n[n.UNSIGNED_SHORT_4_4_4_4 = 32819] = "UNSIGNED_SHORT_4_4_4_4", n[n.UNSIGNED_SHORT_5_5_5_1 = 32820] = "UNSIGNED_SHORT_5_5_5_1", n[n.UNSIGNED_INT = 5125] = "UNSIGNED_INT", n[n.UNSIGNED_INT_10F_11F_11F_REV = 35899] = "UNSIGNED_INT_10F_11F_11F_REV", n[n.UNSIGNED_INT_2_10_10_10_REV = 33640] = "UNSIGNED_INT_2_10_10_10_REV", n[n.UNSIGNED_INT_24_8 = 34042] = "UNSIGNED_INT_24_8", n[n.UNSIGNED_INT_5_9_9_9_REV = 35902] = "UNSIGNED_INT_5_9_9_9_REV", n[n.BYTE = 5120] = "BYTE", n[n.SHORT = 5122] = "SHORT", n[n.INT = 5124] = "INT", n[n.FLOAT = 5126] = "FLOAT", n[n.FLOAT_32_UNSIGNED_INT_24_8_REV = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV", n[n.HALF_FLOAT = 36193] = "HALF_FLOAT", n))(ZA || {}), kA = /* @__PURE__ */ ((n) => (n[n.FLOAT = 0] = "FLOAT", n[n.INT = 1] = "INT", n[n.UINT = 2] = "UINT", n))(kA || {}), Xn = /* @__PURE__ */ ((n) => (n[n.NEAREST = 0] = "NEAREST", n[n.LINEAR = 1] = "LINEAR", n))(Xn || {}), Gr = /* @__PURE__ */ ((n) => (n[n.CLAMP = 33071] = "CLAMP", n[n.REPEAT = 10497] = "REPEAT", n[n.MIRRORED_REPEAT = 33648] = "MIRRORED_REPEAT", n))(Gr || {}), _n = /* @__PURE__ */ ((n) => (n[n.OFF = 0] = "OFF", n[n.POW2 = 1] = "POW2", n[n.ON = 2] = "ON", n[n.ON_MANUAL = 3] = "ON_MANUAL", n))(_n || {}), Qt = /* @__PURE__ */ ((n) => (n[n.NPM = 0] = "NPM", n[n.UNPACK = 1] = "UNPACK", n[n.PMA = 2] = "PMA", n[n.NO_PREMULTIPLIED_ALPHA = 0] = "NO_PREMULTIPLIED_ALPHA", n[n.PREMULTIPLY_ON_UPLOAD = 1] = "PREMULTIPLY_ON_UPLOAD", n[n.PREMULTIPLIED_ALPHA = 2] = "PREMULTIPLIED_ALPHA", n))(Qt || {}), mn = /* @__PURE__ */ ((n) => (n[n.NO = 0] = "NO", n[n.YES = 1] = "YES", n[n.AUTO = 2] = "AUTO", n[n.BLEND = 0] = "BLEND", n[n.CLEAR = 1] = "CLEAR", n[n.BLIT = 2] = "BLIT", n))(mn || {}), Mv = /* @__PURE__ */ ((n) => (n[n.AUTO = 0] = "AUTO", n[n.MANUAL = 1] = "MANUAL", n))(Mv || {}), Si = /* @__PURE__ */ ((n) => (n.LOW = "lowp", n.MEDIUM = "mediump", n.HIGH = "highp", n))(Si || {}), st = /* @__PURE__ */ ((n) => (n[n.NONE = 0] = "NONE", n[n.SCISSOR = 1] = "SCISSOR", n[n.STENCIL = 2] = "STENCIL", n[n.SPRITE = 3] = "SPRITE", n[n.COLOR = 4] = "COLOR", n))(st || {}), tt = /* @__PURE__ */ ((n) => (n[n.NONE = 0] = "NONE", n[n.LOW = 2] = "LOW", n[n.MEDIUM = 4] = "MEDIUM", n[n.HIGH = 8] = "HIGH", n))(tt || {}), Cn = /* @__PURE__ */ ((n) => (n[n.ELEMENT_ARRAY_BUFFER = 34963] = "ELEMENT_ARRAY_BUFFER", n[n.ARRAY_BUFFER = 34962] = "ARRAY_BUFFER", n[n.UNIFORM_BUFFER = 35345] = "UNIFORM_BUFFER", n))(Cn || {});
28278
28278
  const h5 = {
28279
28279
  /**
28280
28280
  * Creates a canvas element of the given size.
@@ -29309,7 +29309,7 @@ const y8 = {}, w8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
29309
29309
  __proto__: null,
29310
29310
  default: y8
29311
29311
  }, Symbol.toStringTag, { value: "Module" })), C8 = /* @__PURE__ */ l5(w8);
29312
- var Ev = typeof Map == "function" && Map.prototype, Qp = Object.getOwnPropertyDescriptor && Ev ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Of = Ev && Qp && typeof Qp.get == "function" ? Qp.get : null, CC = Ev && Map.prototype.forEach, Lv = typeof Set == "function" && Set.prototype, Vp = Object.getOwnPropertyDescriptor && Lv ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, qf = Lv && Vp && typeof Vp.get == "function" ? Vp.get : null, xC = Lv && Set.prototype.forEach, x8 = typeof WeakMap == "function" && WeakMap.prototype, dc = x8 ? WeakMap.prototype.has : null, I8 = typeof WeakSet == "function" && WeakSet.prototype, pc = I8 ? WeakSet.prototype.has : null, b8 = typeof WeakRef == "function" && WeakRef.prototype, IC = b8 ? WeakRef.prototype.deref : null, _8 = Boolean.prototype.valueOf, S8 = Object.prototype.toString, M8 = Function.prototype.toString, P8 = String.prototype.match, Ov = String.prototype.slice, zr = String.prototype.replace, T8 = String.prototype.toUpperCase, bC = String.prototype.toLowerCase, Lb = RegExp.prototype.test, _C = Array.prototype.concat, mn = Array.prototype.join, D8 = Array.prototype.slice, SC = Math.floor, zm = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, $p = Object.getOwnPropertySymbols, Rm = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, Ga = typeof Symbol == "function" && typeof Symbol.iterator == "object", Ot = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Ga || !0) ? Symbol.toStringTag : null, Ob = Object.prototype.propertyIsEnumerable, MC = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(n) {
29312
+ var Ev = typeof Map == "function" && Map.prototype, Qp = Object.getOwnPropertyDescriptor && Ev ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Of = Ev && Qp && typeof Qp.get == "function" ? Qp.get : null, CC = Ev && Map.prototype.forEach, Lv = typeof Set == "function" && Set.prototype, Vp = Object.getOwnPropertyDescriptor && Lv ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, qf = Lv && Vp && typeof Vp.get == "function" ? Vp.get : null, xC = Lv && Set.prototype.forEach, x8 = typeof WeakMap == "function" && WeakMap.prototype, dc = x8 ? WeakMap.prototype.has : null, I8 = typeof WeakSet == "function" && WeakSet.prototype, pc = I8 ? WeakSet.prototype.has : null, b8 = typeof WeakRef == "function" && WeakRef.prototype, IC = b8 ? WeakRef.prototype.deref : null, _8 = Boolean.prototype.valueOf, S8 = Object.prototype.toString, M8 = Function.prototype.toString, P8 = String.prototype.match, Ov = String.prototype.slice, zr = String.prototype.replace, T8 = String.prototype.toUpperCase, bC = String.prototype.toLowerCase, Lb = RegExp.prototype.test, _C = Array.prototype.concat, vn = Array.prototype.join, D8 = Array.prototype.slice, SC = Math.floor, zm = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, $p = Object.getOwnPropertySymbols, Rm = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, Ga = typeof Symbol == "function" && typeof Symbol.iterator == "object", Ot = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Ga || !0) ? Symbol.toStringTag : null, Ob = Object.prototype.propertyIsEnumerable, MC = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(n) {
29313
29313
  return n.__proto__;
29314
29314
  } : null);
29315
29315
  function PC(n, A) {
@@ -29376,7 +29376,7 @@ var km = C8, TC = km.custom, DC = Nb(TC) ? TC : null, E8 = function n(A, e, t, i
29376
29376
  }
29377
29377
  if (typeof A == "function" && !EC(A)) {
29378
29378
  var f = j8(A), p = lu(A, h);
29379
- return "[Function" + (f ? ": " + f : " (anonymous)") + "]" + (p.length > 0 ? " { " + mn.call(p, ", ") + " }" : "");
29379
+ return "[Function" + (f ? ": " + f : " (anonymous)") + "]" + (p.length > 0 ? " { " + vn.call(p, ", ") + " }" : "");
29380
29380
  }
29381
29381
  if (Nb(A)) {
29382
29382
  var m = Ga ? zr.call(String(A), /^(Symbol\(.*\))_[^)]*$/, "$1") : Rm.call(A);
@@ -29391,11 +29391,11 @@ var km = C8, TC = km.custom, DC = Nb(TC) ? TC : null, E8 = function n(A, e, t, i
29391
29391
  if (A.length === 0)
29392
29392
  return "[]";
29393
29393
  var v = lu(A, h);
29394
- return c && !J8(v) ? "[" + Km(v, c) + "]" : "[ " + mn.call(v, ", ") + " ]";
29394
+ return c && !J8(v) ? "[" + Km(v, c) + "]" : "[ " + vn.call(v, ", ") + " ]";
29395
29395
  }
29396
29396
  if (q8(A)) {
29397
29397
  var w = lu(A, h);
29398
- return !("cause" in Error.prototype) && "cause" in A && !Ob.call(A, "cause") ? "{ [" + String(A) + "] " + mn.call(_C.call("[cause]: " + h(A.cause), w), ", ") + " }" : w.length === 0 ? "[" + String(A) + "]" : "{ [" + String(A) + "] " + mn.call(w, ", ") + " }";
29398
+ return !("cause" in Error.prototype) && "cause" in A && !Ob.call(A, "cause") ? "{ [" + String(A) + "] " + vn.call(_C.call("[cause]: " + h(A.cause), w), ", ") + " }" : w.length === 0 ? "[" + String(A) + "]" : "{ [" + String(A) + "] " + vn.call(w, ", ") + " }";
29399
29399
  }
29400
29400
  if (typeof A == "object" && s) {
29401
29401
  if (DC && typeof A[DC] == "function" && km)
@@ -29434,8 +29434,8 @@ var km = C8, TC = km.custom, DC = Nb(TC) ? TC : null, E8 = function n(A, e, t, i
29434
29434
  if (A === Wn)
29435
29435
  return "{ [object globalThis] }";
29436
29436
  if (!O8(A) && !EC(A)) {
29437
- var x = lu(A, h), S = MC ? MC(A) === Object.prototype : A instanceof Object || A.constructor === Object, b = A instanceof Object ? "" : "null prototype", I = !S && Ot && Object(A) === A && Ot in A ? Ov.call($r(A), 8, -1) : b ? "Object" : "", D = S || typeof A.constructor != "function" ? "" : A.constructor.name ? A.constructor.name + " " : "", P = D + (I || b ? "[" + mn.call(_C.call([], I || [], b || []), ": ") + "] " : "");
29438
- return x.length === 0 ? P + "{}" : c ? P + "{" + Km(x, c) + "}" : P + "{ " + mn.call(x, ", ") + " }";
29437
+ var x = lu(A, h), S = MC ? MC(A) === Object.prototype : A instanceof Object || A.constructor === Object, b = A instanceof Object ? "" : "null prototype", I = !S && Ot && Object(A) === A && Ot in A ? Ov.call($r(A), 8, -1) : b ? "Object" : "", D = S || typeof A.constructor != "function" ? "" : A.constructor.name ? A.constructor.name + " " : "", P = D + (I || b ? "[" + vn.call(_C.call([], I || [], b || []), ": ") + "] " : "");
29438
+ return x.length === 0 ? P + "{}" : c ? P + "{" + Km(x, c) + "}" : P + "{ " + vn.call(x, ", ") + " }";
29439
29439
  }
29440
29440
  return String(A);
29441
29441
  };
@@ -29609,7 +29609,7 @@ function Ag(n) {
29609
29609
  return n + " { ? }";
29610
29610
  }
29611
29611
  function LC(n, A, e, t) {
29612
- var i = t ? Km(e, t) : mn.call(e, ", ");
29612
+ var i = t ? Km(e, t) : vn.call(e, ", ");
29613
29613
  return n + " (" + A + ") {" + i + "}";
29614
29614
  }
29615
29615
  function J8(n) {
@@ -29624,12 +29624,12 @@ function Z8(n, A) {
29624
29624
  if (n.indent === " ")
29625
29625
  e = " ";
29626
29626
  else if (typeof n.indent == "number" && n.indent > 0)
29627
- e = mn.call(Array(n.indent + 1), " ");
29627
+ e = vn.call(Array(n.indent + 1), " ");
29628
29628
  else
29629
29629
  return null;
29630
29630
  return {
29631
29631
  base: e,
29632
- prev: mn.call(Array(A + 1), e)
29632
+ prev: vn.call(Array(A + 1), e)
29633
29633
  };
29634
29634
  }
29635
29635
  function Km(n, A) {
@@ -29637,7 +29637,7 @@ function Km(n, A) {
29637
29637
  return "";
29638
29638
  var e = `
29639
29639
  ` + A.prev + A.base;
29640
- return e + mn.call(n, "," + e) + `
29640
+ return e + vn.call(n, "," + e) + `
29641
29641
  ` + A.prev;
29642
29642
  }
29643
29643
  function lu(n, A) {
@@ -29724,7 +29724,7 @@ var qv = Ws, Al = v8, X8 = E8, Q8 = qv("%TypeError%"), cu = qv("%WeakMap%", !0),
29724
29724
  },
29725
29725
  RFC1738: eg.RFC1738,
29726
29726
  RFC3986: eg.RFC3986
29727
- }, cq = Bv, tg = Object.prototype.hasOwnProperty, Ss = Array.isArray, ln = function() {
29727
+ }, cq = Bv, tg = Object.prototype.hasOwnProperty, Ss = Array.isArray, cn = function() {
29728
29728
  for (var n = [], A = 0; A < 256; ++A)
29729
29729
  n.push("%" + ((A < 16 ? "0" : "") + A.toString(16)).toUpperCase());
29730
29730
  return n;
@@ -29794,18 +29794,18 @@ var qv = Ws, Al = v8, X8 = E8, Q8 = qv("%TypeError%"), cu = qv("%WeakMap%", !0),
29794
29794
  continue;
29795
29795
  }
29796
29796
  if (l < 128) {
29797
- o = o + ln[l];
29797
+ o = o + cn[l];
29798
29798
  continue;
29799
29799
  }
29800
29800
  if (l < 2048) {
29801
- o = o + (ln[192 | l >> 6] + ln[128 | l & 63]);
29801
+ o = o + (cn[192 | l >> 6] + cn[128 | l & 63]);
29802
29802
  continue;
29803
29803
  }
29804
29804
  if (l < 55296 || l >= 57344) {
29805
- o = o + (ln[224 | l >> 12] + ln[128 | l >> 6 & 63] + ln[128 | l & 63]);
29805
+ o = o + (cn[224 | l >> 12] + cn[128 | l >> 6 & 63] + cn[128 | l & 63]);
29806
29806
  continue;
29807
29807
  }
29808
- a += 1, l = 65536 + ((l & 1023) << 10 | s.charCodeAt(a) & 1023), o += ln[240 | l >> 18] + ln[128 | l >> 12 & 63] + ln[128 | l >> 6 & 63] + ln[128 | l & 63];
29808
+ a += 1, l = 65536 + ((l & 1023) << 10 | s.charCodeAt(a) & 1023), o += cn[240 | l >> 18] + cn[128 | l >> 12 & 63] + cn[128 | l >> 6 & 63] + cn[128 | l & 63];
29809
29809
  }
29810
29810
  return o;
29811
29811
  }, gq = function(A) {
@@ -30775,30 +30775,30 @@ var tN = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) }, kn = function(n) {
30775
30775
  return A = Hb(this.rgba), { h: vt(A.h), s: vt(A.s), v: vt(A.v), a: vt(A.a, 3) };
30776
30776
  var A;
30777
30777
  }, n.prototype.invert = function() {
30778
- return cn({ r: 255 - (A = this.rgba).r, g: 255 - A.g, b: 255 - A.b, a: A.a });
30778
+ return hn({ r: 255 - (A = this.rgba).r, g: 255 - A.g, b: 255 - A.b, a: A.a });
30779
30779
  var A;
30780
30780
  }, n.prototype.saturate = function(A) {
30781
- return A === void 0 && (A = 0.1), cn(og(this.rgba, A));
30781
+ return A === void 0 && (A = 0.1), hn(og(this.rgba, A));
30782
30782
  }, n.prototype.desaturate = function(A) {
30783
- return A === void 0 && (A = 0.1), cn(og(this.rgba, -A));
30783
+ return A === void 0 && (A = 0.1), hn(og(this.rgba, -A));
30784
30784
  }, n.prototype.grayscale = function() {
30785
- return cn(og(this.rgba, -1));
30785
+ return hn(og(this.rgba, -1));
30786
30786
  }, n.prototype.lighten = function(A) {
30787
- return A === void 0 && (A = 0.1), cn(HC(this.rgba, A));
30787
+ return A === void 0 && (A = 0.1), hn(HC(this.rgba, A));
30788
30788
  }, n.prototype.darken = function(A) {
30789
- return A === void 0 && (A = 0.1), cn(HC(this.rgba, -A));
30789
+ return A === void 0 && (A = 0.1), hn(HC(this.rgba, -A));
30790
30790
  }, n.prototype.rotate = function(A) {
30791
30791
  return A === void 0 && (A = 15), this.hue(this.hue() + A);
30792
30792
  }, n.prototype.alpha = function(A) {
30793
- return typeof A == "number" ? cn({ r: (e = this.rgba).r, g: e.g, b: e.b, a: A }) : vt(this.rgba.a, 3);
30793
+ return typeof A == "number" ? hn({ r: (e = this.rgba).r, g: e.g, b: e.b, a: A }) : vt(this.rgba.a, 3);
30794
30794
  var e;
30795
30795
  }, n.prototype.hue = function(A) {
30796
30796
  var e = mc(this.rgba);
30797
- return typeof A == "number" ? cn({ h: A, s: e.s, l: e.l, a: e.a }) : vt(e.h);
30797
+ return typeof A == "number" ? hn({ h: A, s: e.s, l: e.l, a: e.a }) : vt(e.h);
30798
30798
  }, n.prototype.isEqual = function(A) {
30799
- return this.toHex() === cn(A).toHex();
30799
+ return this.toHex() === hn(A).toHex();
30800
30800
  }, n;
30801
- }(), cn = function(n) {
30801
+ }(), hn = function(n) {
30802
30802
  return n instanceof Wm ? n : new Wm(n);
30803
30803
  }, YC = [], lN = function(n) {
30804
30804
  n.forEach(function(A) {
@@ -31067,7 +31067,7 @@ const ea = class rf {
31067
31067
  const o = rf.HEX_PATTERN.exec(A);
31068
31068
  o && (A = `#${o[2]}`);
31069
31069
  }
31070
- const s = cn(A);
31070
+ const s = hn(A);
31071
31071
  s.isValid() && ({ r: e, g: t, b: i, a: r } = s.rgba, e /= 255, t /= 255, i /= 255);
31072
31072
  }
31073
31073
  if (e !== void 0)
@@ -31192,7 +31192,7 @@ const Jm = class {
31192
31192
  };
31193
31193
  Jm.EMPTY = new Jm(0, 0, 0, 0);
31194
31194
  let JC = Jm;
31195
- const ZC = {}, hn = /* @__PURE__ */ Object.create(null), mr = /* @__PURE__ */ Object.create(null);
31195
+ const ZC = {}, un = /* @__PURE__ */ Object.create(null), mr = /* @__PURE__ */ Object.create(null);
31196
31196
  class gN {
31197
31197
  /**
31198
31198
  * @param width - the width for the newly created canvas
@@ -32023,7 +32023,7 @@ const IN = {
32023
32023
  * @fires PIXI.BaseTexture#destroyed
32024
32024
  */
32025
32025
  destroy() {
32026
- this.resource && (this.resource.unbind(this), this.resource.internal && this.resource.destroy(), this.resource = null), this.cacheId && (delete mr[this.cacheId], delete hn[this.cacheId], this.cacheId = null), this.valid = !1, this.dispose(), ta.removeFromCache(this), this.textureCacheIds = null, this.destroyed = !0, this.emit("destroyed", this), this.removeAllListeners();
32026
+ this.resource && (this.resource.unbind(this), this.resource.internal && this.resource.destroy(), this.resource = null), this.cacheId && (delete mr[this.cacheId], delete un[this.cacheId], this.cacheId = null), this.valid = !1, this.dispose(), ta.removeFromCache(this), this.textureCacheIds = null, this.destroyed = !0, this.emit("destroyed", this), this.removeAllListeners();
32027
32027
  }
32028
32028
  /**
32029
32029
  * Frees the texture from WebGL memory without destroying this texture object.
@@ -32126,7 +32126,7 @@ Vm.defaultOptions = {
32126
32126
  * @type {PIXI.MIPMAP_MODES}
32127
32127
  * @default PIXI.MIPMAP_MODES.POW2
32128
32128
  */
32129
- mipmap: bn.POW2,
32129
+ mipmap: _n.POW2,
32130
32130
  /** Anisotropic filtering level of texture */
32131
32131
  anisotropicLevel: 0,
32132
32132
  /**
@@ -32170,7 +32170,7 @@ Vm._globalBatch = 0;
32170
32170
  let se = Vm;
32171
32171
  class $m {
32172
32172
  constructor() {
32173
- this.texArray = null, this.blend = 0, this.type = vn.TRIANGLES, this.start = 0, this.size = 0, this.data = null;
32173
+ this.texArray = null, this.blend = 0, this.type = yn.TRIANGLES, this.start = 0, this.size = 0, this.data = null;
32174
32174
  }
32175
32175
  }
32176
32176
  let bN = 0;
@@ -32208,10 +32208,10 @@ class Qe {
32208
32208
  * For backwards compatibility.
32209
32209
  */
32210
32210
  set index(A) {
32211
- this.type = A ? wn.ELEMENT_ARRAY_BUFFER : wn.ARRAY_BUFFER;
32211
+ this.type = A ? Cn.ELEMENT_ARRAY_BUFFER : Cn.ARRAY_BUFFER;
32212
32212
  }
32213
32213
  get index() {
32214
- return this.type === wn.ELEMENT_ARRAY_BUFFER;
32214
+ return this.type === Cn.ELEMENT_ARRAY_BUFFER;
32215
32215
  }
32216
32216
  /**
32217
32217
  * Helper function that creates a buffer based on an array or TypedArray
@@ -32345,7 +32345,7 @@ class Wr {
32345
32345
  * @returns - Returns self, useful for chaining.
32346
32346
  */
32347
32347
  addIndex(A) {
32348
- return A instanceof Qe || (A instanceof Array && (A = new Uint16Array(A)), A = new Qe(A)), A.type = wn.ELEMENT_ARRAY_BUFFER, this.indexBuffer = A, this.buffers.includes(A) || this.buffers.push(A), this;
32348
+ return A instanceof Qe || (A instanceof Array && (A = new Uint16Array(A)), A = new Qe(A)), A.type = Cn.ELEMENT_ARRAY_BUFFER, this.indexBuffer = A, this.buffers.includes(A) || this.buffers.push(A), this;
32349
32349
  }
32350
32350
  /**
32351
32351
  * Returns the index buffer
@@ -32408,7 +32408,7 @@ class Wr {
32408
32408
  t.instance
32409
32409
  );
32410
32410
  }
32411
- return this.indexBuffer && (A.indexBuffer = A.buffers[this.buffers.indexOf(this.indexBuffer)], A.indexBuffer.type = wn.ELEMENT_ARRAY_BUFFER), A;
32411
+ return this.indexBuffer && (A.indexBuffer = A.buffers[this.buffers.indexOf(this.indexBuffer)], A.indexBuffer.type = Cn.ELEMENT_ARRAY_BUFFER), A;
32412
32412
  }
32413
32413
  /**
32414
32414
  * Merges an array of geometries into a new single one.
@@ -32433,7 +32433,7 @@ class Wr {
32433
32433
  t[a].set(s.buffers[a].data, r[a]), r[a] += s.buffers[a].data.length;
32434
32434
  }
32435
32435
  if (e.attributes = s.attributes, s.indexBuffer) {
32436
- e.indexBuffer = e.buffers[s.buffers.indexOf(s.indexBuffer)], e.indexBuffer.type = wn.ELEMENT_ARRAY_BUFFER;
32436
+ e.indexBuffer = e.buffers[s.buffers.indexOf(s.indexBuffer)], e.indexBuffer.type = Cn.ELEMENT_ARRAY_BUFFER;
32437
32437
  let o = 0, a = 0, l = 0, u = 0;
32438
32438
  for (let c = 0; c < s.buffers.length; c++)
32439
32439
  if (s.buffers[c] !== s.indexBuffer) {
@@ -34037,7 +34037,7 @@ class An {
34037
34037
  * @param isUbo - If true, will treat this uniform group as a uniform buffer object.
34038
34038
  */
34039
34039
  constructor(A, e, t) {
34040
- this.group = !0, this.syncUniforms = {}, this.dirtyId = 0, this.id = GN++, this.static = !!e, this.ubo = !!t, A instanceof Qe ? (this.buffer = A, this.buffer.type = wn.UNIFORM_BUFFER, this.autoManage = !1, this.ubo = !0) : (this.uniforms = A, this.ubo && (this.buffer = new Qe(new Float32Array(1)), this.buffer.type = wn.UNIFORM_BUFFER, this.autoManage = !0));
34040
+ this.group = !0, this.syncUniforms = {}, this.dirtyId = 0, this.id = GN++, this.static = !!e, this.ubo = !!t, A instanceof Qe ? (this.buffer = A, this.buffer.type = Cn.UNIFORM_BUFFER, this.autoManage = !1, this.ubo = !0) : (this.uniforms = A, this.ubo && (this.buffer = new Qe(new Float32Array(1)), this.buffer.type = Cn.UNIFORM_BUFFER, this.autoManage = !0));
34041
34041
  }
34042
34042
  update() {
34043
34043
  this.dirtyId++, !this.autoManage && this.buffer && this.buffer.update();
@@ -34060,7 +34060,7 @@ class An {
34060
34060
  return new An(A, e ?? !0, !0);
34061
34061
  }
34062
34062
  }
34063
- class Cn {
34063
+ class xn {
34064
34064
  /**
34065
34065
  * @param program - The program the shader will use.
34066
34066
  * @param uniforms - Custom uniforms to use to augment the built-in ones.
@@ -34098,7 +34098,7 @@ class Cn {
34098
34098
  */
34099
34099
  static from(A, e, t) {
34100
34100
  const i = $n.from(A, e);
34101
- return new Cn(i, t);
34101
+ return new xn(i, t);
34102
34102
  }
34103
34103
  }
34104
34104
  class HN {
@@ -34126,7 +34126,7 @@ class HN {
34126
34126
  translationMatrix: new Be(),
34127
34127
  default: this.defaultGroupCache[A]
34128
34128
  };
34129
- return new Cn(this.programCache[A], e);
34129
+ return new xn(this.programCache[A], e);
34130
34130
  }
34131
34131
  generateSampleSrc(A) {
34132
34132
  let e = "";
@@ -34530,7 +34530,7 @@ void main(void)
34530
34530
  vTextureCoord = filterTextureCoord();
34531
34531
  }
34532
34532
  `;
34533
- const n0 = class Ql extends Cn {
34533
+ const n0 = class Ql extends xn {
34534
34534
  /**
34535
34535
  * @param vertexSrc - The source of the vertex shader.
34536
34536
  * @param fragmentSrc - The source of the fragment shader.
@@ -34945,7 +34945,7 @@ class r0 {
34945
34945
  return this.colorTextures[A] = e || new se(null, {
34946
34946
  scaleMode: Xn.NEAREST,
34947
34947
  resolution: 1,
34948
- mipmap: bn.OFF,
34948
+ mipmap: _n.OFF,
34949
34949
  width: this.width,
34950
34950
  height: this.height
34951
34951
  }), this.dirtyId++, this.dirtyFormat++, this;
@@ -34960,7 +34960,7 @@ class r0 {
34960
34960
  resolution: 1,
34961
34961
  width: this.width,
34962
34962
  height: this.height,
34963
- mipmap: bn.OFF,
34963
+ mipmap: _n.OFF,
34964
34964
  format: PA.DEPTH_COMPONENT,
34965
34965
  type: ZA.UNSIGNED_SHORT
34966
34966
  }), this.dirtyId++, this.dirtyFormat++, this;
@@ -35018,7 +35018,7 @@ class i_ extends se {
35018
35018
  const e = arguments[0], t = arguments[1], i = arguments[2], r = arguments[3];
35019
35019
  A = { width: e, height: t, scaleMode: i, resolution: r };
35020
35020
  }
35021
- A.width = A.width ?? 100, A.height = A.height ?? 100, A.multisample ?? (A.multisample = tt.NONE), super(null, A), this.mipmap = bn.OFF, this.valid = !0, this._clear = new qe([0, 0, 0, 0]), this.framebuffer = new r0(this.realWidth, this.realHeight).addColorTexture(0, this), this.framebuffer.multisample = A.multisample, this.maskStack = [], this.filterStack = [{}];
35021
+ A.width = A.width ?? 100, A.height = A.height ?? 100, A.multisample ?? (A.multisample = tt.NONE), super(null, A), this.mipmap = _n.OFF, this.valid = !0, this._clear = new qe([0, 0, 0, 0]), this.framebuffer = new r0(this.realWidth, this.realHeight).addColorTexture(0, this), this.framebuffer.multisample = A.multisample, this.maskStack = [], this.filterStack = [{}];
35022
35022
  }
35023
35023
  /** Color when clearning the texture. */
35024
35024
  set clearColor(A) {
@@ -35298,7 +35298,7 @@ class HA extends Yc {
35298
35298
  if (this.baseTexture) {
35299
35299
  if (A) {
35300
35300
  const { resource: e } = this.baseTexture;
35301
- e != null && e.url && hn[e.url] && HA.removeFromCache(e.url), this.baseTexture.destroy();
35301
+ e != null && e.url && un[e.url] && HA.removeFromCache(e.url), this.baseTexture.destroy();
35302
35302
  }
35303
35303
  this.baseTexture.off("loaded", this.onBaseTextureUpdated, this), this.baseTexture.off("update", this.onBaseTextureUpdated, this), this.baseTexture = null;
35304
35304
  }
@@ -35356,7 +35356,7 @@ class HA extends Yc {
35356
35356
  }
35357
35357
  r = A._pixiId;
35358
35358
  }
35359
- let s = hn[r];
35359
+ let s = un[r];
35360
35360
  if (i && t && !s)
35361
35361
  throw new Error(`The cacheId "${r}" does not exist in TextureCache.`);
35362
35362
  return !s && !(A instanceof se) ? (e.resolution || (e.resolution = nr(A)), s = new HA(new se(A, e)), s.baseTexture.cacheId = r, se.addToCache(s.baseTexture, r), HA.addToCache(s, r)) : !s && A instanceof se && (s = new HA(A), HA.addToCache(s, r)), s;
@@ -35420,7 +35420,7 @@ class HA extends Yc {
35420
35420
  * @param id - The id that the Texture will be stored against.
35421
35421
  */
35422
35422
  static addToCache(A, e) {
35423
- e && (A.textureCacheIds.includes(e) || A.textureCacheIds.push(e), hn[e] && hn[e] !== A && console.warn(`Texture added to the cache with an id [${e}] that already had an entry`), hn[e] = A);
35423
+ e && (A.textureCacheIds.includes(e) || A.textureCacheIds.push(e), un[e] && un[e] !== A && console.warn(`Texture added to the cache with an id [${e}] that already had an entry`), un[e] = A);
35424
35424
  }
35425
35425
  /**
35426
35426
  * Remove a Texture from the global TextureCache.
@@ -35429,14 +35429,14 @@ class HA extends Yc {
35429
35429
  */
35430
35430
  static removeFromCache(A) {
35431
35431
  if (typeof A == "string") {
35432
- const e = hn[A];
35432
+ const e = un[A];
35433
35433
  if (e) {
35434
35434
  const t = e.textureCacheIds.indexOf(A);
35435
- return t > -1 && e.textureCacheIds.splice(t, 1), delete hn[A], e;
35435
+ return t > -1 && e.textureCacheIds.splice(t, 1), delete un[A], e;
35436
35436
  }
35437
35437
  } else if (A != null && A.textureCacheIds) {
35438
35438
  for (let e = 0; e < A.textureCacheIds.length; ++e)
35439
- hn[A.textureCacheIds[e]] === A && delete hn[A.textureCacheIds[e]];
35439
+ un[A.textureCacheIds[e]] === A && delete un[A.textureCacheIds[e]];
35440
35440
  return A.textureCacheIds.length = 0, A;
35441
35441
  }
35442
35442
  return null;
@@ -35805,7 +35805,7 @@ class o_ {
35805
35805
  this.globalUniforms.update();
35806
35806
  const a = A[A.length - 1];
35807
35807
  if (this.renderer.framebuffer.blit(), t.length === 1)
35808
- t[0].apply(this, e.renderTexture, a.renderTexture, gn.BLEND, e), this.returnFilterTexture(e.renderTexture);
35808
+ t[0].apply(this, e.renderTexture, a.renderTexture, mn.BLEND, e), this.returnFilterTexture(e.renderTexture);
35809
35809
  else {
35810
35810
  let l = e.renderTexture, u = this.getOptimalFilterTexture(
35811
35811
  l.width,
@@ -35819,11 +35819,11 @@ class o_ {
35819
35819
  l.width,
35820
35820
  l.height,
35821
35821
  e.resolution
35822
- ), u.filterFrame = l.filterFrame), t[c].apply(this, l, u, gn.CLEAR, e);
35822
+ ), u.filterFrame = l.filterFrame), t[c].apply(this, l, u, mn.CLEAR, e);
35823
35823
  const h = l;
35824
35824
  l = u, u = h;
35825
35825
  }
35826
- t[c].apply(this, l, a.renderTexture, gn.BLEND, e), c > 1 && e.multisample > 1 && this.returnFilterTexture(e.renderTexture), this.returnFilterTexture(l), this.returnFilterTexture(u);
35826
+ t[c].apply(this, l, a.renderTexture, mn.BLEND, e), c > 1 && e.multisample > 1 && this.returnFilterTexture(e.renderTexture), this.returnFilterTexture(l), this.returnFilterTexture(u);
35827
35827
  }
35828
35828
  e.clear(), this.statePool.push(e);
35829
35829
  }
@@ -35832,7 +35832,7 @@ class o_ {
35832
35832
  * @param filterTexture - renderTexture to bind, should belong to filter pool or filter stack
35833
35833
  * @param clearMode - clearMode, by default its CLEAR/YES. See {@link PIXI.CLEAR_MODES}
35834
35834
  */
35835
- bindAndClear(A, e = gn.CLEAR) {
35835
+ bindAndClear(A, e = mn.CLEAR) {
35836
35836
  const {
35837
35837
  renderTexture: t,
35838
35838
  state: i
@@ -35847,7 +35847,7 @@ class o_ {
35847
35847
  this.activeState.bindingDestinationFrame
35848
35848
  );
35849
35849
  const r = i.stateId & 1 || this.forceClear;
35850
- (e === gn.CLEAR || e === gn.BLIT && r) && this.renderer.framebuffer.clear(0, 0, 0, 0);
35850
+ (e === mn.CLEAR || e === mn.BLIT && r) && this.renderer.framebuffer.clear(0, 0, 0, 0);
35851
35851
  }
35852
35852
  /**
35853
35853
  * Draws a filter using the default rendering process.
@@ -35860,7 +35860,7 @@ class o_ {
35860
35860
  */
35861
35861
  applyFilter(A, e, t, i) {
35862
35862
  const r = this.renderer;
35863
- r.state.set(A.state), this.bindAndClear(t, i), A.uniforms.uSampler = e, A.uniforms.filterGlobals = this.globalUniforms, r.shader.bind(A), A.legacy = !!A.program.attributeData.aTextureCoord, A.legacy ? (this.quadUv.map(e._frame, e.filterFrame), r.geometry.bind(this.quadUv), r.geometry.draw(vn.TRIANGLES)) : (r.geometry.bind(this.quad), r.geometry.draw(vn.TRIANGLE_STRIP));
35863
+ r.state.set(A.state), this.bindAndClear(t, i), A.uniforms.uSampler = e, A.uniforms.filterGlobals = this.globalUniforms, r.shader.bind(A), A.legacy = !!A.program.attributeData.aTextureCoord, A.legacy ? (this.quadUv.map(e._frame, e.filterFrame), r.geometry.bind(this.quadUv), r.geometry.draw(yn.TRIANGLES)) : (r.geometry.bind(this.quad), r.geometry.draw(yn.TRIANGLE_STRIP));
35864
35864
  }
35865
35865
  /**
35866
35866
  * Multiply _input normalized coordinates_ to this matrix to get _sprite texture normalized coordinates_.
@@ -36357,7 +36357,7 @@ class l_ {
36357
36357
  const d = c[m];
36358
36358
  s.bind(d), t && d._glBuffers[r].refCount++;
36359
36359
  }
36360
- return this.activateVao(A, o), l[o.id] = u, l[a] = u, i.bindVertexArray(null), s.unbind(wn.ARRAY_BUFFER), u;
36360
+ return this.activateVao(A, o), l[o.id] = u, l[a] = u, i.bindVertexArray(null), s.unbind(Cn.ARRAY_BUFFER), u;
36361
36361
  }
36362
36362
  /**
36363
36363
  * Disposes geometry.
@@ -38160,7 +38160,7 @@ class x_ {
38160
38160
  updateTextureStyle(A) {
38161
38161
  var t;
38162
38162
  const e = A._glTextures[this.CONTEXT_UID];
38163
- e && ((A.mipmap === bn.POW2 || this.webGLVersion !== 2) && !A.isPowerOfTwo ? e.mipmap = !1 : e.mipmap = A.mipmap >= 1, this.webGLVersion !== 2 && !A.isPowerOfTwo ? e.wrapMode = Gr.CLAMP : e.wrapMode = A.wrapMode, (t = A.resource) != null && t.style(this.renderer, A, e) || this.setStyle(A, e), e.dirtyStyleId = A.dirtyStyleId);
38163
+ e && ((A.mipmap === _n.POW2 || this.webGLVersion !== 2) && !A.isPowerOfTwo ? e.mipmap = !1 : e.mipmap = A.mipmap >= 1, this.webGLVersion !== 2 && !A.isPowerOfTwo ? e.wrapMode = Gr.CLAMP : e.wrapMode = A.wrapMode, (t = A.resource) != null && t.style(this.renderer, A, e) || this.setStyle(A, e), e.dirtyStyleId = A.dirtyStyleId);
38164
38164
  }
38165
38165
  /**
38166
38166
  * Set style for texture
@@ -38170,7 +38170,7 @@ class x_ {
38170
38170
  */
38171
38171
  setStyle(A, e) {
38172
38172
  const t = this.gl;
38173
- if (e.mipmap && A.mipmap !== bn.ON_MANUAL && t.generateMipmap(A.target), t.texParameteri(A.target, t.TEXTURE_WRAP_S, e.wrapMode), t.texParameteri(A.target, t.TEXTURE_WRAP_T, e.wrapMode), e.mipmap) {
38173
+ if (e.mipmap && A.mipmap !== _n.ON_MANUAL && t.generateMipmap(A.target), t.texParameteri(A.target, t.TEXTURE_WRAP_S, e.wrapMode), t.texParameteri(A.target, t.TEXTURE_WRAP_T, e.wrapMode), e.mipmap) {
38174
38174
  t.texParameteri(A.target, t.TEXTURE_MIN_FILTER, A.scaleMode === Xn.LINEAR ? t.LINEAR_MIPMAP_LINEAR : t.NEAREST_MIPMAP_NEAREST);
38175
38175
  const i = this.renderer.context.extensions.anisotropicFiltering;
38176
38176
  if (i && A.anisotropicLevel > 0 && A.scaleMode === Xn.LINEAR) {
@@ -41357,9 +41357,9 @@ class f0 extends kt {
41357
41357
  else {
41358
41358
  const r = A.getFilterTexture(), s = A.renderer;
41359
41359
  let o = e, a = r;
41360
- this.state.blend = !1, A.applyFilter(this, o, a, gn.CLEAR);
41360
+ this.state.blend = !1, A.applyFilter(this, o, a, mn.CLEAR);
41361
41361
  for (let l = 1; l < this.passes - 1; l++) {
41362
- A.bindAndClear(o, gn.BLIT), this.uniforms.uSampler = a;
41362
+ A.bindAndClear(o, mn.BLIT), this.uniforms.uSampler = a;
41363
41363
  const u = a;
41364
41364
  a = o, o = u, s.shader.bind(this), s.geometry.draw(5);
41365
41365
  }
@@ -41409,7 +41409,7 @@ class ZB extends kt {
41409
41409
  const r = Math.abs(this.blurXFilter.strength), s = Math.abs(this.blurYFilter.strength);
41410
41410
  if (r && s) {
41411
41411
  const o = A.getFilterTexture();
41412
- this.blurXFilter.apply(A, e, o, gn.CLEAR), this.blurYFilter.apply(A, o, t, i), A.returnFilterTexture(o);
41412
+ this.blurXFilter.apply(A, e, o, mn.CLEAR), this.blurYFilter.apply(A, o, t, i), A.returnFilterTexture(o);
41413
41413
  } else
41414
41414
  s ? this.blurYFilter.apply(A, e, t, i) : this.blurXFilter.apply(A, e, t, i);
41415
41415
  }
@@ -44901,11 +44901,11 @@ ${c}`);
44901
44901
  this._parsersValidated = !0, this._parserHash = this._parsers.filter((A) => A.name).reduce((A, e) => (A[e.name] && console.warn(`[Assets] loadParser name conflict "${e.name}"`), { ...A, [e.name]: e }), {});
44902
44902
  }
44903
44903
  }
44904
- var nn = /* @__PURE__ */ ((n) => (n[n.Low = 0] = "Low", n[n.Normal = 1] = "Normal", n[n.High = 2] = "High", n))(nn || {});
44904
+ var rn = /* @__PURE__ */ ((n) => (n[n.Low = 0] = "Low", n[n.Normal = 1] = "Normal", n[n.High = 2] = "High", n))(rn || {});
44905
44905
  const Iz = ".json", bz = "application/json", _z = {
44906
44906
  extension: {
44907
44907
  type: OA.LoadParser,
44908
- priority: nn.Low
44908
+ priority: rn.Low
44909
44909
  },
44910
44910
  name: "loadJson",
44911
44911
  test(n) {
@@ -44920,7 +44920,7 @@ const Sz = ".txt", Mz = "text/plain", Pz = {
44920
44920
  name: "loadTxt",
44921
44921
  extension: {
44922
44922
  type: OA.LoadParser,
44923
- priority: nn.Low
44923
+ priority: rn.Low
44924
44924
  },
44925
44925
  test(n) {
44926
44926
  return el(n, Mz) || As(n, Sz);
@@ -44966,7 +44966,7 @@ function Nz(n) {
44966
44966
  const Bz = {
44967
44967
  extension: {
44968
44968
  type: OA.LoadParser,
44969
- priority: nn.Low
44969
+ priority: rn.Low
44970
44970
  },
44971
44971
  name: "loadWebFont",
44972
44972
  test(n) {
@@ -45137,7 +45137,7 @@ const Cd = {
45137
45137
  name: "loadTextures",
45138
45138
  extension: {
45139
45139
  type: OA.LoadParser,
45140
- priority: nn.High
45140
+ priority: rn.High
45141
45141
  },
45142
45142
  config: {
45143
45143
  preferWorkers: !0,
@@ -45168,7 +45168,7 @@ WA.add(Cd);
45168
45168
  const Gz = ".svg", Hz = "image/svg+xml", Yz = {
45169
45169
  extension: {
45170
45170
  type: OA.LoadParser,
45171
- priority: nn.High
45171
+ priority: rn.High
45172
45172
  },
45173
45173
  name: "loadSVG",
45174
45174
  test(n) {
@@ -45201,7 +45201,7 @@ const Uz = [".mp4", ".m4v", ".webm", ".ogv"], Wz = [
45201
45201
  name: "loadVideo",
45202
45202
  extension: {
45203
45203
  type: OA.LoadParser,
45204
- priority: nn.High
45204
+ priority: rn.High
45205
45205
  },
45206
45206
  config: {
45207
45207
  defaultAutoPlay: !0,
@@ -46115,18 +46115,18 @@ const Yf = {
46115
46115
  36494: 1,
46116
46116
  36495: 1
46117
46117
  };
46118
- let un, na;
46118
+ let fn, na;
46119
46119
  function vx() {
46120
46120
  na = {
46121
- s3tc: un.getExtension("WEBGL_compressed_texture_s3tc"),
46122
- s3tc_sRGB: un.getExtension("WEBGL_compressed_texture_s3tc_srgb"),
46121
+ s3tc: fn.getExtension("WEBGL_compressed_texture_s3tc"),
46122
+ s3tc_sRGB: fn.getExtension("WEBGL_compressed_texture_s3tc_srgb"),
46123
46123
  /* eslint-disable-line camelcase */
46124
- etc: un.getExtension("WEBGL_compressed_texture_etc"),
46125
- etc1: un.getExtension("WEBGL_compressed_texture_etc1"),
46126
- pvrtc: un.getExtension("WEBGL_compressed_texture_pvrtc") || un.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),
46127
- atc: un.getExtension("WEBGL_compressed_texture_atc"),
46128
- astc: un.getExtension("WEBGL_compressed_texture_astc"),
46129
- bptc: un.getExtension("EXT_texture_compression_bptc")
46124
+ etc: fn.getExtension("WEBGL_compressed_texture_etc"),
46125
+ etc1: fn.getExtension("WEBGL_compressed_texture_etc1"),
46126
+ pvrtc: fn.getExtension("WEBGL_compressed_texture_pvrtc") || fn.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),
46127
+ atc: fn.getExtension("WEBGL_compressed_texture_atc"),
46128
+ astc: fn.getExtension("WEBGL_compressed_texture_astc"),
46129
+ bptc: fn.getExtension("EXT_texture_compression_bptc")
46130
46130
  };
46131
46131
  }
46132
46132
  const s9 = {
@@ -46136,7 +46136,7 @@ const s9 = {
46136
46136
  },
46137
46137
  test: async () => {
46138
46138
  const n = jA.ADAPTER.createCanvas().getContext("webgl");
46139
- return n ? (un = n, !0) : (console.warn("WebGL not available for compressed textures."), !1);
46139
+ return n ? (fn = n, !0) : (console.warn("WebGL not available for compressed textures."), !1);
46140
46140
  },
46141
46141
  add: async (n) => {
46142
46142
  na || vx();
@@ -46531,7 +46531,7 @@ function E9(n, A, e) {
46531
46531
  const L9 = {
46532
46532
  extension: {
46533
46533
  type: OA.LoadParser,
46534
- priority: nn.High
46534
+ priority: rn.High
46535
46535
  },
46536
46536
  name: "loadDDS",
46537
46537
  test(n) {
@@ -46540,7 +46540,7 @@ const L9 = {
46540
46540
  async load(n, A, e) {
46541
46541
  const t = await (await jA.ADAPTER.fetch(n)).arrayBuffer(), i = b9(t).map((r) => {
46542
46542
  const s = new se(r, {
46543
- mipmap: bn.OFF,
46543
+ mipmap: _n.OFF,
46544
46544
  alphaMode: Qt.NO_PREMULTIPLIED_ALPHA,
46545
46545
  resolution: nr(n),
46546
46546
  ...A.data
@@ -46557,7 +46557,7 @@ WA.add(L9);
46557
46557
  const O9 = {
46558
46558
  extension: {
46559
46559
  type: OA.LoadParser,
46560
- priority: nn.High
46560
+ priority: rn.High
46561
46561
  },
46562
46562
  name: "loadKTX",
46563
46563
  test(n) {
@@ -46565,7 +46565,7 @@ const O9 = {
46565
46565
  },
46566
46566
  async load(n, A, e) {
46567
46567
  const t = await (await jA.ADAPTER.fetch(n)).arrayBuffer(), { compressed: i, uncompressed: r, kvData: s } = P9(n, t), o = i ?? r, a = {
46568
- mipmap: bn.OFF,
46568
+ mipmap: _n.OFF,
46569
46569
  alphaMode: Qt.NO_PREMULTIPLIED_ALPHA,
46570
46570
  resolution: nr(n),
46571
46571
  ...A.data
@@ -47608,12 +47608,12 @@ const Ro = new VA(), Y_ = class U_ extends Xb {
47608
47608
  this.drawCalls.length = 0;
47609
47609
  const e = this.colors, t = this.textureIds;
47610
47610
  let i = Mu.pop();
47611
- i || (i = new $m(), i.texArray = new i0()), i.texArray.count = 0, i.start = 0, i.size = 0, i.type = vn.TRIANGLES;
47612
- let r = 0, s = null, o = 0, a = !1, l = vn.TRIANGLES, u = 0;
47611
+ i || (i = new $m(), i.texArray = new i0()), i.texArray.count = 0, i.start = 0, i.size = 0, i.type = yn.TRIANGLES;
47612
+ let r = 0, s = null, o = 0, a = !1, l = yn.TRIANGLES, u = 0;
47613
47613
  this.drawCalls.push(i);
47614
47614
  for (let c = 0; c < this.batches.length; c++) {
47615
47615
  const h = this.batches[c], f = 8, p = h.style, m = p.texture.baseTexture;
47616
- a !== !!p.native && (a = !!p.native, l = a ? vn.LINES : vn.TRIANGLES, s = null, r = f, A++), s !== m && (s = m, m._batchEnabled !== A && (r === f && (A++, r = 0, i.size > 0 && (i = Mu.pop(), i || (i = new $m(), i.texArray = new i0()), this.drawCalls.push(i)), i.start = u, i.size = 0, i.texArray.count = 0, i.type = l), m.touched = 1, m._batchEnabled = A, m._batchLocation = r, m.wrapMode = Gr.REPEAT, i.texArray.elements[i.texArray.count++] = m, r++)), i.size += h.size, u += h.size, o = m._batchLocation, this.addColors(e, p.color, p.alpha, h.attribSize, h.attribStart), this.addTextureIds(t, o, h.attribSize, h.attribStart);
47616
+ a !== !!p.native && (a = !!p.native, l = a ? yn.LINES : yn.TRIANGLES, s = null, r = f, A++), s !== m && (s = m, m._batchEnabled !== A && (r === f && (A++, r = 0, i.size > 0 && (i = Mu.pop(), i || (i = new $m(), i.texArray = new i0()), this.drawCalls.push(i)), i.start = u, i.size = 0, i.texArray.count = 0, i.type = l), m.touched = 1, m._batchEnabled = A, m._batchLocation = r, m.wrapMode = Gr.REPEAT, i.texArray.elements[i.texArray.count++] = m, r++)), i.size += h.size, u += h.size, o = m._batchLocation, this.addColors(e, p.color, p.alpha, h.attribSize, h.attribStart), this.addTextureIds(t, o, h.attribSize, h.attribStart);
47617
47617
  }
47618
47618
  se._globalBatch = A, this.packAttributes();
47619
47619
  }
@@ -48212,7 +48212,7 @@ const bg = {}, x0 = class cf extends qi {
48212
48212
  translationMatrix: new Be(),
48213
48213
  default: An.from({ uSamplers: r }, !0)
48214
48214
  }, o = A.plugins[t]._shader.program;
48215
- bg[t] = new Cn(o, s);
48215
+ bg[t] = new xn(o, s);
48216
48216
  }
48217
48217
  e = bg[t];
48218
48218
  }
@@ -48344,7 +48344,7 @@ const _g = new VA(), Mx = new Os(), J_ = class Z_ extends qi {
48344
48344
  * if no state is provided, uses {@link PIXI.State.for2d} to create a 2D state for PixiJS.
48345
48345
  * @param drawMode - The drawMode, can be any of the {@link PIXI.DRAW_MODES} constants.
48346
48346
  */
48347
- constructor(A, e, t, i = vn.TRIANGLES) {
48347
+ constructor(A, e, t, i = yn.TRIANGLES) {
48348
48348
  super(), this.geometry = A, this.shader = e, this.state = t || Tn.for2d(), this.drawMode = i, this.start = 0, this.size = 0, this.uvs = null, this.indices = null, this.vertexData = new Float32Array(1), this.vertexDirty = -1, this._transformID = -1, this._roundPixels = jA.ROUND_PIXELS, this.batchUvs = null;
48349
48349
  }
48350
48350
  /**
@@ -48437,7 +48437,7 @@ const _g = new VA(), Mx = new Os(), J_ = class Z_ extends qi {
48437
48437
  */
48438
48438
  _render(A) {
48439
48439
  const e = this.geometry.buffers[0].data;
48440
- this.shader.batchable && this.drawMode === vn.TRIANGLES && e.length < Z_.BATCHABLE_SIZE * 2 ? this._renderToBatch(A) : this._renderDefault(A);
48440
+ this.shader.batchable && this.drawMode === yn.TRIANGLES && e.length < Z_.BATCHABLE_SIZE * 2 ? this._renderToBatch(A) : this._renderDefault(A);
48441
48441
  }
48442
48442
  /**
48443
48443
  * Standard non-batching way of rendering.
@@ -48555,7 +48555,7 @@ void main(void)
48555
48555
  vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;
48556
48556
  }
48557
48557
  `;
48558
- class Tx extends Cn {
48558
+ class Tx extends xn {
48559
48559
  /**
48560
48560
  * @param uSampler - Texture that material uses to render.
48561
48561
  * @param options - Additional options
@@ -48807,7 +48807,7 @@ class X_ extends wd {
48807
48807
  uploadFunction: this.uploadTint,
48808
48808
  offset: 0
48809
48809
  }
48810
- ], this.shader = Cn.from(J9, W9, {}), this.state = Tn.for2d();
48810
+ ], this.shader = xn.from(J9, W9, {}), this.state = Tn.for2d();
48811
48811
  }
48812
48812
  /**
48813
48813
  * Renders the particle container object.
@@ -48945,7 +48945,7 @@ var Id = /* @__PURE__ */ ((n) => (n[n.LINEAR_VERTICAL = 0] = "LINEAR_VERTICAL",
48945
48945
  const Pu = {
48946
48946
  // TextMetrics requires getImageData readback for measuring fonts.
48947
48947
  willReadFrequently: !0
48948
- }, fn = class JA {
48948
+ }, dn = class JA {
48949
48949
  /**
48950
48950
  * Checking that we can use modern canvas 2D API.
48951
48951
  *
@@ -49294,10 +49294,10 @@ const Pu = {
49294
49294
  return JA.__context || (JA.__context = JA._canvas.getContext("2d", Pu)), JA.__context;
49295
49295
  }
49296
49296
  };
49297
- fn.METRICS_STRING = "|ÉqÅ", /** Baseline symbol for calculate font metrics. */
49298
- fn.BASELINE_SYMBOL = "M", /** Baseline multiplier for calculate font metrics. */
49299
- fn.BASELINE_MULTIPLIER = 1.4, /** Height multiplier for setting height of canvas to calculate font metrics. */
49300
- fn.HEIGHT_MULTIPLIER = 2, /**
49297
+ dn.METRICS_STRING = "|ÉqÅ", /** Baseline symbol for calculate font metrics. */
49298
+ dn.BASELINE_SYMBOL = "M", /** Baseline multiplier for calculate font metrics. */
49299
+ dn.BASELINE_MULTIPLIER = 1.4, /** Height multiplier for setting height of canvas to calculate font metrics. */
49300
+ dn.HEIGHT_MULTIPLIER = 2, /**
49301
49301
  * A Unicode "character", or "grapheme cluster", can be composed of multiple Unicode code points,
49302
49302
  * such as letters with diacritical marks (e.g. `'\u0065\u0301'`, letter e with acute)
49303
49303
  * or emojis with modifiers (e.g. `'\uD83E\uDDD1\u200D\uD83D\uDCBB'`, technologist).
@@ -49308,7 +49308,7 @@ fn.HEIGHT_MULTIPLIER = 2, /**
49308
49308
  * or [graphemer]{@link https://www.npmjs.com/package/graphemer} to create a polyfill. Since these libraries can be
49309
49309
  * relatively large in size to handle various Unicode grapheme clusters properly, PixiJS won't use them directly.
49310
49310
  */
49311
- fn.graphemeSegmenter = (() => {
49311
+ dn.graphemeSegmenter = (() => {
49312
49312
  if (typeof (Intl == null ? void 0 : Intl.Segmenter) == "function") {
49313
49313
  const n = new Intl.Segmenter();
49314
49314
  return (A) => [...n.segment(A)].map((e) => e.segment);
@@ -49320,15 +49320,15 @@ fn.graphemeSegmenter = (() => {
49320
49320
  * each character. However, this Chrome API is experimental and may not serve all cases yet.
49321
49321
  * @see PIXI.TextMetrics.experimentalLetterSpacingSupported
49322
49322
  */
49323
- fn.experimentalLetterSpacing = !1, /** Cache of {@see PIXI.TextMetrics.FontMetrics} objects. */
49324
- fn._fonts = {}, /** Cache of new line chars. */
49325
- fn._newlines = [
49323
+ dn.experimentalLetterSpacing = !1, /** Cache of {@see PIXI.TextMetrics.FontMetrics} objects. */
49324
+ dn._fonts = {}, /** Cache of new line chars. */
49325
+ dn._newlines = [
49326
49326
  10,
49327
49327
  // line feed
49328
49328
  13
49329
49329
  // carriage return
49330
49330
  ], /** Cache of breaking spaces. */
49331
- fn._breakingSpaces = [
49331
+ dn._breakingSpaces = [
49332
49332
  9,
49333
49333
  // character tabulation
49334
49334
  32,
@@ -49358,7 +49358,7 @@ fn._breakingSpaces = [
49358
49358
  12288
49359
49359
  // ideographic space
49360
49360
  ];
49361
- let Dr = fn;
49361
+ let Dr = dn;
49362
49362
  const Z9 = [
49363
49363
  "serif",
49364
49364
  "sans-serif",
@@ -50402,7 +50402,7 @@ class nS extends wd {
50402
50402
  /** Creates shaders when context is initialized. */
50403
50403
  contextChange() {
50404
50404
  const A = this.renderer, e = { globals: A.globalUniforms };
50405
- this.simpleShader = Cn.from(Ex, hR, e), this.shader = A.context.webGLVersion > 1 ? Cn.from(lR, aR, e) : Cn.from(Ex, cR, e);
50405
+ this.simpleShader = xn.from(Ex, hR, e), this.shader = A.context.webGLVersion > 1 ? xn.from(lR, aR, e) : xn.from(Ex, cR, e);
50406
50406
  }
50407
50407
  /**
50408
50408
  * @param {PIXI.TilingSprite} ts - tilingSprite to be rendered
@@ -50596,7 +50596,7 @@ const fR = {
50596
50596
  name: "spritesheetLoader",
50597
50597
  extension: {
50598
50598
  type: OA.LoadParser,
50599
- priority: nn.Normal
50599
+ priority: rn.Normal
50600
50600
  },
50601
50601
  async testParse(n, A) {
50602
50602
  return at.extname(A.src).toLowerCase() === ".json" && !!n.frames;
@@ -50885,7 +50885,7 @@ function mR(n) {
50885
50885
  throw new Error("[BitmapFont]: Empty set when resolving characters.");
50886
50886
  return A;
50887
50887
  }
50888
- const Sr = class dn {
50888
+ const Sr = class pn {
50889
50889
  /**
50890
50890
  * @param data
50891
50891
  * @param textures
@@ -50898,7 +50898,7 @@ const Sr = class dn {
50898
50898
  this._ownsTextures = t, this.font = i.face, this.size = i.size, this.lineHeight = r.lineHeight / a, this.chars = {}, this.pageTextures = l;
50899
50899
  for (let c = 0; c < A.page.length; c++) {
50900
50900
  const { id: h, file: f } = A.page[c];
50901
- l[h] = e instanceof Array ? e[c] : e[f], o != null && o.fieldType && o.fieldType !== "none" && (l[h].baseTexture.alphaMode = Qt.NO_PREMULTIPLIED_ALPHA, l[h].baseTexture.mipmap = bn.OFF);
50901
+ l[h] = e instanceof Array ? e[c] : e[f], o != null && o.fieldType && o.fieldType !== "none" && (l[h].baseTexture.alphaMode = Qt.NO_PREMULTIPLIED_ALPHA, l[h].baseTexture.mipmap = _n.OFF);
50902
50902
  }
50903
50903
  for (let c = 0; c < A.char.length; c++) {
50904
50904
  const { id: h, page: f } = A.char[c];
@@ -50958,18 +50958,18 @@ const Sr = class dn {
50958
50958
  i = s.parse(A);
50959
50959
  }
50960
50960
  e instanceof HA && (e = [e]);
50961
- const r = new dn(i, e, t);
50962
- return dn.available[r.font] = r, r;
50961
+ const r = new pn(i, e, t);
50962
+ return pn.available[r.font] = r, r;
50963
50963
  }
50964
50964
  /**
50965
50965
  * Remove bitmap font by name.
50966
50966
  * @param name - Name of the font to uninstall.
50967
50967
  */
50968
50968
  static uninstall(A) {
50969
- const e = dn.available[A];
50969
+ const e = pn.available[A];
50970
50970
  if (!e)
50971
50971
  throw new Error(`No font found named '${A}'`);
50972
- e.destroy(), delete dn.available[A];
50972
+ e.destroy(), delete pn.available[A];
50973
50973
  }
50974
50974
  /**
50975
50975
  * Generates a bitmap-font for the given style and character set. This does not support
@@ -51018,7 +51018,7 @@ const Sr = class dn {
51018
51018
  textureWidth: o,
51019
51019
  textureHeight: a,
51020
51020
  ...l
51021
- } = Object.assign({}, dn.defaultOptions, t), u = mR(i), c = e instanceof Jr ? e : new Jr(e), h = o, f = new Jf();
51021
+ } = Object.assign({}, pn.defaultOptions, t), u = mR(i), c = e instanceof Jr ? e : new Jr(e), h = o, f = new Jf();
51022
51022
  f.info[0] = {
51023
51023
  face: c.fontFamily,
51024
51024
  size: c.fontSize
@@ -51071,8 +51071,8 @@ const Sr = class dn {
51071
51071
  });
51072
51072
  }
51073
51073
  }
51074
- const C = new dn(f, w, !0);
51075
- return dn.available[A] !== void 0 && dn.uninstall(A), dn.available[A] = C, C;
51074
+ const C = new pn(f, w, !0);
51075
+ return pn.available[A] !== void 0 && pn.uninstall(A), pn.available[A] = C, C;
51076
51076
  }
51077
51077
  };
51078
51078
  Sr.ALPHA = [["a", "z"], ["A", "Z"], " "], /**
@@ -51476,7 +51476,7 @@ wR.styleDefaults = {
51476
51476
  const CR = [".xml", ".fnt"], xR = {
51477
51477
  extension: {
51478
51478
  type: OA.LoadParser,
51479
- priority: nn.Normal
51479
+ priority: rn.Normal
51480
51480
  },
51481
51481
  name: "loadBitmapFont",
51482
51482
  test(n) {
@@ -53220,10 +53220,10 @@ let SR = class {
53220
53220
  this.sound.play();
53221
53221
  }
53222
53222
  };
53223
- const _n = (n) => {
53223
+ const tn = (n) => {
53224
53224
  var A, e;
53225
53225
  for (; n.children.length > 0; )
53226
- _n(n.children[0]), (A = n.children[0]) == null || A.removeFromParent();
53226
+ tn(n.children[0]), (A = n.children[0]) == null || A.removeFromParent();
53227
53227
  if (n instanceof Me)
53228
53228
  try {
53229
53229
  (e = n.geometry) == null || e.dispose();
@@ -53244,7 +53244,7 @@ function cS(n) {
53244
53244
  return n.traverse((f) => {
53245
53245
  if (f.isMesh && f.geometry) {
53246
53246
  const p = f;
53247
- if (p.material.userData.isLOGO)
53247
+ if (p.userData.ignoreSize || p.material.userData.isLOGO)
53248
53248
  return;
53249
53249
  p.geometry.computeBoundingBox();
53250
53250
  let m = p.geometry.attributes.position;
@@ -54498,11 +54498,11 @@ class lk {
54498
54498
  if (A.isPoints) {
54499
54499
  const o = "PointsMaterial:" + t.uuid;
54500
54500
  let a = this.cache.get(o);
54501
- a || (a = new z2(), yn.prototype.copy.call(a, t), a.color.copy(t.color), a.map = t.map, a.sizeAttenuation = !1, this.cache.add(o, a)), t = a;
54501
+ a || (a = new z2(), wn.prototype.copy.call(a, t), a.color.copy(t.color), a.map = t.map, a.sizeAttenuation = !1, this.cache.add(o, a)), t = a;
54502
54502
  } else if (A.isLine) {
54503
54503
  const o = "LineBasicMaterial:" + t.uuid;
54504
54504
  let a = this.cache.get(o);
54505
- a || (a = new ld(), yn.prototype.copy.call(a, t), a.color.copy(t.color), a.map = t.map, this.cache.add(o, a)), t = a;
54505
+ a || (a = new ld(), wn.prototype.copy.call(a, t), a.color.copy(t.color), a.map = t.map, this.cache.add(o, a)), t = a;
54506
54506
  }
54507
54507
  if (i || r || s) {
54508
54508
  let o = "ClonedMaterial:" + t.uuid + ":";
@@ -54780,7 +54780,7 @@ class lk {
54780
54780
  const l = (u) => {
54781
54781
  const c = /* @__PURE__ */ new Map();
54782
54782
  for (const [h, f] of i.associations)
54783
- (h instanceof yn || h instanceof ct) && c.set(h, f);
54783
+ (h instanceof wn || h instanceof ct) && c.set(h, f);
54784
54784
  return u.traverse((h) => {
54785
54785
  const f = i.associations.get(h);
54786
54786
  f != null && c.set(h, f);
@@ -57216,7 +57216,7 @@ const ej = { attribute: !0, type: String, converter: Qf, reflect: !1, hasChanged
57216
57216
  }
57217
57217
  throw Error("Unsupported decorator location: " + t);
57218
57218
  };
57219
- function rn(n) {
57219
+ function sn(n) {
57220
57220
  return (A, e) => typeof e == "object" ? tj(n, A, e) : ((t, i, r) => {
57221
57221
  const s = i.hasOwnProperty(r);
57222
57222
  return i.constructor.createProperty(r, s ? { ...t, wrapped: !0 } : t), s ? Object.getOwnPropertyDescriptor(i, r) : void 0;
@@ -57228,7 +57228,7 @@ function rn(n) {
57228
57228
  * SPDX-License-Identifier: BSD-3-Clause
57229
57229
  */
57230
57230
  function tl(n) {
57231
- return rn({ ...n, state: !0, attribute: !1 });
57231
+ return sn({ ...n, state: !0, attribute: !1 });
57232
57232
  }
57233
57233
  /**
57234
57234
  * @license
@@ -57358,34 +57358,34 @@ di([
57358
57358
  tl()
57359
57359
  ], qt.prototype, "_showDialog", 2);
57360
57360
  di([
57361
- rn({ type: Boolean })
57361
+ sn({ type: Boolean })
57362
57362
  ], qt.prototype, "selected", 2);
57363
57363
  di([
57364
- rn({ type: Boolean })
57364
+ sn({ type: Boolean })
57365
57365
  ], qt.prototype, "hasError", 2);
57366
57366
  di([
57367
- rn({ type: Boolean })
57367
+ sn({ type: Boolean })
57368
57368
  ], qt.prototype, "canInstall", 2);
57369
57369
  di([
57370
- rn({ type: Boolean })
57370
+ sn({ type: Boolean })
57371
57371
  ], qt.prototype, "hide", 2);
57372
57372
  di([
57373
- rn({ type: Boolean })
57373
+ sn({ type: Boolean })
57374
57374
  ], qt.prototype, "disable", 2);
57375
57375
  di([
57376
- rn({ type: Boolean })
57376
+ sn({ type: Boolean })
57377
57377
  ], qt.prototype, "filled", 2);
57378
57378
  di([
57379
- rn({ type: Object })
57379
+ sn({ type: Object })
57380
57380
  ], qt.prototype, "allFunctions", 2);
57381
57381
  di([
57382
- rn({ type: Object })
57382
+ sn({ type: Object })
57383
57383
  ], qt.prototype, "functions", 2);
57384
57384
  di([
57385
- rn({ type: String })
57385
+ sn({ type: String })
57386
57386
  ], qt.prototype, "deviceName", 2);
57387
57387
  di([
57388
- rn()
57388
+ sn()
57389
57389
  ], qt.prototype, "slot", 2);
57390
57390
  qt = di([
57391
57391
  Md("slot-item")
@@ -57521,7 +57521,7 @@ class E0 extends bv {
57521
57521
  }
57522
57522
  clearSlot() {
57523
57523
  this._bracketSlots = [], this._slotContainer.children.forEach((A) => {
57524
- A.removeFromParent(), _n(A);
57524
+ A.removeFromParent(), tn(A);
57525
57525
  }), this._slotUI.filled = !1, this.deviceInfo = void 0, this._slotUI.deviceName = "", this.holeTarget && (this.holeTarget.visible = !0);
57526
57526
  }
57527
57527
  enable() {
@@ -57563,7 +57563,7 @@ class E0 extends bv {
57563
57563
  this._canInstall = A, this._slotUI.canInstall = A;
57564
57564
  }
57565
57565
  dispose() {
57566
- cancelAnimationFrame(this._timer), this.clearSlot(), this._emitter.removeAllListeners(), _n(this._slotContainer), this.element.remove();
57566
+ cancelAnimationFrame(this._timer), this.clearSlot(), this._emitter.removeAllListeners(), tn(this._slotContainer), this.element.remove();
57567
57567
  }
57568
57568
  render(A) {
57569
57569
  const e = this.element.style.transform, t = /translate\(-?\d*\.?\d*%?,?\s-?\d*\.?\d*%?\)\s*translate\((-?\d*\.?\d*)px,\s*(-?\d*\.?\d*)px\)/.exec(e);
@@ -58516,9 +58516,9 @@ function gj() {
58516
58516
  for (var At = [], ft = 0; ft < ne.length; ft++) {
58517
58517
  var Nt = ne[ft];
58518
58518
  if (!Nt._startsWithPDI || Nt._startsWithPDI && !wA.has(Nt._start)) {
58519
- for (var $t = [oe = Nt], sn = void 0; oe && oe._endsWithIsolInit && (sn = wA.get(oe._end)) != null; )
58519
+ for (var $t = [oe = Nt], on = void 0; oe && oe._endsWithIsolInit && (on = wA.get(oe._end)) != null; )
58520
58520
  for (var pi = ft + 1; pi < ne.length; pi++)
58521
- if (ne[pi]._start === sn) {
58521
+ if (ne[pi]._start === on) {
58522
58522
  $t.push(oe = ne[pi]);
58523
58523
  break;
58524
58524
  }
@@ -58560,10 +58560,10 @@ function gj() {
58560
58560
  }
58561
58561
  }
58562
58562
  if (eA.get(b))
58563
- for (var on = 0; on < bA.length; on++) {
58564
- var De = bA[on];
58563
+ for (var an = 0; an < bA.length; an++) {
58564
+ var De = bA[an];
58565
58565
  if (F[De] & b)
58566
- for (var mi = on - 1; mi >= -1; mi--) {
58566
+ for (var mi = an - 1; mi >= -1; mi--) {
58567
58567
  var sl = mi === -1 ? re : F[bA[mi]];
58568
58568
  if (sl & s) {
58569
58569
  sl === U && nA(De, P);
@@ -58580,11 +58580,11 @@ function gj() {
58580
58580
  for (var Ue = 1; Ue < bA.length - 1; Ue++) {
58581
58581
  var vi = bA[Ue];
58582
58582
  if (F[vi] & (I | M)) {
58583
- for (var an = 0, St = 0, es = Ue - 1; es >= 0 && (an = F[bA[es]], !!(an & a)); es--)
58583
+ for (var ln = 0, St = 0, es = Ue - 1; es >= 0 && (ln = F[bA[es]], !!(ln & a)); es--)
58584
58584
  ;
58585
58585
  for (var ol = Ue + 1; ol < bA.length && (St = F[bA[ol]], !!(St & a)); ol++)
58586
58586
  ;
58587
- an === St && (F[vi] === I ? an === b : an & (b | P)) && nA(vi, an);
58587
+ ln === St && (F[vi] === I ? ln === b : ln & (b | P)) && nA(vi, ln);
58588
58588
  }
58589
58589
  }
58590
58590
  if (eA.get(b))
@@ -61042,10 +61042,10 @@ function Ej(n, A) {
61042
61042
  });
61043
61043
  const At = EA.x + nA, ft = EA.y + CA.baseline + fA;
61044
61044
  tA[NA * 2] = At, tA[NA * 2 + 1] = ft;
61045
- const Nt = At + hA.xMin * ie, $t = ft + hA.yMin * ie, sn = At + hA.xMax * ie, pi = ft + hA.yMax * ie;
61046
- Nt < AA[0] && (AA[0] = Nt), $t < AA[1] && (AA[1] = $t), sn > AA[2] && (AA[2] = sn), pi > AA[3] && (AA[3] = pi), NA % U === 0 && (GA = { start: NA, end: NA, rect: [1 / 0, 1 / 0, -1 / 0, -1 / 0] }, TA.push(GA)), GA.end++;
61045
+ const Nt = At + hA.xMin * ie, $t = ft + hA.yMin * ie, on = At + hA.xMax * ie, pi = ft + hA.yMax * ie;
61046
+ Nt < AA[0] && (AA[0] = Nt), $t < AA[1] && (AA[1] = $t), on > AA[2] && (AA[2] = on), pi > AA[3] && (AA[3] = pi), NA % U === 0 && (GA = { start: NA, end: NA, rect: [1 / 0, 1 / 0, -1 / 0, -1 / 0] }, TA.push(GA)), GA.end++;
61047
61047
  const xt = GA.rect;
61048
- if (Nt < xt[0] && (xt[0] = Nt), $t < xt[1] && (xt[1] = $t), sn > xt[2] && (xt[2] = sn), pi > xt[3] && (xt[3] = pi), V[NA] = ne, J[NA] = Le, k) {
61048
+ if (Nt < xt[0] && (xt[0] = Nt), $t < xt[1] && (xt[1] = $t), on > xt[2] && (xt[2] = on), pi > xt[3] && (xt[3] = pi), V[NA] = ne, J[NA] = Le, k) {
61049
61049
  const Dn = NA * 3;
61050
61050
  H[Dn] = qA >> 16 & 255, H[Dn + 1] = qA >> 8 & 255, H[Dn + 2] = qA & 255;
61051
61051
  }
@@ -62023,7 +62023,7 @@ class gf extends Ie {
62023
62023
  t *= 1.2, t < 5 && (t = 5), this._tw && this._tw.isPlaying() && this._tw.stop(), this._tw = new Ds.Tween(this._text).to({ fontSize: t / 100 }).duration(300).easing(Ds.Easing.Quintic.InOut).start();
62024
62024
  }
62025
62025
  dispose() {
62026
- this._tw.stop(), this._text.dispose(), _n(this);
62026
+ this._tw.stop(), this._text.dispose(), tn(this);
62027
62027
  }
62028
62028
  }
62029
62029
  class qS extends Ie {
@@ -62364,7 +62364,7 @@ class SI extends NS {
62364
62364
  height: t
62365
62365
  }) {
62366
62366
  var o;
62367
- this._goodsSize.length = A, this._goodsSize.width = e, this._goodsSize.height = t, this._goods && (_n(this._goods), this._goods.removeFromParent()), this.size.length = A + this._goodsLengthGap * 2 + 0.04, this.size.height = t + 0.115, this.size.width = e + this._goodsWidthGap * 2 + 0.07, this.setShapeKey("goodsWidth", e + this._goodsWidthGap * 2), this.setShapeKey("goodsLength", A + this._goodsLengthGap * 2), this._emitter.emit("size-change", this.size);
62367
+ this._goodsSize.length = A, this._goodsSize.width = e, this._goodsSize.height = t, this._goods && (tn(this._goods), this._goods.removeFromParent()), this.size.length = A + this._goodsLengthGap * 2 + 0.04, this.size.height = t + 0.115, this.size.width = e + this._goodsWidthGap * 2 + 0.07, this.setShapeKey("goodsWidth", e + this._goodsWidthGap * 2), this.setShapeKey("goodsLength", A + this._goodsLengthGap * 2), this._emitter.emit("size-change", this.size);
62368
62368
  const i = new Ys(this._goodsSize.width, t, this._goodsSize.length);
62369
62369
  i.translate(0, t / 2, 0);
62370
62370
  const r = new F2(i);
@@ -62388,7 +62388,7 @@ class SI extends NS {
62388
62388
  });
62389
62389
  }
62390
62390
  destroy() {
62391
- this._emitter.removeAllListeners(), this._emitter = null, _n(this);
62391
+ this._emitter.removeAllListeners(), this._emitter = null, tn(this);
62392
62392
  }
62393
62393
  }
62394
62394
  class gK extends NS {
@@ -62422,7 +62422,7 @@ class gK extends NS {
62422
62422
  this._row.items.forEach((e) => e.setGoodsSize(A));
62423
62423
  }
62424
62424
  destroy() {
62425
- this._emitter.removeAllListeners(), this._row.destroy(), _n(this);
62425
+ this._emitter.removeAllListeners(), this._row.destroy(), tn(this);
62426
62426
  }
62427
62427
  }
62428
62428
  class MI extends Ie {
@@ -62433,7 +62433,7 @@ class MI extends Ie {
62433
62433
  this._generate(A, e, t);
62434
62434
  }
62435
62435
  clearAll() {
62436
- _n(this);
62436
+ tn(this);
62437
62437
  }
62438
62438
  hide() {
62439
62439
  this.traverse((A) => A.visible = !1);
@@ -62729,7 +62729,7 @@ class mK extends Ie {
62729
62729
  this._shelfMaxLevel = A;
62730
62730
  const e = this._goodsSize.height + 0.12;
62731
62731
  this._shelves.delete(0), this._shelves.forEach((t) => {
62732
- _n(t), t.parent && t.removeFromParent();
62732
+ tn(t), t.parent && t.removeFromParent();
62733
62733
  }), this.goods = [], this._shelves.clear(), this._shelves.set(0, this._shelf), this._shelveAnimateTimes.length && this._shelveAnimateTimes.forEach((t) => window.clearTimeout(t)), this._shelveAnimateTimes = [];
62734
62734
  for (let t = 1; t < A; t++) {
62735
62735
  const i = window.setTimeout(() => {
@@ -62872,7 +62872,7 @@ class mK extends Ie {
62872
62872
  }
62873
62873
  }
62874
62874
  clean() {
62875
- this._emitter.removeAllListeners(), this._shelveAnimateTimes.length && this._shelveAnimateTimes.forEach((A) => window.clearTimeout(A)), this._shelveAnimateTimes = [], this.controllers.forEach((A) => A.dispose()), this.controllers = [], _n(this._container), this._levels.forEach((A) => A.destroy()), this._levels.clear(), this._slots = [], this._logos = [], this._skins = [], this._materialsCache.clear(), this.opacityCache = void 0, this._breathLights.forEach((A) => A.stop()), this._breathLights = [], this.sizeBox.reset();
62875
+ this._emitter.removeAllListeners(), this._shelveAnimateTimes.length && this._shelveAnimateTimes.forEach((A) => window.clearTimeout(A)), this._shelveAnimateTimes = [], this.controllers.forEach((A) => A.dispose()), this.controllers = [], tn(this._container), this._levels.forEach((A) => A.destroy()), this._levels.clear(), this._slots = [], this._logos = [], this._skins = [], this._materialsCache.clear(), this.opacityCache = void 0, this._breathLights.forEach((A) => A.stop()), this._breathLights = [], this.sizeBox.reset();
62876
62876
  }
62877
62877
  destroy() {
62878
62878
  this.clean(), this.sizeBox.dispose();
@@ -63342,7 +63342,7 @@ const NK = function() {
63342
63342
  function Qg(n) {
63343
63343
  return Math.abs(n) < zK;
63344
63344
  }
63345
- class tn extends Ze {
63345
+ class nn extends Ze {
63346
63346
  constructor(...A) {
63347
63347
  super(...A), this.isExtendedTriangle = !0, this.satAxes = new Array(4).fill().map(() => new O()), this.satBounds = new Array(4).fill().map(() => new sr()), this.points = [this.a, this.b, this.c], this.sphere = new ui(), this.plane = new Jt(), this.needsUpdate = !0;
63348
63348
  }
@@ -63360,7 +63360,7 @@ class tn extends Ze {
63360
63360
  f.subVectors(t, A), p.setFromPoints(f, i), this.sphere.setFromPoints(this.points), this.plane.setFromNormalAndCoplanarPoint(o, A), this.needsUpdate = !1;
63361
63361
  }
63362
63362
  }
63363
- tn.prototype.closestPointToSegment = function() {
63363
+ nn.prototype.closestPointToSegment = function() {
63364
63364
  const n = new O(), A = new O(), e = new Te();
63365
63365
  return function(i, r = null, s = null) {
63366
63366
  const { start: o, end: a } = i, l = this.points;
@@ -63372,8 +63372,8 @@ tn.prototype.closestPointToSegment = function() {
63372
63372
  return this.closestPointToPoint(o, n), u = o.distanceToSquared(n), u < c && (c = u, r && r.copy(n), s && s.copy(o)), this.closestPointToPoint(a, n), u = a.distanceToSquared(n), u < c && (c = u, r && r.copy(n), s && s.copy(a)), Math.sqrt(c);
63373
63373
  };
63374
63374
  }();
63375
- tn.prototype.intersectsTriangle = function() {
63376
- const n = new tn(), A = new Array(3), e = new Array(3), t = new sr(), i = new sr(), r = new O(), s = new O(), o = new O(), a = new O(), l = new O(), u = new Te(), c = new Te(), h = new Te(), f = new O();
63375
+ nn.prototype.intersectsTriangle = function() {
63376
+ const n = new nn(), A = new Array(3), e = new Array(3), t = new sr(), i = new sr(), r = new O(), s = new O(), o = new O(), a = new O(), l = new O(), u = new Te(), c = new Te(), h = new Te(), f = new O();
63377
63377
  function p(m, d, g) {
63378
63378
  const y = m.points;
63379
63379
  let v = 0, w = -1;
@@ -63446,13 +63446,13 @@ tn.prototype.intersectsTriangle = function() {
63446
63446
  }
63447
63447
  };
63448
63448
  }();
63449
- tn.prototype.distanceToPoint = function() {
63449
+ nn.prototype.distanceToPoint = function() {
63450
63450
  const n = new O();
63451
63451
  return function(e) {
63452
63452
  return this.closestPointToPoint(e, n), e.distanceTo(n);
63453
63453
  };
63454
63454
  }();
63455
- tn.prototype.distanceToTriangle = function() {
63455
+ nn.prototype.distanceToTriangle = function() {
63456
63456
  const n = new O(), A = new O(), e = ["a", "b", "c"], t = new Te(), i = new Te();
63457
63457
  return function(s, o = null, a = null) {
63458
63458
  const l = o || a ? t : null;
@@ -63524,7 +63524,7 @@ Ht.prototype.intersectsBox = function() {
63524
63524
  };
63525
63525
  }();
63526
63526
  Ht.prototype.intersectsTriangle = function() {
63527
- const n = new tn(), A = new Array(3), e = new sr(), t = new sr(), i = new O();
63527
+ const n = new nn(), A = new Array(3), e = new sr(), t = new sr(), i = new O();
63528
63528
  return function(s) {
63529
63529
  this.needsUpdate && this.update(), s.isExtendedTriangle ? s.needsUpdate && s.update() : (n.copy(s), n.update(), s = n);
63530
63530
  const o = this.satBounds, a = this.satAxes;
@@ -63620,7 +63620,7 @@ class $v {
63620
63620
  }
63621
63621
  class RK extends $v {
63622
63622
  constructor() {
63623
- super(() => new tn());
63623
+ super(() => new nn());
63624
63624
  }
63625
63625
  }
63626
63626
  const Ei = /* @__PURE__ */ new RK();
@@ -63904,7 +63904,7 @@ function j0(n, A, e, t, i, r) {
63904
63904
  return y && w ? y.distance <= w.distance ? y : w : y || w || null;
63905
63905
  }
63906
63906
  }
63907
- const Ku = /* @__PURE__ */ new ve(), Yo = /* @__PURE__ */ new tn(), Uo = /* @__PURE__ */ new tn(), Kl = /* @__PURE__ */ new zA(), BI = /* @__PURE__ */ new Ht(), Fu = /* @__PURE__ */ new Ht();
63907
+ const Ku = /* @__PURE__ */ new ve(), Yo = /* @__PURE__ */ new nn(), Uo = /* @__PURE__ */ new nn(), Kl = /* @__PURE__ */ new zA(), BI = /* @__PURE__ */ new Ht(), Fu = /* @__PURE__ */ new Ht();
63908
63908
  function AF(n, A, e, t) {
63909
63909
  ze.setBuffer(n._roots[A]);
63910
63910
  const i = K0(0, n, e, t);
@@ -64066,7 +64066,7 @@ function G0(n, A, e, t, i, r) {
64066
64066
  return y && w ? y.distance <= w.distance ? y : w : y || w || null;
64067
64067
  }
64068
64068
  }
64069
- const Hu = /* @__PURE__ */ new ve(), Wo = /* @__PURE__ */ new tn(), Jo = /* @__PURE__ */ new tn(), Gl = /* @__PURE__ */ new zA(), zI = /* @__PURE__ */ new Ht(), Yu = /* @__PURE__ */ new Ht();
64069
+ const Hu = /* @__PURE__ */ new ve(), Wo = /* @__PURE__ */ new nn(), Jo = /* @__PURE__ */ new nn(), Gl = /* @__PURE__ */ new zA(), zI = /* @__PURE__ */ new Ht(), Yu = /* @__PURE__ */ new Ht();
64070
64070
  function cF(n, A, e, t) {
64071
64071
  ze.setBuffer(n._roots[A]);
64072
64072
  const i = H0(0, n, e, t);
@@ -65081,7 +65081,7 @@ class aH {
65081
65081
  }, this.fit = () => {
65082
65082
  new ve().setFromObject(this._container);
65083
65083
  const i = this.amr.sizeBox.size.getSize(new O()), r = i.clone().multiplyScalar(0.5), s = Math.max(i.x, i.y, i.z) + Math.max(i.x, i.y), o = Math.min(i.x, i.y, i.z) + 0.5, l = this.camera.position.clone().normalize().multiplyScalar(s);
65084
- l.setY(r.y * 1.6), this._fitAnimation = new fd(this.camera.position).to(l, 600).easing(Ds.Easing.Quintic.InOut).onStart(() => {
65084
+ l.setY(s * Math.sin(30 / 180 * Math.PI)), this._fitAnimation = new fd(this.camera.position).to(l, 600).easing(Ds.Easing.Quintic.InOut).onStart(() => {
65085
65085
  this.controls.enabled = !1;
65086
65086
  }).onComplete(() => {
65087
65087
  this.controls.enabled = !0;
@@ -65171,7 +65171,7 @@ class aH {
65171
65171
  return this.renderer.domElement.toDataURL("image/png");
65172
65172
  }
65173
65173
  clearAMR() {
65174
- this.amr.clean(), this.usePathTracing = !1, this.lines.clear();
65174
+ tn(this.overlayScene), this.amr.clean(), this.usePathTracing = !1, this.lines.clear();
65175
65175
  }
65176
65176
  async exportAMR() {
65177
65177
  const A = this._container.clone(!0);