conformtools 0.6.20 → 0.6.22

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 (83) hide show
  1. package/dist/account-ZGDVLMZA.js +3 -0
  2. package/dist/{agent-hook-setup-D2QNHA3V.js → agent-hook-setup-ZY4UBZIG.js} +1 -1
  3. package/dist/{analysis-engine-VNGF3DE4.js → analysis-engine-BBOSGAB2.js} +1 -1
  4. package/dist/{bridge-MLBUD6XW.js → bridge-56MINHUF.js} +1 -1
  5. package/dist/browser/timeline_core_bg.wasm +0 -0
  6. package/dist/{chunk-2WNNDPVR.js → chunk-3KS3547B.js} +1 -1
  7. package/dist/{chunk-L2RTMZCN.js → chunk-4I4MV3DE.js} +1 -1
  8. package/dist/{chunk-OSPDH2RK.js → chunk-64AMZWOI.js} +1 -1
  9. package/dist/{chunk-6IL7M3VP.js → chunk-65SLDY2M.js} +72 -72
  10. package/dist/{chunk-3WJSWOCS.js → chunk-67VLJJ75.js} +2 -2
  11. package/dist/{chunk-EWW5KWAO.js → chunk-6C3EEZH3.js} +1 -1
  12. package/dist/{chunk-4UT55WZA.js → chunk-BFN565RJ.js} +1 -1
  13. package/dist/{chunk-WYI4LL4P.js → chunk-CHEQJC4U.js} +190 -190
  14. package/dist/{chunk-A7AYMSY7.js → chunk-DHDSDH6R.js} +2 -2
  15. package/dist/chunk-E75BCWXY.js +4 -0
  16. package/dist/{chunk-V2FVIZT7.js → chunk-FSXF4K3J.js} +1 -1
  17. package/dist/{chunk-M545OKDZ.js → chunk-HNEKQMQG.js} +1 -1
  18. package/dist/chunk-IW5M45CL.js +3 -0
  19. package/dist/{chunk-2GRXBIJB.js → chunk-JGI5YEGH.js} +1 -1
  20. package/dist/chunk-JUJESM4P.js +3 -0
  21. package/dist/{chunk-567IWIX6.js → chunk-M3DXHHD7.js} +1 -1
  22. package/dist/chunk-NHWWMLZW.js +5 -0
  23. package/dist/{chunk-HROU7LLU.js → chunk-O5HYVCFL.js} +1 -1
  24. package/dist/chunk-OCNKVM26.js +7 -0
  25. package/dist/{chunk-HCT34NDA.js → chunk-OVBFJOO2.js} +1 -1
  26. package/dist/{chunk-ATEWMIY5.js → chunk-PKKUIGZ5.js} +1 -1
  27. package/dist/{chunk-GBNPOZ32.js → chunk-QNVFSA7C.js} +1 -1
  28. package/dist/{chunk-ZAL7Y5VZ.js → chunk-QPSQQEO6.js} +1 -1
  29. package/dist/{chunk-2DEUYEQD.js → chunk-REBF4U5B.js} +1 -1
  30. package/dist/{chunk-2S2ZPQQD.js → chunk-REGL3GQB.js} +1 -1
  31. package/dist/{chunk-4V3KLFCJ.js → chunk-TFKKODSA.js} +1 -1
  32. package/dist/{chunk-JVJUJKUP.js → chunk-Z3LQ56WS.js} +1 -1
  33. package/dist/{chunk-LUKA7UUJ.js → chunk-ZCQTIYXB.js} +1 -1
  34. package/dist/chunk-ZPIY5DOU.js +3 -0
  35. package/dist/{claude-setup-AI4WXN2V.js → claude-setup-6RMV3QZM.js} +1 -1
  36. package/dist/cli.js +2 -2
  37. package/dist/{cr3-wasm-DIWL7CPH.js → cr3-wasm-HWPQ3QAN.js} +1 -1
  38. package/dist/{dng-wasm-PE463PG2.js → dng-wasm-D7HO2OUE.js} +1 -1
  39. package/dist/{dpx-wasm-DKE3LJ6Z.js → dpx-wasm-ASRFRLRT.js} +1 -1
  40. package/dist/{exr-wasm-HAFH3YA5.js → exr-wasm-Y53DGEKJ.js} +1 -1
  41. package/dist/flame/hook/conformtools_flame/verbs.py +21 -4
  42. package/dist/framing-JYGNU6TH.js +3 -0
  43. package/dist/gfx-worker.js +1 -1
  44. package/dist/{h264-4ETGWMKR.js → h264-ZJCLCYYY.js} +1 -1
  45. package/dist/{h264-mxf-EFHHQL7X.js → h264-mxf-BI4ACQUH.js} +1 -1
  46. package/dist/{host-relink-MVHI3YQI.js → host-relink-XMVOQYKN.js} +1 -1
  47. package/dist/hosted-7KVSASRJ.js +3 -0
  48. package/dist/hosts-ZPBLYFYP.js +3 -0
  49. package/dist/http.js +4 -4
  50. package/dist/{inspect-5TMUYGAL.js → inspect-4RF2SDJR.js} +16 -17
  51. package/dist/{isobmff-55TPOVCK.js → isobmff-FZBZCEYH.js} +1 -1
  52. package/dist/{mc-video-GKWEWCEQ.js → mc-video-IUPFHPIS.js} +1 -1
  53. package/dist/mcp.js +1 -1
  54. package/dist/{media-HCKSVARE.js → media-R677IADY.js} +1 -1
  55. package/dist/{media_core-XOKN7UUF.js → media_core-KHSB6EFN.js} +2 -2
  56. package/dist/mxf-IUCZVILV.js +3 -0
  57. package/dist/{ops-UGZODMYE.js → ops-L5X3Q6SQ.js} +1 -1
  58. package/dist/{probe-YOYK7HR5.js → probe-VB6JH6ZJ.js} +1 -1
  59. package/dist/{r3d-EKISZSKU.js → r3d-EIQEVYGC.js} +1 -1
  60. package/dist/{r3d-XHSJUARW.js → r3d-VBXKIIRY.js} +1 -1
  61. package/dist/resolve-bridge.py +208 -13
  62. package/dist/{sequence-patch-5MFTY52Q.js → sequence-patch-OHYBBKKZ.js} +1 -1
  63. package/dist/{still-IDLCMQRD.js → still-XAFHXXC3.js} +1 -1
  64. package/dist/{still-wasm-54HEDTRX.js → still-wasm-ZG6PA67L.js} +1 -1
  65. package/dist/{store-6XN5Q6UG.js → store-ZXNF2RXS.js} +1 -1
  66. package/dist/{tiff-wasm-O7XUGXIO.js → tiff-wasm-AHQJJAK2.js} +1 -1
  67. package/dist/timeline-LJYGRP3R.js +3 -0
  68. package/dist/wasm/media_core_bg.wasm +0 -0
  69. package/dist/wasm-threads/media_core_bg.wasm +0 -0
  70. package/dist/{wav-OLA3QYFJ.js → wav-4COVRAK3.js} +1 -1
  71. package/package.json +5 -5
  72. package/dist/account-VD3EE5UT.js +0 -3
  73. package/dist/chunk-2XQ42O7E.js +0 -7
  74. package/dist/chunk-COALWMI7.js +0 -4
  75. package/dist/chunk-GHP6HDLM.js +0 -3
  76. package/dist/chunk-IPQLKAF2.js +0 -4
  77. package/dist/chunk-MU5AGXSH.js +0 -3
  78. package/dist/chunk-Y7PFSVRX.js +0 -3
  79. package/dist/framing-U46POZQG.js +0 -3
  80. package/dist/hosted-6BLHLZXM.js +0 -3
  81. package/dist/hosts-7UO4QETB.js +0 -3
  82. package/dist/mxf-AJTCMKTX.js +0 -3
  83. package/dist/timeline-TFF3L7JP.js +0 -3
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{a as U}from"./chunk-TK55FA56.js";import{a as J,b as T}from"./chunk-AACY2V3L.js";import{b as p,c as N,g as O}from"./chunk-2DEUYEQD.js";import{b as L}from"./chunk-4V3KLFCJ.js";import{b as V,c as _}from"./chunk-2S2ZPQQD.js";import{$ as f,A as P,B as x,C as F,D as A,Da as I,Ga as C,Ha as d,N as D,O as z,ha as E,k as w,m as v,n as y,p as R,qa as k,ta as H,x as S,y as M}from"./chunk-L2RTMZCN.js";import"./chunk-PSANHDZM.js";function m(e){return(t,n)=>e.read(t,n)}function $(e){let t=e.toLowerCase().trim();return t==="aprn"||t==="aprh"?"prores_raw":t==="apch"||t==="apcn"||t==="apcs"||t==="apco"||t==="ap4h"||t==="ap4x"?"prores":t==="avdn"?"dnxhd":t==="dnxh"?"dnxhr":t==="avc1"||t==="avc3"?"h264":t==="hev1"||t==="hvc1"?"h265":t==="braw"?"braw":e}var h={apco:"Proxy",apcs:"LT",apcn:"422",apch:"HQ",ap4h:"4444",ap4x:"4444 XQ"},Z={1:"bt709",2:"unknown",4:"bt470m",5:"bt470bg",6:"smpte170m",7:"smpte240m",8:"film",9:"bt2020",10:"smpte428",11:"smpte431",12:"smpte432",22:"jedec-p22"},ee={1:"bt709",2:"unknown",4:"gamma22",5:"gamma28",6:"smpte170m",7:"smpte240m",8:"linear",9:"log100",10:"log316",11:"iec61966-2-4",12:"bt1361e",13:"iec61966-2-1",14:"bt2020-10",15:"bt2020-12",16:"smpte2084",17:"smpte428",18:"arib-std-b67"},re={0:"gbr",1:"bt709",2:"unknown",4:"fcc",5:"bt470bg",6:"smpte170m",7:"smpte240m",8:"ycgco",9:"bt2020nc",10:"bt2020c",14:"ictcp"};function te(e,t){return e==="ap4h"||e==="ap4x"?t===32?"yuva444p12le":"yuv444p12le":e in h?"yuv422p10le":void 0}var B={66:"Baseline",77:"Main",88:"Extended",100:"High",110:"High 10",122:"High 4:2:2",244:"High 4:4:4"},Q={1:"Main",2:"Main 10",3:"Main Still",4:"Rext"},ne={1270:"DNxHR 444",1271:"DNxHR HQX",1272:"DNxHR HQ",1273:"DNxHR SQ",1274:"DNxHR LB"};function oe(e,t){if(h[e.codec_fourcc])return`ProRes ${h[e.codec_fourcc]}`;if(e.vc3_cid)return ne[e.vc3_cid]??`DNxHD ${e.vc3_cid}`;if(e.video_profile!=null){if(t==="h264"&&B[e.video_profile])return`H.264 ${B[e.video_profile]}`;if(t==="h265"&&Q[e.video_profile])return`HEVC ${Q[e.video_profile]}`}}function ie(e,t){let n=e.video_chroma,r=e.video_bit_depth;if(n==null&&t==="h264"&&[66,77,88].includes(e.video_profile??-1)&&([n,r]=[1,8]),n==null&&e.vc3_cid&&(n=e.vc3_cid===1270||e.vc3_cid===1256?3:2),n==null||r==null)return;let i=["gray","yuv420p","yuv422p","yuv444p"][n];return r>8?`${i}${r}le`:i}function j(e,t){let n=[];for(let r of e){if(r.kind!=="clip"||!r.source_range)continue;let i=r.source_range.start.value,o=r.source_range.duration.value,c=Math.max(0,Math.floor(i)-t),a=Math.floor(i+o-1)+t;a>=c&&n.push({first_frame:c,last_frame:a})}return n}var be={async inspect(e){await d();let t=e.parts[0],n=await f(m(t),t.fileSize,e.format),r=JSON.parse(n);if(!r)return null;let i=r.timecode&&r.timecode.fps_denominator>0?r.timecode.fps_numerator/r.timecode.fps_denominator:null,o=$(r.codec_fourcc),c=[{kind:"video",codec:o,width:r.width??void 0,height:r.height??void 0,rate:i??void 0,bit_depth:p(r.codec_fourcc)??p(o)??N(o,r.video_profile)??r.video_bit_depth??void 0,codec_specific:{fourcc:r.codec_fourcc,profile:oe(r,o),pixel_format:te(r.codec_fourcc,r.video_depth)??ie(r,o),colr:r.colr?{primaries:Z[r.colr.primaries]??r.colr.primaries,transfer:ee[r.colr.transfer]??r.colr.transfer,matrix:re[r.colr.matrix]??r.colr.matrix}:void 0}}];for(let a of r.audio_tracks??(r.audio?[r.audio]:[]))c.push({kind:"audio",codec:a.codec_fourcc,channels:a.channels??void 0,rate:a.sample_rate??void 0,bit_depth:a.bit_depth??void 0,codec_specific:{fourcc:a.codec_fourcc,channel_layout:a.channel_layout??void 0}});return{id:t.filename,kind:"external",target_url:t.filename,available_range:i&&r.duration_seconds?{start:{value:0,rate:i},duration:{value:Math.round(r.duration_seconds*i),rate:i}}:null,reel_name:null,source_timecode:r.timecode?.display??null,container:e.format==="mov"?"mov":e.format,codec:o,size_bytes:t.fileSize,source_fps:i,source_resolution_w:r.width??null,source_resolution_h:r.height??null,source_pixel_aspect:r.par?r.par[0]/r.par[1]:null,streams:c,decode_provenance:r.decode_provenance??null,vendor_metadata:r.timecode?{drop_frame:r.timecode.drop_frame}:{},binding_state:"unbound",raw_extraction:{mov_probe:r},metadata:{}}},async extract(e){await d();let t=e.parts[0],n=JSON.parse(await E(m(t),t.fileSize,e.format));if(n.length===0)return null;let r=JSON.parse(await f(m(t),t.fileSize,e.format)),i=r?$(r.codec_fourcc):e.format,o=r?.timecode&&r.timecode.fps_denominator>0?r.timecode.fps_numerator/r.timecode.fps_denominator:void 0;return{v:1,container:e.format==="mov"?"mov":e.format,codec:i,width:r?.width??void 0,height:r?.height??void 0,fps:o,frame_count:J(n),timecode:r?.timecode?.display??void 0,granularity:T(n),segments:n}},async sparsify(e,t){await d();let n=e.parts[0],r=j(t.items,t.handles),i=await H(m(n),n.fileSize,JSON.stringify(r),e.format),o=JSON.parse(i);return[{filename:n.filename,fileSize:o.fileSize,structuralRanges:o.structuralRanges,essenceRanges:o.essenceRanges,trimInputs:o.trimInputs}]},async trim(e,t){await d();let n=e.parts[0],r=j(t.items,0);if(r.length===0)throw new Error("isobmff trim: no usable trim ranges in items");let i=await L(r,t.handles,(o,c)=>k(m(n),n.fileSize,o,c,e.format));return i.map((o,c)=>{let a=JSON.parse(o);return i.length>1&&(a.output_clip_number=c+1,a.output_clip_count=i.length,a.output_part_number=1),a})},async decode(e,t,n){await d();let r=n.detail==="coarse",i=e.parts[0];if(e.format==="crm"){let l=await R(m(i),i.fileSize,t,r?"preview":"full");return s(l)}let o=await K(e);if(t<0||t>=o.length)throw new _(t,o.length);let c=o[t],a=await i.read(c.offset,c.size);if(e.format==="braw")return s(r?v(a,0):y(a));if(b(a)){let l=await X(e);return s(l?u.decode_prores_raw_tier(a,r?"preview":"full",l):r?P(a,0):x(a))}if(G(a))return s(r?D(a,0):z(a));if(r)return s(S(a,0));let g=await ae(a);return g||s(A(a))},async decode16(e,t){await d();let n=e.parts[0];if(e.format==="crm")throw new Error("crm: no 16-bit decoder");let r=await K(e);if(t<0||t>=r.length)throw new _(t,r.length);let i=r[t],o=await n.read(i.offset,i.size),c=b(o)?await X(e):null,a=e.format==="braw"?w(o):b(o)?c?u.decode_prores_raw_tier(o,"rgb16",c):M(o):G(o)?(()=>{throw new Error("vc3: no 16-bit decoder")})():F(o);return V(a)}};async function ae(e){if(!!0)return null;try{let t=await import("./prores-CFX64NME.js");if(!await t.proresGpuAvailable())return null;let n=await t.decodeProResRgbaGpu(e);return n?{width:n.width,height:n.height,rgba:n.rgba}:null}catch{return null}}function G(e){return e.length>=4&&e[0]===0&&e[1]===0&&e[2]===2&&e[3]===128}function b(e){return e.length>=8&&e[4]===112&&e[5]===114&&e[6]===114&&e[7]===102}function s(e){let t=new DataView(e.buffer,e.byteOffset,8);return{width:t.getUint32(0,!0),height:t.getUint32(4,!0),rgba:e.slice(8)}}var u=C,W=new WeakMap;function X(e){let t=W.get(e);if(!t){let n=e.parts[0];t=u.prores_raw_container_color&&u.decode_prores_raw_tier?U({fileSize:n.fileSize,read:n.read}).then(r=>{let i=u.prores_raw_container_color(r);return i.length?i:null}):Promise.resolve(null),W.set(e,t)}return t}var q=new WeakMap;async function K(e){let t=q.get(e);if(!t){let n=e.parts[0],r=O(await I(m(n),n.fileSize,e.format));if(!r.w||!r.h)throw new Error("could not find a video sample table");t=r.offs,q.set(e,t)}return t}export{be as isobmffFormat};
3
+ import{a as U}from"./chunk-TK55FA56.js";import{a as J,b as T}from"./chunk-AACY2V3L.js";import{b as p,c as N,g as O}from"./chunk-REBF4U5B.js";import{b as L}from"./chunk-TFKKODSA.js";import{b as V,c as _}from"./chunk-REGL3GQB.js";import{$ as f,A as P,B as x,C as F,D as A,Da as I,Ga as C,Ha as d,N as D,O as z,ha as E,k as w,m as v,n as y,p as R,qa as k,ta as H,x as S,y as M}from"./chunk-4I4MV3DE.js";import"./chunk-PSANHDZM.js";function m(e){return(t,n)=>e.read(t,n)}function $(e){let t=e.toLowerCase().trim();return t==="aprn"||t==="aprh"?"prores_raw":t==="apch"||t==="apcn"||t==="apcs"||t==="apco"||t==="ap4h"||t==="ap4x"?"prores":t==="avdn"?"dnxhd":t==="dnxh"?"dnxhr":t==="avc1"||t==="avc3"?"h264":t==="hev1"||t==="hvc1"?"h265":t==="braw"?"braw":e}var h={apco:"Proxy",apcs:"LT",apcn:"422",apch:"HQ",ap4h:"4444",ap4x:"4444 XQ"},Z={1:"bt709",2:"unknown",4:"bt470m",5:"bt470bg",6:"smpte170m",7:"smpte240m",8:"film",9:"bt2020",10:"smpte428",11:"smpte431",12:"smpte432",22:"jedec-p22"},ee={1:"bt709",2:"unknown",4:"gamma22",5:"gamma28",6:"smpte170m",7:"smpte240m",8:"linear",9:"log100",10:"log316",11:"iec61966-2-4",12:"bt1361e",13:"iec61966-2-1",14:"bt2020-10",15:"bt2020-12",16:"smpte2084",17:"smpte428",18:"arib-std-b67"},re={0:"gbr",1:"bt709",2:"unknown",4:"fcc",5:"bt470bg",6:"smpte170m",7:"smpte240m",8:"ycgco",9:"bt2020nc",10:"bt2020c",14:"ictcp"};function te(e,t){return e==="ap4h"||e==="ap4x"?t===32?"yuva444p12le":"yuv444p12le":e in h?"yuv422p10le":void 0}var B={66:"Baseline",77:"Main",88:"Extended",100:"High",110:"High 10",122:"High 4:2:2",244:"High 4:4:4"},Q={1:"Main",2:"Main 10",3:"Main Still",4:"Rext"},ne={1270:"DNxHR 444",1271:"DNxHR HQX",1272:"DNxHR HQ",1273:"DNxHR SQ",1274:"DNxHR LB"};function oe(e,t){if(h[e.codec_fourcc])return`ProRes ${h[e.codec_fourcc]}`;if(e.vc3_cid)return ne[e.vc3_cid]??`DNxHD ${e.vc3_cid}`;if(e.video_profile!=null){if(t==="h264"&&B[e.video_profile])return`H.264 ${B[e.video_profile]}`;if(t==="h265"&&Q[e.video_profile])return`HEVC ${Q[e.video_profile]}`}}function ie(e,t){let n=e.video_chroma,r=e.video_bit_depth;if(n==null&&t==="h264"&&[66,77,88].includes(e.video_profile??-1)&&([n,r]=[1,8]),n==null&&e.vc3_cid&&(n=e.vc3_cid===1270||e.vc3_cid===1256?3:2),n==null||r==null)return;let i=["gray","yuv420p","yuv422p","yuv444p"][n];return r>8?`${i}${r}le`:i}function j(e,t){let n=[];for(let r of e){if(r.kind!=="clip"||!r.source_range)continue;let i=r.source_range.start.value,o=r.source_range.duration.value,c=Math.max(0,Math.floor(i)-t),a=Math.floor(i+o-1)+t;a>=c&&n.push({first_frame:c,last_frame:a})}return n}var be={async inspect(e){await d();let t=e.parts[0],n=await f(m(t),t.fileSize,e.format),r=JSON.parse(n);if(!r)return null;let i=r.timecode&&r.timecode.fps_denominator>0?r.timecode.fps_numerator/r.timecode.fps_denominator:null,o=$(r.codec_fourcc),c=[{kind:"video",codec:o,width:r.width??void 0,height:r.height??void 0,rate:i??void 0,bit_depth:p(r.codec_fourcc)??p(o)??N(o,r.video_profile)??r.video_bit_depth??void 0,codec_specific:{fourcc:r.codec_fourcc,profile:oe(r,o),pixel_format:te(r.codec_fourcc,r.video_depth)??ie(r,o),colr:r.colr?{primaries:Z[r.colr.primaries]??r.colr.primaries,transfer:ee[r.colr.transfer]??r.colr.transfer,matrix:re[r.colr.matrix]??r.colr.matrix}:void 0}}];for(let a of r.audio_tracks??(r.audio?[r.audio]:[]))c.push({kind:"audio",codec:a.codec_fourcc,channels:a.channels??void 0,rate:a.sample_rate??void 0,bit_depth:a.bit_depth??void 0,codec_specific:{fourcc:a.codec_fourcc,channel_layout:a.channel_layout??void 0}});return{id:t.filename,kind:"external",target_url:t.filename,available_range:i&&r.duration_seconds?{start:{value:0,rate:i},duration:{value:Math.round(r.duration_seconds*i),rate:i}}:null,reel_name:null,source_timecode:r.timecode?.display??null,container:e.format==="mov"?"mov":e.format,codec:o,size_bytes:t.fileSize,source_fps:i,source_resolution_w:r.width??null,source_resolution_h:r.height??null,source_pixel_aspect:r.par?r.par[0]/r.par[1]:null,streams:c,decode_provenance:r.decode_provenance??null,vendor_metadata:r.timecode?{drop_frame:r.timecode.drop_frame}:{},binding_state:"unbound",raw_extraction:{mov_probe:r},metadata:{}}},async extract(e){await d();let t=e.parts[0],n=JSON.parse(await E(m(t),t.fileSize,e.format));if(n.length===0)return null;let r=JSON.parse(await f(m(t),t.fileSize,e.format)),i=r?$(r.codec_fourcc):e.format,o=r?.timecode&&r.timecode.fps_denominator>0?r.timecode.fps_numerator/r.timecode.fps_denominator:void 0;return{v:1,container:e.format==="mov"?"mov":e.format,codec:i,width:r?.width??void 0,height:r?.height??void 0,fps:o,frame_count:J(n),timecode:r?.timecode?.display??void 0,granularity:T(n),segments:n}},async sparsify(e,t){await d();let n=e.parts[0],r=j(t.items,t.handles),i=await H(m(n),n.fileSize,JSON.stringify(r),e.format),o=JSON.parse(i);return[{filename:n.filename,fileSize:o.fileSize,structuralRanges:o.structuralRanges,essenceRanges:o.essenceRanges,trimInputs:o.trimInputs}]},async trim(e,t){await d();let n=e.parts[0],r=j(t.items,0);if(r.length===0)throw new Error("isobmff trim: no usable trim ranges in items");let i=await L(r,t.handles,(o,c)=>k(m(n),n.fileSize,o,c,e.format));return i.map((o,c)=>{let a=JSON.parse(o);return i.length>1&&(a.output_clip_number=c+1,a.output_clip_count=i.length,a.output_part_number=1),a})},async decode(e,t,n){await d();let r=n.detail==="coarse",i=e.parts[0];if(e.format==="crm"){let l=await R(m(i),i.fileSize,t,r?"preview":"full");return s(l)}let o=await K(e);if(t<0||t>=o.length)throw new _(t,o.length);let c=o[t],a=await i.read(c.offset,c.size);if(e.format==="braw")return s(r?v(a,0):y(a));if(b(a)){let l=await X(e);return s(l?u.decode_prores_raw_tier(a,r?"preview":"full",l):r?P(a,0):x(a))}if(G(a))return s(r?D(a,0):z(a));if(r)return s(S(a,0));let g=await ae(a);return g||s(A(a))},async decode16(e,t){await d();let n=e.parts[0];if(e.format==="crm")throw new Error("crm: no 16-bit decoder");let r=await K(e);if(t<0||t>=r.length)throw new _(t,r.length);let i=r[t],o=await n.read(i.offset,i.size),c=b(o)?await X(e):null,a=e.format==="braw"?w(o):b(o)?c?u.decode_prores_raw_tier(o,"rgb16",c):M(o):G(o)?(()=>{throw new Error("vc3: no 16-bit decoder")})():F(o);return V(a)}};async function ae(e){if(!!0)return null;try{let t=await import("./prores-CFX64NME.js");if(!await t.proresGpuAvailable())return null;let n=await t.decodeProResRgbaGpu(e);return n?{width:n.width,height:n.height,rgba:n.rgba}:null}catch{return null}}function G(e){return e.length>=4&&e[0]===0&&e[1]===0&&e[2]===2&&e[3]===128}function b(e){return e.length>=8&&e[4]===112&&e[5]===114&&e[6]===114&&e[7]===102}function s(e){let t=new DataView(e.buffer,e.byteOffset,8);return{width:t.getUint32(0,!0),height:t.getUint32(4,!0),rgba:e.slice(8)}}var u=C,W=new WeakMap;function X(e){let t=W.get(e);if(!t){let n=e.parts[0];t=u.prores_raw_container_color&&u.decode_prores_raw_tier?U({fileSize:n.fileSize,read:n.read}).then(r=>{let i=u.prores_raw_container_color(r);return i.length?i:null}):Promise.resolve(null),W.set(e,t)}return t}var q=new WeakMap;async function K(e){let t=q.get(e);if(!t){let n=e.parts[0],r=O(await I(m(n),n.fileSize,e.format));if(!r.w||!r.h)throw new Error("could not find a video sample table");t=r.offs,q.set(e,t)}return t}export{be as isobmffFormat};
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{c as b}from"./chunk-VFXMP7IF.js";import"./chunk-BBCQMZQN.js";import{c as w,g as y}from"./chunk-2S2ZPQQD.js";import{Ca as l,Ga as p,Ha as h}from"./chunk-L2RTMZCN.js";import"./chunk-PSANHDZM.js";var F=72*1024*1024,S=16,m=p;function L(){return typeof m.video_open=="function"&&typeof m.video_decode=="function"}async function P(r,e){if(await h(),!L())return null;try{return JSON.parse(await m.video_open(r,e))}catch{return null}}function k(r){l?.(r)}var u=new WeakMap;function v(r){let e=u.get(r);if(!e){let t=r.parts[0];e=P((n,a)=>t.read(n,a),t.fileSize).then(n=>{if(!n)throw new Error(`mcvideo: media-core has no video decoder for ${t.filename}`);return{info:n,cache:new Map,cacheCoarse:!1,frameBytes:0,queue:Promise.resolve()}}),e.catch(()=>u.delete(r)),u.set(r,e)}return e}async function B(r){try{return(await v(r)).info.frames}catch{return 0}}function _(r){let e=new DataView(r.buffer,r.byteOffset,r.byteLength),t=new Map,n=4;for(let a=e.getUint32(0,!0);a>0&&n+12<=r.length;a--){let s=e.getUint32(n,!0),c=e.getUint32(n+4,!0),i=e.getUint32(n+8,!0),o=c*i*4;if(n+=12,n+o>r.length)break;t.set(s,{width:c,height:i,rgba:r.slice(n,n+o)}),n+=o}return t}async function C(r,e,t){let n=await v(r),{info:a}=n;if(e<0||e>=a.frames)throw new w(e,a.frames);let s=async()=>{let i=t&&a.codec==="dv";n.cacheCoarse!==i&&(n.cache.clear(),n.cacheCoarse=i);let o=n.cache.get(e);if(!o){let g=a.inter?Math.max(1,Math.min(S,n.frameBytes?Math.floor(F/n.frameBytes):4)):1,d=_(await m.video_decode(a.handle,e,Math.min(a.frames,e+g),i));n.cache=d,o=d.get(e),o&&(n.frameBytes=o.rgba.length)}if(!o)throw new Error(`mcvideo: ${a.codec} frame ${e} did not decode`);return n.cache.delete(e),o},c=n.queue.then(s,s);return n.queue=c.catch(()=>{}),c}async function f(r){let e=b(r.parts[0]?.filename??""),t=e?await y(e):null;return t&&e?[t,{...r,format:e}]:null}async function M(r){let e=await f(r);if(!e)throw new Error(`mcvideo: no container module for ${r.parts[0]?.filename} \u2014 ships whole`);return e}var I={async inspect(r){let e=await f(r);return e?e[0].inspect(e[1]):null},async extract(r){let e=await f(r);return e?e[0].extract(e[1]):null},async sparsify(r,e){let[t,n]=await M(r);return t.sparsify(n,e)},async trim(r,e){let[t,n]=await M(r);return t.trim(n,e)},async decode(r,e,{detail:t}){return C(r,e,t==="coarse")}};export{k as closeVideoLane,L as hasVideoLane,I as mcVideoFormat,P as openVideoLane,_ as unpackWindow,B as videoLaneFrames};
3
+ import{c as b}from"./chunk-VFXMP7IF.js";import"./chunk-BBCQMZQN.js";import{c as w,g as y}from"./chunk-REGL3GQB.js";import{Ca as l,Ga as p,Ha as h}from"./chunk-4I4MV3DE.js";import"./chunk-PSANHDZM.js";var F=72*1024*1024,S=16,m=p;function L(){return typeof m.video_open=="function"&&typeof m.video_decode=="function"}async function P(r,e){if(await h(),!L())return null;try{return JSON.parse(await m.video_open(r,e))}catch{return null}}function k(r){l?.(r)}var u=new WeakMap;function v(r){let e=u.get(r);if(!e){let t=r.parts[0];e=P((n,a)=>t.read(n,a),t.fileSize).then(n=>{if(!n)throw new Error(`mcvideo: media-core has no video decoder for ${t.filename}`);return{info:n,cache:new Map,cacheCoarse:!1,frameBytes:0,queue:Promise.resolve()}}),e.catch(()=>u.delete(r)),u.set(r,e)}return e}async function B(r){try{return(await v(r)).info.frames}catch{return 0}}function _(r){let e=new DataView(r.buffer,r.byteOffset,r.byteLength),t=new Map,n=4;for(let a=e.getUint32(0,!0);a>0&&n+12<=r.length;a--){let s=e.getUint32(n,!0),c=e.getUint32(n+4,!0),i=e.getUint32(n+8,!0),o=c*i*4;if(n+=12,n+o>r.length)break;t.set(s,{width:c,height:i,rgba:r.slice(n,n+o)}),n+=o}return t}async function C(r,e,t){let n=await v(r),{info:a}=n;if(e<0||e>=a.frames)throw new w(e,a.frames);let s=async()=>{let i=t&&a.codec==="dv";n.cacheCoarse!==i&&(n.cache.clear(),n.cacheCoarse=i);let o=n.cache.get(e);if(!o){let g=a.inter?Math.max(1,Math.min(S,n.frameBytes?Math.floor(F/n.frameBytes):4)):1,d=_(await m.video_decode(a.handle,e,Math.min(a.frames,e+g),i));n.cache=d,o=d.get(e),o&&(n.frameBytes=o.rgba.length)}if(!o)throw new Error(`mcvideo: ${a.codec} frame ${e} did not decode`);return n.cache.delete(e),o},c=n.queue.then(s,s);return n.queue=c.catch(()=>{}),c}async function f(r){let e=b(r.parts[0]?.filename??""),t=e?await y(e):null;return t&&e?[t,{...r,format:e}]:null}async function M(r){let e=await f(r);if(!e)throw new Error(`mcvideo: no container module for ${r.parts[0]?.filename} \u2014 ships whole`);return e}var I={async inspect(r){let e=await f(r);return e?e[0].inspect(e[1]):null},async extract(r){let e=await f(r);return e?e[0].extract(e[1]):null},async sparsify(r,e){let[t,n]=await M(r);return t.sparsify(n,e)},async trim(r,e){let[t,n]=await M(r);return t.trim(n,e)},async decode(r,e,{detail:t}){return C(r,e,t==="coarse")}};export{k as closeVideoLane,L as hasVideoLane,I as mcVideoFormat,P as openVideoLane,_ as unpackWindow,B as videoLaneFrames};
package/dist/mcp.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __conformRequire } from 'node:module'; const require = __conformRequire(import.meta.url);
3
- import{b as ma}from"./chunk-4UT55WZA.js";import{e as ca,i as la,j as ua,k as da,m as fa,n as pa,o as tn}from"./chunk-WYI4LL4P.js";import"./chunk-HCT34NDA.js";import"./chunk-JVJUJKUP.js";import"./chunk-A7AYMSY7.js";import"./chunk-OSPDH2RK.js";import"./chunk-2WNNDPVR.js";import"./chunk-YU3SUSK3.js";import"./chunk-QTFFVLVJ.js";import"./chunk-5YULBQJX.js";import{A as S,Ac as Wi,B as Li,Bc as Dt,C as K,Cc as Xi,D as Fi,Dc as Qi,E as en,Ec as Yi,F as Hi,Fc as ea,G as dt,H as Ui,Lc as ta,Mc as ra,Uc as oa,Yc as na,Zc as sa,_c as ia,a as qi,b as Go,bd as aa,c as Ni,d as ji,e as Oi,f as Bo,g as Jo,h as Wo,i as Ot,j as At,k as Ai,l as Di,m as Xo,n as f,o as D,p as W,q as Zi,r as G,s as q,t as v,u as se,v as V,w as Qo,x as Yo,y as F,z as pe}from"./chunk-6IL7M3VP.js";import"./chunk-IN6XVTUS.js";import"./chunk-GBNPOZ32.js";import"./chunk-3PVQ5QP4.js";import"./chunk-VFXMP7IF.js";import"./chunk-V2FVIZT7.js";import{a as zr,b as Ii,c as Ci,d as Mi}from"./chunk-GHP6HDLM.js";import"./chunk-LUKA7UUJ.js";import"./chunk-ATEWMIY5.js";import"./chunk-2GRXBIJB.js";import"./chunk-EWW5KWAO.js";import"./chunk-567IWIX6.js";import"./chunk-OSUIS4JU.js";import"./chunk-JV7TZDKJ.js";import"./chunk-BBCQMZQN.js";import"./chunk-2DEUYEQD.js";import"./chunk-4V3KLFCJ.js";import"./chunk-2S2ZPQQD.js";import{a as Gi,e as Bi,k as Ji}from"./chunk-ZAL7Y5VZ.js";import"./chunk-IPQLKAF2.js";import"./chunk-Y7PFSVRX.js";import"./chunk-C2ESM27Z.js";import"./chunk-LMRPCWHV.js";import"./chunk-HROU7LLU.js";import"./chunk-N34DQ6MH.js";import"./chunk-NU3X7P4N.js";import"./chunk-L2RTMZCN.js";import"./chunk-3WJSWOCS.js";import"./chunk-2XQ42O7E.js";import"./chunk-M545OKDZ.js";import{e as Vi,f as Ki}from"./chunk-COALWMI7.js";import"./chunk-MU5AGXSH.js";import{c as $,f as Ri}from"./chunk-PSANHDZM.js";var Qt=$(A=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.regexpCode=A.getEsmExportName=A.getProperty=A.safeStringify=A.stringify=A.strConcat=A.addCodeArg=A.str=A._=A.nil=A._Code=A.Name=A.IDENTIFIER=A._CodeOrName=void 0;var Wt=class{};A._CodeOrName=Wt;A.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Ye=class extends Wt{constructor(e){if(super(),!A.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};A.Name=Ye;var ye=class extends Wt{constructor(e){super(),this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((r,o)=>`${r}${o}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((r,o)=>(o instanceof Ye&&(r[o.str]=(r[o.str]||0)+1),r),{})}};A._Code=ye;A.nil=new ye("");function Oa(t,...e){let r=[t[0]],o=0;for(;o<e.length;)En(r,e[o]),r.push(t[++o]);return new ye(r)}A._=Oa;var xn=new ye("+");function Aa(t,...e){let r=[Xt(t[0])],o=0;for(;o<e.length;)r.push(xn),En(r,e[o]),r.push(xn,Xt(t[++o]));return qf(r),new ye(r)}A.str=Aa;function En(t,e){e instanceof ye?t.push(...e._items):e instanceof Ye?t.push(e):t.push(Of(e))}A.addCodeArg=En;function qf(t){let e=1;for(;e<t.length-1;){if(t[e]===xn){let r=Nf(t[e-1],t[e+1]);if(r!==void 0){t.splice(e-1,3,r);continue}t[e++]="+"}e++}}function Nf(t,e){if(e==='""')return t;if(t==='""')return e;if(typeof t=="string")return e instanceof Ye||t[t.length-1]!=='"'?void 0:typeof e!="string"?`${t.slice(0,-1)}${e}"`:e[0]==='"'?t.slice(0,-1)+e.slice(1):void 0;if(typeof e=="string"&&e[0]==='"'&&!(t instanceof Ye))return`"${t}${e.slice(1)}`}function jf(t,e){return e.emptyStr()?t:t.emptyStr()?e:Aa`${t}${e}`}A.strConcat=jf;function Of(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:Xt(Array.isArray(t)?t.join(","):t)}function Af(t){return new ye(Xt(t))}A.stringify=Af;function Xt(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}A.safeStringify=Xt;function Df(t){return typeof t=="string"&&A.IDENTIFIER.test(t)?new ye(`.${t}`):Oa`[${t}]`}A.getProperty=Df;function Zf(t){if(typeof t=="string"&&A.IDENTIFIER.test(t))return new ye(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}A.getEsmExportName=Zf;function Lf(t){return new ye(t.toString())}A.regexpCode=Lf});var Pn=$(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.ValueScope=le.ValueScopeName=le.Scope=le.varKinds=le.UsedValueState=void 0;var ce=Qt(),kn=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},Qr;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(Qr||(le.UsedValueState=Qr={}));le.varKinds={const:new ce.Name("const"),let:new ce.Name("let"),var:new ce.Name("var")};var Yr=class{constructor({prefixes:e,parent:r}={}){this._names={},this._prefixes=e,this._parent=r}toName(e){return e instanceof ce.Name?e:this.name(e)}name(e){return new ce.Name(this._newName(e))}_newName(e){let r=this._names[e]||this._nameGroup(e);return`${e}${r.index++}`}_nameGroup(e){var r,o;if(!((o=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||o===void 0)&&o.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};le.Scope=Yr;var eo=class extends ce.Name{constructor(e,r){super(r),this.prefix=e}setValue(e,{property:r,itemIndex:o}){this.value=e,this.scopePath=(0,ce._)`.${new ce.Name(r)}[${o}]`}};le.ValueScopeName=eo;var Ff=(0,ce._)`\n`,zn=class extends Yr{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?Ff:ce.nil}}get(){return this._scope}name(e){return new eo(e,this._newName(e))}value(e,r){var o;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let n=this.toName(e),{prefix:s}=n,i=(o=r.key)!==null&&o!==void 0?o:r.ref,a=this._values[s];if(a){let l=a.get(i);if(l)return l}else a=this._values[s]=new Map;a.set(i,n);let c=this._scope[s]||(this._scope[s]=[]),u=c.length;return c[u]=r.ref,n.setValue(r,{property:s,itemIndex:u}),n}getValue(e,r){let o=this._values[e];if(o)return o.get(r)}scopeRefs(e,r=this._values){return this._reduceValues(r,o=>{if(o.scopePath===void 0)throw new Error(`CodeGen: name "${o}" has no value`);return(0,ce._)`${e}${o.scopePath}`})}scopeCode(e=this._values,r,o){return this._reduceValues(e,n=>{if(n.value===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return n.value.code},r,o)}_reduceValues(e,r,o={},n){let s=ce.nil;for(let i in e){let a=e[i];if(!a)continue;let c=o[i]=o[i]||new Map;a.forEach(u=>{if(c.has(u))return;c.set(u,Qr.Started);let l=r(u);if(l){let d=this.opts.es5?le.varKinds.var:le.varKinds.const;s=(0,ce._)`${s}${d} ${u} = ${l};${this.opts._n}`}else if(l=n?.(u))s=(0,ce._)`${s}${l}${this.opts._n}`;else throw new kn(u);c.set(u,Qr.Completed)})}return s}};le.ValueScope=zn});var R=$(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.or=I.and=I.not=I.CodeGen=I.operators=I.varKinds=I.ValueScopeName=I.ValueScope=I.Scope=I.Name=I.regexpCode=I.stringify=I.getProperty=I.nil=I.strConcat=I.str=I._=void 0;var M=Qt(),we=Pn(),He=Qt();Object.defineProperty(I,"_",{enumerable:!0,get:function(){return He._}});Object.defineProperty(I,"str",{enumerable:!0,get:function(){return He.str}});Object.defineProperty(I,"strConcat",{enumerable:!0,get:function(){return He.strConcat}});Object.defineProperty(I,"nil",{enumerable:!0,get:function(){return He.nil}});Object.defineProperty(I,"getProperty",{enumerable:!0,get:function(){return He.getProperty}});Object.defineProperty(I,"stringify",{enumerable:!0,get:function(){return He.stringify}});Object.defineProperty(I,"regexpCode",{enumerable:!0,get:function(){return He.regexpCode}});Object.defineProperty(I,"Name",{enumerable:!0,get:function(){return He.Name}});var no=Pn();Object.defineProperty(I,"Scope",{enumerable:!0,get:function(){return no.Scope}});Object.defineProperty(I,"ValueScope",{enumerable:!0,get:function(){return no.ValueScope}});Object.defineProperty(I,"ValueScopeName",{enumerable:!0,get:function(){return no.ValueScopeName}});Object.defineProperty(I,"varKinds",{enumerable:!0,get:function(){return no.varKinds}});I.operators={GT:new M._Code(">"),GTE:new M._Code(">="),LT:new M._Code("<"),LTE:new M._Code("<="),EQ:new M._Code("==="),NEQ:new M._Code("!=="),NOT:new M._Code("!"),OR:new M._Code("||"),AND:new M._Code("&&"),ADD:new M._Code("+")};var Ne=class{optimizeNodes(){return this}optimizeNames(e,r){return this}},Tn=class extends Ne{constructor(e,r,o){super(),this.varKind=e,this.name=r,this.rhs=o}render({es5:e,_n:r}){let o=e?we.varKinds.var:this.varKind,n=this.rhs===void 0?"":` = ${this.rhs}`;return`${o} ${this.name}${n};`+r}optimizeNames(e,r){if(e[this.name.str])return this.rhs&&(this.rhs=vt(this.rhs,e,r)),this}get names(){return this.rhs instanceof M._CodeOrName?this.rhs.names:{}}},to=class extends Ne{constructor(e,r,o){super(),this.lhs=e,this.rhs=r,this.sideEffects=o}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof M.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=vt(this.rhs,e,r),this}get names(){let e=this.lhs instanceof M.Name?{}:{...this.lhs.names};return oo(e,this.rhs)}},Rn=class extends to{constructor(e,r,o,n){super(e,o,n),this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},In=class extends Ne{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},Cn=class extends Ne{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},Mn=class extends Ne{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},qn=class extends Ne{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){return this.code=vt(this.code,e,r),this}get names(){return this.code instanceof M._CodeOrName?this.code.names:{}}},Yt=class extends Ne{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((r,o)=>r+o.render(e),"")}optimizeNodes(){let{nodes:e}=this,r=e.length;for(;r--;){let o=e[r].optimizeNodes();Array.isArray(o)?e.splice(r,1,...o):o?e[r]=o:e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){let{nodes:o}=this,n=o.length;for(;n--;){let s=o[n];s.optimizeNames(e,r)||(Hf(e,s.names),o.splice(n,1))}return o.length>0?this:void 0}get names(){return this.nodes.reduce((e,r)=>rt(e,r.names),{})}},je=class extends Yt{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},Nn=class extends Yt{},$t=class extends je{};$t.kind="else";var et=class t extends je{constructor(e,r){super(r),this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);return this.else&&(r+="else "+this.else.render(e)),r}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let r=this.else;if(r){let o=r.optimizeNodes();r=this.else=Array.isArray(o)?new $t(o):o}if(r)return e===!1?r instanceof t?r:r.nodes:this.nodes.length?this:new t(Da(e),r instanceof t?[r]:r.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,r){var o;if(this.else=(o=this.else)===null||o===void 0?void 0:o.optimizeNames(e,r),!!(super.optimizeNames(e,r)||this.else))return this.condition=vt(this.condition,e,r),this}get names(){let e=super.names;return oo(e,this.condition),this.else&&rt(e,this.else.names),e}};et.kind="if";var tt=class extends je{};tt.kind="for";var jn=class extends tt{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iteration=vt(this.iteration,e,r),this}get names(){return rt(super.names,this.iteration.names)}},On=class extends tt{constructor(e,r,o,n){super(),this.varKind=e,this.name=r,this.from=o,this.to=n}render(e){let r=e.es5?we.varKinds.var:this.varKind,{name:o,from:n,to:s}=this;return`for(${r} ${o}=${n}; ${o}<${s}; ${o}++)`+super.render(e)}get names(){let e=oo(super.names,this.from);return oo(e,this.to)}},ro=class extends tt{constructor(e,r,o,n){super(),this.loop=e,this.varKind=r,this.name=o,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iterable=vt(this.iterable,e,r),this}get names(){return rt(super.names,this.iterable.names)}},er=class extends je{constructor(e,r,o){super(),this.name=e,this.args=r,this.async=o}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};er.kind="func";var tr=class extends Yt{render(e){return"return "+super.render(e)}};tr.kind="return";var An=class extends je{render(e){let r="try"+super.render(e);return this.catch&&(r+=this.catch.render(e)),this.finally&&(r+=this.finally.render(e)),r}optimizeNodes(){var e,r;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(e,r){var o,n;return super.optimizeNames(e,r),(o=this.catch)===null||o===void 0||o.optimizeNames(e,r),(n=this.finally)===null||n===void 0||n.optimizeNames(e,r),this}get names(){let e=super.names;return this.catch&&rt(e,this.catch.names),this.finally&&rt(e,this.finally.names),e}},rr=class extends je{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};rr.kind="catch";var or=class extends je{render(e){return"finally"+super.render(e)}};or.kind="finally";var Dn=class{constructor(e,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
3
+ import{b as ma}from"./chunk-BFN565RJ.js";import{e as ca,i as la,j as ua,k as da,m as fa,n as pa,o as tn}from"./chunk-CHEQJC4U.js";import"./chunk-OVBFJOO2.js";import"./chunk-Z3LQ56WS.js";import"./chunk-DHDSDH6R.js";import"./chunk-64AMZWOI.js";import"./chunk-3KS3547B.js";import"./chunk-YU3SUSK3.js";import"./chunk-QTFFVLVJ.js";import"./chunk-5YULBQJX.js";import{A as S,Ac as Wi,B as Li,Bc as Dt,C as K,Cc as Xi,D as Fi,Dc as Qi,E as en,Ec as Yi,F as Hi,Fc as ea,G as dt,H as Ui,Lc as ta,Mc as ra,Uc as oa,Yc as na,Zc as sa,_c as ia,a as qi,b as Go,bd as aa,c as Ni,d as ji,e as Oi,f as Bo,g as Jo,h as Wo,i as Ot,j as At,k as Ai,l as Di,m as Xo,n as f,o as D,p as W,q as Zi,r as G,s as q,t as v,u as se,v as V,w as Qo,x as Yo,y as F,z as pe}from"./chunk-65SLDY2M.js";import"./chunk-IN6XVTUS.js";import"./chunk-QNVFSA7C.js";import"./chunk-3PVQ5QP4.js";import"./chunk-VFXMP7IF.js";import"./chunk-FSXF4K3J.js";import{a as zr,b as Ii,d as Ci,e as Mi}from"./chunk-JUJESM4P.js";import"./chunk-ZCQTIYXB.js";import"./chunk-PKKUIGZ5.js";import"./chunk-JGI5YEGH.js";import"./chunk-6C3EEZH3.js";import"./chunk-M3DXHHD7.js";import"./chunk-OSUIS4JU.js";import"./chunk-JV7TZDKJ.js";import"./chunk-BBCQMZQN.js";import"./chunk-REBF4U5B.js";import"./chunk-TFKKODSA.js";import"./chunk-REGL3GQB.js";import{a as Gi,e as Bi,k as Ji}from"./chunk-QPSQQEO6.js";import"./chunk-IW5M45CL.js";import"./chunk-NHWWMLZW.js";import"./chunk-C2ESM27Z.js";import"./chunk-LMRPCWHV.js";import"./chunk-O5HYVCFL.js";import"./chunk-N34DQ6MH.js";import"./chunk-NU3X7P4N.js";import"./chunk-4I4MV3DE.js";import"./chunk-67VLJJ75.js";import"./chunk-OCNKVM26.js";import"./chunk-HNEKQMQG.js";import{e as Vi,f as Ki}from"./chunk-E75BCWXY.js";import"./chunk-ZPIY5DOU.js";import{c as $,f as Ri}from"./chunk-PSANHDZM.js";var Qt=$(A=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.regexpCode=A.getEsmExportName=A.getProperty=A.safeStringify=A.stringify=A.strConcat=A.addCodeArg=A.str=A._=A.nil=A._Code=A.Name=A.IDENTIFIER=A._CodeOrName=void 0;var Wt=class{};A._CodeOrName=Wt;A.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Ye=class extends Wt{constructor(e){if(super(),!A.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};A.Name=Ye;var ye=class extends Wt{constructor(e){super(),this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((r,o)=>`${r}${o}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((r,o)=>(o instanceof Ye&&(r[o.str]=(r[o.str]||0)+1),r),{})}};A._Code=ye;A.nil=new ye("");function Oa(t,...e){let r=[t[0]],o=0;for(;o<e.length;)En(r,e[o]),r.push(t[++o]);return new ye(r)}A._=Oa;var xn=new ye("+");function Aa(t,...e){let r=[Xt(t[0])],o=0;for(;o<e.length;)r.push(xn),En(r,e[o]),r.push(xn,Xt(t[++o]));return qf(r),new ye(r)}A.str=Aa;function En(t,e){e instanceof ye?t.push(...e._items):e instanceof Ye?t.push(e):t.push(Of(e))}A.addCodeArg=En;function qf(t){let e=1;for(;e<t.length-1;){if(t[e]===xn){let r=Nf(t[e-1],t[e+1]);if(r!==void 0){t.splice(e-1,3,r);continue}t[e++]="+"}e++}}function Nf(t,e){if(e==='""')return t;if(t==='""')return e;if(typeof t=="string")return e instanceof Ye||t[t.length-1]!=='"'?void 0:typeof e!="string"?`${t.slice(0,-1)}${e}"`:e[0]==='"'?t.slice(0,-1)+e.slice(1):void 0;if(typeof e=="string"&&e[0]==='"'&&!(t instanceof Ye))return`"${t}${e.slice(1)}`}function jf(t,e){return e.emptyStr()?t:t.emptyStr()?e:Aa`${t}${e}`}A.strConcat=jf;function Of(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:Xt(Array.isArray(t)?t.join(","):t)}function Af(t){return new ye(Xt(t))}A.stringify=Af;function Xt(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}A.safeStringify=Xt;function Df(t){return typeof t=="string"&&A.IDENTIFIER.test(t)?new ye(`.${t}`):Oa`[${t}]`}A.getProperty=Df;function Zf(t){if(typeof t=="string"&&A.IDENTIFIER.test(t))return new ye(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}A.getEsmExportName=Zf;function Lf(t){return new ye(t.toString())}A.regexpCode=Lf});var Pn=$(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.ValueScope=le.ValueScopeName=le.Scope=le.varKinds=le.UsedValueState=void 0;var ce=Qt(),kn=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},Qr;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(Qr||(le.UsedValueState=Qr={}));le.varKinds={const:new ce.Name("const"),let:new ce.Name("let"),var:new ce.Name("var")};var Yr=class{constructor({prefixes:e,parent:r}={}){this._names={},this._prefixes=e,this._parent=r}toName(e){return e instanceof ce.Name?e:this.name(e)}name(e){return new ce.Name(this._newName(e))}_newName(e){let r=this._names[e]||this._nameGroup(e);return`${e}${r.index++}`}_nameGroup(e){var r,o;if(!((o=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||o===void 0)&&o.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};le.Scope=Yr;var eo=class extends ce.Name{constructor(e,r){super(r),this.prefix=e}setValue(e,{property:r,itemIndex:o}){this.value=e,this.scopePath=(0,ce._)`.${new ce.Name(r)}[${o}]`}};le.ValueScopeName=eo;var Ff=(0,ce._)`\n`,zn=class extends Yr{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?Ff:ce.nil}}get(){return this._scope}name(e){return new eo(e,this._newName(e))}value(e,r){var o;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let n=this.toName(e),{prefix:s}=n,i=(o=r.key)!==null&&o!==void 0?o:r.ref,a=this._values[s];if(a){let l=a.get(i);if(l)return l}else a=this._values[s]=new Map;a.set(i,n);let c=this._scope[s]||(this._scope[s]=[]),u=c.length;return c[u]=r.ref,n.setValue(r,{property:s,itemIndex:u}),n}getValue(e,r){let o=this._values[e];if(o)return o.get(r)}scopeRefs(e,r=this._values){return this._reduceValues(r,o=>{if(o.scopePath===void 0)throw new Error(`CodeGen: name "${o}" has no value`);return(0,ce._)`${e}${o.scopePath}`})}scopeCode(e=this._values,r,o){return this._reduceValues(e,n=>{if(n.value===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return n.value.code},r,o)}_reduceValues(e,r,o={},n){let s=ce.nil;for(let i in e){let a=e[i];if(!a)continue;let c=o[i]=o[i]||new Map;a.forEach(u=>{if(c.has(u))return;c.set(u,Qr.Started);let l=r(u);if(l){let d=this.opts.es5?le.varKinds.var:le.varKinds.const;s=(0,ce._)`${s}${d} ${u} = ${l};${this.opts._n}`}else if(l=n?.(u))s=(0,ce._)`${s}${l}${this.opts._n}`;else throw new kn(u);c.set(u,Qr.Completed)})}return s}};le.ValueScope=zn});var R=$(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.or=I.and=I.not=I.CodeGen=I.operators=I.varKinds=I.ValueScopeName=I.ValueScope=I.Scope=I.Name=I.regexpCode=I.stringify=I.getProperty=I.nil=I.strConcat=I.str=I._=void 0;var M=Qt(),we=Pn(),He=Qt();Object.defineProperty(I,"_",{enumerable:!0,get:function(){return He._}});Object.defineProperty(I,"str",{enumerable:!0,get:function(){return He.str}});Object.defineProperty(I,"strConcat",{enumerable:!0,get:function(){return He.strConcat}});Object.defineProperty(I,"nil",{enumerable:!0,get:function(){return He.nil}});Object.defineProperty(I,"getProperty",{enumerable:!0,get:function(){return He.getProperty}});Object.defineProperty(I,"stringify",{enumerable:!0,get:function(){return He.stringify}});Object.defineProperty(I,"regexpCode",{enumerable:!0,get:function(){return He.regexpCode}});Object.defineProperty(I,"Name",{enumerable:!0,get:function(){return He.Name}});var no=Pn();Object.defineProperty(I,"Scope",{enumerable:!0,get:function(){return no.Scope}});Object.defineProperty(I,"ValueScope",{enumerable:!0,get:function(){return no.ValueScope}});Object.defineProperty(I,"ValueScopeName",{enumerable:!0,get:function(){return no.ValueScopeName}});Object.defineProperty(I,"varKinds",{enumerable:!0,get:function(){return no.varKinds}});I.operators={GT:new M._Code(">"),GTE:new M._Code(">="),LT:new M._Code("<"),LTE:new M._Code("<="),EQ:new M._Code("==="),NEQ:new M._Code("!=="),NOT:new M._Code("!"),OR:new M._Code("||"),AND:new M._Code("&&"),ADD:new M._Code("+")};var Ne=class{optimizeNodes(){return this}optimizeNames(e,r){return this}},Tn=class extends Ne{constructor(e,r,o){super(),this.varKind=e,this.name=r,this.rhs=o}render({es5:e,_n:r}){let o=e?we.varKinds.var:this.varKind,n=this.rhs===void 0?"":` = ${this.rhs}`;return`${o} ${this.name}${n};`+r}optimizeNames(e,r){if(e[this.name.str])return this.rhs&&(this.rhs=vt(this.rhs,e,r)),this}get names(){return this.rhs instanceof M._CodeOrName?this.rhs.names:{}}},to=class extends Ne{constructor(e,r,o){super(),this.lhs=e,this.rhs=r,this.sideEffects=o}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof M.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=vt(this.rhs,e,r),this}get names(){let e=this.lhs instanceof M.Name?{}:{...this.lhs.names};return oo(e,this.rhs)}},Rn=class extends to{constructor(e,r,o,n){super(e,o,n),this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},In=class extends Ne{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},Cn=class extends Ne{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},Mn=class extends Ne{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},qn=class extends Ne{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){return this.code=vt(this.code,e,r),this}get names(){return this.code instanceof M._CodeOrName?this.code.names:{}}},Yt=class extends Ne{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((r,o)=>r+o.render(e),"")}optimizeNodes(){let{nodes:e}=this,r=e.length;for(;r--;){let o=e[r].optimizeNodes();Array.isArray(o)?e.splice(r,1,...o):o?e[r]=o:e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){let{nodes:o}=this,n=o.length;for(;n--;){let s=o[n];s.optimizeNames(e,r)||(Hf(e,s.names),o.splice(n,1))}return o.length>0?this:void 0}get names(){return this.nodes.reduce((e,r)=>rt(e,r.names),{})}},je=class extends Yt{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},Nn=class extends Yt{},$t=class extends je{};$t.kind="else";var et=class t extends je{constructor(e,r){super(r),this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);return this.else&&(r+="else "+this.else.render(e)),r}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let r=this.else;if(r){let o=r.optimizeNodes();r=this.else=Array.isArray(o)?new $t(o):o}if(r)return e===!1?r instanceof t?r:r.nodes:this.nodes.length?this:new t(Da(e),r instanceof t?[r]:r.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,r){var o;if(this.else=(o=this.else)===null||o===void 0?void 0:o.optimizeNames(e,r),!!(super.optimizeNames(e,r)||this.else))return this.condition=vt(this.condition,e,r),this}get names(){let e=super.names;return oo(e,this.condition),this.else&&rt(e,this.else.names),e}};et.kind="if";var tt=class extends je{};tt.kind="for";var jn=class extends tt{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iteration=vt(this.iteration,e,r),this}get names(){return rt(super.names,this.iteration.names)}},On=class extends tt{constructor(e,r,o,n){super(),this.varKind=e,this.name=r,this.from=o,this.to=n}render(e){let r=e.es5?we.varKinds.var:this.varKind,{name:o,from:n,to:s}=this;return`for(${r} ${o}=${n}; ${o}<${s}; ${o}++)`+super.render(e)}get names(){let e=oo(super.names,this.from);return oo(e,this.to)}},ro=class extends tt{constructor(e,r,o,n){super(),this.loop=e,this.varKind=r,this.name=o,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iterable=vt(this.iterable,e,r),this}get names(){return rt(super.names,this.iterable.names)}},er=class extends je{constructor(e,r,o){super(),this.name=e,this.args=r,this.async=o}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};er.kind="func";var tr=class extends Yt{render(e){return"return "+super.render(e)}};tr.kind="return";var An=class extends je{render(e){let r="try"+super.render(e);return this.catch&&(r+=this.catch.render(e)),this.finally&&(r+=this.finally.render(e)),r}optimizeNodes(){var e,r;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(e,r){var o,n;return super.optimizeNames(e,r),(o=this.catch)===null||o===void 0||o.optimizeNames(e,r),(n=this.finally)===null||n===void 0||n.optimizeNames(e,r),this}get names(){let e=super.names;return this.catch&&rt(e,this.catch.names),this.finally&&rt(e,this.finally.names),e}},rr=class extends je{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};rr.kind="catch";var or=class extends je{render(e){return"finally"+super.render(e)}};or.kind="finally";var Dn=class{constructor(e,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
4
4
  `:""},this._extScope=e,this._scope=new we.Scope({parent:e}),this._nodes=[new Nn]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,r){let o=this._extScope.value(e,r);return(this._values[o.prefix]||(this._values[o.prefix]=new Set)).add(o),o}getScopeValue(e,r){return this._extScope.getValue(e,r)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,r,o,n){let s=this._scope.toName(r);return o!==void 0&&n&&(this._constants[s.str]=o),this._leafNode(new Tn(e,s,o)),s}const(e,r,o){return this._def(we.varKinds.const,e,r,o)}let(e,r,o){return this._def(we.varKinds.let,e,r,o)}var(e,r,o){return this._def(we.varKinds.var,e,r,o)}assign(e,r,o){return this._leafNode(new to(e,r,o))}add(e,r){return this._leafNode(new Rn(e,I.operators.ADD,r))}code(e){return typeof e=="function"?e():e!==M.nil&&this._leafNode(new qn(e)),this}object(...e){let r=["{"];for(let[o,n]of e)r.length>1&&r.push(","),r.push(o),(o!==n||this.opts.es5)&&(r.push(":"),(0,M.addCodeArg)(r,n));return r.push("}"),new M._Code(r)}if(e,r,o){if(this._blockNode(new et(e)),r&&o)this.code(r).else().code(o).endIf();else if(r)this.code(r).endIf();else if(o)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new et(e))}else(){return this._elseNode(new $t)}endIf(){return this._endBlockNode(et,$t)}_for(e,r){return this._blockNode(e),r&&this.code(r).endFor(),this}for(e,r){return this._for(new jn(e),r)}forRange(e,r,o,n,s=this.opts.es5?we.varKinds.var:we.varKinds.let){let i=this._scope.toName(e);return this._for(new On(s,i,r,o),()=>n(i))}forOf(e,r,o,n=we.varKinds.const){let s=this._scope.toName(e);if(this.opts.es5){let i=r instanceof M.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,M._)`${i}.length`,a=>{this.var(s,(0,M._)`${i}[${a}]`),o(s)})}return this._for(new ro("of",n,s,r),()=>o(s))}forIn(e,r,o,n=this.opts.es5?we.varKinds.var:we.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,M._)`Object.keys(${r})`,o);let s=this._scope.toName(e);return this._for(new ro("in",n,s,r),()=>o(s))}endFor(){return this._endBlockNode(tt)}label(e){return this._leafNode(new In(e))}break(e){return this._leafNode(new Cn(e))}return(e){let r=new tr;if(this._blockNode(r),this.code(e),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(tr)}try(e,r,o){if(!r&&!o)throw new Error('CodeGen: "try" without "catch" and "finally"');let n=new An;if(this._blockNode(n),this.code(e),r){let s=this.name("e");this._currNode=n.catch=new rr(s),r(s)}return o&&(this._currNode=n.finally=new or,this.code(o)),this._endBlockNode(rr,or)}throw(e){return this._leafNode(new Mn(e))}block(e,r){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(r),this}endBlock(e){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let o=this._nodes.length-r;if(o<0||e!==void 0&&o!==e)throw new Error(`CodeGen: wrong number of nodes: ${o} vs ${e} expected`);return this._nodes.length=r,this}func(e,r=M.nil,o,n){return this._blockNode(new er(e,r,o)),n&&this.code(n).endFunc(),this}endFunc(){return this._endBlockNode(er)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,r){let o=this._currNode;if(o instanceof e||r&&o instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${e.kind}/${r.kind}`:e.kind}"`)}_elseNode(e){let r=this._currNode;if(!(r instanceof et))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let r=this._nodes;r[r.length-1]=e}};I.CodeGen=Dn;function rt(t,e){for(let r in e)t[r]=(t[r]||0)+(e[r]||0);return t}function oo(t,e){return e instanceof M._CodeOrName?rt(t,e.names):t}function vt(t,e,r){if(t instanceof M.Name)return o(t);if(!n(t))return t;return new M._Code(t._items.reduce((s,i)=>(i instanceof M.Name&&(i=o(i)),i instanceof M._Code?s.push(...i._items):s.push(i),s),[]));function o(s){let i=r[s.str];return i===void 0||e[s.str]!==1?s:(delete e[s.str],i)}function n(s){return s instanceof M._Code&&s._items.some(i=>i instanceof M.Name&&e[i.str]===1&&r[i.str]!==void 0)}}function Hf(t,e){for(let r in e)t[r]=(t[r]||0)-(e[r]||0)}function Da(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,M._)`!${Zn(t)}`}I.not=Da;var Uf=Za(I.operators.AND);function Vf(...t){return t.reduce(Uf)}I.and=Vf;var Kf=Za(I.operators.OR);function Gf(...t){return t.reduce(Kf)}I.or=Gf;function Za(t){return(e,r)=>e===M.nil?r:r===M.nil?e:(0,M._)`${Zn(e)} ${t} ${Zn(r)}`}function Zn(t){return t instanceof M.Name?t:(0,M._)`(${t})`}});var N=$(C=>{"use strict";Object.defineProperty(C,"__esModule",{value:!0});C.checkStrictMode=C.getErrorPath=C.Type=C.useFunc=C.setEvaluated=C.evaluatedPropsToName=C.mergeEvaluated=C.eachItem=C.unescapeJsonPointer=C.escapeJsonPointer=C.escapeFragment=C.unescapeFragment=C.schemaRefOrVal=C.schemaHasRulesButRef=C.schemaHasRules=C.checkUnknownRules=C.alwaysValidSchema=C.toHash=void 0;var L=R(),Bf=Qt();function Jf(t){let e={};for(let r of t)e[r]=!0;return e}C.toHash=Jf;function Wf(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(Ha(t,e),!Ua(e,t.self.RULES.all))}C.alwaysValidSchema=Wf;function Ha(t,e=t.schema){let{opts:r,self:o}=t;if(!r.strictSchema||typeof e=="boolean")return;let n=o.RULES.keywords;for(let s in e)n[s]||Ga(t,`unknown keyword: "${s}"`)}C.checkUnknownRules=Ha;function Ua(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(e[r])return!0;return!1}C.schemaHasRules=Ua;function Xf(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(r!=="$ref"&&e.all[r])return!0;return!1}C.schemaHasRulesButRef=Xf;function Qf({topSchemaRef:t,schemaPath:e},r,o,n){if(!n){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,L._)`${r}`}return(0,L._)`${t}${e}${(0,L.getProperty)(o)}`}C.schemaRefOrVal=Qf;function Yf(t){return Va(decodeURIComponent(t))}C.unescapeFragment=Yf;function ep(t){return encodeURIComponent(Fn(t))}C.escapeFragment=ep;function Fn(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}C.escapeJsonPointer=Fn;function Va(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}C.unescapeJsonPointer=Va;function tp(t,e){if(Array.isArray(t))for(let r of t)e(r);else e(t)}C.eachItem=tp;function La({mergeNames:t,mergeToName:e,mergeValues:r,resultToName:o}){return(n,s,i,a)=>{let c=i===void 0?s:i instanceof L.Name?(s instanceof L.Name?t(n,s,i):e(n,s,i),i):s instanceof L.Name?(e(n,i,s),s):r(s,i);return a===L.Name&&!(c instanceof L.Name)?o(n,c):c}}C.mergeEvaluated={props:La({mergeNames:(t,e,r)=>t.if((0,L._)`${r} !== true && ${e} !== undefined`,()=>{t.if((0,L._)`${e} === true`,()=>t.assign(r,!0),()=>t.assign(r,(0,L._)`${r} || {}`).code((0,L._)`Object.assign(${r}, ${e})`))}),mergeToName:(t,e,r)=>t.if((0,L._)`${r} !== true`,()=>{e===!0?t.assign(r,!0):(t.assign(r,(0,L._)`${r} || {}`),Hn(t,r,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:Ka}),items:La({mergeNames:(t,e,r)=>t.if((0,L._)`${r} !== true && ${e} !== undefined`,()=>t.assign(r,(0,L._)`${e} === true ? true : ${r} > ${e} ? ${r} : ${e}`)),mergeToName:(t,e,r)=>t.if((0,L._)`${r} !== true`,()=>t.assign(r,e===!0?!0:(0,L._)`${r} > ${e} ? ${r} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function Ka(t,e){if(e===!0)return t.var("props",!0);let r=t.var("props",(0,L._)`{}`);return e!==void 0&&Hn(t,r,e),r}C.evaluatedPropsToName=Ka;function Hn(t,e,r){Object.keys(r).forEach(o=>t.assign((0,L._)`${e}${(0,L.getProperty)(o)}`,!0))}C.setEvaluated=Hn;var Fa={};function rp(t,e){return t.scopeValue("func",{ref:e,code:Fa[e.code]||(Fa[e.code]=new Bf._Code(e.code))})}C.useFunc=rp;var Ln;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(Ln||(C.Type=Ln={}));function op(t,e,r){if(t instanceof L.Name){let o=e===Ln.Num;return r?o?(0,L._)`"[" + ${t} + "]"`:(0,L._)`"['" + ${t} + "']"`:o?(0,L._)`"/" + ${t}`:(0,L._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,L.getProperty)(t).toString():"/"+Fn(t)}C.getErrorPath=op;function Ga(t,e,r=t.opts.strictSchema){if(r){if(e=`strict mode: ${e}`,r===!0)throw new Error(e);t.self.logger.warn(e)}}C.checkStrictMode=Ga});var Oe=$(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});var te=R(),np={data:new te.Name("data"),valCxt:new te.Name("valCxt"),instancePath:new te.Name("instancePath"),parentData:new te.Name("parentData"),parentDataProperty:new te.Name("parentDataProperty"),rootData:new te.Name("rootData"),dynamicAnchors:new te.Name("dynamicAnchors"),vErrors:new te.Name("vErrors"),errors:new te.Name("errors"),this:new te.Name("this"),self:new te.Name("self"),scope:new te.Name("scope"),json:new te.Name("json"),jsonPos:new te.Name("jsonPos"),jsonLen:new te.Name("jsonLen"),jsonPart:new te.Name("jsonPart")};Un.default=np});var nr=$(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.extendErrors=re.resetErrorsCount=re.reportExtraError=re.reportError=re.keyword$DataError=re.keywordError=void 0;var j=R(),so=N(),ie=Oe();re.keywordError={message:({keyword:t})=>(0,j.str)`must pass "${t}" keyword validation`};re.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,j.str)`"${t}" keyword must be ${e} ($data)`:(0,j.str)`"${t}" keyword is invalid ($data)`};function sp(t,e=re.keywordError,r,o){let{it:n}=t,{gen:s,compositeRule:i,allErrors:a}=n,c=Wa(t,e,r);o??(i||a)?Ba(s,c):Ja(n,(0,j._)`[${c}]`)}re.reportError=sp;function ip(t,e=re.keywordError,r){let{it:o}=t,{gen:n,compositeRule:s,allErrors:i}=o,a=Wa(t,e,r);Ba(n,a),s||i||Ja(o,ie.default.vErrors)}re.reportExtraError=ip;function ap(t,e){t.assign(ie.default.errors,e),t.if((0,j._)`${ie.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,j._)`${ie.default.vErrors}.length`,e),()=>t.assign(ie.default.vErrors,null)))}re.resetErrorsCount=ap;function cp({gen:t,keyword:e,schemaValue:r,data:o,errsCount:n,it:s}){if(n===void 0)throw new Error("ajv implementation error");let i=t.name("err");t.forRange("i",n,ie.default.errors,a=>{t.const(i,(0,j._)`${ie.default.vErrors}[${a}]`),t.if((0,j._)`${i}.instancePath === undefined`,()=>t.assign((0,j._)`${i}.instancePath`,(0,j.strConcat)(ie.default.instancePath,s.errorPath))),t.assign((0,j._)`${i}.schemaPath`,(0,j.str)`${s.errSchemaPath}/${e}`),s.opts.verbose&&(t.assign((0,j._)`${i}.schema`,r),t.assign((0,j._)`${i}.data`,o))})}re.extendErrors=cp;function Ba(t,e){let r=t.const("err",e);t.if((0,j._)`${ie.default.vErrors} === null`,()=>t.assign(ie.default.vErrors,(0,j._)`[${r}]`),(0,j._)`${ie.default.vErrors}.push(${r})`),t.code((0,j._)`${ie.default.errors}++`)}function Ja(t,e){let{gen:r,validateName:o,schemaEnv:n}=t;n.$async?r.throw((0,j._)`new ${t.ValidationError}(${e})`):(r.assign((0,j._)`${o}.errors`,e),r.return(!1))}var ot={keyword:new j.Name("keyword"),schemaPath:new j.Name("schemaPath"),params:new j.Name("params"),propertyName:new j.Name("propertyName"),message:new j.Name("message"),schema:new j.Name("schema"),parentSchema:new j.Name("parentSchema")};function Wa(t,e,r){let{createErrors:o}=t.it;return o===!1?(0,j._)`{}`:lp(t,e,r)}function lp(t,e,r={}){let{gen:o,it:n}=t,s=[up(n,r),dp(t,r)];return fp(t,e,s),o.object(...s)}function up({errorPath:t},{instancePath:e}){let r=e?(0,j.str)`${t}${(0,so.getErrorPath)(e,so.Type.Str)}`:t;return[ie.default.instancePath,(0,j.strConcat)(ie.default.instancePath,r)]}function dp({keyword:t,it:{errSchemaPath:e}},{schemaPath:r,parentSchema:o}){let n=o?e:(0,j.str)`${e}/${t}`;return r&&(n=(0,j.str)`${n}${(0,so.getErrorPath)(r,so.Type.Str)}`),[ot.schemaPath,n]}function fp(t,{params:e,message:r},o){let{keyword:n,data:s,schemaValue:i,it:a}=t,{opts:c,propertyName:u,topSchemaRef:l,schemaPath:d}=a;o.push([ot.keyword,n],[ot.params,typeof e=="function"?e(t):e||(0,j._)`{}`]),c.messages&&o.push([ot.message,typeof r=="function"?r(t):r]),c.verbose&&o.push([ot.schema,i],[ot.parentSchema,(0,j._)`${l}${d}`],[ie.default.data,s]),u&&o.push([ot.propertyName,u])}});var Qa=$(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.boolOrEmptySchema=wt.topBoolOrEmptySchema=void 0;var pp=nr(),mp=R(),hp=Oe(),gp={message:"boolean schema is false"};function yp(t){let{gen:e,schema:r,validateName:o}=t;r===!1?Xa(t,!1):typeof r=="object"&&r.$async===!0?e.return(hp.default.data):(e.assign((0,mp._)`${o}.errors`,null),e.return(!0))}wt.topBoolOrEmptySchema=yp;function _p(t,e){let{gen:r,schema:o}=t;o===!1?(r.var(e,!1),Xa(t)):r.var(e,!0)}wt.boolOrEmptySchema=_p;function Xa(t,e){let{gen:r,data:o}=t,n={gen:r,keyword:"false schema",data:o,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,pp.reportError)(n,gp,void 0,e)}});var Vn=$(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.getRules=bt.isJSONType=void 0;var $p=["string","number","integer","boolean","null","object","array"],vp=new Set($p);function wp(t){return typeof t=="string"&&vp.has(t)}bt.isJSONType=wp;function bp(){let t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}bt.getRules=bp});var Kn=$(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.shouldUseRule=Ue.shouldUseGroup=Ue.schemaHasRulesForType=void 0;function Sp({schema:t,self:e},r){let o=e.RULES.types[r];return o&&o!==!0&&Ya(t,o)}Ue.schemaHasRulesForType=Sp;function Ya(t,e){return e.rules.some(r=>ec(t,r))}Ue.shouldUseGroup=Ya;function ec(t,e){var r;return t[e.keyword]!==void 0||((r=e.definition.implements)===null||r===void 0?void 0:r.some(o=>t[o]!==void 0))}Ue.shouldUseRule=ec});var sr=$(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.reportTypeError=oe.checkDataTypes=oe.checkDataType=oe.coerceAndCheckDataType=oe.getJSONTypes=oe.getSchemaTypes=oe.DataType=void 0;var xp=Vn(),Ep=Kn(),kp=nr(),T=R(),tc=N(),St;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(St||(oe.DataType=St={}));function zp(t){let e=rc(t.type);if(e.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&e.push("null")}return e}oe.getSchemaTypes=zp;function rc(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(xp.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}oe.getJSONTypes=rc;function Pp(t,e){let{gen:r,data:o,opts:n}=t,s=Tp(e,n.coerceTypes),i=e.length>0&&!(s.length===0&&e.length===1&&(0,Ep.schemaHasRulesForType)(t,e[0]));if(i){let a=Bn(e,o,n.strictNumbers,St.Wrong);r.if(a,()=>{s.length?Rp(t,e,s):Jn(t)})}return i}oe.coerceAndCheckDataType=Pp;var oc=new Set(["string","number","integer","boolean","null"]);function Tp(t,e){return e?t.filter(r=>oc.has(r)||e==="array"&&r==="array"):[]}function Rp(t,e,r){let{gen:o,data:n,opts:s}=t,i=o.let("dataType",(0,T._)`typeof ${n}`),a=o.let("coerced",(0,T._)`undefined`);s.coerceTypes==="array"&&o.if((0,T._)`${i} == 'object' && Array.isArray(${n}) && ${n}.length == 1`,()=>o.assign(n,(0,T._)`${n}[0]`).assign(i,(0,T._)`typeof ${n}`).if(Bn(e,n,s.strictNumbers),()=>o.assign(a,n))),o.if((0,T._)`${a} !== undefined`);for(let u of r)(oc.has(u)||u==="array"&&s.coerceTypes==="array")&&c(u);o.else(),Jn(t),o.endIf(),o.if((0,T._)`${a} !== undefined`,()=>{o.assign(n,a),Ip(t,a)});function c(u){switch(u){case"string":o.elseIf((0,T._)`${i} == "number" || ${i} == "boolean"`).assign(a,(0,T._)`"" + ${n}`).elseIf((0,T._)`${n} === null`).assign(a,(0,T._)`""`);return;case"number":o.elseIf((0,T._)`${i} == "boolean" || ${n} === null
5
5
  || (${i} == "string" && ${n} && ${n} == +${n})`).assign(a,(0,T._)`+${n}`);return;case"integer":o.elseIf((0,T._)`${i} === "boolean" || ${n} === null
6
6
  || (${i} === "string" && ${n} && ${n} == +${n} && !(${n} % 1))`).assign(a,(0,T._)`+${n}`);return;case"boolean":o.elseIf((0,T._)`${n} === "false" || ${n} === 0 || ${n} === null`).assign(a,!1).elseIf((0,T._)`${n} === "true" || ${n} === 1`).assign(a,!0);return;case"null":o.elseIf((0,T._)`${n} === "" || ${n} === 0 || ${n} === false`),o.assign(a,null);return;case"array":o.elseIf((0,T._)`${i} === "string" || ${i} === "number"
@@ -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{g as a,h as b,i as c,j as d,k as e,l as f,m as g,n as h,o as i,p as j,q as k,r as l,s as m,t as n,u as o,v as p,w as q}from"./chunk-GBNPOZ32.js";import"./chunk-3PVQ5QP4.js";import"./chunk-VFXMP7IF.js";import"./chunk-BBCQMZQN.js";import"./chunk-2DEUYEQD.js";import"./chunk-4V3KLFCJ.js";import"./chunk-2S2ZPQQD.js";import"./chunk-NU3X7P4N.js";import"./chunk-L2RTMZCN.js";import"./chunk-COALWMI7.js";import"./chunk-MU5AGXSH.js";import"./chunk-PSANHDZM.js";export{a as MEDIA_EXTS,g as bwfAt,q as coverage,e as decodeFrameRgba,o as factsLine,h as factsText,n as findMedia,p as findText,c as folderClip,i as islandsFor,m as nameMatch,l as normName,d as openSource,f as probeMedia,b as siblingParts,k as trimMedia,j as trimSource};
3
+ import{g as a,h as b,i as c,j as d,k as e,l as f,m as g,n as h,o as i,p as j,q as k,r as l,s as m,t as n,u as o,v as p,w as q}from"./chunk-QNVFSA7C.js";import"./chunk-3PVQ5QP4.js";import"./chunk-VFXMP7IF.js";import"./chunk-BBCQMZQN.js";import"./chunk-REBF4U5B.js";import"./chunk-TFKKODSA.js";import"./chunk-REGL3GQB.js";import"./chunk-NU3X7P4N.js";import"./chunk-4I4MV3DE.js";import"./chunk-E75BCWXY.js";import"./chunk-ZPIY5DOU.js";import"./chunk-PSANHDZM.js";export{a as MEDIA_EXTS,g as bwfAt,q as coverage,e as decodeFrameRgba,o as factsLine,h as factsText,n as findMedia,p as findText,c as folderClip,i as islandsFor,m as nameMatch,l as normName,d as openSource,f as probeMedia,b as siblingParts,k as trimMedia,j as trimSource};
@@ -1,9 +1,9 @@
1
1
  #!/usr/bin/env node
2
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) {
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-KHSB6EFN.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
4
  let [ia, index, value] = ev.data;
5
5
  ia = new Int32Array(ia.buffer);
6
6
  let result = Atomics.wait(ia, index, value);
7
7
  postMessage(result);
8
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};
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_891(_,n,v(e))}function Ut(_,n,e){t.__wasm_bindgen_func_elem_3581(_,n,v(e))}function Ot(_,n,e){try{let c=t.__wbindgen_add_to_stack_pointer(-16);t.__wasm_bindgen_func_elem_3579(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_3596(_,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 N}from"./chunk-AACY2V3L.js";import{b as $}from"./chunk-TFKKODSA.js";import{b as J}from"./chunk-REGL3GQB.js";import{Ha as l,M,R as P,b as U,ca as D,da as T,e as k,ea as C,fa as E,g as S,ga as L,ia as O,ra as V,ua as W,w as B,wa as G}from"./chunk-4I4MV3DE.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 oe(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 j(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 Z(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=oe(o);if(s<0)return e;let c=new DataView(o.buffer,o.byteOffset,o.byteLength),[f,re]=j(c,s+16);if(f===null||f<16||f>65536)return e;let v=s+16+re;if(v+f>o.length)return e;let F=[],te=new DataView(o.buffer,o.byteOffset+v,f),g=Math.floor((f-4)/12);if(g<1||g>4096)return e;for(let u=0;u<g;u++){let d=b(te,u*12+4);d>=0&&d<r&&F.push(d)}for(let u of F){let d=Math.min(256,r-u),p=await t.read(u,d);if(p.length<80)continue;let _=new DataView(p.buffer,p.byteOffset,p.byteLength),[A,R]=j(_,16);if(A===null)continue;let m=16+R,y,x;if(p.length<m+64){let ie=Math.min(m+64,r-u),h=await t.read(u,ie);if(h.length<m+64)continue;let I=new DataView(h.buffer,h.byteOffset,h.byteLength);y=b(I,m+32),x=b(I,m+40)}else y=b(_,m+32),x=b(_,m+40);let ne=u+16+R+A+y+x,ae=Math.min(ne+65536,r)-u;e.push({offset:u,length:ae})}return e}function H(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 se(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 q(t,r,e){let n=H(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 $(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 K(t,r,e){await l();let n=H(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 Z(t)).map(s=>({offset:s.offset,length:s.length}));return{fileSize:t.fileSize,structuralRanges:o,essenceRanges:se(o,t.fileSize),trimInputs:n,wholeFileFallback:!0}}async function Q(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 Q(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,s=e.inner_codec==="mpeg2"||e.inner_codec==="dv"?e.inner_codec: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:e.avid?.tape_name??null,source_timecode:n?.display??null,source_fps:a,source_resolution_w:i,source_resolution_h:o,container:"mxf",codec:s,size_bytes:r.fileSize,streams:[...i||o||a?[{kind:"video",codec:s,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}:{},...e.avid?{avid:{...e.avid,kind:i||o?"picture":"sound"}}:{}},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:N(e),granularity:"frame",segments:e}},async sparsify(t,r){let e=t.parts[0],n=await K(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 q(e,r.items,r.handles)},async decode(t,r,e){await l();let n=t.parts[0],a=w(n),i=await ee(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 k(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 B(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 ee(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 X=new WeakMap;async function ue(t,r){if(!!0)return null;try{let e=await import("./arriraw-PS6V532Y.js");if(!await e.arrirawGpuAvailable())return null;let{parseArrirawGpuPayload:n,arrirawFrameToRgb16:a}=await import("./clip-state-B6JOX3JE.js"),i=t.parts[0],o=X.get(t)??null,s=await U(w(i),i.fileSize,r,o?.key),c=n(s,o);if(!c)return null;X.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 Y=new WeakMap;async function ee(t){let r=Y.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 E(n,e.fileSize)?a="dnxhr":await L(n,e.fileSize)?a="xocn":await C(n,e.fileSize)&&(a="prores"),Y.set(t,a),a}export{Me as mxfFormat};
@@ -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-2S2ZPQQD.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-REGL3GQB.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};