aptechka 0.12.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (430) hide show
  1. package/{client-lib/Animation-uimN7sdT.js → lib/Animation-DF5jPON_.js} +23 -28
  2. package/lib/Animation-seVC6-fS.cjs +1 -0
  3. package/lib/Composed-ChlKoJEp.cjs +1 -0
  4. package/lib/Composed-CoX1ImVk.js +31 -0
  5. package/lib/Damped-BDO-F13V.js +53 -0
  6. package/lib/Damped-C7WAqKPh.cjs +1 -0
  7. package/lib/Derived-B-2UXnVE.cjs +1 -0
  8. package/lib/Derived-CDGpSMKu.js +56 -0
  9. package/{client-lib/SourceManager--L_rA28b.js → lib/SourceManager-B8-EMNnd.js} +26 -30
  10. package/lib/SourceManager-TzU9Rw08.cjs +1 -0
  11. package/lib/Store-BnA-dJsE.cjs +1 -0
  12. package/{client-lib/Store-Qr3SNOSf.js → lib/Store-DGtldlBH.js} +29 -34
  13. package/lib/Tweened-CHhmfvzo.js +44 -0
  14. package/lib/Tweened-DSXD0I0k.cjs +1 -0
  15. package/lib/Viewport-BmLTk_6k.cjs +1 -0
  16. package/lib/Viewport-DTlImj28.js +123 -0
  17. package/lib/accordion/index.cjs +1 -0
  18. package/lib/accordion/index.js +167 -0
  19. package/{client-lib → lib}/animation/index.cjs +1 -1
  20. package/lib/animation/index.js +8 -0
  21. package/lib/attribute/index.cjs +1 -0
  22. package/{client-lib → lib}/attribute/index.js +15 -20
  23. package/lib/canvas/index.cjs +1 -0
  24. package/lib/canvas/index.js +111 -0
  25. package/lib/checkbox/index.cjs +1 -0
  26. package/{client-lib → lib}/checkbox/index.js +20 -25
  27. package/lib/class-linked-status/index.cjs +1 -0
  28. package/lib/class-linked-status/index.js +45 -0
  29. package/lib/connector/index.cjs +1 -0
  30. package/{client-lib → lib}/connector/index.js +14 -18
  31. package/lib/controls/index.cjs +1 -0
  32. package/lib/controls/index.js +207 -0
  33. package/{client-lib/createStylesheet-BqjaCUhm.cjs → lib/createStylesheet-CaDI99iu.cjs} +1 -1
  34. package/{client-lib/createStylesheet-DNG2b5X4.js → lib/createStylesheet-DO5t5q-m.js} +1 -1
  35. package/lib/css-property/index.cjs +1 -0
  36. package/lib/css-property/index.js +58 -0
  37. package/lib/css-unit-parser/index.cjs +8 -0
  38. package/lib/css-unit-parser/index.js +31 -0
  39. package/{client-lib → lib}/dev/index.cjs +1 -1
  40. package/{client-lib → lib}/dev/index.js +1 -1
  41. package/{client-lib → lib}/device/index.cjs +1 -1
  42. package/{client-lib → lib}/device/index.js +1 -1
  43. package/{client-lib → lib}/element-constructor/index.cjs +1 -1
  44. package/{client-lib → lib}/element-constructor/index.js +2 -2
  45. package/lib/element-resizer/index.cjs +1 -0
  46. package/{client-lib → lib}/element-resizer/index.js +12 -16
  47. package/lib/en3/helpers/index.cjs +1 -0
  48. package/{client-lib → lib}/en3/helpers/index.js +612 -646
  49. package/{client-lib → lib}/en3/index.cjs +1 -1
  50. package/lib/en3/index.js +6 -0
  51. package/{client-lib → lib}/en3/libs/index.js +1 -2
  52. package/lib/en3/loaders/index.cjs +1 -0
  53. package/{client-lib → lib}/en3/loaders/index.js +152 -167
  54. package/lib/en3/misc/index.cjs +10 -0
  55. package/{client-lib → lib}/en3/misc/index.js +18 -23
  56. package/{client-lib → lib}/en3/utils/index.cjs +1 -1
  57. package/{client-lib → lib}/en3/utils/index.js +2 -2
  58. package/lib/en3-C1fLmsjs.cjs +8 -0
  59. package/{client-lib/en3-THFHEReu.js → lib/en3-x-Ki30MY.js} +59 -64
  60. package/{client-lib → lib}/image/index.cjs +1 -1
  61. package/{client-lib → lib}/image/index.js +1 -1
  62. package/{client-lib/index-BuvwT3dS.js → lib/index-BhbT9PrL.js} +35 -40
  63. package/lib/index-BpsQqM-8.cjs +9 -0
  64. package/lib/intersector/index.cjs +1 -0
  65. package/{client-lib → lib}/intersector/index.js +12 -16
  66. package/lib/ladder/index.cjs +1 -0
  67. package/{client-lib → lib}/ladder/index.js +20 -25
  68. package/lib/layout-box/index.cjs +1 -0
  69. package/lib/layout-box/index.js +318 -0
  70. package/lib/loading/index.cjs +1 -0
  71. package/{client-lib → lib}/loading/index.js +17 -21
  72. package/lib/media/index.cjs +1 -0
  73. package/lib/media/index.js +26 -0
  74. package/lib/modal/index.cjs +1 -0
  75. package/{client-lib → lib}/modal/index.js +22 -26
  76. package/lib/morph/index.cjs +1 -0
  77. package/lib/morph/index.js +225 -0
  78. package/lib/notifier/index.cjs +1 -0
  79. package/lib/notifier/index.js +36 -0
  80. package/lib/pointer/index.cjs +1 -0
  81. package/{client-lib → lib}/pointer/index.js +37 -41
  82. package/lib/popover/index.cjs +1 -0
  83. package/{client-lib → lib}/popover/index.js +71 -79
  84. package/lib/router/index.cjs +1 -0
  85. package/{client-lib → lib}/router/index.js +54 -60
  86. package/lib/scroll/index.cjs +1 -0
  87. package/lib/scroll/index.js +1131 -0
  88. package/lib/scroll-entries/index.cjs +1 -0
  89. package/{client-lib → lib}/scroll-entries/index.js +11 -15
  90. package/{client-lib → lib}/select/index.cjs +1 -1
  91. package/{client-lib → lib}/select/index.js +1 -1
  92. package/lib/sequence/index.cjs +1 -0
  93. package/{client-lib → lib}/sequence/index.js +26 -30
  94. package/lib/slicer/index.cjs +11 -0
  95. package/{client-lib → lib}/slicer/index.js +27 -31
  96. package/lib/source/index.cjs +5 -0
  97. package/{client-lib → lib}/source/index.js +19 -24
  98. package/lib/store/index.cjs +1 -0
  99. package/{client-lib → lib}/store/index.js +29 -33
  100. package/{client-lib → lib}/svg-path-data/index.js +3 -6
  101. package/lib/tags-4AoxVUe3.js +833 -0
  102. package/lib/tags-v-OSVkiQ.cjs +1 -0
  103. package/{client-lib → lib}/theme/index.cjs +1 -1
  104. package/{client-lib → lib}/theme/index.js +2 -2
  105. package/lib/ticker/index.cjs +1 -0
  106. package/lib/ticker/index.js +119 -0
  107. package/{client-lib/traverseMaterials-BtBXV88O.cjs → lib/traverseMaterials-CD_3_56D.cjs} +1 -1
  108. package/{client-lib/traverseMaterials-BKSwwNmo.js → lib/traverseMaterials-mGC2_FkG.js} +1 -1
  109. package/lib/tweaker/index.cjs +10 -0
  110. package/{client-lib → lib}/tweaker/index.js +271 -279
  111. package/{client-lib → lib}/utils/index.js +1 -2
  112. package/lib/video/index.cjs +1 -0
  113. package/{client-lib → lib}/video/index.js +13 -17
  114. package/lib/window-resizer/index.cjs +1 -0
  115. package/lib/window-resizer/index.js +42 -0
  116. package/package.json +351 -378
  117. package/client-lib/Animation-BInSRYNr.cjs +0 -1
  118. package/client-lib/Composed-Fa7owymK.js +0 -35
  119. package/client-lib/Composed-Iihn8fT4.cjs +0 -1
  120. package/client-lib/Damped-Da3EnNN4.cjs +0 -1
  121. package/client-lib/Damped-yrNXlkDE.js +0 -57
  122. package/client-lib/Derived-CNbsNMn_.cjs +0 -1
  123. package/client-lib/Derived-rInkx3e4.js +0 -60
  124. package/client-lib/SourceManager-D6D2LVKf.cjs +0 -1
  125. package/client-lib/Store-Cr3VaD9G.cjs +0 -1
  126. package/client-lib/Tweened-CjgvoOwL.js +0 -48
  127. package/client-lib/Tweened-DksN-Rz6.cjs +0 -1
  128. package/client-lib/Viewport-BBYt1Ivy.cjs +0 -1
  129. package/client-lib/Viewport-Cgtq2I_K.js +0 -127
  130. package/client-lib/accordion/AccordionElement.d.ts +0 -30
  131. package/client-lib/accordion/index.cjs +0 -1
  132. package/client-lib/accordion/index.d.ts +0 -1
  133. package/client-lib/accordion/index.js +0 -176
  134. package/client-lib/animation/Animation.d.ts +0 -35
  135. package/client-lib/animation/Damped.d.ts +0 -19
  136. package/client-lib/animation/Tweened.d.ts +0 -15
  137. package/client-lib/animation/index.d.ts +0 -3
  138. package/client-lib/animation/index.js +0 -8
  139. package/client-lib/attribute/index.cjs +0 -1
  140. package/client-lib/attribute/index.d.ts +0 -15
  141. package/client-lib/canvas/index.cjs +0 -1
  142. package/client-lib/canvas/index.d.ts +0 -35
  143. package/client-lib/canvas/index.js +0 -119
  144. package/client-lib/checkbox/index.cjs +0 -1
  145. package/client-lib/checkbox/index.d.ts +0 -14
  146. package/client-lib/class-linked-status/index.cjs +0 -1
  147. package/client-lib/class-linked-status/index.d.ts +0 -12
  148. package/client-lib/class-linked-status/index.js +0 -49
  149. package/client-lib/connector/index.cjs +0 -1
  150. package/client-lib/connector/index.d.ts +0 -15
  151. package/client-lib/controls/AutoplayControls.d.ts +0 -17
  152. package/client-lib/controls/Controls.d.ts +0 -9
  153. package/client-lib/controls/DragControls.d.ts +0 -16
  154. package/client-lib/controls/KeyboardControls.d.ts +0 -14
  155. package/client-lib/controls/WheelControls.d.ts +0 -19
  156. package/client-lib/controls/index.cjs +0 -1
  157. package/client-lib/controls/index.d.ts +0 -5
  158. package/client-lib/controls/index.js +0 -213
  159. package/client-lib/counter/index.d.ts +0 -6
  160. package/client-lib/css-property/index.cjs +0 -1
  161. package/client-lib/css-property/index.d.ts +0 -17
  162. package/client-lib/css-property/index.js +0 -62
  163. package/client-lib/css-unit-parser/index.cjs +0 -8
  164. package/client-lib/css-unit-parser/index.d.ts +0 -6
  165. package/client-lib/css-unit-parser/index.js +0 -36
  166. package/client-lib/css-value-parser/index.d.ts +0 -6
  167. package/client-lib/dev/index.d.ts +0 -1
  168. package/client-lib/device/Device.d.ts +0 -19
  169. package/client-lib/device/Viewport.d.ts +0 -29
  170. package/client-lib/device/index.d.ts +0 -2
  171. package/client-lib/element-constructor/ElementConstructor.d.ts +0 -75
  172. package/client-lib/element-constructor/createStylesheet.d.ts +0 -3
  173. package/client-lib/element-constructor/createTheme.d.ts +0 -13
  174. package/client-lib/element-constructor/index.d.ts +0 -4
  175. package/client-lib/element-constructor/knownSvgTags.d.ts +0 -1
  176. package/client-lib/element-constructor/tags.d.ts +0 -119
  177. package/client-lib/element-resizer/index.cjs +0 -1
  178. package/client-lib/element-resizer/index.d.ts +0 -10
  179. package/client-lib/en3/core/En3Raycaster.d.ts +0 -21
  180. package/client-lib/en3/core/En3View.d.ts +0 -40
  181. package/client-lib/en3/core/en3.d.ts +0 -39
  182. package/client-lib/en3/core/en3Cache.d.ts +0 -4
  183. package/client-lib/en3/helpers/En3ComposerManager.d.ts +0 -5
  184. package/client-lib/en3/helpers/En3GridHelper.d.ts +0 -8
  185. package/client-lib/en3/helpers/En3Helpers.d.ts +0 -5
  186. package/client-lib/en3/helpers/En3Object3dManager.d.ts +0 -14
  187. package/client-lib/en3/helpers/En3OrbitControls.d.ts +0 -8
  188. package/client-lib/en3/helpers/En3ParametersManager.d.ts +0 -16
  189. package/client-lib/en3/helpers/En3TransformControls.d.ts +0 -8
  190. package/client-lib/en3/helpers/index.cjs +0 -1
  191. package/client-lib/en3/helpers/index.d.ts +0 -2
  192. package/client-lib/en3/index.d.ts +0 -3
  193. package/client-lib/en3/index.js +0 -6
  194. package/client-lib/en3/libs/MeshoptDecoder.d.ts +0 -1
  195. package/client-lib/en3/libs/index.d.ts +0 -1
  196. package/client-lib/en3/loaders/En3GLTFLoader.d.ts +0 -12
  197. package/client-lib/en3/loaders/En3TextureLoader.d.ts +0 -8
  198. package/client-lib/en3/loaders/index.cjs +0 -1
  199. package/client-lib/en3/loaders/index.d.ts +0 -3
  200. package/client-lib/en3/loaders/loaders.d.ts +0 -13
  201. package/client-lib/en3/misc/En3ModifiedMaterial.d.ts +0 -33
  202. package/client-lib/en3/misc/En3SourceManager.d.ts +0 -32
  203. package/client-lib/en3/misc/index.cjs +0 -10
  204. package/client-lib/en3/misc/index.d.ts +0 -2
  205. package/client-lib/en3/objects/En3Clip.d.ts +0 -15
  206. package/client-lib/en3/objects/En3ClipHelpers.d.ts +0 -6
  207. package/client-lib/en3/objects/En3GLTF.d.ts +0 -11
  208. package/client-lib/en3/objects/En3Image.d.ts +0 -8
  209. package/client-lib/en3/objects/En3ImageLike.d.ts +0 -25
  210. package/client-lib/en3/objects/En3SourceConsumer.d.ts +0 -5
  211. package/client-lib/en3/objects/En3Video.d.ts +0 -13
  212. package/client-lib/en3/objects/fluid/Advection.d.ts +0 -30
  213. package/client-lib/en3/objects/fluid/Divergence.d.ts +0 -23
  214. package/client-lib/en3/objects/fluid/En3Fluid.d.ts +0 -16
  215. package/client-lib/en3/objects/fluid/En3FluidElement.d.ts +0 -13
  216. package/client-lib/en3/objects/fluid/En3FluidPointer.d.ts +0 -13
  217. package/client-lib/en3/objects/fluid/ExternalForce.d.ts +0 -19
  218. package/client-lib/en3/objects/fluid/Poisson.d.ts +0 -24
  219. package/client-lib/en3/objects/fluid/Pressure.d.ts +0 -26
  220. package/client-lib/en3/objects/fluid/ShaderPass.d.ts +0 -24
  221. package/client-lib/en3/objects/fluid/Simulation.d.ts +0 -33
  222. package/client-lib/en3/objects/fluid/Viscous.d.ts +0 -30
  223. package/client-lib/en3/objects/fluid/index.d.ts +0 -3
  224. package/client-lib/en3/objects/index.d.ts +0 -7
  225. package/client-lib/en3/utils/coverTexture.d.ts +0 -7
  226. package/client-lib/en3/utils/dispose.d.ts +0 -3
  227. package/client-lib/en3/utils/getCurrentViewport.d.ts +0 -9
  228. package/client-lib/en3/utils/index.d.ts +0 -5
  229. package/client-lib/en3/utils/traverseMaterials.d.ts +0 -3
  230. package/client-lib/en3/utils/traverseMeshes.d.ts +0 -3
  231. package/client-lib/en3-CBBYE8rb.cjs +0 -8
  232. package/client-lib/image/index.d.ts +0 -11
  233. package/client-lib/index-Ctct2GyP.cjs +0 -9
  234. package/client-lib/intersector/index.cjs +0 -1
  235. package/client-lib/intersector/index.d.ts +0 -10
  236. package/client-lib/ladder/index.cjs +0 -1
  237. package/client-lib/ladder/index.d.ts +0 -24
  238. package/client-lib/layout-box/index.cjs +0 -1
  239. package/client-lib/layout-box/index.d.ts +0 -96
  240. package/client-lib/layout-box/index.js +0 -326
  241. package/client-lib/libs/path-data-polyfill.d.ts +0 -1
  242. package/client-lib/loading/index.cjs +0 -1
  243. package/client-lib/loading/index.d.ts +0 -39
  244. package/client-lib/media/index.cjs +0 -1
  245. package/client-lib/media/index.d.ts +0 -12
  246. package/client-lib/media/index.js +0 -30
  247. package/client-lib/modal/ModalElement.d.ts +0 -13
  248. package/client-lib/modal/index.cjs +0 -1
  249. package/client-lib/modal/index.d.ts +0 -1
  250. package/client-lib/morph/Link.d.ts +0 -7
  251. package/client-lib/morph/Morph.d.ts +0 -37
  252. package/client-lib/morph/index.cjs +0 -1
  253. package/client-lib/morph/index.d.ts +0 -1
  254. package/client-lib/morph/index.js +0 -235
  255. package/client-lib/notifier/index.cjs +0 -1
  256. package/client-lib/notifier/index.d.ts +0 -8
  257. package/client-lib/notifier/index.js +0 -40
  258. package/client-lib/order/index.d.ts +0 -22
  259. package/client-lib/pointer/Pointer.d.ts +0 -23
  260. package/client-lib/pointer/PointerElement.d.ts +0 -14
  261. package/client-lib/pointer/index.cjs +0 -1
  262. package/client-lib/pointer/index.d.ts +0 -2
  263. package/client-lib/popover/PopoverButtonElement.d.ts +0 -15
  264. package/client-lib/popover/PopoverElement.d.ts +0 -26
  265. package/client-lib/popover/index.cjs +0 -1
  266. package/client-lib/popover/index.d.ts +0 -2
  267. package/client-lib/router/Link.d.ts +0 -7
  268. package/client-lib/router/Route.d.ts +0 -21
  269. package/client-lib/router/Router.d.ts +0 -41
  270. package/client-lib/router/index.cjs +0 -1
  271. package/client-lib/router/index.d.ts +0 -2
  272. package/client-lib/scroll/ScrollBulletButtonsElement.d.ts +0 -12
  273. package/client-lib/scroll/ScrollButtonElement.d.ts +0 -6
  274. package/client-lib/scroll/ScrollElement.d.ts +0 -82
  275. package/client-lib/scroll/ScrollSection.d.ts +0 -23
  276. package/client-lib/scroll/ScrollSegmentElement.d.ts +0 -63
  277. package/client-lib/scroll/ScrollSetButtonElement.d.ts +0 -10
  278. package/client-lib/scroll/ScrollStepButtonElement.d.ts +0 -10
  279. package/client-lib/scroll/ScrollUserElement.d.ts +0 -7
  280. package/client-lib/scroll/ScrollbarElement.d.ts +0 -14
  281. package/client-lib/scroll/index.cjs +0 -1
  282. package/client-lib/scroll/index.d.ts +0 -6
  283. package/client-lib/scroll/index.js +0 -1154
  284. package/client-lib/scroll-entries/index.cjs +0 -1
  285. package/client-lib/scroll-entries/index.d.ts +0 -21
  286. package/client-lib/select/SelectElement.d.ts +0 -24
  287. package/client-lib/select/SelectHeadElement.d.ts +0 -13
  288. package/client-lib/select/SelectOptionElement.d.ts +0 -14
  289. package/client-lib/select/SelectUserElement.d.ts +0 -7
  290. package/client-lib/select/index.d.ts +0 -4
  291. package/client-lib/sequence/index.cjs +0 -1
  292. package/client-lib/sequence/index.d.ts +0 -21
  293. package/client-lib/slicer/DecoderElement.d.ts +0 -11
  294. package/client-lib/slicer/Letter.d.ts +0 -11
  295. package/client-lib/slicer/SlicerElement.d.ts +0 -21
  296. package/client-lib/slicer/Word.d.ts +0 -17
  297. package/client-lib/slicer/index.cjs +0 -11
  298. package/client-lib/slicer/index.d.ts +0 -4
  299. package/client-lib/source/SourceClass.d.ts +0 -11
  300. package/client-lib/source/SourceElement.d.ts +0 -25
  301. package/client-lib/source/SourceManager.d.ts +0 -14
  302. package/client-lib/source/SourceSet.d.ts +0 -9
  303. package/client-lib/source/index.cjs +0 -5
  304. package/client-lib/source/index.d.ts +0 -4
  305. package/client-lib/store/Cached.d.ts +0 -18
  306. package/client-lib/store/Composed.d.ts +0 -8
  307. package/client-lib/store/Derived.d.ts +0 -13
  308. package/client-lib/store/DerivedArray.d.ts +0 -13
  309. package/client-lib/store/Resource.d.ts +0 -12
  310. package/client-lib/store/Store.d.ts +0 -76
  311. package/client-lib/store/StoreRegistry.d.ts +0 -23
  312. package/client-lib/store/index.cjs +0 -1
  313. package/client-lib/store/index.d.ts +0 -7
  314. package/client-lib/svg-path-data/index.d.ts +0 -15
  315. package/client-lib/tags-B0do5eeb.cjs +0 -1
  316. package/client-lib/tags-wG5k157g.js +0 -860
  317. package/client-lib/test/starting-style/index.d.ts +0 -1
  318. package/client-lib/theme/index.d.ts +0 -35
  319. package/client-lib/ticker/index.cjs +0 -1
  320. package/client-lib/ticker/index.d.ts +0 -22
  321. package/client-lib/ticker/index.js +0 -125
  322. package/client-lib/tweaker/TweakerBooleanManagerElement.d.ts +0 -11
  323. package/client-lib/tweaker/TweakerColorManagerElement.d.ts +0 -11
  324. package/client-lib/tweaker/TweakerElement.d.ts +0 -18
  325. package/client-lib/tweaker/TweakerFieldElement.d.ts +0 -21
  326. package/client-lib/tweaker/TweakerFolderElement.d.ts +0 -24
  327. package/client-lib/tweaker/TweakerLinkManagerElement.d.ts +0 -11
  328. package/client-lib/tweaker/TweakerNumberManagerElement.d.ts +0 -14
  329. package/client-lib/tweaker/TweakerSelectManagerElement.d.ts +0 -11
  330. package/client-lib/tweaker/TweakerStoreManagerElement.d.ts +0 -10
  331. package/client-lib/tweaker/TweakerStringManagerElement.d.ts +0 -11
  332. package/client-lib/tweaker/index.cjs +0 -10
  333. package/client-lib/tweaker/index.d.ts +0 -1
  334. package/client-lib/tweaker/tweakerManagerConstructors.d.ts +0 -6
  335. package/client-lib/tweaker/tweakerStorage.d.ts +0 -23
  336. package/client-lib/utils/array.d.ts +0 -2
  337. package/client-lib/utils/attributes.d.ts +0 -2
  338. package/client-lib/utils/browser.d.ts +0 -1
  339. package/client-lib/utils/bytes.d.ts +0 -1
  340. package/client-lib/utils/canvas.d.ts +0 -7
  341. package/client-lib/utils/collisions.d.ts +0 -4
  342. package/client-lib/utils/coordinates.d.ts +0 -14
  343. package/client-lib/utils/cssom.d.ts +0 -5
  344. package/client-lib/utils/decoding.d.ts +0 -2
  345. package/client-lib/utils/dom.d.ts +0 -5
  346. package/client-lib/utils/easings.d.ts +0 -17
  347. package/client-lib/utils/events.d.ts +0 -8
  348. package/client-lib/utils/file.d.ts +0 -1
  349. package/client-lib/utils/function.d.ts +0 -2
  350. package/client-lib/utils/gestures.d.ts +0 -1
  351. package/client-lib/utils/index.d.ts +0 -26
  352. package/client-lib/utils/layout.d.ts +0 -3
  353. package/client-lib/utils/math.d.ts +0 -12
  354. package/client-lib/utils/number.d.ts +0 -3
  355. package/client-lib/utils/object.d.ts +0 -9
  356. package/client-lib/utils/polyfills.d.ts +0 -1
  357. package/client-lib/utils/promises.d.ts +0 -1
  358. package/client-lib/utils/string.d.ts +0 -8
  359. package/client-lib/utils/style.d.ts +0 -2
  360. package/client-lib/utils/ts-shape.d.ts +0 -20
  361. package/client-lib/utils/ts-utility.d.ts +0 -26
  362. package/client-lib/utils/url.d.ts +0 -9
  363. package/client-lib/video/index.cjs +0 -1
  364. package/client-lib/video/index.d.ts +0 -22
  365. package/client-lib/window-resizer/index.cjs +0 -1
  366. package/client-lib/window-resizer/index.d.ts +0 -10
  367. package/client-lib/window-resizer/index.js +0 -46
  368. package/server-lib/optimizer/FFmpeg.d.ts +0 -10
  369. package/server-lib/optimizer/generateFavicon.d.ts +0 -4
  370. package/server-lib/optimizer/generateSequence.d.ts +0 -3
  371. package/server-lib/optimizer/generateSprite.d.ts +0 -4
  372. package/server-lib/optimizer/index.d.ts +0 -10
  373. package/server-lib/optimizer/index.js +0 -404
  374. package/server-lib/optimizer/inputFiles.d.ts +0 -26
  375. package/server-lib/optimizer/optimize.d.ts +0 -13
  376. package/server-lib/optimizer/optimizeImage.d.ts +0 -4
  377. package/server-lib/optimizer/optimizeVideo.d.ts +0 -3
  378. package/server-lib/optimizer/optimizer.d.ts +0 -5
  379. package/server-lib/optimizer/types.d.ts +0 -51
  380. package/server-lib/optimizer/utils.d.ts +0 -1
  381. package/server-lib/utils/buffer.d.ts +0 -1
  382. package/server-lib/utils/fs.d.ts +0 -11
  383. package/server-lib/utils/index.d.ts +0 -5
  384. package/server-lib/utils/index.js +0 -65
  385. package/server-lib/utils/math.d.ts +0 -1
  386. package/server-lib/utils/path.d.ts +0 -3
  387. package/server-lib/utils/types.d.ts +0 -8
  388. /package/{client-lib → lib}/attributes-69we3byR.js +0 -0
  389. /package/{client-lib → lib}/attributes-Bf2svn4j.cjs +0 -0
  390. /package/{client-lib → lib}/browser-0zX67oeU.js +0 -0
  391. /package/{client-lib → lib}/browser-CpzFX2xg.cjs +0 -0
  392. /package/{client-lib → lib}/canvas-CU5Xjahf.cjs +0 -0
  393. /package/{client-lib → lib}/canvas-DeZ0SLUJ.js +0 -0
  394. /package/{client-lib → lib}/coordinates-CgdGoSYs.js +0 -0
  395. /package/{client-lib → lib}/coordinates-D8Np3cPD.cjs +0 -0
  396. /package/{client-lib → lib}/createTheme-CHnsCgAr.js +0 -0
  397. /package/{client-lib → lib}/createTheme-Cfaw9UmV.cjs +0 -0
  398. /package/{client-lib → lib}/css-value-parser/index.cjs +0 -0
  399. /package/{client-lib → lib}/css-value-parser/index.js +0 -0
  400. /package/{client-lib → lib}/dom-JBOkFLTh.cjs +0 -0
  401. /package/{client-lib → lib}/dom-P5QbAASX.js +0 -0
  402. /package/{client-lib → lib}/easings-BKi40vHz.js +0 -0
  403. /package/{client-lib → lib}/easings-DsS5-Kqc.cjs +0 -0
  404. /package/{client-lib → lib}/en3/libs/index.cjs +0 -0
  405. /package/{client-lib → lib}/events-BGwqaxVW.cjs +0 -0
  406. /package/{client-lib → lib}/events-CJTUMSLU.js +0 -0
  407. /package/{client-lib → lib}/file-EevnUtRj.cjs +0 -0
  408. /package/{client-lib → lib}/file-lxi_oXJf.js +0 -0
  409. /package/{client-lib → lib}/function-C10DGppn.js +0 -0
  410. /package/{client-lib → lib}/function-MthRj-GJ.cjs +0 -0
  411. /package/{client-lib → lib}/gestures-D2Fdra_G.js +0 -0
  412. /package/{client-lib → lib}/gestures-DHLrn6Q8.cjs +0 -0
  413. /package/{client-lib → lib}/layout-8ryRAMGJ.cjs +0 -0
  414. /package/{client-lib → lib}/layout-HoBT_Da2.js +0 -0
  415. /package/{client-lib → lib}/math-BOBiC4TN.js +0 -0
  416. /package/{client-lib → lib}/math-GDWEqu7y.cjs +0 -0
  417. /package/{client-lib → lib}/object-CCiXnER2.cjs +0 -0
  418. /package/{client-lib → lib}/object-D6MVWB4l.js +0 -0
  419. /package/{client-lib → lib}/order/index.cjs +0 -0
  420. /package/{client-lib → lib}/order/index.js +0 -0
  421. /package/{client-lib → lib}/polyfills-CM4SCDTt.cjs +0 -0
  422. /package/{client-lib → lib}/polyfills-X6KXuHg-.js +0 -0
  423. /package/{client-lib → lib}/string-DhgS_iFl.cjs +0 -0
  424. /package/{client-lib → lib}/string-f0Dnk0L1.js +0 -0
  425. /package/{client-lib → lib}/style-At6aDoqG.cjs +0 -0
  426. /package/{client-lib → lib}/style-j2TwriJ_.js +0 -0
  427. /package/{client-lib → lib}/svg-path-data/index.cjs +0 -0
  428. /package/{client-lib → lib}/url-C3dWnJQg.cjs +0 -0
  429. /package/{client-lib → lib}/url-DMNfW7uN.js +0 -0
  430. /package/{client-lib → lib}/utils/index.cjs +0 -0
