@rr0/ufoathome 0.200.0 → 0.202.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 (441) hide show
  1. package/dist-embed-interview/InterviewMessages_en-BrnxG2rl.js +3 -0
  2. package/dist-embed-interview/InterviewMessages_es-Dxfjqrte.js +3 -0
  3. package/dist-embed-interview/InterviewMessages_fr-DIA-1qu8.js +3 -0
  4. package/dist-embed-interview/InterviewMessages_it-CYBEIKX-.js +3 -0
  5. package/dist-embed-interview/rr0-interview.mjs +10 -6
  6. package/dist-embed-scene/{AirshipEditor-B0RloPOv.js → AirshipEditor-BnRmKeVs.js} +1 -1
  7. package/dist-embed-scene/{AirshipFlight-D6tC26P5.js → AirshipFlight-C9DSPGwk.js} +1 -1
  8. package/dist-embed-scene/Aurora-BmVyTP6i.js +1 -0
  9. package/dist-embed-scene/AuroraEditor-CN6BQMUW.js +8 -0
  10. package/dist-embed-scene/AuroraEditorMessages_en-CpU3BS-B.js +1 -0
  11. package/dist-embed-scene/AuroraEditorMessages_es-i8-psDHN.js +1 -0
  12. package/dist-embed-scene/AuroraEditorMessages_fr-0DtPXXAs.js +1 -0
  13. package/dist-embed-scene/AuroraEditorMessages_it-Dn2UHyk9.js +1 -0
  14. package/dist-embed-scene/AuroraKindMessages_en-D_W4giJa.js +1 -0
  15. package/dist-embed-scene/AuroraKindMessages_es-jJ5_ltZq.js +1 -0
  16. package/dist-embed-scene/AuroraKindMessages_fr-6IzUVbRH.js +1 -0
  17. package/dist-embed-scene/AuroraKindMessages_it-DcwuoMkp.js +1 -0
  18. package/dist-embed-scene/AuroraParameterTexts_en-shkUd-dT.js +1 -0
  19. package/dist-embed-scene/AuroraParameterTexts_es-CwGYyafK.js +1 -0
  20. package/dist-embed-scene/AuroraParameterTexts_fr-CoJnicWs.js +1 -0
  21. package/dist-embed-scene/AuroraParameterTexts_it-DHniBj_2.js +1 -0
  22. package/dist-embed-scene/AuroraSimulation-Dh4kZW1x.js +157 -0
  23. package/dist-embed-scene/{BalloonEditor-D1b8pmSn.js → BalloonEditor-BehJs6H-.js} +2 -2
  24. package/dist-embed-scene/{BalloonFlight-D015vbBe.js → BalloonFlight-BYn4diw1.js} +1 -1
  25. package/dist-embed-scene/BeamSystem-DtRwoKHP.js +1 -0
  26. package/dist-embed-scene/{BirdEditor-CxGMe4UD.js → BirdEditor-dOp1sGsz.js} +1 -1
  27. package/dist-embed-scene/{BirdFlock-D2mckZ_l.js → BirdFlock-CfJeXvWu.js} +1 -1
  28. package/dist-embed-scene/{DroneEditor-BNGmR5II.js → DroneEditor-CBoR4fJ_.js} +1 -1
  29. package/dist-embed-scene/{DroneFlight-DKHsNqDw.js → DroneFlight-DSE1OXqh.js} +1 -1
  30. package/dist-embed-scene/{DroneParameters-Bq6XBchK.js → DroneParameters-D3EOg4oe.js} +1 -1
  31. package/dist-embed-scene/{LanternEditor-FU0WHV3j.js → LanternEditor-CbcA7K8y.js} +2 -2
  32. package/dist-embed-scene/ModuleSession-XnOI5Mcr.js +3 -0
  33. package/dist-embed-scene/ModuleThree-BTQgimAj.js +1 -0
  34. package/dist-embed-scene/SearchlightEditor-CogwU9pl.js +8 -0
  35. package/dist-embed-scene/SearchlightEditorMessages_en-BWTcGHYC.js +1 -0
  36. package/dist-embed-scene/SearchlightEditorMessages_es-PS4IIWFS.js +1 -0
  37. package/dist-embed-scene/SearchlightEditorMessages_fr-CpaD2Il2.js +1 -0
  38. package/dist-embed-scene/SearchlightEditorMessages_it-Br2IjowF.js +1 -0
  39. package/dist-embed-scene/SearchlightKindMessages_en-CwJDAjsc.js +1 -0
  40. package/dist-embed-scene/SearchlightKindMessages_es-CCCgZyTQ.js +1 -0
  41. package/dist-embed-scene/SearchlightKindMessages_fr-DsxiUhmK.js +1 -0
  42. package/dist-embed-scene/SearchlightKindMessages_it-CyWpJL5c.js +1 -0
  43. package/dist-embed-scene/SearchlightParameterTexts_en-BwanYoMW.js +1 -0
  44. package/dist-embed-scene/SearchlightParameterTexts_es-Cz_rg-Xe.js +1 -0
  45. package/dist-embed-scene/SearchlightParameterTexts_fr-B7eZQIdG.js +1 -0
  46. package/dist-embed-scene/SearchlightParameterTexts_it-BjhuOJre.js +1 -0
  47. package/dist-embed-scene/SearchlightSystem-CX1_nBkz.js +1 -0
  48. package/dist-embed-scene/{SkyLantern-a9qLkbZo.js → SkyLantern-Dp_B40X0.js} +1 -1
  49. package/dist-embed-scene/rr0-scene.mjs +416 -337
  50. package/dist-embed-scene/sightingSchema-9MogCcUd.js +1 -0
  51. package/dist-embed-sighting/Aurora-DN89D94m.js +1 -0
  52. package/dist-embed-sighting/AuroraEditor-C4tY9hXK.js +8 -0
  53. package/dist-embed-sighting/AuroraEditorMessages_en-CpU3BS-B.js +1 -0
  54. package/dist-embed-sighting/AuroraEditorMessages_es-i8-psDHN.js +1 -0
  55. package/dist-embed-sighting/AuroraEditorMessages_fr-0DtPXXAs.js +1 -0
  56. package/dist-embed-sighting/AuroraEditorMessages_it-Dn2UHyk9.js +1 -0
  57. package/dist-embed-sighting/AuroraKindMessages_en-D_W4giJa.js +1 -0
  58. package/dist-embed-sighting/AuroraKindMessages_es-jJ5_ltZq.js +1 -0
  59. package/dist-embed-sighting/AuroraKindMessages_fr-6IzUVbRH.js +1 -0
  60. package/dist-embed-sighting/AuroraKindMessages_it-DcwuoMkp.js +1 -0
  61. package/dist-embed-sighting/AuroraParameterTexts_en-shkUd-dT.js +1 -0
  62. package/dist-embed-sighting/AuroraParameterTexts_es-CwGYyafK.js +1 -0
  63. package/dist-embed-sighting/AuroraParameterTexts_fr-CoJnicWs.js +1 -0
  64. package/dist-embed-sighting/AuroraParameterTexts_it-DHniBj_2.js +1 -0
  65. package/dist-embed-sighting/AuroraSimulation-C7LAHgWM.js +157 -0
  66. package/dist-embed-sighting/BeamSystem-CsNwl_vM.js +1 -0
  67. package/dist-embed-sighting/{CaseReportExport-B13vvVvn.js → CaseReportExport-CkWf0HNx.js} +1 -1
  68. package/dist-embed-sighting/{InterviewElement-BduwyUn5.js → InterviewElement-B_ULRy5z.js} +9 -5
  69. package/dist-embed-sighting/InterviewMessages_en-BrnxG2rl.js +3 -0
  70. package/dist-embed-sighting/InterviewMessages_es-Dxfjqrte.js +3 -0
  71. package/dist-embed-sighting/InterviewMessages_fr-DIA-1qu8.js +3 -0
  72. package/dist-embed-sighting/InterviewMessages_it-CYBEIKX-.js +3 -0
  73. package/dist-embed-sighting/ModuleSession-ChJsGuTn.js +3 -0
  74. package/dist-embed-sighting/ModuleThree-whEZoXYF.js +1 -0
  75. package/dist-embed-sighting/SearchlightEditor-By5Z3ef7.js +8 -0
  76. package/dist-embed-sighting/SearchlightEditorMessages_en-BWTcGHYC.js +1 -0
  77. package/dist-embed-sighting/SearchlightEditorMessages_es-PS4IIWFS.js +1 -0
  78. package/dist-embed-sighting/SearchlightEditorMessages_fr-CpaD2Il2.js +1 -0
  79. package/dist-embed-sighting/SearchlightEditorMessages_it-Br2IjowF.js +1 -0
  80. package/dist-embed-sighting/SearchlightKindMessages_en-CwJDAjsc.js +1 -0
  81. package/dist-embed-sighting/SearchlightKindMessages_es-CCCgZyTQ.js +1 -0
  82. package/dist-embed-sighting/SearchlightKindMessages_fr-DsxiUhmK.js +1 -0
  83. package/dist-embed-sighting/SearchlightKindMessages_it-CyWpJL5c.js +1 -0
  84. package/dist-embed-sighting/SearchlightParameterTexts_en-BwanYoMW.js +1 -0
  85. package/dist-embed-sighting/SearchlightParameterTexts_es-Cz_rg-Xe.js +1 -0
  86. package/dist-embed-sighting/SearchlightParameterTexts_fr-B7eZQIdG.js +1 -0
  87. package/dist-embed-sighting/SearchlightParameterTexts_it-BjhuOJre.js +1 -0
  88. package/dist-embed-sighting/SearchlightSystem-B2-MzG4x.js +1 -0
  89. package/dist-embed-sighting/{SightingMessages_en-sch1T1ki.js → SightingMessages_en-D3YVhgUj.js} +1 -1
  90. package/dist-embed-sighting/{SightingMessages_es-DemDEDtF.js → SightingMessages_es-ME6FeTp-.js} +1 -1
  91. package/dist-embed-sighting/{SightingMessages_fr-DskVkEj0.js → SightingMessages_fr-BgXYuIq4.js} +1 -1
  92. package/dist-embed-sighting/{SightingMessages_it-CrbYpdv8.js → SightingMessages_it-DcE90eAl.js} +1 -1
  93. package/dist-embed-sighting/rr0-sighting.mjs +431 -352
  94. package/dist-embed-sighting/sightingSchema-9MogCcUd.js +1 -0
  95. package/dist-embed-sighting-editor/{AdsbLolArchiveProvider-BqEnqRP0.js → AdsbLolArchiveProvider-Bz1OjSjY.js} +1 -1
  96. package/dist-embed-sighting-editor/AirshipEditor-BlJXyxlr.js +16 -0
  97. package/dist-embed-sighting-editor/{AirshipFlight-Bh7J0sWg.js → AirshipFlight-Cx40Y8JT.js} +1 -1
  98. package/dist-embed-sighting-editor/Aurora-Ldk66p1A.js +1 -0
  99. package/dist-embed-sighting-editor/AuroraEditor-CGSomAFk.js +8 -0
  100. package/dist-embed-sighting-editor/AuroraEditorMessages_en-CpU3BS-B.js +1 -0
  101. package/dist-embed-sighting-editor/AuroraEditorMessages_es-i8-psDHN.js +1 -0
  102. package/dist-embed-sighting-editor/AuroraEditorMessages_fr-0DtPXXAs.js +1 -0
  103. package/dist-embed-sighting-editor/AuroraEditorMessages_it-Dn2UHyk9.js +1 -0
  104. package/dist-embed-sighting-editor/AuroraKindMessages_en-D_W4giJa.js +1 -0
  105. package/dist-embed-sighting-editor/AuroraKindMessages_es-jJ5_ltZq.js +1 -0
  106. package/dist-embed-sighting-editor/AuroraKindMessages_fr-6IzUVbRH.js +1 -0
  107. package/dist-embed-sighting-editor/AuroraKindMessages_it-DcwuoMkp.js +1 -0
  108. package/dist-embed-sighting-editor/AuroraParameterTexts_en-shkUd-dT.js +1 -0
  109. package/dist-embed-sighting-editor/AuroraParameterTexts_es-CwGYyafK.js +1 -0
  110. package/dist-embed-sighting-editor/AuroraParameterTexts_fr-CoJnicWs.js +1 -0
  111. package/dist-embed-sighting-editor/AuroraParameterTexts_it-DHniBj_2.js +1 -0
  112. package/dist-embed-sighting-editor/AuroraSimulation-vKcv2Hue.js +157 -0
  113. package/dist-embed-sighting-editor/{BallesterGuaspAssessor-BNfSwq_l.js → BallesterGuaspAssessor-Bylahnc2.js} +1 -1
  114. package/dist-embed-sighting-editor/BalloonEditor-CgO4LaWn.js +24 -0
  115. package/dist-embed-sighting-editor/{BalloonFlight-DqwGZzum.js → BalloonFlight-hLr_4TFU.js} +1 -1
  116. package/dist-embed-sighting-editor/{BeamEditor-C9VQ2YBN.js → BeamEditor-B8qreA3j.js} +1 -1
  117. package/dist-embed-sighting-editor/BeamSystem-D0hrju5J.js +1 -0
  118. package/dist-embed-sighting-editor/BirdEditor-BNzrfSqX.js +16 -0
  119. package/dist-embed-sighting-editor/{BirdFlock-TI63ZAKZ.js → BirdFlock-iSovVEZd.js} +1 -1
  120. package/dist-embed-sighting-editor/{BodyEditor-COLTBHzX.js → BodyEditor-Bd_pKafG.js} +2 -2
  121. package/dist-embed-sighting-editor/{CaseElement-D_ItKhFD.js → CaseElement-DPlro-7S.js} +3 -3
  122. package/dist-embed-sighting-editor/{CaseReportExport-BSLhYJJA.js → CaseReportExport-C1g5C8hi.js} +3 -3
  123. package/dist-embed-sighting-editor/{ContrailSystem-C8K88Cwo.js → ContrailSystem-D3tXAg2r.js} +1 -1
  124. package/dist-embed-sighting-editor/{ControlPasses-DNMyuRwb.js → ControlPasses-BMEmppip.js} +1 -1
  125. package/dist-embed-sighting-editor/{CoverageAssessor-p-LX-eEi.js → CoverageAssessor-uzQnTEH8.js} +1 -1
  126. package/dist-embed-sighting-editor/{DroneEditor-v0oaeAUh.js → DroneEditor-BFsArPKi.js} +1 -1
  127. package/dist-embed-sighting-editor/{DroneFlight-BpnBgJ9K.js → DroneFlight-B96pVrY1.js} +1 -1
  128. package/dist-embed-sighting-editor/{DroneParameters-B1oTz3dZ.js → DroneParameters-DW-enQUo.js} +1 -1
  129. package/dist-embed-sighting-editor/{Flightradar24Provider-D5OdIL0L.js → Flightradar24Provider-CBGkjw03.js} +1 -1
  130. package/dist-embed-sighting-editor/GLTFLoader-2Zbfb3kh.js +1 -0
  131. package/dist-embed-sighting-editor/{GenerativeKitMessages-B8L7U7gD.js → GenerativeKitMessages-DmeZ_YZO.js} +1 -1
  132. package/dist-embed-sighting-editor/{GeoExportTexts-DrGdI2OF.js → GeoExportTexts-Cp95Dg-h.js} +1 -1
  133. package/dist-embed-sighting-editor/{GeoJsonExport-BZ-0v8fM.js → GeoJsonExport-CdadOwd2.js} +1 -1
  134. package/dist-embed-sighting-editor/GeographicFigures-Bo9rsT_L.js +1 -0
  135. package/dist-embed-sighting-editor/{HeadlightSystem-DHoSdTng.js → HeadlightSystem-CBmEcC9f.js} +1 -1
  136. package/dist-embed-sighting-editor/{HynekAssessor-ByXW15nZ.js → HynekAssessor-uub2VxTi.js} +1 -1
  137. package/dist-embed-sighting-editor/InterviewEditorElement-_1fa2bG7.js +294 -0
  138. package/dist-embed-sighting-editor/{InterviewElement-B3tm7y49.js → InterviewElement-Ala811KB.js} +6 -2
  139. package/dist-embed-sighting-editor/InterviewMedia-CGVsMdje.js +1 -0
  140. package/dist-embed-sighting-editor/InterviewMessages_en-BrnxG2rl.js +3 -0
  141. package/dist-embed-sighting-editor/InterviewMessages_es-Dxfjqrte.js +3 -0
  142. package/dist-embed-sighting-editor/InterviewMessages_fr-DIA-1qu8.js +3 -0
  143. package/dist-embed-sighting-editor/InterviewMessages_it-CYBEIKX-.js +3 -0
  144. package/dist-embed-sighting-editor/{KmlExport-Bh4eTycx.js → KmlExport-DIxM5Hpx.js} +1 -1
  145. package/dist-embed-sighting-editor/LanternEditor-CjQVFowY.js +24 -0
  146. package/dist-embed-sighting-editor/{LaserBeam-iHLKAi5q.js → LaserBeam-BVc8Mvhr.js} +1 -1
  147. package/dist-embed-sighting-editor/LaunchEditor-Cz8Mzo4a.js +22 -0
  148. package/dist-embed-sighting-editor/{LaunchPlume-BJwW1kU1.js → LaunchPlume-CvBhTPgN.js} +1 -1
  149. package/dist-embed-sighting-editor/LaunchSimulation-CkZIG-3P.js +1 -0
  150. package/dist-embed-sighting-editor/ModelSource-B153oeTu.js +1 -0
  151. package/dist-embed-sighting-editor/{ModelThumbnails-C_8KCF7H.js → ModelThumbnails-BUL_OLFv.js} +1 -1
  152. package/dist-embed-sighting-editor/{ModelViewer-Cy-6IZBY.js → ModelViewer-BzBLcY9s.js} +1 -1
  153. package/dist-embed-sighting-editor/ModuleConformance-Cr6fM28A.js +2 -0
  154. package/dist-embed-sighting-editor/ModuleSession-WA6lqfV6.js +3 -0
  155. package/dist-embed-sighting-editor/ModuleThree-CB_EjTOI.js +1 -0
  156. package/dist-embed-sighting-editor/{ModulesPanelElement-B9R5rI0T.js → ModulesPanelElement-BsRg3mzl.js} +3 -3
  157. package/dist-embed-sighting-editor/{NearestApproach-pefE2Svz.js → NearestApproach-Bnx9Ld5_.js} +1 -1
  158. package/dist-embed-sighting-editor/PictureRegistration-D8fDZm4v.js +1 -0
  159. package/dist-embed-sighting-editor/{PoherAssessor-BEiAV-7m.js → PoherAssessor-CNj_Nyci.js} +1 -1
  160. package/dist-embed-sighting-editor/QuestionnaireFeed-B0j8W4JM.js +1 -0
  161. package/dist-embed-sighting-editor/QuestionnaireForm-lzn9MPr2.js +1 -0
  162. package/dist-embed-sighting-editor/QuestionnaireImport-BmcxlQBq.js +5 -0
  163. package/dist-embed-sighting-editor/QuestionnaireSeal-DpZYUhnf.js +1 -0
  164. package/dist-embed-sighting-editor/RailwaySystem-6bwbv8UB.js +41 -0
  165. package/dist-embed-sighting-editor/ReentryEditor-BWCK2g_s.js +28 -0
  166. package/dist-embed-sighting-editor/{ReentrySimulation-PK2Z7Smw.js → ReentrySimulation-B09JXMu5.js} +1 -1
  167. package/dist-embed-sighting-editor/ReferenceSystem-8QgwbbAG.js +1 -0
  168. package/dist-embed-sighting-editor/{RoadMarkings-BGK7ToZP.js → RoadMarkings-Dl6zVQIx.js} +1 -1
  169. package/dist-embed-sighting-editor/ScenarioReadings-DyMshXS4.js +1 -0
  170. package/dist-embed-sighting-editor/ScenarioSweep-ByqOTfs2.js +1 -0
  171. package/dist-embed-sighting-editor/ScenarioSweepMessages_en-Bf4BscDU.js +1 -0
  172. package/dist-embed-sighting-editor/ScenarioSweepMessages_es-CBHQfuRB.js +1 -0
  173. package/dist-embed-sighting-editor/ScenarioSweepMessages_fr-DlPsO6oI.js +1 -0
  174. package/dist-embed-sighting-editor/ScenarioSweepMessages_it-DANW3_la.js +1 -0
  175. package/dist-embed-sighting-editor/{SceneNames_en-9zK_E4jO.js → SceneNames_en-c5zNw0Hi.js} +1 -1
  176. package/dist-embed-sighting-editor/{SceneNames_es-B6FtSh6r.js → SceneNames_es-CDjoBwy_.js} +1 -1
  177. package/dist-embed-sighting-editor/{SceneNames_fr-lUEwaxUk.js → SceneNames_fr-CoZNmFu3.js} +1 -1
  178. package/dist-embed-sighting-editor/{SceneNames_it-ChU8RE2E.js → SceneNames_it-CVEahBpq.js} +1 -1
  179. package/dist-embed-sighting-editor/SearchlightEditor-BpwPOhJ6.js +8 -0
  180. package/dist-embed-sighting-editor/SearchlightEditorMessages_en-BWTcGHYC.js +1 -0
  181. package/dist-embed-sighting-editor/SearchlightEditorMessages_es-PS4IIWFS.js +1 -0
  182. package/dist-embed-sighting-editor/SearchlightEditorMessages_fr-CpaD2Il2.js +1 -0
  183. package/dist-embed-sighting-editor/SearchlightEditorMessages_it-Br2IjowF.js +1 -0
  184. package/dist-embed-sighting-editor/SearchlightKindMessages_en-CwJDAjsc.js +1 -0
  185. package/dist-embed-sighting-editor/SearchlightKindMessages_es-CCCgZyTQ.js +1 -0
  186. package/dist-embed-sighting-editor/SearchlightKindMessages_fr-DsxiUhmK.js +1 -0
  187. package/dist-embed-sighting-editor/SearchlightKindMessages_it-CyWpJL5c.js +1 -0
  188. package/dist-embed-sighting-editor/SearchlightParameterTexts_en-BwanYoMW.js +1 -0
  189. package/dist-embed-sighting-editor/SearchlightParameterTexts_es-Cz_rg-Xe.js +1 -0
  190. package/dist-embed-sighting-editor/SearchlightParameterTexts_fr-B7eZQIdG.js +1 -0
  191. package/dist-embed-sighting-editor/SearchlightParameterTexts_it-BjhuOJre.js +1 -0
  192. package/dist-embed-sighting-editor/SearchlightSystem-CEG52QDx.js +1 -0
  193. package/dist-embed-sighting-editor/{SightingEditorMessages_en-CtZXoBSS.js → SightingEditorMessages_en-k7_ua2OM.js} +1 -1
  194. package/{dist-embed-ufoathome/SightingEditorMessages_es-CKXlDIja.js → dist-embed-sighting-editor/SightingEditorMessages_es-Drqbbr5_.js} +1 -1
  195. package/dist-embed-sighting-editor/{SightingEditorMessages_fr-DjP6vAKo.js → SightingEditorMessages_fr-B_K5hsuV.js} +1 -1
  196. package/{dist-embed-ufoathome/SightingEditorMessages_it-CxtFzCzo.js → dist-embed-sighting-editor/SightingEditorMessages_it-QCLg1d7x.js} +1 -1
  197. package/dist-embed-sighting-editor/{SightingElement-BpRRhJzS.js → SightingElement-BQdiez39.js} +4 -4
  198. package/dist-embed-sighting-editor/{SightingFileEditor-B7GimING.js → SightingFileEditor-Du3A9uZm.js} +1 -1
  199. package/dist-embed-sighting-editor/{SightingMessages_en-CYzanHjT.js → SightingMessages_en-CzICxNU3.js} +1 -1
  200. package/dist-embed-sighting-editor/{SightingMessages_es-hjvESK6f.js → SightingMessages_es-CiVFZlgA.js} +1 -1
  201. package/dist-embed-sighting-editor/{SightingMessages_fr-BtfWbIP7.js → SightingMessages_fr-nopOVDa1.js} +1 -1
  202. package/dist-embed-sighting-editor/{SightingMessages_it-Bqm4pewZ.js → SightingMessages_it-Cu0nnPts.js} +1 -1
  203. package/dist-embed-sighting-editor/{SkyLantern-BDpxvmY3.js → SkyLantern-D6bru_e_.js} +1 -1
  204. package/dist-embed-sighting-editor/{TraceSystem-JWQpvSdA.js → TraceSystem-DZMUxSn-.js} +2 -2
  205. package/dist-embed-sighting-editor/{UfoMessages_en-JeMK-39o.js → UfoMessages_en-DdCKc-Ez.js} +1 -1
  206. package/dist-embed-sighting-editor/{VideoButton-Kxg7pF1Y.js → VideoButton-CzJg9lBG.js} +1 -1
  207. package/dist-embed-sighting-editor/{WaterSystem-DwGepfDm.js → WaterSystem-CB5jE7qB.js} +2 -2
  208. package/dist-embed-sighting-editor/angular-size-CxoysZle.png +0 -0
  209. package/dist-embed-sighting-editor/azimuth-CvjiPmz0.png +0 -0
  210. package/dist-embed-sighting-editor/caseSchema-BEJTs2Ld.js +1 -0
  211. package/dist-embed-sighting-editor/elevation-DPr5S6Jt.png +0 -0
  212. package/dist-embed-sighting-editor/geipan-qt-2025-B_RUiH8B.js +7 -0
  213. package/dist-embed-sighting-editor/{interviewImport-BlSMFEw_.js → interviewImport-D4P6e28u.js} +1 -1
  214. package/dist-embed-sighting-editor/{interviewJson-CsMHIcZ-.js → interviewJson-BJF9C-Rb.js} +1 -1
  215. package/dist-embed-sighting-editor/interviewSchema-r5bW7skq.js +1 -0
  216. package/dist-embed-sighting-editor/protractor-DyE30B87.png +0 -0
  217. package/dist-embed-sighting-editor/rr0-sighting-editor.mjs +573 -467
  218. package/dist-embed-sighting-editor/sightingSchema-9MogCcUd.js +1 -0
  219. package/dist-embed-sighting-editor/{surroundingsSources-z7680fTA.js → surroundingsSources-CqL7lcmF.js} +1 -1
  220. package/dist-embed-sighting-editor/{trafficRuntime-CvK_m6bC.js → trafficRuntime-Bu3my6S4.js} +2 -2
  221. package/dist-embed-ufoathome/AdsbLolArchiveProvider-KbJPyJ97.js +1 -0
  222. package/dist-embed-ufoathome/AirshipEditor-CBSrQM3J.js +16 -0
  223. package/dist-embed-ufoathome/{AirshipFlight-CX32XrkA.js → AirshipFlight-Dzpw8HRM.js} +1 -1
  224. package/dist-embed-ufoathome/Aurora-C_mCH4JM.js +1 -0
  225. package/dist-embed-ufoathome/AuroraEditor-Dzvgh6e0.js +8 -0
  226. package/dist-embed-ufoathome/AuroraEditorMessages_en-CpU3BS-B.js +1 -0
  227. package/dist-embed-ufoathome/AuroraEditorMessages_es-i8-psDHN.js +1 -0
  228. package/dist-embed-ufoathome/AuroraEditorMessages_fr-0DtPXXAs.js +1 -0
  229. package/dist-embed-ufoathome/AuroraEditorMessages_it-Dn2UHyk9.js +1 -0
  230. package/dist-embed-ufoathome/AuroraKindMessages_en-D_W4giJa.js +1 -0
  231. package/dist-embed-ufoathome/AuroraKindMessages_es-jJ5_ltZq.js +1 -0
  232. package/dist-embed-ufoathome/AuroraKindMessages_fr-6IzUVbRH.js +1 -0
  233. package/dist-embed-ufoathome/AuroraKindMessages_it-DcwuoMkp.js +1 -0
  234. package/dist-embed-ufoathome/AuroraParameterTexts_en-shkUd-dT.js +1 -0
  235. package/dist-embed-ufoathome/AuroraParameterTexts_es-CwGYyafK.js +1 -0
  236. package/dist-embed-ufoathome/AuroraParameterTexts_fr-CoJnicWs.js +1 -0
  237. package/dist-embed-ufoathome/AuroraParameterTexts_it-DHniBj_2.js +1 -0
  238. package/dist-embed-ufoathome/AuroraSimulation-BRUnHmlp.js +157 -0
  239. package/dist-embed-ufoathome/BallesterGuaspAssessor-DurdUgbG.js +1 -0
  240. package/dist-embed-ufoathome/BalloonEditor-dCIjTsIz.js +24 -0
  241. package/dist-embed-ufoathome/{BalloonFlight-DC31tnhH.js → BalloonFlight-CztT6ddg.js} +1 -1
  242. package/dist-embed-ufoathome/{BeamEditor-WKZhN3Hp.js → BeamEditor-Ccvx7l7x.js} +2 -2
  243. package/dist-embed-ufoathome/BeamSystem-CPM8m17q.js +1 -0
  244. package/dist-embed-ufoathome/BirdEditor-Dk3huwHa.js +16 -0
  245. package/dist-embed-ufoathome/{BodyEditor-uxbNOCFJ.js → BodyEditor-BG--NjnZ.js} +1 -1
  246. package/dist-embed-ufoathome/CaseEditorElement-0J_TCeiq.js +3175 -0
  247. package/dist-embed-ufoathome/{CaseElement-Lil-kZRm.js → CaseElement-CRXPyMMR.js} +3 -3
  248. package/dist-embed-ufoathome/{CaseReportExport-DX7PQi1u.js → CaseReportExport-DKrBXPgZ.js} +3 -3
  249. package/dist-embed-ufoathome/{ColumnResize-DXi_g6cq.js → ColumnResize-DV-byvDt.js} +7 -7
  250. package/dist-embed-ufoathome/ContrailSystem-D2AR5Zgy.js +1 -0
  251. package/dist-embed-ufoathome/ControlPasses-CKvTCqTI.js +29 -0
  252. package/dist-embed-ufoathome/CoverageAssessor-MeOMUjkZ.js +1 -0
  253. package/dist-embed-ufoathome/{DroneEditor-BSYPs6jg.js → DroneEditor-D60uhSHO.js} +1 -1
  254. package/dist-embed-ufoathome/{DroneParameters-O6pYnfX7.js → DroneParameters-CfTAaLCT.js} +1 -1
  255. package/dist-embed-ufoathome/Flightradar24Provider-DxTfswSh.js +1 -0
  256. package/dist-embed-ufoathome/GLTFLoader-pi-JKaNa.js +1 -0
  257. package/dist-embed-ufoathome/GeoJsonExport-iyhoKOUU.js +2 -0
  258. package/dist-embed-ufoathome/GeoProjection-DvqDbRIx.js +1 -0
  259. package/dist-embed-ufoathome/{GeographicFigures-D9njFJso.js → GeographicFigures-DBmuFlvH.js} +1 -1
  260. package/dist-embed-ufoathome/HeadlightSystem-D5-78PFB.js +34 -0
  261. package/dist-embed-ufoathome/HynekAssessor-Bda6csgM.js +1 -0
  262. package/dist-embed-ufoathome/InterviewAttachments-BP6Prvdu.js +1 -0
  263. package/dist-embed-ufoathome/InterviewEditorElement-BA060rqJ.js +294 -0
  264. package/dist-embed-ufoathome/{InterviewElement-kdRloxH-.js → InterviewElement-DvqsCA3I.js} +6 -2
  265. package/dist-embed-ufoathome/InterviewMedia-CGVsMdje.js +1 -0
  266. package/dist-embed-ufoathome/InterviewMessages_en-BrnxG2rl.js +3 -0
  267. package/dist-embed-ufoathome/InterviewMessages_es-Dxfjqrte.js +3 -0
  268. package/dist-embed-ufoathome/InterviewMessages_fr-DIA-1qu8.js +3 -0
  269. package/dist-embed-ufoathome/InterviewMessages_it-CYBEIKX-.js +3 -0
  270. package/dist-embed-ufoathome/KmlExport-DEPgRRWe.js +19 -0
  271. package/dist-embed-ufoathome/LanternEditor-BapUZdog.js +24 -0
  272. package/dist-embed-ufoathome/{LaserBeam-6xHkBslk.js → LaserBeam--dquPX_h.js} +1 -1
  273. package/dist-embed-ufoathome/LaunchEditor-D3P0GkLr.js +22 -0
  274. package/dist-embed-ufoathome/{LaunchPlume-BRYgiI9s.js → LaunchPlume-w4l4TR4A.js} +1 -1
  275. package/dist-embed-ufoathome/LaunchSimulation-BpZd-Nov.js +1 -0
  276. package/dist-embed-ufoathome/ModelSource-Csnm3RH_.js +1 -0
  277. package/dist-embed-ufoathome/ModelThumbnails-Cnt2GxTb.js +1 -0
  278. package/dist-embed-ufoathome/ModelViewer-DOfAkPgK.js +1 -0
  279. package/dist-embed-ufoathome/ModuleConformance-DYDAaJJQ.js +2 -0
  280. package/dist-embed-ufoathome/ModuleSession-BKDWGSEo.js +3 -0
  281. package/dist-embed-ufoathome/ModuleThree-D18Rh2Nj.js +1 -0
  282. package/dist-embed-ufoathome/{ModulesPanelElement-fUfO3DeN.js → ModulesPanelElement-DH1oroWm.js} +3 -3
  283. package/dist-embed-ufoathome/{NearestApproach-MxAHwcUE.js → NearestApproach-DJ98M81-.js} +1 -1
  284. package/dist-embed-ufoathome/{ParameterForm-DcVFxrcO.js → ParameterForm-XbqxCLRn.js} +1 -1
  285. package/dist-embed-ufoathome/PictureRegistration-BJeiCK8A.js +1 -0
  286. package/dist-embed-ufoathome/PoherAssessor-4zSdFnFp.js +1 -0
  287. package/dist-embed-ufoathome/QuestionnaireFeed-W69udpmT.js +1 -0
  288. package/dist-embed-ufoathome/QuestionnaireForm-U78nFPn5.js +1 -0
  289. package/dist-embed-ufoathome/QuestionnaireImport-Q5uHxQwU.js +5 -0
  290. package/dist-embed-ufoathome/QuestionnaireSeal-DpZYUhnf.js +1 -0
  291. package/dist-embed-ufoathome/RailwaySystem-KlBj8mLP.js +41 -0
  292. package/dist-embed-ufoathome/ReentryEditor-DEi9nT0z.js +28 -0
  293. package/dist-embed-ufoathome/ReentrySimulation-CSO1vgro.js +1 -0
  294. package/dist-embed-ufoathome/ReferenceSystem--tiMGm4e.js +1 -0
  295. package/dist-embed-ufoathome/RoadMarkings-DKUNImjj.js +1 -0
  296. package/dist-embed-ufoathome/SaidPosition-OJEYhVKN.js +4 -0
  297. package/dist-embed-ufoathome/ScenarioReadings-Dzdgopl3.js +1 -0
  298. package/dist-embed-ufoathome/ScenarioSweep-CMcleprC.js +1 -0
  299. package/dist-embed-ufoathome/ScenarioSweepMessages_en-Bf4BscDU.js +1 -0
  300. package/dist-embed-ufoathome/ScenarioSweepMessages_es-CBHQfuRB.js +1 -0
  301. package/dist-embed-ufoathome/ScenarioSweepMessages_fr-DlPsO6oI.js +1 -0
  302. package/dist-embed-ufoathome/ScenarioSweepMessages_it-DANW3_la.js +1 -0
  303. package/dist-embed-ufoathome/SearchlightEditor--1uL8bTa.js +8 -0
  304. package/dist-embed-ufoathome/SearchlightEditorMessages_en-BWTcGHYC.js +1 -0
  305. package/dist-embed-ufoathome/SearchlightEditorMessages_es-PS4IIWFS.js +1 -0
  306. package/dist-embed-ufoathome/SearchlightEditorMessages_fr-CpaD2Il2.js +1 -0
  307. package/dist-embed-ufoathome/SearchlightEditorMessages_it-Br2IjowF.js +1 -0
  308. package/dist-embed-ufoathome/SearchlightKindMessages_en-CwJDAjsc.js +1 -0
  309. package/dist-embed-ufoathome/SearchlightKindMessages_es-CCCgZyTQ.js +1 -0
  310. package/dist-embed-ufoathome/SearchlightKindMessages_fr-DsxiUhmK.js +1 -0
  311. package/dist-embed-ufoathome/SearchlightKindMessages_it-CyWpJL5c.js +1 -0
  312. package/dist-embed-ufoathome/SearchlightParameterTexts_en-BwanYoMW.js +1 -0
  313. package/dist-embed-ufoathome/SearchlightParameterTexts_es-Cz_rg-Xe.js +1 -0
  314. package/dist-embed-ufoathome/SearchlightParameterTexts_fr-B7eZQIdG.js +1 -0
  315. package/dist-embed-ufoathome/SearchlightParameterTexts_it-BjhuOJre.js +1 -0
  316. package/dist-embed-ufoathome/SearchlightSystem-7bntVtp_.js +1 -0
  317. package/dist-embed-ufoathome/ShareDialogElement-Dlfy9NCE.js +5186 -0
  318. package/dist-embed-ufoathome/Sighting-B7bsiTIQ.js +1 -0
  319. package/dist-embed-ufoathome/{SightingEditorMessages_en-CtZXoBSS.js → SightingEditorMessages_en-k7_ua2OM.js} +1 -1
  320. package/{dist-embed-sighting-editor/SightingEditorMessages_es-CKXlDIja.js → dist-embed-ufoathome/SightingEditorMessages_es-Drqbbr5_.js} +1 -1
  321. package/dist-embed-ufoathome/{SightingEditorMessages_fr-DjP6vAKo.js → SightingEditorMessages_fr-B_K5hsuV.js} +1 -1
  322. package/{dist-embed-sighting-editor/SightingEditorMessages_it-CxtFzCzo.js → dist-embed-ufoathome/SightingEditorMessages_it-QCLg1d7x.js} +1 -1
  323. package/dist-embed-ufoathome/{SightingElement-Ct3sIryk.js → SightingElement-BJSNmFM6.js} +4 -4
  324. package/dist-embed-ufoathome/{SightingFileEditor-D1s9Dv6G.js → SightingFileEditor-DS1DRU2p.js} +1 -1
  325. package/dist-embed-ufoathome/{SightingMessages_en-CYzanHjT.js → SightingMessages_en-CzICxNU3.js} +1 -1
  326. package/dist-embed-ufoathome/{SightingMessages_es-hjvESK6f.js → SightingMessages_es-CiVFZlgA.js} +1 -1
  327. package/dist-embed-ufoathome/{SightingMessages_fr-BtfWbIP7.js → SightingMessages_fr-nopOVDa1.js} +1 -1
  328. package/dist-embed-ufoathome/{SightingMessages_it-Bqm4pewZ.js → SightingMessages_it-Cu0nnPts.js} +1 -1
  329. package/dist-embed-ufoathome/{TimelineTracks-BgZmkKhn.js → TimelineTracks-Daaqw9ly.js} +1 -1
  330. package/dist-embed-ufoathome/{TraceSystem-Bop2Zoa_.js → TraceSystem-Cq2TgP-u.js} +2 -2
  331. package/dist-embed-ufoathome/{UfoAtHomeMessages_en-dlx_C679.js → UfoAtHomeMessages_en-BK2qJyZN.js} +1 -1
  332. package/dist-embed-ufoathome/{UfoAtHomeMessages_es-uLOvtAD0.js → UfoAtHomeMessages_es-B1-NDCau.js} +1 -1
  333. package/dist-embed-ufoathome/{UfoAtHomeMessages_fr-LR76-eHS.js → UfoAtHomeMessages_fr-BTG047qo.js} +1 -1
  334. package/dist-embed-ufoathome/{UfoAtHomeMessages_it-CQl4uTnG.js → UfoAtHomeMessages_it-Ryxv4HNU.js} +1 -1
  335. package/dist-embed-ufoathome/VideoButton-MRJlVNm_.js +1 -0
  336. package/dist-embed-ufoathome/WaterSystem-BNxlYNtW.js +19 -0
  337. package/dist-embed-ufoathome/angular-size-CxoysZle.png +0 -0
  338. package/dist-embed-ufoathome/azimuth-CvjiPmz0.png +0 -0
  339. package/dist-embed-ufoathome/caseSchema-BEJTs2Ld.js +1 -0
  340. package/dist-embed-ufoathome/elevation-DPr5S6Jt.png +0 -0
  341. package/dist-embed-ufoathome/geipan-qt-2025-B_RUiH8B.js +7 -0
  342. package/dist-embed-ufoathome/interviewSchema-r5bW7skq.js +1 -0
  343. package/dist-embed-ufoathome/protractor-DyE30B87.png +0 -0
  344. package/dist-embed-ufoathome/rr0-ufoathome.mjs +41 -31
  345. package/dist-embed-ufoathome/sightingSchema-9MogCcUd.js +1 -0
  346. package/dist-embed-ufoathome/surroundingsSources--qffL_nJ.js +1 -0
  347. package/dist-embed-ufoathome/three.module-CbaHqYFq.js +4116 -0
  348. package/dist-embed-ufoathome/trafficRuntime-CTCGr90P.js +2 -0
  349. package/dist-embed-ufoathome/{upperAirSources-BGuLpdwu.js → upperAirSources-BU0pD84c.js} +1 -1
  350. package/dist-embed-ufoathome/xyzImageryRaster-Dhxs0B26.js +1 -0
  351. package/package.json +4 -2
  352. package/dist-embed-interview/InterviewMessages_en-ru7GkZlQ.js +0 -1
  353. package/dist-embed-interview/InterviewMessages_es-DkJurNrG.js +0 -1
  354. package/dist-embed-interview/InterviewMessages_fr-DAYgf8Ms.js +0 -1
  355. package/dist-embed-interview/InterviewMessages_it-6lenkmSg.js +0 -1
  356. package/dist-embed-scene/BeamSystem-BtLpnMXz.js +0 -1
  357. package/dist-embed-scene/ModuleSession-BodXzA3g.js +0 -3
  358. package/dist-embed-scene/ModuleThree-D7qc50Hj.js +0 -1
  359. package/dist-embed-scene/sightingSchema-BDxKVE3v.js +0 -1
  360. package/dist-embed-sighting/BeamSystem-DJZTpG0z.js +0 -1
  361. package/dist-embed-sighting/InterviewMessages_en-ru7GkZlQ.js +0 -1
  362. package/dist-embed-sighting/InterviewMessages_es-DkJurNrG.js +0 -1
  363. package/dist-embed-sighting/InterviewMessages_fr-DAYgf8Ms.js +0 -1
  364. package/dist-embed-sighting/InterviewMessages_it-6lenkmSg.js +0 -1
  365. package/dist-embed-sighting/ModuleSession-BZbes53G.js +0 -3
  366. package/dist-embed-sighting/ModuleThree-CPPPDBO4.js +0 -1
  367. package/dist-embed-sighting/sightingSchema-BDxKVE3v.js +0 -1
  368. package/dist-embed-sighting-editor/AirshipEditor-rA-Sr4D1.js +0 -16
  369. package/dist-embed-sighting-editor/BalloonEditor-CPZoayzz.js +0 -24
  370. package/dist-embed-sighting-editor/BeamSystem-Br0h-uSI.js +0 -1
  371. package/dist-embed-sighting-editor/BirdEditor-CAoRqqRV.js +0 -16
  372. package/dist-embed-sighting-editor/GLTFLoader-DT3hr416.js +0 -1
  373. package/dist-embed-sighting-editor/GeographicFigures-DqhWddS9.js +0 -1
  374. package/dist-embed-sighting-editor/InterviewEditorElement-CcXO_w9X.js +0 -242
  375. package/dist-embed-sighting-editor/InterviewMedia-CvAxC62V.js +0 -1
  376. package/dist-embed-sighting-editor/InterviewMessages_en-ru7GkZlQ.js +0 -1
  377. package/dist-embed-sighting-editor/InterviewMessages_es-DkJurNrG.js +0 -1
  378. package/dist-embed-sighting-editor/InterviewMessages_fr-DAYgf8Ms.js +0 -1
  379. package/dist-embed-sighting-editor/InterviewMessages_it-6lenkmSg.js +0 -1
  380. package/dist-embed-sighting-editor/LanternEditor-BnXAwLuQ.js +0 -24
  381. package/dist-embed-sighting-editor/LaunchEditor-f4kJ5pWG.js +0 -22
  382. package/dist-embed-sighting-editor/LaunchSimulation-B3vlOUUu.js +0 -1
  383. package/dist-embed-sighting-editor/ModelSource-D1Wt6VYS.js +0 -1
  384. package/dist-embed-sighting-editor/ModuleConformance-DF6CNBvD.js +0 -2
  385. package/dist-embed-sighting-editor/ModuleSession-BgxzArtm.js +0 -3
  386. package/dist-embed-sighting-editor/ModuleThree-DXFS5Pjb.js +0 -1
  387. package/dist-embed-sighting-editor/PictureRegistration-DBBH_E6I.js +0 -1
  388. package/dist-embed-sighting-editor/RailwaySystem-7A12KSnk.js +0 -41
  389. package/dist-embed-sighting-editor/ReentryEditor-Ch9_6pS8.js +0 -28
  390. package/dist-embed-sighting-editor/ReferenceSystem-Bt7l5nHl.js +0 -1
  391. package/dist-embed-sighting-editor/caseSchema-ChUB1-9j.js +0 -1
  392. package/dist-embed-sighting-editor/interviewSchema-Dk0AWHwc.js +0 -1
  393. package/dist-embed-sighting-editor/sightingSchema-C1S-Kr9w.js +0 -1
  394. package/dist-embed-ufoathome/AdsbLolArchiveProvider-DzC2OwjF.js +0 -1
  395. package/dist-embed-ufoathome/AirshipEditor-DDmu9JT8.js +0 -16
  396. package/dist-embed-ufoathome/BallesterGuaspAssessor-Bn5TGAvJ.js +0 -1
  397. package/dist-embed-ufoathome/BalloonEditor-CGrzszk1.js +0 -24
  398. package/dist-embed-ufoathome/BeamSystem-CWJkeTmf.js +0 -1
  399. package/dist-embed-ufoathome/BirdEditor-07sg3Pt0.js +0 -16
  400. package/dist-embed-ufoathome/CaseEditorElement-DNZt-oc7.js +0 -3148
  401. package/dist-embed-ufoathome/ContrailSystem-DBPA_rNt.js +0 -1
  402. package/dist-embed-ufoathome/ControlPasses-BgvVicQS.js +0 -29
  403. package/dist-embed-ufoathome/CoverageAssessor-BiDfEPse.js +0 -1
  404. package/dist-embed-ufoathome/Flightradar24Provider-DJtlvu72.js +0 -1
  405. package/dist-embed-ufoathome/GLTFLoader-2tuw29HP.js +0 -1
  406. package/dist-embed-ufoathome/GeoJsonExport-DHZOlC4h.js +0 -2
  407. package/dist-embed-ufoathome/HeadlightSystem-h2F6DzUW.js +0 -34
  408. package/dist-embed-ufoathome/HynekAssessor-C1TFQQNc.js +0 -1
  409. package/dist-embed-ufoathome/InterviewEditorElement-BythuoeV.js +0 -242
  410. package/dist-embed-ufoathome/InterviewMedia-CvAxC62V.js +0 -1
  411. package/dist-embed-ufoathome/InterviewMessages_en-ru7GkZlQ.js +0 -1
  412. package/dist-embed-ufoathome/InterviewMessages_es-DkJurNrG.js +0 -1
  413. package/dist-embed-ufoathome/InterviewMessages_fr-DAYgf8Ms.js +0 -1
  414. package/dist-embed-ufoathome/InterviewMessages_it-6lenkmSg.js +0 -1
  415. package/dist-embed-ufoathome/KmlExport-Qih5jB1R.js +0 -19
  416. package/dist-embed-ufoathome/LanternEditor-BRqgj1S6.js +0 -24
  417. package/dist-embed-ufoathome/LaunchEditor-D5FlWL04.js +0 -22
  418. package/dist-embed-ufoathome/LaunchSimulation-DS7JtdJz.js +0 -1
  419. package/dist-embed-ufoathome/ModelSource-DQDWsfAb.js +0 -1
  420. package/dist-embed-ufoathome/ModelThumbnails-DovTOA0Y.js +0 -1
  421. package/dist-embed-ufoathome/ModelViewer-DIvwFZDg.js +0 -1
  422. package/dist-embed-ufoathome/ModuleConformance-VMgvNBlc.js +0 -2
  423. package/dist-embed-ufoathome/ModuleSession-D6wg8SbE.js +0 -3
  424. package/dist-embed-ufoathome/ModuleThree-CLkMHq_q.js +0 -1
  425. package/dist-embed-ufoathome/PictureRegistration-Dnh3w7Ph.js +0 -1
  426. package/dist-embed-ufoathome/PoherAssessor-h8_-WKIK.js +0 -1
  427. package/dist-embed-ufoathome/RailwaySystem-DZ2hctVL.js +0 -41
  428. package/dist-embed-ufoathome/ReentryEditor-DxyGO7_Z.js +0 -28
  429. package/dist-embed-ufoathome/ReentrySimulation-B55Uq-6-.js +0 -1
  430. package/dist-embed-ufoathome/ReferenceSystem-DJosChqB.js +0 -1
  431. package/dist-embed-ufoathome/RoadMarkings-DDRxawvf.js +0 -1
  432. package/dist-embed-ufoathome/SaidPosition-CXZLm-ck.js +0 -4
  433. package/dist-embed-ufoathome/ShareDialogElement--Mjaublp.js +0 -9222
  434. package/dist-embed-ufoathome/Sighting-Ch4eiBNK.js +0 -1
  435. package/dist-embed-ufoathome/VideoButton-DzEuUvRs.js +0 -1
  436. package/dist-embed-ufoathome/WaterSystem-KQAAtpYS.js +0 -19
  437. package/dist-embed-ufoathome/caseSchema-ChUB1-9j.js +0 -1
  438. package/dist-embed-ufoathome/interviewSchema-Dk0AWHwc.js +0 -1
  439. package/dist-embed-ufoathome/sightingSchema-C1S-Kr9w.js +0 -1
  440. package/dist-embed-ufoathome/surroundingsSources-LtEaPPRc.js +0 -1
  441. package/dist-embed-ufoathome/trafficRuntime-uPEasExE.js +0 -2
