@rr0/ufoathome 0.199.0 → 0.201.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 (576) hide show
  1. package/dist-embed-interview/InterviewMessages_en-BRmuWrAg.js +1 -0
  2. package/dist-embed-interview/InterviewMessages_es-BTotimwY.js +1 -0
  3. package/dist-embed-interview/InterviewMessages_fr-DBCdGB0r.js +1 -0
  4. package/dist-embed-interview/InterviewMessages_it-B5EyMD-k.js +1 -0
  5. package/dist-embed-interview/rr0-interview.mjs +1 -1
  6. package/dist-embed-scene/{AdsbLolArchiveProvider-BtF4baVw.js → AdsbLolArchiveProvider-C6FJmrLQ.js} +1 -1
  7. package/dist-embed-scene/AirshipEditor-BnRmKeVs.js +16 -0
  8. package/dist-embed-scene/AirshipEditorMessages_en-CFafbbN8.js +1 -0
  9. package/dist-embed-scene/AirshipEditorMessages_es-ht4kFQUD.js +1 -0
  10. package/dist-embed-scene/AirshipEditorMessages_fr-Bhj6QKCL.js +1 -0
  11. package/dist-embed-scene/AirshipEditorMessages_it-Cfl9mFjn.js +1 -0
  12. package/dist-embed-scene/AirshipFlight-C9DSPGwk.js +1 -0
  13. package/dist-embed-scene/AirshipKindMessages_en-DzGapVTV.js +1 -0
  14. package/dist-embed-scene/AirshipKindMessages_es-TE93uMSC.js +1 -0
  15. package/dist-embed-scene/AirshipKindMessages_fr-BTXNsW5W.js +1 -0
  16. package/dist-embed-scene/AirshipKindMessages_it-Cwa3MnJ-.js +1 -0
  17. package/dist-embed-scene/AirshipParameterTexts_en-DZxqhSI3.js +1 -0
  18. package/dist-embed-scene/AirshipParameterTexts_es-BDJUZOmr.js +1 -0
  19. package/dist-embed-scene/AirshipParameterTexts_fr-Cj-D0Xb_.js +1 -0
  20. package/dist-embed-scene/AirshipParameterTexts_it-BhC9cEbs.js +1 -0
  21. package/dist-embed-scene/Aurora-BmVyTP6i.js +1 -0
  22. package/dist-embed-scene/AuroraEditor-CN6BQMUW.js +8 -0
  23. package/dist-embed-scene/AuroraEditorMessages_en-CpU3BS-B.js +1 -0
  24. package/dist-embed-scene/AuroraEditorMessages_es-i8-psDHN.js +1 -0
  25. package/dist-embed-scene/AuroraEditorMessages_fr-0DtPXXAs.js +1 -0
  26. package/dist-embed-scene/AuroraEditorMessages_it-Dn2UHyk9.js +1 -0
  27. package/dist-embed-scene/AuroraKindMessages_en-D_W4giJa.js +1 -0
  28. package/dist-embed-scene/AuroraKindMessages_es-jJ5_ltZq.js +1 -0
  29. package/dist-embed-scene/AuroraKindMessages_fr-6IzUVbRH.js +1 -0
  30. package/dist-embed-scene/AuroraKindMessages_it-DcwuoMkp.js +1 -0
  31. package/dist-embed-scene/AuroraParameterTexts_en-shkUd-dT.js +1 -0
  32. package/dist-embed-scene/AuroraParameterTexts_es-CwGYyafK.js +1 -0
  33. package/dist-embed-scene/AuroraParameterTexts_fr-CoJnicWs.js +1 -0
  34. package/dist-embed-scene/AuroraParameterTexts_it-DHniBj_2.js +1 -0
  35. package/dist-embed-scene/AuroraSimulation-BZpjImM0.js +152 -0
  36. package/dist-embed-scene/BalloonEditor-BehJs6H-.js +24 -0
  37. package/dist-embed-scene/BalloonEditorMessages_en-B2n2FutN.js +1 -0
  38. package/dist-embed-scene/BalloonEditorMessages_es-BXppdrpF.js +1 -0
  39. package/dist-embed-scene/BalloonEditorMessages_fr-BmUizmQy.js +1 -0
  40. package/dist-embed-scene/BalloonEditorMessages_it-Dx0JODqK.js +1 -0
  41. package/dist-embed-scene/BalloonFlight-BYn4diw1.js +1 -0
  42. package/dist-embed-scene/BalloonKindMessages_en-C6tZ-5gT.js +1 -0
  43. package/dist-embed-scene/BalloonKindMessages_es-BfoEjhe1.js +1 -0
  44. package/dist-embed-scene/BalloonKindMessages_fr-C3QJIuDJ.js +1 -0
  45. package/dist-embed-scene/BalloonKindMessages_it-CkO7mqHp.js +1 -0
  46. package/dist-embed-scene/BalloonParameterTexts_en-CHm_vRVx.js +1 -0
  47. package/dist-embed-scene/BalloonParameterTexts_es-BYaljnsn.js +1 -0
  48. package/dist-embed-scene/BalloonParameterTexts_fr-IhyPRhYG.js +1 -0
  49. package/dist-embed-scene/BalloonParameterTexts_it-BqBPIfav.js +1 -0
  50. package/dist-embed-scene/{BeamEditor-Dj1Wt50v.js → BeamEditor-BbbtyCOw.js} +1 -1
  51. package/dist-embed-scene/BeamSystem-DtRwoKHP.js +1 -0
  52. package/dist-embed-scene/{BirdEditor-CKpe681e.js → BirdEditor-dOp1sGsz.js} +1 -1
  53. package/dist-embed-scene/{BirdFlock-B2SbkMme.js → BirdFlock-CfJeXvWu.js} +1 -1
  54. package/dist-embed-scene/DroneEditor-CBoR4fJ_.js +16 -0
  55. package/dist-embed-scene/{DroneFlight-BTFHGVWd.js → DroneFlight-DSE1OXqh.js} +1 -1
  56. package/dist-embed-scene/DroneParameters-D3EOg4oe.js +1 -0
  57. package/dist-embed-scene/{Flightradar24Provider-BBj_wixV.js → Flightradar24Provider-BZDUU8WC.js} +1 -1
  58. package/dist-embed-scene/{GLTFLoader-CKDxld-A.js → GLTFLoader-Dwb-fLT2.js} +1 -1
  59. package/dist-embed-scene/{LanternEditor-iByq1q3j.js → LanternEditor-CbcA7K8y.js} +1 -1
  60. package/dist-embed-scene/{LaserBeam-BQWS_xWa.js → LaserBeam-AjgGxDIq.js} +1 -1
  61. package/dist-embed-scene/{LaunchEditor-CjpESdIe.js → LaunchEditor-tMadX67W.js} +1 -1
  62. package/dist-embed-scene/{LaunchPlume-DVsshxQE.js → LaunchPlume-C7lTPaXd.js} +1 -1
  63. package/dist-embed-scene/{LaunchSimulation-BU7X_C8t.js → LaunchSimulation-ByGBMtSW.js} +1 -1
  64. package/dist-embed-scene/ModuleSession-XnOI5Mcr.js +3 -0
  65. package/dist-embed-scene/ModuleThree-BTQgimAj.js +1 -0
  66. package/dist-embed-scene/{ParameterForm-BHRESNZ4.js → ParameterForm-CRC9iA-m.js} +1 -1
  67. package/dist-embed-scene/{ReentryEditor-DpNPIxOG.js → ReentryEditor-Bjh0q9Ii.js} +1 -1
  68. package/dist-embed-scene/{ReentrySimulation-m-TICP2i.js → ReentrySimulation-Bgnppel8.js} +1 -1
  69. package/dist-embed-scene/ReferenceSystem-D1BkjwT7.js +1 -0
  70. package/dist-embed-scene/{SceneNames_en-Dn90NisJ.js → SceneNames_en-BFJsR6Cc.js} +1 -1
  71. package/dist-embed-scene/{SceneNames_es-DH6GZWja.js → SceneNames_es-BHBTwcJ3.js} +1 -1
  72. package/dist-embed-scene/{SceneNames_fr-rltu5c_j.js → SceneNames_fr-CFsA4XeK.js} +1 -1
  73. package/dist-embed-scene/{SceneNames_it-DsNshdIp.js → SceneNames_it-DkIgwviv.js} +1 -1
  74. package/dist-embed-scene/SearchlightEditor-CogwU9pl.js +8 -0
  75. package/dist-embed-scene/SearchlightEditorMessages_en-BWTcGHYC.js +1 -0
  76. package/dist-embed-scene/SearchlightEditorMessages_es-PS4IIWFS.js +1 -0
  77. package/dist-embed-scene/SearchlightEditorMessages_fr-CpaD2Il2.js +1 -0
  78. package/dist-embed-scene/SearchlightEditorMessages_it-Br2IjowF.js +1 -0
  79. package/dist-embed-scene/SearchlightKindMessages_en-CwJDAjsc.js +1 -0
  80. package/dist-embed-scene/SearchlightKindMessages_es-CCCgZyTQ.js +1 -0
  81. package/dist-embed-scene/SearchlightKindMessages_fr-DsxiUhmK.js +1 -0
  82. package/dist-embed-scene/SearchlightKindMessages_it-CyWpJL5c.js +1 -0
  83. package/dist-embed-scene/SearchlightParameterTexts_en-BwanYoMW.js +1 -0
  84. package/dist-embed-scene/SearchlightParameterTexts_es-Cz_rg-Xe.js +1 -0
  85. package/dist-embed-scene/SearchlightParameterTexts_fr-B7eZQIdG.js +1 -0
  86. package/dist-embed-scene/SearchlightParameterTexts_it-BjhuOJre.js +1 -0
  87. package/dist-embed-scene/SearchlightSystem-CX1_nBkz.js +1 -0
  88. package/dist-embed-scene/{SkyLantern-BKxwl7Po.js → SkyLantern-Dp_B40X0.js} +1 -1
  89. package/dist-embed-scene/{TimelineTracks-Cjt0OHJS.js → TimelineTracks-iym9uOfD.js} +1 -1
  90. package/dist-embed-scene/{UfoMessages_en-A8Ku1B0Y.js → UfoMessages_en-CqQ-VdQJ.js} +1 -1
  91. package/dist-embed-scene/rr0-scene.mjs +401 -326
  92. package/dist-embed-scene/sightingSchema-9MogCcUd.js +1 -0
  93. package/dist-embed-sighting/{AdsbLolArchiveProvider-BfWrS1jn.js → AdsbLolArchiveProvider-CsuxO9wl.js} +1 -1
  94. package/dist-embed-sighting/AirshipEditor-DkDCkwGG.js +16 -0
  95. package/dist-embed-sighting/AirshipEditorMessages_en-CFafbbN8.js +1 -0
  96. package/dist-embed-sighting/AirshipEditorMessages_es-ht4kFQUD.js +1 -0
  97. package/dist-embed-sighting/AirshipEditorMessages_fr-Bhj6QKCL.js +1 -0
  98. package/dist-embed-sighting/AirshipEditorMessages_it-Cfl9mFjn.js +1 -0
  99. package/dist-embed-sighting/AirshipFlight-D8fH97A1.js +1 -0
  100. package/dist-embed-sighting/AirshipKindMessages_en-DzGapVTV.js +1 -0
  101. package/dist-embed-sighting/AirshipKindMessages_es-TE93uMSC.js +1 -0
  102. package/dist-embed-sighting/AirshipKindMessages_fr-BTXNsW5W.js +1 -0
  103. package/dist-embed-sighting/AirshipKindMessages_it-Cwa3MnJ-.js +1 -0
  104. package/dist-embed-sighting/AirshipParameterTexts_en-DZxqhSI3.js +1 -0
  105. package/dist-embed-sighting/AirshipParameterTexts_es-BDJUZOmr.js +1 -0
  106. package/dist-embed-sighting/AirshipParameterTexts_fr-Cj-D0Xb_.js +1 -0
  107. package/dist-embed-sighting/AirshipParameterTexts_it-BhC9cEbs.js +1 -0
  108. package/dist-embed-sighting/Aurora-DN89D94m.js +1 -0
  109. package/dist-embed-sighting/AuroraEditor-C4tY9hXK.js +8 -0
  110. package/dist-embed-sighting/AuroraEditorMessages_en-CpU3BS-B.js +1 -0
  111. package/dist-embed-sighting/AuroraEditorMessages_es-i8-psDHN.js +1 -0
  112. package/dist-embed-sighting/AuroraEditorMessages_fr-0DtPXXAs.js +1 -0
  113. package/dist-embed-sighting/AuroraEditorMessages_it-Dn2UHyk9.js +1 -0
  114. package/dist-embed-sighting/AuroraKindMessages_en-D_W4giJa.js +1 -0
  115. package/dist-embed-sighting/AuroraKindMessages_es-jJ5_ltZq.js +1 -0
  116. package/dist-embed-sighting/AuroraKindMessages_fr-6IzUVbRH.js +1 -0
  117. package/dist-embed-sighting/AuroraKindMessages_it-DcwuoMkp.js +1 -0
  118. package/dist-embed-sighting/AuroraParameterTexts_en-shkUd-dT.js +1 -0
  119. package/dist-embed-sighting/AuroraParameterTexts_es-CwGYyafK.js +1 -0
  120. package/dist-embed-sighting/AuroraParameterTexts_fr-CoJnicWs.js +1 -0
  121. package/dist-embed-sighting/AuroraParameterTexts_it-DHniBj_2.js +1 -0
  122. package/dist-embed-sighting/AuroraSimulation-C9hvCV0W.js +152 -0
  123. package/dist-embed-sighting/BalloonEditor-CaWwqWKK.js +24 -0
  124. package/dist-embed-sighting/BalloonEditorMessages_en-B2n2FutN.js +1 -0
  125. package/dist-embed-sighting/BalloonEditorMessages_es-BXppdrpF.js +1 -0
  126. package/dist-embed-sighting/BalloonEditorMessages_fr-BmUizmQy.js +1 -0
  127. package/dist-embed-sighting/BalloonEditorMessages_it-Dx0JODqK.js +1 -0
  128. package/dist-embed-sighting/BalloonFlight-MN_clHSJ.js +1 -0
  129. package/dist-embed-sighting/BalloonKindMessages_en-C6tZ-5gT.js +1 -0
  130. package/dist-embed-sighting/BalloonKindMessages_es-BfoEjhe1.js +1 -0
  131. package/dist-embed-sighting/BalloonKindMessages_fr-C3QJIuDJ.js +1 -0
  132. package/dist-embed-sighting/BalloonKindMessages_it-CkO7mqHp.js +1 -0
  133. package/dist-embed-sighting/BalloonParameterTexts_en-CHm_vRVx.js +1 -0
  134. package/dist-embed-sighting/BalloonParameterTexts_es-BYaljnsn.js +1 -0
  135. package/dist-embed-sighting/BalloonParameterTexts_fr-IhyPRhYG.js +1 -0
  136. package/dist-embed-sighting/BalloonParameterTexts_it-BqBPIfav.js +1 -0
  137. package/dist-embed-sighting/{BeamEditor--mMu1zwv.js → BeamEditor-DDzw-fB_.js} +2 -2
  138. package/dist-embed-sighting/BeamSystem-CsNwl_vM.js +1 -0
  139. package/dist-embed-sighting/{BirdEditor-DZ1Ybqeu.js → BirdEditor-BgNNcdhv.js} +1 -1
  140. package/dist-embed-sighting/{BirdFlock-BZScQXfR.js → BirdFlock-DBgkxsxp.js} +1 -1
  141. package/dist-embed-sighting/{CaseReportExport-CAuwP-Ec.js → CaseReportExport-DVVsc8gA.js} +1 -1
  142. package/dist-embed-sighting/DroneEditor-5nuq52EG.js +16 -0
  143. package/dist-embed-sighting/{DroneFlight-WxqILFs6.js → DroneFlight-sMbiog9j.js} +1 -1
  144. package/dist-embed-sighting/DroneParameters-DHeJ7KyU.js +1 -0
  145. package/dist-embed-sighting/{Flightradar24Provider-DJmvd2AL.js → Flightradar24Provider-p4a3_chL.js} +1 -1
  146. package/dist-embed-sighting/{GLTFLoader-FWVFviG5.js → GLTFLoader-fbsNsHlp.js} +1 -1
  147. package/dist-embed-sighting/InterviewMessages_en-BRmuWrAg.js +1 -0
  148. package/dist-embed-sighting/InterviewMessages_es-BTotimwY.js +1 -0
  149. package/dist-embed-sighting/InterviewMessages_fr-DBCdGB0r.js +1 -0
  150. package/dist-embed-sighting/InterviewMessages_it-B5EyMD-k.js +1 -0
  151. package/dist-embed-sighting/{LanternEditor-Do0kggi8.js → LanternEditor-Be5Io1J-.js} +1 -1
  152. package/dist-embed-sighting/{LaserBeam-CMO6tMze.js → LaserBeam-BRdhNOMZ.js} +1 -1
  153. package/dist-embed-sighting/{LaunchEditor-CZri7DN4.js → LaunchEditor-BGyLgkGS.js} +1 -1
  154. package/dist-embed-sighting/{LaunchPlume-DxDfUSlS.js → LaunchPlume-iiiayJ8I.js} +1 -1
  155. package/dist-embed-sighting/{LaunchSimulation-CTxbrEJw.js → LaunchSimulation-DvexI06i.js} +1 -1
  156. package/dist-embed-sighting/ModuleSession-ChJsGuTn.js +3 -0
  157. package/dist-embed-sighting/ModuleThree-whEZoXYF.js +1 -0
  158. package/dist-embed-sighting/{ParameterForm-B8nX9qW-.js → ParameterForm-DFHcolwG.js} +1 -1
  159. package/dist-embed-sighting/{ReentryEditor-BbhQfIPi.js → ReentryEditor-C6EJJf4l.js} +1 -1
  160. package/dist-embed-sighting/{ReentrySimulation-BHbW9YNO.js → ReentrySimulation-BFVBOWrm.js} +1 -1
  161. package/dist-embed-sighting/ReferenceSystem-zTvTqp5y.js +1 -0
  162. package/dist-embed-sighting/SearchlightEditor-By5Z3ef7.js +8 -0
  163. package/dist-embed-sighting/SearchlightEditorMessages_en-BWTcGHYC.js +1 -0
  164. package/dist-embed-sighting/SearchlightEditorMessages_es-PS4IIWFS.js +1 -0
  165. package/dist-embed-sighting/SearchlightEditorMessages_fr-CpaD2Il2.js +1 -0
  166. package/dist-embed-sighting/SearchlightEditorMessages_it-Br2IjowF.js +1 -0
  167. package/dist-embed-sighting/SearchlightKindMessages_en-CwJDAjsc.js +1 -0
  168. package/dist-embed-sighting/SearchlightKindMessages_es-CCCgZyTQ.js +1 -0
  169. package/dist-embed-sighting/SearchlightKindMessages_fr-DsxiUhmK.js +1 -0
  170. package/dist-embed-sighting/SearchlightKindMessages_it-CyWpJL5c.js +1 -0
  171. package/dist-embed-sighting/SearchlightParameterTexts_en-BwanYoMW.js +1 -0
  172. package/dist-embed-sighting/SearchlightParameterTexts_es-Cz_rg-Xe.js +1 -0
  173. package/dist-embed-sighting/SearchlightParameterTexts_fr-B7eZQIdG.js +1 -0
  174. package/dist-embed-sighting/SearchlightParameterTexts_it-BjhuOJre.js +1 -0
  175. package/dist-embed-sighting/SearchlightSystem-B2-MzG4x.js +1 -0
  176. package/dist-embed-sighting/{SightingMessages_en-sch1T1ki.js → SightingMessages_en-D3YVhgUj.js} +1 -1
  177. package/dist-embed-sighting/{SightingMessages_es-DemDEDtF.js → SightingMessages_es-ME6FeTp-.js} +1 -1
  178. package/dist-embed-sighting/{SightingMessages_fr-DskVkEj0.js → SightingMessages_fr-BgXYuIq4.js} +1 -1
  179. package/dist-embed-sighting/{SightingMessages_it-CrbYpdv8.js → SightingMessages_it-DcE90eAl.js} +1 -1
  180. package/dist-embed-sighting/{SkyLantern-COmog7pF.js → SkyLantern-yYihsrun.js} +1 -1
  181. package/dist-embed-sighting/{TimelineTracks-CYIJdyPF.js → TimelineTracks-Cw7W2uiK.js} +1 -1
  182. package/dist-embed-sighting/rr0-sighting.mjs +417 -342
  183. package/dist-embed-sighting/sightingSchema-9MogCcUd.js +1 -0
  184. package/dist-embed-sighting-editor/{AdsbLolArchiveProvider-BqEnqRP0.js → AdsbLolArchiveProvider-CWpyBqG3.js} +1 -1
  185. package/dist-embed-sighting-editor/AirshipEditor-BvnVNcF4.js +16 -0
  186. package/dist-embed-sighting-editor/AirshipEditorMessages_en-CFafbbN8.js +1 -0
  187. package/dist-embed-sighting-editor/AirshipEditorMessages_es-ht4kFQUD.js +1 -0
  188. package/dist-embed-sighting-editor/AirshipEditorMessages_fr-Bhj6QKCL.js +1 -0
  189. package/dist-embed-sighting-editor/AirshipEditorMessages_it-Cfl9mFjn.js +1 -0
  190. package/dist-embed-sighting-editor/AirshipFlight-CB1Quf68.js +1 -0
  191. package/dist-embed-sighting-editor/AirshipKindMessages_en-DzGapVTV.js +1 -0
  192. package/dist-embed-sighting-editor/AirshipKindMessages_es-TE93uMSC.js +1 -0
  193. package/dist-embed-sighting-editor/AirshipKindMessages_fr-BTXNsW5W.js +1 -0
  194. package/dist-embed-sighting-editor/AirshipKindMessages_it-Cwa3MnJ-.js +1 -0
  195. package/dist-embed-sighting-editor/AirshipParameterTexts_en-DZxqhSI3.js +1 -0
  196. package/dist-embed-sighting-editor/AirshipParameterTexts_es-BDJUZOmr.js +1 -0
  197. package/dist-embed-sighting-editor/AirshipParameterTexts_fr-Cj-D0Xb_.js +1 -0
  198. package/dist-embed-sighting-editor/AirshipParameterTexts_it-BhC9cEbs.js +1 -0
  199. package/dist-embed-sighting-editor/Aurora-BRXvgyRM.js +1 -0
  200. package/dist-embed-sighting-editor/AuroraEditor-JQ3kRqrq.js +8 -0
  201. package/dist-embed-sighting-editor/AuroraEditorMessages_en-CpU3BS-B.js +1 -0
  202. package/dist-embed-sighting-editor/AuroraEditorMessages_es-i8-psDHN.js +1 -0
  203. package/dist-embed-sighting-editor/AuroraEditorMessages_fr-0DtPXXAs.js +1 -0
  204. package/dist-embed-sighting-editor/AuroraEditorMessages_it-Dn2UHyk9.js +1 -0
  205. package/dist-embed-sighting-editor/AuroraKindMessages_en-D_W4giJa.js +1 -0
  206. package/dist-embed-sighting-editor/AuroraKindMessages_es-jJ5_ltZq.js +1 -0
  207. package/dist-embed-sighting-editor/AuroraKindMessages_fr-6IzUVbRH.js +1 -0
  208. package/dist-embed-sighting-editor/AuroraKindMessages_it-DcwuoMkp.js +1 -0
  209. package/dist-embed-sighting-editor/AuroraParameterTexts_en-shkUd-dT.js +1 -0
  210. package/dist-embed-sighting-editor/AuroraParameterTexts_es-CwGYyafK.js +1 -0
  211. package/dist-embed-sighting-editor/AuroraParameterTexts_fr-CoJnicWs.js +1 -0
  212. package/dist-embed-sighting-editor/AuroraParameterTexts_it-DHniBj_2.js +1 -0
  213. package/dist-embed-sighting-editor/AuroraSimulation-i64MFW2z.js +152 -0
  214. package/dist-embed-sighting-editor/{BallesterGuaspAssessor-BL_yzudf.js → BallesterGuaspAssessor-BaKKAdY3.js} +1 -1
  215. package/dist-embed-sighting-editor/BalloonEditor-C2oHClW7.js +24 -0
  216. package/dist-embed-sighting-editor/BalloonEditorMessages_en-B2n2FutN.js +1 -0
  217. package/dist-embed-sighting-editor/BalloonEditorMessages_es-BXppdrpF.js +1 -0
  218. package/dist-embed-sighting-editor/BalloonEditorMessages_fr-BmUizmQy.js +1 -0
  219. package/dist-embed-sighting-editor/BalloonEditorMessages_it-Dx0JODqK.js +1 -0
  220. package/dist-embed-sighting-editor/BalloonFlight-B9A6MoCj.js +1 -0
  221. package/dist-embed-sighting-editor/BalloonKindMessages_en-C6tZ-5gT.js +1 -0
  222. package/dist-embed-sighting-editor/BalloonKindMessages_es-BfoEjhe1.js +1 -0
  223. package/dist-embed-sighting-editor/BalloonKindMessages_fr-C3QJIuDJ.js +1 -0
  224. package/dist-embed-sighting-editor/BalloonKindMessages_it-CkO7mqHp.js +1 -0
  225. package/dist-embed-sighting-editor/BalloonParameterTexts_en-CHm_vRVx.js +1 -0
  226. package/dist-embed-sighting-editor/BalloonParameterTexts_es-BYaljnsn.js +1 -0
  227. package/dist-embed-sighting-editor/BalloonParameterTexts_fr-IhyPRhYG.js +1 -0
  228. package/dist-embed-sighting-editor/BalloonParameterTexts_it-BqBPIfav.js +1 -0
  229. package/dist-embed-sighting-editor/{BeamEditor-DA29mfqm.js → BeamEditor-CW7mTQjS.js} +1 -1
  230. package/dist-embed-sighting-editor/BeamSystem-CSfJjLCb.js +1 -0
  231. package/dist-embed-sighting-editor/BirdEditor-BdxhCoW9.js +16 -0
  232. package/dist-embed-sighting-editor/{BirdFlock-TI63ZAKZ.js → BirdFlock-DCbrukNp.js} +1 -1
  233. package/dist-embed-sighting-editor/{BodyEditor-COLTBHzX.js → BodyEditor-DE8ZQrqe.js} +1 -1
  234. package/dist-embed-sighting-editor/{CaseElement--JmpOsUW.js → CaseElement-C46wM-nU.js} +3 -3
  235. package/dist-embed-sighting-editor/{CaseReportExport-nFM_7lq4.js → CaseReportExport-UVrInf6H.js} +3 -3
  236. package/dist-embed-sighting-editor/{ContrailSystem-B0cQbaHc.js → ContrailSystem-CDSSxouG.js} +1 -1
  237. package/dist-embed-sighting-editor/{ControlPasses-BvS8haeS.js → ControlPasses-CsOVa-jq.js} +1 -1
  238. package/dist-embed-sighting-editor/{CoverageAssessor-DD1kSvun.js → CoverageAssessor-DWY_gJJX.js} +1 -1
  239. package/dist-embed-sighting-editor/DroneEditor-DgeuaHdb.js +16 -0
  240. package/dist-embed-sighting-editor/{DroneFlight-BpnBgJ9K.js → DroneFlight-CFztr-9j.js} +1 -1
  241. package/dist-embed-sighting-editor/DroneParameters-CHmDmRoC.js +1 -0
  242. package/dist-embed-sighting-editor/{Flightradar24Provider-D5OdIL0L.js → Flightradar24Provider-e6_3o9Jf.js} +1 -1
  243. package/dist-embed-sighting-editor/{GLTFLoader-DuqJVU4y.js → GLTFLoader-Df-r7_lf.js} +1 -1
  244. package/dist-embed-sighting-editor/{GenerativeKitMessages-B8L7U7gD.js → GenerativeKitMessages-CmqG-T2c.js} +1 -1
  245. package/dist-embed-sighting-editor/{GeoExportTexts-DrGdI2OF.js → GeoExportTexts-Wjc5YKlM.js} +1 -1
  246. package/dist-embed-sighting-editor/{GeoJsonExport-BZ-0v8fM.js → GeoJsonExport-BSPGzTbG.js} +1 -1
  247. package/dist-embed-sighting-editor/GeographicFigures-D_TfLkj9.js +1 -0
  248. package/dist-embed-sighting-editor/{HeadlightSystem-BejdfHqe.js → HeadlightSystem-DljWmzj5.js} +1 -1
  249. package/dist-embed-sighting-editor/{HynekAssessor-CwzpS7YP.js → HynekAssessor-BCDwoOI9.js} +1 -1
  250. package/dist-embed-sighting-editor/InterviewEditorElement-KHpgfy3k.js +277 -0
  251. package/dist-embed-sighting-editor/{InterviewElement-B3tm7y49.js → InterviewElement-DDa53uMq.js} +1 -1
  252. package/dist-embed-sighting-editor/InterviewMedia-CGVsMdje.js +1 -0
  253. package/dist-embed-sighting-editor/InterviewMessages_en-BRmuWrAg.js +1 -0
  254. package/dist-embed-sighting-editor/InterviewMessages_es-BTotimwY.js +1 -0
  255. package/dist-embed-sighting-editor/InterviewMessages_fr-DBCdGB0r.js +1 -0
  256. package/dist-embed-sighting-editor/InterviewMessages_it-B5EyMD-k.js +1 -0
  257. package/dist-embed-sighting-editor/{KmlExport-Bh4eTycx.js → KmlExport-B46AfaoJ.js} +1 -1
  258. package/dist-embed-sighting-editor/LanternEditor-CkbeitJh.js +24 -0
  259. package/dist-embed-sighting-editor/{LaserBeam-tqM2fwHf.js → LaserBeam-Ber-PT8j.js} +1 -1
  260. package/dist-embed-sighting-editor/LaunchEditor-BsvHahqK.js +22 -0
  261. package/dist-embed-sighting-editor/{LaunchPlume-DWyU0YyJ.js → LaunchPlume-BmPMeGMN.js} +1 -1
  262. package/dist-embed-sighting-editor/{LaunchSimulation-C_OJQoKC.js → LaunchSimulation-g-ETWhEH.js} +1 -1
  263. package/dist-embed-sighting-editor/ModelSource-DOUnBBhu.js +1 -0
  264. package/dist-embed-sighting-editor/{ModelThumbnails-C_8KCF7H.js → ModelThumbnails-TwG1snwZ.js} +1 -1
  265. package/dist-embed-sighting-editor/{ModelViewer-Cy-6IZBY.js → ModelViewer-Y_B6eM4z.js} +1 -1
  266. package/dist-embed-sighting-editor/ModuleConformance-CO1S9pa3.js +2 -0
  267. package/dist-embed-sighting-editor/ModuleSession-VLS0tjAb.js +3 -0
  268. package/dist-embed-sighting-editor/ModuleThree-DQ2dT7XW.js +1 -0
  269. package/dist-embed-sighting-editor/{ModulesPanelElement-hDjGLhRa.js → ModulesPanelElement--YQ0QtcW.js} +3 -3
  270. package/dist-embed-sighting-editor/{NearestApproach-D6tQo7dk.js → NearestApproach-C_8Uvp6i.js} +1 -1
  271. package/dist-embed-sighting-editor/PictureRegistration-Br0xjLE2.js +1 -0
  272. package/dist-embed-sighting-editor/{PoherAssessor-BTYpHucH.js → PoherAssessor-DtDcuhWK.js} +1 -1
  273. package/dist-embed-sighting-editor/QuestionnaireFeed-CvLtuLIH.js +1 -0
  274. package/dist-embed-sighting-editor/QuestionnaireForm-DA6LPvBt.js +1 -0
  275. package/dist-embed-sighting-editor/QuestionnaireImport-BYj5QoJS.js +5 -0
  276. package/dist-embed-sighting-editor/QuestionnaireSeal-DpZYUhnf.js +1 -0
  277. package/dist-embed-sighting-editor/{RailwaySystem-D_8D64Bu.js → RailwaySystem-eT-ZKfZl.js} +1 -1
  278. package/dist-embed-sighting-editor/ReentryEditor-CW8H7KaA.js +28 -0
  279. package/dist-embed-sighting-editor/{ReentrySimulation-Bom073AV.js → ReentrySimulation-DVl__RjO.js} +1 -1
  280. package/dist-embed-sighting-editor/ReferenceSystem-DxVYO7g9.js +1 -0
  281. package/dist-embed-sighting-editor/{RoadMarkings-BGK7ToZP.js → RoadMarkings-DJraHdS6.js} +1 -1
  282. package/dist-embed-sighting-editor/ScenarioReadings-BYqlpLo8.js +1 -0
  283. package/dist-embed-sighting-editor/ScenarioSweep-Ddtuo_Af.js +1 -0
  284. package/dist-embed-sighting-editor/ScenarioSweepMessages_en-Bf4BscDU.js +1 -0
  285. package/dist-embed-sighting-editor/ScenarioSweepMessages_es-CBHQfuRB.js +1 -0
  286. package/dist-embed-sighting-editor/ScenarioSweepMessages_fr-DlPsO6oI.js +1 -0
  287. package/dist-embed-sighting-editor/ScenarioSweepMessages_it-DANW3_la.js +1 -0
  288. package/dist-embed-sighting-editor/{SceneNames_en-9zK_E4jO.js → SceneNames_en-p5YNYZhA.js} +1 -1
  289. package/dist-embed-sighting-editor/{SceneNames_es-B6FtSh6r.js → SceneNames_es-DlMqYLL9.js} +1 -1
  290. package/dist-embed-sighting-editor/{SceneNames_fr-lUEwaxUk.js → SceneNames_fr-lFA7hY3x.js} +1 -1
  291. package/dist-embed-sighting-editor/{SceneNames_it-ChU8RE2E.js → SceneNames_it-CDwvX1Nw.js} +1 -1
  292. package/dist-embed-sighting-editor/SearchlightEditor-BSI8hB1V.js +8 -0
  293. package/dist-embed-sighting-editor/SearchlightEditorMessages_en-BWTcGHYC.js +1 -0
  294. package/dist-embed-sighting-editor/SearchlightEditorMessages_es-PS4IIWFS.js +1 -0
  295. package/dist-embed-sighting-editor/SearchlightEditorMessages_fr-CpaD2Il2.js +1 -0
  296. package/dist-embed-sighting-editor/SearchlightEditorMessages_it-Br2IjowF.js +1 -0
  297. package/dist-embed-sighting-editor/SearchlightKindMessages_en-CwJDAjsc.js +1 -0
  298. package/dist-embed-sighting-editor/SearchlightKindMessages_es-CCCgZyTQ.js +1 -0
  299. package/dist-embed-sighting-editor/SearchlightKindMessages_fr-DsxiUhmK.js +1 -0
  300. package/dist-embed-sighting-editor/SearchlightKindMessages_it-CyWpJL5c.js +1 -0
  301. package/dist-embed-sighting-editor/SearchlightParameterTexts_en-BwanYoMW.js +1 -0
  302. package/dist-embed-sighting-editor/SearchlightParameterTexts_es-Cz_rg-Xe.js +1 -0
  303. package/dist-embed-sighting-editor/SearchlightParameterTexts_fr-B7eZQIdG.js +1 -0
  304. package/dist-embed-sighting-editor/SearchlightParameterTexts_it-BjhuOJre.js +1 -0
  305. package/dist-embed-sighting-editor/SearchlightSystem-DHfVi2np.js +1 -0
  306. package/{dist-embed-ufoathome/SightingEditorMessages_en-CtZXoBSS.js → dist-embed-sighting-editor/SightingEditorMessages_en-k7_ua2OM.js} +1 -1
  307. package/dist-embed-sighting-editor/{SightingEditorMessages_es-CKXlDIja.js → SightingEditorMessages_es-Drqbbr5_.js} +1 -1
  308. package/{dist-embed-ufoathome/SightingEditorMessages_fr-DjP6vAKo.js → dist-embed-sighting-editor/SightingEditorMessages_fr-B_K5hsuV.js} +1 -1
  309. package/{dist-embed-ufoathome/SightingEditorMessages_it-CxtFzCzo.js → dist-embed-sighting-editor/SightingEditorMessages_it-QCLg1d7x.js} +1 -1
  310. package/dist-embed-sighting-editor/{SightingElement-DsR4mBCh.js → SightingElement-T0x4j9Zt.js} +4 -4
  311. package/dist-embed-sighting-editor/{SightingFileEditor-0VZmtiOX.js → SightingFileEditor-Du3A9uZm.js} +1 -1
  312. package/dist-embed-sighting-editor/{SightingMessages_en-CYzanHjT.js → SightingMessages_en-CzICxNU3.js} +1 -1
  313. package/dist-embed-sighting-editor/{SightingMessages_es-hjvESK6f.js → SightingMessages_es-CiVFZlgA.js} +1 -1
  314. package/dist-embed-sighting-editor/{SightingMessages_fr-BtfWbIP7.js → SightingMessages_fr-nopOVDa1.js} +1 -1
  315. package/dist-embed-sighting-editor/{SightingMessages_it-Bqm4pewZ.js → SightingMessages_it-Cu0nnPts.js} +1 -1
  316. package/dist-embed-sighting-editor/{SkyLantern-BDpxvmY3.js → SkyLantern-Dl4yl-lc.js} +1 -1
  317. package/dist-embed-sighting-editor/{TraceSystem-B1mmypS3.js → TraceSystem-Dbu_bgfE.js} +2 -2
  318. package/dist-embed-sighting-editor/{UfoMessages_en-JeMK-39o.js → UfoMessages_en-BAuHAGgq.js} +1 -1
  319. package/dist-embed-sighting-editor/{VideoButton-Kxg7pF1Y.js → VideoButton-C8eRmv7A.js} +1 -1
  320. package/dist-embed-sighting-editor/{WaterSystem-mZ-f2CcD.js → WaterSystem-DpJCe_2Q.js} +2 -2
  321. package/dist-embed-sighting-editor/angular-size-CxoysZle.png +0 -0
  322. package/dist-embed-sighting-editor/azimuth-CvjiPmz0.png +0 -0
  323. package/dist-embed-sighting-editor/caseSchema-BEJTs2Ld.js +1 -0
  324. package/dist-embed-sighting-editor/elevation-DPr5S6Jt.png +0 -0
  325. package/dist-embed-sighting-editor/geipan-qt-2025-j-yGY7EN.js +7 -0
  326. package/dist-embed-sighting-editor/{interviewImport-BlSMFEw_.js → interviewImport-zzDGCbXd.js} +1 -1
  327. package/dist-embed-sighting-editor/{interviewJson-CsMHIcZ-.js → interviewJson-DngUPqK8.js} +1 -1
  328. package/dist-embed-sighting-editor/interviewSchema-DRWvRSL2.js +1 -0
  329. package/dist-embed-sighting-editor/protractor-DyE30B87.png +0 -0
  330. package/dist-embed-sighting-editor/rr0-sighting-editor.mjs +543 -443
  331. package/dist-embed-sighting-editor/sightingSchema-9MogCcUd.js +1 -0
  332. package/dist-embed-sighting-editor/{surroundingsSources-z7680fTA.js → surroundingsSources-lvh4Rw5C.js} +1 -1
  333. package/dist-embed-sighting-editor/{trafficRuntime-CvK_m6bC.js → trafficRuntime-Drx7CE9H.js} +1 -1
  334. package/dist-embed-ufoathome/AdsbLolArchiveProvider-CqedGYi5.js +1 -0
  335. package/dist-embed-ufoathome/AirshipEditor-CBSrQM3J.js +16 -0
  336. package/dist-embed-ufoathome/AirshipEditorMessages_en-CFafbbN8.js +1 -0
  337. package/dist-embed-ufoathome/AirshipEditorMessages_es-ht4kFQUD.js +1 -0
  338. package/dist-embed-ufoathome/AirshipEditorMessages_fr-Bhj6QKCL.js +1 -0
  339. package/dist-embed-ufoathome/AirshipEditorMessages_it-Cfl9mFjn.js +1 -0
  340. package/dist-embed-ufoathome/AirshipFlight-Dzpw8HRM.js +1 -0
  341. package/dist-embed-ufoathome/AirshipKindMessages_en-DzGapVTV.js +1 -0
  342. package/dist-embed-ufoathome/AirshipKindMessages_es-TE93uMSC.js +1 -0
  343. package/dist-embed-ufoathome/AirshipKindMessages_fr-BTXNsW5W.js +1 -0
  344. package/dist-embed-ufoathome/AirshipKindMessages_it-Cwa3MnJ-.js +1 -0
  345. package/dist-embed-ufoathome/AirshipParameterTexts_en-DZxqhSI3.js +1 -0
  346. package/dist-embed-ufoathome/AirshipParameterTexts_es-BDJUZOmr.js +1 -0
  347. package/dist-embed-ufoathome/AirshipParameterTexts_fr-Cj-D0Xb_.js +1 -0
  348. package/dist-embed-ufoathome/AirshipParameterTexts_it-BhC9cEbs.js +1 -0
  349. package/dist-embed-ufoathome/Aurora-CpZx9hQ3.js +1 -0
  350. package/dist-embed-ufoathome/AuroraEditor-D2v8sWVE.js +8 -0
  351. package/dist-embed-ufoathome/AuroraEditorMessages_en-CpU3BS-B.js +1 -0
  352. package/dist-embed-ufoathome/AuroraEditorMessages_es-i8-psDHN.js +1 -0
  353. package/dist-embed-ufoathome/AuroraEditorMessages_fr-0DtPXXAs.js +1 -0
  354. package/dist-embed-ufoathome/AuroraEditorMessages_it-Dn2UHyk9.js +1 -0
  355. package/dist-embed-ufoathome/AuroraKindMessages_en-D_W4giJa.js +1 -0
  356. package/dist-embed-ufoathome/AuroraKindMessages_es-jJ5_ltZq.js +1 -0
  357. package/dist-embed-ufoathome/AuroraKindMessages_fr-6IzUVbRH.js +1 -0
  358. package/dist-embed-ufoathome/AuroraKindMessages_it-DcwuoMkp.js +1 -0
  359. package/dist-embed-ufoathome/AuroraParameterTexts_en-shkUd-dT.js +1 -0
  360. package/dist-embed-ufoathome/AuroraParameterTexts_es-CwGYyafK.js +1 -0
  361. package/dist-embed-ufoathome/AuroraParameterTexts_fr-CoJnicWs.js +1 -0
  362. package/dist-embed-ufoathome/AuroraParameterTexts_it-DHniBj_2.js +1 -0
  363. package/dist-embed-ufoathome/AuroraSimulation-DdSP66LD.js +152 -0
  364. package/dist-embed-ufoathome/BallesterGuaspAssessor-C4IktJ1l.js +1 -0
  365. package/dist-embed-ufoathome/BalloonEditor-dCIjTsIz.js +24 -0
  366. package/dist-embed-ufoathome/BalloonEditorMessages_en-B2n2FutN.js +1 -0
  367. package/dist-embed-ufoathome/BalloonEditorMessages_es-BXppdrpF.js +1 -0
  368. package/dist-embed-ufoathome/BalloonEditorMessages_fr-BmUizmQy.js +1 -0
  369. package/dist-embed-ufoathome/BalloonEditorMessages_it-Dx0JODqK.js +1 -0
  370. package/dist-embed-ufoathome/BalloonFlight-CztT6ddg.js +1 -0
  371. package/dist-embed-ufoathome/BalloonKindMessages_en-C6tZ-5gT.js +1 -0
  372. package/dist-embed-ufoathome/BalloonKindMessages_es-BfoEjhe1.js +1 -0
  373. package/dist-embed-ufoathome/BalloonKindMessages_fr-C3QJIuDJ.js +1 -0
  374. package/dist-embed-ufoathome/BalloonKindMessages_it-CkO7mqHp.js +1 -0
  375. package/dist-embed-ufoathome/BalloonParameterTexts_en-CHm_vRVx.js +1 -0
  376. package/dist-embed-ufoathome/BalloonParameterTexts_es-BYaljnsn.js +1 -0
  377. package/dist-embed-ufoathome/BalloonParameterTexts_fr-IhyPRhYG.js +1 -0
  378. package/dist-embed-ufoathome/BalloonParameterTexts_it-BqBPIfav.js +1 -0
  379. package/dist-embed-ufoathome/{BeamEditor-CFYAfywp.js → BeamEditor-CuW3LVO-.js} +2 -2
  380. package/dist-embed-ufoathome/BeamSystem-BPEYuCF4.js +1 -0
  381. package/dist-embed-ufoathome/BirdEditor-Dk3huwHa.js +16 -0
  382. package/dist-embed-ufoathome/{BodyEditor-B96fap0d.js → BodyEditor-COMX-T65.js} +1 -1
  383. package/dist-embed-ufoathome/CaseEditorElement-C5BHP8jT.js +3173 -0
  384. package/dist-embed-ufoathome/{CaseElement-BFDRYL5v.js → CaseElement-CIZvyRVi.js} +3 -3
  385. package/dist-embed-ufoathome/{CaseReportExport-VrulN0VG.js → CaseReportExport-BFbswUIB.js} +3 -3
  386. package/dist-embed-ufoathome/{ColumnResize-DD0wwlp2.js → ColumnResize-Dh6Xyspd.js} +6 -6
  387. package/dist-embed-ufoathome/ContrailSystem-D2AR5Zgy.js +1 -0
  388. package/dist-embed-ufoathome/ControlPasses-CnL1GmT-.js +29 -0
  389. package/dist-embed-ufoathome/CoverageAssessor-CiqUEJkN.js +1 -0
  390. package/dist-embed-ufoathome/DroneEditor-D60uhSHO.js +16 -0
  391. package/dist-embed-ufoathome/DroneParameters-CfTAaLCT.js +1 -0
  392. package/dist-embed-ufoathome/Flightradar24Provider-_tNmWf11.js +1 -0
  393. package/dist-embed-ufoathome/GLTFLoader-BLk8prLt.js +1 -0
  394. package/dist-embed-ufoathome/GeoJsonExport-DkPKk-7q.js +2 -0
  395. package/dist-embed-ufoathome/GeoProjection-DvqDbRIx.js +1 -0
  396. package/dist-embed-ufoathome/{GeographicFigures-Ds8kfyn7.js → GeographicFigures-l-PfHdSR.js} +1 -1
  397. package/dist-embed-ufoathome/HeadlightSystem-D5-78PFB.js +34 -0
  398. package/dist-embed-ufoathome/HynekAssessor-BhnvqsYz.js +1 -0
  399. package/dist-embed-ufoathome/InterviewEditorElement-iw2lnwx8.js +277 -0
  400. package/dist-embed-ufoathome/{InterviewElement-BrlawcDm.js → InterviewElement-CuRmQ0d3.js} +2 -2
  401. package/dist-embed-ufoathome/InterviewMedia-CGVsMdje.js +1 -0
  402. package/dist-embed-ufoathome/InterviewMessages_en-BRmuWrAg.js +1 -0
  403. package/dist-embed-ufoathome/InterviewMessages_es-BTotimwY.js +1 -0
  404. package/dist-embed-ufoathome/InterviewMessages_fr-DBCdGB0r.js +1 -0
  405. package/dist-embed-ufoathome/InterviewMessages_it-B5EyMD-k.js +1 -0
  406. package/dist-embed-ufoathome/KmlExport-BUl3gOrw.js +19 -0
  407. package/dist-embed-ufoathome/LanternEditor-BapUZdog.js +24 -0
  408. package/dist-embed-ufoathome/{LaserBeam-Ced8VujI.js → LaserBeam-C7glTvQN.js} +1 -1
  409. package/dist-embed-ufoathome/LaunchEditor-DvudtAzp.js +22 -0
  410. package/dist-embed-ufoathome/{LaunchPlume-DdeLDyDg.js → LaunchPlume-CrDBzsQe.js} +1 -1
  411. package/dist-embed-ufoathome/LaunchSimulation-DyOA4lPb.js +1 -0
  412. package/dist-embed-ufoathome/ModelSource-CoT4mxTx.js +1 -0
  413. package/dist-embed-ufoathome/ModelThumbnails-t59SZ3Vn.js +1 -0
  414. package/dist-embed-ufoathome/ModelViewer-DEdruEtl.js +1 -0
  415. package/dist-embed-ufoathome/ModuleConformance-DYDAaJJQ.js +2 -0
  416. package/dist-embed-ufoathome/ModuleSession-BKDWGSEo.js +3 -0
  417. package/dist-embed-ufoathome/ModuleThree-D18Rh2Nj.js +1 -0
  418. package/dist-embed-ufoathome/{ModulesPanelElement-Bio6lzC6.js → ModulesPanelElement-N-ccpGxl.js} +3 -3
  419. package/dist-embed-ufoathome/{NearestApproach-DAiByBN2.js → NearestApproach-Do15yfeg.js} +1 -1
  420. package/dist-embed-ufoathome/{ParameterForm-DcVFxrcO.js → ParameterForm-XbqxCLRn.js} +1 -1
  421. package/dist-embed-ufoathome/PictureRegistration-BJeiCK8A.js +1 -0
  422. package/dist-embed-ufoathome/PoherAssessor-Cs8-ZBge.js +1 -0
  423. package/dist-embed-ufoathome/QuestionnaireFeed-BfvRSPoo.js +1 -0
  424. package/dist-embed-ufoathome/QuestionnaireForm-ByFmq67M.js +1 -0
  425. package/dist-embed-ufoathome/QuestionnaireImport-Cx1dQiha.js +5 -0
  426. package/dist-embed-ufoathome/QuestionnaireSeal-DpZYUhnf.js +1 -0
  427. package/dist-embed-ufoathome/RailwaySystem-KlBj8mLP.js +41 -0
  428. package/dist-embed-ufoathome/ReentryEditor-CJUFkVFO.js +28 -0
  429. package/dist-embed-ufoathome/ReentrySimulation-B5QcdOTq.js +1 -0
  430. package/dist-embed-ufoathome/ReferenceSystem-DyzOUClN.js +1 -0
  431. package/dist-embed-ufoathome/RoadMarkings-DKUNImjj.js +1 -0
  432. package/dist-embed-ufoathome/SaidPosition-OJEYhVKN.js +4 -0
  433. package/dist-embed-ufoathome/ScenarioReadings-CfZehU_P.js +1 -0
  434. package/dist-embed-ufoathome/ScenarioSweep-CDumnmq2.js +1 -0
  435. package/dist-embed-ufoathome/ScenarioSweepMessages_en-Bf4BscDU.js +1 -0
  436. package/dist-embed-ufoathome/ScenarioSweepMessages_es-CBHQfuRB.js +1 -0
  437. package/dist-embed-ufoathome/ScenarioSweepMessages_fr-DlPsO6oI.js +1 -0
  438. package/dist-embed-ufoathome/ScenarioSweepMessages_it-DANW3_la.js +1 -0
  439. package/dist-embed-ufoathome/SearchlightEditor-CPDNpfNC.js +8 -0
  440. package/dist-embed-ufoathome/SearchlightEditorMessages_en-BWTcGHYC.js +1 -0
  441. package/dist-embed-ufoathome/SearchlightEditorMessages_es-PS4IIWFS.js +1 -0
  442. package/dist-embed-ufoathome/SearchlightEditorMessages_fr-CpaD2Il2.js +1 -0
  443. package/dist-embed-ufoathome/SearchlightEditorMessages_it-Br2IjowF.js +1 -0
  444. package/dist-embed-ufoathome/SearchlightKindMessages_en-CwJDAjsc.js +1 -0
  445. package/dist-embed-ufoathome/SearchlightKindMessages_es-CCCgZyTQ.js +1 -0
  446. package/dist-embed-ufoathome/SearchlightKindMessages_fr-DsxiUhmK.js +1 -0
  447. package/dist-embed-ufoathome/SearchlightKindMessages_it-CyWpJL5c.js +1 -0
  448. package/dist-embed-ufoathome/SearchlightParameterTexts_en-BwanYoMW.js +1 -0
  449. package/dist-embed-ufoathome/SearchlightParameterTexts_es-Cz_rg-Xe.js +1 -0
  450. package/dist-embed-ufoathome/SearchlightParameterTexts_fr-B7eZQIdG.js +1 -0
  451. package/dist-embed-ufoathome/SearchlightParameterTexts_it-BjhuOJre.js +1 -0
  452. package/dist-embed-ufoathome/SearchlightSystem-Ca0rZcXv.js +1 -0
  453. package/dist-embed-ufoathome/ShareDialogElement-CBeU9ChH.js +5182 -0
  454. package/dist-embed-ufoathome/Sighting-B7bsiTIQ.js +1 -0
  455. package/{dist-embed-sighting-editor/SightingEditorMessages_en-CtZXoBSS.js → dist-embed-ufoathome/SightingEditorMessages_en-k7_ua2OM.js} +1 -1
  456. package/dist-embed-ufoathome/{SightingEditorMessages_es-CKXlDIja.js → SightingEditorMessages_es-Drqbbr5_.js} +1 -1
  457. package/{dist-embed-sighting-editor/SightingEditorMessages_fr-DjP6vAKo.js → dist-embed-ufoathome/SightingEditorMessages_fr-B_K5hsuV.js} +1 -1
  458. package/{dist-embed-sighting-editor/SightingEditorMessages_it-CxtFzCzo.js → dist-embed-ufoathome/SightingEditorMessages_it-QCLg1d7x.js} +1 -1
  459. package/dist-embed-ufoathome/{SightingElement-DTADTDwh.js → SightingElement-BveOM4nF.js} +4 -4
  460. package/dist-embed-ufoathome/{SightingFileEditor-Cllslp2u.js → SightingFileEditor-DS1DRU2p.js} +1 -1
  461. package/dist-embed-ufoathome/{SightingMessages_en-CYzanHjT.js → SightingMessages_en-CzICxNU3.js} +1 -1
  462. package/dist-embed-ufoathome/{SightingMessages_es-hjvESK6f.js → SightingMessages_es-CiVFZlgA.js} +1 -1
  463. package/dist-embed-ufoathome/{SightingMessages_fr-BtfWbIP7.js → SightingMessages_fr-nopOVDa1.js} +1 -1
  464. package/dist-embed-ufoathome/{SightingMessages_it-Bqm4pewZ.js → SightingMessages_it-Cu0nnPts.js} +1 -1
  465. package/dist-embed-ufoathome/{TimelineTracks-BgZmkKhn.js → TimelineTracks-Daaqw9ly.js} +1 -1
  466. package/dist-embed-ufoathome/{TraceSystem-BcWYbjQM.js → TraceSystem-CoHX04R3.js} +2 -2
  467. package/dist-embed-ufoathome/{UfoAtHomeMessages_en-dlx_C679.js → UfoAtHomeMessages_en-BK2qJyZN.js} +1 -1
  468. package/dist-embed-ufoathome/{UfoAtHomeMessages_es-uLOvtAD0.js → UfoAtHomeMessages_es-B1-NDCau.js} +1 -1
  469. package/dist-embed-ufoathome/{UfoAtHomeMessages_fr-LR76-eHS.js → UfoAtHomeMessages_fr-BTG047qo.js} +1 -1
  470. package/dist-embed-ufoathome/{UfoAtHomeMessages_it-CQl4uTnG.js → UfoAtHomeMessages_it-Ryxv4HNU.js} +1 -1
  471. package/dist-embed-ufoathome/VideoButton-DNQmWtfv.js +1 -0
  472. package/dist-embed-ufoathome/WaterSystem-BNxlYNtW.js +19 -0
  473. package/dist-embed-ufoathome/angular-size-CxoysZle.png +0 -0
  474. package/dist-embed-ufoathome/azimuth-CvjiPmz0.png +0 -0
  475. package/dist-embed-ufoathome/caseSchema-BEJTs2Ld.js +1 -0
  476. package/dist-embed-ufoathome/elevation-DPr5S6Jt.png +0 -0
  477. package/dist-embed-ufoathome/geipan-qt-2025-j-yGY7EN.js +7 -0
  478. package/dist-embed-ufoathome/interviewSchema-DRWvRSL2.js +1 -0
  479. package/dist-embed-ufoathome/protractor-DyE30B87.png +0 -0
  480. package/dist-embed-ufoathome/rr0-ufoathome.mjs +27 -17
  481. package/dist-embed-ufoathome/sightingSchema-9MogCcUd.js +1 -0
  482. package/dist-embed-ufoathome/surroundingsSources-C823p3dG.js +1 -0
  483. package/dist-embed-ufoathome/three.module-CbaHqYFq.js +4116 -0
  484. package/dist-embed-ufoathome/trafficRuntime-DtXb9B2f.js +2 -0
  485. package/dist-embed-ufoathome/{upperAirSources-BGuLpdwu.js → upperAirSources-BU0pD84c.js} +1 -1
  486. package/dist-embed-ufoathome/xyzImageryRaster-Dhxs0B26.js +1 -0
  487. package/package.json +4 -2
  488. package/dist-embed-interview/InterviewMessages_en-ru7GkZlQ.js +0 -1
  489. package/dist-embed-interview/InterviewMessages_es-DkJurNrG.js +0 -1
  490. package/dist-embed-interview/InterviewMessages_fr-DAYgf8Ms.js +0 -1
  491. package/dist-embed-interview/InterviewMessages_it-6lenkmSg.js +0 -1
  492. package/dist-embed-scene/BeamSystem-CaNus1WN.js +0 -1
  493. package/dist-embed-scene/DroneEditor-BDDLiZPp.js +0 -16
  494. package/dist-embed-scene/ModuleSession-Hj3QwLuw.js +0 -3
  495. package/dist-embed-scene/ModuleThree-D1uz5JiH.js +0 -1
  496. package/dist-embed-scene/ReferenceSystem-B6FHr1Pb.js +0 -1
  497. package/dist-embed-scene/sightingSchema-CgwoRMl-.js +0 -1
  498. package/dist-embed-sighting/BeamSystem-Cqe7QaN4.js +0 -1
  499. package/dist-embed-sighting/DroneEditor-Bo19kUte.js +0 -16
  500. package/dist-embed-sighting/InterviewMessages_en-ru7GkZlQ.js +0 -1
  501. package/dist-embed-sighting/InterviewMessages_es-DkJurNrG.js +0 -1
  502. package/dist-embed-sighting/InterviewMessages_fr-DAYgf8Ms.js +0 -1
  503. package/dist-embed-sighting/InterviewMessages_it-6lenkmSg.js +0 -1
  504. package/dist-embed-sighting/ModuleSession-BCtFMDJY.js +0 -3
  505. package/dist-embed-sighting/ModuleThree-DPVHqcup.js +0 -1
  506. package/dist-embed-sighting/ReferenceSystem-DCSdp9Bq.js +0 -1
  507. package/dist-embed-sighting/sightingSchema-CgwoRMl-.js +0 -1
  508. package/dist-embed-sighting-editor/BeamSystem-DYohqXlF.js +0 -1
  509. package/dist-embed-sighting-editor/BirdEditor-CAoRqqRV.js +0 -16
  510. package/dist-embed-sighting-editor/DroneEditor-BRB2-dAw.js +0 -16
  511. package/dist-embed-sighting-editor/GeographicFigures-DqhWddS9.js +0 -1
  512. package/dist-embed-sighting-editor/InterviewEditorElement-DbVrB3-g.js +0 -242
  513. package/dist-embed-sighting-editor/InterviewMedia-CvAxC62V.js +0 -1
  514. package/dist-embed-sighting-editor/InterviewMessages_en-ru7GkZlQ.js +0 -1
  515. package/dist-embed-sighting-editor/InterviewMessages_es-DkJurNrG.js +0 -1
  516. package/dist-embed-sighting-editor/InterviewMessages_fr-DAYgf8Ms.js +0 -1
  517. package/dist-embed-sighting-editor/InterviewMessages_it-6lenkmSg.js +0 -1
  518. package/dist-embed-sighting-editor/LanternEditor-BnXAwLuQ.js +0 -24
  519. package/dist-embed-sighting-editor/LaunchEditor-vwecAGwH.js +0 -22
  520. package/dist-embed-sighting-editor/ModelSource-D1Wt6VYS.js +0 -1
  521. package/dist-embed-sighting-editor/ModuleConformance-DYi4XZdB.js +0 -2
  522. package/dist-embed-sighting-editor/ModuleSession-BDbaoiCf.js +0 -3
  523. package/dist-embed-sighting-editor/ModuleThree-DRf9SEr_.js +0 -1
  524. package/dist-embed-sighting-editor/PictureRegistration-DBBH_E6I.js +0 -1
  525. package/dist-embed-sighting-editor/ReentryEditor-D7HxkvKP.js +0 -28
  526. package/dist-embed-sighting-editor/ReferenceSystem-D_eueNAb.js +0 -1
  527. package/dist-embed-sighting-editor/caseSchema-ChUB1-9j.js +0 -1
  528. package/dist-embed-sighting-editor/interviewSchema-Dk0AWHwc.js +0 -1
  529. package/dist-embed-sighting-editor/sightingSchema-CgwoRMl-.js +0 -1
  530. package/dist-embed-ufoathome/AdsbLolArchiveProvider-B9MGq-iQ.js +0 -1
  531. package/dist-embed-ufoathome/BallesterGuaspAssessor-BehuINgj.js +0 -1
  532. package/dist-embed-ufoathome/BeamSystem-Bt5Dnpzy.js +0 -1
  533. package/dist-embed-ufoathome/BirdEditor-07sg3Pt0.js +0 -16
  534. package/dist-embed-ufoathome/CaseEditorElement-D-RKShTH.js +0 -3148
  535. package/dist-embed-ufoathome/ContrailSystem-BKeTHlcZ.js +0 -1
  536. package/dist-embed-ufoathome/ControlPasses-D3vc-NmG.js +0 -29
  537. package/dist-embed-ufoathome/CoverageAssessor-Be38W7Im.js +0 -1
  538. package/dist-embed-ufoathome/DroneEditor-ByVlCauS.js +0 -16
  539. package/dist-embed-ufoathome/Flightradar24Provider-DdPjGVJg.js +0 -1
  540. package/dist-embed-ufoathome/GLTFLoader-D1_vI_Fe.js +0 -1
  541. package/dist-embed-ufoathome/GeoJsonExport-B2qogWLj.js +0 -2
  542. package/dist-embed-ufoathome/HeadlightSystem-BdhHphIq.js +0 -34
  543. package/dist-embed-ufoathome/HynekAssessor-MqnQfg3F.js +0 -1
  544. package/dist-embed-ufoathome/InterviewEditorElement-DjQuGytO.js +0 -242
  545. package/dist-embed-ufoathome/InterviewMedia-CvAxC62V.js +0 -1
  546. package/dist-embed-ufoathome/InterviewMessages_en-ru7GkZlQ.js +0 -1
  547. package/dist-embed-ufoathome/InterviewMessages_es-DkJurNrG.js +0 -1
  548. package/dist-embed-ufoathome/InterviewMessages_fr-DAYgf8Ms.js +0 -1
  549. package/dist-embed-ufoathome/InterviewMessages_it-6lenkmSg.js +0 -1
  550. package/dist-embed-ufoathome/KmlExport-AzofE76s.js +0 -19
  551. package/dist-embed-ufoathome/LanternEditor-BRqgj1S6.js +0 -24
  552. package/dist-embed-ufoathome/LaunchEditor-D-5OJi90.js +0 -22
  553. package/dist-embed-ufoathome/LaunchSimulation-BeCHjgE5.js +0 -1
  554. package/dist-embed-ufoathome/ModelSource-LY5T91ay.js +0 -1
  555. package/dist-embed-ufoathome/ModelThumbnails-C25E4WMl.js +0 -1
  556. package/dist-embed-ufoathome/ModelViewer-D6JaOQS7.js +0 -1
  557. package/dist-embed-ufoathome/ModuleConformance-DGjaEwAM.js +0 -2
  558. package/dist-embed-ufoathome/ModuleSession-pXE1aOJF.js +0 -3
  559. package/dist-embed-ufoathome/ModuleThree-xQDeVLs0.js +0 -1
  560. package/dist-embed-ufoathome/PictureRegistration-Dbr0O7NF.js +0 -1
  561. package/dist-embed-ufoathome/PoherAssessor-C7NN73NP.js +0 -1
  562. package/dist-embed-ufoathome/RailwaySystem-D3u3j_tw.js +0 -41
  563. package/dist-embed-ufoathome/ReentryEditor-s-AkSgbU.js +0 -28
  564. package/dist-embed-ufoathome/ReentrySimulation-2UWwXU7K.js +0 -1
  565. package/dist-embed-ufoathome/ReferenceSystem-BhEFpIis.js +0 -1
  566. package/dist-embed-ufoathome/RoadMarkings-DDRxawvf.js +0 -1
  567. package/dist-embed-ufoathome/SaidPosition-CXZLm-ck.js +0 -4
  568. package/dist-embed-ufoathome/ShareDialogElement-C9Uiwt0F.js +0 -9222
  569. package/dist-embed-ufoathome/Sighting-Ch4eiBNK.js +0 -1
  570. package/dist-embed-ufoathome/VideoButton-CgfBskVu.js +0 -1
  571. package/dist-embed-ufoathome/WaterSystem-BsGtTimO.js +0 -19
  572. package/dist-embed-ufoathome/caseSchema-ChUB1-9j.js +0 -1
  573. package/dist-embed-ufoathome/interviewSchema-Dk0AWHwc.js +0 -1
  574. package/dist-embed-ufoathome/sightingSchema-CgwoRMl-.js +0 -1
  575. package/dist-embed-ufoathome/surroundingsSources-B--F7TR5.js +0 -1
  576. package/dist-embed-ufoathome/trafficRuntime-B97u9ZY_.js +0 -2