@@ -1,13 +1,9 @@
1
- var ce = (d, t, e) => {
2
- if (!t.has(d))
3
- throw TypeError("Cannot " + e);
1
+ var ce = (d) => {
2
+ throw TypeError(d);
4
3
  };
5
- var S = (d, t, e) => (ce(d, t, "read from private field"), e ? e.call(d) : t.get(d)), j = (d, t, e) => {
6
- if (t.has(d))
7
- throw TypeError("Cannot add the same private member more than once");
8
- t instanceof WeakSet ? t.add(d) : t.set(d, e);
9
- }, Z = (d, t, e, r) => (ce(d, t, "write to private field"), r ? r.call(d, e) : t.set(d, e), e);
10
- var ue = (d, t, e) => new Promise((r, n) => {
4
+ var ue = (d, t, e) => t.has(d) || ce("Cannot " + e);
5
+ var S = (d, t, e) => (ue(d, t, "read from private field"), e ? e.call(d) : t.get(d)), j = (d, t, e) => t.has(d) ? ce("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(d) : t.set(d, e), Z = (d, t, e, r) => (ue(d, t, "write to private field"), r ? r.call(d, e) : t.set(d, e), e);
6
+ var le = (d, t, e) => new Promise((r, n) => {
11
7
  var s = (o) => {
12
8
  try {
13
9
  a(e.next(o));
@@ -23,12 +19,12 @@ var ue = (d, t, e) => new Promise((r, n) => {
23
19
  }, a = (o) => o.done ? r(o.value) : Promise.resolve(o.value).then(s, i);
24
20
  a((e = e.apply(d, t)).next());
25
21
  });
26
- import { TrianglesDrawMode as De, TriangleFanDrawMode as re, TriangleStripDrawMode as Ee, Loader as Fe, LoaderUtils as X, FileLoader as Le, Color as G, LinearSRGBColorSpace as I, SpotLight as Pe, PointLight as ke, DirectionalLight as He, MeshBasicMaterial as V, SRGBColorSpace as z, MeshPhysicalMaterial as y, Vector2 as _e, Matrix4 as Y, Vector3 as B, Quaternion as Se, InstancedMesh as Ge, InstancedBufferAttribute as Be, Object3D as Me, TextureLoader as ye, ImageBitmapLoader as Ue, BufferAttribute as J, InterleavedBuffer as ve, InterleavedBufferAttribute as je, LinearFilter as we, LinearMipmapLinearFilter as be, RepeatWrapping as ie, PointsMaterial as Ke, Material as $, LineBasicMaterial as Ve, MeshStandardMaterial as Ne, DoubleSide as Xe, PropertyBinding as ze, BufferGeometry as qe, SkinnedMesh as We, Mesh as Ye, LineSegments as Qe, Line as Ze, LineLoop as Je, Points as $e, Group as ee, PerspectiveCamera as et, MathUtils as tt, OrthographicCamera as nt, Skeleton as st, AnimationClip as rt, Bone as it, InterpolateLinear as Ie, ColorManagement as le, NearestFilter as ot, NearestMipmapNearestFilter as at, LinearMipmapNearestFilter as ct, NearestMipmapLinearFilter as ut, ClampToEdgeWrapping as lt, MirroredRepeatWrapping as dt, InterpolateDiscrete as ft, FrontSide as ht, Texture as de, VectorKeyframeTrack as fe, NumberKeyframeTrack as he, QuaternionKeyframeTrack as pe, Box3 as pt, Sphere as mt, Interpolant as At } from "three";
27
- import { e as N, a as b, d as me } from "../../en3-THFHEReu.js";
28
- function Ae(d, t) {
29
- if (t === De)
22
+ import { TrianglesDrawMode as Fe, TriangleFanDrawMode as re, TriangleStripDrawMode as Le, Loader as Pe, LoaderUtils as X, FileLoader as _e, Color as G, LinearSRGBColorSpace as I, SpotLight as ke, PointLight as He, DirectionalLight as Ge, MeshBasicMaterial as V, SRGBColorSpace as z, MeshPhysicalMaterial as y, Vector2 as Se, Matrix4 as Y, Vector3 as B, Quaternion as Me, InstancedMesh as Be, InstancedBufferAttribute as Ue, Object3D as ye, TextureLoader as we, ImageBitmapLoader as ve, BufferAttribute as J, InterleavedBuffer as je, InterleavedBufferAttribute as Ke, LinearFilter as be, LinearMipmapLinearFilter as Ne, RepeatWrapping as ie, PointsMaterial as Ve, Material as $, LineBasicMaterial as Xe, MeshStandardMaterial as Ie, DoubleSide as ze, PropertyBinding as qe, BufferGeometry as We, SkinnedMesh as Ye, Mesh as Qe, LineSegments as Ze, Line as Je, LineLoop as $e, Points as et, Group as ee, PerspectiveCamera as tt, MathUtils as nt, OrthographicCamera as st, Skeleton as rt, AnimationClip as it, Bone as ot, InterpolateLinear as Oe, ColorManagement as de, NearestFilter as at, NearestMipmapNearestFilter as ct, LinearMipmapNearestFilter as ut, NearestMipmapLinearFilter as lt, ClampToEdgeWrapping as dt, MirroredRepeatWrapping as ft, InterpolateDiscrete as ht, FrontSide as pt, Texture as fe, VectorKeyframeTrack as he, NumberKeyframeTrack as pe, QuaternionKeyframeTrack as me, Box3 as mt, Sphere as At, Interpolant as gt } from "three";
23
+ import { e as N, a as b, d as Ae } from "../../en3-x-Ki30MY.js";
24
+ function ge(d, t) {
25
+ if (t === Fe)
30
26
  return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."), d;
31
- if (t === re || t === Ee) {
27
+ if (t === re || t === Le) {
32
28
  let e = d.getIndex();
33
29
  if (e === null) {
34
30
  const i = [], a = d.getAttribute("position");
@@ -52,42 +48,42 @@ function Ae(d, t) {
52
48
  } else
53
49
  return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:", t), d;
54
50
  }
55
- class gt extends Fe {
51
+ class Tt extends Pe {
56
52
  constructor(t) {
57
53
  super(t), this.dracoLoader = null, this.ktx2Loader = null, this.meshoptDecoder = null, this.pluginCallbacks = [], this.register(function(e) {
58
- return new Lt(e);
59
- }), this.register(function(e) {
60
54
  return new _t(e);
61
55
  }), this.register(function(e) {
62
- return new Ct(e);
56
+ return new St(e);
63
57
  }), this.register(function(e) {
64
58
  return new Dt(e);
65
59
  }), this.register(function(e) {
66
60
  return new Ft(e);
67
61
  }), this.register(function(e) {
68
- return new Mt(e);
62
+ return new Pt(e);
69
63
  }), this.register(function(e) {
70
64
  return new yt(e);
71
65
  }), this.register(function(e) {
72
66
  return new wt(e);
73
67
  }), this.register(function(e) {
74
68
  return new bt(e);
75
- }), this.register(function(e) {
76
- return new Et(e);
77
69
  }), this.register(function(e) {
78
70
  return new Nt(e);
79
71
  }), this.register(function(e) {
80
- return new St(e);
81
- }), this.register(function(e) {
82
- return new Ot(e);
72
+ return new Lt(e);
83
73
  }), this.register(function(e) {
84
74
  return new It(e);
85
75
  }), this.register(function(e) {
86
- return new xt(e);
76
+ return new Mt(e);
87
77
  }), this.register(function(e) {
88
- return new Pt(e);
78
+ return new Ct(e);
79
+ }), this.register(function(e) {
80
+ return new Ot(e);
81
+ }), this.register(function(e) {
82
+ return new Rt(e);
89
83
  }), this.register(function(e) {
90
84
  return new kt(e);
85
+ }), this.register(function(e) {
86
+ return new Ht(e);
91
87
  });
92
88
  }
93
89
  load(t, e, r, n) {
@@ -103,7 +99,7 @@ class gt extends Fe {
103
99
  this.manager.itemStart(t);
104
100
  const a = function(c) {
105
101
  n ? n(c) : console.error(c), s.manager.itemError(t), s.manager.itemEnd(t);
106
- }, o = new Le(this.manager);
102
+ }, o = new _e(this.manager);
107
103
  o.setPath(this.path), o.setResponseType("arraybuffer"), o.setRequestHeader(this.requestHeader), o.setWithCredentials(this.withCredentials), o.load(t, function(c) {
108
104
  try {
109
105
  s.parse(c, i, function(l) {
@@ -140,9 +136,9 @@ class gt extends Fe {
140
136
  if (typeof t == "string")
141
137
  s = JSON.parse(t);
142
138
  else if (t instanceof ArrayBuffer)
143
- if (o.decode(new Uint8Array(t, 0, 4)) === Oe) {
139
+ if (o.decode(new Uint8Array(t, 0, 4)) === Ce) {
144
140
  try {
145
- i[A.KHR_BINARY_GLTF] = new Ht(t);
141
+ i[A.KHR_BINARY_GLTF] = new Gt(t);
146
142
  } catch (u) {
147
143
  n && n(u);
148
144
  return;
@@ -156,7 +152,7 @@ class gt extends Fe {
156
152
  n && n(new Error("THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported."));
157
153
  return;
158
154
  }
159
- const c = new Qt(s, {
155
+ const c = new Zt(s, {
160
156
  path: e || this.resourcePath || "",
161
157
  crossOrigin: this.crossOrigin,
162
158
  requestHeader: this.requestHeader,
@@ -174,16 +170,16 @@ class gt extends Fe {
174
170
  const u = s.extensionsUsed[l], f = s.extensionsRequired || [];
175
171
  switch (u) {
176
172
  case A.KHR_MATERIALS_UNLIT:
177
- i[u] = new Rt();
173
+ i[u] = new Et();
178
174
  break;
179
175
  case A.KHR_DRACO_MESH_COMPRESSION:
180
- i[u] = new Gt(s, this.dracoLoader);
176
+ i[u] = new Bt(s, this.dracoLoader);
181
177
  break;
182
178
  case A.KHR_TEXTURE_TRANSFORM:
183
- i[u] = new Bt();
179
+ i[u] = new Ut();
184
180
  break;
185
181
  case A.KHR_MESH_QUANTIZATION:
186
- i[u] = new Ut();
182
+ i[u] = new vt();
187
183
  break;
188
184
  default:
189
185
  f.indexOf(u) >= 0 && a[u] === void 0 && console.warn('THREE.GLTFLoader: Unknown extension "' + u + '".');
@@ -198,7 +194,7 @@ class gt extends Fe {
198
194
  });
199
195
  }
200
196
  }
201
- function Tt() {
197
+ function xt() {
202
198
  let d = {};
203
199
  return {
204
200
  get: function(t) {
@@ -239,7 +235,7 @@ const A = {
239
235
  EXT_MESHOPT_COMPRESSION: "EXT_meshopt_compression",
240
236
  EXT_MESH_GPU_INSTANCING: "EXT_mesh_gpu_instancing"
241
237
  };
242
- class xt {
238
+ class Rt {
243
239
  constructor(t) {
244
240
  this.parser = t, this.name = A.KHR_LIGHTS_PUNCTUAL, this.cache = { refs: {}, uses: {} };
245
241
  }
@@ -253,8 +249,7 @@ class xt {
253
249
  _loadLight(t) {
254
250
  const e = this.parser, r = "light:" + t;
255
251
  let n = e.cache.get(r);
256
- if (n)
257
- return n;
252
+ if (n) return n;
258
253
  const s = e.json, o = ((s.extensions && s.extensions[this.name] || {}).lights || [])[t];
259
254
  let c;
260
255
  const l = new G(16777215);
@@ -262,13 +257,13 @@ class xt {
262
257
  const u = o.range !== void 0 ? o.range : 0;
263
258
  switch (o.type) {
264
259
  case "directional":
265
- c = new He(l), c.target.position.set(0, 0, -1), c.add(c.target);
260
+ c = new Ge(l), c.target.position.set(0, 0, -1), c.add(c.target);
266
261
  break;
267
262
  case "point":
268
- c = new ke(l), c.distance = u;
263
+ c = new He(l), c.distance = u;
269
264
  break;
270
265
  case "spot":
271
- c = new Pe(l), c.distance = u, o.spot = o.spot || {}, o.spot.innerConeAngle = o.spot.innerConeAngle !== void 0 ? o.spot.innerConeAngle : 0, o.spot.outerConeAngle = o.spot.outerConeAngle !== void 0 ? o.spot.outerConeAngle : Math.PI / 4, c.angle = o.spot.outerConeAngle, c.penumbra = 1 - o.spot.innerConeAngle / o.spot.outerConeAngle, c.target.position.set(0, 0, -1), c.add(c.target);
266
+ c = new ke(l), c.distance = u, o.spot = o.spot || {}, o.spot.innerConeAngle = o.spot.innerConeAngle !== void 0 ? o.spot.innerConeAngle : 0, o.spot.outerConeAngle = o.spot.outerConeAngle !== void 0 ? o.spot.outerConeAngle : Math.PI / 4, c.angle = o.spot.outerConeAngle, c.penumbra = 1 - o.spot.innerConeAngle / o.spot.outerConeAngle, c.target.position.set(0, 0, -1), c.add(c.target);
272
267
  break;
273
268
  default:
274
269
  throw new Error("THREE.GLTFLoader: Unexpected light type: " + o.type);
@@ -286,7 +281,7 @@ class xt {
286
281
  });
287
282
  }
288
283
  }
289
- class Rt {
284
+ class Et {
290
285
  constructor() {
291
286
  this.name = A.KHR_MATERIALS_UNLIT;
292
287
  }
@@ -307,7 +302,7 @@ class Rt {
307
302
  return Promise.all(n);
308
303
  }
309
304
  }
310
- class Et {
305
+ class Lt {
311
306
  constructor(t) {
312
307
  this.parser = t, this.name = A.KHR_MATERIALS_EMISSIVE_STRENGTH;
313
308
  }
@@ -319,7 +314,7 @@ class Et {
319
314
  return s !== void 0 && (e.emissiveIntensity = s), Promise.resolve();
320
315
  }
321
316
  }
322
- class Lt {
317
+ class _t {
323
318
  constructor(t) {
324
319
  this.parser = t, this.name = A.KHR_MATERIALS_CLEARCOAT;
325
320
  }
@@ -334,12 +329,12 @@ class Lt {
334
329
  const s = [], i = n.extensions[this.name];
335
330
  if (i.clearcoatFactor !== void 0 && (e.clearcoat = i.clearcoatFactor), i.clearcoatTexture !== void 0 && s.push(r.assignTexture(e, "clearcoatMap", i.clearcoatTexture)), i.clearcoatRoughnessFactor !== void 0 && (e.clearcoatRoughness = i.clearcoatRoughnessFactor), i.clearcoatRoughnessTexture !== void 0 && s.push(r.assignTexture(e, "clearcoatRoughnessMap", i.clearcoatRoughnessTexture)), i.clearcoatNormalTexture !== void 0 && (s.push(r.assignTexture(e, "clearcoatNormalMap", i.clearcoatNormalTexture)), i.clearcoatNormalTexture.scale !== void 0)) {
336
331
  const a = i.clearcoatNormalTexture.scale;
337
- e.clearcoatNormalScale = new _e(a, a);
332
+ e.clearcoatNormalScale = new Se(a, a);
338
333
  }
339
334
  return Promise.all(s);
340
335
  }
341
336
  }
342
- class _t {
337
+ class St {
343
338
  constructor(t) {
344
339
  this.parser = t, this.name = A.KHR_MATERIALS_DISPERSION;
345
340
  }
@@ -355,7 +350,7 @@ class _t {
355
350
  return e.dispersion = s.dispersion !== void 0 ? s.dispersion : 0, Promise.resolve();
356
351
  }
357
352
  }
358
- class St {
353
+ class Mt {
359
354
  constructor(t) {
360
355
  this.parser = t, this.name = A.KHR_MATERIALS_IRIDESCENCE;
361
356
  }
@@ -371,7 +366,7 @@ class St {
371
366
  return i.iridescenceFactor !== void 0 && (e.iridescence = i.iridescenceFactor), i.iridescenceTexture !== void 0 && s.push(r.assignTexture(e, "iridescenceMap", i.iridescenceTexture)), i.iridescenceIor !== void 0 && (e.iridescenceIOR = i.iridescenceIor), e.iridescenceThicknessRange === void 0 && (e.iridescenceThicknessRange = [100, 400]), i.iridescenceThicknessMinimum !== void 0 && (e.iridescenceThicknessRange[0] = i.iridescenceThicknessMinimum), i.iridescenceThicknessMaximum !== void 0 && (e.iridescenceThicknessRange[1] = i.iridescenceThicknessMaximum), i.iridescenceThicknessTexture !== void 0 && s.push(r.assignTexture(e, "iridescenceThicknessMap", i.iridescenceThicknessTexture)), Promise.all(s);
372
367
  }
373
368
  }
374
- class Mt {
369
+ class yt {
375
370
  constructor(t) {
376
371
  this.parser = t, this.name = A.KHR_MATERIALS_SHEEN;
377
372
  }
@@ -393,7 +388,7 @@ class Mt {
393
388
  return i.sheenRoughnessFactor !== void 0 && (e.sheenRoughness = i.sheenRoughnessFactor), i.sheenColorTexture !== void 0 && s.push(r.assignTexture(e, "sheenColorMap", i.sheenColorTexture, z)), i.sheenRoughnessTexture !== void 0 && s.push(r.assignTexture(e, "sheenRoughnessMap", i.sheenRoughnessTexture)), Promise.all(s);
394
389
  }
395
390
  }
396
- class yt {
391
+ class wt {
397
392
  constructor(t) {
398
393
  this.parser = t, this.name = A.KHR_MATERIALS_TRANSMISSION;
399
394
  }
@@ -409,7 +404,7 @@ class yt {
409
404
  return i.transmissionFactor !== void 0 && (e.transmission = i.transmissionFactor), i.transmissionTexture !== void 0 && s.push(r.assignTexture(e, "transmissionMap", i.transmissionTexture)), Promise.all(s);
410
405
  }
411
406
  }
412
- class wt {
407
+ class bt {
413
408
  constructor(t) {
414
409
  this.parser = t, this.name = A.KHR_MATERIALS_VOLUME;
415
410
  }
@@ -427,7 +422,7 @@ class wt {
427
422
  return e.attenuationColor = new G().setRGB(a[0], a[1], a[2], I), Promise.all(s);
428
423
  }
429
424
  }
430
- class bt {
425
+ class Nt {
431
426
  constructor(t) {
432
427
  this.parser = t, this.name = A.KHR_MATERIALS_IOR;
433
428
  }
@@ -443,7 +438,7 @@ class bt {
443
438
  return e.ior = s.ior !== void 0 ? s.ior : 1.5, Promise.resolve();
444
439
  }
445
440
  }
446
- class Nt {
441
+ class It {
447
442
  constructor(t) {
448
443
  this.parser = t, this.name = A.KHR_MATERIALS_SPECULAR;
449
444
  }
@@ -461,7 +456,7 @@ class Nt {
461
456
  return e.specularColor = new G().setRGB(a[0], a[1], a[2], I), i.specularColorTexture !== void 0 && s.push(r.assignTexture(e, "specularColorMap", i.specularColorTexture, z)), Promise.all(s);
462
457
  }
463
458
  }
464
- class It {
459
+ class Ot {
465
460
  constructor(t) {
466
461
  this.parser = t, this.name = A.EXT_MATERIALS_BUMP;
467
462
  }
@@ -477,7 +472,7 @@ class It {
477
472
  return e.bumpScale = i.bumpFactor !== void 0 ? i.bumpFactor : 1, i.bumpTexture !== void 0 && s.push(r.assignTexture(e, "bumpMap", i.bumpTexture)), Promise.all(s);
478
473
  }
479
474
  }
480
- class Ot {
475
+ class Ct {
481
476
  constructor(t) {
482
477
  this.parser = t, this.name = A.KHR_MATERIALS_ANISOTROPY;
483
478
  }
@@ -493,7 +488,7 @@ class Ot {
493
488
  return i.anisotropyStrength !== void 0 && (e.anisotropy = i.anisotropyStrength), i.anisotropyRotation !== void 0 && (e.anisotropyRotation = i.anisotropyRotation), i.anisotropyTexture !== void 0 && s.push(r.assignTexture(e, "anisotropyMap", i.anisotropyTexture)), Promise.all(s);
494
489
  }
495
490
  }
496
- class Ct {
491
+ class Dt {
497
492
  constructor(t) {
498
493
  this.parser = t, this.name = A.KHR_TEXTURE_BASISU;
499
494
  }
@@ -510,7 +505,7 @@ class Ct {
510
505
  return e.loadTextureImage(t, s.source, i);
511
506
  }
512
507
  }
513
- class Dt {
508
+ class Ft {
514
509
  constructor(t) {
515
510
  this.parser = t, this.name = A.EXT_TEXTURE_WEBP, this.isSupported = null;
516
511
  }
@@ -525,8 +520,7 @@ class Dt {
525
520
  c !== null && (o = c);
526
521
  }
527
522
  return this.detectSupport().then(function(c) {
528
- if (c)
529
- return r.loadTextureImage(t, i.source, o);
523
+ if (c) return r.loadTextureImage(t, i.source, o);
530
524
  if (n.extensionsRequired && n.extensionsRequired.indexOf(e) >= 0)
531
525
  throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");
532
526
  return r.loadTexture(t);
@@ -541,7 +535,7 @@ class Dt {
541
535
  })), this.isSupported;
542
536
  }
543
537
  }
544
- class Ft {
538
+ class Pt {
545
539
  constructor(t) {
546
540
  this.parser = t, this.name = A.EXT_TEXTURE_AVIF, this.isSupported = null;
547
541
  }
@@ -556,8 +550,7 @@ class Ft {
556
550
  c !== null && (o = c);
557
551
  }
558
552
  return this.detectSupport().then(function(c) {
559
- if (c)
560
- return r.loadTextureImage(t, i.source, o);
553
+ if (c) return r.loadTextureImage(t, i.source, o);
561
554
  if (n.extensionsRequired && n.extensionsRequired.indexOf(e) >= 0)
562
555
  throw new Error("THREE.GLTFLoader: AVIF required by asset but unsupported.");
563
556
  return r.loadTexture(t);
@@ -572,7 +565,7 @@ class Ft {
572
565
  })), this.isSupported;
573
566
  }
574
567
  }
575
- class Pt {
568
+ class kt {
576
569
  constructor(t) {
577
570
  this.name = A.EXT_MESHOPT_COMPRESSION, this.parser = t;
578
571
  }
@@ -598,7 +591,7 @@ class Pt {
598
591
  return null;
599
592
  }
600
593
  }
601
- class kt {
594
+ class Ht {
602
595
  constructor(t) {
603
596
  this.name = A.EXT_MESH_GPU_INSTANCING, this.parser = t;
604
597
  }
@@ -616,23 +609,22 @@ class kt {
616
609
  return a.length < 1 ? null : (a.push(this.parser.createNodeMesh(t)), Promise.all(a).then((c) => {
617
610
  const l = c.pop(), u = l.isGroup ? l.children : [l], f = c[0].count, h = [];
618
611
  for (const p of u) {
619
- const T = new Y(), m = new B(), g = new Se(), R = new B(1, 1, 1), E = new Ge(p.geometry, p.material, f);
612
+ const T = new Y(), m = new B(), g = new Me(), R = new B(1, 1, 1), E = new Be(p.geometry, p.material, f);
620
613
  for (let x = 0; x < f; x++)
621
614
  o.TRANSLATION && m.fromBufferAttribute(o.TRANSLATION, x), o.ROTATION && g.fromBufferAttribute(o.ROTATION, x), o.SCALE && R.fromBufferAttribute(o.SCALE, x), E.setMatrixAt(x, T.compose(m, g, R));
622
615
  for (const x in o)
623
616
  if (x === "_COLOR_0") {
624
617
  const M = o[x];
625
- E.instanceColor = new Be(M.array, M.itemSize, M.normalized);
626
- } else
627
- x !== "TRANSLATION" && x !== "ROTATION" && x !== "SCALE" && p.geometry.setAttribute(x, o[x]);
628
- Me.prototype.copy.call(E, p), this.parser.assignFinalMaterial(E), h.push(E);
618
+ E.instanceColor = new Ue(M.array, M.itemSize, M.normalized);
619
+ } else x !== "TRANSLATION" && x !== "ROTATION" && x !== "SCALE" && p.geometry.setAttribute(x, o[x]);
620
+ ye.prototype.copy.call(E, p), this.parser.assignFinalMaterial(E), h.push(E);
629
621
  }
630
622
  return l.isGroup ? (l.clear(), l.add(...h), l) : h[0];
631
623
  }));
632
624
  }
633
625
  }
634
- const Oe = "glTF", K = 12, ge = { JSON: 1313821514, BIN: 5130562 };
635
- class Ht {
626
+ const Ce = "glTF", K = 12, Te = { JSON: 1313821514, BIN: 5130562 };
627
+ class Gt {
636
628
  constructor(t) {
637
629
  this.name = A.KHR_BINARY_GLTF, this.content = null, this.body = null;
638
630
  const e = new DataView(t, 0, K), r = new TextDecoder();
@@ -640,7 +632,7 @@ class Ht {
640
632
  magic: r.decode(new Uint8Array(t.slice(0, 4))),
641
633
  version: e.getUint32(4, !0),
642
634
  length: e.getUint32(8, !0)
643
- }, this.header.magic !== Oe)
635
+ }, this.header.magic !== Ce)
644
636
  throw new Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");
645
637
  if (this.header.version < 2)
646
638
  throw new Error("THREE.GLTFLoader: Legacy binary file detected.");
@@ -650,10 +642,10 @@ class Ht {
650
642
  const a = s.getUint32(i, !0);
651
643
  i += 4;
652
644
  const o = s.getUint32(i, !0);
653
- if (i += 4, o === ge.JSON) {
645
+ if (i += 4, o === Te.JSON) {
654
646
  const c = new Uint8Array(t, K + i, a);
655
647
  this.content = r.decode(c);
656
- } else if (o === ge.BIN) {
648
+ } else if (o === Te.BIN) {
657
649
  const c = K + i;
658
650
  this.body = t.slice(c, c + a);
659
651
  }
@@ -663,7 +655,7 @@ class Ht {
663
655
  throw new Error("THREE.GLTFLoader: JSON content not found.");
664
656
  }
665
657
  }
666
- class Gt {
658
+ class Bt {
667
659
  constructor(t, e) {
668
660
  if (!e)
669
661
  throw new Error("THREE.GLTFLoader: No DRACOLoader instance provided.");
@@ -695,7 +687,7 @@ class Gt {
695
687
  });
696
688
  }
697
689
  }
698
- class Bt {
690
+ class Ut {
699
691
  constructor() {
700
692
  this.name = A.KHR_TEXTURE_TRANSFORM;
701
693
  }
@@ -703,12 +695,12 @@ class Bt {
703
695
  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;
704
696
  }
705
697
  }
706
- class Ut {
698
+ class vt {
707
699
  constructor() {
708
700
  this.name = A.KHR_MESH_QUANTIZATION;
709
701
  }
710
702
  }
711
- class Ce extends At {
703
+ class De extends gt {
712
704
  constructor(t, e, r, n) {
713
705
  super(t, e, r, n);
714
706
  }
@@ -727,11 +719,11 @@ class Ce extends At {
727
719
  return s;
728
720
  }
729
721
  }
730
- const vt = new Se();
731
- class jt extends Ce {
722
+ const jt = new Me();
723
+ class Kt extends De {
732
724
  interpolate_(t, e, r, n) {
733
725
  const s = super.interpolate_(t, e, r, n);
734
- return vt.fromArray(s).normalize().toArray(s), s;
726
+ return jt.fromArray(s).normalize().toArray(s), s;
735
727
  }
736
728
  }
737
729
  const L = {
@@ -761,16 +753,16 @@ const L = {
761
753
  5123: Uint16Array,
762
754
  5125: Uint32Array,
763
755
  5126: Float32Array
764
- }, Te = {
765
- 9728: ot,
766
- 9729: we,
767
- 9984: at,
768
- 9985: ct,
769
- 9986: ut,
770
- 9987: be
771
756
  }, xe = {
772
- 33071: lt,
773
- 33648: dt,
757
+ 9728: at,
758
+ 9729: be,
759
+ 9984: ct,
760
+ 9985: ut,
761
+ 9986: lt,
762
+ 9987: Ne
763
+ }, Re = {
764
+ 33071: dt,
765
+ 33648: ft,
774
766
  10497: ie
775
767
  }, te = {
776
768
  SCALAR: 1,
@@ -796,26 +788,26 @@ const L = {
796
788
  translation: "position",
797
789
  rotation: "quaternion",
798
790
  weights: "morphTargetInfluences"
799
- }, Kt = {
791
+ }, Vt = {
800
792
  CUBICSPLINE: void 0,
801
793
  // We use a custom interpolant (GLTFCubicSplineInterpolation) for CUBICSPLINE tracks. Each
802
794
  // keyframe track will be initialized with a default interpolation type, then modified.
803
- LINEAR: Ie,
804
- STEP: ft
795
+ LINEAR: Oe,
796
+ STEP: ht
805
797
  }, ne = {
806
798
  OPAQUE: "OPAQUE",
807
799
  MASK: "MASK",
808
800
  BLEND: "BLEND"
809
801
  };
810
- function Vt(d) {
811
- return d.DefaultMaterial === void 0 && (d.DefaultMaterial = new Ne({
802
+ function Xt(d) {
803
+ return d.DefaultMaterial === void 0 && (d.DefaultMaterial = new Ie({
812
804
  color: 16777215,
813
805
  emissive: 0,
814
806
  metalness: 1,
815
807
  roughness: 1,
816
808
  transparent: !1,
817
809
  depthTest: !0,
818
- side: ht
810
+ side: pt
819
811
  })), d.DefaultMaterial;
820
812
  }
821
813
  function P(d, t, e) {
@@ -825,15 +817,13 @@ function P(d, t, e) {
825
817
  function w(d, t) {
826
818
  t.extras !== void 0 && (typeof t.extras == "object" ? Object.assign(d.userData, t.extras) : console.warn("THREE.GLTFLoader: Ignoring primitive type .extras, " + t.extras));
827
819
  }
828
- function Xt(d, t, e) {
820
+ function zt(d, t, e) {
829
821
  let r = !1, n = !1, s = !1;
830
822
  for (let c = 0, l = t.length; c < l; c++) {
831
823
  const u = t[c];
832
- if (u.POSITION !== void 0 && (r = !0), u.NORMAL !== void 0 && (n = !0), u.COLOR_0 !== void 0 && (s = !0), r && n && s)
833
- break;
824
+ if (u.POSITION !== void 0 && (r = !0), u.NORMAL !== void 0 && (n = !0), u.COLOR_0 !== void 0 && (s = !0), r && n && s) break;
834
825
  }
835
- if (!r && !n && !s)
836
- return Promise.resolve(d);
826
+ if (!r && !n && !s) return Promise.resolve(d);
837
827
  const i = [], a = [], o = [];
838
828
  for (let c = 0, l = t.length; c < l; c++) {
839
829
  const u = t[c];
@@ -859,7 +849,7 @@ function Xt(d, t, e) {
859
849
  return r && (d.morphAttributes.position = l), n && (d.morphAttributes.normal = u), s && (d.morphAttributes.color = f), d.morphTargetsRelative = !0, d;
860
850
  });
861
851
  }
862
- function zt(d, t) {
852
+ function qt(d, t) {
863
853
  if (d.updateMorphTargets(), t.weights !== void 0)
864
854
  for (let e = 0, r = t.weights.length; e < r; e++)
865
855
  d.morphTargetInfluences[e] = t.weights[e];
@@ -873,7 +863,7 @@ function zt(d, t) {
873
863
  console.warn("THREE.GLTFLoader: Invalid extras.targetNames length. Ignoring names.");
874
864
  }
875
865
  }
876
- function qt(d) {
866
+ function Wt(d) {
877
867
  let t;
878
868
  const e = d.extensions && d.extensions[A.KHR_DRACO_MESH_COMPRESSION];
879
869
  if (e ? t = "draco:" + e.bufferView + ":" + e.indices + ":" + se(e.attributes) : t = d.indices + ":" + se(d.attributes) + ":" + d.mode, d.targets !== void 0)
@@ -902,13 +892,13 @@ function ae(d) {
902
892
  throw new Error("THREE.GLTFLoader: Unsupported normalized accessor component type.");
903
893
  }
904
894
  }
905
- function Wt(d) {
895
+ function Yt(d) {
906
896
  return d.search(/\.jpe?g($|\?)/i) > 0 || d.search(/^data\:image\/jpeg/) === 0 ? "image/jpeg" : d.search(/\.webp($|\?)/i) > 0 || d.search(/^data\:image\/webp/) === 0 ? "image/webp" : "image/png";
907
897
  }
908
- const Yt = new Y();
909
- class Qt {
898
+ const Qt = new Y();
899
+ class Zt {
910
900
  constructor(t = {}, e = {}) {
911
- this.json = t, this.extensions = {}, this.plugins = {}, this.options = e, this.cache = new Tt(), 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 = {};
901
+ this.json = t, this.extensions = {}, this.plugins = {}, this.options = e, this.cache = new xt(), 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 = {};
912
902
  let r = !1, n = -1, s = !1, i = -1;
913
903
  if (typeof navigator != "undefined") {
914
904
  const a = navigator.userAgent;
@@ -916,7 +906,7 @@ class Qt {
916
906
  const o = a.match(/Version\/(\d+)/);
917
907
  n = r && o ? parseInt(o[1], 10) : -1, s = a.indexOf("Firefox") > -1, i = s ? a.match(/Firefox\/([0-9]+)\./)[1] : -1;
918
908
  }
919
- typeof createImageBitmap == "undefined" || r && n < 17 || s && i < 98 ? this.textureLoader = new ye(this.options.manager) : this.textureLoader = new Ue(this.options.manager), this.textureLoader.setCrossOrigin(this.options.crossOrigin), this.textureLoader.setRequestHeader(this.options.requestHeader), this.fileLoader = new Le(this.options.manager), this.fileLoader.setResponseType("arraybuffer"), this.options.crossOrigin === "use-credentials" && this.fileLoader.setWithCredentials(!0);
909
+ typeof createImageBitmap == "undefined" || r && n < 17 || s && i < 98 ? this.textureLoader = new we(this.options.manager) : this.textureLoader = new ve(this.options.manager), this.textureLoader.setCrossOrigin(this.options.crossOrigin), this.textureLoader.setRequestHeader(this.options.requestHeader), this.fileLoader = new _e(this.options.manager), this.fileLoader.setResponseType("arraybuffer"), this.options.crossOrigin === "use-credentials" && this.fileLoader.setWithCredentials(!0);
920
910
  }
921
911
  setExtensions(t) {
922
912
  this.extensions = t;
@@ -984,8 +974,7 @@ class Qt {
984
974
  }
985
975
  /** Returns a reference to a shared resource, cloning it if necessary. */
986
976
  _getNodeRef(t, e, r) {
987
- if (t.refs[e] <= 1)
988
- return r;
977
+ if (t.refs[e] <= 1) return r;
989
978
  const n = r.clone(), s = (i, a) => {
990
979
  const o = this.associations.get(i);
991
980
  o != null && this.associations.set(a, o);
@@ -999,8 +988,7 @@ class Qt {
999
988
  e.push(this);
1000
989
  for (let r = 0; r < e.length; r++) {
1001
990
  const n = t(e[r]);
1002
- if (n)
1003
- return n;
991
+ if (n) return n;
1004
992
  }
1005
993
  return null;
1006
994
  }
@@ -1144,7 +1132,7 @@ class Qt {
1144
1132
  if (h && h !== u) {
1145
1133
  const g = Math.floor(f / h), R = "InterleavedBuffer:" + n.bufferView + ":" + n.componentType + ":" + g + ":" + n.count;
1146
1134
  let E = e.cache.get(R);
1147
- E || (T = new c(a, g * h, n.count * h / l), E = new ve(T, h / l), e.cache.add(R, E)), m = new je(E, o, f % h / l, p);
1135
+ E || (T = new c(a, g * h, n.count * h / l), E = new je(T, h / l), e.cache.add(R, E)), m = new Ke(E, o, f % h / l, p);
1148
1136
  } else
1149
1137
  a === null ? T = new c(n.count * o) : T = new c(a, f, n.count * o), m = new J(T, o, p);
1150
1138
  if (n.sparse !== void 0) {
@@ -1152,8 +1140,7 @@ class Qt {
1152
1140
  a !== null && (m = new J(m.array.slice(), m.itemSize, m.normalized));
1153
1141
  for (let _ = 0, v = M.length; _ < v; _++) {
1154
1142
  const C = M[_];
1155
- if (m.setX(C, O[_ * o]), o >= 2 && m.setY(C, O[_ * o + 1]), o >= 3 && m.setZ(C, O[_ * o + 2]), o >= 4 && m.setW(C, O[_ * o + 3]), o >= 5)
1156
- throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.");
1143
+ if (m.setX(C, O[_ * o]), o >= 2 && m.setY(C, O[_ * o + 1]), o >= 3 && m.setZ(C, O[_ * o + 2]), o >= 4 && m.setW(C, O[_ * o + 3]), o >= 5) throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.");
1157
1144
  }
1158
1145
  }
1159
1146
  return m;
@@ -1180,7 +1167,7 @@ class Qt {
1180
1167
  const c = this.loadImageSource(e, r).then(function(l) {
1181
1168
  l.flipY = !1, l.name = i.name || a.name || "", l.name === "" && typeof a.uri == "string" && a.uri.startsWith("data:image/") === !1 && (l.name = a.uri);
1182
1169
  const f = (s.samplers || {})[i.sampler] || {};
1183
- return l.magFilter = Te[f.magFilter] || we, l.minFilter = Te[f.minFilter] || be, l.wrapS = xe[f.wrapS] || ie, l.wrapT = xe[f.wrapT] || ie, n.associations.set(l, { textures: t }), l;
1170
+ return l.magFilter = xe[f.magFilter] || be, l.minFilter = xe[f.minFilter] || Ne, l.wrapS = Re[f.wrapS] || ie, l.wrapT = Re[f.wrapT] || ie, n.associations.set(l, { textures: t }), l;
1184
1171
  }).catch(function() {
1185
1172
  return null;
1186
1173
  });
@@ -1204,12 +1191,12 @@ class Qt {
1204
1191
  return new Promise(function(f, h) {
1205
1192
  let p = f;
1206
1193
  e.isImageBitmapLoader === !0 && (p = function(T) {
1207
- const m = new de(T);
1194
+ const m = new fe(T);
1208
1195
  m.needsUpdate = !0, f(m);
1209
1196
  }), e.load(X.resolveURL(u, s.path), p, void 0, h);
1210
1197
  });
1211
1198
  }).then(function(u) {
1212
- return c === !0 && a.revokeObjectURL(o), w(u, i), u.userData.mimeType = i.mimeType || Wt(i.uri), u;
1199
+ return c === !0 && a.revokeObjectURL(o), w(u, i), u.userData.mimeType = i.mimeType || Yt(i.uri), u;
1213
1200
  }).catch(function(u) {
1214
1201
  throw console.error("THREE.GLTFLoader: Couldn't load texture", o), u;
1215
1202
  });
@@ -1225,8 +1212,7 @@ class Qt {
1225
1212
  assignTexture(t, e, r, n) {
1226
1213
  const s = this;
1227
1214
  return this.getDependency("texture", r.index).then(function(i) {
1228
- if (!i)
1229
- return null;
1215
+ if (!i) return null;
1230
1216
  if (r.texCoord !== void 0 && r.texCoord > 0 && (i = i.clone(), i.channel = r.texCoord), s.extensions[A.KHR_TEXTURE_TRANSFORM]) {
1231
1217
  const a = r.extensions !== void 0 ? r.extensions[A.KHR_TEXTURE_TRANSFORM] : void 0;
1232
1218
  if (a) {
@@ -1252,11 +1238,11 @@ class Qt {
1252
1238
  if (t.isPoints) {
1253
1239
  const a = "PointsMaterial:" + r.uuid;
1254
1240
  let o = this.cache.get(a);
1255
- o || (o = new Ke(), $.prototype.copy.call(o, r), o.color.copy(r.color), o.map = r.map, o.sizeAttenuation = !1, this.cache.add(a, o)), r = o;
1241
+ o || (o = new Ve(), $.prototype.copy.call(o, r), o.color.copy(r.color), o.map = r.map, o.sizeAttenuation = !1, this.cache.add(a, o)), r = o;
1256
1242
  } else if (t.isLine) {
1257
1243
  const a = "LineBasicMaterial:" + r.uuid;
1258
1244
  let o = this.cache.get(a);
1259
- o || (o = new Ve(), $.prototype.copy.call(o, r), o.color.copy(r.color), o.map = r.map, this.cache.add(a, o)), r = o;
1245
+ o || (o = new Xe(), $.prototype.copy.call(o, r), o.color.copy(r.color), o.map = r.map, this.cache.add(a, o)), r = o;
1260
1246
  }
1261
1247
  if (n || s || i) {
1262
1248
  let a = "ClonedMaterial:" + r.uuid + ":";
@@ -1267,7 +1253,7 @@ class Qt {
1267
1253
  t.material = r;
1268
1254
  }
1269
1255
  getMaterialType() {
1270
- return Ne;
1256
+ return Ie;
1271
1257
  }
1272
1258
  /**
1273
1259
  * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#materials
@@ -1293,9 +1279,9 @@ class Qt {
1293
1279
  return f.extendMaterialParams && f.extendMaterialParams(t, a);
1294
1280
  })));
1295
1281
  }
1296
- s.doubleSided === !0 && (a.side = Xe);
1282
+ s.doubleSided === !0 && (a.side = ze);
1297
1283
  const l = s.alphaMode || ne.OPAQUE;
1298
- if (l === ne.BLEND ? (a.transparent = !0, a.depthWrite = !1) : (a.transparent = !1, l === ne.MASK && (a.alphaTest = s.alphaCutoff !== void 0 ? s.alphaCutoff : 0.5)), s.normalTexture !== void 0 && i !== V && (c.push(e.assignTexture(a, "normalMap", s.normalTexture)), a.normalScale = new _e(1, 1), s.normalTexture.scale !== void 0)) {
1284
+ if (l === ne.BLEND ? (a.transparent = !0, a.depthWrite = !1) : (a.transparent = !1, l === ne.MASK && (a.alphaTest = s.alphaCutoff !== void 0 ? s.alphaCutoff : 0.5)), s.normalTexture !== void 0 && i !== V && (c.push(e.assignTexture(a, "normalMap", s.normalTexture)), a.normalScale = new Se(1, 1), s.normalTexture.scale !== void 0)) {
1299
1285
  const u = s.normalTexture.scale;
1300
1286
  a.normalScale.set(u, u);
1301
1287
  }
@@ -1310,7 +1296,7 @@ class Qt {
1310
1296
  }
1311
1297
  /** When Object3D instances are targeted by animation, they need unique names. */
1312
1298
  createUniqueName(t) {
1313
- const e = ze.sanitizeNodeName(t || "");
1299
+ const e = qe.sanitizeNodeName(t || "");
1314
1300
  return e in this.nodeNamesUsed ? e + "_" + ++this.nodeNamesUsed[e] : (this.nodeNamesUsed[e] = 0, e);
1315
1301
  }
1316
1302
  /**
@@ -1325,17 +1311,17 @@ class Qt {
1325
1311
  const e = this, r = this.extensions, n = this.primitiveCache;
1326
1312
  function s(a) {
1327
1313
  return r[A.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(a, e).then(function(o) {
1328
- return Re(o, a, e);
1314
+ return Ee(o, a, e);
1329
1315
  });
1330
1316
  }
1331
1317
  const i = [];
1332
1318
  for (let a = 0, o = t.length; a < o; a++) {
1333
- const c = t[a], l = qt(c), u = n[l];
1319
+ const c = t[a], l = Wt(c), u = n[l];
1334
1320
  if (u)
1335
1321
  i.push(u.promise);
1336
1322
  else {
1337
1323
  let f;
1338
- c.extensions && c.extensions[A.KHR_DRACO_MESH_COMPRESSION] ? f = s(c) : f = Re(new qe(), c, e), n[l] = { primitive: c, promise: f }, i.push(f);
1324
+ c.extensions && c.extensions[A.KHR_DRACO_MESH_COMPRESSION] ? f = s(c) : f = Ee(new We(), c, e), n[l] = { primitive: c, promise: f }, i.push(f);
1339
1325
  }
1340
1326
  }
1341
1327
  return Promise.all(i);
@@ -1348,7 +1334,7 @@ class Qt {
1348
1334
  loadMesh(t) {
1349
1335
  const e = this, r = this.json, n = this.extensions, s = r.meshes[t], i = s.primitives, a = [];
1350
1336
  for (let o = 0, c = i.length; o < c; o++) {
1351
- const l = i[o].material === void 0 ? Vt(this.cache) : this.getDependency("material", i[o].material);
1337
+ const l = i[o].material === void 0 ? Xt(this.cache) : this.getDependency("material", i[o].material);
1352
1338
  a.push(l);
1353
1339
  }
1354
1340
  return a.push(e.loadGeometries(i)), Promise.all(a).then(function(o) {
@@ -1358,18 +1344,18 @@ class Qt {
1358
1344
  let g;
1359
1345
  const R = c[h];
1360
1346
  if (m.mode === L.TRIANGLES || m.mode === L.TRIANGLE_STRIP || m.mode === L.TRIANGLE_FAN || m.mode === void 0)
1361
- g = s.isSkinnedMesh === !0 ? new We(T, R) : new Ye(T, R), g.isSkinnedMesh === !0 && g.normalizeSkinWeights(), m.mode === L.TRIANGLE_STRIP ? g.geometry = Ae(g.geometry, Ee) : m.mode === L.TRIANGLE_FAN && (g.geometry = Ae(g.geometry, re));
1347
+ g = s.isSkinnedMesh === !0 ? new Ye(T, R) : new Qe(T, R), g.isSkinnedMesh === !0 && g.normalizeSkinWeights(), m.mode === L.TRIANGLE_STRIP ? g.geometry = ge(g.geometry, Le) : m.mode === L.TRIANGLE_FAN && (g.geometry = ge(g.geometry, re));
1362
1348
  else if (m.mode === L.LINES)
1363
- g = new Qe(T, R);
1364
- else if (m.mode === L.LINE_STRIP)
1365
1349
  g = new Ze(T, R);
1366
- else if (m.mode === L.LINE_LOOP)
1350
+ else if (m.mode === L.LINE_STRIP)
1367
1351
  g = new Je(T, R);
1368
- else if (m.mode === L.POINTS)
1352
+ else if (m.mode === L.LINE_LOOP)
1369
1353
  g = new $e(T, R);
1354
+ else if (m.mode === L.POINTS)
1355
+ g = new et(T, R);
1370
1356
  else
1371
1357
  throw new Error("THREE.GLTFLoader: Primitive mode unsupported: " + m.mode);
1372
- Object.keys(g.geometry.morphAttributes).length > 0 && zt(g, s), g.name = e.createUniqueName(s.name || "mesh_" + t), w(g, s), m.extensions && P(n, g, m), e.assignFinalMaterial(g), u.push(g);
1358
+ Object.keys(g.geometry.morphAttributes).length > 0 && qt(g, s), g.name = e.createUniqueName(s.name || "mesh_" + t), w(g, s), m.extensions && P(n, g, m), e.assignFinalMaterial(g), u.push(g);
1373
1359
  }
1374
1360
  for (let h = 0, p = u.length; h < p; h++)
1375
1361
  e.associations.set(u[h], {
@@ -1397,7 +1383,7 @@ class Qt {
1397
1383
  console.warn("THREE.GLTFLoader: Missing camera parameters.");
1398
1384
  return;
1399
1385
  }
1400
- return r.type === "perspective" ? e = new et(tt.radToDeg(n.yfov), n.aspectRatio || 1, n.znear || 1, n.zfar || 2e6) : r.type === "orthographic" && (e = new nt(-n.xmag, n.xmag, n.ymag, -n.ymag, n.znear, n.zfar)), r.name && (e.name = this.createUniqueName(r.name)), w(e, r), Promise.resolve(e);
1386
+ return r.type === "perspective" ? e = new tt(nt.radToDeg(n.yfov), n.aspectRatio || 1, n.znear || 1, n.zfar || 2e6) : r.type === "orthographic" && (e = new st(-n.xmag, n.xmag, n.ymag, -n.ymag, n.znear, n.zfar)), r.name && (e.name = this.createUniqueName(r.name)), w(e, r), Promise.resolve(e);
1401
1387
  }
1402
1388
  /**
1403
1389
  * Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#skins
@@ -1419,7 +1405,7 @@ class Qt {
1419
1405
  } else
1420
1406
  console.warn('THREE.GLTFLoader: Joint "%s" could not be found.', e.joints[c]);
1421
1407
  }
1422
- return new st(a, o);
1408
+ return new rt(a, o);
1423
1409
  });
1424
1410
  }
1425
1411
  /**
@@ -1443,15 +1429,14 @@ class Qt {
1443
1429
  const f = u[0], h = u[1], p = u[2], T = u[3], m = u[4], g = [];
1444
1430
  for (let R = 0, E = f.length; R < E; R++) {
1445
1431
  const x = f[R], M = h[R], O = p[R], _ = T[R], v = m[R];
1446
- if (x === void 0)
1447
- continue;
1432
+ if (x === void 0) continue;
1448
1433
  x.updateMatrix && x.updateMatrix();
1449
1434
  const C = r._createAnimationTracks(x, M, O, _, v);
1450
1435
  if (C)
1451
1436
  for (let Q = 0; Q < C.length; Q++)
1452
1437
  g.push(C[Q]);
1453
1438
  }
1454
- return new rt(s, void 0, g);
1439
+ return new it(s, void 0, g);
1455
1440
  });
1456
1441
  }
1457
1442
  createNodeMesh(t) {
@@ -1482,7 +1467,7 @@ class Qt {
1482
1467
  ]).then(function(c) {
1483
1468
  const l = c[0], u = c[1], f = c[2];
1484
1469
  f !== null && l.traverse(function(h) {
1485
- h.isSkinnedMesh && h.bind(f, Yt);
1470
+ h.isSkinnedMesh && h.bind(f, Qt);
1486
1471
  });
1487
1472
  for (let h = 0, p = u.length; h < p; h++)
1488
1473
  l.add(u[h]);
@@ -1506,7 +1491,7 @@ class Qt {
1506
1491
  a.push(c);
1507
1492
  }), this.nodeCache[t] = Promise.all(a).then(function(c) {
1508
1493
  let l;
1509
- if (s.isBone === !0 ? l = new it() : c.length > 1 ? l = new ee() : c.length === 1 ? l = c[0] : l = new Me(), l !== c[0])
1494
+ if (s.isBone === !0 ? l = new ot() : c.length > 1 ? l = new ee() : c.length === 1 ? l = c[0] : l = new ye(), l !== c[0])
1510
1495
  for (let u = 0, f = c.length; u < f; u++)
1511
1496
  l.add(c[u]);
1512
1497
  if (s.name && (l.userData.name = s.name, l.name = i), w(l, s), s.extensions && P(r, l, s), s.matrix !== void 0) {
@@ -1534,7 +1519,7 @@ class Qt {
1534
1519
  const c = (l) => {
1535
1520
  const u = /* @__PURE__ */ new Map();
1536
1521
  for (const [f, h] of n.associations)
1537
- (f instanceof $ || f instanceof de) && u.set(f, h);
1522
+ (f instanceof $ || f instanceof fe) && u.set(f, h);
1538
1523
  return l.traverse((f) => {
1539
1524
  const h = n.associations.get(f);
1540
1525
  h != null && u.set(f, h);
@@ -1551,29 +1536,29 @@ class Qt {
1551
1536
  let c;
1552
1537
  switch (D[s.path]) {
1553
1538
  case D.weights:
1554
- c = he;
1539
+ c = pe;
1555
1540
  break;
1556
1541
  case D.rotation:
1557
- c = pe;
1542
+ c = me;
1558
1543
  break;
1559
1544
  case D.position:
1560
1545
  case D.scale:
1561
- c = fe;
1546
+ c = he;
1562
1547
  break;
1563
1548
  default:
1564
1549
  switch (r.itemSize) {
1565
1550
  case 1:
1566
- c = he;
1551
+ c = pe;
1567
1552
  break;
1568
1553
  case 2:
1569
1554
  case 3:
1570
1555
  default:
1571
- c = fe;
1556
+ c = he;
1572
1557
  break;
1573
1558
  }
1574
1559
  break;
1575
1560
  }
1576
- const l = n.interpolation !== void 0 ? Kt[n.interpolation] : Ie, u = this._getArrayFromAccessor(r);
1561
+ const l = n.interpolation !== void 0 ? Vt[n.interpolation] : Oe, u = this._getArrayFromAccessor(r);
1577
1562
  for (let f = 0, h = o.length; f < h; f++) {
1578
1563
  const p = new c(
1579
1564
  o[f] + "." + D[s.path],
@@ -1597,13 +1582,13 @@ class Qt {
1597
1582
  }
1598
1583
  _createCubicSplineTrackInterpolant(t) {
1599
1584
  t.createInterpolant = function(r) {
1600
- const n = this instanceof pe ? jt : Ce;
1585
+ const n = this instanceof me ? Kt : De;
1601
1586
  return new n(this.times, this.values, this.getValueSize() / 3, r);
1602
1587
  }, t.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline = !0;
1603
1588
  }
1604
1589
  }
1605
- function Zt(d, t, e) {
1606
- const r = t.attributes, n = new pt();
1590
+ function Jt(d, t, e) {
1591
+ const r = t.attributes, n = new mt();
1607
1592
  if (r.POSITION !== void 0) {
1608
1593
  const a = e.json.accessors[r.POSITION], o = a.min, c = a.max;
1609
1594
  if (o !== void 0 && c !== void 0) {
@@ -1640,10 +1625,10 @@ function Zt(d, t, e) {
1640
1625
  n.expandByVector(a);
1641
1626
  }
1642
1627
  d.boundingBox = n;
1643
- const i = new mt();
1628
+ const i = new At();
1644
1629
  n.getCenter(i.center), i.radius = n.min.distanceTo(n.max) / 2, d.boundingSphere = i;
1645
1630
  }
1646
- function Re(d, t, e) {
1631
+ function Ee(d, t, e) {
1647
1632
  const r = t.attributes, n = [];
1648
1633
  function s(i, a) {
1649
1634
  return e.getDependency("accessor", i).then(function(o) {
@@ -1660,14 +1645,14 @@ function Re(d, t, e) {
1660
1645
  });
1661
1646
  n.push(i);
1662
1647
  }
1663
- return le.workingColorSpace !== I && "COLOR_0" in r && console.warn(`THREE.GLTFLoader: Converting vertex colors from "srgb-linear" to "${le.workingColorSpace}" not supported.`), w(d, t), Zt(d, t, e), Promise.all(n).then(function() {
1664
- return t.targets !== void 0 ? Xt(d, t.targets, e) : d;
1648
+ return de.workingColorSpace !== I && "COLOR_0" in r && console.warn(`THREE.GLTFLoader: Converting vertex colors from "srgb-linear" to "${de.workingColorSpace}" not supported.`), w(d, t), Jt(d, t, e), Promise.all(n).then(function() {
1649
+ return t.targets !== void 0 ? zt(d, t.targets, e) : d;
1665
1650
  });
1666
1651
  }
1667
1652
  var k;
1668
- class tn {
1653
+ class nn {
1669
1654
  constructor() {
1670
- j(this, k, new gt());
1655
+ j(this, k, new Tt());
1671
1656
  }
1672
1657
  get gltfLoader() {
1673
1658
  return S(this, k);
@@ -1697,8 +1682,8 @@ class tn {
1697
1682
  N.cacheAssets && b.set(e, {
1698
1683
  data: s,
1699
1684
  dispose: () => {
1700
- s.cameras.forEach((i) => me(i)), s.scenes.forEach((i) => {
1701
- me(i);
1685
+ s.cameras.forEach((i) => Ae(i)), s.scenes.forEach((i) => {
1686
+ Ae(i);
1702
1687
  });
1703
1688
  }
1704
1689
  }), r(s);
@@ -1709,11 +1694,11 @@ class tn {
1709
1694
  }
1710
1695
  k = new WeakMap();
1711
1696
  var H, q, W;
1712
- class nn {
1697
+ class sn {
1713
1698
  constructor() {
1714
- j(this, H, new ye());
1715
- j(this, q, void 0);
1716
- j(this, W, void 0);
1699
+ j(this, H, new we());
1700
+ j(this, q);
1701
+ j(this, W);
1717
1702
  Z(this, q, S(this, H).load.bind(S(this, H))), Z(this, W, S(this, H).loadAsync.bind(S(this, H)));
1718
1703
  }
1719
1704
  load(...t) {
@@ -1730,7 +1715,7 @@ class nn {
1730
1715
  }, ...n);
1731
1716
  }
1732
1717
  loadSync(...t) {
1733
- return ue(this, null, function* () {
1718
+ return le(this, null, function* () {
1734
1719
  const [e, ...r] = t;
1735
1720
  if (N.cacheAssets && b.has(e))
1736
1721
  return b.get(e).data;
@@ -1751,7 +1736,7 @@ const F = {
1751
1736
  meshoptDecoder: null
1752
1737
  };
1753
1738
  export {
1754
- tn as En3GLTFLoader,
1755
- nn as En3TextureLoader,
1739
+ nn as En3GLTFLoader,
1740
+ sn as En3TextureLoader,
1756
1741
  F as loaders
1757
1742
  };