@rr0/ufoathome 0.163.2 → 0.165.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_es-ypa0EDh9.js +1 -0
- package/dist-embed-interview/InterviewMessages_fr-OCQdwn9j.js +1 -0
- package/dist-embed-interview/InterviewMessages_it-awuOqf5v.js +1 -0
- package/dist-embed-interview/rr0-interview.mjs +2 -2
- package/dist-embed-scene/{AdsbLolArchiveProvider-CO4IRthj.js → AdsbLolArchiveProvider-Cea0LAnZ.js} +1 -1
- package/dist-embed-scene/BeamEditor-DcUBLvPh.js +30 -0
- package/dist-embed-scene/BeamEditorMessages_en-DDvPWAdd.js +1 -0
- package/dist-embed-scene/BeamEditorMessages_es-BhCkhUkN.js +1 -0
- package/dist-embed-scene/BeamEditorMessages_fr-CtX6uP-x.js +1 -0
- package/dist-embed-scene/BeamEditorMessages_it-DVweRQFi.js +1 -0
- package/dist-embed-scene/BeamSystem-B80EaJKx.js +1 -0
- package/dist-embed-scene/{ContrailSystem-GO0Hkyj3.js → ContrailSystem-CcDlnjiD.js} +1 -1
- package/dist-embed-scene/GLTFLoader-YecOnQON.js +1 -0
- package/dist-embed-scene/{HeadlightSystem-DNMtQJ-Z.js → HeadlightSystem-B0Ubhwxs.js} +1 -1
- package/dist-embed-scene/LanternEditor-DQ9Y_eBl.js +9 -0
- package/{dist-embed-sighting-editor/LanternEditorMessages_en-3XzIx2c4.js → dist-embed-scene/LanternEditorMessages_en-DaT3UNfD.js} +1 -1
- package/{dist-embed-sighting-editor/LanternEditorMessages_es-BwzbSSd3.js → dist-embed-scene/LanternEditorMessages_es-TDV5lKeJ.js} +1 -1
- package/{dist-embed-sighting-editor/LanternEditorMessages_fr-Cf444dJM.js → dist-embed-scene/LanternEditorMessages_fr-9mByTFMG.js} +1 -1
- package/{dist-embed-sighting-editor/LanternEditorMessages_it-Bhk0A4Ug.js → dist-embed-scene/LanternEditorMessages_it-MRkJnDQp.js} +1 -1
- package/dist-embed-scene/LaserBeam-DXzWB-xk.js +1 -0
- package/dist-embed-scene/LaunchEditor-Csb2Pfq3.js +22 -0
- package/dist-embed-scene/LaunchEditorMessages_en-BnzNAYW9.js +1 -0
- package/dist-embed-scene/LaunchEditorMessages_es-BE0dEl7I.js +1 -0
- package/dist-embed-scene/LaunchEditorMessages_fr-Ds_VOB8c.js +1 -0
- package/dist-embed-scene/LaunchEditorMessages_it-DPQaR8HY.js +1 -0
- package/dist-embed-scene/LaunchPlume-DwOSrKP_.js +1 -0
- package/dist-embed-scene/LaunchSimulation-ClGdZJHr.js +1 -0
- package/dist-embed-scene/ModuleSession-DAQNvnRi.js +3 -0
- package/dist-embed-scene/ModuleThree-Cozd8KlK.js +1 -0
- package/dist-embed-scene/ParameterForm-D0GvLmqx.js +85 -0
- package/dist-embed-scene/{RailwaySystem-1yA_UYdB.js → RailwaySystem-DZQr_rS_.js} +1 -1
- package/dist-embed-scene/ReentryEditor-AsKtWLMw.js +27 -0
- package/dist-embed-scene/ReentryEditorMessages_en-O-YSmHxv.js +1 -0
- package/dist-embed-scene/ReentryEditorMessages_es-CvO9Jwz5.js +1 -0
- package/dist-embed-scene/ReentryEditorMessages_fr-xuC-qZ6M.js +1 -0
- package/dist-embed-scene/ReentryEditorMessages_it-B7vyCX9o.js +1 -0
- package/dist-embed-scene/ReentrySimulation-rnJU2x1Y.js +1 -0
- package/dist-embed-scene/ReferenceSystem-BgT1nVgA.js +1 -0
- package/dist-embed-scene/SceneNames_es-DL0IWHOw.js +1 -0
- package/dist-embed-scene/SceneNames_fr-B2NX5JJO.js +1 -0
- package/dist-embed-scene/SceneNames_it-wq6fqU10.js +1 -0
- package/dist-embed-scene/TimelineTracks-Bv2FX3_W.js +35 -0
- package/dist-embed-scene/{TraceSystem-B9WBM9ut.js → TraceSystem-D7pxye9d.js} +1 -1
- package/dist-embed-scene/UfoMessages_es-BxNc9t8X.js +1 -0
- package/dist-embed-scene/UfoMessages_fr-DnD6eSjQ.js +1 -0
- package/dist-embed-scene/UfoMessages_it-BubvnWTa.js +1 -0
- package/dist-embed-scene/WaterSystem-DI_NBDfH.js +1 -0
- package/dist-embed-scene/rr0-scene.mjs +348 -348
- package/dist-embed-scene/{sightingSchema-CnDwuCov.js → sightingSchema-CKUYrwgu.js} +1 -1
- package/dist-embed-scene/trafficRuntime-C3sA3Jg_.js +2 -0
- package/dist-embed-sighting/{AdsbLolArchiveProvider-CX1R8zJF.js → AdsbLolArchiveProvider-BGg8e-TS.js} +1 -1
- package/dist-embed-sighting/{BallesterGuaspAssessor-CCjRjJck.js → BallesterGuaspAssessor-DHpHbF6s.js} +1 -1
- package/dist-embed-sighting/BeamEditor-KLBjeTRU.js +30 -0
- package/dist-embed-sighting/BeamEditorMessages_en-DDvPWAdd.js +1 -0
- package/dist-embed-sighting/BeamEditorMessages_es-BhCkhUkN.js +1 -0
- package/dist-embed-sighting/BeamEditorMessages_fr-CtX6uP-x.js +1 -0
- package/dist-embed-sighting/BeamEditorMessages_it-DVweRQFi.js +1 -0
- package/dist-embed-sighting/BeamSystem-C6YXI9Da.js +1 -0
- package/dist-embed-sighting/ContrailSystem-BUKo3qVd.js +1 -0
- package/dist-embed-sighting/GLTFLoader-BYMKgQLE.js +1 -0
- package/dist-embed-sighting/HeadlightSystem-CXPE3feA.js +34 -0
- package/dist-embed-sighting/{HynekAssessor-B8Iw0Cbz.js → HynekAssessor-Cc8hHe3R.js} +1 -1
- package/dist-embed-sighting/LanternEditor-J_d2le0V.js +9 -0
- package/dist-embed-sighting/LanternEditorMessages_en-DaT3UNfD.js +1 -0
- package/dist-embed-sighting/LanternEditorMessages_es-TDV5lKeJ.js +1 -0
- package/dist-embed-sighting/LanternEditorMessages_fr-9mByTFMG.js +1 -0
- package/dist-embed-sighting/LanternEditorMessages_it-MRkJnDQp.js +1 -0
- package/dist-embed-sighting/LaserBeam-CovzRtac.js +1 -0
- package/dist-embed-sighting/LaunchEditor-DuVZmb3n.js +22 -0
- package/dist-embed-sighting/LaunchEditorMessages_en-BnzNAYW9.js +1 -0
- package/dist-embed-sighting/LaunchEditorMessages_es-BE0dEl7I.js +1 -0
- package/dist-embed-sighting/LaunchEditorMessages_fr-Ds_VOB8c.js +1 -0
- package/dist-embed-sighting/LaunchEditorMessages_it-DPQaR8HY.js +1 -0
- package/dist-embed-sighting/LaunchPlume-DONCQxUE.js +1 -0
- package/dist-embed-sighting/LaunchSimulation-C0cSHpLE.js +1 -0
- package/dist-embed-sighting/ModuleSession-CRVX-5Br.js +3 -0
- package/dist-embed-sighting/ModuleThree-YgLqKZM9.js +1 -0
- package/dist-embed-sighting/NearestApproach-BOWntoKZ.js +1 -0
- package/dist-embed-sighting/ParameterForm-BMfViRUv.js +85 -0
- package/dist-embed-sighting/{PoherAssessor-CwQN9pB1.js → PoherAssessor-CM7oCyEk.js} +1 -1
- package/dist-embed-sighting/{RailwaySystem-9blFcIdg.js → RailwaySystem-D8yJRUc8.js} +1 -1
- package/dist-embed-sighting/ReentryEditor-DCDavAGw.js +27 -0
- package/dist-embed-sighting/ReentryEditorMessages_en-O-YSmHxv.js +1 -0
- package/dist-embed-sighting/ReentryEditorMessages_es-CvO9Jwz5.js +1 -0
- package/dist-embed-sighting/ReentryEditorMessages_fr-xuC-qZ6M.js +1 -0
- package/dist-embed-sighting/ReentryEditorMessages_it-B7vyCX9o.js +1 -0
- package/dist-embed-sighting/ReentrySimulation-BzMMTqck.js +1 -0
- package/dist-embed-sighting/{ReferenceSystem-DFM_jZ-Q.js → ReferenceSystem-Dt28-Egu.js} +1 -1
- package/dist-embed-sighting/{RoadMarkings-DKxgMzE-.js → RoadMarkings-BC76NPX4.js} +1 -1
- package/dist-embed-sighting/SceneNames_es-Cu0CS6c0.js +1 -0
- package/dist-embed-sighting/SceneNames_fr-BAQt0-Zp.js +1 -0
- package/dist-embed-sighting/SceneNames_it-CeXG9jCC.js +1 -0
- package/dist-embed-sighting/SightingMessages_es-t6G0aKl4.js +1 -0
- package/dist-embed-sighting/SightingMessages_fr-D6DpE28c.js +1 -0
- package/dist-embed-sighting/SightingMessages_it-Dtm-W4pl.js +1 -0
- package/dist-embed-sighting/TimelineTracks-C7uTt9N5.js +35 -0
- package/dist-embed-sighting/{TraceSystem-CLYZFxAf.js → TraceSystem-Cd2FqhcV.js} +2 -2
- package/dist-embed-sighting/UfoMessages_es-BxNc9t8X.js +1 -0
- package/dist-embed-sighting/UfoMessages_fr-DnD6eSjQ.js +1 -0
- package/dist-embed-sighting/UfoMessages_it-BubvnWTa.js +1 -0
- package/dist-embed-sighting/{WaterSystem-BulddAwi.js → WaterSystem-S81tdPno.js} +1 -1
- package/dist-embed-sighting/rr0-sighting.mjs +365 -365
- package/dist-embed-sighting/{sightingSchema-CnDwuCov.js → sightingSchema-CKUYrwgu.js} +1 -1
- package/dist-embed-sighting/trafficRuntime-DL5Zul8z.js +2 -0
- package/dist-embed-sighting-editor/AdsbLolArchiveProvider-k2xqWyaR.js +1 -0
- package/dist-embed-sighting-editor/{BallesterGuaspAssessor-gX_y6kL8.js → BallesterGuaspAssessor-CRfTg7iA.js} +1 -1
- package/dist-embed-sighting-editor/BeamEditor-DTkjy61A.js +30 -0
- package/dist-embed-sighting-editor/BeamEditorMessages_en-DDvPWAdd.js +1 -0
- package/dist-embed-sighting-editor/BeamEditorMessages_es-BhCkhUkN.js +1 -0
- package/dist-embed-sighting-editor/BeamEditorMessages_fr-CtX6uP-x.js +1 -0
- package/dist-embed-sighting-editor/BeamEditorMessages_it-DVweRQFi.js +1 -0
- package/dist-embed-sighting-editor/BeamSystem-BQbLn-3t.js +1 -0
- package/dist-embed-sighting-editor/BodyEditor-D5PfqEg2.js +28 -0
- package/dist-embed-sighting-editor/BodyEditorMessages_en-zfy3BJb5.js +1 -0
- package/dist-embed-sighting-editor/BodyEditorMessages_es-w95anMnI.js +1 -0
- package/dist-embed-sighting-editor/BodyEditorMessages_fr-ixsDgTbt.js +1 -0
- package/dist-embed-sighting-editor/BodyEditorMessages_it-B3oQzqHE.js +1 -0
- package/dist-embed-sighting-editor/{CaseEditorMessages_es-DUelIN8x.js → CaseEditorMessages_es-D9fqVpx3.js} +1 -1
- package/dist-embed-sighting-editor/{CaseEditorMessages_fr-BppxXK1E.js → CaseEditorMessages_fr-DA4NmMM1.js} +1 -1
- package/dist-embed-sighting-editor/{CaseEditorMessages_it-BIYStAk9.js → CaseEditorMessages_it-BoJUJ83I.js} +1 -1
- package/dist-embed-sighting-editor/{ContrailSystem-BXARgrR4.js → ContrailSystem-BQXLg_WA.js} +1 -1
- package/dist-embed-sighting-editor/{CoverageAssessor-mvpHgNx3.js → CoverageAssessor-D3HBwZuC.js} +1 -1
- package/dist-embed-sighting-editor/{GLTFLoader-BVRuOnnK.js → GLTFLoader-CQeR3NC8.js} +1 -1
- package/dist-embed-sighting-editor/{HeadlightSystem-9ywZKJNB.js → HeadlightSystem-Cy4jSEsq.js} +1 -1
- package/dist-embed-sighting-editor/{HynekAssessor-B9lO770Q.js → HynekAssessor-Covu9I3x.js} +1 -1
- package/dist-embed-sighting-editor/{InterviewEditorElement-Cpu0vwrk.js → InterviewEditorElement-IBABfqta.js} +7 -6
- package/dist-embed-sighting-editor/InterviewMessages_en-BNau2xU8.js +1 -0
- package/dist-embed-sighting-editor/InterviewMessages_es-ypa0EDh9.js +1 -0
- package/dist-embed-sighting-editor/InterviewMessages_fr-OCQdwn9j.js +1 -0
- package/dist-embed-sighting-editor/InterviewMessages_it-awuOqf5v.js +1 -0
- package/dist-embed-sighting-editor/LanternEditor-BoxxG443.js +9 -0
- package/dist-embed-sighting-editor/LanternEditorMessages_en-DaT3UNfD.js +1 -0
- package/dist-embed-sighting-editor/LanternEditorMessages_es-TDV5lKeJ.js +1 -0
- package/dist-embed-sighting-editor/LanternEditorMessages_fr-9mByTFMG.js +1 -0
- package/dist-embed-sighting-editor/LanternEditorMessages_it-MRkJnDQp.js +1 -0
- package/dist-embed-sighting-editor/LaserBeam-j5Z4tIOw.js +1 -0
- package/dist-embed-sighting-editor/LaunchEditor-rJud4C3y.js +22 -0
- package/dist-embed-sighting-editor/LaunchEditorMessages_en-BnzNAYW9.js +1 -0
- package/dist-embed-sighting-editor/LaunchEditorMessages_es-BE0dEl7I.js +1 -0
- package/dist-embed-sighting-editor/LaunchEditorMessages_fr-Ds_VOB8c.js +1 -0
- package/dist-embed-sighting-editor/LaunchEditorMessages_it-DPQaR8HY.js +1 -0
- package/dist-embed-sighting-editor/LaunchPlume-Dm1YdsZp.js +1 -0
- package/dist-embed-sighting-editor/LaunchSimulation-4f9-9d7Z.js +1 -0
- package/dist-embed-sighting-editor/{ModelSource-D0ZuOymh.js → ModelSource-CYfSBTeB.js} +1 -1
- package/dist-embed-sighting-editor/{ModelThumbnails-BA3zFrn5.js → ModelThumbnails-DYWQQdaZ.js} +1 -1
- package/dist-embed-sighting-editor/{ModelViewer-BDorZEms.js → ModelViewer-BjIOswb8.js} +1 -1
- package/dist-embed-sighting-editor/ModuleSession-D3GrBJ3j.js +3 -0
- package/dist-embed-sighting-editor/ModuleThree-CkOgRXM2.js +1 -0
- package/dist-embed-sighting-editor/ModulesPanelElement-Uz0lPYwu.js +13 -0
- package/dist-embed-sighting-editor/ModulesPanelMessages_en-D97Nh2yy.js +1 -0
- package/dist-embed-sighting-editor/ModulesPanelMessages_es-CE9Ajw2-.js +1 -0
- package/dist-embed-sighting-editor/ModulesPanelMessages_fr-BWsj-7_t.js +1 -0
- package/dist-embed-sighting-editor/ModulesPanelMessages_it-CtKrboEg.js +1 -0
- package/dist-embed-sighting-editor/{NearestApproach-DCFh8vV6.js → NearestApproach-DCUW8bB4.js} +1 -1
- package/dist-embed-sighting-editor/{PictureRegistration-cp0utyhJ.js → PictureRegistration-ZyvGfReK.js} +1 -1
- package/dist-embed-sighting-editor/{PoherAssessor-CzLQhAxP.js → PoherAssessor-BoGGdasd.js} +1 -1
- package/dist-embed-sighting-editor/{RailwaySystem-BfDjza60.js → RailwaySystem-C8Dby19B.js} +1 -1
- package/dist-embed-sighting-editor/ReentryEditor-8sfHq7hY.js +27 -0
- package/dist-embed-sighting-editor/ReentryEditorMessages_en-O-YSmHxv.js +1 -0
- package/dist-embed-sighting-editor/ReentryEditorMessages_es-CvO9Jwz5.js +1 -0
- package/dist-embed-sighting-editor/ReentryEditorMessages_fr-xuC-qZ6M.js +1 -0
- package/dist-embed-sighting-editor/ReentryEditorMessages_it-B7vyCX9o.js +1 -0
- package/dist-embed-sighting-editor/ReentrySimulation-KMMVK82G.js +1 -0
- package/dist-embed-sighting-editor/{ReferenceSystem-DHPnvAXN.js → ReferenceSystem-PYF540r7.js} +1 -1
- package/dist-embed-sighting-editor/{RoadMarkings-HF9xJtTp.js → RoadMarkings-VqRLMg59.js} +1 -1
- package/dist-embed-sighting-editor/SceneNames_es-CLvEspFd.js +1 -0
- package/dist-embed-sighting-editor/SceneNames_fr-oYQgZ-TZ.js +1 -0
- package/dist-embed-sighting-editor/SceneNames_it-CDTw3VAX.js +1 -0
- package/dist-embed-sighting-editor/SightingEditorMessages_es-CQU200Hj.js +12 -0
- package/dist-embed-sighting-editor/SightingEditorMessages_fr-Bd4Ht-jW.js +12 -0
- package/dist-embed-sighting-editor/SightingEditorMessages_it-CSnPiCy2.js +12 -0
- package/dist-embed-sighting-editor/{SightingFileEditor-BekK-f3R.js → SightingFileEditor-DB3jyBzw.js} +1 -1
- package/dist-embed-sighting-editor/SkyEventEditorStyle-CvY_AhbI.js +1 -0
- package/dist-embed-sighting-editor/{TraceSystem-C1HaC0DX.js → TraceSystem-BX0FwUB1.js} +2 -2
- package/dist-embed-sighting-editor/UfoMessages_es-BxNc9t8X.js +1 -0
- package/dist-embed-sighting-editor/UfoMessages_fr-DnD6eSjQ.js +1 -0
- package/dist-embed-sighting-editor/UfoMessages_it-BubvnWTa.js +1 -0
- package/dist-embed-sighting-editor/{WaterSystem-BDkfNF8C.js → WaterSystem-uWnkivpP.js} +1 -1
- package/dist-embed-sighting-editor/rr0-sighting-editor.mjs +509 -506
- package/dist-embed-sighting-editor/{sightingSchema-CnDwuCov.js → sightingSchema-CKUYrwgu.js} +1 -1
- package/dist-embed-sighting-editor/surroundingsSources-DXpzMDPy.js +1 -0
- package/dist-embed-sighting-editor/trafficRuntime-BeMCM4Ap.js +2 -0
- package/package.json +3 -2
- package/dist-embed-interview/InterviewMessages_es-B0Ut-uel.js +0 -1
- package/dist-embed-interview/InterviewMessages_fr-mhX8Zuyu.js +0 -1
- package/dist-embed-interview/InterviewMessages_it-DaxIoAIG.js +0 -1
- package/dist-embed-scene/BeamSystem-Dp1WU1Zx.js +0 -1
- package/dist-embed-scene/GLTFLoader-wJ0bjCoG.js +0 -1
- package/dist-embed-scene/ReferenceSystem-DOCydyPG.js +0 -1
- package/dist-embed-scene/SceneNames_es-DU-mbey8.js +0 -1
- package/dist-embed-scene/SceneNames_fr-D5foX9zZ.js +0 -1
- package/dist-embed-scene/SceneNames_it-CsSU00Qr.js +0 -1
- package/dist-embed-scene/UfoMessages_es-BRCWkzr3.js +0 -1
- package/dist-embed-scene/UfoMessages_fr-Cs2GCHEt.js +0 -1
- package/dist-embed-scene/UfoMessages_it-B2hvjhgb.js +0 -1
- package/dist-embed-scene/WaterSystem-yC8sKIc5.js +0 -1
- package/dist-embed-scene/trafficRuntime-BPEJW9KZ.js +0 -2
- package/dist-embed-sighting/BeamSystem-B0H346X_.js +0 -1
- package/dist-embed-sighting/ContrailSystem-BeK11Jxe.js +0 -1
- package/dist-embed-sighting/GLTFLoader-B_T3zy3i.js +0 -1
- package/dist-embed-sighting/HeadlightSystem-DjtbpwEp.js +0 -34
- package/dist-embed-sighting/NearestApproach-B5s-b6tU.js +0 -1
- package/dist-embed-sighting/SceneNames_es-yKx3UAlW.js +0 -1
- package/dist-embed-sighting/SceneNames_fr-CRYRL6bz.js +0 -1
- package/dist-embed-sighting/SceneNames_it-YZZnoK8j.js +0 -1
- package/dist-embed-sighting/SightingMessages_es-Dsr6169b.js +0 -1
- package/dist-embed-sighting/SightingMessages_fr-DQNbBD0c.js +0 -1
- package/dist-embed-sighting/SightingMessages_it-WE-_Cuu4.js +0 -1
- package/dist-embed-sighting/UfoMessages_es-BRCWkzr3.js +0 -1
- package/dist-embed-sighting/UfoMessages_fr-Cs2GCHEt.js +0 -1
- package/dist-embed-sighting/UfoMessages_it-B2hvjhgb.js +0 -1
- package/dist-embed-sighting/trafficRuntime-CfPqH9j0.js +0 -2
- package/dist-embed-sighting-editor/AdsbLolArchiveProvider-DS9ev-HU.js +0 -1
- package/dist-embed-sighting-editor/BeamEditor-BzrEOJOy.js +0 -13
- package/dist-embed-sighting-editor/BeamEditorMessages_en-DBs2OUXJ.js +0 -1
- package/dist-embed-sighting-editor/BeamEditorMessages_es-DB8K5GtE.js +0 -1
- package/dist-embed-sighting-editor/BeamEditorMessages_fr-D1j_IF07.js +0 -1
- package/dist-embed-sighting-editor/BeamEditorMessages_it-BT3ezMwC.js +0 -1
- package/dist-embed-sighting-editor/BeamSystem-BBonCZQ1.js +0 -1
- package/dist-embed-sighting-editor/BodyEditor-D5VXWcru.js +0 -27
- package/dist-embed-sighting-editor/BodyEditorMessages_en-DmM8Dasm.js +0 -1
- package/dist-embed-sighting-editor/BodyEditorMessages_es-BiV1oFuY.js +0 -1
- package/dist-embed-sighting-editor/BodyEditorMessages_fr-D03RAZjQ.js +0 -1
- package/dist-embed-sighting-editor/BodyEditorMessages_it-34r0JMIX.js +0 -1
- package/dist-embed-sighting-editor/InterviewMessages_en-CC5D0e6J.js +0 -1
- package/dist-embed-sighting-editor/InterviewMessages_es-B0Ut-uel.js +0 -1
- package/dist-embed-sighting-editor/InterviewMessages_fr-mhX8Zuyu.js +0 -1
- package/dist-embed-sighting-editor/InterviewMessages_it-DaxIoAIG.js +0 -1
- package/dist-embed-sighting-editor/LanternEditor-C60IT7Cv.js +0 -9
- package/dist-embed-sighting-editor/LaserBeam-DZ6ILkZ8.js +0 -1
- package/dist-embed-sighting-editor/LaunchEditor-DcYWYLQN.js +0 -18
- package/dist-embed-sighting-editor/LaunchEditorMessages_en-DH8gI1vo.js +0 -1
- package/dist-embed-sighting-editor/LaunchEditorMessages_es-WCfaY4uY.js +0 -1
- package/dist-embed-sighting-editor/LaunchEditorMessages_fr-CWCGUG_A.js +0 -1
- package/dist-embed-sighting-editor/LaunchEditorMessages_it-DxSSiAd7.js +0 -1
- package/dist-embed-sighting-editor/SceneNames_es-CtE-QSrH.js +0 -1
- package/dist-embed-sighting-editor/SceneNames_fr-hz4p4u7a.js +0 -1
- package/dist-embed-sighting-editor/SceneNames_it-CRn1NGKM.js +0 -1
- package/dist-embed-sighting-editor/SightingEditorMessages_es-DGdkm-Yt.js +0 -12
- package/dist-embed-sighting-editor/SightingEditorMessages_fr-thlWKHJq.js +0 -12
- package/dist-embed-sighting-editor/SightingEditorMessages_it-dkt2lxRe.js +0 -12
- package/dist-embed-sighting-editor/UfoMessages_es-BRCWkzr3.js +0 -1
- package/dist-embed-sighting-editor/UfoMessages_fr-Cs2GCHEt.js +0 -1
- package/dist-embed-sighting-editor/UfoMessages_it-B2hvjhgb.js +0 -1
- package/dist-embed-sighting-editor/surroundingsSources-Bq5A0HA5.js +0 -1
- package/dist-embed-sighting-editor/trafficRuntime-DVOOnJGD.js +0 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={title:"Título",time:"Fecha",by:"Entrevistador",medium:"Medio",witness:"Testigo",witnessNone:"—",summary:"Descripción",transcript:"Transcripción",transcriptHint:"Dirección del archivo de transcripción anonimizada (opcional)",summaryTab:"Resumen",fileTab:"Archivo",importFile:"Cargar un archivo",importFileHint:"JSON, texto, WebVTT, SRT",inputFileFromFile:"desde su disco",inputFileFromUrl:"desde una dirección",inputFileModeHint:"Pulsar para darlo de la otra forma: un archivo suyo o una dirección",inputFileLoad:"Cargar",saveButton:"Guardar",loading:"Cargando la transcripción…",invalid:"Este texto aún no es JSON válido: la entrevista conserva la última transcripción que entendió.",notATranscript:"Ese archivo no es una transcripción de entrevista (no tiene turnos de palabra).",loadFailed:"No se pudo leer esa transcripción.",editorLabel:"Transcripción de la entrevista en JSON",byHint:"Identificadores de personas de RR0, separados por comas",exchangesTab:"Intercambios",exchangesEmpty:"Todavía no se ha dicho nada.",redacted:"Pasaje eliminado",colon:": ",proofreadAll:"Revisado por todos.",proofreadPending:"Aún no revisado por: {names}",play:"Reproducir",pause:"Pausa",recordings:"Grabaciones ({n})",recordingsTitle:"Grabaciones",recordingKind:"Tipo",recordingAudio:"Audio",recordingVideo:"Vídeo",recordingFile:"Archivo",recordingOffset:"Desfase",recordingRemove:"Quitar",recordingAdd:"Añadir una grabación",close:"Cerrar",noRecording:"Sin grabación: añada el archivo de audio o vídeo de la entrevista para poder escucharla.",redactSelection:"Retirar la selección",redactedWords:"pasaje retirado · {n} palabra(s)",redactAll:"Retirar todo",restoreAll:"Restablecer todo",editTurn:"Modificar",deleteTurn:"Eliminar este turno de palabra",saveTurn:"Guardar",cancelTurn:"Cancelar",turnEditHint:"⟦ … ⟧ marca un pasaje retirado",selectionOnePassage:"La selección debe caber en un solo pasaje no retirado.",selectionNone:"Seleccione palabras de un pasaje para retirarlas.",reviewedBy:"{name} ha revisado",linkMoment:"Vincular a un momento…",momentLabel:"Momento {k} · {text}",unlinkMoment:"Quitar este vínculo",noMoments:"La observación aún no tiene momentos con nombre.",redactReason:"retirado en la revisión",roles:{interviewer:"Entrevistador",interviewee:"Entrevistado",witness:"Testigo"}};export{e as interviewMessages_es};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={title:"Titre",time:"Date",by:"Enquêteur",medium:"Moyen",witness:"Témoin",witnessNone:"—",summary:"Description",transcript:"Transcription",transcriptHint:"Adresse du fichier de transcription anonymisée (facultative)",summaryTab:"Résumé",fileTab:"Fichier",importFile:"Charger un fichier",importFileHint:"JSON, texte, WebVTT, SRT",inputFileFromFile:"depuis votre disque",inputFileFromUrl:"depuis une adresse",inputFileModeHint:"Cliquer pour le donner autrement : un fichier à vous, ou une adresse",inputFileLoad:"Charger",saveButton:"Sauver",loading:"Chargement de la transcription…",invalid:"Ce texte n'est pas encore du JSON valide : l'interview garde la dernière transcription qu'elle a comprise.",notATranscript:"Ce fichier n'est pas une transcription d'interview (il n'a pas de tours de parole).",loadFailed:"Cette transcription n'a pas pu être lue.",editorLabel:"Transcription de l'interview en JSON",byHint:"Identifiants de personnes RR0, séparés par des virgules",exchangesTab:"Échanges",exchangesEmpty:"Rien n'a encore été dit.",redacted:"Passage retiré",colon:" : ",proofreadAll:"Relu par tous les participants.",proofreadPending:"Pas encore relu par : {names}",play:"Lecture",pause:"Pause",recordings:"Enregistrements ({n})",recordingsTitle:"Enregistrements",recordingKind:"Type",recordingAudio:"Audio",recordingVideo:"Vidéo",recordingFile:"Fichier",recordingOffset:"Décalage",recordingRemove:"Retirer",recordingAdd:"Ajouter un enregistrement",close:"Fermer",noRecording:"Aucun enregistrement : ajoutez le fichier audio ou vidéo de l'entretien pour pouvoir l'écouter.",redactSelection:"Retirer la sélection",redactedWords:"passage retiré · {n} mot(s)",redactAll:"Retirer tout",restoreAll:"Rétablir tout",editTurn:"Modifier",deleteTurn:"Supprimer ce tour de parole",saveTurn:"Enregistrer",cancelTurn:"Annuler",turnEditHint:"⟦ … ⟧ marque un passage retiré",selectionOnePassage:"La sélection doit tenir dans un seul passage non retiré.",selectionNone:"Sélectionnez des mots d'un passage pour les retirer.",reviewedBy:"{name} a relu",linkMoment:"Relier à un moment…",momentLabel:"Moment {k} · {text}",unlinkMoment:"Retirer ce lien",noMoments:"L'observation n'a pas encore de moment nommé.",redactReason:"retiré à la relecture",roles:{interviewer:"Intervieweur",interviewee:"Interviewé",witness:"Témoin"}};export{e as interviewMessages_fr};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const i={title:"Titolo",time:"Data",by:"Intervistatore",medium:"Mezzo",witness:"Testimone",witnessNone:"—",summary:"Descrizione",transcript:"Trascrizione",transcriptHint:"Indirizzo del file di trascrizione anonimizzata (facoltativo)",summaryTab:"Riepilogo",fileTab:"File",importFile:"Carica un file",importFileHint:"JSON, testo, WebVTT, SRT",inputFileFromFile:"dal proprio disco",inputFileFromUrl:"da un indirizzo",inputFileModeHint:"Fare clic per darlo nell'altro modo: un proprio file o un indirizzo",inputFileLoad:"Carica",saveButton:"Salva",loading:"Caricamento della trascrizione…",invalid:"Questo testo non è ancora JSON valido: l'intervista conserva l'ultima trascrizione che ha capito.",notATranscript:"Quel file non è una trascrizione di intervista (non ha turni di parola).",loadFailed:"Impossibile leggere quella trascrizione.",editorLabel:"Trascrizione dell'intervista in JSON",byHint:"Identificatori di persone RR0, separati da virgole",exchangesTab:"Scambi",exchangesEmpty:"Non è stato ancora detto nulla.",redacted:"Passaggio rimosso",colon:": ",proofreadAll:"Rivisto da tutti.",proofreadPending:"Non ancora rivisto da: {names}",play:"Riproduci",pause:"Pausa",recordings:"Registrazioni ({n})",recordingsTitle:"Registrazioni",recordingKind:"Tipo",recordingAudio:"Audio",recordingVideo:"Video",recordingFile:"File",recordingOffset:"Scarto",recordingRemove:"Rimuovi",recordingAdd:"Aggiungi una registrazione",close:"Chiudi",noRecording:"Nessuna registrazione: aggiungi il file audio o video dell'intervista per poterla ascoltare.",redactSelection:"Rimuovi la selezione",redactedWords:"passaggio rimosso · {n} parola/e",redactAll:"Rimuovi tutto",restoreAll:"Ripristina tutto",editTurn:"Modifica",deleteTurn:"Elimina questo turno",saveTurn:"Salva",cancelTurn:"Annulla",turnEditHint:"⟦ … ⟧ indica un passaggio rimosso",selectionOnePassage:"La selezione deve restare in un solo passaggio non rimosso.",selectionNone:"Seleziona parole di un passaggio per rimuoverle.",reviewedBy:"{name} ha riletto",linkMoment:"Collega a un momento…",momentLabel:"Momento {k} · {text}",unlinkMoment:"Rimuovi questo collegamento",noMoments:"L'osservazione non ha ancora momenti con nome.",redactReason:"rimosso in rilettura",roles:{interviewer:"Intervistatore",interviewee:"Intervistato",witness:"Testimone"}};export{i as interviewMessages_it};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
class B extends Error{}class se{constructor(t){this.name=t}validate(t){return!0}}class Ar extends se{min;max;constructor(t,e,r){super(t),this.min=e,this.max=r}validate(t){if(typeof t!="number")throw new B(`${this.name} value must be a number, but was ${t}`);if(t<this.min||t>this.max)throw new B(`${this.name} value must be >= ${this.min} and <= ${this.max}, but was ${t}`);return super.validate(t)}}class N{name;min;max;duration;subUnit;validator;constructor(t,e,r,n,o=new Ar(t,e,r)){this.name=t,this.min=e,this.max=r,this.subUnit=n,this.duration=n?(n.max-n.min+1)*n.duration:1,this.validator=o}validate(t){return this.validator.validate(t)}[Symbol.iterator](){let t=this.min;return{next:()=>{const e={done:t>this.max,value:t};return t++,e}}}}class Ee{millisecond;second;minute;hour;day;month;year}class Or extends Ee{}class kr extends Or{millisecond=new N("millisecond",0,999,void 0);second=new N("second",0,59,this.millisecond);minute=new N("minute",0,59,this.second);hour=new N("hour",0,23,this.minute);day=new N("day",1,31,this.hour);month=new N("month",1,12,this.day);year=new N("year",0,9999,this.month)}const f=new kr;class Fr extends Ar{constructor(t=1,e=12){super("month",t,e)}}class wt extends N{static Month28=new wt(28);static Month29=new wt(29);static ThirtyDays=new wt(30);static ThirtyOneDays=new wt(31);constructor(t,e=new Fr(1,t)){super("month",1,t,f.day,e)}static create(t,e){switch(t){case 1:case 3:case 5:case 7:case 8:case 10:case 12:return this.ThirtyOneDays;case 2:return e%4===0?this.Month29:this.Month28;case 4:case 6:case 9:case 11:return this.ThirtyDays;default:throw new B("Unsupported month",t,e)}}}class q{static instance=new q;render(t){return t.value.toString()}}class j{unit;#t;constructor(t,e){this.unit=e,this.value=typeof t=="number"?t:t.value}get value(){return this.#t}set value(t){this.unit.validate(t),this.#t=t}get duration(){return this.value*this.unit.duration}#e(t){if(this.constructor.name!==t.constructor.name)throw new se(`${this.unit.name} "${this.toString()}" cannot be compared with ${t.unit?.name} "${t.toString()}"`)}compare(t){return this.#e(t),this.value-t.value}isEqual(t){return this.compare(t)===0}isBefore(t){return this.compare(t)<0}isAfter(t){return this.compare(t)>0}previous(t=this.unit){const e=this.value-1;return new this.constructor(e,t)}next(t=this.unit){const e=this.value+1;return new this.constructor(e,t)}toString(t=q.instance){return t.render(this)}toSpec(){return{value:this.value}}toJSON(){return this.toSpec()}}class l{static#t=new Map;static register(t,e){l.#t.set(t,e)}static get(t){const e=l.#t.get(t);if(!e)throw new B(`No default parser registered for ${t.name}: import "@rr0/time/defaults" or pass a parser to fromString()`);return e()}}class Et extends j{constructor(t=new Date().getFullYear(),e=f.year){super(t,e)}static fromString(t,e=l.get(Et)){return new Et(e.parse(t))}}class J extends q{static default=new J("0",2);constructor(t,e){super(),this.char=t,this.size=e}render(t){return super.render(t).padStart(this.size,this.char)}}class Nt extends j{constructor(t=new Date().getMonth()+1,e=f.month){super(t,e)}static fromString(t,e=l.get(Nt)){return new Nt(e.parse(t))}toString(t=J.default){return super.toString(t)}}class Gt extends j{constructor(t=new Date().getDate(),e=f.day){super(t,e)}static fromString(t,e=l.get(Gt)){const r=e.parse(t);return new Gt(r)}toString(t=J.default){return super.toString(t)}}class vt extends j{constructor(t=new Date().getHours(),e=f.hour){super(t,e)}static fromString(t,e=l.get(vt)){return new vt(e.parse(t))}toString(t=J.default){return super.toString(t)}}class Tt extends j{constructor(t=new Date().getMinutes(),e=f.minute){super(t,e)}static fromString(t,e=l.get(Tt)){return new Tt(e.parse(t))}toString(t=J.default){return super.toString(t)}}class At extends j{constructor(t=new Date().getSeconds(),e=f.second){super(t,e)}static fromString(t,e=l.get(At)){return new At(e.parse(t),f.second)}toString(t=J.default){return super.toString(t)}}class mt extends j{static renderer=new J("0",3);constructor(t,e=f.millisecond){super(t,e)}static parseFraction(t){return parseInt(t.padEnd(3,"0").substring(0,3),10)}toString(t=mt.renderer){return super.toString(t)}}class zr{render(t){return t.toString()}}class Br extends zr{render(t){const e=t.value,r=Math.abs(e),n=Math.floor(r/60),o=r%60;if(n===0&&o===0)return"Z";{const a=e<0?"-":"+",u=n.toString().padStart(2,"0"),p=o>0?":"+o.toString().padEnd(2,"0"):"";return a+u+p}}}class ct{value;name="timeshift";renderer;constructor(t=0){this.value=t}static fromString(t,e=l.get(ct),r=void 0){const n=e.parse(t,r);return new ct(n)}toString(t=new Br){return t.render(this)}toSpec(){return{value:this.value}}toJSON(){return this.toSpec()}}class V{static timeshift(t,e){return t+(V.isDaylight(e)?60:0)}static isDaylight(t){const{year:e,month:r,day:n}=t,o=t.hour??12;if(![e,r,n].every(Number.isInteger))throw new RangeError("Daylight saving time depends on the year, month and day");const a=V.rule(e);if(!a)return!1;const u=V.rank(r,n,o);return u>=V.rank(a.start.month,a.start.day,2)&&u<V.rank(a.end.month,a.end.day,2)}static rule(t){if(t<1967)return;const e={month:10,day:V.sunday(t,10,-1)};return t>=2007?{start:{month:3,day:V.sunday(t,3,2)},end:{month:11,day:V.sunday(t,11,1)}}:t>=1987?{start:{month:4,day:V.sunday(t,4,1)},end:e}:t===1975?{start:{month:2,day:23},end:e}:t===1974?{start:{month:1,day:6},end:e}:{start:{month:4,day:V.sunday(t,4,-1)},end:e}}static sunday(t,e,r){const n=new Date(Date.UTC(2e3,e-1,1));n.setUTCFullYear(t);const o=1+(7-n.getUTCDay())%7;if(r>0)return o+7*(r-1);const a=[31,V.isLeap(t)?29:28,31,30,31,30,31,31,30,31,30,31][e-1];let u=o;for(;u+7<=a;)u+=7;return u}static isLeap(t){return t%4===0&&(t%100!==0||t%400===0)}static rank(t,e,r){return(t*100+e)*100+r}}const Yr={name:"PST",timeshift:"-08",title:"Pacific Standard Time (US)"},Hr={name:"PDT",timeshift:"-07",title:"Pacific Daylight Time (US)"},qr={name:"MDT",timeshift:"-06",title:"Mountain Standard Time (US)"},Xr={name:"MST",timeshift:"-07",title:"Mountain Daylight Time (US)"},Wr={name:"PT",timeshift:s=>V.timeshift(-480,s),title:"Pacific Time (US)"},Jr={name:"MT",timeshift:s=>V.timeshift(-420,s),title:"Mountain Time (US)"},Dr={name:"CT",timeshift:s=>V.timeshift(-360,s),title:"Central Time (US)"},Zr={name:"ET",timeshift:s=>V.timeshift(-300,s),title:"Eastern Time (US)"},Kr={name:"CWT",timeshift:"-05",title:"Central War Time (US)"},Qr={name:"CDT",timeshift:"-05",title:"Central Daylight Time"},Pr={name:"EST",timeshift:"-05",title:"Eastern Standard Time (US)"},Lr={name:"EDT",timeshift:"-04",title:"Eastern Time (US)"},_r={name:"AST",timeshift:"-04",title:"Atlantic Standard Time (US)"},tn={name:"ADT",timeshift:"-03",title:"Atlantic Daylight Time (US)"},en={name:"UTC",timeshift:"Z",title:"Coordinated Universal Time"},rn={name:"Z",timeshift:"Z",title:"UTC"},nn={name:"GMT",timeshift:"Z",title:"Greenwich Mean Time"},sn={name:"BST",timeshift:"+01",title:"British Summer Time"},on={name:"CEST",timeshift:"+02",title:"Central European Summer Time"},an={name:"CET",timeshift:"+01",title:"Central European Time"},un={name:"MSK",timeshift:"+03",title:"Moscow Time (RU)"},cn={name:"IST",timeshift:"+05:30",title:"Indian Standard Time"},mn={name:"BJT",timeshift:"+08",title:"Beijing Time"},dn={name:"CST",timeshift:"-06",title:"Central Standard Time"},pn={name:"JST",timeshift:"+09",title:"Japan Standard Time"},ln={name:"AEST",timeshift:"+10",title:"Australian Eastern Standard Time"},hn={name:"NZST",timeshift:"+12",title:"New Zealand Standard Time"},fn={name:"LST",timeshift:"?",title:"Local Sideral Time"},$e=[tn,ln,_r,mn,sn,dn,Qr,an,on,Dr,Kr,Lr,Pr,Zr,nn,cn,pn,fn,qr,un,Xr,Jr,hn,Hr,Yr,Wr,en,rn];class oe{static instance=new oe;renderComponent(t,e){return t[e].toString()}renderSecond(t){return this.renderComponent(t,"second")+(t.millisecond?"."+t.millisecond.toString():"")}render(t){const e=[];t.year&&e.push(this.renderComponent(t,"year")),t.month&&e.push(this.renderComponent(t,"month")),t.day&&e.push(this.renderComponent(t,"day"));const r=[];t.hour&&r.push(this.renderComponent(t,"hour")),t.minute&&r.push(this.renderComponent(t,"minute")),t.second&&r.push(this.renderSecond(t));const n=e.join("-"),o=t.timeshift?t.timeshift.toString():"",a=r.join(":")+o;return n+(a.length>0?"T"+a:"")}}class dt extends B{constructor(t="method is abstract"){super(t)}}class Ne{units;constructor(t){this.units=t}newYear(t){throw new dt}newMonth(t){throw new dt}newDay(t){throw new dt}newHour(t){throw new dt}newMinute(t){throw new dt}newSecond(t){throw new dt}}class gn extends Ee{millisecond=new N("milliseconds",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,void 0);second=new N("seconds",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.millisecond);minute=new N("minutes",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.second);hour=new N("hours",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.minutes);day=new N("days",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.hour);month=new N("months",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.day);year=new N("years",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.month)}const Lt=new gn;class ie{static instance=new ie;render(t){const e=H.toSpec(t);let r="P";const n=e.years;n&&(r+=n.toString()+"Y");const o=e.months;o&&(r+=o.toString(q.instance)+"MM");const a=e.days;a&&(r+=a.toString(q.instance)+"D");const u=e.hours;u&&(r+=u.toString(q.instance)+"H");const p=e.minutes;p&&(r+=p.toString(q.instance)+"M");const c=e.seconds;return c&&(r+=c.toString(q.instance)+"S"),r}}class H extends j{constructor(t={years:new Date().getFullYear(),months:new Date().getMonth(),days:new Date().getDate(),hours:new Date().getHours(),minutes:new Date().getMinutes(),seconds:new Date().getSeconds(),milliseconds:new Date().getMilliseconds()}){super({value:typeof t=="number"?t:+(t.years?t.years*f.year.duration:0)+(t.months?t.months*f.month.duration:0)+(t.days?t.days*f.day.duration:0)+(t.hours?t.hours*f.hour.duration:0)+(t.minutes?t.minutes*f.minute.duration:0)+(t.seconds?t.seconds*f.second.duration:0)},new N("millisecond",0,Number.MAX_SAFE_INTEGER,void 0))}static toSpec(t,e=Sn){let r=typeof t=="number"?t:t.value;const n=r>0?1:-1;r=Math.abs(r);const o={},a=r/f.year.duration,u=Math.floor(a);u>0&&(o.years=e.newYear(n*u),r-=u*f.year.duration);const p=r/f.month.duration,c=Math.floor(p);c>0&&(o.months=e.newMonth(n*c),r-=c*f.month.duration);const d=r/f.day.duration,m=Math.floor(d);m>0&&(o.days=e.newDay(n*m),r-=m*f.day.duration);const w=r/f.hour.duration,y=Math.floor(w);y>0&&(o.hours=e.newHour(n*y),r-=y*f.hour.duration);const b=r/f.minute.duration,S=Math.floor(b);S>0&&(o.minutes=e.newMinute(n*S),r-=S*f.minute.duration);const T=r/f.second.duration,g=Math.floor(n*T);return g>0&&(o.seconds=e.newSecond(g)),o}static fromString(t,e=l.get(H)){return new H(e.parse(t))}static between(t,e){const r=e.getTime(),n=t.getTime();return new H(r-n)}toSpec(){return H.toSpec(this)}toString(t=ie.instance){return t.render(this)}}class Rr extends Ne{constructor(t){super(t)}newYear(t){return new Et(t,this.units.year)}newMonth(t){return new Nt(t,this.units.month)}newDay(t){return new Gt(t,this.units.day)}newHour(t){return new vt(t,this.units.hour)}newMinute(t){return new Tt(t,this.units.minute)}newSecond(t){return new At(t,this.units.second)}newMillisecond(t){return new mt(t,this.units.millisecond)}newTimeshift(t){return new ct(typeof t=="number"?t:t.value)}}const wn=new Rr(f),Sn=new Rr(Lt);class I{#t;#e;#r;#n;#s;#o;#i;#a;constructor(t={year:new Date().getFullYear(),month:new Date().getMonth()+1,day:new Date().getDate(),hour:new Date().getHours(),minute:new Date().getMinutes(),second:new Date().getSeconds(),timeshift:I.timeshiftOf(new Date)}){this.year=t.year,this.month=t.month,this.day=t.day,this.hour=t.hour,this.minute=t.minute,this.second=t.second,this.millisecond=t.millisecond,this.timeshift=t.timeshift}get year(){return this.#t}set year(t){const e=typeof t=="number";this.#t&&e?this.#t.value=t:this.#t=e?this.factory.newYear(t):!t||t.start||t instanceof j?t:this.factory.newYear(t)}get month(){return this.#e}set month(t){const e=typeof t=="number";this.#e&&e?this.#e.value=t:this.#e=e?this.factory.newMonth(t):!t||t.start||t instanceof j?t:this.factory.newMonth(t)}get day(){return this.#r}set day(t){const e=typeof t=="number";this.#r&&e?this.#r.value=t:this.#r=e?this.factory.newDay(t):!t||t.start||t instanceof j?t:this.factory.newDay(t)}get hour(){return this.#n}set hour(t){const e=typeof t=="number";this.#n&&e?this.#n.value=t:this.#n=e?this.factory.newHour(t):!t||t.start||t instanceof j?t:this.factory.newHour(t)}get minute(){return this.#s}set minute(t){const e=typeof t=="number";this.#s&&e?this.#s.value=t:this.#s=e?this.factory.newMinute(t):!t||t.start||t instanceof j?t:this.factory.newMinute(t)}get second(){return this.#o}set second(t){const e=typeof t=="number";this.#o&&e?this.#o.value=t:this.#o=e?this.factory.newSecond(t):!t||t.start||t instanceof j?t:this.factory.newSecond(t)}get millisecond(){return this.#i}set millisecond(t){const e=typeof t=="number";this.#i&&e?this.#i.value=t:this.#i=e||t&&!(t instanceof j)?this.factory.newMillisecond(t):t}get timeshift(){return this.#a}set timeshift(t){const e=typeof t=="number";this.#a&&e?this.#a.value=t:this.#a=e||t&&!(t instanceof ct)?this.factory.newTimeshift(t):t}get factory(){return wn}static fromString(t,e=l.get(I)){const{year:r,month:n,day:o,hour:a,minute:u,second:p,millisecond:c,timeshift:d}=e.parse(t);return new I({year:r,month:n,day:o,hour:a,minute:u,second:p,millisecond:c,timeshift:d})}static timeshiftOf(t){return-t.getTimezoneOffset()||0}static fromDate(t){return new I({year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate(),hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),timeshift:I.timeshiftOf(t)})}static newInstance(){const t=new Date().toISOString(),e=t.indexOf("."),r=t.substring(0,e)+t.substring(e+4);return I.fromString(r)}#u(t){if(this.constructor.name!==t.constructor.name)throw new se(`Date "${this.toString()}" cannot be compared with "${t.toString()}"`)}compare(t){return this.#u(t),this.getTime()-t.getTime()}delta(t){const e=this.compare(t);return new H(e)}getTime(){return(this.year?.duration||0)+(this.month?.duration||0)+(this.day?.duration||0)+(this.hour?.duration||0)+(this.minute?.duration||0)+(this.second?.duration||0)+(this.millisecond?.duration||0)}isEqual(t){return this.compare(t)===0}isBefore(t){return this.compare(t)<0}isAfter(t){return this.compare(t)>0}clone(){return new I(this.toSpec())}previous(){let t=this.clone();try{t.second=this.second.previous()}catch{try{t.minute=this.minute.previous()}catch{try{t.hour=this.hour.previous()}catch{try{t.day=this.day.previous()}catch{try{t.month=this.month.previous()}catch{t.year=this.year.previous()}}}}}return t}next(){let t=this.clone();try{t.second=this.second.next()}catch{try{t.minute=this.minute.next()}catch{try{t.hour=this.hour.next()}catch{try{t.day=this.day.next()}catch{try{t.month=this.month.next()}catch{t.year=this.year.next()}}}}}return t}toString(t=oe.instance){return t.render(this)}toSpec(){const t={},e=this.year?.toSpec();e&&(t.year=e);const r=this.month?.toSpec();r&&(t.month=r);const n=this.day?.toSpec();n&&(t.day=n);const o=this.hour?.toSpec();o&&(t.hour=o);const a=this.minute?.toSpec();a&&(t.minute=a);const u=this.second?.toSpec();u&&(t.second=u);const p=this.millisecond?.toSpec();p&&(t.millisecond=p);const c=this.timeshift?.toSpec();return c&&(t.timeshift=c),t}toJSON(){return this.toSpec()}}class Ge{static instance=new Ge;render(t){return(t.start?t.start.toString():"")+"/"+(t.end?t.end.toString():"")}}class $t{constructor(t,e){this.start=t,this.end=e}_start;get start(){return this._start}set start(t){if(typeof t=="string"&&(t=I.fromString(t)),t&&!(t instanceof I)&&!(t instanceof H))throw new B("Interval start is not a level 0 date or duration: "+t);this._start=t}_end;get end(){return this._end}set end(t){if(typeof t=="string"&&(t=I.fromString(t)),t&&!(t instanceof I)&&!(t instanceof H))throw new B("Interval end is not a level 0 date or duration: "+t);this._end=t}static fromString(t,e=l.get($t)){const{start:r,end:n}=e.parse(t);return new $t(r,n)}toString(t=Ge.instance){return t.render(this)}[Symbol.iterator](){let t=this.start;return{next:()=>{const e={done:t>this.end,value:t};return t++,e}}}}class _t extends q{static instance=new _t(J.default);constructor(t){super(),this.valueRenderer=t}render(t){return(this.valueRenderer?this.valueRenderer.render(t):super.render(t))+this.qualifier(t)}qualifier(t){return t.uncertain?t.approximate?"%":"?":t.approximate?"~":""}}class W extends j{#t;#e;constructor(t,e){super(t,e),this.#t=t.uncertain||!1,this.#e=t.approximate||!1}get uncertain(){return this.#t}set uncertain(t){return this.#t=t}get approximate(){return this.#e}set approximate(t){return this.#e=t}isCertainAndPrecise(){return!this.approximate&&!this.uncertain}isEqual(t){return this.isCertainAndPrecise()&&super.isEqual(t)}isBefore(t){return this.isCertainAndPrecise()&&super.isBefore(t)}isAfter(t){return this.isCertainAndPrecise()&&super.isAfter(t)}toString(t=_t.instance){return super.toString(t)}toSpec(){return{...super.toSpec(),uncertain:this.uncertain,approximate:this.approximate}}toJSON(){return this.toSpec()}}class $r extends kr{year=new N("year",-9999,9999,this.month);yearExtended=new N("year",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.month)}const ee=new $r;class nt extends W{constructor(t,e=ee.year){super(t,e)}static fromString(t,e=ee.year,r=l.get(nt)){const n=r.parse(t),o=n.value.start;if(t.startsWith("Y")&&(e=ee.yearExtended),o!==void 0){const a=new nt(Object.assign({...n},{value:Math.max(o,e.min)})),u=new nt(Object.assign({...n},{value:Math.min(n.value.end,e.max)}));return{start:a,end:u}}else return new nt(n,e)}}class Ir extends se{monthValidator=new Fr;validate(t){switch(t){case 21:case 22:case 23:case 24:return!0;default:return this.monthValidator.validate(t)}}}class st extends W{constructor(t,e=new N(f.month.name,1,24,f.day,new Ir)){super(t,e)}static fromString(t,e=l.get(st)){const r=e.parse(t),n=r.value.start;if(n!==void 0){let o=f.month;const a=new st(Object.assign({...r},{value:Math.max(n,o.min)})),u=new st(Object.assign({...r},{value:Math.min(r.value.end,o.max)}));return{start:a,end:u}}else return new st(r)}toString(t){return super.toString(t).padStart(2,"0")}}class ot extends W{constructor(t,e=f.day){super(t,e)}static fromString(t,e=l.get(ot)){const r=e.parse(t),n=r.value.start;if(n!==void 0){let o=f.day;const a=new ot(Object.assign({...r},{value:Math.max(n,o.min)})),u=new ot(Object.assign({...r},{value:Math.min(r.value.end,o.max)}));return{start:a,end:u}}else return new ot(r)}toString(t){return super.toString(t).padStart(2,"0")}}class it extends W{constructor(t,e=f.hour){super(t,e)}static fromString(t,e=l.get(it)){const r=e.parse(t),n=r.value.start;if(n!==void 0){let o=f.hour;const a=new it(Object.assign({...r},{value:Math.max(n,o.min)})),u=new it(Object.assign({...r},{value:Math.min(r.value.end,o.max)}));return{start:a,end:u}}else return new it(r)}}class at extends W{constructor(t,e=f.minute){super(t,e)}static fromString(t,e=l.get(at)){const r=e.parse(t),n=r.value.start;if(n!==void 0){const o=f.minute,a=new at(Object.assign({...r},{value:Math.max(n,o.min)})),u=new at(Object.assign({...r},{value:Math.min(r.value.end,o.max)}));return{start:a,end:u}}else return new at(r)}toString(t=_t.instance){return super.toString(t)}}class ut extends W{constructor(t,e=f.second){super(t,e)}static fromString(t,e=l.get(ut)){const r=e.parse(t),n=r.value.start;if(n!==void 0){const o=f.second,a=new ut(Object.assign({...r},{value:Math.max(n,o.min)})),u=new ut(Object.assign({...r},{value:Math.min(r.value.end,o.max)}));return{start:a,end:u}}else return new ut(r)}}class ht extends ct{static fromString(t,e=l.get(ht),r=void 0){return new ht(e.parse(t,r))}}class Cr extends Ne{constructor(t){super(t)}newYear(t){return new nt(t,this.units.year)}newMonth(t){return new st(t,this.units.month)}newDay(t){return new ot(t,this.units.day)}newHour(t){return new it(t,this.units.hour)}newMinute(t){return new at(t,this.units.minute)}newSecond(t){return new ut(t,this.units.second)}newMillisecond(t){return new mt(t,this.units.millisecond)}newTimeshift(t){return new ht(typeof t=="number"?t:t.value)}}const yn=new Cr(ee),bn=new Cr(Lt);class O extends I{constructor(t){super(t)}get factory(){return yn}get uncertain(){return this.year?.uncertain===!0||this.month?.uncertain===!0||this.day?.uncertain===!0||this.hour?.uncertain===!0||this.minute?.uncertain===!0||this.second?.uncertain===!0}get approximate(){return this.year?.approximate===!0||this.month?.approximate===!0||this.day?.approximate===!0||this.hour?.approximate===!0||this.minute?.approximate===!0||this.second?.approximate===!0}static fromDate(t){return new O({year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate(),hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),timeshift:I.timeshiftOf(t)})}static fromString(t,e=l.get(O)){const r=e.parse(t);return new O(r)}static newInstance(){const t=new Date().toISOString(),e=t.indexOf("."),r=t.substring(0,e)+t.substring(e+4);return O.fromString(r)}clone(){return new O(this.toSpec())}}const F=Object.freeze({year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",timeshift:"timeshift",uncertain:"uncertain",approximate:"approx"});class ae extends ie{static instance=new ae;render(t){return super.render(t)}}class k extends W{constructor(t){super(typeof t=="number"||t.hasOwnProperty("value")?t:{value:k.getValue(t,F.year)+k.getValue(t,F.month)+k.getValue(t,F.day)+k.getValue(t,F.hour)+k.getValue(t,F.minute)+k.getValue(t,F.second),uncertain:k.getBoolean(t,F.uncertain),approximate:k.getBoolean(t,"approximate")},Lt.millisecond)}static getBoolean(t,e){return t[e]||t[F.year+"s"]?.[e]||t[F.month+"s"]?.[e]||t[F.day+"s"]?.[e]||t[F.hour+"s"]?.[e]||t[F.minute+"s"]?.[e]||t[F.second+"s"]?.[e]||!1}static getValue(t,e){let r=0,n=t[e+"s"];if(n instanceof W?n=n.value:typeof t=="number"&&(n=t),n){const o=f[e];r=n*o.duration}return r}static toSpec(t,e=bn){return{...H.toSpec(t,e),uncertain:t.uncertain||!1,approximate:t.approximate||!1}}static fromString(t,e=l.get(k)){const r=e.parse(t);return new k(r)}static between(t,e){const r=e.getTime(),n=t.getTime();return new k(r-n)}toString(t=ae.instance){return super.toString(t)}toSpec(){return k.toSpec(this)}}class It extends $t{constructor(t,e){super(t,e)}get start(){return this._start}set start(t){if(typeof t=="string"&&(super.start=O.fromString(t)),t&&!(t instanceof O)&&!(t instanceof k))throw new B("Interval start is not a level 1 date or duration: "+t);this._start=t}get end(){return this._end}set end(t){if(typeof t=="string"&&(t=O.fromString(t)),t&&!(t instanceof O)&&!(t instanceof k))throw new B("Interval end is not a level 1 date or duration: "+t);this._end=t}static fromString(t,e=l.get(It)){const{start:r,end:n}=e.parse(t);return new It(r,n)}}class Ft extends W{uncertainComponent;approximateComponent;constructor(t,e){super(t,e),this.uncertainComponent=t.uncertainComponent||!1,this.approximateComponent=t.approximateComponent||!1}get uncertain(){return super.uncertain||this.uncertainComponent}set uncertain(t){return super.uncertain=t}get approximate(){return super.approximate||this.approximateComponent}set approximate(t){return super.approximate=t}get uncertainGroup(){return super.uncertain}get approximateGroup(){return super.approximate}toSpec(){return{...super.toSpec(),uncertain:this.uncertainGroup,approximate:this.approximateGroup,uncertainComponent:this.uncertainComponent,approximateComponent:this.approximateComponent}}toJSON(){return this.toSpec()}}class xn extends $r{year=new N("year",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.month)}const xe=new xn;class Z extends Ft{constructor(t,e=xe.year){super(t,e)}static fromString(t,e=xe.year,r=l.get(Z)){const n=r.parse(t),o=n.value.start;if(o!==void 0){const a=new Z(Object.assign({...n},{value:Math.max(o,e.min)})),u=new Z(Object.assign({...n},{value:Math.min(n.value.end,e.max)})),p={start:a,end:u},c=n.value.estimate;return c&&(p.estimate=c),p}else return new Z(n)}}class Mn extends Ir{validate(t){switch(t){case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:return!0;default:return super.validate(t)}}}class K extends Ft{constructor(t,e=new N(f.month.name,1,41,f.day,new Mn)){super(t,e)}static fromString(t,e=l.get(K)){const r=e.parse(t),n=r.value.start;if(n!==void 0){const o=f.month,a=new K(Object.assign({...r},{value:Math.max(n,o.min)})),u=new K(Object.assign({...r},{value:Math.min(r.value.end,o.max)}));return{start:a,end:u}}else return new K(r)}toString(t){return super.toString(t).padStart(2,"0")}}class Q extends Ft{constructor(t,e=f.day){super(t,e)}static fromString(t,e=l.get(Q)){const r=e.parse(t),n=r.value.start;if(n!==void 0){const o=f.day,a=new Q(Object.assign({...r},{value:Math.max(n,o.min)})),u=new Q(Object.assign({...r},{value:Math.min(r.value.end,o.max)}));return{start:a,end:u}}else return new Q(r)}toString(t){return super.toString(t).padStart(2,"0")}}class P extends Ft{constructor(t,e=f.hour){super(t,e)}static fromString(t,e=l.get(P)){const r=e.parse(t),n=r.value.start;if(n!==void 0){const o=f.hour,a=new P(Object.assign({...r},{value:Math.max(n,o.min)})),u=new P(Object.assign({...r},{value:Math.min(r.value.end,o.max)}));return{start:a,end:u}}else return new P(r)}}class L extends Ft{constructor(t,e=f.minute){super(t,e)}static fromString(t,e=l.get(L)){const r=e.parse(t),n=r.value.start;if(n!==void 0){const o=f.minute,a=new L(Object.assign({...r},{value:Math.max(n,o.min)})),u=new L(Object.assign({...r},{value:Math.min(r.value.end,o.max)}));return{start:a,end:u}}else return new L(r)}}class _ extends Ft{constructor(t,e=f.second){super(t,e)}static fromString(t,e=f.second,r=l.get(_)){const n=r.parse(t),o=n.value.start;if(o!==void 0){const a=new _(Object.assign({...n},{value:Math.max(o,e.min)})),u=new _(Object.assign({...n},{value:Math.min(n.value.end,e.max)}));return{start:a,end:u}}else return new _(n,e)}}class Ur extends ht{}class En extends _t{qualifier(){return""}}class rt extends oe{static instance=new rt;static valueRenderer=new En(J.default);static names=["year","month","day","hour","minute","second"];static qualifier(t,e){return t?e?"%":"?":e?"~":""}renderComponent(t,e){const r=t[e],n=rt.names.slice(rt.names.indexOf(e)+1).map(u=>t[u]).filter(Boolean),o=rt.qualifier(r.uncertainComponent,r.approximateComponent),a=rt.qualifier(r.uncertainGroup&&!r.uncertainComponent&&!n.some(u=>u.uncertain),r.approximateGroup&&!r.approximateComponent&&!n.some(u=>u.approximate));return o+r.toString(rt.valueRenderer)+a}}class Vr extends Ne{constructor(t){super(t)}newYear(t){return new Z(t,this.units.year)}newMonth(t){return new K(t,this.units.month)}newDay(t){return new Q(t,this.units.day)}newHour(t){return new P(t,this.units.hour)}newMinute(t){return new L(t,this.units.minute)}newSecond(t){return new _(t,this.units.second)}newMillisecond(t){return new mt(t,this.units.millisecond)}newTimeshift(t){return new Ur(typeof t=="number"?t:t.value)}}const Nn=new Vr(xe),Gn=new Vr(Lt);class z extends O{constructor(t){super(t)}toString(t=rt.instance){return super.toString(t)}get year(){return super.year}set year(t){super.year=t}get month(){return super.month}set month(t){super.month=t}get factory(){return Nn}static fromDate(t){return new z({year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate(),hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),timeshift:I.timeshiftOf(t)})}static fromString(t,e=l.get(z)){const r=e.parse(t);return new z(r)}static newInstance(){const t=new Date().toISOString(),e=t.indexOf("."),r=t.substring(0,e)+t.substring(e+4);return z.fromString(r)}clone(){return new z(this.toSpec())}}class tt{regExp;constructor(t,e){this.name=t,this.regExp=new RegExp(`^(?:${e})$`)}regexGroups(t){const e=this.regExp.exec(t);if(!e)throw new B(`Invalid ${this.name} "${t}"`);return e.groups}parseGroups(t){throw new dt(`${this.constructor.name} is abstract`)}parse(t){const e=this.regexGroups(t);return this.parseGroups(e)}}class St extends ae{static instance=new St;static designators=[["years","Y"],["months","MM"],["days","D"],["hours","H"],["minutes","M"],["seconds","S"]];static qualifier(t,e){return t?e?"%":"?":e?"~":""}render(t){const e=St.qualifier(t.uncertainDuration,t.approximateDuration);if(!t.hasQualifiedComponent)return e+super.render(t);let r=e+"P";for(const[n,o]of St.designators){const a=t.components[n];a&&(r+=St.qualifier(a.uncertainComponent,a.approximateComponent)+a.value+o)}return r}}class A extends k{#t;constructor(t){if(super(typeof t=="number"?t:{value:A.valueFromSpec(t),uncertain:t.uncertain===!0,approximate:t.approximate===!0},Lt.millisecond),typeof t!="number"){const e={};for(const r of A.componentNames)t[r]instanceof W&&(e[r]=t[r]);Object.keys(e).length>0&&(this.#t=e)}}static componentNames=["years","months","days","hours","minutes","seconds"];get components(){return this.#t}#e(t){return this.#t?Object.values(this.#t).some(e=>e[t]):!1}get uncertainDuration(){return super.uncertain}get approximateDuration(){return super.approximate}get uncertain(){return super.uncertain||this.#e("uncertain")}set uncertain(t){super.uncertain=t}get approximate(){return super.approximate||this.#e("approximate")}set approximate(t){super.approximate=t}get hasQualifiedComponent(){return this.#t?Object.values(this.#t).some(t=>t.uncertainComponent||t.approximateComponent):!1}static valueFromSpec(t){return A.getValue(t,F.year)+A.getValue(t,F.month)+A.getValue(t,F.day)+A.getValue(t,F.hour)+A.getValue(t,F.minute)+A.getValue(t,F.second)}static toSpec(t,e=Gn){const r=k.toSpec(t,e);if(t instanceof A&&t.hasQualifiedComponent)for(const n of A.componentNames)delete r[n],t.components[n]&&(r[n]=t.components[n]);return r}static fromString(t,e=l.get(A)){const r=e.parse(t);return new A(r)}static between(t,e){const r=e.getTime(),n=t.getTime();return new A(r-n)}toSpec(){return A.toSpec(this)}toString(t=St.instance){return super.toString(t)}}class Ct extends It{get start(){return this._start}set start(t){if(typeof t=="string"&&(super.start=z.fromString(t)),t&&!(t instanceof z)&&!(t instanceof A))throw new B("Interval start is not a level 2 date or duration: "+t);this._start=t}get end(){return this._end}set end(t){if(typeof t=="string"&&(t=z.fromString(t)),t&&!(t instanceof z)&&!(t instanceof A))throw new B("Interval end is not a level 2 date or duration: "+t);this._end=t}static fromString(t,e=l.get(Ct)){const{start:r,end:n}=e.parse(t);return new Ct(r,n)}}class re extends Set{constructor(t,e){super(t),this.exclusive=e}has(t){const e=t.toString().replace("..","/");for(const r of this)if(r.toString()===e)return!0;return!1}static fromString(t,e=l.get(re)){const{exclusive:r,values:n}=e.parse(t);return new re(n,r)}}class et extends tt{constructor(t,e){super(t,e)}static read(t){return{value:t?parseInt(t,10):void 0}}parseGroups(t){return et.read(t[this.name])}parse(t){if(t.startsWith("-"))throw new B(`${this.name} cannot be negative`);return super.parse(t)}}class i{static groupName(...t){return t.reduce((e,r)=>e?e+r.charAt(0).toUpperCase()+r.substring(1):r,"")}static group(t,...e){return`(?<${t}>${e.join("")})`}static optional(t){return t+"?"}static nonCapturingGroup(...t){return`(?:${t.join("")})`}static optionalGroup(t,...e){return i.optional(i.group(t,...e))}static optionalNonCapturingGroup(...t){return i.optional(i.nonCapturingGroup(...t))}static numberGroup(t,e,r,n="\\d"){return i.group(t,`${r||""}[${n}]${e}`)}}const Ie="yearValue";class Ut extends et{static format(t=""){return i.numberGroup(i.groupName(t,Ie),"{4}",void 0)}constructor(){super(Ie,Ut.format())}}const Ce="monthValue";class Vt extends et{static format(t=""){return i.numberGroup(i.groupName(t,Ce),"{1,2}",void 0)}constructor(){super(Ce,Vt.format())}}const Ue="dayValue";class xt extends et{static format(t=""){return i.numberGroup(i.groupName(t,Ue),"{1,2}",void 0)}constructor(){super(Ue,xt.format())}}const Ve="hourValue";class Mt extends et{static format(t=""){return i.numberGroup(i.groupName(t,Ve),"{1,2}",void 0)}constructor(){super(Ve,Mt.format())}}const je="minuteValue";class jt extends et{static format(t=""){return i.numberGroup(i.groupName(t,je),"{1,2}",void 0)}constructor(){super(je,jt.format())}}const Oe="secondValue";class Ot extends et{static format(t=""){return i.numberGroup(i.groupName(t,Oe),"{1,2}",void 0)}constructor(){super(Oe,Ot.format())}}const ze="timeshiftValue",Be="shiftHour",Ye="shiftMinute";class kt extends tt{static format(t=""){return $e.map(e=>e.name).join("|")+"|"+i.nonCapturingGroup(i.group(t+Be,i.numberGroup(i.groupName(t,ze),"{2}","[+-]")),i.optionalNonCapturingGroup(":?",i.numberGroup(i.groupName(t,Ye),"{2}",void 0)))}constructor(){super(ze,kt.format())}parse(t,e){let r=0;const n=$e.find(o=>o.name===t);if(n){if(typeof n.timeshift=="function")try{return n.timeshift(e??{})}catch(o){throw new B(`The time zone ${t} depends on the date: ${o.message}`)}t=n.timeshift}if(t!=="Z"){const o=this.regexGroups(t),a=o[Be];a&&(r+=parseInt(a,10)*60);const u=o[Ye];u&&(r+=parseInt(u,10))}return r}}const He="year",qe="month",Xe="day",We="hour",Je="minute",De="second",Ze="millisecond",Ke="timeshift";class pt extends tt{static format(t=""){return i.group(i.groupName(t,He),Ut.format(t))+i.optionalNonCapturingGroup("-",i.group(i.groupName(t,qe),Vt.format(t)),i.optionalNonCapturingGroup("-",i.group(i.groupName(t,Xe),xt.format(t)),i.optionalNonCapturingGroup("[T ]",i.group(i.groupName(t,We),Mt.format(t)),":?",i.group(i.groupName(t,Je),jt.format(t)),i.optionalNonCapturingGroup(":",i.group(i.groupName(t,De),Ot.format(t)),i.optionalNonCapturingGroup("[.,]",i.group(i.groupName(t,Ze),"\\d+"))),"\\s*",i.optionalGroup(i.groupName(t,Ke),kt.format(t)))))}constructor(){super("date",pt.format())}parse(t){const e=this.regexGroups(t),r=e[He],n=e[qe],o=e[Xe],a=e[We],u=e[Je],p=e[De],c=e[Ze],d=e[Ke],m=r?new Et(Ut.read(r)):void 0,w=n?Vt.read(n):void 0;return{year:m,month:w?new Nt(w,wt.create(w.value,m?.value)):void 0,day:o?new Gt(xt.read(o)):void 0,hour:a?new vt(Mt.read(a)):void 0,minute:u?new Tt(jt.read(u)):void 0,second:p?new At(Ot.read(p)):void 0,millisecond:c?mt.parseFraction(c):void 0,timeshift:d?ct.fromString(d,new kt,{year:m?.value,month:w?.value,day:o?xt.read(o).value:void 0,hour:a?Mt.read(a).value:void 0}):void 0}}}const Qe="years",me="months",vn="days",Pe="hours",Le="minutes",_e="seconds";class ve extends tt{static format(t=""){return"P"+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,Qe),"+",void 0,"\\d"),"Y")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,me),"+",void 0,"\\d"),"MM")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,vn),"+",void 0,"\\d"),"D")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,Pe),"+",void 0,"\\d"),"H")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,Le),"+",void 0,"\\d"),"M")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,_e),"+",void 0,"\\d"),"S")}constructor(){super("duration",ve.format())}parseGroups(t){return{years:t[Qe],months:t[me],days:t[me],hours:t[Pe],minutes:t[Le],seconds:t[_e]}}}const de="start",pe="end";class Te extends tt{static format=i.group(de,pt.format(de))+"/"+i.group(pe,pt.format(pe));constructor(){super("interval",Te.format)}parse(t){const e=this.regexGroups(t),r=e[de],n=e[pe];return{start:r?I.fromString(r,new pt):void 0,end:n?I.fromString(n,new pt):void 0}}}l.register(I,()=>new pt);l.register(Gt,()=>new xt);l.register(H,()=>new ve);l.register(vt,()=>new Mt);l.register($t,()=>new Te);l.register(Tt,()=>new jt);l.register(Nt,()=>new Vt);l.register(At,()=>new Ot);l.register(ct,()=>new kt);l.register(Et,()=>new Ut);class G extends et{static uncertainGroup="uncertain";static approximateGroup="approx";static uncertainAndApproximateGroup=G.uncertainGroup+G.approximateGroup;constructor(t,e){super(t,e)}static qualifierFormat(t,e){return i.optionalGroup(t,`\\${e}`)}static formatSuffix(t){return this.qualifierFormat(i.groupName(G.uncertainGroup,t),"?")+this.qualifierFormat(i.groupName(G.approximateGroup,t),"~")+this.qualifierFormat(i.groupName(G.uncertainAndApproximateGroup,t),"%")}static numberFormat(t,e,r){return i.numberGroup(t,e,r,"\\dX")+this.formatSuffix(t)}getValueAndSign(t){let e=t[this.name],r;return e.charAt(0)==="-"?(r=-1,e=e.substring(1)):r=1,{valueStr:e,sign:r}}parseGroups(t){const{valueStr:e,sign:r}=this.getValueAndSign(t);let n=0,o;for(o=0;o<e.length;o++){const c=e[o];if(c==="X")break;n=n*10+parseInt(c,10)}if(o<e.length){let c=1;for(let w=0;w<e.length-o;w++)c*=10;const d=r*n*c,m=d+c-1;n={start:d,end:m}}else n*=r;const a=t[i.groupName(G.uncertainAndApproximateGroup,this.name)],u=t[i.groupName(G.approximateGroup,this.name)]||a,p=t[i.groupName(G.uncertainGroup,this.name)]||a;return{value:n,approximate:u?!!u:!1,uncertain:p?!!p:!1}}}const tr="yearValue";class zt extends G{constructor(){super(tr,zt.format())}static format(t=""){return"Y?"+G.numberFormat(i.groupName(t,tr),"+","[-]?")}parse(t){const e=this.regexGroups(t);return this.parseGroups(e)}}const er="monthValue";class Bt extends G{static format(t=""){return G.numberFormat(i.groupName(t,er),"{1,2}",void 0)}constructor(){super(er,Bt.format())}}const rr="dayValue";class Yt extends G{static format(t=""){return G.numberFormat(i.groupName(t,rr),"{1,2}",void 0)}constructor(){super(rr,Yt.format())}}const nr="hourValue";class Ht extends G{static format(t=""){return G.numberFormat(i.groupName(t,nr),"{1,2}",void 0)}constructor(){super(nr,Ht.format())}}const sr="minuteValue";class qt extends G{static format(t=""){return G.numberFormat(i.groupName(t,sr),"{1,2}",void 0)}constructor(){super(sr,qt.format())}}const or="secondValue";class Xt extends G{static format(t=""){return G.numberFormat(i.groupName(t,or),"{1,2}",void 0)}constructor(){super(or,Xt.format())}}class Wt extends kt{}class v extends tt{static yearGroup="year";static monthGroup="month";static dayGroup="day";static hourGroup="hour";static minuteGroup="minute";static secondGroup="second";static millisecondGroup="millisecond";static timeshiftGroup="timeshift";constructor(t=v.format()){super("date",t)}static format(t=""){return i.group(i.groupName(t,v.yearGroup),zt.format(t))+i.optionalNonCapturingGroup("-",i.group(i.groupName(t,v.monthGroup),Bt.format(t)),i.optionalNonCapturingGroup("-",i.group(i.groupName(t,v.dayGroup),Yt.format(t)),i.optionalNonCapturingGroup("[T ]",i.group(i.groupName(t,v.hourGroup),Ht.format(t)),":",i.group(i.groupName(t,v.minuteGroup),qt.format(t)),i.optionalNonCapturingGroup(":",i.group(i.groupName(t,v.secondGroup),Xt.format(t)),i.optionalNonCapturingGroup("[.,]",i.group(i.groupName(t,v.millisecondGroup),"\\d+"))),i.optionalGroup(i.groupName(t,v.timeshiftGroup),Wt.format(t)))))}parseGroups(t){const e=t[v.millisecondGroup],r=e?mt.parseFraction(e):void 0,n=t[v.secondGroup],o=n?ut.fromString(n,new Xt):void 0,a=t[v.minuteGroup];let u;a&&(u=at.fromString(a,new qt),u.uncertain=u.uncertain||o?.uncertain||!1,u.approximate=u.approximate||o?.approximate||!1);const p=t[v.hourGroup];let c;p&&(c=it.fromString(p,new Ht),c.uncertain=c.uncertain||u?.uncertain||!1,c.approximate=c.approximate||u?.approximate||!1);const d=t[v.dayGroup];let m;d&&(m=ot.fromString(d,new Yt),m.uncertain=m.uncertain||c?.uncertain||!1,m.approximate=m.approximate||c?.approximate||!1);const w=t[v.monthGroup];let y;w&&(y=st.fromString(w,new Bt),y.uncertain=y.uncertain||m?.uncertain||!1,y.approximate=y.approximate||m?.approximate||!1);const b=t[v.yearGroup];let S;b&&(S=nt.fromString(b,void 0,new zt),S.uncertain=S.uncertain||y?.uncertain||!1,S.approximate=S.approximate||y?.approximate||!1);const T=t[v.timeshiftGroup],g=T?ht.fromString(T,new Wt,{year:S?.value,month:y?.value,day:m?.value,hour:c?.value}):void 0;return{year:S,month:y,day:m,hour:c,minute:u,second:o,millisecond:r,timeshift:g}}}const ir="years",ar="months",ur="days",cr="hours",mr="minutes",dr="seconds";class lt extends G{static format(t=""){return"P"+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,ir),"+",void 0,"\\d"),"Y")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,ar),"+",void 0,"\\d"),"MM")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,ur),"+",void 0,"\\d"),"D")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,cr),"+",void 0,"\\d"),"H")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,mr),"+",void 0,"\\d"),"M")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,dr),"+",void 0,"\\d"),"S")+this.formatSuffix(t)}constructor(){super("duration",lt.format())}parseGroups(t){return{years:t[ir],months:t[ar],days:t[ur],hours:t[cr],minutes:t[mr],seconds:t[dr],uncertain:!!t[G.uncertainGroup],approximate:!!t[G.approximateGroup]}}}const Tn="dates",le="start",he="end",pr="durations",fe="durationMin",ge="durationMax";class Ae extends tt{static format=i.group(Tn,i.optionalGroup(le,i.group("openStart","\\.\\.")+"|"+v.format(le))+"/"+i.optionalGroup(he,i.group("openEnd","\\.\\.")+"|"+v.format(he)))+"|"+i.group(pr,i.group(fe,lt.format(fe))+"/"+i.group(ge,lt.format(ge)));constructor(t="interval",e=Ae.format){super(t,e)}parseGroups(t){let e,r;if(t[pr]){const o=t[fe];e=k.fromString(o,new lt);const a=t[ge];r=k.fromString(a,new lt)}else{const o=t[le];switch(o){case void 0:e=null;break;case"..":e=void 0;break;default:e=O.fromString(o,new v)}const a=t[he];switch(a){case void 0:r=null;break;case"..":r=void 0;break;default:r=O.fromString(a,new v)}}return{start:e,end:r}}}l.register(O,()=>new v);l.register(ot,()=>new Yt);l.register(k,()=>new lt);l.register(it,()=>new Ht);l.register(It,()=>new Ae);l.register(at,()=>new qt);l.register(st,()=>new Bt);l.register(ut,()=>new Xt);l.register(ht,()=>new Wt);l.register(nt,()=>new zt);class M extends G{static uncertainGroup="uncertain1";static approximateGroup="approx1";static uncertainAndApproximateGroup=M.uncertainGroup+M.approximateGroup;constructor(t,e){super(t,e)}static numberFormat(t,e,r){return this.qualifierFormat(i.groupName(M.uncertainGroup,t),"?")+this.qualifierFormat(i.groupName(M.approximateGroup,t),"~")+this.qualifierFormat(i.groupName(M.uncertainAndApproximateGroup,t),"%")+G.numberFormat(t,e,r)}parseGroups(t){const e=super.parseGroups(t),r=t[i.groupName(M.uncertainAndApproximateGroup,this.name)];return(t[i.groupName(M.uncertainGroup,this.name)]||r)&&(e.uncertainComponent=!0),(t[i.groupName(M.approximateGroup,this.name)]||r)&&(e.approximateComponent=!0),e}}const Rt="yearValue",lr="exp",hr="signif";class Jt extends M{constructor(){super(Rt,Jt.format())}static format(t=""){return"Y?"+i.nonCapturingGroup(i.group(i.groupName(t,lr),"[-]?\\d+E\\d+")+"|"+M.numberFormat(i.groupName(t,Rt),"+","[-]?")+i.optionalGroup(i.groupName(t,hr),"S\\d+"))}parseGroups(t){const e=t[lr];if(e){const a=e.indexOf("E"),u=parseInt(e.substring(a+1),10),c=parseInt(e.substring(0,a),10)*Math.pow(10,u);t[Rt]=c.toString()}const r=t[hr],n=t[Rt];if(r){const a=parseInt(r.substring(1),10),{valueStr:u,sign:p}=this.getValueAndSign(t);let c="";for(let d=0;d<u.length;d++)c+=d<a?u.charAt(d):"X";t[Rt]=(p<0?"-":"")+c}const o=super.parseGroups(t);return r&&(o.value.estimate=parseInt(n,10)),o}parse(t){const e=this.regexGroups(t);return this.parseGroups(e)}}const fr="monthValue";class Dt extends M{static format(t=""){return M.numberFormat(i.groupName(t,fr),"{1,2}",void 0)}constructor(){super(fr,Dt.format())}}const gr="dayValue";class Zt extends M{static format(t=""){return M.numberFormat(i.groupName(t,gr),"{1,2}",void 0)}constructor(){super(gr,Zt.format())}}const wr="hourValue";class Kt extends M{static format(t=""){return M.numberFormat(i.groupName(t,wr),"{1,2}",void 0)}constructor(){super(wr,Kt.format())}}const Sr="secondValue";class Qt extends M{static format(t=""){return M.numberFormat(i.groupName(t,Sr),"{1,2}",void 0)}constructor(){super(Sr,Qt.format())}}const yr="minuteValue";class Pt extends M{static format(t=""){return M.numberFormat(i.groupName(t,yr),"{1,2}",void 0)}constructor(){super(yr,Pt.format())}}class An extends Wt{}class E extends tt{static yearGroup=v.yearGroup;static monthGroup="month";static dayGroup="day";static hourGroup="hour";static minuteGroup="minute";static secondGroup="second";static millisecondGroup="millisecond";static timeshiftGroup="timeshift";constructor(){super("date",E.format())}static format(t=""){return i.group(i.groupName(t,E.yearGroup),Jt.format(t))+i.optionalNonCapturingGroup("-",i.group(i.groupName(t,E.monthGroup),Dt.format(t)),i.optionalNonCapturingGroup("-",i.group(i.groupName(t,E.dayGroup),Zt.format(t)),i.optionalNonCapturingGroup("[T ]",i.group(i.groupName(t,E.hourGroup),Kt.format(t)),":",i.group(i.groupName(t,E.minuteGroup),Pt.format(t)),i.optionalNonCapturingGroup(":",i.group(i.groupName(t,E.secondGroup),Qt.format(t)),i.optionalNonCapturingGroup("[.,]",i.group(i.groupName(t,E.millisecondGroup),"\\d+"))),i.optionalGroup(i.groupName(t,E.timeshiftGroup),An.format(t)))))}parseGroups(t){const e=t[E.millisecondGroup],r=e?mt.parseFraction(e):void 0,n=t[E.secondGroup];let o;n&&(o=_.fromString(n,void 0,new Qt),o.uncertain=o?.uncertain||!1,o.approximate=o?.approximate||!1);const a=t[E.minuteGroup];let u;a&&(u=L.fromString(a,new Pt),u.uncertain=u.uncertain||o?.uncertain||!1,u.approximate=u.approximate||o?.approximate||!1);const p=t[E.hourGroup];let c;p&&(c=P.fromString(p,new Kt),c.uncertain=c.uncertain||u?.uncertain||!1,c.approximate=c.approximate||u?.approximate||!1);const d=t[E.dayGroup];let m;d&&(m=Q.fromString(d,new Zt),m.uncertain=m.uncertain||c?.uncertain||!1,m.approximate=m.approximate||c?.approximate||!1);const w=t[E.monthGroup];let y;w&&(y=K.fromString(w,new Dt),y.uncertain=y.uncertain||m?.uncertain||!1,y.approximate=y.approximate||m?.approximate||!1);const b=t[E.yearGroup];let S;b&&(S=Z.fromString(b,void 0,new Jt),S.uncertain=S.uncertain||y?.uncertain||!1,S.approximate=S.approximate||y?.approximate||!1);const T=t[E.timeshiftGroup],g=T?Ur.fromString(T,new Wt,{year:S?.value,month:y?.value,day:m?.value,hour:c?.value}):void 0;return{year:S,month:y,day:m,hour:c,minute:u,second:o,millisecond:r,timeshift:g}}}const br="durationValue";class ke extends M{static format(t=""){return"^"+M.numberFormat(i.groupName(t,br),"+",void 0)}constructor(){super(br,ke.format())}}class kn extends Ee{millisecond=new N("millisecond",0,Number.MAX_SAFE_INTEGER,void 0);second=new N("second",0,Number.MAX_SAFE_INTEGER,this.millisecond);minute=new N("minute",0,Number.MAX_SAFE_INTEGER,this.second);hour=new N("hour",0,Number.MAX_SAFE_INTEGER,this.minute);day=new N("day",1,Number.MAX_SAFE_INTEGER,this.hour);month=new N("month",1,Number.MAX_SAFE_INTEGER,this.day);year=new N("year",0,Number.MAX_SAFE_INTEGER,this.month)}const ft=new kn;class h extends M{static yearsGroup="years";static monthsGroup="months";static isoMonthsGroup="isoMonths";static daysGroup="days";static hoursGroup="hours";static minutesGroup="minutes";static secondsGroup="seconds";static durationGroup="duration";static suffixGroup="durationSuffix";static componentParser=new ke;static componentFormat(t,e,r,n,o=""){const a=i.group(i.groupName(t,h.quantityGroup(e)),M.numberFormat(i.groupName(t,r),"+",void 0,"\\d"));return i.group(i.groupName(t,e),a,n,o)}static quantityGroup(t){return t+"Quantity"}static isoMonthsLookahead="(?=[?~%]?\\d+D|T)";constructor(){super("duration",h.format())}static format(t=""){const e=i.groupName(t,h.durationGroup);return this.qualifierFormat(i.groupName(M.uncertainGroup,e),"?")+this.qualifierFormat(i.groupName(M.approximateGroup,e),"~")+this.qualifierFormat(i.groupName(M.uncertainAndApproximateGroup,e),"%")+"P"+i.optional(h.componentFormat(t,h.yearsGroup,E.yearGroup,"Y"))+i.optionalNonCapturingGroup(h.componentFormat(t,h.monthsGroup,E.monthGroup,"MM")+"|"+h.componentFormat(t,h.isoMonthsGroup,"isoMonth","M",h.isoMonthsLookahead))+i.optional(h.componentFormat(t,h.daysGroup,E.dayGroup,"D"))+"T?"+i.optional(h.componentFormat(t,h.hoursGroup,E.hourGroup,"H"))+i.optional(h.componentFormat(t,h.minutesGroup,E.minuteGroup,"M"))+i.optional(h.componentFormat(t,h.secondsGroup,E.secondGroup,"S"))+i.optionalGroup(i.groupName(t,h.suffixGroup),"[?~%]")}static parseComponent(t,e,r){const n=h.componentParser.parse(t);return new e(n,r)}parseGroups(t){const e=t[h.quantityGroup(h.secondsGroup)];let r;e&&(r=h.parseComponent(e,_,ft.second),r.uncertain=!!t[i.groupName(M.uncertainGroup,h.secondsGroup)]||!1,r.approximate=!!t[i.groupName(M.approximateGroup,h.secondsGroup)]||!1);const n=t[h.quantityGroup(h.minutesGroup)];let o;n&&(o=h.parseComponent(n,L,ft.minute),o.uncertain=o.uncertain||r?.uncertain||!1,o.approximate=o.approximate||r?.approximate||!1);const a=t[h.quantityGroup(h.hoursGroup)];let u;a&&(u=h.parseComponent(a,P,ft.hour),u.uncertain=u.uncertain||o?.uncertain||!1,u.approximate=u.approximate||o?.approximate||!1);const p=t[h.quantityGroup(h.daysGroup)];let c;p&&(c=h.parseComponent(p,Q,ft.day),c.uncertain=c.uncertain||u?.uncertain||!1,c.approximate=c.approximate||u?.approximate||!1);const d=t[h.quantityGroup(h.monthsGroup)]||t[h.quantityGroup(h.isoMonthsGroup)];let m;d&&(m=h.parseComponent(d,K,ft.month),m.uncertain=m.uncertain||c?.uncertain||!1,m.approximate=m.approximate||c?.approximate||!1);const w=t[h.quantityGroup(h.yearsGroup)];let y;w&&(y=h.parseComponent(w,Z,ft.year),y.uncertain=y.uncertain||m?.uncertain||!1,y.approximate=y.approximate||m?.approximate||!1);const b=t[h.suffixGroup],S=!!t[i.groupName(M.uncertainAndApproximateGroup,h.durationGroup)]||b==="%",T=S||!!t[i.groupName(M.uncertainGroup,h.durationGroup)]||b==="?",g=S||!!t[i.groupName(M.approximateGroup,h.durationGroup)]||b==="~";return{years:y,months:m,days:c,hours:u,minutes:o,seconds:r,uncertain:T,approximate:g}}}const Fn="dates",we="start",Se="end",xr="durations",ye="durationMin",be="durationMax";class ue extends tt{static format=i.group(Fn,i.optionalGroup(we,i.group("openStart","\\.\\.")+"|"+E.format(we))+"/"+i.optionalGroup(Se,i.group("openEnd","\\.\\.")+"|"+E.format(Se)))+"|"+i.group(xr,i.group(ye,h.format(ye))+"/"+i.group(be,h.format(be)));constructor(t="interval",e=ue.format){super(t,e)}parseGroups(t){let e,r;if(t[xr]){const o=t[ye];e=A.fromString(o,new h);const a=t[be];r=A.fromString(a,new h)}else{const o=t[we];switch(o){case void 0:e=null;break;case"..":e=void 0;break;default:e=z.fromString(o,new E)}const a=t[Se];switch(a){case void 0:r=null;break;case"..":r=void 0;break;default:r=z.fromString(a,new E)}}return{start:e,end:r}}}class Rn{parse(t){t=t.trim();const e=t.startsWith("["),n=t.substring(1,t.length-1).split(","),o=[];for(const a of n){let u;a.includes("..")?u=Ct.fromString(a.replace("..","/"),new ue):u=z.fromString(a,new E),o.push(u)}return{values:o,exclusive:e}}}l.register(z,()=>new E);l.register(Q,()=>new Zt);l.register(A,()=>new h);l.register(P,()=>new Kt);l.register(Ct,()=>new ue);l.register(L,()=>new Pt);l.register(K,()=>new Dt);l.register(_,()=>new Qt);l.register(re,()=>new Rn);l.register(Z,()=>new Jt);class X{constructor(t){this.preferences=t}read(t){var e,r;if(t===void 0)return;if(typeof t=="string")return t===""?void 0:t;for(const o of this.preferences){const a=(e=t[o])!==null&&e!==void 0?e:t[X.base(o)];if(a)return a}const n=new Set(this.preferences.map(o=>X.base(o)));for(const[o,a]of Object.entries(t))if(a&&n.has(X.base(o)))return a;return(r=Object.values(t).find(o=>o))!==null&&r!==void 0?r:void 0}write(t,e,r){var n,o;const a=e?.trim()?e.trim():void 0;if(t===void 0||typeof t=="string")return a;const u={...t},p=(o=(n=Object.keys(u).find(c=>c===r))!==null&&n!==void 0?n:Object.keys(u).find(c=>X.base(c)===X.base(r)))!==null&&o!==void 0?o:r;return a===void 0?delete u[p]:u[p]=a,Object.keys(u).length===0?void 0:u}static base(t){return t.toLowerCase().split("-")[0]}}X.any=new X([]);var Mr;(function(s){s.abductee="abductee",s.actor="actor",s.artist="artist",s.anthropologist="anthropologist",s.archeologist="archeologist",s.astronaut="astronaut",s.astronomer="astronomer",s.astrologist="astrologist",s.astrophysicist="astrophysicist",s.banker="banker",s.barman="barman",s.biologist="biologist",s.biochemist="biochemist",s.biophysicist="biophysicist",s.bishop="bishop",s.businessman="businessman",s.botanist="botanist",s.cameraman="cameraman",s.chemist="chemist",s.contactee="contactee",s.cryptozoologist="cryptozoologist",s.dentist="dentist",s.director="director",s.diplomat="diplomat",s.diver="diver",s.electronics="electronics",s.engineer="engineer",s.ethnologist="ethnologist",s.exobiologist="exobiologist",s.farmer="farmer",s.firefighter="firefighter",s.flightAttendant="flightAttendant",s.geologist="geologist",s.geophysicist="geophysicist",s.geographer="geographer",s.historian="historian",s.houseWife="houseWife",s.hypnotherapist="hypnotherapist",s.illusionist="illusionist",s.journalist="journalist",s.judge="judge",s.lawyer="lawyer",s.leader="leader",s.librarian="librarian",s.logger="logger",s.mathematician="mathematician",s.mechanic="mechanic",s.meteorologist="meteorologist",s.military="military",s.musician="musician",s.neurologist="neurologist",s.neuroscientist="neuroscientist",s.neuropsychiatrist="neuropsychiatrist",s.nurse="nurse",s.oceanographer="oceanographer",s.painter="painter",s.parapsychologist="parapsychologist",s.philosopher="philosopher",s.photographer="photographer",s.physician="physician",s.physicist="physicist",s.pilot="pilot",s.politician="politician",s.policeman="policeman",s.priest="priest",s.producer="producer",s.prospector="prospector",s.psychologist="psychologist",s.psychiatrist="psychiatrist",s.radioastronomer="radioastronomer",s.radioamateur="radioamateur",s.salesman="salesman",s.sailor="sailor",s.sociologist="sociologist",s.softwareEngineer="softwareEngineer",s.stuntman="stuntman",s.taxiDriver="taxiDriver",s.teacher="teacher",s.telegrapher="telegrapher",s.truckDriver="truckDriver",s.ufologist="ufologist",s.ufoWitness="ufoWitness",s.ufoWitness2="ufoWitness2",s.worker="worker",s.writer="writer"})(Mr||(Mr={}));var Er;(function(s){s.neutral="neutral",s.male="male",s.female="female"})(Er||(Er={}));const $n="modulepreload",In=function(s,t){return new URL(s,t).href},Nr={},te=function(t,e,r){let n=Promise.resolve();if(e&&e.length>0){let a=function(d){return Promise.all(d.map(m=>Promise.resolve(m).then(w=>({status:"fulfilled",value:w}),w=>({status:"rejected",reason:w}))))};const u=document.getElementsByTagName("link"),p=document.querySelector("meta[property=csp-nonce]"),c=p?.nonce||p?.getAttribute("nonce");n=a(e.map(d=>{if(d=In(d,r),d in Nr)return;Nr[d]=!0;const m=d.endsWith(".css"),w=m?'[rel="stylesheet"]':"";if(!!r)for(let S=u.length-1;S>=0;S--){const T=u[S];if(T.href===d&&(!m||T.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${d}"]${w}`))return;const b=document.createElement("link");if(b.rel=m?"stylesheet":$n,m||(b.as="script"),b.crossOrigin="",b.href=d,c&&b.setAttribute("nonce",c),document.head.appendChild(b),m)return new Promise((S,T)=>{b.addEventListener("load",S),b.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${d}`)))})}))}function o(a){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=a,window.dispatchEvent(u),!u.defaultPrevented)throw a}return n.then(a=>{for(const u of a||[])u.status==="rejected"&&o(u.reason);return t().catch(o)})};class Cn extends Error{constructor(t,e){super(t),this.cause=e}}class Fe extends Cn{constructor(t=Fe.defaultMessage,e){super(t,e)}}Fe.defaultMessage="Assertion failed";var Gr;(function(s){s.country="country",s.region="region",s.department="department",s.city="city",s.company="company"})(Gr||(Gr={}));var vr;(function(s){s.at="at",s.au="au",s.ar="ar",s.be="be",s.br="br",s.ca="ca",s.ch="ch",s.cn="cn",s.cl="cl",s.co="co",s.cy="cy",s.de="de",s.dk="dk",s.do="do",s.dz="dz",s.gr="gr",s.ec="ec",s.eg="eg",s.es="es",s.fi="fi",s.fr="fr",s.ga="ga",s.ge="ge",s.hu="hu",s.in="in",s.ie="ie",s.ir="ir",s.il="il",s.it="it",s.jp="jp",s.kr="kr",s.ma="ma",s.mx="mx",s.my="my",s.mz="mz",s.nl="nl",s.no="no",s.nz="nz",s.pa="pa",s.pe="pe",s.ph="ph",s.pl="pl",s.pt="pt",s.ro="ro",s.ru="ru",s.sc="sc",s.tr="tr",s.ua="ua",s.uk="uk",s.us="us",s.sa="sa",s.se="se",s.su="su",s.tn="tn",s.tw="tw",s.ve="ve",s.za="za"})(vr||(vr={}));class D{static NAMES=["weather","place","lightPollution","decor"];static KEYS={weather:["weatherTrack","weatherSource"],place:["place"],lightPollution:["lightPollution"],decor:["decor"]};static annexName(t,e){return`${t}.${e.replace(/[A-Z]/g,r=>`-${r.toLowerCase()}`)}.json`}static taken(t,e){const r={};if(t==="decor")return Array.isArray(e.decor)&&(r.decor=e.decor.filter(D.surveyed)),r;for(const n of D.KEYS[t])e[n]!==void 0&&(r[n]=e[n]);return r}static strip(t,e){if(t==="decor"){const r=Array.isArray(e.decor)?e.decor.filter(n=>!D.surveyed(n)):[];r.length>0?e.decor=r:delete e.decor;return}for(const r of D.KEYS[t])delete e[r]}static put(t,e,r){if(t==="decor"){if(!Array.isArray(r.decor))return;const n=Array.isArray(e.decor)?e.decor.filter(o=>!D.surveyed(o)):[];e.decor=[...n,...r.decor];return}for(const n of D.KEYS[t])r[n]!==void 0&&(e[n]=r[n])}static surveyed(t){return typeof t=="object"&&t!==null&&typeof t.origin=="string"}static fromFile(t,e){return t?.[e]!==void 0&&t[e].live!==!0}}class yt{static DEFAULT_FOCAL_MM=50;static FOCAL_RANGE_MM={minMm:14,maxMm:135};static BODIES=[{id:"eos-450d",name:"Canon EOS 450D (APS-C)",widthMm:22.2,heightMm:14.8,pixelUm:5.2,year:2008},{id:"eos-60da",name:"Canon EOS 60Da (APS-C)",widthMm:22.3,heightMm:14.9,pixelUm:4.3,year:2012},{id:"eos-70d",name:"Canon EOS 70D (APS-C)",widthMm:22.5,heightMm:15,pixelUm:4.1,year:2013},{id:"eos-80d",name:"Canon EOS 80D (APS-C)",widthMm:22.3,heightMm:14.9,pixelUm:3.7,year:2016},{id:"eos-7d",name:"Canon EOS 7D (APS-C)",widthMm:22.3,heightMm:14.9,pixelUm:4.1,year:2009},{id:"eos-7d-ii",name:"Canon EOS 7D Mark II (APS-C)",widthMm:22.4,heightMm:15,pixelUm:4.1,year:2014},{id:"eos-5d",name:"Canon EOS 5D (full frame)",widthMm:35.8,heightMm:23.9,pixelUm:8.2,year:2005},{id:"eos-5d-ii",name:"Canon EOS 5D Mark II (full frame)",widthMm:36,heightMm:24,pixelUm:6.4,year:2008},{id:"eos-5d-iii",name:"Canon EOS 5D Mark III (full frame)",widthMm:36,heightMm:24,pixelUm:6.25,year:2012},{id:"eos-5d-iv",name:"Canon EOS 5D Mark IV (full frame)",widthMm:36,heightMm:24,pixelUm:5.36,year:2016},{id:"eos-6d",name:"Canon EOS 6D (full frame)",widthMm:35.8,heightMm:23.9,pixelUm:6.55,year:2012},{id:"eos-6d-ii",name:"Canon EOS 6D Mark II (full frame)",widthMm:36,heightMm:24,pixelUm:5.77,year:2017},{id:"nikon-d3",name:"Nikon D3 / D700 (full frame)",widthMm:36,heightMm:23.9,pixelUm:8.44,year:2007},{id:"nikon-d7000",name:"Nikon D7000 (DX)",widthMm:23.6,heightMm:15.6,pixelUm:4.78,year:2010},{id:"nikon-d7100",name:"Nikon D7100 / D7200 (DX)",widthMm:23.5,heightMm:15.6,pixelUm:3.9,year:2013},{id:"nikon-d500",name:"Nikon D500 / D7500 (DX)",widthMm:23.5,heightMm:15.7,pixelUm:4.2,year:2016}];static instruments(){return yt.BODIES.map(t=>({id:t.id,category:"dslr",name:t.name,projection:"rectilinear",frame:{widthMm:t.widthMm,heightMm:t.heightMm,focalLengthMm:yt.DEFAULT_FOCAL_MM,focalRangeMm:yt.FOCAL_RANGE_MM},fNumber:8,fNumberRange:{min:1.4,max:22},exposureSeconds:1/250,exposureRangeSeconds:{min:1/8e3,max:3600},years:{from:t.year},apertureBlades:7,detailUm:t.pixelUm,medium:{kind:"sensor",iso:100}}))}static names(){return Object.fromEntries(yt.BODIES.map(t=>[t.id,t.name]))}}class Y{static DEFAULT_EYEPIECE_MM=26;static DEFAULT_APPARENT_FIELD_DEG=52;static FIELD_STOP_MM=2*Y.DEFAULT_EYEPIECE_MM*Math.tan(Y.DEFAULT_APPARENT_FIELD_DEG*Math.PI/360);static RANGE={min:26/40*.63,max:26/6*3};static BINOCULARS=[{id:"binoculars-zeiss-6x30",name:"Carl Zeiss 6x30",magnification:6,apertureMm:30,trueFieldDeg:5,fromYear:1960},{id:"binoculars-zeiss-dialyt-10x40",name:"Carl Zeiss Dialyt 10x40 B T*",magnification:10,apertureMm:40,trueFieldDeg:6.3,fromYear:1975},{id:"binoculars-jenoptem-10x50",name:"Jenoptem 10x50 W",magnification:10,apertureMm:50,trueFieldDeg:7.3,fromYear:1960},{id:"binoculars-swarovski-7x50-habicht",name:"Swarovski 7x50 SL Habicht",magnification:7,apertureMm:50,trueFieldDeg:6.6,fromYear:1960},{id:"binoculars-swarovski-7x50-slc",name:"Swarovski 7x50 SLC",magnification:7,apertureMm:50,trueFieldDeg:7.1,fromYear:1990},{id:"binoculars-nikon-10x42-edg",name:"Nikon 10x42 EDG",magnification:10,apertureMm:42,trueFieldDeg:6.5,fromYear:2011},{id:"binoculars-canon-15x50-is",name:"Canon 15x50 IS All Weather",magnification:15,apertureMm:50,trueFieldDeg:4.5,fromYear:2008},{id:"binoculars-celestron-15x70",name:"Celestron 15x70 SkyMaster",magnification:15,apertureMm:70,trueFieldDeg:4.4,fromYear:1990},{id:"binoculars-miyauchi-25x141",name:"Miyauchi BR-141 Galaxy 45 25x141",magnification:25,apertureMm:141,trueFieldDeg:2.6,fromYear:2e3}];static TELESCOPES=[{id:"telescope-generic-60-700",name:"Telescope 60/700",apertureMm:60,focalLengthMm:700},{id:"telescope-generic-60-1000",name:"Telescope 60/1000",apertureMm:60,focalLengthMm:1e3},{id:"telescope-celestron-onyx-80edf",name:"Celestron Onyx 80EDF",apertureMm:80,focalLengthMm:500,fromYear:2010},{id:"telescope-celestron-c5",name:"Celestron C5 f/10",apertureMm:125,focalLengthMm:1250,fromYear:1970},{id:"telescope-celestron-c8",name:"Celestron C8 f/10",apertureMm:203,focalLengthMm:2032,fromYear:1970},{id:"telescope-celestron-c11",name:"Celestron C11 f/10",apertureMm:280,focalLengthMm:2800,fromYear:1970},{id:"telescope-celestron-c14",name:"Celestron C14 f/11",apertureMm:355.6,focalLengthMm:3910,fromYear:1970},{id:"telescope-meade-etx-80",name:"Meade ETX 80 f/5",apertureMm:80,focalLengthMm:400,fromYear:1996},{id:"telescope-meade-etx-90",name:"Meade ETX 90 f/13.8",apertureMm:90,focalLengthMm:1242,fromYear:1996},{id:"telescope-meade-etx-125",name:"Meade ETX 125 f/15",apertureMm:127,focalLengthMm:1900,fromYear:1996},{id:"telescope-meade-lx200-8",name:"Meade LX200 8 in f/10",apertureMm:200,focalLengthMm:2e3,fromYear:1992},{id:"telescope-meade-lx200-10",name:"Meade LX200 10 in f/10",apertureMm:250,focalLengthMm:2500,fromYear:1992},{id:"telescope-meade-lx200-12",name:"Meade LX200 12 in f/10",apertureMm:305,focalLengthMm:3048,fromYear:1992},{id:"telescope-meade-lx200-14",name:"Meade LX200 14 in f/10",apertureMm:355,focalLengthMm:3556,fromYear:1992},{id:"telescope-meade-lx200-16",name:"Meade LX200 16 in f/10",apertureMm:406,focalLengthMm:4064,fromYear:1992}];static instruments(){const t=Y.BINOCULARS.map(n=>({id:n.id,category:"binoculars",name:n.name,projection:"rectilinear",visualAid:{apertureMm:n.apertureMm,magnification:n.magnification,trueFieldDeg:n.trueFieldDeg},...n.fromYear!==void 0?{years:{from:n.fromYear}}:{}})),e=Y.FIELD_STOP_MM,r=Y.TELESCOPES.map(n=>({id:n.id,category:"telescope",name:n.name,projection:"rectilinear",frame:{widthMm:e*16/9,heightMm:e,focalLengthMm:n.focalLengthMm,focalRangeMm:{minMm:n.focalLengthMm*Y.RANGE.min,maxMm:n.focalLengthMm*Y.RANGE.max}},visualAid:{apertureMm:n.apertureMm,eyepieceFocalMm:Y.DEFAULT_EYEPIECE_MM},...n.fromYear!==void 0?{years:{from:n.fromYear}}:{}}));return[...t,...r]}static names(){return Object.fromEntries(Y.instruments().map(t=>[t.id,t.name]))}}[(1/250,1/1e3),1/50,1/90,(1/250,1/1e3),(1/250,1/1e3),(1/120,1/8e3),(1/120,1/8e3),(1/30,1/1e4,1/30),(1/50,1/1e5,1/50),...yt.instruments(),...Y.instruments()];const Un=["spring","summer","autumn","winter"],Vn=21;function jn(s){if(s.raw!==void 0)return s.raw;if(s.year===void 0){if(s.hour===void 0)return"";let e=`${String(s.hour).padStart(2,"0")}:${String(s.minute??0).padStart(2,"0")}`;return s.second!==void 0&&(e+=`:${String(s.second).padStart(2,"0")}`),e}let t=String(s.year).padStart(4,"0");return s.season!==void 0?`${t}-${Vn+Un.indexOf(s.season)}`:(s.month===void 0||(t+=`-${String(s.month).padStart(2,"0")}`,s.day===void 0)||(t+=`-${String(s.day).padStart(2,"0")}`,s.hour===void 0)||(t+=`T${String(s.hour).padStart(2,"0")}:${String(s.minute??0).padStart(2,"0")}`,s.second!==void 0&&(t+=`:${String(s.second).padStart(2,"0")}`)),t)}class U{static toCurrent(t){const e=t.version,r=typeof e=="object"&&e!==null&&"value"in e?e.value:e;if(r!==void 0&&r!==1&&r!==2)return t;const n=r===2?t:U.fromVersion1(t);return U.fromVersion2(n)}static observerIdOf(t){return t.observer?.id??"observer"}static fromVersion2(t){const e={...t,version:3},r={...t.timeline??{keyframes:[]}},n=new Set,o=r.keyframes??[];for(const d of o)for(const m of d.shapes??[])n.add(m.sourceId);const a=[],u=d=>{let m=d;for(let w=a.length+1;m===void 0||n.has(m);w++)m=`group-${w}`;return n.add(m),m},p=Array.isArray(r.groups)?r.groups:[];for(const d of p)Array.isArray(d)?a.push({id:u(),members:[...d]}):typeof d=="object"&&d!==null&&a.push(d);const c=Array.isArray(t.events)?t.events.map(d=>({...d})):void 0;if(c){const d=U.observerIdOf(t),m=c.filter(g=>g.who==="phenomenon"),w=new Set(n);for(const g of m){const R=U.unwrapped(g.params?.parts);if(g.eventType==="appearance"&&Array.isArray(R))for(const C of R)C.sourceId&&w.add(C.sourceId)}for(const g of w)n.add(g);const y=g=>a.find(R=>R.members.includes(g)),b=g=>{const R=y(g);return R?b(R.id):g},S=[...new Set([...w].map(b))],T=S.length===1?S[0]:S.length>1?u("phenomenon"):"phenomenon";S.length>1&&a.push({id:T,members:S});for(const g of c)if(g.who===void 0||g.who==="observer")g.who=d;else if(g.who==="phenomenon"){g.who=T;const R=g.params;if(g.eventType!=="blink"||!R||!Array.isArray(R.parts))continue;const C=R.parts,{parts:ce,...jr}=R;g.params=jr,g.who=U.groupFor(C,a,u)??T}e.events=c}return(a.length>0||p.length>0)&&(e.timeline={...r,groups:a}),e}static groupFor(t,e,r){if(t.length===1)return t[0];const n=c=>{const d=e.find(m=>m.id===c);return d?d.members.flatMap(n):[c]},o=e.find(c=>{const d=n(c.id);return d.length===t.length&&t.every(m=>d.includes(m))});if(o)return o.id;const a=new Set(t.map(c=>e.find(d=>d.members.includes(c))));if(a.size!==1)return;const[u]=a,p=r();if(u){const c=u.members.findIndex(d=>t.includes(d));u.members=u.members.filter(d=>!t.includes(d)),u.members.splice(c,0,p)}return e.push({id:p,members:[...t]}),p}static unwrapped(t){return U.isWrapped(t)?t.value:t}static fromVersion1(t){const e={...t,version:2};for(const r of["time","endTime"])t[r]!==void 0&&(e[r]=U.edtf(t[r]));if(Array.isArray(t.place)){const r=U.place(t.place);r===void 0?delete e.place:e.place=r}return e}static edtf(t){if(U.isWrapped(t)){const c=U.edtf(t.value);return c===void 0?void 0:{...t,value:c}}if(typeof t=="string")return t;const e=t,r=Object.values(e).find(c=>U.isWrapped(c)),n=Object.fromEntries(Object.entries(e).map(([c,d])=>[c,U.isWrapped(d)?d.value:d])),o=jn(n);if(o==="")return;if(!r)return o;const{basis:a,rationale:u,how:p}=r;return{value:o,...a===void 0?{}:{basis:a},...u===void 0?{}:{rationale:u},...p===void 0?{}:{how:p}}}static place(t){if(t.length===0)return;const e=t.map(c=>U.isWrapped(c)?c.value:c),r=e.find(c=>c.name)?.name,n={...r?{name:r}:{},locations:e.map(({lat:c,lng:d})=>({lat:c,lng:d}))},o=t.find(c=>U.isWrapped(c));if(!o)return n;const{basis:a,rationale:u,how:p}=o;return{value:n,...a===void 0?{}:{basis:a},...u===void 0?{}:{rationale:u},...p===void 0?{}:{how:p}}}static isWrapped(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&"value"in t}}class gt extends Error{constructor(t,e,r){super(`${t}: ${e}${r===void 0?"":` (HTTP ${r})`}`),this.kind=t,this.url=e,this.status=r,this.name="SightingFetchError"}}class ne{static async recording(t){const e=await ne.json(t);for(const r of D.NAMES){const n=e?.frozen?.[r];if(!(!n?.src||n.live))try{const o=U.toCurrent(await ne.json(new URL(n.src,new URL(t,location.href)).href));D.put(r,e,o)}catch{}}return e}static async json(t){const e=new URL(t,location.href);if(location.protocol==="https:"&&e.protocol==="http:")throw new gt("mixed-content",t);let r;try{r=await fetch(t)}catch{throw await this.diagnose(t,e)}if(!r.ok)throw new gt("status",t,r.status);try{return await r.json()}catch{throw new gt("malformed",t)}}static async diagnose(t,e){if(e.origin===location.origin)return new gt("unreachable",t);try{return await fetch(t,{mode:"no-cors"}),new gt("cors",t)}catch{return new gt("unreachable",t)}}}function On(s,t){for(const e of s){const r=e.toLowerCase().split("-")[0];if(t.includes(r))return r}return"en"}class zn{static preferencesFor(t){const e=navigator.languages??[],r=this.declaredFor(t);return r?[r,...e]:e}static declaredFor(t){for(let e=t;e;){const r=e.closest("[lang]")?.getAttribute("lang")?.trim();if(r)return r;const n=e.getRootNode();e=n instanceof ShadowRoot?n.host:void 0}}}const Bn=["en","fr","es","it"],Yn={en:()=>te(()=>Promise.resolve().then(()=>qn),void 0,import.meta.url).then(s=>s.interviewMessages_en),fr:()=>te(()=>import("./InterviewMessages_fr-mhX8Zuyu.js"),[],import.meta.url).then(s=>s.interviewMessages_fr),es:()=>te(()=>import("./InterviewMessages_es-B0Ut-uel.js"),[],import.meta.url).then(s=>s.interviewMessages_es),it:()=>te(()=>import("./InterviewMessages_it-DaxIoAIG.js"),[],import.meta.url).then(s=>s.interviewMessages_it)};function Hn(s){return Yn[s]()}const Me={title:"Title",time:"When",by:"Interviewer",medium:"Medium",witness:"Witness",witnessNone:"—",summary:"Description",transcript:"Transcript",transcriptHint:"Address of the anonymised transcript file (optional)",summaryTab:"Summary",fileTab:"File",importFile:"Load a file",importFileHint:"JSON, text, WebVTT, SRT",inputFileFromFile:"from your disk",inputFileFromUrl:"from an address",inputFileModeHint:"Click to give it the other way: a file of yours, or an address",inputFileLoad:"Load",saveButton:"Save",loading:"Loading the transcript…",invalid:"This text is not valid JSON yet: the interview keeps the last transcript it understood.",notATranscript:"That file is not an interview transcript (it has no segments).",loadFailed:"That transcript could not be read.",editorLabel:"Interview transcript as JSON",byHint:"RR0 people ids, separated by commas",exchangesTab:"Exchanges",exchangesEmpty:"Nothing was said yet.",redacted:"Passage removed",proofreadAll:"Proofread by everyone.",proofreadPending:"Not proofread yet by: {names}",play:"Play",pause:"Pause",recordings:"Recordings ({n})",recordingsTitle:"Recordings",recordingKind:"Type",recordingAudio:"Audio",recordingVideo:"Video",recordingFile:"File",recordingOffset:"Offset",recordingRemove:"Remove",recordingAdd:"Add a recording",close:"Close",noRecording:"No recording: add the audio or video file of the interview to listen to it.",redactSelection:"Take out the selection",redactedWords:"passage taken out · {n} word(s)",redactAll:"Take all out",restoreAll:"Restore all",editTurn:"Edit",deleteTurn:"Delete this turn",saveTurn:"Save",cancelTurn:"Cancel",turnEditHint:"⟦ … ⟧ marks a passage taken out",selectionOnePassage:"The selection has to stay within one passage not taken out.",selectionNone:"Select words of a passage to take them out.",reviewedBy:"{name} has proofread",linkMoment:"Link to a moment…",momentLabel:"Moment {k} · {text}",unlinkMoment:"Remove this link",noMoments:"The observation has no named moment yet.",redactReason:"taken out at proofreading",roles:{interviewer:"Interviewer",interviewee:"Interviewee",witness:"Witness"}},qn=Object.freeze(Object.defineProperty({__proto__:null,interviewMessages_en:Me},Symbol.toStringTag,{value:"Module"})),Xn="interviewseek";class Wn extends Error{constructor(t,e,r){super(typeof e=="number"&&Number.isInteger(e)&&e>r?`This ${t} file is in version ${e} of its format; this UFO@home reads up to version ${r}. Read it with a newer UFO@home.`:`This ${t} file states ${JSON.stringify(e)} as its format version, which is not a version.`),this.format=t,this.found=e,this.supported=r,this.name="FormatVersionError"}said(t){return t.replace("{found}",typeof this.found=="number"?String(this.found):JSON.stringify(this.found)).replace("{supported}",String(this.supported))}}class bt{static CURRENT={sighting:3,case:1,interview:1};static SCHEMA_BASE="https://ufoathome.org/schema";static schemaUrl(t,e=bt.CURRENT[t]){return`${bt.SCHEMA_BASE}/${e}/${t}.schema.json`}static of(t){if(typeof t!="object"||t===null)return 1;const e=t.version;return e===void 0?1:typeof e=="object"&&e!==null&&"value"in e?e.value:e}static check(t,e){const r=bt.of(t),n=bt.CURRENT[e];if(typeof r!="number"||!Number.isInteger(r)||r<1||r>n)throw new Wn(e,r,n);return t}}class ${static read(t){return bt.check(t,"interview")}static isProofread(t){const e=Object.keys(t.speakers);return e.length>0&&e.every(r=>{const n=t.proofreading?.[r]?.status;return n==="approved"||n==="covered"})}static said(t){return t.parts?t.parts.map(e=>"redacted"in e?"…":$.plain(e.text)).join(" "):t.redacted?void 0:$.plain(t.text??"")}static ENTITIES={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" "};static plain(t){return/[<&]/.test(t)?t.replace(/<br\s*\/?>/gi,`
|
|
1
|
+
class B extends Error{}class se{constructor(t){this.name=t}validate(t){return!0}}class Ar extends se{min;max;constructor(t,e,r){super(t),this.min=e,this.max=r}validate(t){if(typeof t!="number")throw new B(`${this.name} value must be a number, but was ${t}`);if(t<this.min||t>this.max)throw new B(`${this.name} value must be >= ${this.min} and <= ${this.max}, but was ${t}`);return super.validate(t)}}class N{name;min;max;duration;subUnit;validator;constructor(t,e,r,n,o=new Ar(t,e,r)){this.name=t,this.min=e,this.max=r,this.subUnit=n,this.duration=n?(n.max-n.min+1)*n.duration:1,this.validator=o}validate(t){return this.validator.validate(t)}[Symbol.iterator](){let t=this.min;return{next:()=>{const e={done:t>this.max,value:t};return t++,e}}}}class Ee{millisecond;second;minute;hour;day;month;year}class Or extends Ee{}class kr extends Or{millisecond=new N("millisecond",0,999,void 0);second=new N("second",0,59,this.millisecond);minute=new N("minute",0,59,this.second);hour=new N("hour",0,23,this.minute);day=new N("day",1,31,this.hour);month=new N("month",1,12,this.day);year=new N("year",0,9999,this.month)}const f=new kr;class Fr extends Ar{constructor(t=1,e=12){super("month",t,e)}}class wt extends N{static Month28=new wt(28);static Month29=new wt(29);static ThirtyDays=new wt(30);static ThirtyOneDays=new wt(31);constructor(t,e=new Fr(1,t)){super("month",1,t,f.day,e)}static create(t,e){switch(t){case 1:case 3:case 5:case 7:case 8:case 10:case 12:return this.ThirtyOneDays;case 2:return e%4===0?this.Month29:this.Month28;case 4:case 6:case 9:case 11:return this.ThirtyDays;default:throw new B("Unsupported month",t,e)}}}class q{static instance=new q;render(t){return t.value.toString()}}class j{unit;#t;constructor(t,e){this.unit=e,this.value=typeof t=="number"?t:t.value}get value(){return this.#t}set value(t){this.unit.validate(t),this.#t=t}get duration(){return this.value*this.unit.duration}#e(t){if(this.constructor.name!==t.constructor.name)throw new se(`${this.unit.name} "${this.toString()}" cannot be compared with ${t.unit?.name} "${t.toString()}"`)}compare(t){return this.#e(t),this.value-t.value}isEqual(t){return this.compare(t)===0}isBefore(t){return this.compare(t)<0}isAfter(t){return this.compare(t)>0}previous(t=this.unit){const e=this.value-1;return new this.constructor(e,t)}next(t=this.unit){const e=this.value+1;return new this.constructor(e,t)}toString(t=q.instance){return t.render(this)}toSpec(){return{value:this.value}}toJSON(){return this.toSpec()}}class l{static#t=new Map;static register(t,e){l.#t.set(t,e)}static get(t){const e=l.#t.get(t);if(!e)throw new B(`No default parser registered for ${t.name}: import "@rr0/time/defaults" or pass a parser to fromString()`);return e()}}class Et extends j{constructor(t=new Date().getFullYear(),e=f.year){super(t,e)}static fromString(t,e=l.get(Et)){return new Et(e.parse(t))}}class J extends q{static default=new J("0",2);constructor(t,e){super(),this.char=t,this.size=e}render(t){return super.render(t).padStart(this.size,this.char)}}class Nt extends j{constructor(t=new Date().getMonth()+1,e=f.month){super(t,e)}static fromString(t,e=l.get(Nt)){return new Nt(e.parse(t))}toString(t=J.default){return super.toString(t)}}class Gt extends j{constructor(t=new Date().getDate(),e=f.day){super(t,e)}static fromString(t,e=l.get(Gt)){const r=e.parse(t);return new Gt(r)}toString(t=J.default){return super.toString(t)}}class vt extends j{constructor(t=new Date().getHours(),e=f.hour){super(t,e)}static fromString(t,e=l.get(vt)){return new vt(e.parse(t))}toString(t=J.default){return super.toString(t)}}class Tt extends j{constructor(t=new Date().getMinutes(),e=f.minute){super(t,e)}static fromString(t,e=l.get(Tt)){return new Tt(e.parse(t))}toString(t=J.default){return super.toString(t)}}class At extends j{constructor(t=new Date().getSeconds(),e=f.second){super(t,e)}static fromString(t,e=l.get(At)){return new At(e.parse(t),f.second)}toString(t=J.default){return super.toString(t)}}class mt extends j{static renderer=new J("0",3);constructor(t,e=f.millisecond){super(t,e)}static parseFraction(t){return parseInt(t.padEnd(3,"0").substring(0,3),10)}toString(t=mt.renderer){return super.toString(t)}}class zr{render(t){return t.toString()}}class Br extends zr{render(t){const e=t.value,r=Math.abs(e),n=Math.floor(r/60),o=r%60;if(n===0&&o===0)return"Z";{const a=e<0?"-":"+",u=n.toString().padStart(2,"0"),p=o>0?":"+o.toString().padEnd(2,"0"):"";return a+u+p}}}class ct{value;name="timeshift";renderer;constructor(t=0){this.value=t}static fromString(t,e=l.get(ct),r=void 0){const n=e.parse(t,r);return new ct(n)}toString(t=new Br){return t.render(this)}toSpec(){return{value:this.value}}toJSON(){return this.toSpec()}}class V{static timeshift(t,e){return t+(V.isDaylight(e)?60:0)}static isDaylight(t){const{year:e,month:r,day:n}=t,o=t.hour??12;if(![e,r,n].every(Number.isInteger))throw new RangeError("Daylight saving time depends on the year, month and day");const a=V.rule(e);if(!a)return!1;const u=V.rank(r,n,o);return u>=V.rank(a.start.month,a.start.day,2)&&u<V.rank(a.end.month,a.end.day,2)}static rule(t){if(t<1967)return;const e={month:10,day:V.sunday(t,10,-1)};return t>=2007?{start:{month:3,day:V.sunday(t,3,2)},end:{month:11,day:V.sunday(t,11,1)}}:t>=1987?{start:{month:4,day:V.sunday(t,4,1)},end:e}:t===1975?{start:{month:2,day:23},end:e}:t===1974?{start:{month:1,day:6},end:e}:{start:{month:4,day:V.sunday(t,4,-1)},end:e}}static sunday(t,e,r){const n=new Date(Date.UTC(2e3,e-1,1));n.setUTCFullYear(t);const o=1+(7-n.getUTCDay())%7;if(r>0)return o+7*(r-1);const a=[31,V.isLeap(t)?29:28,31,30,31,30,31,31,30,31,30,31][e-1];let u=o;for(;u+7<=a;)u+=7;return u}static isLeap(t){return t%4===0&&(t%100!==0||t%400===0)}static rank(t,e,r){return(t*100+e)*100+r}}const Yr={name:"PST",timeshift:"-08",title:"Pacific Standard Time (US)"},Hr={name:"PDT",timeshift:"-07",title:"Pacific Daylight Time (US)"},qr={name:"MDT",timeshift:"-06",title:"Mountain Standard Time (US)"},Xr={name:"MST",timeshift:"-07",title:"Mountain Daylight Time (US)"},Wr={name:"PT",timeshift:s=>V.timeshift(-480,s),title:"Pacific Time (US)"},Jr={name:"MT",timeshift:s=>V.timeshift(-420,s),title:"Mountain Time (US)"},Dr={name:"CT",timeshift:s=>V.timeshift(-360,s),title:"Central Time (US)"},Zr={name:"ET",timeshift:s=>V.timeshift(-300,s),title:"Eastern Time (US)"},Kr={name:"CWT",timeshift:"-05",title:"Central War Time (US)"},Qr={name:"CDT",timeshift:"-05",title:"Central Daylight Time"},Pr={name:"EST",timeshift:"-05",title:"Eastern Standard Time (US)"},Lr={name:"EDT",timeshift:"-04",title:"Eastern Time (US)"},_r={name:"AST",timeshift:"-04",title:"Atlantic Standard Time (US)"},tn={name:"ADT",timeshift:"-03",title:"Atlantic Daylight Time (US)"},en={name:"UTC",timeshift:"Z",title:"Coordinated Universal Time"},rn={name:"Z",timeshift:"Z",title:"UTC"},nn={name:"GMT",timeshift:"Z",title:"Greenwich Mean Time"},sn={name:"BST",timeshift:"+01",title:"British Summer Time"},on={name:"CEST",timeshift:"+02",title:"Central European Summer Time"},an={name:"CET",timeshift:"+01",title:"Central European Time"},un={name:"MSK",timeshift:"+03",title:"Moscow Time (RU)"},cn={name:"IST",timeshift:"+05:30",title:"Indian Standard Time"},mn={name:"BJT",timeshift:"+08",title:"Beijing Time"},dn={name:"CST",timeshift:"-06",title:"Central Standard Time"},pn={name:"JST",timeshift:"+09",title:"Japan Standard Time"},ln={name:"AEST",timeshift:"+10",title:"Australian Eastern Standard Time"},hn={name:"NZST",timeshift:"+12",title:"New Zealand Standard Time"},fn={name:"LST",timeshift:"?",title:"Local Sideral Time"},$e=[tn,ln,_r,mn,sn,dn,Qr,an,on,Dr,Kr,Lr,Pr,Zr,nn,cn,pn,fn,qr,un,Xr,Jr,hn,Hr,Yr,Wr,en,rn];class oe{static instance=new oe;renderComponent(t,e){return t[e].toString()}renderSecond(t){return this.renderComponent(t,"second")+(t.millisecond?"."+t.millisecond.toString():"")}render(t){const e=[];t.year&&e.push(this.renderComponent(t,"year")),t.month&&e.push(this.renderComponent(t,"month")),t.day&&e.push(this.renderComponent(t,"day"));const r=[];t.hour&&r.push(this.renderComponent(t,"hour")),t.minute&&r.push(this.renderComponent(t,"minute")),t.second&&r.push(this.renderSecond(t));const n=e.join("-"),o=t.timeshift?t.timeshift.toString():"",a=r.join(":")+o;return n+(a.length>0?"T"+a:"")}}class dt extends B{constructor(t="method is abstract"){super(t)}}class Ne{units;constructor(t){this.units=t}newYear(t){throw new dt}newMonth(t){throw new dt}newDay(t){throw new dt}newHour(t){throw new dt}newMinute(t){throw new dt}newSecond(t){throw new dt}}class gn extends Ee{millisecond=new N("milliseconds",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,void 0);second=new N("seconds",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.millisecond);minute=new N("minutes",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.second);hour=new N("hours",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.minutes);day=new N("days",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.hour);month=new N("months",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.day);year=new N("years",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.month)}const Lt=new gn;class ie{static instance=new ie;render(t){const e=H.toSpec(t);let r="P";const n=e.years;n&&(r+=n.toString()+"Y");const o=e.months;o&&(r+=o.toString(q.instance)+"MM");const a=e.days;a&&(r+=a.toString(q.instance)+"D");const u=e.hours;u&&(r+=u.toString(q.instance)+"H");const p=e.minutes;p&&(r+=p.toString(q.instance)+"M");const c=e.seconds;return c&&(r+=c.toString(q.instance)+"S"),r}}class H extends j{constructor(t={years:new Date().getFullYear(),months:new Date().getMonth(),days:new Date().getDate(),hours:new Date().getHours(),minutes:new Date().getMinutes(),seconds:new Date().getSeconds(),milliseconds:new Date().getMilliseconds()}){super({value:typeof t=="number"?t:+(t.years?t.years*f.year.duration:0)+(t.months?t.months*f.month.duration:0)+(t.days?t.days*f.day.duration:0)+(t.hours?t.hours*f.hour.duration:0)+(t.minutes?t.minutes*f.minute.duration:0)+(t.seconds?t.seconds*f.second.duration:0)},new N("millisecond",0,Number.MAX_SAFE_INTEGER,void 0))}static toSpec(t,e=Sn){let r=typeof t=="number"?t:t.value;const n=r>0?1:-1;r=Math.abs(r);const o={},a=r/f.year.duration,u=Math.floor(a);u>0&&(o.years=e.newYear(n*u),r-=u*f.year.duration);const p=r/f.month.duration,c=Math.floor(p);c>0&&(o.months=e.newMonth(n*c),r-=c*f.month.duration);const d=r/f.day.duration,m=Math.floor(d);m>0&&(o.days=e.newDay(n*m),r-=m*f.day.duration);const w=r/f.hour.duration,y=Math.floor(w);y>0&&(o.hours=e.newHour(n*y),r-=y*f.hour.duration);const b=r/f.minute.duration,S=Math.floor(b);S>0&&(o.minutes=e.newMinute(n*S),r-=S*f.minute.duration);const T=r/f.second.duration,g=Math.floor(n*T);return g>0&&(o.seconds=e.newSecond(g)),o}static fromString(t,e=l.get(H)){return new H(e.parse(t))}static between(t,e){const r=e.getTime(),n=t.getTime();return new H(r-n)}toSpec(){return H.toSpec(this)}toString(t=ie.instance){return t.render(this)}}class Rr extends Ne{constructor(t){super(t)}newYear(t){return new Et(t,this.units.year)}newMonth(t){return new Nt(t,this.units.month)}newDay(t){return new Gt(t,this.units.day)}newHour(t){return new vt(t,this.units.hour)}newMinute(t){return new Tt(t,this.units.minute)}newSecond(t){return new At(t,this.units.second)}newMillisecond(t){return new mt(t,this.units.millisecond)}newTimeshift(t){return new ct(typeof t=="number"?t:t.value)}}const wn=new Rr(f),Sn=new Rr(Lt);class I{#t;#e;#r;#n;#s;#o;#i;#a;constructor(t={year:new Date().getFullYear(),month:new Date().getMonth()+1,day:new Date().getDate(),hour:new Date().getHours(),minute:new Date().getMinutes(),second:new Date().getSeconds(),timeshift:I.timeshiftOf(new Date)}){this.year=t.year,this.month=t.month,this.day=t.day,this.hour=t.hour,this.minute=t.minute,this.second=t.second,this.millisecond=t.millisecond,this.timeshift=t.timeshift}get year(){return this.#t}set year(t){const e=typeof t=="number";this.#t&&e?this.#t.value=t:this.#t=e?this.factory.newYear(t):!t||t.start||t instanceof j?t:this.factory.newYear(t)}get month(){return this.#e}set month(t){const e=typeof t=="number";this.#e&&e?this.#e.value=t:this.#e=e?this.factory.newMonth(t):!t||t.start||t instanceof j?t:this.factory.newMonth(t)}get day(){return this.#r}set day(t){const e=typeof t=="number";this.#r&&e?this.#r.value=t:this.#r=e?this.factory.newDay(t):!t||t.start||t instanceof j?t:this.factory.newDay(t)}get hour(){return this.#n}set hour(t){const e=typeof t=="number";this.#n&&e?this.#n.value=t:this.#n=e?this.factory.newHour(t):!t||t.start||t instanceof j?t:this.factory.newHour(t)}get minute(){return this.#s}set minute(t){const e=typeof t=="number";this.#s&&e?this.#s.value=t:this.#s=e?this.factory.newMinute(t):!t||t.start||t instanceof j?t:this.factory.newMinute(t)}get second(){return this.#o}set second(t){const e=typeof t=="number";this.#o&&e?this.#o.value=t:this.#o=e?this.factory.newSecond(t):!t||t.start||t instanceof j?t:this.factory.newSecond(t)}get millisecond(){return this.#i}set millisecond(t){const e=typeof t=="number";this.#i&&e?this.#i.value=t:this.#i=e||t&&!(t instanceof j)?this.factory.newMillisecond(t):t}get timeshift(){return this.#a}set timeshift(t){const e=typeof t=="number";this.#a&&e?this.#a.value=t:this.#a=e||t&&!(t instanceof ct)?this.factory.newTimeshift(t):t}get factory(){return wn}static fromString(t,e=l.get(I)){const{year:r,month:n,day:o,hour:a,minute:u,second:p,millisecond:c,timeshift:d}=e.parse(t);return new I({year:r,month:n,day:o,hour:a,minute:u,second:p,millisecond:c,timeshift:d})}static timeshiftOf(t){return-t.getTimezoneOffset()||0}static fromDate(t){return new I({year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate(),hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),timeshift:I.timeshiftOf(t)})}static newInstance(){const t=new Date().toISOString(),e=t.indexOf("."),r=t.substring(0,e)+t.substring(e+4);return I.fromString(r)}#u(t){if(this.constructor.name!==t.constructor.name)throw new se(`Date "${this.toString()}" cannot be compared with "${t.toString()}"`)}compare(t){return this.#u(t),this.getTime()-t.getTime()}delta(t){const e=this.compare(t);return new H(e)}getTime(){return(this.year?.duration||0)+(this.month?.duration||0)+(this.day?.duration||0)+(this.hour?.duration||0)+(this.minute?.duration||0)+(this.second?.duration||0)+(this.millisecond?.duration||0)}isEqual(t){return this.compare(t)===0}isBefore(t){return this.compare(t)<0}isAfter(t){return this.compare(t)>0}clone(){return new I(this.toSpec())}previous(){let t=this.clone();try{t.second=this.second.previous()}catch{try{t.minute=this.minute.previous()}catch{try{t.hour=this.hour.previous()}catch{try{t.day=this.day.previous()}catch{try{t.month=this.month.previous()}catch{t.year=this.year.previous()}}}}}return t}next(){let t=this.clone();try{t.second=this.second.next()}catch{try{t.minute=this.minute.next()}catch{try{t.hour=this.hour.next()}catch{try{t.day=this.day.next()}catch{try{t.month=this.month.next()}catch{t.year=this.year.next()}}}}}return t}toString(t=oe.instance){return t.render(this)}toSpec(){const t={},e=this.year?.toSpec();e&&(t.year=e);const r=this.month?.toSpec();r&&(t.month=r);const n=this.day?.toSpec();n&&(t.day=n);const o=this.hour?.toSpec();o&&(t.hour=o);const a=this.minute?.toSpec();a&&(t.minute=a);const u=this.second?.toSpec();u&&(t.second=u);const p=this.millisecond?.toSpec();p&&(t.millisecond=p);const c=this.timeshift?.toSpec();return c&&(t.timeshift=c),t}toJSON(){return this.toSpec()}}class Ge{static instance=new Ge;render(t){return(t.start?t.start.toString():"")+"/"+(t.end?t.end.toString():"")}}class $t{constructor(t,e){this.start=t,this.end=e}_start;get start(){return this._start}set start(t){if(typeof t=="string"&&(t=I.fromString(t)),t&&!(t instanceof I)&&!(t instanceof H))throw new B("Interval start is not a level 0 date or duration: "+t);this._start=t}_end;get end(){return this._end}set end(t){if(typeof t=="string"&&(t=I.fromString(t)),t&&!(t instanceof I)&&!(t instanceof H))throw new B("Interval end is not a level 0 date or duration: "+t);this._end=t}static fromString(t,e=l.get($t)){const{start:r,end:n}=e.parse(t);return new $t(r,n)}toString(t=Ge.instance){return t.render(this)}[Symbol.iterator](){let t=this.start;return{next:()=>{const e={done:t>this.end,value:t};return t++,e}}}}class _t extends q{static instance=new _t(J.default);constructor(t){super(),this.valueRenderer=t}render(t){return(this.valueRenderer?this.valueRenderer.render(t):super.render(t))+this.qualifier(t)}qualifier(t){return t.uncertain?t.approximate?"%":"?":t.approximate?"~":""}}class W extends j{#t;#e;constructor(t,e){super(t,e),this.#t=t.uncertain||!1,this.#e=t.approximate||!1}get uncertain(){return this.#t}set uncertain(t){return this.#t=t}get approximate(){return this.#e}set approximate(t){return this.#e=t}isCertainAndPrecise(){return!this.approximate&&!this.uncertain}isEqual(t){return this.isCertainAndPrecise()&&super.isEqual(t)}isBefore(t){return this.isCertainAndPrecise()&&super.isBefore(t)}isAfter(t){return this.isCertainAndPrecise()&&super.isAfter(t)}toString(t=_t.instance){return super.toString(t)}toSpec(){return{...super.toSpec(),uncertain:this.uncertain,approximate:this.approximate}}toJSON(){return this.toSpec()}}class $r extends kr{year=new N("year",-9999,9999,this.month);yearExtended=new N("year",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.month)}const ee=new $r;class nt extends W{constructor(t,e=ee.year){super(t,e)}static fromString(t,e=ee.year,r=l.get(nt)){const n=r.parse(t),o=n.value.start;if(t.startsWith("Y")&&(e=ee.yearExtended),o!==void 0){const a=new nt(Object.assign({...n},{value:Math.max(o,e.min)})),u=new nt(Object.assign({...n},{value:Math.min(n.value.end,e.max)}));return{start:a,end:u}}else return new nt(n,e)}}class Ir extends se{monthValidator=new Fr;validate(t){switch(t){case 21:case 22:case 23:case 24:return!0;default:return this.monthValidator.validate(t)}}}class st extends W{constructor(t,e=new N(f.month.name,1,24,f.day,new Ir)){super(t,e)}static fromString(t,e=l.get(st)){const r=e.parse(t),n=r.value.start;if(n!==void 0){let o=f.month;const a=new st(Object.assign({...r},{value:Math.max(n,o.min)})),u=new st(Object.assign({...r},{value:Math.min(r.value.end,o.max)}));return{start:a,end:u}}else return new st(r)}toString(t){return super.toString(t).padStart(2,"0")}}class ot extends W{constructor(t,e=f.day){super(t,e)}static fromString(t,e=l.get(ot)){const r=e.parse(t),n=r.value.start;if(n!==void 0){let o=f.day;const a=new ot(Object.assign({...r},{value:Math.max(n,o.min)})),u=new ot(Object.assign({...r},{value:Math.min(r.value.end,o.max)}));return{start:a,end:u}}else return new ot(r)}toString(t){return super.toString(t).padStart(2,"0")}}class it extends W{constructor(t,e=f.hour){super(t,e)}static fromString(t,e=l.get(it)){const r=e.parse(t),n=r.value.start;if(n!==void 0){let o=f.hour;const a=new it(Object.assign({...r},{value:Math.max(n,o.min)})),u=new it(Object.assign({...r},{value:Math.min(r.value.end,o.max)}));return{start:a,end:u}}else return new it(r)}}class at extends W{constructor(t,e=f.minute){super(t,e)}static fromString(t,e=l.get(at)){const r=e.parse(t),n=r.value.start;if(n!==void 0){const o=f.minute,a=new at(Object.assign({...r},{value:Math.max(n,o.min)})),u=new at(Object.assign({...r},{value:Math.min(r.value.end,o.max)}));return{start:a,end:u}}else return new at(r)}toString(t=_t.instance){return super.toString(t)}}class ut extends W{constructor(t,e=f.second){super(t,e)}static fromString(t,e=l.get(ut)){const r=e.parse(t),n=r.value.start;if(n!==void 0){const o=f.second,a=new ut(Object.assign({...r},{value:Math.max(n,o.min)})),u=new ut(Object.assign({...r},{value:Math.min(r.value.end,o.max)}));return{start:a,end:u}}else return new ut(r)}}class ht extends ct{static fromString(t,e=l.get(ht),r=void 0){return new ht(e.parse(t,r))}}class Cr extends Ne{constructor(t){super(t)}newYear(t){return new nt(t,this.units.year)}newMonth(t){return new st(t,this.units.month)}newDay(t){return new ot(t,this.units.day)}newHour(t){return new it(t,this.units.hour)}newMinute(t){return new at(t,this.units.minute)}newSecond(t){return new ut(t,this.units.second)}newMillisecond(t){return new mt(t,this.units.millisecond)}newTimeshift(t){return new ht(typeof t=="number"?t:t.value)}}const yn=new Cr(ee),bn=new Cr(Lt);class O extends I{constructor(t){super(t)}get factory(){return yn}get uncertain(){return this.year?.uncertain===!0||this.month?.uncertain===!0||this.day?.uncertain===!0||this.hour?.uncertain===!0||this.minute?.uncertain===!0||this.second?.uncertain===!0}get approximate(){return this.year?.approximate===!0||this.month?.approximate===!0||this.day?.approximate===!0||this.hour?.approximate===!0||this.minute?.approximate===!0||this.second?.approximate===!0}static fromDate(t){return new O({year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate(),hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),timeshift:I.timeshiftOf(t)})}static fromString(t,e=l.get(O)){const r=e.parse(t);return new O(r)}static newInstance(){const t=new Date().toISOString(),e=t.indexOf("."),r=t.substring(0,e)+t.substring(e+4);return O.fromString(r)}clone(){return new O(this.toSpec())}}const F=Object.freeze({year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",timeshift:"timeshift",uncertain:"uncertain",approximate:"approx"});class ae extends ie{static instance=new ae;render(t){return super.render(t)}}class k extends W{constructor(t){super(typeof t=="number"||t.hasOwnProperty("value")?t:{value:k.getValue(t,F.year)+k.getValue(t,F.month)+k.getValue(t,F.day)+k.getValue(t,F.hour)+k.getValue(t,F.minute)+k.getValue(t,F.second),uncertain:k.getBoolean(t,F.uncertain),approximate:k.getBoolean(t,"approximate")},Lt.millisecond)}static getBoolean(t,e){return t[e]||t[F.year+"s"]?.[e]||t[F.month+"s"]?.[e]||t[F.day+"s"]?.[e]||t[F.hour+"s"]?.[e]||t[F.minute+"s"]?.[e]||t[F.second+"s"]?.[e]||!1}static getValue(t,e){let r=0,n=t[e+"s"];if(n instanceof W?n=n.value:typeof t=="number"&&(n=t),n){const o=f[e];r=n*o.duration}return r}static toSpec(t,e=bn){return{...H.toSpec(t,e),uncertain:t.uncertain||!1,approximate:t.approximate||!1}}static fromString(t,e=l.get(k)){const r=e.parse(t);return new k(r)}static between(t,e){const r=e.getTime(),n=t.getTime();return new k(r-n)}toString(t=ae.instance){return super.toString(t)}toSpec(){return k.toSpec(this)}}class It extends $t{constructor(t,e){super(t,e)}get start(){return this._start}set start(t){if(typeof t=="string"&&(super.start=O.fromString(t)),t&&!(t instanceof O)&&!(t instanceof k))throw new B("Interval start is not a level 1 date or duration: "+t);this._start=t}get end(){return this._end}set end(t){if(typeof t=="string"&&(t=O.fromString(t)),t&&!(t instanceof O)&&!(t instanceof k))throw new B("Interval end is not a level 1 date or duration: "+t);this._end=t}static fromString(t,e=l.get(It)){const{start:r,end:n}=e.parse(t);return new It(r,n)}}class Ft extends W{uncertainComponent;approximateComponent;constructor(t,e){super(t,e),this.uncertainComponent=t.uncertainComponent||!1,this.approximateComponent=t.approximateComponent||!1}get uncertain(){return super.uncertain||this.uncertainComponent}set uncertain(t){return super.uncertain=t}get approximate(){return super.approximate||this.approximateComponent}set approximate(t){return super.approximate=t}get uncertainGroup(){return super.uncertain}get approximateGroup(){return super.approximate}toSpec(){return{...super.toSpec(),uncertain:this.uncertainGroup,approximate:this.approximateGroup,uncertainComponent:this.uncertainComponent,approximateComponent:this.approximateComponent}}toJSON(){return this.toSpec()}}class xn extends $r{year=new N("year",Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,this.month)}const xe=new xn;class Z extends Ft{constructor(t,e=xe.year){super(t,e)}static fromString(t,e=xe.year,r=l.get(Z)){const n=r.parse(t),o=n.value.start;if(o!==void 0){const a=new Z(Object.assign({...n},{value:Math.max(o,e.min)})),u=new Z(Object.assign({...n},{value:Math.min(n.value.end,e.max)})),p={start:a,end:u},c=n.value.estimate;return c&&(p.estimate=c),p}else return new Z(n)}}class Mn extends Ir{validate(t){switch(t){case 25:case 26:case 27:case 28:case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:return!0;default:return super.validate(t)}}}class K extends Ft{constructor(t,e=new N(f.month.name,1,41,f.day,new Mn)){super(t,e)}static fromString(t,e=l.get(K)){const r=e.parse(t),n=r.value.start;if(n!==void 0){const o=f.month,a=new K(Object.assign({...r},{value:Math.max(n,o.min)})),u=new K(Object.assign({...r},{value:Math.min(r.value.end,o.max)}));return{start:a,end:u}}else return new K(r)}toString(t){return super.toString(t).padStart(2,"0")}}class Q extends Ft{constructor(t,e=f.day){super(t,e)}static fromString(t,e=l.get(Q)){const r=e.parse(t),n=r.value.start;if(n!==void 0){const o=f.day,a=new Q(Object.assign({...r},{value:Math.max(n,o.min)})),u=new Q(Object.assign({...r},{value:Math.min(r.value.end,o.max)}));return{start:a,end:u}}else return new Q(r)}toString(t){return super.toString(t).padStart(2,"0")}}class P extends Ft{constructor(t,e=f.hour){super(t,e)}static fromString(t,e=l.get(P)){const r=e.parse(t),n=r.value.start;if(n!==void 0){const o=f.hour,a=new P(Object.assign({...r},{value:Math.max(n,o.min)})),u=new P(Object.assign({...r},{value:Math.min(r.value.end,o.max)}));return{start:a,end:u}}else return new P(r)}}class L extends Ft{constructor(t,e=f.minute){super(t,e)}static fromString(t,e=l.get(L)){const r=e.parse(t),n=r.value.start;if(n!==void 0){const o=f.minute,a=new L(Object.assign({...r},{value:Math.max(n,o.min)})),u=new L(Object.assign({...r},{value:Math.min(r.value.end,o.max)}));return{start:a,end:u}}else return new L(r)}}class _ extends Ft{constructor(t,e=f.second){super(t,e)}static fromString(t,e=f.second,r=l.get(_)){const n=r.parse(t),o=n.value.start;if(o!==void 0){const a=new _(Object.assign({...n},{value:Math.max(o,e.min)})),u=new _(Object.assign({...n},{value:Math.min(n.value.end,e.max)}));return{start:a,end:u}}else return new _(n,e)}}class Ur extends ht{}class En extends _t{qualifier(){return""}}class rt extends oe{static instance=new rt;static valueRenderer=new En(J.default);static names=["year","month","day","hour","minute","second"];static qualifier(t,e){return t?e?"%":"?":e?"~":""}renderComponent(t,e){const r=t[e],n=rt.names.slice(rt.names.indexOf(e)+1).map(u=>t[u]).filter(Boolean),o=rt.qualifier(r.uncertainComponent,r.approximateComponent),a=rt.qualifier(r.uncertainGroup&&!r.uncertainComponent&&!n.some(u=>u.uncertain),r.approximateGroup&&!r.approximateComponent&&!n.some(u=>u.approximate));return o+r.toString(rt.valueRenderer)+a}}class Vr extends Ne{constructor(t){super(t)}newYear(t){return new Z(t,this.units.year)}newMonth(t){return new K(t,this.units.month)}newDay(t){return new Q(t,this.units.day)}newHour(t){return new P(t,this.units.hour)}newMinute(t){return new L(t,this.units.minute)}newSecond(t){return new _(t,this.units.second)}newMillisecond(t){return new mt(t,this.units.millisecond)}newTimeshift(t){return new Ur(typeof t=="number"?t:t.value)}}const Nn=new Vr(xe),Gn=new Vr(Lt);class z extends O{constructor(t){super(t)}toString(t=rt.instance){return super.toString(t)}get year(){return super.year}set year(t){super.year=t}get month(){return super.month}set month(t){super.month=t}get factory(){return Nn}static fromDate(t){return new z({year:t.getFullYear(),month:t.getMonth()+1,day:t.getDate(),hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),timeshift:I.timeshiftOf(t)})}static fromString(t,e=l.get(z)){const r=e.parse(t);return new z(r)}static newInstance(){const t=new Date().toISOString(),e=t.indexOf("."),r=t.substring(0,e)+t.substring(e+4);return z.fromString(r)}clone(){return new z(this.toSpec())}}class tt{regExp;constructor(t,e){this.name=t,this.regExp=new RegExp(`^(?:${e})$`)}regexGroups(t){const e=this.regExp.exec(t);if(!e)throw new B(`Invalid ${this.name} "${t}"`);return e.groups}parseGroups(t){throw new dt(`${this.constructor.name} is abstract`)}parse(t){const e=this.regexGroups(t);return this.parseGroups(e)}}class St extends ae{static instance=new St;static designators=[["years","Y"],["months","MM"],["days","D"],["hours","H"],["minutes","M"],["seconds","S"]];static qualifier(t,e){return t?e?"%":"?":e?"~":""}render(t){const e=St.qualifier(t.uncertainDuration,t.approximateDuration);if(!t.hasQualifiedComponent)return e+super.render(t);let r=e+"P";for(const[n,o]of St.designators){const a=t.components[n];a&&(r+=St.qualifier(a.uncertainComponent,a.approximateComponent)+a.value+o)}return r}}class A extends k{#t;constructor(t){if(super(typeof t=="number"?t:{value:A.valueFromSpec(t),uncertain:t.uncertain===!0,approximate:t.approximate===!0},Lt.millisecond),typeof t!="number"){const e={};for(const r of A.componentNames)t[r]instanceof W&&(e[r]=t[r]);Object.keys(e).length>0&&(this.#t=e)}}static componentNames=["years","months","days","hours","minutes","seconds"];get components(){return this.#t}#e(t){return this.#t?Object.values(this.#t).some(e=>e[t]):!1}get uncertainDuration(){return super.uncertain}get approximateDuration(){return super.approximate}get uncertain(){return super.uncertain||this.#e("uncertain")}set uncertain(t){super.uncertain=t}get approximate(){return super.approximate||this.#e("approximate")}set approximate(t){super.approximate=t}get hasQualifiedComponent(){return this.#t?Object.values(this.#t).some(t=>t.uncertainComponent||t.approximateComponent):!1}static valueFromSpec(t){return A.getValue(t,F.year)+A.getValue(t,F.month)+A.getValue(t,F.day)+A.getValue(t,F.hour)+A.getValue(t,F.minute)+A.getValue(t,F.second)}static toSpec(t,e=Gn){const r=k.toSpec(t,e);if(t instanceof A&&t.hasQualifiedComponent)for(const n of A.componentNames)delete r[n],t.components[n]&&(r[n]=t.components[n]);return r}static fromString(t,e=l.get(A)){const r=e.parse(t);return new A(r)}static between(t,e){const r=e.getTime(),n=t.getTime();return new A(r-n)}toSpec(){return A.toSpec(this)}toString(t=St.instance){return super.toString(t)}}class Ct extends It{get start(){return this._start}set start(t){if(typeof t=="string"&&(super.start=z.fromString(t)),t&&!(t instanceof z)&&!(t instanceof A))throw new B("Interval start is not a level 2 date or duration: "+t);this._start=t}get end(){return this._end}set end(t){if(typeof t=="string"&&(t=z.fromString(t)),t&&!(t instanceof z)&&!(t instanceof A))throw new B("Interval end is not a level 2 date or duration: "+t);this._end=t}static fromString(t,e=l.get(Ct)){const{start:r,end:n}=e.parse(t);return new Ct(r,n)}}class re extends Set{constructor(t,e){super(t),this.exclusive=e}has(t){const e=t.toString().replace("..","/");for(const r of this)if(r.toString()===e)return!0;return!1}static fromString(t,e=l.get(re)){const{exclusive:r,values:n}=e.parse(t);return new re(n,r)}}class et extends tt{constructor(t,e){super(t,e)}static read(t){return{value:t?parseInt(t,10):void 0}}parseGroups(t){return et.read(t[this.name])}parse(t){if(t.startsWith("-"))throw new B(`${this.name} cannot be negative`);return super.parse(t)}}class i{static groupName(...t){return t.reduce((e,r)=>e?e+r.charAt(0).toUpperCase()+r.substring(1):r,"")}static group(t,...e){return`(?<${t}>${e.join("")})`}static optional(t){return t+"?"}static nonCapturingGroup(...t){return`(?:${t.join("")})`}static optionalGroup(t,...e){return i.optional(i.group(t,...e))}static optionalNonCapturingGroup(...t){return i.optional(i.nonCapturingGroup(...t))}static numberGroup(t,e,r,n="\\d"){return i.group(t,`${r||""}[${n}]${e}`)}}const Ie="yearValue";class Ut extends et{static format(t=""){return i.numberGroup(i.groupName(t,Ie),"{4}",void 0)}constructor(){super(Ie,Ut.format())}}const Ce="monthValue";class Vt extends et{static format(t=""){return i.numberGroup(i.groupName(t,Ce),"{1,2}",void 0)}constructor(){super(Ce,Vt.format())}}const Ue="dayValue";class xt extends et{static format(t=""){return i.numberGroup(i.groupName(t,Ue),"{1,2}",void 0)}constructor(){super(Ue,xt.format())}}const Ve="hourValue";class Mt extends et{static format(t=""){return i.numberGroup(i.groupName(t,Ve),"{1,2}",void 0)}constructor(){super(Ve,Mt.format())}}const je="minuteValue";class jt extends et{static format(t=""){return i.numberGroup(i.groupName(t,je),"{1,2}",void 0)}constructor(){super(je,jt.format())}}const Oe="secondValue";class Ot extends et{static format(t=""){return i.numberGroup(i.groupName(t,Oe),"{1,2}",void 0)}constructor(){super(Oe,Ot.format())}}const ze="timeshiftValue",Be="shiftHour",Ye="shiftMinute";class kt extends tt{static format(t=""){return $e.map(e=>e.name).join("|")+"|"+i.nonCapturingGroup(i.group(t+Be,i.numberGroup(i.groupName(t,ze),"{2}","[+-]")),i.optionalNonCapturingGroup(":?",i.numberGroup(i.groupName(t,Ye),"{2}",void 0)))}constructor(){super(ze,kt.format())}parse(t,e){let r=0;const n=$e.find(o=>o.name===t);if(n){if(typeof n.timeshift=="function")try{return n.timeshift(e??{})}catch(o){throw new B(`The time zone ${t} depends on the date: ${o.message}`)}t=n.timeshift}if(t!=="Z"){const o=this.regexGroups(t),a=o[Be];a&&(r+=parseInt(a,10)*60);const u=o[Ye];u&&(r+=parseInt(u,10))}return r}}const He="year",qe="month",Xe="day",We="hour",Je="minute",De="second",Ze="millisecond",Ke="timeshift";class pt extends tt{static format(t=""){return i.group(i.groupName(t,He),Ut.format(t))+i.optionalNonCapturingGroup("-",i.group(i.groupName(t,qe),Vt.format(t)),i.optionalNonCapturingGroup("-",i.group(i.groupName(t,Xe),xt.format(t)),i.optionalNonCapturingGroup("[T ]",i.group(i.groupName(t,We),Mt.format(t)),":?",i.group(i.groupName(t,Je),jt.format(t)),i.optionalNonCapturingGroup(":",i.group(i.groupName(t,De),Ot.format(t)),i.optionalNonCapturingGroup("[.,]",i.group(i.groupName(t,Ze),"\\d+"))),"\\s*",i.optionalGroup(i.groupName(t,Ke),kt.format(t)))))}constructor(){super("date",pt.format())}parse(t){const e=this.regexGroups(t),r=e[He],n=e[qe],o=e[Xe],a=e[We],u=e[Je],p=e[De],c=e[Ze],d=e[Ke],m=r?new Et(Ut.read(r)):void 0,w=n?Vt.read(n):void 0;return{year:m,month:w?new Nt(w,wt.create(w.value,m?.value)):void 0,day:o?new Gt(xt.read(o)):void 0,hour:a?new vt(Mt.read(a)):void 0,minute:u?new Tt(jt.read(u)):void 0,second:p?new At(Ot.read(p)):void 0,millisecond:c?mt.parseFraction(c):void 0,timeshift:d?ct.fromString(d,new kt,{year:m?.value,month:w?.value,day:o?xt.read(o).value:void 0,hour:a?Mt.read(a).value:void 0}):void 0}}}const Qe="years",me="months",vn="days",Pe="hours",Le="minutes",_e="seconds";class ve extends tt{static format(t=""){return"P"+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,Qe),"+",void 0,"\\d"),"Y")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,me),"+",void 0,"\\d"),"MM")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,vn),"+",void 0,"\\d"),"D")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,Pe),"+",void 0,"\\d"),"H")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,Le),"+",void 0,"\\d"),"M")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,_e),"+",void 0,"\\d"),"S")}constructor(){super("duration",ve.format())}parseGroups(t){return{years:t[Qe],months:t[me],days:t[me],hours:t[Pe],minutes:t[Le],seconds:t[_e]}}}const de="start",pe="end";class Te extends tt{static format=i.group(de,pt.format(de))+"/"+i.group(pe,pt.format(pe));constructor(){super("interval",Te.format)}parse(t){const e=this.regexGroups(t),r=e[de],n=e[pe];return{start:r?I.fromString(r,new pt):void 0,end:n?I.fromString(n,new pt):void 0}}}l.register(I,()=>new pt);l.register(Gt,()=>new xt);l.register(H,()=>new ve);l.register(vt,()=>new Mt);l.register($t,()=>new Te);l.register(Tt,()=>new jt);l.register(Nt,()=>new Vt);l.register(At,()=>new Ot);l.register(ct,()=>new kt);l.register(Et,()=>new Ut);class G extends et{static uncertainGroup="uncertain";static approximateGroup="approx";static uncertainAndApproximateGroup=G.uncertainGroup+G.approximateGroup;constructor(t,e){super(t,e)}static qualifierFormat(t,e){return i.optionalGroup(t,`\\${e}`)}static formatSuffix(t){return this.qualifierFormat(i.groupName(G.uncertainGroup,t),"?")+this.qualifierFormat(i.groupName(G.approximateGroup,t),"~")+this.qualifierFormat(i.groupName(G.uncertainAndApproximateGroup,t),"%")}static numberFormat(t,e,r){return i.numberGroup(t,e,r,"\\dX")+this.formatSuffix(t)}getValueAndSign(t){let e=t[this.name],r;return e.charAt(0)==="-"?(r=-1,e=e.substring(1)):r=1,{valueStr:e,sign:r}}parseGroups(t){const{valueStr:e,sign:r}=this.getValueAndSign(t);let n=0,o;for(o=0;o<e.length;o++){const c=e[o];if(c==="X")break;n=n*10+parseInt(c,10)}if(o<e.length){let c=1;for(let w=0;w<e.length-o;w++)c*=10;const d=r*n*c,m=d+c-1;n={start:d,end:m}}else n*=r;const a=t[i.groupName(G.uncertainAndApproximateGroup,this.name)],u=t[i.groupName(G.approximateGroup,this.name)]||a,p=t[i.groupName(G.uncertainGroup,this.name)]||a;return{value:n,approximate:u?!!u:!1,uncertain:p?!!p:!1}}}const tr="yearValue";class zt extends G{constructor(){super(tr,zt.format())}static format(t=""){return"Y?"+G.numberFormat(i.groupName(t,tr),"+","[-]?")}parse(t){const e=this.regexGroups(t);return this.parseGroups(e)}}const er="monthValue";class Bt extends G{static format(t=""){return G.numberFormat(i.groupName(t,er),"{1,2}",void 0)}constructor(){super(er,Bt.format())}}const rr="dayValue";class Yt extends G{static format(t=""){return G.numberFormat(i.groupName(t,rr),"{1,2}",void 0)}constructor(){super(rr,Yt.format())}}const nr="hourValue";class Ht extends G{static format(t=""){return G.numberFormat(i.groupName(t,nr),"{1,2}",void 0)}constructor(){super(nr,Ht.format())}}const sr="minuteValue";class qt extends G{static format(t=""){return G.numberFormat(i.groupName(t,sr),"{1,2}",void 0)}constructor(){super(sr,qt.format())}}const or="secondValue";class Xt extends G{static format(t=""){return G.numberFormat(i.groupName(t,or),"{1,2}",void 0)}constructor(){super(or,Xt.format())}}class Wt extends kt{}class v extends tt{static yearGroup="year";static monthGroup="month";static dayGroup="day";static hourGroup="hour";static minuteGroup="minute";static secondGroup="second";static millisecondGroup="millisecond";static timeshiftGroup="timeshift";constructor(t=v.format()){super("date",t)}static format(t=""){return i.group(i.groupName(t,v.yearGroup),zt.format(t))+i.optionalNonCapturingGroup("-",i.group(i.groupName(t,v.monthGroup),Bt.format(t)),i.optionalNonCapturingGroup("-",i.group(i.groupName(t,v.dayGroup),Yt.format(t)),i.optionalNonCapturingGroup("[T ]",i.group(i.groupName(t,v.hourGroup),Ht.format(t)),":",i.group(i.groupName(t,v.minuteGroup),qt.format(t)),i.optionalNonCapturingGroup(":",i.group(i.groupName(t,v.secondGroup),Xt.format(t)),i.optionalNonCapturingGroup("[.,]",i.group(i.groupName(t,v.millisecondGroup),"\\d+"))),i.optionalGroup(i.groupName(t,v.timeshiftGroup),Wt.format(t)))))}parseGroups(t){const e=t[v.millisecondGroup],r=e?mt.parseFraction(e):void 0,n=t[v.secondGroup],o=n?ut.fromString(n,new Xt):void 0,a=t[v.minuteGroup];let u;a&&(u=at.fromString(a,new qt),u.uncertain=u.uncertain||o?.uncertain||!1,u.approximate=u.approximate||o?.approximate||!1);const p=t[v.hourGroup];let c;p&&(c=it.fromString(p,new Ht),c.uncertain=c.uncertain||u?.uncertain||!1,c.approximate=c.approximate||u?.approximate||!1);const d=t[v.dayGroup];let m;d&&(m=ot.fromString(d,new Yt),m.uncertain=m.uncertain||c?.uncertain||!1,m.approximate=m.approximate||c?.approximate||!1);const w=t[v.monthGroup];let y;w&&(y=st.fromString(w,new Bt),y.uncertain=y.uncertain||m?.uncertain||!1,y.approximate=y.approximate||m?.approximate||!1);const b=t[v.yearGroup];let S;b&&(S=nt.fromString(b,void 0,new zt),S.uncertain=S.uncertain||y?.uncertain||!1,S.approximate=S.approximate||y?.approximate||!1);const T=t[v.timeshiftGroup],g=T?ht.fromString(T,new Wt,{year:S?.value,month:y?.value,day:m?.value,hour:c?.value}):void 0;return{year:S,month:y,day:m,hour:c,minute:u,second:o,millisecond:r,timeshift:g}}}const ir="years",ar="months",ur="days",cr="hours",mr="minutes",dr="seconds";class lt extends G{static format(t=""){return"P"+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,ir),"+",void 0,"\\d"),"Y")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,ar),"+",void 0,"\\d"),"MM")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,ur),"+",void 0,"\\d"),"D")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,cr),"+",void 0,"\\d"),"H")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,mr),"+",void 0,"\\d"),"M")+i.optionalNonCapturingGroup(i.numberGroup(i.groupName(t,dr),"+",void 0,"\\d"),"S")+this.formatSuffix(t)}constructor(){super("duration",lt.format())}parseGroups(t){return{years:t[ir],months:t[ar],days:t[ur],hours:t[cr],minutes:t[mr],seconds:t[dr],uncertain:!!t[G.uncertainGroup],approximate:!!t[G.approximateGroup]}}}const Tn="dates",le="start",he="end",pr="durations",fe="durationMin",ge="durationMax";class Ae extends tt{static format=i.group(Tn,i.optionalGroup(le,i.group("openStart","\\.\\.")+"|"+v.format(le))+"/"+i.optionalGroup(he,i.group("openEnd","\\.\\.")+"|"+v.format(he)))+"|"+i.group(pr,i.group(fe,lt.format(fe))+"/"+i.group(ge,lt.format(ge)));constructor(t="interval",e=Ae.format){super(t,e)}parseGroups(t){let e,r;if(t[pr]){const o=t[fe];e=k.fromString(o,new lt);const a=t[ge];r=k.fromString(a,new lt)}else{const o=t[le];switch(o){case void 0:e=null;break;case"..":e=void 0;break;default:e=O.fromString(o,new v)}const a=t[he];switch(a){case void 0:r=null;break;case"..":r=void 0;break;default:r=O.fromString(a,new v)}}return{start:e,end:r}}}l.register(O,()=>new v);l.register(ot,()=>new Yt);l.register(k,()=>new lt);l.register(it,()=>new Ht);l.register(It,()=>new Ae);l.register(at,()=>new qt);l.register(st,()=>new Bt);l.register(ut,()=>new Xt);l.register(ht,()=>new Wt);l.register(nt,()=>new zt);class M extends G{static uncertainGroup="uncertain1";static approximateGroup="approx1";static uncertainAndApproximateGroup=M.uncertainGroup+M.approximateGroup;constructor(t,e){super(t,e)}static numberFormat(t,e,r){return this.qualifierFormat(i.groupName(M.uncertainGroup,t),"?")+this.qualifierFormat(i.groupName(M.approximateGroup,t),"~")+this.qualifierFormat(i.groupName(M.uncertainAndApproximateGroup,t),"%")+G.numberFormat(t,e,r)}parseGroups(t){const e=super.parseGroups(t),r=t[i.groupName(M.uncertainAndApproximateGroup,this.name)];return(t[i.groupName(M.uncertainGroup,this.name)]||r)&&(e.uncertainComponent=!0),(t[i.groupName(M.approximateGroup,this.name)]||r)&&(e.approximateComponent=!0),e}}const Rt="yearValue",lr="exp",hr="signif";class Jt extends M{constructor(){super(Rt,Jt.format())}static format(t=""){return"Y?"+i.nonCapturingGroup(i.group(i.groupName(t,lr),"[-]?\\d+E\\d+")+"|"+M.numberFormat(i.groupName(t,Rt),"+","[-]?")+i.optionalGroup(i.groupName(t,hr),"S\\d+"))}parseGroups(t){const e=t[lr];if(e){const a=e.indexOf("E"),u=parseInt(e.substring(a+1),10),c=parseInt(e.substring(0,a),10)*Math.pow(10,u);t[Rt]=c.toString()}const r=t[hr],n=t[Rt];if(r){const a=parseInt(r.substring(1),10),{valueStr:u,sign:p}=this.getValueAndSign(t);let c="";for(let d=0;d<u.length;d++)c+=d<a?u.charAt(d):"X";t[Rt]=(p<0?"-":"")+c}const o=super.parseGroups(t);return r&&(o.value.estimate=parseInt(n,10)),o}parse(t){const e=this.regexGroups(t);return this.parseGroups(e)}}const fr="monthValue";class Dt extends M{static format(t=""){return M.numberFormat(i.groupName(t,fr),"{1,2}",void 0)}constructor(){super(fr,Dt.format())}}const gr="dayValue";class Zt extends M{static format(t=""){return M.numberFormat(i.groupName(t,gr),"{1,2}",void 0)}constructor(){super(gr,Zt.format())}}const wr="hourValue";class Kt extends M{static format(t=""){return M.numberFormat(i.groupName(t,wr),"{1,2}",void 0)}constructor(){super(wr,Kt.format())}}const Sr="secondValue";class Qt extends M{static format(t=""){return M.numberFormat(i.groupName(t,Sr),"{1,2}",void 0)}constructor(){super(Sr,Qt.format())}}const yr="minuteValue";class Pt extends M{static format(t=""){return M.numberFormat(i.groupName(t,yr),"{1,2}",void 0)}constructor(){super(yr,Pt.format())}}class An extends Wt{}class E extends tt{static yearGroup=v.yearGroup;static monthGroup="month";static dayGroup="day";static hourGroup="hour";static minuteGroup="minute";static secondGroup="second";static millisecondGroup="millisecond";static timeshiftGroup="timeshift";constructor(){super("date",E.format())}static format(t=""){return i.group(i.groupName(t,E.yearGroup),Jt.format(t))+i.optionalNonCapturingGroup("-",i.group(i.groupName(t,E.monthGroup),Dt.format(t)),i.optionalNonCapturingGroup("-",i.group(i.groupName(t,E.dayGroup),Zt.format(t)),i.optionalNonCapturingGroup("[T ]",i.group(i.groupName(t,E.hourGroup),Kt.format(t)),":",i.group(i.groupName(t,E.minuteGroup),Pt.format(t)),i.optionalNonCapturingGroup(":",i.group(i.groupName(t,E.secondGroup),Qt.format(t)),i.optionalNonCapturingGroup("[.,]",i.group(i.groupName(t,E.millisecondGroup),"\\d+"))),i.optionalGroup(i.groupName(t,E.timeshiftGroup),An.format(t)))))}parseGroups(t){const e=t[E.millisecondGroup],r=e?mt.parseFraction(e):void 0,n=t[E.secondGroup];let o;n&&(o=_.fromString(n,void 0,new Qt),o.uncertain=o?.uncertain||!1,o.approximate=o?.approximate||!1);const a=t[E.minuteGroup];let u;a&&(u=L.fromString(a,new Pt),u.uncertain=u.uncertain||o?.uncertain||!1,u.approximate=u.approximate||o?.approximate||!1);const p=t[E.hourGroup];let c;p&&(c=P.fromString(p,new Kt),c.uncertain=c.uncertain||u?.uncertain||!1,c.approximate=c.approximate||u?.approximate||!1);const d=t[E.dayGroup];let m;d&&(m=Q.fromString(d,new Zt),m.uncertain=m.uncertain||c?.uncertain||!1,m.approximate=m.approximate||c?.approximate||!1);const w=t[E.monthGroup];let y;w&&(y=K.fromString(w,new Dt),y.uncertain=y.uncertain||m?.uncertain||!1,y.approximate=y.approximate||m?.approximate||!1);const b=t[E.yearGroup];let S;b&&(S=Z.fromString(b,void 0,new Jt),S.uncertain=S.uncertain||y?.uncertain||!1,S.approximate=S.approximate||y?.approximate||!1);const T=t[E.timeshiftGroup],g=T?Ur.fromString(T,new Wt,{year:S?.value,month:y?.value,day:m?.value,hour:c?.value}):void 0;return{year:S,month:y,day:m,hour:c,minute:u,second:o,millisecond:r,timeshift:g}}}const br="durationValue";class ke extends M{static format(t=""){return"^"+M.numberFormat(i.groupName(t,br),"+",void 0)}constructor(){super(br,ke.format())}}class kn extends Ee{millisecond=new N("millisecond",0,Number.MAX_SAFE_INTEGER,void 0);second=new N("second",0,Number.MAX_SAFE_INTEGER,this.millisecond);minute=new N("minute",0,Number.MAX_SAFE_INTEGER,this.second);hour=new N("hour",0,Number.MAX_SAFE_INTEGER,this.minute);day=new N("day",1,Number.MAX_SAFE_INTEGER,this.hour);month=new N("month",1,Number.MAX_SAFE_INTEGER,this.day);year=new N("year",0,Number.MAX_SAFE_INTEGER,this.month)}const ft=new kn;class h extends M{static yearsGroup="years";static monthsGroup="months";static isoMonthsGroup="isoMonths";static daysGroup="days";static hoursGroup="hours";static minutesGroup="minutes";static secondsGroup="seconds";static durationGroup="duration";static suffixGroup="durationSuffix";static componentParser=new ke;static componentFormat(t,e,r,n,o=""){const a=i.group(i.groupName(t,h.quantityGroup(e)),M.numberFormat(i.groupName(t,r),"+",void 0,"\\d"));return i.group(i.groupName(t,e),a,n,o)}static quantityGroup(t){return t+"Quantity"}static isoMonthsLookahead="(?=[?~%]?\\d+D|T)";constructor(){super("duration",h.format())}static format(t=""){const e=i.groupName(t,h.durationGroup);return this.qualifierFormat(i.groupName(M.uncertainGroup,e),"?")+this.qualifierFormat(i.groupName(M.approximateGroup,e),"~")+this.qualifierFormat(i.groupName(M.uncertainAndApproximateGroup,e),"%")+"P"+i.optional(h.componentFormat(t,h.yearsGroup,E.yearGroup,"Y"))+i.optionalNonCapturingGroup(h.componentFormat(t,h.monthsGroup,E.monthGroup,"MM")+"|"+h.componentFormat(t,h.isoMonthsGroup,"isoMonth","M",h.isoMonthsLookahead))+i.optional(h.componentFormat(t,h.daysGroup,E.dayGroup,"D"))+"T?"+i.optional(h.componentFormat(t,h.hoursGroup,E.hourGroup,"H"))+i.optional(h.componentFormat(t,h.minutesGroup,E.minuteGroup,"M"))+i.optional(h.componentFormat(t,h.secondsGroup,E.secondGroup,"S"))+i.optionalGroup(i.groupName(t,h.suffixGroup),"[?~%]")}static parseComponent(t,e,r){const n=h.componentParser.parse(t);return new e(n,r)}parseGroups(t){const e=t[h.quantityGroup(h.secondsGroup)];let r;e&&(r=h.parseComponent(e,_,ft.second),r.uncertain=!!t[i.groupName(M.uncertainGroup,h.secondsGroup)]||!1,r.approximate=!!t[i.groupName(M.approximateGroup,h.secondsGroup)]||!1);const n=t[h.quantityGroup(h.minutesGroup)];let o;n&&(o=h.parseComponent(n,L,ft.minute),o.uncertain=o.uncertain||r?.uncertain||!1,o.approximate=o.approximate||r?.approximate||!1);const a=t[h.quantityGroup(h.hoursGroup)];let u;a&&(u=h.parseComponent(a,P,ft.hour),u.uncertain=u.uncertain||o?.uncertain||!1,u.approximate=u.approximate||o?.approximate||!1);const p=t[h.quantityGroup(h.daysGroup)];let c;p&&(c=h.parseComponent(p,Q,ft.day),c.uncertain=c.uncertain||u?.uncertain||!1,c.approximate=c.approximate||u?.approximate||!1);const d=t[h.quantityGroup(h.monthsGroup)]||t[h.quantityGroup(h.isoMonthsGroup)];let m;d&&(m=h.parseComponent(d,K,ft.month),m.uncertain=m.uncertain||c?.uncertain||!1,m.approximate=m.approximate||c?.approximate||!1);const w=t[h.quantityGroup(h.yearsGroup)];let y;w&&(y=h.parseComponent(w,Z,ft.year),y.uncertain=y.uncertain||m?.uncertain||!1,y.approximate=y.approximate||m?.approximate||!1);const b=t[h.suffixGroup],S=!!t[i.groupName(M.uncertainAndApproximateGroup,h.durationGroup)]||b==="%",T=S||!!t[i.groupName(M.uncertainGroup,h.durationGroup)]||b==="?",g=S||!!t[i.groupName(M.approximateGroup,h.durationGroup)]||b==="~";return{years:y,months:m,days:c,hours:u,minutes:o,seconds:r,uncertain:T,approximate:g}}}const Fn="dates",we="start",Se="end",xr="durations",ye="durationMin",be="durationMax";class ue extends tt{static format=i.group(Fn,i.optionalGroup(we,i.group("openStart","\\.\\.")+"|"+E.format(we))+"/"+i.optionalGroup(Se,i.group("openEnd","\\.\\.")+"|"+E.format(Se)))+"|"+i.group(xr,i.group(ye,h.format(ye))+"/"+i.group(be,h.format(be)));constructor(t="interval",e=ue.format){super(t,e)}parseGroups(t){let e,r;if(t[xr]){const o=t[ye];e=A.fromString(o,new h);const a=t[be];r=A.fromString(a,new h)}else{const o=t[we];switch(o){case void 0:e=null;break;case"..":e=void 0;break;default:e=z.fromString(o,new E)}const a=t[Se];switch(a){case void 0:r=null;break;case"..":r=void 0;break;default:r=z.fromString(a,new E)}}return{start:e,end:r}}}class Rn{parse(t){t=t.trim();const e=t.startsWith("["),n=t.substring(1,t.length-1).split(","),o=[];for(const a of n){let u;a.includes("..")?u=Ct.fromString(a.replace("..","/"),new ue):u=z.fromString(a,new E),o.push(u)}return{values:o,exclusive:e}}}l.register(z,()=>new E);l.register(Q,()=>new Zt);l.register(A,()=>new h);l.register(P,()=>new Kt);l.register(Ct,()=>new ue);l.register(L,()=>new Pt);l.register(K,()=>new Dt);l.register(_,()=>new Qt);l.register(re,()=>new Rn);l.register(Z,()=>new Jt);class X{constructor(t){this.preferences=t}read(t){var e,r;if(t===void 0)return;if(typeof t=="string")return t===""?void 0:t;for(const o of this.preferences){const a=(e=t[o])!==null&&e!==void 0?e:t[X.base(o)];if(a)return a}const n=new Set(this.preferences.map(o=>X.base(o)));for(const[o,a]of Object.entries(t))if(a&&n.has(X.base(o)))return a;return(r=Object.values(t).find(o=>o))!==null&&r!==void 0?r:void 0}write(t,e,r){var n,o;const a=e?.trim()?e.trim():void 0;if(t===void 0||typeof t=="string")return a;const u={...t},p=(o=(n=Object.keys(u).find(c=>c===r))!==null&&n!==void 0?n:Object.keys(u).find(c=>X.base(c)===X.base(r)))!==null&&o!==void 0?o:r;return a===void 0?delete u[p]:u[p]=a,Object.keys(u).length===0?void 0:u}static base(t){return t.toLowerCase().split("-")[0]}}X.any=new X([]);var Mr;(function(s){s.abductee="abductee",s.actor="actor",s.artist="artist",s.anthropologist="anthropologist",s.archeologist="archeologist",s.astronaut="astronaut",s.astronomer="astronomer",s.astrologist="astrologist",s.astrophysicist="astrophysicist",s.banker="banker",s.barman="barman",s.biologist="biologist",s.biochemist="biochemist",s.biophysicist="biophysicist",s.bishop="bishop",s.businessman="businessman",s.botanist="botanist",s.cameraman="cameraman",s.chemist="chemist",s.contactee="contactee",s.cryptozoologist="cryptozoologist",s.dentist="dentist",s.director="director",s.diplomat="diplomat",s.diver="diver",s.electronics="electronics",s.engineer="engineer",s.ethnologist="ethnologist",s.exobiologist="exobiologist",s.farmer="farmer",s.firefighter="firefighter",s.flightAttendant="flightAttendant",s.geologist="geologist",s.geophysicist="geophysicist",s.geographer="geographer",s.historian="historian",s.houseWife="houseWife",s.hypnotherapist="hypnotherapist",s.illusionist="illusionist",s.journalist="journalist",s.judge="judge",s.lawyer="lawyer",s.leader="leader",s.librarian="librarian",s.logger="logger",s.mathematician="mathematician",s.mechanic="mechanic",s.meteorologist="meteorologist",s.military="military",s.musician="musician",s.neurologist="neurologist",s.neuroscientist="neuroscientist",s.neuropsychiatrist="neuropsychiatrist",s.nurse="nurse",s.oceanographer="oceanographer",s.painter="painter",s.parapsychologist="parapsychologist",s.philosopher="philosopher",s.photographer="photographer",s.physician="physician",s.physicist="physicist",s.pilot="pilot",s.politician="politician",s.policeman="policeman",s.priest="priest",s.producer="producer",s.prospector="prospector",s.psychologist="psychologist",s.psychiatrist="psychiatrist",s.radioastronomer="radioastronomer",s.radioamateur="radioamateur",s.salesman="salesman",s.sailor="sailor",s.sociologist="sociologist",s.softwareEngineer="softwareEngineer",s.stuntman="stuntman",s.taxiDriver="taxiDriver",s.teacher="teacher",s.telegrapher="telegrapher",s.truckDriver="truckDriver",s.ufologist="ufologist",s.ufoWitness="ufoWitness",s.ufoWitness2="ufoWitness2",s.worker="worker",s.writer="writer"})(Mr||(Mr={}));var Er;(function(s){s.neutral="neutral",s.male="male",s.female="female"})(Er||(Er={}));const $n="modulepreload",In=function(s,t){return new URL(s,t).href},Nr={},te=function(t,e,r){let n=Promise.resolve();if(e&&e.length>0){let a=function(d){return Promise.all(d.map(m=>Promise.resolve(m).then(w=>({status:"fulfilled",value:w}),w=>({status:"rejected",reason:w}))))};const u=document.getElementsByTagName("link"),p=document.querySelector("meta[property=csp-nonce]"),c=p?.nonce||p?.getAttribute("nonce");n=a(e.map(d=>{if(d=In(d,r),d in Nr)return;Nr[d]=!0;const m=d.endsWith(".css"),w=m?'[rel="stylesheet"]':"";if(!!r)for(let S=u.length-1;S>=0;S--){const T=u[S];if(T.href===d&&(!m||T.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${d}"]${w}`))return;const b=document.createElement("link");if(b.rel=m?"stylesheet":$n,m||(b.as="script"),b.crossOrigin="",b.href=d,c&&b.setAttribute("nonce",c),document.head.appendChild(b),m)return new Promise((S,T)=>{b.addEventListener("load",S),b.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${d}`)))})}))}function o(a){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=a,window.dispatchEvent(u),!u.defaultPrevented)throw a}return n.then(a=>{for(const u of a||[])u.status==="rejected"&&o(u.reason);return t().catch(o)})};class Cn extends Error{constructor(t,e){super(t),this.cause=e}}class Fe extends Cn{constructor(t=Fe.defaultMessage,e){super(t,e)}}Fe.defaultMessage="Assertion failed";var Gr;(function(s){s.country="country",s.region="region",s.department="department",s.city="city",s.company="company"})(Gr||(Gr={}));var vr;(function(s){s.at="at",s.au="au",s.ar="ar",s.be="be",s.br="br",s.ca="ca",s.ch="ch",s.cn="cn",s.cl="cl",s.co="co",s.cy="cy",s.de="de",s.dk="dk",s.do="do",s.dz="dz",s.gr="gr",s.ec="ec",s.eg="eg",s.es="es",s.fi="fi",s.fr="fr",s.ga="ga",s.ge="ge",s.hu="hu",s.in="in",s.ie="ie",s.ir="ir",s.il="il",s.it="it",s.jp="jp",s.kr="kr",s.ma="ma",s.mx="mx",s.my="my",s.mz="mz",s.nl="nl",s.no="no",s.nz="nz",s.pa="pa",s.pe="pe",s.ph="ph",s.pl="pl",s.pt="pt",s.ro="ro",s.ru="ru",s.sc="sc",s.tr="tr",s.ua="ua",s.uk="uk",s.us="us",s.sa="sa",s.se="se",s.su="su",s.tn="tn",s.tw="tw",s.ve="ve",s.za="za"})(vr||(vr={}));class D{static NAMES=["weather","place","lightPollution","decor"];static KEYS={weather:["weatherTrack","weatherSource"],place:["place"],lightPollution:["lightPollution"],decor:["decor"]};static annexName(t,e){return`${t}.${e.replace(/[A-Z]/g,r=>`-${r.toLowerCase()}`)}.json`}static taken(t,e){const r={};if(t==="decor")return Array.isArray(e.decor)&&(r.decor=e.decor.filter(D.surveyed)),r;for(const n of D.KEYS[t])e[n]!==void 0&&(r[n]=e[n]);return r}static strip(t,e){if(t==="decor"){const r=Array.isArray(e.decor)?e.decor.filter(n=>!D.surveyed(n)):[];r.length>0?e.decor=r:delete e.decor;return}for(const r of D.KEYS[t])delete e[r]}static put(t,e,r){if(t==="decor"){if(!Array.isArray(r.decor))return;const n=Array.isArray(e.decor)?e.decor.filter(o=>!D.surveyed(o)):[];e.decor=[...n,...r.decor];return}for(const n of D.KEYS[t])r[n]!==void 0&&(e[n]=r[n])}static surveyed(t){return typeof t=="object"&&t!==null&&typeof t.origin=="string"}static fromFile(t,e){return t?.[e]!==void 0&&t[e].live!==!0}}class yt{static DEFAULT_FOCAL_MM=50;static FOCAL_RANGE_MM={minMm:14,maxMm:135};static BODIES=[{id:"eos-450d",name:"Canon EOS 450D (APS-C)",widthMm:22.2,heightMm:14.8,pixelUm:5.2,year:2008},{id:"eos-60da",name:"Canon EOS 60Da (APS-C)",widthMm:22.3,heightMm:14.9,pixelUm:4.3,year:2012},{id:"eos-70d",name:"Canon EOS 70D (APS-C)",widthMm:22.5,heightMm:15,pixelUm:4.1,year:2013},{id:"eos-80d",name:"Canon EOS 80D (APS-C)",widthMm:22.3,heightMm:14.9,pixelUm:3.7,year:2016},{id:"eos-7d",name:"Canon EOS 7D (APS-C)",widthMm:22.3,heightMm:14.9,pixelUm:4.1,year:2009},{id:"eos-7d-ii",name:"Canon EOS 7D Mark II (APS-C)",widthMm:22.4,heightMm:15,pixelUm:4.1,year:2014},{id:"eos-5d",name:"Canon EOS 5D (full frame)",widthMm:35.8,heightMm:23.9,pixelUm:8.2,year:2005},{id:"eos-5d-ii",name:"Canon EOS 5D Mark II (full frame)",widthMm:36,heightMm:24,pixelUm:6.4,year:2008},{id:"eos-5d-iii",name:"Canon EOS 5D Mark III (full frame)",widthMm:36,heightMm:24,pixelUm:6.25,year:2012},{id:"eos-5d-iv",name:"Canon EOS 5D Mark IV (full frame)",widthMm:36,heightMm:24,pixelUm:5.36,year:2016},{id:"eos-6d",name:"Canon EOS 6D (full frame)",widthMm:35.8,heightMm:23.9,pixelUm:6.55,year:2012},{id:"eos-6d-ii",name:"Canon EOS 6D Mark II (full frame)",widthMm:36,heightMm:24,pixelUm:5.77,year:2017},{id:"nikon-d3",name:"Nikon D3 / D700 (full frame)",widthMm:36,heightMm:23.9,pixelUm:8.44,year:2007},{id:"nikon-d7000",name:"Nikon D7000 (DX)",widthMm:23.6,heightMm:15.6,pixelUm:4.78,year:2010},{id:"nikon-d7100",name:"Nikon D7100 / D7200 (DX)",widthMm:23.5,heightMm:15.6,pixelUm:3.9,year:2013},{id:"nikon-d500",name:"Nikon D500 / D7500 (DX)",widthMm:23.5,heightMm:15.7,pixelUm:4.2,year:2016}];static instruments(){return yt.BODIES.map(t=>({id:t.id,category:"dslr",name:t.name,projection:"rectilinear",frame:{widthMm:t.widthMm,heightMm:t.heightMm,focalLengthMm:yt.DEFAULT_FOCAL_MM,focalRangeMm:yt.FOCAL_RANGE_MM},fNumber:8,fNumberRange:{min:1.4,max:22},exposureSeconds:1/250,exposureRangeSeconds:{min:1/8e3,max:3600},years:{from:t.year},apertureBlades:7,detailUm:t.pixelUm,medium:{kind:"sensor",iso:100}}))}static names(){return Object.fromEntries(yt.BODIES.map(t=>[t.id,t.name]))}}class Y{static DEFAULT_EYEPIECE_MM=26;static DEFAULT_APPARENT_FIELD_DEG=52;static FIELD_STOP_MM=2*Y.DEFAULT_EYEPIECE_MM*Math.tan(Y.DEFAULT_APPARENT_FIELD_DEG*Math.PI/360);static RANGE={min:26/40*.63,max:26/6*3};static BINOCULARS=[{id:"binoculars-zeiss-6x30",name:"Carl Zeiss 6x30",magnification:6,apertureMm:30,trueFieldDeg:5,fromYear:1960},{id:"binoculars-zeiss-dialyt-10x40",name:"Carl Zeiss Dialyt 10x40 B T*",magnification:10,apertureMm:40,trueFieldDeg:6.3,fromYear:1975},{id:"binoculars-jenoptem-10x50",name:"Jenoptem 10x50 W",magnification:10,apertureMm:50,trueFieldDeg:7.3,fromYear:1960},{id:"binoculars-swarovski-7x50-habicht",name:"Swarovski 7x50 SL Habicht",magnification:7,apertureMm:50,trueFieldDeg:6.6,fromYear:1960},{id:"binoculars-swarovski-7x50-slc",name:"Swarovski 7x50 SLC",magnification:7,apertureMm:50,trueFieldDeg:7.1,fromYear:1990},{id:"binoculars-nikon-10x42-edg",name:"Nikon 10x42 EDG",magnification:10,apertureMm:42,trueFieldDeg:6.5,fromYear:2011},{id:"binoculars-canon-15x50-is",name:"Canon 15x50 IS All Weather",magnification:15,apertureMm:50,trueFieldDeg:4.5,fromYear:2008},{id:"binoculars-celestron-15x70",name:"Celestron 15x70 SkyMaster",magnification:15,apertureMm:70,trueFieldDeg:4.4,fromYear:1990},{id:"binoculars-miyauchi-25x141",name:"Miyauchi BR-141 Galaxy 45 25x141",magnification:25,apertureMm:141,trueFieldDeg:2.6,fromYear:2e3}];static TELESCOPES=[{id:"telescope-generic-60-700",name:"Telescope 60/700",apertureMm:60,focalLengthMm:700},{id:"telescope-generic-60-1000",name:"Telescope 60/1000",apertureMm:60,focalLengthMm:1e3},{id:"telescope-celestron-onyx-80edf",name:"Celestron Onyx 80EDF",apertureMm:80,focalLengthMm:500,fromYear:2010},{id:"telescope-celestron-c5",name:"Celestron C5 f/10",apertureMm:125,focalLengthMm:1250,fromYear:1970},{id:"telescope-celestron-c8",name:"Celestron C8 f/10",apertureMm:203,focalLengthMm:2032,fromYear:1970},{id:"telescope-celestron-c11",name:"Celestron C11 f/10",apertureMm:280,focalLengthMm:2800,fromYear:1970},{id:"telescope-celestron-c14",name:"Celestron C14 f/11",apertureMm:355.6,focalLengthMm:3910,fromYear:1970},{id:"telescope-meade-etx-80",name:"Meade ETX 80 f/5",apertureMm:80,focalLengthMm:400,fromYear:1996},{id:"telescope-meade-etx-90",name:"Meade ETX 90 f/13.8",apertureMm:90,focalLengthMm:1242,fromYear:1996},{id:"telescope-meade-etx-125",name:"Meade ETX 125 f/15",apertureMm:127,focalLengthMm:1900,fromYear:1996},{id:"telescope-meade-lx200-8",name:"Meade LX200 8 in f/10",apertureMm:200,focalLengthMm:2e3,fromYear:1992},{id:"telescope-meade-lx200-10",name:"Meade LX200 10 in f/10",apertureMm:250,focalLengthMm:2500,fromYear:1992},{id:"telescope-meade-lx200-12",name:"Meade LX200 12 in f/10",apertureMm:305,focalLengthMm:3048,fromYear:1992},{id:"telescope-meade-lx200-14",name:"Meade LX200 14 in f/10",apertureMm:355,focalLengthMm:3556,fromYear:1992},{id:"telescope-meade-lx200-16",name:"Meade LX200 16 in f/10",apertureMm:406,focalLengthMm:4064,fromYear:1992}];static instruments(){const t=Y.BINOCULARS.map(n=>({id:n.id,category:"binoculars",name:n.name,projection:"rectilinear",visualAid:{apertureMm:n.apertureMm,magnification:n.magnification,trueFieldDeg:n.trueFieldDeg},...n.fromYear!==void 0?{years:{from:n.fromYear}}:{}})),e=Y.FIELD_STOP_MM,r=Y.TELESCOPES.map(n=>({id:n.id,category:"telescope",name:n.name,projection:"rectilinear",frame:{widthMm:e*16/9,heightMm:e,focalLengthMm:n.focalLengthMm,focalRangeMm:{minMm:n.focalLengthMm*Y.RANGE.min,maxMm:n.focalLengthMm*Y.RANGE.max}},visualAid:{apertureMm:n.apertureMm,eyepieceFocalMm:Y.DEFAULT_EYEPIECE_MM},...n.fromYear!==void 0?{years:{from:n.fromYear}}:{}}));return[...t,...r]}static names(){return Object.fromEntries(Y.instruments().map(t=>[t.id,t.name]))}}[(1/250,1/1e3),1/50,1/90,(1/250,1/1e3),(1/250,1/1e3),(1/120,1/8e3),(1/120,1/8e3),(1/30,1/1e4,1/30),(1/50,1/1e5,1/50),...yt.instruments(),...Y.instruments()];const Un=["spring","summer","autumn","winter"],Vn=21;function jn(s){if(s.raw!==void 0)return s.raw;if(s.year===void 0){if(s.hour===void 0)return"";let e=`${String(s.hour).padStart(2,"0")}:${String(s.minute??0).padStart(2,"0")}`;return s.second!==void 0&&(e+=`:${String(s.second).padStart(2,"0")}`),e}let t=String(s.year).padStart(4,"0");return s.season!==void 0?`${t}-${Vn+Un.indexOf(s.season)}`:(s.month===void 0||(t+=`-${String(s.month).padStart(2,"0")}`,s.day===void 0)||(t+=`-${String(s.day).padStart(2,"0")}`,s.hour===void 0)||(t+=`T${String(s.hour).padStart(2,"0")}:${String(s.minute??0).padStart(2,"0")}`,s.second!==void 0&&(t+=`:${String(s.second).padStart(2,"0")}`)),t)}class U{static toCurrent(t){const e=t.version,r=typeof e=="object"&&e!==null&&"value"in e?e.value:e;if(r!==void 0&&r!==1&&r!==2)return t;const n=r===2?t:U.fromVersion1(t);return U.fromVersion2(n)}static observerIdOf(t){return t.observer?.id??"observer"}static fromVersion2(t){const e={...t,version:3},r={...t.timeline??{keyframes:[]}},n=new Set,o=r.keyframes??[];for(const d of o)for(const m of d.shapes??[])n.add(m.sourceId);const a=[],u=d=>{let m=d;for(let w=a.length+1;m===void 0||n.has(m);w++)m=`group-${w}`;return n.add(m),m},p=Array.isArray(r.groups)?r.groups:[];for(const d of p)Array.isArray(d)?a.push({id:u(),members:[...d]}):typeof d=="object"&&d!==null&&a.push(d);const c=Array.isArray(t.events)?t.events.map(d=>({...d})):void 0;if(c){const d=U.observerIdOf(t),m=c.filter(g=>g.who==="phenomenon"),w=new Set(n);for(const g of m){const R=U.unwrapped(g.params?.parts);if(g.eventType==="appearance"&&Array.isArray(R))for(const C of R)C.sourceId&&w.add(C.sourceId)}for(const g of w)n.add(g);const y=g=>a.find(R=>R.members.includes(g)),b=g=>{const R=y(g);return R?b(R.id):g},S=[...new Set([...w].map(b))],T=S.length===1?S[0]:S.length>1?u("phenomenon"):"phenomenon";S.length>1&&a.push({id:T,members:S});for(const g of c)if(g.who===void 0||g.who==="observer")g.who=d;else if(g.who==="phenomenon"){g.who=T;const R=g.params;if(g.eventType!=="blink"||!R||!Array.isArray(R.parts))continue;const C=R.parts,{parts:ce,...jr}=R;g.params=jr,g.who=U.groupFor(C,a,u)??T}e.events=c}return(a.length>0||p.length>0)&&(e.timeline={...r,groups:a}),e}static groupFor(t,e,r){if(t.length===1)return t[0];const n=c=>{const d=e.find(m=>m.id===c);return d?d.members.flatMap(n):[c]},o=e.find(c=>{const d=n(c.id);return d.length===t.length&&t.every(m=>d.includes(m))});if(o)return o.id;const a=new Set(t.map(c=>e.find(d=>d.members.includes(c))));if(a.size!==1)return;const[u]=a,p=r();if(u){const c=u.members.findIndex(d=>t.includes(d));u.members=u.members.filter(d=>!t.includes(d)),u.members.splice(c,0,p)}return e.push({id:p,members:[...t]}),p}static unwrapped(t){return U.isWrapped(t)?t.value:t}static fromVersion1(t){const e={...t,version:2};for(const r of["time","endTime"])t[r]!==void 0&&(e[r]=U.edtf(t[r]));if(Array.isArray(t.place)){const r=U.place(t.place);r===void 0?delete e.place:e.place=r}return e}static edtf(t){if(U.isWrapped(t)){const c=U.edtf(t.value);return c===void 0?void 0:{...t,value:c}}if(typeof t=="string")return t;const e=t,r=Object.values(e).find(c=>U.isWrapped(c)),n=Object.fromEntries(Object.entries(e).map(([c,d])=>[c,U.isWrapped(d)?d.value:d])),o=jn(n);if(o==="")return;if(!r)return o;const{basis:a,rationale:u,how:p}=r;return{value:o,...a===void 0?{}:{basis:a},...u===void 0?{}:{rationale:u},...p===void 0?{}:{how:p}}}static place(t){if(t.length===0)return;const e=t.map(c=>U.isWrapped(c)?c.value:c),r=e.find(c=>c.name)?.name,n={...r?{name:r}:{},locations:e.map(({lat:c,lng:d})=>({lat:c,lng:d}))},o=t.find(c=>U.isWrapped(c));if(!o)return n;const{basis:a,rationale:u,how:p}=o;return{value:n,...a===void 0?{}:{basis:a},...u===void 0?{}:{rationale:u},...p===void 0?{}:{how:p}}}static isWrapped(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)&&"value"in t}}class gt extends Error{constructor(t,e,r){super(`${t}: ${e}${r===void 0?"":` (HTTP ${r})`}`),this.kind=t,this.url=e,this.status=r,this.name="SightingFetchError"}}class ne{static async recording(t){const e=await ne.json(t);for(const r of D.NAMES){const n=e?.frozen?.[r];if(!(!n?.src||n.live))try{const o=U.toCurrent(await ne.json(new URL(n.src,new URL(t,location.href)).href));D.put(r,e,o)}catch{}}return e}static async json(t){const e=new URL(t,location.href);if(location.protocol==="https:"&&e.protocol==="http:")throw new gt("mixed-content",t);let r;try{r=await fetch(t)}catch{throw await this.diagnose(t,e)}if(!r.ok)throw new gt("status",t,r.status);try{return await r.json()}catch{throw new gt("malformed",t)}}static async diagnose(t,e){if(e.origin===location.origin)return new gt("unreachable",t);try{return await fetch(t,{mode:"no-cors"}),new gt("cors",t)}catch{return new gt("unreachable",t)}}}function On(s,t){for(const e of s){const r=e.toLowerCase().split("-")[0];if(t.includes(r))return r}return"en"}class zn{static preferencesFor(t){const e=navigator.languages??[],r=this.declaredFor(t);return r?[r,...e]:e}static declaredFor(t){for(let e=t;e;){const r=e.closest("[lang]")?.getAttribute("lang")?.trim();if(r)return r;const n=e.getRootNode();e=n instanceof ShadowRoot?n.host:void 0}}}const Bn=["en","fr","es","it"],Yn={en:()=>te(()=>Promise.resolve().then(()=>qn),void 0,import.meta.url).then(s=>s.interviewMessages_en),fr:()=>te(()=>import("./InterviewMessages_fr-OCQdwn9j.js"),[],import.meta.url).then(s=>s.interviewMessages_fr),es:()=>te(()=>import("./InterviewMessages_es-ypa0EDh9.js"),[],import.meta.url).then(s=>s.interviewMessages_es),it:()=>te(()=>import("./InterviewMessages_it-awuOqf5v.js"),[],import.meta.url).then(s=>s.interviewMessages_it)};function Hn(s){return Yn[s]()}const Me={title:"Title",time:"When",by:"Interviewer",medium:"Medium",witness:"Witness",witnessNone:"—",summary:"Description",transcript:"Transcript",transcriptHint:"Address of the anonymised transcript file (optional)",summaryTab:"Summary",fileTab:"File",importFile:"Load a file",importFileHint:"JSON, text, WebVTT, SRT",inputFileFromFile:"from your disk",inputFileFromUrl:"from an address",inputFileModeHint:"Click to give it the other way: a file of yours, or an address",inputFileLoad:"Load",saveButton:"Save",loading:"Loading the transcript…",invalid:"This text is not valid JSON yet: the interview keeps the last transcript it understood.",notATranscript:"That file is not an interview transcript (it has no segments).",loadFailed:"That transcript could not be read.",editorLabel:"Interview transcript as JSON",byHint:"RR0 people ids, separated by commas",exchangesTab:"Exchanges",exchangesEmpty:"Nothing was said yet.",redacted:"Passage removed",colon:": ",proofreadAll:"Proofread by everyone.",proofreadPending:"Not proofread yet by: {names}",play:"Play",pause:"Pause",recordings:"Recordings ({n})",recordingsTitle:"Recordings",recordingKind:"Type",recordingAudio:"Audio",recordingVideo:"Video",recordingFile:"File",recordingOffset:"Offset",recordingRemove:"Remove",recordingAdd:"Add a recording",close:"Close",noRecording:"No recording: add the audio or video file of the interview to listen to it.",redactSelection:"Take out the selection",redactedWords:"passage taken out · {n} word(s)",redactAll:"Take all out",restoreAll:"Restore all",editTurn:"Edit",deleteTurn:"Delete this turn",saveTurn:"Save",cancelTurn:"Cancel",turnEditHint:"⟦ … ⟧ marks a passage taken out",selectionOnePassage:"The selection has to stay within one passage not taken out.",selectionNone:"Select words of a passage to take them out.",reviewedBy:"{name} has proofread",linkMoment:"Link to a moment…",momentLabel:"Moment {k} · {text}",unlinkMoment:"Remove this link",noMoments:"The observation has no named moment yet.",redactReason:"taken out at proofreading",roles:{interviewer:"Interviewer",interviewee:"Interviewee",witness:"Witness"}},qn=Object.freeze(Object.defineProperty({__proto__:null,interviewMessages_en:Me},Symbol.toStringTag,{value:"Module"})),Xn="interviewseek";class Wn extends Error{constructor(t,e,r){super(typeof e=="number"&&Number.isInteger(e)&&e>r?`This ${t} file is in version ${e} of its format; this UFO@home reads up to version ${r}. Read it with a newer UFO@home.`:`This ${t} file states ${JSON.stringify(e)} as its format version, which is not a version.`),this.format=t,this.found=e,this.supported=r,this.name="FormatVersionError"}said(t){return t.replace("{found}",typeof this.found=="number"?String(this.found):JSON.stringify(this.found)).replace("{supported}",String(this.supported))}}class bt{static CURRENT={sighting:3,case:1,interview:1};static SCHEMA_BASE="https://ufoathome.org/schema";static schemaUrl(t,e=bt.CURRENT[t]){return`${bt.SCHEMA_BASE}/${e}/${t}.schema.json`}static of(t){if(typeof t!="object"||t===null)return 1;const e=t.version;return e===void 0?1:typeof e=="object"&&e!==null&&"value"in e?e.value:e}static check(t,e){const r=bt.of(t),n=bt.CURRENT[e];if(typeof r!="number"||!Number.isInteger(r)||r<1||r>n)throw new Wn(e,r,n);return t}}class ${static read(t){return bt.check(t,"interview")}static isProofread(t){const e=Object.keys(t.speakers);return e.length>0&&e.every(r=>{const n=t.proofreading?.[r]?.status;return n==="approved"||n==="covered"})}static said(t){return t.parts?t.parts.map(e=>"redacted"in e?"…":$.plain(e.text)).join(" "):t.redacted?void 0:$.plain(t.text??"")}static ENTITIES={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" "};static plain(t){return/[<&]/.test(t)?t.replace(/<br\s*\/?>/gi,`
|
|
2
2
|
`).replace(/<\/?[a-z][^>]*>/gi,"").replace(/&#x([0-9a-f]+);/gi,(e,r)=>String.fromCodePoint(parseInt(r,16))).replace(/&#(\d+);/g,(e,r)=>String.fromCodePoint(Number(r))).replace(/&(\w+);/g,(e,r)=>$.ENTITIES[r.toLowerCase()]??e):t}static sightingsOf(t){return[t.interviewOf].flat().filter(e=>typeof e=="string")}static passagesAbout(t,e){const r=$.sightingsOf(t),n=[];return t.segments.forEach((o,a)=>{for(const u of o.refs??[]){if(u.sighting===void 0?!r.includes(e):u.sighting!==e)continue;const p=$.said(o);n.push({index:a,speaker:o.speaker,at:u.at,...p!==void 0?{text:p}:{},...u.range?{range:u.range}:{}})}}),n.sort((o,a)=>o.at-a.at||o.index-a.index)}static clock(t,e=!1){const r=Math.round(t*10),n=Math.floor(r/10),o=p=>String(p).padStart(2,"0"),a=Math.floor(n/3600),u=`${a>0||e?o(Math.floor(n/60)%60):Math.floor(n/60)}:${o(n%60)}`;return`${a>0?`${a}:`:""}${u}${e||r%10!==0?`.${r%10}`:""}`}static speakerName(t,e){const r=t.speakers[e];if(!r)return e;const n=typeof r.title=="string"?r.title:r.title?Object.values(r.title)[0]:void 0;return n||r.by&&$.agentName(r.by)||r.role}static agentName(t){if("people"in t){const[e,...r]=t.people.replace(/([a-z])([A-Z])/g,"$1 $2").split(" ");return[...r,e].join(" ")}return"org"in t?t.org:t.title??""}static stamp(t){const e=Math.round(t*1e3),r=(n,o=2)=>String(n).padStart(o,"0");return`${r(Math.floor(e/36e5))}:${r(Math.floor(e/6e4)%60)}:${r(Math.floor(e/1e3)%60)}.${r(e%1e3,3)}`}static toVtt(t){const e=o=>o.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),r=t.segments.filter(o=>o.start!==void 0);return`WEBVTT
|
|
3
3
|
|
|
4
4
|
${r.map((o,a)=>{const u=r[a+1],p=o.end??u?.start??o.start+5,c=u&&u.start<p?Math.max(o.start,u.start):p;return`${$.stamp(o.start)} --> ${$.stamp(c)}
|
|
@@ -32,4 +32,4 @@ rr0-interview .turn .refs { display: flex; flex-wrap: wrap; gap: .25em; }
|
|
|
32
32
|
rr0-interview .turn .ref { font: inherit; font-size: .8em; cursor: pointer; border: 1px solid var(--rr0-interview-line); border-radius: 999px; background: transparent; color: inherit;
|
|
33
33
|
padding: 0 .35em; font-variant-numeric: tabular-nums; white-space: nowrap; display: inline-flex; align-items: center; gap: .15em; }
|
|
34
34
|
rr0-interview .turn .ref svg { width: 1.1em; height: 1.1em; }
|
|
35
|
-
`;class Re extends HTMLElement{messages=Me;said=new X(["en"]);localeToken=0;loadToken=0;json;loading;base;status=document.createElement("p");turns=document.createElement("div");blocks=new Map;constructor(){super(),this.status.className="rr0-interview-status",this.status.setAttribute("role","status"),this.turns.className="rr0-interview-turns"}static get observedAttributes(){return["src"]}attributeChangedCallback(t,e,r){t==="src"&&r!==e&&this.isConnected&&this.load()}connectedCallback(){Re.styleRoot(this.getRootNode()),this.contains(this.turns)||this.replaceChildren(this.status,this.turns),this.loadLocale(),this.hasAttribute("src")&&this.json===void 0&&this.loading!==this.getAttribute("src")&&this.load()}get interview(){return this.json}set interview(t){this.loadToken++,this.json=t,this.draw()}set documentUrl(t){this.base=t}static styleRoot(t){const e=t instanceof ShadowRoot?t:document.head;if(e.querySelector("style[data-rr0-interview]"))return;const r=document.createElement("style");r.dataset.rr0Interview="",r.textContent=Jn,e.append(r)}async load(){const t=this.getAttribute("src"),e=++this.loadToken;if(this.loading=t??void 0,!t)return;const r=new URL(t,location.href).href;let n;try{n=$.read(await ne.json(r))}catch{n=void 0}e===this.loadToken&&(this.base=r,this.json=n,this.draw())}async loadLocale(){const t=++this.localeToken,e=zn.preferencesFor(this),r=On(e,Bn),n=r==="en"?Me:await Hn(r);t===this.localeToken&&(this.said=new X(e),this.messages=n,this.draw())}speakerName(t,e){const r=$.speakerName(t,e),n=t.speakers?.[e]?.role;return r===n&&n in this.messages.roles?this.messages.roles[n]:r}seek(t,e){const r=this.json,n=e?$.said(e):void 0,o={sighting:t.sighting??$.sightingsOf(r)[0],at:t.at,...n?{quote:n}:{}};this.dispatchEvent(new CustomEvent(Xn,{bubbles:!0,composed:!0,detail:o}));const a=this.getAttribute("player");if(!a)return;const p=this.getRootNode().getElementById?.(a);typeof p?.seekTo=="function"&&(p.scrollIntoView?.({block:"center",behavior:"smooth"}),p.seekTo(o.at,o.sighting))}gap(t,e){const r=document.createElement(e),n=document.createElement("span");n.className="bar";const o=`${this.messages.redacted}
|
|
35
|
+
`;class Re extends HTMLElement{messages=Me;said=new X(["en"]);localeToken=0;loadToken=0;json;loading;base;status=document.createElement("p");turns=document.createElement("div");blocks=new Map;constructor(){super(),this.status.className="rr0-interview-status",this.status.setAttribute("role","status"),this.turns.className="rr0-interview-turns"}static get observedAttributes(){return["src"]}attributeChangedCallback(t,e,r){t==="src"&&r!==e&&this.isConnected&&this.load()}connectedCallback(){Re.styleRoot(this.getRootNode()),this.contains(this.turns)||this.replaceChildren(this.status,this.turns),this.loadLocale(),this.hasAttribute("src")&&this.json===void 0&&this.loading!==this.getAttribute("src")&&this.load()}get interview(){return this.json}set interview(t){this.loadToken++,this.json=t,this.draw()}set documentUrl(t){this.base=t}static styleRoot(t){const e=t instanceof ShadowRoot?t:document.head;if(e.querySelector("style[data-rr0-interview]"))return;const r=document.createElement("style");r.dataset.rr0Interview="",r.textContent=Jn,e.append(r)}async load(){const t=this.getAttribute("src"),e=++this.loadToken;if(this.loading=t??void 0,!t)return;const r=new URL(t,location.href).href;let n;try{n=$.read(await ne.json(r))}catch{n=void 0}e===this.loadToken&&(this.base=r,this.json=n,this.draw())}async loadLocale(){const t=++this.localeToken,e=zn.preferencesFor(this),r=On(e,Bn),n=r==="en"?Me:await Hn(r);t===this.localeToken&&(this.said=new X(e),this.messages=n,this.draw())}speakerName(t,e){const r=$.speakerName(t,e),n=t.speakers?.[e]?.role;return r===n&&n in this.messages.roles?this.messages.roles[n]:r}seek(t,e){const r=this.json,n=e?$.said(e):void 0,o={sighting:t.sighting??$.sightingsOf(r)[0],at:t.at,...n?{quote:n}:{}};this.dispatchEvent(new CustomEvent(Xn,{bubbles:!0,composed:!0,detail:o}));const a=this.getAttribute("player");if(!a)return;const p=this.getRootNode().getElementById?.(a);typeof p?.seekTo=="function"&&(p.scrollIntoView?.({block:"center",behavior:"smooth"}),p.seekTo(o.at,o.sighting))}gap(t,e){const r=document.createElement(e),n=document.createElement("span");n.className="bar";const o=`${this.messages.redacted}${this.messages.colon}${this.said.read(t)??""}`;return n.dataset.tip=o,n.tabIndex=0,n.setAttribute("role","img"),n.setAttribute("aria-label",o),r.append(n),r}saidNodes(t){if(!/[<&]/.test(t))return[document.createTextNode(t)];const e=document.createElement("template");e.innerHTML=t;for(const r of e.content.querySelectorAll("*")){if(["SCRIPT","STYLE","IFRAME","OBJECT","EMBED"].includes(r.tagName)){r.remove();continue}for(const n of[...r.attributes])if(/^on/i.test(n.name)||/^\s*javascript:/i.test(n.value))r.removeAttribute(n.name);else if(["href","src"].includes(n.name))try{n.value=new URL(n.value,this.base??location.href).href}catch{}}return[...e.content.childNodes]}draw(){const t=this.messages,e=this.json;this.blocks.clear();const r=Array.isArray(e?.segments)?e.segments:[];if(!e||r.length===0){this.status.hidden=!0;const m=document.createElement("p");m.textContent=t.exchangesEmpty,this.turns.replaceChildren(m);return}const n=e.speakers??{},o=Object.keys(n);if(e.proofreading){const m=o.filter(w=>!["approved","covered"].includes(e.proofreading?.[w]?.status??""));this.status.textContent=m.length===0?t.proofreadAll:t.proofreadPending.replace("{names}",m.map(w=>this.speakerName(e,w)).join(", ")),this.status.hidden=!1}else this.status.hidden=!0;const a=[];let u,p=!1,c,d;r.forEach((m,w)=>{const y=m.redacted?JSON.stringify(m.redacted.reason):void 0;if(y!==void 0&&c?.reason===y){this.blocks.set(w,c.block),m.speaker!==d&&(d=void 0);return}const b=document.createElement("div");b.className="turn",b.dataset.segment=String(w);const S=document.createElement("div");S.className="who";const T=document.createElement("span");if(T.textContent=m.redacted?"":this.speakerName(e,m.speaker),m.start!==void 0&&(b.dataset.time=$.clock(m.start,!0)),d!==m.speaker&&(u=document.createElement("div"),u.className="intervention",u.style.setProperty("--speaker-hue",String((Math.max(0,o.indexOf(m.speaker))*67+210)%360)),a.push(u),p=!1),m.redacted||(p&&b.classList.add("goes-on"),p=!0),u.append(b),d=m.speaker,S.append(T),m.redacted){b.classList.add("is-redacted");const g=this.gap(m.redacted.reason,"p");g.className="redacted",c={block:b,reason:y},b.append(S,g)}else{const g=document.createElement("p");if(g.className="said",m.parts){let R="";for(const C of m.parts){const ce="redacted"in C?"▮":$.plain(C.text);/[\p{L}\p{N}.,;:!?)»”…▮]$/u.test(R)&&/^[\p{L}\p{N}(«“▮]/u.test(ce)&&g.append(" "),"redacted"in C?g.append(this.gap(C.redacted.reason,"span")):g.append(...this.saidNodes(C.text)),R=ce}}else g.append(...this.saidNodes(m.text??""));c=void 0,b.append(S,g)}if(m.refs?.length){const g=document.createElement("div");g.className="refs";for(const R of m.refs){const C=document.createElement("button");C.type="button",C.className="ref",C.innerHTML=x.PLAY,C.append($.clock(R.at,!0)),C.addEventListener("click",()=>this.seek(R,m)),g.append(C)}b.append(g)}this.blocks.set(w,b)}),this.turns.replaceChildren(...a)}revealSegment(t){const e=this.blocks.get(t);e&&(e.scrollIntoView?.({block:"center"}),e.classList.add("flash"),window.setTimeout(()=>e.classList.remove("flash"),1600))}}function Dn(){customElements.get(Tr)||customElements.define(Tr,Re)}Dn();
|
package/dist-embed-scene/{AdsbLolArchiveProvider-CO4IRthj.js → AdsbLolArchiveProvider-Cea0LAnZ.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a4 as M,a5 as y,a as I}from"./rr0-scene.mjs";class d{static RECORD_BYTES=20;static NON_ICAO_FLAG=1<<24;static UNKNOWN=65535;static MAX_DT=35999;static decode(t){if(t.length%d.RECORD_BYTES!==0)throw new Error(`An aircraft tile is a multiple of ${d.RECORD_BYTES} bytes, not ${t.length}`);const e=new DataView(t.buffer,t.byteOffset,t.byteLength),c=[];for(let n=0;n<t.length;n+=d.RECORD_BYTES){const s=e.getUint32(n,!0),a=e.getUint16(n+16,!0),r=e.getUint16(n+18,!0);c.push({icao:s&16777215,nonIcao:(s&d.NON_ICAO_FLAG)!==0,secondsInHour:e.getUint16(n+4,!0)/10,lat:e.getInt32(n+6,!0)/1e5,lng:e.getInt32(n+10,!0)/1e5,altitudeFt:e.getInt16(n+14,!0)*25,groundSpeedKt:a===d.UNKNOWN?void 0:a/10,trackDeg:r===d.UNKNOWN?void 0:r/10})}return c}}const w="https://ufoathome.org/aircraft/index.json";class f{citation=M;static DEFAULT_RADIUS_KM=150;static FLAG_MILITARY=1;static FLAG_PIA=4;static FLAG_LADD=8;static KM_PER_DEG=111.32;static HOUR_MS=36e5;fetchImpl;indexUrls;index;hours=new Map;tiles=new Map;shards=new Map;constructor(t={}){this.fetchImpl=t.fetchImpl??fetch.bind(globalThis),this.indexUrls=t.indexUrls??f.defaultIndexUrls()}static defaultIndexUrls(){const t=[];return typeof location<"u"&&/^https?:$/.test(location.protocol)&&t.push(new URL("/aircraft/index.json",location.href).href),t.includes(w)||t.push(w),t}mayCover(t){return y.mayCover(t)}async between(t,e,c,n=f.DEFAULT_RADIUS_KM){const s=await this.loadIndex();if(!s)return{status:"failed"};const a=[];for(let o=Math.floor(e/f.HOUR_MS);o<=Math.floor(c/f.HOUR_MS);o++)a.push(o);if(!a.every(o=>s.index.days.includes(f.dayOf(o))))return{status:"outside"};const r=f.tilesAround(t,n);try{const o=(await Promise.all(a.flatMap(u=>r.map(i=>this.tileOf(s.base,u,i))))).flat();return{status:"found",tracks:f.merge(o,t,e,c,n)}}catch{return{status:"failed"}}}async describe(t,e){const c=await this.loadIndex();if(!c)return;const n=t.icao.toString(16).padStart(6,"0"),s=t.nonIcao?"non-icao":n.slice(0,2),a=`${e}/${s}`;let r=this.shards.get(a);r||(r=this.fetchImpl(new URL(`${e}/aircraft/${s}.json`,c.base).href).then(g=>g.ok?g.json():{}).catch(()=>({})),this.shards.set(a,r));const o=(await r)[t.nonIcao?`~${n}`:n];if(!o)return;const[u,i,l,h=0]=o,p={registration:u||void 0,type:i||void 0,category:l||void 0,military:(h&f.FLAG_MILITARY)!==0||void 0,restricted:(h&(f.FLAG_PIA|f.FLAG_LADD))!==0||void 0};return Object.values(p).some(g=>g!==void 0)?p:void 0}static tilesAround(t,e){const c=e/f.KM_PER_DEG,n=Math.max(-90,t.lat-c),s=Math.min(90,t.lat+c),a=Math.cos(Math.max(Math.abs(n),Math.abs(s))*Math.PI/180),r=a<1e-6?180:e/(f.KM_PER_DEG*a),o=new Set;if(r>=180)for(let i=-180;i<180;i++)o.add(i);else for(let i=Math.floor(t.lng-r);i<=Math.floor(t.lng+r);i++)o.add(I.wrapLongitude(i));const u=[];for(let i=Math.floor(n);i<=Math.min(89,Math.floor(s));i++)for(const l of o)u.push(`${i}_${l}`);return u}static dayOf(t){return new Date(t*f.HOUR_MS).toISOString().slice(0,10)}static merge(t,e,c,n,s){const a=new Map;for(const o of t){const u=o.points.filter(h=>h.t>=c&&h.t<=n&&I.groundDistanceKm(e,h)<=s);if(u.length===0)continue;const i=`${o.nonIcao?"~":""}${o.icao}`,l=a.get(i);l?l.points.push(...u):a.set(i,{icao:o.icao,nonIcao:o.nonIcao,points:u})}const r=[...a.values()];for(const o of r)o.points.sort((u,i)=>u.t-i.t);return r.sort((o,u)=>o.icao-u.icao)}loadIndex(){return this.index??=(async()=>{for(const t of this.indexUrls)try{const e=await this.fetchImpl(t);if(e.ok)return{index:await e.json(),base:t}}catch{}})(),this.index}tileOf(t,e,c){const n=f.dayOf(e),s=String(e%24).padStart(2,"0"),a=`${n}/${s}/${c}`;let r=this.tiles.get(a);return r||(r=this.hourIndex(t,n,s).then(async o=>{const u=o[c];if(!u)return[];const[i,l]=u,h=await this.fetchImpl(new URL(`${n}/${s}.pack`,t).href,{headers:{Range:`bytes=${i}-${i+l-1}`}});if(!h.ok)throw new Error(`The pack of ${n} ${s} h answered ${h.status}`);const p=new Uint8Array(await h.arrayBuffer()),g=h.status===206?p:p.subarray(i,i+l);return f.tracksOf(await f.gunzip(g),e)}),r.catch(()=>this.tiles.delete(a)),this.tiles.set(a,r)),r}hourIndex(t,e,c){const n=`${e}/${c}`;let s=this.hours.get(n);return s||(s=this.fetchImpl(new URL(`${e}/${c}.json`,t).href).then(a=>{if(a.status===404)return{};if(!a.ok)throw new Error(`The index of ${e} ${c} h answered ${a.status}`);return a.json()}),s.catch(()=>this.hours.delete(n)),this.hours.set(n,s)),s}static async gunzip(t){const e=new Blob([t]).stream().pipeThrough(new DecompressionStream("gzip"));return new Uint8Array(await new Response(e).arrayBuffer())}static tracksOf(t,e){const c=new Map;for(const n of d.decode(t)){const s=`${n.nonIcao?"~":""}${n.icao}`;let a=c.get(s);a||c.set(s,a={icao:n.icao,nonIcao:n.nonIcao,points:[]}),a.points.push({t:e*f.HOUR_MS+n.secondsInHour*1e3,lat:n.lat,lng:n.lng,altitudeFt:n.altitudeFt,groundSpeedKt:n.groundSpeedKt,trackDeg:n.trackDeg})}return[...c.values()]}}export{f as AdsbLolArchiveProvider,w as UFOATHOME_AIRCRAFT_INDEX_URL};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import{L as u}from"./LaserBeam-DXzWB-xk.js";import{P as x,S as L,a as c,I as b,E as y,b as v}from"./ParameterForm-D0GvLmqx.js";import{aQ as I,aR as T,aS as M}from"./rr0-scene.mjs";import{beamEditorMessages_en as w}from"./BeamEditorMessages_en-DDvPWAdd.js";import{T as E}from"./TimelineTracks-Bv2FX3_W.js";class o{static LIGHT_TITLE={en:"Light",fr:"Lumière",es:"Luz",it:"Luce"};static BEAM={en:"Beam",fr:"Faisceau",es:"Haz",it:"Fascio"};static WHEN={en:"When",fr:"Quand",es:"Cuándo",it:"Quando"};static nextPlace(e){const t=e[e.length-1]??{lat:0,lng:0,altitudeM:0},i=e[e.length-2];return i?{lat:2*t.lat-i.lat,lng:2*t.lng-i.lng,altitudeM:2*t.altitudeM-i.altitudeM}:{lat:t.lat,lng:t.lng+500/(111320*Math.max(.05,Math.cos(t.lat*Math.PI/180))),altitudeM:t.altitudeM}}static instant(e,t,i,s=!1){return{type:"number",key:e,min:-3600,max:36e3,step:.1,unit:"s",scale:.001,label:t,hint:i,...s?{required:s}:{}}}static SET={kind:"beam",title:{en:"Beam",fr:"Faisceau",es:"Haz",it:"Fascio"},parameters:[{type:"said",key:"title",label:{en:"Name",fr:"Nom",es:"Nombre",it:"Nome"},group:o.BEAM},{type:"number",key:"divergenceMrad",min:.001,max:1e3,step:.001,unit:"mrad",group:o.BEAM,effective:()=>u.DEFAULT_DIVERGENCE_MRAD,label:{en:"Divergence",fr:"Divergence",es:"Divergencia",it:"Divergenza"},hint:{en:"How fast it widens, full angle: 0.1 mrad is a metre wide at 10 km.",fr:"À quelle vitesse il s'élargit, angle total : 0,1 mrad fait un mètre de large à 10 km.",es:"Lo rápido que se ensancha, ángulo total: 0,1 mrad es un metro de ancho a 10 km.",it:"Quanto in fretta si allarga, angolo totale: 0,1 mrad è un metro di larghezza a 10 km."}},{type:"number",key:"apertureM",min:.001,max:10,step:.001,unit:"m",group:o.BEAM,effective:()=>u.DEFAULT_APERTURE_M,label:{en:"Width at the emitter",fr:"Largeur à l'émetteur",es:"Anchura en el emisor",it:"Larghezza all'emettitore"}},{type:"number",key:"patchiness",min:0,max:100,step:1,unit:"%",scale:100,group:o.BEAM,effective:()=>u.DEFAULT_PATCHINESS,label:{en:"Uneven haze",fr:"Brume irrégulière",es:"Bruma irregular",it:"Foschia irregolare"},hint:{en:"How unevenly the haze it crosses is spread: the beam seen from the side is brighter where it crosses a denser patch, the patches drifting with the wind. 0 is an even haze; the default is judged on photographs, not measured.",fr:"À quel point la brume qu'il traverse est inégale : vu de côté, le faisceau est plus brillant là où il traverse une poche plus dense, les poches dérivant avec le vent. 0 est une brume égale ; la valeur par défaut est jugée sur des photographies, pas mesurée.",es:"Lo desigual que es la bruma que cruza: visto de lado, el haz es más brillante donde cruza una bolsa más densa, y las bolsas derivan con el viento. 0 es una bruma uniforme; el valor por defecto se juzga en fotografías, no se mide.",it:"Quanto è irregolare la foschia che attraversa: visto di lato, il fascio è più brillante dove attraversa una sacca più densa, e le sacche derivano col vento. 0 è una foschia uniforme; il valore predefinito è giudicato su fotografie, non misurato."}}]};static WAVELENGTH_HINT={en:"Its colour: 532 for the green of a frequency-doubled laser, 520 for a green diode, 638 for a red one, 450 for a blue one.",fr:"Sa couleur : 532 pour le vert d'un laser doublé en fréquence, 520 pour une diode verte, 638 pour une rouge, 450 pour une bleue.",es:"Su color: 532 para el verde de un láser doblado en frecuencia, 520 para un diodo verde, 638 para uno rojo, 450 para uno azul.",it:"Il suo colore: 532 per il verde di un laser a frequenza raddoppiata, 520 per un diodo verde, 638 per uno rosso, 450 per uno blu."};static POWER_HINT={en:"The optical power it carries, its mean for a pulsed laser, whose pulses no eye tells apart. What is seen of it is what the air scatters.",fr:"La puissance optique qu'il porte, sa moyenne pour un laser pulsé, dont aucun œil ne distingue les impulsions. Ce qui s'en voit est ce que l'air en diffuse.",es:"La potencia óptica que lleva, su media para un láser pulsado, cuyos pulsos ningún ojo distingue. Lo que se ve de él es lo que el aire difunde.",it:"La potenza ottica che porta, la sua media per un laser pulsato, i cui impulsi nessun occhio distingue. Ciò che se ne vede è ciò che l'aria diffonde."};static WAVELENGTH_LABEL={en:"Wavelength",fr:"Longueur d'onde",es:"Longitud de onda",it:"Lunghezza d'onda"};static POWER_LABEL={en:"Power",fr:"Puissance",es:"Potencia",it:"Potenza"};static LIGHT={kind:"beam-light",title:o.LIGHT_TITLE,parameters:[{type:"number",key:"wavelengthNm",min:380,max:780,step:1,unit:"nm",required:!0,label:o.WAVELENGTH_LABEL,hint:o.WAVELENGTH_HINT},{type:"number",key:"powerW",min:.001,max:1e5,step:.001,unit:"W",required:!0,label:o.POWER_LABEL,hint:o.POWER_HINT}]};static LIGHT_KEY={kind:"beam-light-key",title:o.LIGHT_TITLE,parameters:[o.instant("t",{en:"Time",fr:"Instant",es:"Instante",it:"Istante"},{en:"Seconds of the recording.",fr:"Secondes de l'enregistrement.",es:"Segundos de la grabación.",it:"Secondi della registrazione."},!0),{type:"number",key:"wavelengthNm",min:380,max:780,step:1,unit:"nm",label:o.WAVELENGTH_LABEL,hint:o.WAVELENGTH_HINT,effective:(e,t)=>t?.wavelengthNm},{type:"number",key:"powerW",min:.001,max:1e5,step:.001,unit:"W",label:o.POWER_LABEL,hint:o.POWER_HINT,effective:(e,t)=>t?.powerW}]};static ON={kind:"beam-on",title:o.WHEN,parameters:[o.instant("fromT",{en:"On from",fr:"Allumé à",es:"Encendido a",it:"Acceso a"},{en:"Seconds of the recording; empty, from its start.",fr:"Secondes de l'enregistrement ; vide, dès son début.",es:"Segundos de la grabación; vacío, desde su inicio.",it:"Secondi della registrazione; vuoto, dal suo inizio."}),o.instant("untilT",{en:"Off at",fr:"Éteint à",es:"Apagado a",it:"Spento a"},{en:"Seconds of the recording; empty, until its end.",fr:"Secondes de l'enregistrement ; vide, jusqu'à sa fin.",es:"Segundos de la grabación; vacío, hasta su final.",it:"Secondi della registrazione; vuoto, fino alla sua fine."})]};static MOVE_KEY={kind:"beam-move-key",title:{en:"Path at an instant",fr:"Trajet à un instant",es:"Trayecto en un instante",it:"Percorso a un istante"},parameters:[o.instant("t",{en:"Time",fr:"Instant",es:"Instante",it:"Istante"},{en:"Seconds of the recording.",fr:"Secondes de l'enregistrement.",es:"Segundos de la grabación.",it:"Secondi della registrazione."},!0)]};static hexOf(e){const t=u.colourOf(e),i=Math.max(...t,1e-9),s=n=>{const r=Math.min(1,Math.max(0,n/i)),a=r<=.0031308?12.92*r:1.055*r**(1/2.4)-.055;return Math.round(a*255).toString(16).padStart(2,"0")};return`#${t.map(s).join("")}`}static wavelengthOf(e){const t=o.hueOf(e);let i=532,s=1/0;for(let n=400;n<=700;n++){const r=Math.abs((o.hueOf(o.hexOf(n))-t+540)%360-180);r<s&&(s=r,i=n)}return i}static hueOf(e){const t=Number.parseInt(e.replace("#",""),16),[i,s,n]=[t>>16&255,t>>8&255,t&255].map(p=>p/255),r=Math.max(i,s,n),a=Math.min(i,s,n);if(r===a)return 0;const h=r-a;return((r===i?(s-n)/h%6:r===s?(n-i)/h+2:(i-s)/h+4)*60+360)%360}static PLACE={kind:"beam-place",title:{en:"Point of the path",fr:"Point du trajet",es:"Punto del trayecto",it:"Punto del percorso"},parameters:[{type:"position",key:"lat",secondKey:"lng",saidKey:"saidPosition",native:"geo",step:.1,label:{en:"Position",fr:"Position",es:"Posición",it:"Posizione"}},{type:"number",key:"altitudeM",min:-500,max:1e5,step:.1,unit:"m",required:!0,label:{en:"Altitude",fr:"Altitude",es:"Altitud",it:"Altitudine"},hint:{en:"Above the sea, not the ground: an emitter at a window twelve metres up a building on ground at 160 m is at 172 m.",fr:"Au-dessus de la mer, pas du sol : un émetteur à une fenêtre à douze mètres de haut, sur un sol à 160 m, est à 172 m.",es:"Sobre el mar, no sobre el suelo: un emisor en una ventana a doce metros de altura, sobre un suelo a 160 m, está a 172 m.",it:"Sul mare, non sul suolo: un emettitore a una finestra a dodici metri d'altezza, su un suolo a 160 m, è a 172 m."}}]};static publish(){x.publish(o.SET)}}class m{constructor(e,t,i){this.container=e,this.host=t,this.language=i,L.attach(e,"beam-editor",m.STYLE),x.of("beam")||o.publish(),this.render(),this.setLanguage(i)}messages=w;languageToken=0;currentId;form;list;timeline;row="on";onForm;lightForm;lightKeyForm;lightIndex;moveKeyForm;moveIndex;places;placeForm;placeIndex=0;language;shown=[];static STYLE='.beam-editor { flex-basis: 100%; min-width: 0; } .beam-editor #beam-timeline { flex-basis: 100%; min-width: 0; padding: 4px 0; } .beam-editor #beam-list, .beam-editor #beam-places { flex-basis: 100%; min-width: 0; } .beam-editor .launch-editor, .beam-editor .launch-fields { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; } .beam-editor .launch-fields { flex-basis: 100%; min-width: 0; } .beam-editor [hidden] { display: none !important; } .beam-editor select { min-width: 0; width: 100%; } .beam-editor .launch-intro { flex-basis: 100%; margin: 0; } .beam-editor .launch-track { flex-basis: 100%; margin: 0; } .beam-editor .launch-parameters { flex-basis: 100%; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; } .beam-editor .parameter-group { flex: 1 1 14em; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; align-content: flex-start; } .beam-editor input, .beam-editor select { max-width: 100%; box-sizing: border-box; } .beam-editor input[type="text"] { width: 12em; } .beam-editor #launch-title { width: 18em; } .beam-editor label { min-width: 0; max-width: 100%; } .beam-editor input.parameter-derived::placeholder { opacity: .65; } .beam-editor .launch-path { flex: 1 1 100%; min-width: 0; box-sizing: border-box; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; }';async setLanguage(e){const t=++this.languageToken;this.language=e;const i=M.includes(e)?e:"en",s=i==="en"?w:await I(i);t===this.languageToken&&(this.messages=s,this.render(),this.sync())}sync(){const e=this.beams;this.shown=[...e],e.some(s=>s.id===this.currentId)||(this.currentId=e[0]?.id),this.list?.setItems(e.map(s=>({id:s.id,label:this.labelOf(s)})),this.currentId),this.syncAddState();const t=this.current;if(this.element("beam-fields").hidden=t===void 0,!t)return;const i={said:()=>this.host.said(),writingLanguage:()=>this.host.writingLanguage()};this.form??=new c(this.element("beam-parameters"),this.language,"beam.",i),this.form.show(o.SET,this.targetOfBeam(),()=>this.written()),this.syncDetail(!0)}refresh(){this.syncAddState();const e=this.beams;if(e.length===this.shown.length&&e.every((t,i)=>t.id===this.shown[i].id)){this.syncTimeline();return}this.sync()}setTime(e){this.timeline?.setTime(e)}syncAddState(){const e=this.pathOfNew()!==void 0;this.list?.setAddState(e,e?void 0:this.messages.addBeamNowhere)}get current(){return this.beams.find(e=>e.id===this.currentId)}show(e){this.currentId=e,this.row="on",this.lightIndex=void 0,this.moveIndex=void 0,this.placeIndex=0,this.sync()}render(){const e=this.messages;this.form=void 0,this.container.innerHTML=`<div class="launch-editor">
|
|
2
|
+
<p class="launch-intro">${e.intro}</p>
|
|
3
|
+
<div id="beam-list"></div>
|
|
4
|
+
<div id="beam-fields" class="launch-fields">
|
|
5
|
+
<div id="beam-parameters" class="launch-parameters"></div>
|
|
6
|
+
<div id="beam-timeline" class="launch-timeline"></div>
|
|
7
|
+
<p class="launch-intro">${e.timelineNote}</p>
|
|
8
|
+
<fieldset id="beam-on" class="launch-path">
|
|
9
|
+
<legend>${e.on}</legend>
|
|
10
|
+
<div id="beam-on-parameters" class="launch-parameters"></div>
|
|
11
|
+
</fieldset>
|
|
12
|
+
<fieldset id="beam-light" class="launch-path">
|
|
13
|
+
<legend>${e.light}</legend>
|
|
14
|
+
<p id="beam-light-note" class="launch-intro"></p>
|
|
15
|
+
<div id="beam-light-parameters" class="launch-parameters"></div>
|
|
16
|
+
<div id="beam-light-key-parameters" class="launch-parameters"></div>
|
|
17
|
+
<label class="beam-colour"><span>${e.colour}</span> <input id="beam-colour" type="color" title="${e.colourHint}"/></label>
|
|
18
|
+
<button id="beam-light-delete" class="icon-btn" type="button" title="${e.deleteKey}" aria-label="${e.deleteKey}">${b.TRASH}</button>
|
|
19
|
+
</fieldset>
|
|
20
|
+
<fieldset id="beam-path" class="launch-path">
|
|
21
|
+
<legend>${e.path}</legend>
|
|
22
|
+
<p id="beam-path-note" class="launch-intro"></p>
|
|
23
|
+
<div id="beam-move-key-parameters" class="launch-parameters"></div>
|
|
24
|
+
<button id="beam-move-delete" class="icon-btn" type="button" title="${e.deleteKey}" aria-label="${e.deleteKey}">${b.TRASH}</button>
|
|
25
|
+
<div id="beam-places"></div>
|
|
26
|
+
<div id="beam-place-parameters" class="launch-parameters"></div>
|
|
27
|
+
</fieldset>
|
|
28
|
+
<p class="launch-intro">${e.derivedNote}</p>
|
|
29
|
+
</div>
|
|
30
|
+
</div>`,this.list=new y({header:this.element("beam-list"),body:this.element("beam-fields"),ids:{list:"beam-select",remove:"beam-delete",add:"beam-add"},onSelect:t=>this.show(t),onAdd:()=>this.addBeam(),onRemove:()=>this.deleteCurrent()}),this.list.setLabels({list:e.beam,remove:e.deleteBeam,add:e.addBeam,empty:e.none}),this.timeline=new E(this.element("beam-timeline"),t=>this.host.seekTo(t),{addKeyframeHere:e.addHere,keyframeHere:e.here,zoomHint:e.zoomHint}),this.places=new y({header:this.element("beam-places"),body:this.element("beam-place-parameters"),ids:{list:"beam-place",remove:"beam-place-delete",add:"beam-place-add"},navigation:{scope:this.element("beam-path"),onStep:t=>this.selectPlace(this.placeIndex+t)},onSelect:t=>this.selectPlace(Number(t)),onAdd:()=>this.addPlace(),onRemove:()=>this.removePlace()}),this.places.setLabels({list:e.place,remove:e.deletePlace,add:e.addPlace,previous:e.previousPlace,next:e.nextPlace}),this.element("beam-colour").addEventListener("input",t=>this.pickColour(t.target.value)),this.element("beam-light-delete").addEventListener("click",()=>this.removeLightKey()),this.element("beam-move-delete").addEventListener("click",()=>this.removeMoveKey()),this.onForm=void 0,this.lightForm=void 0,this.lightKeyForm=void 0,this.moveKeyForm=void 0,this.placeForm=void 0}written(){const e=this.current;e&&this.list?.rename(e.id,this.labelOf(e)),this.syncTimeline()}targetOfBeam(){return new v(()=>this.current,e=>this.editBeam(t=>e(t)))}static ON_COLOR="#2f9e5a";static LIGHT_COLOR="#c0581b";static PATH_COLOR="#4f8fd6";syncTimeline(){const e=this.current;if(!this.timeline||!e)return;const t=this.messages,i=this.host.duration(),s=e.fromT??0,n=e.untilT??i,r=[{t:s,until:n,label:""}],a=this.sortedLight(e),h=this.sortedMoves(e),g=[{id:"on",label:t.on,color:m.ON_COLOR,times:[s,n],spans:r,active:this.row==="on",open:()=>this.selectRow("on"),pressed:()=>this.selectRow("on"),move:(l,d)=>this.moveEnd(l===s?"fromT":"untilT",d),add:()=>this.moveEnd("fromT",Math.round(this.host.currentTime()))},{id:"light",label:t.light,color:m.LIGHT_COLOR,times:a.map(l=>l.t),spans:a.length?[]:r,active:this.row==="light",selectedTime:this.row==="light"&&this.lightIndex!==void 0?a[this.lightIndex]?.t:void 0,open:()=>this.selectLight(this.lightIndex),pressed:(l,d)=>this.selectLight(d===void 0?this.lightIndex:this.sortedLight(this.current).findIndex(f=>f.t===d)),move:(l,d)=>this.moveLightKey(l,d),add:()=>this.addLightKey(Math.round(this.host.currentTime()))},{id:"path",label:t.path,color:m.PATH_COLOR,times:h.map(l=>l.t),spans:h.length?[]:r,active:this.row==="path",selectedTime:this.row==="path"&&this.moveIndex!==void 0?h[this.moveIndex]?.t:void 0,open:()=>this.selectMove(this.moveIndex),pressed:(l,d)=>this.selectMove(d===void 0?this.moveIndex:this.sortedMoves(this.current).findIndex(f=>f.t===d)),move:(l,d)=>this.moveMoveKey(l,d),add:()=>this.addMoveKey(Math.round(this.host.currentTime()))}],p=[s,n,...a.map(l=>l.t),...h.map(l=>l.t)];this.timeline.show(g,i,this.host.currentTime(),{from:Math.min(0,...p),to:Math.max(i,...p)})}sortedLight(e){return[...e.light??[]].sort((t,i)=>t.t-i.t)}sortedMoves(e){return[...e.moves??[]].sort((t,i)=>t.t-i.t)}selectRow(e){this.row=e,this.syncDetail(!0)}syncDetail(e=!1){this.current&&(this.element("beam-on").hidden=this.row!=="on",this.element("beam-light").hidden=this.row!=="light",this.element("beam-path").hidden=this.row!=="path",this.row==="on"&&this.syncOn(e),this.row==="light"&&this.syncLight(e),this.row==="path"&&this.syncPath(e),this.syncTimeline())}syncOn(e){this.onForm?this.onForm.sync(e):(this.onForm=new c(this.element("beam-on-parameters"),this.language,"beamOn."),this.onForm.show(o.ON,this.targetOfBeam(),()=>this.syncTimeline()))}moveEnd(e,t){this.editBeam(i=>{i[e]=t,i.fromT!==void 0&&i.untilT!==void 0&&i.untilT<i.fromT&&(e==="fromT"?delete i.untilT:[i.fromT,i.untilT]=[i.untilT,i.fromT])}),this.selectRow("on")}selectLight(e){const t=this.current?this.sortedLight(this.current):[];this.lightIndex=e!==void 0&&e>=0&&e<t.length?e:t.length?0:void 0,this.selectRow("light")}get currentLightKey(){const e=this.current;return e&&this.lightIndex!==void 0?this.sortedLight(e)[this.lightIndex]:void 0}syncLight(e){const t=this.messages,i=this.currentLightKey;this.element("beam-light-note").textContent=i?t.lightKeyNote:t.lightNoKeyNote,this.element("beam-light-parameters").hidden=i!==void 0,this.element("beam-light-key-parameters").hidden=i===void 0,this.element("beam-light-delete").hidden=i===void 0,this.lightForm?this.lightForm.sync(e):(this.lightForm=new c(this.element("beam-light-parameters"),this.language,"beamLight."),this.lightForm.show(o.LIGHT,this.targetOfBeam(),()=>this.syncColour())),this.lightKeyForm?this.lightKeyForm.sync(e):(this.lightKeyForm=new c(this.element("beam-light-key-parameters"),this.language,"beamLightKey."),this.lightKeyForm.show(o.LIGHT_KEY,new v(()=>this.currentLightKey,s=>this.editLightKey(this.lightIndex,s),()=>this.current),()=>this.syncColour())),this.syncColour()}syncColour(){const e=this.current;e&&(this.element("beam-colour").value=o.hexOf(this.currentLightKey?.wavelengthNm??e.wavelengthNm))}pickColour(e){const t=o.wavelengthOf(e);this.lightIndex===void 0?(this.editBeam(i=>{i.wavelengthNm=t}),this.lightForm?.sync(!0)):(this.editLightKey(this.lightIndex,i=>{i.wavelengthNm=t}),this.lightKeyForm?.sync(!0))}editLightKey(e,t){const i=this.current;if(!i)return;const s=this.sortedLight(i),n={...s[e]};t(n);const r=s.map((a,h)=>h===e?n:a).sort((a,h)=>a.t-h.t);this.editBeam(a=>{a.light=r}),this.lightIndex=r.indexOf(n),this.syncTimeline()}addLightKey(e){const t=this.current;if(!t)return;const i=this.sortedLight(t),s=i.findIndex(h=>Math.abs(h.t-e)<1);if(s>=0){this.selectLight(s);return}const n=u.stateAt(t,e),r={t:e,wavelengthNm:Math.round(n.wavelengthNm),powerW:Number(n.powerW.toFixed(3))},a=[...i,r].sort((h,g)=>h.t-g.t);this.editBeam(h=>{h.light=a}),this.selectLight(a.indexOf(r))}moveLightKey(e,t){const i=this.current?this.sortedLight(this.current).findIndex(s=>s.t===e):-1;i<0||(this.editLightKey(i,s=>{s.t=t}),this.selectRow("light"))}removeLightKey(){const e=this.current,t=this.lightIndex;if(!e||t===void 0)return;const i=this.sortedLight(e).filter((s,n)=>n!==t);this.editBeam(s=>{i.length?s.light=i:delete s.light}),this.selectLight(i.length?Math.min(t,i.length-1):void 0)}selectMove(e){const t=this.current?this.sortedMoves(this.current):[],i=e!==void 0&&e>=0&&e<t.length?e:t.length?0:void 0;i!==this.moveIndex&&(this.placeIndex=0),this.moveIndex=i,this.selectRow("path")}get currentMoveKey(){const e=this.current;return e&&this.moveIndex!==void 0?this.sortedMoves(e)[this.moveIndex]:void 0}get shownPath(){return this.currentMoveKey?.path??this.current?.path??[]}syncPath(e){const t=this.messages,i=this.currentMoveKey;this.element("beam-path-note").textContent=i?t.pathKeyNote:t.pathNoKeyNote,this.element("beam-move-key-parameters").hidden=i===void 0,this.element("beam-move-delete").hidden=i===void 0,this.moveKeyForm?this.moveKeyForm.sync(e):(this.moveKeyForm=new c(this.element("beam-move-key-parameters"),this.language,"beamMoveKey."),this.moveKeyForm.show(o.MOVE_KEY,new v(()=>this.currentMoveKey,s=>this.editMoveKey(this.moveIndex,n=>s(n))),()=>{})),this.syncPlaces(e)}editMoveKey(e,t){const i=this.current;if(!i)return;const s=this.sortedMoves(i),n={...s[e],path:[...s[e].path]};t(n);const r=s.map((a,h)=>h===e?n:a).sort((a,h)=>a.t-h.t);this.editBeam(a=>{a.moves=r}),this.moveIndex=r.indexOf(n),this.syncTimeline()}addMoveKey(e){const t=this.current;if(!t)return;const i=this.sortedMoves(t),s=i.findIndex(a=>Math.abs(a.t-e)<1);if(s>=0){this.selectMove(s);return}const n={t:e,path:u.stateAt(t,e).path.map(a=>({...a}))},r=[...i,n].sort((a,h)=>a.t-h.t);this.editBeam(a=>{a.moves=r}),this.selectMove(r.indexOf(n))}moveMoveKey(e,t){const i=this.current?this.sortedMoves(this.current).findIndex(s=>s.t===e):-1;i<0||(this.editMoveKey(i,s=>{s.t=t}),this.selectRow("path"))}removeMoveKey(){const e=this.current,t=this.moveIndex;if(!e||t===void 0)return;const i=this.sortedMoves(e).filter((s,n)=>n!==t);this.editBeam(s=>{i.length?s.moves=i:delete s.moves}),this.selectMove(i.length?Math.min(t,i.length-1):void 0)}syncPlaces(e=!1){const t=this.shownPath;this.placeIndex=Math.max(0,Math.min(this.placeIndex,t.length-1)),this.places?.setItems(t.map((i,s)=>({id:String(s),label:`${s+1}/${t.length}`})),String(this.placeIndex)),this.places?.setStepState(this.placeIndex>0,this.placeIndex<t.length-1),this.places?.setRemoveEnabled(t.length>m.MIN_PLACES),this.placeForm?this.placeForm.sync(e):(this.placeForm=new c(this.element("beam-place-parameters"),this.language,"beamPlace."),this.placeForm.show(o.PLACE,new v(()=>this.shownPath[this.placeIndex],i=>this.editPath(s=>{const n={...s[this.placeIndex]};return i(n),s.map((r,a)=>a===this.placeIndex?n:r)}),void 0,this.host.positionPlace?.()),()=>{}))}editPath(e){this.moveIndex!==void 0?this.editMoveKey(this.moveIndex,t=>{t.path=e(t.path)}):this.editBeam(t=>{t.path=e(t.path)})}static MIN_PLACES=2;selectPlace(e){const t=this.shownPath;e<0||e>=t.length||(this.placeIndex=e,this.syncPlaces(!0))}addPlace(){this.editPath(e=>[...e,o.nextPlace(e)]),this.placeIndex=this.shownPath.length-1,this.syncPlaces(!0)}removePlace(){if(this.shownPath.length<=m.MIN_PLACES)return;const e=this.placeIndex;this.editPath(t=>t.filter((i,s)=>s!==e)),this.syncPlaces(!0)}editBeam(e){const t=this.current;if(!t)return;const i={...t,path:[...t.path]};e(i),this.writeBeams(this.beams.map(s=>s===t?i:s)),this.host.changed()}pathOfNew(){const e=this.host.sighting(),t=e.event?.place?.[0];if(t?.lat===void 0||t.lng===void 0)return;const i=(e.observerTrack?.getInterpolatedPoseAt(0)?.headingDeg??0)*Math.PI/180,s=111320;return[{lat:t.lat,lng:t.lng,altitudeM:0},{lat:t.lat+2e3*Math.cos(i)/s,lng:t.lng+2e3*Math.sin(i)/(s*Math.max(.05,Math.cos(t.lat*Math.PI/180))),altitudeM:100}]}addBeam(){const e=this.pathOfNew();if(!e)return;let t=this.beams.length+1;for(;this.beams.some(s=>s.id===`beam-${t}`);)t++;const i={id:`beam-${t}`,path:e,wavelengthNm:532,powerW:5};this.writeBeams([...this.beams,i]),this.host.changed(),this.show(i.id)}deleteCurrent(){const e=this.current;e&&(this.currentId=void 0,this.writeBeams(this.beams.filter(t=>t!==e)),this.host.changed(),this.sync())}writeBeams(e){const t=this.host.sighting();t.skyEvents=T.written({...t.skyEvents,beams:e})}labelOf(e){const t=this.host.said().read(e.title);return t?`${t} (${e.id})`:e.id}get beams(){return this.host.sighting().skyEvents?.beams??[]}element(e){return this.container.querySelector(`#${e}`)}}export{m as BeamEditor};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={intro:"A beam of light sent through the air from the ground while the recording runs: a laser shot, a searchlight. A fact of the sky, not a reading of the account. Its path goes from the emitter through any mirror to where it ends; how bright it shows is what the air scatters of it, computed.",none:"No beam in this recording",beam:"Beam",deleteBeam:"Delete the beam",addBeam:"Add a beam",path:"Path",place:"Point of the path",addPlace:"Add a point to the path, going on as it goes",deletePlace:"Remove this point",previousPlace:"Previous point",nextPlace:"Next point",addBeamNowhere:"Give the recording a place first: a beam is put in front of the witness",derivedNote:"An empty field shows, greyed, the value in use. Clear a field to go back to it.",on:"On",zoomHint:"Pinch, or Ctrl + wheel, to zoom; Shift + wheel to scroll",light:"Light",colour:"Colour",colourHint:"A laser's light is of one wavelength: the colour picked sets the wavelength nearest it in hue. A purple, which no wavelength is, gives an end of the spectrum.",deleteKey:"Remove this key",timelineNote:'On the timeline, a row pressed is the one shown below: when it is on, its light, its path. A diamond pressed takes the scene to its instant; drag it to move it in time. The "+" of a row puts a key at the playhead, as the beam is then.',addHere:"Add here, at the playhead",here:"Already at the playhead: press it to edit it",lightKeyNote:"Its light at this instant, joined to the next key's. A field left empty takes the beam's own.",lightNoKeyNote:'Its light all along: no key. The "+" of the Light row puts one at the playhead, so that the light can change in time.',pathKeyNote:"Its path at this instant: each point goes to the same point of the next key.",pathNoKeyNote:'Its path all along: no key. The "+" of the Path row puts one at the playhead, so that the beam can move.'};export{e as beamEditorMessages_en};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e={intro:"Un haz de luz enviado por el aire desde el suelo durante la grabación: un disparo láser, un reflector. Un hecho del cielo, no una lectura del relato. Su trayecto va del emisor, por posibles espejos, hasta donde termina; su brillo es lo que el aire difunde de él, calculado.",none:"Ningún haz en esta grabación",beam:"Haz",deleteBeam:"Eliminar el haz",addBeam:"Añadir un haz",path:"Trayecto",place:"Punto del trayecto",addPlace:"Añadir un punto al trayecto, en su continuidad",deletePlace:"Quitar este punto",previousPlace:"Punto anterior",nextPlace:"Punto siguiente",addBeamNowhere:"Dé primero un lugar a la grabación: un haz se coloca delante del testigo",derivedNote:"Un campo vacío muestra, en gris, el valor usado. Vacíe un campo para volver a él.",on:"Encendido",zoomHint:"Pellizque, o Ctrl + rueda, para ampliar; Mayús + rueda para desplazar",light:"Luz",colour:"Color",colourHint:"La luz de un láser es de una sola longitud de onda: el color elegido da la longitud de onda de tono más cercano. Un púrpura, que ninguna longitud de onda es, da un extremo del espectro.",deleteKey:"Quitar esta clave",timelineNote:"En la línea de tiempo, una fila pulsada es la que se detalla debajo: cuándo está encendido, su luz, su trayecto. Un rombo pulsado lleva la escena a su instante; arrástrelo para moverlo en el tiempo. El «+» de una fila pone una clave en el cabezal, tal como está el haz entonces.",addHere:"Añadir aquí, en el cabezal",here:"Ya en el cabezal: púlselo para editarlo",lightKeyNote:"Su luz en este instante, unida a la de la clave siguiente. Un campo vacío toma la del haz.",lightNoKeyNote:"Su luz todo el tiempo: ninguna clave. El «+» de la fila Luz pone una en el cabezal, para que la luz cambie en el tiempo.",pathKeyNote:"Su trayecto en este instante: cada punto va hacia el mismo punto de la clave siguiente.",pathNoKeyNote:"Su trayecto todo el tiempo: ninguna clave. El «+» de la fila Trayecto pone una en el cabezal, para que el haz se mueva."};export{e as beamEditorMessages_es};
|