@rr0/ufoathome 0.189.1 → 0.191.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 (212) hide show
  1. package/dist-embed-scene/{AdsbLolArchiveProvider-DdUpO-EA.js → AdsbLolArchiveProvider-BtF4baVw.js} +1 -1
  2. package/dist-embed-scene/{BeamEditor-Cu6NLBA7.js → BeamEditor-Dj1Wt50v.js} +1 -1
  3. package/dist-embed-scene/BeamSystem-CaNus1WN.js +1 -0
  4. package/dist-embed-scene/{BirdEditor-BxlHc4L5.js → BirdEditor-CKpe681e.js} +1 -1
  5. package/dist-embed-scene/{BirdFlock-DGC3adr7.js → BirdFlock-B2SbkMme.js} +1 -1
  6. package/dist-embed-scene/ContrailSystem-ChG1viIv.js +1 -0
  7. package/dist-embed-scene/{ControlPasses-BZIhjZfW.js → ControlPasses-Cls4RMwd.js} +1 -1
  8. package/dist-embed-scene/DroneEditor-BDDLiZPp.js +16 -0
  9. package/dist-embed-scene/DroneEditorMessages_en-BViHK30c.js +1 -0
  10. package/dist-embed-scene/DroneEditorMessages_es-D6bhIOAa.js +1 -0
  11. package/dist-embed-scene/DroneEditorMessages_fr-CvV0RyOT.js +1 -0
  12. package/dist-embed-scene/DroneEditorMessages_it-CYi-jmVN.js +1 -0
  13. package/dist-embed-scene/DroneFlight-BTFHGVWd.js +1 -0
  14. package/dist-embed-scene/DroneKindMessages_en-CLygXcsv.js +1 -0
  15. package/dist-embed-scene/DroneKindMessages_es-B9XFRYnQ.js +1 -0
  16. package/dist-embed-scene/DroneKindMessages_fr-CAX15_pk.js +1 -0
  17. package/dist-embed-scene/DroneKindMessages_it-CSGsCaJQ.js +1 -0
  18. package/dist-embed-scene/DroneParameterTexts_en-sL1dR2RG.js +1 -0
  19. package/dist-embed-scene/DroneParameterTexts_es-Bg8_8XVE.js +1 -0
  20. package/dist-embed-scene/DroneParameterTexts_fr-B8Ym7Yz6.js +1 -0
  21. package/dist-embed-scene/DroneParameterTexts_it-DfvWjvoc.js +1 -0
  22. package/dist-embed-scene/{Flightradar24Provider-DnJbUJ3f.js → Flightradar24Provider-BBj_wixV.js} +1 -1
  23. package/dist-embed-scene/GLTFLoader-CKDxld-A.js +1 -0
  24. package/dist-embed-scene/{GenerativeKitMessages-7-3kT9Ef.js → GenerativeKitMessages-BhHcmiXg.js} +1 -1
  25. package/dist-embed-scene/{HeadlightSystem-DOQSyusn.js → HeadlightSystem-Di3CUtA1.js} +1 -1
  26. package/dist-embed-scene/{LanternEditor-CpNWWMyY.js → LanternEditor-iByq1q3j.js} +1 -1
  27. package/dist-embed-scene/{LaserBeam-BS0xtrAx.js → LaserBeam-BQWS_xWa.js} +1 -1
  28. package/dist-embed-scene/{LaunchEditor-fuFCnkV4.js → LaunchEditor-CjpESdIe.js} +1 -1
  29. package/dist-embed-scene/{LaunchPlume-GdjoMQQa.js → LaunchPlume-DVsshxQE.js} +1 -1
  30. package/dist-embed-scene/{LaunchSimulation-C_x89oL_.js → LaunchSimulation-BU7X_C8t.js} +1 -1
  31. package/dist-embed-scene/{ModuleSession-Dd9RVc7I.js → ModuleSession-Hj3QwLuw.js} +3 -3
  32. package/dist-embed-scene/ModuleThree-D1uz5JiH.js +1 -0
  33. package/dist-embed-scene/{ParameterForm-DP2rnIe1.js → ParameterForm-BHRESNZ4.js} +11 -11
  34. package/dist-embed-scene/{RailwaySystem-8h9OGJkr.js → RailwaySystem-DBYCLMyL.js} +1 -1
  35. package/dist-embed-scene/{ReentryEditor-DGLg57vB.js → ReentryEditor-DpNPIxOG.js} +1 -1
  36. package/dist-embed-scene/{ReentrySimulation-DCNhQGDE.js → ReentrySimulation-m-TICP2i.js} +1 -1
  37. package/dist-embed-scene/ReferenceSystem-B6FHr1Pb.js +1 -0
  38. package/dist-embed-scene/{RoadMarkings-DAs6evab.js → RoadMarkings-DzCQFpjf.js} +1 -1
  39. package/dist-embed-scene/{SceneNames_en-BLm2h3zy.js → SceneNames_en-Dn90NisJ.js} +1 -1
  40. package/dist-embed-scene/{SceneNames_es-DrJ24RvP.js → SceneNames_es-DH6GZWja.js} +1 -1
  41. package/dist-embed-scene/{SceneNames_fr-CddH0oWD.js → SceneNames_fr-rltu5c_j.js} +1 -1
  42. package/dist-embed-scene/{SceneNames_it-DL3AbXlk.js → SceneNames_it-DsNshdIp.js} +1 -1
  43. package/dist-embed-scene/{SkyLantern-dInLqzN4.js → SkyLantern-BKxwl7Po.js} +1 -1
  44. package/dist-embed-scene/{TimelineTracks-B73gWzRB.js → TimelineTracks-Cjt0OHJS.js} +1 -1
  45. package/dist-embed-scene/{TraceSystem-vEBDgerB.js → TraceSystem-CwBlzmXK.js} +2 -2
  46. package/dist-embed-scene/{UfoMessages_en-BzK4iS9N.js → UfoMessages_en-A8Ku1B0Y.js} +1 -1
  47. package/dist-embed-scene/{WaterSystem-QZGlpcQ7.js → WaterSystem-BOnTlD7m.js} +2 -2
  48. package/dist-embed-scene/rr0-scene.mjs +331 -331
  49. package/dist-embed-scene/sightingSchema-CgwoRMl-.js +1 -0
  50. package/dist-embed-scene/trafficRuntime-DRDMbo2X.js +2 -0
  51. package/dist-embed-sighting/{AdsbLolArchiveProvider-BYOz5Wdl.js → AdsbLolArchiveProvider-BfWrS1jn.js} +1 -1
  52. package/dist-embed-sighting/{BallesterGuaspAssessor-CLQvJKlm.js → BallesterGuaspAssessor-BPaiHWd9.js} +1 -1
  53. package/dist-embed-sighting/{BeamEditor-B1s17C_I.js → BeamEditor--mMu1zwv.js} +2 -2
  54. package/dist-embed-sighting/BeamSystem-Cqe7QaN4.js +1 -0
  55. package/dist-embed-sighting/{BirdEditor-B__-UnpK.js → BirdEditor-DZ1Ybqeu.js} +1 -1
  56. package/dist-embed-sighting/{BirdFlock-BbObIeXW.js → BirdFlock-BZScQXfR.js} +1 -1
  57. package/dist-embed-sighting/{CaseReportExport-GwM0Pm21.js → CaseReportExport-DlX7cYJN.js} +3 -3
  58. package/dist-embed-sighting/ContrailSystem-Di5w5IVi.js +1 -0
  59. package/dist-embed-sighting/{ControlPasses-B78JMfGN.js → ControlPasses-Dr6eP2Mq.js} +1 -1
  60. package/dist-embed-sighting/{CoverageAssessor-BSoRnjHD.js → CoverageAssessor-Cu9wP4ZB.js} +1 -1
  61. package/dist-embed-sighting/DroneEditor-Bo19kUte.js +16 -0
  62. package/dist-embed-sighting/DroneEditorMessages_en-BViHK30c.js +1 -0
  63. package/dist-embed-sighting/DroneEditorMessages_es-D6bhIOAa.js +1 -0
  64. package/dist-embed-sighting/DroneEditorMessages_fr-CvV0RyOT.js +1 -0
  65. package/dist-embed-sighting/DroneEditorMessages_it-CYi-jmVN.js +1 -0
  66. package/dist-embed-sighting/DroneFlight-WxqILFs6.js +1 -0
  67. package/dist-embed-sighting/DroneKindMessages_en-CLygXcsv.js +1 -0
  68. package/dist-embed-sighting/DroneKindMessages_es-B9XFRYnQ.js +1 -0
  69. package/dist-embed-sighting/DroneKindMessages_fr-CAX15_pk.js +1 -0
  70. package/dist-embed-sighting/DroneKindMessages_it-CSGsCaJQ.js +1 -0
  71. package/dist-embed-sighting/DroneParameterTexts_en-sL1dR2RG.js +1 -0
  72. package/dist-embed-sighting/DroneParameterTexts_es-Bg8_8XVE.js +1 -0
  73. package/dist-embed-sighting/DroneParameterTexts_fr-B8Ym7Yz6.js +1 -0
  74. package/dist-embed-sighting/DroneParameterTexts_it-DfvWjvoc.js +1 -0
  75. package/dist-embed-sighting/{Flightradar24Provider-RjrQ963H.js → Flightradar24Provider-DJmvd2AL.js} +1 -1
  76. package/dist-embed-sighting/GLTFLoader-FWVFviG5.js +1 -0
  77. package/dist-embed-sighting/GenerativeKitMessages-NbyGMKAR.js +1 -0
  78. package/dist-embed-sighting/HeadlightSystem-Ce7sHylX.js +34 -0
  79. package/dist-embed-sighting/{HynekAssessor-CJ9APziM.js → HynekAssessor-DWDZGeLY.js} +1 -1
  80. package/dist-embed-sighting/{LanternEditor-C6tHr2lo.js → LanternEditor-Do0kggi8.js} +1 -1
  81. package/dist-embed-sighting/{LaserBeam-R7ItI6m-.js → LaserBeam-CMO6tMze.js} +1 -1
  82. package/dist-embed-sighting/{LaunchEditor-CbQXmqaL.js → LaunchEditor-CZri7DN4.js} +1 -1
  83. package/dist-embed-sighting/{LaunchPlume-uRfBKA0Y.js → LaunchPlume-DxDfUSlS.js} +1 -1
  84. package/dist-embed-sighting/LaunchSimulation-CTxbrEJw.js +1 -0
  85. package/dist-embed-sighting/{ModuleSession-YoBCzrOV.js → ModuleSession-BCtFMDJY.js} +3 -3
  86. package/dist-embed-sighting/ModuleThree-DPVHqcup.js +1 -0
  87. package/dist-embed-sighting/{NearestApproach-iBLl7o1g.js → NearestApproach-CONyx4c5.js} +1 -1
  88. package/dist-embed-sighting/{ParameterForm-CkZQ1FlH.js → ParameterForm-B8nX9qW-.js} +2 -2
  89. package/dist-embed-sighting/{PoherAssessor-DDRUgnRW.js → PoherAssessor-DI86qOCu.js} +1 -1
  90. package/dist-embed-sighting/RailwaySystem-DcJr9BY_.js +41 -0
  91. package/dist-embed-sighting/ReadingSensitivityMessages_en-ChQHFyxb.js +1 -0
  92. package/dist-embed-sighting/ReadingSensitivityMessages_es-BbFqHsvR.js +1 -0
  93. package/dist-embed-sighting/ReadingSensitivityMessages_fr-Dl4a8udu.js +1 -0
  94. package/dist-embed-sighting/ReadingSensitivityMessages_it-CwiJfUo_.js +1 -0
  95. package/dist-embed-sighting/{ReentryEditor-BzOyu6AB.js → ReentryEditor-BbhQfIPi.js} +1 -1
  96. package/dist-embed-sighting/ReentrySimulation-BHbW9YNO.js +1 -0
  97. package/dist-embed-sighting/ReferenceSystem-DCSdp9Bq.js +1 -0
  98. package/dist-embed-sighting/{RoadMarkings-CNLt-BEg.js → RoadMarkings-DvWjbrSf.js} +1 -1
  99. package/dist-embed-sighting/{SceneNames_en-Dz2a5iRk.js → SceneNames_en-BlRTU7Hq.js} +1 -1
  100. package/dist-embed-sighting/{SceneNames_es-CKgCl71G.js → SceneNames_es-DMNd9trd.js} +1 -1
  101. package/dist-embed-sighting/{SceneNames_fr-BjpaWmul.js → SceneNames_fr-DlMcv9D0.js} +1 -1
  102. package/dist-embed-sighting/{SceneNames_it-TidFZnkk.js → SceneNames_it-DqlWMlOE.js} +1 -1
  103. package/dist-embed-sighting/{SkyLantern-BdVGIBoq.js → SkyLantern-COmog7pF.js} +1 -1
  104. package/dist-embed-sighting/{TimelineTracks-CvGxdpGb.js → TimelineTracks-CYIJdyPF.js} +1 -1
  105. package/dist-embed-sighting/{TraceSystem-ZNrHrAPL.js → TraceSystem-1K0WblAK.js} +2 -2
  106. package/dist-embed-sighting/{UfoMessages_en-cLvtpfIC.js → UfoMessages_en-CwRXodRE.js} +1 -1
  107. package/dist-embed-sighting/WaterSystem-1VlNXZnO.js +19 -0
  108. package/dist-embed-sighting/rr0-sighting.mjs +382 -380
  109. package/dist-embed-sighting/sightingSchema-CgwoRMl-.js +1 -0
  110. package/dist-embed-sighting/trafficRuntime-CuYrKvX9.js +2 -0
  111. package/dist-embed-sighting-editor/{AdsbLolArchiveProvider-DEqEth50.js → AdsbLolArchiveProvider-BrZzIuec.js} +1 -1
  112. package/dist-embed-sighting-editor/{BallesterGuaspAssessor-CeyXntPc.js → BallesterGuaspAssessor-CXvIvYxV.js} +1 -1
  113. package/dist-embed-sighting-editor/{BeamEditor-DQcdww5w.js → BeamEditor-5-OlhNfL.js} +1 -1
  114. package/dist-embed-sighting-editor/{BeamSystem-d2pPAwht.js → BeamSystem-BGdR-Xez.js} +1 -1
  115. package/dist-embed-sighting-editor/{BirdEditor-CsyXenUx.js → BirdEditor-ESUliJEN.js} +1 -1
  116. package/dist-embed-sighting-editor/{BirdFlock-CSw6ge15.js → BirdFlock-DtshFXGT.js} +1 -1
  117. package/dist-embed-sighting-editor/{CaseReportExport-DNBdWKUJ.js → CaseReportExport-C84tqwtO.js} +1 -1
  118. package/dist-embed-sighting-editor/{ContrailSystem-B4tXvQXF.js → ContrailSystem-BTVyJpmn.js} +1 -1
  119. package/dist-embed-sighting-editor/{ControlPasses-C2E5CKcL.js → ControlPasses-DiQAXMzD.js} +1 -1
  120. package/dist-embed-sighting-editor/{CoverageAssessor-DvVcSmz6.js → CoverageAssessor-CJQzNdyr.js} +1 -1
  121. package/dist-embed-sighting-editor/{DecorParameterTexts_en-C5dEeI_C.js → DecorParameterTexts_en-idbdHsFG.js} +1 -1
  122. package/dist-embed-sighting-editor/{DecorParameterTexts_es-BysMOaxT.js → DecorParameterTexts_es-CIkkLQc2.js} +1 -1
  123. package/dist-embed-sighting-editor/{DecorParameterTexts_fr-CThgxosI.js → DecorParameterTexts_fr-D9GeuW_Y.js} +1 -1
  124. package/dist-embed-sighting-editor/{DecorParameterTexts_it-D0ZsTK16.js → DecorParameterTexts_it-v7TBrnsr.js} +1 -1
  125. package/dist-embed-sighting-editor/DroneEditor-DDaJO8FS.js +16 -0
  126. package/dist-embed-sighting-editor/DroneEditorMessages_en-BViHK30c.js +1 -0
  127. package/dist-embed-sighting-editor/DroneEditorMessages_es-D6bhIOAa.js +1 -0
  128. package/dist-embed-sighting-editor/DroneEditorMessages_fr-CvV0RyOT.js +1 -0
  129. package/dist-embed-sighting-editor/DroneEditorMessages_it-CYi-jmVN.js +1 -0
  130. package/dist-embed-sighting-editor/DroneFlight-tXCk1Tg1.js +1 -0
  131. package/dist-embed-sighting-editor/DroneKindMessages_en-CLygXcsv.js +1 -0
  132. package/dist-embed-sighting-editor/DroneKindMessages_es-B9XFRYnQ.js +1 -0
  133. package/dist-embed-sighting-editor/DroneKindMessages_fr-CAX15_pk.js +1 -0
  134. package/dist-embed-sighting-editor/DroneKindMessages_it-CSGsCaJQ.js +1 -0
  135. package/dist-embed-sighting-editor/DroneParameterTexts_en-sL1dR2RG.js +1 -0
  136. package/dist-embed-sighting-editor/DroneParameterTexts_es-Bg8_8XVE.js +1 -0
  137. package/dist-embed-sighting-editor/DroneParameterTexts_fr-B8Ym7Yz6.js +1 -0
  138. package/dist-embed-sighting-editor/DroneParameterTexts_it-DfvWjvoc.js +1 -0
  139. package/dist-embed-sighting-editor/{Flightradar24Provider-D3bM2ckV.js → Flightradar24Provider-DUVcPAF2.js} +1 -1
  140. package/dist-embed-sighting-editor/{GLTFLoader-fTZft-Zt.js → GLTFLoader-DdijxzcI.js} +1 -1
  141. package/dist-embed-sighting-editor/{HeadlightSystem-uWB_oNGK.js → HeadlightSystem-DRq40K7R.js} +1 -1
  142. package/dist-embed-sighting-editor/{HynekAssessor-D-u8nJfp.js → HynekAssessor-PxE7JR1h.js} +1 -1
  143. package/dist-embed-sighting-editor/{InterviewEditorElement-MBuptUl8.js → InterviewEditorElement-D-UDHU0L.js} +2 -2
  144. package/dist-embed-sighting-editor/{LanternEditor-DIew0BrY.js → LanternEditor-DDcI5Kv1.js} +2 -2
  145. package/dist-embed-sighting-editor/{LaserBeam-DOGz1dOz.js → LaserBeam-CadJcSMd.js} +1 -1
  146. package/dist-embed-sighting-editor/{LaunchEditor-0BCDGChg.js → LaunchEditor-Pkk0K648.js} +1 -1
  147. package/dist-embed-sighting-editor/{LaunchPlume-DdX9-Rlw.js → LaunchPlume-C7My5ccR.js} +1 -1
  148. package/dist-embed-sighting-editor/{LaunchSimulation-BkdI45NE.js → LaunchSimulation-45Z9GUBF.js} +1 -1
  149. package/dist-embed-sighting-editor/{ModelSource-BQm0eN7H.js → ModelSource-CzGHu4XS.js} +1 -1
  150. package/dist-embed-sighting-editor/{ModelThumbnails-Bwh2px6A.js → ModelThumbnails-CNO_j-KM.js} +1 -1
  151. package/dist-embed-sighting-editor/{ModelViewer-Dl5ichWV.js → ModelViewer-yfIxofpG.js} +1 -1
  152. package/dist-embed-sighting-editor/{ModuleConformance-_3-3Kbbt.js → ModuleConformance-C9DED8Lk.js} +2 -2
  153. package/dist-embed-sighting-editor/{ModuleSession-mVLpd6IE.js → ModuleSession-Cxe0BJue.js} +2 -2
  154. package/dist-embed-sighting-editor/ModuleThree-DSghL4fp.js +1 -0
  155. package/dist-embed-sighting-editor/{ModulesPanelElement-DZ7dkdsm.js → ModulesPanelElement-DgbOYqaS.js} +3 -3
  156. package/dist-embed-sighting-editor/{NearestApproach-BDjtUet2.js → NearestApproach-EbQIYGTt.js} +1 -1
  157. package/dist-embed-sighting-editor/{PoherAssessor-DrseSHg-.js → PoherAssessor-BisQ5ybV.js} +1 -1
  158. package/dist-embed-sighting-editor/{RailwaySystem-De5BYxNx.js → RailwaySystem-CIAIBvLT.js} +1 -1
  159. package/dist-embed-sighting-editor/ReadingSensitivityMessages_en-ChQHFyxb.js +1 -0
  160. package/dist-embed-sighting-editor/ReadingSensitivityMessages_es-BbFqHsvR.js +1 -0
  161. package/dist-embed-sighting-editor/ReadingSensitivityMessages_fr-Dl4a8udu.js +1 -0
  162. package/dist-embed-sighting-editor/ReadingSensitivityMessages_it-CwiJfUo_.js +1 -0
  163. package/dist-embed-sighting-editor/{ReentryEditor-DWqXWztK.js → ReentryEditor-NE8z5aZT.js} +1 -1
  164. package/dist-embed-sighting-editor/{ReentrySimulation-DpIG9b07.js → ReentrySimulation-Crd-CW_o.js} +1 -1
  165. package/dist-embed-sighting-editor/{ReferenceSystem-BoCM4vB1.js → ReferenceSystem-DUIJceGg.js} +1 -1
  166. package/dist-embed-sighting-editor/SightingEditorMessages_en-DSPvgYFi.js +12 -0
  167. package/dist-embed-sighting-editor/SightingEditorMessages_es-Bl3DipHr.js +12 -0
  168. package/dist-embed-sighting-editor/SightingEditorMessages_fr-BTmWQX0n.js +12 -0
  169. package/dist-embed-sighting-editor/SightingEditorMessages_it-lzbDsHjx.js +12 -0
  170. package/dist-embed-sighting-editor/{SightingFileEditor-Dtz8Azd2.js → SightingFileEditor-0VZmtiOX.js} +1 -1
  171. package/dist-embed-sighting-editor/{SkyLantern-CaRiiIZX.js → SkyLantern-De_MXfQz.js} +1 -1
  172. package/dist-embed-sighting-editor/{TraceSystem-DdEd9Z5I.js → TraceSystem-Ba5H90GB.js} +2 -2
  173. package/dist-embed-sighting-editor/{WaterSystem-DntD2XIE.js → WaterSystem-Dpdw46hF.js} +2 -2
  174. package/dist-embed-sighting-editor/rr0-sighting-editor.mjs +433 -422
  175. package/dist-embed-sighting-editor/sightingSchema-CgwoRMl-.js +1 -0
  176. package/dist-embed-sighting-editor/trafficRuntime-Cqj3IpvH.js +2 -0
  177. package/package.json +2 -1
  178. package/dist-embed-scene/BeamSystem-Ab_wCPf_.js +0 -1
  179. package/dist-embed-scene/ContrailSystem-BYqjhyyF.js +0 -1
  180. package/dist-embed-scene/GLTFLoader-BmUyASZK.js +0 -1
  181. package/dist-embed-scene/ModuleThree-q18pyqmA.js +0 -1
  182. package/dist-embed-scene/ReferenceSystem-BTDpVH4u.js +0 -1
  183. package/dist-embed-scene/sightingSchema-DjI7FV42.js +0 -1
  184. package/dist-embed-scene/trafficRuntime-CJIPy2oO.js +0 -2
  185. package/dist-embed-sighting/BeamSystem-DTraCa17.js +0 -1
  186. package/dist-embed-sighting/ContrailSystem-C1pCwq7H.js +0 -1
  187. package/dist-embed-sighting/GLTFLoader-61IhKnLS.js +0 -1
  188. package/dist-embed-sighting/GenerativeKitMessages-CRj85mnY.js +0 -1
  189. package/dist-embed-sighting/HeadlightSystem-LMaOhpkj.js +0 -34
  190. package/dist-embed-sighting/LaunchSimulation-DgsYJUKz.js +0 -1
  191. package/dist-embed-sighting/ModuleThree-BHRi7HrA.js +0 -1
  192. package/dist-embed-sighting/RailwaySystem-m2A18WjN.js +0 -41
  193. package/dist-embed-sighting/ReadingSensitivityMessages_en-CF6XauSj.js +0 -1
  194. package/dist-embed-sighting/ReadingSensitivityMessages_es-Ca-13TTT.js +0 -1
  195. package/dist-embed-sighting/ReadingSensitivityMessages_fr-Djdd6Hdq.js +0 -1
  196. package/dist-embed-sighting/ReadingSensitivityMessages_it-CPUXxMqD.js +0 -1
  197. package/dist-embed-sighting/ReentrySimulation-BDnSb3zB.js +0 -1
  198. package/dist-embed-sighting/ReferenceSystem-C1iPC-1U.js +0 -1
  199. package/dist-embed-sighting/WaterSystem-BtEY0XLc.js +0 -19
  200. package/dist-embed-sighting/sightingSchema-DjI7FV42.js +0 -1
  201. package/dist-embed-sighting/trafficRuntime-CFgDqQz4.js +0 -2
  202. package/dist-embed-sighting-editor/ModuleThree-cXvmWIn4.js +0 -1
  203. package/dist-embed-sighting-editor/ReadingSensitivityMessages_en-CF6XauSj.js +0 -1
  204. package/dist-embed-sighting-editor/ReadingSensitivityMessages_es-Ca-13TTT.js +0 -1
  205. package/dist-embed-sighting-editor/ReadingSensitivityMessages_fr-Djdd6Hdq.js +0 -1
  206. package/dist-embed-sighting-editor/ReadingSensitivityMessages_it-CPUXxMqD.js +0 -1
  207. package/dist-embed-sighting-editor/SightingEditorMessages_en-BgJRl09G.js +0 -12
  208. package/dist-embed-sighting-editor/SightingEditorMessages_es-CK8yosal.js +0 -12
  209. package/dist-embed-sighting-editor/SightingEditorMessages_fr-CcBrcUd-.js +0 -12
  210. package/dist-embed-sighting-editor/SightingEditorMessages_it-Dvnh7lnI.js +0 -12
  211. package/dist-embed-sighting-editor/sightingSchema-DjI7FV42.js +0 -1
  212. package/dist-embed-sighting-editor/trafficRuntime-j8tnHTec.js +0 -2
