@rr0/ufoathome 0.200.0 → 0.201.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-embed-interview/InterviewMessages_en-BRmuWrAg.js +1 -0
- package/dist-embed-interview/InterviewMessages_es-BTotimwY.js +1 -0
- package/dist-embed-interview/InterviewMessages_fr-DBCdGB0r.js +1 -0
- package/dist-embed-interview/InterviewMessages_it-B5EyMD-k.js +1 -0
- package/dist-embed-interview/rr0-interview.mjs +1 -1
- package/dist-embed-scene/{AirshipEditor-B0RloPOv.js → AirshipEditor-BnRmKeVs.js} +1 -1
- package/dist-embed-scene/{AirshipFlight-D6tC26P5.js → AirshipFlight-C9DSPGwk.js} +1 -1
- package/dist-embed-scene/Aurora-BmVyTP6i.js +1 -0
- package/dist-embed-scene/AuroraEditor-CN6BQMUW.js +8 -0
- package/dist-embed-scene/AuroraEditorMessages_en-CpU3BS-B.js +1 -0
- package/dist-embed-scene/AuroraEditorMessages_es-i8-psDHN.js +1 -0
- package/dist-embed-scene/AuroraEditorMessages_fr-0DtPXXAs.js +1 -0
- package/dist-embed-scene/AuroraEditorMessages_it-Dn2UHyk9.js +1 -0
- package/dist-embed-scene/AuroraKindMessages_en-D_W4giJa.js +1 -0
- package/dist-embed-scene/AuroraKindMessages_es-jJ5_ltZq.js +1 -0
- package/dist-embed-scene/AuroraKindMessages_fr-6IzUVbRH.js +1 -0
- package/dist-embed-scene/AuroraKindMessages_it-DcwuoMkp.js +1 -0
- package/dist-embed-scene/AuroraParameterTexts_en-shkUd-dT.js +1 -0
- package/dist-embed-scene/AuroraParameterTexts_es-CwGYyafK.js +1 -0
- package/dist-embed-scene/AuroraParameterTexts_fr-CoJnicWs.js +1 -0
- package/dist-embed-scene/AuroraParameterTexts_it-DHniBj_2.js +1 -0
- package/dist-embed-scene/AuroraSimulation-BZpjImM0.js +152 -0
- package/dist-embed-scene/{BalloonEditor-D1b8pmSn.js → BalloonEditor-BehJs6H-.js} +2 -2
- package/dist-embed-scene/{BalloonFlight-D015vbBe.js → BalloonFlight-BYn4diw1.js} +1 -1
- package/dist-embed-scene/BeamSystem-DtRwoKHP.js +1 -0
- package/dist-embed-scene/{BirdEditor-CxGMe4UD.js → BirdEditor-dOp1sGsz.js} +1 -1
- package/dist-embed-scene/{BirdFlock-D2mckZ_l.js → BirdFlock-CfJeXvWu.js} +1 -1
- package/dist-embed-scene/{DroneEditor-BNGmR5II.js → DroneEditor-CBoR4fJ_.js} +1 -1
- package/dist-embed-scene/{DroneFlight-DKHsNqDw.js → DroneFlight-DSE1OXqh.js} +1 -1
- package/dist-embed-scene/{DroneParameters-Bq6XBchK.js → DroneParameters-D3EOg4oe.js} +1 -1
- package/dist-embed-scene/{LanternEditor-FU0WHV3j.js → LanternEditor-CbcA7K8y.js} +2 -2
- package/dist-embed-scene/ModuleSession-XnOI5Mcr.js +3 -0
- package/dist-embed-scene/ModuleThree-BTQgimAj.js +1 -0
- package/dist-embed-scene/SearchlightEditor-CogwU9pl.js +8 -0
- package/dist-embed-scene/SearchlightEditorMessages_en-BWTcGHYC.js +1 -0
- package/dist-embed-scene/SearchlightEditorMessages_es-PS4IIWFS.js +1 -0
- package/dist-embed-scene/SearchlightEditorMessages_fr-CpaD2Il2.js +1 -0
- package/dist-embed-scene/SearchlightEditorMessages_it-Br2IjowF.js +1 -0
- package/dist-embed-scene/SearchlightKindMessages_en-CwJDAjsc.js +1 -0
- package/dist-embed-scene/SearchlightKindMessages_es-CCCgZyTQ.js +1 -0
- package/dist-embed-scene/SearchlightKindMessages_fr-DsxiUhmK.js +1 -0
- package/dist-embed-scene/SearchlightKindMessages_it-CyWpJL5c.js +1 -0
- package/dist-embed-scene/SearchlightParameterTexts_en-BwanYoMW.js +1 -0
- package/dist-embed-scene/SearchlightParameterTexts_es-Cz_rg-Xe.js +1 -0
- package/dist-embed-scene/SearchlightParameterTexts_fr-B7eZQIdG.js +1 -0
- package/dist-embed-scene/SearchlightParameterTexts_it-BjhuOJre.js +1 -0
- package/dist-embed-scene/SearchlightSystem-CX1_nBkz.js +1 -0
- package/dist-embed-scene/{SkyLantern-a9qLkbZo.js → SkyLantern-Dp_B40X0.js} +1 -1
- package/dist-embed-scene/rr0-scene.mjs +397 -322
- package/dist-embed-scene/sightingSchema-9MogCcUd.js +1 -0
- package/dist-embed-sighting/Aurora-DN89D94m.js +1 -0
- package/dist-embed-sighting/AuroraEditor-C4tY9hXK.js +8 -0
- package/dist-embed-sighting/AuroraEditorMessages_en-CpU3BS-B.js +1 -0
- package/dist-embed-sighting/AuroraEditorMessages_es-i8-psDHN.js +1 -0
- package/dist-embed-sighting/AuroraEditorMessages_fr-0DtPXXAs.js +1 -0
- package/dist-embed-sighting/AuroraEditorMessages_it-Dn2UHyk9.js +1 -0
- package/dist-embed-sighting/AuroraKindMessages_en-D_W4giJa.js +1 -0
- package/dist-embed-sighting/AuroraKindMessages_es-jJ5_ltZq.js +1 -0
- package/dist-embed-sighting/AuroraKindMessages_fr-6IzUVbRH.js +1 -0
- package/dist-embed-sighting/AuroraKindMessages_it-DcwuoMkp.js +1 -0
- package/dist-embed-sighting/AuroraParameterTexts_en-shkUd-dT.js +1 -0
- package/dist-embed-sighting/AuroraParameterTexts_es-CwGYyafK.js +1 -0
- package/dist-embed-sighting/AuroraParameterTexts_fr-CoJnicWs.js +1 -0
- package/dist-embed-sighting/AuroraParameterTexts_it-DHniBj_2.js +1 -0
- package/dist-embed-sighting/AuroraSimulation-C9hvCV0W.js +152 -0
- package/dist-embed-sighting/BeamSystem-CsNwl_vM.js +1 -0
- package/dist-embed-sighting/{CaseReportExport-B13vvVvn.js → CaseReportExport-DVVsc8gA.js} +1 -1
- package/dist-embed-sighting/InterviewMessages_en-BRmuWrAg.js +1 -0
- package/dist-embed-sighting/InterviewMessages_es-BTotimwY.js +1 -0
- package/dist-embed-sighting/InterviewMessages_fr-DBCdGB0r.js +1 -0
- package/dist-embed-sighting/InterviewMessages_it-B5EyMD-k.js +1 -0
- package/dist-embed-sighting/ModuleSession-ChJsGuTn.js +3 -0
- package/dist-embed-sighting/ModuleThree-whEZoXYF.js +1 -0
- package/dist-embed-sighting/SearchlightEditor-By5Z3ef7.js +8 -0
- package/dist-embed-sighting/SearchlightEditorMessages_en-BWTcGHYC.js +1 -0
- package/dist-embed-sighting/SearchlightEditorMessages_es-PS4IIWFS.js +1 -0
- package/dist-embed-sighting/SearchlightEditorMessages_fr-CpaD2Il2.js +1 -0
- package/dist-embed-sighting/SearchlightEditorMessages_it-Br2IjowF.js +1 -0
- package/dist-embed-sighting/SearchlightKindMessages_en-CwJDAjsc.js +1 -0
- package/dist-embed-sighting/SearchlightKindMessages_es-CCCgZyTQ.js +1 -0
- package/dist-embed-sighting/SearchlightKindMessages_fr-DsxiUhmK.js +1 -0
- package/dist-embed-sighting/SearchlightKindMessages_it-CyWpJL5c.js +1 -0
- package/dist-embed-sighting/SearchlightParameterTexts_en-BwanYoMW.js +1 -0
- package/dist-embed-sighting/SearchlightParameterTexts_es-Cz_rg-Xe.js +1 -0
- package/dist-embed-sighting/SearchlightParameterTexts_fr-B7eZQIdG.js +1 -0
- package/dist-embed-sighting/SearchlightParameterTexts_it-BjhuOJre.js +1 -0
- package/dist-embed-sighting/SearchlightSystem-B2-MzG4x.js +1 -0
- package/dist-embed-sighting/{SightingMessages_en-sch1T1ki.js → SightingMessages_en-D3YVhgUj.js} +1 -1
- package/dist-embed-sighting/{SightingMessages_es-DemDEDtF.js → SightingMessages_es-ME6FeTp-.js} +1 -1
- package/dist-embed-sighting/{SightingMessages_fr-DskVkEj0.js → SightingMessages_fr-BgXYuIq4.js} +1 -1
- package/dist-embed-sighting/{SightingMessages_it-CrbYpdv8.js → SightingMessages_it-DcE90eAl.js} +1 -1
- package/dist-embed-sighting/rr0-sighting.mjs +412 -337
- package/dist-embed-sighting/sightingSchema-9MogCcUd.js +1 -0
- package/dist-embed-sighting-editor/{AdsbLolArchiveProvider-BqEnqRP0.js → AdsbLolArchiveProvider-CWpyBqG3.js} +1 -1
- package/dist-embed-sighting-editor/AirshipEditor-BvnVNcF4.js +16 -0
- package/dist-embed-sighting-editor/{AirshipFlight-Bh7J0sWg.js → AirshipFlight-CB1Quf68.js} +1 -1
- package/dist-embed-sighting-editor/Aurora-BRXvgyRM.js +1 -0
- package/dist-embed-sighting-editor/AuroraEditor-JQ3kRqrq.js +8 -0
- package/dist-embed-sighting-editor/AuroraEditorMessages_en-CpU3BS-B.js +1 -0
- package/dist-embed-sighting-editor/AuroraEditorMessages_es-i8-psDHN.js +1 -0
- package/dist-embed-sighting-editor/AuroraEditorMessages_fr-0DtPXXAs.js +1 -0
- package/dist-embed-sighting-editor/AuroraEditorMessages_it-Dn2UHyk9.js +1 -0
- package/dist-embed-sighting-editor/AuroraKindMessages_en-D_W4giJa.js +1 -0
- package/dist-embed-sighting-editor/AuroraKindMessages_es-jJ5_ltZq.js +1 -0
- package/dist-embed-sighting-editor/AuroraKindMessages_fr-6IzUVbRH.js +1 -0
- package/dist-embed-sighting-editor/AuroraKindMessages_it-DcwuoMkp.js +1 -0
- package/dist-embed-sighting-editor/AuroraParameterTexts_en-shkUd-dT.js +1 -0
- package/dist-embed-sighting-editor/AuroraParameterTexts_es-CwGYyafK.js +1 -0
- package/dist-embed-sighting-editor/AuroraParameterTexts_fr-CoJnicWs.js +1 -0
- package/dist-embed-sighting-editor/AuroraParameterTexts_it-DHniBj_2.js +1 -0
- package/dist-embed-sighting-editor/AuroraSimulation-i64MFW2z.js +152 -0
- package/dist-embed-sighting-editor/{BallesterGuaspAssessor-BNfSwq_l.js → BallesterGuaspAssessor-BaKKAdY3.js} +1 -1
- package/dist-embed-sighting-editor/BalloonEditor-C2oHClW7.js +24 -0
- package/dist-embed-sighting-editor/{BalloonFlight-DqwGZzum.js → BalloonFlight-B9A6MoCj.js} +1 -1
- package/dist-embed-sighting-editor/{BeamEditor-C9VQ2YBN.js → BeamEditor-CW7mTQjS.js} +1 -1
- package/dist-embed-sighting-editor/BeamSystem-CSfJjLCb.js +1 -0
- package/dist-embed-sighting-editor/BirdEditor-BdxhCoW9.js +16 -0
- package/dist-embed-sighting-editor/{BirdFlock-TI63ZAKZ.js → BirdFlock-DCbrukNp.js} +1 -1
- package/dist-embed-sighting-editor/{BodyEditor-COLTBHzX.js → BodyEditor-DE8ZQrqe.js} +1 -1
- package/dist-embed-sighting-editor/{CaseElement-D_ItKhFD.js → CaseElement-C46wM-nU.js} +3 -3
- package/dist-embed-sighting-editor/{CaseReportExport-BSLhYJJA.js → CaseReportExport-UVrInf6H.js} +3 -3
- package/dist-embed-sighting-editor/{ContrailSystem-C8K88Cwo.js → ContrailSystem-CDSSxouG.js} +1 -1
- package/dist-embed-sighting-editor/{ControlPasses-DNMyuRwb.js → ControlPasses-CsOVa-jq.js} +1 -1
- package/dist-embed-sighting-editor/{CoverageAssessor-p-LX-eEi.js → CoverageAssessor-DWY_gJJX.js} +1 -1
- package/dist-embed-sighting-editor/{DroneEditor-v0oaeAUh.js → DroneEditor-DgeuaHdb.js} +1 -1
- package/dist-embed-sighting-editor/{DroneFlight-BpnBgJ9K.js → DroneFlight-CFztr-9j.js} +1 -1
- package/dist-embed-sighting-editor/{DroneParameters-B1oTz3dZ.js → DroneParameters-CHmDmRoC.js} +1 -1
- package/dist-embed-sighting-editor/{Flightradar24Provider-D5OdIL0L.js → Flightradar24Provider-e6_3o9Jf.js} +1 -1
- package/dist-embed-sighting-editor/{GLTFLoader-DT3hr416.js → GLTFLoader-Df-r7_lf.js} +1 -1
- package/dist-embed-sighting-editor/{GenerativeKitMessages-B8L7U7gD.js → GenerativeKitMessages-CmqG-T2c.js} +1 -1
- package/dist-embed-sighting-editor/{GeoExportTexts-DrGdI2OF.js → GeoExportTexts-Wjc5YKlM.js} +1 -1
- package/dist-embed-sighting-editor/{GeoJsonExport-BZ-0v8fM.js → GeoJsonExport-BSPGzTbG.js} +1 -1
- package/dist-embed-sighting-editor/GeographicFigures-D_TfLkj9.js +1 -0
- package/dist-embed-sighting-editor/{HeadlightSystem-DHoSdTng.js → HeadlightSystem-DljWmzj5.js} +1 -1
- package/dist-embed-sighting-editor/{HynekAssessor-ByXW15nZ.js → HynekAssessor-BCDwoOI9.js} +1 -1
- package/dist-embed-sighting-editor/InterviewEditorElement-KHpgfy3k.js +277 -0
- package/dist-embed-sighting-editor/{InterviewElement-B3tm7y49.js → InterviewElement-DDa53uMq.js} +1 -1
- package/dist-embed-sighting-editor/InterviewMedia-CGVsMdje.js +1 -0
- package/dist-embed-sighting-editor/InterviewMessages_en-BRmuWrAg.js +1 -0
- package/dist-embed-sighting-editor/InterviewMessages_es-BTotimwY.js +1 -0
- package/dist-embed-sighting-editor/InterviewMessages_fr-DBCdGB0r.js +1 -0
- package/dist-embed-sighting-editor/InterviewMessages_it-B5EyMD-k.js +1 -0
- package/dist-embed-sighting-editor/{KmlExport-Bh4eTycx.js → KmlExport-B46AfaoJ.js} +1 -1
- package/dist-embed-sighting-editor/LanternEditor-CkbeitJh.js +24 -0
- package/dist-embed-sighting-editor/{LaserBeam-iHLKAi5q.js → LaserBeam-Ber-PT8j.js} +1 -1
- package/dist-embed-sighting-editor/LaunchEditor-BsvHahqK.js +22 -0
- package/dist-embed-sighting-editor/{LaunchPlume-BJwW1kU1.js → LaunchPlume-BmPMeGMN.js} +1 -1
- package/dist-embed-sighting-editor/LaunchSimulation-g-ETWhEH.js +1 -0
- package/dist-embed-sighting-editor/ModelSource-DOUnBBhu.js +1 -0
- package/dist-embed-sighting-editor/{ModelThumbnails-C_8KCF7H.js → ModelThumbnails-TwG1snwZ.js} +1 -1
- package/dist-embed-sighting-editor/{ModelViewer-Cy-6IZBY.js → ModelViewer-Y_B6eM4z.js} +1 -1
- package/dist-embed-sighting-editor/ModuleConformance-CO1S9pa3.js +2 -0
- package/dist-embed-sighting-editor/ModuleSession-VLS0tjAb.js +3 -0
- package/dist-embed-sighting-editor/ModuleThree-DQ2dT7XW.js +1 -0
- package/dist-embed-sighting-editor/{ModulesPanelElement-B9R5rI0T.js → ModulesPanelElement--YQ0QtcW.js} +3 -3
- package/dist-embed-sighting-editor/{NearestApproach-pefE2Svz.js → NearestApproach-C_8Uvp6i.js} +1 -1
- package/dist-embed-sighting-editor/PictureRegistration-Br0xjLE2.js +1 -0
- package/dist-embed-sighting-editor/{PoherAssessor-BEiAV-7m.js → PoherAssessor-DtDcuhWK.js} +1 -1
- package/dist-embed-sighting-editor/QuestionnaireFeed-CvLtuLIH.js +1 -0
- package/dist-embed-sighting-editor/QuestionnaireForm-DA6LPvBt.js +1 -0
- package/dist-embed-sighting-editor/QuestionnaireImport-BYj5QoJS.js +5 -0
- package/dist-embed-sighting-editor/QuestionnaireSeal-DpZYUhnf.js +1 -0
- package/dist-embed-sighting-editor/{RailwaySystem-7A12KSnk.js → RailwaySystem-eT-ZKfZl.js} +1 -1
- package/dist-embed-sighting-editor/ReentryEditor-CW8H7KaA.js +28 -0
- package/dist-embed-sighting-editor/{ReentrySimulation-PK2Z7Smw.js → ReentrySimulation-DVl__RjO.js} +1 -1
- package/dist-embed-sighting-editor/{ReferenceSystem-Bt7l5nHl.js → ReferenceSystem-DxVYO7g9.js} +1 -1
- package/dist-embed-sighting-editor/{RoadMarkings-BGK7ToZP.js → RoadMarkings-DJraHdS6.js} +1 -1
- package/dist-embed-sighting-editor/ScenarioReadings-BYqlpLo8.js +1 -0
- package/dist-embed-sighting-editor/ScenarioSweep-Ddtuo_Af.js +1 -0
- package/dist-embed-sighting-editor/ScenarioSweepMessages_en-Bf4BscDU.js +1 -0
- package/dist-embed-sighting-editor/ScenarioSweepMessages_es-CBHQfuRB.js +1 -0
- package/dist-embed-sighting-editor/ScenarioSweepMessages_fr-DlPsO6oI.js +1 -0
- package/dist-embed-sighting-editor/ScenarioSweepMessages_it-DANW3_la.js +1 -0
- package/dist-embed-sighting-editor/{SceneNames_en-9zK_E4jO.js → SceneNames_en-p5YNYZhA.js} +1 -1
- package/dist-embed-sighting-editor/{SceneNames_es-B6FtSh6r.js → SceneNames_es-DlMqYLL9.js} +1 -1
- package/dist-embed-sighting-editor/{SceneNames_fr-lUEwaxUk.js → SceneNames_fr-lFA7hY3x.js} +1 -1
- package/dist-embed-sighting-editor/{SceneNames_it-ChU8RE2E.js → SceneNames_it-CDwvX1Nw.js} +1 -1
- package/dist-embed-sighting-editor/SearchlightEditor-BSI8hB1V.js +8 -0
- package/dist-embed-sighting-editor/SearchlightEditorMessages_en-BWTcGHYC.js +1 -0
- package/dist-embed-sighting-editor/SearchlightEditorMessages_es-PS4IIWFS.js +1 -0
- package/dist-embed-sighting-editor/SearchlightEditorMessages_fr-CpaD2Il2.js +1 -0
- package/dist-embed-sighting-editor/SearchlightEditorMessages_it-Br2IjowF.js +1 -0
- package/dist-embed-sighting-editor/SearchlightKindMessages_en-CwJDAjsc.js +1 -0
- package/dist-embed-sighting-editor/SearchlightKindMessages_es-CCCgZyTQ.js +1 -0
- package/dist-embed-sighting-editor/SearchlightKindMessages_fr-DsxiUhmK.js +1 -0
- package/dist-embed-sighting-editor/SearchlightKindMessages_it-CyWpJL5c.js +1 -0
- package/dist-embed-sighting-editor/SearchlightParameterTexts_en-BwanYoMW.js +1 -0
- package/dist-embed-sighting-editor/SearchlightParameterTexts_es-Cz_rg-Xe.js +1 -0
- package/dist-embed-sighting-editor/SearchlightParameterTexts_fr-B7eZQIdG.js +1 -0
- package/dist-embed-sighting-editor/SearchlightParameterTexts_it-BjhuOJre.js +1 -0
- package/dist-embed-sighting-editor/SearchlightSystem-DHfVi2np.js +1 -0
- package/dist-embed-sighting-editor/{SightingEditorMessages_en-CtZXoBSS.js → SightingEditorMessages_en-k7_ua2OM.js} +1 -1
- package/{dist-embed-ufoathome/SightingEditorMessages_es-CKXlDIja.js → dist-embed-sighting-editor/SightingEditorMessages_es-Drqbbr5_.js} +1 -1
- package/dist-embed-sighting-editor/{SightingEditorMessages_fr-DjP6vAKo.js → SightingEditorMessages_fr-B_K5hsuV.js} +1 -1
- package/{dist-embed-ufoathome/SightingEditorMessages_it-CxtFzCzo.js → dist-embed-sighting-editor/SightingEditorMessages_it-QCLg1d7x.js} +1 -1
- package/dist-embed-sighting-editor/{SightingElement-BpRRhJzS.js → SightingElement-T0x4j9Zt.js} +4 -4
- package/dist-embed-sighting-editor/{SightingFileEditor-B7GimING.js → SightingFileEditor-Du3A9uZm.js} +1 -1
- package/dist-embed-sighting-editor/{SightingMessages_en-CYzanHjT.js → SightingMessages_en-CzICxNU3.js} +1 -1
- package/dist-embed-sighting-editor/{SightingMessages_es-hjvESK6f.js → SightingMessages_es-CiVFZlgA.js} +1 -1
- package/dist-embed-sighting-editor/{SightingMessages_fr-BtfWbIP7.js → SightingMessages_fr-nopOVDa1.js} +1 -1
- package/dist-embed-sighting-editor/{SightingMessages_it-Bqm4pewZ.js → SightingMessages_it-Cu0nnPts.js} +1 -1
- package/dist-embed-sighting-editor/{SkyLantern-BDpxvmY3.js → SkyLantern-Dl4yl-lc.js} +1 -1
- package/dist-embed-sighting-editor/{TraceSystem-JWQpvSdA.js → TraceSystem-Dbu_bgfE.js} +2 -2
- package/dist-embed-sighting-editor/{UfoMessages_en-JeMK-39o.js → UfoMessages_en-BAuHAGgq.js} +1 -1
- package/dist-embed-sighting-editor/{VideoButton-Kxg7pF1Y.js → VideoButton-C8eRmv7A.js} +1 -1
- package/dist-embed-sighting-editor/{WaterSystem-DwGepfDm.js → WaterSystem-DpJCe_2Q.js} +2 -2
- package/dist-embed-sighting-editor/angular-size-CxoysZle.png +0 -0
- package/dist-embed-sighting-editor/azimuth-CvjiPmz0.png +0 -0
- package/dist-embed-sighting-editor/caseSchema-BEJTs2Ld.js +1 -0
- package/dist-embed-sighting-editor/elevation-DPr5S6Jt.png +0 -0
- package/dist-embed-sighting-editor/geipan-qt-2025-j-yGY7EN.js +7 -0
- package/dist-embed-sighting-editor/{interviewImport-BlSMFEw_.js → interviewImport-zzDGCbXd.js} +1 -1
- package/dist-embed-sighting-editor/{interviewJson-CsMHIcZ-.js → interviewJson-DngUPqK8.js} +1 -1
- package/dist-embed-sighting-editor/interviewSchema-DRWvRSL2.js +1 -0
- package/dist-embed-sighting-editor/protractor-DyE30B87.png +0 -0
- package/dist-embed-sighting-editor/rr0-sighting-editor.mjs +522 -422
- package/dist-embed-sighting-editor/sightingSchema-9MogCcUd.js +1 -0
- package/dist-embed-sighting-editor/{surroundingsSources-z7680fTA.js → surroundingsSources-lvh4Rw5C.js} +1 -1
- package/dist-embed-sighting-editor/{trafficRuntime-CvK_m6bC.js → trafficRuntime-Drx7CE9H.js} +1 -1
- package/dist-embed-ufoathome/AdsbLolArchiveProvider-CqedGYi5.js +1 -0
- package/dist-embed-ufoathome/AirshipEditor-CBSrQM3J.js +16 -0
- package/dist-embed-ufoathome/{AirshipFlight-CX32XrkA.js → AirshipFlight-Dzpw8HRM.js} +1 -1
- package/dist-embed-ufoathome/Aurora-CpZx9hQ3.js +1 -0
- package/dist-embed-ufoathome/AuroraEditor-D2v8sWVE.js +8 -0
- package/dist-embed-ufoathome/AuroraEditorMessages_en-CpU3BS-B.js +1 -0
- package/dist-embed-ufoathome/AuroraEditorMessages_es-i8-psDHN.js +1 -0
- package/dist-embed-ufoathome/AuroraEditorMessages_fr-0DtPXXAs.js +1 -0
- package/dist-embed-ufoathome/AuroraEditorMessages_it-Dn2UHyk9.js +1 -0
- package/dist-embed-ufoathome/AuroraKindMessages_en-D_W4giJa.js +1 -0
- package/dist-embed-ufoathome/AuroraKindMessages_es-jJ5_ltZq.js +1 -0
- package/dist-embed-ufoathome/AuroraKindMessages_fr-6IzUVbRH.js +1 -0
- package/dist-embed-ufoathome/AuroraKindMessages_it-DcwuoMkp.js +1 -0
- package/dist-embed-ufoathome/AuroraParameterTexts_en-shkUd-dT.js +1 -0
- package/dist-embed-ufoathome/AuroraParameterTexts_es-CwGYyafK.js +1 -0
- package/dist-embed-ufoathome/AuroraParameterTexts_fr-CoJnicWs.js +1 -0
- package/dist-embed-ufoathome/AuroraParameterTexts_it-DHniBj_2.js +1 -0
- package/dist-embed-ufoathome/AuroraSimulation-DdSP66LD.js +152 -0
- package/dist-embed-ufoathome/BallesterGuaspAssessor-C4IktJ1l.js +1 -0
- package/dist-embed-ufoathome/BalloonEditor-dCIjTsIz.js +24 -0
- package/dist-embed-ufoathome/{BalloonFlight-DC31tnhH.js → BalloonFlight-CztT6ddg.js} +1 -1
- package/dist-embed-ufoathome/{BeamEditor-WKZhN3Hp.js → BeamEditor-CuW3LVO-.js} +2 -2
- package/dist-embed-ufoathome/BeamSystem-BPEYuCF4.js +1 -0
- package/dist-embed-ufoathome/BirdEditor-Dk3huwHa.js +16 -0
- package/dist-embed-ufoathome/{BodyEditor-uxbNOCFJ.js → BodyEditor-COMX-T65.js} +1 -1
- package/dist-embed-ufoathome/CaseEditorElement-C5BHP8jT.js +3173 -0
- package/dist-embed-ufoathome/{CaseElement-Lil-kZRm.js → CaseElement-CIZvyRVi.js} +3 -3
- package/dist-embed-ufoathome/{CaseReportExport-DX7PQi1u.js → CaseReportExport-BFbswUIB.js} +3 -3
- package/dist-embed-ufoathome/{ColumnResize-DXi_g6cq.js → ColumnResize-Dh6Xyspd.js} +6 -6
- package/dist-embed-ufoathome/ContrailSystem-D2AR5Zgy.js +1 -0
- package/dist-embed-ufoathome/ControlPasses-CnL1GmT-.js +29 -0
- package/dist-embed-ufoathome/CoverageAssessor-CiqUEJkN.js +1 -0
- package/dist-embed-ufoathome/{DroneEditor-BSYPs6jg.js → DroneEditor-D60uhSHO.js} +1 -1
- package/dist-embed-ufoathome/{DroneParameters-O6pYnfX7.js → DroneParameters-CfTAaLCT.js} +1 -1
- package/dist-embed-ufoathome/Flightradar24Provider-_tNmWf11.js +1 -0
- package/dist-embed-ufoathome/GLTFLoader-BLk8prLt.js +1 -0
- package/dist-embed-ufoathome/GeoJsonExport-DkPKk-7q.js +2 -0
- package/dist-embed-ufoathome/GeoProjection-DvqDbRIx.js +1 -0
- package/dist-embed-ufoathome/{GeographicFigures-D9njFJso.js → GeographicFigures-l-PfHdSR.js} +1 -1
- package/dist-embed-ufoathome/HeadlightSystem-D5-78PFB.js +34 -0
- package/dist-embed-ufoathome/HynekAssessor-BhnvqsYz.js +1 -0
- package/dist-embed-ufoathome/InterviewEditorElement-iw2lnwx8.js +277 -0
- package/dist-embed-ufoathome/{InterviewElement-kdRloxH-.js → InterviewElement-CuRmQ0d3.js} +2 -2
- package/dist-embed-ufoathome/InterviewMedia-CGVsMdje.js +1 -0
- package/dist-embed-ufoathome/InterviewMessages_en-BRmuWrAg.js +1 -0
- package/dist-embed-ufoathome/InterviewMessages_es-BTotimwY.js +1 -0
- package/dist-embed-ufoathome/InterviewMessages_fr-DBCdGB0r.js +1 -0
- package/dist-embed-ufoathome/InterviewMessages_it-B5EyMD-k.js +1 -0
- package/dist-embed-ufoathome/KmlExport-BUl3gOrw.js +19 -0
- package/dist-embed-ufoathome/LanternEditor-BapUZdog.js +24 -0
- package/dist-embed-ufoathome/{LaserBeam-6xHkBslk.js → LaserBeam-C7glTvQN.js} +1 -1
- package/dist-embed-ufoathome/LaunchEditor-DvudtAzp.js +22 -0
- package/dist-embed-ufoathome/{LaunchPlume-BRYgiI9s.js → LaunchPlume-CrDBzsQe.js} +1 -1
- package/dist-embed-ufoathome/LaunchSimulation-DyOA4lPb.js +1 -0
- package/dist-embed-ufoathome/ModelSource-CoT4mxTx.js +1 -0
- package/dist-embed-ufoathome/ModelThumbnails-t59SZ3Vn.js +1 -0
- package/dist-embed-ufoathome/ModelViewer-DEdruEtl.js +1 -0
- package/dist-embed-ufoathome/ModuleConformance-DYDAaJJQ.js +2 -0
- package/dist-embed-ufoathome/ModuleSession-BKDWGSEo.js +3 -0
- package/dist-embed-ufoathome/ModuleThree-D18Rh2Nj.js +1 -0
- package/dist-embed-ufoathome/{ModulesPanelElement-fUfO3DeN.js → ModulesPanelElement-N-ccpGxl.js} +3 -3
- package/dist-embed-ufoathome/{NearestApproach-MxAHwcUE.js → NearestApproach-Do15yfeg.js} +1 -1
- package/dist-embed-ufoathome/{ParameterForm-DcVFxrcO.js → ParameterForm-XbqxCLRn.js} +1 -1
- package/dist-embed-ufoathome/PictureRegistration-BJeiCK8A.js +1 -0
- package/dist-embed-ufoathome/PoherAssessor-Cs8-ZBge.js +1 -0
- package/dist-embed-ufoathome/QuestionnaireFeed-BfvRSPoo.js +1 -0
- package/dist-embed-ufoathome/QuestionnaireForm-ByFmq67M.js +1 -0
- package/dist-embed-ufoathome/QuestionnaireImport-Cx1dQiha.js +5 -0
- package/dist-embed-ufoathome/QuestionnaireSeal-DpZYUhnf.js +1 -0
- package/dist-embed-ufoathome/RailwaySystem-KlBj8mLP.js +41 -0
- package/dist-embed-ufoathome/ReentryEditor-CJUFkVFO.js +28 -0
- package/dist-embed-ufoathome/ReentrySimulation-B5QcdOTq.js +1 -0
- package/dist-embed-ufoathome/ReferenceSystem-DyzOUClN.js +1 -0
- package/dist-embed-ufoathome/RoadMarkings-DKUNImjj.js +1 -0
- package/dist-embed-ufoathome/SaidPosition-OJEYhVKN.js +4 -0
- package/dist-embed-ufoathome/ScenarioReadings-CfZehU_P.js +1 -0
- package/dist-embed-ufoathome/ScenarioSweep-CDumnmq2.js +1 -0
- package/dist-embed-ufoathome/ScenarioSweepMessages_en-Bf4BscDU.js +1 -0
- package/dist-embed-ufoathome/ScenarioSweepMessages_es-CBHQfuRB.js +1 -0
- package/dist-embed-ufoathome/ScenarioSweepMessages_fr-DlPsO6oI.js +1 -0
- package/dist-embed-ufoathome/ScenarioSweepMessages_it-DANW3_la.js +1 -0
- package/dist-embed-ufoathome/SearchlightEditor-CPDNpfNC.js +8 -0
- package/dist-embed-ufoathome/SearchlightEditorMessages_en-BWTcGHYC.js +1 -0
- package/dist-embed-ufoathome/SearchlightEditorMessages_es-PS4IIWFS.js +1 -0
- package/dist-embed-ufoathome/SearchlightEditorMessages_fr-CpaD2Il2.js +1 -0
- package/dist-embed-ufoathome/SearchlightEditorMessages_it-Br2IjowF.js +1 -0
- package/dist-embed-ufoathome/SearchlightKindMessages_en-CwJDAjsc.js +1 -0
- package/dist-embed-ufoathome/SearchlightKindMessages_es-CCCgZyTQ.js +1 -0
- package/dist-embed-ufoathome/SearchlightKindMessages_fr-DsxiUhmK.js +1 -0
- package/dist-embed-ufoathome/SearchlightKindMessages_it-CyWpJL5c.js +1 -0
- package/dist-embed-ufoathome/SearchlightParameterTexts_en-BwanYoMW.js +1 -0
- package/dist-embed-ufoathome/SearchlightParameterTexts_es-Cz_rg-Xe.js +1 -0
- package/dist-embed-ufoathome/SearchlightParameterTexts_fr-B7eZQIdG.js +1 -0
- package/dist-embed-ufoathome/SearchlightParameterTexts_it-BjhuOJre.js +1 -0
- package/dist-embed-ufoathome/SearchlightSystem-Ca0rZcXv.js +1 -0
- package/dist-embed-ufoathome/ShareDialogElement-CBeU9ChH.js +5182 -0
- package/dist-embed-ufoathome/Sighting-B7bsiTIQ.js +1 -0
- package/dist-embed-ufoathome/{SightingEditorMessages_en-CtZXoBSS.js → SightingEditorMessages_en-k7_ua2OM.js} +1 -1
- package/{dist-embed-sighting-editor/SightingEditorMessages_es-CKXlDIja.js → dist-embed-ufoathome/SightingEditorMessages_es-Drqbbr5_.js} +1 -1
- package/dist-embed-ufoathome/{SightingEditorMessages_fr-DjP6vAKo.js → SightingEditorMessages_fr-B_K5hsuV.js} +1 -1
- package/{dist-embed-sighting-editor/SightingEditorMessages_it-CxtFzCzo.js → dist-embed-ufoathome/SightingEditorMessages_it-QCLg1d7x.js} +1 -1
- package/dist-embed-ufoathome/{SightingElement-Ct3sIryk.js → SightingElement-BveOM4nF.js} +4 -4
- package/dist-embed-ufoathome/{SightingFileEditor-D1s9Dv6G.js → SightingFileEditor-DS1DRU2p.js} +1 -1
- package/dist-embed-ufoathome/{SightingMessages_en-CYzanHjT.js → SightingMessages_en-CzICxNU3.js} +1 -1
- package/dist-embed-ufoathome/{SightingMessages_es-hjvESK6f.js → SightingMessages_es-CiVFZlgA.js} +1 -1
- package/dist-embed-ufoathome/{SightingMessages_fr-BtfWbIP7.js → SightingMessages_fr-nopOVDa1.js} +1 -1
- package/dist-embed-ufoathome/{SightingMessages_it-Bqm4pewZ.js → SightingMessages_it-Cu0nnPts.js} +1 -1
- package/dist-embed-ufoathome/{TimelineTracks-BgZmkKhn.js → TimelineTracks-Daaqw9ly.js} +1 -1
- package/dist-embed-ufoathome/{TraceSystem-Bop2Zoa_.js → TraceSystem-CoHX04R3.js} +2 -2
- package/dist-embed-ufoathome/{UfoAtHomeMessages_en-dlx_C679.js → UfoAtHomeMessages_en-BK2qJyZN.js} +1 -1
- package/dist-embed-ufoathome/{UfoAtHomeMessages_es-uLOvtAD0.js → UfoAtHomeMessages_es-B1-NDCau.js} +1 -1
- package/dist-embed-ufoathome/{UfoAtHomeMessages_fr-LR76-eHS.js → UfoAtHomeMessages_fr-BTG047qo.js} +1 -1
- package/dist-embed-ufoathome/{UfoAtHomeMessages_it-CQl4uTnG.js → UfoAtHomeMessages_it-Ryxv4HNU.js} +1 -1
- package/dist-embed-ufoathome/VideoButton-DNQmWtfv.js +1 -0
- package/dist-embed-ufoathome/WaterSystem-BNxlYNtW.js +19 -0
- package/dist-embed-ufoathome/angular-size-CxoysZle.png +0 -0
- package/dist-embed-ufoathome/azimuth-CvjiPmz0.png +0 -0
- package/dist-embed-ufoathome/caseSchema-BEJTs2Ld.js +1 -0
- package/dist-embed-ufoathome/elevation-DPr5S6Jt.png +0 -0
- package/dist-embed-ufoathome/geipan-qt-2025-j-yGY7EN.js +7 -0
- package/dist-embed-ufoathome/interviewSchema-DRWvRSL2.js +1 -0
- package/dist-embed-ufoathome/protractor-DyE30B87.png +0 -0
- package/dist-embed-ufoathome/rr0-ufoathome.mjs +41 -31
- package/dist-embed-ufoathome/sightingSchema-9MogCcUd.js +1 -0
- package/dist-embed-ufoathome/surroundingsSources-C823p3dG.js +1 -0
- package/dist-embed-ufoathome/three.module-CbaHqYFq.js +4116 -0
- package/dist-embed-ufoathome/trafficRuntime-DtXb9B2f.js +2 -0
- package/dist-embed-ufoathome/{upperAirSources-BGuLpdwu.js → upperAirSources-BU0pD84c.js} +1 -1
- package/dist-embed-ufoathome/xyzImageryRaster-Dhxs0B26.js +1 -0
- package/package.json +4 -2
- package/dist-embed-interview/InterviewMessages_en-ru7GkZlQ.js +0 -1
- package/dist-embed-interview/InterviewMessages_es-DkJurNrG.js +0 -1
- package/dist-embed-interview/InterviewMessages_fr-DAYgf8Ms.js +0 -1
- package/dist-embed-interview/InterviewMessages_it-6lenkmSg.js +0 -1
- package/dist-embed-scene/BeamSystem-BtLpnMXz.js +0 -1
- package/dist-embed-scene/ModuleSession-BodXzA3g.js +0 -3
- package/dist-embed-scene/ModuleThree-D7qc50Hj.js +0 -1
- package/dist-embed-scene/sightingSchema-BDxKVE3v.js +0 -1
- package/dist-embed-sighting/BeamSystem-DJZTpG0z.js +0 -1
- package/dist-embed-sighting/InterviewMessages_en-ru7GkZlQ.js +0 -1
- package/dist-embed-sighting/InterviewMessages_es-DkJurNrG.js +0 -1
- package/dist-embed-sighting/InterviewMessages_fr-DAYgf8Ms.js +0 -1
- package/dist-embed-sighting/InterviewMessages_it-6lenkmSg.js +0 -1
- package/dist-embed-sighting/ModuleSession-BZbes53G.js +0 -3
- package/dist-embed-sighting/ModuleThree-CPPPDBO4.js +0 -1
- package/dist-embed-sighting/sightingSchema-BDxKVE3v.js +0 -1
- package/dist-embed-sighting-editor/AirshipEditor-rA-Sr4D1.js +0 -16
- package/dist-embed-sighting-editor/BalloonEditor-CPZoayzz.js +0 -24
- package/dist-embed-sighting-editor/BeamSystem-Br0h-uSI.js +0 -1
- package/dist-embed-sighting-editor/BirdEditor-CAoRqqRV.js +0 -16
- package/dist-embed-sighting-editor/GeographicFigures-DqhWddS9.js +0 -1
- package/dist-embed-sighting-editor/InterviewEditorElement-CcXO_w9X.js +0 -242
- package/dist-embed-sighting-editor/InterviewMedia-CvAxC62V.js +0 -1
- package/dist-embed-sighting-editor/InterviewMessages_en-ru7GkZlQ.js +0 -1
- package/dist-embed-sighting-editor/InterviewMessages_es-DkJurNrG.js +0 -1
- package/dist-embed-sighting-editor/InterviewMessages_fr-DAYgf8Ms.js +0 -1
- package/dist-embed-sighting-editor/InterviewMessages_it-6lenkmSg.js +0 -1
- package/dist-embed-sighting-editor/LanternEditor-BnXAwLuQ.js +0 -24
- package/dist-embed-sighting-editor/LaunchEditor-f4kJ5pWG.js +0 -22
- package/dist-embed-sighting-editor/LaunchSimulation-B3vlOUUu.js +0 -1
- package/dist-embed-sighting-editor/ModelSource-D1Wt6VYS.js +0 -1
- package/dist-embed-sighting-editor/ModuleConformance-DF6CNBvD.js +0 -2
- package/dist-embed-sighting-editor/ModuleSession-BgxzArtm.js +0 -3
- package/dist-embed-sighting-editor/ModuleThree-DXFS5Pjb.js +0 -1
- package/dist-embed-sighting-editor/PictureRegistration-DBBH_E6I.js +0 -1
- package/dist-embed-sighting-editor/ReentryEditor-Ch9_6pS8.js +0 -28
- package/dist-embed-sighting-editor/caseSchema-ChUB1-9j.js +0 -1
- package/dist-embed-sighting-editor/interviewSchema-Dk0AWHwc.js +0 -1
- package/dist-embed-sighting-editor/sightingSchema-C1S-Kr9w.js +0 -1
- package/dist-embed-ufoathome/AdsbLolArchiveProvider-DzC2OwjF.js +0 -1
- package/dist-embed-ufoathome/AirshipEditor-DDmu9JT8.js +0 -16
- package/dist-embed-ufoathome/BallesterGuaspAssessor-Bn5TGAvJ.js +0 -1
- package/dist-embed-ufoathome/BalloonEditor-CGrzszk1.js +0 -24
- package/dist-embed-ufoathome/BeamSystem-CWJkeTmf.js +0 -1
- package/dist-embed-ufoathome/BirdEditor-07sg3Pt0.js +0 -16
- package/dist-embed-ufoathome/CaseEditorElement-DNZt-oc7.js +0 -3148
- package/dist-embed-ufoathome/ContrailSystem-DBPA_rNt.js +0 -1
- package/dist-embed-ufoathome/ControlPasses-BgvVicQS.js +0 -29
- package/dist-embed-ufoathome/CoverageAssessor-BiDfEPse.js +0 -1
- package/dist-embed-ufoathome/Flightradar24Provider-DJtlvu72.js +0 -1
- package/dist-embed-ufoathome/GLTFLoader-2tuw29HP.js +0 -1
- package/dist-embed-ufoathome/GeoJsonExport-DHZOlC4h.js +0 -2
- package/dist-embed-ufoathome/HeadlightSystem-h2F6DzUW.js +0 -34
- package/dist-embed-ufoathome/HynekAssessor-C1TFQQNc.js +0 -1
- package/dist-embed-ufoathome/InterviewEditorElement-BythuoeV.js +0 -242
- package/dist-embed-ufoathome/InterviewMedia-CvAxC62V.js +0 -1
- package/dist-embed-ufoathome/InterviewMessages_en-ru7GkZlQ.js +0 -1
- package/dist-embed-ufoathome/InterviewMessages_es-DkJurNrG.js +0 -1
- package/dist-embed-ufoathome/InterviewMessages_fr-DAYgf8Ms.js +0 -1
- package/dist-embed-ufoathome/InterviewMessages_it-6lenkmSg.js +0 -1
- package/dist-embed-ufoathome/KmlExport-Qih5jB1R.js +0 -19
- package/dist-embed-ufoathome/LanternEditor-BRqgj1S6.js +0 -24
- package/dist-embed-ufoathome/LaunchEditor-D5FlWL04.js +0 -22
- package/dist-embed-ufoathome/LaunchSimulation-DS7JtdJz.js +0 -1
- package/dist-embed-ufoathome/ModelSource-DQDWsfAb.js +0 -1
- package/dist-embed-ufoathome/ModelThumbnails-DovTOA0Y.js +0 -1
- package/dist-embed-ufoathome/ModelViewer-DIvwFZDg.js +0 -1
- package/dist-embed-ufoathome/ModuleConformance-VMgvNBlc.js +0 -2
- package/dist-embed-ufoathome/ModuleSession-D6wg8SbE.js +0 -3
- package/dist-embed-ufoathome/ModuleThree-CLkMHq_q.js +0 -1
- package/dist-embed-ufoathome/PictureRegistration-Dnh3w7Ph.js +0 -1
- package/dist-embed-ufoathome/PoherAssessor-h8_-WKIK.js +0 -1
- package/dist-embed-ufoathome/RailwaySystem-DZ2hctVL.js +0 -41
- package/dist-embed-ufoathome/ReentryEditor-DxyGO7_Z.js +0 -28
- package/dist-embed-ufoathome/ReentrySimulation-B55Uq-6-.js +0 -1
- package/dist-embed-ufoathome/ReferenceSystem-DJosChqB.js +0 -1
- package/dist-embed-ufoathome/RoadMarkings-DDRxawvf.js +0 -1
- package/dist-embed-ufoathome/SaidPosition-CXZLm-ck.js +0 -4
- package/dist-embed-ufoathome/ShareDialogElement--Mjaublp.js +0 -9222
- package/dist-embed-ufoathome/Sighting-Ch4eiBNK.js +0 -1
- package/dist-embed-ufoathome/VideoButton-DzEuUvRs.js +0 -1
- package/dist-embed-ufoathome/WaterSystem-KQAAtpYS.js +0 -19
- package/dist-embed-ufoathome/caseSchema-ChUB1-9j.js +0 -1
- package/dist-embed-ufoathome/interviewSchema-Dk0AWHwc.js +0 -1
- package/dist-embed-ufoathome/sightingSchema-C1S-Kr9w.js +0 -1
- package/dist-embed-ufoathome/surroundingsSources-LtEaPPRc.js +0 -1
- package/dist-embed-ufoathome/trafficRuntime-uPEasExE.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{bn as F,b9 as y}from"./ShareDialogElement-CBeU9ChH.js";const N=[1900,1905,1910,1915,1920,1925,1930,1935,1940,1945,1950,1955,1960,1965,1970,1975,1980,1985,1990,1995,2e3,2005,2010,2015,2020,2025],b=[["g",1,0],["g",1,1],["h",1,1],["g",2,0],["g",2,1],["h",2,1],["g",2,2],["h",2,2],["g",3,0],["g",3,1],["h",3,1],["g",3,2],["h",3,2],["g",3,3],["h",3,3],["g",4,0],["g",4,1],["h",4,1],["g",4,2],["h",4,2],["g",4,3],["h",4,3],["g",4,4],["h",4,4],["g",5,0],["g",5,1],["h",5,1],["g",5,2],["h",5,2],["g",5,3],["h",5,3],["g",5,4],["h",5,4],["g",5,5],["h",5,5],["g",6,0],["g",6,1],["h",6,1],["g",6,2],["h",6,2],["g",6,3],["h",6,3],["g",6,4],["h",6,4],["g",6,5],["h",6,5],["g",6,6],["h",6,6],["g",7,0],["g",7,1],["h",7,1],["g",7,2],["h",7,2],["g",7,3],["h",7,3],["g",7,4],["h",7,4],["g",7,5],["h",7,5],["g",7,6],["h",7,6],["g",7,7],["h",7,7],["g",8,0],["g",8,1],["h",8,1],["g",8,2],["h",8,2],["g",8,3],["h",8,3],["g",8,4],["h",8,4],["g",8,5],["h",8,5],["g",8,6],["h",8,6],["g",8,7],["h",8,7],["g",8,8],["h",8,8],["g",9,0],["g",9,1],["h",9,1],["g",9,2],["h",9,2],["g",9,3],["h",9,3],["g",9,4],["h",9,4],["g",9,5],["h",9,5],["g",9,6],["h",9,6],["g",9,7],["h",9,7],["g",9,8],["h",9,8],["g",9,9],["h",9,9],["g",10,0],["g",10,1],["h",10,1],["g",10,2],["h",10,2],["g",10,3],["h",10,3],["g",10,4],["h",10,4],["g",10,5],["h",10,5],["g",10,6],["h",10,6],["g",10,7],["h",10,7],["g",10,8],["h",10,8],["g",10,9],["h",10,9],["g",10,10],["h",10,10],["g",11,0],["g",11,1],["h",11,1],["g",11,2],["h",11,2],["g",11,3],["h",11,3],["g",11,4],["h",11,4],["g",11,5],["h",11,5],["g",11,6],["h",11,6],["g",11,7],["h",11,7],["g",11,8],["h",11,8],["g",11,9],["h",11,9],["g",11,10],["h",11,10],["g",11,11],["h",11,11],["g",12,0],["g",12,1],["h",12,1],["g",12,2],["h",12,2],["g",12,3],["h",12,3],["g",12,4],["h",12,4],["g",12,5],["h",12,5],["g",12,6],["h",12,6],["g",12,7],["h",12,7],["g",12,8],["h",12,8],["g",12,9],["h",12,9],["g",12,10],["h",12,10],["g",12,11],["h",12,11],["g",12,12],["h",12,12],["g",13,0],["g",13,1],["h",13,1],["g",13,2],["h",13,2],["g",13,3],["h",13,3],["g",13,4],["h",13,4],["g",13,5],["h",13,5],["g",13,6],["h",13,6],["g",13,7],["h",13,7],["g",13,8],["h",13,8],["g",13,9],["h",13,9],["g",13,10],["h",13,10],["g",13,11],["h",13,11],["g",13,12],["h",13,12],["g",13,13],["h",13,13]],P=[[-31543,-2298,5922,-677,2905,-1061,924,1121,1022,-1469,-330,1256,3,572,523,876,628,195,660,-69,-361,-210,134,-75,-184,328,-210,264,53,5,-33,-86,-124,-16,3,63,61,-9,-11,83,-217,2,-58,-35,59,36,-90,-69,70,-55,-45,0,-13,34,-10,-41,-1,-21,28,18,-12,6,-22,11,8,8,-4,-14,-9,7,1,-13,2,5,-9,16,5,-5,8,-18,8,10,-20,1,14,-11,5,12,-3,1,-2,-2,8,2,10,-1,-2,-1,2,-3,-4,2,2,1,-5,2,-2,6,6,-4,4,0,0,-2,2,4,2,0,0,-6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-31464,-2298,5909,-728,2928,-1086,1041,1065,1037,-1494,-357,1239,34,635,480,880,643,203,653,-77,-380,-201,146,-65,-192,328,-193,259,56,-1,-32,-93,-125,-26,11,62,60,-7,-11,86,-221,4,-57,-32,57,32,-92,-67,70,-54,-46,0,-14,33,-11,-41,0,-20,28,18,-12,6,-22,11,8,8,-4,-15,-9,7,1,-13,2,5,-8,16,5,-5,8,-18,8,10,-20,1,14,-11,5,12,-3,1,-2,-2,8,2,10,0,-2,-1,2,-3,-4,2,2,1,-5,2,-2,6,6,-4,4,0,0,-2,2,4,2,0,0,-6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-31354,-2297,5898,-769,2948,-1128,1176,1e3,1058,-1524,-389,1223,62,705,425,884,660,211,644,-90,-400,-189,160,-55,-201,327,-172,253,57,-9,-33,-102,-126,-38,21,62,58,-5,-11,89,-224,5,-54,-29,54,28,-95,-65,71,-54,-47,1,-14,32,-12,-40,1,-19,28,18,-13,6,-22,11,8,8,-4,-15,-9,6,1,-13,2,5,-8,16,5,-5,8,-18,8,10,-20,1,14,-11,5,12,-3,1,-2,-2,8,2,10,0,-2,-1,2,-3,-4,2,2,1,-5,2,-2,6,6,-4,4,0,0,-2,2,4,2,0,0,-6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-31212,-2306,5875,-802,2956,-1191,1309,917,1084,-1559,-421,1212,84,778,360,887,678,218,631,-109,-416,-173,178,-51,-211,327,-148,245,58,-16,-34,-111,-126,-51,32,61,57,-2,-10,93,-228,8,-51,-26,49,23,-98,-62,72,-54,-48,2,-14,31,-12,-38,2,-18,28,19,-15,6,-22,11,8,8,-4,-15,-9,6,2,-13,3,5,-8,16,6,-5,8,-18,8,10,-20,1,14,-11,5,12,-3,1,-2,-2,8,2,10,0,-2,-1,2,-3,-4,2,2,1,-5,2,-2,6,6,-4,4,0,0,-2,1,4,2,0,0,-6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-31060,-2317,5845,-839,2959,-1259,1407,823,1111,-1600,-445,1205,103,839,293,889,695,220,616,-134,-424,-153,199,-57,-221,326,-122,236,58,-23,-38,-119,-125,-62,43,61,55,0,-10,96,-233,11,-46,-22,44,18,-101,-57,73,-54,-49,2,-14,29,-13,-37,4,-16,28,19,-16,6,-22,11,7,8,-3,-15,-9,6,2,-14,4,5,-7,17,6,-5,8,-19,8,10,-20,1,14,-11,5,12,-3,1,-2,-2,9,2,10,0,-2,-1,2,-3,-4,2,2,1,-5,2,-2,6,6,-4,4,0,0,-2,1,4,3,0,0,-6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-30926,-2318,5817,-893,2969,-1334,1471,728,1140,-1645,-462,1202,119,881,229,891,711,216,601,-163,-426,-130,217,-70,-230,326,-96,226,58,-28,-44,-125,-122,-69,51,61,54,3,-9,99,-238,14,-40,-18,39,13,-103,-52,73,-54,-50,3,-14,27,-14,-35,5,-14,29,19,-17,6,-21,11,7,8,-3,-15,-9,6,2,-14,4,5,-7,17,7,-5,8,-19,8,10,-20,1,14,-11,5,12,-3,1,-2,-2,9,2,10,0,-2,-1,2,-3,-4,2,2,1,-5,2,-2,6,6,-4,4,0,0,-2,1,4,3,0,0,-6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-30805,-2316,5808,-951,2980,-1424,1517,644,1172,-1692,-480,1205,133,907,166,896,727,205,584,-195,-422,-109,234,-90,-237,327,-72,218,60,-32,-53,-131,-118,-74,58,60,53,4,-9,102,-242,19,-32,-16,32,8,-104,-46,74,-54,-51,4,-15,25,-14,-34,6,-12,29,18,-18,6,-20,11,7,8,-3,-15,-9,5,2,-14,5,5,-6,18,8,-5,8,-19,8,10,-20,1,14,-12,5,12,-3,1,-2,-2,9,3,10,0,-2,-2,2,-3,-4,2,2,1,-5,2,-2,6,6,-4,4,0,0,-2,1,4,3,0,0,-6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-30715,-2306,5812,-1018,2984,-1520,1550,586,1206,-1740,-494,1215,146,918,101,903,744,188,565,-226,-415,-90,249,-114,-241,329,-51,211,64,-33,-64,-136,-115,-76,64,59,53,4,-8,104,-246,25,-25,-15,25,4,-106,-40,74,-53,-52,4,-17,23,-14,-33,7,-11,29,18,-19,6,-19,11,7,8,-3,-15,-9,5,1,-15,6,5,-6,18,8,-5,7,-19,8,10,-20,1,15,-12,5,11,-3,1,-3,-2,9,3,11,0,-2,-2,2,-3,-4,2,2,1,-5,2,-2,6,6,-4,4,0,0,-1,2,4,3,0,0,-6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-30654,-2292,5821,-1106,2981,-1614,1566,528,1240,-1790,-499,1232,163,916,43,914,762,169,550,-252,-405,-72,265,-141,-241,334,-33,208,71,-33,-75,-141,-113,-76,69,57,54,4,-7,105,-249,33,-18,-15,18,0,-107,-33,74,-53,-52,4,-18,20,-14,-31,7,-9,29,17,-20,5,-19,11,7,8,-3,-14,-10,5,1,-15,6,5,-5,19,9,-5,7,-19,8,10,-21,1,15,-12,5,11,-3,1,-3,-2,9,3,11,1,-2,-2,2,-3,-4,2,2,1,-5,2,-2,6,6,-4,4,0,0,-1,2,4,3,0,0,-6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-30594,-2285,5810,-1244,2990,-1702,1578,477,1282,-1834,-499,1255,186,913,-11,944,776,144,544,-276,-421,-55,304,-178,-253,346,-12,194,95,-20,-67,-142,-119,-82,82,59,57,6,6,100,-246,16,-25,-9,21,-16,-104,-39,70,-40,-45,0,-18,0,2,-29,6,-10,28,15,-17,29,-22,13,7,12,-8,-21,-5,-12,9,-7,7,2,-10,18,7,3,2,-11,5,-21,-27,1,17,-11,29,3,-9,16,4,-3,9,-4,6,-3,1,-4,8,-3,11,5,1,1,2,-20,-5,-1,-1,-6,8,6,-1,-4,-3,-2,5,0,-2,-2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-30554,-2250,5815,-1341,2998,-1810,1576,381,1297,-1889,-476,1274,206,896,-46,954,792,136,528,-278,-408,-37,303,-210,-240,349,3,211,103,-20,-87,-147,-122,-76,80,54,57,-1,4,99,-247,33,-16,-12,12,-12,-105,-30,65,-55,-35,2,-17,1,0,-40,10,-7,36,5,-18,19,-16,22,15,5,-4,-22,-1,0,11,-21,15,-8,-13,17,5,-4,-1,-17,3,-7,-24,-1,19,-25,12,10,2,5,2,-5,8,-2,8,3,-11,8,-7,-8,4,13,-1,-2,13,-10,-4,2,4,-3,12,6,3,-3,2,6,10,11,3,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-30500,-2215,5820,-1440,3003,-1898,1581,291,1302,-1944,-462,1288,216,882,-83,958,796,133,510,-274,-397,-23,290,-230,-229,360,15,230,110,-23,-98,-152,-121,-69,78,47,57,-9,3,96,-247,48,-8,-16,7,-12,-107,-24,65,-56,-50,2,-24,10,-4,-32,8,-11,28,9,-20,18,-18,11,9,10,-6,-15,-14,5,6,-23,10,3,-7,23,6,-4,9,-13,4,9,-11,-4,12,-5,7,2,6,4,-2,1,10,2,7,2,-6,5,5,-3,-5,-4,-1,0,2,-8,-3,-2,7,-4,4,1,-2,-3,6,7,-2,-1,0,-3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-30421,-2169,5791,-1555,3002,-1967,1590,206,1302,-1992,-414,1289,224,878,-130,957,800,135,504,-278,-394,3,269,-255,-222,362,16,242,125,-26,-117,-156,-114,-63,81,46,58,-10,1,99,-237,60,-1,-20,-2,-11,-113,-17,67,-56,-55,5,-28,15,-6,-32,7,-7,23,17,-18,8,-17,15,6,11,-4,-14,-11,7,2,-18,10,4,-5,23,10,1,8,-20,4,6,-18,0,12,-9,2,1,0,4,-3,-1,9,-2,8,3,0,-1,5,1,-3,4,4,1,0,0,-1,2,4,-5,6,1,1,-1,-1,6,2,0,0,-7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-30334,-2119,5776,-1662,2997,-2016,1594,114,1297,-2038,-404,1292,240,856,-165,957,804,148,479,-269,-390,13,252,-269,-219,358,19,254,128,-31,-126,-157,-97,-62,81,45,61,-11,8,100,-228,68,4,-32,1,-8,-111,-7,75,-57,-61,4,-27,13,-2,-26,6,-6,26,13,-23,1,-12,13,5,7,-4,-12,-14,9,0,-16,8,4,-1,24,11,-3,4,-17,8,10,-22,2,15,-13,7,10,-4,-1,-5,-1,10,5,10,1,-4,-2,1,-2,-3,2,2,1,-5,2,-2,6,4,-4,4,0,0,-2,2,3,2,0,0,-6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-30220,-2068,5737,-1781,3e3,-2047,1611,25,1287,-2091,-366,1278,251,838,-196,952,800,167,461,-266,-395,26,234,-279,-216,359,26,262,139,-42,-139,-160,-91,-56,83,43,64,-12,15,100,-212,72,2,-37,3,-6,-112,1,72,-57,-70,1,-27,14,-4,-22,8,-2,23,13,-23,-2,-11,14,6,7,-2,-15,-13,6,-3,-17,5,6,0,21,11,-6,3,-16,8,10,-21,2,16,-12,6,10,-4,-1,-5,0,10,3,11,1,-2,-1,1,-3,-3,1,2,1,-5,3,-1,4,6,-4,4,0,1,-1,0,3,3,1,-1,-4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-30100,-2013,5675,-1902,3010,-2067,1632,-68,1276,-2144,-333,1260,262,830,-223,946,791,191,438,-265,-405,39,216,-288,-218,356,31,264,148,-59,-152,-159,-83,-49,88,45,66,-13,28,99,-198,75,1,-41,6,-4,-111,11,71,-56,-77,1,-26,16,-5,-14,10,0,22,12,-23,-5,-12,14,6,6,-1,-16,-12,4,-8,-19,4,6,0,18,10,-10,1,-17,7,10,-21,2,16,-12,7,10,-4,-1,-5,-1,10,4,11,1,-3,-2,1,-3,-3,1,2,1,-5,3,-2,4,5,-4,4,-1,1,-1,0,3,3,1,-1,-5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-29992,-1956,5604,-1997,3027,-2129,1663,-200,1281,-2180,-336,1251,271,833,-252,938,782,212,398,-257,-419,53,199,-297,-218,357,46,261,150,-74,-151,-162,-78,-48,92,48,66,-15,42,93,-192,71,4,-43,14,-2,-108,17,72,-59,-82,2,-27,21,-5,-12,16,1,18,11,-23,-2,-10,18,6,7,0,-18,-11,4,-7,-22,4,9,3,16,6,-13,-1,-15,5,10,-21,1,16,-12,9,9,-5,-3,-6,-1,9,7,10,2,-6,-5,2,-4,-4,1,2,0,-5,3,-2,6,5,-4,3,0,1,-1,2,4,3,0,0,-6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-29873,-1905,5500,-2072,3044,-2197,1687,-306,1296,-2208,-310,1247,284,829,-297,936,780,232,361,-249,-424,69,170,-297,-214,355,47,253,150,-93,-154,-164,-75,-46,95,53,65,-16,51,88,-185,69,4,-48,16,-1,-102,21,74,-62,-83,3,-27,24,-2,-6,20,4,17,10,-23,0,-7,21,6,8,0,-19,-11,5,-9,-23,4,11,4,14,4,-15,-4,-11,5,10,-21,1,15,-12,9,9,-6,-3,-6,-1,9,7,9,1,-7,-5,2,-4,-4,1,3,0,-5,3,-2,6,5,-4,3,0,1,-1,2,4,3,0,0,-6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-29775,-1848,5406,-2131,3059,-2279,1686,-373,1314,-2239,-284,1248,293,802,-352,939,780,247,325,-240,-423,84,141,-299,-214,353,46,245,154,-109,-153,-165,-69,-36,97,61,65,-16,59,82,-178,69,3,-52,18,1,-96,24,77,-64,-80,2,-26,26,0,-1,21,5,17,9,-23,0,-4,23,5,10,-1,-19,-10,6,-12,-22,3,12,4,12,2,-16,-6,-10,4,9,-20,1,15,-12,11,9,-7,-4,-7,-2,9,7,8,1,-7,-6,2,-3,-4,2,2,1,-5,3,-2,6,4,-4,3,0,1,-2,3,3,3,-1,0,-6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-29692,-1784,5306,-2200,3070,-2366,1681,-413,1335,-2267,-262,1249,302,759,-427,940,780,262,290,-236,-418,97,122,-306,-214,352,46,235,165,-118,-143,-166,-55,-17,107,68,67,-17,68,72,-170,67,-1,-58,19,1,-93,36,77,-72,-69,1,-25,28,4,5,24,4,17,8,-24,-2,-6,25,6,11,-6,-21,-9,8,-14,-23,9,15,6,11,-5,-16,-7,-4,4,9,-20,3,15,-10,12,8,-6,-8,-8,-1,8,10,5,-2,-8,-8,3,-3,-6,1,2,0,-4,4,-1,5,4,-5,2,-1,2,-2,5,1,1,-2,0,-7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[-29619.4,-1728.2,5186.1,-2267.7,3068.4,-2481.6,1670.9,-458,1339.6,-2288,-227.6,1252.1,293.4,714.5,-491.1,932.3,786.8,272.6,250,-231.9,-403,119.8,111.3,-303.8,-218.8,351.4,43.8,222.3,171.9,-130.4,-133.1,-168.6,-39.3,-12.9,106.3,72.3,68.2,-17.4,74.2,63.7,-160.9,65.1,-5.9,-61.2,16.9,.7,-90.4,43.8,79,-74,-64.6,0,-24.2,33.3,6.2,9.1,24,6.9,14.8,7.3,-25.4,-1.2,-5.8,24.4,6.6,11.9,-9.2,-21.5,-7.9,8.5,-16.6,-21.5,9.1,15.5,7,8.9,-7.9,-14.9,-7,-2.1,5,9.4,-19.7,3,13.4,-8.4,12.5,6.3,-6.2,-8.9,-8.4,-1.5,8.4,9.3,3.8,-4.3,-8.2,-8.2,4.8,-2.6,-6,1.7,1.7,0,-3.1,4,-.5,4.9,3.7,-5.9,1,-1.2,2,-2.9,4.2,.2,.3,-2.2,-1.1,-7.4,2.7,-1.7,.1,-1.9,1.3,1.5,-.9,-.1,-2.6,.1,.9,-.7,-.7,.7,-2.8,1.7,-.9,.1,-1.2,1.2,-1.9,4,-.9,-2.2,-.3,-.4,.2,.3,.9,2.5,-.2,-2.6,.9,.7,-.5,.3,.3,0,-.3,0,-.4,.3,-.1,-.9,-.2,-.4,-.4,.8,-.2,-.9,-.9,.3,.2,.1,1.8,-.4,-.4,1.3,-1,-.4,-.1,.7,.7,-.4,.3,.3,.6,-.1,.3,.4,-.2,0,-.5,.1,-.9],[-29554.63,-1669.05,5077.99,-2337.24,3047.69,-2594.5,1657.76,-515.43,1336.3,-2305.83,-198.86,1246.39,269.72,672.51,-524.72,920.55,797.96,282.07,210.65,-225.23,-379.86,145.15,100,-305.36,-227,354.41,42.72,208.95,180.25,-136.54,-123.45,-168.05,-19.57,-13.55,103.85,73.6,69.56,-20.33,76.74,54.75,-151.34,63.63,-14.58,-63.53,14.58,.24,-86.36,50.94,79.88,-74.46,-61.14,-1.65,-22.57,38.73,6.82,12.3,25.35,9.37,10.93,5.42,-26.32,1.94,-4.64,24.8,7.62,11.2,-11.73,-20.88,-6.88,9.83,-18.11,-19.71,10.17,16.22,9.36,7.61,-11.25,-12.76,-4.87,-.06,5.58,9.76,-20.11,3.58,12.69,-6.94,12.67,5.01,-6.72,-10.76,-8.16,-1.25,8.1,8.76,2.92,-6.66,-7.73,-9.22,6.01,-2.17,-6.12,2.19,1.42,.1,-2.35,4.46,-.15,4.76,3.06,-6.58,.29,-1.01,2.06,-3.47,3.77,-.86,-.21,-2.31,-2.09,-7.93,2.95,-1.6,.26,-1.88,1.44,1.44,-.77,-.31,-2.27,.29,.9,-.79,-.58,.53,-2.69,1.8,-1.08,.16,-1.58,.96,-1.9,3.99,-1.39,-2.15,-.29,-.55,.21,.23,.89,2.38,-.38,-2.63,.96,.61,-.3,.4,.46,.01,-.35,.02,-.36,.28,.08,-.87,-.49,-.34,-.08,.88,-.16,-.88,-.76,.3,.33,.28,1.72,-.43,-.54,1.18,-1.07,-.37,-.04,.75,.63,-.26,.21,.35,.53,-.05,.38,.41,-.22,-.1,-.57,-.18,-.82],[-29496.57,-1586.42,4944.26,-2396.06,3026.34,-2708.54,1668.17,-575.73,1339.85,-2326.54,-160.4,1232.1,251.75,633.73,-537.03,912.66,808.97,286.48,166.58,-211.03,-356.83,164.46,89.4,-309.72,-230.87,357.29,44.58,200.26,189.01,-141.05,-118.06,-163.17,-.01,-8.03,101.04,72.78,68.69,-20.9,75.92,44.18,-141.4,61.54,-22.83,-66.26,13.1,3.02,-78.09,55.4,80.44,-75,-57.8,-4.55,-21.2,45.24,6.54,14,24.96,10.46,7.03,1.64,-27.61,4.92,-3.28,24.41,8.21,10.84,-14.5,-20.03,-5.59,11.83,-19.34,-17.41,11.61,16.71,10.85,6.96,-14.05,-10.74,-3.54,1.64,5.5,9.45,-20.54,3.45,11.51,-5.27,12.75,3.13,-7.14,-12.38,-7.42,-.76,7.97,8.43,2.14,-8.42,-6.08,-10.08,7.01,-1.94,-6.24,2.73,.89,-.1,-1.07,4.71,-.16,4.44,2.45,-7.22,-.33,-.96,2.13,-3.95,3.09,-1.99,-1.03,-1.97,-2.8,-8.31,3.05,-1.48,.13,-2.03,1.67,1.65,-.66,-.51,-1.76,.54,.85,-.79,-.39,.37,-2.51,1.79,-1.27,.12,-2.11,.75,-1.94,3.75,-1.86,-2.12,-.21,-.87,.3,.27,1.04,2.13,-.63,-2.49,.95,.49,-.11,.59,.52,0,-.39,.13,-.37,.27,.21,-.86,-.77,-.23,.04,.87,-.09,-.89,-.87,.31,.3,.42,1.66,-.45,-.59,1.08,-1.14,-.31,-.07,.78,.54,-.18,.1,.38,.49,.02,.44,.42,-.25,-.26,-.53,-.26,-.79],[-29441.46,-1501.77,4795.99,-2445.88,3012.2,-2845.41,1676.35,-642.17,1350.33,-2352.26,-115.29,1225.85,245.04,581.69,-538.7,907.42,813.68,283.54,120.49,-188.43,-334.85,180.95,70.38,-329.23,-232.91,360.14,46.98,192.35,196.98,-140.94,-119.14,-157.4,15.98,4.3,100.12,69.55,67.57,-20.61,72.79,33.3,-129.85,58.74,-28.93,-66.64,13.14,7.35,-70.85,62.41,81.29,-75.99,-54.27,-6.79,-19.53,51.82,5.59,15.07,24.45,9.32,3.27,-2.88,-27.5,6.61,-2.32,23.98,8.89,10.04,-16.78,-18.26,-3.16,13.18,-20.56,-14.6,13.33,16.16,11.76,5.69,-15.98,-9.1,-2.02,2.26,5.33,8.83,-21.77,3.02,10.76,-3.22,11.74,.67,-6.74,-13.2,-6.88,-.1,7.79,8.68,1.04,-9.06,-3.89,-10.54,8.44,-2.01,-6.26,3.28,.17,-.4,.55,4.55,-.55,4.4,1.7,-7.92,-.67,-.61,2.13,-4.16,2.33,-2.85,-1.8,-1.12,-3.59,-8.72,3,-1.4,0,-2.3,2.11,2.08,-.6,-.79,-1.05,.58,.76,-.7,-.2,.14,-2.12,1.7,-1.44,-.22,-2.57,.44,-2.01,3.49,-2.34,-2.09,-.16,-1.08,.46,.37,1.23,1.75,-.89,-2.19,.85,.27,.1,.72,.54,-.09,-.37,.29,-.43,.23,.22,-.89,-.94,-.16,-.03,.72,-.02,-.92,-.88,.42,.49,.63,1.56,-.42,-.5,.96,-1.24,-.19,-.1,.81,.42,-.13,-.04,.38,.48,.08,.48,.46,-.3,-.35,-.43,-.36,-.71],[-29403.41,-1451.37,4653.35,-2499.78,2981.96,-2991.72,1676.85,-734.62,1363,-2380.8,-81.96,1236.06,241.8,525.6,-542.52,902.82,809.47,282.1,86.18,-158.5,-309.47,199.75,47.44,-350.3,-234.42,363.26,47.52,187.86,208.36,-140.73,-121.43,-151.16,32.09,13.98,99.14,65.97,65.56,-19.22,72.96,25.02,-121.57,52.76,-36.06,-64.4,13.6,8.96,-64.8,68.04,80.54,-76.63,-51.5,-8.23,-16.85,56.45,2.36,15.8,23.56,6.3,-2.19,-7.21,-27.19,9.77,-1.9,23.66,9.74,8.43,-17.49,-15.23,-.49,12.83,-21.07,-11.76,15.28,14.94,13.65,3.62,-16.59,-6.9,-.34,2.9,5.03,8.36,-23.44,2.84,11.04,-1.48,9.86,-1.14,-5.13,-13.22,-6.2,1.08,7.79,8.82,.4,-9.23,-1.44,-11.86,9.6,-1.84,-6.25,3.38,-.11,-.18,1.66,3.5,-.86,4.86,.65,-8.62,-.88,-.11,1.88,-4.26,1.44,-3.43,-2.38,-.1,-3.84,-8.84,2.96,-1.36,-.02,-2.51,2.5,2.31,-.55,-.85,-.39,.28,.62,-.66,-.21,-.07,-1.66,1.44,-1.6,-.59,-2.98,.18,-1.97,3.09,-2.51,-2,-.13,-1.15,.43,.52,1.28,1.37,-1.14,-1.81,.71,.08,.31,.71,.49,-.15,-.26,.55,-.47,.16,.09,-.93,-1.13,-.04,-.33,.52,.08,-.93,-.88,.53,.64,.72,1.4,-.3,-.38,.75,-1.31,-.01,-.09,.76,.29,-.05,-.11,.37,.47,.13,.54,.45,-.41,-.46,-.36,-.4,-.6],[-29350,-1410.3,4545.5,-2556.2,2950.9,-3133.6,1648.7,-814.2,1360.9,-2404.2,-56.9,1243.8,237.6,453.4,-549.6,894.7,799.6,278.6,55.8,-134,-281.1,212,12,-375.4,-232.9,369,45.3,187.2,220,-138.7,-122.9,-141.9,42.9,20.9,106.2,64.3,63.8,-18.4,76.7,16.8,-115.7,48.9,-40.9,-59.8,14.9,10.9,-60.8,72.8,79.6,-76.9,-48.9,-8.8,-14.4,59.3,-1,15.8,23.5,2.5,-7.4,-11.2,-25.1,14.3,-2.2,23.1,10.9,7.2,-17.5,-12.6,2,11.5,-21.8,-9.7,16.9,12.7,14.9,.7,-16.8,-5.2,1,3.9,4.7,8,-24.8,3,12.1,-.2,8.3,-2.5,-3.4,-13.1,-5.3,2.4,7.2,8.6,-.6,-8.7,.8,-12.8,9.8,-1.3,-6.4,3.3,.2,.1,2,2.5,-1,5.4,-.5,-9,-.9,.4,1.5,-4.2,.9,-3.8,-2.6,.9,-3.9,-9,3,-1.4,0,-2.5,2.8,2.4,-.6,-.6,.1,0,.5,-.6,-.3,-.1,-1.2,1.1,-1.7,-1,-2.9,-.1,-1.8,2.6,-2.3,-2,-.1,-1.2,.4,.6,1.2,1,-1.2,-1.5,.6,0,.5,.6,.5,-.2,-.1,.8,-.5,.1,-.2,-.9,-1.2,.1,-.7,.2,.2,-.9,-.9,.6,.7,.7,1.2,-.2,-.3,.5,-1.3,.1,-.1,.7,.2,0,-.2,.3,.5,.2,.6,.4,-.6,-.5,-.3,-.4,-.5]],B=[12.6,10,-21.5,-11.2,-5.3,-27.3,-8.3,-11.1,-1.5,-4.4,3.8,.4,-.2,-15.6,-3.9,-1.7,-2.3,-1.3,-5.8,4.1,5.4,1.6,-6.8,-4.1,.6,1.3,-.5,0,2.1,.7,.5,2.3,1.7,1,1.9,-.2,-.3,.3,.8,-1.6,1.2,-.4,-.8,.8,.4,.7,.9,.9,-.1,-.1,.6,-.1,.5,.5,-.7,-.1,0,-.8,-.9,-.8,.5,.9,-.3,-.1,.2,-.3,0,.4,.4,-.3,-.1,.4,.3,-.5,.1,-.6,0,.3,.3,.2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];class d{static A_KM=6371.2;static MAX_DEGREE=13;static coefficientsAt(t){const a=t.getUTCFullYear()+(t.getUTCMonth()+t.getUTCDate()/31)/12,s=N;let n;if(a<=s[0])n=[...P[0]];else if(a>=s[s.length-1]){const e=Math.min(a-s[s.length-1],5);n=P[s.length-1].map((l,o)=>l+B[o]*e)}else{const e=s.findIndex(o=>o>a),l=(a-s[e-1])/(s[e]-s[e-1]);n=P[e-1].map((o,g)=>o+(P[e][g]-o)*l)}const i=Array.from({length:d.MAX_DEGREE+1},()=>new Array(d.MAX_DEGREE+1).fill(0)),r=Array.from({length:d.MAX_DEGREE+1},()=>new Array(d.MAX_DEGREE+1).fill(0));return b.forEach(([e,l,o],g)=>{(e==="g"?i:r)[l][o]=n[g]}),{g:i,h:r}}static fieldAt(t,a,s,n,i=d.MAX_DEGREE){const r=Math.hypot(a,s,n),e=n/r,l=Math.max(Math.sqrt(Math.max(0,1-e*e)),1e-9),o=Math.atan2(s,a),g=d.p,c=d.dp;g[0][0]=1,c[0][0]=0;let f=0,K=0,E=0,_=(d.A_KM/r)**2;for(let h=1;h<=i;h++){_*=d.A_KM/r;for(let M=0;M<=h;M++){if(h===M){const O=h===1?1:Math.sqrt(1-1/(2*h));g[h][h]=O*l*g[h-1][h-1],c[h][h]=O*(l*c[h-1][h-1]+e*g[h-1][h-1])}else{const O=Math.sqrt(h*h-M*M),L=h-2>=M?Math.sqrt((h-1)**2-M*M):0,U=h-2>=M?g[h-2][M]:0,C=h-2>=M?c[h-2][M]:0;g[h][M]=((2*h-1)*e*g[h-1][M]-L*U)/O,c[h][M]=((2*h-1)*(e*c[h-1][M]-l*g[h-1][M])-L*C)/O}const T=Math.cos(M*o),x=Math.sin(M*o),G=t.g[h][M],H=t.h[h][M],k=G*T+H*x;f+=(h+1)*_*k*g[h][M],K-=_*k*c[h][M],E+=_*M*(G*x-H*T)*g[h][M]/l}}const m=Math.cos(o),R=Math.sin(o);return[f*l*m+K*e*m-E*R,f*l*R+K*e*R+E*m,f*e-K*l]}static p=Array.from({length:d.MAX_DEGREE+1},()=>new Array(d.MAX_DEGREE+1).fill(0));static dp=Array.from({length:d.MAX_DEGREE+1},()=>new Array(d.MAX_DEGREE+1).fill(0));static apexLatitude(t,a,s){const n=d.coefficientsAt(s),i=t*Math.PI/180,r=a*Math.PI/180;let e=[d.A_KM*Math.cos(i)*Math.cos(r),d.A_KM*Math.cos(i)*Math.sin(r),d.A_KM*Math.sin(i)];const l=d.fieldAt(n,...e),o=l[0]*e[0]+l[1]*e[1]+l[2]*e[2]<0?-1:1,g=K=>{const E=d.fieldAt(n,K[0],K[1],K[2],8),_=Math.hypot(E[0],E[1],E[2]);return[o*E[0]/_,o*E[1]/_,o*E[2]/_]};let c=d.A_KM,f=c;for(let K=0;K<4e3;K++){const E=.01*c,_=g(e),m=g([e[0]+_[0]*E/2,e[1]+_[1]*E/2,e[2]+_[2]*E/2]),R=g([e[0]+m[0]*E/2,e[1]+m[1]*E/2,e[2]+m[2]*E/2]),h=g([e[0]+R[0]*E,e[1]+R[1]*E,e[2]+R[2]*E]);if(e=[0,1,2].map(M=>e[M]+E/6*(_[M]+2*m[M]+2*R[M]+h[M])),c=Math.hypot(e[0],e[1],e[2]),c>30*d.A_KM)return Math.sign(t||1)*80;if(c<f)break;f=c}return Math.sign(o===-1?1:-1)*(Math.acos(Math.sqrt(Math.min(1,d.A_KM/f)))*180)/Math.PI}}class S{static PHOTONS_PER_KR=1e13/(4*Math.PI);static GREEN=S.line(557.7);static RED=S.line(631.5);static BLUE=S.line(427.8);static line(t){const a=y.colourMatching(t),s=662607015e-42*299792458/(t*1e-9),n=S.PHOTONS_PER_KR*s,i=y.linearSrgbOf(a).map(e=>Math.max(e,0)),r=.2126*i[0]+.7152*i[1]+.0722*i[2];return{wavelengthNm:t,cdM2PerKR:683*a[1]*n,colour:i.map(e=>e/r)}}}class D{static DEFAULT_KP=3;static NOON_SHIFT_DEG=8;static equatorwardEdgeDeg(t){return 66.5-2.04*Math.max(0,Math.min(12,t))}static widthDeg(t){return 8+1.2*Math.max(0,Math.min(12,t))}static diffuseKR(t){return .5+.15*Math.max(0,t)}static arcsOf(t){return t<1?1:Math.min(4,Math.round(1+t/2.5))}static arcKROf(t){return 10*2**(Math.max(0,t)/2.5)}static arcRedOf(t){const a=Math.max(0,t-6);return{share:.1+.25*a,peakKm:250+40*a,widthKm:70+30*a}}static redKROf(t){return t<=5?0:.5*(t-5)**1.5}static edgeAt(t,a){return t+D.NOON_SHIFT_DEG*(1-Math.cos(a*Math.PI/12))/2}}class p{static EARTH_KM=6371;static BOTTOM_KM=90;static TOP_KM=900;static ARC_BASE_KM=105;static ARC_SCALE_KM=35;static DIFFUSE_BASE_KM=115;static DIFFUSE_SCALE_KM=45;static RED_PEAK_KM=250;static RED_WIDTH_KM=70;static STORM_RED_PEAK_KM=380;static STORM_RED_WIDTH_KM=150;static ARC_THICKNESS_DEG=.06;static RED_OF_GREEN=.25;static BLUE_OF_GREEN=.12;static SUNLIT_BLUE_OF_GREEN=.2;static exponential(t,a,s){if(t<a-8)return 0;const n=Math.min(1,Math.max(0,(t-(a-8))/10));return n*n*(3-2*n)*Math.exp(-Math.max(0,t-a)/s)/(s+5)}static gaussian(t,a,s){const n=(t-a)/s;return Math.exp(-.5*n*n)/(s*Math.sqrt(2*Math.PI))}}class A{static FADE_MS=6e4;static OUT_OF_SIGHT_DEG=28;static kpAt(t,a){const s=t.activity;if(!s||s.length===0)return t.kp??D.DEFAULT_KP;if(a<=s[0].t)return s[0].kp;for(let n=1;n<s.length;n++){if(a>s[n].t)continue;const i=s[n-1],r=s[n];return i.kp+(r.kp-i.kp)*(a-i.t)/Math.max(r.t-i.t,1)}return s[s.length-1].kp}static fadeAt(t,a){const s=t.fromT===void 0?1:Math.min(1,Math.max(0,(a-t.fromT)/A.FADE_MS)),n=t.untilT===void 0?1:Math.min(1,Math.max(0,(t.untilT-a)/A.FADE_MS));return s*n}static apexes=new Map;static apexLatitude(t,a,s){const n=`${t.toFixed(2)},${a.toFixed(2)},${s.toISOString().slice(0,10)}`;let i=A.apexes.get(n);return i===void 0&&(i=d.apexLatitude(t,a,s),A.apexes.size>64&&A.apexes.clear(),A.apexes.set(n,i)),i}static seed(t){let a=2166136261;for(let s=0;s<t.length;s++)a=Math.imul(a^t.charCodeAt(s),16777619);return(a>>>0)%1e4/1e4}static viewAt(t,a,s,n,i){const r=A.fadeAt(t,a);if(r<=0)return;const e=A.kpAt(t,a),l=A.seed(t.id),o=a/1e3,g=Math.max(0,Math.min(4,Math.round(t.arcs??D.arcsOf(e)))),c=t.arcKR??D.arcKROf(e),f=D.widthDeg(e),K=[];for(let R=0;R<g;R++){const h=l*37+R*2.3,M=.7+.3*Math.sin(2*Math.PI*o/(90+40*R)+h);K.push({offsetDeg:f*(g===1?.15:.1+.8*R/(g-1)),kr:c*M/(1+.6*R),foldPhase:h,rayPhase:l*1e3+R*131})}const E=Math.abs(A.apexLatitude(s.lat,s.lng,n));if((t.edgeLatDeg??D.equatorwardEdgeDeg(e))-E>A.OUT_OF_SIGHT_DEG)return;const _=F.latitudeOf(s.lat,s.lng,n),m=_-E*Math.sign(_||1);return{id:t.id,kp:e,edgeDeg:(t.edgeLatDeg??D.equatorwardEdgeDeg(e))+m,widthDeg:f,diffuseKR:D.diffuseKR(e),redKR:t.redKR??D.redKROf(e),arcRed:D.arcRedOf(e),arcs:K,axis:F.axisAt(s.lat,s.lng,n),sun:i,observerLatitudeDeg:_-m,observerHeightKm:s.heightM/1e3,fade:r,timeS:o}}}class u{static STEPS=160;static along(t,a,s=u.STEPS){const i=p.EARTH_KM+t.observerHeightKm,r=u.shellRange(i,a[1]);if(!r)return[0,0,0];const[e,l]=r,o=(l-e)/s,g=[0,0,0];for(let c=0;c<s;c++){const f=e+(c+.5)*o,K=[a[0]*f,i+a[1]*f,a[2]*f],E=u.emission(t,K);g[0]+=E[0]*o,g[1]+=E[1]*o,g[2]+=E[2]*o}return[g[0]*t.fade,g[1]*t.fade,g[2]*t.fade]}static shellRange(t,a){const s=p.EARTH_KM,n=l=>{const o=t*a,g=t*t-l*l,c=o*o-g;if(c<0)return;const f=Math.sqrt(c);return[-o-f,-o+f]},i=n(s);if(i&&i[0]>0)return;const r=n(s+p.BOTTOM_KM),e=n(s+p.TOP_KM);return[Math.max(0,r[1]),e[1]]}static emission(t,a){const s=Math.hypot(a[0],a[1],a[2]),n=s-p.EARTH_KM;if(n<p.BOTTOM_KM-10||n>p.TOP_KM)return[0,0,0];const i=[a[0]/s,a[1]/s,a[2]/s],r=Math.asin(Math.max(-1,Math.min(1,i[0]*t.axis[0]+i[1]*t.axis[1]+i[2]*t.axis[2])))*180/Math.PI,e=Math.abs(F.footLatitude(r,n)),l=F.localTime(i,t.axis,t.sun),o=D.edgeAt(t.edgeDeg,l),g=t.widthDeg*(1-.4*(1-Math.cos(l*Math.PI/12))/2),c=p,f=u.smoothstep(o-1,o+.5,e)*(1-u.smoothstep(o+g-1,o+g+1.5,e));let K=t.diffuseKR*f*c.exponential(n,c.DIFFUSE_BASE_KM,c.DIFFUSE_SCALE_KM),E=t.diffuseKR*f*c.RED_OF_GREEN*c.gaussian(n,c.RED_PEAK_KM,c.RED_WIDTH_KM),_=0;const m=u.sunlit(a,t.sun);for(const R of t.arcs){const h=(e-(o+R.offsetDeg))/c.ARC_THICKNESS_DEG,M=Math.exp(-.5*h*h);if(M<1e-4)continue;const T=R.kr*M,x=T*c.exponential(n,c.ARC_BASE_KM,c.ARC_SCALE_KM);K+=x,E+=T*t.arcRed.share*c.gaussian(n,t.arcRed.peakKm,t.arcRed.widthKm),_+=x*c.BLUE_OF_GREEN+T*m*c.SUNLIT_BLUE_OF_GREEN*c.gaussian(n,300,120)}if(t.redKR>0){const R=(e-(o-1))/3;E+=t.redKR*Math.exp(-.5*R*R)*c.gaussian(n,c.STORM_RED_PEAK_KM,c.STORM_RED_WIDTH_KM)}return[K,E,_]}static sunlit(t,a){const s=t[0]*a[0]+t[1]*a[1]+t[2]*a[2];if(s>0)return 1;const n=Math.hypot(t[0]-s*a[0],t[1]-s*a[1],t[2]-s*a[2]);return u.smoothstep(p.EARTH_KM+20,p.EARTH_KM+80,n)}static smoothstep(t,a,s){const n=Math.min(1,Math.max(0,(s-t)/(a-t)));return n*n*(3-2*n)}}export{p as A,S as a,u as b,A as c,D as d};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{M as h,_ as o}from"./rr0-ufoathome.mjs";import{b as d,P as p}from"./SaidPosition-OJEYhVKN.js";import{ba as g}from"./ShareDialogElement-CBeU9ChH.js";import{S as c}from"./SkyEventEditorStyle-CvY_AhbI.js";import{P as f,E as _}from"./ParameterForm-XbqxCLRn.js";import{c as u,d as n}from"./Aurora-CpZx9hQ3.js";import"./GeoProjection-DvqDbRIx.js";import"./Sighting-B7bsiTIQ.js";import"./VisualAids-DI-hEL46.js";import"./three.module-CbaHqYFq.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";const E=h.catalog({en:()=>o(()=>import("./AuroraParameterTexts_en-shkUd-dT.js"),[],import.meta.url).then(a=>a.auroraParameterTexts_en),fr:()=>o(()=>import("./AuroraParameterTexts_fr-CoJnicWs.js"),[],import.meta.url).then(a=>a.auroraParameterTexts_fr),es:()=>o(()=>import("./AuroraParameterTexts_es-CwGYyafK.js"),[],import.meta.url).then(a=>a.auroraParameterTexts_es),it:()=>o(()=>import("./AuroraParameterTexts_it-DHniBj_2.js"),[],import.meta.url).then(a=>a.auroraParameterTexts_it)}),y=h.catalog({en:()=>o(()=>import("./AuroraEditorMessages_en-CpU3BS-B.js"),[],import.meta.url).then(a=>a.auroraEditorMessages_en),fr:()=>o(()=>import("./AuroraEditorMessages_fr-0DtPXXAs.js"),[],import.meta.url).then(a=>a.auroraEditorMessages_fr),es:()=>o(()=>import("./AuroraEditorMessages_es-i8-psDHN.js"),[],import.meta.url).then(a=>a.auroraEditorMessages_es),it:()=>o(()=>import("./AuroraEditorMessages_it-Dn2UHyk9.js"),[],import.meta.url).then(a=>a.auroraEditorMessages_it)});class s{static fromKp(t){return r=>t(u.kpAt(r,0))}static time(t,r,e){return{type:"number",key:t,min:-36e3,max:36e3,step:1,unit:"s",scale:.001,label:r,hint:e,group:"when"}}static SET={kind:"aurora",title:"aurora",parameters:[{type:"said",key:"title",label:"name",group:"field"},{type:"number",key:"kp",min:0,max:12,step:.33,label:"kp",hint:"kpHint",effective:t=>t.activity?.length?u.kpAt(t,0):n.DEFAULT_KP,group:"field"},{type:"number",key:"edgeLatDeg",min:20,max:75,step:.1,unit:"°",label:"edge",hint:"edgeHint",effective:s.fromKp(t=>Math.round(n.equatorwardEdgeDeg(t)*10)/10),group:"field"},{type:"number",key:"arcs",min:0,max:4,step:1,label:"arcs",hint:"arcsHint",effective:s.fromKp(n.arcsOf),group:"light"},{type:"number",key:"arcKR",min:.1,max:1e3,step:.1,unit:"kR",label:"arcBrightness",hint:"arcBrightnessHint",effective:s.fromKp(t=>Math.round(n.arcKROf(t)*10)/10),group:"light"},{type:"number",key:"redKR",min:0,max:100,step:.1,unit:"kR",label:"red",hint:"redHint",effective:s.fromKp(t=>Math.round(n.redKROf(t)*10)/10),group:"light"},s.time("fromT","from","fromHint"),s.time("untilT","until","untilHint")]};static publish(){d.publish(s.SET)}}class l{constructor(t,r,e){this.container=t,this.host=r,c.attach(t,"aurora-editor-part",l.STYLE),this.language=e,d.of("aurora")||s.publish(),this.ready=this.setLanguage(e)}messages;parameterTexts;ready;languageToken=0;currentId;form;list;language;shown=[];static STYLE=".aurora-editor-part { flex-basis: 100%; min-width: 0; } .aurora-editor-part .aurora-editor, .aurora-editor-part .aurora-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; } .aurora-editor-part #aurora-list, .aurora-editor-part .aurora-fields { flex-basis: 100%; min-width: 0; } .aurora-editor-part [hidden] { display: none !important; } .aurora-editor-part .aurora-intro { flex-basis: 100%; margin: 0; } .aurora-editor-part .aurora-parameters { flex-basis: 100%; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; } .aurora-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; } .aurora-editor-part input, .aurora-editor-part select { max-width: 100%; box-sizing: border-box; } .aurora-editor-part label { min-width: 0; max-width: 100%; } .aurora-editor-part input.parameter-derived::placeholder { opacity: .65; }";async setLanguage(t){const r=++this.languageToken;this.language=t;const[e,i]=await Promise.all([y.load(t),E.load(t)]);r===this.languageToken&&(this.messages=e,this.parameterTexts=i,this.render(),this.sync())}sync(){if(!this.messages)return;const t=this.auroras;this.shown=[...t],t.some(i=>i.id===this.currentId)||(this.currentId=t[0]?.id),this.list?.setItems(t.map(i=>({id:i.id,label:this.labelOf(i)})),this.currentId);const r=this.current;if(this.element("aurora-fields").hidden=r===void 0,!r)return;const e=p.resolve(d.of("aurora"),this.parameterTexts);this.form??=new f(this.element("aurora-parameters"),this.language,"",{said:()=>this.host.said(),writingLanguage:()=>this.host.writingLanguage()}),this.form.show(e,r,()=>this.host.changed())}refresh(){if(!this.messages)return;const t=this.auroras;t.length===this.shown.length&&t.every((r,e)=>r===this.shown[e])||this.sync()}setTime(t){}get current(){return this.auroras.find(t=>t.id===this.currentId)}render(){const t=this.messages;this.form=void 0,this.container.innerHTML=`<div class="aurora-editor">
|
|
2
|
+
<p class="aurora-intro">${t.intro}</p>
|
|
3
|
+
<div id="aurora-list"></div>
|
|
4
|
+
<div id="aurora-fields" class="aurora-fields">
|
|
5
|
+
<div id="aurora-parameters" class="aurora-parameters"></div>
|
|
6
|
+
<p class="aurora-intro">${t.derivedNote}</p>
|
|
7
|
+
</div>
|
|
8
|
+
</div>`,this.list=new _({header:this.element("aurora-list"),body:this.element("aurora-fields"),ids:{list:"aurora-select",remove:"aurora-delete",add:"aurora-add"},onSelect:r=>{this.currentId=r,this.sync()},onAdd:()=>this.addAurora(),onRemove:()=>this.deleteCurrent()}),this.list.setLabels({list:t.aurora,remove:t.deleteAurora,add:t.addAurora,empty:t.none})}addAurora(){const t=this.host.sighting(),r=new Set(this.auroras.map(m=>m.id));let e=this.auroras.length+1;for(;r.has(`aurora-${e}`);)e++;const i={id:`aurora-${e}`,kp:5};t.skyEvents={...t.skyEvents,auroras:[...this.auroras,i]},this.currentId=i.id,this.host.changed(),this.sync()}deleteCurrent(){const t=this.current;if(!t)return;const r=this.host.sighting();r.skyEvents=g.written({...r.skyEvents,auroras:this.auroras.filter(e=>e!==t)}),this.host.changed(),this.sync()}labelOf(t){const r=t.title?this.host.said().read(t.title):"";return r?`${r} (${t.id})`:t.id}get auroras(){return this.host.sighting().skyEvents?.auroras??[]}element(t){return this.container.querySelector(`#${t}`)}}export{l as AuroraEditor};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={intro:"An aurora is a fact of the sky. Without one stated here, the scene shows the one the Kp index archived by the GFZ implies for the date and place; one stated here replaces it.",none:"No aurora stated",aurora:"Aurora",deleteAurora:"Delete this aurora",addAurora:"Add an aurora",derivedNote:"An empty field shows the value Kp implies."};export{e as auroraEditorMessages_en};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a={intro:"Una aurora es un hecho del cielo. Si no se indica ninguna aquí, la escena muestra la que implica, para la fecha y el lugar, el índice Kp archivado por el GFZ; una indicada aquí la sustituye.",none:"Ninguna aurora indicada",aurora:"Aurora",deleteAurora:"Eliminar esta aurora",addAurora:"Añadir una aurora",derivedNote:"Un campo vacío muestra el valor que implica Kp."};export{a as auroraEditorMessages_es};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={intro:"Une aurore est un fait du ciel. Sans aucune donnée ici, la scène montre celle qu'implique, pour la date et le lieu, l'indice Kp archivé par le GFZ ; une aurore donnée ici la remplace.",none:"Aucune aurore donnée",aurora:"Aurore",deleteAurora:"Supprimer cette aurore",addAurora:"Ajouter une aurore",derivedNote:"Un champ vide montre la valeur qu'implique Kp."};export{e as auroraEditorMessages_fr};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a={intro:"Un'aurora è un fatto del cielo. Se qui non ne è indicata nessuna, la scena mostra quella che l'indice Kp archiviato dal GFZ implica per la data e il luogo; una indicata qui la sostituisce.",none:"Nessuna aurora indicata",aurora:"Aurora",deleteAurora:"Elimina questa aurora",addAurora:"Aggiungi un'aurora",derivedNote:"Un campo vuoto mostra il valore che Kp implica."};export{a as auroraEditorMessages_it};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={title:"Aurorae",name:"Aurora",detail:"{name} (Kp {kp}): {green} kR of green and {red} kR of red along this line of sight"};export{e as auroraKindMessages_en};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={title:"Auroras",name:"Aurora polar",detail:"{name} (Kp {kp}): {green} kR de verde y {red} kR de rojo a lo largo de esta línea de visión"};export{e as auroraKindMessages_es};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={title:"Aurores",name:"Aurore polaire",detail:"{name} (Kp {kp}) : {green} kR de vert et {red} kR de rouge le long de cette ligne de visée"};export{e as auroraKindMessages_fr};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={title:"Aurore",name:"Aurora polare",detail:"{name} (Kp {kp}): {green} kR di verde e {red} kR di rosso lungo questa linea di vista"};export{e as auroraKindMessages_it};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={aurora:"Aurora",name:"Name",field:"Magnetic field",light:"Light",when:"When",kp:"Kp index",kpHint:"How disturbed the Earth's magnetic field was, 0 (quiet) to 9 (extreme storm), as the planetary index states it; past 9, the GFZ's open-ended Hp.",edge:"Equatorward edge",edgeHint:"The geomagnetic latitude of the oval's edge nearest the equator, at magnetic midnight: stated when known otherwise than from Kp, which stops at 9.",arcs:"Arcs",arcsHint:"How many discrete arcs stand in the oval; 0 for a diffuse glow only.",arcBrightness:"Arcs' brightness",arcBrightnessHint:"Kilorayleighs of the green line through an arc's height: 1 is as bright as the Milky Way, 10 as thin cirrus in moonlight, 100 as moonlit cumulus, 1000 lights the ground as a full Moon.",red:"Storm red",redHint:"Kilorayleighs of the high red line of a storm, which is what an aurora seen from far equatorward is mostly made of.",from:"From",fromHint:"Seconds of the recording; negative before it starts. From the start when empty.",until:"Until",untilHint:"Seconds of the recording. Until the end when empty."};export{e as auroraParameterTexts_en};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={aurora:"Aurora",name:"Nombre",field:"Campo magnético",light:"Luz",when:"Cuándo",kp:"Índice Kp",kpHint:"Lo agitado que estaba el campo magnético terrestre, de 0 (tranquilo) a 9 (tormenta extrema), según el índice planetario; por encima de 9, el índice Hp del GFZ, sin techo.",edge:"Borde hacia el ecuador",edgeHint:"La latitud geomagnética del borde del óvalo más cercano al ecuador, a medianoche magnética: se indica cuando se conoce de otro modo que por Kp, que se detiene en 9.",arcs:"Arcos",arcsHint:"Cuántos arcos distintos hay en el óvalo; 0 para un simple resplandor difuso.",arcBrightness:"Brillo de los arcos",arcBrightnessHint:"Kilorayleighs de la línea verde a lo alto de un arco: 1, el brillo de la Vía Láctea; 10, un cirro fino a la luz de la luna; 100, un cúmulo a la luz de la luna; 1000 ilumina el suelo como la luna llena.",red:"Rojo de tormenta",redHint:"Kilorayleighs de la línea roja alta de una tormenta magnética, de la que se compone sobre todo una aurora vista de lejos hacia el ecuador.",from:"Desde",fromHint:"Segundos de la grabación; negativos antes de su inicio. Desde el inicio si está vacío.",until:"Hasta",untilHint:"Segundos de la grabación. Hasta el final si está vacío."};export{e as auroraParameterTexts_es};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={aurora:"Aurore",name:"Nom",field:"Champ magnétique",light:"Lumière",when:"Quand",kp:"Indice Kp",kpHint:"Le degré d'agitation du champ magnétique terrestre, de 0 (calme) à 9 (tempête extrême), tel que le donne l'indice planétaire ; au-delà de 9, l'indice Hp du GFZ, sans plafond.",edge:"Bord côté équateur",edgeHint:"La latitude géomagnétique du bord de l'ovale le plus proche de l'équateur, à minuit magnétique : à donner quand on la connaît autrement que par Kp, qui s'arrête à 9.",arcs:"Arcs",arcsHint:"Le nombre d'arcs distincts dans l'ovale ; 0 pour une simple lueur diffuse.",arcBrightness:"Éclat des arcs",arcBrightnessHint:"En kilorayleighs de la raie verte sur la hauteur d'un arc : 1, l'éclat de la Voie lactée ; 10, un cirrus fin au clair de lune ; 100, un cumulus au clair de lune ; 1 000 éclaire le sol comme la pleine Lune.",red:"Rouge d'orage",redHint:"En kilorayleighs de la raie rouge haute d'un orage magnétique, ce dont est surtout faite une aurore vue de loin vers l'équateur.",from:"De",fromHint:"Secondes de l'enregistrement, négatives avant son début. Depuis le début si vide.",until:"À",untilHint:"Secondes de l'enregistrement. Jusqu'à la fin si vide."};export{e as auroraParameterTexts_fr};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a={aurora:"Aurora",name:"Nome",field:"Campo magnetico",light:"Luce",when:"Quando",kp:"Indice Kp",kpHint:"Quanto era agitato il campo magnetico terrestre, da 0 (calmo) a 9 (tempesta estrema), come lo dà l'indice planetario; oltre 9, l'indice Hp del GFZ, senza tetto.",edge:"Bordo verso l'equatore",edgeHint:"La latitudine geomagnetica del bordo dell'ovale più vicino all'equatore, a mezzanotte magnetica: da indicare quando la si conosce altrimenti che da Kp, che si ferma a 9.",arcs:"Archi",arcsHint:"Quanti archi distinti stanno nell'ovale; 0 per un semplice bagliore diffuso.",arcBrightness:"Luminosità degli archi",arcBrightnessHint:"Kilorayleigh della riga verde lungo l'altezza di un arco: 1, la luminosità della Via Lattea; 10, un cirro sottile al chiaro di luna; 100, un cumulo al chiaro di luna; 1000 illumina il suolo come la luna piena.",red:"Rosso di tempesta",redHint:"Kilorayleigh della riga rossa alta di una tempesta magnetica, di cui è fatta soprattutto un'aurora vista da lontano verso l'equatore.",from:"Da",fromHint:"Secondi della registrazione, negativi prima dell'inizio. Dall'inizio se vuoto.",until:"A",untilHint:"Secondi della registrazione. Fino alla fine se vuoto."};export{a as auroraParameterTexts_it};
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import{m as O,bc as p}from"./ShareDialogElement-CBeU9ChH.js";import{A,a as c,b,c as z}from"./Aurora-CpZx9hQ3.js";import{S as L,B as P,A as $,V as h,p as _,M as G,a as I}from"./three.module-CbaHqYFq.js";import"./rr0-ufoathome.mjs";import"./Sighting-B7bsiTIQ.js";import"./VisualAids-DI-hEL46.js";import"./SaidPosition-OJEYhVKN.js";import"./GeoProjection-DvqDbRIx.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";class r{static RADIUS=885;static MAX_ARCS=4;static STEPS=56;static ALTITUDES=[-3,0,1,2,4,7,12,20,35,60,90];object;material;shown=!1;constructor(){const e=A,a=i=>i.toFixed(6);this.material=new L({uniforms:{uAxis:{value:new h(0,1,0)},uSun:{value:new h(0,-1,0)},uObserverKm:{value:e.EARTH_KM},uEdge:{value:60},uWidth:{value:8},uDiffuse:{value:0},uRed:{value:0},uArcRed:{value:new h(.1,250,70)},uArcs:{value:Array.from({length:r.MAX_ARCS},()=>new _)},uArcCount:{value:0},uTime:{value:0},uGreenLight:{value:new h},uRedLight:{value:new h},uBlueLight:{value:new h},uAir:{value:r.ALTITUDES.map(()=>new h(1,1,1))}},vertexShader:`
|
|
2
|
+
varying vec3 vDirection;
|
|
3
|
+
void main() {
|
|
4
|
+
vDirection = (modelMatrix * vec4(position, 1.0)).xyz - cameraPosition;
|
|
5
|
+
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
6
|
+
}
|
|
7
|
+
`,fragmentShader:`
|
|
8
|
+
precision highp float;
|
|
9
|
+
varying vec3 vDirection;
|
|
10
|
+
uniform vec3 uAxis;
|
|
11
|
+
uniform vec3 uSun;
|
|
12
|
+
uniform float uObserverKm;
|
|
13
|
+
uniform float uEdge;
|
|
14
|
+
uniform float uWidth;
|
|
15
|
+
uniform float uDiffuse;
|
|
16
|
+
uniform float uRed;
|
|
17
|
+
/** The arcs' red: its share of their green, the height it peaks at and how wide, km. */
|
|
18
|
+
uniform vec3 uArcRed;
|
|
19
|
+
uniform vec4 uArcs[${r.MAX_ARCS}];
|
|
20
|
+
uniform int uArcCount;
|
|
21
|
+
uniform float uTime;
|
|
22
|
+
uniform vec3 uGreenLight;
|
|
23
|
+
uniform vec3 uRedLight;
|
|
24
|
+
uniform vec3 uBlueLight;
|
|
25
|
+
uniform vec3 uAir[${r.ALTITUDES.length}];
|
|
26
|
+
|
|
27
|
+
const float EARTH = ${a(e.EARTH_KM)};
|
|
28
|
+
const float BOTTOM = ${a(e.BOTTOM_KM)};
|
|
29
|
+
const float TOP = ${a(e.TOP_KM)};
|
|
30
|
+
const float DEG = 57.29577951308232;
|
|
31
|
+
const float PI = 3.141592653589793;
|
|
32
|
+
const int STEPS = ${r.STEPS};
|
|
33
|
+
|
|
34
|
+
float hash(vec2 p) { return fract(sin(dot(p, vec2(127.1, 311.7))) * 43758.5453); }
|
|
35
|
+
float noise1(float x, float seed) {
|
|
36
|
+
float i = floor(x); float t = x - i; t = t * t * (3.0 - 2.0 * t);
|
|
37
|
+
return mix(hash(vec2(i, seed)), hash(vec2(i + 1.0, seed)), t);
|
|
38
|
+
}
|
|
39
|
+
float exponential(float h, float base, float scale) {
|
|
40
|
+
float rise = smoothstep(base - 8.0, base + 2.0, h);
|
|
41
|
+
return rise * exp(-max(0.0, h - base) / scale) / (scale + 5.0);
|
|
42
|
+
}
|
|
43
|
+
float gaussian(float h, float peak, float width) {
|
|
44
|
+
float t = (h - peak) / width;
|
|
45
|
+
return exp(-0.5 * t * t) / (width * 2.5066283);
|
|
46
|
+
}
|
|
47
|
+
/** The standard normal's cumulative distribution (Abramowitz and Stegun 7.1.26 through erf). */
|
|
48
|
+
float cdf(float z) {
|
|
49
|
+
float x = abs(z) * 0.70710678;
|
|
50
|
+
float t = 1.0 / (1.0 + 0.3275911 * x);
|
|
51
|
+
float e = 1.0 - (((((1.061405429 * t - 1.453152027) * t) + 1.421413741) * t - 0.284496736) * t + 0.254829592) * t * exp(-x * x);
|
|
52
|
+
return 0.5 * (1.0 + sign(z) * e);
|
|
53
|
+
}
|
|
54
|
+
/** Where a point stands in the field: [the latitude its line comes down to at 100 km, magnetic longitude from the Sun, magnetic local time]. */
|
|
55
|
+
vec3 fieldOf(vec3 p, float r) {
|
|
56
|
+
vec3 u = p / r;
|
|
57
|
+
float s = clamp(dot(u, uAxis), -1.0, 1.0);
|
|
58
|
+
float c2 = 1.0 - s * s;
|
|
59
|
+
float foot = acos(sqrt(min(1.0, c2 * (EARTH + 100.0) / r))) * DEG;
|
|
60
|
+
vec3 across = u - s * uAxis;
|
|
61
|
+
vec3 sunFlat = uSun - dot(uSun, uAxis) * uAxis;
|
|
62
|
+
vec3 east = cross(uAxis, sunFlat);
|
|
63
|
+
float angle = atan(dot(east, across), dot(sunFlat, across));
|
|
64
|
+
float mlt = mod(12.0 + angle * 12.0 / PI, 24.0);
|
|
65
|
+
return vec3(foot, angle, mlt);
|
|
66
|
+
}
|
|
67
|
+
float sunlit(vec3 p) {
|
|
68
|
+
float along = dot(p, uSun);
|
|
69
|
+
if (along > 0.0) return 1.0;
|
|
70
|
+
return smoothstep(EARTH + 20.0, EARTH + 80.0, length(p - along * uSun));
|
|
71
|
+
}
|
|
72
|
+
vec3 airTowards(float altitude) {
|
|
73
|
+
${r.ALTITUDES.slice(1).map((i,t)=>`if (altitude < ${i.toFixed(1)}) return mix(uAir[${t}], uAir[${t+1}], (altitude - ${r.ALTITUDES[t].toFixed(1)}) / ${(i-r.ALTITUDES[t]).toFixed(1)});`).join(`
|
|
74
|
+
`)}
|
|
75
|
+
return uAir[${r.ALTITUDES.length-1}];
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
void main() {
|
|
79
|
+
vec3 dir = normalize(vDirection);
|
|
80
|
+
// The shell along this line: from where it enters the lowest that gives off light to where it leaves the highest.
|
|
81
|
+
float b = uObserverKm * dir.y;
|
|
82
|
+
float cGround = uObserverKm * uObserverKm - EARTH * EARTH;
|
|
83
|
+
float dGround = b * b - cGround;
|
|
84
|
+
if (dGround > 0.0 && -b - sqrt(dGround) > 0.0) discard;
|
|
85
|
+
float dBottom = b * b - (uObserverKm * uObserverKm - (EARTH + BOTTOM) * (EARTH + BOTTOM));
|
|
86
|
+
float dTop = b * b - (uObserverKm * uObserverKm - (EARTH + TOP) * (EARTH + TOP));
|
|
87
|
+
float s0 = max(0.0, -b + sqrt(max(dBottom, 0.0)));
|
|
88
|
+
float s1 = -b + sqrt(max(dTop, 0.0));
|
|
89
|
+
float ds = (s1 - s0) / float(STEPS);
|
|
90
|
+
vec3 origin = vec3(0.0, uObserverKm, 0.0);
|
|
91
|
+
float jitter = hash(gl_FragCoord.xy);
|
|
92
|
+
float green = 0.0, red = 0.0, blue = 0.0;
|
|
93
|
+
vec3 fieldA = fieldOf(origin + dir * s0, length(origin + dir * s0));
|
|
94
|
+
for (int i = 0; i < STEPS; i++) {
|
|
95
|
+
float sa = s0 + float(i) * ds;
|
|
96
|
+
float sm = sa + (0.25 + 0.5 * jitter) * ds;
|
|
97
|
+
vec3 pb = origin + dir * (sa + ds);
|
|
98
|
+
vec3 fieldB = fieldOf(pb, length(pb));
|
|
99
|
+
vec3 pm = origin + dir * sm;
|
|
100
|
+
float rm = length(pm);
|
|
101
|
+
float h = rm - EARTH;
|
|
102
|
+
vec3 fm = mix(fieldA, fieldB, 0.5);
|
|
103
|
+
float mlt = fm.z;
|
|
104
|
+
float noon = (1.0 - cos(mlt * PI / 12.0)) * 0.5;
|
|
105
|
+
float edge = uEdge + ${a(8)} * noon;
|
|
106
|
+
float width = uWidth * (1.0 - 0.4 * noon);
|
|
107
|
+
float band = smoothstep(edge - 1.0, edge + 0.5, fm.x) * (1.0 - smoothstep(edge + width - 1.0, edge + width + 1.5, fm.x));
|
|
108
|
+
green += uDiffuse * band * exponential(h, ${a(e.DIFFUSE_BASE_KM)}, ${a(e.DIFFUSE_SCALE_KM)}) * ds;
|
|
109
|
+
red += uDiffuse * band * ${a(e.RED_OF_GREEN)} * gaussian(h, ${a(e.RED_PEAK_KM)}, ${a(e.RED_WIDTH_KM)}) * ds;
|
|
110
|
+
if (uRed > 0.0) {
|
|
111
|
+
float t = (fm.x - (edge - 1.0)) / 3.0;
|
|
112
|
+
red += uRed * exp(-0.5 * t * t) * gaussian(h, ${a(e.STORM_RED_PEAK_KM)}, ${a(e.STORM_RED_WIDTH_KM)}) * ds;
|
|
113
|
+
}
|
|
114
|
+
float lit = sunlit(pm);
|
|
115
|
+
for (int a = 0; a < ${r.MAX_ARCS}; a++) {
|
|
116
|
+
if (a >= uArcCount) break;
|
|
117
|
+
vec4 arc = uArcs[a];
|
|
118
|
+
// Where it stands here along its length: folded, the folds drifting.
|
|
119
|
+
float phi = fm.y;
|
|
120
|
+
float centre = edge + arc.x + 0.6 * sin(9.0 * phi + 0.004 * uTime + arc.z) + 0.15 * sin(37.0 * phi - 0.02 * uTime + 2.0 * arc.z);
|
|
121
|
+
// The share of the sheet this step crosses, integrated across it: a sheet a few km thick is never stepped over.
|
|
122
|
+
float sigma = ${a(e.ARC_THICKNESS_DEG)};
|
|
123
|
+
float za = (fieldA.x - centre) / sigma, zb = (fieldB.x - centre) / sigma;
|
|
124
|
+
float across;
|
|
125
|
+
if (abs(zb - za) < 0.2) {
|
|
126
|
+
float z = 0.5 * (za + zb);
|
|
127
|
+
across = exp(-0.5 * z * z);
|
|
128
|
+
} else {
|
|
129
|
+
across = 2.5066283 * abs(cdf(zb) - cdf(za)) / abs(zb - za);
|
|
130
|
+
}
|
|
131
|
+
if (across < 1e-4) continue;
|
|
132
|
+
// Its rays: along the field, so a function of where along the arc the line comes down; they reach higher in places.
|
|
133
|
+
// Warped, for the rays not to stand at even intervals as a fence's posts do: their spacing and width wander along the arc.
|
|
134
|
+
float cell = phi * 260.0 + 4.0 * noise1(phi * 23.0 + uTime * 0.01, arc.w + 3.0) + arc.w + uTime * 0.6;
|
|
135
|
+
float n = 0.5 * noise1(cell, arc.w) + 0.3 * noise1(cell * 2.7, arc.w + 7.0) + 0.2 * noise1(cell * 7.3, arc.w + 11.0);
|
|
136
|
+
// Of mean 1, as AuroraRadiance's sheet is: the rays move the light about, they do not add to it.
|
|
137
|
+
float ray = 0.4 + 2.0 * n * n;
|
|
138
|
+
float tall = 0.6 + 0.9 * noise1(phi * 90.0 + arc.w, 3.0 + arc.w);
|
|
139
|
+
float sheet = arc.y * across * ray;
|
|
140
|
+
float g = sheet * exponential(h, ${a(e.ARC_BASE_KM)}, ${a(e.ARC_SCALE_KM)} * tall);
|
|
141
|
+
green += g * ds;
|
|
142
|
+
red += sheet * uArcRed.x * gaussian(h, uArcRed.y, uArcRed.z * tall) * ds;
|
|
143
|
+
blue += (g * ${a(e.BLUE_OF_GREEN)} + sheet * lit * ${a(e.SUNLIT_BLUE_OF_GREEN)} * gaussian(h, 300.0, 120.0)) * ds;
|
|
144
|
+
}
|
|
145
|
+
fieldA = fieldB;
|
|
146
|
+
}
|
|
147
|
+
float altitude = asin(clamp(dir.y, -1.0, 1.0)) * DEG;
|
|
148
|
+
vec3 light = (green * uGreenLight + red * uRedLight + blue * uBlueLight) * airTowards(altitude);
|
|
149
|
+
if (max(light.r, max(light.g, light.b)) <= 0.0) discard;
|
|
150
|
+
gl_FragColor = vec4(min(light, vec3(60000.0)), 1.0);
|
|
151
|
+
}
|
|
152
|
+
`,transparent:!0,blending:$,depthWrite:!1,side:P,fog:!1}),this.object=new G(new I(r.RADIUS,96,48),this.material),this.object.name="aurora",this.object.renderOrder=-1,this.object.frustumCulled=!1,this.object.visible=!1}get count(){return this.shown?1:0}set(e,a,i){if(this.shown=e!==void 0,this.object.visible=this.shown,!e)return;const t=this.material.uniforms;t.uAxis.value.set(...e.axis),t.uSun.value.set(...e.sun).normalize(),t.uObserverKm.value=A.EARTH_KM+e.observerHeightKm,t.uEdge.value=e.edgeDeg,t.uWidth.value=e.widthDeg,t.uDiffuse.value=e.diffuseKR,t.uRed.value=e.redKR,t.uArcRed.value.set(e.arcRed.share,e.arcRed.peakKm,e.arcRed.widthKm);const l=e.arcs.slice(0,r.MAX_ARCS);t.uArcCount.value=l.length,l.forEach((o,d)=>t.uArcs.value[d].set(o.offsetDeg,o.kr,o.foldPhase,o.rayPhase)),t.uTime.value=e.timeS;const u=a*e.fade,s=(o,d)=>d.set(o.colour[0],o.colour[1],o.colour[2]).multiplyScalar(o.cdM2PerKR*u);s(c.GREEN,t.uGreenLight.value),s(c.RED,t.uRedLight.value),s(c.BLUE,t.uBlueLight.value),r.ALTITUDES.forEach((o,d)=>{const n=i({altitudeDeg:Math.max(o,0),azimuthDeg:0});t.uAir.value[d].set(n[0],n[1],n[2])})}dispose(){this.object.geometry.dispose(),this.material.dispose(),this.object.removeFromParent()}}class T{inSky=!0;static DAYLIGHT_DEG=-4;system=new r;lit;get object(){return this.system.object}get drawnCount(){return this.system.count}drawn;update(e,a,i){const t=i.date?this.viewOf(e,a,i):void 0;this.system.set(t,i.relativeScale,l=>i.transmittanceFromSpace(l)),this.drawn=t&&{view:t,relativeScale:i.relativeScale},this.lightGround(t,i)}pick(e,a,i){if(!this.drawn)return;const{view:t,relativeScale:l}=this.drawn,[u,s,o]=b.along(t,[a.x,a.y,a.z]);if(!((u*c.GREEN.cdM2PerKR+s*c.RED.cdM2PerKR+o*c.BLUE.cdM2PerKR)*l<.1*i.skyLightTowards(a)))return{id:t.id,detail:{kp:t.kp,green:u,red:s}}}viewOf(e,a,i){const t=new Date(i.date.getTime()),l=O("Sun",t,{lat:i.observer.lat,lng:i.observer.lng,elevationM:i.observer.heightM});if(l.altitudeDeg>T.DAYLIGHT_DEG)return;const u=p(l.altitudeDeg,l.azimuthDeg,1);for(const s of e){const o=z.viewAt(s,a,i.observer,t,[u.x,u.y,u.z]);if(o)return o}}lightGround(e,a){if(!e){this.lit&&a.lightFrom([]),this.lit=void 0;return}const i=`${e.kp.toFixed(1)}:${e.fade.toFixed(2)}:${Math.floor(e.timeS/10)}:${a.observer.lat.toFixed(2)}:${a.observer.lng.toFixed(2)}`;if(this.lit?.key===i)return;let t=0,l=0,u={altitudeDeg:90,azimuthDeg:0};const s=[3,10,22,40,62,82],o=12;for(let n=0;n<s.length;n++){const E=n===0?0:(s[n-1]+s[n])/2,R=n===s.length-1?90:(s[n]+s[n+1])/2,x=2*Math.PI*(Math.sin(R*Math.PI/180)-Math.sin(E*Math.PI/180))/o,D=Math.sin(s[n]*Math.PI/180);for(let g=0;g<o;g++){const f={altitudeDeg:s[n],azimuthDeg:360*g/o},m=p(f.altitudeDeg,f.azimuthDeg,1),[S,M,w]=b.along(e,[m.x,m.y,m.z],48),K=a.transmittanceFromSpace(f)[1]*a.cloudTransmission(f),v=(S*c.GREEN.cdM2PerKR+M*c.RED.cdM2PerKR+w*c.BLUE.cdM2PerKR)*K;t+=v*x*D,v>l&&(l=v,u=f)}}const d=t<1e-4?[]:[{position:u,magnitude:-14.18-2.5*Math.log10(t)}];this.lit={key:i,sources:d},a.lightFrom(d)}dispose(){this.system.dispose()}}export{T as AuroraSimulation};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{S as l}from"./Account-C4jhsVtN.js";import{S as h}from"./rr0-ufoathome.mjs";import{N as m}from"./NearestApproach-Do15yfeg.js";import{CoverageAssessor as S}from"./CoverageAssessor-CiqUEJkN.js";import"./ShareDialogElement-CBeU9ChH.js";import"./Sighting-B7bsiTIQ.js";import"./VisualAids-DI-hEL46.js";import"./three.module-CbaHqYFq.js";import"./SaidPosition-OJEYhVKN.js";import"./GeoProjection-DvqDbRIx.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";class s{about="observer";static PAGE_WORDS=250;static ARTICLE_WORDS=500;static CLOSE_M=150;static WEIGHTS={witnesses:.25,occupation:.2,relation:.15,geography:.15,activity:.15,age:.1};static OCCUPATIONS={student:.3,worker:.5,farmer:.5,homemaker:.5,merchant:.7,business:.7,employee:.7,artist:.7,technician:.9,police:.9,pilot:.9,military:1};static RELATIONS={friends:.3,family:.6,professional:.8,none:1};static ACTIVITIES={leisure:.3,travelling:.6,cultural:.8,working:1};static FACTORS=l;static PENDING="pending";static WEAKEST_FIRST=["fitted","assumed","derived","stated","measured","established"];async assess(t){const e=t.account??{},i=this.information(t,e),o=this.strangeness(t,e),u=this.reliability(t,e),v=i.value,n=o.filter(d=>d.value>0).length/s.FACTORS.length,c=s.WEIGHTS,a=Object.keys(c).reduce((d,p)=>d+c[p]*u[p].value,0),r=[this.criterion("bg-information",i),...s.FACTORS.map((d,p)=>this.criterion(`bg-${d}`,o[p])),...Object.keys(c).map(d=>this.criterion(`bg-${d}`,u[d]))],b=Object.values(e.strangeness??{}).some(d=>d!==void 0);return e.source===void 0||!b?{verdict:s.PENDING,factors:{q:v,sigma:n,pi:a},criteria:r}:{score:v*n*a,factors:{q:v,sigma:n,pi:a},criteria:r}}criterion(t,e){return{id:t,value:e.value,basis:e.basis,paths:e.basis===void 0?[]:e.paths}}information(t,e){const i=e.source;if(i===void 0)return{value:0,paths:[]};const o=this.basis(t,"account.source"),u=e.enquiryMinutes,v=(a,r,b)=>u===void 0?{value:b,basis:this.weakest(o,"assumed"),paths:["account.source"]}:{value:u>=a?r:b,basis:this.weakest(o,this.basis(t,"account.enquiryMinutes")),paths:["account.source","account.enquiryMinutes"]},n=this.words(t),c=(a,r,b)=>({value:n>=a?r:b,basis:this.weakest(o,"derived"),paths:["account.source","event.description"]});switch(i){case"on-site":return v(120,1,.9);case"interview":return v(60,.9,.8);case"telephone":return v(30,.7,.6);case"questionnaire":return e.followedUp?c(s.PAGE_WORDS,.7,.6):{value:.6,basis:o,paths:["account.source"]};case"letter":case"social-media":return e.followedUp?c(s.PAGE_WORDS,.6,.5):c(s.PAGE_WORDS,.4,.3);case"press":return c(s.ARTICLE_WORDS,.2,.1)}}words(t){return(h.any.read(t.event.description)??"").split(/\s+/).filter(i=>i!=="").length}strangeness(t,e){const i=e.strangeness??{},o=s.FACTORS.map(n=>{const c=i[n];if(c!==void 0){const a=`account.strangeness.${n}`;return{value:c?1:0,basis:this.basis(t,a),paths:[a]}}switch(n){case"detection":{const a=t.instrument.category;return{value:a==="eye"||a==="binoculars"?0:1,basis:"derived",paths:["instrumentId"]}}case"close":{const a=m.of(t);return a===void 0?{value:0,paths:[]}:{value:a.m<=s.CLOSE_M?1:0,basis:a.basis,paths:a.paths}}case"beings":{const a=t.decor.map((r,b)=>({object:r,index:b})).filter(({object:r})=>r.kind==="entity");return a.length>0?{value:1,basis:"stated",paths:a.map(({index:r})=>`decor.${r}`)}:{value:0,basis:"derived",paths:["decor"]}}default:return{value:0,paths:[]}}}),u=s.FACTORS.indexOf("beings");return!["appearance","movement","incongruity"].some(n=>o[s.FACTORS.indexOf(n)].value>0)&&o[u].value>0&&(o[u]={...o[u],value:0}),o}reliability(t,e){const i=t.observerCount,o=i===1,u=i===1?.3:i===2?.5:i<=5?.7:i<=10?.9:1,v=e.observerGraduate?{value:1,basis:this.basis(t,"account.observerGraduate"),paths:["account.observerGraduate"]}:e.observerOccupationKind===void 0?{value:0,paths:[]}:{value:s.OCCUPATIONS[e.observerOccupationKind],basis:this.basis(t,"account.observerOccupationKind"),paths:["account.observerOccupationKind"]},n=o?{value:.6,basis:"derived",paths:["decor"]}:e.observersRelation===void 0?{value:0,paths:[]}:{value:s.RELATIONS[e.observersRelation],basis:this.basis(t,"account.observersRelation"),paths:["account.observersRelation"]},c=e.activity!==void 0?{value:s.ACTIVITIES[e.activity],basis:this.basis(t,"account.activity"),paths:["account.activity"]}:t.vehicle!==void 0?{value:s.ACTIVITIES.travelling,basis:"derived",paths:["vehicle"]}:{value:0,paths:[]},a=e.observerAgeYears,r=a===void 0?{value:0,paths:[]}:{value:a<10||a>75?.2:a<18?.4:a<35?.6:a<65?1:.8,basis:this.basis(t,"account.observerAgeYears"),paths:["account.observerAgeYears"]};return{witnesses:{value:u,basis:"derived",paths:["decor"]},occupation:v,relation:n,geography:{value:.5,basis:"derived",paths:["decor"]},activity:c,age:r}}basis(t,e){return S.basisAt(e,t)??"stated"}weakest(...t){return s.WEAKEST_FIRST.find(e=>t.includes(e))}}export{s as BallesterGuaspAssessor};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import{M as m,_ as h,K as w,N as E,p as A,q as L}from"./rr0-ufoathome.mjs";import{a as f,b,P as O}from"./SaidPosition-OJEYhVKN.js";import{S as T}from"./SkyEventEditorStyle-CvY_AhbI.js";import{D as S}from"./DroneParameters-CfTAaLCT.js";import{BalloonFlight as c}from"./BalloonFlight-CztT6ddg.js";import{b as x}from"./Sighting-B7bsiTIQ.js";import{P as M,a as k,E as R}from"./ParameterForm-XbqxCLRn.js";import"./GeoProjection-DvqDbRIx.js";import"./DroneFlight-CGNIh9XS.js";import"./Decor-Dn-cvniW.js";import"./VisualAids-DI-hEL46.js";const I=m.catalog({en:()=>h(()=>import("./BalloonParameterTexts_en-CHm_vRVx.js"),[],import.meta.url).then(a=>a.balloonParameterTexts_en),fr:()=>h(()=>import("./BalloonParameterTexts_fr-IhyPRhYG.js"),[],import.meta.url).then(a=>a.balloonParameterTexts_fr),es:()=>h(()=>import("./BalloonParameterTexts_es-BYaljnsn.js"),[],import.meta.url).then(a=>a.balloonParameterTexts_es),it:()=>h(()=>import("./BalloonParameterTexts_it-BqBPIfav.js"),[],import.meta.url).then(a=>a.balloonParameterTexts_it)});class i{static BALLOON="balloon";static RELEASE="letGo";static AIR="air";static FLIGHT="flight";static viewOf(e){const{balloon:t,windsAloft:s,plan:n,...o}=structuredClone(e),r={...o,balloon:typeof t=="string"?t:t.id,mode:e.group?"group":"one"};if(typeof t=="object"){const{id:d,...u}=t;Object.keys(u).length>0&&(r.figures=u)}return e.group||(r.release=structuredClone(e.releases?.[0]??{t:0})),s?.[0]&&(r.windAloft={...s[0]}),n&&n.length===1&&(r.cruiseM=n[0].altitudeM),r}static fromView(e,t){const{balloon:s,figures:n,mode:o,release:r,windAloft:d,cruiseM:u,...v}=structuredClone(e),l={...v,balloon:n&&Object.keys(n).length>0?{...n,id:s}:s};if(o==="group"){const p=r?.t??t.releases?.[0]?.t??0;l.group={count:10,fromT:p,untilT:p+6e4,...e.group??{}},t.group&&t.releases?.length?l.releases=t.releases:delete l.releases}else{delete l.group;const p={...r??{},t:r?.t??t.group?.fromT??0};l.releases=[p,...t.group?[]:t.releases?.slice(1)??[]]}const g=t.windsAloft?.slice(1)??[];return d&&Object.values(d).some(p=>p!==void 0)?l.windsAloft=[{atM:d.atM??1e3,towardDeg:d.towardDeg??0,speedMS:d.speedMS??0},...g]:g.length>0&&(l.windsAloft=g),t.plan&&t.plan.length>1?l.plan=t.plan:u!==void 0&&(l.plan=[{t:t.plan?.[0]?.t??0,altitudeM:u}]),l.wind&&l.wind.towardDeg===void 0&&l.wind.speedMS===void 0?delete l.wind:l.wind&&(l.wind.towardDeg??=0,l.wind.speedMS??=0),l}static typeOf(e){const t=e;return c.typeOf({balloon:t.figures?{...t.figures,id:t.balloon}:t.balloon,shape:t.shape})}static FIGURE={hair:"#5a2e14",skin:"#e8955a",bottom:"#f39a1e",shoes:"#f2f2f2"};static one(e){return f.read(e,"mode")!=="group"}static instant(e,t,s,n){return{type:"number",key:e,min:-36e3,max:36e3,step:1,unit:"s",scale:.001,required:!0,label:t,hint:"secondsOfTheRecording",group:s,visibleWhen:n}}static SET={kind:"balloons",title:"balloons",parameters:[{type:"said",key:"title",label:"name",group:i.BALLOON},{type:"choice",key:"balloon",required:!0,group:i.BALLOON,label:"type",choices:w.ALL.map(e=>({value:e.id,label:S.textKey(e.id)}))},{type:"choice",key:"shape",group:i.BALLOON,label:"shape",effective:()=>"round",choices:E.map(e=>({value:e,label:e})),visibleWhen:e=>i.typeOf(e).shapes!==void 0},{type:"colour",key:"color",group:i.BALLOON,label:"colour",hint:"itsLightsForAnLedBalloon",effective:e=>{const t=i.typeOf(e);return t.glow?.color??t.color}},...["hair","skin","bottom","shoes"].map(e=>({type:"colour",key:`partColors.${e}`,group:i.BALLOON,label:e,fallback:i.FIGURE[e],visibleWhen:t=>f.read(t,"shape")==="figure"})),{type:"number",key:"flames",min:1,max:9,step:1,group:i.BALLOON,label:"flamesLit",hint:"candlesOrFlares",effective:e=>i.typeOf(e).flames?.count,visibleWhen:e=>i.typeOf(e).flames!==void 0},{type:"colour",key:"partColors.flame",group:i.BALLOON,label:"flameColour",effective:e=>i.typeOf(e).flames?.color,visibleWhen:e=>i.typeOf(e).flames!==void 0},{type:"number",key:"figures.launchVolumeM3",min:.001,max:1e6,step:.001,unit:"m³",group:i.BALLOON,label:"filledWith",hint:"atSeaLevel",effective:e=>i.typeOf(e).launchVolumeM3},{type:"number",key:"figures.massKg",min:1e-4,max:1e5,step:1e-4,unit:"kg",group:i.BALLOON,label:"weight",hint:"withoutItsGas",effective:e=>i.typeOf(e).massKg},{type:"set",key:"explains",group:i.BALLOON,label:"standForTheShapes",options:(e,t)=>{const s=t?.shapes??[],n=(e.explains??[]).filter(o=>!s.some(r=>r.value===o));return[...s,...n.map(o=>({value:o,label:o}))]},empty:"noShape"},{type:"position",key:"site.eastM",secondKey:"site.northM",saidKey:"site.saidPosition",native:"local",step:1,rangeM:1e5,group:i.RELEASE,label:"whereLetGo"},{type:"number",key:"site.altitudeM",min:-1e3,max:9e3,step:.1,unit:"m",group:i.RELEASE,effective:()=>0,label:"heightOfTheSite",hint:"aboveTheGroundOfThePlace"},{type:"number",key:"site.originElevationM",min:-500,max:6e3,step:1,unit:"m",group:i.RELEASE,effective:()=>0,label:"thePlaceAboveTheSea",hint:"whatSetsHowThinTheAir"},{type:"choice",key:"mode",required:!0,group:i.RELEASE,label:"howMany",choices:[{value:"one",label:"oneBalloon"},{value:"group",label:"aGroup"}]},i.instant("release.t","letGoAt",i.RELEASE,i.one),{type:"number",key:"release.altitudeM",min:0,max:47e3,step:1,unit:"m",group:i.RELEASE,label:"firstSeenAt",hint:"alreadyUp",visibleWhen:i.one},{type:"number",key:"group.count",min:1,max:500,step:1,required:!0,group:i.RELEASE,label:"count",visibleWhen:e=>!i.one(e)},i.instant("group.fromT","firstLetGoAt",i.RELEASE,e=>!i.one(e)),i.instant("group.untilT","lastLetGoAt",i.RELEASE,e=>!i.one(e)),{type:"number",key:"group.radiusM",min:0,max:5e3,step:1,unit:"m",group:i.RELEASE,effective:()=>10,label:"letGoWithin",visibleWhen:e=>!i.one(e)},{type:"number",key:"group.fillSpread",min:0,max:1,step:.01,group:i.RELEASE,effective:()=>.1,label:"fillingUnlike",hint:"asAShare",visibleWhen:e=>!i.one(e)},{type:"number",key:"group.seed",min:0,max:4294967295,step:1,group:i.RELEASE,effective:()=>1,label:"draw",hint:"whatTheDrawsStartFrom",visibleWhen:e=>!i.one(e)},{type:"number",key:"wind.towardDeg",min:0,max:360,step:1,unit:"°",group:i.AIR,label:"windTowards",hint:"atTheGround",effective:()=>0},{type:"number",key:"wind.speedMS",min:0,max:100,step:.1,unit:"m/s",group:i.AIR,label:"windSpeed",effective:()=>0},{type:"number",key:"windAloft.atM",min:10,max:47e3,step:10,unit:"m",group:i.AIR,label:"windAloftAt",hint:"aboveTheSite"},{type:"number",key:"windAloft.towardDeg",min:0,max:360,step:1,unit:"°",group:i.AIR,label:"windAloftTowards"},{type:"number",key:"windAloft.speedMS",min:0,max:150,step:.1,unit:"m/s",group:i.AIR,label:"windAloftSpeed"},{type:"number",key:"airTemperatureC",min:-60,max:50,step:.5,unit:"°C",group:i.AIR,effective:()=>15,label:"airTemperature",hint:"atTheSite"},{type:"number",key:"turbulence.horizontalMS",min:0,max:10,step:.1,unit:"m/s",group:i.AIR,effective:()=>c.TURBULENCE.horizontalMS,label:"gustsAcross"},{type:"number",key:"turbulence.verticalMS",min:0,max:10,step:.1,unit:"m/s",group:i.AIR,effective:()=>c.TURBULENCE.verticalMS,label:"gustsUpAndDown"},{type:"number",key:"cruiseM",min:0,max:1e4,step:1,unit:"m",group:i.FLIGHT,effective:()=>c.CRUISE_M,label:"pilotHolds",hint:"aboveTheSite",visibleWhen:e=>i.typeOf(e).burner!==void 0},{type:"number",key:"triggerM",min:10,max:1e4,step:10,unit:"m",group:i.FLIGHT,label:"torchLitAt",hint:"itsAltimeterLightsIt",effective:e=>i.typeOf(e).torch?.aboveM,visibleWhen:e=>i.typeOf(e).torch!==void 0},{type:"number",key:"tetherM",min:1,max:5e3,step:1,unit:"m",group:i.FLIGHT,effective:()=>c.TETHER_M,label:"line",visibleWhen:e=>i.typeOf(e).envelope==="sealed"},{type:"boolean",key:"lit",group:i.FLIGHT,label:"lampLit",hint:"theLampUnderIt",visibleWhen:e=>i.typeOf(e).lamp!==void 0},{type:"number",key:"durationS",min:1,max:86400,step:1,unit:"s",group:i.FLIGHT,effective:e=>i.typeOf(e).durationS,label:"computedFor",hint:"itMayBurstOrLandBefore"}]};static publish(){b.publish(i.SET)}}const N=m.catalog({en:()=>h(()=>import("./BalloonEditorMessages_en-B2n2FutN.js"),[],import.meta.url).then(a=>a.balloonEditorMessages_en),fr:()=>h(()=>import("./BalloonEditorMessages_fr-BmUizmQy.js"),[],import.meta.url).then(a=>a.balloonEditorMessages_fr),es:()=>h(()=>import("./BalloonEditorMessages_es-BXppdrpF.js"),[],import.meta.url).then(a=>a.balloonEditorMessages_es),it:()=>h(()=>import("./BalloonEditorMessages_it-Dx0JODqK.js"),[],import.meta.url).then(a=>a.balloonEditorMessages_it)});class y{constructor(e,t,s){this.container=e,this.host=t,T.attach(e,"balloon-editor-part",y.STYLE),this.language=s,b.of("balloons")||i.publish(),this.ready=this.setLanguage(s)}messages;ready;parameterTexts;languageToken=0;currentId;form;list;language;shown=[];viewed;static STYLE=`
|
|
2
|
+
.balloon-editor-part, .balloon-editor-part #balloon-list, .balloon-editor-part .launch-fields { flex-basis: 100%; min-width: 0; }
|
|
3
|
+
.balloon-editor-part .launch-editor, .balloon-editor-part .launch-fields { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
|
|
4
|
+
.balloon-editor-part [hidden] { display: none !important; }
|
|
5
|
+
.balloon-editor-part .launch-intro { flex-basis: 100%; margin: 0; }
|
|
6
|
+
.balloon-editor-part .launch-parameters { flex-basis: 100%; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20em), 1fr)); gap: 12px; align-items: start; }
|
|
7
|
+
.balloon-editor-part .parameter-group { min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
|
|
8
|
+
.balloon-editor-part .parameter-group > label { display: flex; flex-wrap: wrap; align-items: center; gap: .35em .5em; min-width: 0; max-width: 100%; }
|
|
9
|
+
.balloon-editor-part .parameter-group > label > span { flex: 1 1 11em; min-width: 0; overflow-wrap: anywhere; }
|
|
10
|
+
.balloon-editor-part .parameter-row { width: 100%; min-width: 0; }
|
|
11
|
+
.balloon-editor-part rr0-input-position { min-width: 0; max-width: 100%; }
|
|
12
|
+
.balloon-editor-part rr0-input-position .position-from { flex-wrap: wrap; white-space: normal; min-width: 0; max-width: 100%; }
|
|
13
|
+
.balloon-editor-part input, .balloon-editor-part select { min-width: 0; max-width: 100%; box-sizing: border-box; }
|
|
14
|
+
.balloon-editor-part input[type="text"] { width: 12em; }
|
|
15
|
+
.balloon-editor-part input.parameter-derived::placeholder { opacity: .65; }
|
|
16
|
+
`;async setLanguage(e){const t=++this.languageToken;this.language=e;const[s,n]=await Promise.all([N.load(e),I.load(e)]);t===this.languageToken&&(this.messages=s,this.parameterTexts=n,this.render(),this.sync())}sync(){if(!this.messages)return;const e=this.flights;this.shown=[...e],e.some(s=>s.id===this.currentId)||(this.currentId=e[0]?.id),this.list?.setItems(e.map(s=>({id:s.id,label:this.labelOf(s)})),this.currentId),this.syncAddState();const t=this.current;this.element("balloon-fields").hidden=t===void 0,t&&(this.syncNotes(),this.form??=new M(this.element("balloon-parameters"),this.language,"balloons.",{said:()=>this.host.said(),writingLanguage:()=>this.host.writingLanguage()}),this.form.show(this.resolved(i.SET),new k(()=>this.view,s=>this.editView(n=>s(n)),()=>({shapes:this.host.shapes().map(s=>({value:s.id,label:s.label}))}),this.host.positionPlace?.()),()=>this.written()))}refresh(){if(!this.messages)return;this.syncAddState();const e=this.flights;e.length===this.shown.length&&e.every((t,s)=>t.id===this.shown[s].id)||this.sync()}get current(){return this.flights.find(e=>e.id===this.currentId)}get view(){const e=this.current;if(e)return this.viewed?.of!==e&&(this.viewed={of:e,view:i.viewOf(e)}),this.viewed.view}syncAddState(){const e=this.frontOfObserver()!==void 0;this.list?.setAddState(e,e?void 0:this.messages.addNowhere)}syncNotes(){const e=this.current,t=e.group?e.releases?.length??0:Math.max(0,(e.releases?.length??0)-1),s=Math.max(0,(e.windsAloft?.length??0)-1),n=(e.plan?.length??0)>1?e.plan.length:0,o=[t>0?this.messages.releasesNote.replace("{n}",String(t)):"",s>0?this.messages.windsNote.replace("{n}",String(s)):"",n>0?this.messages.planNote.replace("{n}",String(n)):""].filter(Boolean),r=this.element("balloon-kept");r.hidden=o.length===0,r.textContent=o.join(" ")}resolved(e){return O.resolve(e,this.parameterTexts)}render(){if(!this.messages)return;const e=this.messages;this.form=void 0,this.container.innerHTML=`<div class="launch-editor">
|
|
17
|
+
<p class="launch-intro">${e.intro}</p>
|
|
18
|
+
<div id="balloon-list"></div>
|
|
19
|
+
<div id="balloon-fields" class="launch-fields">
|
|
20
|
+
<div id="balloon-parameters" class="launch-parameters"></div>
|
|
21
|
+
<p id="balloon-kept" class="launch-intro" hidden></p>
|
|
22
|
+
<p class="launch-intro">${e.derivedNote}</p>
|
|
23
|
+
</div>
|
|
24
|
+
</div>`,this.list=new R({header:this.element("balloon-list"),body:this.element("balloon-fields"),ids:{list:"balloon-select",remove:"balloon-delete",add:"balloon-add"},onSelect:t=>{this.currentId=t,this.sync()},onAdd:()=>this.addBalloon(),onRemove:()=>this.deleteCurrent()}),this.list.setLabels({list:e.balloon,remove:e.deleteBalloon,add:e.addBalloon,empty:e.none})}written(){const e=this.current;e&&(this.list?.rename(e.id,this.labelOf(e)),this.syncNotes())}editView(e){const t=this.current;if(!t)return;const s=structuredClone(this.view);e(s);const n=i.fromView(s,t);this.writeFlights(this.flights.map(o=>o===t?n:o)),this.host.changed()}frontOfObserver(){const e=this.host.sighting(),t=e.event?.place?.[0];if(t?.lat===void 0||t.lng===void 0)return;const s=e.observerTrack?.getInterpolatedPoseAt(this.host.currentTime?.()??0),n=111320,o=s?.lng!==void 0?(s.lng-t.lng)*n*Math.cos(t.lat*Math.PI/180):0,r=s?.lat!==void 0?(s.lat-t.lat)*n:0;return{eastM:o,northM:r,headingRad:(s?.headingDeg??0)*Math.PI/180}}addBalloon(){const e=this.frontOfObserver();if(!e)return;let t=this.flights.length+1;for(;this.flights.some(r=>r.id===`balloon-${t}`);)t++;const s=this.host.sighting(),n=s.weatherTrack?x(s,this.host.currentTime?.()??0):void 0,o={id:`balloon-${t}`,balloon:"weather",site:{eastM:Math.round(e.eastM+1e3*Math.sin(e.headingRad)),northM:Math.round(e.northM+1e3*Math.cos(e.headingRad))},releases:[{t:Math.round(this.host.currentTime?.()??0)}],...n?{wind:{towardDeg:Math.round((n.windDirectionDeg+180)%360),speedMS:Math.round(n.windSpeed*10)/10}}:{}};this.writeFlights([...this.flights,o]),this.currentId=o.id,this.host.changed(),this.sync()}deleteCurrent(){const e=this.current;e&&(this.currentId=void 0,this.writeFlights(this.flights.filter(t=>t!==e)),this.host.changed(),this.sync())}writeFlights(e){const t=this.host.sighting(),s={...t.interpretation??{bodies:[]},balloons:e.length>0?e:void 0};s.balloons===void 0&&delete s.balloons;const n=A.saysNothing(s,L.kinds());t.interpretation=n?void 0:s}labelOf(e){const t=this.host.said().read(e.title);return t?`${t} (${e.id})`:e.id}get flights(){return this.host.sighting().interpretation?.balloons??[]}element(e){return this.container.querySelector(`#${e}`)}}export{y as BalloonEditor};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{B as X}from"./rr0-ufoathome.mjs";class a{static SAMPLE_MS=1e3;static MAX_KEYFRAMES=6e3;static STEP_S=.05;static G=9.80665;static R=8.314462;static AIR_KG_MOL=.0289644;static R_AIR=a.R/a.AIR_KG_MOL;static TURBULENCE={horizontalMS:.8,verticalMS:.3,timescaleS:30};static GUST_GROUND_M=2;static MAX_FLAMES=9;static TETHER_M=30;static CRUISE_M=300;static PILOT_MS=2;static TITLES={"hot-air":{en:"Hot-air balloon",fr:"Montgolfière",es:"Globo aerostático",it:"Mongolfiera"},party:{en:"Party balloon",fr:"Ballon de baudruche",es:"Globo de fiesta",it:"Palloncino"},led:{en:"LED balloon",fr:"Ballon lumineux à LED",es:"Globo de LED",it:"Palloncino a LED"},foil:{en:"Foil balloon",fr:"Ballon métallisé",es:"Globo metalizado",it:"Palloncino metallizzato"},pilot:{en:"Pilot balloon",fr:"Ballon pilote",es:"Globo piloto",it:"Pallone pilota"},weather:{en:"Weather balloon",fr:"Ballon-sonde",es:"Globo sonda",it:"Pallone sonda"},stratospheric:{en:"Stratospheric balloon",fr:"Ballon stratosphérique",es:"Globo estratosférico",it:"Pallone stratosferico"},"stratospheric-large":{en:"Large stratospheric balloon",fr:"Grand ballon stratosphérique",es:"Gran globo estratosférico",it:"Grande pallone stratosferico"},superpressure:{en:"Superpressure balloon",fr:"Ballon pressurisé",es:"Globo presurizado",it:"Pallone pressurizzato"},infrared:{en:"Infrared hot-air balloon",fr:"Montgolfière infrarouge",es:"Globo infrarrojo",it:"Mongolfiera infrarossa"},"prank-candles":{en:"Prank balloon",fr:"Ballon farceur",es:"Globo de broma",it:"Pallone scherzo"},"prank-flares":{en:"Prank balloon with a flare",fr:"Ballon farceur à feu de détresse",es:"Globo de broma con bengala",it:"Pallone scherzo con razzo"},"anti-hail":{en:"Anti-hail balloon",fr:"Ballon anti-grêle",es:"Globo antigranizo",it:"Pallone antigrandine"},solar:{en:"Solar balloon",fr:"Ballon solaire",es:"Globo solar",it:"Pallone solare"},captive:{en:"Captive balloon",fr:"Ballon captif",es:"Globo cautivo",it:"Pallone frenato"}};static computed=new Map;static bodiesOf(e){const n=JSON.stringify(e);let r=a.computed.get(n);if(!r){const t=a.releasesOf(e);r=t.flatMap((c,o)=>a.balloonBodies(e,c,o,t.length)),a.computed.set(n,r),a.computed.size>16&&a.computed.delete(a.computed.keys().next().value)}return r}static typeOf(e){const n=e.balloon,r=typeof n=="string"?n:n?.id,t=X.byId(r)??X.ALL[0],c=t.shapes?t.shapes[e.shape??"round"]??Object.values(t.shapes)[0]:void 0,o=c?{...t,...c}:t;return typeof n=="string"?o:{...o,...n,id:o.id}}static flamesOf(e,n){return n.flames?Math.max(1,Math.min(9,Math.round(e.flames??n.flames.count))):0}static flameShare(e,n){const r=e.flames?.burnS;if(r===void 0||n<0||n>=r)return 0;const t=r*.75;return n<=t?1:(r-n)/(r-t)}static releasesOf(e){const n=[...e.releases??[]],r=e.group;if(r&&r.count>0){const t=a.randomFrom(r.seed??1),c=r.count>1?(r.untilT-r.fromT)/(r.count-1):0,o=r.radiusM??10,d=r.fillSpread??.1;for(let i=0;i<r.count;i++){const f=r.fromT+c*i+(t()-.5)*c,p=o*Math.sqrt(t()),u=2*Math.PI*t();n.push({t:Math.round(Math.min(r.untilT,Math.max(r.fromT,f))),eastM:Math.round(p*Math.sin(u)*10)/10,northM:Math.round(p*Math.cos(u)*10)/10,fill:Math.round((2*t()-1)*d*1e3)/1e3,...r.colors?.length?{color:r.colors[i%r.colors.length]}:{},seed:Math.floor(t()*4294967296)})}}return n.length>0?n:[{t:0}]}static airAt(e,n=0,r=0){const t=a.LAYERS,c=Math.max(-500,Math.min(a.EARTH_RADIUS_M*e/(a.EARTH_RADIUS_M+e),47e3));let o=t[0];for(const M of t)c>=M.fromM&&(o=M);const d=c-o.fromM,i=o.baseK+o.lapseKM*d,f=a.G*a.AIR_KG_MOL/a.R,p=o.lapseKM===0?o.basePa*Math.exp(-f*d/o.baseK):o.basePa*Math.pow(o.baseK/i,f/o.lapseKM),u=Math.max(0,1-Math.max(0,e-r)/11e3);return{pressurePa:p,temperatureK:i+n*u}}static EARTH_RADIUS_M=6356766;static LAYERS=[{fromM:0,baseK:288.15,basePa:101325,lapseKM:-.0065},{fromM:11e3,baseK:216.65,basePa:22632.06,lapseKM:0},{fromM:2e4,baseK:216.65,basePa:5474.889,lapseKM:.001},{fromM:32e3,baseK:228.65,basePa:868.0187,lapseKM:.0028}];static windAt(e,n){const r=[{atM:0,...e.wind??{towardDeg:0,speedMS:0}},...[...e.windsAloft??[]].sort((c,o)=>c.atM-o.atM)],t=c=>({x:Math.sin(c.towardDeg*Math.PI/180)*c.speedMS,y:Math.cos(c.towardDeg*Math.PI/180)*c.speedMS});if(n<=r[0].atM||r.length===1)return t(r[0]);for(let c=1;c<r.length;c++){if(n>r[c].atM)continue;const o=t(r[c-1]),d=t(r[c]),i=(n-r[c-1].atM)/Math.max(1e-6,r[c].atM-r[c-1].atM);return{x:o.x+(d.x-o.x)*i,y:o.y+(d.y-o.y)*i}}return t(r[r.length-1])}static planAt(e,n){const r=[...e.plan??[]].sort((c,o)=>c.t-o.t);if(r.length===0)return a.CRUISE_M;let t=r[0].altitudeM;for(const c of r)c.t<=n&&(t=c.altitudeM);return t}static widthOf(e,n){return e.widthM!==void 0?e.widthM:Math.cbrt(6*n/Math.PI)}static trajectory(e,n,r=a.SAMPLE_MS){const t=a.typeOf(e),c=e.site,o=c.altitudeM??0,d=c.originElevationM??0,i=d+o,f=(e.airTemperatureC??15)+273.15-a.airAt(i).temperatureK,p=t.gasMolarMassKgMol??X.HELIUM_KG_MOL,u=e.durationS??t.durationS,M=a.STEP_S,v=Math.ceil(u/M);r=Math.max(r,Math.ceil(u*1e3/a.MAX_KEYFRAMES/500)*500);const x=Math.max(1,Math.round(r/1e3/M)),K={x:c.eastM+(n.eastM??0),y:c.northM+(n.northM??0)},E=t.tethered?e.tetherM??a.TETHER_M:void 0,T=a.flamesOf(e,t),O=t.flames?(t.insideExcessK??0)*T/t.flames.count:0,A=l=>{const{pressurePa:m,temperatureK:b}=a.airAt(l+d,f,i);return{p:m,T:b,rho:m/(a.R_AIR*b)}},D=1+(n.fill??0),V=t.launchVolumeM3*D*101325*p/(a.R*288.15),z=n.altitudeM??o,s={x:K.x,y:K.y,z,vx:0,vy:0,vz:0,gasKg:V,excessK:0,burnUntilS:-1,ballastKg:t.ballastKg??0,floated:!1};if(t.envelope==="open"){const l=A(z);s.excessK=t.burner?Math.max(0,l.T*t.massKg/(l.rho*t.maxVolumeM3-t.massKg)):t.flames?O*a.flameShare(t,0):t.insideExcessK??0}const S=l=>{if(t.envelope==="sealed")return t.maxVolumeM3;if(t.envelope==="open")return t.launchVolumeM3>=t.maxVolumeM3?t.maxVolumeM3:Math.min(t.maxVolumeM3,t.launchVolumeM3*D*(101325/288.15)/(l.p/l.T));const m=s.gasKg*a.R*l.T/(l.p*p);return t.envelope==="elastic"?m:Math.min(m,t.maxVolumeM3)},P=A(z),y=[{t:n.t,x:s.x,y:s.y,z:s.z,widthM:a.widthOf(t,S(P)),burning:!1,flame:a.flameShare(t,0)}],k=a.gusts(e.turbulence??a.TURBULENCE,a.seedOf(n),M);let w="time",q=0,Y=-1/0;for(let l=1;l<=v;l++){const m=l*M,b=A(s.z);let R=S(b);if(t.torch&&s.z-o>=(e.triggerM??t.torch.aboveM)){w="lit",y.push({t:n.t+Math.round(m*1e3),x:s.x,y:s.y,z:s.z,widthM:a.widthOf(t,R),burning:!1,flame:0});break}if(t.envelope==="elastic"&&R>=t.maxVolumeM3){w="burst",y.push({t:n.t+Math.round(m*1e3),x:s.x,y:s.y,z:s.z,widthM:a.widthOf(t,t.maxVolumeM3),burning:!1,flame:0});break}if(t.envelope==="vented"){const h=t.maxVolumeM3*b.p*p/(a.R*b.T);s.gasKg>=h&&(s.gasKg=h,s.floated=!0),R=S(b)}const G=t.burner;let I=!1;if(G){const h=a.planAt(e,n.t+m*1e3),F=h<=0?-Math.min(1,Math.max(.5,(s.z-o)/40))*a.PILOT_MS/2:Math.max(-a.PILOT_MS,Math.min(a.PILOT_MS,(h+o-s.z)/40)),ee=h<=0,ce=ee?-2.5:F-.3,ie=ee?-.3:F+.8;m>=s.burnUntilS&&s.vz<ce&&m-Y>2&&s.excessK<G.maxExcessK&&(s.burnUntilS=m+G.blastS),I=m<s.burnUntilS,!I&&s.burnUntilS>0&&m-M<s.burnUntilS&&(Y=m),I&&(s.excessK=Math.min(G.maxExcessK,s.excessK+G.heatingKS*M)),s.excessK-=s.excessK/G.coolingS*M,!I&&s.vz>ie&&(s.excessK-=.5*M),s.excessK=Math.max(0,s.excessK)}const j=a.flameShare(t,m);t.flames&&(s.excessK+=(O*j-s.excessK)*Math.min(1,M/t.flames.coolingS));const Z=t.envelope==="open"?b.p*R/(a.R_AIR*(b.T+s.excessK)):s.gasKg,N=(b.rho*R-Z)*a.G;let U=t.massKg-((t.ballastKg??0)-s.ballastKg);if(s.floated&&s.ballastKg>0&&N<U*a.G){const h=Math.min(s.ballastKg,U-N/a.G);s.ballastKg-=h,U-=h}const te=U*a.G,W=U+Z+.5*b.rho*R,H=a.widthOf(t,R),se=Math.PI*H*H/4*(t.depthRatio!==void 0?(1+t.depthRatio)/2:1),J=s.z-o,Q=a.windAt(e,J),$=k(),ae=Math.max(0,Math.min(1,J/a.GUST_GROUND_M)),C={x:Q.x+$.x,y:Q.y+$.y,z:$.z*ae},re=s.vx-C.x,oe=s.vy-C.y,ne=s.vz-C.z,L=.5*b.rho*t.dragCoefficient*se*Math.hypot(re,oe,ne)/W;s.vx=(s.vx+L*M*C.x)/(1+L*M),s.vy=(s.vy+L*M*C.y)/(1+L*M),s.vz=(s.vz+L*M*C.z+(N-te)/W*M)/(1+L*M);const g=s.z<=o+1e-6&&s.vz<=0;g&&(s.vx=0,s.vy=0,s.vz=0),s.x+=s.vx*M,s.y+=s.vy*M,s.z=Math.max(o,s.z+s.vz*M),E!==void 0&&a.heldBy(s,K,o,E),q=g&&m>10?q+M:0;const _=q>30&&!t.tethered,B=y.length>0&&y[y.length-1].burning!==I;if(l%x===0||l===v||B||_){const h=n.t+Math.round(m*1e3);B&&y.push({t:h-1,x:s.x,y:s.y,z:s.z,widthM:H,burning:!I,flame:j}),y.push({t:h,x:s.x,y:s.y,z:s.z,widthM:H,burning:I,flame:j})}if(_){w="landed";break}}return{samples:y,end:w}}static heldBy(e,n,r,t){const c=e.x-n.x,o=e.y-n.y,d=e.z-r,i=Math.hypot(c,o,d);if(i<=t||i===0)return;const f=c/i,p=o/i,u=d/i;e.x=n.x+f*t,e.y=n.y+p*t,e.z=r+u*t;const M=e.vx*f+e.vy*p+e.vz*u;M>0&&(e.vx-=M*f,e.vy-=M*p,e.vz-=M*u)}static balloonBodies(e,n,r,t){const{samples:c,end:o}=a.trajectory(e,n),d=a.balloonBody(e,n,r,t,c),i=a.typeOf(e);return o==="lit"&&i.torch?[d,a.torchBody(e,n,d.id,c[c.length-1],i.torch)]:[d]}static torchBody(e,n,r,t,c){const o=e.site.altitudeM??0,d=a.TORCH_FLAME_M/2,i=[];let f=t.x,p=t.y,u=t.z;const M=a.randomFrom(a.seedOf(n)^1374496523),v={degrees:4+4*M(),periodS:2+2*M(),phase:2*Math.PI*M()};for(let x=0;;x++){const K=x<c.burnS*.9?1:x<c.burnS?(c.burnS-x)/(c.burnS*.1):0,E=2*Math.PI*x/v.periodS+v.phase;if(i.push({t:t.t+x*1e3,eastM:a.round(f),northM:a.round(p),altitudeM:a.round(u),...x===0?{sizeM:a.TORCH_SIZE,present:!0,appearance:{color:"#d8d2c4",albedo:.6}}:{},attitude:{pitchDeg:a.round(v.degrees*Math.sin(E),10),rollDeg:a.round(v.degrees*Math.cos(E),10)},lights:{"light-flame":a.round(c.candela*K/(Math.PI*d*d),1)}}),u<=o)break;const T=a.windAt(e,u-o);f+=T.x,p+=T.y,u=Math.max(o,u-c.fallMS)}return i.push({t:i[i.length-1].t+1,present:!1}),{id:`${r}-torch`,title:a.TORCH_TITLE,...e.explains?{explains:e.explains}:{},model:{id:"ufoathome-balloon-torch"},modelParameters:{flameColor:c.color},track:i}}static TORCH_SIZE={widthM:1.2,lengthM:1.2,heightM:1.6};static TORCH_FLAME_M=.2;static TORCH_TITLE={en:"Hygroscopic torch",fr:"Torche hygroscopique",es:"Antorcha higroscópica",it:"Torcia igroscopica"};static balloonBody(e,n,r,t,c){const o=a.typeOf(e),d=n.color??e.color??(o.glow?o.glow.color:o.color),i=o.depthRatio??1,f=e.lit&&o.lamp?o.lamp:void 0,p=s=>o.glow?o.glow.candela/(Math.PI*s*s/4):0,u=a.randomFrom(a.seedOf(n)^2654435769),M=o.spins?(5+15*u())*(u()<.5?-1:1):0,v=360*u(),x=o.sways?{degrees:3+4*u(),periodS:3+3*u(),phase:2*Math.PI*u()}:void 0,K=s=>{if(M===0&&!x)return;const S=(s-n.t)/1e3,P=x?2*Math.PI*S/x.periodS+x.phase:0;return{...M!==0?{headingDeg:a.round(((v+M*S)%360+360)%360,10)}:{},...x?{pitchDeg:a.round(x.degrees*Math.sin(P),10),rollDeg:a.round(x.degrees*Math.cos(P*.83),10)}:{}}},E=a.flamesOf(e,o),T=e.partColors?.flame??o.flames?.color;let O=-1;const A=c.map((s,S)=>{const P=Math.abs(s.widthM-O)>O*.005;P&&(O=s.widthM);const y={widthM:a.round(s.widthM,1e3),lengthM:a.round(s.widthM*i,1e3),heightM:a.round(s.widthM*o.aspect,1e3)},k={t:s.t,eastM:a.round(s.x),northM:a.round(s.y),altitudeM:a.round(s.z),...S===0?{present:!0}:{},...P?{sizeM:y}:{},...K(s.t)?{attitude:K(s.t)}:{},...S===0?{appearance:{color:d,albedo:o.albedo,...o.finish?{finish:o.finish}:{},...o.glow?{luminanceCdM2:p(s.widthM)}:{}}}:o.glow&&P?{appearance:{color:d,luminanceCdM2:a.round(p(s.widthM),100)}}:{}},w=a.lightsOf(o,s.burning,f,s.widthM,E,s.flame);return w&&(k.lights=w),k});A.push({t:c[c.length-1].t+1,present:!1});const D=e.title??a.TITLES[o.id],V=e.explainsEach?e.explainsEach[r]!==void 0?{explains:[e.explainsEach[r]]}:{}:{...e.explains?{explains:e.explains}:{},...t>1?{ensemble:e.id}:{}},z={envelopeColor:d};o.stripeColor&&(z.stripeColor=o.stripeColor),f&&(z.lampColor=f.color),T&&(z.flameColor=T);for(const[s,S]of Object.entries(e.partColors??{}))z[`${s}Color`]=S;return{id:t>1?`${e.id}-${r+1}`:e.id,title:D,...V,model:{id:o.modelId},modelParameters:z,...o.id==="hot-air"?{sound:{kind:"balloon"}}:{},altitudeFrom:{eastM:c[0].x,northM:c[0].y},track:A}}static lightsOf(e,n,r,t,c=0,o=0){if(e.flames){const d=t/50,i={};for(let f=1;f<=a.MAX_FLAMES;f++)i[`light-flame-${f}`]=f<=c?a.round(e.flames.candela*o/(Math.PI*d*d),1):0;return i.envelope=a.round(e.flames.candela*c*o*.5/(Math.PI*t/2*t*e.aspect/2),1e3),i}if(e.burner){const d=n?e.burner.envelopeCdM2:0;return{flame:n?e.burner.flameCdM2:0,envelope:d,"envelope-stripe":d}}if(e.modelId==="ufoathome-balloon-latex"){const d=t/40;return{"light-lamp":r?a.round(r.candela/(Math.PI*d*d),1):0}}}static seedOf(e){return e.seed!==void 0?e.seed:Math.round(e.t)*2654435761+Math.round((e.eastM??0)*100)*40503+Math.round((e.northM??0)*100)>>>0}static gusts(e,n,r){const t=a.randomFrom(n),c=()=>Math.sqrt(-2*Math.log(Math.max(1e-12,t())))*Math.cos(2*Math.PI*t()),o=e.timescaleS>0?Math.exp(-r/e.timescaleS):0,d=Math.sqrt(1-o*o),i={x:e.horizontalMS*c(),y:e.horizontalMS*c(),z:e.verticalMS*c()};return()=>(i.x=o*i.x+d*e.horizontalMS*c(),i.y=o*i.y+d*e.horizontalMS*c(),i.z=o*i.z+d*e.verticalMS*c(),i)}static randomFrom(e){let n=e>>>0;return()=>{n=n+1831565813>>>0;let r=n;return r=Math.imul(r^r>>>15,r|1),r^=r+Math.imul(r^r>>>7,r|61),((r^r>>>14)>>>0)/4294967296}}static round(e,n=100){return Math.round(e*n)/n}}export{a as BalloonFlight};
|
|
1
|
+
import{K as X}from"./rr0-ufoathome.mjs";class a{static SAMPLE_MS=1e3;static MAX_KEYFRAMES=6e3;static STEP_S=.05;static G=9.80665;static R=8.314462;static AIR_KG_MOL=.0289644;static R_AIR=a.R/a.AIR_KG_MOL;static TURBULENCE={horizontalMS:.8,verticalMS:.3,timescaleS:30};static GUST_GROUND_M=2;static MAX_FLAMES=9;static TETHER_M=30;static CRUISE_M=300;static PILOT_MS=2;static TITLES={"hot-air":{en:"Hot-air balloon",fr:"Montgolfière",es:"Globo aerostático",it:"Mongolfiera"},party:{en:"Party balloon",fr:"Ballon de baudruche",es:"Globo de fiesta",it:"Palloncino"},led:{en:"LED balloon",fr:"Ballon lumineux à LED",es:"Globo de LED",it:"Palloncino a LED"},foil:{en:"Foil balloon",fr:"Ballon métallisé",es:"Globo metalizado",it:"Palloncino metallizzato"},pilot:{en:"Pilot balloon",fr:"Ballon pilote",es:"Globo piloto",it:"Pallone pilota"},weather:{en:"Weather balloon",fr:"Ballon-sonde",es:"Globo sonda",it:"Pallone sonda"},stratospheric:{en:"Stratospheric balloon",fr:"Ballon stratosphérique",es:"Globo estratosférico",it:"Pallone stratosferico"},"stratospheric-large":{en:"Large stratospheric balloon",fr:"Grand ballon stratosphérique",es:"Gran globo estratosférico",it:"Grande pallone stratosferico"},superpressure:{en:"Superpressure balloon",fr:"Ballon pressurisé",es:"Globo presurizado",it:"Pallone pressurizzato"},infrared:{en:"Infrared hot-air balloon",fr:"Montgolfière infrarouge",es:"Globo infrarrojo",it:"Mongolfiera infrarossa"},"prank-candles":{en:"Prank balloon",fr:"Ballon farceur",es:"Globo de broma",it:"Pallone scherzo"},"prank-flares":{en:"Prank balloon with a flare",fr:"Ballon farceur à feu de détresse",es:"Globo de broma con bengala",it:"Pallone scherzo con razzo"},"anti-hail":{en:"Anti-hail balloon",fr:"Ballon anti-grêle",es:"Globo antigranizo",it:"Pallone antigrandine"},solar:{en:"Solar balloon",fr:"Ballon solaire",es:"Globo solar",it:"Pallone solare"},captive:{en:"Captive balloon",fr:"Ballon captif",es:"Globo cautivo",it:"Pallone frenato"}};static computed=new Map;static bodiesOf(e){const n=JSON.stringify(e);let r=a.computed.get(n);if(!r){const t=a.releasesOf(e);r=t.flatMap((c,o)=>a.balloonBodies(e,c,o,t.length)),a.computed.set(n,r),a.computed.size>16&&a.computed.delete(a.computed.keys().next().value)}return r}static typeOf(e){const n=e.balloon,r=typeof n=="string"?n:n?.id,t=X.byId(r)??X.ALL[0],c=t.shapes?t.shapes[e.shape??"round"]??Object.values(t.shapes)[0]:void 0,o=c?{...t,...c}:t;return typeof n=="string"?o:{...o,...n,id:o.id}}static flamesOf(e,n){return n.flames?Math.max(1,Math.min(9,Math.round(e.flames??n.flames.count))):0}static flameShare(e,n){const r=e.flames?.burnS;if(r===void 0||n<0||n>=r)return 0;const t=r*.75;return n<=t?1:(r-n)/(r-t)}static releasesOf(e){const n=[...e.releases??[]],r=e.group;if(r&&r.count>0){const t=a.randomFrom(r.seed??1),c=r.count>1?(r.untilT-r.fromT)/(r.count-1):0,o=r.radiusM??10,d=r.fillSpread??.1;for(let i=0;i<r.count;i++){const f=r.fromT+c*i+(t()-.5)*c,p=o*Math.sqrt(t()),u=2*Math.PI*t();n.push({t:Math.round(Math.min(r.untilT,Math.max(r.fromT,f))),eastM:Math.round(p*Math.sin(u)*10)/10,northM:Math.round(p*Math.cos(u)*10)/10,fill:Math.round((2*t()-1)*d*1e3)/1e3,...r.colors?.length?{color:r.colors[i%r.colors.length]}:{},seed:Math.floor(t()*4294967296)})}}return n.length>0?n:[{t:0}]}static airAt(e,n=0,r=0){const t=a.LAYERS,c=Math.max(-500,Math.min(a.EARTH_RADIUS_M*e/(a.EARTH_RADIUS_M+e),47e3));let o=t[0];for(const M of t)c>=M.fromM&&(o=M);const d=c-o.fromM,i=o.baseK+o.lapseKM*d,f=a.G*a.AIR_KG_MOL/a.R,p=o.lapseKM===0?o.basePa*Math.exp(-f*d/o.baseK):o.basePa*Math.pow(o.baseK/i,f/o.lapseKM),u=Math.max(0,1-Math.max(0,e-r)/11e3);return{pressurePa:p,temperatureK:i+n*u}}static EARTH_RADIUS_M=6356766;static LAYERS=[{fromM:0,baseK:288.15,basePa:101325,lapseKM:-.0065},{fromM:11e3,baseK:216.65,basePa:22632.06,lapseKM:0},{fromM:2e4,baseK:216.65,basePa:5474.889,lapseKM:.001},{fromM:32e3,baseK:228.65,basePa:868.0187,lapseKM:.0028}];static windAt(e,n){const r=[{atM:0,...e.wind??{towardDeg:0,speedMS:0}},...[...e.windsAloft??[]].sort((c,o)=>c.atM-o.atM)],t=c=>({x:Math.sin(c.towardDeg*Math.PI/180)*c.speedMS,y:Math.cos(c.towardDeg*Math.PI/180)*c.speedMS});if(n<=r[0].atM||r.length===1)return t(r[0]);for(let c=1;c<r.length;c++){if(n>r[c].atM)continue;const o=t(r[c-1]),d=t(r[c]),i=(n-r[c-1].atM)/Math.max(1e-6,r[c].atM-r[c-1].atM);return{x:o.x+(d.x-o.x)*i,y:o.y+(d.y-o.y)*i}}return t(r[r.length-1])}static planAt(e,n){const r=[...e.plan??[]].sort((c,o)=>c.t-o.t);if(r.length===0)return a.CRUISE_M;let t=r[0].altitudeM;for(const c of r)c.t<=n&&(t=c.altitudeM);return t}static widthOf(e,n){return e.widthM!==void 0?e.widthM:Math.cbrt(6*n/Math.PI)}static trajectory(e,n,r=a.SAMPLE_MS){const t=a.typeOf(e),c=e.site,o=c.altitudeM??0,d=c.originElevationM??0,i=d+o,f=(e.airTemperatureC??15)+273.15-a.airAt(i).temperatureK,p=t.gasMolarMassKgMol??X.HELIUM_KG_MOL,u=e.durationS??t.durationS,M=a.STEP_S,v=Math.ceil(u/M);r=Math.max(r,Math.ceil(u*1e3/a.MAX_KEYFRAMES/500)*500);const x=Math.max(1,Math.round(r/1e3/M)),K={x:c.eastM+(n.eastM??0),y:c.northM+(n.northM??0)},E=t.tethered?e.tetherM??a.TETHER_M:void 0,T=a.flamesOf(e,t),O=t.flames?(t.insideExcessK??0)*T/t.flames.count:0,A=l=>{const{pressurePa:m,temperatureK:b}=a.airAt(l+d,f,i);return{p:m,T:b,rho:m/(a.R_AIR*b)}},D=1+(n.fill??0),V=t.launchVolumeM3*D*101325*p/(a.R*288.15),z=n.altitudeM??o,s={x:K.x,y:K.y,z,vx:0,vy:0,vz:0,gasKg:V,excessK:0,burnUntilS:-1,ballastKg:t.ballastKg??0,floated:!1};if(t.envelope==="open"){const l=A(z);s.excessK=t.burner?Math.max(0,l.T*t.massKg/(l.rho*t.maxVolumeM3-t.massKg)):t.flames?O*a.flameShare(t,0):t.insideExcessK??0}const S=l=>{if(t.envelope==="sealed")return t.maxVolumeM3;if(t.envelope==="open")return t.launchVolumeM3>=t.maxVolumeM3?t.maxVolumeM3:Math.min(t.maxVolumeM3,t.launchVolumeM3*D*(101325/288.15)/(l.p/l.T));const m=s.gasKg*a.R*l.T/(l.p*p);return t.envelope==="elastic"?m:Math.min(m,t.maxVolumeM3)},P=A(z),y=[{t:n.t,x:s.x,y:s.y,z:s.z,widthM:a.widthOf(t,S(P)),burning:!1,flame:a.flameShare(t,0)}],k=a.gusts(e.turbulence??a.TURBULENCE,a.seedOf(n),M);let w="time",q=0,Y=-1/0;for(let l=1;l<=v;l++){const m=l*M,b=A(s.z);let R=S(b);if(t.torch&&s.z-o>=(e.triggerM??t.torch.aboveM)){w="lit",y.push({t:n.t+Math.round(m*1e3),x:s.x,y:s.y,z:s.z,widthM:a.widthOf(t,R),burning:!1,flame:0});break}if(t.envelope==="elastic"&&R>=t.maxVolumeM3){w="burst",y.push({t:n.t+Math.round(m*1e3),x:s.x,y:s.y,z:s.z,widthM:a.widthOf(t,t.maxVolumeM3),burning:!1,flame:0});break}if(t.envelope==="vented"){const h=t.maxVolumeM3*b.p*p/(a.R*b.T);s.gasKg>=h&&(s.gasKg=h,s.floated=!0),R=S(b)}const G=t.burner;let I=!1;if(G){const h=a.planAt(e,n.t+m*1e3),F=h<=0?-Math.min(1,Math.max(.5,(s.z-o)/40))*a.PILOT_MS/2:Math.max(-a.PILOT_MS,Math.min(a.PILOT_MS,(h+o-s.z)/40)),ee=h<=0,ce=ee?-2.5:F-.3,ie=ee?-.3:F+.8;m>=s.burnUntilS&&s.vz<ce&&m-Y>2&&s.excessK<G.maxExcessK&&(s.burnUntilS=m+G.blastS),I=m<s.burnUntilS,!I&&s.burnUntilS>0&&m-M<s.burnUntilS&&(Y=m),I&&(s.excessK=Math.min(G.maxExcessK,s.excessK+G.heatingKS*M)),s.excessK-=s.excessK/G.coolingS*M,!I&&s.vz>ie&&(s.excessK-=.5*M),s.excessK=Math.max(0,s.excessK)}const j=a.flameShare(t,m);t.flames&&(s.excessK+=(O*j-s.excessK)*Math.min(1,M/t.flames.coolingS));const Z=t.envelope==="open"?b.p*R/(a.R_AIR*(b.T+s.excessK)):s.gasKg,N=(b.rho*R-Z)*a.G;let U=t.massKg-((t.ballastKg??0)-s.ballastKg);if(s.floated&&s.ballastKg>0&&N<U*a.G){const h=Math.min(s.ballastKg,U-N/a.G);s.ballastKg-=h,U-=h}const te=U*a.G,W=U+Z+.5*b.rho*R,H=a.widthOf(t,R),se=Math.PI*H*H/4*(t.depthRatio!==void 0?(1+t.depthRatio)/2:1),J=s.z-o,Q=a.windAt(e,J),$=k(),ae=Math.max(0,Math.min(1,J/a.GUST_GROUND_M)),C={x:Q.x+$.x,y:Q.y+$.y,z:$.z*ae},re=s.vx-C.x,oe=s.vy-C.y,ne=s.vz-C.z,L=.5*b.rho*t.dragCoefficient*se*Math.hypot(re,oe,ne)/W;s.vx=(s.vx+L*M*C.x)/(1+L*M),s.vy=(s.vy+L*M*C.y)/(1+L*M),s.vz=(s.vz+L*M*C.z+(N-te)/W*M)/(1+L*M);const g=s.z<=o+1e-6&&s.vz<=0;g&&(s.vx=0,s.vy=0,s.vz=0),s.x+=s.vx*M,s.y+=s.vy*M,s.z=Math.max(o,s.z+s.vz*M),E!==void 0&&a.heldBy(s,K,o,E),q=g&&m>10?q+M:0;const _=q>30&&!t.tethered,B=y.length>0&&y[y.length-1].burning!==I;if(l%x===0||l===v||B||_){const h=n.t+Math.round(m*1e3);B&&y.push({t:h-1,x:s.x,y:s.y,z:s.z,widthM:H,burning:!I,flame:j}),y.push({t:h,x:s.x,y:s.y,z:s.z,widthM:H,burning:I,flame:j})}if(_){w="landed";break}}return{samples:y,end:w}}static heldBy(e,n,r,t){const c=e.x-n.x,o=e.y-n.y,d=e.z-r,i=Math.hypot(c,o,d);if(i<=t||i===0)return;const f=c/i,p=o/i,u=d/i;e.x=n.x+f*t,e.y=n.y+p*t,e.z=r+u*t;const M=e.vx*f+e.vy*p+e.vz*u;M>0&&(e.vx-=M*f,e.vy-=M*p,e.vz-=M*u)}static balloonBodies(e,n,r,t){const{samples:c,end:o}=a.trajectory(e,n),d=a.balloonBody(e,n,r,t,c),i=a.typeOf(e);return o==="lit"&&i.torch?[d,a.torchBody(e,n,d.id,c[c.length-1],i.torch)]:[d]}static torchBody(e,n,r,t,c){const o=e.site.altitudeM??0,d=a.TORCH_FLAME_M/2,i=[];let f=t.x,p=t.y,u=t.z;const M=a.randomFrom(a.seedOf(n)^1374496523),v={degrees:4+4*M(),periodS:2+2*M(),phase:2*Math.PI*M()};for(let x=0;;x++){const K=x<c.burnS*.9?1:x<c.burnS?(c.burnS-x)/(c.burnS*.1):0,E=2*Math.PI*x/v.periodS+v.phase;if(i.push({t:t.t+x*1e3,eastM:a.round(f),northM:a.round(p),altitudeM:a.round(u),...x===0?{sizeM:a.TORCH_SIZE,present:!0,appearance:{color:"#d8d2c4",albedo:.6}}:{},attitude:{pitchDeg:a.round(v.degrees*Math.sin(E),10),rollDeg:a.round(v.degrees*Math.cos(E),10)},lights:{"light-flame":a.round(c.candela*K/(Math.PI*d*d),1)}}),u<=o)break;const T=a.windAt(e,u-o);f+=T.x,p+=T.y,u=Math.max(o,u-c.fallMS)}return i.push({t:i[i.length-1].t+1,present:!1}),{id:`${r}-torch`,title:a.TORCH_TITLE,...e.explains?{explains:e.explains}:{},model:{id:"ufoathome-balloon-torch"},modelParameters:{flameColor:c.color},track:i}}static TORCH_SIZE={widthM:1.2,lengthM:1.2,heightM:1.6};static TORCH_FLAME_M=.2;static TORCH_TITLE={en:"Hygroscopic torch",fr:"Torche hygroscopique",es:"Antorcha higroscópica",it:"Torcia igroscopica"};static balloonBody(e,n,r,t,c){const o=a.typeOf(e),d=n.color??e.color??(o.glow?o.glow.color:o.color),i=o.depthRatio??1,f=e.lit&&o.lamp?o.lamp:void 0,p=s=>o.glow?o.glow.candela/(Math.PI*s*s/4):0,u=a.randomFrom(a.seedOf(n)^2654435769),M=o.spins?(5+15*u())*(u()<.5?-1:1):0,v=360*u(),x=o.sways?{degrees:3+4*u(),periodS:3+3*u(),phase:2*Math.PI*u()}:void 0,K=s=>{if(M===0&&!x)return;const S=(s-n.t)/1e3,P=x?2*Math.PI*S/x.periodS+x.phase:0;return{...M!==0?{headingDeg:a.round(((v+M*S)%360+360)%360,10)}:{},...x?{pitchDeg:a.round(x.degrees*Math.sin(P),10),rollDeg:a.round(x.degrees*Math.cos(P*.83),10)}:{}}},E=a.flamesOf(e,o),T=e.partColors?.flame??o.flames?.color;let O=-1;const A=c.map((s,S)=>{const P=Math.abs(s.widthM-O)>O*.005;P&&(O=s.widthM);const y={widthM:a.round(s.widthM,1e3),lengthM:a.round(s.widthM*i,1e3),heightM:a.round(s.widthM*o.aspect,1e3)},k={t:s.t,eastM:a.round(s.x),northM:a.round(s.y),altitudeM:a.round(s.z),...S===0?{present:!0}:{},...P?{sizeM:y}:{},...K(s.t)?{attitude:K(s.t)}:{},...S===0?{appearance:{color:d,albedo:o.albedo,...o.finish?{finish:o.finish}:{},...o.glow?{luminanceCdM2:p(s.widthM)}:{}}}:o.glow&&P?{appearance:{color:d,luminanceCdM2:a.round(p(s.widthM),100)}}:{}},w=a.lightsOf(o,s.burning,f,s.widthM,E,s.flame);return w&&(k.lights=w),k});A.push({t:c[c.length-1].t+1,present:!1});const D=e.title??a.TITLES[o.id],V=e.explainsEach?e.explainsEach[r]!==void 0?{explains:[e.explainsEach[r]]}:{}:{...e.explains?{explains:e.explains}:{},...t>1?{ensemble:e.id}:{}},z={envelopeColor:d};o.stripeColor&&(z.stripeColor=o.stripeColor),f&&(z.lampColor=f.color),T&&(z.flameColor=T);for(const[s,S]of Object.entries(e.partColors??{}))z[`${s}Color`]=S;return{id:t>1?`${e.id}-${r+1}`:e.id,title:D,...V,model:{id:o.modelId},modelParameters:z,...o.id==="hot-air"?{sound:{kind:"balloon"}}:{},altitudeFrom:{eastM:c[0].x,northM:c[0].y},track:A}}static lightsOf(e,n,r,t,c=0,o=0){if(e.flames){const d=t/50,i={};for(let f=1;f<=a.MAX_FLAMES;f++)i[`light-flame-${f}`]=f<=c?a.round(e.flames.candela*o/(Math.PI*d*d),1):0;return i.envelope=a.round(e.flames.candela*c*o*.5/(Math.PI*t/2*t*e.aspect/2),1e3),i}if(e.burner){const d=n?e.burner.envelopeCdM2:0;return{flame:n?e.burner.flameCdM2:0,envelope:d,"envelope-stripe":d}}if(e.modelId==="ufoathome-balloon-latex"){const d=t/40;return{"light-lamp":r?a.round(r.candela/(Math.PI*d*d),1):0}}}static seedOf(e){return e.seed!==void 0?e.seed:Math.round(e.t)*2654435761+Math.round((e.eastM??0)*100)*40503+Math.round((e.northM??0)*100)>>>0}static gusts(e,n,r){const t=a.randomFrom(n),c=()=>Math.sqrt(-2*Math.log(Math.max(1e-12,t())))*Math.cos(2*Math.PI*t()),o=e.timescaleS>0?Math.exp(-r/e.timescaleS):0,d=Math.sqrt(1-o*o),i={x:e.horizontalMS*c(),y:e.horizontalMS*c(),z:e.verticalMS*c()};return()=>(i.x=o*i.x+d*e.horizontalMS*c(),i.y=o*i.y+d*e.horizontalMS*c(),i.z=o*i.z+d*e.verticalMS*c(),i)}static randomFrom(e){let n=e>>>0;return()=>{n=n+1831565813>>>0;let r=n;return r=Math.imul(r^r>>>15,r|1),r^=r+Math.imul(r^r>>>7,r|61),((r^r>>>14)>>>0)/4294967296}}static round(e,n=100){return Math.round(e*n)/n}}export{a as BalloonFlight};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{M as T,_ as c}from"./rr0-ufoathome.mjs";import{
|
|
1
|
+
import{M as T,_ as c}from"./rr0-ufoathome.mjs";import{b as I,P as E,I as x}from"./SaidPosition-OJEYhVKN.js";import{L as u}from"./LaserBeam-C7glTvQN.js";import{S as L}from"./SkyEventEditorStyle-CvY_AhbI.js";import{ba as M}from"./ShareDialogElement-CBeU9ChH.js";import{P as g,E as w,a as f}from"./ParameterForm-XbqxCLRn.js";import{T as _}from"./TimelineTracks-Daaqw9ly.js";import"./GeoProjection-DvqDbRIx.js";import"./Sighting-B7bsiTIQ.js";import"./VisualAids-DI-hEL46.js";import"./three.module-CbaHqYFq.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";const O=T.catalog({en:()=>c(()=>import("./BeamParameterTexts_en-DZB75ouZ.js"),[],import.meta.url).then(l=>l.beamParameterTexts_en),fr:()=>c(()=>import("./BeamParameterTexts_fr-BHG3fW40.js"),[],import.meta.url).then(l=>l.beamParameterTexts_fr),es:()=>c(()=>import("./BeamParameterTexts_es-AeZmsufG.js"),[],import.meta.url).then(l=>l.beamParameterTexts_es),it:()=>c(()=>import("./BeamParameterTexts_it-CPwmQX-g.js"),[],import.meta.url).then(l=>l.beamParameterTexts_it)});class h{static LIGHT_TITLE="light";static BEAM="beam";static WHEN="when";static nextPlace(e){const t=e[e.length-1]??{lat:0,lng:0,altitudeM:0},i=e[e.length-2];return i?{lat:2*t.lat-i.lat,lng:2*t.lng-i.lng,altitudeM:2*t.altitudeM-i.altitudeM}:{lat:t.lat,lng:t.lng+500/(111320*Math.max(.05,Math.cos(t.lat*Math.PI/180))),altitudeM:t.altitudeM}}static instant(e,t,i,s=!1){return{type:"number",key:e,min:-3600,max:36e3,step:.1,unit:"s",scale:.001,label:t,hint:i,...s?{required:s}:{}}}static SET={kind:"beam",title:"beam",parameters:[{type:"said",key:"title",label:"name",group:h.BEAM},{type:"number",key:"divergenceMrad",min:.001,max:1e3,step:.001,unit:"mrad",group:h.BEAM,effective:()=>u.DEFAULT_DIVERGENCE_MRAD,label:"divergence",hint:"howFastItWidensFullAngle"},{type:"number",key:"apertureM",min:.001,max:10,step:.001,unit:"m",group:h.BEAM,effective:()=>u.DEFAULT_APERTURE_M,label:"widthAtTheEmitter"},{type:"number",key:"patchiness",min:0,max:100,step:1,unit:"%",scale:100,group:h.BEAM,effective:()=>u.DEFAULT_PATCHINESS,label:"unevenHaze",hint:"howUnevenlyTheHazeItCrosses"}]};static WAVELENGTH_HINT="itsColour532ForTheGreen";static POWER_HINT="theOpticalPowerItCarriesIts";static WAVELENGTH_LABEL="wavelength";static POWER_LABEL="power";static LIGHT={kind:"beam-light",title:h.LIGHT_TITLE,parameters:[{type:"number",key:"wavelengthNm",min:380,max:780,step:1,unit:"nm",required:!0,label:h.WAVELENGTH_LABEL,hint:h.WAVELENGTH_HINT},{type:"number",key:"powerW",min:.001,max:1e5,step:.001,unit:"W",required:!0,label:h.POWER_LABEL,hint:h.POWER_HINT}]};static LIGHT_KEY={kind:"beam-light-key",title:h.LIGHT_TITLE,parameters:[h.instant("t","time","secondsOfTheRecording",!0),{type:"number",key:"wavelengthNm",min:380,max:780,step:1,unit:"nm",label:h.WAVELENGTH_LABEL,hint:h.WAVELENGTH_HINT,effective:(e,t)=>t?.wavelengthNm},{type:"number",key:"powerW",min:.001,max:1e5,step:.001,unit:"W",label:h.POWER_LABEL,hint:h.POWER_HINT,effective:(e,t)=>t?.powerW}]};static ON={kind:"beam-on",title:h.WHEN,parameters:[h.instant("fromT","onFrom","secondsOfTheRecordingEmptyFrom"),h.instant("untilT","offAt","secondsOfTheRecordingEmptyUntil")]};static MOVE_KEY={kind:"beam-move-key",title:"pathAtAnInstant",parameters:[h.instant("t","time","secondsOfTheRecording",!0)]};static hexOf(e){const t=u.colourOf(e),i=Math.max(...t,1e-9),s=n=>{const o=Math.min(1,Math.max(0,n/i)),a=o<=.0031308?12.92*o:1.055*o**(1/2.4)-.055;return Math.round(a*255).toString(16).padStart(2,"0")};return`#${t.map(s).join("")}`}static wavelengthOf(e){const t=h.hueOf(e);let i=532,s=1/0;for(let n=400;n<=700;n++){const o=Math.abs((h.hueOf(h.hexOf(n))-t+540)%360-180);o<s&&(s=o,i=n)}return i}static hueOf(e){const t=Number.parseInt(e.replace("#",""),16),[i,s,n]=[t>>16&255,t>>8&255,t&255].map(b=>b/255),o=Math.max(i,s,n),a=Math.min(i,s,n);if(o===a)return 0;const r=o-a;return((o===i?(s-n)/r%6:o===s?(n-i)/r+2:(i-s)/r+4)*60+360)%360}static PLACE={kind:"beam-place",title:"pointOfThePath",parameters:[{type:"position",key:"lat",secondKey:"lng",saidKey:"saidPosition",native:"geo",step:.1,label:"position"},{type:"number",key:"altitudeM",min:-500,max:1e5,step:.1,unit:"m",required:!0,label:"altitude",hint:"aboveTheSeaNotTheGround"}]};static publish(){I.publish(h.SET)}}const A=T.catalog({en:()=>c(()=>import("./BeamEditorMessages_en-DDvPWAdd.js"),[],import.meta.url).then(l=>l.beamEditorMessages_en),fr:()=>c(()=>import("./BeamEditorMessages_fr-CtX6uP-x.js"),[],import.meta.url).then(l=>l.beamEditorMessages_fr),es:()=>c(()=>import("./BeamEditorMessages_es-BhCkhUkN.js"),[],import.meta.url).then(l=>l.beamEditorMessages_es),it:()=>c(()=>import("./BeamEditorMessages_it-DVweRQFi.js"),[],import.meta.url).then(l=>l.beamEditorMessages_it)});class p{constructor(e,t,i){this.container=e,this.host=t,this.language=i,L.attach(e,"beam-editor",p.STYLE),I.of("beam")||h.publish(),this.ready=this.setLanguage(i)}messages;ready;parameterTexts;languageToken=0;currentId;form;list;timeline;row="on";onForm;lightForm;lightKeyForm;lightIndex;moveKeyForm;moveIndex;places;placeForm;placeIndex=0;language;shown=[];static STYLE='.beam-editor { flex-basis: 100%; min-width: 0; } .beam-editor #beam-timeline { flex-basis: 100%; min-width: 0; padding: 4px 0; } .beam-editor #beam-list, .beam-editor #beam-places { flex-basis: 100%; min-width: 0; } .beam-editor .launch-editor, .beam-editor .launch-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; } .beam-editor .launch-fields { flex-basis: 100%; min-width: 0; } .beam-editor [hidden] { display: none !important; } .beam-editor select { min-width: 0; width: 100%; } .beam-editor .launch-intro { flex-basis: 100%; margin: 0; } .beam-editor .launch-track { flex-basis: 100%; margin: 0; } .beam-editor .launch-parameters { flex-basis: 100%; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; } .beam-editor .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; } .beam-editor input, .beam-editor select { max-width: 100%; box-sizing: border-box; } .beam-editor input[type="text"] { width: 12em; } .beam-editor #launch-title { width: 18em; } .beam-editor label { min-width: 0; max-width: 100%; } .beam-editor input.parameter-derived::placeholder { opacity: .65; } .beam-editor .launch-path { flex: 1 1 100%; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; }';async setLanguage(e){const t=++this.languageToken;this.language=e;const[i,s]=await Promise.all([A.load(e),O.load(e)]);t===this.languageToken&&(this.messages=i,this.parameterTexts=s,this.render(),this.sync())}sync(){if(!this.messages)return;const e=this.beams;this.shown=[...e],e.some(s=>s.id===this.currentId)||(this.currentId=e[0]?.id),this.list?.setItems(e.map(s=>({id:s.id,label:this.labelOf(s)})),this.currentId),this.syncAddState();const t=this.current;if(this.element("beam-fields").hidden=t===void 0,!t)return;const i={said:()=>this.host.said(),writingLanguage:()=>this.host.writingLanguage()};this.form??=new g(this.element("beam-parameters"),this.language,"beam.",i),this.form.show(this.resolved(h.SET),this.targetOfBeam(),()=>this.written()),this.syncDetail(!0)}refresh(){if(!this.messages)return;this.syncAddState();const e=this.beams;if(e.length===this.shown.length&&e.every((t,i)=>t.id===this.shown[i].id)){this.syncTimeline();return}this.sync()}setTime(e){this.messages&&this.timeline?.setTime(e)}syncAddState(){const e=this.pathOfNew()!==void 0;this.list?.setAddState(e,e?void 0:this.messages.addBeamNowhere)}get current(){return this.beams.find(e=>e.id===this.currentId)}show(e){this.messages&&(this.currentId=e,this.row="on",this.lightIndex=void 0,this.moveIndex=void 0,this.placeIndex=0,this.sync())}resolved(e){return E.resolve(e,this.parameterTexts)}render(){if(!this.messages)return;const e=this.messages;this.form=void 0,this.container.innerHTML=`<div class="launch-editor">
|
|
2
2
|
<p class="launch-intro">${e.intro}</p>
|
|
3
3
|
<div id="beam-list"></div>
|
|
4
4
|
<div id="beam-fields" class="launch-fields">
|
|
@@ -27,4 +27,4 @@ import{M as T,_ as c}from"./rr0-ufoathome.mjs";import{d as I,P as E,I as x}from"
|
|
|
27
27
|
</fieldset>
|
|
28
28
|
<p class="launch-intro">${e.derivedNote}</p>
|
|
29
29
|
</div>
|
|
30
|
-
</div>`,this.list=new w({header:this.element("beam-list"),body:this.element("beam-fields"),ids:{list:"beam-select",remove:"beam-delete",add:"beam-add"},onSelect:t=>this.show(t),onAdd:()=>this.addBeam(),onRemove:()=>this.deleteCurrent()}),this.list.setLabels({list:e.beam,remove:e.deleteBeam,add:e.addBeam,empty:e.none}),this.timeline=new _(this.element("beam-timeline"),t=>this.host.seekTo(t),{addKeyframeHere:e.addHere,keyframeHere:e.here,zoomHint:e.zoomHint}),this.places=new w({header:this.element("beam-places"),body:this.element("beam-place-parameters"),ids:{list:"beam-place",remove:"beam-place-delete",add:"beam-place-add"},navigation:{scope:this.element("beam-path"),onStep:t=>this.selectPlace(this.placeIndex+t)},onSelect:t=>this.selectPlace(Number(t)),onAdd:()=>this.addPlace(),onRemove:()=>this.removePlace()}),this.places.setLabels({list:e.place,remove:e.deletePlace,add:e.addPlace,previous:e.previousPlace,next:e.nextPlace}),this.element("beam-colour").addEventListener("input",t=>this.pickColour(t.target.value)),this.element("beam-light-delete").addEventListener("click",()=>this.removeLightKey()),this.element("beam-move-delete").addEventListener("click",()=>this.removeMoveKey()),this.onForm=void 0,this.lightForm=void 0,this.lightKeyForm=void 0,this.moveKeyForm=void 0,this.placeForm=void 0}written(){const e=this.current;e&&this.list?.rename(e.id,this.labelOf(e)),this.syncTimeline()}targetOfBeam(){return new f(()=>this.current,e=>this.editBeam(t=>e(t)))}static ON_COLOR="#2f9e5a";static LIGHT_COLOR="#c0581b";static PATH_COLOR="#4f8fd6";syncTimeline(){const e=this.current;if(!this.timeline||!e)return;const t=this.messages,i=this.host.duration(),s=e.fromT??0,n=e.untilT??i,o=[{t:s,until:n,label:""}],a=this.sortedLight(e),r=this.sortedMoves(e),v=[{id:"on",label:t.on,color:g.ON_COLOR,times:[s,n],spans:o,active:this.row==="on",open:()=>this.selectRow("on"),pressed:()=>this.selectRow("on"),move:(d,m)=>this.moveEnd(d===s?"fromT":"untilT",m),add:()=>this.moveEnd("fromT",Math.round(this.host.currentTime()))},{id:"light",label:t.light,color:g.LIGHT_COLOR,times:a.map(d=>d.t),spans:a.length?[]:o,active:this.row==="light",selectedTime:this.row==="light"&&this.lightIndex!==void 0?a[this.lightIndex]?.t:void 0,open:()=>this.selectLight(this.lightIndex),pressed:(d,m)=>this.selectLight(m===void 0?this.lightIndex:this.sortedLight(this.current).findIndex(y=>y.t===m)),move:(d,m)=>this.moveLightKey(d,m),add:()=>this.addLightKey(Math.round(this.host.currentTime()))},{id:"path",label:t.path,color:g.PATH_COLOR,times:r.map(d=>d.t),spans:r.length?[]:o,active:this.row==="path",selectedTime:this.row==="path"&&this.moveIndex!==void 0?r[this.moveIndex]?.t:void 0,open:()=>this.selectMove(this.moveIndex),pressed:(d,m)=>this.selectMove(m===void 0?this.moveIndex:this.sortedMoves(this.current).findIndex(y=>y.t===m)),move:(d,m)=>this.moveMoveKey(d,m),add:()=>this.addMoveKey(Math.round(this.host.currentTime()))}],b=[s,n,...a.map(d=>d.t),...r.map(d=>d.t)];this.timeline.show(v,i,this.host.currentTime(),{from:Math.min(0,...b),to:Math.max(i,...b)})}sortedLight(e){return[...e.light??[]].sort((t,i)=>t.t-i.t)}sortedMoves(e){return[...e.moves??[]].sort((t,i)=>t.t-i.t)}selectRow(e){this.row=e,this.syncDetail(!0)}syncDetail(e=!1){this.current&&(this.element("beam-on").hidden=this.row!=="on",this.element("beam-light").hidden=this.row!=="light",this.element("beam-path").hidden=this.row!=="path",this.row==="on"&&this.syncOn(e),this.row==="light"&&this.syncLight(e),this.row==="path"&&this.syncPath(e),this.syncTimeline())}syncOn(e){this.onForm?this.onForm.sync(e):(this.onForm=new p(this.element("beam-on-parameters"),this.language,"beamOn."),this.onForm.show(this.resolved(h.ON),this.targetOfBeam(),()=>this.syncTimeline()))}moveEnd(e,t){this.editBeam(i=>{i[e]=t,i.fromT!==void 0&&i.untilT!==void 0&&i.untilT<i.fromT&&(e==="fromT"?delete i.untilT:[i.fromT,i.untilT]=[i.untilT,i.fromT])}),this.selectRow("on")}selectLight(e){const t=this.current?this.sortedLight(this.current):[];this.lightIndex=e!==void 0&&e>=0&&e<t.length?e:t.length?0:void 0,this.selectRow("light")}get currentLightKey(){const e=this.current;return e&&this.lightIndex!==void 0?this.sortedLight(e)[this.lightIndex]:void 0}syncLight(e){const t=this.messages,i=this.currentLightKey;this.element("beam-light-note").textContent=i?t.lightKeyNote:t.lightNoKeyNote,this.element("beam-light-parameters").hidden=i!==void 0,this.element("beam-light-key-parameters").hidden=i===void 0,this.element("beam-light-delete").hidden=i===void 0,this.lightForm?this.lightForm.sync(e):(this.lightForm=new p(this.element("beam-light-parameters"),this.language,"beamLight."),this.lightForm.show(this.resolved(h.LIGHT),this.targetOfBeam(),()=>this.syncColour())),this.lightKeyForm?this.lightKeyForm.sync(e):(this.lightKeyForm=new p(this.element("beam-light-key-parameters"),this.language,"beamLightKey."),this.lightKeyForm.show(this.resolved(h.LIGHT_KEY),new f(()=>this.currentLightKey,s=>this.editLightKey(this.lightIndex,s),()=>this.current),()=>this.syncColour())),this.syncColour()}syncColour(){const e=this.current;e&&(this.element("beam-colour").value=h.hexOf(this.currentLightKey?.wavelengthNm??e.wavelengthNm))}pickColour(e){const t=h.wavelengthOf(e);this.lightIndex===void 0?(this.editBeam(i=>{i.wavelengthNm=t}),this.lightForm?.sync(!0)):(this.editLightKey(this.lightIndex,i=>{i.wavelengthNm=t}),this.lightKeyForm?.sync(!0))}editLightKey(e,t){const i=this.current;if(!i)return;const s=this.sortedLight(i),n={...s[e]};t(n);const o=s.map((a,r)=>r===e?n:a).sort((a,r)=>a.t-r.t);this.editBeam(a=>{a.light=o}),this.lightIndex=o.indexOf(n),this.syncTimeline()}addLightKey(e){const t=this.current;if(!t)return;const i=this.sortedLight(t),s=i.findIndex(r=>Math.abs(r.t-e)<1);if(s>=0){this.selectLight(s);return}const n=u.stateAt(t,e),o={t:e,wavelengthNm:Math.round(n.wavelengthNm),powerW:Number(n.powerW.toFixed(3))},a=[...i,o].sort((r,v)=>r.t-v.t);this.editBeam(r=>{r.light=a}),this.selectLight(a.indexOf(o))}moveLightKey(e,t){const i=this.current?this.sortedLight(this.current).findIndex(s=>s.t===e):-1;i<0||(this.editLightKey(i,s=>{s.t=t}),this.selectRow("light"))}removeLightKey(){const e=this.current,t=this.lightIndex;if(!e||t===void 0)return;const i=this.sortedLight(e).filter((s,n)=>n!==t);this.editBeam(s=>{i.length?s.light=i:delete s.light}),this.selectLight(i.length?Math.min(t,i.length-1):void 0)}selectMove(e){const t=this.current?this.sortedMoves(this.current):[],i=e!==void 0&&e>=0&&e<t.length?e:t.length?0:void 0;i!==this.moveIndex&&(this.placeIndex=0),this.moveIndex=i,this.selectRow("path")}get currentMoveKey(){const e=this.current;return e&&this.moveIndex!==void 0?this.sortedMoves(e)[this.moveIndex]:void 0}get shownPath(){return this.currentMoveKey?.path??this.current?.path??[]}syncPath(e){const t=this.messages,i=this.currentMoveKey;this.element("beam-path-note").textContent=i?t.pathKeyNote:t.pathNoKeyNote,this.element("beam-move-key-parameters").hidden=i===void 0,this.element("beam-move-delete").hidden=i===void 0,this.moveKeyForm?this.moveKeyForm.sync(e):(this.moveKeyForm=new p(this.element("beam-move-key-parameters"),this.language,"beamMoveKey."),this.moveKeyForm.show(this.resolved(h.MOVE_KEY),new f(()=>this.currentMoveKey,s=>this.editMoveKey(this.moveIndex,n=>s(n))),()=>{})),this.syncPlaces(e)}editMoveKey(e,t){const i=this.current;if(!i)return;const s=this.sortedMoves(i),n={...s[e],path:[...s[e].path]};t(n);const o=s.map((a,r)=>r===e?n:a).sort((a,r)=>a.t-r.t);this.editBeam(a=>{a.moves=o}),this.moveIndex=o.indexOf(n),this.syncTimeline()}addMoveKey(e){const t=this.current;if(!t)return;const i=this.sortedMoves(t),s=i.findIndex(a=>Math.abs(a.t-e)<1);if(s>=0){this.selectMove(s);return}const n={t:e,path:u.stateAt(t,e).path.map(a=>({...a}))},o=[...i,n].sort((a,r)=>a.t-r.t);this.editBeam(a=>{a.moves=o}),this.selectMove(o.indexOf(n))}moveMoveKey(e,t){const i=this.current?this.sortedMoves(this.current).findIndex(s=>s.t===e):-1;i<0||(this.editMoveKey(i,s=>{s.t=t}),this.selectRow("path"))}removeMoveKey(){const e=this.current,t=this.moveIndex;if(!e||t===void 0)return;const i=this.sortedMoves(e).filter((s,n)=>n!==t);this.editBeam(s=>{i.length?s.moves=i:delete s.moves}),this.selectMove(i.length?Math.min(t,i.length-1):void 0)}syncPlaces(e=!1){const t=this.shownPath;this.placeIndex=Math.max(0,Math.min(this.placeIndex,t.length-1)),this.places?.setItems(t.map((i,s)=>({id:String(s),label:`${s+1}/${t.length}`})),String(this.placeIndex)),this.places?.setStepState(this.placeIndex>0,this.placeIndex<t.length-1),this.places?.setRemoveEnabled(t.length>g.MIN_PLACES),this.placeForm?this.placeForm.sync(e):(this.placeForm=new p(this.element("beam-place-parameters"),this.language,"beamPlace."),this.placeForm.show(this.resolved(h.PLACE),new f(()=>this.shownPath[this.placeIndex],i=>this.editPath(s=>{const n={...s[this.placeIndex]};return i(n),s.map((o,a)=>a===this.placeIndex?n:o)}),void 0,this.host.positionPlace?.()),()=>{}))}editPath(e){this.moveIndex!==void 0?this.editMoveKey(this.moveIndex,t=>{t.path=e(t.path)}):this.editBeam(t=>{t.path=e(t.path)})}static MIN_PLACES=2;selectPlace(e){const t=this.shownPath;e<0||e>=t.length||(this.placeIndex=e,this.syncPlaces(!0))}addPlace(){this.editPath(e=>[...e,h.nextPlace(e)]),this.placeIndex=this.shownPath.length-1,this.syncPlaces(!0)}removePlace(){if(this.shownPath.length<=g.MIN_PLACES)return;const e=this.placeIndex;this.editPath(t=>t.filter((i,s)=>s!==e)),this.syncPlaces(!0)}editBeam(e){const t=this.current;if(!t)return;const i={...t,path:[...t.path]};e(i),this.writeBeams(this.beams.map(s=>s===t?i:s)),this.host.changed()}pathOfNew(){const e=this.host.sighting(),t=e.event?.place?.[0];if(t?.lat===void 0||t.lng===void 0)return;const i=(e.observerTrack?.getInterpolatedPoseAt(0)?.headingDeg??0)*Math.PI/180,s=111320;return[{lat:t.lat,lng:t.lng,altitudeM:0},{lat:t.lat+2e3*Math.cos(i)/s,lng:t.lng+2e3*Math.sin(i)/(s*Math.max(.05,Math.cos(t.lat*Math.PI/180))),altitudeM:100}]}addBeam(){const e=this.pathOfNew();if(!e)return;let t=this.beams.length+1;for(;this.beams.some(s=>s.id===`beam-${t}`);)t++;const i={id:`beam-${t}`,path:e,wavelengthNm:532,powerW:5};this.writeBeams([...this.beams,i]),this.host.changed(),this.show(i.id)}deleteCurrent(){const e=this.current;e&&(this.currentId=void 0,this.writeBeams(this.beams.filter(t=>t!==e)),this.host.changed(),this.sync())}writeBeams(e){const t=this.host.sighting();t.skyEvents=M.written({...t.skyEvents,beams:e})}labelOf(e){const t=this.host.said().read(e.title);return t?`${t} (${e.id})`:e.id}get beams(){return this.host.sighting().skyEvents?.beams??[]}element(e){return this.container.querySelector(`#${e}`)}}export{g as BeamEditor};
|
|
30
|
+
</div>`,this.list=new w({header:this.element("beam-list"),body:this.element("beam-fields"),ids:{list:"beam-select",remove:"beam-delete",add:"beam-add"},onSelect:t=>this.show(t),onAdd:()=>this.addBeam(),onRemove:()=>this.deleteCurrent()}),this.list.setLabels({list:e.beam,remove:e.deleteBeam,add:e.addBeam,empty:e.none}),this.timeline=new _(this.element("beam-timeline"),t=>this.host.seekTo(t),{addKeyframeHere:e.addHere,keyframeHere:e.here,zoomHint:e.zoomHint}),this.places=new w({header:this.element("beam-places"),body:this.element("beam-place-parameters"),ids:{list:"beam-place",remove:"beam-place-delete",add:"beam-place-add"},navigation:{scope:this.element("beam-path"),onStep:t=>this.selectPlace(this.placeIndex+t)},onSelect:t=>this.selectPlace(Number(t)),onAdd:()=>this.addPlace(),onRemove:()=>this.removePlace()}),this.places.setLabels({list:e.place,remove:e.deletePlace,add:e.addPlace,previous:e.previousPlace,next:e.nextPlace}),this.element("beam-colour").addEventListener("input",t=>this.pickColour(t.target.value)),this.element("beam-light-delete").addEventListener("click",()=>this.removeLightKey()),this.element("beam-move-delete").addEventListener("click",()=>this.removeMoveKey()),this.onForm=void 0,this.lightForm=void 0,this.lightKeyForm=void 0,this.moveKeyForm=void 0,this.placeForm=void 0}written(){const e=this.current;e&&this.list?.rename(e.id,this.labelOf(e)),this.syncTimeline()}targetOfBeam(){return new f(()=>this.current,e=>this.editBeam(t=>e(t)))}static ON_COLOR="#2f9e5a";static LIGHT_COLOR="#c0581b";static PATH_COLOR="#4f8fd6";syncTimeline(){const e=this.current;if(!this.timeline||!e)return;const t=this.messages,i=this.host.duration(),s=e.fromT??0,n=e.untilT??i,o=[{t:s,until:n,label:""}],a=this.sortedLight(e),r=this.sortedMoves(e),v=[{id:"on",label:t.on,color:p.ON_COLOR,times:[s,n],spans:o,active:this.row==="on",open:()=>this.selectRow("on"),pressed:()=>this.selectRow("on"),move:(m,d)=>this.moveEnd(m===s?"fromT":"untilT",d),add:()=>this.moveEnd("fromT",Math.round(this.host.currentTime()))},{id:"light",label:t.light,color:p.LIGHT_COLOR,times:a.map(m=>m.t),spans:a.length?[]:o,active:this.row==="light",selectedTime:this.row==="light"&&this.lightIndex!==void 0?a[this.lightIndex]?.t:void 0,open:()=>this.selectLight(this.lightIndex),pressed:(m,d)=>this.selectLight(d===void 0?this.lightIndex:this.sortedLight(this.current).findIndex(y=>y.t===d)),move:(m,d)=>this.moveLightKey(m,d),add:()=>this.addLightKey(Math.round(this.host.currentTime()))},{id:"path",label:t.path,color:p.PATH_COLOR,times:r.map(m=>m.t),spans:r.length?[]:o,active:this.row==="path",selectedTime:this.row==="path"&&this.moveIndex!==void 0?r[this.moveIndex]?.t:void 0,open:()=>this.selectMove(this.moveIndex),pressed:(m,d)=>this.selectMove(d===void 0?this.moveIndex:this.sortedMoves(this.current).findIndex(y=>y.t===d)),move:(m,d)=>this.moveMoveKey(m,d),add:()=>this.addMoveKey(Math.round(this.host.currentTime()))}],b=[s,n,...a.map(m=>m.t),...r.map(m=>m.t)];this.timeline.show(v,i,this.host.currentTime(),{from:Math.min(0,...b),to:Math.max(i,...b)})}sortedLight(e){return[...e.light??[]].sort((t,i)=>t.t-i.t)}sortedMoves(e){return[...e.moves??[]].sort((t,i)=>t.t-i.t)}selectRow(e){this.row=e,this.syncDetail(!0)}syncDetail(e=!1){this.current&&(this.element("beam-on").hidden=this.row!=="on",this.element("beam-light").hidden=this.row!=="light",this.element("beam-path").hidden=this.row!=="path",this.row==="on"&&this.syncOn(e),this.row==="light"&&this.syncLight(e),this.row==="path"&&this.syncPath(e),this.syncTimeline())}syncOn(e){this.onForm?this.onForm.sync(e):(this.onForm=new g(this.element("beam-on-parameters"),this.language,"beamOn."),this.onForm.show(this.resolved(h.ON),this.targetOfBeam(),()=>this.syncTimeline()))}moveEnd(e,t){this.editBeam(i=>{i[e]=t,i.fromT!==void 0&&i.untilT!==void 0&&i.untilT<i.fromT&&(e==="fromT"?delete i.untilT:[i.fromT,i.untilT]=[i.untilT,i.fromT])}),this.selectRow("on")}selectLight(e){const t=this.current?this.sortedLight(this.current):[];this.lightIndex=e!==void 0&&e>=0&&e<t.length?e:t.length?0:void 0,this.selectRow("light")}get currentLightKey(){const e=this.current;return e&&this.lightIndex!==void 0?this.sortedLight(e)[this.lightIndex]:void 0}syncLight(e){const t=this.messages,i=this.currentLightKey;this.element("beam-light-note").textContent=i?t.lightKeyNote:t.lightNoKeyNote,this.element("beam-light-parameters").hidden=i!==void 0,this.element("beam-light-key-parameters").hidden=i===void 0,this.element("beam-light-delete").hidden=i===void 0,this.lightForm?this.lightForm.sync(e):(this.lightForm=new g(this.element("beam-light-parameters"),this.language,"beamLight."),this.lightForm.show(this.resolved(h.LIGHT),this.targetOfBeam(),()=>this.syncColour())),this.lightKeyForm?this.lightKeyForm.sync(e):(this.lightKeyForm=new g(this.element("beam-light-key-parameters"),this.language,"beamLightKey."),this.lightKeyForm.show(this.resolved(h.LIGHT_KEY),new f(()=>this.currentLightKey,s=>this.editLightKey(this.lightIndex,s),()=>this.current),()=>this.syncColour())),this.syncColour()}syncColour(){const e=this.current;e&&(this.element("beam-colour").value=h.hexOf(this.currentLightKey?.wavelengthNm??e.wavelengthNm))}pickColour(e){const t=h.wavelengthOf(e);this.lightIndex===void 0?(this.editBeam(i=>{i.wavelengthNm=t}),this.lightForm?.sync(!0)):(this.editLightKey(this.lightIndex,i=>{i.wavelengthNm=t}),this.lightKeyForm?.sync(!0))}editLightKey(e,t){const i=this.current;if(!i)return;const s=this.sortedLight(i),n={...s[e]};t(n);const o=s.map((a,r)=>r===e?n:a).sort((a,r)=>a.t-r.t);this.editBeam(a=>{a.light=o}),this.lightIndex=o.indexOf(n),this.syncTimeline()}addLightKey(e){const t=this.current;if(!t)return;const i=this.sortedLight(t),s=i.findIndex(r=>Math.abs(r.t-e)<1);if(s>=0){this.selectLight(s);return}const n=u.stateAt(t,e),o={t:e,wavelengthNm:Math.round(n.wavelengthNm),powerW:Number(n.powerW.toFixed(3))},a=[...i,o].sort((r,v)=>r.t-v.t);this.editBeam(r=>{r.light=a}),this.selectLight(a.indexOf(o))}moveLightKey(e,t){const i=this.current?this.sortedLight(this.current).findIndex(s=>s.t===e):-1;i<0||(this.editLightKey(i,s=>{s.t=t}),this.selectRow("light"))}removeLightKey(){const e=this.current,t=this.lightIndex;if(!e||t===void 0)return;const i=this.sortedLight(e).filter((s,n)=>n!==t);this.editBeam(s=>{i.length?s.light=i:delete s.light}),this.selectLight(i.length?Math.min(t,i.length-1):void 0)}selectMove(e){const t=this.current?this.sortedMoves(this.current):[],i=e!==void 0&&e>=0&&e<t.length?e:t.length?0:void 0;i!==this.moveIndex&&(this.placeIndex=0),this.moveIndex=i,this.selectRow("path")}get currentMoveKey(){const e=this.current;return e&&this.moveIndex!==void 0?this.sortedMoves(e)[this.moveIndex]:void 0}get shownPath(){return this.currentMoveKey?.path??this.current?.path??[]}syncPath(e){const t=this.messages,i=this.currentMoveKey;this.element("beam-path-note").textContent=i?t.pathKeyNote:t.pathNoKeyNote,this.element("beam-move-key-parameters").hidden=i===void 0,this.element("beam-move-delete").hidden=i===void 0,this.moveKeyForm?this.moveKeyForm.sync(e):(this.moveKeyForm=new g(this.element("beam-move-key-parameters"),this.language,"beamMoveKey."),this.moveKeyForm.show(this.resolved(h.MOVE_KEY),new f(()=>this.currentMoveKey,s=>this.editMoveKey(this.moveIndex,n=>s(n))),()=>{})),this.syncPlaces(e)}editMoveKey(e,t){const i=this.current;if(!i)return;const s=this.sortedMoves(i),n={...s[e],path:[...s[e].path]};t(n);const o=s.map((a,r)=>r===e?n:a).sort((a,r)=>a.t-r.t);this.editBeam(a=>{a.moves=o}),this.moveIndex=o.indexOf(n),this.syncTimeline()}addMoveKey(e){const t=this.current;if(!t)return;const i=this.sortedMoves(t),s=i.findIndex(a=>Math.abs(a.t-e)<1);if(s>=0){this.selectMove(s);return}const n={t:e,path:u.stateAt(t,e).path.map(a=>({...a}))},o=[...i,n].sort((a,r)=>a.t-r.t);this.editBeam(a=>{a.moves=o}),this.selectMove(o.indexOf(n))}moveMoveKey(e,t){const i=this.current?this.sortedMoves(this.current).findIndex(s=>s.t===e):-1;i<0||(this.editMoveKey(i,s=>{s.t=t}),this.selectRow("path"))}removeMoveKey(){const e=this.current,t=this.moveIndex;if(!e||t===void 0)return;const i=this.sortedMoves(e).filter((s,n)=>n!==t);this.editBeam(s=>{i.length?s.moves=i:delete s.moves}),this.selectMove(i.length?Math.min(t,i.length-1):void 0)}syncPlaces(e=!1){const t=this.shownPath;this.placeIndex=Math.max(0,Math.min(this.placeIndex,t.length-1)),this.places?.setItems(t.map((i,s)=>({id:String(s),label:`${s+1}/${t.length}`})),String(this.placeIndex)),this.places?.setStepState(this.placeIndex>0,this.placeIndex<t.length-1),this.places?.setRemoveEnabled(t.length>p.MIN_PLACES),this.placeForm?this.placeForm.sync(e):(this.placeForm=new g(this.element("beam-place-parameters"),this.language,"beamPlace."),this.placeForm.show(this.resolved(h.PLACE),new f(()=>this.shownPath[this.placeIndex],i=>this.editPath(s=>{const n={...s[this.placeIndex]};return i(n),s.map((o,a)=>a===this.placeIndex?n:o)}),void 0,this.host.positionPlace?.()),()=>{}))}editPath(e){this.moveIndex!==void 0?this.editMoveKey(this.moveIndex,t=>{t.path=e(t.path)}):this.editBeam(t=>{t.path=e(t.path)})}static MIN_PLACES=2;selectPlace(e){const t=this.shownPath;e<0||e>=t.length||(this.placeIndex=e,this.syncPlaces(!0))}addPlace(){this.editPath(e=>[...e,h.nextPlace(e)]),this.placeIndex=this.shownPath.length-1,this.syncPlaces(!0)}removePlace(){if(this.shownPath.length<=p.MIN_PLACES)return;const e=this.placeIndex;this.editPath(t=>t.filter((i,s)=>s!==e)),this.syncPlaces(!0)}editBeam(e){const t=this.current;if(!t)return;const i={...t,path:[...t.path]};e(i),this.writeBeams(this.beams.map(s=>s===t?i:s)),this.host.changed()}pathOfNew(){const e=this.host.sighting(),t=e.event?.place?.[0];if(t?.lat===void 0||t.lng===void 0)return;const i=(e.observerTrack?.getInterpolatedPoseAt(0)?.headingDeg??0)*Math.PI/180,s=111320;return[{lat:t.lat,lng:t.lng,altitudeM:0},{lat:t.lat+2e3*Math.cos(i)/s,lng:t.lng+2e3*Math.sin(i)/(s*Math.max(.05,Math.cos(t.lat*Math.PI/180))),altitudeM:100}]}addBeam(){const e=this.pathOfNew();if(!e)return;let t=this.beams.length+1;for(;this.beams.some(s=>s.id===`beam-${t}`);)t++;const i={id:`beam-${t}`,path:e,wavelengthNm:532,powerW:5};this.writeBeams([...this.beams,i]),this.host.changed(),this.show(i.id)}deleteCurrent(){const e=this.current;e&&(this.currentId=void 0,this.writeBeams(this.beams.filter(t=>t!==e)),this.host.changed(),this.sync())}writeBeams(e){const t=this.host.sighting();t.skyEvents=M.written({...t.skyEvents,beams:e})}labelOf(e){const t=this.host.said().read(e.title);return t?`${t} (${e.id})`:e.id}get beams(){return this.host.sighting().skyEvents?.beams??[]}element(e){return this.container.querySelector(`#${e}`)}}export{p as BeamEditor};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as C,w as V,x as G,M as W,K as X,T as k,A as v}from"./three.module-CbaHqYFq.js";import{L as w}from"./LaserBeam-C7glTvQN.js";import{b8 as L}from"./ShareDialogElement-CBeU9ChH.js";import"./rr0-ufoathome.mjs";import"./Sighting-B7bsiTIQ.js";import"./VisualAids-DI-hEL46.js";import"./SaidPosition-OJEYhVKN.js";import"./GeoProjection-DvqDbRIx.js";import"./Decor-Dn-cvniW.js";import"./RecordingIssue-BlWT8Xsu.js";import"./xyzImageryRaster-Dhxs0B26.js";import"./Obstacles-v9SkfBD7.js";class M{static laser(s){const t=w.colourOf(s),e=w.efficacy(s);return{scatteredAt:(h,n,i,c)=>{const r=w.coefficientsAt(h,s,n),y=e*w.phasedScattering({...r,aerosolPerM:r.aerosolPerM*i},c);return[y*t[0],y*t[1],y*t[2]]}}}static white(s){return{scatteredAt:(t,e,h,n)=>{const i=L.rayleighDensity(e),c=L.aerosolDensity(e)*h;return[0,1,2].map(r=>s[r]*w.phasedScattering({rayleighPerM:t.rayleigh[r]*i,aerosolPerM:t.aerosol[r]*c},n))}}}static MAX_SEGMENTS=12e3;static MIN_PIXELS=2;static VERTICES_PER_SEGMENT=24;static HALO_RAD=.002;static HALO_SHARE=.15;static BRIGHTEST_RELATIVE=6e4;group=new C;mesh;positions=new Float32Array(M.MAX_SEGMENTS*M.VERTICES_PER_SEGMENT*3);colors=new Float32Array(M.MAX_SEGMENTS*M.VERTICES_PER_SEGMENT*3);segments=0;drawn=[];cut;constructor(){const s=new V;s.setAttribute("position",new G(this.positions,3)),s.setAttribute("color",new G(this.colors,3)),s.setDrawRange(0,0),this.mesh=new W(s,new X({vertexColors:!0,transparent:!0,blending:v,depthWrite:!1,fog:!1,side:k})),this.mesh.frustumCulled=!1,this.mesh.renderOrder=8,this.mesh.name="beams",this.group.name="beams",this.group.add(this.mesh)}get segmentCount(){return this.segments}get object(){return this.group}get drawnCount(){return this.segments}pick(s,t,e){return this.pickAt(s,t,e.toleranceRad)}update(s,t,e){this.drawLines(this.viewsOf(s,t,e).map(h=>({id:h.id,points:this.place(h,t,e),spectrum:M.laser(h.wavelengthNm)})),e)}get material(){return this.mesh.material}drawLines(s,t){let e=0;this.segments=0,this.drawn=[];for(const n of s){const i=n.points;this.drawn.push({id:n.id,points:i});for(let c=0;c+1<i.length&&!(this.segments>=M.MAX_SEGMENTS);c++){const r=this.pushSegment(e,i[c],i[c+1],n.spectrum,t);r>e&&this.segments++,e=r}}const h=this.mesh.geometry;h.setDrawRange(0,e);for(const n of["position","color"]){const i=h.getAttribute(n);i.clearUpdateRanges(),e>0&&i.addUpdateRange(0,e*3),i.needsUpdate=!0}}viewsOf(s,t,e){const{lat:h,lng:n}=e.reference;(!this.cut||this.cut.lat!==h||this.cut.lng!==n||this.cut.air!==e.air)&&(this.cut={lat:h,lng:n,air:e.air,views:new Map});const i=this.cut.views,c=new Set(s);return w.onAt(s,t).map(r=>{if(!c.has(r))return w.viewOf(r,e.reference,e.air);let y=i.get(r);return y||i.set(r,y=w.viewOf(r,e.reference,e.air)),y})}place(s,t,e){const h=[],n=e.wind??{eastMS:0,northMS:0};for(const i of s.samples){const c=e.origin.x+i.eastM*e.eastScale,r=e.origin.z-i.northM,y=i.upM-e.siteElevationM;if(h.length>0&&y<e.groundYAt(c,r))break;const u=n.eastMS*i.dirEast+n.northMS*i.dirNorth,p=n.eastMS*i.dirNorth-n.northMS*i.dirEast,m=w.patchAt(i.fromSourceM,t,{windAlongMS:u,windAcrossMS:p,patchiness:s.patchiness});h.push({x:c,y,z:r,altitudeM:i.altitudeM,widthM:i.widthM,powerW:i.powerW,haze:m})}return h}static SMOOTH_RATIO=1.08;static MAX_HALVINGS=6;pushSegment(s,t,e,h,n,i=0){const c={x:e.x-t.x,y:e.y-t.y,z:e.z-t.z},r=Math.hypot(c.x,c.y,c.z);if(r<1e-6)return s;const y={x:c.x/r,y:c.y/r,z:c.z/r};if(Math.hypot((t.x+e.x)/2-n.eye.x,(t.y+e.y)/2-n.eye.y,(t.z+e.z)/2-n.eye.z)<.001)return s;const u=o=>{const l={x:n.eye.x-o.x,y:n.eye.y-o.y,z:n.eye.z-o.z},z=Math.hypot(l.x,l.y,l.z)||.001,d=(y.x*l.x+y.y*l.y+y.z*l.z)/z,a=Math.sqrt(Math.max(0,1-d*d)),A=h.scatteredAt(n.air,o.altitudeM,o.haze,d);return{sinTurn:a,scattered:A,through:n.transmittanceTo(o.x,o.y,o.z)}},p=o=>M.MIN_PIXELS*n.pixelRad*Math.hypot(o.x-n.eye.x,o.y-n.eye.y,o.z-n.eye.z),m=o=>Math.hypot(o.x-n.eye.x,o.y-n.eye.y,o.z-n.eye.z),S=o=>Math.max(o.widthM,M.HALO_RAD*m(o)),T=o=>{const l=S(o)/p(o),z=Math.min(1,Math.max(0,l-1));return M.HALO_SHARE*z*z*(3-2*z)},O=new Map([t,e].map(o=>[o,u(o)])),f=(o,l,z)=>{const d=Math.max(l,p(o)),{sinTurn:a,scattered:A,through:E}=O.get(o),I=2*z*o.powerW/(d*Math.max(a,.001)),N=A.map((_,D)=>Math.min(M.BRIGHTEST_RELATIVE,I*_*n.relativeScale*E[D])),P={x:n.eye.x-o.x,y:n.eye.y-o.y,z:n.eye.z-o.z},H=this.normalise(this.cross(y,P));return{point:o,half:d/2,level:N,across:H}},R=[[f(t,t.widthM,1-T(t)),f(e,e.widthM,1-T(e))],[f(t,S(t),T(t)),f(e,S(e),T(e))]],[x,g]=R[0].map(o=>Math.max(...o.level));if(i<M.MAX_HALVINGS&&Math.max(x,g)>M.SMOOTH_RATIO*Math.max(Math.min(x,g),1e-12)){const o={x:(t.x+e.x)/2,y:(t.y+e.y)/2,z:(t.z+e.z)/2,altitudeM:(t.altitudeM+e.altitudeM)/2,widthM:(t.widthM+e.widthM)/2,powerW:Math.sqrt(t.powerW*e.powerW),haze:(t.haze+e.haze)/2};return this.pushSegment(this.pushSegment(s,t,o,h,n,i+1),o,e,h,n,i+1)}if((s+M.VERTICES_PER_SEGMENT)*3>this.positions.length)return s;for(const o of R){if(o.every(a=>Math.max(...a.level)<=0))continue;const l=(a,A)=>{const E=s*3;this.positions[E]=a.point.x+a.across.x*a.half*A,this.positions[E+1]=a.point.y+a.across.y*a.half*A,this.positions[E+2]=a.point.z+a.across.z*a.half*A;const I=A===0?1:0;this.colors[E]=a.level[0]*I,this.colors[E+1]=a.level[1]*I,this.colors[E+2]=a.level[2]*I,s++},[z,d]=o;for(const a of[-1,1])l(z,a),l(z,0),l(d,a),l(z,0),l(d,0),l(d,a)}return s}pickAt(s,t,e){let h;for(const[n,i]of this.drawn.entries())for(let c=0;c+1<i.points.length;c++){const r=i.points[c],y=i.points[c+1],u={x:y.x-r.x,y:y.y-r.y,z:y.z-r.z},p={x:r.x-s.x,y:r.y-s.y,z:r.z-s.z},m=u.x*u.x+u.y*u.y+u.z*u.z,S=u.x*t.x+u.y*t.y+u.z*t.z,T=u.x*p.x+u.y*p.y+u.z*p.z,O=t.x*p.x+t.y*p.y+t.z*p.z,f=m-S*S,R=f>1e-9?Math.min(1,Math.max(0,(S*O-T)/f)):0,x={x:r.x+u.x*R,y:r.y+u.y*R,z:r.z+u.z*R},g=(x.x-s.x)*t.x+(x.y-s.y)*t.y+(x.z-s.z)*t.z;if(g<=0)continue;const o=Math.hypot(x.x-s.x-t.x*g,x.y-s.y-t.y*g,x.z-s.z-t.z*g),l=Math.atan2(o,g);l<=e&&(!h||l<h.angle)&&(h={id:i.id,distanceM:Math.hypot(x.x-s.x,x.y-s.y,x.z-s.z),angle:l,line:n})}return h&&{id:h.id,distanceM:h.distanceM,line:h.line}}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(){this.mesh.geometry.dispose(),this.mesh.material.dispose(),this.group.removeFromParent()}}export{M as BeamSystem};
|