@@ -1,3 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ModuleThree-DXFS5Pjb.js","./rr0-sighting-editor.mjs"])))=>i.map(i=>d[i]);
2
- import{z as g,C as w,_ as b,M as p}from"./rr0-sighting-editor.mjs";class n{static STORAGE_KEY="ufoathome.modules";static FORMAT=1;static empty(){return{format:1,modules:[]}}static read(t=n.storage()){try{const e=t?.getItem(n.STORAGE_KEY);return e?n.parse(e):n.empty()}catch{return n.empty()}}static write(t,e=n.storage()){try{return e?(t.modules.length===0?e.removeItem(n.STORAGE_KEY):e.setItem(n.STORAGE_KEY,n.text(t)),!0):!1}catch{return!1}}static parse(t){const e=JSON.parse(t);if(e===null||typeof e!="object"||!Array.isArray(e.modules))throw new Error("not a UFO@home module list");if(typeof e.format=="number"&&e.format>n.FORMAT)throw new Error(`format ${e.format} is newer than ${n.FORMAT}`);const r=new Set,s=[];for(const i of e.modules)typeof i?.url!="string"||r.has(i.url)||(r.add(i.url),s.push({url:i.url,enabled:i.enabled!==!1}));return{format:1,modules:s}}static text(t){return JSON.stringify({format:n.FORMAT,modules:t.modules},null,2)+`
3
- `}static storage(){try{return typeof localStorage>"u"?void 0:localStorage}catch{return}}}class E{constructor(t,e){this.attribution=t,this.models=e}async entries(t){return t?this.models.filter(e=>[e.kind].flat().includes(t)):[...this.models]}async entry(t){return this.models.find(e=>e.id===t)}}class f{attribution;fetchImpl;tileUrlTemplate;constructor(t){this.attribution=t.attribution,this.tileUrlTemplate=t.tileUrlTemplate,this.fetchImpl=t.fetchImpl??fetch.bind(globalThis)}getImageryTexture(t,e){return g(t,e,r=>f.tileUrl(this.tileUrlTemplate,r),this.fetchImpl)}static tileUrl(t,e){return t.replaceAll("{z}",String(e.z)).replaceAll("{x}",String(e.x)).replaceAll("{y}",String(e.y))}}class v extends Error{constructor(t,e){super(`${t}: ${e}`),this.url=t,this.reason=e,this.name="ModuleManifestError"}}class d{static FORMAT=1;static check(t,e){const r=o=>{throw new v(e,o)};(t===null||typeof t!="object"||Array.isArray(t))&&r("not a JSON object");const s=t;typeof s.format!="number"&&r('no "format"'),s.format>d.FORMAT&&r(`format ${s.format} is newer than ${d.FORMAT}, which this version reads`),(typeof s.id!="string"||!/^[a-z0-9][a-z0-9._-]*$/.test(s.id))&&r(`"id" must be lowercase letters, digits, '.', '_' or '-'`),(typeof s.name!="string"||s.name.trim()==="")&&r('no "name"'),s.script!==void 0&&typeof s.script!="string"&&r('"script" must be an address');const i=s.contributes??{};for(const o of["imagery","elevation"]){const c=i[o];c!==void 0&&(Array.isArray(c)||r(`"contributes.${o}" must be a list`),c.forEach((l,h)=>{for(const m of["id","name","credit","creditUrl","tiles"])(typeof l?.[m]!="string"||l[m]==="")&&r(`"contributes.${o}[${h}].${m}" is missing`);["{z}","{x}","{y}"].every(m=>l.tiles.includes(m))||r(`"contributes.${o}[${h}].tiles" must hold {z}, {x} and {y}`)}))}const a=i.models;return a!==void 0&&(Array.isArray(a)||r('"contributes.models" must be a list'),a.forEach((o,c)=>{for(const l of["id","name","file"])(typeof o?.[l]!="string"||o[l]==="")&&r(`"contributes.models[${c}].${l}" is missing`);o.kind===void 0&&r(`"contributes.models[${c}].kind" is missing`),(!o.credit||typeof o.credit!="object")&&r(`"contributes.models[${c}].credit" is missing: a model is shown with its author and licence`)})),s}static contributions(t,e){const r=t.contributes??{},s={};if(r.imagery?.length&&(s.imagery=r.imagery.map(i=>({id:i.id,name:i.name,credit:i.credit,creditUrl:i.creditUrl,create:a=>new f({tileUrlTemplate:d.absoluteTemplate(i.tiles,e),attribution:i.credit,fetchImpl:a})}))),r.elevation?.length&&(s.elevation=r.elevation.map(i=>({id:i.id,name:i.name,credit:i.credit,creditUrl:i.creditUrl,create:a=>new w({tileUrlTemplate:d.absoluteTemplate(i.tiles,e),fetchImpl:a})}))),r.models?.length){const i=r.models.map(({file:o,...c})=>({...c,url:new URL(o,e).href})),a=t.credit??t.name;s.decorModels=[{id:`${t.id}-models`,name:t.name,credit:a,creditUrl:t.creditUrl??e,create:()=>new E(a,i)}]}return s}static module(t,e,r={}){const s=d.contributions(t,e);for(const[i,a]of Object.entries(r))Array.isArray(a)&&(s[i]=[...s[i]??[],...a]);return{id:t.id,name:t.name,credit:t.credit,creditUrl:t.creditUrl,url:e,contributes:s}}static absoluteTemplate(t,e){const r=t.replaceAll("{z}","__Z__").replaceAll("{x}","__X__").replaceAll("{y}","__Y__");return new URL(r,e).href.replaceAll("__Z__","{z}").replaceAll("__X__","{x}").replaceAll("__Y__","{y}")}}class T{fetchImpl;importImpl;constructor(t={}){this.fetchImpl=t.fetchImpl??fetch.bind(globalThis),this.importImpl=t.importImpl??(e=>import(e))}async load(t,e){const r=await this.fetchImpl(t);if(!r.ok)throw new Error(`${t}: HTTP ${r.status}`);const s=d.check(await r.json(),t),i=s.script!==void 0;let a={};if(i&&e.runScript){const o=new URL(s.script,t).href,c=await this.importImpl(o);if(typeof c.default!="function")throw new Error(`${o}: its default export is not a function`);const{MODULE_THREE:l}=await b(async()=>{const{MODULE_THREE:h}=await import("./ModuleThree-DXFS5Pjb.js");return{MODULE_THREE:h}},__vite__mapDeps([0,1]),import.meta.url);a=await c.default({manifestUrl:t,three:l})??{}}return{url:t,manifest:s,module:d.module(s,t,a),hasScript:i,scriptRun:i&&e.runScript}}}class y{constructor(t=new T,e){this.loader=t,this.storage=e}static shared=new y;changes=new EventTarget;states=new Map;config=n.empty();started;list(){const t=[...this.states.values()];return[...t.filter(e=>e.addedByPerson),...t.filter(e=>!e.addedByPerson)]}state(t){return this.states.get(t)}start(){return this.started??=this.applyConfig(n.read(this.storage)),this.started}async add(t){await this.start();const e=new URL(t,typeof location>"u"?void 0:location.href).href;return this.config.modules.some(r=>r.url===e)||(this.config={...this.config,modules:[...this.config.modules,{url:e,enabled:!0}]},this.save()),this.reload(e)}async remove(t){this.config={...this.config,modules:this.config.modules.filter(e=>e.url!==t)},this.save(),await this.reload(t)}async setEnabled(t,e){this.config={...this.config,modules:this.config.modules.map(r=>r.url===t?{...r,enabled:e}:r)},this.save(),await this.reload(t)}exportText(){return n.text(this.config)}async importText(t){const e=n.parse(t);await this.start();const r=this.config.modules.map(s=>s.url);this.config=e,this.save(),await Promise.all([...new Set([...r,...e.modules.map(s=>s.url)])].map(s=>this.reload(s)))}async require(t,e){t?.length&&(await this.start(),await Promise.all(t.map(async r=>{let s;try{s=new URL(r,e??(typeof location>"u"?void 0:location.href)).href}catch{return}const i=this.states.get(s);if(i&&i.status!=="off")return i.status==="loading"?this.pending.get(s):void 0;this.named.add(s),await this.reload(s)})))}named=new Set;pending=new Map;async applyConfig(t){this.config=t,await Promise.all(t.modules.map(e=>this.reload(e.url)))}reload(t){const e=this.reloadNow(t);return this.pending.set(t,e),e}async reloadNow(t){const e=this.config.modules.find(a=>a.url===t),r=this.states.get(t);r?.loaded&&p.uninstall(r.loaded.module.id);const s=e!==void 0,i=e?.enabled??!0;if(!s&&!this.named.has(t))return this.states.delete(t),this.announce(),{url:t,addedByPerson:s,enabled:i,status:"off"};if(s&&!i&&!this.named.has(t))return this.set({url:t,addedByPerson:s,enabled:i,status:"off"});this.set({url:t,addedByPerson:s,enabled:i,status:"loading"});try{const a=await this.loader.load(t,{runScript:s&&i});return p.install(a.module),this.set({url:t,addedByPerson:s,enabled:i,status:"installed",loaded:a})}catch(a){return this.set({url:t,addedByPerson:s,enabled:i,status:"failed",error:a instanceof Error?a.message:String(a)})}}set(t){return this.states.set(t.url,t),this.announce(),t}save(){n.write(this.config,this.storage)}announce(){this.changes.dispatchEvent(new Event("change"))}}export{y as ModuleSession};
@@ -1 +0,0 @@
1
- import{V as a,bL as e,cY as s,c2 as t,c4 as r,ci as i,bW as o,Q as c,c1 as n,bt as l,cr as b,cj as d,D as u,cZ as m,a_ as M,bg as B,aY as G,G as S,cI as f,cF as h,cJ as y,aV as p,cW as L,bQ as g,F as x,bh as D,c_ as C,c$ as E,d0 as F,bv as P,c3 as T,be as V,bf as v,d1 as A,ch as Q,bi as _}from"./rr0-sighting-editor.mjs";const O={AdditiveBlending:_,BackSide:Q,BoxGeometry:A,BufferAttribute:v,BufferGeometry:V,CanvasTexture:T,Color:P,ConeGeometry:F,CylinderGeometry:E,DataTexture:C,DoubleSide:D,Euler:x,Float32BufferAttribute:g,FrontSide:L,Group:p,Line:y,LineBasicMaterial:h,LineSegments:f,Matrix4:S,Mesh:G,MeshBasicMaterial:B,MeshStandardMaterial:M,NormalBlending:m,Object3D:u,PlaneGeometry:d,PointLight:b,Points:l,PointsMaterial:n,Quaternion:c,ShaderMaterial:o,SphereGeometry:i,Sprite:r,SpriteMaterial:t,TorusGeometry:s,Vector2:e,Vector3:a};export{O as MODULE_THREE};
@@ -1 +0,0 @@
1
- import{V as z,D as A,F,Q as m,G as O,J as w}from"./rr0-sighting-editor.mjs";const p=Math.PI/180,y=180/Math.PI;class P{static localDirection(t,e,i,o=new z){const n=Math.tan(e/2*p);return o.set((t.u*2-1)*n*i,(1-t.v*2)*n,-1).normalize()}static picturePoint(t,e,i){if(t.z>=0)return;const o=Math.tan(e/2*p),n=t.x/-t.z/(o*i),s=t.y/-t.z/o;return{u:(n+1)/2,v:(1-s)/2}}static worldDirection(t,e=new z){const i=t.azimuthDeg*p,o=t.altitudeDeg*p;return e.set(Math.sin(i)*Math.cos(o),Math.sin(o),-Math.cos(i)*Math.cos(o))}static aimOf(t){const e=Math.hypot(t.x,t.z);return{azimuthDeg:(Math.atan2(t.x,-t.z)*y+360)%360,altitudeDeg:Math.atan2(t.y,e)*y}}static rotationOf(t){const e=new A;return e.rotation.set(t.pitchDeg*p,-t.headingDeg*p,-(t.rollDeg??0)*p,"YXZ"),e.quaternion.clone()}static anglesOf(t){const e=new F().setFromQuaternion(t,"YXZ"),i=(-e.y*y%360+360)%360,o=-e.z*y;return{headingDeg:i,pitchDeg:e.x*y,rollDeg:Math.abs(o)<1e-9?0:o}}static worldDirectionOf(t,e,i,o=new z){return this.localDirection(t,e.fovDeg,i,o).applyQuaternion(this.rotationOf(e))}static picturePointOf(t,e,i){const o=t.clone().applyQuaternion(this.rotationOf(e).invert()),n=this.picturePoint(o,e.fovDeg,i);if(!(!n||n.u<0||n.u>1||n.v<0||n.v>1))return n}static solve(t,e,i,o=t.length>=3){if(t.length<2)return;if(!o)return this.solveAtField(t,e,i);let n=1,s=179;const h=(Math.sqrt(5)-1)/2;let f=s-h*(s-n),c=n+h*(s-n),r=this.solveAtField(t,e,f),a=this.solveAtField(t,e,c);for(let l=0;l<60&&s-n>1e-4;l++){if(!r||!a)return;r.residualDeg<a.residualDeg?(s=c,c=f,a=r,f=s-h*(s-n),r=this.solveAtField(t,e,f)):(n=f,f=c,r=a,c=n+h*(s-n),a=this.solveAtField(t,e,c))}return r&&a?r.residualDeg<a.residualDeg?r:a:r??a}static solveAtField(t,e,i){const o=t.map(c=>this.localDirection(c.picture,i,e)),n=t.map(c=>this.worldDirection(c.scene)),s=this.triad(o,n);if(!s)return;const h=this.refine(s,o,n);return{registration:{...this.anglesOf(h),fovDeg:i},residualDeg:this.residualDeg(h,o,n)}}static triad(t,e){let i=0,o=1,n=-1;for(let r=0;r<t.length;r++)for(let a=r+1;a<t.length;a++){const g=t[r].clone().cross(t[a]).lengthSq();g>n&&(n=g,i=r,o=a)}if(n<1e-12)return;const s=(r,a)=>{const g=r.clone().normalize(),l=r.clone().cross(a).normalize(),u=l.clone().cross(g);return new w().set(g.x,u.x,l.x,g.y,u.y,l.y,g.z,u.z,l.z)},h=s(t[i],t[o]),c=s(e[i],e[o]).multiply(h.transpose());return new m().setFromRotationMatrix(new O().setFromMatrix3(c))}static refine(t,e,i){const o=t.clone(),n=new z;for(let s=0;s<20;s++){const h=new w().set(0,0,0,0,0,0,0,0,0),f=h.elements,c=new z;for(let l=0;l<e.length;l++){n.copy(e[l]).applyQuaternion(o);const u=n,d=[[0,u.z,-u.y],[-u.z,0,u.x],[u.y,-u.x,0]],M=[i[l].x-u.x,i[l].y-u.y,i[l].z-u.z];for(let D=0;D<3;D++){for(let v=0;v<3;v++)for(let x=0;x<3;x++)f[v*3+D]+=d[x][D]*d[x][v];c.setComponent(D,c.getComponent(D)+d[0][D]*M[0]+d[1][D]*M[1]+d[2][D]*M[2])}}for(let l=0;l<3;l++)f[l*3+l]+=1e-9;const r=c.applyMatrix3(h.invert()),a=r.length();if(a<1e-12)break;const g=new m().setFromAxisAngle(r.normalize(),a);if(o.premultiply(g).normalize(),a<1e-10)break}return o}static residualDeg(t,e,i){let o=0;const n=new z;for(let s=0;s<e.length;s++){n.copy(e[s]).applyQuaternion(t);const h=n.angleTo(i[s])*y;o+=h*h}return Math.sqrt(o/e.length)}}export{P as PictureRegistration};
@@ -1,41 +0,0 @@
1
- import{aV as F,a_ as P,bv as H,m as K,be as w,bf as N,aY as U,bR as k}from"./rr0-sighting-editor.mjs";class D{static HOLLOW_M=1;static COVERED_M=3;static WINDOW_M=30;static SAMPLE_M=4;static MAX_GRADE={rail:.025,highSpeed:.035,subway:.04,light_rail:.06,tram:.08,funicular:1/0};static heights(t,s,e){const n=t.map(a=>a.level===0),o=t.map((a,i)=>n[i]?D.targets(a,s,e):[]),c=t.map((a,i)=>n[i]?D.samples(a,o[i]):[]),r=new Map;t.forEach((a,i)=>{if(n[i])for(const h of D.ends(a)){const u=D.key(h),p=r.get(u);p?p.push(i):r.set(u,[i])}});const M=a=>{const i=r.get(D.key(a));if(i)return D.median(i.flatMap(h=>c[h]),a)};return t.map((a,i)=>{if(n[i]){const h=[...new Set([i,...D.ends(a).flatMap(d=>r.get(D.key(d))??[])])].flatMap(d=>c[d]),u=a.centre.map((d,_)=>D.median(h,d)??o[i][_]),[p,A]=D.ends(a);return u[0]=M(p)??u[0],u[u.length-1]=M(A)??u[u.length-1],D.graded(u,a.along,a.highSpeed?D.MAX_GRADE.highSpeed:D.MAX_GRADE[a.kind])}return D.carried(a,s,e,M)})}static targets(t,s,e){return t.centre.map(n=>{const o=s(n.x,n.z);if(e===void 0||n.altitudeM===void 0)return o;const c=n.altitudeM+e;return c-o>D.HOLLOW_M||o-c>D.COVERED_M?c:o})}static samples(t,s){const e=[];let n=0;return t.centre.forEach((o,c)=>{t.along[c]+1e-6<n&&c<t.centre.length-1||(e.push({x:o.x,z:o.z,y:s[c]}),n=t.along[c]+D.SAMPLE_M)}),e}static median(t,s){const e=[];for(const o of t)Math.hypot(o.x-s.x,o.z-s.z)<=D.WINDOW_M&&e.push(o.y);if(e.length===0)return;e.sort((o,c)=>o-c);const n=e.length>>1;return e.length%2===1?e[n]:(e[n-1]+e[n])/2}static graded(t,s,e){if(!Number.isFinite(e)||t.length<3)return t;const n=[...t],o=n.length-1,c=s[o];if(Math.abs(n[o]-n[0])>e*c)return s.map(r=>n[0]+(n[o]-n[0])*r/c);for(let r=1;r<o;r++){const M=e*(s[r]-s[r-1]);n[r]=Math.min(n[r-1]+M,Math.max(n[r-1]-M,n[r]))}for(let r=o-1;r>0;r--){const M=e*(s[r+1]-s[r]);n[r]=Math.min(n[r+1]+M,Math.max(n[r+1]-M,n[r]))}return n}static carried(t,s,e,n){const[o,c]=D.ends(t),r=t.along[t.along.length-1],M=n(o),a=n(c);if(e!==void 0&&t.centre.every(u=>u.altitudeM!==void 0)){const u=t.centre.map(d=>d.altitudeM+e),p=M!==void 0?M-u[0]:0,A=a!==void 0?a-u[u.length-1]:0;return u.map((d,_)=>d+p+(A-p)*t.along[_]/r)}const i=M??s(o.x,o.z),h=a??s(c.x,c.z);return t.along.map(u=>i+(h-i)*u/r)}static ends(t){return[t.centre[0],t.centre[t.centre.length-1]]}static key(t){return`${Math.round(t.x*2)},${Math.round(t.z*2)}`}}class B{positions=[];indices=[];along=[];get vertexCount(){return this.positions.length/3}strip(t,s,e){const n=this.vertexCount;for(let o=0;o<t.length;o++)this.positions.push(t[o].x,t[o].y,t[o].z,s[o].x,s[o].y,s[o].z),e&&this.along.push(e[o],e[o]);for(let o=0;o<t.length-1;o++){const c=n+o*2;this.indices.push(c,c+2,c+1,c+1,c+2,c+3)}}beam(t,s,e,n=!0){const o=s.x-t.x,c=s.y-t.y,r=s.z-t.z,M=Math.hypot(o,c,r);if(M<1e-6)return;const a={x:o/M,y:c/M,z:r/M},i=Math.abs(a.y)>.9?{x:1,y:0,z:0}:{x:0,y:1,z:0},h=a.y*i.z-a.z*i.y,u=a.z*i.x-a.x*i.z,p=a.x*i.y-a.y*i.x,A=Math.hypot(h,u,p),d={x:h/A*e/2,y:u/A*e/2,z:p/A*e/2},_={x:a.y*d.z-a.z*d.y,y:a.z*d.x-a.x*d.z,z:a.x*d.y-a.y*d.x},g=(f,x,E)=>({x:f.x+d.x*x+_.x*E,y:f.y+d.y*x+_.y*E,z:f.z+d.z*x+_.z*E}),O=[[1,1],[-1,1],[-1,-1],[1,-1]];for(let f=0;f<4;f++){const[x,E]=O[f],[z,v]=O[(f+1)%4];this.quad(g(t,x,E),g(t,z,v),g(s,z,v),g(s,x,E))}n&&(this.quad(...[...O].reverse().map(([f,x])=>g(t,f,x))),this.quad(...O.map(([f,x])=>g(s,f,x))))}quad(t,s,e,n){const o=this.vertexCount;this.positions.push(t.x,t.y,t.z,s.x,s.y,s.z,e.x,e.y,e.z,n.x,n.y,n.z),this.indices.push(o,o+1,o+2,o,o+2,o+3)}}class l{static STEP_M=6;static BALLAST_HEIGHT_M=.5;static BALLAST_SLOPE=1.5;static BALLAST_SHOULDER_M=.45;static DECK_DEPTH_M=.8;static BANK_SLOPE=1.5;static SLEEPER_LENGTH_M=2.4;static SLEEPER_WIDTH_M=.29;static SLEEPER_SPACING_M=.6;static RAIL_HEAD_M=.072;static RAIL_HEIGHT_M=.18;static TRAM_RAIL_HEIGHT_M=.03;static LIFT_M=.06;static CATENARY={rail:{contactM:5.5,systemM:1.4,spanM:54,staggerM:.2},highSpeed:{contactM:5.08,systemM:1.4,spanM:63,staggerM:.2},service:{contactM:5.5,systemM:1.2,spanM:45,staggerM:.2},tram:{contactM:6,systemM:0,spanM:30,staggerM:.2}};static MESSENGER_SAG_M=.55;static MAST_SIDE_M=.26;static MAST_OFFSET_M=3.1;static MAST_ABOVE_M=.6;static CONTACT_DIAMETER_M=.012;static MESSENGER_DIAMETER_M=.011;static ARM_SIDE_M=.06;static TRACK_SPACING_M={rail:3.7,highSpeed:4.5,tram:3.1,subway:3.4,light_rail:3.4,funicular:3.2};static BALLAST_ALBEDO=[.17,.16,.15];static BANK_ALBEDO=[.085,.09,.05];static DECK_ALBEDO=[.26,.255,.24];static CONCRETE_ALBEDO=[.36,.35,.33];static WOOD_ALBEDO=[.07,.055,.045];static RUST_ALBEDO=[.085,.068,.058];static STEEL_ALBEDO=[.3,.31,.32];static COPPER_ALBEDO=[.09,.085,.07];static LINE_REACH_M=20;group=new F;stepM=l.STEP_M;drawn=0;laid=[];ballastMaterial=l.pebbled(l.lambert(l.BALLAST_ALBEDO,!0));earthMaterial=l.lambert(l.BANK_ALBEDO,!0);deckMaterial=l.lambert(l.DECK_ALBEDO,!1);concreteSleepers=l.sleeperMaterial(l.CONCRETE_ALBEDO);woodSleepers=l.sleeperMaterial(l.WOOD_ALBEDO);rustMaterial=l.lambert(l.RUST_ALBEDO,!0);headMaterial=new P({color:new H(.62,.62,.62),metalness:1,roughness:.28,polygonOffset:!0,polygonOffsetFactor:-2,polygonOffsetUnits:-2});steelMaterial=l.lambert(l.STEEL_ALBEDO,!1);wireMaterial=l.lambert(l.COPPER_ALBEDO,!1);constructor(){this.group.name="railways"}get count(){return this.drawn}setGroundSpacing(t){this.stepM=Number.isFinite(t)&&t>0?Math.min(l.STEP_M,Math.max(1.5,t/2)):l.STEP_M}set(t,s,e,n,o=1/0){this.clear();const r=t.map(p=>({line:p,path:p.points.map(A=>({...K(A.lat,A.lng,s,e),altitudeM:A.altitudeM}))})).filter(({line:p,path:A})=>p.level>=0&&l.within(A,o)),M=l.altitudeOffset(r,n),a=r.flatMap(({line:p,path:A})=>{const d=this.layoutOf(p,A);return d?[{line:p,layout:d}]:[]}),i=D.heights(a.map(({layout:p})=>p),n,M),h={ballast:new B,earth:new B,deck:new B,concrete:new B,wood:new B,rust:new B,head:new B,steel:new B,wire:new B};a.forEach(({line:p,layout:A},d)=>{this.lay(p,{...A,y:i[d]},n,h),this.laid.push({line:p,centre:A.centre}),this.drawn++});const u=[[h.ballast,this.ballastMaterial,"ballast",!1],[h.earth,this.earthMaterial,"embankments",!1],[h.deck,this.deckMaterial,"decks",!0],[h.concrete,this.concreteSleepers,"sleepers",!1],[h.wood,this.woodSleepers,"sleepers wood",!1],[h.rust,this.rustMaterial,"rails",!1],[h.head,this.headMaterial,"rail heads",!1],[h.steel,this.steelMaterial,"catenary masts",!0],[h.wire,this.wireMaterial,"catenary wires",!1]];for(const[p,A,d,_]of u){const g=l.meshOf(p,A);g&&(g.name=`railways ${d}`,g.castShadow=_,g.receiveShadow=!0,this.group.add(g))}}clear(){for(const t of[...this.group.children])this.group.remove(t),t.geometry?.dispose();this.drawn=0,this.laid=[]}lineAt(t,s){let e;for(const{line:n,centre:o}of this.laid)for(let c=0;c<o.length-1;c++){const r=o[c],M=o[c+1],a=M.x-r.x,i=M.z-r.z,h=a*a+i*i,u=h===0?0:Math.max(0,Math.min(1,((t-r.x)*a+(s-r.z)*i)/h)),p=Math.hypot(t-(r.x+a*u),s-(r.z+i*u));p<=l.LINE_REACH_M&&(!e||p<e.distance)&&(e={line:n,distance:p})}return e?.line}mayMeet(t,s,e,n){const o=Math.hypot(s.x,s.z);if(o<1e-6)return this.lineAt(t.x,t.z)!==void 0;const c=s.x/o,r=s.z/o,M=l.LINE_REACH_M;for(const{centre:a}of this.laid)for(let i=0;i<a.length-1;i++){const h=a[i],u=a[i+1];for(const p of[0,.5,1]){const A=h.x+(u.x-h.x)*p,d=h.z+(u.z-h.z)*p,_=(A-t.x)*c+(d-t.z)*r;if(_<0)continue;const g=Math.abs((A-t.x)*r-(d-t.z)*c),O=Math.hypot(u.x-h.x,u.z-h.z)/2;if(g>M+O)continue;if(t.y+s.y*(_/o)<=e(A,d)+n)return!0}}return!1}contactHeightM(t){if(!(t.electrification!=="overhead"||t.kind==="subway"||t.kind==="funicular"))return l.catenaryOf(t).contactM}static catenaryOf(t){return t.kind==="tram"?l.CATENARY.tram:t.highSpeed?l.CATENARY.highSpeed:t.service?l.CATENARY.service:l.CATENARY.rail}dispose(){this.clear();for(const t of[this.ballastMaterial,this.earthMaterial,this.deckMaterial,this.concreteSleepers,this.woodSleepers,this.rustMaterial,this.headMaterial,this.steelMaterial,this.wireMaterial])t.dispose()}static within(t,s){if(!Number.isFinite(s))return!0;const e=s*1.1+100;return t.some((n,o)=>Math.hypot(n.x,n.z)<=e||o>0&&Math.hypot((n.x+t[o-1].x)/2,(n.z+t[o-1].z)/2)<=e)}static altitudeOffset(t,s){const e=[];for(const{line:n,path:o}of t)if(n.level===0)for(const c of o)c.altitudeM!==void 0&&e.push(s(c.x,c.z)-c.altitudeM);if(!(e.length<5))return e.sort((n,o)=>n-o),e[Math.floor(e.length/2)]}layoutOf(t,s){const e=[];for(let c=0;c<s.length-1;c++){const r=s[c],M=s[c+1],a=Math.max(1,Math.ceil(Math.hypot(M.x-r.x,M.z-r.z)/this.stepM));for(let i=0;i<a;i++){const h=i/a,u=r.altitudeM!==void 0&&M.altitudeM!==void 0?r.altitudeM+(M.altitudeM-r.altitudeM)*h:void 0;e.push({x:r.x+(M.x-r.x)*h,z:r.z+(M.z-r.z)*h,altitudeM:u})}}if(e.push(s[s.length-1]),e.length<2)return;const n=[0];for(let c=1;c<e.length;c++)n.push(n[c-1]+Math.hypot(e[c].x-e[c-1].x,e[c].z-e[c-1].z));if(n[n.length-1]<.5)return;const o=e.map((c,r)=>{const M=e[Math.max(0,r-1)],a=e[Math.min(e.length-1,r+1)],i=a.x-M.x,h=a.z-M.z,u=Math.hypot(i,h);return u<1e-6?{x:1,z:0}:{x:i/u,z:h/u}});return{kind:t.kind,...t.highSpeed?{highSpeed:!0}:{},level:t.level,centre:e,along:n,dir:o}}lay(t,s,e,n){const o=t.highSpeed?l.TRACK_SPACING_M.highSpeed:l.TRACK_SPACING_M[t.kind],c=Math.min(8,Math.max(1,t.tracks)),r=Array.from({length:c},(g,O)=>(O-(c-1)/2)*o),M=t.kind==="tram",a=M?0:l.BALLAST_HEIGHT_M,i=l.LIFT_M,h=(g,O,f)=>({x:s.centre[g].x-s.dir[g].z*O,y:s.y[g]+f,z:s.centre[g].z+s.dir[g].x*O}),u=s.centre.map((g,O)=>O);if(!M){const g=l.SLEEPER_LENGTH_M/2+l.BALLAST_SHOULDER_M+(r[r.length-1]??0),O=u.map(x=>h(x,g,a+i)),f=u.map(x=>h(x,-g,a+i));if(n.ballast.strip(O,f),t.level===0){const x=g+a*l.BALLAST_SLOPE;for(const E of[1,-1]){const z=[],v=[];let m=!1;for(const L of u){const C=h(L,E*x,i),S=e(C.x,C.z)+i,T=C.y-S;T<0&&(C.y=Math.min(S,s.y[L]+a-.05+i)),z.push(C);const I=h(L,E*(x+Math.max(0,T)*l.BANK_SLOPE),i);I.y=Math.min(e(I.x,I.z)+i,C.y),C.y-I.y>.02&&(m=!0),v.push(I)}const b=E>0?O:f;E>0?n.ballast.strip(z,b):n.ballast.strip(b,z),m&&(E>0?n.earth.strip(v,z):n.earth.strip(z,v))}}else{const x=-l.DECK_DEPTH_M,E=g+.15,z=u.map(L=>h(L,E,a+i+.1)),v=u.map(L=>h(L,-E,a+i+.1)),m=u.map(L=>h(L,E,x)),b=u.map(L=>h(L,-E,x));n.deck.strip(m,z),n.deck.strip(v,b),n.deck.strip(b,m),n.deck.strip(z,u.map(L=>h(L,g,a+i+.1))),n.deck.strip(u.map(L=>h(L,-g,a+i+.1)),v)}}const p=t.service?n.wood:n.concrete,A=t.gaugeMm/2e3+l.RAIL_HEAD_M/2,d=M?l.TRAM_RAIL_HEIGHT_M:l.RAIL_HEIGHT_M,_=a+i;for(const g of r){if(!M){const O=l.SLEEPER_LENGTH_M/2;p.strip(u.map(f=>h(f,g+O,_+.004)),u.map(f=>h(f,g-O,_+.004)),s.along)}for(const O of[1,-1]){const f=g+O*A,x=l.RAIL_HEAD_M/2,E=u.map(v=>h(v,f+x,_+d)),z=u.map(v=>h(v,f-x,_+d));n.head.strip(E,z),n.rust.strip(u.map(v=>h(v,f+x,_)),E),n.rust.strip(z,u.map(v=>h(v,f-x,_)))}}t.electrification==="overhead"&&t.kind!=="subway"&&t.kind!=="funicular"&&this.catenary(t,s,r,_+d,h,e,n)}catenary(t,s,e,n,o,c,r){const M=l.catenaryOf(t),a=s.along[s.along.length-1],i=Math.max(1,Math.round(a/M.spanM)),h=a/i,u=Array.from({length:i},(E,z)=>(z+.5)*h),p=n+M.contactM,A=p+M.systemM,d=(M.systemM>0?A:p)+l.MAST_ABOVE_M,_=e[e.length-1],g=e.length>2,O=e.length===1?[1]:[1,-1],f=(E,z,v)=>{let m=0,b=s.along.length-2;for(;m<b;){const T=m+b+1>>1;s.along[T]<=E?m=T:b=T-1}const L=Math.min(1,Math.max(0,(E-s.along[m])/Math.max(1e-6,s.along[m+1]-s.along[m]))),C=o(m,z,v),S=o(m+1,z,v);return{x:C.x+(S.x-C.x)*L,y:C.y+(S.y-C.y)*L,z:C.z+(S.z-C.z)*L}};for(const E of u){const z=f(E,0,p);if(!(t.level===0&&c(z.x,z.z)>z.y)){for(const v of O){const m=v*(_+l.MAST_OFFSET_M),b=f(E,m,0);t.level===0&&(b.y=Math.min(b.y,c(b.x,b.z)));const L=f(E,m,d);if(r.steel.beam(b,L,l.MAST_SIDE_M),g)continue;const S=(O.length===1?e[0]:v*_)-v*.6,T=M.systemM>0?A:p+.3;r.steel.beam(f(E,m,T),f(E,S,T),l.ARM_SIDE_M),r.steel.beam(f(E,m,p-.4),f(E,S,T),l.ARM_SIDE_M)}if(g){const v=_+l.MAST_OFFSET_M;r.steel.beam(f(E,v,d-.2),f(E,-v,d-.2),l.MAST_SIDE_M*.8)}}}const x=[0,...u,a];for(const[E,z]of e.entries()){const v=m=>m===0||m===x.length-1?0:((m+E)%2===0?1:-1)*M.staggerM;for(let m=0;m<x.length-1;m++){const b=x[m],L=x[m+1];if(L-b<.1||(r.wire.beam(f(b,z+v(m),p),f(L,z+v(m+1),p),l.CONTACT_DIAMETER_M,!1),M.systemM<=0))continue;const C=4,S=T=>{const I=m===0?.5+T/2:m===x.length-2?T/2:T;return A-l.MESSENGER_SAG_M*4*I*(1-I)};for(let T=0;T<C;T++){const I=T/C,G=(T+1)/C;r.wire.beam(f(b+(L-b)*I,z,S(I)),f(b+(L-b)*G,z,S(G)),l.MESSENGER_DIAMETER_M,!1)}}}}static meshOf(t,s){if(t.indices.length===0)return;const e=new w;return e.setAttribute("position",new N(new Float32Array(t.positions),3)),t.along.length>0&&e.setAttribute("aAlong",new N(new Float32Array(t.along),1)),e.setIndex(new N(new Uint32Array(t.indices),1)),e.computeVertexNormals(),new U(e,s)}static lambert(t,s){return new k({color:new H(...t),...s?{polygonOffset:!0,polygonOffsetFactor:-2,polygonOffsetUnits:-2}:{}})}static pebbled(t){return t.onBeforeCompile=s=>{s.vertexShader=s.vertexShader.replace("#include <common>",`#include <common>
2
- varying vec3 vBallast;`).replace("#include <begin_vertex>",`#include <begin_vertex>
3
- vBallast = position;`),s.fragmentShader=s.fragmentShader.replace("#include <common>",`#include <common>
4
- varying vec3 vBallast;
5
- float ballastHash(vec2 p) {
6
- p = fract(p * vec2(127.1, 311.7));
7
- p += dot(p, p + 34.5);
8
- return fract(p.x * p.y);
9
- }
10
- float ballastNoise(vec2 p) {
11
- vec2 i = floor(p);
12
- vec2 f = fract(p);
13
- f = f * f * (3.0 - 2.0 * f);
14
- return mix(mix(ballastHash(i), ballastHash(i + vec2(1.0, 0.0)), f.x), mix(ballastHash(i + vec2(0.0, 1.0)), ballastHash(i + vec2(1.0, 1.0)), f.x), f.y);
15
- }`).replace("#include <map_fragment>",`#include <map_fragment>
16
- {
17
- float eye = length(vViewPosition);
18
- vec2 at = vBallast.xz + vec2(0.0, vBallast.y);
19
- float stones = (ballastHash(floor(at * 22.0)) - 0.5) * 0.9 * (1.0 - smoothstep(4.0, 18.0, eye))
20
- + (ballastNoise(at * 6.0) - 0.5) * 0.5 * (1.0 - smoothstep(15.0, 60.0, eye))
21
- + (ballastNoise(at * 0.7) - 0.5) * 0.35 * (1.0 - smoothstep(80.0, 300.0, eye));
22
- diffuseColor.rgb *= 1.0 + stones;
23
- }`)},t.customProgramCacheKey=()=>"rr0-railway-ballast",t}static sleeperMaterial(t){const s=new k({color:new H(1,1,1),polygonOffset:!0,polygonOffsetFactor:-3,polygonOffsetUnits:-3}),e=new H(...t),n=new H(...l.BALLAST_ALBEDO);return s.onBeforeCompile=o=>{o.uniforms.uSleeper={value:e},o.uniforms.uCrib={value:n},o.uniforms.uSpacing={value:l.SLEEPER_SPACING_M},o.uniforms.uDuty={value:l.SLEEPER_WIDTH_M/l.SLEEPER_SPACING_M},o.vertexShader=o.vertexShader.replace("#include <common>",`#include <common>
24
- attribute float aAlong;
25
- varying float vAlong;`).replace("#include <begin_vertex>",`#include <begin_vertex>
26
- vAlong = aAlong;`),o.fragmentShader=o.fragmentShader.replace("#include <common>",`#include <common>
27
- varying float vAlong;
28
- uniform vec3 uSleeper;
29
- uniform vec3 uCrib;
30
- uniform float uSpacing;
31
- uniform float uDuty;
32
- // How much of [0, x] periods is sleeper: the integral of a pulse of width uDuty at the start of each period.
33
- float sleeperIntegral(float x) {
34
- return floor(x) * uDuty + min(fract(x), uDuty);
35
- }`).replace("#include <map_fragment>",`#include <map_fragment>
36
- {
37
- float u = vAlong / uSpacing;
38
- float w = max(fwidth(u), 1e-4);
39
- float cover = (sleeperIntegral(u + 0.5 * w) - sleeperIntegral(u - 0.5 * w)) / w;
40
- diffuseColor.rgb *= mix(uCrib, uSleeper, clamp(cover, 0.0, 1.0));
41
- }`)},s.customProgramCacheKey=()=>"rr0-railway-sleepers",s}}export{l as RailwaySystem};
@@ -1,28 +0,0 @@
1
- import{n as w,_ as A,aJ as b,bz as M,bA as E,bB as C,bC as O,bD as F,au as S,$ as x,a1 as D,a0 as N,I as k,Y as _,Z as P,aC as L,K as G,bl as H}from"./rr0-sighting-editor.mjs";import{S as K}from"./SkyEventEditorStyle-CvY_AhbI.js";const z=w.catalog({en:()=>A(()=>import("./ReentryParameterTexts_en-5BOfwCsS.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_en),fr:()=>A(()=>import("./ReentryParameterTexts_fr-BgUJROXF.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_fr),es:()=>A(()=>import("./ReentryParameterTexts_es-ze1-U4jB.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_es),it:()=>A(()=>import("./ReentryParameterTexts_it-MTb9Vuq0.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_it)});class g{static NAME="name";static OBJECT="object";static LIGHT="light";static WHEN="when";static SEEN="seenByTheWitness";static EARTH_KM=6371;static placeSeen(t,e,n,i){const s=Math.PI/180,o=g.EARTH_KM,a=n*s,r=-o*Math.sin(a)+Math.sqrt((o*Math.sin(a))**2+(o+i)**2-o**2),d=Math.atan2(r*Math.cos(a),o+r*Math.sin(a)),c=t.lat*s,l=e*s,h=Math.asin(Math.sin(c)*Math.cos(d)+Math.cos(c)*Math.sin(d)*Math.cos(l)),m=t.lng*s+Math.atan2(Math.sin(l)*Math.sin(d)*Math.cos(c),Math.cos(d)-Math.sin(c)*Math.sin(h));return{lat:h/s,lng:(m/s+540)%360-180}}static trackFromSeen(t,e){const n=t.seen,{fromAzimuthDeg:i,fromAltitudeDeg:s,toAzimuthDeg:o,toAltitudeDeg:a,durationS:r}=n??{};if(i===void 0||s===void 0||o===void 0||a===void 0||!r)return;const d=t.track[0],c=t.track[t.track.length-1],l=d?.t??0,h=d?.altitudeKm??100,m=c?.altitudeKm??h;return[{t:l,...g.placeSeen(e,i,s,h),altitudeKm:h},{t:l+Math.round(r*1e3),...g.placeSeen(e,o,a,m),altitudeKm:m}]}static placeAt(t,e){const n=b.leadAt(t,e);if(n)return{t:e,lat:n.lat,lng:n.lng,altitudeKm:n.heightM/1e3};const i=t.track,[s,o]=e<(i[0]?.t??0)?[i[0],i[1]]:[i[i.length-2],i[i.length-1]];if(!s||!o||o.t===s.t){const r=s??o??{lat:0,lng:0,altitudeKm:80};return{t:e,lat:r.lat,lng:r.lng,altitudeKm:r.altitudeKm}}const a=(e-s.t)/(o.t-s.t);return{t:e,lat:s.lat+(o.lat-s.lat)*a,lng:s.lng+(o.lng-s.lng)*a,altitudeKm:Math.max(0,s.altitudeKm+(o.altitudeKm-s.altitudeKm)*a)}}static curvePointAt(t,e){return{t:e,absoluteMagnitude:Math.round(b.absoluteMagnitudeAt(t,e)*10)/10}}static instantsOf(t){return[...t.track.map(e=>e.t),...t.fragments.flatMap(e=>[...e.fromT===void 0?[]:[e.fromT],...e.untilT===void 0?[]:[e.untilT],...(e.lightCurve??[]).map(n=>n.t)])]}static instant(t,e,n,i={}){return{type:"number",key:t,min:-3600,max:36e3,step:.1,unit:"s",scale:.001,label:e,hint:n,...i}}static mayBeCatalogued(t){return M.of(t.type)?.nature!=="natural"}static SET={kind:"reentry",title:"fireballOrReEntry",parameters:[{type:"said",key:"title",label:g.NAME},{type:"choice",key:"type",label:"type",hint:"whatCameInNaturalOrPut",empty:"notKnown",choices:[],optionsOf:t=>{const e=t.type,n=M.all().map(i=>({value:i.key,label:M.nameOf(i.key)}));return e===void 0||n.some(i=>i.value===e)?n:[...n,{value:e,label:e}]}},{type:"text",key:"object.name",group:g.OBJECT,visibleWhen:g.mayBeCatalogued,label:"catalogueName",hint:"forAReEntryThePiece"},{type:"text",key:"object.cosparId",group:g.OBJECT,visibleWhen:g.mayBeCatalogued,label:"cosparId",placeholder:"t1968013c"},{type:"number",key:"object.norad",min:1,max:999999,step:1,group:g.OBJECT,visibleWhen:g.mayBeCatalogued,label:"noradNumber"},{type:"number",key:"seen.fromAzimuthDeg",min:0,max:360,step:1,unit:"°",group:g.SEEN,label:"appearedAzimuth",hint:"fromTheNorthTowardsTheEast"},{type:"number",key:"seen.fromAltitudeDeg",min:-5,max:90,step:1,unit:"°",group:g.SEEN,label:"appearedHeight",hint:"aboveTheHorizon"},{type:"number",key:"seen.toAzimuthDeg",min:0,max:360,step:1,unit:"°",group:g.SEEN,label:"wentOutAzimuth",hint:"fromTheNorthTowardsTheEast"},{type:"number",key:"seen.toAltitudeDeg",min:-5,max:90,step:1,unit:"°",group:g.SEEN,label:"wentOutHeight",hint:"aboveTheHorizon"},{type:"number",key:"seen.durationS",min:.1,max:3600,step:.1,unit:"s",group:g.SEEN,label:"seenFor",hint:"allSaidThePathIsWorkedOut"}]};static PLACE={kind:"reentry-place",title:"pointOfThePath",parameters:[g.instant("t","time","secondsOfTheRecordingNegativeBefore",{required:!0}),{type:"position",key:"lat",secondKey:"lng",saidKey:"saidPosition",native:"geo",step:1,rangeM:2e6,label:"position"},{type:"number",key:"altitudeKm",min:0,max:300,step:.1,unit:"km",required:!0,label:"altitude",hint:"aboveTheEllipsoidAMeteorBegins"}]};static trackEnd(t,e){const n=t?.track;if(n?.length)return e==="first"?n[0].t:n[n.length-1].t}static FRAGMENT={kind:"reentry-fragment",title:"piece",parameters:[{type:"text",key:"id",label:"id",validate:(t,e,n)=>!n?.fragments.some(i=>i!==e&&i.id===t)},{type:"number",key:"absoluteMagnitude",min:-40,max:10,step:.1,required:!0,group:g.LIGHT,label:"absoluteMagnitude",hint:"itsBrightnessSeenFrom100Km"},{type:"colour",key:"color",group:g.LIGHT,fallback:b.DEFAULT_COLOR,label:"colour"},{type:"number",key:"trainS",min:0,max:600,step:.1,unit:"s",group:g.LIGHT,effective:()=>b.DEFAULT_TRAIN_S,label:"train",hint:"howLongAStretchOfIts"},{type:"number",key:"lagS",min:0,max:600,step:.1,unit:"s",group:g.WHEN,effective:()=>0,label:"behindTheLead",hint:"secondsBehindTheLeadingPointAlong"},g.instant("fromT","seenFrom","whenItBreaksOffOrBegins",{group:g.WHEN,effective:(t,e)=>g.trackEnd(e,"first")}),g.instant("untilT","outAt","whenItHasBurnedUpOr",{group:g.WHEN,effective:(t,e)=>g.trackEnd(e,"last")})]};static CURVE_POINT={kind:"reentry-curve-point",title:"pointOfTheLightCurve",parameters:[g.instant("t","time","secondsOfTheRecording",{required:!0}),{type:"number",key:"absoluteMagnitude",min:-40,max:10,step:.1,required:!0,label:"absoluteMagnitude"}]}}const $=w.catalog({en:()=>A(()=>import("./ReentryEditorMessages_en-BmTZMr-m.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_en),fr:()=>A(()=>import("./ReentryEditorMessages_fr-DHbcY0tN.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_fr),es:()=>A(()=>import("./ReentryEditorMessages_es-edid__Jo.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_es),it:()=>A(()=>import("./ReentryEditorMessages_it-CIzkIU4G.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_it)});class u{static TIME_MARGIN_MIN=6;static HEADING_MARGIN_DEG=45;static ELEVATION_LOW_FACTOR=.3;static ELEVATION_SLACK_DEG=5;static DURATION_FACTOR=3;static ARCHIVED_MAGNITUDE=-3;static WATCHED_KM=600;static WATCHED_COUNT=5;static NIGHT_SUN_DEG=-12;static SHOWER_MARGIN_DEG=20;static RADIANT_BELOW_DEG=-10;static FIRST_ORBIT_MS=Date.UTC(1957,9,4);static shared={fireballs:new C,reentries:new E};static viewOf(t,e,n){const i=t.track;if(i.length<2)return;const s=i[0],o=i[i.length-1],a=t.seen,r=m=>b.seenFrom(n,{lat:m.lat,lng:m.lng,heightM:m.altitudeKm*1e3}),d=a?.fromAzimuthDeg!==void 0&&a.fromAltitudeDeg!==void 0?{azimuthDeg:a.fromAzimuthDeg,altitudeDeg:a.fromAltitudeDeg}:r(s),c=a?.toAzimuthDeg!==void 0&&a.toAltitudeDeg!==void 0?{azimuthDeg:a.toAzimuthDeg,altitudeDeg:a.toAltitudeDeg}:r(o),l=a?.durationS??(o.t-s.t)/1e3,h=Math.min(...t.fragments.flatMap(m=>[m.absoluteMagnitude,...(m.lightCurve??[]).map(f=>f.absoluteMagnitude)]));return{startMs:e.getTime()+s.t,durationS:l,from:{azimuthDeg:d.azimuthDeg,altitudeDeg:d.altitudeDeg},to:{azimuthDeg:c.azimuthDeg,altitudeDeg:c.altitudeDeg},peakAbsoluteMagnitude:h}}static azimuthOff(t,e){const n=Math.abs(((t-e)%360+360)%360);return Math.min(n,360-n)}static elevationOff(t,e){const n=Math.max(0,t*u.ELEVATION_LOW_FACTOR)-u.ELEVATION_SLACK_DEG,i=t+u.ELEVATION_SLACK_DEG;return e<n?n-e:e>i?e-i:0}static matchFireball(t,e,n){const i=e.t<t.startMs?t.startMs-e.t:0,s=e.t>t.startMs?e.t-t.startMs:0;if(Math.max(i,s)>u.TIME_MARGIN_MIN*6e4)return;const o=b.seenFrom(n,{lat:e.from[0],lng:e.from[1],heightM:e.from[2]*1e3}),a=b.seenFrom(n,{lat:e.to[0],lng:e.to[1],heightM:e.to[2]*1e3});if(o.altitudeDeg<0&&a.altitudeDeg<0)return;const r=Math.max(u.azimuthOff(t.from.azimuthDeg,o.azimuthDeg),u.azimuthOff(t.to.azimuthDeg,a.azimuthDeg));if(r>u.HEADING_MARGIN_DEG||Math.max(u.elevationOff(t.from.altitudeDeg,o.altitudeDeg),u.elevationOff(t.to.altitudeDeg,a.altitudeDeg))>0)return;const c=u.DURATION_FACTOR;if(!(e.durationS>0&&(t.durationS<e.durationS/c||t.durationS>e.durationS*c)))return{record:e,offsetMinutes:Math.round((i+s)/6e4),headingOffDeg:Math.round(r),altitudeOffDeg:Math.round(Math.abs(a.altitudeDeg-t.to.altitudeDeg))}}static async check(t,e,n,i=u.shared){if(!e||!n)return[{verdict:"unchecked",source:"none",reason:"noDateOrPlace"}];const s=u.viewOf(t,e,n);if(!s)return[{verdict:"unchecked",source:"none",reason:"noDateOrPlace"}];const o=M.of(t.type)?.nature,a=[];if(o!=="artificial"&&a.push(...await u.checkFireballs(s,n,o==="natural",i)),o!=="artificial"){const r=u.showerOf(s,n);r&&(r.verdict==="compatible"||o==="natural")&&a.push(r)}return o!=="natural"&&a.push(...await u.checkCatalogue(t,s,n,o==="artificial",i)),o===void 0&&!a.some(r=>r.verdict==="known"||r.verdict==="possible"||r.verdict==="compatible")?[...a.filter(r=>r.verdict==="unchecked"),{verdict:"uninformative",source:"none",reason:"typeUnknown"}]:a}static vectorOf(t,e){const n=Math.PI/180,i=e*n,s=t*n;return[Math.cos(i)*Math.sin(s),Math.cos(i)*Math.cos(s),Math.sin(i)]}static angleDeg(t,e){return Math.acos(Math.max(-1,Math.min(1,t[0]*e[0]+t[1]*e[1]+t[2]*e[2])))*180/Math.PI}static showerOf(t,e){const n=u.vectorOf(t.from.azimuthDeg,t.from.altitudeDeg),i=u.vectorOf(t.to.azimuthDeg,t.to.altitudeDeg),s=u.angleDeg(n,i);if(s<1)return;const o=[n[1]*i[2]-n[2]*i[1],n[2]*i[0]-n[0]*i[2],n[0]*i[1]-n[1]*i[0]],a=Math.hypot(o[0],o[1],o[2]),r=new Date(t.startMs),d=O.activeAt(r);let c;for(const{shower:l,zhr:h}of d){const m=O.radiantPosition(l,r,{lat:e.lat,lng:e.lng,elevationM:e.heightM});if(m.altitudeDeg<u.RADIANT_BELOW_DEG)continue;const f=u.vectorOf(m.azimuthDeg,m.altitudeDeg),p=Math.asin(Math.min(1,Math.abs((f[0]*o[0]+f[1]*o[1]+f[2]*o[2])/a)))*180/Math.PI,y=u.angleDeg(f,n),I=u.angleDeg(f,i);y>=I||I<=s||p<=u.SHOWER_MARGIN_DEG&&(!c||p<c.offDeg)&&(c={showerId:l.id,offDeg:Math.round(p),zhr:Math.round(h)})}return c?{verdict:"compatible",source:"showers",...c}:{verdict:"sporadic",source:"showers",active:d.length}}static async checkFireballs(t,e,n,i){const s=u.TIME_MARGIN_MIN*6e4;if(!C.mayCover(t.startMs))return n?[{verdict:"uninformative",source:"gmn",reason:"beforeArchive"}]:[];const o=await i.fireballs.between(t.startMs-s,t.startMs+s+t.durationS*1e3);if(o===void 0)return n?[{verdict:"unchecked",source:"gmn",reason:"unreachable"}]:[];const a=o.map(m=>u.matchFireball(t,m,e)).filter(m=>m!==void 0).sort((m,f)=>m.offsetMinutes-f.offsetMinutes||m.headingOffDeg-f.headingOffDeg);if(a.length>0)return[{verdict:"known",source:"gmn",match:a[0]}];if(!n)return[];if(t.peakAbsoluteMagnitude>u.ARCHIVED_MAGNITUDE)return[{verdict:"uninformative",source:"gmn",reason:"faint"}];if(F("Sun",new Date(t.startMs),{lat:e.lat,lng:e.lng,elevationM:0}).altitudeDeg>u.NIGHT_SUN_DEG)return[{verdict:"uninformative",source:"gmn",reason:"daylight"}];const r=new Date(t.startMs),d=Date.UTC(r.getUTCFullYear(),r.getUTCMonth(),1),c=Date.UTC(r.getUTCFullYear(),r.getUTCMonth()+1,1)-1,h=(await i.fireballs.between(d,c)??[]).filter(m=>E.distanceKm(e.lat,e.lng,m.from[0],m.from[1])<=u.WATCHED_KM).length;return h<u.WATCHED_COUNT?[{verdict:"uninformative",source:"gmn",reason:"unwatched"}]:[{verdict:"expectedAbsent",source:"gmn",absoluteMagnitude:t.peakAbsoluteMagnitude,watchedCount:h}]}static async checkCatalogue(t,e,n,i,s){if(e.startMs<u.FIRST_ORBIT_MS)return i?[{verdict:"impossible",source:"catalogue"}]:[];const o=u.TIME_MARGIN_MIN*6e4,a=await s.reentries.candidates(e.startMs-o,e.startMs+o+e.durationS*1e3,n);if(a===void 0)return i?[{verdict:"unchecked",source:"catalogue",reason:"unreachable"}]:[];const r=t.object,d=r&&a.find(l=>r.cosparId&&l.record.cosparId===r.cosparId||r.norad!==void 0&&l.record.norad===r.norad);if(d)return[{verdict:"known",source:"catalogue",candidate:d,by:"object"}];const c=a.find(l=>l.record.precision==="minute"&&l.seenKm!==void 0&&(l.offsetMinutes??0)<=u.TIME_MARGIN_MIN);return c?[{verdict:"known",source:"catalogue",candidate:c,by:"seen"}]:a.length>0?a.slice(0,3).map(l=>({verdict:"possible",source:"catalogue",candidate:l})):i?[{verdict:"expectedAbsent",source:"catalogue"}]:[]}}class T{constructor(t,e,n){this.container=t,this.host=e,K.attach(t,"reentry-editor-part",T.STYLE),this.language=n,this.ready=this.setLanguage(n)}messages;ready;parameterTexts;languageToken=0;currentId;form;list;timeline;placeForm;placeIndex=0;row="path";fragmentForm;fragmentIndex=0;curveForm;curveIndex=0;language;shown=[];static STYLE='.reentry-editor-part { flex-basis: 100%; min-width: 0; } .reentry-editor-part #reentry-timeline { flex-basis: 100%; min-width: 0; padding: 4px 0; } .reentry-editor-part #reentry-path > .icon-btn, .reentry-editor-part #reentry-curve > .icon-btn { align-self: flex-end; } .reentry-editor-part #reentry-list, .reentry-editor-part #reentry-places, .reentry-editor-part #reentry-fragment-list, .reentry-editor-part #reentry-curve-list { flex-basis: 100%; min-width: 0; } .reentry-editor-part .launch-editor, .reentry-editor-part .launch-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; } .reentry-editor-part .launch-fields { flex-basis: 100%; min-width: 0; } .reentry-editor-part [hidden] { display: none !important; } .reentry-editor-part .reentry-evidence { flex-basis: 100%; } .reentry-editor-part .evidence-known, .reentry-editor-part .evidence-impossible, .reentry-editor-part .evidence-expectedAbsent { font-weight: 600; } .reentry-editor-part select { min-width: 0; width: 100%; } .reentry-editor-part .launch-intro { flex-basis: 100%; margin: 0; } .reentry-editor-part .launch-track { flex-basis: 100%; margin: 0; } .reentry-editor-part .launch-parameters { flex-basis: 100%; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; } .reentry-editor-part .parameter-group { flex: 1 1 14em; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; align-content: flex-start; } .reentry-editor-part input, .reentry-editor-part select { max-width: 100%; box-sizing: border-box; } .reentry-editor-part input[type="text"] { width: 12em; } .reentry-editor-part input[data-key="title"] { width: 18em; } .reentry-editor-part label { min-width: 0; max-width: 100%; } .reentry-editor-part input.parameter-derived::placeholder { opacity: .65; } .reentry-editor-part .launch-path { flex: 1 1 100%; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; }';async setLanguage(t){const e=++this.languageToken;this.language=t;const[n,i,,s]=await Promise.all([$.load(t),z.load(t),M.load(t),S(t).catch(()=>{})]);e===this.languageToken&&(this.sceneNames=s,this.messages=n,this.parameterTexts=i,this.render(),this.sync())}sync(){if(!this.messages)return;const t=this.reentries;this.shown=[...t],t.some(n=>n.id===this.currentId)||(this.currentId=t[0]?.id),this.list?.setItems(t.map(n=>({id:n.id,label:this.labelOf(n)})),this.currentId),this.list?.setKinds(M.all().map(n=>({value:n.key,label:M.nameOf(n.key)}))),this.syncAddState();const e=this.current;this.element("reentry-fields").hidden=e===void 0,e&&(this.syncPlace(!0),this.syncFragments(e,!0),this.syncEvidence(),this.form??=new x(this.element("reentry-parameters"),this.language,"reentry.",{said:()=>this.host.said(),writingLanguage:()=>this.host.writingLanguage()}),this.form.show(this.resolved(g.SET),new D(()=>this.current,n=>this.editReentry(i=>{i.object&&(i.object={...i.object}),i.seen&&(i.seen={...i.seen}),n(i),i.object&&Object.values(i.object).every(a=>a===void 0||a==="")&&delete i.object;const s=this.origin(),o=s&&g.trackFromSeen(i,s);o&&(i.track=o)})),()=>this.written()))}refresh(){if(!this.messages)return;this.syncAddState();const t=this.reentries;if(t.length===this.shown.length&&t.every((e,n)=>e.id===this.shown[n].id)){this.syncTimeline();return}this.sync()}setTime(t){this.messages&&this.timeline?.setTime(t)}syncAddState(){const t=this.origin()!==void 0;this.list?.setAddState(t,t?void 0:this.messages.addNowhere)}get current(){return this.reentries.find(t=>t.id===this.currentId)}show(t){this.messages&&(this.currentId=t,this.row="path",this.placeIndex=0,this.fragmentIndex=0,this.curveIndex=0,this.sync())}resolved(t){return N.resolve(t,this.parameterTexts)}render(){if(!this.messages)return;const t=this.messages;this.form=void 0,this.evidenceFor=void 0,this.container.innerHTML=`<div class="launch-editor">
2
- <p class="launch-intro">${t.intro}</p>
3
- <div id="reentry-list"></div>
4
- <div id="reentry-fields" class="launch-fields">
5
- <div id="reentry-parameters" class="launch-parameters"></div>
6
- <div id="reentry-evidence" class="launch-intro reentry-evidence" aria-live="polite"></div>
7
- <div id="reentry-timeline"></div>
8
- <button id="reentry-fragment-add" type="button" title="${t.addFragment}">${k.PLUS} ${t.fragment}</button>
9
- <p class="launch-intro">${t.timelineNote}</p>
10
- <fieldset id="reentry-path" class="launch-path">
11
- <legend>${t.path}</legend>
12
- <div id="reentry-place-parameters" class="launch-parameters"></div>
13
- <button id="reentry-place-delete" class="icon-btn" type="button" title="${t.deletePlace}" aria-label="${t.deletePlace}">${k.TRASH}</button>
14
- </fieldset>
15
- <fieldset id="reentry-fragments" class="launch-path">
16
- <legend id="reentry-fragment-legend">${t.fragment}</legend>
17
- <div id="reentry-fragment-parameters" class="launch-parameters"></div>
18
- <button id="reentry-fragment-delete" class="icon-btn" type="button" title="${t.deleteFragment}" aria-label="${t.deleteFragment}">${k.TRASH}</button>
19
- <fieldset id="reentry-curve" class="launch-path">
20
- <legend>${t.curve}</legend>
21
- <p id="reentry-curve-empty" class="launch-intro">${t.noCurve}</p>
22
- <div id="reentry-curve-parameters" class="launch-parameters"></div>
23
- <button id="reentry-curve-delete" class="icon-btn" type="button" title="${t.deleteCurvePoint}" aria-label="${t.deleteCurvePoint}">${k.TRASH}</button>
24
- </fieldset>
25
- </fieldset>
26
- <p class="launch-intro">${t.derivedNote}</p>
27
- </div>
28
- </div>`,this.list=new _({header:this.element("reentry-list"),body:this.element("reentry-fields"),ids:{list:"reentry-select",remove:"reentry-delete",add:"reentry-add",kinds:"reentry-add-kind",kind:e=>`reentry-add-${e}`},onSelect:e=>this.show(e),onAdd:e=>{e&&this.addReentry(e)},onRemove:()=>this.deleteCurrent(),actions:this.host.pointAt?[{id:"reentry-point",glyph:"🎯",onClick:()=>this.pointAtCurrent()}]:[]}),this.list.setLabels({list:t.reentry,remove:t.deleteReentry,add:t.addReentry,empty:t.none,actions:{"reentry-point":t.pointAtReentry}}),this.timeline=new P(this.element("reentry-timeline"),e=>this.host.seekTo(e),{addKeyframeHere:t.addPointHere,keyframeHere:t.pointHere,zoomHint:t.zoomHint}),this.element("reentry-place-delete").addEventListener("click",()=>this.removePlace()),this.element("reentry-curve-delete").addEventListener("click",()=>this.removeCurvePoint()),this.placeForm=void 0,this.element("reentry-fragment-add").addEventListener("click",()=>this.addFragment()),this.element("reentry-fragment-delete").addEventListener("click",()=>this.removeFragment()),this.fragmentForm=void 0,this.curveForm=void 0}written(){const t=this.current;t&&this.list?.rename(t.id,this.labelOf(t)),t?.seen&&this.syncPlace(!0),this.syncEvidence()}sceneNames;evidenceTimer;evidenceFor;syncEvidence(){const t=this.current,e=this.element("reentry-evidence");if(clearTimeout(this.evidenceTimer),!t)return;const n=this.host.sighting(),i=n.event?.place?.[0],s=i?.lng!==void 0&&n.event?.time?L(n.event.time,i.lng,n.event.utcOffsetHours):void 0,o=i?.lat!==void 0&&i.lng!==void 0?{lat:i.lat,lng:i.lng,heightM:0}:void 0,a={reentry:t,at:s?.getTime(),lat:o?.lat,lng:o?.lng},r=this.evidenceFor;r&&r.reentry===a.reentry&&r.at===a.at&&r.lat===a.lat&&r.lng===a.lng||(this.evidenceFor=a,e.textContent=`${this.messages.evidence} — ${this.messages.evidenceChecking}`,this.evidenceTimer=setTimeout(()=>{u.check(t,s,o).then(d=>{if(this.evidenceFor!==a)return;const c=this.messages,l=c.margins.replace("{minutes}",String(u.TIME_MARGIN_MIN)).replace("{heading}",String(u.HEADING_MARGIN_DEG)).replace("{factor}",String(u.DURATION_FACTOR)),h=document.createElement("strong");h.textContent=c.evidence;const m=d.map(p=>{const y=document.createElement("span");return y.className=`evidence-${p.verdict}`,y.textContent=this.findingText(p),y}),f=document.createElement("small");f.textContent=l,e.replaceChildren(h,...m.flatMap(p=>[document.createElement("br"),p]),document.createElement("br"),f)},()=>{this.evidenceFor===a&&(e.textContent="")})},400))}findingText(t){const e=this.messages,n=this.language,i=r=>new Intl.DateTimeFormat(n,{dateStyle:"medium",timeStyle:"short",timeZone:"UTC"}).format(r)+" UTC",s=r=>new Intl.DateTimeFormat(n,{dateStyle:"long",timeZone:"UTC"}).format(r),o=r=>r.toLocaleString(n,{maximumFractionDigits:1}),a=(r,d)=>Object.entries(d).reduce((c,[l,h])=>c.replaceAll(`{${l}}`,h===void 0?"?":String(h)),r);switch(t.verdict){case"known":if(t.source==="gmn"){const{record:r,offsetMinutes:d,headingOffDeg:c}=t.match;return a(e.knownFireball,{id:r.id,time:i(r.t),offset:d,stations:r.stations,mag:o(r.peakMagnitude),heading:c})}else{const{record:r,timeMs:d,seenKm:c}=t.candidate,l={name:r.name,cospar:r.cosparId??r.norad,time:i(d),when:r.precision==="day"?s(d):i(d),place:r.seenFrom,km:c===void 0?void 0:Math.round(c)};return a(t.by==="object"?e.knownObject:e.knownSeen,l)}case"possible":{const{record:r,timeMs:d,seenKm:c,offsetMinutes:l}=t.candidate,h={name:r.name,cospar:r.cosparId??r.norad,time:i(d),day:s(d),hours:r.uncertaintyHours,place:r.seenFrom,km:c===void 0?void 0:Math.round(c),offset:l};return a(r.precision==="minute"?e.possibleSeen:r.precision==="hours"?e.possibleWindow:e.possibleDay,h)}case"expectedAbsent":return t.source==="gmn"?a(e.expectedFireball,{mag:o(t.absoluteMagnitude),count:t.watchedCount,km:u.WATCHED_KM}):e.expectedCatalogue;case"impossible":return e.impossibleOrbit;case"uninformative":return t.source==="none"?e.typeUnknown:t.reason==="faint"?e.faintFireball:t.reason==="beforeArchive"?e.beforeGmn:t.reason==="daylight"?e.daylightGmn:a(e.unwatchedGmn,{km:u.WATCHED_KM});case"compatible":return a(e.compatibleShower,{shower:this.sceneNames?.showers[t.showerId]??t.showerId,off:t.offDeg,zhr:t.zhr,margin:u.SHOWER_MARGIN_DEG});case"sporadic":return t.active===0?e.sporadicNoShower:a(e.sporadicShower,{count:t.active});case"unchecked":return t.reason==="noDateOrPlace"?e.noDateOrPlace:t.source==="gmn"?e.unreachableGmn:e.unreachableCatalogue}}syncTimeline(){const t=this.current;if(!this.timeline||!t)return;const e=this.messages,n=t.track[0]?.t??0,i=t.track[t.track.length-1]?.t??0,s={id:"path",label:e.path,color:T.PATH_COLOR,times:t.track.map(l=>l.t),active:this.row==="path",selectedTime:this.row==="path"?t.track[this.placeIndex]?.t:void 0,open:()=>this.selectPlace(this.placeIndex),pressed:(l,h)=>{const m=h===void 0?-1:(this.current?.track??[]).findIndex(f=>f.t===h);this.selectPlace(m>=0?m:this.placeIndex)},move:(l,h)=>this.movePlace(l,h),add:()=>this.addPlaceAt(this.host.currentTime())},o=t.fragments.map((l,h)=>{const m=l.lightCurve??[];return{id:`fragment-${h}`,label:this.fragmentLabel(l,h),color:T.PIECE_COLOR,times:m.map(f=>f.t),spans:[{t:l.fromT??n,until:l.untilT??i,label:""}],active:this.row==="fragment"&&h===this.fragmentIndex,selectedTime:this.row==="fragment"&&h===this.fragmentIndex?m[this.curveIndex]?.t:void 0,open:()=>this.selectFragment(h),pressed:(f,p)=>{const y=p===void 0?-1:(this.current?.fragments[h]?.lightCurve??[]).findIndex(I=>I.t===p);this.selectFragment(h,y>=0?y:void 0)},move:(f,p)=>this.moveCurvePoint(h,f,p),add:()=>this.addCurvePointAt(h,this.host.currentTime())}}),a=g.instantsOf(t),r=Math.min(...a),d=Math.max(...a),c=Math.max(500,(d-r)/10);this.timeline.show([s,...o],this.host.duration(),this.host.currentTime(),{from:r-c,to:d+c})}static PATH_COLOR="#e08a1e";static PIECE_COLOR="#c0581b";static MIN_PLACES=2;syncPlace(t=!1){const e=this.current?.track??[];this.placeIndex=Math.max(0,Math.min(this.placeIndex,e.length-1)),this.element("reentry-place-delete").disabled=e.length<=T.MIN_PLACES,this.placeForm?this.placeForm.sync(t):(this.placeForm=new x(this.element("reentry-place-parameters"),this.language,"reentryPlace."),this.placeForm.show(this.resolved(g.PLACE),new D(()=>this.current?.track[this.placeIndex],n=>this.editPlace(this.placeIndex,n),void 0,this.host.positionPlace?.()),()=>{})),this.syncTimeline()}selectPlace(t){this.row="path",this.placeIndex=t,this.syncDetail(),this.syncPlace(!0)}syncDetail(){this.element("reentry-path").hidden=this.row!=="path",this.element("reentry-fragments").hidden=this.row!=="fragment";const t=this.currentFragment;this.element("reentry-fragment-legend").textContent=t?`${this.messages.fragment} ${this.fragmentLabel(t,this.fragmentIndex)}`:this.messages.fragment}editPlace(t,e){let n;this.editReentry(i=>{n={...i.track[t]},e(n),i.track=i.track.map((s,o)=>o===t?n:s).sort((s,o)=>s.t-o.t)}),n&&(this.placeIndex=this.current?.track.indexOf(n)??0),this.syncPlace()}movePlace(t,e){const n=this.current?.track.findIndex(i=>i.t===t)??-1;n<0||(this.editPlace(n,i=>{i.t=e}),this.syncPlace(!0))}addPlaceAt(t){const e=this.current;if(!e)return;const n=e.track.findIndex(s=>Math.abs(s.t-t)<1);if(n>=0){this.selectPlace(n);return}const i=g.placeAt(e,t);this.editReentry(s=>{s.track=[...s.track,i].sort((o,a)=>o.t-a.t)}),this.selectPlace(this.current?.track.indexOf(i)??0)}removePlace(){if((this.current?.track.length??0)<=T.MIN_PLACES)return;const t=this.placeIndex;this.editReentry(e=>{e.track=e.track.filter((n,i)=>i!==t)}),this.syncPlace(!0)}static MIN_FRAGMENTS=1;fragmentLabel(t,e){return t.id??String(e+1)}syncFragments(t,e=!1){const n=t.fragments;this.fragmentIndex=Math.max(0,Math.min(this.fragmentIndex,n.length-1)),this.element("reentry-fragment-delete").disabled=n.length<=T.MIN_FRAGMENTS,this.syncDetail(),this.fragmentForm?this.fragmentForm.sync(e):(this.fragmentForm=new x(this.element("reentry-fragment-parameters"),this.language,"reentryFragment."),this.fragmentForm.show(this.resolved(g.FRAGMENT),new D(()=>this.currentFragment,i=>this.editFragment(s=>i(s)),()=>this.current),()=>{})),this.syncCurve(e)}selectFragment(t,e){const n=t!==this.fragmentIndex;this.row="fragment",this.fragmentIndex=t,e!==void 0?this.curveIndex=e:n&&(this.curveIndex=0),this.current&&this.syncFragments(this.current,!0)}get currentFragment(){return this.current?.fragments[this.fragmentIndex]}editFragment(t,e=this.fragmentIndex){this.editReentry(n=>{const i={...n.fragments[e]};i.lightCurve&&(i.lightCurve=[...i.lightCurve]),t(i),n.fragments=n.fragments.map((s,o)=>o===e?i:s)}),this.syncDetail(),this.syncTimeline()}addFragment(){const t=this.current;if(!t)return;const e=t.fragments[t.fragments.length-1];let n=t.fragments.length+1;for(;t.fragments.some(s=>s.id===`piece-${n}`);)n++;const i={id:`piece-${n}`,lagS:(e?.lagS??0)+1,absoluteMagnitude:(e?.absoluteMagnitude??-4)+1};this.editReentry(s=>{s.fragments=[...s.fragments,i]}),this.selectFragment((this.current?.fragments.length??1)-1)}removeFragment(){if((this.current?.fragments.length??0)<=T.MIN_FRAGMENTS)return;const t=this.fragmentIndex;this.editReentry(e=>{e.fragments=e.fragments.filter((n,i)=>i!==t)}),this.curveIndex=0,this.selectFragment(Math.min(t,(this.current?.fragments.length??1)-1))}syncCurve(t=!1){const e=this.currentFragment?.lightCurve??[];this.curveIndex=Math.max(0,Math.min(this.curveIndex,e.length-1)),this.element("reentry-curve-empty").hidden=e.length>0,this.element("reentry-curve-parameters").hidden=e.length===0,this.element("reentry-curve-delete").hidden=e.length===0,this.curveForm?this.curveForm.sync(t):(this.curveForm=new x(this.element("reentry-curve-parameters"),this.language,"reentryCurve."),this.curveForm.show(this.resolved(g.CURVE_POINT),new D(()=>this.currentFragment?.lightCurve?.[this.curveIndex],n=>this.editCurvePoint(this.fragmentIndex,this.curveIndex,n)),()=>{})),this.syncTimeline()}editCurvePoint(t,e,n){let i;this.editFragment(s=>{const o=s.lightCurve??[];i={...o[e]},n(i),s.lightCurve=o.map((a,r)=>r===e?i:a).sort((a,r)=>a.t-r.t)},t),i&&(this.curveIndex=this.current?.fragments[t]?.lightCurve?.indexOf(i)??0),this.syncCurve()}moveCurvePoint(t,e,n){const i=this.current?.fragments[t]?.lightCurve?.findIndex(s=>s.t===e)??-1;i<0||(this.fragmentIndex=t,this.editCurvePoint(t,i,s=>{s.t=n}),this.syncFragments(this.current,!0))}addCurvePointAt(t,e){const n=this.current?.fragments[t];if(!n)return;const i=(n.lightCurve??[]).findIndex(o=>Math.abs(o.t-e)<1);if(i>=0){this.selectFragment(t,i);return}const s=g.curvePointAt(n,e);this.editFragment(o=>{o.lightCurve=[...o.lightCurve??[],s].sort((a,r)=>a.t-r.t)},t),this.selectFragment(t,this.current?.fragments[t]?.lightCurve?.indexOf(s)??0)}removeCurvePoint(){if(!this.currentFragment?.lightCurve?.length)return;const t=this.curveIndex;this.editFragment(e=>{const n=(e.lightCurve??[]).filter((i,s)=>s!==t);n.length?e.lightCurve=n:delete e.lightCurve}),this.syncCurve(!0)}editReentry(t){const e=this.current;if(!e)return;const n={...e,track:[...e.track],fragments:[...e.fragments]};t(n),this.writeReentries(this.reentries.map(i=>i===e?n:i)),this.host.changed()}pointAtCurrent(){const t=this.current,e=t?.track;if(!t||!e||e.length<2||!this.host.pointAt)return;const n=e[0].t,i=e[e.length-1].t;let s=this.host.currentTime();(s<n||s>i)&&(s=Math.round(n+Math.min(1e3,(i-n)/2)),this.host.seekTo(s));const o=this.host.sighting(),a=G(o,s),r=o.event?.place?.[0],d=a?.lat??r?.lat,c=a?.lng??r?.lng,l=b.leadAt(t,s);if(d===void 0||c===void 0||!l)return;const h=b.seenFrom({lat:d,lng:c,heightM:a?.elevationM??0},l);this.host.pointAt(h.azimuthDeg,h.altitudeDeg)}origin(){const t=this.host.sighting(),e=t.event?.place?.[0];if(!(e?.lat===void 0||e.lng===void 0))return{lat:e.lat,lng:e.lng,headingRad:(t.observerTrack?.getInterpolatedPoseAt(0)?.headingDeg??0)*Math.PI/180}}newOf(t){const e=this.origin(),n=M.of(t);if(!e||!n)return;const{distanceKm:i,speedKmS:s,durationS:o,fromAltitudeKm:a,toAltitudeKm:r,fragments:d}=n.template,c=Math.round(this.host.currentTime()),l=Math.max(.05,Math.cos(e.lat*Math.PI/180)),h=(f,p)=>{const y=f*Math.cos(e.headingRad)-p*Math.sin(e.headingRad),I=f*Math.sin(e.headingRad)+p*Math.cos(e.headingRad);return{lat:e.lat+y/111.32,lng:e.lng+I/(111.32*l)}},m=s*o/2;return{type:t,track:[{t:c,...h(i,-m),altitudeKm:a},{t:c+o*1e3,...h(i,m),altitudeKm:r}],fragments:d.map(f=>({...f,...f.sheds?{sheds:[...f.sheds]}:{}}))}}addReentry(t){const e=this.newOf(t);if(!e)return;let n=this.reentries.length+1;for(;this.reentries.some(s=>s.id===`${t}-${n}`);)n++;const i={id:`${t}-${n}`,...e};this.writeReentries([...this.reentries,i]),this.host.changed(),this.show(i.id)}deleteCurrent(){const t=this.current;t&&(this.currentId=void 0,this.writeReentries(this.reentries.filter(e=>e!==t)),this.host.changed(),this.sync())}writeReentries(t){const e=this.host.sighting();e.skyEvents=H.written({...e.skyEvents,reentries:t})}labelOf(t){const e=this.host.said().read(t.title)||t.object?.name||(t.type===void 0?"":M.nameOf(t.type));return e?`${e} (${t.id})`:t.id}get reentries(){return this.host.sighting().skyEvents?.reentries??[]}element(t){return this.container.querySelector(`#${t}`)}}export{T as ReentryEditor};
@@ -1 +0,0 @@
1
- import{m as w,cc as M,Q as y,cd as d,ce as k,cf as g,bO as l,cg as O,aY as b,bg as T,ch as E,ci as D,cj as I,D as x}from"./rr0-sighting-editor.mjs";import{P as m,a as f}from"./PictureFetch-C3wgf1ZV.js";const v=M.reference,u=800,c=Math.PI/180;class r{constructor(t,i,s=r.fetchImage,e=r.openVideo){this.scene=t,this.onImageLoaded=i,this.loadImage=s,this.loadVideo=e}meshes=new Map;signatures=new Map;images=new Map;loading=new Map;failed=new Map;references=[];views=new Map;shown=!0;observerAt;clock={t:0,playing:!1,timeScale:1};static PRESENT_WITHIN_M=2;static GONE_BEYOND_M=20;static presenceAt(t,i){if(!t.from||!i)return 1;const s=w(i.lat,i.lng,t.from.lat,t.from.lng),a=(Math.hypot(s.x,s.z)-r.PRESENT_WITHIN_M)/(r.GONE_BEYOND_M-r.PRESENT_WITHIN_M),o=Math.min(Math.max(a,0),1);return 1-o*o*(3-2*o)}set(t,i=this.views,s){this.references=t,this.observerAt=s,this.views=i;const e=new Set(t.map(a=>a.id));for(const[a,o]of this.meshes)e.has(a)||(this.dispose(o),this.meshes.delete(a),this.signatures.delete(a));for(const[a,o]of this.images){const n=t.find(p=>p.id===a);if(n&&n.src===o.texture.userData.src&&n.kind==="video"==(o.video!==void 0))continue;r.release(o),this.images.delete(a);const h=this.meshes.get(a);h&&(this.dispose(h),this.meshes.delete(a),this.signatures.delete(a))}for(const a of t){const o=this.images.get(a.id);if(!o){this.load(a);continue}this.build(a,o)}this.follow()}setTime(t){this.clock=t,this.follow()}setShown(t){this.shown=t;for(const i of this.meshes.values())i.visible=t&&this.opacityOf(i.userData.id)>0}setView(t,i){this.views.set(t,i);const s=this.meshes.get(t);s&&this.applyOpacity(s,t)}layer=v;get any(){for(const t of this.meshes.values())if(t.visible)return!0;return!1}place(t){const i=this.held;i&&t.getWorldQuaternion(this.cameraTurn);for(const s of this.meshes.values()){if(!s.visible)continue;s.position.copy(t.position);const e=i?.get(s);e&&s.quaternion.copy(this.cameraTurn).multiply(e),s.updateMatrixWorld()}}hold(t){t.getWorldQuaternion(this.cameraTurn);const i=this.cameraTurn.clone().invert();this.held=new Map([...this.meshes.values()].map(s=>[s,i.clone().multiply(s.quaternion)])),this.registered=new Map([...this.meshes.values()].map(s=>[s,s.quaternion.clone()]))}release(){if(this.held){for(const[t,i]of this.registered??[])t.quaternion.copy(i);this.held=void 0,this.registered=void 0}}registered;held;cameraTurn=new y;get furthestM(){return this.meshes.size>0?u:0}directionOfPixel(t,i,s,e){const a=this.images.get(t.id),o=a?a.width/a.height:1,n=d.registrationAt(t,this.clock.t),h=Math.tan(n.fovDeg/2*c),p=h*o;return e.set((i*2-1)*p,(1-s*2)*h,-1).normalize(),e.applyQuaternion(r.orientation(n))}aspectOf(t){const i=this.images.get(t);return i?i.width/i.height:void 0}failureOf(t){return this.failed.get(t)}follow(){for(const t of this.references){const i=this.meshes.get(t.id),s=this.images.get(t.id)?.video;s&&this.sync(t,s),i&&(t.registrationTrack?.length&&r.point(i,t,d.registrationAt(t,this.clock.t)),t.kind==="video"&&this.applyOpacity(i,t.id))}}sync(t,i){const s=d.mediaSecondsAt(t,this.clock.t,this.clock.timeScale,Number.isFinite(i.duration)?i.duration:void 0);if(s===void 0){i.paused||i.pause();return}const e=d.command(i.currentTime,s,this.clock.playing,d.rateOf(t));i.playbackRate=e.rate,e.seekS!==void 0&&!i.seeking&&(i.currentTime=e.seekS),e.play&&i.paused&&i.play().catch(()=>{}),!e.play&&!i.paused&&i.pause()}load(t){const i=t.src;if(this.loading.has(t.id)||this.failed.has(i))return;const s=t.kind==="video",a=(s?this.loadVideo(i,()=>this.onVideoFrame()):this.loadImage(i)).then(o=>{this.loading.delete(t.id);const n=this.references.find(h=>h.id===t.id);if(!n||n.src!==i||n.kind==="video"!==s){r.release(o);return}o.texture.userData.src=i,this.images.set(t.id,o),this.build(n,o),this.follow(),this.onImageLoaded()},o=>{this.loading.delete(t.id),this.failed.set(i,m.failureOf(o)),this.onImageLoaded()});this.loading.set(t.id,a)}onVideoFrame(){this.follow(),this.onFrame?.()}onFrame;static openVideo(t,i){return new Promise((s,e)=>{const a=document.createElement("video");a.crossOrigin="anonymous",a.muted=!0,a.playsInline=!0,a.preload="auto",a.addEventListener("loadeddata",()=>{const o=new k(a);o.colorSpace=g,o.minFilter=l,o.magFilter=l,o.generateMipmaps=!1,a.addEventListener("seeked",i);const n=()=>{a.paused&&i(),a.src&&a.requestVideoFrameCallback(n)};"requestVideoFrameCallback"in a&&a.requestVideoFrameCallback(n),s({texture:o,width:a.videoWidth,height:a.videoHeight,video:a})},{once:!0}),a.addEventListener("error",()=>{m.whyVideoUnread(t).then(o=>e(new f(t,o)))},{once:!0}),a.src=t})}static release(t){t.texture.dispose();const i=t.video;i&&(i.pause(),i.removeAttribute?.("src"),i.load?.())}static async fetchImage(t){const i=await m.blob(t),s=await createImageBitmap(i,{imageOrientation:"flipY"}).catch(()=>{throw new f(t,{kind:"notPicture"})}),e=new O(s);return e.flipY=!1,e.colorSpace=g,e.minFilter=l,e.magFilter=l,e.generateMipmaps=!1,e.needsUpdate=!0,{texture:e,width:s.width,height:s.height}}build(t,i){const s=r.signatureOf(t,i);let e=this.meshes.get(t.id);if(e&&this.signatures.get(t.id)===s){this.applyOpacity(e,t.id);return}e&&(this.dispose(e),this.meshes.delete(t.id)),e=new b(r.geometryOf(t,i),new T({map:i.texture,transparent:!0,depthTest:!1,depthWrite:!1,fog:!1,toneMapped:!1})),t.kind==="panorama"&&(e.material.side=E),e.frustumCulled=!1,e.layers.set(v),e.userData.id=t.id,r.point(e,t,d.registrationAt(t,this.clock.t)),this.scene.add(e),this.meshes.set(t.id,e),this.signatures.set(t.id,s),this.applyOpacity(e,t.id)}static geometryOf(t,i){if(t.kind==="panorama"){const o=new D(u,64,32,Math.PI/2,Math.PI*2),n=o.attributes.uv;for(let h=0;h<n.count;h++)n.setX(h,1-n.getX(h));return n.needsUpdate=!0,o}const s=2*u*Math.tan(t.registration.fovDeg/2*c),e=s*(i.width/Math.max(i.height,1)),a=new I(e,s);return a.translate(0,0,-u),a}static orientation({headingDeg:t,pitchDeg:i,rollDeg:s}){const e=new x;return e.rotation.set(i*c,-t*c,-(s??0)*c,"YXZ"),e.quaternion}static point(t,i,s){if(t.quaternion.copy(r.orientation(s)),i.kind==="panorama")return;const e=Math.tan(s.fovDeg/2*c)/Math.tan(i.registration.fovDeg/2*c);t.scale.set(e,e,1)}inTime(t){if(t.kind!=="video")return!0;const i=this.images.get(t.id)?.video?.duration;return d.mediaSecondsAt(t,this.clock.t,this.clock.timeScale,i!==void 0&&Number.isFinite(i)?i:void 0)!==void 0}opacityOf(t){const i=this.references.find(a=>a.id===t);if(i&&!this.inTime(i))return 0;const s=this.views.get(t),e=i?r.presenceAt(i,this.observerAt):1;return(s?.opacity??i?.opacity??0)*e}applyOpacity(t,i){const s=this.opacityOf(i);t.material.opacity=s,t.visible=this.shown&&s>0}static signatureOf(t,i){const{headingDeg:s,pitchDeg:e,rollDeg:a,fovDeg:o}=t.registration;return[t.kind,t.src,i.width,i.height,s,e,a??0,o].join("|")}dispose(t){this.scene.remove(t),t.geometry.dispose(),t.material.dispose()}disposeAll(){for(const t of this.meshes.values())this.dispose(t);this.meshes.clear(),this.signatures.clear();for(const t of this.images.values())r.release(t);this.images.clear()}}export{v as REFERENCE_LAYER,r as ReferenceSystem};
@@ -1 +0,0 @@
1
- const e={type:"string",doc:"The schema this file was written against, for an editor to check it with: https://ufoathome.org/schema/1/case.schema.json."},t={type:"number",doc:"The version of the format this file is written in (see FormatVersion): 1 when left out, as RR0 writes it."},i={type:"string",doc:"The case's identifier."},s={type:"string"},n={type:"string",doc:"What a link to this case says of it where it is shared as a card (see the Player's share card): a sentence or two, translatable.",loose:!0},a={type:"string",doc:"A picture standing for the case where it is only linked to — see SightingEvent.image."},o={type:"string",doc:'When it happened, as RR0 writes a time ("1948-07-24 02:45", "1954").'},r={type:"array",fields:{type:{type:"enum",values:["event"]},eventType:{type:"string",doc:"What kind of event it is.",suggest:["sighting","interview","interpretation","article","image","book"]},id:{type:"string",doc:"What a reading names an account by (`interpretationOf`), local to the case: it has to be unique among the case's events and nowhere else, so that a reference can be read in the file that writes it."},url:{type:"string"},time:{type:"string"},place:{type:"string",doc:"Where it happened, as RR0 names a place."},by:{type:"array",doc:"Who did it: who held an interview, who made a reading."},medium:{type:"enum",doc:"An interview's: what it was held through (see InterviewMedium).",values:["letter","other","video","in-person","phone","chat","email"]},title:{type:"string",loose:!0},sighting:{type:"string",doc:"An interpretation's, in the older form: the `id` of the recording it interprets."},interpretationOf:{type:"string",doc:"An interpretation's: the `id`, or the ids, of the sightings this one is a reading of.",loose:!0},interviewOf:{type:"string",doc:"An interview's: the `id`, or the ids, of the sighting events of the witnesses it was held with (see CaseFile.INTERVIEW_EVENT).",loose:!0},sealed:{type:"boolean",doc:"Whether what this event lists is frozen: once someone has worked ON a reconstruction — an interview held to hear what the witness makes of it, a hypothesis set against it — a later edit would quietly invalidate that work, so the author freezes the event and clones it to carry on."},summary:{type:"string",doc:"What an event says of itself where its title is not enough: an interview's, what it established.",loose:!0}}},h={$schema:e,version:t,id:i,title:s,summary:n,image:a,time:o,events:r};export{e as $schema,h as default,r as events,i as id,a as image,n as summary,o as time,s as title,t as version};
@@ -1 +0,0 @@
1
- const e={type:"string",doc:"The schema this file was written against, for an editor to check it with: https://ufoathome.org/schema/1/interview.schema.json."},t={type:"number",doc:"The version of the format this file is written in (see FormatVersion): 1, the only one so far."},s={type:"string"},o={type:"string"},i={type:"string",doc:"What the interview is called, in the languages it has.",loose:!0},n={type:"string",doc:"When it was held, as RR0 writes a time."},a={type:"enum",doc:"What it was held through: face to face (`in-person`), by `phone`, in a `video` call, by `chat`, by `email`, by `letter`, or `other`.",values:["letter","other","video","in-person","phone","chat","email"]},r={type:"array",doc:"Who held it."},c={type:"string",doc:"The `id`, or the ids, of the sighting events of the case it was held with.",loose:!0},h={type:"string",doc:"What it established, in the languages it has.",loose:!0},d={type:"object"},p={type:"object",fields:{method:{type:"enum",values:["automatic","manual"]},engine:{type:"string"},note:{type:"string"}}},y={type:"object",doc:"Who approved the transcript, by speaker id."},g={type:"object",doc:"What was taken out to anonymise it, and what stands in its place.",fields:{replaced:{type:"array"},marker:{type:"string"}}},l={type:"array",doc:"The recordings of the interview, if any are kept (see InterviewRecording).",fields:{kind:{type:"enum",values:["video","audio"]},src:{type:"string",doc:"Its address, relative to the transcript's file."},offset:{type:"number",doc:"Seconds of the recording before the transcript's time 0."}}},f={type:"array",fields:{speaker:{type:"string"},start:{type:"number"},end:{type:"number"},text:{type:"string"},redacted:{type:"object",fields:{reason:{type:"string",doc:"Why, in the languages it has: what kind of passage (private life, identifying detail, small talk, recognition error).",loose:!0},words:{type:"number",doc:'How many words were taken out: what a reader can be told of a passage whose text is gone ("passage taken out · 10 words").'}}},parts:{type:"array"},refs:{type:"array",doc:"The moments of the observation this passage tells of.",fields:{sighting:{type:"string",doc:"The `id` of the sighting event of the case; the interview's own `interviewOf` when omitted."},at:{type:"number",doc:"Seconds since the beginning of the observation."},range:{type:"array",doc:"The part of the segment's text it is about, as `[from, to)` character offsets."}}}}},m={$schema:e,version:t,id:s,language:o,title:i,time:n,medium:a,by:r,interviewOf:c,summary:h,speakers:d,transcription:p,proofreading:y,anonymization:g,recordings:l,segments:f};export{e as $schema,g as anonymization,r as by,m as default,s as id,c as interviewOf,o as language,a as medium,y as proofreading,l as recordings,f as segments,d as speakers,h as summary,n as time,i as title,p as transcription,t as version};