conformtools 0.6.0 → 0.6.3

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 (66) hide show
  1. package/README.md +27 -17
  2. package/dist/browser/timeline_core_bg.wasm +0 -0
  3. package/dist/{chunk-PZFWQJCF.js → chunk-5K56Q5EX.js} +1 -1
  4. package/dist/chunk-6FVGUJ6L.js +3 -0
  5. package/dist/{chunk-N43NAG5E.js → chunk-BK62N3ID.js} +1 -1
  6. package/dist/{chunk-AHNDJFQR.js → chunk-BUEIRRNY.js} +1 -1
  7. package/dist/{chunk-XDHIIZ6A.js → chunk-CETBLAWM.js} +1 -1
  8. package/dist/{chunk-ZAHP3ES5.js → chunk-D2RXAX5C.js} +1 -1
  9. package/dist/chunk-D5DEQ467.js +3 -0
  10. package/dist/chunk-EV52G33S.js +354 -0
  11. package/dist/chunk-FMYTLXWN.js +3 -0
  12. package/dist/{chunk-R6WJ6JIQ.js → chunk-JBSH4AK3.js} +1 -1
  13. package/dist/{chunk-PSMXHDMX.js → chunk-LO4K2ZF3.js} +1 -1
  14. package/dist/{chunk-UUDNNFU7.js → chunk-R7P7WVNI.js} +1 -1
  15. package/dist/{chunk-7XTBFOUJ.js → chunk-WE4S4PEA.js} +1 -1
  16. package/dist/claude-setup-XSNTKEU7.js +5 -0
  17. package/dist/cli.js +10 -5
  18. package/dist/conformtools-decode +0 -0
  19. package/dist/{cr3-wasm-CWKEOCYH.js → cr3-wasm-HTRSUBJK.js} +1 -1
  20. package/dist/{dng-wasm-JNFS44V5.js → dng-wasm-2I7S2SN4.js} +1 -1
  21. package/dist/{dpx-wasm-VNJRFPYY.js → dpx-wasm-AHH7D56L.js} +1 -1
  22. package/dist/{exr-wasm-5D66YR7A.js → exr-wasm-3TAN64WQ.js} +1 -1
  23. package/dist/{h264-ZB5DJSNV.js → h264-2LU2X635.js} +1 -1
  24. package/dist/{h264-mxf-NVBLGU3V.js → h264-mxf-5HJUSZLL.js} +1 -1
  25. package/dist/http.js +1 -1
  26. package/dist/i2o-transfer +0 -0
  27. package/dist/{inspect-MGSZRRAF.js → inspect-NY36WVMH.js} +1 -1
  28. package/dist/isobmff-HSF7B3Y7.js +3 -0
  29. package/dist/mcp.js +8 -9
  30. package/dist/{media_core-AISE7FMT.js → media_core-R5PPN3AY.js} +2 -2
  31. package/dist/{media_core_bg-FGAR5KA5.js → media_core_bg-MEORQOCQ.js} +1 -1
  32. package/dist/mxf-IQBPP3JA.js +3 -0
  33. package/dist/{ops-BQDPU4M6.js → ops-PFEKOSET.js} +1 -1
  34. package/dist/{r3d-T6D3M2XJ.js → r3d-QLV4J6YF.js} +1 -1
  35. package/dist/{r3d-U4XTQJXQ.js → r3d-YZH6X2D7.js} +1 -1
  36. package/dist/resolve-bridge.py +465 -37
  37. package/dist/statusline-GMMCFMOA.js +4 -0
  38. package/dist/statusline.js +3 -0
  39. package/dist/still-LORP3E5C.js +3 -0
  40. package/dist/{tiff-wasm-2CEABW6L.js → tiff-wasm-6XFTTCL4.js} +1 -1
  41. package/dist/wasm/media_core_bg.wasm +0 -0
  42. package/dist/wasm/udf_bg.wasm +0 -0
  43. package/dist/wasm-threads/media_core_bg.wasm +0 -0
  44. package/dist/{wav-KNJZMOGX.js → wav-PMVKVYNP.js} +1 -1
  45. package/package.json +1 -1
  46. package/dist/chunk-E6YXZIJS.js +0 -230
  47. package/dist/chunk-JEMLKBH2.js +0 -3
  48. package/dist/chunk-RXHNBSER.js +0 -3
  49. package/dist/isobmff-7G55HKDG.js +0 -3
  50. package/dist/mxf-YH2A2XLW.js +0 -3
  51. package/dist/skills/auto-conform/SKILL.md +0 -87
  52. package/dist/skills/conform-artist/SKILL.md +0 -68
  53. package/dist/skills/conform-artist/references/avid.md +0 -19
  54. package/dist/skills/conform-artist/references/other-hosts.md +0 -23
  55. package/dist/skills/conform-artist/references/premiere.md +0 -18
  56. package/dist/skills/conform-artist/references/resolve.md +0 -19
  57. package/dist/skills/conform-artist/references/troubleshooting.md +0 -33
  58. package/dist/skills/conform-artist/references/turnover-checklist.md +0 -37
  59. package/dist/skills/delivery-qc/SKILL.md +0 -48
  60. package/dist/still-UFLOAEM4.js +0 -3
  61. /package/dist/{arriraw-3GKCR6K2.js → arriraw-GUQEZ7CH.js} +0 -0
  62. /package/dist/{chunk-WHY3DVXS.js → chunk-GIZIR52D.js} +0 -0
  63. /package/dist/{media_core_bg-YK63OUDM.js → media_core_bg-5QHIWEZB.js} +0 -0
  64. /package/dist/{prores-L4JZZWGH.js → prores-BR2YURFP.js} +0 -0
  65. /package/dist/{timeline_core_bg-2TYWZ35G.js → timeline_core_bg-DFKQ7XOU.js} +0 -0
  66. /package/dist/{udf_bg-A4WEMSAX.js → udf_bg-ZIB3GK52.js} +0 -0
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
+ import{d as _}from"./chunk-BK62N3ID.js";function l(f){let m=[...f].sort((s,t)=>s.first_frame-t.first_frame),e=[];for(let s of m){let t=e[e.length-1];t&&s.first_frame<=t.last_frame+1?t.last_frame=Math.max(t.last_frame,s.last_frame):e.push({...s})}return e}async function g(f,m,e){let s=l(f),t=l(f.map(r=>({first_frame:Math.max(0,r.first_frame-m),last_frame:r.last_frame+m}))),n=[];for(let r of t)try{n.push(await e(r.first_frame,r.last_frame+1))}catch(o){let i=_(o)?.file_frames,u=s.filter(a=>a.last_frame>=r.first_frame&&a.first_frame<=r.last_frame);if(i==null||r.last_frame+1<=i||u.some(a=>a.first_frame<0||a.last_frame+1>i))throw o;n.push(await e(r.first_frame,i))}return n}export{l as a,g as b};
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{d as Tt}from"./chunk-PSANHDZM.js";var At={};Tt(At,{ExrBench:()=>J,ExrStreamEncoder:()=>Q,ProResBench:()=>Z,ProResMovEncoder:()=>tt,ProResMovWriter:()=>et,arriraw12_clip_info:()=>Ot,arriraw_mxf_gpu_frame:()=>Ft,audio_aac_au:()=>Wt,audio_aac_config:()=>St,audio_info:()=>Rt,bench_f32_boundary:()=>Lt,bench_piz_no_huffman:()=>zt,dci_code_full_depth:()=>Dt,dci_frame_cap:()=>Ut,dci_gpu_colour_patch:()=>jt,dci_gpu_colour_tables:()=>Bt,dci_last_pass_caps:()=>Pt,dci_legal_rates:()=>Ct,dci_mq_bench:()=>qt,dci_pack_tier1:()=>Nt,dci_stage_rgba8:()=>Ht,dci_transform_only:()=>Gt,decode_arriraw12_luma:()=>Vt,decode_arriraw12_mxf:()=>Kt,decode_arriraw12_preview:()=>Xt,decode_arriraw12_rgba:()=>Yt,decode_arriraw_luma:()=>$t,decode_arriraw_mxf:()=>Jt,decode_arriraw_preview:()=>Qt,decode_arriraw_preview_gray:()=>Zt,decode_arriraw_preview_meta:()=>te,decode_arriraw_rgba:()=>ee,decode_arriraw_rgba_meta:()=>ne,decode_audio_pcm:()=>re,decode_braw_gen5log:()=>_e,decode_braw_luma:()=>oe,decode_braw_preview:()=>ie,decode_braw_rgba:()=>ae,decode_cr3_rgba:()=>ce,decode_crm:()=>de,decode_dng_preview:()=>se,decode_dng_rgba:()=>pe,decode_dpx_preview:()=>ge,decode_dpx_rgba:()=>ue,decode_exr_linear:()=>we,decode_exr_preview:()=>be,decode_exr_rgba:()=>le,decode_jpeg_rgba:()=>fe,decode_png_rgba:()=>xe,decode_prores_band_rgba:()=>ve,decode_prores_luma:()=>Ie,decode_prores_mxf:()=>ye,decode_prores_preview:()=>me,decode_prores_raw_acescct:()=>he,decode_prores_raw_luma:()=>ke,decode_prores_raw_preview:()=>Ae,decode_prores_raw_rec2020:()=>Me,decode_prores_raw_rgba:()=>Ee,decode_prores_rgb16:()=>Te,decode_prores_rgba:()=>Oe,decode_prores_thumb_dc32:()=>Fe,decode_r3d_luma:()=>We,decode_r3d_preview:()=>Se,decode_r3d_preview_clip:()=>Re,decode_r3d_rgb16:()=>Le,decode_r3d_rgba:()=>ze,decode_r3d_rgba_clip:()=>De,decode_tiff_preview:()=>Ue,decode_tiff_rgba:()=>je,decode_vc3_band_rgba:()=>Be,decode_vc3_luma:()=>Pe,decode_vc3_mxf:()=>Ce,decode_vc3_preview:()=>qe,decode_vc3_rgba:()=>Ne,decode_xocn_index_luma:()=>He,decode_xocn_luma:()=>Ge,decode_xocn_mxf:()=>Ve,decode_xocn_preview:()=>Ke,decode_xocn_preview_rec709:()=>Xe,decode_xocn_rgb16:()=>Ye,decode_xocn_rgba:()=>$e,default:()=>nt,encode_dci_j2c:()=>Je,encode_dci_j2c_rgb:()=>Qe,encode_dci_j2c_rgba8:()=>Ze,encode_dci_j2c_staged:()=>tn,encode_dci_j2c_staged_modelled:()=>en,encode_exr:()=>nn,encode_prores_4444_alpha_mov_rgba:()=>rn,encode_prores_4444_alpha_sample_q:()=>_n,encode_prores_444_sample_cbr:()=>on,encode_prores_444_sample_cbr_rgb16:()=>an,encode_prores_444_sample_cbr_rgb16_lut:()=>cn,encode_prores_mov_rgba:()=>dn,encode_prores_rgba:()=>sn,encode_prores_sample_cbr:()=>pn,encode_prores_sample_cbr_rgb16:()=>gn,encode_prores_sample_cbr_rgb16_lut:()=>un,encode_prores_sample_q:()=>wn,exr_sequence_filename:()=>bn,fit_sizing:()=>ln,initSync:()=>Lr,inspect_cr3:()=>fn,inspect_dng:()=>xn,inspect_dpx:()=>vn,inspect_exr:()=>In,inspect_isobmff:()=>yn,inspect_tiff:()=>mn,inspect_wav:()=>hn,is_arriraw12_mxf:()=>kn,is_arriraw_mxf:()=>An,is_crm:()=>Mn,is_prores_mxf:()=>En,is_vc3_mxf:()=>Tn,is_xavc_mxf:()=>On,is_xocn_mxf:()=>Fn,list_isobmff_segments:()=>Wn,list_mxf_segments:()=>Sn,list_r3d_frames:()=>Rn,list_r3d_segments:()=>Ln,list_wav_segments:()=>zn,mux_prores_4444_alpha_samples:()=>Dn,mux_prores_samples:()=>Un,mux_prores_samples_full:()=>jn,mxf_au_run:()=>Bn,mxf_frame_index:()=>Pn,mxf_gop_map:()=>Cn,mxf_h264_kind:()=>qn,plan_isobmff_trim:()=>Nn,plan_isobmff_trim_reader:()=>Hn,plan_mxf_compact_trim:()=>Gn,plan_mxf_trim:()=>Vn,plan_r3d_compact:()=>Kn,plan_wav_trim:()=>Xn,plan_wav_trim_reader:()=>Yn,prepare_isobmff:()=>$n,prepare_mxf:()=>Jn,prepare_r3d:()=>Qn,prepare_wav:()=>Zn,probe_mov:()=>tr,probe_mxf:()=>er,probe_r3d:()=>nr,prores_band_info:()=>rr,prores_reset_rate_control:()=>_r,r3d_gpu_develop_params:()=>or,r3d_is_helium:()=>ir,read_arriraw_fcs:()=>ar,read_arriraw_unit_correction:()=>cr,recover_reframe:()=>dr,resample_rgba16:()=>sr,resample_rgba8:()=>pr,reset_dci_rate_state:()=>gr,resize_luma_area:()=>ur,rgba8_to_xyz12:()=>wr,trim_r3d:()=>br,vc3_band_info:()=>lr,video_frame_index_isobmff_reader:()=>fr,xavc_au:()=>xr,xavc_frame_count:()=>vr,xocn_frame_count:()=>Ir,xocn_index_prefix_len:()=>yr,xocn_preview_prefix_len:()=>mr});var J=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,wt.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_exrbench_free(e,0)}block_rows(){return t.exrbench_block_rows(this.__wbg_ptr)>>>0}f32_to_half_block(){return t.exrbench_f32_to_half_block(this.__wbg_ptr)}n_blocks(){return t.exrbench_n_blocks(this.__wbg_ptr)>>>0}constructor(e,n,o,a){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=I(a,t.__wbindgen_export4,t.__wbindgen_export5),u=p;t.exrbench_new(s,e,n,o,g,u);var c=_().getInt32(s+0,!0),i=_().getInt32(s+4,!0),d=_().getInt32(s+8,!0);if(d)throw w(i);return this.__wbg_ptr=c,wt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}piz_stage_block(e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.exrbench_piz_stage_block(c,this.__wbg_ptr,e);var n=_().getFloat64(c+0,!0),o=_().getInt32(c+8,!0),a=_().getInt32(c+12,!0);if(a)throw w(o);return n}finally{t.__wbindgen_add_to_stack_pointer(16)}}staging_f32_ptr(){return t.exrbench_staging_f32_ptr(this.__wbg_ptr)>>>0}staging_f32_samples(){return t.exrbench_staging_f32_samples(this.__wbg_ptr)>>>0}staging_half_len(){return t.exrbench_staging_half_len(this.__wbg_ptr)>>>0}staging_half_ptr(){return t.exrbench_staging_half_ptr(this.__wbg_ptr)>>>0}zip_stage_block(e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.exrbench_zip_stage_block(c,this.__wbg_ptr,e);var n=_().getFloat64(c+0,!0),o=_().getInt32(c+8,!0),a=_().getInt32(c+12,!0);if(a)throw w(o);return n}finally{t.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(J.prototype[Symbol.dispose]=J.prototype.free);var Q=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,bt.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_exrstreamencoder_free(e,0)}block_rows(){return t.exrstreamencoder_block_rows(this.__wbg_ptr)>>>0}finish(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_finish(i,this.__wbg_ptr);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}header(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_header(a,this.__wbg_ptr);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}n_blocks(){return t.exrstreamencoder_n_blocks(this.__wbg_ptr)>>>0}constructor(e,n,o,a,c,i,d,s,g,u){try{let y=t.__wbindgen_add_to_stack_pointer(-16),h=I(o,t.__wbindgen_export4,t.__wbindgen_export5),k=p,M=I(a,t.__wbindgen_export4,t.__wbindgen_export5),O=p,F=I(c,t.__wbindgen_export4,t.__wbindgen_export5),E=p,W=I(i,t.__wbindgen_export4,t.__wbindgen_export5),S=p,z=I(s,t.__wbindgen_export4,t.__wbindgen_export5),U=p;t.exrstreamencoder_new(y,e,n,h,k,M,O,F,E,W,S,d,z,U,g,u);var b=_().getInt32(y+0,!0),x=_().getInt32(y+4,!0),m=_().getInt32(y+8,!0);if(m)throw w(x);return this.__wbg_ptr=b,bt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_block(e){try{let d=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_push_block(d,this.__wbg_ptr,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}rows_remaining(){return t.exrstreamencoder_rows_remaining(this.__wbg_ptr)>>>0}staging_ptr(){return t.exrstreamencoder_staging_ptr(this.__wbg_ptr)>>>0}staging_samples(){return t.exrstreamencoder_staging_samples(this.__wbg_ptr)>>>0}};Symbol.dispose&&(Q.prototype[Symbol.dispose]=Q.prototype.free);var Z=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,lt.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_proresbench_free(e,0)}constructor(e,n,o,a){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=I(o,t.__wbindgen_export4,t.__wbindgen_export5),u=p;t.proresbench_new(s,e,n,g,u,a);var c=_().getInt32(s+0,!0),i=_().getInt32(s+4,!0),d=_().getInt32(s+8,!0);if(d)throw w(i);return this.__wbg_ptr=c,lt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}stage(e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.proresbench_stage(c,this.__wbg_ptr,e);var n=_().getFloat64(c+0,!0),o=_().getInt32(c+8,!0),a=_().getInt32(c+12,!0);if(a)throw w(o);return n}finally{t.__wbindgen_add_to_stack_pointer(16)}}staging_len(){return t.proresbench_staging_len(this.__wbg_ptr)>>>0}staging_ptr(){return t.proresbench_staging_ptr(this.__wbg_ptr)>>>0}};Symbol.dispose&&(Z.prototype[Symbol.dispose]=Z.prototype.free);var tt=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ft.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_proresmovencoder_free(e,0)}add_frame_rgba(e){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(e,t.__wbindgen_export4),i=p;t.proresmovencoder_add_frame_rgba(a,this.__wbg_ptr,c,i);var n=_().getInt32(a+0,!0),o=_().getInt32(a+4,!0);if(o)throw w(n)}finally{t.__wbindgen_add_to_stack_pointer(16)}}finish(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovencoder_finish(a,this.__wbg_ptr);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}frame_count(){return t.proresmovencoder_frame_count(this.__wbg_ptr)>>>0}constructor(e,n,o,a){let c=t.proresmovencoder_new(e,n,o,a);return this.__wbg_ptr=c,ft.register(this,this.__wbg_ptr,this),this}set_alpha(e){t.proresmovencoder_set_alpha(this.__wbg_ptr,e)}set_bitrate_mbps(e){t.proresmovencoder_set_bitrate_mbps(this.__wbg_ptr,e)}set_qscale(e){t.proresmovencoder_set_qscale(this.__wbg_ptr,e)}};Symbol.dispose&&(tt.prototype[Symbol.dispose]=tt.prototype.free);var et=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,xt.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_proresmovwriter_free(e,0)}finish(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_finish(a,this.__wbg_ptr);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}frame_count(){return t.proresmovwriter_frame_count(this.__wbg_ptr)>>>0}header(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_header(a,this.__wbg_ptr);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}mdat_box_header(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_mdat_box_header(a,this.__wbg_ptr);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}mdat_box_offset(){return t.proresmovwriter_mdat_box_offset(this.__wbg_ptr)}constructor(e,n,o,a){let c=t.proresmovwriter_new(e,n,o,a);return this.__wbg_ptr=c,xt.register(this,this.__wbg_ptr,this),this}push_frame(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_push_frame(i,this.__wbg_ptr);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_sample(e){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(e,t.__wbindgen_export4),i=p;t.proresmovwriter_push_sample(a,this.__wbg_ptr,c,i);var n=_().getInt32(a+0,!0),o=_().getInt32(a+4,!0);if(o)throw w(n)}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_sample_len(e){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_push_sample_len(a,this.__wbg_ptr,e);var n=_().getInt32(a+0,!0),o=_().getInt32(a+4,!0);if(o)throw w(n)}finally{t.__wbindgen_add_to_stack_pointer(16)}}reserve_large_mdat(e){t.proresmovwriter_reserve_large_mdat(this.__wbg_ptr,e)}set_alpha(e){t.proresmovwriter_set_alpha(this.__wbg_ptr,e)}set_bitrate_mbps(e){t.proresmovwriter_set_bitrate_mbps(this.__wbg_ptr,e)}set_par(e,n){t.proresmovwriter_set_par(this.__wbg_ptr,e,n)}set_profile(e){let n=I(e,t.__wbindgen_export4,t.__wbindgen_export5),o=p;t.proresmovwriter_set_profile(this.__wbg_ptr,n,o)}set_qscale(e){t.proresmovwriter_set_qscale(this.__wbg_ptr,e)}set_start_timecode(e,n){t.proresmovwriter_set_start_timecode(this.__wbg_ptr,e,n)}staging_len(){return t.proresmovwriter_staging_len(this.__wbg_ptr)>>>0}staging_ptr(){return t.proresmovwriter_staging_ptr(this.__wbg_ptr)>>>0}total_len(){return t.proresmovwriter_total_len(this.__wbg_ptr)}};Symbol.dispose&&(et.prototype[Symbol.dispose]=et.prototype.free);function Ot(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.arriraw12_clip_info(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Ft(r,e,n,o){var a=B(o)?0:I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p;let i=t.arriraw_mxf_gpu_frame(v(r),e,n,a,c);return w(i)}function Wt(r,e,n){let o=t.audio_aac_au(v(r),e,n);return w(o)}function St(r,e){let n=t.audio_aac_config(v(r),e);return w(n)}function Rt(r,e){let n=t.audio_info(v(r),e);return w(n)}function Lt(r){let e=gt(r,t.__wbindgen_export4),n=p;return t.bench_f32_boundary(e,n)}function zt(r,e,n,o){let a=gt(r,t.__wbindgen_export4),c=p;return t.bench_piz_no_huffman(a,c,e,n,o)}function Dt(r,e,n){let o=R(r,t.__wbindgen_export4),a=p;return t.dci_code_full_depth(o,a,e,n)}function Ut(r,e,n){return t.dci_frame_cap(r,e,n)>>>0}function jt(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p,u=I(e,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.dci_gpu_colour_patch(d,s,g,u,b);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=pt(n,o).slice();return t.__wbindgen_export3(n,o*2,2),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Bt(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=I(r,t.__wbindgen_export4,t.__wbindgen_export5),s=p;t.dci_gpu_colour_tables(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Pt(){try{let o=t.__wbindgen_add_to_stack_pointer(-16);t.dci_last_pass_caps(o);var r=_().getInt32(o+0,!0),e=_().getInt32(o+4,!0),n=_t(r,e).slice();return t.__wbindgen_export3(r,e*4,4),n}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ct(r,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.dci_legal_rates(c,r,e);var n=_().getInt32(c+0,!0),o=_().getInt32(c+4,!0),a=_t(n,o).slice();return t.__wbindgen_export3(n,o*4,4),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function qt(r){return t.dci_mq_bench(r)>>>0}function Nt(r,e,n,o,a,c,i,d,s,g,u){try{let k=t.__wbindgen_add_to_stack_pointer(-16),M=L(r,t.__wbindgen_export4),O=p,F=l(e,t.__wbindgen_export4),E=p,W=L(n,t.__wbindgen_export4),S=p,z=L(o,t.__wbindgen_export4),U=p,C=L(a,t.__wbindgen_export4),q=p,ot=L(c,t.__wbindgen_export4),it=p,at=L(i,t.__wbindgen_export4),ct=p,Mt=L(d,t.__wbindgen_export4),Et=p;t.dci_pack_tier1(k,M,O,F,E,W,S,z,U,C,q,ot,it,at,ct,Mt,Et,s,g,u);var b=_().getInt32(k+0,!0),x=_().getInt32(k+4,!0),m=_().getInt32(k+8,!0),y=_().getInt32(k+12,!0);if(y)throw w(m);var h=f(b,x).slice();return t.__wbindgen_export3(b,x*1,1),h}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ht(r,e){let n=t.dci_stage_rgba8(r,e);return w(n)}function Gt(r,e,n){let o=R(r,t.__wbindgen_export4),a=p;return t.dci_transform_only(o,a,e,n)}function Vt(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p,u=l(e,t.__wbindgen_export4),b=p;t.decode_arriraw12_luma(d,s,g,u,b);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Kt(r,e,n,o){let a=I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_arriraw12_mxf(v(r),e,n,a,c);return w(i)}function Xt(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p,b=l(e,t.__wbindgen_export4),x=p;t.decode_arriraw12_preview(s,g,u,b,x,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Yt(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p,u=l(e,t.__wbindgen_export4),b=p;t.decode_arriraw12_rgba(d,s,g,u,b);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $t(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.decode_arriraw_luma(s,g,u,e,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Jt(r,e,n,o){let a=I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_arriraw_mxf(v(r),e,n,a,c);return w(i)}function Qt(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.decode_arriraw_preview(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Zt(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.decode_arriraw_preview_gray(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function te(r,e,n,o,a,c,i,d,s){try{let k=t.__wbindgen_add_to_stack_pointer(-16),M=l(r,t.__wbindgen_export4),O=p;var g=B(s)?0:Y(s,t.__wbindgen_export4),u=p;t.decode_arriraw_preview_meta(k,M,O,e,n,o,a,c,i,d,g,u);var b=_().getInt32(k+0,!0),x=_().getInt32(k+4,!0),m=_().getInt32(k+8,!0),y=_().getInt32(k+12,!0);if(y)throw w(m);var h=f(b,x).slice();return t.__wbindgen_export3(b,x*1,1),h}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ee(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.decode_arriraw_rgba(s,g,u,e,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ne(r,e,n,o,a,c,i,d){try{let h=t.__wbindgen_add_to_stack_pointer(-16),k=l(r,t.__wbindgen_export4),M=p;var s=B(d)?0:Y(d,t.__wbindgen_export4),g=p;t.decode_arriraw_rgba_meta(h,k,M,e,n,o,a,c,i,s,g);var u=_().getInt32(h+0,!0),b=_().getInt32(h+4,!0),x=_().getInt32(h+8,!0),m=_().getInt32(h+12,!0);if(m)throw w(x);var y=f(u,b).slice();return t.__wbindgen_export3(u,b*1,1),y}finally{t.__wbindgen_add_to_stack_pointer(16)}}function re(r,e,n,o){let a=t.decode_audio_pcm(v(r),e,n,o);return w(a)}function _e(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),i=p;t.decode_braw_gen5log(a,c,i);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function oe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_braw_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ie(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_braw_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ae(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_braw_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ce(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_cr3_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function de(r,e,n,o){let a=I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_crm(v(r),e,n,a,c);return w(i)}function se(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_dng_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_dng_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ge(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_dpx_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ue(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_dpx_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function we(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_exr_linear(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function be(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_exr_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function le(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_exr_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function fe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_jpeg_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function xe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_png_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ve(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.decode_prores_band_rgba(s,g,u,e,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ie(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ye(r,e,n,o){let a=I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_prores_mxf(v(r),e,n,a,c);return w(i)}function me(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_prores_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function he(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_raw_acescct(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ke(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_raw_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ae(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_prores_raw_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Me(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_raw_rec2020(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ee(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_raw_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Te(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_rgb16(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Oe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Fe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_thumb_dc32(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function We(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_r3d_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Se(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_r3d_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Re(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p,b=l(e,t.__wbindgen_export4),x=p;t.decode_r3d_preview_clip(s,g,u,b,x,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Le(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_r3d_rgb16(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ze(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_r3d_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function De(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p,u=l(e,t.__wbindgen_export4),b=p;t.decode_r3d_rgba_clip(d,s,g,u,b);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ue(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_tiff_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function je(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_tiff_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Be(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.decode_vc3_band_rgba(s,g,u,e,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Pe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_vc3_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ce(r,e,n,o){let a=I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_vc3_mxf(v(r),e,n,a,c);return w(i)}function qe(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_vc3_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ne(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_vc3_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function He(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),i=p;t.decode_xocn_index_luma(a,c,i);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ge(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_xocn_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ve(r,e,n,o){let a=I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_xocn_mxf(v(r),e,n,a,c);return w(i)}function Ke(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_xocn_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Xe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_xocn_preview_rec709(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ye(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),i=p;t.decode_xocn_rgb16(a,c,i);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $e(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_xocn_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Je(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=R(r,t.__wbindgen_export4),b=p;t.encode_dci_j2c(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Qe(r,e,n,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=R(r,t.__wbindgen_export4),m=p,y=I(n,t.__wbindgen_export4,t.__wbindgen_export5),h=p;t.encode_dci_j2c_rgb(b,x,m,e,y,h,o,a,c);var i=_().getInt32(b+0,!0),d=_().getInt32(b+4,!0),s=_().getInt32(b+8,!0),g=_().getInt32(b+12,!0);if(g)throw w(s);var u=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ze(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p,m=I(e,t.__wbindgen_export4,t.__wbindgen_export5),y=p;t.encode_dci_j2c_rgba8(u,b,x,m,y,n,o,a);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function tn(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=I(o,t.__wbindgen_export4,t.__wbindgen_export5),x=p;t.encode_dci_j2c_staged(u,r,e,n,b,x,a);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function en(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=I(o,t.__wbindgen_export4,t.__wbindgen_export5),x=p;t.encode_dci_j2c_staged_modelled(u,r,e,n,b,x,a);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function nn(r,e,n,o,a,c,i,d,s,g,u,b,x,m,y){try{let E=t.__wbindgen_add_to_stack_pointer(-16),W=gt(r,t.__wbindgen_export4),S=p,z=I(a,t.__wbindgen_export4,t.__wbindgen_export5),U=p,C=I(c,t.__wbindgen_export4,t.__wbindgen_export5),q=p,ot=I(i,t.__wbindgen_export4,t.__wbindgen_export5),it=p,at=I(x,t.__wbindgen_export4,t.__wbindgen_export5),ct=p;t.encode_exr(E,W,S,e,n,o,z,U,C,q,ot,it,d,s,g,u,b,at,ct,m,y);var h=_().getInt32(E+0,!0),k=_().getInt32(E+4,!0),M=_().getInt32(E+8,!0),O=_().getInt32(E+12,!0);if(O)throw w(M);var F=f(h,k).slice();return t.__wbindgen_export3(h,k*1,1),F}finally{t.__wbindgen_add_to_stack_pointer(16)}}function rn(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p;t.encode_prores_4444_alpha_mov_rgba(u,b,x,e,n,o,a);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _n(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.encode_prores_4444_alpha_sample_q(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function on(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function an(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=R(r,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr_rgb16(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function cn(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=R(r,t.__wbindgen_export4),x=p,m=R(a,t.__wbindgen_export4),y=p;t.encode_prores_444_sample_cbr_rgb16_lut(u,b,x,e,n,o,m,y);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function dn(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p;t.encode_prores_mov_rgba(u,b,x,e,n,o,a);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function sn(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.encode_prores_rgba(s,g,u,e,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pn(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function gn(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=R(r,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr_rgb16(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function un(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=R(r,t.__wbindgen_export4),x=p,m=R(a,t.__wbindgen_export4),y=p;t.encode_prores_sample_cbr_rgb16_lut(u,b,x,e,n,o,m,y);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function wn(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.encode_prores_sample_q(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function bn(r,e,n,o){let a,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=I(r,t.__wbindgen_export4,t.__wbindgen_export5),y=p;t.exr_sequence_filename(x,m,y,e,n,o);var i=_().getInt32(x+0,!0),d=_().getInt32(x+4,!0),s=_().getInt32(x+8,!0),g=_().getInt32(x+12,!0),u=i,b=d;if(g)throw u=0,b=0,w(s);return a=u,c=b,T(u,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,c,1)}}function ln(r,e,n,o,a,c,i,d){let s,g;try{let k=t.__wbindgen_add_to_stack_pointer(-16),M=l(r,t.__wbindgen_export4),O=p,F=l(o,t.__wbindgen_export4),E=p,W=I(d,t.__wbindgen_export4,t.__wbindgen_export5),S=p;t.fit_sizing(k,M,O,e,n,F,E,a,c,i,W,S);var u=_().getInt32(k+0,!0),b=_().getInt32(k+4,!0),x=_().getInt32(k+8,!0),m=_().getInt32(k+12,!0),y=u,h=b;if(m)throw y=0,h=0,w(x);return s=y,g=h,T(y,h)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(s,g,1)}}function fn(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.inspect_cr3(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function xn(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.inspect_dng(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function vn(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.inspect_dpx(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function In(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.inspect_exr(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function yn(r,e,n){let o=I(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.inspect_isobmff(v(r),e,o,a);return w(c)}function mn(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.inspect_tiff(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function hn(r,e){let n=t.inspect_wav(v(r),e);return w(n)}function kn(r,e){let n=t.is_arriraw12_mxf(v(r),e);return w(n)}function An(r,e){let n=t.is_arriraw_mxf(v(r),e);return w(n)}function Mn(r,e){let n=t.is_crm(v(r),e);return w(n)}function En(r,e){let n=t.is_prores_mxf(v(r),e);return w(n)}function Tn(r,e){let n=t.is_vc3_mxf(v(r),e);return w(n)}function On(r,e){let n=t.is_xavc_mxf(v(r),e);return w(n)}function Fn(r,e){let n=t.is_xocn_mxf(v(r),e);return w(n)}function Wn(r,e,n){let o=I(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.list_isobmff_segments(v(r),e,o,a);return w(c)}function Sn(r,e){let n=t.list_mxf_segments(v(r),e);return w(n)}function Rn(r,e){let n=I(e,t.__wbindgen_export4,t.__wbindgen_export5),o=p,a=t.list_r3d_frames(v(r),n,o);return w(a)}function Ln(r,e){let n=I(e,t.__wbindgen_export4,t.__wbindgen_export5),o=p,a=t.list_r3d_segments(v(r),n,o);return w(a)}function zn(r,e){let n=t.list_wav_segments(v(r),e);return w(n)}function Dn(r,e,n,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(r,t.__wbindgen_export4),m=p,y=L(e,t.__wbindgen_export4),h=p;t.mux_prores_4444_alpha_samples(b,x,m,y,h,n,o,a,c);var i=_().getInt32(b+0,!0),d=_().getInt32(b+4,!0),s=_().getInt32(b+8,!0),g=_().getInt32(b+12,!0);if(g)throw w(s);var u=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Un(r,e,n,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(r,t.__wbindgen_export4),m=p,y=L(e,t.__wbindgen_export4),h=p;t.mux_prores_samples(b,x,m,y,h,n,o,a,c);var i=_().getInt32(b+0,!0),d=_().getInt32(b+4,!0),s=_().getInt32(b+8,!0),g=_().getInt32(b+12,!0);if(g)throw w(s);var u=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function jn(r,e,n,o,a,c,i,d,s,g,u,b){try{let M=t.__wbindgen_add_to_stack_pointer(-16),O=l(r,t.__wbindgen_export4),F=p,E=L(e,t.__wbindgen_export4),W=p,S=I(i,t.__wbindgen_export4,t.__wbindgen_export5),z=p;t.mux_prores_samples_full(M,O,F,E,W,n,o,a,c,S,z,d,s,g,u,b);var x=_().getInt32(M+0,!0),m=_().getInt32(M+4,!0),y=_().getInt32(M+8,!0),h=_().getInt32(M+12,!0);if(h)throw w(y);var k=f(x,m).slice();return t.__wbindgen_export3(x,m*1,1),k}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Bn(r,e,n,o){let a=t.mxf_au_run(v(r),e,n,o);return w(a)}function Pn(r,e){let n=t.mxf_frame_index(v(r),e);return w(n)}function Cn(r,e){let n=t.mxf_gop_map(v(r),e);return w(n)}function qn(r,e){let n=t.mxf_h264_kind(v(r),e);return w(n)}function Nn(r,e){let n,o;try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p,m=I(e,t.__wbindgen_export4,t.__wbindgen_export5),y=p;t.plan_isobmff_trim(u,b,x,m,y);var a=_().getInt32(u+0,!0),c=_().getInt32(u+4,!0),i=_().getInt32(u+8,!0),d=_().getInt32(u+12,!0),s=a,g=c;if(d)throw s=0,g=0,w(i);return n=s,o=g,T(s,g)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,o,1)}}function Hn(r,e,n,o,a){let c=I(a,t.__wbindgen_export4,t.__wbindgen_export5),i=p,d=t.plan_isobmff_trim_reader(v(r),e,n,o,c,i);return w(d)}function Gn(r){let e,n;try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=I(r,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.plan_mxf_compact_trim(g,u,b);var o=_().getInt32(g+0,!0),a=_().getInt32(g+4,!0),c=_().getInt32(g+8,!0),i=_().getInt32(g+12,!0),d=o,s=a;if(i)throw d=0,s=0,w(c);return e=d,n=s,T(d,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Vn(r,e,n,o){let a=t.plan_mxf_trim(v(r),e,n,o);return w(a)}function Kn(r,e,n,o,a,c,i,d){let s,g;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=l(r,t.__wbindgen_export4),y=p,h=l(e,t.__wbindgen_export4),k=p,M=l(n,t.__wbindgen_export4),O=p,F=l(o,t.__wbindgen_export4),E=p,W=Y(a,t.__wbindgen_export4),S=p,z=Y(c,t.__wbindgen_export4),U=p,C=Y(i,t.__wbindgen_export4),q=p;t.plan_r3d_compact(x,m,y,h,k,M,O,F,E,W,S,z,U,C,q,d);var u=_().getInt32(x+0,!0),b=_().getInt32(x+4,!0);return s=u,g=b,T(u,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(s,g,1)}}function Xn(r,e,n,o){let a,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=l(r,t.__wbindgen_export4),y=p;t.plan_wav_trim(x,m,y,e,n,o);var i=_().getInt32(x+0,!0),d=_().getInt32(x+4,!0),s=_().getInt32(x+8,!0),g=_().getInt32(x+12,!0),u=i,b=d;if(g)throw u=0,b=0,w(s);return a=u,c=b,T(u,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,c,1)}}function Yn(r,e,n,o,a){let c=t.plan_wav_trim_reader(v(r),e,n,o,a);return w(c)}function $n(r,e,n,o){let a=I(n,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=I(o,t.__wbindgen_export4,t.__wbindgen_export5),d=p,s=t.prepare_isobmff(v(r),e,a,c,i,d);return w(s)}function Jn(r,e,n){let o=I(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.prepare_mxf(v(r),e,o,a);return w(c)}function Qn(r,e,n){let o=I(e,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=I(n,t.__wbindgen_export4,t.__wbindgen_export5),i=p,d=t.prepare_r3d(v(r),o,a,c,i);return w(d)}function Zn(r,e,n,o){let a=I(n,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.prepare_wav(v(r),e,a,c,o);return w(i)}function tr(r){let e,n;try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.probe_mov(g,u,b);var o=_().getInt32(g+0,!0),a=_().getInt32(g+4,!0),c=_().getInt32(g+8,!0),i=_().getInt32(g+12,!0),d=o,s=a;if(i)throw d=0,s=0,w(c);return e=d,n=s,T(d,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function er(r,e){let n=t.probe_mxf(v(r),e);return w(n)}function nr(r,e){let n=I(e,t.__wbindgen_export4,t.__wbindgen_export5),o=p,a=t.probe_r3d(v(r),n,o);return w(a)}function rr(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.prores_band_info(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=_t(e,n).slice();return t.__wbindgen_export3(e,n*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _r(){t.prores_reset_rate_control()}function or(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),i=p;t.r3d_gpu_develop_params(a,c,i);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ir(r){let e=l(r,t.__wbindgen_export4),n=p;return t.r3d_is_helium(e,n)!==0}function ar(r){let e,n;try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.read_arriraw_fcs(g,u,b);var o=_().getInt32(g+0,!0),a=_().getInt32(g+4,!0),c=_().getInt32(g+8,!0),i=_().getInt32(g+12,!0),d=o,s=a;if(i)throw d=0,s=0,w(c);return e=d,n=s,T(d,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function cr(r,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.read_arriraw_unit_correction(c,i,d,e);var n=_().getInt32(c+0,!0),o=_().getInt32(c+4,!0),a=Mr(n,o).slice();return t.__wbindgen_export3(n,o*8,8),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function dr(r,e,n,o,a,c,i){let d,s;try{let h=t.__wbindgen_add_to_stack_pointer(-16),k=l(r,t.__wbindgen_export4),M=p,O=l(o,t.__wbindgen_export4),F=p,E=I(i,t.__wbindgen_export4,t.__wbindgen_export5),W=p;t.recover_reframe(h,k,M,e,n,O,F,a,c,E,W);var g=_().getInt32(h+0,!0),u=_().getInt32(h+4,!0),b=_().getInt32(h+8,!0),x=_().getInt32(h+12,!0),m=g,y=u;if(x)throw m=0,y=0,w(b);return d=m,s=y,T(m,y)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(d,s,1)}}function sr(r,e,n,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=R(r,t.__wbindgen_export4),m=p,y=I(c,t.__wbindgen_export4,t.__wbindgen_export5),h=p;t.resample_rgba16(b,x,m,e,n,o,a,y,h);var i=_().getInt32(b+0,!0),d=_().getInt32(b+4,!0),s=_().getInt32(b+8,!0),g=_().getInt32(b+12,!0);if(g)throw w(s);var u=pt(i,d).slice();return t.__wbindgen_export3(i,d*2,2),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pr(r,e,n,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(r,t.__wbindgen_export4),m=p,y=I(c,t.__wbindgen_export4,t.__wbindgen_export5),h=p;t.resample_rgba8(b,x,m,e,n,o,a,y,h);var i=_().getInt32(b+0,!0),d=_().getInt32(b+4,!0),s=_().getInt32(b+8,!0),g=_().getInt32(b+12,!0);if(g)throw w(s);var u=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function gr(){t.reset_dci_rate_state()}function ur(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.resize_luma_area(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function wr(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p,m=I(a,t.__wbindgen_export4,t.__wbindgen_export5),y=p;t.rgba8_to_xyz12(u,b,x,e,n,o,m,y);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=pt(c,i).slice();return t.__wbindgen_export3(c,i*2,2),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function br(r,e,n,o){let a=I(e,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=I(n,t.__wbindgen_export4,t.__wbindgen_export5),d=p,s=I(o,t.__wbindgen_export4,t.__wbindgen_export5),g=p,u=t.trim_r3d(v(r),a,c,i,d,s,g);return w(u)}function lr(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.vc3_band_info(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=_t(e,n).slice();return t.__wbindgen_export3(e,n*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function fr(r,e,n){let o=I(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.video_frame_index_isobmff_reader(v(r),e,o,a);return w(c)}function xr(r,e,n){let o=t.xavc_au(v(r),e,n);return w(o)}function vr(r,e){let n=t.xavc_frame_count(v(r),e);return w(n)}function Ir(r,e){let n=t.xocn_frame_count(v(r),e);return w(n)}function yr(r){let e=l(r,t.__wbindgen_export4),n=p;return t.xocn_index_prefix_len(e,n)>>>0}function mr(r){let e=l(r,t.__wbindgen_export4),n=p;return t.xocn_preview_prefix_len(e,n)>>>0}function It(){return{__proto__:null,"./media_core_bg.js":{__proto__:null,__wbg___wbindgen_is_function_acc5528be2b923f2:function(e){return typeof A(e)=="function"},__wbg___wbindgen_is_undefined_721f8decd50c87a3:function(e){return A(e)===void 0},__wbg___wbindgen_throw_ea4887a5f8f9a9db:function(e,n){throw new Error(T(e,n))},__wbg__wbg_cb_unref_33c39e13d73b25f6:function(e){A(e)._wbg_cb_unref()},__wbg_call_0e855b388e315e17:function(){return dt(function(e,n,o,a){let c=A(e).call(A(n),A(o),A(a));return v(c)},arguments)},__wbg_call_5575218572ead796:function(){return dt(function(e,n,o){let a=A(e).call(A(n),A(o));return v(a)},arguments)},__wbg_call_dd0f909cbc9405d0:function(){return dt(function(e,n,o,a,c){let i=A(e).call(A(n),A(o),A(a),A(c));return v(i)},arguments)},__wbg_length_589238bdcf171f0e:function(e){return A(e).length},__wbg_new_81880fb5002cb255:function(e){let n=new Uint8Array(A(e));return v(n)},__wbg_new_typed_00a409eb4ec4f2d9:function(e,n){try{var o={a:e,b:n},a=(i,d)=>{let s=o.a;o.a=0;try{return kr(s,o.b,i,d)}finally{o.a=s}};let c=new Promise(a);return v(c)}finally{o.a=0}},__wbg_prototypesetcall_d721637c7ca66eb8:function(e,n,o){Uint8Array.prototype.set.call(f(e,n),A(o))},__wbg_queueMicrotask_1c9b3800e321a967:function(e){let n=A(e).queueMicrotask;return v(n)},__wbg_queueMicrotask_311744e534a929a3:function(e){queueMicrotask(A(e))},__wbg_resolve_d82363d90af6928a:function(e){let n=Promise.resolve(A(e));return v(n)},__wbg_static_accessor_GLOBAL_THIS_2fee5048bcca5938:function(){let e=typeof globalThis>"u"?null:globalThis;return B(e)?0:v(e)},__wbg_static_accessor_GLOBAL_ce44e66a4935da8c:function(){let e=typeof global>"u"?null:global;return B(e)?0:v(e)},__wbg_static_accessor_SELF_44f6e0cb5e67cdad:function(){let e=typeof self>"u"?null:self;return B(e)?0:v(e)},__wbg_static_accessor_WINDOW_168f178805d978fe:function(){let e=typeof window>"u"?null:window;return B(e)?0:v(e)},__wbg_then_05edfc8a4fea5106:function(e,n,o){let a=A(e).then(A(n),A(o));return v(a)},__wbg_then_591b6b3a75ee817a:function(e,n){let o=A(e).then(A(n));return v(o)},__wbindgen_cast_0000000000000001:function(e,n){let o=Tr(e,n,hr);return v(o)},__wbindgen_cast_0000000000000002:function(e){return v(e)},__wbindgen_cast_0000000000000003:function(e,n){let o=f(e,n);return v(o)},__wbindgen_cast_0000000000000004:function(e,n){let o=T(e,n);return v(o)},__wbindgen_cast_0000000000000005:function(e,n){var o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),v(o)},__wbindgen_object_clone_ref:function(e){let n=A(e);return v(n)},__wbindgen_object_drop_ref:function(e){w(e)}}}}function hr(r,e,n){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.__wasm_bindgen_func_elem_1760(c,r,e,v(n));var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);if(a)throw w(o)}finally{t.__wbindgen_add_to_stack_pointer(16)}}function kr(r,e,n,o){t.__wasm_bindgen_func_elem_1775(r,e,v(n),v(o))}var wt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_exrbench_free(r,1)),bt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_exrstreamencoder_free(r,1)),lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_proresbench_free(r,1)),ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_proresmovencoder_free(r,1)),xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_proresmovwriter_free(r,1));function v(r){X===D.length&&D.push(D.length+1);let e=X;return X=D[e],D[e]=r,e}var vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbindgen_export2(r.a,r.b));function Ar(r){r<1028||(D[r]=X,X=r)}function Mr(r,e){return r=r>>>0,yt().subarray(r/8,r/8+e)}function pt(r,e){return r=r>>>0,mt().subarray(r/2,r/2+e)}function _t(r,e){return r=r>>>0,ht().subarray(r/4,r/4+e)}function f(r,e){return r=r>>>0,P().subarray(r/1,r/1+e)}var j=null;function _(){return(j===null||j.buffer.detached===!0||j.buffer.detached===void 0&&j.buffer!==t.memory.buffer)&&(j=new DataView(t.memory.buffer)),j}var N=null;function Er(){return(N===null||N.byteLength===0)&&(N=new Float32Array(t.memory.buffer)),N}var H=null;function yt(){return(H===null||H.byteLength===0)&&(H=new Float64Array(t.memory.buffer)),H}function T(r,e){return Fr(r>>>0,e)}var G=null;function mt(){return(G===null||G.byteLength===0)&&(G=new Uint16Array(t.memory.buffer)),G}var V=null;function ht(){return(V===null||V.byteLength===0)&&(V=new Uint32Array(t.memory.buffer)),V}var K=null;function P(){return(K===null||K.byteLength===0)&&(K=new Uint8Array(t.memory.buffer)),K}function A(r){return D[r]}function dt(r,e){try{return r.apply(this,e)}catch(n){t.__wbindgen_export(v(n))}}var D=new Array(1024).fill(void 0);D.push(void 0,null,!0,!1);var X=D.length;function B(r){return r==null}function Tr(r,e,n){let o={a:r,b:e,cnt:1},a=(...c)=>{o.cnt++;let i=o.a;o.a=0;try{return n(i,o.b,...c)}finally{o.a=i,a._wbg_cb_unref()}};return a._wbg_cb_unref=()=>{--o.cnt===0&&(t.__wbindgen_export2(o.a,o.b),o.a=0,vt.unregister(o))},vt.register(a,o,o),a}function R(r,e){let n=e(r.length*2,2)>>>0;return mt().set(r,n/2),p=r.length,n}function L(r,e){let n=e(r.length*4,4)>>>0;return ht().set(r,n/4),p=r.length,n}function l(r,e){let n=e(r.length*1,1)>>>0;return P().set(r,n/1),p=r.length,n}function gt(r,e){let n=e(r.length*4,4)>>>0;return Er().set(r,n/4),p=r.length,n}function Y(r,e){let n=e(r.length*8,8)>>>0;return yt().set(r,n/8),p=r.length,n}function I(r,e,n){if(n===void 0){let d=$.encode(r),s=e(d.length,1)>>>0;return P().subarray(s,s+d.length).set(d),p=d.length,s}let o=r.length,a=e(o,1)>>>0,c=P(),i=0;for(;i<o;i++){let d=r.charCodeAt(i);if(d>127)break;c[a+i]=d}if(i!==o){i!==0&&(r=r.slice(i)),a=n(a,o,o=i+r.length*3,1)>>>0;let d=P().subarray(a+i,a+o),s=$.encodeInto(r,d);i+=s.written,a=n(a,o,i,1)>>>0}return p=i,a}function w(r){let e=A(r);return Ar(r),e}var rt=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});rt.decode();var Or=2146435072,st=0;function Fr(r,e){return st+=e,st>=Or&&(rt=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),rt.decode(),st=e),rt.decode(P().subarray(r,r+e))}var $=new TextEncoder;"encodeInto"in $||($.encodeInto=function(r,e){let n=$.encode(r);return e.set(n),{read:r.length,written:n.length}});var p=0,Wr,Sr,t;function kt(r,e){return Sr=r,t=r.exports,Wr=e,j=null,N=null,H=null,G=null,V=null,K=null,t}async function Rr(r,e){if(typeof Response=="function"&&r instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(r,e)}catch(a){if(r.ok&&n(r.type)&&r.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",a);else throw a}let o=await r.arrayBuffer();return await WebAssembly.instantiate(o,e)}else{let o=await WebAssembly.instantiate(r,e);return o instanceof WebAssembly.Instance?{instance:o,module:r}:o}function n(o){switch(o){case"basic":case"cors":case"default":return!0}return!1}}function Lr(r){if(t!==void 0)return t;r!==void 0&&(Object.getPrototypeOf(r)===Object.prototype?{module:r}=r:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let e=It();r instanceof WebAssembly.Module||(r=new WebAssembly.Module(r));let n=new WebAssembly.Instance(r,e);return kt(n,r)}async function nt(r){if(t!==void 0)return t;r!==void 0&&(Object.getPrototypeOf(r)===Object.prototype?{module_or_path:r}=r:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),r===void 0&&(r=new URL("media_core_bg.wasm",import.meta.url));let e=It();(typeof r=="string"||typeof Request=="function"&&r instanceof Request||typeof URL=="function"&&r instanceof URL)&&(r=fetch(r));let{instance:n,module:o}=await Rr(await r,e);return kt(n,o)}var Ur=import.meta.env?.MODE==="development"?["conform.tools","localhost"]:["conform.tools"];var ut=null,zr=!1;function Dr(r){return ut||(ut=(async()=>{if(r!==void 0)return nt(r);if(typeof process<"u"&&process.versions?.node){let n="node:fs/promises",{readFile:o}=await import(n),a=await o(new URL("./wasm/media_core_bg.wasm",import.meta.url));return nt({module_or_path:a})}let{default:e}=await import("./media_core_bg-FGAR5KA5.js");return nt({module_or_path:e})})().then(e=>(zr=!0,e))),ut}function qr(){return Dr()}export{Ft as a,Rt as b,Kt as c,$t as d,Jt as e,Zt as f,re as g,_e as h,oe as i,ie as j,ae as k,ce as l,de as m,pe as n,ue as o,le as p,fe as q,xe as r,Ie as s,ye as t,me as u,he as v,ke as w,Ae as x,Ee as y,Te as z,Oe as A,Fe as B,We as C,Se as D,Re as E,Le as F,De as G,je as H,Pe as I,Ce as J,qe as K,Ne as L,He as M,Ge as N,Ve as O,Ke as P,Xe as Q,ln as R,fn as S,xn as T,vn as U,In as V,yn as W,mn as X,hn as Y,kn as Z,An as _,En as $,Tn as aa,Fn as ba,Wn as ca,Sn as da,Rn as ea,Ln as fa,zn as ga,Bn as ha,Pn as ia,Cn as ja,Hn as ka,Vn as la,Yn as ma,$n as na,Jn as oa,Zn as pa,er as qa,nr as ra,or as sa,ir as ta,dr as ua,ur as va,br as wa,fr as xa,yr as ya,mr as za,At as Aa,Dr as Ba,qr as Ca};
3
+ import{d as Tt}from"./chunk-PSANHDZM.js";var At={};Tt(At,{ExrBench:()=>J,ExrStreamEncoder:()=>Q,ProResBench:()=>Z,ProResMovEncoder:()=>tt,ProResMovWriter:()=>et,arriraw12_clip_info:()=>Ot,arriraw_mxf_gpu_frame:()=>Ft,audio_aac_au:()=>Wt,audio_aac_config:()=>St,audio_info:()=>Rt,bench_f32_boundary:()=>Lt,bench_piz_no_huffman:()=>zt,dci_code_full_depth:()=>Dt,dci_frame_cap:()=>Ut,dci_gpu_colour_patch:()=>jt,dci_gpu_colour_tables:()=>Bt,dci_last_pass_caps:()=>Pt,dci_legal_rates:()=>Ct,dci_mq_bench:()=>qt,dci_pack_tier1:()=>Nt,dci_stage_rgba8:()=>Ht,dci_transform_only:()=>Gt,decode_arriraw12_luma:()=>Vt,decode_arriraw12_mxf:()=>Kt,decode_arriraw12_preview:()=>Xt,decode_arriraw12_rgba:()=>Yt,decode_arriraw_luma:()=>$t,decode_arriraw_mxf:()=>Jt,decode_arriraw_preview:()=>Qt,decode_arriraw_preview_gray:()=>Zt,decode_arriraw_preview_meta:()=>te,decode_arriraw_rgba:()=>ee,decode_arriraw_rgba_meta:()=>ne,decode_audio_pcm:()=>re,decode_braw_gen5log:()=>_e,decode_braw_luma:()=>oe,decode_braw_preview:()=>ie,decode_braw_rgba:()=>ae,decode_cr3_rgba:()=>ce,decode_crm:()=>de,decode_dng_preview:()=>se,decode_dng_rgba:()=>pe,decode_dpx_preview:()=>ge,decode_dpx_rgba:()=>ue,decode_exr_linear:()=>we,decode_exr_preview:()=>be,decode_exr_rgba:()=>le,decode_jpeg_rgba:()=>fe,decode_png_rgba:()=>xe,decode_prores_band_rgba:()=>ve,decode_prores_luma:()=>Ie,decode_prores_mxf:()=>ye,decode_prores_preview:()=>me,decode_prores_raw_acescct:()=>he,decode_prores_raw_luma:()=>ke,decode_prores_raw_preview:()=>Ae,decode_prores_raw_rec2020:()=>Me,decode_prores_raw_rgba:()=>Ee,decode_prores_rgb16:()=>Te,decode_prores_rgba:()=>Oe,decode_prores_thumb_dc32:()=>Fe,decode_r3d_luma:()=>We,decode_r3d_preview:()=>Se,decode_r3d_preview_clip:()=>Re,decode_r3d_rgb16:()=>Le,decode_r3d_rgba:()=>ze,decode_r3d_rgba_clip:()=>De,decode_tiff_preview:()=>Ue,decode_tiff_rgba:()=>je,decode_vc3_band_rgba:()=>Be,decode_vc3_luma:()=>Pe,decode_vc3_mxf:()=>Ce,decode_vc3_preview:()=>qe,decode_vc3_rgba:()=>Ne,decode_xocn_index_luma:()=>He,decode_xocn_luma:()=>Ge,decode_xocn_mxf:()=>Ve,decode_xocn_preview:()=>Ke,decode_xocn_preview_rec709:()=>Xe,decode_xocn_rgb16:()=>Ye,decode_xocn_rgba:()=>$e,default:()=>nt,encode_dci_j2c:()=>Je,encode_dci_j2c_rgb:()=>Qe,encode_dci_j2c_rgba8:()=>Ze,encode_dci_j2c_staged:()=>tn,encode_dci_j2c_staged_modelled:()=>en,encode_exr:()=>nn,encode_prores_4444_alpha_mov_rgba:()=>rn,encode_prores_4444_alpha_sample_q:()=>_n,encode_prores_444_sample_cbr:()=>on,encode_prores_444_sample_cbr_rgb16:()=>an,encode_prores_444_sample_cbr_rgb16_lut:()=>cn,encode_prores_mov_rgba:()=>dn,encode_prores_rgba:()=>sn,encode_prores_sample_cbr:()=>pn,encode_prores_sample_cbr_rgb16:()=>gn,encode_prores_sample_cbr_rgb16_lut:()=>un,encode_prores_sample_q:()=>wn,exr_sequence_filename:()=>bn,fit_sizing:()=>ln,initSync:()=>Lr,inspect_cr3:()=>fn,inspect_dng:()=>xn,inspect_dpx:()=>vn,inspect_exr:()=>In,inspect_isobmff:()=>yn,inspect_tiff:()=>mn,inspect_wav:()=>hn,is_arriraw12_mxf:()=>kn,is_arriraw_mxf:()=>An,is_crm:()=>Mn,is_prores_mxf:()=>En,is_vc3_mxf:()=>Tn,is_xavc_mxf:()=>On,is_xocn_mxf:()=>Fn,list_isobmff_segments:()=>Wn,list_mxf_segments:()=>Sn,list_r3d_frames:()=>Rn,list_r3d_segments:()=>Ln,list_wav_segments:()=>zn,mux_prores_4444_alpha_samples:()=>Dn,mux_prores_samples:()=>Un,mux_prores_samples_full:()=>jn,mxf_au_run:()=>Bn,mxf_frame_index:()=>Pn,mxf_gop_map:()=>Cn,mxf_h264_kind:()=>qn,plan_isobmff_trim:()=>Nn,plan_isobmff_trim_reader:()=>Hn,plan_mxf_compact_trim:()=>Gn,plan_mxf_trim:()=>Vn,plan_r3d_compact:()=>Kn,plan_wav_trim:()=>Xn,plan_wav_trim_reader:()=>Yn,prepare_isobmff:()=>$n,prepare_mxf:()=>Jn,prepare_r3d:()=>Qn,prepare_wav:()=>Zn,probe_mov:()=>tr,probe_mxf:()=>er,probe_r3d:()=>nr,prores_band_info:()=>rr,prores_reset_rate_control:()=>_r,r3d_gpu_develop_params:()=>or,r3d_is_helium:()=>ir,read_arriraw_fcs:()=>ar,read_arriraw_unit_correction:()=>cr,recover_reframe:()=>dr,resample_rgba16:()=>sr,resample_rgba8:()=>pr,reset_dci_rate_state:()=>gr,resize_luma_area:()=>ur,rgba8_to_xyz12:()=>wr,trim_r3d:()=>br,vc3_band_info:()=>lr,video_frame_index_isobmff_reader:()=>fr,xavc_au:()=>xr,xavc_frame_count:()=>vr,xocn_frame_count:()=>Ir,xocn_index_prefix_len:()=>yr,xocn_preview_prefix_len:()=>mr});var J=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,wt.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_exrbench_free(e,0)}block_rows(){return t.exrbench_block_rows(this.__wbg_ptr)>>>0}f32_to_half_block(){return t.exrbench_f32_to_half_block(this.__wbg_ptr)}n_blocks(){return t.exrbench_n_blocks(this.__wbg_ptr)>>>0}constructor(e,n,o,a){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=I(a,t.__wbindgen_export4,t.__wbindgen_export5),u=p;t.exrbench_new(s,e,n,o,g,u);var c=_().getInt32(s+0,!0),i=_().getInt32(s+4,!0),d=_().getInt32(s+8,!0);if(d)throw w(i);return this.__wbg_ptr=c,wt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}piz_stage_block(e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.exrbench_piz_stage_block(c,this.__wbg_ptr,e);var n=_().getFloat64(c+0,!0),o=_().getInt32(c+8,!0),a=_().getInt32(c+12,!0);if(a)throw w(o);return n}finally{t.__wbindgen_add_to_stack_pointer(16)}}staging_f32_ptr(){return t.exrbench_staging_f32_ptr(this.__wbg_ptr)>>>0}staging_f32_samples(){return t.exrbench_staging_f32_samples(this.__wbg_ptr)>>>0}staging_half_len(){return t.exrbench_staging_half_len(this.__wbg_ptr)>>>0}staging_half_ptr(){return t.exrbench_staging_half_ptr(this.__wbg_ptr)>>>0}zip_stage_block(e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.exrbench_zip_stage_block(c,this.__wbg_ptr,e);var n=_().getFloat64(c+0,!0),o=_().getInt32(c+8,!0),a=_().getInt32(c+12,!0);if(a)throw w(o);return n}finally{t.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(J.prototype[Symbol.dispose]=J.prototype.free);var Q=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,bt.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_exrstreamencoder_free(e,0)}block_rows(){return t.exrstreamencoder_block_rows(this.__wbg_ptr)>>>0}finish(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_finish(i,this.__wbg_ptr);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}header(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_header(a,this.__wbg_ptr);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}n_blocks(){return t.exrstreamencoder_n_blocks(this.__wbg_ptr)>>>0}constructor(e,n,o,a,c,i,d,s,g,u){try{let y=t.__wbindgen_add_to_stack_pointer(-16),h=I(o,t.__wbindgen_export4,t.__wbindgen_export5),k=p,M=I(a,t.__wbindgen_export4,t.__wbindgen_export5),O=p,F=I(c,t.__wbindgen_export4,t.__wbindgen_export5),E=p,W=I(i,t.__wbindgen_export4,t.__wbindgen_export5),S=p,z=I(s,t.__wbindgen_export4,t.__wbindgen_export5),U=p;t.exrstreamencoder_new(y,e,n,h,k,M,O,F,E,W,S,d,z,U,g,u);var b=_().getInt32(y+0,!0),x=_().getInt32(y+4,!0),m=_().getInt32(y+8,!0);if(m)throw w(x);return this.__wbg_ptr=b,bt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_block(e){try{let d=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_push_block(d,this.__wbg_ptr,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}rows_remaining(){return t.exrstreamencoder_rows_remaining(this.__wbg_ptr)>>>0}staging_ptr(){return t.exrstreamencoder_staging_ptr(this.__wbg_ptr)>>>0}staging_samples(){return t.exrstreamencoder_staging_samples(this.__wbg_ptr)>>>0}};Symbol.dispose&&(Q.prototype[Symbol.dispose]=Q.prototype.free);var Z=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,lt.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_proresbench_free(e,0)}constructor(e,n,o,a){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=I(o,t.__wbindgen_export4,t.__wbindgen_export5),u=p;t.proresbench_new(s,e,n,g,u,a);var c=_().getInt32(s+0,!0),i=_().getInt32(s+4,!0),d=_().getInt32(s+8,!0);if(d)throw w(i);return this.__wbg_ptr=c,lt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}stage(e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.proresbench_stage(c,this.__wbg_ptr,e);var n=_().getFloat64(c+0,!0),o=_().getInt32(c+8,!0),a=_().getInt32(c+12,!0);if(a)throw w(o);return n}finally{t.__wbindgen_add_to_stack_pointer(16)}}staging_len(){return t.proresbench_staging_len(this.__wbg_ptr)>>>0}staging_ptr(){return t.proresbench_staging_ptr(this.__wbg_ptr)>>>0}};Symbol.dispose&&(Z.prototype[Symbol.dispose]=Z.prototype.free);var tt=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ft.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_proresmovencoder_free(e,0)}add_frame_rgba(e){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(e,t.__wbindgen_export4),i=p;t.proresmovencoder_add_frame_rgba(a,this.__wbg_ptr,c,i);var n=_().getInt32(a+0,!0),o=_().getInt32(a+4,!0);if(o)throw w(n)}finally{t.__wbindgen_add_to_stack_pointer(16)}}finish(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovencoder_finish(a,this.__wbg_ptr);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}frame_count(){return t.proresmovencoder_frame_count(this.__wbg_ptr)>>>0}constructor(e,n,o,a){let c=t.proresmovencoder_new(e,n,o,a);return this.__wbg_ptr=c,ft.register(this,this.__wbg_ptr,this),this}set_alpha(e){t.proresmovencoder_set_alpha(this.__wbg_ptr,e)}set_bitrate_mbps(e){t.proresmovencoder_set_bitrate_mbps(this.__wbg_ptr,e)}set_qscale(e){t.proresmovencoder_set_qscale(this.__wbg_ptr,e)}};Symbol.dispose&&(tt.prototype[Symbol.dispose]=tt.prototype.free);var et=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,xt.unregister(this),e}free(){let e=this.__destroy_into_raw();t.__wbg_proresmovwriter_free(e,0)}finish(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_finish(a,this.__wbg_ptr);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}frame_count(){return t.proresmovwriter_frame_count(this.__wbg_ptr)>>>0}header(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_header(a,this.__wbg_ptr);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}mdat_box_header(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_mdat_box_header(a,this.__wbg_ptr);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}mdat_box_offset(){return t.proresmovwriter_mdat_box_offset(this.__wbg_ptr)}constructor(e,n,o,a){let c=t.proresmovwriter_new(e,n,o,a);return this.__wbg_ptr=c,xt.register(this,this.__wbg_ptr,this),this}push_frame(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_push_frame(i,this.__wbg_ptr);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_sample(e){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(e,t.__wbindgen_export4),i=p;t.proresmovwriter_push_sample(a,this.__wbg_ptr,c,i);var n=_().getInt32(a+0,!0),o=_().getInt32(a+4,!0);if(o)throw w(n)}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_sample_len(e){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_push_sample_len(a,this.__wbg_ptr,e);var n=_().getInt32(a+0,!0),o=_().getInt32(a+4,!0);if(o)throw w(n)}finally{t.__wbindgen_add_to_stack_pointer(16)}}reserve_large_mdat(e){t.proresmovwriter_reserve_large_mdat(this.__wbg_ptr,e)}set_alpha(e){t.proresmovwriter_set_alpha(this.__wbg_ptr,e)}set_bitrate_mbps(e){t.proresmovwriter_set_bitrate_mbps(this.__wbg_ptr,e)}set_par(e,n){t.proresmovwriter_set_par(this.__wbg_ptr,e,n)}set_profile(e){let n=I(e,t.__wbindgen_export4,t.__wbindgen_export5),o=p;t.proresmovwriter_set_profile(this.__wbg_ptr,n,o)}set_qscale(e){t.proresmovwriter_set_qscale(this.__wbg_ptr,e)}set_start_timecode(e,n){t.proresmovwriter_set_start_timecode(this.__wbg_ptr,e,n)}staging_len(){return t.proresmovwriter_staging_len(this.__wbg_ptr)>>>0}staging_ptr(){return t.proresmovwriter_staging_ptr(this.__wbg_ptr)>>>0}total_len(){return t.proresmovwriter_total_len(this.__wbg_ptr)}};Symbol.dispose&&(et.prototype[Symbol.dispose]=et.prototype.free);function Ot(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.arriraw12_clip_info(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Ft(r,e,n,o){var a=B(o)?0:I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p;let i=t.arriraw_mxf_gpu_frame(v(r),e,n,a,c);return w(i)}function Wt(r,e,n){let o=t.audio_aac_au(v(r),e,n);return w(o)}function St(r,e){let n=t.audio_aac_config(v(r),e);return w(n)}function Rt(r,e){let n=t.audio_info(v(r),e);return w(n)}function Lt(r){let e=gt(r,t.__wbindgen_export4),n=p;return t.bench_f32_boundary(e,n)}function zt(r,e,n,o){let a=gt(r,t.__wbindgen_export4),c=p;return t.bench_piz_no_huffman(a,c,e,n,o)}function Dt(r,e,n){let o=R(r,t.__wbindgen_export4),a=p;return t.dci_code_full_depth(o,a,e,n)}function Ut(r,e,n){return t.dci_frame_cap(r,e,n)>>>0}function jt(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p,u=I(e,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.dci_gpu_colour_patch(d,s,g,u,b);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=pt(n,o).slice();return t.__wbindgen_export3(n,o*2,2),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Bt(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=I(r,t.__wbindgen_export4,t.__wbindgen_export5),s=p;t.dci_gpu_colour_tables(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Pt(){try{let o=t.__wbindgen_add_to_stack_pointer(-16);t.dci_last_pass_caps(o);var r=_().getInt32(o+0,!0),e=_().getInt32(o+4,!0),n=_t(r,e).slice();return t.__wbindgen_export3(r,e*4,4),n}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ct(r,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.dci_legal_rates(c,r,e);var n=_().getInt32(c+0,!0),o=_().getInt32(c+4,!0),a=_t(n,o).slice();return t.__wbindgen_export3(n,o*4,4),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function qt(r){return t.dci_mq_bench(r)>>>0}function Nt(r,e,n,o,a,c,i,d,s,g,u){try{let k=t.__wbindgen_add_to_stack_pointer(-16),M=L(r,t.__wbindgen_export4),O=p,F=l(e,t.__wbindgen_export4),E=p,W=L(n,t.__wbindgen_export4),S=p,z=L(o,t.__wbindgen_export4),U=p,C=L(a,t.__wbindgen_export4),q=p,ot=L(c,t.__wbindgen_export4),it=p,at=L(i,t.__wbindgen_export4),ct=p,Mt=L(d,t.__wbindgen_export4),Et=p;t.dci_pack_tier1(k,M,O,F,E,W,S,z,U,C,q,ot,it,at,ct,Mt,Et,s,g,u);var b=_().getInt32(k+0,!0),x=_().getInt32(k+4,!0),m=_().getInt32(k+8,!0),y=_().getInt32(k+12,!0);if(y)throw w(m);var h=f(b,x).slice();return t.__wbindgen_export3(b,x*1,1),h}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ht(r,e){let n=t.dci_stage_rgba8(r,e);return w(n)}function Gt(r,e,n){let o=R(r,t.__wbindgen_export4),a=p;return t.dci_transform_only(o,a,e,n)}function Vt(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p,u=l(e,t.__wbindgen_export4),b=p;t.decode_arriraw12_luma(d,s,g,u,b);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Kt(r,e,n,o){let a=I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_arriraw12_mxf(v(r),e,n,a,c);return w(i)}function Xt(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p,b=l(e,t.__wbindgen_export4),x=p;t.decode_arriraw12_preview(s,g,u,b,x,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Yt(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p,u=l(e,t.__wbindgen_export4),b=p;t.decode_arriraw12_rgba(d,s,g,u,b);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $t(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.decode_arriraw_luma(s,g,u,e,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Jt(r,e,n,o){let a=I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_arriraw_mxf(v(r),e,n,a,c);return w(i)}function Qt(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.decode_arriraw_preview(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Zt(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.decode_arriraw_preview_gray(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function te(r,e,n,o,a,c,i,d,s){try{let k=t.__wbindgen_add_to_stack_pointer(-16),M=l(r,t.__wbindgen_export4),O=p;var g=B(s)?0:Y(s,t.__wbindgen_export4),u=p;t.decode_arriraw_preview_meta(k,M,O,e,n,o,a,c,i,d,g,u);var b=_().getInt32(k+0,!0),x=_().getInt32(k+4,!0),m=_().getInt32(k+8,!0),y=_().getInt32(k+12,!0);if(y)throw w(m);var h=f(b,x).slice();return t.__wbindgen_export3(b,x*1,1),h}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ee(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.decode_arriraw_rgba(s,g,u,e,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ne(r,e,n,o,a,c,i,d){try{let h=t.__wbindgen_add_to_stack_pointer(-16),k=l(r,t.__wbindgen_export4),M=p;var s=B(d)?0:Y(d,t.__wbindgen_export4),g=p;t.decode_arriraw_rgba_meta(h,k,M,e,n,o,a,c,i,s,g);var u=_().getInt32(h+0,!0),b=_().getInt32(h+4,!0),x=_().getInt32(h+8,!0),m=_().getInt32(h+12,!0);if(m)throw w(x);var y=f(u,b).slice();return t.__wbindgen_export3(u,b*1,1),y}finally{t.__wbindgen_add_to_stack_pointer(16)}}function re(r,e,n,o){let a=t.decode_audio_pcm(v(r),e,n,o);return w(a)}function _e(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),i=p;t.decode_braw_gen5log(a,c,i);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function oe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_braw_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ie(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_braw_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ae(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_braw_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ce(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_cr3_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function de(r,e,n,o){let a=I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_crm(v(r),e,n,a,c);return w(i)}function se(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_dng_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_dng_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ge(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_dpx_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ue(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_dpx_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function we(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_exr_linear(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function be(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_exr_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function le(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_exr_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function fe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_jpeg_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function xe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_png_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ve(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.decode_prores_band_rgba(s,g,u,e,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ie(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ye(r,e,n,o){let a=I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_prores_mxf(v(r),e,n,a,c);return w(i)}function me(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_prores_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function he(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_raw_acescct(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ke(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_raw_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ae(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_prores_raw_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Me(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_raw_rec2020(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ee(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_raw_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Te(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_rgb16(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Oe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Fe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_prores_thumb_dc32(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function We(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_r3d_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Se(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_r3d_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Re(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p,b=l(e,t.__wbindgen_export4),x=p;t.decode_r3d_preview_clip(s,g,u,b,x,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Le(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_r3d_rgb16(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ze(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_r3d_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function De(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p,u=l(e,t.__wbindgen_export4),b=p;t.decode_r3d_rgba_clip(d,s,g,u,b);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ue(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_tiff_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function je(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_tiff_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Be(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.decode_vc3_band_rgba(s,g,u,e,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Pe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_vc3_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ce(r,e,n,o){let a=I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_vc3_mxf(v(r),e,n,a,c);return w(i)}function qe(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_vc3_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ne(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_vc3_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function He(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),i=p;t.decode_xocn_index_luma(a,c,i);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ge(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_xocn_luma(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ve(r,e,n,o){let a=I(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_xocn_mxf(v(r),e,n,a,c);return w(i)}function Ke(r,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(r,t.__wbindgen_export4),g=p;t.decode_xocn_preview(d,s,g,e);var n=_().getInt32(d+0,!0),o=_().getInt32(d+4,!0),a=_().getInt32(d+8,!0),c=_().getInt32(d+12,!0);if(c)throw w(a);var i=f(n,o).slice();return t.__wbindgen_export3(n,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Xe(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_xocn_preview_rec709(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ye(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),i=p;t.decode_xocn_rgb16(a,c,i);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $e(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.decode_xocn_rgba(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Je(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=R(r,t.__wbindgen_export4),b=p;t.encode_dci_j2c(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Qe(r,e,n,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=R(r,t.__wbindgen_export4),m=p,y=I(n,t.__wbindgen_export4,t.__wbindgen_export5),h=p;t.encode_dci_j2c_rgb(b,x,m,e,y,h,o,a,c);var i=_().getInt32(b+0,!0),d=_().getInt32(b+4,!0),s=_().getInt32(b+8,!0),g=_().getInt32(b+12,!0);if(g)throw w(s);var u=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ze(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p,m=I(e,t.__wbindgen_export4,t.__wbindgen_export5),y=p;t.encode_dci_j2c_rgba8(u,b,x,m,y,n,o,a);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function tn(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=I(o,t.__wbindgen_export4,t.__wbindgen_export5),x=p;t.encode_dci_j2c_staged(u,r,e,n,b,x,a);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function en(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=I(o,t.__wbindgen_export4,t.__wbindgen_export5),x=p;t.encode_dci_j2c_staged_modelled(u,r,e,n,b,x,a);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function nn(r,e,n,o,a,c,i,d,s,g,u,b,x,m,y){try{let E=t.__wbindgen_add_to_stack_pointer(-16),W=gt(r,t.__wbindgen_export4),S=p,z=I(a,t.__wbindgen_export4,t.__wbindgen_export5),U=p,C=I(c,t.__wbindgen_export4,t.__wbindgen_export5),q=p,ot=I(i,t.__wbindgen_export4,t.__wbindgen_export5),it=p,at=I(x,t.__wbindgen_export4,t.__wbindgen_export5),ct=p;t.encode_exr(E,W,S,e,n,o,z,U,C,q,ot,it,d,s,g,u,b,at,ct,m,y);var h=_().getInt32(E+0,!0),k=_().getInt32(E+4,!0),M=_().getInt32(E+8,!0),O=_().getInt32(E+12,!0);if(O)throw w(M);var F=f(h,k).slice();return t.__wbindgen_export3(h,k*1,1),F}finally{t.__wbindgen_add_to_stack_pointer(16)}}function rn(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p;t.encode_prores_4444_alpha_mov_rgba(u,b,x,e,n,o,a);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _n(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.encode_prores_4444_alpha_sample_q(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function on(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function an(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=R(r,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr_rgb16(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function cn(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=R(r,t.__wbindgen_export4),x=p,m=R(a,t.__wbindgen_export4),y=p;t.encode_prores_444_sample_cbr_rgb16_lut(u,b,x,e,n,o,m,y);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function dn(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p;t.encode_prores_mov_rgba(u,b,x,e,n,o,a);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function sn(r,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(r,t.__wbindgen_export4),u=p;t.encode_prores_rgba(s,g,u,e,n);var o=_().getInt32(s+0,!0),a=_().getInt32(s+4,!0),c=_().getInt32(s+8,!0),i=_().getInt32(s+12,!0);if(i)throw w(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pn(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function gn(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=R(r,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr_rgb16(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function un(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=R(r,t.__wbindgen_export4),x=p,m=R(a,t.__wbindgen_export4),y=p;t.encode_prores_sample_cbr_rgb16_lut(u,b,x,e,n,o,m,y);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function wn(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.encode_prores_sample_q(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function bn(r,e,n,o){let a,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=I(r,t.__wbindgen_export4,t.__wbindgen_export5),y=p;t.exr_sequence_filename(x,m,y,e,n,o);var i=_().getInt32(x+0,!0),d=_().getInt32(x+4,!0),s=_().getInt32(x+8,!0),g=_().getInt32(x+12,!0),u=i,b=d;if(g)throw u=0,b=0,w(s);return a=u,c=b,T(u,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,c,1)}}function ln(r,e,n,o,a,c,i,d){let s,g;try{let k=t.__wbindgen_add_to_stack_pointer(-16),M=l(r,t.__wbindgen_export4),O=p,F=l(o,t.__wbindgen_export4),E=p,W=I(d,t.__wbindgen_export4,t.__wbindgen_export5),S=p;t.fit_sizing(k,M,O,e,n,F,E,a,c,i,W,S);var u=_().getInt32(k+0,!0),b=_().getInt32(k+4,!0),x=_().getInt32(k+8,!0),m=_().getInt32(k+12,!0),y=u,h=b;if(m)throw y=0,h=0,w(x);return s=y,g=h,T(y,h)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(s,g,1)}}function fn(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.inspect_cr3(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function xn(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.inspect_dng(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function vn(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.inspect_dpx(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function In(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.inspect_exr(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function yn(r,e,n){let o=I(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.inspect_isobmff(v(r),e,o,a);return w(c)}function mn(r){let e,n;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.inspect_tiff(c,i,d);var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);return e=o,n=a,T(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function hn(r,e){let n=t.inspect_wav(v(r),e);return w(n)}function kn(r,e){let n=t.is_arriraw12_mxf(v(r),e);return w(n)}function An(r,e){let n=t.is_arriraw_mxf(v(r),e);return w(n)}function Mn(r,e){let n=t.is_crm(v(r),e);return w(n)}function En(r,e){let n=t.is_prores_mxf(v(r),e);return w(n)}function Tn(r,e){let n=t.is_vc3_mxf(v(r),e);return w(n)}function On(r,e){let n=t.is_xavc_mxf(v(r),e);return w(n)}function Fn(r,e){let n=t.is_xocn_mxf(v(r),e);return w(n)}function Wn(r,e,n){let o=I(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.list_isobmff_segments(v(r),e,o,a);return w(c)}function Sn(r,e){let n=t.list_mxf_segments(v(r),e);return w(n)}function Rn(r,e){let n=I(e,t.__wbindgen_export4,t.__wbindgen_export5),o=p,a=t.list_r3d_frames(v(r),n,o);return w(a)}function Ln(r,e){let n=I(e,t.__wbindgen_export4,t.__wbindgen_export5),o=p,a=t.list_r3d_segments(v(r),n,o);return w(a)}function zn(r,e){let n=t.list_wav_segments(v(r),e);return w(n)}function Dn(r,e,n,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(r,t.__wbindgen_export4),m=p,y=L(e,t.__wbindgen_export4),h=p;t.mux_prores_4444_alpha_samples(b,x,m,y,h,n,o,a,c);var i=_().getInt32(b+0,!0),d=_().getInt32(b+4,!0),s=_().getInt32(b+8,!0),g=_().getInt32(b+12,!0);if(g)throw w(s);var u=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Un(r,e,n,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(r,t.__wbindgen_export4),m=p,y=L(e,t.__wbindgen_export4),h=p;t.mux_prores_samples(b,x,m,y,h,n,o,a,c);var i=_().getInt32(b+0,!0),d=_().getInt32(b+4,!0),s=_().getInt32(b+8,!0),g=_().getInt32(b+12,!0);if(g)throw w(s);var u=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function jn(r,e,n,o,a,c,i,d,s,g,u,b){try{let M=t.__wbindgen_add_to_stack_pointer(-16),O=l(r,t.__wbindgen_export4),F=p,E=L(e,t.__wbindgen_export4),W=p,S=I(i,t.__wbindgen_export4,t.__wbindgen_export5),z=p;t.mux_prores_samples_full(M,O,F,E,W,n,o,a,c,S,z,d,s,g,u,b);var x=_().getInt32(M+0,!0),m=_().getInt32(M+4,!0),y=_().getInt32(M+8,!0),h=_().getInt32(M+12,!0);if(h)throw w(y);var k=f(x,m).slice();return t.__wbindgen_export3(x,m*1,1),k}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Bn(r,e,n,o){let a=t.mxf_au_run(v(r),e,n,o);return w(a)}function Pn(r,e){let n=t.mxf_frame_index(v(r),e);return w(n)}function Cn(r,e){let n=t.mxf_gop_map(v(r),e);return w(n)}function qn(r,e){let n=t.mxf_h264_kind(v(r),e);return w(n)}function Nn(r,e){let n,o;try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p,m=I(e,t.__wbindgen_export4,t.__wbindgen_export5),y=p;t.plan_isobmff_trim(u,b,x,m,y);var a=_().getInt32(u+0,!0),c=_().getInt32(u+4,!0),i=_().getInt32(u+8,!0),d=_().getInt32(u+12,!0),s=a,g=c;if(d)throw s=0,g=0,w(i);return n=s,o=g,T(s,g)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,o,1)}}function Hn(r,e,n,o,a){let c=I(a,t.__wbindgen_export4,t.__wbindgen_export5),i=p,d=t.plan_isobmff_trim_reader(v(r),e,n,o,c,i);return w(d)}function Gn(r){let e,n;try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=I(r,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.plan_mxf_compact_trim(g,u,b);var o=_().getInt32(g+0,!0),a=_().getInt32(g+4,!0),c=_().getInt32(g+8,!0),i=_().getInt32(g+12,!0),d=o,s=a;if(i)throw d=0,s=0,w(c);return e=d,n=s,T(d,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Vn(r,e,n,o){let a=t.plan_mxf_trim(v(r),e,n,o);return w(a)}function Kn(r,e,n,o,a,c,i,d){let s,g;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=l(r,t.__wbindgen_export4),y=p,h=l(e,t.__wbindgen_export4),k=p,M=l(n,t.__wbindgen_export4),O=p,F=l(o,t.__wbindgen_export4),E=p,W=Y(a,t.__wbindgen_export4),S=p,z=Y(c,t.__wbindgen_export4),U=p,C=Y(i,t.__wbindgen_export4),q=p;t.plan_r3d_compact(x,m,y,h,k,M,O,F,E,W,S,z,U,C,q,d);var u=_().getInt32(x+0,!0),b=_().getInt32(x+4,!0);return s=u,g=b,T(u,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(s,g,1)}}function Xn(r,e,n,o){let a,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=l(r,t.__wbindgen_export4),y=p;t.plan_wav_trim(x,m,y,e,n,o);var i=_().getInt32(x+0,!0),d=_().getInt32(x+4,!0),s=_().getInt32(x+8,!0),g=_().getInt32(x+12,!0),u=i,b=d;if(g)throw u=0,b=0,w(s);return a=u,c=b,T(u,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,c,1)}}function Yn(r,e,n,o,a){let c=t.plan_wav_trim_reader(v(r),e,n,o,a);return w(c)}function $n(r,e,n,o){let a=I(n,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=I(o,t.__wbindgen_export4,t.__wbindgen_export5),d=p,s=t.prepare_isobmff(v(r),e,a,c,i,d);return w(s)}function Jn(r,e,n){let o=I(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.prepare_mxf(v(r),e,o,a);return w(c)}function Qn(r,e,n){let o=I(e,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=I(n,t.__wbindgen_export4,t.__wbindgen_export5),i=p,d=t.prepare_r3d(v(r),o,a,c,i);return w(d)}function Zn(r,e,n,o){let a=I(n,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.prepare_wav(v(r),e,a,c,o);return w(i)}function tr(r){let e,n;try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.probe_mov(g,u,b);var o=_().getInt32(g+0,!0),a=_().getInt32(g+4,!0),c=_().getInt32(g+8,!0),i=_().getInt32(g+12,!0),d=o,s=a;if(i)throw d=0,s=0,w(c);return e=d,n=s,T(d,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function er(r,e){let n=t.probe_mxf(v(r),e);return w(n)}function nr(r,e){let n=I(e,t.__wbindgen_export4,t.__wbindgen_export5),o=p,a=t.probe_r3d(v(r),n,o);return w(a)}function rr(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.prores_band_info(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=_t(e,n).slice();return t.__wbindgen_export3(e,n*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _r(){t.prores_reset_rate_control()}function or(r){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(r,t.__wbindgen_export4),i=p;t.r3d_gpu_develop_params(a,c,i);var e=_().getInt32(a+0,!0),n=_().getInt32(a+4,!0),o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ir(r){let e=l(r,t.__wbindgen_export4),n=p;return t.r3d_is_helium(e,n)!==0}function ar(r){let e,n;try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.read_arriraw_fcs(g,u,b);var o=_().getInt32(g+0,!0),a=_().getInt32(g+4,!0),c=_().getInt32(g+8,!0),i=_().getInt32(g+12,!0),d=o,s=a;if(i)throw d=0,s=0,w(c);return e=d,n=s,T(d,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function cr(r,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(r,t.__wbindgen_export4),d=p;t.read_arriraw_unit_correction(c,i,d,e);var n=_().getInt32(c+0,!0),o=_().getInt32(c+4,!0),a=Mr(n,o).slice();return t.__wbindgen_export3(n,o*8,8),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function dr(r,e,n,o,a,c,i){let d,s;try{let h=t.__wbindgen_add_to_stack_pointer(-16),k=l(r,t.__wbindgen_export4),M=p,O=l(o,t.__wbindgen_export4),F=p,E=I(i,t.__wbindgen_export4,t.__wbindgen_export5),W=p;t.recover_reframe(h,k,M,e,n,O,F,a,c,E,W);var g=_().getInt32(h+0,!0),u=_().getInt32(h+4,!0),b=_().getInt32(h+8,!0),x=_().getInt32(h+12,!0),m=g,y=u;if(x)throw m=0,y=0,w(b);return d=m,s=y,T(m,y)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(d,s,1)}}function sr(r,e,n,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=R(r,t.__wbindgen_export4),m=p,y=I(c,t.__wbindgen_export4,t.__wbindgen_export5),h=p;t.resample_rgba16(b,x,m,e,n,o,a,y,h);var i=_().getInt32(b+0,!0),d=_().getInt32(b+4,!0),s=_().getInt32(b+8,!0),g=_().getInt32(b+12,!0);if(g)throw w(s);var u=pt(i,d).slice();return t.__wbindgen_export3(i,d*2,2),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pr(r,e,n,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(r,t.__wbindgen_export4),m=p,y=I(c,t.__wbindgen_export4,t.__wbindgen_export5),h=p;t.resample_rgba8(b,x,m,e,n,o,a,y,h);var i=_().getInt32(b+0,!0),d=_().getInt32(b+4,!0),s=_().getInt32(b+8,!0),g=_().getInt32(b+12,!0);if(g)throw w(s);var u=f(i,d).slice();return t.__wbindgen_export3(i,d*1,1),u}finally{t.__wbindgen_add_to_stack_pointer(16)}}function gr(){t.reset_dci_rate_state()}function ur(r,e,n,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),u=l(r,t.__wbindgen_export4),b=p;t.resize_luma_area(g,u,b,e,n,o);var a=_().getInt32(g+0,!0),c=_().getInt32(g+4,!0),i=_().getInt32(g+8,!0),d=_().getInt32(g+12,!0);if(d)throw w(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function wr(r,e,n,o,a){try{let u=t.__wbindgen_add_to_stack_pointer(-16),b=l(r,t.__wbindgen_export4),x=p,m=I(a,t.__wbindgen_export4,t.__wbindgen_export5),y=p;t.rgba8_to_xyz12(u,b,x,e,n,o,m,y);var c=_().getInt32(u+0,!0),i=_().getInt32(u+4,!0),d=_().getInt32(u+8,!0),s=_().getInt32(u+12,!0);if(s)throw w(d);var g=pt(c,i).slice();return t.__wbindgen_export3(c,i*2,2),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function br(r,e,n,o){let a=I(e,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=I(n,t.__wbindgen_export4,t.__wbindgen_export5),d=p,s=I(o,t.__wbindgen_export4,t.__wbindgen_export5),g=p,u=t.trim_r3d(v(r),a,c,i,d,s,g);return w(u)}function lr(r){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(r,t.__wbindgen_export4),s=p;t.vc3_band_info(i,d,s);var e=_().getInt32(i+0,!0),n=_().getInt32(i+4,!0),o=_().getInt32(i+8,!0),a=_().getInt32(i+12,!0);if(a)throw w(o);var c=_t(e,n).slice();return t.__wbindgen_export3(e,n*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function fr(r,e,n){let o=I(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.video_frame_index_isobmff_reader(v(r),e,o,a);return w(c)}function xr(r,e,n){let o=t.xavc_au(v(r),e,n);return w(o)}function vr(r,e){let n=t.xavc_frame_count(v(r),e);return w(n)}function Ir(r,e){let n=t.xocn_frame_count(v(r),e);return w(n)}function yr(r){let e=l(r,t.__wbindgen_export4),n=p;return t.xocn_index_prefix_len(e,n)>>>0}function mr(r){let e=l(r,t.__wbindgen_export4),n=p;return t.xocn_preview_prefix_len(e,n)>>>0}function It(){return{__proto__:null,"./media_core_bg.js":{__proto__:null,__wbg___wbindgen_is_function_acc5528be2b923f2:function(e){return typeof A(e)=="function"},__wbg___wbindgen_is_undefined_721f8decd50c87a3:function(e){return A(e)===void 0},__wbg___wbindgen_throw_ea4887a5f8f9a9db:function(e,n){throw new Error(T(e,n))},__wbg__wbg_cb_unref_33c39e13d73b25f6:function(e){A(e)._wbg_cb_unref()},__wbg_call_0e855b388e315e17:function(){return dt(function(e,n,o,a){let c=A(e).call(A(n),A(o),A(a));return v(c)},arguments)},__wbg_call_5575218572ead796:function(){return dt(function(e,n,o){let a=A(e).call(A(n),A(o));return v(a)},arguments)},__wbg_call_dd0f909cbc9405d0:function(){return dt(function(e,n,o,a,c){let i=A(e).call(A(n),A(o),A(a),A(c));return v(i)},arguments)},__wbg_length_589238bdcf171f0e:function(e){return A(e).length},__wbg_new_81880fb5002cb255:function(e){let n=new Uint8Array(A(e));return v(n)},__wbg_new_typed_00a409eb4ec4f2d9:function(e,n){try{var o={a:e,b:n},a=(i,d)=>{let s=o.a;o.a=0;try{return kr(s,o.b,i,d)}finally{o.a=s}};let c=new Promise(a);return v(c)}finally{o.a=0}},__wbg_prototypesetcall_d721637c7ca66eb8:function(e,n,o){Uint8Array.prototype.set.call(f(e,n),A(o))},__wbg_queueMicrotask_1c9b3800e321a967:function(e){let n=A(e).queueMicrotask;return v(n)},__wbg_queueMicrotask_311744e534a929a3:function(e){queueMicrotask(A(e))},__wbg_resolve_d82363d90af6928a:function(e){let n=Promise.resolve(A(e));return v(n)},__wbg_static_accessor_GLOBAL_THIS_2fee5048bcca5938:function(){let e=typeof globalThis>"u"?null:globalThis;return B(e)?0:v(e)},__wbg_static_accessor_GLOBAL_ce44e66a4935da8c:function(){let e=typeof global>"u"?null:global;return B(e)?0:v(e)},__wbg_static_accessor_SELF_44f6e0cb5e67cdad:function(){let e=typeof self>"u"?null:self;return B(e)?0:v(e)},__wbg_static_accessor_WINDOW_168f178805d978fe:function(){let e=typeof window>"u"?null:window;return B(e)?0:v(e)},__wbg_then_05edfc8a4fea5106:function(e,n,o){let a=A(e).then(A(n),A(o));return v(a)},__wbg_then_591b6b3a75ee817a:function(e,n){let o=A(e).then(A(n));return v(o)},__wbindgen_cast_0000000000000001:function(e,n){let o=Tr(e,n,hr);return v(o)},__wbindgen_cast_0000000000000002:function(e){return v(e)},__wbindgen_cast_0000000000000003:function(e,n){let o=f(e,n);return v(o)},__wbindgen_cast_0000000000000004:function(e,n){let o=T(e,n);return v(o)},__wbindgen_cast_0000000000000005:function(e,n){var o=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),v(o)},__wbindgen_object_clone_ref:function(e){let n=A(e);return v(n)},__wbindgen_object_drop_ref:function(e){w(e)}}}}function hr(r,e,n){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.__wasm_bindgen_func_elem_1768(c,r,e,v(n));var o=_().getInt32(c+0,!0),a=_().getInt32(c+4,!0);if(a)throw w(o)}finally{t.__wbindgen_add_to_stack_pointer(16)}}function kr(r,e,n,o){t.__wasm_bindgen_func_elem_1783(r,e,v(n),v(o))}var wt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_exrbench_free(r,1)),bt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_exrstreamencoder_free(r,1)),lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_proresbench_free(r,1)),ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_proresmovencoder_free(r,1)),xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbg_proresmovwriter_free(r,1));function v(r){X===D.length&&D.push(D.length+1);let e=X;return X=D[e],D[e]=r,e}var vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>t.__wbindgen_export2(r.a,r.b));function Ar(r){r<1028||(D[r]=X,X=r)}function Mr(r,e){return r=r>>>0,yt().subarray(r/8,r/8+e)}function pt(r,e){return r=r>>>0,mt().subarray(r/2,r/2+e)}function _t(r,e){return r=r>>>0,ht().subarray(r/4,r/4+e)}function f(r,e){return r=r>>>0,P().subarray(r/1,r/1+e)}var j=null;function _(){return(j===null||j.buffer.detached===!0||j.buffer.detached===void 0&&j.buffer!==t.memory.buffer)&&(j=new DataView(t.memory.buffer)),j}var N=null;function Er(){return(N===null||N.byteLength===0)&&(N=new Float32Array(t.memory.buffer)),N}var H=null;function yt(){return(H===null||H.byteLength===0)&&(H=new Float64Array(t.memory.buffer)),H}function T(r,e){return Fr(r>>>0,e)}var G=null;function mt(){return(G===null||G.byteLength===0)&&(G=new Uint16Array(t.memory.buffer)),G}var V=null;function ht(){return(V===null||V.byteLength===0)&&(V=new Uint32Array(t.memory.buffer)),V}var K=null;function P(){return(K===null||K.byteLength===0)&&(K=new Uint8Array(t.memory.buffer)),K}function A(r){return D[r]}function dt(r,e){try{return r.apply(this,e)}catch(n){t.__wbindgen_export(v(n))}}var D=new Array(1024).fill(void 0);D.push(void 0,null,!0,!1);var X=D.length;function B(r){return r==null}function Tr(r,e,n){let o={a:r,b:e,cnt:1},a=(...c)=>{o.cnt++;let i=o.a;o.a=0;try{return n(i,o.b,...c)}finally{o.a=i,a._wbg_cb_unref()}};return a._wbg_cb_unref=()=>{--o.cnt===0&&(t.__wbindgen_export2(o.a,o.b),o.a=0,vt.unregister(o))},vt.register(a,o,o),a}function R(r,e){let n=e(r.length*2,2)>>>0;return mt().set(r,n/2),p=r.length,n}function L(r,e){let n=e(r.length*4,4)>>>0;return ht().set(r,n/4),p=r.length,n}function l(r,e){let n=e(r.length*1,1)>>>0;return P().set(r,n/1),p=r.length,n}function gt(r,e){let n=e(r.length*4,4)>>>0;return Er().set(r,n/4),p=r.length,n}function Y(r,e){let n=e(r.length*8,8)>>>0;return yt().set(r,n/8),p=r.length,n}function I(r,e,n){if(n===void 0){let d=$.encode(r),s=e(d.length,1)>>>0;return P().subarray(s,s+d.length).set(d),p=d.length,s}let o=r.length,a=e(o,1)>>>0,c=P(),i=0;for(;i<o;i++){let d=r.charCodeAt(i);if(d>127)break;c[a+i]=d}if(i!==o){i!==0&&(r=r.slice(i)),a=n(a,o,o=i+r.length*3,1)>>>0;let d=P().subarray(a+i,a+o),s=$.encodeInto(r,d);i+=s.written,a=n(a,o,i,1)>>>0}return p=i,a}function w(r){let e=A(r);return Ar(r),e}var rt=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});rt.decode();var Or=2146435072,st=0;function Fr(r,e){return st+=e,st>=Or&&(rt=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),rt.decode(),st=e),rt.decode(P().subarray(r,r+e))}var $=new TextEncoder;"encodeInto"in $||($.encodeInto=function(r,e){let n=$.encode(r);return e.set(n),{read:r.length,written:n.length}});var p=0,Wr,Sr,t;function kt(r,e){return Sr=r,t=r.exports,Wr=e,j=null,N=null,H=null,G=null,V=null,K=null,t}async function Rr(r,e){if(typeof Response=="function"&&r instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(r,e)}catch(a){if(r.ok&&n(r.type)&&r.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",a);else throw a}let o=await r.arrayBuffer();return await WebAssembly.instantiate(o,e)}else{let o=await WebAssembly.instantiate(r,e);return o instanceof WebAssembly.Instance?{instance:o,module:r}:o}function n(o){switch(o){case"basic":case"cors":case"default":return!0}return!1}}function Lr(r){if(t!==void 0)return t;r!==void 0&&(Object.getPrototypeOf(r)===Object.prototype?{module:r}=r:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let e=It();r instanceof WebAssembly.Module||(r=new WebAssembly.Module(r));let n=new WebAssembly.Instance(r,e);return kt(n,r)}async function nt(r){if(t!==void 0)return t;r!==void 0&&(Object.getPrototypeOf(r)===Object.prototype?{module_or_path:r}=r:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),r===void 0&&(r=new URL("media_core_bg.wasm",import.meta.url));let e=It();(typeof r=="string"||typeof Request=="function"&&r instanceof Request||typeof URL=="function"&&r instanceof URL)&&(r=fetch(r));let{instance:n,module:o}=await Rr(await r,e);return kt(n,o)}var Ur=import.meta.env?.MODE==="development"?["conform.tools","localhost"]:["conform.tools"];var ut=null,zr=!1;function Dr(r){return ut||(ut=(async()=>{if(r!==void 0)return nt(r);if(typeof process<"u"&&process.versions?.node){let n="node:fs/promises",{readFile:o}=await import(n),a=await o(new URL("./wasm/media_core_bg.wasm",import.meta.url));return nt({module_or_path:a})}let{default:e}=await import("./media_core_bg-MEORQOCQ.js");return nt({module_or_path:e})})().then(e=>(zr=!0,e))),ut}function qr(){return Dr()}export{Ft as a,Rt as b,Kt as c,$t as d,Jt as e,Zt as f,re as g,_e as h,oe as i,ie as j,ae as k,ce as l,de as m,pe as n,ue as o,le as p,fe as q,xe as r,Ie as s,ye as t,me as u,he as v,ke as w,Ae as x,Ee as y,Te as z,Oe as A,Fe as B,We as C,Se as D,Re as E,Le as F,De as G,je as H,Pe as I,Ce as J,qe as K,Ne as L,He as M,Ge as N,Ve as O,Ke as P,Xe as Q,ln as R,fn as S,xn as T,vn as U,In as V,yn as W,mn as X,hn as Y,kn as Z,An as _,En as $,Tn as aa,Fn as ba,Wn as ca,Sn as da,Rn as ea,Ln as fa,zn as ga,Bn as ha,Pn as ia,Cn as ja,Hn as ka,Vn as la,Yn as ma,$n as na,Jn as oa,Zn as pa,er as qa,nr as ra,or as sa,ir as ta,dr as ua,ur as va,br as wa,fr as xa,yr as ya,mr as za,At as Aa,Dr as Ba,qr as Ca};
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{c as m,d as w}from"./chunk-P7OVDUA5.js";import{i as b}from"./chunk-N43NAG5E.js";import{G as g,S as _}from"./chunk-C2ESM27Z.js";var f={prproj:"prproj","resolve-drt":"drt",aaf:"aaf",avb:"avb",otio:"otio","flame-archive":"flame","resolve-fcpxml":"fcpxml","finalcut-fcpxml":"fcpxml","fcp-xml":"xmeml","premiere-xml":"xmeml","resolve-xml":"xmeml"};function S(e){return e in f}var p=null;function l(){return p||(p=E()),p}async function E(){let e=await import("./timeline_core-VK2ZWPCO.js"),r=(await import("./timeline_core_bg-2TYWZ35G.js")).default;return await e.default({module_or_path:r}),e}async function A(e,r){let o=f[r];if(!o)throw new Error(`timelineInspect: no Rust engine for format '${r}'`);let t=await l(),i=e.name.replace(/\.[^.]+$/,""),n=(R,...M)=>t[R](...M),a;switch(o){case"prproj":a=n("inspect_prproj_json",await s(e));break;case"aaf":a=n("inspect_aaf_json",await s(e));break;case"avb":a=n("inspect_avb_json",await s(e));break;case"flame":a=n("inspect_flame_json",await s(e),i);break;case"drt":a=n("inspect_drt_json",await y(e));break;case"otio":a=n("inspect_otio_json",await e.text(),i);break;case"fcpxml":a=n("inspect_fcpxml_json",await e.text(),i);break;case"xmeml":a=n("inspect_xmeml_json",await e.text(),i);break}return I(a)}var x=12*1024*1024,d=!1;function j(e){d=e}var h=null,k=8e3;async function F(){!h||d||await Promise.race([h,new Promise(e=>setTimeout(e,k))])}function c(e,r,o){if(d||e.length<=x)return e;let t=(e.length/1048576).toFixed(0),i=o?.length??0;throw i===1?new Error(`This ${r.toUpperCase()} timeline extracts to ${t} MB, past what our conversion server can hold in one pass (the ceiling is ours, not your file \u2014 a single long timeline can exceed it on its own). Get in touch and we will convert it for you while we lift the limit.`):new Error(`This ${r.toUpperCase()} selection${i?` (${i} sequences)`:""} extracts to ${t} MB, past what our conversion server can hold in one pass. Convert a few sequences at a time \u2014 one long timeline is usually about ${(x/1048576).toFixed(0)} MB. If a single timeline still will not go through, get in touch and we will convert it for you.`)}async function T(e,r,o){let t=f[r];if(!t)throw new Error(`timelineExtract: no Rust engine for format '${r}'`);switch(await F(),t){case"otio":case"fcpxml":case"xmeml":return{fmt:t,extract:await e.text()};case"drt":{let n=(await l()).extract_drt_json(await y(e));return{fmt:t,extract:c(n,t,o)}}case"prproj":{let i=await l(),n=JSON.stringify(o??[]),a=i.extract_prproj_json(await s(e),n);return{fmt:t,extract:c(a,t,o)}}case"avb":{let i=await l(),n=JSON.stringify(o??[]),a=i.extract_avb_json(await s(e),n);return{fmt:t,extract:c(a,t,o)}}case"aaf":case"flame":{let n=(await l())[`extract_${t}_json`](await s(e));return{fmt:t,extract:c(n,t,o)}}}}async function s(e){return new Uint8Array(await e.arrayBuffer())}async function y(e){let r=_(await s(e)),o={};for(let[t,i]of Object.entries(r))t.toLowerCase().endsWith(".xml")&&(o[t]=g(i));return JSON.stringify(o)}function I(e){let r=JSON.parse(e),o=Array.isArray(r)?r:r?.timelines??r?.sequences??[],t=o.filter(n=>typeof n=="object"&&n!==null),i=o.map(n=>{if(typeof n=="string")return n;let a=n;return a?.name??a?.title??a?.id??""}).filter(n=>!!n);return{names:Array.from(new Set(i)),timelines:t}}var P=/^(.+)_(\d{3})\.R3D$/i;function u(e){let o=(e.split(/[/\\]/).pop()??e).match(P);return o?{clipBase:o[1],partNumber:parseInt(o[2],10)}:null}function C(e){return u(e)!==null}function U(e,r){let o=u(e);if(!o)return[];let t=[];for(let i of r){let n=u(i);n&&n.clipBase===o.clipBase&&t.push({name:i,n:n.partNumber})}return t.sort((i,n)=>i.n-n.n),t.map(i=>i.name)}async function L(e){if(!m(e.name))return null;try{return await b(w(e),{verb:"inspect"})}catch(r){return console.warn(`[probeMedia] ${e.name} probe failed:`,r),null}}var z={reelName:!1,fileName:!0,fileNameMode:"loose",fileExtensions:"",totalDuration:!1,resolution:!1,bitDepth:!1,fileFormat:!1,codec:!1,mediaUmid:!1};var Y="X-Write-Issues";function Q(e){if(!e)return[];try{let r=JSON.parse(decodeURIComponent(e));return Array.isArray(r)?r:[]}catch{return[]}}export{u as a,C as b,U as c,z as d,S as e,A as f,j as g,T as h,Y as i,Q as j,L as k};
3
+ import{G as b,S as w}from"./chunk-C2ESM27Z.js";import{c as m,d as _}from"./chunk-P7OVDUA5.js";import{i as g}from"./chunk-BK62N3ID.js";var f={prproj:"prproj","resolve-drt":"drt",aaf:"aaf",avb:"avb",otio:"otio","flame-archive":"flame","resolve-fcpxml":"fcpxml","finalcut-fcpxml":"fcpxml","fcp-xml":"xmeml","premiere-xml":"xmeml","resolve-xml":"xmeml"};function P(e){return e in f}var p=null;function l(){return p||(p=E()),p}async function E(){let e=await import("./timeline_core-VK2ZWPCO.js"),r=(await import("./timeline_core_bg-DFKQ7XOU.js")).default;return await e.default({module_or_path:r}),e}async function A(e,r){let o=f[r];if(!o)throw new Error(`timelineInspect: no Rust engine for format '${r}'`);let t=await l(),i=e.name.replace(/\.[^.]+$/,""),n=(R,...M)=>t[R](...M),s;switch(o){case"prproj":s=n("inspect_prproj_json",await a(e));break;case"aaf":s=n("inspect_aaf_json",await a(e));break;case"avb":s=n("inspect_avb_json",await a(e));break;case"flame":s=n("inspect_flame_json",await a(e),i);break;case"drt":s=n("inspect_drt_json",await y(e));break;case"otio":s=n("inspect_otio_json",await e.text(),i);break;case"fcpxml":s=n("inspect_fcpxml_json",await e.text(),i);break;case"xmeml":s=n("inspect_xmeml_json",await e.text(),i);break}return F(s)}var x=12*1024*1024,d=!1;function T(e){d=e}var h=null,k=8e3;async function I(){!h||d||await Promise.race([h,new Promise(e=>setTimeout(e,k))])}function c(e,r,o){if(d||e.length<=x)return e;let t=(e.length/1048576).toFixed(0),i=o?.length??0;throw i===1?new Error(`This ${r.toUpperCase()} timeline extracts to ${t} MB, past what our conversion server can hold in one pass (the ceiling is ours, not your file \u2014 a single long timeline can exceed it on its own). Get in touch and we will convert it for you while we lift the limit.`):new Error(`This ${r.toUpperCase()} selection${i?` (${i} sequences)`:""} extracts to ${t} MB, past what our conversion server can hold in one pass. Convert a few sequences at a time \u2014 one long timeline is usually about ${(x/1048576).toFixed(0)} MB. If a single timeline still will not go through, get in touch and we will convert it for you.`)}async function j(e,r,o){let t=f[r];if(!t)throw new Error(`timelineExtract: no Rust engine for format '${r}'`);switch(await I(),t){case"otio":case"fcpxml":case"xmeml":return{fmt:t,extract:await e.text()};case"drt":{let n=(await l()).extract_drt_json(await y(e));return{fmt:t,extract:c(n,t,o)}}case"prproj":{let i=await l(),n=JSON.stringify(o??[]),s=i.extract_prproj_json(await a(e),n);return{fmt:t,extract:c(s,t,o)}}case"avb":{let i=await l(),n=JSON.stringify(o??[]),s=i.extract_avb_json(await a(e),n);return{fmt:t,extract:c(s,t,o)}}case"aaf":case"flame":{let n=(await l())[`extract_${t}_json`](await a(e));return{fmt:t,extract:c(n,t,o)}}}}async function a(e){return new Uint8Array(await e.arrayBuffer())}async function y(e){let r=w(await a(e)),o={};for(let[t,i]of Object.entries(r))t.toLowerCase().endsWith(".xml")&&(o[t]=b(i));return JSON.stringify(o)}function F(e){let r=JSON.parse(e),o=Array.isArray(r)?r:r?.timelines??r?.sequences??[],t=o.filter(n=>typeof n=="object"&&n!==null),i=o.map(n=>{if(typeof n=="string")return n;let s=n;return s?.name??s?.title??s?.id??""}).filter(n=>!!n);return{names:Array.from(new Set(i)),timelines:t}}var S=/^(.+)_(\d{3})\.R3D$/i;function u(e){let o=(e.split(/[/\\]/).pop()??e).match(S);return o?{clipBase:o[1],partNumber:parseInt(o[2],10)}:null}function C(e){return u(e)!==null}function U(e,r){let o=u(e);if(!o)return[];let t=[];for(let i of r){let n=u(i);n&&n.clipBase===o.clipBase&&t.push({name:i,n:n.partNumber})}return t.sort((i,n)=>i.n-n.n),t.map(i=>i.name)}async function L(e){if(!m(e.name))return null;try{return await g(_(e),{verb:"inspect"})}catch(r){return console.warn(`[probeMedia] ${e.name} probe failed:`,r),null}}var z={reelName:!1,fileName:!0,fileNameMode:"loose",fileExtensions:"",totalDuration:!1,resolution:!1,bitDepth:!1,fileFormat:!1,codec:!1,mediaUmid:!1};var K="X-Write-Issues";function Q(e){if(!e)return[];try{let r=JSON.parse(decodeURIComponent(e));return Array.isArray(r)?r:[]}catch{return[]}}export{u as a,C as b,U as c,z as d,P as e,A as f,T as g,j as h,K as i,Q as j,L as k};
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{a as c,b as m}from"./chunk-DKGGJM6Z.js";import{Aa as u,Ca as n,H as f,X as s}from"./chunk-R6WJ6JIQ.js";async function y(r){await n();let e=s(r);return e==="null"?null:JSON.parse(e)}async function d(r){await n();let e;try{e=f(r)}catch{return null}if(e.length<8)return null;let t=new DataView(e.buffer,e.byteOffset,e.byteLength),i=t.getUint32(0,!0),a=t.getUint32(4,!0),o=i*a*4;return e.length<8+o?null:{width:i,height:a,rgba:new Uint8ClampedArray(e.subarray(8,8+o))}}async function b(r,e=8){await n();let t=m(u,"decode_tiff_preview");if(!t)return d(r);try{return c(t(r,e))}catch{return null}}export{y as a,d as b,b as c};
3
+ import{a as c,b as m}from"./chunk-DKGGJM6Z.js";import{Aa as u,Ca as n,H as f,X as s}from"./chunk-JBSH4AK3.js";async function y(r){await n();let e=s(r);return e==="null"?null:JSON.parse(e)}async function d(r){await n();let e;try{e=f(r)}catch{return null}if(e.length<8)return null;let t=new DataView(e.buffer,e.byteOffset,e.byteLength),i=t.getUint32(0,!0),a=t.getUint32(4,!0),o=i*a*4;return e.length<8+o?null:{width:i,height:a,rgba:new Uint8ClampedArray(e.subarray(8,8+o))}}async function b(r,e=8){await n();let t=m(u,"decode_tiff_preview");if(!t)return d(r);try{return c(t(r,e))}catch{return null}}export{y as a,d as b,b as c};
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{a as s,b as m}from"./chunk-DKGGJM6Z.js";import{Aa as d,Ca as n,U as c,o as u}from"./chunk-R6WJ6JIQ.js";async function x(r){await n();let e=c(r);return e==="null"?null:JSON.parse(e)}async function p(r){await n();let e;try{e=u(r)}catch{return null}if(e.length<8)return null;let t=new DataView(e.buffer,e.byteOffset,e.byteLength),a=t.getUint32(0,!0),i=t.getUint32(4,!0),o=a*i*4;return e.length<8+o?null:{width:a,height:i,rgba:new Uint8ClampedArray(e.subarray(8,8+o))}}async function y(r,e=8){await n();let t=m(d,"decode_dpx_preview");if(!t)return p(r);try{return s(t(r,e))}catch{return null}}export{x as a,p as b,y as c};
3
+ import{a as s,b as m}from"./chunk-DKGGJM6Z.js";import{Aa as d,Ca as n,U as c,o as u}from"./chunk-JBSH4AK3.js";async function x(r){await n();let e=c(r);return e==="null"?null:JSON.parse(e)}async function p(r){await n();let e;try{e=u(r)}catch{return null}if(e.length<8)return null;let t=new DataView(e.buffer,e.byteOffset,e.byteLength),a=t.getUint32(0,!0),i=t.getUint32(4,!0),o=a*i*4;return e.length<8+o?null:{width:a,height:i,rgba:new Uint8ClampedArray(e.subarray(8,8+o))}}async function y(r,e=8){await n();let t=m(d,"decode_dpx_preview");if(!t)return p(r);try{return s(t(r,e))}catch{return null}}export{x as a,p as b,y as c};
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
+ import{H as h,R as c,a as m,j as w,k as $,o as i,s as b,u as v,v as R,y as k}from"./chunk-D5DEQ467.js";import"./chunk-PSANHDZM.js";var y="conformtools-statusline";function x(e,n){let s=e.statusLine;return s&&!String(s.command??"").includes(y)?{settings:e,result:"kept"}:s?.command===n?{settings:e,result:"updated"}:{settings:{...e,statusLine:{type:"command",command:n,padding:0}},result:s?"updated":"installed"}}async function P(){let e=new URL(import.meta.url),n=m(new URL("./statusline.js",e));if(await i(n)){await R(w());let t=c(w(),`${y}.js`);return await k(n,t),`node "${t}"`}let s=m(new URL("../adapters/statusline.ts",e));return await i(s)?`deno run --allow-read --allow-env --no-check "${s}" ${y}`:null}function L(e,n){let s=e.permissions&&typeof e.permissions=="object"?e.permissions:{},t=Array.isArray(s.allow)?s.allow.filter(o=>typeof o=="string"):[];return t.includes(n)?{settings:e,added:!1}:{settings:{...e,permissions:{...s,allow:[...t,n]}},added:!0}}async function U(e={}){let n=e.server??"conformtools",s=`mcp__${n}`,t=e.settingsPath??c($(),".claude","settings.json"),o={};if(await i(t)){let a=await b(t);try{o=a.trim()?JSON.parse(a):{}}catch(r){throw new Error(`${t} is not valid JSON (${r instanceof Error?r.message:r}); fix it first, nothing was changed`)}}let p=L(o,s),d=p.settings,l="skipped",C=p.added,S=e.statusline===!1?null:await P();if(S){let a=x(d,S);d=a.settings,l=a.result}let f;(C||l==="installed"||l==="updated"&&d!==p.settings)&&(await i(t)?(f=`${t}.conformtools-backup`,await k(t,f)):await Deno.mkdir(c(t,".."),{recursive:!0}),await v(t,JSON.stringify(d,null,2)+`
4
+ `));let u="skipped",g;if(e.register!==!1)try{if((await h("claude",["mcp","get",n])).code===0)u="already";else{let r=await h("claude",["mcp","add","-s","user",n,"--","npx","-y","conformtools@latest","mcp"]);u=r.code===0?"added":"failed",r.code!==0&&(g=r.stderr.trim().slice(-300))}}catch(a){u="failed",g=`claude CLI not found (${a instanceof Error?a.message:a}); add the server with: claude mcp add -s user ${n} -- npx -y conformtools@latest mcp`}return{settings:t,rule:s,added:C,backup:f,registered:u,detail:g,statusline:l}}function M(e){return[e.added?`Claude Code: allowed every conform.tools tool (${e.rule}) in ${e.settings}${e.backup?` (backup: ${e.backup})`:""}`:`Claude Code: ${e.rule} was already allowed in ${e.settings}`,{already:"MCP server: already registered",added:"MCP server: registered (claude mcp add -s user)",skipped:"MCP server: not checked",failed:`MCP server: not registered: ${e.detail??"claude mcp add failed"}`}[e.registered],{installed:"Status line: conform.tools (the running job and its progress) at the bottom of Claude Code",updated:"Status line: conform.tools, refreshed",kept:"Status line: you already have one, so it was left as it is (conformtools statusline prints ours)",skipped:"Status line: not installed"}[e.statusline],"Restart Claude Code (or /mcp) to load it. Remove the rule from permissions.allow to be asked again."].join(`
5
+ `)}export{U as setupClaude,M as setupText,L as withAllowRule,x as withStatusLine};
package/dist/cli.js CHANGED
@@ -1,12 +1,17 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{$ as p,I as n,J as e,R as l,W as m,X as u,Y as f,_ as g}from"./chunk-E6YXZIJS.js";import"./chunk-DRHOPOC7.js";import"./chunk-GXEVALBL.js";import"./chunk-Y2BEEOPB.js";import"./chunk-PSMXHDMX.js";import"./chunk-P7OVDUA5.js";import"./chunk-XDHIIZ6A.js";import"./chunk-ZAHP3ES5.js";import"./chunk-PZFWQJCF.js";import"./chunk-UUDNNFU7.js";import"./chunk-RXHNBSER.js";import"./chunk-UCMNH6Q6.js";import"./chunk-QDWB7QU7.js";import"./chunk-AHNDJFQR.js";import"./chunk-TK55FA56.js";import"./chunk-JEMLKBH2.js";import"./chunk-N43NAG5E.js";import"./chunk-7XTBFOUJ.js";import"./chunk-DKGGJM6Z.js";import"./chunk-R6WJ6JIQ.js";import"./chunk-C2ESM27Z.js";import"./chunk-WHY3DVXS.js";import"./chunk-PSANHDZM.js";var d={login:"account_login",logout:"account_logout",whoami:"account_status",status:"account_status",telemetry:"account_telemetry"};n()[0]==="mcp"&&(await import("./mcp.js"),await new Promise(()=>{}));n()[0]==="http"&&(await import("./http.js"),await new Promise(()=>{}));var w=n().includes("--json"),[t,i]=n().filter(o=>o!=="--json");if(!t||t==="--list"||t==="help"||t==="--help"){console.log(`conformtools <verb> '<json args>' [--json]
3
+ import{O as W,_ as L,aa as J,b as A,ba as H,c as D,da as F,e as I,ea as G}from"./chunk-EV52G33S.js";import{b as S,e as c,f as s}from"./chunk-D5DEQ467.js";import"./chunk-DRHOPOC7.js";import"./chunk-GXEVALBL.js";import"./chunk-Y2BEEOPB.js";import"./chunk-LO4K2ZF3.js";import"./chunk-C2ESM27Z.js";import"./chunk-D2RXAX5C.js";import"./chunk-5K56Q5EX.js";import"./chunk-R7P7WVNI.js";import"./chunk-6FVGUJ6L.js";import"./chunk-QDWB7QU7.js";import"./chunk-P7OVDUA5.js";import"./chunk-UCMNH6Q6.js";import"./chunk-WE4S4PEA.js";import"./chunk-CETBLAWM.js";import"./chunk-DKGGJM6Z.js";import"./chunk-GIZIR52D.js";import"./chunk-BUEIRRNY.js";import"./chunk-TK55FA56.js";import"./chunk-FMYTLXWN.js";import"./chunk-BK62N3ID.js";import"./chunk-JBSH4AK3.js";import"./chunk-PSANHDZM.js";var i=process.stdout,M=22,j=20,R=j/2,V=(t,n)=>Math.abs(n)<=Math.min(1-.417*Math.abs(t),2.393*(1-Math.abs(t))),ot=(t,n)=>t*t+n*n<=1;function nt(t){let n=.62**-t,l=[];for(let r=0;r<j;r++){let p=[];for(let g=0;g<M;g++){let w=(g+.5)/M*2-1,u=(r+.5)/j*2-1,d=!1;if(V(w,u))for(let $=0;$<6;$++)for(let y of[!1,!0]){let m=.62**$*(y?.77:1)*n,x=.5*Math.max(0,1-m)**2;(y?ot:V)(w/m,(u-x)/m)&&(d=!y)}p.push(d)}l.push(p)}return l}var C={C:["\u25E2\u2588\u25E3","\u2588 ","\u2588 ","\u25E5\u2588\u25E4"],O:["\u25E2\u2588\u25E3","\u2588 \u2588","\u2588 \u2588","\u25E5\u2588\u25E4"],N:["\u2588\u25E3 \u2588","\u2588\u2588\u25E3\u2588","\u2588\u25E5\u2588\u2588","\u2588 \u25E5\u2588"],F:["\u2588\u2588\u2588","\u2588\u2584\u2584","\u2588 ","\u2588 "],R:["\u2588\u2588\u25E3","\u2588 \u2588","\u2588\u2588\u25E4","\u2588 \u2588"],M:["\u2588\u25E3\u25E2\u2588","\u2588\u25E5\u25E4\u2588","\u2588 \u2588","\u2588 \u2588"],T:["\u2588\u2588\u2588"," \u2588 "," \u2588 "," \u2588 "],L:["\u2588 ","\u2588 ","\u2588 ","\u2588\u2588\u2588"],S:["\u25E2\u2588\u25E3","\u25E5\u25E3 "," \u25E5\u25E3","\u25E5\u2588\u25E4"],".":[" "," "," ","\u25CF"]},Y="CONFORM.TOOLS",et=[...Y].reduce((t,n)=>t+C[n][0].length+1,-1);async function B(t){if(!i.isTTY)return!1;let n=!!S("NO_COLOR"),l=/truecolor|24bit/i.test(S("COLORTERM")??""),r=o=>e=>n?e:`\x1B[${o}m${e}\x1B[0m`,p=r(l?"38;2;255;60;0":"38;5;202"),g=r(l?"38;2;255;222;0":"38;5;220"),w=r("1"),u=r("2"),d=(i.columns??80)>=M+4+et,$=o=>[...Y].map(e=>e==="."?p(C[e][o]):w(C[e][o])).join(" "),y=(o,e)=>d&&o>=2&&o<=5?$(o-2):!d&&o===3?`${w("conform")}${p(".")}${w("tools")}`:o===7?e:"",m=(o,e,O=[])=>{let v=nt(o),_=[];for(let f=0;f<R;f++){let X=v[2*f].map((N,tt)=>{let k=v[2*f+1][tt];return N&&k?"\u2588":N?"\u2580":k?"\u2584":" "}).join(""),Z=f>=8?O[f-8]??"":"";_.push(` ${p(X)} ${Z||y(f,e)}\x1B[K`)}return _.join(`
4
+ `)+`
5
+ `},x=null;t.account.then(o=>{x=o});let P=o=>[o/86400,o/1440%60,o/24%60,o%24].map(e=>String(Math.floor(e)).padStart(2,"0")).join(":"),Q=!S("CI")&&S("TERM")!=="dumb";if(i.write(`
6
+ `),Q){let o=()=>i.write("\x1B[?25h");process.once("SIGINT",()=>{o(),process.exit(130)}),i.write("\x1B[?25l"+m(0,g(`\u25B6 ${P(0)}`)));let e=Date.now(),O=0;for(;x===null||Date.now()-e<900;)await new Promise(v=>setTimeout(v,1e3/24)),O=Math.round((Date.now()-e)*24/1e3),i.write(`\x1B[${R}A\r`+m(O/22%1,`${g(`\u25B6 ${P(O)}`)} ${u("checking your account\u2026")}`));i.write(`\x1B[${R}A\r`),o()}let U=(x??await t.account).split(`
7
+ `);return i.write(m(0,`${u("v")}${t.version} ${u("\xB7 built by post pros")}`,U.map(o=>u(o)))),i.write(`
8
+ `),!0}var q=()=>B({version:I,account:Promise.race([A().catch(()=>null),new Promise(t=>setTimeout(t,1500,null))]).then(t=>t?D(t):"account: no answer (offline?)")}),rt={login:"account_login",logout:"account_logout",whoami:"account_status",status:"account_status",telemetry:"account_telemetry"};c()[0]==="mcp"&&(await import("./mcp.js"),await new Promise(()=>{}));c()[0]==="http"&&(await import("./http.js"),await new Promise(()=>{}));c()[0]==="statusline"&&((await import("./statusline-GMMCFMOA.js")).main(),s(0));if(c()[0]==="setup"){let t=c()[1];t!=="claude"&&(console.error(`conformtools setup <client>: supported: claude${t?` (not ${t} yet)`:""}`),s(2));let{setupClaude:n,setupText:l}=await import("./claude-setup-XSNTKEU7.js");try{console.log(l(await n())),s(0)}catch(r){console.error(r instanceof Error?r.message:String(r)),s(1)}}var K=c().includes("--json"),[a,T]=c().filter(t=>t!=="--json");if(!a||a==="--list"||a==="help"||a==="--help"){await q(),console.log(`conformtools <verb> '<json args>' [--json]
4
9
 
5
10
  login / whoami / logout sign in with your conform.tools Google account
6
11
  telemetry on|off|status optional outcome telemetry (off by default; see the README, Feedback and privacy)
7
12
  mcp run as an MCP server (stdio) for Claude Code, Cursor, Codex\u2026
8
13
  http run the local HTTP API on 127.0.0.1:7791
9
- `);let o=l()==="hosted";for(let a of g)console.log(` ${a.name.padEnd(22)} ${a.title}${o&&a.protectedStages?.length?" (on conform.tools)":""}`);o&&console.log(`
10
- (on conform.tools) = the timeline is read or written by conform.tools; the file and its media stay here`),e(0)}var s=d[t]??t,y=p(s);y||(console.error(`unknown verb '${t}' \u2014 conformtools --list`),e(2));s==="account_login"&&console.error("opening the browser to sign in to conform.tools\u2026");var b=s==="account_telemetry"&&i&&!i.trim().startsWith("{")?JSON.stringify({action:i.trim()}):i,h;try{h=JSON.parse(b??"{}")}catch{console.error(`arguments must be JSON, e.g. conformtools ${t} '{"path":"\u2026"}'`),e(2)}var c=f(s,h),r=c.ok?await u(s,c.data):c.result;console.log(w?JSON.stringify(r.structuredContent??{ok:!r.isError,text:r.content.map(o=>o.text).join(`
11
- `)},null,1):r.content.map(o=>o.text).join(`
12
- `));await m();e(r.isError?1:0);
14
+ `);let t=W()==="hosted";for(let n of F)console.log(` ${n.name.padEnd(22)} ${n.title}${t&&n.protectedStages?.length?" (on conform.tools)":""}`);t&&console.log(`
15
+ (on conform.tools) = the timeline is read or written by conform.tools; the file and its media stay here`),s(0)}var h=rt[a]??a,st=G(h);st||(console.error(`unknown verb '${a}' \u2014 conformtools --list`),s(2));h==="account_login"&&console.error("opening the browser to sign in to conform.tools\u2026");var it=h==="account_telemetry"&&T&&!T.trim().startsWith("{")?JSON.stringify({action:T.trim()}):T,z;try{z=JSON.parse(it??"{}")}catch{console.error(`arguments must be JSON, e.g. conformtools ${a} '{"path":"\u2026"}'`),s(2)}var E=H(h,z),b=E.ok?await J(h,E.data):E.result;h==="account_login"&&!b.isError&&!K&&await q()||console.log(K?JSON.stringify(b.structuredContent??{ok:!b.isError,text:b.content.map(t=>t.text).join(`
16
+ `)},null,1):b.content.map(t=>t.text).join(`
17
+ `));await L();s(b.isError?1:0);
Binary file
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{a,b}from"./chunk-PZFWQJCF.js";import"./chunk-R6WJ6JIQ.js";import"./chunk-PSANHDZM.js";export{b as decodeCr3Wasm,a as inspectCr3Wasm};
3
+ import{a,b}from"./chunk-5K56Q5EX.js";import"./chunk-JBSH4AK3.js";import"./chunk-PSANHDZM.js";export{b as decodeCr3Wasm,a as inspectCr3Wasm};
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{a,b,c}from"./chunk-ZAHP3ES5.js";import"./chunk-DKGGJM6Z.js";import"./chunk-R6WJ6JIQ.js";import"./chunk-PSANHDZM.js";export{c as decodeDngPreviewWasm,b as decodeDngWasm,a as inspectDngWasm};
3
+ import{a,b,c}from"./chunk-D2RXAX5C.js";import"./chunk-DKGGJM6Z.js";import"./chunk-JBSH4AK3.js";import"./chunk-PSANHDZM.js";export{c as decodeDngPreviewWasm,b as decodeDngWasm,a as inspectDngWasm};
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{a,b,c}from"./chunk-7XTBFOUJ.js";import"./chunk-DKGGJM6Z.js";import"./chunk-R6WJ6JIQ.js";import"./chunk-PSANHDZM.js";export{c as decodeDpxPreviewWasm,b as decodeDpxWasm,a as inspectDpxWasm};
3
+ import{a,b,c}from"./chunk-WE4S4PEA.js";import"./chunk-DKGGJM6Z.js";import"./chunk-JBSH4AK3.js";import"./chunk-PSANHDZM.js";export{c as decodeDpxPreviewWasm,b as decodeDpxWasm,a as inspectDpxWasm};
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{a,b,c}from"./chunk-XDHIIZ6A.js";import"./chunk-DKGGJM6Z.js";import"./chunk-R6WJ6JIQ.js";import"./chunk-PSANHDZM.js";export{c as decodeExrPreviewWasm,b as decodeExrWasm,a as inspectExrWasm};
3
+ import{a,b,c}from"./chunk-CETBLAWM.js";import"./chunk-DKGGJM6Z.js";import"./chunk-JBSH4AK3.js";import"./chunk-PSANHDZM.js";export{c as decodeExrPreviewWasm,b as decodeExrWasm,a as inspectExrWasm};
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{a as v,b as S}from"./chunk-SP5RGDAM.js";import{a as M}from"./chunk-QDWB7QU7.js";import{a as F}from"./chunk-TK55FA56.js";import"./chunk-PSANHDZM.js";var V=8,H=1500,P=new WeakMap;async function C(t){let o=P.get(t);return o||(o=k(t),P.set(t,o)),o}async function k(t){if(typeof VideoDecoder>"u")throw new Error("h264: WebCodecs (VideoDecoder) not available in this context");let o=t.parts[0],e=await F({fileSize:o.fileSize,read:o.read}),a=S(v(e)),r=M(e);if(!r)throw new Error("h264: no H.264/HEVC config in container");let s=r.decodeToPres.length||a.length,f=new Int32Array(s);for(let n=0;n<r.decodeToPres.length;n++)f[r.decodeToPres[n]]=n;let u=[];for(let n=0;n<r.keyframes.length;n++){let l=r.keyframes[n],m=n+1<r.keyframes.length?r.keyframes[n+1]:a.length;u.push([l,m])}let c={offs:a,cfg:r,gops:u,presToDecode:f,count:s,dec:null,wanted:-1,got:null,gotResolve:null,fedThrough:-1,queue:Promise.resolve()};return c.dec=new VideoDecoder({output:n=>{Number(n.timestamp)===c.wanted&&!c.got?(c.got=n,c.gotResolve?.()):n.close()},error:()=>{c.fedThrough=-1}}),c.dec.configure({codec:r.codec,description:r.description,optimizeForLatency:!0,hardwareAcceleration:"prefer-hardware"}),c}function R(t,o){let e=0,a=t.length-1,r=0;for(;e<=a;){let s=e+a>>1;t[s][0]<=o?(r=s,e=s+1):a=s-1}return r}async function I(t){let o=t.codedWidth,e=t.codedHeight;try{let a=o*e*4,r=new Uint8Array(a);return await t.copyTo(r,{format:"RGBA",colorSpace:"srgb"}),{width:o,height:e,rgba:r}}catch{let r=new OffscreenCanvas(o,e).getContext("2d",{willReadFrequently:!0});if(!r)throw new Error("h264: no 2d context for frame readback");r.drawImage(t,0,0);let s=r.getImageData(0,0,o,e);return{width:o,height:e,rgba:new Uint8Array(s.data.buffer)}}}async function O(t,o){let e=await C(t);if(e.count===0)throw new Error("h264: empty clip");if(o<0||o>=e.count)throw new Error(`COVERAGE_MISS: frame ${o} outside 0..${e.count-1}`);let a,r=new Promise(f=>{a=f}),s=e.queue;e.queue=e.queue.then(()=>r),await s;try{let f=t.parts[0],u=e.presToDecode[o],c=R(e.gops,u),[n,l]=e.gops[c];for(let m=0;m<2;m++){let T=m===0&&e.fedThrough>n&&e.fedThrough<=l&&u>=e.fedThrough,w=T?e.fedThrough:n;if(!T&&e.fedThrough!==-1){try{await e.dec.flush()}catch{}e.fedThrough=-1}let h=Math.min(l,u+1+V);e.wanted=o,e.got=null;let D=new Promise(d=>{e.gotResolve=d});if(h>w){let d=1/0,y=0;for(let i=w;i<h;i++)d=Math.min(d,e.offs[i].offset),y=Math.max(y,e.offs[i].offset+e.offs[i].size);let E=await f.read(d,y-d);for(let i=w;i<h;i++){let b=e.offs[i];e.dec.decode(new EncodedVideoChunk({type:i===n?"key":"delta",timestamp:e.cfg.decodeToPres[i],data:E.subarray(b.offset-d,b.offset-d+b.size)}))}e.fedThrough=h}let A=new Promise(d=>setTimeout(d,H));if(await Promise.race([D,A]),!e.got){try{await e.dec.flush()}catch{}e.fedThrough=-1}let p=e.got;if(e.wanted=-1,e.gotResolve=null,e.got=null,!!p)try{return await I(p)}finally{p.close()}}throw new Error(`h264: frame ${o} did not decode`)}finally{a()}}async function g(){return(await import("./isobmff-7G55HKDG.js")).isobmffFormat}var U={async inspect(t){return(await g()).inspect(t)},async extract(t){return(await g()).extract(t)},async sparsify(t,o){return(await g()).sparsify(t,o)},async trim(t,o){return(await g()).trim(t,o)},async decode(t,o){return O(t,o)}};export{U as h264Format};
3
+ import{a as M}from"./chunk-QDWB7QU7.js";import{a as v,b as S}from"./chunk-SP5RGDAM.js";import{a as F}from"./chunk-TK55FA56.js";import"./chunk-PSANHDZM.js";var V=8,H=1500,P=new WeakMap;async function C(t){let o=P.get(t);return o||(o=k(t),P.set(t,o)),o}async function k(t){if(typeof VideoDecoder>"u")throw new Error("h264: WebCodecs (VideoDecoder) not available in this context");let o=t.parts[0],e=await F({fileSize:o.fileSize,read:o.read}),a=S(v(e)),r=M(e);if(!r)throw new Error("h264: no H.264/HEVC config in container");let s=r.decodeToPres.length||a.length,f=new Int32Array(s);for(let n=0;n<r.decodeToPres.length;n++)f[r.decodeToPres[n]]=n;let u=[];for(let n=0;n<r.keyframes.length;n++){let l=r.keyframes[n],m=n+1<r.keyframes.length?r.keyframes[n+1]:a.length;u.push([l,m])}let c={offs:a,cfg:r,gops:u,presToDecode:f,count:s,dec:null,wanted:-1,got:null,gotResolve:null,fedThrough:-1,queue:Promise.resolve()};return c.dec=new VideoDecoder({output:n=>{Number(n.timestamp)===c.wanted&&!c.got?(c.got=n,c.gotResolve?.()):n.close()},error:()=>{c.fedThrough=-1}}),c.dec.configure({codec:r.codec,description:r.description,optimizeForLatency:!0,hardwareAcceleration:"prefer-hardware"}),c}function R(t,o){let e=0,a=t.length-1,r=0;for(;e<=a;){let s=e+a>>1;t[s][0]<=o?(r=s,e=s+1):a=s-1}return r}async function I(t){let o=t.codedWidth,e=t.codedHeight;try{let a=o*e*4,r=new Uint8Array(a);return await t.copyTo(r,{format:"RGBA",colorSpace:"srgb"}),{width:o,height:e,rgba:r}}catch{let r=new OffscreenCanvas(o,e).getContext("2d",{willReadFrequently:!0});if(!r)throw new Error("h264: no 2d context for frame readback");r.drawImage(t,0,0);let s=r.getImageData(0,0,o,e);return{width:o,height:e,rgba:new Uint8Array(s.data.buffer)}}}async function O(t,o){let e=await C(t);if(e.count===0)throw new Error("h264: empty clip");if(o<0||o>=e.count)throw new Error(`COVERAGE_MISS: frame ${o} outside 0..${e.count-1}`);let a,r=new Promise(f=>{a=f}),s=e.queue;e.queue=e.queue.then(()=>r),await s;try{let f=t.parts[0],u=e.presToDecode[o],c=R(e.gops,u),[n,l]=e.gops[c];for(let m=0;m<2;m++){let T=m===0&&e.fedThrough>n&&e.fedThrough<=l&&u>=e.fedThrough,w=T?e.fedThrough:n;if(!T&&e.fedThrough!==-1){try{await e.dec.flush()}catch{}e.fedThrough=-1}let h=Math.min(l,u+1+V);e.wanted=o,e.got=null;let D=new Promise(d=>{e.gotResolve=d});if(h>w){let d=1/0,y=0;for(let i=w;i<h;i++)d=Math.min(d,e.offs[i].offset),y=Math.max(y,e.offs[i].offset+e.offs[i].size);let E=await f.read(d,y-d);for(let i=w;i<h;i++){let b=e.offs[i];e.dec.decode(new EncodedVideoChunk({type:i===n?"key":"delta",timestamp:e.cfg.decodeToPres[i],data:E.subarray(b.offset-d,b.offset-d+b.size)}))}e.fedThrough=h}let A=new Promise(d=>setTimeout(d,H));if(await Promise.race([D,A]),!e.got){try{await e.dec.flush()}catch{}e.fedThrough=-1}let p=e.got;if(e.wanted=-1,e.gotResolve=null,e.got=null,!!p)try{return await I(p)}finally{p.close()}}throw new Error(`h264: frame ${o} did not decode`)}finally{a()}}async function g(){return(await import("./isobmff-HSF7B3Y7.js")).isobmffFormat}var U={async inspect(t){return(await g()).inspect(t)},async extract(t){return(await g()).extract(t)},async sparsify(t,o){return(await g()).sparsify(t,o)},async trim(t,o){return(await g()).trim(t,o)},async decode(t,o){return O(t,o)}};export{U as h264Format};
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{Ca as v,ha as g,ja as b}from"./chunk-R6WJ6JIQ.js";import"./chunk-PSANHDZM.js";var G=8,P=1500,M=new WeakMap,S=o=>(t,e)=>o.read(t,e);function F(o){let t=new DataView(o.buffer,o.byteOffset,o.byteLength),e=t.getUint32(0,!0),n=[];for(let a=0;a<e;a++)n.push(t.getUint32(4+a*4,!0));let i=[],r=4+e*4;for(let a of n)i.push(o.subarray(r,r+a)),r+=a;return i}function V(o){for(let t=0;t+5<o.length;t++){let e=o[t]===0&&o[t+1]===0&&o[t+2]===0&&o[t+3]===1,n=o[t]===0&&o[t+1]===0&&o[t+2]===1;if(e||n){let i=t+(e?4:3);if((o[i]&31)===7){let r=a=>a.toString(16).padStart(2,"0");return`avc1.${r(o[i+1])}${r(o[i+2])}${r(o[i+3])}`}t=i-1}}return"avc1.640028"}async function A(o){if(typeof VideoDecoder>"u")throw new Error("h264-mxf: WebCodecs (VideoDecoder) not available in this context");await v();let t=o.parts[0],e=S(t),n=JSON.parse(await b(e,t.fileSize));if(!n.raps.length)throw new Error("h264-mxf: no random-access points in MXF index");let i=V(F(await g(e,t.fileSize,0,0))[0]),r={map:n,codec:i,dec:null,wanted:-1,emitted:0,got:null,gotResolve:null,fedGop:-1,fedThrough:-1,queue:Promise.resolve()};return r.dec=new VideoDecoder({output:a=>{r.emitted++===r.wanted&&!r.got?(r.got=a,r.gotResolve?.()):a.close()},error:()=>{r.fedGop=-1,r.fedThrough=-1}}),r.dec.configure({codec:i,codedWidth:n.coded_width||1920,codedHeight:n.coded_height||1088,optimizeForLatency:!0}),r}async function E(o){let t=M.get(o);return t||(t=A(o),M.set(o,t)),t}function D(o,t){let e=o.raps,n=0,i=e.length-1,r=0;for(;n<=i;){let a=n+i>>1;e[a]<=t?(r=a,n=a+1):i=a-1}return{start:e[r],end:r+1<e.length?e[r+1]:o.total_frames}}async function R(o){let t=o.visibleRect,e=t?t.width:o.codedWidth,n=t?t.height:o.codedHeight;try{let i=new Uint8Array(e*n*4);return await o.copyTo(i,{format:"RGBA",colorSpace:"srgb",rect:t??void 0}),{width:e,height:n,rgba:i}}catch{let r=new OffscreenCanvas(e,n).getContext("2d",{willReadFrequently:!0});if(!r)throw new Error("h264-mxf: no 2d context for frame readback");r.drawImage(o,t?t.x:0,t?t.y:0,e,n,0,0,e,n);let a=r.getImageData(0,0,e,n);return{width:e,height:n,rgba:new Uint8Array(a.data.buffer)}}}async function U(o,t){let e=await E(o);if(e.map.total_frames===0)throw new Error("h264-mxf: empty clip");if(t<0||t>=e.map.total_frames)throw new Error(`COVERAGE_MISS: frame ${t} outside 0..${e.map.total_frames-1}`);let n,i=new Promise(a=>{n=a}),r=e.queue;e.queue=e.queue.then(()=>i),await r;try{let a=o.parts[0],w=S(a),{start:c,end:_}=D(e.map,t);for(let u=0;u<2;u++){let f=u===0&&e.fedGop===c&&e.fedThrough>c&&t>=e.fedThrough;if(!f&&e.fedGop!==-1){try{await e.dec.flush()}catch{}e.fedGop=-1,e.fedThrough=-1}let l=f?e.fedThrough:c,h=Math.min(_,t+1+G);f||(e.emitted=0),e.wanted=t-c,e.got=null;let T=new Promise(s=>{e.gotResolve=s});if(h>l){let s=F(await g(w,a.fileSize,l,h-1));for(let d=0;d<s.length;d++){let y=l+d;e.dec.decode(new EncodedVideoChunk({type:y===c?"key":"delta",timestamp:y*1e3,data:s[d]}))}e.fedGop=c,e.fedThrough=h}let x=new Promise(s=>setTimeout(s,P));if(await Promise.race([T,x]),!e.got){try{await e.dec.flush()}catch{}e.fedGop=-1,e.fedThrough=-1}let p=e.got;if(e.wanted=-1,e.gotResolve=null,e.got=null,!!p)try{return await R(p)}finally{p.close()}}throw new Error(`h264-mxf: frame ${t} did not decode`)}finally{n()}}async function m(){return(await import("./mxf-YH2A2XLW.js")).mxfFormat}var O={async inspect(o){return(await m()).inspect(o)},async extract(o){return(await m()).extract(o)},async sparsify(o,t){return(await m()).sparsify(o,t)},async trim(o,t){return(await m()).trim(o,t)},async decode(o,t){return U(o,t)}};export{O as h264MxfFormat};
3
+ import{Ca as v,ha as g,ja as b}from"./chunk-JBSH4AK3.js";import"./chunk-PSANHDZM.js";var G=8,P=1500,M=new WeakMap,S=o=>(t,e)=>o.read(t,e);function F(o){let t=new DataView(o.buffer,o.byteOffset,o.byteLength),e=t.getUint32(0,!0),n=[];for(let a=0;a<e;a++)n.push(t.getUint32(4+a*4,!0));let i=[],r=4+e*4;for(let a of n)i.push(o.subarray(r,r+a)),r+=a;return i}function V(o){for(let t=0;t+5<o.length;t++){let e=o[t]===0&&o[t+1]===0&&o[t+2]===0&&o[t+3]===1,n=o[t]===0&&o[t+1]===0&&o[t+2]===1;if(e||n){let i=t+(e?4:3);if((o[i]&31)===7){let r=a=>a.toString(16).padStart(2,"0");return`avc1.${r(o[i+1])}${r(o[i+2])}${r(o[i+3])}`}t=i-1}}return"avc1.640028"}async function A(o){if(typeof VideoDecoder>"u")throw new Error("h264-mxf: WebCodecs (VideoDecoder) not available in this context");await v();let t=o.parts[0],e=S(t),n=JSON.parse(await b(e,t.fileSize));if(!n.raps.length)throw new Error("h264-mxf: no random-access points in MXF index");let i=V(F(await g(e,t.fileSize,0,0))[0]),r={map:n,codec:i,dec:null,wanted:-1,emitted:0,got:null,gotResolve:null,fedGop:-1,fedThrough:-1,queue:Promise.resolve()};return r.dec=new VideoDecoder({output:a=>{r.emitted++===r.wanted&&!r.got?(r.got=a,r.gotResolve?.()):a.close()},error:()=>{r.fedGop=-1,r.fedThrough=-1}}),r.dec.configure({codec:i,codedWidth:n.coded_width||1920,codedHeight:n.coded_height||1088,optimizeForLatency:!0}),r}async function E(o){let t=M.get(o);return t||(t=A(o),M.set(o,t)),t}function D(o,t){let e=o.raps,n=0,i=e.length-1,r=0;for(;n<=i;){let a=n+i>>1;e[a]<=t?(r=a,n=a+1):i=a-1}return{start:e[r],end:r+1<e.length?e[r+1]:o.total_frames}}async function R(o){let t=o.visibleRect,e=t?t.width:o.codedWidth,n=t?t.height:o.codedHeight;try{let i=new Uint8Array(e*n*4);return await o.copyTo(i,{format:"RGBA",colorSpace:"srgb",rect:t??void 0}),{width:e,height:n,rgba:i}}catch{let r=new OffscreenCanvas(e,n).getContext("2d",{willReadFrequently:!0});if(!r)throw new Error("h264-mxf: no 2d context for frame readback");r.drawImage(o,t?t.x:0,t?t.y:0,e,n,0,0,e,n);let a=r.getImageData(0,0,e,n);return{width:e,height:n,rgba:new Uint8Array(a.data.buffer)}}}async function U(o,t){let e=await E(o);if(e.map.total_frames===0)throw new Error("h264-mxf: empty clip");if(t<0||t>=e.map.total_frames)throw new Error(`COVERAGE_MISS: frame ${t} outside 0..${e.map.total_frames-1}`);let n,i=new Promise(a=>{n=a}),r=e.queue;e.queue=e.queue.then(()=>i),await r;try{let a=o.parts[0],w=S(a),{start:c,end:_}=D(e.map,t);for(let u=0;u<2;u++){let f=u===0&&e.fedGop===c&&e.fedThrough>c&&t>=e.fedThrough;if(!f&&e.fedGop!==-1){try{await e.dec.flush()}catch{}e.fedGop=-1,e.fedThrough=-1}let l=f?e.fedThrough:c,h=Math.min(_,t+1+G);f||(e.emitted=0),e.wanted=t-c,e.got=null;let T=new Promise(s=>{e.gotResolve=s});if(h>l){let s=F(await g(w,a.fileSize,l,h-1));for(let d=0;d<s.length;d++){let y=l+d;e.dec.decode(new EncodedVideoChunk({type:y===c?"key":"delta",timestamp:y*1e3,data:s[d]}))}e.fedGop=c,e.fedThrough=h}let x=new Promise(s=>setTimeout(s,P));if(await Promise.race([T,x]),!e.got){try{await e.dec.flush()}catch{}e.fedGop=-1,e.fedThrough=-1}let p=e.got;if(e.wanted=-1,e.gotResolve=null,e.got=null,!!p)try{return await R(p)}finally{p.close()}}throw new Error(`h264-mxf: frame ${t} did not decode`)}finally{n()}}async function m(){return(await import("./mxf-IQBPP3JA.js")).mxfFormat}var O={async inspect(o){return(await m()).inspect(o)},async extract(o){return(await m()).extract(o)},async sparsify(o,t){return(await m()).sparsify(o,t)},async trim(o,t){return(await m()).trim(o,t)},async decode(o,t){return U(o,t)}};export{O as h264MxfFormat};
package/dist/http.js CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{b as d}from"./chunk-6TM32YIJ.js";import{G as p,H as c,O as h,R as u,S as f,T as g,U as T,X as O,Y as w,_ as r,a as m}from"./chunk-E6YXZIJS.js";import"./chunk-DRHOPOC7.js";import"./chunk-GXEVALBL.js";import"./chunk-Y2BEEOPB.js";import"./chunk-PSMXHDMX.js";import"./chunk-P7OVDUA5.js";import"./chunk-XDHIIZ6A.js";import"./chunk-ZAHP3ES5.js";import"./chunk-PZFWQJCF.js";import"./chunk-UUDNNFU7.js";import"./chunk-RXHNBSER.js";import"./chunk-UCMNH6Q6.js";import"./chunk-QDWB7QU7.js";import"./chunk-AHNDJFQR.js";import"./chunk-TK55FA56.js";import"./chunk-JEMLKBH2.js";import"./chunk-N43NAG5E.js";import"./chunk-7XTBFOUJ.js";import"./chunk-DKGGJM6Z.js";import"./chunk-R6WJ6JIQ.js";import"./chunk-C2ESM27Z.js";import"./chunk-WHY3DVXS.js";import"./chunk-PSANHDZM.js";var S=Number(c("CONFORM_HTTP_PORT")??7791),E=c("CONFORM_HTTP_TOKEN")??"",k=(c("CONFORM_HTTP_ORIGINS")??"https://conform.tools,https://app.conform.tools,http://localhost:5173,http://localhost:3000").split(","),R=(t,n=new Headers)=>{let e=t.headers.get("origin")??"";return k.includes(e)&&n.set("access-control-allow-origin",e),n.set("access-control-allow-headers","authorization, content-type"),n.set("access-control-allow-methods","GET, POST, DELETE, OPTIONS"),n.set("access-control-allow-private-network","true"),n.set("vary","origin"),n},s=(t,n,e=200)=>new Response(JSON.stringify(n),{status:e,headers:R(t,new Headers({"content-type":"application/json"}))});h({hostname:"127.0.0.1",port:S,onListen:t=>console.error(`conformtools HTTP API on http://127.0.0.1:${t} (${r.length} verbs)`)},async t=>{let n=new URL(t.url);if(t.method==="OPTIONS")return new Response(null,{status:204,headers:R(t)});if(E&&t.headers.get("authorization")!==`Bearer ${E}`&&n.pathname!=="/health")return s(t,{ok:!1,code:"unauthorized"},401);let e=n.pathname.split("/").filter(Boolean);try{if(n.pathname==="/health")return s(t,{ok:!0,verbs:r.length,version:m,engine:u()});if(e[0]==="verbs"&&e.length===1&&t.method==="GET")return s(t,r.map(o=>({name:o.name,title:o.title,description:o.description,long:!!o.long,input_schema:d(p.object(o.inputSchema)),protected_stages:o.protectedStages??[],engine:u()})));if(e[0]==="verbs"&&e.length===2&&t.method==="POST"){let o=r.find(l=>l.name===e[1]);if(!o)return s(t,{ok:!1,code:"not_found",message:`unknown verb ${e[1]}`},404);let b=t.headers.get("content-type")?.includes("json")?await t.json():{},a=w(o.name,b);if(!a.ok)return s(t,{...a.result.structuredContent,text:a.result.content[0].text},400);let i=await O(o.name,a.data);return s(t,{...i.structuredContent??{ok:!i.isError},text:i.content.map(l=>l.text).join(`
3
+ import{b as h}from"./chunk-6TM32YIJ.js";import{N as d,O as u,W as f,X as g,Y as T,aa as O,ba as w,da as r,e as p}from"./chunk-EV52G33S.js";import{L as m,b as c}from"./chunk-D5DEQ467.js";import"./chunk-DRHOPOC7.js";import"./chunk-GXEVALBL.js";import"./chunk-Y2BEEOPB.js";import"./chunk-LO4K2ZF3.js";import"./chunk-C2ESM27Z.js";import"./chunk-D2RXAX5C.js";import"./chunk-5K56Q5EX.js";import"./chunk-R7P7WVNI.js";import"./chunk-6FVGUJ6L.js";import"./chunk-QDWB7QU7.js";import"./chunk-P7OVDUA5.js";import"./chunk-UCMNH6Q6.js";import"./chunk-WE4S4PEA.js";import"./chunk-CETBLAWM.js";import"./chunk-DKGGJM6Z.js";import"./chunk-GIZIR52D.js";import"./chunk-BUEIRRNY.js";import"./chunk-TK55FA56.js";import"./chunk-FMYTLXWN.js";import"./chunk-BK62N3ID.js";import"./chunk-JBSH4AK3.js";import"./chunk-PSANHDZM.js";var S=Number(c("CONFORM_HTTP_PORT")??7791),E=c("CONFORM_HTTP_TOKEN")??"",k=(c("CONFORM_HTTP_ORIGINS")??"https://conform.tools,https://app.conform.tools,http://localhost:5173,http://localhost:3000").split(","),R=(t,n=new Headers)=>{let e=t.headers.get("origin")??"";return k.includes(e)&&n.set("access-control-allow-origin",e),n.set("access-control-allow-headers","authorization, content-type"),n.set("access-control-allow-methods","GET, POST, DELETE, OPTIONS"),n.set("access-control-allow-private-network","true"),n.set("vary","origin"),n},s=(t,n,e=200)=>new Response(JSON.stringify(n),{status:e,headers:R(t,new Headers({"content-type":"application/json"}))});m({hostname:"127.0.0.1",port:S,onListen:t=>console.error(`conformtools HTTP API on http://127.0.0.1:${t} (${r.length} verbs)`)},async t=>{let n=new URL(t.url);if(t.method==="OPTIONS")return new Response(null,{status:204,headers:R(t)});if(E&&t.headers.get("authorization")!==`Bearer ${E}`&&n.pathname!=="/health")return s(t,{ok:!1,code:"unauthorized"},401);let e=n.pathname.split("/").filter(Boolean);try{if(n.pathname==="/health")return s(t,{ok:!0,verbs:r.length,version:p,engine:u()});if(e[0]==="verbs"&&e.length===1&&t.method==="GET")return s(t,r.map(o=>({name:o.name,title:o.title,description:o.description,long:!!o.long,input_schema:h(d.object(o.inputSchema)),protected_stages:o.protectedStages??[],engine:u()})));if(e[0]==="verbs"&&e.length===2&&t.method==="POST"){let o=r.find(l=>l.name===e[1]);if(!o)return s(t,{ok:!1,code:"not_found",message:`unknown verb ${e[1]}`},404);let b=t.headers.get("content-type")?.includes("json")?await t.json():{},a=w(o.name,b);if(!a.ok)return s(t,{...a.result.structuredContent,text:a.result.content[0].text},400);let i=await O(o.name,a.data);return s(t,{...i.structuredContent??{ok:!i.isError},text:i.content.map(l=>l.text).join(`
4
4
  `)},i.isError?422:200)}if(e[0]==="jobs"&&e.length===1)return s(t,await T());if(e[0]==="jobs"&&e.length===2){if(t.method==="DELETE")return s(t,{ok:g(e[1])});let o=await f(e[1]);return o?s(t,o):s(t,{ok:!1,code:"not_found"},404)}return s(t,{ok:!1,code:"not_found"},404)}catch(o){return s(t,{ok:!1,code:"internal",message:o instanceof Error?o.message:String(o)},500)}});
Binary file