ss-component-new 1.2.320 → 1.2.321

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.
Files changed (82) hide show
  1. package/dist/{MTLLoader-CDSTkv2r.js → MTLLoader-DPOghquc.js} +44 -44
  2. package/dist/{MTLLoader-CzQIVnkW.cjs → MTLLoader-WtlM9u4_.cjs} +1 -1
  3. package/dist/{OrbitControls-D-H9X2Xc.cjs → OrbitControls-B4WKzU1G.cjs} +1 -1
  4. package/dist/{OrbitControls-DcmX9nvA.js → OrbitControls-D-nkCRIf.js} +1 -1
  5. package/dist/{URDFLoader-B_kf63rV.cjs → URDFLoader-BCALUmPB.cjs} +1 -1
  6. package/dist/{URDFLoader-CdN4_DgF.js → URDFLoader-CWlOHauP.js} +95 -95
  7. package/dist/{animationData-Clpy-I6C.cjs → animationData-C0UguIKQ.cjs} +1 -1
  8. package/dist/{animationData-CEhF6uNe.js → animationData-Dzdp9nas.js} +22 -22
  9. package/dist/{array-hFAdDlKV.cjs → array-CK9adN1S.cjs} +1 -1
  10. package/dist/{array-BnbdEheX.js → array-DsXvI7kM.js} +36 -36
  11. package/dist/{iconfont-D0jIkQMM.js → iconfont-BnHV6N2N.js} +21 -21
  12. package/dist/{iconfont-CdKkdWWU.cjs → iconfont-lNXhZpFp.cjs} +1 -1
  13. package/dist/{index-acHXwlR5.cjs → index--86Gn2ru.cjs} +1 -1
  14. package/dist/{index-DMzQ5VfV.cjs → index-0mdQIssU.cjs} +1 -1
  15. package/dist/index-1Owg_Mf-.cjs +1 -0
  16. package/dist/{index-BN6O_Eek.js → index-9UoNKztf.js} +1 -1
  17. package/dist/{index-DGWdVqDd.cjs → index-A_jMsoyr.cjs} +1 -1
  18. package/dist/{index-Hsb03y-r.js → index-B1H0LkPE.js} +1 -1
  19. package/dist/{index-Dtm1Qjht.js → index-BBclOeFM.js} +1 -1
  20. package/dist/{index-B63s-JlF.js → index-BGMypXCK.js} +4 -4
  21. package/dist/{index-ChY5FLQd.js → index-BSgP28TB.js} +2 -2
  22. package/dist/{index-CsYuwsiy.cjs → index-B_ocki10.cjs} +1 -1
  23. package/dist/{index-CZmHTDer.cjs → index-BcDHAiO3.cjs} +1 -1
  24. package/dist/{index-B9biCv6N.js → index-BsIOE41E.js} +1 -1
  25. package/dist/{index-BUgBjm_0.cjs → index-BykHr1Eg.cjs} +1 -1
  26. package/dist/{index-BULVh0UT.js → index-C7bPptTr.js} +1 -1
  27. package/dist/{index-BbLk-2Gd.js → index-CZ6fkXHY.js} +5 -5
  28. package/dist/index-CZXiiKiM.cjs +11 -0
  29. package/dist/index-CigkH2AZ.js +12465 -0
  30. package/dist/{index-CuaMF-D0.js → index-Cxsfl10z.js} +3 -3
  31. package/dist/{index-BMobTVwt.cjs → index-D0xh6m7C.cjs} +1 -1
  32. package/dist/{index-CKJP2psW.cjs → index-D2lip588.cjs} +1 -1
  33. package/dist/{index-BBYRL3BD.js → index-D7Gyeuk1.js} +4 -4
  34. package/dist/{index-CmYzo1h5.cjs → index-DCYH5zL4.cjs} +1 -1
  35. package/dist/{index-CIWoZH8M.cjs → index-DN4tn4Q1.cjs} +1 -1
  36. package/dist/{index-DhORf5Ca.cjs → index-DRTEyrqM.cjs} +1 -1
  37. package/dist/{index-C_mznIEq.js → index-DTAyw_rT.js} +5 -5
  38. package/dist/{index-ChkaCKRr.js → index-DWpSqmnH.js} +2150 -2152
  39. package/dist/{index-WhfGtq5k.js → index-DeINnO1a.js} +1 -1
  40. package/dist/{index-CDxSv4Fm.cjs → index-DlRKKRIJ.cjs} +1 -1
  41. package/dist/{index-2pT_YeoR.cjs → index-DmUZr5rN.cjs} +1 -1
  42. package/dist/{index-Dcvmiima.js → index-DuAd7WnG.js} +1 -1
  43. package/dist/{index-gII2yOS-.js → index-Dz0Yy_aU.js} +3 -3
  44. package/dist/{index-DsWNgreC.js → index-EEdSZ0XK.js} +1 -1
  45. package/dist/{index-D-EuGZq6.cjs → index-HIz3WqB6.cjs} +1 -1
  46. package/dist/{index-an4li1M5.cjs → index-HZa2fjvR.cjs} +1 -1
  47. package/dist/{index-auR6PIXZ.js → index-McjYxFmy.js} +4 -4
  48. package/dist/{index-B2NXMUwG.cjs → index-NT3-shBq.cjs} +1 -1
  49. package/dist/{index-BkR1ZyW0.cjs → index-Y-aMAtUz.cjs} +1 -1
  50. package/dist/{index-q3TzHC9c.cjs → index-ZDxZcfNU.cjs} +1 -1
  51. package/dist/{index-B--dkiC3.js → index-r0hSh3Ho.js} +1 -1
  52. package/dist/{index-Cz3X-nTr.js → index-seLSz6FS.js} +1 -1
  53. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bo3GWmfl.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B-jMTZLT.cjs} +107 -107
  54. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C7EqnG9z.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-gYZo9wwL.js} +152 -151
  55. package/dist/{index.vue_vue_type_style_index_1_lang-CCAvftWy.js → index.vue_vue_type_style_index_1_lang-BlEiaBVX.js} +182 -182
  56. package/dist/{index.vue_vue_type_style_index_1_lang-C82aG_1o.cjs → index.vue_vue_type_style_index_1_lang-Dl0UrVqn.cjs} +1 -1
  57. package/dist/{main-TVcRSKDf.cjs → main-D9dcB2l7.cjs} +1 -1
  58. package/dist/{main-CGEK-Lu3.js → main-DrHv50I2.js} +3 -3
  59. package/dist/ss-component.cjs +1 -1
  60. package/dist/ss-component.js +8 -8
  61. package/dist/ss-component2.cjs +1 -1
  62. package/dist/ss-component2.js +10 -10
  63. package/dist/{threeModel-BWNBsSte.cjs → threeModel-CU32ZPcV.cjs} +1 -1
  64. package/dist/{threeModel-DiqA6QHp.js → threeModel-D99aHX_f.js} +24 -24
  65. package/dist/{threePreview-_Y77vG5u.js → threePreview-Br0EE4Ud.js} +114 -114
  66. package/dist/{threePreview-Ceu1jsHj.cjs → threePreview-DVU8LB-6.cjs} +1 -1
  67. package/dist/{threeSceneView-KzaY14zK.js → threeSceneView-COmqJFJG.js} +8 -8
  68. package/dist/{threeSceneView-CQIft8NI.cjs → threeSceneView-DqdT1Ddr.cjs} +1 -1
  69. package/dist/{threeSceneViewForCPMPIP-Cb79-tDO.js → threeSceneViewForCPMPIP-B51x6Ync.js} +7 -7
  70. package/dist/{threeSceneViewForCPMPIP-B77HstZi.cjs → threeSceneViewForCPMPIP-ra01ZlH4.cjs} +1 -1
  71. package/dist/{threeTrackPathView-CmZ0-vAj.js → threeTrackPathView-C22dVYEt.js} +88 -88
  72. package/dist/{threeTrackPathView-Bb5aCZ93.cjs → threeTrackPathView-DAoYI7KH.cjs} +1 -1
  73. package/dist/{threeViewerHost-C7xRsvtB.js → threeViewerHost-CxfATzg5.js} +15 -15
  74. package/dist/{threeViewerHost-9ZQ5PlEH.cjs → threeViewerHost-dB3mMvbG.cjs} +1 -1
  75. package/dist/{urdfTree-BIfrcTrZ.js → urdfTree-B7vFAieq.js} +4 -4
  76. package/dist/{urdfTree-Cf82F-ZA.cjs → urdfTree-Un6KDIVy.cjs} +1 -1
  77. package/dist/{workpieceTreePanel-CoG2RuKE.js → workpieceTreePanel-CgNiyUrm.js} +27 -27
  78. package/dist/{workpieceTreePanel-BjrztNlC.cjs → workpieceTreePanel-D6QEaOh8.cjs} +1 -1
  79. package/package.json +1 -1
  80. package/dist/index-CbJ7Fc-s.js +0 -12271
  81. package/dist/index-GVffFAZv.cjs +0 -1
  82. package/dist/index-J-1vJ4iC.cjs +0 -11
