@hellpig/anarchy-engine 21.4.1 → 22.0.1

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 (1558) hide show
  1. package/CHANGELOG.md +4 -3
  2. package/README.md +9 -0
  3. package/dist/Abstract/Entities/AbstractEntity.js +1 -1
  4. package/dist/Abstract/Entities/AbstractEntity.js.map +1 -1
  5. package/dist/Abstract/Factories/AbstractFactory.js +1 -1
  6. package/dist/Abstract/Factories/AbstractFactory.js.map +1 -1
  7. package/dist/Abstract/Factories/ReactiveFactory.js +1 -1
  8. package/dist/Abstract/Factories/ReactiveFactory.js.map +1 -1
  9. package/dist/Abstract/Loaders/AbstractLoader.js +1 -1
  10. package/dist/Abstract/Loaders/AbstractLoader.js.map +1 -1
  11. package/dist/Abstract/Mixins/WithWrapperIdMixin.js +1 -1
  12. package/dist/Abstract/Mixins/WithWrapperIdMixin.js.map +1 -1
  13. package/dist/Abstract/Registries/AbstractEntityAsyncRegistry.js +1 -1
  14. package/dist/Abstract/Registries/AbstractEntityAsyncRegistry.js.map +1 -1
  15. package/dist/Abstract/Registries/AbstractEntityRegistry.js +1 -1
  16. package/dist/Abstract/Registries/AbstractEntityRegistry.js.map +1 -1
  17. package/dist/Abstract/Registries/AbstractResourceAsyncRegistry.js +1 -1
  18. package/dist/Abstract/Registries/AbstractResourceAsyncRegistry.js.map +1 -1
  19. package/dist/Abstract/Registries/AbstractSimpleRegistry.js +1 -1
  20. package/dist/Abstract/Registries/AbstractSimpleRegistry.js.map +1 -1
  21. package/dist/Abstract/Registries/Mixin/Registry/WithBaseAccessorsRegistry.js +1 -1
  22. package/dist/Abstract/Registries/Mixin/Registry/WithBaseAccessorsRegistry.js.map +1 -1
  23. package/dist/Abstract/Registries/Mixin/Registry/WithReactiveRegistry.js +1 -1
  24. package/dist/Abstract/Registries/Mixin/Registry/WithReactiveRegistry.js.map +1 -1
  25. package/dist/Abstract/Watchers/AbstractWatcher.js +1 -1
  26. package/dist/Abstract/Watchers/AbstractWatcher.js.map +1 -1
  27. package/dist/Abstract/Watchers/AbstractWatcherWithState.js +1 -1
  28. package/dist/Abstract/Watchers/AbstractWatcherWithState.js.map +1 -1
  29. package/dist/Abstract/Wrappers/AbstractWrapper.js +1 -1
  30. package/dist/Abstract/Wrappers/AbstractWrapper.js.map +1 -1
  31. package/dist/Actor/Adapters/ConfigToParams.d.ts +1 -1
  32. package/dist/Actor/Adapters/ConfigToParams.js +1 -1
  33. package/dist/Actor/Adapters/ConfigToParams.js.map +1 -1
  34. package/dist/Actor/Adapters/EntityToConfig.d.ts +1 -1
  35. package/dist/Actor/Adapters/EntityToConfig.js +1 -1
  36. package/dist/Actor/Adapters/EntityToConfig.js.map +1 -1
  37. package/dist/Actor/Adapters/Helpers/ActorStatesConfigToParams.js +1 -1
  38. package/dist/Actor/Adapters/Helpers/ActorStatesConfigToParams.js.map +1 -1
  39. package/dist/Actor/Adapters/Helpers/Model3dSettingsConfigToParams.js +1 -1
  40. package/dist/Actor/Adapters/Helpers/Model3dSettingsConfigToParams.js.map +1 -1
  41. package/dist/Actor/Entities/Actor/Actor.js +1 -1
  42. package/dist/Actor/Entities/Actor/Actor.js.map +1 -1
  43. package/dist/Actor/Factories/ActorFactory.js +1 -1
  44. package/dist/Actor/Factories/ActorFactory.js.map +1 -1
  45. package/dist/Actor/Mixins/WithActorStates.js +1 -1
  46. package/dist/Actor/Mixins/WithActorStates.js.map +1 -1
  47. package/dist/Actor/Registries/Model3dToActorConnectionRegistry.js +1 -1
  48. package/dist/Actor/Registries/Model3dToActorConnectionRegistry.js.map +1 -1
  49. package/dist/Actor/Utils/ActorUtils.js +1 -1
  50. package/dist/Actor/Utils/ActorUtils.js.map +1 -1
  51. package/dist/Actor/index.d.ts +1 -0
  52. package/dist/Animations/Adapters/EntityToConfig.js +1 -1
  53. package/dist/Animations/Adapters/EntityToConfig.js.map +1 -1
  54. package/dist/Animations/Loader/AnimationsLoader.js +1 -1
  55. package/dist/Animations/Loader/AnimationsLoader.js.map +1 -1
  56. package/dist/Animations/Services/AnimationsService.js +1 -1
  57. package/dist/Animations/Services/AnimationsService.js.map +1 -1
  58. package/dist/Animations/Utils/SerializationUtils.js +1 -1
  59. package/dist/Animations/Utils/SerializationUtils.js.map +1 -1
  60. package/dist/Audio/Adapters/AudioConfigToParams.d.ts +2 -0
  61. package/dist/Audio/Adapters/AudioConfigToParams.js +2 -0
  62. package/dist/Audio/Adapters/AudioConfigToParams.js.map +1 -0
  63. package/dist/Audio/Adapters/EntityToConfig.d.ts +1 -1
  64. package/dist/Audio/Adapters/EntityToConfig.js +1 -1
  65. package/dist/Audio/Adapters/EntityToConfig.js.map +1 -1
  66. package/dist/Audio/Adapters/index.d.ts +1 -1
  67. package/dist/Audio/Factories/AudioFactory.js +1 -1
  68. package/dist/Audio/Factories/AudioFactory.js.map +1 -1
  69. package/dist/Audio/Loader/AudioLoader.js +1 -1
  70. package/dist/Audio/Loader/AudioLoader.js.map +1 -1
  71. package/dist/Audio/Services/AudioService.js +1 -1
  72. package/dist/Audio/Services/AudioService.js.map +1 -1
  73. package/dist/Audio/Utils/AudioUtils.js +1 -1
  74. package/dist/Audio/Utils/AudioUtils.js.map +1 -1
  75. package/dist/Audio/Utils/DebugAudioRenderer.js +1 -1
  76. package/dist/Audio/Utils/DebugAudioRenderer.js.map +1 -1
  77. package/dist/Audio/Wrappers/AbstractAudioWrapper.js +1 -1
  78. package/dist/Audio/Wrappers/AbstractAudioWrapper.js.map +1 -1
  79. package/dist/Audio/Wrappers/Audio3dWrapper.js +1 -1
  80. package/dist/Audio/Wrappers/Audio3dWrapper.js.map +1 -1
  81. package/dist/Camera/Adapters/ConfigToParams.d.ts +1 -1
  82. package/dist/Camera/Adapters/ConfigToParams.js +1 -1
  83. package/dist/Camera/Adapters/ConfigToParams.js.map +1 -1
  84. package/dist/Camera/Adapters/EntityToConfig.d.ts +1 -1
  85. package/dist/Camera/Adapters/EntityToConfig.js +1 -1
  86. package/dist/Camera/Adapters/EntityToConfig.js.map +1 -1
  87. package/dist/Camera/Adapters/index.d.ts +1 -1
  88. package/dist/Camera/Factories/CameraFactory.js +1 -1
  89. package/dist/Camera/Factories/CameraFactory.js.map +1 -1
  90. package/dist/Camera/Services/CameraService.js +1 -1
  91. package/dist/Camera/Services/CameraService.js.map +1 -1
  92. package/dist/Camera/Utils/CameraUtils.js +1 -1
  93. package/dist/Camera/Utils/CameraUtils.js.map +1 -1
  94. package/dist/Camera/Wrappers/OrthographicCameraWrapper.js +1 -1
  95. package/dist/Camera/Wrappers/OrthographicCameraWrapper.js.map +1 -1
  96. package/dist/Camera/Wrappers/PerspectiveCameraWrapper.js +1 -1
  97. package/dist/Camera/Wrappers/PerspectiveCameraWrapper.js.map +1 -1
  98. package/dist/Collisions/Mixins/WithCollisions.js +1 -1
  99. package/dist/Collisions/Mixins/WithCollisions.js.map +1 -1
  100. package/dist/Collisions/Services/BvhService.js +1 -1
  101. package/dist/Collisions/Services/BvhService.js.map +1 -1
  102. package/dist/Collisions/Services/CollisionsService.js +1 -1
  103. package/dist/Collisions/Services/CollisionsService.js.map +1 -1
  104. package/dist/Color/Adapters/EntityToConfig.d.ts +1 -1
  105. package/dist/Color/Adapters/EntityToConfig.js +1 -1
  106. package/dist/Color/Adapters/EntityToConfig.js.map +1 -1
  107. package/dist/Color/Wrappers/ColorWrapper.js +1 -1
  108. package/dist/Color/Wrappers/ColorWrapper.js.map +1 -1
  109. package/dist/Controls/Adapters/ConfigToParams.d.ts +1 -1
  110. package/dist/Controls/Adapters/ConfigToParams.js +1 -1
  111. package/dist/Controls/Adapters/ConfigToParams.js.map +1 -1
  112. package/dist/Controls/Adapters/EntityToConfig.js +1 -1
  113. package/dist/Controls/Adapters/EntityToConfig.js.map +1 -1
  114. package/dist/Controls/Factories/ControlsFactory.js +1 -1
  115. package/dist/Controls/Factories/ControlsFactory.js.map +1 -1
  116. package/dist/Controls/Utils/ControlsUtils.js +1 -1
  117. package/dist/Controls/Utils/ControlsUtils.js.map +1 -1
  118. package/dist/Controls/Wrappers/FpsControls/FpsControlsWrapper.js +1 -1
  119. package/dist/Controls/Wrappers/FpsControls/FpsControlsWrapper.js.map +1 -1
  120. package/dist/Controls/Wrappers/FpsControls/FpsControlsWrapperHelper.js +1 -1
  121. package/dist/Controls/Wrappers/FpsControls/FpsControlsWrapperHelper.js.map +1 -1
  122. package/dist/Controls/Wrappers/OrbitControls/OrbitControlsWrapper.js +1 -1
  123. package/dist/Controls/Wrappers/OrbitControls/OrbitControlsWrapper.js.map +1 -1
  124. package/dist/Controls/Wrappers/OrbitControls/OrbitControlsWrapperHelper.js +1 -1
  125. package/dist/Controls/Wrappers/OrbitControls/OrbitControlsWrapperHelper.js.map +1 -1
  126. package/dist/Controls/index.d.ts +1 -0
  127. package/dist/EnvMap/Adapters/ConfigToParams.d.ts +1 -1
  128. package/dist/EnvMap/Adapters/ConfigToParams.js +1 -1
  129. package/dist/EnvMap/Adapters/ConfigToParams.js.map +1 -1
  130. package/dist/EnvMap/Adapters/EntityToConfig.d.ts +1 -1
  131. package/dist/EnvMap/Adapters/EntityToConfig.js +1 -1
  132. package/dist/EnvMap/Adapters/EntityToConfig.js.map +1 -1
  133. package/dist/EnvMap/Constants/EnvMapMappingTypesMap.js +1 -1
  134. package/dist/EnvMap/Constants/EnvMapMappingTypesMap.js.map +1 -1
  135. package/dist/EnvMap/Factories/EnvMapFactory.js +1 -1
  136. package/dist/EnvMap/Factories/EnvMapFactory.js.map +1 -1
  137. package/dist/EnvMap/Loader/EnvMapLoader.js +1 -1
  138. package/dist/EnvMap/Loader/EnvMapLoader.js.map +1 -1
  139. package/dist/EnvMap/Services/EnvMapService.js +1 -1
  140. package/dist/EnvMap/Services/EnvMapService.js.map +1 -1
  141. package/dist/EnvMap/Wrappers/EnvMapWrapper.js +1 -1
  142. package/dist/EnvMap/Wrappers/EnvMapWrapper.js.map +1 -1
  143. package/dist/EnvMap/index.d.ts +1 -1
  144. package/dist/Fog/Adapters/ConfigToParams.d.ts +1 -1
  145. package/dist/Fog/Adapters/ConfigToParams.js +1 -1
  146. package/dist/Fog/Adapters/ConfigToParams.js.map +1 -1
  147. package/dist/Fog/Adapters/EntityToConfig.d.ts +1 -1
  148. package/dist/Fog/Adapters/EntityToConfig.js +1 -1
  149. package/dist/Fog/Adapters/EntityToConfig.js.map +1 -1
  150. package/dist/Fog/Factories/FogFactory.js +1 -1
  151. package/dist/Fog/Factories/FogFactory.js.map +1 -1
  152. package/dist/Fog/Wrappers/FogWrapper.js +1 -1
  153. package/dist/Fog/Wrappers/FogWrapper.js.map +1 -1
  154. package/dist/Fog/index.d.ts +1 -0
  155. package/dist/Fsm/Adapters/ConfigToParams.d.ts +1 -1
  156. package/dist/Fsm/Adapters/ConfigToParams.js +1 -1
  157. package/dist/Fsm/Adapters/ConfigToParams.js.map +1 -1
  158. package/dist/Fsm/Adapters/EntityToConfig.d.ts +1 -1
  159. package/dist/Fsm/Adapters/EntityToConfig.js +1 -1
  160. package/dist/Fsm/Adapters/EntityToConfig.js.map +1 -1
  161. package/dist/Fsm/Entities/FsmSource.js +1 -1
  162. package/dist/Fsm/Entities/FsmSource.js.map +1 -1
  163. package/dist/Fsm/Factories/FsmInstanceFactory.js +1 -1
  164. package/dist/Fsm/Factories/FsmInstanceFactory.js.map +1 -1
  165. package/dist/Fsm/Factories/FsmSourceFactory.js +1 -1
  166. package/dist/Fsm/Factories/FsmSourceFactory.js.map +1 -1
  167. package/dist/Fsm/Services/FsmService.js +1 -1
  168. package/dist/Fsm/Services/FsmService.js.map +1 -1
  169. package/dist/Fsm/Wrappers/FsmWrapper.js +1 -1
  170. package/dist/Fsm/Wrappers/FsmWrapper.js.map +1 -1
  171. package/dist/Global/Decorators/ContainerDecorator.js +1 -1
  172. package/dist/Global/Decorators/ContainerDecorator.js.map +1 -1
  173. package/dist/Global/Utils/ContainerUtils.js +1 -1
  174. package/dist/Global/Utils/ContainerUtils.js.map +1 -1
  175. package/dist/Intersections/Adapters/ConfigToParams.d.ts +1 -1
  176. package/dist/Intersections/Adapters/ConfigToParams.js +1 -1
  177. package/dist/Intersections/Adapters/ConfigToParams.js.map +1 -1
  178. package/dist/Intersections/Adapters/EntityToConfig.d.ts +1 -1
  179. package/dist/Intersections/Adapters/EntityToConfig.js +1 -1
  180. package/dist/Intersections/Adapters/EntityToConfig.js.map +1 -1
  181. package/dist/Intersections/Factories/IntersectionsWatcherFactory.js +1 -1
  182. package/dist/Intersections/Factories/IntersectionsWatcherFactory.js.map +1 -1
  183. package/dist/Intersections/Services/IntersectionsWatcherService.js +1 -1
  184. package/dist/Intersections/Services/IntersectionsWatcherService.js.map +1 -1
  185. package/dist/Intersections/Utils/IntersectionsWatcherUtils.js +1 -1
  186. package/dist/Intersections/Utils/IntersectionsWatcherUtils.js.map +1 -1
  187. package/dist/Intersections/Watchers/AbstractIntersectionsWatcher.js +1 -1
  188. package/dist/Intersections/Watchers/AbstractIntersectionsWatcher.js.map +1 -1
  189. package/dist/Intersections/Watchers/IntersectionsCameraWatcher.js +1 -1
  190. package/dist/Intersections/Watchers/IntersectionsCameraWatcher.js.map +1 -1
  191. package/dist/Intersections/Watchers/IntersectionsDirectionWatcher.js +1 -1
  192. package/dist/Intersections/Watchers/IntersectionsDirectionWatcher.js.map +1 -1
  193. package/dist/Intersections/index.d.ts +1 -1
  194. package/dist/Keyboard/Services/KeyboardService.js +1 -1
  195. package/dist/Keyboard/Services/KeyboardService.js.map +1 -1
  196. package/dist/Keyboard/Utils/KeysRxJsUtils.js +1 -1
  197. package/dist/Keyboard/Utils/KeysRxJsUtils.js.map +1 -1
  198. package/dist/Keyboard/Utils/KeysUtils.js +1 -1
  199. package/dist/Keyboard/Utils/KeysUtils.js.map +1 -1
  200. package/dist/Keyboard/Watchers/KeyComboWatcher.js +1 -1
  201. package/dist/Keyboard/Watchers/KeyComboWatcher.js.map +1 -1
  202. package/dist/Keyboard/Watchers/KeyPressWatcher.js +1 -1
  203. package/dist/Keyboard/Watchers/KeyPressWatcher.js.map +1 -1
  204. package/dist/Keyboard/Watchers/KeyReleaseWatcher.js +1 -1
  205. package/dist/Keyboard/Watchers/KeyReleaseWatcher.js.map +1 -1
  206. package/dist/Kinematic/Adapters/ConfigToParams.d.ts +1 -1
  207. package/dist/Kinematic/Adapters/ConfigToParams.js +1 -1
  208. package/dist/Kinematic/Adapters/ConfigToParams.js.map +1 -1
  209. package/dist/Kinematic/Adapters/EntityToConfig.d.ts +1 -1
  210. package/dist/Kinematic/Adapters/EntityToConfig.js +1 -1
  211. package/dist/Kinematic/Adapters/EntityToConfig.js.map +1 -1
  212. package/dist/Kinematic/Adapters/index.d.ts +1 -1
  213. package/dist/Kinematic/Constants/KinematicConstants.js +1 -1
  214. package/dist/Kinematic/Constants/KinematicConstants.js.map +1 -1
  215. package/dist/Kinematic/Utils/KinematicUtils.js +1 -1
  216. package/dist/Kinematic/Utils/KinematicUtils.js.map +1 -1
  217. package/dist/Light/Adapters/ConfigToParams.d.ts +1 -1
  218. package/dist/Light/Adapters/ConfigToParams.js +1 -1
  219. package/dist/Light/Adapters/ConfigToParams.js.map +1 -1
  220. package/dist/Light/Adapters/EntityToConfig.d.ts +1 -1
  221. package/dist/Light/Adapters/EntityToConfig.js +1 -1
  222. package/dist/Light/Adapters/EntityToConfig.js.map +1 -1
  223. package/dist/Light/Factories/LightFactory.js +1 -1
  224. package/dist/Light/Factories/LightFactory.js.map +1 -1
  225. package/dist/Light/Utils/Utils.js +1 -1
  226. package/dist/Light/Utils/Utils.js.map +1 -1
  227. package/dist/Light/Wrappers/AbstractLightWrapper.js +1 -1
  228. package/dist/Light/Wrappers/AbstractLightWrapper.js.map +1 -1
  229. package/dist/Light/Wrappers/AmbientLightWrapper.js +1 -1
  230. package/dist/Light/Wrappers/AmbientLightWrapper.js.map +1 -1
  231. package/dist/Light/Wrappers/DirectionalLightWrapper.js +1 -1
  232. package/dist/Light/Wrappers/DirectionalLightWrapper.js.map +1 -1
  233. package/dist/Light/Wrappers/HemisphereLightWrapper.js +1 -1
  234. package/dist/Light/Wrappers/HemisphereLightWrapper.js.map +1 -1
  235. package/dist/Light/Wrappers/LightWrapperHelper.js +1 -1
  236. package/dist/Light/Wrappers/LightWrapperHelper.js.map +1 -1
  237. package/dist/Light/Wrappers/PointLightWrapper.js +1 -1
  238. package/dist/Light/Wrappers/PointLightWrapper.js.map +1 -1
  239. package/dist/Light/Wrappers/RectAreaLightWrapper.js +1 -1
  240. package/dist/Light/Wrappers/RectAreaLightWrapper.js.map +1 -1
  241. package/dist/Light/Wrappers/SpotLightWrapper.js +1 -1
  242. package/dist/Light/Wrappers/SpotLightWrapper.js.map +1 -1
  243. package/dist/Light/index.d.ts +1 -0
  244. package/dist/LoadingManager/Wrappers/LoadingManagerWrapper.js +1 -1
  245. package/dist/LoadingManager/Wrappers/LoadingManagerWrapper.js.map +1 -1
  246. package/dist/Loop/Entities/DeltaCalculator.js +1 -1
  247. package/dist/Loop/Entities/DeltaCalculator.js.map +1 -1
  248. package/dist/Loop/Entities/Loop.js +1 -1
  249. package/dist/Loop/Entities/Loop.js.map +1 -1
  250. package/dist/Material/Adapters/ConfigToParams.d.ts +1 -1
  251. package/dist/Material/Adapters/ConfigToParams.js +1 -1
  252. package/dist/Material/Adapters/ConfigToParams.js.map +1 -1
  253. package/dist/Material/Adapters/EntityToConfig.d.ts +1 -1
  254. package/dist/Material/Adapters/EntityToConfig.js +1 -1
  255. package/dist/Material/Adapters/EntityToConfig.js.map +1 -1
  256. package/dist/Material/Constants/BlendEquation/BlendEquationMap.js +1 -1
  257. package/dist/Material/Constants/BlendEquation/BlendEquationMap.js.map +1 -1
  258. package/dist/Material/Constants/Blending/BlendingMap.js +1 -1
  259. package/dist/Material/Constants/Blending/BlendingMap.js.map +1 -1
  260. package/dist/Material/Constants/BlendingDstFactor/BlendingDstFactorMap.js +1 -1
  261. package/dist/Material/Constants/BlendingDstFactor/BlendingDstFactorMap.js.map +1 -1
  262. package/dist/Material/Constants/BlendingSrcFactorName/BlendingSrcFactorMap.js +1 -1
  263. package/dist/Material/Constants/BlendingSrcFactorName/BlendingSrcFactorMap.js.map +1 -1
  264. package/dist/Material/Constants/Combine/CombineMap.js +1 -1
  265. package/dist/Material/Constants/Combine/CombineMap.js.map +1 -1
  266. package/dist/Material/Constants/DepthPacking/DepthPackingStrategiesMap.js +1 -1
  267. package/dist/Material/Constants/DepthPacking/DepthPackingStrategiesMap.js.map +1 -1
  268. package/dist/Material/Constants/Format/PixelFormatMap.js +1 -1
  269. package/dist/Material/Constants/Format/PixelFormatMap.js.map +1 -1
  270. package/dist/Material/Constants/Material/MaterialMap.js +1 -1
  271. package/dist/Material/Constants/Material/MaterialMap.js.map +1 -1
  272. package/dist/Material/Constants/NormalMapTypes/NormalMapTypesMap.js +1 -1
  273. package/dist/Material/Constants/NormalMapTypes/NormalMapTypesMap.js.map +1 -1
  274. package/dist/Material/Constants/Side/SideMap.js +1 -1
  275. package/dist/Material/Constants/Side/SideMap.js.map +1 -1
  276. package/dist/Material/Constants/StencilFail/StencilFailMap.js +1 -1
  277. package/dist/Material/Constants/StencilFail/StencilFailMap.js.map +1 -1
  278. package/dist/Material/Constants/StencilFuncName/StencilFuncMap.js +1 -1
  279. package/dist/Material/Constants/StencilFuncName/StencilFuncMap.js.map +1 -1
  280. package/dist/Material/Constants/StencilOpName/StencilOpMap.js +1 -1
  281. package/dist/Material/Constants/StencilOpName/StencilOpMap.js.map +1 -1
  282. package/dist/Material/Factories/MaterialFactory.js +1 -1
  283. package/dist/Material/Factories/MaterialFactory.js.map +1 -1
  284. package/dist/Material/Mixins/WithMaterial.js +1 -1
  285. package/dist/Material/Mixins/WithMaterial.js.map +1 -1
  286. package/dist/Material/Utils/MaterialUtils.js +1 -1
  287. package/dist/Material/Utils/MaterialUtils.js.map +1 -1
  288. package/dist/Material/Wrappers/MaterialWrapper.js +1 -1
  289. package/dist/Material/Wrappers/MaterialWrapper.js.map +1 -1
  290. package/dist/Material/index.d.ts +1 -0
  291. package/dist/Math/Utils/AnglesUtils.js +1 -1
  292. package/dist/Math/Utils/AnglesUtils.js.map +1 -1
  293. package/dist/Measurements/Utils/MeasurementsUtils.js +1 -1
  294. package/dist/Measurements/Utils/MeasurementsUtils.js.map +1 -1
  295. package/dist/Mixins/GameObjects/Mixins/Position/WithPosition2dMixin.js +1 -1
  296. package/dist/Mixins/GameObjects/Mixins/Position/WithPosition2dMixin.js.map +1 -1
  297. package/dist/Mixins/GameObjects/Mixins/Position/WithPosition4dMixin.js +1 -1
  298. package/dist/Mixins/GameObjects/Mixins/Position/WithPosition4dMixin.js.map +1 -1
  299. package/dist/Mixins/GameObjects/Mixins/Rotatable/WithRotationMixin.js +1 -1
  300. package/dist/Mixins/GameObjects/Mixins/Rotatable/WithRotationMixin.js.map +1 -1
  301. package/dist/Mixins/Generics/DestroyableMixin.js +1 -1
  302. package/dist/Mixins/Generics/DestroyableMixin.js.map +1 -1
  303. package/dist/Mixins/Generics/ExtractSerializableRegistrableFields.js +1 -1
  304. package/dist/Mixins/Generics/ExtractSerializableRegistrableFields.js.map +1 -1
  305. package/dist/Mixins/Generics/WithActiveEntityServiceMixin.js +1 -1
  306. package/dist/Mixins/Generics/WithActiveEntityServiceMixin.js.map +1 -1
  307. package/dist/Models3d/Adapters/ConfigToParams.d.ts +1 -1
  308. package/dist/Models3d/Adapters/ConfigToParams.js +1 -1
  309. package/dist/Models3d/Adapters/ConfigToParams.js.map +1 -1
  310. package/dist/Models3d/Adapters/EntityToConfig.d.ts +1 -1
  311. package/dist/Models3d/Adapters/EntityToConfig.js +1 -1
  312. package/dist/Models3d/Adapters/EntityToConfig.js.map +1 -1
  313. package/dist/Models3d/Entities/Model3d.js +1 -1
  314. package/dist/Models3d/Entities/Model3d.js.map +1 -1
  315. package/dist/Models3d/Factories/Models3dFactory.js +1 -1
  316. package/dist/Models3d/Factories/Models3dFactory.js.map +1 -1
  317. package/dist/Models3d/Loaders/Loader3dCore.js +1 -1
  318. package/dist/Models3d/Loaders/Loader3dCore.js.map +1 -1
  319. package/dist/Models3d/Loaders/Models3dLoader.js +1 -1
  320. package/dist/Models3d/Loaders/Models3dLoader.js.map +1 -1
  321. package/dist/Models3d/Mixins/WithModel3dEntities.js +1 -1
  322. package/dist/Models3d/Mixins/WithModel3dEntities.js.map +1 -1
  323. package/dist/Models3d/Utils/SerializationUtils.js +1 -1
  324. package/dist/Models3d/Utils/SerializationUtils.js.map +1 -1
  325. package/dist/Models3d/Utils/UtilsModel3d.js +1 -1
  326. package/dist/Models3d/Utils/UtilsModel3d.js.map +1 -1
  327. package/dist/Models3d/Utils/UtilsModels3dService.js +1 -1
  328. package/dist/Models3d/Utils/UtilsModels3dService.js.map +1 -1
  329. package/dist/Models3d/Utils/UtilsPrimitiveModels3d.js +1 -1
  330. package/dist/Models3d/Utils/UtilsPrimitiveModels3d.js.map +1 -1
  331. package/dist/Models3d/index.d.ts +1 -1
  332. package/dist/Mouse/Services/MouseService.js +1 -1
  333. package/dist/Mouse/Services/MouseService.js.map +1 -1
  334. package/dist/Mouse/Utils/MouseUtils.js +1 -1
  335. package/dist/Mouse/Utils/MouseUtils.js.map +1 -1
  336. package/dist/Mouse/Watchers/MouseClickWatcher.js +1 -1
  337. package/dist/Mouse/Watchers/MouseClickWatcher.js.map +1 -1
  338. package/dist/Mouse/Watchers/MousePositionWatcher.js +1 -1
  339. package/dist/Mouse/Watchers/MousePositionWatcher.js.map +1 -1
  340. package/dist/Particles/Adapters/ConfigToParams.d.ts +1 -1
  341. package/dist/Particles/Adapters/ConfigToParams.js +1 -1
  342. package/dist/Particles/Adapters/ConfigToParams.js.map +1 -1
  343. package/dist/Particles/Adapters/EntityToConfig.d.ts +1 -1
  344. package/dist/Particles/Adapters/EntityToConfig.js +1 -1
  345. package/dist/Particles/Adapters/EntityToConfig.js.map +1 -1
  346. package/dist/Particles/Factories/ParticlesFactory.js +1 -1
  347. package/dist/Particles/Factories/ParticlesFactory.js.map +1 -1
  348. package/dist/Particles/Wrappers/ParticlesWrapper.js +1 -1
  349. package/dist/Particles/Wrappers/ParticlesWrapper.js.map +1 -1
  350. package/dist/Particles/index.d.ts +1 -1
  351. package/dist/Physics/Adapters/EntityToConfig.d.ts +1 -1
  352. package/dist/Physics/Adapters/EntityToConfig.js +1 -1
  353. package/dist/Physics/Adapters/EntityToConfig.js.map +1 -1
  354. package/dist/Physics/Adapters/PhysicsBodyConfigToParams.d.ts +1 -1
  355. package/dist/Physics/Adapters/PhysicsBodyConfigToParams.js +1 -1
  356. package/dist/Physics/Adapters/PhysicsBodyConfigToParams.js.map +1 -1
  357. package/dist/Physics/Adapters/PhysicsWorldConfigToParams.d.ts +1 -1
  358. package/dist/Physics/Adapters/PhysicsWorldConfigToParams.js +1 -1
  359. package/dist/Physics/Adapters/PhysicsWorldConfigToParams.js.map +1 -1
  360. package/dist/Physics/Constants/PhysicsConstants.js +1 -1
  361. package/dist/Physics/Constants/PhysicsConstants.js.map +1 -1
  362. package/dist/Physics/Constants/RigidBodyTypesMap.js +1 -1
  363. package/dist/Physics/Constants/RigidBodyTypesMap.js.map +1 -1
  364. package/dist/Physics/Entities/PhysicsBody.js +1 -1
  365. package/dist/Physics/Entities/PhysicsBody.js.map +1 -1
  366. package/dist/Physics/Entities/PhysicsBodyUtils.js +1 -1
  367. package/dist/Physics/Entities/PhysicsBodyUtils.js.map +1 -1
  368. package/dist/Physics/Factories/PhysicsBodyFactory.js +1 -1
  369. package/dist/Physics/Factories/PhysicsBodyFactory.js.map +1 -1
  370. package/dist/Physics/Renderers/PhysicsDebugRenderer.js +1 -1
  371. package/dist/Physics/Renderers/PhysicsDebugRenderer.js.map +1 -1
  372. package/dist/Physics/Services/PhysicsWorldService.js +1 -1
  373. package/dist/Physics/Services/PhysicsWorldService.js.map +1 -1
  374. package/dist/Physics/Utils/ParamsUtils.js +1 -1
  375. package/dist/Physics/Utils/ParamsUtils.js.map +1 -1
  376. package/dist/Physics/Utils/PhysicsMovementUtils.js +1 -1
  377. package/dist/Physics/Utils/PhysicsMovementUtils.js.map +1 -1
  378. package/dist/Renderer/Adapters/ConfigToParams.d.ts +1 -1
  379. package/dist/Renderer/Adapters/ConfigToParams.js +1 -1
  380. package/dist/Renderer/Adapters/ConfigToParams.js.map +1 -1
  381. package/dist/Renderer/Adapters/EntityToConfig.d.ts +1 -1
  382. package/dist/Renderer/Adapters/EntityToConfig.js +1 -1
  383. package/dist/Renderer/Adapters/EntityToConfig.js.map +1 -1
  384. package/dist/Renderer/Factories/RendererFactory.js +1 -1
  385. package/dist/Renderer/Factories/RendererFactory.js.map +1 -1
  386. package/dist/Renderer/Loop/RendererLoopEffect.js +1 -1
  387. package/dist/Renderer/Loop/RendererLoopEffect.js.map +1 -1
  388. package/dist/Renderer/Wrappers/RendererWrapper.js +1 -1
  389. package/dist/Renderer/Wrappers/RendererWrapper.js.map +1 -1
  390. package/dist/Renderer/index.d.ts +1 -1
  391. package/dist/Scene/Adapters/ConfigToParams.d.ts +1 -1
  392. package/dist/Scene/Adapters/ConfigToParams.js +1 -1
  393. package/dist/Scene/Adapters/ConfigToParams.js.map +1 -1
  394. package/dist/Scene/Adapters/EntityToConfig.d.ts +1 -1
  395. package/dist/Scene/Adapters/EntityToConfig.js +1 -1
  396. package/dist/Scene/Adapters/EntityToConfig.js.map +1 -1
  397. package/dist/Scene/Factories/SceneFactory.js +1 -1
  398. package/dist/Scene/Factories/SceneFactory.js.map +1 -1
  399. package/dist/Scene/Wrappers/SceneWrapper.js +1 -1
  400. package/dist/Scene/Wrappers/SceneWrapper.js.map +1 -1
  401. package/dist/Scene/index.d.ts +1 -0
  402. package/dist/Space/Adapters/ConfigToParams.d.ts +1 -1
  403. package/dist/Space/Adapters/ConfigToParams.js +1 -1
  404. package/dist/Space/Adapters/ConfigToParams.js.map +1 -1
  405. package/dist/Space/Adapters/EntityToConfig.d.ts +1 -1
  406. package/dist/Space/Adapters/EntityToConfig.js +1 -1
  407. package/dist/Space/Adapters/EntityToConfig.js.map +1 -1
  408. package/dist/Space/Entities/Space.js +1 -1
  409. package/dist/Space/Entities/Space.js.map +1 -1
  410. package/dist/Space/Entities/SpaceFromConfig.js +1 -1
  411. package/dist/Space/Entities/SpaceFromConfig.js.map +1 -1
  412. package/dist/Space/Factories/SpaceFactory.js +1 -1
  413. package/dist/Space/Factories/SpaceFactory.js.map +1 -1
  414. package/dist/Space/Utils/CanvasUtils.js +1 -1
  415. package/dist/Space/Utils/CanvasUtils.js.map +1 -1
  416. package/dist/Space/Utils/CreateEntitiesUtils.js +1 -1
  417. package/dist/Space/Utils/CreateEntitiesUtils.js.map +1 -1
  418. package/dist/Space/Utils/SchemaValidationUtils.js +1 -1
  419. package/dist/Space/Utils/SchemaValidationUtils.js.map +1 -1
  420. package/dist/Space/Validators/SchemasValidator.js +1 -1
  421. package/dist/Space/Validators/SchemasValidator.js.map +1 -1
  422. package/dist/Space/Validators/ValidateSpace.js +1 -1
  423. package/dist/Space/Validators/ValidateSpace.js.map +1 -1
  424. package/dist/Space/index.d.ts +1 -1
  425. package/dist/Spatial/Adapters/ConfigToParams.d.ts +1 -1
  426. package/dist/Spatial/Adapters/ConfigToParams.js +1 -1
  427. package/dist/Spatial/Adapters/ConfigToParams.js.map +1 -1
  428. package/dist/Spatial/Adapters/ConfigToParamsSpatialData.d.ts +1 -1
  429. package/dist/Spatial/Adapters/ConfigToParamsSpatialData.js +1 -1
  430. package/dist/Spatial/Adapters/ConfigToParamsSpatialData.js.map +1 -1
  431. package/dist/Spatial/Adapters/EntityToConfig.d.ts +1 -1
  432. package/dist/Spatial/Adapters/EntityToConfig.js +1 -1
  433. package/dist/Spatial/Adapters/EntityToConfig.js.map +1 -1
  434. package/dist/Spatial/Factories/SpatialGridFactory.js +1 -1
  435. package/dist/Spatial/Factories/SpatialGridFactory.js.map +1 -1
  436. package/dist/Spatial/Mixins/WithReactivePosition.js +1 -1
  437. package/dist/Spatial/Mixins/WithReactivePosition.js.map +1 -1
  438. package/dist/Spatial/Mixins/WithReactiveRotation.js +1 -1
  439. package/dist/Spatial/Mixins/WithReactiveRotation.js.map +1 -1
  440. package/dist/Spatial/Mixins/WithSpatial.js +1 -1
  441. package/dist/Spatial/Mixins/WithSpatial.js.map +1 -1
  442. package/dist/Spatial/Mixins/WithUpdateSpatialCell.js +1 -1
  443. package/dist/Spatial/Mixins/WithUpdateSpatialCell.js.map +1 -1
  444. package/dist/Spatial/Services/SpatialHelper.js +1 -1
  445. package/dist/Spatial/Services/SpatialHelper.js.map +1 -1
  446. package/dist/Spatial/Wrappers/SpatialCellWrapper.js +1 -1
  447. package/dist/Spatial/Wrappers/SpatialCellWrapper.js.map +1 -1
  448. package/dist/Spatial/Wrappers/SpatialGridWrapper.js +1 -1
  449. package/dist/Spatial/Wrappers/SpatialGridWrapper.js.map +1 -1
  450. package/dist/Text/Adapters/ConfigToParams.d.ts +1 -1
  451. package/dist/Text/Adapters/ConfigToParams.js +1 -1
  452. package/dist/Text/Adapters/ConfigToParams.js.map +1 -1
  453. package/dist/Text/Adapters/EntityToConfig.d.ts +1 -1
  454. package/dist/Text/Adapters/EntityToConfig.js +1 -1
  455. package/dist/Text/Adapters/EntityToConfig.js.map +1 -1
  456. package/dist/Text/Factories/TextFactory.js +1 -1
  457. package/dist/Text/Factories/TextFactory.js.map +1 -1
  458. package/dist/Text/Loop/TextLoopEffect.js +1 -1
  459. package/dist/Text/Loop/TextLoopEffect.js.map +1 -1
  460. package/dist/Text/Renderers/Text2dRenderer.js +1 -1
  461. package/dist/Text/Renderers/Text2dRenderer.js.map +1 -1
  462. package/dist/Text/Renderers/Text3dRenderer.js +1 -1
  463. package/dist/Text/Renderers/Text3dRenderer.js.map +1 -1
  464. package/dist/Text/Renderers/TextRendererBuilder.js +1 -1
  465. package/dist/Text/Renderers/TextRendererBuilder.js.map +1 -1
  466. package/dist/Text/Services/TextService.js +1 -1
  467. package/dist/Text/Services/TextService.js.map +1 -1
  468. package/dist/Text/Wrappers/Accessors.js +1 -1
  469. package/dist/Text/Wrappers/Accessors.js.map +1 -1
  470. package/dist/Text/Wrappers/TextTextureWrapper.js +1 -1
  471. package/dist/Text/Wrappers/TextTextureWrapper.js.map +1 -1
  472. package/dist/Text/Wrappers/TextWrapper.js +1 -1
  473. package/dist/Text/Wrappers/TextWrapper.js.map +1 -1
  474. package/dist/Text/Wrappers/TextWrapperHelper.js +1 -1
  475. package/dist/Text/Wrappers/TextWrapperHelper.js.map +1 -1
  476. package/dist/Text/index.d.ts +1 -0
  477. package/dist/Texture/Loaders/TexturesLoader.js +1 -1
  478. package/dist/Texture/Loaders/TexturesLoader.js.map +1 -1
  479. package/dist/Texture/Utils/TextureServiceHelper.js +1 -1
  480. package/dist/Texture/Utils/TextureServiceHelper.js.map +1 -1
  481. package/dist/ThreeLib/Utils/Object3dUtils.d.ts +1 -1
  482. package/dist/ThreeLib/Utils/Object3dUtils.js +1 -1
  483. package/dist/ThreeLib/Utils/Object3dUtils.js.map +1 -1
  484. package/dist/TransformDrive/Adapters/EntityToConfig.js +1 -1
  485. package/dist/TransformDrive/Adapters/EntityToConfig.js.map +1 -1
  486. package/dist/TransformDrive/Entities/Agents/AbstractTransformAgent.js +1 -1
  487. package/dist/TransformDrive/Entities/Agents/AbstractTransformAgent.js.map +1 -1
  488. package/dist/TransformDrive/Entities/Agents/KinematicTransformAgent.js +1 -1
  489. package/dist/TransformDrive/Entities/Agents/KinematicTransformAgent.js.map +1 -1
  490. package/dist/TransformDrive/Entities/Agents/PhysicsTransformAgent.js +1 -1
  491. package/dist/TransformDrive/Entities/Agents/PhysicsTransformAgent.js.map +1 -1
  492. package/dist/TransformDrive/Entities/Connectors/DriveToTargetConnector.js +1 -1
  493. package/dist/TransformDrive/Entities/Connectors/DriveToTargetConnector.js.map +1 -1
  494. package/dist/TransformDrive/Entities/Drive/TransformDrive.js +1 -1
  495. package/dist/TransformDrive/Entities/Drive/TransformDrive.js.map +1 -1
  496. package/dist/TransformDrive/Services/TransformDriveService.js +1 -1
  497. package/dist/TransformDrive/Services/TransformDriveService.js.map +1 -1
  498. package/dist/TransformDrive/Utils/AgentUtils.js +1 -1
  499. package/dist/TransformDrive/Utils/AgentUtils.js.map +1 -1
  500. package/dist/TransformDrive/Utils/KinematicAgentUtils.js +1 -1
  501. package/dist/TransformDrive/Utils/KinematicAgentUtils.js.map +1 -1
  502. package/dist/TransformDrive/Utils/PhysicsTransformAgentUtils.js +1 -1
  503. package/dist/TransformDrive/Utils/PhysicsTransformAgentUtils.js.map +1 -1
  504. package/dist/TransformDrive/Utils/TransformDriveUtils.js +1 -1
  505. package/dist/TransformDrive/Utils/TransformDriveUtils.js.map +1 -1
  506. package/dist/Utils/CheckUtils.js +1 -1
  507. package/dist/Utils/CheckUtils.js.map +1 -1
  508. package/dist/Utils/CoordsUtils.js +1 -1
  509. package/dist/Utils/CoordsUtils.js.map +1 -1
  510. package/dist/Utils/DateTimeUtils.js +1 -1
  511. package/dist/Utils/DateTimeUtils.js.map +1 -1
  512. package/dist/Utils/DestroyUtils.js +1 -1
  513. package/dist/Utils/DestroyUtils.js.map +1 -1
  514. package/dist/Utils/DomUtils.js +1 -1
  515. package/dist/Utils/DomUtils.js.map +1 -1
  516. package/dist/Utils/RegistryAsyncUtils.js +1 -1
  517. package/dist/Utils/RegistryAsyncUtils.js.map +1 -1
  518. package/dist/Utils/RegistryUtils.js +1 -1
  519. package/dist/Utils/RegistryUtils.js.map +1 -1
  520. package/dist/Utils/RotationUtils.js +1 -1
  521. package/dist/Utils/RotationUtils.js.map +1 -1
  522. package/dist/Utils/RxJsUtils.js +1 -1
  523. package/dist/Utils/RxJsUtils.js.map +1 -1
  524. package/dist/Utils/ScreenUtils.js +1 -1
  525. package/dist/Utils/ScreenUtils.js.map +1 -1
  526. package/dist/Utils/TagsUtils.js +1 -1
  527. package/dist/Utils/TagsUtils.js.map +1 -1
  528. package/dist/Utils/WrapperHelpers.js +1 -1
  529. package/dist/Utils/WrapperHelpers.js.map +1 -1
  530. package/dist/_virtual/stateMachine.js +1 -1
  531. package/dist/index.js +1 -1
  532. package/dist/node_modules/@cfworker/json-schema/dist/esm/deep-compare-strict.js.map +1 -0
  533. package/dist/node_modules/@cfworker/json-schema/dist/esm/dereference.js.map +1 -0
  534. package/dist/node_modules/@cfworker/json-schema/dist/esm/format.js.map +1 -0
  535. package/dist/node_modules/@cfworker/json-schema/dist/esm/pointer.js.map +1 -0
  536. package/dist/node_modules/@cfworker/json-schema/dist/esm/ucs2-length.js.map +1 -0
  537. package/dist/node_modules/@cfworker/json-schema/dist/esm/validate.js.map +1 -0
  538. package/dist/node_modules/@cfworker/json-schema/dist/esm/validator.js.map +1 -0
  539. package/dist/node_modules/date-fns/_lib/addLeadingZeros.js.map +1 -0
  540. package/dist/node_modules/date-fns/_lib/defaultOptions.js.map +1 -0
  541. package/dist/node_modules/date-fns/_lib/format/formatters.js.map +1 -0
  542. package/dist/node_modules/date-fns/_lib/format/lightFormatters.js.map +1 -0
  543. package/dist/node_modules/date-fns/_lib/format/longFormatters.js.map +1 -0
  544. package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +1 -0
  545. package/dist/node_modules/date-fns/_lib/normalizeDates.js.map +1 -0
  546. package/dist/node_modules/date-fns/_lib/protectedTokens.js.map +1 -0
  547. package/dist/node_modules/date-fns/constants.js.map +1 -0
  548. package/dist/node_modules/date-fns/constructFrom.js.map +1 -0
  549. package/dist/node_modules/date-fns/differenceInCalendarDays.js.map +1 -0
  550. package/dist/node_modules/date-fns/format.js.map +1 -0
  551. package/dist/node_modules/date-fns/getDayOfYear.js.map +1 -0
  552. package/dist/node_modules/date-fns/getISOWeek.js.map +1 -0
  553. package/dist/node_modules/date-fns/getISOWeekYear.js.map +1 -0
  554. package/dist/node_modules/date-fns/getWeek.js.map +1 -0
  555. package/dist/node_modules/date-fns/getWeekYear.js.map +1 -0
  556. package/dist/node_modules/date-fns/isDate.js.map +1 -0
  557. package/dist/node_modules/date-fns/isValid.js.map +1 -0
  558. package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +1 -0
  559. package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +1 -0
  560. package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +1 -0
  561. package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +1 -0
  562. package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +1 -0
  563. package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +1 -0
  564. package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +1 -0
  565. package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js.map +1 -0
  566. package/dist/node_modules/date-fns/locale/en-US/_lib/match.js.map +1 -0
  567. package/dist/node_modules/date-fns/locale/en-US.js.map +1 -0
  568. package/dist/node_modules/date-fns/parseISO.js.map +1 -0
  569. package/dist/node_modules/date-fns/startOfDay.js.map +1 -0
  570. package/dist/node_modules/date-fns/startOfISOWeek.js.map +1 -0
  571. package/dist/node_modules/date-fns/startOfISOWeekYear.js.map +1 -0
  572. package/dist/node_modules/date-fns/startOfWeek.js.map +1 -0
  573. package/dist/node_modules/date-fns/startOfWeekYear.js.map +1 -0
  574. package/dist/node_modules/date-fns/startOfYear.js.map +1 -0
  575. package/dist/node_modules/date-fns/toDate.js.map +1 -0
  576. package/dist/node_modules/lodash-es/_DataView.js.map +1 -0
  577. package/dist/node_modules/lodash-es/_Hash.js.map +1 -0
  578. package/dist/node_modules/lodash-es/_ListCache.js.map +1 -0
  579. package/dist/node_modules/lodash-es/_Map.js.map +1 -0
  580. package/dist/node_modules/lodash-es/_MapCache.js.map +1 -0
  581. package/dist/node_modules/lodash-es/_Promise.js.map +1 -0
  582. package/dist/node_modules/lodash-es/_Set.js.map +1 -0
  583. package/dist/node_modules/lodash-es/_SetCache.js.map +1 -0
  584. package/dist/node_modules/lodash-es/_Stack.js.map +1 -0
  585. package/dist/node_modules/lodash-es/_Symbol.js.map +1 -0
  586. package/dist/node_modules/lodash-es/_Uint8Array.js.map +1 -0
  587. package/dist/node_modules/lodash-es/_WeakMap.js.map +1 -0
  588. package/dist/node_modules/lodash-es/_arrayEach.js.map +1 -0
  589. package/dist/node_modules/lodash-es/_arrayFilter.js.map +1 -0
  590. package/dist/node_modules/lodash-es/_arrayLikeKeys.js.map +1 -0
  591. package/dist/node_modules/lodash-es/_arrayPush.js.map +1 -0
  592. package/dist/node_modules/lodash-es/_arraySome.js.map +1 -0
  593. package/dist/node_modules/lodash-es/_assignValue.js.map +1 -0
  594. package/dist/node_modules/lodash-es/_assocIndexOf.js.map +1 -0
  595. package/dist/node_modules/lodash-es/_baseAssignValue.js.map +1 -0
  596. package/dist/node_modules/lodash-es/_baseClone.js.map +1 -0
  597. package/dist/node_modules/lodash-es/_baseCreate.js.map +1 -0
  598. package/dist/node_modules/lodash-es/_baseGetAllKeys.js.map +1 -0
  599. package/dist/node_modules/lodash-es/_baseGetTag.js.map +1 -0
  600. package/dist/node_modules/lodash-es/_baseIsArguments.js.map +1 -0
  601. package/dist/node_modules/lodash-es/_baseIsEqual.js.map +1 -0
  602. package/dist/node_modules/lodash-es/_baseIsEqualDeep.js.map +1 -0
  603. package/dist/node_modules/lodash-es/_baseIsMap.js.map +1 -0
  604. package/dist/node_modules/lodash-es/_baseIsNative.js.map +1 -0
  605. package/dist/node_modules/lodash-es/_baseIsSet.js.map +1 -0
  606. package/dist/node_modules/lodash-es/_baseIsTypedArray.js.map +1 -0
  607. package/dist/node_modules/lodash-es/_baseKeys.js.map +1 -0
  608. package/dist/node_modules/lodash-es/_baseTimes.js.map +1 -0
  609. package/dist/node_modules/lodash-es/_baseUnary.js.map +1 -0
  610. package/dist/node_modules/lodash-es/_cacheHas.js.map +1 -0
  611. package/dist/node_modules/lodash-es/_cloneArrayBuffer.js.map +1 -0
  612. package/dist/node_modules/lodash-es/_cloneBuffer.js.map +1 -0
  613. package/dist/node_modules/lodash-es/_cloneDataView.js.map +1 -0
  614. package/dist/node_modules/lodash-es/_cloneRegExp.js.map +1 -0
  615. package/dist/node_modules/lodash-es/_cloneSymbol.js.map +1 -0
  616. package/dist/node_modules/lodash-es/_cloneTypedArray.js.map +1 -0
  617. package/dist/node_modules/lodash-es/_coreJsData.js.map +1 -0
  618. package/dist/node_modules/lodash-es/_defineProperty.js.map +1 -0
  619. package/dist/node_modules/lodash-es/_equalArrays.js.map +1 -0
  620. package/dist/node_modules/lodash-es/_equalByTag.js.map +1 -0
  621. package/dist/node_modules/lodash-es/_equalObjects.js.map +1 -0
  622. package/dist/node_modules/lodash-es/_freeGlobal.js.map +1 -0
  623. package/dist/node_modules/lodash-es/_getAllKeys.js.map +1 -0
  624. package/dist/node_modules/lodash-es/_getMapData.js.map +1 -0
  625. package/dist/node_modules/lodash-es/_getNative.js.map +1 -0
  626. package/dist/node_modules/lodash-es/_getPrototype.js.map +1 -0
  627. package/dist/node_modules/lodash-es/_getRawTag.js.map +1 -0
  628. package/dist/node_modules/lodash-es/_getSymbols.js.map +1 -0
  629. package/dist/node_modules/lodash-es/_getTag.js.map +1 -0
  630. package/dist/node_modules/lodash-es/_getValue.js.map +1 -0
  631. package/dist/node_modules/lodash-es/_hashClear.js.map +1 -0
  632. package/dist/node_modules/lodash-es/_hashDelete.js.map +1 -0
  633. package/dist/node_modules/lodash-es/_hashGet.js.map +1 -0
  634. package/dist/node_modules/lodash-es/_hashHas.js.map +1 -0
  635. package/dist/node_modules/lodash-es/_hashSet.js.map +1 -0
  636. package/dist/node_modules/lodash-es/_initCloneArray.js.map +1 -0
  637. package/dist/node_modules/lodash-es/_initCloneByTag.js.map +1 -0
  638. package/dist/node_modules/lodash-es/_initCloneObject.js.map +1 -0
  639. package/dist/node_modules/lodash-es/_isIndex.js.map +1 -0
  640. package/dist/node_modules/lodash-es/_isKeyable.js.map +1 -0
  641. package/dist/node_modules/lodash-es/_isMasked.js.map +1 -0
  642. package/dist/node_modules/lodash-es/_isPrototype.js.map +1 -0
  643. package/dist/node_modules/lodash-es/_listCacheClear.js.map +1 -0
  644. package/dist/node_modules/lodash-es/_listCacheDelete.js.map +1 -0
  645. package/dist/node_modules/lodash-es/_listCacheGet.js.map +1 -0
  646. package/dist/node_modules/lodash-es/_listCacheHas.js.map +1 -0
  647. package/dist/node_modules/lodash-es/_listCacheSet.js.map +1 -0
  648. package/dist/node_modules/lodash-es/_mapCacheClear.js.map +1 -0
  649. package/dist/node_modules/lodash-es/_mapCacheDelete.js.map +1 -0
  650. package/dist/node_modules/lodash-es/_mapCacheGet.js.map +1 -0
  651. package/dist/node_modules/lodash-es/_mapCacheHas.js.map +1 -0
  652. package/dist/node_modules/lodash-es/_mapCacheSet.js.map +1 -0
  653. package/dist/node_modules/lodash-es/_mapToArray.js.map +1 -0
  654. package/dist/node_modules/lodash-es/_nativeCreate.js.map +1 -0
  655. package/dist/node_modules/lodash-es/_nativeKeys.js.map +1 -0
  656. package/dist/node_modules/lodash-es/_nodeUtil.js.map +1 -0
  657. package/dist/node_modules/lodash-es/_objectToString.js.map +1 -0
  658. package/dist/node_modules/lodash-es/_overArg.js.map +1 -0
  659. package/dist/node_modules/lodash-es/_root.js.map +1 -0
  660. package/dist/node_modules/lodash-es/_setCacheAdd.js.map +1 -0
  661. package/dist/node_modules/lodash-es/_setCacheHas.js.map +1 -0
  662. package/dist/node_modules/lodash-es/_setToArray.js.map +1 -0
  663. package/dist/node_modules/lodash-es/_stackClear.js.map +1 -0
  664. package/dist/node_modules/lodash-es/_stackDelete.js.map +1 -0
  665. package/dist/node_modules/lodash-es/_stackGet.js.map +1 -0
  666. package/dist/node_modules/lodash-es/_stackHas.js.map +1 -0
  667. package/dist/node_modules/lodash-es/_stackSet.js.map +1 -0
  668. package/dist/node_modules/lodash-es/_toSource.js.map +1 -0
  669. package/dist/node_modules/lodash-es/cloneDeepWith.js.map +1 -0
  670. package/dist/node_modules/lodash-es/eq.js.map +1 -0
  671. package/dist/node_modules/lodash-es/isArguments.js.map +1 -0
  672. package/dist/node_modules/lodash-es/isArray.js.map +1 -0
  673. package/dist/node_modules/lodash-es/isArrayLike.js.map +1 -0
  674. package/dist/node_modules/lodash-es/isBuffer.js.map +1 -0
  675. package/dist/node_modules/lodash-es/isEmpty.js.map +1 -0
  676. package/dist/node_modules/lodash-es/isEqual.js.map +1 -0
  677. package/dist/node_modules/lodash-es/isFunction.js.map +1 -0
  678. package/dist/node_modules/lodash-es/isLength.js.map +1 -0
  679. package/dist/node_modules/lodash-es/isMap.js.map +1 -0
  680. package/dist/node_modules/lodash-es/isObject.js.map +1 -0
  681. package/dist/node_modules/lodash-es/isObjectLike.js.map +1 -0
  682. package/dist/node_modules/lodash-es/isPlainObject.js.map +1 -0
  683. package/dist/node_modules/lodash-es/isSet.js.map +1 -0
  684. package/dist/node_modules/lodash-es/isTypedArray.js.map +1 -0
  685. package/dist/node_modules/lodash-es/keys.js.map +1 -0
  686. package/dist/node_modules/lodash-es/stubArray.js.map +1 -0
  687. package/dist/node_modules/lodash-es/stubFalse.js.map +1 -0
  688. package/dist/node_modules/quickselect/index.js.map +1 -0
  689. package/dist/node_modules/rbush/index.js.map +1 -0
  690. package/dist/node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js.map +1 -0
  691. package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js.map +1 -0
  692. package/dist/node_modules/rxjs/dist/esm5/internal/ReplaySubject.js.map +1 -0
  693. package/dist/node_modules/rxjs/dist/esm5/internal/Scheduler.js.map +1 -0
  694. package/dist/node_modules/rxjs/dist/esm5/internal/Subject.js.map +1 -0
  695. package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +1 -0
  696. package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +1 -0
  697. package/dist/node_modules/rxjs/dist/esm5/internal/config.js.map +1 -0
  698. package/dist/node_modules/rxjs/dist/esm5/internal/observable/combineLatest.js.map +1 -0
  699. package/dist/node_modules/rxjs/dist/esm5/internal/observable/concat.js.map +1 -0
  700. package/dist/node_modules/rxjs/dist/esm5/internal/observable/defer.js.map +1 -0
  701. package/dist/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +1 -0
  702. package/dist/node_modules/rxjs/dist/esm5/internal/observable/from.js.map +1 -0
  703. package/dist/node_modules/rxjs/dist/esm5/internal/observable/fromEvent.js.map +1 -0
  704. package/dist/node_modules/rxjs/dist/esm5/internal/observable/innerFrom.js.map +1 -0
  705. package/dist/node_modules/rxjs/dist/esm5/internal/observable/merge.js.map +1 -0
  706. package/dist/node_modules/rxjs/dist/esm5/internal/observable/of.js.map +1 -0
  707. package/dist/node_modules/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js.map +1 -0
  708. package/dist/node_modules/rxjs/dist/esm5/internal/operators/catchError.js.map +1 -0
  709. package/dist/node_modules/rxjs/dist/esm5/internal/operators/concatAll.js.map +1 -0
  710. package/dist/node_modules/rxjs/dist/esm5/internal/operators/concatMap.js.map +1 -0
  711. package/dist/node_modules/rxjs/dist/esm5/internal/operators/distinctUntilChanged.js.map +1 -0
  712. package/dist/node_modules/rxjs/dist/esm5/internal/operators/exhaustMap.js.map +1 -0
  713. package/dist/node_modules/rxjs/dist/esm5/internal/operators/filter.js.map +1 -0
  714. package/dist/node_modules/rxjs/dist/esm5/internal/operators/finalize.js.map +1 -0
  715. package/dist/node_modules/rxjs/dist/esm5/internal/operators/map.js.map +1 -0
  716. package/dist/node_modules/rxjs/dist/esm5/internal/operators/mergeAll.js.map +1 -0
  717. package/dist/node_modules/rxjs/dist/esm5/internal/operators/mergeInternals.js.map +1 -0
  718. package/dist/node_modules/rxjs/dist/esm5/internal/operators/mergeMap.js.map +1 -0
  719. package/dist/node_modules/rxjs/dist/esm5/internal/operators/observeOn.js.map +1 -0
  720. package/dist/node_modules/rxjs/dist/esm5/internal/operators/sample.js.map +1 -0
  721. package/dist/node_modules/rxjs/dist/esm5/internal/operators/skip.js.map +1 -0
  722. package/dist/node_modules/rxjs/dist/esm5/internal/operators/skipWhile.js.map +1 -0
  723. package/dist/node_modules/rxjs/dist/esm5/internal/operators/startWith.js.map +1 -0
  724. package/dist/node_modules/rxjs/dist/esm5/internal/operators/subscribeOn.js.map +1 -0
  725. package/dist/node_modules/rxjs/dist/esm5/internal/operators/switchMap.js.map +1 -0
  726. package/dist/node_modules/rxjs/dist/esm5/internal/operators/take.js.map +1 -0
  727. package/dist/node_modules/rxjs/dist/esm5/internal/operators/takeUntil.js.map +1 -0
  728. package/dist/node_modules/rxjs/dist/esm5/internal/operators/takeWhile.js.map +1 -0
  729. package/dist/node_modules/rxjs/dist/esm5/internal/operators/tap.js.map +1 -0
  730. package/dist/node_modules/rxjs/dist/esm5/internal/operators/timeout.js.map +1 -0
  731. package/dist/node_modules/rxjs/dist/esm5/internal/operators/withLatestFrom.js.map +1 -0
  732. package/dist/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleArray.js.map +1 -0
  733. package/dist/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleAsyncIterable.js.map +1 -0
  734. package/dist/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleIterable.js.map +1 -0
  735. package/dist/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleObservable.js.map +1 -0
  736. package/dist/node_modules/rxjs/dist/esm5/internal/scheduled/schedulePromise.js.map +1 -0
  737. package/dist/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleReadableStreamLike.js.map +1 -0
  738. package/dist/node_modules/rxjs/dist/esm5/internal/scheduled/scheduled.js.map +1 -0
  739. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/Action.js.map +1 -0
  740. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/AsyncAction.js.map +1 -0
  741. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/AsyncScheduler.js.map +1 -0
  742. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/async.js.map +1 -0
  743. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/dateTimestampProvider.js.map +1 -0
  744. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/intervalProvider.js.map +1 -0
  745. package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +1 -0
  746. package/dist/node_modules/rxjs/dist/esm5/internal/symbol/iterator.js.map +1 -0
  747. package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +1 -0
  748. package/dist/node_modules/rxjs/dist/esm5/internal/util/ObjectUnsubscribedError.js.map +1 -0
  749. package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +1 -0
  750. package/dist/node_modules/rxjs/dist/esm5/internal/util/args.js.map +1 -0
  751. package/dist/node_modules/rxjs/dist/esm5/internal/util/argsArgArrayOrObject.js.map +1 -0
  752. package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +1 -0
  753. package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +1 -0
  754. package/dist/node_modules/rxjs/dist/esm5/internal/util/createObject.js.map +1 -0
  755. package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +1 -0
  756. package/dist/node_modules/rxjs/dist/esm5/internal/util/executeSchedule.js.map +1 -0
  757. package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +1 -0
  758. package/dist/node_modules/rxjs/dist/esm5/internal/util/isArrayLike.js.map +1 -0
  759. package/dist/node_modules/rxjs/dist/esm5/internal/util/isAsyncIterable.js.map +1 -0
  760. package/dist/node_modules/rxjs/dist/esm5/internal/util/isDate.js.map +1 -0
  761. package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +1 -0
  762. package/dist/node_modules/rxjs/dist/esm5/internal/util/isInteropObservable.js.map +1 -0
  763. package/dist/node_modules/rxjs/dist/esm5/internal/util/isIterable.js.map +1 -0
  764. package/dist/node_modules/rxjs/dist/esm5/internal/util/isPromise.js.map +1 -0
  765. package/dist/node_modules/rxjs/dist/esm5/internal/util/isReadableStreamLike.js.map +1 -0
  766. package/dist/node_modules/rxjs/dist/esm5/internal/util/isScheduler.js.map +1 -0
  767. package/dist/node_modules/rxjs/dist/esm5/internal/util/lift.js.map +1 -0
  768. package/dist/node_modules/rxjs/dist/esm5/internal/util/mapOneOrManyArgs.js.map +1 -0
  769. package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +1 -0
  770. package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +1 -0
  771. package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +1 -0
  772. package/dist/node_modules/rxjs/dist/esm5/internal/util/throwUnobservableError.js.map +1 -0
  773. package/dist/node_modules/three-mesh-bvh/src/core/Constants.js.map +1 -0
  774. package/dist/node_modules/three-mesh-bvh/src/core/MeshBVH.js +2 -0
  775. package/dist/node_modules/three-mesh-bvh/src/core/MeshBVH.js.map +1 -0
  776. package/dist/node_modules/three-mesh-bvh/src/core/MeshBVHNode.js.map +1 -0
  777. package/dist/node_modules/three-mesh-bvh/src/core/build/buildTree.js.map +1 -0
  778. package/dist/node_modules/three-mesh-bvh/src/core/build/buildUtils.js.map +1 -0
  779. package/dist/node_modules/three-mesh-bvh/src/core/build/computeBoundsUtils.js.map +1 -0
  780. package/dist/node_modules/three-mesh-bvh/src/core/build/geometryUtils.js +2 -0
  781. package/dist/node_modules/three-mesh-bvh/src/core/build/geometryUtils.js.map +1 -0
  782. package/dist/node_modules/three-mesh-bvh/src/core/build/sortUtils.generated.js.map +1 -0
  783. package/dist/node_modules/three-mesh-bvh/src/core/build/sortUtils_indirect.generated.js.map +1 -0
  784. package/dist/node_modules/three-mesh-bvh/src/core/build/splitUtils.js.map +1 -0
  785. package/dist/node_modules/three-mesh-bvh/src/core/cast/bvhcast.js +2 -0
  786. package/dist/node_modules/three-mesh-bvh/src/core/cast/bvhcast.js.map +1 -0
  787. package/dist/node_modules/three-mesh-bvh/src/core/cast/closestPointToGeometry.generated.js +2 -0
  788. package/dist/node_modules/three-mesh-bvh/src/core/cast/closestPointToGeometry.generated.js.map +1 -0
  789. package/dist/node_modules/three-mesh-bvh/src/core/cast/closestPointToGeometry_indirect.generated.js +2 -0
  790. package/dist/node_modules/three-mesh-bvh/src/core/cast/closestPointToGeometry_indirect.generated.js.map +1 -0
  791. package/dist/node_modules/three-mesh-bvh/src/core/cast/closestPointToPoint.js +2 -0
  792. package/dist/node_modules/three-mesh-bvh/src/core/cast/closestPointToPoint.js.map +1 -0
  793. package/dist/node_modules/three-mesh-bvh/src/core/cast/intersectsGeometry.generated.js +2 -0
  794. package/dist/node_modules/three-mesh-bvh/src/core/cast/intersectsGeometry.generated.js.map +1 -0
  795. package/dist/node_modules/three-mesh-bvh/src/core/cast/intersectsGeometry_indirect.generated.js +2 -0
  796. package/dist/node_modules/three-mesh-bvh/src/core/cast/intersectsGeometry_indirect.generated.js.map +1 -0
  797. package/dist/node_modules/three-mesh-bvh/src/core/cast/raycast.generated.js.map +1 -0
  798. package/dist/node_modules/three-mesh-bvh/src/core/cast/raycastFirst.generated.js.map +1 -0
  799. package/dist/node_modules/three-mesh-bvh/src/core/cast/raycastFirst_indirect.generated.js.map +1 -0
  800. package/dist/node_modules/three-mesh-bvh/src/core/cast/raycast_indirect.generated.js.map +1 -0
  801. package/dist/node_modules/three-mesh-bvh/src/core/cast/refit.generated.js.map +1 -0
  802. package/dist/node_modules/three-mesh-bvh/src/core/cast/refit_indirect.generated.js.map +1 -0
  803. package/dist/node_modules/three-mesh-bvh/src/core/cast/shapecast.js +2 -0
  804. package/dist/node_modules/three-mesh-bvh/src/core/cast/shapecast.js.map +1 -0
  805. package/dist/node_modules/three-mesh-bvh/src/core/utils/BufferStack.js.map +1 -0
  806. package/dist/node_modules/three-mesh-bvh/src/core/utils/intersectUtils.js.map +1 -0
  807. package/dist/node_modules/three-mesh-bvh/src/core/utils/iterationUtils.generated.js.map +1 -0
  808. package/dist/node_modules/three-mesh-bvh/src/core/utils/iterationUtils_indirect.generated.js.map +1 -0
  809. package/dist/node_modules/three-mesh-bvh/src/core/utils/nodeBufferUtils.js.map +1 -0
  810. package/dist/node_modules/three-mesh-bvh/src/math/ExtendedTriangle.js +2 -0
  811. package/dist/node_modules/three-mesh-bvh/src/math/ExtendedTriangle.js.map +1 -0
  812. package/dist/node_modules/three-mesh-bvh/src/math/MathUtilities.js +2 -0
  813. package/dist/node_modules/three-mesh-bvh/src/math/MathUtilities.js.map +1 -0
  814. package/dist/node_modules/three-mesh-bvh/src/math/OrientedBox.js +2 -0
  815. package/dist/node_modules/three-mesh-bvh/src/math/OrientedBox.js.map +1 -0
  816. package/dist/node_modules/three-mesh-bvh/src/math/SeparatingAxisBounds.js +2 -0
  817. package/dist/node_modules/three-mesh-bvh/src/math/SeparatingAxisBounds.js.map +1 -0
  818. package/dist/node_modules/three-mesh-bvh/src/objects/MeshBVHHelper.js +2 -0
  819. package/dist/node_modules/three-mesh-bvh/src/objects/MeshBVHHelper.js.map +1 -0
  820. package/dist/node_modules/three-mesh-bvh/src/utils/ArrayBoxUtilities.js.map +1 -0
  821. package/dist/node_modules/three-mesh-bvh/src/utils/BufferUtils.js.map +1 -0
  822. package/dist/node_modules/three-mesh-bvh/src/utils/ExtendedTrianglePool.js.map +1 -0
  823. package/dist/node_modules/three-mesh-bvh/src/utils/ExtensionUtilities.js +2 -0
  824. package/dist/node_modules/three-mesh-bvh/src/utils/ExtensionUtilities.js.map +1 -0
  825. package/dist/node_modules/three-mesh-bvh/src/utils/GeometryRayIntersectUtilities.js.map +1 -0
  826. package/dist/node_modules/three-mesh-bvh/src/utils/PrimitivePool.js.map +1 -0
  827. package/dist/node_modules/three-mesh-bvh/src/utils/ThreeRayIntersectUtilities.js +2 -0
  828. package/dist/node_modules/three-mesh-bvh/src/utils/ThreeRayIntersectUtilities.js.map +1 -0
  829. package/dist/node_modules/three-mesh-bvh/src/utils/TriangleUtilities.js +2 -0
  830. package/dist/node_modules/three-mesh-bvh/src/utils/TriangleUtilities.js.map +1 -0
  831. package/dist/node_modules/tslib/tslib.es6.js.map +1 -0
  832. package/dist/node_modules/typescript-fsm/dist/stateMachine.js +2 -0
  833. package/dist/node_modules/typescript-fsm/dist/stateMachine.js.map +1 -0
  834. package/dist/packages/anarchy-engine/node_modules/nanoid/index.browser.js.map +1 -0
  835. package/dist/packages/anarchy-engine/node_modules/nanoid/url-alphabet/index.js.map +1 -0
  836. package/dist/packages/anarchy-shared/src/Constants/CssUnits.js.map +1 -0
  837. package/dist/packages/anarchy-shared/src/Constants/FallBackFonts.js.map +1 -0
  838. package/dist/packages/anarchy-shared/src/Utils/ArrayUtils.js.map +1 -0
  839. package/dist/packages/anarchy-shared/src/Utils/AsyncUtils.js.map +1 -0
  840. package/dist/packages/anarchy-shared/src/Utils/CheckUtils.js.map +1 -0
  841. package/dist/packages/anarchy-shared/src/Utils/CssUtils.js.map +1 -0
  842. package/dist/packages/anarchy-shared/src/Utils/MapUtils.js.map +1 -0
  843. package/dist/packages/anarchy-shared/src/Utils/ObjectUtils.js.map +1 -0
  844. package/dist/packages/anarchy-shared/src/Utils/StringUtils.js.map +1 -0
  845. package/dist/packages/anarchy-shared/src/Utils/TypesUtils.js.map +1 -0
  846. package/dist/packages/anarchy-shared/src/Utils/WebGlUtils.js.map +1 -0
  847. package/legal/NOTICE.md +2 -14
  848. package/legal/THIRD_PARTY_LICENSES.md +2 -214
  849. package/package.json +15 -3
  850. package/dist/Audio/Adapters/ConfigToParams.d.ts +0 -2
  851. package/dist/Audio/Adapters/ConfigToParams.js +0 -2
  852. package/dist/Audio/Adapters/ConfigToParams.js.map +0 -1
  853. package/dist/__vite-plugin-wasm-helper.js +0 -2
  854. package/dist/__vite-plugin-wasm-helper.js.map +0 -1
  855. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@cfworker/json-schema/dist/esm/deep-compare-strict.js.map +0 -1
  856. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@cfworker/json-schema/dist/esm/dereference.js.map +0 -1
  857. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@cfworker/json-schema/dist/esm/format.js.map +0 -1
  858. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@cfworker/json-schema/dist/esm/pointer.js.map +0 -1
  859. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@cfworker/json-schema/dist/esm/ucs2-length.js.map +0 -1
  860. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@cfworker/json-schema/dist/esm/validate.js.map +0 -1
  861. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@cfworker/json-schema/dist/esm/validator.js.map +0 -1
  862. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/coarena.js +0 -2
  863. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/coarena.js.map +0 -1
  864. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/control/character_controller.js +0 -2
  865. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/control/character_controller.js.map +0 -1
  866. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/control/pid_controller.js +0 -2
  867. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/control/pid_controller.js.map +0 -1
  868. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/control/ray_cast_vehicle_controller.js +0 -2
  869. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/control/ray_cast_vehicle_controller.js.map +0 -1
  870. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/dynamics/ccd_solver.js +0 -2
  871. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/dynamics/ccd_solver.js.map +0 -1
  872. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/dynamics/coefficient_combine_rule.js +0 -2
  873. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/dynamics/coefficient_combine_rule.js.map +0 -1
  874. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/dynamics/impulse_joint.js +0 -2
  875. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/dynamics/impulse_joint.js.map +0 -1
  876. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/dynamics/impulse_joint_set.js +0 -2
  877. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/dynamics/impulse_joint_set.js.map +0 -1
  878. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/dynamics/integration_parameters.js +0 -2
  879. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/dynamics/integration_parameters.js.map +0 -1
  880. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/dynamics/island_manager.js +0 -2
  881. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/dynamics/island_manager.js.map +0 -1
  882. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/dynamics/multibody_joint.js +0 -2
  883. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/dynamics/multibody_joint.js.map +0 -1
  884. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/dynamics/multibody_joint_set.js +0 -2
  885. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/dynamics/multibody_joint_set.js.map +0 -1
  886. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/dynamics/rigid_body.js +0 -2
  887. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/dynamics/rigid_body.js.map +0 -1
  888. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/dynamics/rigid_body_set.js +0 -2
  889. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/dynamics/rigid_body_set.js.map +0 -1
  890. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/geometry/broad_phase.js +0 -2
  891. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/geometry/broad_phase.js.map +0 -1
  892. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/geometry/collider.js +0 -2
  893. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/geometry/collider.js.map +0 -1
  894. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/geometry/collider_set.js +0 -2
  895. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/geometry/collider_set.js.map +0 -1
  896. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/geometry/contact.js +0 -2
  897. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/geometry/contact.js.map +0 -1
  898. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/geometry/feature.js +0 -2
  899. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/geometry/feature.js.map +0 -1
  900. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/geometry/narrow_phase.js +0 -2
  901. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/geometry/narrow_phase.js.map +0 -1
  902. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/geometry/point.js +0 -2
  903. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/geometry/point.js.map +0 -1
  904. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/geometry/ray.js +0 -2
  905. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/geometry/ray.js.map +0 -1
  906. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/geometry/shape.js +0 -2
  907. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/geometry/shape.js.map +0 -1
  908. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/geometry/toi.js +0 -2
  909. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/geometry/toi.js.map +0 -1
  910. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/math.js +0 -2
  911. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/math.js.map +0 -1
  912. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/pipeline/debug_render_pipeline.js +0 -2
  913. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/pipeline/debug_render_pipeline.js.map +0 -1
  914. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/pipeline/event_queue.js +0 -2
  915. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/pipeline/event_queue.js.map +0 -1
  916. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/pipeline/physics_hooks.js +0 -2
  917. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/pipeline/physics_hooks.js.map +0 -1
  918. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/pipeline/physics_pipeline.js +0 -2
  919. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/pipeline/physics_pipeline.js.map +0 -1
  920. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/pipeline/serialization_pipeline.js +0 -2
  921. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/pipeline/serialization_pipeline.js.map +0 -1
  922. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/pipeline/world.js +0 -2
  923. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/pipeline/world.js.map +0 -1
  924. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/rapier_wasm3d.js +0 -2
  925. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/rapier_wasm3d.js.map +0 -1
  926. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/rapier_wasm3d_bg.js +0 -2
  927. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/rapier_wasm3d_bg.js.map +0 -1
  928. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/rapier_wasm3d_bg.wasm.js +0 -2
  929. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/rapier_wasm3d_bg.wasm.js.map +0 -1
  930. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/rapier_wasm3d_bg.wasm2.js +0 -2
  931. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/@dimforge/rapier3d/rapier_wasm3d_bg.wasm2.js.map +0 -1
  932. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/_lib/addLeadingZeros.js.map +0 -1
  933. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/_lib/defaultOptions.js.map +0 -1
  934. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/_lib/format/formatters.js.map +0 -1
  935. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/_lib/format/lightFormatters.js.map +0 -1
  936. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/_lib/format/longFormatters.js.map +0 -1
  937. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +0 -1
  938. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/_lib/normalizeDates.js.map +0 -1
  939. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/_lib/protectedTokens.js.map +0 -1
  940. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/constants.js.map +0 -1
  941. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/constructFrom.js.map +0 -1
  942. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/differenceInCalendarDays.js.map +0 -1
  943. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/format.js.map +0 -1
  944. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/getDayOfYear.js.map +0 -1
  945. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/getISOWeek.js.map +0 -1
  946. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/getISOWeekYear.js.map +0 -1
  947. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/getWeek.js.map +0 -1
  948. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/getWeekYear.js.map +0 -1
  949. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/isDate.js.map +0 -1
  950. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/isValid.js.map +0 -1
  951. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +0 -1
  952. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +0 -1
  953. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +0 -1
  954. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +0 -1
  955. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +0 -1
  956. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +0 -1
  957. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +0 -1
  958. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/locale/en-US/_lib/localize.js.map +0 -1
  959. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/locale/en-US/_lib/match.js.map +0 -1
  960. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/locale/en-US.js.map +0 -1
  961. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/parseISO.js.map +0 -1
  962. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/startOfDay.js.map +0 -1
  963. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/startOfISOWeek.js.map +0 -1
  964. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/startOfISOWeekYear.js.map +0 -1
  965. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/startOfWeek.js.map +0 -1
  966. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/startOfWeekYear.js.map +0 -1
  967. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/startOfYear.js.map +0 -1
  968. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/date-fns/toDate.js.map +0 -1
  969. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_DataView.js.map +0 -1
  970. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_Hash.js.map +0 -1
  971. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_ListCache.js.map +0 -1
  972. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_Map.js.map +0 -1
  973. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_MapCache.js.map +0 -1
  974. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_Promise.js.map +0 -1
  975. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_Set.js.map +0 -1
  976. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_SetCache.js.map +0 -1
  977. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_Stack.js.map +0 -1
  978. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_Symbol.js.map +0 -1
  979. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_Uint8Array.js.map +0 -1
  980. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_WeakMap.js.map +0 -1
  981. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_arrayEach.js.map +0 -1
  982. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_arrayFilter.js.map +0 -1
  983. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_arrayLikeKeys.js.map +0 -1
  984. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_arrayPush.js.map +0 -1
  985. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_arraySome.js.map +0 -1
  986. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_assignValue.js.map +0 -1
  987. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_assocIndexOf.js.map +0 -1
  988. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_baseAssignValue.js.map +0 -1
  989. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_baseClone.js.map +0 -1
  990. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_baseCreate.js.map +0 -1
  991. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_baseGetAllKeys.js.map +0 -1
  992. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_baseGetTag.js.map +0 -1
  993. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_baseIsArguments.js.map +0 -1
  994. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_baseIsEqual.js.map +0 -1
  995. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_baseIsEqualDeep.js.map +0 -1
  996. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_baseIsMap.js.map +0 -1
  997. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_baseIsNative.js.map +0 -1
  998. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_baseIsSet.js.map +0 -1
  999. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_baseIsTypedArray.js.map +0 -1
  1000. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_baseKeys.js.map +0 -1
  1001. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_baseTimes.js.map +0 -1
  1002. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_baseUnary.js.map +0 -1
  1003. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_cacheHas.js.map +0 -1
  1004. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_cloneArrayBuffer.js.map +0 -1
  1005. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_cloneBuffer.js.map +0 -1
  1006. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_cloneDataView.js.map +0 -1
  1007. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_cloneRegExp.js.map +0 -1
  1008. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_cloneSymbol.js.map +0 -1
  1009. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_cloneTypedArray.js.map +0 -1
  1010. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_coreJsData.js.map +0 -1
  1011. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_defineProperty.js.map +0 -1
  1012. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_equalArrays.js.map +0 -1
  1013. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_equalByTag.js.map +0 -1
  1014. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_equalObjects.js.map +0 -1
  1015. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_freeGlobal.js.map +0 -1
  1016. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_getAllKeys.js.map +0 -1
  1017. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_getMapData.js.map +0 -1
  1018. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_getNative.js.map +0 -1
  1019. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_getPrototype.js.map +0 -1
  1020. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_getRawTag.js.map +0 -1
  1021. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_getSymbols.js.map +0 -1
  1022. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_getTag.js.map +0 -1
  1023. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_getValue.js.map +0 -1
  1024. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_hashClear.js.map +0 -1
  1025. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_hashDelete.js.map +0 -1
  1026. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_hashGet.js.map +0 -1
  1027. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_hashHas.js.map +0 -1
  1028. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_hashSet.js.map +0 -1
  1029. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_initCloneArray.js.map +0 -1
  1030. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_initCloneByTag.js.map +0 -1
  1031. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_initCloneObject.js.map +0 -1
  1032. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_isIndex.js.map +0 -1
  1033. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_isKeyable.js.map +0 -1
  1034. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_isMasked.js.map +0 -1
  1035. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_isPrototype.js.map +0 -1
  1036. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_listCacheClear.js.map +0 -1
  1037. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_listCacheDelete.js.map +0 -1
  1038. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_listCacheGet.js.map +0 -1
  1039. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_listCacheHas.js.map +0 -1
  1040. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_listCacheSet.js.map +0 -1
  1041. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_mapCacheClear.js.map +0 -1
  1042. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_mapCacheDelete.js.map +0 -1
  1043. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_mapCacheGet.js.map +0 -1
  1044. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_mapCacheHas.js.map +0 -1
  1045. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_mapCacheSet.js.map +0 -1
  1046. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_mapToArray.js.map +0 -1
  1047. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_nativeCreate.js.map +0 -1
  1048. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_nativeKeys.js.map +0 -1
  1049. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_nodeUtil.js.map +0 -1
  1050. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_objectToString.js.map +0 -1
  1051. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_overArg.js.map +0 -1
  1052. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_root.js.map +0 -1
  1053. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_setCacheAdd.js.map +0 -1
  1054. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_setCacheHas.js.map +0 -1
  1055. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_setToArray.js.map +0 -1
  1056. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_stackClear.js.map +0 -1
  1057. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_stackDelete.js.map +0 -1
  1058. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_stackGet.js.map +0 -1
  1059. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_stackHas.js.map +0 -1
  1060. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_stackSet.js.map +0 -1
  1061. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/_toSource.js.map +0 -1
  1062. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/cloneDeepWith.js.map +0 -1
  1063. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/eq.js.map +0 -1
  1064. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/isArguments.js.map +0 -1
  1065. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/isArray.js.map +0 -1
  1066. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/isArrayLike.js.map +0 -1
  1067. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/isBuffer.js.map +0 -1
  1068. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/isEmpty.js.map +0 -1
  1069. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/isEqual.js.map +0 -1
  1070. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/isFunction.js.map +0 -1
  1071. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/isLength.js.map +0 -1
  1072. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/isMap.js.map +0 -1
  1073. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/isObject.js.map +0 -1
  1074. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/isObjectLike.js.map +0 -1
  1075. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/isPlainObject.js.map +0 -1
  1076. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/isSet.js.map +0 -1
  1077. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/isTypedArray.js.map +0 -1
  1078. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/keys.js.map +0 -1
  1079. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/stubArray.js.map +0 -1
  1080. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/lodash-es/stubFalse.js.map +0 -1
  1081. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/quickselect/index.js.map +0 -1
  1082. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rbush/index.js.map +0 -1
  1083. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/BehaviorSubject.js.map +0 -1
  1084. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/Observable.js.map +0 -1
  1085. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/ReplaySubject.js.map +0 -1
  1086. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/Scheduler.js.map +0 -1
  1087. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/Subject.js.map +0 -1
  1088. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/Subscriber.js.map +0 -1
  1089. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/Subscription.js.map +0 -1
  1090. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/config.js.map +0 -1
  1091. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/observable/combineLatest.js.map +0 -1
  1092. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/observable/concat.js.map +0 -1
  1093. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/observable/defer.js.map +0 -1
  1094. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/observable/empty.js.map +0 -1
  1095. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/observable/from.js.map +0 -1
  1096. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/observable/fromEvent.js.map +0 -1
  1097. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/observable/innerFrom.js.map +0 -1
  1098. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/observable/merge.js.map +0 -1
  1099. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/observable/of.js.map +0 -1
  1100. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js.map +0 -1
  1101. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/operators/catchError.js.map +0 -1
  1102. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/operators/concatAll.js.map +0 -1
  1103. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/operators/concatMap.js.map +0 -1
  1104. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/operators/distinctUntilChanged.js.map +0 -1
  1105. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/operators/exhaustMap.js.map +0 -1
  1106. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/operators/filter.js.map +0 -1
  1107. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/operators/finalize.js.map +0 -1
  1108. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/operators/map.js.map +0 -1
  1109. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/operators/mergeAll.js.map +0 -1
  1110. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/operators/mergeInternals.js.map +0 -1
  1111. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/operators/mergeMap.js.map +0 -1
  1112. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/operators/observeOn.js.map +0 -1
  1113. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/operators/sample.js.map +0 -1
  1114. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/operators/skip.js.map +0 -1
  1115. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/operators/skipWhile.js.map +0 -1
  1116. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/operators/startWith.js.map +0 -1
  1117. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/operators/subscribeOn.js.map +0 -1
  1118. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/operators/switchMap.js.map +0 -1
  1119. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/operators/take.js.map +0 -1
  1120. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/operators/takeUntil.js.map +0 -1
  1121. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/operators/takeWhile.js.map +0 -1
  1122. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/operators/tap.js.map +0 -1
  1123. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/operators/timeout.js.map +0 -1
  1124. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/operators/withLatestFrom.js.map +0 -1
  1125. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleArray.js.map +0 -1
  1126. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleAsyncIterable.js.map +0 -1
  1127. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleIterable.js.map +0 -1
  1128. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleObservable.js.map +0 -1
  1129. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/scheduled/schedulePromise.js.map +0 -1
  1130. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/scheduled/scheduleReadableStreamLike.js.map +0 -1
  1131. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/scheduled/scheduled.js.map +0 -1
  1132. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/scheduler/Action.js.map +0 -1
  1133. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/scheduler/AsyncAction.js.map +0 -1
  1134. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/scheduler/AsyncScheduler.js.map +0 -1
  1135. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/scheduler/async.js.map +0 -1
  1136. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/scheduler/dateTimestampProvider.js.map +0 -1
  1137. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/scheduler/intervalProvider.js.map +0 -1
  1138. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js.map +0 -1
  1139. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/symbol/iterator.js.map +0 -1
  1140. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/symbol/observable.js.map +0 -1
  1141. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/util/ObjectUnsubscribedError.js.map +0 -1
  1142. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js.map +0 -1
  1143. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/util/args.js.map +0 -1
  1144. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/util/argsArgArrayOrObject.js.map +0 -1
  1145. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js.map +0 -1
  1146. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js.map +0 -1
  1147. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/util/createObject.js.map +0 -1
  1148. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/util/errorContext.js.map +0 -1
  1149. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/util/executeSchedule.js.map +0 -1
  1150. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/util/identity.js.map +0 -1
  1151. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/util/isArrayLike.js.map +0 -1
  1152. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/util/isAsyncIterable.js.map +0 -1
  1153. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/util/isDate.js.map +0 -1
  1154. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/util/isFunction.js.map +0 -1
  1155. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/util/isInteropObservable.js.map +0 -1
  1156. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/util/isIterable.js.map +0 -1
  1157. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/util/isPromise.js.map +0 -1
  1158. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/util/isReadableStreamLike.js.map +0 -1
  1159. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/util/isScheduler.js.map +0 -1
  1160. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/util/lift.js.map +0 -1
  1161. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/util/mapOneOrManyArgs.js.map +0 -1
  1162. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/util/noop.js.map +0 -1
  1163. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/util/pipe.js.map +0 -1
  1164. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js.map +0 -1
  1165. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/rxjs/dist/esm5/internal/util/throwUnobservableError.js.map +0 -1
  1166. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/build/three.core.js +0 -2
  1167. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/build/three.core.js.map +0 -1
  1168. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/build/three.module.js +0 -2
  1169. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/build/three.module.js.map +0 -1
  1170. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/examples/jsm/controls/FirstPersonControls.js +0 -2
  1171. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/examples/jsm/controls/FirstPersonControls.js.map +0 -1
  1172. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/examples/jsm/controls/OrbitControls.js +0 -2
  1173. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/examples/jsm/controls/OrbitControls.js.map +0 -1
  1174. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/examples/jsm/lines/Line2.js +0 -2
  1175. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/examples/jsm/lines/Line2.js.map +0 -1
  1176. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/examples/jsm/lines/LineGeometry.js +0 -2
  1177. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/examples/jsm/lines/LineGeometry.js.map +0 -1
  1178. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/examples/jsm/lines/LineMaterial.js +0 -2
  1179. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/examples/jsm/lines/LineMaterial.js.map +0 -1
  1180. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/examples/jsm/lines/LineSegments2.js +0 -2
  1181. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/examples/jsm/lines/LineSegments2.js.map +0 -1
  1182. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/examples/jsm/lines/LineSegmentsGeometry.js +0 -2
  1183. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/examples/jsm/lines/LineSegmentsGeometry.js.map +0 -1
  1184. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/examples/jsm/loaders/DRACOLoader.js +0 -2
  1185. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/examples/jsm/loaders/DRACOLoader.js.map +0 -1
  1186. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/examples/jsm/loaders/GLTFLoader.js +0 -2
  1187. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/examples/jsm/loaders/GLTFLoader.js.map +0 -1
  1188. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/examples/jsm/loaders/HDRLoader.js +0 -2
  1189. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/examples/jsm/loaders/HDRLoader.js.map +0 -1
  1190. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/examples/jsm/renderers/CSS2DRenderer.js +0 -2
  1191. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/examples/jsm/renderers/CSS2DRenderer.js.map +0 -1
  1192. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/examples/jsm/renderers/CSS3DRenderer.js +0 -2
  1193. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/examples/jsm/renderers/CSS3DRenderer.js.map +0 -1
  1194. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/examples/jsm/utils/BufferGeometryUtils.js +0 -2
  1195. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/examples/jsm/utils/BufferGeometryUtils.js.map +0 -1
  1196. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/examples/jsm/utils/SkeletonUtils.js +0 -2
  1197. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/examples/jsm/utils/SkeletonUtils.js.map +0 -1
  1198. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/src/math/MathUtils.js +0 -2
  1199. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/src/math/MathUtils.js.map +0 -1
  1200. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/src/math/Quaternion.js +0 -2
  1201. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/src/math/Quaternion.js.map +0 -1
  1202. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/src/math/Vector3.js +0 -2
  1203. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/src/math/Vector3.js.map +0 -1
  1204. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/src/utils.js +0 -2
  1205. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three/src/utils.js.map +0 -1
  1206. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/Constants.js.map +0 -1
  1207. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/MeshBVH.js +0 -2
  1208. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/MeshBVH.js.map +0 -1
  1209. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/MeshBVHNode.js.map +0 -1
  1210. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/build/buildTree.js.map +0 -1
  1211. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/build/buildUtils.js.map +0 -1
  1212. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/build/computeBoundsUtils.js.map +0 -1
  1213. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/build/geometryUtils.js +0 -2
  1214. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/build/geometryUtils.js.map +0 -1
  1215. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/build/sortUtils.generated.js.map +0 -1
  1216. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/build/sortUtils_indirect.generated.js.map +0 -1
  1217. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/build/splitUtils.js.map +0 -1
  1218. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/cast/bvhcast.js +0 -2
  1219. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/cast/bvhcast.js.map +0 -1
  1220. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/cast/closestPointToGeometry.generated.js +0 -2
  1221. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/cast/closestPointToGeometry.generated.js.map +0 -1
  1222. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/cast/closestPointToGeometry_indirect.generated.js +0 -2
  1223. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/cast/closestPointToGeometry_indirect.generated.js.map +0 -1
  1224. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/cast/closestPointToPoint.js +0 -2
  1225. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/cast/closestPointToPoint.js.map +0 -1
  1226. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/cast/intersectsGeometry.generated.js +0 -2
  1227. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/cast/intersectsGeometry.generated.js.map +0 -1
  1228. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/cast/intersectsGeometry_indirect.generated.js +0 -2
  1229. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/cast/intersectsGeometry_indirect.generated.js.map +0 -1
  1230. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/cast/raycast.generated.js.map +0 -1
  1231. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/cast/raycastFirst.generated.js.map +0 -1
  1232. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/cast/raycastFirst_indirect.generated.js.map +0 -1
  1233. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/cast/raycast_indirect.generated.js.map +0 -1
  1234. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/cast/refit.generated.js.map +0 -1
  1235. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/cast/refit_indirect.generated.js.map +0 -1
  1236. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/cast/shapecast.js +0 -2
  1237. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/cast/shapecast.js.map +0 -1
  1238. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/utils/BufferStack.js.map +0 -1
  1239. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/utils/intersectUtils.js.map +0 -1
  1240. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/utils/iterationUtils.generated.js.map +0 -1
  1241. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/utils/iterationUtils_indirect.generated.js.map +0 -1
  1242. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/core/utils/nodeBufferUtils.js.map +0 -1
  1243. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/math/ExtendedTriangle.js +0 -2
  1244. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/math/ExtendedTriangle.js.map +0 -1
  1245. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/math/MathUtilities.js +0 -2
  1246. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/math/MathUtilities.js.map +0 -1
  1247. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/math/OrientedBox.js +0 -2
  1248. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/math/OrientedBox.js.map +0 -1
  1249. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/math/SeparatingAxisBounds.js +0 -2
  1250. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/math/SeparatingAxisBounds.js.map +0 -1
  1251. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/objects/MeshBVHHelper.js +0 -2
  1252. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/objects/MeshBVHHelper.js.map +0 -1
  1253. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/utils/ArrayBoxUtilities.js.map +0 -1
  1254. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/utils/BufferUtils.js.map +0 -1
  1255. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/utils/ExtendedTrianglePool.js.map +0 -1
  1256. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/utils/ExtensionUtilities.js +0 -2
  1257. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/utils/ExtensionUtilities.js.map +0 -1
  1258. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/utils/GeometryRayIntersectUtilities.js.map +0 -1
  1259. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/utils/PrimitivePool.js.map +0 -1
  1260. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/utils/ThreeRayIntersectUtilities.js +0 -2
  1261. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/utils/ThreeRayIntersectUtilities.js.map +0 -1
  1262. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/utils/TriangleUtilities.js +0 -2
  1263. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/three-mesh-bvh/src/utils/TriangleUtilities.js.map +0 -1
  1264. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/tslib/tslib.es6.js.map +0 -1
  1265. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/typescript-fsm/dist/stateMachine.js +0 -2
  1266. package/dist/home/runner/work/anarchy-engine/anarchy-engine/node_modules/typescript-fsm/dist/stateMachine.js.map +0 -1
  1267. package/dist/home/runner/work/anarchy-engine/anarchy-engine/packages/anarchy-engine/node_modules/nanoid/index.browser.js.map +0 -1
  1268. package/dist/home/runner/work/anarchy-engine/anarchy-engine/packages/anarchy-engine/node_modules/nanoid/url-alphabet/index.js.map +0 -1
  1269. package/dist/home/runner/work/anarchy-engine/anarchy-engine/packages/anarchy-shared/src/Constants/CssUnits.js.map +0 -1
  1270. package/dist/home/runner/work/anarchy-engine/anarchy-engine/packages/anarchy-shared/src/Constants/FallBackFonts.js.map +0 -1
  1271. package/dist/home/runner/work/anarchy-engine/anarchy-engine/packages/anarchy-shared/src/Utils/ArrayUtils.js.map +0 -1
  1272. package/dist/home/runner/work/anarchy-engine/anarchy-engine/packages/anarchy-shared/src/Utils/AsyncUtils.js.map +0 -1
  1273. package/dist/home/runner/work/anarchy-engine/anarchy-engine/packages/anarchy-shared/src/Utils/CheckUtils.js.map +0 -1
  1274. package/dist/home/runner/work/anarchy-engine/anarchy-engine/packages/anarchy-shared/src/Utils/CssUtils.js.map +0 -1
  1275. package/dist/home/runner/work/anarchy-engine/anarchy-engine/packages/anarchy-shared/src/Utils/MapUtils.js.map +0 -1
  1276. package/dist/home/runner/work/anarchy-engine/anarchy-engine/packages/anarchy-shared/src/Utils/ObjectUtils.js.map +0 -1
  1277. package/dist/home/runner/work/anarchy-engine/anarchy-engine/packages/anarchy-shared/src/Utils/StringUtils.js.map +0 -1
  1278. package/dist/home/runner/work/anarchy-engine/anarchy-engine/packages/anarchy-shared/src/Utils/TypesUtils.js.map +0 -1
  1279. package/dist/home/runner/work/anarchy-engine/anarchy-engine/packages/anarchy-shared/src/Utils/WebGlUtils.js.map +0 -1
  1280. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/@cfworker/json-schema/dist/esm/deep-compare-strict.js +0 -0
  1281. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/@cfworker/json-schema/dist/esm/dereference.js +0 -0
  1282. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/@cfworker/json-schema/dist/esm/format.js +0 -0
  1283. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/@cfworker/json-schema/dist/esm/pointer.js +0 -0
  1284. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/@cfworker/json-schema/dist/esm/ucs2-length.js +0 -0
  1285. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/@cfworker/json-schema/dist/esm/validate.js +0 -0
  1286. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/@cfworker/json-schema/dist/esm/validator.js +0 -0
  1287. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/_lib/addLeadingZeros.js +0 -0
  1288. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/_lib/defaultOptions.js +0 -0
  1289. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/_lib/format/formatters.js +0 -0
  1290. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/_lib/format/lightFormatters.js +0 -0
  1291. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/_lib/format/longFormatters.js +0 -0
  1292. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -0
  1293. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/_lib/normalizeDates.js +0 -0
  1294. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/_lib/protectedTokens.js +0 -0
  1295. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/constants.js +0 -0
  1296. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/constructFrom.js +0 -0
  1297. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/differenceInCalendarDays.js +0 -0
  1298. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/format.js +0 -0
  1299. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/getDayOfYear.js +0 -0
  1300. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/getISOWeek.js +0 -0
  1301. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/getISOWeekYear.js +0 -0
  1302. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/getWeek.js +0 -0
  1303. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/getWeekYear.js +0 -0
  1304. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/isDate.js +0 -0
  1305. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/isValid.js +0 -0
  1306. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/locale/_lib/buildFormatLongFn.js +0 -0
  1307. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/locale/_lib/buildLocalizeFn.js +0 -0
  1308. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/locale/_lib/buildMatchFn.js +0 -0
  1309. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/locale/_lib/buildMatchPatternFn.js +0 -0
  1310. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/locale/en-US/_lib/formatDistance.js +0 -0
  1311. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/locale/en-US/_lib/formatLong.js +0 -0
  1312. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/locale/en-US/_lib/formatRelative.js +0 -0
  1313. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/locale/en-US/_lib/localize.js +0 -0
  1314. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/locale/en-US/_lib/match.js +0 -0
  1315. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/locale/en-US.js +0 -0
  1316. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/parseISO.js +0 -0
  1317. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/startOfDay.js +0 -0
  1318. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/startOfISOWeek.js +0 -0
  1319. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/startOfISOWeekYear.js +0 -0
  1320. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/startOfWeek.js +0 -0
  1321. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/startOfWeekYear.js +0 -0
  1322. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/startOfYear.js +0 -0
  1323. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/date-fns/toDate.js +0 -0
  1324. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_DataView.js +0 -0
  1325. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_Hash.js +0 -0
  1326. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_ListCache.js +0 -0
  1327. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_Map.js +0 -0
  1328. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_MapCache.js +0 -0
  1329. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_Promise.js +0 -0
  1330. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_Set.js +0 -0
  1331. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_SetCache.js +0 -0
  1332. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_Stack.js +0 -0
  1333. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_Symbol.js +0 -0
  1334. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_Uint8Array.js +0 -0
  1335. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_WeakMap.js +0 -0
  1336. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_arrayEach.js +0 -0
  1337. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_arrayFilter.js +0 -0
  1338. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_arrayLikeKeys.js +0 -0
  1339. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_arrayPush.js +0 -0
  1340. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_arraySome.js +0 -0
  1341. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_assignValue.js +0 -0
  1342. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_assocIndexOf.js +0 -0
  1343. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_baseAssignValue.js +0 -0
  1344. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_baseClone.js +0 -0
  1345. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_baseCreate.js +0 -0
  1346. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_baseGetAllKeys.js +0 -0
  1347. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_baseGetTag.js +0 -0
  1348. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_baseIsArguments.js +0 -0
  1349. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_baseIsEqual.js +0 -0
  1350. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_baseIsEqualDeep.js +0 -0
  1351. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_baseIsMap.js +0 -0
  1352. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_baseIsNative.js +0 -0
  1353. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_baseIsSet.js +0 -0
  1354. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_baseIsTypedArray.js +0 -0
  1355. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_baseKeys.js +0 -0
  1356. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_baseTimes.js +0 -0
  1357. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_baseUnary.js +0 -0
  1358. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_cacheHas.js +0 -0
  1359. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_cloneArrayBuffer.js +0 -0
  1360. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_cloneBuffer.js +0 -0
  1361. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_cloneDataView.js +0 -0
  1362. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_cloneRegExp.js +0 -0
  1363. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_cloneSymbol.js +0 -0
  1364. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_cloneTypedArray.js +0 -0
  1365. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_coreJsData.js +0 -0
  1366. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_defineProperty.js +0 -0
  1367. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_equalArrays.js +0 -0
  1368. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_equalByTag.js +0 -0
  1369. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_equalObjects.js +0 -0
  1370. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_freeGlobal.js +0 -0
  1371. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_getAllKeys.js +0 -0
  1372. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_getMapData.js +0 -0
  1373. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_getNative.js +0 -0
  1374. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_getPrototype.js +0 -0
  1375. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_getRawTag.js +0 -0
  1376. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_getSymbols.js +0 -0
  1377. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_getTag.js +0 -0
  1378. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_getValue.js +0 -0
  1379. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_hashClear.js +0 -0
  1380. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_hashDelete.js +0 -0
  1381. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_hashGet.js +0 -0
  1382. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_hashHas.js +0 -0
  1383. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_hashSet.js +0 -0
  1384. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_initCloneArray.js +0 -0
  1385. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_initCloneByTag.js +0 -0
  1386. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_initCloneObject.js +0 -0
  1387. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_isIndex.js +0 -0
  1388. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_isKeyable.js +0 -0
  1389. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_isMasked.js +0 -0
  1390. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_isPrototype.js +0 -0
  1391. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_listCacheClear.js +0 -0
  1392. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_listCacheDelete.js +0 -0
  1393. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_listCacheGet.js +0 -0
  1394. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_listCacheHas.js +0 -0
  1395. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_listCacheSet.js +0 -0
  1396. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_mapCacheClear.js +0 -0
  1397. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_mapCacheDelete.js +0 -0
  1398. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_mapCacheGet.js +0 -0
  1399. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_mapCacheHas.js +0 -0
  1400. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_mapCacheSet.js +0 -0
  1401. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_mapToArray.js +0 -0
  1402. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_nativeCreate.js +0 -0
  1403. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_nativeKeys.js +0 -0
  1404. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_nodeUtil.js +0 -0
  1405. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_objectToString.js +0 -0
  1406. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_overArg.js +0 -0
  1407. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_root.js +0 -0
  1408. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_setCacheAdd.js +0 -0
  1409. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_setCacheHas.js +0 -0
  1410. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_setToArray.js +0 -0
  1411. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_stackClear.js +0 -0
  1412. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_stackDelete.js +0 -0
  1413. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_stackGet.js +0 -0
  1414. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_stackHas.js +0 -0
  1415. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_stackSet.js +0 -0
  1416. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/_toSource.js +0 -0
  1417. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/cloneDeepWith.js +0 -0
  1418. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/eq.js +0 -0
  1419. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/isArguments.js +0 -0
  1420. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/isArray.js +0 -0
  1421. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/isArrayLike.js +0 -0
  1422. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/isBuffer.js +0 -0
  1423. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/isEmpty.js +0 -0
  1424. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/isEqual.js +0 -0
  1425. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/isFunction.js +0 -0
  1426. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/isLength.js +0 -0
  1427. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/isMap.js +0 -0
  1428. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/isObject.js +0 -0
  1429. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/isObjectLike.js +0 -0
  1430. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/isPlainObject.js +0 -0
  1431. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/isSet.js +0 -0
  1432. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/isTypedArray.js +0 -0
  1433. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/keys.js +0 -0
  1434. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/stubArray.js +0 -0
  1435. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/lodash-es/stubFalse.js +0 -0
  1436. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/quickselect/index.js +0 -0
  1437. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rbush/index.js +0 -0
  1438. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/BehaviorSubject.js +0 -0
  1439. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/Observable.js +0 -0
  1440. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/ReplaySubject.js +0 -0
  1441. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/Scheduler.js +0 -0
  1442. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/Subject.js +0 -0
  1443. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/Subscriber.js +0 -0
  1444. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/Subscription.js +0 -0
  1445. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/config.js +0 -0
  1446. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/observable/combineLatest.js +0 -0
  1447. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/observable/concat.js +0 -0
  1448. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/observable/defer.js +0 -0
  1449. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/observable/empty.js +0 -0
  1450. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/observable/from.js +0 -0
  1451. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/observable/fromEvent.js +0 -0
  1452. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/observable/innerFrom.js +0 -0
  1453. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/observable/merge.js +0 -0
  1454. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/observable/of.js +0 -0
  1455. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js +0 -0
  1456. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/operators/catchError.js +0 -0
  1457. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/operators/concatAll.js +0 -0
  1458. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/operators/concatMap.js +0 -0
  1459. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/operators/distinctUntilChanged.js +0 -0
  1460. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/operators/exhaustMap.js +0 -0
  1461. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/operators/filter.js +0 -0
  1462. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/operators/finalize.js +0 -0
  1463. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/operators/map.js +0 -0
  1464. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/operators/mergeAll.js +0 -0
  1465. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/operators/mergeInternals.js +0 -0
  1466. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/operators/mergeMap.js +0 -0
  1467. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/operators/observeOn.js +0 -0
  1468. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/operators/sample.js +0 -0
  1469. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/operators/skip.js +0 -0
  1470. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/operators/skipWhile.js +0 -0
  1471. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/operators/startWith.js +0 -0
  1472. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/operators/subscribeOn.js +0 -0
  1473. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/operators/switchMap.js +0 -0
  1474. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/operators/take.js +0 -0
  1475. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/operators/takeUntil.js +0 -0
  1476. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/operators/takeWhile.js +0 -0
  1477. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/operators/tap.js +0 -0
  1478. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/operators/timeout.js +0 -0
  1479. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/operators/withLatestFrom.js +0 -0
  1480. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/scheduled/scheduleArray.js +0 -0
  1481. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/scheduled/scheduleAsyncIterable.js +0 -0
  1482. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/scheduled/scheduleIterable.js +0 -0
  1483. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/scheduled/scheduleObservable.js +0 -0
  1484. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/scheduled/schedulePromise.js +0 -0
  1485. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/scheduled/scheduleReadableStreamLike.js +0 -0
  1486. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/scheduled/scheduled.js +0 -0
  1487. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/scheduler/Action.js +0 -0
  1488. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/scheduler/AsyncAction.js +0 -0
  1489. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/scheduler/AsyncScheduler.js +0 -0
  1490. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/scheduler/async.js +0 -0
  1491. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/scheduler/dateTimestampProvider.js +0 -0
  1492. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/scheduler/intervalProvider.js +0 -0
  1493. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +0 -0
  1494. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/symbol/iterator.js +0 -0
  1495. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/symbol/observable.js +0 -0
  1496. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/util/ObjectUnsubscribedError.js +0 -0
  1497. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +0 -0
  1498. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/util/args.js +0 -0
  1499. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/util/argsArgArrayOrObject.js +0 -0
  1500. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/util/arrRemove.js +0 -0
  1501. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/util/createErrorClass.js +0 -0
  1502. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/util/createObject.js +0 -0
  1503. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/util/errorContext.js +0 -0
  1504. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/util/executeSchedule.js +0 -0
  1505. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/util/identity.js +0 -0
  1506. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/util/isArrayLike.js +0 -0
  1507. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/util/isAsyncIterable.js +0 -0
  1508. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/util/isDate.js +0 -0
  1509. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/util/isFunction.js +0 -0
  1510. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/util/isInteropObservable.js +0 -0
  1511. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/util/isIterable.js +0 -0
  1512. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/util/isPromise.js +0 -0
  1513. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/util/isReadableStreamLike.js +0 -0
  1514. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/util/isScheduler.js +0 -0
  1515. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/util/lift.js +0 -0
  1516. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/util/mapOneOrManyArgs.js +0 -0
  1517. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/util/noop.js +0 -0
  1518. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/util/pipe.js +0 -0
  1519. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/util/reportUnhandledError.js +0 -0
  1520. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/rxjs/dist/esm5/internal/util/throwUnobservableError.js +0 -0
  1521. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/three-mesh-bvh/src/core/Constants.js +0 -0
  1522. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/three-mesh-bvh/src/core/MeshBVHNode.js +0 -0
  1523. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/three-mesh-bvh/src/core/build/buildTree.js +0 -0
  1524. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/three-mesh-bvh/src/core/build/buildUtils.js +0 -0
  1525. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/three-mesh-bvh/src/core/build/computeBoundsUtils.js +0 -0
  1526. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/three-mesh-bvh/src/core/build/sortUtils.generated.js +0 -0
  1527. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/three-mesh-bvh/src/core/build/sortUtils_indirect.generated.js +0 -0
  1528. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/three-mesh-bvh/src/core/build/splitUtils.js +0 -0
  1529. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/three-mesh-bvh/src/core/cast/raycast.generated.js +0 -0
  1530. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/three-mesh-bvh/src/core/cast/raycastFirst.generated.js +0 -0
  1531. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/three-mesh-bvh/src/core/cast/raycastFirst_indirect.generated.js +0 -0
  1532. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/three-mesh-bvh/src/core/cast/raycast_indirect.generated.js +0 -0
  1533. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/three-mesh-bvh/src/core/cast/refit.generated.js +0 -0
  1534. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/three-mesh-bvh/src/core/cast/refit_indirect.generated.js +0 -0
  1535. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/three-mesh-bvh/src/core/utils/BufferStack.js +0 -0
  1536. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/three-mesh-bvh/src/core/utils/intersectUtils.js +0 -0
  1537. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/three-mesh-bvh/src/core/utils/iterationUtils.generated.js +0 -0
  1538. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/three-mesh-bvh/src/core/utils/iterationUtils_indirect.generated.js +0 -0
  1539. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/three-mesh-bvh/src/core/utils/nodeBufferUtils.js +0 -0
  1540. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/three-mesh-bvh/src/utils/ArrayBoxUtilities.js +0 -0
  1541. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/three-mesh-bvh/src/utils/BufferUtils.js +0 -0
  1542. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/three-mesh-bvh/src/utils/ExtendedTrianglePool.js +0 -0
  1543. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/three-mesh-bvh/src/utils/GeometryRayIntersectUtilities.js +0 -0
  1544. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/three-mesh-bvh/src/utils/PrimitivePool.js +0 -0
  1545. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/node_modules → node_modules}/tslib/tslib.es6.js +0 -0
  1546. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/packages → packages}/anarchy-engine/node_modules/nanoid/index.browser.js +0 -0
  1547. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/packages → packages}/anarchy-engine/node_modules/nanoid/url-alphabet/index.js +0 -0
  1548. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/packages → packages}/anarchy-shared/src/Constants/CssUnits.js +0 -0
  1549. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/packages → packages}/anarchy-shared/src/Constants/FallBackFonts.js +0 -0
  1550. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/packages → packages}/anarchy-shared/src/Utils/ArrayUtils.js +0 -0
  1551. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/packages → packages}/anarchy-shared/src/Utils/AsyncUtils.js +0 -0
  1552. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/packages → packages}/anarchy-shared/src/Utils/CheckUtils.js +0 -0
  1553. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/packages → packages}/anarchy-shared/src/Utils/CssUtils.js +0 -0
  1554. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/packages → packages}/anarchy-shared/src/Utils/MapUtils.js +0 -0
  1555. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/packages → packages}/anarchy-shared/src/Utils/ObjectUtils.js +0 -0
  1556. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/packages → packages}/anarchy-shared/src/Utils/StringUtils.js +0 -0
  1557. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/packages → packages}/anarchy-shared/src/Utils/TypesUtils.js +0 -0
  1558. /package/dist/{home/runner/work/anarchy-engine/anarchy-engine/packages → packages}/anarchy-shared/src/Utils/WebGlUtils.js +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"closestPointToGeometry_indirect.generated.js","sources":["../../../../../../../../node_modules/three-mesh-bvh/src/core/cast/closestPointToGeometry_indirect.generated.js"],"sourcesContent":["import { Matrix4, Vector3 } from 'three';\nimport { OrientedBox } from '../../math/OrientedBox.js';\nimport { setTriangle } from '../../utils/TriangleUtilities.js';\nimport { getTriCount } from '../build/geometryUtils.js';\nimport { ExtendedTrianglePool } from '../../utils/ExtendedTrianglePool.js';\n\n/*********************************************************************/\n/* This file is generated from \"closestPointToGeometry.template.js\". */\n/*********************************************************************/\n\nconst tempMatrix = /* @__PURE__ */ new Matrix4();\nconst obb = /* @__PURE__ */ new OrientedBox();\nconst obb2 = /* @__PURE__ */ new OrientedBox();\nconst temp1 = /* @__PURE__ */ new Vector3();\nconst temp2 = /* @__PURE__ */ new Vector3();\nconst temp3 = /* @__PURE__ */ new Vector3();\nconst temp4 = /* @__PURE__ */ new Vector3();\n\nfunction closestPointToGeometry_indirect(\n\tbvh,\n\totherGeometry,\n\tgeometryToBvh,\n\ttarget1 = { },\n\ttarget2 = { },\n\tminThreshold = 0,\n\tmaxThreshold = Infinity,\n) {\n\n\tif ( ! otherGeometry.boundingBox ) {\n\n\t\totherGeometry.computeBoundingBox();\n\n\t}\n\n\tobb.set( otherGeometry.boundingBox.min, otherGeometry.boundingBox.max, geometryToBvh );\n\tobb.needsUpdate = true;\n\n\tconst geometry = bvh.geometry;\n\tconst pos = geometry.attributes.position;\n\tconst index = geometry.index;\n\tconst otherPos = otherGeometry.attributes.position;\n\tconst otherIndex = otherGeometry.index;\n\tconst triangle = ExtendedTrianglePool.getPrimitive();\n\tconst triangle2 = ExtendedTrianglePool.getPrimitive();\n\n\tlet tempTarget1 = temp1;\n\tlet tempTargetDest1 = temp2;\n\tlet tempTarget2 = null;\n\tlet tempTargetDest2 = null;\n\n\tif ( target2 ) {\n\n\t\ttempTarget2 = temp3;\n\t\ttempTargetDest2 = temp4;\n\n\t}\n\n\tlet closestDistance = Infinity;\n\tlet closestDistanceTriIndex = null;\n\tlet closestDistanceOtherTriIndex = null;\n\ttempMatrix.copy( geometryToBvh ).invert();\n\tobb2.matrix.copy( tempMatrix );\n\tbvh.shapecast(\n\t\t{\n\n\t\t\tboundsTraverseOrder: box => {\n\n\t\t\t\treturn obb.distanceToBox( box );\n\n\t\t\t},\n\n\t\t\tintersectsBounds: ( box, isLeaf, score ) => {\n\n\t\t\t\tif ( score < closestDistance && score < maxThreshold ) {\n\n\t\t\t\t\t// if we know the triangles of this bounds will be intersected next then\n\t\t\t\t\t// save the bounds to use during triangle checks.\n\t\t\t\t\tif ( isLeaf ) {\n\n\t\t\t\t\t\tobb2.min.copy( box.min );\n\t\t\t\t\t\tobb2.max.copy( box.max );\n\t\t\t\t\t\tobb2.needsUpdate = true;\n\n\t\t\t\t\t}\n\n\t\t\t\t\treturn true;\n\n\t\t\t\t}\n\n\t\t\t\treturn false;\n\n\t\t\t},\n\n\t\t\tintersectsRange: ( offset, count ) => {\n\n\t\t\t\tif ( otherGeometry.boundsTree ) {\n\n\t\t\t\t\t// if the other geometry has a bvh then use the accelerated path where we use shapecast to find\n\t\t\t\t\t// the closest bounds in the other geometry to check.\n\t\t\t\t\tconst otherBvh = otherGeometry.boundsTree;\n\t\t\t\t\treturn otherBvh.shapecast( {\n\t\t\t\t\t\tboundsTraverseOrder: box => {\n\n\t\t\t\t\t\t\treturn obb2.distanceToBox( box );\n\n\t\t\t\t\t\t},\n\n\t\t\t\t\t\tintersectsBounds: ( box, isLeaf, score ) => {\n\n\t\t\t\t\t\t\treturn score < closestDistance && score < maxThreshold;\n\n\t\t\t\t\t\t},\n\n\t\t\t\t\t\tintersectsRange: ( otherOffset, otherCount ) => {\n\n\t\t\t\t\t\t\tfor ( let i2 = otherOffset, l2 = otherOffset + otherCount; i2 < l2; i2 ++ ) {\n\n\t\t\t\t\t\t\t\tconst ti2 = otherBvh.resolveTriangleIndex( i2 );\n\t\t\t\t\t\t\t\tsetTriangle( triangle2, 3 * ti2, otherIndex, otherPos );\n\n\t\t\t\t\t\t\t\ttriangle2.a.applyMatrix4( geometryToBvh );\n\t\t\t\t\t\t\t\ttriangle2.b.applyMatrix4( geometryToBvh );\n\t\t\t\t\t\t\t\ttriangle2.c.applyMatrix4( geometryToBvh );\n\t\t\t\t\t\t\t\ttriangle2.needsUpdate = true;\n\n\t\t\t\t\t\t\t\tfor ( let i = offset, l = offset + count; i < l; i ++ ) {\n\n\t\t\t\t\t\t\t\t\tconst ti = bvh.resolveTriangleIndex( i );\n\t\t\t\t\t\t\t\t\tsetTriangle( triangle, 3 * ti, index, pos );\n\n\t\t\t\t\t\t\t\t\ttriangle.needsUpdate = true;\n\n\t\t\t\t\t\t\t\t\tconst dist = triangle.distanceToTriangle( triangle2, tempTarget1, tempTarget2 );\n\t\t\t\t\t\t\t\t\tif ( dist < closestDistance ) {\n\n\t\t\t\t\t\t\t\t\t\ttempTargetDest1.copy( tempTarget1 );\n\n\t\t\t\t\t\t\t\t\t\tif ( tempTargetDest2 ) {\n\n\t\t\t\t\t\t\t\t\t\t\ttempTargetDest2.copy( tempTarget2 );\n\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tclosestDistance = dist;\n\t\t\t\t\t\t\t\t\t\tclosestDistanceTriIndex = i;\n\t\t\t\t\t\t\t\t\t\tclosestDistanceOtherTriIndex = i2;\n\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t// stop traversal if we find a point that's under the given threshold\n\t\t\t\t\t\t\t\t\tif ( dist < minThreshold ) {\n\n\t\t\t\t\t\t\t\t\t\treturn true;\n\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t},\n\t\t\t\t\t} );\n\n\t\t\t\t} else {\n\n\t\t\t\t\t// If no bounds tree then we'll just check every triangle.\n\t\t\t\t\tconst triCount = getTriCount( otherGeometry );\n\t\t\t\t\tfor ( let i2 = 0, l2 = triCount; i2 < l2; i2 ++ ) {\n\n\t\t\t\t\t\tsetTriangle( triangle2, 3 * i2, otherIndex, otherPos );\n\t\t\t\t\t\ttriangle2.a.applyMatrix4( geometryToBvh );\n\t\t\t\t\t\ttriangle2.b.applyMatrix4( geometryToBvh );\n\t\t\t\t\t\ttriangle2.c.applyMatrix4( geometryToBvh );\n\t\t\t\t\t\ttriangle2.needsUpdate = true;\n\n\t\t\t\t\t\tfor ( let i = offset, l = offset + count; i < l; i ++ ) {\n\n\t\t\t\t\t\t\tconst ti = bvh.resolveTriangleIndex( i );\n\t\t\t\t\t\t\tsetTriangle( triangle, 3 * ti, index, pos );\n\n\t\t\t\t\t\t\ttriangle.needsUpdate = true;\n\n\t\t\t\t\t\t\tconst dist = triangle.distanceToTriangle( triangle2, tempTarget1, tempTarget2 );\n\t\t\t\t\t\t\tif ( dist < closestDistance ) {\n\n\t\t\t\t\t\t\t\ttempTargetDest1.copy( tempTarget1 );\n\n\t\t\t\t\t\t\t\tif ( tempTargetDest2 ) {\n\n\t\t\t\t\t\t\t\t\ttempTargetDest2.copy( tempTarget2 );\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\tclosestDistance = dist;\n\t\t\t\t\t\t\t\tclosestDistanceTriIndex = i;\n\t\t\t\t\t\t\t\tclosestDistanceOtherTriIndex = i2;\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// stop traversal if we find a point that's under the given threshold\n\t\t\t\t\t\t\tif ( dist < minThreshold ) {\n\n\t\t\t\t\t\t\t\treturn true;\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t},\n\n\t\t}\n\n\t);\n\n\tExtendedTrianglePool.releasePrimitive( triangle );\n\tExtendedTrianglePool.releasePrimitive( triangle2 );\n\n\tif ( closestDistance === Infinity ) {\n\n\t\treturn null;\n\n\t}\n\n\tif ( ! target1.point ) {\n\n\t\ttarget1.point = tempTargetDest1.clone();\n\n\t} else {\n\n\t\ttarget1.point.copy( tempTargetDest1 );\n\n\t}\n\n\ttarget1.distance = closestDistance,\n\ttarget1.faceIndex = closestDistanceTriIndex;\n\n\tif ( target2 ) {\n\n\t\tif ( ! target2.point ) target2.point = tempTargetDest2.clone();\n\t\telse target2.point.copy( tempTargetDest2 );\n\t\ttarget2.point.applyMatrix4( tempMatrix );\n\t\ttempTargetDest1.applyMatrix4( tempMatrix );\n\t\ttarget2.distance = tempTargetDest1.sub( target2.point ).length();\n\t\ttarget2.faceIndex = closestDistanceOtherTriIndex;\n\n\t}\n\n\treturn target1;\n\n}\n\nexport { closestPointToGeometry_indirect };\n"],"names":["tempMatrix","Matrix4","obb","OrientedBox","obb2","temp1","Vector3","temp2","temp3","temp4","closestPointToGeometry_indirect","bvh","otherGeometry","geometryToBvh","target1","target2","minThreshold","maxThreshold","Infinity","boundingBox","computeBoundingBox","set","min","max","needsUpdate","geometry","pos","attributes","position","index","otherPos","otherIndex","triangle","ExtendedTrianglePool","getPrimitive","triangle2","tempTarget1","tempTargetDest1","tempTarget2","tempTargetDest2","closestDistance","closestDistanceTriIndex","closestDistanceOtherTriIndex","copy","invert","matrix","shapecast","boundsTraverseOrder","box","distanceToBox","intersectsBounds","isLeaf","score","intersectsRange","offset","count","boundsTree","otherBvh","otherOffset","otherCount","i2","l2","ti2","resolveTriangleIndex","setTriangle","a","applyMatrix4","b","c","i","l","ti","dist","distanceToTriangle","getTriCount","releasePrimitive","point","clone","distance","faceIndex","sub","length"],"mappings":"yQAUA,MAAMA,WAA6B,IAAIC,QACjCC,IAAsB,IAAIC,YAC1BC,KAAuB,IAAID,YAC3BE,MAAwB,IAAIC,QAC5BC,MAAwB,IAAID,QAC5BE,MAAwB,IAAIF,QAC5BG,MAAwB,IAAIH,QAElC,SAASI,gCACRC,IACAC,cACAC,cACAC,QAAU,CAAA,EACVC,QAAU,CAAA,EACVC,aAAe,EACfC,aAAeC,KAGRN,cAAcO,aAEpBP,cAAcQ,qBAIflB,IAAImB,IAAKT,cAAcO,YAAYG,IAAKV,cAAcO,YAAYI,IAAKV,eACvEX,IAAIsB,aAAc,EAElB,MAAMC,SAAWd,IAAIc,SACfC,IAAMD,SAASE,WAAWC,SAC1BC,MAAQJ,SAASI,MACjBC,SAAWlB,cAAce,WAAWC,SACpCG,WAAanB,cAAciB,MAC3BG,SAAWC,qBAAqBC,eAChCC,UAAYF,qBAAqBC,eAEvC,IAAIE,YAAc/B,MACdgC,gBAAkB9B,MAClB+B,YAAc,KACdC,gBAAkB,KAEjBxB,UAEJuB,YAAc9B,MACd+B,gBAAkB9B,OAInB,IAAI+B,gBAAkBtB,IAClBuB,wBAA0B,KAC1BC,6BAA+B,KAkKnC,OAjKA1C,WAAW2C,KAAM9B,eAAgB+B,SACjCxC,KAAKyC,OAAOF,KAAM3C,YA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estPointToPoint(bvh,point,target={},minThreshold=0,maxThreshold=1/0){const minThresholdSq=minThreshold*minThreshold,maxThresholdSq=maxThreshold*maxThreshold;let closestDistanceSq=1/0,closestDistanceTriIndex=null;if(bvh.shapecast({boundsTraverseOrder:box=>(temp.copy(point).clamp(box.min,box.max),temp.distanceToSquared(point)),intersectsBounds:(box,isLeaf,score)=>score<closestDistanceSq&&score<maxThresholdSq,intersectsTriangle:(tri,triIndex)=>{tri.closestPointToPoint(point,temp);const distSq=point.distanceToSquared(temp);return distSq<closestDistanceSq&&(temp1.copy(temp),closestDistanceSq=distSq,closestDistanceTriIndex=triIndex),distSq<minThresholdSq}}),closestDistanceSq===1/0)return null;const closestDistance=Math.sqrt(closestDistanceSq);return target.point?target.point.copy(temp1):target.point=temp1.clone(),target.distance=closestDistance,target.faceIndex=closestDistanceTriIndex,target}export{closestPointToPoint};
2
+ //# sourceMappingURL=closestPointToPoint.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"closestPointToPoint.js","sources":["../../../../../../../../node_modules/three-mesh-bvh/src/core/cast/closestPointToPoint.js"],"sourcesContent":["import { Vector3 } from 'three';\n\nconst temp = /* @__PURE__ */ new Vector3();\nconst temp1 = /* @__PURE__ */ new Vector3();\n\nexport function closestPointToPoint(\n\tbvh,\n\tpoint,\n\ttarget = { },\n\tminThreshold = 0,\n\tmaxThreshold = Infinity,\n) {\n\n\t// early out if under minThreshold\n\t// skip checking if over maxThreshold\n\t// set minThreshold = maxThreshold to quickly check if a point is within a threshold\n\t// returns Infinity if no value found\n\tconst minThresholdSq = minThreshold * minThreshold;\n\tconst maxThresholdSq = maxThreshold * maxThreshold;\n\tlet closestDistanceSq = Infinity;\n\tlet closestDistanceTriIndex = null;\n\tbvh.shapecast(\n\n\t\t{\n\n\t\t\tboundsTraverseOrder: box => {\n\n\t\t\t\ttemp.copy( point ).clamp( box.min, box.max );\n\t\t\t\treturn temp.distanceToSquared( point );\n\n\t\t\t},\n\n\t\t\tintersectsBounds: ( box, isLeaf, score ) => {\n\n\t\t\t\treturn score < closestDistanceSq && score < maxThresholdSq;\n\n\t\t\t},\n\n\t\t\tintersectsTriangle: ( tri, triIndex ) => {\n\n\t\t\t\ttri.closestPointToPoint( point, temp );\n\t\t\t\tconst distSq = point.distanceToSquared( temp );\n\t\t\t\tif ( distSq < closestDistanceSq ) {\n\n\t\t\t\t\ttemp1.copy( temp );\n\t\t\t\t\tclosestDistanceSq = distSq;\n\t\t\t\t\tclosestDistanceTriIndex = triIndex;\n\n\t\t\t\t}\n\n\t\t\t\tif ( distSq < minThresholdSq ) {\n\n\t\t\t\t\treturn true;\n\n\t\t\t\t} else {\n\n\t\t\t\t\treturn false;\n\n\t\t\t\t}\n\n\t\t\t},\n\n\t\t}\n\n\t);\n\n\tif ( closestDistanceSq === Infinity ) return null;\n\n\tconst closestDistance = Math.sqrt( closestDistanceSq );\n\n\tif ( ! target.point ) target.point = temp1.clone();\n\telse target.point.copy( temp1 );\n\ttarget.distance = closestDistance,\n\ttarget.faceIndex = closestDistanceTriIndex;\n\n\treturn target;\n\n}\n"],"names":["temp","Vector3","temp1","closestPointToPoint","bvh","point","target","minThreshold","maxThreshold","Infinity","minThresholdSq","maxThresholdSq","closestDistanceSq","closestDistanceTriIndex","shapecast","boundsTraverseOrder","box","copy","clamp","min","max","distanceToSquared","intersectsBounds","isLeaf","score","intersectsTriangle","tri","triIndex","distSq","closestDistance","Math","sqrt","clone","distance","faceIndex"],"mappings":"2BAEA,MAAMA,KAAuB,IAAIC,QAC3BC,MAAwB,IAAID,QAE3B,SAASE,oBACfC,IACAC,MACAC,OAAS,CAAA,EACTC,aAAe,EACfC,aAAeC,KAOf,MAAMC,eAAiBH,aAAeA,aAChCI,eAAiBH,aAAeA,aACtC,IAAII,kBAAoBH,IACpBI,wBAA0B,KA8C9B,GA7CAT,IAAIU,UAEH,CAECC,oBAAqBC,MAEpBhB,KAAKiB,KAAMZ,OAAQa,MAAOF,IAAIG,IAAKH,IAAII,KAChCpB,KAAKqB,kBAAmBhB,QAIhCiB,iBAAkB,CAAEN,IAAKO,OAAQC,QAEzBA,MAAQZ,mBAAqBY,MAAQb,eAI7Cc,mBAAoB,CAAEC,IAAKC,YAE1BD,IAAIvB,oBAAqBE,MAAOL,MAChC,MAAM4B,OAASvB,MAAMgB,kBAAmBrB,MASxC,OARK4B,OAAShB,oBAEbV,MAAMe,KAAMjB,MACZY,kBAAoBgB,OACpBf,wBAA0Bc,UAItBC,OAASlB,kBAgBZE,oBAAsBH,IAAW,OAAO,KAE7C,MAAMoB,gBAAkBC,KAAKC,KAAMnB,mBAOnC,OALON,OAAOD,MACTC,OAAOD,MAAMY,KAAMf,OADFI,OAAOD,MAAQH,MAAM8B,QAE3C1B,OAAO2B,SAAWJ,gBAClBvB,OAAO4B,UAAYrB,wBAEZP,MAER","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{Matrix4,Box3}from"three";import{OrientedBox}from"../../math/OrientedBox.js";import{ExtendedTriangle}from"../../math/ExtendedTriangle.js";import{setTriangle}from"../../utils/TriangleUtilities.js";import{arrayToBox}from"../../utils/ArrayBoxUtilities.js";import{IS_LEAF,OFFSET,COUNT,BOUNDING_DATA_INDEX,RIGHT_NODE,LEFT_NODE}from"../utils/nodeBufferUtils.js";import{BufferStack}from"../utils/BufferStack.js";import{getTriCount}from"../build/geometryUtils.js";const boundingBox=new Box3,triangle=new ExtendedTriangle,triangle2=new ExtendedTriangle,invertedMat=new Matrix4,obb=new OrientedBox,obb2=new OrientedBox;function intersectsGeometry(bvh,root,otherGeometry,geometryToBvh){BufferStack.setBuffer(bvh._roots[root]);const result=_intersectsGeometry(0,bvh,otherGeometry,geometryToBvh);return BufferStack.clearBuffer(),result}function _intersectsGeometry(nodeIndex32,bvh,otherGeometry,geometryToBvh,cachedObb=null){const{float32Array:float32Array,uint16Array:uint16Array,uint32Array:uint32Array}=BufferStack;let nodeIndex16=2*nodeIndex32;if(null===cachedObb&&(otherGeometry.boundingBox||otherGeometry.computeBoundingBox(),obb.set(otherGeometry.boundingBox.min,otherGeometry.boundingBox.max,geometryToBvh),cachedObb=obb),!IS_LEAF(nodeIndex16,uint16Array)){const left=LEFT_NODE(nodeIndex32),right=RIGHT_NODE(nodeIndex32,uint32Array);return arrayToBox(BOUNDING_DATA_INDEX(left),float32Array,boundingBox),!(!cachedObb.intersectsBox(boundingBox)||!_intersectsGeometry(left,bvh,otherGeometry,geometryToBvh,cachedObb))||(arrayToBox(BOUNDING_DATA_INDEX(right),float32Array,boundingBox),!(!cachedObb.intersectsBox(boundingBox)||!_intersectsGeometry(right,bvh,otherGeometry,geometryToBvh,cachedObb)))}{const thisGeometry=bvh.geometry,thisIndex=thisGeometry.index,thisPos=thisGeometry.attributes.position,otherIndex=otherGeometry.index,otherPos=otherGeometry.attributes.position,offset=OFFSET(nodeIndex32,uint32Array),count=COUNT(nodeIndex16,uint16Array);if(invertedMat.copy(geometryToBvh).invert(),otherGeometry.boundsTree)return arrayToBox(BOUNDING_DATA_INDEX(nodeIndex32),float32Array,obb2),obb2.matrix.copy(invertedMat),obb2.needsUpdate=!0,otherGeometry.boundsTree.shapecast({intersectsBounds:box=>obb2.intersectsBox(box),intersectsTriangle:tri=>{tri.a.applyMatrix4(geometryToBvh),tri.b.applyMatrix4(geometryToBvh),tri.c.applyMatrix4(geometryToBvh),tri.needsUpdate=!0;for(let i=3*offset,l=3*(count+offset);i<l;i+=3)if(setTriangle(triangle2,i,thisIndex,thisPos),triangle2.needsUpdate=!0,tri.intersectsTriangle(triangle2))return!0;return!1}});{const otherTriangleCount=getTriCount(otherGeometry);for(let i=3*offset,l=3*(count+offset);i<l;i+=3){setTriangle(triangle,i,thisIndex,thisPos),triangle.a.applyMatrix4(invertedMat),triangle.b.applyMatrix4(invertedMat),triangle.c.applyMatrix4(invertedMat),triangle.needsUpdate=!0;for(let i2=0,l2=3*otherTriangleCount;i2<l2;i2+=3)if(setTriangle(triangle2,i2,otherIndex,otherPos),triangle2.needsUpdate=!0,triangle.intersectsTriangle(triangle2))return!0}}}}export{intersectsGeometry};
2
+ //# sourceMappingURL=intersectsGeometry.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intersectsGeometry.generated.js","sources":["../../../../../../../../node_modules/three-mesh-bvh/src/core/cast/intersectsGeometry.generated.js"],"sourcesContent":["import { Box3, Matrix4 } from 'three';\nimport { OrientedBox } from '../../math/OrientedBox.js';\nimport { ExtendedTriangle } from '../../math/ExtendedTriangle.js';\nimport { setTriangle } from '../../utils/TriangleUtilities.js';\nimport { arrayToBox } from '../../utils/ArrayBoxUtilities.js';\nimport { IS_LEAF, OFFSET, COUNT, BOUNDING_DATA_INDEX, LEFT_NODE, RIGHT_NODE } from '../utils/nodeBufferUtils.js';\nimport { BufferStack } from '../utils/BufferStack.js';\nimport { getTriCount } from '../build/geometryUtils.js';\n\n/*****************************************************************/\n/* This file is generated from \"intersectsGeometry.template.js\". */\n/*****************************************************************/\n/* eslint-disable indent */\n\nconst boundingBox = /* @__PURE__ */ new Box3();\nconst triangle = /* @__PURE__ */ new ExtendedTriangle();\nconst triangle2 = /* @__PURE__ */ new ExtendedTriangle();\nconst invertedMat = /* @__PURE__ */ new Matrix4();\n\nconst obb = /* @__PURE__ */ new OrientedBox();\nconst obb2 = /* @__PURE__ */ new OrientedBox();\n\nfunction intersectsGeometry( bvh, root, otherGeometry, geometryToBvh ) {\n\n\tBufferStack.setBuffer( bvh._roots[ root ] );\n\tconst result = _intersectsGeometry( 0, bvh, otherGeometry, geometryToBvh );\n\tBufferStack.clearBuffer();\n\n\treturn result;\n\n}\n\nfunction _intersectsGeometry( nodeIndex32, bvh, otherGeometry, geometryToBvh, cachedObb = null ) {\n\n\tconst { float32Array, uint16Array, uint32Array } = BufferStack;\n\tlet nodeIndex16 = nodeIndex32 * 2;\n\n\tif ( cachedObb === null ) {\n\n\t\tif ( ! otherGeometry.boundingBox ) {\n\n\t\t\totherGeometry.computeBoundingBox();\n\n\t\t}\n\n\t\tobb.set( otherGeometry.boundingBox.min, otherGeometry.boundingBox.max, geometryToBvh );\n\t\tcachedObb = obb;\n\n\t}\n\n\tconst isLeaf = IS_LEAF( nodeIndex16, uint16Array );\n\tif ( isLeaf ) {\n\n\t\tconst thisGeometry = bvh.geometry;\n\t\tconst thisIndex = thisGeometry.index;\n\t\tconst thisPos = thisGeometry.attributes.position;\n\n\t\tconst otherIndex = otherGeometry.index;\n\t\tconst otherPos = otherGeometry.attributes.position;\n\n\t\tconst offset = OFFSET( nodeIndex32, uint32Array );\n\t\tconst count = COUNT( nodeIndex16, uint16Array );\n\n\t\t// get the inverse of the geometry matrix so we can transform our triangles into the\n\t\t// geometry space we're trying to test. We assume there are fewer triangles being checked\n\t\t// here.\n\t\tinvertedMat.copy( geometryToBvh ).invert();\n\n\t\tif ( otherGeometry.boundsTree ) {\n\n\t\t\t// if there's a bounds tree\n\t\t\tarrayToBox( BOUNDING_DATA_INDEX( nodeIndex32 ), float32Array, obb2 );\n\t\t\tobb2.matrix.copy( invertedMat );\n\t\t\tobb2.needsUpdate = true;\n\n\t\t\t// TODO: use a triangle iteration function here\n\t\t\tconst res = otherGeometry.boundsTree.shapecast( {\n\n\t\t\t\tintersectsBounds: box => obb2.intersectsBox( box ),\n\n\t\t\t\tintersectsTriangle: tri => {\n\n\t\t\t\t\ttri.a.applyMatrix4( geometryToBvh );\n\t\t\t\t\ttri.b.applyMatrix4( geometryToBvh );\n\t\t\t\t\ttri.c.applyMatrix4( geometryToBvh );\n\t\t\t\t\ttri.needsUpdate = true;\n\n\n\t\t\t\t\tfor ( let i = offset * 3, l = ( count + offset ) * 3; i < l; i += 3 ) {\n\n\t\t\t\t\t\t// this triangle needs to be transformed into the current BVH coordinate frame\n\t\t\t\t\t\tsetTriangle( triangle2, i, thisIndex, thisPos );\n\t\t\t\t\t\ttriangle2.needsUpdate = true;\n\t\t\t\t\t\tif ( tri.intersectsTriangle( triangle2 ) ) {\n\n\t\t\t\t\t\t\treturn true;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\n\t\t\t\t\treturn false;\n\n\t\t\t\t}\n\n\t\t\t} );\n\n\t\t\treturn res;\n\n\t\t} else {\n\n\t\t\t// if we're just dealing with raw geometry\n\t\t\tconst otherTriangleCount = getTriCount( otherGeometry );\n\n\n\t\t\tfor ( let i = offset * 3, l = ( count + offset ) * 3; i < l; i += 3 ) {\n\n\t\t\t\t// this triangle needs to be transformed into the current BVH coordinate frame\n\t\t\t\tsetTriangle( triangle, i, thisIndex, thisPos );\n\n\n\t\t\t\ttriangle.a.applyMatrix4( invertedMat );\n\t\t\t\ttriangle.b.applyMatrix4( invertedMat );\n\t\t\t\ttriangle.c.applyMatrix4( invertedMat );\n\t\t\t\ttriangle.needsUpdate = true;\n\n\t\t\t\tfor ( let i2 = 0, l2 = otherTriangleCount * 3; i2 < l2; i2 += 3 ) {\n\n\t\t\t\t\tsetTriangle( triangle2, i2, otherIndex, otherPos );\n\t\t\t\t\ttriangle2.needsUpdate = true;\n\n\t\t\t\t\tif ( triangle.intersectsTriangle( triangle2 ) ) {\n\n\t\t\t\t\t\treturn true;\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\n\t\t\t}\n\n\n\t\t}\n\n\t} else {\n\n\t\tconst left = LEFT_NODE( nodeIndex32 );\n\t\tconst right = RIGHT_NODE( nodeIndex32, uint32Array );\n\n\t\tarrayToBox( BOUNDING_DATA_INDEX( left ), float32Array, boundingBox );\n\t\tconst leftIntersection =\n\t\t\tcachedObb.intersectsBox( boundingBox ) &&\n\t\t\t_intersectsGeometry( left, bvh, otherGeometry, geometryToBvh, cachedObb );\n\n\t\tif ( leftIntersection ) return true;\n\n\t\tarrayToBox( BOUNDING_DATA_INDEX( right ), float32Array, boundingBox );\n\t\tconst rightIntersection =\n\t\t\tcachedObb.intersectsBox( boundingBox ) &&\n\t\t\t_intersectsGeometry( right, bvh, otherGeometry, geometryToBvh, cachedObb );\n\n\t\tif ( rightIntersection ) return true;\n\n\t\treturn false;\n\n\t}\n\n}\n\nexport { intersectsGeometry };\n"],"names":["boundingBox","Box3","triangle","ExtendedTriangle","triangle2","invertedMat","Matrix4","obb","OrientedBox","obb2","intersectsGeometry","bvh","root","otherGeometry","geometryToBvh","BufferStack","setBuffer","_roots","result","_intersectsGeometry","clearBuffer","nodeIndex32","cachedObb","float32Array","uint16Array","uint32Array","nodeIndex16","computeBoundingBox","set","min","max","IS_LEAF","left","LEFT_NODE","right","RIGHT_NODE","arrayToBox","BOUNDING_DATA_INDEX","intersectsBox","thisGeometry","geometry","thisIndex","index","thisPos","attributes","position","otherIndex","otherPos","offset","OFFSET","count","COUNT","copy","invert","boundsTree","matrix","needsUpdate","shapecast","intersectsBounds","box","intersectsTriangle","tri","a","applyMatrix4","b","c","i","l","setTriangle","otherTriangleCount","getTriCount","i2","l2"],"mappings":"8cAcA,MAAMA,YAA8B,IAAIC,KAClCC,SAA2B,IAAIC,iBAC/BC,UAA4B,IAAID,iBAChCE,YAA8B,IAAIC,QAElCC,IAAsB,IAAIC,YAC1BC,KAAuB,IAAID,YAEjC,SAASE,mBAAoBC,IAAKC,KAAMC,cAAeC,eAEtDC,YAAYC,UAAWL,IAAIM,OAAQL,OACnC,MAAMM,OAASC,oBAAqB,EAAGR,IAAKE,cAAeC,eAG3D,OAFAC,YAAYK,cAELF,MAER,CAEA,SAASC,oBAAqBE,YAAaV,IAAKE,cAAeC,cAAeQ,UAAY,MAEzF,MAAMC,aAAEA,aAAYC,YAAEA,YAAWC,YAAEA,aAAgBV,YACnD,IAAIW,YAA4B,EAAdL,YAgBlB,GAdmB,OAAdC,YAEGT,cAAcb,aAEpBa,cAAcc,qBAIfpB,IAAIqB,IAAKf,cAAcb,YAAY6B,IAAKhB,cAAcb,YAAY8B,IAAKhB,eACvEQ,UAAYf,MAIEwB,QAASL,YAAaF,aAgG9B,CAEN,MAAMQ,KAAOC,UAAWZ,aAClBa,MAAQC,WAAYd,YAAaI,aAOvC,OALAW,WAAYC,oBAAqBL,MAAQT,aAAcvB,gB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,SAAS+D,EAAEF,aAAc1D,aACzBH,SAASsD,aAAc,EAEvB,IAAM,IAAIe,GAAK,EAAGC,GAA0B,EAArBH,mBAAwBE,GAAKC,GAAID,IAAM,EAK7D,GAHAH,YAAahE,UAAWmE,GAAIzB,WAAYC,UACxC3C,UAAUoD,aAAc,EAEnBtD,SAAS0D,mBAAoBxD,WAEjC,OAAO,CAOV,CAGD,CAED,CAuBD","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{Matrix4,Box3}from"three";import{OrientedBox}from"../../math/OrientedBox.js";import{ExtendedTriangle}from"../../math/ExtendedTriangle.js";import{setTriangle}from"../../utils/TriangleUtilities.js";import{arrayToBox}from"../../utils/ArrayBoxUtilities.js";import{IS_LEAF,OFFSET,COUNT,BOUNDING_DATA_INDEX,RIGHT_NODE,LEFT_NODE}from"../utils/nodeBufferUtils.js";import{BufferStack}from"../utils/BufferStack.js";import{getTriCount}from"../build/geometryUtils.js";const boundingBox=new Box3,triangle=new ExtendedTriangle,triangle2=new ExtendedTriangle,invertedMat=new Matrix4,obb=new OrientedBox,obb2=new OrientedBox;function intersectsGeometry_indirect(bvh,root,otherGeometry,geometryToBvh){BufferStack.setBuffer(bvh._roots[root]);const result=_intersectsGeometry(0,bvh,otherGeometry,geometryToBvh);return BufferStack.clearBuffer(),result}function _intersectsGeometry(nodeIndex32,bvh,otherGeometry,geometryToBvh,cachedObb=null){const{float32Array:float32Array,uint16Array:uint16Array,uint32Array:uint32Array}=BufferStack;let nodeIndex16=2*nodeIndex32;if(null===cachedObb&&(otherGeometry.boundingBox||otherGeometry.computeBoundingBox(),obb.set(otherGeometry.boundingBox.min,otherGeometry.boundingBox.max,geometryToBvh),cachedObb=obb),!IS_LEAF(nodeIndex16,uint16Array)){const left=LEFT_NODE(nodeIndex32),right=RIGHT_NODE(nodeIndex32,uint32Array);return arrayToBox(BOUNDING_DATA_INDEX(left),float32Array,boundingBox),!(!cachedObb.intersectsBox(boundingBox)||!_intersectsGeometry(left,bvh,otherGeometry,geometryToBvh,cachedObb))||(arrayToBox(BOUNDING_DATA_INDEX(right),float32Array,boundingBox),!(!cachedObb.intersectsBox(boundingBox)||!_intersectsGeometry(right,bvh,otherGeometry,geometryToBvh,cachedObb)))}{const thisGeometry=bvh.geometry,thisIndex=thisGeometry.index,thisPos=thisGeometry.attributes.position,otherIndex=otherGeometry.index,otherPos=otherGeometry.attributes.position,offset=OFFSET(nodeIndex32,uint32Array),count=COUNT(nodeIndex16,uint16Array);if(invertedMat.copy(geometryToBvh).invert(),otherGeometry.boundsTree)return arrayToBox(BOUNDING_DATA_INDEX(nodeIndex32),float32Array,obb2),obb2.matrix.copy(invertedMat),obb2.needsUpdate=!0,otherGeometry.boundsTree.shapecast({intersectsBounds:box=>obb2.intersectsBox(box),intersectsTriangle:tri=>{tri.a.applyMatrix4(geometryToBvh),tri.b.applyMatrix4(geometryToBvh),tri.c.applyMatrix4(geometryToBvh),tri.needsUpdate=!0;for(let i=offset,l=count+offset;i<l;i++)if(setTriangle(triangle2,3*bvh.resolveTriangleIndex(i),thisIndex,thisPos),triangle2.needsUpdate=!0,tri.intersectsTriangle(triangle2))return!0;return!1}});{const otherTriangleCount=getTriCount(otherGeometry);for(let i=offset,l=count+offset;i<l;i++){const ti=bvh.resolveTriangleIndex(i);setTriangle(triangle,3*ti,thisIndex,thisPos),triangle.a.applyMatrix4(invertedMat),triangle.b.applyMatrix4(invertedMat),triangle.c.applyMatrix4(invertedMat),triangle.needsUpdate=!0;for(let i2=0,l2=3*otherTriangleCount;i2<l2;i2+=3)if(setTriangle(triangle2,i2,otherIndex,otherPos),triangle2.needsUpdate=!0,triangle.intersectsTriangle(triangle2))return!0}}}}export{intersectsGeometry_indirect};
2
+ //# sourceMappingURL=intersectsGeometry_indirect.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intersectsGeometry_indirect.generated.js","sources":["../../../../../../../../node_modules/three-mesh-bvh/src/core/cast/intersectsGeometry_indirect.generated.js"],"sourcesContent":["import { Box3, Matrix4 } from 'three';\nimport { OrientedBox } from '../../math/OrientedBox.js';\nimport { ExtendedTriangle } from '../../math/ExtendedTriangle.js';\nimport { setTriangle } from '../../utils/TriangleUtilities.js';\nimport { arrayToBox } from '../../utils/ArrayBoxUtilities.js';\nimport { IS_LEAF, OFFSET, COUNT, BOUNDING_DATA_INDEX, LEFT_NODE, RIGHT_NODE } from '../utils/nodeBufferUtils.js';\nimport { BufferStack } from '../utils/BufferStack.js';\nimport { getTriCount } from '../build/geometryUtils.js';\n\n/*****************************************************************/\n/* This file is generated from \"intersectsGeometry.template.js\". */\n/*****************************************************************/\n/* eslint-disable indent */\n\nconst boundingBox = /* @__PURE__ */ new Box3();\nconst triangle = /* @__PURE__ */ new ExtendedTriangle();\nconst triangle2 = /* @__PURE__ */ new ExtendedTriangle();\nconst invertedMat = /* @__PURE__ */ new Matrix4();\n\nconst obb = /* @__PURE__ */ new OrientedBox();\nconst obb2 = /* @__PURE__ */ new OrientedBox();\n\nfunction intersectsGeometry_indirect( bvh, root, otherGeometry, geometryToBvh ) {\n\n\tBufferStack.setBuffer( bvh._roots[ root ] );\n\tconst result = _intersectsGeometry( 0, bvh, otherGeometry, geometryToBvh );\n\tBufferStack.clearBuffer();\n\n\treturn result;\n\n}\n\nfunction _intersectsGeometry( nodeIndex32, bvh, otherGeometry, geometryToBvh, cachedObb = null ) {\n\n\tconst { float32Array, uint16Array, uint32Array } = BufferStack;\n\tlet nodeIndex16 = nodeIndex32 * 2;\n\n\tif ( cachedObb === null ) {\n\n\t\tif ( ! otherGeometry.boundingBox ) {\n\n\t\t\totherGeometry.computeBoundingBox();\n\n\t\t}\n\n\t\tobb.set( otherGeometry.boundingBox.min, otherGeometry.boundingBox.max, geometryToBvh );\n\t\tcachedObb = obb;\n\n\t}\n\n\tconst isLeaf = IS_LEAF( nodeIndex16, uint16Array );\n\tif ( isLeaf ) {\n\n\t\tconst thisGeometry = bvh.geometry;\n\t\tconst thisIndex = thisGeometry.index;\n\t\tconst thisPos = thisGeometry.attributes.position;\n\n\t\tconst otherIndex = otherGeometry.index;\n\t\tconst otherPos = otherGeometry.attributes.position;\n\n\t\tconst offset = OFFSET( nodeIndex32, uint32Array );\n\t\tconst count = COUNT( nodeIndex16, uint16Array );\n\n\t\t// get the inverse of the geometry matrix so we can transform our triangles into the\n\t\t// geometry space we're trying to test. We assume there are fewer triangles being checked\n\t\t// here.\n\t\tinvertedMat.copy( geometryToBvh ).invert();\n\n\t\tif ( otherGeometry.boundsTree ) {\n\n\t\t\t// if there's a bounds tree\n\t\t\tarrayToBox( BOUNDING_DATA_INDEX( nodeIndex32 ), float32Array, obb2 );\n\t\t\tobb2.matrix.copy( invertedMat );\n\t\t\tobb2.needsUpdate = true;\n\n\t\t\t// TODO: use a triangle iteration function here\n\t\t\tconst res = otherGeometry.boundsTree.shapecast( {\n\n\t\t\t\tintersectsBounds: box => obb2.intersectsBox( box ),\n\n\t\t\t\tintersectsTriangle: tri => {\n\n\t\t\t\t\ttri.a.applyMatrix4( geometryToBvh );\n\t\t\t\t\ttri.b.applyMatrix4( geometryToBvh );\n\t\t\t\t\ttri.c.applyMatrix4( geometryToBvh );\n\t\t\t\t\ttri.needsUpdate = true;\n\n\t\t\t\t\tfor ( let i = offset, l = count + offset; i < l; i ++ ) {\n\n\t\t\t\t\t\t// this triangle needs to be transformed into the current BVH coordinate frame\n\t\t\t\t\t\tsetTriangle( triangle2, 3 * bvh.resolveTriangleIndex( i ), thisIndex, thisPos );\n\t\t\t\t\t\ttriangle2.needsUpdate = true;\n\t\t\t\t\t\tif ( tri.intersectsTriangle( triangle2 ) ) {\n\n\t\t\t\t\t\t\treturn true;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\n\t\t\t\t\treturn false;\n\n\t\t\t\t}\n\n\t\t\t} );\n\n\t\t\treturn res;\n\n\t\t} else {\n\n\t\t\t// if we're just dealing with raw geometry\n\t\t\tconst otherTriangleCount = getTriCount( otherGeometry );\n\n\t\t\tfor ( let i = offset, l = count + offset; i < l; i ++ ) {\n\n\t\t\t\t// this triangle needs to be transformed into the current BVH coordinate frame\n\t\t\t\tconst ti = bvh.resolveTriangleIndex( i );\n\t\t\t\tsetTriangle( triangle, 3 * ti, thisIndex, thisPos );\n\n\n\t\t\t\ttriangle.a.applyMatrix4( invertedMat );\n\t\t\t\ttriangle.b.applyMatrix4( invertedMat );\n\t\t\t\ttriangle.c.applyMatrix4( invertedMat );\n\t\t\t\ttriangle.needsUpdate = true;\n\n\t\t\t\tfor ( let i2 = 0, l2 = otherTriangleCount * 3; i2 < l2; i2 += 3 ) {\n\n\t\t\t\t\tsetTriangle( triangle2, i2, otherIndex, otherPos );\n\t\t\t\t\ttriangle2.needsUpdate = true;\n\n\t\t\t\t\tif ( triangle.intersectsTriangle( triangle2 ) ) {\n\n\t\t\t\t\t\treturn true;\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\n\t\t}\n\n\t} else {\n\n\t\tconst left = LEFT_NODE( nodeIndex32 );\n\t\tconst right = RIGHT_NODE( nodeIndex32, uint32Array );\n\n\t\tarrayToBox( BOUNDING_DATA_INDEX( left ), float32Array, boundingBox );\n\t\tconst leftIntersection =\n\t\t\tcachedObb.intersectsBox( boundingBox ) &&\n\t\t\t_intersectsGeometry( left, bvh, otherGeometry, geometryToBvh, cachedObb );\n\n\t\tif ( leftIntersection ) return true;\n\n\t\tarrayToBox( BOUNDING_DATA_INDEX( right ), float32Array, boundingBox );\n\t\tconst rightIntersection =\n\t\t\tcachedObb.intersectsBox( boundingBox ) &&\n\t\t\t_intersectsGeometry( right, bvh, otherGeometry, geometryToBvh, cachedObb );\n\n\t\tif ( rightIntersection ) return true;\n\n\t\treturn false;\n\n\t}\n\n}\n\nexport { intersectsGeometry_indirect };\n"],"names":["boundingBox","Box3","triangle","ExtendedTriangle","triangle2","invertedMat","Matrix4","obb","OrientedBox","obb2","intersectsGeometry_indirect","bvh","root","otherGeometry","geometryToBvh","BufferStack","setBuffer","_roots","result","_intersectsGeometry","clearBuffer","nodeIndex32","cachedObb","float32Array","uint16Array","uint32Array","nodeIndex16","computeBoundingBox","set","min","max","IS_LEAF","left","LEFT_NODE","right","RIGHT_NODE","arrayToBox","BOUNDING_DATA_INDEX","intersectsBox","thisGeometry","geometry","thisIndex","index","thisPos","attributes","position","otherIndex","otherPos","offset","OFFSET","count","COUNT","copy","invert","boundsTree","matrix","needsUpdate","shapecast","intersectsBounds","box","intersectsTriangle","tri","a","applyMatrix4","b","c","i","l","setTriangle","resolveTriangleIndex","otherTriangleCount","getTriCount","ti","i2","l2"],"mappings":"8cAcA,MAAMA,YAA8B,IAAIC,KAClCC,SAA2B,IAAIC,iBAC/BC,UAA4B,IAAID,iBAChCE,YAA8B,IAAIC,QAElCC,IAAsB,IAAIC,YAC1BC,KAAuB,IAAID,YAEjC,SAASE,4BAA6BC,IAAKC,KAAMC,cAAeC,eAE/DC,YAAYC,UAAWL,IAAIM,OAAQL,OACnC,MAAMM,OAASC,oBAAqB,EAAGR,IAAKE,cAAeC,eAG3D,OAFAC,YAAYK,cAELF,MAER,CAEA,SAASC,oBAAqBE,YAAaV,IAAKE,cAAeC,cAAeQ,UAAY,MAEzF,MAAMC,aAAEA,aAAYC,YAAEA,YAAWC,YAAEA,aAAgBV,YACnD,IAAIW,YAA4B,EAAdL,YAgBlB,GAdmB,OAAdC,YAEGT,cAAcb,aAEpBa,cAAcc,qBAIfpB,IAAIqB,IAAKf,cAAcb,YAAY6B,IAAKhB,cAAcb,YAAY8B,IAAKhB,eACvEQ,UAAYf,MAIEwB,QAASL,YAAaF,aA8F9B,CAEN,MAAMQ,KAAOC,UAAWZ,aAClBa,MAAQC,WAAYd,YAAaI,aAOvC,OALAW,WAAYC,oBAAqBL,MAAQT,aAAcvB,gBAEtDsB,UAAUgB,cAAetC,eACzBmB,oBAAqBa,KAAMrB,IAAKE,cAAeC,cAAeQ,cAI/Dc,WAAYC,oBAAqBH,OAASX,aAAcvB,gBAEvDsB,UA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,mBAAwBG,GAAKC,GAAID,IAAM,EAK7D,GAHAL,YAAahE,UAAWqE,GAAI3B,WAAYC,UACxC3C,UAAUoD,aAAc,EAEnBtD,SAAS0D,mBAAoBxD,WAEjC,OAAO,CAMV,CAGD,CAED,CAuBD","x_google_ignoreList":[0]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raycast.generated.js","sources":["../../../../../../../../node_modules/three-mesh-bvh/src/core/cast/raycast.generated.js"],"sourcesContent":["import { intersectRay } from '../utils/intersectUtils.js';\nimport { IS_LEAF, OFFSET, COUNT, LEFT_NODE, RIGHT_NODE } from '../utils/nodeBufferUtils.js';\nimport { BufferStack } from '../utils/BufferStack.js';\nimport { intersectTris } from '../utils/iterationUtils.generated.js';\nimport '../utils/iterationUtils_indirect.generated.js';\n\n/******************************************************/\n/* This file is generated from \"raycast.template.js\". */\n/******************************************************/\n\nfunction raycast( bvh, root, materialOrSide, ray, intersects, near, far ) {\n\n\tBufferStack.setBuffer( bvh._roots[ root ] );\n\t_raycast( 0, bvh, materialOrSide, ray, intersects, near, far );\n\tBufferStack.clearBuffer();\n\n}\n\nfunction _raycast( nodeIndex32, bvh, materialOrSide, ray, intersects, near, far ) {\n\n\tconst { float32Array, uint16Array, uint32Array } = BufferStack;\n\tconst nodeIndex16 = nodeIndex32 * 2;\n\tconst isLeaf = IS_LEAF( nodeIndex16, uint16Array );\n\tif ( isLeaf ) {\n\n\t\tconst offset = OFFSET( nodeIndex32, uint32Array );\n\t\tconst count = COUNT( nodeIndex16, uint16Array );\n\n\n\t\tintersectTris( bvh, materialOrSide, ray, offset, count, intersects, near, far );\n\n\n\t} else {\n\n\t\tconst leftIndex = LEFT_NODE( nodeIndex32 );\n\t\tif ( intersectRay( leftIndex, float32Array, ray, near, far ) ) {\n\n\t\t\t_raycast( leftIndex, bvh, materialOrSide, ray, intersects, near, far );\n\n\t\t}\n\n\t\tconst rightIndex = RIGHT_NODE( nodeIndex32, uint32Array );\n\t\tif ( intersectRay( rightIndex, float32Array, ray, near, far ) ) {\n\n\t\t\t_raycast( rightIndex, bvh, materialOrSide, ray, intersects, near, far );\n\n\t\t}\n\n\t}\n\n}\n\nexport { raycast };\n"],"names":["raycast","bvh","root","materialOrSide","ray","intersects","near","far","BufferStack","setBuffer","_roots","_raycast","clearBuffer","nodeIndex32","float32Array","uint16Array","uint32Array","nodeIndex16","IS_LEAF","offset","OFFSET","count","COUNT","intersectTris","leftIndex","LEFT_NODE","intersectRay","rightIndex","RIGHT_NODE"],"mappings":"yPAUA,SAASA,QAASC,IAAKC,KAAMC,eAAgBC,IAAKC,WAAYC,KAAMC,KAEnEC,YAAYC,UAAWR,IAAIS,OAAQR,OACnCS,SAAU,EAAGV,IAAKE,eAAgBC,IAAKC,WAAYC,KAAMC,KACzDC,YAAYI,aAEb,CAEA,SAASD,SAAUE,YAAaZ,IAAKE,eAAgBC,IAAKC,WAAYC,KAAMC,KAE3E,MAAMO,aAAEA,aAAYC,YAAEA,YAAWC,YAAEA,aAAgBR,YAC7CS,YAA4B,EAAdJ,YAEpB,GADeK,QAASD,YAAaF,aACvB,CAEb,MAAMI,OAASC,OAAQP,YAAaG,aAC9BK,MAAQC,MAAOL,YAAaF,aAGlCQ,cAAetB,IAAKE,eAAgBC,IAAKe,OAAQE,MAAOhB,WAAYC,KAAMC,IAG3E,KAAO,CAEN,MAAMiB,UAAYC,UAAWZ,aACxBa,aAAcF,UAAWV,aAAcV,IAAKE,KAAMC,MAEtDI,SAAUa,UAAWvB,IAAKE,eAAgBC,IAAKC,WAAYC,KAAMC,KAIlE,MAAMoB,WAAaC,WAAYf,YAAaG,aACvCU,aAAcC,WAAYb,aAAcV,IAAKE,KAAMC,MAEvDI,SAAUgB,WAAY1B,IAAKE,eAAgBC,IAAKC,WAAYC,KAAMC,IAIpE,CAED","x_google_ignoreList":[0]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raycastFirst.generated.js","sources":["../../../../../../../../node_modules/three-mesh-bvh/src/core/cast/raycastFirst.generated.js"],"sourcesContent":["import { IS_LEAF, OFFSET, COUNT, SPLIT_AXIS, LEFT_NODE, RIGHT_NODE } from '../utils/nodeBufferUtils.js';\nimport { BufferStack } from '../utils/BufferStack.js';\nimport { intersectRay } from '../utils/intersectUtils.js';\nimport { intersectClosestTri } from '../utils/iterationUtils.generated.js';\nimport '../utils/iterationUtils_indirect.generated.js';\n\n/***********************************************************/\n/* This file is generated from \"raycastFirst.template.js\". */\n/***********************************************************/\n\nconst _xyzFields = [ 'x', 'y', 'z' ];\n\nfunction raycastFirst( bvh, root, materialOrSide, ray, near, far ) {\n\n\tBufferStack.setBuffer( bvh._roots[ root ] );\n\tconst result = _raycastFirst( 0, bvh, materialOrSide, ray, near, far );\n\tBufferStack.clearBuffer();\n\n\treturn result;\n\n}\n\nfunction _raycastFirst( nodeIndex32, bvh, materialOrSide, ray, near, far ) {\n\n\tconst { float32Array, uint16Array, uint32Array } = BufferStack;\n\tlet nodeIndex16 = nodeIndex32 * 2;\n\n\tconst isLeaf = IS_LEAF( nodeIndex16, uint16Array );\n\tif ( isLeaf ) {\n\n\t\tconst offset = OFFSET( nodeIndex32, uint32Array );\n\t\tconst count = COUNT( nodeIndex16, uint16Array );\n\n\n\t\t// eslint-disable-next-line no-unreachable\n\t\treturn intersectClosestTri( bvh, materialOrSide, ray, offset, count, near, far );\n\n\n\t} else {\n\n\t\t// consider the position of the split plane with respect to the oncoming ray; whichever direction\n\t\t// the ray is coming from, look for an intersection among that side of the tree first\n\t\tconst splitAxis = SPLIT_AXIS( nodeIndex32, uint32Array );\n\t\tconst xyzAxis = _xyzFields[ splitAxis ];\n\t\tconst rayDir = ray.direction[ xyzAxis ];\n\t\tconst leftToRight = rayDir >= 0;\n\n\t\t// c1 is the child to check first\n\t\tlet c1, c2;\n\t\tif ( leftToRight ) {\n\n\t\t\tc1 = LEFT_NODE( nodeIndex32 );\n\t\t\tc2 = RIGHT_NODE( nodeIndex32, uint32Array );\n\n\t\t} else {\n\n\t\t\tc1 = RIGHT_NODE( nodeIndex32, uint32Array );\n\t\t\tc2 = LEFT_NODE( nodeIndex32 );\n\n\t\t}\n\n\t\tconst c1Intersection = intersectRay( c1, float32Array, ray, near, far );\n\t\tconst c1Result = c1Intersection ? _raycastFirst( c1, bvh, materialOrSide, ray, near, far ) : null;\n\n\t\t// if we got an intersection in the first node and it's closer than the second node's bounding\n\t\t// box, we don't need to consider the second node because it couldn't possibly be a better result\n\t\tif ( c1Result ) {\n\n\t\t\t// check if the point is within the second bounds\n\t\t\t// \"point\" is in the local frame of the bvh\n\t\t\tconst point = c1Result.point[ xyzAxis ];\n\t\t\tconst isOutside = leftToRight ?\n\t\t\t\tpoint <= float32Array[ c2 + splitAxis ] : // min bounding data\n\t\t\t\tpoint >= float32Array[ c2 + splitAxis + 3 ]; // max bounding data\n\n\t\t\tif ( isOutside ) {\n\n\t\t\t\treturn c1Result;\n\n\t\t\t}\n\n\t\t}\n\n\t\t// either there was no intersection in the first node, or there could still be a closer\n\t\t// intersection in the second, so check the second node and then take the better of the two\n\t\tconst c2Intersection = intersectRay( c2, float32Array, ray, near, far );\n\t\tconst c2Result = c2Intersection ? _raycastFirst( c2, bvh, materialOrSide, ray, near, far ) : null;\n\n\t\tif ( c1Result && c2Result ) {\n\n\t\t\treturn c1Result.distance <= c2Result.distance ? c1Result : c2Result;\n\n\t\t} else {\n\n\t\t\treturn c1Result || c2Result || null;\n\n\t\t}\n\n\t}\n\n}\n\nexport { raycastFirst };\n"],"names":["_xyzFields","raycastFirst","bvh","root","materialOrSide","ray","near","far","BufferStack","setBuffer","_roots","result","_raycastFirst","clearBuffer","nodeIndex32","float32Array","uint16Array","uint32Array","nodeIndex16","IS_LEAF","offset","OFFSET","count","COUNT","intersectClosestTri","splitAxis","SPLIT_AXIS","xyzAxis","leftToRight","direction","c1","c2","LEFT_NODE","RIGHT_NODE","c1Result","intersectRay","point","c2Result","distance"],"mappings":"0QAUA,MAAMA,WAAa,CAAE,IAAK,IAAK,KAE/B,SAASC,aAAcC,I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_ignoreList":[0]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raycastFirst_indirect.generated.js","sources":["../../../../../../../../node_modules/three-mesh-bvh/src/core/cast/raycastFirst_indirect.generated.js"],"sourcesContent":["import { IS_LEAF, OFFSET, COUNT, SPLIT_AXIS, LEFT_NODE, RIGHT_NODE } from '../utils/nodeBufferUtils.js';\nimport { BufferStack } from '../utils/BufferStack.js';\nimport { intersectRay } from '../utils/intersectUtils.js';\nimport '../utils/iterationUtils.generated.js';\nimport { intersectClosestTri_indirect } from '../utils/iterationUtils_indirect.generated.js';\n\n/***********************************************************/\n/* This file is generated from \"raycastFirst.template.js\". */\n/***********************************************************/\n\nconst _xyzFields = [ 'x', 'y', 'z' ];\n\nfunction raycastFirst_indirect( bvh, root, materialOrSide, ray, near, far ) {\n\n\tBufferStack.setBuffer( bvh._roots[ root ] );\n\tconst result = _raycastFirst( 0, bvh, materialOrSide, ray, near, far );\n\tBufferStack.clearBuffer();\n\n\treturn result;\n\n}\n\nfunction _raycastFirst( nodeIndex32, bvh, materialOrSide, ray, near, far ) {\n\n\tconst { float32Array, uint16Array, uint32Array } = BufferStack;\n\tlet nodeIndex16 = nodeIndex32 * 2;\n\n\tconst isLeaf = IS_LEAF( nodeIndex16, uint16Array );\n\tif ( isLeaf ) {\n\n\t\tconst offset = OFFSET( nodeIndex32, uint32Array );\n\t\tconst count = COUNT( nodeIndex16, uint16Array );\n\n\t\treturn intersectClosestTri_indirect( bvh, materialOrSide, ray, offset, count, near, far );\n\n\n\t} else {\n\n\t\t// consider the position of the split plane with respect to the oncoming ray; whichever direction\n\t\t// the ray is coming from, look for an intersection among that side of the tree first\n\t\tconst splitAxis = SPLIT_AXIS( nodeIndex32, uint32Array );\n\t\tconst xyzAxis = _xyzFields[ splitAxis ];\n\t\tconst rayDir = ray.direction[ xyzAxis ];\n\t\tconst leftToRight = rayDir >= 0;\n\n\t\t// c1 is the child to check first\n\t\tlet c1, c2;\n\t\tif ( leftToRight ) {\n\n\t\t\tc1 = LEFT_NODE( nodeIndex32 );\n\t\t\tc2 = RIGHT_NODE( nodeIndex32, uint32Array );\n\n\t\t} else {\n\n\t\t\tc1 = RIGHT_NODE( nodeIndex32, uint32Array );\n\t\t\tc2 = LEFT_NODE( nodeIndex32 );\n\n\t\t}\n\n\t\tconst c1Intersection = intersectRay( c1, float32Array, ray, near, far );\n\t\tconst c1Result = c1Intersection ? _raycastFirst( c1, bvh, materialOrSide, ray, near, far ) : null;\n\n\t\t// if we got an intersection in the first node and it's closer than the second node's bounding\n\t\t// box, we don't need to consider the second node because it couldn't possibly be a better result\n\t\tif ( c1Result ) {\n\n\t\t\t// check if the point is within the second bounds\n\t\t\t// \"point\" is in the local frame of the bvh\n\t\t\tconst point = c1Result.point[ xyzAxis ];\n\t\t\tconst isOutside = leftToRight ?\n\t\t\t\tpoint <= float32Array[ c2 + splitAxis ] : // min bounding data\n\t\t\t\tpoint >= float32Array[ c2 + splitAxis + 3 ]; // max bounding data\n\n\t\t\tif ( isOutside ) {\n\n\t\t\t\treturn c1Result;\n\n\t\t\t}\n\n\t\t}\n\n\t\t// either there was no intersection in the first node, or there could still be a closer\n\t\t// intersection in the second, so check the second node and then take the better of the two\n\t\tconst c2Intersection = intersectRay( c2, float32Array, ray, near, far );\n\t\tconst c2Result = c2Intersection ? _raycastFirst( c2, bvh, materialOrSide, ray, near, far ) : null;\n\n\t\tif ( c1Result && c2Result ) {\n\n\t\t\treturn c1Result.distance <= c2Result.distance ? c1Result : c2Result;\n\n\t\t} else {\n\n\t\t\treturn c1Result || c2Result || null;\n\n\t\t}\n\n\t}\n\n}\n\nexport { raycastFirst_indirect };\n"],"names":["_xyzFields","raycastFirst_indirect","bvh","root","materialOrSide","ray","near","far","BufferStack","setBuffer","_roots","result","_raycastFirst","clearBuffer","nodeIndex32","float32Array","uint16Array","uint32Array","nodeIndex16","IS_LEAF","offset","OFFSET","count","COUNT","intersectClosestTri_indirect","splitAxis","SPLIT_AXIS","xyzAxis","leftToRight","dire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BC,IAAKC,KAAMC,KAAQ,KAE7F,OAAK2B,UAAYG,SAETH,SAASI,UAAYD,SAASC,SAAWJ,SAAWG,SAIpDH,UAAYG,UAAY,IAIjC,CAED","x_google_ignoreList":[0]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raycast_indirect.generated.js","sources":["../../../../../../../../node_modules/three-mesh-bvh/src/core/cast/raycast_indirect.generated.js"],"sourcesContent":["import { intersectRay } from '../utils/intersectUtils.js';\nimport { IS_LEAF, OFFSET, COUNT, LEFT_NODE, RIGHT_NODE } from '../utils/nodeBufferUtils.js';\nimport { BufferStack } from '../utils/BufferStack.js';\nimport '../utils/iterationUtils.generated.js';\nimport { intersectTris_indirect } from '../utils/iterationUtils_indirect.generated.js';\n\n/******************************************************/\n/* This file is generated from \"raycast.template.js\". */\n/******************************************************/\n\nfunction raycast_indirect( bvh, root, materialOrSide, ray, intersects, near, far ) {\n\n\tBufferStack.setBuffer( bvh._roots[ root ] );\n\t_raycast( 0, bvh, materialOrSide, ray, intersects, near, far );\n\tBufferStack.clearBuffer();\n\n}\n\nfunction _raycast( nodeIndex32, bvh, materialOrSide, ray, intersects, near, far ) {\n\n\tconst { float32Array, uint16Array, uint32Array } = BufferStack;\n\tconst nodeIndex16 = nodeIndex32 * 2;\n\tconst isLeaf = IS_LEAF( nodeIndex16, uint16Array );\n\tif ( isLeaf ) {\n\n\t\tconst offset = OFFSET( nodeIndex32, uint32Array );\n\t\tconst count = COUNT( nodeIndex16, uint16Array );\n\n\t\tintersectTris_indirect( bvh, materialOrSide, ray, offset, count, intersects, near, far );\n\n\n\t} else {\n\n\t\tconst leftIndex = LEFT_NODE( nodeIndex32 );\n\t\tif ( intersectRay( leftIndex, float32Array, ray, near, far ) ) {\n\n\t\t\t_raycast( leftIndex, bvh, materialOrSide, ray, intersects, near, far );\n\n\t\t}\n\n\t\tconst rightIndex = RIGHT_NODE( nodeIndex32, uint32Array );\n\t\tif ( intersectRay( rightIndex, float32Array, ray, near, far ) ) {\n\n\t\t\t_raycast( rightIndex, bvh, materialOrSide, ray, intersects, near, far );\n\n\t\t}\n\n\t}\n\n}\n\nexport { raycast_indirect };\n"],"names":["raycast_indirect","bvh","root","materialOrSide","ray","intersects","near","far","BufferStack","setBuffer","_roots","_raycast","clearBuffer","nodeIndex32","float32Array","uint16Array","uint32Array","nodeIndex16","IS_LEAF","offset","OFFSET","count","COUNT","intersectTris_indirect","leftIndex","LEFT_NODE","intersectRay","rightIndex","RIGHT_NODE"],"mappings":"2QAUA,SAASA,iBAAkBC,IAAKC,KAAMC,eAAgBC,IAAKC,WAAYC,KAAMC,KAE5EC,YAAYC,UAAWR,IAAIS,OAAQR,OACnCS,SAAU,EAAGV,IAAKE,eAAgBC,IAAKC,WAAYC,KAAMC,KACzDC,YAAYI,aAEb,CAEA,SAASD,SAAUE,YAAaZ,IAAKE,eAAgBC,IAAKC,WAAYC,KAAMC,KAE3E,MAAMO,aAAEA,aAAYC,YAAEA,YAAWC,YAAEA,aAAgBR,YAC7CS,YAA4B,EAAdJ,YAEpB,GADeK,QAASD,YAAaF,aACvB,CAEb,MAAMI,OAASC,OAAQP,YAAaG,aAC9BK,MAAQC,MAAOL,YAAaF,aAElCQ,uBAAwBtB,IAAKE,eAAgBC,IAAKe,OAAQE,MAAOhB,WAAYC,KAAMC,IAGpF,KAAO,CAEN,MAAMiB,UAAYC,UAAWZ,aACxBa,aAAcF,UAAWV,aAAcV,IAAKE,KAAMC,MAEtDI,SAAUa,UAAWvB,IAAKE,eAAgBC,IAAKC,WAAYC,KAAMC,KAIlE,MAAMoB,WAAaC,WAAYf,YAAaG,aACvCU,aAAcC,WAAYb,aAAcV,IAAKE,KAAMC,MAEvDI,SAAUgB,WAAY1B,IAAKE,eAAgBC,IAAKC,WAAYC,KAAMC,IAIpE,CAED","x_google_ignoreList":[0]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refit.generated.js","sources":["../../../../../../../../node_modules/three-mesh-bvh/src/core/cast/refit.generated.js"],"sourcesContent":["import { UINT32_PER_NODE, BYTES_PER_NODE } from '../Constants.js';\nimport { IS_LEAF, LEFT_NODE, RIGHT_NODE } from '../utils/nodeBufferUtils.js';\n\n/****************************************************/\n/* This file is generated from \"refit.template.js\". */\n/****************************************************/\n\nfunction refit( bvh, nodeIndices = null ) {\n\n\tif ( nodeIndices && Array.isArray( nodeIndices ) ) {\n\n\t\tnodeIndices = new Set( nodeIndices );\n\n\t}\n\n\tconst geometry = bvh.geometry;\n\tconst indexArr = geometry.index ? geometry.index.array : null;\n\tconst posAttr = geometry.attributes.position;\n\n\tlet buffer, uint32Array, uint16Array, float32Array;\n\tlet byteOffset = 0;\n\tconst roots = bvh._roots;\n\tfor ( let i = 0, l = roots.length; i < l; i ++ ) {\n\n\t\tbuffer = roots[ i ];\n\t\tuint32Array = new Uint32Array( buffer );\n\t\tuint16Array = new Uint16Array( buffer );\n\t\tfloat32Array = new Float32Array( buffer );\n\n\t\t_traverse( 0, byteOffset );\n\t\tbyteOffset += buffer.byteLength;\n\n\t}\n\n\tfunction _traverse( nodeIndex32, byteOffset, force = false ) {\n\n\t\tconst nodeIndex16 = nodeIndex32 * 2;\n\t\tif ( IS_LEAF( nodeIndex16, uint16Array ) ) {\n\n\t\t\tconst offset = uint32Array[ nodeIndex32 + 6 ];\n\t\t\tconst count = uint16Array[ nodeIndex16 + 14 ];\n\n\t\t\tlet minx = Infinity;\n\t\t\tlet miny = Infinity;\n\t\t\tlet minz = Infinity;\n\t\t\tlet maxx = - Infinity;\n\t\t\tlet maxy = - Infinity;\n\t\t\tlet maxz = - Infinity;\n\n\n\t\t\tfor ( let i = 3 * offset, l = 3 * ( offset + count ); i < l; i ++ ) {\n\n\t\t\t\tlet index = indexArr[ i ];\n\t\t\t\tconst x = posAttr.getX( index );\n\t\t\t\tconst y = posAttr.getY( index );\n\t\t\t\tconst z = posAttr.getZ( index );\n\n\t\t\t\tif ( x < minx ) minx = x;\n\t\t\t\tif ( x > maxx ) maxx = x;\n\n\t\t\t\tif ( y < miny ) miny = y;\n\t\t\t\tif ( y > maxy ) maxy = y;\n\n\t\t\t\tif ( z < minz ) minz = z;\n\t\t\t\tif ( z > maxz ) maxz = z;\n\n\t\t\t}\n\n\n\t\t\tif (\n\t\t\t\tfloat32Array[ nodeIndex32 + 0 ] !== minx ||\n\t\t\t\tfloat32Array[ nodeIndex32 + 1 ] !== miny ||\n\t\t\t\tfloat32Array[ nodeIndex32 + 2 ] !== minz ||\n\n\t\t\t\tfloat32Array[ nodeIndex32 + 3 ] !== maxx ||\n\t\t\t\tfloat32Array[ nodeIndex32 + 4 ] !== maxy ||\n\t\t\t\tfloat32Array[ nodeIndex32 + 5 ] !== maxz\n\t\t\t) {\n\n\t\t\t\tfloat32Array[ nodeIndex32 + 0 ] = minx;\n\t\t\t\tfloat32Array[ nodeIndex32 + 1 ] = miny;\n\t\t\t\tfloat32Array[ nodeIndex32 + 2 ] = minz;\n\n\t\t\t\tfloat32Array[ nodeIndex32 + 3 ] = maxx;\n\t\t\t\tfloat32Array[ nodeIndex32 + 4 ] = maxy;\n\t\t\t\tfloat32Array[ nodeIndex32 + 5 ] = maxz;\n\n\t\t\t\treturn true;\n\n\t\t\t} else {\n\n\t\t\t\treturn false;\n\n\t\t\t}\n\n\t\t} else {\n\n\t\t\tconst left = LEFT_NODE( nodeIndex32 );\n\t\t\tconst right = RIGHT_NODE( nodeIndex32, uint32Array );\n\n\t\t\t// the identifying node indices provided by the shapecast function include offsets of all\n\t\t\t// root buffers to guarantee they're unique between roots so offset left and right indices here.\n\t\t\tlet forceChildren = force;\n\t\t\tlet includesLeft = false;\n\t\t\tlet includesRight = false;\n\n\t\t\tif ( nodeIndices ) {\n\n\t\t\t\t// if we see that neither the left or right child are included in the set that need to be updated\n\t\t\t\t// then we assume that all children need to be updated.\n\t\t\t\tif ( ! forceChildren ) {\n\n\t\t\t\t\tconst leftNodeId = left / UINT32_PER_NODE + byteOffset / BYTES_PER_NODE;\n\t\t\t\t\tconst rightNodeId = right / UINT32_PER_NODE + byteOffset / BYTES_PER_NODE;\n\t\t\t\t\tincludesLeft = nodeIndices.has( leftNodeId );\n\t\t\t\t\tincludesRight = nodeIndices.has( rightNodeId );\n\t\t\t\t\tforceChildren = ! includesLeft && ! includesRight;\n\n\t\t\t\t}\n\n\t\t\t} else {\n\n\t\t\t\tincludesLeft = true;\n\t\t\t\tincludesRight = true;\n\n\t\t\t}\n\n\t\t\tconst traverseLeft = forceChildren || includesLeft;\n\t\t\tconst traverseRight = forceChildren || includesRight;\n\n\t\t\tlet leftChange = false;\n\t\t\tif ( traverseLeft ) {\n\n\t\t\t\tleftChange = _traverse( left, byteOffset, forceChildren );\n\n\t\t\t}\n\n\t\t\tlet rightChange = false;\n\t\t\tif ( traverseRight ) {\n\n\t\t\t\trightChange = _traverse( right, byteOffset, forceChildren );\n\n\t\t\t}\n\n\t\t\tconst didChange = leftChange || rightChange;\n\t\t\tif ( didChange ) {\n\n\t\t\t\tfor ( let i = 0; i < 3; i ++ ) {\n\n\t\t\t\t\tconst left_i = left + i;\n\t\t\t\t\tconst right_i = right + i;\n\t\t\t\t\tconst minLeftValue = float32Array[ left_i ];\n\t\t\t\t\tconst maxLeftValue = float32Array[ left_i + 3 ];\n\t\t\t\t\tconst minRightValue = float32Array[ right_i ];\n\t\t\t\t\tconst maxRightValue = float32Array[ right_i + 3 ];\n\n\t\t\t\t\tfloat32Array[ nodeIndex32 + i ] = minLeftValue < minRightValue ? minLeftValue : minRightValue;\n\t\t\t\t\tfloat32Array[ nodeIndex32 + i + 3 ] = maxLeftValue > maxRightValue ? maxLeftValue : maxRightValue;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\treturn didChange;\n\n\t\t}\n\n\t}\n\n}\n\nexport { refit };\n"],"names":["refit","bvh","nodeIndices","Array","isArray","Set","geometry","indexArr","index","array","posAttr","attributes","position","buffer","uint32Array","uint16Array","float32Array","byteOffset","roots","_roots","i","l","length","Uint32Array","Uint16Array","Float32Array","_traverse","byteLength","nodeIndex32","force","nodeIndex16","IS_LEAF","offset","minx","Infinity","miny","minz","maxx","maxy","maxz","x","getX","y","getY","z","getZ","left","LEFT_NODE","right","RIGHT_NODE","forceChildren","includesLeft","includesRight","rightNodeId","UINT32_PER_NODE","BYTES_PER_NODE","has","traverseRight","leftChange","rightChange","didChange","left_i","right_i","minLeftValue","maxLeftValue","minRightValue","maxRightValue"],"mappings":"kIAOA,SAASA,MAAOC,IAAKC,YAAc,MAE7BA,aAAeC,MAAMC,QAASF,eAElCA,YAAc,IAAIG,IAAKH,cAIxB,MAAMI,SAAWL,IAAIK,SACfC,SAAWD,SAASE,MAAQF,SAASE,MAAMC,MAAQ,KACnDC,QAAUJ,SAASK,WAAWC,SAEpC,IAAIC,OAAQC,YAAaC,YAAaC,aAClCC,WAAa,EACjB,MAAMC,MAAQjB,IAAIkB,OAClB,IAAM,IAAIC,EAAI,EAAGC,EAAIH,MAAMI,OAAQF,EAAIC,EAAGD,IAEzCP,OAASK,MAAOE,GAChBN,YAAc,IAAIS,YAAaV,QAC/BE,YAAc,IAAIS,YAAaX,QAC/BG,aAAe,IAAIS,aAAcZ,QAEjCa,UAAW,EAAGT,YACdA,YAAcJ,OAAOc,WAItB,SAASD,UAAWE,YAAaX,WAAYY,OAAQ,GAEpD,MAAMC,YAA4B,EAAdF,YACpB,GAAKG,QAASD,YAAaf,aAAgB,CAE1C,MAAMiB,OAASlB,YAAac,YAAc,GAG1C,IAAIK,KAAOC,IACPC,KAAOD,IACPE,KAAOF,IACPG,MAAO,IACPC,MAAO,IACPC,MAAO,IAGX,IAAM,IAAInB,EAAI,EAAIY,OAAQX,EAAI,GAAMW,OAVtBjB,YAAae,YAAc,KAUaV,EAAIC,EAAGD,IAAO,CAEnE,IAAIZ,MAAQD,SAAUa,GACtB,MAAMoB,EAAI9B,QAAQ+B,KAAMjC,OAClBkC,EAAIhC,QAAQiC,KAAMnC,OAClBoC,EAAIlC,QAAQmC,KAAMrC,OAEnBgC,EAAIP,OAAOA,KAAOO,GAClB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G,aAAehD,aAAc6C,OAAS,GACtCI,cAAgBjD,aAAc8C,SAC9BI,cAAgBlD,aAAc8C,QAAU,GAE9C9C,aAAcY,YAAcR,GAAM2C,aAAeE,cAAgBF,aAAeE,cAChFjD,aAAcY,YAAcR,EAAI,GAAM4C,aAAeE,cAAgBF,aAAeE,aAErF,CAID,OAAON,SAER,CAED,CAED","x_google_ignoreList":[0]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"refit_indirect.generated.js","sources":["../../../../../../../../node_modules/three-mesh-bvh/src/core/cast/refit_indirect.generated.js"],"sourcesContent":["import { UINT32_PER_NODE, BYTES_PER_NODE } from '../Constants.js';\nimport { IS_LEAF, LEFT_NODE, RIGHT_NODE } from '../utils/nodeBufferUtils.js';\n\n/****************************************************/\n/* This file is generated from \"refit.template.js\". */\n/****************************************************/\n\nfunction refit_indirect( bvh, nodeIndices = null ) {\n\n\tif ( nodeIndices && Array.isArray( nodeIndices ) ) {\n\n\t\tnodeIndices = new Set( nodeIndices );\n\n\t}\n\n\tconst geometry = bvh.geometry;\n\tconst indexArr = geometry.index ? geometry.index.array : null;\n\tconst posAttr = geometry.attributes.position;\n\n\tlet buffer, uint32Array, uint16Array, float32Array;\n\tlet byteOffset = 0;\n\tconst roots = bvh._roots;\n\tfor ( let i = 0, l = roots.length; i < l; i ++ ) {\n\n\t\tbuffer = roots[ i ];\n\t\tuint32Array = new Uint32Array( buffer );\n\t\tuint16Array = new Uint16Array( buffer );\n\t\tfloat32Array = new Float32Array( buffer );\n\n\t\t_traverse( 0, byteOffset );\n\t\tbyteOffset += buffer.byteLength;\n\n\t}\n\n\tfunction _traverse( nodeIndex32, byteOffset, force = false ) {\n\n\t\tconst nodeIndex16 = nodeIndex32 * 2;\n\t\tif ( IS_LEAF( nodeIndex16, uint16Array ) ) {\n\n\t\t\tconst offset = uint32Array[ nodeIndex32 + 6 ];\n\t\t\tconst count = uint16Array[ nodeIndex16 + 14 ];\n\n\t\t\tlet minx = Infinity;\n\t\t\tlet miny = Infinity;\n\t\t\tlet minz = Infinity;\n\t\t\tlet maxx = - Infinity;\n\t\t\tlet maxy = - Infinity;\n\t\t\tlet maxz = - Infinity;\n\n\t\t\tfor ( let i = offset, l = offset + count; i < l; i ++ ) {\n\n\t\t\t\tconst t = 3 * bvh.resolveTriangleIndex( i );\n\t\t\t\tfor ( let j = 0; j < 3; j ++ ) {\n\n\t\t\t\t\tlet index = t + j;\n\t\t\t\t\tindex = indexArr ? indexArr[ index ] : index;\n\n\t\t\t\t\tconst x = posAttr.getX( index );\n\t\t\t\t\tconst y = posAttr.getY( index );\n\t\t\t\t\tconst z = posAttr.getZ( index );\n\n\t\t\t\t\tif ( x < minx ) minx = x;\n\t\t\t\t\tif ( x > maxx ) maxx = x;\n\n\t\t\t\t\tif ( y < miny ) miny = y;\n\t\t\t\t\tif ( y > maxy ) maxy = y;\n\n\t\t\t\t\tif ( z < minz ) minz = z;\n\t\t\t\t\tif ( z > maxz ) maxz = z;\n\n\n\t\t\t\t}\n\n\t\t\t}\n\n\n\t\t\tif (\n\t\t\t\tfloat32Array[ nodeIndex32 + 0 ] !== minx ||\n\t\t\t\tfloat32Array[ nodeIndex32 + 1 ] !== miny ||\n\t\t\t\tfloat32Array[ nodeIndex32 + 2 ] !== minz ||\n\n\t\t\t\tfloat32Array[ nodeIndex32 + 3 ] !== maxx ||\n\t\t\t\tfloat32Array[ nodeIndex32 + 4 ] !== maxy ||\n\t\t\t\tfloat32Array[ nodeIndex32 + 5 ] !== maxz\n\t\t\t) {\n\n\t\t\t\tfloat32Array[ nodeIndex32 + 0 ] = minx;\n\t\t\t\tfloat32Array[ nodeIndex32 + 1 ] = miny;\n\t\t\t\tfloat32Array[ nodeIndex32 + 2 ] = minz;\n\n\t\t\t\tfloat32Array[ nodeIndex32 + 3 ] = maxx;\n\t\t\t\tfloat32Array[ nodeIndex32 + 4 ] = maxy;\n\t\t\t\tfloat32Array[ nodeIndex32 + 5 ] = maxz;\n\n\t\t\t\treturn true;\n\n\t\t\t} else {\n\n\t\t\t\treturn false;\n\n\t\t\t}\n\n\t\t} else {\n\n\t\t\tconst left = LEFT_NODE( nodeIndex32 );\n\t\t\tconst right = RIGHT_NODE( nodeIndex32, uint32Array );\n\n\t\t\t// the identifying node indices provided by the shapecast function include offsets of all\n\t\t\t// root buffers to guarantee they're unique between roots so offset left and right indices here.\n\t\t\tlet forceChildren = force;\n\t\t\tlet includesLeft = false;\n\t\t\tlet includesRight = false;\n\n\t\t\tif ( nodeIndices ) {\n\n\t\t\t\t// if we see that neither the left or right child are included in the set that need to be updated\n\t\t\t\t// then we assume that all children need to be updated.\n\t\t\t\tif ( ! forceChildren ) {\n\n\t\t\t\t\tconst leftNodeId = left / UINT32_PER_NODE + byteOffset / BYTES_PER_NODE;\n\t\t\t\t\tconst rightNodeId = right / UINT32_PER_NODE + byteOffset / BYTES_PER_NODE;\n\t\t\t\t\tincludesLeft = nodeIndices.has( leftNodeId );\n\t\t\t\t\tincludesRight = nodeIndices.has( rightNodeId );\n\t\t\t\t\tforceChildren = ! includesLeft && ! includesRight;\n\n\t\t\t\t}\n\n\t\t\t} else {\n\n\t\t\t\tincludesLeft = true;\n\t\t\t\tincludesRight = true;\n\n\t\t\t}\n\n\t\t\tconst traverseLeft = forceChildren || includesLeft;\n\t\t\tconst traverseRight = forceChildren || includesRight;\n\n\t\t\tlet leftChange = false;\n\t\t\tif ( traverseLeft ) {\n\n\t\t\t\tleftChange = _traverse( left, byteOffset, forceChildren );\n\n\t\t\t}\n\n\t\t\tlet rightChange = false;\n\t\t\tif ( traverseRight ) {\n\n\t\t\t\trightChange = _traverse( right, byteOffset, forceChildren );\n\n\t\t\t}\n\n\t\t\tconst didChange = leftChange || rightChange;\n\t\t\tif ( didChange ) {\n\n\t\t\t\tfor ( let i = 0; i < 3; i ++ ) {\n\n\t\t\t\t\tconst left_i = left + i;\n\t\t\t\t\tconst right_i = right + i;\n\t\t\t\t\tconst minLeftValue = float32Array[ left_i ];\n\t\t\t\t\tconst maxLeftValue = float32Array[ left_i + 3 ];\n\t\t\t\t\tconst minRightValue = float32Array[ right_i ];\n\t\t\t\t\tconst maxRightValue = float32Array[ right_i + 3 ];\n\n\t\t\t\t\tfloat32Array[ nodeIndex32 + i ] = minLeftValue < minRightValue ? minLeftValue : minRightValue;\n\t\t\t\t\tfloat32Array[ nodeIndex32 + i + 3 ] = maxLeftValue > maxRightValue ? maxLeftValue : maxRightValue;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\treturn didChange;\n\n\t\t}\n\n\t}\n\n}\n\nexport { refit_indirect };\n"],"names":["refit_indirect","bvh","nodeIndices","Array","isArray","Set","geometry","indexArr","index","array","posAttr","attributes","position","buffer","uint32Array","uint16Array","float32Array","byteOffset","roots","_roots","i","l","length","Uint32Array","Uint16Array","Float32Array","_traverse","byteLength","nodeIndex32","force","nodeIndex16","IS_LEAF","offset","minx","Infinity","miny","minz","maxx","maxy","maxz","t","resolveTriangleIndex","j","x","getX","y","getY","z","getZ","left","LEFT_NODE","right","RIGHT_NODE","forceChildren","includesLeft","includesRight","rightNodeId","UINT32_PER_NODE","BYTES_PER_NODE","has","traverseRight","leftChange","rightChange","didChange","left_i","right_i","minLeftValue","maxLeftValue","minRightValue","maxRightValue"],"mappings":"kIAOA,SAASA,eAAgBC,IAAKC,YAAc,MAEtCA,aAAeC,MAAMC,QAASF,eAElCA,YAAc,IAAIG,IAAKH,cAIxB,MAAMI,SAAWL,IAAIK,SACfC,SAAWD,SAASE,MAAQF,SAASE,MAAMC,MAAQ,KACnDC,QAAUJ,SAASK,WAAWC,SAEpC,IAAIC,OAAQC,YAAaC,YAAaC,aAClCC,WAAa,EACjB,MAAMC,MAAQjB,IAAIkB,OAClB,IAAM,IAAIC,EAAI,EAAGC,EAAIH,MAAMI,OAAQF,EAAIC,EAAGD,IAEzCP,OAASK,MAAOE,GAChBN,YAAc,IAAIS,YAAaV,QAC/BE,YAAc,IAAIS,YAAaX,QAC/BG,aAAe,IAAIS,aAAcZ,QAE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QC,WAAYxB,YAAad,aAIvC,IAAIuC,cAAgBxB,MAChByB,cAAe,EACfC,eAAgB,EAEpB,GAAKrD,aAIJ,IAAOmD,cAAgB,CAEtB,MACMG,YAAcL,MAAQM,gBAAkBxC,WAAayC,eAC3DJ,aAAepD,YAAYyD,IAFRV,KAAOQ,gBAAkBxC,WAAayC,gBAGzDH,cAAgBrD,YAAYyD,IAAKH,aACjCH,eAAkBC,eAAkBC,aAErC,OAIAD,cAAe,EACfC,eAAgB,EAIjB,MACMK,cAAgBP,eAAiBE,cAEvC,IAAIM,YAAa,GAHIR,eAAiBC,gBAMrCO,WAAanC,UAAWuB,KAAMhC,WAAYoC,gBAI3C,IAAIS,aAAc,EACbF,gBAEJE,YAAcpC,UAAWyB,MAAOlC,WAAYoC,gBAI7C,MAAMU,UAAYF,YAAcC,YAChC,GAAKC,UAEJ,IAAM,IAAI3C,EAAI,EAAGA,EAAI,EAAGA,IAAO,CAE9B,MAAM4C,OAASf,KAAO7B,EAChB6C,QAAUd,MAAQ/B,EAClB8C,aAAelD,aAAcgD,QAC7BG,aAAenD,aAAcgD,OAAS,GACtCI,cAAgBpD,aAAciD,SAC9BI,cAAgBrD,aAAciD,QAAU,GAE9CjD,aAAcY,YAAcR,GAAM8C,aAAeE,cAAgBF,aAAeE,cAChFpD,aAAcY,YAAcR,EAAI,GAAM+C,aAAeE,cAAgBF,aAAeE,aAErF,CAID,OAAON,SAER,CAED,CAED","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{Box3}from"three";import{UINT32_PER_NODE,CONTAINED}from"../Constants.js";import{arrayToBox}from"../../utils/ArrayBoxUtilities.js";import{PrimitivePool}from"../../utils/PrimitivePool.js";import{IS_LEAF,OFFSET,COUNT,BOUNDING_DATA_INDEX,RIGHT_NODE,LEFT_NODE}from"../utils/nodeBufferUtils.js";import{BufferStack}from"../utils/BufferStack.js";let _box1,_box2;const boxStack=[],boxPool=new PrimitivePool(()=>new Box3);function shapecast(bvh,root,intersectsBounds,intersectsRange,boundsTraverseOrder,nodeOffset){_box1=boxPool.getPrimitive(),_box2=boxPool.getPrimitive(),boxStack.push(_box1,_box2),BufferStack.setBuffer(bvh._roots[root]);const result=shapecastTraverse(0,bvh.geometry,intersectsBounds,intersectsRange,boundsTraverseOrder,nodeOffset);BufferStack.clearBuffer(),boxPool.releasePrimitive(_box1),boxPool.releasePrimitive(_box2),boxStack.pop(),boxStack.pop();const length=boxStack.length;return length>0&&(_box2=boxStack[length-1],_box1=boxStack[length-2]),result}function shapecastTraverse(nodeIndex32,geometry,intersectsBoundsFunc,intersectsRangeFunc,nodeScoreFunc=null,nodeIndexOffset=0,depth=0){const{float32Array:float32Array,uint16Array:uint16Array,uint32Array:uint32Array}=BufferStack;let nodeIndex16=2*nodeIndex32;if(IS_LEAF(nodeIndex16,uint16Array)){const offset=OFFSET(nodeIndex32,uint32Array),count=COUNT(nodeIndex16,uint16Array);return arrayToBox(BOUNDING_DATA_INDEX(nodeIndex32),float32Array,_box1),intersectsRangeFunc(offset,count,!1,depth,nodeIndexOffset+nodeIndex32/UINT32_PER_NODE,_box1)}{const left=LEFT_NODE(nodeIndex32),right=RIGHT_NODE(nodeIndex32,uint32Array);let score1,score2,box1,box2,c1=left,c2=right;if(nodeScoreFunc&&(box1=_box1,box2=_box2,arrayToBox(BOUNDING_DATA_INDEX(c1),float32Array,box1),arrayToBox(BOUNDING_DATA_INDEX(c2),float32Array,box2),score1=nodeScoreFunc(box1),score2=nodeScoreFunc(box2),score2<score1)){c1=right,c2=left;const temp=score1;score1=score2,score2=temp,box1=box2}box1||(box1=_box1,arrayToBox(BOUNDING_DATA_INDEX(c1),float32Array,box1));const c1Intersection=intersectsBoundsFunc(box1,IS_LEAF(2*c1,uint16Array),score1,depth+1,nodeIndexOffset+c1/UINT32_PER_NODE);let c1StopTraversal;if(c1Intersection===CONTAINED){const offset=getLeftOffset(c1);c1StopTraversal=intersectsRangeFunc(offset,getRightEndOffset(c1)-offset,!0,depth+1,nodeIndexOffset+c1/UINT32_PER_NODE,box1)}else c1StopTraversal=c1Intersection&&shapecastTraverse(c1,geometry,intersectsBoundsFunc,intersectsRangeFunc,nodeScoreFunc,nodeIndexOffset,depth+1);if(c1StopTraversal)return!0;box2=_box2,arrayToBox(BOUNDING_DATA_INDEX(c2),float32Array,box2);const c2Intersection=intersectsBoundsFunc(box2,IS_LEAF(2*c2,uint16Array),score2,depth+1,nodeIndexOffset+c2/UINT32_PER_NODE);let c2StopTraversal;if(c2Intersection===CONTAINED){const offset=getLeftOffset(c2);c2StopTraversal=intersectsRangeFunc(offset,getRightEndOffset(c2)-offset,!0,depth+1,nodeIndexOffset+c2/UINT32_PER_NODE,box2)}else c2StopTraversal=c2Intersection&&shapecastTraverse(c2,geometry,intersectsBoundsFunc,intersectsRangeFunc,nodeScoreFunc,nodeIndexOffset,depth+1);return!!c2StopTraversal;function getLeftOffset(nodeIndex32){const{uint16Array:uint16Array,uint32Array:uint32Array}=BufferStack;let nodeIndex16=2*nodeIndex32;for(;!IS_LEAF(nodeIndex16,uint16Array);)nodeIndex16=2*(nodeIndex32=LEFT_NODE(nodeIndex32));return OFFSET(nodeIndex32,uint32Array)}function getRightEndOffset(nodeIndex32){const{uint16Array:uint16Array,uint32Array:uint32Array}=BufferStack;let nodeIndex16=2*nodeIndex32;for(;!IS_LEAF(nodeIndex16,uint16Array);)nodeIndex16=2*(nodeIndex32=RIGHT_NODE(nodeIndex32,uint32Array));return OFFSET(nodeIndex32,uint32Array)+COUNT(nodeIndex16,uint16Array)}}}export{shapecast};
2
+ //# sourceMappingURL=shapecast.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shapecast.js","sources":["../../../../../../../../node_modules/three-mesh-bvh/src/core/cast/shapecast.js"],"sourcesContent":["import { Box3 } from 'three';\nimport { CONTAINED, UINT32_PER_NODE } from '../Constants.js';\nimport { arrayToBox } from '../../utils/ArrayBoxUtilities.js';\nimport { PrimitivePool } from '../../utils/PrimitivePool.js';\nimport { COUNT, OFFSET, LEFT_NODE, RIGHT_NODE, IS_LEAF, BOUNDING_DATA_INDEX } from '../utils/nodeBufferUtils.js';\nimport { BufferStack } from '../utils/BufferStack.js';\n\nlet _box1, _box2;\nconst boxStack = /* @__PURE__ */ [];\nconst boxPool = /* @__PURE__ */ new PrimitivePool( () => new Box3() );\n\nexport function shapecast( bvh, root, intersectsBounds, intersectsRange, boundsTraverseOrder, nodeOffset ) {\n\n\t// setup\n\t_box1 = boxPool.getPrimitive();\n\t_box2 = boxPool.getPrimitive();\n\tboxStack.push( _box1, _box2 );\n\tBufferStack.setBuffer( bvh._roots[ root ] );\n\n\tconst result = shapecastTraverse( 0, bvh.geometry, intersectsBounds, intersectsRange, boundsTraverseOrder, nodeOffset );\n\n\t// cleanup\n\tBufferStack.clearBuffer();\n\tboxPool.releasePrimitive( _box1 );\n\tboxPool.releasePrimitive( _box2 );\n\tboxStack.pop();\n\tboxStack.pop();\n\n\tconst length = boxStack.length;\n\tif ( length > 0 ) {\n\n\t\t_box2 = boxStack[ length - 1 ];\n\t\t_box1 = boxStack[ length - 2 ];\n\n\t}\n\n\treturn result;\n\n}\n\nfunction shapecastTraverse(\n\tnodeIndex32,\n\tgeometry,\n\tintersectsBoundsFunc,\n\tintersectsRangeFunc,\n\tnodeScoreFunc = null,\n\tnodeIndexOffset = 0, // offset for unique node identifier\n\tdepth = 0\n) {\n\n\tconst { float32Array, uint16Array, uint32Array } = BufferStack;\n\tlet nodeIndex16 = nodeIndex32 * 2;\n\n\tconst isLeaf = IS_LEAF( nodeIndex16, uint16Array );\n\tif ( isLeaf ) {\n\n\t\tconst offset = OFFSET( nodeIndex32, uint32Array );\n\t\tconst count = COUNT( nodeIndex16, uint16Array );\n\t\tarrayToBox( BOUNDING_DATA_INDEX( nodeIndex32 ), float32Array, _box1 );\n\t\treturn intersectsRangeFunc( offset, count, false, depth, nodeIndexOffset + nodeIndex32 / UINT32_PER_NODE, _box1 );\n\n\t} else {\n\n\t\tconst left = LEFT_NODE( nodeIndex32 );\n\t\tconst right = RIGHT_NODE( nodeIndex32, uint32Array );\n\t\tlet c1 = left;\n\t\tlet c2 = right;\n\n\t\tlet score1, score2;\n\t\tlet box1, box2;\n\t\tif ( nodeScoreFunc ) {\n\n\t\t\tbox1 = _box1;\n\t\t\tbox2 = _box2;\n\n\t\t\t// bounding data is not offset\n\t\t\tarrayToBox( BOUNDING_DATA_INDEX( c1 ), float32Array, box1 );\n\t\t\tarrayToBox( BOUNDING_DATA_INDEX( c2 ), float32Array, box2 );\n\n\t\t\tscore1 = nodeScoreFunc( box1 );\n\t\t\tscore2 = nodeScoreFunc( box2 );\n\n\t\t\tif ( score2 < score1 ) {\n\n\t\t\t\tc1 = right;\n\t\t\t\tc2 = left;\n\n\t\t\t\tconst temp = score1;\n\t\t\t\tscore1 = score2;\n\t\t\t\tscore2 = temp;\n\n\t\t\t\tbox1 = box2;\n\t\t\t\t// box2 is always set before use below\n\n\t\t\t}\n\n\t\t}\n\n\t\t// Check box 1 intersection\n\t\tif ( ! box1 ) {\n\n\t\t\tbox1 = _box1;\n\t\t\tarrayToBox( BOUNDING_DATA_INDEX( c1 ), float32Array, box1 );\n\n\t\t}\n\n\t\tconst isC1Leaf = IS_LEAF( c1 * 2, uint16Array );\n\t\tconst c1Intersection = intersectsBoundsFunc( box1, isC1Leaf, score1, depth + 1, nodeIndexOffset + c1 / UINT32_PER_NODE );\n\n\t\tlet c1StopTraversal;\n\t\tif ( c1Intersection === CONTAINED ) {\n\n\t\t\tconst offset = getLeftOffset( c1 );\n\t\t\tconst end = getRightEndOffset( c1 );\n\t\t\tconst count = end - offset;\n\n\t\t\tc1StopTraversal = intersectsRangeFunc( offset, count, true, depth + 1, nodeIndexOffset + c1 / UINT32_PER_NODE, box1 );\n\n\t\t} else {\n\n\t\t\tc1StopTraversal =\n\t\t\t\tc1Intersection &&\n\t\t\t\tshapecastTraverse(\n\t\t\t\t\tc1,\n\t\t\t\t\tgeometry,\n\t\t\t\t\tintersectsBoundsFunc,\n\t\t\t\t\tintersectsRangeFunc,\n\t\t\t\t\tnodeScoreFunc,\n\t\t\t\t\tnodeIndexOffset,\n\t\t\t\t\tdepth + 1\n\t\t\t\t);\n\n\t\t}\n\n\t\tif ( c1StopTraversal ) return true;\n\n\t\t// Check box 2 intersection\n\t\t// cached box2 will have been overwritten by previous traversal\n\t\tbox2 = _box2;\n\t\tarrayToBox( BOUNDING_DATA_INDEX( c2 ), float32Array, box2 );\n\n\t\tconst isC2Leaf = IS_LEAF( c2 * 2, uint16Array );\n\t\tconst c2Intersection = intersectsBoundsFunc( box2, isC2Leaf, score2, depth + 1, nodeIndexOffset + c2 / UINT32_PER_NODE );\n\n\t\tlet c2StopTraversal;\n\t\tif ( c2Intersection === CONTAINED ) {\n\n\t\t\tconst offset = getLeftOffset( c2 );\n\t\t\tconst end = getRightEndOffset( c2 );\n\t\t\tconst count = end - offset;\n\n\t\t\tc2StopTraversal = intersectsRangeFunc( offset, count, true, depth + 1, nodeIndexOffset + c2 / UINT32_PER_NODE, box2 );\n\n\t\t} else {\n\n\t\t\tc2StopTraversal =\n\t\t\t\tc2Intersection &&\n\t\t\t\tshapecastTraverse(\n\t\t\t\t\tc2,\n\t\t\t\t\tgeometry,\n\t\t\t\t\tintersectsBoundsFunc,\n\t\t\t\t\tintersectsRangeFunc,\n\t\t\t\t\tnodeScoreFunc,\n\t\t\t\t\tnodeIndexOffset,\n\t\t\t\t\tdepth + 1\n\t\t\t\t);\n\n\t\t}\n\n\t\tif ( c2StopTraversal ) return true;\n\n\t\treturn false;\n\n\t\t// Define these inside the function so it has access to the local variables needed\n\t\t// when converting to the buffer equivalents\n\t\tfunction getLeftOffset( nodeIndex32 ) {\n\n\t\t\tconst { uint16Array, uint32Array } = BufferStack;\n\t\t\tlet nodeIndex16 = nodeIndex32 * 2;\n\n\t\t\t// traverse until we find a leaf\n\t\t\twhile ( ! IS_LEAF( nodeIndex16, uint16Array ) ) {\n\n\t\t\t\tnodeIndex32 = LEFT_NODE( nodeIndex32 );\n\t\t\t\tnodeIndex16 = nodeIndex32 * 2;\n\n\t\t\t}\n\n\t\t\treturn OFFSET( nodeIndex32, uint32Array );\n\n\t\t}\n\n\t\tfunction getRightEndOffset( nodeIndex32 ) {\n\n\t\t\tconst { uint16Array, uint32Array } = BufferStack;\n\t\t\tlet nodeIndex16 = nodeIndex32 * 2;\n\n\t\t\t// traverse until we find a leaf\n\t\t\twhile ( ! IS_LEAF( nodeIndex16, uint16Array ) ) {\n\n\t\t\t\t// adjust offset to point to the right node\n\t\t\t\tnodeIndex32 = RIGHT_NODE( nodeIndex32, uint32Array );\n\t\t\t\tnodeIndex16 = nodeIndex32 * 2;\n\n\t\t\t}\n\n\t\t\t// return the end offset of the triangle range\n\t\t\treturn OFFSET( nodeIndex32, uint32Array ) + COUNT( nodeIndex16, uint16Array );\n\n\t\t}\n\n\t}\n\n}\n"],"names":["_box1","_box2","boxStack","boxPool","PrimitivePool","Box3","shapecast","bvh","root","intersectsBounds","intersectsRange","boundsTraverseOrder","nodeOffset","getPrimitive","push","BufferStack","setBuffer","_roots","result","shapecastTraverse","geometry","clearBuffer","releasePrimitive","pop","length","nodeIndex32","intersectsBoundsFunc","intersectsRangeFunc","nodeScoreFunc","nodeIndexOffset","depth","float32Array","uint16Array","uint32Array","nodeIndex16","IS_LEAF","offset","OFFSET","count","COUNT","arrayToBox","BOUNDING_DATA_INDEX","UINT32_PER_NODE","left","LEFT_NODE","right","RIGHT_NODE","score1","score2","box1","box2","c1","c2","temp","c1Intersection","c1StopTraversal","CONTAINED","getLeftOffset","getRightEndOffset","c2Intersection","c2StopTraversal"],"mappings":"wVAOA,IAAIA,MAAOC,MACX,MAAMC,SAA2B,GAC3BC,QAA0B,IAAIC,cAAe,IAAM,IAAIC,MAEtD,SAASC,UAAWC,IAAKC,KAAMC,iBAAkBC,gBAAiBC,oBAAqBC,YAG7FZ,MAAQG,QAAQU,eAChBZ,MAAQE,QAAQU,eAChBX,SAASY,KAAMd,MAAOC,OACtBc,YAAYC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I,OAAQZ,YAAaQ,aAAgBM,MAAOL,YAAaF,YAEjE,CAED,CAED","x_google_ignoreList":[0]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BufferStack.js","sources":["../../../../../../../../node_modules/three-mesh-bvh/src/core/utils/BufferStack.js"],"sourcesContent":["class _BufferStack {\n\n\tconstructor() {\n\n\t\tthis.float32Array = null;\n\t\tthis.uint16Array = null;\n\t\tthis.uint32Array = null;\n\n\t\tconst stack = [];\n\t\tlet prevBuffer = null;\n\t\tthis.setBuffer = buffer => {\n\n\t\t\tif ( prevBuffer ) {\n\n\t\t\t\tstack.push( prevBuffer );\n\n\t\t\t}\n\n\t\t\tprevBuffer = buffer;\n\t\t\tthis.float32Array = new Float32Array( buffer );\n\t\t\tthis.uint16Array = new Uint16Array( buffer );\n\t\t\tthis.uint32Array = new Uint32Array( buffer );\n\n\t\t};\n\n\t\tthis.clearBuffer = () => {\n\n\t\t\tprevBuffer = null;\n\t\t\tthis.float32Array = null;\n\t\t\tthis.uint16Array = null;\n\t\t\tthis.uint32Array = null;\n\n\t\t\tif ( stack.length !== 0 ) {\n\n\t\t\t\tthis.setBuffer( stack.pop() );\n\n\t\t\t}\n\n\t\t};\n\n\t}\n\n}\n\nexport const BufferStack = /* @__PURE__ */ new _BufferStack();\n"],"names":["_BufferStack","constructor","this","float32Array","uint16Array","uint32Array","stack","prevBuffer","setBuffer","buffer","push","Float32Array","Uint16Array","Uint32Array","clearBuffer","length","pop","BufferStack"],"mappings":"AAAA,MAAMA,aAEL,WAAAC,GAECC,KAAKC,aAAe,KACpBD,KAAKE,YAAc,KACnBF,KAAKG,YAAc,KAEnB,MAAMC,MAAQ,GACd,IAAIC,WAAa,KACjBL,KAAKM,UAAYC,SAEXF,YAEJD,MAAMI,KAAMH,YAIbA,WAAaE,OACbP,KAAKC,aAAe,IAAIQ,aAAcF,QACtCP,KAAKE,YAAc,IAAIQ,YAAaH,QACpCP,KAAKG,YAAc,IAAIQ,YAAaJ,SAIrCP,KAAKY,YAAc,KAElBP,WAAa,KACbL,KAAKC,aAAe,KACpBD,KAAKE,YAAc,KACnBF,KAAKG,YAAc,KAEG,IAAjBC,MAAMS,QAEVb,KAAKM,UAAWF,MAAMU,OAMzB,EAIW,MAACC,YAA8B,IAAIjB","x_google_ignoreList":[0]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"intersectUtils.js","sources":["../../../../../../../../node_modules/three-mesh-bvh/src/core/utils/intersectUtils.js"],"sourcesContent":["/**\n * This function performs intersection tests similar to Ray.intersectBox in three.js,\n * with the difference that the box values are read from an array to improve performance.\n */\nexport function intersectRay( nodeIndex32, array, ray, near, far ) {\n\n\tlet tmin, tmax, tymin, tymax, tzmin, tzmax;\n\n\tconst invdirx = 1 / ray.direction.x,\n\t\tinvdiry = 1 / ray.direction.y,\n\t\tinvdirz = 1 / ray.direction.z;\n\n\tconst ox = ray.origin.x;\n\tconst oy = ray.origin.y;\n\tconst oz = ray.origin.z;\n\n\tlet minx = array[ nodeIndex32 ];\n\tlet maxx = array[ nodeIndex32 + 3 ];\n\n\tlet miny = array[ nodeIndex32 + 1 ];\n\tlet maxy = array[ nodeIndex32 + 3 + 1 ];\n\n\tlet minz = array[ nodeIndex32 + 2 ];\n\tlet maxz = array[ nodeIndex32 + 3 + 2 ];\n\n\tif ( invdirx >= 0 ) {\n\n\t\ttmin = ( minx - ox ) * invdirx;\n\t\ttmax = ( maxx - ox ) * invdirx;\n\n\t} else {\n\n\t\ttmin = ( maxx - ox ) * invdirx;\n\t\ttmax = ( minx - ox ) * invdirx;\n\n\t}\n\n\tif ( invdiry >= 0 ) {\n\n\t\ttymin = ( miny - oy ) * invdiry;\n\t\ttymax = ( maxy - oy ) * invdiry;\n\n\t} else {\n\n\t\ttymin = ( maxy - oy ) * invdiry;\n\t\ttymax = ( miny - oy ) * invdiry;\n\n\t}\n\n\tif ( ( tmin > tymax ) || ( tymin > tmax ) ) return false;\n\n\tif ( tymin > tmin || isNaN( tmin ) ) tmin = tymin;\n\n\tif ( tymax < tmax || isNaN( tmax ) ) tmax = tymax;\n\n\tif ( invdirz >= 0 ) {\n\n\t\ttzmin = ( minz - oz ) * invdirz;\n\t\ttzmax = ( maxz - oz ) * invdirz;\n\n\t} else {\n\n\t\ttzmin = ( maxz - oz ) * invdirz;\n\t\ttzmax = ( minz - oz ) * invdirz;\n\n\t}\n\n\tif ( ( tmin > tzmax ) || ( tzmin > tmax ) ) return false;\n\n\tif ( tzmin > tmin || tmin !== tmin ) tmin = tzmin;\n\n\tif ( tzmax < tmax || tmax !== tmax ) tmax = tzmax;\n\n\t//return point closest to the ray (positive side)\n\n\treturn tmin <= far && tmax >= near;\n\n}\n"],"names":["intersectRay","nodeIndex32","array","ray","near","far","tmin","tmax","tymin","tymax","tzmin","tzmax","invdirx","direction","x","invdiry","y","invdirz","z","ox","origin","oy","oz","minx","maxx","miny","maxy","minz","maxz","isNaN"],"mappings":"AAIO,SAASA,aAAcC,YAAaC,MAAOC,IAAKC,KAAMC,KAE5D,IAAIC,KAAMC,KAAMC,MAAOC,MAAOC,MAAOC,MAErC,MAAMC,QAAU,EAAIT,IAAIU,UAAUC,EACjCC,QAAU,EAAIZ,IAAIU,UAAUG,EAC5BC,QAAU,EAAId,IAAIU,UAAUK,EAEvBC,GAAKhB,IAAIiB,OAAON,EAChBO,GAAKlB,IAAIiB,OAAOJ,EAChBM,GAAKnB,IAAIiB,OAAOF,EAEtB,IAAIK,KAAOrB,MAAOD,aACduB,KAAOtB,MAAOD,YAAc,GAE5BwB,KAAOvB,MAAOD,YAAc,GAC5ByB,KAAOxB,MAAOD,YAAc,EAAI,GAEhC0B,KAAOzB,MAAOD,YAAc,GAC5B2B,KAAO1B,MAAOD,YAAc,EAAI,GA0BpC,OAxBKW,SAAW,GAEfN,MAASiB,KAAOJ,IAAOP,QACvBL,MAASiB,KAAOL,IAAOP,UAIvBN,MAASkB,KAAOL,IAAOP,QACvBL,MAASgB,KAAOJ,IAAOP,SAInBG,SAAW,GAEfP,OAAUiB,KAAOJ,IAAON,QACxBN,OAAUiB,KAAOL,IAAON,UAIxBP,OAAUkB,KAAOL,IAAON,QACxBN,OAAUgB,KAAOJ,IAAON,WAIlBT,KAAOG,OAAaD,MAAQD,SAE9BC,MAAQF,MAAQuB,MAAOvB,SAASA,KAAOE,QAEvCC,MAAQF,MAAQsB,MAAOtB,SAASA,KAAOE,OAEvCQ,SAAW,GAEfP,OAAUiB,KAAOL,IAAOL,QACxBN,OAAUiB,KAAON,IAAOL,UAIxBP,OAAUkB,KAAON,IAAOL,QACxBN,OAAUgB,KAAOL,IAAOL,WAIlBX,KAAOK,OAAaD,MAAQH,SAE9BG,MAAQJ,MAAQA,MAASA,QAAOA,KAAOI,QAEvCC,MAAQJ,MAAQA,MAASA,QAAOA,KAAOI,OAIrCL,MAAQD,KAAOE,MAAQH,MAE/B","x_google_ignoreList":[0]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iterationUtils.generated.js","sources":["../../../../../../../../node_modules/three-mesh-bvh/src/core/utils/iterationUtils.generated.js"],"sourcesContent":["import { intersectTri } from '../../utils/ThreeRayIntersectUtilities.js';\nimport { setTriangle } from '../../utils/TriangleUtilities.js';\n\n/*************************************************************/\n/* This file is generated from \"iterationUtils.template.js\". */\n/*************************************************************/\n\nfunction intersectTris( bvh, materialOrSide, ray, offset, count, intersections, near, far ) {\n\n\tconst { geometry, _indirectBuffer } = bvh;\n\tfor ( let i = offset, end = offset + count; i < end; i ++ ) {\n\n\n\t\tintersectTri( geometry, materialOrSide, ray, i, intersections, near, far );\n\n\n\t}\n\n}\n\nfunction intersectClosestTri( bvh, materialOrSide, ray, offset, count, near, far ) {\n\n\tconst { geometry, _indirectBuffer } = bvh;\n\tlet dist = Infinity;\n\tlet res = null;\n\tfor ( let i = offset, end = offset + count; i < end; i ++ ) {\n\n\t\tlet intersection;\n\n\t\tintersection = intersectTri( geometry, materialOrSide, ray, i, null, near, far );\n\n\n\t\tif ( intersection && intersection.distance < dist ) {\n\n\t\t\tres = intersection;\n\t\t\tdist = intersection.distance;\n\n\t\t}\n\n\t}\n\n\treturn res;\n\n}\n\nfunction iterateOverTriangles(\n\toffset,\n\tcount,\n\tbvh,\n\tintersectsTriangleFunc,\n\tcontained,\n\tdepth,\n\ttriangle\n) {\n\n\tconst { geometry } = bvh;\n\tconst { index } = geometry;\n\tconst pos = geometry.attributes.position;\n\tfor ( let i = offset, l = count + offset; i < l; i ++ ) {\n\n\t\tlet tri;\n\n\t\ttri = i;\n\n\t\tsetTriangle( triangle, tri * 3, index, pos );\n\t\ttriangle.needsUpdate = true;\n\n\t\tif ( intersectsTriangleFunc( triangle, tri, contained, depth ) ) {\n\n\t\t\treturn true;\n\n\t\t}\n\n\t}\n\n\treturn false;\n\n}\n\nexport { intersectClosestTri, intersectTris, iterateOverTriangles };\n"],"names":["intersectTris","bvh","materialOrSide","ray","offset","count","intersections","near","far","geometry","i","end","intersectTri","intersectClosestTri","dist","Infinity","res","intersection","distance","iterateOverTriangles","intersectsTriangleFunc","contained","depth","triangle","index","pos","attributes","position","l","tri","setTriangle","needsUpdate"],"mappings":"8HAOA,SAASA,cAAeC,IAAKC,eAAgBC,IAAKC,OAAQC,MAAOC,cAAeC,KAAMC,KAErF,MAAMC,SAAEA,UAA8BR,IACtC,IAAM,IAAIS,EAAIN,OAAQO,IAAMP,OAASC,MAAOK,EAAIC,IAAKD,IAGpDE,aAAcH,SAAUP,eAAgBC,IAAKO,EAAGJ,cAAeC,KAAMC,IAKvE,CAEA,SAASK,oBAAqBZ,IAAKC,eAAgBC,IAAKC,OAAQC,MAAOE,KAAMC,KAE5E,MAAMC,SAAEA,UAA8BR,IACtC,IAAIa,KAAOC,IACPC,IAAM,KACV,IAAM,IAAIN,EAAIN,OAAQO,IAAMP,OAASC,MAAOK,EAAIC,IAAKD,IAAO,CAE3D,IAAIO,aAEJA,aAAeL,aAAcH,SAAUP,eAAgBC,IAAKO,EAAG,KAAMH,KAAMC,KAGtES,cAAgBA,aAAaC,SAAWJ,OAE5CE,IAAMC,aACNH,KAAOG,aAAaC,SAItB,CAEA,OAAOF,GAER,CAEA,SAASG,qBACRf,OACAC,MACAJ,IACAmB,uBACAC,UACAC,MACAC,UAGA,MAAMd,SAAEA,UAAaR,KACfuB,MAAEA,OAAUf,SACZgB,IAAMhB,SAASiB,WAAWC,SAChC,IAAM,IAAIjB,EAAIN,OAAQwB,EAAIvB,MAAQD,OAAQM,EAAIkB,EAAGlB,IAAO,CAEvD,IAAImB,IAOJ,GALAA,IAAMnB,EAENoB,YAAaP,SAAgB,EAANM,IAASL,MAAOC,KACvCF,SAASQ,aAAc,EAElBX,uBAAwBG,SAAUM,IAAKR,UAAWC,OAEtD,OAAO,CAIT,CAEA,OAAO,CAER","x_google_ignoreList":[0]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iterationUtils_indirect.generated.js","sources":["../../../../../../../../node_modules/three-mesh-bvh/src/core/utils/iterationUtils_indirect.generated.js"],"sourcesContent":["import { intersectTri } from '../../utils/ThreeRayIntersectUtilities.js';\nimport { setTriangle } from '../../utils/TriangleUtilities.js';\n\n/*************************************************************/\n/* This file is generated from \"iterationUtils.template.js\". */\n/*************************************************************/\n\nfunction intersectTris_indirect( bvh, materialOrSide, ray, offset, count, intersections, near, far ) {\n\n\tconst { geometry, _indirectBuffer } = bvh;\n\tfor ( let i = offset, end = offset + count; i < end; i ++ ) {\n\n\t\tlet vi = _indirectBuffer ? _indirectBuffer[ i ] : i;\n\t\tintersectTri( geometry, materialOrSide, ray, vi, intersections, near, far );\n\n\n\t}\n\n}\n\nfunction intersectClosestTri_indirect( bvh, materialOrSide, ray, offset, count, near, far ) {\n\n\tconst { geometry, _indirectBuffer } = bvh;\n\tlet dist = Infinity;\n\tlet res = null;\n\tfor ( let i = offset, end = offset + count; i < end; i ++ ) {\n\n\t\tlet intersection;\n\t\tintersection = intersectTri( geometry, materialOrSide, ray, _indirectBuffer ? _indirectBuffer[ i ] : i, null, near, far );\n\n\n\t\tif ( intersection && intersection.distance < dist ) {\n\n\t\t\tres = intersection;\n\t\t\tdist = intersection.distance;\n\n\t\t}\n\n\t}\n\n\treturn res;\n\n}\n\nfunction iterateOverTriangles_indirect(\n\toffset,\n\tcount,\n\tbvh,\n\tintersectsTriangleFunc,\n\tcontained,\n\tdepth,\n\ttriangle\n) {\n\n\tconst { geometry } = bvh;\n\tconst { index } = geometry;\n\tconst pos = geometry.attributes.position;\n\tfor ( let i = offset, l = count + offset; i < l; i ++ ) {\n\n\t\tlet tri;\n\t\ttri = bvh.resolveTriangleIndex( i );\n\n\t\tsetTriangle( triangle, tri * 3, index, pos );\n\t\ttriangle.needsUpdate = true;\n\n\t\tif ( intersectsTriangleFunc( triangle, tri, contained, depth ) ) {\n\n\t\t\treturn true;\n\n\t\t}\n\n\t}\n\n\treturn false;\n\n}\n\nexport { intersectClosestTri_indirect, intersectTris_indirect, iterateOverTriangles_indirect };\n"],"names":["intersectTris_indirect","bvh","materialOrSide","ray","offset","count","intersections","near","far","geometry","_indirectBuffer","i","end","intersectTri","intersectClosestTri_indirect","dist","Infinity","res","intersection","distance","iterateOverTriangles_indirect","intersectsTriangleFunc","contained","depth","triangle","index","pos","attributes","position","l","tri","resolveTriangleIndex","setTriangle","needsUpdate"],"mappings":"8HAOA,SAASA,uBAAwBC,IAAKC,eAAgBC,IAAKC,OAAQC,MAAOC,cAAeC,KAAMC,KAE9F,MAAMC,SAAEA,SAAQC,gBAAEA,iBAAoBT,IACtC,IAAM,IAAIU,EAAIP,OAAQQ,IAAMR,OAASC,MAAOM,EAAIC,IAAKD,IAGpDE,aAAcJ,SAAUP,eAAgBC,IAD/BO,gBAAkBA,gBAAiBC,GAAMA,EACDL,cAAeC,KAAMC,IAKxE,CAEA,SAASM,6BAA8Bb,IAAKC,eAAgBC,IAAKC,OAAQC,MAAOE,KAAMC,KAErF,MAAMC,SAAEA,SAAQC,gBAAEA,iBAAoBT,IACtC,IAAIc,KAAOC,IACPC,IAAM,KACV,IAAM,IAAIN,EAAIP,OAAQQ,IAAMR,OAASC,MAAOM,EAAIC,IAAKD,IAAO,CAE3D,IAAIO,aACJA,aAAeL,aAAcJ,SAAUP,eAAgBC,IAAKO,gBAAkBA,gBAAiBC,GAAMA,EAAG,KAAMJ,KAAMC,KAG/GU,cAAgBA,aAAaC,SAAWJ,OAE5CE,IAAMC,aACNH,KAAOG,aAAaC,SAItB,CAEA,OAAOF,GAER,CAEA,SAASG,8BACRhB,OACAC,MACAJ,IACAoB,uBACAC,UACAC,MACAC,UAGA,MAAMf,SAAEA,UAAaR,KACfwB,MAAEA,OAAUhB,SACZiB,IAAMjB,SAASkB,WAAWC,SAChC,IAAM,IAAIjB,EAAIP,OAAQyB,EAAIxB,MAAQD,OAAQO,EAAIkB,EAAGlB,IAAO,CAEvD,IAAImB,IAMJ,GALAA,IAAM7B,IAAI8B,qBAAsBpB,GAEhCqB,YAAaR,SAAgB,EAANM,IAASL,MAAOC,KACvCF,SAASS,aAAc,EAElBZ,uBAAwBG,SAAUM,IAAKR,UAAWC,OAEtD,OAAO,CAIT,CAEA,OAAO,CAER","x_google_ignoreList":[0]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nodeBufferUtils.js","sources":["../../../../../../../../node_modules/three-mesh-bvh/src/core/utils/nodeBufferUtils.js"],"sourcesContent":["import { IS_LEAFNODE_FLAG, UINT32_PER_NODE } from '../Constants.js';\n\nexport function IS_LEAF( n16, uint16Array ) {\n\n\treturn uint16Array[ n16 + 15 ] === IS_LEAFNODE_FLAG;\n\n}\n\nexport function OFFSET( n32, uint32Array ) {\n\n\treturn uint32Array[ n32 + 6 ];\n\n}\n\nexport function COUNT( n16, uint16Array ) {\n\n\treturn uint16Array[ n16 + 14 ];\n\n}\n\n// Returns the uint32-aligned offset of the left child node for performance\nexport function LEFT_NODE( n32 ) {\n\n\treturn n32 + UINT32_PER_NODE;\n\n}\n\n// Returns the uint32-aligned offset of the right child node for performance\nexport function RIGHT_NODE( n32, uint32Array ) {\n\n\t// stored value is relative offset from parent, convert to absolute uint32 index\n\tconst relativeOffset = uint32Array[ n32 + 6 ];\n\treturn n32 + relativeOffset * UINT32_PER_NODE;\n\n}\n\nexport function SPLIT_AXIS( n32, uint32Array ) {\n\n\treturn uint32Array[ n32 + 7 ];\n\n}\n\nexport function BOUNDING_DATA_INDEX( n32 ) {\n\n\treturn n32;\n\n}\n"],"names":["IS_LEAF","n16","uint16Array","IS_LEAFNODE_FLAG","OFFSET","n32","uint32Array","COUNT","LEFT_NODE","UINT32_PER_NODE","RIGHT_NODE","SPLIT_AXIS","BOUNDING_DATA_INDEX"],"mappings":"8DAEO,SAASA,QAASC,IAAKC,aAE7B,OAAOA,YAAaD,IAAM,MAASE,gBAEpC,CAEO,SAASC,OAAQC,IAAKC,aAE5B,OAAOA,YAAaD,IAAM,EAE3B,CAEO,SAASE,MAAON,IAAKC,aAE3B,OAAOA,YAAaD,IAAM,GAE3B,CAGO,SAASO,UAAWH,KAE1B,OAAOA,IAAMI,eAEd,CAGO,SAASC,WAAYL,IAAKC,aAIhC,OAAOD,IADgBC,YAAaD,IAAM,GACZI,eAE/B,CAEO,SAASE,WAAYN,IAAKC,aAEhC,OAAOA,YAAaD,IAAM,EAE3B,CAEO,SAASO,oBAAqBP,KAEpC,OAAOA,GAER","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{Triangle,Vector3,Plane,Line3,Vector2}from"three";import{SeparatingAxisBounds}from"./SeparatingAxisBounds.js";import{sphereIntersectTriangle,closestPointsSegmentToSegment}from"./MathUtilities.js";const componentKeys=["x","y","z"];function isNearZero(value){return Math.abs(value)<1e-15}class ExtendedTriangle extends Triangle{constructor(...args){super(...args),this.isExtendedTriangle=!0,this.satAxes=new Array(4).fill().map(()=>new Vector3),this.satBounds=new Array(4).fill().map(()=>new SeparatingAxisBounds),this.points=[this.a,this.b,this.c],this.plane=new Plane,this.isDegenerateIntoSegment=!1,this.isDegenerateIntoPoint=!1,this.degenerateSegment=new Line3,this.needsUpdate=!0}intersectsSphere(sphere){return sphereIntersectTriangle(sphere,this)}update(){const a=this.a,b=this.b,c=this.c,points=this.points,satAxes=this.satAxes,satBounds=this.satBounds,axis0=satAxes[0],sab0=satBounds[0];this.getNormal(axis0),sab0.setFromPoints(axis0,points);const axis1=satAxes[1],sab1=satBounds[1];axis1.subVectors(a,b),sab1.setFromPoints(axis1,points);const axis2=satAxes[2],sab2=satBounds[2];axis2.subVectors(b,c),sab2.setFromPoints(axis2,points);const axis3=satAxes[3],sab3=satBounds[3];axis3.subVectors(c,a),sab3.setFromPoints(axis3,points);const lengthAB=axis1.length(),lengthBC=axis2.length(),lengthCA=axis3.length();this.isDegenerateIntoPoint=!1,this.isDegenerateIntoSegment=!1,lengthAB<1e-15?lengthBC<1e-15||lengthCA<1e-15?this.isDegenerateIntoPoint=!0:(this.isDegenerateIntoSegment=!0,this.degenerateSegment.start.copy(a),this.degenerateSegment.end.copy(c)):lengthBC<1e-15?lengthCA<1e-15?this.isDegenerateIntoPoint=!0:(this.isDegenerateIntoSegment=!0,this.degenerateSegment.start.copy(b),this.degenerateSegment.end.copy(a)):lengthCA<1e-15&&(this.isDegenerateIntoSegment=!0,this.degenerateSegment.start.copy(c),this.degenerateSegment.end.copy(b)),this.plane.setFromNormalAndCoplanarPoint(axis0,a),this.needsUpdate=!1}}ExtendedTriangle.prototype.closestPointToSegment=function(){const point1=new Vector3,point2=new Vector3,edge=new Line3;return function(segment,target1=null,target2=null){const{start:start,end:end}=segment,points=this.points;let distSq,closestDistanceSq=1/0;for(let i=0;i<3;i++){const nexti=(i+1)%3;edge.start.copy(points[i]),edge.end.copy(points[nexti]),closestPointsSegmentToSegment(edge,segment,point1,point2),distSq=point1.distanceToSquared(point2),distSq<closestDistanceSq&&(closestDistanceSq=distSq,target1&&target1.copy(point1),target2&&target2.copy(point2))}return this.closestPointToPoint(start,point1),distSq=start.distanceToSquared(point1),distSq<closestDistanceSq&&(closestDistanceSq=distSq,target1&&target1.copy(point1),target2&&target2.copy(start)),this.closestPointToPoint(end,point1),distSq=end.distanceToSquared(point1),distSq<closestDistanceSq&&(closestDistanceSq=distSq,target1&&target1.copy(point1),target2&&target2.copy(end)),Math.sqrt(closestDistanceSq)}}(),ExtendedTriangle.prototype.intersectsTriangle=function(){const saTri2=new ExtendedTriangle,cachedSatBounds=new SeparatingAxisBounds,cachedSatBounds2=new SeparatingAxisBounds,tmpVec=new Vector3,dir1=new Vector3,dir2=new Vector3,tempDir=new Vector3,edge1=new Line3,edge2=new Line3,tempPoint=new Vector3,bounds1=new Vector2,bounds2=new Vector2;function coplanarIntersectsTriangle(self,other,target,suppressLog){const planeNormal=tmpVec;planeNormal.copy(self.isDegenerateIntoPoint||self.isDegenerateIntoSegment?other.plane.normal:self.plane.normal);const satBounds1=self.satBounds,satAxes1=self.satAxes;for(let i=1;i<4;i++){const sb=satBounds1[i],sa=satAxes1[i];if(cachedSatBounds.setFromPoints(sa,other.points),sb.isSeparated(cachedSatBounds))return!1;if(tempDir.copy(planeNormal).cross(sa),cachedSatBounds.setFromPoints(tempDir,self.points),cachedSatBounds2.setFromPoints(tempDir,other.points),cachedSatBounds.isSeparated(cachedSatBounds2))return!1}const satBounds2=other.satBounds,satAxes2=other.satAxes;for(let i=1;i<4;i++){const sb=satBounds2[i],sa=satAxes2[i];if(cachedSatBounds.setFromPoints(sa,self.points),sb.isSeparated(cachedSatBounds))return!1;if(tempDir.crossVectors(planeNormal,sa),cachedSatBounds.setFromPoints(tempDir,self.points),cachedSatBounds2.setFromPoints(tempDir,other.points),cachedSatBounds.isSeparated(cachedSatBounds2))return!1}return target&&(suppressLog||console.warn("ExtendedTriangle.intersectsTriangle: Triangles are coplanar which does not support an output edge. Setting edge to 0, 0, 0."),target.start.set(0,0,0),target.end.set(0,0,0)),!0}function findSingleBounds(a,b,c,aProj,bProj,cProj,aDist,bDist,cDist,bounds,edge){let t=aDist/(aDist-bDist);bounds.x=aProj+(bProj-aProj)*t,edge.start.subVectors(b,a).multiplyScalar(t).add(a),t=aDist/(aDist-cDist),bounds.y=aProj+(cProj-aProj)*t,edge.end.subVectors(c,a).multiplyScalar(t).add(a)}function findIntersectionLineBounds(self,aProj,bProj,cProj,abDist,acDist,aDist,bDist,cDist,bounds,edge){if(abDist>0)findSingleBounds(self.c,self.a,self.b,cProj,aProj,bProj,cDist,aDist,bDist,bounds,edge);else if(acDist>0)findSingleBounds(self.b,self.a,self.c,bProj,aProj,cProj,bDist,aDist,cDist,bounds,edge);else if(bDist*cDist>0||0!=aDist)findSingleBounds(self.a,self.b,self.c,aProj,bProj,cProj,aDist,bDist,cDist,bounds,edge);else if(0!=bDist)findSingleBounds(self.b,self.a,self.c,bProj,aProj,cProj,bDist,aDist,cDist,bounds,edge);else{if(0==cDist)return!0;findSingleBounds(self.c,self.a,self.b,cProj,aProj,bProj,cDist,aDist,bDist,bounds,edge)}return!1}function intersectTriangleSegment(triangle,degenerateTriangle,target,suppressLog){const segment=degenerateTriangle.degenerateSegment,startDist=triangle.plane.distanceToPoint(segment.start),endDist=triangle.plane.distanceToPoint(segment.end);return isNearZero(startDist)?isNearZero(endDist)?coplanarIntersectsTriangle(triangle,degenerateTriangle,target,suppressLog):(target&&(target.start.copy(segment.start),target.end.copy(segment.start)),triangle.containsPoint(segment.start)):isNearZero(endDist)?(target&&(target.start.copy(segment.end),target.end.copy(segment.end)),triangle.containsPoint(segment.end)):null!=triangle.plane.intersectLine(segment,tmpVec)&&(target&&(target.start.copy(tmpVec),target.end.copy(tmpVec)),triangle.containsPoint(tmpVec))}function intersectTrianglePoint(triangle,degenerateTriangle,target){const point=degenerateTriangle.a;return!(!isNearZero(triangle.plane.distanceToPoint(point))||!triangle.containsPoint(point)||(target&&(target.start.copy(point),target.end.copy(point)),0))}function intersectSegmentPoint(segmentTri,pointTri,target){const point=pointTri.a;return segmentTri.degenerateSegment.closestPointToPoint(point,!0,tmpVec),point.distanceToSquared(tmpVec)<1e-30&&(target&&(target.start.copy(point),target.end.copy(point)),!0)}return function(other,target=null,suppressLog=!1){this.needsUpdate&&this.update(),other.isExtendedTriangle?other.needsUpdate&&other.update():(saTri2.copy(other),saTri2.update(),other=saTri2);const res=function(self,other,target,suppressLog){if(self.isDegenerateIntoSegment){if(other.isDegenerateIntoSegment){const segment1=self.degenerateSegment,segment2=other.degenerateSegment,delta1=dir1,delta2=dir2;segment1.delta(delta1),segment2.delta(delta2);const startDelta=tmpVec.subVectors(segment2.start,segment1.start),denom=delta1.x*delta2.y-delta1.y*delta2.x;if(isNearZero(denom))return!1;const t=(startDelta.x*delta2.y-startDelta.y*delta2.x)/denom,u=-(delta1.x*startDelta.y-delta1.y*startDelta.x)/denom;return!(t<0||t>1||u<0||u>1||!isNearZero(segment1.start.z+delta1.z*t-(segment2.start.z+delta2.z*u))||(target&&(target.start.copy(segment1.start).addScaledVector(delta1,t),target.end.copy(segment1.start).addScaledVector(delta1,t)),0))}return other.isDegenerateIntoPoint?intersectSegmentPoint(self,other,target):intersectTriangleSegment(other,self,target,suppressLog)}return self.isDegenerateIntoPoint?other.isDegenerateIntoPoint?other.a.distanceToSquared(self.a)<1e-30&&(target&&(target.start.copy(self.a),target.end.copy(self.a)),!0):other.isDegenerateIntoSegment?intersectSegmentPoint(other,self,target):intersectTrianglePoint(other,self,target):other.isDegenerateIntoPoint?intersectTrianglePoint(self,other,target):other.isDegenerateIntoSegment?intersectTriangleSegment(self,other,target,suppressLog):void 0}(this,other,target,suppressLog);if(void 0!==res)return res;const plane1=this.plane,plane2=other.plane;let a1Dist=plane2.distanceToPoint(this.a),b1Dist=plane2.distanceToPoint(this.b),c1Dist=plane2.distanceToPoint(this.c);isNearZero(a1Dist)&&(a1Dist=0),isNearZero(b1Dist)&&(b1Dist=0),isNearZero(c1Dist)&&(c1Dist=0);const a1b1Dist=a1Dist*b1Dist,a1c1Dist=a1Dist*c1Dist;if(a1b1Dist>0&&a1c1Dist>0)return!1;let a2Dist=plane1.distanceToPoint(other.a),b2Dist=plane1.distanceToPoint(other.b),c2Dist=plane1.distanceToPoint(other.c);isNearZero(a2Dist)&&(a2Dist=0),isNearZero(b2Dist)&&(b2Dist=0),isNearZero(c2Dist)&&(c2Dist=0);const a2b2Dist=a2Dist*b2Dist,a2c2Dist=a2Dist*c2Dist;if(a2b2Dist>0&&a2c2Dist>0)return!1;dir1.copy(plane1.normal),dir2.copy(plane2.normal);const intersectionLine=dir1.cross(dir2);let componentIndex=0,maxComponent=Math.abs(intersectionLine.x);const comp1=Math.abs(intersectionLine.y);comp1>maxComponent&&(maxComponent=comp1,componentIndex=1),Math.abs(intersectionLine.z)>maxComponent&&(componentIndex=2);const key=componentKeys[componentIndex],a2Proj=other.a[key],b2Proj=other.b[key],c2Proj=other.c[key];if(findIntersectionLineBounds(this,this.a[key],this.b[key],this.c[key],a1b1Dist,a1c1Dist,a1Dist,b1Dist,c1Dist,bounds1,edge1))return coplanarIntersectsTriangle(this,other,target,suppressLog);if(findIntersectionLineBounds(other,a2Proj,b2Proj,c2Proj,a2b2Dist,a2c2Dist,a2Dist,b2Dist,c2Dist,bounds2,edge2))return coplanarIntersectsTriangle(this,other,target,suppressLog);if(bounds1.y<bounds1.x){const tmp=bounds1.y;bounds1.y=bounds1.x,bounds1.x=tmp,tempPoint.copy(edge1.start),edge1.start.copy(edge1.end),edge1.end.copy(tempPoint)}if(bounds2.y<bounds2.x){const tmp=bounds2.y;bounds2.y=bounds2.x,bounds2.x=tmp,tempPoint.copy(edge2.start),edge2.start.copy(edge2.end),edge2.end.copy(tempPoint)}return!(bounds1.y<bounds2.x||bounds2.y<bounds1.x||(target&&(target.start.copy(bounds2.x>bounds1.x?edge2.start:edge1.start),target.end.copy(bounds2.y<bounds1.y?edge2.end:edge1.end)),0))}}(),ExtendedTriangle.prototype.distanceToPoint=function(){const target=new Vector3;return function(point){return this.closestPointToPoint(point,target),point.distanceTo(target)}}(),ExtendedTriangle.prototype.distanceToTriangle=function(){const point=new Vector3,point2=new Vector3,cornerFields=["a","b","c"],line1=new Line3,line2=new Line3;return function(other,target1=null,target2=null){const lineTarget=target1||target2?line1:null;if(this.intersectsTriangle(other,lineTarget))return(target1||target2)&&(target1&&lineTarget.getCenter(target1),target2&&lineTarget.getCenter(target2)),0;let closestDistanceSq=1/0;for(let i=0;i<3;i++){let dist;const field=cornerFields[i],otherVec=other[field];this.closestPointToPoint(otherVec,point),dist=otherVec.distanceToSquared(point),dist<closestDistanceSq&&(closestDistanceSq=dist,target1&&target1.copy(point),target2&&target2.copy(otherVec));const thisVec=this[field];other.closestPointToPoint(thisVec,point),dist=thisVec.distanceToSquared(point),dist<closestDistanceSq&&(closestDistanceSq=dist,target1&&target1.copy(thisVec),target2&&target2.copy(point))}for(let i=0;i<3;i++){line1.set(this[cornerFields[i]],this[cornerFields[(i+1)%3]]);for(let i2=0;i2<3;i2++){line2.set(other[cornerFields[i2]],other[cornerFields[(i2+1)%3]]),closestPointsSegmentToSegment(line1,line2,point,point2);const dist=point.distanceToSquared(point2);dist<closestDistanceSq&&(closestDistanceSq=dist,target1&&target1.copy(point),target2&&target2.copy(point2))}}return Math.sqrt(closestDistanceSq)}}();export{ExtendedTriangle};
2
+ //# sourceMappingURL=ExtendedTriangle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExtendedTriangle.js","sources":["../../../../../../../node_modules/three-mesh-bvh/src/math/ExtendedTriangle.js"],"sourcesContent":["import { Triangle, Vector3, Vector2, Line3, Plane } from 'three';\nimport { SeparatingAxisBounds } from './SeparatingAxisBounds.js';\nimport { closestPointsSegmentToSegment, sphereIntersectTriangle } from './MathUtilities.js';\n\nconst componentKeys = [ 'x', 'y', 'z' ];\nconst ZERO_EPSILON = 1e-15;\nconst ZERO_EPSILON_SQR = ZERO_EPSILON * ZERO_EPSILON;\nfunction isNearZero( value ) {\n\n\treturn Math.abs( value ) < ZERO_EPSILON;\n\n}\n\nexport class ExtendedTriangle extends Triangle {\n\n\tconstructor( ...args ) {\n\n\t\tsuper( ...args );\n\n\t\tthis.isExtendedTriangle = true;\n\t\tthis.satAxes = new Array( 4 ).fill().map( () => new Vector3() );\n\t\tthis.satBounds = new Array( 4 ).fill().map( () => new SeparatingAxisBounds() );\n\t\tthis.points = [ this.a, this.b, this.c ];\n\t\tthis.plane = new Plane();\n\t\tthis.isDegenerateIntoSegment = false;\n\t\tthis.isDegenerateIntoPoint = false;\n\t\tthis.degenerateSegment = new Line3();\n\t\tthis.needsUpdate = true;\n\n\t}\n\n\tintersectsSphere( sphere ) {\n\n\t\treturn sphereIntersectTriangle( sphere, this );\n\n\t}\n\n\tupdate() {\n\n\t\tconst a = this.a;\n\t\tconst b = this.b;\n\t\tconst c = this.c;\n\t\tconst points = this.points;\n\n\t\tconst satAxes = this.satAxes;\n\t\tconst satBounds = this.satBounds;\n\n\t\tconst axis0 = satAxes[ 0 ];\n\t\tconst sab0 = satBounds[ 0 ];\n\t\tthis.getNormal( axis0 );\n\t\tsab0.setFromPoints( axis0, points );\n\n\t\tconst axis1 = satAxes[ 1 ];\n\t\tconst sab1 = satBounds[ 1 ];\n\t\taxis1.subVectors( a, b );\n\t\tsab1.setFromPoints( axis1, points );\n\n\t\tconst axis2 = satAxes[ 2 ];\n\t\tconst sab2 = satBounds[ 2 ];\n\t\taxis2.subVectors( b, c );\n\t\tsab2.setFromPoints( axis2, points );\n\n\t\tconst axis3 = satAxes[ 3 ];\n\t\tconst sab3 = satBounds[ 3 ];\n\t\taxis3.subVectors( c, a );\n\t\tsab3.setFromPoints( axis3, points );\n\n\t\tconst lengthAB = axis1.length();\n\t\tconst lengthBC = axis2.length();\n\t\tconst lengthCA = axis3.length();\n\n\t\tthis.isDegenerateIntoPoint = false;\n\t\tthis.isDegenerateIntoSegment = false;\n\n\t\tif ( lengthAB < ZERO_EPSILON ) {\n\n\t\t\tif ( lengthBC < ZERO_EPSILON || lengthCA < ZERO_EPSILON ) {\n\n\t\t\t\tthis.isDegenerateIntoPoint = true;\n\n\t\t\t} else {\n\n\t\t\t\tthis.isDegenerateIntoSegment = true;\n\t\t\t\tthis.degenerateSegment.start.copy( a );\n\t\t\t\tthis.degenerateSegment.end.copy( c );\n\n\t\t\t}\n\n\t\t} else if ( lengthBC < ZERO_EPSILON ) {\n\n\t\t\tif ( lengthCA < ZERO_EPSILON ) {\n\n\t\t\t\tthis.isDegenerateIntoPoint = true;\n\n\t\t\t} else {\n\n\t\t\t\tthis.isDegenerateIntoSegment = true;\n\t\t\t\tthis.degenerateSegment.start.copy( b );\n\t\t\t\tthis.degenerateSegment.end.copy( a );\n\n\t\t\t}\n\n\t\t} else if ( lengthCA < ZERO_EPSILON ) {\n\n\t\t\tthis.isDegenerateIntoSegment = true;\n\t\t\tthis.degenerateSegment.start.copy( c );\n\t\t\tthis.degenerateSegment.end.copy( b );\n\n\t\t}\n\n\t\tthis.plane.setFromNormalAndCoplanarPoint( axis0, a );\n\n\t\tthis.needsUpdate = false;\n\n\t}\n\n}\n\nExtendedTriangle.prototype.closestPointToSegment = ( function () {\n\n\tconst point1 = /* @__PURE__ */ new Vector3();\n\tconst point2 = /* @__PURE__ */ new Vector3();\n\tconst edge = /* @__PURE__ */ new Line3();\n\n\treturn function distanceToSegment( segment, target1 = null, target2 = null ) {\n\n\t\tconst { start, end } = segment;\n\t\tconst points = this.points;\n\t\tlet distSq;\n\t\tlet closestDistanceSq = Infinity;\n\n\t\t// check the triangle edges\n\t\tfor ( let i = 0; i < 3; i ++ ) {\n\n\t\t\tconst nexti = ( i + 1 ) % 3;\n\t\t\tedge.start.copy( points[ i ] );\n\t\t\tedge.end.copy( points[ nexti ] );\n\n\t\t\tclosestPointsSegmentToSegment( edge, segment, point1, point2 );\n\n\t\t\tdistSq = point1.distanceToSquared( point2 );\n\t\t\tif ( distSq < closestDistanceSq ) {\n\n\t\t\t\tclosestDistanceSq = distSq;\n\t\t\t\tif ( target1 ) target1.copy( point1 );\n\t\t\t\tif ( target2 ) target2.copy( point2 );\n\n\t\t\t}\n\n\t\t}\n\n\t\t// check end points\n\t\tthis.closestPointToPoint( start, point1 );\n\t\tdistSq = start.distanceToSquared( point1 );\n\t\tif ( distSq < closestDistanceSq ) {\n\n\t\t\tclosestDistanceSq = distSq;\n\t\t\tif ( target1 ) target1.copy( point1 );\n\t\t\tif ( target2 ) target2.copy( start );\n\n\t\t}\n\n\t\tthis.closestPointToPoint( end, point1 );\n\t\tdistSq = end.distanceToSquared( point1 );\n\t\tif ( distSq < closestDistanceSq ) {\n\n\t\t\tclosestDistanceSq = distSq;\n\t\t\tif ( target1 ) target1.copy( point1 );\n\t\t\tif ( target2 ) target2.copy( end );\n\n\t\t}\n\n\t\treturn Math.sqrt( closestDistanceSq );\n\n\t};\n\n} )();\n\nExtendedTriangle.prototype.intersectsTriangle = ( function () {\n\n\tconst saTri2 = /* @__PURE__ */ new ExtendedTriangle();\n\tconst cachedSatBounds = /* @__PURE__ */ new SeparatingAxisBounds();\n\tconst cachedSatBounds2 = /* @__PURE__ */ new SeparatingAxisBounds();\n\tconst tmpVec = /* @__PURE__ */ new Vector3();\n\tconst dir1 = /* @__PURE__ */ new Vector3();\n\tconst dir2 = /* @__PURE__ */ new Vector3();\n\tconst tempDir = /* @__PURE__ */ new Vector3();\n\tconst edge1 = /* @__PURE__ */ new Line3();\n\tconst edge2 = /* @__PURE__ */ new Line3();\n\tconst tempPoint = /* @__PURE__ */ new Vector3();\n\tconst bounds1 = /* @__PURE__ */ new Vector2();\n\tconst bounds2 = /* @__PURE__ */ new Vector2();\n\n\tfunction coplanarIntersectsTriangle( self, other, target, suppressLog ) {\n\n\t\t// Perform separating axis intersection test only for coplanar triangles\n\t\t// There should be at least one non-degenerate triangle when calling this\n\t\t// Otherwise we won't know the plane normal\n\t\tconst planeNormal = tmpVec;\n\t\tif ( ! self.isDegenerateIntoPoint && ! self.isDegenerateIntoSegment ) {\n\n\t\t\tplaneNormal.copy( self.plane.normal );\n\n\t\t} else {\n\n\t\t\tplaneNormal.copy( other.plane.normal );\n\n\t\t}\n\n\t\tconst satBounds1 = self.satBounds;\n\t\tconst satAxes1 = self.satAxes;\n\t\tfor ( let i = 1; i < 4; i ++ ) {\n\n\t\t\tconst sb = satBounds1[ i ];\n\t\t\tconst sa = satAxes1[ i ];\n\t\t\tcachedSatBounds.setFromPoints( sa, other.points );\n\t\t\tif ( sb.isSeparated( cachedSatBounds ) ) return false;\n\n\t\t\ttempDir.copy( planeNormal ).cross( sa );\n\t\t\tcachedSatBounds.setFromPoints( tempDir, self.points );\n\t\t\tcachedSatBounds2.setFromPoints( tempDir, other.points );\n\t\t\tif ( cachedSatBounds.isSeparated( cachedSatBounds2 ) ) return false;\n\n\t\t}\n\n\t\tconst satBounds2 = other.satBounds;\n\t\tconst satAxes2 = other.satAxes;\n\t\tfor ( let i = 1; i < 4; i ++ ) {\n\n\t\t\tconst sb = satBounds2[ i ];\n\t\t\tconst sa = satAxes2[ i ];\n\t\t\tcachedSatBounds.setFromPoints( sa, self.points );\n\t\t\tif ( sb.isSeparated( cachedSatBounds ) ) return false;\n\n\t\t\ttempDir.crossVectors( planeNormal, sa );\n\t\t\tcachedSatBounds.setFromPoints( tempDir, self.points );\n\t\t\tcachedSatBounds2.setFromPoints( tempDir, other.points );\n\t\t\tif ( cachedSatBounds.isSeparated( cachedSatBounds2 ) ) return false;\n\n\t\t}\n\n\t\tif ( target ) {\n\n\t\t\t// TODO find two points that intersect on the edges and make that the result\n\t\t\tif ( ! suppressLog ) {\n\n\t\t\t\tconsole.warn( 'ExtendedTriangle.intersectsTriangle: Triangles are coplanar which does not support an output edge. Setting edge to 0, 0, 0.' );\n\n\t\t\t}\n\n\t\t\ttarget.start.set( 0, 0, 0 );\n\t\t\ttarget.end.set( 0, 0, 0 );\n\n\t\t}\n\n\t\treturn true;\n\n\t}\n\n\tfunction findSingleBounds( a, b, c, aProj, bProj, cProj, aDist, bDist, cDist, bounds, edge ) {\n\n\t\tlet t = aDist / ( aDist - bDist );\n\t\tbounds.x = aProj + ( bProj - aProj ) * t;\n\t\tedge.start.subVectors( b, a ).multiplyScalar( t ).add( a );\n\n\t\tt = aDist / ( aDist - cDist );\n\t\tbounds.y = aProj + ( cProj - aProj ) * t;\n\t\tedge.end.subVectors( c, a ).multiplyScalar( t ).add( a );\n\n\t}\n\n\t/**\n\t * Calculates intersection segment of a triangle with intersection line.\n\t * Intersection line is snapped to its biggest component.\n\t * And triangle points are passed as a projection on that component.\n\t * @returns whether this is a coplanar case or not\n\t */\n\tfunction findIntersectionLineBounds( self, aProj, bProj, cProj, abDist, acDist, aDist, bDist, cDist, bounds, edge ) {\n\n\t\tif ( abDist > 0 ) {\n\n\t\t\t// then bcDist < 0\n\t\t\tfindSingleBounds( self.c, self.a, self.b, cProj, aProj, bProj, cDist, aDist, bDist, bounds, edge );\n\n\t\t} else if ( acDist > 0 ) {\n\n\t\t\tfindSingleBounds( self.b, self.a, self.c, bProj, aProj, cProj, bDist, aDist, cDist, bounds, edge );\n\n\t\t} else if ( bDist * cDist > 0 || aDist != 0 ) {\n\n\t\t\tfindSingleBounds( self.a, self.b, self.c, aProj, bProj, cProj, aDist, bDist, cDist, bounds, edge );\n\n\t\t} else if ( bDist != 0 ) {\n\n\t\t\tfindSingleBounds( self.b, self.a, self.c, bProj, aProj, cProj, bDist, aDist, cDist, bounds, edge );\n\n\t\t} else if ( cDist != 0 ) {\n\n\t\t\tfindSingleBounds( self.c, self.a, self.b, cProj, aProj, bProj, cDist, aDist, bDist, bounds, edge );\n\n\t\t} else {\n\n\t\t\treturn true;\n\n\t\t}\n\n\t\treturn false;\n\n\t}\n\n\tfunction intersectTriangleSegment( triangle, degenerateTriangle, target, suppressLog ) {\n\n\t\tconst segment = degenerateTriangle.degenerateSegment;\n\t\tconst startDist = triangle.plane.distanceToPoint( segment.start );\n\t\tconst endDist = triangle.plane.distanceToPoint( segment.end );\n\t\tif ( isNearZero( startDist ) ) {\n\n\t\t\tif ( isNearZero( endDist ) ) {\n\n\t\t\t\treturn coplanarIntersectsTriangle( triangle, degenerateTriangle, target, suppressLog );\n\n\t\t\t} else {\n\n\t\t\t\t// Is this fine to modify target even if there might be no intersection?\n\t\t\t\tif ( target ) {\n\n\t\t\t\t\ttarget.start.copy( segment.start );\n\t\t\t\t\ttarget.end.copy( segment.start );\n\n\t\t\t\t}\n\n\t\t\t\treturn triangle.containsPoint( segment.start );\n\n\t\t\t}\n\n\t\t} else if ( isNearZero( endDist ) ) {\n\n\t\t\tif ( target ) {\n\n\t\t\t\ttarget.start.copy( segment.end );\n\t\t\t\ttarget.end.copy( segment.end );\n\n\t\t\t}\n\n\t\t\treturn triangle.containsPoint( segment.end );\n\n\t\t} else {\n\n\t\t\tif ( triangle.plane.intersectLine( segment, tmpVec ) != null ) {\n\n\t\t\t\tif ( target ) {\n\n\t\t\t\t\ttarget.start.copy( tmpVec );\n\t\t\t\t\ttarget.end.copy( tmpVec );\n\n\t\t\t\t}\n\n\t\t\t\treturn triangle.containsPoint( tmpVec );\n\n\t\t\t} else {\n\n\t\t\t\treturn false;\n\n\t\t\t}\n\n\t\t}\n\n\t}\n\n\tfunction intersectTrianglePoint( triangle, degenerateTriangle, target ) {\n\n\t\tconst point = degenerateTriangle.a;\n\n\t\tif ( isNearZero( triangle.plane.distanceToPoint( point ) ) && triangle.containsPoint( point ) ) {\n\n\t\t\tif ( target ) {\n\n\t\t\t\ttarget.start.copy( point );\n\t\t\t\ttarget.end.copy( point );\n\n\t\t\t}\n\n\t\t\treturn true;\n\n\t\t} else {\n\n\t\t\treturn false;\n\n\t\t}\n\n\t}\n\n\tfunction intersectSegmentPoint( segmentTri, pointTri, target ) {\n\n\t\tconst segment = segmentTri.degenerateSegment;\n\t\tconst point = pointTri.a;\n\n\t\tsegment.closestPointToPoint( point, true, tmpVec );\n\n\t\tif ( point.distanceToSquared( tmpVec ) < ZERO_EPSILON_SQR ) {\n\n\t\t\tif ( target ) {\n\n\t\t\t\ttarget.start.copy( point );\n\t\t\t\ttarget.end.copy( point );\n\n\t\t\t}\n\n\t\t\treturn true;\n\n\t\t} else {\n\n\t\t\treturn false;\n\n\t\t}\n\n\t}\n\n\tfunction handleDegenerateCases( self, other, target, suppressLog ) {\n\n\t\tif ( self.isDegenerateIntoSegment ) {\n\n\t\t\tif ( other.isDegenerateIntoSegment ) {\n\n\t\t\t\t// TODO: replace with Line.distanceSqToLine3 after r179\n\t\t\t\tconst segment1 = self.degenerateSegment;\n\t\t\t\tconst segment2 = other.degenerateSegment;\n\t\t\t\tconst delta1 = dir1;\n\t\t\t\tconst delta2 = dir2;\n\t\t\t\tsegment1.delta( delta1 );\n\t\t\t\tsegment2.delta( delta2 );\n\t\t\t\tconst startDelta = tmpVec.subVectors( segment2.start, segment1.start );\n\n\t\t\t\tconst denom = delta1.x * delta2.y - delta1.y * delta2.x;\n\t\t\t\tif ( isNearZero( denom ) ) {\n\n\t\t\t\t\treturn false;\n\n\t\t\t\t}\n\n\t\t\t\tconst t = ( startDelta.x * delta2.y - startDelta.y * delta2.x ) / denom;\n\t\t\t\tconst u = - ( delta1.x * startDelta.y - delta1.y * startDelta.x ) / denom;\n\n\t\t\t\tif ( t < 0 || t > 1 || u < 0 || u > 1 ) {\n\n\t\t\t\t\treturn false;\n\n\t\t\t\t}\n\n\t\t\t\tconst z1 = segment1.start.z + delta1.z * t;\n\t\t\t\tconst z2 = segment2.start.z + delta2.z * u;\n\n\t\t\t\tif ( isNearZero( z1 - z2 ) ) {\n\n\t\t\t\t\tif ( target ) {\n\n\t\t\t\t\t\ttarget.start.copy( segment1.start ).addScaledVector( delta1, t );\n\t\t\t\t\t\ttarget.end.copy( segment1.start ).addScaledVector( delta1, t );\n\n\t\t\t\t\t}\n\n\t\t\t\t\treturn true;\n\n\t\t\t\t} else {\n\n\t\t\t\t\treturn false;\n\n\t\t\t\t}\n\n\t\t\t} else if ( other.isDegenerateIntoPoint ) {\n\n\t\t\t\treturn intersectSegmentPoint( self, other, target );\n\n\t\t\t} else {\n\n\t\t\t\treturn intersectTriangleSegment( other, self, target, suppressLog );\n\n\t\t\t}\n\n\t\t} else if ( self.isDegenerateIntoPoint ) {\n\n\t\t\tif ( other.isDegenerateIntoPoint ) {\n\n\t\t\t\tif ( other.a.distanceToSquared( self.a ) < ZERO_EPSILON_SQR ) {\n\n\t\t\t\t\tif ( target ) {\n\n\t\t\t\t\t\ttarget.start.copy( self.a );\n\t\t\t\t\t\ttarget.end.copy( self.a );\n\n\t\t\t\t\t}\n\n\t\t\t\t\treturn true;\n\n\t\t\t\t} else {\n\n\t\t\t\t\treturn false;\n\n\t\t\t\t}\n\n\t\t\t} else if ( other.isDegenerateIntoSegment ) {\n\n\t\t\t\treturn intersectSegmentPoint( other, self, target );\n\n\t\t\t} else {\n\n\t\t\t\treturn intersectTrianglePoint( other, self, target );\n\n\t\t\t}\n\n\t\t} else {\n\n\t\t\tif ( other.isDegenerateIntoPoint ) {\n\n\t\t\t\treturn intersectTrianglePoint( self, other, target );\n\n\t\t\t} else if ( other.isDegenerateIntoSegment ) {\n\n\t\t\t\treturn intersectTriangleSegment( self, other, target, suppressLog );\n\n\t\t\t} /* else this is a general triangle-traingle case, so return undefined */\n\n\t\t}\n\n\t}\n\n\t/* TODO: If the triangles are coplanar and intersecting the target is nonsensical. It should at least\n\t * be a line contained by both triangles if not a different special case somehow represented in the return result.\n\t *\n\t * General triangle intersection code is based on Moller's algorithm from here: https://web.stanford.edu/class/cs277/resources/papers/Moller1997b.pdf\n\t * Reference implementation from here: https://github.com/erich666/jgt-code/blob/master/Volume_08/Number_1/Shen2003/tri_tri_test/include/Moller97.c#L570\n\t * All degeneracies are handled before the general algorithm.\n\t * Coplanar check is different from Moller's and based on SAT tests.\n\t */\n\treturn function intersectsTriangle( other, target = null, suppressLog = false ) {\n\n\t\tif ( this.needsUpdate ) {\n\n\t\t\tthis.update();\n\n\t\t}\n\n\t\tif ( ! other.isExtendedTriangle ) {\n\n\t\t\tsaTri2.copy( other );\n\t\t\tsaTri2.update();\n\t\t\tother = saTri2;\n\n\t\t} else if ( other.needsUpdate ) {\n\n\t\t\tother.update();\n\n\t\t}\n\n\t\tconst res = handleDegenerateCases( this, other, target, suppressLog );\n\t\tif ( res !== undefined ) {\n\n\t\t\treturn res;\n\n\t\t}\n\n\t\tconst plane1 = this.plane;\n\t\tconst plane2 = other.plane;\n\n\t\tlet a1Dist = plane2.distanceToPoint( this.a );\n\t\tlet b1Dist = plane2.distanceToPoint( this.b );\n\t\tlet c1Dist = plane2.distanceToPoint( this.c );\n\n\t\tif ( isNearZero( a1Dist ) )\n\t\t\ta1Dist = 0;\n\n\t\tif ( isNearZero( b1Dist ) )\n\t\t\tb1Dist = 0;\n\n\t\tif ( isNearZero( c1Dist ) )\n\t\t\tc1Dist = 0;\n\n\t\tconst a1b1Dist = a1Dist * b1Dist;\n\t\tconst a1c1Dist = a1Dist * c1Dist;\n\t\tif ( a1b1Dist > 0 && a1c1Dist > 0 ) {\n\n\t\t\treturn false;\n\n\t\t}\n\n\t\tlet a2Dist = plane1.distanceToPoint( other.a );\n\t\tlet b2Dist = plane1.distanceToPoint( other.b );\n\t\tlet c2Dist = plane1.distanceToPoint( other.c );\n\n\t\tif ( isNearZero( a2Dist ) )\n\t\t\ta2Dist = 0;\n\n\t\tif ( isNearZero( b2Dist ) )\n\t\t\tb2Dist = 0;\n\n\t\tif ( isNearZero( c2Dist ) )\n\t\t\tc2Dist = 0;\n\n\t\tconst a2b2Dist = a2Dist * b2Dist;\n\t\tconst a2c2Dist = a2Dist * c2Dist;\n\t\tif ( a2b2Dist > 0 && a2c2Dist > 0 ) {\n\n\t\t\treturn false;\n\n\t\t}\n\n\t\tdir1.copy( plane1.normal );\n\t\tdir2.copy( plane2.normal );\n\t\tconst intersectionLine = dir1.cross( dir2 );\n\n\t\tlet componentIndex = 0;\n\t\tlet maxComponent = Math.abs( intersectionLine.x );\n\t\tconst comp1 = Math.abs( intersectionLine.y );\n\t\tif ( comp1 > maxComponent ) {\n\n\t\t\tmaxComponent = comp1;\n\t\t\tcomponentIndex = 1;\n\n\t\t}\n\n\t\tconst comp2 = Math.abs( intersectionLine.z );\n\t\tif ( comp2 > maxComponent ) {\n\n\t\t\tcomponentIndex = 2;\n\n\t\t}\n\n\t\tconst key = componentKeys[ componentIndex ];\n\t\tconst a1Proj = this.a[ key ];\n\t\tconst b1Proj = this.b[ key ];\n\t\tconst c1Proj = this.c[ key ];\n\n\t\tconst a2Proj = other.a[ key ];\n\t\tconst b2Proj = other.b[ key ];\n\t\tconst c2Proj = other.c[ key ];\n\n\t\tif ( findIntersectionLineBounds( this, a1Proj, b1Proj, c1Proj, a1b1Dist, a1c1Dist, a1Dist, b1Dist, c1Dist, bounds1, edge1 ) ) {\n\n\t\t\treturn coplanarIntersectsTriangle( this, other, target, suppressLog );\n\n\t\t}\n\n\t\tif ( findIntersectionLineBounds( other, a2Proj, b2Proj, c2Proj, a2b2Dist, a2c2Dist, a2Dist, b2Dist, c2Dist, bounds2, edge2 ) ) {\n\n\t\t\treturn coplanarIntersectsTriangle( this, other, target, suppressLog );\n\n\t\t}\n\n\t\tif ( bounds1.y < bounds1.x ) {\n\n\t\t\tconst tmp = bounds1.y;\n\t\t\tbounds1.y = bounds1.x;\n\t\t\tbounds1.x = tmp;\n\n\t\t\ttempPoint.copy( edge1.start );\n\t\t\tedge1.start.copy( edge1.end );\n\t\t\tedge1.end.copy( tempPoint );\n\n\t\t}\n\n\t\tif ( bounds2.y < bounds2.x ) {\n\n\t\t\tconst tmp = bounds2.y;\n\t\t\tbounds2.y = bounds2.x;\n\t\t\tbounds2.x = tmp;\n\n\t\t\ttempPoint.copy( edge2.start );\n\t\t\tedge2.start.copy( edge2.end );\n\t\t\tedge2.end.copy( tempPoint );\n\n\t\t}\n\n\t\tif ( bounds1.y < bounds2.x || bounds2.y < bounds1.x ) {\n\n\t\t\treturn false;\n\n\t\t}\n\n\t\tif ( target ) {\n\n\t\t\tif ( bounds2.x > bounds1.x ) {\n\n\t\t\t\ttarget.start.copy( edge2.start );\n\n\t\t\t} else {\n\n\t\t\t\ttarget.start.copy( edge1.start );\n\n\t\t\t}\n\n\t\t\tif ( bounds2.y < bounds1.y ) {\n\n\t\t\t\ttarget.end.copy( edge2.end );\n\n\t\t\t} else {\n\n\t\t\t\ttarget.end.copy( edge1.end );\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn true;\n\n\t};\n\n} )();\n\n\nExtendedTriangle.prototype.distanceToPoint = ( function () {\n\n\tconst target = /* @__PURE__ */ new Vector3();\n\treturn function distanceToPoint( point ) {\n\n\t\tthis.closestPointToPoint( point, target );\n\t\treturn point.distanceTo( target );\n\n\t};\n\n} )();\n\n\nExtendedTriangle.prototype.distanceToTriangle = ( function () {\n\n\tconst point = /* @__PURE__ */ new Vector3();\n\tconst point2 = /* @__PURE__ */ new Vector3();\n\tconst cornerFields = [ 'a', 'b', 'c' ];\n\tconst line1 = /* @__PURE__ */ new Line3();\n\tconst line2 = /* @__PURE__ */ new Line3();\n\n\treturn function distanceToTriangle( other, target1 = null, target2 = null ) {\n\n\t\tconst lineTarget = target1 || target2 ? line1 : null;\n\t\tif ( this.intersectsTriangle( other, lineTarget ) ) {\n\n\t\t\tif ( target1 || target2 ) {\n\n\t\t\t\tif ( target1 ) lineTarget.getCenter( target1 );\n\t\t\t\tif ( target2 ) lineTarget.getCenter( target2 );\n\n\t\t\t}\n\n\t\t\treturn 0;\n\n\t\t}\n\n\t\tlet closestDistanceSq = Infinity;\n\n\t\t// check all point distances\n\t\tfor ( let i = 0; i < 3; i ++ ) {\n\n\t\t\tlet dist;\n\t\t\tconst field = cornerFields[ i ];\n\t\t\tconst otherVec = other[ field ];\n\t\t\tthis.closestPointToPoint( otherVec, point );\n\n\t\t\tdist = otherVec.distanceToSquared( point );\n\n\t\t\tif ( dist < closestDistanceSq ) {\n\n\t\t\t\tclosestDistanceSq = dist;\n\t\t\t\tif ( target1 ) target1.copy( point );\n\t\t\t\tif ( target2 ) target2.copy( otherVec );\n\n\t\t\t}\n\n\n\t\t\tconst thisVec = this[ field ];\n\t\t\tother.closestPointToPoint( thisVec, point );\n\n\t\t\tdist = thisVec.distanceToSquared( point );\n\n\t\t\tif ( dist < closestDistanceSq ) {\n\n\t\t\t\tclosestDistanceSq = dist;\n\t\t\t\tif ( target1 ) target1.copy( thisVec );\n\t\t\t\tif ( target2 ) target2.copy( point );\n\n\t\t\t}\n\n\t\t}\n\n\t\tfor ( let i = 0; i < 3; i ++ ) {\n\n\t\t\tconst f11 = cornerFields[ i ];\n\t\t\tconst f12 = cornerFields[ ( i + 1 ) % 3 ];\n\t\t\tline1.set( this[ f11 ], this[ f12 ] );\n\t\t\tfor ( let i2 = 0; i2 < 3; i2 ++ ) {\n\n\t\t\t\tconst f21 = cornerFields[ i2 ];\n\t\t\t\tconst f22 = cornerFields[ ( i2 + 1 ) % 3 ];\n\t\t\t\tline2.set( other[ f21 ], other[ f22 ] );\n\n\t\t\t\tclosestPointsSegmentToSegment( line1, line2, point, point2 );\n\n\t\t\t\tconst dist = point.distanceToSquared( point2 );\n\t\t\t\tif ( dist < closestDistanceSq ) {\n\n\t\t\t\t\tclosestDistanceSq = dist;\n\t\t\t\t\tif ( target1 ) target1.copy( point );\n\t\t\t\t\tif ( target2 ) target2.copy( point2 );\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn Math.sqrt( closestDistanceSq );\n\n\t};\n\n} )();\n"],"names":["componentKeys","isNearZero","value","Math","abs","ExtendedTriangle","Triangle","constructor","args","super","this","isExtendedTriangle","satAxes","Array","fill","map","Vector3","satBounds","SeparatingAxisBounds","points","a","b","c","plane","Plane","isDegenerateIntoSegment","isDegenerateIntoPoint","degenerateSegment","Line3","needsUpdate","intersectsSphere","sphere","sphereIntersectTriangle","update","axis0","sab0","getNormal","setFromPoints","axis1","sab1","subVectors","axis2","sab2","axis3","sab3","lengthAB","length","lengthBC","lengthCA","start","copy","end","setFromNormalAndCoplanarPoint","prototype","closestPointToSegment","point1","point2","edge","segment","target1","target2","distSq","closestDistanceSq","Infinity","i","nexti","closestPointsSegmentToSegment","distanceToSquared","closestPointToPoint","sqrt","intersectsTriangle","saTri2","cachedSatBounds","cachedSatBounds2","tmpVec","dir1","dir2","tempDir","edge1","edge2","tempPoint","bounds1","Vector2","bounds2","coplanarIntersectsTriangle","self","other","target","suppressLog","planeNormal","normal","satBounds1","satAxes1","sb","sa","isSeparated","cross","satBounds2","satAxes2","crossVectors","console","warn","set","findSingleBounds","aProj","bProj","cProj","aDist","bDist","cDist","bounds","t","x","multiplyScalar","add","y","findIntersectionLineBounds","abDist","acDist","intersectTriangleSegment","triangle","degenerateTriangle","startDist","distanceToPoint","endDist","containsPoint","intersectLine","intersectTrianglePoint","point","intersectSegmentPoint","segmentTri","pointTri","ZERO_EPSILON","res","segment1","segment2","delta1","delta2","delta","startDelta","denom","u","z","addScaledVector","handleDegenerateCases","undefined","plane1","plane2","a1Dist","b1Dist","c1Dist","a1b1Dist","a1c1Dist","a2Dist","b2Dist","c2Dist","a2b2Dist","a2c2Dist","intersectionLine","componentIndex","maxComponent","comp1","key","a2Proj","b2Proj","c2Proj","tmp","distanceTo","distanceToTriangle","cornerFields","line1","line2","lineTarget","getCenter","dist","field","otherVec","thisVec","i2"],"mappings":"0MAIA,MAAMA,cAAgB,CAAE,IAAK,IAAK,KAGlC,SAASC,WAAYC,OAEpB,OAAOC,KAAKC,IAAKF,OAJG,KAMrB,CAEO,MAAMG,yBAAyBC,SAErC,WAAAC,IAAgBC,MAEfC,SAAUD,MAEVE,KAAKC,oBAAqB,EAC1BD,KAAKE,QAAU,IAAIC,MAAO,GAAIC,OAAOC,IAAK,IAAM,IAAIC,SACpDN,KAAKO,UAAY,IAAIJ,MAAO,GAAIC,OAAOC,IAAK,IAAM,IAAIG,sBACtDR,KAAKS,OAAS,CAAET,KAAKU,EAAGV,KAAKW,EAAGX,KAAKY,GACrCZ,KAAKa,MAAQ,IAAIC,MACjBd,KAAKe,yBAA0B,EAC/Bf,KAAKgB,uBAAwB,EAC7BhB,KAAKiB,kBAAoB,IAAIC,MAC7BlB,KAAKmB,aAAc,CAEpB,CAEA,gBAAAC,CAAkBC,QAEjB,OAAOC,wBAAyBD,OAAQrB,KAEzC,CAEA,MAAAuB,GAEC,M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9G,kBAAmB6D,OAE7B8C,KAAOhH,oBAEXA,kBAAoBgH,KACfnH,SAAUA,QAAQT,KAAM+H,SACxBrH,SAAUA,QAAQV,KAAM8E,OAI/B,CAEA,IAAM,IAAIhE,EAAI,EAAGA,EAAI,EAAGA,IAAO,CAI9B0G,MAAMpE,IAAK5F,KAFC+J,aAAczG,IAEFtD,KADZ+J,cAAgBzG,EAAI,GAAM,KAEtC,IAAM,IAAIkH,GAAK,EAAGA,GAAK,EAAGA,KAAQ,CAIjCP,MAAMrE,IAAKhB,MAFCmF,aAAcS,KAED5F,MADbmF,cAAgBS,GAAK,GAAM,KAGvChH,8BAA+BwG,MAAOC,MAAO3C,MAAOxE,QAEpD,MAAMsH,KAAO9C,MAAM7D,kBAAmBX,QACjCsH,KAAOhH,oBAEXA,kBAAoBgH,KACfnH,SAAUA,QAAQT,KAAM8E,OACxBpE,SAAUA,QAAQV,KAAMM,QAI/B,CAED,CAEA,OAAOrD,KAAKkE,KAAMP,kBAEnB,CAEA,CA1F+C","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{Line3,Vector3,Plane,Vector2}from"three";const closestPointLineToLine=function(){const dir1=new Vector3,dir2=new Vector3,v02=new Vector3;return function(l1,l2,result){const v10=dir1,v32=dir2;v02.subVectors(l1.start,l2.start),dir1.subVectors(l1.end,l1.start),dir2.subVectors(l2.end,l2.start);const d0232=v02.dot(v32),d3210=v32.dot(v10),d3232=v32.dot(v32),d0210=v02.dot(v10),denom=v10.dot(v10)*d3232-d3210*d3210;let d,d2;d=0!==denom?(d0232*d3210-d0210*d3232)/denom:0,d2=(d0232+d*d3210)/d3232,result.x=d,result.y=d2}}(),closestPointsSegmentToSegment=function(){const paramResult=new Vector2,temp1=new Vector3,temp2=new Vector3;return function(l1,l2,target1,target2){closestPointLineToLine(l1,l2,paramResult);let d=paramResult.x,d2=paramResult.y;if(d>=0&&d<=1&&d2>=0&&d2<=1)return l1.at(d,target1),void l2.at(d2,target2);if(d>=0&&d<=1)return l2.at(d2<0?0:1,target2),void l1.closestPointToPoint(target2,!0,target1);if(d2>=0&&d2<=1)return l1.at(d<0?0:1,target1),void l2.closestPointToPoint(target1,!0,target2);{let p,p2;p=d<0?l1.start:l1.end,p2=d2<0?l2.start:l2.end;const closestPoint=temp1,closestPoint2=temp2;return l1.closestPointToPoint(p2,!0,temp1),l2.closestPointToPoint(p,!0,temp2),closestPoint.distanceToSquared(p2)<=closestPoint2.distanceToSquared(p)?(target1.copy(closestPoint),void target2.copy(p2)):(target1.copy(p),void target2.copy(closestPoint2))}}}(),sphereIntersectTriangle=function(){const closestPointTemp=new Vector3,projectedPointTemp=new Vector3,planeTemp=new Plane,lineTemp=new Line3;return function(sphere,triangle){const{radius:radius,center:center}=sphere,{a:a,b:b,c:c}=triangle;if(lineTemp.start=a,lineTemp.end=b,lineTemp.closestPointToPoint(center,!0,closestPointTemp).distanceTo(center)<=radius)return!0;if(lineTemp.start=a,lineTemp.end=c,lineTemp.closestPointToPoint(center,!0,closestPointTemp).distanceTo(center)<=radius)return!0;if(lineTemp.start=b,lineTemp.end=c,lineTemp.closestPointToPoint(center,!0,closestPointTemp).distanceTo(center)<=radius)return!0;const plane=triangle.getPlane(planeTemp);if(Math.abs(plane.distanceToPoint(center))<=radius){const pp=plane.projectPoint(center,projectedPointTemp);if(triangle.containsPoint(pp))return!0}return!1}}();export{closestPointLineToLine,closestPointsSegmentToSegment,sphereIntersectTriangle};
2
+ //# sourceMappingURL=MathUtilities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MathUtilities.js","sources":["../../../../../../../node_modules/three-mesh-bvh/src/math/MathUtilities.js"],"sourcesContent":["import { Vector3, Vector2, Plane, Line3 } from 'three';\n\nexport const closestPointLineToLine = ( function () {\n\n\t// https://github.com/juj/MathGeoLib/blob/master/src/Geometry/Line.cpp#L56\n\tconst dir1 = /* @__PURE__ */ new Vector3();\n\tconst dir2 = /* @__PURE__ */ new Vector3();\n\tconst v02 = /* @__PURE__ */ new Vector3();\n\treturn function closestPointLineToLine( l1, l2, result ) {\n\n\t\tconst v0 = l1.start;\n\t\tconst v10 = dir1;\n\t\tconst v2 = l2.start;\n\t\tconst v32 = dir2;\n\n\t\tv02.subVectors( v0, v2 );\n\t\tdir1.subVectors( l1.end, l1.start );\n\t\tdir2.subVectors( l2.end, l2.start );\n\n\t\t// float d0232 = v02.Dot(v32);\n\t\tconst d0232 = v02.dot( v32 );\n\n\t\t// float d3210 = v32.Dot(v10);\n\t\tconst d3210 = v32.dot( v10 );\n\n\t\t// float d3232 = v32.Dot(v32);\n\t\tconst d3232 = v32.dot( v32 );\n\n\t\t// float d0210 = v02.Dot(v10);\n\t\tconst d0210 = v02.dot( v10 );\n\n\t\t// float d1010 = v10.Dot(v10);\n\t\tconst d1010 = v10.dot( v10 );\n\n\t\t// float denom = d1010*d3232 - d3210*d3210;\n\t\tconst denom = d1010 * d3232 - d3210 * d3210;\n\n\t\tlet d, d2;\n\t\tif ( denom !== 0 ) {\n\n\t\t\td = ( d0232 * d3210 - d0210 * d3232 ) / denom;\n\n\t\t} else {\n\n\t\t\td = 0;\n\n\t\t}\n\n\t\td2 = ( d0232 + d * d3210 ) / d3232;\n\n\t\tresult.x = d;\n\t\tresult.y = d2;\n\n\t};\n\n} )();\n\nexport const closestPointsSegmentToSegment = ( function () {\n\n\t// https://github.com/juj/MathGeoLib/blob/master/src/Geometry/LineSegment.cpp#L187\n\tconst paramResult = /* @__PURE__ */ new Vector2();\n\tconst temp1 = /* @__PURE__ */ new Vector3();\n\tconst temp2 = /* @__PURE__ */ new Vector3();\n\treturn function closestPointsSegmentToSegment( l1, l2, target1, target2 ) {\n\n\t\tclosestPointLineToLine( l1, l2, paramResult );\n\n\t\tlet d = paramResult.x;\n\t\tlet d2 = paramResult.y;\n\t\tif ( d >= 0 && d <= 1 && d2 >= 0 && d2 <= 1 ) {\n\n\t\t\tl1.at( d, target1 );\n\t\t\tl2.at( d2, target2 );\n\n\t\t\treturn;\n\n\t\t} else if ( d >= 0 && d <= 1 ) {\n\n\t\t\t// Only d2 is out of bounds.\n\t\t\tif ( d2 < 0 ) {\n\n\t\t\t\tl2.at( 0, target2 );\n\n\t\t\t} else {\n\n\t\t\t\tl2.at( 1, target2 );\n\n\t\t\t}\n\n\t\t\tl1.closestPointToPoint( target2, true, target1 );\n\t\t\treturn;\n\n\t\t} else if ( d2 >= 0 && d2 <= 1 ) {\n\n\t\t\t// Only d is out of bounds.\n\t\t\tif ( d < 0 ) {\n\n\t\t\t\tl1.at( 0, target1 );\n\n\t\t\t} else {\n\n\t\t\t\tl1.at( 1, target1 );\n\n\t\t\t}\n\n\t\t\tl2.closestPointToPoint( target1, true, target2 );\n\t\t\treturn;\n\n\t\t} else {\n\n\t\t\t// Both u and u2 are out of bounds.\n\t\t\tlet p;\n\t\t\tif ( d < 0 ) {\n\n\t\t\t\tp = l1.start;\n\n\t\t\t} else {\n\n\t\t\t\tp = l1.end;\n\n\t\t\t}\n\n\t\t\tlet p2;\n\t\t\tif ( d2 < 0 ) {\n\n\t\t\t\tp2 = l2.start;\n\n\t\t\t} else {\n\n\t\t\t\tp2 = l2.end;\n\n\t\t\t}\n\n\t\t\tconst closestPoint = temp1;\n\t\t\tconst closestPoint2 = temp2;\n\t\t\tl1.closestPointToPoint( p2, true, temp1 );\n\t\t\tl2.closestPointToPoint( p, true, temp2 );\n\n\t\t\tif ( closestPoint.distanceToSquared( p2 ) <= closestPoint2.distanceToSquared( p ) ) {\n\n\t\t\t\ttarget1.copy( closestPoint );\n\t\t\t\ttarget2.copy( p2 );\n\t\t\t\treturn;\n\n\t\t\t} else {\n\n\t\t\t\ttarget1.copy( p );\n\t\t\t\ttarget2.copy( closestPoint2 );\n\t\t\t\treturn;\n\n\t\t\t}\n\n\t\t}\n\n\t};\n\n} )();\n\n\nexport const sphereIntersectTriangle = ( function () {\n\n\t// https://stackoverflow.com/questions/34043955/detect-collision-between-sphere-and-triangle-in-three-js\n\tconst closestPointTemp = /* @__PURE__ */ new Vector3();\n\tconst projectedPointTemp = /* @__PURE__ */ new Vector3();\n\tconst planeTemp = /* @__PURE__ */ new Plane();\n\tconst lineTemp = /* @__PURE__ */ new Line3();\n\treturn function sphereIntersectTriangle( sphere, triangle ) {\n\n\t\tconst { radius, center } = sphere;\n\t\tconst { a, b, c } = triangle;\n\n\t\t// phase 1\n\t\tlineTemp.start = a;\n\t\tlineTemp.end = b;\n\t\tconst closestPoint1 = lineTemp.closestPointToPoint( center, true, closestPointTemp );\n\t\tif ( closestPoint1.distanceTo( center ) <= radius ) return true;\n\n\t\tlineTemp.start = a;\n\t\tlineTemp.end = c;\n\t\tconst closestPoint2 = lineTemp.closestPointToPoint( center, true, closestPointTemp );\n\t\tif ( closestPoint2.distanceTo( center ) <= radius ) return true;\n\n\t\tlineTemp.start = b;\n\t\tlineTemp.end = c;\n\t\tconst closestPoint3 = lineTemp.closestPointToPoint( center, true, closestPointTemp );\n\t\tif ( closestPoint3.distanceTo( center ) <= radius ) return true;\n\n\t\t// phase 2\n\t\tconst plane = triangle.getPlane( planeTemp );\n\t\tconst dp = Math.abs( plane.distanceToPoint( center ) );\n\t\tif ( dp <= radius ) {\n\n\t\t\tconst pp = plane.projectPoint( center, projectedPointTemp );\n\t\t\tconst cp = triangle.containsPoint( pp );\n\t\t\tif ( cp ) return true;\n\n\t\t}\n\n\t\treturn false;\n\n\t};\n\n} )();\n"],"names":["closestPointLineToLine","dir1","Vector3","dir2","v02","l1","l2","result","v10","v32","subVectors","start","end","d0232","dot","d3210","d3232","d0210","denom","d","d2","x","y","closestPointsSegmentToSegment","paramResult","Vector2","temp1","temp2","target1","target2","at","closestPointToPoint","p","p2","closestPoint","closestPoint2","distanceToSquared","copy","sphereIntersectTriangle","closestPointTemp","projectedPointTemp","planeTemp","Plane","lineTemp","Line3","sphere","triangle","radius","center","a","b","c","distanceTo","plane","getPlane","Math","abs","distanceToPoint","pp","projectPoint","containsPoint"],"mappings":"+CAEY,MAACA,uBAAyB,WAGrC,MAAMC,KAA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AER,CAEA,CA3CsC","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{Vector3,Matrix4,Line3}from"three";import{SeparatingAxisBounds}from"./SeparatingAxisBounds.js";import{ExtendedTriangle}from"./ExtendedTriangle.js";import{closestPointsSegmentToSegment}from"./MathUtilities.js";class OrientedBox{constructor(min,max,matrix){this.isOrientedBox=!0,this.min=new Vector3,this.max=new Vector3,this.matrix=new Matrix4,this.invMatrix=new Matrix4,this.points=new Array(8).fill().map(()=>new Vector3),this.satAxes=new Array(3).fill().map(()=>new Vector3),this.satBounds=new Array(3).fill().map(()=>new SeparatingAxisBounds),this.alignedSatBounds=new Array(3).fill().map(()=>new SeparatingAxisBounds),this.needsUpdate=!1,min&&this.min.copy(min),max&&this.max.copy(max),matrix&&this.matrix.copy(matrix)}set(min,max,matrix){this.min.copy(min),this.max.copy(max),this.matrix.copy(matrix),this.needsUpdate=!0}copy(other){this.min.copy(other.min),this.max.copy(other.max),this.matrix.copy(other.matrix),this.needsUpdate=!0}}OrientedBox.prototype.update=function(){const matrix=this.matrix,min=this.min,max=this.max,points=this.points;for(let x=0;x<=1;x++)for(let y=0;y<=1;y++)for(let z=0;z<=1;z++){const v=points[1*x|2*y|4*z];v.x=x?max.x:min.x,v.y=y?max.y:min.y,v.z=z?max.z:min.z,v.applyMatrix4(matrix)}const satBounds=this.satBounds,satAxes=this.satAxes,minVec=points[0];for(let i=0;i<3;i++){const axis=satAxes[i],sb=satBounds[i];axis.subVectors(minVec,points[1<<i]),sb.setFromPoints(axis,points)}const alignedSatBounds=this.alignedSatBounds;alignedSatBounds[0].setFromPointsField(points,"x"),alignedSatBounds[1].setFromPointsField(points,"y"),alignedSatBounds[2].setFromPointsField(points,"z"),this.invMatrix.copy(this.matrix).invert(),this.needsUpdate=!1},OrientedBox.prototype.intersectsBox=function(){const aabbBounds=new SeparatingAxisBounds;return function(box){this.needsUpdate&&this.update();const min=box.min,max=box.max,satBounds=this.satBounds,satAxes=this.satAxes,alignedSatBounds=this.alignedSatBounds;if(aabbBounds.min=min.x,aabbBounds.max=max.x,alignedSatBounds[0].isSeparated(aabbBounds))return!1;if(aabbBounds.min=min.y,aabbBounds.max=max.y,alignedSatBounds[1].isSeparated(aabbBounds))return!1;if(aabbBounds.min=min.z,aabbBounds.max=max.z,alignedSatBounds[2].isSeparated(aabbBounds))return!1;for(let i=0;i<3;i++){const sb=satBounds[i];if(aabbBounds.setFromBox(satAxes[i],box),sb.isSeparated(aabbBounds))return!1}return!0}}(),OrientedBox.prototype.intersectsTriangle=function(){const saTri=new ExtendedTriangle,pointsArr=new Array(3),cachedSatBounds=new SeparatingAxisBounds,cachedSatBounds2=new SeparatingAxisBounds,cachedAxis=new Vector3;return function(triangle){this.needsUpdate&&this.update(),triangle.isExtendedTriangle?triangle.needsUpdate&&triangle.update():(saTri.copy(triangle),saTri.update(),triangle=saTri);const satBounds=this.satBounds,satAxes=this.satAxes;pointsArr[0]=triangle.a,pointsArr[1]=triangle.b,pointsArr[2]=triangle.c;for(let i=0;i<3;i++){const sb=satBounds[i];if(cachedSatBounds.setFromPoints(satAxes[i],pointsArr),sb.isSeparated(cachedSatBounds))return!1}const triSatBounds=triangle.satBounds,triSatAxes=triangle.satAxes,points=this.points;for(let i=0;i<3;i++){const sb=triSatBounds[i];if(cachedSatBounds.setFromPoints(triSatAxes[i],points),sb.isSeparated(cachedSatBounds))return!1}for(let i=0;i<3;i++){const sa1=satAxes[i];for(let i2=0;i2<4;i2++)if(cachedAxis.crossVectors(sa1,triSatAxes[i2]),cachedSatBounds.setFromPoints(cachedAxis,pointsArr),cachedSatBounds2.setFromPoints(cachedAxis,points),cachedSatBounds.isSeparated(cachedSatBounds2))return!1}return!0}}(),OrientedBox.prototype.closestPointToPoint=function(point,target1){return this.needsUpdate&&this.update(),target1.copy(point).applyMatrix4(this.invMatrix).clamp(this.min,this.max).applyMatrix4(this.matrix),target1},OrientedBox.prototype.distanceToPoint=function(){const target=new Vector3;return function(point){return this.closestPointToPoint(point,target),point.distanceTo(target)}}(),OrientedBox.prototype.distanceToBox=function(){const xyzFields=["x","y","z"],segments1=new Array(12).fill().map(()=>new Line3),segments2=new Array(12).fill().map(()=>new Line3),point1=new Vector3,point2=new Vector3;return function(box,threshold=0,target1=null,target2=null){if(this.needsUpdate&&this.update(),this.intersectsBox(box))return(target1||target2)&&(box.getCenter(point2),this.closestPointToPoint(point2,point1),box.closestPointToPoint(point1,point2),target1&&target1.copy(point1),target2&&target2.copy(point2)),0;const threshold2=threshold*threshold,min=box.min,max=box.max,points=this.points;let closestDistanceSq=1/0;for(let i=0;i<8;i++){const p=points[i];point2.copy(p).clamp(min,max);const dist=p.distanceToSquared(point2);if(dist<closestDistanceSq&&(closestDistanceSq=dist,target1&&target1.copy(p),target2&&target2.copy(point2),dist<threshold2))return Math.sqrt(dist)}let count=0;for(let i=0;i<3;i++)for(let i1=0;i1<=1;i1++)for(let i2=0;i2<=1;i2++){const nextIndex=(i+1)%3,nextIndex2=(i+2)%3;segments1[count].set(points[i1<<nextIndex|i2<<nextIndex2],points[1<<i|i1<<nextIndex|i2<<nextIndex2]);const f1=xyzFields[i],f2=xyzFields[nextIndex],f3=xyzFields[nextIndex2],line2=segments2[count],start=line2.start,end=line2.end;start[f1]=min[f1],start[f2]=i1?min[f2]:max[f2],start[f3]=i2?min[f3]:max[f2],end[f1]=max[f1],end[f2]=i1?min[f2]:max[f2],end[f3]=i2?min[f3]:max[f2],count++}for(let x=0;x<=1;x++)for(let y=0;y<=1;y++)for(let z=0;z<=1;z++){point2.x=x?max.x:min.x,point2.y=y?max.y:min.y,point2.z=z?max.z:min.z,this.closestPointToPoint(point2,point1);const dist=point2.distanceToSquared(point1);if(dist<closestDistanceSq&&(closestDistanceSq=dist,target1&&target1.copy(point1),target2&&target2.copy(point2),dist<threshold2))return Math.sqrt(dist)}for(let i=0;i<12;i++){const l1=segments1[i];for(let i2=0;i2<12;i2++){closestPointsSegmentToSegment(l1,segments2[i2],point1,point2);const dist=point1.distanceToSquared(point2);if(dist<closestDistanceSq&&(closestDistanceSq=dist,target1&&target1.copy(point1),target2&&target2.copy(point2),dist<threshold2))return Math.sqrt(dist)}}return Math.sqrt(closestDistanceSq)}}();export{OrientedBox};
2
+ //# sourceMappingURL=OrientedBox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OrientedBox.js","sources":["../../../../../../../node_modules/three-mesh-bvh/src/math/OrientedBox.js"],"sourcesContent":["import { Vector3, Matrix4, Line3 } from 'three';\nimport { SeparatingAxisBounds } from './SeparatingAxisBounds.js';\nimport { ExtendedTriangle } from './ExtendedTriangle.js';\nimport { closestPointsSegmentToSegment } from './MathUtilities.js';\n\nexport class OrientedBox {\n\n\tconstructor( min, max, matrix ) {\n\n\t\tthis.isOrientedBox = true;\n\t\tthis.min = new Vector3();\n\t\tthis.max = new Vector3();\n\t\tthis.matrix = new Matrix4();\n\t\tthis.invMatrix = new Matrix4();\n\t\tthis.points = new Array( 8 ).fill().map( () => new Vector3() );\n\t\tthis.satAxes = new Array( 3 ).fill().map( () => new Vector3() );\n\t\tthis.satBounds = new Array( 3 ).fill().map( () => new SeparatingAxisBounds() );\n\t\tthis.alignedSatBounds = new Array( 3 ).fill().map( () => new SeparatingAxisBounds() );\n\t\tthis.needsUpdate = false;\n\n\t\tif ( min ) this.min.copy( min );\n\t\tif ( max ) this.max.copy( max );\n\t\tif ( matrix ) this.matrix.copy( matrix );\n\n\t}\n\n\tset( min, max, matrix ) {\n\n\t\tthis.min.copy( min );\n\t\tthis.max.copy( max );\n\t\tthis.matrix.copy( matrix );\n\t\tthis.needsUpdate = true;\n\n\t}\n\n\tcopy( other ) {\n\n\t\tthis.min.copy( other.min );\n\t\tthis.max.copy( other.max );\n\t\tthis.matrix.copy( other.matrix );\n\t\tthis.needsUpdate = true;\n\n\t}\n\n}\n\nOrientedBox.prototype.update = ( function () {\n\n\treturn function update() {\n\n\t\tconst matrix = this.matrix;\n\t\tconst min = this.min;\n\t\tconst max = this.max;\n\n\t\tconst points = this.points;\n\t\tfor ( let x = 0; x <= 1; x ++ ) {\n\n\t\t\tfor ( let y = 0; y <= 1; y ++ ) {\n\n\t\t\t\tfor ( let z = 0; z <= 1; z ++ ) {\n\n\t\t\t\t\tconst i = ( ( 1 << 0 ) * x ) | ( ( 1 << 1 ) * y ) | ( ( 1 << 2 ) * z );\n\t\t\t\t\tconst v = points[ i ];\n\t\t\t\t\tv.x = x ? max.x : min.x;\n\t\t\t\t\tv.y = y ? max.y : min.y;\n\t\t\t\t\tv.z = z ? max.z : min.z;\n\n\t\t\t\t\tv.applyMatrix4( matrix );\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\tconst satBounds = this.satBounds;\n\t\tconst satAxes = this.satAxes;\n\t\tconst minVec = points[ 0 ];\n\t\tfor ( let i = 0; i < 3; i ++ ) {\n\n\t\t\tconst axis = satAxes[ i ];\n\t\t\tconst sb = satBounds[ i ];\n\t\t\tconst index = 1 << i;\n\t\t\tconst pi = points[ index ];\n\n\t\t\taxis.subVectors( minVec, pi );\n\t\t\tsb.setFromPoints( axis, points );\n\n\t\t}\n\n\t\tconst alignedSatBounds = this.alignedSatBounds;\n\t\talignedSatBounds[ 0 ].setFromPointsField( points, 'x' );\n\t\talignedSatBounds[ 1 ].setFromPointsField( points, 'y' );\n\t\talignedSatBounds[ 2 ].setFromPointsField( points, 'z' );\n\n\t\tthis.invMatrix.copy( this.matrix ).invert();\n\t\tthis.needsUpdate = false;\n\n\t};\n\n} )();\n\nOrientedBox.prototype.intersectsBox = ( function () {\n\n\tconst aabbBounds = /* @__PURE__ */ new SeparatingAxisBounds();\n\treturn function intersectsBox( box ) {\n\n\t\t// TODO: should this be doing SAT against the AABB?\n\t\tif ( this.needsUpdate ) {\n\n\t\t\tthis.update();\n\n\t\t}\n\n\t\tconst min = box.min;\n\t\tconst max = box.max;\n\t\tconst satBounds = this.satBounds;\n\t\tconst satAxes = this.satAxes;\n\t\tconst alignedSatBounds = this.alignedSatBounds;\n\n\t\taabbBounds.min = min.x;\n\t\taabbBounds.max = max.x;\n\t\tif ( alignedSatBounds[ 0 ].isSeparated( aabbBounds ) ) return false;\n\n\t\taabbBounds.min = min.y;\n\t\taabbBounds.max = max.y;\n\t\tif ( alignedSatBounds[ 1 ].isSeparated( aabbBounds ) ) return false;\n\n\t\taabbBounds.min = min.z;\n\t\taabbBounds.max = max.z;\n\t\tif ( alignedSatBounds[ 2 ].isSeparated( aabbBounds ) ) return false;\n\n\t\tfor ( let i = 0; i < 3; i ++ ) {\n\n\t\t\tconst axis = satAxes[ i ];\n\t\t\tconst sb = satBounds[ i ];\n\t\t\taabbBounds.setFromBox( axis, box );\n\t\t\tif ( sb.isSeparated( aabbBounds ) ) return false;\n\n\t\t}\n\n\t\treturn true;\n\n\t};\n\n} )();\n\nOrientedBox.prototype.intersectsTriangle = ( function () {\n\n\tconst saTri = /* @__PURE__ */ new ExtendedTriangle();\n\tconst pointsArr = /* @__PURE__ */ new Array( 3 );\n\tconst cachedSatBounds = /* @__PURE__ */ new SeparatingAxisBounds();\n\tconst cachedSatBounds2 = /* @__PURE__ */ new SeparatingAxisBounds();\n\tconst cachedAxis = /* @__PURE__ */ new Vector3();\n\treturn function intersectsTriangle( triangle ) {\n\n\t\tif ( this.needsUpdate ) {\n\n\t\t\tthis.update();\n\n\t\t}\n\n\t\tif ( ! triangle.isExtendedTriangle ) {\n\n\t\t\tsaTri.copy( triangle );\n\t\t\tsaTri.update();\n\t\t\ttriangle = saTri;\n\n\t\t} else if ( triangle.needsUpdate ) {\n\n\t\t\ttriangle.update();\n\n\t\t}\n\n\t\tconst satBounds = this.satBounds;\n\t\tconst satAxes = this.satAxes;\n\n\t\tpointsArr[ 0 ] = triangle.a;\n\t\tpointsArr[ 1 ] = triangle.b;\n\t\tpointsArr[ 2 ] = triangle.c;\n\n\t\tfor ( let i = 0; i < 3; i ++ ) {\n\n\t\t\tconst sb = satBounds[ i ];\n\t\t\tconst sa = satAxes[ i ];\n\t\t\tcachedSatBounds.setFromPoints( sa, pointsArr );\n\t\t\tif ( sb.isSeparated( cachedSatBounds ) ) return false;\n\n\t\t}\n\n\t\tconst triSatBounds = triangle.satBounds;\n\t\tconst triSatAxes = triangle.satAxes;\n\t\tconst points = this.points;\n\t\tfor ( let i = 0; i < 3; i ++ ) {\n\n\t\t\tconst sb = triSatBounds[ i ];\n\t\t\tconst sa = triSatAxes[ i ];\n\t\t\tcachedSatBounds.setFromPoints( sa, points );\n\t\t\tif ( sb.isSeparated( cachedSatBounds ) ) return false;\n\n\t\t}\n\n\t\t// check crossed axes\n\t\tfor ( let i = 0; i < 3; i ++ ) {\n\n\t\t\tconst sa1 = satAxes[ i ];\n\t\t\tfor ( let i2 = 0; i2 < 4; i2 ++ ) {\n\n\t\t\t\tconst sa2 = triSatAxes[ i2 ];\n\t\t\t\tcachedAxis.crossVectors( sa1, sa2 );\n\t\t\t\tcachedSatBounds.setFromPoints( cachedAxis, pointsArr );\n\t\t\t\tcachedSatBounds2.setFromPoints( cachedAxis, points );\n\t\t\t\tif ( cachedSatBounds.isSeparated( cachedSatBounds2 ) ) return false;\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn true;\n\n\t};\n\n} )();\n\nOrientedBox.prototype.closestPointToPoint = ( function () {\n\n\treturn function closestPointToPoint( point, target1 ) {\n\n\t\tif ( this.needsUpdate ) {\n\n\t\t\tthis.update();\n\n\t\t}\n\n\t\ttarget1\n\t\t\t.copy( point )\n\t\t\t.applyMatrix4( this.invMatrix )\n\t\t\t.clamp( this.min, this.max )\n\t\t\t.applyMatrix4( this.matrix );\n\n\t\treturn target1;\n\n\t};\n\n} )();\n\nOrientedBox.prototype.distanceToPoint = ( function () {\n\n\tconst target = new Vector3();\n\treturn function distanceToPoint( point ) {\n\n\t\tthis.closestPointToPoint( point, target );\n\t\treturn point.distanceTo( target );\n\n\t};\n\n} )();\n\nOrientedBox.prototype.distanceToBox = ( function () {\n\n\tconst xyzFields = [ 'x', 'y', 'z' ];\n\tconst segments1 = /* @__PURE__ */ new Array( 12 ).fill().map( () => new Line3() );\n\tconst segments2 = /* @__PURE__ */ new Array( 12 ).fill().map( () => new Line3() );\n\n\tconst point1 = /* @__PURE__ */ new Vector3();\n\tconst point2 = /* @__PURE__ */ new Vector3();\n\n\t// early out if we find a value below threshold\n\treturn function distanceToBox( box, threshold = 0, target1 = null, target2 = null ) {\n\n\t\tif ( this.needsUpdate ) {\n\n\t\t\tthis.update();\n\n\t\t}\n\n\t\tif ( this.intersectsBox( box ) ) {\n\n\t\t\tif ( target1 || target2 ) {\n\n\t\t\t\tbox.getCenter( point2 );\n\t\t\t\tthis.closestPointToPoint( point2, point1 );\n\t\t\t\tbox.closestPointToPoint( point1, point2 );\n\n\t\t\t\tif ( target1 ) target1.copy( point1 );\n\t\t\t\tif ( target2 ) target2.copy( point2 );\n\n\t\t\t}\n\n\t\t\treturn 0;\n\n\t\t}\n\n\t\tconst threshold2 = threshold * threshold;\n\t\tconst min = box.min;\n\t\tconst max = box.max;\n\t\tconst points = this.points;\n\n\n\t\t// iterate over every edge and compare distances\n\t\tlet closestDistanceSq = Infinity;\n\n\t\t// check over all these points\n\t\tfor ( let i = 0; i < 8; i ++ ) {\n\n\t\t\tconst p = points[ i ];\n\t\t\tpoint2.copy( p ).clamp( min, max );\n\n\t\t\tconst dist = p.distanceToSquared( point2 );\n\t\t\tif ( dist < closestDistanceSq ) {\n\n\t\t\t\tclosestDistanceSq = dist;\n\t\t\t\tif ( target1 ) target1.copy( p );\n\t\t\t\tif ( target2 ) target2.copy( point2 );\n\n\t\t\t\tif ( dist < threshold2 ) return Math.sqrt( dist );\n\n\t\t\t}\n\n\t\t}\n\n\t\t// generate and check all line segment distances\n\t\tlet count = 0;\n\t\tfor ( let i = 0; i < 3; i ++ ) {\n\n\t\t\tfor ( let i1 = 0; i1 <= 1; i1 ++ ) {\n\n\t\t\t\tfor ( let i2 = 0; i2 <= 1; i2 ++ ) {\n\n\t\t\t\t\tconst nextIndex = ( i + 1 ) % 3;\n\t\t\t\t\tconst nextIndex2 = ( i + 2 ) % 3;\n\n\t\t\t\t\t// get obb line segments\n\t\t\t\t\tconst index = i1 << nextIndex | i2 << nextIndex2;\n\t\t\t\t\tconst index2 = 1 << i | i1 << nextIndex | i2 << nextIndex2;\n\t\t\t\t\tconst p1 = points[ index ];\n\t\t\t\t\tconst p2 = points[ index2 ];\n\t\t\t\t\tconst line1 = segments1[ count ];\n\t\t\t\t\tline1.set( p1, p2 );\n\n\n\t\t\t\t\t// get aabb line segments\n\t\t\t\t\tconst f1 = xyzFields[ i ];\n\t\t\t\t\tconst f2 = xyzFields[ nextIndex ];\n\t\t\t\t\tconst f3 = xyzFields[ nextIndex2 ];\n\t\t\t\t\tconst line2 = segments2[ count ];\n\t\t\t\t\tconst start = line2.start;\n\t\t\t\t\tconst end = line2.end;\n\n\t\t\t\t\tstart[ f1 ] = min[ f1 ];\n\t\t\t\t\tstart[ f2 ] = i1 ? min[ f2 ] : max[ f2 ];\n\t\t\t\t\tstart[ f3 ] = i2 ? min[ f3 ] : max[ f2 ];\n\n\t\t\t\t\tend[ f1 ] = max[ f1 ];\n\t\t\t\t\tend[ f2 ] = i1 ? min[ f2 ] : max[ f2 ];\n\t\t\t\t\tend[ f3 ] = i2 ? min[ f3 ] : max[ f2 ];\n\n\t\t\t\t\tcount ++;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\t// check all the other boxes point\n\t\tfor ( let x = 0; x <= 1; x ++ ) {\n\n\t\t\tfor ( let y = 0; y <= 1; y ++ ) {\n\n\t\t\t\tfor ( let z = 0; z <= 1; z ++ ) {\n\n\t\t\t\t\tpoint2.x = x ? max.x : min.x;\n\t\t\t\t\tpoint2.y = y ? max.y : min.y;\n\t\t\t\t\tpoint2.z = z ? max.z : min.z;\n\n\t\t\t\t\tthis.closestPointToPoint( point2, point1 );\n\t\t\t\t\tconst dist = point2.distanceToSquared( point1 );\n\t\t\t\t\tif ( dist < closestDistanceSq ) {\n\n\t\t\t\t\t\tclosestDistanceSq = dist;\n\t\t\t\t\t\tif ( target1 ) target1.copy( point1 );\n\t\t\t\t\t\tif ( target2 ) target2.copy( point2 );\n\n\t\t\t\t\t\tif ( dist < threshold2 ) return Math.sqrt( dist );\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\tfor ( let i = 0; i < 12; i ++ ) {\n\n\t\t\tconst l1 = segments1[ i ];\n\t\t\tfor ( let i2 = 0; i2 < 12; i2 ++ ) {\n\n\t\t\t\tconst l2 = segments2[ i2 ];\n\t\t\t\tclosestPointsSegmentToSegment( l1, l2, point1, point2 );\n\t\t\t\tconst dist = point1.distanceToSquared( point2 );\n\t\t\t\tif ( dist < closestDistanceSq ) {\n\n\t\t\t\t\tclosestDistanceSq = dist;\n\t\t\t\t\tif ( target1 ) target1.copy( point1 );\n\t\t\t\t\tif ( target2 ) target2.copy( point2 );\n\n\t\t\t\t\tif ( dist < threshold2 ) return Math.sqrt( dist );\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn Math.sqrt( closestDistanceSq );\n\n\t};\n\n} )();\n"],"names":["OrientedBox","constructor","min","max","matrix","this","isOrientedBox","Vector3","Matrix4","invMatrix","points","Array","fill","map","satAxes","satBounds","SeparatingAxisBounds","alignedSatBounds","needsUpdate","copy","set","other","prototype","update","x","y","z","v","applyMatrix4","minVec","i","axis","sb","subVectors","setFromPoints","setFromPointsField","invert","intersectsBox","aabbBounds","box","isSeparated","setFromBox","intersectsTriangle","saTri","ExtendedTriangle","pointsArr","cachedSatBounds","cachedSatBounds2","cachedAxis","triangle","isExtendedTriangle","a","b","c","triSatBounds","triSatAxes","sa1","i2","crossVectors","closestPointToPoint","point","target1","clamp","distanceToPoint","target","distanceTo","distanceToBox","xyzFields","segments1","Line3","segments2","point1","point2","threshold","target2","getCenter","threshold2","closestDistanceSq","Infinity","p","dist","distanceToSquared","Math","sqrt","count","i1","nextIndex","nextIndex2","f1","f2","f3","line2","start","end","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M,IAAIC,EAAI,EAAGA,GAAK,EAAGA,IAExB,IAAM,IAAIC,EAAI,EAAGA,GAAK,EAAGA,IAAO,CAE/B8C,OAAOhD,EAAIA,EAAIrB,IAAIqB,EAAItB,IAAIsB,EAC3BgD,OAAO/C,EAAIA,EAAItB,IAAIsB,EAAIvB,IAAIuB,EAC3B+C,OAAO9C,EAAIA,EAAIvB,IAAIuB,EAAIxB,IAAIwB,EAE3BrB,KAAKsD,oBAAqBa,OAAQD,QAClC,MAAMS,KAAOR,OAAOS,kBAAmBV,QACvC,GAAKS,KAAOH,oBAEXA,kBAAoBG,KACfnB,SAAUA,QAAQ1C,KAAMoD,QACxBG,SAAUA,QAAQvD,KAAMqD,QAExBQ,KAAOJ,YAAa,OAAOM,KAAKC,KAAMH,KAI7C,CAMF,IAAM,IAAIlD,EAAI,EAAGA,EAAI,GAAIA,IAAO,CAE/B,MAAMgE,GAAK1B,UAAWtC,GACtB,IAAM,IAAI2B,GAAK,EAAGA,GAAK,GAAIA,KAAQ,CAGlCsC,8BAA+BD,GADpBxB,UAAWb,IACiBc,OAAQC,QAC/C,MAAMQ,KAAOT,OAAOU,kBAAmBT,QACvC,GAAKQ,KAAOH,oBAEXA,kBAAoBG,KACfnB,SAAUA,QAAQ1C,KAAMoD,QACxBG,SAAUA,QAAQvD,KAAMqD,QAExBQ,KAAOJ,YAAa,OAAOM,KAAKC,KAAMH,KAI7C,CAED,CAEA,OAAOE,KAAKC,KAAMN,kBAEnB,CAEA,CAlKqC","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{Vector3}from"three";class SeparatingAxisBounds{constructor(){this.min=1/0,this.max=-1/0}setFromPointsField(points,field){let min=1/0,max=-1/0;for(let i=0,l=points.length;i<l;i++){const val=points[i][field];min=val<min?val:min,max=val>max?val:max}this.min=min,this.max=max}setFromPoints(axis,points){let min=1/0,max=-1/0;for(let i=0,l=points.length;i<l;i++){const val=axis.dot(points[i]);min=val<min?val:min,max=val>max?val:max}this.min=min,this.max=max}isSeparated(other){return this.min>other.max||other.min>this.max}}SeparatingAxisBounds.prototype.setFromBox=function(){const p=new Vector3;return function(axis,box){const boxMin=box.min,boxMax=box.max;let min=1/0,max=-1/0;for(let x=0;x<=1;x++)for(let y=0;y<=1;y++)for(let z=0;z<=1;z++){p.x=boxMin.x*x+boxMax.x*(1-x),p.y=boxMin.y*y+boxMax.y*(1-y),p.z=boxMin.z*z+boxMax.z*(1-z);const val=axis.dot(p);min=Math.min(val,min),max=Math.max(val,max)}this.min=min,this.max=max}}();export{SeparatingAxisBounds};
2
+ //# sourceMappingURL=SeparatingAxisBounds.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SeparatingAxisBounds.js","sources":["../../../../../../../node_modules/three-mesh-bvh/src/math/SeparatingAxisBounds.js"],"sourcesContent":["import { Vector3 } from 'three';\n\nexport class SeparatingAxisBounds {\n\n\tconstructor() {\n\n\t\tthis.min = Infinity;\n\t\tthis.max = - Infinity;\n\n\t}\n\n\tsetFromPointsField( points, field ) {\n\n\t\tlet min = Infinity;\n\t\tlet max = - Infinity;\n\t\tfor ( let i = 0, l = points.length; i < l; i ++ ) {\n\n\t\t\tconst p = points[ i ];\n\t\t\tconst val = p[ field ];\n\t\t\tmin = val < min ? val : min;\n\t\t\tmax = val > max ? val : max;\n\n\t\t}\n\n\t\tthis.min = min;\n\t\tthis.max = max;\n\n\t}\n\n\tsetFromPoints( axis, points ) {\n\n\t\tlet min = Infinity;\n\t\tlet max = - Infinity;\n\t\tfor ( let i = 0, l = points.length; i < l; i ++ ) {\n\n\t\t\tconst p = points[ i ];\n\t\t\tconst val = axis.dot( p );\n\t\t\tmin = val < min ? val : min;\n\t\t\tmax = val > max ? val : max;\n\n\t\t}\n\n\t\tthis.min = min;\n\t\tthis.max = max;\n\n\t}\n\n\tisSeparated( other ) {\n\n\t\treturn this.min > other.max || other.min > this.max;\n\n\t}\n\n}\n\nSeparatingAxisBounds.prototype.setFromBox = ( function () {\n\n\tconst p = /* @__PURE__ */ new Vector3();\n\treturn function setFromBox( axis, box ) {\n\n\t\tconst boxMin = box.min;\n\t\tconst boxMax = box.max;\n\t\tlet min = Infinity;\n\t\tlet max = - Infinity;\n\t\tfor ( let x = 0; x <= 1; x ++ ) {\n\n\t\t\tfor ( let y = 0; y <= 1; y ++ ) {\n\n\t\t\t\tfor ( let z = 0; z <= 1; z ++ ) {\n\n\t\t\t\t\tp.x = boxMin.x * x + boxMax.x * ( 1 - x );\n\t\t\t\t\tp.y = boxMin.y * y + boxMax.y * ( 1 - y );\n\t\t\t\t\tp.z = boxMin.z * z + boxMax.z * ( 1 - z );\n\n\t\t\t\t\tconst val = axis.dot( p );\n\t\t\t\t\tmin = Math.min( val, min );\n\t\t\t\t\tmax = Math.max( val, max );\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\tthis.min = min;\n\t\tthis.max = max;\n\n\t};\n\n} )();\n\nexport const areIntersecting = ( function () {\n\n\tconst cacheSatBounds = /* @__PURE__ */ new SeparatingAxisBounds();\n\treturn function areIntersecting( shape1, shape2 ) {\n\n\t\tconst points1 = shape1.points;\n\t\tconst satAxes1 = shape1.satAxes;\n\t\tconst satBounds1 = shape1.satBounds;\n\n\t\tconst points2 = shape2.points;\n\t\tconst satAxes2 = shape2.satAxes;\n\t\tconst satBounds2 = shape2.satBounds;\n\n\t\t// check axes of the first shape\n\t\tfor ( let i = 0; i < 3; i ++ ) {\n\n\t\t\tconst sb = satBounds1[ i ];\n\t\t\tconst sa = satAxes1[ i ];\n\t\t\tcacheSatBounds.setFromPoints( sa, points2 );\n\t\t\tif ( sb.isSeparated( cacheSatBounds ) ) return false;\n\n\t\t}\n\n\t\t// check axes of the second shape\n\t\tfor ( let i = 0; i < 3; i ++ ) {\n\n\t\t\tconst sb = satBounds2[ i ];\n\t\t\tconst sa = satAxes2[ i ];\n\t\t\tcacheSatBounds.setFromPoints( sa, points1 );\n\t\t\tif ( sb.isSeparated( cacheSatBounds ) ) return false;\n\n\t\t}\n\n\t};\n\n} )();\n"],"names":["SeparatingAxisBounds","constructor","this","min","Infinity","max","setFromPointsField","points","field","i","l","length","val","setFromPoints","axis","dot","isSeparated","other","prototype","setFromBox","p","Vector3","box","boxMin","boxMax","x","y","z","Math"],"mappings":"2BAEO,MAAMA,qBAEZ,WAAAC,GAECC,KAAKC,IAAMC,IACXF,KAAKG,KAAM,GAEZ,CAEA,kBAAAC,CAAoBC,OAAQC,OAE3B,IAAIL,IAAMC,IACNC,KAAM,IACV,IAAM,IAAII,EAAI,EAAGC,EAAIH,OAAOI,OAAQF,EAAIC,EAAGD,IAAO,CAEjD,MACMG,IADIL,OAAQE,GACHD,OACfL,IAAMS,IAAMT,IAAMS,IAAMT,IACxBE,IAAMO,IAAMP,IAAMO,IAAMP,GAEzB,CAEAH,KAAKC,IAAMA,IACXD,KAAKG,IAAMA,GAEZ,CAEA,aAAAQ,CAAeC,KAAMP,QAEpB,IAAIJ,IAAMC,IACNC,KAAM,IACV,IAAM,IAAII,EAAI,EAAGC,EAAIH,OAAOI,OAAQF,EAAIC,EAAGD,IAAO,CAEjD,MACMG,IAAME,KAAKC,IADPR,OAAQE,IAElBN,IAAMS,IAAMT,IAAMS,IAAMT,IACxBE,IAAMO,IAAMP,IAAMO,IAAMP,GAEzB,CAEAH,KAAKC,IAAMA,IACXD,KAAKG,IAAMA,GAEZ,CAEA,WAAAW,CAAaC,OAEZ,OAAOf,KAAKC,IAAMc,MAAMZ,KAAOY,MAAMd,IAAMD,KAAKG,GAEjD,EAIDL,qBAAqBkB,UAAUC,WAAa,WAE3C,MAAMC,EAAoB,IAAIC,QAC9B,OAAO,SAAqBP,KAAMQ,KAEjC,MAAMC,OAASD,IAAInB,IACbqB,OAASF,IAAIjB,IACnB,IAAIF,IAAMC,IACNC,KAAM,IACV,IAAM,IAAIoB,EAAI,EAAGA,GAAK,EAAGA,IAExB,IAAM,IAAIC,EAAI,EAAGA,GAAK,EAAGA,IAExB,IAAM,IAAIC,EAAI,EAAGA,GAAK,EAAGA,IAAO,CAE/BP,EAAEK,EAAIF,OAAOE,EAAIA,EAAID,OAAOC,GAAM,EAAIA,GACtCL,EAAEM,EAAIH,OAAOG,EAAIA,EAAIF,OAAOE,GAAM,EAAIA,GACtCN,EAAEO,EAAIJ,OAAOI,EAAIA,EAAIH,OAAOG,GAAM,EAAIA,GAEtC,MAAMf,IAAME,KAAKC,IAAKK,GACtBjB,IAAMyB,KAAKzB,IAAKS,IAAKT,KACrBE,IAAMuB,KAAKvB,IAAKO,IAAKP,IAEtB,CAMFH,KAAKC,IAAMA,IACXD,KAAKG,IAAMA,GAEZ,CAEA,CAlC2C","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{Group,LineBasicMaterial,MeshBasicMaterial,Matrix4,Object3D,Mesh,BufferGeometry,Box3,BufferAttribute}from"three";import{arrayToBox}from"../utils/ArrayBoxUtilities.js";import{MeshBVH}from"../core/MeshBVH.js";const boundingBox=new Box3,matrix=new Matrix4;class MeshBVHRootHelper extends Object3D{get isMesh(){return!this.displayEdges}get isLineSegments(){return this.displayEdges}get isLine(){return this.displayEdges}getVertexPosition(...args){return Mesh.prototype.getVertexPosition.call(this,...args)}constructor(bvh,material,depth=10,group=0){super(),this.material=material,this.geometry=new BufferGeometry,this.name="MeshBVHRootHelper",this.depth=depth,this.displayParents=!1,this.bvh=bvh,this.displayEdges=!0,this._group=group}raycast(){}update(){const geometry=this.geometry,boundsTree=this.bvh,group=this._group;if(geometry.dispose(),this.visible=!1,boundsTree){const targetDepth=this.depth-1,displayParents=this.displayParents;let boundsCount=0;boundsTree.traverse((depth,isLeaf)=>{if(depth>=targetDepth||isLeaf)return boundsCount++,!0;displayParents&&boundsCount++},group);let posIndex=0;const positionArray=new Float32Array(24*boundsCount);let indexArray,indices;boundsTree.traverse((depth,isLeaf,boundingData)=>{const terminate=depth>=targetDepth||isLeaf;if(terminate||displayParents){arrayToBox(0,boundingData,boundingBox);const{min:min,max:max}=boundingBox;for(let x=-1;x<=1;x+=2){const xVal=x<0?min.x:max.x;for(let y=-1;y<=1;y+=2){const yVal=y<0?min.y:max.y;for(let z=-1;z<=1;z+=2){const zVal=z<0?min.z:max.z;positionArray[posIndex+0]=xVal,positionArray[posIndex+1]=yVal,positionArray[posIndex+2]=zVal,posIndex+=3}}}return terminate}},group),indices=this.displayEdges?new Uint8Array([0,4,1,5,2,6,3,7,0,2,1,3,4,6,5,7,0,1,2,3,4,5,6,7]):new Uint8Array([0,1,2,2,1,3,4,6,5,6,7,5,1,4,5,0,4,1,2,3,6,3,7,6,0,2,4,2,6,4,1,5,3,3,5,7]),indexArray=positionArray.length>65535?new Uint32Array(indices.length*boundsCount):new Uint16Array(indices.length*boundsCount);const indexLength=indices.length;for(let i=0;i<boundsCount;i++){const posOffset=8*i,indexOffset=i*indexLength;for(let j=0;j<indexLength;j++)indexArray[indexOffset+j]=posOffset+indices[j]}geometry.setIndex(new BufferAttribute(indexArray,1,!1)),geometry.setAttribute("position",new BufferAttribute(positionArray,3,!1)),this.visible=!0}}}class MeshBVHHelper extends Group{get color(){return this.edgeMaterial.color}get opacity(){return this.edgeMaterial.opacity}set opacity(v){this.edgeMaterial.opacity=v,this.meshMaterial.opacity=v}constructor(mesh=null,bvh=null,depth=10){mesh instanceof MeshBVH&&(depth=bvh||10,bvh=mesh,mesh=null),"number"==typeof bvh&&(depth=bvh,bvh=null),super(),this.name="MeshBVHHelper",this.depth=depth,this.mesh=mesh,this.bvh=bvh,this.displayParents=!1,this.displayEdges=!0,this.objectIndex=0,this._roots=[];const edgeMaterial=new LineBasicMaterial({color:65416,transparent:!0,opacity:.3,depthWrite:!1}),meshMaterial=new MeshBasicMaterial({color:65416,transparent:!0,opacity:.3,depthWrite:!1});meshMaterial.color=edgeMaterial.color,this.edgeMaterial=edgeMaterial,this.meshMaterial=meshMaterial,this.update()}update(){const mesh=this.mesh;let bvh=this.bvh||mesh.geometry.boundsTree||null;if(mesh&&mesh.isBatchedMesh&&mesh.boundsTrees&&!bvh){const drawInfo=mesh._drawInfo[this.objectIndex];drawInfo&&(bvh=mesh.boundsTrees[drawInfo.geometryIndex]||bvh)}const totalRoots=bvh?bvh._roots.length:0;for(;this._roots.length>totalRoots;){const root=this._roots.pop();root.geometry.dispose(),this.remove(root)}for(let i=0;i<totalRoots;i++){const{depth:depth,edgeMaterial:edgeMaterial,meshMaterial:meshMaterial,displayParents:displayParents,displayEdges:displayEdges}=this;if(i>=this._roots.length){const root=new MeshBVHRootHelper(bvh,edgeMaterial,depth,i);this.add(root),this._roots.push(root)}const root=this._roots[i];root.bvh=bvh,root.depth=depth,root.displayParents=displayParents,root.displayEdges=displayEdges,root.material=displayEdges?edgeMaterial:meshMaterial,root.update()}}updateMatrixWorld(...args){const mesh=this.mesh,parent=this.parent;null!==mesh&&(mesh.updateWorldMatrix(!0,!1),parent?this.matrix.copy(parent.matrixWorld).invert().multiply(mesh.matrixWorld):this.matrix.copy(mesh.matrixWorld),(mesh.isInstancedMesh||mesh.isBatchedMesh)&&(mesh.getMatrixAt(this.objectIndex,matrix),this.matrix.multiply(matrix)),this.matrix.decompose(this.position,this.quaternion,this.scale)),super.updateMatrixWorld(...args)}copy(source){this.depth=source.depth,this.mesh=source.mesh,this.bvh=source.bvh,this.opacity=source.opacity,this.color.copy(source.color)}clone(){return new MeshBVHHelper(this.mesh,this.bvh,this.depth)}dispose(){this.edgeMaterial.dispose(),this.meshMaterial.dispose();const children=this.children;for(let i=0,l=children.length;i<l;i++)children[i].geometry.dispose()}}export{MeshBVHHelper};
2
+ //# sourceMappingURL=MeshBVHHelper.js.map