@imagemagick/magick-wasm 0.0.26 → 0.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/NOTICE +6 -6
- package/README.md +1 -1
- package/dist/index.d.ts +58 -17
- package/dist/index.js +8388 -0
- package/dist/index.umd.cjs +46 -0
- package/dist/magick.wasm +0 -0
- package/package.json +16 -16
- package/dist/index.mjs +0 -8686
- package/dist/index.umd.js +0 -5
package/dist/index.umd.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
(function(I,Pe){typeof exports=="object"&&typeof module<"u"?Pe(exports):typeof define=="function"&&define.amd?define(["exports"],Pe):(I=typeof globalThis<"u"?globalThis:I||self,Pe(I["magick-wasm"]={}))})(this,function(I){"use strict";function Pe(t){return t instanceof Int8Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray}class ut{constructor(a,e,l){this.format=a,this.name=e,this.value=l}format;name;value}class Kt{format;constructor(a){this.format=a}createDefine(a,e){return typeof e=="boolean"?new ut(this.format,a,e?"true":"false"):typeof e=="string"?new ut(this.format,a,e):new ut(this.format,a,e.toString())}hasValue(a){return a!=null}}class Mr{_x;_y;_paintMethod;constructor(a,e,l){this._x=a,this._y=e,this._paintMethod=l}draw(a){a.color(this._x,this._y,this._paintMethod)}}class Ir{_color;constructor(a){this._color=a}draw(a){a.fillColor(this._color)}}class Dr{_opacity;constructor(a){this._opacity=a}draw(a){a.fillOpacity(this._opacity.toDouble()/100)}}class Gr{_pointSize;constructor(a){this._pointSize=a}draw(a){a.fontPointSize(this._pointSize)}}class Zt{constructor(a,e){this.eventType=a,this.message=e??""}eventType;message}var br=(()=>{var t=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(a={}){var e=a,l,m;e.ready=new Promise((n,r)=>{l=n,m=r}),function(){let r=typeof window<"u"?window:global;(typeof r.crypto>"u"||typeof crypto.getRandomValues!="function")&&(r.crypto={getRandomValues:i=>{for(let s=0;s<i.length;s++)i[s]=Math.random()*256|0}})}();var p=Object.assign({},e),h="./this.program",k=(n,r)=>{throw r},E=typeof window=="object",W=typeof importScripts=="function",V=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",J="";function Ke(n){return e.locateFile?e.locateFile(n,J):J+n}var Ze,Fe,Nt;(E||W)&&(W?J=self.location.href:typeof document<"u"&&document.currentScript&&(J=document.currentScript.src),t&&(J=t),J.indexOf("blob:")!==0?J=J.substr(0,J.replace(/[?#].*/,"").lastIndexOf("/")+1):J="",Ze=n=>{var r=new XMLHttpRequest;return r.open("GET",n,!1),r.send(null),r.responseText},W&&(Nt=n=>{var r=new XMLHttpRequest;return r.open("GET",n,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}),Fe=(n,r,i)=>{var s=new XMLHttpRequest;s.open("GET",n,!0),s.responseType="arraybuffer",s.onload=()=>{if(s.status==200||s.status==0&&s.response){r(s.response);return}i()},s.onerror=i,s.send(null)});var zt=e.print||console.log.bind(console),Ee=e.printErr||console.error.bind(console);Object.assign(e,p),p=null,e.arguments&&e.arguments,e.thisProgram&&(h=e.thisProgram),e.quit&&(k=e.quit);var Oe;e.wasmBinary&&(Oe=e.wasmBinary);var na=e.noExitRuntime||!0;typeof WebAssembly!="object"&&ve("no native wasm support detected");var pt,Ut=!1;function dt(n,r){n||ve(r)}var Y,re,ee,et,S,T,ht,ue,Tn,yt;function Wn(){var n=pt.buffer;e.HEAP8=Y=new Int8Array(n),e.HEAP16=ee=new Int16Array(n),e.HEAP32=S=new Int32Array(n),e.HEAPU8=re=new Uint8Array(n),e.HEAPU16=et=new Uint16Array(n),e.HEAPU32=T=new Uint32Array(n),e.HEAPF32=ht=new Float32Array(n),e.HEAPF64=yt=new Float64Array(n),e.HEAP64=ue=new BigInt64Array(n),e.HEAPU64=Tn=new BigUint64Array(n)}var Be,Bn=[],Ln=[],Nn=[],ra=0;function aa(){return na||ra>0}function ia(){if(e.preRun)for(typeof e.preRun=="function"&&(e.preRun=[e.preRun]);e.preRun.length;)oa(e.preRun.shift());Ft(Bn)}function sa(){!e.noFSInit&&!o.init.initialized&&o.init(),o.ignorePermissions=!1,$.root=o.mount($,{},null),Ft(Ln)}function ua(){if(e.postRun)for(typeof e.postRun=="function"&&(e.postRun=[e.postRun]);e.postRun.length;)la(e.postRun.shift());Ft(Nn)}function oa(n){Bn.unshift(n)}function _a(n){Ln.unshift(n)}function la(n){Nn.unshift(n)}var Le=0,tt=null;function Ks(n){return n}function wt(n){Le++,e.monitorRunDependencies&&e.monitorRunDependencies(Le)}function nt(n){if(Le--,e.monitorRunDependencies&&e.monitorRunDependencies(Le),Le==0&&tt){var r=tt;tt=null,r()}}function ve(n){e.onAbort&&e.onAbort(n),n="Aborted("+n+")",Ee(n),Ut=!0,n+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(n);throw m(r),r}var ca="data:application/octet-stream;base64,";function zn(n){return n.startsWith(ca)}function Un(n){return n.startsWith("file://")}var He;He="magick.wasm",zn(He)||(He=Ke(He));function Fn(n){try{if(n==He&&Oe)return new Uint8Array(Oe);if(Nt)return Nt(n);throw"both async and sync fetching of the wasm failed"}catch(r){ve(r)}}function ga(n){if(!Oe&&(E||W)){if(typeof fetch=="function"&&!Un(n))return fetch(n,{credentials:"same-origin"}).then(r=>{if(!r.ok)throw"failed to load wasm binary file at '"+n+"'";return r.arrayBuffer()}).catch(()=>Fn(n));if(Fe)return new Promise((r,i)=>{Fe(n,s=>r(new Uint8Array(s)),i)})}return Promise.resolve().then(()=>Fn(n))}function Hn(n,r,i){return ga(n).then(s=>WebAssembly.instantiate(s,r)).then(s=>s).then(i,s=>{Ee("failed to asynchronously prepare wasm: "+s),ve(s)})}function ma(n,r,i,s){return!n&&typeof WebAssembly.instantiateStreaming=="function"&&!zn(r)&&!Un(r)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(u=>{var _=WebAssembly.instantiateStreaming(u,i);return _.then(s,function(g){return Ee("wasm streaming compile failed: "+g),Ee("falling back to ArrayBuffer instantiation"),Hn(r,i,s)})}):Hn(r,i,s)}function fa(){var n={a:ks};function r(s,u){var _=s.exports;return e.asm=_,pt=e.asm.Ta,Wn(),Be=e.asm.lb,_a(e.asm.Ua),nt(),_}wt();function i(s){r(s.instance)}if(e.instantiateWasm)try{return e.instantiateWasm(n,r)}catch(s){Ee("Module.instantiateWasm callback failed with error: "+s),m(s)}return ma(Oe,He,n,i).catch(m),{}}function pa(n){this.name="ExitStatus",this.message=`Program terminated with exit(${n})`,this.status=n}var Ft=n=>{for(;n.length>0;)n.shift()(e)};function da(n,r="i8"){switch(r.endsWith("*")&&(r="*"),r){case"i1":return Y[n>>0];case"i8":return Y[n>>0];case"i16":return ee[n>>1];case"i32":return S[n>>2];case"i64":return ue[n>>3];case"float":return ht[n>>2];case"double":return yt[n>>3];case"*":return T[n>>2];default:ve(`invalid type for getValue: ${r}`)}}function ha(n,r,i="i8"){switch(i.endsWith("*")&&(i="*"),i){case"i1":Y[n>>0]=r;break;case"i8":Y[n>>0]=r;break;case"i16":ee[n>>1]=r;break;case"i32":S[n>>2]=r;break;case"i64":ue[n>>3]=BigInt(r);break;case"float":ht[n>>2]=r;break;case"double":yt[n>>3]=r;break;case"*":T[n>>2]=r;break;default:ve(`invalid type for setValue: ${i}`)}}var rt=[],z=n=>{var r=rt[n];return r||(n>=rt.length&&(rt.length=n+1),rt[n]=r=Be.get(n)),r},ya=(n,r)=>z(n)(r),xe=0;function xn(n){this.excPtr=n,this.ptr=n-24,this.set_type=function(r){T[this.ptr+4>>2]=r},this.get_type=function(){return T[this.ptr+4>>2]},this.set_destructor=function(r){T[this.ptr+8>>2]=r},this.get_destructor=function(){return T[this.ptr+8>>2]},this.set_caught=function(r){r=r?1:0,Y[this.ptr+12>>0]=r},this.get_caught=function(){return Y[this.ptr+12>>0]!=0},this.set_rethrown=function(r){r=r?1:0,Y[this.ptr+13>>0]=r},this.get_rethrown=function(){return Y[this.ptr+13>>0]!=0},this.init=function(r,i){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(i)},this.set_adjusted_ptr=function(r){T[this.ptr+16>>2]=r},this.get_adjusted_ptr=function(){return T[this.ptr+16>>2]},this.get_exception_ptr=function(){var r=Sr(this.get_type());if(r)return T[this.excPtr>>2];var i=this.get_adjusted_ptr();return i!==0?i:this.excPtr}}function wa(n){throw xe||(xe=n),xe}function ka(){var n=xe;if(!n)return st(0),0;var r=new xn(n);r.set_adjusted_ptr(n);var i=r.get_type();if(!i)return st(0),n;for(var s=0;s<arguments.length;s++){var u=arguments[s];if(u===0||u===i)break;var _=r.ptr+16;if(kr(u,i,_))return st(u),n}return st(i),n}var Sa=ka;function va(n,r,i){var s=new xn(n);throw s.init(r,i),xe=n,xe}var x={isAbs:n=>n.charAt(0)==="/",splitPath:n=>{var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;return r.exec(n).slice(1)},normalizeArray:(n,r)=>{for(var i=0,s=n.length-1;s>=0;s--){var u=n[s];u==="."?n.splice(s,1):u===".."?(n.splice(s,1),i++):i&&(n.splice(s,1),i--)}if(r)for(;i;i--)n.unshift("..");return n},normalize:n=>{var r=x.isAbs(n),i=n.substr(-1)==="/";return n=x.normalizeArray(n.split("/").filter(s=>!!s),!r).join("/"),!n&&!r&&(n="."),n&&i&&(n+="/"),(r?"/":"")+n},dirname:n=>{var r=x.splitPath(n),i=r[0],s=r[1];return!i&&!s?".":(s&&(s=s.substr(0,s.length-1)),i+s)},basename:n=>{if(n==="/")return"/";n=x.normalize(n),n=n.replace(/\/$/,"");var r=n.lastIndexOf("/");return r===-1?n:n.substr(r+1)},join:function(){var n=Array.prototype.slice.call(arguments);return x.normalize(n.join("/"))},join2:(n,r)=>x.normalize(n+"/"+r)},Ma=()=>{if(typeof crypto=="object"&&typeof crypto.getRandomValues=="function")return n=>crypto.getRandomValues(n);ve("initRandomDevice")},Ht=n=>(Ht=Ma())(n),Me={resolve:function(){for(var n="",r=!1,i=arguments.length-1;i>=-1&&!r;i--){var s=i>=0?arguments[i]:o.cwd();if(typeof s!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!s)return"";n=s+"/"+n,r=x.isAbs(s)}return n=x.normalizeArray(n.split("/").filter(u=>!!u),!r).join("/"),(r?"/":"")+n||"."},relative:(n,r)=>{n=Me.resolve(n).substr(1),r=Me.resolve(r).substr(1);function i(w){for(var M=0;M<w.length&&w[M]==="";M++);for(var G=w.length-1;G>=0&&w[G]==="";G--);return M>G?[]:w.slice(M,G-M+1)}for(var s=i(n.split("/")),u=i(r.split("/")),_=Math.min(s.length,u.length),g=_,f=0;f<_;f++)if(s[f]!==u[f]){g=f;break}for(var d=[],f=g;f<s.length;f++)d.push("..");return d=d.concat(u.slice(g)),d.join("/")}},Ne=n=>{for(var r=0,i=0;i<n.length;++i){var s=n.charCodeAt(i);s<=127?r++:s<=2047?r+=2:s>=55296&&s<=57343?(r+=4,++i):r+=3}return r},xt=(n,r,i,s)=>{if(!(s>0))return 0;for(var u=i,_=i+s-1,g=0;g<n.length;++g){var f=n.charCodeAt(g);if(f>=55296&&f<=57343){var d=n.charCodeAt(++g);f=65536+((f&1023)<<10)|d&1023}if(f<=127){if(i>=_)break;r[i++]=f}else if(f<=2047){if(i+1>=_)break;r[i++]=192|f>>6,r[i++]=128|f&63}else if(f<=65535){if(i+2>=_)break;r[i++]=224|f>>12,r[i++]=128|f>>6&63,r[i++]=128|f&63}else{if(i+3>=_)break;r[i++]=240|f>>18,r[i++]=128|f>>12&63,r[i++]=128|f>>6&63,r[i++]=128|f&63}}return r[i]=0,i-u};function kt(n,r,i){var s=i>0?i:Ne(n)+1,u=new Array(s),_=xt(n,u,0,u.length);return r&&(u.length=_),u}var Yn=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,Ye=(n,r,i)=>{for(var s=r+i,u=r;n[u]&&!(u>=s);)++u;if(u-r>16&&n.buffer&&Yn)return Yn.decode(n.subarray(r,u));for(var _="";r<u;){var g=n[r++];if(!(g&128)){_+=String.fromCharCode(g);continue}var f=n[r++]&63;if((g&224)==192){_+=String.fromCharCode((g&31)<<6|f);continue}var d=n[r++]&63;if((g&240)==224?g=(g&15)<<12|f<<6|d:g=(g&7)<<18|f<<12|d<<6|n[r++]&63,g<65536)_+=String.fromCharCode(g);else{var w=g-65536;_+=String.fromCharCode(55296|w>>10,56320|w&1023)}}return _},ze={ttys:[],init:function(){},shutdown:function(){},register:function(n,r){ze.ttys[n]={input:[],output:[],ops:r},o.registerDevice(n,ze.stream_ops)},stream_ops:{open:function(n){var r=ze.ttys[n.node.rdev];if(!r)throw new o.ErrnoError(43);n.tty=r,n.seekable=!1},close:function(n){n.tty.ops.fsync(n.tty)},fsync:function(n){n.tty.ops.fsync(n.tty)},read:function(n,r,i,s,u){if(!n.tty||!n.tty.ops.get_char)throw new o.ErrnoError(60);for(var _=0,g=0;g<s;g++){var f;try{f=n.tty.ops.get_char(n.tty)}catch{throw new o.ErrnoError(29)}if(f===void 0&&_===0)throw new o.ErrnoError(6);if(f==null)break;_++,r[i+g]=f}return _&&(n.node.timestamp=Date.now()),_},write:function(n,r,i,s,u){if(!n.tty||!n.tty.ops.put_char)throw new o.ErrnoError(60);try{for(var _=0;_<s;_++)n.tty.ops.put_char(n.tty,r[i+_])}catch{throw new o.ErrnoError(29)}return s&&(n.node.timestamp=Date.now()),_}},default_tty_ops:{get_char:function(n){if(!n.input.length){var r=null;if(typeof window<"u"&&typeof window.prompt=="function"?(r=window.prompt("Input: "),r!==null&&(r+=`
|
|
2
|
-
`)):typeof readline=="function"&&(r=readline(),r!==null&&(r+=`
|
|
3
|
-
`)),!r)return null;n.input=kt(r,!0)}return n.input.shift()},put_char:function(n,r){r===null||r===10?(zt(Ye(n.output,0)),n.output=[]):r!=0&&n.output.push(r)},fsync:function(n){n.output&&n.output.length>0&&(zt(Ye(n.output,0)),n.output=[])},ioctl_tcgets:function(n){return{c_iflag:25856,c_oflag:5,c_cflag:191,c_lflag:35387,c_cc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}},ioctl_tcsets:function(n,r,i){return 0},ioctl_tiocgwinsz:function(n){return[24,80]}},default_tty1_ops:{put_char:function(n,r){r===null||r===10?(Ee(Ye(n.output,0)),n.output=[]):r!=0&&n.output.push(r)},fsync:function(n){n.output&&n.output.length>0&&(Ee(Ye(n.output,0)),n.output=[])}}},Yt=(n,r)=>(re.fill(0,n,n+r),n),Ia=(n,r)=>Math.ceil(n/r)*r,jn=n=>{n=Ia(n,65536);var r=wr(65536,n);return r?Yt(r,n):0},B={ops_table:null,mount:function(n){return B.createNode(null,"/",16895,0)},createNode:function(n,r,i,s){if(o.isBlkdev(i)||o.isFIFO(i))throw new o.ErrnoError(63);B.ops_table||(B.ops_table={dir:{node:{getattr:B.node_ops.getattr,setattr:B.node_ops.setattr,lookup:B.node_ops.lookup,mknod:B.node_ops.mknod,rename:B.node_ops.rename,unlink:B.node_ops.unlink,rmdir:B.node_ops.rmdir,readdir:B.node_ops.readdir,symlink:B.node_ops.symlink},stream:{llseek:B.stream_ops.llseek}},file:{node:{getattr:B.node_ops.getattr,setattr:B.node_ops.setattr},stream:{llseek:B.stream_ops.llseek,read:B.stream_ops.read,write:B.stream_ops.write,allocate:B.stream_ops.allocate,mmap:B.stream_ops.mmap,msync:B.stream_ops.msync}},link:{node:{getattr:B.node_ops.getattr,setattr:B.node_ops.setattr,readlink:B.node_ops.readlink},stream:{}},chrdev:{node:{getattr:B.node_ops.getattr,setattr:B.node_ops.setattr},stream:o.chrdev_stream_ops}});var u=o.createNode(n,r,i,s);return o.isDir(u.mode)?(u.node_ops=B.ops_table.dir.node,u.stream_ops=B.ops_table.dir.stream,u.contents={}):o.isFile(u.mode)?(u.node_ops=B.ops_table.file.node,u.stream_ops=B.ops_table.file.stream,u.usedBytes=0,u.contents=null):o.isLink(u.mode)?(u.node_ops=B.ops_table.link.node,u.stream_ops=B.ops_table.link.stream):o.isChrdev(u.mode)&&(u.node_ops=B.ops_table.chrdev.node,u.stream_ops=B.ops_table.chrdev.stream),u.timestamp=Date.now(),n&&(n.contents[r]=u,n.timestamp=u.timestamp),u},getFileDataAsTypedArray:function(n){return n.contents?n.contents.subarray?n.contents.subarray(0,n.usedBytes):new Uint8Array(n.contents):new Uint8Array(0)},expandFileStorage:function(n,r){var i=n.contents?n.contents.length:0;if(!(i>=r)){var s=1024*1024;r=Math.max(r,i*(i<s?2:1.125)>>>0),i!=0&&(r=Math.max(r,256));var u=n.contents;n.contents=new Uint8Array(r),n.usedBytes>0&&n.contents.set(u.subarray(0,n.usedBytes),0)}},resizeFileStorage:function(n,r){if(n.usedBytes!=r)if(r==0)n.contents=null,n.usedBytes=0;else{var i=n.contents;n.contents=new Uint8Array(r),i&&n.contents.set(i.subarray(0,Math.min(r,n.usedBytes))),n.usedBytes=r}},node_ops:{getattr:function(n){var r={};return r.dev=o.isChrdev(n.mode)?n.id:1,r.ino=n.id,r.mode=n.mode,r.nlink=1,r.uid=0,r.gid=0,r.rdev=n.rdev,o.isDir(n.mode)?r.size=4096:o.isFile(n.mode)?r.size=n.usedBytes:o.isLink(n.mode)?r.size=n.link.length:r.size=0,r.atime=new Date(n.timestamp),r.mtime=new Date(n.timestamp),r.ctime=new Date(n.timestamp),r.blksize=4096,r.blocks=Math.ceil(r.size/r.blksize),r},setattr:function(n,r){r.mode!==void 0&&(n.mode=r.mode),r.timestamp!==void 0&&(n.timestamp=r.timestamp),r.size!==void 0&&B.resizeFileStorage(n,r.size)},lookup:function(n,r){throw o.genericErrors[44]},mknod:function(n,r,i,s){return B.createNode(n,r,i,s)},rename:function(n,r,i){if(o.isDir(n.mode)){var s;try{s=o.lookupNode(r,i)}catch{}if(s)for(var u in s.contents)throw new o.ErrnoError(55)}delete n.parent.contents[n.name],n.parent.timestamp=Date.now(),n.name=i,r.contents[i]=n,r.timestamp=n.parent.timestamp,n.parent=r},unlink:function(n,r){delete n.contents[r],n.timestamp=Date.now()},rmdir:function(n,r){var i=o.lookupNode(n,r);for(var s in i.contents)throw new o.ErrnoError(55);delete n.contents[r],n.timestamp=Date.now()},readdir:function(n){var r=[".",".."];for(var i in n.contents)n.contents.hasOwnProperty(i)&&r.push(i);return r},symlink:function(n,r,i){var s=B.createNode(n,r,41471,0);return s.link=i,s},readlink:function(n){if(!o.isLink(n.mode))throw new o.ErrnoError(28);return n.link}},stream_ops:{read:function(n,r,i,s,u){var _=n.node.contents;if(u>=n.node.usedBytes)return 0;var g=Math.min(n.node.usedBytes-u,s);if(g>8&&_.subarray)r.set(_.subarray(u,u+g),i);else for(var f=0;f<g;f++)r[i+f]=_[u+f];return g},write:function(n,r,i,s,u,_){if(r.buffer===Y.buffer&&(_=!1),!s)return 0;var g=n.node;if(g.timestamp=Date.now(),r.subarray&&(!g.contents||g.contents.subarray)){if(_)return g.contents=r.subarray(i,i+s),g.usedBytes=s,s;if(g.usedBytes===0&&u===0)return g.contents=r.slice(i,i+s),g.usedBytes=s,s;if(u+s<=g.usedBytes)return g.contents.set(r.subarray(i,i+s),u),s}if(B.expandFileStorage(g,u+s),g.contents.subarray&&r.subarray)g.contents.set(r.subarray(i,i+s),u);else for(var f=0;f<s;f++)g.contents[u+f]=r[i+f];return g.usedBytes=Math.max(g.usedBytes,u+s),s},llseek:function(n,r,i){var s=r;if(i===1?s+=n.position:i===2&&o.isFile(n.node.mode)&&(s+=n.node.usedBytes),s<0)throw new o.ErrnoError(28);return s},allocate:function(n,r,i){B.expandFileStorage(n.node,r+i),n.node.usedBytes=Math.max(n.node.usedBytes,r+i)},mmap:function(n,r,i,s,u){if(!o.isFile(n.node.mode))throw new o.ErrnoError(43);var _,g,f=n.node.contents;if(!(u&2)&&f.buffer===Y.buffer)g=!1,_=f.byteOffset;else{if((i>0||i+r<f.length)&&(f.subarray?f=f.subarray(i,i+r):f=Array.prototype.slice.call(f,i,i+r)),g=!0,_=jn(r),!_)throw new o.ErrnoError(48);Y.set(f,_)}return{ptr:_,allocated:g}},msync:function(n,r,i,s,u){return B.stream_ops.write(n,r,0,s,i,!1),0}}},Da=(n,r,i,s)=>{var u=s?"":`al ${n}`;Fe(n,_=>{dt(_,`Loading data file "${n}" failed (no arrayBuffer).`),r(new Uint8Array(_)),u&&nt()},_=>{if(i)i();else throw`Loading data file "${n}" failed.`}),u&&wt()},Ga=e.preloadPlugins||[];function ba(n,r,i,s){typeof Browser<"u"&&Browser.init();var u=!1;return Ga.forEach(function(_){u||_.canHandle(r)&&(_.handle(n,r,i,s),u=!0)}),u}function Ea(n,r,i,s,u,_,g,f,d,w){var M=r?Me.resolve(x.join2(n,r)):n;function G(D){function b(L){w&&w(),f||o.createDataFile(n,r,L,s,u,d),_&&_(),nt()}ba(D,M,b,()=>{g&&g(),nt()})||b(D)}wt(),typeof i=="string"?Da(i,D=>G(D),g):G(i)}function Aa(n){var r={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},i=r[n];if(typeof i>"u")throw new Error(`Unknown file open mode: ${n}`);return i}function jt(n,r){var i=0;return n&&(i|=365),r&&(i|=146),i}var o={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath:(n,r={})=>{if(n=Me.resolve(n),!n)return{path:"",node:null};var i={follow_mount:!0,recurse_count:0};if(r=Object.assign(i,r),r.recurse_count>8)throw new o.ErrnoError(32);for(var s=n.split("/").filter(G=>!!G),u=o.root,_="/",g=0;g<s.length;g++){var f=g===s.length-1;if(f&&r.parent)break;if(u=o.lookupNode(u,s[g]),_=x.join2(_,s[g]),o.isMountpoint(u)&&(!f||f&&r.follow_mount)&&(u=u.mounted.root),!f||r.follow)for(var d=0;o.isLink(u.mode);){var w=o.readlink(_);_=Me.resolve(x.dirname(_),w);var M=o.lookupPath(_,{recurse_count:r.recurse_count+1});if(u=M.node,d++>40)throw new o.ErrnoError(32)}}return{path:_,node:u}},getPath:n=>{for(var r;;){if(o.isRoot(n)){var i=n.mount.mountpoint;return r?i[i.length-1]!=="/"?`${i}/${r}`:i+r:i}r=r?`${n.name}/${r}`:n.name,n=n.parent}},hashName:(n,r)=>{for(var i=0,s=0;s<r.length;s++)i=(i<<5)-i+r.charCodeAt(s)|0;return(n+i>>>0)%o.nameTable.length},hashAddNode:n=>{var r=o.hashName(n.parent.id,n.name);n.name_next=o.nameTable[r],o.nameTable[r]=n},hashRemoveNode:n=>{var r=o.hashName(n.parent.id,n.name);if(o.nameTable[r]===n)o.nameTable[r]=n.name_next;else for(var i=o.nameTable[r];i;){if(i.name_next===n){i.name_next=n.name_next;break}i=i.name_next}},lookupNode:(n,r)=>{var i=o.mayLookup(n);if(i)throw new o.ErrnoError(i,n);for(var s=o.hashName(n.id,r),u=o.nameTable[s];u;u=u.name_next){var _=u.name;if(u.parent.id===n.id&&_===r)return u}return o.lookup(n,r)},createNode:(n,r,i,s)=>{var u=new o.FSNode(n,r,i,s);return o.hashAddNode(u),u},destroyNode:n=>{o.hashRemoveNode(n)},isRoot:n=>n===n.parent,isMountpoint:n=>!!n.mounted,isFile:n=>(n&61440)===32768,isDir:n=>(n&61440)===16384,isLink:n=>(n&61440)===40960,isChrdev:n=>(n&61440)===8192,isBlkdev:n=>(n&61440)===24576,isFIFO:n=>(n&61440)===4096,isSocket:n=>(n&49152)===49152,flagsToPermissionString:n=>{var r=["r","w","rw"][n&3];return n&512&&(r+="w"),r},nodePermissions:(n,r)=>o.ignorePermissions?0:r.includes("r")&&!(n.mode&292)||r.includes("w")&&!(n.mode&146)||r.includes("x")&&!(n.mode&73)?2:0,mayLookup:n=>{var r=o.nodePermissions(n,"x");return r||(n.node_ops.lookup?0:2)},mayCreate:(n,r)=>{try{var i=o.lookupNode(n,r);return 20}catch{}return o.nodePermissions(n,"wx")},mayDelete:(n,r,i)=>{var s;try{s=o.lookupNode(n,r)}catch(_){return _.errno}var u=o.nodePermissions(n,"wx");if(u)return u;if(i){if(!o.isDir(s.mode))return 54;if(o.isRoot(s)||o.getPath(s)===o.cwd())return 10}else if(o.isDir(s.mode))return 31;return 0},mayOpen:(n,r)=>n?o.isLink(n.mode)?32:o.isDir(n.mode)&&(o.flagsToPermissionString(r)!=="r"||r&512)?31:o.nodePermissions(n,o.flagsToPermissionString(r)):44,MAX_OPEN_FDS:4096,nextfd:()=>{for(var n=0;n<=o.MAX_OPEN_FDS;n++)if(!o.streams[n])return n;throw new o.ErrnoError(33)},getStreamChecked:n=>{var r=o.getStream(n);if(!r)throw new o.ErrnoError(8);return r},getStream:n=>o.streams[n],createStream:(n,r=-1)=>(o.FSStream||(o.FSStream=function(){this.shared={}},o.FSStream.prototype={},Object.defineProperties(o.FSStream.prototype,{object:{get:function(){return this.node},set:function(i){this.node=i}},isRead:{get:function(){return(this.flags&2097155)!==1}},isWrite:{get:function(){return(this.flags&2097155)!==0}},isAppend:{get:function(){return this.flags&1024}},flags:{get:function(){return this.shared.flags},set:function(i){this.shared.flags=i}},position:{get:function(){return this.shared.position},set:function(i){this.shared.position=i}}})),n=Object.assign(new o.FSStream,n),r==-1&&(r=o.nextfd()),n.fd=r,o.streams[r]=n,n),closeStream:n=>{o.streams[n]=null},chrdev_stream_ops:{open:n=>{var r=o.getDevice(n.node.rdev);n.stream_ops=r.stream_ops,n.stream_ops.open&&n.stream_ops.open(n)},llseek:()=>{throw new o.ErrnoError(70)}},major:n=>n>>8,minor:n=>n&255,makedev:(n,r)=>n<<8|r,registerDevice:(n,r)=>{o.devices[n]={stream_ops:r}},getDevice:n=>o.devices[n],getMounts:n=>{for(var r=[],i=[n];i.length;){var s=i.pop();r.push(s),i.push.apply(i,s.mounts)}return r},syncfs:(n,r)=>{typeof n=="function"&&(r=n,n=!1),o.syncFSRequests++,o.syncFSRequests>1&&Ee(`warning: ${o.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);var i=o.getMounts(o.root.mount),s=0;function u(g){return o.syncFSRequests--,r(g)}function _(g){if(g)return _.errored?void 0:(_.errored=!0,u(g));++s>=i.length&&u(null)}i.forEach(g=>{if(!g.type.syncfs)return _(null);g.type.syncfs(g,n,_)})},mount:(n,r,i)=>{var s=i==="/",u=!i,_;if(s&&o.root)throw new o.ErrnoError(10);if(!s&&!u){var g=o.lookupPath(i,{follow_mount:!1});if(i=g.path,_=g.node,o.isMountpoint(_))throw new o.ErrnoError(10);if(!o.isDir(_.mode))throw new o.ErrnoError(54)}var f={type:n,opts:r,mountpoint:i,mounts:[]},d=n.mount(f);return d.mount=f,f.root=d,s?o.root=d:_&&(_.mounted=f,_.mount&&_.mount.mounts.push(f)),d},unmount:n=>{var r=o.lookupPath(n,{follow_mount:!1});if(!o.isMountpoint(r.node))throw new o.ErrnoError(28);var i=r.node,s=i.mounted,u=o.getMounts(s);Object.keys(o.nameTable).forEach(g=>{for(var f=o.nameTable[g];f;){var d=f.name_next;u.includes(f.mount)&&o.destroyNode(f),f=d}}),i.mounted=null;var _=i.mount.mounts.indexOf(s);i.mount.mounts.splice(_,1)},lookup:(n,r)=>n.node_ops.lookup(n,r),mknod:(n,r,i)=>{var s=o.lookupPath(n,{parent:!0}),u=s.node,_=x.basename(n);if(!_||_==="."||_==="..")throw new o.ErrnoError(28);var g=o.mayCreate(u,_);if(g)throw new o.ErrnoError(g);if(!u.node_ops.mknod)throw new o.ErrnoError(63);return u.node_ops.mknod(u,_,r,i)},create:(n,r)=>(r=r!==void 0?r:438,r&=4095,r|=32768,o.mknod(n,r,0)),mkdir:(n,r)=>(r=r!==void 0?r:511,r&=1023,r|=16384,o.mknod(n,r,0)),mkdirTree:(n,r)=>{for(var i=n.split("/"),s="",u=0;u<i.length;++u)if(i[u]){s+="/"+i[u];try{o.mkdir(s,r)}catch(_){if(_.errno!=20)throw _}}},mkdev:(n,r,i)=>(typeof i>"u"&&(i=r,r=438),r|=8192,o.mknod(n,r,i)),symlink:(n,r)=>{if(!Me.resolve(n))throw new o.ErrnoError(44);var i=o.lookupPath(r,{parent:!0}),s=i.node;if(!s)throw new o.ErrnoError(44);var u=x.basename(r),_=o.mayCreate(s,u);if(_)throw new o.ErrnoError(_);if(!s.node_ops.symlink)throw new o.ErrnoError(63);return s.node_ops.symlink(s,u,n)},rename:(n,r)=>{var i=x.dirname(n),s=x.dirname(r),u=x.basename(n),_=x.basename(r),g,f,d;if(g=o.lookupPath(n,{parent:!0}),f=g.node,g=o.lookupPath(r,{parent:!0}),d=g.node,!f||!d)throw new o.ErrnoError(44);if(f.mount!==d.mount)throw new o.ErrnoError(75);var w=o.lookupNode(f,u),M=Me.relative(n,s);if(M.charAt(0)!==".")throw new o.ErrnoError(28);if(M=Me.relative(r,i),M.charAt(0)!==".")throw new o.ErrnoError(55);var G;try{G=o.lookupNode(d,_)}catch{}if(w!==G){var D=o.isDir(w.mode),b=o.mayDelete(f,u,D);if(b)throw new o.ErrnoError(b);if(b=G?o.mayDelete(d,_,D):o.mayCreate(d,_),b)throw new o.ErrnoError(b);if(!f.node_ops.rename)throw new o.ErrnoError(63);if(o.isMountpoint(w)||G&&o.isMountpoint(G))throw new o.ErrnoError(10);if(d!==f&&(b=o.nodePermissions(f,"w"),b))throw new o.ErrnoError(b);o.hashRemoveNode(w);try{f.node_ops.rename(w,d,_)}catch(L){throw L}finally{o.hashAddNode(w)}}},rmdir:n=>{var r=o.lookupPath(n,{parent:!0}),i=r.node,s=x.basename(n),u=o.lookupNode(i,s),_=o.mayDelete(i,s,!0);if(_)throw new o.ErrnoError(_);if(!i.node_ops.rmdir)throw new o.ErrnoError(63);if(o.isMountpoint(u))throw new o.ErrnoError(10);i.node_ops.rmdir(i,s),o.destroyNode(u)},readdir:n=>{var r=o.lookupPath(n,{follow:!0}),i=r.node;if(!i.node_ops.readdir)throw new o.ErrnoError(54);return i.node_ops.readdir(i)},unlink:n=>{var r=o.lookupPath(n,{parent:!0}),i=r.node;if(!i)throw new o.ErrnoError(44);var s=x.basename(n),u=o.lookupNode(i,s),_=o.mayDelete(i,s,!1);if(_)throw new o.ErrnoError(_);if(!i.node_ops.unlink)throw new o.ErrnoError(63);if(o.isMountpoint(u))throw new o.ErrnoError(10);i.node_ops.unlink(i,s),o.destroyNode(u)},readlink:n=>{var r=o.lookupPath(n),i=r.node;if(!i)throw new o.ErrnoError(44);if(!i.node_ops.readlink)throw new o.ErrnoError(28);return Me.resolve(o.getPath(i.parent),i.node_ops.readlink(i))},stat:(n,r)=>{var i=o.lookupPath(n,{follow:!r}),s=i.node;if(!s)throw new o.ErrnoError(44);if(!s.node_ops.getattr)throw new o.ErrnoError(63);return s.node_ops.getattr(s)},lstat:n=>o.stat(n,!0),chmod:(n,r,i)=>{var s;if(typeof n=="string"){var u=o.lookupPath(n,{follow:!i});s=u.node}else s=n;if(!s.node_ops.setattr)throw new o.ErrnoError(63);s.node_ops.setattr(s,{mode:r&4095|s.mode&-4096,timestamp:Date.now()})},lchmod:(n,r)=>{o.chmod(n,r,!0)},fchmod:(n,r)=>{var i=o.getStreamChecked(n);o.chmod(i.node,r)},chown:(n,r,i,s)=>{var u;if(typeof n=="string"){var _=o.lookupPath(n,{follow:!s});u=_.node}else u=n;if(!u.node_ops.setattr)throw new o.ErrnoError(63);u.node_ops.setattr(u,{timestamp:Date.now()})},lchown:(n,r,i)=>{o.chown(n,r,i,!0)},fchown:(n,r,i)=>{var s=o.getStreamChecked(n);o.chown(s.node,r,i)},truncate:(n,r)=>{if(r<0)throw new o.ErrnoError(28);var i;if(typeof n=="string"){var s=o.lookupPath(n,{follow:!0});i=s.node}else i=n;if(!i.node_ops.setattr)throw new o.ErrnoError(63);if(o.isDir(i.mode))throw new o.ErrnoError(31);if(!o.isFile(i.mode))throw new o.ErrnoError(28);var u=o.nodePermissions(i,"w");if(u)throw new o.ErrnoError(u);i.node_ops.setattr(i,{size:r,timestamp:Date.now()})},ftruncate:(n,r)=>{var i=o.getStreamChecked(n);if(!(i.flags&2097155))throw new o.ErrnoError(28);o.truncate(i.node,r)},utime:(n,r,i)=>{var s=o.lookupPath(n,{follow:!0}),u=s.node;u.node_ops.setattr(u,{timestamp:Math.max(r,i)})},open:(n,r,i)=>{if(n==="")throw new o.ErrnoError(44);r=typeof r=="string"?Aa(r):r,i=typeof i>"u"?438:i,r&64?i=i&4095|32768:i=0;var s;if(typeof n=="object")s=n;else{n=x.normalize(n);try{var u=o.lookupPath(n,{follow:!(r&131072)});s=u.node}catch{}}var _=!1;if(r&64)if(s){if(r&128)throw new o.ErrnoError(20)}else s=o.mknod(n,i,0),_=!0;if(!s)throw new o.ErrnoError(44);if(o.isChrdev(s.mode)&&(r&=-513),r&65536&&!o.isDir(s.mode))throw new o.ErrnoError(54);if(!_){var g=o.mayOpen(s,r);if(g)throw new o.ErrnoError(g)}r&512&&!_&&o.truncate(s,0),r&=-131713;var f=o.createStream({node:s,path:o.getPath(s),flags:r,seekable:!0,position:0,stream_ops:s.stream_ops,ungotten:[],error:!1});return f.stream_ops.open&&f.stream_ops.open(f),e.logReadFiles&&!(r&1)&&(o.readFiles||(o.readFiles={}),n in o.readFiles||(o.readFiles[n]=1)),f},close:n=>{if(o.isClosed(n))throw new o.ErrnoError(8);n.getdents&&(n.getdents=null);try{n.stream_ops.close&&n.stream_ops.close(n)}catch(r){throw r}finally{o.closeStream(n.fd)}n.fd=null},isClosed:n=>n.fd===null,llseek:(n,r,i)=>{if(o.isClosed(n))throw new o.ErrnoError(8);if(!n.seekable||!n.stream_ops.llseek)throw new o.ErrnoError(70);if(i!=0&&i!=1&&i!=2)throw new o.ErrnoError(28);return n.position=n.stream_ops.llseek(n,r,i),n.ungotten=[],n.position},read:(n,r,i,s,u)=>{if(s<0||u<0)throw new o.ErrnoError(28);if(o.isClosed(n))throw new o.ErrnoError(8);if((n.flags&2097155)===1)throw new o.ErrnoError(8);if(o.isDir(n.node.mode))throw new o.ErrnoError(31);if(!n.stream_ops.read)throw new o.ErrnoError(28);var _=typeof u<"u";if(!_)u=n.position;else if(!n.seekable)throw new o.ErrnoError(70);var g=n.stream_ops.read(n,r,i,s,u);return _||(n.position+=g),g},write:(n,r,i,s,u,_)=>{if(s<0||u<0)throw new o.ErrnoError(28);if(o.isClosed(n))throw new o.ErrnoError(8);if(!(n.flags&2097155))throw new o.ErrnoError(8);if(o.isDir(n.node.mode))throw new o.ErrnoError(31);if(!n.stream_ops.write)throw new o.ErrnoError(28);n.seekable&&n.flags&1024&&o.llseek(n,0,2);var g=typeof u<"u";if(!g)u=n.position;else if(!n.seekable)throw new o.ErrnoError(70);var f=n.stream_ops.write(n,r,i,s,u,_);return g||(n.position+=f),f},allocate:(n,r,i)=>{if(o.isClosed(n))throw new o.ErrnoError(8);if(r<0||i<=0)throw new o.ErrnoError(28);if(!(n.flags&2097155))throw new o.ErrnoError(8);if(!o.isFile(n.node.mode)&&!o.isDir(n.node.mode))throw new o.ErrnoError(43);if(!n.stream_ops.allocate)throw new o.ErrnoError(138);n.stream_ops.allocate(n,r,i)},mmap:(n,r,i,s,u)=>{if(s&2&&!(u&2)&&(n.flags&2097155)!==2)throw new o.ErrnoError(2);if((n.flags&2097155)===1)throw new o.ErrnoError(2);if(!n.stream_ops.mmap)throw new o.ErrnoError(43);return n.stream_ops.mmap(n,r,i,s,u)},msync:(n,r,i,s,u)=>n.stream_ops.msync?n.stream_ops.msync(n,r,i,s,u):0,munmap:n=>0,ioctl:(n,r,i)=>{if(!n.stream_ops.ioctl)throw new o.ErrnoError(59);return n.stream_ops.ioctl(n,r,i)},readFile:(n,r={})=>{if(r.flags=r.flags||0,r.encoding=r.encoding||"binary",r.encoding!=="utf8"&&r.encoding!=="binary")throw new Error(`Invalid encoding type "${r.encoding}"`);var i,s=o.open(n,r.flags),u=o.stat(n),_=u.size,g=new Uint8Array(_);return o.read(s,g,0,_,0),r.encoding==="utf8"?i=Ye(g,0):r.encoding==="binary"&&(i=g),o.close(s),i},writeFile:(n,r,i={})=>{i.flags=i.flags||577;var s=o.open(n,i.flags,i.mode);if(typeof r=="string"){var u=new Uint8Array(Ne(r)+1),_=xt(r,u,0,u.length);o.write(s,u,0,_,void 0,i.canOwn)}else if(ArrayBuffer.isView(r))o.write(s,r,0,r.byteLength,void 0,i.canOwn);else throw new Error("Unsupported data type");o.close(s)},cwd:()=>o.currentPath,chdir:n=>{var r=o.lookupPath(n,{follow:!0});if(r.node===null)throw new o.ErrnoError(44);if(!o.isDir(r.node.mode))throw new o.ErrnoError(54);var i=o.nodePermissions(r.node,"x");if(i)throw new o.ErrnoError(i);o.currentPath=r.path},createDefaultDirectories:()=>{o.mkdir("/tmp"),o.mkdir("/home"),o.mkdir("/home/web_user")},createDefaultDevices:()=>{o.mkdir("/dev"),o.registerDevice(o.makedev(1,3),{read:()=>0,write:(s,u,_,g,f)=>g}),o.mkdev("/dev/null",o.makedev(1,3)),ze.register(o.makedev(5,0),ze.default_tty_ops),ze.register(o.makedev(6,0),ze.default_tty1_ops),o.mkdev("/dev/tty",o.makedev(5,0)),o.mkdev("/dev/tty1",o.makedev(6,0));var n=new Uint8Array(1024),r=0,i=()=>(r===0&&(r=Ht(n).byteLength),n[--r]);o.createDevice("/dev","random",i),o.createDevice("/dev","urandom",i),o.mkdir("/dev/shm"),o.mkdir("/dev/shm/tmp")},createSpecialDirectories:()=>{o.mkdir("/proc");var n=o.mkdir("/proc/self");o.mkdir("/proc/self/fd"),o.mount({mount:()=>{var r=o.createNode(n,"fd",16895,73);return r.node_ops={lookup:(i,s)=>{var u=+s,_=o.getStreamChecked(u),g={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>_.path}};return g.parent=g,g}},r}},{},"/proc/self/fd")},createStandardStreams:()=>{e.stdin?o.createDevice("/dev","stdin",e.stdin):o.symlink("/dev/tty","/dev/stdin"),e.stdout?o.createDevice("/dev","stdout",null,e.stdout):o.symlink("/dev/tty","/dev/stdout"),e.stderr?o.createDevice("/dev","stderr",null,e.stderr):o.symlink("/dev/tty1","/dev/stderr"),o.open("/dev/stdin",0),o.open("/dev/stdout",1),o.open("/dev/stderr",1)},ensureErrnoError:()=>{o.ErrnoError||(o.ErrnoError=function(r,i){this.name="ErrnoError",this.node=i,this.setErrno=function(s){this.errno=s},this.setErrno(r),this.message="FS error"},o.ErrnoError.prototype=new Error,o.ErrnoError.prototype.constructor=o.ErrnoError,[44].forEach(n=>{o.genericErrors[n]=new o.ErrnoError(n),o.genericErrors[n].stack="<generic error, no stack>"}))},staticInit:()=>{o.ensureErrnoError(),o.nameTable=new Array(4096),o.mount(B,{},"/"),o.createDefaultDirectories(),o.createDefaultDevices(),o.createSpecialDirectories(),o.filesystems={MEMFS:B}},init:(n,r,i)=>{o.init.initialized=!0,o.ensureErrnoError(),e.stdin=n||e.stdin,e.stdout=r||e.stdout,e.stderr=i||e.stderr,o.createStandardStreams()},quit:()=>{o.init.initialized=!1;for(var n=0;n<o.streams.length;n++){var r=o.streams[n];r&&o.close(r)}},findObject:(n,r)=>{var i=o.analyzePath(n,r);return i.exists?i.object:null},analyzePath:(n,r)=>{try{var i=o.lookupPath(n,{follow:!r});n=i.path}catch{}var s={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var i=o.lookupPath(n,{parent:!0});s.parentExists=!0,s.parentPath=i.path,s.parentObject=i.node,s.name=x.basename(n),i=o.lookupPath(n,{follow:!r}),s.exists=!0,s.path=i.path,s.object=i.node,s.name=i.node.name,s.isRoot=i.path==="/"}catch(u){s.error=u.errno}return s},createPath:(n,r,i,s)=>{n=typeof n=="string"?n:o.getPath(n);for(var u=r.split("/").reverse();u.length;){var _=u.pop();if(_){var g=x.join2(n,_);try{o.mkdir(g)}catch{}n=g}}return g},createFile:(n,r,i,s,u)=>{var _=x.join2(typeof n=="string"?n:o.getPath(n),r),g=jt(s,u);return o.create(_,g)},createDataFile:(n,r,i,s,u,_)=>{var g=r;n&&(n=typeof n=="string"?n:o.getPath(n),g=r?x.join2(n,r):n);var f=jt(s,u),d=o.create(g,f);if(i){if(typeof i=="string"){for(var w=new Array(i.length),M=0,G=i.length;M<G;++M)w[M]=i.charCodeAt(M);i=w}o.chmod(d,f|146);var D=o.open(d,577);o.write(D,i,0,i.length,0,_),o.close(D),o.chmod(d,f)}return d},createDevice:(n,r,i,s)=>{var u=x.join2(typeof n=="string"?n:o.getPath(n),r),_=jt(!!i,!!s);o.createDevice.major||(o.createDevice.major=64);var g=o.makedev(o.createDevice.major++,0);return o.registerDevice(g,{open:f=>{f.seekable=!1},close:f=>{s&&s.buffer&&s.buffer.length&&s(10)},read:(f,d,w,M,G)=>{for(var D=0,b=0;b<M;b++){var L;try{L=i()}catch{throw new o.ErrnoError(29)}if(L===void 0&&D===0)throw new o.ErrnoError(6);if(L==null)break;D++,d[w+b]=L}return D&&(f.node.timestamp=Date.now()),D},write:(f,d,w,M,G)=>{for(var D=0;D<M;D++)try{s(d[w+D])}catch{throw new o.ErrnoError(29)}return M&&(f.node.timestamp=Date.now()),D}}),o.mkdev(u,_,g)},forceLoadFile:n=>{if(n.isDevice||n.isFolder||n.link||n.contents)return!0;if(typeof XMLHttpRequest<"u")throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(Ze)try{n.contents=kt(Ze(n.url),!0),n.usedBytes=n.contents.length}catch{throw new o.ErrnoError(29)}else throw new Error("Cannot load without read() or XMLHttpRequest.")},createLazyFile:(n,r,i,s,u)=>{function _(){this.lengthKnown=!1,this.chunks=[]}if(_.prototype.get=function(b){if(!(b>this.length-1||b<0)){var L=b%this.chunkSize,Q=b/this.chunkSize|0;return this.getter(Q)[L]}},_.prototype.setDataGetter=function(b){this.getter=b},_.prototype.cacheLength=function(){var b=new XMLHttpRequest;if(b.open("HEAD",i,!1),b.send(null),!(b.status>=200&&b.status<300||b.status===304))throw new Error("Couldn't load "+i+". Status: "+b.status);var L=Number(b.getResponseHeader("Content-length")),Q,K=(Q=b.getResponseHeader("Accept-Ranges"))&&Q==="bytes",ae=(Q=b.getResponseHeader("Content-Encoding"))&&Q==="gzip",v=1024*1024;K||(v=L);var R=(X,ge)=>{if(X>ge)throw new Error("invalid range ("+X+", "+ge+") or no bytes requested!");if(ge>L-1)throw new Error("only "+L+" bytes available! programmer error!");var te=new XMLHttpRequest;if(te.open("GET",i,!1),L!==v&&te.setRequestHeader("Range","bytes="+X+"-"+ge),te.responseType="arraybuffer",te.overrideMimeType&&te.overrideMimeType("text/plain; charset=x-user-defined"),te.send(null),!(te.status>=200&&te.status<300||te.status===304))throw new Error("Couldn't load "+i+". Status: "+te.status);return te.response!==void 0?new Uint8Array(te.response||[]):kt(te.responseText||"",!0)},j=this;j.setDataGetter(X=>{var ge=X*v,te=(X+1)*v-1;if(te=Math.min(te,L-1),typeof j.chunks[X]>"u"&&(j.chunks[X]=R(ge,te)),typeof j.chunks[X]>"u")throw new Error("doXHR failed!");return j.chunks[X]}),(ae||!L)&&(v=L=1,L=this.getter(0).length,v=L,zt("LazyFiles on gzip forces download of the whole file when length is accessed")),this._length=L,this._chunkSize=v,this.lengthKnown=!0},typeof XMLHttpRequest<"u"){if(!W)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";var g=new _;Object.defineProperties(g,{length:{get:function(){return this.lengthKnown||this.cacheLength(),this._length}},chunkSize:{get:function(){return this.lengthKnown||this.cacheLength(),this._chunkSize}}});var f={isDevice:!1,contents:g}}else var f={isDevice:!1,url:i};var d=o.createFile(n,r,f,s,u);f.contents?d.contents=f.contents:f.url&&(d.contents=null,d.url=f.url),Object.defineProperties(d,{usedBytes:{get:function(){return this.contents.length}}});var w={},M=Object.keys(d.stream_ops);M.forEach(D=>{var b=d.stream_ops[D];w[D]=function(){return o.forceLoadFile(d),b.apply(null,arguments)}});function G(D,b,L,Q,K){var ae=D.node.contents;if(K>=ae.length)return 0;var v=Math.min(ae.length-K,Q);if(ae.slice)for(var R=0;R<v;R++)b[L+R]=ae[K+R];else for(var R=0;R<v;R++)b[L+R]=ae.get(K+R);return v}return w.read=(D,b,L,Q,K)=>(o.forceLoadFile(d),G(D,b,L,Q,K)),w.mmap=(D,b,L,Q,K)=>{o.forceLoadFile(d);var ae=jn(b);if(!ae)throw new o.ErrnoError(48);return G(D,Y,ae,b,L),{ptr:ae,allocated:!0}},d.stream_ops=w,d}},Ae=(n,r)=>n?Ye(re,n,r):"",P={DEFAULT_POLLMASK:5,calculateAt:function(n,r,i){if(x.isAbs(r))return r;var s;if(n===-100)s=o.cwd();else{var u=P.getStreamFromFD(n);s=u.path}if(r.length==0){if(!i)throw new o.ErrnoError(44);return s}return x.join2(s,r)},doStat:function(n,r,i){try{var s=n(r)}catch(f){if(f&&f.node&&x.normalize(r)!==x.normalize(o.getPath(f.node)))return-54;throw f}S[i>>2]=s.dev,S[i+4>>2]=s.mode,T[i+8>>2]=s.nlink,S[i+12>>2]=s.uid,S[i+16>>2]=s.gid,S[i+20>>2]=s.rdev,ue[i+24>>3]=BigInt(s.size),S[i+32>>2]=4096,S[i+36>>2]=s.blocks;var u=s.atime.getTime(),_=s.mtime.getTime(),g=s.ctime.getTime();return ue[i+40>>3]=BigInt(Math.floor(u/1e3)),T[i+48>>2]=u%1e3*1e3,ue[i+56>>3]=BigInt(Math.floor(_/1e3)),T[i+64>>2]=_%1e3*1e3,ue[i+72>>3]=BigInt(Math.floor(g/1e3)),T[i+80>>2]=g%1e3*1e3,ue[i+88>>3]=BigInt(s.ino),0},doMsync:function(n,r,i,s,u){if(!o.isFile(r.node.mode))throw new o.ErrnoError(43);if(s&2)return 0;var _=re.slice(n,n+i);o.msync(r,_,u,i,s)},varargs:void 0,get:function(){P.varargs+=4;var n=S[P.varargs-4>>2];return n},getStr:function(n){var r=Ae(n);return r},getStreamFromFD:function(n){var r=o.getStreamChecked(n);return r}};function Ra(n,r){try{return n=P.getStr(n),o.chmod(n,r),0}catch(i){if(typeof o>"u"||i.name!=="ErrnoError")throw i;return-i.errno}}var $={mount:function(n){return e.websocket=e.websocket&&typeof e.websocket=="object"?e.websocket:{},e.websocket._callbacks={},e.websocket.on=function(r,i){return typeof i=="function"&&(this._callbacks[r]=i),this},e.websocket.emit=function(r,i){typeof this._callbacks[r]=="function"&&this._callbacks[r].call(this,i)},o.createNode(null,"/",16895,0)},createSocket:function(n,r,i){r&=-526337;var s=r==1;if(s&&i&&i!=6)throw new o.ErrnoError(66);var u={family:n,type:r,protocol:i,server:null,error:null,peers:{},pending:[],recv_queue:[],sock_ops:$.websocket_sock_ops},_=$.nextname(),g=o.createNode($.root,_,49152,0);g.sock=u;var f=o.createStream({path:_,node:g,flags:2,seekable:!1,stream_ops:$.stream_ops});return u.stream=f,u},getSocket:function(n){var r=o.getStream(n);return!r||!o.isSocket(r.node.mode)?null:r.node.sock},stream_ops:{poll:function(n){var r=n.node.sock;return r.sock_ops.poll(r)},ioctl:function(n,r,i){var s=n.node.sock;return s.sock_ops.ioctl(s,r,i)},read:function(n,r,i,s,u){var _=n.node.sock,g=_.sock_ops.recvmsg(_,s);return g?(r.set(g.buffer,i),g.buffer.length):0},write:function(n,r,i,s,u){var _=n.node.sock;return _.sock_ops.sendmsg(_,r,i,s)},close:function(n){var r=n.node.sock;r.sock_ops.close(r)}},nextname:function(){return $.nextname.current||($.nextname.current=0),"socket["+$.nextname.current+++"]"},websocket_sock_ops:{createPeer:function(n,r,i){var s;if(typeof r=="object"&&(s=r,r=null,i=null),s)if(s._socket)r=s._socket.remoteAddress,i=s._socket.remotePort;else{var u=/ws[s]?:\/\/([^:]+):(\d+)/.exec(s.url);if(!u)throw new Error("WebSocket URL must be in the format ws(s)://address:port");r=u[1],i=parseInt(u[2],10)}else try{var _=e.websocket&&typeof e.websocket=="object",g="ws:#".replace("#","//");if(_&&typeof e.websocket.url=="string"&&(g=e.websocket.url),g==="ws://"||g==="wss://"){var f=r.split("/");g=g+f[0]+":"+i+"/"+f.slice(1).join("/")}var d="binary";_&&typeof e.websocket.subprotocol=="string"&&(d=e.websocket.subprotocol);var w=void 0;d!=="null"&&(d=d.replace(/^ +| +$/g,"").split(/ *, */),w=d),_&&e.websocket.subprotocol===null&&(d="null",w=void 0);var M;M=WebSocket,s=new M(g,w),s.binaryType="arraybuffer"}catch{throw new o.ErrnoError(23)}var G={addr:r,port:i,socket:s,dgram_send_queue:[]};return $.websocket_sock_ops.addPeer(n,G),$.websocket_sock_ops.handlePeerEvents(n,G),n.type===2&&typeof n.sport<"u"&&G.dgram_send_queue.push(new Uint8Array([255,255,255,255,112,111,114,116,(n.sport&65280)>>8,n.sport&255])),G},getPeer:function(n,r,i){return n.peers[r+":"+i]},addPeer:function(n,r){n.peers[r.addr+":"+r.port]=r},removePeer:function(n,r){delete n.peers[r.addr+":"+r.port]},handlePeerEvents:function(n,r){var i=!0,s=function(){e.websocket.emit("open",n.stream.fd);try{for(var _=r.dgram_send_queue.shift();_;)r.socket.send(_),_=r.dgram_send_queue.shift()}catch{r.socket.close()}};function u(_){if(typeof _=="string"){var g=new TextEncoder;_=g.encode(_)}else{if(dt(_.byteLength!==void 0),_.byteLength==0)return;_=new Uint8Array(_)}var f=i;if(i=!1,f&&_.length===10&&_[0]===255&&_[1]===255&&_[2]===255&&_[3]===255&&_[4]===112&&_[5]===111&&_[6]===114&&_[7]===116){var d=_[8]<<8|_[9];$.websocket_sock_ops.removePeer(n,r),r.port=d,$.websocket_sock_ops.addPeer(n,r);return}n.recv_queue.push({addr:r.addr,port:r.port,data:_}),e.websocket.emit("message",n.stream.fd)}V?(r.socket.on("open",s),r.socket.on("message",function(_,g){g&&u(new Uint8Array(_).buffer)}),r.socket.on("close",function(){e.websocket.emit("close",n.stream.fd)}),r.socket.on("error",function(_){n.error=14,e.websocket.emit("error",[n.stream.fd,n.error,"ECONNREFUSED: Connection refused"])})):(r.socket.onopen=s,r.socket.onclose=function(){e.websocket.emit("close",n.stream.fd)},r.socket.onmessage=function(g){u(g.data)},r.socket.onerror=function(_){n.error=14,e.websocket.emit("error",[n.stream.fd,n.error,"ECONNREFUSED: Connection refused"])})},poll:function(n){if(n.type===1&&n.server)return n.pending.length?65:0;var r=0,i=n.type===1?$.websocket_sock_ops.getPeer(n,n.daddr,n.dport):null;return(n.recv_queue.length||!i||i&&i.socket.readyState===i.socket.CLOSING||i&&i.socket.readyState===i.socket.CLOSED)&&(r|=65),(!i||i&&i.socket.readyState===i.socket.OPEN)&&(r|=4),(i&&i.socket.readyState===i.socket.CLOSING||i&&i.socket.readyState===i.socket.CLOSED)&&(r|=16),r},ioctl:function(n,r,i){switch(r){case 21531:var s=0;return n.recv_queue.length&&(s=n.recv_queue[0].data.length),S[i>>2]=s,0;default:return 28}},close:function(n){if(n.server){try{n.server.close()}catch{}n.server=null}for(var r=Object.keys(n.peers),i=0;i<r.length;i++){var s=n.peers[r[i]];try{s.socket.close()}catch{}$.websocket_sock_ops.removePeer(n,s)}return 0},bind:function(n,r,i){if(typeof n.saddr<"u"||typeof n.sport<"u")throw new o.ErrnoError(28);if(n.saddr=r,n.sport=i,n.type===2){n.server&&(n.server.close(),n.server=null);try{n.sock_ops.listen(n,0)}catch(s){if(s.name!=="ErrnoError"||s.errno!==138)throw s}}},connect:function(n,r,i){if(n.server)throw new o.ErrnoError(138);if(typeof n.daddr<"u"&&typeof n.dport<"u"){var s=$.websocket_sock_ops.getPeer(n,n.daddr,n.dport);if(s)throw s.socket.readyState===s.socket.CONNECTING?new o.ErrnoError(7):new o.ErrnoError(30)}var u=$.websocket_sock_ops.createPeer(n,r,i);throw n.daddr=u.addr,n.dport=u.port,new o.ErrnoError(26)},listen:function(n,r){if(!V)throw new o.ErrnoError(138)},accept:function(n){if(!n.server||!n.pending.length)throw new o.ErrnoError(28);var r=n.pending.shift();return r.stream.flags=n.stream.flags,r},getname:function(n,r){var i,s;if(r){if(n.daddr===void 0||n.dport===void 0)throw new o.ErrnoError(53);i=n.daddr,s=n.dport}else i=n.saddr||0,s=n.sport||0;return{addr:i,port:s}},sendmsg:function(n,r,i,s,u,_){if(n.type===2){if((u===void 0||_===void 0)&&(u=n.daddr,_=n.dport),u===void 0||_===void 0)throw new o.ErrnoError(17)}else u=n.daddr,_=n.dport;var g=$.websocket_sock_ops.getPeer(n,u,_);if(n.type===1){if(!g||g.socket.readyState===g.socket.CLOSING||g.socket.readyState===g.socket.CLOSED)throw new o.ErrnoError(53);if(g.socket.readyState===g.socket.CONNECTING)throw new o.ErrnoError(6)}ArrayBuffer.isView(r)&&(i+=r.byteOffset,r=r.buffer);var f;if(f=r.slice(i,i+s),n.type===2&&(!g||g.socket.readyState!==g.socket.OPEN))return(!g||g.socket.readyState===g.socket.CLOSING||g.socket.readyState===g.socket.CLOSED)&&(g=$.websocket_sock_ops.createPeer(n,u,_)),g.dgram_send_queue.push(f),s;try{return g.socket.send(f),s}catch{throw new o.ErrnoError(28)}},recvmsg:function(n,r){if(n.type===1&&n.server)throw new o.ErrnoError(53);var i=n.recv_queue.shift();if(!i){if(n.type===1){var s=$.websocket_sock_ops.getPeer(n,n.daddr,n.dport);if(!s)throw new o.ErrnoError(53);if(s.socket.readyState===s.socket.CLOSING||s.socket.readyState===s.socket.CLOSED)return null;throw new o.ErrnoError(6)}throw new o.ErrnoError(6)}var u=i.data.byteLength||i.data.length,_=i.data.byteOffset||0,g=i.data.buffer||i.data,f=Math.min(r,u),d={buffer:new Uint8Array(g,_,f),addr:i.addr,port:i.port};if(n.type===1&&f<u){var w=u-f;i.data=new Uint8Array(g,_+f,w),n.recv_queue.unshift(i)}return d}}};function St(n){var r=$.getSocket(n);if(!r)throw new o.ErrnoError(8);return r}var Xn=n=>(S[yr()>>2]=n,n),Xt=n=>(n&255)+"."+(n>>8&255)+"."+(n>>16&255)+"."+(n>>24&255),qn=n=>{var r="",i=0,s=0,u=0,_=0,g=0,f=0,d=[n[0]&65535,n[0]>>16,n[1]&65535,n[1]>>16,n[2]&65535,n[2]>>16,n[3]&65535,n[3]>>16],w=!0,M="";for(f=0;f<5;f++)if(d[f]!==0){w=!1;break}if(w){if(M=Xt(d[6]|d[7]<<16),d[5]===-1)return r="::ffff:",r+=M,r;if(d[5]===0)return r="::",M==="0.0.0.0"&&(M=""),M==="0.0.0.1"&&(M="1"),r+=M,r}for(i=0;i<8;i++)d[i]===0&&(i-u>1&&(g=0),u=i,g++),g>s&&(s=g,_=i-s+1);for(i=0;i<8;i++){if(s>1&&d[i]===0&&i>=_&&i<_+s){i===_&&(r+=":",_===0&&(r+=":"));continue}r+=Number(Jt(d[i]&65535)).toString(16),r+=i<7?":":""}return r},Pa=(n,r)=>{var i=ee[n>>1],s=Jt(et[n+2>>1]),u;switch(i){case 2:if(r!==16)return{errno:28};u=S[n+4>>2],u=Xt(u);break;case 10:if(r!==28)return{errno:28};u=[S[n+8>>2],S[n+12>>2],S[n+16>>2],S[n+20>>2]],u=qn(u);break;default:return{errno:5}}return{family:i,addr:u,port:s}},vt=n=>{for(var r=n.split("."),i=0;i<4;i++){var s=Number(r[i]);if(isNaN(s))return null;r[i]=s}return(r[0]|r[1]<<8|r[2]<<16|r[3]<<24)>>>0},Mt=n=>parseInt(n),qt=n=>{var r,i,s,u,_=/^((?=.*::)(?!.*::.+::)(::)?([\dA-F]{1,4}:(:|\b)|){5}|([\dA-F]{1,4}:){6})((([\dA-F]{1,4}((?!\3)::|:\b|$))|(?!\2\3)){2}|(((2[0-4]|1\d|[1-9])?\d|25[0-5])\.?\b){4})$/i,g=[];if(!_.test(n))return null;if(n==="::")return[0,0,0,0,0,0,0,0];for(n.startsWith("::")?n=n.replace("::","Z:"):n=n.replace("::",":Z:"),n.indexOf(".")>0?(n=n.replace(new RegExp("[.]","g"),":"),r=n.split(":"),r[r.length-4]=Mt(r[r.length-4])+Mt(r[r.length-3])*256,r[r.length-3]=Mt(r[r.length-2])+Mt(r[r.length-1])*256,r=r.slice(0,r.length-2)):r=n.split(":"),s=0,u=0,i=0;i<r.length;i++)if(typeof r[i]=="string")if(r[i]==="Z"){for(u=0;u<8-r.length+1;u++)g[i+u]=0;s=u-1}else g[i+s]=bt(parseInt(r[i],16));else g[i+s]=r[i];return[g[1]<<16|g[0],g[3]<<16|g[2],g[5]<<16|g[4],g[7]<<16|g[6]]},pe={address_map:{id:1,addrs:{},names:{}},lookup_name:n=>{var r=vt(n);if(r!==null||(r=qt(n),r!==null))return n;var i;if(pe.address_map.addrs[n])i=pe.address_map.addrs[n];else{var s=pe.address_map.id++;dt(s<65535,"exceeded max address mappings of 65535"),i="172.29."+(s&255)+"."+(s&65280),pe.address_map.names[i]=n,pe.address_map.addrs[n]=i}return i},lookup_addr:n=>pe.address_map.names[n]?pe.address_map.names[n]:null};function Vn(n,r,i){if(i&&n===0)return null;var s=Pa(n,r);if(s.errno)throw new o.ErrnoError(s.errno);return s.addr=pe.lookup_addr(s.addr)||s.addr,s}function Ca(n,r,i,s,u,_){try{var g=St(n),f=Vn(r,i);return g.sock_ops.connect(g,f.addr,f.port),0}catch(d){if(typeof o>"u"||d.name!=="ErrnoError")throw d;return-d.errno}}function Ta(n){try{var r=P.getStreamFromFD(n);return o.createStream(r).fd}catch(i){if(typeof o>"u"||i.name!=="ErrnoError")throw i;return-i.errno}}function Wa(n,r,i,s){try{if(r=P.getStr(r),r=P.calculateAt(n,r),i&-8)return-28;var u=o.lookupPath(r,{follow:!0}),_=u.node;if(!_)return-44;var g="";return i&4&&(g+="r"),i&2&&(g+="w"),i&1&&(g+="x"),g&&o.nodePermissions(_,g)?-2:0}catch(f){if(typeof o>"u"||f.name!=="ErrnoError")throw f;return-f.errno}}var Ba=9007199254740992,La=-9007199254740992;function Ue(n){return n<La||n>Ba?NaN:Number(n)}function Na(n,r,i,s){try{if(i=Ue(i),isNaN(i)||(s=Ue(s),isNaN(s)))return-61;var u=P.getStreamFromFD(n);return o.allocate(u,i,s),0}catch(_){if(typeof o>"u"||_.name!=="ErrnoError")throw _;return-_.errno}}function za(n,r){try{return o.fchmod(n,r),0}catch(i){if(typeof o>"u"||i.name!=="ErrnoError")throw i;return-i.errno}}function Ua(n,r,i){P.varargs=i;try{var s=P.getStreamFromFD(n);switch(r){case 0:{var u=P.get();if(u<0)return-28;var _;return _=o.createStream(s,u),_.fd}case 1:case 2:return 0;case 3:return s.flags;case 4:{var u=P.get();return s.flags|=u,0}case 5:{var u=P.get(),g=0;return ee[u+g>>1]=2,0}case 6:case 7:return 0;case 16:case 8:return-28;case 9:return Xn(28),-1;default:return-28}}catch(f){if(typeof o>"u"||f.name!=="ErrnoError")throw f;return-f.errno}}function Fa(n,r){try{var i=P.getStreamFromFD(n);return P.doStat(o.stat,i.path,r)}catch(s){if(typeof o>"u"||s.name!=="ErrnoError")throw s;return-s.errno}}var je=(n,r,i)=>xt(n,re,r,i);function Ha(n,r){try{if(r===0)return-28;var i=o.cwd(),s=Ne(i)+1;return r<s?-68:(je(i,n,r),s)}catch(u){if(typeof o>"u"||u.name!=="ErrnoError")throw u;return-u.errno}}function xa(n,r,i){try{var s=P.getStreamFromFD(n);s.getdents||(s.getdents=o.readdir(s.path));for(var u=280,_=0,g=o.llseek(s,0,1),f=Math.floor(g/u);f<s.getdents.length&&_+u<=i;){var d,w,M=s.getdents[f];if(M===".")d=s.node.id,w=4;else if(M===".."){var G=o.lookupPath(s.path,{parent:!0});d=G.node.id,w=4}else{var D=o.lookupNode(s.node,M);d=D.id,w=o.isChrdev(D.mode)?2:o.isDir(D.mode)?4:o.isLink(D.mode)?10:8}ue[r+_>>3]=BigInt(d),ue[r+_+8>>3]=BigInt((f+1)*u),ee[r+_+16>>1]=280,Y[r+_+18>>0]=w,je(M,r+_+19,256),_+=u,f+=1}return o.llseek(s,f*u,0),_}catch(b){if(typeof o>"u"||b.name!=="ErrnoError")throw b;return-b.errno}}function Ya(n,r,i,s,u,_){try{var g=St(n);return r===1&&i===4?(S[s>>2]=g.error,S[u>>2]=4,g.error=null,0):-50}catch(f){if(typeof o>"u"||f.name!=="ErrnoError")throw f;return-f.errno}}function ja(n,r,i){P.varargs=i;try{var s=P.getStreamFromFD(n);switch(r){case 21509:return s.tty?0:-59;case 21505:{if(!s.tty)return-59;if(s.tty.ops.ioctl_tcgets){var u=s.tty.ops.ioctl_tcgets(s),_=P.get();S[_>>2]=u.c_iflag||0,S[_+4>>2]=u.c_oflag||0,S[_+8>>2]=u.c_cflag||0,S[_+12>>2]=u.c_lflag||0;for(var g=0;g<32;g++)Y[_+g+17>>0]=u.c_cc[g]||0;return 0}return 0}case 21510:case 21511:case 21512:return s.tty?0:-59;case 21506:case 21507:case 21508:{if(!s.tty)return-59;if(s.tty.ops.ioctl_tcsets){for(var _=P.get(),f=S[_>>2],d=S[_+4>>2],w=S[_+8>>2],M=S[_+12>>2],G=[],g=0;g<32;g++)G.push(Y[_+g+17>>0]);return s.tty.ops.ioctl_tcsets(s.tty,r,{c_iflag:f,c_oflag:d,c_cflag:w,c_lflag:M,c_cc:G})}return 0}case 21519:{if(!s.tty)return-59;var _=P.get();return S[_>>2]=0,0}case 21520:return s.tty?-28:-59;case 21531:{var _=P.get();return o.ioctl(s,r,_)}case 21523:{if(!s.tty)return-59;if(s.tty.ops.ioctl_tiocgwinsz){var D=s.tty.ops.ioctl_tiocgwinsz(s.tty),_=P.get();ee[_>>1]=D[0],ee[_+2>>1]=D[1]}return 0}case 21524:return s.tty?0:-59;case 21515:return s.tty?0:-59;default:return-28}}catch(b){if(typeof o>"u"||b.name!=="ErrnoError")throw b;return-b.errno}}function Xa(n,r){try{return n=P.getStr(n),P.doStat(o.lstat,n,r)}catch(i){if(typeof o>"u"||i.name!=="ErrnoError")throw i;return-i.errno}}function qa(n,r,i,s){try{r=P.getStr(r);var u=s&256,_=s&4096;return s=s&-6401,r=P.calculateAt(n,r,_),P.doStat(u?o.lstat:o.stat,r,i)}catch(g){if(typeof o>"u"||g.name!=="ErrnoError")throw g;return-g.errno}}function Va(n,r,i,s){P.varargs=s;try{r=P.getStr(r),r=P.calculateAt(n,r);var u=s?P.get():0;return o.open(r,i,u).fd}catch(_){if(typeof o>"u"||_.name!=="ErrnoError")throw _;return-_.errno}}function $a(n,r,i){try{for(var s=0,u=0;u<r;u++){var _=n+8*u,g=S[_>>2],f=ee[_+4>>1],d=32,w=o.getStream(g);w&&(d=P.DEFAULT_POLLMASK,w.stream_ops.poll&&(d=w.stream_ops.poll(w,-1))),d&=f|8|16,d&&s++,ee[_+6>>1]=d}return s}catch(M){if(typeof o>"u"||M.name!=="ErrnoError")throw M;return-M.errno}}function Qa(n,r,i,s){try{if(r=P.getStr(r),r=P.calculateAt(n,r),s<=0)return-28;var u=o.readlink(r),_=Math.min(s,Ne(u)),g=Y[i+_];return je(u,i,s+1),Y[i+_]=g,_}catch(f){if(typeof o>"u"||f.name!=="ErrnoError")throw f;return-f.errno}}var $n=(n,r,i,s,u)=>{switch(r){case 2:i=vt(i),Yt(n,16),u&&(S[u>>2]=16),ee[n>>1]=r,S[n+4>>2]=i,ee[n+2>>1]=bt(s);break;case 10:i=qt(i),Yt(n,28),u&&(S[u>>2]=28),S[n>>2]=r,S[n+8>>2]=i[0],S[n+12>>2]=i[1],S[n+16>>2]=i[2],S[n+20>>2]=i[3],ee[n+2>>1]=bt(s);break;default:return 5}return 0};function Ja(n,r,i,s,u,_){try{var g=St(n),f=g.sock_ops.recvmsg(g,i);if(!f)return 0;if(u)var d=$n(u,g.family,pe.lookup_name(f.addr),f.port,_);return re.set(f.buffer,r),f.buffer.byteLength}catch(w){if(typeof o>"u"||w.name!=="ErrnoError")throw w;return-w.errno}}function Ka(n){try{return n=P.getStr(n),o.rmdir(n),0}catch(r){if(typeof o>"u"||r.name!=="ErrnoError")throw r;return-r.errno}}function Za(n,r,i,s,u,_){try{var g=St(n),f=Vn(u,_,!0);return f?g.sock_ops.sendmsg(g,Y,r,i,f.addr,f.port):o.write(g.stream,Y,r,i)}catch(d){if(typeof o>"u"||d.name!=="ErrnoError")throw d;return-d.errno}}function Oa(n,r,i){try{var s=$.createSocket(n,r,i);return s.stream.fd}catch(u){if(typeof o>"u"||u.name!=="ErrnoError")throw u;return-u.errno}}function ei(n,r){try{return n=P.getStr(n),P.doStat(o.stat,n,r)}catch(i){if(typeof o>"u"||i.name!=="ErrnoError")throw i;return-i.errno}}function ti(n,r){try{return n=P.getStr(n),r=P.getStr(r),o.symlink(n,r),0}catch(i){if(typeof o>"u"||i.name!=="ErrnoError")throw i;return-i.errno}}function ni(n,r,i){try{return r=P.getStr(r),r=P.calculateAt(n,r),i===0?o.unlink(r):i===512?o.rmdir(r):ve("Invalid flags passed to unlinkat"),0}catch(s){if(typeof o>"u"||s.name!=="ErrnoError")throw s;return-s.errno}}function Qn(n){if(n===null)return"null";var r=typeof n;return r==="object"||r==="array"||r==="function"?n.toString():""+n}function ri(){for(var n=new Array(256),r=0;r<256;++r)n[r]=String.fromCharCode(r);Jn=n}var Jn=void 0;function Ie(n){for(var r="",i=n;re[i];)r+=Jn[re[i++]];return r}var Vt={},Kn={},ai=48,ii=57;function si(n){if(n===void 0)return"_unknown";n=n.replace(/[^a-zA-Z0-9_]/g,"$");var r=n.charCodeAt(0);return r>=ai&&r<=ii?`_${n}`:n}function ui(n,r){return n=si(n),{[n]:function(){return r.apply(this,arguments)}}[n]}function Zn(n,r){var i=ui(r,function(s){this.name=r,this.message=s;var u=new Error(s).stack;u!==void 0&&(this.stack=this.toString()+`
|
|
4
|
-
`+u.replace(/^Error(:[^\n]*)?\n/,""))});return i.prototype=Object.create(n.prototype),i.prototype.constructor=i,i.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},i}var On=void 0;function Xe(n){throw new On(n)}function De(n,r,i={}){if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");var s=r.name;if(n||Xe(`type "${s}" must have a positive integer typeid pointer`),Kn.hasOwnProperty(n)){if(i.ignoreDuplicateRegistrations)return;Xe(`Cannot register type '${s}' twice`)}if(Kn[n]=r,Vt.hasOwnProperty(n)){var u=Vt[n];delete Vt[n],u.forEach(_=>_())}}function er(n,r,i){switch(r){case 0:return i?function(u){return Y[u]}:function(u){return re[u]};case 1:return i?function(u){return ee[u>>1]}:function(u){return et[u>>1]};case 2:return i?function(u){return S[u>>2]}:function(u){return T[u>>2]};case 3:return i?function(u){return ue[u>>3]}:function(u){return Tn[u>>3]};default:throw new TypeError("Unknown integer type: "+n)}}function oi(n,r,i,s,u){r=Ie(r);var _=It(i),g=r.indexOf("u")!=-1;g&&(u=(1n<<64n)-1n),De(n,{name:r,fromWireType:function(f){return f},toWireType:function(f,d){if(typeof d!="bigint"&&typeof d!="number")throw new TypeError(`Cannot convert "${Qn(d)}" to ${this.name}`);if(d<s||d>u)throw new TypeError(`Passing a number "${Qn(d)}" from JS side to C/C++ side to an argument of type "${r}", which is outside the valid range [${s}, ${u}]!`);return d},argPackAdvance:8,readValueFromPointer:er(r,_,!g),destructorFunction:null})}function It(n){switch(n){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError(`Unknown type size: ${n}`)}}function _i(n,r,i,s,u){var _=It(i);r=Ie(r),De(n,{name:r,fromWireType:function(g){return!!g},toWireType:function(g,f){return f?s:u},argPackAdvance:8,readValueFromPointer:function(g){var f;if(i===1)f=Y;else if(i===2)f=ee;else if(i===4)f=S;else throw new TypeError("Unknown boolean type size: "+r);return this.fromWireType(f[g>>_])},destructorFunction:null})}function li(){this.allocated=[void 0],this.freelist=[],this.get=function(n){return this.allocated[n]},this.has=function(n){return this.allocated[n]!==void 0},this.allocate=function(n){var r=this.freelist.pop()||this.allocated.length;return this.allocated[r]=n,r},this.free=function(n){this.allocated[n]=void 0,this.freelist.push(n)}}var ce=new li;function ci(n){n>=ce.reserved&&--ce.get(n).refcount===0&&ce.free(n)}function gi(){for(var n=0,r=ce.reserved;r<ce.allocated.length;++r)ce.allocated[r]!==void 0&&++n;return n}function mi(){ce.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),ce.reserved=ce.allocated.length,e.count_emval_handles=gi}var tr={toValue:n=>(n||Xe("Cannot use deleted val. handle = "+n),ce.get(n).value),toHandle:n=>{switch(n){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return ce.allocate({refcount:1,value:n})}}};function $t(n){return this.fromWireType(S[n>>2])}function fi(n,r){r=Ie(r),De(n,{name:r,fromWireType:function(i){var s=tr.toValue(i);return ci(i),s},toWireType:function(i,s){return tr.toHandle(s)},argPackAdvance:8,readValueFromPointer:$t,destructorFunction:null})}function pi(n,r){switch(r){case 2:return function(i){return this.fromWireType(ht[i>>2])};case 3:return function(i){return this.fromWireType(yt[i>>3])};default:throw new TypeError("Unknown float type: "+n)}}function di(n,r,i){var s=It(i);r=Ie(r),De(n,{name:r,fromWireType:function(u){return u},toWireType:function(u,_){return _},argPackAdvance:8,readValueFromPointer:pi(r,s),destructorFunction:null})}function hi(n,r,i,s,u){r=Ie(r);var _=It(i),g=G=>G;if(s===0){var f=32-8*i;g=G=>G<<f>>>f}var d=r.includes("unsigned"),w=(G,D)=>{},M;d?M=function(G,D){return w(D,this.name),D>>>0}:M=function(G,D){return w(D,this.name),D},De(n,{name:r,fromWireType:g,toWireType:M,argPackAdvance:8,readValueFromPointer:er(r,_,s!==0),destructorFunction:null})}function yi(n,r,i){var s=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,BigInt64Array,BigUint64Array],u=s[r];function _(g){g=g>>2;var f=T,d=f[g],w=f[g+1];return new u(f.buffer,w,d)}i=Ie(i),De(n,{name:i,fromWireType:_,argPackAdvance:8,readValueFromPointer:_},{ignoreDuplicateRegistrations:!0})}function wi(n,r){r=Ie(r);var i=r==="std::string";De(n,{name:r,fromWireType:function(s){var u=T[s>>2],_=s+4,g;if(i)for(var f=_,d=0;d<=u;++d){var w=_+d;if(d==u||re[w]==0){var M=w-f,G=Ae(f,M);g===void 0?g=G:(g+="\0",g+=G),f=w+1}}else{for(var D=new Array(u),d=0;d<u;++d)D[d]=String.fromCharCode(re[_+d]);g=D.join("")}return Re(s),g},toWireType:function(s,u){u instanceof ArrayBuffer&&(u=new Uint8Array(u));var _,g=typeof u=="string";g||u instanceof Uint8Array||u instanceof Uint8ClampedArray||u instanceof Int8Array||Xe("Cannot pass non-string to std::string"),i&&g?_=Ne(u):_=u.length;var f=Ve(4+_+1),d=f+4;if(T[f>>2]=_,i&&g)je(u,d,_+1);else if(g)for(var w=0;w<_;++w){var M=u.charCodeAt(w);M>255&&(Re(d),Xe("String has UTF-16 code units that do not fit in 8 bits")),re[d+w]=M}else for(var w=0;w<_;++w)re[d+w]=u[w];return s!==null&&s.push(Re,f),f},argPackAdvance:8,readValueFromPointer:$t,destructorFunction:function(s){Re(s)}})}var nr=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,ki=(n,r)=>{for(var i=n,s=i>>1,u=s+r/2;!(s>=u)&&et[s];)++s;if(i=s<<1,i-n>32&&nr)return nr.decode(re.subarray(n,i));for(var _="",g=0;!(g>=r/2);++g){var f=ee[n+g*2>>1];if(f==0)break;_+=String.fromCharCode(f)}return _},Si=(n,r,i)=>{if(i===void 0&&(i=2147483647),i<2)return 0;i-=2;for(var s=r,u=i<n.length*2?i/2:n.length,_=0;_<u;++_){var g=n.charCodeAt(_);ee[r>>1]=g,r+=2}return ee[r>>1]=0,r-s},vi=n=>n.length*2,Mi=(n,r)=>{for(var i=0,s="";!(i>=r/4);){var u=S[n+i*4>>2];if(u==0)break;if(++i,u>=65536){var _=u-65536;s+=String.fromCharCode(55296|_>>10,56320|_&1023)}else s+=String.fromCharCode(u)}return s},Ii=(n,r,i)=>{if(i===void 0&&(i=2147483647),i<4)return 0;for(var s=r,u=s+i-4,_=0;_<n.length;++_){var g=n.charCodeAt(_);if(g>=55296&&g<=57343){var f=n.charCodeAt(++_);g=65536+((g&1023)<<10)|f&1023}if(S[r>>2]=g,r+=4,r+4>u)break}return S[r>>2]=0,r-s},Di=n=>{for(var r=0,i=0;i<n.length;++i){var s=n.charCodeAt(i);s>=55296&&s<=57343&&++i,r+=4}return r},Gi=function(n,r,i){i=Ie(i);var s,u,_,g,f;r===2?(s=ki,u=Si,g=vi,_=()=>et,f=1):r===4&&(s=Mi,u=Ii,g=Di,_=()=>T,f=2),De(n,{name:i,fromWireType:function(d){for(var w=T[d>>2],M=_(),G,D=d+4,b=0;b<=w;++b){var L=d+4+b*r;if(b==w||M[L>>f]==0){var Q=L-D,K=s(D,Q);G===void 0?G=K:(G+="\0",G+=K),D=L+r}}return Re(d),G},toWireType:function(d,w){typeof w!="string"&&Xe(`Cannot pass non-string to C++ string type ${i}`);var M=g(w),G=Ve(4+M+r);return T[G>>2]=M>>f,u(w,G+4,M+r),d!==null&&d.push(Re,G),G},argPackAdvance:8,readValueFromPointer:$t,destructorFunction:function(d){Re(d)}})};function bi(n,r){r=Ie(r),De(n,{isVoid:!0,name:r,argPackAdvance:0,fromWireType:function(){},toWireType:function(i,s){}})}var Ei=n=>{do{var r=T[n>>2];n+=4;var i=T[n>>2];n+=4;var s=T[n>>2];n+=4;var u=Ae(r);o.createPath("/",x.dirname(u),!0,!0),o.createDataFile(u,null,Y.subarray(s,s+i),!0,!0,!0)}while(T[n>>2])},Ai=!0,Ri=()=>Ai,Pi=()=>{throw 1/0};function rr(n){return T[n>>2]+S[n+4>>2]*4294967296}var Ci=(n,r)=>{var i=new Date(rr(n)*1e3);S[r>>2]=i.getUTCSeconds(),S[r+4>>2]=i.getUTCMinutes(),S[r+8>>2]=i.getUTCHours(),S[r+12>>2]=i.getUTCDate(),S[r+16>>2]=i.getUTCMonth(),S[r+20>>2]=i.getUTCFullYear()-1900,S[r+24>>2]=i.getUTCDay();var s=Date.UTC(i.getUTCFullYear(),0,1,0,0,0,0),u=(i.getTime()-s)/(1e3*60*60*24)|0;S[r+28>>2]=u},at=n=>n%4===0&&(n%100!==0||n%400===0),Ti=[0,31,60,91,121,152,182,213,244,274,305,335],Wi=[0,31,59,90,120,151,181,212,243,273,304,334],ar=n=>{var r=at(n.getFullYear()),i=r?Ti:Wi,s=i[n.getMonth()]+n.getDate()-1;return s},Bi=(n,r)=>{var i=new Date(rr(n)*1e3);S[r>>2]=i.getSeconds(),S[r+4>>2]=i.getMinutes(),S[r+8>>2]=i.getHours(),S[r+12>>2]=i.getDate(),S[r+16>>2]=i.getMonth(),S[r+20>>2]=i.getFullYear()-1900,S[r+24>>2]=i.getDay();var s=ar(i)|0;S[r+28>>2]=s,S[r+36>>2]=-(i.getTimezoneOffset()*60);var u=new Date(i.getFullYear(),0,1),_=new Date(i.getFullYear(),6,1).getTimezoneOffset(),g=u.getTimezoneOffset(),f=(_!=g&&i.getTimezoneOffset()==Math.min(g,_))|0;S[r+32>>2]=f},Li=n=>{var r=new Date(S[n+20>>2]+1900,S[n+16>>2],S[n+12>>2],S[n+8>>2],S[n+4>>2],S[n>>2],0),i=S[n+32>>2],s=r.getTimezoneOffset(),u=new Date(r.getFullYear(),0,1),_=new Date(r.getFullYear(),6,1).getTimezoneOffset(),g=u.getTimezoneOffset(),f=Math.min(g,_);if(i<0)S[n+32>>2]=+(_!=g&&f==s);else if(i>0!=(f==s)){var d=Math.max(g,_),w=i>0?f:d;r.setTime(r.getTime()+(w-s)*6e4)}S[n+24>>2]=r.getDay();var M=ar(r)|0;return S[n+28>>2]=M,S[n>>2]=r.getSeconds(),S[n+4>>2]=r.getMinutes(),S[n+8>>2]=r.getHours(),S[n+12>>2]=r.getDate(),S[n+16>>2]=r.getMonth(),S[n+20>>2]=r.getYear(),r.getTime()/1e3|0};function Ni(n,r,i,s,u,_,g){try{if(u=Ue(u),isNaN(u))return-61;var f=P.getStreamFromFD(s),d=o.mmap(f,n,u,r,i),w=d.ptr;return S[_>>2]=d.allocated,T[g>>2]=w,0}catch(M){if(typeof o>"u"||M.name!=="ErrnoError")throw M;return-M.errno}}function zi(n,r,i,s,u,_){try{if(_=Ue(_),isNaN(_))return-61;var g=P.getStreamFromFD(u);i&2&&P.doMsync(n,g,r,s,_),o.munmap(g)}catch(f){if(typeof o>"u"||f.name!=="ErrnoError")throw f;return-f.errno}}var ir=n=>{var r=Ne(n)+1,i=Ve(r);return i&&je(n,i,r),i},Ui=(n,r,i)=>{var s=new Date().getFullYear(),u=new Date(s,0,1),_=new Date(s,6,1),g=u.getTimezoneOffset(),f=_.getTimezoneOffset(),d=Math.max(g,f);T[n>>2]=d*60,S[r>>2]=+(g!=f);function w(L){var Q=L.toTimeString().match(/\(([A-Za-z ]+)\)$/);return Q?Q[1]:"GMT"}var M=w(u),G=w(_),D=ir(M),b=ir(G);f<g?(T[i>>2]=D,T[i+4>>2]=b):(T[i>>2]=b,T[i+4>>2]=D)},Fi=()=>{ve("")};function Hi(){return Date.now()}var sr=()=>2147483648,xi=()=>sr(),ur;ur=()=>performance.now();var Yi=(n,r,i)=>re.copyWithin(n,r,r+i),ji=n=>{var r=pt.buffer,i=n-r.byteLength+65535>>>16;try{return pt.grow(i),Wn(),1}catch{}},Xi=n=>{var r=re.length;n=n>>>0;var i=sr();if(n>i)return!1;for(var s=(d,w)=>d+(w-d%w)%w,u=1;u<=4;u*=2){var _=r*(1+.2/u);_=Math.min(_,n+100663296);var g=Math.min(i,s(Math.max(n,_),65536)),f=ji(g);if(f)return!0}return!1},Qt={},qi=()=>h||"./this.program",it=()=>{if(!it.strings){var n=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:n,_:qi()};for(var i in Qt)Qt[i]===void 0?delete r[i]:r[i]=Qt[i];var s=[];for(var i in r)s.push(`${i}=${r[i]}`);it.strings=s}return it.strings},Vi=(n,r)=>{for(var i=0;i<n.length;++i)Y[r++>>0]=n.charCodeAt(i);Y[r>>0]=0},$i=(n,r)=>{var i=0;return it().forEach(function(s,u){var _=r+i;T[n+u*4>>2]=_,Vi(s,_),i+=s.length+1}),0},Qi=(n,r)=>{var i=it();T[n>>2]=i.length;var s=0;return i.forEach(function(u){s+=u.length+1}),T[r>>2]=s,0},or=n=>{aa()||(e.onExit&&e.onExit(n),Ut=!0),k(n,new pa(n))},Ji=(n,r)=>{or(n)},Ki=Ji;function Zi(n){try{var r=P.getStreamFromFD(n);return o.close(r),0}catch(i){if(typeof o>"u"||i.name!=="ErrnoError")throw i;return i.errno}}function Oi(n,r){try{var i=0,s=0,u=0,_=P.getStreamFromFD(n),g=_.tty?2:o.isDir(_.mode)?3:o.isLink(_.mode)?7:4;return Y[r>>0]=g,ee[r+2>>1]=u,ue[r+8>>3]=BigInt(i),ue[r+16>>3]=BigInt(s),0}catch(f){if(typeof o>"u"||f.name!=="ErrnoError")throw f;return f.errno}}var _r=(n,r,i,s)=>{for(var u=0,_=0;_<i;_++){var g=T[r>>2],f=T[r+4>>2];r+=8;var d=o.read(n,Y,g,f,s);if(d<0)return-1;if(u+=d,d<f)break;typeof s<"u"&&(s+=d)}return u};function es(n,r,i,s,u){try{if(s=Ue(s),isNaN(s))return 61;var _=P.getStreamFromFD(n),g=_r(_,r,i,s);return T[u>>2]=g,0}catch(f){if(typeof o>"u"||f.name!=="ErrnoError")throw f;return f.errno}}var lr=(n,r,i,s)=>{for(var u=0,_=0;_<i;_++){var g=T[r>>2],f=T[r+4>>2];r+=8;var d=o.write(n,Y,g,f,s);if(d<0)return-1;u+=d,typeof s<"u"&&(s+=d)}return u};function ts(n,r,i,s,u){try{if(s=Ue(s),isNaN(s))return 61;var _=P.getStreamFromFD(n),g=lr(_,r,i,s);return T[u>>2]=g,0}catch(f){if(typeof o>"u"||f.name!=="ErrnoError")throw f;return f.errno}}function ns(n,r,i,s){try{var u=P.getStreamFromFD(n),_=_r(u,r,i);return T[s>>2]=_,0}catch(g){if(typeof o>"u"||g.name!=="ErrnoError")throw g;return g.errno}}function rs(n,r,i,s){try{if(r=Ue(r),isNaN(r))return 61;var u=P.getStreamFromFD(n);return o.llseek(u,r,i),ue[s>>3]=BigInt(u.position),u.getdents&&r===0&&i===0&&(u.getdents=null),0}catch(_){if(typeof o>"u"||_.name!=="ErrnoError")throw _;return _.errno}}function as(n){try{var r=P.getStreamFromFD(n);return r.stream_ops&&r.stream_ops.fsync?r.stream_ops.fsync(r):0}catch(i){if(typeof o>"u"||i.name!=="ErrnoError")throw i;return i.errno}}function is(n,r,i,s){try{var u=P.getStreamFromFD(n),_=lr(u,r,i);return T[s>>2]=_,0}catch(g){if(typeof o>"u"||g.name!=="ErrnoError")throw g;return g.errno}}var ss=(n,r,i,s)=>{var u=0,_=0,g=0,f=0,d=0,w=0,M;function G(D,b,L,Q,K,ae){var v,R,j,X;return R=D===10?28:16,K=D===10?qn(K):Xt(K),v=Ve(R),X=$n(v,D,K,ae),dt(!X),j=Ve(32),S[j+4>>2]=D,S[j+8>>2]=b,S[j+12>>2]=L,T[j+24>>2]=Q,T[j+20>>2]=v,D===10?S[j+16>>2]=28:S[j+16>>2]=16,S[j+28>>2]=0,j}if(i&&(g=S[i>>2],f=S[i+4>>2],d=S[i+8>>2],w=S[i+12>>2]),d&&!w&&(w=d===2?17:6),!d&&w&&(d=w===17?2:1),w===0&&(w=6),d===0&&(d=1),!n&&!r)return-2;if(g&-1088||i!==0&&S[i>>2]&2&&!n)return-1;if(g&32)return-2;if(d!==0&&d!==1&&d!==2)return-7;if(f!==0&&f!==2&&f!==10)return-6;if(r&&(r=Ae(r),_=parseInt(r,10),isNaN(_)))return g&1024?-2:-8;if(!n)return f===0&&(f=2),g&1||(f===2?u=Et(2130706433):u=[0,0,0,1]),M=G(f,d,w,null,u,_),T[s>>2]=M,0;if(n=Ae(n),u=vt(n),u!==null)if(f===0||f===2)f=2;else if(f===10&&g&8)u=[0,0,Et(65535),u],f=10;else return-2;else if(u=qt(n),u!==null)if(f===0||f===10)f=10;else return-2;return u!=null?(M=G(f,d,w,n,u,_),T[s>>2]=M,0):g&4?-2:(n=pe.lookup_name(n),u=vt(n),f===0?f=2:f===10&&(u=[0,0,Et(65535),u]),M=G(f,d,w,null,u,_),T[s>>2]=M,0)},us=(n,r)=>(Ht(re.subarray(n,n+r)),0),os=(n,r)=>{for(var i=0,s=0;s<=r;i+=n[s++]);return i},cr=[31,29,31,30,31,30,31,31,30,31,30,31],gr=[31,28,31,30,31,30,31,31,30,31,30,31],_s=(n,r)=>{for(var i=new Date(n.getTime());r>0;){var s=at(i.getFullYear()),u=i.getMonth(),_=(s?cr:gr)[u];if(r>_-i.getDate())r-=_-i.getDate()+1,i.setDate(1),u<11?i.setMonth(u+1):(i.setMonth(0),i.setFullYear(i.getFullYear()+1));else return i.setDate(i.getDate()+r),i}return i},ls=(n,r)=>{Y.set(n,r)},mr=(n,r,i,s)=>{var u=S[s+40>>2],_={tm_sec:S[s>>2],tm_min:S[s+4>>2],tm_hour:S[s+8>>2],tm_mday:S[s+12>>2],tm_mon:S[s+16>>2],tm_year:S[s+20>>2],tm_wday:S[s+24>>2],tm_yday:S[s+28>>2],tm_isdst:S[s+32>>2],tm_gmtoff:S[s+36>>2],tm_zone:u?Ae(u):""},g=Ae(i),f={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var d in f)g=g.replace(new RegExp(d,"g"),f[d]);var w=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],M=["January","February","March","April","May","June","July","August","September","October","November","December"];function G(v,R,j){for(var X=typeof v=="number"?v.toString():v||"";X.length<R;)X=j[0]+X;return X}function D(v,R){return G(v,R,"0")}function b(v,R){function j(ge){return ge<0?-1:ge>0?1:0}var X;return(X=j(v.getFullYear()-R.getFullYear()))===0&&(X=j(v.getMonth()-R.getMonth()))===0&&(X=j(v.getDate()-R.getDate())),X}function L(v){switch(v.getDay()){case 0:return new Date(v.getFullYear()-1,11,29);case 1:return v;case 2:return new Date(v.getFullYear(),0,3);case 3:return new Date(v.getFullYear(),0,2);case 4:return new Date(v.getFullYear(),0,1);case 5:return new Date(v.getFullYear()-1,11,31);case 6:return new Date(v.getFullYear()-1,11,30)}}function Q(v){var R=_s(new Date(v.tm_year+1900,0,1),v.tm_yday),j=new Date(R.getFullYear(),0,4),X=new Date(R.getFullYear()+1,0,4),ge=L(j),te=L(X);return b(ge,R)<=0?b(te,R)<=0?R.getFullYear()+1:R.getFullYear():R.getFullYear()-1}var K={"%a":v=>w[v.tm_wday].substring(0,3),"%A":v=>w[v.tm_wday],"%b":v=>M[v.tm_mon].substring(0,3),"%B":v=>M[v.tm_mon],"%C":v=>{var R=v.tm_year+1900;return D(R/100|0,2)},"%d":v=>D(v.tm_mday,2),"%e":v=>G(v.tm_mday,2," "),"%g":v=>Q(v).toString().substring(2),"%G":v=>Q(v),"%H":v=>D(v.tm_hour,2),"%I":v=>{var R=v.tm_hour;return R==0?R=12:R>12&&(R-=12),D(R,2)},"%j":v=>D(v.tm_mday+os(at(v.tm_year+1900)?cr:gr,v.tm_mon-1),3),"%m":v=>D(v.tm_mon+1,2),"%M":v=>D(v.tm_min,2),"%n":()=>`
|
|
5
|
-
`,"%p":v=>v.tm_hour>=0&&v.tm_hour<12?"AM":"PM","%S":v=>D(v.tm_sec,2),"%t":()=>" ","%u":v=>v.tm_wday||7,"%U":v=>{var R=v.tm_yday+7-v.tm_wday;return D(Math.floor(R/7),2)},"%V":v=>{var R=Math.floor((v.tm_yday+7-(v.tm_wday+6)%7)/7);if((v.tm_wday+371-v.tm_yday-2)%7<=2&&R++,R){if(R==53){var X=(v.tm_wday+371-v.tm_yday)%7;X!=4&&(X!=3||!at(v.tm_year))&&(R=1)}}else{R=52;var j=(v.tm_wday+7-v.tm_yday-1)%7;(j==4||j==5&&at(v.tm_year%400-1))&&R++}return D(R,2)},"%w":v=>v.tm_wday,"%W":v=>{var R=v.tm_yday+7-(v.tm_wday+6)%7;return D(Math.floor(R/7),2)},"%y":v=>(v.tm_year+1900).toString().substring(2),"%Y":v=>v.tm_year+1900,"%z":v=>{var R=v.tm_gmtoff,j=R>=0;return R=Math.abs(R)/60,R=R/60*100+R%60,(j?"+":"-")+("0000"+R).slice(-4)},"%Z":v=>v.tm_zone,"%%":()=>"%"};g=g.replace(/%%/g,"\0\0");for(var d in K)g.includes(d)&&(g=g.replace(new RegExp(d,"g"),K[d](_)));g=g.replace(/\0\0/g,"%");var ae=kt(g,!1);return ae.length>r?0:(ls(ae,n),ae.length-1)},cs=(n,r,i,s,u)=>mr(n,r,i,s),gs=n=>n?(Xn(52),-1):0;function fr(n,r){n<128?r.push(n):r.push(n%128|128,n>>7)}function ms(n){for(var r={i:"i32",j:"i64",f:"f32",d:"f64",p:"i32"},i={parameters:[],results:n[0]=="v"?[]:[r[n[0]]]},s=1;s<n.length;++s)i.parameters.push(r[n[s]]);return i}function fs(n,r){var i=n.slice(0,1),s=n.slice(1),u={i:127,p:127,j:126,f:125,d:124};r.push(96),fr(s.length,r);for(var _=0;_<s.length;++_)r.push(u[s[_]]);i=="v"?r.push(0):r.push(1,u[i])}function ps(n,r){if(typeof WebAssembly.Function=="function")return new WebAssembly.Function(ms(r),n);var i=[1];fs(r,i);var s=[0,97,115,109,1,0,0,0,1];fr(i.length,s),s.push.apply(s,i),s.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var u=new WebAssembly.Module(new Uint8Array(s)),_=new WebAssembly.Instance(u,{e:{f:n}}),g=_.exports.f;return g}function ds(n,r){if(qe)for(var i=n;i<n+r;i++){var s=z(i);s&&qe.set(s,i)}}var qe=void 0;function hs(n){return qe||(qe=new WeakMap,ds(0,Be.length)),qe.get(n)||0}var pr=[];function ys(){if(pr.length)return pr.pop();try{Be.grow(1)}catch(n){throw n instanceof RangeError?"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.":n}return Be.length-1}var dr=(n,r)=>{Be.set(n,r),rt[n]=Be.get(n)};function ws(n,r){var i=hs(n);if(i)return i;var s=ys();try{dr(s,n)}catch(_){if(!(_ instanceof TypeError))throw _;var u=ps(n,r);dr(s,u)}return qe.set(n,s),s}var hr=function(n,r,i,s){n||(n=this),this.parent=n,this.mount=n.mount,this.mounted=null,this.id=o.nextInode++,this.name=r,this.mode=i,this.node_ops={},this.stream_ops={},this.rdev=s},Dt=365,Gt=146;Object.defineProperties(hr.prototype,{read:{get:function(){return(this.mode&Dt)===Dt},set:function(n){n?this.mode|=Dt:this.mode&=~Dt}},write:{get:function(){return(this.mode&Gt)===Gt},set:function(n){n?this.mode|=Gt:this.mode&=~Gt}},isFolder:{get:function(){return o.isDir(this.mode)}},isDevice:{get:function(){return o.isChrdev(this.mode)}}}),o.FSNode=hr,o.createPreloadedFile=Ea,o.staticInit(),e.FS_createPath=o.createPath,e.FS_createDataFile=o.createDataFile,e.FS_createPreloadedFile=o.createPreloadedFile,e.FS_unlink=o.unlink,e.FS_createLazyFile=o.createLazyFile,e.FS_createDevice=o.createDevice,ri(),On=e.BindingError=Zn(Error,"BindingError"),e.InternalError=Zn(Error,"InternalError"),mi();var ks={fa:ya,y:Sa,a:va,x:wa,za:Ra,X:Ca,ya:Ta,Aa:Wa,ia:Na,va:za,q:Ua,H:Fa,qa:Ha,ea:xa,W:Ya,Ca:ja,sa:Xa,ta:qa,z:Va,ja:$a,da:Qa,V:Ja,ca:Ka,U:Za,T:Oa,ua:ei,ba:ti,F:ni,L:oi,Ga:_i,Fa:fi,K:di,r:hi,m:yi,J:wi,B:Gi,Ha:bi,Ia:Ei,wa:Ri,Z:Pi,ma:Ci,na:Bi,oa:Li,ka:Ni,la:zi,$:Ui,c:Fi,u:Hi,aa:xi,w:ur,xa:Yi,_:Xi,Da:$i,Ea:Qi,t:Ki,s:Zi,G:Oi,ha:es,ga:ts,I:ns,pa:rs,ra:as,A:is,Ma:ss,Sa:us,Oa:zs,D:Cs,d:Is,e:Ms,g:vs,f:Es,S:Ns,b:Ts,R:Hs,l:Ps,Q:xs,La:$s,Ka:Qs,n:Ws,Qa:Bs,p:Rs,Ra:As,C:Us,k:Ds,j:Gs,P:Ys,O:js,h:Ss,i:bs,o:Fs,Na:qs,M:Vs,Ja:Js,N:Xs,Pa:Ls,Ba:or,E:mr,Y:cs,v:gs};fa(),e._MagickColor_Create=function(){return(e._MagickColor_Create=e.asm.Va).apply(null,arguments)},e._MagickColor_Dispose=function(){return(e._MagickColor_Dispose=e.asm.Wa).apply(null,arguments)},e._MagickColor_Count_Get=function(){return(e._MagickColor_Count_Get=e.asm.Xa).apply(null,arguments)},e._MagickColor_Red_Get=function(){return(e._MagickColor_Red_Get=e.asm.Ya).apply(null,arguments)},e._MagickColor_Red_Set=function(){return(e._MagickColor_Red_Set=e.asm.Za).apply(null,arguments)},e._MagickColor_Green_Get=function(){return(e._MagickColor_Green_Get=e.asm._a).apply(null,arguments)},e._MagickColor_Green_Set=function(){return(e._MagickColor_Green_Set=e.asm.$a).apply(null,arguments)},e._MagickColor_Blue_Get=function(){return(e._MagickColor_Blue_Get=e.asm.ab).apply(null,arguments)},e._MagickColor_Blue_Set=function(){return(e._MagickColor_Blue_Set=e.asm.bb).apply(null,arguments)},e._MagickColor_Alpha_Get=function(){return(e._MagickColor_Alpha_Get=e.asm.cb).apply(null,arguments)},e._MagickColor_Alpha_Set=function(){return(e._MagickColor_Alpha_Set=e.asm.db).apply(null,arguments)},e._MagickColor_Black_Get=function(){return(e._MagickColor_Black_Get=e.asm.eb).apply(null,arguments)},e._MagickColor_Black_Set=function(){return(e._MagickColor_Black_Set=e.asm.fb).apply(null,arguments)},e._MagickColor_IsCMYK_Get=function(){return(e._MagickColor_IsCMYK_Get=e.asm.gb).apply(null,arguments)},e._MagickColor_IsCMYK_Set=function(){return(e._MagickColor_IsCMYK_Set=e.asm.hb).apply(null,arguments)},e._MagickColor_Clone=function(){return(e._MagickColor_Clone=e.asm.ib).apply(null,arguments)},e._MagickColor_FuzzyEquals=function(){return(e._MagickColor_FuzzyEquals=e.asm.jb).apply(null,arguments)},e._MagickColor_Initialize=function(){return(e._MagickColor_Initialize=e.asm.kb).apply(null,arguments)},e._MagickColorCollection_DisposeList=function(){return(e._MagickColorCollection_DisposeList=e.asm.mb).apply(null,arguments)},e._MagickColorCollection_GetInstance=function(){return(e._MagickColorCollection_GetInstance=e.asm.nb).apply(null,arguments)},e._DrawingWand_Create=function(){return(e._DrawingWand_Create=e.asm.ob).apply(null,arguments)},e._DrawingWand_Dispose=function(){return(e._DrawingWand_Dispose=e.asm.pb).apply(null,arguments)},e._DrawingWand_Affine=function(){return(e._DrawingWand_Affine=e.asm.qb).apply(null,arguments)},e._DrawingWand_Alpha=function(){return(e._DrawingWand_Alpha=e.asm.rb).apply(null,arguments)},e._DrawingWand_Arc=function(){return(e._DrawingWand_Arc=e.asm.sb).apply(null,arguments)},e._DrawingWand_Bezier=function(){return(e._DrawingWand_Bezier=e.asm.tb).apply(null,arguments)},e._DrawingWand_BorderColor=function(){return(e._DrawingWand_BorderColor=e.asm.ub).apply(null,arguments)},e._DrawingWand_Circle=function(){return(e._DrawingWand_Circle=e.asm.vb).apply(null,arguments)},e._DrawingWand_ClipPath=function(){return(e._DrawingWand_ClipPath=e.asm.wb).apply(null,arguments)},e._DrawingWand_ClipRule=function(){return(e._DrawingWand_ClipRule=e.asm.xb).apply(null,arguments)},e._DrawingWand_ClipUnits=function(){return(e._DrawingWand_ClipUnits=e.asm.yb).apply(null,arguments)},e._DrawingWand_Color=function(){return(e._DrawingWand_Color=e.asm.zb).apply(null,arguments)},e._DrawingWand_Composite=function(){return(e._DrawingWand_Composite=e.asm.Ab).apply(null,arguments)},e._DrawingWand_Density=function(){return(e._DrawingWand_Density=e.asm.Bb).apply(null,arguments)},e._DrawingWand_Ellipse=function(){return(e._DrawingWand_Ellipse=e.asm.Cb).apply(null,arguments)},e._DrawingWand_FillColor=function(){return(e._DrawingWand_FillColor=e.asm.Db).apply(null,arguments)},e._DrawingWand_FillOpacity=function(){return(e._DrawingWand_FillOpacity=e.asm.Eb).apply(null,arguments)},e._DrawingWand_FillPatternUrl=function(){return(e._DrawingWand_FillPatternUrl=e.asm.Fb).apply(null,arguments)},e._DrawingWand_FillRule=function(){return(e._DrawingWand_FillRule=e.asm.Gb).apply(null,arguments)},e._DrawingWand_Font=function(){return(e._DrawingWand_Font=e.asm.Hb).apply(null,arguments)},e._DrawingWand_FontFamily=function(){return(e._DrawingWand_FontFamily=e.asm.Ib).apply(null,arguments)},e._DrawingWand_FontPointSize=function(){return(e._DrawingWand_FontPointSize=e.asm.Jb).apply(null,arguments)},e._DrawingWand_FontTypeMetrics=function(){return(e._DrawingWand_FontTypeMetrics=e.asm.Kb).apply(null,arguments)},e._TypeMetric_Create=function(){return(e._TypeMetric_Create=e.asm.Lb).apply(null,arguments)},e._DrawingWand_Gravity=function(){return(e._DrawingWand_Gravity=e.asm.Mb).apply(null,arguments)},e._DrawingWand_Line=function(){return(e._DrawingWand_Line=e.asm.Nb).apply(null,arguments)},e._DrawingWand_PathArcAbs=function(){return(e._DrawingWand_PathArcAbs=e.asm.Ob).apply(null,arguments)},e._DrawingWand_PathArcRel=function(){return(e._DrawingWand_PathArcRel=e.asm.Pb).apply(null,arguments)},e._DrawingWand_PathClose=function(){return(e._DrawingWand_PathClose=e.asm.Qb).apply(null,arguments)},e._DrawingWand_PathCurveToAbs=function(){return(e._DrawingWand_PathCurveToAbs=e.asm.Rb).apply(null,arguments)},e._DrawingWand_PathCurveToRel=function(){return(e._DrawingWand_PathCurveToRel=e.asm.Sb).apply(null,arguments)},e._DrawingWand_PathFinish=function(){return(e._DrawingWand_PathFinish=e.asm.Tb).apply(null,arguments)},e._DrawingWand_PathLineToAbs=function(){return(e._DrawingWand_PathLineToAbs=e.asm.Ub).apply(null,arguments)},e._DrawingWand_PathLineToHorizontalAbs=function(){return(e._DrawingWand_PathLineToHorizontalAbs=e.asm.Vb).apply(null,arguments)},e._DrawingWand_PathLineToHorizontalRel=function(){return(e._DrawingWand_PathLineToHorizontalRel=e.asm.Wb).apply(null,arguments)},e._DrawingWand_PathLineToRel=function(){return(e._DrawingWand_PathLineToRel=e.asm.Xb).apply(null,arguments)},e._DrawingWand_PathLineToVerticalAbs=function(){return(e._DrawingWand_PathLineToVerticalAbs=e.asm.Yb).apply(null,arguments)},e._DrawingWand_PathLineToVerticalRel=function(){return(e._DrawingWand_PathLineToVerticalRel=e.asm.Zb).apply(null,arguments)},e._DrawingWand_PathMoveToAbs=function(){return(e._DrawingWand_PathMoveToAbs=e.asm._b).apply(null,arguments)},e._DrawingWand_PathMoveToRel=function(){return(e._DrawingWand_PathMoveToRel=e.asm.$b).apply(null,arguments)},e._DrawingWand_PathQuadraticCurveToAbs=function(){return(e._DrawingWand_PathQuadraticCurveToAbs=e.asm.ac).apply(null,arguments)},e._DrawingWand_PathQuadraticCurveToRel=function(){return(e._DrawingWand_PathQuadraticCurveToRel=e.asm.bc).apply(null,arguments)},e._DrawingWand_PathSmoothCurveToAbs=function(){return(e._DrawingWand_PathSmoothCurveToAbs=e.asm.cc).apply(null,arguments)},e._DrawingWand_PathSmoothCurveToRel=function(){return(e._DrawingWand_PathSmoothCurveToRel=e.asm.dc).apply(null,arguments)},e._DrawingWand_PathSmoothQuadraticCurveToAbs=function(){return(e._DrawingWand_PathSmoothQuadraticCurveToAbs=e.asm.ec).apply(null,arguments)},e._DrawingWand_PathSmoothQuadraticCurveToRel=function(){return(e._DrawingWand_PathSmoothQuadraticCurveToRel=e.asm.fc).apply(null,arguments)},e._DrawingWand_PathStart=function(){return(e._DrawingWand_PathStart=e.asm.gc).apply(null,arguments)},e._DrawingWand_Point=function(){return(e._DrawingWand_Point=e.asm.hc).apply(null,arguments)},e._DrawingWand_Polygon=function(){return(e._DrawingWand_Polygon=e.asm.ic).apply(null,arguments)},e._DrawingWand_Polyline=function(){return(e._DrawingWand_Polyline=e.asm.jc).apply(null,arguments)},e._DrawingWand_PopClipPath=function(){return(e._DrawingWand_PopClipPath=e.asm.kc).apply(null,arguments)},e._DrawingWand_PopGraphicContext=function(){return(e._DrawingWand_PopGraphicContext=e.asm.lc).apply(null,arguments)},e._DrawingWand_PopPattern=function(){return(e._DrawingWand_PopPattern=e.asm.mc).apply(null,arguments)},e._DrawingWand_PushClipPath=function(){return(e._DrawingWand_PushClipPath=e.asm.nc).apply(null,arguments)},e._DrawingWand_PushGraphicContext=function(){return(e._DrawingWand_PushGraphicContext=e.asm.oc).apply(null,arguments)},e._DrawingWand_PushPattern=function(){return(e._DrawingWand_PushPattern=e.asm.pc).apply(null,arguments)},e._DrawingWand_Rectangle=function(){return(e._DrawingWand_Rectangle=e.asm.qc).apply(null,arguments)},e._DrawingWand_Render=function(){return(e._DrawingWand_Render=e.asm.rc).apply(null,arguments)},e._DrawingWand_Rotation=function(){return(e._DrawingWand_Rotation=e.asm.sc).apply(null,arguments)},e._DrawingWand_RoundRectangle=function(){return(e._DrawingWand_RoundRectangle=e.asm.tc).apply(null,arguments)},e._DrawingWand_Scaling=function(){return(e._DrawingWand_Scaling=e.asm.uc).apply(null,arguments)},e._DrawingWand_SkewX=function(){return(e._DrawingWand_SkewX=e.asm.vc).apply(null,arguments)},e._DrawingWand_SkewY=function(){return(e._DrawingWand_SkewY=e.asm.wc).apply(null,arguments)},e._DrawingWand_StrokeAntialias=function(){return(e._DrawingWand_StrokeAntialias=e.asm.xc).apply(null,arguments)},e._DrawingWand_StrokeColor=function(){return(e._DrawingWand_StrokeColor=e.asm.yc).apply(null,arguments)},e._DrawingWand_StrokeDashArray=function(){return(e._DrawingWand_StrokeDashArray=e.asm.zc).apply(null,arguments)},e._DrawingWand_StrokeDashOffset=function(){return(e._DrawingWand_StrokeDashOffset=e.asm.Ac).apply(null,arguments)},e._DrawingWand_StrokeLineCap=function(){return(e._DrawingWand_StrokeLineCap=e.asm.Bc).apply(null,arguments)},e._DrawingWand_StrokeLineJoin=function(){return(e._DrawingWand_StrokeLineJoin=e.asm.Cc).apply(null,arguments)},e._DrawingWand_StrokeMiterLimit=function(){return(e._DrawingWand_StrokeMiterLimit=e.asm.Dc).apply(null,arguments)},e._DrawingWand_StrokeOpacity=function(){return(e._DrawingWand_StrokeOpacity=e.asm.Ec).apply(null,arguments)},e._DrawingWand_StrokePatternUrl=function(){return(e._DrawingWand_StrokePatternUrl=e.asm.Fc).apply(null,arguments)},e._DrawingWand_StrokeWidth=function(){return(e._DrawingWand_StrokeWidth=e.asm.Gc).apply(null,arguments)},e._DrawingWand_Text=function(){return(e._DrawingWand_Text=e.asm.Hc).apply(null,arguments)},e._DrawingWand_TextAlignment=function(){return(e._DrawingWand_TextAlignment=e.asm.Ic).apply(null,arguments)},e._DrawingWand_TextAntialias=function(){return(e._DrawingWand_TextAntialias=e.asm.Jc).apply(null,arguments)},e._DrawingWand_TextDecoration=function(){return(e._DrawingWand_TextDecoration=e.asm.Kc).apply(null,arguments)},e._DrawingWand_TextDirection=function(){return(e._DrawingWand_TextDirection=e.asm.Lc).apply(null,arguments)},e._DrawingWand_TextEncoding=function(){return(e._DrawingWand_TextEncoding=e.asm.Mc).apply(null,arguments)},e._DrawingWand_TextInterlineSpacing=function(){return(e._DrawingWand_TextInterlineSpacing=e.asm.Nc).apply(null,arguments)},e._DrawingWand_TextInterwordSpacing=function(){return(e._DrawingWand_TextInterwordSpacing=e.asm.Oc).apply(null,arguments)},e._DrawingWand_TextKerning=function(){return(e._DrawingWand_TextKerning=e.asm.Pc).apply(null,arguments)},e._DrawingWand_TextUnderColor=function(){return(e._DrawingWand_TextUnderColor=e.asm.Qc).apply(null,arguments)},e._DrawingWand_Translation=function(){return(e._DrawingWand_Translation=e.asm.Rc).apply(null,arguments)},e._DrawingWand_Viewbox=function(){return(e._DrawingWand_Viewbox=e.asm.Sc).apply(null,arguments)},e._PointInfoCollection_Create=function(){return(e._PointInfoCollection_Create=e.asm.Tc).apply(null,arguments)},e._PointInfoCollection_Dispose=function(){return(e._PointInfoCollection_Dispose=e.asm.Uc).apply(null,arguments)},e._PointInfoCollection_GetX=function(){return(e._PointInfoCollection_GetX=e.asm.Vc).apply(null,arguments)},e._PointInfoCollection_GetY=function(){return(e._PointInfoCollection_GetY=e.asm.Wc).apply(null,arguments)},e._PointInfoCollection_Set=function(){return(e._PointInfoCollection_Set=e.asm.Xc).apply(null,arguments)},e._MagickExceptionHelper_Description=function(){return(e._MagickExceptionHelper_Description=e.asm.Yc).apply(null,arguments)},e._MagickExceptionHelper_Dispose=function(){return(e._MagickExceptionHelper_Dispose=e.asm.Zc).apply(null,arguments)},e._MagickExceptionHelper_Related=function(){return(e._MagickExceptionHelper_Related=e.asm._c).apply(null,arguments)},e._MagickExceptionHelper_RelatedCount=function(){return(e._MagickExceptionHelper_RelatedCount=e.asm.$c).apply(null,arguments)},e._MagickExceptionHelper_Message=function(){return(e._MagickExceptionHelper_Message=e.asm.ad).apply(null,arguments)},e._MagickExceptionHelper_Severity=function(){return(e._MagickExceptionHelper_Severity=e.asm.bd).apply(null,arguments)},e._PdfInfo_PageCount=function(){return(e._PdfInfo_PageCount=e.asm.cd).apply(null,arguments)},e._Environment_Initialize=function(){return(e._Environment_Initialize=e.asm.dd).apply(null,arguments)},e._Environment_GetEnv=function(){return(e._Environment_GetEnv=e.asm.ed).apply(null,arguments)},e._Environment_SetEnv=function(){return(e._Environment_SetEnv=e.asm.fd).apply(null,arguments)},e._MagickMemory_Relinquish=function(){return(e._MagickMemory_Relinquish=e.asm.gd).apply(null,arguments)},e._Magick_Delegates_Get=function(){return(e._Magick_Delegates_Get=e.asm.hd).apply(null,arguments)},e._Magick_Features_Get=function(){return(e._Magick_Features_Get=e.asm.id).apply(null,arguments)},e._Magick_ImageMagickVersion_Get=function(){return(e._Magick_ImageMagickVersion_Get=e.asm.jd).apply(null,arguments)},e._Magick_GetFonts=function(){return(e._Magick_GetFonts=e.asm.kd).apply(null,arguments)},e._Magick_GetFontFamily=function(){return(e._Magick_GetFontFamily=e.asm.ld).apply(null,arguments)},e._Magick_GetFontName=function(){return(e._Magick_GetFontName=e.asm.md).apply(null,arguments)},e._Magick_DisposeFonts=function(){return(e._Magick_DisposeFonts=e.asm.nd).apply(null,arguments)},e._Magick_SetDefaultFontFile=function(){return(e._Magick_SetDefaultFontFile=e.asm.od).apply(null,arguments)},e._Magick_SetRandomSeed=function(){return(e._Magick_SetRandomSeed=e.asm.pd).apply(null,arguments)},e._Magick_SetLogDelegate=function(){return(e._Magick_SetLogDelegate=e.asm.qd).apply(null,arguments)},e._Magick_SetLogEvents=function(){return(e._Magick_SetLogEvents=e.asm.rd).apply(null,arguments)},e._Magick_SetOpenCLEnabled=function(){return(e._Magick_SetOpenCLEnabled=e.asm.sd).apply(null,arguments)},e._MagickFormatInfo_CreateList=function(){return(e._MagickFormatInfo_CreateList=e.asm.td).apply(null,arguments)},e._MagickFormatInfo_DisposeList=function(){return(e._MagickFormatInfo_DisposeList=e.asm.ud).apply(null,arguments)},e._MagickFormatInfo_CanReadMultithreaded_Get=function(){return(e._MagickFormatInfo_CanReadMultithreaded_Get=e.asm.vd).apply(null,arguments)},e._MagickFormatInfo_CanWriteMultithreaded_Get=function(){return(e._MagickFormatInfo_CanWriteMultithreaded_Get=e.asm.wd).apply(null,arguments)},e._MagickFormatInfo_Description_Get=function(){return(e._MagickFormatInfo_Description_Get=e.asm.xd).apply(null,arguments)},e._MagickFormatInfo_Format_Get=function(){return(e._MagickFormatInfo_Format_Get=e.asm.yd).apply(null,arguments)},e._MagickFormatInfo_MimeType_Get=function(){return(e._MagickFormatInfo_MimeType_Get=e.asm.zd).apply(null,arguments)},e._MagickFormatInfo_Module_Get=function(){return(e._MagickFormatInfo_Module_Get=e.asm.Ad).apply(null,arguments)},e._MagickFormatInfo_SupportsMultipleFrames_Get=function(){return(e._MagickFormatInfo_SupportsMultipleFrames_Get=e.asm.Bd).apply(null,arguments)},e._MagickFormatInfo_SupportsReading_Get=function(){return(e._MagickFormatInfo_SupportsReading_Get=e.asm.Cd).apply(null,arguments)},e._MagickFormatInfo_SupportsWriting_Get=function(){return(e._MagickFormatInfo_SupportsWriting_Get=e.asm.Dd).apply(null,arguments)},e._MagickFormatInfo_GetInfo=function(){return(e._MagickFormatInfo_GetInfo=e.asm.Ed).apply(null,arguments)},e._MagickFormatInfo_GetInfoByName=function(){return(e._MagickFormatInfo_GetInfoByName=e.asm.Fd).apply(null,arguments)},e._MagickFormatInfo_GetInfoWithBlob=function(){return(e._MagickFormatInfo_GetInfoWithBlob=e.asm.Gd).apply(null,arguments)},e._MagickFormatInfo_Unregister=function(){return(e._MagickFormatInfo_Unregister=e.asm.Hd).apply(null,arguments)},e._MagickImage_Create=function(){return(e._MagickImage_Create=e.asm.Id).apply(null,arguments)},e._MagickImage_Dispose=function(){return(e._MagickImage_Dispose=e.asm.Jd).apply(null,arguments)},e._MagickImage_AnimationDelay_Get=function(){return(e._MagickImage_AnimationDelay_Get=e.asm.Kd).apply(null,arguments)},e._MagickImage_AnimationDelay_Set=function(){return(e._MagickImage_AnimationDelay_Set=e.asm.Ld).apply(null,arguments)},e._MagickImage_AnimationIterations_Get=function(){return(e._MagickImage_AnimationIterations_Get=e.asm.Md).apply(null,arguments)},e._MagickImage_AnimationIterations_Set=function(){return(e._MagickImage_AnimationIterations_Set=e.asm.Nd).apply(null,arguments)},e._MagickImage_AnimationTicksPerSecond_Get=function(){return(e._MagickImage_AnimationTicksPerSecond_Get=e.asm.Od).apply(null,arguments)},e._MagickImage_AnimationTicksPerSecond_Set=function(){return(e._MagickImage_AnimationTicksPerSecond_Set=e.asm.Pd).apply(null,arguments)},e._MagickImage_BackgroundColor_Get=function(){return(e._MagickImage_BackgroundColor_Get=e.asm.Qd).apply(null,arguments)},e._MagickImage_BackgroundColor_Set=function(){return(e._MagickImage_BackgroundColor_Set=e.asm.Rd).apply(null,arguments)},e._MagickImage_BaseHeight_Get=function(){return(e._MagickImage_BaseHeight_Get=e.asm.Sd).apply(null,arguments)},e._MagickImage_BaseWidth_Get=function(){return(e._MagickImage_BaseWidth_Get=e.asm.Td).apply(null,arguments)},e._MagickImage_BlackPointCompensation_Get=function(){return(e._MagickImage_BlackPointCompensation_Get=e.asm.Ud).apply(null,arguments)},e._MagickImage_BlackPointCompensation_Set=function(){return(e._MagickImage_BlackPointCompensation_Set=e.asm.Vd).apply(null,arguments)},e._MagickImage_BorderColor_Get=function(){return(e._MagickImage_BorderColor_Get=e.asm.Wd).apply(null,arguments)},e._MagickImage_BorderColor_Set=function(){return(e._MagickImage_BorderColor_Set=e.asm.Xd).apply(null,arguments)},e._MagickImage_BoundingBox_Get=function(){return(e._MagickImage_BoundingBox_Get=e.asm.Yd).apply(null,arguments)},e._MagickRectangle_Create=function(){return(e._MagickRectangle_Create=e.asm.Zd).apply(null,arguments)},e._MagickImage_ChannelCount_Get=function(){return(e._MagickImage_ChannelCount_Get=e.asm._d).apply(null,arguments)},e._MagickImage_ChromaBlue_Get=function(){return(e._MagickImage_ChromaBlue_Get=e.asm.$d).apply(null,arguments)},e._PrimaryInfo_Create=function(){return(e._PrimaryInfo_Create=e.asm.ae).apply(null,arguments)},e._MagickImage_ChromaBlue_Set=function(){return(e._MagickImage_ChromaBlue_Set=e.asm.be).apply(null,arguments)},e._MagickImage_ChromaGreen_Get=function(){return(e._MagickImage_ChromaGreen_Get=e.asm.ce).apply(null,arguments)},e._MagickImage_ChromaGreen_Set=function(){return(e._MagickImage_ChromaGreen_Set=e.asm.de).apply(null,arguments)},e._MagickImage_ChromaRed_Get=function(){return(e._MagickImage_ChromaRed_Get=e.asm.ee).apply(null,arguments)},e._MagickImage_ChromaRed_Set=function(){return(e._MagickImage_ChromaRed_Set=e.asm.fe).apply(null,arguments)},e._MagickImage_ChromaWhite_Get=function(){return(e._MagickImage_ChromaWhite_Get=e.asm.ge).apply(null,arguments)},e._MagickImage_ChromaWhite_Set=function(){return(e._MagickImage_ChromaWhite_Set=e.asm.he).apply(null,arguments)},e._MagickImage_ClassType_Get=function(){return(e._MagickImage_ClassType_Get=e.asm.ie).apply(null,arguments)},e._MagickImage_ClassType_Set=function(){return(e._MagickImage_ClassType_Set=e.asm.je).apply(null,arguments)},e._QuantizeSettings_Create=function(){return(e._QuantizeSettings_Create=e.asm.ke).apply(null,arguments)},e._QuantizeSettings_Dispose=function(){return(e._QuantizeSettings_Dispose=e.asm.le).apply(null,arguments)},e._MagickImage_ColorFuzz_Get=function(){return(e._MagickImage_ColorFuzz_Get=e.asm.me).apply(null,arguments)},e._MagickImage_ColorFuzz_Set=function(){return(e._MagickImage_ColorFuzz_Set=e.asm.ne).apply(null,arguments)},e._MagickImage_ColormapSize_Get=function(){return(e._MagickImage_ColormapSize_Get=e.asm.oe).apply(null,arguments)},e._MagickImage_ColormapSize_Set=function(){return(e._MagickImage_ColormapSize_Set=e.asm.pe).apply(null,arguments)},e._MagickImage_ColorSpace_Get=function(){return(e._MagickImage_ColorSpace_Get=e.asm.qe).apply(null,arguments)},e._MagickImage_ColorSpace_Set=function(){return(e._MagickImage_ColorSpace_Set=e.asm.re).apply(null,arguments)},e._MagickImage_ColorType_Get=function(){return(e._MagickImage_ColorType_Get=e.asm.se).apply(null,arguments)},e._MagickImage_ColorType_Set=function(){return(e._MagickImage_ColorType_Set=e.asm.te).apply(null,arguments)},e._MagickImage_Compose_Get=function(){return(e._MagickImage_Compose_Get=e.asm.ue).apply(null,arguments)},e._MagickImage_Compose_Set=function(){return(e._MagickImage_Compose_Set=e.asm.ve).apply(null,arguments)},e._MagickImage_Compression_Get=function(){return(e._MagickImage_Compression_Get=e.asm.we).apply(null,arguments)},e._MagickImage_Compression_Set=function(){return(e._MagickImage_Compression_Set=e.asm.xe).apply(null,arguments)},e._MagickImage_Depth_Get=function(){return(e._MagickImage_Depth_Get=e.asm.ye).apply(null,arguments)},e._MagickImage_Depth_Set=function(){return(e._MagickImage_Depth_Set=e.asm.ze).apply(null,arguments)},e._MagickImage_EncodingGeometry_Get=function(){return(e._MagickImage_EncodingGeometry_Get=e.asm.Ae).apply(null,arguments)},e._MagickImage_Endian_Get=function(){return(e._MagickImage_Endian_Get=e.asm.Be).apply(null,arguments)},e._MagickImage_Endian_Set=function(){return(e._MagickImage_Endian_Set=e.asm.Ce).apply(null,arguments)},e._MagickImage_FileName_Get=function(){return(e._MagickImage_FileName_Get=e.asm.De).apply(null,arguments)},e._MagickImage_FileName_Set=function(){return(e._MagickImage_FileName_Set=e.asm.Ee).apply(null,arguments)},e._MagickImage_FilterType_Get=function(){return(e._MagickImage_FilterType_Get=e.asm.Fe).apply(null,arguments)},e._MagickImage_FilterType_Set=function(){return(e._MagickImage_FilterType_Set=e.asm.Ge).apply(null,arguments)},e._MagickImage_Format_Get=function(){return(e._MagickImage_Format_Get=e.asm.He).apply(null,arguments)},e._MagickImage_Format_Set=function(){return(e._MagickImage_Format_Set=e.asm.Ie).apply(null,arguments)},e._MagickImage_Gamma_Get=function(){return(e._MagickImage_Gamma_Get=e.asm.Je).apply(null,arguments)},e._MagickImage_GifDisposeMethod_Get=function(){return(e._MagickImage_GifDisposeMethod_Get=e.asm.Ke).apply(null,arguments)},e._MagickImage_GifDisposeMethod_Set=function(){return(e._MagickImage_GifDisposeMethod_Set=e.asm.Le).apply(null,arguments)},e._MagickImage_Interpolate_Get=function(){return(e._MagickImage_Interpolate_Get=e.asm.Me).apply(null,arguments)},e._MagickImage_Interpolate_Set=function(){return(e._MagickImage_Interpolate_Set=e.asm.Ne).apply(null,arguments)},e._MagickImage_HasAlpha_Get=function(){return(e._MagickImage_HasAlpha_Get=e.asm.Oe).apply(null,arguments)},e._MagickImage_HasAlpha_Set=function(){return(e._MagickImage_HasAlpha_Set=e.asm.Pe).apply(null,arguments)},e._MagickImage_Height_Get=function(){return(e._MagickImage_Height_Get=e.asm.Qe).apply(null,arguments)},e._MagickImage_Interlace_Get=function(){return(e._MagickImage_Interlace_Get=e.asm.Re).apply(null,arguments)},e._MagickImage_Interlace_Set=function(){return(e._MagickImage_Interlace_Set=e.asm.Se).apply(null,arguments)},e._MagickImage_IsOpaque_Get=function(){return(e._MagickImage_IsOpaque_Get=e.asm.Te).apply(null,arguments)},e._MagickImage_MatteColor_Get=function(){return(e._MagickImage_MatteColor_Get=e.asm.Ue).apply(null,arguments)},e._MagickImage_MatteColor_Set=function(){return(e._MagickImage_MatteColor_Set=e.asm.Ve).apply(null,arguments)},e._MagickImage_MeanErrorPerPixel_Get=function(){return(e._MagickImage_MeanErrorPerPixel_Get=e.asm.We).apply(null,arguments)},e._MagickImage_NormalizedMaximumError_Get=function(){return(e._MagickImage_NormalizedMaximumError_Get=e.asm.Xe).apply(null,arguments)},e._MagickImage_NormalizedMeanError_Get=function(){return(e._MagickImage_NormalizedMeanError_Get=e.asm.Ye).apply(null,arguments)},e._MagickImage_Orientation_Get=function(){return(e._MagickImage_Orientation_Get=e.asm.Ze).apply(null,arguments)},e._MagickImage_Orientation_Set=function(){return(e._MagickImage_Orientation_Set=e.asm._e).apply(null,arguments)},e._MagickImage_RenderingIntent_Get=function(){return(e._MagickImage_RenderingIntent_Get=e.asm.$e).apply(null,arguments)},e._MagickImage_RenderingIntent_Set=function(){return(e._MagickImage_RenderingIntent_Set=e.asm.af).apply(null,arguments)},e._MagickImage_Page_Get=function(){return(e._MagickImage_Page_Get=e.asm.bf).apply(null,arguments)},e._MagickImage_Page_Set=function(){return(e._MagickImage_Page_Set=e.asm.cf).apply(null,arguments)},e._MagickImage_Quality_Get=function(){return(e._MagickImage_Quality_Get=e.asm.df).apply(null,arguments)},e._MagickImage_Quality_Set=function(){return(e._MagickImage_Quality_Set=e.asm.ef).apply(null,arguments)},e._MagickImage_ResolutionUnits_Get=function(){return(e._MagickImage_ResolutionUnits_Get=e.asm.ff).apply(null,arguments)},e._MagickImage_ResolutionUnits_Set=function(){return(e._MagickImage_ResolutionUnits_Set=e.asm.gf).apply(null,arguments)},e._MagickImage_ResolutionX_Get=function(){return(e._MagickImage_ResolutionX_Get=e.asm.hf).apply(null,arguments)},e._MagickImage_ResolutionX_Set=function(){return(e._MagickImage_ResolutionX_Set=e.asm.jf).apply(null,arguments)},e._MagickImage_ResolutionY_Get=function(){return(e._MagickImage_ResolutionY_Get=e.asm.kf).apply(null,arguments)},e._MagickImage_ResolutionY_Set=function(){return(e._MagickImage_ResolutionY_Set=e.asm.lf).apply(null,arguments)},e._MagickImage_Signature_Get=function(){return(e._MagickImage_Signature_Get=e.asm.mf).apply(null,arguments)},e._MagickImage_TotalColors_Get=function(){return(e._MagickImage_TotalColors_Get=e.asm.nf).apply(null,arguments)},e._MagickImage_VirtualPixelMethod_Get=function(){return(e._MagickImage_VirtualPixelMethod_Get=e.asm.of).apply(null,arguments)},e._MagickImage_VirtualPixelMethod_Set=function(){return(e._MagickImage_VirtualPixelMethod_Set=e.asm.pf).apply(null,arguments)},e._MagickImage_Width_Get=function(){return(e._MagickImage_Width_Get=e.asm.qf).apply(null,arguments)},e._MagickImage_AdaptiveBlur=function(){return(e._MagickImage_AdaptiveBlur=e.asm.rf).apply(null,arguments)},e._MagickImage_AdaptiveResize=function(){return(e._MagickImage_AdaptiveResize=e.asm.sf).apply(null,arguments)},e._MagickImage_AdaptiveSharpen=function(){return(e._MagickImage_AdaptiveSharpen=e.asm.tf).apply(null,arguments)},e._MagickImage_AdaptiveThreshold=function(){return(e._MagickImage_AdaptiveThreshold=e.asm.uf).apply(null,arguments)},e._MagickImage_AddNoise=function(){return(e._MagickImage_AddNoise=e.asm.vf).apply(null,arguments)},e._MagickImage_AffineTransform=function(){return(e._MagickImage_AffineTransform=e.asm.wf).apply(null,arguments)},e._MagickImage_Annotate=function(){return(e._MagickImage_Annotate=e.asm.xf).apply(null,arguments)},e._MagickImage_AnnotateGravity=function(){return(e._MagickImage_AnnotateGravity=e.asm.yf).apply(null,arguments)},e._MagickImage_AutoGamma=function(){return(e._MagickImage_AutoGamma=e.asm.zf).apply(null,arguments)},e._MagickImage_AutoLevel=function(){return(e._MagickImage_AutoLevel=e.asm.Af).apply(null,arguments)},e._MagickImage_AutoOrient=function(){return(e._MagickImage_AutoOrient=e.asm.Bf).apply(null,arguments)},e._MagickImage_AutoThreshold=function(){return(e._MagickImage_AutoThreshold=e.asm.Cf).apply(null,arguments)},e._MagickImage_BilateralBlur=function(){return(e._MagickImage_BilateralBlur=e.asm.Df).apply(null,arguments)},e._MagickImage_BlackThreshold=function(){return(e._MagickImage_BlackThreshold=e.asm.Ef).apply(null,arguments)},e._MagickImage_BlueShift=function(){return(e._MagickImage_BlueShift=e.asm.Ff).apply(null,arguments)},e._MagickImage_Blur=function(){return(e._MagickImage_Blur=e.asm.Gf).apply(null,arguments)},e._MagickImage_Border=function(){return(e._MagickImage_Border=e.asm.Hf).apply(null,arguments)},e._MagickImage_BrightnessContrast=function(){return(e._MagickImage_BrightnessContrast=e.asm.If).apply(null,arguments)},e._MagickImage_CannyEdge=function(){return(e._MagickImage_CannyEdge=e.asm.Jf).apply(null,arguments)},e._MagickImage_ChannelOffset=function(){return(e._MagickImage_ChannelOffset=e.asm.Kf).apply(null,arguments)},e._MagickImage_Charcoal=function(){return(e._MagickImage_Charcoal=e.asm.Lf).apply(null,arguments)},e._MagickImage_Chop=function(){return(e._MagickImage_Chop=e.asm.Mf).apply(null,arguments)},e._MagickImage_Clahe=function(){return(e._MagickImage_Clahe=e.asm.Nf).apply(null,arguments)},e._MagickImage_Clamp=function(){return(e._MagickImage_Clamp=e.asm.Of).apply(null,arguments)},e._MagickImage_ClipPath=function(){return(e._MagickImage_ClipPath=e.asm.Pf).apply(null,arguments)},e._MagickImage_Clone=function(){return(e._MagickImage_Clone=e.asm.Qf).apply(null,arguments)},e._MagickImage_CloneArea=function(){return(e._MagickImage_CloneArea=e.asm.Rf).apply(null,arguments)},e._MagickImage_Clut=function(){return(e._MagickImage_Clut=e.asm.Sf).apply(null,arguments)},e._MagickImage_ColorDecisionList=function(){return(e._MagickImage_ColorDecisionList=e.asm.Tf).apply(null,arguments)},e._MagickImage_Colorize=function(){return(e._MagickImage_Colorize=e.asm.Uf).apply(null,arguments)},e._MagickImage_ColorMatrix=function(){return(e._MagickImage_ColorMatrix=e.asm.Vf).apply(null,arguments)},e._MagickImage_ColorThreshold=function(){return(e._MagickImage_ColorThreshold=e.asm.Wf).apply(null,arguments)},e._MagickImage_Compare=function(){return(e._MagickImage_Compare=e.asm.Xf).apply(null,arguments)},e._MagickImage_CompareDistortion=function(){return(e._MagickImage_CompareDistortion=e.asm.Yf).apply(null,arguments)},e._MagickImage_Composite=function(){return(e._MagickImage_Composite=e.asm.Zf).apply(null,arguments)},e._MagickImage_CompositeGravity=function(){return(e._MagickImage_CompositeGravity=e.asm._f).apply(null,arguments)},e._MagickImage_ConnectedComponents=function(){return(e._MagickImage_ConnectedComponents=e.asm.$f).apply(null,arguments)},e._MagickImage_Contrast=function(){return(e._MagickImage_Contrast=e.asm.ag).apply(null,arguments)},e._MagickImage_ContrastStretch=function(){return(e._MagickImage_ContrastStretch=e.asm.bg).apply(null,arguments)},e._MagickImage_ConvexHull=function(){return(e._MagickImage_ConvexHull=e.asm.cg).apply(null,arguments)},e._MagickImage_Convolve=function(){return(e._MagickImage_Convolve=e.asm.dg).apply(null,arguments)},e._MagickImage_CopyPixels=function(){return(e._MagickImage_CopyPixels=e.asm.eg).apply(null,arguments)},e._MagickImage_Crop=function(){return(e._MagickImage_Crop=e.asm.fg).apply(null,arguments)},e._MagickImage_CropToTiles=function(){return(e._MagickImage_CropToTiles=e.asm.gg).apply(null,arguments)},e._MagickImage_CycleColormap=function(){return(e._MagickImage_CycleColormap=e.asm.hg).apply(null,arguments)},e._MagickImage_Decipher=function(){return(e._MagickImage_Decipher=e.asm.ig).apply(null,arguments)},e._MagickImage_Deskew=function(){return(e._MagickImage_Deskew=e.asm.jg).apply(null,arguments)},e._MagickImage_Despeckle=function(){return(e._MagickImage_Despeckle=e.asm.kg).apply(null,arguments)},e._MagickImage_DetermineBitDepth=function(){return(e._MagickImage_DetermineBitDepth=e.asm.lg).apply(null,arguments)},e._MagickImage_DetermineColorType=function(){return(e._MagickImage_DetermineColorType=e.asm.mg).apply(null,arguments)},e._MagickImage_Distort=function(){return(e._MagickImage_Distort=e.asm.ng).apply(null,arguments)},e._MagickImage_Edge=function(){return(e._MagickImage_Edge=e.asm.og).apply(null,arguments)},e._MagickImage_Emboss=function(){return(e._MagickImage_Emboss=e.asm.pg).apply(null,arguments)},e._MagickImage_Encipher=function(){return(e._MagickImage_Encipher=e.asm.qg).apply(null,arguments)},e._MagickImage_Enhance=function(){return(e._MagickImage_Enhance=e.asm.rg).apply(null,arguments)},e._MagickImage_Equalize=function(){return(e._MagickImage_Equalize=e.asm.sg).apply(null,arguments)},e._MagickImage_Equals=function(){return(e._MagickImage_Equals=e.asm.tg).apply(null,arguments)},e._MagickImage_EvaluateFunction=function(){return(e._MagickImage_EvaluateFunction=e.asm.ug).apply(null,arguments)},e._MagickImage_EvaluateGeometry=function(){return(e._MagickImage_EvaluateGeometry=e.asm.vg).apply(null,arguments)},e._MagickImage_EvaluateOperator=function(){return(e._MagickImage_EvaluateOperator=e.asm.wg).apply(null,arguments)},e._MagickImage_Extent=function(){return(e._MagickImage_Extent=e.asm.xg).apply(null,arguments)},e._MagickImage_Flip=function(){return(e._MagickImage_Flip=e.asm.yg).apply(null,arguments)},e._MagickImage_FloodFill=function(){return(e._MagickImage_FloodFill=e.asm.zg).apply(null,arguments)},e._MagickImage_Flop=function(){return(e._MagickImage_Flop=e.asm.Ag).apply(null,arguments)},e._MagickImage_FontTypeMetrics=function(){return(e._MagickImage_FontTypeMetrics=e.asm.Bg).apply(null,arguments)},e._MagickImage_FormatExpression=function(){return(e._MagickImage_FormatExpression=e.asm.Cg).apply(null,arguments)},e._MagickImage_Frame=function(){return(e._MagickImage_Frame=e.asm.Dg).apply(null,arguments)},e._MagickImage_Fx=function(){return(e._MagickImage_Fx=e.asm.Eg).apply(null,arguments)},e._MagickImage_GammaCorrect=function(){return(e._MagickImage_GammaCorrect=e.asm.Fg).apply(null,arguments)},e._MagickImage_GaussianBlur=function(){return(e._MagickImage_GaussianBlur=e.asm.Gg).apply(null,arguments)},e._MagickImage_GetArtifact=function(){return(e._MagickImage_GetArtifact=e.asm.Hg).apply(null,arguments)},e._MagickImage_GetAttribute=function(){return(e._MagickImage_GetAttribute=e.asm.Ig).apply(null,arguments)},e._MagickImage_GetColormapColor=function(){return(e._MagickImage_GetColormapColor=e.asm.Jg).apply(null,arguments)},e._MagickImage_GetNext=function(){return(e._MagickImage_GetNext=e.asm.Kg).apply(null,arguments)},e._MagickImage_GetNextArtifactName=function(){return(e._MagickImage_GetNextArtifactName=e.asm.Lg).apply(null,arguments)},e._MagickImage_GetNextAttributeName=function(){return(e._MagickImage_GetNextAttributeName=e.asm.Mg).apply(null,arguments)},e._MagickImage_GetNextProfileName=function(){return(e._MagickImage_GetNextProfileName=e.asm.Ng).apply(null,arguments)},e._MagickImage_GetProfile=function(){return(e._MagickImage_GetProfile=e.asm.Og).apply(null,arguments)},e._MagickImage_GetReadMask=function(){return(e._MagickImage_GetReadMask=e.asm.Pg).apply(null,arguments)},e._MagickImage_GetWriteMask=function(){return(e._MagickImage_GetWriteMask=e.asm.Qg).apply(null,arguments)},e._MagickImage_Grayscale=function(){return(e._MagickImage_Grayscale=e.asm.Rg).apply(null,arguments)},e._MagickImage_HaldClut=function(){return(e._MagickImage_HaldClut=e.asm.Sg).apply(null,arguments)},e._MagickImage_HasChannel=function(){return(e._MagickImage_HasChannel=e.asm.Tg).apply(null,arguments)},e._MagickImage_HasProfile=function(){return(e._MagickImage_HasProfile=e.asm.Ug).apply(null,arguments)},e._MagickImage_Histogram=function(){return(e._MagickImage_Histogram=e.asm.Vg).apply(null,arguments)},e._MagickImage_HoughLine=function(){return(e._MagickImage_HoughLine=e.asm.Wg).apply(null,arguments)},e._MagickImage_Implode=function(){return(e._MagickImage_Implode=e.asm.Xg).apply(null,arguments)},e._MagickImage_ImportPixels=function(){return(e._MagickImage_ImportPixels=e.asm.Yg).apply(null,arguments)},e._MagickImage_Integral=function(){return(e._MagickImage_Integral=e.asm.Zg).apply(null,arguments)},e._MagickImage_InterpolativeResize=function(){return(e._MagickImage_InterpolativeResize=e.asm._g).apply(null,arguments)},e._MagickImage_InverseLevel=function(){return(e._MagickImage_InverseLevel=e.asm.$g).apply(null,arguments)},e._MagickImage_Kmeans=function(){return(e._MagickImage_Kmeans=e.asm.ah).apply(null,arguments)},e._MagickImage_Kuwahara=function(){return(e._MagickImage_Kuwahara=e.asm.bh).apply(null,arguments)},e._MagickImage_Level=function(){return(e._MagickImage_Level=e.asm.ch).apply(null,arguments)},e._MagickImage_LevelColors=function(){return(e._MagickImage_LevelColors=e.asm.dh).apply(null,arguments)},e._MagickImage_LinearStretch=function(){return(e._MagickImage_LinearStretch=e.asm.eh).apply(null,arguments)},e._MagickImage_LiquidRescale=function(){return(e._MagickImage_LiquidRescale=e.asm.fh).apply(null,arguments)},e._MagickImage_LocalContrast=function(){return(e._MagickImage_LocalContrast=e.asm.gh).apply(null,arguments)},e._MagickImage_Magnify=function(){return(e._MagickImage_Magnify=e.asm.hh).apply(null,arguments)},e._MagickImage_Map=function(){return(e._MagickImage_Map=e.asm.ih).apply(null,arguments)},e._MagickImage_MeanShift=function(){return(e._MagickImage_MeanShift=e.asm.jh).apply(null,arguments)},e._MagickImage_Minify=function(){return(e._MagickImage_Minify=e.asm.kh).apply(null,arguments)},e._MagickImage_MinimumBoundingBox=function(){return(e._MagickImage_MinimumBoundingBox=e.asm.lh).apply(null,arguments)},e._MagickImage_Modulate=function(){return(e._MagickImage_Modulate=e.asm.mh).apply(null,arguments)},e._MagickImage_Moments=function(){return(e._MagickImage_Moments=e.asm.nh).apply(null,arguments)},e._MagickImage_Morphology=function(){return(e._MagickImage_Morphology=e.asm.oh).apply(null,arguments)},e._MagickImage_MotionBlur=function(){return(e._MagickImage_MotionBlur=e.asm.ph).apply(null,arguments)},e._MagickImage_Negate=function(){return(e._MagickImage_Negate=e.asm.qh).apply(null,arguments)},e._MagickImage_Normalize=function(){return(e._MagickImage_Normalize=e.asm.rh).apply(null,arguments)},e._MagickImage_OilPaint=function(){return(e._MagickImage_OilPaint=e.asm.sh).apply(null,arguments)},e._MagickImage_Opaque=function(){return(e._MagickImage_Opaque=e.asm.th).apply(null,arguments)},e._MagickImage_OrderedDither=function(){return(e._MagickImage_OrderedDither=e.asm.uh).apply(null,arguments)},e._MagickImage_Perceptible=function(){return(e._MagickImage_Perceptible=e.asm.vh).apply(null,arguments)},e._MagickImage_PerceptualHash=function(){return(e._MagickImage_PerceptualHash=e.asm.wh).apply(null,arguments)},e._MagickImage_Quantize=function(){return(e._MagickImage_Quantize=e.asm.xh).apply(null,arguments)},e._MagickImage_Polaroid=function(){return(e._MagickImage_Polaroid=e.asm.yh).apply(null,arguments)},e._MagickImage_Posterize=function(){return(e._MagickImage_Posterize=e.asm.zh).apply(null,arguments)},e._MagickImage_RaiseOrLower=function(){return(e._MagickImage_RaiseOrLower=e.asm.Ah).apply(null,arguments)},e._MagickImage_RandomThreshold=function(){return(e._MagickImage_RandomThreshold=e.asm.Bh).apply(null,arguments)},e._MagickImage_RangeThreshold=function(){return(e._MagickImage_RangeThreshold=e.asm.Ch).apply(null,arguments)},e._MagickImage_ReadBlob=function(){return(e._MagickImage_ReadBlob=e.asm.Dh).apply(null,arguments)},e._MagickImage_ReadFile=function(){return(e._MagickImage_ReadFile=e.asm.Eh).apply(null,arguments)},e._MagickImage_ReadPixels=function(){return(e._MagickImage_ReadPixels=e.asm.Fh).apply(null,arguments)},e._MagickImage_ReadStream=function(){return(e._MagickImage_ReadStream=e.asm.Gh).apply(null,arguments)},e._MagickImage_RegionMask=function(){return(e._MagickImage_RegionMask=e.asm.Hh).apply(null,arguments)},e._MagickImage_RemoveArtifact=function(){return(e._MagickImage_RemoveArtifact=e.asm.Ih).apply(null,arguments)},e._MagickImage_RemoveAttribute=function(){return(e._MagickImage_RemoveAttribute=e.asm.Jh).apply(null,arguments)},e._MagickImage_RemoveProfile=function(){return(e._MagickImage_RemoveProfile=e.asm.Kh).apply(null,arguments)},e._MagickImage_ResetArtifactIterator=function(){return(e._MagickImage_ResetArtifactIterator=e.asm.Lh).apply(null,arguments)},e._MagickImage_ResetAttributeIterator=function(){return(e._MagickImage_ResetAttributeIterator=e.asm.Mh).apply(null,arguments)},e._MagickImage_ResetProfileIterator=function(){return(e._MagickImage_ResetProfileIterator=e.asm.Nh).apply(null,arguments)},e._MagickImage_Resample=function(){return(e._MagickImage_Resample=e.asm.Oh).apply(null,arguments)},e._MagickImage_Resize=function(){return(e._MagickImage_Resize=e.asm.Ph).apply(null,arguments)},e._MagickImage_Roll=function(){return(e._MagickImage_Roll=e.asm.Qh).apply(null,arguments)},e._MagickImage_Rotate=function(){return(e._MagickImage_Rotate=e.asm.Rh).apply(null,arguments)},e._MagickImage_RotationalBlur=function(){return(e._MagickImage_RotationalBlur=e.asm.Sh).apply(null,arguments)},e._MagickImage_Sample=function(){return(e._MagickImage_Sample=e.asm.Th).apply(null,arguments)},e._MagickImage_Scale=function(){return(e._MagickImage_Scale=e.asm.Uh).apply(null,arguments)},e._MagickImage_Segment=function(){return(e._MagickImage_Segment=e.asm.Vh).apply(null,arguments)},e._MagickImage_SelectiveBlur=function(){return(e._MagickImage_SelectiveBlur=e.asm.Wh).apply(null,arguments)},e._MagickImage_Separate=function(){return(e._MagickImage_Separate=e.asm.Xh).apply(null,arguments)},e._MagickImage_SepiaTone=function(){return(e._MagickImage_SepiaTone=e.asm.Yh).apply(null,arguments)},e._MagickImage_SetAlpha=function(){return(e._MagickImage_SetAlpha=e.asm.Zh).apply(null,arguments)},e._MagickImage_SetArtifact=function(){return(e._MagickImage_SetArtifact=e.asm._h).apply(null,arguments)},e._MagickImage_SetAttribute=function(){return(e._MagickImage_SetAttribute=e.asm.$h).apply(null,arguments)},e._MagickImage_SetBitDepth=function(){return(e._MagickImage_SetBitDepth=e.asm.ai).apply(null,arguments)},e._MagickImage_SetClientData=function(){return(e._MagickImage_SetClientData=e.asm.bi).apply(null,arguments)},e._MagickImage_SetColormapColor=function(){return(e._MagickImage_SetColormapColor=e.asm.ci).apply(null,arguments)},e._MagickImage_SetColorMetric=function(){return(e._MagickImage_SetColorMetric=e.asm.di).apply(null,arguments)},e._MagickImage_SetNext=function(){return(e._MagickImage_SetNext=e.asm.ei).apply(null,arguments)},e._MagickImage_SetProfile=function(){return(e._MagickImage_SetProfile=e.asm.fi).apply(null,arguments)},e._MagickImage_SetProgressDelegate=function(){return(e._MagickImage_SetProgressDelegate=e.asm.gi).apply(null,arguments)},e._MagickImage_SetReadMask=function(){return(e._MagickImage_SetReadMask=e.asm.hi).apply(null,arguments)},e._MagickImage_SetWriteMask=function(){return(e._MagickImage_SetWriteMask=e.asm.ii).apply(null,arguments)},e._MagickImage_Shade=function(){return(e._MagickImage_Shade=e.asm.ji).apply(null,arguments)},e._MagickImage_Shadow=function(){return(e._MagickImage_Shadow=e.asm.ki).apply(null,arguments)},e._MagickImage_Sharpen=function(){return(e._MagickImage_Sharpen=e.asm.li).apply(null,arguments)},e._MagickImage_Shave=function(){return(e._MagickImage_Shave=e.asm.mi).apply(null,arguments)},e._MagickImage_Shear=function(){return(e._MagickImage_Shear=e.asm.ni).apply(null,arguments)},e._MagickImage_SigmoidalContrast=function(){return(e._MagickImage_SigmoidalContrast=e.asm.oi).apply(null,arguments)},e._MagickImage_SparseColor=function(){return(e._MagickImage_SparseColor=e.asm.pi).apply(null,arguments)},e._MagickImage_Spread=function(){return(e._MagickImage_Spread=e.asm.qi).apply(null,arguments)},e._MagickImage_Sketch=function(){return(e._MagickImage_Sketch=e.asm.ri).apply(null,arguments)},e._MagickImage_Solarize=function(){return(e._MagickImage_Solarize=e.asm.si).apply(null,arguments)},e._MagickImage_SortPixels=function(){return(e._MagickImage_SortPixels=e.asm.ti).apply(null,arguments)},e._MagickImage_Splice=function(){return(e._MagickImage_Splice=e.asm.ui).apply(null,arguments)},e._MagickImage_Statistic=function(){return(e._MagickImage_Statistic=e.asm.vi).apply(null,arguments)},e._MagickImage_Statistics=function(){return(e._MagickImage_Statistics=e.asm.wi).apply(null,arguments)},e._MagickImage_Stegano=function(){return(e._MagickImage_Stegano=e.asm.xi).apply(null,arguments)},e._MagickImage_Stereo=function(){return(e._MagickImage_Stereo=e.asm.yi).apply(null,arguments)},e._MagickImage_Strip=function(){return(e._MagickImage_Strip=e.asm.zi).apply(null,arguments)},e._MagickImage_SubImageSearch=function(){return(e._MagickImage_SubImageSearch=e.asm.Ai).apply(null,arguments)},e._MagickImage_Swirl=function(){return(e._MagickImage_Swirl=e.asm.Bi).apply(null,arguments)},e._MagickImage_Texture=function(){return(e._MagickImage_Texture=e.asm.Ci).apply(null,arguments)},e._MagickImage_Threshold=function(){return(e._MagickImage_Threshold=e.asm.Di).apply(null,arguments)},e._MagickImage_Thumbnail=function(){return(e._MagickImage_Thumbnail=e.asm.Ei).apply(null,arguments)},e._MagickImage_Tint=function(){return(e._MagickImage_Tint=e.asm.Fi).apply(null,arguments)},e._MagickImage_Transparent=function(){return(e._MagickImage_Transparent=e.asm.Gi).apply(null,arguments)},e._MagickImage_TransparentChroma=function(){return(e._MagickImage_TransparentChroma=e.asm.Hi).apply(null,arguments)},e._MagickImage_Transpose=function(){return(e._MagickImage_Transpose=e.asm.Ii).apply(null,arguments)},e._MagickImage_Transverse=function(){return(e._MagickImage_Transverse=e.asm.Ji).apply(null,arguments)},e._MagickImage_Trim=function(){return(e._MagickImage_Trim=e.asm.Ki).apply(null,arguments)},e._MagickImage_UniqueColors=function(){return(e._MagickImage_UniqueColors=e.asm.Li).apply(null,arguments)},e._MagickImage_UnsharpMask=function(){return(e._MagickImage_UnsharpMask=e.asm.Mi).apply(null,arguments)},e._MagickImage_Vignette=function(){return(e._MagickImage_Vignette=e.asm.Ni).apply(null,arguments)},e._MagickImage_Wave=function(){return(e._MagickImage_Wave=e.asm.Oi).apply(null,arguments)},e._MagickImage_WaveletDenoise=function(){return(e._MagickImage_WaveletDenoise=e.asm.Pi).apply(null,arguments)},e._MagickImage_WhiteBalance=function(){return(e._MagickImage_WhiteBalance=e.asm.Qi).apply(null,arguments)},e._MagickImage_WhiteThreshold=function(){return(e._MagickImage_WhiteThreshold=e.asm.Ri).apply(null,arguments)},e._MagickImage_WriteBlob=function(){return(e._MagickImage_WriteBlob=e.asm.Si).apply(null,arguments)},e._MagickImage_WriteFile=function(){return(e._MagickImage_WriteFile=e.asm.Ti).apply(null,arguments)},e._MagickImage_WriteStream=function(){return(e._MagickImage_WriteStream=e.asm.Ui).apply(null,arguments)},e._MagickImageCollection_Append=function(){return(e._MagickImageCollection_Append=e.asm.Vi).apply(null,arguments)},e._MagickImageCollection_Coalesce=function(){return(e._MagickImageCollection_Coalesce=e.asm.Wi).apply(null,arguments)},e._MagickImageCollection_Combine=function(){return(e._MagickImageCollection_Combine=e.asm.Xi).apply(null,arguments)},e._MagickImageCollection_Complex=function(){return(e._MagickImageCollection_Complex=e.asm.Yi).apply(null,arguments)},e._MagickImageCollection_Deconstruct=function(){return(e._MagickImageCollection_Deconstruct=e.asm.Zi).apply(null,arguments)},e._MagickImageCollection_Dispose=function(){return(e._MagickImageCollection_Dispose=e.asm._i).apply(null,arguments)},e._MagickImageCollection_Evaluate=function(){return(e._MagickImageCollection_Evaluate=e.asm.$i).apply(null,arguments)},e._MagickImageCollection_Fx=function(){return(e._MagickImageCollection_Fx=e.asm.aj).apply(null,arguments)},e._MagickImageCollection_Map=function(){return(e._MagickImageCollection_Map=e.asm.bj).apply(null,arguments)},e._MagickImageCollection_Merge=function(){return(e._MagickImageCollection_Merge=e.asm.cj).apply(null,arguments)},e._MagickImageCollection_Montage=function(){return(e._MagickImageCollection_Montage=e.asm.dj).apply(null,arguments)},e._MagickImageCollection_Morph=function(){return(e._MagickImageCollection_Morph=e.asm.ej).apply(null,arguments)},e._MagickImageCollection_Optimize=function(){return(e._MagickImageCollection_Optimize=e.asm.fj).apply(null,arguments)},e._MagickImageCollection_OptimizePlus=function(){return(e._MagickImageCollection_OptimizePlus=e.asm.gj).apply(null,arguments)},e._MagickImageCollection_OptimizeTransparency=function(){return(e._MagickImageCollection_OptimizeTransparency=e.asm.hj).apply(null,arguments)},e._MagickImageCollection_Polynomial=function(){return(e._MagickImageCollection_Polynomial=e.asm.ij).apply(null,arguments)},e._MagickImageCollection_Quantize=function(){return(e._MagickImageCollection_Quantize=e.asm.jj).apply(null,arguments)},e._MagickImageCollection_ReadBlob=function(){return(e._MagickImageCollection_ReadBlob=e.asm.kj).apply(null,arguments)},e._MagickImageCollection_ReadFile=function(){return(e._MagickImageCollection_ReadFile=e.asm.lj).apply(null,arguments)},e._MagickImageCollection_ReadStream=function(){return(e._MagickImageCollection_ReadStream=e.asm.mj).apply(null,arguments)},e._MagickImageCollection_Smush=function(){return(e._MagickImageCollection_Smush=e.asm.nj).apply(null,arguments)},e._MagickImageCollection_WriteFile=function(){return(e._MagickImageCollection_WriteFile=e.asm.oj).apply(null,arguments)},e._MagickImageCollection_WriteStream=function(){return(e._MagickImageCollection_WriteStream=e.asm.pj).apply(null,arguments)},e._DoubleMatrix_Create=function(){return(e._DoubleMatrix_Create=e.asm.qj).apply(null,arguments)},e._DoubleMatrix_Dispose=function(){return(e._DoubleMatrix_Dispose=e.asm.rj).apply(null,arguments)},e._OpenCL_GetDevices=function(){return(e._OpenCL_GetDevices=e.asm.sj).apply(null,arguments)},e._OpenCL_GetDevice=function(){return(e._OpenCL_GetDevice=e.asm.tj).apply(null,arguments)},e._OpenCL_GetEnabled=function(){return(e._OpenCL_GetEnabled=e.asm.uj).apply(null,arguments)},e._OpenCL_SetEnabled=function(){return(e._OpenCL_SetEnabled=e.asm.vj).apply(null,arguments)},e._OpenCLDevice_DeviceType_Get=function(){return(e._OpenCLDevice_DeviceType_Get=e.asm.wj).apply(null,arguments)},e._OpenCLDevice_BenchmarkScore_Get=function(){return(e._OpenCLDevice_BenchmarkScore_Get=e.asm.xj).apply(null,arguments)},e._OpenCLDevice_IsEnabled_Get=function(){return(e._OpenCLDevice_IsEnabled_Get=e.asm.yj).apply(null,arguments)},e._OpenCLDevice_IsEnabled_Set=function(){return(e._OpenCLDevice_IsEnabled_Set=e.asm.zj).apply(null,arguments)},e._OpenCLDevice_Name_Get=function(){return(e._OpenCLDevice_Name_Get=e.asm.Aj).apply(null,arguments)},e._OpenCLDevice_Version_Get=function(){return(e._OpenCLDevice_Version_Get=e.asm.Bj).apply(null,arguments)},e._OpenCLDevice_GetKernelProfileRecords=function(){return(e._OpenCLDevice_GetKernelProfileRecords=e.asm.Cj).apply(null,arguments)},e._OpenCLDevice_GetKernelProfileRecord=function(){return(e._OpenCLDevice_GetKernelProfileRecord=e.asm.Dj).apply(null,arguments)},e._OpenCLDevice_SetProfileKernels=function(){return(e._OpenCLDevice_SetProfileKernels=e.asm.Ej).apply(null,arguments)},e._OpenCLKernelProfileRecord_Count_Get=function(){return(e._OpenCLKernelProfileRecord_Count_Get=e.asm.Fj).apply(null,arguments)},e._OpenCLKernelProfileRecord_Name_Get=function(){return(e._OpenCLKernelProfileRecord_Name_Get=e.asm.Gj).apply(null,arguments)},e._OpenCLKernelProfileRecord_MaximumDuration_Get=function(){return(e._OpenCLKernelProfileRecord_MaximumDuration_Get=e.asm.Hj).apply(null,arguments)},e._OpenCLKernelProfileRecord_MinimumDuration_Get=function(){return(e._OpenCLKernelProfileRecord_MinimumDuration_Get=e.asm.Ij).apply(null,arguments)},e._OpenCLKernelProfileRecord_TotalDuration_Get=function(){return(e._OpenCLKernelProfileRecord_TotalDuration_Get=e.asm.Jj).apply(null,arguments)},e._JpegOptimizer_CompressFile=function(){return(e._JpegOptimizer_CompressFile=e.asm.Kj).apply(null,arguments)},e._JpegOptimizer_CompressStream=function(){return(e._JpegOptimizer_CompressStream=e.asm.Lj).apply(null,arguments)};var Ve=e._malloc=function(){return(Ve=e._malloc=e.asm.Mj).apply(null,arguments)},Re=e._free=function(){return(Re=e._free=e.asm.Nj).apply(null,arguments)},st=function(){return(st=e.asm.Oj).apply(null,arguments)};e._PixelCollection_Create=function(){return(e._PixelCollection_Create=e.asm.Pj).apply(null,arguments)},e._PixelCollection_Dispose=function(){return(e._PixelCollection_Dispose=e.asm.Qj).apply(null,arguments)},e._PixelCollection_GetArea=function(){return(e._PixelCollection_GetArea=e.asm.Rj).apply(null,arguments)},e._PixelCollection_GetReadOnlyArea=function(){return(e._PixelCollection_GetReadOnlyArea=e.asm.Sj).apply(null,arguments)},e._PixelCollection_SetArea=function(){return(e._PixelCollection_SetArea=e.asm.Tj).apply(null,arguments)},e._PixelCollection_ToByteArray=function(){return(e._PixelCollection_ToByteArray=e.asm.Uj).apply(null,arguments)},e._PixelCollection_ToShortArray=function(){return(e._PixelCollection_ToShortArray=e.asm.Vj).apply(null,arguments)},e._Quantum_Depth_Get=function(){return(e._Quantum_Depth_Get=e.asm.Wj).apply(null,arguments)},e._Quantum_Max_Get=function(){return(e._Quantum_Max_Get=e.asm.Xj).apply(null,arguments)},e._Quantum_ScaleToByte=function(){return(e._Quantum_ScaleToByte=e.asm.Yj).apply(null,arguments)},e._ResourceLimits_Area_Get=function(){return(e._ResourceLimits_Area_Get=e.asm.Zj).apply(null,arguments)},e._ResourceLimits_Area_Set=function(){return(e._ResourceLimits_Area_Set=e.asm._j).apply(null,arguments)},e._ResourceLimits_Disk_Get=function(){return(e._ResourceLimits_Disk_Get=e.asm.$j).apply(null,arguments)},e._ResourceLimits_Disk_Set=function(){return(e._ResourceLimits_Disk_Set=e.asm.ak).apply(null,arguments)},e._ResourceLimits_Height_Get=function(){return(e._ResourceLimits_Height_Get=e.asm.bk).apply(null,arguments)},e._ResourceLimits_Height_Set=function(){return(e._ResourceLimits_Height_Set=e.asm.ck).apply(null,arguments)},e._ResourceLimits_ListLength_Get=function(){return(e._ResourceLimits_ListLength_Get=e.asm.dk).apply(null,arguments)},e._ResourceLimits_ListLength_Set=function(){return(e._ResourceLimits_ListLength_Set=e.asm.ek).apply(null,arguments)},e._ResourceLimits_MaxMemoryRequest_Get=function(){return(e._ResourceLimits_MaxMemoryRequest_Get=e.asm.fk).apply(null,arguments)},e._ResourceLimits_MaxMemoryRequest_Set=function(){return(e._ResourceLimits_MaxMemoryRequest_Set=e.asm.gk).apply(null,arguments)},e._ResourceLimits_Memory_Get=function(){return(e._ResourceLimits_Memory_Get=e.asm.hk).apply(null,arguments)},e._ResourceLimits_Memory_Set=function(){return(e._ResourceLimits_Memory_Set=e.asm.ik).apply(null,arguments)},e._ResourceLimits_Thread_Get=function(){return(e._ResourceLimits_Thread_Get=e.asm.jk).apply(null,arguments)},e._ResourceLimits_Thread_Set=function(){return(e._ResourceLimits_Thread_Set=e.asm.kk).apply(null,arguments)},e._ResourceLimits_Throttle_Get=function(){return(e._ResourceLimits_Throttle_Get=e.asm.lk).apply(null,arguments)},e._ResourceLimits_Throttle_Set=function(){return(e._ResourceLimits_Throttle_Set=e.asm.mk).apply(null,arguments)},e._ResourceLimits_Time_Get=function(){return(e._ResourceLimits_Time_Get=e.asm.nk).apply(null,arguments)},e._ResourceLimits_Time_Set=function(){return(e._ResourceLimits_Time_Set=e.asm.ok).apply(null,arguments)},e._ResourceLimits_Width_Get=function(){return(e._ResourceLimits_Width_Get=e.asm.pk).apply(null,arguments)},e._ResourceLimits_Width_Set=function(){return(e._ResourceLimits_Width_Set=e.asm.qk).apply(null,arguments)},e._ResourceLimits_LimitMemory=function(){return(e._ResourceLimits_LimitMemory=e.asm.rk).apply(null,arguments)},e._DrawingSettings_Create=function(){return(e._DrawingSettings_Create=e.asm.sk).apply(null,arguments)},e._DrawingSettings_Dispose=function(){return(e._DrawingSettings_Dispose=e.asm.tk).apply(null,arguments)},e._DrawingSettings_BorderColor_Get=function(){return(e._DrawingSettings_BorderColor_Get=e.asm.uk).apply(null,arguments)},e._DrawingSettings_BorderColor_Set=function(){return(e._DrawingSettings_BorderColor_Set=e.asm.vk).apply(null,arguments)},e._DrawingSettings_FillColor_Get=function(){return(e._DrawingSettings_FillColor_Get=e.asm.wk).apply(null,arguments)},e._DrawingSettings_FillColor_Set=function(){return(e._DrawingSettings_FillColor_Set=e.asm.xk).apply(null,arguments)},e._DrawingSettings_FillRule_Get=function(){return(e._DrawingSettings_FillRule_Get=e.asm.yk).apply(null,arguments)},e._DrawingSettings_FillRule_Set=function(){return(e._DrawingSettings_FillRule_Set=e.asm.zk).apply(null,arguments)},e._DrawingSettings_Font_Get=function(){return(e._DrawingSettings_Font_Get=e.asm.Ak).apply(null,arguments)},e._DrawingSettings_Font_Set=function(){return(e._DrawingSettings_Font_Set=e.asm.Bk).apply(null,arguments)},e._DrawingSettings_FontFamily_Get=function(){return(e._DrawingSettings_FontFamily_Get=e.asm.Ck).apply(null,arguments)},e._DrawingSettings_FontFamily_Set=function(){return(e._DrawingSettings_FontFamily_Set=e.asm.Dk).apply(null,arguments)},e._DrawingSettings_FontPointsize_Get=function(){return(e._DrawingSettings_FontPointsize_Get=e.asm.Ek).apply(null,arguments)},e._DrawingSettings_FontPointsize_Set=function(){return(e._DrawingSettings_FontPointsize_Set=e.asm.Fk).apply(null,arguments)},e._DrawingSettings_FontStyle_Get=function(){return(e._DrawingSettings_FontStyle_Get=e.asm.Gk).apply(null,arguments)},e._DrawingSettings_FontStyle_Set=function(){return(e._DrawingSettings_FontStyle_Set=e.asm.Hk).apply(null,arguments)},e._DrawingSettings_FontWeight_Get=function(){return(e._DrawingSettings_FontWeight_Get=e.asm.Ik).apply(null,arguments)},e._DrawingSettings_FontWeight_Set=function(){return(e._DrawingSettings_FontWeight_Set=e.asm.Jk).apply(null,arguments)},e._DrawingSettings_StrokeAntiAlias_Get=function(){return(e._DrawingSettings_StrokeAntiAlias_Get=e.asm.Kk).apply(null,arguments)},e._DrawingSettings_StrokeAntiAlias_Set=function(){return(e._DrawingSettings_StrokeAntiAlias_Set=e.asm.Lk).apply(null,arguments)},e._DrawingSettings_StrokeColor_Get=function(){return(e._DrawingSettings_StrokeColor_Get=e.asm.Mk).apply(null,arguments)},e._DrawingSettings_StrokeColor_Set=function(){return(e._DrawingSettings_StrokeColor_Set=e.asm.Nk).apply(null,arguments)},e._DrawingSettings_StrokeDashOffset_Get=function(){return(e._DrawingSettings_StrokeDashOffset_Get=e.asm.Ok).apply(null,arguments)},e._DrawingSettings_StrokeDashOffset_Set=function(){return(e._DrawingSettings_StrokeDashOffset_Set=e.asm.Pk).apply(null,arguments)},e._DrawingSettings_StrokeLineCap_Get=function(){return(e._DrawingSettings_StrokeLineCap_Get=e.asm.Qk).apply(null,arguments)},e._DrawingSettings_StrokeLineCap_Set=function(){return(e._DrawingSettings_StrokeLineCap_Set=e.asm.Rk).apply(null,arguments)},e._DrawingSettings_StrokeLineJoin_Get=function(){return(e._DrawingSettings_StrokeLineJoin_Get=e.asm.Sk).apply(null,arguments)},e._DrawingSettings_StrokeLineJoin_Set=function(){return(e._DrawingSettings_StrokeLineJoin_Set=e.asm.Tk).apply(null,arguments)},e._DrawingSettings_StrokeMiterLimit_Get=function(){return(e._DrawingSettings_StrokeMiterLimit_Get=e.asm.Uk).apply(null,arguments)},e._DrawingSettings_StrokeMiterLimit_Set=function(){return(e._DrawingSettings_StrokeMiterLimit_Set=e.asm.Vk).apply(null,arguments)},e._DrawingSettings_StrokeWidth_Get=function(){return(e._DrawingSettings_StrokeWidth_Get=e.asm.Wk).apply(null,arguments)},e._DrawingSettings_StrokeWidth_Set=function(){return(e._DrawingSettings_StrokeWidth_Set=e.asm.Xk).apply(null,arguments)},e._DrawingSettings_TextAntiAlias_Get=function(){return(e._DrawingSettings_TextAntiAlias_Get=e.asm.Yk).apply(null,arguments)},e._DrawingSettings_TextAntiAlias_Set=function(){return(e._DrawingSettings_TextAntiAlias_Set=e.asm.Zk).apply(null,arguments)},e._DrawingSettings_TextDirection_Get=function(){return(e._DrawingSettings_TextDirection_Get=e.asm._k).apply(null,arguments)},e._DrawingSettings_TextDirection_Set=function(){return(e._DrawingSettings_TextDirection_Set=e.asm.$k).apply(null,arguments)},e._DrawingSettings_TextEncoding_Get=function(){return(e._DrawingSettings_TextEncoding_Get=e.asm.al).apply(null,arguments)},e._DrawingSettings_TextEncoding_Set=function(){return(e._DrawingSettings_TextEncoding_Set=e.asm.bl).apply(null,arguments)},e._DrawingSettings_TextGravity_Get=function(){return(e._DrawingSettings_TextGravity_Get=e.asm.cl).apply(null,arguments)},e._DrawingSettings_TextGravity_Set=function(){return(e._DrawingSettings_TextGravity_Set=e.asm.dl).apply(null,arguments)},e._DrawingSettings_TextInterlineSpacing_Get=function(){return(e._DrawingSettings_TextInterlineSpacing_Get=e.asm.el).apply(null,arguments)},e._DrawingSettings_TextInterlineSpacing_Set=function(){return(e._DrawingSettings_TextInterlineSpacing_Set=e.asm.fl).apply(null,arguments)},e._DrawingSettings_TextInterwordSpacing_Get=function(){return(e._DrawingSettings_TextInterwordSpacing_Get=e.asm.gl).apply(null,arguments)},e._DrawingSettings_TextInterwordSpacing_Set=function(){return(e._DrawingSettings_TextInterwordSpacing_Set=e.asm.hl).apply(null,arguments)},e._DrawingSettings_TextKerning_Get=function(){return(e._DrawingSettings_TextKerning_Get=e.asm.il).apply(null,arguments)},e._DrawingSettings_TextKerning_Set=function(){return(e._DrawingSettings_TextKerning_Set=e.asm.jl).apply(null,arguments)},e._DrawingSettings_TextUnderColor_Get=function(){return(e._DrawingSettings_TextUnderColor_Get=e.asm.kl).apply(null,arguments)},e._DrawingSettings_TextUnderColor_Set=function(){return(e._DrawingSettings_TextUnderColor_Set=e.asm.ll).apply(null,arguments)},e._DrawingSettings_SetAffine=function(){return(e._DrawingSettings_SetAffine=e.asm.ml).apply(null,arguments)},e._DrawingSettings_SetFillPattern=function(){return(e._DrawingSettings_SetFillPattern=e.asm.nl).apply(null,arguments)},e._DrawingSettings_SetStrokeDashArray=function(){return(e._DrawingSettings_SetStrokeDashArray=e.asm.ol).apply(null,arguments)},e._DrawingSettings_SetStrokePattern=function(){return(e._DrawingSettings_SetStrokePattern=e.asm.pl).apply(null,arguments)},e._DrawingSettings_SetText=function(){return(e._DrawingSettings_SetText=e.asm.ql).apply(null,arguments)},e._MagickSettings_Create=function(){return(e._MagickSettings_Create=e.asm.rl).apply(null,arguments)},e._MagickSettings_Dispose=function(){return(e._MagickSettings_Dispose=e.asm.sl).apply(null,arguments)},e._MagickSettings_AntiAlias_Get=function(){return(e._MagickSettings_AntiAlias_Get=e.asm.tl).apply(null,arguments)},e._MagickSettings_AntiAlias_Set=function(){return(e._MagickSettings_AntiAlias_Set=e.asm.ul).apply(null,arguments)},e._MagickSettings_BackgroundColor_Get=function(){return(e._MagickSettings_BackgroundColor_Get=e.asm.vl).apply(null,arguments)},e._MagickSettings_BackgroundColor_Set=function(){return(e._MagickSettings_BackgroundColor_Set=e.asm.wl).apply(null,arguments)},e._MagickSettings_ColorSpace_Get=function(){return(e._MagickSettings_ColorSpace_Get=e.asm.xl).apply(null,arguments)},e._MagickSettings_ColorSpace_Set=function(){return(e._MagickSettings_ColorSpace_Set=e.asm.yl).apply(null,arguments)},e._MagickSettings_ColorType_Get=function(){return(e._MagickSettings_ColorType_Get=e.asm.zl).apply(null,arguments)},e._MagickSettings_ColorType_Set=function(){return(e._MagickSettings_ColorType_Set=e.asm.Al).apply(null,arguments)},e._MagickSettings_Compression_Get=function(){return(e._MagickSettings_Compression_Get=e.asm.Bl).apply(null,arguments)},e._MagickSettings_Compression_Set=function(){return(e._MagickSettings_Compression_Set=e.asm.Cl).apply(null,arguments)},e._MagickSettings_Debug_Get=function(){return(e._MagickSettings_Debug_Get=e.asm.Dl).apply(null,arguments)},e._MagickSettings_Debug_Set=function(){return(e._MagickSettings_Debug_Set=e.asm.El).apply(null,arguments)},e._MagickSettings_Density_Get=function(){return(e._MagickSettings_Density_Get=e.asm.Fl).apply(null,arguments)},e._MagickSettings_Density_Set=function(){return(e._MagickSettings_Density_Set=e.asm.Gl).apply(null,arguments)},e._MagickSettings_Depth_Get=function(){return(e._MagickSettings_Depth_Get=e.asm.Hl).apply(null,arguments)},e._MagickSettings_Depth_Set=function(){return(e._MagickSettings_Depth_Set=e.asm.Il).apply(null,arguments)},e._MagickSettings_Endian_Get=function(){return(e._MagickSettings_Endian_Get=e.asm.Jl).apply(null,arguments)},e._MagickSettings_Endian_Set=function(){return(e._MagickSettings_Endian_Set=e.asm.Kl).apply(null,arguments)},e._MagickSettings_Extract_Get=function(){return(e._MagickSettings_Extract_Get=e.asm.Ll).apply(null,arguments)},e._MagickSettings_Extract_Set=function(){return(e._MagickSettings_Extract_Set=e.asm.Ml).apply(null,arguments)},e._MagickSettings_Format_Get=function(){return(e._MagickSettings_Format_Get=e.asm.Nl).apply(null,arguments)},e._MagickSettings_Format_Set=function(){return(e._MagickSettings_Format_Set=e.asm.Ol).apply(null,arguments)},e._MagickSettings_Font_Get=function(){return(e._MagickSettings_Font_Get=e.asm.Pl).apply(null,arguments)},e._MagickSettings_Font_Set=function(){return(e._MagickSettings_Font_Set=e.asm.Ql).apply(null,arguments)},e._MagickSettings_FontPointsize_Get=function(){return(e._MagickSettings_FontPointsize_Get=e.asm.Rl).apply(null,arguments)},e._MagickSettings_FontPointsize_Set=function(){return(e._MagickSettings_FontPointsize_Set=e.asm.Sl).apply(null,arguments)},e._MagickSettings_Interlace_Get=function(){return(e._MagickSettings_Interlace_Get=e.asm.Tl).apply(null,arguments)},e._MagickSettings_Interlace_Set=function(){return(e._MagickSettings_Interlace_Set=e.asm.Ul).apply(null,arguments)},e._MagickSettings_Monochrome_Get=function(){return(e._MagickSettings_Monochrome_Get=e.asm.Vl).apply(null,arguments)},e._MagickSettings_Monochrome_Set=function(){return(e._MagickSettings_Monochrome_Set=e.asm.Wl).apply(null,arguments)},e._MagickSettings_Verbose_Get=function(){return(e._MagickSettings_Verbose_Get=e.asm.Xl).apply(null,arguments)},e._MagickSettings_Verbose_Set=function(){return(e._MagickSettings_Verbose_Set=e.asm.Yl).apply(null,arguments)},e._MagickSettings_SetColorFuzz=function(){return(e._MagickSettings_SetColorFuzz=e.asm.Zl).apply(null,arguments)},e._MagickSettings_SetFileName=function(){return(e._MagickSettings_SetFileName=e.asm._l).apply(null,arguments)},e._MagickSettings_SetNumberScenes=function(){return(e._MagickSettings_SetNumberScenes=e.asm.$l).apply(null,arguments)},e._MagickSettings_SetOption=function(){return(e._MagickSettings_SetOption=e.asm.am).apply(null,arguments)},e._MagickSettings_SetPage=function(){return(e._MagickSettings_SetPage=e.asm.bm).apply(null,arguments)},e._MagickSettings_SetPing=function(){return(e._MagickSettings_SetPing=e.asm.cm).apply(null,arguments)},e._MagickSettings_SetQuality=function(){return(e._MagickSettings_SetQuality=e.asm.dm).apply(null,arguments)},e._MagickSettings_SetScenes=function(){return(e._MagickSettings_SetScenes=e.asm.em).apply(null,arguments)},e._MagickSettings_SetScene=function(){return(e._MagickSettings_SetScene=e.asm.fm).apply(null,arguments)},e._MagickSettings_SetSize=function(){return(e._MagickSettings_SetSize=e.asm.gm).apply(null,arguments)},e._MontageSettings_Create=function(){return(e._MontageSettings_Create=e.asm.hm).apply(null,arguments)},e._MontageSettings_Dispose=function(){return(e._MontageSettings_Dispose=e.asm.im).apply(null,arguments)},e._MontageSettings_SetBackgroundColor=function(){return(e._MontageSettings_SetBackgroundColor=e.asm.jm).apply(null,arguments)},e._MontageSettings_SetBorderColor=function(){return(e._MontageSettings_SetBorderColor=e.asm.km).apply(null,arguments)},e._MontageSettings_SetBorderWidth=function(){return(e._MontageSettings_SetBorderWidth=e.asm.lm).apply(null,arguments)},e._MontageSettings_SetFillColor=function(){return(e._MontageSettings_SetFillColor=e.asm.mm).apply(null,arguments)},e._MontageSettings_SetFont=function(){return(e._MontageSettings_SetFont=e.asm.nm).apply(null,arguments)},e._MontageSettings_SetFontPointsize=function(){return(e._MontageSettings_SetFontPointsize=e.asm.om).apply(null,arguments)},e._MontageSettings_SetFrameGeometry=function(){return(e._MontageSettings_SetFrameGeometry=e.asm.pm).apply(null,arguments)},e._MontageSettings_SetGeometry=function(){return(e._MontageSettings_SetGeometry=e.asm.qm).apply(null,arguments)},e._MontageSettings_SetGravity=function(){return(e._MontageSettings_SetGravity=e.asm.rm).apply(null,arguments)},e._MontageSettings_SetShadow=function(){return(e._MontageSettings_SetShadow=e.asm.sm).apply(null,arguments)},e._MontageSettings_SetStrokeColor=function(){return(e._MontageSettings_SetStrokeColor=e.asm.tm).apply(null,arguments)},e._MontageSettings_SetTextureFileName=function(){return(e._MontageSettings_SetTextureFileName=e.asm.um).apply(null,arguments)},e._MontageSettings_SetTileGeometry=function(){return(e._MontageSettings_SetTileGeometry=e.asm.vm).apply(null,arguments)},e._MontageSettings_SetTitle=function(){return(e._MontageSettings_SetTitle=e.asm.wm).apply(null,arguments)},e._QuantizeSettings_SetColors=function(){return(e._QuantizeSettings_SetColors=e.asm.xm).apply(null,arguments)},e._QuantizeSettings_SetColorSpace=function(){return(e._QuantizeSettings_SetColorSpace=e.asm.ym).apply(null,arguments)},e._QuantizeSettings_SetDitherMethod=function(){return(e._QuantizeSettings_SetDitherMethod=e.asm.zm).apply(null,arguments)},e._QuantizeSettings_SetMeasureErrors=function(){return(e._QuantizeSettings_SetMeasureErrors=e.asm.Am).apply(null,arguments)},e._QuantizeSettings_SetTreeDepth=function(){return(e._QuantizeSettings_SetTreeDepth=e.asm.Bm).apply(null,arguments)},e._ChannelMoments_Centroid_Get=function(){return(e._ChannelMoments_Centroid_Get=e.asm.Cm).apply(null,arguments)},e._ChannelMoments_EllipseAngle_Get=function(){return(e._ChannelMoments_EllipseAngle_Get=e.asm.Dm).apply(null,arguments)},e._ChannelMoments_EllipseAxis_Get=function(){return(e._ChannelMoments_EllipseAxis_Get=e.asm.Em).apply(null,arguments)},e._ChannelMoments_EllipseEccentricity_Get=function(){return(e._ChannelMoments_EllipseEccentricity_Get=e.asm.Fm).apply(null,arguments)},e._ChannelMoments_EllipseIntensity_Get=function(){return(e._ChannelMoments_EllipseIntensity_Get=e.asm.Gm).apply(null,arguments)},e._ChannelMoments_GetHuInvariants=function(){return(e._ChannelMoments_GetHuInvariants=e.asm.Hm).apply(null,arguments)},e._ChannelPerceptualHash_GetHclpHuPhash=function(){return(e._ChannelPerceptualHash_GetHclpHuPhash=e.asm.Im).apply(null,arguments)},e._ChannelPerceptualHash_GetSrgbHuPhash=function(){return(e._ChannelPerceptualHash_GetSrgbHuPhash=e.asm.Jm).apply(null,arguments)},e._ChannelStatistics_Depth_Get=function(){return(e._ChannelStatistics_Depth_Get=e.asm.Km).apply(null,arguments)},e._ChannelStatistics_Entropy_Get=function(){return(e._ChannelStatistics_Entropy_Get=e.asm.Lm).apply(null,arguments)},e._ChannelStatistics_Kurtosis_Get=function(){return(e._ChannelStatistics_Kurtosis_Get=e.asm.Mm).apply(null,arguments)},e._ChannelStatistics_Maximum_Get=function(){return(e._ChannelStatistics_Maximum_Get=e.asm.Nm).apply(null,arguments)},e._ChannelStatistics_Mean_Get=function(){return(e._ChannelStatistics_Mean_Get=e.asm.Om).apply(null,arguments)},e._ChannelStatistics_Minimum_Get=function(){return(e._ChannelStatistics_Minimum_Get=e.asm.Pm).apply(null,arguments)},e._ChannelStatistics_Skewness_Get=function(){return(e._ChannelStatistics_Skewness_Get=e.asm.Qm).apply(null,arguments)},e._ChannelStatistics_StandardDeviation_Get=function(){return(e._ChannelStatistics_StandardDeviation_Get=e.asm.Rm).apply(null,arguments)},e._Moments_DisposeList=function(){return(e._Moments_DisposeList=e.asm.Sm).apply(null,arguments)},e._Moments_GetInstance=function(){return(e._Moments_GetInstance=e.asm.Tm).apply(null,arguments)},e._PerceptualHash_DisposeList=function(){return(e._PerceptualHash_DisposeList=e.asm.Um).apply(null,arguments)},e._PerceptualHash_GetInstance=function(){return(e._PerceptualHash_GetInstance=e.asm.Vm).apply(null,arguments)},e._Statistics_DisposeList=function(){return(e._Statistics_DisposeList=e.asm.Wm).apply(null,arguments)},e._Statistics_GetInstance=function(){return(e._Statistics_GetInstance=e.asm.Xm).apply(null,arguments)},e._ConnectedComponent_DisposeList=function(){return(e._ConnectedComponent_DisposeList=e.asm.Ym).apply(null,arguments)},e._ConnectedComponent_GetArea=function(){return(e._ConnectedComponent_GetArea=e.asm.Zm).apply(null,arguments)},e._ConnectedComponent_GetCentroid=function(){return(e._ConnectedComponent_GetCentroid=e.asm._m).apply(null,arguments)},e._ConnectedComponent_GetColor=function(){return(e._ConnectedComponent_GetColor=e.asm.$m).apply(null,arguments)},e._ConnectedComponent_GetHeight=function(){return(e._ConnectedComponent_GetHeight=e.asm.an).apply(null,arguments)},e._ConnectedComponent_GetId=function(){return(e._ConnectedComponent_GetId=e.asm.bn).apply(null,arguments)},e._ConnectedComponent_GetWidth=function(){return(e._ConnectedComponent_GetWidth=e.asm.cn).apply(null,arguments)},e._ConnectedComponent_GetX=function(){return(e._ConnectedComponent_GetX=e.asm.dn).apply(null,arguments)},e._ConnectedComponent_GetY=function(){return(e._ConnectedComponent_GetY=e.asm.en).apply(null,arguments)},e._ConnectedComponent_GetInstance=function(){return(e._ConnectedComponent_GetInstance=e.asm.fn).apply(null,arguments)},e._MagickGeometry_Create=function(){return(e._MagickGeometry_Create=e.asm.gn).apply(null,arguments)},e._MagickGeometry_Dispose=function(){return(e._MagickGeometry_Dispose=e.asm.hn).apply(null,arguments)},e._MagickGeometry_X_Get=function(){return(e._MagickGeometry_X_Get=e.asm.jn).apply(null,arguments)},e._MagickGeometry_Y_Get=function(){return(e._MagickGeometry_Y_Get=e.asm.kn).apply(null,arguments)},e._MagickGeometry_Width_Get=function(){return(e._MagickGeometry_Width_Get=e.asm.ln).apply(null,arguments)},e._MagickGeometry_Height_Get=function(){return(e._MagickGeometry_Height_Get=e.asm.mn).apply(null,arguments)},e._MagickGeometry_Initialize=function(){return(e._MagickGeometry_Initialize=e.asm.nn).apply(null,arguments)},e._MagickRectangle_Dispose=function(){return(e._MagickRectangle_Dispose=e.asm.on).apply(null,arguments)},e._MagickRectangle_X_Get=function(){return(e._MagickRectangle_X_Get=e.asm.pn).apply(null,arguments)},e._MagickRectangle_X_Set=function(){return(e._MagickRectangle_X_Set=e.asm.qn).apply(null,arguments)},e._MagickRectangle_Y_Get=function(){return(e._MagickRectangle_Y_Get=e.asm.rn).apply(null,arguments)},e._MagickRectangle_Y_Set=function(){return(e._MagickRectangle_Y_Set=e.asm.sn).apply(null,arguments)},e._MagickRectangle_Width_Get=function(){return(e._MagickRectangle_Width_Get=e.asm.tn).apply(null,arguments)},e._MagickRectangle_Width_Set=function(){return(e._MagickRectangle_Width_Set=e.asm.un).apply(null,arguments)},e._MagickRectangle_Height_Get=function(){return(e._MagickRectangle_Height_Get=e.asm.vn).apply(null,arguments)},e._MagickRectangle_Height_Set=function(){return(e._MagickRectangle_Height_Set=e.asm.wn).apply(null,arguments)},e._MagickRectangle_FromPageSize=function(){return(e._MagickRectangle_FromPageSize=e.asm.xn).apply(null,arguments)},e._OffsetInfo_Create=function(){return(e._OffsetInfo_Create=e.asm.yn).apply(null,arguments)},e._OffsetInfo_Dispose=function(){return(e._OffsetInfo_Dispose=e.asm.zn).apply(null,arguments)},e._OffsetInfo_SetX=function(){return(e._OffsetInfo_SetX=e.asm.An).apply(null,arguments)},e._OffsetInfo_SetY=function(){return(e._OffsetInfo_SetY=e.asm.Bn).apply(null,arguments)},e._PointInfo_X_Get=function(){return(e._PointInfo_X_Get=e.asm.Cn).apply(null,arguments)},e._PointInfo_Y_Get=function(){return(e._PointInfo_Y_Get=e.asm.Dn).apply(null,arguments)},e._PrimaryInfo_Dispose=function(){return(e._PrimaryInfo_Dispose=e.asm.En).apply(null,arguments)},e._PrimaryInfo_X_Get=function(){return(e._PrimaryInfo_X_Get=e.asm.Fn).apply(null,arguments)},e._PrimaryInfo_X_Set=function(){return(e._PrimaryInfo_X_Set=e.asm.Gn).apply(null,arguments)},e._PrimaryInfo_Y_Get=function(){return(e._PrimaryInfo_Y_Get=e.asm.Hn).apply(null,arguments)},e._PrimaryInfo_Y_Set=function(){return(e._PrimaryInfo_Y_Set=e.asm.In).apply(null,arguments)},e._PrimaryInfo_Z_Get=function(){return(e._PrimaryInfo_Z_Get=e.asm.Jn).apply(null,arguments)},e._PrimaryInfo_Z_Set=function(){return(e._PrimaryInfo_Z_Set=e.asm.Kn).apply(null,arguments)},e._StringInfo_Length_Get=function(){return(e._StringInfo_Length_Get=e.asm.Ln).apply(null,arguments)},e._StringInfo_Datum_Get=function(){return(e._StringInfo_Datum_Get=e.asm.Mn).apply(null,arguments)},e._TypeMetric_Dispose=function(){return(e._TypeMetric_Dispose=e.asm.Nn).apply(null,arguments)},e._TypeMetric_Ascent_Get=function(){return(e._TypeMetric_Ascent_Get=e.asm.On).apply(null,arguments)},e._TypeMetric_Descent_Get=function(){return(e._TypeMetric_Descent_Get=e.asm.Pn).apply(null,arguments)},e._TypeMetric_MaxHorizontalAdvance_Get=function(){return(e._TypeMetric_MaxHorizontalAdvance_Get=e.asm.Qn).apply(null,arguments)},e._TypeMetric_TextHeight_Get=function(){return(e._TypeMetric_TextHeight_Get=e.asm.Rn).apply(null,arguments)},e._TypeMetric_TextWidth_Get=function(){return(e._TypeMetric_TextWidth_Get=e.asm.Sn).apply(null,arguments)},e._TypeMetric_UnderlinePosition_Get=function(){return(e._TypeMetric_UnderlinePosition_Get=e.asm.Tn).apply(null,arguments)},e._TypeMetric_UnderlineThickness_Get=function(){return(e._TypeMetric_UnderlineThickness_Get=e.asm.Un).apply(null,arguments)};var yr=function(){return(yr=e.asm.Vn).apply(null,arguments)},bt=function(){return(bt=e.asm.Wn).apply(null,arguments)},Jt=function(){return(Jt=e.asm.Xn).apply(null,arguments)},Et=function(){return(Et=e.asm.Yn).apply(null,arguments)};e.__embind_initialize_bindings=function(){return(e.__embind_initialize_bindings=e.asm.Zn).apply(null,arguments)};var wr=function(){return(wr=e.asm._n).apply(null,arguments)},U=function(){return(U=e.asm.$n).apply(null,arguments)},F=function(){return(F=e.asm.ao).apply(null,arguments)},H=function(){return(H=e.asm.bo).apply(null,arguments)},kr=function(){return(kr=e.asm.co).apply(null,arguments)},Sr=function(){return(Sr=e.asm.eo).apply(null,arguments)};e.___emscripten_embedded_file_data=4508592;function Ss(n,r,i,s){var u=F();try{z(n)(r,i,s)}catch(_){if(H(u),_!==_+0)throw _;U(1,0)}}function vs(n,r,i,s){var u=F();try{return z(n)(r,i,s)}catch(_){if(H(u),_!==_+0)throw _;U(1,0)}}function Ms(n,r,i){var s=F();try{return z(n)(r,i)}catch(u){if(H(s),u!==u+0)throw u;U(1,0)}}function Is(n,r){var i=F();try{return z(n)(r)}catch(s){if(H(i),s!==s+0)throw s;U(1,0)}}function Ds(n,r){var i=F();try{z(n)(r)}catch(s){if(H(i),s!==s+0)throw s;U(1,0)}}function Gs(n,r,i){var s=F();try{z(n)(r,i)}catch(u){if(H(s),u!==u+0)throw u;U(1,0)}}function bs(n,r,i,s,u){var _=F();try{z(n)(r,i,s,u)}catch(g){if(H(_),g!==g+0)throw g;U(1,0)}}function Es(n,r,i,s,u){var _=F();try{return z(n)(r,i,s,u)}catch(g){if(H(_),g!==g+0)throw g;U(1,0)}}function As(n,r,i,s){var u=F();try{return z(n)(r,i,s)}catch(_){if(H(u),_!==_+0)throw _;return U(1,0),0n}}function Rs(n,r){var i=F();try{return z(n)(r)}catch(s){if(H(i),s!==s+0)throw s;return U(1,0),0n}}function Ps(n,r,i,s,u,_,g,f,d){var w=F();try{return z(n)(r,i,s,u,_,g,f,d)}catch(M){if(H(w),M!==M+0)throw M;U(1,0)}}function Cs(n){var r=F();try{return z(n)()}catch(i){if(H(r),i!==i+0)throw i;U(1,0)}}function Ts(n,r,i,s,u,_,g){var f=F();try{return z(n)(r,i,s,u,_,g)}catch(d){if(H(f),d!==d+0)throw d;U(1,0)}}function Ws(n,r,i,s,u){var _=F();try{return z(n)(r,i,s,u)}catch(g){if(H(_),g!==g+0)throw g;U(1,0)}}function Bs(n,r,i){var s=F();try{return z(n)(r,i)}catch(u){if(H(s),u!==u+0)throw u;U(1,0)}}function Ls(n,r,i){var s=F();try{z(n)(r,i)}catch(u){if(H(s),u!==u+0)throw u;U(1,0)}}function Ns(n,r,i,s,u,_){var g=F();try{return z(n)(r,i,s,u,_)}catch(f){if(H(g),f!==f+0)throw f;U(1,0)}}function zs(n,r,i){var s=F();try{return z(n)(r,i)}catch(u){if(H(s),u!==u+0)throw u;U(1,0)}}function Us(n){var r=F();try{z(n)()}catch(i){if(H(r),i!==i+0)throw i;U(1,0)}}function Fs(n,r,i,s,u,_){var g=F();try{z(n)(r,i,s,u,_)}catch(f){if(H(g),f!==f+0)throw f;U(1,0)}}function Hs(n,r,i,s,u,_,g,f){var d=F();try{return z(n)(r,i,s,u,_,g,f)}catch(w){if(H(d),w!==w+0)throw w;U(1,0)}}function xs(n,r,i,s,u,_,g,f,d,w){var M=F();try{return z(n)(r,i,s,u,_,g,f,d,w)}catch(G){if(H(M),G!==G+0)throw G;U(1,0)}}function Ys(n,r,i,s){var u=F();try{z(n)(r,i,s)}catch(_){if(H(u),_!==_+0)throw _;U(1,0)}}function js(n,r,i,s,u,_,g,f,d,w,M){var G=F();try{z(n)(r,i,s,u,_,g,f,d,w,M)}catch(D){if(H(G),D!==D+0)throw D;U(1,0)}}function Xs(n,r,i,s,u,_,g,f,d,w){var M=F();try{z(n)(r,i,s,u,_,g,f,d,w)}catch(G){if(H(M),G!==G+0)throw G;U(1,0)}}function qs(n,r,i,s,u,_,g){var f=F();try{z(n)(r,i,s,u,_,g)}catch(d){if(H(f),d!==d+0)throw d;U(1,0)}}function Vs(n,r,i,s,u,_,g,f){var d=F();try{z(n)(r,i,s,u,_,g,f)}catch(w){if(H(d),w!==w+0)throw w;U(1,0)}}function $s(n,r,i,s,u,_,g,f,d,w,M,G){var D=F();try{return z(n)(r,i,s,u,_,g,f,d,w,M,G)}catch(b){if(H(D),b!==b+0)throw b;U(1,0)}}function Qs(n,r,i,s,u,_){var g=F();try{return z(n)(r,i,s,u,_)}catch(f){if(H(g),f!==f+0)throw f;U(1,0)}}function Js(n,r,i,s,u,_,g,f,d){var w=F();try{z(n)(r,i,s,u,_,g,f,d)}catch(M){if(H(w),M!==M+0)throw M;U(1,0)}}e.addRunDependency=wt,e.removeRunDependency=nt,e.FS_createPath=o.createPath,e.FS_createDataFile=o.createDataFile,e.FS_createLazyFile=o.createLazyFile,e.FS_createDevice=o.createDevice,e.FS_unlink=o.unlink,e.addFunction=ws,e.setValue=ha,e.getValue=da,e.UTF8ToString=Ae,e.stringToUTF8=je,e.lengthBytesUTF8=Ne,e.FS_createPreloadedFile=o.createPreloadedFile,e.FS=o;var At;tt=function n(){At||vr(),At||(tt=n)};function vr(){if(Le>0||(ia(),Le>0))return;function n(){At||(At=!0,e.calledRun=!0,!Ut&&(sa(),l(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),ua()))}e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),n()},1)):n()}if(e.preInit)for(typeof e.preInit=="function"&&(e.preInit=[e.preInit]);e.preInit.length>0;)e.preInit.pop()();return vr(),a.ready}})(),Rt=(t=>(t[t.Undefined=0]="Undefined",t[t.Activate=1]="Activate",t[t.Associate=2]="Associate",t[t.Background=3]="Background",t[t.Copy=4]="Copy",t[t.Deactivate=5]="Deactivate",t[t.Discrete=6]="Discrete",t[t.Disassociate=7]="Disassociate",t[t.Extract=8]="Extract",t[t.Off=9]="Off",t[t.On=10]="On",t[t.Opaque=11]="Opaque",t[t.Remove=12]="Remove",t[t.Set=13]="Set",t[t.Shape=14]="Shape",t[t.Transparent=15]="Transparent",t))(Rt||{}),A=(t=>(t[t.Red=0]="Red",t[t.Cyan=0]="Cyan",t[t.Gray=0]="Gray",t[t.Green=1]="Green",t[t.Magenta=1]="Magenta",t[t.Blue=2]="Blue",t[t.Yellow=2]="Yellow",t[t.Black=3]="Black",t[t.Alpha=4]="Alpha",t[t.Index=5]="Index",t[t.Meta0=10]="Meta0",t[t.Meta1=11]="Meta1",t[t.Meta2=12]="Meta2",t[t.Meta3=13]="Meta3",t[t.Meta4=14]="Meta4",t[t.Meta5=15]="Meta5",t[t.Meta6=16]="Meta6",t[t.Meta7=17]="Meta7",t[t.Meta8=18]="Meta8",t[t.Meta9=19]="Meta9",t[t.Meta10=20]="Meta10",t[t.Meta11=21]="Meta11",t[t.Meta12=22]="Meta12",t[t.Meta13=23]="Meta13",t[t.Meta14=24]="Meta14",t[t.Meta15=25]="Meta15",t[t.Meta16=26]="Meta16",t[t.Meta17=27]="Meta17",t[t.Meta18=28]="Meta18",t[t.Meta19=29]="Meta19",t[t.Meta20=30]="Meta20",t[t.Meta21=31]="Meta21",t[t.Meta22=32]="Meta22",t[t.Meta23=33]="Meta23",t[t.Meta24=34]="Meta24",t[t.Meta25=35]="Meta25",t[t.Meta26=36]="Meta26",t[t.Meta27=37]="Meta27",t[t.Meta28=38]="Meta28",t[t.Meta29=39]="Meta29",t[t.Meta30=40]="Meta30",t[t.Meta31=41]="Meta31",t[t.Meta32=42]="Meta32",t[t.Meta33=43]="Meta33",t[t.Meta34=44]="Meta34",t[t.Meta35=45]="Meta35",t[t.Meta36=46]="Meta36",t[t.Meta37=47]="Meta37",t[t.Meta38=48]="Meta38",t[t.Meta39=49]="Meta39",t[t.Meta40=50]="Meta40",t[t.Meta41=51]="Meta41",t[t.Meta42=52]="Meta42",t[t.Meta43=53]="Meta43",t[t.Meta44=54]="Meta44",t[t.Meta45=55]="Meta45",t[t.Meta46=56]="Meta46",t[t.Meta47=57]="Meta47",t[t.Meta48=58]="Meta48",t[t.Meta49=59]="Meta49",t[t.Meta50=60]="Meta50",t[t.Meta51=61]="Meta51",t[t.Meta52=62]="Meta52",t[t.Composite=64]="Composite",t))(A||{}),ne=(t=>(t[t.Undefined=0]="Undefined",t[t.Red=1]="Red",t[t.Gray=1]="Gray",t[t.Cyan=1]="Cyan",t[t.Green=2]="Green",t[t.Magenta=2]="Magenta",t[t.Blue=4]="Blue",t[t.Yellow=4]="Yellow",t[t.Black=8]="Black",t[t.Alpha=16]="Alpha",t[t.Opacity=16]="Opacity",t[t.Index=32]="Index",t[t.Composite=31]="Composite",t[t.TrueAlpha=256]="TrueAlpha",t[t.RGB=7]="RGB",t[t.CMYK=15]="CMYK",t[t.CMYKA=31]="CMYKA",t[t.Meta0=1<<A.Meta0]="Meta0",t[t.Meta1=1<<A.Meta1]="Meta1",t[t.Meta2=1<<A.Meta2]="Meta2",t[t.Meta3=1<<A.Meta3]="Meta3",t[t.Meta4=1<<A.Meta4]="Meta4",t[t.Meta5=1<<A.Meta5]="Meta5",t[t.Meta6=1<<A.Meta6]="Meta6",t[t.Meta7=1<<A.Meta7]="Meta7",t[t.Meta8=1<<A.Meta8]="Meta8",t[t.Meta9=1<<A.Meta9]="Meta9",t[t.Meta10=1<<A.Meta10]="Meta10",t[t.Meta11=1<<A.Meta11]="Meta11",t[t.Meta12=1<<A.Meta12]="Meta12",t[t.Meta13=1<<A.Meta13]="Meta13",t[t.Meta14=1<<A.Meta14]="Meta14",t[t.Meta15=1<<A.Meta15]="Meta15",t[t.Meta16=1<<A.Meta16]="Meta16",t[t.Meta17=1<<A.Meta17]="Meta17",t[t.Meta18=1<<A.Meta18]="Meta18",t[t.Meta19=1<<A.Meta19]="Meta19",t[t.Meta20=1<<A.Meta20]="Meta20",t[t.Meta21=1<<A.Meta21]="Meta21",t[t.Meta22=1<<A.Meta22]="Meta22",t[t.Meta23=1<<A.Meta23]="Meta23",t[t.Meta24=1<<A.Meta24]="Meta24",t[t.Meta25=1<<A.Meta25]="Meta25",t[t.Meta26=1<<A.Meta26]="Meta26",t[t.Meta27=1<<A.Meta27]="Meta27",t[t.Meta28=1<<A.Meta28]="Meta28",t[t.Meta29=1<<A.Meta29]="Meta29",t[t.Meta30=1<<A.Meta30]="Meta30",t[t.Meta31=1<<A.Meta31]="Meta31",t[t.Meta32=1<<A.Meta32]="Meta32",t[t.Meta33=1<<A.Meta33]="Meta33",t[t.Meta34=1<<A.Meta34]="Meta34",t[t.Meta35=1<<A.Meta35]="Meta35",t[t.Meta36=1<<A.Meta36]="Meta36",t[t.Meta37=1<<A.Meta37]="Meta37",t[t.Meta38=1<<A.Meta38]="Meta38",t[t.Meta39=1<<A.Meta39]="Meta39",t[t.Meta40=1<<A.Meta40]="Meta40",t[t.Meta41=1<<A.Meta41]="Meta41",t[t.Meta42=1<<A.Meta42]="Meta42",t[t.Meta43=1<<A.Meta43]="Meta43",t[t.Meta44=1<<A.Meta44]="Meta44",t[t.Meta45=1<<A.Meta45]="Meta45",t[t.Meta46=1<<A.Meta46]="Meta46",t[t.Meta47=1<<A.Meta47]="Meta47",t[t.Meta48=1<<A.Meta48]="Meta48",t[t.Meta49=1<<A.Meta49]="Meta49",t[t.Meta50=1<<A.Meta50]="Meta50",t[t.Meta51=1<<A.Meta51]="Meta51",t[t.Meta52=1<<A.Meta52]="Meta52",t[t.All=134217727]="All",t))(ne||{});class Ot{constructor(a,e,l,m){this.red=a,this.green=e,this.blue=l,this.white=m}red;green;blue;white}var Pt=(t=>(t[t.Undefined=0]="Undefined",t[t.CMY=1]="CMY",t[t.CMYK=2]="CMYK",t[t.Gray=3]="Gray",t[t.HCL=4]="HCL",t[t.HCLp=5]="HCLp",t[t.HSB=6]="HSB",t[t.HSI=7]="HSI",t[t.HSL=8]="HSL",t[t.HSV=9]="HSV",t[t.HWB=10]="HWB",t[t.Lab=11]="Lab",t[t.LCH=12]="LCH",t[t.LCHab=13]="LCHab",t[t.LCHuv=14]="LCHuv",t[t.Log=15]="Log",t[t.LMS=16]="LMS",t[t.Luv=17]="Luv",t[t.OHTA=18]="OHTA",t[t.Rec601YCbCr=19]="Rec601YCbCr",t[t.Rec709YCbCr=20]="Rec709YCbCr",t[t.RGB=21]="RGB",t[t.scRGB=22]="scRGB",t[t.sRGB=23]="sRGB",t[t.Transparent=24]="Transparent",t[t.XyY=25]="XyY",t[t.XYZ=26]="XYZ",t[t.YCbCr=27]="YCbCr",t[t.YCC=28]="YCC",t[t.YDbDr=29]="YDbDr",t[t.YIQ=30]="YIQ",t[t.YPbPr=31]="YPbPr",t[t.YUV=32]="YUV",t[t.LinearGray=33]="LinearGray",t))(Pt||{}),$e=(t=>(t[t.Undefined=0]="Undefined",t[t.Alpha=1]="Alpha",t[t.Atop=2]="Atop",t[t.Blend=3]="Blend",t[t.Blur=4]="Blur",t[t.Bumpmap=5]="Bumpmap",t[t.ChangeMask=6]="ChangeMask",t[t.Clear=7]="Clear",t[t.ColorBurn=8]="ColorBurn",t[t.ColorDodge=9]="ColorDodge",t[t.Colorize=10]="Colorize",t[t.CopyBlack=11]="CopyBlack",t[t.CopyBlue=12]="CopyBlue",t[t.Copy=13]="Copy",t[t.CopyCyan=14]="CopyCyan",t[t.CopyGreen=15]="CopyGreen",t[t.CopyMagenta=16]="CopyMagenta",t[t.CopyAlpha=17]="CopyAlpha",t[t.CopyRed=18]="CopyRed",t[t.CopyYellow=19]="CopyYellow",t[t.Darken=20]="Darken",t[t.DarkenIntensity=21]="DarkenIntensity",t[t.Difference=22]="Difference",t[t.Displace=23]="Displace",t[t.Dissolve=24]="Dissolve",t[t.Distort=25]="Distort",t[t.DivideDst=26]="DivideDst",t[t.DivideSrc=27]="DivideSrc",t[t.DstAtop=28]="DstAtop",t[t.Dst=29]="Dst",t[t.DstIn=30]="DstIn",t[t.DstOut=31]="DstOut",t[t.DstOver=32]="DstOver",t[t.Exclusion=33]="Exclusion",t[t.HardLight=34]="HardLight",t[t.HardMix=35]="HardMix",t[t.Hue=36]="Hue",t[t.In=37]="In",t[t.Intensity=38]="Intensity",t[t.Lighten=39]="Lighten",t[t.LightenIntensity=40]="LightenIntensity",t[t.LinearBurn=41]="LinearBurn",t[t.LinearDodge=42]="LinearDodge",t[t.LinearLight=43]="LinearLight",t[t.Luminize=44]="Luminize",t[t.Mathematics=45]="Mathematics",t[t.MinusDst=46]="MinusDst",t[t.MinusSrc=47]="MinusSrc",t[t.Modulate=48]="Modulate",t[t.ModulusAdd=49]="ModulusAdd",t[t.ModulusSubtract=50]="ModulusSubtract",t[t.Multiply=51]="Multiply",t[t.No=52]="No",t[t.Out=53]="Out",t[t.Over=54]="Over",t[t.Overlay=55]="Overlay",t[t.PegtopLight=56]="PegtopLight",t[t.PinLight=57]="PinLight",t[t.Plus=58]="Plus",t[t.Replace=59]="Replace",t[t.Saturate=60]="Saturate",t[t.Screen=61]="Screen",t[t.SoftLight=62]="SoftLight",t[t.SrcAtop=63]="SrcAtop",t[t.Src=64]="Src",t[t.SrcIn=65]="SrcIn",t[t.SrcOut=66]="SrcOut",t[t.SrcOver=67]="SrcOver",t[t.Threshold=68]="Threshold",t[t.VividLight=69]="VividLight",t[t.Xor=70]="Xor",t[t.Stereo=71]="Stereo",t[t.Freeze=72]="Freeze",t[t.Interpolate=73]="Interpolate",t[t.Negate=74]="Negate",t[t.Reflect=75]="Reflect",t[t.SoftBurn=76]="SoftBurn",t[t.SoftDodge=77]="SoftDodge",t[t.Stamp=78]="Stamp",t[t.RMSE=79]="RMSE",t[t.SaliencyBlend=80]="SaliencyBlend",t[t.SeamlessBlend=81]="SeamlessBlend",t))($e||{}),Qe=(t=>(t[t.Warning=300]="Warning",t[t.ResourceLimitWarning=300]="ResourceLimitWarning",t[t.TypeWarning=305]="TypeWarning",t[t.OptionWarning=310]="OptionWarning",t[t.DelegateWarning=315]="DelegateWarning",t[t.MissingDelegateWarning=320]="MissingDelegateWarning",t[t.CorruptImageWarning=325]="CorruptImageWarning",t[t.FileOpenWarning=330]="FileOpenWarning",t[t.BlobWarning=335]="BlobWarning",t[t.StreamWarning=340]="StreamWarning",t[t.CacheWarning=345]="CacheWarning",t[t.CoderWarning=350]="CoderWarning",t[t.FilterWarning=352]="FilterWarning",t[t.ModuleWarning=355]="ModuleWarning",t[t.DrawWarning=360]="DrawWarning",t[t.ImageWarning=365]="ImageWarning",t[t.WandWarning=370]="WandWarning",t[t.RandomWarning=375]="RandomWarning",t[t.XServerWarning=380]="XServerWarning",t[t.MonitorWarning=385]="MonitorWarning",t[t.RegistryWarning=390]="RegistryWarning",t[t.ConfigureWarning=395]="ConfigureWarning",t[t.PolicyWarning=399]="PolicyWarning",t[t.Error=400]="Error",t[t.ResourceLimitError=400]="ResourceLimitError",t[t.TypeError=405]="TypeError",t[t.OptionError=410]="OptionError",t[t.DelegateError=415]="DelegateError",t[t.MissingDelegateError=420]="MissingDelegateError",t[t.CorruptImageError=425]="CorruptImageError",t[t.FileOpenError=430]="FileOpenError",t[t.BlobError=435]="BlobError",t[t.StreamError=440]="StreamError",t[t.CacheError=445]="CacheError",t[t.CoderError=450]="CoderError",t[t.FilterError=452]="FilterError",t[t.ModuleError=455]="ModuleError",t[t.DrawError=460]="DrawError",t[t.ImageError=465]="ImageError",t[t.WandError=470]="WandError",t[t.RandomError=475]="RandomError",t[t.XServerError=480]="XServerError",t[t.MonitorError=485]="MonitorError",t[t.RegistryError=490]="RegistryError",t[t.ConfigureError=495]="ConfigureError",t[t.PolicyError=499]="PolicyError",t))(Qe||{});class Z extends Error{_relatedErrors=[];constructor(a,e=Qe.Error){super(a),this.severity=e}severity;get relatedErrors(){return this._relatedErrors}_setRelatedErrors(a){this._relatedErrors=a}}class Ge{static get depth(){return c._api._Quantum_Depth_Get()}static get max(){return c._api._Quantum_Max_Get()}}function _e(t){return t===0?null:c._api.UTF8ToString(t)}function Ct(t,a,e){const l=t.lengthBytesUTF8(a)+1,m=t._malloc(l);try{return t.stringToUTF8(a,m,l),e(m)}finally{t._free(m)}}function N(t,a){return Ct(c._api,t,a)}class y{constructor(a,e,l,m,p){if(a!==void 0)if(typeof a=="string"){let h=0;try{h=c._api._MagickColor_Create(),N(a,k=>{if(c._api._MagickColor_Initialize(h,k)===0)throw new Z("invalid color specified");this.initialize(h)})}finally{c._api._free(h)}}else this.r=a,this.g=e??0,this.b=l??0,p===void 0?this.a=m??Ge.max:(this.k=m??0,this.a=p,this.isCmyk=!0)}r=0;g=0;b=0;a=0;k=0;isCmyk=!1;static _create(a){const e=new y;return e.initialize(a),e}toShortString(){return this.a!==Ge.max?this.toString():this.isCmyk?`cmyka(${this.r},${this.g},${this.b},${this.k})`:`#${this.toHex(this.r)}${this.toHex(this.g)}${this.toHex(this.b)}`}toString(){return this.isCmyk?`cmyka(${this.r},${this.g},${this.b},${this.k},${(this.a/Ge.max).toFixed(4)})`:`#${this.toHex(this.r)}${this.toHex(this.g)}${this.toHex(this.b)}${this.toHex(this.a)}`}_use(a){let e=0;try{e=c._api._MagickColor_Create(),c._api._MagickColor_Red_Set(e,this.r),c._api._MagickColor_Green_Set(e,this.g),c._api._MagickColor_Blue_Set(e,this.b),c._api._MagickColor_Alpha_Set(e,this.a),c._api._MagickColor_IsCMYK_Set(e,this.isCmyk?1:0),a(e)}finally{c._api._free(e)}}initialize(a){this.r=c._api._MagickColor_Red_Get(a),this.g=c._api._MagickColor_Green_Get(a),this.b=c._api._MagickColor_Blue_Get(a),this.a=c._api._MagickColor_Alpha_Get(a),this.isCmyk=c._api._MagickColor_IsCMYK_Get(a)===1}toHex(a){return a.toString(16).padStart(2,"0")}}var de=(t=>(t[t.NoValue=0]="NoValue",t[t.PercentValue=4096]="PercentValue",t[t.IgnoreAspectRatio=8192]="IgnoreAspectRatio",t[t.Less=16384]="Less",t[t.Greater=32768]="Greater",t[t.FillArea=65536]="FillArea",t[t.LimitPixels=131072]="LimitPixels",t[t.AspectRatio=1048576]="AspectRatio",t))(de||{});class oe{_width=0;_height=0;_x=0;_y=0;_aspectRatio=!1;_fillArea=!1;_greater=!1;_isPercentage=!1;_ignoreAspectRatio=!1;_less=!1;_limitPixels=!1;constructor(a,e,l,m){if(typeof a=="number"){if(l!==void 0&&m!==void 0?(this._width=l,this._height=m,this._x=a,this._y=e??0):(this._width=a,this._height=e??this._width,this._x=0,this._y=0),this._width<0)throw new Z("negative width is not allowed");if(this._height<0)throw new Z("negative height is not allowed")}else{const p=c._api._MagickGeometry_Create();try{N(a,h=>{const k=c._api._MagickGeometry_Initialize(p,h);if(k===de.NoValue)throw new Z("invalid geometry specified");this.hasFlag(k,de.AspectRatio)?this.initializeFromAspectRation(p,a):this.initialize(p,k)})}finally{c._api._MagickGeometry_Dispose(p)}}}get aspectRatio(){return this._aspectRatio}get fillArea(){return this._fillArea}set fillArea(a){this._fillArea=a}get greater(){return this._greater}set greater(a){this._greater=a}get height(){return this._height}set height(a){this._height=a}get ignoreAspectRatio(){return this._ignoreAspectRatio}set ignoreAspectRatio(a){this._ignoreAspectRatio=a}get isPercentage(){return this._isPercentage}set isPercentage(a){this._isPercentage=a}get less(){return this._less}set less(a){this._less=a}get limitPixels(){return this._limitPixels}set limitPixels(a){this._limitPixels=a}get width(){return this._width}set width(a){this._width=a}get x(){return this._x}set x(a){this._x=a}get y(){return this._y}set y(a){this._y=a}toString(){if(this._aspectRatio)return this._width+":"+this._height;let a="";return this._width>0&&(a+=this._width.toString()),this._height>0?a+="x"+this._height.toString():a+="x",(this._x!=0||this._y!=0)&&(this._x>=0&&(a+="+"),a+=this._x,this.y>=0&&(a+="+"),a+=this.y),this._fillArea&&(a+="^"),this._greater&&(a+=">"),this._isPercentage&&(a+="%"),this._ignoreAspectRatio&&(a+="!"),this._less&&(a+="<"),this._limitPixels&&(a+="@"),a}static _fromRectangle(a){if(a===0)throw new Z("unable to allocate memory");try{const e=c._api._MagickRectangle_Width_Get(a),l=c._api._MagickRectangle_Height_Get(a),m=c._api._MagickRectangle_X_Get(a),p=c._api._MagickRectangle_Y_Get(a);return new oe(m,p,e,l)}finally{c._api._MagickRectangle_Dispose(a)}}_toRectangle(a){const e=c._api._MagickRectangle_Create();if(e===0)throw new Z("unable to allocate memory");try{c._api._MagickRectangle_Width_Set(e,this._width),c._api._MagickRectangle_Height_Set(e,this._height),c._api._MagickRectangle_X_Set(e,this._x),c._api._MagickRectangle_Y_Set(e,this._y),a(e)}finally{c._api._MagickRectangle_Dispose(e)}}initialize(a,e){this._width=c._api._MagickGeometry_Width_Get(a),this._height=c._api._MagickGeometry_Height_Get(a),this._x=c._api._MagickGeometry_X_Get(a),this._y=c._api._MagickGeometry_Y_Get(a),this._ignoreAspectRatio=this.hasFlag(e,de.IgnoreAspectRatio),this._isPercentage=this.hasFlag(e,de.PercentValue),this._fillArea=this.hasFlag(e,de.FillArea),this._greater=this.hasFlag(e,de.Greater),this._less=this.hasFlag(e,de.Less),this._limitPixels=this.hasFlag(e,de.LimitPixels)}initializeFromAspectRation(a,e){this._aspectRatio=!0;const l=e.split(":");this._width=this.parseNumber(l[0]),this._height=this.parseNumber(l[1]),this._x=c._api._MagickGeometry_X_Get(a),this._y=c._api._MagickGeometry_Y_Get(a)}parseNumber(a){let e=0;for(;e<a.length&&!this.isNumber(a[e]);)e++;const l=e;for(;e<a.length&&this.isNumber(a[e]);)e++;return parseInt(a.substr(l,e-l))}isNumber(a){return a>="0"&&a<="9"}hasFlag(a,e){return(a&e)===e}}class me{constructor(a,e){this.x=a,this.y=e??a}x;y;static _create(a){return a===0?new me(0,0):new me(c._api._PointInfo_X_Get(a),c._api._PointInfo_Y_Get(a))}}class ot{constructor(a){this.area=c._api._ConnectedComponent_GetArea(a),this.centroid=me._create(c._api._ConnectedComponent_GetCentroid(a)),this.color=y._create(c._api._ConnectedComponent_GetColor(a)),this.height=c._api._ConnectedComponent_GetHeight(a),this.id=c._api._ConnectedComponent_GetId(a),this.width=c._api._ConnectedComponent_GetWidth(a),this.x=c._api._ConnectedComponent_GetX(a),this.y=c._api._ConnectedComponent_GetY(a)}area;centroid;color;height;id;width;x;y;static _create(a,e){const l=[];if(a===0)return l;for(let m=0;m<e;m++){const p=c._api._ConnectedComponent_GetInstance(a,m);p===0||c._api._ConnectedComponent_GetArea(p)<Number.EPSILON||l.push(new ot(p))}return l}toGeometry(){return new oe(this.x,this.y,this.width,this.height)}}class en{angleThreshold;areaThreshold;circularityThreshold;connectivity;diameterThreshold;eccentricityThreshold;majorAxisThreshold;meanColor;minorAxisThreshold;perimeterThreshold;constructor(a){this.connectivity=a}_removeArtifacts(a){this.angleThreshold!==void 0&&a.removeArtifact("connected-components:angle-threshold"),this.areaThreshold!==void 0&&a.removeArtifact("connected-components:area-threshold"),this.circularityThreshold!==void 0&&a.removeArtifact("connected-components:circularity-threshold"),this.diameterThreshold!==void 0&&a.removeArtifact("connected-components:diameter-threshold"),this.eccentricityThreshold!==void 0&&a.removeArtifact("connected-components:eccentricity-threshold"),this.majorAxisThreshold!==void 0&&a.removeArtifact("connected-components:major-axis-threshold"),this.meanColor!==void 0&&a.removeArtifact("connected-components:mean-color"),this.minorAxisThreshold!==void 0&&a.removeArtifact("connected-components:minor-axis-threshold"),this.perimeterThreshold!==void 0&&a.removeArtifact("connected-components:perimeter-threshold")}_setArtifacts(a){this.angleThreshold!==void 0&&a.setArtifact("connected-components:angle-threshold",this.angleThreshold.toString()),this.areaThreshold!==void 0&&a.setArtifact("connected-components:area-threshold",this.areaThreshold.toString()),this.circularityThreshold!==void 0&&a.setArtifact("connected-components:circularity-threshold",this.circularityThreshold.toString()),this.diameterThreshold!==void 0&&a.setArtifact("connected-components:diameter-threshold",this.diameterThreshold.toString()),this.eccentricityThreshold!==void 0&&a.setArtifact("connected-components:eccentricity-threshold",this.eccentricityThreshold.toString()),this.majorAxisThreshold!==void 0&&a.setArtifact("connected-components:major-axis-threshold",this.majorAxisThreshold.toString()),this.meanColor!==void 0&&a.setArtifact("connected-components:mean-color",this.meanColor.toString()),this.minorAxisThreshold!==void 0&&a.setArtifact("connected-components:minor-axis-threshold",this.minorAxisThreshold.toString()),this.perimeterThreshold!==void 0&&a.setArtifact("connected-components:perimeter-threshold",this.perimeterThreshold.toString())}}var Tt=(t=>(t[t.Undefined=0]="Undefined",t[t.PixelsPerInch=1]="PixelsPerInch",t[t.PixelsPerCentimeter=2]="PixelsPerCentimeter",t))(Tt||{});class tn{constructor(a,e,l){e===void 0?(this.x=a,this.y=a,this.units=Tt.PixelsPerInch):l!==void 0?(this.x=a,this.y=e,this.units=l):(this.x=a,this.y=a,this.units=e)}x;y;units}class he{static _disposeAfterExecution(a,e){try{const l=e(a);return l instanceof Promise?Promise.resolve(l).then(m=>(a.dispose(),m)):(a.dispose(),l)}catch(l){throw a.dispose(),l}}}class nn{_pointer;_bytes;_func;constructor(a,e,l){this._pointer=a,this._func=l,this._bytes=c._api.HEAPU8.subarray(a,a+e)}func(a){return a._bytes===void 0?a._func(new Uint8Array):a._func(a._bytes)}dispose(){this._pointer=c._api._MagickMemory_Relinquish(this._pointer)}}class Ce{disposeMethod;instance;constructor(a,e){this.instance=a,this.disposeMethod=e}get _instance(){if(this.instance>0)return this.instance;throw this.instance===-1&&this._instanceNotInitialized(),new Z("instance is disposed")}set _instance(a){this.disposeInstance(this.instance),this.instance=a}dispose(){this.instance=this.disposeInstance(this.instance)}_setInstance(a,e){e.check(()=>{this.dispose(),this.instance=a},()=>{this.disposeInstance(a)})}_instanceNotInitialized(){throw new Z("instance is not initialized")}disposeInstance(a){return a>0&&(this.onDispose!==void 0&&this.onDispose(),this.disposeMethod(a)),0}}class Er extends Ce{constructor(a){const e=c._api._DrawingSettings_Create(),l=c._api._DrawingSettings_Dispose;if(super(e,l),a.fillColor!==void 0&&a.fillColor._use(m=>{c._api._DrawingSettings_FillColor_Set(this._instance,m)}),a.font!==void 0){const m=fe._getFontFileName(a.font);N(m,p=>{c._api._DrawingSettings_Font_Set(this._instance,p)})}a.fontPointsize!==void 0&&c._api._DrawingSettings_FontPointsize_Set(this._instance,a.fontPointsize),a.strokeColor!==void 0&&a.strokeColor._use(m=>{c._api._DrawingSettings_StrokeColor_Set(this._instance,m)}),a.strokeWidth!==void 0&&c._api._DrawingSettings_StrokeWidth_Set(this._instance,a.strokeWidth)}}class Wt{backgroundColor;fillColor;font;fontPointsize;strokeColor;strokeWidth;static _create(a){const e=new Wt;return e.fillColor=a.fillColor,e.font=a.font,e.fontPointsize=a.fontPointsize,e.strokeColor=a.strokeColor,e.strokeWidth=a.strokeWidth,e}_use(a){const e=new Er(this);return he._disposeAfterExecution(e,a)}}class ye{instance;constructor(){this.instance=c._api._malloc(4),c._api.setValue(this.instance,0,"i32")}get ptr(){return this.instance}get value(){return c._api.getValue(this.instance,"i32")}static use(a){const e=new ye;try{return a(e)}finally{c._api._free(e.instance)}}}class C{pointer;constructor(a){this.pointer=a}get ptr(){return this.pointer.ptr}check(a,e){return this.isError()?e():a()}static usePointer(a,e){return ye.use(l=>{const m=a(l.ptr);return C.checkException(l,m,e)})}static use(a,e){return ye.use(l=>{const m=a(new C(l));return C.checkException(l,m,e)})}static checkException(a,e,l){if(!C.isRaised(a))return e;const m=C.getErrorSeverity(a.value);if(m>=Qe.Error)C.throw(a,m);else if(l!==void 0){const p=C.createError(a.value,m);l(p)}else C.dispose(a);return e}isError(){return C.isRaised(this.pointer)?C.getErrorSeverity(this.pointer.value)>=Qe.Error:!1}static getErrorSeverity(a){return c._api._MagickExceptionHelper_Severity(a)}static isRaised(a){return a.value!==0}static throw(a,e){const l=C.createError(a.value,e);throw C.dispose(a),l}static createError(a,e){const l=C.getMessage(a),m=new Z(l,e),p=c._api._MagickExceptionHelper_RelatedCount(a);if(p===0)return m;const h=[];for(let k=0;k<p;k++){const E=c._api._MagickExceptionHelper_Related(a,k),W=C.getErrorSeverity(E),V=C.createError(E,W);h.push(V)}return m._setRelatedErrors(h),m}static getMessage(a){const e=c._api._MagickExceptionHelper_Message(a),l=c._api._MagickExceptionHelper_Description(a);let m=_e(e);return l!==0&&(m+=`(${c._api.UTF8ToString(l)})`),m}static dispose(a){c._api._MagickExceptionHelper_Dispose(a.value)}}class _t extends Ce{constructor(a,e){const m=Wt._create(e)._use(h=>c._api._DrawingWand_Create(a._instance,h._instance)),p=c._api._DrawingWand_Dispose;super(m,p)}color(a,e,l){C.usePointer(m=>{c._api._DrawingWand_Color(this._instance,a,e,l,m)})}draw(a){a.forEach(e=>{e.draw(this)}),C.usePointer(e=>{c._api._DrawingWand_Render(this._instance,e)})}fillColor(a){C.usePointer(e=>{a._use(l=>{c._api._DrawingWand_FillColor(this._instance,l,e)})})}fillOpacity(a){C.usePointer(e=>{c._api._DrawingWand_FillOpacity(this._instance,a,e)})}font(a){C.usePointer(e=>{N(a,l=>{c._api._DrawingWand_Font(this._instance,l,e)})})}fontPointSize(a){C.usePointer(e=>{c._api._DrawingWand_FontPointSize(this._instance,a,e)})}gravity(a){C.usePointer(e=>{c._api._DrawingWand_Gravity(this._instance,a,e)})}line(a,e,l,m){C.usePointer(p=>{c._api._DrawingWand_Line(this._instance,a,e,l,m,p)})}point(a,e){C.usePointer(l=>{c._api._DrawingWand_Point(this._instance,a,e,l)})}rectangle(a,e,l,m){C.usePointer(p=>{c._api._DrawingWand_Rectangle(this._instance,a,e,l,m,p)})}roundRectangle(a,e,l,m,p,h){C.usePointer(k=>{c._api._DrawingWand_RoundRectangle(this._instance,a,e,l,m,p,h,k)})}strokeColor(a){C.usePointer(e=>{a._use(l=>{c._api._DrawingWand_StrokeColor(this._instance,l,e)})})}strokeWidth(a){C.usePointer(e=>{c._api._DrawingWand_StrokeWidth(this._instance,a,e)})}text(a,e,l){C.usePointer(m=>{N(l,p=>{c._api._DrawingWand_Text(this._instance,a,e,p,m)})})}textAlignment(a){C.usePointer(e=>{c._api._DrawingWand_TextAlignment(this._instance,a,e)})}textAntialias(a){C.usePointer(e=>{c._api._DrawingWand_TextAntialias(this._instance,a?1:0,e)})}textDecoration(a){C.usePointer(e=>{c._api._DrawingWand_TextDecoration(this._instance,a,e)})}textInterlineSpacing(a){C.usePointer(e=>{c._api._DrawingWand_TextInterlineSpacing(this._instance,a,e)})}textInterwordspacing(a){C.usePointer(e=>{c._api._DrawingWand_TextInterwordSpacing(this._instance,a,e)})}textKerning(a){C.usePointer(e=>{c._api._DrawingWand_TextKerning(this._instance,a,e)})}textUnderColor(a){C.usePointer(e=>{a._use(l=>{c._api._DrawingWand_TextUnderColor(this._instance,l,e)})})}static _create(a,e){return new _t(a,e)}}var Je=(t=>(t[t.Undefined=0]="Undefined",t[t.Forget=0]="Forget",t[t.Northwest=1]="Northwest",t[t.North=2]="North",t[t.Northeast=3]="Northeast",t[t.West=4]="West",t[t.Center=5]="Center",t[t.East=6]="East",t[t.Southwest=7]="Southwest",t[t.South=8]="South",t[t.Southeast=9]="Southeast",t))(Je||{});function*rn(t){for(const a of t)switch(a){case 2:yield"north";break;case 3:yield"north",yield"east";break;case 1:yield"north",yield"west";break;case 6:yield"east";break;case 4:yield"west";break;case 8:yield"south";break;case 9:yield"south",yield"east";break;case 7:yield"south",yield"west"}}class an{constructor(a,e){this.name=a,this.data=e}name;data}var we=(t=>(t.Unknown="UNKNOWN",t.ThreeFr="3FR",t.ThreeG2="3G2",t.ThreeGp="3GP",t.A="A",t.Aai="AAI",t.Ai="AI",t.Apng="APNG",t.Art="ART",t.Arw="ARW",t.Ashlar="ASHLAR",t.Avi="AVI",t.Avif="AVIF",t.Avs="AVS",t.B="B",t.Bayer="BAYER",t.Bayera="BAYERA",t.Bgr="BGR",t.Bgra="BGRA",t.Bgro="BGRO",t.Bmp="BMP",t.Bmp2="BMP2",t.Bmp3="BMP3",t.Brf="BRF",t.C="C",t.Cal="CAL",t.Cals="CALS",t.Canvas="CANVAS",t.Caption="CAPTION",t.Cin="CIN",t.Cip="CIP",t.Clip="CLIP",t.Cmyk="CMYK",t.Cmyka="CMYKA",t.Cr2="CR2",t.Cr3="CR3",t.Crw="CRW",t.Cube="CUBE",t.Cur="CUR",t.Cut="CUT",t.Data="DATA",t.Dcm="DCM",t.Dcr="DCR",t.Dcraw="DCRAW",t.Dcx="DCX",t.Dds="DDS",t.Dfont="DFONT",t.Dng="DNG",t.Dpx="DPX",t.Dxt1="DXT1",t.Dxt5="DXT5",t.Epdf="EPDF",t.Epi="EPI",t.Eps="EPS",t.Eps2="EPS2",t.Eps3="EPS3",t.Epsf="EPSF",t.Epsi="EPSI",t.Ept="EPT",t.Ept2="EPT2",t.Ept3="EPT3",t.Erf="ERF",t.Exr="EXR",t.Farbfeld="FARBFELD",t.Fax="FAX",t.Ff="FF",t.File="FILE",t.Fits="FITS",t.Fl32="FL32",t.Flv="FLV",t.Fractal="FRACTAL",t.Ftp="FTP",t.Ftxt="FTXT",t.Fts="FTS",t.G="G",t.G3="G3",t.G4="G4",t.Gif="GIF",t.Gif87="GIF87",t.Gradient="GRADIENT",t.Gray="GRAY",t.Graya="GRAYA",t.Group4="GROUP4",t.Hald="HALD",t.Hdr="HDR",t.Heic="HEIC",t.Heif="HEIF",t.Histogram="HISTOGRAM",t.Hrz="HRZ",t.Htm="HTM",t.Html="HTML",t.Http="HTTP",t.Https="HTTPS",t.Icb="ICB",t.Ico="ICO",t.Icon="ICON",t.Iiq="IIQ",t.Info="INFO",t.Inline="INLINE",t.Ipl="IPL",t.Isobrl="ISOBRL",t.Isobrl6="ISOBRL6",t.J2c="J2C",t.J2k="J2K",t.Jng="JNG",t.Jnx="JNX",t.Jp2="JP2",t.Jpc="JPC",t.Jpe="JPE",t.Jpeg="JPEG",t.Jpg="JPG",t.Jpm="JPM",t.Jps="JPS",t.Jpt="JPT",t.Json="JSON",t.Jxl="JXL",t.K="K",t.K25="K25",t.Kdc="KDC",t.Label="LABEL",t.M="M",t.M2v="M2V",t.M4v="M4V",t.Mac="MAC",t.Map="MAP",t.Mask="MASK",t.Mat="MAT",t.Matte="MATTE",t.Mef="MEF",t.Miff="MIFF",t.Mkv="MKV",t.Mng="MNG",t.Mono="MONO",t.Mov="MOV",t.Mp4="MP4",t.Mpc="MPC",t.Mpeg="MPEG",t.Mpg="MPG",t.Mpo="MPO",t.Mrw="MRW",t.Msl="MSL",t.Msvg="MSVG",t.Mtv="MTV",t.Mvg="MVG",t.Nef="NEF",t.Nrw="NRW",t.Null="NULL",t.O="O",t.Ora="ORA",t.Orf="ORF",t.Otb="OTB",t.Otf="OTF",t.Pal="PAL",t.Palm="PALM",t.Pam="PAM",t.Pango="PANGO",t.Pattern="PATTERN",t.Pbm="PBM",t.Pcd="PCD",t.Pcds="PCDS",t.Pcl="PCL",t.Pct="PCT",t.Pcx="PCX",t.Pdb="PDB",t.Pdf="PDF",t.Pdfa="PDFA",t.Pef="PEF",t.Pes="PES",t.Pfa="PFA",t.Pfb="PFB",t.Pfm="PFM",t.Pgm="PGM",t.Pgx="PGX",t.Phm="PHM",t.Picon="PICON",t.Pict="PICT",t.Pix="PIX",t.Pjpeg="PJPEG",t.Plasma="PLASMA",t.Png="PNG",t.Png00="PNG00",t.Png24="PNG24",t.Png32="PNG32",t.Png48="PNG48",t.Png64="PNG64",t.Png8="PNG8",t.Pnm="PNM",t.Pocketmod="POCKETMOD",t.Ppm="PPM",t.Ps="PS",t.Ps2="PS2",t.Ps3="PS3",t.Psb="PSB",t.Psd="PSD",t.Ptif="PTIF",t.Pwp="PWP",t.Qoi="QOI",t.R="R",t.RadialGradient="RADIAL-GRADIENT",t.Raf="RAF",t.Ras="RAS",t.Raw="RAW",t.Rgb="RGB",t.Rgb565="RGB565",t.Rgba="RGBA",t.Rgbo="RGBO",t.Rgf="RGF",t.Rla="RLA",t.Rle="RLE",t.Rmf="RMF",t.Rw2="RW2",t.Scr="SCR",t.Screenshot="SCREENSHOT",t.Sct="SCT",t.Sfw="SFW",t.Sgi="SGI",t.Shtml="SHTML",t.Six="SIX",t.Sixel="SIXEL",t.SparseColor="SPARSE-COLOR",t.Sr2="SR2",t.Srf="SRF",t.Stegano="STEGANO",t.StrImg="STRIMG",t.Sun="SUN",t.Svg="SVG",t.Svgz="SVGZ",t.Text="TEXT",t.Tga="TGA",t.Thumbnail="THUMBNAIL",t.Tiff="TIFF",t.Tiff64="TIFF64",t.Tile="TILE",t.Tim="TIM",t.Tm2="TM2",t.Ttc="TTC",t.Ttf="TTF",t.Txt="TXT",t.Ubrl="UBRL",t.Ubrl6="UBRL6",t.Uil="UIL",t.Uyvy="UYVY",t.Vda="VDA",t.Vicar="VICAR",t.Vid="VID",t.Viff="VIFF",t.Vips="VIPS",t.Vst="VST",t.Wbmp="WBMP",t.Webp="WEBP",t.Webm="WEBM",t.Wmv="WMV",t.Wpg="WPG",t.X3f="X3F",t.Xbm="XBM",t.Xc="XC",t.Xcf="XCF",t.Xpm="XPM",t.Xps="XPS",t.Xv="XV",t.Y="Y",t.Yaml="YAML",t.Ycbcr="YCbCr",t.Ycbcra="YCbCrA",t.Yuv="YUV",t))(we||{}),lt=(t=>(t[t.Undefined=0]="Undefined",t[t.Coalesce=1]="Coalesce",t[t.CompareAny=2]="CompareAny",t[t.CompareClear=3]="CompareClear",t[t.CompareOverlay=4]="CompareOverlay",t[t.Dispose=5]="Dispose",t[t.Optimize=6]="Optimize",t[t.OptimizeImage=7]="OptimizeImage",t[t.OptimizePlus=8]="OptimizePlus",t[t.OptimizeTrans=9]="OptimizeTrans",t[t.RemoveDups=10]="RemoveDups",t[t.RemoveZero=11]="RemoveZero",t[t.Composite=12]="Composite",t[t.Merge=13]="Merge",t[t.Flatten=14]="Flatten",t[t.Mosaic=15]="Mosaic",t[t.Trimbounds=16]="Trimbounds",t))(lt||{});class sn extends Ce{constructor(a){const e=c._api._MagickSettings_Create(),l=c._api._MagickSettings_Dispose;if(super(e,l),a._fileName!==void 0&&N(a._fileName,m=>{c._api._MagickSettings_SetFileName(this._instance,m)}),a._ping&&c._api._MagickSettings_SetPing(this._instance,1),a._quality!==void 0&&c._api._MagickSettings_SetQuality(this._instance,a._quality),a.antiAlias!==void 0&&c._api._MagickSettings_AntiAlias_Set(this._instance,a.antiAlias?1:0),a.backgroundColor!==void 0&&a.backgroundColor._use(m=>{c._api._MagickSettings_BackgroundColor_Set(this._instance,m)}),a.colorSpace!==void 0&&c._api._MagickSettings_ColorSpace_Set(this._instance,a.colorSpace),a.colorType!==void 0&&c._api._MagickSettings_ColorType_Set(this._instance,a.colorType),a.compression!==void 0&&c._api._MagickSettings_Compression_Set(this._instance,a.compression),a.debug!==void 0&&c._api._MagickSettings_Debug_Set(this._instance,a.debug?1:0),a.depth!==void 0&&c._api._MagickSettings_Depth_Set(this._instance,a.depth),a.endian!==void 0&&c._api._MagickSettings_Endian_Set(this._instance,a.endian),a.fillColor!==void 0&&this.setOption("fill",a.fillColor.toString()),a.font!==void 0){const m=fe._getFontFileName(a.font);N(m,p=>{c._api._MagickSettings_Font_Set(this._instance,p)})}a.fontPointsize!==void 0&&c._api._MagickSettings_FontPointsize_Set(this._instance,a.fontPointsize),a.format!==void 0&&N(a.format,m=>{c._api._MagickSettings_Format_Set(this._instance,m)}),a.interlace!==void 0&&c._api._MagickSettings_Interlace_Set(this._instance,a.interlace),a.strokeColor!==void 0&&this.setOption("stroke",a.strokeColor.toString()),a.strokeWidth!==void 0&&this.setOption("strokeWidth",a.strokeWidth.toString()),a.textInterlineSpacing!==void 0&&this.setOption("interline-spacing",a.textInterlineSpacing.toString()),a.textKerning!==void 0&&this.setOption("kerning",a.textKerning.toString());for(const m in a._options)this.setOption(m,a._options[m])}setOption(a,e){N(a,l=>{N(e,m=>{c._api._MagickSettings_SetOption(this._instance,l,m)})})}}class Te{_options={};_fileName;_ping=!1;_quality;antiAlias;backgroundColor;colorSpace;colorType;compression;debug;depth;endian;fillColor;font;fontPointsize;format;interlace;strokeColor;strokeWidth;textInterlineSpacing;textKerning;getDefine(a,e){return e!==void 0?this._options[`${a}:${e}`]??null:this._options[a]??null}setDefine(a,e,l){if(l===void 0)this._options[a]=e;else{const m=this.parseDefine(a,e);typeof l=="string"?this._options[m]=l:typeof l=="number"?this._options[m]=l.toString():this._options[m]=l?"true":"false"}}setDefines(a){a.getDefines().forEach(e=>{e!==void 0&&this.setDefine(e.format,e.name,e.value)})}_clone(){const a=new Te;return Object.assign(a,this),a}_use(a){const e=new sn(this);return he._disposeAfterExecution(e,a)}parseDefine(a,e){return a===we.Unknown?e:`${a}:${e}`}}class ke extends Te{constructor(a){super(),Object.assign(this,a)}height;width;_use(a){const e=new sn(this),l=this.getSize();return l!==""&&N(l,m=>{c._api._MagickSettings_SetSize(e._instance,m)}),he._disposeAfterExecution(e,a)}getSize(){return this.width!==void 0&&this.height!==void 0?`${this.width}x${this.height}`:this.width!==void 0?`${this.width}x`:this.height!==void 0?`x${this.height}`:""}}class le extends Array{constructor(){super()}static create(a){const e=le.createObject();return a!==void 0&&e.read(a),e}dispose(){let a=this.pop();for(;a!==void 0;)a.dispose(),a=this.pop()}appendHorizontally(a){return this.createImage((e,l)=>c._api._MagickImageCollection_Append(e,0,l.ptr),a)}appendVertically(a){return this.createImage((e,l)=>c._api._MagickImageCollection_Append(e,1,l.ptr),a)}clone(a){const e=le.create();for(let l=0;l<this.length;l++)e.push(se._clone(this[l]));return e._use(a)}evaluate(a,e){return this.createImage((l,m)=>c._api._MagickImageCollection_Evaluate(l,a,m.ptr),e)}flatten(a){return this.mergeImages(lt.Flatten,a)}merge(a){return this.mergeImages(lt.Merge,a)}montage(a,e){this.throwIfEmpty();try{this.attachImages();const l=a._use(h=>C.use(k=>{const E=c._api._MagickImageCollection_Montage(this[0]._instance,h._instance,k.ptr);return this.checkResult(E,k)})),m=le._createFromImages(l,this.getSettings()),p=a.transparentColor;return p!==void 0&&m.forEach(h=>{h.transparent(p)}),m.merge(e)}finally{this.detachImages()}}mosaic(a){return this.mergeImages(lt.Mosaic,a)}read(a,e){this.dispose(),C.use(l=>{const m=le.createSettings(e);typeof a=="string"?(m._fileName=a,m._use(p=>{const h=c._api._MagickImageCollection_ReadFile(p._instance,l.ptr);this.addImages(h,m)})):m._use(p=>{const h=a.byteLength;let k=0;try{k=c._api._malloc(h),c._api.HEAPU8.set(a,k);const E=c._api._MagickImageCollection_ReadBlob(p._instance,k,0,h,l.ptr);this.addImages(E,m)}finally{k!==0&&c._api._free(k)}})})}write(a,e){this.throwIfEmpty();let l=0,m=0;const p=this[0],h=this.getSettings();e!==void 0?h.format=a:(e=a,h.format=p.format),C.use(E=>{ye.use(W=>{h._use(V=>{try{this.attachImages(),l=c._api._MagickImage_WriteBlob(p._instance,V._instance,W.ptr,E.ptr),m=W.value}finally{this.detachImages()}})})});const k=new nn(l,m,e);return he._disposeAfterExecution(k,k.func)}static _createFromImages(a,e){const l=le.createObject();return l.addImages(a,e._clone()),l}_use(a){return he._disposeAfterExecution(this,a)}addImages(a,e){e.format=we.Unknown;let l=a;for(;l!==0;){const m=c._api._MagickImage_GetNext(l);c._api._MagickImage_SetNext(l,0),this.push(se._createFromImage(l,e)),l=m}}attachImages(){for(let a=0;a<this.length-1;a++)c._api._MagickImage_SetNext(this[a]._instance,this[a+1]._instance)}static createObject(){return Object.create(le.prototype)}createImage(a,e){this.throwIfEmpty();try{this.attachImages();const l=C.use(p=>{const h=a(this[0]._instance,p);return this.checkResult(h,p)});return se._createFromImage(l,this.getSettings())._use(e)}finally{this.detachImages()}}static createSettings(a){return a==null?new Te:new ke(a)}detachImages(){for(let a=0;a<this.length-1;a++)c._api._MagickImage_SetNext(this[a]._instance,0)}getSettings(){return this[0]._getSettings()._clone()}mergeImages(a,e){return this.createImage((l,m)=>c._api._MagickImageCollection_Merge(l,a,m.ptr),e)}throwIfEmpty(){if(this.length===0)throw new Z("operation requires at least one image")}checkResult(a,e){return e.check(()=>a,()=>(c._api._MagickImageCollection_Dispose(a),0))}}class O{_value;constructor(a){this._value=a}static _fromQuantum(a){return new O(a/Ge.max*100)}multiply(a){return a*this._value/100}toDouble(){return this._value}_toQuantum(){return Ge.max*(this._value/100)}}class un{static use(a,e,l){const m=c._api._MagickRectangle_Create();try{c._api._MagickRectangle_X_Set(m,e.x),c._api._MagickRectangle_Y_Set(m,e.y);let p=e.width,h=e.height;return e.isPercentage&&(p=new O(e.width).multiply(a.width),h=new O(e.height).multiply(a.height)),c._api._MagickRectangle_Width_Set(m,p),c._api._MagickRectangle_Height_Set(m,h),l(m)}finally{c._api._MagickRectangle_Dispose(m)}}}function on(t,a){if(t.byteLength===0)throw new Z("The specified array cannot be empty");let e=0;try{return e=c._api._malloc(t.byteLength),c._api.HEAPU8.set(t,e),a(e)}finally{e!==0&&c._api._free(e)}}function Ar(t,a){const e=t.length*8;let l=0;try{if(e!==0){l=c._api._malloc(e);const m=new ArrayBuffer(e),p=new Float64Array(m);for(let h=0;h<t.length;h++)p[h]=t[h];c._api.HEAPU8.set(new Int8Array(m),l)}return a(l)}finally{l!==0&&c._api._free(l)}}function Rr(t,a){if(t.byteLength===0)throw new Z("The specified array cannot be empty");let e=0;try{return e=c._api._malloc(t.byteLength),c._api.HEAPU8.set(t,e),a(e)}finally{e!==0&&c._api._free(e)}}class We extends Ce{image;constructor(a){const e=C.usePointer(m=>c._api._PixelCollection_Create(a._instance,m)),l=c._api._PixelCollection_Dispose;super(e,l),this.image=a}static _create(a){return new We(a)}static _use(a,e){const l=new We(a);return he._disposeAfterExecution(l,e)}static _map(a,e,l){const m=new We(a);try{m.use(0,0,a.width,a.height,e,p=>{l(p)})}finally{m.dispose()}}getArea(a,e,l,m){return C.usePointer(p=>{const h=c._api._PixelCollection_GetArea(this._instance,a,e,l,m,p),k=l*m*this.image.channelCount;return c._api.HEAPU8.subarray(h,h+k)})}getPixel(a,e){return this.getArea(a,e,1,1)}setArea(a,e,l,m,p){C.usePointer(h=>{const k=p instanceof Uint8Array?p:new Uint8Array(p);Rr(k,E=>{c._api._PixelCollection_SetArea(this._instance,a,e,l,m,E,k.length,h)})})}setPixel(a,e,l){l instanceof Uint8Array?this.setArea(a,e,1,1,l):this.setArea(a,e,1,1,l)}toByteArray(a,e,l,m,p){return this.use(a,e,l,m,p,h=>{if(h===0)return null;const k=l*m*p.length;return c._api.HEAPU8.slice(h,h+k)})}use(a,e,l,m,p,h){return N(p,k=>C.use(E=>{let W=c._api._PixelCollection_ToByteArray(this._instance,a,e,l,m,k,E.ptr);return E.check(()=>{const V=h(W);return W=c._api._MagickMemory_Relinquish(W),V},()=>(W=c._api._MagickMemory_Relinquish(W),null))}))}}var Bt=(t=>(t[t.Undefined=0]="Undefined",t[t.Average=1]="Average",t[t.Brightness=2]="Brightness",t[t.Lightness=3]="Lightness",t[t.MS=4]="MS",t[t.Rec601Luma=5]="Rec601Luma",t[t.Rec601Luminance=6]="Rec601Luminance",t[t.Rec709Luma=7]="Rec709Luma",t[t.Rec709Luminance=8]="Rec709Luminance",t[t.RMS=9]="RMS",t))(Bt||{});class be{constructor(a,e,l){this.x=a,this.y=e,this.z=l}x;y;z;static _create(a){return a===0?new be(0,0,0):new be(c._api._PrimaryInfo_X_Get(a),c._api._PrimaryInfo_Y_Get(a),c._api._PrimaryInfo_Z_Get(a))}_use(a){let e=0;try{e=c._api._PrimaryInfo_Create(),c._api._PrimaryInfo_X_Set(e,this.x),c._api._PrimaryInfo_Y_Set(e,this.y),c._api._PrimaryInfo_Z_Set(e,this.z),a(e)}finally{c._api._free(e)}}}class _n{channel;depth;entropy;kurtosis;maximum;mean;minimum;skewness;standardDeviation;constructor(a,e){this.channel=a,this.depth=c._api._ChannelStatistics_Depth_Get(e),this.entropy=c._api._ChannelStatistics_Entropy_Get(e),this.kurtosis=c._api._ChannelStatistics_Kurtosis_Get(e),this.maximum=c._api._ChannelStatistics_Maximum_Get(e),this.mean=c._api._ChannelStatistics_Mean_Get(e),this.minimum=c._api._ChannelStatistics_Minimum_Get(e),this.skewness=c._api._ChannelStatistics_Skewness_Get(e),this.standardDeviation=c._api._ChannelStatistics_StandardDeviation_Get(e)}}class ct{_channels={};get channels(){const a=[];for(const e in this._channels)a.push(parseInt(e));return a}composite(){return this._channels[A.Composite]}getChannel(a){const e=this._channels[a];return e!==void 0?e:null}static _create(a,e,l){const m=new ct;return a.channels.forEach(p=>{l>>p&1&&m.addChannel(e,p)}),m.addChannel(e,A.Composite),m}addChannel(a,e){const l=c._api._Statistics_GetInstance(a,e);l!==0&&(this._channels[e]=new _n(e,l))}}class Pr{static toArray(a){if(a===0)return null;const e=c._api._StringInfo_Datum_Get(a),l=c._api._StringInfo_Length_Get(a);return c._api.HEAPU8.subarray(e,e+l)}}class gt{_image;_names=[];constructor(a){this._image=a}setArtifact(a,e){this._names.push(a),this._image.setArtifact(a,e)}static use(a,e){const l=new gt(a);try{return e(l)}finally{l.dispose()}}dispose(){for(const a of this._names)this._image.removeArtifact(a)}}class Lt{constructor(a){this.error=a}error}class se extends Ce{_settings;_progress;_warning;constructor(a,e){super(a,c._api._MagickImage_Dispose),this._settings=e}get animationDelay(){return c._api._MagickImage_AnimationDelay_Get(this._instance)}set animationDelay(a){c._api._MagickImage_AnimationDelay_Set(this._instance,a)}get animationIterations(){return c._api._MagickImage_AnimationIterations_Get(this._instance)}set animationIterations(a){c._api._MagickImage_AnimationIterations_Set(this._instance,a)}get animationTicksPerSecond(){return c._api._MagickImage_AnimationTicksPerSecond_Get(this._instance)}set animationTicksPerSecond(a){c._api._MagickImage_AnimationTicksPerSecond_Set(this._instance,a)}get artifactNames(){const a=[];c._api._MagickImage_ResetArtifactIterator(this._instance);let e=c._api._MagickImage_GetNextArtifactName(this._instance);for(;e!==0;)a.push(c._api.UTF8ToString(e)),e=c._api._MagickImage_GetNextArtifactName(this._instance);return a}get attributeNames(){const a=[];c._api._MagickImage_ResetAttributeIterator(this._instance);let e=c._api._MagickImage_GetNextAttributeName(this._instance);for(;e!==0;)a.push(c._api.UTF8ToString(e)),e=c._api._MagickImage_GetNextAttributeName(this._instance);return a}get backgroundColor(){const a=c._api._MagickImage_BackgroundColor_Get(this._instance);return y._create(a)}set backgroundColor(a){a._use(e=>{c._api._MagickImage_BackgroundColor_Set(this._instance,e)})}get baseHeight(){return c._api._MagickImage_BaseHeight_Get(this._instance)}get baseWidth(){return c._api._MagickImage_BaseWidth_Get(this._instance)}get blackPointCompensation(){return c._api._MagickImage_BlackPointCompensation_Get(this._instance)===1}set blackPointCompensation(a){c._api._MagickImage_BlackPointCompensation_Set(this._instance,a?1:0)}get borderColor(){const a=c._api._MagickImage_BorderColor_Get(this._instance);return y._create(a)}set borderColor(a){a._use(e=>{c._api._MagickImage_BorderColor_Set(this._instance,e)})}get boundingBox(){return this.useExceptionPointer(a=>{const e=c._api._MagickImage_BoundingBox_Get(this._instance,a),l=oe._fromRectangle(e);return l.width===0||l.height===0?null:l})}get channelCount(){return c._api._MagickImage_ChannelCount_Get(this._instance)}get channels(){const a=[];return[A.Red,A.Green,A.Blue,A.Black,A.Alpha].forEach(e=>{c._api._MagickImage_HasChannel(this._instance,e)&&a.push(e)}),a}get chromaticity(){return new Ot(be._create(c._api._MagickImage_ChromaRed_Get(this._instance)),be._create(c._api._MagickImage_ChromaGreen_Get(this._instance)),be._create(c._api._MagickImage_ChromaBlue_Get(this._instance)),be._create(c._api._MagickImage_ChromaWhite_Get(this._instance)))}set chromaticity(a){a.blue._use(e=>c._api._MagickImage_ChromaBlue_Set(this._instance,e)),a.green._use(e=>c._api._MagickImage_ChromaGreen_Set(this._instance,e)),a.red._use(e=>c._api._MagickImage_ChromaRed_Set(this._instance,e)),a.white._use(e=>c._api._MagickImage_ChromaWhite_Set(this._instance,e))}get classType(){return this.useExceptionPointer(a=>c._api._MagickImage_ClassType_Get(this._instance,a))}set classType(a){this.useExceptionPointer(e=>{c._api._MagickImage_ClassType_Set(this._instance,a,e)})}get colorFuzz(){return O._fromQuantum(c._api._MagickImage_ColorFuzz_Get(this._instance))}set colorFuzz(a){c._api._MagickImage_ColorFuzz_Set(this._instance,a._toQuantum())}get colormapSize(){return this.useExceptionPointer(a=>c._api._MagickImage_ColormapSize_Get(this._instance,a))}set colormapSize(a){this.useExceptionPointer(e=>{c._api._MagickImage_ColormapSize_Set(this._instance,a,e)})}get colorSpace(){return this.useExceptionPointer(a=>c._api._MagickImage_ColorSpace_Get(this._instance,a))}set colorSpace(a){this.useExceptionPointer(e=>{c._api._MagickImage_ColorSpace_Set(this._instance,a,e)})}get colorType(){return this.settings.colorType!==void 0?this.settings.colorType:this.useExceptionPointer(a=>c._api._MagickImage_ColorType_Get(this._instance,a))}set colorType(a){this.useExceptionPointer(e=>{c._api._MagickImage_ColorType_Set(this._instance,a,e)})}get comment(){return this.getAttribute("comment")}set comment(a){a===null?this.removeAttribute("comment"):this.setAttribute("comment",a)}get compose(){return c._api._MagickImage_Compose_Get(this._instance)}set compose(a){c._api._MagickImage_Compose_Set(this._instance,a)}get compression(){return c._api._MagickImage_Compression_Get(this._instance)}get density(){return new tn(c._api._MagickImage_ResolutionX_Get(this._instance),c._api._MagickImage_ResolutionY_Get(this._instance),c._api._MagickImage_ResolutionUnits_Get(this._instance))}set density(a){c._api._MagickImage_ResolutionX_Set(this._instance,a.x),c._api._MagickImage_ResolutionY_Set(this._instance,a.y),c._api._MagickImage_ResolutionUnits_Set(this._instance,a.units)}get depth(){return c._api._MagickImage_Depth_Get(this._instance)}set depth(a){c._api._MagickImage_Depth_Set(this._instance,a)}get endian(){return c._api._MagickImage_Endian_Get(this._instance)}set endian(a){c._api._MagickImage_Endian_Set(this._instance,a)}get fileName(){const a=c._api._MagickImage_FileName_Get(this._instance);return a===0?null:c._api.UTF8ToString(a)}get filterType(){return c._api._MagickImage_FilterType_Get(this._instance)}set filterType(a){c._api._MagickImage_FilterType_Set(this._instance,a)}get format(){return _e(c._api._MagickImage_Format_Get(this._instance))}set format(a){N(a.toString(),e=>c._api._MagickImage_Format_Set(this._instance,e))}get gamma(){return c._api._MagickImage_Gamma_Get(this._instance)}get gifDisposeMethod(){return c._api._MagickImage_GifDisposeMethod_Get(this._instance)}set gifDisposeMethod(a){c._api._MagickImage_GifDisposeMethod_Set(this._instance,a)}get hasAlpha(){return this.useExceptionPointer(a=>this.toBool(c._api._MagickImage_HasAlpha_Get(this._instance,a)))}set hasAlpha(a){this.useExceptionPointer(e=>{a&&this.alpha(Rt.Opaque),c._api._MagickImage_HasAlpha_Set(this._instance,this.fromBool(a),e)})}get height(){return c._api._MagickImage_Height_Get(this._instance)}get interlace(){return c._api._MagickImage_Interlace_Get(this._instance)}get isOpaque(){return this.useExceptionPointer(a=>this.toBool(c._api._MagickImage_IsOpaque_Get(this._instance,a)))}get interpolate(){return c._api._MagickImage_Interpolate_Get(this._instance)}set interpolate(a){c._api._MagickImage_Interpolate_Set(this._instance,a)}get label(){return this.getAttribute("label")}set label(a){a===null?this.removeAttribute("label"):this.setAttribute("label",a)}get matteColor(){const a=c._api._MagickImage_MatteColor_Get(this._instance);return y._create(a)}set matteColor(a){a._use(e=>{c._api._MagickImage_MatteColor_Set(this._instance,e)})}get orientation(){return c._api._MagickImage_Orientation_Get(this._instance)}set orientation(a){c._api._MagickImage_Orientation_Set(this._instance,a)}get page(){const a=c._api._MagickImage_Page_Get(this._instance);return oe._fromRectangle(a)}set page(a){a._toRectangle(e=>{c._api._MagickImage_Page_Set(this._instance,e)})}get onProgress(){return this._progress}set onProgress(a){a!==void 0?ie.setProgressDelegate(this):this.disposeProgressDelegate(),this._progress=a}get onWarning(){return this._warning}set onWarning(a){this._warning=a}get quality(){return c._api._MagickImage_Quality_Get(this._instance)}set quality(a){let e=a<1?1:a;e=e>100?100:e,c._api._MagickImage_Quality_Set(this._instance,e),this._settings._quality=e}get renderingIntent(){return c._api._MagickImage_RenderingIntent_Get(this._instance)}set renderingIntent(a){c._api._MagickImage_RenderingIntent_Set(this._instance,a)}get settings(){return this._settings}get signature(){return this.useExceptionPointer(a=>_e(c._api._MagickImage_Signature_Get(this._instance,a)))}get totalColors(){return this.useExceptionPointer(a=>c._api._MagickImage_TotalColors_Get(this._instance,a))}get virtualPixelMethod(){return this.useExceptionPointer(a=>c._api._MagickImage_VirtualPixelMethod_Get(this._instance,a))}set virtualPixelMethod(a){this.useExceptionPointer(e=>{c._api._MagickImage_VirtualPixelMethod_Set(this._instance,a,e)})}get width(){return c._api._MagickImage_Width_Get(this._instance)}alpha(a){this.useExceptionPointer(e=>{c._api._MagickImage_SetAlpha(this._instance,a,e)})}autoOrient(){this.useException(a=>{const e=c._api._MagickImage_AutoOrient(this._instance,a.ptr);this._setInstance(e,a)})}autoThreshold(a){this.useException(e=>{c._api._MagickImage_AutoThreshold(this._instance,a,e.ptr)})}blur(a,e,l){let m=0;const p=this.valueOrDefault(e,1);let h=this.valueOrDefault(l,ne.Undefined);typeof a=="number"?m=a:a!==void 0&&(h=a),this.useException(k=>{const E=c._api._MagickImage_Blur(this._instance,m,p,h,k.ptr);this._setInstance(E,k)})}border(a,e){const l=a,m=this.valueOrDefault(e,a),p=new oe(0,0,l,m);this.useException(h=>{p._toRectangle(k=>{const E=c._api._MagickImage_Border(this._instance,k,h.ptr);this._setInstance(E,h)})})}brightnessContrast(a,e,l){const m=this.valueOrDefault(l,ne.Undefined);this.useException(p=>{c._api._MagickImage_BrightnessContrast(this._instance,a.toDouble(),e.toDouble(),m,p.ptr)})}charcoal(a,e){const l=a===void 0?0:a,m=e===void 0?1:e;this.useException(p=>{const h=c._api._MagickImage_Charcoal(this._instance,l,m,p.ptr);this._setInstance(h,p)})}clahe(a,e,l,m){this.useExceptionPointer(p=>{const h=a instanceof O?a.multiply(this.width):a,k=e instanceof O?e.multiply(this.height):e;c._api._MagickImage_Clahe(this._instance,h,k,l,m,p)})}clone(a){return se._clone(this)._use(a)}colorAlpha(a){if(!this.hasAlpha)return;const e=se.create();e.read(a,this.width,this.height),e.composite(this,$e.SrcOver,new me(0,0)),this._instance=e._instance}compare(a,e,l){return this.useExceptionPointer(m=>{const p=this.valueOrDefault(l,ne.Undefined);return c._api._MagickImage_CompareDistortion(this._instance,a._instance,e,p,m)})}composite(a,e,l,m,p){let h=0,k=0,E=$e.In,W=ne.All,V=null;e instanceof me?(h=e.x,k=e.y):e!==void 0&&(E=e),l instanceof me?(h=l.x,k=l.y):typeof l=="string"?V=l:l!==void 0&&(W=l),typeof m=="string"?V=m:m!==void 0&&(W=m),p!==void 0&&(W=p),V!==null&&this.setArtifact("compose:args",V),this.useExceptionPointer(J=>{c._api._MagickImage_Composite(this._instance,a._instance,h,k,E,W,J)}),V!==null&&this.removeArtifact("compose:args")}compositeGravity(a,e,l,m,p,h){let k=0,E=0,W=$e.In,V=ne.All,J=null;l instanceof me?(k=l.x,E=l.y):l!==void 0&&(W=l),m instanceof me?(k=m.x,E=m.y):typeof m=="string"?J=m:m!==void 0&&(V=m),typeof p=="string"?J=p:p!==void 0&&(V=p),h!==void 0&&(V=h),J!==null&&this.setArtifact("compose:args",J),this.useExceptionPointer(Ke=>{c._api._MagickImage_CompositeGravity(this._instance,a._instance,e,k,E,W,V,Ke)}),J!==null&&this.removeArtifact("compose:args")}connectedComponents(a){const e=typeof a=="number"?new en(a):a;e._setArtifacts(this);const l=this.useException(m=>ye.use(p=>{try{const h=c._api._MagickImage_ConnectedComponents(this._instance,e.connectivity,p.ptr,m.ptr);return this._setInstance(h,m),ot._create(p.value,this.colormapSize)}finally{p.value!==0&&c._api._ConnectedComponent_DisposeList(p.value)}}));return e._removeArtifacts(this),l}contrast=()=>this._contrast(!0);contrastStretch(a,e,l){const m=this.width*this.height,p=a.multiply(m);let h=0,k=this.valueOrDefault(l,ne.Undefined);e instanceof O?h=m-e.multiply(m):(h=m-a.multiply(m),e!==void 0&&(k=e)),this.useExceptionPointer(E=>{c._api._MagickImage_ContrastStretch(this._instance,p,h,k,E)})}static create(a,e,l){const m=new se(se.createInstance(),new Te);return a!==void 0&&m.readOrPing(!1,a,e,l),m}crop(a,e,l){let m,p;typeof a!="number"?(m=a,p=this.valueOrDefault(e,Je.Undefined)):e!==void 0&&(m=new oe(a,e),p=this.valueOrDefault(l,Je.Undefined)),this.useException(h=>{N(m.toString(),k=>{const E=c._api._MagickImage_Crop(this._instance,k,p,h.ptr);this._setInstance(E,h)})})}cropToTiles(a,e,l){let m,p;return typeof a=="number"&&typeof e=="number"&&l!==void 0?(m=new oe(0,0,a,e),p=l):typeof a!="number"&&typeof e!="number"&&(m=a,p=e),this.useException(h=>N(m.toString(),k=>{const E=c._api._MagickImage_CropToTiles(this._instance,k,h.ptr);return le._createFromImages(E,this._settings)._use(p)}))}deskew(a,e){return gt.use(this,l=>{e!==void 0&&l.setArtifact("deskew:auto-crop",e),this.useException(p=>{const h=c._api._MagickImage_Deskew(this._instance,a._toQuantum(),p.ptr);this._setInstance(h,p)});const m=Number(this.getArtifact("deskew:angle"));return isNaN(m)?0:m})}distort(a,e){gt.use(this,l=>{let m,p=0;typeof a=="number"?m=a:(m=a.method,p=a.bestFit?1:0,a.scale!==void 0&&l.setArtifact("distort:scale",a.scale.toString()),a.viewport!==void 0&&l.setArtifact("distort:viewport",a.viewport.toString()));const h=e??[];this.useException(k=>{Ar(h,E=>{const W=c._api._MagickImage_Distort(this._instance,m,p,E,h.length,k.ptr);this._setInstance(W,k)})})})}draw(...a){const e=_t._create(this,this._settings);try{e.draw(a.flat())}finally{e.dispose()}}evaluate(a,e,l,m){if(typeof e=="number"){const p=e,h=typeof l=="number"?l:l._toQuantum();this.useExceptionPointer(k=>{c._api._MagickImage_EvaluateOperator(this._instance,a,p,h,k)})}else if(m!==void 0){if(typeof l!="number")throw new Z("this should not happen");const p=e,h=l,k=typeof m=="number"?m:m._toQuantum();if(p.isPercentage)throw new Z("percentage is not supported");this.useExceptionPointer(E=>{un.use(this,p,W=>{c._api._MagickImage_EvaluateGeometry(this._instance,a,W,h,k,E)})})}}extent(a,e,l){let m=Je.Undefined,p;typeof a!="number"?p=a:typeof e=="number"&&(p=new oe(a,e)),typeof e=="number"?m=e:e!==void 0&&(this.backgroundColor=e),typeof l=="number"?m=l:l!==void 0&&(this.backgroundColor=l),this.useException(h=>{N(p.toString(),k=>{const E=c._api._MagickImage_Extent(this._instance,k,m,h.ptr);this._setInstance(E,h)})})}flip(){this.useException(a=>{const e=c._api._MagickImage_Flip(this._instance,a.ptr);this._setInstance(e,a)})}flop(){this.useException(a=>{const e=c._api._MagickImage_Flop(this._instance,a.ptr);this._setInstance(e,a)})}getArtifact(a){return N(a,e=>{const l=c._api._MagickImage_GetArtifact(this._instance,e);return _e(l)})}getAttribute(a){return this.useException(e=>N(a,l=>{const m=c._api._MagickImage_GetAttribute(this._instance,l,e.ptr);return _e(m)}))}getPixels(a){if(this._settings._ping)throw new Z("image contains no pixel data");return We._use(this,a)}getProfile(a){return N(a,e=>{const l=c._api._MagickImage_GetProfile(this._instance,e),m=Pr.toArray(l);return m===null?null:new an(a,m)})}getWriteMask(a){const e=this.useExceptionPointer(m=>c._api._MagickImage_GetWriteMask(this._instance,m)),l=e===0?null:new se(e,new Te);return l==null?a(l):l._use(a)}grayscale(a=Bt.Undefined){this.useExceptionPointer(e=>{c._api._MagickImage_Grayscale(this._instance,a,e)})}histogram(){const a=new Map;return this.useExceptionPointer(e=>{ye.use(l=>{const m=c._api._MagickImage_Histogram(this._instance,l.ptr,e);if(m!==0){const p=l.value;for(let h=0;h<p;h++){const k=c._api._MagickColorCollection_GetInstance(m,h),E=y._create(k),W=c._api._MagickColor_Count_Get(k);a.set(E.toString(),W)}c._api._MagickColorCollection_DisposeList(m)}})}),a}inverseContrast=()=>this._contrast(!1);inverseLevel(a,e,l,m){let p=ne.Composite,h,k,E=this.valueOrDefault(m,1);typeof a=="number"?(p=a,h=e,l instanceof O&&(k=l)):(h=a,k=e,typeof l=="number"&&(E=l)),this.useExceptionPointer(W=>{c._api._MagickImage_InverseLevel(this._instance,h.toDouble(),k._toQuantum(),E,p,W)})}inverseOpaque=(a,e)=>this._opaque(a,e,!0);inverseSigmoidalContrast(a,e,l){this._sigmoidalContrast(!1,a,e,l)}inverseTransparent=a=>this._transparent(a,!0);level(a,e,l,m){let p=ne.Composite,h,k,E=this.valueOrDefault(m,1);typeof a=="number"?(p=a,h=e,l instanceof O&&(k=l)):(h=a,k=e,typeof l=="number"&&(E=l)),this.useExceptionPointer(W=>{c._api._MagickImage_Level(this._instance,h.toDouble(),k._toQuantum(),E,p,W)})}linearStretch(a,e){this.useExceptionPointer(l=>{c._api._MagickImage_LinearStretch(this._instance,a.toDouble(),e._toQuantum(),l)})}liquidRescale(a,e){const l=typeof a=="number"?new oe(a,e):a;this.useException(m=>{N(l.toString(),p=>{const h=c._api._MagickImage_LiquidRescale(this._instance,p,l.x,l.y,m.ptr);this._setInstance(h,m)})})}negate(a){this.useExceptionPointer(e=>{const l=this.valueOrDefault(a,ne.Undefined);c._api._MagickImage_Negate(this._instance,0,l,e)})}negateGrayScale(a){this.useExceptionPointer(e=>{const l=this.valueOrDefault(a,ne.Undefined);c._api._MagickImage_Negate(this._instance,1,l,e)})}normalize(){this.useExceptionPointer(a=>{c._api._MagickImage_Normalize(this._instance,a)})}modulate(a,e,l){const m=this.valueOrDefault(e,new O(100)),p=this.valueOrDefault(l,new O(100));this.useExceptionPointer(h=>{const k=`${a.toDouble()}/${m.toDouble()}/${p.toDouble()}`;N(k,E=>{c._api._MagickImage_Modulate(this._instance,E,h)})})}morphology(a){this.useException(e=>{N(a.kernel,l=>{const m=c._api._MagickImage_Morphology(this._instance,a.method,l,a.channels,a.iterations,e.ptr);this._setInstance(m,e)})})}motionBlur(a,e,l){this.useException(m=>{const p=c._api._MagickImage_MotionBlur(this._instance,a,e,l,m.ptr);this._setInstance(p,m)})}oilPaint(a){const e=this.valueOrDefault(a,3),l=0;this.useException(m=>{const p=c._api._MagickImage_OilPaint(this._instance,e,l,m.ptr);this._setInstance(p,m)})}opaque=(a,e)=>this._opaque(a,e,!1);ping(a,e){this.readOrPing(!0,a,e)}read(a,e,l){this.readOrPing(!1,a,e,l)}readFromCanvas(a){const e=a.getContext("2d");if(e===null)return;const l=e.getImageData(0,0,a.width,a.height),m=new ke;m.format=we.Rgba,m.width=a.width,m.height=a.height,this.useException(p=>{this.readFromArray(l.data,m,p)})}removeArtifact(a){N(a,e=>{c._api._MagickImage_RemoveArtifact(this._instance,e)})}removeAttribute(a){N(a,e=>{c._api._MagickImage_RemoveAttribute(this._instance,e)})}removeProfile(a){const e=typeof a=="string"?a:a.name;N(e,l=>{c._api._MagickImage_RemoveProfile(this._instance,l)})}removeWriteMask(){this.useExceptionPointer(a=>{c._api._MagickImage_SetWriteMask(this._instance,0,a)})}repage(){this.page=new oe(0,0,0,0)}resize(a,e){const l=typeof a=="number"?new oe(a,e):a;this.useException(m=>{N(l.toString(),p=>{const h=c._api._MagickImage_Resize(this._instance,p,m.ptr);this._setInstance(h,m)})})}rotate(a){this.useException(e=>{const l=c._api._MagickImage_Rotate(this._instance,a,e.ptr);this._setInstance(l,e)})}separate(a,e){return this.useException(l=>{let m,p=ne.Undefined;if(typeof a=="number"&&e!==void 0)p=a,m=e;else if(typeof a=="function")m=a;else throw new Z("invalid arguments");const h=c._api._MagickImage_Separate(this._instance,p,l.ptr);return le._createFromImages(h,this._settings)._use(m)})}sepiaTone(a=new O(80)){this.useException(e=>{const l=typeof a=="number"?new O(a):a,m=c._api._MagickImage_SepiaTone(this._instance,l._toQuantum(),e.ptr);this._setInstance(m,e)})}setArtifact(a,e){let l;typeof e=="string"?l=e:l=this.fromBool(e).toString(),N(a,m=>{N(l,p=>{c._api._MagickImage_SetArtifact(this._instance,m,p)})})}setAttribute(a,e){this.useException(l=>{N(a,m=>{N(e,p=>{c._api._MagickImage_SetAttribute(this._instance,m,p,l.ptr)})})})}setProfile(a,e){const l=typeof a=="string"?a:a.name;let m;e!==void 0?m=e:typeof a!="string"&&(m=a.data),this.useException(p=>{N(l,h=>{on(m,k=>{c._api._MagickImage_SetProfile(this._instance,h,k,m.byteLength,p.ptr)})})})}setWriteMask(a){this.useExceptionPointer(e=>{c._api._MagickImage_SetWriteMask(this._instance,a._instance,e)})}sharpen(a,e,l){const m=this.valueOrDefault(a,0),p=this.valueOrDefault(e,1),h=this.valueOrDefault(l,ne.Undefined);this.useException(k=>{const E=c._api._MagickImage_Sharpen(this._instance,m,p,h,k.ptr);this._setInstance(E,k)})}shave(a,e){this.useException(l=>{const m=c._api._MagickImage_Shave(this._instance,a,e,l.ptr);this._setInstance(m,l)})}sigmoidalContrast(a,e,l){this._sigmoidalContrast(!0,a,e,l)}solarize(a=new O(50)){this.useException(e=>{const l=typeof a=="number"?new O(a):a;c._api._MagickImage_Solarize(this._instance,l._toQuantum(),e.ptr)})}splice(a){un.use(this,a,e=>{this.useException(l=>{const m=c._api._MagickImage_Splice(this._instance,e,l.ptr);this._setInstance(m,l)})})}statistics(a){const e=this.valueOrDefault(a,ne.All);return this.useExceptionPointer(l=>{const m=c._api._MagickImage_Statistics(this._instance,e,l),p=ct._create(this,m,e);return c._api._Statistics_DisposeList(m),p})}strip(){this.useExceptionPointer(a=>{c._api._MagickImage_Strip(this._instance,a)})}threshold(a,e){const l=this.valueOrDefault(e,ne.Undefined);this.useExceptionPointer(m=>{c._api._MagickImage_Threshold(this._instance,a._toQuantum(),l,m)})}toString=()=>`${this.format} ${this.width}x${this.height} ${this.depth}-bit ${Pt[this.colorSpace]}`;transparent(a){a._use(e=>{this.useExceptionPointer(l=>{c._api._MagickImage_Transparent(this._instance,e,0,l)})})}trim(...a){if(a.length>0)if(a.length==1&&a[0]instanceof O){const e=a[0];this.setArtifact("trim:percent-background",e.toDouble().toString())}else{const e=a,l=[...new Set(rn(e))].join(",");this.setArtifact("trim:edges",l)}this.useException(e=>{const l=c._api._MagickImage_Trim(this._instance,e.ptr);this._setInstance(l,e),this.removeArtifact("trim:edges"),this.removeArtifact("trim:percent-background")})}wave(a,e,l){const m=this.valueOrDefault(a,this.interpolate),p=this.valueOrDefault(e,25),h=this.valueOrDefault(l,150);this.useException(k=>{const E=c._api._MagickImage_Wave(this._instance,m,p,h,k.ptr);this._setInstance(E,k)})}vignette(a,e,l,m){const p=this.valueOrDefault(a,0),h=this.valueOrDefault(e,1),k=this.valueOrDefault(l,0),E=this.valueOrDefault(m,0);this.useException(W=>{const V=c._api._MagickImage_Vignette(this._instance,p,h,k,E,W.ptr);this._setInstance(V,W)})}write(a,e){let l=0,m=0;e!==void 0?this._settings.format=a:e=a,this.useException(h=>{ye.use(k=>{this._settings._use(E=>{try{l=c._api._MagickImage_WriteBlob(this._instance,E._instance,k.ptr,h.ptr),m=k.value}catch{l!==0&&(l=c._api._MagickMemory_Relinquish(l))}})})});const p=new nn(l,m,e);return he._disposeAfterExecution(p,p.func)}writeToCanvas(a){a.width=this.width,a.height=this.height;const e=a.getContext("2d");e!==null&&We._map(this,"RGBA",l=>{const m=e.createImageData(this.width,this.height);let p=0;for(let h=0;h<this.height;h++)for(let k=0;k<this.width;k++)m.data[p++]=c._api.HEAPU8[l++],m.data[p++]=c._api.HEAPU8[l++],m.data[p++]=c._api.HEAPU8[l++],m.data[p++]=c._api.HEAPU8[l++];e.putImageData(m,0,0)})}static _createFromImage(a,e){return new se(a,e)}_channelOffset(a){return c._api._MagickImage_HasChannel(this._instance,a)?c._api._MagickImage_ChannelOffset(this._instance,a):-1}static _clone(a){return C.usePointer(e=>new se(c._api._MagickImage_Clone(a._instance,e),a._settings._clone()))}_getSettings(){return this._settings}_instanceNotInitialized(){throw new Z("no image has been read")}_use(a){return he._disposeAfterExecution(this,a)}static _create(a){return se.create()._use(a)}onDispose(){this.disposeProgressDelegate()}_contrast(a){this.useExceptionPointer(e=>{c._api._MagickImage_Contrast(this._instance,this.fromBool(a),e)})}_opaque(a,e,l){this.useExceptionPointer(m=>{a._use(p=>{e._use(h=>{c._api._MagickImage_Opaque(this._instance,p,h,this.fromBool(l),m)})})})}_sigmoidalContrast(a,e,l,m){let p;l!==void 0?typeof l=="number"?p=l:p=l.multiply(Ge.max):p=Ge.max*.5;const h=this.valueOrDefault(m,ne.Undefined);this.useExceptionPointer(k=>{c._api._MagickImage_SigmoidalContrast(this._instance,this.fromBool(a),e,p,h,k)})}_transparent(a,e){a._use(l=>{this.useExceptionPointer(m=>{c._api._MagickImage_Transparent(this._instance,l,this.fromBool(e),m)})})}static createInstance(){return C.usePointer(a=>c._api._MagickImage_Create(0,a))}fromBool(a){return a?1:0}disposeProgressDelegate(){ie.removeProgressDelegate(this),this._progress=void 0}readOrPing(a,e,l,m){this.useException(p=>{const h=l instanceof ke?l:new ke(this._settings);if(h._ping=a,this._settings._ping=a,typeof e=="string")h._fileName=e;else if(Pe(e)){this.readFromArray(e,h,p);return}else h._fileName="xc:"+e.toShortString(),h.width=typeof l=="number"?l:0,h.height=typeof m=="number"?m:0;h._use(k=>{const E=c._api._MagickImage_ReadFile(k._instance,p.ptr);this._setInstance(E,p)})})}readFromArray(a,e,l){e._use(m=>{on(a,p=>{const h=c._api._MagickImage_ReadBlob(m._instance,p,0,a.byteLength,l.ptr);this._setInstance(h,l)})})}toBool(a){return a===1}valueOrDefault(a,e){return a===void 0?e:a}useException(a){return C.use(e=>a(e),e=>{this.onWarning!==void 0&&this.onWarning(new Lt(e))})}useExceptionPointer(a){return C.usePointer(e=>a(e),e=>{this.onWarning!==void 0&&this.onWarning(new Lt(e))})}}class Cr{_wasmLocation;constructor(a){if(a!==void 0)if(a instanceof URL){if(a.protocol!=="http:"&&a.protocol!=="https:")throw new Error("Only http/https protocol is supported");this._wasmLocation=a.href}else this.wasmBinary=a}wasmBinary;locateFile=(a,e)=>{let l=this._wasmLocation;return(l===void 0||l.length===0)&&(l=e+a),l}}class c{loader;api;constructor(){this.loader=a=>new Promise((e,l)=>{if(this.api!==void 0){e();return}const m=new Cr(a);br(m).then(p=>{try{Ct(p,"MAGICK_CONFIGURE_PATH",h=>{Ct(p,"/xml",k=>{p._Environment_SetEnv(h,k),this.api=p,e()})})}catch(h){l(h)}})})}async _initialize(a){await this.loader(a)}static get _api(){if(!mt.api)throw new Z("`await initializeImageMagick` should be called to initialize the library");return mt.api}static set _api(a){mt.api=a}static read(a,e,l,m){return se._create(p=>{let h=m;if(typeof a!="string"&&!Pe(a))typeof e=="number"&&typeof l=="number"&&p.read(a,e,l);else if(typeof e!="number"&&typeof l!="number"){h=l;let k;e instanceof ke?k=e:typeof e=="string"?(k=new ke,k.format=e):h=e,p.read(a,k)}return h(p)})}static readCollection(a,e,l){return le.create()._use(p=>{let h=l,k;return e instanceof ke?k=e:typeof e=="string"?(k=new ke,k.format=e):h=e,p.read(a,k),h(p)})}static readFromCanvas(a,e){return se._create(l=>(l.readFromCanvas(a),e(l)))}}const mt=new c;async function Tr(t){await mt._initialize(t)}class ln{constructor(a,e,l){this.origin=a,this.progress=new O((e+1)/(l*100))}origin;progress;cancel=!1}class ie{static _logDelegate=0;static _onLog;static _progressDelegate=0;static _images={};static setLogDelegate(a){ie._logDelegate===0&&a!==void 0&&(ie._logDelegate=c._api.addFunction(ie.logDelegate,"vii")),c._api._Magick_SetLogDelegate(a===void 0?0:ie._logDelegate),ie._onLog=a}static setProgressDelegate(a){ie._progressDelegate===0&&(this._progressDelegate=c._api.addFunction(ie.progressDelegate,"iijji")),this._images[a._instance]=a,c._api._MagickImage_SetClientData(a._instance,a._instance),c._api._MagickImage_SetProgressDelegate(a._instance,ie._progressDelegate)}static removeProgressDelegate(a){c._api._MagickImage_SetClientData(a._instance,0),c._api._MagickImage_SetProgressDelegate(a._instance,0),delete ie._images[a._instance]}static logDelegate(a,e){if(ie._onLog===void 0)return;const l=_e(e);ie._onLog(new Zt(a,l))}static progressDelegate(a,e,l,m){const p=ie._images[m];if(p===void 0||p.onProgress===void 0)return 1;const h=Number(e),k=Number(l),E=_e(a),W=new ln(E,h,k);return p.onProgress(W),W.cancel?0:1}}class Se{static _allFormats;constructor(a,e,l,m,p){this.format=a,this.description=e,this.supportsMultipleFrames=l,this.supportsReading=m,this.supportsWriting=p}description;format;supportsMultipleFrames;supportsReading;supportsWriting;static get all(){return Se._allFormats===void 0&&(Se._allFormats=Se.loadFormats()),Se._allFormats}static loadFormats(){return C.usePointer(a=>ye.use(e=>{const l=c._api._MagickFormatInfo_CreateList(e.ptr,a),m=e.value;try{const p=new Array(m),h=Object.values(we);for(let k=0;k<m;k++){const E=c._api._MagickFormatInfo_GetInfo(l,k,a),W=_e(c._api._MagickFormatInfo_Format_Get(E)),V=Se.convertFormat(W,h),J=_e(c._api._MagickFormatInfo_Description_Get(E),""),Ke=c._api._MagickFormatInfo_SupportsMultipleFrames_Get(E)==1,Ze=c._api._MagickFormatInfo_SupportsReading_Get(E)==1,Fe=c._api._MagickFormatInfo_SupportsWriting_Get(E)==1;p[k]=new Se(V,J,Ke,Ze,Fe)}return p}finally{c._api._MagickFormatInfo_DisposeList(l,m)}}))}static convertFormat(a,e){return a===null?we.Unknown:e.includes(a)?a:we.Unknown}}var q=(t=>(t[t.None=0]="None",t[t.Accelerate=1]="Accelerate",t[t.Annotate=2]="Annotate",t[t.Blob=4]="Blob",t[t.Cache=8]="Cache",t[t.Coder=16]="Coder",t[t.Configure=32]="Configure",t[t.Deprecate=64]="Deprecate",t[t.Draw=128]="Draw",t[t.Exception=256]="Exception",t[t.Image=512]="Image",t[t.Locale=1024]="Locale",t[t.Module=2048]="Module",t[t.Pixel=4096]="Pixel",t[t.Policy=8192]="Policy",t[t.Resource=16384]="Resource",t[t.Trace=32768]="Trace",t[t.Transform=65536]="Transform",t[t.User=131072]="User",t[t.Wand=262144]="Wand",t[t.Detailed=2147450879]="Detailed",t[t.All=2147483647]="All",t))(q||{});class fe{static get delegates(){return _e(c._api._Magick_Delegates_Get())}static get features(){return _e(c._api._Magick_Features_Get()).slice(0,-1)}static get imageMagickVersion(){return _e(c._api._Magick_ImageMagickVersion_Get())}static get supportedFormats(){return Se.all}static onLog;static addFont(a,e){const l=c._api.FS;l.analyzePath("/fonts").exists||l.mkdir("/fonts");const p=l.open(`/fonts/${a}`,"w");l.write(p,e,0,e.length),l.close(p)}static setRandomSeed=a=>c._api._Magick_SetRandomSeed(a);static setLogEvents(a){const e=a==q.None?void 0:fe.logDelegate;ie.setLogDelegate(e);const l=fe.getEventTypeString(a);N(l,m=>c._api._Magick_SetLogEvents(m))}static _getFontFileName(a){const e=`/fonts/${a}`;if(!c._api.FS.analyzePath(e).exists)throw`Unable to find a font with the name '${a}', add it with Magick.addFont.`;return e}static getEventTypeString(a){if(a==q.All)return"All,Trace";if(a==q.Detailed)return"All";switch(a){case q.Accelerate:return"Accelerate";case q.Annotate:return"Annotate";case q.Blob:return"Blob";case q.Cache:return"Cache";case q.Coder:return"Coder";case q.Configure:return"Configure";case q.Deprecate:return"Deprecate";case q.Draw:return"Draw";case q.Exception:return"Exception";case q.Image:return"Image";case q.Locale:return"Locale";case q.Module:return"Module";case q.Pixel:return"Pixel";case q.Policy:return"Policy";case q.Resource:return"Resource";case q.Trace:return"Trace";case q.Transform:return"Transform";case q.User:return"User";case q.Wand:return"Wand";case q.None:default:return"None"}}static logDelegate(a){fe.onLog!==void 0&&fe.onLog(a)}}class Wr{_font;constructor(a){this._font=a}draw(a){const e=fe._getFontFileName(this._font);a.font(e)}}class Br{_gravity;constructor(a){this._gravity=a}draw(a){a.gravity(this._gravity)}}class Lr{_startX;_startY;_endX;_endY;constructor(a,e,l,m){this._startX=a,this._startY=e,this._endX=l,this._endY=m}draw(a){a.line(this._startX,this._startY,this._endX,this._endY)}}class Nr{_x;_y;constructor(a,e){this._x=a,this._y=e}draw(a){a.point(this._x,this._y)}}class zr{_upperLeftX;_upperLeftY;_lowerRightX;_lowerRightY;constructor(a,e,l,m){this._upperLeftX=a,this._upperLeftY=e,this._lowerRightX=l,this._lowerRightY=m}draw(a){a.rectangle(this._upperLeftX,this._upperLeftY,this._lowerRightX,this._lowerRightY)}}class Ur{_upperLeftX;_upperLeftY;_lowerRightX;_lowerRightY;_cornerWidth;_cornerHeight;constructor(a,e,l,m,p,h){this._upperLeftX=a,this._upperLeftY=e,this._lowerRightX=l,this._lowerRightY=m,this._cornerWidth=p,this._cornerHeight=h}draw(a){a.roundRectangle(this._upperLeftX,this._upperLeftY,this._lowerRightX,this._lowerRightY,this._cornerWidth,this._cornerHeight)}}class Fr{_color;constructor(a){this._color=a}draw(a){a.strokeColor(this._color)}}class Hr{_width;constructor(a){this._width=a}draw(a){a.strokeWidth(this._width)}}class xr{_alignment;constructor(a){this._alignment=a}draw(a){a.textAlignment(this._alignment)}}class ft{_isEnabled;constructor(a){this._isEnabled=a}static get Disabled(){return new ft(!1)}static get Enabled(){return new ft(!0)}draw(a){a.textAntialias(this._isEnabled)}}class Yr{_decoration;constructor(a){this._decoration=a}draw(a){a.textDecoration(this._decoration)}}class jr{_spacing;constructor(a){this._spacing=a}draw(a){a.textInterlineSpacing(this._spacing)}}class Xr{_spacing;constructor(a){this._spacing=a}draw(a){a.textInterwordspacing(this._spacing)}}class qr{_kerning;constructor(a){this._kerning=a}draw(a){a.textKerning(this._kerning)}}class Vr{_color;constructor(a){this._color=a}draw(a){a.textUnderColor(this._color)}}class $r{_x;_y;_value;constructor(a,e,l){this._x=a,this._y=e,this._value=l}draw(a){a.text(this._x,this._y,this._value)}}var cn=(t=>(t[t.Undefined=0]="Undefined",t[t.Kapur=1]="Kapur",t[t.OTSU=2]="OTSU",t[t.Triangle=3]="Triangle",t))(cn||{}),gn=(t=>(t[t.Undefined=0]="Undefined",t[t.Direct=1]="Direct",t[t.Pseudo=2]="Pseudo",t))(gn||{}),mn=(t=>(t[t.Undefined=0]="Undefined",t[t.Bilevel=1]="Bilevel",t[t.Grayscale=2]="Grayscale",t[t.GrayscaleAlpha=3]="GrayscaleAlpha",t[t.Palette=4]="Palette",t[t.PaletteAlpha=5]="PaletteAlpha",t[t.TrueColor=6]="TrueColor",t[t.TrueColorAlpha=7]="TrueColorAlpha",t[t.ColorSeparation=8]="ColorSeparation",t[t.ColorSeparationAlpha=9]="ColorSeparationAlpha",t[t.Optimize=10]="Optimize",t[t.PaletteBilevelAlpha=11]="PaletteBilevelAlpha",t))(mn||{}),fn=(t=>(t[t.Undefined=0]="Undefined",t[t.B44A=1]="B44A",t[t.B44=2]="B44",t[t.BZip=3]="BZip",t[t.DXT1=4]="DXT1",t[t.DXT3=5]="DXT3",t[t.DXT5=6]="DXT5",t[t.Fax=7]="Fax",t[t.Group4=8]="Group4",t[t.JBIG1=9]="JBIG1",t[t.JBIG2=10]="JBIG2",t[t.JPEG2000=11]="JPEG2000",t[t.JPEG=12]="JPEG",t[t.LosslessJPEG=13]="LosslessJPEG",t[t.LZMA=14]="LZMA",t[t.LZW=15]="LZW",t[t.NoCompression=16]="NoCompression",t[t.Piz=17]="Piz",t[t.Pxr24=18]="Pxr24",t[t.RLE=19]="RLE",t[t.Zip=20]="Zip",t[t.ZipS=21]="ZipS",t[t.Zstd=22]="Zstd",t[t.WebP=23]="WebP",t[t.DWAA=24]="DWAA",t[t.DWAB=25]="DWAB",t[t.BC7=26]="BC7",t[t.BC5=27]="BC5",t))(fn||{}),pn=(t=>(t[t.Undefined=0]="Undefined",t[t.Affine=1]="Affine",t[t.AffineProjection=2]="AffineProjection",t[t.ScaleRotateTranslate=3]="ScaleRotateTranslate",t[t.Perspective=4]="Perspective",t[t.PerspectiveProjection=5]="PerspectiveProjection",t[t.BilinearForward=6]="BilinearForward",t[t.BilinearReverse=7]="BilinearReverse",t[t.Polynomial=8]="Polynomial",t[t.Arc=9]="Arc",t[t.Polar=10]="Polar",t[t.DePolar=11]="DePolar",t[t.Cylinder2Plane=12]="Cylinder2Plane",t[t.Plane2Cylinder=13]="Plane2Cylinder",t[t.Barrel=14]="Barrel",t[t.BarrelInverse=15]="BarrelInverse",t[t.Shepards=16]="Shepards",t[t.Resize=17]="Resize",t[t.Sentinel=18]="Sentinel",t[t.RigidAffine=19]="RigidAffine",t))(pn||{}),dn=(t=>(t[t.Undefined=0]="Undefined",t[t.LSB=1]="LSB",t[t.MSB=2]="MSB",t))(dn||{}),hn=(t=>(t[t.Undefined=0]="Undefined",t[t.Absolute=1]="Absolute",t[t.Fuzz=2]="Fuzz",t[t.MeanAbsolute=3]="MeanAbsolute",t[t.MeanErrorPerPixel=4]="MeanErrorPerPixel",t[t.MeanSquared=5]="MeanSquared",t[t.NormalizedCrossCorrelation=6]="NormalizedCrossCorrelation",t[t.PeakAbsolute=7]="PeakAbsolute",t[t.PeakSignalToNoiseRatio=8]="PeakSignalToNoiseRatio",t[t.PerceptualHash=9]="PerceptualHash",t[t.RootMeanSquared=10]="RootMeanSquared",t[t.StructuralSimilarity=11]="StructuralSimilarity",t[t.StructuralDissimilarity=12]="StructuralDissimilarity",t))(hn||{}),yn=(t=>(t[t.Undefined=0]="Undefined",t[t.Abs=1]="Abs",t[t.Add=2]="Add",t[t.AddModulus=3]="AddModulus",t[t.And=4]="And",t[t.Cosine=5]="Cosine",t[t.Divide=6]="Divide",t[t.Exponential=7]="Exponential",t[t.GaussianNoise=8]="GaussianNoise",t[t.ImpulseNoise=9]="ImpulseNoise",t[t.LaplacianNoise=10]="LaplacianNoise",t[t.LeftShift=11]="LeftShift",t[t.Log=12]="Log",t[t.Max=13]="Max",t[t.Mean=14]="Mean",t[t.Median=15]="Median",t[t.Min=16]="Min",t[t.MultiplicativeNoise=17]="MultiplicativeNoise",t[t.Multiply=18]="Multiply",t[t.Or=19]="Or",t[t.PoissonNoise=20]="PoissonNoise",t[t.Pow=21]="Pow",t[t.RightShift=22]="RightShift",t[t.RootMeanSquare=23]="RootMeanSquare",t[t.Set=24]="Set",t[t.Sine=25]="Sine",t[t.Subtract=26]="Subtract",t[t.Sum=27]="Sum",t[t.ThresholdBlack=28]="ThresholdBlack",t[t.Threshold=29]="Threshold",t[t.ThresholdWhite=30]="ThresholdWhite",t[t.UniformNoise=31]="UniformNoise",t[t.Xor=32]="Xor",t[t.InverseLog=33]="InverseLog",t))(yn||{}),wn=(t=>(t[t.Undefined=0]="Undefined",t[t.Point=1]="Point",t[t.Box=2]="Box",t[t.Triangle=3]="Triangle",t[t.Hermite=4]="Hermite",t[t.Hann=5]="Hann",t[t.Hamming=6]="Hamming",t[t.Blackman=7]="Blackman",t[t.Gaussian=8]="Gaussian",t[t.Quadratic=9]="Quadratic",t[t.Cubic=10]="Cubic",t[t.Catrom=11]="Catrom",t[t.Mitchell=12]="Mitchell",t[t.Jinc=13]="Jinc",t[t.Sinc=14]="Sinc",t[t.SincFast=15]="SincFast",t[t.Kaiser=16]="Kaiser",t[t.Welch=17]="Welch",t[t.Parzen=18]="Parzen",t[t.Bohman=19]="Bohman",t[t.Bartlett=20]="Bartlett",t[t.Lagrange=21]="Lagrange",t[t.Lanczos=22]="Lanczos",t[t.LanczosSharp=23]="LanczosSharp",t[t.Lanczos2=24]="Lanczos2",t[t.Lanczos2Sharp=25]="Lanczos2Sharp",t[t.Robidoux=26]="Robidoux",t[t.RobidouxSharp=27]="RobidouxSharp",t[t.Cosine=28]="Cosine",t[t.Spline=29]="Spline",t[t.LanczosRadius=30]="LanczosRadius",t[t.CubicSpline=31]="CubicSpline",t))(wn||{}),kn=(t=>(t[t.Undefined=0]="Undefined",t[t.None=1]="None",t[t.Background=2]="Background",t[t.Previous=3]="Previous",t))(kn||{}),Sn=(t=>(t[t.Undefined=0]="Undefined",t[t.NoInterlace=1]="NoInterlace",t[t.Line=2]="Line",t[t.Plane=3]="Plane",t[t.Partition=4]="Partition",t[t.Gif=5]="Gif",t[t.Jpeg=6]="Jpeg",t[t.Png=7]="Png",t))(Sn||{}),vn=(t=>(t.Undefined="Undefined",t.Unity="Unity",t.Gaussian="Gaussian",t.DoG="DoG",t.LoG="LoG",t.Blur="Blur",t.Comet="Comet",t.Binomial="Binomial",t.Laplacian="Laplacian",t.Sobel="Sobel",t.FreiChen="FreiChen",t.Roberts="Roberts",t.Prewitt="Prewitt",t.Compass="Compass",t.Kirsch="Kirsch",t.Diamond="Diamond",t.Square="Square",t.Rectangle="Rectangle",t.Octagon="Octagon",t.Disk="Disk",t.Plus="Plus",t.Cross="Cross",t.Ring="Ring",t.Peaks="Peaks",t.Edges="Edges",t.Corners="Corners",t.Diagonals="Diagonals",t.LineEnds="LineEnds",t.LineJunctions="LineJunctions",t.Ridges="Ridges",t.ConvexHull="ConvexHull",t.ThinSE="ThinSE",t.Skeleton="Skeleton",t.Chebyshev="Chebyshev",t.Manhattan="Manhattan",t.Octagonal="Octagonal",t.Euclidean="Euclidean",t.UserDefined="UserDefined",t))(vn||{}),Mn=(t=>(t[t.Undefined=0]="Undefined",t[t.Convolve=1]="Convolve",t[t.Correlate=2]="Correlate",t[t.Erode=3]="Erode",t[t.Dilate=4]="Dilate",t[t.ErodeIntensity=5]="ErodeIntensity",t[t.DilateIntensity=6]="DilateIntensity",t[t.IterativeDistance=7]="IterativeDistance",t[t.Open=8]="Open",t[t.Close=9]="Close",t[t.OpenIntensity=10]="OpenIntensity",t[t.CloseIntensity=11]="CloseIntensity",t[t.Smooth=12]="Smooth",t[t.EdgeIn=13]="EdgeIn",t[t.EdgeOut=14]="EdgeOut",t[t.Edge=15]="Edge",t[t.TopHat=16]="TopHat",t[t.BottomHat=17]="BottomHat",t[t.HitAndMiss=18]="HitAndMiss",t[t.Thinning=19]="Thinning",t[t.Thicken=20]="Thicken",t[t.Distance=21]="Distance",t[t.Voronoi=22]="Voronoi",t))(Mn||{}),In=(t=>(t[t.Undefined=0]="Undefined",t[t.TopLeft=1]="TopLeft",t[t.TopRight=2]="TopRight",t[t.BottomRight=3]="BottomRight",t[t.BottomLeft=4]="BottomLeft",t[t.LeftTop=5]="LeftTop",t[t.RightTop=6]="RightTop",t[t.RightBottom=7]="RightBottom",t[t.LeftBottom=8]="LeftBottom",t))(In||{}),Dn=(t=>(t[t.Undefined=0]="Undefined",t[t.Point=1]="Point",t[t.Replace=2]="Replace",t[t.Floodfill=3]="Floodfill",t[t.FillToBorder=4]="FillToBorder",t[t.Reset=5]="Reset",t))(Dn||{}),Gn=(t=>(t[t.Undefined=0]="Undefined",t[t.Average=1]="Average",t[t.Average9=2]="Average9",t[t.Average16=3]="Average16",t[t.Background=4]="Background",t[t.Bilinear=5]="Bilinear",t[t.Blend=6]="Blend",t[t.Catrom=7]="Catrom",t[t.Integer=8]="Integer",t[t.Mesh=9]="Mesh",t[t.Nearest=10]="Nearest",t[t.Spline=11]="Spline",t))(Gn||{}),bn=(t=>(t[t.Undefined=0]="Undefined",t[t.Saturation=1]="Saturation",t[t.Perceptual=2]="Perceptual",t[t.Absolute=3]="Absolute",t[t.Relative=4]="Relative",t))(bn||{}),En=(t=>(t[t.Undefined=0]="Undefined",t[t.Left=1]="Left",t[t.Center=2]="Center",t[t.Right=3]="Right",t))(En||{}),An=(t=>(t[t.Undefined=0]="Undefined",t[t.None=1]="None",t[t.Underline=2]="Underline",t[t.Overline=3]="Overline",t[t.LineThrough=4]="LineThrough",t))(An||{}),Rn=(t=>(t[t.Undefined=0]="Undefined",t[t.Background=1]="Background",t[t.Dither=2]="Dither",t[t.Edge=3]="Edge",t[t.Mirror=4]="Mirror",t[t.Random=5]="Random",t[t.Tile=6]="Tile",t[t.Transparent=7]="Transparent",t[t.Mask=8]="Mask",t[t.Black=9]="Black",t[t.Gray=10]="Gray",t[t.White=11]="White",t[t.HorizontalTile=12]="HorizontalTile",t[t.VerticalTile=13]="VerticalTile",t[t.HorizontalTileEdge=14]="HorizontalTileEdge",t[t.VerticalTileEdge=15]="VerticalTileEdge",t[t.CheckerTile=16]="CheckerTile",t))(Rn||{}),Pn=(t=>(t[t.Disabled=-1]="Disabled",t[t.Linear=0]="Linear",t[t.Vng=1]="Vng",t[t.Ppg=2]="Ppg",t[t.Ahd=3]="Ahd",t[t.DCB=4]="DCB",t[t.Dht=11]="Dht",t[t.ModifiedAhd=12]="ModifiedAhd",t))(Pn||{}),Cn=(t=>(t[t.Raw=0]="Raw",t[t.SRGB=1]="SRGB",t[t.AdobeRGB=2]="AdobeRGB",t[t.WideGamutRGB=3]="WideGamutRGB",t[t.KodakProPhotoRGB=4]="KodakProPhotoRGB",t[t.XYZ=5]="XYZ",t[t.ACES=6]="ACES",t))(Cn||{});class Qr extends Kt{constructor(){super(we.Dng)}disableAutoBrightness;interpolationQuality;outputColor;useAutoWhitebalance;useCameraWhitebalance;getDefines(){const a=[];return this.hasValue(this.interpolationQuality)&&a.push(this.createDefine("interpolation-quality",this.interpolationQuality)),this.hasValue(this.disableAutoBrightness)&&a.push(this.createDefine("no-auto-bright",this.disableAutoBrightness)),this.hasValue(this.outputColor)&&a.push(this.createDefine("output-color",this.outputColor)),this.hasValue(this.useCameraWhitebalance)&&a.push(this.createDefine("use-camera-wb",this.useCameraWhitebalance)),this.hasValue(this.useAutoWhitebalance)&&a.push(this.createDefine("use-auto-wb",this.useAutoWhitebalance)),a}}class Jr{static get None(){return new y(0,0,0,0)}static get Transparent(){return new y(0,0,0,0)}static get AliceBlue(){return new y(240,248,255,255)}static get AntiqueWhite(){return new y(250,235,215,255)}static get Aqua(){return new y(0,255,255,255)}static get Aquamarine(){return new y(127,255,212,255)}static get Azure(){return new y(240,255,255,255)}static get Beige(){return new y(245,245,220,255)}static get Bisque(){return new y(255,228,196,255)}static get Black(){return new y(0,0,0,255)}static get BlanchedAlmond(){return new y(255,235,205,255)}static get Blue(){return new y(0,0,255,255)}static get BlueViolet(){return new y(138,43,226,255)}static get Brown(){return new y(165,42,42,255)}static get BurlyWood(){return new y(222,184,135,255)}static get CadetBlue(){return new y(95,158,160,255)}static get Chartreuse(){return new y(127,255,0,255)}static get Chocolate(){return new y(210,105,30,255)}static get Coral(){return new y(255,127,80,255)}static get CornflowerBlue(){return new y(100,149,237,255)}static get Cornsilk(){return new y(255,248,220,255)}static get Crimson(){return new y(220,20,60,255)}static get Cyan(){return new y(0,255,255,255)}static get DarkBlue(){return new y(0,0,139,255)}static get DarkCyan(){return new y(0,139,139,255)}static get DarkGoldenrod(){return new y(184,134,11,255)}static get DarkGray(){return new y(169,169,169,255)}static get DarkGreen(){return new y(0,100,0,255)}static get DarkKhaki(){return new y(189,183,107,255)}static get DarkMagenta(){return new y(139,0,139,255)}static get DarkOliveGreen(){return new y(85,107,47,255)}static get DarkOrange(){return new y(255,140,0,255)}static get DarkOrchid(){return new y(153,50,204,255)}static get DarkRed(){return new y(139,0,0,255)}static get DarkSalmon(){return new y(233,150,122,255)}static get DarkSeaGreen(){return new y(143,188,143,255)}static get DarkSlateBlue(){return new y(72,61,139,255)}static get DarkSlateGray(){return new y(47,79,79,255)}static get DarkTurquoise(){return new y(0,206,209,255)}static get DarkViolet(){return new y(148,0,211,255)}static get DeepPink(){return new y(255,20,147,255)}static get DeepSkyBlue(){return new y(0,191,255,255)}static get DimGray(){return new y(105,105,105,255)}static get DodgerBlue(){return new y(30,144,255,255)}static get Firebrick(){return new y(178,34,34,255)}static get FloralWhite(){return new y(255,250,240,255)}static get ForestGreen(){return new y(34,139,34,255)}static get Fuchsia(){return new y(255,0,255,255)}static get Gainsboro(){return new y(220,220,220,255)}static get GhostWhite(){return new y(248,248,255,255)}static get Gold(){return new y(255,215,0,255)}static get Goldenrod(){return new y(218,165,32,255)}static get Gray(){return new y(128,128,128,255)}static get Green(){return new y(0,128,0,255)}static get GreenYellow(){return new y(173,255,47,255)}static get Honeydew(){return new y(240,255,240,255)}static get HotPink(){return new y(255,105,180,255)}static get IndianRed(){return new y(205,92,92,255)}static get Indigo(){return new y(75,0,130,255)}static get Ivory(){return new y(255,255,240,255)}static get Khaki(){return new y(240,230,140,255)}static get Lavender(){return new y(230,230,250,255)}static get LavenderBlush(){return new y(255,240,245,255)}static get LawnGreen(){return new y(124,252,0,255)}static get LemonChiffon(){return new y(255,250,205,255)}static get LightBlue(){return new y(173,216,230,255)}static get LightCoral(){return new y(240,128,128,255)}static get LightCyan(){return new y(224,255,255,255)}static get LightGoldenrodYellow(){return new y(250,250,210,255)}static get LightGreen(){return new y(144,238,144,255)}static get LightGray(){return new y(211,211,211,255)}static get LightPink(){return new y(255,182,193,255)}static get LightSalmon(){return new y(255,160,122,255)}static get LightSeaGreen(){return new y(32,178,170,255)}static get LightSkyBlue(){return new y(135,206,250,255)}static get LightSlateGray(){return new y(119,136,153,255)}static get LightSteelBlue(){return new y(176,196,222,255)}static get LightYellow(){return new y(255,255,224,255)}static get Lime(){return new y(0,255,0,255)}static get LimeGreen(){return new y(50,205,50,255)}static get Linen(){return new y(250,240,230,255)}static get Magenta(){return new y(255,0,255,255)}static get Maroon(){return new y(128,0,0,255)}static get MediumAquamarine(){return new y(102,205,170,255)}static get MediumBlue(){return new y(0,0,205,255)}static get MediumOrchid(){return new y(186,85,211,255)}static get MediumPurple(){return new y(147,112,219,255)}static get MediumSeaGreen(){return new y(60,179,113,255)}static get MediumSlateBlue(){return new y(123,104,238,255)}static get MediumSpringGreen(){return new y(0,250,154,255)}static get MediumTurquoise(){return new y(72,209,204,255)}static get MediumVioletRed(){return new y(199,21,133,255)}static get MidnightBlue(){return new y(25,25,112,255)}static get MintCream(){return new y(245,255,250,255)}static get MistyRose(){return new y(255,228,225,255)}static get Moccasin(){return new y(255,228,181,255)}static get NavajoWhite(){return new y(255,222,173,255)}static get Navy(){return new y(0,0,128,255)}static get OldLace(){return new y(253,245,230,255)}static get Olive(){return new y(128,128,0,255)}static get OliveDrab(){return new y(107,142,35,255)}static get Orange(){return new y(255,165,0,255)}static get OrangeRed(){return new y(255,69,0,255)}static get Orchid(){return new y(218,112,214,255)}static get PaleGoldenrod(){return new y(238,232,170,255)}static get PaleGreen(){return new y(152,251,152,255)}static get PaleTurquoise(){return new y(175,238,238,255)}static get PaleVioletRed(){return new y(219,112,147,255)}static get PapayaWhip(){return new y(255,239,213,255)}static get PeachPuff(){return new y(255,218,185,255)}static get Peru(){return new y(205,133,63,255)}static get Pink(){return new y(255,192,203,255)}static get Plum(){return new y(221,160,221,255)}static get PowderBlue(){return new y(176,224,230,255)}static get Purple(){return new y(128,0,128,255)}static get RebeccaPurple(){return new y(102,51,153,255)}static get Red(){return new y(255,0,0,255)}static get RosyBrown(){return new y(188,143,143,255)}static get RoyalBlue(){return new y(65,105,225,255)}static get SaddleBrown(){return new y(139,69,19,255)}static get Salmon(){return new y(250,128,114,255)}static get SandyBrown(){return new y(244,164,96,255)}static get SeaGreen(){return new y(46,139,87,255)}static get SeaShell(){return new y(255,245,238,255)}static get Sienna(){return new y(160,82,45,255)}static get Silver(){return new y(192,192,192,255)}static get SkyBlue(){return new y(135,206,235,255)}static get SlateBlue(){return new y(106,90,205,255)}static get SlateGray(){return new y(112,128,144,255)}static get Snow(){return new y(255,250,250,255)}static get SpringGreen(){return new y(0,255,127,255)}static get SteelBlue(){return new y(70,130,180,255)}static get Tan(){return new y(210,180,140,255)}static get Teal(){return new y(0,128,128,255)}static get Thistle(){return new y(216,191,216,255)}static get Tomato(){return new y(255,99,71,255)}static get Turquoise(){return new y(64,224,208,255)}static get Violet(){return new y(238,130,238,255)}static get Wheat(){return new y(245,222,179,255)}static get White(){return new y(255,255,255,255)}static get WhiteSmoke(){return new y(245,245,245,255)}static get Yellow(){return new y(255,255,0,255)}static get YellowGreen(){return new y(154,205,50,255)}}class Kr{constructor(a){this.method=a}method;bestFit=!1;scale;viewport}class Zr extends Ce{constructor(a){const e=c._api._MontageSettings_Create(),l=c._api._MontageSettings_Dispose;if(super(e,l),a.backgroundColor!==void 0&&a.backgroundColor._use(m=>{c._api._MontageSettings_SetBackgroundColor(this._instance,m)}),a.borderColor!==void 0&&a.borderColor._use(m=>{c._api._MontageSettings_SetBorderColor(this._instance,m)}),a.borderWidth!==void 0&&c._api._MontageSettings_SetBorderWidth(this._instance,a.borderWidth),a.fillColor!==void 0&&a.fillColor._use(m=>{c._api._MontageSettings_SetFillColor(this._instance,m)}),a.font!==void 0){const m=fe._getFontFileName(a.font);N(m,p=>{c._api._MontageSettings_SetFont(this._instance,p)})}a.fontPointsize!==void 0&&c._api._MontageSettings_SetFontPointsize(this._instance,a.fontPointsize),a.frameGeometry!==void 0&&N(a.frameGeometry.toString(),m=>{c._api._MontageSettings_SetFrameGeometry(this._instance,m)}),a.geometry!==void 0&&N(a.geometry.toString(),m=>{c._api._MontageSettings_SetGeometry(this._instance,m)}),a.gravity!==void 0&&c._api._MontageSettings_SetGravity(this._instance,a.gravity),a.shadow!==void 0&&c._api._MontageSettings_SetShadow(this._instance,a.shadow?1:0),a.strokeColor!==void 0&&a.strokeColor._use(m=>{c._api._MontageSettings_SetStrokeColor(this._instance,m)}),a.textureFileName!==void 0&&N(a.textureFileName,m=>{c._api._MontageSettings_SetTextureFileName(this._instance,m)}),a.tileGeometry!==void 0&&N(a.tileGeometry.toString(),m=>{c._api._MontageSettings_SetTileGeometry(this._instance,m)}),a.title!==void 0&&N(a.title,m=>{c._api._MontageSettings_SetTitle(this._instance,m)})}}class Or{backgroundColor;borderColor;borderWidth;fillColor;font;fontPointsize;frameGeometry;geometry;gravity;label;shadow;strokeColor;textureFileName;tileGeometry;title;transparentColor;_use(a){const e=new Zr(this);return he._disposeAfterExecution(e,a)}}class ea{constructor(a,e,l){this.method=a,this.kernel=e,l!==void 0&&(this.kernel+=`:${l}`)}channels=ne.Composite;convolveBias;convolveScale;iterations=1;kernel;method}class ta{constructor(a,e=0){this.minimum=a,this.maximum=e}minimum;maximum;toString(){return this.maximum===0?this.minimum.toString():`${this.minimum}-${this.maximum}`}}I.AlphaOption=Rt,I.AutoThresholdMethod=cn,I.ChannelStatistics=_n,I.Channels=ne,I.ChromaticityInfo=Ot,I.ClassType=gn,I.ColorSpace=Pt,I.ColorType=mn,I.CompositeOperator=$e,I.CompressionMethod=fn,I.ConnectedComponent=ot,I.ConnectedComponentsSettings=en,I.DefinesCreator=Kt,I.Density=tn,I.DensityUnit=Tt,I.DistortMethod=pn,I.DistortSettings=Kr,I.DngInterpolation=Pn,I.DngOutputColor=Cn,I.DngReadDefines=Qr,I.DrawableColor=Mr,I.DrawableFillColor=Ir,I.DrawableFillOpacity=Dr,I.DrawableFont=Wr,I.DrawableFontPointSize=Gr,I.DrawableGravity=Br,I.DrawableLine=Lr,I.DrawablePoint=Nr,I.DrawableRectangle=zr,I.DrawableRoundRectangle=Ur,I.DrawableStrokeColor=Fr,I.DrawableStrokeWidth=Hr,I.DrawableText=$r,I.DrawableTextAlignment=xr,I.DrawableTextAntialias=ft,I.DrawableTextDecoration=Yr,I.DrawableTextInterlineSpacing=jr,I.DrawableTextInterwordSpacing=Xr,I.DrawableTextKerning=qr,I.DrawableTextUnderColor=Vr,I.DrawingWand=_t,I.Endian=dn,I.ErrorMetric=hn,I.EvaluateOperator=yn,I.FilterType=wn,I.GifDisposeMethod=kn,I.Gravity=Je,I.ImageMagick=c,I.ImageProfile=an,I.Interlace=Sn,I.Kernel=vn,I.LogEvent=Zt,I.LogEventTypes=q,I.Magick=fe,I.MagickColor=y,I.MagickColors=Jr,I.MagickDefine=ut,I.MagickError=Z,I.MagickErrorSeverity=Qe,I.MagickFormat=we,I.MagickFormatInfo=Se,I.MagickGeometry=oe,I.MagickImage=se,I.MagickImageCollection=le,I.MagickReadSettings=ke,I.MagickSettings=Te,I.MontageSettings=Or,I.MorphologyMethod=Mn,I.MorphologySettings=ea,I.NativeInstance=Ce,I.OrientationType=In,I.PaintMethod=Dn,I.Percentage=O,I.PixelChannel=A,I.PixelCollection=We,I.PixelIntensityMethod=Bt,I.PixelInterpolateMethod=Gn,I.Point=me,I.PrimaryInfo=be,I.ProgressEvent=ln,I.Quantum=Ge,I.RenderingIntent=bn,I.Statistics=ct,I.TextAlignment=En,I.TextDecoration=An,I.Threshold=ta,I.VirtualPixelMethod=Rn,I.WarningEvent=Lt,I._getEdges=rn,I._isByteArray=Pe,I.initializeImageMagick=Tr,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"})});
|