@rr0/ufoathome 0.192.1 → 0.194.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.
- package/dist-embed-interview/rr0-interview.mjs +3 -3
- package/dist-embed-scene/rr0-scene.mjs +306 -306
- package/dist-embed-sighting/{CaseReportExport-BW8-bkTQ.js → CaseReportExport-B9iaGKNP.js} +1 -1
- package/dist-embed-sighting/rr0-sighting.mjs +344 -329
- package/dist-embed-sighting-editor/{AdsbLolArchiveProvider-BrZzIuec.js → AdsbLolArchiveProvider--KjPxNqw.js} +1 -1
- package/dist-embed-sighting-editor/{BallesterGuaspAssessor-CXvIvYxV.js → BallesterGuaspAssessor-BTmq0r-G.js} +1 -1
- package/dist-embed-sighting-editor/{BeamEditor-5-OlhNfL.js → BeamEditor-CI8-9VOc.js} +1 -1
- package/dist-embed-sighting-editor/{BeamSystem-BGdR-Xez.js → BeamSystem-odg570aR.js} +1 -1
- package/dist-embed-sighting-editor/BirdEditor-DV3ndYff.js +16 -0
- package/dist-embed-sighting-editor/{BirdFlock-DtshFXGT.js → BirdFlock-O7K_g8y7.js} +1 -1
- package/dist-embed-sighting-editor/{BodyEditor-Dn5HrH2t.js → BodyEditor-COLTBHzX.js} +1 -1
- package/dist-embed-sighting-editor/{CaseEditorMessages_en-DrJY0M8h.js → CaseEditorMessages_en-CoFukfwf.js} +1 -1
- package/dist-embed-sighting-editor/{CaseEditorMessages_es-j8EeOBq6.js → CaseEditorMessages_es-DZptbzB7.js} +1 -1
- package/dist-embed-sighting-editor/{CaseEditorMessages_fr-BkwEF9mu.js → CaseEditorMessages_fr-DXl2GNmR.js} +1 -1
- package/dist-embed-sighting-editor/{CaseEditorMessages_it-d3Z0PBEw.js → CaseEditorMessages_it-ss10VmRM.js} +1 -1
- package/dist-embed-sighting-editor/CaseElement-DzwFIDZZ.js +100 -0
- package/dist-embed-sighting-editor/CaseMessages_en-BbbbikHH.js +1 -0
- package/dist-embed-sighting-editor/CaseMessages_es-AHBxl8Ka.js +1 -0
- package/dist-embed-sighting-editor/CaseMessages_fr-CD33PQCH.js +1 -0
- package/dist-embed-sighting-editor/CaseMessages_it-DyMACGSU.js +1 -0
- package/dist-embed-sighting-editor/{CaseReportExport-BfQWru8L.js → CaseReportExport-D0GXupCT.js} +2 -2
- package/dist-embed-sighting-editor/{ContrailSystem-BTVyJpmn.js → ContrailSystem-BddkU7fj.js} +1 -1
- package/dist-embed-sighting-editor/{ControlPasses-DiQAXMzD.js → ControlPasses-CNlCUT1L.js} +1 -1
- package/dist-embed-sighting-editor/{CoverageAssessor-CJQzNdyr.js → CoverageAssessor-DjY8iKp5.js} +1 -1
- package/dist-embed-sighting-editor/DroneEditor-DRsM2ash.js +16 -0
- package/dist-embed-sighting-editor/{DroneFlight-tXCk1Tg1.js → DroneFlight-Fr4Vgso3.js} +1 -1
- package/dist-embed-sighting-editor/{Flightradar24Provider-DUVcPAF2.js → Flightradar24Provider-BxeduRam.js} +1 -1
- package/dist-embed-sighting-editor/GLTFLoader-C6nlGTTi.js +1 -0
- package/dist-embed-sighting-editor/{GenerativeKitMessages-I8xH2ec9.js → GenerativeKitMessages-B8L7U7gD.js} +1 -1
- package/dist-embed-sighting-editor/{GeoExportTexts-DAllttgw.js → GeoExportTexts-DrGdI2OF.js} +1 -1
- package/dist-embed-sighting-editor/{GeoJsonExport-_yjIEd4F.js → GeoJsonExport-BZ-0v8fM.js} +1 -1
- package/dist-embed-sighting-editor/GeographicFigures-DqhWddS9.js +1 -0
- package/dist-embed-sighting-editor/{HeadlightSystem-DRq40K7R.js → HeadlightSystem-DI5wHYZu.js} +1 -1
- package/dist-embed-sighting-editor/{HynekAssessor-PxE7JR1h.js → HynekAssessor-DlXalbph.js} +1 -1
- package/dist-embed-sighting-editor/InterviewEditorElement-Bbkze5KE.js +240 -0
- package/dist-embed-sighting-editor/InterviewElement-B3tm7y49.js +31 -0
- package/dist-embed-sighting-editor/{KmlExport-dpml2tIJ.js → KmlExport-Bh4eTycx.js} +1 -1
- package/dist-embed-sighting-editor/LanternEditor-M887ltwe.js +24 -0
- package/dist-embed-sighting-editor/{LaserBeam-CadJcSMd.js → LaserBeam-Drpkr84G.js} +1 -1
- package/dist-embed-sighting-editor/LaunchEditor-BjAk4XZR.js +22 -0
- package/dist-embed-sighting-editor/{LaunchPlume-C7My5ccR.js → LaunchPlume-CrzPcqw7.js} +1 -1
- package/dist-embed-sighting-editor/{LaunchSimulation-45Z9GUBF.js → LaunchSimulation-C1ZWpKZT.js} +1 -1
- package/dist-embed-sighting-editor/{ModelSource-CzGHu4XS.js → ModelSource-Bko_3OJt.js} +1 -1
- package/dist-embed-sighting-editor/{ModelThumbnails-CNO_j-KM.js → ModelThumbnails-DSshyLu2.js} +1 -1
- package/dist-embed-sighting-editor/{ModelViewer-yfIxofpG.js → ModelViewer-_yhAYvNy.js} +1 -1
- package/dist-embed-sighting-editor/{ModuleConformance-C9DED8Lk.js → ModuleConformance-B6iFVb8X.js} +2 -2
- package/dist-embed-sighting-editor/{ModuleSession-Cxe0BJue.js → ModuleSession-jKFl1FMo.js} +3 -3
- package/dist-embed-sighting-editor/ModuleThree-Fvr5G-Yh.js +1 -0
- package/dist-embed-sighting-editor/{ModulesPanelElement-DgbOYqaS.js → ModulesPanelElement-VPRCdjmv.js} +3 -3
- package/dist-embed-sighting-editor/{NearestApproach-EbQIYGTt.js → NearestApproach-O8k2n_qL.js} +1 -1
- package/dist-embed-sighting-editor/PictureRegistration-DBBH_E6I.js +1 -0
- package/dist-embed-sighting-editor/{PoherAssessor-BisQ5ybV.js → PoherAssessor-sTJEnlmb.js} +1 -1
- package/dist-embed-sighting-editor/{RailwaySystem-CIAIBvLT.js → RailwaySystem-BZqNSSFA.js} +1 -1
- package/dist-embed-sighting-editor/ReentryEditor-DfDGpL5C.js +28 -0
- package/dist-embed-sighting-editor/{ReentrySimulation-Crd-CW_o.js → ReentrySimulation-BuUK0niI.js} +1 -1
- package/dist-embed-sighting-editor/{ReferenceSystem-DUIJceGg.js → ReferenceSystem-DvcQp167.js} +1 -1
- package/dist-embed-sighting-editor/{RoadMarkings-D9-6Cy9S.js → RoadMarkings-BGK7ToZP.js} +1 -1
- package/dist-embed-sighting-editor/SightingEditorMessages_en-CTQYcybj.js +12 -0
- package/dist-embed-sighting-editor/SightingEditorMessages_es-D-ASD5a3.js +12 -0
- package/dist-embed-sighting-editor/SightingEditorMessages_fr-DjUByAq4.js +12 -0
- package/dist-embed-sighting-editor/SightingEditorMessages_it-Eat0U-4p.js +12 -0
- package/dist-embed-sighting-editor/SightingElement-BfxNhmfn.js +693 -0
- package/dist-embed-sighting-editor/SightingLabels_en-oIpytoq_.js +1 -0
- package/dist-embed-sighting-editor/SightingLabels_es-DUh1CTXl.js +1 -0
- package/dist-embed-sighting-editor/SightingLabels_fr-D69zENbW.js +1 -0
- package/dist-embed-sighting-editor/SightingLabels_it-COLZ2Qth.js +1 -0
- package/dist-embed-sighting-editor/SightingMessages_en-CYzanHjT.js +1 -0
- package/dist-embed-sighting-editor/SightingMessages_es-hjvESK6f.js +1 -0
- package/dist-embed-sighting-editor/SightingMessages_fr-BtfWbIP7.js +1 -0
- package/dist-embed-sighting-editor/SightingMessages_it-Bqm4pewZ.js +1 -0
- package/dist-embed-sighting-editor/{SkyLantern-De_MXfQz.js → SkyLantern-B7UlFgmB.js} +1 -1
- package/dist-embed-sighting-editor/{TraceSystem-Ba5H90GB.js → TraceSystem-vZF4B5EC.js} +2 -2
- package/dist-embed-sighting-editor/{UfoMessages_en-FAvzKxmR.js → UfoMessages_en-JeMK-39o.js} +1 -1
- package/dist-embed-sighting-editor/VideoButton-Kxg7pF1Y.js +1 -0
- package/dist-embed-sighting-editor/{WaterSystem-Dpdw46hF.js → WaterSystem-DSWmZbiL.js} +2 -2
- package/dist-embed-sighting-editor/{interviewImport-CgWyTdKb.js → interviewImport-BlSMFEw_.js} +1 -1
- package/dist-embed-sighting-editor/interviewJson-CsMHIcZ-.js +8 -0
- package/dist-embed-sighting-editor/rr0-sighting-editor.mjs +456 -393
- package/dist-embed-sighting-editor/{surroundingsSources-YIawBCws.js → surroundingsSources-z7680fTA.js} +1 -1
- package/dist-embed-sighting-editor/{trafficRuntime-DwnTE9-7.js → trafficRuntime-C5BXL-G6.js} +1 -1
- package/dist-embed-ufoathome/Account-C4jhsVtN.js +1 -0
- package/dist-embed-ufoathome/AdsbLolArchiveProvider-DXRO-h2K.js +1 -0
- package/dist-embed-ufoathome/AssemblyAiTranscriptionProvider-o2kkPD5o.js +1 -0
- package/dist-embed-ufoathome/BallesterGuaspAssessor-ZSDHMhXN.js +1 -0
- package/dist-embed-ufoathome/BeamEditor-BvF4J204.js +30 -0
- package/dist-embed-ufoathome/BeamEditorMessages_en-DDvPWAdd.js +1 -0
- package/dist-embed-ufoathome/BeamEditorMessages_es-BhCkhUkN.js +1 -0
- package/dist-embed-ufoathome/BeamEditorMessages_fr-CtX6uP-x.js +1 -0
- package/dist-embed-ufoathome/BeamEditorMessages_it-DVweRQFi.js +1 -0
- package/dist-embed-ufoathome/BeamKindMessages_en-5RezNkyz.js +1 -0
- package/dist-embed-ufoathome/BeamKindMessages_es-B5vSWVjK.js +1 -0
- package/dist-embed-ufoathome/BeamKindMessages_fr--28-36OI.js +1 -0
- package/dist-embed-ufoathome/BeamKindMessages_it-X53Fuf2U.js +1 -0
- package/dist-embed-ufoathome/BeamParameterTexts_en-DZB75ouZ.js +1 -0
- package/dist-embed-ufoathome/BeamParameterTexts_es-AeZmsufG.js +1 -0
- package/dist-embed-ufoathome/BeamParameterTexts_fr-BHG3fW40.js +1 -0
- package/dist-embed-ufoathome/BeamParameterTexts_it-CPwmQX-g.js +1 -0
- package/dist-embed-ufoathome/BeamSystem-Yg5JRiCT.js +1 -0
- package/dist-embed-ufoathome/BirdEditor-6vr7bLHy.js +16 -0
- package/dist-embed-ufoathome/BirdEditorMessages_en-CN1OJud9.js +1 -0
- package/dist-embed-ufoathome/BirdEditorMessages_es-DDEnjRrz.js +1 -0
- package/dist-embed-ufoathome/BirdEditorMessages_fr-hL72V8wm.js +1 -0
- package/dist-embed-ufoathome/BirdEditorMessages_it-BmLyiPYp.js +1 -0
- package/dist-embed-ufoathome/BirdFlock-ByBkJV35.js +1 -0
- package/dist-embed-ufoathome/BirdKindMessages_en-c_-L7frF.js +1 -0
- package/dist-embed-ufoathome/BirdKindMessages_es-8Zo2t0o4.js +1 -0
- package/dist-embed-ufoathome/BirdKindMessages_fr-C1TuqqEj.js +1 -0
- package/dist-embed-ufoathome/BirdKindMessages_it-DQZcrCkf.js +1 -0
- package/dist-embed-ufoathome/BirdParameterTexts_en-C6FkYUww.js +1 -0
- package/dist-embed-ufoathome/BirdParameterTexts_es-T8JyeNlI.js +1 -0
- package/dist-embed-ufoathome/BirdParameterTexts_fr-BiTR-olu.js +1 -0
- package/dist-embed-ufoathome/BirdParameterTexts_it-oQY4DX6B.js +1 -0
- package/dist-embed-ufoathome/BodyEditor-CRJFVGzZ.js +28 -0
- package/dist-embed-ufoathome/BodyEditorMessages_en-CckxSS1L.js +1 -0
- package/dist-embed-ufoathome/BodyEditorMessages_es-B8GlFFBo.js +1 -0
- package/dist-embed-ufoathome/BodyEditorMessages_fr-638ypdqf.js +1 -0
- package/dist-embed-ufoathome/BodyEditorMessages_it-SKpMkHFI.js +1 -0
- package/dist-embed-ufoathome/BodyParameterTexts_en-CKiFdpaz.js +1 -0
- package/dist-embed-ufoathome/BodyParameterTexts_es-DT9XO1Hc.js +1 -0
- package/dist-embed-ufoathome/BodyParameterTexts_fr-B5jLsE0g.js +1 -0
- package/dist-embed-ufoathome/BodyParameterTexts_it-iyJGx4Ta.js +1 -0
- package/dist-embed-ufoathome/BrowserWhisperProvider-Dn44ZE45.js +1 -0
- package/dist-embed-ufoathome/CaseEditorElement-MwO-zwnP.js +3049 -0
- package/dist-embed-ufoathome/CaseEditorMessages_en-CoFukfwf.js +1 -0
- package/dist-embed-ufoathome/CaseEditorMessages_es-DZptbzB7.js +1 -0
- package/dist-embed-ufoathome/CaseEditorMessages_fr-DXl2GNmR.js +1 -0
- package/dist-embed-ufoathome/CaseEditorMessages_it-ss10VmRM.js +1 -0
- package/dist-embed-ufoathome/CaseElement-Ch0QzF7-.js +100 -0
- package/dist-embed-ufoathome/CaseExportMessages_en-jHlu58Y7.js +1 -0
- package/dist-embed-ufoathome/CaseExportMessages_es-dCQQFgjq.js +1 -0
- package/dist-embed-ufoathome/CaseExportMessages_fr-sDfEgjWg.js +1 -0
- package/dist-embed-ufoathome/CaseExportMessages_it-BJaglZtP.js +1 -0
- package/dist-embed-ufoathome/CaseMessages_en-BbbbikHH.js +1 -0
- package/dist-embed-ufoathome/CaseMessages_es-AHBxl8Ka.js +1 -0
- package/dist-embed-ufoathome/CaseMessages_fr-CD33PQCH.js +1 -0
- package/dist-embed-ufoathome/CaseMessages_it-DyMACGSU.js +1 -0
- package/dist-embed-ufoathome/CaseReportExport-D9YyGZHP.js +66 -0
- package/dist-embed-ufoathome/CaseReportTexts_en-DlN7p1pC.js +1 -0
- package/dist-embed-ufoathome/CaseReportTexts_es-CncAEaey.js +1 -0
- package/dist-embed-ufoathome/CaseReportTexts_fr-B5nP6RlP.js +1 -0
- package/dist-embed-ufoathome/CaseReportTexts_it-Dc-oPmXB.js +1 -0
- package/dist-embed-ufoathome/CaseTimeline-CnP5rqaK.js +142 -0
- package/dist-embed-ufoathome/ClaudeNarrativeTexts_en-CBLJZ7b6.js +1 -0
- package/dist-embed-ufoathome/ClaudeNarrativeTexts_es-BDV0GimU.js +1 -0
- package/dist-embed-ufoathome/ClaudeNarrativeTexts_fr-DiKzTF9T.js +1 -0
- package/dist-embed-ufoathome/ClaudeNarrativeTexts_it-DwxjRDVG.js +1 -0
- package/dist-embed-ufoathome/CloudEditorMessages_en-SmcRKW1O.js +1 -0
- package/dist-embed-ufoathome/CloudEditorMessages_es-DFCuS9Qg.js +1 -0
- package/dist-embed-ufoathome/CloudEditorMessages_fr-SvL-CR04.js +1 -0
- package/dist-embed-ufoathome/CloudEditorMessages_it-BvfiHWV9.js +1 -0
- package/dist-embed-ufoathome/CloudParameterTexts_en-NIa0gfgA.js +1 -0
- package/dist-embed-ufoathome/CloudParameterTexts_es-DXu4T30p.js +1 -0
- package/dist-embed-ufoathome/CloudParameterTexts_fr-Bv-jc2dq.js +1 -0
- package/dist-embed-ufoathome/CloudParameterTexts_it-C3RrkRwI.js +1 -0
- package/dist-embed-ufoathome/ContrailGrowth-DwHS8If9.js +1 -0
- package/dist-embed-ufoathome/ContrailSystem-O_yvjart.js +1 -0
- package/dist-embed-ufoathome/ControlPasses-BaglOE-7.js +29 -0
- package/dist-embed-ufoathome/CoverageAssessor-CBh0sDI1.js +1 -0
- package/dist-embed-ufoathome/Decor-Dn-cvniW.js +1 -0
- package/dist-embed-ufoathome/DecorParameterTexts_en-idbdHsFG.js +1 -0
- package/dist-embed-ufoathome/DecorParameterTexts_es-CIkkLQc2.js +1 -0
- package/dist-embed-ufoathome/DecorParameterTexts_fr-D9GeuW_Y.js +1 -0
- package/dist-embed-ufoathome/DecorParameterTexts_it-v7TBrnsr.js +1 -0
- package/dist-embed-ufoathome/DecoyFlare-DUt1_LcW.js +1 -0
- package/dist-embed-ufoathome/DroneEditor-C3SH8yYq.js +16 -0
- package/dist-embed-ufoathome/DroneEditorMessages_en-BViHK30c.js +1 -0
- package/dist-embed-ufoathome/DroneEditorMessages_es-D6bhIOAa.js +1 -0
- package/dist-embed-ufoathome/DroneEditorMessages_fr-CvV0RyOT.js +1 -0
- package/dist-embed-ufoathome/DroneEditorMessages_it-CYi-jmVN.js +1 -0
- package/dist-embed-ufoathome/DroneFlight-CGNIh9XS.js +1 -0
- package/dist-embed-ufoathome/DroneKindMessages_en-CLygXcsv.js +1 -0
- package/dist-embed-ufoathome/DroneKindMessages_es-B9XFRYnQ.js +1 -0
- package/dist-embed-ufoathome/DroneKindMessages_fr-CAX15_pk.js +1 -0
- package/dist-embed-ufoathome/DroneKindMessages_it-CSGsCaJQ.js +1 -0
- package/dist-embed-ufoathome/DroneParameterTexts_en-sL1dR2RG.js +1 -0
- package/dist-embed-ufoathome/DroneParameterTexts_es-Bg8_8XVE.js +1 -0
- package/dist-embed-ufoathome/DroneParameterTexts_fr-B8Ym7Yz6.js +1 -0
- package/dist-embed-ufoathome/DroneParameterTexts_it-DfvWjvoc.js +1 -0
- package/dist-embed-ufoathome/FilmChrome-DYiyzoB_.js +1 -0
- package/dist-embed-ufoathome/FlareKindMessages_en-j3CY_TxX.js +1 -0
- package/dist-embed-ufoathome/FlareKindMessages_es-CZgrFIOO.js +1 -0
- package/dist-embed-ufoathome/FlareKindMessages_fr-B2MezoN2.js +1 -0
- package/dist-embed-ufoathome/FlareKindMessages_it-CmZmb3RP.js +1 -0
- package/dist-embed-ufoathome/Flightradar24Provider-C8Uj-qTs.js +1 -0
- package/dist-embed-ufoathome/GLTFLoader-B4SVqjkZ.js +1 -0
- package/dist-embed-ufoathome/GenerativeKit-BmhvjjzB.js +9 -0
- package/dist-embed-ufoathome/GenerativeKitMessages-BwG7cWZX.js +1 -0
- package/dist-embed-ufoathome/GenerativeKitMessages_en-BY4B6yas.js +34 -0
- package/dist-embed-ufoathome/GenerativeKitMessages_es-_iYkoRhK.js +34 -0
- package/dist-embed-ufoathome/GenerativeKitMessages_fr-BY5yUJwK.js +34 -0
- package/dist-embed-ufoathome/GenerativeKitMessages_it-DAgB31P1.js +34 -0
- package/dist-embed-ufoathome/GeoExportTexts-3a51cuxQ.js +1 -0
- package/dist-embed-ufoathome/GeoExportTexts_en-Dq0fSJQp.js +1 -0
- package/dist-embed-ufoathome/GeoExportTexts_es-CoVHdOo0.js +1 -0
- package/dist-embed-ufoathome/GeoExportTexts_fr-DVAMpZIR.js +1 -0
- package/dist-embed-ufoathome/GeoExportTexts_it-Bh1uJBQp.js +1 -0
- package/dist-embed-ufoathome/GeoJsonExport-C-daFhc2.js +2 -0
- package/dist-embed-ufoathome/GeoJsonImport-CIftC0ws.js +1 -0
- package/dist-embed-ufoathome/GeographicFigures-N4WyX3J_.js +1 -0
- package/dist-embed-ufoathome/GhostSearchView-Dlhj3xWa.js +1 -0
- package/dist-embed-ufoathome/HeadlightSystem-7mtgTwud.js +34 -0
- package/dist-embed-ufoathome/HynekAssessor-DdoHR-Qt.js +1 -0
- package/dist-embed-ufoathome/InterviewEditorElement-BSXLlt4e.js +240 -0
- package/dist-embed-ufoathome/InterviewElement-Dwk9iHNv.js +31 -0
- package/dist-embed-ufoathome/InterviewMedia-CvAxC62V.js +1 -0
- package/dist-embed-ufoathome/InterviewMessages_en-ru7GkZlQ.js +1 -0
- package/dist-embed-ufoathome/InterviewMessages_es-DkJurNrG.js +1 -0
- package/dist-embed-ufoathome/InterviewMessages_fr-DAYgf8Ms.js +1 -0
- package/dist-embed-ufoathome/InterviewMessages_it-6lenkmSg.js +1 -0
- package/dist-embed-ufoathome/KmlExport-CX-tTjIv.js +19 -0
- package/dist-embed-ufoathome/KmlImport-BMAfiqoV.js +1 -0
- package/dist-embed-ufoathome/LanternEditor-BaRDgTw-.js +24 -0
- package/dist-embed-ufoathome/LanternEditorMessages_en-DaT3UNfD.js +1 -0
- package/dist-embed-ufoathome/LanternEditorMessages_es-TDV5lKeJ.js +1 -0
- package/dist-embed-ufoathome/LanternEditorMessages_fr-9mByTFMG.js +1 -0
- package/dist-embed-ufoathome/LanternEditorMessages_it-MRkJnDQp.js +1 -0
- package/dist-embed-ufoathome/LanternKindMessages_en-CQXdJ-k6.js +1 -0
- package/dist-embed-ufoathome/LanternKindMessages_es-BOO6kPjs.js +1 -0
- package/dist-embed-ufoathome/LanternKindMessages_fr-D7tQa_tQ.js +1 -0
- package/dist-embed-ufoathome/LanternKindMessages_it-B8J-29Mj.js +1 -0
- package/dist-embed-ufoathome/LanternParameterTexts_en-CcnGd8UH.js +1 -0
- package/dist-embed-ufoathome/LanternParameterTexts_es-CUTgNutZ.js +1 -0
- package/dist-embed-ufoathome/LanternParameterTexts_fr-P2JwYOUy.js +1 -0
- package/dist-embed-ufoathome/LanternParameterTexts_it-CzNnIUrX.js +1 -0
- package/dist-embed-ufoathome/LaserBeam-DUL1O57g.js +1 -0
- package/dist-embed-ufoathome/LaunchEditor-X_zWEOTY.js +22 -0
- package/dist-embed-ufoathome/LaunchEditorMessages_en-BnzNAYW9.js +1 -0
- package/dist-embed-ufoathome/LaunchEditorMessages_es-BE0dEl7I.js +1 -0
- package/dist-embed-ufoathome/LaunchEditorMessages_fr-Ds_VOB8c.js +1 -0
- package/dist-embed-ufoathome/LaunchEditorMessages_it-DPQaR8HY.js +1 -0
- package/dist-embed-ufoathome/LaunchKindMessages_en-Batvnyw3.js +1 -0
- package/dist-embed-ufoathome/LaunchKindMessages_es-KYyQ9gbu.js +1 -0
- package/dist-embed-ufoathome/LaunchKindMessages_fr-CoojboIk.js +1 -0
- package/dist-embed-ufoathome/LaunchKindMessages_it-9HA3cjgP.js +1 -0
- package/dist-embed-ufoathome/LaunchParameterTexts_en-DvrCwbDM.js +1 -0
- package/dist-embed-ufoathome/LaunchParameterTexts_es--RUAegVp.js +1 -0
- package/dist-embed-ufoathome/LaunchParameterTexts_fr-Bh_1zVzy.js +1 -0
- package/dist-embed-ufoathome/LaunchParameterTexts_it-CWDx9nJy.js +1 -0
- package/dist-embed-ufoathome/LaunchPlume-CcfhClxb.js +1 -0
- package/dist-embed-ufoathome/LaunchSimulation-C9gbGzGM.js +1 -0
- package/dist-embed-ufoathome/ModelSource-BtuW2Ztg.js +1 -0
- package/dist-embed-ufoathome/ModelThumbnails-CacTTCW4.js +1 -0
- package/dist-embed-ufoathome/ModelViewer-BlFPQJAr.js +1 -0
- package/dist-embed-ufoathome/ModuleConformance-qYpBoQH9.js +2 -0
- package/dist-embed-ufoathome/ModuleSession-D4LhYKvL.js +3 -0
- package/dist-embed-ufoathome/ModuleThree-DLikU-uy.js +1 -0
- package/dist-embed-ufoathome/ModulesPanelElement-GY7cTQ5t.js +15 -0
- package/dist-embed-ufoathome/ModulesPanelMessages_en-DuwrY3Pm.js +1 -0
- package/dist-embed-ufoathome/ModulesPanelMessages_es-Bq5X-XuT.js +1 -0
- package/dist-embed-ufoathome/ModulesPanelMessages_fr-B8cSDc6o.js +1 -0
- package/dist-embed-ufoathome/ModulesPanelMessages_it-BdC626aJ.js +1 -0
- package/dist-embed-ufoathome/NearestApproach-4ntSx6IQ.js +1 -0
- package/dist-embed-ufoathome/Obstacles-v9SkfBD7.js +1 -0
- package/dist-embed-ufoathome/OffThreadTracer-ByPLWaYU.js +6 -0
- package/dist-embed-ufoathome/OpenAiTranscriptionProvider-DDW446tK.js +1 -0
- package/dist-embed-ufoathome/PanoramaxPictures-CELY3Ecc.js +1 -0
- package/dist-embed-ufoathome/ParameterForm-DfpJQGku.js +91 -0
- package/dist-embed-ufoathome/PerceptionMessages_en-B2O6DR64.js +1 -0
- package/dist-embed-ufoathome/PerceptionMessages_es-BmkP6OqD.js +1 -0
- package/dist-embed-ufoathome/PerceptionMessages_fr-B59TnGBC.js +1 -0
- package/dist-embed-ufoathome/PerceptionMessages_it-DPlxRmxu.js +1 -0
- package/dist-embed-ufoathome/PictureFetch-C3wgf1ZV.js +1 -0
- package/dist-embed-ufoathome/PictureRegistration-BLs4DkTI.js +1 -0
- package/dist-embed-ufoathome/PoherAssessor-6t5qvmJy.js +1 -0
- package/dist-embed-ufoathome/RailwaySystem-Dm-PbG_D.js +41 -0
- package/dist-embed-ufoathome/ReadingCheckTexts_en-eq6teExJ.js +1 -0
- package/dist-embed-ufoathome/ReadingCheckTexts_es-CR_JJZMV.js +1 -0
- package/dist-embed-ufoathome/ReadingCheckTexts_fr-pcDleIvY.js +1 -0
- package/dist-embed-ufoathome/ReadingCheckTexts_it-MFKeoXnq.js +1 -0
- package/dist-embed-ufoathome/ReadingSensitivityMessages_en-ChQHFyxb.js +1 -0
- package/dist-embed-ufoathome/ReadingSensitivityMessages_es-BbFqHsvR.js +1 -0
- package/dist-embed-ufoathome/ReadingSensitivityMessages_fr-Dl4a8udu.js +1 -0
- package/dist-embed-ufoathome/ReadingSensitivityMessages_it-CwiJfUo_.js +1 -0
- package/dist-embed-ufoathome/RecordingIssue-BlWT8Xsu.js +3 -0
- package/dist-embed-ufoathome/ReentryArchive-CeXHrU7L.js +1 -0
- package/dist-embed-ufoathome/ReentryEditor-C7A3Kh3_.js +28 -0
- package/dist-embed-ufoathome/ReentryEditorMessages_en-BmTZMr-m.js +1 -0
- package/dist-embed-ufoathome/ReentryEditorMessages_es-edid__Jo.js +1 -0
- package/dist-embed-ufoathome/ReentryEditorMessages_fr-DHbcY0tN.js +1 -0
- package/dist-embed-ufoathome/ReentryEditorMessages_it-CIzkIU4G.js +1 -0
- package/dist-embed-ufoathome/ReentryKindMessages_en-BGZgya17.js +1 -0
- package/dist-embed-ufoathome/ReentryKindMessages_es--UxzPNfj.js +1 -0
- package/dist-embed-ufoathome/ReentryKindMessages_fr-7mer-cdj.js +1 -0
- package/dist-embed-ufoathome/ReentryKindMessages_it-BBVQXE1M.js +1 -0
- package/dist-embed-ufoathome/ReentryParameterTexts_en-5BOfwCsS.js +1 -0
- package/dist-embed-ufoathome/ReentryParameterTexts_es-ze1-U4jB.js +1 -0
- package/dist-embed-ufoathome/ReentryParameterTexts_fr-BgUJROXF.js +1 -0
- package/dist-embed-ufoathome/ReentryParameterTexts_it-MTb9Vuq0.js +1 -0
- package/dist-embed-ufoathome/ReentrySimulation-BlgfVSxb.js +1 -0
- package/dist-embed-ufoathome/ReentryTypeNames_en-CBu890Bd.js +1 -0
- package/dist-embed-ufoathome/ReentryTypeNames_es-_LnketjJ.js +1 -0
- package/dist-embed-ufoathome/ReentryTypeNames_fr-BXq89mrz.js +1 -0
- package/dist-embed-ufoathome/ReentryTypeNames_it-Yfq-TDip.js +1 -0
- package/dist-embed-ufoathome/ReferenceSystem-Bv62TprV.js +1 -0
- package/dist-embed-ufoathome/ReferenceTimeline-2kBldQeG.js +1 -0
- package/dist-embed-ufoathome/RoadMarkings-BsN3rh0W.js +1 -0
- package/dist-embed-ufoathome/SaidPosition-CWiVNaNW.js +4 -0
- package/dist-embed-ufoathome/SatellitePasses-Pfro2-0Z.js +1 -0
- package/dist-embed-ufoathome/SceneNames_en-7OZ7peGc.js +1 -0
- package/dist-embed-ufoathome/SceneNames_es-P5-Mavdi.js +1 -0
- package/dist-embed-ufoathome/SceneNames_fr-qzw0QzD0.js +1 -0
- package/dist-embed-ufoathome/SceneNames_it-Sqf8JFOd.js +1 -0
- package/dist-embed-ufoathome/ShareCodeEditor-DyEYu_9d.js +13 -0
- package/dist-embed-ufoathome/ShareDialogElement-DLr5u_tk.js +9222 -0
- package/dist-embed-ufoathome/ShareMessages_en-B43x8LgJ.js +1 -0
- package/dist-embed-ufoathome/ShareMessages_es-DZCJojSc.js +1 -0
- package/dist-embed-ufoathome/ShareMessages_fr-CzZyVbbX.js +1 -0
- package/dist-embed-ufoathome/ShareMessages_it-C_Z6eDQK.js +1 -0
- package/dist-embed-ufoathome/Sighting-CBpJpdm9.js +1 -0
- package/dist-embed-ufoathome/SightingEditorMessages_en-CTQYcybj.js +12 -0
- package/dist-embed-ufoathome/SightingEditorMessages_es-D-ASD5a3.js +12 -0
- package/dist-embed-ufoathome/SightingEditorMessages_fr-DjUByAq4.js +12 -0
- package/dist-embed-ufoathome/SightingEditorMessages_it-Eat0U-4p.js +12 -0
- package/dist-embed-ufoathome/SightingElement-DuNE_Yt0.js +693 -0
- package/dist-embed-ufoathome/SightingFileEditor-Cllslp2u.js +8 -0
- package/dist-embed-ufoathome/SightingLabels_en-oIpytoq_.js +1 -0
- package/dist-embed-ufoathome/SightingLabels_es-DUh1CTXl.js +1 -0
- package/dist-embed-ufoathome/SightingLabels_fr-D69zENbW.js +1 -0
- package/dist-embed-ufoathome/SightingLabels_it-COLZ2Qth.js +1 -0
- package/dist-embed-ufoathome/SightingMessages_en-CYzanHjT.js +1 -0
- package/dist-embed-ufoathome/SightingMessages_es-hjvESK6f.js +1 -0
- package/dist-embed-ufoathome/SightingMessages_fr-BtfWbIP7.js +1 -0
- package/dist-embed-ufoathome/SightingMessages_it-Bqm4pewZ.js +1 -0
- package/dist-embed-ufoathome/SkyEventEditorStyle-CvY_AhbI.js +1 -0
- package/dist-embed-ufoathome/SkyLantern-DJT_Ibzh.js +1 -0
- package/dist-embed-ufoathome/TagNames_es-BfnMpc3D.js +1 -0
- package/dist-embed-ufoathome/TagNames_fr-Dnqq6HQ5.js +1 -0
- package/dist-embed-ufoathome/TagNames_it-n6E4EGYO.js +1 -0
- package/dist-embed-ufoathome/TimelineTracks-X_GEZi12.js +35 -0
- package/dist-embed-ufoathome/TraceImport-CntRHXoJ.js +2 -0
- package/dist-embed-ufoathome/TraceSystem-Cl5kzaIr.js +393 -0
- package/dist-embed-ufoathome/TranscriptionAudio-C_xvRUv2.js +5 -0
- package/dist-embed-ufoathome/TranscriptionError-D_TCbYbt.js +1 -0
- package/dist-embed-ufoathome/UfoAtHomeMessages_en-dlx_C679.js +1 -0
- package/dist-embed-ufoathome/UfoAtHomeMessages_es-uLOvtAD0.js +1 -0
- package/dist-embed-ufoathome/UfoAtHomeMessages_fr-LR76-eHS.js +1 -0
- package/dist-embed-ufoathome/UfoAtHomeMessages_it-CQl4uTnG.js +1 -0
- package/dist-embed-ufoathome/UfoMessages_en-D5OYWJ3K.js +1 -0
- package/dist-embed-ufoathome/UfoMessages_es-CO-v8Jl6.js +1 -0
- package/dist-embed-ufoathome/UfoMessages_fr-CGkQBn5r.js +1 -0
- package/dist-embed-ufoathome/UfoMessages_it-BScqxIaH.js +1 -0
- package/dist-embed-ufoathome/VideoButton-DXPI7_Vt.js +1 -0
- package/dist-embed-ufoathome/VideoExport-B8ZhHNnd.js +169 -0
- package/dist-embed-ufoathome/VisualAids-DI-hEL46.js +1 -0
- package/dist-embed-ufoathome/WaterSystem-CTGGh-Y-.js +19 -0
- package/dist-embed-ufoathome/browser-CltifEM0.js +1 -0
- package/dist-embed-ufoathome/caseSchema-ChUB1-9j.js +1 -0
- package/dist-embed-ufoathome/index-C8cdeM8E.js +11 -0
- package/dist-embed-ufoathome/index-DqGmxMZD.js +42 -0
- package/dist-embed-ufoathome/interviewImport-ym5iXO4Z.js +4 -0
- package/{dist-embed-sighting-editor/interviewJson-iURHP4Zk.js → dist-embed-ufoathome/interviewJson-D-i14LTf.js} +1 -1
- package/dist-embed-ufoathome/interviewSchema-Dk0AWHwc.js +1 -0
- package/dist-embed-ufoathome/logo-h2-w4Mwu.png +0 -0
- package/dist-embed-ufoathome/lunar-relief.bin-ByThqxUn.gz +0 -0
- package/dist-embed-ufoathome/node.browser-AK49Qif5.js +1 -0
- package/dist-embed-ufoathome/node.browser-HEqoqodz.js +1 -0
- package/dist-embed-ufoathome/rain-BvWZrB9h.ogg +0 -0
- package/dist-embed-ufoathome/rr0-ufoathome.mjs +159 -0
- package/dist-embed-ufoathome/sightingSchema-CgwoRMl-.js +1 -0
- package/dist-embed-ufoathome/stars-mag7.5-9-BLV2tFmZ.bin +0 -0
- package/dist-embed-ufoathome/stars-mag7.5-B43R6Wvg.bin +0 -0
- package/dist-embed-ufoathome/surroundingsSources-CVKKb8h6.js +1 -0
- package/dist-embed-ufoathome/thunder-DA48qs_v.wav +0 -0
- package/dist-embed-ufoathome/trafficRuntime-DvKPyJcx.js +2 -0
- package/dist-embed-ufoathome/upperAirSources-BGuLpdwu.js +1 -0
- package/dist-embed-ufoathome/wind-BjklexY7.ogg +0 -0
- package/package.json +9 -6
- package/dist-embed-sighting-editor/BirdEditor-ESUliJEN.js +0 -16
- package/dist-embed-sighting-editor/DroneEditor-DDaJO8FS.js +0 -16
- package/dist-embed-sighting-editor/GLTFLoader-DdijxzcI.js +0 -1
- package/dist-embed-sighting-editor/GeographicFigures-DC6Tw3ja.js +0 -1
- package/dist-embed-sighting-editor/InterviewEditorElement-D-UDHU0L.js +0 -270
- package/dist-embed-sighting-editor/LanternEditor-DDcI5Kv1.js +0 -24
- package/dist-embed-sighting-editor/LaunchEditor-Pkk0K648.js +0 -22
- package/dist-embed-sighting-editor/ModuleThree-DSghL4fp.js +0 -1
- package/dist-embed-sighting-editor/PictureRegistration-CbfytwCX.js +0 -1
- package/dist-embed-sighting-editor/ReentryEditor-NE8z5aZT.js +0 -28
- package/dist-embed-sighting-editor/SightingEditorMessages_en-DSPvgYFi.js +0 -12
- package/dist-embed-sighting-editor/SightingEditorMessages_es-Bl3DipHr.js +0 -12
- package/dist-embed-sighting-editor/SightingEditorMessages_fr-BTmWQX0n.js +0 -12
- package/dist-embed-sighting-editor/SightingEditorMessages_it-lzbDsHjx.js +0 -12
- package/dist-embed-sighting-editor/VideoButton-CqCZ65oK.js +0 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import{M as w,_ as I,c as F}from"./rr0-ufoathome.mjs";import{P as S,I as x}from"./SaidPosition-CWiVNaNW.js";import{S as N}from"./SkyEventEditorStyle-CvY_AhbI.js";import{p as b,cO as M,aK as E,aE as C,m as _,s as P,cC as L}from"./ShareDialogElement-DLr5u_tk.js";import{c as G}from"./Sighting-CBpJpdm9.js";import{P as D,a as k,E as H}from"./ParameterForm-DfpJQGku.js";import{T as K}from"./TimelineTracks-X_GEZi12.js";import{R as O}from"./ReentryArchive-CeXHrU7L.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./Obstacles-v9SkfBD7.js";import"./VisualAids-DI-hEL46.js";const z=w.catalog({en:()=>I(()=>import("./ReentryParameterTexts_en-5BOfwCsS.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_en),fr:()=>I(()=>import("./ReentryParameterTexts_fr-BgUJROXF.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_fr),es:()=>I(()=>import("./ReentryParameterTexts_es-ze1-U4jB.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_es),it:()=>I(()=>import("./ReentryParameterTexts_it-MTb9Vuq0.js"),[],import.meta.url).then(v=>v.reentryParameterTexts_it)});class g{static NAME="name";static OBJECT="object";static LIGHT="light";static WHEN="when";static SEEN="seenByTheWitness";static EARTH_KM=6371;static placeSeen(t,e,n,i){const r=Math.PI/180,o=g.EARTH_KM,a=n*r,s=-o*Math.sin(a)+Math.sqrt((o*Math.sin(a))**2+(o+i)**2-o**2),d=Math.atan2(s*Math.cos(a),o+s*Math.sin(a)),c=t.lat*r,l=e*r,h=Math.asin(Math.sin(c)*Math.cos(d)+Math.cos(c)*Math.sin(d)*Math.cos(l)),m=t.lng*r+Math.atan2(Math.sin(l)*Math.sin(d)*Math.cos(c),Math.cos(d)-Math.sin(c)*Math.sin(h));return{lat:h/r,lng:(m/r+540)%360-180}}static trackFromSeen(t,e){const n=t.seen,{fromAzimuthDeg:i,fromAltitudeDeg:r,toAzimuthDeg:o,toAltitudeDeg:a,durationS:s}=n??{};if(i===void 0||r===void 0||o===void 0||a===void 0||!s)return;const d=t.track[0],c=t.track[t.track.length-1],l=d?.t??0,h=d?.altitudeKm??100,m=c?.altitudeKm??h;return[{t:l,...g.placeSeen(e,i,r,h),altitudeKm:h},{t:l+Math.round(s*1e3),...g.placeSeen(e,o,a,m),altitudeKm:m}]}static placeAt(t,e){const n=b.leadAt(t,e);if(n)return{t:e,lat:n.lat,lng:n.lng,altitudeKm:n.heightM/1e3};const i=t.track,[r,o]=e<(i[0]?.t??0)?[i[0],i[1]]:[i[i.length-2],i[i.length-1]];if(!r||!o||o.t===r.t){const s=r??o??{lat:0,lng:0,altitudeKm:80};return{t:e,lat:s.lat,lng:s.lng,altitudeKm:s.altitudeKm}}const a=(e-r.t)/(o.t-r.t);return{t:e,lat:r.lat+(o.lat-r.lat)*a,lng:r.lng+(o.lng-r.lng)*a,altitudeKm:Math.max(0,r.altitudeKm+(o.altitudeKm-r.altitudeKm)*a)}}static curvePointAt(t,e){return{t:e,absoluteMagnitude:Math.round(b.absoluteMagnitudeAt(t,e)*10)/10}}static instantsOf(t){return[...t.track.map(e=>e.t),...t.fragments.flatMap(e=>[...e.fromT===void 0?[]:[e.fromT],...e.untilT===void 0?[]:[e.untilT],...(e.lightCurve??[]).map(n=>n.t)])]}static instant(t,e,n,i={}){return{type:"number",key:t,min:-3600,max:36e3,step:.1,unit:"s",scale:.001,label:e,hint:n,...i}}static mayBeCatalogued(t){return M.of(t.type)?.nature!=="natural"}static SET={kind:"reentry",title:"fireballOrReEntry",parameters:[{type:"said",key:"title",label:g.NAME},{type:"choice",key:"type",label:"type",hint:"whatCameInNaturalOrPut",empty:"notKnown",choices:[],optionsOf:t=>{const e=t.type,n=M.all().map(i=>({value:i.key,label:M.nameOf(i.key)}));return e===void 0||n.some(i=>i.value===e)?n:[...n,{value:e,label:e}]}},{type:"text",key:"object.name",group:g.OBJECT,visibleWhen:g.mayBeCatalogued,label:"catalogueName",hint:"forAReEntryThePiece"},{type:"text",key:"object.cosparId",group:g.OBJECT,visibleWhen:g.mayBeCatalogued,label:"cosparId",placeholder:"t1968013c"},{type:"number",key:"object.norad",min:1,max:999999,step:1,group:g.OBJECT,visibleWhen:g.mayBeCatalogued,label:"noradNumber"},{type:"number",key:"seen.fromAzimuthDeg",min:0,max:360,step:1,unit:"°",group:g.SEEN,label:"appearedAzimuth",hint:"fromTheNorthTowardsTheEast"},{type:"number",key:"seen.fromAltitudeDeg",min:-5,max:90,step:1,unit:"°",group:g.SEEN,label:"appearedHeight",hint:"aboveTheHorizon"},{type:"number",key:"seen.toAzimuthDeg",min:0,max:360,step:1,unit:"°",group:g.SEEN,label:"wentOutAzimuth",hint:"fromTheNorthTowardsTheEast"},{type:"number",key:"seen.toAltitudeDeg",min:-5,max:90,step:1,unit:"°",group:g.SEEN,label:"wentOutHeight",hint:"aboveTheHorizon"},{type:"number",key:"seen.durationS",min:.1,max:3600,step:.1,unit:"s",group:g.SEEN,label:"seenFor",hint:"allSaidThePathIsWorkedOut"}]};static PLACE={kind:"reentry-place",title:"pointOfThePath",parameters:[g.instant("t","time","secondsOfTheRecordingNegativeBefore",{required:!0}),{type:"position",key:"lat",secondKey:"lng",saidKey:"saidPosition",native:"geo",step:1,rangeM:2e6,label:"position"},{type:"number",key:"altitudeKm",min:0,max:300,step:.1,unit:"km",required:!0,label:"altitude",hint:"aboveTheEllipsoidAMeteorBegins"}]};static trackEnd(t,e){const n=t?.track;if(n?.length)return e==="first"?n[0].t:n[n.length-1].t}static FRAGMENT={kind:"reentry-fragment",title:"piece",parameters:[{type:"text",key:"id",label:"id",validate:(t,e,n)=>!n?.fragments.some(i=>i!==e&&i.id===t)},{type:"number",key:"absoluteMagnitude",min:-40,max:10,step:.1,required:!0,group:g.LIGHT,label:"absoluteMagnitude",hint:"itsBrightnessSeenFrom100Km"},{type:"colour",key:"color",group:g.LIGHT,fallback:b.DEFAULT_COLOR,label:"colour"},{type:"number",key:"trainS",min:0,max:600,step:.1,unit:"s",group:g.LIGHT,effective:()=>b.DEFAULT_TRAIN_S,label:"train",hint:"howLongAStretchOfIts"},{type:"number",key:"lagS",min:0,max:600,step:.1,unit:"s",group:g.WHEN,effective:()=>0,label:"behindTheLead",hint:"secondsBehindTheLeadingPointAlong"},g.instant("fromT","seenFrom","whenItBreaksOffOrBegins",{group:g.WHEN,effective:(t,e)=>g.trackEnd(e,"first")}),g.instant("untilT","outAt","whenItHasBurnedUpOr",{group:g.WHEN,effective:(t,e)=>g.trackEnd(e,"last")})]};static CURVE_POINT={kind:"reentry-curve-point",title:"pointOfTheLightCurve",parameters:[g.instant("t","time","secondsOfTheRecording",{required:!0}),{type:"number",key:"absoluteMagnitude",min:-40,max:10,step:.1,required:!0,label:"absoluteMagnitude"}]}}const $=w.catalog({en:()=>I(()=>import("./ReentryEditorMessages_en-BmTZMr-m.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_en),fr:()=>I(()=>import("./ReentryEditorMessages_fr-DHbcY0tN.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_fr),es:()=>I(()=>import("./ReentryEditorMessages_es-edid__Jo.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_es),it:()=>I(()=>import("./ReentryEditorMessages_it-CIzkIU4G.js"),[],import.meta.url).then(v=>v.reentryEditorMessages_it)});class u{static TIME_MARGIN_MIN=6;static HEADING_MARGIN_DEG=45;static ELEVATION_LOW_FACTOR=.3;static ELEVATION_SLACK_DEG=5;static DURATION_FACTOR=3;static ARCHIVED_MAGNITUDE=-3;static WATCHED_KM=600;static WATCHED_COUNT=5;static NIGHT_SUN_DEG=-12;static SHOWER_MARGIN_DEG=20;static RADIANT_BELOW_DEG=-10;static FIRST_ORBIT_MS=Date.UTC(1957,9,4);static shared={fireballs:new E,reentries:new O};static viewOf(t,e,n){const i=t.track;if(i.length<2)return;const r=i[0],o=i[i.length-1],a=t.seen,s=m=>b.seenFrom(n,{lat:m.lat,lng:m.lng,heightM:m.altitudeKm*1e3}),d=a?.fromAzimuthDeg!==void 0&&a.fromAltitudeDeg!==void 0?{azimuthDeg:a.fromAzimuthDeg,altitudeDeg:a.fromAltitudeDeg}:s(r),c=a?.toAzimuthDeg!==void 0&&a.toAltitudeDeg!==void 0?{azimuthDeg:a.toAzimuthDeg,altitudeDeg:a.toAltitudeDeg}:s(o),l=a?.durationS??(o.t-r.t)/1e3,h=Math.min(...t.fragments.flatMap(m=>[m.absoluteMagnitude,...(m.lightCurve??[]).map(f=>f.absoluteMagnitude)]));return{startMs:e.getTime()+r.t,durationS:l,from:{azimuthDeg:d.azimuthDeg,altitudeDeg:d.altitudeDeg},to:{azimuthDeg:c.azimuthDeg,altitudeDeg:c.altitudeDeg},peakAbsoluteMagnitude:h}}static azimuthOff(t,e){const n=Math.abs(((t-e)%360+360)%360);return Math.min(n,360-n)}static elevationOff(t,e){const n=Math.max(0,t*u.ELEVATION_LOW_FACTOR)-u.ELEVATION_SLACK_DEG,i=t+u.ELEVATION_SLACK_DEG;return e<n?n-e:e>i?e-i:0}static matchFireball(t,e,n){const i=e.t<t.startMs?t.startMs-e.t:0,r=e.t>t.startMs?e.t-t.startMs:0;if(Math.max(i,r)>u.TIME_MARGIN_MIN*6e4)return;const o=b.seenFrom(n,{lat:e.from[0],lng:e.from[1],heightM:e.from[2]*1e3}),a=b.seenFrom(n,{lat:e.to[0],lng:e.to[1],heightM:e.to[2]*1e3});if(o.altitudeDeg<0&&a.altitudeDeg<0)return;const s=Math.max(u.azimuthOff(t.from.azimuthDeg,o.azimuthDeg),u.azimuthOff(t.to.azimuthDeg,a.azimuthDeg));if(s>u.HEADING_MARGIN_DEG||Math.max(u.elevationOff(t.from.altitudeDeg,o.altitudeDeg),u.elevationOff(t.to.altitudeDeg,a.altitudeDeg))>0)return;const c=u.DURATION_FACTOR;if(!(e.durationS>0&&(t.durationS<e.durationS/c||t.durationS>e.durationS*c)))return{record:e,offsetMinutes:Math.round((i+r)/6e4),headingOffDeg:Math.round(s),altitudeOffDeg:Math.round(Math.abs(a.altitudeDeg-t.to.altitudeDeg))}}static async check(t,e,n,i=u.shared){if(!e||!n)return[{verdict:"unchecked",source:"none",reason:"noDateOrPlace"}];const r=u.viewOf(t,e,n);if(!r)return[{verdict:"unchecked",source:"none",reason:"noDateOrPlace"}];const o=M.of(t.type)?.nature,a=[];if(o!=="artificial"&&a.push(...await u.checkFireballs(r,n,o==="natural",i)),o!=="artificial"){const s=u.showerOf(r,n);s&&(s.verdict==="compatible"||o==="natural")&&a.push(s)}return o!=="natural"&&a.push(...await u.checkCatalogue(t,r,n,o==="artificial",i)),o===void 0&&!a.some(s=>s.verdict==="known"||s.verdict==="possible"||s.verdict==="compatible")?[...a.filter(s=>s.verdict==="unchecked"),{verdict:"uninformative",source:"none",reason:"typeUnknown"}]:a}static vectorOf(t,e){const n=Math.PI/180,i=e*n,r=t*n;return[Math.cos(i)*Math.sin(r),Math.cos(i)*Math.cos(r),Math.sin(i)]}static angleDeg(t,e){return Math.acos(Math.max(-1,Math.min(1,t[0]*e[0]+t[1]*e[1]+t[2]*e[2])))*180/Math.PI}static showerOf(t,e){const n=u.vectorOf(t.from.azimuthDeg,t.from.altitudeDeg),i=u.vectorOf(t.to.azimuthDeg,t.to.altitudeDeg),r=u.angleDeg(n,i);if(r<1)return;const o=[n[1]*i[2]-n[2]*i[1],n[2]*i[0]-n[0]*i[2],n[0]*i[1]-n[1]*i[0]],a=Math.hypot(o[0],o[1],o[2]),s=new Date(t.startMs),d=C.activeAt(s);let c;for(const{shower:l,zhr:h}of d){const m=C.radiantPosition(l,s,{lat:e.lat,lng:e.lng,elevationM:e.heightM});if(m.altitudeDeg<u.RADIANT_BELOW_DEG)continue;const f=u.vectorOf(m.azimuthDeg,m.altitudeDeg),p=Math.asin(Math.min(1,Math.abs((f[0]*o[0]+f[1]*o[1]+f[2]*o[2])/a)))*180/Math.PI,y=u.angleDeg(f,n),A=u.angleDeg(f,i);y>=A||A<=r||p<=u.SHOWER_MARGIN_DEG&&(!c||p<c.offDeg)&&(c={showerId:l.id,offDeg:Math.round(p),zhr:Math.round(h)})}return c?{verdict:"compatible",source:"showers",...c}:{verdict:"sporadic",source:"showers",active:d.length}}static async checkFireballs(t,e,n,i){const r=u.TIME_MARGIN_MIN*6e4;if(!E.mayCover(t.startMs))return n?[{verdict:"uninformative",source:"gmn",reason:"beforeArchive"}]:[];const o=await i.fireballs.between(t.startMs-r,t.startMs+r+t.durationS*1e3);if(o===void 0)return n?[{verdict:"unchecked",source:"gmn",reason:"unreachable"}]:[];const a=o.map(m=>u.matchFireball(t,m,e)).filter(m=>m!==void 0).sort((m,f)=>m.offsetMinutes-f.offsetMinutes||m.headingOffDeg-f.headingOffDeg);if(a.length>0)return[{verdict:"known",source:"gmn",match:a[0]}];if(!n)return[];if(t.peakAbsoluteMagnitude>u.ARCHIVED_MAGNITUDE)return[{verdict:"uninformative",source:"gmn",reason:"faint"}];if(_("Sun",new Date(t.startMs),{lat:e.lat,lng:e.lng,elevationM:0}).altitudeDeg>u.NIGHT_SUN_DEG)return[{verdict:"uninformative",source:"gmn",reason:"daylight"}];const s=new Date(t.startMs),d=Date.UTC(s.getUTCFullYear(),s.getUTCMonth(),1),c=Date.UTC(s.getUTCFullYear(),s.getUTCMonth()+1,1)-1,h=(await i.fireballs.between(d,c)??[]).filter(m=>O.distanceKm(e.lat,e.lng,m.from[0],m.from[1])<=u.WATCHED_KM).length;return h<u.WATCHED_COUNT?[{verdict:"uninformative",source:"gmn",reason:"unwatched"}]:[{verdict:"expectedAbsent",source:"gmn",absoluteMagnitude:t.peakAbsoluteMagnitude,watchedCount:h}]}static async checkCatalogue(t,e,n,i,r){if(e.startMs<u.FIRST_ORBIT_MS)return i?[{verdict:"impossible",source:"catalogue"}]:[];const o=u.TIME_MARGIN_MIN*6e4,a=await r.reentries.candidates(e.startMs-o,e.startMs+o+e.durationS*1e3,n);if(a===void 0)return i?[{verdict:"unchecked",source:"catalogue",reason:"unreachable"}]:[];const s=t.object,d=s&&a.find(l=>s.cosparId&&l.record.cosparId===s.cosparId||s.norad!==void 0&&l.record.norad===s.norad);if(d)return[{verdict:"known",source:"catalogue",candidate:d,by:"object"}];const c=a.find(l=>l.record.precision==="minute"&&l.seenKm!==void 0&&(l.offsetMinutes??0)<=u.TIME_MARGIN_MIN);return c?[{verdict:"known",source:"catalogue",candidate:c,by:"seen"}]:a.length>0?a.slice(0,3).map(l=>({verdict:"possible",source:"catalogue",candidate:l})):i?[{verdict:"expectedAbsent",source:"catalogue"}]:[]}}class T{constructor(t,e,n){this.container=t,this.host=e,N.attach(t,"reentry-editor-part",T.STYLE),this.language=n,this.ready=this.setLanguage(n)}messages;ready;parameterTexts;languageToken=0;currentId;form;list;timeline;placeForm;placeIndex=0;row="path";fragmentForm;fragmentIndex=0;curveForm;curveIndex=0;language;shown=[];static STYLE='.reentry-editor-part { flex-basis: 100%; min-width: 0; } .reentry-editor-part #reentry-timeline { flex-basis: 100%; min-width: 0; padding: 4px 0; } .reentry-editor-part #reentry-path > .icon-btn, .reentry-editor-part #reentry-curve > .icon-btn { align-self: flex-end; } .reentry-editor-part #reentry-list, .reentry-editor-part #reentry-places, .reentry-editor-part #reentry-fragment-list, .reentry-editor-part #reentry-curve-list { flex-basis: 100%; min-width: 0; } .reentry-editor-part .launch-editor, .reentry-editor-part .launch-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; } .reentry-editor-part .launch-fields { flex-basis: 100%; min-width: 0; } .reentry-editor-part [hidden] { display: none !important; } .reentry-editor-part .reentry-evidence { flex-basis: 100%; } .reentry-editor-part .evidence-known, .reentry-editor-part .evidence-impossible, .reentry-editor-part .evidence-expectedAbsent { font-weight: 600; } .reentry-editor-part select { min-width: 0; width: 100%; } .reentry-editor-part .launch-intro { flex-basis: 100%; margin: 0; } .reentry-editor-part .launch-track { flex-basis: 100%; margin: 0; } .reentry-editor-part .launch-parameters { flex-basis: 100%; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; } .reentry-editor-part .parameter-group { flex: 1 1 14em; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; align-content: flex-start; } .reentry-editor-part input, .reentry-editor-part select { max-width: 100%; box-sizing: border-box; } .reentry-editor-part input[type="text"] { width: 12em; } .reentry-editor-part input[data-key="title"] { width: 18em; } .reentry-editor-part label { min-width: 0; max-width: 100%; } .reentry-editor-part input.parameter-derived::placeholder { opacity: .65; } .reentry-editor-part .launch-path { flex: 1 1 100%; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; }';async setLanguage(t){const e=++this.languageToken;this.language=t;const[n,i,,r]=await Promise.all([$.load(t),z.load(t),M.load(t),F(t).catch(()=>{})]);e===this.languageToken&&(this.sceneNames=r,this.messages=n,this.parameterTexts=i,this.render(),this.sync())}sync(){if(!this.messages)return;const t=this.reentries;this.shown=[...t],t.some(n=>n.id===this.currentId)||(this.currentId=t[0]?.id),this.list?.setItems(t.map(n=>({id:n.id,label:this.labelOf(n)})),this.currentId),this.list?.setKinds(M.all().map(n=>({value:n.key,label:M.nameOf(n.key)}))),this.syncAddState();const e=this.current;this.element("reentry-fields").hidden=e===void 0,e&&(this.syncPlace(!0),this.syncFragments(e,!0),this.syncEvidence(),this.form??=new D(this.element("reentry-parameters"),this.language,"reentry.",{said:()=>this.host.said(),writingLanguage:()=>this.host.writingLanguage()}),this.form.show(this.resolved(g.SET),new k(()=>this.current,n=>this.editReentry(i=>{i.object&&(i.object={...i.object}),i.seen&&(i.seen={...i.seen}),n(i),i.object&&Object.values(i.object).every(a=>a===void 0||a==="")&&delete i.object;const r=this.origin(),o=r&&g.trackFromSeen(i,r);o&&(i.track=o)})),()=>this.written()))}refresh(){if(!this.messages)return;this.syncAddState();const t=this.reentries;if(t.length===this.shown.length&&t.every((e,n)=>e.id===this.shown[n].id)){this.syncTimeline();return}this.sync()}setTime(t){this.messages&&this.timeline?.setTime(t)}syncAddState(){const t=this.origin()!==void 0;this.list?.setAddState(t,t?void 0:this.messages.addNowhere)}get current(){return this.reentries.find(t=>t.id===this.currentId)}show(t){this.messages&&(this.currentId=t,this.row="path",this.placeIndex=0,this.fragmentIndex=0,this.curveIndex=0,this.sync())}resolved(t){return S.resolve(t,this.parameterTexts)}render(){if(!this.messages)return;const t=this.messages;this.form=void 0,this.evidenceFor=void 0,this.container.innerHTML=`<div class="launch-editor">
|
|
2
|
+
<p class="launch-intro">${t.intro}</p>
|
|
3
|
+
<div id="reentry-list"></div>
|
|
4
|
+
<div id="reentry-fields" class="launch-fields">
|
|
5
|
+
<div id="reentry-parameters" class="launch-parameters"></div>
|
|
6
|
+
<div id="reentry-evidence" class="launch-intro reentry-evidence" aria-live="polite"></div>
|
|
7
|
+
<div id="reentry-timeline"></div>
|
|
8
|
+
<button id="reentry-fragment-add" type="button" title="${t.addFragment}">${x.PLUS} ${t.fragment}</button>
|
|
9
|
+
<p class="launch-intro">${t.timelineNote}</p>
|
|
10
|
+
<fieldset id="reentry-path" class="launch-path">
|
|
11
|
+
<legend>${t.path}</legend>
|
|
12
|
+
<div id="reentry-place-parameters" class="launch-parameters"></div>
|
|
13
|
+
<button id="reentry-place-delete" class="icon-btn" type="button" title="${t.deletePlace}" aria-label="${t.deletePlace}">${x.TRASH}</button>
|
|
14
|
+
</fieldset>
|
|
15
|
+
<fieldset id="reentry-fragments" class="launch-path">
|
|
16
|
+
<legend id="reentry-fragment-legend">${t.fragment}</legend>
|
|
17
|
+
<div id="reentry-fragment-parameters" class="launch-parameters"></div>
|
|
18
|
+
<button id="reentry-fragment-delete" class="icon-btn" type="button" title="${t.deleteFragment}" aria-label="${t.deleteFragment}">${x.TRASH}</button>
|
|
19
|
+
<fieldset id="reentry-curve" class="launch-path">
|
|
20
|
+
<legend>${t.curve}</legend>
|
|
21
|
+
<p id="reentry-curve-empty" class="launch-intro">${t.noCurve}</p>
|
|
22
|
+
<div id="reentry-curve-parameters" class="launch-parameters"></div>
|
|
23
|
+
<button id="reentry-curve-delete" class="icon-btn" type="button" title="${t.deleteCurvePoint}" aria-label="${t.deleteCurvePoint}">${x.TRASH}</button>
|
|
24
|
+
</fieldset>
|
|
25
|
+
</fieldset>
|
|
26
|
+
<p class="launch-intro">${t.derivedNote}</p>
|
|
27
|
+
</div>
|
|
28
|
+
</div>`,this.list=new H({header:this.element("reentry-list"),body:this.element("reentry-fields"),ids:{list:"reentry-select",remove:"reentry-delete",add:"reentry-add",kinds:"reentry-add-kind",kind:e=>`reentry-add-${e}`},onSelect:e=>this.show(e),onAdd:e=>{e&&this.addReentry(e)},onRemove:()=>this.deleteCurrent(),actions:this.host.pointAt?[{id:"reentry-point",glyph:"🎯",onClick:()=>this.pointAtCurrent()}]:[]}),this.list.setLabels({list:t.reentry,remove:t.deleteReentry,add:t.addReentry,empty:t.none,actions:{"reentry-point":t.pointAtReentry}}),this.timeline=new K(this.element("reentry-timeline"),e=>this.host.seekTo(e),{addKeyframeHere:t.addPointHere,keyframeHere:t.pointHere,zoomHint:t.zoomHint}),this.element("reentry-place-delete").addEventListener("click",()=>this.removePlace()),this.element("reentry-curve-delete").addEventListener("click",()=>this.removeCurvePoint()),this.placeForm=void 0,this.element("reentry-fragment-add").addEventListener("click",()=>this.addFragment()),this.element("reentry-fragment-delete").addEventListener("click",()=>this.removeFragment()),this.fragmentForm=void 0,this.curveForm=void 0}written(){const t=this.current;t&&this.list?.rename(t.id,this.labelOf(t)),t?.seen&&this.syncPlace(!0),this.syncEvidence()}sceneNames;evidenceTimer;evidenceFor;syncEvidence(){const t=this.current,e=this.element("reentry-evidence");if(clearTimeout(this.evidenceTimer),!t)return;const n=this.host.sighting(),i=n.event?.place?.[0],r=i?.lng!==void 0&&n.event?.time?P(n.event.time,i.lng,n.event.utcOffsetHours):void 0,o=i?.lat!==void 0&&i.lng!==void 0?{lat:i.lat,lng:i.lng,heightM:0}:void 0,a={reentry:t,at:r?.getTime(),lat:o?.lat,lng:o?.lng},s=this.evidenceFor;s&&s.reentry===a.reentry&&s.at===a.at&&s.lat===a.lat&&s.lng===a.lng||(this.evidenceFor=a,e.textContent=`${this.messages.evidence} — ${this.messages.evidenceChecking}`,this.evidenceTimer=setTimeout(()=>{u.check(t,r,o).then(d=>{if(this.evidenceFor!==a)return;const c=this.messages,l=c.margins.replace("{minutes}",String(u.TIME_MARGIN_MIN)).replace("{heading}",String(u.HEADING_MARGIN_DEG)).replace("{factor}",String(u.DURATION_FACTOR)),h=document.createElement("strong");h.textContent=c.evidence;const m=d.map(p=>{const y=document.createElement("span");return y.className=`evidence-${p.verdict}`,y.textContent=this.findingText(p),y}),f=document.createElement("small");f.textContent=l,e.replaceChildren(h,...m.flatMap(p=>[document.createElement("br"),p]),document.createElement("br"),f)},()=>{this.evidenceFor===a&&(e.textContent="")})},400))}findingText(t){const e=this.messages,n=this.language,i=s=>new Intl.DateTimeFormat(n,{dateStyle:"medium",timeStyle:"short",timeZone:"UTC"}).format(s)+" UTC",r=s=>new Intl.DateTimeFormat(n,{dateStyle:"long",timeZone:"UTC"}).format(s),o=s=>s.toLocaleString(n,{maximumFractionDigits:1}),a=(s,d)=>Object.entries(d).reduce((c,[l,h])=>c.replaceAll(`{${l}}`,h===void 0?"?":String(h)),s);switch(t.verdict){case"known":if(t.source==="gmn"){const{record:s,offsetMinutes:d,headingOffDeg:c}=t.match;return a(e.knownFireball,{id:s.id,time:i(s.t),offset:d,stations:s.stations,mag:o(s.peakMagnitude),heading:c})}else{const{record:s,timeMs:d,seenKm:c}=t.candidate,l={name:s.name,cospar:s.cosparId??s.norad,time:i(d),when:s.precision==="day"?r(d):i(d),place:s.seenFrom,km:c===void 0?void 0:Math.round(c)};return a(t.by==="object"?e.knownObject:e.knownSeen,l)}case"possible":{const{record:s,timeMs:d,seenKm:c,offsetMinutes:l}=t.candidate,h={name:s.name,cospar:s.cosparId??s.norad,time:i(d),day:r(d),hours:s.uncertaintyHours,place:s.seenFrom,km:c===void 0?void 0:Math.round(c),offset:l};return a(s.precision==="minute"?e.possibleSeen:s.precision==="hours"?e.possibleWindow:e.possibleDay,h)}case"expectedAbsent":return t.source==="gmn"?a(e.expectedFireball,{mag:o(t.absoluteMagnitude),count:t.watchedCount,km:u.WATCHED_KM}):e.expectedCatalogue;case"impossible":return e.impossibleOrbit;case"uninformative":return t.source==="none"?e.typeUnknown:t.reason==="faint"?e.faintFireball:t.reason==="beforeArchive"?e.beforeGmn:t.reason==="daylight"?e.daylightGmn:a(e.unwatchedGmn,{km:u.WATCHED_KM});case"compatible":return a(e.compatibleShower,{shower:this.sceneNames?.showers[t.showerId]??t.showerId,off:t.offDeg,zhr:t.zhr,margin:u.SHOWER_MARGIN_DEG});case"sporadic":return t.active===0?e.sporadicNoShower:a(e.sporadicShower,{count:t.active});case"unchecked":return t.reason==="noDateOrPlace"?e.noDateOrPlace:t.source==="gmn"?e.unreachableGmn:e.unreachableCatalogue}}syncTimeline(){const t=this.current;if(!this.timeline||!t)return;const e=this.messages,n=t.track[0]?.t??0,i=t.track[t.track.length-1]?.t??0,r={id:"path",label:e.path,color:T.PATH_COLOR,times:t.track.map(l=>l.t),active:this.row==="path",selectedTime:this.row==="path"?t.track[this.placeIndex]?.t:void 0,open:()=>this.selectPlace(this.placeIndex),pressed:(l,h)=>{const m=h===void 0?-1:(this.current?.track??[]).findIndex(f=>f.t===h);this.selectPlace(m>=0?m:this.placeIndex)},move:(l,h)=>this.movePlace(l,h),add:()=>this.addPlaceAt(this.host.currentTime())},o=t.fragments.map((l,h)=>{const m=l.lightCurve??[];return{id:`fragment-${h}`,label:this.fragmentLabel(l,h),color:T.PIECE_COLOR,times:m.map(f=>f.t),spans:[{t:l.fromT??n,until:l.untilT??i,label:""}],active:this.row==="fragment"&&h===this.fragmentIndex,selectedTime:this.row==="fragment"&&h===this.fragmentIndex?m[this.curveIndex]?.t:void 0,open:()=>this.selectFragment(h),pressed:(f,p)=>{const y=p===void 0?-1:(this.current?.fragments[h]?.lightCurve??[]).findIndex(A=>A.t===p);this.selectFragment(h,y>=0?y:void 0)},move:(f,p)=>this.moveCurvePoint(h,f,p),add:()=>this.addCurvePointAt(h,this.host.currentTime())}}),a=g.instantsOf(t),s=Math.min(...a),d=Math.max(...a),c=Math.max(500,(d-s)/10);this.timeline.show([r,...o],this.host.duration(),this.host.currentTime(),{from:s-c,to:d+c})}static PATH_COLOR="#e08a1e";static PIECE_COLOR="#c0581b";static MIN_PLACES=2;syncPlace(t=!1){const e=this.current?.track??[];this.placeIndex=Math.max(0,Math.min(this.placeIndex,e.length-1)),this.element("reentry-place-delete").disabled=e.length<=T.MIN_PLACES,this.placeForm?this.placeForm.sync(t):(this.placeForm=new D(this.element("reentry-place-parameters"),this.language,"reentryPlace."),this.placeForm.show(this.resolved(g.PLACE),new k(()=>this.current?.track[this.placeIndex],n=>this.editPlace(this.placeIndex,n),void 0,this.host.positionPlace?.()),()=>{})),this.syncTimeline()}selectPlace(t){this.row="path",this.placeIndex=t,this.syncDetail(),this.syncPlace(!0)}syncDetail(){this.element("reentry-path").hidden=this.row!=="path",this.element("reentry-fragments").hidden=this.row!=="fragment";const t=this.currentFragment;this.element("reentry-fragment-legend").textContent=t?`${this.messages.fragment} ${this.fragmentLabel(t,this.fragmentIndex)}`:this.messages.fragment}editPlace(t,e){let n;this.editReentry(i=>{n={...i.track[t]},e(n),i.track=i.track.map((r,o)=>o===t?n:r).sort((r,o)=>r.t-o.t)}),n&&(this.placeIndex=this.current?.track.indexOf(n)??0),this.syncPlace()}movePlace(t,e){const n=this.current?.track.findIndex(i=>i.t===t)??-1;n<0||(this.editPlace(n,i=>{i.t=e}),this.syncPlace(!0))}addPlaceAt(t){const e=this.current;if(!e)return;const n=e.track.findIndex(r=>Math.abs(r.t-t)<1);if(n>=0){this.selectPlace(n);return}const i=g.placeAt(e,t);this.editReentry(r=>{r.track=[...r.track,i].sort((o,a)=>o.t-a.t)}),this.selectPlace(this.current?.track.indexOf(i)??0)}removePlace(){if((this.current?.track.length??0)<=T.MIN_PLACES)return;const t=this.placeIndex;this.editReentry(e=>{e.track=e.track.filter((n,i)=>i!==t)}),this.syncPlace(!0)}static MIN_FRAGMENTS=1;fragmentLabel(t,e){return t.id??String(e+1)}syncFragments(t,e=!1){const n=t.fragments;this.fragmentIndex=Math.max(0,Math.min(this.fragmentIndex,n.length-1)),this.element("reentry-fragment-delete").disabled=n.length<=T.MIN_FRAGMENTS,this.syncDetail(),this.fragmentForm?this.fragmentForm.sync(e):(this.fragmentForm=new D(this.element("reentry-fragment-parameters"),this.language,"reentryFragment."),this.fragmentForm.show(this.resolved(g.FRAGMENT),new k(()=>this.currentFragment,i=>this.editFragment(r=>i(r)),()=>this.current),()=>{})),this.syncCurve(e)}selectFragment(t,e){const n=t!==this.fragmentIndex;this.row="fragment",this.fragmentIndex=t,e!==void 0?this.curveIndex=e:n&&(this.curveIndex=0),this.current&&this.syncFragments(this.current,!0)}get currentFragment(){return this.current?.fragments[this.fragmentIndex]}editFragment(t,e=this.fragmentIndex){this.editReentry(n=>{const i={...n.fragments[e]};i.lightCurve&&(i.lightCurve=[...i.lightCurve]),t(i),n.fragments=n.fragments.map((r,o)=>o===e?i:r)}),this.syncDetail(),this.syncTimeline()}addFragment(){const t=this.current;if(!t)return;const e=t.fragments[t.fragments.length-1];let n=t.fragments.length+1;for(;t.fragments.some(r=>r.id===`piece-${n}`);)n++;const i={id:`piece-${n}`,lagS:(e?.lagS??0)+1,absoluteMagnitude:(e?.absoluteMagnitude??-4)+1};this.editReentry(r=>{r.fragments=[...r.fragments,i]}),this.selectFragment((this.current?.fragments.length??1)-1)}removeFragment(){if((this.current?.fragments.length??0)<=T.MIN_FRAGMENTS)return;const t=this.fragmentIndex;this.editReentry(e=>{e.fragments=e.fragments.filter((n,i)=>i!==t)}),this.curveIndex=0,this.selectFragment(Math.min(t,(this.current?.fragments.length??1)-1))}syncCurve(t=!1){const e=this.currentFragment?.lightCurve??[];this.curveIndex=Math.max(0,Math.min(this.curveIndex,e.length-1)),this.element("reentry-curve-empty").hidden=e.length>0,this.element("reentry-curve-parameters").hidden=e.length===0,this.element("reentry-curve-delete").hidden=e.length===0,this.curveForm?this.curveForm.sync(t):(this.curveForm=new D(this.element("reentry-curve-parameters"),this.language,"reentryCurve."),this.curveForm.show(this.resolved(g.CURVE_POINT),new k(()=>this.currentFragment?.lightCurve?.[this.curveIndex],n=>this.editCurvePoint(this.fragmentIndex,this.curveIndex,n)),()=>{})),this.syncTimeline()}editCurvePoint(t,e,n){let i;this.editFragment(r=>{const o=r.lightCurve??[];i={...o[e]},n(i),r.lightCurve=o.map((a,s)=>s===e?i:a).sort((a,s)=>a.t-s.t)},t),i&&(this.curveIndex=this.current?.fragments[t]?.lightCurve?.indexOf(i)??0),this.syncCurve()}moveCurvePoint(t,e,n){const i=this.current?.fragments[t]?.lightCurve?.findIndex(r=>r.t===e)??-1;i<0||(this.fragmentIndex=t,this.editCurvePoint(t,i,r=>{r.t=n}),this.syncFragments(this.current,!0))}addCurvePointAt(t,e){const n=this.current?.fragments[t];if(!n)return;const i=(n.lightCurve??[]).findIndex(o=>Math.abs(o.t-e)<1);if(i>=0){this.selectFragment(t,i);return}const r=g.curvePointAt(n,e);this.editFragment(o=>{o.lightCurve=[...o.lightCurve??[],r].sort((a,s)=>a.t-s.t)},t),this.selectFragment(t,this.current?.fragments[t]?.lightCurve?.indexOf(r)??0)}removeCurvePoint(){if(!this.currentFragment?.lightCurve?.length)return;const t=this.curveIndex;this.editFragment(e=>{const n=(e.lightCurve??[]).filter((i,r)=>r!==t);n.length?e.lightCurve=n:delete e.lightCurve}),this.syncCurve(!0)}editReentry(t){const e=this.current;if(!e)return;const n={...e,track:[...e.track],fragments:[...e.fragments]};t(n),this.writeReentries(this.reentries.map(i=>i===e?n:i)),this.host.changed()}pointAtCurrent(){const t=this.current,e=t?.track;if(!t||!e||e.length<2||!this.host.pointAt)return;const n=e[0].t,i=e[e.length-1].t;let r=this.host.currentTime();(r<n||r>i)&&(r=Math.round(n+Math.min(1e3,(i-n)/2)),this.host.seekTo(r));const o=this.host.sighting(),a=G(o,r),s=o.event?.place?.[0],d=a?.lat??s?.lat,c=a?.lng??s?.lng,l=b.leadAt(t,r);if(d===void 0||c===void 0||!l)return;const h=b.seenFrom({lat:d,lng:c,heightM:a?.elevationM??0},l);this.host.pointAt(h.azimuthDeg,h.altitudeDeg)}origin(){const t=this.host.sighting(),e=t.event?.place?.[0];if(!(e?.lat===void 0||e.lng===void 0))return{lat:e.lat,lng:e.lng,headingRad:(t.observerTrack?.getInterpolatedPoseAt(0)?.headingDeg??0)*Math.PI/180}}newOf(t){const e=this.origin(),n=M.of(t);if(!e||!n)return;const{distanceKm:i,speedKmS:r,durationS:o,fromAltitudeKm:a,toAltitudeKm:s,fragments:d}=n.template,c=Math.round(this.host.currentTime()),l=Math.max(.05,Math.cos(e.lat*Math.PI/180)),h=(f,p)=>{const y=f*Math.cos(e.headingRad)-p*Math.sin(e.headingRad),A=f*Math.sin(e.headingRad)+p*Math.cos(e.headingRad);return{lat:e.lat+y/111.32,lng:e.lng+A/(111.32*l)}},m=r*o/2;return{type:t,track:[{t:c,...h(i,-m),altitudeKm:a},{t:c+o*1e3,...h(i,m),altitudeKm:s}],fragments:d.map(f=>({...f,...f.sheds?{sheds:[...f.sheds]}:{}}))}}addReentry(t){const e=this.newOf(t);if(!e)return;let n=this.reentries.length+1;for(;this.reentries.some(r=>r.id===`${t}-${n}`);)n++;const i={id:`${t}-${n}`,...e};this.writeReentries([...this.reentries,i]),this.host.changed(),this.show(i.id)}deleteCurrent(){const t=this.current;t&&(this.currentId=void 0,this.writeReentries(this.reentries.filter(e=>e!==t)),this.host.changed(),this.sync())}writeReentries(t){const e=this.host.sighting();e.skyEvents=L.written({...e.skyEvents,reentries:t})}labelOf(t){const e=this.host.said().read(t.title)||t.object?.name||(t.type===void 0?"":M.nameOf(t.type));return e?`${e} (${t.id})`:t.id}get reentries(){return this.host.sighting().skyEvents?.reentries??[]}element(t){return this.container.querySelector(`#${t}`)}}export{T as ReentryEditor};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={intro:"An atmospheric re-entry seen while the recording runs: a meteor or a fireball, which came in by itself, or a satellite, a rocket stage or a capsule burning up. A fact of the sky, not a reading of the account. It is placed where it really was, latitude, longitude and height, and seen through the Earth's shape; its light lights the scene from there.",none:"No re-entry in this recording",reentry:"Re-entry",deleteReentry:"Delete it",pointAtReentry:"Point at it",addReentry:"Add a re-entry",path:"Path",deletePlace:"Remove this point",fragments:"Pieces",fragment:"Piece",addFragment:"Add a piece behind the last",deleteFragment:"Remove this piece",curve:"Light curve",deleteCurvePoint:"Remove this point",noCurve:'No light curve: its absolute magnitude stands throughout. The "+" of its row on the timeline adds a point at the playhead.',addNowhere:"Give the recording a place first: a re-entry is put in front of the witness",derivedNote:"An empty field shows, greyed, the value in use. Empty a field to go back to it. The smaller pieces each one sheds are set in the file.",timelineNote:`On the timeline, a diamond pressed is the point shown below, and the scene goes to its instant; drag it to move it in time. The "+" of a row puts a point at the playhead. The hatched parts are before the recording's start or after its end.`,addPointHere:"Add a point here, at the playhead",pointHere:"A point is at the playhead: press it to edit it",zoomHint:"Pinch, or Ctrl + wheel, to zoom; Shift + wheel to scroll",evidence:"In the sources",evidenceChecking:"Asking the sources…",knownFireball:"Known: fireball {id} of the Global Meteor Network, at {time} ({offset} min off), triangulated by {stations} stations, absolute magnitude {mag}: within a witness's errors of what is entered ({heading}° off in heading).",knownObject:"Known: {name} ({cospar}), the object it names, is in the satellite catalogue; re-entry: {when}.",knownSeen:"Known: {name} ({cospar}) was seen coming down at {time} from {place}, {km} km from here.",possibleSeen:"Possible: {name} ({cospar}) was seen coming down at {time} from {place}, {km} km from here, {offset} min off: more than a witness errs by.",possibleWindow:"Possible: {name} ({cospar}) came down within {hours} h of {time}, somewhere along its orbit: nothing says it crossed this sky.",possibleDay:"Possible: {name} ({cospar}) came down on {day}, somewhere along its orbit: nothing says it crossed this sky.",expectedFireball:"Expected in the sources, absent: a fireball of absolute magnitude {mag} at night here, where the Global Meteor Network recorded {count} fireballs that month within {km} km, would be in it, unless its cameras were under cloud.",expectedCatalogue:"Expected in the sources, absent: every catalogued object's re-entry is dated since 1957. An object that was not catalogued (secret, a small piece of debris), or not a re-entry.",impossibleOrbit:"Impossible: nothing was in orbit before 4 October 1957.",faintFireball:"Absence says nothing: no network records every meteor fainter than absolute magnitude −3.",beforeGmn:"Absence says nothing: the Global Meteor Network's records begin in December 2018.",unwatchedGmn:"Absence says nothing: the Global Meteor Network recorded next to nothing within {km} km that month; this sky is not watched.",daylightGmn:"Absence says nothing: the Global Meteor Network's cameras do not run by day.",typeUnknown:"Nothing known matches it; its type not being said, its absence says nothing.",unreachableGmn:"Not checked: the Global Meteor Network's records could not be reached.",unreachableCatalogue:"Not checked: the satellite catalogue could not be reached.",noDateOrPlace:"Not checked: the recording needs a date and a place.",compatibleShower:"Compatible with the {shower}: traced back, its path passes {off}° from their radiant (within {margin}°), a shower then at some {zhr} meteors an hour at best. One of its meteors perhaps, never surely: a sporadic may cross the same way.",sporadicShower:"Sporadic, as most meteors are: traced back, its path comes from none of the {count} showers active then.",sporadicNoShower:"Sporadic, as most meteors are: no shower was active then.",margins:"Within a witness's errors: ±{minutes} min, heading ±{heading}°, elevation overestimated, duration ×/÷{factor}."};export{e as reentryEditorMessages_en};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={intro:"Una reentrada atmosférica vista durante la grabación: un meteoro o un bólido, llegado por sí solo, o un satélite, una etapa de cohete o una cápsula que se consume. Un hecho del cielo, no una lectura del relato. Se sitúa donde estaba realmente, latitud, longitud y altura, y se ve a través de la forma de la Tierra; su luz ilumina la escena desde allí.",none:"Ninguna reentrada en esta grabación",reentry:"Reentrada",deleteReentry:"Eliminarlo",pointAtReentry:"Apuntarlo",addReentry:"Añadir una reentrada",path:"Trayecto",deletePlace:"Quitar este punto",fragments:"Piezas",fragment:"Pieza",addFragment:"Añadir una pieza detrás de la última",deleteFragment:"Quitar esta pieza",curve:"Curva de luz",deleteCurvePoint:"Quitar este punto",noCurve:"Sin curva de luz: su magnitud absoluta vale todo el tiempo. El «+» de su fila en la línea de tiempo añade un punto en el cabezal.",addNowhere:"Dé primero un lugar a la grabación: una reentrada se coloca delante del testigo",derivedNote:"Un campo vacío muestra, en gris, el valor usado. Vacíe un campo para volver a él. Los fragmentos más pequeños que suelta cada pieza se ajustan en el archivo.",timelineNote:"En la línea de tiempo, un rombo pulsado es el punto mostrado debajo, y la escena va a su instante; arrástrelo para moverlo en el tiempo. El «+» de una fila pone un punto en el cabezal. Las partes rayadas están antes del inicio de la grabación o después de su final.",addPointHere:"Añadir un punto aquí, en el cabezal",pointHere:"Hay un punto en el cabezal: púlselo para editarlo",zoomHint:"Pellizque, o Ctrl + rueda, para ampliar; Mayús + rueda para desplazar",evidence:"En las fuentes",evidenceChecking:"Consultando las fuentes…",knownFireball:"Conocido: el bólido {id} de la Global Meteor Network, a las {time} ({offset} min de diferencia), triangulado por {stations} estaciones, magnitud absoluta {mag}: dentro de los errores de un testigo respecto a lo introducido ({heading}° de diferencia de rumbo).",knownObject:"Conocido: {name} ({cospar}), el objeto que nombra, está en el catálogo de satélites; reentrada: {when}.",knownSeen:"Conocido: {name} ({cospar}) se vio reentrar a las {time} desde {place}, a {km} km de aquí.",possibleSeen:"Posible: {name} ({cospar}) se vio reentrar a las {time} desde {place}, a {km} km de aquí, con {offset} min de diferencia: más de lo que yerra un testigo.",possibleWindow:"Posible: {name} ({cospar}) reentró con {hours} h de margen en torno a las {time}, en algún punto de su órbita: nada dice que cruzara este cielo.",possibleDay:"Posible: {name} ({cospar}) reentró el {day}, en algún punto de su órbita: nada dice que cruzara este cielo.",expectedFireball:"Esperado en las fuentes, ausente: un bólido de magnitud absoluta {mag} aquí de noche, donde la Global Meteor Network registró {count} bólidos ese mes a menos de {km} km, estaría en ellas, salvo que sus cámaras estuvieran bajo las nubes.",expectedCatalogue:"Esperado en las fuentes, ausente: la reentrada de todo objeto catalogado está fechada desde 1957. Un objeto no catalogado (secreto, un pequeño desecho), o no una reentrada.",impossibleOrbit:"Imposible: nada estaba en órbita antes del 4 de octubre de 1957.",faintFireball:"La ausencia no dice nada: ninguna red registra todos los meteoros más débiles que la magnitud absoluta −3.",beforeGmn:"La ausencia no dice nada: los registros de la Global Meteor Network empiezan en diciembre de 2018.",unwatchedGmn:"La ausencia no dice nada: la Global Meteor Network apenas registró nada a menos de {km} km ese mes; este cielo no está vigilado.",daylightGmn:"La ausencia no dice nada: las cámaras de la Global Meteor Network no funcionan de día.",typeUnknown:"Nada conocido coincide; al no decirse su tipo, su ausencia no dice nada.",unreachableGmn:"No comprobado: no se pudo acceder a los registros de la Global Meteor Network.",unreachableCatalogue:"No comprobado: no se pudo acceder al catálogo de satélites.",noDateOrPlace:"No comprobado: la grabación necesita una fecha y un lugar.",compatibleShower:"Compatible con las {shower}: prolongado hacia atrás, su camino pasa a {off}° de su radiante (con {margin}° de margen), una lluvia entonces de unos {zhr} meteoros por hora como mucho. Uno de sus meteoros quizá, nunca con certeza: un esporádico puede cruzar igual.",sporadicShower:"Esporádico, como la mayoría de los meteoros: prolongado hacia atrás, su camino no viene de ninguna de las {count} lluvias activas entonces.",sporadicNoShower:"Esporádico, como la mayoría de los meteoros: ninguna lluvia estaba activa entonces.",margins:"Dentro de los errores de un testigo: ±{minutes} min, rumbo ±{heading}°, altura sobreestimada, duración ×/÷{factor}."};export{e as reentryEditorMessages_es};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={intro:"Une rentrée atmosphérique vue pendant l'enregistrement : un météore ou un bolide, venu seul, ou un satellite, un étage de fusée ou une capsule qui se consume. Un fait du ciel, pas une lecture du compte rendu. Elle est placée là où elle était vraiment, latitude, longitude et altitude, et vue à travers la forme de la Terre ; sa lumière éclaire la scène depuis là.",none:"Aucune rentrée dans cet enregistrement",reentry:"Rentrée",deleteReentry:"Le supprimer",pointAtReentry:"Le pointer",addReentry:"Ajouter une rentrée",path:"Trajet",deletePlace:"Retirer ce point",fragments:"Pièces",fragment:"Pièce",addFragment:"Ajouter une pièce derrière la dernière",deleteFragment:"Retirer cette pièce",curve:"Courbe de lumière",deleteCurvePoint:"Retirer ce point",noCurve:"Pas de courbe de lumière : sa magnitude absolue vaut tout du long. Le « + » de sa ligne sur la frise ajoute un point à la tête de lecture.",addNowhere:"Donnez d'abord un lieu à l'enregistrement : une rentrée est placée devant le témoin",derivedNote:"Un champ vide montre, en grisé, la valeur utilisée. Videz un champ pour y revenir. Les débris plus petits que perd chaque pièce se règlent dans le fichier.",timelineNote:"Sur la frise, un losange pressé est le point affiché dessous, et la scène va à son instant ; faites-le glisser pour le déplacer dans le temps. Le « + » d'une ligne pose un point à la tête de lecture. Les parties hachurées sont avant le début de l'enregistrement ou après sa fin.",addPointHere:"Ajouter un point ici, à la tête de lecture",pointHere:"Un point est à la tête de lecture : pressez-le pour le modifier",zoomHint:"Pincez, ou Ctrl + molette, pour zoomer ; Maj + molette pour défiler",evidence:"Dans les sources",evidenceChecking:"Recherche dans les sources…",knownFireball:"Connu : le bolide {id} du Global Meteor Network, à {time} ({offset} min d'écart), triangulé par {stations} stations, magnitude absolue {mag} : dans les marges d'erreur d'un témoin par rapport à ce qui est saisi ({heading}° d'écart de cap).",knownObject:"Connu : {name} ({cospar}), l'objet qu'elle nomme, est au catalogue des satellites ; rentrée : {when}.",knownSeen:"Connu : {name} ({cospar}) a été vu rentrer à {time} depuis {place}, à {km} km d'ici.",possibleSeen:"Possible : {name} ({cospar}) a été vu rentrer à {time} depuis {place}, à {km} km d'ici, avec {offset} min d'écart : plus que l'erreur d'un témoin.",possibleWindow:"Possible : {name} ({cospar}) est rentré à {hours} h près de {time}, quelque part sur son orbite : rien ne dit qu'il a traversé ce ciel.",possibleDay:"Possible : {name} ({cospar}) est rentré le {day}, quelque part sur son orbite : rien ne dit qu'il a traversé ce ciel.",expectedFireball:"Attendu dans les sources, absent : un bolide de magnitude absolue {mag} ici de nuit, où le Global Meteor Network a enregistré {count} bolides ce mois-là à moins de {km} km, y serait, sauf si ses caméras étaient sous les nuages.",expectedCatalogue:"Attendu dans les sources, absent : la rentrée de tout objet catalogué est datée depuis 1957. Un objet non catalogué (secret, petit débris), ou pas une rentrée.",impossibleOrbit:"Impossible : rien n'était en orbite avant le 4 octobre 1957.",faintFireball:"Absence non informative : aucun réseau ne recense tous les météores plus faibles que la magnitude absolue −3.",beforeGmn:"Absence non informative : les enregistrements du Global Meteor Network commencent en décembre 2018.",unwatchedGmn:"Absence non informative : le Global Meteor Network n'a presque rien enregistré à moins de {km} km ce mois-là ; ce ciel n'est pas surveillé.",daylightGmn:"Absence non informative : les caméras du Global Meteor Network ne tournent pas de jour.",typeUnknown:"Rien de connu ne correspond ; son type n'étant pas dit, son absence ne dit rien.",unreachableGmn:"Non vérifié : les enregistrements du Global Meteor Network sont injoignables.",unreachableCatalogue:"Non vérifié : le catalogue des satellites est injoignable.",noDateOrPlace:"Non vérifié : l'enregistrement doit avoir une date et un lieu.",compatibleShower:"Compatible avec les {shower} : prolongé vers l'arrière, son trajet passe à {off}° de leur radiant (à {margin}° près), un essaim alors à quelque {zhr} météores par heure au mieux. Un de ses météores peut-être, jamais sûrement : un sporadique peut passer de même.",sporadicShower:"Sporadique, comme la plupart des météores : prolongé vers l'arrière, son trajet ne vient d'aucun des {count} essaims actifs alors.",sporadicNoShower:"Sporadique, comme la plupart des météores : aucun essaim n'était actif alors.",margins:"Dans les marges d'erreur d'un témoin : ±{minutes} min, cap ±{heading}°, hauteur surestimée, durée ×/÷{factor}."};export{e as reentryEditorMessages_fr};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={intro:"Un rientro atmosferico visto durante la registrazione: una meteora o un bolide, arrivato da sé, o un satellite, uno stadio di razzo o una capsula che si consuma. Un fatto del cielo, non una lettura del resoconto. È collocato dove si trovava davvero, latitudine, longitudine e quota, e visto attraverso la forma della Terra; la sua luce illumina la scena da lì.",none:"Nessun rientro in questa registrazione",reentry:"Rientro",deleteReentry:"Eliminarlo",pointAtReentry:"Puntarlo",addReentry:"Aggiungi un rientro",path:"Percorso",deletePlace:"Togliere questo punto",fragments:"Pezzi",fragment:"Pezzo",addFragment:"Aggiungere un pezzo dietro l'ultimo",deleteFragment:"Togliere questo pezzo",curve:"Curva di luce",deleteCurvePoint:"Togliere questo punto",noCurve:"Nessuna curva di luce: la sua magnitudine assoluta vale per tutto il tempo. Il «+» della sua riga sulla linea del tempo aggiunge un punto alla testina.",addNowhere:"Date prima un luogo alla registrazione: un rientro è posto davanti al testimone",derivedNote:"Un campo vuoto mostra, in grigio, il valore usato. Svuotate un campo per tornarci. I frammenti più piccoli che perde ogni pezzo si regolano nel file.",timelineNote:"Sulla linea del tempo, un rombo premuto è il punto mostrato sotto, e la scena va al suo istante; trascinatelo per spostarlo nel tempo. Il «+» di una riga mette un punto alla testina. Le parti tratteggiate sono prima dell'inizio della registrazione o dopo la sua fine.",addPointHere:"Aggiungere un punto qui, alla testina",pointHere:"C'è un punto alla testina: premetelo per modificarlo",zoomHint:"Pizzicate, o Ctrl + rotella, per ingrandire; Maiusc + rotella per scorrere",evidence:"Nelle fonti",evidenceChecking:"Consultazione delle fonti…",knownFireball:"Noto: il bolide {id} della Global Meteor Network, alle {time} ({offset} min di scarto), triangolato da {stations} stazioni, magnitudine assoluta {mag}: entro gli errori di un testimone rispetto a ciò che è inserito ({heading}° di scarto di direzione).",knownObject:"Noto: {name} ({cospar}), l'oggetto che nomina, è nel catalogo dei satelliti; rientro: {when}.",knownSeen:"Noto: {name} ({cospar}) è stato visto rientrare alle {time} da {place}, a {km} km da qui.",possibleSeen:"Possibile: {name} ({cospar}) è stato visto rientrare alle {time} da {place}, a {km} km da qui, con {offset} min di scarto: più di quanto sbagli un testimone.",possibleWindow:"Possibile: {name} ({cospar}) è rientrato entro {hours} h dalle {time}, in un punto della sua orbita: nulla dice che abbia attraversato questo cielo.",possibleDay:"Possibile: {name} ({cospar}) è rientrato il {day}, in un punto della sua orbita: nulla dice che abbia attraversato questo cielo.",expectedFireball:"Atteso nelle fonti, assente: un bolide di magnitudine assoluta {mag} qui di notte, dove la Global Meteor Network ha registrato {count} bolidi quel mese entro {km} km, vi sarebbe, a meno che le sue telecamere fossero sotto le nuvole.",expectedCatalogue:"Atteso nelle fonti, assente: il rientro di ogni oggetto catalogato è datato dal 1957. Un oggetto non catalogato (segreto, un piccolo detrito), o non un rientro.",impossibleOrbit:"Impossibile: nulla era in orbita prima del 4 ottobre 1957.",faintFireball:"L'assenza non dice nulla: nessuna rete registra tutte le meteore più deboli della magnitudine assoluta −3.",beforeGmn:"L'assenza non dice nulla: le registrazioni della Global Meteor Network iniziano nel dicembre 2018.",unwatchedGmn:"L'assenza non dice nulla: la Global Meteor Network non ha registrato quasi nulla entro {km} km quel mese; questo cielo non è sorvegliato.",daylightGmn:"L'assenza non dice nulla: le telecamere della Global Meteor Network non funzionano di giorno.",typeUnknown:"Nulla di noto corrisponde; non essendo detto il suo tipo, la sua assenza non dice nulla.",unreachableGmn:"Non verificato: le registrazioni della Global Meteor Network non sono raggiungibili.",unreachableCatalogue:"Non verificato: il catalogo dei satelliti non è raggiungibile.",noDateOrPlace:"Non verificato: la registrazione deve avere una data e un luogo.",compatibleShower:"Compatibile con le {shower}: prolungato all'indietro, il suo percorso passa a {off}° dal loro radiante (entro {margin}°), uno sciame allora di circa {zhr} meteore l'ora al massimo. Forse una delle sue meteore, mai con certezza: una sporadica può passare allo stesso modo.",sporadicShower:"Sporadica, come la maggior parte delle meteore: prolungato all'indietro, il suo percorso non viene da nessuno dei {count} sciami attivi allora.",sporadicNoShower:"Sporadica, come la maggior parte delle meteore: nessuno sciame era attivo allora.",margins:"Entro gli errori di un testimone: ±{minutes} min, direzione ±{heading}°, altezza sovrastimata, durata ×/÷{factor}."};export{e as reentryEditorMessages_it};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={title:"Re-entries",name:"Re-entry",piece:"{name} — mag {mag}, {height} km up, {distance} km away",fragment:"{name}, a fragment — mag {mag}, {height} km up, {distance} km away"};export{e as reentryKindMessages_en};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={title:"Reentradas",name:"Reentrada atmosférica",piece:"{name} — mag {mag}, a {height} km de altitud y {distance} km",fragment:"{name}, un fragmento — mag {mag}, a {height} km de altitud y {distance} km"};export{e as reentryKindMessages_es};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={title:"Rentrées",name:"Rentrée atmosphérique",piece:"{name} — mag {mag}, à {height} km d'altitude et {distance} km",fragment:"{name}, un fragment — mag {mag}, à {height} km d'altitude et {distance} km"};export{e as reentryKindMessages_fr};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={title:"Rientri",name:"Rientro atmosferico",piece:"{name} — mag {mag}, a {height} km di quota e {distance} km",fragment:"{name}, un frammento — mag {mag}, a {height} km di quota e {distance} km"};export{e as reentryKindMessages_it};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={name:"Name",object:"Object",light:"Light",when:"When",fireballOrReEntry:"Re-entry",type:"Type",whatCameInNaturalOrPut:"What came in: a meteor or a fireball came in by itself, a satellite, a rocket stage or a capsule was put in orbit.",notKnown:"Not known",seenByTheWitness:"Seen by the witness",appearedAzimuth:"Appeared, azimuth",appearedHeight:"Appeared, height",wentOutAzimuth:"Went out, azimuth",wentOutHeight:"Went out, height",seenFor:"Seen for",fromTheNorthTowardsTheEast:"Degrees from the north towards the east",aboveTheHorizon:"Degrees above the horizon",allSaidThePathIsWorkedOut:"Once all five are said, its path is worked out from them, at the heights of its path's first and last points, and replaces it",catalogueName:"Catalogue name",forAReEntryThePiece:'The piece as the satellite catalogue names it: "SL-12 R/B".',cosparId:"COSPAR id",t1968013c:"1968-013C",noradNumber:"NORAD number",pointOfThePath:"Point of the path",time:"Time",secondsOfTheRecordingNegativeBefore:"Seconds of the recording; negative before it began.",position:"Position",altitude:"Altitude",aboveTheEllipsoidAMeteorBegins:"Above the ellipsoid. A meteor begins to glow between 120 and 80 km; a satellite breaks up near 80.",piece:"Piece",id:"Id",absoluteMagnitude:"Absolute magnitude",itsBrightnessSeenFrom100Km:"Its brightness seen from 100 km, as fireball reports give it: −4 or brighter is a fireball, −17 a superbolide. Its light curve, when it has one, stands instead.",colour:"Colour",train:"Train",howLongAStretchOfIts:"How long a stretch of its own past path still glows behind it, seconds.",behindTheLead:"Behind the lead",secondsBehindTheLeadingPointAlong:"Seconds behind the leading point along the same path: 0 is the leading piece itself.",seenFrom:"Seen from",whenItBreaksOffOrBegins:"When it breaks off or begins to glow; empty, the start of the path.",outAt:"Out at",whenItHasBurnedUpOr:"When it has burned up or slowed below glowing; empty, the end of the path.",pointOfTheLightCurve:"Point of the light curve",secondsOfTheRecording:"Seconds of the recording."};export{e as reentryParameterTexts_en};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={name:"Nombre",object:"Objeto",light:"Luz",when:"Cuándo",fireballOrReEntry:"Reentrada",type:"Tipo",whatCameInNaturalOrPut:"Lo que entró: un meteoro o un bólido llegó por sí solo; un satélite, una etapa de cohete o una cápsula había sido puesto en órbita.",notKnown:"Desconocido",seenByTheWitness:"Visto por el testigo",appearedAzimuth:"Apareció, acimut",appearedHeight:"Apareció, altura",wentOutAzimuth:"Se apagó, acimut",wentOutHeight:"Se apagó, altura",seenFor:"Visto durante",fromTheNorthTowardsTheEast:"Grados desde el norte hacia el este",aboveTheHorizon:"Grados sobre el horizonte",allSaidThePathIsWorkedOut:"Una vez dichos los cinco valores, su camino se deduce de ellos, a las alturas del primer y último punto de su camino, y lo sustituye",catalogueName:"Nombre en el catálogo",forAReEntryThePiece:"La pieza como la nombra el catálogo de satélites: «SL-12 R/B».",cosparId:"Identificador COSPAR",t1968013c:"1968-013C",noradNumber:"Número NORAD",pointOfThePath:"Punto del trayecto",time:"Instante",secondsOfTheRecordingNegativeBefore:"Segundos de la grabación; negativos antes de su inicio.",position:"Posición",altitude:"Altitud",aboveTheEllipsoidAMeteorBegins:"Sobre el elipsoide. Un meteoro se enciende entre 120 y 80 km; un satélite se rompe hacia los 80.",piece:"Pieza",id:"Identificador",absoluteMagnitude:"Magnitud absoluta",itsBrightnessSeenFrom100Km:"Su brillo visto a 100 km, como lo dan los informes de bólidos: −4 o más brillante es un bólido, −17 un superbólido. Su curva de luz, cuando la tiene, vale en su lugar.",colour:"Color",train:"Estela",howLongAStretchOfIts:"Cuántos segundos de su propio trayecto siguen brillando detrás de él.",behindTheLead:"Retraso sobre la cabeza",secondsBehindTheLeadingPointAlong:"Segundos de retraso sobre el punto de cabeza, en el mismo trayecto: 0 es la propia pieza de cabeza.",seenFrom:"Visto desde",whenItBreaksOffOrBegins:"Cuando se desprende o se enciende; vacío, el inicio del trayecto.",outAt:"Apagado a",whenItHasBurnedUpOr:"Cuando se ha consumido o ha frenado demasiado para brillar; vacío, el final del trayecto.",pointOfTheLightCurve:"Punto de la curva de luz",secondsOfTheRecording:"Segundos de la grabación."};export{e as reentryParameterTexts_es};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={name:"Nom",object:"Objet",light:"Lumière",when:"Quand",fireballOrReEntry:"Rentrée",type:"Type",whatCameInNaturalOrPut:"Ce qui est entré : un météore ou un bolide est venu seul, un satellite, un étage de fusée ou une capsule avait été mis en orbite.",notKnown:"Inconnu",seenByTheWitness:"Vu par le témoin",appearedAzimuth:"Apparu, azimut",appearedHeight:"Apparu, hauteur",wentOutAzimuth:"Éteint, azimut",wentOutHeight:"Éteint, hauteur",seenFor:"Vu pendant",fromTheNorthTowardsTheEast:"Degrés depuis le nord vers l'est",aboveTheHorizon:"Degrés au-dessus de l'horizon",allSaidThePathIsWorkedOut:"Une fois les cinq valeurs dites, son trajet en est déduit, aux altitudes des premier et dernier points de son trajet, et le remplace",catalogueName:"Nom au catalogue",forAReEntryThePiece:"La pièce comme le catalogue des satellites la nomme : « SL-12 R/B ».",cosparId:"Identifiant COSPAR",t1968013c:"1968-013C",noradNumber:"Numéro NORAD",pointOfThePath:"Point du trajet",time:"Instant",secondsOfTheRecordingNegativeBefore:"Secondes de l'enregistrement ; négatives avant son début.",position:"Position",altitude:"Altitude",aboveTheEllipsoidAMeteorBegins:"Au-dessus de l'ellipsoïde. Un météore s'allume entre 120 et 80 km ; un satellite se brise vers 80.",piece:"Pièce",id:"Identifiant",absoluteMagnitude:"Magnitude absolue",itsBrightnessSeenFrom100Km:"Son éclat vu à 100 km, comme le donnent les rapports de bolides : −4 ou plus brillant est un bolide, −17 un superbolide. Sa courbe de lumière, quand il en a une, vaut à la place.",colour:"Couleur",train:"Traînée",howLongAStretchOfIts:"Combien de secondes de son propre trajet brillent encore derrière lui.",behindTheLead:"Retard sur la tête",secondsBehindTheLeadingPointAlong:"Secondes de retard sur le point de tête, sur le même trajet : 0 est la pièce de tête elle-même.",seenFrom:"Vu à partir de",whenItBreaksOffOrBegins:"Quand il se détache ou s'allume ; vide, le début du trajet.",outAt:"Éteint à",whenItHasBurnedUpOr:"Quand il s'est consumé ou a trop ralenti pour briller ; vide, la fin du trajet.",pointOfTheLightCurve:"Point de la courbe de lumière",secondsOfTheRecording:"Secondes de l'enregistrement."};export{e as reentryParameterTexts_fr};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={name:"Nome",object:"Oggetto",light:"Luce",when:"Quando",fireballOrReEntry:"Rientro",type:"Tipo",whatCameInNaturalOrPut:"Ciò che è entrato: una meteora o un bolide è arrivato da sé; un satellite, uno stadio di razzo o una capsula era stato messo in orbita.",notKnown:"Sconosciuto",seenByTheWitness:"Visto dal testimone",appearedAzimuth:"Apparso, azimut",appearedHeight:"Apparso, altezza",wentOutAzimuth:"Spento, azimut",wentOutHeight:"Spento, altezza",seenFor:"Visto per",fromTheNorthTowardsTheEast:"Gradi dal nord verso l'est",aboveTheHorizon:"Gradi sopra l'orizzonte",allSaidThePathIsWorkedOut:"Detti tutti e cinque i valori, il suo percorso ne è dedotto, alle quote del primo e dell'ultimo punto del percorso, e lo sostituisce",catalogueName:"Nome a catalogo",forAReEntryThePiece:"Il pezzo come lo chiama il catalogo dei satelliti: «SL-12 R/B».",cosparId:"Identificativo COSPAR",t1968013c:"1968-013C",noradNumber:"Numero NORAD",pointOfThePath:"Punto del percorso",time:"Istante",secondsOfTheRecordingNegativeBefore:"Secondi della registrazione; negativi prima del suo inizio.",position:"Posizione",altitude:"Altitudine",aboveTheEllipsoidAMeteorBegins:"Sopra l'ellissoide. Una meteora si accende tra 120 e 80 km; un satellite si spezza verso gli 80.",piece:"Pezzo",id:"Identificativo",absoluteMagnitude:"Magnitudine assoluta",itsBrightnessSeenFrom100Km:"La sua luminosità vista da 100 km, come la danno i rapporti sui bolidi: −4 o più brillante è un bolide, −17 un superbolide. La sua curva di luce, quando ce l'ha, vale al suo posto.",colour:"Colore",train:"Scia",howLongAStretchOfIts:"Quanti secondi del suo stesso percorso brillano ancora dietro di lui.",behindTheLead:"Ritardo sulla testa",secondsBehindTheLeadingPointAlong:"Secondi di ritardo sul punto di testa, sullo stesso percorso: 0 è il pezzo di testa stesso.",seenFrom:"Visto da",whenItBreaksOffOrBegins:"Quando si stacca o si accende; vuoto, l'inizio del percorso.",outAt:"Spento a",whenItHasBurnedUpOr:"Quando si è consumato o ha rallentato troppo per brillare; vuoto, la fine del percorso.",pointOfTheLightCurve:"Punto della curva di luce",secondsOfTheRecording:"Secondi della registrazione."};export{e as reentryParameterTexts_it};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b2 as S,cJ as G,bz as _,bg as M,cK as f,bj as b,bb as F,cD as R,cE as w,b7 as N,b4 as y,cL as H,cM as C,cN as L,p as j}from"./ShareDialogElement-DLr5u_tk.js";import"./rr0-ufoathome.mjs";import"./SaidPosition-CWiVNaNW.js";import"./Sighting-CBpJpdm9.js";import"./VisualAids-DI-hEL46.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./Obstacles-v9SkfBD7.js";class h{static RADIUS=840;static MAX_SEGMENTS=1024;static VERTICES_PER_SEGMENT=12;static MIN_HALF_WIDTH_DEG=.1;static BRIGHT_HALF_WIDTH_DEG=.22;static TRAIN_SHARE=.9;static TRAIN_FALLOFF=1.2;object=new S;tiers;trains;positions;colors;shown=0;drawn=[];constructor(){this.object.name="reentries",this.tiers=G.map(i=>{const o=new _(new M,f.material(i.size,!1));return f.track(o),o.frustumCulled=!1,this.object.add(o),o});const s=h.MAX_SEGMENTS*h.VERTICES_PER_SEGMENT;this.positions=new Float32Array(s*3),this.colors=new Float32Array(s*3);const t=new M;t.setAttribute("position",new b(this.positions,3)),t.setAttribute("color",new b(this.colors,3)),t.setDrawRange(0,0),this.trains=new F(t,R.material()),this.trains.frustumCulled=!1,R.track(this.trains),this.object.add(this.trains)}nearest(s,t){let i,o=t;for(const e of this.drawn){const n=e.direction.dot(s);(n>o||i&&n===o&&e.magnitude<i.magnitude)&&(o=n,i=e)}return i}static directionOf(s){const{x:t,y:i,z:o}=w(s.altitudeDeg,s.azimuthDeg,1);return new N(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 y;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=H(c,t)*a.fade,{x:A,y:m,z:g}=w(a.head.altitudeDeg,a.head.azimuthDeg,h.RADIUS),[p,I,T]=o(a.head,c),z=a.fade,D=Math.max(r.r,r.g,r.b)||1;e[C(d)].push({x:A,y:m,z:g,r:p*r.r*z/D,g:I*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),A=new Float32Array(c.length*3);c.forEach((g,p)=>{d.set([g.x,g.y,g.z],p*3),A.set([g.r,g.g,g.b],p*3)}),a.geometry.dispose();const m=new M;m.setAttribute("position",new b(d,3)),m.setAttribute("color",new b(A,3)),a.geometry=m});const l=this.trains.geometry;l.setDrawRange(0,n),l.getAttribute("position").needsUpdate=!0,l.getAttribute("color").needsUpdate=!0}pushTrain(s,t,i,o){const e=t.length-1;for(let n=0;n<e;n++){if(s+h.VERTICES_PER_SEGMENT>h.MAX_SEGMENTS*h.VERTICES_PER_SEGMENT)return s;const E=1-n/e,r=1-(n+1)/e,l=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,l,a,u(E),u(r),c(E),c(r),o)}return s}pushRibbon(s,t,i,o,e,n,E,r){const l={x:i.x-t.x,y:i.y-t.y,z:i.z-t.z};if(Math.hypot(l.x,l.y,l.z)<1e-9)return s;const a=this.normalise(this.cross(this.normalise(t),this.normalise(l)));for(const[u,c]of[[-1,0],[0,1]]){const d=this.across(t,a,o,u),A=this.across(i,a,e,u),m=this.across(t,a,o,c),g=this.across(i,a,e,c),p=(I,T)=>I===0?T:0;s=this.push(s,d,p(u,n),r),s=this.push(s,A,p(u,E),r),s=this.push(s,m,p(c,n),r),s=this.push(s,A,p(u,E),r),s=this.push(s,g,p(c,E),r),s=this.push(s,m,p(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 ${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?[]:j.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{$ as ReentrySimulation};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={meteor:"Meteor",fireball:"Fireball",satellite:"Satellite",rocketStage:"Rocket stage",capsule:"Capsule"};export{e as reentryTypeNames_en};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={meteor:"Meteoro",fireball:"Bólido",satellite:"Satélite",rocketStage:"Etapa de cohete",capsule:"Cápsula"};export{e as reentryTypeNames_es};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={meteor:"Météore",fireball:"Bolide",satellite:"Satellite",rocketStage:"Étage de fusée",capsule:"Capsule"};export{e as reentryTypeNames_fr};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={meteor:"Meteora",fireball:"Bolide",satellite:"Satellite",rocketStage:"Stadio di razzo",capsule:"Capsula"};export{e as reentryTypeNames_it};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{bM as w,bN as M,bO as g,be as c,bP as b,bb as y,bD as k,bQ as O,bR as T,bS as E,bT as D}from"./ShareDialogElement-DLr5u_tk.js";import{R as d}from"./ReferenceTimeline-2kBldQeG.js";import{g as I}from"./SaidPosition-CWiVNaNW.js";import{P as m,a as f}from"./PictureFetch-C3wgf1ZV.js";import"./rr0-ufoathome.mjs";import"./Sighting-CBpJpdm9.js";import"./VisualAids-DI-hEL46.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./Obstacles-v9SkfBD7.js";const v=3,u=800,l=Math.PI/180;class r{constructor(t,i,s=r.fetchImage,e=r.openVideo){this.scene=t,this.onImageLoaded=i,this.loadImage=s,this.loadVideo=e}meshes=new Map;signatures=new Map;images=new Map;loading=new Map;failed=new Map;references=[];views=new Map;shown=!0;observerAt;clock={t:0,playing:!1,timeScale:1};static PRESENT_WITHIN_M=2;static GONE_BEYOND_M=20;static presenceAt(t,i){if(!t.from||!i)return 1;const s=I(i.lat,i.lng,t.from.lat,t.from.lng),a=(Math.hypot(s.x,s.z)-r.PRESENT_WITHIN_M)/(r.GONE_BEYOND_M-r.PRESENT_WITHIN_M),o=Math.min(Math.max(a,0),1);return 1-o*o*(3-2*o)}set(t,i=this.views,s){this.references=t,this.observerAt=s,this.views=i;const e=new Set(t.map(a=>a.id));for(const[a,o]of this.meshes)e.has(a)||(this.dispose(o),this.meshes.delete(a),this.signatures.delete(a));for(const[a,o]of this.images){const n=t.find(p=>p.id===a);if(n&&n.src===o.texture.userData.src&&n.kind==="video"==(o.video!==void 0))continue;r.release(o),this.images.delete(a);const h=this.meshes.get(a);h&&(this.dispose(h),this.meshes.delete(a),this.signatures.delete(a))}for(const a of t){const o=this.images.get(a.id);if(!o){this.load(a);continue}this.build(a,o)}this.follow()}setTime(t){this.clock=t,this.follow()}setShown(t){this.shown=t;for(const i of this.meshes.values())i.visible=t&&this.opacityOf(i.userData.id)>0}setView(t,i){this.views.set(t,i);const s=this.meshes.get(t);s&&this.applyOpacity(s,t)}layer=v;get any(){for(const t of this.meshes.values())if(t.visible)return!0;return!1}place(t){const i=this.held;i&&t.getWorldQuaternion(this.cameraTurn);for(const s of this.meshes.values()){if(!s.visible)continue;s.position.copy(t.position);const e=i?.get(s);e&&s.quaternion.copy(this.cameraTurn).multiply(e),s.updateMatrixWorld()}}hold(t){t.getWorldQuaternion(this.cameraTurn);const i=this.cameraTurn.clone().invert();this.held=new Map([...this.meshes.values()].map(s=>[s,i.clone().multiply(s.quaternion)])),this.registered=new Map([...this.meshes.values()].map(s=>[s,s.quaternion.clone()]))}release(){if(this.held){for(const[t,i]of this.registered??[])t.quaternion.copy(i);this.held=void 0,this.registered=void 0}}registered;held;cameraTurn=new w;get furthestM(){return this.meshes.size>0?u:0}directionOfPixel(t,i,s,e){const a=this.images.get(t.id),o=a?a.width/a.height:1,n=d.registrationAt(t,this.clock.t),h=Math.tan(n.fovDeg/2*l),p=h*o;return e.set((i*2-1)*p,(1-s*2)*h,-1).normalize(),e.applyQuaternion(r.orientation(n))}aspectOf(t){const i=this.images.get(t);return i?i.width/i.height:void 0}failureOf(t){return this.failed.get(t)}follow(){for(const t of this.references){const i=this.meshes.get(t.id),s=this.images.get(t.id)?.video;s&&this.sync(t,s),i&&(t.registrationTrack?.length&&r.point(i,t,d.registrationAt(t,this.clock.t)),t.kind==="video"&&this.applyOpacity(i,t.id))}}sync(t,i){const s=d.mediaSecondsAt(t,this.clock.t,this.clock.timeScale,Number.isFinite(i.duration)?i.duration:void 0);if(s===void 0){i.paused||i.pause();return}const e=d.command(i.currentTime,s,this.clock.playing,d.rateOf(t));i.playbackRate=e.rate,e.seekS!==void 0&&!i.seeking&&(i.currentTime=e.seekS),e.play&&i.paused&&i.play().catch(()=>{}),!e.play&&!i.paused&&i.pause()}load(t){const i=t.src;if(this.loading.has(t.id)||this.failed.has(i))return;const s=t.kind==="video",a=(s?this.loadVideo(i,()=>this.onVideoFrame()):this.loadImage(i)).then(o=>{this.loading.delete(t.id);const n=this.references.find(h=>h.id===t.id);if(!n||n.src!==i||n.kind==="video"!==s){r.release(o);return}o.texture.userData.src=i,this.images.set(t.id,o),this.build(n,o),this.follow(),this.onImageLoaded()},o=>{this.loading.delete(t.id),this.failed.set(i,m.failureOf(o)),this.onImageLoaded()});this.loading.set(t.id,a)}onVideoFrame(){this.follow(),this.onFrame?.()}onFrame;static openVideo(t,i){return new Promise((s,e)=>{const a=document.createElement("video");a.crossOrigin="anonymous",a.muted=!0,a.playsInline=!0,a.preload="auto",a.addEventListener("loadeddata",()=>{const o=new M(a);o.colorSpace=g,o.minFilter=c,o.magFilter=c,o.generateMipmaps=!1,a.addEventListener("seeked",i);const n=()=>{a.paused&&i(),a.src&&a.requestVideoFrameCallback(n)};"requestVideoFrameCallback"in a&&a.requestVideoFrameCallback(n),s({texture:o,width:a.videoWidth,height:a.videoHeight,video:a})},{once:!0}),a.addEventListener("error",()=>{m.whyVideoUnread(t).then(o=>e(new f(t,o)))},{once:!0}),a.src=t})}static release(t){t.texture.dispose();const i=t.video;i&&(i.pause(),i.removeAttribute?.("src"),i.load?.())}static async fetchImage(t){const i=await m.blob(t),s=await createImageBitmap(i,{imageOrientation:"flipY"}).catch(()=>{throw new f(t,{kind:"notPicture"})}),e=new b(s);return e.flipY=!1,e.colorSpace=g,e.minFilter=c,e.magFilter=c,e.generateMipmaps=!1,e.needsUpdate=!0,{texture:e,width:s.width,height:s.height}}build(t,i){const s=r.signatureOf(t,i);let e=this.meshes.get(t.id);if(e&&this.signatures.get(t.id)===s){this.applyOpacity(e,t.id);return}e&&(this.dispose(e),this.meshes.delete(t.id)),e=new y(r.geometryOf(t,i),new k({map:i.texture,transparent:!0,depthTest:!1,depthWrite:!1,fog:!1,toneMapped:!1})),t.kind==="panorama"&&(e.material.side=O),e.frustumCulled=!1,e.layers.set(v),e.userData.id=t.id,r.point(e,t,d.registrationAt(t,this.clock.t)),this.scene.add(e),this.meshes.set(t.id,e),this.signatures.set(t.id,s),this.applyOpacity(e,t.id)}static geometryOf(t,i){if(t.kind==="panorama"){const o=new T(u,64,32,Math.PI/2,Math.PI*2),n=o.attributes.uv;for(let h=0;h<n.count;h++)n.setX(h,1-n.getX(h));return n.needsUpdate=!0,o}const s=2*u*Math.tan(t.registration.fovDeg/2*l),e=s*(i.width/Math.max(i.height,1)),a=new E(e,s);return a.translate(0,0,-u),a}static orientation({headingDeg:t,pitchDeg:i,rollDeg:s}){const e=new D;return e.rotation.set(i*l,-t*l,-(s??0)*l,"YXZ"),e.quaternion}static point(t,i,s){if(t.quaternion.copy(r.orientation(s)),i.kind==="panorama")return;const e=Math.tan(s.fovDeg/2*l)/Math.tan(i.registration.fovDeg/2*l);t.scale.set(e,e,1)}inTime(t){if(t.kind!=="video")return!0;const i=this.images.get(t.id)?.video?.duration;return d.mediaSecondsAt(t,this.clock.t,this.clock.timeScale,i!==void 0&&Number.isFinite(i)?i:void 0)!==void 0}opacityOf(t){const i=this.references.find(a=>a.id===t);if(i&&!this.inTime(i))return 0;const s=this.views.get(t),e=i?r.presenceAt(i,this.observerAt):1;return(s?.opacity??i?.opacity??0)*e}applyOpacity(t,i){const s=this.opacityOf(i);t.material.opacity=s,t.visible=this.shown&&s>0}static signatureOf(t,i){const{headingDeg:s,pitchDeg:e,rollDeg:a,fovDeg:o}=t.registration;return[t.kind,t.src,i.width,i.height,s,e,a??0,o].join("|")}dispose(t){this.scene.remove(t),t.geometry.dispose(),t.material.dispose()}disposeAll(){for(const t of this.meshes.values())this.dispose(t);this.meshes.clear(),this.signatures.clear();for(const t of this.images.values())r.release(t);this.images.clear()}}export{v as REFERENCE_LAYER,r as ReferenceSystem};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
class s{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 a=t.url??"";if(a.startsWith("data:video/")||/\.(mp4|m4v|webm|ogv|mov)(?:[?#].*)?$/i.test(a))return"video";if(a.startsWith("data:image/")||/\.(jpe?g|png|gif|webp|avif)(?:[?#].*)?$/i.test(a))return"photo"}static mediaSecondsAt(t,a,n,i){const r=t.video?.fromS??0,o=t.video?.toS??i??Number.POSITIVE_INFINITY,g=a-(t.t??0);if(g<0)return;const h=r+g/(s.positive(n)*1e3)*s.rateOf(t);return h<=o?h:void 0}static rateOf(t){return s.positive(t.video?.rate??1)}static registrationAt(t,a){const n=t.registration,i=t.registrationTrack;if(!i||i.length===0)return n;let r=i.findIndex(p=>p.t>a);r===-1&&(r=i.length);const o=i[Math.max(r-1,0)],g=i[Math.min(r,i.length-1)],h=g.t>o.t?Math.min(Math.max((a-o.t)/(g.t-o.t),0),1):0,d=((g.headingDeg-o.headingDeg)%360+540)%360-180,c=o.rollDeg??0,D=g.rollDeg??0,v=c+(D-c)*h,u=o.fovDeg??n.fovDeg;return{headingDeg:((o.headingDeg+d*h)%360+360)%360,pitchDeg:o.pitchDeg+(g.pitchDeg-o.pitchDeg)*h,rollDeg:v===0?void 0:v,fovDeg:u+((g.fovDeg??n.fovDeg)-u)*h}}static keyIndexAt(t,a){return(t.registrationTrack??[]).findIndex(n=>Math.abs(n.t-a)<20)}static withKey(t,a,n){const i={t:a,...n},r=s.keyIndexAt(t,a),g=[...(t.registrationTrack??[]).filter((h,d)=>d!==r),r>=0?{...i,t:t.registrationTrack[r].t}:i].sort((h,d)=>h.t-d.t);return{...t,registrationTrack:g,registration:s.plainOf(g[0],t.registration)}}static withoutKey(t,a){const n=s.keyIndexAt(t,a);if(n<0)return t;const i=t.registrationTrack.filter((r,o)=>o!==n);return i.length===0?{...t,registrationTrack:void 0}:{...t,registrationTrack:i,registration:s.plainOf(i[0],t.registration)}}static plainOf(t,a){return{headingDeg:t.headingDeg,pitchDeg:t.pitchDeg,rollDeg:t.rollDeg,fovDeg:t.fovDeg??a.fovDeg}}static command(t,a,n,i){const r=Math.min(Math.max(i,s.MIN_RATE),s.MAX_RATE),o=a-t;if(!n)return{seekS:Math.abs(o)>s.SAME_FRAME_S?a:void 0,play:!1,rate:r};if(Math.abs(o)>s.SEEK_BEYOND_S)return{seekS:a,play:!0,rate:r};const g=Math.min(Math.max(o/s.SEEK_BEYOND_S,-1),1)*s.CATCH_UP_SHARE;return{play:!0,rate:Math.min(Math.max(r*(1+g),s.MIN_RATE),s.MAX_RATE)}}static positive(t){return t>0?t:1}}export{s as R};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{g as D}from"./SaidPosition-CWiVNaNW.js";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};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
class Nt{static read(t,e){let n=t;for(const o of e.split(".")){if(n=Nt.bare(n),n===null||typeof n!="object")return;n=n[o]}return Nt.bare(n)}static write(t,e,n){const o=e.split("."),a=[];let i=t;for(let m=0;m<o.length-1;m++){let c=Nt.bare(i[o[m]]);if(c===null||typeof c!="object"||Array.isArray(c)){if(n===void 0)return;c={}}i[o[m]]=c,a.push({owner:i,part:o[m]}),i=c}const u=o[o.length-1];n===void 0?delete i[u]:i[u]=n;for(let m=a.length-1;m>=0;m--){const c=a[m].owner[a[m].part];if(Object.keys(c).length>0)break;delete a[m].owner[a[m].part]}}static stated(t,e){return Nt.read(t,e)!==void 0}static bare(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)&&"value"in t&&"basis"in t?t.value:t}}class Kt{static sets=new Map;static publish(t){Kt.sets.set(t.kind,t)}static of(t){return Kt.sets.get(t)}static kinds(){return[...Kt.sets.keys()]}}class de{static resolved=new WeakMap;static resolve(t,e){let n=de.resolved.get(t);n||de.resolved.set(t,n=new WeakMap);let o=n.get(e);if(!o){const a=e,i=m=>{if(typeof m!="string")return m;if(typeof a[m]=="string")return a[m];const c=m.split(" ");return c.length>1&&c.every(w=>typeof a[w]=="string")?c.map(w=>a[w]).join(" "):m},u=m=>m.map(c=>({...c,label:i(c.label)}));o={...t,title:i(t.title),parameters:t.parameters.map(m=>{const c={...m,label:i(m.label),hint:i(m.hint),summary:i(m.summary),group:i(m.group),..."placeholder"in m?{placeholder:i(m.placeholder)}:{},..."empty"in m?{empty:i(m.empty)}:{}};if(c.type==="choice"){const w=c.optionsOf;return{...c,choices:u(c.choices),...w?{optionsOf:(l,b)=>u(w(l,b))}:{}}}if(c.type==="set"){const w=c.options;return{...c,options:(l,b)=>u(w(l,b))}}return c})},n.set(e,o)}return o}static missing(t,e){const n=e,o=new Set,a=i=>{if(typeof i=="string")for(const u of i.split(" "))/^[a-z][A-Za-z0-9]*$/.test(u)&&n[u]===void 0&&o.add(u)};a(t.title);for(const i of t.parameters)if(a(i.label),a(i.hint),a(i.summary),a(i.group),"placeholder"in i&&a(i.placeholder),"empty"in i&&a(i.empty),i.type==="choice")for(const u of i.choices)a(u.label);return[...o]}}class k extends Error{}class Pt{constructor(t){this.name=t}validate(t){return!0}}class Sn extends Pt{min;max;constructor(t,e,n){super(t),this.min=e,this.max=n}validate(t){if(typeof t!="number")throw new k(`${this.name} value must be a number, but was ${t}`);if(t<this.min||t>this.max)throw new k(`${this.name} value must be >= ${this.min} and <= ${this.max}, but was ${t}`);return super.validate(t)}}class G{name;min;max;duration;subUnit;validator;constructor(t,e,n,o,a=new Sn(t,e,n)){this.name=t,this.min=e,this.max=n,this.subUnit=o,this.duration=o?(o.max-o.min+1)*o.duration:1,this.validator=a}validate(t){return this.validator.validate(t)}[Symbol.iterator](){let t=this.min;return{next:()=>{const e={done:t>this.max,value:t};return t++,e}}}}class fe{millisecond;second;minute;hour;day;month;year}class Fn extends fe{}class yn extends Fn{millisecond=new G("millisecond",0,999,void 0);second=new G("second",0,59,this.millisecond);minute=new G("minute",0,59,this.second);hour=new G("hour",0,23,this.minute);day=new G("day",1,31,this.hour);month=new G("month",1,12,this.day);year=new G("year",0,9999,this.month)}const d=new yn;class Gn extends Sn{constructor(t=1,e=12){super("month",t,e)}}class pt extends G{static Month28=new pt(28);static Month29=new pt(29);static ThirtyDays=new pt(30);static ThirtyOneDays=new pt(31);constructor(t,e=new Gn(1,t)){super("month",1,t,d.day,e)}static create(t,e){switch(t){case 1:case 3:case 5:case 7:case 8:case 10:case 12:return this.ThirtyOneDays;case 2:return e%4===0?this.Month29:this.Month28;case 4:case 6:case 9:case 11:return this.ThirtyDays;default:throw new k("Unsupported month",t,e)}}}class z{static instance=new z;render(t){return t.value.toString()}}class ${unit;#t;constructor(t,e){this.unit=e,this.value=typeof t=="number"?t:t.value}get value(){return this.#t}set value(t){this.unit.validate(t),this.#t=t}get duration(){return this.value*this.unit.duration}#e(t){if(this.constructor.name!==t.constructor.name)throw new Pt(`${this.unit.name} "${this.toString()}" cannot be compared with ${t.unit?.name} "${t.toString()}"`)}compare(t){return this.#e(t),this.value-t.value}isEqual(t){return this.compare(t)===0}isBefore(t){return this.compare(t)<0}isAfter(t){return this.compare(t)>0}previous(t=this.unit){const e=this.value-1;return new this.constructor(e,t)}next(t=this.unit){const e=this.value+1;return new this.constructor(e,t)}toString(t=z.instance){return t.render(this)}toSpec(){return{value:this.value}}toJSON(){return this.toSpec()}}class p{static#t=new Map;static register(t,e){p.#t.set(t,e)}static get(t){const e=p.#t.get(t);if(!e)throw new k(`No default parser registered for ${t.name}: import "@rr0/time/defaults" or pass a parser to fromString()`);return e()}}class ft extends ${constructor(t=new Date().getFullYear(),e=d.year){super(t,e)}static fromString(t,e=p.get(ft)){return new ft(e.parse(t))}}class Y extends z{static default=new Y("0",2);constructor(t,e){super(),this.char=t,this.size=e}render(t){return super.render(t).padStart(this.size,this.char)}}class gt extends ${constructor(t=new Date().getMonth()+1,e=d.month){super(t,e)}static fromString(t,e=p.get(gt)){return new gt(e.parse(t))}toString(t=Y.default){return super.toString(t)}}class wt extends ${constructor(t=new Date().getDate(),e=d.day){super(t,e)}static fromString(t,e=p.get(wt)){const n=e.parse(t);return new wt(n)}toString(t=Y.default){return super.toString(t)}}class St extends ${constructor(t=new Date().getHours(),e=d.hour){super(t,e)}static fromString(t,e=p.get(St)){return new St(e.parse(t))}toString(t=Y.default){return super.toString(t)}}class yt extends ${constructor(t=new Date().getMinutes(),e=d.minute){super(t,e)}static fromString(t,e=p.get(yt)){return new yt(e.parse(t))}toString(t=Y.default){return super.toString(t)}}class Gt extends ${constructor(t=new Date().getSeconds(),e=d.second){super(t,e)}static fromString(t,e=p.get(Gt)){return new Gt(e.parse(t),d.second)}toString(t=Y.default){return super.toString(t)}}class ot extends ${static renderer=new Y("0",3);constructor(t,e=d.millisecond){super(t,e)}static parseFraction(t){return parseInt(t.padEnd(3,"0").substring(0,3),10)}toString(t=ot.renderer){return super.toString(t)}}class Vn{render(t){return t.toString()}}class $n extends Vn{render(t){const e=t.value,n=Math.abs(e),o=Math.floor(n/60),a=n%60;if(o===0&&a===0)return"Z";{const i=e<0?"-":"+",u=o.toString().padStart(2,"0"),m=a>0?":"+a.toString().padEnd(2,"0"):"";return i+u+m}}}class st{value;name="timeshift";renderer;constructor(t=0){this.value=t}static fromString(t,e=p.get(st),n=void 0){const o=e.parse(t,n);return new st(o)}toString(t=new $n){return t.render(this)}toSpec(){return{value:this.value}}toJSON(){return this.toSpec()}}class V{static timeshift(t,e){return t+(V.isDaylight(e)?60:0)}static isDaylight(t){const{year:e,month:n,day:o}=t,a=t.hour??12;if(![e,n,o].every(Number.isInteger))throw new RangeError("Daylight saving time depends on the year, month and day");const i=V.rule(e);if(!i)return!1;const u=V.rank(n,o,a);return u>=V.rank(i.start.month,i.start.day,2)&&u<V.rank(i.end.month,i.end.day,2)}static rule(t){if(t<1967)return;const e={month:10,day:V.sunday(t,10,-1)};return t>=2007?{start:{month:3,day:V.sunday(t,3,2)},end:{month:11,day:V.sunday(t,11,1)}}:t>=1987?{start:{month:4,day:V.sunday(t,4,1)},end:e}:t===1975?{start:{month:2,day:23},end:e}:t===1974?{start:{month:1,day:6},end:e}:{start:{month:4,day:V.sunday(t,4,-1)},end:e}}static sunday(t,e,n){const o=new Date(Date.UTC(2e3,e-1,1));o.setUTCFullYear(t);const a=1+(7-o.getUTCDay())%7;if(n>0)return a+7*(n-1);const i=[31,V.isLeap(t)?29:28,31,30,31,30,31,31,30,31,30,31][e-1];let u=a;for(;u+7<=i;)u+=7;return u}static isLeap(t){return t%4===0&&(t%100!==0||t%400===0)}static rank(t,e,n){return(t*100+e)*100+n}}const Rn={name:"PST",timeshift:"-08",title:"Pacific Standard Time (US)"},jn={name:"PDT",timeshift:"-07",title:"Pacific Daylight Time (US)"},kn={name:"MDT",timeshift:"-06",title:"Mountain Standard Time (US)"},In={name:"MST",timeshift:"-07",title:"Mountain Daylight Time (US)"},qn={name:"PT",timeshift:r=>V.timeshift(-480,r),title:"Pacific Time (US)"},Bn={name:"MT",timeshift:r=>V.timeshift(-420,r),title:"Mountain Time (US)"},zn={name:"CT",timeshift:r=>V.timeshift(-360,r),title:"Central Time (US)"},Un={name:"ET",timeshift:r=>V.timeshift(-300,r),title:"Eastern Time (US)"},Yn={name:"CWT",timeshift:"-05",title:"Central War Time (US)"},Hn={name:"CDT",timeshift:"-05",title:"Central Daylight Time"},Xn={name:"EST",timeshift:"-05",title:"Eastern Standard Time (US)"},Wn={name:"EDT",timeshift:"-04",title:"Eastern Time (US)"},Zn={name:"AST",timeshift:"-04",title:"Atlantic Standard Time (US)"},Jn={name:"ADT",timeshift:"-03",title:"Atlantic Daylight Time (US)"},vn={name:"UTC",timeshift:"Z",title:"Coordinated Universal Time"},Cn={name:"Z",timeshift:"Z",title:"UTC"},Kn={name:"GMT",timeshift:"Z",title:"Greenwich Mean Time"},Qn={name:"BST",timeshift:"+01",title:"British Summer Time"},On={name:"CEST",timeshift:"+02",title:"Central European Summer Time"},Dn={name:"CET",timeshift:"+01",title:"Central European Time"},Pn={name:"MSK",timeshift:"+03",title:"Moscow Time (RU)"},Ln={name:"IST",timeshift:"+05:30",title:"Indian Standard Time"},_n={name:"BJT",timeshift:"+08",title:"Beijing Time"},tr={name:"CST",timeshift:"-06",title:"Central Standard Time"},er={name:"JST",timeshift:"+09",title:"Japan Standard Time"},nr={name:"AEST",timeshift:"+10",title:"Australian Eastern Standard Time"},rr={name:"NZST",timeshift:"+12",title:"New Zealand Standard Time"},sr={name:"LST",timeshift:"?",title:"Local Sideral Time"},be=[Jn,nr,Zn,_n,Qn,tr,Hn,Dn,On,zn,Yn,Wn,Xn,Un,Kn,Ln,er,sr,kn,Pn,In,Bn,rr,jn,Rn,qn,vn,Cn];class Lt{static instance=new Lt;renderComponent(t,e){return t[e].toString()}renderSecond(t){return this.renderComponent(t,"second")+(t.millisecond?"."+t.millisecond.toString():"")}render(t){const e=[];t.year&&e.push(this.renderComponent(t,"year")),t.month&&e.push(this.renderComponent(t,"month")),t.day&&e.push(this.renderComponent(t,"day"));const n=[];t.hour&&n.push(this.renderComponent(t,"hour")),t.minute&&n.push(this.renderComponent(t,"minute")),t.second&&n.push(this.renderSecond(t));const o=e.join("-"),a=t.timeshift?t.timeshift.toString():"",i=n.join(":")+a;return o+(i.length>0?"T"+i:"")}}class at extends k{constructor(t="method is abstract"){super(t)}}class ge{units;constructor(t){this.units=t}newYear(t){throw new at}newMonth(t){throw new at}newDay(t){throw new at}newHour(t){throw new at}newMinute(t){throw new at}newSecond(t){throw new at}}class or extends fe{millisecond=new G("milliseconds",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,void 0);second=new G("seconds",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.millisecond);minute=new G("minutes",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.second);hour=new G("hours",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.minutes);day=new G("days",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.hour);month=new G("months",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.day);year=new G("years",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.month)}const vt=new or;class _t{static instance=new _t;render(t){const e=B.toSpec(t);let n="P";const o=e.years;o&&(n+=o.toString()+"Y");const a=e.months;a&&(n+=a.toString(z.instance)+"MM");const i=e.days;i&&(n+=i.toString(z.instance)+"D");const u=e.hours;u&&(n+=u.toString(z.instance)+"H");const m=e.minutes;m&&(n+=m.toString(z.instance)+"M");const c=e.seconds;return c&&(n+=c.toString(z.instance)+"S"),n}}class B extends ${constructor(t={years:new Date().getFullYear(),months:new Date().getMonth(),days:new Date().getDate(),hours:new Date().getHours(),minutes:new Date().getMinutes(),seconds:new Date().getSeconds(),milliseconds:new Date().getMilliseconds()}){super({value:typeof t=="number"?t:+(t.years?t.years*d.year.duration:0)+(t.months?t.months*d.month.duration:0)+(t.days?t.days*d.day.duration:0)+(t.hours?t.hours*d.hour.duration:0)+(t.minutes?t.minutes*d.minute.duration:0)+(t.seconds?t.seconds*d.second.duration:0)},new G("millisecond",0,Number.MAX_SAFE_INTEGER,void 0))}static toSpec(t,e=ir){let n=typeof t=="number"?t:t.value;const o=n>0?1:-1;n=Math.abs(n);const a={},i=n/d.year.duration,u=Math.floor(i);u>0&&(a.years=e.newYear(o*u),n-=u*d.year.duration);const m=n/d.month.duration,c=Math.floor(m);c>0&&(a.months=e.newMonth(o*c),n-=c*d.month.duration);const w=n/d.day.duration,l=Math.floor(w);l>0&&(a.days=e.newDay(o*l),n-=l*d.day.duration);const b=n/d.hour.duration,S=Math.floor(b);S>0&&(a.hours=e.newHour(o*S),n-=S*d.hour.duration);const q=n/d.minute.duration,N=Math.floor(q);N>0&&(a.minutes=e.newMinute(o*N),n-=N*d.minute.duration);const H=n/d.second.duration,O=Math.floor(o*H);return O>0&&(a.seconds=e.newSecond(O)),a}static fromString(t,e=p.get(B)){return new B(e.parse(t))}static between(t,e){const n=e.getTime(),o=t.getTime();return new B(n-o)}toSpec(){return B.toSpec(this)}toString(t=_t.instance){return t.render(this)}}class xn extends ge{constructor(t){super(t)}newYear(t){return new ft(t,this.units.year)}newMonth(t){return new gt(t,this.units.month)}newDay(t){return new wt(t,this.units.day)}newHour(t){return new St(t,this.units.hour)}newMinute(t){return new yt(t,this.units.minute)}newSecond(t){return new Gt(t,this.units.second)}newMillisecond(t){return new ot(t,this.units.millisecond)}newTimeshift(t){return new st(typeof t=="number"?t:t.value)}}const ar=new xn(d),ir=new xn(vt);class F{#t;#e;#n;#r;#s;#o;#a;#i;constructor(t={year:new Date().getFullYear(),month:new Date().getMonth()+1,day:new Date().getDate(),hour:new Date().getHours(),minute:new Date().getMinutes(),second:new Date().getSeconds(),timeshift:F.timeshiftOf(new Date)}){this.year=t.year,this.month=t.month,this.day=t.day,this.hour=t.hour,this.minute=t.minute,this.second=t.second,this.millisecond=t.millisecond,this.timeshift=t.timeshift}get year(){return this.#t}set year(t){const e=typeof t=="number";this.#t&&e?this.#t.value=t:this.#t=e?this.factory.newYear(t):!t||t.start||t instanceof $?t:this.factory.newYear(t)}get month(){return this.#e}set month(t){const e=typeof t=="number";this.#e&&e?this.#e.value=t:this.#e=e?this.factory.newMonth(t):!t||t.start||t instanceof $?t:this.factory.newMonth(t)}get day(){return this.#n}set day(t){const e=typeof t=="number";this.#n&&e?this.#n.value=t:this.#n=e?this.factory.newDay(t):!t||t.start||t instanceof $?t:this.factory.newDay(t)}get hour(){return this.#r}set hour(t){const e=typeof t=="number";this.#r&&e?this.#r.value=t:this.#r=e?this.factory.newHour(t):!t||t.start||t instanceof $?t:this.factory.newHour(t)}get minute(){return this.#s}set minute(t){const e=typeof t=="number";this.#s&&e?this.#s.value=t:this.#s=e?this.factory.newMinute(t):!t||t.start||t instanceof $?t:this.factory.newMinute(t)}get second(){return this.#o}set second(t){const e=typeof t=="number";this.#o&&e?this.#o.value=t:this.#o=e?this.factory.newSecond(t):!t||t.start||t instanceof $?t:this.factory.newSecond(t)}get millisecond(){return this.#a}set millisecond(t){const e=typeof t=="number";this.#a&&e?this.#a.value=t:this.#a=e||t&&!(t instanceof $)?this.factory.newMillisecond(t):t}get timeshift(){return this.#i}set timeshift(t){const e=typeof t=="number";this.#i&&e?this.#i.value=t:this.#i=e||t&&!(t instanceof st)?this.factory.newTimeshift(t):t}get factory(){return ar}static fromString(t,e=p.get(F)){const{year:n,month:o,day:a,hour:i,minute:u,second:m,millisecond:c,timeshift:w}=e.parse(t);return new F({year:n,month:o,day:a,hour:i,minute:u,second:m,millisecond:c,timeshift:w})}static timeshiftOf(t){return-t.getTimezoneOffset()||0}static fromDate(t){return new F({year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate(),hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),timeshift:F.timeshiftOf(t)})}static newInstance(){const t=new Date().toISOString(),e=t.indexOf("."),n=t.substring(0,e)+t.substring(e+4);return F.fromString(n)}#u(t){if(this.constructor.name!==t.constructor.name)throw new Pt(`Date "${this.toString()}" cannot be compared with "${t.toString()}"`)}compare(t){return this.#u(t),this.getTime()-t.getTime()}delta(t){const e=this.compare(t);return new B(e)}getTime(){return(this.year?.duration||0)+(this.month?.duration||0)+(this.day?.duration||0)+(this.hour?.duration||0)+(this.minute?.duration||0)+(this.second?.duration||0)+(this.millisecond?.duration||0)}isEqual(t){return this.compare(t)===0}isBefore(t){return this.compare(t)<0}isAfter(t){return this.compare(t)>0}clone(){return new F(this.toSpec())}previous(){let t=this.clone();try{t.second=this.second.previous()}catch{try{t.minute=this.minute.previous()}catch{try{t.hour=this.hour.previous()}catch{try{t.day=this.day.previous()}catch{try{t.month=this.month.previous()}catch{t.year=this.year.previous()}}}}}return t}next(){let t=this.clone();try{t.second=this.second.next()}catch{try{t.minute=this.minute.next()}catch{try{t.hour=this.hour.next()}catch{try{t.day=this.day.next()}catch{try{t.month=this.month.next()}catch{t.year=this.year.next()}}}}}return t}toString(t=Lt.instance){return t.render(this)}toSpec(){const t={},e=this.year?.toSpec();e&&(t.year=e);const n=this.month?.toSpec();n&&(t.month=n);const o=this.day?.toSpec();o&&(t.day=o);const a=this.hour?.toSpec();a&&(t.hour=a);const i=this.minute?.toSpec();i&&(t.minute=i);const u=this.second?.toSpec();u&&(t.second=u);const m=this.millisecond?.toSpec();m&&(t.millisecond=m);const c=this.timeshift?.toSpec();return c&&(t.timeshift=c),t}toJSON(){return this.toSpec()}}class we{static instance=new we;render(t){return(t.start?t.start.toString():"")+"/"+(t.end?t.end.toString():"")}}class Tt{constructor(t,e){this.start=t,this.end=e}_start;get start(){return this._start}set start(t){if(typeof t=="string"&&(t=F.fromString(t)),t&&!(t instanceof F)&&!(t instanceof B))throw new k("Interval start is not a level 0 date or duration: "+t);this._start=t}_end;get end(){return this._end}set end(t){if(typeof t=="string"&&(t=F.fromString(t)),t&&!(t instanceof F)&&!(t instanceof B))throw new k("Interval end is not a level 0 date or duration: "+t);this._end=t}static fromString(t,e=p.get(Tt)){const{start:n,end:o}=e.parse(t);return new Tt(n,o)}toString(t=we.instance){return t.render(this)}[Symbol.iterator](){let t=this.start;return{next:()=>{const e={done:t>this.end,value:t};return t++,e}}}}class Ct extends z{static instance=new Ct(Y.default);constructor(t){super(),this.valueRenderer=t}render(t){return(this.valueRenderer?this.valueRenderer.render(t):super.render(t))+this.qualifier(t)}qualifier(t){return t.uncertain?t.approximate?"%":"?":t.approximate?"~":""}}class U extends ${#t;#e;constructor(t,e){super(t,e),this.#t=t.uncertain||!1,this.#e=t.approximate||!1}get uncertain(){return this.#t}set uncertain(t){return this.#t=t}get approximate(){return this.#e}set approximate(t){return this.#e=t}isCertainAndPrecise(){return!this.approximate&&!this.uncertain}isEqual(t){return this.isCertainAndPrecise()&&super.isEqual(t)}isBefore(t){return this.isCertainAndPrecise()&&super.isBefore(t)}isAfter(t){return this.isCertainAndPrecise()&&super.isAfter(t)}toString(t=Ct.instance){return super.toString(t)}toSpec(){return{...super.toSpec(),uncertain:this.uncertain,approximate:this.approximate}}toJSON(){return this.toSpec()}}class Mn extends yn{year=new G("year",-9999,9999,this.month);yearExtended=new G("year",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.month)}const Qt=new Mn;class L extends U{constructor(t,e=Qt.year){super(t,e)}static fromString(t,e=Qt.year,n=p.get(L)){const o=n.parse(t),a=o.value.start;if(t.startsWith("Y")&&(e=Qt.yearExtended),a!==void 0){const i=new L(Object.assign({...o},{value:Math.max(a,e.min)})),u=new L(Object.assign({...o},{value:Math.min(o.value.end,e.max)}));return{start:i,end:u}}else return new L(o,e)}}class bn extends Pt{monthValidator=new Gn;validate(t){switch(t){case 21:case 22:case 23:case 24:return!0;default:return this.monthValidator.validate(t)}}}class _ extends U{constructor(t,e=new G(d.month.name,1,24,d.day,new bn)){super(t,e)}static fromString(t,e=p.get(_)){const n=e.parse(t),o=n.value.start;if(o!==void 0){let a=d.month;const i=new _(Object.assign({...n},{value:Math.max(o,a.min)})),u=new _(Object.assign({...n},{value:Math.min(n.value.end,a.max)}));return{start:i,end:u}}else return new _(n)}toString(t){return super.toString(t).padStart(2,"0")}}class tt extends U{constructor(t,e=d.day){super(t,e)}static fromString(t,e=p.get(tt)){const n=e.parse(t),o=n.value.start;if(o!==void 0){let a=d.day;const i=new tt(Object.assign({...n},{value:Math.max(o,a.min)})),u=new tt(Object.assign({...n},{value:Math.min(n.value.end,a.max)}));return{start:i,end:u}}else return new tt(n)}toString(t){return super.toString(t).padStart(2,"0")}}class et extends U{constructor(t,e=d.hour){super(t,e)}static fromString(t,e=p.get(et)){const n=e.parse(t),o=n.value.start;if(o!==void 0){let a=d.hour;const i=new et(Object.assign({...n},{value:Math.max(o,a.min)})),u=new et(Object.assign({...n},{value:Math.min(n.value.end,a.max)}));return{start:i,end:u}}else return new et(n)}}class nt extends U{constructor(t,e=d.minute){super(t,e)}static fromString(t,e=p.get(nt)){const n=e.parse(t),o=n.value.start;if(o!==void 0){const a=d.minute,i=new nt(Object.assign({...n},{value:Math.max(o,a.min)})),u=new nt(Object.assign({...n},{value:Math.min(n.value.end,a.max)}));return{start:i,end:u}}else return new nt(n)}toString(t=Ct.instance){return super.toString(t)}}class rt extends U{constructor(t,e=d.second){super(t,e)}static fromString(t,e=p.get(rt)){const n=e.parse(t),o=n.value.start;if(o!==void 0){const a=d.second,i=new rt(Object.assign({...n},{value:Math.max(o,a.min)})),u=new rt(Object.assign({...n},{value:Math.min(n.value.end,a.max)}));return{start:i,end:u}}else return new rt(n)}}class ct extends st{static fromString(t,e=p.get(ct),n=void 0){return new ct(e.parse(t,n))}}class Nn extends ge{constructor(t){super(t)}newYear(t){return new L(t,this.units.year)}newMonth(t){return new _(t,this.units.month)}newDay(t){return new tt(t,this.units.day)}newHour(t){return new et(t,this.units.hour)}newMinute(t){return new nt(t,this.units.minute)}newSecond(t){return new rt(t,this.units.second)}newMillisecond(t){return new ot(t,this.units.millisecond)}newTimeshift(t){return new ct(typeof t=="number"?t:t.value)}}const ur=new Nn(Qt),cr=new Nn(vt);class R extends F{constructor(t){super(t)}get factory(){return ur}get uncertain(){return this.year?.uncertain===!0||this.month?.uncertain===!0||this.day?.uncertain===!0||this.hour?.uncertain===!0||this.minute?.uncertain===!0||this.second?.uncertain===!0}get approximate(){return this.year?.approximate===!0||this.month?.approximate===!0||this.day?.approximate===!0||this.hour?.approximate===!0||this.minute?.approximate===!0||this.second?.approximate===!0}static fromDate(t){return new R({year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate(),hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),timeshift:F.timeshiftOf(t)})}static fromString(t,e=p.get(R)){const n=e.parse(t);return new R(n)}static newInstance(){const t=new Date().toISOString(),e=t.indexOf("."),n=t.substring(0,e)+t.substring(e+4);return R.fromString(n)}clone(){return new R(this.toSpec())}}const A=Object.freeze({year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",timeshift:"timeshift",uncertain:"uncertain",approximate:"approx"});class te extends _t{static instance=new te;render(t){return super.render(t)}}class E extends U{constructor(t){super(typeof t=="number"||t.hasOwnProperty("value")?t:{value:E.getValue(t,A.year)+E.getValue(t,A.month)+E.getValue(t,A.day)+E.getValue(t,A.hour)+E.getValue(t,A.minute)+E.getValue(t,A.second),uncertain:E.getBoolean(t,A.uncertain),approximate:E.getBoolean(t,"approximate")},vt.millisecond)}static getBoolean(t,e){return t[e]||t[A.year+"s"]?.[e]||t[A.month+"s"]?.[e]||t[A.day+"s"]?.[e]||t[A.hour+"s"]?.[e]||t[A.minute+"s"]?.[e]||t[A.second+"s"]?.[e]||!1}static getValue(t,e){let n=0,o=t[e+"s"];if(o instanceof U?o=o.value:typeof t=="number"&&(o=t),o){const a=d[e];n=o*a.duration}return n}static toSpec(t,e=cr){return{...B.toSpec(t,e),uncertain:t.uncertain||!1,approximate:t.approximate||!1}}static fromString(t,e=p.get(E)){const n=e.parse(t);return new E(n)}static between(t,e){const n=e.getTime(),o=t.getTime();return new E(n-o)}toString(t=te.instance){return super.toString(t)}toSpec(){return E.toSpec(this)}}class Et extends Tt{constructor(t,e){super(t,e)}get start(){return this._start}set start(t){if(typeof t=="string"&&(super.start=R.fromString(t)),t&&!(t instanceof R)&&!(t instanceof E))throw new k("Interval start is not a level 1 date or duration: "+t);this._start=t}get end(){return this._end}set end(t){if(typeof t=="string"&&(t=R.fromString(t)),t&&!(t instanceof R)&&!(t instanceof E))throw new k("Interval end is not a level 1 date or duration: "+t);this._end=t}static fromString(t,e=p.get(Et)){const{start:n,end:o}=e.parse(t);return new Et(n,o)}}class Mt extends U{uncertainComponent;approximateComponent;constructor(t,e){super(t,e),this.uncertainComponent=t.uncertainComponent||!1,this.approximateComponent=t.approximateComponent||!1}get uncertain(){return super.uncertain||this.uncertainComponent}set uncertain(t){return super.uncertain=t}get approximate(){return super.approximate||this.approximateComponent}set approximate(t){return super.approximate=t}get uncertainGroup(){return super.uncertain}get approximateGroup(){return super.approximate}toSpec(){return{...super.toSpec(),uncertain:this.uncertainGroup,approximate:this.approximateGroup,uncertainComponent:this.uncertainComponent,approximateComponent:this.approximateComponent}}toJSON(){return this.toSpec()}}class mr extends Mn{year=new G("year",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.month)}const le=new mr;class X extends Mt{constructor(t,e=le.year){super(t,e)}static fromString(t,e=le.year,n=p.get(X)){const o=n.parse(t),a=o.value.start;if(a!==void 0){const i=new X(Object.assign({...o},{value:Math.max(a,e.min)})),u=new X(Object.assign({...o},{value:Math.min(o.value.end,e.max)})),m={start:i,end:u},c=o.value.estimate;return c&&(m.estimate=c),m}else return new X(o)}}class pr extends bn{validate(t){switch(t){case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:return!0;default:return super.validate(t)}}}class W extends Mt{constructor(t,e=new G(d.month.name,1,41,d.day,new pr)){super(t,e)}static fromString(t,e=p.get(W)){const n=e.parse(t),o=n.value.start;if(o!==void 0){const a=d.month,i=new W(Object.assign({...n},{value:Math.max(o,a.min)})),u=new W(Object.assign({...n},{value:Math.min(n.value.end,a.max)}));return{start:i,end:u}}else return new W(n)}toString(t){return super.toString(t).padStart(2,"0")}}class Z extends Mt{constructor(t,e=d.day){super(t,e)}static fromString(t,e=p.get(Z)){const n=e.parse(t),o=n.value.start;if(o!==void 0){const a=d.day,i=new Z(Object.assign({...n},{value:Math.max(o,a.min)})),u=new Z(Object.assign({...n},{value:Math.min(n.value.end,a.max)}));return{start:i,end:u}}else return new Z(n)}toString(t){return super.toString(t).padStart(2,"0")}}class J extends Mt{constructor(t,e=d.hour){super(t,e)}static fromString(t,e=p.get(J)){const n=e.parse(t),o=n.value.start;if(o!==void 0){const a=d.hour,i=new J(Object.assign({...n},{value:Math.max(o,a.min)})),u=new J(Object.assign({...n},{value:Math.min(n.value.end,a.max)}));return{start:i,end:u}}else return new J(n)}}class v extends Mt{constructor(t,e=d.minute){super(t,e)}static fromString(t,e=p.get(v)){const n=e.parse(t),o=n.value.start;if(o!==void 0){const a=d.minute,i=new v(Object.assign({...n},{value:Math.max(o,a.min)})),u=new v(Object.assign({...n},{value:Math.min(n.value.end,a.max)}));return{start:i,end:u}}else return new v(n)}}class C extends Mt{constructor(t,e=d.second){super(t,e)}static fromString(t,e=d.second,n=p.get(C)){const o=n.parse(t),a=o.value.start;if(a!==void 0){const i=new C(Object.assign({...o},{value:Math.max(a,e.min)})),u=new C(Object.assign({...o},{value:Math.min(o.value.end,e.max)}));return{start:i,end:u}}else return new C(o,e)}}class Tn extends ct{}class hr extends Ct{qualifier(){return""}}class D extends Lt{static instance=new D;static valueRenderer=new hr(Y.default);static names=["year","month","day","hour","minute","second"];static qualifier(t,e){return t?e?"%":"?":e?"~":""}renderComponent(t,e){const n=t[e],o=D.names.slice(D.names.indexOf(e)+1).map(u=>t[u]).filter(Boolean),a=D.qualifier(n.uncertainComponent,n.approximateComponent),i=D.qualifier(n.uncertainGroup&&!n.uncertainComponent&&!o.some(u=>u.uncertain),n.approximateGroup&&!n.approximateComponent&&!o.some(u=>u.approximate));return a+n.toString(D.valueRenderer)+i}}class En extends ge{constructor(t){super(t)}newYear(t){return new X(t,this.units.year)}newMonth(t){return new W(t,this.units.month)}newDay(t){return new Z(t,this.units.day)}newHour(t){return new J(t,this.units.hour)}newMinute(t){return new v(t,this.units.minute)}newSecond(t){return new C(t,this.units.second)}newMillisecond(t){return new ot(t,this.units.millisecond)}newTimeshift(t){return new Tn(typeof t=="number"?t:t.value)}}const dr=new En(le),lr=new En(vt);class j extends R{constructor(t){super(t)}toString(t=D.instance){return super.toString(t)}get year(){return super.year}set year(t){super.year=t}get month(){return super.month}set month(t){super.month=t}get factory(){return dr}static fromDate(t){return new j({year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate(),hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),timeshift:F.timeshiftOf(t)})}static fromString(t,e=p.get(j)){const n=e.parse(t);return new j(n)}static newInstance(){const t=new Date().toISOString(),e=t.indexOf("."),n=t.substring(0,e)+t.substring(e+4);return j.fromString(n)}clone(){return new j(this.toSpec())}}class K{regExp;constructor(t,e){this.name=t,this.regExp=new RegExp(`^(?:${e})$`)}regexGroups(t){const e=this.regExp.exec(t);if(!e)throw new k(`Invalid ${this.name} "${t}"`);return e.groups}parseGroups(t){throw new at(`${this.constructor.name} is abstract`)}parse(t){const e=this.regexGroups(t);return this.parseGroups(e)}}class ht extends te{static instance=new ht;static designators=[["years","Y"],["months","MM"],["days","D"],["hours","H"],["minutes","M"],["seconds","S"]];static qualifier(t,e){return t?e?"%":"?":e?"~":""}render(t){const e=ht.qualifier(t.uncertainDuration,t.approximateDuration);if(!t.hasQualifiedComponent)return e+super.render(t);let n=e+"P";for(const[o,a]of ht.designators){const i=t.components[o];i&&(n+=ht.qualifier(i.uncertainComponent,i.approximateComponent)+i.value+a)}return n}}class T extends E{#t;constructor(t){if(super(typeof t=="number"?t:{value:T.valueFromSpec(t),uncertain:t.uncertain===!0,approximate:t.approximate===!0},vt.millisecond),typeof t!="number"){const e={};for(const n of T.componentNames)t[n]instanceof U&&(e[n]=t[n]);Object.keys(e).length>0&&(this.#t=e)}}static componentNames=["years","months","days","hours","minutes","seconds"];get components(){return this.#t}#e(t){return this.#t?Object.values(this.#t).some(e=>e[t]):!1}get uncertainDuration(){return super.uncertain}get approximateDuration(){return super.approximate}get uncertain(){return super.uncertain||this.#e("uncertain")}set uncertain(t){super.uncertain=t}get approximate(){return super.approximate||this.#e("approximate")}set approximate(t){super.approximate=t}get hasQualifiedComponent(){return this.#t?Object.values(this.#t).some(t=>t.uncertainComponent||t.approximateComponent):!1}static valueFromSpec(t){return T.getValue(t,A.year)+T.getValue(t,A.month)+T.getValue(t,A.day)+T.getValue(t,A.hour)+T.getValue(t,A.minute)+T.getValue(t,A.second)}static toSpec(t,e=lr){const n=E.toSpec(t,e);if(t instanceof T&&t.hasQualifiedComponent)for(const o of T.componentNames)delete n[o],t.components[o]&&(n[o]=t.components[o]);return n}static fromString(t,e=p.get(T)){const n=e.parse(t);return new T(n)}static between(t,e){const n=e.getTime(),o=t.getTime();return new T(n-o)}toSpec(){return T.toSpec(this)}toString(t=ht.instance){return super.toString(t)}}class At extends Et{get start(){return this._start}set start(t){if(typeof t=="string"&&(super.start=j.fromString(t)),t&&!(t instanceof j)&&!(t instanceof T))throw new k("Interval start is not a level 2 date or duration: "+t);this._start=t}get end(){return this._end}set end(t){if(typeof t=="string"&&(t=j.fromString(t)),t&&!(t instanceof j)&&!(t instanceof T))throw new k("Interval end is not a level 2 date or duration: "+t);this._end=t}static fromString(t,e=p.get(At)){const{start:n,end:o}=e.parse(t);return new At(n,o)}}class Ot extends Set{constructor(t,e){super(t),this.exclusive=e}has(t){const e=t.toString().replace("..","/");for(const n of this)if(n.toString()===e)return!0;return!1}static fromString(t,e=p.get(Ot)){const{exclusive:n,values:o}=e.parse(t);return new Ot(o,n)}}class Q extends K{constructor(t,e){super(t,e)}static read(t){return{value:t?parseInt(t,10):void 0}}parseGroups(t){return Q.read(t[this.name])}parse(t){if(t.startsWith("-"))throw new k(`${this.name} cannot be negative`);return super.parse(t)}}class s{static groupName(...t){return t.reduce((e,n)=>e?e+n.charAt(0).toUpperCase()+n.substring(1):n,"")}static group(t,...e){return`(?<${t}>${e.join("")})`}static optional(t){return t+"?"}static nonCapturingGroup(...t){return`(?:${t.join("")})`}static optionalGroup(t,...e){return s.optional(s.group(t,...e))}static optionalNonCapturingGroup(...t){return s.optional(s.nonCapturingGroup(...t))}static numberGroup(t,e,n,o="\\d"){return s.group(t,`${n||""}[${o}]${e}`)}}const Ne="yearValue";class Ft extends Q{static format(t=""){return s.numberGroup(s.groupName(t,Ne),"{4}",void 0)}constructor(){super(Ne,Ft.format())}}const Te="monthValue";class Vt extends Q{static format(t=""){return s.numberGroup(s.groupName(t,Te),"{1,2}",void 0)}constructor(){super(Te,Vt.format())}}const Ee="dayValue";class dt extends Q{static format(t=""){return s.numberGroup(s.groupName(t,Ee),"{1,2}",void 0)}constructor(){super(Ee,dt.format())}}const Ae="hourValue";class lt extends Q{static format(t=""){return s.numberGroup(s.groupName(t,Ae),"{1,2}",void 0)}constructor(){super(Ae,lt.format())}}const Fe="minuteValue";class $t extends Q{static format(t=""){return s.numberGroup(s.groupName(t,Fe),"{1,2}",void 0)}constructor(){super(Fe,$t.format())}}const Ve="secondValue";class Rt extends Q{static format(t=""){return s.numberGroup(s.groupName(t,Ve),"{1,2}",void 0)}constructor(){super(Ve,Rt.format())}}const $e="timeshiftValue",Re="shiftHour",je="shiftMinute";class xt extends K{static format(t=""){return be.map(e=>e.name).join("|")+"|"+s.nonCapturingGroup(s.group(t+Re,s.numberGroup(s.groupName(t,$e),"{2}","[+-]")),s.optionalNonCapturingGroup(":?",s.numberGroup(s.groupName(t,je),"{2}",void 0)))}constructor(){super($e,xt.format())}parse(t,e){let n=0;const o=be.find(a=>a.name===t);if(o){if(typeof o.timeshift=="function")try{return o.timeshift(e??{})}catch(a){throw new k(`The time zone ${t} depends on the date: ${a.message}`)}t=o.timeshift}if(t!=="Z"){const a=this.regexGroups(t),i=a[Re];i&&(n+=parseInt(i,10)*60);const u=a[je];u&&(n+=parseInt(u,10))}return n}}const ke="year",Ie="month",qe="day",Be="hour",ze="minute",Ue="second",Ye="millisecond",He="timeshift";class it extends K{static format(t=""){return s.group(s.groupName(t,ke),Ft.format(t))+s.optionalNonCapturingGroup("-",s.group(s.groupName(t,Ie),Vt.format(t)),s.optionalNonCapturingGroup("-",s.group(s.groupName(t,qe),dt.format(t)),s.optionalNonCapturingGroup("[T ]",s.group(s.groupName(t,Be),lt.format(t)),":?",s.group(s.groupName(t,ze),$t.format(t)),s.optionalNonCapturingGroup(":",s.group(s.groupName(t,Ue),Rt.format(t)),s.optionalNonCapturingGroup("[.,]",s.group(s.groupName(t,Ye),"\\d+"))),"\\s*",s.optionalGroup(s.groupName(t,He),xt.format(t)))))}constructor(){super("date",it.format())}parse(t){const e=this.regexGroups(t),n=e[ke],o=e[Ie],a=e[qe],i=e[Be],u=e[ze],m=e[Ue],c=e[Ye],w=e[He],l=n?new ft(Ft.read(n)):void 0,b=o?Vt.read(o):void 0;return{year:l,month:b?new gt(b,pt.create(b.value,l?.value)):void 0,day:a?new wt(dt.read(a)):void 0,hour:i?new St(lt.read(i)):void 0,minute:u?new yt($t.read(u)):void 0,second:m?new Gt(Rt.read(m)):void 0,millisecond:c?ot.parseFraction(c):void 0,timeshift:w?st.fromString(w,new xt,{year:l?.value,month:b?.value,day:a?dt.read(a).value:void 0,hour:i?lt.read(i).value:void 0}):void 0}}}const Xe="years",ne="months",fr="days",We="hours",Ze="minutes",Je="seconds";class Se extends K{static format(t=""){return"P"+s.optionalNonCapturingGroup(s.numberGroup(s.groupName(t,Xe),"+",void 0,"\\d"),"Y")+s.optionalNonCapturingGroup(s.numberGroup(s.groupName(t,ne),"+",void 0,"\\d"),"MM")+s.optionalNonCapturingGroup(s.numberGroup(s.groupName(t,fr),"+",void 0,"\\d"),"D")+s.optionalNonCapturingGroup(s.numberGroup(s.groupName(t,We),"+",void 0,"\\d"),"H")+s.optionalNonCapturingGroup(s.numberGroup(s.groupName(t,Ze),"+",void 0,"\\d"),"M")+s.optionalNonCapturingGroup(s.numberGroup(s.groupName(t,Je),"+",void 0,"\\d"),"S")}constructor(){super("duration",Se.format())}parseGroups(t){return{years:t[Xe],months:t[ne],days:t[ne],hours:t[We],minutes:t[Ze],seconds:t[Je]}}}const re="start",se="end";class ye extends K{static format=s.group(re,it.format(re))+"/"+s.group(se,it.format(se));constructor(){super("interval",ye.format)}parse(t){const e=this.regexGroups(t),n=e[re],o=e[se];return{start:n?F.fromString(n,new it):void 0,end:o?F.fromString(o,new it):void 0}}}class x extends Q{static uncertainGroup="uncertain";static approximateGroup="approx";static uncertainAndApproximateGroup=x.uncertainGroup+x.approximateGroup;constructor(t,e){super(t,e)}static qualifierFormat(t,e){return s.optionalGroup(t,`\\${e}`)}static formatSuffix(t){return this.qualifierFormat(s.groupName(x.uncertainGroup,t),"?")+this.qualifierFormat(s.groupName(x.approximateGroup,t),"~")+this.qualifierFormat(s.groupName(x.uncertainAndApproximateGroup,t),"%")}static numberFormat(t,e,n){return s.numberGroup(t,e,n,"\\dX")+this.formatSuffix(t)}getValueAndSign(t){let e=t[this.name],n;return e.charAt(0)==="-"?(n=-1,e=e.substring(1)):n=1,{valueStr:e,sign:n}}parseGroups(t){const{valueStr:e,sign:n}=this.getValueAndSign(t);let o=0,a;for(a=0;a<e.length;a++){const c=e[a];if(c==="X")break;o=o*10+parseInt(c,10)}if(a<e.length){let c=1;for(let b=0;b<e.length-a;b++)c*=10;const w=n*o*c,l=w+c-1;o={start:w,end:l}}else o*=n;const i=t[s.groupName(x.uncertainAndApproximateGroup,this.name)],u=t[s.groupName(x.approximateGroup,this.name)]||i,m=t[s.groupName(x.uncertainGroup,this.name)]||i;return{value:o,approximate:u?!!u:!1,uncertain:m?!!m:!1}}}const ve="yearValue";class jt extends x{constructor(){super(ve,jt.format())}static format(t=""){return"Y?"+x.numberFormat(s.groupName(t,ve),"+","[-]?")}parse(t){const e=this.regexGroups(t);return this.parseGroups(e)}}const Ce="monthValue";class kt extends x{static format(t=""){return x.numberFormat(s.groupName(t,Ce),"{1,2}",void 0)}constructor(){super(Ce,kt.format())}}const Ke="dayValue";class It extends x{static format(t=""){return x.numberFormat(s.groupName(t,Ke),"{1,2}",void 0)}constructor(){super(Ke,It.format())}}const Qe="hourValue";class qt extends x{static format(t=""){return x.numberFormat(s.groupName(t,Qe),"{1,2}",void 0)}constructor(){super(Qe,qt.format())}}const Oe="minuteValue";class Bt extends x{static format(t=""){return x.numberFormat(s.groupName(t,Oe),"{1,2}",void 0)}constructor(){super(Oe,Bt.format())}}const De="secondValue";class zt extends x{static format(t=""){return x.numberFormat(s.groupName(t,De),"{1,2}",void 0)}constructor(){super(De,zt.format())}}class Ut extends xt{}class M extends K{static yearGroup="year";static monthGroup="month";static dayGroup="day";static hourGroup="hour";static minuteGroup="minute";static secondGroup="second";static millisecondGroup="millisecond";static timeshiftGroup="timeshift";constructor(t=M.format()){super("date",t)}static format(t=""){return s.group(s.groupName(t,M.yearGroup),jt.format(t))+s.optionalNonCapturingGroup("-",s.group(s.groupName(t,M.monthGroup),kt.format(t)),s.optionalNonCapturingGroup("-",s.group(s.groupName(t,M.dayGroup),It.format(t)),s.optionalNonCapturingGroup("[T ]",s.group(s.groupName(t,M.hourGroup),qt.format(t)),":",s.group(s.groupName(t,M.minuteGroup),Bt.format(t)),s.optionalNonCapturingGroup(":",s.group(s.groupName(t,M.secondGroup),zt.format(t)),s.optionalNonCapturingGroup("[.,]",s.group(s.groupName(t,M.millisecondGroup),"\\d+"))),s.optionalGroup(s.groupName(t,M.timeshiftGroup),Ut.format(t)))))}parseGroups(t){const e=t[M.millisecondGroup],n=e?ot.parseFraction(e):void 0,o=t[M.secondGroup],a=o?rt.fromString(o,new zt):void 0,i=t[M.minuteGroup];let u;i&&(u=nt.fromString(i,new Bt),u.uncertain=u.uncertain||a?.uncertain||!1,u.approximate=u.approximate||a?.approximate||!1);const m=t[M.hourGroup];let c;m&&(c=et.fromString(m,new qt),c.uncertain=c.uncertain||u?.uncertain||!1,c.approximate=c.approximate||u?.approximate||!1);const w=t[M.dayGroup];let l;w&&(l=tt.fromString(w,new It),l.uncertain=l.uncertain||c?.uncertain||!1,l.approximate=l.approximate||c?.approximate||!1);const b=t[M.monthGroup];let S;b&&(S=_.fromString(b,new kt),S.uncertain=S.uncertain||l?.uncertain||!1,S.approximate=S.approximate||l?.approximate||!1);const q=t[M.yearGroup];let N;q&&(N=L.fromString(q,void 0,new jt),N.uncertain=N.uncertain||S?.uncertain||!1,N.approximate=N.approximate||S?.approximate||!1);const H=t[M.timeshiftGroup],O=H?ct.fromString(H,new Ut,{year:N?.value,month:S?.value,day:l?.value,hour:c?.value}):void 0;return{year:N,month:S,day:l,hour:c,minute:u,second:a,millisecond:n,timeshift:O}}}const Pe="years",Le="months",_e="days",tn="hours",en="minutes",nn="seconds";class ut extends x{static format(t=""){return"P"+s.optionalNonCapturingGroup(s.numberGroup(s.groupName(t,Pe),"+",void 0,"\\d"),"Y")+s.optionalNonCapturingGroup(s.numberGroup(s.groupName(t,Le),"+",void 0,"\\d"),"MM")+s.optionalNonCapturingGroup(s.numberGroup(s.groupName(t,_e),"+",void 0,"\\d"),"D")+s.optionalNonCapturingGroup(s.numberGroup(s.groupName(t,tn),"+",void 0,"\\d"),"H")+s.optionalNonCapturingGroup(s.numberGroup(s.groupName(t,en),"+",void 0,"\\d"),"M")+s.optionalNonCapturingGroup(s.numberGroup(s.groupName(t,nn),"+",void 0,"\\d"),"S")+this.formatSuffix(t)}constructor(){super("duration",ut.format())}parseGroups(t){return{years:t[Pe],months:t[Le],days:t[_e],hours:t[tn],minutes:t[en],seconds:t[nn],uncertain:!!t[x.uncertainGroup],approximate:!!t[x.approximateGroup]}}}const gr="dates",oe="start",ae="end",rn="durations",ie="durationMin",ue="durationMax";class Ge extends K{static format=s.group(gr,s.optionalGroup(oe,s.group("openStart","\\.\\.")+"|"+M.format(oe))+"/"+s.optionalGroup(ae,s.group("openEnd","\\.\\.")+"|"+M.format(ae)))+"|"+s.group(rn,s.group(ie,ut.format(ie))+"/"+s.group(ue,ut.format(ue)));constructor(t="interval",e=Ge.format){super(t,e)}parseGroups(t){let e,n;if(t[rn]){const a=t[ie];e=E.fromString(a,new ut);const i=t[ue];n=E.fromString(i,new ut)}else{const a=t[oe];switch(a){case void 0:e=null;break;case"..":e=void 0;break;default:e=R.fromString(a,new M)}const i=t[ae];switch(i){case void 0:n=null;break;case"..":n=void 0;break;default:n=R.fromString(i,new M)}}return{start:e,end:n}}}class g extends x{static uncertainGroup="uncertain1";static approximateGroup="approx1";static uncertainAndApproximateGroup=g.uncertainGroup+g.approximateGroup;constructor(t,e){super(t,e)}static numberFormat(t,e,n){return this.qualifierFormat(s.groupName(g.uncertainGroup,t),"?")+this.qualifierFormat(s.groupName(g.approximateGroup,t),"~")+this.qualifierFormat(s.groupName(g.uncertainAndApproximateGroup,t),"%")+x.numberFormat(t,e,n)}parseGroups(t){const e=super.parseGroups(t),n=t[s.groupName(g.uncertainAndApproximateGroup,this.name)];return(t[s.groupName(g.uncertainGroup,this.name)]||n)&&(e.uncertainComponent=!0),(t[s.groupName(g.approximateGroup,this.name)]||n)&&(e.approximateComponent=!0),e}}const bt="yearValue",sn="exp",on="signif";class Yt extends g{constructor(){super(bt,Yt.format())}static format(t=""){return"Y?"+s.nonCapturingGroup(s.group(s.groupName(t,sn),"[-]?\\d+E\\d+")+"|"+g.numberFormat(s.groupName(t,bt),"+","[-]?")+s.optionalGroup(s.groupName(t,on),"S\\d+"))}parseGroups(t){const e=t[sn];if(e){const i=e.indexOf("E"),u=parseInt(e.substring(i+1),10),c=parseInt(e.substring(0,i),10)*Math.pow(10,u);t[bt]=c.toString()}const n=t[on],o=t[bt];if(n){const i=parseInt(n.substring(1),10),{valueStr:u,sign:m}=this.getValueAndSign(t);let c="";for(let w=0;w<u.length;w++)c+=w<i?u.charAt(w):"X";t[bt]=(m<0?"-":"")+c}const a=super.parseGroups(t);return n&&(a.value.estimate=parseInt(o,10)),a}parse(t){const e=this.regexGroups(t);return this.parseGroups(e)}}const an="monthValue";class Ht extends g{static format(t=""){return g.numberFormat(s.groupName(t,an),"{1,2}",void 0)}constructor(){super(an,Ht.format())}}const un="dayValue";class Xt extends g{static format(t=""){return g.numberFormat(s.groupName(t,un),"{1,2}",void 0)}constructor(){super(un,Xt.format())}}const cn="hourValue";class Wt extends g{static format(t=""){return g.numberFormat(s.groupName(t,cn),"{1,2}",void 0)}constructor(){super(cn,Wt.format())}}const mn="secondValue";class Zt extends g{static format(t=""){return g.numberFormat(s.groupName(t,mn),"{1,2}",void 0)}constructor(){super(mn,Zt.format())}}const pn="minuteValue";class Jt extends g{static format(t=""){return g.numberFormat(s.groupName(t,pn),"{1,2}",void 0)}constructor(){super(pn,Jt.format())}}class wr extends Ut{}class y extends K{static yearGroup=M.yearGroup;static monthGroup="month";static dayGroup="day";static hourGroup="hour";static minuteGroup="minute";static secondGroup="second";static millisecondGroup="millisecond";static timeshiftGroup="timeshift";constructor(){super("date",y.format())}static format(t=""){return s.group(s.groupName(t,y.yearGroup),Yt.format(t))+s.optionalNonCapturingGroup("-",s.group(s.groupName(t,y.monthGroup),Ht.format(t)),s.optionalNonCapturingGroup("-",s.group(s.groupName(t,y.dayGroup),Xt.format(t)),s.optionalNonCapturingGroup("[T ]",s.group(s.groupName(t,y.hourGroup),Wt.format(t)),":",s.group(s.groupName(t,y.minuteGroup),Jt.format(t)),s.optionalNonCapturingGroup(":",s.group(s.groupName(t,y.secondGroup),Zt.format(t)),s.optionalNonCapturingGroup("[.,]",s.group(s.groupName(t,y.millisecondGroup),"\\d+"))),s.optionalGroup(s.groupName(t,y.timeshiftGroup),wr.format(t)))))}parseGroups(t){const e=t[y.millisecondGroup],n=e?ot.parseFraction(e):void 0,o=t[y.secondGroup];let a;o&&(a=C.fromString(o,void 0,new Zt),a.uncertain=a?.uncertain||!1,a.approximate=a?.approximate||!1);const i=t[y.minuteGroup];let u;i&&(u=v.fromString(i,new Jt),u.uncertain=u.uncertain||a?.uncertain||!1,u.approximate=u.approximate||a?.approximate||!1);const m=t[y.hourGroup];let c;m&&(c=J.fromString(m,new Wt),c.uncertain=c.uncertain||u?.uncertain||!1,c.approximate=c.approximate||u?.approximate||!1);const w=t[y.dayGroup];let l;w&&(l=Z.fromString(w,new Xt),l.uncertain=l.uncertain||c?.uncertain||!1,l.approximate=l.approximate||c?.approximate||!1);const b=t[y.monthGroup];let S;b&&(S=W.fromString(b,new Ht),S.uncertain=S.uncertain||l?.uncertain||!1,S.approximate=S.approximate||l?.approximate||!1);const q=t[y.yearGroup];let N;q&&(N=X.fromString(q,void 0,new Yt),N.uncertain=N.uncertain||S?.uncertain||!1,N.approximate=N.approximate||S?.approximate||!1);const H=t[y.timeshiftGroup],O=H?Tn.fromString(H,new Ut,{year:N?.value,month:S?.value,day:l?.value,hour:c?.value}):void 0;return{year:N,month:S,day:l,hour:c,minute:u,second:a,millisecond:n,timeshift:O}}}const hn="durationValue";class xe extends g{static format(t=""){return"^"+g.numberFormat(s.groupName(t,hn),"+",void 0)}constructor(){super(hn,xe.format())}}class Sr extends fe{millisecond=new G("millisecond",0,Number.MAX_SAFE_INTEGER,void 0);second=new G("second",0,Number.MAX_SAFE_INTEGER,this.millisecond);minute=new G("minute",0,Number.MAX_SAFE_INTEGER,this.second);hour=new G("hour",0,Number.MAX_SAFE_INTEGER,this.minute);day=new G("day",1,Number.MAX_SAFE_INTEGER,this.hour);month=new G("month",1,Number.MAX_SAFE_INTEGER,this.day);year=new G("year",0,Number.MAX_SAFE_INTEGER,this.month)}const mt=new Sr;class h extends g{static yearsGroup="years";static monthsGroup="months";static isoMonthsGroup="isoMonths";static daysGroup="days";static hoursGroup="hours";static minutesGroup="minutes";static secondsGroup="seconds";static durationGroup="duration";static suffixGroup="durationSuffix";static componentParser=new xe;static componentFormat(t,e,n,o,a=""){const i=s.group(s.groupName(t,h.quantityGroup(e)),g.numberFormat(s.groupName(t,n),"+",void 0,"\\d"));return s.group(s.groupName(t,e),i,o,a)}static quantityGroup(t){return t+"Quantity"}static isoMonthsLookahead="(?=[?~%]?\\d+D|T)";constructor(){super("duration",h.format())}static format(t=""){const e=s.groupName(t,h.durationGroup);return this.qualifierFormat(s.groupName(g.uncertainGroup,e),"?")+this.qualifierFormat(s.groupName(g.approximateGroup,e),"~")+this.qualifierFormat(s.groupName(g.uncertainAndApproximateGroup,e),"%")+"P"+s.optional(h.componentFormat(t,h.yearsGroup,y.yearGroup,"Y"))+s.optionalNonCapturingGroup(h.componentFormat(t,h.monthsGroup,y.monthGroup,"MM")+"|"+h.componentFormat(t,h.isoMonthsGroup,"isoMonth","M",h.isoMonthsLookahead))+s.optional(h.componentFormat(t,h.daysGroup,y.dayGroup,"D"))+"T?"+s.optional(h.componentFormat(t,h.hoursGroup,y.hourGroup,"H"))+s.optional(h.componentFormat(t,h.minutesGroup,y.minuteGroup,"M"))+s.optional(h.componentFormat(t,h.secondsGroup,y.secondGroup,"S"))+s.optionalGroup(s.groupName(t,h.suffixGroup),"[?~%]")}static parseComponent(t,e,n){const o=h.componentParser.parse(t);return new e(o,n)}parseGroups(t){const e=t[h.quantityGroup(h.secondsGroup)];let n;e&&(n=h.parseComponent(e,C,mt.second),n.uncertain=!!t[s.groupName(g.uncertainGroup,h.secondsGroup)]||!1,n.approximate=!!t[s.groupName(g.approximateGroup,h.secondsGroup)]||!1);const o=t[h.quantityGroup(h.minutesGroup)];let a;o&&(a=h.parseComponent(o,v,mt.minute),a.uncertain=a.uncertain||n?.uncertain||!1,a.approximate=a.approximate||n?.approximate||!1);const i=t[h.quantityGroup(h.hoursGroup)];let u;i&&(u=h.parseComponent(i,J,mt.hour),u.uncertain=u.uncertain||a?.uncertain||!1,u.approximate=u.approximate||a?.approximate||!1);const m=t[h.quantityGroup(h.daysGroup)];let c;m&&(c=h.parseComponent(m,Z,mt.day),c.uncertain=c.uncertain||u?.uncertain||!1,c.approximate=c.approximate||u?.approximate||!1);const w=t[h.quantityGroup(h.monthsGroup)]||t[h.quantityGroup(h.isoMonthsGroup)];let l;w&&(l=h.parseComponent(w,W,mt.month),l.uncertain=l.uncertain||c?.uncertain||!1,l.approximate=l.approximate||c?.approximate||!1);const b=t[h.quantityGroup(h.yearsGroup)];let S;b&&(S=h.parseComponent(b,X,mt.year),S.uncertain=S.uncertain||l?.uncertain||!1,S.approximate=S.approximate||l?.approximate||!1);const q=t[h.suffixGroup],N=!!t[s.groupName(g.uncertainAndApproximateGroup,h.durationGroup)]||q==="%",H=N||!!t[s.groupName(g.uncertainGroup,h.durationGroup)]||q==="?",O=N||!!t[s.groupName(g.approximateGroup,h.durationGroup)]||q==="~";return{years:S,months:l,days:c,hours:u,minutes:a,seconds:n,uncertain:H,approximate:O}}}const yr="dates",ce="start",me="end",dn="durations",pe="durationMin",he="durationMax";class ee extends K{static format=s.group(yr,s.optionalGroup(ce,s.group("openStart","\\.\\.")+"|"+y.format(ce))+"/"+s.optionalGroup(me,s.group("openEnd","\\.\\.")+"|"+y.format(me)))+"|"+s.group(dn,s.group(pe,h.format(pe))+"/"+s.group(he,h.format(he)));constructor(t="interval",e=ee.format){super(t,e)}parseGroups(t){let e,n;if(t[dn]){const a=t[pe];e=T.fromString(a,new h);const i=t[he];n=T.fromString(i,new h)}else{const a=t[ce];switch(a){case void 0:e=null;break;case"..":e=void 0;break;default:e=j.fromString(a,new y)}const i=t[me];switch(i){case void 0:n=null;break;case"..":n=void 0;break;default:n=j.fromString(i,new y)}}return{start:e,end:n}}}class Gr{parse(t){t=t.trim();const e=t.startsWith("["),o=t.substring(1,t.length-1).split(","),a=[];for(const i of o){let u;i.includes("..")?u=At.fromString(i.replace("..","/"),new ee):u=j.fromString(i,new y),a.push(u)}return{values:a,exclusive:e}}}class f{static draw(t,e="none"){return`<svg class="icon" viewBox="0 0 16 16" width="16" height="16" aria-hidden="true" fill="${e}" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">${t}</svg>`}static TRASH=f.draw('<path d="M2.5 4.5h11"/><path d="M6 4.5V3h4v1.5"/><path d="M4 4.5l.7 9h6.6l.7-9"/><path d="M6.8 7v4.5M9.2 7v4.5"/>');static TARGET=f.draw('<circle cx="8" cy="8" r="5"/><circle cx="8" cy="8" r="1.6"/><path d="M8 1v2.2M8 12.8V15M1 8h2.2M12.8 8H15"/>');static PLAY=f.draw('<path d="M5 3.2v9.6L12.6 8z"/>',"currentColor");static PAUSE=f.draw('<path d="M5.5 3.5v9M10.5 3.5v9"/>');static RECORD=f.draw('<circle cx="8" cy="8" r="4.2" fill="var(--error, #d93025)" stroke="none"/>');static STOP=f.draw('<rect x="4" y="4" width="8" height="8" rx="1.2"/>',"currentColor");static PREVIOUS_MARK=f.draw('<path d="M6.5 4 2.5 8l4 4"/><path d="M11 5.2 13.8 8 11 10.8 8.2 8z"/>');static NEXT_MARK=f.draw('<path d="M9.5 4l4 4-4 4"/><path d="M5 5.2 7.8 8 5 10.8 2.2 8z"/>');static CLOSE=f.draw('<path d="M4 4l8 8M12 4l-8 8"/>');static PLUS=f.draw('<path d="M8 3v10M3 8h10"/>');static COPY=f.draw('<rect x="5.5" y="5.5" width="8" height="8" rx="1.3"/><path d="M10.5 3.2h-7a1.3 1.3 0 0 0-1.3 1.3v7"/>');static CLOCK=f.draw('<circle cx="8" cy="8" r="6"/><path d="M8 4.6V8l2.4 1.6"/>');static INTERVIEW=f.draw('<path d="M13.3 9.2a1.6 1.6 0 0 1-1.6 1.6H6.2L3 13.4V4.4a1.6 1.6 0 0 1 1.6-1.6h7.1a1.6 1.6 0 0 1 1.6 1.6z"/><path d="M5.8 6.1h5.1M5.8 8.4h3.2"/>');static LOCK=f.draw('<rect x="3.2" y="7.2" width="9.6" height="6.4" rx="1.4"/><path d="M5.6 7.2V5.4a2.4 2.4 0 0 1 4.8 0v1.8"/>');static LOCK_OPEN=f.draw('<rect x="3.2" y="7.2" width="9.6" height="6.4" rx="1.4"/><path d="M5.6 7.2V5.4a2.4 2.4 0 0 1 4.6-.7"/>');static METEOR=f.draw('<path d="M2.5 2.5l7 7"/><path d="M5.5 2.5l5 5"/><circle cx="11.5" cy="11.5" r="2"/>');static COMET=f.draw('<circle cx="11" cy="11" r="2.4"/><path d="M9.3 9.3 2.5 2.5M9 11.2 3 7M11.2 9 7 3"/>');static STAR=f.draw('<path d="M8 2.2l1.7 3.6 3.9.5-2.9 2.7.8 3.9L8 11l-3.5 1.9.8-3.9-2.9-2.7 3.9-.5z"/>');static SATELLITE=f.draw('<rect x="6.3" y="6.3" width="3.4" height="3.4" transform="rotate(45 8 8)"/><path d="M5.4 5.4 3 3M10.6 10.6 13 13"/><path d="M1.8 4.2 4.2 1.8M11.8 14.2l2.4-2.4"/><path d="M10.5 3.5a3 3 0 0 1 2 2"/>');static FIREBALL=f.draw('<circle cx="10.5" cy="10.5" r="2.6"/><path d="M8.6 8.6 3 3M8 10.6 4.5 8.5M10.6 8 8.5 4.5"/>');static SUMMARY=f.draw('<rect x="3" y="2" width="10" height="12" rx="1.5"/><path d="M5.5 5.5h5M5.5 8h5M5.5 10.5h3"/>');static WITNESS=f.draw('<circle cx="8" cy="5" r="2.6"/><path d="M2.8 14c.6-3 2.6-4.6 5.2-4.6s4.6 1.6 5.2 4.6"/>');static LOCATION=f.draw('<path d="M8 14.3s4.5-4.3 4.5-7.8a4.5 4.5 0 0 0-9 0c0 3.5 4.5 7.8 4.5 7.8z"/><circle cx="8" cy="6.5" r="1.6"/>');static DATE=f.draw('<rect x="2.3" y="3.3" width="11.4" height="10.4" rx="1.5"/><path d="M2.3 6.6h11.4M5.3 1.8v2.8M10.7 1.8v2.8"/>');static ENVIRONMENT=f.draw('<path d="M1.5 14h13"/><path d="M2.8 14V8.3L6.3 5.5l3.5 2.8V14"/><path d="M12.2 14V9.4"/><circle cx="12.2" cy="7.4" r="2.1"/>');static SKY=f.draw('<path d="M4.6 12.5h7a2.6 2.6 0 0 0 .3-5.2 3.8 3.8 0 0 0-7.3-.6 2.9 2.9 0 0 0 0 5.8z"/>');static PHENOMENON=f.draw('<ellipse cx="8" cy="9" rx="6.3" ry="2.1"/><path d="M4.6 7.8a3.4 3.4 0 0 1 6.8 0"/><path d="M5 13.4l.6-1.4M11 13.4l-.6-1.4M8 14v-1.4"/>');static SOUND=f.draw('<path d="M2.5 6.2h2.3L8 3.5v9L4.8 9.8H2.5z"/><path d="M10.5 6a2.8 2.8 0 0 1 0 4M12.3 4.2a5.4 5.4 0 0 1 0 7.6"/>');static PICTURES=f.draw('<rect x="2" y="3" width="12" height="10" rx="1.5"/><circle cx="5.8" cy="6.4" r="1.2"/><path d="M2.5 12l3.8-3.6 2.4 2.2 2.2-1.8 2.6 2.5"/>');static FILES=f.draw('<path d="M4 1.8h5.2L12.5 5v9.2H4z"/><path d="M9 1.8V5.2h3.5"/>');static BY_GLYPH={"🗑":f.TRASH,"🎯":f.TARGET,"+":f.PLUS,"✕":f.CLOSE,"▶":f.PLAY,"⏸":f.PAUSE,"⏺":f.RECORD,"⏹":f.STOP};static show(t,e){if(t.dataset.icon===e&&t.firstChild)return;const n=f.BY_GLYPH[e];n?t.innerHTML=n:t.textContent=e,t.dataset.icon=e}static CSS=`
|
|
2
|
+
.icon { display: block; flex: none; }
|
|
3
|
+
button:has(> .icon:only-child) { display: inline-flex; align-items: center; justify-content: center; }
|
|
4
|
+
`}p.register(F,()=>new it);p.register(wt,()=>new dt);p.register(B,()=>new Se);p.register(St,()=>new lt);p.register(Tt,()=>new ye);p.register(yt,()=>new $t);p.register(gt,()=>new Vt);p.register(Gt,()=>new Rt);p.register(st,()=>new xt);p.register(ft,()=>new Ft);p.register(R,()=>new M);p.register(tt,()=>new It);p.register(E,()=>new ut);p.register(et,()=>new qt);p.register(Et,()=>new Ge);p.register(nt,()=>new Bt);p.register(_,()=>new kt);p.register(rt,()=>new zt);p.register(ct,()=>new Ut);p.register(L,()=>new jt);p.register(j,()=>new y);p.register(Z,()=>new Xt);p.register(T,()=>new h);p.register(J,()=>new Wt);p.register(At,()=>new ee);p.register(v,()=>new Jt);p.register(W,()=>new Ht);p.register(C,()=>new Zt);p.register(Ot,()=>new Gr);p.register(X,()=>new Yt);class P{constructor(t){this.preferences=t}read(t){var e,n;if(t===void 0)return;if(typeof t=="string")return t===""?void 0:t;for(const a of this.preferences){const i=(e=t[a])!==null&&e!==void 0?e:t[P.base(a)];if(i)return i}const o=new Set(this.preferences.map(a=>P.base(a)));for(const[a,i]of Object.entries(t))if(i&&o.has(P.base(a)))return i;return(n=Object.values(t).find(a=>a))!==null&&n!==void 0?n:void 0}write(t,e,n){var o,a;const i=e?.trim()?e.trim():void 0;if(t===void 0||typeof t=="string")return i;const u={...t},m=(a=(o=Object.keys(u).find(c=>c===n))!==null&&o!==void 0?o:Object.keys(u).find(c=>P.base(c)===P.base(n)))!==null&&a!==void 0?a:n;return i===void 0?delete u[m]:u[m]=i,Object.keys(u).length===0?void 0:u}static base(t){return t.toLowerCase().split("-")[0]}}P.any=new P([]);var ln;(function(r){r.abductee="abductee",r.actor="actor",r.artist="artist",r.anthropologist="anthropologist",r.archeologist="archeologist",r.astronaut="astronaut",r.astronomer="astronomer",r.astrologist="astrologist",r.astrophysicist="astrophysicist",r.banker="banker",r.barman="barman",r.biologist="biologist",r.biochemist="biochemist",r.biophysicist="biophysicist",r.bishop="bishop",r.businessman="businessman",r.botanist="botanist",r.cameraman="cameraman",r.chemist="chemist",r.contactee="contactee",r.cryptozoologist="cryptozoologist",r.dentist="dentist",r.director="director",r.diplomat="diplomat",r.diver="diver",r.electronics="electronics",r.engineer="engineer",r.ethnologist="ethnologist",r.exobiologist="exobiologist",r.farmer="farmer",r.firefighter="firefighter",r.flightAttendant="flightAttendant",r.geologist="geologist",r.geophysicist="geophysicist",r.geographer="geographer",r.historian="historian",r.houseWife="houseWife",r.hypnotherapist="hypnotherapist",r.illusionist="illusionist",r.journalist="journalist",r.judge="judge",r.lawyer="lawyer",r.leader="leader",r.librarian="librarian",r.logger="logger",r.mathematician="mathematician",r.mechanic="mechanic",r.meteorologist="meteorologist",r.military="military",r.musician="musician",r.neurologist="neurologist",r.neuroscientist="neuroscientist",r.neuropsychiatrist="neuropsychiatrist",r.nurse="nurse",r.oceanographer="oceanographer",r.painter="painter",r.parapsychologist="parapsychologist",r.philosopher="philosopher",r.photographer="photographer",r.physician="physician",r.physicist="physicist",r.pilot="pilot",r.politician="politician",r.policeman="policeman",r.priest="priest",r.producer="producer",r.prospector="prospector",r.psychologist="psychologist",r.psychiatrist="psychiatrist",r.radioastronomer="radioastronomer",r.radioamateur="radioamateur",r.salesman="salesman",r.sailor="sailor",r.sociologist="sociologist",r.softwareEngineer="softwareEngineer",r.stuntman="stuntman",r.taxiDriver="taxiDriver",r.teacher="teacher",r.telegrapher="telegrapher",r.truckDriver="truckDriver",r.ufologist="ufologist",r.ufoWitness="ufoWitness",r.ufoWitness2="ufoWitness2",r.worker="worker",r.writer="writer"})(ln||(ln={}));var fn;(function(r){r.neutral="neutral",r.male="male",r.female="female"})(fn||(fn={}));class xr extends Error{constructor(t,e){super(t),this.cause=e}}class Me extends xr{constructor(t=Me.defaultMessage,e){super(t,e)}}Me.defaultMessage="Assertion failed";var gn;(function(r){r.country="country",r.region="region",r.department="department",r.city="city",r.company="company"})(gn||(gn={}));var wn;(function(r){r.at="at",r.au="au",r.ar="ar",r.be="be",r.br="br",r.ca="ca",r.ch="ch",r.cn="cn",r.cl="cl",r.co="co",r.cy="cy",r.de="de",r.dk="dk",r.do="do",r.dz="dz",r.gr="gr",r.ec="ec",r.eg="eg",r.es="es",r.fi="fi",r.fr="fr",r.ga="ga",r.ge="ge",r.hu="hu",r.in="in",r.ie="ie",r.ir="ir",r.il="il",r.it="it",r.jp="jp",r.kr="kr",r.ma="ma",r.mx="mx",r.my="my",r.mz="mz",r.nl="nl",r.no="no",r.nz="nz",r.pa="pa",r.pe="pe",r.ph="ph",r.pl="pl",r.pt="pt",r.ro="ro",r.ru="ru",r.sc="sc",r.tr="tr",r.ua="ua",r.uk="uk",r.us="us",r.sa="sa",r.se="se",r.su="su",r.tn="tn",r.tw="tw",r.ve="ve",r.za="za"})(wn||(wn={}));const An=Math.PI/180,Dt=111320;function Mr(r,t,e,n){const o=Dt*Math.cos(e*An),a=(r-e)*Dt;return{x:(t-n)*o,z:-a}}function br(r,t,e,n){const o=Dt*Math.cos(e*An),a=-t,i=r;return{lat:e+a/Dt,lng:n+i/o}}class I{static isRelative(t){return t!==void 0&&typeof t.eastM=="number"&&typeof t.northM=="number"}static isAbsolute(t){return t!==void 0&&typeof t.lat=="number"&&typeof t.lng=="number"}static referenceOf(t,e){return e.references.find(n=>(n.id??void 0)===(t.relativeTo??void 0))}static resolve(t,e){if(I.isRelative(t)){const n=I.referenceOf(t,e);return n?{eastM:n.eastM+t.eastM,northM:n.northM+t.northM}:void 0}return I.isAbsolute(t)&&e.origin?I.toLocal(t,e.origin):void 0}static restated(t,e,n){if(I.isRelative(t)){const a=I.referenceOf(t,n);return a?I.relative(e.eastM-a.eastM,e.northM-a.northM,t.relativeTo):void 0}if(!n.origin)return t;const o=I.toGeo(e,n.origin);return{lat:I.degrees(o.lat),lng:I.degrees(o.lng)}}static relative(t,e,n){const o={eastM:I.metres(t),northM:I.metres(e)};return n!==void 0&&(o.relativeTo=n),o}static toLocal(t,e){const n=Mr(t.lat,t.lng,e.lat,e.lng);return{eastM:n.x,northM:-n.z}}static toGeo(t,e){return br(t.eastM,-t.northM,e.lat,e.lng)}static metres(t){return Math.round(t*100)/100}static degrees(t){return Math.round(t*1e7)/1e7}}export{f as I,j as L,de as P,P as S,I as a,Nt as b,y as c,Kt as d,Mr as g,br as l};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var Pa=Math.PI,R=Pa*2,$a=Pa/180,V0=1440,j0=398600.8,La=6378.135,Xa=60/Math.sqrt(La*La*La/j0),C0=La*Xa/60,R0=1/Xa,n0=.001082616,ar=-253881e-11,rr=-165597e-11,o0=ar/n0,x0=2/3,nr=1440/(2*Pa);function or(r,n){for(var o=[31,r%4===0?29:28,31,30,31,30,31,31,30,31,30,31],v=Math.floor(n),e=1,t=0;v>t+o[e-1]&&e<12;)t+=o[e-1],e+=1;var d=e,s=v-t,h=(n-v)*24,m=Math.floor(h);h=(h-m)*60;var c=Math.floor(h),l=(h-c)*60;return{mon:d,day:s,hr:m,minute:c,sec:l}}function S0(r,n,o,v,e,t){var d=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0;return 367*r-Math.floor(7*(r+Math.floor((n+9)/12))*.25)+Math.floor(275*n/9)+o+17210135e-1+((d/6e4+t/60+e)/60+v)/24}function M0(r,n,o,v,e,t){var d=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0;if(r instanceof Date){var s=r;return S0(s.getUTCFullYear(),s.getUTCMonth()+1,s.getUTCDate(),s.getUTCHours(),s.getUTCMinutes(),s.getUTCSeconds(),s.getUTCMilliseconds())}return S0(r,n,o,v,e,t,d)}function B0(r,n){var o=r.e3,v=r.ee2,e=r.peo,t=r.pgho,d=r.pho,s=r.pinco,h=r.plo,m=r.se2,c=r.se3,l=r.sgh2,T=r.sgh3,f=r.sgh4,V=r.sh2,G=r.sh3,B=r.si2,E=r.si3,X=r.sl2,k=r.sl3,U=r.sl4,u=r.t,g=r.xgh2,K=r.xgh3,z=r.xgh4,w=r.xh2,ea=r.xh3,Z=r.xi2,O=r.xi3,aa=r.xl2,Q=r.xl3,ta=r.xl4,y=r.zmol,ia=r.zmos,J=n.init,W=n.opsmode,sa=n.ep,S=n.inclp,N=n.nodep,Oa=n.argpp,ma=n.mp,M,x,ra,L,$,I,Aa,na,ca,D,C,oa,q,A,P,p,_,H,j,F,Y,la=119459e-10,ga=.01675,Ma=.00015835218,pa=.0549;Y=ia+la*u,J==="y"&&(Y=ia),F=Y+2*ga*Math.sin(Y),_=Math.sin(F),D=.5*_*_-.25,C=-.5*_*Math.cos(F);var Da=m*D+c*C,qa=B*D+E*C,a=X*D+k*C+U*_,xa=l*D+T*C+f*_,da=V*D+G*C;Y=y+Ma*u,J==="y"&&(Y=y),F=Y+2*pa*Math.sin(Y),_=Math.sin(F),D=.5*_*_-.25,C=-.5*_*Math.cos(F);var Ca=v*D+o*C,Ea=Z*D+O*C,va=aa*D+Q*C+ta*_,fa=g*D+K*C+z*_,ka=w*D+ea*C;return oa=Da+Ca,P=qa+Ea,p=a+va,q=xa+fa,A=da+ka,J==="n"&&(oa-=e,P-=s,p-=h,q-=t,A-=d,S+=P,sa+=oa,L=Math.sin(S),ra=Math.cos(S),S>=.2?(A/=L,q-=ra*A,Oa+=q,N+=A,ma+=p):(I=Math.sin(N),$=Math.cos(N),M=L*I,x=L*$,Aa=A*$+P*ra*I,na=-A*I+P*ra*$,M+=Aa,x+=na,N%=R,N<0&&W==="a"&&(N+=R),H=ma+Oa+ra*N,ca=p+q-P*N*L,H+=ca,j=N,N=Math.atan2(M,x),N<0&&W==="a"&&(N+=R),Math.abs(j-N)>Pa&&(N<j?N+=R:N-=R),ma+=p,Oa=H-ma-ra*N)),{ep:sa,inclp:S,nodep:N,argpp:Oa,mp:ma}}function vr(r){var n=r.epoch,o=r.ep,v=r.argpp,e=r.tc,t=r.inclp,d=r.nodep,s=r.np,h,m,c,l,T,f,V,G,B,E,X,k,U,u,g,K,z,w,ea,Z,O,aa,Q,ta,y,ia,J,W,sa,S,N,Oa,ma,M,x,ra,L,$,I,Aa,na,ca,D,C,oa,q,A,P,p,_,H,j,F,Y,la,ga,Ma,pa,Da,qa,a,xa,da,Ca=.01675,Ea=.0549,va=29864797e-13,fa=47968065e-14,ka=.39785416,wa=.91744867,za=.1945905,Ya=-.98088458,_a=s,Ka=o,Fa=Math.sin(d),ba=Math.cos(d),ya=Math.sin(v),Na=Math.cos(v),Ba=Math.sin(t),Wa=Math.cos(t),i=Ka*Ka,Ua=1-i,Sa=Math.sqrt(Ua),Va=0,b=0,v0=0,d0=0,h0=0,Ga=n+18261.5+e/1440,Ha=(4.523602-.00092422029*Ga)%R,ua=Math.sin(Ha),Za=Math.cos(Ha),e0=.91375164-.03568096*Za,t0=Math.sqrt(1-e0*e0),Ta=.089683511*ua/t0,Ia=Math.sqrt(1-Ta*Ta),ha=5.8351514+.001944368*Ga,ja=.39785416*ua/t0,f0=Ia*Za+.91744867*Ta*ua;ja=Math.atan2(ja,f0),ja+=ha-Ha;var z0=Math.cos(ja),p0=Math.sin(ja);Z=za,O=Ya,ta=wa,y=ka,aa=ba,Q=Fa,X=va;for(var u0=1/_a,s0=0;s0<2;)s0+=1,h=Z*aa+O*ta*Q,c=-O*aa+Z*ta*Q,V=-Z*Q+O*ta*aa,G=O*y,B=O*Q+Z*ta*aa,E=Z*y,m=Wa*V+Ba*G,l=Wa*B+Ba*E,T=-Ba*V+Wa*G,f=-Ba*B+Wa*E,k=h*Na+m*ya,U=c*Na+l*ya,u=-h*ya+m*Na,g=-c*ya+l*Na,K=T*ya,z=f*ya,w=T*Na,ea=f*Na,a=12*k*k-3*u*u,xa=24*k*U-6*u*g,da=12*U*U-3*g*g,j=3*(h*h+m*m)+a*i,F=6*(h*c+m*l)+xa*i,Y=3*(c*c+l*l)+da*i,la=-6*h*T+i*(-24*k*w-6*u*K),ga=-6*(h*f+c*T)+i*(-24*(U*w+k*ea)+-6*(u*z+g*K)),Ma=-6*c*f+i*(-24*U*ea-6*g*z),pa=6*m*T+i*(24*k*K-6*u*w),Da=6*(l*T+m*f)+i*(24*(U*K+k*z)-6*(g*w+u*ea)),qa=6*l*f+i*(24*U*z-6*g*ea),j=j+j+Ua*a,F=F+F+Ua*xa,Y=Y+Y+Ua*da,A=X*u0,q=-.5*A/Sa,P=A*Sa,oa=-15*Ka*P,p=k*u+U*g,_=U*u+k*g,H=U*g-k*u,s0===1&&(ia=oa,J=q,W=A,sa=P,S=p,N=_,Oa=H,ma=j,M=F,x=Y,ra=la,L=ga,$=Ma,I=pa,Aa=Da,na=qa,ca=a,D=xa,C=da,Z=z0,O=p0,ta=e0,y=t0,aa=Ia*ba+Ta*Fa,Q=Fa*Ia-ba*Ta,X=fa);var m0=(4.7199672+(.2299715*Ga-ha))%R,O0=(6.2565837+.017201977*Ga)%R,y0=2*ia*N,Ra=2*ia*Oa,a0=2*J*L,N0=2*J*($-ra),A0=-2*W*M,E0=-2*W*(x-ma),T0=-2*W*(-21-9*i)*Ca,i0=2*sa*D,I0=2*sa*(C-ca),D0=-18*sa*Ca,c0=-2*J*Aa,l0=-2*J*(na-I),g0=2*oa*_,q0=2*oa*H,w0=2*q*ga,K0=2*q*(Ma-la),W0=-2*A*F,H0=-2*A*(Y-j),Y0=-2*A*(-21-9*i)*Ea,G0=2*P*xa,J0=2*P*(da-a),$0=-18*P*Ea,X0=-2*q*Da,Q0=-2*q*(qa-pa);return{snodm:Fa,cnodm:ba,sinim:Ba,cosim:Wa,sinomm:ya,cosomm:Na,day:Ga,e3:q0,ee2:g0,em:Ka,emsq:i,gam:ha,peo:Va,pgho:d0,pho:h0,pinco:b,plo:v0,rtemsq:Sa,se2:y0,se3:Ra,sgh2:i0,sgh3:I0,sgh4:D0,sh2:c0,sh3:l0,si2:a0,si3:N0,sl2:A0,sl3:E0,sl4:T0,s1:oa,s2:q,s3:A,s4:P,s5:p,s6:_,s7:H,ss1:ia,ss2:J,ss3:W,ss4:sa,ss5:S,ss6:N,ss7:Oa,sz1:ma,sz2:M,sz3:x,sz11:ra,sz12:L,sz13:$,sz21:I,sz22:Aa,sz23:na,sz31:ca,sz32:D,sz33:C,xgh2:G0,xgh3:J0,xgh4:$0,xh2:X0,xh3:Q0,xi2:w0,xi3:K0,xl2:W0,xl3:H0,xl4:Y0,nm:_a,z1:j,z2:F,z3:Y,z11:la,z12:ga,z13:Ma,z21:pa,z22:Da,z23:qa,z31:a,z32:xa,z33:da,zmol:m0,zmos:O0}}function er(r){var n=r.cosim,o=r.argpo,v=r.s1,e=r.s2,t=r.s3,d=r.s4,s=r.s5,h=r.sinim,m=r.ss1,c=r.ss2,l=r.ss3,T=r.ss4,f=r.ss5,V=r.sz1,G=r.sz3,B=r.sz11,E=r.sz13,X=r.sz21,k=r.sz23,U=r.sz31,u=r.sz33,g=r.t,K=r.tc,z=r.gsto,w=r.mo,ea=r.mdot,Z=r.no,O=r.nodeo,aa=r.nodedot,Q=r.xpidot,ta=r.z1,y=r.z3,ia=r.z11,J=r.z13,W=r.z21,sa=r.z23,S=r.z31,N=r.z33,Oa=r.ecco,ma=r.eccsq,M=r.emsq,x=r.em,ra=r.argpm,L=r.inclm,$=r.mm,I=r.nm,Aa=r.nodem,na=r.irez,ca=r.atime,D=r.d2201,C=r.d2211,oa=r.d3210,q=r.d3222,A=r.d4410,P=r.d4422,p=r.d5220,_=r.d5232,H=r.d5421,j=r.d5433,F=r.dedt,Y=r.didt,la=r.dmdt,ga=r.dnodt,Ma=r.domdt,pa=r.del1,Da=r.del2,qa=r.del3,a=r.xfact,xa=r.xlamo,da=r.xli,Ca=r.xni,Ea,va,fa,ka,wa,za,Ya,_a,Ka,Fa,ba,ya,Na,Ba,Wa,i,Ua,Sa,Va,b,v0,d0,h0,Ga,Ha,ua,Za,e0,t0,Ta,Ia,ha,ja=17891679e-13,f0=21460748e-13,z0=22123015e-14,p0=17891679e-13,u0=73636953e-16,s0=21765803e-16,m0=.0043752690880113,O0=37393792e-14,y0=11428639e-14,Ra=.00015835218,a0=119459e-10;na=0,I<.0052359877&&I>.0034906585&&(na=1),I>=.00826&&I<=.00924&&x>=.5&&(na=2);var N0=m*a0*f,A0=c*a0*(B+E),E0=-a0*l*(V+G-14-6*M),T0=T*a0*(U+u-6),i0=-a0*c*(X+k);(L<.052359877||L>Pa-.052359877)&&(i0=0),h!==0&&(i0/=h);var I0=T0-n*i0;F=N0+v*Ra*s,Y=A0+e*Ra*(ia+J),la=E0-Ra*t*(ta+y-14-6*M);var D0=d*Ra*(S+N-6),c0=-Ra*e*(W+sa);(L<.052359877||L>Pa-.052359877)&&(c0=0),Ma=I0+D0,ga=i0,h!==0&&(Ma-=n/h*c0,ga+=c0/h);var l0=0,g0=(z+K*m0)%R;if(x+=F*g,L+=Y*g,ra+=Ma*g,Aa+=ga*g,$+=la*g,na!==0){if(Ta=Math.pow(I/Xa,x0),na===2){Ia=n*n;var q0=x;x=Oa;var w0=M;M=ma,ha=x*M,Ba=-.306-(x-.64)*.44,x<=.65?(Wa=3.616-13.247*x+16.29*M,Ua=-19.302+117.39*x-228.419*M+156.591*ha,Sa=-18.9068+109.7927*x-214.6334*M+146.5816*ha,Va=-41.122+242.694*x-471.094*M+313.953*ha,b=-146.407+841.88*x-1629.014*M+1083.435*ha,v0=-532.114+3017.977*x-5740.032*M+3708.276*ha):(Wa=-72.099+331.819*x-508.738*M+266.724*ha,Ua=-346.844+1582.851*x-2415.925*M+1246.113*ha,Sa=-342.585+1554.908*x-2366.899*M+1215.972*ha,Va=-1052.797+4758.686*x-7193.992*M+3651.957*ha,b=-3581.69+16178.11*x-24462.77*M+12422.52*ha,x>.715?v0=-5149.66+29936.92*x-54087.36*M+31324.56*ha:v0=1464.74-4664.75*x+3763.64*M),x<.7?(Ga=-919.2277+4988.61*x-9064.77*M+5542.21*ha,d0=-822.71072+4568.6173*x-8491.4146*M+5337.524*ha,h0=-853.666+4690.25*x-8624.77*M+5341.4*ha):(Ga=-37995.78+161616.52*x-229838.2*M+109377.94*ha,d0=-51752.104+218913.95*x-309468.16*M+146349.42*ha,h0=-40023.88+170470.89*x-242699.48*M+115605.82*ha),Ha=h*h,Ea=.75*(1+2*n+Ia),va=1.5*Ha,ka=1.875*h*(1-2*n-3*Ia),wa=-1.875*h*(1+2*n-3*Ia),Ya=35*Ha*Ea,_a=39.375*Ha*Ha,Ka=9.84375*h*(Ha*(1-2*n-5*Ia)+.33333333*(-2+4*n+6*Ia)),Fa=h*(4.92187512*Ha*(-2-4*n+10*Ia)+6.56250012*(1+2*n-3*Ia)),ba=29.53125*h*(2-8*n+Ia*(-12+8*n+10*Ia)),ya=29.53125*h*(-2-8*n+Ia*(12+8*n-10*Ia)),e0=I*I,t0=Ta*Ta,Za=3*e0*t0,ua=Za*p0,D=ua*Ea*Ba,C=ua*va*Wa,Za*=Ta,ua=Za*O0,oa=ua*ka*Ua,q=ua*wa*Sa,Za*=Ta,ua=2*Za*u0,A=ua*Ya*Va,P=ua*_a*b,Za*=Ta,ua=Za*y0,p=ua*Ka*v0,_=ua*Fa*h0,ua=2*Za*s0,H=ua*ba*d0,j=ua*ya*Ga,xa=(w+O+O-(g0+g0))%R,a=ea+la+2*(aa+ga-m0)-Z,x=q0,M=w0}na===1&&(Na=1+M*(-2.5+.8125*M),Ua=1+2*M,i=1+M*(-6+6.60937*M),Ea=.75*(1+n)*(1+n),fa=.9375*h*h*(1+3*n)-.75*(1+n),za=1+n,za*=1.875*za*za,pa=3*I*I*Ta*Ta,Da=2*pa*Ea*Na*ja,qa=3*pa*za*i*z0*Ta,pa=pa*fa*Ua*f0*Ta,xa=(w+O+o-g0)%R,a=ea+Q+la+Ma+ga-(Z+m0)),da=xa,Ca=Z,ca=0,I=Z+l0}return{em:x,argpm:ra,inclm:L,mm:$,nm:I,nodem:Aa,irez:na,atime:ca,d2201:D,d2211:C,d3210:oa,d3222:q,d4410:A,d4422:P,d5220:p,d5232:_,d5421:H,d5433:j,dedt:F,didt:Y,dmdt:la,dndt:l0,dnodt:ga,domdt:Ma,del1:pa,del2:Da,del3:qa,xfact:a,xlamo:xa,xli:da,xni:Ca}}function L0(r){var n=(r-2451545)/36525,o=-62e-7*n*n*n+.093104*n*n+(876600*3600+8640184812866e-6)*n+67310.54841;return o=o*$a/240%R,o<0&&(o+=R),o}function U0(r,n,o,v,e,t,d){return r instanceof Date?L0(M0(r)):L0(r)}function tr(r){var n=r.ecco,o=r.epoch,v=r.inclo,e=r.opsmode,t=r.no,d=n*n,s=1-d,h=Math.sqrt(s),m=Math.cos(v),c=m*m,l=Math.pow(Xa/t,x0),T=.75*n0*(3*c-1)/(h*s),f=T/(l*l),V=l*(1-f*f-f*(1/3+134*f*f/81));f=T/(V*V),t/=1+f;var G=Math.pow(Xa/t,x0),B=Math.sin(v),E=G*s,X=1-5*c,k=-X-c-c,U=1/G,u=E*E,g=G*(1-n),K="n",z;if(e==="a"){var w=o-7305,ea=Math.floor(w+1e-8),Z=w-ea,O=.017202791694070362,aa=1.7321343856509375,Q=5075514194322695e-30,ta=O+R;z=(aa+O*ea+ta*Z+w*w*Q)%R,z<0&&(z+=R)}else z=U0(o+24332815e-1);return{no:t,method:K,ainv:U,ao:G,con41:k,con42:X,cosio:m,cosio2:c,eccsq:d,omeosq:s,posq:u,rp:g,rteosq:h,sinio:B,gsto:z}}function ir(r){var n=r.irez,o=r.d2201,v=r.d2211,e=r.d3210,t=r.d3222,d=r.d4410,s=r.d4422,h=r.d5220,m=r.d5232,c=r.d5421,l=r.d5433,T=r.dedt,f=r.del1,V=r.del2,G=r.del3,B=r.didt,E=r.dmdt,X=r.dnodt,k=r.domdt,U=r.argpo,u=r.argpdot,g=r.t,K=r.tc,z=r.gsto,w=r.xfact,ea=r.xlamo,Z=r.no,O=r.atime,aa=r.em,Q=r.argpm,ta=r.inclm,y=r.xli,ia=r.mm,J=r.xni,W=r.nodem,sa=r.nm,S=.13130908,N=2.8843198,Oa=.37448087,ma=5.7686396,M=.95240898,x=1.8014998,ra=1.050833,L=4.4108898,$=.0043752690880113,I=720,Aa=-720,na=259200,ca,D,C,oa,q,A,P,p,_=0,H=0,j=(z+K*$)%R;if(aa+=T*g,ta+=B*g,Q+=k*g,W+=X*g,ia+=E*g,n!==0){(O===0||g*O<=0||Math.abs(g)<Math.abs(O))&&(O=0,J=Z,y=ea),g>0?ca=I:ca=Aa;for(var F=381;F===381;)n!==2?(P=f*Math.sin(y-S)+V*Math.sin(2*(y-N))+G*Math.sin(3*(y-Oa)),q=J+w,A=f*Math.cos(y-S)+2*V*Math.cos(2*(y-N))+3*G*Math.cos(3*(y-Oa)),A*=q):(p=U+u*O,C=p+p,D=y+y,P=o*Math.sin(C+y-ma)+v*Math.sin(y-ma)+e*Math.sin(p+y-M)+t*Math.sin(-p+y-M)+d*Math.sin(C+D-x)+s*Math.sin(D-x)+h*Math.sin(p+y-ra)+m*Math.sin(-p+y-ra)+c*Math.sin(p+D-L)+l*Math.sin(-p+D-L),q=J+w,A=o*Math.cos(C+y-ma)+v*Math.cos(y-ma)+e*Math.cos(p+y-M)+t*Math.cos(-p+y-M)+h*Math.cos(p+y-ra)+m*Math.cos(-p+y-ra)+2*(d*Math.cos(C+D-x)+s*Math.cos(D-x)+c*Math.cos(p+D-L)+l*Math.cos(-p+D-L)),A*=q),Math.abs(g-O)>=I?F=381:(H=g-O,F=0),F===381&&(y+=q*ca+P*na,J+=P*ca+A*na,O+=ca);sa=J+P*H+A*H*H*.5,oa=y+q*H+P*H*H*.5,n!==1?(ia=oa-2*W+2*j,_=sa-Z):(ia=oa-W-Q+j,_=sa-Z),sa=Z+_}return{atime:O,em:aa,argpm:Q,inclm:ta,xli:y,mm:ia,xni:J,nodem:W,dndt:_,nm:sa}}var Qa;(function(r){r[r.None=0]="None",r[r.MeanEccentricityOutOfRange=1]="MeanEccentricityOutOfRange",r[r.MeanMotionBelowZero=2]="MeanMotionBelowZero",r[r.PerturbedEccentricityOutOfRange=3]="PerturbedEccentricityOutOfRange",r[r.SemiLatusRectumBelowZero=4]="SemiLatusRectumBelowZero",r[r.Decayed=6]="Decayed"})(Qa||(Qa={}));function Z0(r,n){var o,v,e,t,d,s,h,m,c,l,T,f,V,G,B,E,X,k,U,u,g,K,z,w,ea,Z,O,aa=15e-13;r.t=n,r.error=Qa.None;var Q=r.mo+r.mdot*r.t,ta=r.argpo+r.argpdot*r.t,y=r.nodeo+r.nodedot*r.t;c=ta,g=Q;var ia=r.t*r.t;if(z=y+r.nodecf*ia,X=1-r.cc1*r.t,k=r.bstar*r.cc4*r.t,U=r.t2cof*ia,r.isimp!==1){h=r.omgcof*r.t;var J=1+r.eta*Math.cos(Q);s=r.xmcof*(J*J*J-r.delmo),E=h+s,g=Q+E,c=ta-E,f=ia*r.t,V=f*r.t,X=X-r.d2*ia-r.d3*f-r.d4*V,k+=r.bstar*r.cc5*(Math.sin(g)-r.sinmao),U=U+r.t3cof*f+V*(r.t4cof+r.t*r.t5cof)}K=r.no;var W=r.ecco;if(u=r.inclo,r.method==="d"){G=r.t;var sa={irez:r.irez,d2201:r.d2201,d2211:r.d2211,d3210:r.d3210,d3222:r.d3222,d4410:r.d4410,d4422:r.d4422,d5220:r.d5220,d5232:r.d5232,d5421:r.d5421,d5433:r.d5433,dedt:r.dedt,del1:r.del1,del2:r.del2,del3:r.del3,didt:r.didt,dmdt:r.dmdt,dnodt:r.dnodt,domdt:r.domdt,argpo:r.argpo,argpdot:r.argpdot,t:r.t,tc:G,gsto:r.gsto,xfact:r.xfact,xlamo:r.xlamo,no:r.no,atime:r.atime,em:W,argpm:c,inclm:u,xli:r.xli,mm:g,xni:r.xni,nodem:z,nm:K},S=ir(sa);W=S.em,c=S.argpm,u=S.inclm,g=S.mm,z=S.nodem,K=S.nm}if(K<=0)return r.error=Qa.MeanMotionBelowZero,null;var N=Math.pow(Xa/K,x0)*X*X;if(K=Xa/Math.pow(N,1.5),W-=k,W>=1||W<-.001)return r.error=Qa.MeanEccentricityOutOfRange,null;W<1e-6&&(W=1e-6),g+=r.no*U,ea=g+c+z,z%=R,c%=R,ea%=R,g=(ea-c-z)%R;var Oa={am:N,em:W,im:u,Om:z,om:c,mm:g,nm:K},ma=Math.sin(u),M=Math.cos(u),x=W;if(w=u,l=c,O=z,Z=g,t=ma,e=M,r.method==="d"){var ra={inclo:r.inclo,init:"n",ep:x,inclp:w,nodep:O,argpp:l,mp:Z,opsmode:r.operationmode},L=B0(r,ra);if(x=L.ep,O=L.nodep,l=L.argpp,Z=L.mp,w=L.inclp,w<0&&(w=-w,O+=Pa,l-=Pa),x<0||x>1)return r.error=Qa.PerturbedEccentricityOutOfRange,null}r.method==="d"&&(t=Math.sin(w),e=Math.cos(w),r.aycof=-.5*o0*t,Math.abs(e+1)>15e-13?r.xlcof=-.25*o0*t*(3+5*e)/(1+e):r.xlcof=-.25*o0*t*(3+5*e)/aa);var $=x*Math.cos(l);E=1/(N*(1-x*x));var I=x*Math.sin(l)+E*r.aycof,Aa=Z+l+O+E*r.xlcof*$,na=(Aa-O)%R;m=na,B=9999.9;for(var ca=1;Math.abs(B)>=1e-12&&ca<=10;)v=Math.sin(m),o=Math.cos(m),B=1-o*$-v*I,B=(na-I*o+$*v-m)/B,Math.abs(B)>=.95&&(B>0?B=.95:B=-.95),m+=B,ca+=1;var D=$*o+I*v,C=$*v-I*o,oa=$*$+I*I,q=N*(1-oa);if(q<0)return r.error=Qa.SemiLatusRectumBelowZero,null;var A=N*(1-D),P=Math.sqrt(N)*C/A,p=Math.sqrt(q)/A,_=Math.sqrt(1-oa);E=C/(1+_);var H=N/A*(v-I-$*E),j=N/A*(o-$+I*E);T=Math.atan2(H,j);var F=(j+j)*H,Y=1-2*H*H;E=1/q;var la=.5*n0*E,ga=la*E;r.method==="d"&&(d=e*e,r.con41=3*d-1,r.x1mth2=1-d,r.x7thm1=7*d-1);var Ma=A*(1-1.5*ga*_*r.con41)+.5*la*r.x1mth2*Y;if(Ma<1)return r.error=Qa.Decayed,null;T-=.25*ga*r.x7thm1*F;var pa=O+1.5*ga*e*F,Da=w+1.5*ga*e*t*Y,qa=P-K*la*r.x1mth2*F/Xa,a=p+K*la*(r.x1mth2*Y+1.5*r.con41)/Xa,xa=Math.sin(T),da=Math.cos(T),Ca=Math.sin(pa),Ea=Math.cos(pa),va=Math.sin(Da),fa=Math.cos(Da),ka=-Ca*fa,wa=Ea*fa,za=ka*xa+Ea*da,Ya=wa*xa+Ca*da,_a=va*xa,Ka=ka*da-Ea*xa,Fa=wa*da-Ca*xa,ba=va*da,ya={x:Ma*za*La,y:Ma*Ya*La,z:Ma*_a*La},Na={x:(qa*za+a*Ka)*C0,y:(qa*Ya+a*Fa)*C0,z:(qa*_a+a*ba)*C0};return{position:ya,velocity:Na,meanElements:Oa}}function dr(r,n){var o=n.opsmode,v=n.epoch,e=n.xbstar,t=n.xecco,d=n.xargpo,s=n.xinclo,h=n.xmo,m=n.xno,c=n.xnodeo,l,T,f,V,G,B,E,X,k,U,u,g,K,z,w,ea,Z,O,aa,Q,ta,y,ia,J,W,sa,S,N,Oa,ma,M,x,ra,L,$,I,Aa,na,ca,D,C,oa,q,A,P,p,_,H,j,F,Y,la,ga,Ma,pa,Da,qa=15e-13,a=r;a.isimp=0,a.method="n",a.aycof=0,a.con41=0,a.cc1=0,a.cc4=0,a.cc5=0,a.d2=0,a.d3=0,a.d4=0,a.delmo=0,a.eta=0,a.argpdot=0,a.omgcof=0,a.sinmao=0,a.t=0,a.t2cof=0,a.t3cof=0,a.t4cof=0,a.t5cof=0,a.x1mth2=0,a.x7thm1=0,a.mdot=0,a.nodedot=0,a.xlcof=0,a.xmcof=0,a.nodecf=0,a.irez=0,a.d2201=0,a.d2211=0,a.d3210=0,a.d3222=0,a.d4410=0,a.d4422=0,a.d5220=0,a.d5232=0,a.d5421=0,a.d5433=0,a.dedt=0,a.del1=0,a.del2=0,a.del3=0,a.didt=0,a.dmdt=0,a.dnodt=0,a.domdt=0,a.e3=0,a.ee2=0,a.peo=0,a.pgho=0,a.pho=0,a.pinco=0,a.plo=0,a.se2=0,a.se3=0,a.sgh2=0,a.sgh3=0,a.sgh4=0,a.sh2=0,a.sh3=0,a.si2=0,a.si3=0,a.sl2=0,a.sl3=0,a.sl4=0,a.gsto=0,a.xfact=0,a.xgh2=0,a.xgh3=0,a.xgh4=0,a.xh2=0,a.xh3=0,a.xi2=0,a.xi3=0,a.xl2=0,a.xl3=0,a.xl4=0,a.xlamo=0,a.zmol=0,a.zmos=0,a.atime=0,a.xli=0,a.xni=0,a.bstar=e,a.ecco=t,a.argpo=d,a.inclo=s,a.mo=h,a.no=m,a.nodeo=c,a.operationmode=o;var xa=78/La+1,da=42/La,Ca=da*da*da*da;a.init="y",a.t=0;var Ea={ecco:a.ecco,epoch:v,inclo:a.inclo,no:a.no,method:a.method,opsmode:a.operationmode},va=tr(Ea),fa=va.ao,ka=va.con42,wa=va.cosio,za=va.cosio2,Ya=va.eccsq,_a=va.omeosq,Ka=va.posq,Fa=va.rp,ba=va.rteosq,ya=va.sinio;if(a.no=va.no,a.con41=va.con41,a.gsto=va.gsto,a.a=Math.pow(a.no*R0,-2/3),a.alta=a.a*(1+a.ecco)-1,a.altp=a.a*(1-a.ecco)-1,a.error=0,_a>=0||a.no>=0){if(a.isimp=0,Fa<220/La+1&&(a.isimp=1),S=xa,ta=Ca,O=(Fa-1)*La,O<156){S=O-78,O<98&&(S=20);var Na=(120-S)/La;ta=Na*Na*Na*Na,S=S/La+1}aa=1/Ka,p=1/(fa-S),a.eta=fa*a.ecco*p,g=a.eta*a.eta,u=a.ecco*a.eta,Q=Math.abs(1-g),B=ta*Math.pow(p,4),E=B/Math.pow(Q,3.5),V=E*a.no*(fa*(1+1.5*g+u*(4+g))+.375*n0*p/Q*a.con41*(8+3*g*(8+g))),a.cc1=a.bstar*V,G=0,a.ecco>1e-4&&(G=-2*B*p*o0*a.no*ya/a.ecco),a.x1mth2=1-za,a.cc4=2*a.no*E*fa*_a*(a.eta*(2+.5*g)+a.ecco*(.5+2*g)-n0*p/(fa*Q)*(-3*a.con41*(1-2*u+g*(1.5-.5*u))+.75*a.x1mth2*(2*g-u*(1+g))*Math.cos(2*a.argpo))),a.cc5=2*E*fa*_a*(1+2.75*(g+u)+u*g),X=za*za,q=1.5*n0*aa*a.no,A=.5*q*n0*aa,P=-.46875*rr*aa*aa*a.no,a.mdot=a.no+.5*q*ba*a.con41+.0625*A*ba*(13-78*za+137*X),a.argpdot=-.5*q*ka+.0625*A*(7-114*za+395*X)+P*(3-36*za+49*X),H=-q*wa,a.nodedot=H+(.5*A*(4-19*za)+2*P*(3-7*za))*wa,_=a.argpdot+a.nodedot,a.omgcof=a.bstar*G*Math.cos(a.argpo),a.xmcof=0,a.ecco>1e-4&&(a.xmcof=-x0*B*a.bstar/u),a.nodecf=3.5*_a*H*a.cc1,a.t2cof=1.5*a.cc1,Math.abs(wa+1)>15e-13?a.xlcof=-.25*o0*ya*(3+5*wa)/(1+wa):a.xlcof=-.25*o0*ya*(3+5*wa)/qa,a.aycof=-.5*o0*ya;var Ba=1+a.eta*Math.cos(a.mo);if(a.delmo=Ba*Ba*Ba,a.sinmao=Math.sin(a.mo),a.x7thm1=7*za-1,2*Pa/a.no>=225){a.method="d",a.isimp=1,C=0,w=a.inclo;var Wa={epoch:v,ep:a.ecco,argpp:a.argpo,tc:C,inclp:a.inclo,nodep:a.nodeo,np:a.no,e3:a.e3,ee2:a.ee2,peo:a.peo,pgho:a.pgho,pho:a.pho,pinco:a.pinco,plo:a.plo,se2:a.se2,se3:a.se3,sgh2:a.sgh2,sgh3:a.sgh3,sgh4:a.sgh4,sh2:a.sh2,sh3:a.sh3,si2:a.si2,si3:a.si3,sl2:a.sl2,sl3:a.sl3,sl4:a.sl4,xgh2:a.xgh2,xgh3:a.xgh3,xgh4:a.xgh4,xh2:a.xh2,xh3:a.xh3,xi2:a.xi2,xi3:a.xi3,xl2:a.xl2,xl3:a.xl3,xl4:a.xl4,zmol:a.zmol,zmos:a.zmos},i=vr(Wa);a.e3=i.e3,a.ee2=i.ee2,a.peo=i.peo,a.pgho=i.pgho,a.pho=i.pho,a.pinco=i.pinco,a.plo=i.plo,a.se2=i.se2,a.se3=i.se3,a.sgh2=i.sgh2,a.sgh3=i.sgh3,a.sgh4=i.sgh4,a.sh2=i.sh2,a.sh3=i.sh3,a.si2=i.si2,a.si3=i.si3,a.sl2=i.sl2,a.sl3=i.sl3,a.sl4=i.sl4,T=i.sinim,l=i.cosim,k=i.em,U=i.emsq,y=i.s1,ia=i.s2,J=i.s3,W=i.s4,sa=i.s5,N=i.ss1,Oa=i.ss2,ma=i.ss3,M=i.ss4,x=i.ss5,ra=i.sz1,L=i.sz3,$=i.sz11,I=i.sz13,Aa=i.sz21,na=i.sz23,ca=i.sz31,D=i.sz33,a.xgh2=i.xgh2,a.xgh3=i.xgh3,a.xgh4=i.xgh4,a.xh2=i.xh2,a.xh3=i.xh3,a.xi2=i.xi2,a.xi3=i.xi3,a.xl2=i.xl2,a.xl3=i.xl3,a.xl4=i.xl4,a.zmol=i.zmol,a.zmos=i.zmos,Z=i.nm,j=i.z1,F=i.z3,Y=i.z11,la=i.z13,ga=i.z21,Ma=i.z23,pa=i.z31,Da=i.z33;var Ua={inclo:w,init:a.init,ep:a.ecco,inclp:a.inclo,nodep:a.nodeo,argpp:a.argpo,mp:a.mo,opsmode:a.operationmode},Sa=B0(a,Ua);a.ecco=Sa.ep,a.inclo=Sa.inclp,a.nodeo=Sa.nodep,a.argpo=Sa.argpp,a.mo=Sa.mp,K=0,z=0,ea=0;var Va={cosim:l,emsq:U,argpo:a.argpo,s1:y,s2:ia,s3:J,s4:W,s5:sa,sinim:T,ss1:N,ss2:Oa,ss3:ma,ss4:M,ss5:x,sz1:ra,sz3:L,sz11:$,sz13:I,sz21:Aa,sz23:na,sz31:ca,sz33:D,t:a.t,tc:C,gsto:a.gsto,mo:a.mo,mdot:a.mdot,no:a.no,nodeo:a.nodeo,nodedot:a.nodedot,xpidot:_,z1:j,z3:F,z11:Y,z13:la,z21:ga,z23:Ma,z31:pa,z33:Da,ecco:a.ecco,eccsq:Ya,em:k,argpm:K,inclm:w,mm:ea,nm:Z,nodem:z,irez:a.irez,atime:a.atime,d2201:a.d2201,d2211:a.d2211,d3210:a.d3210,d3222:a.d3222,d4410:a.d4410,d4422:a.d4422,d5220:a.d5220,d5232:a.d5232,d5421:a.d5421,d5433:a.d5433,dedt:a.dedt,didt:a.didt,dmdt:a.dmdt,dnodt:a.dnodt,domdt:a.domdt,del1:a.del1,del2:a.del2,del3:a.del3,xfact:a.xfact,xlamo:a.xlamo,xli:a.xli,xni:a.xni},b=er(Va);a.irez=b.irez,a.atime=b.atime,a.d2201=b.d2201,a.d2211=b.d2211,a.d3210=b.d3210,a.d3222=b.d3222,a.d4410=b.d4410,a.d4422=b.d4422,a.d5220=b.d5220,a.d5232=b.d5232,a.d5421=b.d5421,a.d5433=b.d5433,a.dedt=b.dedt,a.didt=b.didt,a.dmdt=b.dmdt,a.dnodt=b.dnodt,a.domdt=b.domdt,a.del1=b.del1,a.del2=b.del2,a.del3=b.del3,a.xfact=b.xfact,a.xlamo=b.xlamo,a.xli=b.xli,a.xni=b.xni}a.isimp!==1&&(f=a.cc1*a.cc1,a.d2=4*fa*p*f,oa=a.d2*p*a.cc1/3,a.d3=(17*fa+S)*oa,a.d4=.5*oa*fa*p*(221*fa+31*S)*a.cc1,a.t3cof=a.d2+2*f,a.t4cof=.25*(3*a.d3+a.cc1*(12*a.d2+10*f)),a.t5cof=.2*(3*a.d4+12*a.cc1*a.d3+6*a.d2*a.d2+15*f*(2*a.d2+f)))}Z0(a,0),a.init="n"}function hr(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"i",o=0,v=r.NORAD_CAT_ID.toString(),e=new Date(r.EPOCH.endsWith("Z")?r.EPOCH:r.EPOCH+"Z"),t=e.getUTCFullYear(),d=Number(t.toString().slice(-2)),s=(e.valueOf()-new Date(Date.UTC(t,0,1,0,0,0)).valueOf())/(86400*1e3)+1,h=Number(r.MEAN_MOTION_DOT),m=Number(r.MEAN_MOTION_DDOT),c=Number(r.BSTAR),l=Number(r.INCLINATION)*$a,T=Number(r.RA_OF_ASC_NODE)*$a,f=Number(r.ECCENTRICITY),V=Number(r.ARG_OF_PERICENTER)*$a,G=Number(r.MEAN_ANOMALY)*$a,B=Number(r.MEAN_MOTION)/nr,E=or(t,s),X=E.mon,k=E.day,U=E.hr,u=E.minute,g=E.sec,K=M0(t,X,k,U,u,g),z={error:o,satnum:v,epochyr:d,epochdays:s,ndot:h,nddot:m,bstar:c,inclo:l,nodeo:T,ecco:f,argpo:V,mo:G,no:B,jdsatepoch:K};return dr(z,{opsmode:n,satn:z.satnum,epoch:z.jdsatepoch-24332815e-1,xbstar:z.bstar,xecco:z.ecco,xargpo:z.argpo,xinclo:z.inclo,xmo:z.mo,xno:z.no,xnodeo:z.nodeo}),z}function P0(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),v=1;v<n;v++)o[v-1]=arguments[v];var e=M0.apply(void 0,o),t=(e-r.jdsatepoch)*V0;return Z0(r,t)}function _0(r){return r*$a}function k0(r){var n=r.longitude,o=r.latitude,v=r.height,e=6378.137,t=6356.7523142,d=(e-t)/e,s=2*d-d*d,h=e/Math.sqrt(1-s*(Math.sin(o)*Math.sin(o))),m=(h+v)*Math.cos(o)*Math.cos(n),c=(h+v)*Math.cos(o)*Math.sin(n),l=(h*(1-s)+v)*Math.sin(o);return{x:m,y:c,z:l}}function sr(r,n){var o=r.x*Math.cos(n)-r.y*Math.sin(n),v=r.x*Math.sin(n)+r.y*Math.cos(n),e=r.z;return{x:o,y:v,z:e}}function F0(r,n){var o=r.x*Math.cos(n)+r.y*Math.sin(n),v=r.x*-Math.sin(n)+r.y*Math.cos(n),e=r.z;return{x:o,y:v,z:e}}function mr(r,n){var o=r.longitude,v=r.latitude,e=k0(r),t=n.x-e.x,d=n.y-e.y,s=n.z-e.z,h=Math.sin(v)*Math.cos(o)*t+Math.sin(v)*Math.sin(o)*d-Math.cos(v)*s,m=-Math.sin(o)*t+Math.cos(o)*d,c=Math.cos(v)*Math.cos(o)*t+Math.cos(v)*Math.sin(o)*d+Math.sin(v)*s;return{topS:h,topE:m,topZ:c}}function cr(r){var n=r.topS,o=r.topE,v=r.topZ,e=Math.sqrt(n*n+o*o+v*v),t=Math.asin(v/e),d=Math.atan2(-o,n)+Pa;return{azimuth:d,elevation:t,rangeSat:e}}function b0(r,n){var o=mr(r,n);return cr(o)}function gr(r){var n=(r-2451545)/36525,o=(280.46+36000.77*n)%360,v=n,e=(357.5277233+35999.05034*v*$a)%R;e<0&&(e+=R);var t=(o+1.914666471*Math.sin(e)+.019994643*Math.sin(2*e))%360*$a,d=(23.439291-.0130042*v)*$a,s=1.000140612-.016708617*Math.cos(e)-139589e-9*Math.cos(2*e),h=[s*Math.cos(t),s*Math.cos(d)*Math.sin(t),s*Math.sin(d)*Math.sin(t)],m=Math.atan(Math.cos(d)*Math.tan(t)),c=m;Math.abs(t-c)>Pa*.5&&(c+=.5*Pa*Math.round((t-m)/(.5*Pa)));var l=Math.asin(Math.sin(d)*Math.sin(t));return{rsun:h,rtasc:c,decl:l}}class Ja{static STARLINK_ERAS=[{launchedFrom:"2019-05-24",magnitude1000Km:5.93},{launchedFrom:"2020-08-07",magnitude1000Km:7.21}];static STARLINK_ORBIT_RAISING={belowKm:357,magnitude1000Km:4.58};static MEASURED_CONSTELLATIONS=[{namePrefix:"ONEWEB-",eras:[{launchedFrom:"2019-02-27",magnitude1000Km:7.18}]},{namePrefix:"SPACEMOBILE-",eras:[{launchedFrom:"2024-09-12",magnitude1000Km:3.77},{launchedFrom:"2025-12-24",magnitude1000Km:4.32}]}];static of(n,o,v,e,t=1/0){if(e<=0)return;let d;if(n.stdMag!==void 0){const s=(1+Math.cos(_0(v)))/2;if(s<=0)return;d=n.stdMag-15.75+2.5*Math.log10(o*o/s)}else{const s=Ja.measured1000Km(n,t);s!==void 0&&(d=s+5*Math.log10(o/1e3))}return d===void 0?void 0:d-2.5*Math.log10(e)}static measured1000Km(n,o=1/0){if(n.kind==="starlink"){const e=Ja.STARLINK_ORBIT_RAISING;return o<e.belowKm?e.magnitude1000Km:Ja.starlinkMagnitude1000Km(n.launch)}const v=Ja.MEASURED_CONSTELLATIONS.find(e=>n.name.startsWith(e.namePrefix));return v?Ja.eraOf(v.eras,n.launch):void 0}static starlinkMagnitude1000Km(n){return Ja.eraOf(Ja.STARLINK_ERAS,n)}static eraOf(n,o){return([...n].reverse().find(e=>o!==void 0&&o>=e.launchedFrom)??n[n.length-1]).magnitude1000Km}}class r0{static CANDIDATE_WINDOW_S=60;static CANDIDATE_BELOW_HORIZON_DEG=-10;records;candidates;constructor(n){this.records=[];for(const o of n){const v=r0.satrecOf(o);v&&this.records.push({object:o,satrec:v})}}get size(){return this.records.length}static satrecOf(n){const o=n.elements;try{const v=hr({OBJECT_NAME:n.name,OBJECT_ID:String(n.norad),EPOCH:new Date(o.epochMs).toISOString().replace("Z",""),MEAN_MOTION:o.meanMotion,ECCENTRICITY:o.eccentricity,INCLINATION:o.inclinationDeg,RA_OF_ASC_NODE:o.raanDeg,ARG_OF_PERICENTER:o.argOfPerigeeDeg,MEAN_ANOMALY:o.meanAnomalyDeg,NORAD_CAT_ID:n.norad,ELEMENT_SET_NO:999,BSTAR:o.bstar,MEAN_MOTION_DOT:0,MEAN_MOTION_DDOT:0});return v.error?void 0:v}catch{return}}positionsAt(n,o,v=0){const e=this.frameAt(n,o),t=[];for(const d of this.candidateIndices(n,o)){const s=this.positionOf(this.records[d],n,e);s&&s.altitudeDeg>=v&&t.push(s)}return t}passesDuring(n,o,v,e=10){const t=[],d=new Map;for(let s=n.getTime();s<=o.getTime();s+=e*1e3){const h=new Date(s);for(const m of this.positionsAt(h,v)){if(m.sunlitFraction<=0)continue;const c=d.get(m.object.norad);if(!c||s-c.end.getTime()>e*1e3){const l={object:m.object,start:h,end:h,peak:{...m,date:h}};d.set(m.object.norad,l),t.push(l);continue}c.end=h,r0.outshines(m,c.peak)&&(c.peak={...m,date:h})}}return t}static outshines(n,o){return n.magnitude!==void 0&&o.magnitude!==void 0?n.magnitude<o.magnitude:n.magnitude!==void 0?!0:o.magnitude!==void 0?!1:n.altitudeDeg>o.altitudeDeg}frameAt(n,o){const v=U0(n),e={latitude:_0(o.lat),longitude:_0(o.lng),height:o.elevationM/1e3},t=sr(k0(e),v),[d,s,h]=gr(M0(n)).rsun;return{gmst:v,geodetic:e,observerEci:t,sunEciAu:{x:d,y:s,z:h}}}positionOf(n,o,v){const e=P0(n.satrec,o);if(!e||!e.position||Number.isNaN(e.position.x))return;const t=e.position,d=b0(v.geodetic,F0(t,v.gmst)),s=1-r0.shadowFraction(t,v.sunEciAu),h=r0.phaseAngleDeg(t,v.sunEciAu,v.observerEci),m=Math.hypot(t.x,t.y,t.z)-6371;return{object:n.object,azimuthDeg:d.azimuth*180/Math.PI,altitudeDeg:d.elevation*180/Math.PI,rangeKm:d.rangeSat,heightKm:m,sunlitFraction:s,phaseAngleDeg:h,magnitude:Ja.of(n.object,d.rangeSat,h,s,m)}}static shadowFraction(n,o){const v=1495978707e-1,e=696e3,t=6378.137,d=[o.x*v-n.x,o.y*v-n.y,o.z*v-n.z],s=Math.hypot(d[0],d[1],d[2]),h=Math.hypot(n.x,n.y,n.z),m=Math.asin(Math.min(1,e/s)),c=Math.asin(Math.min(1,t/h)),l=-(n.x*d[0]+n.y*d[1]+n.z*d[2])/(h*s),T=Math.acos(Math.max(-1,Math.min(1,l)));if(T>=m+c)return 0;if(T<=c-m)return 1;const f=(T*T+m*m-c*c)/(2*T),V=Math.sqrt(Math.max(0,m*m-f*f)),G=m*m*Math.acos(Math.max(-1,Math.min(1,f/m)))+c*c*Math.acos(Math.max(-1,Math.min(1,(T-f)/c)))-T*V;return Math.min(1,Math.max(0,G/(Math.PI*m*m)))}static phaseAngleDeg(n,o,v){const e=1495978707e-1,t=[o.x*e-n.x,o.y*e-n.y,o.z*e-n.z],d=[v.x-n.x,v.y-n.y,v.z-n.z],h=(t[0]*d[0]+t[1]*d[1]+t[2]*d[2])/(Math.hypot(t[0],t[1],t[2])*Math.hypot(d[0],d[1],d[2]));return Math.acos(Math.max(-1,Math.min(1,h)))*180/Math.PI}candidateIndices(n,o){const v=r0.CANDIDATE_WINDOW_S*1e3,e=Math.floor(n.getTime()/v)*v,t=`${o.lat.toFixed(2)},${o.lng.toFixed(2)}`;if(this.candidates?.windowStart===e&&this.candidates.observerKey===t)return this.candidates.indices;const d=new Date(e+v/2),s=this.frameAt(d,o),h=[];return this.records.forEach((m,c)=>{const l=P0(m.satrec,d);if(!l||!l.position||Number.isNaN(l.position.x))return;b0(s.geodetic,F0(l.position,s.gmst)).elevation*180/Math.PI>=r0.CANDIDATE_BELOW_HORIZON_DEG&&h.push(c)}),this.candidates={windowStart:e,observerKey:t,indices:h},h}}export{Ja as SatelliteMagnitude,r0 as SatellitePasses};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{V as t,D as a}from"./VisualAids-DI-hEL46.js";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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{V as a,D as o}from"./VisualAids-DI-hEL46.js";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};
|