@rr0/ufoathome 0.202.1 → 0.203.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-embed-interview/InterviewMessages_en-Ikx6GjEd.js +3 -0
- package/dist-embed-interview/InterviewMessages_es-DKWWyrnb.js +3 -0
- package/dist-embed-interview/InterviewMessages_fr-DT0gXAKD.js +3 -0
- package/dist-embed-interview/InterviewMessages_it-CF_9MYPt.js +3 -0
- package/dist-embed-interview/rr0-interview.mjs +1 -1
- package/dist-embed-scene/ModuleSession-Bh6KaOGK.js +3 -0
- package/dist-embed-scene/rr0-scene.mjs +67 -67
- package/dist-embed-sighting/{CaseReportExport-BtGCWD7H.js → CaseReportExport--iqqhu1e.js} +1 -1
- package/dist-embed-sighting/HvsMessages_en-BiLhEAxJ.js +1 -0
- package/dist-embed-sighting/HvsMessages_es-Cbj_6eFs.js +1 -0
- package/dist-embed-sighting/HvsMessages_fr-DkvE2qm1.js +1 -0
- package/dist-embed-sighting/HvsMessages_it-BIJ87Uyb.js +1 -0
- package/dist-embed-sighting/InterviewMessages_en-Ikx6GjEd.js +3 -0
- package/dist-embed-sighting/InterviewMessages_es-DKWWyrnb.js +3 -0
- package/dist-embed-sighting/InterviewMessages_fr-DT0gXAKD.js +3 -0
- package/dist-embed-sighting/InterviewMessages_it-CF_9MYPt.js +3 -0
- package/dist-embed-sighting/ModuleSession-_kHZ7Tx3.js +3 -0
- package/dist-embed-sighting/ReadingCheckTexts_en-C5qzU8K7.js +1 -0
- package/dist-embed-sighting/ReadingCheckTexts_es-DdhtmSew.js +1 -0
- package/dist-embed-sighting/ReadingCheckTexts_fr-COtovvqc.js +1 -0
- package/dist-embed-sighting/ReadingCheckTexts_it-Bz32XGh6.js +1 -0
- package/dist-embed-sighting/rr0-sighting.mjs +399 -354
- package/dist-embed-sighting-editor/{AdsbLolArchiveProvider-Bz1OjSjY.js → AdsbLolArchiveProvider-DNYpHE9t.js} +1 -1
- package/dist-embed-sighting-editor/{AirshipEditor-BlJXyxlr.js → AirshipEditor-B_TQEcNk.js} +1 -1
- package/dist-embed-sighting-editor/{AirshipFlight-Cx40Y8JT.js → AirshipFlight-zrtPXNvX.js} +1 -1
- package/dist-embed-sighting-editor/{Aurora-Ldk66p1A.js → Aurora-wHi_XgNK.js} +1 -1
- package/dist-embed-sighting-editor/{AuroraEditor-CGSomAFk.js → AuroraEditor-CHAo9LbG.js} +1 -1
- package/dist-embed-sighting-editor/{AuroraSimulation-vKcv2Hue.js → AuroraSimulation-CMoKbd0k.js} +2 -2
- package/dist-embed-sighting-editor/{BallesterGuaspAssessor-CJyRqwvh.js → BallesterGuaspAssessor-Bylahnc2.js} +1 -1
- package/dist-embed-sighting-editor/{BalloonEditor-CgO4LaWn.js → BalloonEditor-DOmOj25v.js} +1 -1
- package/dist-embed-sighting-editor/{BalloonFlight-hLr_4TFU.js → BalloonFlight-DkhpbdZV.js} +1 -1
- package/dist-embed-sighting-editor/{BeamEditor-B8qreA3j.js → BeamEditor-CwC6pRPq.js} +1 -1
- package/dist-embed-sighting-editor/{BeamSystem-D0hrju5J.js → BeamSystem-Zsq9zuJa.js} +1 -1
- package/dist-embed-sighting-editor/{BirdEditor-BNzrfSqX.js → BirdEditor-DslUOI4x.js} +1 -1
- package/dist-embed-sighting-editor/{BirdFlock-iSovVEZd.js → BirdFlock-BoXaV-S_.js} +1 -1
- package/dist-embed-sighting-editor/{CaseElement-D80gHg4r.js → CaseElement-DFnjs2AU.js} +6 -5
- package/dist-embed-sighting-editor/{CaseReportExport-Bv6FWPs2.js → CaseReportExport-CX87uNr9.js} +1 -1
- package/dist-embed-sighting-editor/{ContrailSystem-D3tXAg2r.js → ContrailSystem-hUtlCEq-.js} +1 -1
- package/dist-embed-sighting-editor/{ControlPasses-CaVHMhEY.js → ControlPasses-C8qq_tSL.js} +1 -1
- package/dist-embed-sighting-editor/{CoverageAssessor-CTfHqAd_.js → CoverageAssessor-uzQnTEH8.js} +1 -1
- package/dist-embed-sighting-editor/{DroneEditor-BFsArPKi.js → DroneEditor-M2V3FKbS.js} +1 -1
- package/dist-embed-sighting-editor/{DroneFlight-B96pVrY1.js → DroneFlight-C1bur42A.js} +1 -1
- package/dist-embed-sighting-editor/{DroneParameters-DW-enQUo.js → DroneParameters-DRfoxMx8.js} +1 -1
- package/dist-embed-sighting-editor/{Flightradar24Provider-CBGkjw03.js → Flightradar24Provider-BJDB9e9p.js} +1 -1
- package/dist-embed-sighting-editor/{GLTFLoader-CrRPu-Pt.js → GLTFLoader-CQrldtm5.js} +1 -1
- package/dist-embed-sighting-editor/{HeadlightSystem-BmPfcHt1.js → HeadlightSystem-BzXjwGDi.js} +1 -1
- package/dist-embed-sighting-editor/HvsMessages_en-BiLhEAxJ.js +1 -0
- package/dist-embed-sighting-editor/HvsMessages_es-Cbj_6eFs.js +1 -0
- package/dist-embed-sighting-editor/HvsMessages_fr-DkvE2qm1.js +1 -0
- package/dist-embed-sighting-editor/HvsMessages_it-BIJ87Uyb.js +1 -0
- package/dist-embed-sighting-editor/{HynekAssessor-nBidt6QV.js → HynekAssessor-Bpze0IeH.js} +1 -1
- package/dist-embed-sighting-editor/{InterviewEditorElement-CQWfYlGL.js → InterviewEditorElement-C6y-8Wze.js} +6 -6
- package/dist-embed-sighting-editor/InterviewMessages_en-Ikx6GjEd.js +3 -0
- package/dist-embed-sighting-editor/InterviewMessages_es-DKWWyrnb.js +3 -0
- package/dist-embed-sighting-editor/InterviewMessages_fr-DT0gXAKD.js +3 -0
- package/dist-embed-sighting-editor/InterviewMessages_it-CF_9MYPt.js +3 -0
- package/dist-embed-sighting-editor/{LanternEditor-CjQVFowY.js → LanternEditor-6fXL9oHW.js} +1 -1
- package/dist-embed-sighting-editor/{LaserBeam-BVc8Mvhr.js → LaserBeam-Cl4c8oJt.js} +1 -1
- package/dist-embed-sighting-editor/{LaunchEditor-Cz8Mzo4a.js → LaunchEditor-C9swLaSJ.js} +1 -1
- package/dist-embed-sighting-editor/{LaunchPlume-CvBhTPgN.js → LaunchPlume-CPBS4JLE.js} +1 -1
- package/dist-embed-sighting-editor/{LaunchSimulation-CkZIG-3P.js → LaunchSimulation-zjImyFHC.js} +1 -1
- package/dist-embed-sighting-editor/{ModelSource-B153oeTu.js → ModelSource-ZiTya13j.js} +1 -1
- package/dist-embed-sighting-editor/{ModelThumbnails-BUL_OLFv.js → ModelThumbnails-BKl0Wk33.js} +1 -1
- package/dist-embed-sighting-editor/{ModelViewer-BzBLcY9s.js → ModelViewer-ZZnOiYz4.js} +1 -1
- package/dist-embed-sighting-editor/{ModuleConformance-CpMYkYgb.js → ModuleConformance-CYQ-Mn8w.js} +2 -2
- package/dist-embed-sighting-editor/ModuleSession-BklqVucx.js +3 -0
- package/dist-embed-sighting-editor/ModuleThree-jNUgMjnf.js +1 -0
- package/dist-embed-sighting-editor/ModulesPanelElement-MEFltyZr.js +26 -0
- package/dist-embed-sighting-editor/ModulesPanelMessages_en-CXQhQMyu.js +1 -0
- package/dist-embed-sighting-editor/ModulesPanelMessages_es-Bj-cT3f4.js +1 -0
- package/dist-embed-sighting-editor/ModulesPanelMessages_fr-B-eaMXQz.js +1 -0
- package/dist-embed-sighting-editor/ModulesPanelMessages_it-C3fS8UFN.js +1 -0
- package/dist-embed-sighting-editor/{NearestApproach-Bxo_N7a9.js → NearestApproach-Bnx9Ld5_.js} +1 -1
- package/dist-embed-sighting-editor/{PoherAssessor-CEVA26zd.js → PoherAssessor-CNj_Nyci.js} +1 -1
- package/dist-embed-sighting-editor/{RailwaySystem-Ceb0_MVz.js → RailwaySystem-Dn-v2OAb.js} +1 -1
- package/dist-embed-sighting-editor/ReadingCheckTexts_en-C5qzU8K7.js +1 -0
- package/dist-embed-sighting-editor/ReadingCheckTexts_es-DdhtmSew.js +1 -0
- package/dist-embed-sighting-editor/ReadingCheckTexts_fr-COtovvqc.js +1 -0
- package/dist-embed-sighting-editor/ReadingCheckTexts_it-Bz32XGh6.js +1 -0
- package/dist-embed-sighting-editor/{ReentryEditor-BWCK2g_s.js → ReentryEditor-DPt4At81.js} +1 -1
- package/dist-embed-sighting-editor/{ReentrySimulation-B09JXMu5.js → ReentrySimulation-DwaQrNN5.js} +1 -1
- package/dist-embed-sighting-editor/{ReferenceSystem-B15kw0uH.js → ReferenceSystem-DlaF5KWz.js} +1 -1
- package/dist-embed-sighting-editor/{SearchlightEditor-BpwPOhJ6.js → SearchlightEditor-CdTMwgER.js} +1 -1
- package/dist-embed-sighting-editor/{SearchlightSystem-D7sdsRYn.js → SearchlightSystem-jipCae7J.js} +1 -1
- package/dist-embed-sighting-editor/SightingEditorMessages_en-BmqJK2u_.js +12 -0
- package/dist-embed-sighting-editor/SightingEditorMessages_es-avQMqPMq.js +12 -0
- package/dist-embed-sighting-editor/SightingEditorMessages_fr-ClEadK1E.js +12 -0
- package/dist-embed-sighting-editor/SightingEditorMessages_it-Co5behaA.js +12 -0
- package/dist-embed-sighting-editor/{SightingElement-Bp-t_EAF.js → SightingElement-C6CT6DBZ.js} +2 -2
- package/dist-embed-sighting-editor/{SkyLantern-D6bru_e_.js → SkyLantern-CYhqKOnv.js} +1 -1
- package/dist-embed-sighting-editor/{TraceSystem-Bv4kLpie.js → TraceSystem-Bj0G3fL7.js} +2 -2
- package/dist-embed-sighting-editor/{WaterSystem-Bbk_RJKg.js → WaterSystem-Cv4v7PXz.js} +2 -2
- package/{dist-embed-ufoathome/caseSchema-BEJTs2Ld.js → dist-embed-sighting-editor/caseSchema-Cukbjeex.js} +1 -1
- package/dist-embed-sighting-editor/rr0-sighting-editor.mjs +464 -416
- package/dist-embed-sighting-editor/{trafficRuntime-Bu3my6S4.js → trafficRuntime-BdBceXei.js} +1 -1
- package/dist-embed-ufoathome/{AdsbLolArchiveProvider-v1sSwhN1.js → AdsbLolArchiveProvider-D169IKdZ.js} +1 -1
- package/dist-embed-ufoathome/{AirshipEditor-CBSrQM3J.js → AirshipEditor-EBfUtSiB.js} +1 -1
- package/dist-embed-ufoathome/{AirshipFlight-Dzpw8HRM.js → AirshipFlight-6yYGIRn8.js} +1 -1
- package/dist-embed-ufoathome/{Aurora-Dc4u2vEw.js → Aurora-CP_Xi-9o.js} +1 -1
- package/dist-embed-ufoathome/{AuroraEditor-CeLzRDPj.js → AuroraEditor-B_Rxo_6I.js} +1 -1
- package/dist-embed-ufoathome/{AuroraSimulation-BT1CdWX5.js → AuroraSimulation-KHkJyuus.js} +1 -1
- package/dist-embed-ufoathome/{BallesterGuaspAssessor-CPW-Omah.js → BallesterGuaspAssessor-58lmGHUw.js} +1 -1
- package/dist-embed-ufoathome/{BalloonEditor-dCIjTsIz.js → BalloonEditor-CAKXO8DQ.js} +2 -2
- package/dist-embed-ufoathome/{BalloonFlight-CztT6ddg.js → BalloonFlight-CvE7AHlm.js} +1 -1
- package/dist-embed-ufoathome/{BeamEditor-BS73mBZU.js → BeamEditor-BOsTgbHL.js} +1 -1
- package/dist-embed-ufoathome/{BeamSystem-C5EpRhij.js → BeamSystem-C7OL1VWr.js} +1 -1
- package/dist-embed-ufoathome/{BirdEditor-Dk3huwHa.js → BirdEditor-CBVGyUnK.js} +1 -1
- package/dist-embed-ufoathome/{BodyEditor-BV8WwzAj.js → BodyEditor-DZ9-YBfo.js} +1 -1
- package/dist-embed-ufoathome/{CaseEditorElement-HR8RFluQ.js → CaseEditorElement-BgT6HnpX.js} +73 -69
- package/dist-embed-ufoathome/CaseElement-DVXLO8mr.js +132 -0
- package/dist-embed-ufoathome/{CaseReportExport-XLbFCkPg.js → CaseReportExport-Dui5KDc5.js} +3 -3
- package/dist-embed-ufoathome/ColumnResize-CO4e1m-q.js +208 -0
- package/dist-embed-ufoathome/ConsentMessages_en-DBKCeDAn.js +1 -0
- package/dist-embed-ufoathome/ConsentMessages_es-Dby74lUq.js +1 -0
- package/dist-embed-ufoathome/ConsentMessages_fr-FGSpqzMc.js +1 -0
- package/dist-embed-ufoathome/ConsentMessages_it-BJWfXH6I.js +1 -0
- package/dist-embed-ufoathome/{ControlPasses-CKOU_3lG.js → ControlPasses-CJ2jMdlf.js} +1 -1
- package/dist-embed-ufoathome/{CoverageAssessor-BYMf3Qhv.js → CoverageAssessor-CzhOt6fv.js} +1 -1
- package/dist-embed-ufoathome/{DroneEditor-D60uhSHO.js → DroneEditor-7X9CM_3H.js} +1 -1
- package/dist-embed-ufoathome/{Flightradar24Provider-_QPbhh5s.js → Flightradar24Provider-TCNh_VXc.js} +1 -1
- package/dist-embed-ufoathome/{GLTFLoader-DQeHB-Bk.js → GLTFLoader-BaIfBICM.js} +1 -1
- package/dist-embed-ufoathome/{GeoJsonExport-Pq_pPvjK.js → GeoJsonExport-B5AFUVEM.js} +1 -1
- package/dist-embed-ufoathome/GeographicFigures-DrlbDt4f.js +1 -0
- package/dist-embed-ufoathome/HvsMessages_en-BiLhEAxJ.js +1 -0
- package/dist-embed-ufoathome/HvsMessages_es-Cbj_6eFs.js +1 -0
- package/dist-embed-ufoathome/HvsMessages_fr-DkvE2qm1.js +1 -0
- package/dist-embed-ufoathome/HvsMessages_it-BIJ87Uyb.js +1 -0
- package/dist-embed-ufoathome/{HynekAssessor-wCDhgIB8.js → HynekAssessor-DaCcWwTH.js} +1 -1
- package/dist-embed-ufoathome/{InterviewEditorElement-BSwkegEp.js → InterviewEditorElement-o21YUvNz.js} +6 -6
- package/dist-embed-ufoathome/{InterviewElement-CfkDtybc.js → InterviewElement-K_oIXneA.js} +2 -2
- package/dist-embed-ufoathome/InterviewMessages_en-Ikx6GjEd.js +3 -0
- package/dist-embed-ufoathome/InterviewMessages_es-DKWWyrnb.js +3 -0
- package/dist-embed-ufoathome/InterviewMessages_fr-DT0gXAKD.js +3 -0
- package/dist-embed-ufoathome/InterviewMessages_it-CF_9MYPt.js +3 -0
- package/dist-embed-ufoathome/{KmlExport-BMNwwys8.js → KmlExport-BfiqE1s2.js} +1 -1
- package/dist-embed-ufoathome/{LanternEditor-BapUZdog.js → LanternEditor-CepeoImr.js} +1 -1
- package/dist-embed-ufoathome/{LaserBeam-B-tlAzNB.js → LaserBeam-IRXmv6wc.js} +1 -1
- package/dist-embed-ufoathome/{LaunchEditor-Cy5D-gwU.js → LaunchEditor-C4hq0VUw.js} +1 -1
- package/dist-embed-ufoathome/{LaunchPlume-D-vSb8tJ.js → LaunchPlume-CujlF3wZ.js} +1 -1
- package/dist-embed-ufoathome/{LaunchSimulation-CZ8Oba00.js → LaunchSimulation-58_ZZy8q.js} +1 -1
- package/dist-embed-ufoathome/{ModelSource-HSiigkeO.js → ModelSource-Bz25TN6e.js} +1 -1
- package/dist-embed-ufoathome/{ModelThumbnails-DWvRMmj_.js → ModelThumbnails-CcYlw6gA.js} +1 -1
- package/dist-embed-ufoathome/{ModelViewer-CM7qTW8F.js → ModelViewer-CD90RTYi.js} +1 -1
- package/dist-embed-ufoathome/ModuleSession-Dac4fD0X.js +3 -0
- package/dist-embed-ufoathome/ModulesPanelElement-DZxFsuuG.js +18 -0
- package/dist-embed-ufoathome/ModulesPanelMessages_en-Dir0ADQe.js +1 -0
- package/dist-embed-ufoathome/ModulesPanelMessages_es-B_ITNG5N.js +1 -0
- package/dist-embed-ufoathome/ModulesPanelMessages_fr-DbKLtD8s.js +1 -0
- package/dist-embed-ufoathome/ModulesPanelMessages_it-CE0q7D2c.js +1 -0
- package/dist-embed-ufoathome/NearestApproach-DsszB5Rd.js +1 -0
- package/dist-embed-ufoathome/{PoherAssessor-CniYlhUl.js → PoherAssessor-BkCJ1UTQ.js} +1 -1
- package/dist-embed-ufoathome/QuestionnaireFeed-DmyYcwwf.js +1 -0
- package/dist-embed-ufoathome/QuestionnaireForm-vT3C3qXt.js +1 -0
- package/dist-embed-ufoathome/QuestionnaireImport-BlTDOHWj.js +5 -0
- package/dist-embed-ufoathome/ReadingCheckTexts_en-C5qzU8K7.js +1 -0
- package/dist-embed-ufoathome/ReadingCheckTexts_es-DdhtmSew.js +1 -0
- package/dist-embed-ufoathome/ReadingCheckTexts_fr-COtovvqc.js +1 -0
- package/dist-embed-ufoathome/ReadingCheckTexts_it-Bz32XGh6.js +1 -0
- package/dist-embed-ufoathome/{ReentryEditor-Qax1sT82.js → ReentryEditor-BjyUUZGU.js} +1 -1
- package/dist-embed-ufoathome/{ReentrySimulation-CTeCaxZl.js → ReentrySimulation-5VI9Dla4.js} +1 -1
- package/dist-embed-ufoathome/{ReferenceSystem-CM27OCUo.js → ReferenceSystem-C0ZXvatV.js} +1 -1
- package/dist-embed-ufoathome/ScenarioReadings-CBWjF8TY.js +1 -0
- package/dist-embed-ufoathome/ScenarioSweep-MaryBOLs.js +1 -0
- package/dist-embed-ufoathome/{SearchlightEditor-PuLz84pp.js → SearchlightEditor-DPU1PgfT.js} +1 -1
- package/dist-embed-ufoathome/{SearchlightSystem-B-tHvY1M.js → SearchlightSystem-m0a11CEu.js} +1 -1
- package/dist-embed-ufoathome/{ShareDialogElement-EzLob2Tz.js → ShareDialogElement-DqCoQwtn.js} +44 -44
- package/dist-embed-ufoathome/{Sighting-B7bsiTIQ.js → Sighting-D-_IYi9n.js} +1 -1
- package/dist-embed-ufoathome/SightingEditorMessages_en-BmqJK2u_.js +12 -0
- package/dist-embed-ufoathome/SightingEditorMessages_es-avQMqPMq.js +12 -0
- package/dist-embed-ufoathome/SightingEditorMessages_fr-ClEadK1E.js +12 -0
- package/dist-embed-ufoathome/SightingEditorMessages_it-Co5behaA.js +12 -0
- package/dist-embed-ufoathome/{SightingElement--qpGoyxL.js → SightingElement-CUrYpWRD.js} +2 -2
- package/dist-embed-ufoathome/{TraceSystem-8XQX03MS.js → TraceSystem-BLumvnJD.js} +1 -1
- package/dist-embed-ufoathome/UfoAtHomeMessages_en-ByVu39KF.js +1 -0
- package/dist-embed-ufoathome/UfoAtHomeMessages_es-D9bLboxq.js +1 -0
- package/dist-embed-ufoathome/UfoAtHomeMessages_fr-nTqRf0ZK.js +1 -0
- package/dist-embed-ufoathome/UfoAtHomeMessages_it-4cZC5-y5.js +1 -0
- package/dist-embed-ufoathome/{VideoButton-WNtEngz-.js → VideoButton-hYfTEunC.js} +1 -1
- package/{dist-embed-sighting-editor/caseSchema-BEJTs2Ld.js → dist-embed-ufoathome/caseSchema-Cukbjeex.js} +1 -1
- package/dist-embed-ufoathome/rr0-ufoathome.mjs +35 -17
- package/dist-embed-ufoathome/{surroundingsSources-UHKGesPa.js → surroundingsSources-BWHnZ_qg.js} +1 -1
- package/dist-embed-ufoathome/{trafficRuntime-CgY_7-NH.js → trafficRuntime-Xpncp71U.js} +2 -2
- package/package.json +1 -1
- package/dist-embed-interview/InterviewMessages_en-BrnxG2rl.js +0 -3
- package/dist-embed-interview/InterviewMessages_es-Dxfjqrte.js +0 -3
- package/dist-embed-interview/InterviewMessages_fr-DIA-1qu8.js +0 -3
- package/dist-embed-interview/InterviewMessages_it-CYBEIKX-.js +0 -3
- package/dist-embed-scene/ModuleSession-bj7QHWjO.js +0 -3
- package/dist-embed-sighting/InterviewMessages_en-BrnxG2rl.js +0 -3
- package/dist-embed-sighting/InterviewMessages_es-Dxfjqrte.js +0 -3
- package/dist-embed-sighting/InterviewMessages_fr-DIA-1qu8.js +0 -3
- package/dist-embed-sighting/InterviewMessages_it-CYBEIKX-.js +0 -3
- package/dist-embed-sighting/ModuleSession-DztK084a.js +0 -3
- package/dist-embed-sighting/ReadingCheckTexts_en-eq6teExJ.js +0 -1
- package/dist-embed-sighting/ReadingCheckTexts_es-CR_JJZMV.js +0 -1
- package/dist-embed-sighting/ReadingCheckTexts_fr-pcDleIvY.js +0 -1
- package/dist-embed-sighting/ReadingCheckTexts_it-MFKeoXnq.js +0 -1
- package/dist-embed-sighting-editor/InterviewMessages_en-BrnxG2rl.js +0 -3
- package/dist-embed-sighting-editor/InterviewMessages_es-Dxfjqrte.js +0 -3
- package/dist-embed-sighting-editor/InterviewMessages_fr-DIA-1qu8.js +0 -3
- package/dist-embed-sighting-editor/InterviewMessages_it-CYBEIKX-.js +0 -3
- package/dist-embed-sighting-editor/ModuleSession-b_pmjUfP.js +0 -3
- package/dist-embed-sighting-editor/ModuleThree-B_FZVqsf.js +0 -1
- package/dist-embed-sighting-editor/ModulesPanelElement-D0gn9Z-y.js +0 -15
- package/dist-embed-sighting-editor/ModulesPanelMessages_en-DuwrY3Pm.js +0 -1
- package/dist-embed-sighting-editor/ModulesPanelMessages_es-Bq5X-XuT.js +0 -1
- package/dist-embed-sighting-editor/ModulesPanelMessages_fr-B8cSDc6o.js +0 -1
- package/dist-embed-sighting-editor/ModulesPanelMessages_it-BdC626aJ.js +0 -1
- package/dist-embed-sighting-editor/ReadingCheckTexts_en-eq6teExJ.js +0 -1
- package/dist-embed-sighting-editor/ReadingCheckTexts_es-CR_JJZMV.js +0 -1
- package/dist-embed-sighting-editor/ReadingCheckTexts_fr-pcDleIvY.js +0 -1
- package/dist-embed-sighting-editor/ReadingCheckTexts_it-MFKeoXnq.js +0 -1
- package/dist-embed-sighting-editor/SightingEditorMessages_en-k7_ua2OM.js +0 -12
- package/dist-embed-sighting-editor/SightingEditorMessages_es-Drqbbr5_.js +0 -12
- package/dist-embed-sighting-editor/SightingEditorMessages_fr-B_K5hsuV.js +0 -12
- package/dist-embed-sighting-editor/SightingEditorMessages_it-QCLg1d7x.js +0 -12
- 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/elevation-DPr5S6Jt.png +0 -0
- package/dist-embed-sighting-editor/geipan-qt-2025-B_RUiH8B.js +0 -7
- package/dist-embed-sighting-editor/protractor-DyE30B87.png +0 -0
- package/dist-embed-ufoathome/CaseElement-vCbCfGOv.js +0 -131
- package/dist-embed-ufoathome/ColumnResize-CEXrq3KB.js +0 -164
- package/dist-embed-ufoathome/GeographicFigures-KII55iXE.js +0 -1
- package/dist-embed-ufoathome/InterviewAttachments-BP6Prvdu.js +0 -1
- package/dist-embed-ufoathome/InterviewMessages_en-BrnxG2rl.js +0 -3
- package/dist-embed-ufoathome/InterviewMessages_es-Dxfjqrte.js +0 -3
- package/dist-embed-ufoathome/InterviewMessages_fr-DIA-1qu8.js +0 -3
- package/dist-embed-ufoathome/InterviewMessages_it-CYBEIKX-.js +0 -3
- package/dist-embed-ufoathome/ModuleSession-BKDWGSEo.js +0 -3
- package/dist-embed-ufoathome/ModulesPanelElement-DsOa2zH0.js +0 -15
- package/dist-embed-ufoathome/ModulesPanelMessages_en-DuwrY3Pm.js +0 -1
- package/dist-embed-ufoathome/ModulesPanelMessages_es-Bq5X-XuT.js +0 -1
- package/dist-embed-ufoathome/ModulesPanelMessages_fr-B8cSDc6o.js +0 -1
- package/dist-embed-ufoathome/ModulesPanelMessages_it-BdC626aJ.js +0 -1
- package/dist-embed-ufoathome/NearestApproach-PAsV5RlG.js +0 -1
- package/dist-embed-ufoathome/QuestionnaireFeed-CpZqkxlt.js +0 -1
- package/dist-embed-ufoathome/QuestionnaireForm-LkllpNx-.js +0 -1
- package/dist-embed-ufoathome/QuestionnaireImport-CNROmkT2.js +0 -5
- package/dist-embed-ufoathome/ReadingCheckTexts_en-eq6teExJ.js +0 -1
- package/dist-embed-ufoathome/ReadingCheckTexts_es-CR_JJZMV.js +0 -1
- package/dist-embed-ufoathome/ReadingCheckTexts_fr-pcDleIvY.js +0 -1
- package/dist-embed-ufoathome/ReadingCheckTexts_it-MFKeoXnq.js +0 -1
- package/dist-embed-ufoathome/ScenarioReadings-Is3HX0n0.js +0 -1
- package/dist-embed-ufoathome/ScenarioSweep-BbtX26Fi.js +0 -1
- package/dist-embed-ufoathome/SightingEditorMessages_en-k7_ua2OM.js +0 -12
- package/dist-embed-ufoathome/SightingEditorMessages_es-Drqbbr5_.js +0 -12
- package/dist-embed-ufoathome/SightingEditorMessages_fr-B_K5hsuV.js +0 -12
- package/dist-embed-ufoathome/SightingEditorMessages_it-QCLg1d7x.js +0 -12
- package/dist-embed-ufoathome/UfoAtHomeMessages_en-BK2qJyZN.js +0 -1
- package/dist-embed-ufoathome/UfoAtHomeMessages_es-B1-NDCau.js +0 -1
- package/dist-embed-ufoathome/UfoAtHomeMessages_fr-BTG047qo.js +0 -1
- package/dist-embed-ufoathome/UfoAtHomeMessages_it-Ryxv4HNU.js +0 -1
- package/dist-embed-ufoathome/angular-size-CxoysZle.png +0 -0
- package/dist-embed-ufoathome/azimuth-CvjiPmz0.png +0 -0
- package/dist-embed-ufoathome/elevation-DPr5S6Jt.png +0 -0
- package/dist-embed-ufoathome/geipan-qt-2025-B_RUiH8B.js +0 -7
- package/dist-embed-ufoathome/protractor-DyE30B87.png +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a_ as M,a$ as $,aT as I}from"./rr0-sighting-editor.mjs";class d{static RECORD_BYTES=20;static NON_ICAO_FLAG=1<<24;static UNKNOWN=65535;static MAX_DT=35999;static decode(t){if(t.length%d.RECORD_BYTES!==0)throw new Error(`An aircraft tile is a multiple of ${d.RECORD_BYTES} bytes, not ${t.length}`);const e=new DataView(t.buffer,t.byteOffset,t.byteLength),c=[];for(let n=0;n<t.length;n+=d.RECORD_BYTES){const s=e.getUint32(n,!0),a=e.getUint16(n+16,!0),r=e.getUint16(n+18,!0);c.push({icao:s&16777215,nonIcao:(s&d.NON_ICAO_FLAG)!==0,secondsInHour:e.getUint16(n+4,!0)/10,lat:e.getInt32(n+6,!0)/1e5,lng:e.getInt32(n+10,!0)/1e5,altitudeFt:e.getInt16(n+14,!0)*25,groundSpeedKt:a===d.UNKNOWN?void 0:a/10,trackDeg:r===d.UNKNOWN?void 0:r/10})}return c}}const w="https://ufoathome.org/aircraft/index.json";class f{citation=M;static DEFAULT_RADIUS_KM=150;static FLAG_MILITARY=1;static FLAG_PIA=4;static FLAG_LADD=8;static KM_PER_DEG=111.32;static HOUR_MS=36e5;fetchImpl;indexUrls;index;hours=new Map;tiles=new Map;shards=new Map;constructor(t={}){this.fetchImpl=t.fetchImpl??fetch.bind(globalThis),this.indexUrls=t.indexUrls??f.defaultIndexUrls()}static defaultIndexUrls(){const t=[];return typeof location<"u"&&/^https?:$/.test(location.protocol)&&t.push(new URL("/aircraft/index.json",location.href).href),t.includes(w)||t.push(w),t}mayCover(t){return $.mayCover(t)}async between(t,e,c,n=f.DEFAULT_RADIUS_KM){const s=await this.loadIndex();if(!s)return{status:"failed"};const a=[];for(let o=Math.floor(e/f.HOUR_MS);o<=Math.floor(c/f.HOUR_MS);o++)a.push(o);if(!a.every(o=>s.index.days.includes(f.dayOf(o))))return{status:"outside"};const r=f.tilesAround(t,n);try{const o=(await Promise.all(a.flatMap(u=>r.map(i=>this.tileOf(s.base,u,i))))).flat();return{status:"found",tracks:f.merge(o,t,e,c,n)}}catch{return{status:"failed"}}}async describe(t,e){const c=await this.loadIndex();if(!c)return;const n=t.icao.toString(16).padStart(6,"0"),s=t.nonIcao?"non-icao":n.slice(0,2),a=`${e}/${s}`;let r=this.shards.get(a);r||(r=this.fetchImpl(new URL(`${e}/aircraft/${s}.json`,c.base).href).then(g=>g.ok?g.json():{}).catch(()=>({})),this.shards.set(a,r));const o=(await r)[t.nonIcao?`~${n}`:n];if(!o)return;const[u,i,l,h=0]=o,p={registration:u||void 0,type:i||void 0,category:l||void 0,military:(h&f.FLAG_MILITARY)!==0||void 0,restricted:(h&(f.FLAG_PIA|f.FLAG_LADD))!==0||void 0};return Object.values(p).some(g=>g!==void 0)?p:void 0}static tilesAround(t,e){const c=e/f.KM_PER_DEG,n=Math.max(-90,t.lat-c),s=Math.min(90,t.lat+c),a=Math.cos(Math.max(Math.abs(n),Math.abs(s))*Math.PI/180),r=a<1e-6?180:e/(f.KM_PER_DEG*a),o=new Set;if(r>=180)for(let i=-180;i<180;i++)o.add(i);else for(let i=Math.floor(t.lng-r);i<=Math.floor(t.lng+r);i++)o.add(I.wrapLongitude(i));const u=[];for(let i=Math.floor(n);i<=Math.min(89,Math.floor(s));i++)for(const l of o)u.push(`${i}_${l}`);return u}static dayOf(t){return new Date(t*f.HOUR_MS).toISOString().slice(0,10)}static merge(t,e,c,n,s){const a=new Map;for(const o of t){const u=o.points.filter(h=>h.t>=c&&h.t<=n&&I.groundDistanceKm(e,h)<=s);if(u.length===0)continue;const i=`${o.nonIcao?"~":""}${o.icao}`,l=a.get(i);l?l.points.push(...u):a.set(i,{icao:o.icao,nonIcao:o.nonIcao,points:u})}const r=[...a.values()];for(const o of r)o.points.sort((u,i)=>u.t-i.t);return r.sort((o,u)=>o.icao-u.icao)}loadIndex(){return this.index??=(async()=>{for(const t of this.indexUrls)try{const e=await this.fetchImpl(t);if(e.ok)return{index:await e.json(),base:t}}catch{}})(),this.index}tileOf(t,e,c){const n=f.dayOf(e),s=String(e%24).padStart(2,"0"),a=`${n}/${s}/${c}`;let r=this.tiles.get(a);return r||(r=this.hourIndex(t,n,s).then(async o=>{const u=o[c];if(!u)return[];const[i,l]=u,h=await this.fetchImpl(new URL(`${n}/${s}.pack`,t).href,{headers:{Range:`bytes=${i}-${i+l-1}`}});if(!h.ok)throw new Error(`The pack of ${n} ${s} h answered ${h.status}`);const p=new Uint8Array(await h.arrayBuffer()),g=h.status===206?p:p.subarray(i,i+l);return f.tracksOf(await f.gunzip(g),e)}),r.catch(()=>this.tiles.delete(a)),this.tiles.set(a,r)),r}hourIndex(t,e,c){const n=`${e}/${c}`;let s=this.hours.get(n);return s||(s=this.fetchImpl(new URL(`${e}/${c}.json`,t).href).then(a=>{if(a.status===404)return{};if(!a.ok)throw new Error(`The index of ${e} ${c} h answered ${a.status}`);return a.json()}),s.catch(()=>this.hours.delete(n)),this.hours.set(n,s)),s}static async gunzip(t){const e=new Blob([t]).stream().pipeThrough(new DecompressionStream("gzip"));return new Uint8Array(await new Response(e).arrayBuffer())}static tracksOf(t,e){const c=new Map;for(const n of d.decode(t)){const s=`${n.nonIcao?"~":""}${n.icao}`;let a=c.get(s);a||c.set(s,a={icao:n.icao,nonIcao:n.nonIcao,points:[]}),a.points.push({t:e*f.HOUR_MS+n.secondsInHour*1e3,lat:n.lat,lng:n.lng,altitudeFt:n.altitudeFt,groundSpeedKt:n.groundSpeedKt,trackDeg:n.trackDeg})}return[...c.values()]}}export{f as AdsbLolArchiveProvider,w as UFOATHOME_AIRCRAFT_INDEX_URL};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{x as b,_ as d,
|
|
1
|
+
import{x as b,_ as d,bm as m,bi as f,bf as u,a9 as v,ab as y,aa as x,I,a7 as T,a8 as L,n as M,ac as S}from"./rr0-sighting-editor.mjs";import{S as E}from"./SkyEventEditorStyle-CvY_AhbI.js";import{D as g}from"./DroneParameters-DRfoxMx8.js";import{a as P,b as k}from"./DroneFlight-C1bur42A.js";import{AirshipFlight as w}from"./AirshipFlight-zrtPXNvX.js";const R=b.catalog({en:()=>d(()=>import("./AirshipParameterTexts_en-DZxqhSI3.js"),[],import.meta.url).then(a=>a.airshipParameterTexts_en),fr:()=>d(()=>import("./AirshipParameterTexts_fr-Cj-D0Xb_.js"),[],import.meta.url).then(a=>a.airshipParameterTexts_fr),es:()=>d(()=>import("./AirshipParameterTexts_es-BDJUZOmr.js"),[],import.meta.url).then(a=>a.airshipParameterTexts_es),it:()=>d(()=>import("./AirshipParameterTexts_it-BhC9cEbs.js"),[],import.meta.url).then(a=>a.airshipParameterTexts_it)});class o{static AIRSHIP="airship";static FLIGHT="flight";static LOOK="look";static LIGHT_NAMES=[...new Set(m.ALL.flatMap(t=>Object.keys(t.lights)))];static viewOf(t){const{airship:i,sign:e,...r}=structuredClone(t),s={...r,airship:typeof i=="string"?i:i.id};return e===!1?s.signLit=!1:e===!0?s.signLit=!0:e&&(s.signLit=!0,e.color&&(s.signColor=e.color)),s}static fromView(t,i){const{airship:e,signLit:r,signColor:s,...n}=t,h=typeof i.airship=="object"?i.airship:void 0,l={...n,airship:h?{...h,id:e}:e},p=typeof i.sign=="object"?i.sign.luminanceCdM2:void 0;return r===!1?l.sign=!1:s!==void 0||p!==void 0?l.sign={...s?{color:s}:{},...p!==void 0?{luminanceCdM2:p}:{}}:r===!0&&(l.sign=!0),l}static typeOf(t){return w.typeOf(t)}static ownLight(t,i){return o.typeOf(t).lights[i]}static signLit(t){const i=f.read(t,"signLit");return typeof i=="boolean"?i:o.typeOf(t).sign?.lit===!0}static light(t){const i=g.textKey(t),e=n=>o.ownLight(n,t)!==void 0,r=n=>{const h=n.lights?.[t];return h===!1?!0:typeof h?.off=="boolean"?h.off:o.ownLight(n,t)?.off===!0},s=n=>e(n)&&!r(n);return[{type:"boolean",key:`lights.${t}.off`,group:i,label:"switchedOff",visibleWhen:e,effective:n=>n.lights?.[t]===!1||o.ownLight(n,t)?.off===!0},{type:"colour",key:`lights.${t}.color`,group:i,label:"colour",visibleWhen:s,effective:n=>o.ownLight(n,t)?.color},{type:"number",key:`lights.${t}.candela`,min:0,max:1e5,step:.1,unit:"cd",group:i,label:"intensity",hint:"eachLed",visibleWhen:s,effective:n=>o.ownLight(n,t)?.candela},{type:"number",key:`lights.${t}.hz`,min:0,max:50,step:.05,unit:"Hz",group:i,label:"flashesASecond",hint:"steadyAtNought",visibleWhen:s,effective:n=>o.ownLight(n,t)?.hz??0},{type:"number",key:`lights.${t}.flashS`,min:.001,max:60,step:.001,unit:"s",group:i,label:"eachFlashLasts",visibleWhen:n=>s(n)&&(f.read(n,`lights.${t}.hz`)??o.ownLight(n,t)?.hz??0)>0,effective:n=>{const h=o.ownLight(n,t),l=f.read(n,`lights.${t}.hz`)??h?.hz??0;return h?.flashS??(l>0?Math.round(500/l)/1e3:void 0)}}]}static SET={kind:"airships",title:"airships",parameters:[{type:"said",key:"title",label:"name",group:o.AIRSHIP},{type:"choice",key:"airship",required:!0,group:o.AIRSHIP,label:"type",choices:m.ALL.map(t=>({value:t.id,label:g.textKey(t.id)}))},{type:"set",key:"explains",group:o.AIRSHIP,label:"standsForTheShapes",options:(t,i)=>{const e=i?.shapes??[],r=(t.explains??[]).filter(s=>!e.some(n=>n.value===s));return[...e,...r.map(s=>({value:s,label:s}))]},empty:"noShape"},{type:"number",key:"seed",min:0,max:4294967295,step:1,group:o.AIRSHIP,effective:()=>1,label:"draw",hint:"whatTheDrawsStartFrom"},{type:"number",key:"wind.fromDeg",min:0,max:360,step:1,unit:"°",group:o.FLIGHT,label:"windFrom",effective:()=>0,hint:"whatItNosesInto"},{type:"number",key:"wind.speedMS",min:0,max:60,step:.1,unit:"m/s",group:o.FLIGHT,label:"windSpeed",effective:()=>0},{type:"boolean",key:"silent",group:o.FLIGHT,label:"silent",hint:"notEvenItsEngines",visibleWhen:t=>o.typeOf(t).sound!==void 0},{type:"colour",key:"color",group:o.LOOK,label:"envelope",effective:t=>o.typeOf(t).color},{type:"colour",key:"finColor",group:o.LOOK,label:"fins",effective:t=>o.typeOf(t).finColor,visibleWhen:t=>o.typeOf(t).glowCdM2===void 0},{type:"boolean",key:"signLit",group:o.LOOK,label:"signLit",hint:"itsSignOfLamps",visibleWhen:t=>o.typeOf(t).sign!==void 0,effective:t=>o.typeOf(t).sign?.lit===!0},{type:"colour",key:"signColor",group:o.LOOK,label:"signColour",visibleWhen:t=>o.typeOf(t).sign!==void 0&&o.signLit(t),effective:t=>o.typeOf(t).sign?.color},{type:"boolean",key:"lit",group:o.LOOK,label:"litFromWithin",hint:"itsEnvelopeGlows",effective:()=>!0,visibleWhen:t=>o.typeOf(t).glowCdM2!==void 0},...o.LIGHT_NAMES.flatMap(t=>o.light(t))]};static WAYPOINT={...g.WAYPOINT,kind:"airships-waypoint"};static waypointAt(t,i){const e=P.pathOf(t);if(e.length===0)return{t:Math.round(i),eastM:0,northM:0,altitudeM:0};const r=new k(e,!1).at(i),s=n=>Math.round(n*10)/10;return{t:Math.round(i),eastM:s(r.eastM),northM:s(r.northM),altitudeM:s(r.upM)}}static publish(){u.publish(o.SET),u.publish(o.WAYPOINT)}}const H=b.catalog({en:()=>d(()=>import("./AirshipEditorMessages_en-CFafbbN8.js"),[],import.meta.url).then(a=>a.airshipEditorMessages_en),fr:()=>d(()=>import("./AirshipEditorMessages_fr-Bhj6QKCL.js"),[],import.meta.url).then(a=>a.airshipEditorMessages_fr),es:()=>d(()=>import("./AirshipEditorMessages_es-ht4kFQUD.js"),[],import.meta.url).then(a=>a.airshipEditorMessages_es),it:()=>d(()=>import("./AirshipEditorMessages_it-Cfl9mFjn.js"),[],import.meta.url).then(a=>a.airshipEditorMessages_it)});class c{constructor(t,i,e){this.container=t,this.host=i,E.attach(t,"airship-editor-part",c.STYLE),this.language=e,u.of("airships")||o.publish(),this.ready=this.setLanguage(e)}messages;ready;parameterTexts;languageToken=0;currentId;form;list;timeline;pointForm;pointIndex=0;language;shown=[];viewed;static STYLE='.airship-editor-part { flex-basis: 100%; min-width: 0; } .airship-editor-part #airship-list, .airship-editor-part #airship-timeline { flex-basis: 100%; min-width: 0; } .airship-editor-part #airship-timeline { padding: 4px 0; } .airship-editor-part #airship-path > .icon-btn { align-self: flex-end; } .airship-editor-part .launch-editor, .airship-editor-part .launch-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; } .airship-editor-part .launch-fields { flex-basis: 100%; min-width: 0; } .airship-editor-part [hidden] { display: none !important; } .airship-editor-part select { min-width: 0; width: 100%; } .airship-editor-part .launch-intro { flex-basis: 100%; margin: 0; } .airship-editor-part .launch-parameters { flex-basis: 100%; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; } .airship-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; } .airship-editor-part input, .airship-editor-part select { max-width: 100%; box-sizing: border-box; } .airship-editor-part input[type="text"] { width: 12em; } .airship-editor-part label { min-width: 0; max-width: 100%; } .airship-editor-part input.parameter-derived::placeholder { opacity: .65; } .airship-editor-part .launch-path { flex: 1 1 100%; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; }';static PATH_COLOR="#3b82c4";static MIN_POINTS=1;async setLanguage(t){const i=++this.languageToken;this.language=t;const[e,r]=await Promise.all([H.load(t),R.load(t)]);i===this.languageToken&&(this.messages=e,this.parameterTexts=r,this.render(),this.sync())}sync(){if(!this.messages)return;const t=this.flights;this.shown=[...t],t.some(e=>e.id===this.currentId)||(this.currentId=t[0]?.id),this.list?.setItems(t.map(e=>({id:e.id,label:this.labelOf(e)})),this.currentId),this.syncAddState();const i=this.current;this.element("airship-fields").hidden=i===void 0,i&&(this.syncTethered(),this.form??=new v(this.element("airship-parameters"),this.language,"airships.",{said:()=>this.host.said(),writingLanguage:()=>this.host.writingLanguage()}),this.form.show(this.resolved(o.SET),new y(()=>this.view,e=>this.editView(r=>e(r)),()=>({shapes:this.host.shapes().map(e=>({value:e.id,label:e.label}))}),this.host.positionPlace?.()),()=>this.written()),this.syncPoint(!0))}refresh(){if(!this.messages)return;this.syncAddState();const t=this.flights;if(t.length===this.shown.length&&t.every((i,e)=>i.id===this.shown[e].id)){this.syncTimeline();return}this.sync()}setTime(t){this.messages&&this.timeline?.setTime(t)}get current(){return this.flights.find(t=>t.id===this.currentId)}get view(){const t=this.current;if(t)return this.viewed?.of!==t&&(this.viewed={of:t,view:o.viewOf(t)}),this.viewed.view}syncAddState(){const t=this.frontOfObserver()!==void 0;this.list?.setAddState(t,t?void 0:this.messages.addNowhere)}syncTethered(){const t=this.current;this.element("airship-tethered").hidden=!t||!w.typeOf(t).tethered}resolved(t){return x.resolve(t,this.parameterTexts)}render(){if(!this.messages)return;const t=this.messages;this.form=void 0,this.pointForm=void 0,this.container.innerHTML=`<div class="launch-editor">
|
|
2
2
|
<p class="launch-intro">${t.intro}</p>
|
|
3
3
|
<div id="airship-list"></div>
|
|
4
4
|
<div id="airship-fields" class="launch-fields">
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as h,b as J,D as N}from"./DroneFlight-
|
|
1
|
+
import{a as h,b as J,D as N}from"./DroneFlight-C1bur42A.js";import{bm as H}from"./rr0-sighting-editor.mjs";class s{static SAMPLE_MS=500;static MAX_KEYFRAMES=2e4;static BANK_SHARE=.25;static MAX_PITCH_DEG=20;static TITLES={blimp:{en:"Blimp",fr:"Dirigeable souple",es:"Dirigible flexible",it:"Dirigibile floscio"},"zeppelin-nt":{en:"Zeppelin NT",fr:"Zeppelin NT",es:"Zeppelin NT",it:"Zeppelin NT"},lightship:{en:"Lightship",fr:"Dirigeable lumineux",es:"Dirigible luminoso",it:"Dirigibile luminoso"},aerostat:{en:"Tethered aerostat",fr:"Aérostat captif",es:"Aeróstato cautivo",it:"Aerostato frenato"},rigid:{en:"Rigid airship",fr:"Dirigeable rigide",es:"Dirigible rígido",it:"Dirigibile rigido"}};static computed=new Map;static bodiesOf(t){const o=JSON.stringify(t);let e=s.computed.get(o);return e||(e=s.compute(t),s.computed.set(o,e),s.computed.size>16&&s.computed.delete(s.computed.keys().next().value)),e}static typeOf(t){const o=t.airship,e=typeof o=="string"?o:o?.id,i=H.byId(e)??H.ALL[0];return typeof o=="string"?i:{...i,...o,id:i.id}}static lightsOf(t){const o={};for(const[e,i]of Object.entries(s.typeOf(t).lights)){const r=t.lights?.[e];if(r===!1)continue;const c={...i,...r??{}};c.off||(o[e]=c)}return o}static signOf(t){const o=s.typeOf(t).sign;if(!o)return;const e=t.sign;if(!(e===!1||e===void 0&&!o.lit))return{color:o.color,luminanceCdM2:o.luminanceCdM2,...typeof e=="object"?e:{}}}static compute(t){const o=h.pathOf(t);if(o.length===0)return[];const e=s.typeOf(t),i=h.randomFrom(t.seed??1),r=o[0].t,c=Math.max(o[o.length-1].t,r),L=Math.max(s.SAMPLE_MS,Math.ceil((c-r)/s.MAX_KEYFRAMES/100)*100),S=(t.wind?.fromDeg??0)*Math.PI/180,w=t.wind?.speedMS??0,j=-w*Math.sin(S),z=-w*Math.cos(S),K=new J(o,!1),M={period:40+40*i(),phase:2*Math.PI*i(),amplitudeDeg:4+4*i()},O=n=>{if(!e.tethered){const d=K.at(n);return{eastM:d.eastM,northM:d.northM,upM:d.upM}}const a=(n-r)/1e3,l=Math.sin(2*Math.PI*a/M.period+M.phase);return{eastM:o[0].eastM+3*l,northM:o[0].northM+3*Math.cos(2*Math.PI*a/M.period*.7),upM:o[0].upM+1.5*l}},u=s.lightsOf(t),y=Object.fromEntries(Object.entries(u).map(([n,a])=>[n,a.phase??i()])),p=[];for(let n=r;n<=c+1e-6;n+=L)p.push(Math.round(n));p[p.length-1]<c&&p.push(Math.round(c));const I=[...new Set([...p,...h.switchesOf(u,y,r,c)])].filter(n=>n>=r&&n<=c).sort((n,a)=>n-a),T=s.signOf(t),R=e.glowCdM2!==void 0&&t.lit!==!1?e.glowCdM2:0,X=e.sizeM.heightM/2;let b;const k=I.map((n,a)=>{const l=O(n),d=O(n-1e3),E=O(n+1e3),m={e:(E.eastM-d.eastM)/2,n:(E.northM-d.northM)/2,u:(E.upM-d.upM)/2},C=m.e-j,x=m.n-z,G=Math.hypot(C,x);let f;if(e.tethered||G<1){const D=w>.3?(t.wind.fromDeg+360)%360:b??0;f=e.tethered?(D+M.amplitudeDeg*Math.sin(2*Math.PI*(n-r)/1e3/M.period+M.phase)+360)%360:D}else f=(Math.atan2(C,x)*180/Math.PI+360)%360;const v=Math.hypot(m.e,m.n),Z=e.tethered?0:Math.max(-s.MAX_PITCH_DEG,Math.min(s.MAX_PITCH_DEG,Math.atan2(m.u,Math.max(v,2))*180/Math.PI)),B=b===void 0?0:((f-b+540)%360-180)/Math.max(.001,(n-(I[a-1]??n))/1e3),Y=e.tethered?0:Math.max(-10,Math.min(10,Math.atan(v*B*Math.PI/180/N.G)*180/Math.PI*s.BANK_SHARE));b=f;const P=h.luminancesAt(u,y,n,I[a+1]===n+1);if(e.sign)for(const D of["left","right"])P[`light-sign-${D}`]=T?.luminanceCdM2??0;return e.glowCdM2!==void 0&&(P.envelope=R),{t:n,eastM:s.round(l.eastM),northM:s.round(l.northM),altitudeM:s.round(l.upM-X),...a===0?{sizeM:e.sizeM,appearance:{color:t.color??e.color,albedo:e.albedo}}:{},attitude:{headingDeg:s.round(f,10),pitchDeg:s.round(Z,10),rollDeg:s.round(Y,10)},lights:P}}),g={envelopeColor:t.color??e.color};e.modelId!=="ufoathome-airship-lightship"&&(g.finColor=t.finColor??e.finColor),e.sign&&(g.signColor=T?.color??e.sign.color);for(const[n,a]of Object.entries(u))g[N.colourKeyOf(n)]=a.color;return[{id:t.id,title:t.title??s.TITLES[e.id],...t.explains?{explains:t.explains}:{},model:{id:e.modelId},modelParameters:g,lamps:h.lampsOf(u,y),...t.silent||!e.sound?{}:{sound:{kind:e.sound}},track:k}]}static round(t,o=100){return Math.round(t*o)/o}}export{s as AirshipFlight};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bQ as F,bs as y}from"./rr0-sighting-editor.mjs";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};
|
|
1
|
+
import{bR as F,bt as y}from"./rr0-sighting-editor.mjs";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 R{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:R.MAX_DEGREE+1},()=>new Array(R.MAX_DEGREE+1).fill(0)),r=Array.from({length:R.MAX_DEGREE+1},()=>new Array(R.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=R.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=R.p,c=R.dp;g[0][0]=1,c[0][0]=0;let f=0,K=0,E=0,_=(R.A_KM/r)**2;for(let h=1;h<=i;h++){_*=R.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),d=Math.sin(o);return[f*l*m+K*e*m-E*d,f*l*d+K*e*d+E*m,f*e-K*l]}static p=Array.from({length:R.MAX_DEGREE+1},()=>new Array(R.MAX_DEGREE+1).fill(0));static dp=Array.from({length:R.MAX_DEGREE+1},()=>new Array(R.MAX_DEGREE+1).fill(0));static apexLatitude(t,a,s){const n=R.coefficientsAt(s),i=t*Math.PI/180,r=a*Math.PI/180;let e=[R.A_KM*Math.cos(i)*Math.cos(r),R.A_KM*Math.cos(i)*Math.sin(r),R.A_KM*Math.sin(i)];const l=R.fieldAt(n,...e),o=l[0]*e[0]+l[1]*e[1]+l[2]*e[2]<0?-1:1,g=K=>{const E=R.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=R.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]),d=g([e[0]+m[0]*E/2,e[1]+m[1]*E/2,e[2]+m[2]*E/2]),h=g([e[0]+d[0]*E,e[1]+d[1]*E,e[2]+d[2]*E]);if(e=[0,1,2].map(M=>e[M]+E/6*(_[M]+2*m[M]+2*d[M]+h[M])),c=Math.hypot(e[0],e[1],e[2]),c>30*R.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,R.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=R.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 d=0;d<g;d++){const h=l*37+d*2.3,M=.7+.3*Math.sin(2*Math.PI*o/(90+40*d)+h);K.push({offsetDeg:f*(g===1?.15:.1+.8*d/(g-1)),kr:c*M/(1+.6*d),foldPhase:h,rayPhase:l*1e3+d*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 d of t.arcs){const h=(e-(o+d.offsetDeg))/c.ARC_THICKNESS_DEG,M=Math.exp(-.5*h*h);if(M<1e-4)continue;const T=d.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 d=(e-(o-1))/3;E+=t.redKR*Math.exp(-.5*d*d)*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};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{x as h,_ as o,
|
|
1
|
+
import{x as h,_ as o,bf as d,aa as p,a9 as g,a7 as c,bu as f}from"./rr0-sighting-editor.mjs";import{S as _}from"./SkyEventEditorStyle-CvY_AhbI.js";import{c as u,d as n}from"./Aurora-wHi_XgNK.js";const x=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,_.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),x.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 g(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
2
|
<p class="aurora-intro">${t.intro}</p>
|
|
3
3
|
<div id="aurora-list"></div>
|
|
4
4
|
<div id="aurora-fields" class="aurora-fields">
|
package/dist-embed-sighting-editor/{AuroraSimulation-vKcv2Hue.js → AuroraSimulation-CMoKbd0k.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{bN as O,bO as z,br as P,Y as h,bP as $,b5 as L,bQ as _,bM as I,bw as b}from"./rr0-sighting-editor.mjs";import{A as p,a as c,b as A,c as G}from"./Aurora-wHi_XgNK.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=p,a=i=>i.toFixed(6);this.material=new O({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
2
|
varying vec3 vDirection;
|
|
3
3
|
void main() {
|
|
4
4
|
vDirection = (modelMatrix * vec4(position, 1.0)).xyz - cameraPosition;
|
|
@@ -154,4 +154,4 @@ import{bM as O,bN as z,bq as L,Y as h,bO as P,b4 as $,bP as _,bL as I,bv as b}fr
|
|
|
154
154
|
if (max(light.r, max(light.g, light.b)) <= 0.0) discard;
|
|
155
155
|
gl_FragColor = vec4(min(light, vec3(60000.0)), 1.0);
|
|
156
156
|
}
|
|
157
|
-
`,transparent:!0,blending:
|
|
157
|
+
`,transparent:!0,blending:P,depthWrite:!1,side:z,fog:!1}),this.object=new L(new _(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=p.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 E{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]=A.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=I("Sun",t,{lat:i.observer.lat,lng:i.observer.lng,elevationM:i.observer.heightM});if(l.altitudeDeg>E.DAYLIGHT_DEG)return;const u=b(l.altitudeDeg,l.azimuthDeg,1);for(const s of e){const o=G.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 T=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(T*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=b(f.altitudeDeg,f.azimuthDeg,1),[S,M,w]=A.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{E as AuroraSimulation};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{bX as h,a as p}from"./rr0-sighting-editor.mjs";import{N as m}from"./NearestApproach-Bnx9Ld5_.js";import{CoverageAssessor as S}from"./CoverageAssessor-uzQnTEH8.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=h;static PENDING="pending";static WEAKEST_FIRST=["fitted","assumed","derived","stated","measured","established"];async assess(t){const e=t.account??{},i=this.information(t,e),n=this.strangeness(t,e),u=this.reliability(t,e),v=i.value,r=n.filter(d=>d.value>0).length/s.FACTORS.length,c=s.WEIGHTS,a=Object.keys(c).reduce((d,l)=>d+c[l]*u[l].value,0),o=[this.criterion("bg-information",i),...s.FACTORS.map((d,l)=>this.criterion(`bg-${d}`,n[l])),...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:r,pi:a},criteria:o}:{score:v*r*a,factors:{q:v,sigma:r,pi:a},criteria:o}}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 n=this.basis(t,"account.source"),u=e.enquiryMinutes,v=(a,o,b)=>u===void 0?{value:b,basis:this.weakest(n,"assumed"),paths:["account.source"]}:{value:u>=a?o:b,basis:this.weakest(n,this.basis(t,"account.enquiryMinutes")),paths:["account.source","account.enquiryMinutes"]},r=this.words(t),c=(a,o,b)=>({value:r>=a?o:b,basis:this.weakest(n,"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:n,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(p.any.read(t.event.description)??"").split(/\s+/).filter(i=>i!=="").length}strangeness(t,e){const i=e.strangeness??{},n=s.FACTORS.map(r=>{const c=i[r];if(c!==void 0){const a=`account.strangeness.${r}`;return{value:c?1:0,basis:this.basis(t,a),paths:[a]}}switch(r){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((o,b)=>({object:o,index:b})).filter(({object:o})=>o.kind==="entity");return a.length>0?{value:1,basis:"stated",paths:a.map(({index:o})=>`decor.${o}`)}:{value:0,basis:"derived",paths:["decor"]}}default:return{value:0,paths:[]}}}),u=s.FACTORS.indexOf("beings");return!["appearance","movement","incongruity"].some(r=>n[s.FACTORS.indexOf(r)].value>0)&&n[u].value>0&&(n[u]={...n[u],value:0}),n}reliability(t,e){const i=t.observerCount,n=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"]},r=n?{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,o=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:r,geography:{value:.5,basis:"derived",paths:["decor"]},activity:c,age:o}}basis(t,e){return S.basisAt(e,t)??"stated"}weakest(...t){return s.WEAKEST_FIRST.find(e=>t.includes(e))}}export{s as BallesterGuaspAssessor};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{x as m,_ as h,
|
|
1
|
+
import{x as m,_ as h,bi as f,bk as w,bl as E,bf as b,a9 as A,ab as L,aa as O,a7 as T,bh as S,n as x,ac as M}from"./rr0-sighting-editor.mjs";import{S as k}from"./SkyEventEditorStyle-CvY_AhbI.js";import{D as R}from"./DroneParameters-DRfoxMx8.js";import{BalloonFlight as c}from"./BalloonFlight-DkhpbdZV.js";import"./DroneFlight-C1bur42A.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:R.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 D=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,k.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
2
|
.balloon-editor-part, .balloon-editor-part #balloon-list, .balloon-editor-part .launch-fields { flex-basis: 100%; min-width: 0; }
|
|
3
3
|
.balloon-editor-part .launch-editor, .balloon-editor-part .launch-fields { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
|
|
4
4
|
.balloon-editor-part [hidden] { display: none !important; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bj as X}from"./rr0-sighting-editor.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",j=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 q=a.flameShare(t,m);t.flames&&(s.excessK+=(O*q-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),j=g&&m>10?j+M:0;const _=j>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:q}),y.push({t:h,x:s.x,y:s.y,z:s.z,widthM:H,burning:I,flame:q})}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{bk as X}from"./rr0-sighting-editor.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{x as T,_ as c,
|
|
1
|
+
import{x as T,_ as c,bf as I,a9 as p,aa as L,I as x,a7 as w,a8 as E,ab as f,bu as M}from"./rr0-sighting-editor.mjs";import{L as u}from"./LaserBeam-Cl4c8oJt.js";import{S as _}from"./SkyEventEditorStyle-CvY_AhbI.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 g{constructor(e,t,i){this.container=e,this.host=t,this.language=i,_.attach(e,"beam-editor",g.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 p(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 L.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">
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{b2 as C,bn as V,bo as L,b5 as W,bp as X,bq as k,br as q,bs as N}from"./rr0-sighting-editor.mjs";import{L as w}from"./LaserBeam-Cl4c8oJt.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=N.rayleighDensity(e),c=N.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 L(this.positions,3)),s.setAttribute("color",new L(this.colors,3)),s.setDrawRange(0,0),this.mesh=new W(s,new X({vertexColors:!0,transparent:!0,blending:q,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,z=n.eastMS*i.dirNorth-n.northMS*i.dirEast,O=w.patchAt(i.fromSourceM,t,{windAlongMS:u,windAcrossMS:z,patchiness:s.patchiness});h.push({x:c,y,z:r,altitudeM:i.altitudeM,widthM:i.widthM,powerW:i.powerW,haze:O})}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},p=Math.hypot(l.x,l.y,l.z)||.001,d=(y.x*l.x+y.y*l.y+y.z*l.z)/p,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)}},z=o=>M.MIN_PIXELS*n.pixelRad*Math.hypot(o.x-n.eye.x,o.y-n.eye.y,o.z-n.eye.z),O=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*O(o)),T=o=>{const l=S(o)/z(o),p=Math.min(1,Math.max(0,l-1));return M.HALO_SHARE*p*p*(3-2*p)},G=new Map([t,e].map(o=>[o,u(o)])),f=(o,l,p)=>{const d=Math.max(l,z(o)),{sinTurn:a,scattered:A,through:E}=G.get(o),I=2*p*o.powerW/(d*Math.max(a,.001)),P=A.map((_,D)=>Math.min(M.BRIGHTEST_RELATIVE,I*_*n.relativeScale*E[D])),H={x:n.eye.x-o.x,y:n.eye.y-o.y,z:n.eye.z-o.z},m=this.normalise(this.cross(y,H));return{point:o,half:d/2,level:P,across:m}},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++},[p,d]=o;for(const a of[-1,1])l(p,a),l(p,0),l(d,a),l(p,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},z={x:r.x-s.x,y:r.y-s.y,z:r.z-s.z},O=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*z.x+u.y*z.y+u.z*z.z,G=t.x*z.x+t.y*z.y+t.z*z.z,f=O-S*S,R=f>1e-9?Math.min(1,Math.max(0,(S*G-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};
|