conformtools 0.6.9 → 0.6.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (103) hide show
  1. package/dist/account-GFIQC77T.js +3 -0
  2. package/dist/analysis-engine-4K5K6L53.js +3 -0
  3. package/dist/{bridge-SX5TW4LC.js → bridge-73XMEZLH.js} +1 -1
  4. package/dist/browser/timeline_core_bg.wasm +0 -0
  5. package/dist/chunk-2MJAQROY.js +5 -0
  6. package/dist/{chunk-TXQR2HI2.js → chunk-56EEBHP2.js} +1 -1
  7. package/dist/{chunk-GM6QKY7W.js → chunk-6HZP2OJA.js} +1 -1
  8. package/dist/{chunk-VIBEEWPC.js → chunk-7QUSVHO2.js} +2 -2
  9. package/dist/chunk-CJYLQ3UM.js +5 -0
  10. package/dist/chunk-DFDXSIMI.js +39 -0
  11. package/dist/{chunk-3D3Z4TBR.js → chunk-DGXZB7MO.js} +1 -1
  12. package/dist/{chunk-PLRB2YXJ.js → chunk-DNS4ZYIO.js} +1 -1
  13. package/dist/chunk-DPA26AOI.js +3 -0
  14. package/dist/chunk-E5ENIKNR.js +7 -0
  15. package/dist/{chunk-A7FNR3T5.js → chunk-EEDLRRKU.js} +1 -1
  16. package/dist/{chunk-GTJ3EM6H.js → chunk-GM262EDM.js} +1 -1
  17. package/dist/{chunk-D4WPRRBT.js → chunk-ISKNIQVO.js} +1 -1
  18. package/dist/chunk-JHTMYXJM.js +20 -0
  19. package/dist/chunk-JKOB3U54.js +3 -0
  20. package/dist/{chunk-2BPR6LK6.js → chunk-JXTRQ3UG.js} +1 -1
  21. package/dist/chunk-NQNS4Y2B.js +3 -0
  22. package/dist/chunk-QHXX5GDD.js +440 -0
  23. package/dist/{chunk-NFJHWZJX.js → chunk-TDIY4NRQ.js} +1 -1
  24. package/dist/chunk-UGVGRL5M.js +3 -0
  25. package/dist/chunk-WJ5EWXP2.js +3 -0
  26. package/dist/chunk-XDI6CPPV.js +3 -0
  27. package/dist/chunk-XJNWAQON.js +7 -0
  28. package/dist/chunk-Y2QHZUGL.js +5 -0
  29. package/dist/{chunk-GK4YYKJ6.js → chunk-YC7QDS5U.js} +2 -2
  30. package/dist/chunk-YUO3UWPH.js +3 -0
  31. package/dist/chunk-ZVUKOFUX.js +6 -0
  32. package/dist/{claude-setup-IIWUB4CE.js → claude-setup-OKOPPDMB.js} +1 -1
  33. package/dist/cli.js +2 -2
  34. package/dist/conformtools-analyze +0 -0
  35. package/dist/conformtools-decode +0 -0
  36. package/dist/{cr3-wasm-HLJWEV2S.js → cr3-wasm-NYCB34ND.js} +1 -1
  37. package/dist/{dng-wasm-CQDLPM5V.js → dng-wasm-XCPPBXPZ.js} +1 -1
  38. package/dist/{dpx-wasm-TLGMM7BO.js → dpx-wasm-XACWNFPB.js} +1 -1
  39. package/dist/engine-274GQLUB.js +5 -0
  40. package/dist/{exr-wasm-2NPKPTVB.js → exr-wasm-FQBUR6QT.js} +1 -1
  41. package/dist/flame/hook/conformtools_flame/verbs.py +9 -9
  42. package/dist/framing-BKTUEUZO.js +3 -0
  43. package/dist/gfx-worker.js +1 -1
  44. package/dist/{h264-JJMZSUWW.js → h264-B2TLLEMI.js} +1 -1
  45. package/dist/{h264-mxf-DCUOGLDU.js → h264-mxf-3GED5PBT.js} +1 -1
  46. package/dist/host-relink-PTV44KXF.js +10 -0
  47. package/dist/hosts-D3TR2QEV.js +3 -0
  48. package/dist/http.js +2 -2
  49. package/dist/{inspect-FJKYPEXL.js → inspect-D3WEYL2W.js} +3 -3
  50. package/dist/{isobmff-VJOWP4MH.js → isobmff-C5A2EFKH.js} +1 -1
  51. package/dist/{mc-video-5MGGOQN4.js → mc-video-ARKIHPA7.js} +1 -1
  52. package/dist/mcp.js +1 -1
  53. package/dist/{media-NZYVREUF.js → media-3YMIZSSF.js} +1 -1
  54. package/dist/media_core-XOKN7UUF.js +9 -0
  55. package/dist/mxf-CQSI6H5T.js +3 -0
  56. package/dist/nuke/panel/python/conformtools_nuke/verbs.py +5 -5
  57. package/dist/{ops-X7NAREC4.js → ops-BCTGDBXT.js} +1 -1
  58. package/dist/peer-kit/ctpeer/__init__.py +1 -1
  59. package/dist/peer-kit/ctpeer/neutral.py +10 -10
  60. package/dist/premiere-uxp/lib/edit.js +94 -9
  61. package/dist/premiere-uxp/lib/markers.js +12 -11
  62. package/dist/premiere-uxp/lib/probe.js +6 -3
  63. package/dist/premiere-uxp/lib/verbs.js +1 -1
  64. package/dist/premiere-uxp/manifest.json +1 -1
  65. package/dist/{probe-F7WQHMIA.js → probe-COWUTQGN.js} +1 -1
  66. package/dist/{r3d-T5O6IIZZ.js → r3d-FX7V4BIE.js} +1 -1
  67. package/dist/{r3d-CXUNG6VS.js → r3d-I6EYEYX7.js} +1 -1
  68. package/dist/resolve-bridge.py +725 -88
  69. package/dist/sequence-patch-JVEZW24V.js +3 -0
  70. package/dist/{still-P4JJNTEO.js → still-WUCFH2WX.js} +1 -1
  71. package/dist/{still-wasm-DN5LPASS.js → still-wasm-RTPOMH7S.js} +1 -1
  72. package/dist/store-SZKXADGI.js +3 -0
  73. package/dist/{tiff-wasm-BPRDR6EB.js → tiff-wasm-N2S267IA.js} +1 -1
  74. package/dist/timeline-PEUC3G7K.js +3 -0
  75. package/dist/timeline_core-ZKQQHUA2.js +3 -0
  76. package/dist/wasm/media_core_bg.wasm +0 -0
  77. package/dist/wasm-threads/media_core_bg.wasm +0 -0
  78. package/dist/{wav-64SC6P7U.js → wav-HSCUCY4U.js} +1 -1
  79. package/package.json +1 -1
  80. package/dist/account-M53GEV7P.js +0 -3
  81. package/dist/chunk-5BSXYKLN.js +0 -20
  82. package/dist/chunk-623EA3TK.js +0 -6
  83. package/dist/chunk-AMRJXYL4.js +0 -3
  84. package/dist/chunk-DQGINJDV.js +0 -5
  85. package/dist/chunk-GRQJGEGV.js +0 -378
  86. package/dist/chunk-HNBA43BF.js +0 -5
  87. package/dist/chunk-J2JXLEAI.js +0 -3
  88. package/dist/chunk-MWDF2R26.js +0 -7
  89. package/dist/chunk-PFISREY4.js +0 -3
  90. package/dist/chunk-QVH44I66.js +0 -39
  91. package/dist/chunk-RJ6JA2LZ.js +0 -3
  92. package/dist/chunk-SGLQY53R.js +0 -3
  93. package/dist/chunk-WN53ARHJ.js +0 -3
  94. package/dist/chunk-XCKQHL4G.js +0 -9
  95. package/dist/engine-P6H5P6HP.js +0 -5
  96. package/dist/framing-3XIVHSUZ.js +0 -3
  97. package/dist/host-relink-UWML4C7W.js +0 -10
  98. package/dist/hosts-SRS5TEM6.js +0 -3
  99. package/dist/media_core-YZ3PABEG.js +0 -9
  100. package/dist/mxf-FJSRFLJC.js +0 -3
  101. package/dist/store-53BBZBND.js +0 -3
  102. package/dist/timeline-C3OZJBCZ.js +0 -3
  103. package/dist/timeline_core-IOENXK4Z.js +0 -3
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
+ import"./chunk-PSANHDZM.js";function wt(_,n){return new Promise(e=>{_.addEventListener("message",function o({data:a}){a?.type===n&&(_.removeEventListener("message",o),e(a))})})}wt(self,"wasm_bindgen_worker_init").then(async({init:_,receiver:n})=>{let e=await import("./media_core-XOKN7UUF.js");await e.default(_),postMessage({type:"wasm_bindgen_worker_ready"}),e.wbg_rayon_start_worker(n)});var Tt;async function bt(_,n,e){if(e.numThreads()===0)throw new Error("num_threads must be > 0.");let o={type:"wasm_bindgen_worker_init",init:{module_or_path:_,memory:n},receiver:e.receiver()};Tt=await Promise.all(Array.from({length:e.numThreads()},async()=>{let a=new Worker(new URL("./workerHelpers.js",import.meta.url),{type:"module"});return a.postMessage(o),await wt(a,"wasm_bindgen_worker_ready"),a})),e.build()}var et=class{__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,ft.unregister(this),n}free(){let n=this.__destroy_into_raw();t.__wbg_exrbench_free(n,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(n,e,o,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,n,e,o,g,w);var c=r().getInt32(s+0,!0),i=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0);if(d)throw u(i);return this.__wbg_ptr=c,ft.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}piz_stage_block(n){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.exrbench_piz_stage_block(c,this.__wbg_ptr,n);var e=r().getFloat64(c+0,!0),o=r().getInt32(c+8,!0),a=r().getInt32(c+12,!0);if(a)throw u(o);return e}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(n){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.exrbench_zip_stage_block(c,this.__wbg_ptr,n);var e=r().getFloat64(c+0,!0),o=r().getInt32(c+8,!0),a=r().getInt32(c+12,!0);if(a)throw u(o);return e}finally{t.__wbindgen_add_to_stack_pointer(16)}}};Symbol.dispose&&(et.prototype[Symbol.dispose]=et.prototype.free);var nt=class{__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,vt.unregister(this),n}free(){let n=this.__destroy_into_raw();t.__wbg_exrstreamencoder_free(n,0)}block_rows(){return t.exrstreamencoder_block_rows(this.__wbg_ptr)>>>0}finish(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_finish(i,this.__wbg_ptr);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}header(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_header(a,this.__wbg_ptr);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}n_blocks(){return t.exrstreamencoder_n_blocks(this.__wbg_ptr)>>>0}constructor(n,e,o,a,c,i,d,s,g,w){try{let I=t.__wbindgen_add_to_stack_pointer(-16),k=y(o,t.__wbindgen_export4,t.__wbindgen_export5),A=p,F=y(a,t.__wbindgen_export4,t.__wbindgen_export5),R=p,z=y(c,t.__wbindgen_export4,t.__wbindgen_export5),M=p,T=y(i,t.__wbindgen_export4,t.__wbindgen_export5),U=p,O=y(s,t.__wbindgen_export4,t.__wbindgen_export5),q=p;t.exrstreamencoder_new(I,n,e,k,A,F,R,z,M,T,U,d,O,q,g,w);var b=r().getInt32(I+0,!0),x=r().getInt32(I+4,!0),m=r().getInt32(I+8,!0);if(m)throw u(x);return this.__wbg_ptr=b,vt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_block(n){try{let d=t.__wbindgen_add_to_stack_pointer(-16);t.exrstreamencoder_push_block(d,this.__wbg_ptr,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}rows_remaining(){return t.exrstreamencoder_rows_remaining(this.__wbg_ptr)>>>0}staging_ptr(){return t.exrstreamencoder_staging_ptr(this.__wbg_ptr)>>>0}staging_samples(){return t.exrstreamencoder_staging_samples(this.__wbg_ptr)>>>0}};Symbol.dispose&&(nt.prototype[Symbol.dispose]=nt.prototype.free);var rt=class{__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,xt.unregister(this),n}free(){let n=this.__destroy_into_raw();t.__wbg_proresbench_free(n,0)}constructor(n,e,o,a){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=y(o,t.__wbindgen_export4,t.__wbindgen_export5),w=p;t.proresbench_new(s,n,e,g,w,a);var c=r().getInt32(s+0,!0),i=r().getInt32(s+4,!0),d=r().getInt32(s+8,!0);if(d)throw u(i);return this.__wbg_ptr=c,xt.register(this,this.__wbg_ptr,this),this}finally{t.__wbindgen_add_to_stack_pointer(16)}}stage(n){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.proresbench_stage(c,this.__wbg_ptr,n);var e=r().getFloat64(c+0,!0),o=r().getInt32(c+8,!0),a=r().getInt32(c+12,!0);if(a)throw u(o);return e}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&&(rt.prototype[Symbol.dispose]=rt.prototype.free);var _t=class{__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,It.unregister(this),n}free(){let n=this.__destroy_into_raw();t.__wbg_proresmovencoder_free(n,0)}add_frame_rgba(n){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(n,t.__wbindgen_export4),i=p;t.proresmovencoder_add_frame_rgba(a,this.__wbg_ptr,c,i);var e=r().getInt32(a+0,!0),o=r().getInt32(a+4,!0);if(o)throw u(e)}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 n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}frame_count(){return t.proresmovencoder_frame_count(this.__wbg_ptr)>>>0}constructor(n,e,o,a){let c=t.proresmovencoder_new(n,e,o,a);return this.__wbg_ptr=c,It.register(this,this.__wbg_ptr,this),this}set_alpha(n){t.proresmovencoder_set_alpha(this.__wbg_ptr,n)}set_bitrate_mbps(n){t.proresmovencoder_set_bitrate_mbps(this.__wbg_ptr,n)}set_qscale(n){t.proresmovencoder_set_qscale(this.__wbg_ptr,n)}};Symbol.dispose&&(_t.prototype[Symbol.dispose]=_t.prototype.free);var ot=class{__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,yt.unregister(this),n}free(){let n=this.__destroy_into_raw();t.__wbg_proresmovwriter_free(n,0)}finish(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_finish(a,this.__wbg_ptr);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}frame_count(){return t.proresmovwriter_frame_count(this.__wbg_ptr)>>>0}header(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_header(a,this.__wbg_ptr);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}mdat_box_header(){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_mdat_box_header(a,this.__wbg_ptr);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}mdat_box_offset(){return t.proresmovwriter_mdat_box_offset(this.__wbg_ptr)}constructor(n,e,o,a){let c=t.proresmovwriter_new(n,e,o,a);return this.__wbg_ptr=c,yt.register(this,this.__wbg_ptr,this),this}push_frame(){try{let i=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_push_frame(i,this.__wbg_ptr);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_sample(n){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(n,t.__wbindgen_export4),i=p;t.proresmovwriter_push_sample(a,this.__wbg_ptr,c,i);var e=r().getInt32(a+0,!0),o=r().getInt32(a+4,!0);if(o)throw u(e)}finally{t.__wbindgen_add_to_stack_pointer(16)}}push_sample_len(n){try{let a=t.__wbindgen_add_to_stack_pointer(-16);t.proresmovwriter_push_sample_len(a,this.__wbg_ptr,n);var e=r().getInt32(a+0,!0),o=r().getInt32(a+4,!0);if(o)throw u(e)}finally{t.__wbindgen_add_to_stack_pointer(16)}}reserve_large_mdat(n){t.proresmovwriter_reserve_large_mdat(this.__wbg_ptr,n)}set_alpha(n){t.proresmovwriter_set_alpha(this.__wbg_ptr,n)}set_bitrate_mbps(n){t.proresmovwriter_set_bitrate_mbps(this.__wbg_ptr,n)}set_par(n,e){t.proresmovwriter_set_par(this.__wbg_ptr,n,e)}set_profile(n){let e=y(n,t.__wbindgen_export4,t.__wbindgen_export5),o=p;t.proresmovwriter_set_profile(this.__wbg_ptr,e,o)}set_qscale(n){t.proresmovwriter_set_qscale(this.__wbg_ptr,n)}set_start_timecode(n,e){t.proresmovwriter_set_start_timecode(this.__wbg_ptr,n,e)}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&&(ot.prototype[Symbol.dispose]=ot.prototype.free);function Nt(_){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.arriraw12_clip_info(c,i,d);var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);return n=o,e=a,j(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function Gt(_,n,e,o){var a=E(o)?0:y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p;let i=t.arriraw_mxf_gpu_frame(v(_),n,e,a,c);return u(i)}function Xt(_,n,e){let o=t.audio_aac_au(v(_),n,e);return u(o)}function Yt(_,n){let e=t.audio_aac_config(v(_),n);return u(e)}function Jt(_,n){let e=t.audio_info(v(_),n);return u(e)}function Kt(_){let n=it(_,t.__wbindgen_export4),e=p;return t.bench_f32_boundary(n,e)}function Qt(_,n,e,o){let a=it(_,t.__wbindgen_export4),c=p;return t.bench_piz_no_huffman(a,c,n,e,o)}function Zt(_,n){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=y(_,t.__wbindgen_export4,t.__wbindgen_export5),s=p;var e=it(n,t.__wbindgen_export4),o=p;t.color_cst(i,d,s,e,o,v(n));var a=r().getInt32(i+0,!0),c=r().getInt32(i+4,!0);if(c)throw u(a)}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $t(_,n,e){let o=W(_,t.__wbindgen_export4),a=p;return t.dci_code_full_depth(o,a,n,e)}function te(_,n,e){return t.dci_frame_cap(_,n,e)>>>0}function ee(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p,w=y(n,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.dci_gpu_colour_patch(d,s,g,w,b);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=ut(e,o).slice();return t.__wbindgen_export3(e,o*2,2),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ne(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=y(_,t.__wbindgen_export4,t.__wbindgen_export5),s=p;t.dci_gpu_colour_tables(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function re(){try{let o=t.__wbindgen_add_to_stack_pointer(-16);t.dci_last_pass_caps(o);var _=r().getInt32(o+0,!0),n=r().getInt32(o+4,!0),e=$(_,n).slice();return t.__wbindgen_export3(_,n*4,4),e}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _e(_,n){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.dci_legal_rates(c,_,n);var e=r().getInt32(c+0,!0),o=r().getInt32(c+4,!0),a=$(e,o).slice();return t.__wbindgen_export3(e,o*4,4),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function oe(_){return t.dci_mq_bench(_)>>>0}function ie(_,n,e,o,a,c,i,d,s,g,w){try{let A=t.__wbindgen_add_to_stack_pointer(-16),F=S(_,t.__wbindgen_export4),R=p,z=l(n,t.__wbindgen_export4),M=p,T=S(e,t.__wbindgen_export4),U=p,O=S(o,t.__wbindgen_export4),q=p,P=S(a,t.__wbindgen_export4),B=p,at=S(c,t.__wbindgen_export4),ct=p,dt=S(i,t.__wbindgen_export4),st=p,zt=S(d,t.__wbindgen_export4),Wt=p;t.dci_pack_tier1(A,F,R,z,M,T,U,O,q,P,B,at,ct,dt,st,zt,Wt,s,g,w);var b=r().getInt32(A+0,!0),x=r().getInt32(A+4,!0),m=r().getInt32(A+8,!0),I=r().getInt32(A+12,!0);if(I)throw u(m);var k=f(b,x).slice();return t.__wbindgen_export3(b,x*1,1),k}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ae(_,n){let e=t.dci_stage_rgba8(_,n);return u(e)}function ce(_,n,e){let o=W(_,t.__wbindgen_export4),a=p;return t.dci_transform_only(o,a,n,e)}function de(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p,w=l(n,t.__wbindgen_export4),b=p;t.decode_arriraw12_luma(d,s,g,w,b);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function se(_,n,e,o){let a=y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_arriraw12_mxf(v(_),n,e,a,c);return u(i)}function pe(_,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(_,t.__wbindgen_export4),w=p,b=l(n,t.__wbindgen_export4),x=p;t.decode_arriraw12_preview(s,g,w,b,x,e);var o=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0),i=r().getInt32(s+12,!0);if(i)throw u(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ge(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p,w=l(n,t.__wbindgen_export4),b=p;t.decode_arriraw12_rgba(d,s,g,w,b);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ue(_,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(_,t.__wbindgen_export4),w=p;t.decode_arriraw_luma(s,g,w,n,e);var o=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0),i=r().getInt32(s+12,!0);if(i)throw u(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function we(_,n,e,o){let a=y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_arriraw_mxf(v(_),n,e,a,c);return u(i)}function be(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.decode_arriraw_preview(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function le(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.decode_arriraw_preview_gray(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function fe(_,n,e,o,a,c,i,d,s){try{let A=t.__wbindgen_add_to_stack_pointer(-16),F=l(_,t.__wbindgen_export4),R=p;var g=E(s)?0:J(s,t.__wbindgen_export4),w=p;t.decode_arriraw_preview_meta(A,F,R,n,e,o,a,c,i,d,g,w);var b=r().getInt32(A+0,!0),x=r().getInt32(A+4,!0),m=r().getInt32(A+8,!0),I=r().getInt32(A+12,!0);if(I)throw u(m);var k=f(b,x).slice();return t.__wbindgen_export3(b,x*1,1),k}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ve(_,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(_,t.__wbindgen_export4),w=p;t.decode_arriraw_rgba(s,g,w,n,e);var o=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0),i=r().getInt32(s+12,!0);if(i)throw u(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function xe(_,n,e,o,a,c,i,d){try{let k=t.__wbindgen_add_to_stack_pointer(-16),A=l(_,t.__wbindgen_export4),F=p;var s=E(d)?0:J(d,t.__wbindgen_export4),g=p;t.decode_arriraw_rgba_meta(k,A,F,n,e,o,a,c,i,s,g);var w=r().getInt32(k+0,!0),b=r().getInt32(k+4,!0),x=r().getInt32(k+8,!0),m=r().getInt32(k+12,!0);if(m)throw u(x);var I=f(w,b).slice();return t.__wbindgen_export3(w,b*1,1),I}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ie(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_arw_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ye(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_arw_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function me(_,n,e,o){let a=t.decode_audio_pcm(v(_),n,e,o);return u(a)}function he(_,n,e,o,a){let c=t.decode_audio_track_pcm(v(_),n,e,o,a);return u(c)}function ke(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_bmp_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ae(_){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(_,t.__wbindgen_export4),i=p;t.decode_braw_gen5log(a,c,i);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Fe(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_braw_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function je(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_braw_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Me(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_braw_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Re(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_cr2_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ze(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_cr2_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function We(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_cr3_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Te(_,n,e,o){let a=y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_crm(v(_),n,e,a,c);return u(i)}function Se(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_dng_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ue(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_dng_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Oe(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_dpx_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Le(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_dpx_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function qe(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_dv_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ee(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_dv_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function De(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_dv_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Pe(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_exr_linear(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Be(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_exr_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ce(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_exr_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ve(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_gif_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function He(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_heic_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ne(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_j2k_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ge(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_j2k_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Xe(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_j2k_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ye(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_jpeg_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Je(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_mpeg2_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ke(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_mpeg2_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Qe(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_mpeg2_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ze(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_png_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $e(_,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(_,t.__wbindgen_export4),w=p;t.decode_prores_band_rgba(s,g,w,n,e);var o=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0),i=r().getInt32(s+12,!0);if(i)throw u(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function tn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_prores_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function en(_,n,e,o){let a=y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_prores_mxf(v(_),n,e,a,c);return u(i)}function nn(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_prores_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function rn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_prores_raw_acescct(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function _n(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_prores_raw_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function on(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_prores_raw_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function an(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_prores_raw_rec2020(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function cn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_prores_raw_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function dn(_,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(_,t.__wbindgen_export4),w=p,b=y(n,t.__wbindgen_export4,t.__wbindgen_export5),x=p,m=l(e,t.__wbindgen_export4),I=p;t.decode_prores_raw_tier(s,g,w,b,x,m,I);var o=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0),i=r().getInt32(s+12,!0);if(i)throw u(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function sn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_prores_rgb16(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function pn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_prores_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function gn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_prores_thumb_dc32(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function un(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_psd_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function wn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_r3d_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function bn(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_r3d_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function ln(_,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(_,t.__wbindgen_export4),w=p,b=l(n,t.__wbindgen_export4),x=p;t.decode_r3d_preview_clip(s,g,w,b,x,e);var o=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0),i=r().getInt32(s+12,!0);if(i)throw u(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function fn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_r3d_rgb16(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function vn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_r3d_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function xn(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p,w=l(n,t.__wbindgen_export4),b=p;t.decode_r3d_rgba_clip(d,s,g,w,b);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function In(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_tga_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function yn(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_tiff_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function mn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_tiff_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function hn(_,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(_,t.__wbindgen_export4),w=p;t.decode_vc3_band_rgba(s,g,w,n,e);var o=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0),i=r().getInt32(s+12,!0);if(i)throw u(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function kn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_vc3_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function An(_,n,e,o){let a=y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_vc3_mxf(v(_),n,e,a,c);return u(i)}function Fn(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_vc3_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function jn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_vc3_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Mn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_webp_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Rn(_){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(_,t.__wbindgen_export4),i=p;t.decode_xocn_index_luma(a,c,i);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function zn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_xocn_luma(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Wn(_,n,e,o){let a=y(o,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.decode_xocn_mxf(v(_),n,e,a,c);return u(i)}function Tn(_,n){try{let d=t.__wbindgen_add_to_stack_pointer(-16),s=l(_,t.__wbindgen_export4),g=p;t.decode_xocn_preview(d,s,g,n);var e=r().getInt32(d+0,!0),o=r().getInt32(d+4,!0),a=r().getInt32(d+8,!0),c=r().getInt32(d+12,!0);if(c)throw u(a);var i=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),i}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Sn(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_xocn_preview_rec709(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Un(_){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(_,t.__wbindgen_export4),i=p;t.decode_xocn_rgb16(a,c,i);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function On(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.decode_xocn_rgba(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ln(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=W(_,t.__wbindgen_export4),b=p;t.encode_dci_j2c(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function qn(_,n,e,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=W(_,t.__wbindgen_export4),m=p,I=y(e,t.__wbindgen_export4,t.__wbindgen_export5),k=p;t.encode_dci_j2c_rgb(b,x,m,n,I,k,o,a,c);var i=r().getInt32(b+0,!0),d=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(i,d).slice();return t.__wbindgen_export3(i,d*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function En(_,n,e,o,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(_,t.__wbindgen_export4),x=p,m=y(n,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.encode_dci_j2c_rgba8(w,b,x,m,I,e,o,a);var c=r().getInt32(w+0,!0),i=r().getInt32(w+4,!0),d=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Dn(_,n,e,o,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=y(o,t.__wbindgen_export4,t.__wbindgen_export5),x=p;t.encode_dci_j2c_staged(w,_,n,e,b,x,a);var c=r().getInt32(w+0,!0),i=r().getInt32(w+4,!0),d=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Pn(_,n,e,o,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=y(o,t.__wbindgen_export4,t.__wbindgen_export5),x=p;t.encode_dci_j2c_staged_modelled(w,_,n,e,b,x,a);var c=r().getInt32(w+0,!0),i=r().getInt32(w+4,!0),d=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Bn(_,n,e,o,a,c,i,d,s,g,w,b,x,m,I){try{let M=t.__wbindgen_add_to_stack_pointer(-16),T=it(_,t.__wbindgen_export4),U=p,O=y(a,t.__wbindgen_export4,t.__wbindgen_export5),q=p,P=y(c,t.__wbindgen_export4,t.__wbindgen_export5),B=p,at=y(i,t.__wbindgen_export4,t.__wbindgen_export5),ct=p,dt=y(x,t.__wbindgen_export4,t.__wbindgen_export5),st=p;t.encode_exr(M,T,U,n,e,o,O,q,P,B,at,ct,d,s,g,w,b,dt,st,m,I);var k=r().getInt32(M+0,!0),A=r().getInt32(M+4,!0),F=r().getInt32(M+8,!0),R=r().getInt32(M+12,!0);if(R)throw u(F);var z=f(k,A).slice();return t.__wbindgen_export3(k,A*1,1),z}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Cn(_,n,e,o,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(_,t.__wbindgen_export4),x=p;t.encode_prores_4444_alpha_mov_rgba(w,b,x,n,e,o,a);var c=r().getInt32(w+0,!0),i=r().getInt32(w+4,!0),d=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Vn(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.encode_prores_4444_alpha_sample_q(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Hn(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Nn(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=W(_,t.__wbindgen_export4),b=p;t.encode_prores_444_sample_cbr_rgb16(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Gn(_,n,e,o,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=W(_,t.__wbindgen_export4),x=p,m=W(a,t.__wbindgen_export4),I=p;t.encode_prores_444_sample_cbr_rgb16_lut(w,b,x,n,e,o,m,I);var c=r().getInt32(w+0,!0),i=r().getInt32(w+4,!0),d=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Xn(_,n,e,o,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(_,t.__wbindgen_export4),x=p;t.encode_prores_mov_rgba(w,b,x,n,e,o,a);var c=r().getInt32(w+0,!0),i=r().getInt32(w+4,!0),d=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Yn(_,n,e){try{let s=t.__wbindgen_add_to_stack_pointer(-16),g=l(_,t.__wbindgen_export4),w=p;t.encode_prores_rgba(s,g,w,n,e);var o=r().getInt32(s+0,!0),a=r().getInt32(s+4,!0),c=r().getInt32(s+8,!0),i=r().getInt32(s+12,!0);if(i)throw u(c);var d=f(o,a).slice();return t.__wbindgen_export3(o,a*1,1),d}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Jn(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Kn(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=W(_,t.__wbindgen_export4),b=p;t.encode_prores_sample_cbr_rgb16(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Qn(_,n,e,o,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=W(_,t.__wbindgen_export4),x=p,m=W(a,t.__wbindgen_export4),I=p;t.encode_prores_sample_cbr_rgb16_lut(w,b,x,n,e,o,m,I);var c=r().getInt32(w+0,!0),i=r().getInt32(w+4,!0),d=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(d);var g=f(c,i).slice();return t.__wbindgen_export3(c,i*1,1),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Zn(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.encode_prores_sample_q(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function $n(_,n,e,o){let a,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=y(_,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.exr_sequence_filename(x,m,I,n,e,o);var i=r().getInt32(x+0,!0),d=r().getInt32(x+4,!0),s=r().getInt32(x+8,!0),g=r().getInt32(x+12,!0),w=i,b=d;if(g)throw w=0,b=0,u(s);return a=w,c=b,j(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,c,1)}}function tr(_,n,e,o,a,c,i,d){let s,g;try{let A=t.__wbindgen_add_to_stack_pointer(-16),F=l(_,t.__wbindgen_export4),R=p,z=l(o,t.__wbindgen_export4),M=p,T=y(d,t.__wbindgen_export4,t.__wbindgen_export5),U=p;t.fit_sizing(A,F,R,n,e,z,M,a,c,i,T,U);var w=r().getInt32(A+0,!0),b=r().getInt32(A+4,!0),x=r().getInt32(A+8,!0),m=r().getInt32(A+12,!0),I=w,k=b;if(m)throw I=0,k=0,u(x);return s=I,g=k,j(I,k)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(s,g,1)}}function er(_){let n=t.initThreadPool(_);return u(n)}function nr(_){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.inspect_arw(c,i,d);var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);return n=o,e=a,j(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function rr(_){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.inspect_cr2(c,i,d);var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);return n=o,e=a,j(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function _r(_){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.inspect_cr3(c,i,d);var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);return n=o,e=a,j(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function or(_){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.inspect_dng(c,i,d);var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);return n=o,e=a,j(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function ir(_){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.inspect_dpx(c,i,d);var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);return n=o,e=a,j(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function ar(_){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.inspect_exr(c,i,d);var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);return n=o,e=a,j(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function cr(_,n,e){let o=y(e,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.inspect_isobmff(v(_),n,o,a);return u(c)}function dr(_){let n,e;try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.inspect_tiff(c,i,d);var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);return n=o,e=a,j(o,a)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function sr(_,n){let e=t.inspect_wav(v(_),n);return u(e)}function pr(_,n){let e=t.is_arriraw12_mxf(v(_),n);return u(e)}function gr(_,n){let e=t.is_arriraw_mxf(v(_),n);return u(e)}function ur(_,n){let e=t.is_crm(v(_),n);return u(e)}function wr(_,n){let e=t.is_prores_mxf(v(_),n);return u(e)}function br(_,n){let e=t.is_vc3_mxf(v(_),n);return u(e)}function lr(_,n){let e=t.is_xavc_mxf(v(_),n);return u(e)}function fr(_,n){let e=t.is_xocn_mxf(v(_),n);return u(e)}function vr(_,n,e){let o=y(e,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.list_isobmff_segments(v(_),n,o,a);return u(c)}function xr(_,n){let e=t.list_mxf_segments(v(_),n);return u(e)}function Ir(_,n){let e=y(n,t.__wbindgen_export4,t.__wbindgen_export5),o=p,a=t.list_r3d_frames(v(_),e,o);return u(a)}function yr(_,n){let e=y(n,t.__wbindgen_export4,t.__wbindgen_export5),o=p,a=t.list_r3d_segments(v(_),e,o);return u(a)}function mr(_,n){let e=t.list_wav_segments(v(_),n);return u(e)}function hr(_,n,e,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(_,t.__wbindgen_export4),m=p,I=S(n,t.__wbindgen_export4),k=p;t.mux_prores_4444_alpha_samples(b,x,m,I,k,e,o,a,c);var i=r().getInt32(b+0,!0),d=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(i,d).slice();return t.__wbindgen_export3(i,d*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function kr(_,n,e,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(_,t.__wbindgen_export4),m=p,I=S(n,t.__wbindgen_export4),k=p;t.mux_prores_samples(b,x,m,I,k,e,o,a,c);var i=r().getInt32(b+0,!0),d=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(i,d).slice();return t.__wbindgen_export3(i,d*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Ar(_,n,e,o,a,c,i,d,s,g,w,b){try{let F=t.__wbindgen_add_to_stack_pointer(-16),R=l(_,t.__wbindgen_export4),z=p,M=S(n,t.__wbindgen_export4),T=p,U=y(i,t.__wbindgen_export4,t.__wbindgen_export5),O=p;t.mux_prores_samples_full(F,R,z,M,T,e,o,a,c,U,O,d,s,g,w,b);var x=r().getInt32(F+0,!0),m=r().getInt32(F+4,!0),I=r().getInt32(F+8,!0),k=r().getInt32(F+12,!0);if(k)throw u(I);var A=f(x,m).slice();return t.__wbindgen_export3(x,m*1,1),A}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Fr(_,n,e,o){let a=t.mxf_au_run(v(_),n,e,o);return u(a)}function jr(_,n){let e=t.mxf_frame_index(v(_),n);return u(e)}function Mr(_,n){let e=t.mxf_gop_map(v(_),n);return u(e)}function Rr(_,n){let e=t.mxf_h264_kind(v(_),n);return u(e)}function zr(_,n){let e,o;try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(_,t.__wbindgen_export4),x=p,m=y(n,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.plan_isobmff_trim(w,b,x,m,I);var a=r().getInt32(w+0,!0),c=r().getInt32(w+4,!0),i=r().getInt32(w+8,!0),d=r().getInt32(w+12,!0),s=a,g=c;if(d)throw s=0,g=0,u(i);return e=s,o=g,j(s,g)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(e,o,1)}}function Wr(_,n,e,o,a){let c=y(a,t.__wbindgen_export4,t.__wbindgen_export5),i=p,d=t.plan_isobmff_trim_reader(v(_),n,e,o,c,i);return u(d)}function Tr(_){let n,e;try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=y(_,t.__wbindgen_export4,t.__wbindgen_export5),b=p;t.plan_mxf_compact_trim(g,w,b);var o=r().getInt32(g+0,!0),a=r().getInt32(g+4,!0),c=r().getInt32(g+8,!0),i=r().getInt32(g+12,!0),d=o,s=a;if(i)throw d=0,s=0,u(c);return n=d,e=s,j(d,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function Sr(_,n,e,o){let a=t.plan_mxf_trim(v(_),n,e,o);return u(a)}function Ur(_,n,e,o,a,c,i,d){let s,g;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=l(_,t.__wbindgen_export4),I=p,k=l(n,t.__wbindgen_export4),A=p,F=l(e,t.__wbindgen_export4),R=p,z=l(o,t.__wbindgen_export4),M=p,T=J(a,t.__wbindgen_export4),U=p,O=J(c,t.__wbindgen_export4),q=p,P=J(i,t.__wbindgen_export4),B=p;t.plan_r3d_compact(x,m,I,k,A,F,R,z,M,T,U,O,q,P,B,d);var w=r().getInt32(x+0,!0),b=r().getInt32(x+4,!0);return s=w,g=b,j(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(s,g,1)}}function Or(_,n,e,o){let a,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=l(_,t.__wbindgen_export4),I=p;t.plan_wav_trim(x,m,I,n,e,o);var i=r().getInt32(x+0,!0),d=r().getInt32(x+4,!0),s=r().getInt32(x+8,!0),g=r().getInt32(x+12,!0),w=i,b=d;if(g)throw w=0,b=0,u(s);return a=w,c=b,j(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,c,1)}}function Lr(_,n,e,o,a){let c=t.plan_wav_trim_reader(v(_),n,e,o,a);return u(c)}function qr(_,n,e,o){let a=y(e,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=y(o,t.__wbindgen_export4,t.__wbindgen_export5),d=p,s=t.prepare_isobmff(v(_),n,a,c,i,d);return u(s)}function Er(_,n,e){let o=y(e,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.prepare_mxf(v(_),n,o,a);return u(c)}function Dr(_,n,e){let o=y(n,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=y(e,t.__wbindgen_export4,t.__wbindgen_export5),i=p,d=t.prepare_r3d(v(_),o,a,c,i);return u(d)}function Pr(_,n,e,o){let a=y(e,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=t.prepare_wav(v(_),n,a,c,o);return u(i)}function Br(_){let n,e;try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.probe_mov(g,w,b);var o=r().getInt32(g+0,!0),a=r().getInt32(g+4,!0),c=r().getInt32(g+8,!0),i=r().getInt32(g+12,!0),d=o,s=a;if(i)throw d=0,s=0,u(c);return n=d,e=s,j(d,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function Cr(_,n){let e=t.probe_mxf(v(_),n);return u(e)}function Vr(_,n){let e=y(n,t.__wbindgen_export4,t.__wbindgen_export5),o=p,a=t.probe_r3d(v(_),e,o);return u(a)}function Hr(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.prores_band_info(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=$(n,e).slice();return t.__wbindgen_export3(n,e*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Nr(_){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(_,t.__wbindgen_export4),i=p;t.prores_raw_container_color(a,c,i);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Gr(){t.prores_reset_rate_control()}function Xr(_){try{let a=t.__wbindgen_add_to_stack_pointer(-16),c=l(_,t.__wbindgen_export4),i=p;t.r3d_gpu_develop_params(a,c,i);var n=r().getInt32(a+0,!0),e=r().getInt32(a+4,!0),o=f(n,e).slice();return t.__wbindgen_export3(n,e*1,1),o}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Yr(_,n,e){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.r3d_index_ranges(i,d,s,n,e);var o=r().getInt32(i+0,!0),a=r().getInt32(i+4,!0),c=$(o,a).slice();return t.__wbindgen_export3(o,a*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Jr(_){let n=l(_,t.__wbindgen_export4),e=p;return t.r3d_is_helium(n,e)!==0}function Kr(_){let n,e;try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.read_arriraw_fcs(g,w,b);var o=r().getInt32(g+0,!0),a=r().getInt32(g+4,!0),c=r().getInt32(g+8,!0),i=r().getInt32(g+12,!0),d=o,s=a;if(i)throw d=0,s=0,u(c);return n=d,e=s,j(d,s)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(n,e,1)}}function Qr(_,n){try{let c=t.__wbindgen_add_to_stack_pointer(-16),i=l(_,t.__wbindgen_export4),d=p;t.read_arriraw_unit_correction(c,i,d,n);var e=r().getInt32(c+0,!0),o=r().getInt32(c+4,!0),a=qt(e,o).slice();return t.__wbindgen_export3(e,o*8,8),a}finally{t.__wbindgen_add_to_stack_pointer(16)}}function Zr(_,n,e,o,a,c,i){let d,s;try{let k=t.__wbindgen_add_to_stack_pointer(-16),A=l(_,t.__wbindgen_export4),F=p,R=l(o,t.__wbindgen_export4),z=p,M=y(i,t.__wbindgen_export4,t.__wbindgen_export5),T=p;t.recover_reframe(k,A,F,n,e,R,z,a,c,M,T);var g=r().getInt32(k+0,!0),w=r().getInt32(k+4,!0),b=r().getInt32(k+8,!0),x=r().getInt32(k+12,!0),m=g,I=w;if(x)throw m=0,I=0,u(b);return d=m,s=I,j(m,I)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(d,s,1)}}function $r(_,n,e,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=W(_,t.__wbindgen_export4),m=p,I=y(c,t.__wbindgen_export4,t.__wbindgen_export5),k=p;t.resample_rgba16(b,x,m,n,e,o,a,I,k);var i=r().getInt32(b+0,!0),d=r().getInt32(b+4,!0),s=r().getInt32(b+8,!0),g=r().getInt32(b+12,!0);if(g)throw u(s);var w=ut(i,d).slice();return t.__wbindgen_export3(i,d*2,2),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function t_(_,n,e,o,a,c){try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=l(_,t.__wbindgen_export4),m=p,I=y(c,t.__wbindgen_export4,t.__wbindgen_export5),k=p;t.resample_rgba8(b,x,m,n,e,o,a,I,k);var i=r().getInt32(b+0,!0),d=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(i,d).slice();return t.__wbindgen_export3(i,d*1,1),w}finally{t.__wbindgen_add_to_stack_pointer(16)}}function e_(){t.reset_dci_rate_state()}function n_(_,n,e,o){try{let g=t.__wbindgen_add_to_stack_pointer(-16),w=l(_,t.__wbindgen_export4),b=p;t.resize_luma_area(g,w,b,n,e,o);var a=r().getInt32(g+0,!0),c=r().getInt32(g+4,!0),i=r().getInt32(g+8,!0),d=r().getInt32(g+12,!0);if(d)throw u(i);var s=f(a,c).slice();return t.__wbindgen_export3(a,c*1,1),s}finally{t.__wbindgen_add_to_stack_pointer(16)}}function r_(_,n,e,o,a){try{let w=t.__wbindgen_add_to_stack_pointer(-16),b=l(_,t.__wbindgen_export4),x=p,m=y(a,t.__wbindgen_export4,t.__wbindgen_export5),I=p;t.rgba8_to_xyz12(w,b,x,n,e,o,m,I);var c=r().getInt32(w+0,!0),i=r().getInt32(w+4,!0),d=r().getInt32(w+8,!0),s=r().getInt32(w+12,!0);if(s)throw u(d);var g=ut(c,i).slice();return t.__wbindgen_export3(c,i*2,2),g}finally{t.__wbindgen_add_to_stack_pointer(16)}}function __(_,n,e,o){let a,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=W(_,t.__wbindgen_export4),I=p,k=l(n,t.__wbindgen_export4),A=p,F=S(e,t.__wbindgen_export4),R=p,z=y(o,t.__wbindgen_export4,t.__wbindgen_export5),M=p;t.shot_crop(x,m,I,k,A,F,R,z,M);var i=r().getInt32(x+0,!0),d=r().getInt32(x+4,!0),s=r().getInt32(x+8,!0),g=r().getInt32(x+12,!0),w=i,b=d;if(g)throw w=0,b=0,u(s);return a=w,c=b,j(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,c,1)}}function o_(_,n,e){let o,a;try{let b=t.__wbindgen_add_to_stack_pointer(-16),x=W(_,t.__wbindgen_export4),m=p,I=l(n,t.__wbindgen_export4),k=p,A=y(e,t.__wbindgen_export4,t.__wbindgen_export5),F=p;t.shot_ramp(b,x,m,I,k,A,F);var c=r().getInt32(b+0,!0),i=r().getInt32(b+4,!0),d=r().getInt32(b+8,!0),s=r().getInt32(b+12,!0),g=c,w=i;if(s)throw g=0,w=0,u(d);return o=g,a=w,j(g,w)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(o,a,1)}}function i_(_,n,e,o){let a,c;try{let x=t.__wbindgen_add_to_stack_pointer(-16),m=W(_,t.__wbindgen_export4),I=p,k=l(n,t.__wbindgen_export4),A=p,F=S(e,t.__wbindgen_export4),R=p,z=y(o,t.__wbindgen_export4,t.__wbindgen_export5),M=p;t.shot_scan(x,m,I,k,A,F,R,z,M);var i=r().getInt32(x+0,!0),d=r().getInt32(x+4,!0),s=r().getInt32(x+8,!0),g=r().getInt32(x+12,!0),w=i,b=d;if(g)throw w=0,b=0,u(s);return a=w,c=b,j(w,b)}finally{t.__wbindgen_add_to_stack_pointer(16),t.__wbindgen_export3(a,c,1)}}function a_(_,n,e,o){let a=y(n,t.__wbindgen_export4,t.__wbindgen_export5),c=p,i=y(e,t.__wbindgen_export4,t.__wbindgen_export5),d=p,s=y(o,t.__wbindgen_export4,t.__wbindgen_export5),g=p,w=t.trim_r3d(v(_),a,c,i,d,s,g);return u(w)}function c_(_){try{let i=t.__wbindgen_add_to_stack_pointer(-16),d=l(_,t.__wbindgen_export4),s=p;t.vc3_band_info(i,d,s);var n=r().getInt32(i+0,!0),e=r().getInt32(i+4,!0),o=r().getInt32(i+8,!0),a=r().getInt32(i+12,!0);if(a)throw u(o);var c=$(n,e).slice();return t.__wbindgen_export3(n,e*4,4),c}finally{t.__wbindgen_add_to_stack_pointer(16)}}function d_(_){t.video_close(_)}function s_(_,n,e,o){let a=t.video_decode(_,n,e,o);return u(a)}function p_(_,n,e){let o=y(e,t.__wbindgen_export4,t.__wbindgen_export5),a=p,c=t.video_frame_index_isobmff_reader(v(_),n,o,a);return u(c)}function g_(_,n){let e=t.video_open(v(_),n);return u(e)}var Z=class _{static __wrap(n){let e=Object.create(_.prototype);return e.__wbg_ptr=n,mt.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){let n=this.__wbg_ptr;return this.__wbg_ptr=0,mt.unregister(this),n}free(){let n=this.__destroy_into_raw();t.__wbg_wbg_rayon_poolbuilder_free(n,0)}build(){t.wbg_rayon_poolbuilder_build(this.__wbg_ptr)}numThreads(){return t.wbg_rayon_poolbuilder_numThreads(this.__wbg_ptr)>>>0}receiver(){return t.wbg_rayon_poolbuilder_receiver(this.__wbg_ptr)>>>0}};Symbol.dispose&&(Z.prototype[Symbol.dispose]=Z.prototype.free);function u_(_){t.wbg_rayon_start_worker(_)}function w_(_,n,e){let o=t.xavc_au(v(_),n,e);return u(o)}function b_(_,n){let e=t.xavc_frame_count(v(_),n);return u(e)}function l_(_,n){let e=t.xocn_frame_count(v(_),n);return u(e)}function f_(_){let n=l(_,t.__wbindgen_export4),e=p;return t.xocn_index_prefix_len(n,e)>>>0}function v_(_){let n=l(_,t.__wbindgen_export4),e=p;return t.xocn_preview_prefix_len(n,e)>>>0}function kt(_){return{__proto__:null,"./media_core_bg.js":{__proto__:null,__wbg___wbindgen_copy_to_typed_array_c5728021fabd0236:function(e,o,a){new Uint8Array(h(a).buffer,h(a).byteOffset,h(a).byteLength).set(f(e,o))},__wbg___wbindgen_is_function_acc5528be2b923f2:function(e){return typeof h(e)=="function"},__wbg___wbindgen_is_undefined_721f8decd50c87a3:function(e){return h(e)===void 0},__wbg___wbindgen_memory_9751d9a3017e7c25:function(){let e=t.memory;return v(e)},__wbg___wbindgen_module_f86f28f0f85995dd:function(){return v(Mt)},__wbg___wbindgen_rethrow_858623e73c3311dc:function(e){throw u(e)},__wbg___wbindgen_throw_ea4887a5f8f9a9db:function(e,o){throw new Error(j(e,o))},__wbg__wbg_cb_unref_33c39e13d73b25f6:function(e){h(e)._wbg_cb_unref()},__wbg_async_4ec36f08efecafdc:function(e){return h(e).async},__wbg_buffer_49b4f592d8036785:function(e){let o=h(e).buffer;return v(o)},__wbg_call_0e855b388e315e17:function(){return tt(function(e,o,a,c){let i=h(e).call(h(o),h(a),h(c));return v(i)},arguments)},__wbg_call_5575218572ead796:function(){return tt(function(e,o,a){let c=h(e).call(h(o),h(a));return v(c)},arguments)},__wbg_call_dd0f909cbc9405d0:function(){return tt(function(e,o,a,c,i){let d=h(e).call(h(o),h(a),h(c),h(i));return v(d)},arguments)},__wbg_data_23c14f7d1102d077:function(e){let o=h(e).data;return v(o)},__wbg_instanceof_Window_0d356b88a2f77c42:function(e){let o;try{o=h(e)instanceof Window}catch{o=!1}return o},__wbg_length_589238bdcf171f0e:function(e){return h(e).length},__wbg_new_476e05fb84d8e4f3:function(e){let o=new Int32Array(h(e));return v(o)},__wbg_new_81880fb5002cb255:function(e){let o=new Uint8Array(h(e));return v(o)},__wbg_new_f85beb941dc6d8aa:function(e,o){try{var a={a:e,b:o},c=(d,s)=>{let g=a.a;a.a=0;try{return lt(g,a.b,d,s)}finally{a.a=g}};let i=new Promise(c);return v(i)}finally{a.a=0}},__wbg_new_typed_00a409eb4ec4f2d9:function(e,o){try{var a={a:e,b:o},c=(d,s)=>{let g=a.a;a.a=0;try{return lt(g,a.b,d,s)}finally{a.a=g}};let i=new Promise(c);return v(i)}finally{a.a=0}},__wbg_new_worker_e68fc8188cc230b5:function(e,o){let a=new Worker(j(e,o));return v(a)},__wbg_of_8737c43050b5546e:function(e,o,a){let c=Array.of(h(e),h(o),h(a));return v(c)},__wbg_postMessage_0162be6e48cf631e:function(){return tt(function(e,o){h(e).postMessage(h(o))},arguments)},__wbg_prototypesetcall_d721637c7ca66eb8:function(e,o,a){Uint8Array.prototype.set.call(f(e,o),h(a))},__wbg_queueMicrotask_1c9b3800e321a967:function(e){let o=h(e).queueMicrotask;return v(o)},__wbg_queueMicrotask_311744e534a929a3:function(e){queueMicrotask(h(e))},__wbg_resolve_d82363d90af6928a:function(e){let o=Promise.resolve(h(e));return v(o)},__wbg_set_onmessage_d05709471e546dca:function(e,o){h(e).onmessage=h(o)},__wbg_startWorkers_8b582d57e92bd2d4:function(e,o,a){let c=bt(u(e),u(o),Z.__wrap(a));return v(c)},__wbg_static_accessor_GLOBAL_THIS_2fee5048bcca5938:function(){let e=typeof globalThis>"u"?null:globalThis;return E(e)?0:v(e)},__wbg_static_accessor_GLOBAL_ce44e66a4935da8c:function(){let e=typeof global>"u"?null:global;return E(e)?0:v(e)},__wbg_static_accessor_SELF_44f6e0cb5e67cdad:function(){let e=typeof self>"u"?null:self;return E(e)?0:v(e)},__wbg_static_accessor_WINDOW_168f178805d978fe:function(){let e=typeof window>"u"?null:window;return E(e)?0:v(e)},__wbg_then_05edfc8a4fea5106:function(e,o,a){let c=h(e).then(h(o),h(a));return v(c)},__wbg_then_591b6b3a75ee817a:function(e,o){let a=h(e).then(h(o));return v(a)},__wbg_then_c768c7c3e60c20ef:function(e,o){let a=h(e).then(h(o));return v(a)},__wbg_value_2f34afb824ffcd9a:function(e){let o=h(e).value;return v(o)},__wbg_waitAsync_134f0b4abc50f1f2:function(e,o,a){let c=Atomics.waitAsync(h(e),o>>>0,a);return v(c)},__wbg_waitAsync_485a8d512901fd53:function(){let e=Atomics.waitAsync;return v(e)},__wbindgen_cast_0000000000000001:function(e,o){let a=pt(e,o,St);return v(a)},__wbindgen_cast_0000000000000002:function(e,o){let a=pt(e,o,Ot);return v(a)},__wbindgen_cast_0000000000000003:function(e,o){let a=pt(e,o,Ut);return v(a)},__wbindgen_cast_0000000000000004:function(e){return v(e)},__wbindgen_cast_0000000000000005:function(e,o){let a=f(e,o);return v(a)},__wbindgen_cast_0000000000000006:function(e,o){let a=j(e,o);return v(a)},__wbindgen_cast_0000000000000007:function(e,o){var a=f(e,o).slice();return t.__wbindgen_export3(e,o*1,1),v(a)},__wbindgen_link_ec60efd85dcca315:function(e){let o=`onmessage = function (ev) {
4
+ let [ia, index, value] = ev.data;
5
+ ia = new Int32Array(ia.buffer);
6
+ let result = Atomics.wait(ia, index, value);
7
+ postMessage(result);
8
+ };
9
+ `,a=typeof URL.createObjectURL>"u"?"data:application/javascript,"+encodeURIComponent(o):URL.createObjectURL(new Blob([o],{type:"text/javascript"})),c=y(a,t.__wbindgen_export4,t.__wbindgen_export5),i=p;r().setInt32(e+4,i,!0),r().setInt32(e+0,c,!0)},__wbindgen_object_clone_ref:function(e){let o=h(e);return v(o)},__wbindgen_object_drop_ref:function(e){u(e)},memory:_||new WebAssembly.Memory({initial:85,maximum:65536,shared:!0})}}}function St(_,n,e){t.__wasm_bindgen_func_elem_884(_,n,v(e))}function Ut(_,n,e){t.__wasm_bindgen_func_elem_3573(_,n,v(e))}function Ot(_,n,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.__wasm_bindgen_func_elem_3571(c,_,n,v(e));var o=r().getInt32(c+0,!0),a=r().getInt32(c+4,!0);if(a)throw u(o)}finally{t.__wbindgen_add_to_stack_pointer(16)}}function lt(_,n,e,o){t.__wasm_bindgen_func_elem_3588(_,n,v(e),v(o))}var ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>t.__wbg_exrbench_free(_,1)),vt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>t.__wbg_exrstreamencoder_free(_,1)),xt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>t.__wbg_proresbench_free(_,1)),It=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>t.__wbg_proresmovencoder_free(_,1)),yt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>t.__wbg_proresmovwriter_free(_,1)),mt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>t.__wbg_wbg_rayon_poolbuilder_free(_,1));function v(_){Y===L.length&&L.push(L.length+1);let n=Y;return Y=L[n],L[n]=_,n}var ht=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(_=>t.__wbindgen_export2(_.a,_.b));function Lt(_){_<1028||(L[_]=Y,Y=_)}function qt(_,n){return _=_>>>0,At().subarray(_/8,_/8+n)}function ut(_,n){return _=_>>>0,Ft().subarray(_/2,_/2+n)}function $(_,n){return _=_>>>0,jt().subarray(_/4,_/4+n)}function f(_,n){return _=_>>>0,D().subarray(_/1,_/1+n)}var C=null;function r(){return(C===null||C.buffer!==t.memory.buffer)&&(C=new DataView(t.memory.buffer)),C}var V=null;function Et(){return(V===null||V.buffer!==t.memory.buffer)&&(V=new Float32Array(t.memory.buffer)),V}var H=null;function At(){return(H===null||H.buffer!==t.memory.buffer)&&(H=new Float64Array(t.memory.buffer)),H}function j(_,n){return Pt(_>>>0,n)}var N=null;function Ft(){return(N===null||N.buffer!==t.memory.buffer)&&(N=new Uint16Array(t.memory.buffer)),N}var G=null;function jt(){return(G===null||G.buffer!==t.memory.buffer)&&(G=new Uint32Array(t.memory.buffer)),G}var X=null;function D(){return(X===null||X.buffer!==t.memory.buffer)&&(X=new Uint8Array(t.memory.buffer)),X}function h(_){return L[_]}function tt(_,n){try{return _.apply(this,n)}catch(e){t.__wbindgen_export(v(e))}}var L=new Array(1024).fill(void 0);L.push(void 0,null,!0,!1);var Y=L.length;function E(_){return _==null}function pt(_,n,e){let o={a:_,b:n,cnt:1},a=(...c)=>{o.cnt++;let i=o.a;o.a=0;try{return e(i,o.b,...c)}finally{o.a=i,a._wbg_cb_unref()}};return a._wbg_cb_unref=()=>{--o.cnt===0&&(t.__wbindgen_export2(o.a,o.b),o.a=0,ht.unregister(o))},ht.register(a,o,o),a}function W(_,n){let e=n(_.length*2,2)>>>0;return Ft().set(_,e/2),p=_.length,e}function S(_,n){let e=n(_.length*4,4)>>>0;return jt().set(_,e/4),p=_.length,e}function l(_,n){let e=n(_.length*1,1)>>>0;return D().set(_,e/1),p=_.length,e}function it(_,n){let e=n(_.length*4,4)>>>0;return Et().set(_,e/4),p=_.length,e}function J(_,n){let e=n(_.length*8,8)>>>0;return At().set(_,e/8),p=_.length,e}function y(_,n,e){if(e===void 0){let d=Q.encode(_),s=n(d.length,1)>>>0;return D().subarray(s,s+d.length).set(d),p=d.length,s}let o=_.length,a=n(o,1)>>>0,c=D(),i=0;for(;i<o;i++){let d=_.charCodeAt(i);if(d>127)break;c[a+i]=d}if(i!==o){i!==0&&(_=_.slice(i)),a=e(a,o,o=i+_.length*3,1)>>>0;let d=D().subarray(a+i,a+o),s=Q.encodeInto(_,d);i+=s.written,a=e(a,o,i,1)>>>0}return p=i,a}function u(_){let n=h(_);return Lt(_),n}var K=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):void 0;K&&K.decode();var Dt=2146435072,gt=0;function Pt(_,n){return gt+=n,gt>=Dt&&(K=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),K.decode(),gt=n),K.decode(D().slice(_,_+n))}var Q=typeof TextEncoder<"u"?new TextEncoder:void 0;Q&&(Q.encodeInto=function(_,n){let e=Q.encode(_);return n.set(e),{read:_.length,written:e.length}});var p=0,Mt,Bt,t;function Rt(_,n,e){if(Bt=_,t=_.exports,Mt=n,C=null,V=null,H=null,N=null,G=null,X=null,typeof e<"u"&&(typeof e!="number"||e===0||e%65536!==0))throw new Error("invalid stack size");return t.__wbindgen_start(e),t}async function Ct(_,n){if(typeof Response=="function"&&_ instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(_,n)}catch(a){if(_.ok&&e(_.type)&&_.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",a);else throw a}let o=await _.arrayBuffer();return await WebAssembly.instantiate(o,n)}else{let o=await WebAssembly.instantiate(_,n);return o instanceof WebAssembly.Instance?{instance:o,module:_}:o}function e(o){switch(o){case"basic":case"cors":case"default":return!0}return!1}}function x_(_,n){if(t!==void 0)return t;let e;_!==void 0&&(Object.getPrototypeOf(_)===Object.prototype?{module:_,memory:n,thread_stack_size:e}=_:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let o=kt(n);_ instanceof WebAssembly.Module||(_=new WebAssembly.Module(_));let a=new WebAssembly.Instance(_,o);return Rt(a,_,e)}async function I_(_,n){if(t!==void 0)return t;let e;_!==void 0&&(Object.getPrototypeOf(_)===Object.prototype?{module_or_path:_,memory:n,thread_stack_size:e}=_:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),_===void 0&&(_=new URL("media_core_bg.wasm",import.meta.url));let o=kt(n);(typeof _=="string"||typeof Request=="function"&&_ instanceof Request||typeof URL=="function"&&_ instanceof URL)&&(_=fetch(_));let{instance:a,module:c}=await Ct(await _,o);return Rt(a,c,e)}export{et as ExrBench,nt as ExrStreamEncoder,rt as ProResBench,_t as ProResMovEncoder,ot as ProResMovWriter,Nt as arriraw12_clip_info,Gt as arriraw_mxf_gpu_frame,Xt as audio_aac_au,Yt as audio_aac_config,Jt as audio_info,Kt as bench_f32_boundary,Qt as bench_piz_no_huffman,Zt as color_cst,$t as dci_code_full_depth,te as dci_frame_cap,ee as dci_gpu_colour_patch,ne as dci_gpu_colour_tables,re as dci_last_pass_caps,_e as dci_legal_rates,oe as dci_mq_bench,ie as dci_pack_tier1,ae as dci_stage_rgba8,ce as dci_transform_only,de as decode_arriraw12_luma,se as decode_arriraw12_mxf,pe as decode_arriraw12_preview,ge as decode_arriraw12_rgba,ue as decode_arriraw_luma,we as decode_arriraw_mxf,be as decode_arriraw_preview,le as decode_arriraw_preview_gray,fe as decode_arriraw_preview_meta,ve as decode_arriraw_rgba,xe as decode_arriraw_rgba_meta,Ie as decode_arw_preview,ye as decode_arw_rgba,me as decode_audio_pcm,he as decode_audio_track_pcm,ke as decode_bmp_rgba,Ae as decode_braw_gen5log,Fe as decode_braw_luma,je as decode_braw_preview,Me as decode_braw_rgba,Re as decode_cr2_preview,ze as decode_cr2_rgba,We as decode_cr3_rgba,Te as decode_crm,Se as decode_dng_preview,Ue as decode_dng_rgba,Oe as decode_dpx_preview,Le as decode_dpx_rgba,qe as decode_dv_luma,Ee as decode_dv_preview,De as decode_dv_rgba,Pe as decode_exr_linear,Be as decode_exr_preview,Ce as decode_exr_rgba,Ve as decode_gif_rgba,He as decode_heic_rgba,Ne as decode_j2k_luma,Ge as decode_j2k_preview,Xe as decode_j2k_rgba,Ye as decode_jpeg_rgba,Je as decode_mpeg2_luma,Ke as decode_mpeg2_preview,Qe as decode_mpeg2_rgba,Ze as decode_png_rgba,$e as decode_prores_band_rgba,tn as decode_prores_luma,en as decode_prores_mxf,nn as decode_prores_preview,rn as decode_prores_raw_acescct,_n as decode_prores_raw_luma,on as decode_prores_raw_preview,an as decode_prores_raw_rec2020,cn as decode_prores_raw_rgba,dn as decode_prores_raw_tier,sn as decode_prores_rgb16,pn as decode_prores_rgba,gn as decode_prores_thumb_dc32,un as decode_psd_rgba,wn as decode_r3d_luma,bn as decode_r3d_preview,ln as decode_r3d_preview_clip,fn as decode_r3d_rgb16,vn as decode_r3d_rgba,xn as decode_r3d_rgba_clip,In as decode_tga_rgba,yn as decode_tiff_preview,mn as decode_tiff_rgba,hn as decode_vc3_band_rgba,kn as decode_vc3_luma,An as decode_vc3_mxf,Fn as decode_vc3_preview,jn as decode_vc3_rgba,Mn as decode_webp_rgba,Rn as decode_xocn_index_luma,zn as decode_xocn_luma,Wn as decode_xocn_mxf,Tn as decode_xocn_preview,Sn as decode_xocn_preview_rec709,Un as decode_xocn_rgb16,On as decode_xocn_rgba,I_ as default,Ln as encode_dci_j2c,qn as encode_dci_j2c_rgb,En as encode_dci_j2c_rgba8,Dn as encode_dci_j2c_staged,Pn as encode_dci_j2c_staged_modelled,Bn as encode_exr,Cn as encode_prores_4444_alpha_mov_rgba,Vn as encode_prores_4444_alpha_sample_q,Hn as encode_prores_444_sample_cbr,Nn as encode_prores_444_sample_cbr_rgb16,Gn as encode_prores_444_sample_cbr_rgb16_lut,Xn as encode_prores_mov_rgba,Yn as encode_prores_rgba,Jn as encode_prores_sample_cbr,Kn as encode_prores_sample_cbr_rgb16,Qn as encode_prores_sample_cbr_rgb16_lut,Zn as encode_prores_sample_q,$n as exr_sequence_filename,tr as fit_sizing,x_ as initSync,er as initThreadPool,nr as inspect_arw,rr as inspect_cr2,_r as inspect_cr3,or as inspect_dng,ir as inspect_dpx,ar as inspect_exr,cr as inspect_isobmff,dr as inspect_tiff,sr as inspect_wav,pr as is_arriraw12_mxf,gr as is_arriraw_mxf,ur as is_crm,wr as is_prores_mxf,br as is_vc3_mxf,lr as is_xavc_mxf,fr as is_xocn_mxf,vr as list_isobmff_segments,xr as list_mxf_segments,Ir as list_r3d_frames,yr as list_r3d_segments,mr as list_wav_segments,hr as mux_prores_4444_alpha_samples,kr as mux_prores_samples,Ar as mux_prores_samples_full,Fr as mxf_au_run,jr as mxf_frame_index,Mr as mxf_gop_map,Rr as mxf_h264_kind,zr as plan_isobmff_trim,Wr as plan_isobmff_trim_reader,Tr as plan_mxf_compact_trim,Sr as plan_mxf_trim,Ur as plan_r3d_compact,Or as plan_wav_trim,Lr as plan_wav_trim_reader,qr as prepare_isobmff,Er as prepare_mxf,Dr as prepare_r3d,Pr as prepare_wav,Br as probe_mov,Cr as probe_mxf,Vr as probe_r3d,Hr as prores_band_info,Nr as prores_raw_container_color,Gr as prores_reset_rate_control,Xr as r3d_gpu_develop_params,Yr as r3d_index_ranges,Jr as r3d_is_helium,Kr as read_arriraw_fcs,Qr as read_arriraw_unit_correction,Zr as recover_reframe,$r as resample_rgba16,t_ as resample_rgba8,e_ as reset_dci_rate_state,n_ as resize_luma_area,r_ as rgba8_to_xyz12,__ as shot_crop,o_ as shot_ramp,i_ as shot_scan,a_ as trim_r3d,c_ as vc3_band_info,d_ as video_close,s_ as video_decode,p_ as video_frame_index_isobmff_reader,g_ as video_open,Z as wbg_rayon_PoolBuilder,u_ as wbg_rayon_start_worker,w_ as xavc_au,b_ as xavc_frame_count,l_ as xocn_frame_count,f_ as xocn_index_prefix_len,v_ as xocn_preview_prefix_len};
@@ -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 $}from"./chunk-AACY2V3L.js";import{b as J}from"./chunk-DGXZB7MO.js";import{b as j}from"./chunk-JXTRQ3UG.js";import{Ha as N,Ia as l,M,R as P,b as B,ca as D,da as T,e as I,ea as E,fa as L,g as S,ga as C,ia as O,ra as V,ua as W,w as k,wa as G}from"./chunk-DPA26AOI.js";import"./chunk-PSANHDZM.js";var z=new Uint8Array([6,14,43,52,2,5,1,1,13,1,2,1,1,17,1,0]);function se(t){e:for(let r=t.length-z.length;r>=0;r--){for(let e=0;e<z.length;e++)if(t[r+e]!==z[e])continue e;return r}return-1}function Z(t,r){if(r>=t.byteLength)return[null,0];let e=t.getUint8(r);if(e<128)return[e,1];let n=e&127;if(n===0||n>8||r+1+n>t.byteLength)return[null,1];let a=0;for(let i=0;i<n;i++)a=a*256+t.getUint8(r+1+i);return[a,1+n]}function b(t,r){let e=t.getUint32(r,!1),n=t.getUint32(r+4,!1);return e*4294967296+n}async function H(t){let r=t.fileSize,e=[];if(r<1024)return e;let a=Math.max(0,r-65536),i=r-a,o=await t.read(a,i);e.push({offset:a,length:i});let s=se(o);if(s<0)return e;let c=new DataView(o.buffer,o.byteOffset,o.byteLength),[f,te]=Z(c,s+16);if(f===null||f<16||f>65536)return e;let F=s+16+te;if(F+f>o.length)return e;let A=[],ne=new DataView(o.buffer,o.byteOffset+F,f),g=Math.floor((f-4)/12);if(g<1||g>4096)return e;for(let u=0;u<g;u++){let d=b(ne,u*12+4);d>=0&&d<r&&A.push(d)}for(let u of A){let d=Math.min(256,r-u),p=await t.read(u,d);if(p.length<80)continue;let y=new DataView(p.buffer,p.byteOffset,p.byteLength),[R,v]=Z(y,16);if(R===null)continue;let m=16+v,_,x;if(p.length<m+64){let oe=Math.min(m+64,r-u),h=await t.read(u,oe);if(h.length<m+64)continue;let U=new DataView(h.buffer,h.byteOffset,h.byteLength);_=b(U,m+32),x=b(U,m+40)}else _=b(y,m+32),x=b(y,m+40);let ae=u+16+v+R+_+x,ie=Math.min(ae+65536,r)-u;e.push({offset:u,length:ie})}return e}function q(t,r){let e=[];for(let n of t){if(n.kind!=="clip"||!n.source_range)continue;let a=n.source_range.start.value,i=n.source_range.duration.value,o=Math.max(0,Math.floor(a)-r),s=Math.floor(a+i-1)+r;s>=o&&e.push({first_frame:o,last_frame:s})}return e}function ce(t,r){let e=[...t].sort((i,o)=>i.offset-o.offset),n=[],a=0;for(let i of e)i.offset>a&&n.push({offset:a,length:i.offset-a}),a=Math.max(a,i.offset+i.length);return a<r&&n.push({offset:a,length:r-a}),n}async function K(t,r,e){let n=q(r,0);if(n.length===0)throw new Error("planMxfTrimsFromItems: no usable trim ranges in items");await l();let a=(o,s)=>t.read(o,s),i=await J(n,e,(o,s)=>V(a,t.fileSize,o,s));return i.map((o,s)=>{let c=JSON.parse(o);return i.length>1&&(c.output_clip_number=s+1,c.output_clip_count=i.length,c.output_part_number=1),c})}async function Q(t,r,e){await l();let n=q(r,e),i=await W((s,c)=>t.read(s,c),t.fileSize,JSON.stringify(n));if(i!=="null")return JSON.parse(i);console.warn(`[mxf] no parseable index \u2014 shipping the WHOLE file (${t.fileSize} bytes). The cut's ${n.length} range(s) cannot be addressed; nothing is trimmed.`);let o=(await H(t)).map(s=>({offset:s.offset,length:s.length}));return{fileSize:t.fileSize,structuralRanges:o,essenceRanges:ce(o,t.fileSize),trimInputs:n,wholeFileFallback:!0}}async function X(t){await l();let e=await G((n,a)=>t.read(n,a),t.fileSize);return JSON.parse(e)}function w(t){return(r,e)=>t.read(r,e)}var Me={async inspect(t){let r=t.parts[0],e=await X(r);if(!e)return null;let n=e.timecode??null,a=n&&n.fps_denominator>0?n.fps_numerator/n.fps_denominator:null,i=e.width??null,o=e.height??null;return{id:r.filename,kind:"external",target_url:r.filename,available_range:a&&e.frame_count?{start:{value:0,rate:a},duration:{value:e.frame_count,rate:a}}:null,reel_name:null,source_timecode:n?.display??null,source_fps:a,source_resolution_w:i,source_resolution_h:o,container:"mxf",codec:null,size_bytes:r.fileSize,streams:[...i||o||a?[{kind:"video",codec:null,width:i??void 0,height:o??void 0,rate:a??void 0,codec_specific:null}]:[],...e.audio?[{kind:"audio",codec:e.audio.codec_fourcc,channels:e.audio.channels??void 0,rate:e.audio.sample_rate??void 0,bit_depth:e.audio.bit_depth??void 0,codec_specific:{fourcc:e.audio.codec_fourcc}}]:[]],decode_provenance:e.decode_provenance??null,vendor_metadata:{frame_count:e.frame_count,...n?{drop_frame:n.drop_frame}:{},...e.inner_codec?{inner_codec:e.inner_codec}:{},...e.truncated?{truncated:!0}:{}},binding_state:"unbound",raw_extraction:{mxf_probe:e},metadata:{}}},async extract(t){await l();let r=t.parts[0],e=JSON.parse(await O(w(r),r.fileSize));return e.length===0?null:{v:1,container:"mxf",codec:"mxf",frame_count:$(e),granularity:"frame",segments:e}},async sparsify(t,r){let e=t.parts[0],n=await Q(e,r.items,r.handles);return[{filename:e.filename,fileSize:n.fileSize,structuralRanges:n.structuralRanges,essenceRanges:n.essenceRanges,trimInputs:n.trimInputs,wholeFileFallback:n.wholeFileFallback}]},async trim(t,r){let e=t.parts[0];return K(e,r.items,r.handles)},async decode(t,r,e){await l();let n=t.parts[0],a=w(n),i=await re(t),o=e.detail==="coarse",s;if(i==="arriraw")s=await S(a,n.fileSize,r,o?"preview:4":"full");else if(i==="arriraw-alev3")s=await I(a,n.fileSize,r,o?"preview:4":"full");else if(i==="dnxhr")s=await M(a,n.fileSize,r,o?"preview":"full");else if(i==="xocn")s=await P(a,n.fileSize,r,o?"preview":"full");else if(i==="prores")s=await k(a,n.fileSize,r,o?"preview":"full");else throw new Error(`mxf decode: no decoder for inner codec '${i}'`);let c=new DataView(s.buffer,s.byteOffset,8);return{width:c.getUint32(0,!0),height:c.getUint32(4,!0),rgba:s.slice(8)}},async decode16(t,r){await l();let e=t.parts[0],n=w(e),a=await re(t),i;try{if(a==="arriraw"){let o=await ue(t,r);if(o)return o;i=await S(n,e.fileSize,r,"rgb16")}else if(a==="dnxhr")i=await M(n,e.fileSize,r,"rgb16");else if(a==="xocn")i=await P(n,e.fileSize,r,"rgb16");else throw new Error(`mxf decode16: no decoder for inner codec '${a}'`)}catch(o){throw fe(o,a)}return j(i)}};function fe(t,r){let e=typeof t=="string"?t:t instanceof Error?t.message:"";return/has no 16-bit decoder|no rgb16 tier/.test(e)?new Error(`mxf ${r}: has no 16-bit decoder \u2014 ${e}`):t}var Y=new WeakMap;async function ue(t,r){if(!N)return null;try{let e=await import("./arriraw-YIJ3BYNN.js");if(!await e.arrirawGpuAvailable())return null;let{parseArrirawGpuPayload:n,arrirawFrameToRgb16:a}=await import("./clip-state-B6JOX3JE.js"),i=t.parts[0],o=Y.get(t)??null,s=await B(w(i),i.fileSize,r,o?.key),c=n(s,o);if(!c)return null;Y.set(t,{key:c.key,state:c.state});let f=await e.decodeArrirawFrameGpu(c.essence,c.state);return f?{width:f.width,height:f.height,rgb16:a(f)}:null}catch{return null}}var ee=new WeakMap;async function re(t){let r=ee.get(t);if(r)return r;await l();let e=t.parts[0],n=w(e),a="mxf";return await T(n,e.fileSize)?a="arriraw":await D(n,e.fileSize)?a="arriraw-alev3":await L(n,e.fileSize)?a="dnxhr":await C(n,e.fileSize)?a="xocn":await E(n,e.fileSize)&&(a="prores"),ee.set(t,a),a}export{Me as mxfFormat};
@@ -20,9 +20,9 @@ evidence for each):
20
20
  frames, relative to the start); a track-item tag is a clip marker, its
21
21
  in/out in source frames (`TrackItem.addTagToRange` is documented that way).
22
22
  A tag with no range is not a marker and is not listed. Name and note are
23
- the tag's own; the exact neutral colour and the custom data live in the
23
+ the tag's own; the exact neutral color and the custom data live in the
24
24
  tag's metadata (`ct.color`, `ct.custom_data`), so they round-trip exactly;
25
- the ICON shows the colour in Hiero and is lossy (six colours).
25
+ the ICON shows the color in Hiero and is lossy (six colors).
26
26
  * **Undo**: every write is one `Project.beginUndo` / `endUndo` group; a
27
27
  batch rename is one group.
28
28
  """
@@ -49,14 +49,14 @@ OPTIONAL_VERBS = [
49
49
  "timeline_write.import_file",
50
50
  ]
51
51
 
52
- #: Hiero's built-in colour tag icons (the shipped tag presets).
52
+ #: Hiero's built-in color tag icons (the shipped tag presets).
53
53
  ICONS = {"Red": "icons:TagRed.png", "Green": "icons:TagGreen.png", "Blue": "icons:TagBlue.png",
54
54
  "Cyan": "icons:TagCyan.png", "Magenta": "icons:TagMagenta.png", "Yellow": "icons:TagYellow.png"}
55
- #: Neutral name -> the nearest Hiero icon colour (lossy: 16 names, 6 icons).
55
+ #: Neutral name -> the nearest Hiero icon color (lossy: 16 names, 6 icons).
56
56
  NEUTRAL_TO_ICON = {"Blue": "Blue", "Cyan": "Cyan", "Green": "Green", "Yellow": "Yellow", "Red": "Red", "Pink": "Magenta",
57
57
  "Purple": "Magenta", "Fuchsia": "Magenta", "Rose": "Red", "Lavender": "Blue", "Sky": "Cyan", "Mint": "Green",
58
58
  "Lemon": "Yellow", "Sand": "Yellow", "Cocoa": "Red", "Cream": "Yellow"}
59
- #: An icon colour read back when the tag carries no `ct.color` (a user's tag).
59
+ #: An icon color read back when the tag carries no `ct.color` (a user's tag).
60
60
  ICON_TO_NEUTRAL = {"Red": "Red", "Green": "Green", "Blue": "Blue", "Cyan": "Cyan", "Magenta": "Pink", "Yellow": "Yellow"}
61
61
  MD_COLOR = "ct.color"
62
62
  MD_CUSTOM = "ct.custom_data"
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{a,b,c,d,e,f,g,h,i}from"./chunk-2BPR6LK6.js";import"./chunk-PSANHDZM.js";export{c as CoverageMissError,e as DeliveryCoverageMissError,a as INTENTS,f as asDeliveryCoverageMiss,h as extract,i as mediaOp,d as parseDeliveryCoverageMiss,g as resolveFormat,b as unpackFrame16};
3
+ import{a,b,c,d,e,f,g,h,i}from"./chunk-JXTRQ3UG.js";import"./chunk-PSANHDZM.js";export{c as CoverageMissError,e as DeliveryCoverageMissError,a as INTENTS,f as asDeliveryCoverageMiss,h as extract,i as mediaOp,d as parseDeliveryCoverageMiss,g as resolveFormat,b as unpackFrame16};
@@ -9,7 +9,7 @@ it at package time (`mcp/hosts/peer-kit/vendor.py`).
9
9
  pairing.py finding pairing.json the way the app writes it
10
10
  protocol.py handle table, the verb dispatcher, `idle_marshaller`
11
11
  client.py connect / hello / request loop / reconnect / events
12
- neutral.py timecode, marker colour names, the `[ct:...]` note token
12
+ neutral.py timecode, marker color names, the `[ct:...]` note token
13
13
 
14
14
  Wire protocol and threat model: docs/INTERNAL_HOST_BRIDGE.md.
15
15
  """
@@ -1,12 +1,12 @@
1
- """Host-neutral helpers both Python peers share: timecode, marker colours,
1
+ """Host-neutral helpers both Python peers share: timecode, marker colors,
2
2
  and the `[ct:<custom>]` note token.
3
3
 
4
- * **Colours.** The app's marker vocabulary is DaVinci Resolve's sixteen names
5
- (`Blue`, `Cyan`, ... `Cream`). A host that stores a marker colour as RGB
4
+ * **Colors.** The app's marker vocabulary is DaVinci Resolve's sixteen names
5
+ (`Blue`, `Cyan`, ... `Cream`). A host that stores a marker color as RGB
6
6
  (Flame) maps a name to the RGB below on write and back to the NEAREST name
7
7
  on read, so a name written reads back as itself.
8
- * **Clip colours** (a segment's / clip's colour) use Resolve's sixteen clip
9
- colour names the same way (`CLIP_HEX` = `hosts/base.py` NEUTRAL_CLIP_COLORS).
8
+ * **Clip colors** (a segment's / clip's color) use Resolve's sixteen clip
9
+ color names the same way (`CLIP_HEX` = `hosts/base.py` NEUTRAL_CLIP_COLORS).
10
10
  * **Custom data.** A host whose markers have no custom-data field carries it
11
11
  as a trailing ` [ct:<custom>]` token in the note (plan decision D6), with
12
12
  `hosts/base.py`'s exact escaping (`\\`, `[`, `]` backslash-escaped).
@@ -66,10 +66,10 @@ def _nearest(rgb, palette: Dict[str, Tuple[float, float, float]]) -> str:
66
66
  return best
67
67
 
68
68
 
69
- # ── clip colours ──────────────────────────────────────────────────────────
69
+ # ── clip colors ──────────────────────────────────────────────────────────
70
70
 
71
- #: Resolve's CLIP colour palette (`hosts/base.py` NEUTRAL_CLIP_COLORS): the
72
- #: names a track item's / pool clip's colour crosses the wire by. A host that
71
+ #: Resolve's CLIP color palette (`hosts/base.py` NEUTRAL_CLIP_COLORS): the
72
+ #: names a track item's / pool clip's color crosses the wire by. A host that
73
73
  #: stores RGB (a Flame segment) maps through it the same way as markers.
74
74
  CLIP_HEX: Dict[str, str] = {
75
75
  "Orange": "#eb6e01", "Apricot": "#ffa833", "Yellow": "#d4ad1f", "Lime": "#9fc615",
@@ -84,7 +84,7 @@ _CLIP_BY_LOWER = {k.lower(): k for k in CLIP_RGB}
84
84
 
85
85
 
86
86
  def clip_color_rgb(name: str) -> Optional[Tuple[float, float, float]]:
87
- """A clip-colour name (or `#RRGGBB`) as 0-1 RGB, None when unknown."""
87
+ """A clip-color name (or `#RRGGBB`) as 0-1 RGB, None when unknown."""
88
88
  s = str(name or "").strip()
89
89
  if re.match(r"^#[0-9a-fA-F]{6}$", s):
90
90
  return tuple(int(s[i:i + 2], 16) / 255.0 for i in (1, 3, 5)) # type: ignore[return-value]
@@ -93,7 +93,7 @@ def clip_color_rgb(name: str) -> Optional[Tuple[float, float, float]]:
93
93
 
94
94
 
95
95
  def nearest_clip_color(rgb) -> str:
96
- """The clip-colour name closest to an RGB triple (0-1 or 0-255)."""
96
+ """The clip-color name closest to an RGB triple (0-1 or 0-255)."""
97
97
  return _nearest(rgb, CLIP_RGB)
98
98
 
99
99
 
@@ -4,7 +4,7 @@
4
4
  // so ONE undo step in Premiere; every op also hands back the op that puts it back (`undo`,
5
5
  // newest first), the same vocabulary, for host_apply {undo}.
6
6
  //
7
- // What the DOM cannot do is refused by name, never faked: a track item has no colour label of
7
+ // What the DOM cannot do is refused by name, never faked: a track item has no color label of
8
8
  // its own in UXP (clip_color sets the PROJECT item's label, which every use of the media shows),
9
9
  // no flags, no set-speed / time remap (the engine's .prproj writer carries retimes).
10
10
  // relink (ClipProjectItem.changeMediaFilePath) is not undoable in Premiere: it runs after the
@@ -16,10 +16,11 @@ const T = require("./time");
16
16
  const TL = require("./timeline");
17
17
  const S = require("./sizing");
18
18
  const CM = require("./clipmeta");
19
+ const M = require("./markers");
19
20
 
20
- /** Premiere's 16 label colours (Preferences > Labels, BE.Prefs.LabelColors.N) by index, default names. */
21
+ /** Premiere's 16 label colors (Preferences > Labels, BE.Prefs.LabelColors.N) by index, default names. */
21
22
  const LABELS = ["Violet", "Iris", "Caribbean", "Lavender", "Cerulean", "Forest", "Rose", "Mango", "Purple", "Blue", "Teal", "Magenta", "Tan", "Green", "Brown", "Yellow"];
22
- /** Resolve's clip colours with no same-named Premiere label: the nearest one. */
23
+ /** Resolve's clip colors with no same-named Premiere label: the nearest one. */
23
24
  const NEAREST = { Orange: "Mango", Apricot: "Mango", Pink: "Rose", Lime: "Green", Olive: "Forest", Navy: "Cerulean", Beige: "Tan", Chocolate: "Brown" };
24
25
 
25
26
  function labelIndex(color) {
@@ -140,6 +141,24 @@ async function xmpFields(pi) {
140
141
  try { return String(await ppro.Metadata.getXMPMetadata(pi) || ""); } catch (_) { return ""; }
141
142
  }
142
143
 
144
+ /** A clip's media frames ↔ the record frames they show at (from the sequence start), through its in point, start and
145
+ * speed; `target` = the handle its (project item's) markers are read and written by. */
146
+ async function clipMap(it, tb) {
147
+ const target = h("item", it);
148
+ const { timebase: mtb } = await M.markersObjectFor(target);
149
+ const inT = T.toTicks(await P.callAny(it, ["getInPoint"]));
150
+ const startT = T.toTicks(await P.callAny(it, ["getStartTime"]));
151
+ let speed = 1;
152
+ try { speed = Number(await P.callAny(it, ["getSpeed"])) || 1; } catch (_) { /* none */ }
153
+ return {
154
+ target,
155
+ // the media frame on screen at a record frame, and the first record frame that shows a media frame (a slowed clip
156
+ // shows one media frame on several record frames: its marker reads back at the first)
157
+ toSrc: (rec) => Math.floor((inT + (rec * tb - startT) * speed) / mtb + 1e-6),
158
+ toRec: (src) => Math.ceil((startT + (src * mtb - inT) / speed) / tb - 1e-6),
159
+ };
160
+ }
161
+
143
162
  /**
144
163
  * One op → { actions: [...] (undoable, built now, committed with the batch), undo: [...ops], after?: fn (not undoable),
145
164
  * detail? } or throws. `ref` is the op's item as given (handed back in its undo ops, re-addressed when it moves).
@@ -256,12 +275,55 @@ async function build(op, it, ctx) {
256
275
  return { actions: [], undo: [], ok: ok !== false };
257
276
  }
258
277
  if (kind === "timeline_rename") {
259
- const pi = await P.callAny(ctx.seq, ["getProjectItem"]);
260
- const was = String(ctx.seq.name || "");
261
- return { actions: [() => P.callAnySync(pi, ["createSetNameAction"], String(op.name))], undo: [{ op: "timeline_rename", name: was }] };
278
+ // the sequence the op names (Rename's Timelines target: one op per sequence), else the one being edited. Names
279
+ // can repeat in Premiere: `nth` = which of the same-named ones (project order), `guid` = exactly one (the undo's)
280
+ let seq = ctx.seq;
281
+ if (op.timeline || op.guid) {
282
+ const all = await P.callAny(ctx.project, ["getSequences"]);
283
+ const list = Array.isArray(all) ? all : [];
284
+ seq = op.guid ? list.find((s) => String(s.guid || "") === String(op.guid))
285
+ : list.filter((s) => String(s.name || "") === String(op.timeline))[Number(op.nth || 0)];
286
+ if (!seq) throw new PeerError("not_found", op.guid ? `no sequence ${op.guid}` : `no sequence named ${op.timeline}${op.nth ? ` (#${Number(op.nth) + 1})` : ""}`);
287
+ }
288
+ const pi = await P.callAny(seq, ["getProjectItem"]);
289
+ const was = String(seq.name || ""), guid = String(seq.guid || "");
290
+ return { actions: [() => P.callAnySync(pi, ["createSetNameAction"], String(op.name))], undo: [{ op: "timeline_rename", ...(guid ? { guid } : { timeline: String(op.name) }), name: was }] };
291
+ }
292
+ if (kind === "marker_add" || kind === "marker_update" || kind === "marker_delete") {
293
+ // a clip marker: Premiere keeps it on the PROJECT item (every use of the media shows it), at a media frame. It is
294
+ // addressed by the RECORD frame it shows at under this clip (`record`, from the sequence start) — the panel maps
295
+ // it through the clip's in point, start and speed, so a 25p clip in a 23.976 sequence lands where it shows.
296
+ // Each is its own marker transaction, so after the batch.
297
+ need();
298
+ if (op.record === undefined) throw new PeerError("usage", `${kind} on a clip needs its record frame (record)`);
299
+ const map = await clipMap(it, ctx.tb);
300
+ const rec = Number(op.record);
301
+ const frame = map.toSrc(rec);
302
+ const target = map.target;
303
+ const was = (await M.verbs["markers.list"]({ target })).find((m) => m.frame === frame);
304
+ const back = was && { op: "marker_add", item, record: rec, color: was.color, name: was.name, note: was.note, duration: was.duration };
305
+ if (kind === "marker_add") {
306
+ return { actions: [], undo: [{ op: "marker_delete", item, record: rec }, ...(back ? [back] : [])], after: async () => {
307
+ if (was) await M.verbs["markers.delete_at"]({ target, frame });
308
+ return M.verbs["markers.add"]({ target, frame, color: op.color || "", name: op.name || "", note: op.note || "", duration: op.duration || 1 });
309
+ } };
310
+ }
311
+ if (!was) throw new PeerError("not_found", `no clip marker at record frame ${rec}`);
312
+ if (kind === "marker_delete") return { actions: [], undo: [back], after: () => M.verbs["markers.delete_at"]({ target, frame }) };
313
+ return { actions: [], undo: [{ op: "marker_update", item, record: rec, color: was.color, name: was.name, note: was.note, duration: was.duration }], after: async () => {
314
+ if (op.duration !== undefined && Number(op.duration) !== was.duration) {
315
+ // no set-duration action: the marker is replaced
316
+ const next = { ...was, ...Object.fromEntries(["color", "name", "note", "duration"].filter((k) => op[k] !== undefined).map((k) => [k, op[k]])) };
317
+ return (await M.verbs["markers.delete_at"]({ target, frame })) && M.verbs["markers.add"]({ target, frame, ...next });
318
+ }
319
+ let ok = true;
320
+ if (op.color !== undefined) ok = (await M.verbs["markers.set_color"]({ target, frame, color: op.color })) && ok;
321
+ if (op.name !== undefined || op.note !== undefined) ok = (await M.verbs["markers.set_text"]({ target, frame, name: op.name, note: op.note })) && ok;
322
+ return ok;
323
+ } };
262
324
  }
263
325
  if (kind === "flags") throw new PeerError("unsupported", "Premiere has no clip flags (use clip_color, markers or metadata)");
264
- if (["version", "color_group", "copy_grade", "drx", "node_copy", "cache", "lut", "fades", "output_blanking", "copy_properties"].includes(kind)) {
326
+ if (["version", "color_group", "copy_grade", "drx", "cache", "lut", "fades", "output_blanking", "copy_properties"].includes(kind)) {
265
327
  throw new PeerError("unsupported", `${kind} is a DaVinci Resolve edit; Premiere has no equivalent over UXP`);
266
328
  }
267
329
  throw new PeerError("unsupported", `premiere: no op ${kind}`);
@@ -330,7 +392,7 @@ const verbs = {
330
392
  }
331
393
  return { results, undo };
332
394
  },
333
- /** Cut media in OVER a clip, the conform artist's way (a VFX / colour return onto the track above, the original
395
+ /** Cut media in OVER a clip, the conform artist's way (a VFX / color return onto the track above, the original
334
396
  * left underneath): {timeline?, cuts: [{path | clip, track, start, src_in, duration, audio?: false, copy_from?: item}]}
335
397
  * start = record frame from the sequence start, src_in = first frame of the media (file-local), duration in frames.
336
398
  * The files are imported into one bin; all the overwrites are ONE transaction = one undo step. */
@@ -457,6 +519,29 @@ const verbs = {
457
519
  drop_frame, time_display: display === null || display === undefined ? null : (typeof display === "object" ? JSON.parse(JSON.stringify(display)) : display),
458
520
  project: p ? String(p.name || "") : "", project_path: p && typeof p.path === "string" ? p.path : "" };
459
521
  },
522
+ /** The markers as Premiere holds them NOW (a saved or auto-saved project can be older): the sequence's, and every
523
+ * video clip's under the first use it shows in (its project item's, read once per item), at the RECORD frame it shows at,
524
+ * frames from the sequence start (`source` = its media frame). {timeline?} → {timeline: [...], clips: [{track, start, markers}]} */
525
+ "edit.markers": async ({ timeline }) => {
526
+ const seq = await seqOf(timeline);
527
+ const { tb, rows } = await index(seq, ["video"]);
528
+ const lists = new Map();
529
+ const seen = new Set();
530
+ const clips = [];
531
+ for (const r of rows) {
532
+ let map, key;
533
+ try { map = await clipMap(r.item, tb); const pi = await P.callAny(r.item, ["getProjectItem"]); key = (pi && pi.guid) || map.target.$h; } catch (_) { continue; }
534
+ if (!lists.has(key)) lists.set(key, await M.verbs["markers.list"]({ target: map.target }).catch(() => []));
535
+ // one marker of the media shows under every use of it: listed once, under the first use (an edit through any
536
+ // use changes the one marker)
537
+ const markers = lists.get(key).map((m) => ({ ...m, source: m.frame, frame: map.toRec(m.frame) }))
538
+ .filter((m) => m.frame >= r.start && m.frame < r.end && !seen.has(m.guid || `${key}@${m.source}`));
539
+ // a marker is known by its guid (the same through every use; UXP hands back a new project-item object each time)
540
+ for (const m of markers) seen.add(m.guid || `${key}@${m.source}`);
541
+ if (markers.length) clips.push({ kind: "video", track: r.track, start: r.start, markers });
542
+ }
543
+ return { timeline: await M.verbs["markers.list"]({ target: h("seq", seq) }), clips };
544
+ },
460
545
  /** {timeline?, ops} → {results, undo}. Every undoable op of the batch is one transaction = one undo step. */
461
546
  "edit.apply": async ({ timeline, ops }) => {
462
547
  const seq = await seqOf(timeline);
@@ -467,7 +552,7 @@ const verbs = {
467
552
  const byId = new Map(rows.map((r) => [r.id, r]));
468
553
  const byItem = new Map(rows.map((r) => [r.item, r]));
469
554
  const ctx = {
470
- seq, tb, fps: T.fpsFromTimebase(tb), zero: await TL.zeroPointFrames(seq, tb), raster: await TL.frameSize(seq),
555
+ seq, project, tb, fps: T.fpsFromTimebase(tb), zero: await TL.zeroPointFrames(seq, tb), raster: await TL.frameSize(seq),
471
556
  startOf: (it) => byItem.get(it).start, kindOf: (it) => byItem.get(it).kind,
472
557
  };
473
558
  const find = (a) => {
@@ -1,7 +1,7 @@
1
1
  // `markers`: sequence markers, and clip markers (which Premiere keeps on the
2
2
  // PROJECT ITEM, not the track item - a track-item handle maps to its project
3
- // item's markers, in source frames). Colours are Premiere's eight indexed
4
- // marker colours; the neutral names below are what the app's Marker Utility
3
+ // item's markers, in source frames). Colors are Premiere's eight indexed
4
+ // marker colors; the neutral names below are what the app's Marker Utility
5
5
  // shows, mapped both ways.
6
6
  "use strict";
7
7
 
@@ -9,7 +9,7 @@ const { handles, h, g, transact, activeProject, PeerError, P } = require("./ctx"
9
9
  const T = require("./time");
10
10
  const TL = require("./timeline");
11
11
 
12
- // Premiere marker colour index -> the app's colour name (Resolve's palette
12
+ // Premiere marker color index -> the app's color name (Resolve's palette
13
13
  // is the neutral vocabulary; the nearest name is used).
14
14
  const COLOR_NAMES = ["Green", "Red", "Purple", "Yellow", "Blue", "Cyan", "Sky", "Fuchsia"];
15
15
  const COLOR_INDEX = new Map(COLOR_NAMES.map((n, i) => [n.toLowerCase(), i]));
@@ -120,7 +120,7 @@ const verbs = {
120
120
  const out = [];
121
121
  for (const m of await markerList(holder)) {
122
122
  const f = await markerFields(m, timebase);
123
- out.push({ frame: f.frame, color: f.color, name: f.name, note: f.note, duration: f.duration, custom_data: f.custom_data, scope, keywords: "" });
123
+ out.push({ frame: f.frame, color: f.color, name: f.name, note: f.note, duration: f.duration, custom_data: f.custom_data, guid: f.guid, scope, keywords: "" });
124
124
  }
125
125
  out.sort((a, b) => a.frame - b.frame);
126
126
  return out;
@@ -139,12 +139,12 @@ const verbs = {
139
139
  add(() => P.callAnySync(holder, ["createAddMarkerAction"], String(name || ""), type, tick(ppro, startTicks), tick(ppro, durTicks), String(note || "")));
140
140
  });
141
141
  if (!n) return false;
142
- // Colour is a second action on the created marker (there is no colour
142
+ // Color is a second action on the created marker (there is no color
143
143
  // argument on add); the marker is the one now at that frame.
144
144
  if (color) {
145
145
  const created = await findMarker(holder, timebase, Number(frame));
146
146
  if (created && (P.has(created._obj, "createSetColorByIndexAction") || P.has(created._obj, "createSetColorAction"))) {
147
- await transact(project, "Marker colour", async (add) => { add(() => P.callAnySync(created._obj, ["createSetColorByIndexAction", "createSetColorAction"], colorIndex(color))); });
147
+ await transact(project, "Marker color", async (add) => { add(() => P.callAnySync(created._obj, ["createSetColorByIndexAction", "createSetColorAction"], colorIndex(color))); });
148
148
  }
149
149
  }
150
150
  return true;
@@ -174,7 +174,7 @@ const verbs = {
174
174
  const { holder, timebase } = await markersObjectFor(target);
175
175
  const found = await findMarker(holder, timebase, Number(frame));
176
176
  if (!found) return false;
177
- const n = await transact(project, "Marker colour", async (add) => { add(() => P.callAnySync(found._obj, ["createSetColorByIndexAction", "createSetColorAction"], colorIndex(color))); });
177
+ const n = await transact(project, "Marker color", async (add) => { add(() => P.callAnySync(found._obj, ["createSetColorByIndexAction", "createSetColorAction"], colorIndex(color))); });
178
178
  return n > 0;
179
179
  },
180
180
  "markers.set_text": async ({ target, frame, name, note }) => {
@@ -183,16 +183,17 @@ const verbs = {
183
183
  const found = await findMarker(holder, timebase, Number(frame));
184
184
  if (!found) return false;
185
185
  // MEASURED 26.2: the name and the comment must be SEPARATE transactions -
186
- // both in one compound fails with "Script action failed to execute".
186
+ // both in one compound fails with "Script action failed to execute". MEASURED 26.5.2: each action MADE inside
187
+ // the locked access (a thunk), else "Requires locked access".
187
188
  let n = 0;
188
189
  if (name !== undefined && P.has(found._obj, "createSetNameAction")) {
189
- n += await transact(project, "Marker name", async (add) => { add(await found._obj.createSetNameAction(String(name))); });
190
+ n += await transact(project, "Marker name", async (add) => { add(() => P.callAnySync(found._obj, ["createSetNameAction"], String(name))); });
190
191
  }
191
192
  if (note !== undefined && P.has(found._obj, "createSetCommentsAction")) {
192
- n += await transact(project, "Marker note", async (add) => { add(await found._obj.createSetCommentsAction(String(note))); });
193
+ n += await transact(project, "Marker note", async (add) => { add(() => P.callAnySync(found._obj, ["createSetCommentsAction"], String(note))); });
193
194
  }
194
195
  return n > 0;
195
196
  },
196
197
  };
197
198
 
198
- module.exports = { verbs, COLOR_NAMES, colorName, colorIndex, markerFields, h };
199
+ module.exports = { verbs, COLOR_NAMES, colorName, colorIndex, markerFields, markersObjectFor, h };
@@ -39,12 +39,12 @@ const verbs = {
39
39
  // the sequence as Premiere builds it, which our .prproj reader then reads (e.g. how it sets a clip's source
40
40
  // in-point from an XML <in> on a different-rate file). The project open before is untouched. Needs ONLINE media:
41
41
  // with the media offline Premiere 26.5.2 never returns from importFiles (2026-10-27).
42
- "debug.import_save": async ({ files, out }) => {
42
+ "debug.import_save": async ({ files, out, numbered }) => {
43
43
  const ppro = P.api();
44
44
  const proj = await ppro.Project.createProject(String(out));
45
45
  if (!proj) throw new Error(`createProject(${out}) returned nothing`);
46
46
  const root = await proj.getRootItem();
47
- const ok = await proj.importFiles((files || []).map(String), true, root, false);
47
+ const ok = await proj.importFiles((files || []).map(String), true, root, !!numbered);
48
48
  const seqs = ((await proj.getSequences()) || []).map((s) => s.name);
49
49
  const saved = await proj.save();
50
50
  const closed = await proj.close();
@@ -90,10 +90,13 @@ const verbs = {
90
90
  // Premiere's own render of a project file: open `path`, export its sequence (the one named `sequence`, else
91
91
  // the first) with the .epr `preset` to `out` (EXPORT_IMMEDIATELY: returns when the file is written), close it.
92
92
  // The title law rig renders a PNG-with-alpha sequence of its cells this way.
93
- "debug.project_render": async ({ path, out, preset, sequence }) => {
93
+ // `settle_ms`: wait after opening — an export made at once can render "Media pending" frames for media
94
+ // Premiere has not loaded yet (2026-10-27: a PNG sequence and a ProRes movie both did, every frame).
95
+ "debug.project_render": async ({ path, out, preset, sequence, settle_ms }) => {
94
96
  const ppro = P.api();
95
97
  const proj = await ppro.Project.open(String(path));
96
98
  if (!proj) throw new Error(`Project.open(${path}) returned nothing`);
99
+ if (settle_ms) await new Promise((r) => setTimeout(r, Number(settle_ms)));
97
100
  try {
98
101
  const seqs = (await proj.getSequences()) || [];
99
102
  const seq = seqs.find((s) => s.name === sequence) || seqs[0];
@@ -16,6 +16,6 @@ const VERBS = Object.assign({},
16
16
 
17
17
  const CAPABILITIES = ["session", "timeline_read", "markers", "clip_meta", "sizing", "timeline_write", "render", "edit"];
18
18
  const OPTIONAL_VERBS = ["timeline_read.set_current_frame", "markers.move", "markers.set_color", "markers.set_text", "clip_meta.set_clip_properties",
19
- "timeline_write.import_file", "timeline_write.export_xml", "render.export_sequence", "debug.probe", "debug.sizing_probe", "debug.marker_probe", "debug.place_probe", "debug.settings_probe", "timeline_write.export_otio"];
19
+ "timeline_write.import_file", "timeline_write.export_xml", "render.export_sequence", "edit.markers", "debug.probe", "debug.sizing_probe", "debug.marker_probe", "debug.place_probe", "debug.settings_probe", "timeline_write.export_otio"];
20
20
 
21
21
  module.exports = { VERBS, CAPABILITIES, OPTIONAL_VERBS };
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "com.conformtools.premiere",
3
3
  "name": "conform.tools",
4
- "version": "0.4.2",
4
+ "version": "0.4.4",
5
5
  "main": "index.html",
6
6
  "manifestVersion": 5,
7
7
  "host": {
@@ -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 h}from"./chunk-TXQR2HI2.js";import{D as d,Y as o,b as p,g as n,i as a,l as u,r as s}from"./chunk-PLRB2YXJ.js";import"./chunk-PSANHDZM.js";import{dirname as m}from"node:path";import{fileURLToPath as P}from"node:url";import w from"node:process";var r="ColorMatchProbe.ofx.bundle",x="http://127.0.0.1:9876",i="/Library/OFX/Plugins";async function b(){let e=w.execPath;for(let t of[p("CONFORM_RESOLVE_PROBE"),o(m(e),"..","Resources","resolve-probe",r),o(m(P(import.meta.url)),"..","..","..","resolve_hook","build",r)])if(t&&await s(o(t,"Contents","MacOS","ColorMatchProbe.ofx")))return t;return null}async function E(){let e=n()==="darwin"&&a()==="arm64",t=await s(o(i,r)),l=await fetch(x+"/",{signal:AbortSignal.timeout(500)}).then(f=>f.ok).catch(()=>!1),c=!!await b();return{installed:t,loaded:l,shipped:c,supported:e,next:e?l?"running: the Color page selection and the selected node are read live":t?"installed; restart Resolve to load it":c?"host_setup host=resolve action=install_probe (asks for an administrator), then restart Resolve":"not in this build":"the probe runs on Apple silicon Macs only"}}async function S(){if(n()!=="darwin"||a()!=="arm64")throw new Error("the probe runs on Apple silicon Macs only");let e=await b();if(!e)throw new Error("this build does not carry the probe (resolve_hook/build.sh makes it)");return await h("darwin",e,i,r),await d(o(u(),"Library","Application Support","Blackmagic Design","DaVinci Resolve","OFXPluginCacheV2.xml")).catch(()=>{}),{path:o(i,r),restart_required:!0}}export{r as PROBE_BUNDLE,x as PROBE_URL,S as installProbe,E as probeStatus};
3
+ import{d as h}from"./chunk-56EEBHP2.js";import{D as d,Z as o,b as p,g as n,i as a,l as u,r as s}from"./chunk-DNS4ZYIO.js";import"./chunk-PSANHDZM.js";import{dirname as m}from"node:path";import{fileURLToPath as P}from"node:url";import w from"node:process";var r="ColorMatchProbe.ofx.bundle",x="http://127.0.0.1:9876",i="/Library/OFX/Plugins";async function b(){let e=w.execPath;for(let t of[p("CONFORM_RESOLVE_PROBE"),o(m(e),"..","Resources","resolve-probe",r),o(m(P(import.meta.url)),"..","..","..","resolve_hook","build",r)])if(t&&await s(o(t,"Contents","MacOS","ColorMatchProbe.ofx")))return t;return null}async function E(){let e=n()==="darwin"&&a()==="arm64",t=await s(o(i,r)),l=await fetch(x+"/",{signal:AbortSignal.timeout(500)}).then(f=>f.ok).catch(()=>!1),c=!!await b();return{installed:t,loaded:l,shipped:c,supported:e,next:e?l?"running: the Color page selection and the selected node are read live":t?"installed; restart Resolve to load it":c?"host_setup host=resolve action=install_probe (asks for an administrator), then restart Resolve":"not in this build":"the probe runs on Apple silicon Macs only"}}async function S(){if(n()!=="darwin"||a()!=="arm64")throw new Error("the probe runs on Apple silicon Macs only");let e=await b();if(!e)throw new Error("this build does not carry the probe (resolve_hook/build.sh makes it)");return await h("darwin",e,i,r),await d(o(u(),"Library","Application Support","Blackmagic Design","DaVinci Resolve","OFXPluginCacheV2.xml")).catch(()=>{}),{path:o(i,r),restart_required:!0}}export{r as PROBE_BUNDLE,x as PROBE_URL,S as installProbe,E as probeStatus};