@rr0/ufoathome 0.202.1 → 0.203.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 (258) hide show
  1. package/dist-embed-interview/InterviewMessages_en-Ikx6GjEd.js +3 -0
  2. package/dist-embed-interview/InterviewMessages_es-DKWWyrnb.js +3 -0
  3. package/dist-embed-interview/InterviewMessages_fr-DT0gXAKD.js +3 -0
  4. package/dist-embed-interview/InterviewMessages_it-CF_9MYPt.js +3 -0
  5. package/dist-embed-interview/rr0-interview.mjs +1 -1
  6. package/dist-embed-scene/ModuleSession-Bh6KaOGK.js +3 -0
  7. package/dist-embed-scene/rr0-scene.mjs +67 -67
  8. package/dist-embed-sighting/{CaseReportExport-BtGCWD7H.js → CaseReportExport--iqqhu1e.js} +1 -1
  9. package/dist-embed-sighting/HvsMessages_en-BiLhEAxJ.js +1 -0
  10. package/dist-embed-sighting/HvsMessages_es-Cbj_6eFs.js +1 -0
  11. package/dist-embed-sighting/HvsMessages_fr-DkvE2qm1.js +1 -0
  12. package/dist-embed-sighting/HvsMessages_it-BIJ87Uyb.js +1 -0
  13. package/dist-embed-sighting/InterviewMessages_en-Ikx6GjEd.js +3 -0
  14. package/dist-embed-sighting/InterviewMessages_es-DKWWyrnb.js +3 -0
  15. package/dist-embed-sighting/InterviewMessages_fr-DT0gXAKD.js +3 -0
  16. package/dist-embed-sighting/InterviewMessages_it-CF_9MYPt.js +3 -0
  17. package/dist-embed-sighting/ModuleSession-_kHZ7Tx3.js +3 -0
  18. package/dist-embed-sighting/ReadingCheckTexts_en-C5qzU8K7.js +1 -0
  19. package/dist-embed-sighting/ReadingCheckTexts_es-DdhtmSew.js +1 -0
  20. package/dist-embed-sighting/ReadingCheckTexts_fr-COtovvqc.js +1 -0
  21. package/dist-embed-sighting/ReadingCheckTexts_it-Bz32XGh6.js +1 -0
  22. package/dist-embed-sighting/rr0-sighting.mjs +399 -354
  23. package/dist-embed-sighting-editor/{AdsbLolArchiveProvider-Bz1OjSjY.js → AdsbLolArchiveProvider-DNYpHE9t.js} +1 -1
  24. package/dist-embed-sighting-editor/{AirshipEditor-BlJXyxlr.js → AirshipEditor-B_TQEcNk.js} +1 -1
  25. package/dist-embed-sighting-editor/{AirshipFlight-Cx40Y8JT.js → AirshipFlight-zrtPXNvX.js} +1 -1
  26. package/dist-embed-sighting-editor/{Aurora-Ldk66p1A.js → Aurora-wHi_XgNK.js} +1 -1
  27. package/dist-embed-sighting-editor/{AuroraEditor-CGSomAFk.js → AuroraEditor-CHAo9LbG.js} +1 -1
  28. package/dist-embed-sighting-editor/{AuroraSimulation-vKcv2Hue.js → AuroraSimulation-CMoKbd0k.js} +2 -2
  29. package/dist-embed-sighting-editor/{BallesterGuaspAssessor-CJyRqwvh.js → BallesterGuaspAssessor-Bylahnc2.js} +1 -1
  30. package/dist-embed-sighting-editor/{BalloonEditor-CgO4LaWn.js → BalloonEditor-DOmOj25v.js} +1 -1
  31. package/dist-embed-sighting-editor/{BalloonFlight-hLr_4TFU.js → BalloonFlight-DkhpbdZV.js} +1 -1
  32. package/dist-embed-sighting-editor/{BeamEditor-B8qreA3j.js → BeamEditor-CwC6pRPq.js} +1 -1
  33. package/dist-embed-sighting-editor/{BeamSystem-D0hrju5J.js → BeamSystem-Zsq9zuJa.js} +1 -1
  34. package/dist-embed-sighting-editor/{BirdEditor-BNzrfSqX.js → BirdEditor-DslUOI4x.js} +1 -1
  35. package/dist-embed-sighting-editor/{BirdFlock-iSovVEZd.js → BirdFlock-BoXaV-S_.js} +1 -1
  36. package/dist-embed-sighting-editor/{CaseElement-D80gHg4r.js → CaseElement-DFnjs2AU.js} +6 -5
  37. package/dist-embed-sighting-editor/{CaseReportExport-Bv6FWPs2.js → CaseReportExport-CX87uNr9.js} +1 -1
  38. package/dist-embed-sighting-editor/{ContrailSystem-D3tXAg2r.js → ContrailSystem-hUtlCEq-.js} +1 -1
  39. package/dist-embed-sighting-editor/{ControlPasses-CaVHMhEY.js → ControlPasses-C8qq_tSL.js} +1 -1
  40. package/dist-embed-sighting-editor/{CoverageAssessor-CTfHqAd_.js → CoverageAssessor-uzQnTEH8.js} +1 -1
  41. package/dist-embed-sighting-editor/{DroneEditor-BFsArPKi.js → DroneEditor-M2V3FKbS.js} +1 -1
  42. package/dist-embed-sighting-editor/{DroneFlight-B96pVrY1.js → DroneFlight-C1bur42A.js} +1 -1
  43. package/dist-embed-sighting-editor/{DroneParameters-DW-enQUo.js → DroneParameters-DRfoxMx8.js} +1 -1
  44. package/dist-embed-sighting-editor/{Flightradar24Provider-CBGkjw03.js → Flightradar24Provider-BJDB9e9p.js} +1 -1
  45. package/dist-embed-sighting-editor/{GLTFLoader-CrRPu-Pt.js → GLTFLoader-CQrldtm5.js} +1 -1
  46. package/dist-embed-sighting-editor/{HeadlightSystem-BmPfcHt1.js → HeadlightSystem-BzXjwGDi.js} +1 -1
  47. package/dist-embed-sighting-editor/HvsMessages_en-BiLhEAxJ.js +1 -0
  48. package/dist-embed-sighting-editor/HvsMessages_es-Cbj_6eFs.js +1 -0
  49. package/dist-embed-sighting-editor/HvsMessages_fr-DkvE2qm1.js +1 -0
  50. package/dist-embed-sighting-editor/HvsMessages_it-BIJ87Uyb.js +1 -0
  51. package/dist-embed-sighting-editor/{HynekAssessor-nBidt6QV.js → HynekAssessor-Bpze0IeH.js} +1 -1
  52. package/dist-embed-sighting-editor/{InterviewEditorElement-CQWfYlGL.js → InterviewEditorElement-C6y-8Wze.js} +6 -6
  53. package/dist-embed-sighting-editor/InterviewMessages_en-Ikx6GjEd.js +3 -0
  54. package/dist-embed-sighting-editor/InterviewMessages_es-DKWWyrnb.js +3 -0
  55. package/dist-embed-sighting-editor/InterviewMessages_fr-DT0gXAKD.js +3 -0
  56. package/dist-embed-sighting-editor/InterviewMessages_it-CF_9MYPt.js +3 -0
  57. package/dist-embed-sighting-editor/{LanternEditor-CjQVFowY.js → LanternEditor-6fXL9oHW.js} +1 -1
  58. package/dist-embed-sighting-editor/{LaserBeam-BVc8Mvhr.js → LaserBeam-Cl4c8oJt.js} +1 -1
  59. package/dist-embed-sighting-editor/{LaunchEditor-Cz8Mzo4a.js → LaunchEditor-C9swLaSJ.js} +1 -1
  60. package/dist-embed-sighting-editor/{LaunchPlume-CvBhTPgN.js → LaunchPlume-CPBS4JLE.js} +1 -1
  61. package/dist-embed-sighting-editor/{LaunchSimulation-CkZIG-3P.js → LaunchSimulation-zjImyFHC.js} +1 -1
  62. package/dist-embed-sighting-editor/{ModelSource-B153oeTu.js → ModelSource-ZiTya13j.js} +1 -1
  63. package/dist-embed-sighting-editor/{ModelThumbnails-BUL_OLFv.js → ModelThumbnails-BKl0Wk33.js} +1 -1
  64. package/dist-embed-sighting-editor/{ModelViewer-BzBLcY9s.js → ModelViewer-ZZnOiYz4.js} +1 -1
  65. package/dist-embed-sighting-editor/{ModuleConformance-CpMYkYgb.js → ModuleConformance-CYQ-Mn8w.js} +2 -2
  66. package/dist-embed-sighting-editor/ModuleSession-BklqVucx.js +3 -0
  67. package/dist-embed-sighting-editor/ModuleThree-jNUgMjnf.js +1 -0
  68. package/dist-embed-sighting-editor/ModulesPanelElement-MEFltyZr.js +26 -0
  69. package/dist-embed-sighting-editor/ModulesPanelMessages_en-CXQhQMyu.js +1 -0
  70. package/dist-embed-sighting-editor/ModulesPanelMessages_es-Bj-cT3f4.js +1 -0
  71. package/dist-embed-sighting-editor/ModulesPanelMessages_fr-B-eaMXQz.js +1 -0
  72. package/dist-embed-sighting-editor/ModulesPanelMessages_it-C3fS8UFN.js +1 -0
  73. package/dist-embed-sighting-editor/{NearestApproach-Bxo_N7a9.js → NearestApproach-Bnx9Ld5_.js} +1 -1
  74. package/dist-embed-sighting-editor/{PoherAssessor-CEVA26zd.js → PoherAssessor-CNj_Nyci.js} +1 -1
  75. package/dist-embed-sighting-editor/{RailwaySystem-Ceb0_MVz.js → RailwaySystem-Dn-v2OAb.js} +1 -1
  76. package/dist-embed-sighting-editor/ReadingCheckTexts_en-C5qzU8K7.js +1 -0
  77. package/dist-embed-sighting-editor/ReadingCheckTexts_es-DdhtmSew.js +1 -0
  78. package/dist-embed-sighting-editor/ReadingCheckTexts_fr-COtovvqc.js +1 -0
  79. package/dist-embed-sighting-editor/ReadingCheckTexts_it-Bz32XGh6.js +1 -0
  80. package/dist-embed-sighting-editor/{ReentryEditor-BWCK2g_s.js → ReentryEditor-DPt4At81.js} +1 -1
  81. package/dist-embed-sighting-editor/{ReentrySimulation-B09JXMu5.js → ReentrySimulation-DwaQrNN5.js} +1 -1
  82. package/dist-embed-sighting-editor/{ReferenceSystem-B15kw0uH.js → ReferenceSystem-DlaF5KWz.js} +1 -1
  83. package/dist-embed-sighting-editor/{SearchlightEditor-BpwPOhJ6.js → SearchlightEditor-CdTMwgER.js} +1 -1
  84. package/dist-embed-sighting-editor/{SearchlightSystem-D7sdsRYn.js → SearchlightSystem-jipCae7J.js} +1 -1
  85. package/dist-embed-sighting-editor/SightingEditorMessages_en-BmqJK2u_.js +12 -0
  86. package/dist-embed-sighting-editor/SightingEditorMessages_es-avQMqPMq.js +12 -0
  87. package/dist-embed-sighting-editor/SightingEditorMessages_fr-ClEadK1E.js +12 -0
  88. package/dist-embed-sighting-editor/SightingEditorMessages_it-Co5behaA.js +12 -0
  89. package/dist-embed-sighting-editor/{SightingElement-Bp-t_EAF.js → SightingElement-C6CT6DBZ.js} +2 -2
  90. package/dist-embed-sighting-editor/{SkyLantern-D6bru_e_.js → SkyLantern-CYhqKOnv.js} +1 -1
  91. package/dist-embed-sighting-editor/{TraceSystem-Bv4kLpie.js → TraceSystem-Bj0G3fL7.js} +2 -2
  92. package/dist-embed-sighting-editor/{WaterSystem-Bbk_RJKg.js → WaterSystem-Cv4v7PXz.js} +2 -2
  93. package/{dist-embed-ufoathome/caseSchema-BEJTs2Ld.js → dist-embed-sighting-editor/caseSchema-Cukbjeex.js} +1 -1
  94. package/dist-embed-sighting-editor/rr0-sighting-editor.mjs +464 -416
  95. package/dist-embed-sighting-editor/{trafficRuntime-Bu3my6S4.js → trafficRuntime-BdBceXei.js} +1 -1
  96. package/dist-embed-ufoathome/{AdsbLolArchiveProvider-v1sSwhN1.js → AdsbLolArchiveProvider-D169IKdZ.js} +1 -1
  97. package/dist-embed-ufoathome/{AirshipEditor-CBSrQM3J.js → AirshipEditor-EBfUtSiB.js} +1 -1
  98. package/dist-embed-ufoathome/{AirshipFlight-Dzpw8HRM.js → AirshipFlight-6yYGIRn8.js} +1 -1
  99. package/dist-embed-ufoathome/{Aurora-Dc4u2vEw.js → Aurora-CP_Xi-9o.js} +1 -1
  100. package/dist-embed-ufoathome/{AuroraEditor-CeLzRDPj.js → AuroraEditor-B_Rxo_6I.js} +1 -1
  101. package/dist-embed-ufoathome/{AuroraSimulation-BT1CdWX5.js → AuroraSimulation-KHkJyuus.js} +1 -1
  102. package/dist-embed-ufoathome/{BallesterGuaspAssessor-CPW-Omah.js → BallesterGuaspAssessor-58lmGHUw.js} +1 -1
  103. package/dist-embed-ufoathome/{BalloonEditor-dCIjTsIz.js → BalloonEditor-CAKXO8DQ.js} +2 -2
  104. package/dist-embed-ufoathome/{BalloonFlight-CztT6ddg.js → BalloonFlight-CvE7AHlm.js} +1 -1
  105. package/dist-embed-ufoathome/{BeamEditor-BS73mBZU.js → BeamEditor-BOsTgbHL.js} +1 -1
  106. package/dist-embed-ufoathome/{BeamSystem-C5EpRhij.js → BeamSystem-C7OL1VWr.js} +1 -1
  107. package/dist-embed-ufoathome/{BirdEditor-Dk3huwHa.js → BirdEditor-CBVGyUnK.js} +1 -1
  108. package/dist-embed-ufoathome/{BodyEditor-BV8WwzAj.js → BodyEditor-DZ9-YBfo.js} +1 -1
  109. package/dist-embed-ufoathome/{CaseEditorElement-HR8RFluQ.js → CaseEditorElement-BgT6HnpX.js} +73 -69
  110. package/dist-embed-ufoathome/CaseElement-DVXLO8mr.js +132 -0
  111. package/dist-embed-ufoathome/{CaseReportExport-XLbFCkPg.js → CaseReportExport-Dui5KDc5.js} +3 -3
  112. package/dist-embed-ufoathome/ColumnResize-CO4e1m-q.js +208 -0
  113. package/dist-embed-ufoathome/ConsentMessages_en-DBKCeDAn.js +1 -0
  114. package/dist-embed-ufoathome/ConsentMessages_es-Dby74lUq.js +1 -0
  115. package/dist-embed-ufoathome/ConsentMessages_fr-FGSpqzMc.js +1 -0
  116. package/dist-embed-ufoathome/ConsentMessages_it-BJWfXH6I.js +1 -0
  117. package/dist-embed-ufoathome/{ControlPasses-CKOU_3lG.js → ControlPasses-CJ2jMdlf.js} +1 -1
  118. package/dist-embed-ufoathome/{CoverageAssessor-BYMf3Qhv.js → CoverageAssessor-CzhOt6fv.js} +1 -1
  119. package/dist-embed-ufoathome/{DroneEditor-D60uhSHO.js → DroneEditor-7X9CM_3H.js} +1 -1
  120. package/dist-embed-ufoathome/{Flightradar24Provider-_QPbhh5s.js → Flightradar24Provider-TCNh_VXc.js} +1 -1
  121. package/dist-embed-ufoathome/{GLTFLoader-DQeHB-Bk.js → GLTFLoader-BaIfBICM.js} +1 -1
  122. package/dist-embed-ufoathome/{GeoJsonExport-Pq_pPvjK.js → GeoJsonExport-B5AFUVEM.js} +1 -1
  123. package/dist-embed-ufoathome/GeographicFigures-DrlbDt4f.js +1 -0
  124. package/dist-embed-ufoathome/HvsMessages_en-BiLhEAxJ.js +1 -0
  125. package/dist-embed-ufoathome/HvsMessages_es-Cbj_6eFs.js +1 -0
  126. package/dist-embed-ufoathome/HvsMessages_fr-DkvE2qm1.js +1 -0
  127. package/dist-embed-ufoathome/HvsMessages_it-BIJ87Uyb.js +1 -0
  128. package/dist-embed-ufoathome/{HynekAssessor-wCDhgIB8.js → HynekAssessor-DaCcWwTH.js} +1 -1
  129. package/dist-embed-ufoathome/{InterviewEditorElement-BSwkegEp.js → InterviewEditorElement-o21YUvNz.js} +6 -6
  130. package/dist-embed-ufoathome/{InterviewElement-CfkDtybc.js → InterviewElement-K_oIXneA.js} +2 -2
  131. package/dist-embed-ufoathome/InterviewMessages_en-Ikx6GjEd.js +3 -0
  132. package/dist-embed-ufoathome/InterviewMessages_es-DKWWyrnb.js +3 -0
  133. package/dist-embed-ufoathome/InterviewMessages_fr-DT0gXAKD.js +3 -0
  134. package/dist-embed-ufoathome/InterviewMessages_it-CF_9MYPt.js +3 -0
  135. package/dist-embed-ufoathome/{KmlExport-BMNwwys8.js → KmlExport-BfiqE1s2.js} +1 -1
  136. package/dist-embed-ufoathome/{LanternEditor-BapUZdog.js → LanternEditor-CepeoImr.js} +1 -1
  137. package/dist-embed-ufoathome/{LaserBeam-B-tlAzNB.js → LaserBeam-IRXmv6wc.js} +1 -1
  138. package/dist-embed-ufoathome/{LaunchEditor-Cy5D-gwU.js → LaunchEditor-C4hq0VUw.js} +1 -1
  139. package/dist-embed-ufoathome/{LaunchPlume-D-vSb8tJ.js → LaunchPlume-CujlF3wZ.js} +1 -1
  140. package/dist-embed-ufoathome/{LaunchSimulation-CZ8Oba00.js → LaunchSimulation-58_ZZy8q.js} +1 -1
  141. package/dist-embed-ufoathome/{ModelSource-HSiigkeO.js → ModelSource-Bz25TN6e.js} +1 -1
  142. package/dist-embed-ufoathome/{ModelThumbnails-DWvRMmj_.js → ModelThumbnails-CcYlw6gA.js} +1 -1
  143. package/dist-embed-ufoathome/{ModelViewer-CM7qTW8F.js → ModelViewer-CD90RTYi.js} +1 -1
  144. package/dist-embed-ufoathome/ModuleSession-Dac4fD0X.js +3 -0
  145. package/dist-embed-ufoathome/ModulesPanelElement-DZxFsuuG.js +18 -0
  146. package/dist-embed-ufoathome/ModulesPanelMessages_en-Dir0ADQe.js +1 -0
  147. package/dist-embed-ufoathome/ModulesPanelMessages_es-B_ITNG5N.js +1 -0
  148. package/dist-embed-ufoathome/ModulesPanelMessages_fr-DbKLtD8s.js +1 -0
  149. package/dist-embed-ufoathome/ModulesPanelMessages_it-CE0q7D2c.js +1 -0
  150. package/dist-embed-ufoathome/NearestApproach-DsszB5Rd.js +1 -0
  151. package/dist-embed-ufoathome/{PoherAssessor-CniYlhUl.js → PoherAssessor-BkCJ1UTQ.js} +1 -1
  152. package/dist-embed-ufoathome/QuestionnaireFeed-DmyYcwwf.js +1 -0
  153. package/dist-embed-ufoathome/QuestionnaireForm-vT3C3qXt.js +1 -0
  154. package/dist-embed-ufoathome/QuestionnaireImport-BlTDOHWj.js +5 -0
  155. package/dist-embed-ufoathome/ReadingCheckTexts_en-C5qzU8K7.js +1 -0
  156. package/dist-embed-ufoathome/ReadingCheckTexts_es-DdhtmSew.js +1 -0
  157. package/dist-embed-ufoathome/ReadingCheckTexts_fr-COtovvqc.js +1 -0
  158. package/dist-embed-ufoathome/ReadingCheckTexts_it-Bz32XGh6.js +1 -0
  159. package/dist-embed-ufoathome/{ReentryEditor-Qax1sT82.js → ReentryEditor-BjyUUZGU.js} +1 -1
  160. package/dist-embed-ufoathome/{ReentrySimulation-CTeCaxZl.js → ReentrySimulation-5VI9Dla4.js} +1 -1
  161. package/dist-embed-ufoathome/{ReferenceSystem-CM27OCUo.js → ReferenceSystem-C0ZXvatV.js} +1 -1
  162. package/dist-embed-ufoathome/ScenarioReadings-CBWjF8TY.js +1 -0
  163. package/dist-embed-ufoathome/ScenarioSweep-MaryBOLs.js +1 -0
  164. package/dist-embed-ufoathome/{SearchlightEditor-PuLz84pp.js → SearchlightEditor-DPU1PgfT.js} +1 -1
  165. package/dist-embed-ufoathome/{SearchlightSystem-B-tHvY1M.js → SearchlightSystem-m0a11CEu.js} +1 -1
  166. package/dist-embed-ufoathome/{ShareDialogElement-EzLob2Tz.js → ShareDialogElement-DqCoQwtn.js} +44 -44
  167. package/dist-embed-ufoathome/{Sighting-B7bsiTIQ.js → Sighting-D-_IYi9n.js} +1 -1
  168. package/dist-embed-ufoathome/SightingEditorMessages_en-BmqJK2u_.js +12 -0
  169. package/dist-embed-ufoathome/SightingEditorMessages_es-avQMqPMq.js +12 -0
  170. package/dist-embed-ufoathome/SightingEditorMessages_fr-ClEadK1E.js +12 -0
  171. package/dist-embed-ufoathome/SightingEditorMessages_it-Co5behaA.js +12 -0
  172. package/dist-embed-ufoathome/{SightingElement--qpGoyxL.js → SightingElement-CUrYpWRD.js} +2 -2
  173. package/dist-embed-ufoathome/{TraceSystem-8XQX03MS.js → TraceSystem-BLumvnJD.js} +1 -1
  174. package/dist-embed-ufoathome/UfoAtHomeMessages_en-ByVu39KF.js +1 -0
  175. package/dist-embed-ufoathome/UfoAtHomeMessages_es-D9bLboxq.js +1 -0
  176. package/dist-embed-ufoathome/UfoAtHomeMessages_fr-nTqRf0ZK.js +1 -0
  177. package/dist-embed-ufoathome/UfoAtHomeMessages_it-4cZC5-y5.js +1 -0
  178. package/dist-embed-ufoathome/{VideoButton-WNtEngz-.js → VideoButton-hYfTEunC.js} +1 -1
  179. package/{dist-embed-sighting-editor/caseSchema-BEJTs2Ld.js → dist-embed-ufoathome/caseSchema-Cukbjeex.js} +1 -1
  180. package/dist-embed-ufoathome/rr0-ufoathome.mjs +35 -17
  181. package/dist-embed-ufoathome/{surroundingsSources-UHKGesPa.js → surroundingsSources-BWHnZ_qg.js} +1 -1
  182. package/dist-embed-ufoathome/{trafficRuntime-CgY_7-NH.js → trafficRuntime-Xpncp71U.js} +2 -2
  183. package/package.json +1 -1
  184. package/dist-embed-interview/InterviewMessages_en-BrnxG2rl.js +0 -3
  185. package/dist-embed-interview/InterviewMessages_es-Dxfjqrte.js +0 -3
  186. package/dist-embed-interview/InterviewMessages_fr-DIA-1qu8.js +0 -3
  187. package/dist-embed-interview/InterviewMessages_it-CYBEIKX-.js +0 -3
  188. package/dist-embed-scene/ModuleSession-bj7QHWjO.js +0 -3
  189. package/dist-embed-sighting/InterviewMessages_en-BrnxG2rl.js +0 -3
  190. package/dist-embed-sighting/InterviewMessages_es-Dxfjqrte.js +0 -3
  191. package/dist-embed-sighting/InterviewMessages_fr-DIA-1qu8.js +0 -3
  192. package/dist-embed-sighting/InterviewMessages_it-CYBEIKX-.js +0 -3
  193. package/dist-embed-sighting/ModuleSession-DztK084a.js +0 -3
  194. package/dist-embed-sighting/ReadingCheckTexts_en-eq6teExJ.js +0 -1
  195. package/dist-embed-sighting/ReadingCheckTexts_es-CR_JJZMV.js +0 -1
  196. package/dist-embed-sighting/ReadingCheckTexts_fr-pcDleIvY.js +0 -1
  197. package/dist-embed-sighting/ReadingCheckTexts_it-MFKeoXnq.js +0 -1
  198. package/dist-embed-sighting-editor/InterviewMessages_en-BrnxG2rl.js +0 -3
  199. package/dist-embed-sighting-editor/InterviewMessages_es-Dxfjqrte.js +0 -3
  200. package/dist-embed-sighting-editor/InterviewMessages_fr-DIA-1qu8.js +0 -3
  201. package/dist-embed-sighting-editor/InterviewMessages_it-CYBEIKX-.js +0 -3
  202. package/dist-embed-sighting-editor/ModuleSession-b_pmjUfP.js +0 -3
  203. package/dist-embed-sighting-editor/ModuleThree-B_FZVqsf.js +0 -1
  204. package/dist-embed-sighting-editor/ModulesPanelElement-D0gn9Z-y.js +0 -15
  205. package/dist-embed-sighting-editor/ModulesPanelMessages_en-DuwrY3Pm.js +0 -1
  206. package/dist-embed-sighting-editor/ModulesPanelMessages_es-Bq5X-XuT.js +0 -1
  207. package/dist-embed-sighting-editor/ModulesPanelMessages_fr-B8cSDc6o.js +0 -1
  208. package/dist-embed-sighting-editor/ModulesPanelMessages_it-BdC626aJ.js +0 -1
  209. package/dist-embed-sighting-editor/ReadingCheckTexts_en-eq6teExJ.js +0 -1
  210. package/dist-embed-sighting-editor/ReadingCheckTexts_es-CR_JJZMV.js +0 -1
  211. package/dist-embed-sighting-editor/ReadingCheckTexts_fr-pcDleIvY.js +0 -1
  212. package/dist-embed-sighting-editor/ReadingCheckTexts_it-MFKeoXnq.js +0 -1
  213. package/dist-embed-sighting-editor/SightingEditorMessages_en-k7_ua2OM.js +0 -12
  214. package/dist-embed-sighting-editor/SightingEditorMessages_es-Drqbbr5_.js +0 -12
  215. package/dist-embed-sighting-editor/SightingEditorMessages_fr-B_K5hsuV.js +0 -12
  216. package/dist-embed-sighting-editor/SightingEditorMessages_it-QCLg1d7x.js +0 -12
  217. package/dist-embed-sighting-editor/angular-size-CxoysZle.png +0 -0
  218. package/dist-embed-sighting-editor/azimuth-CvjiPmz0.png +0 -0
  219. package/dist-embed-sighting-editor/elevation-DPr5S6Jt.png +0 -0
  220. package/dist-embed-sighting-editor/geipan-qt-2025-B_RUiH8B.js +0 -7
  221. package/dist-embed-sighting-editor/protractor-DyE30B87.png +0 -0
  222. package/dist-embed-ufoathome/CaseElement-vCbCfGOv.js +0 -131
  223. package/dist-embed-ufoathome/ColumnResize-CEXrq3KB.js +0 -164
  224. package/dist-embed-ufoathome/GeographicFigures-KII55iXE.js +0 -1
  225. package/dist-embed-ufoathome/InterviewAttachments-BP6Prvdu.js +0 -1
  226. package/dist-embed-ufoathome/InterviewMessages_en-BrnxG2rl.js +0 -3
  227. package/dist-embed-ufoathome/InterviewMessages_es-Dxfjqrte.js +0 -3
  228. package/dist-embed-ufoathome/InterviewMessages_fr-DIA-1qu8.js +0 -3
  229. package/dist-embed-ufoathome/InterviewMessages_it-CYBEIKX-.js +0 -3
  230. package/dist-embed-ufoathome/ModuleSession-BKDWGSEo.js +0 -3
  231. package/dist-embed-ufoathome/ModulesPanelElement-DsOa2zH0.js +0 -15
  232. package/dist-embed-ufoathome/ModulesPanelMessages_en-DuwrY3Pm.js +0 -1
  233. package/dist-embed-ufoathome/ModulesPanelMessages_es-Bq5X-XuT.js +0 -1
  234. package/dist-embed-ufoathome/ModulesPanelMessages_fr-B8cSDc6o.js +0 -1
  235. package/dist-embed-ufoathome/ModulesPanelMessages_it-BdC626aJ.js +0 -1
  236. package/dist-embed-ufoathome/NearestApproach-PAsV5RlG.js +0 -1
  237. package/dist-embed-ufoathome/QuestionnaireFeed-CpZqkxlt.js +0 -1
  238. package/dist-embed-ufoathome/QuestionnaireForm-LkllpNx-.js +0 -1
  239. package/dist-embed-ufoathome/QuestionnaireImport-CNROmkT2.js +0 -5
  240. package/dist-embed-ufoathome/ReadingCheckTexts_en-eq6teExJ.js +0 -1
  241. package/dist-embed-ufoathome/ReadingCheckTexts_es-CR_JJZMV.js +0 -1
  242. package/dist-embed-ufoathome/ReadingCheckTexts_fr-pcDleIvY.js +0 -1
  243. package/dist-embed-ufoathome/ReadingCheckTexts_it-MFKeoXnq.js +0 -1
  244. package/dist-embed-ufoathome/ScenarioReadings-Is3HX0n0.js +0 -1
  245. package/dist-embed-ufoathome/ScenarioSweep-BbtX26Fi.js +0 -1
  246. package/dist-embed-ufoathome/SightingEditorMessages_en-k7_ua2OM.js +0 -12
  247. package/dist-embed-ufoathome/SightingEditorMessages_es-Drqbbr5_.js +0 -12
  248. package/dist-embed-ufoathome/SightingEditorMessages_fr-B_K5hsuV.js +0 -12
  249. package/dist-embed-ufoathome/SightingEditorMessages_it-QCLg1d7x.js +0 -12
  250. package/dist-embed-ufoathome/UfoAtHomeMessages_en-BK2qJyZN.js +0 -1
  251. package/dist-embed-ufoathome/UfoAtHomeMessages_es-B1-NDCau.js +0 -1
  252. package/dist-embed-ufoathome/UfoAtHomeMessages_fr-BTG047qo.js +0 -1
  253. package/dist-embed-ufoathome/UfoAtHomeMessages_it-Ryxv4HNU.js +0 -1
  254. package/dist-embed-ufoathome/angular-size-CxoysZle.png +0 -0
  255. package/dist-embed-ufoathome/azimuth-CvjiPmz0.png +0 -0
  256. package/dist-embed-ufoathome/elevation-DPr5S6Jt.png +0 -0
  257. package/dist-embed-ufoathome/geipan-qt-2025-B_RUiH8B.js +0 -7
  258. package/dist-embed-ufoathome/protractor-DyE30B87.png +0 -0
