@rr0/ufoathome 0.202.1 → 0.204.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (381) hide show
  1. package/dist-embed-interview/InterviewMessages_en-Ikx6GjEd.js +3 -0
  2. package/dist-embed-interview/InterviewMessages_es-DKWWyrnb.js +3 -0
  3. package/dist-embed-interview/InterviewMessages_fr-DT0gXAKD.js +3 -0
  4. package/dist-embed-interview/InterviewMessages_it-CF_9MYPt.js +3 -0
  5. package/dist-embed-interview/rr0-interview.mjs +1 -1
  6. package/dist-embed-scene/ModuleSession-Bh6KaOGK.js +3 -0
  7. package/dist-embed-scene/SceneNames_en--zj8Tlec.js +1 -0
  8. package/dist-embed-scene/SceneNames_es-toWs7p7i.js +1 -0
  9. package/dist-embed-scene/SceneNames_fr-w4Xdplid.js +1 -0
  10. package/dist-embed-scene/SceneNames_it-Cwcscdx7.js +1 -0
  11. package/dist-embed-scene/rr0-scene.mjs +302 -302
  12. package/dist-embed-scene/sightingSchema-DoPVOlCB.js +1 -0
  13. package/dist-embed-sighting/{AdsbLolArchiveProvider-CsuxO9wl.js → AdsbLolArchiveProvider-BSewzrRe.js} +1 -1
  14. package/dist-embed-sighting/{AirshipEditor-DkDCkwGG.js → AirshipEditor-BiG7EYoB.js} +2 -2
  15. package/dist-embed-sighting/{AuroraEditor-C4tY9hXK.js → AuroraEditor-C1Y_zbNW.js} +1 -1
  16. package/dist-embed-sighting/{AuroraSimulation-C7LAHgWM.js → AuroraSimulation-B9GaDXC3.js} +2 -2
  17. package/dist-embed-sighting/{BallesterGuaspAssessor-BPaiHWd9.js → BallesterGuaspAssessor-BAXmW7XL.js} +1 -1
  18. package/dist-embed-sighting/BalloonEditor-D54CC7cn.js +24 -0
  19. package/dist-embed-sighting/{BeamEditor-DDzw-fB_.js → BeamEditor-SHXD10FH.js} +1 -1
  20. package/dist-embed-sighting/{BeamSystem-CsNwl_vM.js → BeamSystem-CP3J9Jgx.js} +1 -1
  21. package/dist-embed-sighting/{BirdEditor-BgNNcdhv.js → BirdEditor-BCit7Rs-.js} +1 -1
  22. package/dist-embed-sighting/{BirdFlock-DBgkxsxp.js → BirdFlock-DhsSOJTg.js} +1 -1
  23. package/dist-embed-sighting/{CaseReportExport-BtGCWD7H.js → CaseReportExport-CUy_3oyV.js} +2 -2
  24. package/dist-embed-sighting/{ContrailSystem-Di5w5IVi.js → ContrailSystem-70o5ynhD.js} +1 -1
  25. package/dist-embed-sighting/ControlPasses-DQMrWqA3.js +29 -0
  26. package/dist-embed-sighting/{CoverageAssessor-Cu9wP4ZB.js → CoverageAssessor-BdZ85Hmy.js} +1 -1
  27. package/dist-embed-sighting/{DroneEditor-5nuq52EG.js → DroneEditor-DwQsVj8U.js} +1 -1
  28. package/dist-embed-sighting/{DroneParameters-DHeJ7KyU.js → DroneParameters-91BBY10Y.js} +1 -1
  29. package/dist-embed-sighting/{Flightradar24Provider-p4a3_chL.js → Flightradar24Provider-NbfW-lDQ.js} +1 -1
  30. package/dist-embed-sighting/{GLTFLoader-fbsNsHlp.js → GLTFLoader-CTETHs7e.js} +1 -1
  31. package/dist-embed-sighting/GenerativeKitMessages-hgIQ_sST.js +1 -0
  32. package/dist-embed-sighting/{HeadlightSystem-Ce7sHylX.js → HeadlightSystem-ByKGq-30.js} +1 -1
  33. package/dist-embed-sighting/HvsMessages_en-BiLhEAxJ.js +1 -0
  34. package/dist-embed-sighting/HvsMessages_es-Cbj_6eFs.js +1 -0
  35. package/dist-embed-sighting/HvsMessages_fr-DkvE2qm1.js +1 -0
  36. package/dist-embed-sighting/HvsMessages_it-BIJ87Uyb.js +1 -0
  37. package/dist-embed-sighting/{HynekAssessor-DWDZGeLY.js → HynekAssessor-O1MFR79v.js} +1 -1
  38. package/dist-embed-sighting/InterviewMessages_en-Ikx6GjEd.js +3 -0
  39. package/dist-embed-sighting/InterviewMessages_es-DKWWyrnb.js +3 -0
  40. package/dist-embed-sighting/InterviewMessages_fr-DT0gXAKD.js +3 -0
  41. package/dist-embed-sighting/InterviewMessages_it-CF_9MYPt.js +3 -0
  42. package/dist-embed-sighting/LanternEditor-X0RgF4mn.js +24 -0
  43. package/dist-embed-sighting/{LaunchEditor-BGyLgkGS.js → LaunchEditor-oTKLz_5C.js} +1 -1
  44. package/dist-embed-sighting/{LaunchSimulation-DvexI06i.js → LaunchSimulation-ClRFO1uw.js} +1 -1
  45. package/dist-embed-sighting/ModuleSession-SivjhuIl.js +3 -0
  46. package/dist-embed-sighting/ModuleThree-TrytNggN.js +1 -0
  47. package/dist-embed-sighting/{NearestApproach-CONyx4c5.js → NearestApproach-BM7B5PuM.js} +1 -1
  48. package/dist-embed-sighting/{ParameterForm-DFHcolwG.js → ParameterForm-BghOJXLP.js} +1 -1
  49. package/dist-embed-sighting/{PoherAssessor-DI86qOCu.js → PoherAssessor-DZMtM2pW.js} +1 -1
  50. package/dist-embed-sighting/PoherMatrix-C2fcLqDH.js +1 -0
  51. package/dist-embed-sighting/PoherSelfCheck-PJvhaWFK.js +1 -0
  52. package/dist-embed-sighting/{RailwaySystem-DcJr9BY_.js → RailwaySystem-Dmx9y4gO.js} +1 -1
  53. package/dist-embed-sighting/ReadingCheckTexts_en-C5qzU8K7.js +1 -0
  54. package/dist-embed-sighting/ReadingCheckTexts_es-DdhtmSew.js +1 -0
  55. package/dist-embed-sighting/ReadingCheckTexts_fr-COtovvqc.js +1 -0
  56. package/dist-embed-sighting/ReadingCheckTexts_it-Bz32XGh6.js +1 -0
  57. package/dist-embed-sighting/{ReentryEditor-C6EJJf4l.js → ReentryEditor-DozmlO_l.js} +1 -1
  58. package/dist-embed-sighting/{ReentrySimulation-BFVBOWrm.js → ReentrySimulation-WXW1IU2E.js} +1 -1
  59. package/dist-embed-sighting/{ReferenceSystem-zTvTqp5y.js → ReferenceSystem-BD7gXBee.js} +1 -1
  60. package/dist-embed-sighting/{RoadMarkings-DvWjbrSf.js → RoadMarkings-Bp07bgso.js} +1 -1
  61. package/dist-embed-sighting/SceneNames_en-BarwWQKA.js +1 -0
  62. package/dist-embed-sighting/SceneNames_es-CEdDjAb4.js +1 -0
  63. package/dist-embed-sighting/SceneNames_fr-m5WHqg-1.js +1 -0
  64. package/dist-embed-sighting/SceneNames_it-D_H_iZnc.js +1 -0
  65. package/dist-embed-sighting/{SearchlightEditor-By5Z3ef7.js → SearchlightEditor-BGmKCBrG.js} +1 -1
  66. package/dist-embed-sighting/{SearchlightSystem-PEMBDW1s.js → SearchlightSystem-5FPRRIkH.js} +1 -1
  67. package/dist-embed-sighting/SightingMessages_en-DKFVZnDu.js +1 -0
  68. package/dist-embed-sighting/SightingMessages_es-DYQlWvm0.js +1 -0
  69. package/dist-embed-sighting/SightingMessages_fr-BygVDDY9.js +1 -0
  70. package/dist-embed-sighting/SightingMessages_it-BI7GnXPz.js +1 -0
  71. package/dist-embed-sighting/{SkyLantern-yYihsrun.js → SkyLantern-1Rqy6fNz.js} +1 -1
  72. package/dist-embed-sighting/{TraceSystem-1K0WblAK.js → TraceSystem-DDlP7sxl.js} +2 -2
  73. package/dist-embed-sighting/{UfoMessages_en-CwRXodRE.js → UfoMessages_en-DvUA0KYR.js} +1 -1
  74. package/dist-embed-sighting/{WaterSystem-1VlNXZnO.js → WaterSystem-Ik6QzyT_.js} +2 -2
  75. package/dist-embed-sighting/rr0-sighting.mjs +417 -353
  76. package/dist-embed-sighting/sightingSchema-DoPVOlCB.js +1 -0
  77. package/dist-embed-sighting/{trafficRuntime-BUvbWOcl.js → trafficRuntime-CjDwU1Lk.js} +1 -1
  78. package/dist-embed-sighting-editor/{AdsbLolArchiveProvider-Bz1OjSjY.js → AdsbLolArchiveProvider-CNMGHqqx.js} +1 -1
  79. package/dist-embed-sighting-editor/{AirshipEditor-BlJXyxlr.js → AirshipEditor-BVlkWwdL.js} +1 -1
  80. package/dist-embed-sighting-editor/{AirshipFlight-Cx40Y8JT.js → AirshipFlight-Cvl6xWPY.js} +1 -1
  81. package/dist-embed-sighting-editor/{Aurora-Ldk66p1A.js → Aurora-DOIRpjiG.js} +1 -1
  82. package/dist-embed-sighting-editor/{AuroraEditor-CGSomAFk.js → AuroraEditor-B0tCM7E7.js} +1 -1
  83. package/dist-embed-sighting-editor/{AuroraSimulation-vKcv2Hue.js → AuroraSimulation-CX7V0obh.js} +2 -2
  84. package/dist-embed-sighting-editor/{BallesterGuaspAssessor-CJyRqwvh.js → BallesterGuaspAssessor-DEJId5n8.js} +1 -1
  85. package/dist-embed-sighting-editor/{BalloonEditor-CgO4LaWn.js → BalloonEditor-Drb5evP5.js} +1 -1
  86. package/dist-embed-sighting-editor/{BalloonFlight-hLr_4TFU.js → BalloonFlight-CGXmDbNq.js} +1 -1
  87. package/dist-embed-sighting-editor/{BeamEditor-B8qreA3j.js → BeamEditor-DP2LNObR.js} +1 -1
  88. package/dist-embed-sighting-editor/{BeamSystem-D0hrju5J.js → BeamSystem-BCaOtm3H.js} +1 -1
  89. package/dist-embed-sighting-editor/{BirdEditor-BNzrfSqX.js → BirdEditor-CbYZcYyG.js} +1 -1
  90. package/dist-embed-sighting-editor/{BirdFlock-iSovVEZd.js → BirdFlock-Dv9Awhvf.js} +1 -1
  91. package/dist-embed-sighting-editor/CaseElement-CC4gimF1.js +132 -0
  92. package/dist-embed-sighting-editor/{CaseReportExport-Bv6FWPs2.js → CaseReportExport-DmvvH_GH.js} +1 -1
  93. package/dist-embed-sighting-editor/{ContrailSystem-D3tXAg2r.js → ContrailSystem-ChbOVWp-.js} +1 -1
  94. package/dist-embed-sighting-editor/{ControlPasses-CaVHMhEY.js → ControlPasses-Dgz_D6DL.js} +1 -1
  95. package/dist-embed-sighting-editor/{CoverageAssessor-CTfHqAd_.js → CoverageAssessor-CcVuVsG0.js} +1 -1
  96. package/dist-embed-sighting-editor/{DroneEditor-BFsArPKi.js → DroneEditor-D6k4gYj4.js} +1 -1
  97. package/dist-embed-sighting-editor/{DroneFlight-B96pVrY1.js → DroneFlight-D-MWhrXa.js} +1 -1
  98. package/dist-embed-sighting-editor/{DroneParameters-DW-enQUo.js → DroneParameters-CdQbwFKD.js} +1 -1
  99. package/dist-embed-sighting-editor/{Flightradar24Provider-CBGkjw03.js → Flightradar24Provider-D_eLiI9k.js} +1 -1
  100. package/dist-embed-sighting-editor/{GLTFLoader-CrRPu-Pt.js → GLTFLoader-BIk0ozTu.js} +1 -1
  101. package/dist-embed-sighting-editor/{HeadlightSystem-BmPfcHt1.js → HeadlightSystem-C9tLjvpO.js} +1 -1
  102. package/dist-embed-sighting-editor/HvsMessages_en-BiLhEAxJ.js +1 -0
  103. package/dist-embed-sighting-editor/HvsMessages_es-Cbj_6eFs.js +1 -0
  104. package/dist-embed-sighting-editor/HvsMessages_fr-DkvE2qm1.js +1 -0
  105. package/dist-embed-sighting-editor/HvsMessages_it-BIJ87Uyb.js +1 -0
  106. package/dist-embed-sighting-editor/{HynekAssessor-nBidt6QV.js → HynekAssessor-B4ej1xgG.js} +1 -1
  107. package/dist-embed-sighting-editor/{InterviewEditorElement-CQWfYlGL.js → InterviewEditorElement-Bo4OG2ig.js} +7 -7
  108. package/dist-embed-sighting-editor/InterviewMessages_en-Ikx6GjEd.js +3 -0
  109. package/dist-embed-sighting-editor/InterviewMessages_es-DKWWyrnb.js +3 -0
  110. package/dist-embed-sighting-editor/InterviewMessages_fr-DT0gXAKD.js +3 -0
  111. package/dist-embed-sighting-editor/InterviewMessages_it-CF_9MYPt.js +3 -0
  112. package/dist-embed-sighting-editor/{LanternEditor-CjQVFowY.js → LanternEditor-Hd-8kmET.js} +1 -1
  113. package/dist-embed-sighting-editor/{LaserBeam-BVc8Mvhr.js → LaserBeam-Ca2QUeCT.js} +1 -1
  114. package/dist-embed-sighting-editor/{LaunchEditor-Cz8Mzo4a.js → LaunchEditor-BykQEscN.js} +1 -1
  115. package/dist-embed-sighting-editor/{LaunchPlume-CvBhTPgN.js → LaunchPlume-Dos-OyTV.js} +1 -1
  116. package/dist-embed-sighting-editor/{LaunchSimulation-CkZIG-3P.js → LaunchSimulation-B0DgOoJM.js} +1 -1
  117. package/dist-embed-sighting-editor/{ModelSource-B153oeTu.js → ModelSource-szsl2QtY.js} +1 -1
  118. package/dist-embed-sighting-editor/{ModelThumbnails-BUL_OLFv.js → ModelThumbnails-dnCeD6UT.js} +1 -1
  119. package/dist-embed-sighting-editor/{ModelViewer-BzBLcY9s.js → ModelViewer-BNGSukqO.js} +1 -1
  120. package/dist-embed-sighting-editor/{ModuleConformance-CpMYkYgb.js → ModuleConformance-CEXxsL48.js} +2 -2
  121. package/dist-embed-sighting-editor/ModuleSession-DOhPD2XZ.js +3 -0
  122. package/dist-embed-sighting-editor/ModuleThree-BY0cNbGt.js +1 -0
  123. package/dist-embed-sighting-editor/ModulesPanelElement-DTnJICg0.js +26 -0
  124. package/dist-embed-sighting-editor/ModulesPanelMessages_en-CXQhQMyu.js +1 -0
  125. package/dist-embed-sighting-editor/ModulesPanelMessages_es-Bj-cT3f4.js +1 -0
  126. package/dist-embed-sighting-editor/ModulesPanelMessages_fr-B-eaMXQz.js +1 -0
  127. package/dist-embed-sighting-editor/ModulesPanelMessages_it-C3fS8UFN.js +1 -0
  128. package/dist-embed-sighting-editor/{NearestApproach-Bxo_N7a9.js → NearestApproach-jDpDx7cm.js} +1 -1
  129. package/dist-embed-sighting-editor/{PoherAssessor-CEVA26zd.js → PoherAssessor-yWlnEcoZ.js} +1 -1
  130. package/dist-embed-sighting-editor/{RailwaySystem-Ceb0_MVz.js → RailwaySystem-CAqOaX1c.js} +1 -1
  131. package/dist-embed-sighting-editor/ReadingCheckTexts_en-C5qzU8K7.js +1 -0
  132. package/dist-embed-sighting-editor/ReadingCheckTexts_es-DdhtmSew.js +1 -0
  133. package/dist-embed-sighting-editor/ReadingCheckTexts_fr-COtovvqc.js +1 -0
  134. package/dist-embed-sighting-editor/ReadingCheckTexts_it-Bz32XGh6.js +1 -0
  135. package/dist-embed-sighting-editor/{ReentryEditor-BWCK2g_s.js → ReentryEditor-CNLwoAIZ.js} +2 -2
  136. package/dist-embed-sighting-editor/{ReentrySimulation-B09JXMu5.js → ReentrySimulation-Q-8h8lRK.js} +1 -1
  137. package/dist-embed-sighting-editor/{ReferenceSystem-B15kw0uH.js → ReferenceSystem-B0tZDQ1-.js} +1 -1
  138. package/dist-embed-sighting-editor/SceneNames_en-CTJiUG-r.js +1 -0
  139. package/dist-embed-sighting-editor/SceneNames_es-DHZMjSqb.js +1 -0
  140. package/dist-embed-sighting-editor/SceneNames_fr-C36uyjbM.js +1 -0
  141. package/dist-embed-sighting-editor/SceneNames_it-BQJQm2rT.js +1 -0
  142. package/dist-embed-sighting-editor/{SearchlightEditor-BpwPOhJ6.js → SearchlightEditor-sQh92hx7.js} +1 -1
  143. package/dist-embed-sighting-editor/{SearchlightSystem-D7sdsRYn.js → SearchlightSystem-B_RPbGj4.js} +1 -1
  144. package/dist-embed-sighting-editor/SightingEditorMessages_en-V_dJYjNb.js +12 -0
  145. package/dist-embed-sighting-editor/SightingEditorMessages_es-DauDuhPa.js +12 -0
  146. package/dist-embed-sighting-editor/SightingEditorMessages_fr-zxTvQa2I.js +12 -0
  147. package/dist-embed-sighting-editor/SightingEditorMessages_it-vvaao68O.js +12 -0
  148. package/dist-embed-sighting-editor/SightingElement-BpYuBmJB.js +694 -0
  149. package/dist-embed-sighting-editor/{SightingFileEditor-Du3A9uZm.js → SightingFileEditor-tIOJTG_y.js} +1 -1
  150. package/dist-embed-sighting-editor/SightingLabels_en-dOsFjVRL.js +1 -0
  151. package/dist-embed-sighting-editor/SightingLabels_es-CKlP2BDO.js +1 -0
  152. package/{dist-embed-ufoathome/SightingLabels_fr-D69zENbW.js → dist-embed-sighting-editor/SightingLabels_fr-Cpkcf5_9.js} +1 -1
  153. package/{dist-embed-ufoathome/SightingLabels_it-COLZ2Qth.js → dist-embed-sighting-editor/SightingLabels_it-3127rMXm.js} +1 -1
  154. package/dist-embed-sighting-editor/{SightingMessages_en-CzICxNU3.js → SightingMessages_en-Drcr3k4V.js} +1 -1
  155. package/dist-embed-sighting-editor/{SightingMessages_es-CiVFZlgA.js → SightingMessages_es-BcaWM7Oy.js} +1 -1
  156. package/dist-embed-sighting-editor/{SightingMessages_fr-nopOVDa1.js → SightingMessages_fr-7IYuW095.js} +1 -1
  157. package/dist-embed-sighting-editor/{SightingMessages_it-Cu0nnPts.js → SightingMessages_it-BhDmZn6p.js} +1 -1
  158. package/dist-embed-sighting-editor/{SkyLantern-D6bru_e_.js → SkyLantern-Cj60Cn9B.js} +1 -1
  159. package/dist-embed-sighting-editor/{TraceSystem-Bv4kLpie.js → TraceSystem-BK0y5lRX.js} +2 -2
  160. package/dist-embed-sighting-editor/{WaterSystem-Bbk_RJKg.js → WaterSystem-DMeMEW3i.js} +2 -2
  161. package/dist-embed-sighting-editor/{caseSchema-BEJTs2Ld.js → caseSchema-Cukbjeex.js} +1 -1
  162. package/dist-embed-sighting-editor/rr0-sighting-editor.mjs +508 -439
  163. package/dist-embed-sighting-editor/sightingSchema-DoPVOlCB.js +1 -0
  164. package/dist-embed-sighting-editor/{trafficRuntime-Bu3my6S4.js → trafficRuntime-eGXY41n0.js} +1 -1
  165. package/dist-embed-ufoathome/{AdsbLolArchiveProvider-v1sSwhN1.js → AdsbLolArchiveProvider-Ck345V92.js} +1 -1
  166. package/dist-embed-ufoathome/{AirshipEditor-CBSrQM3J.js → AirshipEditor-EBfUtSiB.js} +1 -1
  167. package/dist-embed-ufoathome/{AirshipFlight-Dzpw8HRM.js → AirshipFlight-6yYGIRn8.js} +1 -1
  168. package/dist-embed-ufoathome/{Aurora-Dc4u2vEw.js → Aurora-CMORgA2p.js} +1 -1
  169. package/dist-embed-ufoathome/{AuroraEditor-CeLzRDPj.js → AuroraEditor-CDZgVOlI.js} +1 -1
  170. package/dist-embed-ufoathome/{AuroraSimulation-BT1CdWX5.js → AuroraSimulation-DqfSBul6.js} +1 -1
  171. package/dist-embed-ufoathome/{BallesterGuaspAssessor-CPW-Omah.js → BallesterGuaspAssessor-DUNQZ9e8.js} +1 -1
  172. package/dist-embed-ufoathome/{BalloonEditor-dCIjTsIz.js → BalloonEditor-Cx3fRab8.js} +2 -2
  173. package/dist-embed-ufoathome/{BalloonFlight-CztT6ddg.js → BalloonFlight-CvE7AHlm.js} +1 -1
  174. package/dist-embed-ufoathome/{BeamEditor-BS73mBZU.js → BeamEditor-gxTjO6Pr.js} +1 -1
  175. package/dist-embed-ufoathome/{BeamSystem-C5EpRhij.js → BeamSystem-C8jjTJtB.js} +1 -1
  176. package/dist-embed-ufoathome/{BirdEditor-Dk3huwHa.js → BirdEditor-CBVGyUnK.js} +1 -1
  177. package/dist-embed-ufoathome/{BodyEditor-BV8WwzAj.js → BodyEditor-DGaBo74A.js} +1 -1
  178. package/dist-embed-ufoathome/CaseEditorElement-BOp207Tr.js +3182 -0
  179. package/dist-embed-ufoathome/CaseElement-BGO5UZLP.js +132 -0
  180. package/dist-embed-ufoathome/{CaseReportExport-XLbFCkPg.js → CaseReportExport-6DFaJzfO.js} +3 -3
  181. package/dist-embed-ufoathome/ColumnResize-DnX89ynB.js +208 -0
  182. package/dist-embed-ufoathome/ConsentMessages_en-DBKCeDAn.js +1 -0
  183. package/dist-embed-ufoathome/ConsentMessages_es-Dby74lUq.js +1 -0
  184. package/dist-embed-ufoathome/ConsentMessages_fr-FGSpqzMc.js +1 -0
  185. package/dist-embed-ufoathome/ConsentMessages_it-BJWfXH6I.js +1 -0
  186. package/dist-embed-ufoathome/{ControlPasses-CKOU_3lG.js → ControlPasses-CeExr5X1.js} +1 -1
  187. package/dist-embed-ufoathome/{CoverageAssessor-BYMf3Qhv.js → CoverageAssessor-BbqRqh0C.js} +1 -1
  188. package/dist-embed-ufoathome/{DroneEditor-D60uhSHO.js → DroneEditor-7X9CM_3H.js} +1 -1
  189. package/dist-embed-ufoathome/{Flightradar24Provider-_QPbhh5s.js → Flightradar24Provider-MzQcuUHn.js} +1 -1
  190. package/dist-embed-ufoathome/{GLTFLoader-DQeHB-Bk.js → GLTFLoader-CPUffC65.js} +1 -1
  191. package/dist-embed-ufoathome/{GeoJsonExport-Pq_pPvjK.js → GeoJsonExport-D7QhWNRC.js} +1 -1
  192. package/dist-embed-ufoathome/{GeographicFigures-KII55iXE.js → GeographicFigures-BvEeCtxr.js} +1 -1
  193. package/dist-embed-ufoathome/HvsMessages_en-BiLhEAxJ.js +1 -0
  194. package/dist-embed-ufoathome/HvsMessages_es-Cbj_6eFs.js +1 -0
  195. package/dist-embed-ufoathome/HvsMessages_fr-DkvE2qm1.js +1 -0
  196. package/dist-embed-ufoathome/HvsMessages_it-BIJ87Uyb.js +1 -0
  197. package/dist-embed-ufoathome/HynekAssessor-BwjRkQWT.js +1 -0
  198. package/dist-embed-ufoathome/{InterviewEditorElement-BSwkegEp.js → InterviewEditorElement-CVCOicLD.js} +6 -6
  199. package/dist-embed-ufoathome/{InterviewElement-CfkDtybc.js → InterviewElement-ZI42DKRx.js} +2 -2
  200. package/dist-embed-ufoathome/InterviewMessages_en-Ikx6GjEd.js +3 -0
  201. package/dist-embed-ufoathome/InterviewMessages_es-DKWWyrnb.js +3 -0
  202. package/dist-embed-ufoathome/InterviewMessages_fr-DT0gXAKD.js +3 -0
  203. package/dist-embed-ufoathome/InterviewMessages_it-CF_9MYPt.js +3 -0
  204. package/dist-embed-ufoathome/{KmlExport-BMNwwys8.js → KmlExport-BX0nxAaA.js} +1 -1
  205. package/dist-embed-ufoathome/{LanternEditor-BapUZdog.js → LanternEditor-BROUv-vx.js} +1 -1
  206. package/dist-embed-ufoathome/{LaserBeam-B-tlAzNB.js → LaserBeam-ChD9aV-N.js} +1 -1
  207. package/dist-embed-ufoathome/LaunchEditor-CM2Wcjv2.js +22 -0
  208. package/dist-embed-ufoathome/{LaunchPlume-D-vSb8tJ.js → LaunchPlume-DeVRe05u.js} +1 -1
  209. package/dist-embed-ufoathome/{LaunchSimulation-CZ8Oba00.js → LaunchSimulation-RROdYccW.js} +1 -1
  210. package/dist-embed-ufoathome/{ModelSource-HSiigkeO.js → ModelSource-nXZ6eIH5.js} +1 -1
  211. package/dist-embed-ufoathome/{ModelThumbnails-DWvRMmj_.js → ModelThumbnails-CRSm49vm.js} +1 -1
  212. package/dist-embed-ufoathome/{ModelViewer-CM7qTW8F.js → ModelViewer-BQsl_Nfn.js} +1 -1
  213. package/dist-embed-ufoathome/ModuleSession-Dac4fD0X.js +3 -0
  214. package/dist-embed-ufoathome/ModulesPanelElement-BvzY1GUF.js +18 -0
  215. package/dist-embed-ufoathome/ModulesPanelMessages_en-Dir0ADQe.js +1 -0
  216. package/dist-embed-ufoathome/ModulesPanelMessages_es-B_ITNG5N.js +1 -0
  217. package/dist-embed-ufoathome/ModulesPanelMessages_fr-DbKLtD8s.js +1 -0
  218. package/dist-embed-ufoathome/ModulesPanelMessages_it-CE0q7D2c.js +1 -0
  219. package/dist-embed-ufoathome/{NearestApproach-PAsV5RlG.js → NearestApproach-DbUpe1iw.js} +1 -1
  220. package/dist-embed-ufoathome/{PoherAssessor-CniYlhUl.js → PoherAssessor-Dmro58tC.js} +1 -1
  221. package/dist-embed-ufoathome/PoherMatrix-C2fcLqDH.js +1 -0
  222. package/dist-embed-ufoathome/PoherSelfCheck-pcYj_hQ1.js +1 -0
  223. package/dist-embed-ufoathome/QuestionnaireFeed-DmyYcwwf.js +1 -0
  224. package/dist-embed-ufoathome/QuestionnaireForm-vT3C3qXt.js +1 -0
  225. package/dist-embed-ufoathome/QuestionnaireImport-BlTDOHWj.js +5 -0
  226. package/dist-embed-ufoathome/ReadingCheckTexts_en-C5qzU8K7.js +1 -0
  227. package/dist-embed-ufoathome/ReadingCheckTexts_es-DdhtmSew.js +1 -0
  228. package/dist-embed-ufoathome/ReadingCheckTexts_fr-COtovvqc.js +1 -0
  229. package/dist-embed-ufoathome/ReadingCheckTexts_it-Bz32XGh6.js +1 -0
  230. package/dist-embed-ufoathome/{ReentryEditor-Qax1sT82.js → ReentryEditor-Di0KzYeZ.js} +1 -1
  231. package/dist-embed-ufoathome/{ReentrySimulation-CTeCaxZl.js → ReentrySimulation-HhdlSVkR.js} +1 -1
  232. package/dist-embed-ufoathome/{ReferenceSystem-CM27OCUo.js → ReferenceSystem-B30-UBHY.js} +1 -1
  233. package/dist-embed-ufoathome/ScenarioReadings-EAUAsx9t.js +1 -0
  234. package/dist-embed-ufoathome/ScenarioSweep-jTxLjnaW.js +1 -0
  235. package/dist-embed-ufoathome/SceneNames_en-sRbx6EJZ.js +1 -0
  236. package/dist-embed-ufoathome/SceneNames_es-pnfHB-7D.js +1 -0
  237. package/dist-embed-ufoathome/SceneNames_fr-BtTlti4C.js +1 -0
  238. package/dist-embed-ufoathome/SceneNames_it-DQKwdCVD.js +1 -0
  239. package/dist-embed-ufoathome/{SearchlightEditor-PuLz84pp.js → SearchlightEditor-B6_BW8FD.js} +1 -1
  240. package/dist-embed-ufoathome/{SearchlightSystem-B-tHvY1M.js → SearchlightSystem-D_DTpDNC.js} +1 -1
  241. package/dist-embed-ufoathome/{ShareDialogElement-EzLob2Tz.js → ShareDialogElement-C0oFh0X4.js} +150 -132
  242. package/dist-embed-ufoathome/Sighting-BX_CmDY2.js +1 -0
  243. package/dist-embed-ufoathome/SightingEditorMessages_en-V_dJYjNb.js +12 -0
  244. package/dist-embed-ufoathome/SightingEditorMessages_es-DauDuhPa.js +12 -0
  245. package/dist-embed-ufoathome/SightingEditorMessages_fr-zxTvQa2I.js +12 -0
  246. package/dist-embed-ufoathome/SightingEditorMessages_it-vvaao68O.js +12 -0
  247. package/dist-embed-ufoathome/SightingElement-DzxTvvLN.js +694 -0
  248. package/dist-embed-ufoathome/{SightingFileEditor-DS1DRU2p.js → SightingFileEditor-D5_GwIsn.js} +1 -1
  249. package/dist-embed-ufoathome/SightingLabels_en-dOsFjVRL.js +1 -0
  250. package/dist-embed-ufoathome/SightingLabels_es-CKlP2BDO.js +1 -0
  251. package/{dist-embed-sighting-editor/SightingLabels_fr-D69zENbW.js → dist-embed-ufoathome/SightingLabels_fr-Cpkcf5_9.js} +1 -1
  252. package/{dist-embed-sighting-editor/SightingLabels_it-COLZ2Qth.js → dist-embed-ufoathome/SightingLabels_it-3127rMXm.js} +1 -1
  253. package/dist-embed-ufoathome/{SightingMessages_en-CzICxNU3.js → SightingMessages_en-Drcr3k4V.js} +1 -1
  254. package/dist-embed-ufoathome/{SightingMessages_es-CiVFZlgA.js → SightingMessages_es-BcaWM7Oy.js} +1 -1
  255. package/dist-embed-ufoathome/{SightingMessages_fr-nopOVDa1.js → SightingMessages_fr-7IYuW095.js} +1 -1
  256. package/dist-embed-ufoathome/{SightingMessages_it-Cu0nnPts.js → SightingMessages_it-BhDmZn6p.js} +1 -1
  257. package/dist-embed-ufoathome/{TraceSystem-8XQX03MS.js → TraceSystem-CiBRo1aU.js} +1 -1
  258. package/dist-embed-ufoathome/UfoAtHomeMessages_en-ByVu39KF.js +1 -0
  259. package/dist-embed-ufoathome/UfoAtHomeMessages_es-D9bLboxq.js +1 -0
  260. package/dist-embed-ufoathome/UfoAtHomeMessages_fr-nTqRf0ZK.js +1 -0
  261. package/dist-embed-ufoathome/UfoAtHomeMessages_it-4cZC5-y5.js +1 -0
  262. package/dist-embed-ufoathome/{VideoButton-WNtEngz-.js → VideoButton-BseBKx2r.js} +1 -1
  263. package/dist-embed-ufoathome/{caseSchema-BEJTs2Ld.js → caseSchema-Cukbjeex.js} +1 -1
  264. package/dist-embed-ufoathome/rr0-ufoathome.mjs +35 -17
  265. package/dist-embed-ufoathome/sightingSchema-DoPVOlCB.js +1 -0
  266. package/dist-embed-ufoathome/{surroundingsSources-UHKGesPa.js → surroundingsSources-BSh42KUu.js} +1 -1
  267. package/dist-embed-ufoathome/{trafficRuntime-CgY_7-NH.js → trafficRuntime-BMTtwn7o.js} +2 -2
  268. package/package.json +1 -1
  269. package/dist-embed-interview/InterviewMessages_en-BrnxG2rl.js +0 -3
  270. package/dist-embed-interview/InterviewMessages_es-Dxfjqrte.js +0 -3
  271. package/dist-embed-interview/InterviewMessages_fr-DIA-1qu8.js +0 -3
  272. package/dist-embed-interview/InterviewMessages_it-CYBEIKX-.js +0 -3
  273. package/dist-embed-scene/ModuleSession-bj7QHWjO.js +0 -3
  274. package/dist-embed-scene/SceneNames_en-BFJsR6Cc.js +0 -1
  275. package/dist-embed-scene/SceneNames_es-BHBTwcJ3.js +0 -1
  276. package/dist-embed-scene/SceneNames_fr-CFsA4XeK.js +0 -1
  277. package/dist-embed-scene/SceneNames_it-DkIgwviv.js +0 -1
  278. package/dist-embed-scene/sightingSchema-9MogCcUd.js +0 -1
  279. package/dist-embed-sighting/BalloonEditor-CaWwqWKK.js +0 -24
  280. package/dist-embed-sighting/ControlPasses-Dr6eP2Mq.js +0 -29
  281. package/dist-embed-sighting/GenerativeKitMessages-NbyGMKAR.js +0 -1
  282. package/dist-embed-sighting/InterviewMessages_en-BrnxG2rl.js +0 -3
  283. package/dist-embed-sighting/InterviewMessages_es-Dxfjqrte.js +0 -3
  284. package/dist-embed-sighting/InterviewMessages_fr-DIA-1qu8.js +0 -3
  285. package/dist-embed-sighting/InterviewMessages_it-CYBEIKX-.js +0 -3
  286. package/dist-embed-sighting/LanternEditor-Be5Io1J-.js +0 -24
  287. package/dist-embed-sighting/ModuleSession-DztK084a.js +0 -3
  288. package/dist-embed-sighting/ModuleThree-BLNSm2eY.js +0 -1
  289. package/dist-embed-sighting/ReadingCheckTexts_en-eq6teExJ.js +0 -1
  290. package/dist-embed-sighting/ReadingCheckTexts_es-CR_JJZMV.js +0 -1
  291. package/dist-embed-sighting/ReadingCheckTexts_fr-pcDleIvY.js +0 -1
  292. package/dist-embed-sighting/ReadingCheckTexts_it-MFKeoXnq.js +0 -1
  293. package/dist-embed-sighting/SceneNames_en-BlRTU7Hq.js +0 -1
  294. package/dist-embed-sighting/SceneNames_es-DMNd9trd.js +0 -1
  295. package/dist-embed-sighting/SceneNames_fr-DlMcv9D0.js +0 -1
  296. package/dist-embed-sighting/SceneNames_it-DqlWMlOE.js +0 -1
  297. package/dist-embed-sighting/SightingMessages_en-D3YVhgUj.js +0 -1
  298. package/dist-embed-sighting/SightingMessages_es-ME6FeTp-.js +0 -1
  299. package/dist-embed-sighting/SightingMessages_fr-BgXYuIq4.js +0 -1
  300. package/dist-embed-sighting/SightingMessages_it-DcE90eAl.js +0 -1
  301. package/dist-embed-sighting/sightingSchema-9MogCcUd.js +0 -1
  302. package/dist-embed-sighting-editor/CaseElement-D80gHg4r.js +0 -131
  303. package/dist-embed-sighting-editor/InterviewMessages_en-BrnxG2rl.js +0 -3
  304. package/dist-embed-sighting-editor/InterviewMessages_es-Dxfjqrte.js +0 -3
  305. package/dist-embed-sighting-editor/InterviewMessages_fr-DIA-1qu8.js +0 -3
  306. package/dist-embed-sighting-editor/InterviewMessages_it-CYBEIKX-.js +0 -3
  307. package/dist-embed-sighting-editor/ModuleSession-b_pmjUfP.js +0 -3
  308. package/dist-embed-sighting-editor/ModuleThree-B_FZVqsf.js +0 -1
  309. package/dist-embed-sighting-editor/ModulesPanelElement-D0gn9Z-y.js +0 -15
  310. package/dist-embed-sighting-editor/ModulesPanelMessages_en-DuwrY3Pm.js +0 -1
  311. package/dist-embed-sighting-editor/ModulesPanelMessages_es-Bq5X-XuT.js +0 -1
  312. package/dist-embed-sighting-editor/ModulesPanelMessages_fr-B8cSDc6o.js +0 -1
  313. package/dist-embed-sighting-editor/ModulesPanelMessages_it-BdC626aJ.js +0 -1
  314. package/dist-embed-sighting-editor/ReadingCheckTexts_en-eq6teExJ.js +0 -1
  315. package/dist-embed-sighting-editor/ReadingCheckTexts_es-CR_JJZMV.js +0 -1
  316. package/dist-embed-sighting-editor/ReadingCheckTexts_fr-pcDleIvY.js +0 -1
  317. package/dist-embed-sighting-editor/ReadingCheckTexts_it-MFKeoXnq.js +0 -1
  318. package/dist-embed-sighting-editor/SceneNames_en-c5zNw0Hi.js +0 -1
  319. package/dist-embed-sighting-editor/SceneNames_es-CDjoBwy_.js +0 -1
  320. package/dist-embed-sighting-editor/SceneNames_fr-CoZNmFu3.js +0 -1
  321. package/dist-embed-sighting-editor/SceneNames_it-CVEahBpq.js +0 -1
  322. package/dist-embed-sighting-editor/SightingEditorMessages_en-k7_ua2OM.js +0 -12
  323. package/dist-embed-sighting-editor/SightingEditorMessages_es-Drqbbr5_.js +0 -12
  324. package/dist-embed-sighting-editor/SightingEditorMessages_fr-B_K5hsuV.js +0 -12
  325. package/dist-embed-sighting-editor/SightingEditorMessages_it-QCLg1d7x.js +0 -12
  326. package/dist-embed-sighting-editor/SightingElement-Bp-t_EAF.js +0 -693
  327. package/dist-embed-sighting-editor/SightingLabels_en-oIpytoq_.js +0 -1
  328. package/dist-embed-sighting-editor/SightingLabels_es-DUh1CTXl.js +0 -1
  329. package/dist-embed-sighting-editor/angular-size-CxoysZle.png +0 -0
  330. package/dist-embed-sighting-editor/azimuth-CvjiPmz0.png +0 -0
  331. package/dist-embed-sighting-editor/elevation-DPr5S6Jt.png +0 -0
  332. package/dist-embed-sighting-editor/geipan-qt-2025-B_RUiH8B.js +0 -7
  333. package/dist-embed-sighting-editor/protractor-DyE30B87.png +0 -0
  334. package/dist-embed-sighting-editor/sightingSchema-9MogCcUd.js +0 -1
  335. package/dist-embed-ufoathome/CaseEditorElement-HR8RFluQ.js +0 -3175
  336. package/dist-embed-ufoathome/CaseElement-vCbCfGOv.js +0 -131
  337. package/dist-embed-ufoathome/ColumnResize-CEXrq3KB.js +0 -164
  338. package/dist-embed-ufoathome/HynekAssessor-wCDhgIB8.js +0 -1
  339. package/dist-embed-ufoathome/InterviewAttachments-BP6Prvdu.js +0 -1
  340. package/dist-embed-ufoathome/InterviewMessages_en-BrnxG2rl.js +0 -3
  341. package/dist-embed-ufoathome/InterviewMessages_es-Dxfjqrte.js +0 -3
  342. package/dist-embed-ufoathome/InterviewMessages_fr-DIA-1qu8.js +0 -3
  343. package/dist-embed-ufoathome/InterviewMessages_it-CYBEIKX-.js +0 -3
  344. package/dist-embed-ufoathome/LaunchEditor-Cy5D-gwU.js +0 -22
  345. package/dist-embed-ufoathome/ModuleSession-BKDWGSEo.js +0 -3
  346. package/dist-embed-ufoathome/ModulesPanelElement-DsOa2zH0.js +0 -15
  347. package/dist-embed-ufoathome/ModulesPanelMessages_en-DuwrY3Pm.js +0 -1
  348. package/dist-embed-ufoathome/ModulesPanelMessages_es-Bq5X-XuT.js +0 -1
  349. package/dist-embed-ufoathome/ModulesPanelMessages_fr-B8cSDc6o.js +0 -1
  350. package/dist-embed-ufoathome/ModulesPanelMessages_it-BdC626aJ.js +0 -1
  351. package/dist-embed-ufoathome/QuestionnaireFeed-CpZqkxlt.js +0 -1
  352. package/dist-embed-ufoathome/QuestionnaireForm-LkllpNx-.js +0 -1
  353. package/dist-embed-ufoathome/QuestionnaireImport-CNROmkT2.js +0 -5
  354. package/dist-embed-ufoathome/ReadingCheckTexts_en-eq6teExJ.js +0 -1
  355. package/dist-embed-ufoathome/ReadingCheckTexts_es-CR_JJZMV.js +0 -1
  356. package/dist-embed-ufoathome/ReadingCheckTexts_fr-pcDleIvY.js +0 -1
  357. package/dist-embed-ufoathome/ReadingCheckTexts_it-MFKeoXnq.js +0 -1
  358. package/dist-embed-ufoathome/ScenarioReadings-Is3HX0n0.js +0 -1
  359. package/dist-embed-ufoathome/ScenarioSweep-BbtX26Fi.js +0 -1
  360. package/dist-embed-ufoathome/SceneNames_en-7OZ7peGc.js +0 -1
  361. package/dist-embed-ufoathome/SceneNames_es-P5-Mavdi.js +0 -1
  362. package/dist-embed-ufoathome/SceneNames_fr-qzw0QzD0.js +0 -1
  363. package/dist-embed-ufoathome/SceneNames_it-Sqf8JFOd.js +0 -1
  364. package/dist-embed-ufoathome/Sighting-B7bsiTIQ.js +0 -1
  365. package/dist-embed-ufoathome/SightingEditorMessages_en-k7_ua2OM.js +0 -12
  366. package/dist-embed-ufoathome/SightingEditorMessages_es-Drqbbr5_.js +0 -12
  367. package/dist-embed-ufoathome/SightingEditorMessages_fr-B_K5hsuV.js +0 -12
  368. package/dist-embed-ufoathome/SightingEditorMessages_it-QCLg1d7x.js +0 -12
  369. package/dist-embed-ufoathome/SightingElement--qpGoyxL.js +0 -693
  370. package/dist-embed-ufoathome/SightingLabels_en-oIpytoq_.js +0 -1
  371. package/dist-embed-ufoathome/SightingLabels_es-DUh1CTXl.js +0 -1
  372. package/dist-embed-ufoathome/UfoAtHomeMessages_en-BK2qJyZN.js +0 -1
  373. package/dist-embed-ufoathome/UfoAtHomeMessages_es-B1-NDCau.js +0 -1
  374. package/dist-embed-ufoathome/UfoAtHomeMessages_fr-BTG047qo.js +0 -1
  375. package/dist-embed-ufoathome/UfoAtHomeMessages_it-Ryxv4HNU.js +0 -1
  376. package/dist-embed-ufoathome/angular-size-CxoysZle.png +0 -0
  377. package/dist-embed-ufoathome/azimuth-CvjiPmz0.png +0 -0
  378. package/dist-embed-ufoathome/elevation-DPr5S6Jt.png +0 -0
  379. package/dist-embed-ufoathome/geipan-qt-2025-B_RUiH8B.js +0 -7
  380. package/dist-embed-ufoathome/protractor-DyE30B87.png +0 -0
  381. package/dist-embed-ufoathome/sightingSchema-9MogCcUd.js +0 -1