@@ -1,8 +1,8 @@
1
- import { ref as B, shallowRef as Be, defineComponent as Ke, watch as Y, onMounted as Ve, nextTick as Xe, onBeforeUnmount as ze, resolveComponent as qe, createElementBlock as ue, openBlock as J, createElementVNode as S, withDirectives as We, createCommentVNode as fe, createVNode as F, unref as D, renderSlot as de, toDisplayString as he, withCtx as $e, createBlock as Ye, vShow as Je } from "vue";
2
- import { a_ as Qe, a$ as re, b0 as Me, aP as Ze, b1 as z, aQ as we, b2 as C, b3 as ye, O as G, b4 as v, T as q, b5 as et, a3 as tt, a1 as nt, a8 as $, V as j, b6 as st, b7 as Se, b8 as rt, b9 as Ne, ba as it, bb as ot, aW as Q, bc as at, bd as Ie, be as ct, bf as lt, bg as ut, bh as ie, bi as Ce, bj as oe, bk as ft, bl as dt, aT as ht, bm as Z, aX as pt, aC as Oe, a5 as mt, bn as X, bo as gt, aE as Tt, bp as xt, $ as ve, bq as Rt, aG as Et, br as _t, aU as At, aB as ee, P as bt, a9 as Lt, bs as Mt, bt as wt, bu as yt, bv as St, bw as Nt, bx as ke, by as It, bz as pe, bA as me, bB as ge, bC as Te, bD as xe, aZ as Ct, bE as Ot, M as Pe, bF as vt, a4 as kt } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C7EqnG9z.js";
3
- import { E as Re } from "./index-BUf2BDmR.js";
4
- import { u as Pt, a as Ft, b as Dt, C as Ht } from "./iconfont-D0jIkQMM.js";
5
- import { M as Gt, O as Ut, S as jt } from "./MTLLoader-CDSTkv2r.js";
1
+ import { ref as B, shallowRef as Be, defineComponent as Ke, watch as $, onMounted as Ve, nextTick as Xe, onBeforeUnmount as ze, resolveComponent as qe, createElementBlock as ue, openBlock as J, createElementVNode as S, withDirectives as We, createCommentVNode as fe, createVNode as P, unref as D, renderSlot as de, toDisplayString as he, withCtx as Ye, createBlock as $e, vShow as Je } from "vue";
2
+ import { a$ as Qe, b0 as re, b1 as Me, aQ as Ze, b2 as z, aR as we, b3 as C, b4 as ye, Q as G, b5 as v, X as q, b6 as et, a5 as tt, a3 as nt, aa as Y, V as j, b7 as st, b8 as Se, b9 as rt, ba as Ne, bb as it, bc as ot, aX as Q, bd as at, be as Ie, bf as ct, bg as lt, bh as ut, bi as ie, bj as Ce, bk as oe, bl as ft, bm as dt, aU as ht, bn as Z, aY as pt, aD as Oe, a7 as mt, bo as X, bp as gt, aF as Tt, bq as Rt, a1 as ve, br as xt, aH as Et, bs as _t, aV as At, aC as ee, R as bt, ab as Lt, bt as Mt, bu as wt, bv as yt, bw as St, bx as Nt, by as ke, bz as It, bA as pe, bB as me, bC as ge, bD as Te, bE as Re, a_ as Ct, bF as Ot, O as Fe, bG as vt, a6 as kt } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-gYZo9wwL.js";
3
+ import { E as xe } from "./index-BUf2BDmR.js";
4
+ import { u as Ft, a as Pt, b as Dt, C as Ht } from "./iconfont-BnHV6N2N.js";
5
+ import { M as Gt, O as Ut, S as jt } from "./MTLLoader-DPOghquc.js";
6
6
  import { T as U } from "./svgIcon-4u4PW7Is.js";