@@ -1,3 +1,3 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ModuleThree-BHRi7HrA.js","./rr0-sighting.mjs"])))=>i.map(i=>d[i]);
2
- import{f as g,d as w,_ as b,M as p}from"./rr0-sighting.mjs";class n{static STORAGE_KEY="ufoathome.modules";static FORMAT=1;static empty(){return{format:1,modules:[]}}static read(t=n.storage()){try{const e=t?.getItem(n.STORAGE_KEY);return e?n.parse(e):n.empty()}catch{return n.empty()}}static write(t,e=n.storage()){try{return e?(t.modules.length===0?e.removeItem(n.STORAGE_KEY):e.setItem(n.STORAGE_KEY,n.text(t)),!0):!1}catch{return!1}}static parse(t){const e=JSON.parse(t);if(e===null||typeof e!="object"||!Array.isArray(e.modules))throw new Error("not a UFO@home module list");if(typeof e.format=="number"&&e.format>n.FORMAT)throw new Error(`format ${e.format} is newer than ${n.FORMAT}`);const r=new Set,s=[];for(const i of e.modules)typeof i?.url!="string"||r.has(i.url)||(r.add(i.url),s.push({url:i.url,enabled:i.enabled!==!1}));return{format:1,modules:s}}static text(t){return JSON.stringify({format:n.FORMAT,modules:t.modules},null,2)+`
3
- `}static storage(){try{return typeof localStorage>"u"?void 0:localStorage}catch{return}}}class E{constructor(t,e){this.attribution=t,this.models=e}async entries(t){return t?this.models.filter(e=>[e.kind].flat().includes(t)):[...this.models]}async entry(t){return this.models.find(e=>e.id===t)}}class f{attribution;fetchImpl;tileUrlTemplate;constructor(t){this.attribution=t.attribution,this.tileUrlTemplate=t.tileUrlTemplate,this.fetchImpl=t.fetchImpl??fetch.bind(globalThis)}getImageryTexture(t,e){return g(t,e,r=>f.tileUrl(this.tileUrlTemplate,r),this.fetchImpl)}static tileUrl(t,e){return t.replaceAll("{z}",String(e.z)).replaceAll("{x}",String(e.x)).replaceAll("{y}",String(e.y))}}class v extends Error{constructor(t,e){super(`${t}: ${e}`),this.url=t,this.reason=e,this.name="ModuleManifestError"}}class d{static FORMAT=1;static check(t,e){const r=o=>{throw new v(e,o)};(t===null||typeof t!="object"||Array.isArray(t))&&r("not a JSON object");const s=t;typeof s.format!="number"&&r('no "format"'),s.format>d.FORMAT&&r(`format ${s.format} is newer than ${d.FORMAT}, which this version reads`),(typeof s.id!="string"||!/^[a-z0-9][a-z0-9._-]*$/.test(s.id))&&r(`"id" must be lowercase letters, digits, '.', '_' or '-'`),(typeof s.name!="string"||s.name.trim()==="")&&r('no "name"'),s.script!==void 0&&typeof s.script!="string"&&r('"script" must be an address');const i=s.contributes??{};for(const o of["imagery","elevation"]){const c=i[o];c!==void 0&&(Array.isArray(c)||r(`"contributes.${o}" must be a list`),c.forEach((l,h)=>{for(const m of["id","name","credit","creditUrl","tiles"])(typeof l?.[m]!="string"||l[m]==="")&&r(`"contributes.${o}[${h}].${m}" is missing`);["{z}","{x}","{y}"].every(m=>l.tiles.includes(m))||r(`"contributes.${o}[${h}].tiles" must hold {z}, {x} and {y}`)}))}const a=i.models;return a!==void 0&&(Array.isArray(a)||r('"contributes.models" must be a list'),a.forEach((o,c)=>{for(const l of["id","name","file"])(typeof o?.[l]!="string"||o[l]==="")&&r(`"contributes.models[${c}].${l}" is missing`);o.kind===void 0&&r(`"contributes.models[${c}].kind" is missing`),(!o.credit||typeof o.credit!="object")&&r(`"contributes.models[${c}].credit" is missing: a model is shown with its author and licence`)})),s}static contributions(t,e){const r=t.contributes??{},s={};if(r.imagery?.length&&(s.imagery=r.imagery.map(i=>({id:i.id,name:i.name,credit:i.credit,creditUrl:i.creditUrl,create:a=>new f({tileUrlTemplate:d.absoluteTemplate(i.tiles,e),attribution:i.credit,fetchImpl:a})}))),r.elevation?.length&&(s.elevation=r.elevation.map(i=>({id:i.id,name:i.name,credit:i.credit,creditUrl:i.creditUrl,create:a=>new w({tileUrlTemplate:d.absoluteTemplate(i.tiles,e),fetchImpl:a})}))),r.models?.length){const i=r.models.map(({file:o,...c})=>({...c,url:new URL(o,e).href})),a=t.credit??t.name;s.decorModels=[{id:`${t.id}-models`,name:t.name,credit:a,creditUrl:t.creditUrl??e,create:()=>new E(a,i)}]}return s}static module(t,e,r={}){const s=d.contributions(t,e);for(const[i,a]of Object.entries(r))Array.isArray(a)&&(s[i]=[...s[i]??[],...a]);return{id:t.id,name:t.name,credit:t.credit,creditUrl:t.creditUrl,url:e,contributes:s}}static absoluteTemplate(t,e){const r=t.replaceAll("{z}","__Z__").replaceAll("{x}","__X__").replaceAll("{y}","__Y__");return new URL(r,e).href.replaceAll("__Z__","{z}").replaceAll("__X__","{x}").replaceAll("__Y__","{y}")}}class T{fetchImpl;importImpl;constructor(t={}){this.fetchImpl=t.fetchImpl??fetch.bind(globalThis),this.importImpl=t.importImpl??(e=>import(e))}async load(t,e){const r=await this.fetchImpl(t);if(!r.ok)throw new Error(`${t}: HTTP ${r.status}`);const s=d.check(await r.json(),t),i=s.script!==void 0;let a={};if(i&&e.runScript){const o=new URL(s.script,t).href,c=await this.importImpl(o);if(typeof c.default!="function")throw new Error(`${o}: its default export is not a function`);const{MODULE_THREE:l}=await b(async()=>{const{MODULE_THREE:h}=await import("./ModuleThree-BHRi7HrA.js");return{MODULE_THREE:h}},__vite__mapDeps([0,1]),import.meta.url);a=await c.default({manifestUrl:t,three:l})??{}}return{url:t,manifest:s,module:d.module(s,t,a),hasScript:i,scriptRun:i&&e.runScript}}}class y{constructor(t=new T,e){this.loader=t,this.storage=e}static shared=new y;changes=new EventTarget;states=new Map;config=n.empty();started;list(){const t=[...this.states.values()];return[...t.filter(e=>e.addedByPerson),...t.filter(e=>!e.addedByPerson)]}state(t){return this.states.get(t)}start(){return this.started??=this.applyConfig(n.read(this.storage)),this.started}async add(t){await this.start();const e=new URL(t,typeof location>"u"?void 0:location.href).href;return this.config.modules.some(r=>r.url===e)||(this.config={...this.config,modules:[...this.config.modules,{url:e,enabled:!0}]},this.save()),this.reload(e)}async remove(t){this.config={...this.config,modules:this.config.modules.filter(e=>e.url!==t)},this.save(),await this.reload(t)}async setEnabled(t,e){this.config={...this.config,modules:this.config.modules.map(r=>r.url===t?{...r,enabled:e}:r)},this.save(),await this.reload(t)}exportText(){return n.text(this.config)}async importText(t){const e=n.parse(t);await this.start();const r=this.config.modules.map(s=>s.url);this.config=e,this.save(),await Promise.all([...new Set([...r,...e.modules.map(s=>s.url)])].map(s=>this.reload(s)))}async require(t,e){t?.length&&(await this.start(),await Promise.all(t.map(async r=>{let s;try{s=new URL(r,e??(typeof location>"u"?void 0:location.href)).href}catch{return}const i=this.states.get(s);if(i&&i.status!=="off")return i.status==="loading"?this.pending.get(s):void 0;this.named.add(s),await this.reload(s)})))}named=new Set;pending=new Map;async applyConfig(t){this.config=t,await Promise.all(t.modules.map(e=>this.reload(e.url)))}reload(t){const e=this.reloadNow(t);return this.pending.set(t,e),e}async reloadNow(t){const e=this.config.modules.find(a=>a.url===t),r=this.states.get(t);r?.loaded&&p.uninstall(r.loaded.module.id);const s=e!==void 0,i=e?.enabled??!0;if(!s&&!this.named.has(t))return this.states.delete(t),this.announce(),{url:t,addedByPerson:s,enabled:i,status:"off"};if(s&&!i&&!this.named.has(t))return this.set({url:t,addedByPerson:s,enabled:i,status:"off"});this.set({url:t,addedByPerson:s,enabled:i,status:"loading"});try{const a=await this.loader.load(t,{runScript:s&&i});return p.install(a.module),this.set({url:t,addedByPerson:s,enabled:i,status:"installed",loaded:a})}catch(a){return this.set({url:t,addedByPerson:s,enabled:i,status:"failed",error:a instanceof Error?a.message:String(a)})}}set(t){return this.states.set(t.url,t),this.announce(),t}save(){n.write(this.config,this.storage)}announce(){this.changes.dispatchEvent(new Event("change"))}}export{y as ModuleSession};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./ModuleThree-DPVHqcup.js","./rr0-sighting.mjs"])))=>i.map(i=>d[i]);
2
+ import{g,h as w,_ as b,M as p}from"./rr0-sighting.mjs";class n{static STORAGE_KEY="ufoathome.modules";static FORMAT=1;static empty(){return{format:1,modules:[]}}static read(t=n.storage()){try{const e=t?.getItem(n.STORAGE_KEY);return e?n.parse(e):n.empty()}catch{return n.empty()}}static write(t,e=n.storage()){try{return e?(t.modules.length===0?e.removeItem(n.STORAGE_KEY):e.setItem(n.STORAGE_KEY,n.text(t)),!0):!1}catch{return!1}}static parse(t){const e=JSON.parse(t);if(e===null||typeof e!="object"||!Array.isArray(e.modules))throw new Error("not a UFO@home module list");if(typeof e.format=="number"&&e.format>n.FORMAT)throw new Error(`format ${e.format} is newer than ${n.FORMAT}`);const r=new Set,s=[];for(const i of e.modules)typeof i?.url!="string"||r.has(i.url)||(r.add(i.url),s.push({url:i.url,enabled:i.enabled!==!1}));return{format:1,modules:s}}static text(t){return JSON.stringify({format:n.FORMAT,modules:t.modules},null,2)+`
3
+ `}static storage(){try{return typeof localStorage>"u"?void 0:localStorage}catch{return}}}class E{constructor(t,e){this.attribution=t,this.models=e}async entries(t){return t?this.models.filter(e=>[e.kind].flat().includes(t)):[...this.models]}async entry(t){return this.models.find(e=>e.id===t)}}class f{attribution;fetchImpl;tileUrlTemplate;constructor(t){this.attribution=t.attribution,this.tileUrlTemplate=t.tileUrlTemplate,this.fetchImpl=t.fetchImpl??fetch.bind(globalThis)}getImageryTexture(t,e){return g(t,e,r=>f.tileUrl(this.tileUrlTemplate,r),this.fetchImpl)}static tileUrl(t,e){return t.replaceAll("{z}",String(e.z)).replaceAll("{x}",String(e.x)).replaceAll("{y}",String(e.y))}}class v extends Error{constructor(t,e){super(`${t}: ${e}`),this.url=t,this.reason=e,this.name="ModuleManifestError"}}class d{static FORMAT=1;static check(t,e){const r=o=>{throw new v(e,o)};(t===null||typeof t!="object"||Array.isArray(t))&&r("not a JSON object");const s=t;typeof s.format!="number"&&r('no "format"'),s.format>d.FORMAT&&r(`format ${s.format} is newer than ${d.FORMAT}, which this version reads`),(typeof s.id!="string"||!/^[a-z0-9][a-z0-9._-]*$/.test(s.id))&&r(`"id" must be lowercase letters, digits, '.', '_' or '-'`),(typeof s.name!="string"||s.name.trim()==="")&&r('no "name"'),s.script!==void 0&&typeof s.script!="string"&&r('"script" must be an address');const i=s.contributes??{};for(const o of["imagery","elevation"]){const c=i[o];c!==void 0&&(Array.isArray(c)||r(`"contributes.${o}" must be a list`),c.forEach((l,h)=>{for(const m of["id","name","credit","creditUrl","tiles"])(typeof l?.[m]!="string"||l[m]==="")&&r(`"contributes.${o}[${h}].${m}" is missing`);["{z}","{x}","{y}"].every(m=>l.tiles.includes(m))||r(`"contributes.${o}[${h}].tiles" must hold {z}, {x} and {y}`)}))}const a=i.models;return a!==void 0&&(Array.isArray(a)||r('"contributes.models" must be a list'),a.forEach((o,c)=>{for(const l of["id","name","file"])(typeof o?.[l]!="string"||o[l]==="")&&r(`"contributes.models[${c}].${l}" is missing`);o.kind===void 0&&r(`"contributes.models[${c}].kind" is missing`),(!o.credit||typeof o.credit!="object")&&r(`"contributes.models[${c}].credit" is missing: a model is shown with its author and licence`)})),s}static contributions(t,e){const r=t.contributes??{},s={};if(r.imagery?.length&&(s.imagery=r.imagery.map(i=>({id:i.id,name:i.name,credit:i.credit,creditUrl:i.creditUrl,create:a=>new f({tileUrlTemplate:d.absoluteTemplate(i.tiles,e),attribution:i.credit,fetchImpl:a})}))),r.elevation?.length&&(s.elevation=r.elevation.map(i=>({id:i.id,name:i.name,credit:i.credit,creditUrl:i.creditUrl,create:a=>new w({tileUrlTemplate:d.absoluteTemplate(i.tiles,e),fetchImpl:a})}))),r.models?.length){const i=r.models.map(({file:o,...c})=>({...c,url:new URL(o,e).href})),a=t.credit??t.name;s.decorModels=[{id:`${t.id}-models`,name:t.name,credit:a,creditUrl:t.creditUrl??e,create:()=>new E(a,i)}]}return s}static module(t,e,r={}){const s=d.contributions(t,e);for(const[i,a]of Object.entries(r))Array.isArray(a)&&(s[i]=[...s[i]??[],...a]);return{id:t.id,name:t.name,credit:t.credit,creditUrl:t.creditUrl,url:e,contributes:s}}static absoluteTemplate(t,e){const r=t.replaceAll("{z}","__Z__").replaceAll("{x}","__X__").replaceAll("{y}","__Y__");return new URL(r,e).href.replaceAll("__Z__","{z}").replaceAll("__X__","{x}").replaceAll("__Y__","{y}")}}class T{fetchImpl;importImpl;constructor(t={}){this.fetchImpl=t.fetchImpl??fetch.bind(globalThis),this.importImpl=t.importImpl??(e=>import(e))}async load(t,e){const r=await this.fetchImpl(t);if(!r.ok)throw new Error(`${t}: HTTP ${r.status}`);const s=d.check(await r.json(),t),i=s.script!==void 0;let a={};if(i&&e.runScript){const o=new URL(s.script,t).href,c=await this.importImpl(o);if(typeof c.default!="function")throw new Error(`${o}: its default export is not a function`);const{MODULE_THREE:l}=await b(async()=>{const{MODULE_THREE:h}=await import("./ModuleThree-DPVHqcup.js");return{MODULE_THREE:h}},__vite__mapDeps([0,1]),import.meta.url);a=await c.default({manifestUrl:t,three:l})??{}}return{url:t,manifest:s,module:d.module(s,t,a),hasScript:i,scriptRun:i&&e.runScript}}}class y{constructor(t=new T,e){this.loader=t,this.storage=e}static shared=new y;changes=new EventTarget;states=new Map;config=n.empty();started;list(){const t=[...this.states.values()];return[...t.filter(e=>e.addedByPerson),...t.filter(e=>!e.addedByPerson)]}state(t){return this.states.get(t)}start(){return this.started??=this.applyConfig(n.read(this.storage)),this.started}async add(t){await this.start();const e=new URL(t,typeof location>"u"?void 0:location.href).href;return this.config.modules.some(r=>r.url===e)||(this.config={...this.config,modules:[...this.config.modules,{url:e,enabled:!0}]},this.save()),this.reload(e)}async remove(t){this.config={...this.config,modules:this.config.modules.filter(e=>e.url!==t)},this.save(),await this.reload(t)}async setEnabled(t,e){this.config={...this.config,modules:this.config.modules.map(r=>r.url===t?{...r,enabled:e}:r)},this.save(),await this.reload(t)}exportText(){return n.text(this.config)}async importText(t){const e=n.parse(t);await this.start();const r=this.config.modules.map(s=>s.url);this.config=e,this.save(),await Promise.all([...new Set([...r,...e.modules.map(s=>s.url)])].map(s=>this.reload(s)))}async require(t,e){t?.length&&(await this.start(),await Promise.all(t.map(async r=>{let s;try{s=new URL(r,e??(typeof location>"u"?void 0:location.href)).href}catch{return}const i=this.states.get(s);if(i&&i.status!=="off")return i.status==="loading"?this.pending.get(s):void 0;this.named.add(s),await this.reload(s)})))}named=new Set;pending=new Map;async applyConfig(t){this.config=t,await Promise.all(t.modules.map(e=>this.reload(e.url)))}reload(t){const e=this.reloadNow(t);return this.pending.set(t,e),e}async reloadNow(t){const e=this.config.modules.find(a=>a.url===t),r=this.states.get(t);r?.loaded&&p.uninstall(r.loaded.module.id);const s=e!==void 0,i=e?.enabled??!0;if(!s&&!this.named.has(t))return this.states.delete(t),this.announce(),{url:t,addedByPerson:s,enabled:i,status:"off"};if(s&&!i&&!this.named.has(t))return this.set({url:t,addedByPerson:s,enabled:i,status:"off"});this.set({url:t,addedByPerson:s,enabled:i,status:"loading"});try{const a=await this.loader.load(t,{runScript:s&&i});return p.install(a.module),this.set({url:t,addedByPerson:s,enabled:i,status:"installed",loaded:a})}catch(a){return this.set({url:t,addedByPerson:s,enabled:i,status:"failed",error:a instanceof Error?a.message:String(a)})}}set(t){return this.states.set(t.url,t),this.announce(),t}save(){n.write(this.config,this.storage)}announce(){this.changes.dispatchEvent(new Event("change"))}}export{y as ModuleSession};
@@ -0,0 +1 @@
1
+ import{K as a,X as e,bR as s,am as t,ao as r,aE as i,ad as o,az as n,ak as b,al as l,b0 as d,aF as m,aG as u,bS as M,a4 as G,ap as S,Y as B,E as f,bi as y,bf as c,bj as p,G as h,bw as E,a3 as x,bT as C,aq as D,bU as L,bV as T,bW as g,C as P,an as A,a2 as F,a5 as V,bX as j,aD as k,at as v}from"./rr0-sighting.mjs";const R={AdditiveBlending:v,BackSide:k,BoxGeometry:j,BufferAttribute:V,BufferGeometry:F,CanvasTexture:A,Color:P,ConeGeometry:g,CylinderGeometry:T,DataTexture:L,DoubleSide:D,Euler:C,Float32BufferAttribute:x,FrontSide:E,Group:h,Line:p,LineBasicMaterial:c,LineSegments:y,Matrix4:f,Mesh:B,MeshBasicMaterial:S,MeshStandardMaterial:G,NormalBlending:M,Object3D:u,PlaneGeometry:m,PointLight:d,Points:l,PointsMaterial:b,Quaternion:n,ShaderMaterial:o,SphereGeometry:i,Sprite:r,SpriteMaterial:t,TorusGeometry:s,Vector2:e,Vector3:a};export{R as MODULE_THREE};
@@ -1 +1 @@
1
- import{u as y,B as u}from"./rr0-sighting.mjs";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),h=n.length>0?n:s,d=c.FLAT,l=t=>u.eyeOf(e,t,d);let o;const p=[];for(const{body:t,index:i}of h){const M=new u(t,d,l);for(const{t:f}of t.track){const r=M.at(f),a=l(f);if(!r||!a)continue;const m=Math.hypot(r.eastM-a.eastM,r.northM-a.northM,r.upM-a.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
+ import{x as y,B as h}from"./rr0-sighting.mjs";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 r=M.at(f),a=l(f);if(!r||!a)continue;const m=Math.hypot(r.eastM-a.eastM,r.northM-a.northM,r.upM-a.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,4 +1,4 @@
1
- import{aO as q,S as M,H as D,s as V,i as j,U,aP as f,aQ as g}from"./rr0-sighting.mjs";class X{static attach(e,t,i){e.classList.add(t);const n=`${t}-style`;if(e.parentElement?.querySelector(`:scope > style.${n}`))return;const s=e.ownerDocument.createElement("style");s.className=n,s.textContent=i,e.before(s)}}class I{constructor(e,t,i,n){this.button=e,this.onPick=i,this.idOf=n;const s=this.panel=e.ownerDocument.createElement("div");s.id=t,s.className="add-menu",s.setAttribute("popover",""),s.setAttribute("role","menu");const o=`--add-menu-${t}`;e.style.setProperty("anchor-name",o),s.style.setProperty("position-anchor",o),e.setAttribute("popovertarget",t),e.setAttribute("aria-haspopup","menu"),e.after(s)}static CSS=`
1
+ import{aR as q,S as M,H as D,s as V,m as j,U,aS as f,aT as g}from"./rr0-sighting.mjs";class X{static attach(e,t,i){e.classList.add(t);const n=`${t}-style`;if(e.parentElement?.querySelector(`:scope > style.${n}`))return;const s=e.ownerDocument.createElement("style");s.className=n,s.textContent=i,e.before(s)}}class I{constructor(e,t,i,n){this.button=e,this.onPick=i,this.idOf=n;const s=this.panel=e.ownerDocument.createElement("div");s.id=t,s.className="add-menu",s.setAttribute("popover",""),s.setAttribute("role","menu");const o=`--add-menu-${t}`;e.style.setProperty("anchor-name",o),s.style.setProperty("position-anchor",o),e.setAttribute("popovertarget",t),e.setAttribute("aria-haspopup","menu"),e.after(s)}static CSS=`
2
2
  .add-menu { padding: .3em 0; border: 1px solid color-mix(in srgb, CanvasText 30%, transparent); border-radius: 4px; background: Canvas; color: CanvasText;
3
3
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25); max-height: 60vh; overflow-y: auto; font-size: .9em; }
4
4
  @supports (position-area: bottom span-left) {
@@ -86,6 +86,6 @@ rr0-input-position [hidden] { display: none !important; }
86
86
  `)!==n.map(h=>h.label).join(`
87
87
  `))&&s.replaceChildren(...n.map(h=>new Option(h.label,h.id??""))),this.referenceId!==void 0&&!n.some(h=>h.id===this.referenceId)&&(this.referenceId=void 0),s.value=this.referenceId??o[0]??"",this.fromRow.hidden=!this.relativeShown,this.localRow.hidden=!this.relativeShown,this.geoRow.hidden=this.relativeShown;const a=this.getRootNode().activeElement,d=(h,u)=>{h!==a&&(h.value=u===void 0?"":String(u))},r=this.localValue(),c=this.reference();if(d(this.eastField,r?f.metres(r.eastM-c.eastM):void 0),d(this.northField,r?f.metres(r.northM-c.northM):void 0),this.isGeo&&!this.relativeShown)return;const l=this.geoValue();d(this.latField,l?f.degrees(l.lat):void 0),d(this.lngField,l?f.degrees(l.lng):void 0)}pickReference(e){this.pullDegrees(),this.referenceId=e===""?void 0:e,this.show();const t=this.said;t&&this.shownValue&&this.tell(this.shownValue,t)}static typed(e){const t=e.value.trim(),i=t===""?NaN:Number(t);return Number.isFinite(i)?i:void 0}typedLocal(){const e=x.typed(this.eastField),t=x.typed(this.northField);if(e===void 0||t===void 0)return;const i=this.reference(),n={eastM:i.eastM+e,northM:i.northM+t};let s=n;if(this.isGeo){const o=this.shownFrame.origin;if(!o)return;s=f.toGeo(n,o)}this.shownValue=s,this.tell(s,f.relative(e,t,this.referenceId))}typedGeo(){const e=x.typed(this.latField),t=x.typed(this.lngField);if(e===void 0||t===void 0)return;let i={lat:e,lng:t};if(!this.isGeo){const n=this.shownFrame.origin;if(!n)return;i=f.toLocal({lat:e,lng:t},n)}this.shownValue=i,this.tell(i,{lat:e,lng:t})}tell(e,t){this.show();const i=this.isGeo?f.isAbsolute(t):f.isRelative(t)&&t.relativeTo===void 0;this.dispatchEvent(new CustomEvent("positionchange",{detail:{value:e,said:i?void 0:t},bubbles:!0,composed:!0}))}}function Y(){customElements.get(G)||customElements.define(G,x)}class R{constructor(e,t,i=()=>{},n){this.read=e,this.edit=t,this.context=i,this.place=n}static inPlace(e){return new R(()=>e,t=>t(e))}}class L{constructor(e,t,i="",n,s){this.container=e,this.idPrefix=i,this.values=n,this.enhance=s,this.said=new M([t,"en"])}set;target;changed=()=>{};said;setLanguage(e){this.said=new M([e,"en"]),this.set&&this.target&&this.show(this.set,this.target,this.changed)}show(e,t,i){this.set=e,this.target=t instanceof R?t:R.inPlace(t),this.changed=i,this.container.replaceChildren();const n=new Map;for(const s of e.parameters){const o=this.read(s.group)??"";let a=n.get(o);if(!a){if(a=document.createElement("fieldset"),a.className="parameter-group",o!==""){const d=document.createElement("legend");d.textContent=o,a.append(d)}else a.classList.add("parameter-group-untitled"),a.style.border="0",a.style.padding="0",a.style.marginInline="0";n.set(o,a),this.container.append(a)}a.append(this.fieldOf(s))}v.fit(this.container),this.sync()}clear(){this.set=void 0,this.target=void 0,this.container.replaceChildren()}field(e){return this.container.querySelector(`[data-key="${e}"]`)??void 0}sync(e=!1){const t=this.target?.read();if(!this.set||!t)return;const i=this.target.context(),n=e?null:this.container.getRootNode().activeElement;for(const s of this.set.parameters){const o=s.type==="position"?this.positionOf(s):this.field(s.key);if(!o)continue;const a=o.closest("label, .parameter-row")??o;a.hidden=s.visibleWhen!==void 0&&!s.visibleWhen(t,i);const d=g.read(t,s.key);if(s.type==="number"){const r=o;r!==n&&(r.value=typeof d=="number"?L.shown(d,s):"");const c=L.boundsOf(s,t,i);r.min=String(c.min),r.max=String(c.max);const l=s.effective?.(t,i);r.placeholder=l!==void 0?L.shown(l,s):this.read(s.placeholder)??"",r.classList.toggle("parameter-derived",d===void 0)}else if(s.type==="choice"){const r=o,c=s.optionsOf?.(t,i)??s.choices;if([...r.options].filter(l=>l.value!=="").map(l=>l.value).join(`
88
88
  `)!==c.map(l=>l.value).join(`
89
- `)&&r.replaceChildren(...s.required?[]:[new Option("—","")],...c.map(l=>new Option(this.read(l.label)??l.value,l.value))),r!==n&&(r.value=typeof d=="string"&&c.some(l=>l.value===d)?d:s.required?r.options[0]?.value??"":""),!s.required){const l=s.effective?.(t,i),h=c.find(u=>u.value===l);r.options[0].textContent=h?this.read(h.label)??h.value:this.read(s.empty)??"—"}}else if(s.type==="boolean"){const r=o;r.checked=d===!0}else if(s.type==="colour"){const r=o;r!==n&&(r.value=L.swatchOf(d,s.effective?.(t,i)??s.fallback??"#808080"))}else if(s.type==="set")this.syncSet(s,o,t,i);else if(s.type==="position")this.syncPosition(s,o,t);else if(s.type==="said"){const r=o;r!==n&&(r.value=this.values?.said().read(g.read(t,s.key))??""),this.markMissing(s,r)}else{const r=o;r!==n&&(r.value=typeof d=="string"?d:"",r.classList.remove("invalid"),r.removeAttribute("aria-invalid"))}}for(const s of this.container.querySelectorAll("fieldset.parameter-group"))s.hidden=[...s.querySelectorAll("label, .parameter-row")].filter(o=>o.parentElement===s).every(o=>o.hidden)}fieldOf(e){const t=document.createElement("label"),i=this.read(e.hint);i&&(t.title=i);const n=document.createElement("span");n.textContent=this.read(e.label)??e.key,t.append(n," ");let s;if(e.type==="choice"){const o=document.createElement("select");this.identify(o,e),e.required||o.append(new Option("—","")),o.append(...e.choices.map(a=>new Option(this.read(a.label)??a.value,a.value))),o.addEventListener("input",()=>this.write(e,o.value===""?void 0:o.value)),t.append(o),this.enhance?.(e,o)}else{if(e.type==="position")return this.setRow(e,this.positionFieldOf(e));if(e.type==="set"){const o=document.createElement("div");return this.identify(o,e),o.className="parameter-set",o.addEventListener("input",()=>{const a=[...o.querySelectorAll("input:checked")].map(d=>d.value);this.write(e,a.length>0?a:void 0)}),this.setRow(e,o)}else if(e.type==="boolean"){const o=document.createElement("input");o.type="checkbox",this.identify(o,e),o.addEventListener("input",()=>this.write(e,o.checked?!0:e.required?!1:void 0)),t.prepend(o),t.append(" ")}else{const o=document.createElement("input");this.identify(o,e),o.autocomplete="off",e.type==="number"?(o.type="number",o.min=String(e.min),o.max=String(e.max),o.step=String(e.step),s=e.unit,o.addEventListener("input",()=>{const a=o.value.trim();if(a==="")return e.required?void 0:this.write(e,void 0);const d=Number(a);Number.isFinite(d)&&this.write(e,d)})):e.type==="colour"?(o.type="color",o.addEventListener("input",()=>this.write(e,o.value))):e.type==="said"?(o.type="text",o.placeholder=this.read(e.placeholder)??"",o.style.setProperty("field-sizing","content"),o.style.minWidth="10em",o.style.maxWidth="100%",o.addEventListener("input",()=>{const a=this.target?.read(),d=this.values;!a||!d||(this.write(e,d.said().write(g.read(a,e.key),o.value,d.writingLanguage())),this.markMissing(e,o))})):(o.type="text",o.placeholder=this.read(e.placeholder)??"",o.addEventListener("input",()=>{const a=e.required||e.validate?o.value.trim():o.value,d=this.target?.read(),r=d!==void 0&&(e.required===!0&&a===""||a!==""&&e.validate?.(a,d,this.target.context())===!1);o.classList.toggle("invalid",r),r?o.setAttribute("aria-invalid","true"):o.removeAttribute("aria-invalid"),!r&&this.write(e,a===""?void 0:a)}),o.addEventListener("change",()=>{if(!o.classList.contains("invalid"))return;o.classList.remove("invalid"),o.removeAttribute("aria-invalid");const a=this.target?.read(),d=a===void 0?void 0:g.read(a,e.key);o.value=typeof d=="string"?d:""})),t.append(o)}}return s&&t.append(` ${s}`),t}markMissing(e,t){e.type!=="said"||!e.required||(t.classList.toggle("invalid",t.value===""),t.setAttribute("aria-invalid",String(t.value==="")))}positionFieldOf(e){Y();const t=document.createElement("rr0-input-position"),i=`${this.idPrefix}${e.key}`;t.setAttribute("name",i),e.native==="geo"&&t.setAttribute("native","geo"),e.step!==void 0&&t.setAttribute("step",String(e.step)),e.rangeM!==void 0&&t.setAttribute("range",String(e.rangeM));const n=e.native==="geo"?["lat-id","lng-id"]:["east-id","north-id"];this.idPrefix!==""&&(t.setAttribute(n[0],`${this.idPrefix}${e.key}`),t.setAttribute(n[1],`${this.idPrefix}${e.secondKey}`)),t.dataset.position=e.key,t.build();const[s,o]=e.native==="geo"?[t.latInput,t.lngInput]:[t.eastInput,t.northInput];s.dataset.key=e.key,o.dataset.key=e.secondKey;const a=this.target?.place;return a&&(t.messages=a.messages()),t.basisShown=a?.basis!==void 0,t.addEventListener("positionchange",d=>{const{value:r,said:c}=d.detail;this.writePosition(e,r,c)}),t.addEventListener("basischange",d=>this.target?.place?.basis?.write(e,d.detail.basis)),t}positionOf(e){return this.container.querySelector(`rr0-input-position[data-position="${e.key}"]`)??void 0}syncPosition(e,t,i){const n=this.target?.place;n&&(t.messages=n.messages(),t.frame=n.frame());const s=g.read(i,e.key),o=g.read(i,e.secondKey),a=typeof s=="number"&&typeof o=="number";t.value=a?e.native==="geo"?{lat:s,lng:o}:{eastM:s,northM:o}:void 0;const d=g.read(i,e.saidKey),r=JSON.stringify(d??null);t.dataset.said!==r&&(t.dataset.said=r,t.said=d),t.basis=n?.basis?.read(e)}writePosition(e,t,i){const n=this.target;if(!n)return;const[s,o]="lat"in t?[t.lat,t.lng]:[t.eastM,t.northM],a=e.native==="geo"?d=>Math.round(d*1e7)/1e7:d=>Math.round(d*1e3)/1e3;this.positionOf(e)?.setAttribute("data-said",JSON.stringify(i??null)),n.edit(d=>{g.write(d,e.key,a(s)),g.write(d,e.secondKey,a(o)),g.write(d,e.saidKey,i)},e),this.changed(),this.sync()}setRow(e,t){const i=document.createElement("div");i.className="parameter-row";const n=this.read(e.hint);n&&(i.title=n);const s=document.createElement("span");return s.textContent=this.read(e.label)??e.key,i.append(s," ",t),i}syncSet(e,t,i,n){if(e.type!=="set")return;const s=g.read(i,e.key),o=new Set(Array.isArray(s)?s:[]),a=e.options(i,n);if(a.length===0){t.textContent=this.read(e.empty)??"";return}[...t.querySelectorAll("input")].map(r=>r.value).join(`
89
+ `)&&r.replaceChildren(...s.required?[]:[new Option("—","")],...c.map(l=>new Option(this.read(l.label)??l.value,l.value))),r!==n&&(r.value=typeof d=="string"&&c.some(l=>l.value===d)?d:s.required?r.options[0]?.value??"":""),!s.required){const l=s.effective?.(t,i),h=c.find(u=>u.value===l);r.options[0].textContent=h?this.read(h.label)??h.value:this.read(s.empty)??"—"}}else if(s.type==="boolean"){const r=o;r.checked=typeof d=="boolean"?d:s.effective?.(t,i)===!0}else if(s.type==="colour"){const r=o;r!==n&&(r.value=L.swatchOf(d,s.effective?.(t,i)??s.fallback??"#808080"))}else if(s.type==="set")this.syncSet(s,o,t,i);else if(s.type==="position")this.syncPosition(s,o,t);else if(s.type==="said"){const r=o;r!==n&&(r.value=this.values?.said().read(g.read(t,s.key))??""),this.markMissing(s,r)}else{const r=o;r!==n&&(r.value=typeof d=="string"?d:"",r.classList.remove("invalid"),r.removeAttribute("aria-invalid"))}}for(const s of this.container.querySelectorAll("fieldset.parameter-group"))s.hidden=[...s.querySelectorAll("label, .parameter-row")].filter(o=>o.parentElement===s).every(o=>o.hidden)}fieldOf(e){const t=document.createElement("label"),i=this.read(e.hint);i&&(t.title=i);const n=document.createElement("span");n.textContent=this.read(e.label)??e.key,t.append(n," ");let s;if(e.type==="choice"){const o=document.createElement("select");this.identify(o,e),e.required||o.append(new Option("—","")),o.append(...e.choices.map(a=>new Option(this.read(a.label)??a.value,a.value))),o.addEventListener("input",()=>this.write(e,o.value===""?void 0:o.value)),t.append(o),this.enhance?.(e,o)}else{if(e.type==="position")return this.setRow(e,this.positionFieldOf(e));if(e.type==="set"){const o=document.createElement("div");return this.identify(o,e),o.className="parameter-set",o.addEventListener("input",()=>{const a=[...o.querySelectorAll("input:checked")].map(d=>d.value);this.write(e,a.length>0?a:void 0)}),this.setRow(e,o)}else if(e.type==="boolean"){const o=document.createElement("input");o.type="checkbox",this.identify(o,e),o.addEventListener("input",()=>{if(e.effective){const a=this.target?.read(),d=a?e.effective(a,this.target?.context())===!0:!1;this.write(e,o.checked===d?void 0:o.checked)}else this.write(e,o.checked?!0:e.required?!1:void 0)}),t.prepend(o),t.append(" ")}else{const o=document.createElement("input");this.identify(o,e),o.autocomplete="off",e.type==="number"?(o.type="number",o.min=String(e.min),o.max=String(e.max),o.step=String(e.step),s=e.unit,o.addEventListener("input",()=>{const a=o.value.trim();if(a==="")return e.required?void 0:this.write(e,void 0);const d=Number(a);Number.isFinite(d)&&this.write(e,d)})):e.type==="colour"?(o.type="color",o.addEventListener("input",()=>this.write(e,o.value))):e.type==="said"?(o.type="text",o.placeholder=this.read(e.placeholder)??"",o.style.setProperty("field-sizing","content"),o.style.minWidth="10em",o.style.maxWidth="100%",o.addEventListener("input",()=>{const a=this.target?.read(),d=this.values;!a||!d||(this.write(e,d.said().write(g.read(a,e.key),o.value,d.writingLanguage())),this.markMissing(e,o))})):(o.type="text",o.placeholder=this.read(e.placeholder)??"",o.addEventListener("input",()=>{const a=e.required||e.validate?o.value.trim():o.value,d=this.target?.read(),r=d!==void 0&&(e.required===!0&&a===""||a!==""&&e.validate?.(a,d,this.target.context())===!1);o.classList.toggle("invalid",r),r?o.setAttribute("aria-invalid","true"):o.removeAttribute("aria-invalid"),!r&&this.write(e,a===""?void 0:a)}),o.addEventListener("change",()=>{if(!o.classList.contains("invalid"))return;o.classList.remove("invalid"),o.removeAttribute("aria-invalid");const a=this.target?.read(),d=a===void 0?void 0:g.read(a,e.key);o.value=typeof d=="string"?d:""})),t.append(o)}}return s&&t.append(` ${s}`),t}markMissing(e,t){e.type!=="said"||!e.required||(t.classList.toggle("invalid",t.value===""),t.setAttribute("aria-invalid",String(t.value==="")))}positionFieldOf(e){Y();const t=document.createElement("rr0-input-position"),i=`${this.idPrefix}${e.key}`;t.setAttribute("name",i),e.native==="geo"&&t.setAttribute("native","geo"),e.step!==void 0&&t.setAttribute("step",String(e.step)),e.rangeM!==void 0&&t.setAttribute("range",String(e.rangeM));const n=e.native==="geo"?["lat-id","lng-id"]:["east-id","north-id"];this.idPrefix!==""&&(t.setAttribute(n[0],`${this.idPrefix}${e.key}`),t.setAttribute(n[1],`${this.idPrefix}${e.secondKey}`)),t.dataset.position=e.key,t.build();const[s,o]=e.native==="geo"?[t.latInput,t.lngInput]:[t.eastInput,t.northInput];s.dataset.key=e.key,o.dataset.key=e.secondKey;const a=this.target?.place;return a&&(t.messages=a.messages()),t.basisShown=a?.basis!==void 0,t.addEventListener("positionchange",d=>{const{value:r,said:c}=d.detail;this.writePosition(e,r,c)}),t.addEventListener("basischange",d=>this.target?.place?.basis?.write(e,d.detail.basis)),t}positionOf(e){return this.container.querySelector(`rr0-input-position[data-position="${e.key}"]`)??void 0}syncPosition(e,t,i){const n=this.target?.place;n&&(t.messages=n.messages(),t.frame=n.frame());const s=g.read(i,e.key),o=g.read(i,e.secondKey),a=typeof s=="number"&&typeof o=="number";t.value=a?e.native==="geo"?{lat:s,lng:o}:{eastM:s,northM:o}:void 0;const d=g.read(i,e.saidKey),r=JSON.stringify(d??null);t.dataset.said!==r&&(t.dataset.said=r,t.said=d),t.basis=n?.basis?.read(e)}writePosition(e,t,i){const n=this.target;if(!n)return;const[s,o]="lat"in t?[t.lat,t.lng]:[t.eastM,t.northM],a=e.native==="geo"?d=>Math.round(d*1e7)/1e7:d=>Math.round(d*1e3)/1e3;this.positionOf(e)?.setAttribute("data-said",JSON.stringify(i??null)),n.edit(d=>{g.write(d,e.key,a(s)),g.write(d,e.secondKey,a(o)),g.write(d,e.saidKey,i)},e),this.changed(),this.sync()}setRow(e,t){const i=document.createElement("div");i.className="parameter-row";const n=this.read(e.hint);n&&(i.title=n);const s=document.createElement("span");return s.textContent=this.read(e.label)??e.key,i.append(s," ",t),i}syncSet(e,t,i,n){if(e.type!=="set")return;const s=g.read(i,e.key),o=new Set(Array.isArray(s)?s:[]),a=e.options(i,n);if(a.length===0){t.textContent=this.read(e.empty)??"";return}[...t.querySelectorAll("input")].map(r=>r.value).join(`
90
90
  `)===a.map(r=>r.value).join(`
91
91
  `)||t.replaceChildren(...a.map(r=>{const c=document.createElement("label"),l=document.createElement("input");return l.type="checkbox",l.value=r.value,c.append(l," ",r.label),c}));for(const r of t.querySelectorAll("input"))r.checked=o.has(r.value)}identify(e,t){e.dataset.key=t.key,this.idPrefix!==""&&(e.id=`${this.idPrefix}${t.key}`)}write(e,t){const i=this.target;if(!i)return;let n=t;if(e.type==="number"&&typeof t=="number"){const s=i.read();if(s){const o=L.boundsOf(e,s,i.context());n=Math.max(o.min,Math.min(o.max,t))/(e.scale??1)}}i.edit(s=>g.write(s,e.key,n),e),this.changed(),this.sync()}read(e){return this.said.read(e)}static boundsOf(e,t,i){const n=e.bounds?.(t,i);return{min:n?.min??e.min,max:n?.max??e.max}}static swatchOf(e,t){if(typeof e!="string")return t;const i=/^#([0-9a-f])([0-9a-f])([0-9a-f])$/i.exec(e);return i?`#${i[1]}${i[1]}${i[2]}${i[2]}${i[3]}${i[3]}`.toLowerCase():/^#[0-9a-f]{6}$/i.test(e)?e.toLowerCase():t}static shown(e,t){const i=Math.max(2,Math.min(6,(String(t.step).split(".")[1]??"").length));return String(Number((e*(t.scale??1)).toFixed(i)))}static choicesOf(e){return e.choices.map(t=>t.value)}}export{A as E,L as P,X as S,R as a};
@@ -1 +1 @@
1
- import{v as u}from"./rr0-sighting.mjs";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),e=this.oscillation(n),a=this.landing(n),c=this.judged(n,"traces"),r=this.occupants(n),h=a.shown&&r.shown?5:a.shown&&c.shown?4:a.shown||t.value==="erratic"||s.shown||e.shown?3:t.value==="abnormal"?2:t.value==="straight"?1:0,i=[{id:"poher-trajectory",basis:t.basis,paths:t.paths,value:o.TRAJECTORIES.indexOf(t.value)},this.criterion("poher-vanish",s),this.criterion("poher-oscillation",e),{...this.criterion("poher-landing",a),unsupported:a.basis===void 0},this.criterion("poher-traces",c),this.criterion("poher-occupants",r)];return{verdict:String(h),criteria:i}}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 e=this.seen(n,s).filter(i=>i.aim!==void 0).map(i=>i.aim);if(e.length<2)continue;const a=[o.unit(e[0])];for(const i of e.slice(1)){const l=o.unit(i);o.angleDeg(a[a.length-1],l)>=o.STEP_DEG&&a.push(l)}const c=a.length-1;let r=0;for(let i=1;i<a.length-1;i++){const l=o.cross(a[i-1],a[i]),d=o.cross(a[i],a[i+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(e=>e.id)),s=(n.events??[]).findIndex(e=>o.OSCILLATIONS.includes(e.eventType)&&(u.isPhenomenon(n,e)||t.has(e.who?.split("/")[0]??"")));return s>=0?{shown:!0,basis:"stated",paths:[`events.${s}`]}:{shown:!1,paths:[]}}landing(n){const t=e=>!e.onGround&&((e.altitudeAboveGroundM??0)>0||(e.altitudeM??0)>0),s=(n.interpretation?.bodies??[]).findIndex(e=>Array.isArray(e.track)&&e.track.some(a=>a.onGround)&&e.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(e=>e.sourceId===t)?.shape})).filter(({shape:s})=>s!==void 0).map(({t:s,shape:e})=>({t:s,aim:e.aim,visible:e.transparency<1})).sort((s,e)=>s.t-e.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 e=(n[0]*t[0]+n[1]*t[1]+n[2]*t[2])/s;return Math.acos(Math.max(-1,Math.min(1,e)))*180/Math.PI}}export{o as PoherAssessor};
1
+ import{y as u}from"./rr0-sighting.mjs";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),e=this.oscillation(n),a=this.landing(n),c=this.judged(n,"traces"),r=this.occupants(n),h=a.shown&&r.shown?5:a.shown&&c.shown?4:a.shown||t.value==="erratic"||s.shown||e.shown?3:t.value==="abnormal"?2:t.value==="straight"?1:0,i=[{id:"poher-trajectory",basis:t.basis,paths:t.paths,value:o.TRAJECTORIES.indexOf(t.value)},this.criterion("poher-vanish",s),this.criterion("poher-oscillation",e),{...this.criterion("poher-landing",a),unsupported:a.basis===void 0},this.criterion("poher-traces",c),this.criterion("poher-occupants",r)];return{verdict:String(h),criteria:i}}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 e=this.seen(n,s).filter(i=>i.aim!==void 0).map(i=>i.aim);if(e.length<2)continue;const a=[o.unit(e[0])];for(const i of e.slice(1)){const l=o.unit(i);o.angleDeg(a[a.length-1],l)>=o.STEP_DEG&&a.push(l)}const c=a.length-1;let r=0;for(let i=1;i<a.length-1;i++){const l=o.cross(a[i-1],a[i]),d=o.cross(a[i],a[i+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(e=>e.id)),s=(n.events??[]).findIndex(e=>o.OSCILLATIONS.includes(e.eventType)&&(u.isPhenomenon(n,e)||t.has(e.who?.split("/")[0]??"")));return s>=0?{shown:!0,basis:"stated",paths:[`events.${s}`]}:{shown:!1,paths:[]}}landing(n){const t=e=>!e.onGround&&((e.altitudeAboveGroundM??0)>0||(e.altitudeM??0)>0),s=(n.interpretation?.bodies??[]).findIndex(e=>Array.isArray(e.track)&&e.track.some(a=>a.onGround)&&e.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(e=>e.sourceId===t)?.shape})).filter(({shape:s})=>s!==void 0).map(({t:s,shape:e})=>({t:s,aim:e.aim,visible:e.transparency<1})).sort((s,e)=>s.t-e.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 e=(n[0]*t[0]+n[1]*t[1]+n[2]*t[2])/s;return Math.acos(Math.max(-1,Math.min(1,e)))*180/Math.PI}}export{o as PoherAssessor};
@@ -0,0 +1,41 @@
1
+ import{G as F,a4 as P,C as H,p as K,a2 as w,a5 as N,Y as U,a6 as k}from"./rr0-sighting.mjs";class b{static HOLLOW_M=1;static COVERED_M=3;static WINDOW_M=30;static SAMPLE_M=4;static MAX_GRADE={rail:.025,highSpeed:.035,subway:.04,light_rail:.06,tram:.08,funicular:1/0};static heights(t,s,e){const n=t.map(a=>a.level===0),o=t.map((a,i)=>n[i]?b.targets(a,s,e):[]),c=t.map((a,i)=>n[i]?b.samples(a,o[i]):[]),r=new Map;t.forEach((a,i)=>{if(n[i])for(const h of b.ends(a)){const u=b.key(h),p=r.get(u);p?p.push(i):r.set(u,[i])}});const M=a=>{const i=r.get(b.key(a));if(i)return b.median(i.flatMap(h=>c[h]),a)};return t.map((a,i)=>{if(n[i]){const h=[...new Set([i,...b.ends(a).flatMap(d=>r.get(b.key(d))??[])])].flatMap(d=>c[d]),u=a.centre.map((d,O)=>b.median(h,d)??o[i][O]),[p,A]=b.ends(a);return u[0]=M(p)??u[0],u[u.length-1]=M(A)??u[u.length-1],b.graded(u,a.along,a.highSpeed?b.MAX_GRADE.highSpeed:b.MAX_GRADE[a.kind])}return b.carried(a,s,e,M)})}static targets(t,s,e){return t.centre.map(n=>{const o=s(n.x,n.z);if(e===void 0||n.altitudeM===void 0)return o;const c=n.altitudeM+e;return c-o>b.HOLLOW_M||o-c>b.COVERED_M?c:o})}static samples(t,s){const e=[];let n=0;return t.centre.forEach((o,c)=>{t.along[c]+1e-6<n&&c<t.centre.length-1||(e.push({x:o.x,z:o.z,y:s[c]}),n=t.along[c]+b.SAMPLE_M)}),e}static median(t,s){const e=[];for(const o of t)Math.hypot(o.x-s.x,o.z-s.z)<=b.WINDOW_M&&e.push(o.y);if(e.length===0)return;e.sort((o,c)=>o-c);const n=e.length>>1;return e.length%2===1?e[n]:(e[n-1]+e[n])/2}static graded(t,s,e){if(!Number.isFinite(e)||t.length<3)return t;const n=[...t],o=n.length-1,c=s[o];if(Math.abs(n[o]-n[0])>e*c)return s.map(r=>n[0]+(n[o]-n[0])*r/c);for(let r=1;r<o;r++){const M=e*(s[r]-s[r-1]);n[r]=Math.min(n[r-1]+M,Math.max(n[r-1]-M,n[r]))}for(let r=o-1;r>0;r--){const M=e*(s[r+1]-s[r]);n[r]=Math.min(n[r+1]+M,Math.max(n[r+1]-M,n[r]))}return n}static carried(t,s,e,n){const[o,c]=b.ends(t),r=t.along[t.along.length-1],M=n(o),a=n(c);if(e!==void 0&&t.centre.every(u=>u.altitudeM!==void 0)){const u=t.centre.map(d=>d.altitudeM+e),p=M!==void 0?M-u[0]:0,A=a!==void 0?a-u[u.length-1]:0;return u.map((d,O)=>d+p+(A-p)*t.along[O]/r)}const i=M??s(o.x,o.z),h=a??s(c.x,c.z);return t.along.map(u=>i+(h-i)*u/r)}static ends(t){return[t.centre[0],t.centre[t.centre.length-1]]}static key(t){return`${Math.round(t.x*2)},${Math.round(t.z*2)}`}}class B{positions=[];indices=[];along=[];get vertexCount(){return this.positions.length/3}strip(t,s,e){const n=this.vertexCount;for(let o=0;o<t.length;o++)this.positions.push(t[o].x,t[o].y,t[o].z,s[o].x,s[o].y,s[o].z),e&&this.along.push(e[o],e[o]);for(let o=0;o<t.length-1;o++){const c=n+o*2;this.indices.push(c,c+2,c+1,c+1,c+2,c+3)}}beam(t,s,e,n=!0){const o=s.x-t.x,c=s.y-t.y,r=s.z-t.z,M=Math.hypot(o,c,r);if(M<1e-6)return;const a={x:o/M,y:c/M,z:r/M},i=Math.abs(a.y)>.9?{x:1,y:0,z:0}:{x:0,y:1,z:0},h=a.y*i.z-a.z*i.y,u=a.z*i.x-a.x*i.z,p=a.x*i.y-a.y*i.x,A=Math.hypot(h,u,p),d={x:h/A*e/2,y:u/A*e/2,z:p/A*e/2},O={x:a.y*d.z-a.z*d.y,y:a.z*d.x-a.x*d.z,z:a.x*d.y-a.y*d.x},g=(f,x,E)=>({x:f.x+d.x*x+O.x*E,y:f.y+d.y*x+O.y*E,z:f.z+d.z*x+O.z*E}),_=[[1,1],[-1,1],[-1,-1],[1,-1]];for(let f=0;f<4;f++){const[x,E]=_[f],[z,v]=_[(f+1)%4];this.quad(g(t,x,E),g(t,z,v),g(s,z,v),g(s,x,E))}n&&(this.quad(...[..._].reverse().map(([f,x])=>g(t,f,x))),this.quad(..._.map(([f,x])=>g(s,f,x))))}quad(t,s,e,n){const o=this.vertexCount;this.positions.push(t.x,t.y,t.z,s.x,s.y,s.z,e.x,e.y,e.z,n.x,n.y,n.z),this.indices.push(o,o+1,o+2,o,o+2,o+3)}}class l{static STEP_M=6;static BALLAST_HEIGHT_M=.5;static BALLAST_SLOPE=1.5;static BALLAST_SHOULDER_M=.45;static DECK_DEPTH_M=.8;static BANK_SLOPE=1.5;static SLEEPER_LENGTH_M=2.4;static SLEEPER_WIDTH_M=.29;static SLEEPER_SPACING_M=.6;static RAIL_HEAD_M=.072;static RAIL_HEIGHT_M=.18;static TRAM_RAIL_HEIGHT_M=.03;static LIFT_M=.06;static CATENARY={rail:{contactM:5.5,systemM:1.4,spanM:54,staggerM:.2},highSpeed:{contactM:5.08,systemM:1.4,spanM:63,staggerM:.2},service:{contactM:5.5,systemM:1.2,spanM:45,staggerM:.2},tram:{contactM:6,systemM:0,spanM:30,staggerM:.2}};static MESSENGER_SAG_M=.55;static MAST_SIDE_M=.26;static MAST_OFFSET_M=3.1;static MAST_ABOVE_M=.6;static CONTACT_DIAMETER_M=.012;static MESSENGER_DIAMETER_M=.011;static ARM_SIDE_M=.06;static TRACK_SPACING_M={rail:3.7,highSpeed:4.5,tram:3.1,subway:3.4,light_rail:3.4,funicular:3.2};static BALLAST_ALBEDO=[.17,.16,.15];static BANK_ALBEDO=[.085,.09,.05];static DECK_ALBEDO=[.26,.255,.24];static CONCRETE_ALBEDO=[.36,.35,.33];static WOOD_ALBEDO=[.07,.055,.045];static RUST_ALBEDO=[.085,.068,.058];static STEEL_ALBEDO=[.3,.31,.32];static COPPER_ALBEDO=[.09,.085,.07];static LINE_REACH_M=20;group=new F;stepM=l.STEP_M;drawn=0;laid=[];ballastMaterial=l.pebbled(l.lambert(l.BALLAST_ALBEDO,!0));earthMaterial=l.lambert(l.BANK_ALBEDO,!0);deckMaterial=l.lambert(l.DECK_ALBEDO,!1);concreteSleepers=l.sleeperMaterial(l.CONCRETE_ALBEDO);woodSleepers=l.sleeperMaterial(l.WOOD_ALBEDO);rustMaterial=l.lambert(l.RUST_ALBEDO,!0);headMaterial=new P({color:new H(.62,.62,.62),metalness:1,roughness:.28,polygonOffset:!0,polygonOffsetFactor:-2,polygonOffsetUnits:-2});steelMaterial=l.lambert(l.STEEL_ALBEDO,!1);wireMaterial=l.lambert(l.COPPER_ALBEDO,!1);constructor(){this.group.name="railways"}get count(){return this.drawn}setGroundSpacing(t){this.stepM=Number.isFinite(t)&&t>0?Math.min(l.STEP_M,Math.max(1.5,t/2)):l.STEP_M}set(t,s,e,n,o=1/0){this.clear();const r=t.map(p=>({line:p,path:p.points.map(A=>({...K(A.lat,A.lng,s,e),altitudeM:A.altitudeM}))})).filter(({line:p,path:A})=>p.level>=0&&l.within(A,o)),M=l.altitudeOffset(r,n),a=r.flatMap(({line:p,path:A})=>{const d=this.layoutOf(p,A);return d?[{line:p,layout:d}]:[]}),i=b.heights(a.map(({layout:p})=>p),n,M),h={ballast:new B,earth:new B,deck:new B,concrete:new B,wood:new B,rust:new B,head:new B,steel:new B,wire:new B};a.forEach(({line:p,layout:A},d)=>{this.lay(p,{...A,y:i[d]},n,h),this.laid.push({line:p,centre:A.centre}),this.drawn++});const u=[[h.ballast,this.ballastMaterial,"ballast",!1],[h.earth,this.earthMaterial,"embankments",!1],[h.deck,this.deckMaterial,"decks",!0],[h.concrete,this.concreteSleepers,"sleepers",!1],[h.wood,this.woodSleepers,"sleepers wood",!1],[h.rust,this.rustMaterial,"rails",!1],[h.head,this.headMaterial,"rail heads",!1],[h.steel,this.steelMaterial,"catenary masts",!0],[h.wire,this.wireMaterial,"catenary wires",!1]];for(const[p,A,d,O]of u){const g=l.meshOf(p,A);g&&(g.name=`railways ${d}`,g.castShadow=O,g.receiveShadow=!0,this.group.add(g))}}clear(){for(const t of[...this.group.children])this.group.remove(t),t.geometry?.dispose();this.drawn=0,this.laid=[]}lineAt(t,s){let e;for(const{line:n,centre:o}of this.laid)for(let c=0;c<o.length-1;c++){const r=o[c],M=o[c+1],a=M.x-r.x,i=M.z-r.z,h=a*a+i*i,u=h===0?0:Math.max(0,Math.min(1,((t-r.x)*a+(s-r.z)*i)/h)),p=Math.hypot(t-(r.x+a*u),s-(r.z+i*u));p<=l.LINE_REACH_M&&(!e||p<e.distance)&&(e={line:n,distance:p})}return e?.line}mayMeet(t,s,e,n){const o=Math.hypot(s.x,s.z);if(o<1e-6)return this.lineAt(t.x,t.z)!==void 0;const c=s.x/o,r=s.z/o,M=l.LINE_REACH_M;for(const{centre:a}of this.laid)for(let i=0;i<a.length-1;i++){const h=a[i],u=a[i+1];for(const p of[0,.5,1]){const A=h.x+(u.x-h.x)*p,d=h.z+(u.z-h.z)*p,O=(A-t.x)*c+(d-t.z)*r;if(O<0)continue;const g=Math.abs((A-t.x)*r-(d-t.z)*c),_=Math.hypot(u.x-h.x,u.z-h.z)/2;if(g>M+_)continue;if(t.y+s.y*(O/o)<=e(A,d)+n)return!0}}return!1}contactHeightM(t){if(!(t.electrification!=="overhead"||t.kind==="subway"||t.kind==="funicular"))return l.catenaryOf(t).contactM}static catenaryOf(t){return t.kind==="tram"?l.CATENARY.tram:t.highSpeed?l.CATENARY.highSpeed:t.service?l.CATENARY.service:l.CATENARY.rail}dispose(){this.clear();for(const t of[this.ballastMaterial,this.earthMaterial,this.deckMaterial,this.concreteSleepers,this.woodSleepers,this.rustMaterial,this.headMaterial,this.steelMaterial,this.wireMaterial])t.dispose()}static within(t,s){if(!Number.isFinite(s))return!0;const e=s*1.1+100;return t.some((n,o)=>Math.hypot(n.x,n.z)<=e||o>0&&Math.hypot((n.x+t[o-1].x)/2,(n.z+t[o-1].z)/2)<=e)}static altitudeOffset(t,s){const e=[];for(const{line:n,path:o}of t)if(n.level===0)for(const c of o)c.altitudeM!==void 0&&e.push(s(c.x,c.z)-c.altitudeM);if(!(e.length<5))return e.sort((n,o)=>n-o),e[Math.floor(e.length/2)]}layoutOf(t,s){const e=[];for(let c=0;c<s.length-1;c++){const r=s[c],M=s[c+1],a=Math.max(1,Math.ceil(Math.hypot(M.x-r.x,M.z-r.z)/this.stepM));for(let i=0;i<a;i++){const h=i/a,u=r.altitudeM!==void 0&&M.altitudeM!==void 0?r.altitudeM+(M.altitudeM-r.altitudeM)*h:void 0;e.push({x:r.x+(M.x-r.x)*h,z:r.z+(M.z-r.z)*h,altitudeM:u})}}if(e.push(s[s.length-1]),e.length<2)return;const n=[0];for(let c=1;c<e.length;c++)n.push(n[c-1]+Math.hypot(e[c].x-e[c-1].x,e[c].z-e[c-1].z));if(n[n.length-1]<.5)return;const o=e.map((c,r)=>{const M=e[Math.max(0,r-1)],a=e[Math.min(e.length-1,r+1)],i=a.x-M.x,h=a.z-M.z,u=Math.hypot(i,h);return u<1e-6?{x:1,z:0}:{x:i/u,z:h/u}});return{kind:t.kind,...t.highSpeed?{highSpeed:!0}:{},level:t.level,centre:e,along:n,dir:o}}lay(t,s,e,n){const o=t.highSpeed?l.TRACK_SPACING_M.highSpeed:l.TRACK_SPACING_M[t.kind],c=Math.min(8,Math.max(1,t.tracks)),r=Array.from({length:c},(g,_)=>(_-(c-1)/2)*o),M=t.kind==="tram",a=M?0:l.BALLAST_HEIGHT_M,i=l.LIFT_M,h=(g,_,f)=>({x:s.centre[g].x-s.dir[g].z*_,y:s.y[g]+f,z:s.centre[g].z+s.dir[g].x*_}),u=s.centre.map((g,_)=>_);if(!M){const g=l.SLEEPER_LENGTH_M/2+l.BALLAST_SHOULDER_M+(r[r.length-1]??0),_=u.map(x=>h(x,g,a+i)),f=u.map(x=>h(x,-g,a+i));if(n.ballast.strip(_,f),t.level===0){const x=g+a*l.BALLAST_SLOPE;for(const E of[1,-1]){const z=[],v=[];let m=!1;for(const L of u){const C=h(L,E*x,i),S=e(C.x,C.z)+i,T=C.y-S;T<0&&(C.y=Math.min(S,s.y[L]+a-.05+i)),z.push(C);const I=h(L,E*(x+Math.max(0,T)*l.BANK_SLOPE),i);I.y=Math.min(e(I.x,I.z)+i,C.y),C.y-I.y>.02&&(m=!0),v.push(I)}const D=E>0?_:f;E>0?n.ballast.strip(z,D):n.ballast.strip(D,z),m&&(E>0?n.earth.strip(v,z):n.earth.strip(z,v))}}else{const x=-l.DECK_DEPTH_M,E=g+.15,z=u.map(L=>h(L,E,a+i+.1)),v=u.map(L=>h(L,-E,a+i+.1)),m=u.map(L=>h(L,E,x)),D=u.map(L=>h(L,-E,x));n.deck.strip(m,z),n.deck.strip(v,D),n.deck.strip(D,m),n.deck.strip(z,u.map(L=>h(L,g,a+i+.1))),n.deck.strip(u.map(L=>h(L,-g,a+i+.1)),v)}}const p=t.service?n.wood:n.concrete,A=t.gaugeMm/2e3+l.RAIL_HEAD_M/2,d=M?l.TRAM_RAIL_HEIGHT_M:l.RAIL_HEIGHT_M,O=a+i;for(const g of r){if(!M){const _=l.SLEEPER_LENGTH_M/2;p.strip(u.map(f=>h(f,g+_,O+.004)),u.map(f=>h(f,g-_,O+.004)),s.along)}for(const _ of[1,-1]){const f=g+_*A,x=l.RAIL_HEAD_M/2,E=u.map(v=>h(v,f+x,O+d)),z=u.map(v=>h(v,f-x,O+d));n.head.strip(E,z),n.rust.strip(u.map(v=>h(v,f+x,O)),E),n.rust.strip(z,u.map(v=>h(v,f-x,O)))}}t.electrification==="overhead"&&t.kind!=="subway"&&t.kind!=="funicular"&&this.catenary(t,s,r,O+d,h,e,n)}catenary(t,s,e,n,o,c,r){const M=l.catenaryOf(t),a=s.along[s.along.length-1],i=Math.max(1,Math.round(a/M.spanM)),h=a/i,u=Array.from({length:i},(E,z)=>(z+.5)*h),p=n+M.contactM,A=p+M.systemM,d=(M.systemM>0?A:p)+l.MAST_ABOVE_M,O=e[e.length-1],g=e.length>2,_=e.length===1?[1]:[1,-1],f=(E,z,v)=>{let m=0,D=s.along.length-2;for(;m<D;){const T=m+D+1>>1;s.along[T]<=E?m=T:D=T-1}const L=Math.min(1,Math.max(0,(E-s.along[m])/Math.max(1e-6,s.along[m+1]-s.along[m]))),C=o(m,z,v),S=o(m+1,z,v);return{x:C.x+(S.x-C.x)*L,y:C.y+(S.y-C.y)*L,z:C.z+(S.z-C.z)*L}};for(const E of u){const z=f(E,0,p);if(!(t.level===0&&c(z.x,z.z)>z.y)){for(const v of _){const m=v*(O+l.MAST_OFFSET_M),D=f(E,m,0);t.level===0&&(D.y=Math.min(D.y,c(D.x,D.z)));const L=f(E,m,d);if(r.steel.beam(D,L,l.MAST_SIDE_M),g)continue;const S=(_.length===1?e[0]:v*O)-v*.6,T=M.systemM>0?A:p+.3;r.steel.beam(f(E,m,T),f(E,S,T),l.ARM_SIDE_M),r.steel.beam(f(E,m,p-.4),f(E,S,T),l.ARM_SIDE_M)}if(g){const v=O+l.MAST_OFFSET_M;r.steel.beam(f(E,v,d-.2),f(E,-v,d-.2),l.MAST_SIDE_M*.8)}}}const x=[0,...u,a];for(const[E,z]of e.entries()){const v=m=>m===0||m===x.length-1?0:((m+E)%2===0?1:-1)*M.staggerM;for(let m=0;m<x.length-1;m++){const D=x[m],L=x[m+1];if(L-D<.1||(r.wire.beam(f(D,z+v(m),p),f(L,z+v(m+1),p),l.CONTACT_DIAMETER_M,!1),M.systemM<=0))continue;const C=4,S=T=>{const I=m===0?.5+T/2:m===x.length-2?T/2:T;return A-l.MESSENGER_SAG_M*4*I*(1-I)};for(let T=0;T<C;T++){const I=T/C,G=(T+1)/C;r.wire.beam(f(D+(L-D)*I,z,S(I)),f(D+(L-D)*G,z,S(G)),l.MESSENGER_DIAMETER_M,!1)}}}}static meshOf(t,s){if(t.indices.length===0)return;const e=new w;return e.setAttribute("position",new N(new Float32Array(t.positions),3)),t.along.length>0&&e.setAttribute("aAlong",new N(new Float32Array(t.along),1)),e.setIndex(new N(new Uint32Array(t.indices),1)),e.computeVertexNormals(),new U(e,s)}static lambert(t,s){return new k({color:new H(...t),...s?{polygonOffset:!0,polygonOffsetFactor:-2,polygonOffsetUnits:-2}:{}})}static pebbled(t){return t.onBeforeCompile=s=>{s.vertexShader=s.vertexShader.replace("#include <common>",`#include <common>
2
+ varying vec3 vBallast;`).replace("#include <begin_vertex>",`#include <begin_vertex>
3
+ vBallast = position;`),s.fragmentShader=s.fragmentShader.replace("#include <common>",`#include <common>
4
+ varying vec3 vBallast;
5
+ float ballastHash(vec2 p) {
6
+ p = fract(p * vec2(127.1, 311.7));
7
+ p += dot(p, p + 34.5);
8
+ return fract(p.x * p.y);
9
+ }
10
+ float ballastNoise(vec2 p) {
11
+ vec2 i = floor(p);
12
+ vec2 f = fract(p);
13
+ f = f * f * (3.0 - 2.0 * f);
14
+ return mix(mix(ballastHash(i), ballastHash(i + vec2(1.0, 0.0)), f.x), mix(ballastHash(i + vec2(0.0, 1.0)), ballastHash(i + vec2(1.0, 1.0)), f.x), f.y);
15
+ }`).replace("#include <map_fragment>",`#include <map_fragment>
16
+ {
17
+ float eye = length(vViewPosition);
18
+ vec2 at = vBallast.xz + vec2(0.0, vBallast.y);
19
+ float stones = (ballastHash(floor(at * 22.0)) - 0.5) * 0.9 * (1.0 - smoothstep(4.0, 18.0, eye))
20
+ + (ballastNoise(at * 6.0) - 0.5) * 0.5 * (1.0 - smoothstep(15.0, 60.0, eye))
21
+ + (ballastNoise(at * 0.7) - 0.5) * 0.35 * (1.0 - smoothstep(80.0, 300.0, eye));
22
+ diffuseColor.rgb *= 1.0 + stones;
23
+ }`)},t.customProgramCacheKey=()=>"rr0-railway-ballast",t}static sleeperMaterial(t){const s=new k({color:new H(1,1,1),polygonOffset:!0,polygonOffsetFactor:-3,polygonOffsetUnits:-3}),e=new H(...t),n=new H(...l.BALLAST_ALBEDO);return s.onBeforeCompile=o=>{o.uniforms.uSleeper={value:e},o.uniforms.uCrib={value:n},o.uniforms.uSpacing={value:l.SLEEPER_SPACING_M},o.uniforms.uDuty={value:l.SLEEPER_WIDTH_M/l.SLEEPER_SPACING_M},o.vertexShader=o.vertexShader.replace("#include <common>",`#include <common>
24
+ attribute float aAlong;
25
+ varying float vAlong;`).replace("#include <begin_vertex>",`#include <begin_vertex>
26
+ vAlong = aAlong;`),o.fragmentShader=o.fragmentShader.replace("#include <common>",`#include <common>
27
+ varying float vAlong;
28
+ uniform vec3 uSleeper;
29
+ uniform vec3 uCrib;
30
+ uniform float uSpacing;
31
+ uniform float uDuty;
32
+ // How much of [0, x] periods is sleeper: the integral of a pulse of width uDuty at the start of each period.
33
+ float sleeperIntegral(float x) {
34
+ return floor(x) * uDuty + min(fract(x), uDuty);
35
+ }`).replace("#include <map_fragment>",`#include <map_fragment>
36
+ {
37
+ float u = vAlong / uSpacing;
38
+ float w = max(fwidth(u), 1e-4);
39
+ float cover = (sleeperIntegral(u + 0.5 * w) - sleeperIntegral(u - 0.5 * w)) / w;
40
+ diffuseColor.rgb *= mix(uCrib, uSleeper, clamp(cover, 0.0, 1.0));
41
+ }`)},s.customProgramCacheKey=()=>"rr0-railway-sleepers",s}}export{l as RailwaySystem};
@@ -0,0 +1 @@
1
+ const e={heading:"Sensitivity:",hint:"What is compared: each direction or size the recording traces to the witness, with what it rests on, against what the body the reading places would look like from where the witness stood, at the same instant. A gap is a contradiction only beyond what a witness's estimate of that kind may be off. The margins say how far each value the reading supposed can be moved before it reproduces less: a narrow margin is a fine-tuning, a wide one a robust reading. A margin is sufficient when it covers at least half of the value's uncertainty each way, as the witness error laws give it (a factor of 10 for a supposed distance): not all of it, since agreement is already judged with that uncertainty.",nothingToConfront:"nothing to set against the account: no body of the reading says which phenomenon it is",noneSaid:"nothing to set against the account: it traces no direction and no size to the witness",noneAgrees:"reproduces none of the witness's {compared} indications",lightSizedContested:"its lights sized as Tycho saw the stars, carried past them: a contested law",agreementOne:"reproduces 1 of the witness's {compared} indications",agreement:"reproduces {agreed} of the witness's {compared} indications",allAgree:"reproduces all the witness's {compared} indications",tooFew:"too few to measure how robust it is",noFreeValue:"nothing supposed: no value to move",tightest:"tightest: {knob}, from {lower} to {upper}",margin:"{knob}: holds from {lower} to {upper}; no law says how uncertain it is",marginJudged:"{knob}: holds from {lower} to {upper}, for an uncertainty of {refLower} to {refUpper} ({coverage} % covered)",sufficient:"sufficient margin",fineTuned:"fine-tuned: {knob} covers only {coverage} % of its uncertainty",atLeast:"{value} and beyond",better:"Another setting reproduces more: {knob} {amount}, {agreed} of {compared}",knobs:{azimuth:"direction",altitude:"height",distance:"distance",size:"size",time:"time"},comparison:{heading:"Readings compared ({n})",hint:"One row per reading of the case, set against the account it reads, as each reading's own sensitivity says it: how many of the witness's indications it reproduces, the median gap between what the witness said and what the reading shows (directions only), whether its margins are sufficient, and how many values it supposed. The more values a reading supposes, the easier a likeness is to make.",reading:"Reading",witness:"Reads",reproduced:"Reproduced",gap:"Median gap",robustness:"Robustness",supposed:"Supposed values",sortBy:"Sort by “{column}”; again to reverse",loading:"…",nothing:"nothing to compare",sufficient:"sufficient",fineTuned:"fine-tuned ({knob})",tooFew:"too little reproduced",unjudged:"no law to judge it"}};export{e as readingSensitivityMessages_en};
@@ -0,0 +1 @@
1
+ const e={heading:"Sensibilidad:",hint:"Lo que se compara: cada dirección o tamaño que la grabación atribuye al testigo diciendo en qué se basa, frente a lo que daría, visto desde su posición y en el mismo instante, el cuerpo que coloca la lectura. Una diferencia solo es contradicción más allá de la incertidumbre de un testigo para ese tipo de estimación. Los márgenes dicen cuánto se puede desplazar cada valor supuesto por la lectura antes de que reproduzca menos: un margen estrecho indica un ajuste fino, uno amplio una lectura robusta. Un margen es suficiente si cubre al menos la mitad de la incertidumbre del valor a cada lado, según las leyes de error de los testigos (un factor 10 para una distancia supuesta): no toda, pues el acuerdo ya se juzga con esa incertidumbre.",nothingToConfront:"nada que confrontar con el relato: ningún cuerpo de la lectura dice qué fenómeno es",noneSaid:"nada que confrontar: el relato no atribuye al testigo, diciendo en qué se basan, ninguna dirección ni tamaño",noneAgrees:"no reproduce ninguna de las {compared} indicaciones del testigo",lightSizedContested:"sus luces medidas como Tycho veía las estrellas, prolongado más allá: una ley discutida",agreementOne:"reproduce 1 de las {compared} indicaciones del testigo",agreement:"reproduce {agreed} de las {compared} indicaciones del testigo",allAgree:"reproduce las {compared} indicaciones del testigo",tooFew:"demasiado pocas para medir su robustez",noFreeValue:"nada supuesto: ningún valor que desplazar",tightest:"lo más ajustado: {knob}, de {lower} a {upper}",margin:"{knob}: se sostiene de {lower} a {upper}; ninguna ley dice su incertidumbre",marginJudged:"{knob}: se sostiene de {lower} a {upper}, para una incertidumbre de {refLower} a {refUpper} ({coverage} % cubierto)",sufficient:"margen suficiente",fineTuned:"ajuste fino: {knob} solo cubre el {coverage} % de su incertidumbre",atLeast:"{value} y más allá",better:"Otro ajuste reproduce más: {knob} {amount}, {agreed} de {compared}",knobs:{azimuth:"dirección",altitude:"altura",distance:"distancia",size:"tamaño",time:"instante"},comparison:{heading:"Lecturas comparadas ({n})",hint:"Una fila por lectura del caso, confrontada con el relato que lee, como lo dice la sensibilidad de cada lectura: cuántas indicaciones del testigo reproduce, la diferencia mediana entre lo que dijo el testigo y lo que muestra la lectura (solo direcciones), si sus márgenes son suficientes y cuántos valores supuso. Cuantos más valores supone una lectura, más fácil es obtener un parecido.",reading:"Lectura",witness:"Lee",reproduced:"Reproduce",gap:"Diferencia mediana",robustness:"Robustez",supposed:"Valores supuestos",sortBy:"Ordenar por «{column}»; otra vez para invertir",loading:"…",nothing:"nada que confrontar",sufficient:"suficiente",fineTuned:"ajuste fino ({knob})",tooFew:"demasiado poco reproducido",unjudged:"ninguna ley para juzgarla"}};export{e as readingSensitivityMessages_es};
@@ -0,0 +1 @@
1
+ const e={heading:"Sensibilité :",hint:"Ce qui est comparé : chaque direction ou taille que l'enregistrement attribue au témoin en disant sur quoi elle repose, et ce que donnerait, vu de sa position et au même instant, le corps que place la lecture. Un écart n'est une contradiction qu'au-delà de l'incertitude d'un témoin pour ce type d'estimation. Les marges disent de combien on peut décaler chaque valeur supposée par la lecture avant qu'elle reproduise moins : une marge étroite signale un réglage fin, une marge large une lecture robuste. Une marge est suffisante si elle couvre au moins la moitié de l'incertitude de la valeur de chaque côté, d'après les lois d'erreur des témoins (un facteur 10 pour une distance supposée) : pas la totalité, puisque l'accord est déjà jugé avec cette incertitude.",nothingToConfront:"rien à confronter au compte rendu : aucun corps de la lecture ne dit quel phénomène il est",noneSaid:"rien à confronter : le compte rendu n'attribue au témoin, en disant sur quoi elles reposent, aucune direction ni taille",noneAgrees:"ne reproduit aucune des {compared} indications du témoin",lightSizedContested:"ses feux mesurés comme Tycho voyait les étoiles, prolongé au-delà : une loi contestée",agreementOne:"reproduit 1 des {compared} indications du témoin",agreement:"reproduit {agreed} des {compared} indications du témoin",allAgree:"reproduit les {compared} indications du témoin",tooFew:"trop peu pour mesurer sa robustesse",noFreeValue:"rien de supposé : aucune valeur à décaler",tightest:"le plus serré : {knob}, de {lower} à {upper}",margin:"{knob} : tient de {lower} à {upper} ; aucune loi ne dit son incertitude",marginJudged:"{knob} : tient de {lower} à {upper}, pour une incertitude de {refLower} à {refUpper} ({coverage} % couverts)",sufficient:"marge suffisante",fineTuned:"réglage fin : {knob} ne couvre que {coverage} % de son incertitude",atLeast:"{value} et au-delà",better:"Un autre réglage en reproduit davantage : {knob} {amount}, {agreed} sur {compared}",knobs:{azimuth:"direction",altitude:"hauteur",distance:"distance",size:"taille",time:"instant"},comparison:{heading:"Lectures comparées ({n})",hint:"Une ligne par lecture du dossier, confrontée au compte rendu qu'elle lit, comme le dit la sensibilité de chaque lecture : combien des indications du témoin elle reproduit, l'écart médian entre ce qu'a dit le témoin et ce que montre la lecture (directions seulement), si ses marges sont suffisantes, et combien de valeurs elle a supposées. Plus une lecture suppose de valeurs, plus une ressemblance est facile à obtenir.",reading:"Lecture",witness:"Lit",reproduced:"Reproduit",gap:"Écart médian",robustness:"Robustesse",supposed:"Valeurs supposées",sortBy:"Trier par « {column} » ; à nouveau pour inverser",loading:"…",nothing:"rien à confronter",sufficient:"suffisante",fineTuned:"réglage fin ({knob})",tooFew:"trop peu reproduit",unjudged:"aucune loi pour en juger"}};export{e as readingSensitivityMessages_fr};
@@ -0,0 +1 @@
1
+ const e={heading:"Sensibilità:",hint:"Ciò che si confronta: ogni direzione o dimensione che la registrazione attribuisce al testimone dicendo su cosa si basa, con ciò che darebbe, visto dalla sua posizione e nello stesso istante, il corpo che la lettura colloca. Uno scarto è una contraddizione solo oltre l'incertezza di un testimone per quel tipo di stima. I margini dicono di quanto si può spostare ciascun valore supposto dalla lettura prima che riproduca meno: un margine stretto segnala una regolazione fine, uno ampio una lettura robusta. Un margine è sufficiente se copre almeno metà dell'incertezza del valore da ciascun lato, secondo le leggi di errore dei testimoni (un fattore 10 per una distanza supposta): non tutta, poiché l'accordo è già giudicato con quell'incertezza.",nothingToConfront:"niente da confrontare con il resoconto: nessun corpo della lettura dice quale fenomeno sia",noneSaid:"niente da confrontare: il resoconto non attribuisce al testimone, dicendo su cosa si basano, nessuna direzione né dimensione",noneAgrees:"non riproduce nessuna delle {compared} indicazioni del testimone",lightSizedContested:"le sue luci misurate come Tycho vedeva le stelle, prolungato oltre: una legge contestata",agreementOne:"riproduce 1 delle {compared} indicazioni del testimone",agreement:"riproduce {agreed} delle {compared} indicazioni del testimone",allAgree:"riproduce tutte le {compared} indicazioni del testimone",tooFew:"troppo poche per misurarne la robustezza",noFreeValue:"niente di supposto: nessun valore da spostare",tightest:"il più stretto: {knob}, da {lower} a {upper}",margin:"{knob}: regge da {lower} a {upper}; nessuna legge ne dice l'incertezza",marginJudged:"{knob}: regge da {lower} a {upper}, per un'incertezza da {refLower} a {refUpper} ({coverage} % coperto)",sufficient:"margine sufficiente",fineTuned:"regolazione fine: {knob} copre solo il {coverage} % della sua incertezza",atLeast:"{value} e oltre",better:"Un'altra regolazione ne riproduce di più: {knob} {amount}, {agreed} su {compared}",knobs:{azimuth:"direzione",altitude:"altezza",distance:"distanza",size:"dimensione",time:"istante"},comparison:{heading:"Letture a confronto ({n})",hint:"Una riga per lettura del caso, confrontata con il resoconto che legge, come dice la sensibilità di ciascuna lettura: quante indicazioni del testimone riproduce, lo scarto mediano tra ciò che ha detto il testimone e ciò che mostra la lettura (solo direzioni), se i suoi margini sono sufficienti e quanti valori ha supposto. Più valori una lettura suppone, più è facile ottenere una somiglianza.",reading:"Lettura",witness:"Legge",reproduced:"Riproduce",gap:"Scarto mediano",robustness:"Robustezza",supposed:"Valori supposti",sortBy:"Ordina per «{column}»; di nuovo per invertire",loading:"…",nothing:"niente da confrontare",sufficient:"sufficiente",fineTuned:"regolazione fine ({knob})",tooFew:"troppo poco riprodotto",unjudged:"nessuna legge per giudicarla"}};export{e as readingSensitivityMessages_it};
@@ -1,4 +1,4 @@
1
- import{e as S,_ as x,R as T,bI as b,bJ as w,bK as O,t as F,bL as N,aJ as _,aO as A,q as L,bM as P,bw as K}from"./rr0-sighting.mjs";import{S as H,P as E,a as k,E as G}from"./ParameterForm-CkZQ1FlH.js";import{T as U}from"./TimelineTracks-CvGxdpGb.js";const z=S.catalog({en:()=>x(()=>import("./ReentryParameterTexts_en-5BOfwCsS.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_en),fr:()=>x(()=>import("./ReentryParameterTexts_fr-BgUJROXF.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_fr),es:()=>x(()=>import("./ReentryParameterTexts_es-ze1-U4jB.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_es),it:()=>x(()=>import("./ReentryParameterTexts_it-MTb9Vuq0.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_it)});class g{static NAME="name";static OBJECT="object";static LIGHT="light";static WHEN="when";static SEEN="seenByTheWitness";static EARTH_KM=6371;static placeSeen(t,e,n,i){const s=Math.PI/180,o=g.EARTH_KM,r=n*s,a=-o*Math.sin(r)+Math.sqrt((o*Math.sin(r))**2+(o+i)**2-o**2),l=Math.atan2(a*Math.cos(r),o+a*Math.sin(r)),c=t.lat*s,h=e*s,d=Math.asin(Math.sin(c)*Math.cos(l)+Math.cos(c)*Math.sin(l)*Math.cos(h)),m=t.lng*s+Math.atan2(Math.sin(h)*Math.sin(l)*Math.cos(c),Math.cos(l)-Math.sin(c)*Math.sin(d));return{lat:d/s,lng:(m/s+540)%360-180}}static trackFromSeen(t,e){const n=t.seen,{fromAzimuthDeg:i,fromAltitudeDeg:s,toAzimuthDeg:o,toAltitudeDeg:r,durationS:a}=n??{};if(i===void 0||s===void 0||o===void 0||r===void 0||!a)return;const l=t.track[0],c=t.track[t.track.length-1],h=l?.t??0,d=l?.altitudeKm??100,m=c?.altitudeKm??d;return[{t:h,...g.placeSeen(e,i,s,d),altitudeKm:d},{t:h+Math.round(a*1e3),...g.placeSeen(e,o,r,m),altitudeKm:m}]}static placeAt(t,e){const n=T.leadAt(t,e);if(n)return{t:e,lat:n.lat,lng:n.lng,altitudeKm:n.heightM/1e3};const i=t.track,[s,o]=e<(i[0]?.t??0)?[i[0],i[1]]:[i[i.length-2],i[i.length-1]];if(!s||!o||o.t===s.t){const a=s??o??{lat:0,lng:0,altitudeKm:80};return{t:e,lat:a.lat,lng:a.lng,altitudeKm:a.altitudeKm}}const r=(e-s.t)/(o.t-s.t);return{t:e,lat:s.lat+(o.lat-s.lat)*r,lng:s.lng+(o.lng-s.lng)*r,altitudeKm:Math.max(0,s.altitudeKm+(o.altitudeKm-s.altitudeKm)*r)}}static curvePointAt(t,e){return{t:e,absoluteMagnitude:Math.round(T.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 b.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=b.all().map(i=>({value:i.key,label:b.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:T.DEFAULT_COLOR,label:"colour"},{type:"number",key:"trainS",min:0,max:600,step:.1,unit:"s",group:g.LIGHT,effective:()=>T.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 $=S.catalog({en:()=>x(()=>import("./ReentryEditorMessages_en-BmTZMr-m.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_en),fr:()=>x(()=>import("./ReentryEditorMessages_fr-DHbcY0tN.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_fr),es:()=>x(()=>import("./ReentryEditorMessages_es-edid__Jo.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_es),it:()=>x(()=>import("./ReentryEditorMessages_it-CIzkIU4G.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_it)}),C="https://ufoathome.org/reentries/index.json";class M{static MINUTE_SLACK_MS=60*6e4;static WINDOW_SLACK_MS=60*6e4;static VISIBLE_KM=1500;static VISIBLE_DEG=M.VISIBLE_KM/111.2;static EARTH_RADIUS_KM=6371;fetchImpl;indexUrls;index;years=new Map;constructor(t={}){this.fetchImpl=t.fetchImpl??fetch.bind(globalThis),this.indexUrls=t.indexUrls??M.defaultIndexUrls()}static defaultIndexUrls(){const t=[];return typeof location<"u"&&/^https?:$/.test(location.protocol)&&t.push(new URL("/reentries/index.json",location.href).href),t.includes(C)||t.push(C),t}async credit(){return(await this.loadIndex())?.index.credit}async candidates(t,e,n){const i=await this.loadIndex();if(!i)return;const s=new Set;for(const r of[t-M.DAY_MS,e+M.DAY_MS])s.add(String(new Date(r).getUTCFullYear()));const o=(await Promise.all([...s].filter(r=>i.index.years.includes(r)).map(r=>this.yearOf(r,i.base)))).flat();return M.match(o,t,e,n)}static DAY_MS=864e5;static match(t,e,n,i){const s=[];for(const r of t){if(r.inclinationDeg!==void 0&&Math.abs(i.lat)>r.inclinationDeg+M.VISIBLE_DEG)continue;const a=Date.parse(r.precision==="day"?`${r.time}T00:00Z`:r.time);if(Number.isFinite(a))if(r.precision==="minute"){const l=a<e?e-a:a>n?a-n:0;if(l>M.MINUTE_SLACK_MS)continue;let c;if(r.seenLat!==void 0&&r.seenLng!==void 0&&(c=M.distanceKm(i.lat,i.lng,r.seenLat,r.seenLng),c>M.VISIBLE_KM))continue;s.push({record:r,timeMs:a,offsetMinutes:Math.round(l/6e4),seenKm:c})}else{const l=r.precision==="day"?M.DAY_MS/2:(r.uncertaintyHours??0)*36e5,c=r.precision==="day"?a+l:a,h=M.WINDOW_SLACK_MS;if(c+l+h<e||c-l-h>n)continue;s.push({record:r,timeMs:c})}}const o={minute:0,hours:1,day:2};return s.sort((r,a)=>o[r.record.precision]-o[a.record.precision]||(r.record.uncertaintyHours??0)-(a.record.uncertaintyHours??0)||r.timeMs-a.timeMs)}static distanceKm(t,e,n,i){const s=Math.PI/180,o=Math.sin(t*s)*Math.sin(n*s)+Math.cos(t*s)*Math.cos(n*s)*Math.cos((i-e)*s);return M.EARTH_RADIUS_KM*Math.acos(Math.max(-1,Math.min(1,o)))}loadIndex(){return this.index??=(async()=>{for(const t of this.indexUrls)try{const e=await this.fetchImpl(t);if(e.ok)return{index:await e.json(),base:t}}catch{}})(),this.index}yearOf(t,e){let n=this.years.get(t);return n||(n=this.fetchImpl(new URL(`${t}.json`,e).href).then(i=>i.ok?i.json():[]).catch(()=>[]),this.years.set(t,n)),n}}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 w,reentries:new M};static viewOf(t,e,n){const i=t.track;if(i.length<2)return;const s=i[0],o=i[i.length-1],r=t.seen,a=m=>T.seenFrom(n,{lat:m.lat,lng:m.lng,heightM:m.altitudeKm*1e3}),l=r?.fromAzimuthDeg!==void 0&&r.fromAltitudeDeg!==void 0?{azimuthDeg:r.fromAzimuthDeg,altitudeDeg:r.fromAltitudeDeg}:a(s),c=r?.toAzimuthDeg!==void 0&&r.toAltitudeDeg!==void 0?{azimuthDeg:r.toAzimuthDeg,altitudeDeg:r.toAltitudeDeg}:a(o),h=r?.durationS??(o.t-s.t)/1e3,d=Math.min(...t.fragments.flatMap(m=>[m.absoluteMagnitude,...(m.lightCurve??[]).map(f=>f.absoluteMagnitude)]));return{startMs:e.getTime()+s.t,durationS:h,from:{azimuthDeg:l.azimuthDeg,altitudeDeg:l.altitudeDeg},to:{azimuthDeg:c.azimuthDeg,altitudeDeg:c.altitudeDeg},peakAbsoluteMagnitude:d}}static azimuthOff(t,e){const n=Math.abs(((t-e)%360+360)%360);return Math.min(n,360-n)}static elevationOff(t,e){const n=Math.max(0,t*u.ELEVATION_LOW_FACTOR)-u.ELEVATION_SLACK_DEG,i=t+u.ELEVATION_SLACK_DEG;return e<n?n-e:e>i?e-i:0}static matchFireball(t,e,n){const i=e.t<t.startMs?t.startMs-e.t:0,s=e.t>t.startMs?e.t-t.startMs:0;if(Math.max(i,s)>u.TIME_MARGIN_MIN*6e4)return;const o=T.seenFrom(n,{lat:e.from[0],lng:e.from[1],heightM:e.from[2]*1e3}),r=T.seenFrom(n,{lat:e.to[0],lng:e.to[1],heightM:e.to[2]*1e3});if(o.altitudeDeg<0&&r.altitudeDeg<0)return;const a=Math.max(u.azimuthOff(t.from.azimuthDeg,o.azimuthDeg),u.azimuthOff(t.to.azimuthDeg,r.azimuthDeg));if(a>u.HEADING_MARGIN_DEG||Math.max(u.elevationOff(t.from.altitudeDeg,o.altitudeDeg),u.elevationOff(t.to.altitudeDeg,r.altitudeDeg))>0)return;const c=u.DURATION_FACTOR;if(!(e.durationS>0&&(t.durationS<e.durationS/c||t.durationS>e.durationS*c)))return{record:e,offsetMinutes:Math.round((i+s)/6e4),headingOffDeg:Math.round(a),altitudeOffDeg:Math.round(Math.abs(r.altitudeDeg-t.to.altitudeDeg))}}static async check(t,e,n,i=u.shared){if(!e||!n)return[{verdict:"unchecked",source:"none",reason:"noDateOrPlace"}];const s=u.viewOf(t,e,n);if(!s)return[{verdict:"unchecked",source:"none",reason:"noDateOrPlace"}];const o=b.of(t.type)?.nature,r=[];if(o!=="artificial"&&r.push(...await u.checkFireballs(s,n,o==="natural",i)),o!=="artificial"){const a=u.showerOf(s,n);a&&(a.verdict==="compatible"||o==="natural")&&r.push(a)}return o!=="natural"&&r.push(...await u.checkCatalogue(t,s,n,o==="artificial",i)),o===void 0&&!r.some(a=>a.verdict==="known"||a.verdict==="possible"||a.verdict==="compatible")?[...r.filter(a=>a.verdict==="unchecked"),{verdict:"uninformative",source:"none",reason:"typeUnknown"}]:r}static vectorOf(t,e){const n=Math.PI/180,i=e*n,s=t*n;return[Math.cos(i)*Math.sin(s),Math.cos(i)*Math.cos(s),Math.sin(i)]}static angleDeg(t,e){return Math.acos(Math.max(-1,Math.min(1,t[0]*e[0]+t[1]*e[1]+t[2]*e[2])))*180/Math.PI}static showerOf(t,e){const n=u.vectorOf(t.from.azimuthDeg,t.from.altitudeDeg),i=u.vectorOf(t.to.azimuthDeg,t.to.altitudeDeg),s=u.angleDeg(n,i);if(s<1)return;const o=[n[1]*i[2]-n[2]*i[1],n[2]*i[0]-n[0]*i[2],n[0]*i[1]-n[1]*i[0]],r=Math.hypot(o[0],o[1],o[2]),a=new Date(t.startMs),l=O.activeAt(a);let c;for(const{shower:h,zhr:d}of l){const m=O.radiantPosition(h,a,{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])/r)))*180/Math.PI,y=u.angleDeg(f,n),D=u.angleDeg(f,i);y>=D||D<=s||p<=u.SHOWER_MARGIN_DEG&&(!c||p<c.offDeg)&&(c={showerId:h.id,offDeg:Math.round(p),zhr:Math.round(d)})}return c?{verdict:"compatible",source:"showers",...c}:{verdict:"sporadic",source:"showers",active:l.length}}static async checkFireballs(t,e,n,i){const s=u.TIME_MARGIN_MIN*6e4;if(!w.mayCover(t.startMs))return n?[{verdict:"uninformative",source:"gmn",reason:"beforeArchive"}]:[];const o=await i.fireballs.between(t.startMs-s,t.startMs+s+t.durationS*1e3);if(o===void 0)return n?[{verdict:"unchecked",source:"gmn",reason:"unreachable"}]:[];const r=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(r.length>0)return[{verdict:"known",source:"gmn",match:r[0]}];if(!n)return[];if(t.peakAbsoluteMagnitude>u.ARCHIVED_MAGNITUDE)return[{verdict:"uninformative",source:"gmn",reason:"faint"}];if(F("Sun",new Date(t.startMs),{lat:e.lat,lng:e.lng,elevationM:0}).altitudeDeg>u.NIGHT_SUN_DEG)return[{verdict:"uninformative",source:"gmn",reason:"daylight"}];const a=new Date(t.startMs),l=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),1),c=Date.UTC(a.getUTCFullYear(),a.getUTCMonth()+1,1)-1,d=(await i.fireballs.between(l,c)??[]).filter(m=>M.distanceKm(e.lat,e.lng,m.from[0],m.from[1])<=u.WATCHED_KM).length;return d<u.WATCHED_COUNT?[{verdict:"uninformative",source:"gmn",reason:"unwatched"}]:[{verdict:"expectedAbsent",source:"gmn",absoluteMagnitude:t.peakAbsoluteMagnitude,watchedCount:d}]}static async checkCatalogue(t,e,n,i,s){if(e.startMs<u.FIRST_ORBIT_MS)return i?[{verdict:"impossible",source:"catalogue"}]:[];const o=u.TIME_MARGIN_MIN*6e4,r=await s.reentries.candidates(e.startMs-o,e.startMs+o+e.durationS*1e3,n);if(r===void 0)return i?[{verdict:"unchecked",source:"catalogue",reason:"unreachable"}]:[];const a=t.object,l=a&&r.find(h=>a.cosparId&&h.record.cosparId===a.cosparId||a.norad!==void 0&&h.record.norad===a.norad);if(l)return[{verdict:"known",source:"catalogue",candidate:l,by:"object"}];const c=r.find(h=>h.record.precision==="minute"&&h.seenKm!==void 0&&(h.offsetMinutes??0)<=u.TIME_MARGIN_MIN);return c?[{verdict:"known",source:"catalogue",candidate:c,by:"seen"}]:r.length>0?r.slice(0,3).map(h=>({verdict:"possible",source:"catalogue",candidate:h})):i?[{verdict:"expectedAbsent",source:"catalogue"}]:[]}}class I{constructor(t,e,n){this.container=t,this.host=e,H.attach(t,"reentry-editor-part",I.STYLE),this.language=n,this.ready=this.setLanguage(n)}messages;ready;parameterTexts;languageToken=0;currentId;form;list;timeline;placeForm;placeIndex=0;row="path";fragmentForm;fragmentIndex=0;curveForm;curveIndex=0;language;shown=[];static STYLE='.reentry-editor-part { flex-basis: 100%; min-width: 0; } .reentry-editor-part #reentry-timeline { flex-basis: 100%; min-width: 0; padding: 4px 0; } .reentry-editor-part #reentry-path > .icon-btn, .reentry-editor-part #reentry-curve > .icon-btn { align-self: flex-end; } .reentry-editor-part #reentry-list, .reentry-editor-part #reentry-places, .reentry-editor-part #reentry-fragment-list, .reentry-editor-part #reentry-curve-list { flex-basis: 100%; min-width: 0; } .reentry-editor-part .launch-editor, .reentry-editor-part .launch-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; } .reentry-editor-part .launch-fields { flex-basis: 100%; min-width: 0; } .reentry-editor-part [hidden] { display: none !important; } .reentry-editor-part .reentry-evidence { flex-basis: 100%; } .reentry-editor-part .evidence-known, .reentry-editor-part .evidence-impossible, .reentry-editor-part .evidence-expectedAbsent { font-weight: 600; } .reentry-editor-part select { min-width: 0; width: 100%; } .reentry-editor-part .launch-intro { flex-basis: 100%; margin: 0; } .reentry-editor-part .launch-track { flex-basis: 100%; margin: 0; } .reentry-editor-part .launch-parameters { flex-basis: 100%; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; } .reentry-editor-part .parameter-group { flex: 1 1 14em; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; align-content: flex-start; } .reentry-editor-part input, .reentry-editor-part select { max-width: 100%; box-sizing: border-box; } .reentry-editor-part input[type="text"] { width: 12em; } .reentry-editor-part input[data-key="title"] { width: 18em; } .reentry-editor-part label { min-width: 0; max-width: 100%; } .reentry-editor-part input.parameter-derived::placeholder { opacity: .65; } .reentry-editor-part .launch-path { flex: 1 1 100%; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; }';async setLanguage(t){const e=++this.languageToken;this.language=t;const[n,i,,s]=await Promise.all([$.load(t),z.load(t),b.load(t),N(t).catch(()=>{})]);e===this.languageToken&&(this.sceneNames=s,this.messages=n,this.parameterTexts=i,this.render(),this.sync())}sync(){if(!this.messages)return;const t=this.reentries;this.shown=[...t],t.some(n=>n.id===this.currentId)||(this.currentId=t[0]?.id),this.list?.setItems(t.map(n=>({id:n.id,label:this.labelOf(n)})),this.currentId),this.list?.setKinds(b.all().map(n=>({value:n.key,label:b.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 E(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(r=>r===void 0||r==="")&&delete i.object;const s=this.origin(),o=s&&g.trackFromSeen(i,s);o&&(i.track=o)})),()=>this.written()))}refresh(){if(!this.messages)return;this.syncAddState();const t=this.reentries;if(t.length===this.shown.length&&t.every((e,n)=>e.id===this.shown[n].id)){this.syncTimeline();return}this.sync()}setTime(t){this.messages&&this.timeline?.setTime(t)}syncAddState(){const t=this.origin()!==void 0;this.list?.setAddState(t,t?void 0:this.messages.addNowhere)}get current(){return this.reentries.find(t=>t.id===this.currentId)}show(t){this.messages&&(this.currentId=t,this.row="path",this.placeIndex=0,this.fragmentIndex=0,this.curveIndex=0,this.sync())}resolved(t){return _.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{i as S,_ as x,R as T,bM as b,bN as w,bO as O,w as F,bP as N,aM as _,aR as A,v as L,bQ as P,bA as K}from"./rr0-sighting.mjs";import{S as H,P as E,a as k,E as G}from"./ParameterForm-B8nX9qW-.js";import{T as U}from"./TimelineTracks-CYIJdyPF.js";const z=S.catalog({en:()=>x(()=>import("./ReentryParameterTexts_en-5BOfwCsS.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_en),fr:()=>x(()=>import("./ReentryParameterTexts_fr-BgUJROXF.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_fr),es:()=>x(()=>import("./ReentryParameterTexts_es-ze1-U4jB.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_es),it:()=>x(()=>import("./ReentryParameterTexts_it-MTb9Vuq0.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_it)});class g{static NAME="name";static OBJECT="object";static LIGHT="light";static WHEN="when";static SEEN="seenByTheWitness";static EARTH_KM=6371;static placeSeen(t,e,n,i){const s=Math.PI/180,o=g.EARTH_KM,r=n*s,a=-o*Math.sin(r)+Math.sqrt((o*Math.sin(r))**2+(o+i)**2-o**2),l=Math.atan2(a*Math.cos(r),o+a*Math.sin(r)),c=t.lat*s,h=e*s,d=Math.asin(Math.sin(c)*Math.cos(l)+Math.cos(c)*Math.sin(l)*Math.cos(h)),m=t.lng*s+Math.atan2(Math.sin(h)*Math.sin(l)*Math.cos(c),Math.cos(l)-Math.sin(c)*Math.sin(d));return{lat:d/s,lng:(m/s+540)%360-180}}static trackFromSeen(t,e){const n=t.seen,{fromAzimuthDeg:i,fromAltitudeDeg:s,toAzimuthDeg:o,toAltitudeDeg:r,durationS:a}=n??{};if(i===void 0||s===void 0||o===void 0||r===void 0||!a)return;const l=t.track[0],c=t.track[t.track.length-1],h=l?.t??0,d=l?.altitudeKm??100,m=c?.altitudeKm??d;return[{t:h,...g.placeSeen(e,i,s,d),altitudeKm:d},{t:h+Math.round(a*1e3),...g.placeSeen(e,o,r,m),altitudeKm:m}]}static placeAt(t,e){const n=T.leadAt(t,e);if(n)return{t:e,lat:n.lat,lng:n.lng,altitudeKm:n.heightM/1e3};const i=t.track,[s,o]=e<(i[0]?.t??0)?[i[0],i[1]]:[i[i.length-2],i[i.length-1]];if(!s||!o||o.t===s.t){const a=s??o??{lat:0,lng:0,altitudeKm:80};return{t:e,lat:a.lat,lng:a.lng,altitudeKm:a.altitudeKm}}const r=(e-s.t)/(o.t-s.t);return{t:e,lat:s.lat+(o.lat-s.lat)*r,lng:s.lng+(o.lng-s.lng)*r,altitudeKm:Math.max(0,s.altitudeKm+(o.altitudeKm-s.altitudeKm)*r)}}static curvePointAt(t,e){return{t:e,absoluteMagnitude:Math.round(T.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 b.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=b.all().map(i=>({value:i.key,label:b.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:T.DEFAULT_COLOR,label:"colour"},{type:"number",key:"trainS",min:0,max:600,step:.1,unit:"s",group:g.LIGHT,effective:()=>T.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 $=S.catalog({en:()=>x(()=>import("./ReentryEditorMessages_en-BmTZMr-m.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_en),fr:()=>x(()=>import("./ReentryEditorMessages_fr-DHbcY0tN.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_fr),es:()=>x(()=>import("./ReentryEditorMessages_es-edid__Jo.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_es),it:()=>x(()=>import("./ReentryEditorMessages_it-CIzkIU4G.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_it)}),C="https://ufoathome.org/reentries/index.json";class M{static MINUTE_SLACK_MS=60*6e4;static WINDOW_SLACK_MS=60*6e4;static VISIBLE_KM=1500;static VISIBLE_DEG=M.VISIBLE_KM/111.2;static EARTH_RADIUS_KM=6371;fetchImpl;indexUrls;index;years=new Map;constructor(t={}){this.fetchImpl=t.fetchImpl??fetch.bind(globalThis),this.indexUrls=t.indexUrls??M.defaultIndexUrls()}static defaultIndexUrls(){const t=[];return typeof location<"u"&&/^https?:$/.test(location.protocol)&&t.push(new URL("/reentries/index.json",location.href).href),t.includes(C)||t.push(C),t}async credit(){return(await this.loadIndex())?.index.credit}async candidates(t,e,n){const i=await this.loadIndex();if(!i)return;const s=new Set;for(const r of[t-M.DAY_MS,e+M.DAY_MS])s.add(String(new Date(r).getUTCFullYear()));const o=(await Promise.all([...s].filter(r=>i.index.years.includes(r)).map(r=>this.yearOf(r,i.base)))).flat();return M.match(o,t,e,n)}static DAY_MS=864e5;static match(t,e,n,i){const s=[];for(const r of t){if(r.inclinationDeg!==void 0&&Math.abs(i.lat)>r.inclinationDeg+M.VISIBLE_DEG)continue;const a=Date.parse(r.precision==="day"?`${r.time}T00:00Z`:r.time);if(Number.isFinite(a))if(r.precision==="minute"){const l=a<e?e-a:a>n?a-n:0;if(l>M.MINUTE_SLACK_MS)continue;let c;if(r.seenLat!==void 0&&r.seenLng!==void 0&&(c=M.distanceKm(i.lat,i.lng,r.seenLat,r.seenLng),c>M.VISIBLE_KM))continue;s.push({record:r,timeMs:a,offsetMinutes:Math.round(l/6e4),seenKm:c})}else{const l=r.precision==="day"?M.DAY_MS/2:(r.uncertaintyHours??0)*36e5,c=r.precision==="day"?a+l:a,h=M.WINDOW_SLACK_MS;if(c+l+h<e||c-l-h>n)continue;s.push({record:r,timeMs:c})}}const o={minute:0,hours:1,day:2};return s.sort((r,a)=>o[r.record.precision]-o[a.record.precision]||(r.record.uncertaintyHours??0)-(a.record.uncertaintyHours??0)||r.timeMs-a.timeMs)}static distanceKm(t,e,n,i){const s=Math.PI/180,o=Math.sin(t*s)*Math.sin(n*s)+Math.cos(t*s)*Math.cos(n*s)*Math.cos((i-e)*s);return M.EARTH_RADIUS_KM*Math.acos(Math.max(-1,Math.min(1,o)))}loadIndex(){return this.index??=(async()=>{for(const t of this.indexUrls)try{const e=await this.fetchImpl(t);if(e.ok)return{index:await e.json(),base:t}}catch{}})(),this.index}yearOf(t,e){let n=this.years.get(t);return n||(n=this.fetchImpl(new URL(`${t}.json`,e).href).then(i=>i.ok?i.json():[]).catch(()=>[]),this.years.set(t,n)),n}}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 w,reentries:new M};static viewOf(t,e,n){const i=t.track;if(i.length<2)return;const s=i[0],o=i[i.length-1],r=t.seen,a=m=>T.seenFrom(n,{lat:m.lat,lng:m.lng,heightM:m.altitudeKm*1e3}),l=r?.fromAzimuthDeg!==void 0&&r.fromAltitudeDeg!==void 0?{azimuthDeg:r.fromAzimuthDeg,altitudeDeg:r.fromAltitudeDeg}:a(s),c=r?.toAzimuthDeg!==void 0&&r.toAltitudeDeg!==void 0?{azimuthDeg:r.toAzimuthDeg,altitudeDeg:r.toAltitudeDeg}:a(o),h=r?.durationS??(o.t-s.t)/1e3,d=Math.min(...t.fragments.flatMap(m=>[m.absoluteMagnitude,...(m.lightCurve??[]).map(f=>f.absoluteMagnitude)]));return{startMs:e.getTime()+s.t,durationS:h,from:{azimuthDeg:l.azimuthDeg,altitudeDeg:l.altitudeDeg},to:{azimuthDeg:c.azimuthDeg,altitudeDeg:c.altitudeDeg},peakAbsoluteMagnitude:d}}static azimuthOff(t,e){const n=Math.abs(((t-e)%360+360)%360);return Math.min(n,360-n)}static elevationOff(t,e){const n=Math.max(0,t*u.ELEVATION_LOW_FACTOR)-u.ELEVATION_SLACK_DEG,i=t+u.ELEVATION_SLACK_DEG;return e<n?n-e:e>i?e-i:0}static matchFireball(t,e,n){const i=e.t<t.startMs?t.startMs-e.t:0,s=e.t>t.startMs?e.t-t.startMs:0;if(Math.max(i,s)>u.TIME_MARGIN_MIN*6e4)return;const o=T.seenFrom(n,{lat:e.from[0],lng:e.from[1],heightM:e.from[2]*1e3}),r=T.seenFrom(n,{lat:e.to[0],lng:e.to[1],heightM:e.to[2]*1e3});if(o.altitudeDeg<0&&r.altitudeDeg<0)return;const a=Math.max(u.azimuthOff(t.from.azimuthDeg,o.azimuthDeg),u.azimuthOff(t.to.azimuthDeg,r.azimuthDeg));if(a>u.HEADING_MARGIN_DEG||Math.max(u.elevationOff(t.from.altitudeDeg,o.altitudeDeg),u.elevationOff(t.to.altitudeDeg,r.altitudeDeg))>0)return;const c=u.DURATION_FACTOR;if(!(e.durationS>0&&(t.durationS<e.durationS/c||t.durationS>e.durationS*c)))return{record:e,offsetMinutes:Math.round((i+s)/6e4),headingOffDeg:Math.round(a),altitudeOffDeg:Math.round(Math.abs(r.altitudeDeg-t.to.altitudeDeg))}}static async check(t,e,n,i=u.shared){if(!e||!n)return[{verdict:"unchecked",source:"none",reason:"noDateOrPlace"}];const s=u.viewOf(t,e,n);if(!s)return[{verdict:"unchecked",source:"none",reason:"noDateOrPlace"}];const o=b.of(t.type)?.nature,r=[];if(o!=="artificial"&&r.push(...await u.checkFireballs(s,n,o==="natural",i)),o!=="artificial"){const a=u.showerOf(s,n);a&&(a.verdict==="compatible"||o==="natural")&&r.push(a)}return o!=="natural"&&r.push(...await u.checkCatalogue(t,s,n,o==="artificial",i)),o===void 0&&!r.some(a=>a.verdict==="known"||a.verdict==="possible"||a.verdict==="compatible")?[...r.filter(a=>a.verdict==="unchecked"),{verdict:"uninformative",source:"none",reason:"typeUnknown"}]:r}static vectorOf(t,e){const n=Math.PI/180,i=e*n,s=t*n;return[Math.cos(i)*Math.sin(s),Math.cos(i)*Math.cos(s),Math.sin(i)]}static angleDeg(t,e){return Math.acos(Math.max(-1,Math.min(1,t[0]*e[0]+t[1]*e[1]+t[2]*e[2])))*180/Math.PI}static showerOf(t,e){const n=u.vectorOf(t.from.azimuthDeg,t.from.altitudeDeg),i=u.vectorOf(t.to.azimuthDeg,t.to.altitudeDeg),s=u.angleDeg(n,i);if(s<1)return;const o=[n[1]*i[2]-n[2]*i[1],n[2]*i[0]-n[0]*i[2],n[0]*i[1]-n[1]*i[0]],r=Math.hypot(o[0],o[1],o[2]),a=new Date(t.startMs),l=O.activeAt(a);let c;for(const{shower:h,zhr:d}of l){const m=O.radiantPosition(h,a,{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])/r)))*180/Math.PI,y=u.angleDeg(f,n),D=u.angleDeg(f,i);y>=D||D<=s||p<=u.SHOWER_MARGIN_DEG&&(!c||p<c.offDeg)&&(c={showerId:h.id,offDeg:Math.round(p),zhr:Math.round(d)})}return c?{verdict:"compatible",source:"showers",...c}:{verdict:"sporadic",source:"showers",active:l.length}}static async checkFireballs(t,e,n,i){const s=u.TIME_MARGIN_MIN*6e4;if(!w.mayCover(t.startMs))return n?[{verdict:"uninformative",source:"gmn",reason:"beforeArchive"}]:[];const o=await i.fireballs.between(t.startMs-s,t.startMs+s+t.durationS*1e3);if(o===void 0)return n?[{verdict:"unchecked",source:"gmn",reason:"unreachable"}]:[];const r=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(r.length>0)return[{verdict:"known",source:"gmn",match:r[0]}];if(!n)return[];if(t.peakAbsoluteMagnitude>u.ARCHIVED_MAGNITUDE)return[{verdict:"uninformative",source:"gmn",reason:"faint"}];if(F("Sun",new Date(t.startMs),{lat:e.lat,lng:e.lng,elevationM:0}).altitudeDeg>u.NIGHT_SUN_DEG)return[{verdict:"uninformative",source:"gmn",reason:"daylight"}];const a=new Date(t.startMs),l=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),1),c=Date.UTC(a.getUTCFullYear(),a.getUTCMonth()+1,1)-1,d=(await i.fireballs.between(l,c)??[]).filter(m=>M.distanceKm(e.lat,e.lng,m.from[0],m.from[1])<=u.WATCHED_KM).length;return d<u.WATCHED_COUNT?[{verdict:"uninformative",source:"gmn",reason:"unwatched"}]:[{verdict:"expectedAbsent",source:"gmn",absoluteMagnitude:t.peakAbsoluteMagnitude,watchedCount:d}]}static async checkCatalogue(t,e,n,i,s){if(e.startMs<u.FIRST_ORBIT_MS)return i?[{verdict:"impossible",source:"catalogue"}]:[];const o=u.TIME_MARGIN_MIN*6e4,r=await s.reentries.candidates(e.startMs-o,e.startMs+o+e.durationS*1e3,n);if(r===void 0)return i?[{verdict:"unchecked",source:"catalogue",reason:"unreachable"}]:[];const a=t.object,l=a&&r.find(h=>a.cosparId&&h.record.cosparId===a.cosparId||a.norad!==void 0&&h.record.norad===a.norad);if(l)return[{verdict:"known",source:"catalogue",candidate:l,by:"object"}];const c=r.find(h=>h.record.precision==="minute"&&h.seenKm!==void 0&&(h.offsetMinutes??0)<=u.TIME_MARGIN_MIN);return c?[{verdict:"known",source:"catalogue",candidate:c,by:"seen"}]:r.length>0?r.slice(0,3).map(h=>({verdict:"possible",source:"catalogue",candidate:h})):i?[{verdict:"expectedAbsent",source:"catalogue"}]:[]}}class I{constructor(t,e,n){this.container=t,this.host=e,H.attach(t,"reentry-editor-part",I.STYLE),this.language=n,this.ready=this.setLanguage(n)}messages;ready;parameterTexts;languageToken=0;currentId;form;list;timeline;placeForm;placeIndex=0;row="path";fragmentForm;fragmentIndex=0;curveForm;curveIndex=0;language;shown=[];static STYLE='.reentry-editor-part { flex-basis: 100%; min-width: 0; } .reentry-editor-part #reentry-timeline { flex-basis: 100%; min-width: 0; padding: 4px 0; } .reentry-editor-part #reentry-path > .icon-btn, .reentry-editor-part #reentry-curve > .icon-btn { align-self: flex-end; } .reentry-editor-part #reentry-list, .reentry-editor-part #reentry-places, .reentry-editor-part #reentry-fragment-list, .reentry-editor-part #reentry-curve-list { flex-basis: 100%; min-width: 0; } .reentry-editor-part .launch-editor, .reentry-editor-part .launch-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; } .reentry-editor-part .launch-fields { flex-basis: 100%; min-width: 0; } .reentry-editor-part [hidden] { display: none !important; } .reentry-editor-part .reentry-evidence { flex-basis: 100%; } .reentry-editor-part .evidence-known, .reentry-editor-part .evidence-impossible, .reentry-editor-part .evidence-expectedAbsent { font-weight: 600; } .reentry-editor-part select { min-width: 0; width: 100%; } .reentry-editor-part .launch-intro { flex-basis: 100%; margin: 0; } .reentry-editor-part .launch-track { flex-basis: 100%; margin: 0; } .reentry-editor-part .launch-parameters { flex-basis: 100%; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; } .reentry-editor-part .parameter-group { flex: 1 1 14em; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; align-content: flex-start; } .reentry-editor-part input, .reentry-editor-part select { max-width: 100%; box-sizing: border-box; } .reentry-editor-part input[type="text"] { width: 12em; } .reentry-editor-part input[data-key="title"] { width: 18em; } .reentry-editor-part label { min-width: 0; max-width: 100%; } .reentry-editor-part input.parameter-derived::placeholder { opacity: .65; } .reentry-editor-part .launch-path { flex: 1 1 100%; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; }';async setLanguage(t){const e=++this.languageToken;this.language=t;const[n,i,,s]=await Promise.all([$.load(t),z.load(t),b.load(t),N(t).catch(()=>{})]);e===this.languageToken&&(this.sceneNames=s,this.messages=n,this.parameterTexts=i,this.render(),this.sync())}sync(){if(!this.messages)return;const t=this.reentries;this.shown=[...t],t.some(n=>n.id===this.currentId)||(this.currentId=t[0]?.id),this.list?.setItems(t.map(n=>({id:n.id,label:this.labelOf(n)})),this.currentId),this.list?.setKinds(b.all().map(n=>({value:n.key,label:b.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 E(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(r=>r===void 0||r==="")&&delete i.object;const s=this.origin(),o=s&&g.trackFromSeen(i,s);o&&(i.track=o)})),()=>this.written()))}refresh(){if(!this.messages)return;this.syncAddState();const t=this.reentries;if(t.length===this.shown.length&&t.every((e,n)=>e.id===this.shown[n].id)){this.syncTimeline();return}this.sync()}setTime(t){this.messages&&this.timeline?.setTime(t)}syncAddState(){const t=this.origin()!==void 0;this.list?.setAddState(t,t?void 0:this.messages.addNowhere)}get current(){return this.reentries.find(t=>t.id===this.currentId)}show(t){this.messages&&(this.currentId=t,this.row="path",this.placeIndex=0,this.fragmentIndex=0,this.curveIndex=0,this.sync())}resolved(t){return _.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">
@@ -0,0 +1 @@
1
+ import{G,bH as S,al as _,a2 as M,bI as R,a5 as b,Y as F,bB as f,bC as w,K as H,C as N,bJ as y,bK as C,bL as L,R as B}from"./rr0-sighting.mjs";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 G;tiers;trains;positions;colors;shown=0;drawn=[];constructor(){this.object.name="reentries",this.tiers=S.map(i=>{const o=new _(new M,R.material(i.size,!1));return R.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 b(this.positions,3)),t.setAttribute("color",new b(this.colors,3)),t.setDrawRange(0,0),this.trains=new F(t,f.material()),this.trains.frustumCulled=!1,f.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}=w(s.altitudeDeg,s.azimuthDeg,1);return new H(t,i,o)}get count(){return this.shown}set(s,t,i,o){const e=this.tiers.map(()=>[]);let n=0,E=0;const r=new N;this.drawn=[];for(const a of s){const u=i(a.head);if(u<=0)continue;const c=a.magnitude-2.5*Math.log10(u);if(c>t)continue;E++,this.drawn.push({direction:h.directionOf(a.head),view:a,magnitude:c}),r.set(a.color);const d=y(c,t)*a.fade,{x:I,y:A,z:p}=w(a.head.altitudeDeg,a.head.azimuthDeg,h.RADIUS),[l,m,T]=o(a.head,c),z=a.fade,D=Math.max(r.r,r.g,r.b)||1;e[C(d)].push({x:I,y:A,z:p,r:l*r.r*z/D,g:m*r.g*z/D,b:T*r.b*z/D}),n=this.pushTrain(n,a.train,d,r)}this.shown=E,this.tiers.forEach((a,u)=>{const c=e[u],d=new Float32Array(c.length*3),I=new Float32Array(c.length*3);c.forEach((p,l)=>{d.set([p.x,p.y,p.z],l*3),I.set([p.r,p.g,p.b],l*3)}),a.geometry.dispose();const A=new M;A.setAttribute("position",new b(d,3)),A.setAttribute("color",new b(I,3)),a.geometry=A});const g=this.trains.geometry;g.setDrawRange(0,n),g.getAttribute("position").needsUpdate=!0,g.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 E=1-n/e,r=1-(n+1)/e,g=w(t[n].altitudeDeg,t[n].azimuthDeg,h.RADIUS),a=w(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,g,a,u(E),u(r),c(E),c(r),o)}return s}pushRibbon(s,t,i,o,e,n,E,r){const g={x:i.x-t.x,y:i.y-t.y,z:i.z-t.z};if(Math.hypot(g.x,g.y,g.z)<1e-9)return s;const a=this.normalise(this.cross(this.normalise(t),this.normalise(g)));for(const[u,c]of[[-1,0],[0,1]]){const d=this.across(t,a,o,u),I=this.across(i,a,e,u),A=this.across(t,a,o,c),p=this.across(i,a,e,c),l=(m,T)=>m===0?T:0;s=this.push(s,d,l(u,n),r),s=this.push(s,I,l(u,E),r),s=this.push(s,A,l(c,n),r),s=this.push(s,I,l(u,E),r),s=this.push(s,p,l(c,E),r),s=this.push(s,A,l(c,n),r)}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=L.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?[]:B.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};
@@ -0,0 +1 @@
1
+ import{p as D,az as A,aA as b,aB as M,a0 as p,aC as O,Y as I,ap as x,aD as T,aE as S,aF as N,aG as F}from"./rr0-sighting.mjs";class h{static SEEK_BEYOND_S=.25;static SAME_FRAME_S=1/60;static CATCH_UP_SHARE=.1;static MIN_RATE=.0625;static MAX_RATE=16;static rollOfPicture(t){return t&&-t}static kindOfSource(t){if(t.type?.startsWith("video/"))return"video";if(t.type?.startsWith("image/"))return"photo";const i=t.url??"";if(i.startsWith("data:video/")||/\.(mp4|m4v|webm|ogv|mov)(?:[?#].*)?$/i.test(i))return"video";if(i.startsWith("data:image/")||/\.(jpe?g|png|gif|webp|avif)(?:[?#].*)?$/i.test(i))return"photo"}static mediaSecondsAt(t,i,s,a){const e=t.video?.fromS??0,o=t.video?.toS??a??Number.POSITIVE_INFINITY,n=i-(t.t??0);if(n<0)return;const r=e+n/(h.positive(s)*1e3)*h.rateOf(t);return r<=o?r:void 0}static rateOf(t){return h.positive(t.video?.rate??1)}static registrationAt(t,i){const s=t.registration,a=t.registrationTrack;if(!a||a.length===0)return s;let e=a.findIndex(E=>E.t>i);e===-1&&(e=a.length);const o=a[Math.max(e-1,0)],n=a[Math.min(e,a.length-1)],r=n.t>o.t?Math.min(Math.max((i-o.t)/(n.t-o.t),0),1):0,c=((n.headingDeg-o.headingDeg)%360+540)%360-180,f=o.rollDeg??0,y=n.rollDeg??0,v=f+(y-f)*r,w=o.fovDeg??s.fovDeg;return{headingDeg:((o.headingDeg+c*r)%360+360)%360,pitchDeg:o.pitchDeg+(n.pitchDeg-o.pitchDeg)*r,rollDeg:v===0?void 0:v,fovDeg:w+((n.fovDeg??s.fovDeg)-w)*r}}static keyIndexAt(t,i){return(t.registrationTrack??[]).findIndex(s=>Math.abs(s.t-i)<20)}static withKey(t,i,s){const a={t:i,...s},e=h.keyIndexAt(t,i),n=[...(t.registrationTrack??[]).filter((r,c)=>c!==e),e>=0?{...a,t:t.registrationTrack[e].t}:a].sort((r,c)=>r.t-c.t);return{...t,registrationTrack:n,registration:h.plainOf(n[0],t.registration)}}static withoutKey(t,i){const s=h.keyIndexAt(t,i);if(s<0)return t;const a=t.registrationTrack.filter((e,o)=>o!==s);return a.length===0?{...t,registrationTrack:void 0}:{...t,registrationTrack:a,registration:h.plainOf(a[0],t.registration)}}static plainOf(t,i){return{headingDeg:t.headingDeg,pitchDeg:t.pitchDeg,rollDeg:t.rollDeg,fovDeg:t.fovDeg??i.fovDeg}}static command(t,i,s,a){const e=Math.min(Math.max(a,h.MIN_RATE),h.MAX_RATE),o=i-t;if(!s)return{seekS:Math.abs(o)>h.SAME_FRAME_S?i:void 0,play:!1,rate:e};if(Math.abs(o)>h.SEEK_BEYOND_S)return{seekS:i,play:!0,rate:e};const n=Math.min(Math.max(o/h.SEEK_BEYOND_S,-1),1)*h.CATCH_UP_SHARE;return{play:!0,rate:Math.min(Math.max(e*(1+n),h.MIN_RATE),h.MAX_RATE)}}static positive(t){return t>0?t:1}}class u extends Error{constructor(t,i){super(`${t}: ${i.kind==="status"?i.status:i.kind}`),this.src=t,this.failure=i}}class g{static async blob(t){let i;try{i=await fetch(t)}catch{throw new u(t,await g.whyUnread(t))}if(!i.ok)throw new u(t,{kind:"status",status:i.status});const s=await i.blob();if(s.type&&!s.type.startsWith("image/"))throw new u(t,{kind:"notPicture"});return s}static failureOf(t){return t instanceof u?t.failure:{kind:"notPicture"}}static async whyVideoUnread(t){if(t.startsWith("data:")||t.startsWith("blob:"))return{kind:"notVideo"};let i;try{i=await fetch(t,{method:"HEAD"})}catch{return g.whyUnread(t)}return i.ok?{kind:"notVideo"}:{kind:"status",status:i.status}}static async whyUnread(t){try{return await fetch(t,{mode:"no-cors"}),{kind:"notShared"}}catch{return{kind:"unreachable"}}}}const k=3,m=800,l=Math.PI/180;class d{constructor(t,i,s=d.fetchImage,a=d.openVideo){this.scene=t,this.onImageLoaded=i,this.loadImage=s,this.loadVideo=a}meshes=new Map;signatures=new Map;images=new Map;loading=new Map;failed=new Map;references=[];views=new Map;shown=!0;observerAt;clock={t:0,playing:!1,timeScale:1};static PRESENT_WITHIN_M=2;static GONE_BEYOND_M=20;static presenceAt(t,i){if(!t.from||!i)return 1;const s=D(i.lat,i.lng,t.from.lat,t.from.lng),e=(Math.hypot(s.x,s.z)-d.PRESENT_WITHIN_M)/(d.GONE_BEYOND_M-d.PRESENT_WITHIN_M),o=Math.min(Math.max(e,0),1);return 1-o*o*(3-2*o)}set(t,i=this.views,s){this.references=t,this.observerAt=s,this.views=i;const a=new Set(t.map(e=>e.id));for(const[e,o]of this.meshes)a.has(e)||(this.dispose(o),this.meshes.delete(e),this.signatures.delete(e));for(const[e,o]of this.images){const n=t.find(c=>c.id===e);if(n&&n.src===o.texture.userData.src&&n.kind==="video"==(o.video!==void 0))continue;d.release(o),this.images.delete(e);const r=this.meshes.get(e);r&&(this.dispose(r),this.meshes.delete(e),this.signatures.delete(e))}for(const e of t){const o=this.images.get(e.id);if(!o){this.load(e);continue}this.build(e,o)}this.follow()}setTime(t){this.clock=t,this.follow()}setShown(t){this.shown=t;for(const i of this.meshes.values())i.visible=t&&this.opacityOf(i.userData.id)>0}setView(t,i){this.views.set(t,i);const s=this.meshes.get(t);s&&this.applyOpacity(s,t)}layer=k;get any(){for(const t of this.meshes.values())if(t.visible)return!0;return!1}place(t){const i=this.held;i&&t.getWorldQuaternion(this.cameraTurn);for(const s of this.meshes.values()){if(!s.visible)continue;s.position.copy(t.position);const a=i?.get(s);a&&s.quaternion.copy(this.cameraTurn).multiply(a),s.updateMatrixWorld()}}hold(t){t.getWorldQuaternion(this.cameraTurn);const i=this.cameraTurn.clone().invert();this.held=new Map([...this.meshes.values()].map(s=>[s,i.clone().multiply(s.quaternion)])),this.registered=new Map([...this.meshes.values()].map(s=>[s,s.quaternion.clone()]))}release(){if(this.held){for(const[t,i]of this.registered??[])t.quaternion.copy(i);this.held=void 0,this.registered=void 0}}registered;held;cameraTurn=new A;get furthestM(){return this.meshes.size>0?m:0}directionOfPixel(t,i,s,a){const e=this.images.get(t.id),o=e?e.width/e.height:1,n=h.registrationAt(t,this.clock.t),r=Math.tan(n.fovDeg/2*l),c=r*o;return a.set((i*2-1)*c,(1-s*2)*r,-1).normalize(),a.applyQuaternion(d.orientation(n))}aspectOf(t){const i=this.images.get(t);return i?i.width/i.height:void 0}failureOf(t){return this.failed.get(t)}follow(){for(const t of this.references){const i=this.meshes.get(t.id),s=this.images.get(t.id)?.video;s&&this.sync(t,s),i&&(t.registrationTrack?.length&&d.point(i,t,h.registrationAt(t,this.clock.t)),t.kind==="video"&&this.applyOpacity(i,t.id))}}sync(t,i){const s=h.mediaSecondsAt(t,this.clock.t,this.clock.timeScale,Number.isFinite(i.duration)?i.duration:void 0);if(s===void 0){i.paused||i.pause();return}const a=h.command(i.currentTime,s,this.clock.playing,h.rateOf(t));i.playbackRate=a.rate,a.seekS!==void 0&&!i.seeking&&(i.currentTime=a.seekS),a.play&&i.paused&&i.play().catch(()=>{}),!a.play&&!i.paused&&i.pause()}load(t){const i=t.src;if(this.loading.has(t.id)||this.failed.has(i))return;const s=t.kind==="video",e=(s?this.loadVideo(i,()=>this.onVideoFrame()):this.loadImage(i)).then(o=>{this.loading.delete(t.id);const n=this.references.find(r=>r.id===t.id);if(!n||n.src!==i||n.kind==="video"!==s){d.release(o);return}o.texture.userData.src=i,this.images.set(t.id,o),this.build(n,o),this.follow(),this.onImageLoaded()},o=>{this.loading.delete(t.id),this.failed.set(i,g.failureOf(o)),this.onImageLoaded()});this.loading.set(t.id,e)}onVideoFrame(){this.follow(),this.onFrame?.()}onFrame;static openVideo(t,i){return new Promise((s,a)=>{const e=document.createElement("video");e.crossOrigin="anonymous",e.muted=!0,e.playsInline=!0,e.preload="auto",e.addEventListener("loadeddata",()=>{const o=new b(e);o.colorSpace=M,o.minFilter=p,o.magFilter=p,o.generateMipmaps=!1,e.addEventListener("seeked",i);const n=()=>{e.paused&&i(),e.src&&e.requestVideoFrameCallback(n)};"requestVideoFrameCallback"in e&&e.requestVideoFrameCallback(n),s({texture:o,width:e.videoWidth,height:e.videoHeight,video:e})},{once:!0}),e.addEventListener("error",()=>{g.whyVideoUnread(t).then(o=>a(new u(t,o)))},{once:!0}),e.src=t})}static release(t){t.texture.dispose();const i=t.video;i&&(i.pause(),i.removeAttribute?.("src"),i.load?.())}static async fetchImage(t){const i=await g.blob(t),s=await createImageBitmap(i,{imageOrientation:"flipY"}).catch(()=>{throw new u(t,{kind:"notPicture"})}),a=new O(s);return a.flipY=!1,a.colorSpace=M,a.minFilter=p,a.magFilter=p,a.generateMipmaps=!1,a.needsUpdate=!0,{texture:a,width:s.width,height:s.height}}build(t,i){const s=d.signatureOf(t,i);let a=this.meshes.get(t.id);if(a&&this.signatures.get(t.id)===s){this.applyOpacity(a,t.id);return}a&&(this.dispose(a),this.meshes.delete(t.id)),a=new I(d.geometryOf(t,i),new x({map:i.texture,transparent:!0,depthTest:!1,depthWrite:!1,fog:!1,toneMapped:!1})),t.kind==="panorama"&&(a.material.side=T),a.frustumCulled=!1,a.layers.set(k),a.userData.id=t.id,d.point(a,t,h.registrationAt(t,this.clock.t)),this.scene.add(a),this.meshes.set(t.id,a),this.signatures.set(t.id,s),this.applyOpacity(a,t.id)}static geometryOf(t,i){if(t.kind==="panorama"){const o=new S(m,64,32,Math.PI/2,Math.PI*2),n=o.attributes.uv;for(let r=0;r<n.count;r++)n.setX(r,1-n.getX(r));return n.needsUpdate=!0,o}const s=2*m*Math.tan(t.registration.fovDeg/2*l),a=s*(i.width/Math.max(i.height,1)),e=new N(a,s);return e.translate(0,0,-m),e}static orientation({headingDeg:t,pitchDeg:i,rollDeg:s}){const a=new F;return a.rotation.set(i*l,-t*l,-(s??0)*l,"YXZ"),a.quaternion}static point(t,i,s){if(t.quaternion.copy(d.orientation(s)),i.kind==="panorama")return;const a=Math.tan(s.fovDeg/2*l)/Math.tan(i.registration.fovDeg/2*l);t.scale.set(a,a,1)}inTime(t){if(t.kind!=="video")return!0;const i=this.images.get(t.id)?.video?.duration;return h.mediaSecondsAt(t,this.clock.t,this.clock.timeScale,i!==void 0&&Number.isFinite(i)?i:void 0)!==void 0}opacityOf(t){const i=this.references.find(e=>e.id===t);if(i&&!this.inTime(i))return 0;const s=this.views.get(t),a=i?d.presenceAt(i,this.observerAt):1;return(s?.opacity??i?.opacity??0)*a}applyOpacity(t,i){const s=this.opacityOf(i);t.material.opacity=s,t.visible=this.shown&&s>0}static signatureOf(t,i){const{headingDeg:s,pitchDeg:a,rollDeg:e,fovDeg:o}=t.registration;return[t.kind,t.src,i.width,i.height,s,a,e??0,o].join("|")}dispose(t){this.scene.remove(t),t.geometry.dispose(),t.material.dispose()}disposeAll(){for(const t of this.meshes.values())this.dispose(t);this.meshes.clear(),this.signatures.clear();for(const t of this.images.values())d.release(t);this.images.clear()}}export{k as REFERENCE_LAYER,d as ReferenceSystem};
@@ -1 +1 @@
1
- import{m as D}from"./rr0-sighting.mjs";class M{static MIN_ROAD_M=5.5;static WIDE_ROAD_M=9;static LINE_WIDTH_M=.12;static DASH_M=3;static GAP_M=10;static RIVE_DASH_M=2.5;static RIVE_GAP_M=3.5;static MIN_DASH_M=.5;static LANE_M=3.5;static SHOULDER_MIN_M=1.5;static SOLID_EDGE_FROM_M=7;static SOLID_EDGE_FROM_KMH=80;static BEND_RADIUS_M=300;static EDGE_SETBACK_M=.4;static PAINT_RADIUS_M=450;static LIFT_M=.015;static BARRIER_MAX_AXES_M=40;static BARRIER_MIN_AXES_M=5;static BARRIER_HEIGHT_M=.8;static BARRIER_HALF_WIDTH_M=.2;static BARRIER_STEP_M=4;static painted(t){return t.surface==="paved"&&t.widthM>=M.MIN_ROAD_M&&t.kind!=="roundabout"}static plan(t){if(!M.painted(t))return[];const u=t.widthM,l=u/2,i=M.EDGE_SETBACK_M;if(!(t.direction!==void 0&&t.lanes!==void 0)){const I=[{offsetM:l-i,pattern:"solid"},{offsetM:-(l-i),pattern:"solid"}],A=u>=M.WIDE_ROAD_M?[-u/4,u/4]:[0];for(const x of A)I.push({offsetM:x,pattern:"dashed"});return I}const s=t.lanes,n=u>=M.SOLID_EDGE_FROM_M||(t.speedKmh??0)>=M.SOLID_EDGE_FROM_KMH?"solid":"rive";if(t.direction==="both"){if(s<2)return[];const I=[{offsetM:l-i,pattern:n},{offsetM:-(l-i),pattern:n}];if(s>=4){I.push({offsetM:.1,pattern:"solid"},{offsetM:-.1,pattern:"solid"});const A=Math.floor(s/2),x=u/s;for(let z=1;z<A;z++)I.push({offsetM:z*x,pattern:"dashed"},{offsetM:-z*x,pattern:"dashed"})}else I.push({offsetM:0,pattern:"dashed",solidInBends:!0});return I}const r=t.direction==="backward"?-1:1,o=I=>r*(l-I),c=Math.min(M.LANE_M,u/Math.max(s,1)),h=s*c,d=u-h,_=(t.kind==="motorway"||t.kind==="dual")&&d>=M.SHOULDER_MIN_M,E=[{offsetM:o(i),pattern:t.kind==="motorway"||t.kind==="dual"?"solid":n}];E.push({offsetM:o(_?h:u-i),pattern:t.kind==="motorway"||t.kind==="dual"?"solid":n});for(let I=1;I<s;I++)E.push({offsetM:o(I*c),pattern:"dashed"});return E}static lay(t,u,l,i){let e=0;const s=(f,n)=>{i(f,M.LINE_WIDTH_M,{offsetM:n,liftM:M.LIFT_M,minHalfM:M.LINE_WIDTH_M/2}),e++};for(const f of t){const n=M.plan(f);if(n.length===0)continue;const r=f.points.map(o=>D(o.lat,o.lng,u,l));for(const o of M.near(r,M.PAINT_RADIUS_M))for(const c of n){if(c.pattern==="solid"){s(o,c.offsetM);continue}const[h,d]=c.pattern==="dashed"?[M.DASH_M,M.GAP_M]:[M.RIVE_DASH_M,M.RIVE_GAP_M];for(const _ of c.solidInBends?M.byBends(o):[{path:o,bend:!1}])if(_.bend)s(_.path,c.offsetM);else for(const E of M.dashes(_.path,h,d))s(E,c.offsetM)}}return e}static byBends(t){if(t.length<3)return[{path:t,bend:!1}];const u=(e,s)=>Math.atan2(s.x-e.x,-(s.z-e.z)),l=new Array(t.length-1).fill(!1);for(let e=1;e<t.length-1;e++){const s=Math.hypot(t[e].x-t[e-1].x,t[e].z-t[e-1].z),f=Math.hypot(t[e+1].x-t[e].x,t[e+1].z-t[e].z);if(s<1e-6||f<1e-6)continue;let n=Math.abs(u(t[e],t[e+1])-u(t[e-1],t[e]));n>Math.PI&&(n=2*Math.PI-n),(s+f)/2/Math.max(n,1e-6)<M.BEND_RADIUS_M&&(l[e-1]=!0,l[e]=!0)}const i=[];for(let e=0;e<l.length;e++){const s=i.at(-1);s&&s.bend===l[e]?s.path.push(t[e+1]):i.push({path:[t[e],t[e+1]],bend:l[e]})}return i}static barriers(t,u,l){const i=t.filter(n=>(n.kind==="motorway"||n.kind==="dual")&&(n.direction==="forward"||n.direction==="backward")),e=i.map(n=>{const r=n.points.map(o=>D(o.lat,o.lng,u,l));return n.direction==="backward"?[...r].reverse():r}),s=[],f=M.BARRIER_STEP_M;return i.forEach((n,r)=>{for(const o of M.near(e[r],M.PAINT_RADIUS_M)){let c=[];for(const h of M.resample(o,f)){const d=M.midwayToOpposite(h,r,i,e);d?c.push(d):c.length>0&&(c.length>=2&&s.push(c),c=[])}c.length>=2&&s.push(c)}}),s}static midwayToOpposite(t,u,l,i){let e;for(let s=0;s<i.length;s++){if(s===u||l[s].id<l[u].id)continue;const f=i[s];for(let n=0;n<f.length-1;n++){const r=f[n+1].x-f[n].x,o=f[n+1].z-f[n].z,c=r*r+o*o;if(c<1e-9||(r*t.dx+o*t.dz)/Math.sqrt(c)>-.9)continue;const h=Math.max(0,Math.min(1,((t.x-f[n].x)*r+(t.z-f[n].z)*o)/c)),d={x:f[n].x+r*h,z:f[n].z+o*h},_=Math.hypot(t.x-d.x,t.z-d.z);_<M.BARRIER_MIN_AXES_M||_>M.BARRIER_MAX_AXES_M||(!e||_<e.distance)&&(e={distance:_,point:d})}}return e?{x:(t.x+e.point.x)/2,z:(t.z+e.point.z)/2}:void 0}static resample(t,u){const l=[];for(let e=0;e<t.length-1;e++){const s=Math.hypot(t[e+1].x-t[e].x,t[e+1].z-t[e].z);if(s<1e-6)continue;const f=(t[e+1].x-t[e].x)/s,n=(t[e+1].z-t[e].z)/s;for(let r=0;r<s;r+=u)l.push({x:t[e].x+f*r,z:t[e].z+n*r,dx:f,dz:n})}const i=l.at(-1);return i&&l.push({...t[t.length-1],dx:i.dx,dz:i.dz}),l}static barrierGeometry(t,u){const l=[],i=[],e=M.BARRIER_HALF_WIDTH_M;for(const s of t){if(s.length<2)continue;const f=l.length/3;for(let n=0;n<s.length;n++){const r=s[Math.max(0,n-1)],o=s[Math.min(s.length-1,n+1)],c=Math.hypot(o.x-r.x,o.z-r.z)||1,h=-(o.z-r.z)/c*e,d=(o.x-r.x)/c*e,_=u(s[n].x,s[n].z);l.push(s[n].x+h,_,s[n].z+d,s[n].x+h,_+M.BARRIER_HEIGHT_M,s[n].z+d,s[n].x-h,_+M.BARRIER_HEIGHT_M,s[n].z-d,s[n].x-h,_,s[n].z-d)}for(let n=0;n<s.length-1;n++){const r=f+n*4,o=r+4;for(let c=0;c<3;c++)i.push(r+c,o+c,r+c+1,r+c+1,o+c,o+c+1)}}return{positions:l,indices:i}}static near(t,u){const l=[];let i;for(let e=0;e<t.length-1;e++)Math.min(Math.hypot(t[e].x,t[e].z),Math.hypot(t[e+1].x,t[e+1].z))<=u||Math.hypot((t[e].x+t[e+1].x)/2,(t[e].z+t[e+1].z)/2)<=u?(i||(i=[t[e]]),i.push(t[e+1])):i&&(l.push(i),i=void 0);return i&&l.push(i),l}static dashes(t,u,l){const i=[],e=u+l;let s=0,f;const n=(o,c)=>({x:t[o].x+(t[o+1].x-t[o].x)*c,z:t[o].z+(t[o+1].z-t[o].z)*c});for(let o=0;o<t.length-1;o++){const c=Math.hypot(t[o+1].x-t[o].x,t[o+1].z-t[o].z);if(c<1e-6)continue;let h=0;for(;h<c;){const d=(s+h)%e,_=d<u,E=_?u-d:e-d,I=Math.min(c,h+E);_&&(f||(f=[n(o,h/c)]),f.push(n(o,I/c)),I-h>=E-1e-9&&(i.push(f),f=void 0)),h=I}s+=c}f&&f.length>=2&&i.push(f);const r=o=>o.slice(1).reduce((c,h,d)=>c+Math.hypot(h.x-o[d].x,h.z-o[d].z),0);return i.filter(o=>o.length>=2&&r(o)>=M.MIN_DASH_M)}}export{M as RoadMarkings};
1
+ import{p as D}from"./rr0-sighting.mjs";class M{static MIN_ROAD_M=5.5;static WIDE_ROAD_M=9;static LINE_WIDTH_M=.12;static DASH_M=3;static GAP_M=10;static RIVE_DASH_M=2.5;static RIVE_GAP_M=3.5;static MIN_DASH_M=.5;static LANE_M=3.5;static SHOULDER_MIN_M=1.5;static SOLID_EDGE_FROM_M=7;static SOLID_EDGE_FROM_KMH=80;static BEND_RADIUS_M=300;static EDGE_SETBACK_M=.4;static PAINT_RADIUS_M=450;static LIFT_M=.015;static BARRIER_MAX_AXES_M=40;static BARRIER_MIN_AXES_M=5;static BARRIER_HEIGHT_M=.8;static BARRIER_HALF_WIDTH_M=.2;static BARRIER_STEP_M=4;static painted(t){return t.surface==="paved"&&t.widthM>=M.MIN_ROAD_M&&t.kind!=="roundabout"}static plan(t){if(!M.painted(t))return[];const u=t.widthM,l=u/2,i=M.EDGE_SETBACK_M;if(!(t.direction!==void 0&&t.lanes!==void 0)){const I=[{offsetM:l-i,pattern:"solid"},{offsetM:-(l-i),pattern:"solid"}],A=u>=M.WIDE_ROAD_M?[-u/4,u/4]:[0];for(const x of A)I.push({offsetM:x,pattern:"dashed"});return I}const s=t.lanes,n=u>=M.SOLID_EDGE_FROM_M||(t.speedKmh??0)>=M.SOLID_EDGE_FROM_KMH?"solid":"rive";if(t.direction==="both"){if(s<2)return[];const I=[{offsetM:l-i,pattern:n},{offsetM:-(l-i),pattern:n}];if(s>=4){I.push({offsetM:.1,pattern:"solid"},{offsetM:-.1,pattern:"solid"});const A=Math.floor(s/2),x=u/s;for(let z=1;z<A;z++)I.push({offsetM:z*x,pattern:"dashed"},{offsetM:-z*x,pattern:"dashed"})}else I.push({offsetM:0,pattern:"dashed",solidInBends:!0});return I}const r=t.direction==="backward"?-1:1,o=I=>r*(l-I),c=Math.min(M.LANE_M,u/Math.max(s,1)),h=s*c,d=u-h,_=(t.kind==="motorway"||t.kind==="dual")&&d>=M.SHOULDER_MIN_M,E=[{offsetM:o(i),pattern:t.kind==="motorway"||t.kind==="dual"?"solid":n}];E.push({offsetM:o(_?h:u-i),pattern:t.kind==="motorway"||t.kind==="dual"?"solid":n});for(let I=1;I<s;I++)E.push({offsetM:o(I*c),pattern:"dashed"});return E}static lay(t,u,l,i){let e=0;const s=(f,n)=>{i(f,M.LINE_WIDTH_M,{offsetM:n,liftM:M.LIFT_M,minHalfM:M.LINE_WIDTH_M/2}),e++};for(const f of t){const n=M.plan(f);if(n.length===0)continue;const r=f.points.map(o=>D(o.lat,o.lng,u,l));for(const o of M.near(r,M.PAINT_RADIUS_M))for(const c of n){if(c.pattern==="solid"){s(o,c.offsetM);continue}const[h,d]=c.pattern==="dashed"?[M.DASH_M,M.GAP_M]:[M.RIVE_DASH_M,M.RIVE_GAP_M];for(const _ of c.solidInBends?M.byBends(o):[{path:o,bend:!1}])if(_.bend)s(_.path,c.offsetM);else for(const E of M.dashes(_.path,h,d))s(E,c.offsetM)}}return e}static byBends(t){if(t.length<3)return[{path:t,bend:!1}];const u=(e,s)=>Math.atan2(s.x-e.x,-(s.z-e.z)),l=new Array(t.length-1).fill(!1);for(let e=1;e<t.length-1;e++){const s=Math.hypot(t[e].x-t[e-1].x,t[e].z-t[e-1].z),f=Math.hypot(t[e+1].x-t[e].x,t[e+1].z-t[e].z);if(s<1e-6||f<1e-6)continue;let n=Math.abs(u(t[e],t[e+1])-u(t[e-1],t[e]));n>Math.PI&&(n=2*Math.PI-n),(s+f)/2/Math.max(n,1e-6)<M.BEND_RADIUS_M&&(l[e-1]=!0,l[e]=!0)}const i=[];for(let e=0;e<l.length;e++){const s=i.at(-1);s&&s.bend===l[e]?s.path.push(t[e+1]):i.push({path:[t[e],t[e+1]],bend:l[e]})}return i}static barriers(t,u,l){const i=t.filter(n=>(n.kind==="motorway"||n.kind==="dual")&&(n.direction==="forward"||n.direction==="backward")),e=i.map(n=>{const r=n.points.map(o=>D(o.lat,o.lng,u,l));return n.direction==="backward"?[...r].reverse():r}),s=[],f=M.BARRIER_STEP_M;return i.forEach((n,r)=>{for(const o of M.near(e[r],M.PAINT_RADIUS_M)){let c=[];for(const h of M.resample(o,f)){const d=M.midwayToOpposite(h,r,i,e);d?c.push(d):c.length>0&&(c.length>=2&&s.push(c),c=[])}c.length>=2&&s.push(c)}}),s}static midwayToOpposite(t,u,l,i){let e;for(let s=0;s<i.length;s++){if(s===u||l[s].id<l[u].id)continue;const f=i[s];for(let n=0;n<f.length-1;n++){const r=f[n+1].x-f[n].x,o=f[n+1].z-f[n].z,c=r*r+o*o;if(c<1e-9||(r*t.dx+o*t.dz)/Math.sqrt(c)>-.9)continue;const h=Math.max(0,Math.min(1,((t.x-f[n].x)*r+(t.z-f[n].z)*o)/c)),d={x:f[n].x+r*h,z:f[n].z+o*h},_=Math.hypot(t.x-d.x,t.z-d.z);_<M.BARRIER_MIN_AXES_M||_>M.BARRIER_MAX_AXES_M||(!e||_<e.distance)&&(e={distance:_,point:d})}}return e?{x:(t.x+e.point.x)/2,z:(t.z+e.point.z)/2}:void 0}static resample(t,u){const l=[];for(let e=0;e<t.length-1;e++){const s=Math.hypot(t[e+1].x-t[e].x,t[e+1].z-t[e].z);if(s<1e-6)continue;const f=(t[e+1].x-t[e].x)/s,n=(t[e+1].z-t[e].z)/s;for(let r=0;r<s;r+=u)l.push({x:t[e].x+f*r,z:t[e].z+n*r,dx:f,dz:n})}const i=l.at(-1);return i&&l.push({...t[t.length-1],dx:i.dx,dz:i.dz}),l}static barrierGeometry(t,u){const l=[],i=[],e=M.BARRIER_HALF_WIDTH_M;for(const s of t){if(s.length<2)continue;const f=l.length/3;for(let n=0;n<s.length;n++){const r=s[Math.max(0,n-1)],o=s[Math.min(s.length-1,n+1)],c=Math.hypot(o.x-r.x,o.z-r.z)||1,h=-(o.z-r.z)/c*e,d=(o.x-r.x)/c*e,_=u(s[n].x,s[n].z);l.push(s[n].x+h,_,s[n].z+d,s[n].x+h,_+M.BARRIER_HEIGHT_M,s[n].z+d,s[n].x-h,_+M.BARRIER_HEIGHT_M,s[n].z-d,s[n].x-h,_,s[n].z-d)}for(let n=0;n<s.length-1;n++){const r=f+n*4,o=r+4;for(let c=0;c<3;c++)i.push(r+c,o+c,r+c+1,r+c+1,o+c,o+c+1)}}return{positions:l,indices:i}}static near(t,u){const l=[];let i;for(let e=0;e<t.length-1;e++)Math.min(Math.hypot(t[e].x,t[e].z),Math.hypot(t[e+1].x,t[e+1].z))<=u||Math.hypot((t[e].x+t[e+1].x)/2,(t[e].z+t[e+1].z)/2)<=u?(i||(i=[t[e]]),i.push(t[e+1])):i&&(l.push(i),i=void 0);return i&&l.push(i),l}static dashes(t,u,l){const i=[],e=u+l;let s=0,f;const n=(o,c)=>({x:t[o].x+(t[o+1].x-t[o].x)*c,z:t[o].z+(t[o+1].z-t[o].z)*c});for(let o=0;o<t.length-1;o++){const c=Math.hypot(t[o+1].x-t[o].x,t[o+1].z-t[o].z);if(c<1e-6)continue;let h=0;for(;h<c;){const d=(s+h)%e,_=d<u,E=_?u-d:e-d,I=Math.min(c,h+E);_&&(f||(f=[n(o,h/c)]),f.push(n(o,I/c)),I-h>=E-1e-9&&(i.push(f),f=void 0)),h=I}s+=c}f&&f.length>=2&&i.push(f);const r=o=>o.slice(1).reduce((c,h,d)=>c+Math.hypot(h.x-o[d].x,h.z-o[d].z),0);return i.filter(o=>o.length>=2&&r(o)>=M.MIN_DASH_M)}}export{M as RoadMarkings};
@@ -1 +1 @@
1
- import{V as t,h as a}from"./rr0-sighting.mjs";const r={bodies:{sun:"Sun",moon:"Moon",Venus:"Venus",Mars:"Mars",Jupiter:"Jupiter",Saturn:"Saturn"},stars:{},comets:{},novae:{},satelliteClasses:{},showers:{},lightRigs:{airliner:"Airliner",helicopter:"Helicopter","car-headlights":"Car, headlights on","car-hazards":"Car, hazard flashers","emergency-beacons":"Emergency vehicle beacons","traffic-signal":"Traffic light","pedestrian-signal":"Pedestrian light",streetlamp:"Streetlamp"},instruments:{eye:"Naked eye","rectilinear-lens":"Camera, unknown device","roamer-1-120":"Roamer 1, 120 film","instamatic-126":"Instamatic, 126 film","cine-35mm-broadcast":"35 mm film camera, seen on television","slr-35mm-50":"35 mm SLR, 50 mm lens","slr-35mm-zoom":"35 mm SLR, 70-210 mm zoom","phone-landscape":"Phone, held sideways","phone-portrait":"Phone, held upright",dashcam:"Dashcam",cctv:"Security camera",...a.names(),...t.names()},decorKinds:{building:"Building",tree:"Tree",shrub:"Shrub",bridge:"Bridge",wire:"Overhead line",crop:"Crop row",terrace:"Terrace (restanque)",mound:"Stone heap",wall:"Dry-stone wall",streetlight:"Streetlight",trafficlight:"Traffic light",peak:"Peak",crossing:"Pedestrian crossing",roadsign:"Road sign",vehicle:"Vehicle",observer:"Observer",aircraft:"Aircraft",entity:"Being"},compassPoints:["N","NNE","NE","ENE","E","ESE","SE","SSE","S","SSW","SW","WSW","W","WNW","NW","NNW"],towards:e=>`to the ${e}`,starTooltip:"{name} — mag {mag}, {alt}° above the horizon",starTooltipBelow:"{name} — mag {mag}, {alt}° below the horizontal",decorTooltip:"{name} — {size}, {distance} away",satelliteTooltip:"{name} — satellite, mag {mag}, {height} km up",afterimageTooltip:{name:"Afterimage, in the eye",detail:"{name}: where the image of a light brighter than the Sun fell, the retina's pigment is bleached: for a few seconds it goes on glowing, white then coloured, and then what is seen there looks darker. It stays where it is in the field of view whichever way the eye turns, and takes minutes to fade."},ghostTooltip:{ghost:"Ghost: {name}",halo:"Halo: {name}",double:"Double: {name}",unnamed:"a light",detail:"{name}. {cause}, {where}.",causes:{lens:"A reflection between two surfaces of the lens",sensor:"The sensor's reflection, sent back by its cover glass",filter:"The sensor's reflection, sent back by the filter",glass:"A reflection between the two faces of the glass in front of the lens",drops:"Light scattered by drops on the glass",condensation:"Light scattered by condensation on the glass",dirt:"Light scattered by dirt on the glass"},opposite:"across the centre of the picture from the light",sameSide:"on the same side of the centre as the light",around:"round the light",drop:{lens:"Drop on the lens",filter:"Drop on the filter",window:"Drop on the window",windscreen:"Drop on the windscreen"},dropDetail:"{name}. Like a small lens, it shows upside down and blurred what is on the other side of it, rather than what is behind it."},opticsTooltips:{halo22:"22° halo — a ring round the Sun, from light bent through hexagonal ice crystals in high cirrus; its inner edge is red, at 21.7°",halo46:"46° halo — a rarer, fainter ring: light entering a crystal by a side face and leaving by an end face",oddRadius:"{angle}° halo — an odd-radius ring, rare and faint, made by ice crystals with pyramid ends",parhelion:"Parhelion (sundog) — a bright coloured spot beside the Sun at its own height, from flat plates falling level; red toward the Sun",parhelion120:"120° parhelion — a faint white spot 120° from the Sun, from light reflected inside flat plates",upperTangentArc:"Upper tangent arc — a bright arc resting on top of the 22° halo, from columns lying level",lowerTangentArc:"Lower tangent arc — an arc touching the bottom of the 22° halo, from columns lying level",circumzenithal:"Circumzenithal arc — a vivid band of colour near the zenith, from light entering the top face of flat plates (only with the Sun under 32°)",circumhorizontal:"Circumhorizontal arc — a band of colour low in the sky, from light entering the side face of flat plates (only with the Sun over 58°)",parhelicCircle:"Parhelic circle — a white circle round the whole sky at the Sun's own height, from reflections on the vertical faces of flat plates",pillar:"Light pillar — a shaft of light standing above the Sun, from reflections off slightly tilted flat plates",subsun:"Subsun — a mirror image of the Sun below the horizon, from reflections off the flat faces of plates"},trafficTooltip:{unnamed:"Aircraft {hex}",altitude:"{value} ft",speed:"{value} kt",heading:"heading {value}°",position:"{distance} km away, {elevation}° above the horizon, {bearing}",heard:"Heard at {level} dB(A), left the aircraft {delay} s ago, {lag}° behind it: {character}{pitch}",rumble:"a low rumble, nothing above {cutoff} Hz",muffled:"a dull noise, nothing above {cutoff} Hz",broad:"a broad roar",pitchHigher:", pitch {percent} % higher",pitchLower:", pitch {percent} % lower",inaudible:"Not audible here: {level} dB(A) against {ambient} dB(A) of ambient noise",soundUnknown:"Its sound cannot be worked out: the aircraft was not recorded yet when it left",contrailPersistent:"Leaves a trail that lasts: the air is supersaturated over ice ({rhi} % over ice)",contrailShort:"Leaves a short-lived trail: the air is dry over ice ({rhi} % over ice)",military:"military",restricted:"identity withheld by its owner",candidate:"A compatible candidate, not an identification"},railwayTooltip:{kinds:{rail:"Railway",light_rail:"Light rail",tram:"Tramway",subway:"Metro",funicular:"Funicular"},highSpeed:"High-speed line",service:"Siding",singleTrack:"single track",tracks:"{count} tracks",overhead:"overhead wire {height} m above the rail",overheadVoltage:"overhead wire at {voltage}, {height} m above the rail",thirdRail:"third rail",thirdRailVoltage:"third rail at {voltage}",notElectrified:"not electrified",gauge:"{mm} mm gauge",metreGauge:"metre gauge",distance:"{distance} away"},credits:"Credits",notAVideo:"This is not a video",isASimulation:"It is a real-time simulation."};export{r as sceneNames_en};
1
+ import{V as t,k as a}from"./rr0-sighting.mjs";const r={bodies:{sun:"Sun",moon:"Moon",Venus:"Venus",Mars:"Mars",Jupiter:"Jupiter",Saturn:"Saturn"},stars:{},comets:{},novae:{},satelliteClasses:{},showers:{},lightRigs:{airliner:"Airliner",helicopter:"Helicopter","car-headlights":"Car, headlights on","car-hazards":"Car, hazard flashers","emergency-beacons":"Emergency vehicle beacons","traffic-signal":"Traffic light","pedestrian-signal":"Pedestrian light",streetlamp:"Streetlamp"},instruments:{eye:"Naked eye","rectilinear-lens":"Camera, unknown device","roamer-1-120":"Roamer 1, 120 film","instamatic-126":"Instamatic, 126 film","cine-35mm-broadcast":"35 mm film camera, seen on television","slr-35mm-50":"35 mm SLR, 50 mm lens","slr-35mm-zoom":"35 mm SLR, 70-210 mm zoom","phone-landscape":"Phone, held sideways","phone-portrait":"Phone, held upright",dashcam:"Dashcam",cctv:"Security camera",...a.names(),...t.names()},decorKinds:{building:"Building",tree:"Tree",shrub:"Shrub",bridge:"Bridge",wire:"Overhead line",crop:"Crop row",terrace:"Terrace (restanque)",mound:"Stone heap",wall:"Dry-stone wall",streetlight:"Streetlight",trafficlight:"Traffic light",peak:"Peak",crossing:"Pedestrian crossing",roadsign:"Road sign",vehicle:"Vehicle",observer:"Observer",aircraft:"Aircraft",entity:"Being"},compassPoints:["N","NNE","NE","ENE","E","ESE","SE","SSE","S","SSW","SW","WSW","W","WNW","NW","NNW"],towards:e=>`to the ${e}`,starTooltip:"{name} — mag {mag}, {alt}° above the horizon",starTooltipBelow:"{name} — mag {mag}, {alt}° below the horizontal",decorTooltip:"{name} — {size}, {distance} away",satelliteTooltip:"{name} — satellite, mag {mag}, {height} km up",afterimageTooltip:{name:"Afterimage, in the eye",detail:"{name}: where the image of a light brighter than the Sun fell, the retina's pigment is bleached: for a few seconds it goes on glowing, white then coloured, and then what is seen there looks darker. It stays where it is in the field of view whichever way the eye turns, and takes minutes to fade."},ghostTooltip:{ghost:"Ghost: {name}",halo:"Halo: {name}",double:"Double: {name}",unnamed:"a light",detail:"{name}. {cause}, {where}.",causes:{lens:"A reflection between two surfaces of the lens",sensor:"The sensor's reflection, sent back by its cover glass",filter:"The sensor's reflection, sent back by the filter",glass:"A reflection between the two faces of the glass in front of the lens",drops:"Light scattered by drops on the glass",condensation:"Light scattered by condensation on the glass",dirt:"Light scattered by dirt on the glass"},opposite:"across the centre of the picture from the light",sameSide:"on the same side of the centre as the light",around:"round the light",drop:{lens:"Drop on the lens",filter:"Drop on the filter",window:"Drop on the window",windscreen:"Drop on the windscreen"},dropDetail:"{name}. Like a small lens, it shows upside down and blurred what is on the other side of it, rather than what is behind it."},opticsTooltips:{halo22:"22° halo — a ring round the Sun, from light bent through hexagonal ice crystals in high cirrus; its inner edge is red, at 21.7°",halo46:"46° halo — a rarer, fainter ring: light entering a crystal by a side face and leaving by an end face",oddRadius:"{angle}° halo — an odd-radius ring, rare and faint, made by ice crystals with pyramid ends",parhelion:"Parhelion (sundog) — a bright coloured spot beside the Sun at its own height, from flat plates falling level; red toward the Sun",parhelion120:"120° parhelion — a faint white spot 120° from the Sun, from light reflected inside flat plates",upperTangentArc:"Upper tangent arc — a bright arc resting on top of the 22° halo, from columns lying level",lowerTangentArc:"Lower tangent arc — an arc touching the bottom of the 22° halo, from columns lying level",circumzenithal:"Circumzenithal arc — a vivid band of colour near the zenith, from light entering the top face of flat plates (only with the Sun under 32°)",circumhorizontal:"Circumhorizontal arc — a band of colour low in the sky, from light entering the side face of flat plates (only with the Sun over 58°)",parhelicCircle:"Parhelic circle — a white circle round the whole sky at the Sun's own height, from reflections on the vertical faces of flat plates",pillar:"Light pillar — a shaft of light standing above the Sun, from reflections off slightly tilted flat plates",subsun:"Subsun — a mirror image of the Sun below the horizon, from reflections off the flat faces of plates"},trafficTooltip:{unnamed:"Aircraft {hex}",altitude:"{value} ft",speed:"{value} kt",heading:"heading {value}°",position:"{distance} km away, {elevation}° above the horizon, {bearing}",heard:"Heard at {level} dB(A), left the aircraft {delay} s ago, {lag}° behind it: {character}{pitch}",rumble:"a low rumble, nothing above {cutoff} Hz",muffled:"a dull noise, nothing above {cutoff} Hz",broad:"a broad roar",pitchHigher:", pitch {percent} % higher",pitchLower:", pitch {percent} % lower",inaudible:"Not audible here: {level} dB(A) against {ambient} dB(A) of ambient noise",soundUnknown:"Its sound cannot be worked out: the aircraft was not recorded yet when it left",contrailPersistent:"Leaves a trail that lasts: the air is supersaturated over ice ({rhi} % over ice)",contrailShort:"Leaves a short-lived trail: the air is dry over ice ({rhi} % over ice)",military:"military",restricted:"identity withheld by its owner",candidate:"A compatible candidate, not an identification"},railwayTooltip:{kinds:{rail:"Railway",light_rail:"Light rail",tram:"Tramway",subway:"Metro",funicular:"Funicular"},highSpeed:"High-speed line",service:"Siding",singleTrack:"single track",tracks:"{count} tracks",overhead:"overhead wire {height} m above the rail",overheadVoltage:"overhead wire at {voltage}, {height} m above the rail",thirdRail:"third rail",thirdRailVoltage:"third rail at {voltage}",notElectrified:"not electrified",gauge:"{mm} mm gauge",metreGauge:"metre gauge",distance:"{distance} away"},credits:"Credits",notAVideo:"This is not a video",isASimulation:"It is a real-time simulation."};export{r as sceneNames_en};
@@ -1 +1 @@
1
- import{V as a,h as o}from"./rr0-sighting.mjs";const r={bodies:{sun:"Sol",moon:"Luna",Venus:"Venus",Mars:"Marte",Jupiter:"Júpiter",Saturn:"Saturno"},stars:{Sirius:"Sirio",Canopus:"Canopo",Arcturus:"Arturo",Capella:"Capela",Procyon:"Proción",Aldebaran:"Aldebarán",Spica:"Espiga",Pollux:"Pólux",Castor:"Cástor",Regulus:"Régulo"},comets:{"halley-1910":"cometa Halley","brooks-1911":"cometa Brooks","skjellerup-maristany-1927":"cometa Skjellerup-Maristany","de-kock-paraskevopoulos-1941":"cometa de Kock-Paraskevopoulos","southern-1947":"cometa austral","eclipse-1948":"cometa del eclipse","arend-roland-1957":"cometa Arend-Roland","mrkos-1957":"cometa Mrkos","seki-lines-1962":"cometa Seki-Lines","ikeya-seki-1965":"cometa Ikeya-Seki","bennett-1970":"cometa Bennett","white-ortiz-bolelli-1970":"cometa White-Ortiz-Bolelli","kohoutek-1973":"cometa Kohoutek","west-1976":"cometa West","iras-araki-alcock-1983":"cometa IRAS-Araki-Alcock","halley-1986":"cometa Halley","hyakutake-1996":"cometa Hyakutake","hale-bopp-1997":"cometa Hale-Bopp","mcnaught-2007":"cometa McNaught","lovejoy-2011":"cometa Lovejoy","panstarrs-2013":"cometa PANSTARRS","neowise-2020":"cometa NEOWISE","tsuchinshan-atlas-2024":"cometa Tsuchinshan-ATLAS"},novae:{"sn-1006":"supernova de 1006","sn-1054":"supernova de 1054","sn-1181":"supernova de 1181","sn-1572":"supernova de Tycho","sn-1604":"supernova de Kepler","t-crb-1866":"nova de la Corona Boreal 1866","t-aur-1891":"nova de Auriga 1891","gk-per-1901":"nova de Perseo 1901","dn-gem-1912":"nova de Géminis 1912","v603-aql-1918":"nova del Águila 1918","v476-cyg-1920":"nova del Cisne 1920","rr-pic-1925":"nova del Pintor 1925","dq-her-1934":"nova de Hércules 1934","cp-lac-1936":"nova del Lagarto 1936","cp-pup-1942":"nova de la Popa 1942","t-crb-1946":"nova de la Corona Boreal 1946","v446-her-1960":"nova de Hércules 1960","v533-her-1963":"nova de Hércules 1963","hr-del-1967":"nova del Delfín 1967","lv-vul-1968":"nova de la Zorra 1968","fh-ser-1970":"nova de la Serpiente 1970","v1500-cyg-1975":"nova del Cisne 1975","v842-cen-1986":"nova del Centauro 1986","sn-1987a":"supernova 1987A","v1974-cyg-1992":"nova del Cisne 1992","v382-vel-1999":"nova de las Velas 1999","v1494-aql-1999":"nova del Águila 1999","v4743-sgr-2002":"nova de Sagitario 2002","rs-oph-2006":"nova de Ofiuco 2006","v1280-sco-2007":"nova de Escorpio 2007","v339-del-2013":"nova del Delfín 2013","v1369-cen-2013":"nova del Centauro 2013","rs-oph-2021":"nova de Ofiuco 2021"},satelliteClasses:{echo:"los globos Echo","iridium-flares":"los destellos de los Iridium",iss:"la Estación Espacial Internacional","starlink-trains":"los trenes de Starlink"},showers:{quadrantids:"Cuadrántidas",lyrids:"Líridas de abril","eta-aquariids":"Eta Acuáridas","alpha-capricornids":"Alfa Capricórnidas","southern-delta-aquariids":"Delta Acuáridas del Sur",perseids:"Perseidas","southern-taurids":"Táuridas del Sur",draconids:"Dracónidas de octubre",orionids:"Oriónidas","northern-taurids":"Táuridas del Norte",leonids:"Leónidas",geminids:"Gemínidas",ursids:"Úrsidas"},lightRigs:{airliner:"Avión de pasajeros",helicopter:"Helicóptero","car-headlights":"Coche, faros encendidos","car-hazards":"Coche, luces de emergencia","emergency-beacons":"Rotativos de vehículo de emergencia","traffic-signal":"Semáforo","pedestrian-signal":"Semáforo peatonal",streetlamp:"Farola"},instruments:{eye:"A simple vista","rectilinear-lens":"Cámara, modelo desconocido","roamer-1-120":"Roamer 1, película 120","instamatic-126":"Instamatic, película 126","cine-35mm-broadcast":"Cámara de 35 mm, vista en televisión","slr-35mm-50":"Réflex 35 mm, objetivo 50 mm","slr-35mm-zoom":"Réflex 35 mm, zoom 70-210 mm","phone-landscape":"Teléfono, en horizontal","phone-portrait":"Teléfono, en vertical",dashcam:"Cámara de salpicadero",cctv:"Cámara de vigilancia",...o.names(),...a.names()},decorKinds:{building:"Edificio",tree:"Árbol",shrub:"Arbusto",bridge:"Puente",wire:"Línea aérea",crop:"Hilera de cultivo",terrace:"Bancal (terraza)",mound:"Montón de piedras",wall:"Muro de piedra seca",streetlight:"Farola",trafficlight:"Semáforo",peak:"Cumbre",crossing:"Paso de peatones",roadsign:"Señal de tráfico",vehicle:"Vehículo",observer:"Testigo",aircraft:"Aeronave",entity:"Ser"},compassPoints:["N","NNE","NE","ENE","E","ESE","SE","SSE","S","SSO","SO","OSO","O","ONO","NO","NNO"],towards:e=>`al ${e}`,starTooltip:"{name} — mag {mag}, {alt}° sobre el horizonte",starTooltipBelow:"{name} — mag {mag}, {alt}° bajo la horizontal",decorTooltip:"{name} — {size}, a {distance}",satelliteTooltip:"{name} — satélite, mag {mag}, a {height} km de altitud",afterimageTooltip:{name:"Imagen remanente, en el ojo",detail:"{name}: donde cayó la imagen de una luz más brillante que el Sol, el pigmento de la retina está decolorado: durante unos segundos sigue brillando, blanca y luego de colores, y después lo que se ve allí parece más oscuro. Se queda en el mismo lugar del campo de visión hacia donde se gire la mirada, y tarda minutos en borrarse."},ghostTooltip:{ghost:"Reflejo: {name}",halo:"Halo: {name}",double:"Doble: {name}",unnamed:"una luz",detail:"{name}. {cause}, {where}.",causes:{lens:"Reflejo entre dos superficies del objetivo",sensor:"Reflejo del sensor devuelto por su vidrio protector",filter:"Reflejo del sensor devuelto por el filtro",glass:"Reflejo entre las dos caras del cristal delante del objetivo",drops:"Luz difundida por las gotas sobre el cristal",condensation:"Luz difundida por el vaho sobre el cristal",dirt:"Luz difundida por la suciedad sobre el cristal"},opposite:"al otro lado del centro de la imagen respecto a la luz",sameSide:"del mismo lado del centro que la luz",around:"alrededor de la luz",drop:{lens:"Gota en el objetivo",filter:"Gota en el filtro",window:"Gota en el cristal",windscreen:"Gota en el parabrisas"},dropDetail:"{name}. Como una pequeña lente, muestra al revés y desenfocado lo que hay al otro lado de ella, en lugar de lo que hay detrás."},opticsTooltips:{halo22:"Halo de 22° — un anillo alrededor del Sol, por luz desviada en cristales de hielo hexagonales de los cirros; su borde interior es rojo, a 21,7°",halo46:"Halo de 46° — un anillo más raro y débil: la luz entra por una cara lateral del cristal y sale por una cara del extremo",oddRadius:"Halo de {angle}° — un anillo de radio impar, raro y débil, hecho por cristales de hielo con extremos piramidales",parhelion:"Parhelio — una mancha brillante de colores junto al Sol, a su altura, por placas de hielo que caen planas; rojo hacia el Sol",parhelion120:"Parhelio de 120° — una mancha blanca débil a 120° del Sol, por luz reflejada dentro de placas planas",upperTangentArc:"Arco tangente superior — un arco brillante apoyado sobre el halo de 22°, por columnas tumbadas en horizontal",lowerTangentArc:"Arco tangente inferior — un arco que toca la base del halo de 22°, por columnas tumbadas en horizontal",circumzenithal:"Arco circuncenital — una banda de colores vivos cerca del cenit, por luz que entra por la cara superior de placas planas (solo con el Sol bajo 32°)",circumhorizontal:"Arco circunhorizontal — una banda de colores baja en el cielo, por luz que entra por la cara lateral de placas planas (solo con el Sol sobre 58°)",parhelicCircle:"Círculo parhélico — un círculo blanco alrededor de todo el cielo a la altura del Sol, por reflejos en las caras verticales de placas planas",pillar:"Pilar de luz — una columna de luz sobre el Sol, por reflejos en placas planas ligeramente inclinadas",subsun:"Subsol — una imagen del Sol bajo el horizonte, por reflejos en las caras planas de las placas"},trafficTooltip:{unnamed:"Aeronave {hex}",altitude:"{value} ft",speed:"{value} kt",heading:"rumbo {value}°",position:"a {distance} km, {elevation}° sobre el horizonte, {bearing}",heard:"Se oye a {level} dB(A), salió del avión hace {delay} s, {lag}° detrás de él: {character}{pitch}",rumble:"un rumor grave, nada por encima de {cutoff} Hz",muffled:"un ruido sordo, nada por encima de {cutoff} Hz",broad:"un rugido ancho",pitchHigher:", sonido {percent} % más agudo",pitchLower:", sonido {percent} % más grave",inaudible:"Inaudible aquí: {level} dB(A) frente a {ambient} dB(A) de ruido ambiente",soundUnknown:"Sonido no calculable: el avión aún no estaba registrado cuando salió",contrailPersistent:"Deja una estela que dura: el aire está sobresaturado respecto al hielo ({rhi} % respecto al hielo)",contrailShort:"Deja una estela breve: el aire está seco respecto al hielo ({rhi} % respecto al hielo)",military:"militar",restricted:"identidad oculta por su propietario",candidate:"Un candidato compatible, no una identificación"},railwayTooltip:{kinds:{rail:"Vía férrea",light_rail:"Metro ligero",tram:"Tranvía",subway:"Metro",funicular:"Funicular"},highSpeed:"Línea de alta velocidad",service:"Vía de servicio",singleTrack:"vía única",tracks:"{count} vías",overhead:"catenaria, hilo de contacto a {height} m sobre el carril",overheadVoltage:"catenaria a {voltage}, hilo de contacto a {height} m sobre el carril",thirdRail:"tercer carril",thirdRailVoltage:"tercer carril a {voltage}",notElectrified:"sin electrificar",gauge:"ancho de {mm} mm",metreGauge:"vía métrica",distance:"a {distance}"},credits:"Créditos",notAVideo:"Esto no es un vídeo",isASimulation:"Es una simulación en tiempo real."};export{r as sceneNames_es};
1
+ import{V as a,k as o}from"./rr0-sighting.mjs";const r={bodies:{sun:"Sol",moon:"Luna",Venus:"Venus",Mars:"Marte",Jupiter:"Júpiter",Saturn:"Saturno"},stars:{Sirius:"Sirio",Canopus:"Canopo",Arcturus:"Arturo",Capella:"Capela",Procyon:"Proción",Aldebaran:"Aldebarán",Spica:"Espiga",Pollux:"Pólux",Castor:"Cástor",Regulus:"Régulo"},comets:{"halley-1910":"cometa Halley","brooks-1911":"cometa Brooks","skjellerup-maristany-1927":"cometa Skjellerup-Maristany","de-kock-paraskevopoulos-1941":"cometa de Kock-Paraskevopoulos","southern-1947":"cometa austral","eclipse-1948":"cometa del eclipse","arend-roland-1957":"cometa Arend-Roland","mrkos-1957":"cometa Mrkos","seki-lines-1962":"cometa Seki-Lines","ikeya-seki-1965":"cometa Ikeya-Seki","bennett-1970":"cometa Bennett","white-ortiz-bolelli-1970":"cometa White-Ortiz-Bolelli","kohoutek-1973":"cometa Kohoutek","west-1976":"cometa West","iras-araki-alcock-1983":"cometa IRAS-Araki-Alcock","halley-1986":"cometa Halley","hyakutake-1996":"cometa Hyakutake","hale-bopp-1997":"cometa Hale-Bopp","mcnaught-2007":"cometa McNaught","lovejoy-2011":"cometa Lovejoy","panstarrs-2013":"cometa PANSTARRS","neowise-2020":"cometa NEOWISE","tsuchinshan-atlas-2024":"cometa Tsuchinshan-ATLAS"},novae:{"sn-1006":"supernova de 1006","sn-1054":"supernova de 1054","sn-1181":"supernova de 1181","sn-1572":"supernova de Tycho","sn-1604":"supernova de Kepler","t-crb-1866":"nova de la Corona Boreal 1866","t-aur-1891":"nova de Auriga 1891","gk-per-1901":"nova de Perseo 1901","dn-gem-1912":"nova de Géminis 1912","v603-aql-1918":"nova del Águila 1918","v476-cyg-1920":"nova del Cisne 1920","rr-pic-1925":"nova del Pintor 1925","dq-her-1934":"nova de Hércules 1934","cp-lac-1936":"nova del Lagarto 1936","cp-pup-1942":"nova de la Popa 1942","t-crb-1946":"nova de la Corona Boreal 1946","v446-her-1960":"nova de Hércules 1960","v533-her-1963":"nova de Hércules 1963","hr-del-1967":"nova del Delfín 1967","lv-vul-1968":"nova de la Zorra 1968","fh-ser-1970":"nova de la Serpiente 1970","v1500-cyg-1975":"nova del Cisne 1975","v842-cen-1986":"nova del Centauro 1986","sn-1987a":"supernova 1987A","v1974-cyg-1992":"nova del Cisne 1992","v382-vel-1999":"nova de las Velas 1999","v1494-aql-1999":"nova del Águila 1999","v4743-sgr-2002":"nova de Sagitario 2002","rs-oph-2006":"nova de Ofiuco 2006","v1280-sco-2007":"nova de Escorpio 2007","v339-del-2013":"nova del Delfín 2013","v1369-cen-2013":"nova del Centauro 2013","rs-oph-2021":"nova de Ofiuco 2021"},satelliteClasses:{echo:"los globos Echo","iridium-flares":"los destellos de los Iridium",iss:"la Estación Espacial Internacional","starlink-trains":"los trenes de Starlink"},showers:{quadrantids:"Cuadrántidas",lyrids:"Líridas de abril","eta-aquariids":"Eta Acuáridas","alpha-capricornids":"Alfa Capricórnidas","southern-delta-aquariids":"Delta Acuáridas del Sur",perseids:"Perseidas","southern-taurids":"Táuridas del Sur",draconids:"Dracónidas de octubre",orionids:"Oriónidas","northern-taurids":"Táuridas del Norte",leonids:"Leónidas",geminids:"Gemínidas",ursids:"Úrsidas"},lightRigs:{airliner:"Avión de pasajeros",helicopter:"Helicóptero","car-headlights":"Coche, faros encendidos","car-hazards":"Coche, luces de emergencia","emergency-beacons":"Rotativos de vehículo de emergencia","traffic-signal":"Semáforo","pedestrian-signal":"Semáforo peatonal",streetlamp:"Farola"},instruments:{eye:"A simple vista","rectilinear-lens":"Cámara, modelo desconocido","roamer-1-120":"Roamer 1, película 120","instamatic-126":"Instamatic, película 126","cine-35mm-broadcast":"Cámara de 35 mm, vista en televisión","slr-35mm-50":"Réflex 35 mm, objetivo 50 mm","slr-35mm-zoom":"Réflex 35 mm, zoom 70-210 mm","phone-landscape":"Teléfono, en horizontal","phone-portrait":"Teléfono, en vertical",dashcam:"Cámara de salpicadero",cctv:"Cámara de vigilancia",...o.names(),...a.names()},decorKinds:{building:"Edificio",tree:"Árbol",shrub:"Arbusto",bridge:"Puente",wire:"Línea aérea",crop:"Hilera de cultivo",terrace:"Bancal (terraza)",mound:"Montón de piedras",wall:"Muro de piedra seca",streetlight:"Farola",trafficlight:"Semáforo",peak:"Cumbre",crossing:"Paso de peatones",roadsign:"Señal de tráfico",vehicle:"Vehículo",observer:"Testigo",aircraft:"Aeronave",entity:"Ser"},compassPoints:["N","NNE","NE","ENE","E","ESE","SE","SSE","S","SSO","SO","OSO","O","ONO","NO","NNO"],towards:e=>`al ${e}`,starTooltip:"{name} — mag {mag}, {alt}° sobre el horizonte",starTooltipBelow:"{name} — mag {mag}, {alt}° bajo la horizontal",decorTooltip:"{name} — {size}, a {distance}",satelliteTooltip:"{name} — satélite, mag {mag}, a {height} km de altitud",afterimageTooltip:{name:"Imagen remanente, en el ojo",detail:"{name}: donde cayó la imagen de una luz más brillante que el Sol, el pigmento de la retina está decolorado: durante unos segundos sigue brillando, blanca y luego de colores, y después lo que se ve allí parece más oscuro. Se queda en el mismo lugar del campo de visión hacia donde se gire la mirada, y tarda minutos en borrarse."},ghostTooltip:{ghost:"Reflejo: {name}",halo:"Halo: {name}",double:"Doble: {name}",unnamed:"una luz",detail:"{name}. {cause}, {where}.",causes:{lens:"Reflejo entre dos superficies del objetivo",sensor:"Reflejo del sensor devuelto por su vidrio protector",filter:"Reflejo del sensor devuelto por el filtro",glass:"Reflejo entre las dos caras del cristal delante del objetivo",drops:"Luz difundida por las gotas sobre el cristal",condensation:"Luz difundida por el vaho sobre el cristal",dirt:"Luz difundida por la suciedad sobre el cristal"},opposite:"al otro lado del centro de la imagen respecto a la luz",sameSide:"del mismo lado del centro que la luz",around:"alrededor de la luz",drop:{lens:"Gota en el objetivo",filter:"Gota en el filtro",window:"Gota en el cristal",windscreen:"Gota en el parabrisas"},dropDetail:"{name}. Como una pequeña lente, muestra al revés y desenfocado lo que hay al otro lado de ella, en lugar de lo que hay detrás."},opticsTooltips:{halo22:"Halo de 22° — un anillo alrededor del Sol, por luz desviada en cristales de hielo hexagonales de los cirros; su borde interior es rojo, a 21,7°",halo46:"Halo de 46° — un anillo más raro y débil: la luz entra por una cara lateral del cristal y sale por una cara del extremo",oddRadius:"Halo de {angle}° — un anillo de radio impar, raro y débil, hecho por cristales de hielo con extremos piramidales",parhelion:"Parhelio — una mancha brillante de colores junto al Sol, a su altura, por placas de hielo que caen planas; rojo hacia el Sol",parhelion120:"Parhelio de 120° — una mancha blanca débil a 120° del Sol, por luz reflejada dentro de placas planas",upperTangentArc:"Arco tangente superior — un arco brillante apoyado sobre el halo de 22°, por columnas tumbadas en horizontal",lowerTangentArc:"Arco tangente inferior — un arco que toca la base del halo de 22°, por columnas tumbadas en horizontal",circumzenithal:"Arco circuncenital — una banda de colores vivos cerca del cenit, por luz que entra por la cara superior de placas planas (solo con el Sol bajo 32°)",circumhorizontal:"Arco circunhorizontal — una banda de colores baja en el cielo, por luz que entra por la cara lateral de placas planas (solo con el Sol sobre 58°)",parhelicCircle:"Círculo parhélico — un círculo blanco alrededor de todo el cielo a la altura del Sol, por reflejos en las caras verticales de placas planas",pillar:"Pilar de luz — una columna de luz sobre el Sol, por reflejos en placas planas ligeramente inclinadas",subsun:"Subsol — una imagen del Sol bajo el horizonte, por reflejos en las caras planas de las placas"},trafficTooltip:{unnamed:"Aeronave {hex}",altitude:"{value} ft",speed:"{value} kt",heading:"rumbo {value}°",position:"a {distance} km, {elevation}° sobre el horizonte, {bearing}",heard:"Se oye a {level} dB(A), salió del avión hace {delay} s, {lag}° detrás de él: {character}{pitch}",rumble:"un rumor grave, nada por encima de {cutoff} Hz",muffled:"un ruido sordo, nada por encima de {cutoff} Hz",broad:"un rugido ancho",pitchHigher:", sonido {percent} % más agudo",pitchLower:", sonido {percent} % más grave",inaudible:"Inaudible aquí: {level} dB(A) frente a {ambient} dB(A) de ruido ambiente",soundUnknown:"Sonido no calculable: el avión aún no estaba registrado cuando salió",contrailPersistent:"Deja una estela que dura: el aire está sobresaturado respecto al hielo ({rhi} % respecto al hielo)",contrailShort:"Deja una estela breve: el aire está seco respecto al hielo ({rhi} % respecto al hielo)",military:"militar",restricted:"identidad oculta por su propietario",candidate:"Un candidato compatible, no una identificación"},railwayTooltip:{kinds:{rail:"Vía férrea",light_rail:"Metro ligero",tram:"Tranvía",subway:"Metro",funicular:"Funicular"},highSpeed:"Línea de alta velocidad",service:"Vía de servicio",singleTrack:"vía única",tracks:"{count} vías",overhead:"catenaria, hilo de contacto a {height} m sobre el carril",overheadVoltage:"catenaria a {voltage}, hilo de contacto a {height} m sobre el carril",thirdRail:"tercer carril",thirdRailVoltage:"tercer carril a {voltage}",notElectrified:"sin electrificar",gauge:"ancho de {mm} mm",metreGauge:"vía métrica",distance:"a {distance}"},credits:"Créditos",notAVideo:"Esto no es un vídeo",isASimulation:"Es una simulación en tiempo real."};export{r as sceneNames_es};