@@ -1,24 +0,0 @@
1
- import{n as u,_ as h,b6 as p,$ as g,a1 as f,a0 as y,Y as b,b7 as T,b8 as w,a2 as A,a3 as E}from"./rr0-sighting-editor.mjs";import{S as v}from"./SkyEventEditorStyle-CvY_AhbI.js";import{SkyLantern as o}from"./SkyLantern-BDpxvmY3.js";const x=u.catalog({en:()=>h(()=>import("./LanternParameterTexts_en-CcnGd8UH.js"),[],import.meta.url).then(a=>a.lanternParameterTexts_en),fr:()=>h(()=>import("./LanternParameterTexts_fr-P2JwYOUy.js"),[],import.meta.url).then(a=>a.lanternParameterTexts_fr),es:()=>h(()=>import("./LanternParameterTexts_es-CUTgNutZ.js"),[],import.meta.url).then(a=>a.lanternParameterTexts_es),it:()=>h(()=>import("./LanternParameterTexts_it-CzNnIUrX.js"),[],import.meta.url).then(a=>a.lanternParameterTexts_it)});class i{static RELEASE="letGo";static LANTERNS="lanterns";static AIR="air";static LANTERN="eachLantern";static instant(e,t,n){return{type:"number",key:e,min:-36e3,max:36e3,step:1,unit:"s",scale:.001,required:!0,label:t,hint:n,group:i.LANTERNS}}static wind(e,t,n,s){return[{type:"number",key:`${e}.towardDeg`,min:0,max:360,step:1,unit:"°",group:i.AIR,hint:s,label:t},{type:"number",key:`${e}.speedMS`,min:0,max:60,step:.1,unit:"m/s",group:i.AIR,label:n}]}static SET={kind:"lantern",title:"skyLanterns",parameters:[{type:"said",key:"title",label:"name",group:i.RELEASE},{type:"position",key:"site.eastM",secondKey:"site.northM",saidKey:"site.saidPosition",native:"local",step:1,rangeM:1e5,group:i.RELEASE,label:"whereTheyAreLetGo",hint:"whereTheyAreLetGoFrom"},{type:"number",key:"site.altitudeM",min:-1e3,max:5e3,step:.1,unit:"m",group:i.RELEASE,effective:()=>0,label:"heightAboveThePlaceSGround",hint:"aGardenOnAHillAbove"},{type:"number",key:"site.originElevationM",min:-500,max:6e3,step:1,unit:"m",group:i.RELEASE,effective:()=>0,label:"thePlaceSGroundAboveThe",hint:"whatSetsHowThinTheAir"},{type:"number",key:"group.count",min:1,max:200,step:1,required:!0,group:i.LANTERNS,label:"howMany"},i.instant("group.fromT","firstLetGoAt","secondsOfTheRecordingBeforeIts"),i.instant("group.untilT","lastLetGoAt","secondsOfTheRecordingTheOthers"),{type:"number",key:"group.radiusM",min:0,max:5e3,step:1,unit:"m",group:i.LANTERNS,effective:()=>20,label:"letGoWithin",hint:"aCrowdLetsThemGoA"},{type:"number",key:"group.burnS.min",min:10,max:3600,step:1,unit:"s",group:i.LANTERNS,effective:()=>480,label:"burnsAtLeast",hint:"howLongEachBurnsFromWhen"},{type:"number",key:"group.burnS.max",min:10,max:3600,step:1,unit:"s",group:i.LANTERNS,effective:()=>900,label:"burnsAtMost"},{type:"number",key:"group.insideExcessK.min",min:10,max:400,step:1,unit:"K",group:i.LANTERNS,effective:()=>125,label:"hotterThanTheAirAtLeast",hint:"howMuchHotterThanTheAir"},{type:"number",key:"group.insideExcessK.max",min:10,max:400,step:1,unit:"K",group:i.LANTERNS,effective:()=>175,label:"hotterThanTheAirAtMost"},{type:"number",key:"group.burnedS",min:0,max:3600,step:1,unit:"s",group:i.LANTERNS,effective:()=>0,label:"alreadyBurntWhenLetGo",hint:"forLanternsTheAccountOnlyHas"},{type:"number",key:"group.seed",min:0,max:4294967295,step:1,group:i.LANTERNS,effective:()=>1,label:"draw",hint:"whatTheDrawsStartFromAnother"},{type:"set",key:"group.explains",group:i.LANTERNS,label:"standForTheShapes",options:(e,t)=>{const n=t?.shapes??[],s=(e.group?.explains??[]).filter(r=>!n.some(l=>l.value===r));return[...n,...s.map(r=>({value:r,label:r}))]},empty:"noShape"},...i.wind("wind","windAtTheGroundTowards","windAtTheGroundSpeed","whereItBlowsTowardsWhichIs"),...i.wind("windAloft","windAloftTowards","windAloftSpeed","theWindHigherUpBlendedWith"),{type:"number",key:"windAloft.atM",min:10,max:1e4,step:10,unit:"m",group:i.AIR,label:"windAloftAt",hint:"metresAboveWhereTheyAreLet"},{type:"number",key:"airTemperatureC",min:-60,max:50,step:.5,unit:"°C",group:i.AIR,effective:()=>10,label:"airTemperature",hint:"atTheGroundFallingBy6"},{type:"number",key:"turbulence.horizontalMS",min:0,max:10,step:.1,unit:"m/s",group:i.AIR,effective:()=>o.TURBULENCE.horizontalMS,label:"gustsAcross",hint:"howFarTheAirSSpeed"},{type:"number",key:"turbulence.verticalMS",min:0,max:10,step:.1,unit:"m/s",group:i.AIR,effective:()=>o.TURBULENCE.verticalMS,label:"gustsUpAndDown"},{type:"number",key:"turbulence.timescaleS",min:1,max:600,step:1,unit:"s",group:i.AIR,effective:()=>o.TURBULENCE.timescaleS,label:"aGustLasts"},{type:"number",key:"lantern.luminousIntensityCd",min:.1,max:1e3,step:.1,unit:"cd",group:i.LANTERN,effective:()=>o.COMMON.luminousIntensityCd,label:"light",hint:"itsFlameSLightThroughThe"},{type:"choice",key:"lantern.shape",group:i.LANTERN,effective:()=>o.COMMON.shape,label:"shape",choices:[{value:"classic",label:"roundAtTheMouthSquareAt"},{value:"balloon",label:"balloonLobedTop"}]},{type:"colour",key:"lantern.paperColor",group:i.LANTERN,fallback:o.COMMON.paperColor,label:"paperColour",hint:"whatItLooksLikeByDay"},{type:"colour",key:"lantern.color",group:i.LANTERN,fallback:o.COMMON.color,label:"flameLight",hint:"itsFlameSLightThroughWhite"},{type:"number",key:"lantern.envelopeVolumeM3",min:.01,max:10,step:.01,unit:"m³",group:i.LANTERN,effective:()=>o.COMMON.envelopeVolumeM3,label:"airItHolds"},{type:"number",key:"lantern.massKg",min:.005,max:5,step:.001,unit:"kg",group:i.LANTERN,effective:()=>o.COMMON.massKg,label:"weightWhenLetGo"}]};static publish(){p.publish(i.SET)}}const S=u.catalog({en:()=>h(()=>import("./LanternEditorMessages_en-DaT3UNfD.js"),[],import.meta.url).then(a=>a.lanternEditorMessages_en),fr:()=>h(()=>import("./LanternEditorMessages_fr-9mByTFMG.js"),[],import.meta.url).then(a=>a.lanternEditorMessages_fr),es:()=>h(()=>import("./LanternEditorMessages_es-TDV5lKeJ.js"),[],import.meta.url).then(a=>a.lanternEditorMessages_es),it:()=>h(()=>import("./LanternEditorMessages_it-MRkJnDQp.js"),[],import.meta.url).then(a=>a.lanternEditorMessages_it)});class c{constructor(e,t,n){this.container=e,this.host=t,v.attach(e,"lantern-editor-part",c.STYLE),this.language=n,p.of("lantern")||i.publish(),this.ready=this.setLanguage(n)}messages;ready;parameterTexts;languageToken=0;currentId;form;list;language;shown=[];static STYLE=`
2
- .lantern-editor-part, .lantern-editor-part #lantern-list, .lantern-editor-part .launch-fields { flex-basis: 100%; min-width: 0; }
3
- .lantern-editor-part .launch-editor, .lantern-editor-part .launch-fields { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
4
- .lantern-editor-part [hidden] { display: none !important; }
5
- .lantern-editor-part .launch-intro { flex-basis: 100%; margin: 0; }
6
- .lantern-editor-part .launch-parameters { flex-basis: 100%; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20em), 1fr)); gap: 12px; align-items: start; }
7
- .lantern-editor-part .parameter-group { min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
8
- .lantern-editor-part .parameter-group > label { display: flex; flex-wrap: wrap; align-items: center; gap: .35em .5em; min-width: 0; max-width: 100%; }
9
- .lantern-editor-part .parameter-group > label > span { flex: 1 1 11em; min-width: 0; overflow-wrap: anywhere; }
10
- .lantern-editor-part .parameter-row { width: 100%; min-width: 0; }
11
- .lantern-editor-part rr0-input-position { min-width: 0; max-width: 100%; }
12
- .lantern-editor-part rr0-input-position .position-from { flex-wrap: wrap; white-space: normal; min-width: 0; max-width: 100%; }
13
- .lantern-editor-part input, .lantern-editor-part select { min-width: 0; max-width: 100%; box-sizing: border-box; }
14
- .lantern-editor-part input[type="text"] { width: 12em; }
15
- .lantern-editor-part input.parameter-derived::placeholder { opacity: .65; }
16
- `;async setLanguage(e){const t=++this.languageToken;this.language=e;const[n,s]=await Promise.all([S.load(e),x.load(e)]);t===this.languageToken&&(this.messages=n,this.parameterTexts=s,this.render(),this.sync())}sync(){if(!this.messages)return;const e=this.launches;this.shown=[...e],e.some(r=>r.id===this.currentId)||(this.currentId=e[0]?.id),this.list?.setItems(e.map(r=>({id:r.id,label:this.labelOf(r)})),this.currentId),this.syncAddState();const t=this.current;if(this.element("lantern-fields").hidden=t===void 0,!t)return;const n=t.releases?.length??0,s=this.element("lantern-releases");s.hidden=n===0,s.textContent=this.messages.releasesNote.replace("{n}",String(n)),this.form??=new g(this.element("lantern-parameters"),this.language,"lantern.",{said:()=>this.host.said(),writingLanguage:()=>this.host.writingLanguage()}),this.form.show(this.resolved(i.SET),new f(()=>this.current,r=>this.editLaunch(l=>r(l)),()=>({shapes:this.host.shapes().map(r=>({value:r.id,label:r.label}))}),this.host.positionPlace?.()),()=>this.written())}refresh(){if(!this.messages)return;this.syncAddState();const e=this.launches;e.length===this.shown.length&&e.every((t,n)=>t.id===this.shown[n].id)||this.sync()}syncAddState(){const e=this.siteOfNew()!==void 0;this.list?.setAddState(e,e?void 0:this.messages.addLaunchNowhere)}get current(){return this.launches.find(e=>e.id===this.currentId)}resolved(e){return y.resolve(e,this.parameterTexts)}render(){if(!this.messages)return;const e=this.messages;this.form=void 0,this.container.innerHTML=`<div class="launch-editor">
17
- <p class="launch-intro">${e.intro}</p>
18
- <div id="lantern-list"></div>
19
- <div id="lantern-fields" class="launch-fields">
20
- <div id="lantern-parameters" class="launch-parameters"></div>
21
- <p id="lantern-releases" class="launch-intro" hidden></p>
22
- <p class="launch-intro">${e.derivedNote}</p>
23
- </div>
24
- </div>`,this.list=new b({header:this.element("lantern-list"),body:this.element("lantern-fields"),ids:{list:"lantern-select",remove:"lantern-delete",add:"lantern-add"},onSelect:t=>{this.currentId=t,this.sync()},onAdd:()=>this.addLaunch(),onRemove:()=>this.deleteCurrent()}),this.list.setLabels({list:e.launch,remove:e.deleteLaunch,add:e.addLaunch,empty:e.none})}written(){const e=this.current;e&&this.list?.rename(e.id,this.labelOf(e))}editLaunch(e){const t=this.current;if(!t)return;const n=structuredClone(t);e(n),this.writeLaunches(this.launches.map(s=>s===t?n:s)),this.host.changed()}siteOfNew(){const e=this.host.sighting(),t=e.event?.place?.[0];if(t?.lat===void 0||t.lng===void 0)return;const n=e.observerTrack?.getInterpolatedPoseAt(0),s=111320,r=n?.lng!==void 0?(n.lng-t.lng)*s*Math.cos(t.lat*Math.PI/180):0,l=n?.lat!==void 0?(n.lat-t.lat)*s:0;return{eastM:Math.round(r),northM:Math.round(l)}}addLaunch(){const e=this.siteOfNew();if(!e)return;let t=this.launches.length+1;for(;this.launches.some(m=>m.id===`lanterns-${t}`);)t++;const n=this.host.sighting(),s=T(n.event)??this.host.duration?.()??n.timeline?.duration,r=s!==void 0&&Number.isFinite(s)&&s>0?Math.min(s,12e4):12e4,l=w(n,0),d={id:`lanterns-${t}`,site:e,group:{count:12,fromT:0,untilT:r,seed:t},wind:{towardDeg:Math.round((l.windDirectionDeg+180)%360),speedMS:Math.round(l.windSpeed*10)/10}};this.writeLaunches([...this.launches,d]),this.currentId=d.id,this.host.changed(),this.sync()}deleteCurrent(){const e=this.current;e&&(this.currentId=void 0,this.writeLaunches(this.launches.filter(t=>t!==e)),this.host.changed(),this.sync())}writeLaunches(e){const t=this.host.sighting(),n={...t.interpretation??{bodies:[]},lanterns:e.length>0?e:void 0};n.lanterns===void 0&&delete n.lanterns;const s=A.saysNothing(n,E.kinds());t.interpretation=s?void 0:n}labelOf(e){const t=this.host.said().read(e.title);return t?`${t} (${e.id})`:e.id}get launches(){return this.host.sighting().interpretation?.lanterns??[]}element(e){return this.container.querySelector(`#${e}`)}}export{c as LanternEditor};
@@ -1,22 +0,0 @@
1
- import{n as y,_ as d,b6 as b,$ as x,a0 as E,I as g,Y as w,Z as j,a1 as v,bi as k}from"./rr0-sighting-editor.mjs";import{S as I}from"./SkyEventEditorStyle-CvY_AhbI.js";import{L as T}from"./LaunchPlume-DWyU0YyJ.js";const S=y.catalog({en:()=>d(()=>import("./LaunchParameterTexts_en-DvrCwbDM.js"),[],import.meta.url).then(r=>r.launchParameterTexts_en),fr:()=>d(()=>import("./LaunchParameterTexts_fr-Bh_1zVzy.js"),[],import.meta.url).then(r=>r.launchParameterTexts_fr),es:()=>d(()=>import("./LaunchParameterTexts_es--RUAegVp.js"),[],import.meta.url).then(r=>r.launchParameterTexts_es),it:()=>d(()=>import("./LaunchParameterTexts_it-CWDx9nJy.js"),[],import.meta.url).then(r=>r.launchParameterTexts_it)});class n{static plumeValue(e){return t=>T.plumeOf(t)[e]}static plume(e,t){return{type:"number",key:`plume.${e}`,effective:n.plumeValue(e),...t}}static burn(e,t){return{type:"number",key:e,min:-3600,max:36e3,step:.1,unit:"s",scale:.001,label:t.label,hint:t.hint,group:"engine",effective:i=>t.ends(i.track??[])?.t}}static placeAt(e,t){if(e.length===0)return{t,lat:0,lng:0,altitudeKm:0};if(e.length===1)return{t,lat:e[0].lat,lng:e[0].lng,altitudeKm:e[0].altitudeKm};let i=0;for(;i<e.length-2&&e[i+1].t<t;)i++;const s=e[i],a=e[i+1],l=a.t===s.t?0:(t-s.t)/(a.t-s.t),o=(m,h)=>m+(h-m)*l;return{t,lat:o(s.lat,a.lat),lng:o(s.lng,a.lng),altitudeKm:Math.max(0,o(s.altitudeKm,a.altitudeKm))}}static instantsOf(e){return[...e.track.map(t=>t.t),...[e.burnFromT,e.burnUntilT].filter(t=>t!==void 0),...(e.jets??[]).flatMap(t=>[t.fromT,t.untilT])]}static SET={kind:"launch",title:"launch",parameters:[{type:"said",key:"title",label:"name",group:"vehicle"},{type:"text",key:"vehicle.mission",label:"mission",placeholder:"Starlink Group 10-49",group:"vehicle"},{type:"number",key:"vehicle.engine.thrustKN",min:1,max:1e5,step:1,unit:"kN",label:"thrustVacuum",hint:"merlinVacuum934Rl10110A",group:"engine"},{type:"number",key:"vehicle.engine.specificImpulseS",min:100,max:500,step:1,unit:"s",label:"specificImpulseVacuum",hint:"times981MSIt",group:"engine"},{type:"choice",key:"vehicle.engine.propellant",label:"propellant",hint:"whatTheExhaustIsMadeOf",choices:[{value:"rp1-lox",label:"keroseneAndOxygen"},{value:"methane-lox",label:"methaneAndOxygen"},{value:"hydrogen-lox",label:"hydrogenAndOxygen"},{value:"hypergolic",label:"hypergolic"},{value:"solid",label:"solid"}],group:"engine"},n.burn("burnFromT",{label:"engineStart",hint:"whenTheEngineStartedInSeconds",ends:e=>e[0]}),n.burn("burnUntilT",{label:"engineCutOff",hint:"whenTheEngineStoppedInSeconds",ends:e=>e[e.length-1]}),n.plume("exhaustKgPerS",{min:.1,max:1e5,step:.1,unit:"kg/s",label:"exhaustFlow",hint:"howMuchExhaustLeavesTheEngine",group:"plume"}),n.plume("condensedShare",{min:0,max:1,step:.01,label:"shareThatScatters",hint:"theShareOfTheExhaustThat",group:"plume"}),n.plume("particleRadiusUm",{min:.05,max:5,step:.05,unit:"µm",label:"particleRadius",group:"plume"}),n.plume("lifetimeS",{min:10,max:3600,step:10,unit:"s",label:"trailLifetime",hint:"howLongTheNarrowTrailLasts",group:"plume"}),n.plume("expansionKmPerS",{min:0,max:5,step:.01,unit:"km/s",label:"trailSpreading",group:"plume"}),n.plume("initialRadiusKm",{min:0,max:50,step:.1,unit:"km",label:"radiusAtRelease",group:"plume"}),n.plume("collarShare",{min:0,max:1,step:.01,label:"shareInTheCollar",hint:"theCollarIsTheExhaustJust",group:"collar"}),n.plume("collarExpansionKmPerS",{min:0,max:10,step:.05,unit:"km/s",label:"collarSpreading",hint:"howFastTheCollarWidensThree",group:"collar"}),n.plume("collarLifetimeS",{min:1,max:300,step:1,unit:"s",label:"collarLifetime",group:"collar"})]};static PLACE={kind:"launch-place",title:"placeOfThePath",parameters:[{type:"number",key:"t",min:-3600,max:36e3,step:.1,unit:"s",scale:.001,required:!0,label:"time",hint:"secondsOfTheRecordingNegativeBefore"},{type:"position",key:"lat",secondKey:"lng",saidKey:"saidPosition",native:"geo",step:1,label:"position"},{type:"number",key:"altitudeKm",min:0,max:2e3,step:.1,unit:"km",required:!0,label:"altitude"}]};static jetContext(e,t){return{launch:e,index:t}}static jetValue(e){return(t,i)=>{const{launch:s,index:a}=i??{};return s?e(T.releaseOf(s,t,a)):void 0}}static JET_GROUP="jet";static JET={kind:"launch-jet",title:"jet",parameters:[{type:"choice",key:"kind",required:!0,label:"what",choices:[{value:"burn",label:"engineBurn"},{value:"vent",label:"propellantVented"}],group:n.JET_GROUP},{type:"number",key:"fromT",min:-36e3,max:36e3,step:.1,unit:"s",scale:.001,required:!0,label:"from",hint:"secondsOfTheRecordingNegativeBefore2",group:n.JET_GROUP},{type:"number",key:"untilT",min:-36e3,max:36e3,step:.1,unit:"s",scale:.001,required:!0,label:"until",group:n.JET_GROUP},{type:"number",key:"angleDeg",min:0,max:180,step:1,unit:"°",effective:()=>0,label:"directionFromAft",hint:"t0StraightBackAlongTheStage",group:n.JET_GROUP},{type:"number",key:"azimuthDeg",min:-360,max:360,step:1,unit:"°",effective:()=>0,label:"side",hint:"roundTheLineOfMotionWhich",group:n.JET_GROUP},{type:"number",key:"spinPeriodS",min:-3600,max:3600,step:.1,unit:"s",label:"spinPeriod",hint:"howLongTheStageTakesTo",group:n.JET_GROUP},{type:"number",key:"speedKmPerS",min:0,max:10,step:.01,unit:"km/s",effective:n.jetValue(e=>e.speedKmPerS),label:"speed",hint:"howFastItLeavesTheStage",group:n.JET_GROUP},{type:"number",key:"massKgPerS",min:0,max:1e5,step:.1,unit:"kg/s",effective:n.jetValue(e=>e.massKgPerS),label:"flow",group:n.JET_GROUP},{type:"number",key:"condensedShare",min:0,max:1,step:.01,effective:n.jetValue(e=>e.condensedShare),label:"shareThatScatters",group:n.JET_GROUP},{type:"number",key:"particleRadiusUm",min:.05,max:5,step:.05,unit:"µm",effective:n.jetValue(e=>e.particleRadiusUm),label:"particleRadius",group:n.JET_GROUP},{type:"number",key:"expansionKmPerS",min:0,max:5,step:.01,unit:"km/s",effective:n.jetValue(e=>e.populations[0].expansionKmPerS),label:"spreading",hint:"howFastEachPuffOfIt",group:n.JET_GROUP},{type:"number",key:"initialRadiusKm",min:0,max:50,step:.1,unit:"km",effective:n.jetValue(e=>e.initialRadiusKm),label:"radiusAtRelease",group:n.JET_GROUP},{type:"number",key:"lifetimeS",min:1,max:7200,step:1,unit:"s",effective:n.jetValue(e=>e.populations[0].lifetimeS),label:"lifetime",group:n.JET_GROUP}]};static publish(){b.publish(n.SET)}}const O=y.catalog({en:()=>d(()=>import("./LaunchEditorMessages_en-BnzNAYW9.js"),[],import.meta.url).then(r=>r.launchEditorMessages_en),fr:()=>d(()=>import("./LaunchEditorMessages_fr-Ds_VOB8c.js"),[],import.meta.url).then(r=>r.launchEditorMessages_fr),es:()=>d(()=>import("./LaunchEditorMessages_es-BE0dEl7I.js"),[],import.meta.url).then(r=>r.launchEditorMessages_es),it:()=>d(()=>import("./LaunchEditorMessages_it-DPQaR8HY.js"),[],import.meta.url).then(r=>r.launchEditorMessages_it)});class u{constructor(e,t,i){this.container=e,this.host=t,I.attach(e,"launch-editor-part",u.STYLE),this.language=i,b.of("launch")||n.publish(),this.ready=this.setLanguage(i)}messages;ready;parameterTexts;languageToken=0;currentId;form;list;timeline;row="path";placeForm;placeIndex=0;jetForm;jetIndex=0;language;shown=[];static STYLE='.launch-editor-part { flex-basis: 100%; min-width: 0; } .launch-editor-part #launch-timeline { flex-basis: 100%; min-width: 0; padding: 4px 0; } .launch-editor-part .launch-path > .icon-btn { align-self: flex-end; } .launch-editor-part #launch-list, .launch-editor-part #launch-places { flex-basis: 100%; min-width: 0; } .launch-editor-part .launch-editor, .launch-editor-part .launch-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; } .launch-editor-part .launch-fields { flex-basis: 100%; min-width: 0; } .launch-editor-part [hidden] { display: none !important; } .launch-editor-part select { min-width: 0; width: 100%; } .launch-editor-part .launch-intro { flex-basis: 100%; margin: 0; } .launch-editor-part .launch-track { flex-basis: 100%; margin: 0; } .launch-editor-part .launch-parameters { flex-basis: 100%; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; } .launch-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; } .launch-editor-part input, .launch-editor-part select { max-width: 100%; box-sizing: border-box; } .launch-editor-part input[type="text"] { width: 12em; } .launch-editor-part #launch-title { width: 18em; } .launch-editor-part label { min-width: 0; max-width: 100%; } .launch-editor-part input.parameter-derived::placeholder { opacity: .65; } .launch-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(e){const t=++this.languageToken;this.language=e;const[i,s]=await Promise.all([O.load(e),S.load(e)]);t===this.languageToken&&(this.messages=i,this.parameterTexts=s,this.render(),this.sync())}sync(){if(!this.messages)return;const e=this.launches;this.shown=[...e],e.some(s=>s.id===this.currentId)||(this.currentId=e[0]?.id),this.list?.setItems(e.map(s=>({id:s.id,label:this.labelOf(s)})),this.currentId),this.syncAddState();const t=this.current;if(this.element("launch-fields").hidden=t===void 0,!t)return;this.syncPlace(!0),this.syncJet(!0);const i=this.resolved(b.of("launch"));this.form??=new x(this.element("launch-parameters"),this.language,"",{said:()=>this.host.said(),writingLanguage:()=>this.host.writingLanguage()}),this.form.show(i,t,()=>this.written())}refresh(){if(!this.messages)return;this.syncAddState();const e=this.launches;if(e.length===this.shown.length&&e.every((t,i)=>t===this.shown[i])){this.syncTimeline();return}this.sync()}setTime(e){this.messages&&this.timeline?.setTime(e)}syncAddState(){const e=this.startOfNew()!==void 0;this.list?.setAddState(e,e?void 0:this.messages.addLaunchNowhere)}get current(){return this.launches.find(e=>e.id===this.currentId)}show(e){this.messages&&(this.currentId=e,this.row="path",this.placeIndex=0,this.jetIndex=0,this.sync())}resolved(e){return E.resolve(e,this.parameterTexts)}render(){if(!this.messages)return;const e=this.messages;this.form=void 0,this.container.innerHTML=`<div class="launch-editor">
2
- <p class="launch-intro">${e.intro}</p>
3
- <div id="launch-list"></div>
4
- <div id="launch-fields" class="launch-fields">
5
- <div id="launch-parameters" class="launch-parameters"></div>
6
- <div id="launch-timeline" class="launch-timeline"></div>
7
- <button id="launch-jet-add-burn" type="button" title="${e.addJet}">${g.PLUS} ${e.jetBurn}</button>
8
- <button id="launch-jet-add-vent" type="button" title="${e.addJet}">${g.PLUS} ${e.jetVent}</button>
9
- <p class="launch-intro">${e.timelineNote}</p>
10
- <fieldset id="launch-path" class="launch-path">
11
- <legend>${e.path}</legend>
12
- <div id="launch-place-parameters" class="launch-parameters"></div>
13
- <button id="launch-place-delete" class="icon-btn" type="button" title="${e.deletePlace}" aria-label="${e.deletePlace}">${g.TRASH}</button>
14
- </fieldset>
15
- <fieldset id="launch-jets" class="launch-path">
16
- <legend id="launch-jet-legend">${e.jet}</legend>
17
- <div id="launch-jet-parameters" class="launch-parameters"></div>
18
- <button id="launch-jet-delete" class="icon-btn" type="button" title="${e.deleteJet}" aria-label="${e.deleteJet}">${g.TRASH}</button>
19
- </fieldset>
20
- <p class="launch-intro">${e.derivedNote}</p>
21
- </div>
22
- </div>`;const t=this.element("launch-list");this.list=new w({header:t,body:this.element("launch-fields"),ids:{list:"launch-select",remove:"launch-delete",add:"launch-add",kinds:"launch-add-kind",kind:i=>`launch-add-${i}`},onSelect:i=>this.show(i),onAdd:i=>this.addLaunch(i??u.VEHICLES[0].id),onRemove:()=>this.deleteCurrent()}),this.list.setLabels({list:e.launch,remove:e.deleteLaunch,add:e.addLaunch,empty:e.none}),this.list.setKinds(u.VEHICLES.map(i=>({value:i.id,label:i.vehicle.name??i.id}))),this.timeline=new j(this.element("launch-timeline"),i=>this.host.seekTo(i),{addKeyframeHere:e.addHere,keyframeHere:e.here,zoomHint:e.zoomHint}),this.element("launch-jet-add-burn").addEventListener("click",()=>this.addJet("burn",this.host.currentTime())),this.element("launch-jet-add-vent").addEventListener("click",()=>this.addJet("vent",this.host.currentTime())),this.element("launch-place-delete").addEventListener("click",()=>this.removePlace()),this.element("launch-jet-delete").addEventListener("click",()=>this.removeJet()),this.placeForm=void 0,this.jetForm=void 0}written(){this.host.changed();const e=this.current;e&&(this.list?.rename(e.id,this.labelOf(e)),this.syncTimeline())}static PATH_COLOR="#e08a1e";static JET_COLOR="#4f8fd6";jetLabel(e,t){return`${e.kind==="vent"?this.messages.jetVent:this.messages.jetBurn} ${t+1}`}syncTimeline(){const e=this.current;if(!this.timeline||!e)return;const i={id:"path",label:this.messages.path,color:u.PATH_COLOR,times:e.track.map(h=>h.t),active:this.row==="path",selectedTime:this.row==="path"?e.track[this.placeIndex]?.t:void 0,open:()=>this.selectPlace(this.placeIndex),pressed:(h,c)=>{const p=c===void 0?-1:(this.current?.track??[]).findIndex(f=>f.t===c);this.selectPlace(p>=0?p:this.placeIndex)},move:(h,c)=>this.movePlace(h,c),add:()=>this.addPlaceAt(this.host.currentTime())},s=(e.jets??[]).map((h,c)=>({id:`jet-${c}`,label:this.jetLabel(h,c),color:u.JET_COLOR,times:[h.fromT,h.untilT],spans:[{t:h.fromT,until:h.untilT,label:""}],active:this.row==="jet"&&c===this.jetIndex,open:()=>this.selectJet(c),pressed:()=>this.selectJet(c),move:(p,f)=>this.moveJetEnd(c,p,f),add:()=>this.addJet(h.kind??"burn",this.host.currentTime())})),a=n.instantsOf(e),l=Math.min(...a),o=Math.max(...a),m=Math.max(500,(o-l)/10);this.timeline.show([i,...s],this.host.duration(),this.host.currentTime(),{from:l-m,to:o+m})}syncDetail(){const t=this.current?.jets?.[this.jetIndex];this.row==="jet"&&!t&&(this.row="path"),this.element("launch-path").hidden=this.row!=="path",this.element("launch-jets").hidden=this.row!=="jet",this.element("launch-jet-legend").textContent=t?this.jetLabel(t,this.jetIndex):this.messages.jet}static MIN_PLACES=2;syncPlace(e=!1){const t=this.current?.track??[];this.placeIndex=Math.max(0,Math.min(this.placeIndex,t.length-1)),this.element("launch-place-delete").disabled=t.length<=u.MIN_PLACES,this.placeForm?this.placeForm.sync(e):(this.placeForm=new x(this.element("launch-place-parameters"),this.language,"launchPlace."),this.placeForm.show(this.resolved(n.PLACE),new v(()=>this.current?.track[this.placeIndex],i=>this.editPlace(this.placeIndex,i),void 0,this.host.positionPlace?.()),()=>{})),this.syncDetail(),this.syncTimeline()}selectPlace(e){this.row="path",this.placeIndex=e,this.syncPlace(!0)}editPlace(e,t){const i=this.current;if(!i)return;const s={...i.track[e]};t(s),i.track=i.track.map((a,l)=>l===e?s:a).sort((a,l)=>a.t-l.t),this.placeIndex=i.track.indexOf(s),this.syncPlace(),this.written()}movePlace(e,t){const i=this.current?.track.findIndex(s=>s.t===e)??-1;i<0||(this.editPlace(i,s=>{s.t=t}),this.syncPlace(!0))}addPlaceAt(e){const t=this.current;if(!t)return;const i=t.track.findIndex(s=>Math.abs(s.t-e)<1);if(i<0){const s=n.placeAt(t.track,Math.round(e));t.track=[...t.track,s].sort((a,l)=>a.t-l.t),this.host.changed(),this.selectPlace(t.track.indexOf(s));return}this.selectPlace(i)}removePlace(){const e=this.current;!e||e.track.length<=u.MIN_PLACES||(e.track=e.track.filter((t,i)=>i!==this.placeIndex),this.syncPlace(!0),this.host.changed())}syncJet(e=!1){const t=this.current?.jets??[];this.jetIndex=Math.max(0,Math.min(this.jetIndex,t.length-1)),this.jetForm?this.jetForm.sync(e):(this.jetForm=new x(this.element("launch-jet-parameters"),this.language,"launchJet."),this.jetForm.show(this.resolved(n.JET),new v(()=>this.current?.jets?.[this.jetIndex],i=>this.editJet(this.jetIndex,i),()=>this.current?n.jetContext(this.current,this.jetIndex):void 0),()=>{})),this.syncDetail(),this.syncTimeline()}selectJet(e){this.row="jet",this.jetIndex=e,this.syncJet(!0)}editJet(e,t){const i=this.current;if(!i?.jets)return;const s={...i.jets[e]};t(s),i.jets=i.jets.map((a,l)=>l===e?s:a),this.written()}moveJetEnd(e,t,i){const s=this.current?.jets?.[e];s&&(this.editJet(e,a=>{const l=t===s.fromT?[i,s.untilT]:[s.fromT,i];a.fromT=Math.min(l[0],l[1]),a.untilT=Math.max(l[0],l[1])}),this.selectJet(e))}addJet(e,t){const i=this.current;if(!i)return;const s=i.track,a=Math.round(t),l=e==="vent"?{kind:e,fromT:a,untilT:a+3e4,angleDeg:90}:{kind:e,fromT:a,untilT:a+3e4};!i.jets?.length&&i.burnFromT===void 0&&i.burnUntilT===void 0&&(i.burnFromT=s[0].t,i.burnUntilT=s[s.length-1].t),i.jets=[...i.jets??[],l],this.form?.sync(!0),this.host.changed(),this.selectJet(i.jets.length-1)}removeJet(){const e=this.current;if(!e?.jets?.length)return;const t=e.jets.filter((i,s)=>s!==this.jetIndex);t.length?e.jets=t:delete e.jets,this.host.changed(),t.length?this.selectJet(Math.min(this.jetIndex,t.length-1)):this.selectPlace(this.placeIndex)}startOfNew(){const e=this.host.sighting(),t=e.event?.place?.[0];if(t?.lat===void 0||t.lng===void 0)return;const i=(e.observerTrack?.getInterpolatedPoseAt(0)?.headingDeg??0)*Math.PI/180,s=a=>({lat:t.lat+a*Math.cos(i)/111.32,lng:t.lng+a*Math.sin(i)/(111.32*Math.max(.05,Math.cos(t.lat*Math.PI/180)))});return[{t:0,...s(300),altitudeKm:80},{t:6e4,...s(450),altitudeKm:160}]}static VEHICLES=[{id:"falcon-9",vehicle:{name:"Falcon 9"}}];addLaunch(e){const t=this.startOfNew();if(!t)return;const i=u.VEHICLES.find(o=>o.id===e)??u.VEHICLES[0];let s=this.launches.length+1;for(;this.launches.some(o=>o.id===`launch-${s}`);)s++;const a={id:`launch-${s}`,vehicle:{...i.vehicle},track:t},l=this.host.sighting();l.skyEvents={...l.skyEvents,launches:[...this.launches,a]},this.currentId=a.id,this.row="path",this.placeIndex=0,this.host.changed(),this.sync()}deleteCurrent(){const e=this.current;if(!e)return;this.currentId=void 0;const t=this.host.sighting();t.skyEvents=k.written({...t.skyEvents,launches:this.launches.filter(i=>i!==e)}),this.host.changed(),this.sync()}labelOf(e){const t=this.host.said().read(e.title)??e.vehicle?.mission??e.vehicle?.name;return t?`${t} (${e.id})`:e.id}get launches(){return this.host.sighting().skyEvents?.launches??[]}element(e){return this.container.querySelector(`#${e}`)}}export{u as LaunchEditor};
@@ -1 +0,0 @@
1
- import{aV as d,aW as c,aX as l,aY as f,aZ as m,a_ as u,a$ as w,b0 as g,b1 as y,b2 as M,b3 as b,b4 as S,V as v}from"./rr0-sighting-editor.mjs";class h{static key(e){return"url"in e?`url:${e.url}|${e.headingOffsetDeg??0}`:"shape"in e?`shape:${e.shape}`:`decor:${e.decorKind}`}static async build(e){const a=new d;if("url"in e){const s=await c(e.url);s.rotation.y=-(e.headingOffsetDeg??0)*Math.PI/180,a.add(s)}else"shape"in e?a.add(h.shapeOf(e.shape)):a.add(l.build({id:"preview",kind:e.decorKind,eastM:0,northM:0},!1));return a}static shapeOf(e){if(e==="figure")return l.build({id:"preview",kind:"entity",eastM:0,northM:0},!1);const a=new f(m.unitGeometry(e),new u({color:13158608,roughness:.5,metalness:0}));return e==="ellipsoid"&&a.scale.set(1,.55,1),a}static dispose(e){e.traverse(a=>{const s=a;if(s.isMesh){s.geometry?.dispose();for(const t of[s.material].flat())t.dispose()}})}static stage(e,a){const s=new w().setFromObject(e);if(s.isEmpty())return;const t=s.getBoundingSphere(new g),r=new d;e.position.sub(t.center),r.add(e);const n=new y;n.add(r),n.add(new M(16777215,6715272,1.6));const o=new b(16777215,2.5);o.position.set(1,2,1.5),n.add(o);const i=new S(30,a,t.radius*.05,t.radius*20),p=t.radius/Math.sin(i.fov*Math.PI/360)*1.05;return i.position.copy(new v(.55,.3,-.78).normalize().multiplyScalar(p)),i.lookAt(0,0,0),{scene:n,camera:i,pivot:r}}}export{h as M};
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ModuleThree-DRf9SEr_.js","./rr0-sighting-editor.mjs"])))=>i.map(i=>d[i]);
2
- import{_ as w}from"./rr0-sighting-editor.mjs";class n{static MEMBERS={weather:["getWeather"],place:["attribution","search","reverse"],timeZone:["zoneAt"],narrative:["settings","draft"],assessment:["assess"],lightPollution:["year","citation","lookUp"],aircraft:["citation","between"],upperAir:["between"],elevation:["getElevationGrid"],imagery:["attribution","getImageryTexture"],surroundings:["id","name","attribution","creditUrl","contemporary","covers","getSurroundings"],decorModels:["attribution","entries","entry"],skyEvents:["key","messages","simulation"],interpretations:["key","messages","compute"],perception:["id","messages","sources","settings","perceive"],transcription:["sendsAudio","engine","transcribe"],reentryTypes:["key","nature","messages","template"]};static WEATHER_SHARES=["cloudCover","cloudDarkness","precipitationIntensity","highCloudCover","lowerCloudCover","iceCrystalAlignment","rareIceCrystals","relativeHumidity"];static WEATHER_REQUIRED=["cloudCover","cloudDarkness","precipitationIntensity"];static PRECIPITATIONS=["none","rain","snow","hail"];static HIGH_WIND_MS=60;static TIMEOUT_MS=3e4;static async check(i,a={}){const r=[];i.hasScript&&!i.scriptRun&&r.push({level:"note",code:"scriptNotRun"});for(const[t,s]of Object.entries(i.module.contributes))Object.hasOwn(n.MEMBERS,t)?Array.isArray(s)?await n.checkPoint(t,s,a,r):r.push({level:"failed",code:"notAList",point:t}):r.push({level:"failed",code:"unknownPoint",point:t});return r}static async checkPoint(i,a,r,t){const s=new Set;for(const e of a){const c=(l,d,g="failed")=>{t.push({level:g,code:l,point:i,source:typeof e?.id=="string"?e.id:void 0,detail:d})};if(s.has(e?.id)&&c("duplicateId"),s.add(e?.id),n.checkEntry(e,c),typeof e?.create!="function"){c("createMissing");continue}const o=n.build(e,c);if(o===void 0)continue;const h=n.MEMBERS[i].filter(l=>o[l]===void 0);for(const l of h)c("missingMember",l);h.length>0||(i==="weather"&&await n.checkWeather(e.id,o,r,c),i==="skyEvents"&&await n.checkSkyEventKind(e.id,o,r,c),i==="interpretations"&&await n.checkInterpretationKind(e.id,o,r,c))}}static checkEntry(i,a){for(const r of["id","name","credit","creditUrl"]){const t=i?.[r];(typeof t!="string"||t.trim()==="")&&a("entryField",r)}typeof i?.creditUrl=="string"&&i.creditUrl!==""&&!URL.canParse(i.creditUrl)&&a("entryField","creditUrl")}static build(i,a){let r=!1;const t=(async()=>(r=!0,new Response("",{status:503}))),s=globalThis.fetch;globalThis.fetch=t;try{const e=i.create(t);if(r&&a("createAsked"),e==null){a("createEmpty");return}return e}catch(e){a("createThrew",n.told(e));return}finally{globalThis.fetch=s}}static async checkWeather(i,a,r,t){const s=r.weatherQuery;if(!s){t("weatherNotAsked",void 0,"note");return}let e;try{e=await n.within(a.getWeather(s),r)}catch(l){t("weatherThrew",n.told(l));return}if(e===void 0){t("weatherNoRecord",void 0,"note");return}const c=e?.samples;if(!Array.isArray(c)||c.length!==s.points.length){t("weatherSamples",`${Array.isArray(c)?c.length:0}/${s.points.length}`);return}c.some((l,d)=>l?.time?.getTime?.()!==s.points[d].time.getTime())&&t("weatherOrder");const o=new Set;let h=!1;for(const l of c){const d=l?.weather??{};for(const g of n.WEATHER_SHARES){const u=d[g],p=n.WEATHER_REQUIRED.includes(g);(u!==void 0||p)&&!n.between(u,0,1)&&o.add(`${g} = ${String(u)}`)}n.between(d.windDirectionDeg,0,360)||o.add(`windDirectionDeg = ${String(d.windDirectionDeg)}`),n.between(d.windSpeed,0,1/0)?d.windSpeed>n.HIGH_WIND_MS&&(h=!0):o.add(`windSpeed = ${String(d.windSpeed)}`),n.PRECIPITATIONS.includes(d.precipitationType)||o.add(`precipitationType = ${String(d.precipitationType)}`),typeof d.storm!="boolean"&&o.add(`storm = ${String(d.storm)}`)}for(const l of o)t("weatherValue",l);h&&t("weatherWindHigh",void 0,"note"),e.source?.id!==i&&t("weatherSource","id"),(typeof e.source?.name!="string"||e.source.name==="")&&t("weatherSource","name"),(typeof e.source?.url!="string"||e.source.url==="")&&t("weatherSource","url")}static async checkSkyEventKind(i,a,r,t){a.key!==i&&t("kindKey",String(a.key)),await n.checkTexts(a.messages,["title","name"],r,t);let s;try{s=(await n.within(a.simulation(),r))()}catch(o){t("simulationFailed",n.told(o));return}const{MODULE_THREE:e}=await w(async()=>{const{MODULE_THREE:o}=await import("./ModuleThree-DRf9SEr_.js");return{MODULE_THREE:o}},__vite__mapDeps([0,1]),import.meta.url);if(!(s?.object instanceof e.Object3D)){t("secondThree");return}try{s.update([],0,n.frame(new e.Vector3)),s.drawnCount!==0&&t("drawnWithoutEvents",String(s.drawnCount))}catch(o){t("updateThrew",n.told(o))}const c=new e.Group;c.add(s.object);try{s.dispose(),s.object.parent===c&&t("disposeLeft")}catch(o){t("disposeThrew",n.told(o))}}static async checkInterpretationKind(i,a,r,t){a.key!==i&&t("kindKey",String(a.key)),await n.checkTexts(a.messages,["title"],r,t);const s=r.interpretation?.[a.key];if(!Array.isArray(s)||s.length===0){t("readingNotTried",void 0,"note");return}let e;try{if(e=await n.within(a.compute(),r),typeof e!="function"){t("readingThrew","compute");return}}catch(c){t("readingThrew",n.told(c));return}for(const c of s)try{const o=e(c);Array.isArray(o)||t("readingNotAList")}catch(o){t("readingThrew",n.told(o))}}static async checkTexts(i,a,r,t){for(const s of["en","fr"])try{const e=await n.within(i.load(s),r);for(const c of a)(typeof e?.[c]!="string"||e[c]==="")&&t("kindMessages",`${s}: ${c}`)}catch(e){t("kindMessages",`${s}: ${n.told(e)}`)}}static frame(i){return{reference:{lat:0,lng:0},origin:{x:0,z:0},eastScale:1,siteElevationM:0,eye:i,pixelRad:.001,relativeScale:1,air:{},transmittanceTo:()=>[1,1,1],groundYAt:()=>0,wind:{eastMS:0,northMS:0},observer:{lat:0,lng:0,heightM:0},date:new Date(0),magnitudeLimit:6,cloudTransmission:()=>1,arrivingIlluminance:()=>[0,0,0],transmittanceFromSpace:()=>[1,1,1],lightFrom:()=>{},glareFrom:()=>{}}}static between(i,a,r){return typeof i=="number"&&!Number.isNaN(i)&&i>=a&&i<=r}static told(i){return i instanceof Error?i.message:String(i)}static within(i,a){const r=a.timeoutMs??n.TIMEOUT_MS;let t;const s=new Promise((e,c)=>{t=setTimeout(()=>c(new Error(`> ${r/1e3} s`)),r)});return Promise.race([i,s]).finally(()=>clearTimeout(t))}}export{n as ModuleConformance};
@@ -1,3 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ModuleThree-DRf9SEr_.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-DRf9SEr_.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,bI as e,cU as s,b$ as t,c1 as r,ce as i,bT as o,Q as c,b_ as n,bq as b,cn as l,cf as d,D as u,cV as m,a_ as M,bd as B,aY as S,G as f,cE as G,cB as y,cF as h,aV as p,cS as x,bN as D,F as E,be as L,cW as T,cX as V,cY as g,bs as C,c0 as F,bb as P,bc as A,cZ as _,cd as v,bf as N}from"./rr0-sighting-editor.mjs";const Q={AdditiveBlending:N,BackSide:v,BoxGeometry:_,BufferAttribute:A,BufferGeometry:P,CanvasTexture:F,Color:C,ConeGeometry:g,CylinderGeometry:V,DataTexture:T,DoubleSide:L,Euler:E,Float32BufferAttribute:D,FrontSide:x,Group:p,Line:h,LineBasicMaterial:y,LineSegments:G,Matrix4:f,Mesh:S,MeshBasicMaterial:B,MeshStandardMaterial:M,NormalBlending:m,Object3D:u,PlaneGeometry:d,PointLight:l,Points:b,PointsMaterial:n,Quaternion:c,ShaderMaterial:o,SphereGeometry:i,Sprite:r,SpriteMaterial:t,TorusGeometry:s,Vector2:e,Vector3:a};export{Q 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,28 +0,0 @@
1
- import{n as w,_ as A,aJ as b,bw as M,bx as E,by as C,bz as O,bA 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,bi 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,Q as M,c9 as d,ca as y,cb as g,bL as l,cc as k,aY as b,bd as O,cd as T,ce as E,cf as D,D as I}from"./rr0-sighting-editor.mjs";import{P as m,a as f}from"./PictureFetch-C3wgf1ZV.js";const v=3,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 M;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 y(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 k(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 O({map:i.texture,transparent:!0,depthTest:!1,depthWrite:!1,fog:!1,toneMapped:!1})),t.kind==="panorama"&&(e.material.side=T),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 E(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 D(e,s);return a.translate(0,0,-u),a}static orientation({headingDeg:t,pitchDeg:i,rollDeg:s}){const e=new I;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};