7
7
  import { _ as Bt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
8
  function Ee(f, t) {
@@ -42,7 +42,7 @@ class Kt extends Ze {
42
42
  super(t), this.dracoLoader = null, this.ktx2Loader = null, this.meshoptDecoder = null, this.pluginCallbacks = [], this.register(function(e) {
43
43
  return new Wt(e);
44
44
  }), this.register(function(e) {
45
- return new $t(e);
45
+ return new Yt(e);
46
46
  }), this.register(function(e) {
47
47
  return new rn(e);
48
48
  }), this.register(function(e) {
@@ -62,7 +62,7 @@ class Kt extends Ze {
62
62
  }), this.register(function(e) {
63
63
  return new tn(e);
64
64
  }), this.register(function(e) {
65
- return new Yt(e);
65
+ return new $t(e);
66
66
  }), this.register(function(e) {
67
67
  return new sn(e);
68
68
  }), this.register(function(e) {
@@ -172,14 +172,14 @@ class Kt extends Ze {
172
172
  if (typeof t == "string")
173
173
  s = JSON.parse(t);
174
174
  else if (t instanceof ArrayBuffer)
175
- if (o.decode(new Uint8Array(t, 0, 4)) === Fe) {
175
+ if (o.decode(new Uint8Array(t, 0, 4)) === Pe) {
176
176
  try {
177
- r[R.KHR_BINARY_GLTF] = new un(t);
177
+ r[x.KHR_BINARY_GLTF] = new un(t);
178
178
  } catch (l) {
179
179
  n && n(l);
180
180
  return;
181
181
  }
182
- s = JSON.parse(r[R.KHR_BINARY_GLTF].content);
182
+ s = JSON.parse(r[x.KHR_BINARY_GLTF].content);
183
183
  } else
184
184
  s = JSON.parse(o.decode(t));
185
185
  else
@@ -205,16 +205,16 @@ class Kt extends Ze {
205
205
  for (let u = 0; u < s.extensionsUsed.length; ++u) {
206
206
  const l = s.extensionsUsed[u], d = s.extensionsRequired || [];
207
207
  switch (l) {
208
- case R.KHR_MATERIALS_UNLIT:
208
+ case x.KHR_MATERIALS_UNLIT:
209
209
  r[l] = new zt();
210
210
  break;
211
- case R.KHR_DRACO_MESH_COMPRESSION:
211
+ case x.KHR_DRACO_MESH_COMPRESSION:
212
212
  r[l] = new fn(s, this.dracoLoader);
213
213
  break;
214
- case R.KHR_TEXTURE_TRANSFORM:
214
+ case x.KHR_TEXTURE_TRANSFORM:
215
215
  r[l] = new dn();
216
216
  break;
217
- case R.KHR_MESH_QUANTIZATION:
217
+ case x.KHR_MESH_QUANTIZATION:
218
218
  r[l] = new hn();
219
219
  break;
220
220
  default:
@@ -255,7 +255,7 @@ function Vt() {
255
255
  }
256
256
  };
257
257
  }
258
- const R = {
258
+ const x = {
259
259
  KHR_BINARY_GLTF: "KHR_binary_glTF",
260
260
  KHR_DRACO_MESH_COMPRESSION: "KHR_draco_mesh_compression",
261
261
  KHR_LIGHTS_PUNCTUAL: "KHR_lights_punctual",
@@ -281,7 +281,7 @@ const R = {
281
281
  };
282
282
  class Xt {
283
283
  constructor(t) {
284
- this.parser = t, this.name = R.KHR_LIGHTS_PUNCTUAL, this.cache = { refs: {}, uses: {} };
284
+ this.parser = t, this.name = x.KHR_LIGHTS_PUNCTUAL, this.cache = { refs: {}, uses: {} };
285
285
  }
286
286
  _markDefs() {
287
287
  const t = this.parser, e = this.parser.json.nodes || [];
@@ -327,7 +327,7 @@ class Xt {
327
327
  }
328
328
  class zt {
329
329
  constructor() {
330
- this.name = R.KHR_MATERIALS_UNLIT;
330
+ this.name = x.KHR_MATERIALS_UNLIT;
331
331
  }
332
332
  getMaterialType() {
333
333
  return X;
@@ -348,7 +348,7 @@ class zt {
348
348
  }
349
349
  class qt {
350
350
  constructor(t) {
351
- this.parser = t, this.name = R.KHR_MATERIALS_EMISSIVE_STRENGTH;
351
+ this.parser = t, this.name = x.KHR_MATERIALS_EMISSIVE_STRENGTH;
352
352
  }
353
353
  extendMaterialParams(t, e) {
354
354
  const n = this.parser.json.materials[t];
@@ -360,7 +360,7 @@ class qt {
360
360
  }
361
361
  class Wt {
362
362
  constructor(t) {
363
- this.parser = t, this.name = R.KHR_MATERIALS_CLEARCOAT;
363
+ this.parser = t, this.name = x.KHR_MATERIALS_CLEARCOAT;
364
364
  }
365
365
  getMaterialType(t) {
366
366
  const i = this.parser.json.materials[t];
@@ -378,9 +378,9 @@ class Wt {
378
378
  return Promise.all(s);
379
379
  }
380
380
  }
381
- class $t {
381
+ class Yt {
382
382
  constructor(t) {
383
- this.parser = t, this.name = R.KHR_MATERIALS_DISPERSION;
383
+ this.parser = t, this.name = x.KHR_MATERIALS_DISPERSION;
384
384
  }
385
385
  getMaterialType(t) {
386
386
  const i = this.parser.json.materials[t];
@@ -394,9 +394,9 @@ class $t {
394
394
  return e.dispersion = s.dispersion !== void 0 ? s.dispersion : 0, Promise.resolve();
395
395
  }
396
396
  }
397
- class Yt {
397
+ class $t {
398
398
  constructor(t) {
399
- this.parser = t, this.name = R.KHR_MATERIALS_IRIDESCENCE;
399
+ this.parser = t, this.name = x.KHR_MATERIALS_IRIDESCENCE;
400
400
  }
401
401
  getMaterialType(t) {
402
402
  const i = this.parser.json.materials[t];
@@ -412,7 +412,7 @@ class Yt {
412
412
  }
413
413
  class Jt {
414
414
  constructor(t) {
415
- this.parser = t, this.name = R.KHR_MATERIALS_SHEEN;
415
+ this.parser = t, this.name = x.KHR_MATERIALS_SHEEN;
416
416
  }
417
417
  getMaterialType(t) {
418
418
  const i = this.parser.json.materials[t];
@@ -434,7 +434,7 @@ class Jt {
434
434
  }
435
435
  class Qt {
436
436
  constructor(t) {
437
- this.parser = t, this.name = R.KHR_MATERIALS_TRANSMISSION;
437
+ this.parser = t, this.name = x.KHR_MATERIALS_TRANSMISSION;
438
438
  }
439
439
  getMaterialType(t) {
440
440
  const i = this.parser.json.materials[t];
@@ -450,7 +450,7 @@ class Qt {
450
450
  }
451
451
  class Zt {
452
452
  constructor(t) {
453
- this.parser = t, this.name = R.KHR_MATERIALS_VOLUME;
453
+ this.parser = t, this.name = x.KHR_MATERIALS_VOLUME;
454
454
  }
455
455
  getMaterialType(t) {
456
456
  const i = this.parser.json.materials[t];
@@ -468,7 +468,7 @@ class Zt {
468
468
  }
469
469
  class en {
470
470
  constructor(t) {
471
- this.parser = t, this.name = R.KHR_MATERIALS_IOR;
471
+ this.parser = t, this.name = x.KHR_MATERIALS_IOR;
472
472
  }
473
473
  getMaterialType(t) {
474
474
  const i = this.parser.json.materials[t];
@@ -484,7 +484,7 @@ class en {
484
484
  }
485
485
  class tn {
486
486
  constructor(t) {
487
- this.parser = t, this.name = R.KHR_MATERIALS_SPECULAR;
487
+ this.parser = t, this.name = x.KHR_MATERIALS_SPECULAR;
488
488
  }
489
489
  getMaterialType(t) {
490
490
  const i = this.parser.json.materials[t];
@@ -502,7 +502,7 @@ class tn {
502
502
  }
503
503
  class nn {
504
504
  constructor(t) {
505
- this.parser = t, this.name = R.EXT_MATERIALS_BUMP;
505
+ this.parser = t, this.name = x.EXT_MATERIALS_BUMP;
506
506
  }
507
507
  getMaterialType(t) {
508
508
  const i = this.parser.json.materials[t];
@@ -518,7 +518,7 @@ class nn {
518
518
  }
519
519
  class sn {
520
520
  constructor(t) {
521
- this.parser = t, this.name = R.KHR_MATERIALS_ANISOTROPY;
521
+ this.parser = t, this.name = x.KHR_MATERIALS_ANISOTROPY;
522
522
  }
523
523
  getMaterialType(t) {
524
524
  const i = this.parser.json.materials[t];
@@ -534,7 +534,7 @@ class sn {
534
534
  }
535
535
  class rn {
536
536
  constructor(t) {
537
- this.parser = t, this.name = R.KHR_TEXTURE_BASISU;
537
+ this.parser = t, this.name = x.KHR_TEXTURE_BASISU;
538
538
  }
539
539
  loadTexture(t) {
540
540
  const e = this.parser, i = e.json, n = i.textures[t];
@@ -551,7 +551,7 @@ class rn {
551
551
  }
552
552
  class on {
553
553
  constructor(t) {
554
- this.parser = t, this.name = R.EXT_TEXTURE_WEBP;
554
+ this.parser = t, this.name = x.EXT_TEXTURE_WEBP;
555
555
  }
556
556
  loadTexture(t) {
557
557
  const e = this.name, i = this.parser, n = i.json, s = n.textures[t];
@@ -568,7 +568,7 @@ class on {
568
568
  }
569
569
  class an {
570
570
  constructor(t) {
571
- this.parser = t, this.name = R.EXT_TEXTURE_AVIF;
571
+ this.parser = t, this.name = x.EXT_TEXTURE_AVIF;
572
572
  }
573
573
  loadTexture(t) {
574
574
  const e = this.name, i = this.parser, n = i.json, s = n.textures[t];
@@ -585,7 +585,7 @@ class an {
585
585
  }
586
586
  class cn {
587
587
  constructor(t) {
588
- this.name = R.EXT_MESHOPT_COMPRESSION, this.parser = t;
588
+ this.name = x.EXT_MESHOPT_COMPRESSION, this.parser = t;
589
589
  }
590
590
  loadBufferView(t) {
591
591
  const e = this.parser.json, i = e.bufferViews[t];
@@ -611,7 +611,7 @@ class cn {
611
611
  }
612
612
  class ln {
613
613
  constructor(t) {
614
- this.name = R.EXT_MESH_GPU_INSTANCING, this.parser = t;
614
+ this.name = x.EXT_MESH_GPU_INSTANCING, this.parser = t;
615
615
  }
616
616
  createNodeMesh(t) {
617
617
  const e = this.parser.json, i = e.nodes[t];
@@ -627,9 +627,9 @@ class ln {
627
627
  return a.length < 1 ? null : (a.push(this.parser.createNodeMesh(t)), Promise.all(a).then((c) => {
628
628
  const u = c.pop(), l = u.isGroup ? u.children : [u], d = c[0].count, h = [];
629
629
  for (const p of l) {
630
- const x = new $(), m = new j(), g = new Se(), E = new j(1, 1, 1), _ = new st(p.geometry, p.material, d);
630
+ const R = new Y(), m = new j(), g = new Se(), E = new j(1, 1, 1), _ = new st(p.geometry, p.material, d);
631
631
  for (let T = 0; T < d; T++)
632
- o.TRANSLATION && m.fromBufferAttribute(o.TRANSLATION, T), o.ROTATION && g.fromBufferAttribute(o.ROTATION, T), o.SCALE && E.fromBufferAttribute(o.SCALE, T), _.setMatrixAt(T, x.compose(m, g, E));
632
+ o.TRANSLATION && m.fromBufferAttribute(o.TRANSLATION, T), o.ROTATION && g.fromBufferAttribute(o.ROTATION, T), o.SCALE && E.fromBufferAttribute(o.SCALE, T), _.setMatrixAt(T, R.compose(m, g, E));
633
633
  for (const T in o)
634
634
  if (T === "_COLOR_0") {
635
635
  const b = o[T];
@@ -641,16 +641,16 @@ class ln {
641
641
  }));
642
642
  }
643
643
  }
644
- const Fe = "glTF", V = 12, _e = { JSON: 1313821514, BIN: 5130562 };
644
+ const Pe = "glTF", V = 12, _e = { JSON: 1313821514, BIN: 5130562 };
645
645
  class un {
646
646
  constructor(t) {
647
- this.name = R.KHR_BINARY_GLTF, this.content = null, this.body = null;
647
+ this.name = x.KHR_BINARY_GLTF, this.content = null, this.body = null;
648
648
  const e = new DataView(t, 0, V), i = new TextDecoder();
649
649
  if (this.header = {
650
650
  magic: i.decode(new Uint8Array(t.slice(0, 4))),
651
651
  version: e.getUint32(4, !0),
652
652
  length: e.getUint32(8, !0)
653
- }, this.header.magic !== Fe)
653
+ }, this.header.magic !== Pe)
654
654
  throw new Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");
655
655
  if (this.header.version < 2)
656
656
  throw new Error("THREE.GLTFLoader: Legacy binary file detected.");
@@ -677,7 +677,7 @@ class fn {
677
677
  constructor(t, e) {
678
678
  if (!e)
679
679
  throw new Error("THREE.GLTFLoader: No DRACOLoader instance provided.");
680
- this.name = R.KHR_DRACO_MESH_COMPRESSION, this.json = t, this.dracoLoader = e, this.dracoLoader.preload();
680
+ this.name = x.KHR_DRACO_MESH_COMPRESSION, this.json = t, this.dracoLoader = e, this.dracoLoader.preload();
681
681
  }
682
682
  decodePrimitive(t, e) {
683
683
  const i = this.json, n = this.dracoLoader, s = t.extensions[this.name].bufferView, r = t.extensions[this.name].attributes, a = {}, o = {}, c = {};
@@ -696,8 +696,8 @@ class fn {
696
696
  return new Promise(function(l, d) {
697
697
  n.decodeDracoFile(u, function(h) {
698
698
  for (const p in h.attributes) {
699
- const x = h.attributes[p], m = o[p];
700
- m !== void 0 && (x.normalized = m);
699
+ const R = h.attributes[p], m = o[p];
700
+ m !== void 0 && (R.normalized = m);
701
701
  }
702
702
  l(h);
703
703
  }, a, c, v, d);
@@ -707,7 +707,7 @@ class fn {
707
707
  }
708
708
  class dn {
709
709
  constructor() {
710
- this.name = R.KHR_TEXTURE_TRANSFORM;
710
+ this.name = x.KHR_TEXTURE_TRANSFORM;
711
711
  }
712
712
  extendTexture(t, e) {
713
713
  return (e.texCoord === void 0 || e.texCoord === t.channel) && e.offset === void 0 && e.rotation === void 0 && e.scale === void 0 || (t = t.clone(), e.texCoord !== void 0 && (t.channel = e.texCoord), e.offset !== void 0 && t.offset.fromArray(e.offset), e.rotation !== void 0 && (t.rotation = e.rotation), e.scale !== void 0 && t.repeat.fromArray(e.scale), t.needsUpdate = !0), t;
@@ -715,7 +715,7 @@ class dn {
715
715
  }
716
716
  class hn {
717
717
  constructor() {
718
- this.name = R.KHR_MESH_QUANTIZATION;
718
+ this.name = x.KHR_MESH_QUANTIZATION;
719
719
  }
720
720
  }
721
721
  class De extends Ot {
@@ -729,9 +729,9 @@ class De extends Ot {
729
729
  return e;
730
730
  }
731
731
  interpolate_(t, e, i, n) {
732
- const s = this.resultBuffer, r = this.sampleValues, a = this.valueSize, o = a * 2, c = a * 3, u = n - e, l = (i - e) / u, d = l * l, h = d * l, p = t * c, x = p - c, m = -2 * h + 3 * d, g = h - d, E = 1 - m, _ = g - d + l;
732
+ const s = this.resultBuffer, r = this.sampleValues, a = this.valueSize, o = a * 2, c = a * 3, u = n - e, l = (i - e) / u, d = l * l, h = d * l, p = t * c, R = p - c, m = -2 * h + 3 * d, g = h - d, E = 1 - m, _ = g - d + l;
733
733
  for (let T = 0; T !== a; T++) {
734
- const b = r[x + T + a], w = r[x + T + o] * u, L = r[p + T + a], N = r[p + T] * u;
734
+ const b = r[R + T + a], w = r[R + T + o] * u, L = r[p + T + a], N = r[p + T] * u;
735
735
  s[T] = E * b + _ * w + m * L + g * N;
736
736
  }
737
737
  return s;
@@ -789,7 +789,7 @@ const y = {
789
789
  COLOR_0: "color",
790
790
  WEIGHTS_0: "skinWeight",
791
791
  JOINTS_0: "skinIndex"
792
- }, P = {
792
+ }, F = {
793
793
  scale: "scale",
794
794
  translation: "position",
795
795
  rotation: "quaternion",
@@ -823,7 +823,7 @@ function H(f, t, e) {
823
823
  function O(f, t) {
824
824
  t.extras !== void 0 && (typeof t.extras == "object" ? Object.assign(f.userData, t.extras) : console.warn("THREE.GLTFLoader: Ignoring primitive type .extras, " + t.extras));
825
825
  }
826
- function xn(f, t, e) {
826
+ function Rn(f, t, e) {
827
827
  let i = !1, n = !1, s = !1;
828
828
  for (let c = 0, u = t.length; c < u; c++) {
829
829
  const l = t[c];
@@ -855,7 +855,7 @@ function xn(f, t, e) {
855
855
  return i && (f.morphAttributes.position = u), n && (f.morphAttributes.normal = l), s && (f.morphAttributes.color = d), f.morphTargetsRelative = !0, f;
856
856
  });
857
857
  }
858
- function Rn(f, t) {
858
+ function xn(f, t) {
859
859
  if (f.updateMorphTargets(), t.weights !== void 0)
860
860
  for (let e = 0, i = t.weights.length; e < i; e++)
861
861
  f.morphTargetInfluences[e] = t.weights[e];
@@ -871,7 +871,7 @@ function Rn(f, t) {
871
871
  }
872
872
  function En(f) {
873
873
  let t;
874
- const e = f.extensions && f.extensions[R.KHR_DRACO_MESH_COMPRESSION];
874
+ const e = f.extensions && f.extensions[x.KHR_DRACO_MESH_COMPRESSION];
875
875
  if (e ? t = "draco:" + e.bufferView + ":" + e.indices + ":" + se(e.attributes) : t = f.indices + ":" + se(f.attributes) + ":" + f.mode, f.targets !== void 0)
876
876
  for (let i = 0, n = f.targets.length; i < n; i++)
877
877
  t += ":" + se(f.targets[i]);
@@ -901,7 +901,7 @@ function ce(f) {
901
901
  function _n(f) {
902
902
  return f.search(/\.jpe?g($|\?)/i) > 0 || f.search(/^data\:image\/jpeg/) === 0 ? "image/jpeg" : f.search(/\.webp($|\?)/i) > 0 || f.search(/^data\:image\/webp/) === 0 ? "image/webp" : f.search(/\.ktx2($|\?)/i) > 0 || f.search(/^data\:image\/ktx2/) === 0 ? "image/ktx2" : "image/png";
903
903
  }
904
- const An = new $();
904
+ const An = new Y();
905
905
  class bn {
906
906
  constructor(t = {}, e = {}) {
907
907
  this.json = t, this.extensions = {}, this.plugins = {}, this.options = e, this.cache = new Vt(), this.associations = /* @__PURE__ */ new Map(), this.primitiveCache = {}, this.nodeCache = {}, this.meshCache = { refs: {}, uses: {} }, this.cameraCache = { refs: {}, uses: {} }, this.lightCache = { refs: {}, uses: {} }, this.sourceCache = {}, this.textureCache = {}, this.nodeNamesUsed = {};
@@ -1120,7 +1120,7 @@ class bn {
1120
1120
  if (e.type && e.type !== "arraybuffer")
1121
1121
  throw new Error("THREE.GLTFLoader: " + e.type + " buffer type is not supported.");
1122
1122
  if (e.uri === void 0 && t === 0)
1123
- return Promise.resolve(this.extensions[R.KHR_BINARY_GLTF].body);
1123
+ return Promise.resolve(this.extensions[x.KHR_BINARY_GLTF].body);
1124
1124
  const n = this.options;
1125
1125
  return new Promise(function(s, r) {
1126
1126
  i.load(z.resolveURL(e.uri, n.path), s, void 0, function() {
@@ -1158,13 +1158,13 @@ class bn {
1158
1158
  const s = [];
1159
1159
  return n.bufferView !== void 0 ? s.push(this.getDependency("bufferView", n.bufferView)) : s.push(null), n.sparse !== void 0 && (s.push(this.getDependency("bufferView", n.sparse.indices.bufferView)), s.push(this.getDependency("bufferView", n.sparse.values.bufferView))), Promise.all(s).then(function(r) {
1160
1160
  const a = r[0], o = te[n.type], c = K[n.componentType], u = c.BYTES_PER_ELEMENT, l = u * o, d = n.byteOffset || 0, h = n.bufferView !== void 0 ? i.bufferViews[n.bufferView].byteStride : void 0, p = n.normalized === !0;
1161
- let x, m;
1161
+ let R, m;
1162
1162
  if (h && h !== l) {
1163
1163
  const g = Math.floor(d / h), E = "InterleavedBuffer:" + n.bufferView + ":" + n.componentType + ":" + g + ":" + n.count;
1164
1164
  let _ = e.cache.get(E);
1165
- _ || (x = new c(a, g * h, n.count * h / u), _ = new at(x, h / u), e.cache.add(E, _)), m = new It(_, o, d % h / u, p);
1165
+ _ || (R = new c(a, g * h, n.count * h / u), _ = new at(R, h / u), e.cache.add(E, _)), m = new It(_, o, d % h / u, p);
1166
1166
  } else
1167
- a === null ? x = new c(n.count * o) : x = new c(a, d, n.count * o), m = new Q(x, o, p);
1167
+ a === null ? R = new c(n.count * o) : R = new c(a, d, n.count * o), m = new Q(R, o, p);
1168
1168
  if (n.sparse !== void 0) {
1169
1169
  const g = te.SCALAR, E = K[n.sparse.indices.componentType], _ = n.sparse.indices.byteOffset || 0, T = n.sparse.values.byteOffset || 0, b = new E(r[1], _, n.sparse.count * g), w = new c(r[2], T, n.sparse.count * o);
1170
1170
  a !== null && (m = new Q(m.array.slice(), m.itemSize, m.normalized)), m.normalized = !1;
@@ -1223,8 +1223,8 @@ class bn {
1223
1223
  const u = Promise.resolve(o).then(function(l) {
1224
1224
  return new Promise(function(d, h) {
1225
1225
  let p = d;
1226
- e.isImageBitmapLoader === !0 && (p = function(x) {
1227
- const m = new pe(x);
1226
+ e.isImageBitmapLoader === !0 && (p = function(R) {
1227
+ const m = new pe(R);
1228
1228
  m.needsUpdate = !0, d(m);
1229
1229
  }), e.load(z.resolveURL(l, s.path), p, void 0, h);
1230
1230
  });
@@ -1249,11 +1249,11 @@ class bn {
1249
1249
  const s = this;
1250
1250
  return this.getDependency("texture", i.index).then(function(r) {
1251
1251
  if (!r) return null;
1252
- if (i.texCoord !== void 0 && i.texCoord > 0 && (r = r.clone(), r.channel = i.texCoord), s.extensions[R.KHR_TEXTURE_TRANSFORM]) {
1253
- const a = i.extensions !== void 0 ? i.extensions[R.KHR_TEXTURE_TRANSFORM] : void 0;
1252
+ if (i.texCoord !== void 0 && i.texCoord > 0 && (r = r.clone(), r.channel = i.texCoord), s.extensions[x.KHR_TEXTURE_TRANSFORM]) {
1253
+ const a = i.extensions !== void 0 ? i.extensions[x.KHR_TEXTURE_TRANSFORM] : void 0;
1254
1254
  if (a) {
1255
1255
  const o = s.associations.get(r);
1256
- r = s.extensions[R.KHR_TEXTURE_TRANSFORM].extendTexture(r, a), s.associations.set(r, o);
1256
+ r = s.extensions[x.KHR_TEXTURE_TRANSFORM].extendTexture(r, a), s.associations.set(r, o);
1257
1257
  }
1258
1258
  }
1259
1259
  return n !== void 0 && (r.colorSpace = n), t[e] = r, r;
@@ -1304,8 +1304,8 @@ class bn {
1304
1304
  const e = this, i = this.json, n = this.extensions, s = i.materials[t];
1305
1305
  let r;
1306
1306
  const a = {}, o = s.extensions || {}, c = [];
1307
- if (o[R.KHR_MATERIALS_UNLIT]) {
1308
- const l = n[R.KHR_MATERIALS_UNLIT];
1307
+ if (o[x.KHR_MATERIALS_UNLIT]) {
1308
+ const l = n[x.KHR_MATERIALS_UNLIT];
1309
1309
  r = l.getMaterialType(), c.push(l.extendParams(a, s, e));
1310
1310
  } else {
1311
1311
  const l = s.pbrMetallicRoughness || {};
@@ -1357,7 +1357,7 @@ class bn {
1357
1357
  loadGeometries(t) {
1358
1358
  const e = this, i = this.extensions, n = this.primitiveCache;
1359
1359
  function s(a) {
1360
- return i[R.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(a, e).then(function(o) {
1360
+ return i[x.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(a, e).then(function(o) {
1361
1361
  return Le(o, a, e);
1362
1362
  });
1363
1363
  }
@@ -1368,7 +1368,7 @@ class bn {
1368
1368
  r.push(l.promise);
1369
1369
  else {
1370
1370
  let d;
1371
- c.extensions && c.extensions[R.KHR_DRACO_MESH_COMPRESSION] ? d = s(c) : d = Le(new Tt(), c, e), n[u] = { primitive: c, promise: d }, r.push(d);
1371
+ c.extensions && c.extensions[x.KHR_DRACO_MESH_COMPRESSION] ? d = s(c) : d = Le(new Tt(), c, e), n[u] = { primitive: c, promise: d }, r.push(d);
1372
1372
  }
1373
1373
  }
1374
1374
  return Promise.all(r);
@@ -1389,22 +1389,22 @@ class bn {
1389
1389
  return a.push(e.loadGeometries(r)), Promise.all(a).then(function(o) {
1390
1390
  const c = o.slice(0, o.length - 1), u = o[o.length - 1], l = [];
1391
1391
  for (let h = 0, p = u.length; h < p; h++) {
1392
- const x = u[h], m = r[h];
1392
+ const R = u[h], m = r[h];
1393
1393
  let g;
1394
1394
  const E = c[h];
1395
1395
  if (m.mode === y.TRIANGLES || m.mode === y.TRIANGLE_STRIP || m.mode === y.TRIANGLE_FAN || m.mode === void 0)
1396
- g = s.isSkinnedMesh === !0 ? new xt(x, E) : new ve(x, E), g.isSkinnedMesh === !0 && g.normalizeSkinWeights(), m.mode === y.TRIANGLE_STRIP ? g.geometry = Ee(g.geometry, Me) : m.mode === y.TRIANGLE_FAN && (g.geometry = Ee(g.geometry, re));
1396
+ g = s.isSkinnedMesh === !0 ? new Rt(R, E) : new ve(R, E), g.isSkinnedMesh === !0 && g.normalizeSkinWeights(), m.mode === y.TRIANGLE_STRIP ? g.geometry = Ee(g.geometry, Me) : m.mode === y.TRIANGLE_FAN && (g.geometry = Ee(g.geometry, re));
1397
1397
  else if (m.mode === y.LINES)
1398
- g = new Rt(x, E);
1398
+ g = new xt(R, E);
1399
1399
  else if (m.mode === y.LINE_STRIP)
1400
- g = new Et(x, E);
1400
+ g = new Et(R, E);
1401
1401
  else if (m.mode === y.LINE_LOOP)
1402
- g = new _t(x, E);
1402
+ g = new _t(R, E);
1403
1403
  else if (m.mode === y.POINTS)
1404
- g = new At(x, E);
1404
+ g = new At(R, E);
1405
1405
  else
1406
1406
  throw new Error("THREE.GLTFLoader: Primitive mode unsupported: " + m.mode);
1407
- Object.keys(g.geometry.morphAttributes).length > 0 && Rn(g, s), g.name = e.createUniqueName(s.name || "mesh_" + t), O(g, s), m.extensions && H(n, g, m), e.assignFinalMaterial(g), l.push(g);
1407
+ Object.keys(g.geometry.morphAttributes).length > 0 && xn(g, s), g.name = e.createUniqueName(s.name || "mesh_" + t), O(g, s), m.extensions && H(n, g, m), e.assignFinalMaterial(g), l.push(g);
1408
1408
  }
1409
1409
  for (let h = 0, p = l.length; h < p; h++)
1410
1410
  e.associations.set(l[h], {
@@ -1453,7 +1453,7 @@ class bn {
1453
1453
  const l = r[c];
1454
1454
  if (l) {
1455
1455
  a.push(l);
1456
- const d = new $();
1456
+ const d = new Y();
1457
1457
  s !== null && d.fromArray(s.array, c * 16), o.push(d);
1458
1458
  } else
1459
1459
  console.warn('THREE.GLTFLoader: Joint "%s" could not be found.', e.joints[c]);
@@ -1471,8 +1471,8 @@ class bn {
1471
1471
  loadAnimation(t) {
1472
1472
  const e = this.json, i = this, n = e.animations[t], s = n.name ? n.name : "animation_" + t, r = [], a = [], o = [], c = [], u = [];
1473
1473
  for (let l = 0, d = n.channels.length; l < d; l++) {
1474
- const h = n.channels[l], p = n.samplers[h.sampler], x = h.target, m = x.node, g = n.parameters !== void 0 ? n.parameters[p.input] : p.input, E = n.parameters !== void 0 ? n.parameters[p.output] : p.output;
1475
- x.node !== void 0 && (r.push(this.getDependency("node", m)), a.push(this.getDependency("accessor", g)), o.push(this.getDependency("accessor", E)), c.push(p), u.push(x));
1474
+ const h = n.channels[l], p = n.samplers[h.sampler], R = h.target, m = R.node, g = n.parameters !== void 0 ? n.parameters[p.input] : p.input, E = n.parameters !== void 0 ? n.parameters[p.output] : p.output;
1475
+ R.node !== void 0 && (r.push(this.getDependency("node", m)), a.push(this.getDependency("accessor", g)), o.push(this.getDependency("accessor", E)), c.push(p), u.push(R));
1476
1476
  }
1477
1477
  return Promise.all([
1478
1478
  Promise.all(r),
@@ -1481,9 +1481,9 @@ class bn {
1481
1481
  Promise.all(c),
1482
1482
  Promise.all(u)
1483
1483
  ]).then(function(l) {
1484
- const d = l[0], h = l[1], p = l[2], x = l[3], m = l[4], g = [];
1484
+ const d = l[0], h = l[1], p = l[2], R = l[3], m = l[4], g = [];
1485
1485
  for (let E = 0, _ = d.length; E < _; E++) {
1486
- const T = d[E], b = h[E], w = p[E], L = x[E], N = m[E];
1486
+ const T = d[E], b = h[E], w = p[E], L = R[E], N = m[E];
1487
1487
  if (T === void 0) continue;
1488
1488
  T.updateMatrix && T.updateMatrix();
1489
1489
  const M = i._createAnimationTracks(T, b, w, L, N);
@@ -1552,7 +1552,7 @@ class bn {
1552
1552
  for (let l = 0, d = c.length; l < d; l++)
1553
1553
  u.add(c[l]);
1554
1554
  if (s.name && (u.userData.name = s.name, u.name = r), O(u, s), s.extensions && H(i, u, s), s.matrix !== void 0) {
1555
- const l = new $();
1555
+ const l = new Y();
1556
1556
  l.fromArray(s.matrix), u.applyMatrix4(l);
1557
1557
  } else
1558
1558
  s.translation !== void 0 && u.position.fromArray(s.translation), s.rotation !== void 0 && u.quaternion.fromArray(s.rotation), s.scale !== void 0 && u.scale.fromArray(s.scale);
@@ -1595,19 +1595,19 @@ class bn {
1595
1595
  }
1596
1596
  _createAnimationTracks(t, e, i, n, s) {
1597
1597
  const r = [], a = t.name ? t.name : t.uuid, o = [];
1598
- P[s.path] === P.weights ? t.traverse(function(d) {
1598
+ F[s.path] === F.weights ? t.traverse(function(d) {
1599
1599
  d.morphTargetInfluences && o.push(d.name ? d.name : d.uuid);
1600
1600
  }) : o.push(a);
1601
1601
  let c;
1602
- switch (P[s.path]) {
1603
- case P.weights:
1602
+ switch (F[s.path]) {
1603
+ case F.weights:
1604
1604
  c = ge;
1605
1605
  break;
1606
- case P.rotation:
1606
+ case F.rotation:
1607
1607
  c = Te;
1608
1608
  break;
1609
- case P.translation:
1610
- case P.scale:
1609
+ case F.translation:
1610
+ case F.scale:
1611
1611
  c = me;
1612
1612
  break;
1613
1613
  default:
@@ -1626,7 +1626,7 @@ class bn {
1626
1626
  const u = n.interpolation !== void 0 ? gn[n.interpolation] : ke, l = this._getArrayFromAccessor(i);
1627
1627
  for (let d = 0, h = o.length; d < h; d++) {
1628
1628
  const p = new c(
1629
- o[d] + "." + P[s.path],
1629
+ o[d] + "." + F[s.path],
1630
1630
  e.array,
1631
1631
  l,
1632
1632
  u
@@ -1653,7 +1653,7 @@ class bn {
1653
1653
  }
1654
1654
  }
1655
1655
  function Ln(f, t, e) {
1656
- const i = t.attributes, n = new Pe();
1656
+ const i = t.attributes, n = new Fe();
1657
1657
  if (i.POSITION !== void 0) {
1658
1658
  const a = e.json.accessors[i.POSITION], o = a.min, c = a.max;
1659
1659
  if (o !== void 0 && c !== void 0) {
@@ -1679,8 +1679,8 @@ function Ln(f, t, e) {
1679
1679
  const d = e.json.accessors[l.POSITION], h = d.min, p = d.max;
1680
1680
  if (h !== void 0 && p !== void 0) {
1681
1681
  if (o.setX(Math.max(Math.abs(h[0]), Math.abs(p[0]))), o.setY(Math.max(Math.abs(h[1]), Math.abs(p[1]))), o.setZ(Math.max(Math.abs(h[2]), Math.abs(p[2]))), d.normalized) {
1682
- const x = ce(K[d.componentType]);
1683
- o.multiplyScalar(x);
1682
+ const R = ce(K[d.componentType]);
1683
+ o.multiplyScalar(R);
1684
1684
  }
1685
1685
  a.max(o);
1686
1686
  } else
@@ -1710,8 +1710,8 @@ function Le(f, t, e) {
1710
1710
  });
1711
1711
  n.push(r);
1712
1712
  }
1713
- return xe.workingColorSpace !== v && "COLOR_0" in i && console.warn(`THREE.GLTFLoader: Converting vertex colors from "srgb-linear" to "${xe.workingColorSpace}" not supported.`), O(f, t), Ln(f, t, e), Promise.all(n).then(function() {
1714
- return t.targets !== void 0 ? xn(f, t.targets, e) : f;
1713
+ return Re.workingColorSpace !== v && "COLOR_0" in i && console.warn(`THREE.GLTFLoader: Converting vertex colors from "srgb-linear" to "${Re.workingColorSpace}" not supported.`), O(f, t), Ln(f, t, e), Promise.all(n).then(function() {
1714
+ return t.targets !== void 0 ? Rn(f, t.targets, e) : f;
1715
1715
  });
1716
1716
  }
1717
1717
  function Mn() {
@@ -1735,18 +1735,18 @@ function Mn() {
1735
1735
  const l = [], d = [];
1736
1736
  try {
1737
1737
  for (const p of c) {
1738
- const x = p.name || "unknown_file", m = (h = x.split(".").pop()) == null ? void 0 : h.toLowerCase();
1738
+ const R = p.name || "unknown_file", m = (h = R.split(".").pop()) == null ? void 0 : h.toLowerCase();
1739
1739
  if (m === "mtl") continue;
1740
1740
  const g = URL.createObjectURL(p);
1741
1741
  l.push(g);
1742
1742
  let E = null;
1743
1743
  const _ = (T) => {
1744
1744
  const b = T.lengthComputable ? T.loaded / T.total * 100 : 0;
1745
- t.value = `正在加载 ${x}... ${Math.round(b)}%`;
1745
+ t.value = `正在加载 ${R}... ${Math.round(b)}%`;
1746
1746
  };
1747
- switch (t.value = `正在加载 ${x}... 0%`, m) {
1747
+ switch (t.value = `正在加载 ${R}... 0%`, m) {
1748
1748
  case "obj":
1749
- const T = x.replace(/\.obj$/i, ".mtl").toLowerCase();
1749
+ const T = R.replace(/\.obj$/i, ".mtl").toLowerCase();
1750
1750
  if (u.has(T)) {
1751
1751
  const N = u.get(T), M = URL.createObjectURL(N);
1752
1752
  l.push(M);
@@ -1765,10 +1765,10 @@ function Mn() {
1765
1765
  E = (await a.loadAsync(g, _)).scene;
1766
1766
  break;
1767
1767
  default:
1768
- console.warn(`不支持的文件类型: .${m}`), t.value = `不支持的文件类型: ${x}`;
1768
+ console.warn(`不支持的文件类型: .${m}`), t.value = `不支持的文件类型: ${R}`;
1769
1769
  continue;
1770
1770
  }
1771
- E && (E.userData.boundingBox = new Pe().setFromObject(E), d.push(E));
1771
+ E && (E.userData.boundingBox = new Fe().setFromObject(E), d.push(E));
1772
1772
  }
1773
1773
  e.value = d, t.value = "加载完成!";
1774
1774
  } catch (p) {
@@ -1785,10 +1785,10 @@ function wn(f, t = {}) {
1785
1785
  modelLoader: {},
1786
1786
  animation: {},
1787
1787
  clipping: {}
1788
- }, i = Pt(f);
1788
+ }, i = Ft(f);
1789
1789
  e.threeInfo = i;
1790
1790
  const { currentModels: n, getThreeJSObjects: s } = i, { useModelLoaderHook: r, useAnimationHook: a, useClippingHook: o } = t;
1791
- return r && (e.modelLoader = Mn()), a && (e.animation = Ft(s, n)), o && (e.clipping = Dt(s, n)), e;
1791
+ return r && (e.modelLoader = Mn()), a && (e.animation = Pt(s, n)), o && (e.clipping = Dt(s, n)), e;
1792
1792
  }
1793
1793
  const yn = { class: "obj-viewer-container" }, Sn = { class: "buttonGroup-topLeft" }, Nn = { class: "buttonGroup-left" }, In = { class: "buttonGroup-right" }, Cn = { class: "left-panel" }, On = { class: "panel-header" }, vn = {
1794
1794
  key: 0,
@@ -1813,7 +1813,7 @@ const yn = { class: "obj-viewer-container" }, Sn = { class: "buttonGroup-topLeft
1813
1813
  },
1814
1814
  modelLoader: {
1815
1815
  isLoading: p,
1816
- loadingProgress: x,
1816
+ loadingProgress: R,
1817
1817
  loadedModels: m,
1818
1818
  error: g,
1819
1819
  loadModelsFromBlobs: E
@@ -1834,17 +1834,17 @@ const yn = { class: "obj-viewer-container" }, Sn = { class: "buttonGroup-topLeft
1834
1834
  }, Ge = (A) => {
1835
1835
  N.value = A, k();
1836
1836
  };
1837
- Y(() => t.fileBlobs, (A) => {
1837
+ $(() => t.fileBlobs, (A) => {
1838
1838
  A && A.length > 0 && E(A).catch((I) => {
1839
1839
  console.error("加载错误:", I);
1840
1840
  });
1841
1841
  }, {
1842
1842
  immediate: !0,
1843
1843
  deep: !0
1844
- }), Y(m, (A) => {
1844
+ }), $(m, (A) => {
1845
1845
  A && A.length > 0 && l(A);
1846
- }), Y(g, (A) => {
1847
- A && Re.error(`模型加载失败: ${A}`);
1846
+ }), $(g, (A) => {
1847
+ A && xe.error(`模型加载失败: ${A}`);
1848
1848
  });
1849
1849
  const le = (A) => {
1850
1850
  i.value = !0, n.value = A, A === "剖面视图" && !L.value && M();
@@ -1855,7 +1855,7 @@ const yn = { class: "obj-viewer-container" }, Sn = { class: "buttonGroup-topLeft
1855
1855
  try {
1856
1856
  a(), e.value && (W = new ResizeObserver(o), W.observe(e.value));
1857
1857
  } catch (A) {
1858
- console.error("Three.js 初始化失败:", A), Re.error("渲染引擎初始化失败!");
1858
+ console.error("Three.js 初始化失败:", A), xe.error("渲染引擎初始化失败!");
1859
1859
  }
1860
1860
  }), ze(() => {
1861
1861
  n.value = "", W && W.disconnect(), _.value && w(), u();
@@ -1868,29 +1868,29 @@ const yn = { class: "obj-viewer-container" }, Sn = { class: "buttonGroup-topLeft
1868
1868
  class: "threejs-container"
1869
1869
  }, null, 512),
1870
1870
  S("div", Sn, [
1871
- F(U, {
1871
+ P(U, {
1872
1872
  name: "viewReset",
1873
1873
  size: "24",
1874
1874
  onClick: D(r),
1875
1875
  title: "重置"
1876
1876
  }, null, 8, ["onClick"]),
1877
- F(U, {
1877
+ P(U, {
1878
1878
  name: "fangda",
1879
1879
  size: "24",
1880
1880
  title: "放大"
1881
1881
  }),
1882
- F(U, {
1882
+ P(U, {
1883
1883
  name: "suoxiao",
1884
1884
  size: "24",
1885
1885
  title: "缩小"
1886
1886
  }),
1887
- F(U, {
1887
+ P(U, {
1888
1888
  name: "lookAround",
1889
1889
  size: "24",
1890
1890
  onClick: D(T),
1891
1891
  title: D(_) ? "停止动画" : "动画视图"
1892
1892
  }, null, 8, ["onClick", "title"]),
1893
- F(U, {
1893
+ P(U, {
1894
1894
  name: "zuobiaoxi",
1895
1895
  size: "24",
1896
1896
  active: D(d),
@@ -1900,7 +1900,7 @@ const yn = { class: "obj-viewer-container" }, Sn = { class: "buttonGroup-topLeft
1900
1900
  ]),
1901
1901
  S("div", Nn, [
1902
1902
  de(A.$slots, "button-left", { switchRightPanel: le }, void 0, !0),
1903
- F(U, {
1903
+ P(U, {
1904
1904
  name: "clipping",
1905
1905
  size: "24",
1906
1906
  onClick: I[0] || (I[0] = (je) => le("剖面视图")),
@@ -1920,9 +1920,9 @@ const yn = { class: "obj-viewer-container" }, Sn = { class: "buttonGroup-topLeft
1920
1920
  onClick: I[1] || (I[1] = (je) => i.value = !1)
1921
1921
  }, " X ")
1922
1922
  ]),
1923
- F(Ue, { "max-height": "650px" }, {
1924
- default: $e(() => [
1925
- n.value === "剖面视图" ? (J(), Ye(Ht, {
1923
+ P(Ue, { "max-height": "650px" }, {
1924
+ default: Ye(() => [
1925
+ n.value === "剖面视图" ? (J(), $e(Ht, {
1926
1926
  key: 0,
1927
1927
  value: D(N),
1928
1928
  onChange: Ge
@@ -1935,7 +1935,7 @@ const yn = { class: "obj-viewer-container" }, Sn = { class: "buttonGroup-topLeft
1935
1935
  ]),
1936
1936
  D(p) ? (J(), ue("div", vn, [
1937
1937
  I[2] || (I[2] = S("div", { class: "loading-spinner" }, null, -1)),
1938
- S("p", null, he(D(x)), 1)
1938
+ S("p", null, he(D(R)), 1)
1939
1939
  ])) : fe("", !0)
1940
1940
  ]);
1941
1941
  };