conformtools 0.6.16 → 0.6.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/{account-W7Z2MYZU.js → account-VXAKXGY6.js} +1 -1
- package/dist/{agent-hook-setup-JCIZG3Q3.js → agent-hook-setup-HBT2LTVR.js} +1 -1
- package/dist/{analysis-engine-DCHJHZ7W.js → analysis-engine-BZUEBW55.js} +1 -1
- package/dist/{arriraw-YIJ3BYNN.js → arriraw-GZ63YMLZ.js} +7 -7
- package/dist/bridge-DRC6BQFR.js +3 -0
- package/dist/browser/timeline_core_bg.wasm +0 -0
- package/dist/{chunk-HOACOBAY.js → chunk-2SDAOYP5.js} +3 -3
- package/dist/{chunk-XVZ7KJRI.js → chunk-2VH2Z6RD.js} +1 -1
- package/dist/chunk-3PVQ5QP4.js +3 -0
- package/dist/chunk-73RFYAVG.js +3 -0
- package/dist/{chunk-RGMTLNMF.js → chunk-BBCQMZQN.js} +1 -1
- package/dist/{chunk-JL454FFL.js → chunk-CRMGV32N.js} +2 -2
- package/dist/{chunk-JM5LHKTU.js → chunk-CZ6OZKR6.js} +222 -216
- package/dist/chunk-GRJLKGBG.js +3 -0
- package/dist/chunk-GTPTZRO6.js +3 -0
- package/dist/{chunk-4RA57LTJ.js → chunk-IG2X534U.js} +1 -1
- package/dist/{chunk-MGMDNGNX.js → chunk-JT3HI632.js} +2 -2
- package/dist/chunk-JTRM2JCE.js +7 -0
- package/dist/{chunk-UAURERD3.js → chunk-M5CEBOLK.js} +1 -1
- package/dist/{chunk-XDI6CPPV.js → chunk-MTAXVOHK.js} +1 -1
- package/dist/{chunk-WJ5EWXP2.js → chunk-MVQ5RGZB.js} +1 -1
- package/dist/{chunk-VETHR2O7.js → chunk-NN444GPH.js} +1 -1
- package/dist/chunk-OSUIS4JU.js +3 -0
- package/dist/chunk-P4PCSGEH.js +10 -0
- package/dist/{chunk-DPA26AOI.js → chunk-QNF4NMIW.js} +1 -1
- package/dist/{chunk-QRZO5GOI.js → chunk-R2WEXCVQ.js} +1 -1
- package/dist/chunk-RITYQNOO.js +3 -0
- package/dist/{chunk-RJD44NQU.js → chunk-S2WAFMRV.js} +2 -2
- package/dist/chunk-S5AOIOTT.js +3 -0
- package/dist/chunk-STGGRRYM.js +3 -0
- package/dist/{chunk-FLLB6UZJ.js → chunk-T7S2UBNN.js} +1 -1
- package/dist/chunk-TWHNQFKI.js +3 -0
- package/dist/chunk-UBWUED67.js +3 -0
- package/dist/{chunk-VWFEMXYZ.js → chunk-VCBLWNQR.js} +102 -101
- package/dist/{chunk-6V4OEOOX.js → chunk-VFXMP7IF.js} +1 -1
- package/dist/{chunk-5W57ITT2.js → chunk-WKNX742H.js} +2 -2
- package/dist/{chunk-UKXSKFL3.js → chunk-YGAAGTLE.js} +1 -1
- package/dist/{claude-setup-CM7G2YSG.js → claude-setup-W27DLJIO.js} +1 -1
- package/dist/cli.js +2 -2
- package/dist/{cr3-wasm-NYCB34ND.js → cr3-wasm-VUEEZYKQ.js} +1 -1
- package/dist/{demo-engine-CBFAAPPO.js → demo-engine-5TCNOTTH.js} +1 -1
- package/dist/dng-wasm-5RQBGYAK.js +3 -0
- package/dist/dpx-wasm-OQVTNGOB.js +3 -0
- package/dist/{engine-6YYXTF2Q.js → engine-4X6TDWWA.js} +2 -2
- package/dist/exr-wasm-72YZFOME.js +3 -0
- package/dist/framing-HGW5RCUA.js +3 -0
- package/dist/gfx-worker.js +1 -1
- package/dist/{h264-MAUVJTR4.js → h264-QCYEI6RF.js} +1 -1
- package/dist/{h264-mxf-2O4SAUTA.js → h264-mxf-2BYKXDGT.js} +1 -1
- package/dist/hook.js +2 -2
- package/dist/{host-relink-NVLUO73P.js → host-relink-37DCSN47.js} +1 -1
- package/dist/hosted-M2OZSONX.js +3 -0
- package/dist/hosts-IAJTORJD.js +3 -0
- package/dist/http.js +3 -3
- package/dist/{inspect-YIFLNOJW.js → inspect-R4RWCK3X.js} +2 -2
- package/dist/isobmff-RH4JKUUB.js +3 -0
- package/dist/{mc-video-HRZC7HGH.js → mc-video-MMKWEKFZ.js} +1 -1
- package/dist/mcp.js +8 -8
- package/dist/media-6MB7EKA7.js +3 -0
- package/dist/mxf-7HFFEBNW.js +3 -0
- package/dist/{ops-XIUVNJE2.js → ops-EM345H7F.js} +1 -1
- package/dist/{probe-GIAKRPFV.js → probe-YDOFGCGD.js} +1 -1
- package/dist/{r3d-I6EYEYX7.js → r3d-DDOTSYZH.js} +5 -5
- package/dist/r3d-G34YLXXA.js +3 -0
- package/dist/sequence-patch-2S7IPE52.js +3 -0
- package/dist/{source-QGWWLMME.js → source-L2JNTYS6.js} +1 -1
- package/dist/{still-4UR35GZH.js → still-AGBF3OOY.js} +1 -1
- package/dist/{still-wasm-RTPOMH7S.js → still-wasm-6YLI6NQQ.js} +1 -1
- package/dist/{store-MWNX47IK.js → store-LWUDJD76.js} +1 -1
- package/dist/tiff-wasm-6APT7FYP.js +3 -0
- package/dist/timeline-EZ6WUHCB.js +3 -0
- package/dist/{wav-HSCUCY4U.js → wav-CV43ZAJI.js} +1 -1
- package/package.json +5 -5
- package/dist/bridge-UPSJ7F3S.js +0 -3
- package/dist/chunk-DKGGJM6Z.js +0 -3
- package/dist/chunk-DLF5AKXT.js +0 -10
- package/dist/chunk-EEDLRRKU.js +0 -3
- package/dist/chunk-IDJIOKXA.js +0 -3
- package/dist/chunk-ISKNIQVO.js +0 -3
- package/dist/chunk-JKOB3U54.js +0 -3
- package/dist/chunk-OWWXUNJF.js +0 -7
- package/dist/chunk-PFZVET7S.js +0 -3
- package/dist/chunk-QH5DTYSE.js +0 -3
- package/dist/chunk-RVZQ3Y6N.js +0 -3
- package/dist/chunk-X527E5VI.js +0 -3
- package/dist/chunk-YUO3UWPH.js +0 -3
- package/dist/dng-wasm-XCPPBXPZ.js +0 -3
- package/dist/dpx-wasm-XACWNFPB.js +0 -3
- package/dist/exr-wasm-FQBUR6QT.js +0 -3
- package/dist/framing-QYRCUEB5.js +0 -3
- package/dist/hosted-2XACQY7J.js +0 -3
- package/dist/hosts-GEXAZFB3.js +0 -3
- package/dist/isobmff-MTMGQKLK.js +0 -3
- package/dist/media-WC4ZVKIL.js +0 -3
- package/dist/mxf-J5QHA3VY.js +0 -3
- package/dist/r3d-2PCOFR2Z.js +0 -3
- package/dist/sequence-patch-DFGEAJGB.js +0 -3
- package/dist/tiff-wasm-N2S267IA.js +0 -3
- package/dist/timeline-Z3KD2CJX.js +0 -3
|
@@ -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:()=>Wt,audio_aac_au:()=>Ft,audio_aac_config:()=>St,audio_info:()=>Rt,bench_f32_boundary:()=>Lt,bench_piz_no_huffman:()=>jt,color_cst:()=>zt,dci_code_full_depth:()=>Dt,dci_frame_cap:()=>Ut,dci_gpu_colour_patch:()=>Pt,dci_gpu_colour_tables:()=>Bt,dci_last_pass_caps:()=>Ct,dci_legal_rates:()=>qt,dci_mq_bench:()=>Nt,dci_pack_tier1:()=>Ht,dci_stage_rgba8:()=>Gt,dci_transform_only:()=>Vt,decode_arriraw12_luma:()=>Kt,decode_arriraw12_mxf:()=>Xt,decode_arriraw12_preview:()=>Yt,decode_arriraw12_rgba:()=>$t,decode_arriraw_luma:()=>Jt,decode_arriraw_mxf:()=>Qt,decode_arriraw_preview:()=>Zt,decode_arriraw_preview_gray:()=>te,decode_arriraw_preview_meta:()=>ee,decode_arriraw_rgba:()=>ne,decode_arriraw_rgba_meta:()=>re,decode_arw_preview:()=>_e,decode_arw_rgba:()=>oe,decode_audio_pcm:()=>ie,decode_audio_track_pcm:()=>ae,decode_bmp_rgba:()=>de,decode_braw_gen5log:()=>ce,decode_braw_luma:()=>se,decode_braw_preview:()=>pe,decode_braw_rgba:()=>ge,decode_cr2_preview:()=>ue,decode_cr2_rgba:()=>we,decode_cr3_rgba:()=>be,decode_crm:()=>le,decode_dng_preview:()=>fe,decode_dng_rgba:()=>ve,decode_dpx_preview:()=>xe,decode_dpx_rgba:()=>Ie,decode_dv_luma:()=>ye,decode_dv_preview:()=>me,decode_dv_rgba:()=>he,decode_exr_linear:()=>ke,decode_exr_preview:()=>Ae,decode_exr_rgba:()=>Me,decode_gif_rgba:()=>Ee,decode_heic_rgba:()=>Te,decode_j2k_luma:()=>Oe,decode_j2k_preview:()=>We,decode_j2k_rgba:()=>Fe,decode_jpeg_rgba:()=>Se,decode_mpeg2_luma:()=>Re,decode_mpeg2_preview:()=>Le,decode_mpeg2_rgba:()=>je,decode_png_rgba:()=>ze,decode_prores_band_rgba:()=>De,decode_prores_luma:()=>Ue,decode_prores_mxf:()=>Pe,decode_prores_preview:()=>Be,decode_prores_raw_acescct:()=>Ce,decode_prores_raw_luma:()=>qe,decode_prores_raw_preview:()=>Ne,decode_prores_raw_rec2020:()=>He,decode_prores_raw_rgba:()=>Ge,decode_prores_raw_tier:()=>Ve,decode_prores_rgb16:()=>Ke,decode_prores_rgba:()=>Xe,decode_prores_thumb_dc32:()=>Ye,decode_psd_rgba:()=>$e,decode_r3d_luma:()=>Je,decode_r3d_preview:()=>Qe,decode_r3d_preview_clip:()=>Ze,decode_r3d_rgb16:()=>tn,decode_r3d_rgba:()=>en,decode_r3d_rgba_clip:()=>nn,decode_tga_rgba:()=>rn,decode_tiff_preview:()=>_n,decode_tiff_rgba:()=>on,decode_vc3_band_rgba:()=>an,decode_vc3_luma:()=>dn,decode_vc3_mxf:()=>cn,decode_vc3_preview:()=>sn,decode_vc3_rgba:()=>pn,decode_webp_rgba:()=>gn,decode_xocn_index_luma:()=>un,decode_xocn_luma:()=>wn,decode_xocn_mxf:()=>bn,decode_xocn_preview:()=>ln,decode_xocn_preview_rec709:()=>fn,decode_xocn_rgb16:()=>vn,decode_xocn_rgba:()=>xn,default:()=>rt,encode_dci_j2c:()=>In,encode_dci_j2c_rgb:()=>yn,encode_dci_j2c_rgba8:()=>mn,encode_dci_j2c_staged:()=>hn,encode_dci_j2c_staged_modelled:()=>kn,encode_exr:()=>An,encode_prores_4444_alpha_mov_rgba:()=>Mn,encode_prores_4444_alpha_sample_q:()=>En,encode_prores_444_sample_cbr:()=>Tn,encode_prores_444_sample_cbr_rgb16:()=>On,encode_prores_444_sample_cbr_rgb16_lut:()=>Wn,encode_prores_mov_rgba:()=>Fn,encode_prores_rgba:()=>Sn,encode_prores_sample_cbr:()=>Rn,encode_prores_sample_cbr_rgb16:()=>Ln,encode_prores_sample_cbr_rgb16_lut:()=>jn,encode_prores_sample_q:()=>zn,exr_sequence_filename:()=>Dn,fit_sizing:()=>Un,initSync:()=>g_,inspect_arw:()=>Pn,inspect_cr2:()=>Bn,inspect_cr3:()=>Cn,inspect_dng:()=>qn,inspect_dpx:()=>Nn,inspect_exr:()=>Hn,inspect_isobmff:()=>Gn,inspect_tiff:()=>Vn,inspect_wav:()=>Kn,is_arriraw12_mxf:()=>Xn,is_arriraw_mxf:()=>Yn,is_crm:()=>$n,is_prores_mxf:()=>Jn,is_vc3_mxf:()=>Qn,is_xavc_mxf:()=>Zn,is_xocn_mxf:()=>tr,list_isobmff_segments:()=>er,list_mxf_segments:()=>nr,list_r3d_frames:()=>rr,list_r3d_segments:()=>_r,list_wav_segments:()=>or,mux_prores_4444_alpha_samples:()=>ir,mux_prores_samples:()=>ar,mux_prores_samples_full:()=>dr,mxf_au_run:()=>cr,mxf_frame_index:()=>sr,mxf_gop_map:()=>pr,mxf_h264_kind:()=>gr,plan_isobmff_trim:()=>ur,plan_isobmff_trim_reader:()=>wr,plan_mxf_compact_trim:()=>br,plan_mxf_trim:()=>lr,plan_r3d_compact:()=>fr,plan_wav_trim:()=>vr,plan_wav_trim_reader:()=>xr,prepare_isobmff:()=>Ir,prepare_mxf:()=>yr,prepare_r3d:()=>mr,prepare_wav:()=>hr,probe_mov:()=>kr,probe_mxf:()=>Ar,probe_r3d:()=>Mr,prores_band_info:()=>Er,prores_raw_container_color:()=>Tr,prores_reset_rate_control:()=>Or,r3d_gpu_develop_params:()=>Wr,r3d_index_ranges:()=>Fr,r3d_is_helium:()=>Sr,read_arriraw_fcs:()=>Rr,read_arriraw_unit_correction:()=>Lr,recover_reframe:()=>jr,resample_rgba16:()=>zr,resample_rgba8:()=>Dr,reset_dci_rate_state:()=>Ur,resize_luma_area:()=>Pr,rgba8_to_xyz12:()=>Br,shot_crop:()=>Cr,shot_ramp:()=>qr,shot_scan:()=>Nr,trim_r3d:()=>Hr,vc3_band_info:()=>Gr,video_close:()=>Vr,video_decode:()=>Kr,video_frame_index_isobmff_reader:()=>Xr,video_open:()=>Yr,xavc_au:()=>$r,xavc_frame_count:()=>Jr,xocn_frame_count:()=>Qr,xocn_index_prefix_len:()=>Zr,xocn_preview_prefix_len:()=>t_});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,i,a){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=y(a,t.__wbindgen_export4,t.__wbindgen_export5),w=p;t.exrbench_new(s,e,n,i,g,w);var d=r().getInt32(s+0,!0),_=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0);if(c)throw u(_);return this.__wbg_ptr=d,wt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}piz_stage_block(e){try{let d=t.__wbindgen_add_to_stack_pointer(-16);t.exrbench_piz_stage_block(d,this.__wbg_ptr,e);var n=r().getFloat64(d+0,!0),i=r().getInt32(d+8,!0),a=r().getInt32(d+12,!0);if(a)throw u(i);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 d=t.__wbindgen_add_to_stack_pointer(-16);t.exrbench_zip_stage_block(d,this.__wbg_ptr,e);var n=r().getFloat64(d+0,!0),i=r().getInt32(d+8,!0),a=r().getInt32(d+12,!0);if(a)throw u(i);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 _=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_finish(_,this.__wbg_ptr);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}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=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}n_blocks(){return t.exrstreamencoder_n_blocks(this.__wbg_ptr)>>>0}constructor(e,n,i,a,d,_,c,s,g,w){try{let I=t.__wbindgen_add_to_stack_pointer(-16),h=y(i,t.__wbindgen_export4,t.__wbindgen_export5),k=p,M=y(a,t.__wbindgen_export4,t.__wbindgen_export5),O=p,W=y(d,t.__wbindgen_export4,t.__wbindgen_export5),T=p,S=y(_,t.__wbindgen_export4,t.__wbindgen_export5),L=p,j=y(s,t.__wbindgen_export4,t.__wbindgen_export5),D=p;t.exrstreamencoder_new(I,e,n,h,k,M,O,W,T,S,L,c,j,D,g,w);var b=r().getInt32(I+0,!0),v=r().getInt32(I+4,!0),m=r().getInt32(I+8,!0);if(m)throw u(v);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 c=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_push_block(c,this.__wbg_ptr,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}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,i,a){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=y(i,t.__wbindgen_export4,t.__wbindgen_export5),w=p;t.proresbench_new(s,e,n,g,w,a);var d=r().getInt32(s+0,!0),_=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0);if(c)throw u(_);return this.__wbg_ptr=d,lt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}stage(e){try{let d=t.__wbindgen_add_to_stack_pointer(-16);t.proresbench_stage(d,this.__wbg_ptr,e);var n=r().getFloat64(d+0,!0),i=r().getInt32(d+8,!0),a=r().getInt32(d+12,!0);if(a)throw u(i);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),d=l(e,t.__wbindgen_export4),_=p;t.proresmovencoder_add_frame_rgba(a,this.__wbg_ptr,d,_);var n=r().getInt32(a+0,!0),i=r().getInt32(a+4,!0);if(i)throw u(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=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}frame_count(){return t.proresmovencoder_frame_count(this.__wbg_ptr)>>>0}constructor(e,n,i,a){let d=t.proresmovencoder_new(e,n,i,a);return this.__wbg_ptr=d,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,vt.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=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}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=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}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=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}mdat_box_offset(){return t.proresmovwriter_mdat_box_offset(this.__wbg_ptr)}constructor(e,n,i,a){let d=t.proresmovwriter_new(e,n,i,a);return this.__wbg_ptr=d,vt.register(this,this.__wbg_ptr,this),this}push_frame(){try{let _=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_push_frame(_,this.__wbg_ptr);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_sample(e){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(e,t.__wbindgen_export4),_=p;t.proresmovwriter_push_sample(a,this.__wbg_ptr,d,_);var n=r().getInt32(a+0,!0),i=r().getInt32(a+4,!0);if(i)throw u(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=r().getInt32(a+0,!0),i=r().getInt32(a+4,!0);if(i)throw u(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=y(e,t.__wbindgen_export4,t.__wbindgen_export5),i=p;t.proresmovwriter_set_profile(this.__wbg_ptr,n,i)}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(o){let e,n;try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.arriraw12_clip_info(d,_,c);var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);return e=i,n=a,E(i,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Wt(o,e,n,i){var a=P(i)?0:y(i,t.__wbindgen_export4,t.__wbindgen_export5),d=p;let _=t.arriraw_mxf_gpu_frame(x(o),e,n,a,d);return u(_)}function Ft(o,e,n){let i=t.audio_aac_au(x(o),e,n);return u(i)}function St(o,e){let n=t.audio_aac_config(x(o),e);return u(n)}function Rt(o,e){let n=t.audio_info(x(o),e);return u(n)}function Lt(o){let e=ot(o,t.__wbindgen_export4),n=p;return t.bench_f32_boundary(e,n)}function jt(o,e,n,i){let a=ot(o,t.__wbindgen_export4),d=p;return t.bench_piz_no_huffman(a,d,e,n,i)}function zt(o,e){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=y(o,t.__wbindgen_export4,t.__wbindgen_export5),s=p;var n=ot(e,t.__wbindgen_export4),i=p;t.color_cst(_,c,s,n,i,x(e));var a=r().getInt32(_+0,!0),d=r().getInt32(_+4,!0);if(d)throw u(a)}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Dt(o,e,n){let i=F(o,t.__wbindgen_export4),a=p;return t.dci_code_full_depth(i,a,e,n)}function Ut(o,e,n){return t.dci_frame_cap(o,e,n)>>>0}function Pt(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p,w=y(e,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.dci_gpu_colour_patch(c,s,g,w,b);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=gt(n,i).slice();return t.__wbindgen_export3(n,i*2,2),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Bt(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=y(o,t.__wbindgen_export4,t.__wbindgen_export5),s=p;t.dci_gpu_colour_tables(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ct(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.dci_last_pass_caps(i);var o=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),n=nt(o,e).slice();return t.__wbindgen_export3(o,e*4,4),n}finally{t.__wbindgen_add_to_stack_pointer(16)}}function qt(o,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16);t.dci_legal_rates(d,o,e);var n=r().getInt32(d+0,!0),i=r().getInt32(d+4,!0),a=nt(n,i).slice();return t.__wbindgen_export3(n,i*4,4),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Nt(o){return t.dci_mq_bench(o)>>>0}function Ht(o,e,n,i,a,d,_,c,s,g,w){try{let k=t.__wbindgen_add_to_stack_pointer(-16),M=R(o,t.__wbindgen_export4),O=p,W=l(e,t.__wbindgen_export4),T=p,S=R(n,t.__wbindgen_export4),L=p,j=R(i,t.__wbindgen_export4),D=p,C=R(a,t.__wbindgen_export4),q=p,it=R(d,t.__wbindgen_export4),at=p,dt=R(_,t.__wbindgen_export4),ct=p,Mt=R(c,t.__wbindgen_export4),Et=p;t.dci_pack_tier1(k,M,O,W,T,S,L,j,D,C,q,it,at,dt,ct,Mt,Et,s,g,w);var b=r().getInt32(k+0,!0),v=r().getInt32(k+4,!0),m=r().getInt32(k+8,!0),I=r().getInt32(k+12,!0);if(I)throw u(m);var h=f(b,v).slice();return t.__wbindgen_export3(b,v*1,1),h}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Gt(o,e){let n=t.dci_stage_rgba8(o,e);return u(n)}function Vt(o,e,n){let i=F(o,t.__wbindgen_export4),a=p;return t.dci_transform_only(i,a,e,n)}function Kt(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p,w=l(e,t.__wbindgen_export4),b=p;t.decode_arriraw12_luma(c,s,g,w,b);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Xt(o,e,n,i){let a=y(i,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=t.decode_arriraw12_mxf(x(o),e,n,a,d);return u(_)}function Yt(o,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(o,t.__wbindgen_export4),w=p,b=l(e,t.__wbindgen_export4),v=p;t.decode_arriraw12_preview(s,g,w,b,v,n);var i=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0),_=r().getInt32(s+12,!0);if(_)throw u(d);var c=f(i,a).slice();return t.__wbindgen_export3(i,a*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $t(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p,w=l(e,t.__wbindgen_export4),b=p;t.decode_arriraw12_rgba(c,s,g,w,b);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Jt(o,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(o,t.__wbindgen_export4),w=p;t.decode_arriraw_luma(s,g,w,e,n);var i=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0),_=r().getInt32(s+12,!0);if(_)throw u(d);var c=f(i,a).slice();return t.__wbindgen_export3(i,a*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Qt(o,e,n,i){let a=y(i,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=t.decode_arriraw_mxf(x(o),e,n,a,d);return u(_)}function Zt(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.decode_arriraw_preview(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function te(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.decode_arriraw_preview_gray(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ee(o,e,n,i,a,d,_,c,s){try{let k=t.__wbindgen_add_to_stack_pointer(-16),M=l(o,t.__wbindgen_export4),O=p;var g=P(s)?0:Y(s,t.__wbindgen_export4),w=p;t.decode_arriraw_preview_meta(k,M,O,e,n,i,a,d,_,c,g,w);var b=r().getInt32(k+0,!0),v=r().getInt32(k+4,!0),m=r().getInt32(k+8,!0),I=r().getInt32(k+12,!0);if(I)throw u(m);var h=f(b,v).slice();return t.__wbindgen_export3(b,v*1,1),h}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ne(o,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(o,t.__wbindgen_export4),w=p;t.decode_arriraw_rgba(s,g,w,e,n);var i=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0),_=r().getInt32(s+12,!0);if(_)throw u(d);var c=f(i,a).slice();return t.__wbindgen_export3(i,a*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function re(o,e,n,i,a,d,_,c){try{let h=t.__wbindgen_add_to_stack_pointer(-16),k=l(o,t.__wbindgen_export4),M=p;var s=P(c)?0:Y(c,t.__wbindgen_export4),g=p;t.decode_arriraw_rgba_meta(h,k,M,e,n,i,a,d,_,s,g);var w=r().getInt32(h+0,!0),b=r().getInt32(h+4,!0),v=r().getInt32(h+8,!0),m=r().getInt32(h+12,!0);if(m)throw u(v);var I=f(w,b).slice();return t.__wbindgen_export3(w,b*1,1),I}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _e(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_arw_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function oe(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_arw_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ie(o,e,n,i){let a=t.decode_audio_pcm(x(o),e,n,i);return u(a)}function ae(o,e,n,i,a){let d=t.decode_audio_track_pcm(x(o),e,n,i,a);return u(d)}function de(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_bmp_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ce(o){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(o,t.__wbindgen_export4),_=p;t.decode_braw_gen5log(a,d,_);var e=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function se(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_braw_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pe(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_braw_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ge(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_braw_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ue(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_cr2_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function we(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_cr2_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function be(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_cr3_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function le(o,e,n,i){let a=y(i,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=t.decode_crm(x(o),e,n,a,d);return u(_)}function fe(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_dng_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ve(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_dng_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function xe(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_dpx_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ie(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_dpx_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ye(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_dv_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function me(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_dv_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function he(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_dv_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ke(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_exr_linear(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ae(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_exr_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Me(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_exr_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ee(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_gif_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Te(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_heic_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Oe(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_j2k_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function We(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_j2k_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Fe(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_j2k_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Se(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_jpeg_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Re(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_mpeg2_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Le(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_mpeg2_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function je(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_mpeg2_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ze(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_png_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function De(o,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(o,t.__wbindgen_export4),w=p;t.decode_prores_band_rgba(s,g,w,e,n);var i=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0),_=r().getInt32(s+12,!0);if(_)throw u(d);var c=f(i,a).slice();return t.__wbindgen_export3(i,a*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ue(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_prores_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Pe(o,e,n,i){let a=y(i,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=t.decode_prores_mxf(x(o),e,n,a,d);return u(_)}function Be(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_prores_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ce(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_prores_raw_acescct(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function qe(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_prores_raw_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ne(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_prores_raw_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function He(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_prores_raw_rec2020(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ge(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_prores_raw_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ve(o,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(o,t.__wbindgen_export4),w=p,b=y(e,t.__wbindgen_export4,t.__wbindgen_export5),v=p,m=l(n,t.__wbindgen_export4),I=p;t.decode_prores_raw_tier(s,g,w,b,v,m,I);var i=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0),_=r().getInt32(s+12,!0);if(_)throw u(d);var c=f(i,a).slice();return t.__wbindgen_export3(i,a*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ke(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_prores_rgb16(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Xe(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_prores_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ye(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_prores_thumb_dc32(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $e(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_psd_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Je(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_r3d_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Qe(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_r3d_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ze(o,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(o,t.__wbindgen_export4),w=p,b=l(e,t.__wbindgen_export4),v=p;t.decode_r3d_preview_clip(s,g,w,b,v,n);var i=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0),_=r().getInt32(s+12,!0);if(_)throw u(d);var c=f(i,a).slice();return t.__wbindgen_export3(i,a*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function tn(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_r3d_rgb16(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function en(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_r3d_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function nn(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p,w=l(e,t.__wbindgen_export4),b=p;t.decode_r3d_rgba_clip(c,s,g,w,b);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function rn(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_tga_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _n(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_tiff_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function on(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_tiff_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function an(o,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(o,t.__wbindgen_export4),w=p;t.decode_vc3_band_rgba(s,g,w,e,n);var i=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0),_=r().getInt32(s+12,!0);if(_)throw u(d);var c=f(i,a).slice();return t.__wbindgen_export3(i,a*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function dn(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_vc3_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function cn(o,e,n,i){let a=y(i,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=t.decode_vc3_mxf(x(o),e,n,a,d);return u(_)}function sn(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_vc3_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pn(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_vc3_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function gn(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_webp_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function un(o){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(o,t.__wbindgen_export4),_=p;t.decode_xocn_index_luma(a,d,_);var e=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function wn(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_xocn_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function bn(o,e,n,i){let a=y(i,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=t.decode_xocn_mxf(x(o),e,n,a,d);return u(_)}function ln(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_xocn_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function fn(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_xocn_preview_rec709(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function vn(o){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(o,t.__wbindgen_export4),_=p;t.decode_xocn_rgb16(a,d,_);var e=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function xn(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_xocn_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function In(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=F(o,t.__wbindgen_export4),b=p;t.encode_dci_j2c(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function yn(o,e,n,i,a,d){try{let b=t.__wbindgen_add_to_stack_pointer(-16),v=F(o,t.__wbindgen_export4),m=p,I=y(n,t.__wbindgen_export4,t.__wbindgen_export5),h=p;t.encode_dci_j2c_rgb(b,v,m,e,I,h,i,a,d);var _=r().getInt32(b+0,!0),c=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=f(_,c).slice();return t.__wbindgen_export3(_,c*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function mn(o,e,n,i,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(o,t.__wbindgen_export4),v=p,m=y(e,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.encode_dci_j2c_rgba8(w,b,v,m,I,n,i,a);var d=r().getInt32(w+0,!0),_=r().getInt32(w+4,!0),c=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(c);var g=f(d,_).slice();return t.__wbindgen_export3(d,_*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function hn(o,e,n,i,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=y(i,t.__wbindgen_export4,t.__wbindgen_export5),v=p;t.encode_dci_j2c_staged(w,o,e,n,b,v,a);var d=r().getInt32(w+0,!0),_=r().getInt32(w+4,!0),c=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(c);var g=f(d,_).slice();return t.__wbindgen_export3(d,_*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function kn(o,e,n,i,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=y(i,t.__wbindgen_export4,t.__wbindgen_export5),v=p;t.encode_dci_j2c_staged_modelled(w,o,e,n,b,v,a);var d=r().getInt32(w+0,!0),_=r().getInt32(w+4,!0),c=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(c);var g=f(d,_).slice();return t.__wbindgen_export3(d,_*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function An(o,e,n,i,a,d,_,c,s,g,w,b,v,m,I){try{let T=t.__wbindgen_add_to_stack_pointer(-16),S=ot(o,t.__wbindgen_export4),L=p,j=y(a,t.__wbindgen_export4,t.__wbindgen_export5),D=p,C=y(d,t.__wbindgen_export4,t.__wbindgen_export5),q=p,it=y(_,t.__wbindgen_export4,t.__wbindgen_export5),at=p,dt=y(v,t.__wbindgen_export4,t.__wbindgen_export5),ct=p;t.encode_exr(T,S,L,e,n,i,j,D,C,q,it,at,c,s,g,w,b,dt,ct,m,I);var h=r().getInt32(T+0,!0),k=r().getInt32(T+4,!0),M=r().getInt32(T+8,!0),O=r().getInt32(T+12,!0);if(O)throw u(M);var W=f(h,k).slice();return t.__wbindgen_export3(h,k*1,1),W}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Mn(o,e,n,i,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(o,t.__wbindgen_export4),v=p;t.encode_prores_4444_alpha_mov_rgba(w,b,v,e,n,i,a);var d=r().getInt32(w+0,!0),_=r().getInt32(w+4,!0),c=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(c);var g=f(d,_).slice();return t.__wbindgen_export3(d,_*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function En(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.encode_prores_4444_alpha_sample_q(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Tn(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function On(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=F(o,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr_rgb16(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Wn(o,e,n,i,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=F(o,t.__wbindgen_export4),v=p,m=F(a,t.__wbindgen_export4),I=p;t.encode_prores_444_sample_cbr_rgb16_lut(w,b,v,e,n,i,m,I);var d=r().getInt32(w+0,!0),_=r().getInt32(w+4,!0),c=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(c);var g=f(d,_).slice();return t.__wbindgen_export3(d,_*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Fn(o,e,n,i,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(o,t.__wbindgen_export4),v=p;t.encode_prores_mov_rgba(w,b,v,e,n,i,a);var d=r().getInt32(w+0,!0),_=r().getInt32(w+4,!0),c=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(c);var g=f(d,_).slice();return t.__wbindgen_export3(d,_*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Sn(o,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(o,t.__wbindgen_export4),w=p;t.encode_prores_rgba(s,g,w,e,n);var i=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0),_=r().getInt32(s+12,!0);if(_)throw u(d);var c=f(i,a).slice();return t.__wbindgen_export3(i,a*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Rn(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ln(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=F(o,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr_rgb16(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function jn(o,e,n,i,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=F(o,t.__wbindgen_export4),v=p,m=F(a,t.__wbindgen_export4),I=p;t.encode_prores_sample_cbr_rgb16_lut(w,b,v,e,n,i,m,I);var d=r().getInt32(w+0,!0),_=r().getInt32(w+4,!0),c=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(c);var g=f(d,_).slice();return t.__wbindgen_export3(d,_*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function zn(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.encode_prores_sample_q(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Dn(o,e,n,i){let a,d;try{let v=t.__wbindgen_add_to_stack_pointer(-16),m=y(o,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.exr_sequence_filename(v,m,I,e,n,i);var _=r().getInt32(v+0,!0),c=r().getInt32(v+4,!0),s=r().getInt32(v+8,!0),g=r().getInt32(v+12,!0),w=_,b=c;if(g)throw w=0,b=0,u(s);return a=w,d=b,E(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,d,1)}}function Un(o,e,n,i,a,d,_,c){let s,g;try{let k=t.__wbindgen_add_to_stack_pointer(-16),M=l(o,t.__wbindgen_export4),O=p,W=l(i,t.__wbindgen_export4),T=p,S=y(c,t.__wbindgen_export4,t.__wbindgen_export5),L=p;t.fit_sizing(k,M,O,e,n,W,T,a,d,_,S,L);var w=r().getInt32(k+0,!0),b=r().getInt32(k+4,!0),v=r().getInt32(k+8,!0),m=r().getInt32(k+12,!0),I=w,h=b;if(m)throw I=0,h=0,u(v);return s=I,g=h,E(I,h)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(s,g,1)}}function Pn(o){let e,n;try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.inspect_arw(d,_,c);var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);return e=i,n=a,E(i,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Bn(o){let e,n;try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.inspect_cr2(d,_,c);var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);return e=i,n=a,E(i,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Cn(o){let e,n;try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.inspect_cr3(d,_,c);var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);return e=i,n=a,E(i,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function qn(o){let e,n;try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.inspect_dng(d,_,c);var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);return e=i,n=a,E(i,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Nn(o){let e,n;try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.inspect_dpx(d,_,c);var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);return e=i,n=a,E(i,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Hn(o){let e,n;try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.inspect_exr(d,_,c);var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);return e=i,n=a,E(i,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Gn(o,e,n){let i=y(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,d=t.inspect_isobmff(x(o),e,i,a);return u(d)}function Vn(o){let e,n;try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.inspect_tiff(d,_,c);var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);return e=i,n=a,E(i,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Kn(o,e){let n=t.inspect_wav(x(o),e);return u(n)}function Xn(o,e){let n=t.is_arriraw12_mxf(x(o),e);return u(n)}function Yn(o,e){let n=t.is_arriraw_mxf(x(o),e);return u(n)}function $n(o,e){let n=t.is_crm(x(o),e);return u(n)}function Jn(o,e){let n=t.is_prores_mxf(x(o),e);return u(n)}function Qn(o,e){let n=t.is_vc3_mxf(x(o),e);return u(n)}function Zn(o,e){let n=t.is_xavc_mxf(x(o),e);return u(n)}function tr(o,e){let n=t.is_xocn_mxf(x(o),e);return u(n)}function er(o,e,n){let i=y(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,d=t.list_isobmff_segments(x(o),e,i,a);return u(d)}function nr(o,e){let n=t.list_mxf_segments(x(o),e);return u(n)}function rr(o,e){let n=y(e,t.__wbindgen_export4,t.__wbindgen_export5),i=p,a=t.list_r3d_frames(x(o),n,i);return u(a)}function _r(o,e){let n=y(e,t.__wbindgen_export4,t.__wbindgen_export5),i=p,a=t.list_r3d_segments(x(o),n,i);return u(a)}function or(o,e){let n=t.list_wav_segments(x(o),e);return u(n)}function ir(o,e,n,i,a,d){try{let b=t.__wbindgen_add_to_stack_pointer(-16),v=l(o,t.__wbindgen_export4),m=p,I=R(e,t.__wbindgen_export4),h=p;t.mux_prores_4444_alpha_samples(b,v,m,I,h,n,i,a,d);var _=r().getInt32(b+0,!0),c=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=f(_,c).slice();return t.__wbindgen_export3(_,c*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ar(o,e,n,i,a,d){try{let b=t.__wbindgen_add_to_stack_pointer(-16),v=l(o,t.__wbindgen_export4),m=p,I=R(e,t.__wbindgen_export4),h=p;t.mux_prores_samples(b,v,m,I,h,n,i,a,d);var _=r().getInt32(b+0,!0),c=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=f(_,c).slice();return t.__wbindgen_export3(_,c*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function dr(o,e,n,i,a,d,_,c,s,g,w,b){try{let M=t.__wbindgen_add_to_stack_pointer(-16),O=l(o,t.__wbindgen_export4),W=p,T=R(e,t.__wbindgen_export4),S=p,L=y(_,t.__wbindgen_export4,t.__wbindgen_export5),j=p;t.mux_prores_samples_full(M,O,W,T,S,n,i,a,d,L,j,c,s,g,w,b);var v=r().getInt32(M+0,!0),m=r().getInt32(M+4,!0),I=r().getInt32(M+8,!0),h=r().getInt32(M+12,!0);if(h)throw u(I);var k=f(v,m).slice();return t.__wbindgen_export3(v,m*1,1),k}finally{t.__wbindgen_add_to_stack_pointer(16)}}function cr(o,e,n,i){let a=t.mxf_au_run(x(o),e,n,i);return u(a)}function sr(o,e){let n=t.mxf_frame_index(x(o),e);return u(n)}function pr(o,e){let n=t.mxf_gop_map(x(o),e);return u(n)}function gr(o,e){let n=t.mxf_h264_kind(x(o),e);return u(n)}function ur(o,e){let n,i;try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(o,t.__wbindgen_export4),v=p,m=y(e,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.plan_isobmff_trim(w,b,v,m,I);var a=r().getInt32(w+0,!0),d=r().getInt32(w+4,!0),_=r().getInt32(w+8,!0),c=r().getInt32(w+12,!0),s=a,g=d;if(c)throw s=0,g=0,u(_);return n=s,i=g,E(s,g)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,i,1)}}function wr(o,e,n,i,a){let d=y(a,t.__wbindgen_export4,t.__wbindgen_export5),_=p,c=t.plan_isobmff_trim_reader(x(o),e,n,i,d,_);return u(c)}function br(o){let e,n;try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=y(o,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.plan_mxf_compact_trim(g,w,b);var i=r().getInt32(g+0,!0),a=r().getInt32(g+4,!0),d=r().getInt32(g+8,!0),_=r().getInt32(g+12,!0),c=i,s=a;if(_)throw c=0,s=0,u(d);return e=c,n=s,E(c,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function lr(o,e,n,i){let a=t.plan_mxf_trim(x(o),e,n,i);return u(a)}function fr(o,e,n,i,a,d,_,c){let s,g;try{let v=t.__wbindgen_add_to_stack_pointer(-16),m=l(o,t.__wbindgen_export4),I=p,h=l(e,t.__wbindgen_export4),k=p,M=l(n,t.__wbindgen_export4),O=p,W=l(i,t.__wbindgen_export4),T=p,S=Y(a,t.__wbindgen_export4),L=p,j=Y(d,t.__wbindgen_export4),D=p,C=Y(_,t.__wbindgen_export4),q=p;t.plan_r3d_compact(v,m,I,h,k,M,O,W,T,S,L,j,D,C,q,c);var w=r().getInt32(v+0,!0),b=r().getInt32(v+4,!0);return s=w,g=b,E(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(s,g,1)}}function vr(o,e,n,i){let a,d;try{let v=t.__wbindgen_add_to_stack_pointer(-16),m=l(o,t.__wbindgen_export4),I=p;t.plan_wav_trim(v,m,I,e,n,i);var _=r().getInt32(v+0,!0),c=r().getInt32(v+4,!0),s=r().getInt32(v+8,!0),g=r().getInt32(v+12,!0),w=_,b=c;if(g)throw w=0,b=0,u(s);return a=w,d=b,E(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,d,1)}}function xr(o,e,n,i,a){let d=t.plan_wav_trim_reader(x(o),e,n,i,a);return u(d)}function Ir(o,e,n,i){let a=y(n,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=y(i,t.__wbindgen_export4,t.__wbindgen_export5),c=p,s=t.prepare_isobmff(x(o),e,a,d,_,c);return u(s)}function yr(o,e,n){let i=y(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,d=t.prepare_mxf(x(o),e,i,a);return u(d)}function mr(o,e,n){let i=y(e,t.__wbindgen_export4,t.__wbindgen_export5),a=p,d=y(n,t.__wbindgen_export4,t.__wbindgen_export5),_=p,c=t.prepare_r3d(x(o),i,a,d,_);return u(c)}function hr(o,e,n,i){let a=y(n,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=t.prepare_wav(x(o),e,a,d,i);return u(_)}function kr(o){let e,n;try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.probe_mov(g,w,b);var i=r().getInt32(g+0,!0),a=r().getInt32(g+4,!0),d=r().getInt32(g+8,!0),_=r().getInt32(g+12,!0),c=i,s=a;if(_)throw c=0,s=0,u(d);return e=c,n=s,E(c,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Ar(o,e){let n=t.probe_mxf(x(o),e);return u(n)}function Mr(o,e){let n=y(e,t.__wbindgen_export4,t.__wbindgen_export5),i=p,a=t.probe_r3d(x(o),n,i);return u(a)}function Er(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.prores_band_info(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=nt(e,n).slice();return t.__wbindgen_export3(e,n*4,4),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Tr(o){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(o,t.__wbindgen_export4),_=p;t.prores_raw_container_color(a,d,_);var e=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Or(){t.prores_reset_rate_control()}function Wr(o){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(o,t.__wbindgen_export4),_=p;t.r3d_gpu_develop_params(a,d,_);var e=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Fr(o,e,n){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.r3d_index_ranges(_,c,s,e,n);var i=r().getInt32(_+0,!0),a=r().getInt32(_+4,!0),d=nt(i,a).slice();return t.__wbindgen_export3(i,a*4,4),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Sr(o){let e=l(o,t.__wbindgen_export4),n=p;return t.r3d_is_helium(e,n)!==0}function Rr(o){let e,n;try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.read_arriraw_fcs(g,w,b);var i=r().getInt32(g+0,!0),a=r().getInt32(g+4,!0),d=r().getInt32(g+8,!0),_=r().getInt32(g+12,!0),c=i,s=a;if(_)throw c=0,s=0,u(d);return e=c,n=s,E(c,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Lr(o,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.read_arriraw_unit_correction(d,_,c,e);var n=r().getInt32(d+0,!0),i=r().getInt32(d+4,!0),a=__(n,i).slice();return t.__wbindgen_export3(n,i*8,8),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function jr(o,e,n,i,a,d,_){let c,s;try{let h=t.__wbindgen_add_to_stack_pointer(-16),k=l(o,t.__wbindgen_export4),M=p,O=l(i,t.__wbindgen_export4),W=p,T=y(_,t.__wbindgen_export4,t.__wbindgen_export5),S=p;t.recover_reframe(h,k,M,e,n,O,W,a,d,T,S);var g=r().getInt32(h+0,!0),w=r().getInt32(h+4,!0),b=r().getInt32(h+8,!0),v=r().getInt32(h+12,!0),m=g,I=w;if(v)throw m=0,I=0,u(b);return c=m,s=I,E(m,I)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(c,s,1)}}function zr(o,e,n,i,a,d){try{let b=t.__wbindgen_add_to_stack_pointer(-16),v=F(o,t.__wbindgen_export4),m=p,I=y(d,t.__wbindgen_export4,t.__wbindgen_export5),h=p;t.resample_rgba16(b,v,m,e,n,i,a,I,h);var _=r().getInt32(b+0,!0),c=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=gt(_,c).slice();return t.__wbindgen_export3(_,c*2,2),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Dr(o,e,n,i,a,d){try{let b=t.__wbindgen_add_to_stack_pointer(-16),v=l(o,t.__wbindgen_export4),m=p,I=y(d,t.__wbindgen_export4,t.__wbindgen_export5),h=p;t.resample_rgba8(b,v,m,e,n,i,a,I,h);var _=r().getInt32(b+0,!0),c=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=f(_,c).slice();return t.__wbindgen_export3(_,c*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ur(){t.reset_dci_rate_state()}function Pr(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.resize_luma_area(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Br(o,e,n,i,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(o,t.__wbindgen_export4),v=p,m=y(a,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.rgba8_to_xyz12(w,b,v,e,n,i,m,I);var d=r().getInt32(w+0,!0),_=r().getInt32(w+4,!0),c=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(c);var g=gt(d,_).slice();return t.__wbindgen_export3(d,_*2,2),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Cr(o,e,n,i){let a,d;try{let v=t.__wbindgen_add_to_stack_pointer(-16),m=F(o,t.__wbindgen_export4),I=p,h=l(e,t.__wbindgen_export4),k=p,M=R(n,t.__wbindgen_export4),O=p,W=y(i,t.__wbindgen_export4,t.__wbindgen_export5),T=p;t.shot_crop(v,m,I,h,k,M,O,W,T);var _=r().getInt32(v+0,!0),c=r().getInt32(v+4,!0),s=r().getInt32(v+8,!0),g=r().getInt32(v+12,!0),w=_,b=c;if(g)throw w=0,b=0,u(s);return a=w,d=b,E(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,d,1)}}function qr(o,e,n){let i,a;try{let b=t.__wbindgen_add_to_stack_pointer(-16),v=F(o,t.__wbindgen_export4),m=p,I=l(e,t.__wbindgen_export4),h=p,k=y(n,t.__wbindgen_export4,t.__wbindgen_export5),M=p;t.shot_ramp(b,v,m,I,h,k,M);var d=r().getInt32(b+0,!0),_=r().getInt32(b+4,!0),c=r().getInt32(b+8,!0),s=r().getInt32(b+12,!0),g=d,w=_;if(s)throw g=0,w=0,u(c);return i=g,a=w,E(g,w)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(i,a,1)}}function Nr(o,e,n,i){let a,d;try{let v=t.__wbindgen_add_to_stack_pointer(-16),m=F(o,t.__wbindgen_export4),I=p,h=l(e,t.__wbindgen_export4),k=p,M=R(n,t.__wbindgen_export4),O=p,W=y(i,t.__wbindgen_export4,t.__wbindgen_export5),T=p;t.shot_scan(v,m,I,h,k,M,O,W,T);var _=r().getInt32(v+0,!0),c=r().getInt32(v+4,!0),s=r().getInt32(v+8,!0),g=r().getInt32(v+12,!0),w=_,b=c;if(g)throw w=0,b=0,u(s);return a=w,d=b,E(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,d,1)}}function Hr(o,e,n,i){let a=y(e,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=y(n,t.__wbindgen_export4,t.__wbindgen_export5),c=p,s=y(i,t.__wbindgen_export4,t.__wbindgen_export5),g=p,w=t.trim_r3d(x(o),a,d,_,c,s,g);return u(w)}function Gr(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.vc3_band_info(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=nt(e,n).slice();return t.__wbindgen_export3(e,n*4,4),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Vr(o){t.video_close(o)}function Kr(o,e,n,i){let a=t.video_decode(o,e,n,i);return u(a)}function Xr(o,e,n){let i=y(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,d=t.video_frame_index_isobmff_reader(x(o),e,i,a);return u(d)}function Yr(o,e){let n=t.video_open(x(o),e);return u(n)}function $r(o,e,n){let i=t.xavc_au(x(o),e,n);return u(i)}function Jr(o,e){let n=t.xavc_frame_count(x(o),e);return u(n)}function Qr(o,e){let n=t.xocn_frame_count(x(o),e);return u(n)}function Zr(o){let e=l(o,t.__wbindgen_export4),n=p;return t.xocn_index_prefix_len(e,n)>>>0}function t_(o){let e=l(o,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_copy_to_typed_array_c5728021fabd0236:function(e,n,i){new Uint8Array(A(i).buffer,A(i).byteOffset,A(i).byteLength).set(f(e,n))},__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(E(e,n))},__wbg__wbg_cb_unref_33c39e13d73b25f6:function(e){A(e)._wbg_cb_unref()},__wbg_call_0e855b388e315e17:function(){return st(function(e,n,i,a){let d=A(e).call(A(n),A(i),A(a));return x(d)},arguments)},__wbg_call_5575218572ead796:function(){return st(function(e,n,i){let a=A(e).call(A(n),A(i));return x(a)},arguments)},__wbg_call_dd0f909cbc9405d0:function(){return st(function(e,n,i,a,d){let _=A(e).call(A(n),A(i),A(a),A(d));return x(_)},arguments)},__wbg_length_589238bdcf171f0e:function(e){return A(e).length},__wbg_new_81880fb5002cb255:function(e){let n=new Uint8Array(A(e));return x(n)},__wbg_new_typed_00a409eb4ec4f2d9:function(e,n){try{var i={a:e,b:n},a=(_,c)=>{let s=i.a;i.a=0;try{return n_(s,i.b,_,c)}finally{i.a=s}};let d=new Promise(a);return x(d)}finally{i.a=0}},__wbg_prototypesetcall_d721637c7ca66eb8:function(e,n,i){Uint8Array.prototype.set.call(f(e,n),A(i))},__wbg_queueMicrotask_1c9b3800e321a967:function(e){let n=A(e).queueMicrotask;return x(n)},__wbg_queueMicrotask_311744e534a929a3:function(e){queueMicrotask(A(e))},__wbg_resolve_d82363d90af6928a:function(e){let n=Promise.resolve(A(e));return x(n)},__wbg_static_accessor_GLOBAL_THIS_2fee5048bcca5938:function(){let e=typeof globalThis>"u"?null:globalThis;return P(e)?0:x(e)},__wbg_static_accessor_GLOBAL_ce44e66a4935da8c:function(){let e=typeof global>"u"?null:global;return P(e)?0:x(e)},__wbg_static_accessor_SELF_44f6e0cb5e67cdad:function(){let e=typeof self>"u"?null:self;return P(e)?0:x(e)},__wbg_static_accessor_WINDOW_168f178805d978fe:function(){let e=typeof window>"u"?null:window;return P(e)?0:x(e)},__wbg_then_05edfc8a4fea5106:function(e,n,i){let a=A(e).then(A(n),A(i));return x(a)},__wbg_then_591b6b3a75ee817a:function(e,n){let i=A(e).then(A(n));return x(i)},__wbindgen_cast_0000000000000001:function(e,n){let i=i_(e,n,e_);return x(i)},__wbindgen_cast_0000000000000002:function(e){return x(e)},__wbindgen_cast_0000000000000003:function(e,n){let i=f(e,n);return x(i)},__wbindgen_cast_0000000000000004:function(e,n){let i=E(e,n);return x(i)},__wbindgen_cast_0000000000000005:function(e,n){var i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),x(i)},__wbindgen_object_clone_ref:function(e){let n=A(e);return x(n)},__wbindgen_object_drop_ref:function(e){u(e)}}}}function e_(o,e,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16);t.__wasm_bindgen_func_elem_3171(d,o,e,x(n));var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);if(a)throw u(i)}finally{t.__wbindgen_add_to_stack_pointer(16)}}function n_(o,e,n,i){t.__wasm_bindgen_func_elem_3186(o,e,x(n),x(i))}var wt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(o=>t.__wbg_exrbench_free(o,1)),bt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(o=>t.__wbg_exrstreamencoder_free(o,1)),lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(o=>t.__wbg_proresbench_free(o,1)),ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(o=>t.__wbg_proresmovencoder_free(o,1)),vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(o=>t.__wbg_proresmovwriter_free(o,1));function x(o){X===z.length&&z.push(z.length+1);let e=X;return X=z[e],z[e]=o,e}var xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(o=>t.__wbindgen_export2(o.a,o.b));function r_(o){o<1028||(z[o]=X,X=o)}function __(o,e){return o=o>>>0,yt().subarray(o/8,o/8+e)}function gt(o,e){return o=o>>>0,mt().subarray(o/2,o/2+e)}function nt(o,e){return o=o>>>0,ht().subarray(o/4,o/4+e)}function f(o,e){return o=o>>>0,B().subarray(o/1,o/1+e)}var U=null;function r(){return(U===null||U.buffer.detached===!0||U.buffer.detached===void 0&&U.buffer!==t.memory.buffer)&&(U=new DataView(t.memory.buffer)),U}var N=null;function o_(){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 E(o,e){return d_(o>>>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 B(){return(K===null||K.byteLength===0)&&(K=new Uint8Array(t.memory.buffer)),K}function A(o){return z[o]}function st(o,e){try{return o.apply(this,e)}catch(n){t.__wbindgen_export(x(n))}}var z=new Array(1024).fill(void 0);z.push(void 0,null,!0,!1);var X=z.length;function P(o){return o==null}function i_(o,e,n){let i={a:o,b:e,cnt:1},a=(...d)=>{i.cnt++;let _=i.a;i.a=0;try{return n(_,i.b,...d)}finally{i.a=_,a._wbg_cb_unref()}};return a._wbg_cb_unref=()=>{--i.cnt===0&&(t.__wbindgen_export2(i.a,i.b),i.a=0,xt.unregister(i))},xt.register(a,i,i),a}function F(o,e){let n=e(o.length*2,2)>>>0;return mt().set(o,n/2),p=o.length,n}function R(o,e){let n=e(o.length*4,4)>>>0;return ht().set(o,n/4),p=o.length,n}function l(o,e){let n=e(o.length*1,1)>>>0;return B().set(o,n/1),p=o.length,n}function ot(o,e){let n=e(o.length*4,4)>>>0;return o_().set(o,n/4),p=o.length,n}function Y(o,e){let n=e(o.length*8,8)>>>0;return yt().set(o,n/8),p=o.length,n}function y(o,e,n){if(n===void 0){let c=$.encode(o),s=e(c.length,1)>>>0;return B().subarray(s,s+c.length).set(c),p=c.length,s}let i=o.length,a=e(i,1)>>>0,d=B(),_=0;for(;_<i;_++){let c=o.charCodeAt(_);if(c>127)break;d[a+_]=c}if(_!==i){_!==0&&(o=o.slice(_)),a=n(a,i,i=_+o.length*3,1)>>>0;let c=B().subarray(a+_,a+i),s=$.encodeInto(o,c);_+=s.written,a=n(a,i,_,1)>>>0}return p=_,a}function u(o){let e=A(o);return r_(o),e}var _t=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});_t.decode();var a_=2146435072,pt=0;function d_(o,e){return pt+=e,pt>=a_&&(_t=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),_t.decode(),pt=e),_t.decode(B().subarray(o,o+e))}var $=new TextEncoder;"encodeInto"in $||($.encodeInto=function(o,e){let n=$.encode(o);return e.set(n),{read:o.length,written:n.length}});var p=0,c_,s_,t;function kt(o,e){return s_=o,t=o.exports,c_=e,U=null,N=null,H=null,G=null,V=null,K=null,t}async function p_(o,e){if(typeof Response=="function"&&o instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(o,e)}catch(a){if(o.ok&&n(o.type)&&o.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 i=await o.arrayBuffer();return await WebAssembly.instantiate(i,e)}else{let i=await WebAssembly.instantiate(o,e);return i instanceof WebAssembly.Instance?{instance:i,module:o}:i}function n(i){switch(i){case"basic":case"cors":case"default":return!0}return!1}}function g_(o){if(t!==void 0)return t;o!==void 0&&(Object.getPrototypeOf(o)===Object.prototype?{module:o}=o:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let e=It();o instanceof WebAssembly.Module||(o=new WebAssembly.Module(o));let n=new WebAssembly.Instance(o,e);return kt(n,o)}async function rt(o){if(t!==void 0)return t;o!==void 0&&(Object.getPrototypeOf(o)===Object.prototype?{module_or_path:o}=o:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),o===void 0&&(o=new URL("media_core_bg.wasm",import.meta.url));let e=It();(typeof o=="string"||typeof Request=="function"&&o instanceof Request||typeof URL=="function"&&o instanceof URL)&&(o=fetch(o));let{instance:n,module:i}=await p_(await o,e);return kt(n,i)}var b_=import.meta.env?.VITE_TE_WORKSPACE==="1";var l_=!0,f_=import.meta.env?.MODE==="development"?["conform.tools","localhost"]:["conform.tools"];var ut=null,u_=!1;function w_(o){return ut||(ut=(async()=>{if(o!==void 0)return rt(o);if(typeof process<"u"&&process.versions?.node){let n="node:fs/promises",{readFile:i}=await import(n),a=await i(new URL("./wasm/media_core_bg.wasm",import.meta.url));return rt({module_or_path:a})}let{default:e}=await import("./media_core_bg-FDL7GJZP.js");return rt({module_or_path:e})})().then(e=>(u_=!0,e))),ut}function m_(){return w_()}export{et as a,Wt as b,Rt as c,zt as d,Xt as e,Jt as f,Qt as g,te as h,ie as i,ae as j,ce as k,se as l,pe as m,ge as n,be as o,le as p,ve as q,Ie as r,Me as s,Se as t,ze as u,Ue as v,Pe as w,Be as x,Ce as y,qe as z,Ne as A,Ge as B,Ke as C,Xe as D,Ye as E,Je as F,Qe as G,Ze as H,tn as I,nn as J,on as K,dn as L,cn as M,sn as N,pn as O,un as P,wn as Q,bn as R,ln as S,fn as T,En as U,Sn as V,zn as W,Cn as X,qn as Y,Nn as Z,Hn as _,Gn as $,Vn as aa,Kn as ba,Xn as ca,Yn as da,Jn as ea,Qn as fa,tr as ga,er as ha,nr as ia,rr as ja,_r as ka,or as la,dr as ma,cr as na,sr as oa,pr as pa,wr as qa,lr as ra,xr as sa,Ir as ta,yr as ua,hr as va,Ar as wa,Mr as xa,Wr as ya,Fr as za,Sr as Aa,Hr as Ba,Vr as Ca,Xr as Da,Zr as Ea,t_ as Fa,At as Ga,l_ as Ha,m_ as Ia};
|
|
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:()=>Lt,bench_f32_boundary:()=>Rt,bench_piz_no_huffman:()=>jt,color_cst:()=>zt,dci_code_full_depth:()=>Dt,dci_frame_cap:()=>Ut,dci_gpu_colour_patch:()=>Bt,dci_gpu_colour_tables:()=>Pt,dci_last_pass_caps:()=>Ct,dci_legal_rates:()=>qt,dci_mq_bench:()=>Nt,dci_pack_tier1:()=>Ht,dci_stage_rgba8:()=>Gt,dci_transform_only:()=>Vt,decode_arriraw12_luma:()=>Kt,decode_arriraw12_mxf:()=>Xt,decode_arriraw12_preview:()=>Yt,decode_arriraw12_rgba:()=>$t,decode_arriraw_luma:()=>Jt,decode_arriraw_mxf:()=>Qt,decode_arriraw_preview:()=>Zt,decode_arriraw_preview_gray:()=>te,decode_arriraw_preview_meta:()=>ee,decode_arriraw_rgba:()=>ne,decode_arriraw_rgba_meta:()=>re,decode_arw_preview:()=>_e,decode_arw_rgba:()=>oe,decode_audio_pcm:()=>ie,decode_audio_track_pcm:()=>ae,decode_bmp_rgba:()=>de,decode_braw_gen5log:()=>ce,decode_braw_luma:()=>se,decode_braw_preview:()=>pe,decode_braw_rgba:()=>ge,decode_cr2_preview:()=>ue,decode_cr2_rgba:()=>we,decode_cr3_rgba:()=>be,decode_crm:()=>le,decode_dng_preview:()=>fe,decode_dng_rgba:()=>ve,decode_dpx_preview:()=>xe,decode_dpx_rgba:()=>Ie,decode_dv_luma:()=>ye,decode_dv_preview:()=>me,decode_dv_rgba:()=>he,decode_exr_linear:()=>ke,decode_exr_preview:()=>Ae,decode_exr_rgba:()=>Me,decode_gif_rgba:()=>Ee,decode_heic_rgba:()=>Te,decode_j2k_luma:()=>Oe,decode_j2k_preview:()=>Fe,decode_j2k_rgba:()=>We,decode_jpeg_rgba:()=>Se,decode_mpeg2_luma:()=>Le,decode_mpeg2_preview:()=>Re,decode_mpeg2_rgba:()=>je,decode_png_rgba:()=>ze,decode_prores_band_rgba:()=>De,decode_prores_luma:()=>Ue,decode_prores_mxf:()=>Be,decode_prores_preview:()=>Pe,decode_prores_raw_acescct:()=>Ce,decode_prores_raw_luma:()=>qe,decode_prores_raw_preview:()=>Ne,decode_prores_raw_rec2020:()=>He,decode_prores_raw_rgba:()=>Ge,decode_prores_raw_tier:()=>Ve,decode_prores_rgb16:()=>Ke,decode_prores_rgba:()=>Xe,decode_prores_thumb_dc32:()=>Ye,decode_psd_rgba:()=>$e,decode_r3d_luma:()=>Je,decode_r3d_preview:()=>Qe,decode_r3d_preview_clip:()=>Ze,decode_r3d_rgb16:()=>tn,decode_r3d_rgba:()=>en,decode_r3d_rgba_clip:()=>nn,decode_tga_rgba:()=>rn,decode_tiff_preview:()=>_n,decode_tiff_rgba:()=>on,decode_vc3_band_rgba:()=>an,decode_vc3_luma:()=>dn,decode_vc3_mxf:()=>cn,decode_vc3_preview:()=>sn,decode_vc3_rgba:()=>pn,decode_webp_rgba:()=>gn,decode_xocn_index_luma:()=>un,decode_xocn_luma:()=>wn,decode_xocn_mxf:()=>bn,decode_xocn_preview:()=>ln,decode_xocn_preview_rec709:()=>fn,decode_xocn_rgb16:()=>vn,decode_xocn_rgba:()=>xn,default:()=>rt,encode_dci_j2c:()=>In,encode_dci_j2c_rgb:()=>yn,encode_dci_j2c_rgba8:()=>mn,encode_dci_j2c_staged:()=>hn,encode_dci_j2c_staged_modelled:()=>kn,encode_exr:()=>An,encode_prores_4444_alpha_mov_rgba:()=>Mn,encode_prores_4444_alpha_sample_q:()=>En,encode_prores_444_sample_cbr:()=>Tn,encode_prores_444_sample_cbr_rgb16:()=>On,encode_prores_444_sample_cbr_rgb16_lut:()=>Fn,encode_prores_mov_rgba:()=>Wn,encode_prores_rgba:()=>Sn,encode_prores_sample_cbr:()=>Ln,encode_prores_sample_cbr_rgb16:()=>Rn,encode_prores_sample_cbr_rgb16_lut:()=>jn,encode_prores_sample_q:()=>zn,exr_sequence_filename:()=>Dn,fit_sizing:()=>Un,initSync:()=>g_,inspect_arw:()=>Bn,inspect_cr2:()=>Pn,inspect_cr3:()=>Cn,inspect_dng:()=>qn,inspect_dpx:()=>Nn,inspect_exr:()=>Hn,inspect_isobmff:()=>Gn,inspect_tiff:()=>Vn,inspect_wav:()=>Kn,is_arriraw12_mxf:()=>Xn,is_arriraw_mxf:()=>Yn,is_crm:()=>$n,is_prores_mxf:()=>Jn,is_vc3_mxf:()=>Qn,is_xavc_mxf:()=>Zn,is_xocn_mxf:()=>tr,list_isobmff_segments:()=>er,list_mxf_segments:()=>nr,list_r3d_frames:()=>rr,list_r3d_segments:()=>_r,list_wav_segments:()=>or,mux_prores_4444_alpha_samples:()=>ir,mux_prores_samples:()=>ar,mux_prores_samples_full:()=>dr,mxf_au_run:()=>cr,mxf_frame_index:()=>sr,mxf_gop_map:()=>pr,mxf_h264_kind:()=>gr,plan_isobmff_trim:()=>ur,plan_isobmff_trim_reader:()=>wr,plan_mxf_compact_trim:()=>br,plan_mxf_trim:()=>lr,plan_r3d_compact:()=>fr,plan_wav_trim:()=>vr,plan_wav_trim_reader:()=>xr,prepare_isobmff:()=>Ir,prepare_mxf:()=>yr,prepare_r3d:()=>mr,prepare_wav:()=>hr,probe_mov:()=>kr,probe_mxf:()=>Ar,probe_r3d:()=>Mr,prores_band_info:()=>Er,prores_raw_container_color:()=>Tr,prores_reset_rate_control:()=>Or,r3d_gpu_develop_params:()=>Fr,r3d_index_ranges:()=>Wr,r3d_is_helium:()=>Sr,read_arriraw_fcs:()=>Lr,read_arriraw_unit_correction:()=>Rr,recover_reframe:()=>jr,resample_rgba16:()=>zr,resample_rgba8:()=>Dr,reset_dci_rate_state:()=>Ur,resize_luma_area:()=>Br,rgba8_to_xyz12:()=>Pr,shot_crop:()=>Cr,shot_ramp:()=>qr,shot_scan:()=>Nr,trim_r3d:()=>Hr,vc3_band_info:()=>Gr,video_close:()=>Vr,video_decode:()=>Kr,video_frame_index_isobmff_reader:()=>Xr,video_open:()=>Yr,xavc_au:()=>$r,xavc_frame_count:()=>Jr,xocn_frame_count:()=>Qr,xocn_index_prefix_len:()=>Zr,xocn_preview_prefix_len:()=>t_});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,i,a){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=y(a,t.__wbindgen_export4,t.__wbindgen_export5),w=p;t.exrbench_new(s,e,n,i,g,w);var d=r().getInt32(s+0,!0),_=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0);if(c)throw u(_);return this.__wbg_ptr=d,wt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}piz_stage_block(e){try{let d=t.__wbindgen_add_to_stack_pointer(-16);t.exrbench_piz_stage_block(d,this.__wbg_ptr,e);var n=r().getFloat64(d+0,!0),i=r().getInt32(d+8,!0),a=r().getInt32(d+12,!0);if(a)throw u(i);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 d=t.__wbindgen_add_to_stack_pointer(-16);t.exrbench_zip_stage_block(d,this.__wbg_ptr,e);var n=r().getFloat64(d+0,!0),i=r().getInt32(d+8,!0),a=r().getInt32(d+12,!0);if(a)throw u(i);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 _=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_finish(_,this.__wbg_ptr);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}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=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}n_blocks(){return t.exrstreamencoder_n_blocks(this.__wbg_ptr)>>>0}constructor(e,n,i,a,d,_,c,s,g,w){try{let I=t.__wbindgen_add_to_stack_pointer(-16),h=y(i,t.__wbindgen_export4,t.__wbindgen_export5),k=p,M=y(a,t.__wbindgen_export4,t.__wbindgen_export5),O=p,F=y(d,t.__wbindgen_export4,t.__wbindgen_export5),T=p,S=y(_,t.__wbindgen_export4,t.__wbindgen_export5),R=p,j=y(s,t.__wbindgen_export4,t.__wbindgen_export5),D=p;t.exrstreamencoder_new(I,e,n,h,k,M,O,F,T,S,R,c,j,D,g,w);var b=r().getInt32(I+0,!0),v=r().getInt32(I+4,!0),m=r().getInt32(I+8,!0);if(m)throw u(v);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 c=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_push_block(c,this.__wbg_ptr,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}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,i,a){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=y(i,t.__wbindgen_export4,t.__wbindgen_export5),w=p;t.proresbench_new(s,e,n,g,w,a);var d=r().getInt32(s+0,!0),_=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0);if(c)throw u(_);return this.__wbg_ptr=d,lt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}stage(e){try{let d=t.__wbindgen_add_to_stack_pointer(-16);t.proresbench_stage(d,this.__wbg_ptr,e);var n=r().getFloat64(d+0,!0),i=r().getInt32(d+8,!0),a=r().getInt32(d+12,!0);if(a)throw u(i);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),d=l(e,t.__wbindgen_export4),_=p;t.proresmovencoder_add_frame_rgba(a,this.__wbg_ptr,d,_);var n=r().getInt32(a+0,!0),i=r().getInt32(a+4,!0);if(i)throw u(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=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}frame_count(){return t.proresmovencoder_frame_count(this.__wbg_ptr)>>>0}constructor(e,n,i,a){let d=t.proresmovencoder_new(e,n,i,a);return this.__wbg_ptr=d,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,vt.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=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}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=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}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=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}mdat_box_offset(){return t.proresmovwriter_mdat_box_offset(this.__wbg_ptr)}constructor(e,n,i,a){let d=t.proresmovwriter_new(e,n,i,a);return this.__wbg_ptr=d,vt.register(this,this.__wbg_ptr,this),this}push_frame(){try{let _=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_push_frame(_,this.__wbg_ptr);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_sample(e){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(e,t.__wbindgen_export4),_=p;t.proresmovwriter_push_sample(a,this.__wbg_ptr,d,_);var n=r().getInt32(a+0,!0),i=r().getInt32(a+4,!0);if(i)throw u(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=r().getInt32(a+0,!0),i=r().getInt32(a+4,!0);if(i)throw u(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=y(e,t.__wbindgen_export4,t.__wbindgen_export5),i=p;t.proresmovwriter_set_profile(this.__wbg_ptr,n,i)}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(o){let e,n;try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.arriraw12_clip_info(d,_,c);var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);return e=i,n=a,E(i,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Ft(o,e,n,i){var a=B(i)?0:y(i,t.__wbindgen_export4,t.__wbindgen_export5),d=p;let _=t.arriraw_mxf_gpu_frame(x(o),e,n,a,d);return u(_)}function Wt(o,e,n){let i=t.audio_aac_au(x(o),e,n);return u(i)}function St(o,e){let n=t.audio_aac_config(x(o),e);return u(n)}function Lt(o,e){let n=t.audio_info(x(o),e);return u(n)}function Rt(o){let e=ot(o,t.__wbindgen_export4),n=p;return t.bench_f32_boundary(e,n)}function jt(o,e,n,i){let a=ot(o,t.__wbindgen_export4),d=p;return t.bench_piz_no_huffman(a,d,e,n,i)}function zt(o,e){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=y(o,t.__wbindgen_export4,t.__wbindgen_export5),s=p;var n=ot(e,t.__wbindgen_export4),i=p;t.color_cst(_,c,s,n,i,x(e));var a=r().getInt32(_+0,!0),d=r().getInt32(_+4,!0);if(d)throw u(a)}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Dt(o,e,n){let i=W(o,t.__wbindgen_export4),a=p;return t.dci_code_full_depth(i,a,e,n)}function Ut(o,e,n){return t.dci_frame_cap(o,e,n)>>>0}function Bt(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p,w=y(e,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.dci_gpu_colour_patch(c,s,g,w,b);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=gt(n,i).slice();return t.__wbindgen_export3(n,i*2,2),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Pt(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=y(o,t.__wbindgen_export4,t.__wbindgen_export5),s=p;t.dci_gpu_colour_tables(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ct(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.dci_last_pass_caps(i);var o=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),n=nt(o,e).slice();return t.__wbindgen_export3(o,e*4,4),n}finally{t.__wbindgen_add_to_stack_pointer(16)}}function qt(o,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16);t.dci_legal_rates(d,o,e);var n=r().getInt32(d+0,!0),i=r().getInt32(d+4,!0),a=nt(n,i).slice();return t.__wbindgen_export3(n,i*4,4),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Nt(o){return t.dci_mq_bench(o)>>>0}function Ht(o,e,n,i,a,d,_,c,s,g,w){try{let k=t.__wbindgen_add_to_stack_pointer(-16),M=L(o,t.__wbindgen_export4),O=p,F=l(e,t.__wbindgen_export4),T=p,S=L(n,t.__wbindgen_export4),R=p,j=L(i,t.__wbindgen_export4),D=p,C=L(a,t.__wbindgen_export4),q=p,it=L(d,t.__wbindgen_export4),at=p,dt=L(_,t.__wbindgen_export4),ct=p,Mt=L(c,t.__wbindgen_export4),Et=p;t.dci_pack_tier1(k,M,O,F,T,S,R,j,D,C,q,it,at,dt,ct,Mt,Et,s,g,w);var b=r().getInt32(k+0,!0),v=r().getInt32(k+4,!0),m=r().getInt32(k+8,!0),I=r().getInt32(k+12,!0);if(I)throw u(m);var h=f(b,v).slice();return t.__wbindgen_export3(b,v*1,1),h}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Gt(o,e){let n=t.dci_stage_rgba8(o,e);return u(n)}function Vt(o,e,n){let i=W(o,t.__wbindgen_export4),a=p;return t.dci_transform_only(i,a,e,n)}function Kt(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p,w=l(e,t.__wbindgen_export4),b=p;t.decode_arriraw12_luma(c,s,g,w,b);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Xt(o,e,n,i){let a=y(i,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=t.decode_arriraw12_mxf(x(o),e,n,a,d);return u(_)}function Yt(o,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(o,t.__wbindgen_export4),w=p,b=l(e,t.__wbindgen_export4),v=p;t.decode_arriraw12_preview(s,g,w,b,v,n);var i=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0),_=r().getInt32(s+12,!0);if(_)throw u(d);var c=f(i,a).slice();return t.__wbindgen_export3(i,a*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $t(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p,w=l(e,t.__wbindgen_export4),b=p;t.decode_arriraw12_rgba(c,s,g,w,b);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Jt(o,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(o,t.__wbindgen_export4),w=p;t.decode_arriraw_luma(s,g,w,e,n);var i=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0),_=r().getInt32(s+12,!0);if(_)throw u(d);var c=f(i,a).slice();return t.__wbindgen_export3(i,a*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Qt(o,e,n,i){let a=y(i,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=t.decode_arriraw_mxf(x(o),e,n,a,d);return u(_)}function Zt(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.decode_arriraw_preview(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function te(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.decode_arriraw_preview_gray(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ee(o,e,n,i,a,d,_,c,s){try{let k=t.__wbindgen_add_to_stack_pointer(-16),M=l(o,t.__wbindgen_export4),O=p;var g=B(s)?0:Y(s,t.__wbindgen_export4),w=p;t.decode_arriraw_preview_meta(k,M,O,e,n,i,a,d,_,c,g,w);var b=r().getInt32(k+0,!0),v=r().getInt32(k+4,!0),m=r().getInt32(k+8,!0),I=r().getInt32(k+12,!0);if(I)throw u(m);var h=f(b,v).slice();return t.__wbindgen_export3(b,v*1,1),h}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ne(o,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(o,t.__wbindgen_export4),w=p;t.decode_arriraw_rgba(s,g,w,e,n);var i=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0),_=r().getInt32(s+12,!0);if(_)throw u(d);var c=f(i,a).slice();return t.__wbindgen_export3(i,a*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function re(o,e,n,i,a,d,_,c){try{let h=t.__wbindgen_add_to_stack_pointer(-16),k=l(o,t.__wbindgen_export4),M=p;var s=B(c)?0:Y(c,t.__wbindgen_export4),g=p;t.decode_arriraw_rgba_meta(h,k,M,e,n,i,a,d,_,s,g);var w=r().getInt32(h+0,!0),b=r().getInt32(h+4,!0),v=r().getInt32(h+8,!0),m=r().getInt32(h+12,!0);if(m)throw u(v);var I=f(w,b).slice();return t.__wbindgen_export3(w,b*1,1),I}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _e(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_arw_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function oe(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_arw_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ie(o,e,n,i){let a=t.decode_audio_pcm(x(o),e,n,i);return u(a)}function ae(o,e,n,i,a){let d=t.decode_audio_track_pcm(x(o),e,n,i,a);return u(d)}function de(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_bmp_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ce(o){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(o,t.__wbindgen_export4),_=p;t.decode_braw_gen5log(a,d,_);var e=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function se(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_braw_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pe(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_braw_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ge(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_braw_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ue(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_cr2_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function we(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_cr2_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function be(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_cr3_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function le(o,e,n,i){let a=y(i,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=t.decode_crm(x(o),e,n,a,d);return u(_)}function fe(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_dng_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ve(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_dng_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function xe(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_dpx_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ie(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_dpx_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ye(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_dv_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function me(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_dv_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function he(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_dv_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ke(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_exr_linear(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ae(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_exr_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Me(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_exr_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ee(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_gif_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Te(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_heic_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Oe(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_j2k_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Fe(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_j2k_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function We(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_j2k_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Se(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_jpeg_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Le(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_mpeg2_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Re(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_mpeg2_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function je(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_mpeg2_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ze(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_png_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function De(o,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(o,t.__wbindgen_export4),w=p;t.decode_prores_band_rgba(s,g,w,e,n);var i=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0),_=r().getInt32(s+12,!0);if(_)throw u(d);var c=f(i,a).slice();return t.__wbindgen_export3(i,a*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ue(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_prores_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Be(o,e,n,i){let a=y(i,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=t.decode_prores_mxf(x(o),e,n,a,d);return u(_)}function Pe(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_prores_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ce(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_prores_raw_acescct(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function qe(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_prores_raw_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ne(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_prores_raw_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function He(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_prores_raw_rec2020(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ge(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_prores_raw_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ve(o,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(o,t.__wbindgen_export4),w=p,b=y(e,t.__wbindgen_export4,t.__wbindgen_export5),v=p,m=l(n,t.__wbindgen_export4),I=p;t.decode_prores_raw_tier(s,g,w,b,v,m,I);var i=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0),_=r().getInt32(s+12,!0);if(_)throw u(d);var c=f(i,a).slice();return t.__wbindgen_export3(i,a*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ke(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_prores_rgb16(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Xe(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_prores_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ye(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_prores_thumb_dc32(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $e(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_psd_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Je(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_r3d_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Qe(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_r3d_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ze(o,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(o,t.__wbindgen_export4),w=p,b=l(e,t.__wbindgen_export4),v=p;t.decode_r3d_preview_clip(s,g,w,b,v,n);var i=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0),_=r().getInt32(s+12,!0);if(_)throw u(d);var c=f(i,a).slice();return t.__wbindgen_export3(i,a*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function tn(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_r3d_rgb16(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function en(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_r3d_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function nn(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p,w=l(e,t.__wbindgen_export4),b=p;t.decode_r3d_rgba_clip(c,s,g,w,b);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function rn(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_tga_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _n(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_tiff_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function on(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_tiff_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function an(o,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(o,t.__wbindgen_export4),w=p;t.decode_vc3_band_rgba(s,g,w,e,n);var i=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0),_=r().getInt32(s+12,!0);if(_)throw u(d);var c=f(i,a).slice();return t.__wbindgen_export3(i,a*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function dn(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_vc3_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function cn(o,e,n,i){let a=y(i,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=t.decode_vc3_mxf(x(o),e,n,a,d);return u(_)}function sn(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_vc3_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pn(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_vc3_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function gn(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_webp_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function un(o){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(o,t.__wbindgen_export4),_=p;t.decode_xocn_index_luma(a,d,_);var e=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function wn(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_xocn_luma(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function bn(o,e,n,i){let a=y(i,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=t.decode_xocn_mxf(x(o),e,n,a,d);return u(_)}function ln(o,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16),s=l(o,t.__wbindgen_export4),g=p;t.decode_xocn_preview(c,s,g,e);var n=r().getInt32(c+0,!0),i=r().getInt32(c+4,!0),a=r().getInt32(c+8,!0),d=r().getInt32(c+12,!0);if(d)throw u(a);var _=f(n,i).slice();return t.__wbindgen_export3(n,i*1,1),_}finally{t.__wbindgen_add_to_stack_pointer(16)}}function fn(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_xocn_preview_rec709(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function vn(o){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(o,t.__wbindgen_export4),_=p;t.decode_xocn_rgb16(a,d,_);var e=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function xn(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.decode_xocn_rgba(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function In(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=W(o,t.__wbindgen_export4),b=p;t.encode_dci_j2c(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function yn(o,e,n,i,a,d){try{let b=t.__wbindgen_add_to_stack_pointer(-16),v=W(o,t.__wbindgen_export4),m=p,I=y(n,t.__wbindgen_export4,t.__wbindgen_export5),h=p;t.encode_dci_j2c_rgb(b,v,m,e,I,h,i,a,d);var _=r().getInt32(b+0,!0),c=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=f(_,c).slice();return t.__wbindgen_export3(_,c*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function mn(o,e,n,i,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(o,t.__wbindgen_export4),v=p,m=y(e,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.encode_dci_j2c_rgba8(w,b,v,m,I,n,i,a);var d=r().getInt32(w+0,!0),_=r().getInt32(w+4,!0),c=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(c);var g=f(d,_).slice();return t.__wbindgen_export3(d,_*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function hn(o,e,n,i,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=y(i,t.__wbindgen_export4,t.__wbindgen_export5),v=p;t.encode_dci_j2c_staged(w,o,e,n,b,v,a);var d=r().getInt32(w+0,!0),_=r().getInt32(w+4,!0),c=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(c);var g=f(d,_).slice();return t.__wbindgen_export3(d,_*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function kn(o,e,n,i,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=y(i,t.__wbindgen_export4,t.__wbindgen_export5),v=p;t.encode_dci_j2c_staged_modelled(w,o,e,n,b,v,a);var d=r().getInt32(w+0,!0),_=r().getInt32(w+4,!0),c=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(c);var g=f(d,_).slice();return t.__wbindgen_export3(d,_*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function An(o,e,n,i,a,d,_,c,s,g,w,b,v,m,I){try{let T=t.__wbindgen_add_to_stack_pointer(-16),S=ot(o,t.__wbindgen_export4),R=p,j=y(a,t.__wbindgen_export4,t.__wbindgen_export5),D=p,C=y(d,t.__wbindgen_export4,t.__wbindgen_export5),q=p,it=y(_,t.__wbindgen_export4,t.__wbindgen_export5),at=p,dt=y(v,t.__wbindgen_export4,t.__wbindgen_export5),ct=p;t.encode_exr(T,S,R,e,n,i,j,D,C,q,it,at,c,s,g,w,b,dt,ct,m,I);var h=r().getInt32(T+0,!0),k=r().getInt32(T+4,!0),M=r().getInt32(T+8,!0),O=r().getInt32(T+12,!0);if(O)throw u(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 Mn(o,e,n,i,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(o,t.__wbindgen_export4),v=p;t.encode_prores_4444_alpha_mov_rgba(w,b,v,e,n,i,a);var d=r().getInt32(w+0,!0),_=r().getInt32(w+4,!0),c=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(c);var g=f(d,_).slice();return t.__wbindgen_export3(d,_*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function En(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.encode_prores_4444_alpha_sample_q(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Tn(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function On(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=W(o,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr_rgb16(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Fn(o,e,n,i,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=W(o,t.__wbindgen_export4),v=p,m=W(a,t.__wbindgen_export4),I=p;t.encode_prores_444_sample_cbr_rgb16_lut(w,b,v,e,n,i,m,I);var d=r().getInt32(w+0,!0),_=r().getInt32(w+4,!0),c=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(c);var g=f(d,_).slice();return t.__wbindgen_export3(d,_*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Wn(o,e,n,i,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(o,t.__wbindgen_export4),v=p;t.encode_prores_mov_rgba(w,b,v,e,n,i,a);var d=r().getInt32(w+0,!0),_=r().getInt32(w+4,!0),c=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(c);var g=f(d,_).slice();return t.__wbindgen_export3(d,_*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Sn(o,e,n){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(o,t.__wbindgen_export4),w=p;t.encode_prores_rgba(s,g,w,e,n);var i=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0),_=r().getInt32(s+12,!0);if(_)throw u(d);var c=f(i,a).slice();return t.__wbindgen_export3(i,a*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ln(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Rn(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=W(o,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr_rgb16(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function jn(o,e,n,i,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=W(o,t.__wbindgen_export4),v=p,m=W(a,t.__wbindgen_export4),I=p;t.encode_prores_sample_cbr_rgb16_lut(w,b,v,e,n,i,m,I);var d=r().getInt32(w+0,!0),_=r().getInt32(w+4,!0),c=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(c);var g=f(d,_).slice();return t.__wbindgen_export3(d,_*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function zn(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.encode_prores_sample_q(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Dn(o,e,n,i){let a,d;try{let v=t.__wbindgen_add_to_stack_pointer(-16),m=y(o,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.exr_sequence_filename(v,m,I,e,n,i);var _=r().getInt32(v+0,!0),c=r().getInt32(v+4,!0),s=r().getInt32(v+8,!0),g=r().getInt32(v+12,!0),w=_,b=c;if(g)throw w=0,b=0,u(s);return a=w,d=b,E(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,d,1)}}function Un(o,e,n,i,a,d,_,c){let s,g;try{let k=t.__wbindgen_add_to_stack_pointer(-16),M=l(o,t.__wbindgen_export4),O=p,F=l(i,t.__wbindgen_export4),T=p,S=y(c,t.__wbindgen_export4,t.__wbindgen_export5),R=p;t.fit_sizing(k,M,O,e,n,F,T,a,d,_,S,R);var w=r().getInt32(k+0,!0),b=r().getInt32(k+4,!0),v=r().getInt32(k+8,!0),m=r().getInt32(k+12,!0),I=w,h=b;if(m)throw I=0,h=0,u(v);return s=I,g=h,E(I,h)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(s,g,1)}}function Bn(o){let e,n;try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.inspect_arw(d,_,c);var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);return e=i,n=a,E(i,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Pn(o){let e,n;try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.inspect_cr2(d,_,c);var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);return e=i,n=a,E(i,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Cn(o){let e,n;try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.inspect_cr3(d,_,c);var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);return e=i,n=a,E(i,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function qn(o){let e,n;try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.inspect_dng(d,_,c);var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);return e=i,n=a,E(i,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Nn(o){let e,n;try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.inspect_dpx(d,_,c);var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);return e=i,n=a,E(i,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Hn(o){let e,n;try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.inspect_exr(d,_,c);var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);return e=i,n=a,E(i,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Gn(o,e,n){let i=y(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,d=t.inspect_isobmff(x(o),e,i,a);return u(d)}function Vn(o){let e,n;try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.inspect_tiff(d,_,c);var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);return e=i,n=a,E(i,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Kn(o,e){let n=t.inspect_wav(x(o),e);return u(n)}function Xn(o,e){let n=t.is_arriraw12_mxf(x(o),e);return u(n)}function Yn(o,e){let n=t.is_arriraw_mxf(x(o),e);return u(n)}function $n(o,e){let n=t.is_crm(x(o),e);return u(n)}function Jn(o,e){let n=t.is_prores_mxf(x(o),e);return u(n)}function Qn(o,e){let n=t.is_vc3_mxf(x(o),e);return u(n)}function Zn(o,e){let n=t.is_xavc_mxf(x(o),e);return u(n)}function tr(o,e){let n=t.is_xocn_mxf(x(o),e);return u(n)}function er(o,e,n){let i=y(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,d=t.list_isobmff_segments(x(o),e,i,a);return u(d)}function nr(o,e){let n=t.list_mxf_segments(x(o),e);return u(n)}function rr(o,e){let n=y(e,t.__wbindgen_export4,t.__wbindgen_export5),i=p,a=t.list_r3d_frames(x(o),n,i);return u(a)}function _r(o,e){let n=y(e,t.__wbindgen_export4,t.__wbindgen_export5),i=p,a=t.list_r3d_segments(x(o),n,i);return u(a)}function or(o,e){let n=t.list_wav_segments(x(o),e);return u(n)}function ir(o,e,n,i,a,d){try{let b=t.__wbindgen_add_to_stack_pointer(-16),v=l(o,t.__wbindgen_export4),m=p,I=L(e,t.__wbindgen_export4),h=p;t.mux_prores_4444_alpha_samples(b,v,m,I,h,n,i,a,d);var _=r().getInt32(b+0,!0),c=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=f(_,c).slice();return t.__wbindgen_export3(_,c*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ar(o,e,n,i,a,d){try{let b=t.__wbindgen_add_to_stack_pointer(-16),v=l(o,t.__wbindgen_export4),m=p,I=L(e,t.__wbindgen_export4),h=p;t.mux_prores_samples(b,v,m,I,h,n,i,a,d);var _=r().getInt32(b+0,!0),c=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=f(_,c).slice();return t.__wbindgen_export3(_,c*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function dr(o,e,n,i,a,d,_,c,s,g,w,b){try{let M=t.__wbindgen_add_to_stack_pointer(-16),O=l(o,t.__wbindgen_export4),F=p,T=L(e,t.__wbindgen_export4),S=p,R=y(_,t.__wbindgen_export4,t.__wbindgen_export5),j=p;t.mux_prores_samples_full(M,O,F,T,S,n,i,a,d,R,j,c,s,g,w,b);var v=r().getInt32(M+0,!0),m=r().getInt32(M+4,!0),I=r().getInt32(M+8,!0),h=r().getInt32(M+12,!0);if(h)throw u(I);var k=f(v,m).slice();return t.__wbindgen_export3(v,m*1,1),k}finally{t.__wbindgen_add_to_stack_pointer(16)}}function cr(o,e,n,i){let a=t.mxf_au_run(x(o),e,n,i);return u(a)}function sr(o,e){let n=t.mxf_frame_index(x(o),e);return u(n)}function pr(o,e){let n=t.mxf_gop_map(x(o),e);return u(n)}function gr(o,e){let n=t.mxf_h264_kind(x(o),e);return u(n)}function ur(o,e){let n,i;try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(o,t.__wbindgen_export4),v=p,m=y(e,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.plan_isobmff_trim(w,b,v,m,I);var a=r().getInt32(w+0,!0),d=r().getInt32(w+4,!0),_=r().getInt32(w+8,!0),c=r().getInt32(w+12,!0),s=a,g=d;if(c)throw s=0,g=0,u(_);return n=s,i=g,E(s,g)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,i,1)}}function wr(o,e,n,i,a){let d=y(a,t.__wbindgen_export4,t.__wbindgen_export5),_=p,c=t.plan_isobmff_trim_reader(x(o),e,n,i,d,_);return u(c)}function br(o){let e,n;try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=y(o,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.plan_mxf_compact_trim(g,w,b);var i=r().getInt32(g+0,!0),a=r().getInt32(g+4,!0),d=r().getInt32(g+8,!0),_=r().getInt32(g+12,!0),c=i,s=a;if(_)throw c=0,s=0,u(d);return e=c,n=s,E(c,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function lr(o,e,n,i){let a=t.plan_mxf_trim(x(o),e,n,i);return u(a)}function fr(o,e,n,i,a,d,_,c){let s,g;try{let v=t.__wbindgen_add_to_stack_pointer(-16),m=l(o,t.__wbindgen_export4),I=p,h=l(e,t.__wbindgen_export4),k=p,M=l(n,t.__wbindgen_export4),O=p,F=l(i,t.__wbindgen_export4),T=p,S=Y(a,t.__wbindgen_export4),R=p,j=Y(d,t.__wbindgen_export4),D=p,C=Y(_,t.__wbindgen_export4),q=p;t.plan_r3d_compact(v,m,I,h,k,M,O,F,T,S,R,j,D,C,q,c);var w=r().getInt32(v+0,!0),b=r().getInt32(v+4,!0);return s=w,g=b,E(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(s,g,1)}}function vr(o,e,n,i){let a,d;try{let v=t.__wbindgen_add_to_stack_pointer(-16),m=l(o,t.__wbindgen_export4),I=p;t.plan_wav_trim(v,m,I,e,n,i);var _=r().getInt32(v+0,!0),c=r().getInt32(v+4,!0),s=r().getInt32(v+8,!0),g=r().getInt32(v+12,!0),w=_,b=c;if(g)throw w=0,b=0,u(s);return a=w,d=b,E(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,d,1)}}function xr(o,e,n,i,a){let d=t.plan_wav_trim_reader(x(o),e,n,i,a);return u(d)}function Ir(o,e,n,i){let a=y(n,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=y(i,t.__wbindgen_export4,t.__wbindgen_export5),c=p,s=t.prepare_isobmff(x(o),e,a,d,_,c);return u(s)}function yr(o,e,n){let i=y(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,d=t.prepare_mxf(x(o),e,i,a);return u(d)}function mr(o,e,n){let i=y(e,t.__wbindgen_export4,t.__wbindgen_export5),a=p,d=y(n,t.__wbindgen_export4,t.__wbindgen_export5),_=p,c=t.prepare_r3d(x(o),i,a,d,_);return u(c)}function hr(o,e,n,i){let a=y(n,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=t.prepare_wav(x(o),e,a,d,i);return u(_)}function kr(o){let e,n;try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.probe_mov(g,w,b);var i=r().getInt32(g+0,!0),a=r().getInt32(g+4,!0),d=r().getInt32(g+8,!0),_=r().getInt32(g+12,!0),c=i,s=a;if(_)throw c=0,s=0,u(d);return e=c,n=s,E(c,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Ar(o,e){let n=t.probe_mxf(x(o),e);return u(n)}function Mr(o,e){let n=y(e,t.__wbindgen_export4,t.__wbindgen_export5),i=p,a=t.probe_r3d(x(o),n,i);return u(a)}function Er(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.prores_band_info(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=nt(e,n).slice();return t.__wbindgen_export3(e,n*4,4),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Tr(o){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(o,t.__wbindgen_export4),_=p;t.prores_raw_container_color(a,d,_);var e=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Or(){t.prores_reset_rate_control()}function Fr(o){try{let a=t.__wbindgen_add_to_stack_pointer(-16),d=l(o,t.__wbindgen_export4),_=p;t.r3d_gpu_develop_params(a,d,_);var e=r().getInt32(a+0,!0),n=r().getInt32(a+4,!0),i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Wr(o,e,n){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.r3d_index_ranges(_,c,s,e,n);var i=r().getInt32(_+0,!0),a=r().getInt32(_+4,!0),d=nt(i,a).slice();return t.__wbindgen_export3(i,a*4,4),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Sr(o){let e=l(o,t.__wbindgen_export4),n=p;return t.r3d_is_helium(e,n)!==0}function Lr(o){let e,n;try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.read_arriraw_fcs(g,w,b);var i=r().getInt32(g+0,!0),a=r().getInt32(g+4,!0),d=r().getInt32(g+8,!0),_=r().getInt32(g+12,!0),c=i,s=a;if(_)throw c=0,s=0,u(d);return e=c,n=s,E(c,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,n,1)}}function Rr(o,e){try{let d=t.__wbindgen_add_to_stack_pointer(-16),_=l(o,t.__wbindgen_export4),c=p;t.read_arriraw_unit_correction(d,_,c,e);var n=r().getInt32(d+0,!0),i=r().getInt32(d+4,!0),a=__(n,i).slice();return t.__wbindgen_export3(n,i*8,8),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function jr(o,e,n,i,a,d,_){let c,s;try{let h=t.__wbindgen_add_to_stack_pointer(-16),k=l(o,t.__wbindgen_export4),M=p,O=l(i,t.__wbindgen_export4),F=p,T=y(_,t.__wbindgen_export4,t.__wbindgen_export5),S=p;t.recover_reframe(h,k,M,e,n,O,F,a,d,T,S);var g=r().getInt32(h+0,!0),w=r().getInt32(h+4,!0),b=r().getInt32(h+8,!0),v=r().getInt32(h+12,!0),m=g,I=w;if(v)throw m=0,I=0,u(b);return c=m,s=I,E(m,I)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(c,s,1)}}function zr(o,e,n,i,a,d){try{let b=t.__wbindgen_add_to_stack_pointer(-16),v=W(o,t.__wbindgen_export4),m=p,I=y(d,t.__wbindgen_export4,t.__wbindgen_export5),h=p;t.resample_rgba16(b,v,m,e,n,i,a,I,h);var _=r().getInt32(b+0,!0),c=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=gt(_,c).slice();return t.__wbindgen_export3(_,c*2,2),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Dr(o,e,n,i,a,d){try{let b=t.__wbindgen_add_to_stack_pointer(-16),v=l(o,t.__wbindgen_export4),m=p,I=y(d,t.__wbindgen_export4,t.__wbindgen_export5),h=p;t.resample_rgba8(b,v,m,e,n,i,a,I,h);var _=r().getInt32(b+0,!0),c=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=f(_,c).slice();return t.__wbindgen_export3(_,c*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ur(){t.reset_dci_rate_state()}function Br(o,e,n,i){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(o,t.__wbindgen_export4),b=p;t.resize_luma_area(g,w,b,e,n,i);var a=r().getInt32(g+0,!0),d=r().getInt32(g+4,!0),_=r().getInt32(g+8,!0),c=r().getInt32(g+12,!0);if(c)throw u(_);var s=f(a,d).slice();return t.__wbindgen_export3(a,d*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Pr(o,e,n,i,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(o,t.__wbindgen_export4),v=p,m=y(a,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.rgba8_to_xyz12(w,b,v,e,n,i,m,I);var d=r().getInt32(w+0,!0),_=r().getInt32(w+4,!0),c=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(c);var g=gt(d,_).slice();return t.__wbindgen_export3(d,_*2,2),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Cr(o,e,n,i){let a,d;try{let v=t.__wbindgen_add_to_stack_pointer(-16),m=W(o,t.__wbindgen_export4),I=p,h=l(e,t.__wbindgen_export4),k=p,M=L(n,t.__wbindgen_export4),O=p,F=y(i,t.__wbindgen_export4,t.__wbindgen_export5),T=p;t.shot_crop(v,m,I,h,k,M,O,F,T);var _=r().getInt32(v+0,!0),c=r().getInt32(v+4,!0),s=r().getInt32(v+8,!0),g=r().getInt32(v+12,!0),w=_,b=c;if(g)throw w=0,b=0,u(s);return a=w,d=b,E(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,d,1)}}function qr(o,e,n){let i,a;try{let b=t.__wbindgen_add_to_stack_pointer(-16),v=W(o,t.__wbindgen_export4),m=p,I=l(e,t.__wbindgen_export4),h=p,k=y(n,t.__wbindgen_export4,t.__wbindgen_export5),M=p;t.shot_ramp(b,v,m,I,h,k,M);var d=r().getInt32(b+0,!0),_=r().getInt32(b+4,!0),c=r().getInt32(b+8,!0),s=r().getInt32(b+12,!0),g=d,w=_;if(s)throw g=0,w=0,u(c);return i=g,a=w,E(g,w)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(i,a,1)}}function Nr(o,e,n,i){let a,d;try{let v=t.__wbindgen_add_to_stack_pointer(-16),m=W(o,t.__wbindgen_export4),I=p,h=l(e,t.__wbindgen_export4),k=p,M=L(n,t.__wbindgen_export4),O=p,F=y(i,t.__wbindgen_export4,t.__wbindgen_export5),T=p;t.shot_scan(v,m,I,h,k,M,O,F,T);var _=r().getInt32(v+0,!0),c=r().getInt32(v+4,!0),s=r().getInt32(v+8,!0),g=r().getInt32(v+12,!0),w=_,b=c;if(g)throw w=0,b=0,u(s);return a=w,d=b,E(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,d,1)}}function Hr(o,e,n,i){let a=y(e,t.__wbindgen_export4,t.__wbindgen_export5),d=p,_=y(n,t.__wbindgen_export4,t.__wbindgen_export5),c=p,s=y(i,t.__wbindgen_export4,t.__wbindgen_export5),g=p,w=t.trim_r3d(x(o),a,d,_,c,s,g);return u(w)}function Gr(o){try{let _=t.__wbindgen_add_to_stack_pointer(-16),c=l(o,t.__wbindgen_export4),s=p;t.vc3_band_info(_,c,s);var e=r().getInt32(_+0,!0),n=r().getInt32(_+4,!0),i=r().getInt32(_+8,!0),a=r().getInt32(_+12,!0);if(a)throw u(i);var d=nt(e,n).slice();return t.__wbindgen_export3(e,n*4,4),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Vr(o){t.video_close(o)}function Kr(o,e,n,i){let a=t.video_decode(o,e,n,i);return u(a)}function Xr(o,e,n){let i=y(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,d=t.video_frame_index_isobmff_reader(x(o),e,i,a);return u(d)}function Yr(o,e){let n=t.video_open(x(o),e);return u(n)}function $r(o,e,n){let i=t.xavc_au(x(o),e,n);return u(i)}function Jr(o,e){let n=t.xavc_frame_count(x(o),e);return u(n)}function Qr(o,e){let n=t.xocn_frame_count(x(o),e);return u(n)}function Zr(o){let e=l(o,t.__wbindgen_export4),n=p;return t.xocn_index_prefix_len(e,n)>>>0}function t_(o){let e=l(o,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_copy_to_typed_array_c5728021fabd0236:function(e,n,i){new Uint8Array(A(i).buffer,A(i).byteOffset,A(i).byteLength).set(f(e,n))},__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(E(e,n))},__wbg__wbg_cb_unref_33c39e13d73b25f6:function(e){A(e)._wbg_cb_unref()},__wbg_call_0e855b388e315e17:function(){return st(function(e,n,i,a){let d=A(e).call(A(n),A(i),A(a));return x(d)},arguments)},__wbg_call_5575218572ead796:function(){return st(function(e,n,i){let a=A(e).call(A(n),A(i));return x(a)},arguments)},__wbg_call_dd0f909cbc9405d0:function(){return st(function(e,n,i,a,d){let _=A(e).call(A(n),A(i),A(a),A(d));return x(_)},arguments)},__wbg_length_589238bdcf171f0e:function(e){return A(e).length},__wbg_new_81880fb5002cb255:function(e){let n=new Uint8Array(A(e));return x(n)},__wbg_new_typed_00a409eb4ec4f2d9:function(e,n){try{var i={a:e,b:n},a=(_,c)=>{let s=i.a;i.a=0;try{return n_(s,i.b,_,c)}finally{i.a=s}};let d=new Promise(a);return x(d)}finally{i.a=0}},__wbg_prototypesetcall_d721637c7ca66eb8:function(e,n,i){Uint8Array.prototype.set.call(f(e,n),A(i))},__wbg_queueMicrotask_1c9b3800e321a967:function(e){let n=A(e).queueMicrotask;return x(n)},__wbg_queueMicrotask_311744e534a929a3:function(e){queueMicrotask(A(e))},__wbg_resolve_d82363d90af6928a:function(e){let n=Promise.resolve(A(e));return x(n)},__wbg_static_accessor_GLOBAL_THIS_2fee5048bcca5938:function(){let e=typeof globalThis>"u"?null:globalThis;return B(e)?0:x(e)},__wbg_static_accessor_GLOBAL_ce44e66a4935da8c:function(){let e=typeof global>"u"?null:global;return B(e)?0:x(e)},__wbg_static_accessor_SELF_44f6e0cb5e67cdad:function(){let e=typeof self>"u"?null:self;return B(e)?0:x(e)},__wbg_static_accessor_WINDOW_168f178805d978fe:function(){let e=typeof window>"u"?null:window;return B(e)?0:x(e)},__wbg_then_05edfc8a4fea5106:function(e,n,i){let a=A(e).then(A(n),A(i));return x(a)},__wbg_then_591b6b3a75ee817a:function(e,n){let i=A(e).then(A(n));return x(i)},__wbindgen_cast_0000000000000001:function(e,n){let i=i_(e,n,e_);return x(i)},__wbindgen_cast_0000000000000002:function(e){return x(e)},__wbindgen_cast_0000000000000003:function(e,n){let i=f(e,n);return x(i)},__wbindgen_cast_0000000000000004:function(e,n){let i=E(e,n);return x(i)},__wbindgen_cast_0000000000000005:function(e,n){var i=f(e,n).slice();return t.__wbindgen_export3(e,n*1,1),x(i)},__wbindgen_object_clone_ref:function(e){let n=A(e);return x(n)},__wbindgen_object_drop_ref:function(e){u(e)}}}}function e_(o,e,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16);t.__wasm_bindgen_func_elem_3171(d,o,e,x(n));var i=r().getInt32(d+0,!0),a=r().getInt32(d+4,!0);if(a)throw u(i)}finally{t.__wbindgen_add_to_stack_pointer(16)}}function n_(o,e,n,i){t.__wasm_bindgen_func_elem_3186(o,e,x(n),x(i))}var wt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(o=>t.__wbg_exrbench_free(o,1)),bt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(o=>t.__wbg_exrstreamencoder_free(o,1)),lt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(o=>t.__wbg_proresbench_free(o,1)),ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(o=>t.__wbg_proresmovencoder_free(o,1)),vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(o=>t.__wbg_proresmovwriter_free(o,1));function x(o){X===z.length&&z.push(z.length+1);let e=X;return X=z[e],z[e]=o,e}var xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(o=>t.__wbindgen_export2(o.a,o.b));function r_(o){o<1028||(z[o]=X,X=o)}function __(o,e){return o=o>>>0,yt().subarray(o/8,o/8+e)}function gt(o,e){return o=o>>>0,mt().subarray(o/2,o/2+e)}function nt(o,e){return o=o>>>0,ht().subarray(o/4,o/4+e)}function f(o,e){return o=o>>>0,P().subarray(o/1,o/1+e)}var U=null;function r(){return(U===null||U.buffer.detached===!0||U.buffer.detached===void 0&&U.buffer!==t.memory.buffer)&&(U=new DataView(t.memory.buffer)),U}var N=null;function o_(){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 E(o,e){return d_(o>>>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(o){return z[o]}function st(o,e){try{return o.apply(this,e)}catch(n){t.__wbindgen_export(x(n))}}var z=new Array(1024).fill(void 0);z.push(void 0,null,!0,!1);var X=z.length;function B(o){return o==null}function i_(o,e,n){let i={a:o,b:e,cnt:1},a=(...d)=>{i.cnt++;let _=i.a;i.a=0;try{return n(_,i.b,...d)}finally{i.a=_,a._wbg_cb_unref()}};return a._wbg_cb_unref=()=>{--i.cnt===0&&(t.__wbindgen_export2(i.a,i.b),i.a=0,xt.unregister(i))},xt.register(a,i,i),a}function W(o,e){let n=e(o.length*2,2)>>>0;return mt().set(o,n/2),p=o.length,n}function L(o,e){let n=e(o.length*4,4)>>>0;return ht().set(o,n/4),p=o.length,n}function l(o,e){let n=e(o.length*1,1)>>>0;return P().set(o,n/1),p=o.length,n}function ot(o,e){let n=e(o.length*4,4)>>>0;return o_().set(o,n/4),p=o.length,n}function Y(o,e){let n=e(o.length*8,8)>>>0;return yt().set(o,n/8),p=o.length,n}function y(o,e,n){if(n===void 0){let c=$.encode(o),s=e(c.length,1)>>>0;return P().subarray(s,s+c.length).set(c),p=c.length,s}let i=o.length,a=e(i,1)>>>0,d=P(),_=0;for(;_<i;_++){let c=o.charCodeAt(_);if(c>127)break;d[a+_]=c}if(_!==i){_!==0&&(o=o.slice(_)),a=n(a,i,i=_+o.length*3,1)>>>0;let c=P().subarray(a+_,a+i),s=$.encodeInto(o,c);_+=s.written,a=n(a,i,_,1)>>>0}return p=_,a}function u(o){let e=A(o);return r_(o),e}var _t=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});_t.decode();var a_=2146435072,pt=0;function d_(o,e){return pt+=e,pt>=a_&&(_t=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),_t.decode(),pt=e),_t.decode(P().subarray(o,o+e))}var $=new TextEncoder;"encodeInto"in $||($.encodeInto=function(o,e){let n=$.encode(o);return e.set(n),{read:o.length,written:n.length}});var p=0,c_,s_,t;function kt(o,e){return s_=o,t=o.exports,c_=e,U=null,N=null,H=null,G=null,V=null,K=null,t}async function p_(o,e){if(typeof Response=="function"&&o instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(o,e)}catch(a){if(o.ok&&n(o.type)&&o.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 i=await o.arrayBuffer();return await WebAssembly.instantiate(i,e)}else{let i=await WebAssembly.instantiate(o,e);return i instanceof WebAssembly.Instance?{instance:i,module:o}:i}function n(i){switch(i){case"basic":case"cors":case"default":return!0}return!1}}function g_(o){if(t!==void 0)return t;o!==void 0&&(Object.getPrototypeOf(o)===Object.prototype?{module:o}=o:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let e=It();o instanceof WebAssembly.Module||(o=new WebAssembly.Module(o));let n=new WebAssembly.Instance(o,e);return kt(n,o)}async function rt(o){if(t!==void 0)return t;o!==void 0&&(Object.getPrototypeOf(o)===Object.prototype?{module_or_path:o}=o:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),o===void 0&&(o=new URL("media_core_bg.wasm",import.meta.url));let e=It();(typeof o=="string"||typeof Request=="function"&&o instanceof Request||typeof URL=="function"&&o instanceof URL)&&(o=fetch(o));let{instance:n,module:i}=await p_(await o,e);return kt(n,i)}var b_=import.meta.env?.MODE==="development"?["conform.tools","localhost"]:["conform.tools"];var ut=null,u_=!1;function w_(o){return ut||(ut=(async()=>{if(o!==void 0)return rt(o);if(typeof process<"u"&&process.versions?.node){let n="node:fs/promises",{readFile:i}=await import(n),a=await i(new URL("./wasm/media_core_bg.wasm",import.meta.url));return rt({module_or_path:a})}let{default:e}=await import("./media_core_bg-FDL7GJZP.js");return rt({module_or_path:e})})().then(e=>(u_=!0,e))),ut}function I_(){return w_()}export{et as a,Ft as b,Lt as c,zt as d,Xt as e,Jt as f,Qt as g,te as h,ie as i,ae as j,ce as k,se as l,pe as m,ge as n,be as o,le as p,ve as q,Ie as r,Me as s,Se as t,ze as u,Ue as v,Be as w,Pe as x,Ce as y,qe as z,Ne as A,Ge as B,Ke as C,Xe as D,Ye as E,Je as F,Qe as G,Ze as H,tn as I,nn as J,on as K,dn as L,cn as M,sn as N,pn as O,un as P,wn as Q,bn as R,ln as S,fn as T,En as U,Sn as V,zn as W,Cn as X,qn as Y,Nn as Z,Hn as _,Gn as $,Vn as aa,Kn as ba,Xn as ca,Yn as da,Jn as ea,Qn as fa,tr as ga,er as ha,nr as ia,rr as ja,_r as ka,or as la,dr as ma,cr as na,sr as oa,pr as pa,wr as qa,lr as ra,xr as sa,Ir as ta,yr as ua,hr as va,Ar as wa,Mr as xa,Fr as ya,Wr as za,Sr as Aa,Hr as Ba,Vr as Ca,Xr as Da,Zr as Ea,t_ as Fa,At as Ga,I_ as Ha};
|
|
@@ -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{
|
|
3
|
+
import{Tc as d}from"./chunk-VCBLWNQR.js";import{A as l,B as p,E as m,ba as f,n as c,y as u}from"./chunk-GTPTZRO6.js";import o from"node:process";import{readFileSync as g,rmSync as h}from"node:fs";import{createConnection as w}from"node:net";var x=new Set(["tool_run","app","tool"]),s=()=>f(c(),"engine.json");async function I(e,r){await p(c()),await l(s(),JSON.stringify({port:e,token:r||void 0,pid:o.pid})),await m(s(),384);for(let t of["SIGINT","SIGTERM"])o.on(t,()=>o.exit(0));o.on("exit",()=>{try{JSON.parse(g(s(),"utf8")).pid===o.pid&&h(s())}catch{}})}function S(e,r=1500){return new Promise(t=>{let n=w({host:"127.0.0.1",port:e}),i=y=>{clearTimeout(a),n.destroy(),t(y)},a=setTimeout(()=>i(!1),r);n.once("connect",()=>i(!0)).once("error",()=>i(!1))})}async function O(e,r){if(!x.has(e))return null;let t;try{t=JSON.parse(await u(s()))}catch{return null}if(t.pid===o.pid||!await S(t.port))return null;let n;try{n=await fetch(`http://127.0.0.1:${t.port}/verbs/${e}`,{method:"POST",body:JSON.stringify(r),headers:{"content-type":"application/json","x-conform-client":d()??"mcp",...t.token?{authorization:`Bearer ${t.token}`}:{}}})}catch{return null}if(n.status===401||n.status===404)return null;let{text:i,...a}=await n.json();return{content:[{type:"text",text:i??""}],structuredContent:a,isError:!n.ok}}export{I as a,O as b};
|
|
@@ -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{Ha as n,K as f,aa as s}from"./chunk-QNF4NMIW.js";async function c(t){await n();let e=s(t);return e==="null"?null:JSON.parse(e)}async function l(t){await n();let e;try{e=f(t)}catch{return null}if(e.length<8)return null;let r=new DataView(e.buffer,e.byteOffset,e.byteLength),i=r.getUint32(0,!0),a=r.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))}}export{c as a,l as b};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
|
|
3
|
-
import{Fb as L,Gb as A,Hb as E,Ib as P,Jb as T,Kb as M,Lb as
|
|
4
|
-
`)};let h,g=[];if(t.accept?.length){h=[];for(let e of t.accept){let n=a.rows.find(
|
|
3
|
+
import{Fb as L,Gb as A,Hb as E,Ib as P,Jb as T,Kb as M,Lb as N,Mb as D,Nb as z,Ob as B,Pb as I,sb as S}from"./chunk-VCBLWNQR.js";import{a as b}from"./chunk-ROGMKTND.js";import{_ as p,t as R}from"./chunk-GTPTZRO6.js";async function W(r,t){let c=t.media_root?[t.media_root]:await z();if(!c.length)throw new b("invalid_args","no media_root given and no remembered locations \u2014 pass the folder to link from");for(let e of c)try{if(!(await R(e)).isDirectory)throw 0}catch{throw new b("invalid_args",`media_root is not a folder on this machine: ${e}`)}let i=A(r,{ref_ids:t.ref_ids,lane:t.lane,reset:t.reset});if(!i.length)return{session:r,changed:!1,note:"",text:"nothing in scope: every reference in scope is already linked (use reset=true to re-point) or the ids/lane matched nothing"};if(t.reset)for(let e of i)e.binding_state="unbound",delete e.coverage_reason;let m=[],k=!1,u=[];for(let e of c)if(t.gather==="path")for(let n of i){let l=n.local_path??n.target_url??"",o=l?await P(e,l):null;o?m.push(o):u.push(`${n.id} ${p(l)}: not at its recorded path under ${e}`)}else{let n=await E(e,i,t.cap,{byName:t.criteria?.file_name!==!1,exts:t.criteria?.extensions});m.push(...n.paths),k||=n.capped}let{refs:$,failed:_}=await T([...new Set(m)]);t.remember&&t.media_root&&await B(t.media_root);let y=new Set(i.map(e=>e.id)),f=S(r,$,y);if(f.splits.length){r=f.session;let e=new Set([...y,...f.splits.flatMap(n=>n.into)]);i=(r.media_references??[]).filter(n=>e.has(n.id));for(let n of f.splits){let l=o=>p(i.find(G=>G.id===o)?.target_url??o);u.push(`split ${n.ref_id} across ${n.into.length} section file(s): ${n.into.map(l).join(", ")}`)}}let d=L(t.criteria),a=M(r,i,$,d,t.tolerances),O=t.criteria?.picture?await N(r,a):[],s=e=>a.rows.filter(n=>n.status===e).length,U=c.map(e=>e.split(/[\\/]/).filter(Boolean).pop()??e).join(", "),v=[`${t.dry_run?"would link":"found"} ${s("matched")} of ${i.length} clip${i.length===1?"":"s"} in ${U}${s("ambiguous")?`, ${s("ambiguous")} with more than one match`:""}${i.length-s("matched")-s("ambiguous")?`, ${i.length-s("matched")-s("ambiguous")} not found there`:""}${t.dry_run?" (dry run: nothing changed)":""}`,`scope: ${i.length} reference(s)${t.lane!=="both"?` (${t.lane} lane)`:""}${t.ref_ids?` (zone of ${t.ref_ids.length})`:""}; gather=${t.gather} under ${c.join(", ")}: ${$.length} candidate clip(s)${k?` (CAPPED at ${t.cap} \u2014 narrow the folder)`:""}`,`criteria: ${[...Object.entries(d).filter(([,e])=>e===!0).map(([e])=>e),...t.criteria?.picture?["picture"]:[]].join(", ")}${d.fileName?` (${d.fileNameMode})`:""}${d.fileExtensions?`; ext ${d.fileExtensions}`:""}; timecode containment + fps always on`,..._.length?[`could not probe ${_.length}: ${_.slice(0,5).join("; ")}`]:[],...u.slice(0,20),...O.slice(0,40)];if(t.dry_run)return{session:r,changed:!1,note:"",text:[...v,I(r,a,{compare:t.compare}),"(dry run \u2014 nothing changed; pass accept=[{ref_id,candidate_id}] to commit chosen rows, or run again without dry_run to apply every matched row)"].join(`
|
|
4
|
+
`)};let h,g=[];if(t.accept?.length){h=[];for(let e of t.accept){let n=a.rows.find(o=>o.ref_id===e.ref_id);n&&(n.candidate?.id===e.candidate_id||n.alternatives.some(o=>o.id===e.candidate_id))?h.push(e):g.push(`${e.ref_id} \u2192 ${e.candidate_id}: not a proposed match or alternative for that reference`)}}else h=a.rows.filter(e=>e.status==="matched"&&e.candidate).map(e=>({ref_id:e.ref_id,candidate_id:e.candidate.id}));let w=D(r,a,h),x=w.session.media_references??[],j=x.filter(e=>i.some(n=>n.id===e.id)&&e.binding_state==="linked").length,q=w.applied,C=x.filter(e=>i.some(n=>n.id===e.id)&&e.binding_state!=="linked").map(e=>` - ${e.id} ${p(e.target_url??"")}: ${e.coverage_reason??(a.rows.find(n=>n.ref_id===e.id)?.status==="ambiguous"?"ambiguous \u2014 pick one with accept":"no file matched")}`),F=[...v,`Linked ${j} of ${i.length}${g.length?`; ${g.length} pick(s) vetoed`:""}`,...q.map(e=>`- ${e.ref_id}: ${p(e.before.path??"?")} \u2192 ${e.after.path}${e.warning?` \u26A0 ${e.warning}`:""}`),...g.map(e=>` \u2717 ${e}`),...C.length?["unresolved:",...C]:[]].join(`
|
|
5
5
|
`);return{session:w.session,changed:!0,note:`relink ${t.gather} ${c[0]} (${j}/${i.length})`,text:F}}export{W as a};
|
|
@@ -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{a as F}from"./chunk-ROGMKTND.js";import{A as S,B as m,D as v,F as x,G as g,H as D,M as $,ba as a,n as _,t as b,u as p}from"./chunk-GTPTZRO6.js";var R="_originalframes",y="zAPPLIED_PATCHES",u=t=>t.replace(/[\\/][^\\/]+[\\/]?$/,""),k=()=>a(_(),"move-undo");async function P(t){let n=[];for await(let o of $(t))o.isFile&&!o.name.startsWith(".")&&n.push(o.name);return n.sort()}async function T(t){let n=[];for await(let o of $(u(t)))o.isDirectory&&/patch/i.test(o.name)&&o.name!==y&&n.push(o.name);return n.sort()}async function A(t,n){let o=new Set(await P(t)),e=[];for(let r of n){let s=a(u(t),r);if(await p(s))for(let w of await P(s))e.push({file:w,folder:r,replaces:o.has(w)})}return e}async function j(t,n,o){if(!await p(t)||!(await b(t)).isDirectory)throw new F("invalid_args",`not a folder: ${t}`);let e=u(t),r=[],s=[];for(let i of await A(t,n)){if(o&&!o.has(`${i.folder}/${i.file}`))continue;if(!i.replaces){r.push(`${i.file}: not in the sequence`);continue}let f=a(t,i.file),c=a(e,i.folder,i.file),l=`${t}${R}`,h=a(l,i.file);for(let d=1;await p(h);d++)h=a(`${t}${R}${String(d).padStart(2,"0")}`,i.file);await m(u(h));try{await g(f,h)}catch(d){r.push(`${i.file}: ${d.message}`);continue}try{await x(c,f)}catch(d){await g(h,f).catch(()=>{}),r.push(`${i.file}: ${d.message}`);continue}s.push({file:i.file,backup:h,patch_src:c,applied:c,folder:i.folder}),l=""}let w=[];if(s.length){let i=a(e,y);await m(i);for(let f of new Set(s.map(c=>c.folder))){let c=a(i,f);for(let l=1;await p(c);l++)c=a(i,`${f}_${l}`);try{await g(a(e,f),c),w.push({from:a(e,f),to:c});for(let l of s)l.folder===f&&(l.applied=a(c,l.file))}catch(l){r.push(`${f}: not filed under ${y} (${l.message})`)}}}if(!s.length)return{patched:0,errors:r};let E=`files-${Date.now().toString(36)}`;return await m(k()),await S(a(k(),`${E}.json`),JSON.stringify({patch:!0,sequence:t,entries:s.map(({folder:i,...f})=>f),folders:w})),{patched:s.length,errors:r,undo_id:E}}async function L(t){let n=[];for(let e of t.folders)await p(e.to)&&!await p(e.from)&&await g(e.to,e.from).catch(r=>n.push({path:e.to,error:r.message}));let o=0;for(let e of t.entries){let r=a(t.sequence,e.file);if(await p(e.backup))try{await p(r)&&await v(r),await g(e.backup,r),o++}catch(s){n.push({path:r,error:s.message})}}for(let e of new Set([...t.entries.map(r=>u(r.backup)),...t.folders.map(r=>u(r.to))]))if(await p(e)&&!(await P(e)).length){let r=!0;for await(let s of $(e)){r=!1;break}r&&await D(e).catch(()=>{})}return{restored:o,failed:n}}export{R as a,y as b,T as c,A as d,j as e,L as f};
|
|
@@ -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{Ha as t,Y as u,q as s}from"./chunk-QNF4NMIW.js";async function c(n){await t();let e=u(n);return e==="null"?null:JSON.parse(e)}async function g(n){await t();let e;try{e=s(n)}catch{return null}if(e.length<8)return null;let r=new DataView(e.buffer,e.byteOffset,e.byteLength),a=r.getUint32(0,!0),i=r.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))}}export{c as a,g as b};
|
|
@@ -1,6 +1,6 @@
|
|
|
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 as w,F as y,a as h,ba as c,n as x,o as k,u,y as C}from"./chunk-
|
|
3
|
+
import{A,B as w,F as y,a as h,ba as c,n as x,o as k,u,y as C}from"./chunk-GTPTZRO6.js";var O=new Set(["ffmpeg","ffprobe","ffplay","sox","soxi","mediainfo","exiftool","mkvmerge","mkvextract","mp4box","bmxtranswrap","raw2rgb","redline","art-cmd","oiiotool","iconvert","idiff","asdcp-wrap","asdcp-unwrap","asdcp-info","opendcp","dcp_inspect","handbrakecli","gst-launch-1.0","mencoder","mplayer","sips","afconvert","avconvert","qtfaststart","mediaconch","bwfmetaedit","x264","x265","aomenc","svtav1encapp","otiotool","otioconvert","otioview","cineform","ale2csv"]),I=["mov","mp4","m4v","mxf","mkv","avi","webm","mts","m2ts","mpg","mpeg","r3d","braw","ari","arx","crm","dng","dpx","exr","wav","aif","aiff","bwf","flac","mp3","aac","m4a","caf"],N=["aaf","avb","edl","drt","otio","fcpxml","fcpxmld","prproj","ptx","ale","xml","csv"],U=new Set(["xml","csv","png","jpg","jpeg","tif","tiff"]),L=new Set([...I,...N,...U]);var m="conformtools-hook",d=o=>o&&typeof o=="object"&&!Array.isArray(o)?o:{},g=o=>!!o&&typeof o=="object"&&typeof o.command=="string"&&o.command.includes(m);function $(o,e,t={}){let n=d(o.hooks),r=Array.isArray(n.PostToolUse)?[...n.PostToolUse]:[],s={type:"command",command:e,timeout:10,...t.async?{async:!0}:{}};for(let i=0;i<r.length;i++){let a=d(r[i]),l=Array.isArray(a.hooks)?a.hooks:[],f=l.findIndex(g);if(f<0)continue;if(JSON.stringify(l[f])===JSON.stringify(s)&&a.matcher==="Bash")return{settings:o,result:"kept"};let b=[...l];return b[f]=s,r[i]={...a,matcher:"Bash",hooks:b},{settings:{...o,hooks:{...n,PostToolUse:r}},result:"updated"}}return{settings:{...o,hooks:{...n,PostToolUse:[...r,{matcher:"Bash",hooks:[s]}]}},result:"installed"}}function S(o){let e=d(o.hooks);if(!Array.isArray(e.PostToolUse))return{settings:o,removed:!1};let t=!1,n=e.PostToolUse.map(i=>{let a=d(i);if(!Array.isArray(a.hooks))return i;let l=a.hooks.filter(f=>!g(f));return l.length!==a.hooks.length&&(t=!0),l.length?{...a,hooks:l}:null}).filter(i=>i!==null);if(!t)return{settings:o,removed:!1};let r={...e};n.length?r.PostToolUse=n:delete r.PostToolUse;let s={...o};return Object.keys(r).length?s.hooks=r:delete s.hooks,{settings:s,removed:!0}}function T(o,e,t){let n=d(o.hooks),r=Array.isArray(n.afterShellExecution)?[...n.afterShellExecution]:[],s={command:e,timeout:10,matcher:t},i=r.findIndex(g);return i>=0&&JSON.stringify(r[i])===JSON.stringify(s)?{settings:o,result:"kept"}:(i>=0?r[i]=s:r.push(s),{settings:{version:1,...o,hooks:{...n,afterShellExecution:r}},result:i>=0?"updated":"installed"})}function P(o){let e=d(o.hooks);if(!Array.isArray(e.afterShellExecution))return{settings:o,removed:!1};let t=e.afterShellExecution.filter(s=>!g(s));if(t.length===e.afterShellExecution.length)return{settings:o,removed:!1};let n={...e};t.length?n.afterShellExecution=t:delete n.afterShellExecution;let r={...o};return Object.keys(n).length?r.hooks=n:delete r.hooks,{settings:r,removed:!0}}function E(){return`\\b(${[...O].map(e=>e.replace(/[.+-]/g,"\\$&")).join("|")})\\b|\\.(${[...L].join("|")})\\b`}function F(o){let e=(o??"").toLowerCase();return e?e.includes("claude-code")||e.includes("claude code")?"claude":e.includes("codex")?"codex":e.includes("cursor")?"cursor":null:null}var J=["claude","codex","cursor"],p=()=>({claude:c(k(),".claude","settings.json"),codex:c(k(),".codex","hooks.json"),cursor:c(k(),".cursor","hooks.json")});async function M(){let o=new URL(import.meta.url),e=h(new URL("./hook.js",o));if(await u(e)){await w(x());let n=c(x(),`${m}.js`);return await y(e,n),`node "${n}"`}let t=h(new URL("../adapters/hook.ts",o));return await u(t)?`deno run --allow-read --allow-write --allow-env --no-check --unstable-sloppy-imports "${t}" ${m}`:null}async function v(o){if(!await u(o))return{};let e=await C(o);try{return e.trim()?JSON.parse(e):{}}catch{return"invalid"}}async function j(o,e){let t;return await u(o)?(t=`${o}.conformtools-backup`,await y(o,t)):await w(c(o,"..")),await A(o,JSON.stringify(e,null,2)+`
|
|
4
4
|
`),t}async function B(o,e={}){let t=e.file??p()[o];try{let n=e.command??await M();if(!n)return{client:o,file:t,result:"skipped",detail:"no hook script beside this build"};let r=await v(t);if(r==="invalid")return{client:o,file:t,result:"failed",detail:`${t} is not valid JSON; nothing was changed`};let s=o==="cursor"?T(r,n,E()):$(r,n,{async:o==="codex"});if(s.result==="kept")return{client:o,file:t,result:"kept"};let i=await j(t,s.settings);return{client:o,file:t,result:s.result,backup:i}}catch(n){return{client:o,file:t,result:"failed",detail:n instanceof Error?n.message:String(n)}}}async function z(o,e={}){let t=e.file??p()[o],n=await v(t);if(n==="invalid")return{client:o,file:t,removed:!1};let r=o==="cursor"?P(n):S(n);if(!r.removed)return{client:o,file:t,removed:!1};let s=await j(t,r.settings);return{client:o,file:t,removed:!0,backup:s}}async function R(){let o=p(),e=[];for(let t of J)await u(c(o[t],".."))&&e.push(t);return e}var Z=async()=>Promise.all((await R()).map(o=>B(o))),G=async()=>Promise.all((await R()).map(o=>z(o)));async function D(o,e=p()[o]){let t=await v(e);return t!=="invalid"&&JSON.stringify(t).includes(m)}var H={claude:"Claude Code",codex:"Codex",cursor:"Cursor"},_="which other programs the agent ran on media or timeline files (program names and file extensions only; never a command, a path, a name, a prompt or an output)";function q(o){return o.length?o.map(e=>{let t=H[e.client],n={installed:`${t}: agent hook installed in ${e.file}${e.backup?` (backup: ${e.backup})`:""}`,updated:`${t}: agent hook refreshed in ${e.file}`,kept:`${t}: agent hook already in ${e.file}`,skipped:`${t}: agent hook not installed (${e.detail})`,failed:`${t}: agent hook not installed: ${e.detail}`}[e.result];return e.client==="codex"&&(e.result==="installed"||e.result==="updated")?`${n}; Codex asks you to trust it once (/hooks)`:n}).concat(`It records ${_}. conformtools hooks off removes it; conformtools telemetry off removes it with the rest.`).join(`
|
|
5
5
|
`):"Agent hook: no Claude Code, Codex or Cursor folder on this machine; nothing to install."}function Q(o){let e=o.filter(t=>t.removed);return e.length?e.map(t=>`${H[t.client]}: agent hook removed from ${t.file}`).join(`
|
|
6
6
|
`):"Agent hook: not installed anywhere on this machine."}async function V(){let o=await R();return o.length?[...await Promise.all(o.map(async t=>`${H[t]}: agent hook ${await D(t)?"on":"off"} (${p()[t]})`)),`It records ${_}. conformtools hooks on|off.`].join(`
|
|
@@ -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{b as o}from"./chunk-GTPTZRO6.js";var i="0.6.17";function a(t,n){let r=t.split("-")[0].split(".").map(Number),s=n.split("-")[0].split(".").map(Number);for(let e=0;e<Math.max(r.length,s.length);e++){let l=(r[e]||0)-(s[e]||0);if(l)return l>0}return!1}var p=null;function u(){return o("CONFORM_UPDATE_CHECK")==="off"?Promise.resolve(null):p??=fetch("https://registry.npmjs.org/conformtools/latest",{signal:AbortSignal.timeout(2e3)}).then(t=>t.ok?t.json():null).then(t=>typeof t?.version=="string"?t.version:null).catch(()=>null)}var c="run npx -y conformtools@latest setup claude (or setup codex) once: it registers the server so every new session runs the newest version (npx --prefer-online), then restart the MCP client; if an old global install is shadowing it: npm rm -g conformtools";async function m(){let t=o("CONFORM_APP_VERSION");if(t)return`conform.tools app ${t}`;let n=await u();return`conformtools ${i}`+(n&&a(n,i)?` \u2014 update available: ${n} \u2192 ${c}`:"")}export{i as a,a as b,u as c,c as d,m as e};
|
|
@@ -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{Ha as n,Z as s,r as o}from"./chunk-QNF4NMIW.js";async function p(t){await n();let e=s(t);return e==="null"?null:JSON.parse(e)}async function d(t){await n();let e;try{e=o(t)}catch{return null}if(e.length<8)return null;let r=new DataView(e.buffer,e.byteOffset,e.byteLength),a=r.getUint32(0,!0),i=r.getUint32(4,!0),u=a*i*4;return e.length<8+u?null:{width:a,height:i,rgba:new Uint8ClampedArray(e.subarray(8,8+u))}}export{p as a,d as b};
|