Files
dicom-proxy/public/index.worker.min.worker.js
2025-03-11 13:16:07 +07:00

1 line
193 KiB
JavaScript

(()=>{var __webpack_modules__={7552:(e,t,r)=>{e.exports=r(5697)},2169:(e,t,r)=>{e.exports=r(4608)},2250:(e,t,r)=>{e.exports=r(4731)},973:(e,t,r)=>{e.exports=r(9233)},8327:function(e,t){var r,n=(r="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,"undefined"!=typeof __filename&&(r=r||__filename),function(e){var t,n=void 0!==(e=e||{})?e:{},i={};for(t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);var o,a,s=[],u=!1,c=!1;u="object"==typeof window,c="function"==typeof importScripts,o="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node&&!u&&!c,a=!u&&!o&&!c;var f,l,p,d,v="";o?(v=__dirname+"/",f=function(e,t){return p||(p=require("fs")),d||(d=require("path")),e=d.normalize(e),p.readFileSync(e,t?null:"utf8")},l=function(e){var t=f(e,!0);return t.buffer||(t=new Uint8Array(t)),b(t.buffer),t},process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),s=process.argv.slice(2),process.on("uncaughtException",(function(e){if(!(e instanceof Dt))throw e})),process.on("unhandledRejection",Y),n.inspect=function(){return"[Emscripten Module object]"}):a?("undefined"!=typeof read&&(f=function(e){return read(e)}),l=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(b("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?s=scriptArgs:void 0!==arguments&&(s=arguments),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(u||c)&&(c?v=self.location.href:document.currentScript&&(v=document.currentScript.src),r&&(v=r),v=0!==v.indexOf("blob:")?v.substr(0,v.lastIndexOf("/")+1):"",f=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},c&&(l=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}));var m=n.print||console.log.bind(console),h=n.printErr||console.warn.bind(console);for(t in i)i.hasOwnProperty(t)&&(n[t]=i[t]);i=null,n.arguments&&(s=n.arguments),n.thisProgram&&n.thisProgram,n.quit&&n.quit;var y,g;n.wasmBinary&&(y=n.wasmBinary),n.noExitRuntime&&n.noExitRuntime,"object"!=typeof WebAssembly&&h("no native wasm support detected");var _=new WebAssembly.Table({initial:181,maximum:181,element:"anyfunc"}),w=!1;function b(e,t){e||Y("Assertion failed: "+t)}function T(e){var t=n["_"+e];return b(t,"Cannot call unknown function "+e+", make sure it is exported"),t}var C="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function x(e,t,r){for(var n=t+r,i=t;e[i]&&!(i>=n);)++i;if(i-t>16&&e.subarray&&C)return C.decode(e.subarray(t,i));for(var o="";t<i;){var a=e[t++];if(128&a){var s=63&e[t++];if(192!=(224&a)){var u=63&e[t++];if((a=224==(240&a)?(15&a)<<12|s<<6|u:(7&a)<<18|s<<12|u<<6|63&e[t++])<65536)o+=String.fromCharCode(a);else{var c=a-65536;o+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else o+=String.fromCharCode((31&a)<<6|s)}else o+=String.fromCharCode(a)}return o}function P(e,t){return e?x(S,e,t):""}function $(e,t,r){return function(e,t,r,n){if(!(n>0))return 0;for(var i=r,o=r+n-1,a=0;a<e.length;++a){var s=e.charCodeAt(a);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++a)),s<=127){if(r>=o)break;t[r++]=s}else if(s<=2047){if(r+1>=o)break;t[r++]=192|s>>6,t[r++]=128|63&s}else if(s<=65535){if(r+2>=o)break;t[r++]=224|s>>12,t[r++]=128|s>>6&63,t[r++]=128|63&s}else{if(r+3>=o)break;t[r++]=240|s>>18,t[r++]=128|s>>12&63,t[r++]=128|s>>6&63,t[r++]=128|63&s}}return t[r]=0,r-i}(e,S,t,r)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var A,k,S,E,j,O,F,R,W;function I(e,t){return e%t>0&&(e+=t-e%t),e}function D(e){A=e,n.HEAP8=k=new Int8Array(e),n.HEAP16=E=new Int16Array(e),n.HEAP32=O=new Int32Array(e),n.HEAPU8=S=new Uint8Array(e),n.HEAPU16=j=new Uint16Array(e),n.HEAPU32=F=new Uint32Array(e),n.HEAPF32=R=new Float32Array(e),n.HEAPF64=W=new Float64Array(e)}var U=n.TOTAL_MEMORY||1073741824;function M(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var r=t.func;"number"==typeof r?void 0===t.arg?n.dynCall_v(r):n.dynCall_vi(r,t.arg):r(void 0===t.arg?null:t.arg)}else t()}}(g=n.wasmMemory?n.wasmMemory:new WebAssembly.Memory({initial:U/65536}))&&(A=g.buffer),U=A.byteLength,D(A),O[11512]=5289088;var z=[],N=[],q=[],B=[],L=[];function V(e){z.unshift(e)}function H(e){L.unshift(e)}Math.abs,Math.ceil,Math.floor,Math.min;var G=0,Z=null,X=null;function Y(e){throw n.onAbort&&n.onAbort(e),m(e+=""),h(e),w=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(e)}n.preloadedImages={},n.preloadedAudios={};var J="data:application/octet-stream;base64,";function K(e){return String.prototype.startsWith?e.startsWith(J):0===e.indexOf(J)}var Q="charlswasm_decode.wasm";function ee(){try{if(y)return new Uint8Array(y);if(l)return l(Q);throw"both async and sync fetching of the wasm failed"}catch(e){Y(e)}}function te(e,t){B.unshift({func:e,arg:t})}K(Q)||(Q=function(e){return n.locateFile?n.locateFile(e,v):v+e}(Q)),N.push({func:function(){St()}});var re={};var ne={};function ie(e){for(;e.length;){var t=e.pop();e.pop()(t)}}function oe(e){return this.fromWireType(F[e>>2])}var ae={},se={},ue={},ce=48,fe=57;function le(e){if(void 0===e)return"_unknown";var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return t>=ce&&t<=fe?"_"+e:e}function pe(e,t){return e=le(e),new Function("body","return function "+e+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(t)}function de(e,t){var r=pe(t,(function(e){this.name=t,this.message=e;var r=new Error(e).stack;void 0!==r&&(this.stack=this.toString()+"\n"+r.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},r}var ve=void 0;function me(e){throw new ve(e)}function he(e,t,r){function n(t){var n=r(t);n.length!==e.length&&me("Mismatched type converter count");for(var i=0;i<e.length;++i)Te(e[i],n[i])}e.forEach((function(e){ue[e]=t}));var i=new Array(t.length),o=[],a=0;t.forEach((function(e,t){se.hasOwnProperty(e)?i[t]=se[e]:(o.push(e),ae.hasOwnProperty(e)||(ae[e]=[]),ae[e].push((function(){i[t]=se[e],++a===o.length&&n(i)})))})),0===o.length&&n(i)}function ye(e){switch(e){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+e)}}var ge=void 0;function _e(e){for(var t="",r=e;S[r];)t+=ge[S[r++]];return t}var we=void 0;function be(e){throw new we(e)}function Te(e,t,r){if(r=r||{},!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");var n=t.name;if(e||be('type "'+n+'" must have a positive integer typeid pointer'),se.hasOwnProperty(e)){if(r.ignoreDuplicateRegistrations)return;be("Cannot register type '"+n+"' twice")}if(se[e]=t,delete ue[e],ae.hasOwnProperty(e)){var i=ae[e];delete ae[e],i.forEach((function(e){e()}))}}function Ce(e){if(!(this instanceof De))return!1;if(!(e instanceof De))return!1;for(var t=this.$$.ptrType.registeredClass,r=this.$$.ptr,n=e.$$.ptrType.registeredClass,i=e.$$.ptr;t.baseClass;)r=t.upcast(r),t=t.baseClass;for(;n.baseClass;)i=n.upcast(i),n=n.baseClass;return t===n&&r===i}function xe(e){return{count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}}function Pe(e){be(e.$$.ptrType.registeredClass.name+" instance already deleted")}var $e=!1;function Ae(e){}function ke(e){e.count.value-=1,0===e.count.value&&function(e){e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)}(e)}function Se(e){return"undefined"==typeof FinalizationGroup?(Se=function(e){return e},e):($e=new FinalizationGroup((function(e){for(var t=e.next();!t.done;t=e.next()){var r=t.value;r.ptr?ke(r):console.warn("object already deleted: "+r.ptr)}})),Se=function(e){return $e.register(e,e.$$,e.$$),e},Ae=function(e){$e.unregister(e.$$)},Se(e))}function Ee(){if(this.$$.ptr||Pe(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=Se(Object.create(Object.getPrototypeOf(this),{$$:{value:xe(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e}function je(){this.$$.ptr||Pe(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&be("Object already scheduled for deletion"),Ae(this),ke(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function Oe(){return!this.$$.ptr}var Fe=void 0,Re=[];function We(){for(;Re.length;){var e=Re.pop();e.$$.deleteScheduled=!1,e.delete()}}function Ie(){return this.$$.ptr||Pe(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&be("Object already scheduled for deletion"),Re.push(this),1===Re.length&&Fe&&Fe(We),this.$$.deleteScheduled=!0,this}function De(){}var Ue={};function Me(e,t,r){if(void 0===e[t].overloadTable){var n=e[t];e[t]=function(){return e[t].overloadTable.hasOwnProperty(arguments.length)||be("Function '"+r+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+e[t].overloadTable+")!"),e[t].overloadTable[arguments.length].apply(this,arguments)},e[t].overloadTable=[],e[t].overloadTable[n.argCount]=n}}function ze(e,t,r){n.hasOwnProperty(e)?((void 0===r||void 0!==n[e].overloadTable&&void 0!==n[e].overloadTable[r])&&be("Cannot register public name '"+e+"' twice"),Me(n,e,e),n.hasOwnProperty(r)&&be("Cannot register multiple overloads of a function with the same number of arguments ("+r+")!"),n[e].overloadTable[r]=t):(n[e]=t,void 0!==r&&(n[e].numArguments=r))}function Ne(e,t,r,n,i,o,a,s){this.name=e,this.constructor=t,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=i,this.getActualType=o,this.upcast=a,this.downcast=s,this.pureVirtualFunctions=[]}function qe(e,t,r){for(;t!==r;)t.upcast||be("Expected null or instance of "+r.name+", got an instance of "+t.name),e=t.upcast(e),t=t.baseClass;return e}function Be(e,t){if(null===t)return this.isReference&&be("null is not a valid "+this.name),0;t.$$||be('Cannot pass "'+yt(t)+'" as a '+this.name),t.$$.ptr||be("Cannot pass deleted object as a pointer of type "+this.name);var r=t.$$.ptrType.registeredClass;return qe(t.$$.ptr,r,this.registeredClass)}function Le(e,t){var r;if(null===t)return this.isReference&&be("null is not a valid "+this.name),this.isSmartPointer?(r=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,r),r):0;t.$$||be('Cannot pass "'+yt(t)+'" as a '+this.name),t.$$.ptr||be("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&t.$$.ptrType.isConst&&be("Cannot convert argument of type "+(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name)+" to parameter type "+this.name);var n=t.$$.ptrType.registeredClass;if(r=qe(t.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===t.$$.smartPtr&&be("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:t.$$.smartPtrType===this?r=t.$$.smartPtr:be("Cannot convert argument of type "+(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:r=t.$$.smartPtr;break;case 2:if(t.$$.smartPtrType===this)r=t.$$.smartPtr;else{var i=t.clone();r=this.rawShare(r,ht((function(){i.delete()}))),null!==e&&e.push(this.rawDestructor,r)}break;default:be("Unsupporting sharing policy")}return r}function Ve(e,t){if(null===t)return this.isReference&&be("null is not a valid "+this.name),0;t.$$||be('Cannot pass "'+yt(t)+'" as a '+this.name),t.$$.ptr||be("Cannot pass deleted object as a pointer of type "+this.name),t.$$.ptrType.isConst&&be("Cannot convert argument of type "+t.$$.ptrType.name+" to parameter type "+this.name);var r=t.$$.ptrType.registeredClass;return qe(t.$$.ptr,r,this.registeredClass)}function He(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e}function Ge(e){this.rawDestructor&&this.rawDestructor(e)}function Ze(e){null!==e&&e.delete()}function Xe(e,t,r){if(t===r)return e;if(void 0===r.baseClass)return null;var n=Xe(e,t,r.baseClass);return null===n?null:r.downcast(n)}function Ye(){return Object.keys(Qe).length}function Je(){var e=[];for(var t in Qe)Qe.hasOwnProperty(t)&&e.push(Qe[t]);return e}function Ke(e){Fe=e,Re.length&&Fe&&Fe(We)}var Qe={};function et(e,t){return t=function(e,t){for(void 0===t&&be("ptr should not be undefined");e.baseClass;)t=e.upcast(t),e=e.baseClass;return t}(e,t),Qe[t]}function tt(e,t){return t.ptrType&&t.ptr||me("makeClassHandle requires ptr and ptrType"),!!t.smartPtrType!=!!t.smartPtr&&me("Both smartPtrType and smartPtr must be specified"),t.count={value:1},Se(Object.create(e,{$$:{value:t}}))}function rt(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var r=et(this.registeredClass,t);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=t,r.$$.smartPtr=e,r.clone();var n=r.clone();return this.destructor(e),n}function i(){return this.isSmartPointer?tt(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):tt(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var o,a=this.registeredClass.getActualType(t),s=Ue[a];if(!s)return i.call(this);o=this.isConst?s.constPointerType:s.pointerType;var u=Xe(t,this.registeredClass,o.registeredClass);return null===u?i.call(this):this.isSmartPointer?tt(o.registeredClass.instancePrototype,{ptrType:o,ptr:u,smartPtrType:this,smartPtr:e}):tt(o.registeredClass.instancePrototype,{ptrType:o,ptr:u})}function nt(e,t,r,n,i,o,a,s,u,c,f){this.name=e,this.registeredClass=t,this.isReference=r,this.isConst=n,this.isSmartPointer=i,this.pointeeType=o,this.sharingPolicy=a,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=f,i||void 0!==t.baseClass?this.toWireType=Le:n?(this.toWireType=Be,this.destructorFunction=null):(this.toWireType=Ve,this.destructorFunction=null)}function it(e,t,r){n.hasOwnProperty(e)||me("Replacing nonexistant public symbol"),void 0!==n[e].overloadTable&&void 0!==r?n[e].overloadTable[r]=t:(n[e]=t,n[e].argCount=r)}function ot(e,t){var r;if(e=_e(e),void 0!==n["FUNCTION_TABLE_"+e])r=n["FUNCTION_TABLE_"+e][t];else if("undefined"!=typeof FUNCTION_TABLE)r=FUNCTION_TABLE[t];else{var i=n["dynCall_"+e];void 0===i&&void 0===(i=n["dynCall_"+e.replace(/f/g,"d")])&&be("No dynCall invoker for signature: "+e),r=function(r){for(var n=[],i=1;i<e.length;++i)n.push("a"+i);var o="return function dynCall_"+e+"_"+t+"("+n.join(", ")+") {\n";return o+=" return dynCall(rawFunction"+(n.length?", ":"")+n.join(", ")+");\n",o+="};\n",new Function("dynCall","rawFunction",o)(r,t)}(i)}return"function"!=typeof r&&be("unknown function pointer with signature "+e+": "+t),r}var at=void 0;function st(e){var t=Ft(e),r=_e(t);return Ot(t),r}function ut(e,t){var r=[],n={};throw t.forEach((function e(t){n[t]||se[t]||(ue[t]?ue[t].forEach(e):(r.push(t),n[t]=!0))})),new at(e+": "+r.map(st).join([", "]))}function ct(e,t){for(var r=[],n=0;n<e;n++)r.push(O[(t>>2)+n]);return r}function ft(e,t,r,n,i){var o=t.length;o<2&&be("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var a=null!==t[1]&&null!==r,s=!1,u=1;u<t.length;++u)if(null!==t[u]&&void 0===t[u].destructorFunction){s=!0;break}var c="void"!==t[0].name,f="",l="";for(u=0;u<o-2;++u)f+=(0!==u?", ":"")+"arg"+u,l+=(0!==u?", ":"")+"arg"+u+"Wired";var p="return function "+le(e)+"("+f+") {\nif (arguments.length !== "+(o-2)+") {\nthrowBindingError('function "+e+" called with ' + arguments.length + ' arguments, expected "+(o-2)+" args!');\n}\n";s&&(p+="var destructors = [];\n");var d=s?"destructors":"null",v=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],m=[be,n,i,ie,t[0],t[1]];for(a&&(p+="var thisWired = classParam.toWireType("+d+", this);\n"),u=0;u<o-2;++u)p+="var arg"+u+"Wired = argType"+u+".toWireType("+d+", arg"+u+"); // "+t[u+2].name+"\n",v.push("argType"+u),m.push(t[u+2]);if(a&&(l="thisWired"+(l.length>0?", ":"")+l),p+=(c?"var rv = ":"")+"invoker(fn"+(l.length>0?", ":"")+l+");\n",s)p+="runDestructors(destructors);\n";else for(u=a?1:2;u<t.length;++u){var h=1===u?"thisWired":"arg"+(u-2)+"Wired";null!==t[u].destructorFunction&&(p+=h+"_dtor("+h+"); // "+t[u].name+"\n",v.push(h+"_dtor"),m.push(t[u].destructorFunction))}return c&&(p+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),p+="}\n",v.push(p),function(e,t){if(!(e instanceof Function))throw new TypeError("new_ called with constructor type "+typeof e+" which is not a function");var r=pe(e.name||"unknownFunctionName",(function(){}));r.prototype=e.prototype;var n=new r,i=e.apply(n,t);return i instanceof Object?i:n}(Function,v).apply(null,m)}var lt=[],pt=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function dt(e){e>4&&0==--pt[e].refcount&&(pt[e]=void 0,lt.push(e))}function vt(){for(var e=0,t=5;t<pt.length;++t)void 0!==pt[t]&&++e;return e}function mt(){for(var e=5;e<pt.length;++e)if(void 0!==pt[e])return pt[e];return null}function ht(e){switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var t=lt.length?lt.pop():pt.length;return pt[t]={refcount:1,value:e},t}}function yt(e){if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e}function gt(e,t){switch(t){case 2:return function(e){return this.fromWireType(R[e>>2])};case 3:return function(e){return this.fromWireType(W[e>>3])};default:throw new TypeError("Unknown float type: "+e)}}function _t(e,t,r){switch(t){case 0:return r?function(e){return k[e]}:function(e){return S[e]};case 1:return r?function(e){return E[e>>1]}:function(e){return j[e>>1]};case 2:return r?function(e){return O[e>>2]}:function(e){return F[e>>2]};default:throw new TypeError("Unknown integer type: "+e)}}var wt={};function bt(){return"object"==typeof globalThis?globalThis:Function("return this")()}function Tt(e,t){var r=se[e];return void 0===r&&be(t+" has unknown type "+st(e)),r}function Ct(e){for(var t="",r=0;r<e;++r)t+=(0!==r?", ":"")+"arg"+r;var i="return function emval_allocator_"+e+"(constructor, argTypes, args) {\n";for(r=0;r<e;++r)i+="var argType"+r+" = requireRegisteredType(Module['HEAP32'][(argTypes >> 2) + "+r+'], "parameter '+r+'");\nvar arg'+r+" = argType"+r+".readValueFromPointer(args);\nargs += argType"+r+"['argPackAdvance'];\n";return i+="var obj = new constructor("+t+");\nreturn __emval_register(obj);\n}\n",new Function("requireRegisteredType","Module","__emval_register",i)(Tt,n,ht)}var xt={};var Pt={buffers:[null,[],[]],printChar:function(e,t){var r=Pt.buffers[e];0===t||10===t?((1===e?m:h)(x(r,0)),r.length=0):r.push(t)},varargs:0,get:function(e){return Pt.varargs+=4,O[Pt.varargs-4>>2]},getStr:function(){return P(Pt.get())},get64:function(){var e=Pt.get();return Pt.get(),e},getZero:function(){Pt.get()}};ve=n.InternalError=de(Error,"InternalError"),function(){for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);ge=e}(),we=n.BindingError=de(Error,"BindingError"),De.prototype.isAliasOf=Ce,De.prototype.clone=Ee,De.prototype.delete=je,De.prototype.isDeleted=Oe,De.prototype.deleteLater=Ie,nt.prototype.getPointee=He,nt.prototype.destructor=Ge,nt.prototype.argPackAdvance=8,nt.prototype.readValueFromPointer=oe,nt.prototype.deleteObject=Ze,nt.prototype.fromWireType=rt,n.getInheritedInstanceCount=Ye,n.getLiveInheritedInstances=Je,n.flushPendingDeletes=We,n.setDelayFunction=Ke,at=n.UnboundTypeError=de(Error,"UnboundTypeError"),n.count_emval_handles=vt,n.get_first_emval=mt;var $t={__cxa_allocate_exception:function(e){return Et(e)},__cxa_atexit:function(){return te.apply(null,arguments)},__cxa_thread_atexit:function(){return te.apply(null,arguments)},__cxa_throw:function(e,t,r){throw re[e]={ptr:e,adjusted:[e],type:t,destructor:r,refcount:0,caught:!1,rethrown:!1},"uncaught_exception"in jt?jt.uncaught_exceptions++:jt.uncaught_exceptions=1,e},_embind_finalize_value_object:function(e){var t=ne[e];delete ne[e];var r=t.rawConstructor,n=t.rawDestructor,i=t.fields;he([e],i.map((function(e){return e.getterReturnType})).concat(i.map((function(e){return e.setterArgumentType}))),(function(e){var o={};return i.forEach((function(t,r){var n=t.fieldName,a=e[r],s=t.getter,u=t.getterContext,c=e[r+i.length],f=t.setter,l=t.setterContext;o[n]={read:function(e){return a.fromWireType(s(u,e))},write:function(e,t){var r=[];f(l,e,c.toWireType(r,t)),ie(r)}}})),[{name:t.name,fromWireType:function(e){var t={};for(var r in o)t[r]=o[r].read(e);return n(e),t},toWireType:function(e,t){for(var i in o)if(!(i in t))throw new TypeError("Missing field");var a=r();for(i in o)o[i].write(a,t[i]);return null!==e&&e.push(n,a),a},argPackAdvance:8,readValueFromPointer:oe,destructorFunction:n}]}))},_embind_register_bool:function(e,t,r,n,i){var o=ye(r);Te(e,{name:t=_e(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?n:i},argPackAdvance:8,readValueFromPointer:function(e){var n;if(1===r)n=k;else if(2===r)n=E;else{if(4!==r)throw new TypeError("Unknown boolean type size: "+t);n=O}return this.fromWireType(n[e>>o])},destructorFunction:null})},_embind_register_class:function(e,t,r,n,i,o,a,s,u,c,f,l,p){f=_e(f),o=ot(i,o),s&&(s=ot(a,s)),c&&(c=ot(u,c)),p=ot(l,p);var d=le(f);ze(d,(function(){ut("Cannot construct "+f+" due to unbound types",[n])})),he([e,t,r],n?[n]:[],(function(t){var r,i;t=t[0],i=n?(r=t.registeredClass).instancePrototype:De.prototype;var a=pe(d,(function(){if(Object.getPrototypeOf(this)!==u)throw new we("Use 'new' to construct "+f);if(void 0===l.constructor_body)throw new we(f+" has no accessible constructor");var e=l.constructor_body[arguments.length];if(void 0===e)throw new we("Tried to invoke ctor of "+f+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(l.constructor_body).toString()+") parameters instead!");return e.apply(this,arguments)})),u=Object.create(i,{constructor:{value:a}});a.prototype=u;var l=new Ne(f,a,u,p,r,o,s,c),v=new nt(f,l,!0,!1,!1),m=new nt(f+"*",l,!1,!1,!1),h=new nt(f+" const*",l,!1,!0,!1);return Ue[e]={pointerType:m,constPointerType:h},it(d,a),[v,m,h]}))},_embind_register_class_constructor:function(e,t,r,n,i,o){b(t>0);var a=ct(t,r);i=ot(n,i);var s=[o],u=[];he([],[e],(function(e){var r="constructor "+(e=e[0]).name;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[t-1])throw new we("Cannot register multiple constructors with identical number of parameters ("+(t-1)+") for class '"+e.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return e.registeredClass.constructor_body[t-1]=function(){ut("Cannot construct "+e.name+" due to unbound types",a)},he([],a,(function(n){return e.registeredClass.constructor_body[t-1]=function(){arguments.length!==t-1&&be(r+" called with "+arguments.length+" arguments, expected "+(t-1)),u.length=0,s.length=t;for(var e=1;e<t;++e)s[e]=n[e].toWireType(u,arguments[e-1]);var o=i.apply(null,s);return ie(u),n[0].fromWireType(o)},[]})),[]}))},_embind_register_class_function:function(e,t,r,n,i,o,a,s){var u=ct(r,n);t=_e(t),o=ot(i,o),he([],[e],(function(e){var n=(e=e[0]).name+"."+t;function i(){ut("Cannot call "+n+" due to unbound types",u)}s&&e.registeredClass.pureVirtualFunctions.push(t);var c=e.registeredClass.instancePrototype,f=c[t];return void 0===f||void 0===f.overloadTable&&f.className!==e.name&&f.argCount===r-2?(i.argCount=r-2,i.className=e.name,c[t]=i):(Me(c,t,n),c[t].overloadTable[r-2]=i),he([],u,(function(i){var s=ft(n,i,e,o,a);return void 0===c[t].overloadTable?(s.argCount=r-2,c[t]=s):c[t].overloadTable[r-2]=s,[]})),[]}))},_embind_register_emval:function(e,t){Te(e,{name:t=_e(t),fromWireType:function(e){var t=pt[e].value;return dt(e),t},toWireType:function(e,t){return ht(t)},argPackAdvance:8,readValueFromPointer:oe,destructorFunction:null})},_embind_register_float:function(e,t,r){var n=ye(r);Te(e,{name:t=_e(t),fromWireType:function(e){return e},toWireType:function(e,t){if("number"!=typeof t&&"boolean"!=typeof t)throw new TypeError('Cannot convert "'+yt(t)+'" to '+this.name);return t},argPackAdvance:8,readValueFromPointer:gt(t,n),destructorFunction:null})},_embind_register_function:function(e,t,r,n,i,o){var a=ct(t,r);e=_e(e),i=ot(n,i),ze(e,(function(){ut("Cannot call "+e+" due to unbound types",a)}),t-1),he([],a,(function(r){var n=[r[0],null].concat(r.slice(1));return it(e,ft(e,n,null,i,o),t-1),[]}))},_embind_register_integer:function(e,t,r,n,i){t=_e(t),-1===i&&(i=4294967295);var o=ye(r),a=function(e){return e};if(0===n){var s=32-8*r;a=function(e){return e<<s>>>s}}var u=-1!=t.indexOf("unsigned");Te(e,{name:t,fromWireType:a,toWireType:function(e,r){if("number"!=typeof r&&"boolean"!=typeof r)throw new TypeError('Cannot convert "'+yt(r)+'" to '+this.name);if(r<n||r>i)throw new TypeError('Passing a number "'+yt(r)+'" from JS side to C/C++ side to an argument of type "'+t+'", which is outside the valid range ['+n+", "+i+"]!");return u?r>>>0:0|r},argPackAdvance:8,readValueFromPointer:_t(t,o,0!==n),destructorFunction:null})},_embind_register_memory_view:function(e,t,r){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];function i(e){var t=F,r=t[e>>=2],i=t[e+1];return new n(t.buffer,i,r)}Te(e,{name:r=_e(r),fromWireType:i,argPackAdvance:8,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},_embind_register_std_string:function(e,t){var r="std::string"===(t=_e(t));Te(e,{name:t,fromWireType:function(e){var t,n=F[e>>2];if(r){var i=S[e+4+n],o=0;0!=i&&(o=i,S[e+4+n]=0);for(var a=e+4,s=0;s<=n;++s){var u=e+4+s;if(0==S[u]){var c=P(a);void 0===t?t=c:(t+=String.fromCharCode(0),t+=c),a=u+1}}0!=o&&(S[e+4+n]=o)}else{var f=new Array(n);for(s=0;s<n;++s)f[s]=String.fromCharCode(S[e+4+s]);t=f.join("")}return Ot(e),t},toWireType:function(e,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var n="string"==typeof t;n||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||be("Cannot pass non-string to std::string");var i=(r&&n?function(){return function(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++r)),n<=127?++t:t+=n<=2047?2:n<=65535?3:4}return t}(t)}:function(){return t.length})(),o=Et(4+i+1);if(F[o>>2]=i,r&&n)$(t,o+4,i+1);else if(n)for(var a=0;a<i;++a){var s=t.charCodeAt(a);s>255&&(Ot(o),be("String has UTF-16 code units that do not fit in 8 bits")),S[o+4+a]=s}else for(a=0;a<i;++a)S[o+4+a]=t[a];return null!==e&&e.push(Ot,o),o},argPackAdvance:8,readValueFromPointer:oe,destructorFunction:function(e){Ot(e)}})},_embind_register_std_wstring:function(e,t,r){var n,i;r=_e(r),2===t?(n=function(){return j},i=1):4===t&&(n=function(){return F},i=2),Te(e,{name:r,fromWireType:function(e){for(var t=n(),r=F[e>>2],o=new Array(r),a=e+4>>i,s=0;s<r;++s)o[s]=String.fromCharCode(t[a+s]);return Ot(e),o.join("")},toWireType:function(e,r){var o=r.length,a=Et(4+o*t),s=n();F[a>>2]=o;for(var u=a+4>>i,c=0;c<o;++c)s[u+c]=r.charCodeAt(c);return null!==e&&e.push(Ot,a),a},argPackAdvance:8,readValueFromPointer:oe,destructorFunction:function(e){Ot(e)}})},_embind_register_value_object:function(e,t,r,n,i,o){ne[e]={name:_e(t),rawConstructor:ot(r,n),rawDestructor:ot(i,o),fields:[]}},_embind_register_value_object_field:function(e,t,r,n,i,o,a,s,u,c){ne[e].fields.push({fieldName:_e(t),getterReturnType:r,getter:ot(n,i),getterContext:o,setterArgumentType:a,setter:ot(s,u),setterContext:c})},_embind_register_void:function(e,t){Te(e,{isVoid:!0,name:t=_e(t),argPackAdvance:0,fromWireType:function(){},toWireType:function(e,t){}})},_emval_decref:dt,_emval_get_global:function(e){return 0===e?ht(bt()):(e=function(e){var t=wt[e];return void 0===t?_e(e):t}(e),ht(bt()[e]))},_emval_incref:function(e){e>4&&(pt[e].refcount+=1)},_emval_new:function(e,t,r,n){e=function(e){return e||be("Cannot use deleted val. handle = "+e),pt[e].value}(e);var i=xt[t];return i||(i=Ct(t),xt[t]=i),i(e,r,n)},_emval_take_value:function(e,t){return ht((e=Tt(e,"_emval_take_value")).readValueFromPointer(t))},abort:function(){Y()},emscripten_get_sbrk_ptr:function(){return 46048},emscripten_memcpy_big:function(e,t,r){S.set(S.subarray(t,t+r),e)},emscripten_resize_heap:function(e){var t=k.length,r=2147418112;if(e>r)return!1;for(var n=Math.max(t,16777216);n<e;)n=n<=536870912?I(2*n,65536):Math.min(I((3*n+2147483648)/4,65536),r);return!!function(e){try{return g.grow(e-A.byteLength+65535>>16),D(g.buffer),1}catch(e){}}(n)},fd_close:function(e){try{return 0}catch(e){return"undefined"!=typeof FS&&e instanceof FS.ErrnoError||Y(e),e.errno}},fd_seek:function(e,t,r,n,i){try{return 0}catch(e){return"undefined"!=typeof FS&&e instanceof FS.ErrnoError||Y(e),e.errno}},fd_write:function(e,t,r,n){try{for(var i=0,o=0;o<r;o++){for(var a=O[t+8*o>>2],s=O[t+(8*o+4)>>2],u=0;u<s;u++)Pt.printChar(e,S[a+u]);i+=s}return O[n>>2]=i,0}catch(e){return"undefined"!=typeof FS&&e instanceof FS.ErrnoError||Y(e),e.errno}},memory:g,setTempRet0:function(e){},table:_},At=function(){var e={env:$t,wasi_snapshot_preview1:$t};function t(e,t){var r=e.exports;n.asm=r,function(e){if(G--,n.monitorRunDependencies&&n.monitorRunDependencies(G),0==G&&(null!==Z&&(clearInterval(Z),Z=null),X)){var t=X;X=null,t()}}()}function r(e){t(e.instance)}function i(t){return(y||!u&&!c||"function"!=typeof fetch?new Promise((function(e,t){e(ee())})):fetch(Q,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+Q+"'";return e.arrayBuffer()})).catch((function(){return ee()}))).then((function(t){return WebAssembly.instantiate(t,e)})).then(t,(function(e){h("failed to asynchronously prepare wasm: "+e),Y(e)}))}if(G++,n.monitorRunDependencies&&n.monitorRunDependencies(G),n.instantiateWasm)try{return n.instantiateWasm(e,t)}catch(e){return h("Module.instantiateWasm callback failed with error: "+e),!1}return function(){if(y||"function"!=typeof WebAssembly.instantiateStreaming||K(Q)||"function"!=typeof fetch)return i(r);fetch(Q,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(r,(function(e){h("wasm streaming compile failed: "+e),h("falling back to ArrayBuffer instantiation"),i(r)}))}))}(),{}}();n.asm=At;var kt,St=n.___wasm_call_ctors=function(){return n.asm.__wasm_call_ctors.apply(null,arguments)},Et=n._malloc=function(){return n.asm.malloc.apply(null,arguments)},jt=(n._setThrew=function(){return n.asm.setThrew.apply(null,arguments)},n.__ZSt18uncaught_exceptionv=function(){return n.asm._ZSt18uncaught_exceptionv.apply(null,arguments)}),Ot=n._free=function(){return n.asm.free.apply(null,arguments)},Ft=n.___getTypeName=function(){return n.asm.__getTypeName.apply(null,arguments)},Rt=(n.___embind_register_native_and_builtin_types=function(){return n.asm.__embind_register_native_and_builtin_types.apply(null,arguments)},n.stackSave=function(){return n.asm.stackSave.apply(null,arguments)}),Wt=n.stackAlloc=function(){return n.asm.stackAlloc.apply(null,arguments)},It=n.stackRestore=function(){return n.asm.stackRestore.apply(null,arguments)};function Dt(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function Ut(e){function t(){kt||(kt=!0,w||(M(N),M(q),n.onRuntimeInitialized&&n.onRuntimeInitialized(),function(){if(n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;)H(n.postRun.shift());M(L)}()))}e=e||s,G>0||(function(){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)V(n.preRun.shift());M(z)}(),G>0||(n.setStatus?(n.setStatus("Running..."),setTimeout((function(){setTimeout((function(){n.setStatus("")}),1),t()}),1)):t()))}if(n.__growWasmMemory=function(){return n.asm.__growWasmMemory.apply(null,arguments)},n.dynCall_i=function(){return n.asm.dynCall_i.apply(null,arguments)},n.dynCall_vi=function(){return n.asm.dynCall_vi.apply(null,arguments)},n.dynCall_iii=function(){return n.asm.dynCall_iii.apply(null,arguments)},n.dynCall_viii=function(){return n.asm.dynCall_viii.apply(null,arguments)},n.dynCall_ii=function(){return n.asm.dynCall_ii.apply(null,arguments)},n.dynCall_iiii=function(){return n.asm.dynCall_iiii.apply(null,arguments)},n.dynCall_vii=function(){return n.asm.dynCall_vii.apply(null,arguments)},n.dynCall_viiii=function(){return n.asm.dynCall_viiii.apply(null,arguments)},n.dynCall_v=function(){return n.asm.dynCall_v.apply(null,arguments)},n.dynCall_iidiiii=function(){return n.asm.dynCall_iidiiii.apply(null,arguments)},n.dynCall_jiji=function(){return n.asm.dynCall_jiji.apply(null,arguments)},n.dynCall_viiiiii=function(){return n.asm.dynCall_viiiiii.apply(null,arguments)},n.dynCall_viiiii=function(){return n.asm.dynCall_viiiii.apply(null,arguments)},n.asm=At,n.ccall=function(e,t,r,n,i){var o={string:function(e){var t=0;if(null!=e&&0!==e){var r=1+(e.length<<2);$(e,t=Wt(r),r)}return t},array:function(e){var t=Wt(e.length);return function(e,t){k.set(e,t)}(e,t),t}},a=T(e),s=[],u=0;if(n)for(var c=0;c<n.length;c++){var f=o[r[c]];f?(0===u&&(u=Rt()),s[c]=f(n[c])):s[c]=n[c]}var l=a.apply(null,s);return l=function(e){return"string"===t?P(e):"boolean"===t?Boolean(e):e}(l),0!==u&&It(u),l},n.then=function(e){if(kt)e(n);else{var t=n.onRuntimeInitialized;n.onRuntimeInitialized=function(){t&&t(),e(n)}}return n},X=function e(){kt||Ut(),kt||(X=e)},n.run=Ut,n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.pop()();return Ut(),e});"object"==typeof t&&"object"==typeof e?e.exports=n:"function"==typeof define&&define.amd?define([],(function(){return n})):"object"==typeof t&&(t.CharLSWASM=n)},9400:function(e,t){var r,n=(r="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,"undefined"!=typeof __filename&&(r=r||__filename),function(e){var t,n=void 0!==(e=e||{})?e:{},i={};for(t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);var o,a,s=[],u="./this.program",c=function(e,t){throw t},f=!1,l=!1;f="object"==typeof window,l="function"==typeof importScripts,o="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node&&!f&&!l,a=!f&&!o&&!l;var p,d,v,m,h="";o?(h=__dirname+"/",p=function(e,t){return v||(v=require("fs")),m||(m=require("path")),e=m.normalize(e),v.readFileSync(e,t?null:"utf8")},d=function(e){var t=p(e,!0);return t.buffer||(t=new Uint8Array(t)),$(t.buffer),t},process.argv.length>1&&(u=process.argv[1].replace(/\\/g,"/")),s=process.argv.slice(2),process.on("uncaughtException",(function(e){if(!(e instanceof Kt))throw e})),process.on("unhandledRejection",te),c=function(e){process.exit(e)},n.inspect=function(){return"[Emscripten Module object]"}):a?("undefined"!=typeof read&&(p=function(e){return read(e)}),d=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):($("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?s=scriptArgs:void 0!==arguments&&(s=arguments),"function"==typeof quit&&(c=function(e){quit(e)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(f||l)&&(l?h=self.location.href:document.currentScript&&(h=document.currentScript.src),r&&(h=r),h=0!==h.indexOf("blob:")?h.substr(0,h.lastIndexOf("/")+1):"",p=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},l&&(d=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}));var y=n.print||console.log.bind(console),g=n.printErr||console.warn.bind(console);for(t in i)i.hasOwnProperty(t)&&(n[t]=i[t]);i=null,n.arguments&&(s=n.arguments),n.thisProgram&&(u=n.thisProgram),n.quit&&(c=n.quit);var _,w,b,T=0,C=function(e){T=e};n.wasmBinary&&(_=n.wasmBinary),n.noExitRuntime&&(w=n.noExitRuntime),"object"!=typeof WebAssembly&&g("no native wasm support detected");var x=new WebAssembly.Table({initial:204,maximum:204,element:"anyfunc"}),P=!1;function $(e,t){e||te("Assertion failed: "+t)}function A(e){var t=n["_"+e];return $(t,"Cannot call unknown function "+e+", make sure it is exported"),t}var k="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function S(e,t,r){for(var n=t+r,i=t;e[i]&&!(i>=n);)++i;if(i-t>16&&e.subarray&&k)return k.decode(e.subarray(t,i));for(var o="";t<i;){var a=e[t++];if(128&a){var s=63&e[t++];if(192!=(224&a)){var u=63&e[t++];if((a=224==(240&a)?(15&a)<<12|s<<6|u:(7&a)<<18|s<<12|u<<6|63&e[t++])<65536)o+=String.fromCharCode(a);else{var c=a-65536;o+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else o+=String.fromCharCode((31&a)<<6|s)}else o+=String.fromCharCode(a)}return o}function E(e,t){return e?S(R,e,t):""}function j(e,t,r){return function(e,t,r,n){if(!(n>0))return 0;for(var i=r,o=r+n-1,a=0;a<e.length;++a){var s=e.charCodeAt(a);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++a)),s<=127){if(r>=o)break;t[r++]=s}else if(s<=2047){if(r+1>=o)break;t[r++]=192|s>>6,t[r++]=128|63&s}else if(s<=65535){if(r+2>=o)break;t[r++]=224|s>>12,t[r++]=128|s>>6&63,t[r++]=128|63&s}else{if(r+3>=o)break;t[r++]=240|s>>18,t[r++]=128|s>>12&63,t[r++]=128|s>>6&63,t[r++]=128|63&s}}return t[r]=0,r-i}(e,R,t,r)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var O,F,R,W,I,D,U,M,z;function N(e,t){return e%t>0&&(e+=t-e%t),e}function q(e){O=e,n.HEAP8=F=new Int8Array(e),n.HEAP16=W=new Int16Array(e),n.HEAP32=D=new Int32Array(e),n.HEAPU8=R=new Uint8Array(e),n.HEAPU16=I=new Uint16Array(e),n.HEAPU32=U=new Uint32Array(e),n.HEAPF32=M=new Float32Array(e),n.HEAPF64=z=new Float64Array(e)}var B=n.TOTAL_MEMORY||1073741824;function L(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var r=t.func;"number"==typeof r?void 0===t.arg?n.dynCall_v(r):n.dynCall_vi(r,t.arg):r(void 0===t.arg?null:t.arg)}else t()}}(b=n.wasmMemory?n.wasmMemory:new WebAssembly.Memory({initial:B/65536}))&&(O=b.buffer),B=O.byteLength,q(O),D[3932]=5258768;var V=[],H=[],G=[],Z=[],X=[];function Y(e){V.unshift(e)}function J(e){X.unshift(e)}Math.abs,Math.ceil,Math.floor,Math.min;var K=0,Q=null,ee=null;function te(e){throw n.onAbort&&n.onAbort(e),y(e+=""),g(e),P=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(e)}n.preloadedImages={},n.preloadedAudios={};var re="data:application/octet-stream;base64,";function ne(e){return String.prototype.startsWith?e.startsWith(re):0===e.indexOf(re)}var ie="libjpegturbowasm_decode.wasm";function oe(){try{if(_)return new Uint8Array(_);if(d)return d(ie);throw"both async and sync fetching of the wasm failed"}catch(e){te(e)}}function ae(e,t){Z.unshift({func:e,arg:t})}ne(ie)||(ie=function(e){return n.locateFile?n.locateFile(e,h):h+e}(ie)),H.push({func:function(){Dt()}});var se={};var ue={};function ce(e){for(;e.length;){var t=e.pop();e.pop()(t)}}function fe(e){return this.fromWireType(U[e>>2])}var le={},pe={},de={},ve=48,me=57;function he(e){if(void 0===e)return"_unknown";var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return t>=ve&&t<=me?"_"+e:e}function ye(e,t){return e=he(e),new Function("body","return function "+e+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(t)}function ge(e,t){var r=ye(t,(function(e){this.name=t,this.message=e;var r=new Error(e).stack;void 0!==r&&(this.stack=this.toString()+"\n"+r.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},r}var _e=void 0;function we(e){throw new _e(e)}function be(e,t,r){function n(t){var n=r(t);n.length!==e.length&&we("Mismatched type converter count");for(var i=0;i<e.length;++i)Ae(e[i],n[i])}e.forEach((function(e){de[e]=t}));var i=new Array(t.length),o=[],a=0;t.forEach((function(e,t){pe.hasOwnProperty(e)?i[t]=pe[e]:(o.push(e),le.hasOwnProperty(e)||(le[e]=[]),le[e].push((function(){i[t]=pe[e],++a===o.length&&n(i)})))})),0===o.length&&n(i)}function Te(e){switch(e){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+e)}}var Ce=void 0;function xe(e){for(var t="",r=e;R[r];)t+=Ce[R[r++]];return t}var Pe=void 0;function $e(e){throw new Pe(e)}function Ae(e,t,r){if(r=r||{},!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");var n=t.name;if(e||$e('type "'+n+'" must have a positive integer typeid pointer'),pe.hasOwnProperty(e)){if(r.ignoreDuplicateRegistrations)return;$e("Cannot register type '"+n+"' twice")}if(pe[e]=t,delete de[e],le.hasOwnProperty(e)){var i=le[e];delete le[e],i.forEach((function(e){e()}))}}function ke(e){if(!(this instanceof qe))return!1;if(!(e instanceof qe))return!1;for(var t=this.$$.ptrType.registeredClass,r=this.$$.ptr,n=e.$$.ptrType.registeredClass,i=e.$$.ptr;t.baseClass;)r=t.upcast(r),t=t.baseClass;for(;n.baseClass;)i=n.upcast(i),n=n.baseClass;return t===n&&r===i}function Se(e){return{count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}}function Ee(e){$e(e.$$.ptrType.registeredClass.name+" instance already deleted")}var je=!1;function Oe(e){}function Fe(e){e.count.value-=1,0===e.count.value&&function(e){e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)}(e)}function Re(e){return"undefined"==typeof FinalizationGroup?(Re=function(e){return e},e):(je=new FinalizationGroup((function(e){for(var t=e.next();!t.done;t=e.next()){var r=t.value;r.ptr?Fe(r):console.warn("object already deleted: "+r.ptr)}})),Re=function(e){return je.register(e,e.$$,e.$$),e},Oe=function(e){je.unregister(e.$$)},Re(e))}function We(){if(this.$$.ptr||Ee(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=Re(Object.create(Object.getPrototypeOf(this),{$$:{value:Se(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e}function Ie(){this.$$.ptr||Ee(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&$e("Object already scheduled for deletion"),Oe(this),Fe(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function De(){return!this.$$.ptr}var Ue=void 0,Me=[];function ze(){for(;Me.length;){var e=Me.pop();e.$$.deleteScheduled=!1,e.delete()}}function Ne(){return this.$$.ptr||Ee(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&$e("Object already scheduled for deletion"),Me.push(this),1===Me.length&&Ue&&Ue(ze),this.$$.deleteScheduled=!0,this}function qe(){}var Be={};function Le(e,t,r){if(void 0===e[t].overloadTable){var n=e[t];e[t]=function(){return e[t].overloadTable.hasOwnProperty(arguments.length)||$e("Function '"+r+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+e[t].overloadTable+")!"),e[t].overloadTable[arguments.length].apply(this,arguments)},e[t].overloadTable=[],e[t].overloadTable[n.argCount]=n}}function Ve(e,t,r){n.hasOwnProperty(e)?((void 0===r||void 0!==n[e].overloadTable&&void 0!==n[e].overloadTable[r])&&$e("Cannot register public name '"+e+"' twice"),Le(n,e,e),n.hasOwnProperty(r)&&$e("Cannot register multiple overloads of a function with the same number of arguments ("+r+")!"),n[e].overloadTable[r]=t):(n[e]=t,void 0!==r&&(n[e].numArguments=r))}function He(e,t,r,n,i,o,a,s){this.name=e,this.constructor=t,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=i,this.getActualType=o,this.upcast=a,this.downcast=s,this.pureVirtualFunctions=[]}function Ge(e,t,r){for(;t!==r;)t.upcast||$e("Expected null or instance of "+r.name+", got an instance of "+t.name),e=t.upcast(e),t=t.baseClass;return e}function Ze(e,t){if(null===t)return this.isReference&&$e("null is not a valid "+this.name),0;t.$$||$e('Cannot pass "'+Tt(t)+'" as a '+this.name),t.$$.ptr||$e("Cannot pass deleted object as a pointer of type "+this.name);var r=t.$$.ptrType.registeredClass;return Ge(t.$$.ptr,r,this.registeredClass)}function Xe(e,t){var r;if(null===t)return this.isReference&&$e("null is not a valid "+this.name),this.isSmartPointer?(r=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,r),r):0;t.$$||$e('Cannot pass "'+Tt(t)+'" as a '+this.name),t.$$.ptr||$e("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&t.$$.ptrType.isConst&&$e("Cannot convert argument of type "+(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name)+" to parameter type "+this.name);var n=t.$$.ptrType.registeredClass;if(r=Ge(t.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===t.$$.smartPtr&&$e("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:t.$$.smartPtrType===this?r=t.$$.smartPtr:$e("Cannot convert argument of type "+(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:r=t.$$.smartPtr;break;case 2:if(t.$$.smartPtrType===this)r=t.$$.smartPtr;else{var i=t.clone();r=this.rawShare(r,bt((function(){i.delete()}))),null!==e&&e.push(this.rawDestructor,r)}break;default:$e("Unsupporting sharing policy")}return r}function Ye(e,t){if(null===t)return this.isReference&&$e("null is not a valid "+this.name),0;t.$$||$e('Cannot pass "'+Tt(t)+'" as a '+this.name),t.$$.ptr||$e("Cannot pass deleted object as a pointer of type "+this.name),t.$$.ptrType.isConst&&$e("Cannot convert argument of type "+t.$$.ptrType.name+" to parameter type "+this.name);var r=t.$$.ptrType.registeredClass;return Ge(t.$$.ptr,r,this.registeredClass)}function Je(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e}function Ke(e){this.rawDestructor&&this.rawDestructor(e)}function Qe(e){null!==e&&e.delete()}function et(e,t,r){if(t===r)return e;if(void 0===r.baseClass)return null;var n=et(e,t,r.baseClass);return null===n?null:r.downcast(n)}function tt(){return Object.keys(it).length}function rt(){var e=[];for(var t in it)it.hasOwnProperty(t)&&e.push(it[t]);return e}function nt(e){Ue=e,Me.length&&Ue&&Ue(ze)}var it={};function ot(e,t){return t=function(e,t){for(void 0===t&&$e("ptr should not be undefined");e.baseClass;)t=e.upcast(t),e=e.baseClass;return t}(e,t),it[t]}function at(e,t){return t.ptrType&&t.ptr||we("makeClassHandle requires ptr and ptrType"),!!t.smartPtrType!=!!t.smartPtr&&we("Both smartPtrType and smartPtr must be specified"),t.count={value:1},Re(Object.create(e,{$$:{value:t}}))}function st(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var r=ot(this.registeredClass,t);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=t,r.$$.smartPtr=e,r.clone();var n=r.clone();return this.destructor(e),n}function i(){return this.isSmartPointer?at(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):at(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var o,a=this.registeredClass.getActualType(t),s=Be[a];if(!s)return i.call(this);o=this.isConst?s.constPointerType:s.pointerType;var u=et(t,this.registeredClass,o.registeredClass);return null===u?i.call(this):this.isSmartPointer?at(o.registeredClass.instancePrototype,{ptrType:o,ptr:u,smartPtrType:this,smartPtr:e}):at(o.registeredClass.instancePrototype,{ptrType:o,ptr:u})}function ut(e,t,r,n,i,o,a,s,u,c,f){this.name=e,this.registeredClass=t,this.isReference=r,this.isConst=n,this.isSmartPointer=i,this.pointeeType=o,this.sharingPolicy=a,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=f,i||void 0!==t.baseClass?this.toWireType=Xe:n?(this.toWireType=Ze,this.destructorFunction=null):(this.toWireType=Ye,this.destructorFunction=null)}function ct(e,t,r){n.hasOwnProperty(e)||we("Replacing nonexistant public symbol"),void 0!==n[e].overloadTable&&void 0!==r?n[e].overloadTable[r]=t:(n[e]=t,n[e].argCount=r)}function ft(e,t){var r;if(e=xe(e),void 0!==n["FUNCTION_TABLE_"+e])r=n["FUNCTION_TABLE_"+e][t];else if("undefined"!=typeof FUNCTION_TABLE)r=FUNCTION_TABLE[t];else{var i=n["dynCall_"+e];void 0===i&&void 0===(i=n["dynCall_"+e.replace(/f/g,"d")])&&$e("No dynCall invoker for signature: "+e),r=function(r){for(var n=[],i=1;i<e.length;++i)n.push("a"+i);var o="return function dynCall_"+e+"_"+t+"("+n.join(", ")+") {\n";return o+=" return dynCall(rawFunction"+(n.length?", ":"")+n.join(", ")+");\n",o+="};\n",new Function("dynCall","rawFunction",o)(r,t)}(i)}return"function"!=typeof r&&$e("unknown function pointer with signature "+e+": "+t),r}var lt=void 0;function pt(e){var t=Bt(e),r=xe(t);return Mt(t),r}function dt(e,t){var r=[],n={};throw t.forEach((function e(t){n[t]||pe[t]||(de[t]?de[t].forEach(e):(r.push(t),n[t]=!0))})),new lt(e+": "+r.map(pt).join([", "]))}function vt(e,t){for(var r=[],n=0;n<e;n++)r.push(D[(t>>2)+n]);return r}function mt(e,t,r,n,i){var o=t.length;o<2&&$e("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var a=null!==t[1]&&null!==r,s=!1,u=1;u<t.length;++u)if(null!==t[u]&&void 0===t[u].destructorFunction){s=!0;break}var c="void"!==t[0].name,f="",l="";for(u=0;u<o-2;++u)f+=(0!==u?", ":"")+"arg"+u,l+=(0!==u?", ":"")+"arg"+u+"Wired";var p="return function "+he(e)+"("+f+") {\nif (arguments.length !== "+(o-2)+") {\nthrowBindingError('function "+e+" called with ' + arguments.length + ' arguments, expected "+(o-2)+" args!');\n}\n";s&&(p+="var destructors = [];\n");var d=s?"destructors":"null",v=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],m=[$e,n,i,ce,t[0],t[1]];for(a&&(p+="var thisWired = classParam.toWireType("+d+", this);\n"),u=0;u<o-2;++u)p+="var arg"+u+"Wired = argType"+u+".toWireType("+d+", arg"+u+"); // "+t[u+2].name+"\n",v.push("argType"+u),m.push(t[u+2]);if(a&&(l="thisWired"+(l.length>0?", ":"")+l),p+=(c?"var rv = ":"")+"invoker(fn"+(l.length>0?", ":"")+l+");\n",s)p+="runDestructors(destructors);\n";else for(u=a?1:2;u<t.length;++u){var h=1===u?"thisWired":"arg"+(u-2)+"Wired";null!==t[u].destructorFunction&&(p+=h+"_dtor("+h+"); // "+t[u].name+"\n",v.push(h+"_dtor"),m.push(t[u].destructorFunction))}return c&&(p+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),p+="}\n",v.push(p),function(e,t){if(!(e instanceof Function))throw new TypeError("new_ called with constructor type "+typeof e+" which is not a function");var r=ye(e.name||"unknownFunctionName",(function(){}));r.prototype=e.prototype;var n=new r,i=e.apply(n,t);return i instanceof Object?i:n}(Function,v).apply(null,m)}var ht=[],yt=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function gt(e){e>4&&0==--yt[e].refcount&&(yt[e]=void 0,ht.push(e))}function _t(){for(var e=0,t=5;t<yt.length;++t)void 0!==yt[t]&&++e;return e}function wt(){for(var e=5;e<yt.length;++e)if(void 0!==yt[e])return yt[e];return null}function bt(e){switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var t=ht.length?ht.pop():yt.length;return yt[t]={refcount:1,value:e},t}}function Tt(e){if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e}function Ct(e,t){switch(t){case 2:return function(e){return this.fromWireType(M[e>>2])};case 3:return function(e){return this.fromWireType(z[e>>3])};default:throw new TypeError("Unknown float type: "+e)}}function xt(e,t,r){switch(t){case 0:return r?function(e){return F[e]}:function(e){return R[e]};case 1:return r?function(e){return W[e>>1]}:function(e){return I[e>>1]};case 2:return r?function(e){return D[e>>2]}:function(e){return U[e>>2]};default:throw new TypeError("Unknown integer type: "+e)}}var Pt={};function $t(){return"object"==typeof globalThis?globalThis:Function("return this")()}function At(e,t){var r=pe[e];return void 0===r&&$e(t+" has unknown type "+pt(e)),r}function kt(e){for(var t="",r=0;r<e;++r)t+=(0!==r?", ":"")+"arg"+r;var i="return function emval_allocator_"+e+"(constructor, argTypes, args) {\n";for(r=0;r<e;++r)i+="var argType"+r+" = requireRegisteredType(Module['HEAP32'][(argTypes >> 2) + "+r+'], "parameter '+r+'");\nvar arg'+r+" = argType"+r+".readValueFromPointer(args);\nargs += argType"+r+"['argPackAdvance'];\n";return i+="var obj = new constructor("+t+");\nreturn __emval_register(obj);\n}\n",new Function("requireRegisteredType","Module","__emval_register",i)(At,n,bt)}var St={};var Et=0;var jt={};function Ot(){if(!Ot.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:u};for(var t in jt)e[t]=jt[t];var r=[];for(var t in e)r.push(t+"="+e[t]);Ot.strings=r}return Ot.strings}var Ft={buffers:[null,[],[]],printChar:function(e,t){var r=Ft.buffers[e];0===t||10===t?((1===e?y:g)(S(r,0)),r.length=0):r.push(t)},varargs:0,get:function(e){return Ft.varargs+=4,D[Ft.varargs-4>>2]},getStr:function(){return E(Ft.get())},get64:function(){var e=Ft.get();return Ft.get(),e},getZero:function(){Ft.get()}};_e=n.InternalError=ge(Error,"InternalError"),function(){for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);Ce=e}(),Pe=n.BindingError=ge(Error,"BindingError"),qe.prototype.isAliasOf=ke,qe.prototype.clone=We,qe.prototype.delete=Ie,qe.prototype.isDeleted=De,qe.prototype.deleteLater=Ne,ut.prototype.getPointee=Je,ut.prototype.destructor=Ke,ut.prototype.argPackAdvance=8,ut.prototype.readValueFromPointer=fe,ut.prototype.deleteObject=Qe,ut.prototype.fromWireType=st,n.getInheritedInstanceCount=tt,n.getLiveInheritedInstances=rt,n.flushPendingDeletes=ze,n.setDelayFunction=nt,lt=n.UnboundTypeError=ge(Error,"UnboundTypeError"),n.count_emval_handles=_t,n.get_first_emval=wt;var Rt={__cxa_allocate_exception:function(e){return Ut(e)},__cxa_thread_atexit:function(){return ae.apply(null,arguments)},__cxa_throw:function(e,t,r){throw se[e]={ptr:e,adjusted:[e],type:t,destructor:r,refcount:0,caught:!1,rethrown:!1},"uncaught_exception"in qt?qt.uncaught_exceptions++:qt.uncaught_exceptions=1,e},_embind_finalize_value_object:function(e){var t=ue[e];delete ue[e];var r=t.rawConstructor,n=t.rawDestructor,i=t.fields;be([e],i.map((function(e){return e.getterReturnType})).concat(i.map((function(e){return e.setterArgumentType}))),(function(e){var o={};return i.forEach((function(t,r){var n=t.fieldName,a=e[r],s=t.getter,u=t.getterContext,c=e[r+i.length],f=t.setter,l=t.setterContext;o[n]={read:function(e){return a.fromWireType(s(u,e))},write:function(e,t){var r=[];f(l,e,c.toWireType(r,t)),ce(r)}}})),[{name:t.name,fromWireType:function(e){var t={};for(var r in o)t[r]=o[r].read(e);return n(e),t},toWireType:function(e,t){for(var i in o)if(!(i in t))throw new TypeError("Missing field");var a=r();for(i in o)o[i].write(a,t[i]);return null!==e&&e.push(n,a),a},argPackAdvance:8,readValueFromPointer:fe,destructorFunction:n}]}))},_embind_register_bool:function(e,t,r,n,i){var o=Te(r);Ae(e,{name:t=xe(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?n:i},argPackAdvance:8,readValueFromPointer:function(e){var n;if(1===r)n=F;else if(2===r)n=W;else{if(4!==r)throw new TypeError("Unknown boolean type size: "+t);n=D}return this.fromWireType(n[e>>o])},destructorFunction:null})},_embind_register_class:function(e,t,r,n,i,o,a,s,u,c,f,l,p){f=xe(f),o=ft(i,o),s&&(s=ft(a,s)),c&&(c=ft(u,c)),p=ft(l,p);var d=he(f);Ve(d,(function(){dt("Cannot construct "+f+" due to unbound types",[n])})),be([e,t,r],n?[n]:[],(function(t){var r,i;t=t[0],i=n?(r=t.registeredClass).instancePrototype:qe.prototype;var a=ye(d,(function(){if(Object.getPrototypeOf(this)!==u)throw new Pe("Use 'new' to construct "+f);if(void 0===l.constructor_body)throw new Pe(f+" has no accessible constructor");var e=l.constructor_body[arguments.length];if(void 0===e)throw new Pe("Tried to invoke ctor of "+f+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(l.constructor_body).toString()+") parameters instead!");return e.apply(this,arguments)})),u=Object.create(i,{constructor:{value:a}});a.prototype=u;var l=new He(f,a,u,p,r,o,s,c),v=new ut(f,l,!0,!1,!1),m=new ut(f+"*",l,!1,!1,!1),h=new ut(f+" const*",l,!1,!0,!1);return Be[e]={pointerType:m,constPointerType:h},ct(d,a),[v,m,h]}))},_embind_register_class_constructor:function(e,t,r,n,i,o){$(t>0);var a=vt(t,r);i=ft(n,i);var s=[o],u=[];be([],[e],(function(e){var r="constructor "+(e=e[0]).name;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[t-1])throw new Pe("Cannot register multiple constructors with identical number of parameters ("+(t-1)+") for class '"+e.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return e.registeredClass.constructor_body[t-1]=function(){dt("Cannot construct "+e.name+" due to unbound types",a)},be([],a,(function(n){return e.registeredClass.constructor_body[t-1]=function(){arguments.length!==t-1&&$e(r+" called with "+arguments.length+" arguments, expected "+(t-1)),u.length=0,s.length=t;for(var e=1;e<t;++e)s[e]=n[e].toWireType(u,arguments[e-1]);var o=i.apply(null,s);return ce(u),n[0].fromWireType(o)},[]})),[]}))},_embind_register_class_function:function(e,t,r,n,i,o,a,s){var u=vt(r,n);t=xe(t),o=ft(i,o),be([],[e],(function(e){var n=(e=e[0]).name+"."+t;function i(){dt("Cannot call "+n+" due to unbound types",u)}s&&e.registeredClass.pureVirtualFunctions.push(t);var c=e.registeredClass.instancePrototype,f=c[t];return void 0===f||void 0===f.overloadTable&&f.className!==e.name&&f.argCount===r-2?(i.argCount=r-2,i.className=e.name,c[t]=i):(Le(c,t,n),c[t].overloadTable[r-2]=i),be([],u,(function(i){var s=mt(n,i,e,o,a);return void 0===c[t].overloadTable?(s.argCount=r-2,c[t]=s):c[t].overloadTable[r-2]=s,[]})),[]}))},_embind_register_emval:function(e,t){Ae(e,{name:t=xe(t),fromWireType:function(e){var t=yt[e].value;return gt(e),t},toWireType:function(e,t){return bt(t)},argPackAdvance:8,readValueFromPointer:fe,destructorFunction:null})},_embind_register_float:function(e,t,r){var n=Te(r);Ae(e,{name:t=xe(t),fromWireType:function(e){return e},toWireType:function(e,t){if("number"!=typeof t&&"boolean"!=typeof t)throw new TypeError('Cannot convert "'+Tt(t)+'" to '+this.name);return t},argPackAdvance:8,readValueFromPointer:Ct(t,n),destructorFunction:null})},_embind_register_integer:function(e,t,r,n,i){t=xe(t),-1===i&&(i=4294967295);var o=Te(r),a=function(e){return e};if(0===n){var s=32-8*r;a=function(e){return e<<s>>>s}}var u=-1!=t.indexOf("unsigned");Ae(e,{name:t,fromWireType:a,toWireType:function(e,r){if("number"!=typeof r&&"boolean"!=typeof r)throw new TypeError('Cannot convert "'+Tt(r)+'" to '+this.name);if(r<n||r>i)throw new TypeError('Passing a number "'+Tt(r)+'" from JS side to C/C++ side to an argument of type "'+t+'", which is outside the valid range ['+n+", "+i+"]!");return u?r>>>0:0|r},argPackAdvance:8,readValueFromPointer:xt(t,o,0!==n),destructorFunction:null})},_embind_register_memory_view:function(e,t,r){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];function i(e){var t=U,r=t[e>>=2],i=t[e+1];return new n(t.buffer,i,r)}Ae(e,{name:r=xe(r),fromWireType:i,argPackAdvance:8,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},_embind_register_std_string:function(e,t){var r="std::string"===(t=xe(t));Ae(e,{name:t,fromWireType:function(e){var t,n=U[e>>2];if(r){var i=R[e+4+n],o=0;0!=i&&(o=i,R[e+4+n]=0);for(var a=e+4,s=0;s<=n;++s){var u=e+4+s;if(0==R[u]){var c=E(a);void 0===t?t=c:(t+=String.fromCharCode(0),t+=c),a=u+1}}0!=o&&(R[e+4+n]=o)}else{var f=new Array(n);for(s=0;s<n;++s)f[s]=String.fromCharCode(R[e+4+s]);t=f.join("")}return Mt(e),t},toWireType:function(e,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var n="string"==typeof t;n||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||$e("Cannot pass non-string to std::string");var i=(r&&n?function(){return function(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++r)),n<=127?++t:t+=n<=2047?2:n<=65535?3:4}return t}(t)}:function(){return t.length})(),o=Ut(4+i+1);if(U[o>>2]=i,r&&n)j(t,o+4,i+1);else if(n)for(var a=0;a<i;++a){var s=t.charCodeAt(a);s>255&&(Mt(o),$e("String has UTF-16 code units that do not fit in 8 bits")),R[o+4+a]=s}else for(a=0;a<i;++a)R[o+4+a]=t[a];return null!==e&&e.push(Mt,o),o},argPackAdvance:8,readValueFromPointer:fe,destructorFunction:function(e){Mt(e)}})},_embind_register_std_wstring:function(e,t,r){var n,i;r=xe(r),2===t?(n=function(){return I},i=1):4===t&&(n=function(){return U},i=2),Ae(e,{name:r,fromWireType:function(e){for(var t=n(),r=U[e>>2],o=new Array(r),a=e+4>>i,s=0;s<r;++s)o[s]=String.fromCharCode(t[a+s]);return Mt(e),o.join("")},toWireType:function(e,r){var o=r.length,a=Ut(4+o*t),s=n();U[a>>2]=o;for(var u=a+4>>i,c=0;c<o;++c)s[u+c]=r.charCodeAt(c);return null!==e&&e.push(Mt,a),a},argPackAdvance:8,readValueFromPointer:fe,destructorFunction:function(e){Mt(e)}})},_embind_register_value_object:function(e,t,r,n,i,o){ue[e]={name:xe(t),rawConstructor:ft(r,n),rawDestructor:ft(i,o),fields:[]}},_embind_register_value_object_field:function(e,t,r,n,i,o,a,s,u,c){ue[e].fields.push({fieldName:xe(t),getterReturnType:r,getter:ft(n,i),getterContext:o,setterArgumentType:a,setter:ft(s,u),setterContext:c})},_embind_register_void:function(e,t){Ae(e,{isVoid:!0,name:t=xe(t),argPackAdvance:0,fromWireType:function(){},toWireType:function(e,t){}})},_emval_decref:gt,_emval_get_global:function(e){return 0===e?bt($t()):(e=function(e){var t=Pt[e];return void 0===t?xe(e):t}(e),bt($t()[e]))},_emval_incref:function(e){e>4&&(yt[e].refcount+=1)},_emval_new:function(e,t,r,n){e=function(e){return e||$e("Cannot use deleted val. handle = "+e),yt[e].value}(e);var i=St[t];return i||(i=kt(t),St[t]=i),i(e,r,n)},_emval_take_value:function(e,t){return bt((e=At(e,"_emval_take_value")).readValueFromPointer(t))},abort:function(){te()},emscripten_get_sbrk_ptr:function(){return 15728},emscripten_longjmp:function(e,t){!function(e,t){throw Nt(e,t||1),"longjmp"}(e,t)},emscripten_memcpy_big:function(e,t,r){R.set(R.subarray(t,t+r),e)},emscripten_resize_heap:function(e){var t=F.length,r=2147418112;if(e>r)return!1;for(var n=Math.max(t,16777216);n<e;)n=n<=536870912?N(2*n,65536):Math.min(N((3*n+2147483648)/4,65536),r);return!!function(e){try{return b.grow(e-O.byteLength+65535>>16),q(b.buffer),1}catch(e){}}(n)},environ_get:function(e,t){var r=Ot(),n=0;return r.forEach((function(r,i){var o=t+n;D[e+4*i>>2]=o,function(e,t,r){for(var n=0;n<e.length;++n)F[t++>>0]=e.charCodeAt(n);r||(F[t>>0]=0)}(r,o),n+=r.length+1})),0},environ_sizes_get:function(e,t){var r=Ot();D[e>>2]=r.length;var n=0;return r.forEach((function(e){n+=e.length+1})),D[t>>2]=n,0},exit:function(e){!function(e,t){t&&w&&0===e||(w||(P=!0,n.onExit&&n.onExit(e)),c(e,new Kt(e)))}(e)},fd_close:function(e){try{return 0}catch(e){return"undefined"!=typeof FS&&e instanceof FS.ErrnoError||te(e),e.errno}},fd_seek:function(e,t,r,n,i){try{return 0}catch(e){return"undefined"!=typeof FS&&e instanceof FS.ErrnoError||te(e),e.errno}},fd_write:function(e,t,r,n){try{for(var i=0,o=0;o<r;o++){for(var a=D[t+8*o>>2],s=D[t+(8*o+4)>>2],u=0;u<s;u++)Ft.printChar(e,R[a+u]);i+=s}return D[n>>2]=i,0}catch(e){return"undefined"!=typeof FS&&e instanceof FS.ErrnoError||te(e),e.errno}},getTempRet0:function(){return 0|T},invoke_ii:function(e,t){var r=Xt();try{return Ht(e,t)}catch(e){if(Jt(r),e!==e+0&&"longjmp"!==e)throw e;Nt(1,0)}},invoke_iii:function(e,t,r){var n=Xt();try{return Gt(e,t,r)}catch(e){if(Jt(n),e!==e+0&&"longjmp"!==e)throw e;Nt(1,0)}},invoke_iiii:function(e,t,r,n){var i=Xt();try{return Zt(e,t,r,n)}catch(e){if(Jt(i),e!==e+0&&"longjmp"!==e)throw e;Nt(1,0)}},invoke_vi:function(e,t){var r=Xt();try{Lt(e,t)}catch(e){if(Jt(r),e!==e+0&&"longjmp"!==e)throw e;Nt(1,0)}},invoke_viii:function(e,t,r,n){var i=Xt();try{Vt(e,t,r,n)}catch(e){if(Jt(i),e!==e+0&&"longjmp"!==e)throw e;Nt(1,0)}},memory:b,saveSetjmp:function e(t,r,n,i){r|=0,n|=0,i|=0;var o=0;for(Et=Et+1|0,D[(t|=0)>>2]=Et;(0|o)<(0|i);){if(0==(0|D[n+(o<<3)>>2]))return D[n+(o<<3)>>2]=Et,D[n+(4+(o<<3))>>2]=r,D[n+(8+(o<<3))>>2]=0,C(0|i),0|n;o=o+1|0}return n=0|e(0|t,0|r,0|(n=0|zt(0|n,8*(1+(i=2*i|0)|0)|0)),0|i),C(0|i),0|n},setTempRet0:function(e){C(0|e)},table:x,testSetjmp:function(e,t,r){e|=0,t|=0,r|=0;for(var n=0,i=0;(0|n)<(0|r)&&0!=(0|(i=0|D[t+(n<<3)>>2]));){if((0|i)==(0|e))return 0|D[t+(4+(n<<3))>>2];n=n+1|0}return 0}},Wt=function(){var e={env:Rt,wasi_snapshot_preview1:Rt};function t(e,t){var r=e.exports;n.asm=r,function(e){if(K--,n.monitorRunDependencies&&n.monitorRunDependencies(K),0==K&&(null!==Q&&(clearInterval(Q),Q=null),ee)){var t=ee;ee=null,t()}}()}function r(e){t(e.instance)}function i(t){return(_||!f&&!l||"function"!=typeof fetch?new Promise((function(e,t){e(oe())})):fetch(ie,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+ie+"'";return e.arrayBuffer()})).catch((function(){return oe()}))).then((function(t){return WebAssembly.instantiate(t,e)})).then(t,(function(e){g("failed to asynchronously prepare wasm: "+e),te(e)}))}if(K++,n.monitorRunDependencies&&n.monitorRunDependencies(K),n.instantiateWasm)try{return n.instantiateWasm(e,t)}catch(e){return g("Module.instantiateWasm callback failed with error: "+e),!1}return function(){if(_||"function"!=typeof WebAssembly.instantiateStreaming||ne(ie)||"function"!=typeof fetch)return i(r);fetch(ie,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(r,(function(e){g("wasm streaming compile failed: "+e),g("falling back to ArrayBuffer instantiation"),i(r)}))}))}(),{}}();n.asm=Wt;var It,Dt=n.___wasm_call_ctors=function(){return n.asm.__wasm_call_ctors.apply(null,arguments)},Ut=n._malloc=function(){return n.asm.malloc.apply(null,arguments)},Mt=n._free=function(){return n.asm.free.apply(null,arguments)},zt=n._realloc=function(){return n.asm.realloc.apply(null,arguments)},Nt=n._setThrew=function(){return n.asm.setThrew.apply(null,arguments)},qt=n.__ZSt18uncaught_exceptionv=function(){return n.asm._ZSt18uncaught_exceptionv.apply(null,arguments)},Bt=n.___getTypeName=function(){return n.asm.__getTypeName.apply(null,arguments)},Lt=(n.___embind_register_native_and_builtin_types=function(){return n.asm.__embind_register_native_and_builtin_types.apply(null,arguments)},n.dynCall_vi=function(){return n.asm.dynCall_vi.apply(null,arguments)}),Vt=n.dynCall_viii=function(){return n.asm.dynCall_viii.apply(null,arguments)},Ht=n.dynCall_ii=function(){return n.asm.dynCall_ii.apply(null,arguments)},Gt=n.dynCall_iii=function(){return n.asm.dynCall_iii.apply(null,arguments)},Zt=n.dynCall_iiii=function(){return n.asm.dynCall_iiii.apply(null,arguments)},Xt=n.stackSave=function(){return n.asm.stackSave.apply(null,arguments)},Yt=n.stackAlloc=function(){return n.asm.stackAlloc.apply(null,arguments)},Jt=n.stackRestore=function(){return n.asm.stackRestore.apply(null,arguments)};function Kt(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function Qt(e){function t(){It||(It=!0,P||(L(H),L(G),n.onRuntimeInitialized&&n.onRuntimeInitialized(),function(){if(n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;)J(n.postRun.shift());L(X)}()))}e=e||s,K>0||(function(){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)Y(n.preRun.shift());L(V)}(),K>0||(n.setStatus?(n.setStatus("Running..."),setTimeout((function(){setTimeout((function(){n.setStatus("")}),1),t()}),1)):t()))}if(n.__growWasmMemory=function(){return n.asm.__growWasmMemory.apply(null,arguments)},n.dynCall_i=function(){return n.asm.dynCall_i.apply(null,arguments)},n.dynCall_vii=function(){return n.asm.dynCall_vii.apply(null,arguments)},n.dynCall_iiiiii=function(){return n.asm.dynCall_iiiiii.apply(null,arguments)},n.dynCall_iiiiiii=function(){return n.asm.dynCall_iiiiiii.apply(null,arguments)},n.dynCall_iiiii=function(){return n.asm.dynCall_iiiii.apply(null,arguments)},n.dynCall_viiii=function(){return n.asm.dynCall_viiii.apply(null,arguments)},n.dynCall_viiiiiii=function(){return n.asm.dynCall_viiiiiii.apply(null,arguments)},n.dynCall_viiiii=function(){return n.asm.dynCall_viiiii.apply(null,arguments)},n.dynCall_jiji=function(){return n.asm.dynCall_jiji.apply(null,arguments)},n.dynCall_viiiiii=function(){return n.asm.dynCall_viiiiii.apply(null,arguments)},n.asm=Wt,n.ccall=function(e,t,r,n,i){var o={string:function(e){var t=0;if(null!=e&&0!==e){var r=1+(e.length<<2);j(e,t=Yt(r),r)}return t},array:function(e){var t=Yt(e.length);return function(e,t){F.set(e,t)}(e,t),t}},a=A(e),s=[],u=0;if(n)for(var c=0;c<n.length;c++){var f=o[r[c]];f?(0===u&&(u=Xt()),s[c]=f(n[c])):s[c]=n[c]}var l=a.apply(null,s);return l=function(e){return"string"===t?E(e):"boolean"===t?Boolean(e):e}(l),0!==u&&Jt(u),l},n.then=function(e){if(It)e(n);else{var t=n.onRuntimeInitialized;n.onRuntimeInitialized=function(){t&&t(),e(n)}}return n},ee=function e(){It||Qt(),It||(ee=e)},n.run=Qt,n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.pop()();return w=!0,Qt(),e});"object"==typeof t&&"object"==typeof e?e.exports=n:"function"==typeof define&&define.amd?define([],(function(){return n})):"object"==typeof t&&(t.libjpegturbowasm_decode=n)},4044:function(e,t){var r,n=(r="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,"undefined"!=typeof __filename&&(r=r||__filename),function(e){var t,n=void 0!==(e=e||{})?e:{},i={};for(t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);var o,a,s=[],u="./this.program",c=!1,f=!1;c="object"==typeof window,f="function"==typeof importScripts,o="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node&&!c&&!f,a=!c&&!o&&!f;var l,p,d,v,m="";o?(m=__dirname+"/",l=function(e,t){return d||(d=require("fs")),v||(v=require("path")),e=v.normalize(e),d.readFileSync(e,t?null:"utf8")},p=function(e){var t=l(e,!0);return t.buffer||(t=new Uint8Array(t)),T(t.buffer),t},process.argv.length>1&&(u=process.argv[1].replace(/\\/g,"/")),s=process.argv.slice(2),process.on("uncaughtException",(function(e){if(!(e instanceof Ut))throw e})),process.on("unhandledRejection",J),n.inspect=function(){return"[Emscripten Module object]"}):a?("undefined"!=typeof read&&(l=function(e){return read(e)}),p=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(T("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?s=scriptArgs:void 0!==arguments&&(s=arguments),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(c||f)&&(f?m=self.location.href:document.currentScript&&(m=document.currentScript.src),r&&(m=r),m=0!==m.indexOf("blob:")?m.substr(0,m.lastIndexOf("/")+1):"",l=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},f&&(p=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}));var h=n.print||console.log.bind(console),y=n.printErr||console.warn.bind(console);for(t in i)i.hasOwnProperty(t)&&(n[t]=i[t]);i=null,n.arguments&&(s=n.arguments),n.thisProgram&&(u=n.thisProgram),n.quit&&n.quit;var g,_;n.wasmBinary&&(g=n.wasmBinary),n.noExitRuntime&&n.noExitRuntime,"object"!=typeof WebAssembly&&y("no native wasm support detected");var w=new WebAssembly.Table({initial:178,maximum:178,element:"anyfunc"}),b=!1;function T(e,t){e||J("Assertion failed: "+t)}function C(e){var t=n["_"+e];return T(t,"Cannot call unknown function "+e+", make sure it is exported"),t}var x="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function P(e,t,r){for(var n=t+r,i=t;e[i]&&!(i>=n);)++i;if(i-t>16&&e.subarray&&x)return x.decode(e.subarray(t,i));for(var o="";t<i;){var a=e[t++];if(128&a){var s=63&e[t++];if(192!=(224&a)){var u=63&e[t++];if((a=224==(240&a)?(15&a)<<12|s<<6|u:(7&a)<<18|s<<12|u<<6|63&e[t++])<65536)o+=String.fromCharCode(a);else{var c=a-65536;o+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else o+=String.fromCharCode((31&a)<<6|s)}else o+=String.fromCharCode(a)}return o}function $(e,t){return e?P(E,e,t):""}function A(e,t,r){return function(e,t,r,n){if(!(n>0))return 0;for(var i=r,o=r+n-1,a=0;a<e.length;++a){var s=e.charCodeAt(a);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++a)),s<=127){if(r>=o)break;t[r++]=s}else if(s<=2047){if(r+1>=o)break;t[r++]=192|s>>6,t[r++]=128|63&s}else if(s<=65535){if(r+2>=o)break;t[r++]=224|s>>12,t[r++]=128|s>>6&63,t[r++]=128|63&s}else{if(r+3>=o)break;t[r++]=240|s>>18,t[r++]=128|s>>12&63,t[r++]=128|s>>6&63,t[r++]=128|63&s}}return t[r]=0,r-i}(e,E,t,r)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var k,S,E,j,O,F,R,W,I;function D(e,t){return e%t>0&&(e+=t-e%t),e}function U(e){k=e,n.HEAP8=S=new Int8Array(e),n.HEAP16=j=new Int16Array(e),n.HEAP32=F=new Int32Array(e),n.HEAPU8=E=new Uint8Array(e),n.HEAPU16=O=new Uint16Array(e),n.HEAPU32=R=new Uint32Array(e),n.HEAPF32=W=new Float32Array(e),n.HEAPF64=I=new Float64Array(e)}var M=n.TOTAL_MEMORY||1073741824;function z(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var r=t.func;"number"==typeof r?void 0===t.arg?n.dynCall_v(r):n.dynCall_vi(r,t.arg):r(void 0===t.arg?null:t.arg)}else t()}}(_=n.wasmMemory?n.wasmMemory:new WebAssembly.Memory({initial:M/65536}))&&(k=_.buffer),M=k.byteLength,U(k),F[6080]=5267360;var N=[],q=[],B=[],L=[],V=[];function H(e){N.unshift(e)}function G(e){V.unshift(e)}Math.abs,Math.ceil,Math.floor,Math.min;var Z=0,X=null,Y=null;function J(e){throw n.onAbort&&n.onAbort(e),h(e+=""),y(e),b=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(e)}n.preloadedImages={},n.preloadedAudios={};var K="data:application/octet-stream;base64,";function Q(e){return String.prototype.startsWith?e.startsWith(K):0===e.indexOf(K)}var ee="openjpegwasm_decode.wasm";function te(){try{if(g)return new Uint8Array(g);if(p)return p(ee);throw"both async and sync fetching of the wasm failed"}catch(e){J(e)}}function re(e,t){L.unshift({func:e,arg:t})}Q(ee)||(ee=function(e){return n.locateFile?n.locateFile(e,m):m+e}(ee)),q.push({func:function(){jt()}});var ne={};function ie(e){for(;e.length;){var t=e.pop();e.pop()(t)}}function oe(e){return this.fromWireType(R[e>>2])}var ae={},se={},ue={},ce=48,fe=57;function le(e){if(void 0===e)return"_unknown";var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return t>=ce&&t<=fe?"_"+e:e}function pe(e,t){return e=le(e),new Function("body","return function "+e+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(t)}function de(e,t){var r=pe(t,(function(e){this.name=t,this.message=e;var r=new Error(e).stack;void 0!==r&&(this.stack=this.toString()+"\n"+r.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},r}var ve=void 0;function me(e){throw new ve(e)}function he(e,t,r){function n(t){var n=r(t);n.length!==e.length&&me("Mismatched type converter count");for(var i=0;i<e.length;++i)Te(e[i],n[i])}e.forEach((function(e){ue[e]=t}));var i=new Array(t.length),o=[],a=0;t.forEach((function(e,t){se.hasOwnProperty(e)?i[t]=se[e]:(o.push(e),ae.hasOwnProperty(e)||(ae[e]=[]),ae[e].push((function(){i[t]=se[e],++a===o.length&&n(i)})))})),0===o.length&&n(i)}function ye(e){switch(e){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+e)}}var ge=void 0;function _e(e){for(var t="",r=e;E[r];)t+=ge[E[r++]];return t}var we=void 0;function be(e){throw new we(e)}function Te(e,t,r){if(r=r||{},!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");var n=t.name;if(e||be('type "'+n+'" must have a positive integer typeid pointer'),se.hasOwnProperty(e)){if(r.ignoreDuplicateRegistrations)return;be("Cannot register type '"+n+"' twice")}if(se[e]=t,delete ue[e],ae.hasOwnProperty(e)){var i=ae[e];delete ae[e],i.forEach((function(e){e()}))}}function Ce(e){if(!(this instanceof De))return!1;if(!(e instanceof De))return!1;for(var t=this.$$.ptrType.registeredClass,r=this.$$.ptr,n=e.$$.ptrType.registeredClass,i=e.$$.ptr;t.baseClass;)r=t.upcast(r),t=t.baseClass;for(;n.baseClass;)i=n.upcast(i),n=n.baseClass;return t===n&&r===i}function xe(e){return{count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}}function Pe(e){be(e.$$.ptrType.registeredClass.name+" instance already deleted")}var $e=!1;function Ae(e){}function ke(e){e.count.value-=1,0===e.count.value&&function(e){e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)}(e)}function Se(e){return"undefined"==typeof FinalizationGroup?(Se=function(e){return e},e):($e=new FinalizationGroup((function(e){for(var t=e.next();!t.done;t=e.next()){var r=t.value;r.ptr?ke(r):console.warn("object already deleted: "+r.ptr)}})),Se=function(e){return $e.register(e,e.$$,e.$$),e},Ae=function(e){$e.unregister(e.$$)},Se(e))}function Ee(){if(this.$$.ptr||Pe(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=Se(Object.create(Object.getPrototypeOf(this),{$$:{value:xe(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e}function je(){this.$$.ptr||Pe(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&be("Object already scheduled for deletion"),Ae(this),ke(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function Oe(){return!this.$$.ptr}var Fe=void 0,Re=[];function We(){for(;Re.length;){var e=Re.pop();e.$$.deleteScheduled=!1,e.delete()}}function Ie(){return this.$$.ptr||Pe(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&be("Object already scheduled for deletion"),Re.push(this),1===Re.length&&Fe&&Fe(We),this.$$.deleteScheduled=!0,this}function De(){}var Ue={};function Me(e,t,r){if(void 0===e[t].overloadTable){var n=e[t];e[t]=function(){return e[t].overloadTable.hasOwnProperty(arguments.length)||be("Function '"+r+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+e[t].overloadTable+")!"),e[t].overloadTable[arguments.length].apply(this,arguments)},e[t].overloadTable=[],e[t].overloadTable[n.argCount]=n}}function ze(e,t,r){n.hasOwnProperty(e)?((void 0===r||void 0!==n[e].overloadTable&&void 0!==n[e].overloadTable[r])&&be("Cannot register public name '"+e+"' twice"),Me(n,e,e),n.hasOwnProperty(r)&&be("Cannot register multiple overloads of a function with the same number of arguments ("+r+")!"),n[e].overloadTable[r]=t):(n[e]=t,void 0!==r&&(n[e].numArguments=r))}function Ne(e,t,r,n,i,o,a,s){this.name=e,this.constructor=t,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=i,this.getActualType=o,this.upcast=a,this.downcast=s,this.pureVirtualFunctions=[]}function qe(e,t,r){for(;t!==r;)t.upcast||be("Expected null or instance of "+r.name+", got an instance of "+t.name),e=t.upcast(e),t=t.baseClass;return e}function Be(e,t){if(null===t)return this.isReference&&be("null is not a valid "+this.name),0;t.$$||be('Cannot pass "'+yt(t)+'" as a '+this.name),t.$$.ptr||be("Cannot pass deleted object as a pointer of type "+this.name);var r=t.$$.ptrType.registeredClass;return qe(t.$$.ptr,r,this.registeredClass)}function Le(e,t){var r;if(null===t)return this.isReference&&be("null is not a valid "+this.name),this.isSmartPointer?(r=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,r),r):0;t.$$||be('Cannot pass "'+yt(t)+'" as a '+this.name),t.$$.ptr||be("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&t.$$.ptrType.isConst&&be("Cannot convert argument of type "+(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name)+" to parameter type "+this.name);var n=t.$$.ptrType.registeredClass;if(r=qe(t.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===t.$$.smartPtr&&be("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:t.$$.smartPtrType===this?r=t.$$.smartPtr:be("Cannot convert argument of type "+(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:r=t.$$.smartPtr;break;case 2:if(t.$$.smartPtrType===this)r=t.$$.smartPtr;else{var i=t.clone();r=this.rawShare(r,ht((function(){i.delete()}))),null!==e&&e.push(this.rawDestructor,r)}break;default:be("Unsupporting sharing policy")}return r}function Ve(e,t){if(null===t)return this.isReference&&be("null is not a valid "+this.name),0;t.$$||be('Cannot pass "'+yt(t)+'" as a '+this.name),t.$$.ptr||be("Cannot pass deleted object as a pointer of type "+this.name),t.$$.ptrType.isConst&&be("Cannot convert argument of type "+t.$$.ptrType.name+" to parameter type "+this.name);var r=t.$$.ptrType.registeredClass;return qe(t.$$.ptr,r,this.registeredClass)}function He(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e}function Ge(e){this.rawDestructor&&this.rawDestructor(e)}function Ze(e){null!==e&&e.delete()}function Xe(e,t,r){if(t===r)return e;if(void 0===r.baseClass)return null;var n=Xe(e,t,r.baseClass);return null===n?null:r.downcast(n)}function Ye(){return Object.keys(Qe).length}function Je(){var e=[];for(var t in Qe)Qe.hasOwnProperty(t)&&e.push(Qe[t]);return e}function Ke(e){Fe=e,Re.length&&Fe&&Fe(We)}var Qe={};function et(e,t){return t=function(e,t){for(void 0===t&&be("ptr should not be undefined");e.baseClass;)t=e.upcast(t),e=e.baseClass;return t}(e,t),Qe[t]}function tt(e,t){return t.ptrType&&t.ptr||me("makeClassHandle requires ptr and ptrType"),!!t.smartPtrType!=!!t.smartPtr&&me("Both smartPtrType and smartPtr must be specified"),t.count={value:1},Se(Object.create(e,{$$:{value:t}}))}function rt(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var r=et(this.registeredClass,t);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=t,r.$$.smartPtr=e,r.clone();var n=r.clone();return this.destructor(e),n}function i(){return this.isSmartPointer?tt(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):tt(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var o,a=this.registeredClass.getActualType(t),s=Ue[a];if(!s)return i.call(this);o=this.isConst?s.constPointerType:s.pointerType;var u=Xe(t,this.registeredClass,o.registeredClass);return null===u?i.call(this):this.isSmartPointer?tt(o.registeredClass.instancePrototype,{ptrType:o,ptr:u,smartPtrType:this,smartPtr:e}):tt(o.registeredClass.instancePrototype,{ptrType:o,ptr:u})}function nt(e,t,r,n,i,o,a,s,u,c,f){this.name=e,this.registeredClass=t,this.isReference=r,this.isConst=n,this.isSmartPointer=i,this.pointeeType=o,this.sharingPolicy=a,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=f,i||void 0!==t.baseClass?this.toWireType=Le:n?(this.toWireType=Be,this.destructorFunction=null):(this.toWireType=Ve,this.destructorFunction=null)}function it(e,t,r){n.hasOwnProperty(e)||me("Replacing nonexistant public symbol"),void 0!==n[e].overloadTable&&void 0!==r?n[e].overloadTable[r]=t:(n[e]=t,n[e].argCount=r)}function ot(e,t){var r;if(e=_e(e),void 0!==n["FUNCTION_TABLE_"+e])r=n["FUNCTION_TABLE_"+e][t];else if("undefined"!=typeof FUNCTION_TABLE)r=FUNCTION_TABLE[t];else{var i=n["dynCall_"+e];void 0===i&&void 0===(i=n["dynCall_"+e.replace(/f/g,"d")])&&be("No dynCall invoker for signature: "+e),r=function(r){for(var n=[],i=1;i<e.length;++i)n.push("a"+i);var o="return function dynCall_"+e+"_"+t+"("+n.join(", ")+") {\n";return o+=" return dynCall(rawFunction"+(n.length?", ":"")+n.join(", ")+");\n",o+="};\n",new Function("dynCall","rawFunction",o)(r,t)}(i)}return"function"!=typeof r&&be("unknown function pointer with signature "+e+": "+t),r}var at=void 0;function st(e){var t=Rt(e),r=_e(t);return Ft(t),r}function ut(e,t){var r=[],n={};throw t.forEach((function e(t){n[t]||se[t]||(ue[t]?ue[t].forEach(e):(r.push(t),n[t]=!0))})),new at(e+": "+r.map(st).join([", "]))}function ct(e,t){for(var r=[],n=0;n<e;n++)r.push(F[(t>>2)+n]);return r}function ft(e,t,r,n,i){var o=t.length;o<2&&be("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var a=null!==t[1]&&null!==r,s=!1,u=1;u<t.length;++u)if(null!==t[u]&&void 0===t[u].destructorFunction){s=!0;break}var c="void"!==t[0].name,f="",l="";for(u=0;u<o-2;++u)f+=(0!==u?", ":"")+"arg"+u,l+=(0!==u?", ":"")+"arg"+u+"Wired";var p="return function "+le(e)+"("+f+") {\nif (arguments.length !== "+(o-2)+") {\nthrowBindingError('function "+e+" called with ' + arguments.length + ' arguments, expected "+(o-2)+" args!');\n}\n";s&&(p+="var destructors = [];\n");var d=s?"destructors":"null",v=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],m=[be,n,i,ie,t[0],t[1]];for(a&&(p+="var thisWired = classParam.toWireType("+d+", this);\n"),u=0;u<o-2;++u)p+="var arg"+u+"Wired = argType"+u+".toWireType("+d+", arg"+u+"); // "+t[u+2].name+"\n",v.push("argType"+u),m.push(t[u+2]);if(a&&(l="thisWired"+(l.length>0?", ":"")+l),p+=(c?"var rv = ":"")+"invoker(fn"+(l.length>0?", ":"")+l+");\n",s)p+="runDestructors(destructors);\n";else for(u=a?1:2;u<t.length;++u){var h=1===u?"thisWired":"arg"+(u-2)+"Wired";null!==t[u].destructorFunction&&(p+=h+"_dtor("+h+"); // "+t[u].name+"\n",v.push(h+"_dtor"),m.push(t[u].destructorFunction))}return c&&(p+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),p+="}\n",v.push(p),function(e,t){if(!(e instanceof Function))throw new TypeError("new_ called with constructor type "+typeof e+" which is not a function");var r=pe(e.name||"unknownFunctionName",(function(){}));r.prototype=e.prototype;var n=new r,i=e.apply(n,t);return i instanceof Object?i:n}(Function,v).apply(null,m)}var lt=[],pt=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function dt(e){e>4&&0==--pt[e].refcount&&(pt[e]=void 0,lt.push(e))}function vt(){for(var e=0,t=5;t<pt.length;++t)void 0!==pt[t]&&++e;return e}function mt(){for(var e=5;e<pt.length;++e)if(void 0!==pt[e])return pt[e];return null}function ht(e){switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var t=lt.length?lt.pop():pt.length;return pt[t]={refcount:1,value:e},t}}function yt(e){if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e}function gt(e,t){switch(t){case 2:return function(e){return this.fromWireType(W[e>>2])};case 3:return function(e){return this.fromWireType(I[e>>3])};default:throw new TypeError("Unknown float type: "+e)}}function _t(e,t,r){switch(t){case 0:return r?function(e){return S[e]}:function(e){return E[e]};case 1:return r?function(e){return j[e>>1]}:function(e){return O[e>>1]};case 2:return r?function(e){return F[e>>2]}:function(e){return R[e>>2]};default:throw new TypeError("Unknown integer type: "+e)}}var wt={};function bt(){return"object"==typeof globalThis?globalThis:Function("return this")()}function Tt(e,t){var r=se[e];return void 0===r&&be(t+" has unknown type "+st(e)),r}function Ct(e){for(var t="",r=0;r<e;++r)t+=(0!==r?", ":"")+"arg"+r;var i="return function emval_allocator_"+e+"(constructor, argTypes, args) {\n";for(r=0;r<e;++r)i+="var argType"+r+" = requireRegisteredType(Module['HEAP32'][(argTypes >> 2) + "+r+'], "parameter '+r+'");\nvar arg'+r+" = argType"+r+".readValueFromPointer(args);\nargs += argType"+r+"['argPackAdvance'];\n";return i+="var obj = new constructor("+t+");\nreturn __emval_register(obj);\n}\n",new Function("requireRegisteredType","Module","__emval_register",i)(Tt,n,ht)}var xt={};var Pt={};function $t(){if(!$t.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:u};for(var t in Pt)e[t]=Pt[t];var r=[];for(var t in e)r.push(t+"="+e[t]);$t.strings=r}return $t.strings}var At={buffers:[null,[],[]],printChar:function(e,t){var r=At.buffers[e];0===t||10===t?((1===e?h:y)(P(r,0)),r.length=0):r.push(t)},varargs:0,get:function(e){return At.varargs+=4,F[At.varargs-4>>2]},getStr:function(){return $(At.get())},get64:function(){var e=At.get();return At.get(),e},getZero:function(){At.get()}};ve=n.InternalError=de(Error,"InternalError"),function(){for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);ge=e}(),we=n.BindingError=de(Error,"BindingError"),De.prototype.isAliasOf=Ce,De.prototype.clone=Ee,De.prototype.delete=je,De.prototype.isDeleted=Oe,De.prototype.deleteLater=Ie,nt.prototype.getPointee=He,nt.prototype.destructor=Ge,nt.prototype.argPackAdvance=8,nt.prototype.readValueFromPointer=oe,nt.prototype.deleteObject=Ze,nt.prototype.fromWireType=rt,n.getInheritedInstanceCount=Ye,n.getLiveInheritedInstances=Je,n.flushPendingDeletes=We,n.setDelayFunction=Ke,at=n.UnboundTypeError=de(Error,"UnboundTypeError"),n.count_emval_handles=vt,n.get_first_emval=mt;var kt={__cxa_thread_atexit:function(){return re.apply(null,arguments)},_embind_finalize_value_object:function(e){var t=ne[e];delete ne[e];var r=t.rawConstructor,n=t.rawDestructor,i=t.fields;he([e],i.map((function(e){return e.getterReturnType})).concat(i.map((function(e){return e.setterArgumentType}))),(function(e){var o={};return i.forEach((function(t,r){var n=t.fieldName,a=e[r],s=t.getter,u=t.getterContext,c=e[r+i.length],f=t.setter,l=t.setterContext;o[n]={read:function(e){return a.fromWireType(s(u,e))},write:function(e,t){var r=[];f(l,e,c.toWireType(r,t)),ie(r)}}})),[{name:t.name,fromWireType:function(e){var t={};for(var r in o)t[r]=o[r].read(e);return n(e),t},toWireType:function(e,t){for(var i in o)if(!(i in t))throw new TypeError("Missing field");var a=r();for(i in o)o[i].write(a,t[i]);return null!==e&&e.push(n,a),a},argPackAdvance:8,readValueFromPointer:oe,destructorFunction:n}]}))},_embind_register_bool:function(e,t,r,n,i){var o=ye(r);Te(e,{name:t=_e(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?n:i},argPackAdvance:8,readValueFromPointer:function(e){var n;if(1===r)n=S;else if(2===r)n=j;else{if(4!==r)throw new TypeError("Unknown boolean type size: "+t);n=F}return this.fromWireType(n[e>>o])},destructorFunction:null})},_embind_register_class:function(e,t,r,n,i,o,a,s,u,c,f,l,p){f=_e(f),o=ot(i,o),s&&(s=ot(a,s)),c&&(c=ot(u,c)),p=ot(l,p);var d=le(f);ze(d,(function(){ut("Cannot construct "+f+" due to unbound types",[n])})),he([e,t,r],n?[n]:[],(function(t){var r,i;t=t[0],i=n?(r=t.registeredClass).instancePrototype:De.prototype;var a=pe(d,(function(){if(Object.getPrototypeOf(this)!==u)throw new we("Use 'new' to construct "+f);if(void 0===l.constructor_body)throw new we(f+" has no accessible constructor");var e=l.constructor_body[arguments.length];if(void 0===e)throw new we("Tried to invoke ctor of "+f+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(l.constructor_body).toString()+") parameters instead!");return e.apply(this,arguments)})),u=Object.create(i,{constructor:{value:a}});a.prototype=u;var l=new Ne(f,a,u,p,r,o,s,c),v=new nt(f,l,!0,!1,!1),m=new nt(f+"*",l,!1,!1,!1),h=new nt(f+" const*",l,!1,!0,!1);return Ue[e]={pointerType:m,constPointerType:h},it(d,a),[v,m,h]}))},_embind_register_class_constructor:function(e,t,r,n,i,o){T(t>0);var a=ct(t,r);i=ot(n,i);var s=[o],u=[];he([],[e],(function(e){var r="constructor "+(e=e[0]).name;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[t-1])throw new we("Cannot register multiple constructors with identical number of parameters ("+(t-1)+") for class '"+e.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return e.registeredClass.constructor_body[t-1]=function(){ut("Cannot construct "+e.name+" due to unbound types",a)},he([],a,(function(n){return e.registeredClass.constructor_body[t-1]=function(){arguments.length!==t-1&&be(r+" called with "+arguments.length+" arguments, expected "+(t-1)),u.length=0,s.length=t;for(var e=1;e<t;++e)s[e]=n[e].toWireType(u,arguments[e-1]);var o=i.apply(null,s);return ie(u),n[0].fromWireType(o)},[]})),[]}))},_embind_register_class_function:function(e,t,r,n,i,o,a,s){var u=ct(r,n);t=_e(t),o=ot(i,o),he([],[e],(function(e){var n=(e=e[0]).name+"."+t;function i(){ut("Cannot call "+n+" due to unbound types",u)}s&&e.registeredClass.pureVirtualFunctions.push(t);var c=e.registeredClass.instancePrototype,f=c[t];return void 0===f||void 0===f.overloadTable&&f.className!==e.name&&f.argCount===r-2?(i.argCount=r-2,i.className=e.name,c[t]=i):(Me(c,t,n),c[t].overloadTable[r-2]=i),he([],u,(function(i){var s=ft(n,i,e,o,a);return void 0===c[t].overloadTable?(s.argCount=r-2,c[t]=s):c[t].overloadTable[r-2]=s,[]})),[]}))},_embind_register_emval:function(e,t){Te(e,{name:t=_e(t),fromWireType:function(e){var t=pt[e].value;return dt(e),t},toWireType:function(e,t){return ht(t)},argPackAdvance:8,readValueFromPointer:oe,destructorFunction:null})},_embind_register_float:function(e,t,r){var n=ye(r);Te(e,{name:t=_e(t),fromWireType:function(e){return e},toWireType:function(e,t){if("number"!=typeof t&&"boolean"!=typeof t)throw new TypeError('Cannot convert "'+yt(t)+'" to '+this.name);return t},argPackAdvance:8,readValueFromPointer:gt(t,n),destructorFunction:null})},_embind_register_integer:function(e,t,r,n,i){t=_e(t),-1===i&&(i=4294967295);var o=ye(r),a=function(e){return e};if(0===n){var s=32-8*r;a=function(e){return e<<s>>>s}}var u=-1!=t.indexOf("unsigned");Te(e,{name:t,fromWireType:a,toWireType:function(e,r){if("number"!=typeof r&&"boolean"!=typeof r)throw new TypeError('Cannot convert "'+yt(r)+'" to '+this.name);if(r<n||r>i)throw new TypeError('Passing a number "'+yt(r)+'" from JS side to C/C++ side to an argument of type "'+t+'", which is outside the valid range ['+n+", "+i+"]!");return u?r>>>0:0|r},argPackAdvance:8,readValueFromPointer:_t(t,o,0!==n),destructorFunction:null})},_embind_register_memory_view:function(e,t,r){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];function i(e){var t=R,r=t[e>>=2],i=t[e+1];return new n(t.buffer,i,r)}Te(e,{name:r=_e(r),fromWireType:i,argPackAdvance:8,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},_embind_register_std_string:function(e,t){var r="std::string"===(t=_e(t));Te(e,{name:t,fromWireType:function(e){var t,n=R[e>>2];if(r){var i=E[e+4+n],o=0;0!=i&&(o=i,E[e+4+n]=0);for(var a=e+4,s=0;s<=n;++s){var u=e+4+s;if(0==E[u]){var c=$(a);void 0===t?t=c:(t+=String.fromCharCode(0),t+=c),a=u+1}}0!=o&&(E[e+4+n]=o)}else{var f=new Array(n);for(s=0;s<n;++s)f[s]=String.fromCharCode(E[e+4+s]);t=f.join("")}return Ft(e),t},toWireType:function(e,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var n="string"==typeof t;n||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||be("Cannot pass non-string to std::string");var i=(r&&n?function(){return function(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++r)),n<=127?++t:t+=n<=2047?2:n<=65535?3:4}return t}(t)}:function(){return t.length})(),o=Ot(4+i+1);if(R[o>>2]=i,r&&n)A(t,o+4,i+1);else if(n)for(var a=0;a<i;++a){var s=t.charCodeAt(a);s>255&&(Ft(o),be("String has UTF-16 code units that do not fit in 8 bits")),E[o+4+a]=s}else for(a=0;a<i;++a)E[o+4+a]=t[a];return null!==e&&e.push(Ft,o),o},argPackAdvance:8,readValueFromPointer:oe,destructorFunction:function(e){Ft(e)}})},_embind_register_std_wstring:function(e,t,r){var n,i;r=_e(r),2===t?(n=function(){return O},i=1):4===t&&(n=function(){return R},i=2),Te(e,{name:r,fromWireType:function(e){for(var t=n(),r=R[e>>2],o=new Array(r),a=e+4>>i,s=0;s<r;++s)o[s]=String.fromCharCode(t[a+s]);return Ft(e),o.join("")},toWireType:function(e,r){var o=r.length,a=Ot(4+o*t),s=n();R[a>>2]=o;for(var u=a+4>>i,c=0;c<o;++c)s[u+c]=r.charCodeAt(c);return null!==e&&e.push(Ft,a),a},argPackAdvance:8,readValueFromPointer:oe,destructorFunction:function(e){Ft(e)}})},_embind_register_value_object:function(e,t,r,n,i,o){ne[e]={name:_e(t),rawConstructor:ot(r,n),rawDestructor:ot(i,o),fields:[]}},_embind_register_value_object_field:function(e,t,r,n,i,o,a,s,u,c){ne[e].fields.push({fieldName:_e(t),getterReturnType:r,getter:ot(n,i),getterContext:o,setterArgumentType:a,setter:ot(s,u),setterContext:c})},_embind_register_void:function(e,t){Te(e,{isVoid:!0,name:t=_e(t),argPackAdvance:0,fromWireType:function(){},toWireType:function(e,t){}})},_emval_decref:dt,_emval_get_global:function(e){return 0===e?ht(bt()):(e=function(e){var t=wt[e];return void 0===t?_e(e):t}(e),ht(bt()[e]))},_emval_incref:function(e){e>4&&(pt[e].refcount+=1)},_emval_new:function(e,t,r,n){e=function(e){return e||be("Cannot use deleted val. handle = "+e),pt[e].value}(e);var i=xt[t];return i||(i=Ct(t),xt[t]=i),i(e,r,n)},_emval_take_value:function(e,t){return ht((e=Tt(e,"_emval_take_value")).readValueFromPointer(t))},abort:function(){J()},emscripten_get_sbrk_ptr:function(){return 24320},emscripten_memcpy_big:function(e,t,r){E.set(E.subarray(t,t+r),e)},emscripten_resize_heap:function(e){var t=S.length,r=2147418112;if(e>r)return!1;for(var n=Math.max(t,16777216);n<e;)n=n<=536870912?D(2*n,65536):Math.min(D((3*n+2147483648)/4,65536),r);return!!function(e){try{return _.grow(e-k.byteLength+65535>>16),U(_.buffer),1}catch(e){}}(n)},environ_get:function(e,t){var r=$t(),n=0;return r.forEach((function(r,i){var o=t+n;F[e+4*i>>2]=o,function(e,t,r){for(var n=0;n<e.length;++n)S[t++>>0]=e.charCodeAt(n);r||(S[t>>0]=0)}(r,o),n+=r.length+1})),0},environ_sizes_get:function(e,t){var r=$t();F[e>>2]=r.length;var n=0;return r.forEach((function(e){n+=e.length+1})),F[t>>2]=n,0},fd_close:function(e){try{return 0}catch(e){return"undefined"!=typeof FS&&e instanceof FS.ErrnoError||J(e),e.errno}},fd_seek:function(e,t,r,n,i){try{return 0}catch(e){return"undefined"!=typeof FS&&e instanceof FS.ErrnoError||J(e),e.errno}},fd_write:function(e,t,r,n){try{for(var i=0,o=0;o<r;o++){for(var a=F[t+8*o>>2],s=F[t+(8*o+4)>>2],u=0;u<s;u++)At.printChar(e,E[a+u]);i+=s}return F[n>>2]=i,0}catch(e){return"undefined"!=typeof FS&&e instanceof FS.ErrnoError||J(e),e.errno}},memory:_,pthread_attr_init:function(e){return 0},pthread_attr_setdetachstate:function(){},pthread_cond_destroy:function(){return 0},pthread_cond_init:function(){return 0},pthread_create:function(){return 6},pthread_join:function(){},setTempRet0:function(e){},sysconf:function(e){switch(e){case 30:case 75:return 16384;case 85:return 131068;case 132:case 133:case 12:case 137:case 138:case 15:case 235:case 16:case 17:case 18:case 19:case 20:case 149:case 13:case 10:case 236:case 153:case 9:case 21:case 22:case 159:case 154:case 14:case 77:case 78:case 139:case 80:case 81:case 82:case 68:case 67:case 164:case 11:case 29:case 47:case 48:case 95:case 52:case 51:case 46:return 200809;case 79:return 0;case 27:case 246:case 127:case 128:case 23:case 24:case 160:case 161:case 181:case 182:case 242:case 183:case 184:case 243:case 244:case 245:case 165:case 178:case 179:case 49:case 50:case 168:case 169:case 175:case 170:case 171:case 172:case 97:case 76:case 32:case 173:case 35:return-1;case 176:case 177:case 7:case 155:case 8:case 157:case 125:case 126:case 92:case 93:case 129:case 130:case 131:case 94:case 91:return 1;case 74:case 60:case 69:case 70:case 4:return 1024;case 31:case 42:case 72:return 32;case 87:case 26:case 33:return 2147483647;case 34:case 1:return 47839;case 38:case 36:return 99;case 43:case 37:return 2048;case 0:return 2097152;case 3:return 65536;case 28:return 32768;case 44:return 32767;case 39:return 1e3;case 89:return 700;case 71:return 256;case 40:return 255;case 2:return 100;case 180:return 64;case 25:return 20;case 5:return 16;case 6:return 6;case 73:return 4;case 84:return"object"==typeof navigator&&navigator.hardwareConcurrency||1}return function(e){n.___errno_location&&(F[n.___errno_location()>>2]=e)}(28),-1},table:w},St=function(){var e={env:kt,wasi_snapshot_preview1:kt};function t(e,t){var r=e.exports;n.asm=r,function(e){if(Z--,n.monitorRunDependencies&&n.monitorRunDependencies(Z),0==Z&&(null!==X&&(clearInterval(X),X=null),Y)){var t=Y;Y=null,t()}}()}function r(e){t(e.instance)}function i(t){return(g||!c&&!f||"function"!=typeof fetch?new Promise((function(e,t){e(te())})):fetch(ee,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+ee+"'";return e.arrayBuffer()})).catch((function(){return te()}))).then((function(t){return WebAssembly.instantiate(t,e)})).then(t,(function(e){y("failed to asynchronously prepare wasm: "+e),J(e)}))}if(Z++,n.monitorRunDependencies&&n.monitorRunDependencies(Z),n.instantiateWasm)try{return n.instantiateWasm(e,t)}catch(e){return y("Module.instantiateWasm callback failed with error: "+e),!1}return function(){if(g||"function"!=typeof WebAssembly.instantiateStreaming||Q(ee)||"function"!=typeof fetch)return i(r);fetch(ee,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(r,(function(e){y("wasm streaming compile failed: "+e),y("falling back to ArrayBuffer instantiation"),i(r)}))}))}(),{}}();n.asm=St;var Et,jt=n.___wasm_call_ctors=function(){return n.asm.__wasm_call_ctors.apply(null,arguments)},Ot=n._malloc=function(){return n.asm.malloc.apply(null,arguments)},Ft=n._free=function(){return n.asm.free.apply(null,arguments)},Rt=(n._setThrew=function(){return n.asm.setThrew.apply(null,arguments)},n.__ZSt18uncaught_exceptionv=function(){return n.asm._ZSt18uncaught_exceptionv.apply(null,arguments)},n.___getTypeName=function(){return n.asm.__getTypeName.apply(null,arguments)}),Wt=(n.___embind_register_native_and_builtin_types=function(){return n.asm.__embind_register_native_and_builtin_types.apply(null,arguments)},n.stackSave=function(){return n.asm.stackSave.apply(null,arguments)}),It=n.stackAlloc=function(){return n.asm.stackAlloc.apply(null,arguments)},Dt=n.stackRestore=function(){return n.asm.stackRestore.apply(null,arguments)};function Ut(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function Mt(e){function t(){Et||(Et=!0,b||(z(q),z(B),n.onRuntimeInitialized&&n.onRuntimeInitialized(),function(){if(n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;)G(n.postRun.shift());z(V)}()))}e=e||s,Z>0||(function(){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)H(n.preRun.shift());z(N)}(),Z>0||(n.setStatus?(n.setStatus("Running..."),setTimeout((function(){setTimeout((function(){n.setStatus("")}),1),t()}),1)):t()))}if(n.__growWasmMemory=function(){return n.asm.__growWasmMemory.apply(null,arguments)},n.dynCall_i=function(){return n.asm.dynCall_i.apply(null,arguments)},n.dynCall_vi=function(){return n.asm.dynCall_vi.apply(null,arguments)},n.dynCall_iii=function(){return n.asm.dynCall_iii.apply(null,arguments)},n.dynCall_viii=function(){return n.asm.dynCall_viii.apply(null,arguments)},n.dynCall_ii=function(){return n.asm.dynCall_ii.apply(null,arguments)},n.dynCall_iiii=function(){return n.asm.dynCall_iiii.apply(null,arguments)},n.dynCall_vii=function(){return n.asm.dynCall_vii.apply(null,arguments)},n.dynCall_viiii=function(){return n.asm.dynCall_viiii.apply(null,arguments)},n.dynCall_iji=function(){return n.asm.dynCall_iji.apply(null,arguments)},n.dynCall_jji=function(){return n.asm.dynCall_jji.apply(null,arguments)},n.dynCall_iiji=function(){return n.asm.dynCall_iiji.apply(null,arguments)},n.dynCall_jiji=function(){return n.asm.dynCall_jiji.apply(null,arguments)},n.dynCall_iiiii=function(){return n.asm.dynCall_iiiii.apply(null,arguments)},n.dynCall_iiiiii=function(){return n.asm.dynCall_iiiiii.apply(null,arguments)},n.dynCall_iiiiiiii=function(){return n.asm.dynCall_iiiiiiii.apply(null,arguments)},n.dynCall_iiiiiii=function(){return n.asm.dynCall_iiiiiii.apply(null,arguments)},n.dynCall_iiiiiiiiiiii=function(){return n.asm.dynCall_iiiiiiiiiiii.apply(null,arguments)},n.dynCall_iidiiii=function(){return n.asm.dynCall_iidiiii.apply(null,arguments)},n.dynCall_viiiiii=function(){return n.asm.dynCall_viiiiii.apply(null,arguments)},n.dynCall_viiiii=function(){return n.asm.dynCall_viiiii.apply(null,arguments)},n.asm=St,n.ccall=function(e,t,r,n,i){var o={string:function(e){var t=0;if(null!=e&&0!==e){var r=1+(e.length<<2);A(e,t=It(r),r)}return t},array:function(e){var t=It(e.length);return function(e,t){S.set(e,t)}(e,t),t}},a=C(e),s=[],u=0;if(n)for(var c=0;c<n.length;c++){var f=o[r[c]];f?(0===u&&(u=Wt()),s[c]=f(n[c])):s[c]=n[c]}var l=a.apply(null,s);return l=function(e){return"string"===t?$(e):"boolean"===t?Boolean(e):e}(l),0!==u&&Dt(u),l},n.then=function(e){if(Et)e(n);else{var t=n.onRuntimeInitialized;n.onRuntimeInitialized=function(){t&&t(),e(n)}}return n},Y=function e(){Et||Mt(),Et||(Y=e)},n.run=Mt,n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.pop()();return Mt(),e});"object"==typeof t&&"object"==typeof e?e.exports=n:"function"==typeof define&&define.amd?define([],(function(){return n})):"object"==typeof t&&(t.OpenJPEGWASM=n)},1065:(e,t,r)=>{var n=r(5792),i=r(9291),o=String.prototype;e.exports=function(e){var t=e.endsWith;return"string"==typeof e||e===o||n(o,e)&&t===o.endsWith?i:t}},4129:(e,t,r)=>{var n=r(5792),i=r(4455),o=String.prototype;e.exports=function(e){var t=e.padStart;return"string"==typeof e||e===o||n(o,e)&&t===o.padStart?i:t}},7281:(e,t,r)=>{r(6454),r(2228),r(2575),r(3658),r(4465),r(8359),r(5203),r(8109);var n=r(9081);e.exports=n.Promise},9956:(e,t,r)=>{r(2228),r(2575),r(1222),r(8109);var n=r(9081);e.exports=n.Set},9291:(e,t,r)=>{r(2329);var n=r(2018);e.exports=n("String").endsWith},4455:(e,t,r)=>{r(6639);var n=r(2018);e.exports=n("String").padStart},5222:(e,t,r)=>{var n=r(2868),i=r(8307),o=r(7265),a=n.TypeError;e.exports=function(e){if(i(e))return e;throw a(o(e)+" is not a function")}},2736:(e,t,r)=>{var n=r(2868),i=r(1775),o=r(7265),a=n.TypeError;e.exports=function(e){if(i(e))return e;throw a(o(e)+" is not a constructor")}},9154:(e,t,r)=>{var n=r(2868),i=r(8307),o=n.String,a=n.TypeError;e.exports=function(e){if("object"==typeof e||i(e))return e;throw a("Can't set "+o(e)+" as a prototype")}},7710:e=>{e.exports=function(){}},8792:(e,t,r)=>{var n=r(2868),i=r(5792),o=n.TypeError;e.exports=function(e,t){if(i(t,e))return e;throw o("Incorrect invocation")}},1912:(e,t,r)=>{var n=r(2868),i=r(3359),o=n.String,a=n.TypeError;e.exports=function(e){if(i(e))return e;throw a(o(e)+" is not an object")}},6715:(e,t,r)=>{var n=r(6530);e.exports=n((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},7075:(e,t,r)=>{var n=r(3861),i=r(3055),o=r(9876),a=function(e){return function(t,r,a){var s,u=n(t),c=o(u),f=i(a,c);if(e&&r!=r){for(;c>f;)if((s=u[f++])!=s)return!0}else for(;c>f;f++)if((e||f in u)&&u[f]===r)return e||f||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},4206:(e,t,r)=>{var n=r(7673),i=r(3880),o=r(1251),a=r(2058),s=r(9876),u=r(8136),c=i([].push),f=function(e){var t=1==e,r=2==e,i=3==e,f=4==e,l=6==e,p=7==e,d=5==e||l;return function(v,m,h,y){for(var g,_,w=a(v),b=o(w),T=n(m,h),C=s(b),x=0,P=y||u,$=t?P(v,C):r||p?P(v,0):void 0;C>x;x++)if((d||x in b)&&(_=T(g=b[x],x,w),e))if(t)$[x]=_;else if(_)switch(e){case 3:return!0;case 5:return g;case 6:return x;case 2:c($,g)}else switch(e){case 4:return!1;case 7:c($,g)}return l?-1:i||f?f:$}};e.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},6901:(e,t,r)=>{var n=r(2868),i=r(3055),o=r(9876),a=r(409),s=n.Array,u=Math.max;e.exports=function(e,t,r){for(var n=o(e),c=i(t,n),f=i(void 0===r?n:r,n),l=s(u(f-c,0)),p=0;c<f;c++,p++)a(l,p,e[c]);return l.length=p,l}},4735:(e,t,r)=>{var n=r(3880);e.exports=n([].slice)},3400:(e,t,r)=>{var n=r(2868),i=r(1054),o=r(1775),a=r(3359),s=r(5712)("species"),u=n.Array;e.exports=function(e){var t;return i(e)&&(t=e.constructor,(o(t)&&(t===u||i(t.prototype))||a(t)&&null===(t=t[s]))&&(t=void 0)),void 0===t?u:t}},8136:(e,t,r)=>{var n=r(3400);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},8908:(e,t,r)=>{var n=r(5712)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var o={};o[n]=function(){return{next:function(){return{done:r=!0}}}},e(o)}catch(e){}return r}},1570:(e,t,r)=>{var n=r(3880),i=n({}.toString),o=n("".slice);e.exports=function(e){return o(i(e),8,-1)}},7499:(e,t,r)=>{var n=r(2868),i=r(8889),o=r(8307),a=r(1570),s=r(5712)("toStringTag"),u=n.Object,c="Arguments"==a(function(){return arguments}());e.exports=i?a:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=u(e),s))?r:c?a(t):"Object"==(n=a(t))&&o(t.callee)?"Arguments":n}},9191:(e,t,r)=>{var n=r(3880),i=Error,o=n("".replace),a=String(i("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,u=s.test(a);e.exports=function(e,t){if(u&&"string"==typeof e&&!i.prepareStackTrace)for(;t--;)e=o(e,s,"");return e}},7857:(e,t,r)=>{"use strict";var n=r(7550).f,i=r(2491),o=r(4624),a=r(7673),s=r(8792),u=r(3906),c=r(8277),f=r(3918),l=r(7001),p=r(9446).fastKey,d=r(5875),v=d.set,m=d.getterFor;e.exports={getConstructor:function(e,t,r,c){var f=e((function(e,n){s(e,d),v(e,{type:t,index:i(null),first:void 0,last:void 0,size:0}),l||(e.size=0),null!=n&&u(n,e[c],{that:e,AS_ENTRIES:r})})),d=f.prototype,h=m(t),y=function(e,t,r){var n,i,o=h(e),a=g(e,t);return a?a.value=r:(o.last=a={index:i=p(t,!0),key:t,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=a),n&&(n.next=a),l?o.size++:e.size++,"F"!==i&&(o.index[i]=a)),e},g=function(e,t){var r,n=h(e),i=p(t);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==t)return r};return o(d,{clear:function(){for(var e=h(this),t=e.index,r=e.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete t[r.index],r=r.next;e.first=e.last=void 0,l?e.size=0:this.size=0},delete:function(e){var t=this,r=h(t),n=g(t,e);if(n){var i=n.next,o=n.previous;delete r.index[n.index],n.removed=!0,o&&(o.next=i),i&&(i.previous=o),r.first==n&&(r.first=i),r.last==n&&(r.last=o),l?r.size--:t.size--}return!!n},forEach:function(e){for(var t,r=h(this),n=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:r.first;)for(n(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!g(this,e)}}),o(d,r?{get:function(e){var t=g(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),l&&n(d,"size",{get:function(){return h(this).size}}),f},setStrong:function(e,t,r){var n=t+" Iterator",i=m(t),o=m(n);c(e,t,(function(e,t){v(this,{type:n,target:e,state:i(e),kind:t,last:void 0})}),(function(){for(var e=o(this),t=e.kind,r=e.last;r&&r.removed;)r=r.previous;return e.target&&(e.last=r=r?r.next:e.state.first)?"keys"==t?{value:r.key,done:!1}:"values"==t?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),f(t)}}},1390:(e,t,r)=>{"use strict";var n=r(390),i=r(2868),o=r(9446),a=r(6530),s=r(8518),u=r(3906),c=r(8792),f=r(8307),l=r(3359),p=r(6738),d=r(7550).f,v=r(4206).forEach,m=r(7001),h=r(5875),y=h.set,g=h.getterFor;e.exports=function(e,t,r){var h,_=-1!==e.indexOf("Map"),w=-1!==e.indexOf("Weak"),b=_?"set":"add",T=i[e],C=T&&T.prototype,x={};if(m&&f(T)&&(w||C.forEach&&!a((function(){(new T).entries().next()})))){var P=(h=t((function(t,r){y(c(t,P),{type:e,collection:new T}),null!=r&&u(r,t[b],{that:t,AS_ENTRIES:_})}))).prototype,$=g(e);v(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(e){var t="add"==e||"set"==e;!(e in C)||w&&"clear"==e||s(P,e,(function(r,n){var i=$(this).collection;if(!t&&w&&!l(r))return"get"==e&&void 0;var o=i[e](0===r?0:r,n);return t?this:o}))})),w||d(P,"size",{configurable:!0,get:function(){return $(this).collection.size}})}else h=r.getConstructor(t,e,_,b),o.enable();return p(h,e,!1,!0),x[e]=h,n({global:!0,forced:!0},x),w||r.setStrong(h,e,_),h}},4498:(e,t,r)=>{var n=r(5584),i=r(5340),o=r(5904),a=r(7550);e.exports=function(e,t,r){for(var s=i(t),u=a.f,c=o.f,f=0;f<s.length;f++){var l=s[f];n(e,l)||r&&n(r,l)||u(e,l,c(t,l))}}},1722:(e,t,r)=>{var n=r(5712)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,"/./"[e](t)}catch(e){}}return!1}},872:(e,t,r)=>{var n=r(6530);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},8611:(e,t,r)=>{"use strict";var n=r(7300).IteratorPrototype,i=r(2491),o=r(5595),a=r(6738),s=r(9418),u=function(){return this};e.exports=function(e,t,r,c){var f=t+" Iterator";return e.prototype=i(n,{next:o(+!c,r)}),a(e,f,!1,!0),s[f]=u,e}},8518:(e,t,r)=>{var n=r(7001),i=r(7550),o=r(5595);e.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},5595:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},409:(e,t,r)=>{"use strict";var n=r(5623),i=r(7550),o=r(5595);e.exports=function(e,t,r){var a=n(t);a in e?i.f(e,a,o(0,r)):e[a]=r}},491:(e,t,r)=>{var n=r(8518);e.exports=function(e,t,r,i){return i&&i.enumerable?e[t]=r:n(e,t,r),e}},4624:(e,t,r)=>{var n=r(491);e.exports=function(e,t,r){for(var i in t)r&&r.unsafe&&e[i]?e[i]=t[i]:n(e,i,t[i],r);return e}},6868:(e,t,r)=>{var n=r(2868),i=Object.defineProperty;e.exports=function(e,t){try{i(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},8277:(e,t,r)=>{"use strict";var n=r(390),i=r(3146),o=r(8367),a=r(7730),s=r(8307),u=r(8611),c=r(2629),f=r(5255),l=r(6738),p=r(8518),d=r(491),v=r(5712),m=r(9418),h=r(7300),y=a.PROPER,g=a.CONFIGURABLE,_=h.IteratorPrototype,w=h.BUGGY_SAFARI_ITERATORS,b=v("iterator"),T="keys",C="values",x="entries",P=function(){return this};e.exports=function(e,t,r,a,v,h,$){u(r,t,a);var A,k,S,E=function(e){if(e===v&&W)return W;if(!w&&e in F)return F[e];switch(e){case T:case C:case x:return function(){return new r(this,e)}}return function(){return new r(this)}},j=t+" Iterator",O=!1,F=e.prototype,R=F[b]||F["@@iterator"]||v&&F[v],W=!w&&R||E(v),I="Array"==t&&F.entries||R;if(I&&(A=c(I.call(new e)))!==Object.prototype&&A.next&&(o||c(A)===_||(f?f(A,_):s(A[b])||d(A,b,P)),l(A,j,!0,!0),o&&(m[j]=P)),y&&v==C&&R&&R.name!==C&&(!o&&g?p(F,"name",C):(O=!0,W=function(){return i(R,this)})),v)if(k={values:E(C),keys:h?W:E(T),entries:E(x)},$)for(S in k)(w||O||!(S in F))&&d(F,S,k[S]);else n({target:t,proto:!0,forced:w||O},k);return o&&!$||F[b]===W||d(F,b,W,{name:v}),m[t]=W,k}},7001:(e,t,r)=>{var n=r(6530);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},231:(e,t,r)=>{var n=r(2868),i=r(3359),o=n.document,a=i(o)&&i(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},315:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},6610:e=>{e.exports="object"==typeof window&&"object"!=typeof Deno},6405:(e,t,r)=>{var n=r(6900),i=r(2868);e.exports=/ipad|iphone|ipod/i.test(n)&&void 0!==i.Pebble},6540:(e,t,r)=>{var n=r(6900);e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},6521:(e,t,r)=>{var n=r(1570),i=r(2868);e.exports="process"==n(i.process)},4010:(e,t,r)=>{var n=r(6900);e.exports=/web0s(?!.*chrome)/i.test(n)},6900:(e,t,r)=>{var n=r(8104);e.exports=n("navigator","userAgent")||""},8233:(e,t,r)=>{var n,i,o=r(2868),a=r(6900),s=o.process,u=o.Deno,c=s&&s.versions||u&&u.version,f=c&&c.v8;f&&(i=(n=f.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=+n[1]),e.exports=i},2018:(e,t,r)=>{var n=r(9081);e.exports=function(e){return n[e+"Prototype"]}},2712:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8417:(e,t,r)=>{var n=r(6530),i=r(5595);e.exports=!n((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",i(1,7)),7!==e.stack)}))},390:(e,t,r)=>{"use strict";var n=r(2868),i=r(6266),o=r(3880),a=r(8307),s=r(5904).f,u=r(1011),c=r(9081),f=r(7673),l=r(8518),p=r(5584),d=function(e){var t=function(r,n,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,o)}return i(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,i,v,m,h,y,g,_,w=e.target,b=e.global,T=e.stat,C=e.proto,x=b?n:T?n[w]:(n[w]||{}).prototype,P=b?c:c[w]||l(c,w,{})[w],$=P.prototype;for(v in t)r=!u(b?v:w+(T?".":"#")+v,e.forced)&&x&&p(x,v),h=P[v],r&&(y=e.dontCallGetSet?(_=s(x,v))&&_.value:x[v]),m=r&&y?y:t[v],r&&typeof h==typeof m||(g=e.bind&&r?f(m,n):e.wrap&&r?d(m):C&&a(m)?o(m):m,(e.sham||m&&m.sham||h&&h.sham)&&l(g,"sham",!0),l(P,v,g),C&&(p(c,i=w+"Prototype")||l(c,i,{}),l(c[i],v,m),e.real&&$&&!$[v]&&l($,v,m)))}},6530:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},6558:(e,t,r)=>{var n=r(6530);e.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},6266:(e,t,r)=>{var n=r(9086),i=Function.prototype,o=i.apply,a=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(o):function(){return a.apply(o,arguments)})},7673:(e,t,r)=>{var n=r(3880),i=r(5222),o=r(9086),a=n(n.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},9086:(e,t,r)=>{var n=r(6530);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},3146:(e,t,r)=>{var n=r(9086),i=Function.prototype.call;e.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},7730:(e,t,r)=>{var n=r(7001),i=r(5584),o=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=i(o,"name"),u=s&&"something"===function(){}.name,c=s&&(!n||n&&a(o,"name").configurable);e.exports={EXISTS:s,PROPER:u,CONFIGURABLE:c}},3880:(e,t,r)=>{var n=r(9086),i=Function.prototype,o=i.bind,a=i.call,s=n&&o.bind(a,a);e.exports=n?function(e){return e&&s(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},8104:(e,t,r)=>{var n=r(9081),i=r(2868),o=r(8307),a=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?a(n[e])||a(i[e]):n[e]&&n[e][t]||i[e]&&i[e][t]}},5018:(e,t,r)=>{var n=r(7499),i=r(2809),o=r(9418),a=r(5712)("iterator");e.exports=function(e){if(null!=e)return i(e,a)||i(e,"@@iterator")||o[n(e)]}},5945:(e,t,r)=>{var n=r(2868),i=r(3146),o=r(5222),a=r(1912),s=r(7265),u=r(5018),c=n.TypeError;e.exports=function(e,t){var r=arguments.length<2?u(e):t;if(o(r))return a(i(r,e));throw c(s(e)+" is not iterable")}},2809:(e,t,r)=>{var n=r(5222);e.exports=function(e,t){var r=e[t];return null==r?void 0:n(r)}},2868:(e,t,r)=>{var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},5584:(e,t,r)=>{var n=r(3880),i=r(2058),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},7048:e=>{e.exports={}},8471:(e,t,r)=>{var n=r(2868);e.exports=function(e,t){var r=n.console;r&&r.error&&(1==arguments.length?r.error(e):r.error(e,t))}},5644:(e,t,r)=>{var n=r(8104);e.exports=n("document","documentElement")},640:(e,t,r)=>{var n=r(7001),i=r(6530),o=r(231);e.exports=!n&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},1251:(e,t,r)=>{var n=r(2868),i=r(3880),o=r(6530),a=r(1570),s=n.Object,u=i("".split);e.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?u(e,""):s(e)}:s},1494:(e,t,r)=>{var n=r(3880),i=r(8307),o=r(2656),a=n(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return a(e)}),e.exports=o.inspectSource},8525:(e,t,r)=>{var n=r(3359),i=r(8518);e.exports=function(e,t){n(t)&&"cause"in t&&i(e,"cause",t.cause)}},9446:(e,t,r)=>{var n=r(390),i=r(3880),o=r(7048),a=r(3359),s=r(5584),u=r(7550).f,c=r(9035),f=r(6159),l=r(8002),p=r(9),d=r(6558),v=!1,m=p("meta"),h=0,y=function(e){u(e,m,{value:{objectID:"O"+h++,weakData:{}}})},g=e.exports={enable:function(){g.enable=function(){},v=!0;var e=c.f,t=i([].splice),r={};r[m]=1,e(r).length&&(c.f=function(r){for(var n=e(r),i=0,o=n.length;i<o;i++)if(n[i]===m){t(n,i,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,m)){if(!l(e))return"F";if(!t)return"E";y(e)}return e[m].objectID},getWeakData:function(e,t){if(!s(e,m)){if(!l(e))return!0;if(!t)return!1;y(e)}return e[m].weakData},onFreeze:function(e){return d&&v&&l(e)&&!s(e,m)&&y(e),e}};o[m]=!0},5875:(e,t,r)=>{var n,i,o,a=r(2297),s=r(2868),u=r(3880),c=r(3359),f=r(8518),l=r(5584),p=r(2656),d=r(5039),v=r(7048),m="Object already initialized",h=s.TypeError,y=s.WeakMap;if(a||p.state){var g=p.state||(p.state=new y),_=u(g.get),w=u(g.has),b=u(g.set);n=function(e,t){if(w(g,e))throw new h(m);return t.facade=e,b(g,e,t),t},i=function(e){return _(g,e)||{}},o=function(e){return w(g,e)}}else{var T=d("state");v[T]=!0,n=function(e,t){if(l(e,T))throw new h(m);return t.facade=e,f(e,T,t),t},i=function(e){return l(e,T)?e[T]:{}},o=function(e){return l(e,T)}}e.exports={set:n,get:i,has:o,enforce:function(e){return o(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=i(t)).type!==e)throw h("Incompatible receiver, "+e+" required");return r}}}},6475:(e,t,r)=>{var n=r(5712),i=r(9418),o=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[o]===e)}},1054:(e,t,r)=>{var n=r(1570);e.exports=Array.isArray||function(e){return"Array"==n(e)}},8307:e=>{e.exports=function(e){return"function"==typeof e}},1775:(e,t,r)=>{var n=r(3880),i=r(6530),o=r(8307),a=r(7499),s=r(8104),u=r(1494),c=function(){},f=[],l=s("Reflect","construct"),p=/^\s*(?:class|function)\b/,d=n(p.exec),v=!p.exec(c),m=function(e){if(!o(e))return!1;try{return l(c,f,e),!0}catch(e){return!1}},h=function(e){if(!o(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return v||!!d(p,u(e))}catch(e){return!0}};h.sham=!0,e.exports=!l||i((function(){var e;return m(m.call)||!m(Object)||!m((function(){e=!0}))||e}))?h:m},1011:(e,t,r)=>{var n=r(6530),i=r(8307),o=/#|\.prototype\./,a=function(e,t){var r=u[s(e)];return r==f||r!=c&&(i(t)?n(t):!!t)},s=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},u=a.data={},c=a.NATIVE="N",f=a.POLYFILL="P";e.exports=a},3359:(e,t,r)=>{var n=r(8307);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},8367:e=>{e.exports=!0},6858:(e,t,r)=>{var n=r(3359),i=r(1570),o=r(5712)("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},1149:(e,t,r)=>{var n=r(2868),i=r(8104),o=r(8307),a=r(5792),s=r(6046),u=n.Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return o(t)&&a(t.prototype,u(e))}},3906:(e,t,r)=>{var n=r(2868),i=r(7673),o=r(3146),a=r(1912),s=r(7265),u=r(6475),c=r(9876),f=r(5792),l=r(5945),p=r(5018),d=r(309),v=n.TypeError,m=function(e,t){this.stopped=e,this.result=t},h=m.prototype;e.exports=function(e,t,r){var n,y,g,_,w,b,T,C=r&&r.that,x=!(!r||!r.AS_ENTRIES),P=!(!r||!r.IS_ITERATOR),$=!(!r||!r.INTERRUPTED),A=i(t,C),k=function(e){return n&&d(n,"normal",e),new m(!0,e)},S=function(e){return x?(a(e),$?A(e[0],e[1],k):A(e[0],e[1])):$?A(e,k):A(e)};if(P)n=e;else{if(!(y=p(e)))throw v(s(e)+" is not iterable");if(u(y)){for(g=0,_=c(e);_>g;g++)if((w=S(e[g]))&&f(h,w))return w;return new m(!1)}n=l(e,y)}for(b=n.next;!(T=o(b,n)).done;){try{w=S(T.value)}catch(e){d(n,"throw",e)}if("object"==typeof w&&w&&f(h,w))return w}return new m(!1)}},309:(e,t,r)=>{var n=r(3146),i=r(1912),o=r(2809);e.exports=function(e,t,r){var a,s;i(e);try{if(!(a=o(e,"return"))){if("throw"===t)throw r;return r}a=n(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw r;if(s)throw a;return i(a),r}},7300:(e,t,r)=>{"use strict";var n,i,o,a=r(6530),s=r(8307),u=r(2491),c=r(2629),f=r(491),l=r(5712),p=r(8367),d=l("iterator"),v=!1;[].keys&&("next"in(o=[].keys())?(i=c(c(o)))!==Object.prototype&&(n=i):v=!0),null==n||a((function(){var e={};return n[d].call(e)!==e}))?n={}:p&&(n=u(n)),s(n[d])||f(n,d,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:v}},9418:e=>{e.exports={}},9876:(e,t,r)=>{var n=r(3746);e.exports=function(e){return n(e.length)}},2047:e=>{var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},8054:(e,t,r)=>{var n,i,o,a,s,u,c,f,l=r(2868),p=r(7673),d=r(5904).f,v=r(6569).set,m=r(6540),h=r(6405),y=r(4010),g=r(6521),_=l.MutationObserver||l.WebKitMutationObserver,w=l.document,b=l.process,T=l.Promise,C=d(l,"queueMicrotask"),x=C&&C.value;x||(n=function(){var e,t;for(g&&(e=b.domain)&&e.exit();i;){t=i.fn,i=i.next;try{t()}catch(e){throw i?a():o=void 0,e}}o=void 0,e&&e.enter()},m||g||y||!_||!w?!h&&T&&T.resolve?((c=T.resolve(void 0)).constructor=T,f=p(c.then,c),a=function(){f(n)}):g?a=function(){b.nextTick(n)}:(v=p(v,l),a=function(){v(n)}):(s=!0,u=w.createTextNode(""),new _(n).observe(u,{characterData:!0}),a=function(){u.data=s=!s})),e.exports=x||function(e){var t={fn:e,next:void 0};o&&(o.next=t),i||(i=t,a()),o=t}},3216:(e,t,r)=>{var n=r(8233),i=r(6530);e.exports=!!Object.getOwnPropertySymbols&&!i((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},2297:(e,t,r)=>{var n=r(2868),i=r(8307),o=r(1494),a=n.WeakMap;e.exports=i(a)&&/native code/.test(o(a))},4130:(e,t,r)=>{"use strict";var n=r(5222),i=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n})),this.resolve=n(t),this.reject=n(r)};e.exports.f=function(e){return new i(e)}},7515:(e,t,r)=>{var n=r(5264);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},9611:(e,t,r)=>{var n=r(2868),i=r(6858),o=n.TypeError;e.exports=function(e){if(i(e))throw o("The method doesn't accept regular expressions");return e}},2491:(e,t,r)=>{var n,i=r(1912),o=r(4686),a=r(2712),s=r(7048),u=r(5644),c=r(231),f=r(5039)("IE_PROTO"),l=function(){},p=function(e){return"<script>"+e+"<\/script>"},d=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t;v="undefined"!=typeof document?document.domain&&n?d(n):((t=c("iframe")).style.display="none",u.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):d(n);for(var r=a.length;r--;)delete v.prototype[a[r]];return v()};s[f]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(l.prototype=i(e),r=new l,l.prototype=null,r[f]=e):r=v(),void 0===t?r:o.f(r,t)}},4686:(e,t,r)=>{var n=r(7001),i=r(7139),o=r(7550),a=r(1912),s=r(3861),u=r(461);t.f=n&&!i?Object.defineProperties:function(e,t){a(e);for(var r,n=s(t),i=u(t),c=i.length,f=0;c>f;)o.f(e,r=i[f++],n[r]);return e}},7550:(e,t,r)=>{var n=r(2868),i=r(7001),o=r(640),a=r(7139),s=r(1912),u=r(5623),c=n.TypeError,f=Object.defineProperty,l=Object.getOwnPropertyDescriptor;t.f=i?a?function(e,t,r){if(s(e),t=u(t),s(r),"function"==typeof e&&"prototype"===t&&"value"in r&&"writable"in r&&!r.writable){var n=l(e,t);n&&n.writable&&(e[t]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return f(e,t,r)}:f:function(e,t,r){if(s(e),t=u(t),s(r),o)try{return f(e,t,r)}catch(e){}if("get"in r||"set"in r)throw c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},5904:(e,t,r)=>{var n=r(7001),i=r(3146),o=r(1156),a=r(5595),s=r(3861),u=r(5623),c=r(5584),f=r(640),l=Object.getOwnPropertyDescriptor;t.f=n?l:function(e,t){if(e=s(e),t=u(t),f)try{return l(e,t)}catch(e){}if(c(e,t))return a(!i(o.f,e,t),e[t])}},6159:(e,t,r)=>{var n=r(1570),i=r(3861),o=r(9035).f,a=r(6901),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"==n(e)?function(e){try{return o(e)}catch(e){return a(s)}}(e):o(i(e))}},9035:(e,t,r)=>{var n=r(1247),i=r(2712).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},3764:(e,t)=>{t.f=Object.getOwnPropertySymbols},2629:(e,t,r)=>{var n=r(2868),i=r(5584),o=r(8307),a=r(2058),s=r(5039),u=r(872),c=s("IE_PROTO"),f=n.Object,l=f.prototype;e.exports=u?f.getPrototypeOf:function(e){var t=a(e);if(i(t,c))return t[c];var r=t.constructor;return o(r)&&t instanceof r?r.prototype:t instanceof f?l:null}},8002:(e,t,r)=>{var n=r(6530),i=r(3359),o=r(1570),a=r(6715),s=Object.isExtensible,u=n((function(){s(1)}));e.exports=u||a?function(e){return!!i(e)&&(!a||"ArrayBuffer"!=o(e))&&(!s||s(e))}:s},5792:(e,t,r)=>{var n=r(3880);e.exports=n({}.isPrototypeOf)},1247:(e,t,r)=>{var n=r(3880),i=r(5584),o=r(3861),a=r(7075).indexOf,s=r(7048),u=n([].push);e.exports=function(e,t){var r,n=o(e),c=0,f=[];for(r in n)!i(s,r)&&i(n,r)&&u(f,r);for(;t.length>c;)i(n,r=t[c++])&&(~a(f,r)||u(f,r));return f}},461:(e,t,r)=>{var n=r(1247),i=r(2712);e.exports=Object.keys||function(e){return n(e,i)}},1156:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);t.f=i?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},5255:(e,t,r)=>{var n=r(3880),i=r(1912),o=r(9154);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return i(r),o(n),t?e(r,n):r.__proto__=n,r}}():void 0)},2204:(e,t,r)=>{"use strict";var n=r(8889),i=r(7499);e.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},9466:(e,t,r)=>{var n=r(2868),i=r(3146),o=r(8307),a=r(3359),s=n.TypeError;e.exports=function(e,t){var r,n;if("string"===t&&o(r=e.toString)&&!a(n=i(r,e)))return n;if(o(r=e.valueOf)&&!a(n=i(r,e)))return n;if("string"!==t&&o(r=e.toString)&&!a(n=i(r,e)))return n;throw s("Can't convert object to primitive value")}},5340:(e,t,r)=>{var n=r(8104),i=r(3880),o=r(9035),a=r(3764),s=r(1912),u=i([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(s(e)),r=a.f;return r?u(t,r(e)):t}},9081:e=>{e.exports={}},4618:e=>{e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},4569:(e,t,r)=>{var n=r(2868),i=r(480),o=r(8307),a=r(1011),s=r(1494),u=r(5712),c=r(6610),f=r(8367),l=r(8233),p=i&&i.prototype,d=u("species"),v=!1,m=o(n.PromiseRejectionEvent),h=a("Promise",(function(){var e=s(i),t=e!==String(i);if(!t&&66===l)return!0;if(f&&(!p.catch||!p.finally))return!0;if(l>=51&&/native code/.test(e))return!1;var r=new i((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};return(r.constructor={})[d]=n,!(v=r.then((function(){}))instanceof n)||!t&&c&&!m}));e.exports={CONSTRUCTOR:h,REJECTION_EVENT:m,SUBCLASSING:v}},480:(e,t,r)=>{var n=r(2868);e.exports=n.Promise},4567:(e,t,r)=>{var n=r(1912),i=r(3359),o=r(4130);e.exports=function(e,t){if(n(e),i(t)&&t.constructor===e)return t;var r=o.f(e);return(0,r.resolve)(t),r.promise}},629:(e,t,r)=>{var n=r(480),i=r(8908),o=r(4569).CONSTRUCTOR;e.exports=o||!i((function(e){n.all(e).then(void 0,(function(){}))}))},4777:e=>{var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},e.exports=t},3604:(e,t,r)=>{var n=r(2868).TypeError;e.exports=function(e){if(null==e)throw n("Can't call method on "+e);return e}},3918:(e,t,r)=>{"use strict";var n=r(8104),i=r(7550),o=r(5712),a=r(7001),s=o("species");e.exports=function(e){var t=n(e),r=i.f;a&&t&&!t[s]&&r(t,s,{configurable:!0,get:function(){return this}})}},6738:(e,t,r)=>{var n=r(8889),i=r(7550).f,o=r(8518),a=r(5584),s=r(2204),u=r(5712)("toStringTag");e.exports=function(e,t,r,c){if(e){var f=r?e:e.prototype;a(f,u)||i(f,u,{configurable:!0,value:t}),c&&!n&&o(f,"toString",s)}}},5039:(e,t,r)=>{var n=r(6315),i=r(9),o=n("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},2656:(e,t,r)=>{var n=r(2868),i=r(6868),o="__core-js_shared__",a=n[o]||i(o,{});e.exports=a},6315:(e,t,r)=>{var n=r(8367),i=r(2656);(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.22.7",mode:n?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.7/LICENSE",source:"https://github.com/zloirock/core-js"})},5462:(e,t,r)=>{var n=r(1912),i=r(2736),o=r(5712)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||null==(r=n(a)[o])?t:i(r)}},1420:(e,t,r)=>{var n=r(3880),i=r(5511),o=r(5264),a=r(3604),s=n("".charAt),u=n("".charCodeAt),c=n("".slice),f=function(e){return function(t,r){var n,f,l=o(a(t)),p=i(r),d=l.length;return p<0||p>=d?e?"":void 0:(n=u(l,p))<55296||n>56319||p+1===d||(f=u(l,p+1))<56320||f>57343?e?s(l,p):n:e?c(l,p,p+2):f-56320+(n-55296<<10)+65536}};e.exports={codeAt:f(!1),charAt:f(!0)}},1224:(e,t,r)=>{var n=r(6900);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(n)},1617:(e,t,r)=>{var n=r(3880),i=r(3746),o=r(5264),a=r(2570),s=r(3604),u=n(a),c=n("".slice),f=Math.ceil,l=function(e){return function(t,r,n){var a,l,p=o(s(t)),d=i(r),v=p.length,m=void 0===n?" ":o(n);return d<=v||""==m?p:((l=u(m,f((a=d-v)/m.length))).length>a&&(l=c(l,0,a)),e?p+l:l+p)}};e.exports={start:l(!1),end:l(!0)}},2570:(e,t,r)=>{"use strict";var n=r(2868),i=r(5511),o=r(5264),a=r(3604),s=n.RangeError;e.exports=function(e){var t=o(a(this)),r="",n=i(e);if(n<0||n==1/0)throw s("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r}},6569:(e,t,r)=>{var n,i,o,a,s=r(2868),u=r(6266),c=r(7673),f=r(8307),l=r(5584),p=r(6530),d=r(5644),v=r(4735),m=r(231),h=r(3451),y=r(6540),g=r(6521),_=s.setImmediate,w=s.clearImmediate,b=s.process,T=s.Dispatch,C=s.Function,x=s.MessageChannel,P=s.String,$=0,A={};try{n=s.location}catch(e){}var k=function(e){if(l(A,e)){var t=A[e];delete A[e],t()}},S=function(e){return function(){k(e)}},E=function(e){k(e.data)},j=function(e){s.postMessage(P(e),n.protocol+"//"+n.host)};_&&w||(_=function(e){h(arguments.length,1);var t=f(e)?e:C(e),r=v(arguments,1);return A[++$]=function(){u(t,void 0,r)},i($),$},w=function(e){delete A[e]},g?i=function(e){b.nextTick(S(e))}:T&&T.now?i=function(e){T.now(S(e))}:x&&!y?(a=(o=new x).port2,o.port1.onmessage=E,i=c(a.postMessage,a)):s.addEventListener&&f(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!p(j)?(i=j,s.addEventListener("message",E,!1)):i="onreadystatechange"in m("script")?function(e){d.appendChild(m("script")).onreadystatechange=function(){d.removeChild(this),k(e)}}:function(e){setTimeout(S(e),0)}),e.exports={set:_,clear:w}},3055:(e,t,r)=>{var n=r(5511),i=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(r,t)}},3861:(e,t,r)=>{var n=r(1251),i=r(3604);e.exports=function(e){return n(i(e))}},5511:(e,t,r)=>{var n=r(2047);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},3746:(e,t,r)=>{var n=r(5511),i=Math.min;e.exports=function(e){return e>0?i(n(e),9007199254740991):0}},2058:(e,t,r)=>{var n=r(2868),i=r(3604),o=n.Object;e.exports=function(e){return o(i(e))}},3957:(e,t,r)=>{var n=r(2868),i=r(3146),o=r(3359),a=r(1149),s=r(2809),u=r(9466),c=r(5712),f=n.TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!o(e)||a(e))return e;var r,n=s(e,l);if(n){if(void 0===t&&(t="default"),r=i(n,e,t),!o(r)||a(r))return r;throw f("Can't convert object to primitive value")}return void 0===t&&(t="number"),u(e,t)}},5623:(e,t,r)=>{var n=r(3957),i=r(1149);e.exports=function(e){var t=n(e,"string");return i(t)?t:t+""}},8889:(e,t,r)=>{var n={};n[r(5712)("toStringTag")]="z",e.exports="[object z]"===String(n)},5264:(e,t,r)=>{var n=r(2868),i=r(7499),o=n.String;e.exports=function(e){if("Symbol"===i(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},7265:(e,t,r)=>{var n=r(2868).String;e.exports=function(e){try{return n(e)}catch(e){return"Object"}}},9:(e,t,r)=>{var n=r(3880),i=0,o=Math.random(),a=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++i+o,36)}},6046:(e,t,r)=>{var n=r(3216);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7139:(e,t,r)=>{var n=r(7001),i=r(6530);e.exports=n&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},3451:(e,t,r)=>{var n=r(2868).TypeError;e.exports=function(e,t){if(e<t)throw n("Not enough arguments");return e}},5712:(e,t,r)=>{var n=r(2868),i=r(6315),o=r(5584),a=r(9),s=r(3216),u=r(6046),c=i("wks"),f=n.Symbol,l=f&&f.for,p=u?f:f&&f.withoutSetter||a;e.exports=function(e){if(!o(c,e)||!s&&"string"!=typeof c[e]){var t="Symbol."+e;s&&o(f,e)?c[e]=f[e]:c[e]=u&&l?l(t):p(t)}return c[e]}},1352:(e,t,r)=>{"use strict";var n=r(390),i=r(2868),o=r(5792),a=r(2629),s=r(5255),u=r(4498),c=r(2491),f=r(8518),l=r(5595),p=r(9191),d=r(8525),v=r(3906),m=r(7515),h=r(5712),y=r(8417),g=h("toStringTag"),_=i.Error,w=[].push,b=function(e,t){var r,n=arguments.length>2?arguments[2]:void 0,i=o(T,this);s?r=s(new _,i?a(this):T):(r=i?this:c(T),f(r,g,"Error")),void 0!==t&&f(r,"message",m(t)),y&&f(r,"stack",p(r.stack,1)),d(r,n);var u=[];return v(e,w,{that:u}),f(r,"errors",u),r};s?s(b,_):u(b,_,{name:!0});var T=b.prototype=c(_.prototype,{constructor:l(1,b),message:l(1,""),name:l(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:b})},6454:(e,t,r)=>{r(1352)},2228:(e,t,r)=>{"use strict";var n=r(3861),i=r(7710),o=r(9418),a=r(5875),s=r(7550).f,u=r(8277),c=r(8367),f=r(7001),l="Array Iterator",p=a.set,d=a.getterFor(l);e.exports=u(Array,"Array",(function(e,t){p(this,{type:l,target:n(e),index:0,kind:t})}),(function(){var e=d(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}}),"values");var v=o.Arguments=o.Array;if(i("keys"),i("values"),i("entries"),!c&&f&&"values"!==v.name)try{s(v,"name",{value:"values"})}catch(e){}},2575:()=>{},4465:(e,t,r)=>{"use strict";var n=r(390),i=r(3146),o=r(5222),a=r(4130),s=r(4618),u=r(3906);n({target:"Promise",stat:!0},{allSettled:function(e){var t=this,r=a.f(t),n=r.resolve,c=r.reject,f=s((function(){var r=o(t.resolve),a=[],s=0,c=1;u(e,(function(e){var o=s++,u=!1;c++,i(r,t,e).then((function(e){u||(u=!0,a[o]={status:"fulfilled",value:e},--c||n(a))}),(function(e){u||(u=!0,a[o]={status:"rejected",reason:e},--c||n(a))}))})),--c||n(a)}));return f.error&&c(f.value),r.promise}})},6411:(e,t,r)=>{"use strict";var n=r(390),i=r(3146),o=r(5222),a=r(4130),s=r(4618),u=r(3906);n({target:"Promise",stat:!0,forced:r(629)},{all:function(e){var t=this,r=a.f(t),n=r.resolve,c=r.reject,f=s((function(){var r=o(t.resolve),a=[],s=0,f=1;u(e,(function(e){var o=s++,u=!1;f++,i(r,t,e).then((function(e){u||(u=!0,a[o]=e,--f||n(a))}),c)})),--f||n(a)}));return f.error&&c(f.value),r.promise}})},8359:(e,t,r)=>{"use strict";var n=r(390),i=r(3146),o=r(5222),a=r(8104),s=r(4130),u=r(4618),c=r(3906),f="No one promise resolved";n({target:"Promise",stat:!0},{any:function(e){var t=this,r=a("AggregateError"),n=s.f(t),l=n.resolve,p=n.reject,d=u((function(){var n=o(t.resolve),a=[],s=0,u=1,d=!1;c(e,(function(e){var o=s++,c=!1;u++,i(n,t,e).then((function(e){c||d||(d=!0,l(e))}),(function(e){c||d||(c=!0,a[o]=e,--u||p(new r(a,f)))}))})),--u||p(new r(a,f))}));return d.error&&p(d.value),n.promise}})},9192:(e,t,r)=>{"use strict";var n=r(390),i=r(8367),o=r(4569).CONSTRUCTOR,a=r(480),s=r(8104),u=r(8307),c=r(491),f=a&&a.prototype;if(n({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(e){return this.then(void 0,e)}}),!i&&u(a)){var l=s("Promise").prototype.catch;f.catch!==l&&c(f,"catch",l,{unsafe:!0})}},830:(e,t,r)=>{"use strict";var n,i,o,a=r(390),s=r(8367),u=r(6521),c=r(2868),f=r(3146),l=r(491),p=r(5255),d=r(6738),v=r(3918),m=r(5222),h=r(8307),y=r(3359),g=r(8792),_=r(5462),w=r(6569).set,b=r(8054),T=r(8471),C=r(4618),x=r(4777),P=r(5875),$=r(480),A=r(4569),k=r(4130),S="Promise",E=A.CONSTRUCTOR,j=A.REJECTION_EVENT,O=A.SUBCLASSING,F=P.getterFor(S),R=P.set,W=$&&$.prototype,I=$,D=W,U=c.TypeError,M=c.document,z=c.process,N=k.f,q=N,B=!!(M&&M.createEvent&&c.dispatchEvent),L="unhandledrejection",V=function(e){var t;return!(!y(e)||!h(t=e.then))&&t},H=function(e,t){var r,n,i,o=t.value,a=1==t.state,s=a?e.ok:e.fail,u=e.resolve,c=e.reject,l=e.domain;try{s?(a||(2===t.rejection&&J(t),t.rejection=1),!0===s?r=o:(l&&l.enter(),r=s(o),l&&(l.exit(),i=!0)),r===e.promise?c(U("Promise-chain cycle")):(n=V(r))?f(n,r,u,c):u(r)):c(o)}catch(e){l&&!i&&l.exit(),c(e)}},G=function(e,t){e.notified||(e.notified=!0,b((function(){for(var r,n=e.reactions;r=n.get();)H(r,e);e.notified=!1,t&&!e.rejection&&X(e)})))},Z=function(e,t,r){var n,i;B?((n=M.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),c.dispatchEvent(n)):n={promise:t,reason:r},!j&&(i=c["on"+e])?i(n):e===L&&T("Unhandled promise rejection",r)},X=function(e){f(w,c,(function(){var t,r=e.facade,n=e.value;if(Y(e)&&(t=C((function(){u?z.emit("unhandledRejection",n,r):Z(L,r,n)})),e.rejection=u||Y(e)?2:1,t.error))throw t.value}))},Y=function(e){return 1!==e.rejection&&!e.parent},J=function(e){f(w,c,(function(){var t=e.facade;u?z.emit("rejectionHandled",t):Z("rejectionhandled",t,e.value)}))},K=function(e,t,r){return function(n){e(t,n,r)}},Q=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,G(e,!0))},ee=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw U("Promise can't be resolved itself");var n=V(t);n?b((function(){var r={done:!1};try{f(n,t,K(ee,r,e),K(Q,r,e))}catch(t){Q(r,t,e)}})):(e.value=t,e.state=1,G(e,!1))}catch(t){Q({done:!1},t,e)}}};if(E&&(D=(I=function(e){g(this,D),m(e),f(n,this);var t=F(this);try{e(K(ee,t),K(Q,t))}catch(e){Q(t,e)}}).prototype,(n=function(e){R(this,{type:S,done:!1,notified:!1,parent:!1,reactions:new x,rejection:!1,state:0,value:void 0})}).prototype=l(D,"then",(function(e,t){var r=F(this),n=N(_(this,I));return r.parent=!0,n.ok=!h(e)||e,n.fail=h(t)&&t,n.domain=u?z.domain:void 0,0==r.state?r.reactions.add(n):b((function(){H(n,r)})),n.promise})),i=function(){var e=new n,t=F(e);this.promise=e,this.resolve=K(ee,t),this.reject=K(Q,t)},k.f=N=function(e){return e===I||void 0===e?new i(e):q(e)},!s&&h($)&&W!==Object.prototype)){o=W.then,O||l(W,"then",(function(e,t){var r=this;return new I((function(e,t){f(o,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete W.constructor}catch(e){}p&&p(W,D)}a({global:!0,constructor:!0,wrap:!0,forced:E},{Promise:I}),d(I,S,!1,!0),v(S)},5203:(e,t,r)=>{"use strict";var n=r(390),i=r(8367),o=r(480),a=r(6530),s=r(8104),u=r(8307),c=r(5462),f=r(4567),l=r(491),p=o&&o.prototype;if(n({target:"Promise",proto:!0,real:!0,forced:!!o&&a((function(){p.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=c(this,s("Promise")),r=u(e);return this.then(r?function(r){return f(t,e()).then((function(){return r}))}:e,r?function(r){return f(t,e()).then((function(){throw r}))}:e)}}),!i&&u(o)){var d=s("Promise").prototype.finally;p.finally!==d&&l(p,"finally",d,{unsafe:!0})}},3658:(e,t,r)=>{r(830),r(6411),r(9192),r(7670),r(1647),r(8852)},7670:(e,t,r)=>{"use strict";var n=r(390),i=r(3146),o=r(5222),a=r(4130),s=r(4618),u=r(3906);n({target:"Promise",stat:!0,forced:r(629)},{race:function(e){var t=this,r=a.f(t),n=r.reject,c=s((function(){var a=o(t.resolve);u(e,(function(e){i(a,t,e).then(r.resolve,n)}))}));return c.error&&n(c.value),r.promise}})},1647:(e,t,r)=>{"use strict";var n=r(390),i=r(3146),o=r(4130);n({target:"Promise",stat:!0,forced:r(4569).CONSTRUCTOR},{reject:function(e){var t=o.f(this);return i(t.reject,void 0,e),t.promise}})},8852:(e,t,r)=>{"use strict";var n=r(390),i=r(8104),o=r(8367),a=r(480),s=r(4569).CONSTRUCTOR,u=r(4567),c=i("Promise"),f=o&&!s;n({target:"Promise",stat:!0,forced:o||s},{resolve:function(e){return u(f&&this===c?a:this,e)}})},5754:(e,t,r)=>{"use strict";r(1390)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),r(7857))},1222:(e,t,r)=>{r(5754)},2329:(e,t,r)=>{"use strict";var n,i=r(390),o=r(3880),a=r(5904).f,s=r(3746),u=r(5264),c=r(9611),f=r(3604),l=r(1722),p=r(8367),d=o("".endsWith),v=o("".slice),m=Math.min,h=l("endsWith");i({target:"String",proto:!0,forced:!(!p&&!h&&(n=a(String.prototype,"endsWith"),n&&!n.writable)||h)},{endsWith:function(e){var t=u(f(this));c(e);var r=arguments.length>1?arguments[1]:void 0,n=t.length,i=void 0===r?n:m(s(r),n),o=u(e);return d?d(t,o,i):v(t,i-o.length,i)===o}})},8109:(e,t,r)=>{"use strict";var n=r(1420).charAt,i=r(5264),o=r(5875),a=r(8277),s="String Iterator",u=o.set,c=o.getterFor(s);a(String,"String",(function(e){u(this,{type:s,string:i(e),index:0})}),(function(){var e,t=c(this),r=t.string,i=t.index;return i>=r.length?{value:void 0,done:!0}:(e=n(r,i),t.index+=e.length,{value:e,done:!1})}))},6639:(e,t,r)=>{"use strict";var n=r(390),i=r(1617).start;n({target:"String",proto:!0,forced:r(1224)},{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},9702:(e,t,r)=>{r(2228);var n=r(315),i=r(2868),o=r(7499),a=r(8518),s=r(9418),u=r(5712)("toStringTag");for(var c in n){var f=i[c],l=f&&f.prototype;l&&o(l)!==u&&a(l,u,c),s[c]=s.Array}},5697:(e,t,r)=>{var n=r(1065);e.exports=n},4608:(e,t,r)=>{var n=r(4129);e.exports=n},4731:(e,t,r)=>{var n=r(7281);r(9702),e.exports=n},9233:(e,t,r)=>{var n=r(9956);r(9702),e.exports=n},9708:function(e,t){var r,n=(r="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,"undefined"!=typeof __filename&&(r=r||__filename),function(e){var t,n,i=void 0!==(e=e||{})?e:{};i.ready=new Promise((function(e,r){t=e,n=r}));var o,a,s,u,c,f,l=Object.assign({},i),p=[],d="object"==typeof window,v="function"==typeof importScripts,m="";"object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node?(m=v?require("path").dirname(m)+"/":__dirname+"/",f=()=>{c||(u=require("fs"),c=require("path"))},o=function(e,t){return f(),e=c.normalize(e),u.readFileSync(e,t?void 0:"utf8")},s=e=>{var t=o(e,!0);return t.buffer||(t=new Uint8Array(t)),t},a=(e,t,r)=>{f(),e=c.normalize(e),u.readFile(e,(function(e,n){e?r(e):t(n.buffer)}))},process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),p=process.argv.slice(2),process.on("uncaughtException",(function(e){if(!(e instanceof Pt))throw e})),process.on("unhandledRejection",(function(e){throw e})),i.inspect=function(){return"[Emscripten Module object]"}):(d||v)&&(v?m=self.location.href:"undefined"!=typeof document&&document.currentScript&&(m=document.currentScript.src),r&&(m=r),m=0!==m.indexOf("blob:")?m.substr(0,m.replace(/[?#].*/,"").lastIndexOf("/")+1):"",o=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},v&&(s=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),a=(e,t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)});var h,y,g=i.print||console.log.bind(console),_=i.printErr||console.warn.bind(console);Object.assign(i,l),l=null,i.arguments&&(p=i.arguments),i.thisProgram&&i.thisProgram,i.quit&&i.quit,i.wasmBinary&&(h=i.wasmBinary),i.noExitRuntime,"object"!=typeof WebAssembly&&ee("no native wasm support detected");var w=!1,b="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function T(e,t,r){for(var n=t+r,i=t;e[i]&&!(i>=n);)++i;if(i-t>16&&e.subarray&&b)return b.decode(e.subarray(t,i));for(var o="";t<i;){var a=e[t++];if(128&a){var s=63&e[t++];if(192!=(224&a)){var u=63&e[t++];if((a=224==(240&a)?(15&a)<<12|s<<6|u:(7&a)<<18|s<<12|u<<6|63&e[t++])<65536)o+=String.fromCharCode(a);else{var c=a-65536;o+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else o+=String.fromCharCode((31&a)<<6|s)}else o+=String.fromCharCode(a)}return o}function C(e,t){return e?T(S,e,t):""}function x(e,t,r,n){if(!(n>0))return 0;for(var i=r,o=r+n-1,a=0;a<e.length;++a){var s=e.charCodeAt(a);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++a)),s<=127){if(r>=o)break;t[r++]=s}else if(s<=2047){if(r+1>=o)break;t[r++]=192|s>>6,t[r++]=128|63&s}else if(s<=65535){if(r+2>=o)break;t[r++]=224|s>>12,t[r++]=128|s>>6&63,t[r++]=128|63&s}else{if(r+3>=o)break;t[r++]=240|s>>18,t[r++]=128|s>>12&63,t[r++]=128|s>>6&63,t[r++]=128|63&s}}return t[r]=0,r-i}function P(e,t,r){return x(e,S,t,r)}function $(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++r)),n<=127?++t:t+=n<=2047?2:n<=65535?3:4}return t}var A,k,S,E,j,O,F,R,W,I="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function D(e,t){for(var r=e,n=r>>1,i=n+t/2;!(n>=i)&&j[n];)++n;if((r=n<<1)-e>32&&I)return I.decode(S.subarray(e,r));for(var o="",a=0;!(a>=t/2);++a){var s=E[e+2*a>>1];if(0==s)break;o+=String.fromCharCode(s)}return o}function U(e,t,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=t,i=(r-=2)<2*e.length?r/2:e.length,o=0;o<i;++o){var a=e.charCodeAt(o);E[t>>1]=a,t+=2}return E[t>>1]=0,t-n}function M(e){return 2*e.length}function z(e,t){for(var r=0,n="";!(r>=t/4);){var i=O[e+4*r>>2];if(0==i)break;if(++r,i>=65536){var o=i-65536;n+=String.fromCharCode(55296|o>>10,56320|1023&o)}else n+=String.fromCharCode(i)}return n}function N(e,t,r){if(void 0===r&&(r=2147483647),r<4)return 0;for(var n=t,i=n+r-4,o=0;o<e.length;++o){var a=e.charCodeAt(o);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++o)),O[t>>2]=a,(t+=4)+4>i)break}return O[t>>2]=0,t-n}function q(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=55296&&n<=57343&&++r,t+=4}return t}function B(e){var t=$(e)+1,r=_t(t);return r&&x(e,k,r,t),r}function L(e){A=e,i.HEAP8=k=new Int8Array(e),i.HEAP16=E=new Int16Array(e),i.HEAP32=O=new Int32Array(e),i.HEAPU8=S=new Uint8Array(e),i.HEAPU16=j=new Uint16Array(e),i.HEAPU32=F=new Uint32Array(e),i.HEAPF32=R=new Float32Array(e),i.HEAPF64=W=new Float64Array(e)}i.INITIAL_MEMORY;var V,H,G,Z=[],X=[],Y=[],J=0,K=null,Q=null;function ee(e){i.onAbort&&i.onAbort(e),_(e="Aborted("+e+")"),w=!0,e+=". Build with -s ASSERTIONS=1 for more info.";var t=new WebAssembly.RuntimeError(e);throw n(t),t}function te(e){return e.startsWith("data:application/octet-stream;base64,")}function re(e){return e.startsWith("file://")}function ne(e){try{if(e==H&&h)return new Uint8Array(h);if(s)return s(e);throw"both async and sync fetching of the wasm failed"}catch(e){ee(e)}}function ie(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var r=t.func;"number"==typeof r?void 0===t.arg?ae(r)():ae(r)(t.arg):r(void 0===t.arg?null:t.arg)}else t(i)}}i.preloadedImages={},i.preloadedAudios={},te(H="dicomiccwasm.wasm")||(G=H,H=i.locateFile?i.locateFile(G,m):m+G);var oe=[];function ae(e){var t=oe[e];return t||(e>=oe.length&&(oe.length=e+1),oe[e]=t=V.get(e)),t}var se={buffers:[null,[],[]],printChar:function(e,t){var r=se.buffers[e];0===t||10===t?((1===e?g:_)(T(r,0)),r.length=0):r.push(t)},varargs:void 0,get:function(){return se.varargs+=4,O[se.varargs-4>>2]},getStr:function(e){return C(e)},get64:function(e,t){return e}},ue={};function ce(e){for(;e.length;){var t=e.pop();e.pop()(t)}}function fe(e){return this.fromWireType(F[e>>2])}var le={},pe={},de={};function ve(e){if(void 0===e)return"_unknown";var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return t>=48&&t<=57?"_"+e:e}function me(e,t){return e=ve(e),new Function("body","return function "+e+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(t)}function he(e,t){var r=me(t,(function(e){this.name=t,this.message=e;var r=new Error(e).stack;void 0!==r&&(this.stack=this.toString()+"\n"+r.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},r}var ye=void 0;function ge(e){throw new ye(e)}function _e(e,t,r){function n(t){var n=r(t);n.length!==e.length&&ge("Mismatched type converter count");for(var i=0;i<e.length;++i)Pe(e[i],n[i])}e.forEach((function(e){de[e]=t}));var i=new Array(t.length),o=[],a=0;t.forEach((function(e,t){pe.hasOwnProperty(e)?i[t]=pe[e]:(o.push(e),le.hasOwnProperty(e)||(le[e]=[]),le[e].push((function(){i[t]=pe[e],++a===o.length&&n(i)})))})),0===o.length&&n(i)}function we(e){switch(e){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+e)}}var be=void 0;function Te(e){for(var t="",r=e;S[r];)t+=be[S[r++]];return t}var Ce=void 0;function xe(e){throw new Ce(e)}function Pe(e,t,r={}){if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");var n=t.name;if(e||xe('type "'+n+'" must have a positive integer typeid pointer'),pe.hasOwnProperty(e)){if(r.ignoreDuplicateRegistrations)return;xe("Cannot register type '"+n+"' twice")}if(pe[e]=t,delete de[e],le.hasOwnProperty(e)){var i=le[e];delete le[e],i.forEach((function(e){e()}))}}function $e(e){xe(e.$$.ptrType.registeredClass.name+" instance already deleted")}var Ae=!1;function ke(e){}function Se(e){e.count.value-=1,0===e.count.value&&function(e){e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)}(e)}function Ee(e,t,r){if(t===r)return e;if(void 0===r.baseClass)return null;var n=Ee(e,t,r.baseClass);return null===n?null:r.downcast(n)}var je={};var Oe=[];function Fe(){for(;Oe.length;){var e=Oe.pop();e.$$.deleteScheduled=!1,e.delete()}}var Re=void 0;var We={};function Ie(e,t){return t.ptrType&&t.ptr||ge("makeClassHandle requires ptr and ptrType"),!!t.smartPtrType!=!!t.smartPtr&&ge("Both smartPtrType and smartPtr must be specified"),t.count={value:1},De(Object.create(e,{$$:{value:t}}))}function De(e){return"undefined"==typeof FinalizationRegistry?(De=e=>e,e):(Ae=new FinalizationRegistry((e=>{Se(e.$$)})),De=e=>{var t=e.$$;if(t.smartPtr){var r={$$:t};Ae.register(e,r,e)}return e},ke=e=>Ae.unregister(e),De(e))}function Ue(){}function Me(e,t,r){if(void 0===e[t].overloadTable){var n=e[t];e[t]=function(){return e[t].overloadTable.hasOwnProperty(arguments.length)||xe("Function '"+r+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+e[t].overloadTable+")!"),e[t].overloadTable[arguments.length].apply(this,arguments)},e[t].overloadTable=[],e[t].overloadTable[n.argCount]=n}}function ze(e,t,r){i.hasOwnProperty(e)?((void 0===r||void 0!==i[e].overloadTable&&void 0!==i[e].overloadTable[r])&&xe("Cannot register public name '"+e+"' twice"),Me(i,e,e),i.hasOwnProperty(r)&&xe("Cannot register multiple overloads of a function with the same number of arguments ("+r+")!"),i[e].overloadTable[r]=t):(i[e]=t,void 0!==r&&(i[e].numArguments=r))}function Ne(e,t,r,n,i,o,a,s){this.name=e,this.constructor=t,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=i,this.getActualType=o,this.upcast=a,this.downcast=s,this.pureVirtualFunctions=[]}function qe(e,t,r){for(;t!==r;)t.upcast||xe("Expected null or instance of "+r.name+", got an instance of "+t.name),e=t.upcast(e),t=t.baseClass;return e}function Be(e,t){if(null===t)return this.isReference&&xe("null is not a valid "+this.name),0;t.$$||xe('Cannot pass "'+at(t)+'" as a '+this.name),t.$$.ptr||xe("Cannot pass deleted object as a pointer of type "+this.name);var r=t.$$.ptrType.registeredClass;return qe(t.$$.ptr,r,this.registeredClass)}function Le(e,t){var r;if(null===t)return this.isReference&&xe("null is not a valid "+this.name),this.isSmartPointer?(r=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,r),r):0;t.$$||xe('Cannot pass "'+at(t)+'" as a '+this.name),t.$$.ptr||xe("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&t.$$.ptrType.isConst&&xe("Cannot convert argument of type "+(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name)+" to parameter type "+this.name);var n=t.$$.ptrType.registeredClass;if(r=qe(t.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===t.$$.smartPtr&&xe("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:t.$$.smartPtrType===this?r=t.$$.smartPtr:xe("Cannot convert argument of type "+(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:r=t.$$.smartPtr;break;case 2:if(t.$$.smartPtrType===this)r=t.$$.smartPtr;else{var i=t.clone();r=this.rawShare(r,ot.toHandle((function(){i.delete()}))),null!==e&&e.push(this.rawDestructor,r)}break;default:xe("Unsupporting sharing policy")}return r}function Ve(e,t){if(null===t)return this.isReference&&xe("null is not a valid "+this.name),0;t.$$||xe('Cannot pass "'+at(t)+'" as a '+this.name),t.$$.ptr||xe("Cannot pass deleted object as a pointer of type "+this.name),t.$$.ptrType.isConst&&xe("Cannot convert argument of type "+t.$$.ptrType.name+" to parameter type "+this.name);var r=t.$$.ptrType.registeredClass;return qe(t.$$.ptr,r,this.registeredClass)}function He(e,t,r,n,i,o,a,s,u,c,f){this.name=e,this.registeredClass=t,this.isReference=r,this.isConst=n,this.isSmartPointer=i,this.pointeeType=o,this.sharingPolicy=a,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=f,i||void 0!==t.baseClass?this.toWireType=Le:n?(this.toWireType=Be,this.destructorFunction=null):(this.toWireType=Ve,this.destructorFunction=null)}function Ge(e,t,r){i.hasOwnProperty(e)||ge("Replacing nonexistant public symbol"),void 0!==i[e].overloadTable&&void 0!==r?i[e].overloadTable[r]=t:(i[e]=t,i[e].argCount=r)}function Ze(e,t,r){return e.includes("j")?function(e,t,r){var n=i["dynCall_"+e];return r&&r.length?n.apply(null,[t].concat(r)):n.call(null,t)}(e,t,r):ae(t).apply(null,r)}function Xe(e,t){var r,n,i,o=(e=Te(e)).includes("j")?(r=e,n=t,i=[],function(){return i.length=0,Object.assign(i,arguments),Ze(r,n,i)}):ae(t);return"function"!=typeof o&&xe("unknown function pointer with signature "+e+": "+t),o}var Ye=void 0;function Je(e){var t=bt(e),r=Te(t);return wt(t),r}function Ke(e,t){var r=[],n={};throw t.forEach((function e(t){n[t]||pe[t]||(de[t]?de[t].forEach(e):(r.push(t),n[t]=!0))})),new Ye(e+": "+r.map(Je).join([", "]))}function Qe(e,t){for(var r=[],n=0;n<e;n++)r.push(O[(t>>2)+n]);return r}function et(e,t){if(!(e instanceof Function))throw new TypeError("new_ called with constructor type "+typeof e+" which is not a function");var r=me(e.name||"unknownFunctionName",(function(){}));r.prototype=e.prototype;var n=new r,i=e.apply(n,t);return i instanceof Object?i:n}function tt(e,t,r,n,i){var o=t.length;o<2&&xe("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var a=null!==t[1]&&null!==r,s=!1,u=1;u<t.length;++u)if(null!==t[u]&&void 0===t[u].destructorFunction){s=!0;break}var c="void"!==t[0].name,f="",l="";for(u=0;u<o-2;++u)f+=(0!==u?", ":"")+"arg"+u,l+=(0!==u?", ":"")+"arg"+u+"Wired";var p="return function "+ve(e)+"("+f+") {\nif (arguments.length !== "+(o-2)+") {\nthrowBindingError('function "+e+" called with ' + arguments.length + ' arguments, expected "+(o-2)+" args!');\n}\n";s&&(p+="var destructors = [];\n");var d=s?"destructors":"null",v=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],m=[xe,n,i,ce,t[0],t[1]];for(a&&(p+="var thisWired = classParam.toWireType("+d+", this);\n"),u=0;u<o-2;++u)p+="var arg"+u+"Wired = argType"+u+".toWireType("+d+", arg"+u+"); // "+t[u+2].name+"\n",v.push("argType"+u),m.push(t[u+2]);if(a&&(l="thisWired"+(l.length>0?", ":"")+l),p+=(c?"var rv = ":"")+"invoker(fn"+(l.length>0?", ":"")+l+");\n",s)p+="runDestructors(destructors);\n";else for(u=a?1:2;u<t.length;++u){var h=1===u?"thisWired":"arg"+(u-2)+"Wired";null!==t[u].destructorFunction&&(p+=h+"_dtor("+h+"); // "+t[u].name+"\n",v.push(h+"_dtor"),m.push(t[u].destructorFunction))}return c&&(p+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),p+="}\n",v.push(p),et(Function,v).apply(null,m)}var rt=[],nt=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function it(e){e>4&&0==--nt[e].refcount&&(nt[e]=void 0,rt.push(e))}var ot={toValue:function(e){return e||xe("Cannot use deleted val. handle = "+e),nt[e].value},toHandle:function(e){switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var t=rt.length?rt.pop():nt.length;return nt[t]={refcount:1,value:e},t}}};function at(e){if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e}function st(e,t){switch(t){case 2:return function(e){return this.fromWireType(R[e>>2])};case 3:return function(e){return this.fromWireType(W[e>>3])};default:throw new TypeError("Unknown float type: "+e)}}function ut(e,t,r){switch(t){case 0:return r?function(e){return k[e]}:function(e){return S[e]};case 1:return r?function(e){return E[e>>1]}:function(e){return j[e>>1]};case 2:return r?function(e){return O[e>>2]}:function(e){return F[e>>2]};default:throw new TypeError("Unknown integer type: "+e)}}function ct(e,t){var r=pe[e];return void 0===r&&xe(t+" has unknown type "+Je(e)),r}var ft={};function lt(e){var t=ft[e];return void 0===t?Te(e):t}var pt=[];function dt(){return"object"==typeof globalThis?globalThis:Function("return this")()}var vt=[],mt={};function ht(e){try{return y.grow(e-A.byteLength+65535>>>16),L(y.buffer),1}catch(e){}}ye=i.InternalError=he(Error,"InternalError"),function(){for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);be=e}(),Ce=i.BindingError=he(Error,"BindingError"),Ue.prototype.isAliasOf=function(e){if(!(this instanceof Ue))return!1;if(!(e instanceof Ue))return!1;for(var t=this.$$.ptrType.registeredClass,r=this.$$.ptr,n=e.$$.ptrType.registeredClass,i=e.$$.ptr;t.baseClass;)r=t.upcast(r),t=t.baseClass;for(;n.baseClass;)i=n.upcast(i),n=n.baseClass;return t===n&&r===i},Ue.prototype.clone=function(){if(this.$$.ptr||$e(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e,t=De(Object.create(Object.getPrototypeOf(this),{$$:{value:(e=this.$$,{count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType})}}));return t.$$.count.value+=1,t.$$.deleteScheduled=!1,t},Ue.prototype.delete=function(){this.$$.ptr||$e(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&xe("Object already scheduled for deletion"),ke(this),Se(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},Ue.prototype.isDeleted=function(){return!this.$$.ptr},Ue.prototype.deleteLater=function(){return this.$$.ptr||$e(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&xe("Object already scheduled for deletion"),Oe.push(this),1===Oe.length&&Re&&Re(Fe),this.$$.deleteScheduled=!0,this},i.getInheritedInstanceCount=function(){return Object.keys(We).length},i.getLiveInheritedInstances=function(){var e=[];for(var t in We)We.hasOwnProperty(t)&&e.push(We[t]);return e},i.flushPendingDeletes=Fe,i.setDelayFunction=function(e){Re=e,Oe.length&&Re&&Re(Fe)},He.prototype.getPointee=function(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},He.prototype.destructor=function(e){this.rawDestructor&&this.rawDestructor(e)},He.prototype.argPackAdvance=8,He.prototype.readValueFromPointer=fe,He.prototype.deleteObject=function(e){null!==e&&e.delete()},He.prototype.fromWireType=function(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var r=function(e,t){return t=function(e,t){for(void 0===t&&xe("ptr should not be undefined");e.baseClass;)t=e.upcast(t),e=e.baseClass;return t}(e,t),We[t]}(this.registeredClass,t);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=t,r.$$.smartPtr=e,r.clone();var n=r.clone();return this.destructor(e),n}function i(){return this.isSmartPointer?Ie(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):Ie(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var o,a=this.registeredClass.getActualType(t),s=je[a];if(!s)return i.call(this);o=this.isConst?s.constPointerType:s.pointerType;var u=Ee(t,this.registeredClass,o.registeredClass);return null===u?i.call(this):this.isSmartPointer?Ie(o.registeredClass.instancePrototype,{ptrType:o,ptr:u,smartPtrType:this,smartPtr:e}):Ie(o.registeredClass.instancePrototype,{ptrType:o,ptr:u})},Ye=i.UnboundTypeError=he(Error,"UnboundTypeError"),i.count_emval_handles=function(){for(var e=0,t=5;t<nt.length;++t)void 0!==nt[t]&&++e;return e},i.get_first_emval=function(){for(var e=5;e<nt.length;++e)if(void 0!==nt[e])return nt[e];return null};var yt,gt={a:function(e,t,r,n){ee("Assertion failed: "+C(e)+", at: "+[t?C(t):"unknown filename",r,n?C(n):"unknown function"])},j:function(e,t,r){return se.varargs=r,0},A:function(e,t,r){return se.varargs=r,0},B:function(e,t,r){se.varargs=r},w:function(e){},x:function(e){},D:function(e){var t=ue[e];delete ue[e];var r=t.rawConstructor,n=t.rawDestructor,i=t.fields;_e([e],i.map((function(e){return e.getterReturnType})).concat(i.map((function(e){return e.setterArgumentType}))),(function(e){var o={};return i.forEach((function(t,r){var n=t.fieldName,a=e[r],s=t.getter,u=t.getterContext,c=e[r+i.length],f=t.setter,l=t.setterContext;o[n]={read:function(e){return a.fromWireType(s(u,e))},write:function(e,t){var r=[];f(l,e,c.toWireType(r,t)),ce(r)}}})),[{name:t.name,fromWireType:function(e){var t={};for(var r in o)t[r]=o[r].read(e);return n(e),t},toWireType:function(e,t){for(var i in o)if(!(i in t))throw new TypeError('Missing field: "'+i+'"');var a=r();for(i in o)o[i].write(a,t[i]);return null!==e&&e.push(n,a),a},argPackAdvance:8,readValueFromPointer:fe,destructorFunction:n}]}))},s:function(e,t,r,n,i){},H:function(e,t,r,n,i){var o=we(r);Pe(e,{name:t=Te(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?n:i},argPackAdvance:8,readValueFromPointer:function(e){var n;if(1===r)n=k;else if(2===r)n=E;else{if(4!==r)throw new TypeError("Unknown boolean type size: "+t);n=O}return this.fromWireType(n[e>>o])},destructorFunction:null})},u:function(e,t,r,n,i,o,a,s,u,c,f,l,p){f=Te(f),o=Xe(i,o),s&&(s=Xe(a,s)),c&&(c=Xe(u,c)),p=Xe(l,p);var d=ve(f);ze(d,(function(){Ke("Cannot construct "+f+" due to unbound types",[n])})),_e([e,t,r],n?[n]:[],(function(t){var r,i;t=t[0],i=n?(r=t.registeredClass).instancePrototype:Ue.prototype;var a=me(d,(function(){if(Object.getPrototypeOf(this)!==u)throw new Ce("Use 'new' to construct "+f);if(void 0===l.constructor_body)throw new Ce(f+" has no accessible constructor");var e=l.constructor_body[arguments.length];if(void 0===e)throw new Ce("Tried to invoke ctor of "+f+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(l.constructor_body).toString()+") parameters instead!");return e.apply(this,arguments)})),u=Object.create(i,{constructor:{value:a}});a.prototype=u;var l=new Ne(f,a,u,p,r,o,s,c),v=new He(f,l,!0,!1,!1),m=new He(f+"*",l,!1,!1,!1),h=new He(f+" const*",l,!1,!0,!1);return je[e]={pointerType:m,constPointerType:h},Ge(d,a),[v,m,h]}))},q:function(e,t,r,n,i,o){t>0||ee(undefined);var a=Qe(t,r);i=Xe(n,i),_e([],[e],(function(e){var r="constructor "+(e=e[0]).name;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[t-1])throw new Ce("Cannot register multiple constructors with identical number of parameters ("+(t-1)+") for class '"+e.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return e.registeredClass.constructor_body[t-1]=()=>{Ke("Cannot construct "+e.name+" due to unbound types",a)},_e([],a,(function(n){return n.splice(1,0,null),e.registeredClass.constructor_body[t-1]=tt(r,n,null,i,o),[]})),[]}))},g:function(e,t,r,n,i,o,a,s){var u=Qe(r,n);t=Te(t),o=Xe(i,o),_e([],[e],(function(e){var n=(e=e[0]).name+"."+t;function i(){Ke("Cannot call "+n+" due to unbound types",u)}t.startsWith("@@")&&(t=Symbol[t.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(t);var c=e.registeredClass.instancePrototype,f=c[t];return void 0===f||void 0===f.overloadTable&&f.className!==e.name&&f.argCount===r-2?(i.argCount=r-2,i.className=e.name,c[t]=i):(Me(c,t,n),c[t].overloadTable[r-2]=i),_e([],u,(function(i){var s=tt(n,i,e,o,a);return void 0===c[t].overloadTable?(s.argCount=r-2,c[t]=s):c[t].overloadTable[r-2]=s,[]})),[]}))},G:function(e,t){Pe(e,{name:t=Te(t),fromWireType:function(e){var t=ot.toValue(e);return it(e),t},toWireType:function(e,t){return ot.toHandle(t)},argPackAdvance:8,readValueFromPointer:fe,destructorFunction:null})},k:function(e,t,r){var n=we(r);Pe(e,{name:t=Te(t),fromWireType:function(e){return e},toWireType:function(e,t){return t},argPackAdvance:8,readValueFromPointer:st(t,n),destructorFunction:null})},n:function(e,t,r,n,i,o){var a=Qe(t,r);e=Te(e),i=Xe(n,i),ze(e,(function(){Ke("Cannot call "+e+" due to unbound types",a)}),t-1),_e([],a,(function(r){var n=[r[0],null].concat(r.slice(1));return Ge(e,tt(e,n,null,i,o),t-1),[]}))},c:function(e,t,r,n,i){t=Te(t),-1===i&&(i=4294967295);var o=we(r),a=e=>e;if(0===n){var s=32-8*r;a=e=>e<<s>>>s}var u=t.includes("unsigned");Pe(e,{name:t,fromWireType:a,toWireType:u?function(e,t){return this.name,t>>>0}:function(e,t){return this.name,t},argPackAdvance:8,readValueFromPointer:ut(t,o,0!==n),destructorFunction:null})},b:function(e,t,r){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];function i(e){var t=F,r=t[e>>=2],i=t[e+1];return new n(A,i,r)}Pe(e,{name:r=Te(r),fromWireType:i,argPackAdvance:8,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},l:function(e,t){var r="std::string"===(t=Te(t));Pe(e,{name:t,fromWireType:function(e){var t,n=F[e>>2];if(r)for(var i=e+4,o=0;o<=n;++o){var a=e+4+o;if(o==n||0==S[a]){var s=C(i,a-i);void 0===t?t=s:(t+=String.fromCharCode(0),t+=s),i=a+1}}else{var u=new Array(n);for(o=0;o<n;++o)u[o]=String.fromCharCode(S[e+4+o]);t=u.join("")}return wt(e),t},toWireType:function(e,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var n="string"==typeof t;n||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||xe("Cannot pass non-string to std::string");var i=(r&&n?()=>$(t):()=>t.length)(),o=_t(4+i+1);if(F[o>>2]=i,r&&n)P(t,o+4,i+1);else if(n)for(var a=0;a<i;++a){var s=t.charCodeAt(a);s>255&&(wt(o),xe("String has UTF-16 code units that do not fit in 8 bits")),S[o+4+a]=s}else for(a=0;a<i;++a)S[o+4+a]=t[a];return null!==e&&e.push(wt,o),o},argPackAdvance:8,readValueFromPointer:fe,destructorFunction:function(e){wt(e)}})},f:function(e,t,r){var n,i,o,a,s;r=Te(r),2===t?(n=D,i=U,a=M,o=()=>j,s=1):4===t&&(n=z,i=N,a=q,o=()=>F,s=2),Pe(e,{name:r,fromWireType:function(e){for(var r,i=F[e>>2],a=o(),u=e+4,c=0;c<=i;++c){var f=e+4+c*t;if(c==i||0==a[f>>s]){var l=n(u,f-u);void 0===r?r=l:(r+=String.fromCharCode(0),r+=l),u=f+t}}return wt(e),r},toWireType:function(e,n){"string"!=typeof n&&xe("Cannot pass non-string to C++ string type "+r);var o=a(n),u=_t(4+o+t);return F[u>>2]=o>>s,i(n,u+4,o+t),null!==e&&e.push(wt,u),u},argPackAdvance:8,readValueFromPointer:fe,destructorFunction:function(e){wt(e)}})},R:function(e,t,r,n,i,o){ue[e]={name:Te(t),rawConstructor:Xe(r,n),rawDestructor:Xe(i,o),fields:[]}},e:function(e,t,r,n,i,o,a,s,u,c){ue[e].fields.push({fieldName:Te(t),getterReturnType:r,getter:Xe(n,i),getterContext:o,setterArgumentType:a,setter:Xe(s,u),setterContext:c})},I:function(e,t){Pe(e,{isVoid:!0,name:t=Te(t),argPackAdvance:0,fromWireType:function(){},toWireType:function(e,t){}})},O:function(e,t,r){e=ot.toValue(e),t=ct(t,"emval::as");var n=[],i=ot.toHandle(n);return O[r>>2]=i,t.toWireType(n,e)},K:function(e,t,r,n){(e=pt[e])(t=ot.toValue(t),r=lt(r),null,n)},d:it,p:function(e){return 0===e?ot.toHandle(dt()):(e=lt(e),ot.toHandle(dt()[e]))},L:function(e,t){var r=function(e,t){for(var r=new Array(e),n=0;n<e;++n)r[n]=ct(O[(t>>2)+n],"parameter "+n);return r}(e,t),n=r[0],i=n.name+"_$"+r.slice(1).map((function(e){return e.name})).join("_")+"$",o=vt[i];if(void 0!==o)return o;for(var a=["retType"],s=[n],u="",c=0;c<e-1;++c)u+=(0!==c?", ":"")+"arg"+c,a.push("argType"+c),s.push(r[1+c]);var f,l,p="return function "+ve("methodCaller_"+i)+"(handle, name, destructors, args) {\n",d=0;for(c=0;c<e-1;++c)p+=" var arg"+c+" = argType"+c+".readValueFromPointer(args"+(d?"+"+d:"")+");\n",d+=r[c+1].argPackAdvance;for(p+=" var rv = handle[name]("+u+");\n",c=0;c<e-1;++c)r[c+1].deleteObject&&(p+=" argType"+c+".deleteObject(arg"+c+");\n");return n.isVoid||(p+=" return retType.toWireType(destructors, rv);\n"),p+="};\n",a.push(p),f=et(Function,a).apply(null,s),l=pt.length,pt.push(f),o=l,vt[i]=o,o},P:function(e,t){return e=ot.toValue(e),t=ot.toValue(t),ot.toHandle(e[t])},m:function(e){e>4&&(nt[e].refcount+=1)},o:function(e,t,r,n){e=ot.toValue(e);var o=mt[t];return o||(o=function(e){for(var t="",r=0;r<e;++r)t+=(0!==r?", ":"")+"arg"+r;var n="return function emval_allocator_"+e+"(constructor, argTypes, args) {\n";for(r=0;r<e;++r)n+="var argType"+r+" = requireRegisteredType(Module['HEAP32'][(argTypes >>> 2) + "+r+'], "parameter '+r+'");\nvar arg'+r+" = argType"+r+".readValueFromPointer(args);\nargs += argType"+r+"['argPackAdvance'];\n";return n+="var obj = new constructor("+t+");\nreturn valueToHandle(obj);\n}\n",new Function("requireRegisteredType","Module","valueToHandle",n)(ct,i,ot.toHandle)}(t),mt[t]=o),o(e,r,n)},Q:function(e){return ot.toHandle(lt(e))},N:function(e){ce(ot.toValue(e)),it(e)},M:function(e,t){var r=(e=ct(e,"_emval_take_value")).readValueFromPointer(t);return ot.toHandle(r)},C:function(e,t){var r=new Date(1e3*O[e>>2]);O[t>>2]=r.getUTCSeconds(),O[t+4>>2]=r.getUTCMinutes(),O[t+8>>2]=r.getUTCHours(),O[t+12>>2]=r.getUTCDate(),O[t+16>>2]=r.getUTCMonth(),O[t+20>>2]=r.getUTCFullYear()-1900,O[t+24>>2]=r.getUTCDay();var n=Date.UTC(r.getUTCFullYear(),0,1,0,0,0,0),i=(r.getTime()-n)/864e5|0;O[t+28>>2]=i},E:function e(t,r,n){e.called||(e.called=!0,function(e,t,r){var n=(new Date).getFullYear(),i=new Date(n,0,1),o=new Date(n,6,1),a=i.getTimezoneOffset(),s=o.getTimezoneOffset(),u=Math.max(a,s);function c(e){var t=e.toTimeString().match(/\(([A-Za-z ]+)\)$/);return t?t[1]:"GMT"}O[e>>2]=60*u,O[t>>2]=Number(a!=s);var f=c(i),l=c(o),p=B(f),d=B(l);s<a?(O[r>>2]=p,O[r+4>>2]=d):(O[r>>2]=d,O[r+4>>2]=p)}(t,r,n))},h:function(){ee("")},F:function(e,t,r){S.copyWithin(e,t,t+r)},v:function(e){var t,r=S.length,n=2147483648;if((e>>>=0)>n)return!1;for(var i=1;i<=4;i*=2){var o=r*(1+.2/i);if(o=Math.min(o,e+100663296),ht(Math.min(n,((t=Math.max(e,o))%65536>0&&(t+=65536-t%65536),t))))return!0}return!1},i:function(e){return 0},z:function(e,t,r,n){var i=se.getStreamFromFD(e),o=se.doReadv(i,t,r);return O[n>>2]=o,0},r:function(e,t,r,n,i){},y:function(e,t,r,n){for(var i=0,o=0;o<r;o++){var a=O[t>>2],s=O[t+4>>2];t+=8;for(var u=0;u<s;u++)se.printChar(e,S[a+u]);i+=s}return O[n>>2]=i,0},t:function(e){},J:function(e){var t=Date.now()/1e3|0;return e&&(O[e>>2]=t),t}},_t=(function(){var e={a:gt};function t(e,t){var r,n=e.exports;i.asm=n,L((y=i.asm.S).buffer),V=i.asm.V,r=i.asm.T,X.unshift(r),function(e){if(J--,i.monitorRunDependencies&&i.monitorRunDependencies(J),0==J&&(null!==K&&(clearInterval(K),K=null),Q)){var t=Q;Q=null,t()}}()}function r(e){t(e.instance)}function o(t){return function(){if(!h&&(d||v)){if("function"==typeof fetch&&!re(H))return fetch(H,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+H+"'";return e.arrayBuffer()})).catch((function(){return ne(H)}));if(a)return new Promise((function(e,t){a(H,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return ne(H)}))}().then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){_("failed to asynchronously prepare wasm: "+e),ee(e)}))}if(J++,i.monitorRunDependencies&&i.monitorRunDependencies(J),i.instantiateWasm)try{return i.instantiateWasm(e,t)}catch(e){return _("Module.instantiateWasm callback failed with error: "+e),!1}(h||"function"!=typeof WebAssembly.instantiateStreaming||te(H)||re(H)||"function"!=typeof fetch?o(r):fetch(H,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(r,(function(e){return _("wasm streaming compile failed: "+e),_("falling back to ArrayBuffer instantiation"),o(r)}))}))).catch(n)}(),i.___wasm_call_ctors=function(){return(i.___wasm_call_ctors=i.asm.T).apply(null,arguments)},i._malloc=function(){return(_t=i._malloc=i.asm.U).apply(null,arguments)}),wt=i._free=function(){return(wt=i._free=i.asm.W).apply(null,arguments)},bt=i.___getTypeName=function(){return(bt=i.___getTypeName=i.asm.X).apply(null,arguments)},Tt=(i.___embind_register_native_and_builtin_types=function(){return(i.___embind_register_native_and_builtin_types=i.asm.Y).apply(null,arguments)},i.stackSave=function(){return(Tt=i.stackSave=i.asm.Z).apply(null,arguments)}),Ct=i.stackRestore=function(){return(Ct=i.stackRestore=i.asm._).apply(null,arguments)},xt=i.stackAlloc=function(){return(xt=i.stackAlloc=i.asm.$).apply(null,arguments)};function Pt(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function $t(e){function r(){yt||(yt=!0,i.calledRun=!0,w||(ie(X),t(i),i.onRuntimeInitialized&&i.onRuntimeInitialized(),function(){if(i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;)e=i.postRun.shift(),Y.unshift(e);var e;ie(Y)}()))}e=e||p,J>0||(function(){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)e=i.preRun.shift(),Z.unshift(e);var e;ie(Z)}(),J>0||(i.setStatus?(i.setStatus("Running..."),setTimeout((function(){setTimeout((function(){i.setStatus("")}),1),r()}),1)):r()))}if(i.dynCall_jiji=function(){return(i.dynCall_jiji=i.asm.aa).apply(null,arguments)},i.ccall=function(e,t,r,n,o){var a={string:function(e){var t=0;if(null!=e&&0!==e){var r=1+(e.length<<2);P(e,t=xt(r),r)}return t},array:function(e){var t=xt(e.length);return function(e,t){k.set(e,t)}(e,t),t}},s=function(e){return i["_"+e]}(e),u=[],c=0;if(n)for(var f=0;f<n.length;f++){var l=a[r[f]];l?(0===c&&(c=Tt()),u[f]=l(n[f])):u[f]=n[f]}var p=s.apply(null,u);return function(e){return 0!==c&&Ct(c),function(e){return"string"===t?C(e):"boolean"===t?Boolean(e):e}(e)}(p)},Q=function e(){yt||$t(),yt||(Q=e)},i.run=$t,i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);i.preInit.length>0;)i.preInit.pop()();return $t(),e.ready});"object"==typeof t&&"object"==typeof e?e.exports=n:"function"==typeof define&&define.amd?define([],(function(){return n})):"object"==typeof t&&(t.dicomicc=n)},3476:module=>{"use strict";const toBytes=e=>[...e].map((e=>e.charCodeAt(0))),xpiZipFilename=toBytes("META-INF/mozilla.rsa"),oxmlContentTypes=toBytes("[Content_Types].xml"),oxmlRels=toBytes("_rels/.rels");function readUInt64LE(e,t=0){let r=e[t],n=1,i=0;for(;++i<8;)n*=256,r+=e[t+i]*n;return r}const fileType=e=>{if(!(e instanceof Uint8Array||e instanceof ArrayBuffer||Buffer.isBuffer(e)))throw new TypeError(`Expected the \`input\` argument to be of type \`Uint8Array\` or \`Buffer\` or \`ArrayBuffer\`, got \`${typeof e}\``);const t=e instanceof Uint8Array?e:new Uint8Array(e);if(!(t&&t.length>1))return null;const r=(e,r)=>{r=Object.assign({offset:0},r);for(let n=0;n<e.length;n++)if(r.mask){if(e[n]!==(r.mask[n]&t[n+r.offset]))return!1}else if(e[n]!==t[n+r.offset])return!1;return!0},n=(e,t)=>r(toBytes(e),t);if(r([255,216,255]))return{ext:"jpg",mime:"image/jpeg"};if(r([137,80,78,71,13,10,26,10]))return{ext:"png",mime:"image/png"};if(r([71,73,70]))return{ext:"gif",mime:"image/gif"};if(r([87,69,66,80],{offset:8}))return{ext:"webp",mime:"image/webp"};if(r([70,76,73,70]))return{ext:"flif",mime:"image/flif"};if((r([73,73,42,0])||r([77,77,0,42]))&&r([67,82],{offset:8}))return{ext:"cr2",mime:"image/x-canon-cr2"};if(r([73,73,42,0])||r([77,77,0,42]))return{ext:"tif",mime:"image/tiff"};if(r([66,77]))return{ext:"bmp",mime:"image/bmp"};if(r([73,73,188]))return{ext:"jxr",mime:"image/vnd.ms-photo"};if(r([56,66,80,83]))return{ext:"psd",mime:"image/vnd.adobe.photoshop"};if(r([80,75,3,4])){if(r([109,105,109,101,116,121,112,101,97,112,112,108,105,99,97,116,105,111,110,47,101,112,117,98,43,122,105,112],{offset:30}))return{ext:"epub",mime:"application/epub+zip"};if(r(xpiZipFilename,{offset:30}))return{ext:"xpi",mime:"application/x-xpinstall"};if(n("mimetypeapplication/vnd.oasis.opendocument.text",{offset:30}))return{ext:"odt",mime:"application/vnd.oasis.opendocument.text"};if(n("mimetypeapplication/vnd.oasis.opendocument.spreadsheet",{offset:30}))return{ext:"ods",mime:"application/vnd.oasis.opendocument.spreadsheet"};if(n("mimetypeapplication/vnd.oasis.opendocument.presentation",{offset:30}))return{ext:"odp",mime:"application/vnd.oasis.opendocument.presentation"};const e=(e,t=0)=>e.findIndex(((e,r,n)=>r>=t&&80===n[r]&&75===n[r+1]&&3===n[r+2]&&4===n[r+3]));let i=0,o=!1,a=null;do{const s=i+30;if(o||(o=r(oxmlContentTypes,{offset:s})||r(oxmlRels,{offset:s})),a||(n("word/",{offset:s})?a={ext:"docx",mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document"}:n("ppt/",{offset:s})?a={ext:"pptx",mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation"}:n("xl/",{offset:s})&&(a={ext:"xlsx",mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"})),o&&a)return a;i=e(t,s)}while(i>=0);if(a)return a}if(r([80,75])&&(3===t[2]||5===t[2]||7===t[2])&&(4===t[3]||6===t[3]||8===t[3]))return{ext:"zip",mime:"application/zip"};if(r([117,115,116,97,114],{offset:257}))return{ext:"tar",mime:"application/x-tar"};if(r([82,97,114,33,26,7])&&(0===t[6]||1===t[6]))return{ext:"rar",mime:"application/x-rar-compressed"};if(r([31,139,8]))return{ext:"gz",mime:"application/gzip"};if(r([66,90,104]))return{ext:"bz2",mime:"application/x-bzip2"};if(r([55,122,188,175,39,28]))return{ext:"7z",mime:"application/x-7z-compressed"};if(r([120,1]))return{ext:"dmg",mime:"application/x-apple-diskimage"};if(r([51,103,112,53])||r([0,0,0])&&r([102,116,121,112],{offset:4})&&(r([109,112,52,49],{offset:8})||r([109,112,52,50],{offset:8})||r([105,115,111,109],{offset:8})||r([105,115,111,50],{offset:8})||r([109,109,112,52],{offset:8})||r([77,52,86],{offset:8})||r([100,97,115,104],{offset:8})))return{ext:"mp4",mime:"video/mp4"};if(r([77,84,104,100]))return{ext:"mid",mime:"audio/midi"};if(r([26,69,223,163])){const e=t.subarray(4,4100),r=e.findIndex(((e,t,r)=>66===r[t]&&130===r[t+1]));if(-1!==r){const t=r+3,n=r=>[...r].every(((r,n)=>e[t+n]===r.charCodeAt(0)));if(n("matroska"))return{ext:"mkv",mime:"video/x-matroska"};if(n("webm"))return{ext:"webm",mime:"video/webm"}}}if(r([0,0,0,20,102,116,121,112,113,116,32,32])||r([102,114,101,101],{offset:4})||r([102,116,121,112,113,116,32,32],{offset:4})||r([109,100,97,116],{offset:4})||r([109,111,111,118],{offset:4})||r([119,105,100,101],{offset:4}))return{ext:"mov",mime:"video/quicktime"};if(r([82,73,70,70])){if(r([65,86,73],{offset:8}))return{ext:"avi",mime:"video/vnd.avi"};if(r([87,65,86,69],{offset:8}))return{ext:"wav",mime:"audio/vnd.wave"};if(r([81,76,67,77],{offset:8}))return{ext:"qcp",mime:"audio/qcelp"}}if(r([48,38,178,117,142,102,207,17,166,217])){let e=30;do{const n=readUInt64LE(t,e+16);if(r([145,7,220,183,183,169,207,17,142,230,0,192,12,32,83,101],{offset:e})){if(r([64,158,105,248,77,91,207,17,168,253,0,128,95,92,68,43],{offset:e+24}))return{ext:"wma",mime:"audio/x-ms-wma"};if(r([192,239,25,188,77,91,207,17,168,253,0,128,95,92,68,43],{offset:e+24}))return{ext:"wmv",mime:"video/x-ms-asf"};break}e+=n}while(e+24<=t.length);return{ext:"asf",mime:"application/vnd.ms-asf"}}if(r([0,0,1,186])||r([0,0,1,179]))return{ext:"mpg",mime:"video/mpeg"};if(r([102,116,121,112,51,103],{offset:4}))return{ext:"3gp",mime:"video/3gpp"};for(let e=0;e<2&&e<t.length-16;e++){if(r([73,68,51],{offset:e})||r([255,226],{offset:e,mask:[255,226]}))return{ext:"mp3",mime:"audio/mpeg"};if(r([255,228],{offset:e,mask:[255,228]}))return{ext:"mp2",mime:"audio/mpeg"};if(r([255,248],{offset:e,mask:[255,252]}))return{ext:"mp2",mime:"audio/mpeg"};if(r([255,240],{offset:e,mask:[255,252]}))return{ext:"mp4",mime:"audio/mpeg"}}if(r([102,116,121,112,77,52,65],{offset:4}))return{ext:"m4a",mime:"audio/mp4"};if(r([79,112,117,115,72,101,97,100],{offset:28}))return{ext:"opus",mime:"audio/opus"};if(r([79,103,103,83]))return r([128,116,104,101,111,114,97],{offset:28})?{ext:"ogv",mime:"video/ogg"}:r([1,118,105,100,101,111,0],{offset:28})?{ext:"ogm",mime:"video/ogg"}:r([127,70,76,65,67],{offset:28})?{ext:"oga",mime:"audio/ogg"}:r([83,112,101,101,120,32,32],{offset:28})?{ext:"spx",mime:"audio/ogg"}:r([1,118,111,114,98,105,115],{offset:28})?{ext:"ogg",mime:"audio/ogg"}:{ext:"ogx",mime:"application/ogg"};if(r([102,76,97,67]))return{ext:"flac",mime:"audio/x-flac"};if(r([77,65,67,32]))return{ext:"ape",mime:"audio/ape"};if(r([119,118,112,107]))return{ext:"wv",mime:"audio/wavpack"};if(r([35,33,65,77,82,10]))return{ext:"amr",mime:"audio/amr"};if(r([37,80,68,70]))return{ext:"pdf",mime:"application/pdf"};if(r([77,90]))return{ext:"exe",mime:"application/x-msdownload"};if((67===t[0]||70===t[0])&&r([87,83],{offset:1}))return{ext:"swf",mime:"application/x-shockwave-flash"};if(r([123,92,114,116,102]))return{ext:"rtf",mime:"application/rtf"};if(r([0,97,115,109]))return{ext:"wasm",mime:"application/wasm"};if(r([119,79,70,70])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4})))return{ext:"woff",mime:"font/woff"};if(r([119,79,70,50])&&(r([0,1,0,0],{offset:4})||r([79,84,84,79],{offset:4})))return{ext:"woff2",mime:"font/woff2"};if(r([76,80],{offset:34})&&(r([0,0,1],{offset:8})||r([1,0,2],{offset:8})||r([2,0,2],{offset:8})))return{ext:"eot",mime:"application/vnd.ms-fontobject"};if(r([0,1,0,0,0]))return{ext:"ttf",mime:"font/ttf"};if(r([79,84,84,79,0]))return{ext:"otf",mime:"font/otf"};if(r([0,0,1,0]))return{ext:"ico",mime:"image/x-icon"};if(r([0,0,2,0]))return{ext:"cur",mime:"image/x-icon"};if(r([70,76,86,1]))return{ext:"flv",mime:"video/x-flv"};if(r([37,33]))return{ext:"ps",mime:"application/postscript"};if(r([253,55,122,88,90,0]))return{ext:"xz",mime:"application/x-xz"};if(r([83,81,76,105]))return{ext:"sqlite",mime:"application/x-sqlite3"};if(r([78,69,83,26]))return{ext:"nes",mime:"application/x-nintendo-nes-rom"};if(r([67,114,50,52]))return{ext:"crx",mime:"application/x-google-chrome-extension"};if(r([77,83,67,70])||r([73,83,99,40]))return{ext:"cab",mime:"application/vnd.ms-cab-compressed"};if(r([33,60,97,114,99,104,62,10,100,101,98,105,97,110,45,98,105,110,97,114,121]))return{ext:"deb",mime:"application/x-deb"};if(r([33,60,97,114,99,104,62]))return{ext:"ar",mime:"application/x-unix-archive"};if(r([237,171,238,219]))return{ext:"rpm",mime:"application/x-rpm"};if(r([31,160])||r([31,157]))return{ext:"Z",mime:"application/x-compress"};if(r([76,90,73,80]))return{ext:"lz",mime:"application/x-lzip"};if(r([208,207,17,224,161,177,26,225]))return{ext:"msi",mime:"application/x-msi"};if(r([6,14,43,52,2,5,1,1,13,1,2,1,1,2]))return{ext:"mxf",mime:"application/mxf"};if(r([71],{offset:4})&&(r([71],{offset:192})||r([71],{offset:196})))return{ext:"mts",mime:"video/mp2t"};if(r([66,76,69,78,68,69,82]))return{ext:"blend",mime:"application/x-blender"};if(r([66,80,71,251]))return{ext:"bpg",mime:"image/bpg"};if(r([0,0,0,12,106,80,32,32,13,10,135,10])){if(r([106,112,50,32],{offset:20}))return{ext:"jp2",mime:"image/jp2"};if(r([106,112,120,32],{offset:20}))return{ext:"jpx",mime:"image/jpx"};if(r([106,112,109,32],{offset:20}))return{ext:"jpm",mime:"image/jpm"};if(r([109,106,112,50],{offset:20}))return{ext:"mj2",mime:"image/mj2"}}if(r([70,79,82,77]))return{ext:"aif",mime:"audio/aiff"};if(n("<?xml "))return{ext:"xml",mime:"application/xml"};if(r([66,79,79,75,77,79,66,73],{offset:60}))return{ext:"mobi",mime:"application/x-mobipocket-ebook"};if(r([102,116,121,112],{offset:4})){if(r([109,105,102,49],{offset:8}))return{ext:"heic",mime:"image/heif"};if(r([109,115,102,49],{offset:8}))return{ext:"heic",mime:"image/heif-sequence"};if(r([104,101,105,99],{offset:8})||r([104,101,105,120],{offset:8}))return{ext:"heic",mime:"image/heic"};if(r([104,101,118,99],{offset:8})||r([104,101,118,120],{offset:8}))return{ext:"heic",mime:"image/heic-sequence"}}return r([171,75,84,88,32,49,49,187,13,10,26,10])?{ext:"ktx",mime:"image/ktx"}:r([68,73,67,77],{offset:128})?{ext:"dcm",mime:"application/dicom"}:r([77,80,43])||r([77,80,67,75])?{ext:"mpc",mime:"audio/x-musepack"}:r([66,69,71,73,78,58])?{ext:"ics",mime:"text/calendar"}:r([103,108,84,70,2,0,0,0])?{ext:"glb",mime:"model/gltf-binary"}:r([212,195,178,161])||r([161,178,195,212])?{ext:"pcap",mime:"application/vnd.tcpdump.pcap"}:null};module.exports=fileType,module.exports.default=fileType,Object.defineProperty(fileType,"minimumBytes",{value:4100}),module.exports.stream=readableStream=>new Promise(((resolve,reject)=>{const stream=eval("require")("stream");readableStream.once("readable",(()=>{const e=new stream.PassThrough,t=readableStream.read(module.exports.minimumBytes)||readableStream.read();try{e.fileType=fileType(t)}catch(e){reject(e)}readableStream.unshift(t),stream.pipeline?resolve(stream.pipeline(readableStream,e,(()=>{}))):resolve(readableStream.pipe(e))}))}))},7e3:(e,t,r)=>{"use strict";const n=r(3476),i=new Set(["jpg","png","gif","webp","flif","cr2","tif","bmp","jxr","psd","ico","bpg","jp2","jpm","jpx","heic","cur","dcm"]),o=e=>{const t=n(e);return i.has(t&&t.ext)?t:null};e.exports=o,e.exports.default=o,Object.defineProperty(o,"minimumBytes",{value:n.minimumBytes})},3521:function(e,t,r){e.exports=r.p+"62ab5d58a2bea7b5a1dc.wasm"},5463:function(e,t,r){e.exports=r.p+"75a0c2dfe07b824c7d21.wasm"},3621:function(e,t,r){e.exports=r.p+"36785fbd89b0e17f6099.wasm"},2614:function(e,t,r){e.exports=r.p+"b6b803111e2d06a825bd.wasm"}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");r.length&&(e=r[r.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})();var __webpack_exports__={};(()=>{"use strict";const e={};let t,r=!1;function n(n){if(e[n.taskType])return console.info('attempt to register duplicate task handler "',n.taskType,'"'),!1;e[n.taskType]=n,r&&n.initialize(t.taskConfiguration)}self.onmessage=function(i){if(i.data.taskType)if(console.info(`run task "${i.data.taskType}" on web worker #${i.data.workerIndex}`),"initialize"!==i.data.taskType){if("loadWebWorkerTask"===i.data.taskType)return o=i.data,t=o.config,void self.importScripts(o.sourcePath);var o;if(e[i.data.taskType])try{e[i.data.taskType]._handler(i.data,(function(e,t){self.postMessage({taskType:i.data.taskType,status:"success",result:e,workerIndex:i.data.workerIndex},t)}))}catch(e){console.error(`task "${i.data.taskType}" failed: ${e.message}`),self.postMessage({taskType:i.data.taskType,status:"failed",result:e.message,workerIndex:i.data.workerIndex})}else console.warn("no task handler for ",i.data.taskType,taskHandler),self.postMessage({taskType:i.data.taskType,status:"failed - no task handler registered",workerIndex:i.data.workerIndex})}else!function(e){if(!r){if(t=e.config,self.registerTaskHandler=n,e.config.webWorkerTaskPaths)for(let t=0;t<e.config.webWorkerTaskPaths.length;t++)self.importScripts(e.config.webWorkerTaskPaths[t]);self.postMessage({taskType:"initialize",status:"success",result:{},workerIndex:e.workerIndex}),r=!0}}(i.data);else console.info(i.data)};var i=__webpack_require__(2169),o=__webpack_require__.n(i),a=__webpack_require__(973),s=__webpack_require__.n(a),u=__webpack_require__(2250),c=__webpack_require__.n(u),f=__webpack_require__(7552),l=__webpack_require__.n(f),p=__webpack_require__(4044),d=__webpack_require__.n(p),v=__webpack_require__(3621),m=__webpack_require__.n(v);class h{constructor(){this.codec=void 0,this.decoder=void 0}_initialize(){return c().resolve()}async decode(e){return this.codec||await this._initialize(),this.decoder.getEncodedBuffer(e.length).set(e),this.decoder.decode(),{frameBuffer:this.decoder.getDecodedBuffer(),frameInfo:this.decoder.getFrameInfo()}}}var y=__webpack_require__(8327),g=__webpack_require__.n(y),_=__webpack_require__(3521),w=__webpack_require__.n(_),b=__webpack_require__(9400),T=__webpack_require__.n(b),C=__webpack_require__(5463),x=__webpack_require__.n(C),P=__webpack_require__(9708),$=__webpack_require__.n(P),A=__webpack_require__(2614),k=__webpack_require__.n(A);class S extends class{constructor(){this.codec=void 0,this.transformers=[]}_initialize(){return c().resolve()}}{constructor(e,t){if(super(),e.length!==t.length)throw new Error(`Argument "metadata" and "iccProfiles" must have same length: ${e.length} versus ${t.length}`);this.metadata=e,this.iccProfiles=t,this.codec=null,this.transformers={}}_initialize(){if(this.codec)return c().resolve();const e=$()({locateFile:e=>l()(e).call(e,".wasm")?k():e});return new(c())(((t,r)=>{e.then((e=>{this.codec=e;for(let e=0;e<this.metadata.length;e++){const t=this.metadata[e].Columns,r=this.metadata[e].Rows,n=this.metadata[e].BitsAllocated,i=this.metadata[e].SamplesPerPixel,o=this.metadata[e].PlanarConfiguration,a=this.metadata[e].SOPInstanceUID,s=this.iccProfiles[e];this.transformers[a]=new this.codec.ColorManager({columns:t,rows:r,bitsPerSample:n,samplesPerPixel:i,planarConfiguration:o},s)}t(this.transformers)}),r)}))}async transform(e,t){let r;if(null==this.codec&&await this._initialize(),e in this.transformers){const n=this.transformers[e];r=n?n.transform(t):new(c())((function(e){e(t)}))}else r=new(c())((function(e){e(t)}));return r}}var E=__webpack_require__(7e3),j=__webpack_require__.n(E);const O=new class extends h{_initialize(){if(this.codec)return c().resolve();const e=d()({locateFile:e=>l()(e).call(e,".wasm")?m():e});return new(c())(((t,r)=>{e.then((e=>{this.codec=e,this.decoder=new e.J2KDecoder,t()}),r)}))}},F=new class extends h{_initialize(){if(this.codec)return c().resolve();const e=g()({locateFile:e=>l()(e).call(e,".wasm")?w():e});return new(c())(((t,r)=>{e.then((e=>{this.codec=e,this.decoder=new e.JpegLSDecoder,t()}),r)}))}},R=new class extends h{_initialize(){if(this.codec)return c().resolve();const e=T()({locateFile:e=>l()(e).call(e,".wasm")?x():e});return new(c())(((t,r)=>{e.then((e=>{this.codec=e,this.decoder=new e.JPEGDecoder,t()}),r)}))}};let W;n({taskType:"decodeAndTransformTask",_handler:function(e,t){const{bitsAllocated:r,columns:n,rows:i,samplesPerPixel:a,pixelRepresentation:u,frame:c,sopInstanceUID:f,metadata:l,iccProfiles:p}=e.data;(async function({bitsAllocated:e,columns:t,rows:r,samplesPerPixel:n,pixelRepresentation:i,frame:a}){let u=new Uint8Array(a);const c=j()(u),f=function(e){var t;return o()(t=e.toString(16)).call(t,2,"0").toUpperCase()};let l;if(null==c?"FF"===f(u[u.length-3])&&"D9"===f(u[u.length-2])&&"00"===f(u[u.length-1])?(l="image/jp2",u=new Uint8Array(u.buffer,0,u.length-1)):l="FF"===f(u[u.length-2])&&"D9"===f(u[u.length-1])?"image/jp2":"application/octet-stream":l="F7"===f(u[3])||"E8"===f(u[3])?"image/jls":new(s())(["image/jpeg","image/jls","image/jp2","image/jpx"]).has(c.mime)?c.mime:"application/octet-stream","application/octet-stream"===l)return console.debug(`decode uncompressed frame with media type "${l}"`),u;console.debug(`decode compressed frame with media type "${l}"`);const{frameBuffer:p,frameInfo:d}=await async function(e,t){return"image/jpeg"===e?await R.decode(t):"image/jp2"===e||"image/jpx"===e?await O.decode(t):"image/jls"===e?await F.decode(t):void 0}(l,u);if(d.bitsPerSample!==e)throw new Error(`Frame does not have expected Bits Allocated: ${d.bitsPerSample} instead of ${e}.`);if(d.height!==r)throw new Error(`Frame does not have expected Rows: ${d.height} instead of ${r}.`);if(d.width!==t)throw new Error(`Frame does not have expected Columns: ${d.width} instead of ${t}.`);if(d.componentCount!==n)throw new Error(`Frame does not have expected Samples Per Pixel: ${d.componentCount} instead of ${n}.`);if(null!=d.isSigned){const e=1===i;if(d.isSigned!==e)throw new Error(`Frame does not have expected Pixel Representation: "${d.isSigned}" instead of "${e}".`)}const v=t*r*n*(e/8);if(v!==p.length)throw new Error(`Frame value does not have expected length: ${p.length} instead of ${v}.`);return p})({bitsAllocated:r,columns:n,rows:i,samplesPerPixel:a,pixelRepresentation:u,frame:c}).then((e=>{null!=p&&p.length>0?(void 0===W&&(W=new S(l,p)),W.transform(f,e).then((e=>{t({frameData:e.buffer},[e.buffer])})).catch((e=>{throw new Error(`Failed to transform frame: ${e}`)}))):t({frameData:e.buffer},[e.buffer])})).catch((e=>{throw new Error(`Failed to decode frame: ${e}`)}))}})})()})();