@rr0/ufoathome 0.134.0 → 0.136.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.
Files changed (59) hide show
  1. package/dist-embed-interview/rr0-interview.mjs +6 -6
  2. package/dist-embed-scene/rr0-scene.mjs +266 -266
  3. package/dist-embed-scene/sightingSchema-DqeNTmuQ.js +1 -0
  4. package/dist-embed-sighting/ShareMessages_es-BM5hHumO.js +1 -0
  5. package/dist-embed-sighting/ShareMessages_fr-DyOB2E5o.js +1 -0
  6. package/dist-embed-sighting/ShareMessages_it-C9F8UHk_.js +1 -0
  7. package/dist-embed-sighting/{SightingMessages_es-CxoccMw6.js → SightingMessages_es-B-iNzmf3.js} +1 -1
  8. package/dist-embed-sighting/{SightingMessages_fr-CdqAz1Hz.js → SightingMessages_fr-Dq30mEEs.js} +1 -1
  9. package/dist-embed-sighting/{SightingMessages_it-CkQVXDPv.js → SightingMessages_it-CSJFk0JC.js} +1 -1
  10. package/dist-embed-sighting/rr0-sighting.mjs +514 -486
  11. package/dist-embed-sighting/sightingSchema-DqeNTmuQ.js +1 -0
  12. package/dist-embed-sighting-editor/{AdsbLolArchiveProvider-DU2U8NdB.js → AdsbLolArchiveProvider-De-_PiBH.js} +1 -1
  13. package/dist-embed-sighting-editor/BeamSystem-YGYbbAkU.js +1 -0
  14. package/dist-embed-sighting-editor/{CaseEditorMessages_es-BrH54rIz.js → CaseEditorMessages_es-DUelIN8x.js} +1 -1
  15. package/dist-embed-sighting-editor/{CaseEditorMessages_fr-DF-qjRtx.js → CaseEditorMessages_fr-BppxXK1E.js} +1 -1
  16. package/dist-embed-sighting-editor/{CaseEditorMessages_it-Cb_U9B3i.js → CaseEditorMessages_it-BIYStAk9.js} +1 -1
  17. package/dist-embed-sighting-editor/ContrailSystem-CyYvtUTV.js +1 -0
  18. package/dist-embed-sighting-editor/{CoverageAssessor-DXVjXoUX.js → CoverageAssessor-DbLjQSsv.js} +1 -1
  19. package/dist-embed-sighting-editor/GLTFLoader-Clgrcwp4.js +1 -0
  20. package/dist-embed-sighting-editor/HeadlightSystem-wFRogS2e.js +34 -0
  21. package/dist-embed-sighting-editor/{HynekAssessor-Bc2SulU3.js → HynekAssessor-C6Lge7G-.js} +1 -1
  22. package/dist-embed-sighting-editor/{InterviewEditorElement-bUyn6irj.js → InterviewEditorElement-CJ3Zg6hE.js} +6 -6
  23. package/dist-embed-sighting-editor/ModelSource-D9Q4lorr.js +1 -0
  24. package/dist-embed-sighting-editor/{ModelThumbnails-CYHW7hxV.js → ModelThumbnails-DO6uXzoW.js} +1 -1
  25. package/dist-embed-sighting-editor/{ModelViewer-BzHV3bjz.js → ModelViewer-Ct9JM_Rx.js} +1 -1
  26. package/dist-embed-sighting-editor/RailwaySystem-CNhqPQHR.js +41 -0
  27. package/dist-embed-sighting-editor/{RoadMarkings-BWoz2Cuq.js → RoadMarkings-xnEtzMn8.js} +1 -1
  28. package/dist-embed-sighting-editor/ShareCodeEditor-CF7IVeXv.js +13 -0
  29. package/dist-embed-sighting-editor/ShareMessages_es-BM5hHumO.js +1 -0
  30. package/dist-embed-sighting-editor/ShareMessages_fr-DyOB2E5o.js +1 -0
  31. package/dist-embed-sighting-editor/ShareMessages_it-C9F8UHk_.js +1 -0
  32. package/dist-embed-sighting-editor/{SightingEditorMessages_es-pgii85sY.js → SightingEditorMessages_es-BFzjoSef.js} +1 -1
  33. package/dist-embed-sighting-editor/{SightingEditorMessages_fr-BysKDyGf.js → SightingEditorMessages_fr-90Ojknvv.js} +1 -1
  34. package/dist-embed-sighting-editor/{SightingEditorMessages_it-DOnHDjjj.js → SightingEditorMessages_it-BtQIjKie.js} +2 -2
  35. package/dist-embed-sighting-editor/SightingFileEditor-BH0OaQlU.js +8 -0
  36. package/dist-embed-sighting-editor/{TraceSystem-Dgxizn7s.js → TraceSystem-CArVw3Pm.js} +2 -2
  37. package/dist-embed-sighting-editor/WaterSystem-B-MThsCt.js +1 -0
  38. package/dist-embed-sighting-editor/caseSchema-DixCNMzt.js +1 -0
  39. package/dist-embed-sighting-editor/index-DSNA74v6.js +11 -0
  40. package/dist-embed-sighting-editor/interviewJson-DXD8FSBX.js +8 -0
  41. package/dist-embed-sighting-editor/interviewSchema-D82l9P1r.js +1 -0
  42. package/dist-embed-sighting-editor/rr0-sighting-editor.mjs +554 -320
  43. package/dist-embed-sighting-editor/sightingSchema-DqeNTmuQ.js +1 -0
  44. package/dist-embed-sighting-editor/{trafficRuntime-STzu7-Xp.js → trafficRuntime-DiOPs8Lf.js} +1 -1
  45. package/package.json +1 -1
  46. package/dist-embed-scene/sightingSchema-DfbuP60Y.js +0 -1
  47. package/dist-embed-sighting/sightingSchema-DfbuP60Y.js +0 -1
  48. package/dist-embed-sighting-editor/BeamSystem-BnI9L86u.js +0 -1
  49. package/dist-embed-sighting-editor/ContrailSystem-DugiVtAv.js +0 -1
  50. package/dist-embed-sighting-editor/GLTFLoader-DLQh4lKb.js +0 -1
  51. package/dist-embed-sighting-editor/HeadlightSystem-BEWiubrn.js +0 -34
  52. package/dist-embed-sighting-editor/ModelSource-CnDfgMtY.js +0 -1
  53. package/dist-embed-sighting-editor/RailwaySystem-CzPTp4PW.js +0 -41
  54. package/dist-embed-sighting-editor/SightingFileEditor-LAzFduCJ.js +0 -18
  55. package/dist-embed-sighting-editor/WaterSystem-Bv5uZSRK.js +0 -1
  56. package/dist-embed-sighting-editor/caseSchema-ByeWR3Rx.js +0 -1
  57. package/dist-embed-sighting-editor/interviewJson-CfwBPiuG.js +0 -8
  58. package/dist-embed-sighting-editor/interviewSchema-7rMvPyAl.js +0 -1
  59. package/dist-embed-sighting-editor/sightingSchema-DfbuP60Y.js +0 -1