@@ -1,4 +1,4 @@
1
- import{a7 as ee,a3 as F,a8 as G,a9 as M,aa as te,ab as j,ac as $,K as E,ad as ie,ae as O,af as J,X as ne,ag as I,Y as se,Q as B,ah as oe,E as ae,ai as re,G as le,C as ce,aj as de,a2 as fe,ak as ue,al as pe,am as he,an as me,ao as V,p as ge}from"./rr0-sighting.mjs";const k=new j,P=new E;class Q extends ee{constructor(){super(),this.isLineSegmentsGeometry=!0,this.type="LineSegmentsGeometry";const e=[-1,2,0,1,2,0,-1,1,0,1,1,0,-1,0,0,1,0,0,-1,-1,0,1,-1,0],n=[-1,2,1,2,-1,1,1,1,-1,-1,1,-1,-1,-2,1,-2],i=[0,2,1,2,3,1,2,4,3,4,5,3,4,6,5,6,7,5];this.setIndex(i),this.setAttribute("position",new F(e,3)),this.setAttribute("uv",new F(n,2))}applyMatrix4(e){const n=this.attributes.instanceStart,i=this.attributes.instanceEnd;return n!==void 0&&(n.applyMatrix4(e),i.applyMatrix4(e),n.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this}setPositions(e){let n;e instanceof Float32Array?n=e:Array.isArray(e)&&(n=new Float32Array(e));const i=new G(n,6,1);return this.setAttribute("instanceStart",new M(i,3,0)),this.setAttribute("instanceEnd",new M(i,3,3)),this.instanceCount=this.attributes.instanceStart.count,this.computeBoundingBox(),this.computeBoundingSphere(),this}setColors(e){let n;e instanceof Float32Array?n=e:Array.isArray(e)&&(n=new Float32Array(e));const i=new G(n,6,1);return this.setAttribute("instanceColorStart",new M(i,3,0)),this.setAttribute("instanceColorEnd",new M(i,3,3)),this}fromWireframeGeometry(e){return this.setPositions(e.attributes.position.array),this}fromEdgesGeometry(e){return this.setPositions(e.attributes.position.array),this}fromMesh(e){return this.fromWireframeGeometry(new te(e.geometry)),this}fromLineSegments(e){const n=e.geometry;return this.setPositions(n.attributes.position.array),this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new j);const e=this.attributes.instanceStart,n=this.attributes.instanceEnd;e!==void 0&&n!==void 0&&(this.boundingBox.setFromBufferAttribute(e),k.setFromBufferAttribute(n),this.boundingBox.union(k))}computeBoundingSphere(){this.boundingSphere===null&&(this.boundingSphere=new $),this.boundingBox===null&&this.computeBoundingBox();const e=this.attributes.instanceStart,n=this.attributes.instanceEnd;if(e!==void 0&&n!==void 0){const i=this.boundingSphere.center;this.boundingBox.getCenter(i);let t=0;for(let o=0,l=e.count;o<l;o++)P.fromBufferAttribute(e,o),t=Math.max(t,i.distanceToSquared(P)),P.fromBufferAttribute(n,o),t=Math.max(t,i.distanceToSquared(P));this.boundingSphere.radius=Math.sqrt(t),isNaN(this.boundingSphere.radius)&&console.error("THREE.LineSegmentsGeometry.computeBoundingSphere(): Computed radius is NaN. The instanced position data is likely to have NaN values.",this)}}toJSON(){}}I.line={worldUnits:{value:1},linewidth:{value:1},resolution:{value:new ne},dashOffset:{value:0},dashScale:{value:1},dashSize:{value:1},gapSize:{value:1}};O.line={uniforms:J.merge([I.common,I.fog,I.line]),vertexShader:`
1
+ import{a8 as ee,a4 as F,a9 as G,aa as M,ab as te,ac as j,ad as K,N as E,ae as ie,af as O,ag as $,Y as ne,ah as I,Z as se,X as B,ai as oe,J as ae,aj as re,G as le,E as ce,ak as de,a3 as fe,al as ue,am as pe,an as he,ao as me,ap as V,u as ge}from"./rr0-sighting.mjs";const k=new j,P=new E;class Y extends ee{constructor(){super(),this.isLineSegmentsGeometry=!0,this.type="LineSegmentsGeometry";const e=[-1,2,0,1,2,0,-1,1,0,1,1,0,-1,0,0,1,0,0,-1,-1,0,1,-1,0],n=[-1,2,1,2,-1,1,1,1,-1,-1,1,-1,-1,-2,1,-2],i=[0,2,1,2,3,1,2,4,3,4,5,3,4,6,5,6,7,5];this.setIndex(i),this.setAttribute("position",new F(e,3)),this.setAttribute("uv",new F(n,2))}applyMatrix4(e){const n=this.attributes.instanceStart,i=this.attributes.instanceEnd;return n!==void 0&&(n.applyMatrix4(e),i.applyMatrix4(e),n.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this}setPositions(e){let n;e instanceof Float32Array?n=e:Array.isArray(e)&&(n=new Float32Array(e));const i=new G(n,6,1);return this.setAttribute("instanceStart",new M(i,3,0)),this.setAttribute("instanceEnd",new M(i,3,3)),this.instanceCount=this.attributes.instanceStart.count,this.computeBoundingBox(),this.computeBoundingSphere(),this}setColors(e){let n;e instanceof Float32Array?n=e:Array.isArray(e)&&(n=new Float32Array(e));const i=new G(n,6,1);return this.setAttribute("instanceColorStart",new M(i,3,0)),this.setAttribute("instanceColorEnd",new M(i,3,3)),this}fromWireframeGeometry(e){return this.setPositions(e.attributes.position.array),this}fromEdgesGeometry(e){return this.setPositions(e.attributes.position.array),this}fromMesh(e){return this.fromWireframeGeometry(new te(e.geometry)),this}fromLineSegments(e){const n=e.geometry;return this.setPositions(n.attributes.position.array),this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new j);const e=this.attributes.instanceStart,n=this.attributes.instanceEnd;e!==void 0&&n!==void 0&&(this.boundingBox.setFromBufferAttribute(e),k.setFromBufferAttribute(n),this.boundingBox.union(k))}computeBoundingSphere(){this.boundingSphere===null&&(this.boundingSphere=new K),this.boundingBox===null&&this.computeBoundingBox();const e=this.attributes.instanceStart,n=this.attributes.instanceEnd;if(e!==void 0&&n!==void 0){const i=this.boundingSphere.center;this.boundingBox.getCenter(i);let t=0;for(let o=0,l=e.count;o<l;o++)P.fromBufferAttribute(e,o),t=Math.max(t,i.distanceToSquared(P)),P.fromBufferAttribute(n,o),t=Math.max(t,i.distanceToSquared(P));this.boundingSphere.radius=Math.sqrt(t),isNaN(this.boundingSphere.radius)&&console.error("THREE.LineSegmentsGeometry.computeBoundingSphere(): Computed radius is NaN. The instanced position data is likely to have NaN values.",this)}}toJSON(){}}I.line={worldUnits:{value:1},linewidth:{value:1},resolution:{value:new ne},dashOffset:{value:0},dashScale:{value:1},dashSize:{value:1},gapSize:{value:1}};O.line={uniforms:$.merge([I.common,I.fog,I.line]),vertexShader:`
2
2
  #include <common>
3
3
  #include <color_pars_vertex>
4
4
  #include <fog_pars_vertex>
@@ -390,4 +390,4 @@ import{a7 as ee,a3 as F,a8 as G,a9 as M,aa as te,ab as j,ac as $,K as E,ad as ie
390
390
  #include <premultiplied_alpha_fragment>
391
391
 
392
392
  }
393
- `};class N extends ie{constructor(e){super({type:"LineMaterial",uniforms:J.clone(O.line.uniforms),vertexShader:O.line.vertexShader,fragmentShader:O.line.fragmentShader,clipping:!0}),this.isLineMaterial=!0,this.setValues(e)}get color(){return this.uniforms.diffuse.value}set color(e){this.uniforms.diffuse.value=e}get worldUnits(){return"WORLD_UNITS"in this.defines}set worldUnits(e){e===!0!==this.worldUnits&&(this.needsUpdate=!0),e===!0?this.defines.WORLD_UNITS="":delete this.defines.WORLD_UNITS}get linewidth(){return this.uniforms.linewidth.value}set linewidth(e){this.uniforms.linewidth&&(this.uniforms.linewidth.value=e)}get dashed(){return"USE_DASH"in this.defines}set dashed(e){e===!0!==this.dashed&&(this.needsUpdate=!0),e===!0?this.defines.USE_DASH="":delete this.defines.USE_DASH}get dashScale(){return this.uniforms.dashScale.value}set dashScale(e){this.uniforms.dashScale.value=e}get dashSize(){return this.uniforms.dashSize.value}set dashSize(e){this.uniforms.dashSize.value=e}get dashOffset(){return this.uniforms.dashOffset.value}set dashOffset(e){this.uniforms.dashOffset.value=e}get gapSize(){return this.uniforms.gapSize.value}set gapSize(e){this.uniforms.gapSize.value=e}get opacity(){return this.uniforms.opacity.value}set opacity(e){this.uniforms&&(this.uniforms.opacity.value=e)}get resolution(){return this.uniforms.resolution.value}set resolution(e){this.uniforms.resolution.value.copy(e)}get alphaToCoverage(){return"USE_ALPHA_TO_COVERAGE"in this.defines}set alphaToCoverage(e){this.defines&&(e===!0!==this.alphaToCoverage&&(this.needsUpdate=!0),e===!0?this.defines.USE_ALPHA_TO_COVERAGE="":delete this.defines.USE_ALPHA_TO_COVERAGE)}}const H=new B,X=new E,q=new E,f=new B,u=new B,x=new B,W=new E,R=new ae,p=new oe,K=new E,T=new j,C=new $,S=new B;let b,z;function Z(h,e,n){return S.set(0,0,-e,1).applyMatrix4(h.projectionMatrix),S.multiplyScalar(1/S.w),S.x=z/n.width,S.y=z/n.height,S.applyMatrix4(h.projectionMatrixInverse),S.multiplyScalar(1/S.w),Math.abs(Math.max(S.x,S.y))}function ve(h,e){const n=h.matrixWorld,i=h.geometry,t=i.attributes.instanceStart,o=i.attributes.instanceEnd,l=Math.min(i.instanceCount,t.count);for(let s=0,a=l;s<a;s++){p.start.fromBufferAttribute(t,s),p.end.fromBufferAttribute(o,s),p.applyMatrix4(n);const d=new E,m=new E;b.distanceSqToSegment(p.start,p.end,m,d),m.distanceTo(d)<z*.5&&e.push({point:m,pointOnLine:d,distance:b.origin.distanceTo(m),object:h,face:null,faceIndex:s,uv:null,uv1:null})}}function ye(h,e,n){const i=e.projectionMatrix,o=h.material.resolution,l=h.matrixWorld,s=h.geometry,a=s.attributes.instanceStart,d=s.attributes.instanceEnd,m=Math.min(s.instanceCount,a.count),c=-e.near;b.at(1,x),x.w=1,x.applyMatrix4(e.matrixWorldInverse),x.applyMatrix4(i),x.multiplyScalar(1/x.w),x.x*=o.x/2,x.y*=o.y/2,x.z=0,W.copy(x),R.multiplyMatrices(e.matrixWorldInverse,l);for(let g=0,r=m;g<r;g++){if(f.fromBufferAttribute(a,g),u.fromBufferAttribute(d,g),f.w=1,u.w=1,f.applyMatrix4(R),u.applyMatrix4(R),f.z>c&&u.z>c)continue;if(f.z>c){const _=f.z-u.z,w=(f.z-c)/_;f.lerp(u,w)}else if(u.z>c){const _=u.z-f.z,w=(u.z-c)/_;u.lerp(f,w)}f.applyMatrix4(i),u.applyMatrix4(i),f.multiplyScalar(1/f.w),u.multiplyScalar(1/u.w),f.x*=o.x/2,f.y*=o.y/2,u.x*=o.x/2,u.y*=o.y/2,p.start.copy(f),p.start.z=0,p.end.copy(u),p.end.z=0;const y=p.closestPointToPointParameter(W,!0);p.at(y,K);const L=re.lerp(f.z,u.z,y),U=L>=-1&&L<=1,D=W.distanceTo(K)<z*.5;if(U&&D){p.start.fromBufferAttribute(a,g),p.end.fromBufferAttribute(d,g),p.start.applyMatrix4(l),p.end.applyMatrix4(l);const _=new E,w=new E;b.distanceSqToSegment(p.start,p.end,w,_),n.push({point:w,pointOnLine:_,distance:b.origin.distanceTo(w),object:h,face:null,faceIndex:g,uv:null,uv1:null})}}}class we extends se{constructor(e=new Q,n=new N({color:Math.random()*16777215})){super(e,n),this.isLineSegments2=!0,this.type="LineSegments2"}computeLineDistances(){const e=this.geometry,n=e.attributes.instanceStart,i=e.attributes.instanceEnd,t=new Float32Array(2*n.count);for(let l=0,s=0,a=n.count;l<a;l++,s+=2)X.fromBufferAttribute(n,l),q.fromBufferAttribute(i,l),t[s]=s===0?0:t[s-1],t[s+1]=t[s]+X.distanceTo(q);const o=new G(t,2,1);return e.setAttribute("instanceDistanceStart",new M(o,1,0)),e.setAttribute("instanceDistanceEnd",new M(o,1,1)),this}raycast(e,n){const i=this.material.worldUnits,t=e.camera;if(t===null&&!i&&console.error('LineSegments2: "Raycaster.camera" needs to be set in order to raycast against LineSegments2 while worldUnits is set to false.'),i===!1&&(this.material.resolution.x===0||this.material.resolution.y===0))return;const o=e.params.Line2!==void 0&&e.params.Line2.threshold||0;b=e.ray;const l=this.matrixWorld,s=this.geometry,a=this.material;z=a.linewidth+o,s.boundingSphere===null&&s.computeBoundingSphere(),C.copy(s.boundingSphere).applyMatrix4(l);let d;if(i)d=z*.5;else{const c=Math.max(t.near,C.distanceToPoint(b.origin));d=Z(t,c,a.resolution)}if(C.radius+=d,b.intersectsSphere(C)===!1)return;s.boundingBox===null&&s.computeBoundingBox(),T.copy(s.boundingBox).applyMatrix4(l);let m;if(i)m=z*.5;else{const c=Math.max(t.near,T.distanceToPoint(b.origin));m=Z(t,c,a.resolution)}T.expandByScalar(m),b.intersectsBox(T)!==!1&&(i?ve(this,n):ye(this,t,n))}onBeforeRender(e){const n=this.material.uniforms;n&&n.resolution&&(e.getViewport(H),this.material.uniforms.resolution.value.set(H.z,H.w))}}class Y extends Q{constructor(){super(),this.isLineGeometry=!0,this.type="LineGeometry"}setPositions(e){const n=e.length-3,i=new Float32Array(2*n);for(let t=0;t<n;t+=3)i[2*t]=e[t],i[2*t+1]=e[t+1],i[2*t+2]=e[t+2],i[2*t+3]=e[t+3],i[2*t+4]=e[t+4],i[2*t+5]=e[t+5];return super.setPositions(i),this}setColors(e){const n=e.length-3,i=new Float32Array(2*n);for(let t=0;t<n;t+=3)i[2*t]=e[t],i[2*t+1]=e[t+1],i[2*t+2]=e[t+2],i[2*t+3]=e[t+3],i[2*t+4]=e[t+4],i[2*t+5]=e[t+5];return super.setColors(i),this}setFromPoints(e){const n=e.length-1,i=new Float32Array(6*n);for(let t=0;t<n;t++)i[6*t]=e[t].x,i[6*t+1]=e[t].y,i[6*t+2]=e[t].z||0,i[6*t+3]=e[t+1].x,i[6*t+4]=e[t+1].y,i[6*t+5]=e[t+1].z||0;return super.setPositions(i),this}fromLine(e){const n=e.geometry;return this.setPositions(n.attributes.position.array),this}}class xe extends we{constructor(e=new Y,n=new N({color:Math.random()*16777215})){super(e,n),this.isLine2=!0,this.type="Line2"}}class A{constructor(e){this.layer=e,this.group.name="traces"}static LINE_WIDTH_PX=2.5;static MARKER_SIZE_PX=9;static LABEL_HEIGHT_PX=15;static STEP_M=15;static LIFT_M=.3;group=new le;materials=[];pointsMaterials=[];labels=[];viewportHeightPx=720;fovDeg=60;set(e,n,i,t,o,l){this.empty();for(const s of e){const a=this.positions(s,i,t,o,l),d=new ce(s.color??de),m=n.get(s.id);if(m&&a.length>=3&&this.addLabel(m,this.labelAnchor(a,s.kind)),s.kind==="point"){const c=new fe;c.setAttribute("position",new F(a.slice(0,3),3));const g=new ue({color:d,size:A.MARKER_SIZE_PX,sizeAttenuation:!1,depthTest:!1,fog:!1});this.pointsMaterials.push(g);const r=new pe(c,g);r.name="trace point",r.frustumCulled=!1,r.layers.set(this.layer),this.group.add(r)}else if(a.length>=6){const c=new Y;c.setPositions(s.kind==="polygon"?[...a,a[0],a[1],a[2]]:a);const g=new N({color:d.getHex(),linewidth:A.LINE_WIDTH_PX,worldUnits:!1,transparent:!0,opacity:.92,depthTest:!1,fog:!1});this.materials.push(g);const r=new xe(c,g);r.name=`trace ${s.kind}`,r.frustumCulled=!1,r.layers.set(this.layer),this.group.add(r)}}}setView(e,n){for(const i of this.materials)i.resolution.copy(e);e.y===this.viewportHeightPx&&n===this.fovDeg||(this.viewportHeightPx=e.y,this.fovDeg=n,this.scaleLabels())}get any(){return this.group.children.length>0}dispose(){this.empty()}labelAnchor(e,n){let i=0;if(n==="line"){let t=-1;for(let o=0;o+2<e.length;o+=3){const l=Math.hypot(e[o],e[o+2]);l>t&&(t=l,i=o)}}return[e[i],e[i+1],e[i+2]]}addLabel(e,n){const i=document.createElement("canvas"),t=i.getContext("2d");if(!t)return;const o="bold 30px sans-serif";t.font=o;const l=10;i.width=Math.ceil(t.measureText(e).width)+l*2,i.height=44,t.font=o,t.fillStyle="rgba(0, 0, 0, 0.6)",t.beginPath(),t.roundRect(0,0,i.width,i.height,10),t.fill(),t.fillStyle="#ffffff",t.textBaseline="middle",t.fillText(e,l,i.height/2+2);const s=new he({map:new me(i),depthTest:!1,depthWrite:!1,fog:!1,sizeAttenuation:!1}),a=new V(s);a.name="trace name",a.center.set(0,0),a.position.set(n[0],n[1],n[2]),a.frustumCulled=!1,a.layers.set(this.layer),this.labels.push({sprite:a,aspect:i.width/i.height}),this.group.add(a),this.scaleLabels()}scaleLabels(){const e=A.LABEL_HEIGHT_PX/(this.viewportHeightPx/2)*Math.tan(this.fovDeg*Math.PI/360);for(const{sprite:n,aspect:i}of this.labels)n.scale.set(e*i,e,1)}empty(){for(const e of[...this.group.children])this.group.remove(e),e instanceof V?(e.material.map?.dispose(),e.material.dispose()):e.geometry.dispose();this.labels.length=0;for(const e of this.materials.splice(0))e.dispose();for(const e of this.pointsMaterials.splice(0))e.dispose()}positions(e,n,i,t,o){const l=e.altitude??"ground",s=e.points.map(r=>{const{x:v,z:y}=ge(r.lat,r.lng,n,i);return{x:v,z:y,altM:r.altM??0}}),a=l!=="absolute",d=[],m=(r,v,y)=>l==="absolute"?y-t:o(r,v)+(l==="relative"?y:0)+A.LIFT_M,c=e.kind==="polygon",g=c?s.length:s.length-1;for(let r=0;r<Math.max(g,1);r++){const v=s[r],y=s[(r+1)%s.length],L=a&&e.kind!=="point"?Math.max(1,Math.ceil(Math.hypot(y.x-v.x,y.z-v.z)/A.STEP_M)):1;for(let U=0;U<L;U++){const D=U/L,_=v.x+(y.x-v.x)*D,w=v.z+(y.z-v.z)*D;d.push(_,m(_,w,v.altM+(y.altM-v.altM)*D),w)}}if(!c&&e.kind!=="point"){const r=s[s.length-1];d.push(r.x,m(r.x,r.z,r.altM),r.z)}return d}}export{A as TraceSystem};
393
+ `};class N extends ie{constructor(e){super({type:"LineMaterial",uniforms:$.clone(O.line.uniforms),vertexShader:O.line.vertexShader,fragmentShader:O.line.fragmentShader,clipping:!0}),this.isLineMaterial=!0,this.setValues(e)}get color(){return this.uniforms.diffuse.value}set color(e){this.uniforms.diffuse.value=e}get worldUnits(){return"WORLD_UNITS"in this.defines}set worldUnits(e){e===!0!==this.worldUnits&&(this.needsUpdate=!0),e===!0?this.defines.WORLD_UNITS="":delete this.defines.WORLD_UNITS}get linewidth(){return this.uniforms.linewidth.value}set linewidth(e){this.uniforms.linewidth&&(this.uniforms.linewidth.value=e)}get dashed(){return"USE_DASH"in this.defines}set dashed(e){e===!0!==this.dashed&&(this.needsUpdate=!0),e===!0?this.defines.USE_DASH="":delete this.defines.USE_DASH}get dashScale(){return this.uniforms.dashScale.value}set dashScale(e){this.uniforms.dashScale.value=e}get dashSize(){return this.uniforms.dashSize.value}set dashSize(e){this.uniforms.dashSize.value=e}get dashOffset(){return this.uniforms.dashOffset.value}set dashOffset(e){this.uniforms.dashOffset.value=e}get gapSize(){return this.uniforms.gapSize.value}set gapSize(e){this.uniforms.gapSize.value=e}get opacity(){return this.uniforms.opacity.value}set opacity(e){this.uniforms&&(this.uniforms.opacity.value=e)}get resolution(){return this.uniforms.resolution.value}set resolution(e){this.uniforms.resolution.value.copy(e)}get alphaToCoverage(){return"USE_ALPHA_TO_COVERAGE"in this.defines}set alphaToCoverage(e){this.defines&&(e===!0!==this.alphaToCoverage&&(this.needsUpdate=!0),e===!0?this.defines.USE_ALPHA_TO_COVERAGE="":delete this.defines.USE_ALPHA_TO_COVERAGE)}}const H=new B,X=new E,q=new E,f=new B,u=new B,x=new B,W=new E,R=new ae,p=new oe,Z=new E,T=new j,C=new K,S=new B;let b,z;function J(h,e,n){return S.set(0,0,-e,1).applyMatrix4(h.projectionMatrix),S.multiplyScalar(1/S.w),S.x=z/n.width,S.y=z/n.height,S.applyMatrix4(h.projectionMatrixInverse),S.multiplyScalar(1/S.w),Math.abs(Math.max(S.x,S.y))}function ve(h,e){const n=h.matrixWorld,i=h.geometry,t=i.attributes.instanceStart,o=i.attributes.instanceEnd,l=Math.min(i.instanceCount,t.count);for(let s=0,a=l;s<a;s++){p.start.fromBufferAttribute(t,s),p.end.fromBufferAttribute(o,s),p.applyMatrix4(n);const d=new E,m=new E;b.distanceSqToSegment(p.start,p.end,m,d),m.distanceTo(d)<z*.5&&e.push({point:m,pointOnLine:d,distance:b.origin.distanceTo(m),object:h,face:null,faceIndex:s,uv:null,uv1:null})}}function ye(h,e,n){const i=e.projectionMatrix,o=h.material.resolution,l=h.matrixWorld,s=h.geometry,a=s.attributes.instanceStart,d=s.attributes.instanceEnd,m=Math.min(s.instanceCount,a.count),c=-e.near;b.at(1,x),x.w=1,x.applyMatrix4(e.matrixWorldInverse),x.applyMatrix4(i),x.multiplyScalar(1/x.w),x.x*=o.x/2,x.y*=o.y/2,x.z=0,W.copy(x),R.multiplyMatrices(e.matrixWorldInverse,l);for(let g=0,r=m;g<r;g++){if(f.fromBufferAttribute(a,g),u.fromBufferAttribute(d,g),f.w=1,u.w=1,f.applyMatrix4(R),u.applyMatrix4(R),f.z>c&&u.z>c)continue;if(f.z>c){const _=f.z-u.z,w=(f.z-c)/_;f.lerp(u,w)}else if(u.z>c){const _=u.z-f.z,w=(u.z-c)/_;u.lerp(f,w)}f.applyMatrix4(i),u.applyMatrix4(i),f.multiplyScalar(1/f.w),u.multiplyScalar(1/u.w),f.x*=o.x/2,f.y*=o.y/2,u.x*=o.x/2,u.y*=o.y/2,p.start.copy(f),p.start.z=0,p.end.copy(u),p.end.z=0;const y=p.closestPointToPointParameter(W,!0);p.at(y,Z);const L=re.lerp(f.z,u.z,y),U=L>=-1&&L<=1,D=W.distanceTo(Z)<z*.5;if(U&&D){p.start.fromBufferAttribute(a,g),p.end.fromBufferAttribute(d,g),p.start.applyMatrix4(l),p.end.applyMatrix4(l);const _=new E,w=new E;b.distanceSqToSegment(p.start,p.end,w,_),n.push({point:w,pointOnLine:_,distance:b.origin.distanceTo(w),object:h,face:null,faceIndex:g,uv:null,uv1:null})}}}class we extends se{constructor(e=new Y,n=new N({color:Math.random()*16777215})){super(e,n),this.isLineSegments2=!0,this.type="LineSegments2"}computeLineDistances(){const e=this.geometry,n=e.attributes.instanceStart,i=e.attributes.instanceEnd,t=new Float32Array(2*n.count);for(let l=0,s=0,a=n.count;l<a;l++,s+=2)X.fromBufferAttribute(n,l),q.fromBufferAttribute(i,l),t[s]=s===0?0:t[s-1],t[s+1]=t[s]+X.distanceTo(q);const o=new G(t,2,1);return e.setAttribute("instanceDistanceStart",new M(o,1,0)),e.setAttribute("instanceDistanceEnd",new M(o,1,1)),this}raycast(e,n){const i=this.material.worldUnits,t=e.camera;if(t===null&&!i&&console.error('LineSegments2: "Raycaster.camera" needs to be set in order to raycast against LineSegments2 while worldUnits is set to false.'),i===!1&&(this.material.resolution.x===0||this.material.resolution.y===0))return;const o=e.params.Line2!==void 0&&e.params.Line2.threshold||0;b=e.ray;const l=this.matrixWorld,s=this.geometry,a=this.material;z=a.linewidth+o,s.boundingSphere===null&&s.computeBoundingSphere(),C.copy(s.boundingSphere).applyMatrix4(l);let d;if(i)d=z*.5;else{const c=Math.max(t.near,C.distanceToPoint(b.origin));d=J(t,c,a.resolution)}if(C.radius+=d,b.intersectsSphere(C)===!1)return;s.boundingBox===null&&s.computeBoundingBox(),T.copy(s.boundingBox).applyMatrix4(l);let m;if(i)m=z*.5;else{const c=Math.max(t.near,T.distanceToPoint(b.origin));m=J(t,c,a.resolution)}T.expandByScalar(m),b.intersectsBox(T)!==!1&&(i?ve(this,n):ye(this,t,n))}onBeforeRender(e){const n=this.material.uniforms;n&&n.resolution&&(e.getViewport(H),this.material.uniforms.resolution.value.set(H.z,H.w))}}class Q extends Y{constructor(){super(),this.isLineGeometry=!0,this.type="LineGeometry"}setPositions(e){const n=e.length-3,i=new Float32Array(2*n);for(let t=0;t<n;t+=3)i[2*t]=e[t],i[2*t+1]=e[t+1],i[2*t+2]=e[t+2],i[2*t+3]=e[t+3],i[2*t+4]=e[t+4],i[2*t+5]=e[t+5];return super.setPositions(i),this}setColors(e){const n=e.length-3,i=new Float32Array(2*n);for(let t=0;t<n;t+=3)i[2*t]=e[t],i[2*t+1]=e[t+1],i[2*t+2]=e[t+2],i[2*t+3]=e[t+3],i[2*t+4]=e[t+4],i[2*t+5]=e[t+5];return super.setColors(i),this}setFromPoints(e){const n=e.length-1,i=new Float32Array(6*n);for(let t=0;t<n;t++)i[6*t]=e[t].x,i[6*t+1]=e[t].y,i[6*t+2]=e[t].z||0,i[6*t+3]=e[t+1].x,i[6*t+4]=e[t+1].y,i[6*t+5]=e[t+1].z||0;return super.setPositions(i),this}fromLine(e){const n=e.geometry;return this.setPositions(n.attributes.position.array),this}}class xe extends we{constructor(e=new Q,n=new N({color:Math.random()*16777215})){super(e,n),this.isLine2=!0,this.type="Line2"}}class A{constructor(e){this.layer=e,this.group.name="traces"}static LINE_WIDTH_PX=2.5;static MARKER_SIZE_PX=9;static LABEL_HEIGHT_PX=15;static STEP_M=15;static LIFT_M=.3;group=new le;materials=[];pointsMaterials=[];labels=[];viewportHeightPx=720;fovDeg=60;set(e,n,i,t,o,l){this.empty();for(const s of e){const a=this.positions(s,i,t,o,l),d=new ce(s.color??de),m=n.get(s.id);if(m&&a.length>=3&&this.addLabel(m,this.labelAnchor(a,s.kind)),s.kind==="point"){const c=new fe;c.setAttribute("position",new F(a.slice(0,3),3));const g=new ue({color:d,size:A.MARKER_SIZE_PX,sizeAttenuation:!1,depthTest:!1,fog:!1});this.pointsMaterials.push(g);const r=new pe(c,g);r.name="trace point",r.frustumCulled=!1,r.layers.set(this.layer),this.group.add(r)}else if(a.length>=6){const c=new Q;c.setPositions(s.kind==="polygon"?[...a,a[0],a[1],a[2]]:a);const g=new N({color:d.getHex(),linewidth:A.LINE_WIDTH_PX,worldUnits:!1,transparent:!0,opacity:.92,depthTest:!1,fog:!1});this.materials.push(g);const r=new xe(c,g);r.name=`trace ${s.kind}`,r.frustumCulled=!1,r.layers.set(this.layer),this.group.add(r)}}}setView(e,n){for(const i of this.materials)i.resolution.copy(e);e.y===this.viewportHeightPx&&n===this.fovDeg||(this.viewportHeightPx=e.y,this.fovDeg=n,this.scaleLabels())}get any(){return this.group.children.length>0}dispose(){this.empty()}labelAnchor(e,n){let i=0;if(n==="line"){let t=-1;for(let o=0;o+2<e.length;o+=3){const l=Math.hypot(e[o],e[o+2]);l>t&&(t=l,i=o)}}return[e[i],e[i+1],e[i+2]]}addLabel(e,n){const i=document.createElement("canvas"),t=i.getContext("2d");if(!t)return;const o="bold 30px sans-serif";t.font=o;const l=10;i.width=Math.ceil(t.measureText(e).width)+l*2,i.height=44,t.font=o,t.fillStyle="rgba(0, 0, 0, 0.6)",t.beginPath(),t.roundRect(0,0,i.width,i.height,10),t.fill(),t.fillStyle="#ffffff",t.textBaseline="middle",t.fillText(e,l,i.height/2+2);const s=new he({map:new me(i),depthTest:!1,depthWrite:!1,fog:!1,sizeAttenuation:!1}),a=new V(s);a.name="trace name",a.center.set(0,0),a.position.set(n[0],n[1],n[2]),a.frustumCulled=!1,a.layers.set(this.layer),this.labels.push({sprite:a,aspect:i.width/i.height}),this.group.add(a),this.scaleLabels()}scaleLabels(){const e=A.LABEL_HEIGHT_PX/(this.viewportHeightPx/2)*Math.tan(this.fovDeg*Math.PI/360);for(const{sprite:n,aspect:i}of this.labels)n.scale.set(e*i,e,1)}empty(){for(const e of[...this.group.children])this.group.remove(e),e instanceof V?(e.material.map?.dispose(),e.material.dispose()):e.geometry.dispose();this.labels.length=0;for(const e of this.materials.splice(0))e.dispose();for(const e of this.pointsMaterials.splice(0))e.dispose()}positions(e,n,i,t,o){const l=e.altitude??"ground",s=e.points.map(r=>{const{x:v,z:y}=ge(r.lat,r.lng,n,i);return{x:v,z:y,altM:r.altM??0}}),a=l!=="absolute",d=[],m=(r,v,y)=>l==="absolute"?y-t:o(r,v)+(l==="relative"?y:0)+A.LIFT_M,c=e.kind==="polygon",g=c?s.length:s.length-1;for(let r=0;r<Math.max(g,1);r++){const v=s[r],y=s[(r+1)%s.length],L=a&&e.kind!=="point"?Math.max(1,Math.ceil(Math.hypot(y.x-v.x,y.z-v.z)/A.STEP_M)):1;for(let U=0;U<L;U++){const D=U/L,_=v.x+(y.x-v.x)*D,w=v.z+(y.z-v.z)*D;d.push(_,m(_,w,v.altM+(y.altM-v.altM)*D),w)}}if(!c&&e.kind!=="point"){const r=s[s.length-1];d.push(r.x,m(r.x,r.z,r.altM),r.z)}return d}}export{A as TraceSystem};
@@ -1 +1 @@
1
- import{j as e}from"./rr0-sighting.mjs";const t={play:"Play",clickToPlay:"Click to play",pause:"Pause",noDuration:"No observation duration",currentPosition:"Current position",duration:"Duration",switchToElapsed:"click to show elapsed time",switchToClockTime:"click to show the time of day",fullscreen:"Fullscreen",exitFullscreen:"Exit fullscreen",recordVideo:"Record a video of the observation",recordingVideo:"Video being made: {percent} %. Click to stop it",videoFailed:"The video could not be made: {reason}",videoSize:"Size",videoSizeScreen:"As on screen ({size})",videoCaption:"Caption",videoTime:"Time",videoMap:"Map",videoStart:"Record",videoKit:"Generative AI kit",videoKitHint:"A zip to make a realistic video of this reconstruction with a video generator (Runway, Kling, Luma…): the film without captions, its depth, the phenomenon's mask, a prompt and instructions.",videoFrom:"Start",videoTo:"End",videoHere:"Here",videoHereHint:"Where the playback is",videoDescription:"Reconstruction made with UFO@home from the witness's account: a simulation, not a recording of the observation.",mute:"Mute",volume:"Volume",unmute:"Unmute",noSound:"No sound recorded",moments:"Moments",moreControls:"More controls",fewerControls:"Fewer controls",showObserverMap:"Show where the witness was",hideObserverMap:"Hide where the witness was",mapImageryUnavailable:"Aerial imagery unavailable",zoomMapIn:"Zoom in",zoomMapOut:"Zoom out",fitMap:"Back to the whole path",placeObserverHere:"Put the witness here",showReferences:"Show the pictures of the place",hideReferences:"Hide the pictures of the place",showTraces:"Show the investigator's lines",hideTraces:"Hide the investigator's lines",referenceOpacity:"Picture opacity",referencesMenu:"Pictures of the place",showMilestones:"Show the account's moments",hideMilestones:"Hide the account's moments",observerHere:"The witness, here",decorHere:"Scenery",recordingIssues:"{count} problem(s) in this recording: it may not play as its author meant",issueTemplates:e.EN};export{t as ufoMessages_en};
1
+ import{n as e}from"./rr0-sighting.mjs";const t={play:"Play",clickToPlay:"Click to play",pause:"Pause",noDuration:"No observation duration",currentPosition:"Current position",duration:"Duration",switchToElapsed:"click to show elapsed time",switchToClockTime:"click to show the time of day",fullscreen:"Fullscreen",exitFullscreen:"Exit fullscreen",recordVideo:"Record a video of the observation",recordingVideo:"Video being made: {percent} %. Click to stop it",videoFailed:"The video could not be made: {reason}",videoSize:"Size",videoSizeScreen:"As on screen ({size})",videoCaption:"Caption",videoTime:"Time",videoMap:"Map",videoStart:"Record",videoKit:"Generative AI kit",videoKitHint:"A zip to make a realistic video of this reconstruction with a video generator (Runway, Kling, Luma…): the film without captions, its depth, the phenomenon's mask, a prompt and instructions.",videoFrom:"Start",videoTo:"End",videoHere:"Here",videoHereHint:"Where the playback is",videoDescription:"Reconstruction made with UFO@home from the witness's account: a simulation, not a recording of the observation.",mute:"Mute",volume:"Volume",unmute:"Unmute",noSound:"No sound recorded",moments:"Moments",moreControls:"More controls",fewerControls:"Fewer controls",showObserverMap:"Show where the witness was",hideObserverMap:"Hide where the witness was",mapImageryUnavailable:"Aerial imagery unavailable",zoomMapIn:"Zoom in",zoomMapOut:"Zoom out",fitMap:"Back to the whole path",placeObserverHere:"Put the witness here",showReferences:"Show the pictures of the place",hideReferences:"Hide the pictures of the place",showTraces:"Show the investigator's lines",hideTraces:"Hide the investigator's lines",referenceOpacity:"Picture opacity",referencesMenu:"Pictures of the place",showMilestones:"Show the account's moments",hideMilestones:"Hide the account's moments",observerHere:"The witness, here",decorHere:"Scenery",recordingIssues:"{count} problem(s) in this recording: it may not play as its author meant",issueTemplates:e.EN};export{t as ufoMessages_en};
@@ -1,4 +1,4 @@
1
- import{G as b,z as F,C as y,E as L,J as N,K as M,N as D,Q as C,X as R,p as I,Y as U,Z as T,$ as P,a0 as O,a1 as B,a2 as V,a3 as A}from"./rr0-sighting.mjs";class r{static LIFT_M=.05;static RENDER_ORDER=1.04;static LEVEL_QUANTILE=.2;static BODY_ALBEDO=[.035,.045,.04];static IOR=1.33;static ROUGHNESS=.08;static MAX_SAMPLES=48;static REFLECTION_SCALE=.5;group=new b;material=new F({color:new y(...r.BODY_ALBEDO),roughness:r.ROUGHNESS,metalness:0,ior:r.IOR,polygonOffset:!0,polygonOffsetFactor:-2,polygonOffsetUnits:-2});levels=new Map;reflectionTarget;reflectionUniforms={uWaterReflection:{value:null},uWaterReflectionMatrix:{value:new L},uWaterReflectionOn:{value:0}};mirrorCamera=new N;eye=new M;ahead=new M;up=new M;plane=new D;clip=new C;q=new C;size=new R;bias=new L().set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1);constructor(){this.group.name="water",this.material.onBeforeCompile=t=>{Object.assign(t.uniforms,this.reflectionUniforms),t.vertexShader=t.vertexShader.replace("#include <common>",`#include <common>
1
+ import{G as b,C as F,E as y,J as L,K as N,N as M,Q as D,X as C,Y as R,u as I,Z as U,$ as T,a0 as P,a1 as O,a2 as B,a3 as V,a4 as A}from"./rr0-sighting.mjs";class r{static LIFT_M=.05;static RENDER_ORDER=1.04;static LEVEL_QUANTILE=.2;static BODY_ALBEDO=[.035,.045,.04];static IOR=1.33;static ROUGHNESS=.08;static MAX_SAMPLES=48;static REFLECTION_SCALE=.5;group=new b;material=new F({color:new y(...r.BODY_ALBEDO),roughness:r.ROUGHNESS,metalness:0,ior:r.IOR,polygonOffset:!0,polygonOffsetFactor:-2,polygonOffsetUnits:-2});levels=new Map;reflectionTarget;reflectionUniforms={uWaterReflection:{value:null},uWaterReflectionMatrix:{value:new L},uWaterReflectionOn:{value:0}};mirrorCamera=new N;eye=new M;ahead=new M;up=new M;plane=new D;clip=new C;q=new C;size=new R;bias=new L().set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1);constructor(){this.group.name="water",this.material.onBeforeCompile=t=>{Object.assign(t.uniforms,this.reflectionUniforms),t.vertexShader=t.vertexShader.replace("#include <common>",`#include <common>
2
2
  varying vec3 vWaterWorld;`).replace("#include <project_vertex>",`#include <project_vertex>
3
3
  vWaterWorld = (modelMatrix * vec4(transformed, 1.0)).xyz;`),t.fragmentShader=t.fragmentShader.replace("#include <common>",`#include <common>
4
4
  varying vec3 vWaterWorld;
@@ -16,4 +16,4 @@ vWaterWorld = (modelMatrix * vec4(transformed, 1.0)).xyz;`),t.fragmentShader=t.f
16
16
  outgoingLight = outgoingLight * (1.0 - mirrored.a * fresnel) + mirrored.rgb * fresnel;
17
17
  }
18
18
  }
19
- #include <opaque_fragment>`)}}set(t,o,e,p,i,s){this.clear();for(const l of t){const h=l.rings.map(n=>r.clip(n.map(u=>I(u.lat,u.lng,o,e)),i)),c=h[0];if(!c||c.length<3)continue;const d=h.slice(1).filter(n=>n.length>=3),f=r.level(c,d,p,s);if(f===void 0)continue;const a=r.geometry(c,d,f+r.LIFT_M);if(!a)continue;const g=new U(a,this.material);g.name=`water ${l.id}`,g.renderOrder=r.RENDER_ORDER,g.receiveShadow=!0,this.group.add(g),this.levels.set(g,{y:f+r.LIFT_M,areaM2:Math.abs(T.area(c.map(n=>new R(n.x,n.z))))})}}get count(){return this.group.children.length}clear(){for(const t of[...this.group.children])t.geometry.dispose(),this.group.remove(t);this.levels.clear()}dispose(){this.clear(),this.material.dispose(),this.reflectionTarget?.dispose()}reflectBodies(t,o,e,p,i,s){const l=this.reflectionUniforms;l.uWaterReflectionOn.value=0;let h;for(const[v,E]of this.levels)v.visible&&(!h||E.areaM2>h.areaM2)&&(h=E);if(!i||!h)return;this.group.updateWorldMatrix(!0,!1);const c=h.y+this.group.position.y;if(e.updateMatrixWorld(),this.eye.setFromMatrixPosition(e.matrixWorld),this.eye.y<=c)return;t.getDrawingBufferSize(this.size);const d=Math.max(16,Math.round(this.size.x*r.REFLECTION_SCALE)),f=Math.max(16,Math.round(this.size.y*r.REFLECTION_SCALE));(!this.reflectionTarget||this.reflectionTarget.width!==d||this.reflectionTarget.height!==f)&&(this.reflectionTarget?.dispose(),this.reflectionTarget=new P(d,f,{type:B,minFilter:O,magFilter:O}));const a=this.mirrorCamera,g=v=>v.setY(2*c-v.y);a.position.copy(g(this.eye.clone())),e.getWorldDirection(this.ahead);const n=g(this.eye.clone().add(this.ahead));this.up.set(0,1,0).applyQuaternion(e.quaternion),a.up.set(this.up.x,-this.up.y,this.up.z),a.lookAt(n),a.fov=s??e.fov,a.aspect=e.aspect,a.near=e.near,a.far=e.far,a.updateProjectionMatrix(),a.updateMatrixWorld(),this.clipAtLevel(a,c),l.uWaterReflectionMatrix.value.copy(this.bias).multiply(a.projectionMatrix).multiply(a.matrixWorldInverse),o.traverseVisible(v=>{v.isLight&&v.layers.enable(p)});const u=t.getRenderTarget(),m=t.autoClear,x=t.shadowMap.autoUpdate,w=o.background,z=t.getClearAlpha();t.getClearColor(r.clearColor),o.background=null,t.shadowMap.autoUpdate=!1,t.setRenderTarget(this.reflectionTarget),t.setClearColor(0,0),t.autoClear=!0,a.layers.set(p),t.render(o,a),t.setRenderTarget(u),t.setClearColor(r.clearColor,z),t.autoClear=m,t.shadowMap.autoUpdate=x,o.background=w,l.uWaterReflection.value=this.reflectionTarget.texture,l.uWaterReflectionOn.value=1}static clearColor=new y;clipAtLevel(t,o){this.plane.setFromNormalAndCoplanarPoint(new M(0,1,0),new M(0,o,0)).applyMatrix4(t.matrixWorldInverse),this.clip.set(this.plane.normal.x,this.plane.normal.y,this.plane.normal.z,this.plane.constant);const e=t.projectionMatrix.elements;this.q.set((Math.sign(this.clip.x)+e[8])/e[0],(Math.sign(this.clip.y)+e[9])/e[5],-1,(1+e[10])/e[14]),this.clip.multiplyScalar(2/this.clip.dot(this.q)),e[2]=this.clip.x,e[6]=this.clip.y,e[10]=this.clip.z+1,e[14]=this.clip.w}static level(t,o,e,p){const i=t.map(n=>n.x),s=t.map(n=>n.z),[l,h,c,d]=[Math.min(...i),Math.max(...i),Math.min(...s),Math.max(...s)],f=Math.max(p,(h-l)/r.MAX_SAMPLES,(d-c)/r.MAX_SAMPLES,.5),a=[];for(let n=c+f/2;n<d;n+=f)for(let u=l+f/2;u<h;u+=f){const m={x:u,z:n};if(!r.contains(t,m)||o.some(w=>r.contains(w,m)))continue;const x=e(u,n);Number.isFinite(x)&&a.push(x)}if(a.length===0)for(const n of t)a.push(e(n.x,n.z));const g=a.filter(Number.isFinite).sort((n,u)=>n-u);if(g.length!==0)return g[Math.floor((g.length-1)*r.LEVEL_QUANTILE)]}static clip(t,o){let e=t;const p=[{inside:i=>i.x>=-o,cross:(i,s)=>r.atX(i,s,-o)},{inside:i=>i.x<=o,cross:(i,s)=>r.atX(i,s,o)},{inside:i=>i.z>=-o,cross:(i,s)=>r.atZ(i,s,-o)},{inside:i=>i.z<=o,cross:(i,s)=>r.atZ(i,s,o)}];for(const i of p){const s=[];for(let l=0;l<e.length;l++){const h=e[l],c=e[(l+e.length-1)%e.length];i.inside(h)?(i.inside(c)||s.push(i.cross(c,h)),s.push(h)):i.inside(c)&&s.push(i.cross(c,h))}if(e=s,e.length===0)break}return e}static atX(t,o,e){return{x:e,z:t.z+(o.z-t.z)*(e-t.x)/(o.x-t.x)}}static atZ(t,o,e){return{x:t.x+(o.x-t.x)*(e-t.z)/(o.z-t.z),z:e}}static contains(t,o){let e=!1;for(let p=0,i=t.length-1;p<t.length;i=p++){const s=t[p],l=t[i];s.z>o.z!=l.z>o.z&&o.x<(l.x-s.x)*(o.z-s.z)/(l.z-s.z)+s.x&&(e=!e)}return e}static geometry(t,o,e){const p=a=>new R(a.x,a.z),i=t.map(p),s=o.map(a=>a.map(p)),l=T.triangulateShape(i,s);if(l.length===0)return;const h=[...i,...s.flat()],c=[];for(const[a,g,n]of l){const[u,m,x]=[h[a],h[g],h[n]],w=(m.y-u.y)*(x.x-u.x)-(m.x-u.x)*(x.y-u.y)>0;for(const z of w?[u,m,x]:[u,x,m])c.push(z.x,e,z.y)}const d=new V;d.setAttribute("position",new A(c,3));const f=new Float32Array(c.length);for(let a=1;a<f.length;a+=3)f[a]=1;return d.setAttribute("normal",new A(f,3)),d.computeBoundingSphere(),d}}export{r as WaterSystem};
19
+ #include <opaque_fragment>`)}}set(t,o,e,f,i,s){this.clear();for(const l of t){const h=l.rings.map(n=>r.clip(n.map(u=>I(u.lat,u.lng,o,e)),i)),c=h[0];if(!c||c.length<3)continue;const d=h.slice(1).filter(n=>n.length>=3),p=r.level(c,d,f,s);if(p===void 0)continue;const a=r.geometry(c,d,p+r.LIFT_M);if(!a)continue;const g=new U(a,this.material);g.name=`water ${l.id}`,g.renderOrder=r.RENDER_ORDER,g.receiveShadow=!0,this.group.add(g),this.levels.set(g,{y:p+r.LIFT_M,areaM2:Math.abs(T.area(c.map(n=>new R(n.x,n.z))))})}}get count(){return this.group.children.length}clear(){for(const t of[...this.group.children])t.geometry.dispose(),this.group.remove(t);this.levels.clear()}dispose(){this.clear(),this.material.dispose(),this.reflectionTarget?.dispose()}reflectBodies(t,o,e,f,i,s){const l=this.reflectionUniforms;l.uWaterReflectionOn.value=0;let h;for(const[v,E]of this.levels)v.visible&&(!h||E.areaM2>h.areaM2)&&(h=E);if(!i||!h)return;this.group.updateWorldMatrix(!0,!1);const c=h.y+this.group.position.y;if(e.updateMatrixWorld(),this.eye.setFromMatrixPosition(e.matrixWorld),this.eye.y<=c)return;t.getDrawingBufferSize(this.size);const d=Math.max(16,Math.round(this.size.x*r.REFLECTION_SCALE)),p=Math.max(16,Math.round(this.size.y*r.REFLECTION_SCALE));(!this.reflectionTarget||this.reflectionTarget.width!==d||this.reflectionTarget.height!==p)&&(this.reflectionTarget?.dispose(),this.reflectionTarget=new P(d,p,{type:B,minFilter:O,magFilter:O}));const a=this.mirrorCamera,g=v=>v.setY(2*c-v.y);a.position.copy(g(this.eye.clone())),e.getWorldDirection(this.ahead);const n=g(this.eye.clone().add(this.ahead));this.up.set(0,1,0).applyQuaternion(e.quaternion),a.up.set(this.up.x,-this.up.y,this.up.z),a.lookAt(n),a.fov=s??e.fov,a.aspect=e.aspect,a.near=e.near,a.far=e.far,a.updateProjectionMatrix(),a.updateMatrixWorld(),this.clipAtLevel(a,c),l.uWaterReflectionMatrix.value.copy(this.bias).multiply(a.projectionMatrix).multiply(a.matrixWorldInverse),o.traverseVisible(v=>{v.isLight&&v.layers.enable(f)});const u=t.getRenderTarget(),m=t.autoClear,x=t.shadowMap.autoUpdate,w=o.background,z=t.getClearAlpha();t.getClearColor(r.clearColor),o.background=null,t.shadowMap.autoUpdate=!1,t.setRenderTarget(this.reflectionTarget),t.setClearColor(0,0),t.autoClear=!0,a.layers.set(f),t.render(o,a),t.setRenderTarget(u),t.setClearColor(r.clearColor,z),t.autoClear=m,t.shadowMap.autoUpdate=x,o.background=w,l.uWaterReflection.value=this.reflectionTarget.texture,l.uWaterReflectionOn.value=1}static clearColor=new y;clipAtLevel(t,o){this.plane.setFromNormalAndCoplanarPoint(new M(0,1,0),new M(0,o,0)).applyMatrix4(t.matrixWorldInverse),this.clip.set(this.plane.normal.x,this.plane.normal.y,this.plane.normal.z,this.plane.constant);const e=t.projectionMatrix.elements;this.q.set((Math.sign(this.clip.x)+e[8])/e[0],(Math.sign(this.clip.y)+e[9])/e[5],-1,(1+e[10])/e[14]),this.clip.multiplyScalar(2/this.clip.dot(this.q)),e[2]=this.clip.x,e[6]=this.clip.y,e[10]=this.clip.z+1,e[14]=this.clip.w}static level(t,o,e,f){const i=t.map(n=>n.x),s=t.map(n=>n.z),[l,h,c,d]=[Math.min(...i),Math.max(...i),Math.min(...s),Math.max(...s)],p=Math.max(f,(h-l)/r.MAX_SAMPLES,(d-c)/r.MAX_SAMPLES,.5),a=[];for(let n=c+p/2;n<d;n+=p)for(let u=l+p/2;u<h;u+=p){const m={x:u,z:n};if(!r.contains(t,m)||o.some(w=>r.contains(w,m)))continue;const x=e(u,n);Number.isFinite(x)&&a.push(x)}if(a.length===0)for(const n of t)a.push(e(n.x,n.z));const g=a.filter(Number.isFinite).sort((n,u)=>n-u);if(g.length!==0)return g[Math.floor((g.length-1)*r.LEVEL_QUANTILE)]}static clip(t,o){let e=t;const f=[{inside:i=>i.x>=-o,cross:(i,s)=>r.atX(i,s,-o)},{inside:i=>i.x<=o,cross:(i,s)=>r.atX(i,s,o)},{inside:i=>i.z>=-o,cross:(i,s)=>r.atZ(i,s,-o)},{inside:i=>i.z<=o,cross:(i,s)=>r.atZ(i,s,o)}];for(const i of f){const s=[];for(let l=0;l<e.length;l++){const h=e[l],c=e[(l+e.length-1)%e.length];i.inside(h)?(i.inside(c)||s.push(i.cross(c,h)),s.push(h)):i.inside(c)&&s.push(i.cross(c,h))}if(e=s,e.length===0)break}return e}static atX(t,o,e){return{x:e,z:t.z+(o.z-t.z)*(e-t.x)/(o.x-t.x)}}static atZ(t,o,e){return{x:t.x+(o.x-t.x)*(e-t.z)/(o.z-t.z),z:e}}static contains(t,o){let e=!1;for(let f=0,i=t.length-1;f<t.length;i=f++){const s=t[f],l=t[i];s.z>o.z!=l.z>o.z&&o.x<(l.x-s.x)*(o.z-s.z)/(l.z-s.z)+s.x&&(e=!e)}return e}static geometry(t,o,e){const f=a=>new R(a.x,a.z),i=t.map(f),s=o.map(a=>a.map(f)),l=T.triangulateShape(i,s);if(l.length===0)return;const h=[...i,...s.flat()],c=[];for(const[a,g,n]of l){const[u,m,x]=[h[a],h[g],h[n]],w=(m.y-u.y)*(x.x-u.x)-(m.x-u.x)*(x.y-u.y)>0;for(const z of w?[u,m,x]:[u,x,m])c.push(z.x,e,z.y)}const d=new V;d.setAttribute("position",new A(c,3));const p=new Float32Array(c.length);for(let a=1;a<p.length;a+=3)p[a]=1;return d.setAttribute("normal",new A(p,3)),d.computeBoundingSphere(),d}}export{r as WaterSystem};