@@ -1,4 +1,4 @@
1
- import{M as y,_ as d}from"./rr0-ufoathome.mjs";import{b,P as E,I as g}from"./SaidPosition-OJEYhVKN.js";import{S as w}from"./SkyEventEditorStyle-CvY_AhbI.js";import{L as v}from"./LaunchPlume-D-vSb8tJ.js";import{ba as j}from"./ShareDialogElement-EzLob2Tz.js";import{P as x,E as k,a as T}from"./ParameterForm-XbqxCLRn.js";import{T as I}from"./TimelineTracks-Daaqw9ly.js";import"./GeoProjection-DvqDbRIx.js";import"./Sighting-B7bsiTIQ.js";import"./VisualAids-DI-hEL46.js";import"./three.module-CbaHqYFq.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.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=>v.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),c=(m,h)=>m+(h-m)*l;return{t,lat:c(s.lat,a.lat),lng:c(s.lng,a.lng),altitudeKm:Math.max(0,c(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(v.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 P=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,w.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([P.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">
1
+ import{M as y,_ as d}from"./rr0-ufoathome.mjs";import{b,P as E,I as g}from"./SaidPosition-OJEYhVKN.js";import{S as w}from"./SkyEventEditorStyle-CvY_AhbI.js";import{L as v}from"./LaunchPlume-CujlF3wZ.js";import{ba as j}from"./ShareDialogElement-DqCoQwtn.js";import{P as x,E as k,a as T}from"./ParameterForm-XbqxCLRn.js";import{T as I}from"./TimelineTracks-Daaqw9ly.js";import"./GeoProjection-DvqDbRIx.js";import"./Sighting-D-_IYi9n.js";import"./VisualAids-DI-hEL46.js";import"./three.module-CbaHqYFq.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.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=>v.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),c=(m,h)=>m+(h-m)*l;return{t,lat:c(s.lat,a.lat),lng:c(s.lng,a.lng),altitudeKm:Math.max(0,c(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(v.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 P=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,w.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([P.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
2
  <p class="launch-intro">${e.intro}</p>
3
3
  <div id="launch-list"></div>
4
4
  <div id="launch-fields" class="launch-fields">