@@ -0,0 +1,8 @@
1
+ import{F as l}from"./rr0-sighting-editor.mjs";class n{static read(t){return l.check(t,"interview")}static isProofread(t){const a=Object.keys(t.speakers);return a.length>0&&a.every(r=>{const e=t.proofreading?.[r]?.status;return e==="approved"||e==="covered"})}static said(t){return t.parts?t.parts.map(a=>"redacted"in a?"…":n.plain(a.text)).join(" "):t.redacted?void 0:n.plain(t.text??"")}static ENTITIES={amp:"&",lt:"<",gt:">",quot:'"',apos:"'",nbsp:" "};static plain(t){return/[<&]/.test(t)?t.replace(/<br\s*\/?>/gi,`
2
+ `).replace(/<\/?[a-z][^>]*>/gi,"").replace(/&#x([0-9a-f]+);/gi,(a,r)=>String.fromCodePoint(parseInt(r,16))).replace(/&#(\d+);/g,(a,r)=>String.fromCodePoint(Number(r))).replace(/&(\w+);/g,(a,r)=>n.ENTITIES[r.toLowerCase()]??a):t}static sightingsOf(t){return[t.interviewOf].flat().filter(a=>typeof a=="string")}static passagesAbout(t,a){const r=n.sightingsOf(t),e=[];return t.segments.forEach((s,c)=>{for(const o of s.refs??[]){if(o.sighting===void 0?!r.includes(a):o.sighting!==a)continue;const i=n.said(s);e.push({index:c,speaker:s.speaker,at:o.at,...i!==void 0?{text:i}:{},...o.range?{range:o.range}:{}})}}),e.sort((s,c)=>s.at-c.at||s.index-c.index)}static clock(t,a=!1){const r=Math.round(t*10),e=Math.floor(r/10),s=i=>String(i).padStart(2,"0"),c=Math.floor(e/3600),o=`${c>0||a?s(Math.floor(e/60)%60):Math.floor(e/60)}:${s(e%60)}`;return`${c>0?`${c}:`:""}${o}${a||r%10!==0?`.${r%10}`:""}`}static speakerName(t,a){const r=t.speakers[a];if(!r)return a;const e=typeof r.title=="string"?r.title:r.title?Object.values(r.title)[0]:void 0;return e||r.by&&n.agentName(r.by)||r.role}static agentName(t){if("people"in t){const[a,...r]=t.people.replace(/([a-z])([A-Z])/g,"$1 $2").split(" ");return[...r,a].join(" ")}return"org"in t?t.org:t.title??""}static stamp(t){const a=Math.round(t*1e3),r=(e,s=2)=>String(e).padStart(s,"0");return`${r(Math.floor(a/36e5))}:${r(Math.floor(a/6e4)%60)}:${r(Math.floor(a/1e3)%60)}.${r(a%1e3,3)}`}static toVtt(t){const a=s=>s.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),r=t.segments.filter(s=>s.start!==void 0);return`WEBVTT
3
+
4
+ ${r.map((s,c)=>{const o=r[c+1],i=s.end??o?.start??s.start+5,p=o&&o.start<i?Math.max(s.start,o.start):i;return`${n.stamp(s.start)} --> ${n.stamp(p)}
5
+ <v ${a(n.speakerName(t,s.speaker))}>${a(n.said(s)??"[…]")}`}).join(`
6
+
7
+ `)}
8
+ `}}export{n as InterviewFile};
@@ -0,0 +1 @@
1
+ const e={type:"string",doc:"The schema this file was written against, for an editor to check it with: https://ufoathome.org/schema/1/interview.schema.json."},t={type:"number",doc:"The version of the format this file is written in (see FormatVersion): 1, the only one so far."},s={type:"string"},o={type:"string"},i={type:"string",doc:"What the interview is called, in the languages it has.",loose:!0},n={type:"string",doc:"When it was held, as RR0 writes a time."},a={type:"enum",doc:"What it was held through: face to face (`in-person`), by `phone`, in a `video` call, by `chat`, by `email`, by `letter`, or `other`.",values:["letter","other","in-person","phone","video","chat","email"]},r={type:"array",doc:"Who held it."},c={type:"string",doc:"The `id`, or the ids, of the sighting events of the case it was held with.",loose:!0},h={type:"string",doc:"What it established, in the languages it has.",loose:!0},d={type:"object"},p={type:"object",fields:{method:{type:"enum",values:["automatic","manual"]},engine:{type:"string"},note:{type:"string"}}},y={type:"object",doc:"Who approved the transcript, by speaker id."},g={type:"object",doc:"What was taken out to anonymise it, and what stands in its place.",fields:{replaced:{type:"array"},marker:{type:"string"}}},l={type:"array",doc:"The recordings of the interview, if any are kept (see InterviewRecording).",fields:{kind:{type:"enum",values:["video","audio"]},src:{type:"string",doc:"Its address, relative to the transcript's file."},offset:{type:"number",doc:"Seconds of the recording before the transcript's time 0."}}},f={type:"array",fields:{speaker:{type:"string"},start:{type:"number"},end:{type:"number"},text:{type:"string"},redacted:{type:"object",fields:{reason:{type:"string",doc:"Why, in the languages it has: what kind of passage (private life, identifying detail, small talk, recognition error).",loose:!0},words:{type:"number",doc:'How many words were taken out: what a reader can be told of a passage whose text is gone ("passage taken out · 10 words").'}}},parts:{type:"array"},refs:{type:"array",doc:"The moments of the observation this passage tells of.",fields:{sighting:{type:"string",doc:"The `id` of the sighting event of the case; the interview's own `interviewOf` when omitted."},at:{type:"number",doc:"Seconds since the beginning of the observation."},range:{type:"object",doc:"The part of the segment's text it is about, as `[from, to)` character offsets."}}}}},m={$schema:e,version:t,id:s,language:o,title:i,time:n,medium:a,by:r,interviewOf:c,summary:h,speakers:d,transcription:p,proofreading:y,anonymization:g,recordings:l,segments:f};export{e as $schema,g as anonymization,r as by,m as default,s as id,c as interviewOf,o as language,a as medium,y as proofreading,l as recordings,f as segments,d as speakers,h as summary,n as time,i as title,p as transcription,t as version};