@rr0/ufoathome 0.200.0 → 0.202.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-BrnxG2rl.js +3 -0
- package/dist-embed-interview/InterviewMessages_es-Dxfjqrte.js +3 -0
- package/dist-embed-interview/InterviewMessages_fr-DIA-1qu8.js +3 -0
- package/dist-embed-interview/InterviewMessages_it-CYBEIKX-.js +3 -0
- package/dist-embed-interview/rr0-interview.mjs +10 -6
- package/dist-embed-scene/{AirshipEditor-B0RloPOv.js → AirshipEditor-BnRmKeVs.js} +1 -1
- package/dist-embed-scene/{AirshipFlight-D6tC26P5.js → AirshipFlight-C9DSPGwk.js} +1 -1
- package/dist-embed-scene/Aurora-BmVyTP6i.js +1 -0
- package/dist-embed-scene/AuroraEditor-CN6BQMUW.js +8 -0
- package/dist-embed-scene/AuroraEditorMessages_en-CpU3BS-B.js +1 -0
- package/dist-embed-scene/AuroraEditorMessages_es-i8-psDHN.js +1 -0
- package/dist-embed-scene/AuroraEditorMessages_fr-0DtPXXAs.js +1 -0
- package/dist-embed-scene/AuroraEditorMessages_it-Dn2UHyk9.js +1 -0
- package/dist-embed-scene/AuroraKindMessages_en-D_W4giJa.js +1 -0
- package/dist-embed-scene/AuroraKindMessages_es-jJ5_ltZq.js +1 -0
- package/dist-embed-scene/AuroraKindMessages_fr-6IzUVbRH.js +1 -0
- package/dist-embed-scene/AuroraKindMessages_it-DcwuoMkp.js +1 -0
- package/dist-embed-scene/AuroraParameterTexts_en-shkUd-dT.js +1 -0
- package/dist-embed-scene/AuroraParameterTexts_es-CwGYyafK.js +1 -0
- package/dist-embed-scene/AuroraParameterTexts_fr-CoJnicWs.js +1 -0
- package/dist-embed-scene/AuroraParameterTexts_it-DHniBj_2.js +1 -0
- package/dist-embed-scene/AuroraSimulation-Dh4kZW1x.js +157 -0
- package/dist-embed-scene/{BalloonEditor-D1b8pmSn.js → BalloonEditor-BehJs6H-.js} +2 -2
- package/dist-embed-scene/{BalloonFlight-D015vbBe.js → BalloonFlight-BYn4diw1.js} +1 -1
- package/dist-embed-scene/BeamSystem-DtRwoKHP.js +1 -0
- package/dist-embed-scene/{BirdEditor-CxGMe4UD.js → BirdEditor-dOp1sGsz.js} +1 -1
- package/dist-embed-scene/{BirdFlock-D2mckZ_l.js → BirdFlock-CfJeXvWu.js} +1 -1
- package/dist-embed-scene/{DroneEditor-BNGmR5II.js → DroneEditor-CBoR4fJ_.js} +1 -1
- package/dist-embed-scene/{DroneFlight-DKHsNqDw.js → DroneFlight-DSE1OXqh.js} +1 -1
- package/dist-embed-scene/{DroneParameters-Bq6XBchK.js → DroneParameters-D3EOg4oe.js} +1 -1
- package/dist-embed-scene/{LanternEditor-FU0WHV3j.js → LanternEditor-CbcA7K8y.js} +2 -2
- package/dist-embed-scene/ModuleSession-XnOI5Mcr.js +3 -0
- package/dist-embed-scene/ModuleThree-BTQgimAj.js +1 -0
- package/dist-embed-scene/SearchlightEditor-CogwU9pl.js +8 -0
- package/dist-embed-scene/SearchlightEditorMessages_en-BWTcGHYC.js +1 -0
- package/dist-embed-scene/SearchlightEditorMessages_es-PS4IIWFS.js +1 -0
- package/dist-embed-scene/SearchlightEditorMessages_fr-CpaD2Il2.js +1 -0
- package/dist-embed-scene/SearchlightEditorMessages_it-Br2IjowF.js +1 -0
- package/dist-embed-scene/SearchlightKindMessages_en-CwJDAjsc.js +1 -0
- package/dist-embed-scene/SearchlightKindMessages_es-CCCgZyTQ.js +1 -0
- package/dist-embed-scene/SearchlightKindMessages_fr-DsxiUhmK.js +1 -0
- package/dist-embed-scene/SearchlightKindMessages_it-CyWpJL5c.js +1 -0
- package/dist-embed-scene/SearchlightParameterTexts_en-BwanYoMW.js +1 -0
- package/dist-embed-scene/SearchlightParameterTexts_es-Cz_rg-Xe.js +1 -0
- package/dist-embed-scene/SearchlightParameterTexts_fr-B7eZQIdG.js +1 -0
- package/dist-embed-scene/SearchlightParameterTexts_it-BjhuOJre.js +1 -0
- package/dist-embed-scene/SearchlightSystem-CX1_nBkz.js +1 -0
- package/dist-embed-scene/{SkyLantern-a9qLkbZo.js → SkyLantern-Dp_B40X0.js} +1 -1
- package/dist-embed-scene/rr0-scene.mjs +416 -337
- package/dist-embed-scene/sightingSchema-9MogCcUd.js +1 -0
- package/dist-embed-sighting/Aurora-DN89D94m.js +1 -0
- package/dist-embed-sighting/AuroraEditor-C4tY9hXK.js +8 -0
- package/dist-embed-sighting/AuroraEditorMessages_en-CpU3BS-B.js +1 -0
- package/dist-embed-sighting/AuroraEditorMessages_es-i8-psDHN.js +1 -0
- package/dist-embed-sighting/AuroraEditorMessages_fr-0DtPXXAs.js +1 -0
- package/dist-embed-sighting/AuroraEditorMessages_it-Dn2UHyk9.js +1 -0
- package/dist-embed-sighting/AuroraKindMessages_en-D_W4giJa.js +1 -0
- package/dist-embed-sighting/AuroraKindMessages_es-jJ5_ltZq.js +1 -0
- package/dist-embed-sighting/AuroraKindMessages_fr-6IzUVbRH.js +1 -0
- package/dist-embed-sighting/AuroraKindMessages_it-DcwuoMkp.js +1 -0
- package/dist-embed-sighting/AuroraParameterTexts_en-shkUd-dT.js +1 -0
- package/dist-embed-sighting/AuroraParameterTexts_es-CwGYyafK.js +1 -0
- package/dist-embed-sighting/AuroraParameterTexts_fr-CoJnicWs.js +1 -0
- package/dist-embed-sighting/AuroraParameterTexts_it-DHniBj_2.js +1 -0
- package/dist-embed-sighting/AuroraSimulation-C7LAHgWM.js +157 -0
- package/dist-embed-sighting/BeamSystem-CsNwl_vM.js +1 -0
- package/dist-embed-sighting/{CaseReportExport-B13vvVvn.js → CaseReportExport-CkWf0HNx.js} +1 -1
- package/dist-embed-sighting/{InterviewElement-BduwyUn5.js → InterviewElement-B_ULRy5z.js} +9 -5
- package/dist-embed-sighting/InterviewMessages_en-BrnxG2rl.js +3 -0
- package/dist-embed-sighting/InterviewMessages_es-Dxfjqrte.js +3 -0
- package/dist-embed-sighting/InterviewMessages_fr-DIA-1qu8.js +3 -0
- package/dist-embed-sighting/InterviewMessages_it-CYBEIKX-.js +3 -0
- package/dist-embed-sighting/ModuleSession-ChJsGuTn.js +3 -0
- package/dist-embed-sighting/ModuleThree-whEZoXYF.js +1 -0
- package/dist-embed-sighting/SearchlightEditor-By5Z3ef7.js +8 -0
- package/dist-embed-sighting/SearchlightEditorMessages_en-BWTcGHYC.js +1 -0
- package/dist-embed-sighting/SearchlightEditorMessages_es-PS4IIWFS.js +1 -0
- package/dist-embed-sighting/SearchlightEditorMessages_fr-CpaD2Il2.js +1 -0
- package/dist-embed-sighting/SearchlightEditorMessages_it-Br2IjowF.js +1 -0
- package/dist-embed-sighting/SearchlightKindMessages_en-CwJDAjsc.js +1 -0
- package/dist-embed-sighting/SearchlightKindMessages_es-CCCgZyTQ.js +1 -0
- package/dist-embed-sighting/SearchlightKindMessages_fr-DsxiUhmK.js +1 -0
- package/dist-embed-sighting/SearchlightKindMessages_it-CyWpJL5c.js +1 -0
- package/dist-embed-sighting/SearchlightParameterTexts_en-BwanYoMW.js +1 -0
- package/dist-embed-sighting/SearchlightParameterTexts_es-Cz_rg-Xe.js +1 -0
- package/dist-embed-sighting/SearchlightParameterTexts_fr-B7eZQIdG.js +1 -0
- package/dist-embed-sighting/SearchlightParameterTexts_it-BjhuOJre.js +1 -0
- package/dist-embed-sighting/SearchlightSystem-B2-MzG4x.js +1 -0
- package/dist-embed-sighting/{SightingMessages_en-sch1T1ki.js → SightingMessages_en-D3YVhgUj.js} +1 -1
- package/dist-embed-sighting/{SightingMessages_es-DemDEDtF.js → SightingMessages_es-ME6FeTp-.js} +1 -1
- package/dist-embed-sighting/{SightingMessages_fr-DskVkEj0.js → SightingMessages_fr-BgXYuIq4.js} +1 -1
- package/dist-embed-sighting/{SightingMessages_it-CrbYpdv8.js → SightingMessages_it-DcE90eAl.js} +1 -1
- package/dist-embed-sighting/rr0-sighting.mjs +431 -352
- package/dist-embed-sighting/sightingSchema-9MogCcUd.js +1 -0
- package/dist-embed-sighting-editor/{AdsbLolArchiveProvider-BqEnqRP0.js → AdsbLolArchiveProvider-Bz1OjSjY.js} +1 -1
- package/dist-embed-sighting-editor/AirshipEditor-BlJXyxlr.js +16 -0
- package/dist-embed-sighting-editor/{AirshipFlight-Bh7J0sWg.js → AirshipFlight-Cx40Y8JT.js} +1 -1
- package/dist-embed-sighting-editor/Aurora-Ldk66p1A.js +1 -0
- package/dist-embed-sighting-editor/AuroraEditor-CGSomAFk.js +8 -0
- package/dist-embed-sighting-editor/AuroraEditorMessages_en-CpU3BS-B.js +1 -0
- package/dist-embed-sighting-editor/AuroraEditorMessages_es-i8-psDHN.js +1 -0
- package/dist-embed-sighting-editor/AuroraEditorMessages_fr-0DtPXXAs.js +1 -0
- package/dist-embed-sighting-editor/AuroraEditorMessages_it-Dn2UHyk9.js +1 -0
- package/dist-embed-sighting-editor/AuroraKindMessages_en-D_W4giJa.js +1 -0
- package/dist-embed-sighting-editor/AuroraKindMessages_es-jJ5_ltZq.js +1 -0
- package/dist-embed-sighting-editor/AuroraKindMessages_fr-6IzUVbRH.js +1 -0
- package/dist-embed-sighting-editor/AuroraKindMessages_it-DcwuoMkp.js +1 -0
- package/dist-embed-sighting-editor/AuroraParameterTexts_en-shkUd-dT.js +1 -0
- package/dist-embed-sighting-editor/AuroraParameterTexts_es-CwGYyafK.js +1 -0
- package/dist-embed-sighting-editor/AuroraParameterTexts_fr-CoJnicWs.js +1 -0
- package/dist-embed-sighting-editor/AuroraParameterTexts_it-DHniBj_2.js +1 -0
- package/dist-embed-sighting-editor/AuroraSimulation-vKcv2Hue.js +157 -0
- package/dist-embed-sighting-editor/{BallesterGuaspAssessor-BNfSwq_l.js → BallesterGuaspAssessor-Bylahnc2.js} +1 -1
- package/dist-embed-sighting-editor/BalloonEditor-CgO4LaWn.js +24 -0
- package/dist-embed-sighting-editor/{BalloonFlight-DqwGZzum.js → BalloonFlight-hLr_4TFU.js} +1 -1
- package/dist-embed-sighting-editor/{BeamEditor-C9VQ2YBN.js → BeamEditor-B8qreA3j.js} +1 -1
- package/dist-embed-sighting-editor/BeamSystem-D0hrju5J.js +1 -0
- package/dist-embed-sighting-editor/BirdEditor-BNzrfSqX.js +16 -0
- package/dist-embed-sighting-editor/{BirdFlock-TI63ZAKZ.js → BirdFlock-iSovVEZd.js} +1 -1
- package/dist-embed-sighting-editor/{BodyEditor-COLTBHzX.js → BodyEditor-Bd_pKafG.js} +2 -2
- package/dist-embed-sighting-editor/{CaseElement-D_ItKhFD.js → CaseElement-DPlro-7S.js} +3 -3
- package/dist-embed-sighting-editor/{CaseReportExport-BSLhYJJA.js → CaseReportExport-C1g5C8hi.js} +3 -3
- package/dist-embed-sighting-editor/{ContrailSystem-C8K88Cwo.js → ContrailSystem-D3tXAg2r.js} +1 -1
- package/dist-embed-sighting-editor/{ControlPasses-DNMyuRwb.js → ControlPasses-BMEmppip.js} +1 -1
- package/dist-embed-sighting-editor/{CoverageAssessor-p-LX-eEi.js → CoverageAssessor-uzQnTEH8.js} +1 -1
- package/dist-embed-sighting-editor/{DroneEditor-v0oaeAUh.js → DroneEditor-BFsArPKi.js} +1 -1
- package/dist-embed-sighting-editor/{DroneFlight-BpnBgJ9K.js → DroneFlight-B96pVrY1.js} +1 -1
- package/dist-embed-sighting-editor/{DroneParameters-B1oTz3dZ.js → DroneParameters-DW-enQUo.js} +1 -1
- package/dist-embed-sighting-editor/{Flightradar24Provider-D5OdIL0L.js → Flightradar24Provider-CBGkjw03.js} +1 -1
- package/dist-embed-sighting-editor/GLTFLoader-2Zbfb3kh.js +1 -0
- package/dist-embed-sighting-editor/{GenerativeKitMessages-B8L7U7gD.js → GenerativeKitMessages-DmeZ_YZO.js} +1 -1
- package/dist-embed-sighting-editor/{GeoExportTexts-DrGdI2OF.js → GeoExportTexts-Cp95Dg-h.js} +1 -1
- package/dist-embed-sighting-editor/{GeoJsonExport-BZ-0v8fM.js → GeoJsonExport-CdadOwd2.js} +1 -1
- package/dist-embed-sighting-editor/GeographicFigures-Bo9rsT_L.js +1 -0
- package/dist-embed-sighting-editor/{HeadlightSystem-DHoSdTng.js → HeadlightSystem-CBmEcC9f.js} +1 -1
- package/dist-embed-sighting-editor/{HynekAssessor-ByXW15nZ.js → HynekAssessor-uub2VxTi.js} +1 -1
- package/dist-embed-sighting-editor/InterviewEditorElement-_1fa2bG7.js +294 -0
- package/dist-embed-sighting-editor/{InterviewElement-B3tm7y49.js → InterviewElement-Ala811KB.js} +6 -2
- package/dist-embed-sighting-editor/InterviewMedia-CGVsMdje.js +1 -0
- package/dist-embed-sighting-editor/InterviewMessages_en-BrnxG2rl.js +3 -0
- package/dist-embed-sighting-editor/InterviewMessages_es-Dxfjqrte.js +3 -0
- package/dist-embed-sighting-editor/InterviewMessages_fr-DIA-1qu8.js +3 -0
- package/dist-embed-sighting-editor/InterviewMessages_it-CYBEIKX-.js +3 -0
- package/dist-embed-sighting-editor/{KmlExport-Bh4eTycx.js → KmlExport-DIxM5Hpx.js} +1 -1
- package/dist-embed-sighting-editor/LanternEditor-CjQVFowY.js +24 -0
- package/dist-embed-sighting-editor/{LaserBeam-iHLKAi5q.js → LaserBeam-BVc8Mvhr.js} +1 -1
- package/dist-embed-sighting-editor/LaunchEditor-Cz8Mzo4a.js +22 -0
- package/dist-embed-sighting-editor/{LaunchPlume-BJwW1kU1.js → LaunchPlume-CvBhTPgN.js} +1 -1
- package/dist-embed-sighting-editor/LaunchSimulation-CkZIG-3P.js +1 -0
- package/dist-embed-sighting-editor/ModelSource-B153oeTu.js +1 -0
- package/dist-embed-sighting-editor/{ModelThumbnails-C_8KCF7H.js → ModelThumbnails-BUL_OLFv.js} +1 -1
- package/dist-embed-sighting-editor/{ModelViewer-Cy-6IZBY.js → ModelViewer-BzBLcY9s.js} +1 -1
- package/dist-embed-sighting-editor/ModuleConformance-Cr6fM28A.js +2 -0
- package/dist-embed-sighting-editor/ModuleSession-WA6lqfV6.js +3 -0
- package/dist-embed-sighting-editor/ModuleThree-CB_EjTOI.js +1 -0
- package/dist-embed-sighting-editor/{ModulesPanelElement-B9R5rI0T.js → ModulesPanelElement-BsRg3mzl.js} +3 -3
- package/dist-embed-sighting-editor/{NearestApproach-pefE2Svz.js → NearestApproach-Bnx9Ld5_.js} +1 -1
- package/dist-embed-sighting-editor/PictureRegistration-D8fDZm4v.js +1 -0
- package/dist-embed-sighting-editor/{PoherAssessor-BEiAV-7m.js → PoherAssessor-CNj_Nyci.js} +1 -1
- package/dist-embed-sighting-editor/QuestionnaireFeed-B0j8W4JM.js +1 -0
- package/dist-embed-sighting-editor/QuestionnaireForm-lzn9MPr2.js +1 -0
- package/dist-embed-sighting-editor/QuestionnaireImport-BmcxlQBq.js +5 -0
- package/dist-embed-sighting-editor/QuestionnaireSeal-DpZYUhnf.js +1 -0
- package/dist-embed-sighting-editor/RailwaySystem-6bwbv8UB.js +41 -0
- package/dist-embed-sighting-editor/ReentryEditor-BWCK2g_s.js +28 -0
- package/dist-embed-sighting-editor/{ReentrySimulation-PK2Z7Smw.js → ReentrySimulation-B09JXMu5.js} +1 -1
- package/dist-embed-sighting-editor/ReferenceSystem-8QgwbbAG.js +1 -0
- package/dist-embed-sighting-editor/{RoadMarkings-BGK7ToZP.js → RoadMarkings-Dl6zVQIx.js} +1 -1
- package/dist-embed-sighting-editor/ScenarioReadings-DyMshXS4.js +1 -0
- package/dist-embed-sighting-editor/ScenarioSweep-ByqOTfs2.js +1 -0
- package/dist-embed-sighting-editor/ScenarioSweepMessages_en-Bf4BscDU.js +1 -0
- package/dist-embed-sighting-editor/ScenarioSweepMessages_es-CBHQfuRB.js +1 -0
- package/dist-embed-sighting-editor/ScenarioSweepMessages_fr-DlPsO6oI.js +1 -0
- package/dist-embed-sighting-editor/ScenarioSweepMessages_it-DANW3_la.js +1 -0
- package/dist-embed-sighting-editor/{SceneNames_en-9zK_E4jO.js → SceneNames_en-c5zNw0Hi.js} +1 -1
- package/dist-embed-sighting-editor/{SceneNames_es-B6FtSh6r.js → SceneNames_es-CDjoBwy_.js} +1 -1
- package/dist-embed-sighting-editor/{SceneNames_fr-lUEwaxUk.js → SceneNames_fr-CoZNmFu3.js} +1 -1
- package/dist-embed-sighting-editor/{SceneNames_it-ChU8RE2E.js → SceneNames_it-CVEahBpq.js} +1 -1
- package/dist-embed-sighting-editor/SearchlightEditor-BpwPOhJ6.js +8 -0
- package/dist-embed-sighting-editor/SearchlightEditorMessages_en-BWTcGHYC.js +1 -0
- package/dist-embed-sighting-editor/SearchlightEditorMessages_es-PS4IIWFS.js +1 -0
- package/dist-embed-sighting-editor/SearchlightEditorMessages_fr-CpaD2Il2.js +1 -0
- package/dist-embed-sighting-editor/SearchlightEditorMessages_it-Br2IjowF.js +1 -0
- package/dist-embed-sighting-editor/SearchlightKindMessages_en-CwJDAjsc.js +1 -0
- package/dist-embed-sighting-editor/SearchlightKindMessages_es-CCCgZyTQ.js +1 -0
- package/dist-embed-sighting-editor/SearchlightKindMessages_fr-DsxiUhmK.js +1 -0
- package/dist-embed-sighting-editor/SearchlightKindMessages_it-CyWpJL5c.js +1 -0
- package/dist-embed-sighting-editor/SearchlightParameterTexts_en-BwanYoMW.js +1 -0
- package/dist-embed-sighting-editor/SearchlightParameterTexts_es-Cz_rg-Xe.js +1 -0
- package/dist-embed-sighting-editor/SearchlightParameterTexts_fr-B7eZQIdG.js +1 -0
- package/dist-embed-sighting-editor/SearchlightParameterTexts_it-BjhuOJre.js +1 -0
- package/dist-embed-sighting-editor/SearchlightSystem-CEG52QDx.js +1 -0
- package/dist-embed-sighting-editor/{SightingEditorMessages_en-CtZXoBSS.js → SightingEditorMessages_en-k7_ua2OM.js} +1 -1
- package/{dist-embed-ufoathome/SightingEditorMessages_es-CKXlDIja.js → dist-embed-sighting-editor/SightingEditorMessages_es-Drqbbr5_.js} +1 -1
- package/dist-embed-sighting-editor/{SightingEditorMessages_fr-DjP6vAKo.js → SightingEditorMessages_fr-B_K5hsuV.js} +1 -1
- package/{dist-embed-ufoathome/SightingEditorMessages_it-CxtFzCzo.js → dist-embed-sighting-editor/SightingEditorMessages_it-QCLg1d7x.js} +1 -1
- package/dist-embed-sighting-editor/{SightingElement-BpRRhJzS.js → SightingElement-BQdiez39.js} +4 -4
- package/dist-embed-sighting-editor/{SightingFileEditor-B7GimING.js → SightingFileEditor-Du3A9uZm.js} +1 -1
- package/dist-embed-sighting-editor/{SightingMessages_en-CYzanHjT.js → SightingMessages_en-CzICxNU3.js} +1 -1
- package/dist-embed-sighting-editor/{SightingMessages_es-hjvESK6f.js → SightingMessages_es-CiVFZlgA.js} +1 -1
- package/dist-embed-sighting-editor/{SightingMessages_fr-BtfWbIP7.js → SightingMessages_fr-nopOVDa1.js} +1 -1
- package/dist-embed-sighting-editor/{SightingMessages_it-Bqm4pewZ.js → SightingMessages_it-Cu0nnPts.js} +1 -1
- package/dist-embed-sighting-editor/{SkyLantern-BDpxvmY3.js → SkyLantern-D6bru_e_.js} +1 -1
- package/dist-embed-sighting-editor/{TraceSystem-JWQpvSdA.js → TraceSystem-DZMUxSn-.js} +2 -2
- package/dist-embed-sighting-editor/{UfoMessages_en-JeMK-39o.js → UfoMessages_en-DdCKc-Ez.js} +1 -1
- package/dist-embed-sighting-editor/{VideoButton-Kxg7pF1Y.js → VideoButton-CzJg9lBG.js} +1 -1
- package/dist-embed-sighting-editor/{WaterSystem-DwGepfDm.js → WaterSystem-CB5jE7qB.js} +2 -2
- package/dist-embed-sighting-editor/angular-size-CxoysZle.png +0 -0
- package/dist-embed-sighting-editor/azimuth-CvjiPmz0.png +0 -0
- package/dist-embed-sighting-editor/caseSchema-BEJTs2Ld.js +1 -0
- package/dist-embed-sighting-editor/elevation-DPr5S6Jt.png +0 -0
- package/dist-embed-sighting-editor/geipan-qt-2025-B_RUiH8B.js +7 -0
- package/dist-embed-sighting-editor/{interviewImport-BlSMFEw_.js → interviewImport-D4P6e28u.js} +1 -1
- package/dist-embed-sighting-editor/{interviewJson-CsMHIcZ-.js → interviewJson-BJF9C-Rb.js} +1 -1
- package/dist-embed-sighting-editor/interviewSchema-r5bW7skq.js +1 -0
- package/dist-embed-sighting-editor/protractor-DyE30B87.png +0 -0
- package/dist-embed-sighting-editor/rr0-sighting-editor.mjs +573 -467
- package/dist-embed-sighting-editor/sightingSchema-9MogCcUd.js +1 -0
- package/dist-embed-sighting-editor/{surroundingsSources-z7680fTA.js → surroundingsSources-CqL7lcmF.js} +1 -1
- package/dist-embed-sighting-editor/{trafficRuntime-CvK_m6bC.js → trafficRuntime-Bu3my6S4.js} +2 -2
- package/dist-embed-ufoathome/AdsbLolArchiveProvider-KbJPyJ97.js +1 -0
- package/dist-embed-ufoathome/AirshipEditor-CBSrQM3J.js +16 -0
- package/dist-embed-ufoathome/{AirshipFlight-CX32XrkA.js → AirshipFlight-Dzpw8HRM.js} +1 -1
- package/dist-embed-ufoathome/Aurora-C_mCH4JM.js +1 -0
- package/dist-embed-ufoathome/AuroraEditor-Dzvgh6e0.js +8 -0
- package/dist-embed-ufoathome/AuroraEditorMessages_en-CpU3BS-B.js +1 -0
- package/dist-embed-ufoathome/AuroraEditorMessages_es-i8-psDHN.js +1 -0
- package/dist-embed-ufoathome/AuroraEditorMessages_fr-0DtPXXAs.js +1 -0
- package/dist-embed-ufoathome/AuroraEditorMessages_it-Dn2UHyk9.js +1 -0
- package/dist-embed-ufoathome/AuroraKindMessages_en-D_W4giJa.js +1 -0
- package/dist-embed-ufoathome/AuroraKindMessages_es-jJ5_ltZq.js +1 -0
- package/dist-embed-ufoathome/AuroraKindMessages_fr-6IzUVbRH.js +1 -0
- package/dist-embed-ufoathome/AuroraKindMessages_it-DcwuoMkp.js +1 -0
- package/dist-embed-ufoathome/AuroraParameterTexts_en-shkUd-dT.js +1 -0
- package/dist-embed-ufoathome/AuroraParameterTexts_es-CwGYyafK.js +1 -0
- package/dist-embed-ufoathome/AuroraParameterTexts_fr-CoJnicWs.js +1 -0
- package/dist-embed-ufoathome/AuroraParameterTexts_it-DHniBj_2.js +1 -0
- package/dist-embed-ufoathome/AuroraSimulation-BRUnHmlp.js +157 -0
- package/dist-embed-ufoathome/BallesterGuaspAssessor-DurdUgbG.js +1 -0
- package/dist-embed-ufoathome/BalloonEditor-dCIjTsIz.js +24 -0
- package/dist-embed-ufoathome/{BalloonFlight-DC31tnhH.js → BalloonFlight-CztT6ddg.js} +1 -1
- package/dist-embed-ufoathome/{BeamEditor-WKZhN3Hp.js → BeamEditor-Ccvx7l7x.js} +2 -2
- package/dist-embed-ufoathome/BeamSystem-CPM8m17q.js +1 -0
- package/dist-embed-ufoathome/BirdEditor-Dk3huwHa.js +16 -0
- package/dist-embed-ufoathome/{BodyEditor-uxbNOCFJ.js → BodyEditor-BG--NjnZ.js} +1 -1
- package/dist-embed-ufoathome/CaseEditorElement-0J_TCeiq.js +3175 -0
- package/dist-embed-ufoathome/{CaseElement-Lil-kZRm.js → CaseElement-CRXPyMMR.js} +3 -3
- package/dist-embed-ufoathome/{CaseReportExport-DX7PQi1u.js → CaseReportExport-DKrBXPgZ.js} +3 -3
- package/dist-embed-ufoathome/{ColumnResize-DXi_g6cq.js → ColumnResize-DV-byvDt.js} +7 -7
- package/dist-embed-ufoathome/ContrailSystem-D2AR5Zgy.js +1 -0
- package/dist-embed-ufoathome/ControlPasses-CKvTCqTI.js +29 -0
- package/dist-embed-ufoathome/CoverageAssessor-MeOMUjkZ.js +1 -0
- package/dist-embed-ufoathome/{DroneEditor-BSYPs6jg.js → DroneEditor-D60uhSHO.js} +1 -1
- package/dist-embed-ufoathome/{DroneParameters-O6pYnfX7.js → DroneParameters-CfTAaLCT.js} +1 -1
- package/dist-embed-ufoathome/Flightradar24Provider-DxTfswSh.js +1 -0
- package/dist-embed-ufoathome/GLTFLoader-pi-JKaNa.js +1 -0
- package/dist-embed-ufoathome/GeoJsonExport-iyhoKOUU.js +2 -0
- package/dist-embed-ufoathome/GeoProjection-DvqDbRIx.js +1 -0
- package/dist-embed-ufoathome/{GeographicFigures-D9njFJso.js → GeographicFigures-DBmuFlvH.js} +1 -1
- package/dist-embed-ufoathome/HeadlightSystem-D5-78PFB.js +34 -0
- package/dist-embed-ufoathome/HynekAssessor-Bda6csgM.js +1 -0
- package/dist-embed-ufoathome/InterviewAttachments-BP6Prvdu.js +1 -0
- package/dist-embed-ufoathome/InterviewEditorElement-BA060rqJ.js +294 -0
- package/dist-embed-ufoathome/{InterviewElement-kdRloxH-.js → InterviewElement-DvqsCA3I.js} +6 -2
- package/dist-embed-ufoathome/InterviewMedia-CGVsMdje.js +1 -0
- package/dist-embed-ufoathome/InterviewMessages_en-BrnxG2rl.js +3 -0
- package/dist-embed-ufoathome/InterviewMessages_es-Dxfjqrte.js +3 -0
- package/dist-embed-ufoathome/InterviewMessages_fr-DIA-1qu8.js +3 -0
- package/dist-embed-ufoathome/InterviewMessages_it-CYBEIKX-.js +3 -0
- package/dist-embed-ufoathome/KmlExport-DEPgRRWe.js +19 -0
- package/dist-embed-ufoathome/LanternEditor-BapUZdog.js +24 -0
- package/dist-embed-ufoathome/{LaserBeam-6xHkBslk.js → LaserBeam--dquPX_h.js} +1 -1
- package/dist-embed-ufoathome/LaunchEditor-D3P0GkLr.js +22 -0
- package/dist-embed-ufoathome/{LaunchPlume-BRYgiI9s.js → LaunchPlume-w4l4TR4A.js} +1 -1
- package/dist-embed-ufoathome/LaunchSimulation-BpZd-Nov.js +1 -0
- package/dist-embed-ufoathome/ModelSource-Csnm3RH_.js +1 -0
- package/dist-embed-ufoathome/ModelThumbnails-Cnt2GxTb.js +1 -0
- package/dist-embed-ufoathome/ModelViewer-DOfAkPgK.js +1 -0
- package/dist-embed-ufoathome/ModuleConformance-DYDAaJJQ.js +2 -0
- package/dist-embed-ufoathome/ModuleSession-BKDWGSEo.js +3 -0
- package/dist-embed-ufoathome/ModuleThree-D18Rh2Nj.js +1 -0
- package/dist-embed-ufoathome/{ModulesPanelElement-fUfO3DeN.js → ModulesPanelElement-DH1oroWm.js} +3 -3
- package/dist-embed-ufoathome/{NearestApproach-MxAHwcUE.js → NearestApproach-DJ98M81-.js} +1 -1
- package/dist-embed-ufoathome/{ParameterForm-DcVFxrcO.js → ParameterForm-XbqxCLRn.js} +1 -1
- package/dist-embed-ufoathome/PictureRegistration-BJeiCK8A.js +1 -0
- package/dist-embed-ufoathome/PoherAssessor-4zSdFnFp.js +1 -0
- package/dist-embed-ufoathome/QuestionnaireFeed-W69udpmT.js +1 -0
- package/dist-embed-ufoathome/QuestionnaireForm-U78nFPn5.js +1 -0
- package/dist-embed-ufoathome/QuestionnaireImport-Q5uHxQwU.js +5 -0
- package/dist-embed-ufoathome/QuestionnaireSeal-DpZYUhnf.js +1 -0
- package/dist-embed-ufoathome/RailwaySystem-KlBj8mLP.js +41 -0
- package/dist-embed-ufoathome/ReentryEditor-DEi9nT0z.js +28 -0
- package/dist-embed-ufoathome/ReentrySimulation-CSO1vgro.js +1 -0
- package/dist-embed-ufoathome/ReferenceSystem--tiMGm4e.js +1 -0
- package/dist-embed-ufoathome/RoadMarkings-DKUNImjj.js +1 -0
- package/dist-embed-ufoathome/SaidPosition-OJEYhVKN.js +4 -0
- package/dist-embed-ufoathome/ScenarioReadings-Dzdgopl3.js +1 -0
- package/dist-embed-ufoathome/ScenarioSweep-CMcleprC.js +1 -0
- package/dist-embed-ufoathome/ScenarioSweepMessages_en-Bf4BscDU.js +1 -0
- package/dist-embed-ufoathome/ScenarioSweepMessages_es-CBHQfuRB.js +1 -0
- package/dist-embed-ufoathome/ScenarioSweepMessages_fr-DlPsO6oI.js +1 -0
- package/dist-embed-ufoathome/ScenarioSweepMessages_it-DANW3_la.js +1 -0
- package/dist-embed-ufoathome/SearchlightEditor--1uL8bTa.js +8 -0
- package/dist-embed-ufoathome/SearchlightEditorMessages_en-BWTcGHYC.js +1 -0
- package/dist-embed-ufoathome/SearchlightEditorMessages_es-PS4IIWFS.js +1 -0
- package/dist-embed-ufoathome/SearchlightEditorMessages_fr-CpaD2Il2.js +1 -0
- package/dist-embed-ufoathome/SearchlightEditorMessages_it-Br2IjowF.js +1 -0
- package/dist-embed-ufoathome/SearchlightKindMessages_en-CwJDAjsc.js +1 -0
- package/dist-embed-ufoathome/SearchlightKindMessages_es-CCCgZyTQ.js +1 -0
- package/dist-embed-ufoathome/SearchlightKindMessages_fr-DsxiUhmK.js +1 -0
- package/dist-embed-ufoathome/SearchlightKindMessages_it-CyWpJL5c.js +1 -0
- package/dist-embed-ufoathome/SearchlightParameterTexts_en-BwanYoMW.js +1 -0
- package/dist-embed-ufoathome/SearchlightParameterTexts_es-Cz_rg-Xe.js +1 -0
- package/dist-embed-ufoathome/SearchlightParameterTexts_fr-B7eZQIdG.js +1 -0
- package/dist-embed-ufoathome/SearchlightParameterTexts_it-BjhuOJre.js +1 -0
- package/dist-embed-ufoathome/SearchlightSystem-7bntVtp_.js +1 -0
- package/dist-embed-ufoathome/ShareDialogElement-Dlfy9NCE.js +5186 -0
- package/dist-embed-ufoathome/Sighting-B7bsiTIQ.js +1 -0
- package/dist-embed-ufoathome/{SightingEditorMessages_en-CtZXoBSS.js → SightingEditorMessages_en-k7_ua2OM.js} +1 -1
- package/{dist-embed-sighting-editor/SightingEditorMessages_es-CKXlDIja.js → dist-embed-ufoathome/SightingEditorMessages_es-Drqbbr5_.js} +1 -1
- package/dist-embed-ufoathome/{SightingEditorMessages_fr-DjP6vAKo.js → SightingEditorMessages_fr-B_K5hsuV.js} +1 -1
- package/{dist-embed-sighting-editor/SightingEditorMessages_it-CxtFzCzo.js → dist-embed-ufoathome/SightingEditorMessages_it-QCLg1d7x.js} +1 -1
- package/dist-embed-ufoathome/{SightingElement-Ct3sIryk.js → SightingElement-BJSNmFM6.js} +4 -4
- package/dist-embed-ufoathome/{SightingFileEditor-D1s9Dv6G.js → SightingFileEditor-DS1DRU2p.js} +1 -1
- package/dist-embed-ufoathome/{SightingMessages_en-CYzanHjT.js → SightingMessages_en-CzICxNU3.js} +1 -1
- package/dist-embed-ufoathome/{SightingMessages_es-hjvESK6f.js → SightingMessages_es-CiVFZlgA.js} +1 -1
- package/dist-embed-ufoathome/{SightingMessages_fr-BtfWbIP7.js → SightingMessages_fr-nopOVDa1.js} +1 -1
- package/dist-embed-ufoathome/{SightingMessages_it-Bqm4pewZ.js → SightingMessages_it-Cu0nnPts.js} +1 -1
- package/dist-embed-ufoathome/{TimelineTracks-BgZmkKhn.js → TimelineTracks-Daaqw9ly.js} +1 -1
- package/dist-embed-ufoathome/{TraceSystem-Bop2Zoa_.js → TraceSystem-Cq2TgP-u.js} +2 -2
- package/dist-embed-ufoathome/{UfoAtHomeMessages_en-dlx_C679.js → UfoAtHomeMessages_en-BK2qJyZN.js} +1 -1
- package/dist-embed-ufoathome/{UfoAtHomeMessages_es-uLOvtAD0.js → UfoAtHomeMessages_es-B1-NDCau.js} +1 -1
- package/dist-embed-ufoathome/{UfoAtHomeMessages_fr-LR76-eHS.js → UfoAtHomeMessages_fr-BTG047qo.js} +1 -1
- package/dist-embed-ufoathome/{UfoAtHomeMessages_it-CQl4uTnG.js → UfoAtHomeMessages_it-Ryxv4HNU.js} +1 -1
- package/dist-embed-ufoathome/VideoButton-MRJlVNm_.js +1 -0
- package/dist-embed-ufoathome/WaterSystem-BNxlYNtW.js +19 -0
- package/dist-embed-ufoathome/angular-size-CxoysZle.png +0 -0
- package/dist-embed-ufoathome/azimuth-CvjiPmz0.png +0 -0
- package/dist-embed-ufoathome/caseSchema-BEJTs2Ld.js +1 -0
- package/dist-embed-ufoathome/elevation-DPr5S6Jt.png +0 -0
- package/dist-embed-ufoathome/geipan-qt-2025-B_RUiH8B.js +7 -0
- package/dist-embed-ufoathome/interviewSchema-r5bW7skq.js +1 -0
- package/dist-embed-ufoathome/protractor-DyE30B87.png +0 -0
- package/dist-embed-ufoathome/rr0-ufoathome.mjs +41 -31
- package/dist-embed-ufoathome/sightingSchema-9MogCcUd.js +1 -0
- package/dist-embed-ufoathome/surroundingsSources--qffL_nJ.js +1 -0
- package/dist-embed-ufoathome/three.module-CbaHqYFq.js +4116 -0
- package/dist-embed-ufoathome/trafficRuntime-CTCGr90P.js +2 -0
- package/dist-embed-ufoathome/{upperAirSources-BGuLpdwu.js → upperAirSources-BU0pD84c.js} +1 -1
- package/dist-embed-ufoathome/xyzImageryRaster-Dhxs0B26.js +1 -0
- package/package.json +4 -2
- package/dist-embed-interview/InterviewMessages_en-ru7GkZlQ.js +0 -1
- package/dist-embed-interview/InterviewMessages_es-DkJurNrG.js +0 -1
- package/dist-embed-interview/InterviewMessages_fr-DAYgf8Ms.js +0 -1
- package/dist-embed-interview/InterviewMessages_it-6lenkmSg.js +0 -1
- package/dist-embed-scene/BeamSystem-BtLpnMXz.js +0 -1
- package/dist-embed-scene/ModuleSession-BodXzA3g.js +0 -3
- package/dist-embed-scene/ModuleThree-D7qc50Hj.js +0 -1
- package/dist-embed-scene/sightingSchema-BDxKVE3v.js +0 -1
- package/dist-embed-sighting/BeamSystem-DJZTpG0z.js +0 -1
- package/dist-embed-sighting/InterviewMessages_en-ru7GkZlQ.js +0 -1
- package/dist-embed-sighting/InterviewMessages_es-DkJurNrG.js +0 -1
- package/dist-embed-sighting/InterviewMessages_fr-DAYgf8Ms.js +0 -1
- package/dist-embed-sighting/InterviewMessages_it-6lenkmSg.js +0 -1
- package/dist-embed-sighting/ModuleSession-BZbes53G.js +0 -3
- package/dist-embed-sighting/ModuleThree-CPPPDBO4.js +0 -1
- package/dist-embed-sighting/sightingSchema-BDxKVE3v.js +0 -1
- package/dist-embed-sighting-editor/AirshipEditor-rA-Sr4D1.js +0 -16
- package/dist-embed-sighting-editor/BalloonEditor-CPZoayzz.js +0 -24
- package/dist-embed-sighting-editor/BeamSystem-Br0h-uSI.js +0 -1
- package/dist-embed-sighting-editor/BirdEditor-CAoRqqRV.js +0 -16
- package/dist-embed-sighting-editor/GLTFLoader-DT3hr416.js +0 -1
- package/dist-embed-sighting-editor/GeographicFigures-DqhWddS9.js +0 -1
- package/dist-embed-sighting-editor/InterviewEditorElement-CcXO_w9X.js +0 -242
- package/dist-embed-sighting-editor/InterviewMedia-CvAxC62V.js +0 -1
- package/dist-embed-sighting-editor/InterviewMessages_en-ru7GkZlQ.js +0 -1
- package/dist-embed-sighting-editor/InterviewMessages_es-DkJurNrG.js +0 -1
- package/dist-embed-sighting-editor/InterviewMessages_fr-DAYgf8Ms.js +0 -1
- package/dist-embed-sighting-editor/InterviewMessages_it-6lenkmSg.js +0 -1
- package/dist-embed-sighting-editor/LanternEditor-BnXAwLuQ.js +0 -24
- package/dist-embed-sighting-editor/LaunchEditor-f4kJ5pWG.js +0 -22
- package/dist-embed-sighting-editor/LaunchSimulation-B3vlOUUu.js +0 -1
- package/dist-embed-sighting-editor/ModelSource-D1Wt6VYS.js +0 -1
- package/dist-embed-sighting-editor/ModuleConformance-DF6CNBvD.js +0 -2
- package/dist-embed-sighting-editor/ModuleSession-BgxzArtm.js +0 -3
- package/dist-embed-sighting-editor/ModuleThree-DXFS5Pjb.js +0 -1
- package/dist-embed-sighting-editor/PictureRegistration-DBBH_E6I.js +0 -1
- package/dist-embed-sighting-editor/RailwaySystem-7A12KSnk.js +0 -41
- package/dist-embed-sighting-editor/ReentryEditor-Ch9_6pS8.js +0 -28
- package/dist-embed-sighting-editor/ReferenceSystem-Bt7l5nHl.js +0 -1
- package/dist-embed-sighting-editor/caseSchema-ChUB1-9j.js +0 -1
- package/dist-embed-sighting-editor/interviewSchema-Dk0AWHwc.js +0 -1
- package/dist-embed-sighting-editor/sightingSchema-C1S-Kr9w.js +0 -1
- package/dist-embed-ufoathome/AdsbLolArchiveProvider-DzC2OwjF.js +0 -1
- package/dist-embed-ufoathome/AirshipEditor-DDmu9JT8.js +0 -16
- package/dist-embed-ufoathome/BallesterGuaspAssessor-Bn5TGAvJ.js +0 -1
- package/dist-embed-ufoathome/BalloonEditor-CGrzszk1.js +0 -24
- package/dist-embed-ufoathome/BeamSystem-CWJkeTmf.js +0 -1
- package/dist-embed-ufoathome/BirdEditor-07sg3Pt0.js +0 -16
- package/dist-embed-ufoathome/CaseEditorElement-DNZt-oc7.js +0 -3148
- package/dist-embed-ufoathome/ContrailSystem-DBPA_rNt.js +0 -1
- package/dist-embed-ufoathome/ControlPasses-BgvVicQS.js +0 -29
- package/dist-embed-ufoathome/CoverageAssessor-BiDfEPse.js +0 -1
- package/dist-embed-ufoathome/Flightradar24Provider-DJtlvu72.js +0 -1
- package/dist-embed-ufoathome/GLTFLoader-2tuw29HP.js +0 -1
- package/dist-embed-ufoathome/GeoJsonExport-DHZOlC4h.js +0 -2
- package/dist-embed-ufoathome/HeadlightSystem-h2F6DzUW.js +0 -34
- package/dist-embed-ufoathome/HynekAssessor-C1TFQQNc.js +0 -1
- package/dist-embed-ufoathome/InterviewEditorElement-BythuoeV.js +0 -242
- package/dist-embed-ufoathome/InterviewMedia-CvAxC62V.js +0 -1
- package/dist-embed-ufoathome/InterviewMessages_en-ru7GkZlQ.js +0 -1
- package/dist-embed-ufoathome/InterviewMessages_es-DkJurNrG.js +0 -1
- package/dist-embed-ufoathome/InterviewMessages_fr-DAYgf8Ms.js +0 -1
- package/dist-embed-ufoathome/InterviewMessages_it-6lenkmSg.js +0 -1
- package/dist-embed-ufoathome/KmlExport-Qih5jB1R.js +0 -19
- package/dist-embed-ufoathome/LanternEditor-BRqgj1S6.js +0 -24
- package/dist-embed-ufoathome/LaunchEditor-D5FlWL04.js +0 -22
- package/dist-embed-ufoathome/LaunchSimulation-DS7JtdJz.js +0 -1
- package/dist-embed-ufoathome/ModelSource-DQDWsfAb.js +0 -1
- package/dist-embed-ufoathome/ModelThumbnails-DovTOA0Y.js +0 -1
- package/dist-embed-ufoathome/ModelViewer-DIvwFZDg.js +0 -1
- package/dist-embed-ufoathome/ModuleConformance-VMgvNBlc.js +0 -2
- package/dist-embed-ufoathome/ModuleSession-D6wg8SbE.js +0 -3
- package/dist-embed-ufoathome/ModuleThree-CLkMHq_q.js +0 -1
- package/dist-embed-ufoathome/PictureRegistration-Dnh3w7Ph.js +0 -1
- package/dist-embed-ufoathome/PoherAssessor-h8_-WKIK.js +0 -1
- package/dist-embed-ufoathome/RailwaySystem-DZ2hctVL.js +0 -41
- package/dist-embed-ufoathome/ReentryEditor-DxyGO7_Z.js +0 -28
- package/dist-embed-ufoathome/ReentrySimulation-B55Uq-6-.js +0 -1
- package/dist-embed-ufoathome/ReferenceSystem-DJosChqB.js +0 -1
- package/dist-embed-ufoathome/RoadMarkings-DDRxawvf.js +0 -1
- package/dist-embed-ufoathome/SaidPosition-CXZLm-ck.js +0 -4
- package/dist-embed-ufoathome/ShareDialogElement--Mjaublp.js +0 -9222
- package/dist-embed-ufoathome/Sighting-Ch4eiBNK.js +0 -1
- package/dist-embed-ufoathome/VideoButton-DzEuUvRs.js +0 -1
- package/dist-embed-ufoathome/WaterSystem-KQAAtpYS.js +0 -19
- package/dist-embed-ufoathome/caseSchema-ChUB1-9j.js +0 -1
- package/dist-embed-ufoathome/interviewSchema-Dk0AWHwc.js +0 -1
- package/dist-embed-ufoathome/sightingSchema-C1S-Kr9w.js +0 -1
- package/dist-embed-ufoathome/surroundingsSources-LtEaPPRc.js +0 -1
- package/dist-embed-ufoathome/trafficRuntime-uPEasExE.js +0 -2
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import{n as m,_ as h,b9 as f,bb as w,bc as E,b6 as b,$ as A,a1 as L,a0 as O,Y as T,b8 as S,a2 as x,a3 as M}from"./rr0-sighting-editor.mjs";import{S as k}from"./SkyEventEditorStyle-CvY_AhbI.js";import{D as R}from"./DroneParameters-B1oTz3dZ.js";import{BalloonFlight as c}from"./BalloonFlight-DqwGZzum.js";import"./DroneFlight-BpnBgJ9K.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
|
-
.balloon-editor-part, .balloon-editor-part #balloon-list, .balloon-editor-part .launch-fields { flex-basis: 100%; min-width: 0; }
|
|
3
|
-
.balloon-editor-part .launch-editor, .balloon-editor-part .launch-fields { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
|
|
4
|
-
.balloon-editor-part [hidden] { display: none !important; }
|
|
5
|
-
.balloon-editor-part .launch-intro { flex-basis: 100%; margin: 0; }
|
|
6
|
-
.balloon-editor-part .launch-parameters { flex-basis: 100%; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20em), 1fr)); gap: 12px; align-items: start; }
|
|
7
|
-
.balloon-editor-part .parameter-group { min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
|
|
8
|
-
.balloon-editor-part .parameter-group > label { display: flex; flex-wrap: wrap; align-items: center; gap: .35em .5em; min-width: 0; max-width: 100%; }
|
|
9
|
-
.balloon-editor-part .parameter-group > label > span { flex: 1 1 11em; min-width: 0; overflow-wrap: anywhere; }
|
|
10
|
-
.balloon-editor-part .parameter-row { width: 100%; min-width: 0; }
|
|
11
|
-
.balloon-editor-part rr0-input-position { min-width: 0; max-width: 100%; }
|
|
12
|
-
.balloon-editor-part rr0-input-position .position-from { flex-wrap: wrap; white-space: normal; min-width: 0; max-width: 100%; }
|
|
13
|
-
.balloon-editor-part input, .balloon-editor-part select { min-width: 0; max-width: 100%; box-sizing: border-box; }
|
|
14
|
-
.balloon-editor-part input[type="text"] { width: 12em; }
|
|
15
|
-
.balloon-editor-part input.parameter-derived::placeholder { opacity: .65; }
|
|
16
|
-
`;async setLanguage(e){const t=++this.languageToken;this.language=e;const[s,n]=await Promise.all([D.load(e),I.load(e)]);t===this.languageToken&&(this.messages=s,this.parameterTexts=n,this.render(),this.sync())}sync(){if(!this.messages)return;const e=this.flights;this.shown=[...e],e.some(s=>s.id===this.currentId)||(this.currentId=e[0]?.id),this.list?.setItems(e.map(s=>({id:s.id,label:this.labelOf(s)})),this.currentId),this.syncAddState();const t=this.current;this.element("balloon-fields").hidden=t===void 0,t&&(this.syncNotes(),this.form??=new A(this.element("balloon-parameters"),this.language,"balloons.",{said:()=>this.host.said(),writingLanguage:()=>this.host.writingLanguage()}),this.form.show(this.resolved(i.SET),new L(()=>this.view,s=>this.editView(n=>s(n)),()=>({shapes:this.host.shapes().map(s=>({value:s.id,label:s.label}))}),this.host.positionPlace?.()),()=>this.written()))}refresh(){if(!this.messages)return;this.syncAddState();const e=this.flights;e.length===this.shown.length&&e.every((t,s)=>t.id===this.shown[s].id)||this.sync()}get current(){return this.flights.find(e=>e.id===this.currentId)}get view(){const e=this.current;if(e)return this.viewed?.of!==e&&(this.viewed={of:e,view:i.viewOf(e)}),this.viewed.view}syncAddState(){const e=this.frontOfObserver()!==void 0;this.list?.setAddState(e,e?void 0:this.messages.addNowhere)}syncNotes(){const e=this.current,t=e.group?e.releases?.length??0:Math.max(0,(e.releases?.length??0)-1),s=Math.max(0,(e.windsAloft?.length??0)-1),n=(e.plan?.length??0)>1?e.plan.length:0,o=[t>0?this.messages.releasesNote.replace("{n}",String(t)):"",s>0?this.messages.windsNote.replace("{n}",String(s)):"",n>0?this.messages.planNote.replace("{n}",String(n)):""].filter(Boolean),r=this.element("balloon-kept");r.hidden=o.length===0,r.textContent=o.join(" ")}resolved(e){return O.resolve(e,this.parameterTexts)}render(){if(!this.messages)return;const e=this.messages;this.form=void 0,this.container.innerHTML=`<div class="launch-editor">
|
|
17
|
-
<p class="launch-intro">${e.intro}</p>
|
|
18
|
-
<div id="balloon-list"></div>
|
|
19
|
-
<div id="balloon-fields" class="launch-fields">
|
|
20
|
-
<div id="balloon-parameters" class="launch-parameters"></div>
|
|
21
|
-
<p id="balloon-kept" class="launch-intro" hidden></p>
|
|
22
|
-
<p class="launch-intro">${e.derivedNote}</p>
|
|
23
|
-
</div>
|
|
24
|
-
</div>`,this.list=new T({header:this.element("balloon-list"),body:this.element("balloon-fields"),ids:{list:"balloon-select",remove:"balloon-delete",add:"balloon-add"},onSelect:t=>{this.currentId=t,this.sync()},onAdd:()=>this.addBalloon(),onRemove:()=>this.deleteCurrent()}),this.list.setLabels({list:e.balloon,remove:e.deleteBalloon,add:e.addBalloon,empty:e.none})}written(){const e=this.current;e&&(this.list?.rename(e.id,this.labelOf(e)),this.syncNotes())}editView(e){const t=this.current;if(!t)return;const s=structuredClone(this.view);e(s);const n=i.fromView(s,t);this.writeFlights(this.flights.map(o=>o===t?n:o)),this.host.changed()}frontOfObserver(){const e=this.host.sighting(),t=e.event?.place?.[0];if(t?.lat===void 0||t.lng===void 0)return;const s=e.observerTrack?.getInterpolatedPoseAt(this.host.currentTime?.()??0),n=111320,o=s?.lng!==void 0?(s.lng-t.lng)*n*Math.cos(t.lat*Math.PI/180):0,r=s?.lat!==void 0?(s.lat-t.lat)*n:0;return{eastM:o,northM:r,headingRad:(s?.headingDeg??0)*Math.PI/180}}addBalloon(){const e=this.frontOfObserver();if(!e)return;let t=this.flights.length+1;for(;this.flights.some(r=>r.id===`balloon-${t}`);)t++;const s=this.host.sighting(),n=s.weatherTrack?S(s,this.host.currentTime?.()??0):void 0,o={id:`balloon-${t}`,balloon:"weather",site:{eastM:Math.round(e.eastM+1e3*Math.sin(e.headingRad)),northM:Math.round(e.northM+1e3*Math.cos(e.headingRad))},releases:[{t:Math.round(this.host.currentTime?.()??0)}],...n?{wind:{towardDeg:Math.round((n.windDirectionDeg+180)%360),speedMS:Math.round(n.windSpeed*10)/10}}:{}};this.writeFlights([...this.flights,o]),this.currentId=o.id,this.host.changed(),this.sync()}deleteCurrent(){const e=this.current;e&&(this.currentId=void 0,this.writeFlights(this.flights.filter(t=>t!==e)),this.host.changed(),this.sync())}writeFlights(e){const t=this.host.sighting(),s={...t.interpretation??{bodies:[]},balloons:e.length>0?e:void 0};s.balloons===void 0&&delete s.balloons;const n=x.saysNothing(s,M.kinds());t.interpretation=n?void 0:s}labelOf(e){const t=this.host.said().read(e.title);return t?`${t} (${e.id})`:e.id}get flights(){return this.host.sighting().interpretation?.balloons??[]}element(e){return this.container.querySelector(`#${e}`)}}export{y as BalloonEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{aV as W,be as X,bf as H,aY as m,bg as v,bh as k,bi as D}from"./rr0-sighting-editor.mjs";import{L as S}from"./LaserBeam-iHLKAi5q.js";class x{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 W;mesh;positions=new Float32Array(x.MAX_SEGMENTS*x.VERTICES_PER_SEGMENT*3);colors=new Float32Array(x.MAX_SEGMENTS*x.VERTICES_PER_SEGMENT*3);segments=0;drawn=[];cut;constructor(){const s=new X;s.setAttribute("position",new H(this.positions,3)),s.setAttribute("color",new H(this.colors,3)),s.setDrawRange(0,0),this.mesh=new m(s,new v({vertexColors:!0,transparent:!0,blending:D,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){const l=this.viewsOf(s,t,e);let r=0;this.segments=0,this.drawn=[];for(const h of l){const c=S.colourOf(h.wavelengthNm),i=this.place(h,t,e);this.drawn.push({id:h.id,points:i});for(let y=0;y+1<i.length&&!(this.segments>=x.MAX_SEGMENTS);y++){const E=this.pushSegment(r,i[y],i[y+1],h.wavelengthNm,c,e);E>r&&this.segments++,r=E}}const o=this.mesh.geometry;o.setDrawRange(0,r);for(const h of["position","color"]){const c=o.getAttribute(h);c.clearUpdateRanges(),r>0&&c.addUpdateRange(0,r*3),c.needsUpdate=!0}}viewsOf(s,t,e){const{lat:l,lng:r}=e.reference;(!this.cut||this.cut.lat!==l||this.cut.lng!==r||this.cut.air!==e.air)&&(this.cut={lat:l,lng:r,air:e.air,views:new Map});const o=this.cut.views,h=new Set(s);return S.onAt(s,t).map(c=>{if(!h.has(c))return S.viewOf(c,e.reference,e.air);let i=o.get(c);return i||o.set(c,i=S.viewOf(c,e.reference,e.air)),i})}place(s,t,e){const l=[],r=e.wind??{eastMS:0,northMS:0};for(const o of s.samples){const h=e.origin.x+o.eastM*e.eastScale,c=e.origin.z-o.northM,i=o.upM-e.siteElevationM;if(l.length>0&&i<e.groundYAt(h,c))break;const y=r.eastMS*o.dirEast+r.northMS*o.dirNorth,E=r.eastMS*o.dirNorth-r.northMS*o.dirEast,g=S.patchAt(o.fromSourceM,t,{windAlongMS:y,windAcrossMS:E,patchiness:s.patchiness});l.push({x:h,y:i,z:c,altitudeM:o.altitudeM,widthM:o.widthM,powerW:o.powerW,haze:g})}return l}static SMOOTH_RATIO=1.08;static MAX_HALVINGS=6;pushSegment(s,t,e,l,r,o,h=0){const c={x:e.x-t.x,y:e.y-t.y,z:e.z-t.z},i=Math.hypot(c.x,c.y,c.z);if(i<1e-6)return s;const y={x:c.x/i,y:c.y/i,z:c.z/i};if(Math.hypot((t.x+e.x)/2-o.eye.x,(t.y+e.y)/2-o.eye.y,(t.z+e.z)/2-o.eye.z)<.001)return s;const E=n=>{const u={x:o.eye.x-n.x,y:o.eye.y-n.y,z:o.eye.z-n.z},z=Math.hypot(u.x,u.y,u.z)||.001,p=(y.x*u.x+y.y*u.y+y.z*u.z)/z,a=Math.sqrt(Math.max(0,1-p*p)),w=S.coefficientsAt(o.air,l,n.altitudeM),d=S.phasedScattering({...w,aerosolPerM:w.aerosolPerM*n.haze},p);return{sinTurn:a,scattered:d,through:o.transmittanceTo(n.x,n.y,n.z)}},g=n=>x.MIN_PIXELS*o.pixelRad*Math.hypot(n.x-o.eye.x,n.y-o.eye.y,n.z-o.eye.z),N=n=>Math.hypot(n.x-o.eye.x,n.y-o.eye.y,n.z-o.eye.z),R=n=>Math.max(n.widthM,x.HALO_RAD*N(n)),f=n=>{const u=R(n)/g(n),z=Math.min(1,Math.max(0,u-1));return x.HALO_SHARE*z*z*(3-2*z)},O=new Map([t,e].map(n=>[n,E(n)])),M=(n,u,z)=>{const p=Math.max(u,g(n)),{sinTurn:a,scattered:w,through:d}=O.get(n),I=2*z*S.luminanceCdM2(n.powerW,l,w,p,a),L=r.map((C,V)=>Math.min(x.BRIGHTEST_RELATIVE,I*o.relativeScale*C*d[V])),_={x:o.eye.x-n.x,y:o.eye.y-n.y,z:o.eye.z-n.z},P=this.normalise(this.cross(y,_));return{point:n,half:p/2,level:L,across:P}},A=[[M(t,t.widthM,1-f(t)),M(e,e.widthM,1-f(e))],[M(t,R(t),f(t)),M(e,R(e),f(e))]],[G,T]=A[0].map(n=>Math.max(...n.level));if(h<x.MAX_HALVINGS&&Math.max(G,T)>x.SMOOTH_RATIO*Math.max(Math.min(G,T),1e-12)){const n={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,n,l,r,o,h+1),n,e,l,r,o,h+1)}if((s+x.VERTICES_PER_SEGMENT)*3>this.positions.length)return s;for(const n of A){if(n.every(a=>Math.max(...a.level)<=0))continue;const u=(a,w)=>{const d=s*3;this.positions[d]=a.point.x+a.across.x*a.half*w,this.positions[d+1]=a.point.y+a.across.y*a.half*w,this.positions[d+2]=a.point.z+a.across.z*a.half*w;const I=w===0?1:0;this.colors[d]=a.level[0]*I,this.colors[d+1]=a.level[1]*I,this.colors[d+2]=a.level[2]*I,s++},[z,p]=n;for(const a of[-1,1])u(z,a),u(z,0),u(p,a),u(z,0),u(p,0),u(p,a)}return s}pickAt(s,t,e){let l;for(const r of this.drawn)for(let o=0;o+1<r.points.length;o++){const h=r.points[o],c=r.points[o+1],i={x:c.x-h.x,y:c.y-h.y,z:c.z-h.z},y={x:h.x-s.x,y:h.y-s.y,z:h.z-s.z},E=i.x*i.x+i.y*i.y+i.z*i.z,g=i.x*t.x+i.y*t.y+i.z*t.z,N=i.x*y.x+i.y*y.y+i.z*y.z,R=t.x*y.x+t.y*y.y+t.z*y.z,f=E-g*g,O=f>1e-9?Math.min(1,Math.max(0,(g*R-N)/f)):0,M={x:h.x+i.x*O,y:h.y+i.y*O,z:h.z+i.z*O},A=(M.x-s.x)*t.x+(M.y-s.y)*t.y+(M.z-s.z)*t.z;if(A<=0)continue;const G=Math.hypot(M.x-s.x-t.x*A,M.y-s.y-t.y*A,M.z-s.z-t.z*A),T=Math.atan2(G,A);T<=e&&(!l||T<l.angle)&&(l={id:r.id,distanceM:Math.hypot(M.x-s.x,M.y-s.y,M.z-s.z),angle:T})}return l&&{id:l.id,distanceM:l.distanceM}}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{x as BeamSystem};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import{n as k,_ as c,b9 as u,b6 as y,$ as O,a1 as x,a0 as T,I as w,Y as M,Z as I,a2 as F,a3 as A}from"./rr0-sighting-editor.mjs";import{S}from"./SkyEventEditorStyle-CvY_AhbI.js";import{B as v,a as m,F as E}from"./BirdFlock-TI63ZAKZ.js";const L=k.catalog({en:()=>c(()=>import("./BirdParameterTexts_en-C6FkYUww.js"),[],import.meta.url).then(l=>l.birdParameterTexts_en),fr:()=>c(()=>import("./BirdParameterTexts_fr-BiTR-olu.js"),[],import.meta.url).then(l=>l.birdParameterTexts_fr),es:()=>c(()=>import("./BirdParameterTexts_es-T8JyeNlI.js"),[],import.meta.url).then(l=>l.birdParameterTexts_es),it:()=>c(()=>import("./BirdParameterTexts_it-oQY4DX6B.js"),[],import.meta.url).then(l=>l.birdParameterTexts_it)});class n{static FLOCK="flock";static FORMATION="formation";static FLIGHT="flight";static LOOK="look";static speciesOf(t){return v.speciesOf(t)}static speciesLabel(t){return t.replace(/-([a-z])/g,(e,i)=>i.toUpperCase())}static formationOf(t){const e=u.read(t,"formation.kind");return typeof e=="string"?e:n.formationUnstated(t)}static formationUnstated(t){return(u.read(t,"count")??1)>1?"cluster":"single"}static flightOf(t){const e=u.read(t,"flight.kind");return typeof e=="string"?e:n.speciesOf(t).flight.kind}static burstOf(t,e){const i=u.read(t,`flight.${e}`);if(typeof i=="number")return i;const s=n.speciesOf(t).flight;return s.kind==="flapping"?n.BURST[e]:s[e]}static BURST={beats:4,glideS:2};static colour(t,e,i){return{type:"colour",key:`colours.${t}`,group:n.LOOK,label:e,...i?{hint:i}:{},effective:s=>m.colourOf(n.speciesOf(s),t)}}static SET={kind:"birds",title:"birds",parameters:[{type:"said",key:"title",label:"name",group:n.FLOCK},{type:"choice",key:"species",required:!0,group:n.FLOCK,label:"species",choices:m.ALL.map(t=>({value:t.id,label:n.speciesLabel(t.id)}))},{type:"number",key:"count",min:1,max:2e3,step:1,group:n.FLOCK,effective:()=>1,label:"howMany"},{type:"set",key:"explains",group:n.FLOCK,label:"standForTheShapes",hint:"theWholeFlockTakenForOne",visibleWhen:t=>t.explainsEach===void 0,options:(t,e)=>{const i=e?.shapes??[],s=(t.explains??[]).filter(o=>!i.some(a=>a.value===o));return[...i,...s.map(o=>({value:o,label:o}))]},empty:"noShape"},{type:"number",key:"seed",min:0,max:4294967295,step:1,group:n.FLOCK,effective:()=>1,label:"draw",hint:"whatTheDrawsStartFrom"},{type:"choice",key:"formation.kind",group:n.FORMATION,label:"pattern",effective:t=>n.formationUnstated(t),choices:[{value:"single",label:"oneBird"},{value:"v",label:"inAV"},{value:"j",label:"inAJ"},{value:"echelon",label:"inEchelon"},{value:"column",label:"inAColumn"},{value:"front",label:"abreast"},{value:"cluster",label:"aLooseCrowd"},{value:"flock",label:"aFlockThatFliesItself"}]},{type:"number",key:"formation.angleDeg",min:5,max:180,step:1,unit:"°",group:n.FORMATION,effective:()=>70,label:"angleBetweenTheArms",hint:"aGooseVMeasures",visibleWhen:t=>["v","j"].includes(n.formationOf(t))},{type:"number",key:"formation.asymmetry",min:0,max:100,step:5,unit:"%",scale:100,group:n.FORMATION,effective:()=>.7,label:"onTheRightArm",visibleWhen:t=>n.formationOf(t)==="j"},{type:"number",key:"formation.spacing",min:.2,max:20,step:.1,group:n.FORMATION,effective:t=>["v","j","echelon","column"].includes(n.formationOf(t))?1:1.5,label:"spacingInWingspans",hint:"betweenNeighbours",visibleWhen:t=>n.formationOf(t)!=="single"},{type:"number",key:"formation.wander",min:0,max:5,step:.05,group:n.FORMATION,effective:t=>["v","j","echelon","column"].includes(n.formationOf(t))?.15:.4,label:"strayInWingspans",hint:"howMuchEachBirdStrays",visibleWhen:t=>!["single","flock"].includes(n.formationOf(t))},{type:"number",key:"formation.informed",min:0,max:100,step:1,unit:"%",scale:100,group:n.FORMATION,effective:()=>E.INFORMED_SHARE,label:"informed",hint:"aFewKnowWhereTheFlockIsGoing",visibleWhen:t=>n.formationOf(t)==="flock"},{type:"number",key:"wingbeatHz",min:.5,max:30,step:.01,unit:"Hz",group:n.FLIGHT,effective:t=>{const e=t,i=v.pathOf(e)[0]?.upM??0;return Math.round(m.wingbeatHz(n.speciesOf(t),m.airDensityAt((e.originElevationM??0)+i))*100)/100},label:"wingbeat",hint:"predictedFromItsSpecies"},{type:"choice",key:"flight.kind",group:n.FLIGHT,label:"howTheyFly",effective:t=>n.speciesOf(t).flight.kind,choices:[{value:"flapping",label:"flappingAllTheTime"},{value:"bursts",label:"inBurstsAndGlides"},{value:"path",label:"asTheirPathAsks"}]},{type:"number",key:"flight.beats",min:1,max:50,step:1,group:n.FLIGHT,label:"wingbeatsABurst",effective:t=>n.burstOf(t,"beats"),visibleWhen:t=>n.flightOf(t)!=="flapping"},{type:"number",key:"flight.glideS",min:0,max:60,step:.1,unit:"s",group:n.FLIGHT,label:"glideBetween",effective:t=>n.burstOf(t,"glideS"),visibleWhen:t=>n.flightOf(t)!=="flapping"},{type:"number",key:"originElevationM",min:-500,max:6e3,step:1,unit:"m",group:n.FLIGHT,effective:()=>0,label:"thePlaceSGroundAboveTheSea",hint:"whatSetsHowThinTheAir"},n.colour("upperColor","upperSide","theBackAndTheUpperSide"),n.colour("underColor","underSide","theBellyAndTheUnderSide"),n.colour("tipColor","wingTips"),n.colour("headColor","head"),n.colour("neckColor","neck"),n.colour("billColor","bill"),{type:"number",key:"lightFromBelow.lux",min:0,max:1e4,step:.1,unit:"lx",group:n.LOOK,effective:()=>0,label:"litFromBelow",hint:"theLampsOfATown"},{type:"colour",key:"lightFromBelow.color",group:n.LOOK,fallback:"#ffd7a0",label:"lightFromBelowColour",visibleWhen:t=>typeof u.read(t,"lightFromBelow.lux")=="number"}]};static angular(t){return typeof t.azimuthDeg=="number"}static WAYPOINT={kind:"birds-waypoint",title:"pointOfThePath",parameters:[{type:"number",key:"t",min:-36e3,max:36e3,step:.1,unit:"s",scale:.001,required:!0,label:"time",hint:"secondsOfTheRecording"},{type:"position",key:"eastM",secondKey:"northM",saidKey:"saidPosition",native:"local",step:1,rangeM:1e5,label:"position",visibleWhen:t=>!n.angular(t)},{type:"number",key:"altitudeM",min:-500,max:1e4,step:.1,unit:"m",required:!0,label:"height",hint:"aboveTheGroundOfThePlace",visibleWhen:t=>!n.angular(t)},{type:"number",key:"azimuthDeg",min:0,max:360,step:.1,unit:"°",required:!0,label:"azimuth",visibleWhen:t=>n.angular(t)},{type:"number",key:"altitudeDeg",min:-90,max:90,step:.1,unit:"°",required:!0,label:"elevation",visibleWhen:t=>n.angular(t)},{type:"number",key:"distanceM",min:0,max:1e5,step:1,unit:"m",required:!0,label:"distance",visibleWhen:t=>n.angular(t)},{type:"number",key:"eyeHeightM",min:0,max:1e4,step:.1,unit:"m",effective:()=>1.6,label:"eyeHeight",visibleWhen:t=>n.angular(t)}]};static waypointAt(t,e){const i=v.pathOf(t),s=g=>Math.round(g*10)/10;if(i.length===0)return{t:e,eastM:0,northM:0,altitudeM:0};const o=i.findIndex(g=>g.t>=e),[a,r]=o<=0?[i[Math.max(o,0)],i[Math.max(o,0)]]:[i[o-1],i[o]],h=o<0?i[i.length-1]:void 0,p=h||r.t===a.t?0:(e-a.t)/(r.t-a.t),d=h??a,b=h??r;return{t:Math.round(e),eastM:s(d.eastM+(b.eastM-d.eastM)*p),northM:s(d.northM+(b.northM-d.northM)*p),altitudeM:s(d.upM+(b.upM-d.upM)*p)}}static publish(){y.publish(n.SET),y.publish(n.WAYPOINT)}}const R=k.catalog({en:()=>c(()=>import("./BirdEditorMessages_en-CN1OJud9.js"),[],import.meta.url).then(l=>l.birdEditorMessages_en),fr:()=>c(()=>import("./BirdEditorMessages_fr-hL72V8wm.js"),[],import.meta.url).then(l=>l.birdEditorMessages_fr),es:()=>c(()=>import("./BirdEditorMessages_es-DDEnjRrz.js"),[],import.meta.url).then(l=>l.birdEditorMessages_es),it:()=>c(()=>import("./BirdEditorMessages_it-BmLyiPYp.js"),[],import.meta.url).then(l=>l.birdEditorMessages_it)});class f{constructor(t,e,i){this.container=t,this.host=e,S.attach(t,"bird-editor-part",f.STYLE),this.language=i,y.of("birds")||n.publish(),this.ready=this.setLanguage(i)}messages;ready;parameterTexts;languageToken=0;currentId;form;list;timeline;pointForm;pointIndex=0;language;shown=[];static STYLE='.bird-editor-part { flex-basis: 100%; min-width: 0; } .bird-editor-part #bird-list, .bird-editor-part #bird-timeline { flex-basis: 100%; min-width: 0; } .bird-editor-part #bird-timeline { padding: 4px 0; } .bird-editor-part #bird-path > .icon-btn { align-self: flex-end; } .bird-editor-part .launch-editor, .bird-editor-part .launch-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; } .bird-editor-part .launch-fields { flex-basis: 100%; min-width: 0; } .bird-editor-part [hidden] { display: none !important; } .bird-editor-part select { min-width: 0; width: 100%; } .bird-editor-part .launch-intro { flex-basis: 100%; margin: 0; } .bird-editor-part .launch-parameters { flex-basis: 100%; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; } .bird-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; } .bird-editor-part input, .bird-editor-part select { max-width: 100%; box-sizing: border-box; } .bird-editor-part input[type="text"] { width: 12em; } .bird-editor-part label { min-width: 0; max-width: 100%; } .bird-editor-part input.parameter-derived::placeholder { opacity: .65; } .bird-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";async setLanguage(t){const e=++this.languageToken;this.language=t;const[i,s]=await Promise.all([R.load(t),L.load(t)]);e===this.languageToken&&(this.messages=i,this.parameterTexts=s,this.render(),this.sync())}sync(){if(!this.messages)return;const t=this.flocks;this.shown=[...t],t.some(s=>s.id===this.currentId)||(this.currentId=t[0]?.id),this.list?.setItems(t.map(s=>({id:s.id,label:this.labelOf(s)})),this.currentId),this.syncAddState();const e=this.current;if(this.element("bird-fields").hidden=e===void 0,!e)return;const i=this.element("bird-each");i.hidden=e.explainsEach===void 0,i.textContent=this.messages.explainsEachNote.replace("{n}",String(e.explainsEach?.length??0)),this.form??=new O(this.element("bird-parameters"),this.language,"birds.",{said:()=>this.host.said(),writingLanguage:()=>this.host.writingLanguage()}),this.form.show(this.resolved(n.SET),new x(()=>this.current,s=>this.editFlock(o=>s(o)),()=>({shapes:this.host.shapes().map(s=>({value:s.id,label:s.label}))}),this.host.positionPlace?.()),()=>this.written()),this.syncPoint(!0)}refresh(){if(!this.messages)return;this.syncAddState();const t=this.flocks;if(t.length===this.shown.length&&t.every((e,i)=>e.id===this.shown[i].id)){this.syncTimeline();return}this.sync()}setTime(t){this.messages&&this.timeline?.setTime(t)}syncAddState(){const t=this.frontOfObserver()!==void 0;this.list?.setAddState(t,t?void 0:this.messages.addNowhere)}get current(){return this.flocks.find(t=>t.id===this.currentId)}resolved(t){return T.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
|
-
<p class="launch-intro">${t.intro}</p>
|
|
3
|
-
<div id="bird-list"></div>
|
|
4
|
-
<div id="bird-fields" class="launch-fields">
|
|
5
|
-
<div id="bird-parameters" class="launch-parameters"></div>
|
|
6
|
-
<p id="bird-each" class="launch-intro" hidden></p>
|
|
7
|
-
<div id="bird-timeline"></div>
|
|
8
|
-
<p class="launch-intro">${t.timelineNote}</p>
|
|
9
|
-
<fieldset id="bird-path" class="launch-path">
|
|
10
|
-
<legend>${this.parameterTexts.pointOfThePath}</legend>
|
|
11
|
-
<div id="bird-point-parameters" class="launch-parameters"></div>
|
|
12
|
-
<button id="bird-point-delete" class="icon-btn" type="button" title="${t.deletePoint}" aria-label="${t.deletePoint}">${w.TRASH}</button>
|
|
13
|
-
</fieldset>
|
|
14
|
-
<p class="launch-intro">${t.derivedNote}</p>
|
|
15
|
-
</div>
|
|
16
|
-
</div>`,this.list=new M({header:this.element("bird-list"),body:this.element("bird-fields"),ids:{list:"bird-select",remove:"bird-delete",add:"bird-add"},onSelect:e=>this.show(e),onAdd:()=>this.addFlock(),onRemove:()=>this.deleteCurrent()}),this.list.setLabels({list:t.flock,remove:t.deleteFlock,add:t.addFlock,empty:t.none}),this.timeline=new I(this.element("bird-timeline"),e=>this.host.seekTo?.(e),{addKeyframeHere:t.addPointHere,keyframeHere:t.pointHere,zoomHint:t.zoomHint}),this.element("bird-point-delete").addEventListener("click",()=>this.removePoint())}show(t){this.messages&&(this.currentId=t,this.pointIndex=0,this.sync())}written(){const t=this.current;t&&this.list?.rename(t.id,this.labelOf(t)),this.syncPoint()}pathOf(t){return[...t?.path??[]].sort((e,i)=>e.t-i.t)}static MIN_POINTS=1;syncTimeline(){const t=this.current;if(!this.timeline||!t)return;const e=this.pathOf(t),i={id:"path",label:this.messages.path,color:f.PATH_COLOR,times:e.map(r=>r.t),active:!0,selectedTime:e[this.pointIndex]?.t,open:()=>this.selectPoint(this.pointIndex),pressed:(r,h)=>{const p=h===void 0?-1:this.pathOf(this.current).findIndex(d=>d.t===h);this.selectPoint(p>=0?p:this.pointIndex)},move:(r,h)=>this.movePoint(r,h),add:()=>this.addPointAt(this.host.currentTime?.()??0)},s=e[0]?.t??0,o=e[e.length-1]?.t??0,a=Math.max(500,(o-s)/10);this.timeline.show([i],this.host.duration?.()??o,this.host.currentTime?.()??0,{from:s-a,to:o+a})}syncPoint(t=!1){const e=this.pathOf(this.current);this.pointIndex=Math.max(0,Math.min(this.pointIndex,e.length-1)),this.element("bird-point-delete").disabled=e.length<=f.MIN_POINTS,this.pointForm?this.pointForm.sync(t):(this.pointForm=new O(this.element("bird-point-parameters"),this.language,"birdsPoint."),this.pointForm.show(this.resolved(n.WAYPOINT),new x(()=>this.pathOf(this.current)[this.pointIndex],i=>this.editPoint(this.pointIndex,i),void 0,this.host.positionPlace?.()),()=>{})),this.syncTimeline()}selectPoint(t){this.pointIndex=t;const e=this.pathOf(this.current)[t];e&&this.host.seekTo?.(e.t),this.syncPoint(!0)}editPoint(t,e){let i;this.editFlock(s=>{const o=this.pathOf(s);i={...o[t]},e(i),s.path=o.map((a,r)=>r===t?i:a).sort((a,r)=>a.t-r.t)}),i&&(this.pointIndex=this.current?.path.indexOf(i)??0),this.syncPoint()}movePoint(t,e){const i=this.pathOf(this.current).findIndex(s=>s.t===t);i<0||(this.editPoint(i,s=>{s.t=Math.round(e)}),this.syncPoint(!0))}addPointAt(t){const e=this.current;if(!e)return;const i=this.pathOf(e).findIndex(o=>Math.abs(o.t-t)<1);if(i>=0){this.selectPoint(i);return}const s=n.waypointAt(e,t);this.editFlock(o=>{o.path=[...this.pathOf(o),s].sort((a,r)=>a.t-r.t)}),this.selectPoint(this.current?.path.indexOf(s)??0)}removePoint(){const t=this.pathOf(this.current);if(t.length<=f.MIN_POINTS)return;const e=this.pointIndex;this.editFlock(i=>{i.path=t.filter((s,o)=>o!==e)}),this.syncPoint(!0)}editFlock(t){const e=this.current;if(!e)return;const i=structuredClone(e);t(i),i.formation&&i.formation.kind===void 0&&(Object.entries(i.formation).some(([a,r])=>a!=="kind"&&r!==void 0)?i.formation.kind=e.formation?.kind??((i.count??1)>1?"cluster":"single"):delete i.formation);const s=i.flight;if(s){if(s.kind===void 0)delete i.flight;else if(s.kind!=="flapping"){const o=e.flight?.kind!=="flapping"?e.flight:void 0,a=n.BURST;s.beats??=o?.beats??a.beats,s.glideS??=o?.glideS??a.glideS}}this.writeFlocks(this.flocks.map(o=>o===e?i:o)),this.host.changed()}frontOfObserver(){const t=this.host.sighting(),e=t.event?.place?.[0];if(e?.lat===void 0||e.lng===void 0)return;const i=t.observerTrack?.getInterpolatedPoseAt(this.host.currentTime?.()??0),s=111320,o=i?.lng!==void 0?(i.lng-e.lng)*s*Math.cos(e.lat*Math.PI/180):0,a=i?.lat!==void 0?(i.lat-e.lat)*s:0;return{eastM:o,northM:a,headingRad:(i?.headingDeg??0)*Math.PI/180}}addFlock(){const t=this.frontOfObserver();if(!t)return;let e=this.flocks.length+1;for(;this.flocks.some(a=>a.id===`birds-${e}`);)e++;const i=Math.round(this.host.currentTime?.()??0),s=(a,r,h)=>({t:a,eastM:Math.round(t.eastM+r*Math.sin(t.headingRad)+h*Math.cos(t.headingRad)),northM:Math.round(t.northM+r*Math.cos(t.headingRad)-h*Math.sin(t.headingRad)),altitudeM:60}),o={id:`birds-${e}`,species:"herring-gull",count:12,formation:{kind:"cluster"},path:[s(i,300,-120),s(i+2e4,300,120)],seed:e};this.writeFlocks([...this.flocks,o]),this.host.changed(),this.show(o.id)}deleteCurrent(){const t=this.current;t&&(this.currentId=void 0,this.writeFlocks(this.flocks.filter(e=>e!==t)),this.host.changed(),this.sync())}writeFlocks(t){const e=this.host.sighting(),i={...e.interpretation??{bodies:[]},birds:t.length>0?t:void 0};i.birds===void 0&&delete i.birds;const s=F.saysNothing(i,A.kinds());e.interpretation=s?void 0:i}labelOf(t){const e=this.host.said().read(t.title);return e?`${e} (${t.id})`:t.id}get flocks(){return this.host.sighting().interpretation?.birds??[]}element(t){return this.container.querySelector(`#${t}`)}}export{f as BirdEditor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ck as Le,cl as Q,cm as he,cn as Me,co as v,cp as de,bI as w,bL as pe,bv as F,cq as b,cf as U,c5 as Se,cr as ye,b3 as we,G as K,cs as be,V as C,Q as me,ct as Ne,D as ge,cu as Ie,cv as Oe,bf as V,cw as Ce,cx as Te,cy as Fe,cz as Pe,cA as He,bO as J,c8 as Re,cB as Z,cC as ke,cD as De,c1 as Ge,cE as X,cF as ve,a_ as Ee,bh as Ue,bg as G,cG as Ke,be as Be,cH as je,aY as Ve,cI as Xe,cJ as ze,cK as qe,bt as We,aV as z,b4 as Ye,b$ as Qe,cL as Je,cM as Ze,cN as $e,cO as en,cP as nn,cQ as tn,cR as xe,bU as sn,cg as ne,cS as te,cT as se,cU as ie,cV as re,cW as rn,cX as on,a$ as an,b0 as cn}from"./rr0-sighting-editor.mjs";function oe(f,n){if(n===Le)return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."),f;if(n===Q||n===he){let e=f.getIndex();if(e===null){const r=[],a=f.getAttribute("position");if(a!==void 0){for(let o=0;o<a.count;o++)r.push(o);f.setIndex(r),e=f.getIndex()}else return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."),f}const s=e.count-2,t=[];if(n===Q)for(let r=1;r<=s;r++)t.push(e.getX(0)),t.push(e.getX(r)),t.push(e.getX(r+1));else for(let r=0;r<s;r++)r%2===0?(t.push(e.getX(r)),t.push(e.getX(r+1)),t.push(e.getX(r+2))):(t.push(e.getX(r+2)),t.push(e.getX(r+1)),t.push(e.getX(r)));t.length/3!==s&&console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unable to generate correct amount of triangles.");const i=f.clone();return i.setIndex(t),i.clearGroups(),i}else return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:",n),f}class jn extends Me{constructor(n){super(n),this.dracoLoader=null,this.ktx2Loader=null,this.meshoptDecoder=null,this.pluginCallbacks=[],this.register(function(e){return new dn(e)}),this.register(function(e){return new pn(e)}),this.register(function(e){return new Ln(e)}),this.register(function(e){return new Mn(e)}),this.register(function(e){return new Sn(e)}),this.register(function(e){return new gn(e)}),this.register(function(e){return new Tn(e)}),this.register(function(e){return new Rn(e)}),this.register(function(e){return new En(e)}),this.register(function(e){return new hn(e)}),this.register(function(e){return new xn(e)}),this.register(function(e){return new mn(e)}),this.register(function(e){return new _n(e)}),this.register(function(e){return new An(e)}),this.register(function(e){return new ln(e)}),this.register(function(e){return new ae(e,g.EXT_MESHOPT_COMPRESSION)}),this.register(function(e){return new ae(e,g.KHR_MESHOPT_COMPRESSION)}),this.register(function(e){return new yn(e)})}load(n,e,s,t){const i=this;let r;if(this.resourcePath!=="")r=this.resourcePath;else if(this.path!==""){const c=v.extractUrlBase(n);r=v.resolveURL(c,this.path)}else r=v.extractUrlBase(n);this.manager.itemStart(n);const a=function(c){t?t(c):console.error(c),i.manager.itemError(n),i.manager.itemEnd(n)},o=new de(this.manager);o.setPath(this.path),o.setResponseType("arraybuffer"),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(n,function(c){try{i.parse(c,r,function(u){e(u),i.manager.itemEnd(n)},a)}catch(u){a(u)}},s,a)}setDRACOLoader(n){return this.dracoLoader=n,this}setKTX2Loader(n){return this.ktx2Loader=n,this}setMeshoptDecoder(n){return this.meshoptDecoder=n,this}register(n){return this.pluginCallbacks.indexOf(n)===-1&&this.pluginCallbacks.push(n),this}unregister(n){return this.pluginCallbacks.indexOf(n)!==-1&&this.pluginCallbacks.splice(this.pluginCallbacks.indexOf(n),1),this}parse(n,e,s,t){let i;const r={},a={},o=new TextDecoder;if(typeof n=="string")i=JSON.parse(n);else if(n instanceof ArrayBuffer)if(o.decode(new Uint8Array(n,0,4))===Ae){try{r[g.KHR_BINARY_GLTF]=new wn(n)}catch(l){t&&t(l);return}i=JSON.parse(r[g.KHR_BINARY_GLTF].content)}else i=JSON.parse(o.decode(n));else i=n;if(i.asset===void 0||i.asset.version[0]<2){t&&t(new Error("THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported."));return}const c=new Un(i,{path:e||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});c.fileLoader.setRequestHeader(this.requestHeader);for(let u=0;u<this.pluginCallbacks.length;u++){const l=this.pluginCallbacks[u](c);l.name||console.error("THREE.GLTFLoader: Invalid plugin found: missing name"),a[l.name]=l,r[l.name]=!0}if(i.extensionsUsed)for(let u=0;u<i.extensionsUsed.length;++u){const l=i.extensionsUsed[u],h=i.extensionsRequired||[];switch(l){case g.KHR_MATERIALS_UNLIT:r[l]=new fn;break;case g.KHR_DRACO_MESH_COMPRESSION:r[l]=new bn(i,this.dracoLoader);break;case g.KHR_TEXTURE_TRANSFORM:r[l]=new Nn;break;case g.KHR_MESH_QUANTIZATION:r[l]=new In;break;default:h.indexOf(l)>=0&&a[l]===void 0&&console.warn('THREE.GLTFLoader: Unknown extension "'+l+'".')}}c.setExtensions(r),c.setPlugins(a),c.parse(s,t)}parseAsync(n,e){const s=this;return new Promise(function(t,i){s.parse(n,e,t,i)})}}function un(){let f={};return{get:function(n){return f[n]},add:function(n,e){f[n]=e},remove:function(n){delete f[n]},removeAll:function(){f={}}}}function _(f,n,e){const s=f.json.materials[n];return s.extensions&&s.extensions[e]?s.extensions[e]:null}const g={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_DISPERSION:"KHR_materials_dispersion",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_IRIDESCENCE:"KHR_materials_iridescence",KHR_MATERIALS_ANISOTROPY:"KHR_materials_anisotropy",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",KHR_MATERIALS_EMISSIVE_STRENGTH:"KHR_materials_emissive_strength",EXT_MATERIALS_BUMP:"EXT_materials_bump",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_TEXTURE_AVIF:"EXT_texture_avif",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression",KHR_MESHOPT_COMPRESSION:"KHR_meshopt_compression",EXT_MESH_GPU_INSTANCING:"EXT_mesh_gpu_instancing"};class ln{constructor(n){this.parser=n,this.name=g.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const n=this.parser,e=this.parser.json.nodes||[];for(let s=0,t=e.length;s<t;s++){const i=e[s];i.extensions&&i.extensions[this.name]&&i.extensions[this.name].light!==void 0&&n._addNodeRef(this.cache,i.extensions[this.name].light)}}_loadLight(n){const e=this.parser,s="light:"+n;let t=e.cache.get(s);if(t)return t;const i=e.json,o=((i.extensions&&i.extensions[this.name]||{}).lights||[])[n];let c;const u=new F(16777215);o.color!==void 0&&u.setRGB(o.color[0],o.color[1],o.color[2],b);const l=o.range!==void 0?o.range:0;switch(o.type){case"directional":c=new we(u),c.target.position.set(0,0,-1),c.add(c.target);break;case"point":c=new ye(u),c.distance=l;break;case"spot":c=new Se(u),c.distance=l,o.spot=o.spot||{},o.spot.innerConeAngle=o.spot.innerConeAngle!==void 0?o.spot.innerConeAngle:0,o.spot.outerConeAngle=o.spot.outerConeAngle!==void 0?o.spot.outerConeAngle:Math.PI/4,c.angle=o.spot.outerConeAngle,c.penumbra=1-o.spot.innerConeAngle/o.spot.outerConeAngle,c.target.position.set(0,0,-1),c.add(c.target);break;default:throw new Error("THREE.GLTFLoader: Unexpected light type: "+o.type)}return c.position.set(0,0,0),y(c,o),o.intensity!==void 0&&(c.intensity=o.intensity),c.name=e.createUniqueName(o.name||"light_"+n),t=Promise.resolve(c),e.cache.add(s,t),t}getDependency(n,e){if(n==="light")return this._loadLight(e)}createNodeAttachment(n){const e=this,s=this.parser,i=s.json.nodes[n],a=(i.extensions&&i.extensions[this.name]||{}).light;return a===void 0?null:this._loadLight(a).then(function(o){return s._getNodeRef(e.cache,a,o)})}}class fn{constructor(){this.name=g.KHR_MATERIALS_UNLIT}getMaterialType(){return G}extendParams(n,e,s){const t=[];n.color=new F(1,1,1),n.opacity=1;const i=e.pbrMetallicRoughness;if(i){if(Array.isArray(i.baseColorFactor)){const r=i.baseColorFactor;n.color.setRGB(r[0],r[1],r[2],b),n.opacity=r[3]}i.baseColorTexture!==void 0&&t.push(s.assignTexture(n,"map",i.baseColorTexture,U))}return Promise.all(t)}}class hn{constructor(n){this.parser=n,this.name=g.KHR_MATERIALS_EMISSIVE_STRENGTH}extendMaterialParams(n,e){const s=_(this.parser,n,this.name);return s===null||s.emissiveStrength!==void 0&&(e.emissiveIntensity=s.emissiveStrength),Promise.resolve()}}class dn{constructor(n){this.parser=n,this.name=g.KHR_MATERIALS_CLEARCOAT}getMaterialType(n){return _(this.parser,n,this.name)!==null?w:null}extendMaterialParams(n,e){const s=_(this.parser,n,this.name);if(s===null)return Promise.resolve();const t=[];if(s.clearcoatFactor!==void 0&&(e.clearcoat=s.clearcoatFactor),s.clearcoatTexture!==void 0&&t.push(this.parser.assignTexture(e,"clearcoatMap",s.clearcoatTexture)),s.clearcoatRoughnessFactor!==void 0&&(e.clearcoatRoughness=s.clearcoatRoughnessFactor),s.clearcoatRoughnessTexture!==void 0&&t.push(this.parser.assignTexture(e,"clearcoatRoughnessMap",s.clearcoatRoughnessTexture)),s.clearcoatNormalTexture!==void 0&&(t.push(this.parser.assignTexture(e,"clearcoatNormalMap",s.clearcoatNormalTexture)),s.clearcoatNormalTexture.scale!==void 0)){const i=s.clearcoatNormalTexture.scale;e.clearcoatNormalScale=new pe(i,i)}return Promise.all(t)}}class pn{constructor(n){this.parser=n,this.name=g.KHR_MATERIALS_DISPERSION}getMaterialType(n){return _(this.parser,n,this.name)!==null?w:null}extendMaterialParams(n,e){const s=_(this.parser,n,this.name);return s===null||(e.dispersion=s.dispersion!==void 0?s.dispersion:0),Promise.resolve()}}class mn{constructor(n){this.parser=n,this.name=g.KHR_MATERIALS_IRIDESCENCE}getMaterialType(n){return _(this.parser,n,this.name)!==null?w:null}extendMaterialParams(n,e){const s=_(this.parser,n,this.name);if(s===null)return Promise.resolve();const t=[];return s.iridescenceFactor!==void 0&&(e.iridescence=s.iridescenceFactor),s.iridescenceTexture!==void 0&&t.push(this.parser.assignTexture(e,"iridescenceMap",s.iridescenceTexture)),s.iridescenceIor!==void 0&&(e.iridescenceIOR=s.iridescenceIor),e.iridescenceThicknessRange===void 0&&(e.iridescenceThicknessRange=[100,400]),s.iridescenceThicknessMinimum!==void 0&&(e.iridescenceThicknessRange[0]=s.iridescenceThicknessMinimum),s.iridescenceThicknessMaximum!==void 0&&(e.iridescenceThicknessRange[1]=s.iridescenceThicknessMaximum),s.iridescenceThicknessTexture!==void 0&&t.push(this.parser.assignTexture(e,"iridescenceThicknessMap",s.iridescenceThicknessTexture)),Promise.all(t)}}class gn{constructor(n){this.parser=n,this.name=g.KHR_MATERIALS_SHEEN}getMaterialType(n){return _(this.parser,n,this.name)!==null?w:null}extendMaterialParams(n,e){const s=_(this.parser,n,this.name);if(s===null)return Promise.resolve();const t=[];if(e.sheenColor=new F(0,0,0),e.sheenRoughness=0,e.sheen=1,s.sheenColorFactor!==void 0){const i=s.sheenColorFactor;e.sheenColor.setRGB(i[0],i[1],i[2],b)}return s.sheenRoughnessFactor!==void 0&&(e.sheenRoughness=s.sheenRoughnessFactor),s.sheenColorTexture!==void 0&&t.push(this.parser.assignTexture(e,"sheenColorMap",s.sheenColorTexture,U)),s.sheenRoughnessTexture!==void 0&&t.push(this.parser.assignTexture(e,"sheenRoughnessMap",s.sheenRoughnessTexture)),Promise.all(t)}}class Tn{constructor(n){this.parser=n,this.name=g.KHR_MATERIALS_TRANSMISSION}getMaterialType(n){return _(this.parser,n,this.name)!==null?w:null}extendMaterialParams(n,e){const s=_(this.parser,n,this.name);if(s===null)return Promise.resolve();const t=[];return s.transmissionFactor!==void 0&&(e.transmission=s.transmissionFactor),s.transmissionTexture!==void 0&&t.push(this.parser.assignTexture(e,"transmissionMap",s.transmissionTexture)),Promise.all(t)}}class Rn{constructor(n){this.parser=n,this.name=g.KHR_MATERIALS_VOLUME}getMaterialType(n){return _(this.parser,n,this.name)!==null?w:null}extendMaterialParams(n,e){const s=_(this.parser,n,this.name);if(s===null)return Promise.resolve();const t=[];e.thickness=s.thicknessFactor!==void 0?s.thicknessFactor:0,s.thicknessTexture!==void 0&&t.push(this.parser.assignTexture(e,"thicknessMap",s.thicknessTexture)),e.attenuationDistance=s.attenuationDistance||1/0;const i=s.attenuationColor||[1,1,1];return e.attenuationColor=new F().setRGB(i[0],i[1],i[2],b),Promise.all(t)}}class En{constructor(n){this.parser=n,this.name=g.KHR_MATERIALS_IOR}getMaterialType(n){return _(this.parser,n,this.name)!==null?w:null}extendMaterialParams(n,e){const s=_(this.parser,n,this.name);return s===null||(e.ior=s.ior!==void 0?s.ior:1.5,e.ior===0&&(e.ior=1e3)),Promise.resolve()}}class xn{constructor(n){this.parser=n,this.name=g.KHR_MATERIALS_SPECULAR}getMaterialType(n){return _(this.parser,n,this.name)!==null?w:null}extendMaterialParams(n,e){const s=_(this.parser,n,this.name);if(s===null)return Promise.resolve();const t=[];e.specularIntensity=s.specularFactor!==void 0?s.specularFactor:1,s.specularTexture!==void 0&&t.push(this.parser.assignTexture(e,"specularIntensityMap",s.specularTexture));const i=s.specularColorFactor||[1,1,1];return e.specularColor=new F().setRGB(i[0],i[1],i[2],b),s.specularColorTexture!==void 0&&t.push(this.parser.assignTexture(e,"specularColorMap",s.specularColorTexture,U)),Promise.all(t)}}class An{constructor(n){this.parser=n,this.name=g.EXT_MATERIALS_BUMP}getMaterialType(n){return _(this.parser,n,this.name)!==null?w:null}extendMaterialParams(n,e){const s=_(this.parser,n,this.name);if(s===null)return Promise.resolve();const t=[];return e.bumpScale=s.bumpFactor!==void 0?s.bumpFactor:1,s.bumpTexture!==void 0&&t.push(this.parser.assignTexture(e,"bumpMap",s.bumpTexture)),Promise.all(t)}}class _n{constructor(n){this.parser=n,this.name=g.KHR_MATERIALS_ANISOTROPY}getMaterialType(n){return _(this.parser,n,this.name)!==null?w:null}extendMaterialParams(n,e){const s=_(this.parser,n,this.name);if(s===null)return Promise.resolve();const t=[];return s.anisotropyStrength!==void 0&&(e.anisotropy=s.anisotropyStrength),s.anisotropyRotation!==void 0&&(e.anisotropyRotation=s.anisotropyRotation),s.anisotropyTexture!==void 0&&t.push(this.parser.assignTexture(e,"anisotropyMap",s.anisotropyTexture)),Promise.all(t)}}class Ln{constructor(n){this.parser=n,this.name=g.KHR_TEXTURE_BASISU}loadTexture(n){const e=this.parser,s=e.json,t=s.textures[n];if(!t.extensions||!t.extensions[this.name])return null;const i=t.extensions[this.name],r=e.options.ktx2Loader;if(!r){if(s.extensionsRequired&&s.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return e.loadTextureImage(n,i.source,r)}}class Mn{constructor(n){this.parser=n,this.name=g.EXT_TEXTURE_WEBP}loadTexture(n){const e=this.name,s=this.parser,t=s.json,i=t.textures[n];if(!i.extensions||!i.extensions[e])return null;const r=i.extensions[e],a=t.images[r.source];let o=s.textureLoader;if(a.uri){const c=s.options.manager.getHandler(a.uri);c!==null&&(o=c)}return s.loadTextureImage(n,r.source,o)}}class Sn{constructor(n){this.parser=n,this.name=g.EXT_TEXTURE_AVIF}loadTexture(n){const e=this.name,s=this.parser,t=s.json,i=t.textures[n];if(!i.extensions||!i.extensions[e])return null;const r=i.extensions[e],a=t.images[r.source];let o=s.textureLoader;if(a.uri){const c=s.options.manager.getHandler(a.uri);c!==null&&(o=c)}return s.loadTextureImage(n,r.source,o)}}class ae{constructor(n,e){this.name=e,this.parser=n}loadBufferView(n){const e=this.parser.json,s=e.bufferViews[n];if(s.extensions&&s.extensions[this.name]){const t=s.extensions[this.name],i=this.parser.getDependency("buffer",t.buffer),r=this.parser.options.meshoptDecoder;if(!r||!r.supported){if(e.extensionsRequired&&e.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return i.then(function(a){const o=t.byteOffset||0,c=t.byteLength||0,u=t.count,l=t.byteStride,h=new Uint8Array(a,o,c);return r.decodeGltfBufferAsync?r.decodeGltfBufferAsync(u,l,h,t.mode,t.filter).then(function(d){return d.buffer}):r.ready.then(function(){const d=new ArrayBuffer(u*l);return r.decodeGltfBuffer(new Uint8Array(d),u,l,h,t.mode,t.filter),d})})}else return null}}class yn{constructor(n){this.name=g.EXT_MESH_GPU_INSTANCING,this.parser=n}createNodeMesh(n){const e=this.parser.json,s=e.nodes[n];if(!s.extensions||!s.extensions[this.name]||s.mesh===void 0)return null;const t=e.meshes[s.mesh];for(const c of t.primitives)if(c.mode!==M.TRIANGLES&&c.mode!==M.TRIANGLE_STRIP&&c.mode!==M.TRIANGLE_FAN&&c.mode!==void 0)return null;const r=s.extensions[this.name].attributes,a=[],o={};for(const c in r)a.push(this.parser.getDependency("accessor",r[c]).then(u=>(o[c]=u,o[c])));return a.length<1?null:(a.push(this.parser.createNodeMesh(n)),Promise.all(a).then(c=>{const u=c.pop(),l=u.isGroup?u.children:[u],h=c[0].count,d=[];for(const p of l){const R=new K,m=new C,T=new me,A=new C(1,1,1),x=new be(p.geometry,p.material,h);for(let E=0;E<h;E++)o.TRANSLATION&&m.fromBufferAttribute(o.TRANSLATION,E),o.ROTATION&&T.fromBufferAttribute(o.ROTATION,E),o.SCALE&&A.fromBufferAttribute(o.SCALE,E),x.setMatrixAt(E,R.compose(m,T,A));for(const E in o)if(E==="_COLOR_0"){const L=o[E];x.instanceColor=new Ne(L.array,L.itemSize,L.normalized)}else E!=="TRANSLATION"&&E!=="ROTATION"&&E!=="SCALE"&&p.geometry.setAttribute(E,o[E]);ge.prototype.copy.call(x,p),this.parser.assignFinalMaterial(x),d.push(x)}return u.isGroup?(u.clear(),u.add(...d),u):d[0]}))}}const Ae="glTF",D=12,ce={JSON:1313821514,BIN:5130562};class wn{constructor(n){this.name=g.KHR_BINARY_GLTF,this.content=null,this.body=null;const e=new DataView(n,0,D),s=new TextDecoder;if(this.header={magic:s.decode(new Uint8Array(n.slice(0,4))),version:e.getUint32(4,!0),length:e.getUint32(8,!0)},this.header.magic!==Ae)throw new Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");if(this.header.version<2)throw new Error("THREE.GLTFLoader: Legacy binary file detected.");const t=this.header.length-D,i=new DataView(n,D);let r=0;for(;r<t;){const a=i.getUint32(r,!0);r+=4;const o=i.getUint32(r,!0);if(r+=4,o===ce.JSON){const c=new Uint8Array(n,D+r,a);this.content=s.decode(c)}else if(o===ce.BIN){const c=D+r;this.body=n.slice(c,c+a)}r+=a}if(this.content===null)throw new Error("THREE.GLTFLoader: JSON content not found.")}}class bn{constructor(n,e){if(!e)throw new Error("THREE.GLTFLoader: No DRACOLoader instance provided.");this.name=g.KHR_DRACO_MESH_COMPRESSION,this.json=n,this.dracoLoader=e,this.dracoLoader.preload()}decodePrimitive(n,e){const s=this.json,t=this.dracoLoader,i=n.extensions[this.name].bufferView,r=n.extensions[this.name].attributes,a={},o={},c={};for(const u in r){const l=$[u]||u.toLowerCase();a[l]=r[u]}for(const u in n.attributes){const l=$[u]||u.toLowerCase();if(r[u]!==void 0){const h=s.accessors[n.attributes[u]],d=H[h.componentType];c[l]=d.name,o[l]=h.normalized===!0}}return e.getDependency("bufferView",i).then(function(u){return new Promise(function(l,h){t.decodeDracoFile(u,function(d){for(const p in d.attributes){const R=d.attributes[p],m=o[p];m!==void 0&&(R.normalized=m)}l(d)},a,c,b,h)})})}}class Nn{constructor(){this.name=g.KHR_TEXTURE_TRANSFORM}extendTexture(n,e){return(e.texCoord===void 0||e.texCoord===n.channel)&&e.offset===void 0&&e.rotation===void 0&&e.scale===void 0||(n=n.clone(),e.texCoord!==void 0&&(n.channel=e.texCoord),e.offset!==void 0&&n.offset.fromArray(e.offset),e.rotation!==void 0&&(n.rotation=e.rotation),e.scale!==void 0&&n.repeat.fromArray(e.scale),n.needsUpdate=!0),n}}class In{constructor(){this.name=g.KHR_MESH_QUANTIZATION}}class _e extends on{constructor(n,e,s,t){super(n,e,s,t)}copySampleValue_(n){const e=this.resultBuffer,s=this.sampleValues,t=this.valueSize,i=n*t*3+t;for(let r=0;r!==t;r++)e[r]=s[i+r];return e}interpolate_(n,e,s,t){const i=this.resultBuffer,r=this.sampleValues,a=this.valueSize,o=a*2,c=a*3,u=t-e,l=(s-e)/u,h=l*l,d=h*l,p=n*c,R=p-c,m=-2*d+3*h,T=d-h,A=1-m,x=T-h+l;for(let E=0;E!==a;E++){const L=r[R+E+a],N=r[R+E+o]*u,S=r[p+E+a],k=r[p+E]*u;i[E]=A*L+x*N+m*S+T*k}return i}}const On=new me;class Cn extends _e{interpolate_(n,e,s,t){const i=super.interpolate_(n,e,s,t);return On.fromArray(i).normalize().toArray(i),i}}const M={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},H={5120:Int8Array,5121:Uint8Array,5122:Int16Array,5123:Uint16Array,5125:Uint32Array,5126:Float32Array},ue={9728:Re,9729:J,9984:He,9985:Pe,9986:Fe,9987:Te},le={33071:De,33648:ke,10497:Z},q={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},$={POSITION:"position",NORMAL:"normal",TANGENT:"tangent",TEXCOORD_0:"uv",TEXCOORD_1:"uv1",TEXCOORD_2:"uv2",TEXCOORD_3:"uv3",COLOR_0:"color",WEIGHTS_0:"skinWeight",JOINTS_0:"skinIndex"},I={scale:"scale",translation:"position",rotation:"quaternion",weights:"morphTargetInfluences"},Fn={CUBICSPLINE:void 0,LINEAR:xe,STEP:tn},W={OPAQUE:"OPAQUE",MASK:"MASK",BLEND:"BLEND"};function Pn(f){return f.DefaultMaterial===void 0&&(f.DefaultMaterial=new Ee({color:16777215,emissive:0,metalness:1,roughness:1,transparent:!1,depthTest:!0,side:rn})),f.DefaultMaterial}function O(f,n,e){for(const s in e.extensions)f[s]===void 0&&(n.userData.gltfExtensions=n.userData.gltfExtensions||{},n.userData.gltfExtensions[s]=e.extensions[s])}function y(f,n){n.extras!==void 0&&(typeof n.extras=="object"?Object.assign(f.userData,n.extras):console.warn("THREE.GLTFLoader: Ignoring primitive type .extras, "+n.extras))}function Hn(f,n,e){let s=!1,t=!1,i=!1;for(let c=0,u=n.length;c<u;c++){const l=n[c];if(l.POSITION!==void 0&&(s=!0),l.NORMAL!==void 0&&(t=!0),l.COLOR_0!==void 0&&(i=!0),s&&t&&i)break}if(!s&&!t&&!i)return Promise.resolve(f);const r=[],a=[],o=[];for(let c=0,u=n.length;c<u;c++){const l=n[c];if(s){const h=l.POSITION!==void 0?e.getDependency("accessor",l.POSITION):f.attributes.position;r.push(h)}if(t){const h=l.NORMAL!==void 0?e.getDependency("accessor",l.NORMAL):f.attributes.normal;a.push(h)}if(i){const h=l.COLOR_0!==void 0?e.getDependency("accessor",l.COLOR_0):f.attributes.color;o.push(h)}}return Promise.all([Promise.all(r),Promise.all(a),Promise.all(o)]).then(function(c){const u=c[0],l=c[1],h=c[2];return s&&(f.morphAttributes.position=u),t&&(f.morphAttributes.normal=l),i&&(f.morphAttributes.color=h),f.morphTargetsRelative=!0,f})}function kn(f,n){if(f.updateMorphTargets(),n.weights!==void 0)for(let e=0,s=n.weights.length;e<s;e++)f.morphTargetInfluences[e]=n.weights[e];if(n.extras&&Array.isArray(n.extras.targetNames)){const e=n.extras.targetNames;if(f.morphTargetInfluences.length===e.length){f.morphTargetDictionary={};for(let s=0,t=e.length;s<t;s++)f.morphTargetDictionary[e[s]]=s}else console.warn("THREE.GLTFLoader: Invalid extras.targetNames length. Ignoring names.")}}function Dn(f){let n;const e=f.extensions&&f.extensions[g.KHR_DRACO_MESH_COMPRESSION];if(e?n="draco:"+e.bufferView+":"+e.indices+":"+Y(e.attributes):n=f.indices+":"+Y(f.attributes)+":"+f.mode,f.targets!==void 0)for(let s=0,t=f.targets.length;s<t;s++)n+=":"+Y(f.targets[s]);return n}function Y(f){let n="";const e=Object.keys(f).sort();for(let s=0,t=e.length;s<t;s++)n+=e[s]+":"+f[e[s]]+";";return n}function ee(f){switch(f){case Int8Array:return 1/127;case Uint8Array:return 1/255;case Int16Array:return 1/32767;case Uint16Array:return 1/65535;default:throw new Error("THREE.GLTFLoader: Unsupported normalized accessor component type.")}}function Gn(f){return f.search(/\.jpe?g($|\?)/i)>0||f.search(/^data\:image\/jpeg/)===0?"image/jpeg":f.search(/\.webp($|\?)/i)>0||f.search(/^data\:image\/webp/)===0?"image/webp":f.search(/\.ktx2($|\?)/i)>0||f.search(/^data\:image\/ktx2/)===0?"image/ktx2":"image/png"}const vn=new K;class Un{constructor(n={},e={}){this.json=n,this.extensions={},this.plugins={},this.options=e,this.cache=new un,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let s=!1,t=-1,i=!1,r=-1;if(typeof navigator<"u"&&typeof navigator.userAgent<"u"){const a=navigator.userAgent;s=/^((?!chrome|android).)*safari/i.test(a)===!0;const o=a.match(/Version\/(\d+)/);t=s&&o?parseInt(o[1],10):-1,i=a.indexOf("Firefox")>-1,r=i?a.match(/Firefox\/([0-9]+)\./)[1]:-1}typeof createImageBitmap>"u"||s&&t<17||i&&r<98?this.textureLoader=new Ie(this.options.manager):this.textureLoader=new Oe(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new de(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),this.options.crossOrigin==="use-credentials"&&this.fileLoader.setWithCredentials(!0)}setExtensions(n){this.extensions=n}setPlugins(n){this.plugins=n}parse(n,e){const s=this,t=this.json,i=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(r){return r._markDefs&&r._markDefs()}),Promise.all(this._invokeAll(function(r){return r.beforeRoot&&r.beforeRoot()})).then(function(){return Promise.all([s.getDependencies("scene"),s.getDependencies("animation"),s.getDependencies("camera")])}).then(function(r){const a={scene:r[0][t.scene||0],scenes:r[0],animations:r[1],cameras:r[2],asset:t.asset,parser:s,userData:{}};return O(i,a,t),y(a,t),Promise.all(s._invokeAll(function(o){return o.afterRoot&&o.afterRoot(a)})).then(function(){for(const o of a.scenes)o.updateMatrixWorld();n(a)})}).catch(e)}_markDefs(){const n=this.json.nodes||[],e=this.json.skins||[],s=this.json.meshes||[];for(let t=0,i=e.length;t<i;t++){const r=e[t].joints;for(let a=0,o=r.length;a<o;a++)n[r[a]].isBone=!0}for(let t=0,i=n.length;t<i;t++){const r=n[t];r.mesh!==void 0&&(this._addNodeRef(this.meshCache,r.mesh),r.skin!==void 0&&(s[r.mesh].isSkinnedMesh=!0)),r.camera!==void 0&&this._addNodeRef(this.cameraCache,r.camera)}}_addNodeRef(n,e){e!==void 0&&(n.refs[e]===void 0&&(n.refs[e]=n.uses[e]=0),n.refs[e]++)}_getNodeRef(n,e,s){if(n.refs[e]<=1)return s;const t=s.clone(),i=(r,a)=>{const o=this.associations.get(r);o!=null&&this.associations.set(a,o);for(const[c,u]of r.children.entries())i(u,a.children[c])};return i(s,t),t.name+="_instance_"+n.uses[e]++,t}_invokeOne(n){const e=Object.values(this.plugins);e.push(this);for(let s=0;s<e.length;s++){const t=n(e[s]);if(t)return t}return null}_invokeAll(n){const e=Object.values(this.plugins);e.unshift(this);const s=[];for(let t=0;t<e.length;t++){const i=n(e[t]);i&&s.push(i)}return s}getDependency(n,e){const s=n+":"+e;let t=this.cache.get(s);if(!t){switch(n){case"scene":t=this.loadScene(e);break;case"node":t=this._invokeOne(function(i){return i.loadNode&&i.loadNode(e)});break;case"mesh":t=this._invokeOne(function(i){return i.loadMesh&&i.loadMesh(e)});break;case"accessor":t=this.loadAccessor(e);break;case"bufferView":t=this._invokeOne(function(i){return i.loadBufferView&&i.loadBufferView(e)});break;case"buffer":t=this.loadBuffer(e);break;case"material":t=this._invokeOne(function(i){return i.loadMaterial&&i.loadMaterial(e)});break;case"texture":t=this._invokeOne(function(i){return i.loadTexture&&i.loadTexture(e)});break;case"skin":t=this.loadSkin(e);break;case"animation":t=this._invokeOne(function(i){return i.loadAnimation&&i.loadAnimation(e)});break;case"camera":t=this.loadCamera(e);break;default:if(t=this._invokeOne(function(i){return i!=this&&i.getDependency&&i.getDependency(n,e)}),!t)throw new Error("Unknown type: "+n);break}this.cache.add(s,t)}return t}getDependencies(n){let e=this.cache.get(n);if(!e){const s=this,t=this.json[n+(n==="mesh"?"es":"s")]||[];e=Promise.all(t.map(function(i,r){return s.getDependency(n,r)})),this.cache.add(n,e)}return e}loadBuffer(n){const e=this.json.buffers[n],s=this.fileLoader;if(e.type&&e.type!=="arraybuffer")throw new Error("THREE.GLTFLoader: "+e.type+" buffer type is not supported.");if(e.uri===void 0&&n===0)return Promise.resolve(this.extensions[g.KHR_BINARY_GLTF].body);const t=this.options;return new Promise(function(i,r){s.load(v.resolveURL(e.uri,t.path),i,void 0,function(){r(new Error('THREE.GLTFLoader: Failed to load buffer "'+e.uri+'".'))})})}loadBufferView(n){const e=this.json.bufferViews[n];return this.getDependency("buffer",e.buffer).then(function(s){const t=e.byteLength||0,i=e.byteOffset||0;return s.slice(i,i+t)})}loadAccessor(n){const e=this,s=this.json,t=this.json.accessors[n];if(t.bufferView===void 0&&t.sparse===void 0){const r=q[t.type],a=H[t.componentType],o=t.normalized===!0,c=new a(t.count*r);return Promise.resolve(new V(c,r,o))}const i=[];return t.bufferView!==void 0?i.push(this.getDependency("bufferView",t.bufferView)):i.push(null),t.sparse!==void 0&&(i.push(this.getDependency("bufferView",t.sparse.indices.bufferView)),i.push(this.getDependency("bufferView",t.sparse.values.bufferView))),Promise.all(i).then(function(r){const a=r[0],o=q[t.type],c=H[t.componentType],u=c.BYTES_PER_ELEMENT,l=u*o,h=t.byteOffset||0,d=t.bufferView!==void 0?s.bufferViews[t.bufferView].byteStride:void 0,p=t.normalized===!0;let R,m;if(d&&d!==l){const T=Math.floor(h/d),A="InterleavedBuffer:"+t.bufferView+":"+t.componentType+":"+T+":"+t.count;let x=e.cache.get(A);x||(R=new c(a,T*d,t.count*d/u),x=new Ce(R,d/u),e.cache.add(A,x)),m=new sn(x,o,h%d/u,p)}else a===null?R=new c(t.count*o):R=new c(a,h,t.count*o),m=new V(R,o,p);if(t.sparse!==void 0){const T=q.SCALAR,A=H[t.sparse.indices.componentType],x=t.sparse.indices.byteOffset||0,E=t.sparse.values.byteOffset||0,L=new A(r[1],x,t.sparse.count*T),N=new c(r[2],E,t.sparse.count*o);a!==null&&(m=new V(m.array.slice(),m.itemSize,m.normalized)),m.normalized=!1;for(let S=0,k=L.length;S<k;S++){const P=L[S];if(m.setX(P,N[S*o]),o>=2&&m.setY(P,N[S*o+1]),o>=3&&m.setZ(P,N[S*o+2]),o>=4&&m.setW(P,N[S*o+3]),o>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}m.normalized=p}return m})}loadTexture(n){const e=this.json,s=this.options,i=e.textures[n].source,r=e.images[i];let a=this.textureLoader;if(r.uri){const o=s.manager.getHandler(r.uri);o!==null&&(a=o)}return this.loadTextureImage(n,i,a)}loadTextureImage(n,e,s){const t=this,i=this.json,r=i.textures[n],a=i.images[e],o=(a.uri||a.bufferView)+":"+r.sampler;if(this.textureCache[o])return this.textureCache[o];const c=this.loadImageSource(e,s).then(function(u){u.flipY=!1,u.name=r.name||a.name||"",u.name===""&&typeof a.uri=="string"&&a.uri.startsWith("data:image/")===!1&&(u.name=a.uri);const h=(i.samplers||{})[r.sampler]||{};return u.magFilter=ue[h.magFilter]||J,u.minFilter=ue[h.minFilter]||Te,u.wrapS=le[h.wrapS]||Z,u.wrapT=le[h.wrapT]||Z,u.generateMipmaps=!u.isCompressedTexture&&u.minFilter!==Re&&u.minFilter!==J,t.associations.set(u,{textures:n}),u}).catch(function(){return null});return this.textureCache[o]=c,c}loadImageSource(n,e){const s=this,t=this.json,i=this.options;if(this.sourceCache[n]!==void 0)return this.sourceCache[n].then(l=>l.clone());const r=t.images[n],a=self.URL||self.webkitURL;let o=r.uri||"",c=!1;if(r.bufferView!==void 0)o=s.getDependency("bufferView",r.bufferView).then(function(l){c=!0;const h=new Blob([l],{type:r.mimeType});return o=a.createObjectURL(h),o});else if(r.uri===void 0)throw new Error("THREE.GLTFLoader: Image "+n+" is missing URI and bufferView");const u=Promise.resolve(o).then(function(l){return new Promise(function(h,d){let p=h;e.isImageBitmapLoader===!0&&(p=function(R){const m=new ne(R);m.needsUpdate=!0,h(m)}),e.load(v.resolveURL(l,i.path),p,void 0,d)})}).then(function(l){return c===!0&&a.revokeObjectURL(o),y(l,r),l.userData.mimeType=r.mimeType||Gn(r.uri),l}).catch(function(l){throw console.error("THREE.GLTFLoader: Couldn't load texture",o),l});return this.sourceCache[n]=u,u}assignTexture(n,e,s,t){const i=this;return this.getDependency("texture",s.index).then(function(r){if(!r)return null;if(s.texCoord!==void 0&&s.texCoord>0&&(r=r.clone(),r.channel=s.texCoord),i.extensions[g.KHR_TEXTURE_TRANSFORM]){const a=s.extensions!==void 0?s.extensions[g.KHR_TEXTURE_TRANSFORM]:void 0;if(a){const o=i.associations.get(r);r=i.extensions[g.KHR_TEXTURE_TRANSFORM].extendTexture(r,a),i.associations.set(r,o)}}return t!==void 0&&(r.colorSpace=t),n[e]=r,r})}assignFinalMaterial(n){const e=n.geometry;let s=n.material;const t=e.attributes.tangent===void 0,i=e.attributes.color!==void 0,r=e.attributes.normal===void 0;if(n.isPoints){const a="PointsMaterial:"+s.uuid;let o=this.cache.get(a);o||(o=new Ge,X.prototype.copy.call(o,s),o.color.copy(s.color),o.map=s.map,o.sizeAttenuation=!1,this.cache.add(a,o)),s=o}else if(n.isLine){const a="LineBasicMaterial:"+s.uuid;let o=this.cache.get(a);o||(o=new ve,X.prototype.copy.call(o,s),o.color.copy(s.color),o.map=s.map,this.cache.add(a,o)),s=o}if(t||i||r){let a="ClonedMaterial:"+s.uuid+":";t&&(a+="derivative-tangents:"),i&&(a+="vertex-colors:"),r&&(a+="flat-shading:");let o=this.cache.get(a);o||(o=s.clone(),i&&(o.vertexColors=!0),r&&(o.flatShading=!0),t&&(o.normalScale&&(o.normalScale.y*=-1),o.clearcoatNormalScale&&(o.clearcoatNormalScale.y*=-1)),this.cache.add(a,o),this.associations.set(o,this.associations.get(s))),s=o}n.material=s}getMaterialType(){return Ee}loadMaterial(n){const e=this,s=this.json,t=this.extensions,i=s.materials[n];let r;const a={},o=i.extensions||{},c=[];if(o[g.KHR_MATERIALS_UNLIT]){const l=t[g.KHR_MATERIALS_UNLIT];r=l.getMaterialType(),c.push(l.extendParams(a,i,e))}else{const l=i.pbrMetallicRoughness||{};if(a.color=new F(1,1,1),a.opacity=1,Array.isArray(l.baseColorFactor)){const h=l.baseColorFactor;a.color.setRGB(h[0],h[1],h[2],b),a.opacity=h[3]}l.baseColorTexture!==void 0&&c.push(e.assignTexture(a,"map",l.baseColorTexture,U)),a.metalness=l.metallicFactor!==void 0?l.metallicFactor:1,a.roughness=l.roughnessFactor!==void 0?l.roughnessFactor:1,l.metallicRoughnessTexture!==void 0&&(c.push(e.assignTexture(a,"metalnessMap",l.metallicRoughnessTexture)),c.push(e.assignTexture(a,"roughnessMap",l.metallicRoughnessTexture))),r=this._invokeOne(function(h){return h.getMaterialType&&h.getMaterialType(n)}),c.push(Promise.all(this._invokeAll(function(h){return h.extendMaterialParams&&h.extendMaterialParams(n,a)})))}i.doubleSided===!0&&(a.side=Ue);const u=i.alphaMode||W.OPAQUE;if(u===W.BLEND?(a.transparent=!0,a.depthWrite=!1):(a.transparent=!1,u===W.MASK&&(a.alphaTest=i.alphaCutoff!==void 0?i.alphaCutoff:.5)),i.normalTexture!==void 0&&r!==G&&(c.push(e.assignTexture(a,"normalMap",i.normalTexture)),a.normalScale=new pe(1,1),i.normalTexture.scale!==void 0)){const l=i.normalTexture.scale;a.normalScale.set(l,l)}if(i.occlusionTexture!==void 0&&r!==G&&(c.push(e.assignTexture(a,"aoMap",i.occlusionTexture)),i.occlusionTexture.strength!==void 0&&(a.aoMapIntensity=i.occlusionTexture.strength)),i.emissiveFactor!==void 0&&r!==G){const l=i.emissiveFactor;a.emissive=new F().setRGB(l[0],l[1],l[2],b)}return i.emissiveTexture!==void 0&&r!==G&&c.push(e.assignTexture(a,"emissiveMap",i.emissiveTexture,U)),Promise.all(c).then(function(){const l=new r(a);return i.name&&(l.name=i.name),y(l,i),e.associations.set(l,{materials:n}),i.extensions&&O(t,l,i),l})}createUniqueName(n){const e=Ke.sanitizeNodeName(n||"");return e in this.nodeNamesUsed?e+"_"+ ++this.nodeNamesUsed[e]:(this.nodeNamesUsed[e]=0,e)}loadGeometries(n){const e=this,s=this.extensions,t=this.primitiveCache;function i(a){return s[g.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(a,e).then(function(o){return fe(o,a,e)})}const r=[];for(let a=0,o=n.length;a<o;a++){const c=n[a],u=Dn(c),l=t[u];if(l)r.push(l.promise);else{let h;c.extensions&&c.extensions[g.KHR_DRACO_MESH_COMPRESSION]?h=i(c):h=fe(new Be,c,e),t[u]={primitive:c,promise:h},r.push(h)}}return Promise.all(r)}loadMesh(n){const e=this,s=this.json,t=this.extensions,i=s.meshes[n],r=i.primitives,a=[];for(let o=0,c=r.length;o<c;o++){const u=r[o].material===void 0?Pn(this.cache):this.getDependency("material",r[o].material);a.push(u)}return a.push(e.loadGeometries(r)),Promise.all(a).then(function(o){const c=o.slice(0,o.length-1),u=o[o.length-1],l=[];for(let d=0,p=u.length;d<p;d++){const R=u[d],m=r[d];let T;const A=c[d];if(m.mode===M.TRIANGLES||m.mode===M.TRIANGLE_STRIP||m.mode===M.TRIANGLE_FAN||m.mode===void 0)T=i.isSkinnedMesh===!0?new je(R,A):new Ve(R,A),T.isSkinnedMesh===!0&&T.normalizeSkinWeights(),m.mode===M.TRIANGLE_STRIP?T.geometry=oe(T.geometry,he):m.mode===M.TRIANGLE_FAN&&(T.geometry=oe(T.geometry,Q));else if(m.mode===M.LINES)T=new Xe(R,A);else if(m.mode===M.LINE_STRIP)T=new ze(R,A);else if(m.mode===M.LINE_LOOP)T=new qe(R,A);else if(m.mode===M.POINTS)T=new We(R,A);else throw new Error("THREE.GLTFLoader: Primitive mode unsupported: "+m.mode);Object.keys(T.geometry.morphAttributes).length>0&&kn(T,i),T.name=e.createUniqueName(i.name||"mesh_"+n),y(T,i),m.extensions&&O(t,T,m),e.assignFinalMaterial(T),l.push(T)}for(let d=0,p=l.length;d<p;d++)e.associations.set(l[d],{meshes:n,primitives:d});if(l.length===1)return i.extensions&&O(t,l[0],i),l[0];const h=new z;i.extensions&&O(t,h,i),e.associations.set(h,{meshes:n});for(let d=0,p=l.length;d<p;d++)h.add(l[d]);return h})}loadCamera(n){let e;const s=this.json.cameras[n],t=s[s.type];if(!t){console.warn("THREE.GLTFLoader: Missing camera parameters.");return}return s.type==="perspective"?e=new Ye(Qe.radToDeg(t.yfov),t.aspectRatio||1,t.znear||1,t.zfar||2e6):s.type==="orthographic"&&(e=new Je(-t.xmag,t.xmag,t.ymag,-t.ymag,t.znear,t.zfar)),s.name&&(e.name=this.createUniqueName(s.name)),y(e,s),Promise.resolve(e)}loadSkin(n){const e=this.json.skins[n],s=[];for(let t=0,i=e.joints.length;t<i;t++)s.push(this._loadNodeShallow(e.joints[t]));return e.inverseBindMatrices!==void 0?s.push(this.getDependency("accessor",e.inverseBindMatrices)):s.push(null),Promise.all(s).then(function(t){const i=t.pop(),r=t,a=[],o=[];for(let c=0,u=r.length;c<u;c++){const l=r[c];if(l){a.push(l);const h=new K;i!==null&&h.fromArray(i.array,c*16),o.push(h)}else console.warn('THREE.GLTFLoader: Joint "%s" could not be found.',e.joints[c])}return new Ze(a,o)})}loadAnimation(n){const e=this.json,s=this,t=e.animations[n],i=t.name?t.name:"animation_"+n,r=[],a=[],o=[],c=[],u=[];for(let l=0,h=t.channels.length;l<h;l++){const d=t.channels[l],p=t.samplers[d.sampler],R=d.target,m=R.node,T=t.parameters!==void 0?t.parameters[p.input]:p.input,A=t.parameters!==void 0?t.parameters[p.output]:p.output;R.node!==void 0&&(r.push(this.getDependency("node",m)),a.push(this.getDependency("accessor",T)),o.push(this.getDependency("accessor",A)),c.push(p),u.push(R))}return Promise.all([Promise.all(r),Promise.all(a),Promise.all(o),Promise.all(c),Promise.all(u)]).then(function(l){const h=l[0],d=l[1],p=l[2],R=l[3],m=l[4],T=[];for(let x=0,E=h.length;x<E;x++){const L=h[x],N=d[x],S=p[x],k=R[x],P=m[x];if(L===void 0)continue;L.updateMatrix&&L.updateMatrix();const B=s._createAnimationTracks(L,N,S,k,P);if(B)for(let j=0;j<B.length;j++)T.push(B[j])}const A=new $e(i,void 0,T);return y(A,t),A})}createNodeMesh(n){const e=this.json,s=this,t=e.nodes[n];return t.mesh===void 0?null:s.getDependency("mesh",t.mesh).then(function(i){const r=s._getNodeRef(s.meshCache,t.mesh,i);return t.weights!==void 0&&r.traverse(function(a){if(a.isMesh)for(let o=0,c=t.weights.length;o<c;o++)a.morphTargetInfluences[o]=t.weights[o]}),r})}loadNode(n){const e=this.json,s=this,t=e.nodes[n],i=s._loadNodeShallow(n),r=[],a=t.children||[];for(let c=0,u=a.length;c<u;c++)r.push(s.getDependency("node",a[c]));const o=t.skin===void 0?Promise.resolve(null):s.getDependency("skin",t.skin);return Promise.all([i,Promise.all(r),o]).then(function(c){const u=c[0],l=c[1],h=c[2];h!==null&&u.traverse(function(d){d.isSkinnedMesh&&d.bind(h,vn)});for(let d=0,p=l.length;d<p;d++)u.add(l[d]);if(u.userData.pivot!==void 0&&l.length>0){const d=u.userData.pivot,p=l[0];u.pivot=new C().fromArray(d),u.position.x-=d[0],u.position.y-=d[1],u.position.z-=d[2],p.position.set(0,0,0),delete u.userData.pivot}return u})}_loadNodeShallow(n){const e=this.json,s=this.extensions,t=this;if(this.nodeCache[n]!==void 0)return this.nodeCache[n];const i=e.nodes[n],r=i.name?t.createUniqueName(i.name):"",a=[],o=t._invokeOne(function(c){return c.createNodeMesh&&c.createNodeMesh(n)});return o&&a.push(o),i.camera!==void 0&&a.push(t.getDependency("camera",i.camera).then(function(c){return t._getNodeRef(t.cameraCache,i.camera,c)})),t._invokeAll(function(c){return c.createNodeAttachment&&c.createNodeAttachment(n)}).forEach(function(c){a.push(c)}),this.nodeCache[n]=Promise.all(a).then(function(c){let u;if(i.isBone===!0?u=new en:c.length>1?u=new z:c.length===1?u=c[0]:u=new ge,u!==c[0])for(let l=0,h=c.length;l<h;l++)u.add(c[l]);if(i.name&&(u.userData.name=i.name,u.name=r),y(u,i),i.extensions&&O(s,u,i),i.matrix!==void 0){const l=new K;l.fromArray(i.matrix),u.applyMatrix4(l)}else i.translation!==void 0&&u.position.fromArray(i.translation),i.rotation!==void 0&&u.quaternion.fromArray(i.rotation),i.scale!==void 0&&u.scale.fromArray(i.scale);if(!t.associations.has(u))t.associations.set(u,{});else if(i.mesh!==void 0&&t.meshCache.refs[i.mesh]>1){const l=t.associations.get(u);t.associations.set(u,{...l})}return t.associations.get(u).nodes=n,u}),this.nodeCache[n]}loadScene(n){const e=this.extensions,s=this.json.scenes[n],t=this,i=new z;s.name&&(i.name=t.createUniqueName(s.name)),y(i,s),s.extensions&&O(e,i,s);const r=s.nodes||[],a=[];for(let o=0,c=r.length;o<c;o++)a.push(t.getDependency("node",r[o]));return Promise.all(a).then(function(o){for(let u=0,l=o.length;u<l;u++){const h=o[u];h.parent!==null?i.add(nn(h)):i.add(h)}const c=u=>{const l=new Map;for(const[h,d]of t.associations)(h instanceof X||h instanceof ne)&&l.set(h,d);return u.traverse(h=>{const d=t.associations.get(h);d!=null&&l.set(h,d)}),l};return t.associations=c(i),i})}_createAnimationTracks(n,e,s,t,i){const r=[],a=n.name?n.name:n.uuid,o=[];function c(d){d.morphTargetInfluences&&o.push(d.name?d.name:d.uuid)}I[i.path]===I.weights?(c(n),n.isGroup&&n.children.forEach(c)):o.push(a);let u;switch(I[i.path]){case I.weights:u=se;break;case I.rotation:u=ie;break;case I.translation:case I.scale:u=te;break;default:switch(s.itemSize){case 1:u=se;break;case 2:case 3:default:u=te;break}break}const l=t.interpolation!==void 0?Fn[t.interpolation]:xe,h=this._getArrayFromAccessor(s);for(let d=0,p=o.length;d<p;d++){const R=new u(o[d]+"."+I[i.path],e.array,h,l);t.interpolation==="CUBICSPLINE"&&this._createCubicSplineTrackInterpolant(R),r.push(R)}return r}_getArrayFromAccessor(n){let e=n.array;if(n.normalized){const s=ee(e.constructor),t=new Float32Array(e.length);for(let i=0,r=e.length;i<r;i++)t[i]=e[i]*s;e=t}return e}_createCubicSplineTrackInterpolant(n){n.createInterpolant=function(s){const t=this instanceof ie?Cn:_e;return new t(this.times,this.values,this.getValueSize()/3,s)},n.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline=!0}}function Kn(f,n,e){const s=n.attributes,t=new an;if(s.POSITION!==void 0){const a=e.json.accessors[s.POSITION],o=a.min,c=a.max;if(o!==void 0&&c!==void 0){if(t.set(new C(o[0],o[1],o[2]),new C(c[0],c[1],c[2])),a.normalized){const u=ee(H[a.componentType]);t.min.multiplyScalar(u),t.max.multiplyScalar(u)}}else{console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.");return}}else return;const i=n.targets;if(i!==void 0){const a=new C,o=new C;for(let c=0,u=i.length;c<u;c++){const l=i[c];if(l.POSITION!==void 0){const h=e.json.accessors[l.POSITION],d=h.min,p=h.max;if(d!==void 0&&p!==void 0){if(o.setX(Math.max(Math.abs(d[0]),Math.abs(p[0]))),o.setY(Math.max(Math.abs(d[1]),Math.abs(p[1]))),o.setZ(Math.max(Math.abs(d[2]),Math.abs(p[2]))),h.normalized){const R=ee(H[h.componentType]);o.multiplyScalar(R)}a.max(o)}else console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.")}}t.expandByVector(a)}f.boundingBox=t;const r=new cn;t.getCenter(r.center),r.radius=t.min.distanceTo(t.max)/2,f.boundingSphere=r}function fe(f,n,e){const s=n.attributes,t=[];function i(r,a){return e.getDependency("accessor",r).then(function(o){f.setAttribute(a,o)})}for(const r in s){const a=$[r]||r.toLowerCase();a in f.attributes||t.push(i(s[r],a))}if(n.indices!==void 0&&!f.index){const r=e.getDependency("accessor",n.indices).then(function(a){f.setIndex(a)});t.push(r)}return re.workingColorSpace!==b&&"COLOR_0"in s&&console.warn(`THREE.GLTFLoader: Converting vertex colors from "srgb-linear" to "${re.workingColorSpace}" not supported.`),y(f,n),Kn(f,n,e),Promise.all(t).then(function(){return n.targets!==void 0?Hn(f,n.targets,e):f})}export{jn as GLTFLoader};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{K as L,B as v,L as k}from"./rr0-sighting-editor.mjs";const b=Math.PI/180;class l{static SIGHT_LINE_M=5e3;static FLAT={heightAt:()=>0};static of(n,t,e){return[...l.observer(n,t),...l.sightLines(n,t,e),...l.bodies(n,t,e),...l.traces(n,t,e)]}static observer(n,t){const e=[];for(const r of n.observerTrack.allKeyframes){const s=L(n,r.t);if(s?.lat===void 0||s.lng===void 0)continue;const d=s.elevationM??0;e.push({t:r.t,at:{lat:s.lat,lng:s.lng,altM:d+v.EYE_HEIGHT_M},...s.headingDeg===void 0?{}:{headingDeg:s.headingDeg},elevationM:d})}if(e.length===0)return[];const o=e[0],a=[{group:"observer",groupName:t.folderObserver,name:l.fill(t.observerPoint,{s:l.seconds(o.t)}),note:l.fill(t.observerNote,{elevation:l.round(o.elevationM,1),heading:o.headingDeg===void 0?"—":l.round(o.headingDeg,0)}),kind:"point",points:[o.at],heights:"observer-ground"}];return e.some(r=>r.at.lat!==o.at.lat||r.at.lng!==o.at.lng)&&a.push({group:"observer",groupName:t.folderObserver,name:t.observerPath,kind:"line",points:e.map(r=>r.at),heights:"observer-ground"}),a}static sightLines(n,t,e){const o=[];for(const a of n.timeline.allKeyframes){const i=L(n,a.t);if(i?.lat===void 0||i.lng===void 0)continue;const r={lat:i.lat,lng:i.lng,altM:(i.elevationM??0)+v.EYE_HEIGHT_M};for(const s of a.shapes){const d=s.shape.aim;d&&o.push({group:"sight-line",groupName:t.folderSightLines,name:l.fill(t.sightLine,{what:l.nameOf(e.read(s.shape.title),s.sourceId,t),s:l.seconds(a.t)}),note:l.fill(t.sightLineNote,{azimuth:l.round(d.azimuthDeg,1),altitude:l.round(d.altitudeDeg,1),km:l.round(l.SIGHT_LINE_M/1e3,0)}),kind:"line",points:[r,l.along(r,d.azimuthDeg,d.altitudeDeg)],heights:"observer-ground"})}}return o}static along(n,t,e){const o=l.SIGHT_LINE_M*Math.cos(e*b),a=k.toGeo({eastM:Math.sin(t*b)*o,northM:Math.cos(t*b)*o},n);return{lat:a.lat,lng:a.lng,altM:n.altM+l.SIGHT_LINE_M*Math.sin(e*b)}}static bodies(n,t,e){const o=n.interpretation?.bodies??[],a=L(n,0);if(o.length===0||a?.lat===void 0||a.lng===void 0)return[];const i={lat:a.lat,lng:a.lng},r=[];for(const s of o){const d=new v(s,l.FLAT,h=>v.eyeOf(n,h,l.FLAT)),f=[];for(const h of[...s.track].sort((c,m)=>c.t-m.t)){const c=d.at(h.t);if(!c)continue;const m=k.toGeo({eastM:c.eastM,northM:c.northM},i),u={lat:m.lat,lng:m.lng,altM:c.upM},M=f[f.length-1];M&&M.lat===u.lat&&M.lng===u.lng&&M.altM===u.altM||f.push(u)}if(f.length===0)continue;const y=l.nameOf(e.read(s.title),s.id,t);r.push({group:"body",groupName:t.folderBodies,name:l.fill(f.length===1?t.bodyPoint:t.bodyPath,{what:y}),note:t.bodyNote,kind:f.length===1?"point":"line",points:f,heights:"observer-ground"})}return r}static traces(n,t,e){return n.traces.map(o=>({group:"trace",groupName:t.folderTraces,name:e.read(o.title)??o.id,...e.read(o.source)?{note:e.read(o.source)}:{},kind:o.kind,points:o.points.map(a=>({lat:a.lat,lng:a.lng,altM:a.altM??0})),heights:o.altitude??"ground",...o.color?{color:o.color}:{}}))}static nameOf(n,t,e){return n&&n.trim()?n.trim():l.fill(e.unnamed,{id:t})}static seconds(n){return l.round(n/1e3,1)}static round(n,t){const e=10**t;return String(Math.round(n*e)/e)}static fill(n,t){return Object.entries(t).reduce((e,[o,a])=>e.replaceAll(`{${o}}`,a),n)}}export{l as G};
|