@@ -1 +1 @@
1
- import{bd as w,be as F,bf as v,bg as Y,q as H}from"./ShareDialogElement-EzLob2Tz.js";class K{static MU=398600.4418;static OMEGA=72921159e-12;static EARTH_RADIUS_KM=6371;static STEP_S=1;static DENSITY=[[0,1.225],[20,.0889],[40,.004],[60,31e-5],[80,185e-7],[100,56e-8],[120,222e-10],[150,208e-11],[200,254e-12],[250,607e-13],[300,192e-13],[400,28e-13],[500,522e-15],[600,114e-15],[700,307e-16],[800,114e-16],[900,576e-17],[1e3,356e-17]];static FREE_PATH_TIMES_DENSITY=68e-9;static ICE_DENSITY=917;static airDensity(s){const t=K.DENSITY;if(s<=t[0][0])return t[0][1];let e=0;for(;e<t.length-2&&t[e+1][0]<s;)e++;const[a,i]=t[e],[o,n]=t[e+1];return i*Math.exp(Math.log(n/i)*(s-a)/(o-a))}static dragPerKm(s,t,e,a=.5){const i=K.airDensity(s),o=K.FREE_PATH_TIMES_DENSITY/i/1e3,n=Math.exp(-o/t),p=i*1e9*Math.PI*t*t/Math.max(e,1e-9),d=3*i/(4*a*1e-6*K.ICE_DENSITY)*1e3;return n*p+(1-n)*d}static step(s,t,e,a,i){const[o,n,p,d,R,h]=s,m=Math.hypot(o,n,p),T=K.OMEGA,M=-398600.4418/(m*m*m),y=M*o+2*T*R+T*T*o,U=M*n-2*T*d+T*T*n,I=M*p,E=Math.hypot(d,R,h),c=1/(1+K.dragPerKm(m-K.EARTH_RADIUS_KM,e,a,i)*E*t);s[3]=(d+y*t)*c,s[4]=(R+U*t)*c,s[5]=(h+I*t)*c,s[0]=o+s[3]*t,s[1]=n+s[4]*t,s[2]=p+s[5]*t;const f=Math.hypot(s[0],s[1],s[2]);if(f<K.EARTH_RADIUS_KM){const A=K.EARTH_RADIUS_KM/f;s[0]*=A,s[1]*=A,s[2]*=A,s[3]=s[4]=s[5]=0}}}class _{constructor(s,t,e,a,i=.5){this.massKg=e,this.radiusAt=a,this.particleRadiusUm=i,this.state=Float64Array.of(...s,...t),this.positions=new Float64Array(192),this.positions.set(s,0)}positions;steps=0;state;at(s){const t=K.STEP_S,e=Math.max(0,s/t),a=Math.ceil(e);for(;this.steps<a;){if(K.step(this.state,t,this.radiusAt(this.steps*t),this.massKg,this.particleRadiusUm),this.steps++,3*(this.steps+1)>this.positions.length){const p=new Float64Array(this.positions.length*2);p.set(this.positions),this.positions=p}this.positions.set(this.state.subarray(0,3),3*this.steps)}const i=Math.floor(e),o=e-i,n=this.positions;return o===0||i>=this.steps?[n[3*i],n[3*i+1],n[3*i+2]]:[0,1,2].map(p=>n[3*i+p]+(n[3*i+3+p]-n[3*i+p])*o)}}class r{static EARTH_RADIUS_KM=6371;static SHADOW_RADIUS_KM=r.EARTH_RADIUS_KM+15;static PENUMBRA_KM=10;static SUN_ILLUMINANCE_LUX=127e3;static RAYLEIGH_PER_M=[58e-7,135e-7,331e-7];static SCALE_HEIGHT_M=8e3;static OZONE_GRAZING_DEPTH=[2.4,1.8,.24];static ANISOTROPY=.7;static ALBEDO=.99;static WAVELENGTHS_UM=[.61,.55,.465];static ICE_INDEX=1.31;static DEFAULTS={exhaustKgPerS:273,condensedShare:.065,particleRadiusUm:.5,expansionKmPerS:.15,initialRadiusKm:.5,lifetimeS:420,collarShare:.85,collarExpansionKmPerS:2.5,collarLifetimeS:20};static PROPELLANTS={"rp1-lox":{condensedShare:.065,particleRadiusUm:.5},"methane-lox":{condensedShare:.09,particleRadiusUm:.5},"hydrogen-lox":{condensedShare:.13,particleRadiusUm:.5},hypergolic:{condensedShare:.079,particleRadiusUm:.4},solid:{condensedShare:.27,particleRadiusUm:.8}};static G0=9.80665;static COLLAR_SPREAD_OF_EXHAUST_VELOCITY=.735;static plumeOf(s){const t={},e=s.vehicle?.engine;if(e){const a=e.specificImpulseS===void 0?void 0:e.specificImpulseS*r.G0;e.thrustKN!==void 0&&a&&(t.exhaustKgPerS=e.thrustKN*1e3/a),a&&(t.collarExpansionKmPerS=a/1e3*r.COLLAR_SPREAD_OF_EXHAUST_VELOCITY),e.propellant&&Object.assign(t,r.PROPELLANTS[e.propellant])}return{...r.DEFAULTS,...t,...s.plume}}static PUFF_EVERY_S=.5;static SIGMA_OF_RADIUS=.5;static MAX_PUFFS=320;static DEG=Math.PI/180;static EARTH_ROTATION=72921159e-12;static VENT_DEFAULTS={speedKmPerS:.7,massKgPerS:20,condensedShare:.5,particleRadiusUm:.5,expansionKmPerS:.1,initialRadiusKm:.2,lifetimeS:600};static paths=new WeakMap;static exhaustVelocityKmPerS(s){return(s.vehicle?.engine?.specificImpulseS??348)*r.G0/1e3}static releasesOf(s){const t=[],e=s.jets??[];if(e.length===0||s.burnFromT!==void 0||s.burnUntilT!==void 0){const a=s.track[0]?.t??0,i=s.track[s.track.length-1]?.t??0;t.push(r.engineRelease(s,"burn",{fromT:s.burnFromT??a,untilT:s.burnUntilT??i}))}return e.forEach((a,i)=>t.push(r.releaseOf(s,a,i))),t}static releaseOf(s,t,e){const a=`jet:${t.id??e}`;if((t.kind??"burn")==="burn")return r.engineRelease(s,a,t);const i=r.VENT_DEFAULTS;return{key:a,fromT:t.fromT,untilT:t.untilT,angleDeg:t.angleDeg??0,azimuthDeg:t.azimuthDeg??0,spinPeriodS:t.spinPeriodS,speedKmPerS:t.speedKmPerS??i.speedKmPerS,massKgPerS:t.massKgPerS??i.massKgPerS,condensedShare:t.condensedShare??i.condensedShare,particleRadiusUm:t.particleRadiusUm??i.particleRadiusUm,initialRadiusKm:t.initialRadiusKm??i.initialRadiusKm,populations:[{share:1,expansionKmPerS:t.expansionKmPerS??i.expansionKmPerS,lifetimeS:t.lifetimeS??i.lifetimeS}]}}static engineRelease(s,t,e){const a=r.plumeOf(s);return{key:t,fromT:e.fromT,untilT:e.untilT,angleDeg:e.angleDeg??0,azimuthDeg:e.azimuthDeg??0,spinPeriodS:e.spinPeriodS,speedKmPerS:e.speedKmPerS??r.exhaustVelocityKmPerS(s),massKgPerS:e.massKgPerS??a.exhaustKgPerS,condensedShare:e.condensedShare??a.condensedShare,particleRadiusUm:e.particleRadiusUm??a.particleRadiusUm,initialRadiusKm:e.initialRadiusKm??a.initialRadiusKm,populations:[{share:1-a.collarShare,expansionKmPerS:e.expansionKmPerS??a.expansionKmPerS,lifetimeS:e.lifetimeS??a.lifetimeS},{share:a.collarShare,expansionKmPerS:a.collarExpansionKmPerS,lifetimeS:a.collarLifetimeS}]}}static extinctionEfficiency(s,t){const e=2*Math.PI*s/t,a=r.ICE_INDEX**2,i=8/3*e**4*((a-1)/(a+2))**2,o=2*e*(r.ICE_INDEX-1),n=o<.001?o*o/2:2-4/o*Math.sin(o)+4/(o*o)*(1-Math.cos(o));return Math.min(i,n)}static scatteringColour(s){const t=r.extinctionEfficiency(s,r.WAVELENGTHS_UM[1]);return r.WAVELENGTHS_UM.map(e=>r.extinctionEfficiency(s,e)/t)}static sunDirectionAt(s){const t=new w(0,0,-6378137),e=F(v.Sun,s,t,!0,!0),a=(e.ra-Y(s))*15*r.DEG,i=e.dec*r.DEG;return[Math.cos(i)*Math.cos(a),Math.cos(i)*Math.sin(a),Math.sin(i)]}static puffsAt(s,t){const e=[];for(const a of s){let i=r.paths.get(a);i||r.paths.set(a,i=new Map);for(const o of r.releasesOf(a)){const n=Math.min(o.untilT,t);if(n<=o.fromT)continue;const p=Math.max(r.PUFF_EVERY_S*1e3,(o.untilT-o.fromT)/r.MAX_PUFFS),d=[];for(let M=o.fromT;M<n;M+=p)d.push(M);d.push(n);const R=o.massKgPerS*(p/1e3),m=3*r.extinctionEfficiency(o.particleRadiusUm,r.WAVELENGTHS_UM[1])/(4*917*o.particleRadiusUm*1e-6),T=r.scatteringColour(o.particleRadiusUm);o.populations.forEach((M,y)=>{if(M.share<=0)return;const U=E=>o.initialRadiusKm+M.expansionKmPerS*E,I=[];for(const E of d){const D=(t-E)/1e3;if(D>M.lifetimeS)continue;const c=E!==n||n===o.untilT,f=`${o.key}|${y}|${E}`;let A=c?i.get(f):void 0;if(!A){if(A=r.launchPuff(a,o,E,R*M.share,U),!A)continue;c&&i.set(f,A)}I.push({ageS:D,position:A.at(D)})}for(let E=I.length-1;E>=0;E--){const{ageS:D,position:c}=I[E],f=I[E-1]??I[E+1],A=f?Math.hypot(c[0]-f.position[0],c[1]-f.position[1],c[2]-f.position[2]):0,l=U(D)+A/2,O=r.SIGMA_OF_RADIUS*l*1e3,N=R*o.condensedShare*M.share*m/(2*Math.PI*O*O),x=Math.max(0,1-(D/M.lifetimeS)**2);N*x<=0||e.push({launchId:a.id,release:o.key,at:r.geoPoint(c),radiusKm:l,opticalDepth:N*x,colour:T,ageS:D})}})}}return e}static viewsAt(s,t,e,a){const i=[];for(const o of r.puffsAt(s,t)){const n=H.seenFrom(e,o.at);if(n.altitudeDeg<0)continue;const p=r.sunlightAt(o.at,a);if(p.lit<=0)continue;const d=r.scatteringPhase(e,o.at,a),R=r.SUN_ILLUMINANCE_LUX*r.ALBEDO*d*o.opticalDepth*p.lit;R<=0||i.push({launchId:o.launchId,release:o.release,heightKm:o.at.heightM/1e3,centre:n,radiusDeg:Math.atan2(o.radiusKm,n.distanceKm)/r.DEG,luminanceCdM2:R,sunTransmittance:p.transmittance,colour:o.colour,lit:p.lit,ageS:o.ageS})}return i}static launchPuff(s,t,e,a,i){const o={id:s.id,track:s.track,fragments:[]},n=H.leadAt(o,e);if(!n)return;const p=s.track[0].t,d=s.track[s.track.length-1].t,R=Math.max(p,e-500),h=Math.min(d,e+500),m=r.earthCentred(n),T=r.earthCentred(H.leadAt(o,R)),M=r.earthCentred(H.leadAt(o,h)),y=Math.max(.001,(h-R)/1e3),U=[0,1,2].map(S=>(M[S]-T[S])/y),I=r.EARTH_ROTATION,E=[U[0]-I*m[1],U[1]+I*m[0],U[2]],D=S=>{const b=Math.hypot(S[0],S[1],S[2])||1;return S.map(k=>k/b)},c=D(E),f=D(m),A=f[0]*c[0]+f[1]*c[1]+f[2]*c[2];let l=[f[0]-A*c[0],f[1]-A*c[1],f[2]-A*c[2]];Math.hypot(l[0],l[1],l[2])<1e-6&&(l=[-c[2]*c[0],-c[2]*c[1],1-c[2]*c[2]]),l=D(l);const O=[c[1]*l[2]-c[2]*l[1],c[2]*l[0]-c[0]*l[2],c[0]*l[1]-c[1]*l[0]],N=t.spinPeriodS?360*((e-t.fromT)/1e3)/t.spinPeriodS:0,x=(t.azimuthDeg+N)*r.DEG,G=t.angleDeg*r.DEG,C=[0,1,2].map(S=>-c[S]*Math.cos(G)+Math.sin(G)*(Math.cos(x)*l[S]+Math.sin(x)*O[S])),P=[0,1,2].map(S=>U[S]+t.speedKmPerS*C[S]);return new _(m,P,a,i,t.particleRadiusUm)}static geoPoint(s){const t=Math.hypot(s[0],s[1],s[2]);return{lat:Math.asin(s[2]/t)/r.DEG,lng:Math.atan2(s[1],s[0])/r.DEG,heightM:(t-K.EARTH_RADIUS_KM)*1e3}}static sunlightAt(s,t){const e=r.earthCentred(s),a=e[0]*t[0]+e[1]*t[1]+e[2]*t[2];if(a>=0)return{lit:1,transmittance:[1,1,1]};const i=Math.hypot(e[0]-a*t[0],e[1]-a*t[1],e[2]-a*t[2]),o=r.PENUMBRA_KM,n=Math.min(1,Math.max(0,(i-(r.SHADOW_RADIUS_KM-o/2))/o));if(n<=0)return{lit:0,transmittance:[0,0,0]};const p=Math.max(0,(i-r.EARTH_RADIUS_KM)*1e3),d=Math.exp(-p/r.SCALE_HEIGHT_M),R=Math.sqrt(2*Math.PI*r.EARTH_RADIUS_KM*1e3*r.SCALE_HEIGHT_M),h=Math.exp(-(((p/1e3-25)/15)**2)),m=[0,1,2].map(T=>Math.exp(-r.RAYLEIGH_PER_M[T]*d*R-r.OZONE_GRAZING_DEPTH[T]*h));return{lit:n,transmittance:m}}static scatteringPhase(s,t,e){const a=r.earthCentred(s),i=r.earthCentred(t),o=[a[0]-i[0],a[1]-i[1],a[2]-i[2]],n=Math.hypot(o[0],o[1],o[2])||1,p=-(o[0]*e[0]+o[1]*e[1]+o[2]*e[2])/n,d=r.ANISOTROPY;return(1-d*d)/(4*Math.PI*(1+d*d-2*d*p)**1.5)}static earthCentred(s){const t=s.lat*r.DEG,e=s.lng*r.DEG,a=r.EARTH_RADIUS_KM+s.heightM/1e3;return[a*Math.cos(t)*Math.cos(e),a*Math.cos(t)*Math.sin(e),a*Math.sin(t)]}}export{r as L};
1
+ import{bd as w,be as F,bf as v,bg as Y,t as H}from"./ShareDialogElement-DqCoQwtn.js";class K{static MU=398600.4418;static OMEGA=72921159e-12;static EARTH_RADIUS_KM=6371;static STEP_S=1;static DENSITY=[[0,1.225],[20,.0889],[40,.004],[60,31e-5],[80,185e-7],[100,56e-8],[120,222e-10],[150,208e-11],[200,254e-12],[250,607e-13],[300,192e-13],[400,28e-13],[500,522e-15],[600,114e-15],[700,307e-16],[800,114e-16],[900,576e-17],[1e3,356e-17]];static FREE_PATH_TIMES_DENSITY=68e-9;static ICE_DENSITY=917;static airDensity(s){const t=K.DENSITY;if(s<=t[0][0])return t[0][1];let e=0;for(;e<t.length-2&&t[e+1][0]<s;)e++;const[a,i]=t[e],[o,n]=t[e+1];return i*Math.exp(Math.log(n/i)*(s-a)/(o-a))}static dragPerKm(s,t,e,a=.5){const i=K.airDensity(s),o=K.FREE_PATH_TIMES_DENSITY/i/1e3,n=Math.exp(-o/t),p=i*1e9*Math.PI*t*t/Math.max(e,1e-9),d=3*i/(4*a*1e-6*K.ICE_DENSITY)*1e3;return n*p+(1-n)*d}static step(s,t,e,a,i){const[o,n,p,d,R,h]=s,m=Math.hypot(o,n,p),T=K.OMEGA,M=-398600.4418/(m*m*m),y=M*o+2*T*R+T*T*o,U=M*n-2*T*d+T*T*n,I=M*p,E=Math.hypot(d,R,h),c=1/(1+K.dragPerKm(m-K.EARTH_RADIUS_KM,e,a,i)*E*t);s[3]=(d+y*t)*c,s[4]=(R+U*t)*c,s[5]=(h+I*t)*c,s[0]=o+s[3]*t,s[1]=n+s[4]*t,s[2]=p+s[5]*t;const f=Math.hypot(s[0],s[1],s[2]);if(f<K.EARTH_RADIUS_KM){const A=K.EARTH_RADIUS_KM/f;s[0]*=A,s[1]*=A,s[2]*=A,s[3]=s[4]=s[5]=0}}}class _{constructor(s,t,e,a,i=.5){this.massKg=e,this.radiusAt=a,this.particleRadiusUm=i,this.state=Float64Array.of(...s,...t),this.positions=new Float64Array(192),this.positions.set(s,0)}positions;steps=0;state;at(s){const t=K.STEP_S,e=Math.max(0,s/t),a=Math.ceil(e);for(;this.steps<a;){if(K.step(this.state,t,this.radiusAt(this.steps*t),this.massKg,this.particleRadiusUm),this.steps++,3*(this.steps+1)>this.positions.length){const p=new Float64Array(this.positions.length*2);p.set(this.positions),this.positions=p}this.positions.set(this.state.subarray(0,3),3*this.steps)}const i=Math.floor(e),o=e-i,n=this.positions;return o===0||i>=this.steps?[n[3*i],n[3*i+1],n[3*i+2]]:[0,1,2].map(p=>n[3*i+p]+(n[3*i+3+p]-n[3*i+p])*o)}}class r{static EARTH_RADIUS_KM=6371;static SHADOW_RADIUS_KM=r.EARTH_RADIUS_KM+15;static PENUMBRA_KM=10;static SUN_ILLUMINANCE_LUX=127e3;static RAYLEIGH_PER_M=[58e-7,135e-7,331e-7];static SCALE_HEIGHT_M=8e3;static OZONE_GRAZING_DEPTH=[2.4,1.8,.24];static ANISOTROPY=.7;static ALBEDO=.99;static WAVELENGTHS_UM=[.61,.55,.465];static ICE_INDEX=1.31;static DEFAULTS={exhaustKgPerS:273,condensedShare:.065,particleRadiusUm:.5,expansionKmPerS:.15,initialRadiusKm:.5,lifetimeS:420,collarShare:.85,collarExpansionKmPerS:2.5,collarLifetimeS:20};static PROPELLANTS={"rp1-lox":{condensedShare:.065,particleRadiusUm:.5},"methane-lox":{condensedShare:.09,particleRadiusUm:.5},"hydrogen-lox":{condensedShare:.13,particleRadiusUm:.5},hypergolic:{condensedShare:.079,particleRadiusUm:.4},solid:{condensedShare:.27,particleRadiusUm:.8}};static G0=9.80665;static COLLAR_SPREAD_OF_EXHAUST_VELOCITY=.735;static plumeOf(s){const t={},e=s.vehicle?.engine;if(e){const a=e.specificImpulseS===void 0?void 0:e.specificImpulseS*r.G0;e.thrustKN!==void 0&&a&&(t.exhaustKgPerS=e.thrustKN*1e3/a),a&&(t.collarExpansionKmPerS=a/1e3*r.COLLAR_SPREAD_OF_EXHAUST_VELOCITY),e.propellant&&Object.assign(t,r.PROPELLANTS[e.propellant])}return{...r.DEFAULTS,...t,...s.plume}}static PUFF_EVERY_S=.5;static SIGMA_OF_RADIUS=.5;static MAX_PUFFS=320;static DEG=Math.PI/180;static EARTH_ROTATION=72921159e-12;static VENT_DEFAULTS={speedKmPerS:.7,massKgPerS:20,condensedShare:.5,particleRadiusUm:.5,expansionKmPerS:.1,initialRadiusKm:.2,lifetimeS:600};static paths=new WeakMap;static exhaustVelocityKmPerS(s){return(s.vehicle?.engine?.specificImpulseS??348)*r.G0/1e3}static releasesOf(s){const t=[],e=s.jets??[];if(e.length===0||s.burnFromT!==void 0||s.burnUntilT!==void 0){const a=s.track[0]?.t??0,i=s.track[s.track.length-1]?.t??0;t.push(r.engineRelease(s,"burn",{fromT:s.burnFromT??a,untilT:s.burnUntilT??i}))}return e.forEach((a,i)=>t.push(r.releaseOf(s,a,i))),t}static releaseOf(s,t,e){const a=`jet:${t.id??e}`;if((t.kind??"burn")==="burn")return r.engineRelease(s,a,t);const i=r.VENT_DEFAULTS;return{key:a,fromT:t.fromT,untilT:t.untilT,angleDeg:t.angleDeg??0,azimuthDeg:t.azimuthDeg??0,spinPeriodS:t.spinPeriodS,speedKmPerS:t.speedKmPerS??i.speedKmPerS,massKgPerS:t.massKgPerS??i.massKgPerS,condensedShare:t.condensedShare??i.condensedShare,particleRadiusUm:t.particleRadiusUm??i.particleRadiusUm,initialRadiusKm:t.initialRadiusKm??i.initialRadiusKm,populations:[{share:1,expansionKmPerS:t.expansionKmPerS??i.expansionKmPerS,lifetimeS:t.lifetimeS??i.lifetimeS}]}}static engineRelease(s,t,e){const a=r.plumeOf(s);return{key:t,fromT:e.fromT,untilT:e.untilT,angleDeg:e.angleDeg??0,azimuthDeg:e.azimuthDeg??0,spinPeriodS:e.spinPeriodS,speedKmPerS:e.speedKmPerS??r.exhaustVelocityKmPerS(s),massKgPerS:e.massKgPerS??a.exhaustKgPerS,condensedShare:e.condensedShare??a.condensedShare,particleRadiusUm:e.particleRadiusUm??a.particleRadiusUm,initialRadiusKm:e.initialRadiusKm??a.initialRadiusKm,populations:[{share:1-a.collarShare,expansionKmPerS:e.expansionKmPerS??a.expansionKmPerS,lifetimeS:e.lifetimeS??a.lifetimeS},{share:a.collarShare,expansionKmPerS:a.collarExpansionKmPerS,lifetimeS:a.collarLifetimeS}]}}static extinctionEfficiency(s,t){const e=2*Math.PI*s/t,a=r.ICE_INDEX**2,i=8/3*e**4*((a-1)/(a+2))**2,o=2*e*(r.ICE_INDEX-1),n=o<.001?o*o/2:2-4/o*Math.sin(o)+4/(o*o)*(1-Math.cos(o));return Math.min(i,n)}static scatteringColour(s){const t=r.extinctionEfficiency(s,r.WAVELENGTHS_UM[1]);return r.WAVELENGTHS_UM.map(e=>r.extinctionEfficiency(s,e)/t)}static sunDirectionAt(s){const t=new w(0,0,-6378137),e=F(v.Sun,s,t,!0,!0),a=(e.ra-Y(s))*15*r.DEG,i=e.dec*r.DEG;return[Math.cos(i)*Math.cos(a),Math.cos(i)*Math.sin(a),Math.sin(i)]}static puffsAt(s,t){const e=[];for(const a of s){let i=r.paths.get(a);i||r.paths.set(a,i=new Map);for(const o of r.releasesOf(a)){const n=Math.min(o.untilT,t);if(n<=o.fromT)continue;const p=Math.max(r.PUFF_EVERY_S*1e3,(o.untilT-o.fromT)/r.MAX_PUFFS),d=[];for(let M=o.fromT;M<n;M+=p)d.push(M);d.push(n);const R=o.massKgPerS*(p/1e3),m=3*r.extinctionEfficiency(o.particleRadiusUm,r.WAVELENGTHS_UM[1])/(4*917*o.particleRadiusUm*1e-6),T=r.scatteringColour(o.particleRadiusUm);o.populations.forEach((M,y)=>{if(M.share<=0)return;const U=E=>o.initialRadiusKm+M.expansionKmPerS*E,I=[];for(const E of d){const D=(t-E)/1e3;if(D>M.lifetimeS)continue;const c=E!==n||n===o.untilT,f=`${o.key}|${y}|${E}`;let A=c?i.get(f):void 0;if(!A){if(A=r.launchPuff(a,o,E,R*M.share,U),!A)continue;c&&i.set(f,A)}I.push({ageS:D,position:A.at(D)})}for(let E=I.length-1;E>=0;E--){const{ageS:D,position:c}=I[E],f=I[E-1]??I[E+1],A=f?Math.hypot(c[0]-f.position[0],c[1]-f.position[1],c[2]-f.position[2]):0,l=U(D)+A/2,O=r.SIGMA_OF_RADIUS*l*1e3,N=R*o.condensedShare*M.share*m/(2*Math.PI*O*O),x=Math.max(0,1-(D/M.lifetimeS)**2);N*x<=0||e.push({launchId:a.id,release:o.key,at:r.geoPoint(c),radiusKm:l,opticalDepth:N*x,colour:T,ageS:D})}})}}return e}static viewsAt(s,t,e,a){const i=[];for(const o of r.puffsAt(s,t)){const n=H.seenFrom(e,o.at);if(n.altitudeDeg<0)continue;const p=r.sunlightAt(o.at,a);if(p.lit<=0)continue;const d=r.scatteringPhase(e,o.at,a),R=r.SUN_ILLUMINANCE_LUX*r.ALBEDO*d*o.opticalDepth*p.lit;R<=0||i.push({launchId:o.launchId,release:o.release,heightKm:o.at.heightM/1e3,centre:n,radiusDeg:Math.atan2(o.radiusKm,n.distanceKm)/r.DEG,luminanceCdM2:R,sunTransmittance:p.transmittance,colour:o.colour,lit:p.lit,ageS:o.ageS})}return i}static launchPuff(s,t,e,a,i){const o={id:s.id,track:s.track,fragments:[]},n=H.leadAt(o,e);if(!n)return;const p=s.track[0].t,d=s.track[s.track.length-1].t,R=Math.max(p,e-500),h=Math.min(d,e+500),m=r.earthCentred(n),T=r.earthCentred(H.leadAt(o,R)),M=r.earthCentred(H.leadAt(o,h)),y=Math.max(.001,(h-R)/1e3),U=[0,1,2].map(S=>(M[S]-T[S])/y),I=r.EARTH_ROTATION,E=[U[0]-I*m[1],U[1]+I*m[0],U[2]],D=S=>{const b=Math.hypot(S[0],S[1],S[2])||1;return S.map(k=>k/b)},c=D(E),f=D(m),A=f[0]*c[0]+f[1]*c[1]+f[2]*c[2];let l=[f[0]-A*c[0],f[1]-A*c[1],f[2]-A*c[2]];Math.hypot(l[0],l[1],l[2])<1e-6&&(l=[-c[2]*c[0],-c[2]*c[1],1-c[2]*c[2]]),l=D(l);const O=[c[1]*l[2]-c[2]*l[1],c[2]*l[0]-c[0]*l[2],c[0]*l[1]-c[1]*l[0]],N=t.spinPeriodS?360*((e-t.fromT)/1e3)/t.spinPeriodS:0,x=(t.azimuthDeg+N)*r.DEG,G=t.angleDeg*r.DEG,C=[0,1,2].map(S=>-c[S]*Math.cos(G)+Math.sin(G)*(Math.cos(x)*l[S]+Math.sin(x)*O[S])),P=[0,1,2].map(S=>U[S]+t.speedKmPerS*C[S]);return new _(m,P,a,i,t.particleRadiusUm)}static geoPoint(s){const t=Math.hypot(s[0],s[1],s[2]);return{lat:Math.asin(s[2]/t)/r.DEG,lng:Math.atan2(s[1],s[0])/r.DEG,heightM:(t-K.EARTH_RADIUS_KM)*1e3}}static sunlightAt(s,t){const e=r.earthCentred(s),a=e[0]*t[0]+e[1]*t[1]+e[2]*t[2];if(a>=0)return{lit:1,transmittance:[1,1,1]};const i=Math.hypot(e[0]-a*t[0],e[1]-a*t[1],e[2]-a*t[2]),o=r.PENUMBRA_KM,n=Math.min(1,Math.max(0,(i-(r.SHADOW_RADIUS_KM-o/2))/o));if(n<=0)return{lit:0,transmittance:[0,0,0]};const p=Math.max(0,(i-r.EARTH_RADIUS_KM)*1e3),d=Math.exp(-p/r.SCALE_HEIGHT_M),R=Math.sqrt(2*Math.PI*r.EARTH_RADIUS_KM*1e3*r.SCALE_HEIGHT_M),h=Math.exp(-(((p/1e3-25)/15)**2)),m=[0,1,2].map(T=>Math.exp(-r.RAYLEIGH_PER_M[T]*d*R-r.OZONE_GRAZING_DEPTH[T]*h));return{lit:n,transmittance:m}}static scatteringPhase(s,t,e){const a=r.earthCentred(s),i=r.earthCentred(t),o=[a[0]-i[0],a[1]-i[1],a[2]-i[2]],n=Math.hypot(o[0],o[1],o[2])||1,p=-(o[0]*e[0]+o[1]*e[1]+o[2]*e[2])/n,d=r.ANISOTROPY;return(1-d*d)/(4*Math.PI*(1+d*d-2*d*p)**1.5)}static earthCentred(s){const t=s.lat*r.DEG,e=s.lng*r.DEG,a=r.EARTH_RADIUS_KM+s.heightM/1e3;return[a*Math.cos(t)*Math.cos(e),a*Math.cos(t)*Math.sin(e),a*Math.sin(t)]}}export{r as L};
@@ -1 +1 @@
1
- import{L as M}from"./LaunchPlume-D-vSb8tJ.js";import{I as T,w as z,x as f,M as C}from"./three.module-CbaHqYFq.js";import{bb as w,bc as A}from"./ShareDialogElement-EzLob2Tz.js";import"./rr0-ufoathome.mjs";import"./Sighting-B7bsiTIQ.js";import"./VisualAids-DI-hEL46.js";import"./SaidPosition-OJEYhVKN.js";import"./GeoProjection-DvqDbRIx.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";class n{static RADIUS=840;static MAX_PUFFS=1e3;static RINGS=[0,.25,.5,.75,1,1.25];static COLUMN=n.RINGS.map(t=>{const i=o=>Math.exp(-((o/M.SIGMA_OF_RADIUS)**2)/2),s=i(n.RINGS[n.RINGS.length-1]);return Math.max(0,(i(t)-s)/(1-s))});static SECTORS=12;static VERTICES_PER_PUFF=n.SECTORS*(3+6*(n.RINGS.length-2));static BRIGHTEST_RELATIVE=6e4;object=new T;mesh;positions=new Float32Array(n.MAX_PUFFS*n.VERTICES_PER_PUFF*3);colors=new Float32Array(n.MAX_PUFFS*n.VERTICES_PER_PUFF*3);shown=0;drawn=[];static VISIBLE_CONTRAST=.1;constructor(){this.object.name="plumes";const t=new z;t.setAttribute("position",new f(this.positions,3)),t.setAttribute("color",new f(this.colors,3)),t.setDrawRange(0,0),this.mesh=new C(t,w.material()),this.mesh.frustumCulled=!1,w.track(this.mesh),this.object.add(this.mesh)}get count(){return this.shown}set(t,i,s,o){let h=0,c=0;this.drawn=[];for(const u of t){if(c>=n.MAX_PUFFS)break;const d=o(u.centre);if(d<=0)continue;const r=s(u.centre),a=[0,1,2].map(g=>Math.min(n.BRIGHTEST_RELATIVE,u.luminanceCdM2*(u.colour?.[g]??1)*i*u.sunTransmittance[g]*r[g]*d));Math.max(...a)<=0||(h=this.pushPuff(h,u,a),this.drawn.push({view:u,direction:this.normalise(A(u.centre.altitudeDeg,u.centre.azimuthDeg,1)),radiusRad:u.radiusDeg*Math.PI/180,luminance:.2126*a[0]+.7152*a[1]+.0722*a[2]}),c++)}this.shown=c;const p=this.mesh.geometry;p.setDrawRange(0,h),p.getAttribute("position").needsUpdate=!0,p.getAttribute("color").needsUpdate=!0}pushPuff(t,i,s){const o=A(i.centre.altitudeDeg,i.centre.azimuthDeg,n.RADIUS),h=this.normalise(o),c=this.normalise(this.cross({x:0,y:1,z:0},h)),p=this.cross(h,c),u=n.RADIUS*Math.tan(i.radiusDeg*Math.PI/180),d=(a,g)=>{const e=g/n.SECTORS*2*Math.PI,I=n.RINGS[a]*u,R=Math.cos(e)*I,l=Math.sin(e)*I;return{x:o.x+c.x*R+p.x*l,y:o.y+c.y*R+p.y*l,z:o.z+c.z*R+p.z*l}},r=a=>n.COLUMN[a];for(let a=0;a<n.SECTORS;a++){const g=(a+1)%n.SECTORS;t=this.push(t,o,s,r(0)),t=this.push(t,d(1,a),s,r(1)),t=this.push(t,d(1,g),s,r(1));for(let e=1;e<n.RINGS.length-1;e++){const I=d(e,a),R=d(e,g),l=d(e+1,a),E=d(e+1,g);t=this.push(t,I,s,r(e)),t=this.push(t,R,s,r(e)),t=this.push(t,l,s,r(e+1)),t=this.push(t,R,s,r(e)),t=this.push(t,E,s,r(e+1)),t=this.push(t,l,s,r(e+1))}}return t}pickAt(t,i,s=0){const o=this.normalise(t);let h=0,c;for(const p of this.drawn){const u=Math.max(-1,Math.min(1,o.x*p.direction.x+o.y*p.direction.y+o.z*p.direction.z)),d=Math.max(0,Math.acos(u)-i)/Math.max(p.radiusRad,1e-9),r=p.luminance*n.profile(d);r<=0||(h+=r,(!c||r>c.light)&&(c={view:p.view,light:r}))}return c&&h>=n.VISIBLE_CONTRAST*s?c.view:void 0}static profile(t){const i=n.RINGS;if(t>=i[i.length-1])return 0;let s=0;for(;t>i[s+1];)s++;const o=(t-i[s])/(i[s+1]-i[s]);return n.COLUMN[s]+(n.COLUMN[s+1]-n.COLUMN[s])*o}push(t,i,s,o){const h=t*3;return this.positions[h]=i.x,this.positions[h+1]=i.y,this.positions[h+2]=i.z,this.colors[h]=s[0]*o,this.colors[h+1]=s[1]*o,this.colors[h+2]=s[2]*o,t+1}cross(t,i){return this.normalise({x:t.y*i.z-t.z*i.y,y:t.z*i.x-t.x*i.z,z:t.x*i.y-t.y*i.x})}normalise(t){const i=Math.hypot(t.x,t.y,t.z)||1;return{x:t.x/i,y:t.y/i,z:t.z/i}}dispose(){this.mesh.geometry.dispose(),this.mesh.material.dispose(),this.object.removeFromParent()}}class j{inSky=!0;plumes=new n;get object(){return this.plumes.object}get drawnCount(){return this.plumes.count}update(t,i,s){const o=t.length===0||!s.date?[]:M.viewsAt(t,i,s.observer,M.sunDirectionAt(s.date));o.length===0&&this.plumes.count===0||this.plumes.set(o,s.relativeScale,h=>s.transmittanceFromSpace(h),h=>s.cloudTransmission(h))}pick(t,i,s){const o=this.plumes.pickAt(i,s.toleranceRad,s.skyLightTowards(i));return o&&{id:o.launchId,detail:o}}dispose(){this.plumes.dispose()}}export{j as LaunchSimulation};
1
+ import{L as M}from"./LaunchPlume-CujlF3wZ.js";import{I as T,w as z,x as f,M as C}from"./three.module-CbaHqYFq.js";import{bb as w,bc as A}from"./ShareDialogElement-DqCoQwtn.js";import"./rr0-ufoathome.mjs";import"./Sighting-D-_IYi9n.js";import"./VisualAids-DI-hEL46.js";import"./SaidPosition-OJEYhVKN.js";import"./GeoProjection-DvqDbRIx.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";class n{static RADIUS=840;static MAX_PUFFS=1e3;static RINGS=[0,.25,.5,.75,1,1.25];static COLUMN=n.RINGS.map(t=>{const i=o=>Math.exp(-((o/M.SIGMA_OF_RADIUS)**2)/2),s=i(n.RINGS[n.RINGS.length-1]);return Math.max(0,(i(t)-s)/(1-s))});static SECTORS=12;static VERTICES_PER_PUFF=n.SECTORS*(3+6*(n.RINGS.length-2));static BRIGHTEST_RELATIVE=6e4;object=new T;mesh;positions=new Float32Array(n.MAX_PUFFS*n.VERTICES_PER_PUFF*3);colors=new Float32Array(n.MAX_PUFFS*n.VERTICES_PER_PUFF*3);shown=0;drawn=[];static VISIBLE_CONTRAST=.1;constructor(){this.object.name="plumes";const t=new z;t.setAttribute("position",new f(this.positions,3)),t.setAttribute("color",new f(this.colors,3)),t.setDrawRange(0,0),this.mesh=new C(t,w.material()),this.mesh.frustumCulled=!1,w.track(this.mesh),this.object.add(this.mesh)}get count(){return this.shown}set(t,i,s,o){let h=0,c=0;this.drawn=[];for(const u of t){if(c>=n.MAX_PUFFS)break;const d=o(u.centre);if(d<=0)continue;const r=s(u.centre),a=[0,1,2].map(g=>Math.min(n.BRIGHTEST_RELATIVE,u.luminanceCdM2*(u.colour?.[g]??1)*i*u.sunTransmittance[g]*r[g]*d));Math.max(...a)<=0||(h=this.pushPuff(h,u,a),this.drawn.push({view:u,direction:this.normalise(A(u.centre.altitudeDeg,u.centre.azimuthDeg,1)),radiusRad:u.radiusDeg*Math.PI/180,luminance:.2126*a[0]+.7152*a[1]+.0722*a[2]}),c++)}this.shown=c;const p=this.mesh.geometry;p.setDrawRange(0,h),p.getAttribute("position").needsUpdate=!0,p.getAttribute("color").needsUpdate=!0}pushPuff(t,i,s){const o=A(i.centre.altitudeDeg,i.centre.azimuthDeg,n.RADIUS),h=this.normalise(o),c=this.normalise(this.cross({x:0,y:1,z:0},h)),p=this.cross(h,c),u=n.RADIUS*Math.tan(i.radiusDeg*Math.PI/180),d=(a,g)=>{const e=g/n.SECTORS*2*Math.PI,I=n.RINGS[a]*u,R=Math.cos(e)*I,l=Math.sin(e)*I;return{x:o.x+c.x*R+p.x*l,y:o.y+c.y*R+p.y*l,z:o.z+c.z*R+p.z*l}},r=a=>n.COLUMN[a];for(let a=0;a<n.SECTORS;a++){const g=(a+1)%n.SECTORS;t=this.push(t,o,s,r(0)),t=this.push(t,d(1,a),s,r(1)),t=this.push(t,d(1,g),s,r(1));for(let e=1;e<n.RINGS.length-1;e++){const I=d(e,a),R=d(e,g),l=d(e+1,a),E=d(e+1,g);t=this.push(t,I,s,r(e)),t=this.push(t,R,s,r(e)),t=this.push(t,l,s,r(e+1)),t=this.push(t,R,s,r(e)),t=this.push(t,E,s,r(e+1)),t=this.push(t,l,s,r(e+1))}}return t}pickAt(t,i,s=0){const o=this.normalise(t);let h=0,c;for(const p of this.drawn){const u=Math.max(-1,Math.min(1,o.x*p.direction.x+o.y*p.direction.y+o.z*p.direction.z)),d=Math.max(0,Math.acos(u)-i)/Math.max(p.radiusRad,1e-9),r=p.luminance*n.profile(d);r<=0||(h+=r,(!c||r>c.light)&&(c={view:p.view,light:r}))}return c&&h>=n.VISIBLE_CONTRAST*s?c.view:void 0}static profile(t){const i=n.RINGS;if(t>=i[i.length-1])return 0;let s=0;for(;t>i[s+1];)s++;const o=(t-i[s])/(i[s+1]-i[s]);return n.COLUMN[s]+(n.COLUMN[s+1]-n.COLUMN[s])*o}push(t,i,s,o){const h=t*3;return this.positions[h]=i.x,this.positions[h+1]=i.y,this.positions[h+2]=i.z,this.colors[h]=s[0]*o,this.colors[h+1]=s[1]*o,this.colors[h+2]=s[2]*o,t+1}cross(t,i){return this.normalise({x:t.y*i.z-t.z*i.y,y:t.z*i.x-t.x*i.z,z:t.x*i.y-t.y*i.x})}normalise(t){const i=Math.hypot(t.x,t.y,t.z)||1;return{x:t.x/i,y:t.y/i,z:t.z/i}}dispose(){this.mesh.geometry.dispose(),this.mesh.material.dispose(),this.object.removeFromParent()}}class j{inSky=!0;plumes=new n;get object(){return this.plumes.object}get drawnCount(){return this.plumes.count}update(t,i,s){const o=t.length===0||!s.date?[]:M.viewsAt(t,i,s.observer,M.sunDirectionAt(s.date));o.length===0&&this.plumes.count===0||this.plumes.set(o,s.relativeScale,h=>s.transmittanceFromSpace(h),h=>s.cloudTransmission(h))}pick(t,i,s){const o=this.plumes.pickAt(i,s.toleranceRad,s.skyLightTowards(i));return o&&{id:o.launchId,detail:o}}dispose(){this.plumes.dispose()}}export{j as LaunchSimulation};
@@ -1 +1 @@
1
- import{I as d,M as c,ae as f,a8 as m,av as u,m as w,aw as y,u as M,aa as g,V as S}from"./three.module-CbaHqYFq.js";import{bx as b,az as l,by as v}from"./ShareDialogElement-EzLob2Tz.js";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 b(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 c(v.unitGeometry(e),new f({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 m().setFromObject(e);if(s.isEmpty())return;const t=s.getBoundingSphere(new u),r=new d;e.position.sub(t.center),r.add(e);const n=new w;n.add(r),n.add(new y(16777215,6715272,1.6));const o=new M(16777215,2.5);o.position.set(1,2,1.5),n.add(o);const i=new g(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 S(.55,.3,-.78).normalize().multiplyScalar(p)),i.lookAt(0,0,0),{scene:n,camera:i,pivot:r}}}export{h as M};
1
+ import{I as d,M as c,ae as f,a8 as m,av as u,m as w,aw as y,u as M,aa as g,V as S}from"./three.module-CbaHqYFq.js";import{bx as b,aA as l,by as v}from"./ShareDialogElement-DqCoQwtn.js";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 b(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 c(v.unitGeometry(e),new f({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 m().setFromObject(e);if(s.isEmpty())return;const t=s.getBoundingSphere(new u),r=new d;e.position.sub(t.center),r.add(e);const n=new w;n.add(r),n.add(new y(16777215,6715272,1.6));const o=new M(16777215,2.5);o.position.set(1,2,1.5),n.add(o);const i=new g(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 S(.55,.3,-.78).normalize().multiplyScalar(p)),i.lookAt(0,0,0),{scene:n,camera:i,pivot:r}}}export{h as M};
@@ -1 +1 @@
1
- import{ax as n}from"./three.module-CbaHqYFq.js";import{M as s}from"./ModelSource-HSiigkeO.js";import"./ShareDialogElement-EzLob2Tz.js";import"./rr0-ufoathome.mjs";import"./Sighting-B7bsiTIQ.js";import"./VisualAids-DI-hEL46.js";import"./SaidPosition-OJEYhVKN.js";import"./GeoProjection-DvqDbRIx.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";class M{static SIZE_PX={width:192,height:144};static cache=new Map;static queue=Promise.resolve();static pending=0;static renderer;static of(r){const t=s.key(r);let e=this.cache.get(t);return e||(this.pending++,e=this.queue.then(()=>this.draw(r)).catch(()=>{}).finally(()=>{--this.pending===0&&this.release()}),this.queue=e,this.cache.set(t,e)),e}static async draw(r){const t=await s.build(r);try{const{width:e,height:o}=this.SIZE_PX,a=s.stage(t,e/o);if(!a)return;const i=this.renderer??=new n({antialias:!0,alpha:!0,preserveDrawingBuffer:!0});return i.setSize(e,o,!1),i.setClearColor(0,0),i.render(a.scene,a.camera),i.domElement.toDataURL("image/png")}finally{s.dispose(t)}}static release(){this.renderer?.dispose(),this.renderer?.forceContextLoss(),this.renderer=void 0}}export{M as ModelThumbnails};
1
+ import{ax as n}from"./three.module-CbaHqYFq.js";import{M as s}from"./ModelSource-Bz25TN6e.js";import"./ShareDialogElement-DqCoQwtn.js";import"./rr0-ufoathome.mjs";import"./Sighting-D-_IYi9n.js";import"./VisualAids-DI-hEL46.js";import"./SaidPosition-OJEYhVKN.js";import"./GeoProjection-DvqDbRIx.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";class M{static SIZE_PX={width:192,height:144};static cache=new Map;static queue=Promise.resolve();static pending=0;static renderer;static of(r){const t=s.key(r);let e=this.cache.get(t);return e||(this.pending++,e=this.queue.then(()=>this.draw(r)).catch(()=>{}).finally(()=>{--this.pending===0&&this.release()}),this.queue=e,this.cache.set(t,e)),e}static async draw(r){const t=await s.build(r);try{const{width:e,height:o}=this.SIZE_PX,a=s.stage(t,e/o);if(!a)return;const i=this.renderer??=new n({antialias:!0,alpha:!0,preserveDrawingBuffer:!0});return i.setSize(e,o,!1),i.setClearColor(0,0),i.render(a.scene,a.camera),i.domElement.toDataURL("image/png")}finally{s.dispose(t)}}static release(){this.renderer?.dispose(),this.renderer?.forceContextLoss(),this.renderer=void 0}}export{M as ModelThumbnails};
@@ -1 +1 @@
1
- import{ax as h}from"./three.module-CbaHqYFq.js";import{M as c}from"./ModelSource-HSiigkeO.js";import"./ShareDialogElement-EzLob2Tz.js";import"./rr0-ufoathome.mjs";import"./Sighting-B7bsiTIQ.js";import"./VisualAids-DI-hEL46.js";import"./SaidPosition-OJEYhVKN.js";import"./GeoProjection-DvqDbRIx.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";class a{constructor(t,i){this.container=t,this.source=i,this.canvas=document.createElement("canvas"),this.canvas.className="model-live",this.canvas.style.cssText="position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:grab;display:none",this.canvas.addEventListener("pointerdown",s=>this.press(s)),this.canvas.addEventListener("pointermove",s=>this.move(s)),this.canvas.addEventListener("pointerup",()=>this.release()),this.canvas.addEventListener("pointercancel",()=>this.release())}static renderer;static SPIN_RAD_PER_S=.7;static DRAG_RAD_PER_PX=.012;static CLICK_TOLERANCE_PX=4;static current;object;stage;frame=0;stopped=!1;last=0;dragging;draggedPastClick=!1;canvas;static show(t,i){a.current?.stop();const s=new a(t,i);return a.current=s,s.start(),s}static end(){a.current?.stop(),a.current=void 0,a.renderer?.dispose(),a.renderer?.forceContextLoss(),a.renderer=void 0}consumeDrag(){const t=this.draggedPastClick;return this.draggedPastClick=!1,t}get active(){return!this.stopped}stop(){this.stopped=!0,cancelAnimationFrame(this.frame),this.canvas.remove(),this.object&&c.dispose(this.object),this.object=void 0,a.current===this&&(a.current=void 0)}async start(){try{const t=await c.build(this.source);if(this.stopped){c.dispose(t);return}this.object=t;const{width:i,height:s}=this.container.getBoundingClientRect(),e=i>0&&s>0?i/s:4/3;if(this.stage=c.stage(t,e),!this.stage)return;(a.renderer??=new h({antialias:!0,alpha:!0})).setClearColor(0,0),this.container.append(this.canvas),this.canvas.style.display="block",this.last=performance.now(),this.tick()}catch{}}tick=()=>{if(this.stopped||!this.stage)return;const t=performance.now(),i=Math.min(.1,(t-this.last)/1e3);this.last=t,this.dragging||(this.stage.pivot.rotation.y+=a.SPIN_RAD_PER_S*i);const s=a.renderer,{width:e,height:n}=this.canvas.getBoundingClientRect(),r=Math.min(2,window.devicePixelRatio||1);(this.canvas.width!==Math.round(e*r)||this.canvas.height!==Math.round(n*r))&&(s.setPixelRatio(r),s.setSize(e,n,!1),this.canvas.width=Math.round(e*r),this.canvas.height=Math.round(n*r),this.stage.camera.aspect=e/Math.max(1,n),this.stage.camera.updateProjectionMatrix()),s.render(this.stage.scene,this.stage.camera);const o=this.canvas.getContext("2d");o?.clearRect(0,0,this.canvas.width,this.canvas.height),o?.drawImage(s.domElement,0,0,this.canvas.width,this.canvas.height),this.frame=requestAnimationFrame(this.tick)};press(t){this.dragging={x:t.clientX,y:t.clientY,moved:!1},this.canvas.setPointerCapture(t.pointerId),this.canvas.style.cursor="grabbing"}move(t){const i=this.dragging;if(!i||!this.stage)return;const s=t.clientX-i.x,e=t.clientY-i.y;!i.moved&&Math.hypot(s,e)<a.CLICK_TOLERANCE_PX||(i.moved=!0,this.draggedPastClick=!0,this.stage.pivot.rotation.y+=s*a.DRAG_RAD_PER_PX,this.stage.pivot.rotation.x=Math.max(-1.4,Math.min(1.4,this.stage.pivot.rotation.x-e*a.DRAG_RAD_PER_PX)),i.x=t.clientX,i.y=t.clientY)}release(){this.dragging=void 0,this.canvas.style.cursor="grab"}}export{a as ModelViewer};
1
+ import{ax as h}from"./three.module-CbaHqYFq.js";import{M as c}from"./ModelSource-Bz25TN6e.js";import"./ShareDialogElement-DqCoQwtn.js";import"./rr0-ufoathome.mjs";import"./Sighting-D-_IYi9n.js";import"./VisualAids-DI-hEL46.js";import"./SaidPosition-OJEYhVKN.js";import"./GeoProjection-DvqDbRIx.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";class a{constructor(t,i){this.container=t,this.source=i,this.canvas=document.createElement("canvas"),this.canvas.className="model-live",this.canvas.style.cssText="position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:grab;display:none",this.canvas.addEventListener("pointerdown",s=>this.press(s)),this.canvas.addEventListener("pointermove",s=>this.move(s)),this.canvas.addEventListener("pointerup",()=>this.release()),this.canvas.addEventListener("pointercancel",()=>this.release())}static renderer;static SPIN_RAD_PER_S=.7;static DRAG_RAD_PER_PX=.012;static CLICK_TOLERANCE_PX=4;static current;object;stage;frame=0;stopped=!1;last=0;dragging;draggedPastClick=!1;canvas;static show(t,i){a.current?.stop();const s=new a(t,i);return a.current=s,s.start(),s}static end(){a.current?.stop(),a.current=void 0,a.renderer?.dispose(),a.renderer?.forceContextLoss(),a.renderer=void 0}consumeDrag(){const t=this.draggedPastClick;return this.draggedPastClick=!1,t}get active(){return!this.stopped}stop(){this.stopped=!0,cancelAnimationFrame(this.frame),this.canvas.remove(),this.object&&c.dispose(this.object),this.object=void 0,a.current===this&&(a.current=void 0)}async start(){try{const t=await c.build(this.source);if(this.stopped){c.dispose(t);return}this.object=t;const{width:i,height:s}=this.container.getBoundingClientRect(),e=i>0&&s>0?i/s:4/3;if(this.stage=c.stage(t,e),!this.stage)return;(a.renderer??=new h({antialias:!0,alpha:!0})).setClearColor(0,0),this.container.append(this.canvas),this.canvas.style.display="block",this.last=performance.now(),this.tick()}catch{}}tick=()=>{if(this.stopped||!this.stage)return;const t=performance.now(),i=Math.min(.1,(t-this.last)/1e3);this.last=t,this.dragging||(this.stage.pivot.rotation.y+=a.SPIN_RAD_PER_S*i);const s=a.renderer,{width:e,height:n}=this.canvas.getBoundingClientRect(),r=Math.min(2,window.devicePixelRatio||1);(this.canvas.width!==Math.round(e*r)||this.canvas.height!==Math.round(n*r))&&(s.setPixelRatio(r),s.setSize(e,n,!1),this.canvas.width=Math.round(e*r),this.canvas.height=Math.round(n*r),this.stage.camera.aspect=e/Math.max(1,n),this.stage.camera.updateProjectionMatrix()),s.render(this.stage.scene,this.stage.camera);const o=this.canvas.getContext("2d");o?.clearRect(0,0,this.canvas.width,this.canvas.height),o?.drawImage(s.domElement,0,0,this.canvas.width,this.canvas.height),this.frame=requestAnimationFrame(this.tick)};press(t){this.dragging={x:t.clientX,y:t.clientY,moved:!1},this.canvas.setPointerCapture(t.pointerId),this.canvas.style.cursor="grabbing"}move(t){const i=this.dragging;if(!i||!this.stage)return;const s=t.clientX-i.x,e=t.clientY-i.y;!i.moved&&Math.hypot(s,e)<a.CLICK_TOLERANCE_PX||(i.moved=!0,this.draggedPastClick=!0,this.stage.pivot.rotation.y+=s*a.DRAG_RAD_PER_PX,this.stage.pivot.rotation.x=Math.max(-1.4,Math.min(1.4,this.stage.pivot.rotation.x-e*a.DRAG_RAD_PER_PX)),i.x=t.clientX,i.y=t.clientY)}release(){this.dragging=void 0,this.canvas.style.cursor="grab"}}export{a as ModelViewer};
@@ -0,0 +1,3 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ModuleThree-D18Rh2Nj.js","./three.module-CbaHqYFq.js"])))=>i.map(i=>d[i]);
2
+ import{_ as w,L as p,g as y}from"./rr0-ufoathome.mjs";import{a as b,A as v}from"./xyzImageryRaster-Dhxs0B26.js";import"./GeoProjection-DvqDbRIx.js";class o{static STORAGE_KEY="ufoathome.modules";static FORMAT=1;static empty(){return{format:1,modules:[]}}static read(t=o.storage()){try{const e=t?.getItem(o.STORAGE_KEY);return e?o.parse(e):o.empty()}catch{return o.empty()}}static write(t,e=o.storage()){try{return e?(t.modules.length===0?e.removeItem(o.STORAGE_KEY):e.setItem(o.STORAGE_KEY,o.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>o.FORMAT)throw new Error(`format ${e.format} is newer than ${o.FORMAT}`);const s=new Set,i=[];for(const r of e.modules)typeof r?.url!="string"||s.has(r.url)||(s.add(r.url),i.push({url:r.url,enabled:r.enabled!==!1}));return{format:1,modules:i}}static text(t){return JSON.stringify({format:o.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 b(t,e,s=>f.tileUrl(this.tileUrlTemplate,s),this.fetchImpl)}static tileUrl(t,e){return t.replaceAll("{z}",String(e.z)).replaceAll("{x}",String(e.x)).replaceAll("{y}",String(e.y))}}class A 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 s=n=>{throw new A(e,n)};(t===null||typeof t!="object"||Array.isArray(t))&&s("not a JSON object");const i=t;typeof i.format!="number"&&s('no "format"'),i.format>d.FORMAT&&s(`format ${i.format} is newer than ${d.FORMAT}, which this version reads`),(typeof i.id!="string"||!/^[a-z0-9][a-z0-9._-]*$/.test(i.id))&&s(`"id" must be lowercase letters, digits, '.', '_' or '-'`),(typeof i.name!="string"||i.name.trim()==="")&&s('no "name"'),i.script!==void 0&&typeof i.script!="string"&&s('"script" must be an address');const r=i.contributes??{};for(const n of["imagery","elevation"]){const l=r[n];l!==void 0&&(Array.isArray(l)||s(`"contributes.${n}" must be a list`),l.forEach((c,m)=>{for(const h of["id","name","credit","creditUrl","tiles"])(typeof c?.[h]!="string"||c[h]==="")&&s(`"contributes.${n}[${m}].${h}" is missing`);["{z}","{x}","{y}"].every(h=>c.tiles.includes(h))||s(`"contributes.${n}[${m}].tiles" must hold {z}, {x} and {y}`)}))}const a=r.models;return a!==void 0&&(Array.isArray(a)||s('"contributes.models" must be a list'),a.forEach((n,l)=>{for(const c of["id","name","file"])(typeof n?.[c]!="string"||n[c]==="")&&s(`"contributes.models[${l}].${c}" is missing`);n.kind===void 0&&s(`"contributes.models[${l}].kind" is missing`),(!n.credit||typeof n.credit!="object")&&s(`"contributes.models[${l}].credit" is missing: a model is shown with its author and licence`)})),i}static contributions(t,e){const s=t.contributes??{},i={};if(s.imagery?.length&&(i.imagery=s.imagery.map(r=>({id:r.id,name:r.name,credit:r.credit,creditUrl:r.creditUrl,create:a=>new f({tileUrlTemplate:d.absoluteTemplate(r.tiles,e),attribution:r.credit,fetchImpl:a})}))),s.elevation?.length&&(i.elevation=s.elevation.map(r=>({id:r.id,name:r.name,credit:r.credit,creditUrl:r.creditUrl,create:a=>new v({tileUrlTemplate:d.absoluteTemplate(r.tiles,e),fetchImpl:a})}))),s.models?.length){const r=s.models.map(({file:n,...l})=>({...l,url:new URL(n,e).href})),a=t.credit??t.name;i.decorModels=[{id:`${t.id}-models`,name:t.name,credit:a,creditUrl:t.creditUrl??e,create:()=>new E(a,r)}]}return i}static module(t,e,s={}){const i=d.contributions(t,e);for(const[r,a]of Object.entries(s))Array.isArray(a)&&(i[r]=[...i[r]??[],...a]);return{id:t.id,name:t.name,credit:t.credit,creditUrl:t.creditUrl,url:e,contributes:i}}static absoluteTemplate(t,e){const s=t.replaceAll("{z}","__Z__").replaceAll("{x}","__X__").replaceAll("{y}","__Y__");return new URL(s,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 s=await this.fetchImpl(t);if(!s.ok)throw new Error(`${t}: HTTP ${s.status}`);const i=d.check(await s.json(),t),r=i.script!==void 0;let a={};if(r&&e.runScript){const n=new URL(i.script,t).href,l=await this.importImpl(n);if(typeof l.default!="function")throw new Error(`${n}: its default export is not a function`);const{MODULE_THREE:c}=await w(async()=>{const{MODULE_THREE:m}=await import("./ModuleThree-D18Rh2Nj.js");return{MODULE_THREE:m}},__vite__mapDeps([0,1]),import.meta.url);a=await l.default({manifestUrl:t,three:c})??{}}return{url:t,manifest:i,module:d.module(i,t,a),hasScript:r,scriptRun:r&&e.runScript}}}class g{constructor(t=new T,e){this.loader=t,this.storage=e}static shared=new g;changes=new EventTarget;states=new Map;config=o.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(o.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(s=>s.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(),p.revokeUnused([t],[...this.config.modules.map(e=>e.url),...this.named]),await this.reload(t)}refresh(t){return this.reload(t)}async setEnabled(t,e){this.config={...this.config,modules:this.config.modules.map(s=>s.url===t?{...s,enabled:e}:s)},this.save(),await this.reload(t)}exportText(){return o.text(this.config)}async importText(t){const e=o.parse(t);await this.start();const s=this.config.modules.map(i=>i.url);this.config=e,this.save(),await Promise.all([...new Set([...s,...e.modules.map(i=>i.url)])].map(i=>this.reload(i)))}async require(t,e,s=!1){t?.length&&(await this.start(),await Promise.all(t.map(async i=>{let r;try{r=new URL(i,e??(typeof location>"u"?void 0:location.href)).href}catch{return}const a=this.states.get(r),n=s&&!this.trusted.has(r);if(s&&this.trusted.add(r),this.named.add(r),a&&a.status!=="off"&&!(n&&a.loaded&&!a.loaded.scriptRun))return a.status==="loading"?this.pending.get(r):void 0;await this.reload(r)})))}named=new Set;trusted=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),s=this.states.get(t);s?.loaded&&y.uninstall(s.loaded.module.id);const i=e!==void 0,r=e?.enabled??!0;if(!i&&!this.named.has(t))return this.states.delete(t),this.announce(),{url:t,addedByPerson:i,enabled:r,status:"off"};if(i&&!r&&!this.named.has(t))return this.set({url:t,addedByPerson:i,enabled:r,status:"off"});this.set({url:t,addedByPerson:i,enabled:r,status:"loading"});try{const a=await this.loader.load(t,{runScript:i&&r&&p.granted(t)||this.trusted.has(t)});return y.install(a.module),this.set({url:t,addedByPerson:i,enabled:r,status:"installed",loaded:a})}catch(a){return this.set({url:t,addedByPerson:i,enabled:r,status:"failed",error:a instanceof Error?a.message:String(a)})}}set(t){return this.states.set(t.url,t),this.announce(),t}save(){o.write(this.config,this.storage)}announce(){this.changes.dispatchEvent(new Event("change"))}}export{g as ModuleSession};
@@ -0,0 +1,18 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ModulesPanelMessages_en-Dir0ADQe.js","./ConsentMessages_en-DBKCeDAn.js","./ModulesPanelMessages_fr-DbKLtD8s.js","./ConsentMessages_fr-FGSpqzMc.js","./ModulesPanelMessages_es-B_ITNG5N.js","./ConsentMessages_es-Dby74lUq.js","./ModulesPanelMessages_it-CE0q7D2c.js","./ConsentMessages_it-BJWfXH6I.js","./ModuleConformance-DYDAaJJQ.js","./rr0-ufoathome.mjs"])))=>i.map(i=>d[i]);
2
+ import{M as R,_ as N,H as T,i as m,L as C,a0 as M}from"./rr0-ufoathome.mjs";import{ModuleSession as B}from"./ModuleSession-Dac4fD0X.js";import{M as O}from"./CaseEditorElement-BgT6HnpX.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./GeoProjection-DvqDbRIx.js";import"./SaidPosition-OJEYhVKN.js";import"./ParameterForm-XbqxCLRn.js";import"./ColumnResize-CO4e1m-q.js";import"./ShareDialogElement-DqCoQwtn.js";import"./Sighting-D-_IYi9n.js";import"./VisualAids-DI-hEL46.js";import"./three.module-CbaHqYFq.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./Obstacles-v9SkfBD7.js";import"./TimelineTracks-Daaqw9ly.js";import"./ReentryArchive-CeXHrU7L.js";import"./ReferenceTimeline-2kBldQeG.js";import"./upperAirSources-BU0pD84c.js";import"./Account-C4jhsVtN.js";const S=R.catalog({en:()=>N(()=>import("./ModulesPanelMessages_en-Dir0ADQe.js"),__vite__mapDeps([0,1]),import.meta.url).then(v=>v.modulesPanelMessages_en),fr:()=>N(()=>import("./ModulesPanelMessages_fr-DbKLtD8s.js"),__vite__mapDeps([2,3]),import.meta.url).then(v=>v.modulesPanelMessages_fr),es:()=>N(()=>import("./ModulesPanelMessages_es-B_ITNG5N.js"),__vite__mapDeps([4,5]),import.meta.url).then(v=>v.modulesPanelMessages_es),it:()=>N(()=>import("./ModulesPanelMessages_it-CE0q7D2c.js"),__vite__mapDeps([6,7]),import.meta.url).then(v=>v.modulesPanelMessages_it)}),P="rr0-modules-panel",D=`
3
+ rr0-modules-panel { display: block; }
4
+ rr0-modules-panel .mp-add { display: flex; gap: .4em; align-items: center; margin: .4em 0; }
5
+ rr0-modules-panel .mp-add input { flex: 1 1 16em; min-width: 0; }
6
+ rr0-modules-panel .mp-list { list-style: none; margin: .5em 0; padding: 0; }
7
+ rr0-modules-panel .mp-module { padding: .4em 0; border-top: 1px solid color-mix(in srgb, CanvasText 15%, transparent); }
8
+ rr0-modules-panel .mp-head { display: flex; gap: .6em; align-items: center; flex-wrap: wrap; }
9
+ rr0-modules-panel .mp-name { font-weight: 600; }
10
+ rr0-modules-panel .mp-url { overflow-wrap: anywhere; }
11
+ rr0-modules-panel .mp-head .mp-remove { margin-left: auto; }
12
+ rr0-modules-panel .mp-module p { margin: .2em 0; }
13
+ rr0-modules-panel .mp-findings { margin: .3em 0; padding-left: 1.2em; }
14
+ rr0-modules-panel .mp-files { display: flex; gap: .6em; flex-wrap: wrap; align-items: center; margin-top: .6em; }
15
+ rr0-modules-panel .mp-consents { list-style: none; margin: .3em 0; padding: 0; }
16
+ rr0-modules-panel .mp-consents li { display: flex; gap: .6em; align-items: center; flex-wrap: wrap; }
17
+ rr0-modules-panel .mp-consents code { overflow-wrap: anywhere; }
18
+ `;class I extends HTMLElement{session=B.shared;messages;languageAsked=!1;named=[];recordingBase;note;languageToken=0;draft="";onChange=()=>this.render();checkContext;checks=new Map;set moduleSession(e){this.session.changes.removeEventListener("change",this.onChange),this.session=e,this.isConnected&&this.session.changes.addEventListener("change",this.onChange),this.render()}get recordingModules(){return[...this.named]}set recordingModules(e){this.named=[...e??[]],this.render()}set base(e){this.recordingBase=e,this.render()}async setLanguage(e){this.languageAsked=!0;const t=++this.languageToken,n=await S.load(e);t===this.languageToken&&(this.messages=n,this.render())}connectedCallback(){this.languageAsked||this.setLanguage(T.preferencesFor(this)[0]??"en"),this.session.changes.addEventListener("change",this.onChange),this.session.start(),this.render()}disconnectedCallback(){this.session.changes.removeEventListener("change",this.onChange)}absolute(e){try{return new URL(e,this.recordingBase??location.href).href}catch{return}}isNamed(e){return this.named.some(t=>this.absolute(t)===e)}setNamed(e,t){t!==this.isNamed(e)&&(this.named=t?[...this.named,O.of(e,this.recordingBase)]:this.named.filter(n=>this.absolute(n)!==e),t&&this.session.require([e]),this.dispatchEvent(new Event("recordingmoduleschange",{bubbles:!0})),this.render())}render(){const e=this.messages;if(!this.isConnected||!this.messages)return;const t=this.ownerDocument,n=t.createElement("style");n.textContent=D;const o=t.createElement("p");o.className=m.INFO,o.textContent=e.intro;const a=t.createElement("form");a.className="mp-add";const r=t.createElement("input");r.type="url",r.id="module-url",r.required=!0,r.placeholder=e.urlPlaceholder,r.value=this.draft,r.addEventListener("input",()=>{this.draft=r.value}),r.setAttribute("aria-label",e.urlPlaceholder);const u=t.createElement("button");u.type="submit",u.textContent=e.add,a.append(r,u),a.addEventListener("submit",i=>{i.preventDefault();const x=r.value.trim();x&&(this.draft="",this.addAsked(x))});const c=t.createElement("p");c.className=m.WARNING,c.textContent=e.codeWarning;const d=this.session.list(),p=new Set(d.map(i=>i.url)),k=this.named.map(i=>this.absolute(i)).filter(i=>i!==void 0&&!p.has(i)),g=t.createElement("ul");g.className="mp-list",g.append(...d.map(i=>this.item(i)),...k.map(i=>this.item({url:i,addedByPerson:!1,enabled:!0,status:"loading"})));const b=t.createElement("p");b.className=m.INFO,b.textContent=e.none,b.hidden=g.childElementCount>0;const f=t.createElement("div");f.className="mp-files";const E=t.createElement("button");E.type="button",E.id="modules-export",E.textContent=e.exportConfig,E.disabled=!d.some(i=>i.addedByPerson),E.addEventListener("click",()=>this.download());const h=t.createElement("input");h.type="file",h.id="modules-import",h.accept="application/json,.json",h.hidden=!0;const s=t.createElement("button");s.type="button",s.textContent=e.importConfig,s.addEventListener("click",()=>h.click()),h.addEventListener("change",()=>{const i=h.files?.[0];i&&this.importFile(i),h.value=""}),f.append(E,s,h);const l=t.createElement("p");l.id="modules-note",l.setAttribute("role","status"),m.show(l,this.note?.text,this.note?.kind);const w=t.createElement("p");w.className="mp-consents-heading";const _=C.list();w.textContent=_.length?e.consentedHeading:e.consentedNone;const L=t.createElement("ul");L.className="mp-consents",L.append(..._.map(i=>{const x=t.createElement("li"),A=t.createElement("code");A.textContent=i;const y=t.createElement("button");return y.type="button",y.className="mp-revoke",y.textContent=e.consentRevoke,y.addEventListener("click",()=>void this.revoke(i)),x.append(A,y),x})),this.replaceChildren(n,o,a,c,g,b,w,L,f,l)}async addAsked(e){let t;try{t=new URL(e,location.href).href}catch{return}await M.ask(this,this.messages,[t]),await this.session.add(t),this.render()}async revoke(e){C.revoke(e);const t=this.session.list().filter(n=>C.originOf(n.url)===e);await Promise.all(t.map(n=>this.session.refresh(n.url))),this.note={text:this.messages?.consentRevoked.replace("{origin}",e),kind:"info"},this.render()}item(e){const t=this.messages,n=this.ownerDocument,o=e.loaded,a=n.createElement("li");a.className="mp-module",a.dataset.url=e.url;const r=n.createElement("div");if(r.className="mp-head",e.addedByPerson){const s=n.createElement("label"),l=n.createElement("input");l.type="checkbox",l.className="mp-enabled",l.checked=e.enabled,l.addEventListener("change",()=>void this.session.setEnabled(e.url,l.checked)),s.append(l,n.createTextNode(` ${t.enabled}`)),r.append(s)}const u=n.createElement("span");u.className="mp-name",u.textContent=e.loaded?.module.name??e.url,r.append(u);const c=e.loaded?.module.credit;if(c){const s=n.createElement(e.loaded?.module.creditUrl?"a":"span");s.className=m.INFO,s.textContent=c,s instanceof HTMLAnchorElement&&(s.href=e.loaded.module.creditUrl,s.target="_blank",s.rel="noopener noreferrer"),r.append(s)}const d=n.createElement("button");if(d.type="button",d.className="mp-remove",e.addedByPerson?(d.textContent=t.remove,d.addEventListener("click",()=>void this.session.remove(e.url))):(d.textContent=t.addToMine,d.addEventListener("click",()=>void this.addAsked(e.url))),e.addedByPerson&&e.enabled&&o?.hasScript&&!o.scriptRun){const s=n.createElement("button");s.type="button",s.className="mp-allow",s.textContent=t.allowCode,s.addEventListener("click",()=>void M.ask(this,this.messages,[e.url]).then(l=>l?this.session.refresh(e.url):void 0)),r.append(s)}if(e.status==="installed"&&o){const s=n.createElement("button");s.type="button",s.className="mp-check";const l=this.checks.get(e.url),w=l?.of===o&&l.findings===void 0&&l.crash===void 0;s.textContent=w?t.checking:t.check,s.disabled=w,s.addEventListener("click",()=>void this.check(e.url,o)),r.append(s)}r.append(d);const p=n.createElement("p");p.className=`${m.INFO} mp-url`,p.textContent=e.url;const k=n.createElement("p");k.className="mp-status",e.status==="loading"?m.show(k,t.loading):e.status==="failed"?m.show(k,t.failed.replace("{error}",e.error??""),"error"):e.status==="off"?m.show(k,t.off):m.show(k,this.brings(e));const g=n.createElement("p");g.className="mp-code",o?.scriptRun?m.show(g,t.runsCode,"warning"):o?.hasScript?m.show(g,t.codeNotRun,"info"):g.hidden=!0;const b=n.createElement("label");b.title=t.namedByRecordingHint;const f=n.createElement("input");f.type="checkbox",f.className="mp-named",f.checked=this.isNamed(e.url),f.addEventListener("change",()=>this.setNamed(e.url,f.checked)),b.append(f,n.createTextNode(` ${t.namedByRecording}`));const E=n.createElement("p");E.append(b),a.append(r,p,k,g,E);const h=this.checks.get(e.url);return h&&h.of===o&&a.append(...this.checkResult(h)),a}async check(e,t){const n={of:t};this.checks.set(e,n),this.render();try{const{ModuleConformance:o}=await N(async()=>{const{ModuleConformance:a}=await import("./ModuleConformance-DYDAaJJQ.js");return{ModuleConformance:a}},__vite__mapDeps([8,9]),import.meta.url);n.findings=await o.check(t,this.checkContext?.())}catch(o){n.crash=o instanceof Error?o.message:String(o)}this.render()}checkResult(e){const t=this.messages,n=this.ownerDocument,o=(c,d)=>{const p=n.createElement("p");return p.className="mp-check-result",p.setAttribute("role","status"),m.show(p,c,d),p};if(e.crash!==void 0)return[o(t.checkCrashed.replace("{error}",()=>e.crash),"error")];if(!e.findings)return[];const a=e.findings.filter(c=>c.level==="failed"),r=e.findings.filter(c=>c.level==="note"),u=[];if(a.length===0&&u.push(o(t.checkPassed,"info")),a.length+r.length>0){const c=n.createElement("ul");c.className="mp-findings";for(const d of[...a,...r]){const p=n.createElement("li");m.show(p,this.finding(d),d.level==="failed"?"error":"info"),c.append(p)}u.push(c)}return u}finding(e){const t=this.messages,n=e.point===void 0?"":t.points[e.point]??e.point,o=t.checks[e.code].replace("{point}",()=>e.point??"").replace("{detail}",()=>e.detail??""),a=e.source??(e.code==="unknownPoint"||e.code==="notAList"?void 0:n);return a?t.checkAbout.replace("{about}",()=>a).replace("{text}",()=>o):o}brings(e){const t=Object.entries(e.loaded?.module.contributes??{}).filter(([,n])=>Array.isArray(n)&&n.length>0).map(([n,o])=>`${this.messages.points[n]??n} (${o.length})`);return t.length>0?this.messages.brings.replace("{points}",t.join(", ")):this.messages.bringsNothing}download(){const e=new Blob([this.session.exportText()],{type:"application/json"}),t=URL.createObjectURL(e),n=this.ownerDocument.createElement("a");n.href=t,n.download="ufoathome-modules.json",n.click(),URL.revokeObjectURL(t)}async importFile(e){try{await this.session.importText(await e.text());const t=this.session.list().filter(n=>n.addedByPerson).length;this.note={text:this.messages.imported.replace("{count}",String(t)),kind:"info"}}catch(t){this.note={text:this.messages.importFailed.replace("{error}",t instanceof Error?t.message:String(t)),kind:"error"}}this.render()}}function oe(){customElements.get(P)||customElements.define(P,I)}export{P as MODULES_PANEL_ELEMENT_NAME,I as ModulesPanelElement,oe as register};
@@ -0,0 +1 @@
1
+ import{c as e}from"./ConsentMessages_en-DBKCeDAn.js";const o={...e,consentedHeading:"Sites whose module code you agreed to run:",consentedNone:"You have agreed to run no other site's module code.",consentRevoke:"Withdraw",consentRevoked:"Agreement to {origin} withdrawn: its modules come without their code (reload the page to drop code already run).",allowCode:"Run its code…",intro:"A module adds sources (imagery, relief, weather…) and 3D models that others published. The modules you add are kept in this browser; save them to a file to take them elsewhere.",codeWarning:"A module that contains code runs with everything this page can do: only add those whose author you know.",urlPlaceholder:"https://…/ufoathome-module.json",add:"Add",none:"No module.",remove:"Remove",enabled:"On",namedByRecording:"Named by this recording",namedByRecordingHint:"Whoever opens the recording loads this module, so that the models it takes from it are drawn. Its code, if it has any, only runs for those who added it themselves.",addToMine:"Add to my modules",loading:"Loading…",failed:"Could not be loaded: {error}",off:"Off",brings:"Brings: {points}",bringsNothing:"Brings nothing.",runsCode:"Runs code.",codeNotRun:"Its code did not run: add it to your modules, and agree to its site's code, to run it.",exportConfig:"Save my modules",importConfig:"Load modules",imported:"{count} module(s) loaded from the file.",importFailed:"This file is not a list of modules: {error}",check:"Check",checking:"Checking…",checkPassed:"Nothing breaks UFO@home's contract. This says nothing of its data being right, or of it being safe.",checkCrashed:"The check could not finish: {error}",checkAbout:"{about}: {text}",checks:{scriptNotRun:"Its code was not checked, since it was not run: add it to your modules.",notAList:'"{point}" must be a list.',unknownPoint:'"{point}" is not a place a module can add to: nothing reads it.',entryField:`The entry's "{detail}" is missing or not valid.`,duplicateId:"This id is given twice at the same place.",createMissing:"The entry has no create function.",createThrew:"create failed: {detail}",createAsked:"create asks the network, when a source listed and not used should cost nothing.",createEmpty:"create returns nothing.",missingMember:'What create returns lacks "{detail}".',weatherNotAsked:"The service was not asked: the open recording needs a place and a date.",weatherNoRecord:"The service has no record for this place and date: its values could not be checked.",weatherThrew:"The service could not be asked: {detail}. A service that refuses other sites (CORS) often says this.",weatherSamples:"Samples received/asked for: {detail}. One per point is needed.",weatherOrder:"The samples are not in the order of the points asked for.",weatherValue:"A value is missing or out of its bounds: {detail}.",weatherWindHigh:"A very strong wind: check that it is in metres a second.",weatherSource:`"source.{detail}" is missing, or its id is not the entry's.`,kindKey:`"key" ({detail}) is not the entry's id.`,kindMessages:"A text is missing or did not load: {detail}.",simulationFailed:"The simulation could not be built: {detail}",secondThree:`"object" is no object of the page's three.js: use the three the script is given.`,updateThrew:"update fails with no events: {detail}",drawnWithoutEvents:"drawnCount is {detail} with no events.",disposeThrew:"dispose failed: {detail}",disposeLeft:"dispose leaves its object in the scene.",readingNotTried:"compute was not tried: the open recording states none.",readingThrew:"compute, or what it gives, failed: {detail}",readingNotAList:"What compute gives does not return a list, though it is called synchronously."},points:{weather:"weather",place:"places",timeZone:"time zones",narrative:"drafting",assessment:"assessments",lightPollution:"light pollution",aircraft:"air traffic",upperAir:"air aloft",elevation:"relief",imagery:"imagery",surroundings:"surroundings",perception:"perception",interpretations:"interpretations",skyEvents:"sky events",decorModels:"3D models"}};export{o as modulesPanelMessages_en};
@@ -0,0 +1 @@
1
+ import{c as e}from"./ConsentMessages_es-Dby74lUq.js";const o={...e,consentedHeading:"Sitios cuyo código de módulos aceptó ejecutar:",consentedNone:"No ha aceptado el código de módulos de ningún otro sitio.",consentRevoke:"Retirar el acuerdo",consentRevoked:"Acuerdo retirado para {origin}: sus módulos llegan sin su código (recargue la página para descartar el código ya ejecutado).",allowCode:"Ejecutar su código…",intro:"Un módulo añade fuentes (imágenes, relieve, meteorología…) y modelos 3D publicados por otros. Los módulos que añade se guardan en este navegador; guárdelos en un archivo para usarlos en otro lugar.",codeWarning:"Un módulo que contiene código se ejecuta con todos los derechos de esta página: añada solo aquellos cuyo autor conozca.",urlPlaceholder:"https://…/ufoathome-module.json",add:"Añadir",none:"Ningún módulo.",remove:"Quitar",enabled:"Activo",namedByRecording:"Citado por esta grabación",namedByRecordingHint:"Quien abre la grabación carga este módulo, para que se dibujen los modelos que toma de él. Su código, si lo tiene, solo se ejecuta para quien lo añadió.",addToMine:"Añadir a mis módulos",loading:"Cargando…",failed:"No se pudo cargar: {error}",off:"Inactivo",brings:"Aporta: {points}",bringsNothing:"No aporta nada.",runsCode:"Ejecuta código.",codeNotRun:"Su código no se ha ejecutado: añádalo a sus módulos, y acepte el código de su sitio, para ejecutarlo.",exportConfig:"Guardar mis módulos",importConfig:"Cargar módulos",imported:"{count} módulo(s) leído(s) del archivo.",importFailed:"Este archivo no es una lista de módulos: {error}",check:"Comprobar",checking:"Comprobando…",checkPassed:"Nada contradice el contrato de UFO@home. Esto no dice nada de la exactitud de sus datos ni de su seguridad.",checkCrashed:"La comprobación no pudo terminar: {error}",checkAbout:"{about}: {text}",checks:{scriptNotRun:"Su código no se comprobó, porque no se ejecutó: añádalo a sus módulos.",notAList:"«{point}» debe ser una lista.",unknownPoint:"«{point}» no es un lugar donde un módulo pueda añadir: nada lo lee.",entryField:"El campo «{detail}» de la entrada falta o no es válido.",duplicateId:"Este id se da dos veces en el mismo lugar.",createMissing:"La entrada no tiene función create.",createThrew:"create ha fallado: {detail}",createAsked:"create consulta la red, cuando una fuente listada y sin usar no debería costar nada.",createEmpty:"create no devuelve nada.",missingMember:"A lo que devuelve create le falta «{detail}».",weatherNotAsked:"No se consultó el servicio: la grabación abierta necesita un lugar y una fecha.",weatherNoRecord:"El servicio no tiene registro para este lugar y esta fecha: sus valores no se pudieron comprobar.",weatherThrew:"No se pudo consultar el servicio: {detail}. Un servicio que rechaza a otros sitios (CORS) suele decir esto.",weatherSamples:"Muestras recibidas/pedidas: {detail}. Hace falta una por punto.",weatherOrder:"Las muestras no están en el orden de los puntos pedidos.",weatherValue:"Un valor falta o se sale de sus límites: {detail}.",weatherWindHigh:"Viento muy fuerte: compruebe que está en metros por segundo.",weatherSource:"«source.{detail}» falta, o su id no es el de la entrada.",kindKey:"«key» ({detail}) no es el id de la entrada.",kindMessages:"Un texto falta o no se cargó: {detail}.",simulationFailed:"No se pudo construir la simulación: {detail}",secondThree:"«object» no es un objeto del three.js de la página: use el three que recibe el script.",updateThrew:"update falla sin eventos: {detail}",drawnWithoutEvents:"drawnCount vale {detail} sin ningún evento.",disposeThrew:"dispose ha fallado: {detail}",disposeLeft:"dispose deja su objeto en la escena.",readingNotTried:"compute no se probó: la grabación abierta no declara ninguna.",readingThrew:"compute, o lo que da, ha fallado: {detail}",readingNotAList:"Lo que da compute no devuelve una lista, aunque se llama de forma síncrona."},points:{weather:"meteorología",place:"lugares",timeZone:"husos horarios",narrative:"redacción",assessment:"evaluaciones",lightPollution:"contaminación lumínica",aircraft:"tráfico aéreo",upperAir:"aire en altura",elevation:"relieve",imagery:"imágenes",surroundings:"entorno",perception:"percepción",interpretations:"interpretaciones",skyEvents:"eventos del cielo",decorModels:"modelos 3D"}};export{o as modulesPanelMessages_es};
@@ -0,0 +1 @@
1
+ import{c as e}from"./ConsentMessages_fr-FGSpqzMc.js";const n={...e,consentedHeading:"Sites dont vous avez accepté le code des modules :",consentedNone:"Vous n'avez accepté le code des modules d'aucun autre site.",consentRevoke:"Retirer l'accord",consentRevoked:"Accord retiré pour {origin} : ses modules viennent sans leur code (rechargez la page pour écarter le code déjà exécuté).",allowCode:"Exécuter son code…",intro:"Un module ajoute des sources (imagerie, relief, météo…) et des modèles 3D publiés par d'autres. Les modules que vous ajoutez sont gardés dans ce navigateur ; enregistrez-les dans un fichier pour les retrouver ailleurs.",codeWarning:"Un module qui contient du code s'exécute avec tous les droits de cette page : n'ajoutez que ceux dont vous connaissez l'auteur.",urlPlaceholder:"https://…/ufoathome-module.json",add:"Ajouter",none:"Aucun module.",remove:"Retirer",enabled:"Actif",namedByRecording:"Nommé par cet enregistrement",namedByRecordingHint:"Qui ouvre l'enregistrement charge ce module, pour que les modèles qu'il y prend soient dessinés. Son code, s'il en a, ne s'exécute que pour qui l'a ajouté lui-même.",addToMine:"Ajouter à mes modules",loading:"Chargement…",failed:"Chargement impossible : {error}",off:"Inactif",brings:"Apporte : {points}",bringsNothing:"N'apporte rien.",runsCode:"Exécute du code.",codeNotRun:"Son code n'a pas été exécuté : ajoutez-le à vos modules, et acceptez le code de son site, pour l'exécuter.",exportConfig:"Enregistrer mes modules",importConfig:"Charger des modules",imported:"{count} module(s) lu(s) dans le fichier.",importFailed:"Ce fichier n'est pas une liste de modules : {error}",check:"Vérifier",checking:"Vérification…",checkPassed:"Rien ne contredit le contrat d'UFO@home. Cela ne dit rien de l'exactitude de ses données ni de sa sûreté.",checkCrashed:"La vérification n'a pas pu aller au bout : {error}",checkAbout:"{about} : {text}",checks:{scriptNotRun:"Son code n'a pas été vérifié, car il n'a pas été exécuté : ajoutez-le à vos modules.",notAList:"« {point} » doit être une liste.",unknownPoint:"« {point} » n'est pas un endroit où un module peut ajouter : rien ne le lit.",entryField:"Le champ « {detail} » de l'entrée manque ou n'est pas valable.",duplicateId:"Cet id est donné deux fois au même endroit.",createMissing:"L'entrée n'a pas de fonction create.",createThrew:"create a échoué : {detail}",createAsked:"create interroge le réseau, alors qu'une source listée sans être utilisée ne doit rien coûter.",createEmpty:"create ne renvoie rien.",missingMember:"Il manque « {detail} » à ce que renvoie create.",weatherNotAsked:"Le service n'a pas été interrogé : il faut un lieu et une date dans l'enregistrement ouvert.",weatherNoRecord:"Le service n'a pas de relevé pour ce lieu et cette date : ses valeurs n'ont pas pu être contrôlées.",weatherThrew:"Le service n'a pas pu être interrogé : {detail}. Un service qui refuse les autres sites (CORS) dit souvent cela.",weatherSamples:"Échantillons reçus/demandés : {detail}. Il en faut un par point.",weatherOrder:"Les échantillons ne sont pas dans l'ordre des points demandés.",weatherValue:"Une valeur manque ou sort de ses limites : {detail}.",weatherWindHigh:"Vent très fort : vérifiez qu'il est bien en mètres par seconde.",weatherSource:"« source.{detail} » manque, ou son id n'est pas celui de l'entrée.",kindKey:"« key » ({detail}) n'est pas l'id de l'entrée.",kindMessages:"Un texte manque ou n'a pas été chargé : {detail}.",simulationFailed:"La simulation n'a pas pu être construite : {detail}",secondThree:"« object » n'est pas un objet du three.js de la page : utilisez le three que reçoit le script.",updateThrew:"update échoue sans événement : {detail}",drawnWithoutEvents:"drawnCount vaut {detail} sans aucun événement.",disposeThrew:"dispose a échoué : {detail}",disposeLeft:"dispose laisse son objet dans la scène.",readingNotTried:"compute n'a pas été essayé : l'enregistrement ouvert n'en énonce aucune.",readingThrew:"compute, ou ce qu'il donne, a échoué : {detail}",readingNotAList:"Ce que donne compute ne renvoie pas une liste, alors qu'il est appelé de façon synchrone."},points:{weather:"météo",place:"lieux",timeZone:"fuseaux horaires",narrative:"rédaction",assessment:"évaluations",lightPollution:"pollution lumineuse",aircraft:"trafic aérien",upperAir:"air en altitude",elevation:"relief",imagery:"imagerie",surroundings:"environs",perception:"perception",interpretations:"interprétations",skyEvents:"événements du ciel",decorModels:"modèles 3D"}};export{n as modulesPanelMessages_fr};
@@ -0,0 +1 @@
1
+ import{c as e}from"./ConsentMessages_it-BJWfXH6I.js";const o={...e,consentedHeading:"Siti di cui ha accettato il codice dei moduli:",consentedNone:"Non ha accettato il codice dei moduli di nessun altro sito.",consentRevoke:"Ritirare il consenso",consentRevoked:"Consenso ritirato per {origin}: i suoi moduli arrivano senza il loro codice (ricarichi la pagina per scartare il codice già eseguito).",allowCode:"Eseguire il suo codice…",intro:"Un modulo aggiunge fonti (immagini, rilievo, meteo…) e modelli 3D pubblicati da altri. I moduli che aggiungi sono conservati in questo browser; salvali in un file per ritrovarli altrove.",codeWarning:"Un modulo che contiene codice viene eseguito con tutti i diritti di questa pagina: aggiungi solo quelli di cui conosci l'autore.",urlPlaceholder:"https://…/ufoathome-module.json",add:"Aggiungi",none:"Nessun modulo.",remove:"Rimuovi",enabled:"Attivo",namedByRecording:"Citato da questa registrazione",namedByRecordingHint:"Chi apre la registrazione carica questo modulo, perché i modelli che ne prende siano disegnati. Il suo codice, se ne ha, viene eseguito solo per chi lo ha aggiunto.",addToMine:"Aggiungi ai miei moduli",loading:"Caricamento…",failed:"Impossibile caricarlo: {error}",off:"Inattivo",brings:"Porta: {points}",bringsNothing:"Non porta nulla.",runsCode:"Esegue codice.",codeNotRun:"Il suo codice non è stato eseguito: lo aggiunga ai suoi moduli, e accetti il codice del suo sito, per eseguirlo.",exportConfig:"Salva i miei moduli",importConfig:"Carica moduli",imported:"{count} modulo/i letto/i dal file.",importFailed:"Questo file non è un elenco di moduli: {error}",check:"Verifica",checking:"Verifica in corso…",checkPassed:"Nulla contraddice il contratto di UFO@home. Questo non dice nulla sull'esattezza dei suoi dati né sulla sua sicurezza.",checkCrashed:"La verifica non è potuta arrivare in fondo: {error}",checkAbout:"{about}: {text}",checks:{scriptNotRun:"Il suo codice non è stato verificato, perché non è stato eseguito: aggiungilo ai tuoi moduli.",notAList:"«{point}» deve essere un elenco.",unknownPoint:"«{point}» non è un punto a cui un modulo possa aggiungere: nulla lo legge.",entryField:"Il campo «{detail}» della voce manca o non è valido.",duplicateId:"Questo id è dato due volte nello stesso punto.",createMissing:"La voce non ha una funzione create.",createThrew:"create non è riuscita: {detail}",createAsked:"create interroga la rete, mentre una fonte elencata e non usata non dovrebbe costare nulla.",createEmpty:"create non restituisce nulla.",missingMember:"A ciò che create restituisce manca «{detail}».",weatherNotAsked:"Il servizio non è stato interrogato: la registrazione aperta ha bisogno di un luogo e di una data.",weatherNoRecord:"Il servizio non ha dati per questo luogo e questa data: i suoi valori non sono stati verificati.",weatherThrew:"Non è stato possibile interrogare il servizio: {detail}. Un servizio che rifiuta gli altri siti (CORS) dice spesso così.",weatherSamples:"Campioni ricevuti/chiesti: {detail}. Ne serve uno per punto.",weatherOrder:"I campioni non sono nell'ordine dei punti chiesti.",weatherValue:"Un valore manca o esce dai suoi limiti: {detail}.",weatherWindHigh:"Vento molto forte: controlla che sia in metri al secondo.",weatherSource:"«source.{detail}» manca, o il suo id non è quello della voce.",kindKey:"«key» ({detail}) non è l'id della voce.",kindMessages:"Un testo manca o non è stato caricato: {detail}.",simulationFailed:"Non è stato possibile costruire la simulazione: {detail}",secondThree:"«object» non è un oggetto del three.js della pagina: usa il three che lo script riceve.",updateThrew:"update fallisce senza eventi: {detail}",drawnWithoutEvents:"drawnCount vale {detail} senza alcun evento.",disposeThrew:"dispose non è riuscita: {detail}",disposeLeft:"dispose lascia il suo oggetto nella scena.",readingNotTried:"compute non è stato provato: la registrazione aperta non ne dichiara nessuna.",readingThrew:"compute, o ciò che dà, non è riuscito: {detail}",readingNotAList:"Ciò che dà compute non restituisce un elenco, benché sia chiamato in modo sincrono."},points:{weather:"meteo",place:"luoghi",timeZone:"fusi orari",narrative:"redazione",assessment:"valutazioni",lightPollution:"inquinamento luminoso",aircraft:"traffico aereo",upperAir:"aria in quota",elevation:"rilievo",imagery:"immagini",surroundings:"dintorni",perception:"percezione",interpretations:"interpretazioni",skyEvents:"eventi del cielo",decorModels:"modelli 3D"}};export{o as modulesPanelMessages_it};
@@ -0,0 +1 @@
1
+ import{a$ as y,n as h}from"./ShareDialogElement-DqCoQwtn.js";class c{static FLAT={heightAt:()=>0};static of(e){const s=e.timeline.sourceIds.map(n=>y.of(e,n)?.nearestM).filter(n=>n!==void 0);return s.length>0?{m:Math.min(...s),basis:"derived",paths:["timeline","observerTrack"]}:c.interpreted(e)}static interpreted(e){const s=(e.interpretation?.bodies??[]).map((t,i)=>({body:t,index:i})).filter(({body:t})=>Array.isArray(t.track)),n=s.filter(({body:t})=>(t.explains?.length??0)>0),u=n.length>0?n:s,d=c.FLAT,l=t=>h.eyeOf(e,t,d);let o;const p=[];for(const{body:t,index:i}of u){const M=new h(t,d,l);for(const{t:f}of t.track){const a=M.at(f),r=l(f);if(!a||!r)continue;const m=Math.hypot(a.eastM-r.eastM,a.northM-r.northM,a.upM-r.upM);(o===void 0||m<o)&&(o=m)}p.push(`interpretation.bodies.${i}`)}return o===void 0?void 0:{m:o,basis:"assumed",paths:p}}}export{c as N};
@@ -1 +1 @@
1
- import{w as u}from"./ShareDialogElement-EzLob2Tz.js";import"./rr0-ufoathome.mjs";import"./Sighting-B7bsiTIQ.js";import"./VisualAids-DI-hEL46.js";import"./three.module-CbaHqYFq.js";import"./SaidPosition-OJEYhVKN.js";import"./GeoProjection-DvqDbRIx.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";class o{about="shape";static STEP_DEG=2;static TURN_DEG=60;static ERRATIC_TURNS=3;static OSCILLATIONS=["vibrate","spiral","roll"];async assess(n){const t=this.trajectory(n),s=this.vanish(n),i=this.oscillation(n),e=this.landing(n),c=this.judged(n,"traces"),r=this.occupants(n),h=e.shown&&r.shown?5:e.shown&&c.shown?4:e.shown||t.value==="erratic"||s.shown||i.shown?3:t.value==="abnormal"?2:t.value==="straight"?1:0,a=[{id:"poher-trajectory",basis:t.basis,paths:t.paths,value:o.TRAJECTORIES.indexOf(t.value)},this.criterion("poher-vanish",s),this.criterion("poher-oscillation",i),{...this.criterion("poher-landing",e),unsupported:e.basis===void 0},this.criterion("poher-traces",c),this.criterion("poher-occupants",r)];return{verdict:String(h),criteria:a}}static TRAJECTORIES=["unknown","still","straight","abnormal","erratic"];criterion(n,t){return{id:n,value:t.shown?1:0,basis:t.basis,paths:t.basis===void 0?[]:t.paths}}trajectory(n){let t="unknown";for(const s of n.timeline.sourceIds){const i=this.seen(n,s).filter(a=>a.aim!==void 0).map(a=>a.aim);if(i.length<2)continue;const e=[o.unit(i[0])];for(const a of i.slice(1)){const l=o.unit(a);o.angleDeg(e[e.length-1],l)>=o.STEP_DEG&&e.push(l)}const c=e.length-1;let r=0;for(let a=1;a<e.length-1;a++){const l=o.cross(e[a-1],e[a]),d=o.cross(e[a],e[a+1]);o.angleDeg(l,d)>=o.TURN_DEG&&r++}const h=c===0?"still":r>=o.ERRATIC_TURNS?"erratic":r>0?"abnormal":"straight";o.TRAJECTORIES.indexOf(h)>o.TRAJECTORIES.indexOf(t)&&(t=h)}return t==="unknown"?{value:t,paths:[]}:{value:t,basis:"derived",paths:["timeline"]}}vanish(n){const t=(n.events??[]).findIndex(s=>s.eventType==="vanish"&&u.isPhenomenon(n,s));return t>=0?{shown:!0,basis:"stated",paths:[`events.${t}`]}:{shown:!1,paths:[]}}oscillation(n){const t=new Set((n.interpretation?.bodies??[]).map(i=>i.id)),s=(n.events??[]).findIndex(i=>o.OSCILLATIONS.includes(i.eventType)&&(u.isPhenomenon(n,i)||t.has(i.who?.split("/")[0]??"")));return s>=0?{shown:!0,basis:"stated",paths:[`events.${s}`]}:{shown:!1,paths:[]}}landing(n){const t=i=>!i.onGround&&((i.altitudeAboveGroundM??0)>0||(i.altitudeM??0)>0),s=(n.interpretation?.bodies??[]).findIndex(i=>Array.isArray(i.track)&&i.track.some(e=>e.onGround)&&i.track.some(t));return s>=0?{shown:!0,basis:"assumed",paths:[`interpretation.bodies.${s}`]}:{shown:!1,paths:[]}}occupants(n){const t=n.decor.findIndex(s=>s.kind==="entity");return t>=0?{shown:!0,basis:"stated",paths:[`decor.${t}`]}:this.judged(n,"beings")}judged(n,t){const s=n.account?.strangeness?.[t];return s===void 0?{shown:!1,paths:[]}:{shown:s,basis:"stated",paths:[`account.strangeness.${t}`]}}instants(n,t){return n.timeline.allKeyframes.map(s=>({t:s.t,shape:s.shapes.find(i=>i.sourceId===t)?.shape})).filter(({shape:s})=>s!==void 0).map(({t:s,shape:i})=>({t:s,aim:i.aim,visible:i.transparency<1})).sort((s,i)=>s.t-i.t)}seen(n,t){return this.instants(n,t).filter(s=>s.visible)}static unit(n){const[t,s]=[n.azimuthDeg*Math.PI/180,n.altitudeDeg*Math.PI/180];return[Math.cos(s)*Math.sin(t),Math.cos(s)*Math.cos(t),Math.sin(s)]}static cross(n,t){return[n[1]*t[2]-n[2]*t[1],n[2]*t[0]-n[0]*t[2],n[0]*t[1]-n[1]*t[0]]}static angleDeg(n,t){const s=Math.hypot(...n)*Math.hypot(...t);if(s===0)return 0;const i=(n[0]*t[0]+n[1]*t[1]+n[2]*t[2])/s;return Math.acos(Math.max(-1,Math.min(1,i)))*180/Math.PI}}export{o as PoherAssessor};
1
+ import{x as u}from"./ShareDialogElement-DqCoQwtn.js";import"./rr0-ufoathome.mjs";import"./Sighting-D-_IYi9n.js";import"./VisualAids-DI-hEL46.js";import"./three.module-CbaHqYFq.js";import"./SaidPosition-OJEYhVKN.js";import"./GeoProjection-DvqDbRIx.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";class o{about="shape";static STEP_DEG=2;static TURN_DEG=60;static ERRATIC_TURNS=3;static OSCILLATIONS=["vibrate","spiral","roll"];async assess(n){const t=this.trajectory(n),s=this.vanish(n),i=this.oscillation(n),e=this.landing(n),c=this.judged(n,"traces"),r=this.occupants(n),h=e.shown&&r.shown?5:e.shown&&c.shown?4:e.shown||t.value==="erratic"||s.shown||i.shown?3:t.value==="abnormal"?2:t.value==="straight"?1:0,a=[{id:"poher-trajectory",basis:t.basis,paths:t.paths,value:o.TRAJECTORIES.indexOf(t.value)},this.criterion("poher-vanish",s),this.criterion("poher-oscillation",i),{...this.criterion("poher-landing",e),unsupported:e.basis===void 0},this.criterion("poher-traces",c),this.criterion("poher-occupants",r)];return{verdict:String(h),criteria:a}}static TRAJECTORIES=["unknown","still","straight","abnormal","erratic"];criterion(n,t){return{id:n,value:t.shown?1:0,basis:t.basis,paths:t.basis===void 0?[]:t.paths}}trajectory(n){let t="unknown";for(const s of n.timeline.sourceIds){const i=this.seen(n,s).filter(a=>a.aim!==void 0).map(a=>a.aim);if(i.length<2)continue;const e=[o.unit(i[0])];for(const a of i.slice(1)){const l=o.unit(a);o.angleDeg(e[e.length-1],l)>=o.STEP_DEG&&e.push(l)}const c=e.length-1;let r=0;for(let a=1;a<e.length-1;a++){const l=o.cross(e[a-1],e[a]),d=o.cross(e[a],e[a+1]);o.angleDeg(l,d)>=o.TURN_DEG&&r++}const h=c===0?"still":r>=o.ERRATIC_TURNS?"erratic":r>0?"abnormal":"straight";o.TRAJECTORIES.indexOf(h)>o.TRAJECTORIES.indexOf(t)&&(t=h)}return t==="unknown"?{value:t,paths:[]}:{value:t,basis:"derived",paths:["timeline"]}}vanish(n){const t=(n.events??[]).findIndex(s=>s.eventType==="vanish"&&u.isPhenomenon(n,s));return t>=0?{shown:!0,basis:"stated",paths:[`events.${t}`]}:{shown:!1,paths:[]}}oscillation(n){const t=new Set((n.interpretation?.bodies??[]).map(i=>i.id)),s=(n.events??[]).findIndex(i=>o.OSCILLATIONS.includes(i.eventType)&&(u.isPhenomenon(n,i)||t.has(i.who?.split("/")[0]??"")));return s>=0?{shown:!0,basis:"stated",paths:[`events.${s}`]}:{shown:!1,paths:[]}}landing(n){const t=i=>!i.onGround&&((i.altitudeAboveGroundM??0)>0||(i.altitudeM??0)>0),s=(n.interpretation?.bodies??[]).findIndex(i=>Array.isArray(i.track)&&i.track.some(e=>e.onGround)&&i.track.some(t));return s>=0?{shown:!0,basis:"assumed",paths:[`interpretation.bodies.${s}`]}:{shown:!1,paths:[]}}occupants(n){const t=n.decor.findIndex(s=>s.kind==="entity");return t>=0?{shown:!0,basis:"stated",paths:[`decor.${t}`]}:this.judged(n,"beings")}judged(n,t){const s=n.account?.strangeness?.[t];return s===void 0?{shown:!1,paths:[]}:{shown:s,basis:"stated",paths:[`account.strangeness.${t}`]}}instants(n,t){return n.timeline.allKeyframes.map(s=>({t:s.t,shape:s.shapes.find(i=>i.sourceId===t)?.shape})).filter(({shape:s})=>s!==void 0).map(({t:s,shape:i})=>({t:s,aim:i.aim,visible:i.transparency<1})).sort((s,i)=>s.t-i.t)}seen(n,t){return this.instants(n,t).filter(s=>s.visible)}static unit(n){const[t,s]=[n.azimuthDeg*Math.PI/180,n.altitudeDeg*Math.PI/180];return[Math.cos(s)*Math.sin(t),Math.cos(s)*Math.cos(t),Math.sin(s)]}static cross(n,t){return[n[1]*t[2]-n[2]*t[1],n[2]*t[0]-n[0]*t[2],n[0]*t[1]-n[1]*t[0]]}static angleDeg(n,t){const s=Math.hypot(...n)*Math.hypot(...t);if(s===0)return 0;const i=(n[0]*t[0]+n[1]*t[1]+n[2]*t[2])/s;return Math.acos(Math.max(-1,Math.min(1,i)))*180/Math.PI}}export{o as PoherAssessor};
@@ -0,0 +1 @@
1
+ import{QuestionnaireImport as M}from"./QuestionnaireImport-BlTDOHWj.js";import{Q as C}from"./rr0-ufoathome.mjs";import"./interviewJson-D-i14LTf.js";class d{static PHENOMENON="phenomenon";static apply(s,e,t,o){const b=M.answers(e),a=new Map;for(const r of C.fields(t)){const n=r.feeds?b.get(r.id):void 0;r.feeds&&n&&a.set(r.feeds,{field:r.id,text:n.text,source:{said:{...o!==void 0?{interview:o}:{},segment:n.segment}}})}const l=[],u=(r,n,m)=>({value:r,basis:"stated",rationale:n,source:m}),c=(r,n,m,p)=>{p(),l.push({path:r,value:n,field:m})},i=a.get("narrative");i&&c("description",i.text,i.field,()=>{s.description={[t.language??"fr"]:i.text}});const f=a.get("date"),h=a.get("startTime"),S=f?d.date(f.text):void 0,w=h?d.clock(h.text):void 0;if(S){const r=w!==void 0?`${S}T${d.hms(w)}`:S,n=[f.text,h?.text].filter(m=>m!==void 0).join(", ");c("time",r,h&&w!==void 0?h.field:f.field,()=>{s.time=u(r,n,(w!==void 0?h:f).source)})}const v=a.get("duration"),k=v?d.duration(v.text,w):void 0;v&&k!==void 0&&c("durationSeconds",k,v.field,()=>{s.durationSeconds=u(k,v.text,v.source)});const x=a.get("color"),N=x?d.color(x.text):void 0,g=d.aim(a.get("startAzimuth"),a.get("startElevation")),j=d.aim(a.get("endAzimuth"),a.get("endElevation"));if(N||g||j){const r=(s.timeline??={}).keyframes??=[];let n=r.find(p=>(p.shapes??[]).length>0);n||(n=r.find(p=>p.t===0)??{t:0,shapes:[]},r.includes(n)||r.unshift(n),n.shapes=[{sourceId:d.PHENOMENON,shape:{kind:"oval",color:N??"#ffffff",transparency:0,haloScale:1.5,brightness:.4,angular:{value:{widthDeg:.5,heightDeg:.5},basis:"assumed",rationale:"no size the questionnaire's answers give"}}}]);const m=n.shapes[0];if(N&&c(`timeline.keyframes.${r.indexOf(n)}.shapes.0.shape.color`,N,x.field,()=>{m.shape.color=u(N,x.text,x.source)}),g&&c(`timeline.keyframes.${r.indexOf(n)}.shapes.0.shape.aim`,g.value,g.field,()=>{m.shape.aim=u(g.value,g.said,g.source)}),j){const p=(k??10)*1e3;let $=r.find(O=>O.t===p);$||($={t:p,shapes:[]},r.push($),r.sort((O,L)=>O.t-L.t));const I=$.shapes??=[];let y=I.find(O=>O.sourceId===m.sourceId);y||(y={sourceId:m.sourceId,shape:{}},I.push(y));const z=j;c(`timeline.keyframes.${r.indexOf($)}.shapes.${I.indexOf(y)}.shape.aim`,z.value,z.field,()=>{y.shape.aim=u(z.value,z.said,z.source)})}}return l}static MONTHS={janvier:1,fevrier:2,mars:3,avril:4,mai:5,juin:6,juillet:7,aout:8,septembre:9,octobre:10,novembre:11,decembre:12,january:1,february:2,march:3,april:4,may:5,june:6,july:7,august:8,september:9,october:10,november:11,december:12,enero:1,febrero:2,marzo:3,abril:4,mayo:5,junio:6,julio:7,agosto:8,septiembre:9,octubre:10,noviembre:11,diciembre:12,gennaio:1,febbraio:2,aprile:4,maggio:5,giugno:6,luglio:7,settembre:9,ottobre:10,dicembre:12};static date(s){const e=c=>String(c).padStart(2,"0"),t=(c,i,f)=>i>=1&&i<=12&&f>=1&&f<=31?`${c}-${e(i)}-${e(f)}`:void 0,o=/(\d{4})-(\d{1,2})-(\d{1,2})/.exec(s);if(o)return t(Number(o[1]),Number(o[2]),Number(o[3]));const b=/(\d{1,2})[/.-](\d{1,2})[/.-](\d{2,4})/.exec(s);if(b){const c=Number(b[3])<100?2e3+Number(b[3]):Number(b[3]);return t(c,Number(b[2]),Number(b[1]))}const a=s.normalize("NFD").replace(/[̀-ͯ]/g,"").toLowerCase(),l=/(\d{1,2})(?:er)?\s+([a-z]+)\s+(\d{4})/.exec(a),u=l?d.MONTHS[l[2]]:void 0;return l&&u?t(Number(l[3]),u,Number(l[1])):void 0}static clock(s){const e=/(\d{1,2})\s*(?:[:h]\s*(\d{2})?(?:\s*[:m]\s*(\d{2}))?|\s*(?=[ap]\.?m))\s*([ap]\.?m\.?)?/i.exec(s);if(!e)return;let t=Number(e[1]);if(e[4]&&(t=t%12+(/^p/i.test(e[4])?12:0)),!(t>23))return t*3600+Number(e[2]??0)*60+Number(e[3]??0)}static hms(s){const e=t=>String(t).padStart(2,"0");return`${e(Math.floor(s/3600))}:${e(Math.floor(s/60)%60)}:${e(s%60)}`}static duration(s,e){const t=s.toLowerCase().replace(",","."),o=/(\d{1,2})\s*[:h]\s*\d{2}/.exec(t);if(o&&e!==void 0&&(/jusqu|until|till|fin\b|end|termin|hasta|fino/.test(t)||/:/.test(o[0])&&Number(o[1])>=10)){const u=d.clock(o[0]);if(u!==void 0)return(u-e+86400)%86400||void 0}const a=[...t.replace(/(\d+)\s*h\s*(\d{2})(?!\s*(?:min|mn|s\b|sec))/g,"$1 h $2 min").matchAll(/(\d+(?:\.\d+)?)\s*(?:(?:-|–|à|a|to|or|ou|o)\s*(\d+(?:\.\d+)?)\s*)?(h(?:eures?|ours?|oras?|ore)?|min\w*|mn|s(?:ec\w*)?|seg\w*)(?![a-z])/g)];if(a.length>0){const u=a.reduce((c,i)=>{const f=i[3].startsWith("h")?3600:i[3].startsWith("m")?60:1,h=i[2]?(Number(i[1])+Number(i[2]))/2:Number(i[1]);return c+h*f},0);return u>0?Math.round(u):void 0}const l=/^\s*(\d{1,2}):(\d{2})\s*$/.exec(t);return l?Number(l[1])*60+Number(l[2]):void 0}static COLORS=[[/orang/,"#ff8a1f"],[/rouge|red|rojo|ross/,"#ff2a14"],[/jaune|yellow|amarill|giall/,"#ffe14a"],[/vert|green|verde/,"#3ad65a"],[/bleu|blue|azul|azzurr|blu/,"#4a8dff"],[/violet|purple|morad|viola/,"#a35bff"],[/rose|pink/,"#ff7ab8"],[/argent|silver|plat/,"#d8dde3"],[/gris|grey|gray|grig/,"#9a9a9a"],[/noir|black|negr|ner/,"#202020"],[/blanc|white|blanco|bianc/,"#ffffff"]];static color(s){const e=s.toLowerCase();let t;for(const[o,b]of d.COLORS){const a=o.exec(e);a&&(!t||a.index<t.at)&&(t={at:a.index,hex:b})}return t?.hex}static POINTS=[[/nord[- ]?nord[- ]?est|north[- ]?north[- ]?east|\bnne\b/,22.5],[/est[- ]?nord[- ]?est|east[- ]?north[- ]?east|\bene\b/,67.5],[/est[- ]?sud[- ]?est|east[- ]?south[- ]?east|\bese\b/,112.5],[/sud[- ]?sud[- ]?est|south[- ]?south[- ]?east|\bsse\b/,157.5],[/sud[- ]?sud[- ]?ouest|south[- ]?south[- ]?west|\bssw\b|\bsso\b/,202.5],[/ouest[- ]?sud[- ]?ouest|west[- ]?south[- ]?west|\bwsw\b|\boso\b/,247.5],[/ouest[- ]?nord[- ]?ouest|west[- ]?north[- ]?west|\bwnw\b|\bono\b/,292.5],[/nord[- ]?nord[- ]?ouest|north[- ]?north[- ]?west|\bnnw\b|\bnno\b/,337.5],[/nord[- ]?est|north[- ]?east|\bne\b/,45],[/sud[- ]?est|south[- ]?east|\bse\b/,135],[/sud[- ]?ouest|south[- ]?west|\bsw\b|\bso\b/,225],[/nord[- ]?ouest|north[- ]?west|\bnw\b|\bno\b/,315],[/\bnord\b|\bnorth\b|^n$/,0],[/\best\b|\beast\b|^e$/,90],[/\bsud\b|\bsouth\b|^s$/,180],[/\bouest\b|\bwest\b|^o$|^w$/,270]];static azimuth(s){const e=s.normalize("NFD").replace(/[̀-ͯ]/g,"").toLowerCase().trim(),t=/(\d{1,3}(?:[.,]\d+)?)\s*(?:°|deg|degres?|degrees?)/.exec(e)??/^(?:azimut[h]?\s*)?(\d{1,3}(?:[.,]\d+)?)$/.exec(e);if(t){const o=Number(t[1].replace(",","."));return o>=0&&o<=360?o%360:void 0}return d.POINTS.find(([o])=>o.test(e))?.[1]}static elevation(s){const e=s.normalize("NFD").replace(/[̀-ͯ]/g,"").toLowerCase(),t=/(-?\d{1,2}(?:[.,]\d+)?)\s*(?:°|deg|degres?|degrees?)/.exec(e)??/^\s*(\d{1,2}(?:[.,]\d+)?)\s*$/.exec(e);if(t){const o=Number(t[1].replace(",","."));return o>=-5&&o<=90?o:void 0}if(/zenith|au-dessus de (?:ma|la) tete|overhead/.test(e))return 90;if(/(?:a|sur|on) l'?horizon|at the horizon/.test(e))return 0}static aim(s,e){const t=s?d.azimuth(s.text):void 0,o=e?d.elevation(e.text):void 0;if(!(t===void 0||o===void 0))return{value:{azimuthDeg:t,altitudeDeg:o},field:s.field,said:`${s.text} ; ${e.text}`,source:s.source}}}export{d as QuestionnaireFeed};
@@ -0,0 +1 @@
1
+ import{Q as E,r as N,I as y}from"./rr0-ufoathome.mjs";import{InterviewFile as A}from"./interviewJson-D-i14LTf.js";class x{constructor(e,i,o=()=>{}){this.container=e,this.answered=i,this.gave=o}json;recalled=()=>{};files;show(e,i,o,r,a,d=()=>{},c){this.json=i,this.recalled=d,this.files=c;const s=t=>E.text(t,r),u=[],l=e.intro?s(e.intro):o.intro.replace("{title}",s(e.title));for(const t of l.split(/\n\s*\n/)){const n=document.createElement("p");n.className="form-intro",n.textContent=t.trim(),u.push(n)}if(e.source?.url){const t=document.createElement("p");t.className="form-source";const n=document.createElement("a");n.href=e.source.url,n.target="_blank",n.rel="noopener noreferrer",n.textContent=o.source.replace("{publisher}",e.source.publisher??e.source.title??e.source.url),t.append(n),u.push(t)}const m=new Set(E.fields(e).map(t=>t.id));for(const t of e.sections)u.push(this.section(s(t.title),t.number,t.intro?s(t.intro):void 0,t.fields,i,o,r,a,t.images));const f=(i?.segments??[]).filter(t=>t.field!==void 0&&!m.has(t.field)&&i.speakers[t.speaker]?.role!=="witness").map(t=>({id:t.field,question:A.plain(t.text??t.field),kind:"long",required:!1}));f.length>0&&u.push(this.section(o.other,void 0,void 0,f,i,o,r,a)),this.container.replaceChildren(...u),this.messages=o,this.complete=new WeakSet([...this.container.querySelectorAll(".form-section")].filter(x.isComplete)),this.place()}messages;complete=new WeakSet;place(){const e=this.messages;if(e)for(const i of this.container.querySelectorAll("details.form-section")){const o=[...i.querySelectorAll(".form-field")],r=o.filter(x.isAnswered).length,a=i.querySelector(".form-section-count");a&&(a.textContent=e.sectionAnswered.replace("{n}",String(r)).replace("{total}",String(o.length))),r<o.length?this.complete.delete(i):this.complete.has(i)||(this.complete.add(i),i.open=!1)}}static isComplete(e){return[...e.querySelectorAll(".form-field")].every(x.isAnswered)}static isAnswered(e){return e.querySelector(".form-file-list li")||e.querySelector("input:checked")?!0:[...e.querySelectorAll("textarea, input:not([type=radio]):not([type=checkbox]):not([type=file]):not([type=url])")].some(i=>i.value.trim()!=="")}section(e,i,o,r,a,d,c,s,u){const l=document.createElement("details");l.className="form-section";const m=document.createElement("summary"),f=document.createElement("span");f.className="form-section-title",f.textContent=i?`${i}. ${e}`:e;const t=document.createElement("span");t.className="form-section-count",m.append(f,t),l.append(m),l.addEventListener("change",()=>this.place());for(const n of o?.split(/\n\s*\n/)??[]){const h=document.createElement("p");h.className="form-section-intro",h.textContent=n.trim(),l.append(h)}u&&l.append(...x.figures(u,c));for(const n of r){const h=n.confidential?this.recalled(n.id)??"":a?E.answerOf(a,n.id)??"":"";l.append(this.field(n,h,d,c,s))}return l}field(e,i,o,r,a){const d=E.text(e.question,r),c=document.createElement("div");c.className="form-field",c.dataset.field=e.id;const s=document.createElement("label"),u=`form-${e.id.replace(/[^A-Za-z0-9_-]/g,"_")}`;s.htmlFor=u;const l=/^[A-Za-z]?\d/.test(e.id)?`${e.id}. `:"";if(s.textContent=`${l}${d}`,e.required!==!1){const n=document.createElement("span");n.className="required",n.textContent=" *",n.title=o.required,s.append(n)}if(c.append(s),e.hint){const n=document.createElement("p");n.className="form-hint",n.textContent=E.text(e.hint,r),c.append(n)}e.images&&c.append(...x.figures(e.images,r)),e.confidential&&c.append(this.confidentialNote(e,i,o,r));const m=n=>this.answered(e.id,n,d),f=e.kind??"long";if(f==="files")return c.append(this.attached(e,u,d,o,a)),c;if((f==="choice"||f==="scale")&&e.choices){const n=document.createElement("div");n.className=`form-choices ${f}`,n.id=u;const h=f==="choice"&&e.multiple===!0;n.setAttribute("role",h?"group":"radiogroup");const w=h?i.split(";").map(v=>v.trim()):[i.trim()];for(const v of e.choices){const b=document.createElement("label"),p=document.createElement("input");p.type=h?"checkbox":"radio",p.name=u,p.value=v.value,p.checked=w.includes(v.value),p.disabled=a,p.addEventListener("change",()=>{h?m([...n.querySelectorAll("input:checked")].map(k=>k.value).join("; ")):p.checked&&m(v.value)}),b.append(p,` ${E.text(v.label,r)}`),n.append(b)}return c.append(n),c}const t=f==="long"?document.createElement("textarea"):document.createElement("input");return t.id=u,t.value=i,t.disabled=a,t.addEventListener("change",()=>m(t.value)),t instanceof HTMLInputElement&&(f==="date"||f==="time")?c.append(this.when(t,f,i,o,s)):c.append(t),c}when(e,i,o,r,a){const d=i==="date"?/^\d{4}-\d{2}-\d{2}$/:/^\d{2}:\d{2}(:\d{2})?$/,c=document.createElement("div");c.className="form-when";const s=document.createElement("button");s.type="button",s.className="form-when-mode",s.disabled=e.disabled;const u=l=>{const m=e.value;e.type=l?i:"text",i==="time"&&(e.step=l?"1":""),e.placeholder=l?"":i==="date"?r.impreciseDate:r.impreciseTime,e.value=l&&!d.test(m)?"":m,!l&&m===""&&o!==""&&(e.value=o),c.dataset.mode=l?"precise":"imprecise",s.textContent=l?r.precise:r.imprecise,s.title=l?r.preciseHint:r.impreciseHint};return s.addEventListener("click",()=>u(c.dataset.mode!=="precise")),u(o===""||d.test(o.trim())),a.append(" ",s),c.append(e),c}attached(e,i,o,r,a){const d=document.createElement("div");d.className="form-files";const c=this.json?[...E.filesOf(this.json,e.id)]:[],s=document.createElement("ul");s.className="form-file-list";const u=()=>{s.replaceChildren(...c.map((t,n)=>{const h=document.createElement("li"),w=E.fileName(t),v=this.files?.shown(t)??t.src,b=document.createElement("a");if(b.href=v,b.target="_blank",b.rel="noopener noreferrer",y.isImage(t)){const p=document.createElement("img");p.src=v,p.alt=w,p.loading="lazy",b.append(p)}if(b.append(w),h.append(b),!a){const p=document.createElement("button");p.type="button",p.className="form-file-remove",p.textContent="×",p.title=r.removeFile.replace("{name}",w),p.setAttribute("aria-label",p.title),p.addEventListener("click",()=>{c.splice(n,1),u(),this.gave(e.id,[...c],o),this.place()}),h.append(p)}return h})),s.hidden=c.length===0};if(u(),d.append(s),a||!this.files)return d;N();const l=document.createElement("label");l.className="form-file-add";const m=document.createElement("rr0-input-file");m.setAttribute("name",i),m.setAttribute("multiple",""),m.setAttribute("no-button",""),e.accept&&m.setAttribute("accept",e.accept),m.build(),m.messages=this.files.messages;const f=this.files;return m.addEventListener("filepick",t=>{const n=t.detail;if(n.url!==void 0){if(n.url.trim()==="")return;c.push({src:n.url.trim()}),m.url=""}else for(const h of n.files??[n.file])c.push(f.add(h));u(),this.gave(e.id,[...c],o),this.place()}),l.append(`${r.addFile} `,m),d.append(l),d}confidentialNote(e,i,o,r){const a=document.createElement("p");a.className="form-confidential";const d=this.json?.questionnaire?.recipient,c=i===""&&this.json?.segments.some(s=>s.field===e.id&&s.redacted?.sealed!==void 0);if(d){const s=E.text(d.name,r);a.textContent=(c?o.confidentialSealedBefore:o.confidentialSealed).replace("{name}",s)}else a.textContent=o.confidentialNowhere,a.classList.add("nowhere");return a}static figures(e,i){return e.map(o=>{const r=document.createElement("figure");r.className="form-figure";const a=document.createElement("img");if(a.src=o.src,a.alt=E.text(o.alt,i),a.loading="lazy",r.append(a),o.caption){const d=document.createElement("figcaption");d.textContent=E.text(o.caption,i),r.append(d)}return r})}}export{x as QuestionnaireForm};
@@ -0,0 +1,5 @@
1
+ import{InterviewFile as x}from"./interviewJson-D-i14LTf.js";import{Q as p}from"./rr0-ufoathome.mjs";class d{static UNINFORMED=new RegExp("^(?:"+["je ne sais pas","j'?sais pas","sais pas","ne sait pas","nsp","inconnu","inconnue","aucune id[ée]e","je ne (?:me )?souviens (?:pas|plus)","ne se souvient pas","non renseign[ée]e?","i don'?t know","don'?t know","do not know","dunno","unknown","not known","dk","n/?a","i don'?t remember","can'?t remember","not sure","no s[ée]","no lo s[ée]","desconocido","no recuerdo","non so","non lo so","sconosciuto","non ricordo","\\?+","-+","[—–]","…","\\.{2,}"].join("|")+")[.!]?$","iu");static informed(e){if(e===void 0)return!1;const s=x.plain(e).trim().replace(/\s+/g," ").replace(/[’]/g,"'");return s!==""&&!d.UNINFORMED.test(s)}static parse(e,s={},n){const t=typeof e=="string"?d.fromText(e,n):d.fromJson(e);if(!t||t.fields.length===0)return;const r=d.interview(t.fields,s,t.about);return n&&(r.questionnaire={id:n.id,...n.version?{version:n.version}:{}}),r}static interview(e,s={},n={}){const t={},r=s.by?.[0];t.interviewer={role:"interviewer",...r!==void 0?{by:{people:r}}:{}};const c=s.witnesses?.length===1?s.witnesses[0]:void 0;t.witness={role:"witness",...c?{title:c.label,of:c.id}:{}};const i=[];for(const a of e){i.push({speaker:"interviewer",field:a.id,text:a.question});const l=a.answer?.trim();l&&i.push({speaker:"witness",field:a.id,text:l})}return{version:1,...n.language?{language:n.language}:{},...n.title?{title:n.title}:{},...n.time?{time:n.time}:{},medium:"questionnaire",...c?{interviewOf:c.id}:{},speakers:t,transcription:{method:"manual"},proofreading:{interviewer:{status:"pending"},witness:{status:"pending"}},segments:i}}static answers(e){const s=new Map;return e.segments.forEach((n,t)=>{if(n.field===void 0||s.has(n.field)||e.speakers[n.speaker]?.role!=="witness")return;const r=x.said(n);r!==void 0&&d.informed(r)&&s.set(n.field,{field:n.field,segment:t,text:r.trim()})}),s}static sourceOf(e,s,n){const t=d.answers(e).get(s);if(t)return{said:{...n!==void 0?{interview:n}:{},segment:t.segment}}}static fromJson(e){const s={};let n=e;if(e!==null&&typeof e=="object"&&!Array.isArray(e)){const r=e,c=["fields","questions","answers"].find(i=>Array.isArray(r[i]));if(c){n=r[c];for(const i of["title","time","language"])typeof r[i]=="string"&&(s[i]=r[i])}else{const i=Object.entries(r);return i.length===0||!i.every(([,a])=>d.isAnswer(a))?void 0:{fields:i.map(([a,l],g)=>({id:String(g+1),question:a,...d.answerOf(l)})),about:s}}}if(!Array.isArray(n))return;const t=[];return n.forEach((r,c)=>{if(r===null||typeof r!="object"||Array.isArray(r))return;const i=r,a=(...v)=>v.map(o=>i[o]).find(o=>o!==void 0),l=a("id","number","field","key","name"),g=a("question","label","title","text","q"),w=a("answer","value","response","a","reply");g===void 0&&l===void 0||t.push({id:String(l!==void 0?l:c+1),question:typeof g=="string"&&g.trim()!==""?g.trim():String(l),...d.isAnswer(w)?d.answerOf(w):{}})}),{fields:t,about:s}}static isAnswer(e){return e==null||["string","number","boolean"].includes(typeof e)||Array.isArray(e)&&e.every(s=>["string","number","boolean"].includes(typeof s))}static answerOf(e){if(e==null)return{};const s=Array.isArray(e)?e.map(String).join(", "):String(e);return s.trim()===""?{}:{answer:s.trim()}}static fromText(e,s){const n=e.replace(/^/,"").replace(/\r\n?/g,`
2
+ `).replace(/^(?:[ \t]*\n)+|(?:\n[ \t]*)+$/g,"");if(n.trim()==="")return;if(/^\s*[{[]/.test(n))try{return d.fromJson(JSON.parse(n))}catch{}const t=d.table(n);return t?{fields:t,about:{}}:{fields:d.lines(n,s),about:{}}}static table(e){const s=e.split(`
3
+ `).filter(n=>n.trim()!=="");for(const n of[" ",";",","]){const t=s.map(i=>d.cells(i,n)),r=t[0].length;if(r<2||!t.every(i=>i.length===r))continue;const c=t[0].some(i=>/^(question|questions|answer|answers|r[ée]ponse|r[ée]ponses|field|champ|n°|no|num[ée]ro|id)$/i.test(i.trim()));return t.slice(c?1:0).map((i,a)=>r===2?{id:String(a+1),question:i[0].trim(),...d.answerOf(i[1])}:{id:i[0].trim()||String(a+1),question:i[1].trim()||i[0].trim(),...d.answerOf(i.slice(2).join(n===" "?" ":`${n} `))})}}static cells(e,s){const n=[];let t="",r=!1;for(let c=0;c<e.length;c++){const i=e[c];r?i==='"'&&e[c+1]==='"'?(t+='"',c++):i==='"'?r=!1:t+=i:i==='"'&&t.trim()===""?(r=!0,t=""):i===s?(n.push(t),t=""):t+=i}return n.push(t),n}static lines(e,s){const n=o=>o.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]/g,""),r=(s?p.fields(s):[]).filter(o=>!/^[A-Za-z]?\d/.test(o.id)).map(o=>({id:o.id,key:n(p.text(o.question,s?.language))})),c=(s?.stops??[]).map(o=>n(p.text(o,s?.language))).filter(o=>o!==""),i=new Set((s?.sections??[]).flatMap(o=>[o.title,o.intro]).filter(o=>o!==void 0).map(o=>n(p.text(o,s?.language)))),a=/^(?:q(?:uestion)?\s*)?([A-Za-z]?\d+[a-z]?['’]?)\s*[.)\-–:]\s*(.*)$/u,l=/\bpage\s*:?\s*\d+(?:\s*\/\s*\d+)?\s*$/i,g=[];let w;const v=[];for(const o of e.split(`
4
+ `)){const f=o.trim();if(l.test(f))continue;if(c.some(y=>n(f).startsWith(y))){w=void 0;continue}const u=a.exec(f),h=u&&(!s||p.field(s,d.idOf(u[1])))?u:null,m=h?void 0:r.find(y=>y.key!==""&&n(f).startsWith(y.key));if(h||m){w={id:h?d.idOf(h[1]):m.id,lines:[h?h[2]:f]},g.push(w);continue}if(i.has(n(f))&&f!=="")continue;if(w){w.lines.push(f);continue}if(f===""||s)continue;const q=d.split(f);q&&v.push({id:String(v.length+1),...q})}return g.length===0?v:g.map(o=>{const f=o.lines.join(`
5
+ `),u=s?p.field(s,o.id)??p.field(s,o.id.toLowerCase()):void 0,h=u?.id??o.id,m=(u?d.after(f,p.text(u.question,s?.language),n,u.hint===void 0?void 0:p.text(u.hint,s?.language)):void 0)??d.asked(o.lines),q=u?.choices?d.chosen(m.answer,u.choices.map(y=>y.value)):m.answer;return{id:h,question:u?p.text(u.question,s?.language):m.question,...d.answerOf(q)}})}static after(e,s,n,t){const r=(l,g)=>{const w=n(g);let v=0,o=l;for(;o<e.length&&v<w.length;o++){const f=n(e[o]);if(f!==""){if(f!==w[v])return;v++}}return v<w.length?void 0:o},c=r(0,s);if(c===void 0)return;const i=(t!==void 0?r(c,t):void 0)??c,a=e.slice(i).replace(/^[\s*:?.,;…)\]]+/u,"").replace(/\s+/g," ").trim();return{question:s,...a!==""?{answer:a}:{}}}static chosen(e,s){if(e===void 0)return;const n=[...e.matchAll(/(?:[☒☑✓✔]|\[[xX]\])\s*([^\s☐☒☑✓✔[\]]+)/gu)].map(t=>t[1]).filter(t=>s.includes(t));if(n.length>0)return n.join(", ");if(!/[☐]/u.test(e)&&!/^\S+:$/.test(e.trim()))return e}static idOf(e){return e.replace("’","'").toUpperCase().replace(/^Q(?=\d)/,"")}static asked(e){const s=e.findIndex(c=>/[?:*]\s*$/.test(c));if(s>=0&&s<3){const c=e.slice(s+1).join(" ").replace(/\s+/g," ").trim();return{question:e.slice(0,s+1).join(" ").replace(/[\s*:]+$/,"").replace(/\s+/g," ").trim(),...c!==""?{answer:c}:{}}}const n=d.split(e[0])??{question:e[0].trim()},t=e.slice(1).join(" ").replace(/\s+/g," ").trim(),r=[n.answer,t].filter(c=>c!==void 0&&c!=="").join(" ");return{question:n.question,...r!==""?{answer:r}:{}}}static split(e){const s=/\?(?:\s*\*)?(\s|$)|\s?:\s*\*?(\s|$)/.exec(e);if(!s||s.index===0)return;const n=e.slice(0,s.index+(e[s.index]==="?"?1:0)).replace(/[\s*]+$/,"").trim(),t=e.slice(s.index+s[0].length).trim();return{question:n,...t!==""?{answer:t}:{}}}}export{d as QuestionnaireImport};
@@ -0,0 +1 @@
1
+ const t={timeWithin:"Its time, {time}, is within what is known of it ({range}).",timeOutside:"Its time, {time}, is outside what is known of it ({range}).",timeChanged:"It moves the time from {from} to {time}, which the observation states.",valueWithin:"Its {what}, {value}, is within what is known of it ({bounds}).",valueOutside:"Its {what}, {value}, is outside what is known of it ({bounds}).",between:"{min} to {max}",atLeast:"at least {min}",atMost:"at most {max}",valueChanged:"It moves the {what} from {from} to {value}, which the observation states.",lightingHolds:"The Sun it puts together ({bearing}° from where the camera looks, {altitude}° high) lights the scene as the picture shows it ({from}° to {to}° from where it looks{altitudes}).",lightingFails:"The Sun it puts together ({bearing}° from where the camera looks, {altitude}° high) does not light the scene as the picture shows it ({from}° to {to}° from where it looks{altitudes}).",altitudes:", {min}° to {max}° high",latitude:"latitude",longitude:"longitude",bestFixed:"Most favourable configuration, computed: standing still in the frame and placed nearest the phenomenon all along: it stays {median}° from it at the median, {max}° at most, for a phenomenon of {size}° that travels {travel}°.",bestOneWay:"Most favourable configuration, computed: driven one way (towards {direction}° from the top of the frame, clockwise) and nearest the phenomenon: it stays {median}° from it at the median, {max}° at most, for a phenomenon of {size}° that travels {travel}°.",bestGhost:"Most favourable configuration, computed: a ghost of the lens (factor {k}) with the Sun where the account allows it ({bearing}° from where the camera looks, {altitude}° high): it stays {median}° from the phenomenon at the median, {max}° at most, for a phenomenon of {size}° that travels {travel}°.",bestGhostNeeds:"Leaving the picture's light aside, the most favourable Sun would be {bearing}° from where the camera looks and {altitude}° high (factor {k}): the ghost would stay {median}° from the phenomenon at the median, {max}° at most.",bestStatedGhost:"Most favourable configuration, computed: a ghost of an optic set before the lens, at the factor ({k}) and offset ({offset}°) that lay it best, the Sun {bearing}° from where the camera looks and {altitude}° high: it stays {median}° from the phenomenon at the median, {max}° at most, for a phenomenon of {size}° that travels {travel}°.",bestNoGhost:"Most favourable configuration, computed: no Sun the account allows is within the lens's reach all along, so it throws no ghost of it.",bestGhostOf:"Most favourable configuration, computed: a ghost through the lens (factor {k}) of the light the reading places, where it places it: it stays {median}° from the phenomenon at the median, {max}° at most, and travels {ghostTravel}° where the phenomenon of {size}° travels {travel}°.",bestRealObject:"Most favourable configuration, computed: on its line of sight, it is where the phenomenon is at every instant, at any distance. At {distance} m, where the reading places it, it would be {width} m across and move at {speed} m/s at least across the line of sight from the camera; both in proportion to the distance.",decimal:"."};export{t as readingCheckTexts_en};
@@ -0,0 +1 @@
1
+ const e={timeWithin:"Su hora, {time}, está dentro de lo que se sabe de ella ({range}).",timeOutside:"Su hora, {time}, está fuera de lo que se sabe de ella ({range}).",timeChanged:"Desplaza la hora de {from} a {time}, que la observación indica.",valueWithin:"Su {what}, {value}, está dentro de lo que se sabe ({bounds}).",valueOutside:"Su {what}, {value}, está fuera de lo que se sabe ({bounds}).",between:"{min} a {max}",atLeast:"al menos {min}",atMost:"como mucho {max}",valueChanged:"Desplaza la {what} de {from} a {value}, que la observación indica.",lightingHolds:"El Sol que compone ({bearing}° de la dirección de mira, {altitude}° de altura) ilumina la escena como la muestra la imagen ({from}° a {to}° de la mira{altitudes}).",lightingFails:"El Sol que compone ({bearing}° de la dirección de mira, {altitude}° de altura) no ilumina la escena como la muestra la imagen ({from}° a {to}° de la mira{altitudes}).",altitudes:", {min}° a {max}° de altura",latitude:"latitud",longitude:"longitud",bestFixed:"Configuración más favorable, calculada: fijo en el encuadre y colocado lo más cerca del fenómeno todo el tiempo, queda a {median}° de él en la mediana, {max}° como mucho, para un fenómeno de {size}° que recorre {travel}°.",bestOneWay:"Configuración más favorable, calculada: empujado en un solo sentido (hacia {direction}° desde lo alto del encuadre, en el sentido horario) y lo más cerca del fenómeno, queda a {median}° de él en la mediana, {max}° como mucho, para un fenómeno de {size}° que recorre {travel}°.",bestGhost:"Configuración más favorable, calculada: un reflejo del objetivo (factor {k}) con el Sol donde el relato lo permite ({bearing}° de la visual, {altitude}° de altura), queda a {median}° del fenómeno en la mediana, {max}° como mucho, para un fenómeno de {size}° que recorre {travel}°.",bestGhostNeeds:"Sin atenerse a la iluminación de la imagen, el Sol más favorable estaría a {bearing}° de la visual y {altitude}° de altura (factor {k}): el reflejo quedaría a {median}° del fenómeno en la mediana, {max}° como mucho.",bestStatedGhost:"Configuración más favorable, calculada: un reflejo de una óptica colocada delante del objetivo, con el factor ({k}) y el desplazamiento ({offset}°) que mejor lo sitúan, el Sol a {bearing}° de la visual y {altitude}° de altura, queda a {median}° del fenómeno en la mediana, {max}° como mucho, para un fenómeno de {size}° que recorre {travel}°.",bestNoGhost:"Configuración más favorable, calculada: ningún Sol que el relato permita está al alcance del objetivo todo el tiempo, que no recibe por tanto ningún reflejo de él.",bestGhostOf:"Configuración más favorable, calculada: un reflejo por el objetivo (factor {k}) de la luz que la lectura coloca, donde la coloca, queda a {median}° del fenómeno en la mediana, {max}° como mucho, y recorre {ghostTravel}° cuando el fenómeno de {size}° recorre {travel}°.",bestRealObject:"Configuración más favorable, calculada: en su línea de visión, está donde está el fenómeno en cada instante, a cualquier distancia. A {distance} m, donde la lectura lo coloca, mediría {width} m e iría al menos a {speed} m/s de través respecto a la línea de visión de la cámara; ambos en proporción a la distancia.",decimal:","};export{e as readingCheckTexts_es};
@@ -0,0 +1 @@
1
+ const e={timeWithin:"Son heure, {time}, est dans ce qu'on en sait ({range}).",timeOutside:"Son heure, {time}, est hors de ce qu'on en sait ({range}).",timeChanged:"Elle déplace l'heure de {from} à {time}, que l'observation indique.",valueWithin:"Sa {what}, {value}, est dans ce qu'on en sait ({bounds}).",valueOutside:"Sa {what}, {value}, est hors de ce qu'on en sait ({bounds}).",between:"{min} à {max}",atLeast:"au moins {min}",atMost:"au plus {max}",valueChanged:"Elle déplace la {what} de {from} à {value}, que l'observation indique.",lightingHolds:"Le Soleil qu'elle compose ({bearing}° de la direction de visée, {altitude}° de haut) éclaire la scène comme l'image la montre ({from}° à {to}° de la visée{altitudes}).",lightingFails:"Le Soleil qu'elle compose ({bearing}° de la direction de visée, {altitude}° de haut) n'éclaire pas la scène comme l'image la montre ({from}° à {to}° de la visée{altitudes}).",altitudes:", {min}° à {max}° de haut",latitude:"latitude",longitude:"longitude",bestFixed:"Configuration la plus favorable, calculée : fixe dans le cadre et placé au plus près du phénomène tout au long, il en reste à {median}° en médiane, {max}° au plus, pour un phénomène de {size}° qui parcourt {travel}°.",bestOneWay:"Configuration la plus favorable, calculée : poussé dans un seul sens (vers {direction}° depuis le haut du cadre, dans le sens horaire) et au plus près du phénomène, il en reste à {median}° en médiane, {max}° au plus, pour un phénomène de {size}° qui parcourt {travel}°.",bestGhost:"Configuration la plus favorable, calculée : un reflet de l'objectif (facteur {k}) avec le Soleil où le compte rendu le permet ({bearing}° de la visée, {altitude}° de haut), il reste à {median}° du phénomène en médiane, {max}° au plus, pour un phénomène de {size}° qui parcourt {travel}°.",bestGhostNeeds:"Sans s'en tenir à l'éclairage de l'image, le Soleil le plus favorable serait à {bearing}° de la visée et {altitude}° de haut (facteur {k}) : le reflet resterait à {median}° du phénomène en médiane, {max}° au plus.",bestStatedGhost:"Configuration la plus favorable, calculée : un reflet d'une optique placée devant l'objectif, au facteur ({k}) et au décalage ({offset}°) qui le posent au mieux, le Soleil à {bearing}° de la visée et {altitude}° de haut, il reste à {median}° du phénomène en médiane, {max}° au plus, pour un phénomène de {size}° qui parcourt {travel}°.",bestNoGhost:"Configuration la plus favorable, calculée : aucun Soleil que le compte rendu permet n'est à portée de l'objectif tout au long, qui n'en reçoit donc aucun reflet.",bestGhostOf:"Configuration la plus favorable, calculée : un reflet par l'objectif (facteur {k}) de la lumière que la lecture place, là où elle la place, il reste à {median}° du phénomène en médiane, {max}° au plus, et parcourt {ghostTravel}° quand le phénomène de {size}° en parcourt {travel}°.",bestRealObject:"Configuration la plus favorable, calculée : sur sa ligne de visée, il est là où est le phénomène à chaque instant, à n'importe quelle distance. À {distance} m, où la lecture le place, il mesurerait {width} m et irait au moins à {speed} m/s en travers de la ligne de visée de la caméra ; les deux en proportion de la distance.",decimal:","};export{e as readingCheckTexts_fr};
@@ -0,0 +1 @@
1
+ const a={timeWithin:"La sua ora, {time}, è entro ciò che se ne sa ({range}).",timeOutside:"La sua ora, {time}, è fuori da ciò che se ne sa ({range}).",timeChanged:"Sposta l'ora da {from} a {time}, che l'osservazione indica.",valueWithin:"La sua {what}, {value}, è entro ciò che se ne sa ({bounds}).",valueOutside:"La sua {what}, {value}, è fuori da ciò che se ne sa ({bounds}).",between:"da {min} a {max}",atLeast:"almeno {min}",atMost:"al massimo {max}",valueChanged:"Sposta la {what} da {from} a {value}, che l'osservazione indica.",lightingHolds:"Il Sole che compone ({bearing}° dalla direzione di mira, {altitude}° di altezza) illumina la scena come la mostra l'immagine (da {from}° a {to}° dalla mira{altitudes}).",lightingFails:"Il Sole che compone ({bearing}° dalla direzione di mira, {altitude}° di altezza) non illumina la scena come la mostra l'immagine (da {from}° a {to}° dalla mira{altitudes}).",altitudes:", da {min}° a {max}° di altezza",latitude:"latitudine",longitude:"longitudine",bestFixed:"Configurazione più favorevole, calcolata: fermo nell'inquadratura e posto il più vicino al fenomeno per tutto il tempo, ne resta a {median}° in mediana, {max}° al massimo, per un fenomeno di {size}° che percorre {travel}°.",bestOneWay:"Configurazione più favorevole, calcolata: spinto in un solo senso (verso {direction}° dall'alto dell'inquadratura, in senso orario) e il più vicino al fenomeno, ne resta a {median}° in mediana, {max}° al massimo, per un fenomeno di {size}° che percorre {travel}°.",bestGhost:"Configurazione più favorevole, calcolata: un riflesso dell'obiettivo (fattore {k}) con il Sole dove il resoconto lo consente ({bearing}° dalla visuale, {altitude}° di altezza), resta a {median}° dal fenomeno in mediana, {max}° al massimo, per un fenomeno di {size}° che percorre {travel}°.",bestGhostNeeds:"Lasciando da parte l'illuminazione dell'immagine, il Sole più favorevole sarebbe a {bearing}° dalla visuale e {altitude}° di altezza (fattore {k}): il riflesso resterebbe a {median}° dal fenomeno in mediana, {max}° al massimo.",bestStatedGhost:"Configurazione più favorevole, calcolata: un riflesso di un'ottica posta davanti all'obiettivo, al fattore ({k}) e allo scostamento ({offset}°) che meglio lo collocano, il Sole a {bearing}° dalla visuale e {altitude}° di altezza, resta a {median}° dal fenomeno in mediana, {max}° al massimo, per un fenomeno di {size}° che percorre {travel}°.",bestNoGhost:"Configurazione più favorevole, calcolata: nessun Sole che il resoconto consenta è alla portata dell'obiettivo per tutto il tempo, che quindi non ne riceve alcun riflesso.",bestGhostOf:"Configurazione più favorevole, calcolata: un riflesso attraverso l'obiettivo (fattore {k}) della luce che la lettura colloca, dove la colloca, resta a {median}° dal fenomeno in mediana, {max}° al massimo, e percorre {ghostTravel}° quando il fenomeno di {size}° ne percorre {travel}°.",bestRealObject:"Configurazione più favorevole, calcolata: sulla sua linea di vista, è dove si trova il fenomeno in ogni istante, a qualsiasi distanza. A {distance} m, dove la lettura lo colloca, misurerebbe {width} m e andrebbe almeno a {speed} m/s di traverso rispetto alla linea di vista della telecamera; entrambi in proporzione alla distanza.",decimal:","};export{a as readingCheckTexts_it};
@@ -1,4 +1,4 @@
1
- import{M as w,_ as I,d as F}from"./rr0-ufoathome.mjs";import{P as S,I as x}from"./SaidPosition-OJEYhVKN.js";import{S as N}from"./SkyEventEditorStyle-CvY_AhbI.js";import{q as b,bm as M,aK as E,aE as C,m as _,s as P,ba as L}from"./ShareDialogElement-EzLob2Tz.js";import{c as G}from"./Sighting-B7bsiTIQ.js";import{P as D,a as k,E as H}from"./ParameterForm-XbqxCLRn.js";import{T as K}from"./TimelineTracks-Daaqw9ly.js";import{R as O}from"./ReentryArchive-CeXHrU7L.js";import"./GeoProjection-DvqDbRIx.js";import"./three.module-CbaHqYFq.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";import"./VisualAids-DI-hEL46.js";const z=w.catalog({en:()=>I(()=>import("./ReentryParameterTexts_en-5BOfwCsS.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_en),fr:()=>I(()=>import("./ReentryParameterTexts_fr-BgUJROXF.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_fr),es:()=>I(()=>import("./ReentryParameterTexts_es-ze1-U4jB.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_es),it:()=>I(()=>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 r=Math.PI/180,o=g.EARTH_KM,a=n*r,s=-o*Math.sin(a)+Math.sqrt((o*Math.sin(a))**2+(o+i)**2-o**2),d=Math.atan2(s*Math.cos(a),o+s*Math.sin(a)),c=t.lat*r,l=e*r,h=Math.asin(Math.sin(c)*Math.cos(d)+Math.cos(c)*Math.sin(d)*Math.cos(l)),m=t.lng*r+Math.atan2(Math.sin(l)*Math.sin(d)*Math.cos(c),Math.cos(d)-Math.sin(c)*Math.sin(h));return{lat:h/r,lng:(m/r+540)%360-180}}static trackFromSeen(t,e){const n=t.seen,{fromAzimuthDeg:i,fromAltitudeDeg:r,toAzimuthDeg:o,toAltitudeDeg:a,durationS:s}=n??{};if(i===void 0||r===void 0||o===void 0||a===void 0||!s)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,r,h),altitudeKm:h},{t:l+Math.round(s*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,[r,o]=e<(i[0]?.t??0)?[i[0],i[1]]:[i[i.length-2],i[i.length-1]];if(!r||!o||o.t===r.t){const s=r??o??{lat:0,lng:0,altitudeKm:80};return{t:e,lat:s.lat,lng:s.lng,altitudeKm:s.altitudeKm}}const a=(e-r.t)/(o.t-r.t);return{t:e,lat:r.lat+(o.lat-r.lat)*a,lng:r.lng+(o.lng-r.lng)*a,altitudeKm:Math.max(0,r.altitudeKm+(o.altitudeKm-r.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:()=>I(()=>import("./ReentryEditorMessages_en-BmTZMr-m.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_en),fr:()=>I(()=>import("./ReentryEditorMessages_fr-DHbcY0tN.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_fr),es:()=>I(()=>import("./ReentryEditorMessages_es-edid__Jo.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_es),it:()=>I(()=>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 E,reentries:new O};static viewOf(t,e,n){const i=t.track;if(i.length<2)return;const r=i[0],o=i[i.length-1],a=t.seen,s=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}:s(r),c=a?.toAzimuthDeg!==void 0&&a.toAltitudeDeg!==void 0?{azimuthDeg:a.toAzimuthDeg,altitudeDeg:a.toAltitudeDeg}:s(o),l=a?.durationS??(o.t-r.t)/1e3,h=Math.min(...t.fragments.flatMap(m=>[m.absoluteMagnitude,...(m.lightCurve??[]).map(f=>f.absoluteMagnitude)]));return{startMs:e.getTime()+r.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,r=e.t>t.startMs?e.t-t.startMs:0;if(Math.max(i,r)>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 s=Math.max(u.azimuthOff(t.from.azimuthDeg,o.azimuthDeg),u.azimuthOff(t.to.azimuthDeg,a.azimuthDeg));if(s>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+r)/6e4),headingOffDeg:Math.round(s),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 r=u.viewOf(t,e,n);if(!r)return[{verdict:"unchecked",source:"none",reason:"noDateOrPlace"}];const o=M.of(t.type)?.nature,a=[];if(o!=="artificial"&&a.push(...await u.checkFireballs(r,n,o==="natural",i)),o!=="artificial"){const s=u.showerOf(r,n);s&&(s.verdict==="compatible"||o==="natural")&&a.push(s)}return o!=="natural"&&a.push(...await u.checkCatalogue(t,r,n,o==="artificial",i)),o===void 0&&!a.some(s=>s.verdict==="known"||s.verdict==="possible"||s.verdict==="compatible")?[...a.filter(s=>s.verdict==="unchecked"),{verdict:"uninformative",source:"none",reason:"typeUnknown"}]:a}static vectorOf(t,e){const n=Math.PI/180,i=e*n,r=t*n;return[Math.cos(i)*Math.sin(r),Math.cos(i)*Math.cos(r),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),r=u.angleDeg(n,i);if(r<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]),s=new Date(t.startMs),d=C.activeAt(s);let c;for(const{shower:l,zhr:h}of d){const m=C.radiantPosition(l,s,{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),A=u.angleDeg(f,i);y>=A||A<=r||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 r=u.TIME_MARGIN_MIN*6e4;if(!E.mayCover(t.startMs))return n?[{verdict:"uninformative",source:"gmn",reason:"beforeArchive"}]:[];const o=await i.fireballs.between(t.startMs-r,t.startMs+r+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(_("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 s=new Date(t.startMs),d=Date.UTC(s.getUTCFullYear(),s.getUTCMonth(),1),c=Date.UTC(s.getUTCFullYear(),s.getUTCMonth()+1,1)-1,h=(await i.fireballs.between(d,c)??[]).filter(m=>O.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,r){if(e.startMs<u.FIRST_ORBIT_MS)return i?[{verdict:"impossible",source:"catalogue"}]:[];const o=u.TIME_MARGIN_MIN*6e4,a=await r.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 s=t.object,d=s&&a.find(l=>s.cosparId&&l.record.cosparId===s.cosparId||s.norad!==void 0&&l.record.norad===s.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,N.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,,r]=await Promise.all([$.load(t),z.load(t),M.load(t),F(t).catch(()=>{})]);e===this.languageToken&&(this.sceneNames=r,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 D(this.element("reentry-parameters"),this.language,"reentry.",{said:()=>this.host.said(),writingLanguage:()=>this.host.writingLanguage()}),this.form.show(this.resolved(g.SET),new k(()=>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 r=this.origin(),o=r&&g.trackFromSeen(i,r);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 S.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">
1
+ import{M as w,_ as I,d as F}from"./rr0-ufoathome.mjs";import{P as S,I as x}from"./SaidPosition-OJEYhVKN.js";import{S as N}from"./SkyEventEditorStyle-CvY_AhbI.js";import{t as b,bm as M,aL as E,aF as C,m as _,s as P,ba as L}from"./ShareDialogElement-DqCoQwtn.js";import{c as G}from"./Sighting-D-_IYi9n.js";import{P as D,a as k,E as H}from"./ParameterForm-XbqxCLRn.js";import{T as K}from"./TimelineTracks-Daaqw9ly.js";import{R as O}from"./ReentryArchive-CeXHrU7L.js";import"./GeoProjection-DvqDbRIx.js";import"./three.module-CbaHqYFq.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";import"./VisualAids-DI-hEL46.js";const z=w.catalog({en:()=>I(()=>import("./ReentryParameterTexts_en-5BOfwCsS.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_en),fr:()=>I(()=>import("./ReentryParameterTexts_fr-BgUJROXF.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_fr),es:()=>I(()=>import("./ReentryParameterTexts_es-ze1-U4jB.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_es),it:()=>I(()=>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 r=Math.PI/180,o=g.EARTH_KM,a=n*r,s=-o*Math.sin(a)+Math.sqrt((o*Math.sin(a))**2+(o+i)**2-o**2),d=Math.atan2(s*Math.cos(a),o+s*Math.sin(a)),c=t.lat*r,l=e*r,h=Math.asin(Math.sin(c)*Math.cos(d)+Math.cos(c)*Math.sin(d)*Math.cos(l)),m=t.lng*r+Math.atan2(Math.sin(l)*Math.sin(d)*Math.cos(c),Math.cos(d)-Math.sin(c)*Math.sin(h));return{lat:h/r,lng:(m/r+540)%360-180}}static trackFromSeen(t,e){const n=t.seen,{fromAzimuthDeg:i,fromAltitudeDeg:r,toAzimuthDeg:o,toAltitudeDeg:a,durationS:s}=n??{};if(i===void 0||r===void 0||o===void 0||a===void 0||!s)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,r,h),altitudeKm:h},{t:l+Math.round(s*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,[r,o]=e<(i[0]?.t??0)?[i[0],i[1]]:[i[i.length-2],i[i.length-1]];if(!r||!o||o.t===r.t){const s=r??o??{lat:0,lng:0,altitudeKm:80};return{t:e,lat:s.lat,lng:s.lng,altitudeKm:s.altitudeKm}}const a=(e-r.t)/(o.t-r.t);return{t:e,lat:r.lat+(o.lat-r.lat)*a,lng:r.lng+(o.lng-r.lng)*a,altitudeKm:Math.max(0,r.altitudeKm+(o.altitudeKm-r.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:()=>I(()=>import("./ReentryEditorMessages_en-BmTZMr-m.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_en),fr:()=>I(()=>import("./ReentryEditorMessages_fr-DHbcY0tN.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_fr),es:()=>I(()=>import("./ReentryEditorMessages_es-edid__Jo.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_es),it:()=>I(()=>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 E,reentries:new O};static viewOf(t,e,n){const i=t.track;if(i.length<2)return;const r=i[0],o=i[i.length-1],a=t.seen,s=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}:s(r),c=a?.toAzimuthDeg!==void 0&&a.toAltitudeDeg!==void 0?{azimuthDeg:a.toAzimuthDeg,altitudeDeg:a.toAltitudeDeg}:s(o),l=a?.durationS??(o.t-r.t)/1e3,h=Math.min(...t.fragments.flatMap(m=>[m.absoluteMagnitude,...(m.lightCurve??[]).map(f=>f.absoluteMagnitude)]));return{startMs:e.getTime()+r.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,r=e.t>t.startMs?e.t-t.startMs:0;if(Math.max(i,r)>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 s=Math.max(u.azimuthOff(t.from.azimuthDeg,o.azimuthDeg),u.azimuthOff(t.to.azimuthDeg,a.azimuthDeg));if(s>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+r)/6e4),headingOffDeg:Math.round(s),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 r=u.viewOf(t,e,n);if(!r)return[{verdict:"unchecked",source:"none",reason:"noDateOrPlace"}];const o=M.of(t.type)?.nature,a=[];if(o!=="artificial"&&a.push(...await u.checkFireballs(r,n,o==="natural",i)),o!=="artificial"){const s=u.showerOf(r,n);s&&(s.verdict==="compatible"||o==="natural")&&a.push(s)}return o!=="natural"&&a.push(...await u.checkCatalogue(t,r,n,o==="artificial",i)),o===void 0&&!a.some(s=>s.verdict==="known"||s.verdict==="possible"||s.verdict==="compatible")?[...a.filter(s=>s.verdict==="unchecked"),{verdict:"uninformative",source:"none",reason:"typeUnknown"}]:a}static vectorOf(t,e){const n=Math.PI/180,i=e*n,r=t*n;return[Math.cos(i)*Math.sin(r),Math.cos(i)*Math.cos(r),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),r=u.angleDeg(n,i);if(r<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]),s=new Date(t.startMs),d=C.activeAt(s);let c;for(const{shower:l,zhr:h}of d){const m=C.radiantPosition(l,s,{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),A=u.angleDeg(f,i);y>=A||A<=r||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 r=u.TIME_MARGIN_MIN*6e4;if(!E.mayCover(t.startMs))return n?[{verdict:"uninformative",source:"gmn",reason:"beforeArchive"}]:[];const o=await i.fireballs.between(t.startMs-r,t.startMs+r+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(_("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 s=new Date(t.startMs),d=Date.UTC(s.getUTCFullYear(),s.getUTCMonth(),1),c=Date.UTC(s.getUTCFullYear(),s.getUTCMonth()+1,1)-1,h=(await i.fireballs.between(d,c)??[]).filter(m=>O.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,r){if(e.startMs<u.FIRST_ORBIT_MS)return i?[{verdict:"impossible",source:"catalogue"}]:[];const o=u.TIME_MARGIN_MIN*6e4,a=await r.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 s=t.object,d=s&&a.find(l=>s.cosparId&&l.record.cosparId===s.cosparId||s.norad!==void 0&&l.record.norad===s.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,N.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,,r]=await Promise.all([$.load(t),z.load(t),M.load(t),F(t).catch(()=>{})]);e===this.languageToken&&(this.sceneNames=r,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 D(this.element("reentry-parameters"),this.language,"reentry.",{said:()=>this.host.said(),writingLanguage:()=>this.host.writingLanguage()}),this.form.show(this.resolved(g.SET),new k(()=>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 r=this.origin(),o=r&&g.trackFromSeen(i,r);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 S.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
2
  <p class="launch-intro">${t.intro}</p>
3
3
  <div id="reentry-list"></div>
4
4
  <div id="reentry-fields" class="launch-fields">
@@ -1 +1 @@
1
- import{bh as S,bi as f,bb as R,bc as b,bj as G,bk as _,bl as F,q as N}from"./ShareDialogElement-EzLob2Tz.js";import{I as y,J as H,w as M,x as w,M as C,V as j,C as k}from"./three.module-CbaHqYFq.js";import"./rr0-ufoathome.mjs";import"./Sighting-B7bsiTIQ.js";import"./VisualAids-DI-hEL46.js";import"./SaidPosition-OJEYhVKN.js";import"./GeoProjection-DvqDbRIx.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";class h{static RADIUS=840;static MAX_SEGMENTS=1024;static VERTICES_PER_SEGMENT=12;static MIN_HALF_WIDTH_DEG=.1;static BRIGHT_HALF_WIDTH_DEG=.22;static TRAIN_SHARE=.9;static TRAIN_FALLOFF=1.2;object=new y;tiers;trains;positions;colors;shown=0;drawn=[];constructor(){this.object.name="reentries",this.tiers=S.map(i=>{const o=new H(new M,f.material(i.size,!1));return f.track(o),o.frustumCulled=!1,this.object.add(o),o});const s=h.MAX_SEGMENTS*h.VERTICES_PER_SEGMENT;this.positions=new Float32Array(s*3),this.colors=new Float32Array(s*3);const t=new M;t.setAttribute("position",new w(this.positions,3)),t.setAttribute("color",new w(this.colors,3)),t.setDrawRange(0,0),this.trains=new C(t,R.material()),this.trains.frustumCulled=!1,R.track(this.trains),this.object.add(this.trains)}nearest(s,t){let i,o=t;for(const e of this.drawn){const n=e.direction.dot(s);(n>o||i&&n===o&&e.magnitude<i.magnitude)&&(o=n,i=e)}return i}static directionOf(s){const{x:t,y:i,z:o}=b(s.altitudeDeg,s.azimuthDeg,1);return new j(t,i,o)}get count(){return this.shown}set(s,t,i,o){const e=this.tiers.map(()=>[]);let n=0,m=0;const a=new k;this.drawn=[];for(const r of s){const u=i(r.head);if(u<=0)continue;const c=r.magnitude-2.5*Math.log10(u);if(c>t)continue;m++,this.drawn.push({direction:h.directionOf(r.head),view:r,magnitude:c}),a.set(r.color);const d=G(c,t)*r.fade,{x:A,y:E,z:g}=b(r.head.altitudeDeg,r.head.azimuthDeg,h.RADIUS),[p,I,T]=o(r.head,c),z=r.fade,D=Math.max(a.r,a.g,a.b)||1;e[_(d)].push({x:A,y:E,z:g,r:p*a.r*z/D,g:I*a.g*z/D,b:T*a.b*z/D}),n=this.pushTrain(n,r.train,d,a)}this.shown=m,this.tiers.forEach((r,u)=>{const c=e[u],d=new Float32Array(c.length*3),A=new Float32Array(c.length*3);c.forEach((g,p)=>{d.set([g.x,g.y,g.z],p*3),A.set([g.r,g.g,g.b],p*3)}),r.geometry.dispose();const E=new M;E.setAttribute("position",new w(d,3)),E.setAttribute("color",new w(A,3)),r.geometry=E});const l=this.trains.geometry;l.setDrawRange(0,n),l.getAttribute("position").needsUpdate=!0,l.getAttribute("color").needsUpdate=!0}pushTrain(s,t,i,o){const e=t.length-1;for(let n=0;n<e;n++){if(s+h.VERTICES_PER_SEGMENT>h.MAX_SEGMENTS*h.VERTICES_PER_SEGMENT)return s;const m=1-n/e,a=1-(n+1)/e,l=b(t[n].altitudeDeg,t[n].azimuthDeg,h.RADIUS),r=b(t[n+1].altitudeDeg,t[n+1].azimuthDeg,h.RADIUS),u=d=>h.RADIUS*((h.MIN_HALF_WIDTH_DEG+h.BRIGHT_HALF_WIDTH_DEG*i*d)*Math.PI/180),c=d=>h.TRAIN_SHARE*i*d**h.TRAIN_FALLOFF;s=this.pushRibbon(s,l,r,u(m),u(a),c(m),c(a),o)}return s}pushRibbon(s,t,i,o,e,n,m,a){const l={x:i.x-t.x,y:i.y-t.y,z:i.z-t.z};if(Math.hypot(l.x,l.y,l.z)<1e-9)return s;const r=this.normalise(this.cross(this.normalise(t),this.normalise(l)));for(const[u,c]of[[-1,0],[0,1]]){const d=this.across(t,r,o,u),A=this.across(i,r,e,u),E=this.across(t,r,o,c),g=this.across(i,r,e,c),p=(I,T)=>I===0?T:0;s=this.push(s,d,p(u,n),a),s=this.push(s,A,p(u,m),a),s=this.push(s,E,p(c,n),a),s=this.push(s,A,p(u,m),a),s=this.push(s,g,p(c,m),a),s=this.push(s,E,p(c,n),a)}return s}across(s,t,i,o){return{x:s.x+t.x*i*o,y:s.y+t.y*i*o,z:s.z+t.z*i*o}}push(s,t,i,o){const e=s*3;this.positions[e]=t.x,this.positions[e+1]=t.y,this.positions[e+2]=t.z;const n=F.relativeOfResponse(Math.max(0,Math.min(1,i)));return this.colors[e]=n*o.r,this.colors[e+1]=n*o.g,this.colors[e+2]=n*o.b,s+1}cross(s,t){return{x:s.y*t.z-s.z*t.y,y:s.z*t.x-s.x*t.z,z:s.x*t.y-s.y*t.x}}normalise(s){const t=Math.hypot(s.x,s.y,s.z)||1;return{x:s.x/t,y:s.y/t,z:s.z/t}}dispose(){for(const s of this.tiers)s.geometry.dispose(),s.material.dispose();this.trains.geometry.dispose(),this.trains.material.dispose(),this.object.removeFromParent()}}class K{inSky=!0;hiddenFromEye=!0;pieces=new h;get object(){return this.pieces.object}get drawnCount(){return this.pieces.count}update(s,t,i){const o=s.length===0?[]:N.viewsAt(s,t,i.observer);o.length===0&&this.pieces.count===0||(this.pieces.set(o,i.magnitudeLimit,e=>i.cloudTransmission(e),(e,n)=>i.arrivingIlluminance(e,n,1)),i.lightFrom(o.map(e=>({position:e.head,magnitude:e.magnitude}))),i.glareFrom(o.map(e=>({key:`${e.reentryId}:${e.fragmentId}`,position:e.head,magnitude:e.magnitude,fade:e.fade}))))}pick(s,t,i){const o=this.pieces.nearest(t,i.nearestCos);return o&&{id:o.view.reentryId,detail:o}}dispose(){this.pieces.dispose()}}export{K as ReentrySimulation};
1
+ import{bh as S,bi as f,bb as R,bc as b,bj as G,bk as _,bl as F,t as N}from"./ShareDialogElement-DqCoQwtn.js";import{I as y,J as H,w as M,x as w,M as C,V as j,C as k}from"./three.module-CbaHqYFq.js";import"./rr0-ufoathome.mjs";import"./Sighting-D-_IYi9n.js";import"./VisualAids-DI-hEL46.js";import"./SaidPosition-OJEYhVKN.js";import"./GeoProjection-DvqDbRIx.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";class h{static RADIUS=840;static MAX_SEGMENTS=1024;static VERTICES_PER_SEGMENT=12;static MIN_HALF_WIDTH_DEG=.1;static BRIGHT_HALF_WIDTH_DEG=.22;static TRAIN_SHARE=.9;static TRAIN_FALLOFF=1.2;object=new y;tiers;trains;positions;colors;shown=0;drawn=[];constructor(){this.object.name="reentries",this.tiers=S.map(i=>{const o=new H(new M,f.material(i.size,!1));return f.track(o),o.frustumCulled=!1,this.object.add(o),o});const s=h.MAX_SEGMENTS*h.VERTICES_PER_SEGMENT;this.positions=new Float32Array(s*3),this.colors=new Float32Array(s*3);const t=new M;t.setAttribute("position",new w(this.positions,3)),t.setAttribute("color",new w(this.colors,3)),t.setDrawRange(0,0),this.trains=new C(t,R.material()),this.trains.frustumCulled=!1,R.track(this.trains),this.object.add(this.trains)}nearest(s,t){let i,o=t;for(const e of this.drawn){const n=e.direction.dot(s);(n>o||i&&n===o&&e.magnitude<i.magnitude)&&(o=n,i=e)}return i}static directionOf(s){const{x:t,y:i,z:o}=b(s.altitudeDeg,s.azimuthDeg,1);return new j(t,i,o)}get count(){return this.shown}set(s,t,i,o){const e=this.tiers.map(()=>[]);let n=0,m=0;const a=new k;this.drawn=[];for(const r of s){const u=i(r.head);if(u<=0)continue;const c=r.magnitude-2.5*Math.log10(u);if(c>t)continue;m++,this.drawn.push({direction:h.directionOf(r.head),view:r,magnitude:c}),a.set(r.color);const d=G(c,t)*r.fade,{x:A,y:E,z:g}=b(r.head.altitudeDeg,r.head.azimuthDeg,h.RADIUS),[p,I,T]=o(r.head,c),z=r.fade,D=Math.max(a.r,a.g,a.b)||1;e[_(d)].push({x:A,y:E,z:g,r:p*a.r*z/D,g:I*a.g*z/D,b:T*a.b*z/D}),n=this.pushTrain(n,r.train,d,a)}this.shown=m,this.tiers.forEach((r,u)=>{const c=e[u],d=new Float32Array(c.length*3),A=new Float32Array(c.length*3);c.forEach((g,p)=>{d.set([g.x,g.y,g.z],p*3),A.set([g.r,g.g,g.b],p*3)}),r.geometry.dispose();const E=new M;E.setAttribute("position",new w(d,3)),E.setAttribute("color",new w(A,3)),r.geometry=E});const l=this.trains.geometry;l.setDrawRange(0,n),l.getAttribute("position").needsUpdate=!0,l.getAttribute("color").needsUpdate=!0}pushTrain(s,t,i,o){const e=t.length-1;for(let n=0;n<e;n++){if(s+h.VERTICES_PER_SEGMENT>h.MAX_SEGMENTS*h.VERTICES_PER_SEGMENT)return s;const m=1-n/e,a=1-(n+1)/e,l=b(t[n].altitudeDeg,t[n].azimuthDeg,h.RADIUS),r=b(t[n+1].altitudeDeg,t[n+1].azimuthDeg,h.RADIUS),u=d=>h.RADIUS*((h.MIN_HALF_WIDTH_DEG+h.BRIGHT_HALF_WIDTH_DEG*i*d)*Math.PI/180),c=d=>h.TRAIN_SHARE*i*d**h.TRAIN_FALLOFF;s=this.pushRibbon(s,l,r,u(m),u(a),c(m),c(a),o)}return s}pushRibbon(s,t,i,o,e,n,m,a){const l={x:i.x-t.x,y:i.y-t.y,z:i.z-t.z};if(Math.hypot(l.x,l.y,l.z)<1e-9)return s;const r=this.normalise(this.cross(this.normalise(t),this.normalise(l)));for(const[u,c]of[[-1,0],[0,1]]){const d=this.across(t,r,o,u),A=this.across(i,r,e,u),E=this.across(t,r,o,c),g=this.across(i,r,e,c),p=(I,T)=>I===0?T:0;s=this.push(s,d,p(u,n),a),s=this.push(s,A,p(u,m),a),s=this.push(s,E,p(c,n),a),s=this.push(s,A,p(u,m),a),s=this.push(s,g,p(c,m),a),s=this.push(s,E,p(c,n),a)}return s}across(s,t,i,o){return{x:s.x+t.x*i*o,y:s.y+t.y*i*o,z:s.z+t.z*i*o}}push(s,t,i,o){const e=s*3;this.positions[e]=t.x,this.positions[e+1]=t.y,this.positions[e+2]=t.z;const n=F.relativeOfResponse(Math.max(0,Math.min(1,i)));return this.colors[e]=n*o.r,this.colors[e+1]=n*o.g,this.colors[e+2]=n*o.b,s+1}cross(s,t){return{x:s.y*t.z-s.z*t.y,y:s.z*t.x-s.x*t.z,z:s.x*t.y-s.y*t.x}}normalise(s){const t=Math.hypot(s.x,s.y,s.z)||1;return{x:s.x/t,y:s.y/t,z:s.z/t}}dispose(){for(const s of this.tiers)s.geometry.dispose(),s.material.dispose();this.trains.geometry.dispose(),this.trains.material.dispose(),this.object.removeFromParent()}}class K{inSky=!0;hiddenFromEye=!0;pieces=new h;get object(){return this.pieces.object}get drawnCount(){return this.pieces.count}update(s,t,i){const o=s.length===0?[]:N.viewsAt(s,t,i.observer);o.length===0&&this.pieces.count===0||(this.pieces.set(o,i.magnitudeLimit,e=>i.cloudTransmission(e),(e,n)=>i.arrivingIlluminance(e,n,1)),i.lightFrom(o.map(e=>({position:e.head,magnitude:e.magnitude}))),i.glareFrom(o.map(e=>({key:`${e.reentryId}:${e.fragmentId}`,position:e.head,magnitude:e.magnitude,fade:e.fade}))))}pick(s,t,i){const o=this.pieces.nearest(t,i.nearestCos);return o&&{id:o.view.reentryId,detail:o}}dispose(){this.pieces.dispose()}}export{K as ReentrySimulation};