UNPKG

iyunto-cornerstone-wado-image-loader

Version:
2 lines 197 kB
(()=>{var t,e,r={4559:(t,e,r)=>{t.exports=r(9842)},7552:(t,e,r)=>{t.exports=r(5697)},7647:(t,e,r)=>{t.exports=r(3798)},6028:(t,e,r)=>{t.exports=r(671)},1246:(t,e,r)=>{t.exports=r(8730)},337:(t,e,r)=>{t.exports=r(3751)},2770:(t,e,r)=>{t.exports=r(1380)},1882:(t,e,r)=>{t.exports=r(6601)},7878:(t,e,r)=>{t.exports=r(8783)},2250:(t,e,r)=>{t.exports=r(4731)},1082:(t,e,r)=>{t.exports=r(5723)},5534:(t,e,r)=>{t.exports=r(5213)},7458:t=>{var e=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function c(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new O(n||[]);return i._invoke=function(t,e,r){var n=l;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===d){if("throw"===o)throw i;return k()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=x(a,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var u=f(t,e,r);if("normal"===u.type){if(n=r.done?d:p,u.arg===v)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n=d,r.method="throw",r.arg=u.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var l="suspendedStart",p="suspendedYield",h="executing",d="completed",v={};function y(){}function g(){}function m(){}var w={};u(w,i,(function(){return this}));var b=Object.getPrototypeOf,T=b&&b(b(S([])));T&&T!==r&&n.call(T,i)&&(w=T);var P=m.prototype=y.prototype=Object.create(w);function C(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function r(o,i,a,s){var u=f(t[o],t,i);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,s)}))}s(u.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function x(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,x(t,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var o=f(n,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var i=o.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function $(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach($,this),this.reset(!0)}function S(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:k}}function k(){return{value:e,done:!0}}return g.prototype=m,u(P,"constructor",m),u(m,"constructor",g),g.displayName=u(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,u(t,s,"GeneratorFunction")),t.prototype=Object.create(P),t},t.awrap=function(t){return{__await:t}},C(_.prototype),u(_.prototype,a,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new _(c(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},C(P),u(P,s,"Generator"),u(P,i,(function(){return this})),u(P,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=S,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return s.type="throw",s.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:S(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},2043:(t,e,r)=>{t.exports=r(7458)},8327:(t,e,r)=>{var n,o=(n=(n="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0)||"/index.js",function(t){var e,o,i=void 0!==(t=t||{})?t:{};i.ready=new Promise((function(t,r){e=t,o=r}));var a,s,u,c=Object.assign({},i),f=[],l="object"==typeof window,p="function"==typeof importScripts,h="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,d="";if(h){var v=r(981),y=r(1209);d=p?y.dirname(d)+"/":"//",a=(t,e)=>(t=z(t)?new URL(t):y.normalize(t),v.readFileSync(t,e?void 0:"utf8")),u=t=>{var e=a(t,!0);return e.buffer||(e=new Uint8Array(e)),e},s=(t,e,r)=>{t=z(t)?new URL(t):y.normalize(t),v.readFile(t,(function(t,n){t?r(t):e(n.buffer)}))},process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),f=process.argv.slice(2),process.on("uncaughtException",(function(t){if(!(t instanceof q))throw t})),process.on("unhandledRejection",(function(t){throw t})),i.inspect=function(){return"[Emscripten Module object]"}}else(l||p)&&(p?d=self.location.href:"undefined"!=typeof document&&document.currentScript&&(d=document.currentScript.src),n&&(d=n),d=0!==d.indexOf("blob:")?d.substr(0,d.replace(/[?#].*/,"").lastIndexOf("/")+1):"",a=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},p&&(u=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),s=(t,e,r)=>{var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?e(n.response):r()},n.onerror=r,n.send(null)});i.print||console.log.bind(console);var g,m=i.printErr||console.warn.bind(console);Object.assign(i,c),c=null,i.arguments&&(f=i.arguments),i.thisProgram&&i.thisProgram,i.quit&&i.quit,i.wasmBinary&&(g=i.wasmBinary);var w;i.noExitRuntime;"object"!=typeof WebAssembly&&B("no native wasm support detected");var b,T,P,C,_,x,$,A,O,S=!1,k="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function j(t,e){return t?function(t,e,r){for(var n=e+r,o=e;t[o]&&!(o>=n);)++o;if(o-e>16&&t.buffer&&k)return k.decode(t.subarray(e,o));for(var i="";e<o;){var a=t[e++];if(128&a){var s=63&t[e++];if(192!=(224&a)){var u=63&t[e++];if((a=224==(240&a)?(15&a)<<12|s<<6|u:(7&a)<<18|s<<12|u<<6|63&t[e++])<65536)i+=String.fromCharCode(a);else{var c=a-65536;i+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else i+=String.fromCharCode((31&a)<<6|s)}else i+=String.fromCharCode(a)}return i}(P,t,e):""}function E(t,e,r){return function(t,e,r,n){if(!(n>0))return 0;for(var o=r,i=r+n-1,a=0;a<t.length;++a){var s=t.charCodeAt(a);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&t.charCodeAt(++a)),s<=127){if(r>=i)break;e[r++]=s}else if(s<=2047){if(r+1>=i)break;e[r++]=192|s>>6,e[r++]=128|63&s}else if(s<=65535){if(r+2>=i)break;e[r++]=224|s>>12,e[r++]=128|s>>6&63,e[r++]=128|63&s}else{if(r+3>=i)break;e[r++]=240|s>>18,e[r++]=128|s>>12&63,e[r++]=128|s>>6&63,e[r++]=128|63&s}}return e[r]=0,r-o}(t,P,e,r)}function R(t){b=t,i.HEAP8=T=new Int8Array(t),i.HEAP16=C=new Int16Array(t),i.HEAP32=x=new Int32Array(t),i.HEAPU8=P=new Uint8Array(t),i.HEAPU16=_=new Uint16Array(t),i.HEAPU32=$=new Uint32Array(t),i.HEAPF32=A=new Float32Array(t),i.HEAPF64=O=new Float64Array(t)}i.INITIAL_MEMORY;var F,D,W,I=[],L=[],U=[],M=0,H=null,V=null;function B(t){i.onAbort&&i.onAbort(t),m(t="Aborted("+t+")"),S=!0,t+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(t);throw o(e),e}function N(t){return t.startsWith("data:application/octet-stream;base64,")}function z(t){return t.startsWith("file://")}function G(t){try{if(t==D&&g)return new Uint8Array(g);if(u)return u(t);throw"both async and sync fetching of the wasm failed"}catch(t){B(t)}}function q(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function J(t){for(;t.length>0;)t.shift()(i)}function X(t){this.excPtr=t,this.ptr=t-24,this.set_type=function(t){$[this.ptr+4>>2]=t},this.get_type=function(){return $[this.ptr+4>>2]},this.set_destructor=function(t){$[this.ptr+8>>2]=t},this.get_destructor=function(){return $[this.ptr+8>>2]},this.set_refcount=function(t){x[this.ptr>>2]=t},this.set_caught=function(t){t=t?1:0,T[this.ptr+12>>0]=t},this.get_caught=function(){return 0!=T[this.ptr+12>>0]},this.set_rethrown=function(t){t=t?1:0,T[this.ptr+13>>0]=t},this.get_rethrown=function(){return 0!=T[this.ptr+13>>0]},this.init=function(t,e){this.set_adjusted_ptr(0),this.set_type(t),this.set_destructor(e),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var t=x[this.ptr>>2];x[this.ptr>>2]=t+1},this.release_ref=function(){var t=x[this.ptr>>2];return x[this.ptr>>2]=t-1,1===t},this.set_adjusted_ptr=function(t){$[this.ptr+16>>2]=t},this.get_adjusted_ptr=function(){return $[this.ptr+16>>2]},this.get_exception_ptr=function(){if(Re(this.get_type()))return $[this.excPtr>>2];var t=this.get_adjusted_ptr();return 0!==t?t:this.excPtr}}N(D="charlswasm_decode.wasm")||(W=D,D=i.locateFile?i.locateFile(W,d):d+W);var Y={};function K(t){for(;t.length;){var e=t.pop();t.pop()(e)}}function Z(t){return this.fromWireType(x[t>>2])}var Q={},tt={},et={};function rt(t){if(void 0===t)return"_unknown";var e=(t=t.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return e>=48&&e<=57?"_"+t:t}function nt(t,e){return t=rt(t),new Function("body","return function "+t+'() {\n    "use strict";    return body.apply(this, arguments);\n};\n')(e)}function ot(t,e){var r=nt(e,(function(t){this.name=e,this.message=t;var r=new Error(t).stack;void 0!==r&&(this.stack=this.toString()+"\n"+r.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},r}var it=void 0;function at(t){throw new it(t)}function st(t,e,r){function n(e){var n=r(e);n.length!==t.length&&at("Mismatched type converter count");for(var o=0;o<t.length;++o)ht(t[o],n[o])}t.forEach((function(t){et[t]=e}));var o=new Array(e.length),i=[],a=0;e.forEach(((t,e)=>{tt.hasOwnProperty(t)?o[e]=tt[t]:(i.push(t),Q.hasOwnProperty(t)||(Q[t]=[]),Q[t].push((()=>{o[e]=tt[t],++a===i.length&&n(o)})))})),0===i.length&&n(o)}function ut(t){switch(t){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+t)}}var ct=void 0;function ft(t){for(var e="",r=t;P[r];)e+=ct[P[r++]];return e}var lt=void 0;function pt(t){throw new lt(t)}function ht(t,e,r={}){if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");var n=e.name;if(t||pt('type "'+n+'" must have a positive integer typeid pointer'),tt.hasOwnProperty(t)){if(r.ignoreDuplicateRegistrations)return;pt("Cannot register type '"+n+"' twice")}if(tt[t]=e,delete et[t],Q.hasOwnProperty(t)){var o=Q[t];delete Q[t],o.forEach((t=>t()))}}function dt(t){if(!(this instanceof Wt))return!1;if(!(t instanceof Wt))return!1;for(var e=this.$$.ptrType.registeredClass,r=this.$$.ptr,n=t.$$.ptrType.registeredClass,o=t.$$.ptr;e.baseClass;)r=e.upcast(r),e=e.baseClass;for(;n.baseClass;)o=n.upcast(o),n=n.baseClass;return e===n&&r===o}function vt(t){pt(t.$$.ptrType.registeredClass.name+" instance already deleted")}var yt=!1;function gt(t){}function mt(t){t.count.value-=1,0===t.count.value&&function(t){t.smartPtr?t.smartPtrType.rawDestructor(t.smartPtr):t.ptrType.registeredClass.rawDestructor(t.ptr)}(t)}function wt(t,e,r){if(e===r)return t;if(void 0===r.baseClass)return null;var n=wt(t,e,r.baseClass);return null===n?null:r.downcast(n)}var bt={};function Tt(){return Object.keys(At).length}function Pt(){var t=[];for(var e in At)At.hasOwnProperty(e)&&t.push(At[e]);return t}var Ct=[];function _t(){for(;Ct.length;){var t=Ct.pop();t.$$.deleteScheduled=!1,t.delete()}}var xt=void 0;function $t(t){xt=t,Ct.length&&xt&&xt(_t)}var At={};function Ot(t,e){return e=function(t,e){for(void 0===e&&pt("ptr should not be undefined");t.baseClass;)e=t.upcast(e),t=t.baseClass;return e}(t,e),At[e]}function St(t,e){return e.ptrType&&e.ptr||at("makeClassHandle requires ptr and ptrType"),!!e.smartPtrType!=!!e.smartPtr&&at("Both smartPtrType and smartPtr must be specified"),e.count={value:1},jt(Object.create(t,{$$:{value:e}}))}function kt(t){var e=this.getPointee(t);if(!e)return this.destructor(t),null;var r=Ot(this.registeredClass,e);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=e,r.$$.smartPtr=t,r.clone();var n=r.clone();return this.destructor(t),n}function o(){return this.isSmartPointer?St(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:t}):St(this.registeredClass.instancePrototype,{ptrType:this,ptr:t})}var i,a=this.registeredClass.getActualType(e),s=bt[a];if(!s)return o.call(this);i=this.isConst?s.constPointerType:s.pointerType;var u=wt(e,this.registeredClass,i.registeredClass);return null===u?o.call(this):this.isSmartPointer?St(i.registeredClass.instancePrototype,{ptrType:i,ptr:u,smartPtrType:this,smartPtr:t}):St(i.registeredClass.instancePrototype,{ptrType:i,ptr:u})}function jt(t){return"undefined"==typeof FinalizationRegistry?(jt=t=>t,t):(yt=new FinalizationRegistry((t=>{mt(t.$$)})),gt=t=>yt.unregister(t),(jt=t=>{var e=t.$$;if(e.smartPtr){var r={$$:e};yt.register(t,r,t)}return t})(t))}function Et(){if(this.$$.ptr||vt(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var t,e=jt(Object.create(Object.getPrototypeOf(this),{$$:{value:(t=this.$$,{count:t.count,deleteScheduled:t.deleteScheduled,preservePointerOnDelete:t.preservePointerOnDelete,ptr:t.ptr,ptrType:t.ptrType,smartPtr:t.smartPtr,smartPtrType:t.smartPtrType})}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e}function Rt(){this.$$.ptr||vt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&pt("Object already scheduled for deletion"),gt(this),mt(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function Ft(){return!this.$$.ptr}function Dt(){return this.$$.ptr||vt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&pt("Object already scheduled for deletion"),Ct.push(this),1===Ct.length&&xt&&xt(_t),this.$$.deleteScheduled=!0,this}function Wt(){}function It(t,e,r){if(void 0===t[e].overloadTable){var n=t[e];t[e]=function(){return t[e].overloadTable.hasOwnProperty(arguments.length)||pt("Function '"+r+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+t[e].overloadTable+")!"),t[e].overloadTable[arguments.length].apply(this,arguments)},t[e].overloadTable=[],t[e].overloadTable[n.argCount]=n}}function Lt(t,e,r){i.hasOwnProperty(t)?((void 0===r||void 0!==i[t].overloadTable&&void 0!==i[t].overloadTable[r])&&pt("Cannot register public name '"+t+"' twice"),It(i,t,t),i.hasOwnProperty(r)&&pt("Cannot register multiple overloads of a function with the same number of arguments ("+r+")!"),i[t].overloadTable[r]=e):(i[t]=e,void 0!==r&&(i[t].numArguments=r))}function Ut(t,e,r,n,o,i,a,s){this.name=t,this.constructor=e,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=o,this.getActualType=i,this.upcast=a,this.downcast=s,this.pureVirtualFunctions=[]}function Mt(t,e,r){for(;e!==r;)e.upcast||pt("Expected null or instance of "+r.name+", got an instance of "+e.name),t=e.upcast(t),e=e.baseClass;return t}function Ht(t,e){if(null===e)return this.isReference&&pt("null is not a valid "+this.name),0;e.$$||pt('Cannot pass "'+fe(e)+'" as a '+this.name),e.$$.ptr||pt("Cannot pass deleted object as a pointer of type "+this.name);var r=e.$$.ptrType.registeredClass;return Mt(e.$$.ptr,r,this.registeredClass)}function Vt(t,e){var r;if(null===e)return this.isReference&&pt("null is not a valid "+this.name),this.isSmartPointer?(r=this.rawConstructor(),null!==t&&t.push(this.rawDestructor,r),r):0;e.$$||pt('Cannot pass "'+fe(e)+'" as a '+this.name),e.$$.ptr||pt("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&e.$$.ptrType.isConst&&pt("Cannot convert argument of type "+(e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name)+" to parameter type "+this.name);var n=e.$$.ptrType.registeredClass;if(r=Mt(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===e.$$.smartPtr&&pt("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?r=e.$$.smartPtr:pt("Cannot convert argument of type "+(e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:r=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)r=e.$$.smartPtr;else{var o=e.clone();r=this.rawShare(r,ce.toHandle((function(){o.delete()}))),null!==t&&t.push(this.rawDestructor,r)}break;default:pt("Unsupporting sharing policy")}return r}function Bt(t,e){if(null===e)return this.isReference&&pt("null is not a valid "+this.name),0;e.$$||pt('Cannot pass "'+fe(e)+'" as a '+this.name),e.$$.ptr||pt("Cannot pass deleted object as a pointer of type "+this.name),e.$$.ptrType.isConst&&pt("Cannot convert argument of type "+e.$$.ptrType.name+" to parameter type "+this.name);var r=e.$$.ptrType.registeredClass;return Mt(e.$$.ptr,r,this.registeredClass)}function Nt(t){return this.rawGetPointee&&(t=this.rawGetPointee(t)),t}function zt(t){this.rawDestructor&&this.rawDestructor(t)}function Gt(t){null!==t&&t.delete()}function qt(t,e,r,n,o,i,a,s,u,c,f){this.name=t,this.registeredClass=e,this.isReference=r,this.isConst=n,this.isSmartPointer=o,this.pointeeType=i,this.sharingPolicy=a,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=f,o||void 0!==e.baseClass?this.toWireType=Vt:n?(this.toWireType=Ht,this.destructorFunction=null):(this.toWireType=Bt,this.destructorFunction=null)}function Jt(t,e,r){i.hasOwnProperty(t)||at("Replacing nonexistant public symbol"),void 0!==i[t].overloadTable&&void 0!==r?i[t].overloadTable[r]=e:(i[t]=e,i[t].argCount=r)}var Xt=[];function Yt(t){var e=Xt[t];return e||(t>=Xt.length&&(Xt.length=t+1),Xt[t]=e=F.get(t)),e}function Kt(t,e,r){return t.includes("j")?function(t,e,r){var n=i["dynCall_"+t];return r&&r.length?n.apply(null,[e].concat(r)):n.call(null,e)}(t,e,r):Yt(e).apply(null,r)}function Zt(t,e){var r,n,o,i=(t=ft(t)).includes("j")?(r=t,n=e,o=[],function(){return o.length=0,Object.assign(o,arguments),Kt(r,n,o)}):Yt(e);return"function"!=typeof i&&pt("unknown function pointer with signature "+t+": "+e),i}var Qt=void 0;function te(t){var e=Oe(t),r=ft(e);return Se(e),r}function ee(t,e){var r=[],n={};throw e.forEach((function t(e){n[e]||tt[e]||(et[e]?et[e].forEach(t):(r.push(e),n[e]=!0))})),new Qt(t+": "+r.map(te).join([", "]))}function re(t,e){for(var r=[],n=0;n<t;n++)r.push($[e+4*n>>2]);return r}function ne(t,e,r,n,o){var i=e.length;i<2&&pt("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var a=null!==e[1]&&null!==r,s=!1,u=1;u<e.length;++u)if(null!==e[u]&&void 0===e[u].destructorFunction){s=!0;break}var c="void"!==e[0].name,f="",l="";for(u=0;u<i-2;++u)f+=(0!==u?", ":"")+"arg"+u,l+=(0!==u?", ":"")+"arg"+u+"Wired";var p="return function "+rt(t)+"("+f+") {\nif (arguments.length !== "+(i-2)+") {\nthrowBindingError('function "+t+" called with ' + arguments.length + ' arguments, expected "+(i-2)+" args!');\n}\n";s&&(p+="var destructors = [];\n");var h=s?"destructors":"null",d=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],v=[pt,n,o,K,e[0],e[1]];for(a&&(p+="var thisWired = classParam.toWireType("+h+", this);\n"),u=0;u<i-2;++u)p+="var arg"+u+"Wired = argType"+u+".toWireType("+h+", arg"+u+"); // "+e[u+2].name+"\n",d.push("argType"+u),v.push(e[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<e.length;++u){var y=1===u?"thisWired":"arg"+(u-2)+"Wired";null!==e[u].destructorFunction&&(p+=y+"_dtor("+y+"); // "+e[u].name+"\n",d.push(y+"_dtor"),v.push(e[u].destructorFunction))}return c&&(p+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),p+="}\n",d.push(p),function(t,e){if(!(t instanceof Function))throw new TypeError("new_ called with constructor type "+typeof t+" which is not a function");var r=nt(t.name||"unknownFunctionName",(function(){}));r.prototype=t.prototype;var n=new r,o=t.apply(n,e);return o instanceof Object?o:n}(Function,d).apply(null,v)}var oe=[],ie=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function ae(t){t>4&&0==--ie[t].refcount&&(ie[t]=void 0,oe.push(t))}function se(){for(var t=0,e=5;e<ie.length;++e)void 0!==ie[e]&&++t;return t}function ue(){for(var t=5;t<ie.length;++t)if(void 0!==ie[t])return ie[t];return null}var ce={toValue:t=>(t||pt("Cannot use deleted val. handle = "+t),ie[t].value),toHandle:t=>{switch(t){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var e=oe.length?oe.pop():ie.length;return ie[e]={refcount:1,value:t},e}}};function fe(t){if(null===t)return"null";var e=typeof t;return"object"===e||"array"===e||"function"===e?t.toString():""+t}function le(t,e){switch(e){case 2:return function(t){return this.fromWireType(A[t>>2])};case 3:return function(t){return this.fromWireType(O[t>>3])};default:throw new TypeError("Unknown float type: "+t)}}function pe(t,e,r){switch(e){case 0:return r?function(t){return T[t]}:function(t){return P[t]};case 1:return r?function(t){return C[t>>1]}:function(t){return _[t>>1]};case 2:return r?function(t){return x[t>>2]}:function(t){return $[t>>2]};default:throw new TypeError("Unknown integer type: "+t)}}var he="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function de(t,e){for(var r=t,n=r>>1,o=n+e/2;!(n>=o)&&_[n];)++n;if((r=n<<1)-t>32&&he)return he.decode(P.subarray(t,r));for(var i="",a=0;!(a>=e/2);++a){var s=C[t+2*a>>1];if(0==s)break;i+=String.fromCharCode(s)}return i}function ve(t,e,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=e,o=(r-=2)<2*t.length?r/2:t.length,i=0;i<o;++i){var a=t.charCodeAt(i);C[e>>1]=a,e+=2}return C[e>>1]=0,e-n}function ye(t){return 2*t.length}function ge(t,e){for(var r=0,n="";!(r>=e/4);){var o=x[t+4*r>>2];if(0==o)break;if(++r,o>=65536){var i=o-65536;n+=String.fromCharCode(55296|i>>10,56320|1023&i)}else n+=String.fromCharCode(o)}return n}function me(t,e,r){if(void 0===r&&(r=2147483647),r<4)return 0;for(var n=e,o=n+r-4,i=0;i<t.length;++i){var a=t.charCodeAt(i);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&t.charCodeAt(++i)),x[e>>2]=a,(e+=4)+4>o)break}return x[e>>2]=0,e-n}function we(t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);n>=55296&&n<=57343&&++r,e+=4}return e}var be={};function Te(){return"object"==typeof globalThis?globalThis:Function("return this")()}function Pe(t,e){var r=tt[t];return void 0===r&&pt(e+" has unknown type "+te(t)),r}var Ce={};function _e(t){try{return w.grow(t-b.byteLength+65535>>>16),R(w.buffer),1}catch(t){}}it=i.InternalError=ot(Error,"InternalError"),function(){for(var t=new Array(256),e=0;e<256;++e)t[e]=String.fromCharCode(e);ct=t}(),lt=i.BindingError=ot(Error,"BindingError"),Wt.prototype.isAliasOf=dt,Wt.prototype.clone=Et,Wt.prototype.delete=Rt,Wt.prototype.isDeleted=Ft,Wt.prototype.deleteLater=Dt,i.getInheritedInstanceCount=Tt,i.getLiveInheritedInstances=Pt,i.flushPendingDeletes=_t,i.setDelayFunction=$t,qt.prototype.getPointee=Nt,qt.prototype.destructor=zt,qt.prototype.argPackAdvance=8,qt.prototype.readValueFromPointer=Z,qt.prototype.deleteObject=Gt,qt.prototype.fromWireType=kt,Qt=i.UnboundTypeError=ot(Error,"UnboundTypeError"),i.count_emval_handles=se,i.get_first_emval=ue;var xe,$e={h:function(t,e,r){throw new X(t).init(e,r),t},q:function(t){var e=Y[t];delete Y[t];var r=e.rawConstructor,n=e.rawDestructor,o=e.fields;st([t],o.map((t=>t.getterReturnType)).concat(o.map((t=>t.setterArgumentType))),(t=>{var i={};return o.forEach(((e,r)=>{var n=e.fieldName,a=t[r],s=e.getter,u=e.getterContext,c=t[r+o.length],f=e.setter,l=e.setterContext;i[n]={read:t=>a.fromWireType(s(u,t)),write:(t,e)=>{var r=[];f(l,t,c.toWireType(r,e)),K(r)}}})),[{name:e.name,fromWireType:function(t){var e={};for(var r in i)e[r]=i[r].read(t);return n(t),e},toWireType:function(t,e){for(var o in i)if(!(o in e))throw new TypeError('Missing field:  "'+o+'"');var a=r();for(o in i)i[o].write(a,e[o]);return null!==t&&t.push(n,a),a},argPackAdvance:8,readValueFromPointer:Z,destructorFunction:n}]}))},r:function(t,e,r,n,o){},w:function(t,e,r,n,o){var i=ut(r);ht(t,{name:e=ft(e),fromWireType:function(t){return!!t},toWireType:function(t,e){return e?n:o},argPackAdvance:8,readValueFromPointer:function(t){var n;if(1===r)n=T;else if(2===r)n=C;else{if(4!==r)throw new TypeError("Unknown boolean type size: "+e);n=x}return this.fromWireType(n[t>>i])},destructorFunction:null})},p:function(t,e,r,n,o,i,a,s,u,c,f,l,p){f=ft(f),i=Zt(o,i),s&&(s=Zt(a,s)),c&&(c=Zt(u,c)),p=Zt(l,p);var h=rt(f);Lt(h,(function(){ee("Cannot construct "+f+" due to unbound types",[n])})),st([t,e,r],n?[n]:[],(function(e){var r,o;e=e[0],o=n?(r=e.registeredClass).instancePrototype:Wt.prototype;var a=nt(h,(function(){if(Object.getPrototypeOf(this)!==u)throw new lt("Use 'new' to construct "+f);if(void 0===l.constructor_body)throw new lt(f+" has no accessible constructor");var t=l.constructor_body[arguments.length];if(void 0===t)throw new lt("Tried to invoke ctor of "+f+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(l.constructor_body).toString()+") parameters instead!");return t.apply(this,arguments)})),u=Object.create(o,{constructor:{value:a}});a.prototype=u;var l=new Ut(f,a,u,p,r,i,s,c),d=new qt(f,l,!0,!1,!1),v=new qt(f+"*",l,!1,!1,!1),y=new qt(f+" const*",l,!1,!0,!1);return bt[t]={pointerType:v,constPointerType:y},Jt(h,a),[d,v,y]}))},o:function(t,e,r,n,o,i){var a;e>0||B(a);var s=re(e,r);o=Zt(n,o),st([],[t],(function(t){var r="constructor "+(t=t[0]).name;if(void 0===t.registeredClass.constructor_body&&(t.registeredClass.constructor_body=[]),void 0!==t.registeredClass.constructor_body[e-1])throw new lt("Cannot register multiple constructors with identical number of parameters ("+(e-1)+") for class '"+t.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return t.registeredClass.constructor_body[e-1]=()=>{ee("Cannot construct "+t.name+" due to unbound types",s)},st([],s,(function(n){return n.splice(1,0,null),t.registeredClass.constructor_body[e-1]=ne(r,n,null,o,i),[]})),[]}))},c:function(t,e,r,n,o,i,a,s){var u=re(r,n);e=ft(e),i=Zt(o,i),st([],[t],(function(t){var n=(t=t[0]).name+"."+e;function o(){ee("Cannot call "+n+" due to unbound types",u)}e.startsWith("@@")&&(e=Symbol[e.substring(2)]),s&&t.registeredClass.pureVirtualFunctions.push(e);var c=t.registeredClass.instancePrototype,f=c[e];return void 0===f||void 0===f.overloadTable&&f.className!==t.name&&f.argCount===r-2?(o.argCount=r-2,o.className=t.name,c[e]=o):(It(c,e,n),c[e].overloadTable[r-2]=o),st([],u,(function(o){var s=ne(n,o,t,i,a);return void 0===c[e].overloadTable?(s.argCount=r-2,c[e]=s):c[e].overloadTable[r-2]=s,[]})),[]}))},v:function(t,e){ht(t,{name:e=ft(e),fromWireType:function(t){var e=ce.toValue(t);return ae(t),e},toWireType:function(t,e){return ce.toHandle(e)},argPackAdvance:8,readValueFromPointer:Z,destructorFunction:null})},k:function(t,e,r){var n=ut(r);ht(t,{name:e=ft(e),fromWireType:function(t){return t},toWireType:function(t,e){return e},argPackAdvance:8,readValueFromPointer:le(e,n),destructorFunction:null})},e:function(t,e,r,n,o,i){var a=re(e,r);t=ft(t),o=Zt(n,o),Lt(t,(function(){ee("Cannot call "+t+" due to unbound types",a)}),e-1),st([],a,(function(r){var n=[r[0],null].concat(r.slice(1));return Jt(t,ne(t,n,null,o,i),e-1),[]}))},b:function(t,e,r,n,o){e=ft(e),-1===o&&(o=4294967295);var i=ut(r),a=t=>t;if(0===n){var s=32-8*r;a=t=>t<<s>>>s}var u=e.includes("unsigned");ht(t,{name:e,fromWireType:a,toWireType:u?function(t,e){return this.name,e>>>0}:function(t,e){return this.name,e},argPackAdvance:8,readValueFromPointer:pe(e,i,0!==n),destructorFunction:null})},a:function(t,e,r){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function o(t){var e=$,r=e[t>>=2],o=e[t+1];return new n(b,o,r)}ht(t,{name:r=ft(r),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},j:function(t,e){var r="std::string"===(e=ft(e));ht(t,{name:e,fromWireType:function(t){var e,n=$[t>>2],o=t+4;if(r)for(var i=o,a=0;a<=n;++a){var s=o+a;if(a==n||0==P[s]){var u=j(i,s-i);void 0===e?e=u:(e+=String.fromCharCode(0),e+=u),i=s+1}}else{var c=new Array(n);for(a=0;a<n;++a)c[a]=String.fromCharCode(P[o+a]);e=c.join("")}return Se(t),e},toWireType:function(t,e){var n;e instanceof ArrayBuffer&&(e=new Uint8Array(e));var o="string"==typeof e;o||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||pt("Cannot pass non-string to std::string"),n=r&&o?function(t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++r):e+=3}return e}(e):e.length;var i=Ae(4+n+1),a=i+4;if($[i>>2]=n,r&&o)E(e,a,n+1);else if(o)for(var s=0;s<n;++s){var u=e.charCodeAt(s);u>255&&(Se(a),pt("String has UTF-16 code units that do not fit in 8 bits")),P[a+s]=u}else for(s=0;s<n;++s)P[a+s]=e[s];return null!==t&&t.push(Se,i),i},argPackAdvance:8,readValueFromPointer:Z,destructorFunction:function(t){Se(t)}})},g:function(t,e,r){var n,o,i,a,s;r=ft(r),2===e?(n=de,o=ve,a=ye,i=()=>_,s=1):4===e&&(n=ge,o=me,a=we,i=()=>$,s=2),ht(t,{name:r,fromWireType:function(t){for(var r,o=$[t>>2],a=i(),u=t+4,c=0;c<=o;++c){var f=t+4+c*e;if(c==o||0==a[f>>s]){var l=n(u,f-u);void 0===r?r=l:(r+=String.fromCharCode(0),r+=l),u=f+e}}return Se(t),r},toWireType:function(t,n){"string"!=typeof n&&pt("Cannot pass non-string to C++ string type "+r);var i=a(n),u=Ae(4+i+e);return $[u>>2]=i>>s,o(n,u+4,i+e),null!==t&&t.push(Se,u),u},argPackAdvance:8,readValueFromPointer:Z,destructorFunction:function(t){Se(t)}})},u:function(t,e,r,n,o,i){Y[t]={name:ft(e),rawConstructor:Zt(r,n),rawDestructor:Zt(o,i),fields:[]}},d:function(t,e,r,n,o,i,a,s,u,c){Y[t].fields.push({fieldName:ft(e),getterReturnType:r,getter:Zt(n,o),getterContext:i,setterArgumentType:a,setter:Zt(s,u),setterContext:c})},x:function(t,e){ht(t,{isVoid:!0,name:e=ft(e),argPackAdvance:0,fromWireType:function(){},toWireType:function(t,e){}})},i:ae,m:function(t){return 0===t?ce.toHandle(Te()):(t=void 0===(r=be[e=t])?ft(e):r,ce.toHandle(Te()[t]));var e,r},l:function(t){t>4&&(ie[t].refcount+=1)},y:function(t,e,r,n){t=ce.toValue(t);var o=Ce[e];return o||(o=function(t){for(var e="",r=0;r<t;++r)e+=(0!==r?", ":"")+"arg"+r;var n="return function emval_allocator_"+t+"(constructor, argTypes, args) {\n  var HEAPU32 = getMemory();\n";for(r=0;r<t;++r)n+="var argType"+r+" = requireRegisteredType(HEAPU32[((argTypes)>>2)], 'parameter "+r+"');\nvar arg"+r+" = argType"+r+".readValueFromPointer(args);\nargs += argType"+r+"['argPackAdvance'];\nargTypes += 4;\n";return n+="var obj = new constructor("+e+");\nreturn valueToHandle(obj);\n}\n",new Function("requireRegisteredType","Module","valueToHandle","getMemory",n)(Pe,i,ce.toHandle,(()=>$))}(e),Ce[e]=o),o(t,r,n)},n:function(t,e){var r=(t=Pe(t,"_emval_take_value")).readValueFromPointer(e);return ce.toHandle(r)},f:function(){B("")},t:function(t,e,r){P.copyWithin(t,e,e+r)},s:function(t){var e,r,n=P.length,o=2147483648;if((t>>>=0)>o)return!1;for(var i=1;i<=4;i*=2){var a=n*(1+.2/i);if(a=Math.min(a,t+100663296),_e(Math.min(o,(e=Math.max(t,a))+((r=65536)-e%r)%r)))return!0}return!1}},Ae=(function(){var t={a:$e};function e(t,e){var r,n=t.exports;i.asm=n,R((w=i.asm.z).buffer),F=i.asm.C,r=i.asm.A,L.unshift(r),function(t){if(M--,i.monitorRunDependencies&&i.monitorRunDependencies(M),0==M&&(null!==H&&(clearInterval(H),H=null),V)){var e=V;V=null,e()}}()}function r(t){e(t.instance)}function n(e){return function(){if(!g&&(l||p)){if("function"==typeof fetch&&!z(D))return fetch(D,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at '"+D+"'";return t.arrayBuffer()})).catch((function(){return G(D)}));if(s)return new Promise((function(t,e){s(D,(function(e){t(new Uint8Array(e))}),e)}))}return Promise.resolve().then((function(){return G(D)}))}().then((function(e){return WebAssembly.instantiate(e,t)})).then((function(t){return t})).then(e,(function(t){m("failed to asynchronously prepare wasm: "+t),B(t)}))}if(M++,i.monitorRunDependencies&&i.monitorRunDependencies(M),i.instantiateWasm)try{return i.instantiateWasm(t,e)}catch(t){m("Module.instantiateWasm callback failed with error: "+t),o(t)}(g||"function"!=typeof WebAssembly.instantiateStreaming||N(D)||z(D)||h||"function"!=typeof fetch?n(r):fetch(D,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,t).then(r,(function(t){return m("wasm streaming compile failed: "+t),m("falling back to ArrayBuffer instantiation"),n(r)}))}))).catch(o)}(),i.___wasm_call_ctors=function(){return(i.___wasm_call_ctors=i.asm.A).apply(null,arguments)},i._malloc=function(){return(Ae=i._malloc=i.asm.B).apply(null,arguments)}),Oe=i.___getTypeName=function(){return(Oe=i.___getTypeName=i.asm.D).apply(null,arguments)},Se=(i.__embind_initialize_bindings=function(){return(i.__embind_initialize_bindings=i.asm.E).apply(null,arguments)},i._free=function(){return(Se=i._free=i.asm.F).apply(null,arguments)}),ke=i.stackSave=function(){return(ke=i.stackSave=i.asm.G).apply(null,arguments)},je=i.stackRestore=function(){return(je=i.stackRestore=i.asm.H).apply(null,arguments)},Ee=i.stackAlloc=function(){return(Ee=i.stackAlloc=i.asm.I).apply(null,arguments)},Re=i.___cxa_is_pointer_type=function(){return(Re=i.___cxa_is_pointer_type=i.asm.J).apply(null,arguments)};function Fe(t){function r(){xe||(xe=!0,i.calledRun=!0,S||(J(L),e(i),i.onRuntimeInitialized&&i.onRuntimeInitialized(),function(){if(i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;)t=i.postRun.shift(),U.unshift(t);var t;J(U)}()))}t=t||f,M>0||(function(){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)t=i.preRun.shift(),I.unshift(t);var t;J(I)}(),M>0||(i.setStatus?(i.setStatus("Running..."),setTimeout((function(){setTimeout((function(){i.setStatus("")}),1),r()}),1)):r()))}if(i.ccall=function(t,e,r,n,o){var a={string:t=>{var e=0;if(null!=t&&0!==t){var r=1+(t.length<<2);E(t,e=Ee(r),r)}return e},array:t=>{var e=Ee(t.length);return function(t,e){T.set(t,e)}(t,e),e}},s=function(t){return i["_"+t]}(t),u=[],c=0;if(n)for(var f=0;f<n.length;f++){var l=a[r[f]];l?(0===c&&(c=ke()),u[f]=l(n[f])):u[f]=n[f]}var p=s.apply(null,u);return p=function(t){return 0!==c&&je(c),function(t){return"string"===e?j(t):"boolean"===e?Boolean(t):t}(t)}(p)},V=function t(){xe||Fe(),xe||(V=t)},i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);i.preInit.length>0;)i.preInit.pop()();return Fe(),t.ready});t.exports=o},9400:(t,e,r)=>{var n,o=(n=(n="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0)||"/index.js",function(t){var e,o,i=void 0!==(t=t||{})?t:{};i.ready=new Promise((function(t,r){e=t,o=r}));var a,s,u,c=Object.assign({},i),f=[],l="./this.program",p=(t,e)=>{throw e},h="object"==typeof window,d="function"==typeof importScripts,v="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,y="";if(v){var g=r(1973),m=r(378);y=d?m.dirname(y)+"/":"//",a=(t,e)=>(t=K(t)?new URL(t):m.normalize(t),g.readFileSync(t,e?void 0:"utf8")),u=t=>{var e=a(t,!0);return e.buffer||(e=new Uint8Array(e)),e},s=(t,e,r)=>{t=K(t)?new URL(t):m.normalize(t),g.readFile(t,(function(t,n){t?r(t):e(n.buffer)}))},process.argv.length>1&&(l=process.argv[1].replace(/\\/g,"/")),f=process.argv.slice(2),process.on("uncaughtException",(function(t){if(!(t instanceof Q))throw t})),process.on("unhandledRejection",(function(t){throw t})),p=(t,e)=>{if(B())throw process.exitCode=t,e;var r;(r=e)instanceof Q||T("exiting due to exception: "+r),process.exit(t)},i.inspect=function(){return"[Emscripten Module object]"}}else(h||d)&&(d?y=self.location.href:"undefined"!=typeof document&&document.currentScript&&(y=document.currentScript.src),n&&(y=n),y=0!==y.indexOf("blob:")?y.substr(0,y.replace(/[?#].*/,"").lastIndexOf("/")+1):"",a=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},d&&(u=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),s=(t,e,r)=>{var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?e(n.response):r()},n.onerror=r,n.send(null)});var w,b=i.print||console.log.bind(console),T=i.printErr||console.warn.bind(console);Object.assign(i,c),c=null,i.arguments&&(f=i.arguments),i.thisProgram&&(l=i.thisProgram),i.quit&&(p=i.quit),i.wasmBinary&&(w=i.wasmBinary);var P,C=i.noExitRuntime||!0;"object"!=typeof WebAssembly&&X("no native wasm support detected");var _,x,$,A,O,S,k,j,E,R=!1,F="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function D(t,e,r){for(var n=e+r,o=e;t[o]&&!(o>=n);)++o;if(o-e>16&&t.buffer&&F)return F.decode(t.subarray(e,o));for(var i="";e<o;){var a=t[e++];if(128&a){var s=63&t[e++];if(192!=(224&a)){var u=63&t[e++];if((a=224==(240&a)?(15&a)<<12|s<<6|u:(7&a)<<18|s<<12|u<<6|63&t[e++])<65536)i+=String.fromCharCode(a);else{var c=a-65536;i+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else i+=String.fromCharCode((31&a)<<6|s)}else i+=String.fromCharCode(a)}return i}function W(t,e){return t?D($,t,e):""}function I(t,e,r){return function(t,e,r,n){if(!(n>0))return 0;for(var o=r,i=r+n-1,a=0;a<t.length;++a){var s=t.charCodeAt(a);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&t.charCodeAt(++a)),s<=127){if(r>=i)break;e[r++]=s}else if(s<=2047){if(r+1>=i)break;e[r++]=192|s>>6,e[r++]=128|63&s}else if(s<=65535){if(r+2>=i)break;e[r++]=224|s>>12,e[r++]=128|s>>6&63,e[r++]=128|63&s}else{if(r+3>=i)break;e[r++]=240|s>>18,e[r++]=128|s>>12&63,e[r++]=128|s>>6&63,e[r++]=128|63&s}}return e[r]=0,r-o}(t,$,e,r)}function L(t){_=t,i.HEAP8=x=new Int8Array(t),i.HEAP16=A=new Int16Array(t),i.HEAP32=S=new Int32Array(t),i.HEAPU8=$=new Uint8Array(t),i.HEAPU16=O=new Uint16Array(t),i.HEAPU32=k=new Uint32Array(t),i.HEAPF32=j=new Float32Array(t),i.HEAPF64=E=new Float64Array(t)}i.INITIAL_MEMORY;var U,M=[],H=[],V=[];function B(){return C}var N,z,G=0,q=null,J=null;function X(t){i.onAbort&&i.onAbort(t),T(t="Aborted("+t+")"),R=!0,t+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(t);throw o(e),e}function Y(t){return t.startsWith("data:application/octet-stream;base64,")}function K(t){return t.startsWith("file://")}function Z(t){try{if(t==N&&w)return new Uint8Array(w);if(u)return u(t);throw"both async and sync fetching of the wasm failed"}catch(t){X(t)}}function Q(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function tt(t){for(;t.length>0;)t.shift()(i)}function et(t){this.excPtr=t,this.ptr=t-24,this.set_type=function(t){k[this.ptr+4>>2]=t},this.get_type=function(){return k[this.ptr+4>>2]},this.set_destructor=function(t){k[this.ptr+8>>2]=t},this.get_destructor=function(){return k[this.ptr+8>>2]},this.set_refcount=function(t){S[this.ptr>>2]=t},this.set_caught=function(t){t=t?1:0,x[this.ptr+12>>0]=t},this.get_caught=function(){return 0!=x[this.ptr+12>>0]},this.set_rethrown=function(t){t=t?1:0,x[this.ptr+13>>0]=t},this.get_rethrown=function(){return 0!=x[this.ptr+13>>0]},this.init=function(t,e){this.set_adjusted_ptr(0),this.set_type(t),this.set_destructor(e),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var t=S[this.ptr>>2];S[this.ptr>>2]=t+1},this.release_ref=function(){var t=S[this.ptr>>2];return S[this.ptr>>2]=t-1,1===t},this.set_adjusted_ptr=function(t){k[this.ptr+16>>2]=t},this.get_adjusted_ptr=function(){return k[this.ptr+16>>2]},this.get_exception_ptr=function(){if(Be(this.get_type()))return k[this.excPtr>>2];var t=this.get_adjusted_ptr();return 0!==t?t:this.excPtr}}Y(N="libjpegturbowasm_decode.wasm")||(z=N,N=i.locateFile?i.locateFile(z,y):y+z);var rt={};function nt(t){for(;t.length;){var e=t.pop();t.pop()(e)}}function ot(t){return this.fromWireType(S[t>>2])}var it={},at={},st={};function ut(t){if(void 0===t)return"_unknown";var e=(t=t.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return e>=48&&e<=57?"_"+t:t}function ct(t,e){return t=ut(t),new Function("body","return function "+t+'() {\n    "use strict";    return body.apply(this, arguments);\n};\n')(e)}function ft(t,e){var r=ct(e,(function(t){this.name=e,this.message=t;var r=new Error(t).stack;void 0!==r&&(this.stack=this.toString()+"\n"+r.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},r}var lt=void 0;function pt(t){throw new lt(t)}function ht(t,e,r){function n(e){var n=r(e);n.length!==t.length&&pt("Mismatched type converter count");for(var o=0;o<t.length;++o)wt(t[o],n[o])}t.forEach((function(t){st[t]=e}));var o=new Array(e.length),i=[],a=0;e.forEach(((t,e)=>{at.hasOwnProperty(t)?o[e]=at[t]:(i.push(t),it.hasOwnProperty(t)||(it[t]=[]),it[t].push((()=>{o[e]=at[t],++a===i.length&&n(o)})))})),0===i.length&&n(o)}function dt(t){switch(t){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+t)}}var vt=void 0;function yt(t){for(var e="",r=t;$[r];)e+=vt[$[r++]];return e}var gt=void 0;function mt(t){throw new gt(t)}function wt(t,e,r={}){if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");var n=e.name;if(t||mt('type "'+n+'" must have a positive integer typeid pointer'),at.hasOwnProperty(t)){if(r.ignoreDuplicateRegistrations)return;mt("Cannot register type '"+n+"' twice")}if(at[t]=e,delete st[t],it.hasOwnProperty(t)){var o=it[t];delete it[t],o.forEach((t=>t()))}}function bt(t){if(!(this instanceof Vt))return!1;if(!(t instanceof Vt))return!1;for(var e=this.$$.ptrType.registeredClass,r=this.$$.ptr,n=t.$$.ptrType.registeredClass,o=t.$$.ptr;e.baseClass;)r=e.upcast(r),e=e.baseClass;for(;n.baseClass;)o=n.upcast(o),n=n.baseClass;return e===n&&r===o}function Tt(t){mt(t.$$.ptrType.registeredClass.name+" instance already deleted")}var Pt=!1;function Ct(t){}function _t(t){t.count.value-=1,0===t.count.value&&function(t){t.smartPtr?t.smartPtrType.rawDestructor(t.smartPtr):t.ptrType.registeredClass.rawDestructor(t.ptr)}(t)}function xt(t,e,r){if(e===r)return t;if(void 0===r.baseClass)return null;var n=xt(t,e,r.baseClass);return null===n?null:r.downcast(n)}var $t={};function At(){return Object.keys(Rt).length}function Ot(){var t=[];for(var e in Rt)Rt.hasOwnProperty(e)&&t.push(Rt[e]);return t}var St=[];function kt(){for(;St.length;){var t=St.pop();t.$$.deleteScheduled=!1,t.delete()}}var jt=void 0;function Et(t){jt=t,St.length&&jt&&jt(kt)}var Rt={};function Ft(t,e){return e=function(t,e){for(void 0===e&&mt("ptr should not be undefined");t.baseClass;)e=t.upcast(e),t=t.baseClass;return e}(t,e),Rt[e]}function Dt(t,e){return e.ptrType&&e.ptr||pt("makeClassHandle requires ptr and ptrType"),!!e.smartPtrType!=!!e.smartPtr&&pt("Both smartPtrType and smartPtr must be specified"),e.count={value:1},It(Object.create(t,{$$:{value:e}}))}function Wt(t){var e=this.getPointee(t);if(!e)return this.destructor(t),null;var r=Ft(this.registeredClass,e);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=e,r.$$.smartPtr=t,r.clone();var n=r.clone();return this.destructor(t),n}function o(){return this.isSmartPointer?Dt(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:t}):Dt(this.registeredClass.instancePrototype,{ptrType:this,ptr:t})}var i,a=this.registeredClass.getActualType(e),s=$t[a];if(!s)return o.call(this);i=this.isConst?s.constPointerType:s.pointerType;var u=xt(e,this.registeredClass,i.registeredClass);return null===u?o.call(this):this.isSmartPointer?Dt(i.registeredClass.instancePrototype,{ptrType:i,ptr:u,smartPtrType:this,smartPtr:t}):Dt(i.registeredClass.instancePrototype,{ptrType:i,ptr:u})}function It(t){return"undefined"==typeof FinalizationRegistry?(It=t=>t,t):(Pt=new FinalizationRegistry((t=>{_t(t.$$)})),Ct=t=>Pt.unregister(t),(It=t=>{var e=t.$$;if(e.smartPtr){var r={$$:e};Pt.register(t,r,t)}return t})(t))}function Lt(){if(this.$$.ptr||Tt(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var t,e=It(Object.create(Object.getPrototypeOf(this),{$$:{value:(t=this.$$,{count:t.count,deleteScheduled:t.deleteScheduled,preservePointerOnDelete:t.preservePointerOnDelete,ptr:t.ptr,ptrType:t.ptrType,smartPtr:t.smartPtr,smartPtrType:t.smartPtrType})}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e}function Ut(){this.$$.ptr||Tt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&mt("Object already scheduled for deletion"),Ct(this),_t(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function Mt(){return!this.$$.ptr}function Ht(){return this.$$.ptr||Tt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&mt("Object already scheduled for deletion"),St.push(this),1===St.length&&jt&&jt(kt),this.$$.deleteScheduled=!0,this}function Vt(){}function Bt(t,e,r){if(void 0===t[e].overloadTable){var n=t[e];t[e]=function(){return t[e].overloadTable.hasOwnProperty(arguments.length)||mt("Function '"+r+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+t[e].overloadTable+")!"),t[e].overloadTable[arguments.length].apply(this,arguments)},t[e].overloadTable=[],t[e].overloadTable[n.argCount]=n}}function Nt(t,e,r,n,o,i,a,s){this.name=t,this.constructor=e,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=o,this.getActualType=i,this.upcast=a,this.downcast=s,this.pureVirtualFunctions=[]}function zt(t,e,r){for(;e!==r;)e.upcast||mt("Expected null or instance of "+r.name+", got an instance of "+e.name),t=e.upcast(t),e=e.baseClass;return t}function Gt(t,e){if(null===e)return this.isReference&&mt("null is not a valid "+this.name),0;e.$$||mt('Cannot pass "'+de(e)+'" as a '+this.name),e.$$.ptr||mt("Cannot pass deleted object as a pointer of type "+this.name);var r=e.$$.ptrType.registeredClass;return zt(e.$$.ptr,r,this.registeredClass)}function qt(t,e){var r;if(null===e)return this.isReference&&mt("null is not a valid "+this.name),this.isSmartPointer?(r=this.rawConstructor(),null!==t&&t.push(this.rawDestructor,r),r):0;e.$$||mt('Cannot pass "'+de(e)+'" as a '+this.name),e.$$.ptr||mt("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&e.$$.ptrType.isConst&&mt("Cannot convert argument of type "+(e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name)+" to parameter type "+this.name);var n=e.$$.ptrType.registeredClass;if(r=zt(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===e.$$.smartPtr&&mt("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?r=e.$$.smartPtr:mt("Cannot convert argument of type "+(e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:r=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)r=e.$$.smartPtr;else{var o=e.clone();r=this.rawShare(r,he.toHandle((function(){o.delete()}))),null!==t&&t.push(this.rawDestructor,r)}break;default:mt("Unsupporting sharing policy")}return r}function Jt(t,e){if(null===e)return this.isReference&&mt("null is not a valid "+this.name),0;e.$$||mt('Cannot pass "'+de(e)+'" as a '+this.name),e.$$.ptr||mt("Cannot pass deleted object as a pointer of type "+this.name),e.$$.ptrType.isConst&&mt("Cannot convert argument of type "+e.$$.ptrType.name+" to parameter type "+this.name);var r=e.$$.ptrType.registeredClass;return zt(e.$$.ptr,r,this.registeredClass)}function Xt(t){return this.rawGetPointee&&(t=this.rawGetPointee(t)),t}function Yt(t){this.rawDestructor&&this.rawDestructor(t)}function Kt(t){null!==t&&t.delete()}function Zt(t,e,r,n,o,i,a,s,u,c,f){this.name=t,this.registeredClass=e,this.isReference=r,this.isConst=n,this.isSmartPointer=o,this.pointeeType=i,this.sharingPolicy=a,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=f,o||void 0!==e.baseClass?this.toWireType=qt:n?(this.toWireType=Gt,this.destructorFunction=null):(this.toWireType=Jt,this.destructorFunction=null)}var Qt=[];function te(t){var e=Qt[t];return e||(t>=Qt.length&&(Qt.length=t+1),Qt[t]=e=U.get(t)),e}function ee(t,e,r){return t.includes("j")?function(t,e,r){var n=i["dynCall_"+t];return r&&r.length?n.apply(null,[e].concat(r)):n.call(null,e)}(t,e,r):te(e).apply(null,r)}function re(t,e){var r,n,o,i=(t=yt(t)).includes("j")?(r=t,n=e,o=[],function(){return o.length=0,Object.assign(o,arguments),ee(r,n,o)}):te(e);return"function"!=typeof i&&mt("unknown function pointer with signature "+t+": "+e),i}var ne=void 0;function oe(t){var e=Le(t),r=yt(e);return Ie(e),r}function ie(t,e){var r=[],n={};throw e.forEach((function t(e){n[e]||at[e]||(st[e]?st[e].forEach(t):(r.push(e),n[e]=!0))})),new ne(t+": "+r.map(oe).join([", "]))}function ae(t,e){for(var r=[],n=0;n<t;n++)r.push(k[e+4*n>>2]);return r}function se(t,e,r,n,o){var i=e.length;i<2&&mt("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var a=null!==e[1]&&null!==r,s=!1,u=1;u<e.length;++u)if(null!==e[u]&&void 0===e[u].destructorFunction){s=!0;break}var c="void"!==e[0].name,f="",l="";for(u=0;u<i-2;++u)f+=(0!==u?", ":"")+"arg"+u,l+=(0!==u?", ":"")+"arg"+u+"Wired";var p="return function "+ut(t)+"("+f+") {\nif (arguments.length !== "+(i-2)+") {\nthrowBindingError('function "+t+" called with ' + arguments.length + ' arguments, expected "+(i-2)+" args!');\n}\n";s&&(p+="var destructors = [];\n");var h=s?"destructors":"null",d=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],v=[mt,n,o,nt,e[0],e[1]];for(a&&(p+="var thisWired = classParam.toWireType("+h+", this);\n"),u=0;u<i-2;++u)p+="var arg"+u+"Wired = argType"+u+".toWireType("+h+", arg"+u+"); // "+e[u+2].name+"\n",d.push("argType"+u),v.push(e[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<e.length;++u){var y=1===u?"thisWired":"arg"+(u-2)+"Wired";null!==e[u].destructorFunction&&(p+=y+"_dtor("+y+"); // "+e[u].name+"\n",d.push(y+"_dtor"),v.push(e[u].destructorFunction))}return c&&(p+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),p+="}\n",d.push(p),function(t,e){if(!(t instanceof Function))throw new TypeError("new_ called with constructor type "+typeof t+" which is not a function");var r=ct(t.name||"unknownFunctionName",(function(){}));r.prototype=t.prototype;var n=new r,o=t.apply(n,e);return o instanceof Object?o:n}(Function,d).apply(null,v)}var ue=[],ce=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function fe(t){t>4&&0==--ce[t].refcount&&(ce[t]=void 0,ue.push(t))}function le(){for(var t=0,e=5;e<ce.length;++e)void 0!==ce[e]&&++t;return t}function pe(){for(var t=5;t<ce.length;++t)if(void 0!==ce[t])return ce[t];return null}var he={toValue:t=>(t||mt("Cannot use deleted val. handle = "+t),ce[t].value),toHandle:t=>{switch(t){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var e=ue.length?ue.pop():ce.length;return ce[e]={refcount:1,value:t},e}}};function de(t){if(null===t)return"null";var e=typeof t;return"object"===e||"array"===e||"function"===e?t.toString():""+t}function ve(t,e){switch(e){case 2:return function(t){return this.fromWireType(j[t>>2])};case 3:return function(t){return this.fromWireType(E[t>>3])};default:throw new TypeError("Unknown float type: "+t)}}function ye(t,e,r){switch(e){case 0:return r?function(t){return x[t]}:function(t){return $[t]};case 1:return r?function(t){return A[t>>1]}:function(t){return O[t>>1]};case 2:return r?function(t){return S[t>>2]}:function(t){return k[t>>2]};default:throw new TypeError("Unknown integer type: "+t)}}var ge="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function me(t,e){for(var r=t,n=r>>1,o=n+e/2;!(n>=o)&&O[n];)++n;if((r=n<<1)-t>32&&ge)return ge.decode($.subarray(t,r));for(var i="",a=0;!(a>=e/2);++a){var s=A[t+2*a>>1];if(0==s)break;i+=String.fromCharCode(s)}return i}function we(t,e,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=e,o=(r-=2)<2*t.length?r/2:t.length,i=0;i<o;++i){var a=t.charCodeAt(i);A[e>>1]=a,e+=2}return A[e>>1]=0,e-n}function be(t){return 2*t.length}function Te(t,e){for(var r=0,n="";!(r>=e/4);){var o=S[t+4*r>>2];if(0==o)break;if(++r,o>=65536){var i=o-65536;n+=String.fromCharCode(55296|i>>10,56320|1023&i)}else n+=String.fromCharCode(o)}return n}function Pe(t,e,r){if(void 0===r&&(r=2147483647),r<4)return 0;for(var n=e,o=n+r-4,i=0;i<t.length;++i){var a=t.charCodeAt(i);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&t.charCodeAt(++i)),S[e>>2]=a,(e+=4)+4>o)break}return S[e>>2]=0,e-n}function Ce(t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);n>=55296&&n<=57343&&++r,e+=4}return e}var _e={};function xe(){return"object"==typeof globalThis?globalThis:Function("return this")()}function $e(t,e){var r=at[t];return void 0===r&&mt(e+" has unknown type "+oe(t)),r}var Ae={};function Oe(t){try{return P.grow(t-_.byteLength+65535>>>16),L(P.buffer),1}catch(t){}}var Se={};function ke(){if(!ke.strings){var t={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",_:l||"./this.program"};for(var e in Se)void 0===Se[e]?delete t[e]:t[e]=Se[e];var r=[];for(var e in t)r.push(e+"="+t[e]);ke.strings=r}return ke.strings}var je=function(t,e){var r;r=t,B()||(i.onExit&&i.onExit(r),R=!0),p(r,new Q(r))},Ee=[null,[],[]];function Re(t,e){var r=Ee[t];0===e||10===e?((1===t?b:T)(D(r,0)),r.length=0):r.push(e)}lt=i.InternalError=ft(Error,"InternalError"),function(){for(var t=new Array(256),e=0;e<256;++e)t[e]=String.fromCharCode(e);vt=t}(),gt=i.BindingError=ft(Error,"BindingError"),Vt.prototype.isAliasOf=bt,Vt.prototype.clone=Lt,Vt.prototype.delete=Ut,Vt.prototype.isDeleted=Mt,Vt.prototype.deleteLater=Ht,i.getInheritedInstanceCount=At,i.getLiveInheritedInstances=Ot,i.flushPendingDeletes=kt,i.setDelayFunction=Et,Zt.prototype.getPointee=Xt,Zt.prototype.destructor=Yt,Zt.prototype.argPackAdvance=8,Zt.prototype.readValueFromPointer=ot,Zt.prototype.deleteObject=Kt,Zt.prototype.fromWireType=Wt,ne=i.UnboundTypeError=ft(Error,"UnboundTypeError"),i.count_emval_handles=le,i.get_first_emval=pe;var Fe,De={g:function(t,e,r){throw new et(t).init(e,r),t},A:function(t){var e=rt[t];delete rt[t];var r=e.rawConstructor,n=e.rawDestructor,o=e.fields;ht([t],o.map((t=>t.getterReturnType)).concat(o.map((t=>t.setterArgumentType))),(t=>{var i={};return o.forEach(((e,r)=>{var n=e.fieldName,a=t[r],s=e.getter,u=e.getterContext,c=t[r+o.length],f=e.setter,l=e.setterContext;i[n]={read:t=>a.fromWireType(s(u,t)),write:(t,e)=>{var r=[];f(l,t,c.toWireType(r,e)),nt(r)}}})),[{name:e.name,fromWireType:function(t){var e={};for(var r in i)e[r]=i[r].read(t);return n(t),e},toWireType:function(t,e){for(var o in i)if(!(o in e))throw new TypeError('Missing field:  "'+o+'"');var a=r();for(o in i)i[o].write(a,e[o]);return null!==t&&t.push(n,a),a},argPackAdvance:8,readValueFromPointer:ot,destructorFunction:n}]}))},w:function(t,e,r,n,o){},F:function(t,e,r,n,o){var i=dt(r);wt(t,{name:e=yt(e),fromWireType:function(t){return!!t},toWireType:function(t,e){return e?n:o},argPackAdvance:8,readValueFromPointer:function(t){var n;if(1===r)n=x;else if(2===r)n=A;else{if(4!==r)throw new TypeError("Unknown boolean type size: "+e);n=S}return this.fromWireType(n[t>>i])},destructorFunction:null})},u:function(t,e,r,n,o,a,s,u,c,f,l,p,h){l=yt(l),a=re(o,a),u&&(u=re(s,u)),f&&(f=re(c,f)),h=re(p,h);var d=ut(l);!function(t,e,r){i.hasOwnProperty(t)?((void 0===r||void 0!==i[t].overloadTable&&void 0!==i[t].overloadTable[r])&&mt("Cannot register public name '"+t+"' twice"),Bt(i,t,t),i.hasOwnProperty(r)&&mt("Cannot register multiple overloads of a function with the same number of arguments ("+r+")!"),i[t].overloadTable[r]=e):(i[t]=e,void 0!==r&&(i[t].numArguments=r))}(d,(function(){ie("Cannot construct "+l+" due to unbound types",[n])})),ht([t,e,r],n?[n]:[],(function(e){var r,o;e=e[0],o=n?(r=e.registeredClass).instancePrototype:Vt.prototype;var s=ct(d,(function(){if(Object.getPrototypeOf(this)!==c)throw new gt("Use 'new' to construct "+l);if(void 0===p.constructor_body)throw new gt(l+" has no accessible constructor");var t=p.constructor_body[arguments.length];if(void 0===t)throw new gt("Tried to invoke ctor of "+l+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(p.constructor_body).toString()+") parameters instead!");return t.apply(this,arguments)})),c=Object.create(o,{constructor:{value:s}});s.prototype=c;var p=new Nt(l,s,c,h,r,a,u,f),v=new Zt(l,p,!0,!1,!1),y=new Zt(l+"*",p,!1,!1,!1),g=new Zt(l+" const*",p,!1,!0,!1);return $t[t]={pointerType:y,constPointerType:g},function(t,e,r){i.hasOwnProperty(t)||pt("Replacing nonexistant public symbol"),void 0!==i[t].overloadTable&&void 0!==r?i[t].overloadTable[r]=e:(i[t]=e,i[t].argCount=r)}(d,s),[v,y,g]}))},t:function(t,e,r,n,o,i){var a;e>0||X(a);var s=ae(e,r);o=re(n,o),ht([],[t],(function(t){var r="constructor "+(t=t[0]).name;if(void 0===t.registeredClass.constructor_body&&(t.registeredClass.constructor_body=[]),void 0!==t.registeredClass.constructor_body[e-1])throw new gt("Cannot register multiple constructors with identical number of parameters ("+(e-1)+") for class '"+t.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return t.registeredClass.constructor_body[e-1]=()=>{ie("Cannot construct "+t.name+" due to unbound types",s)},ht([],s,(function(n){return n.splice(1,0,null),t.registeredClass.constructor_body[e-1]=se(r,n,null,o,i),[]})),[]}))},c:function(t,e,r,n,o,i,a,s){var u=ae(r,n);e=yt(e),i=re(o,i),ht([],[t],(function(t){var n=(t=t[0]).name+"."+e;function o(){ie("Cannot call "+n+" due to unbound types",u)}e.startsWith("@@")&&(e=Symbol[e.substring(2)]),s&&t.registeredClass.pureVirtualFunctions.push(e);var c=t.registeredClass.instancePrototype,f=c[e];return void 0===f||void 0===f.overloadTable&&f.className!==t.name&&f.argCount===r-2?(o.argCount=r-2,o.className=t.name,c[e]=o):(Bt(c,e,n),c[e].overloadTable[r-2]=o),ht([],u,(function(o){var s=se(n,o,t,i,a);return void 0===c[e].overloadTable?(s.argCount=r-2,c[e]=s):c[e].overloadTable[r-2]=s,[]})),[]}))},E:function(t,e){wt(t,{name:e=yt(e),fromWireType:function(t){var e=he.toValue(t);return fe(t),e},toWireType:function(t,e){return he.toHandle(e)},argPackAdvance:8,readValueFromPointer:ot,destructorFunction:null})},m:function(t,e,r){var n=dt(r);wt(t,{name:e=yt(e),fromWireType:function(t){return t},toWireType:function(t,e){return e},argPackAdvance:8,readValueFromPointer:ve(e,n),destructorFunction:null})},b:function(t,e,r,n,o){e=yt(e),-1===o&&(o=4294967295);var i=dt(r),a=t=>t;if(0===n){var s=32-8*r;a=t=>t<<s>>>s}var u=e.includes("unsigned");wt(t,{name:e,fromWireType:a,toWireType:u?function(t,e){return this.name,e>>>0}:function(t,e){return this.name,e},argPackAdvance:8,readValueFromPointer:ye(e,i,0!==n),destructorFunction:null})},a:function(t,e,r){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function o(t){var e=k,r=e[t>>=2],o=e[t+1];return new n(_,o,r)}wt(t,{name:r=yt(r),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},l:function(t,e){var r="std::string"===(e=yt(e));wt(t,{name:e,fromWireType:function(t){var e,n=k[t>>2],o=t+4;if(r)for(var i=o,a=0;a<=n;++a){var s=o+a;if(a==n||0==$[s]){var u=W(i,s-i);void 0===e?e=u:(e+=String.fromCharCode(0),e+=u),i=s+1}}else{var c=new Array(n);for(a=0;a<n;++a)c[a]=String.fromCharCode($[o+a]);e=c.join("")}return Ie(t),e},toWireType:function(t,e){var n;e instanceof ArrayBuffer&&(e=new Uint8Array(e));var o="string"==typeof e;o||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||mt("Cannot pass non-string to std::string"),n=r&&o?function(t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++r):e+=3}return e}(e):e.length;var i=We(4+n+1),a=i+4;if(k[i>>2]=n,r&&o)I(e,a,n+1);else if(o)for(var s=0;s<n;++s){var u=e.charCodeAt(s);u>255&&(Ie(a),mt("String has UTF-16 code units that do not fit in 8 bits")),$[a+s]=u}else for(s=0;s<n;++s)$[a+s]=e[s];return null!==t&&t.push(Ie,i),i},argPackAdvance:8,readValueFromPointer:ot,destructorFunction:function(t){Ie(t)}})},h:function(t,e,r){var n,o,i,a,s;r=yt(r),2===e?(n=me,o=we,a=be,i=()=>O,s=1):4===e&&(n=Te,o=Pe,a=Ce,i=()=>k,s=2),wt(t,{name:r,fromWireType:function(t){for(var r,o=k[t>>2],a=i(),u=t+4,c=0;c<=o;++c){var f=t+4+c*e;if(c==o||0==a[f>>s]){var l=n(u,f-u);void 0===r?r=l:(r+=String.fromCharCode(0),r+=l),u=f+e}}return Ie(t),r},toWireType:function(t,n){"string"!=typeof n&&mt("Cannot pass non-string to C++ string type "+r);var i=a(n),u=We(4+i+e);return k[u>>2]=i>>s,o(n,u+4,i+e),null!==t&&t.push(Ie,u),u},argPackAdvance:8,readValueFromPointer:ot,destructorFunction:function(t){Ie(t)}})},J:function(t,e,r,n,o,i){rt[t]={name:yt(e),rawConstructor:re(r,n),rawDestructor:re(o,i),fields:[]}},d:function(t,e,r,n,o,i,a,s,u,c){rt[t].fields.push({fieldName:yt(e),getterReturnType:r,getter:re(n,o),getterContext:i,setterArgumentType:a,setter:re(s,u),setterContext:c})},G:function(t,e){wt(t,{isVoid:!0,name:e=yt(e),argPackAdvance:0,fromWireType:function(){},toWireType:function(t,e){}})},x:function(){throw 1/0},i:fe,r:function(t){return 0===t?he.toHandle(xe()):(t=void 0===(r=_e[e=t])?yt(e):r,he.toHandle(xe()[t]));var e,r},p:function(t){t>4&&(ce[t].refcount+=1)},q:function(t,e,r,n){t=he.toValue(t);var o=Ae[e];return o||(o=function(t){for(var e="",r=0;r<t;++r)e+=(0!==r?", ":"")+"arg"+r;var n="return function emval_allocator_"+t+"(constructor, argTypes, args) {\n  var HEAPU32 = getMemory();\n";for(r=0;r<t;++r)n+="var argType"+r+" = requireRegisteredType(HEAPU32[((argTypes)>>2)], 'parameter "+r+"');\nvar arg"+r+" = argType"+r+".readValueFromPointer(args);\nargs += argType"+r+"['argPackAdvance'];\nargTypes += 4;\n";return n+="var obj = new constructor("+e+");\nreturn valueToHandle(obj);\n}\n",new Function("requireRegisteredType","Module","valueToHandle","getMemory",n)($e,i,he.toHandle,(()=>k))}(e),Ae[e]=o),o(t,r,n)},s:function(t,e){var r=(t=$e(t,"_emval_take_value")).readValueFromPointer(e);return he.toHandle(r)},j:function(){X("")},D:function(t,e,r){$.copyWithin(t,e,e+r)},y:function(t){var e,r,n=$.length,o=2147483648;if((t>>>=0)>o)return!1;for(var i=1;i<=4;i*=2){var a=n*(1+.2/i);if(a=Math.min(a,t+100663296),Oe(Math.min(o,(e=Math.max(t,a))+((r=65536)-e%r)%r)))return!0}return!1},z:function(t,e){var r=0;return ke().forEach((function(n,o){var i=e+r;k[t+4*o>>2]=i,function(t,e,r){for(var n=0;n<t.length;++n)x[e++>>0]=t.charCodeAt(n);r||(x[e>>0]=0)}(n,i),r+=n.length+1})),0},B:function(t,e){var r=ke();k[t>>2]=r.length;var n=0;return r.forEach((function(t){n+=t.length+1})),k[e>>2]=n,0},I:je,C:function(t){return 52},v:function(t,e,r,n,o){return 70},k:function(t,e,r,n){for(var o=0,i=0;i<r;i++){var a=k[e>>2],s=k[e+4>>2];e+=8;for(var u=0;u<s;u++)Re(t,$[a+u]);o+=s}return k[n>>2]=o,0},o:function(t,e){var r=Me();try{return te(t)(e)}catch(t){if(He(r),t!==t+0)throw t;Ue(1,0)}},n:function(t,e,r){var n=Me();try{return te(t)(e,r)}catch(t){if(He(n),t!==t+0)throw t;Ue(1,0)}},H:function(t,e,r,n){var o=Me();try{return te(t)(e,r,n)}catch(t){if(He(o),t!==t+0)throw t;Ue(1,0)}},f:function(t,e){var r=Me();try{te(t)(e)}catch(t){if(He(r),t!==t+0)throw t;Ue(1,0)}},e:function(t,e,r,n){var o=Me();try{te(t)(e,r,n)}catch(t){if(He(o),t!==t+0)throw t;Ue(1,0)}}},We=(function(){var t={a:De};function e(t,e){var r,n=t.exports;i.asm=n,L((P=i.asm.K).buffer),U=i.asm.M,r=i.asm.L,H.unshift(r),function(t){if(G--,i.monitorRunDependencies&&i.monitorRunDependencies(G),0==G&&(null!==q&&(clearInterval(q),q=null),J)){var e=J;J=null,e()}}()}function r(t){e(t.instance)}function n(e){return function(){if(!w&&(h||d)){if("function"==typeof fetch&&!K(N))return fetch(N,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at '"+N+"'";return t.arrayBuffer()})).catch((function(){return Z(N)}));if(s)return new Promise((function(t,e){s(N,(function(e){t(new Uint8Array(e))}),e)}))}return Promise.resolve().then((function(){return Z(N)}))}().then((function(e){return WebAssembly.instantiate(e,t)})).then((function(t){return t})).then(e,(function(t){T("failed to asynchronously prepare wasm: "+t),X(t)}))}if(G++,i.monitorRunDependencies&&i.monitorRunDependencies(G),i.instantiateWasm)try{return i.instantiateWasm(t,e)}catch(t){T("Module.instantiateWasm callback failed with error: "+t),o(t)}(w||"function"!=typeof WebAssembly.instantiateStreaming||Y(N)||K(N)||v||"function"!=typeof fetch?n(r):fetch(N,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,t).then(r,(function(t){return T("wasm streaming compile failed: "+t),T("falling back to ArrayBuffer instantiation"),n(r)}))}))).catch(o)}(),i.___wasm_call_ctors=function(){return(i.___wasm_call_ctors=i.asm.L).apply(null,arguments)},i._malloc=function(){return(We=i._malloc=i.asm.N).apply(null,arguments)}),Ie=i._free=function(){return(Ie=i._free=i.asm.O).apply(null,arguments)},Le=i.___getTypeName=function(){return(Le=i.___getTypeName=i.asm.P).apply(null,arguments)},Ue=(i.__embind_initialize_bindings=function(){return(i.__embind_initialize_bindings=i.asm.Q).apply(null,arguments)},i._setThrew=function(){return(Ue=i._setThrew=i.asm.R).apply(null,arguments)}),Me=i.stackSave=function(){return(Me=i.stackSave=i.asm.S).apply(null,arguments)},He=i.stackRestore=function(){return(He=i.stackRestore=i.asm.T).apply(null,arguments)},Ve=i.stackAlloc=function(){return(Ve=i.stackAlloc=i.asm.U).apply(null,arguments)},Be=i.___cxa_is_pointer_type=function(){return(Be=i.___cxa_is_pointer_type=i.asm.V).apply(null,arguments)};function Ne(t){function r(){Fe||(Fe=!0,i.calledRun=!0,R||(tt(H),e(i),i.onRuntimeInitialized&&i.onRuntimeInitialized(),function(){if(i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;)t=i.postRun.shift(),V.unshift(t);var t;tt(V)}()))}t=t||f,G>0||(function(){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)t=i.preRun.shift(),M.unshift(t);var t;tt(M)}(),G>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.W).apply(null,arguments)},i.ccall=function(t,e,r,n,o){var a={string:t=>{var e=0;if(null!=t&&0!==t){var r=1+(t.length<<2);I(t,e=Ve(r),r)}return e},array:t=>{var e=Ve(t.length);return function(t,e){x.set(t,e)}(t,e),e}},s=function(t){return i["_"+t]}(t),u=[],c=0;if(n)for(var f=0;f<n.length;f++){var l=a[r[f]];l?(0===c&&(c=Me()),u[f]=l(n[f])):u[f]=n[f]}var p=s.apply(null,u);return p=function(t){return 0!==c&&He(c),function(t){return"string"===e?W(t):"boolean"===e?Boolean(t):t}(t)}(p)},J=function t(){Fe||Ne(),Fe||(J=t)},i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);i.preInit.length>0;)i.preInit.pop()();return Ne(),t.ready});t.exports=o},4044:(t,e,r)=>{var n,o=(n=(n="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0)||"/index.js",function(t){var e,o,i=void 0!==(t=t||{})?t:{};i.ready=new Promise((function(t,r){e=t,o=r}));var a,s,u,c=Object.assign({},i),f=[],l="./this.program",p="object"==typeof window,h="function"==typeof importScripts,d="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,v="";if(d){var y=r(9652),g=r(6087);v=h?g.dirname(v)+"/":"//",a=(t,e)=>(t=J(t)?new URL(t):g.normalize(t),y.readFileSync(t,e?void 0:"utf8")),u=t=>{var e=a(t,!0);return e.buffer||(e=new Uint8Array(e)),e},s=(t,e,r)=>{t=J(t)?new URL(t):g.normalize(t),y.readFile(t,(function(t,n){t?r(t):e(n.buffer)}))},process.argv.length>1&&(l=process.argv[1].replace(/\\/g,"/")),f=process.argv.slice(2),process.on("uncaughtException",(function(t){if(!(t instanceof Y))throw t})),process.on("unhandledRejection",(function(t){throw t})),i.inspect=function(){return"[Emscripten Module object]"}}else(p||h)&&(h?v=self.location.href:"undefined"!=typeof document&&document.currentScript&&(v=document.currentScript.src),n&&(v=n),v=0!==v.indexOf("blob:")?v.substr(0,v.replace(/[?#].*/,"").lastIndexOf("/")+1):"",a=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},h&&(u=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),s=(t,e,r)=>{var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?e(n.response):r()},n.onerror=r,n.send(null)});var m,w=i.print||console.log.bind(console),b=i.printErr||console.warn.bind(console);Object.assign(i,c),c=null,i.arguments&&(f=i.arguments),i.thisProgram&&(l=i.thisProgram),i.quit&&i.quit,i.wasmBinary&&(m=i.wasmBinary);var T;i.noExitRuntime;"object"!=typeof WebAssembly&&G("no native wasm support detected");var P,C,_,x,$,A,O,S,k,j=!1,E="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function R(t,e,r){for(var n=e+r,o=e;t[o]&&!(o>=n);)++o;if(o-e>16&&t.buffer&&E)return E.decode(t.subarray(e,o));for(var i="";e<o;){var a=t[e++];if(128&a){var s=63&t[e++];if(192!=(224&a)){var u=63&t[e++];if((a=224==(240&a)?(15&a)<<12|s<<6|u:(7&a)<<18|s<<12|u<<6|63&t[e++])<65536)i+=String.fromCharCode(a);else{var c=a-65536;i+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else i+=String.fromCharCode((31&a)<<6|s)}else i+=String.fromCharCode(a)}return i}function F(t,e){return t?R(_,t,e):""}function D(t,e,r){return function(t,e,r,n){if(!(n>0))return 0;for(var o=r,i=r+n-1,a=0;a<t.length;++a){var s=t.charCodeAt(a);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&t.charCodeAt(++a)),s<=127){if(r>=i)break;e[r++]=s}else if(s<=2047){if(r+1>=i)break;e[r++]=192|s>>6,e[r++]=128|63&s}else if(s<=65535){if(r+2>=i)break;e[r++]=224|s>>12,e[r++]=128|s>>6&63,e[r++]=128|63&s}else{if(r+3>=i)break;e[r++]=240|s>>18,e[r++]=128|s>>12&63,e[r++]=128|s>>6&63,e[r++]=128|63&s}}return e[r]=0,r-o}(t,_,e,r)}function W(t){P=t,i.HEAP8=C=new Int8Array(t),i.HEAP16=x=new Int16Array(t),i.HEAP32=A=new Int32Array(t),i.HEAPU8=_=new Uint8Array(t),i.HEAPU16=$=new Uint16Array(t),i.HEAPU32=O=new Uint32Array(t),i.HEAPF32=S=new Float32Array(t),i.HEAPF64=k=new Float64Array(t)}i.INITIAL_MEMORY;var I,L,U,M=[],H=[],V=[],B=0,N=null,z=null;function G(t){i.onAbort&&i.onAbort(t),b(t="Aborted("+t+")"),j=!0,t+=". Build with -sASSERTIONS for more info.";var e=new WebAssembly.RuntimeError(t);throw o(e),e}function q(t){return t.startsWith("data:application/octet-stream;base64,")}function J(t){return t.startsWith("file://")}function X(t){try{if(t==L&&m)return new Uint8Array(m);if(u)return u(t);throw"both async and sync fetching of the wasm failed"}catch(t){G(t)}}function Y(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function K(t){for(;t.length>0;)t.shift()(i)}function Z(t){this.excPtr=t,this.ptr=t-24,this.set_type=function(t){O[this.ptr+4>>2]=t},this.get_type=function(){return O[this.ptr+4>>2]},this.set_destructor=function(t){O[this.ptr+8>>2]=t},this.get_destructor=function(){return O[this.ptr+8>>2]},this.set_refcount=function(t){A[this.ptr>>2]=t},this.set_caught=function(t){t=t?1:0,C[this.ptr+12>>0]=t},this.get_caught=function(){return 0!=C[this.ptr+12>>0]},this.set_rethrown=function(t){t=t?1:0,C[this.ptr+13>>0]=t},this.get_rethrown=function(){return 0!=C[this.ptr+13>>0]},this.init=function(t,e){this.set_adjusted_ptr(0),this.set_type(t),this.set_destructor(e),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var t=A[this.ptr>>2];A[this.ptr>>2]=t+1},this.release_ref=function(){var t=A[this.ptr>>2];return A[this.ptr>>2]=t-1,1===t},this.set_adjusted_ptr=function(t){O[this.ptr+16>>2]=t},this.get_adjusted_ptr=function(){return O[this.ptr+16>>2]},this.get_exception_ptr=function(){if(Le(this.get_type()))return O[this.excPtr>>2];var t=this.get_adjusted_ptr();return 0!==t?t:this.excPtr}}q(L="openjpegwasm_decode.wasm")||(U=L,L=i.locateFile?i.locateFile(U,v):v+U);var Q={};function tt(t){for(;t.length;){var e=t.pop();t.pop()(e)}}function et(t){return this.fromWireType(A[t>>2])}var rt={},nt={},ot={};function it(t){if(void 0===t)return"_unknown";var e=(t=t.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return e>=48&&e<=57?"_"+t:t}function at(t,e){return t=it(t),new Function("body","return function "+t+'() {\n    "use strict";    return body.apply(this, arguments);\n};\n')(e)}function st(t,e){var r=at(e,(function(t){this.name=e,this.message=t;var r=new Error(t).stack;void 0!==r&&(this.stack=this.toString()+"\n"+r.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},r}var ut=void 0;function ct(t){throw new ut(t)}function ft(t,e,r){function n(e){var n=r(e);n.length!==t.length&&ct("Mismatched type converter count");for(var o=0;o<t.length;++o)yt(t[o],n[o])}t.forEach((function(t){ot[t]=e}));var o=new Array(e.length),i=[],a=0;e.forEach(((t,e)=>{nt.hasOwnProperty(t)?o[e]=nt[t]:(i.push(t),rt.hasOwnProperty(t)||(rt[t]=[]),rt[t].push((()=>{o[e]=nt[t],++a===i.length&&n(o)})))})),0===i.length&&n(o)}function lt(t){switch(t){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+t)}}var pt=void 0;function ht(t){for(var e="",r=t;_[r];)e+=pt[_[r++]];return e}var dt=void 0;function vt(t){throw new dt(t)}function yt(t,e,r={}){if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");var n=e.name;if(t||vt('type "'+n+'" must have a positive integer typeid pointer'),nt.hasOwnProperty(t)){if(r.ignoreDuplicateRegistrations)return;vt("Cannot register type '"+n+"' twice")}if(nt[t]=e,delete ot[t],rt.hasOwnProperty(t)){var o=rt[t];delete rt[t],o.forEach((t=>t()))}}function gt(t){if(!(this instanceof Ut))return!1;if(!(t instanceof Ut))return!1;for(var e=this.$$.ptrType.registeredClass,r=this.$$.ptr,n=t.$$.ptrType.registeredClass,o=t.$$.ptr;e.baseClass;)r=e.upcast(r),e=e.baseClass;for(;n.baseClass;)o=n.upcast(o),n=n.baseClass;return e===n&&r===o}function mt(t){vt(t.$$.ptrType.registeredClass.name+" instance already deleted")}var wt=!1;function bt(t){}function Tt(t){t.count.value-=1,0===t.count.value&&function(t){t.smartPtr?t.smartPtrType.rawDestructor(t.smartPtr):t.ptrType.registeredClass.rawDestructor(t.ptr)}(t)}function Pt(t,e,r){if(e===r)return t;if(void 0===r.baseClass)return null;var n=Pt(t,e,r.baseClass);return null===n?null:r.downcast(n)}var Ct={};function _t(){return Object.keys(kt).length}function xt(){var t=[];for(var e in kt)kt.hasOwnProperty(e)&&t.push(kt[e]);return t}var $t=[];function At(){for(;$t.length;){var t=$t.pop();t.$$.deleteScheduled=!1,t.delete()}}var Ot=void 0;function St(t){Ot=t,$t.length&&Ot&&Ot(At)}var kt={};function jt(t,e){return e=function(t,e){for(void 0===e&&vt("ptr should not be undefined");t.baseClass;)e=t.upcast(e),t=t.baseClass;return e}(t,e),kt[e]}function Et(t,e){return e.ptrType&&e.ptr||ct("makeClassHandle requires ptr and ptrType"),!!e.smartPtrType!=!!e.smartPtr&&ct("Both smartPtrType and smartPtr must be specified"),e.count={value:1},Ft(Object.create(t,{$$:{value:e}}))}function Rt(t){var e=this.getPointee(t);if(!e)return this.destructor(t),null;var r=jt(this.registeredClass,e);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=e,r.$$.smartPtr=t,r.clone();var n=r.clone();return this.destructor(t),n}function o(){return this.isSmartPointer?Et(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:t}):Et(this.registeredClass.instancePrototype,{ptrType:this,ptr:t})}var i,a=this.registeredClass.getActualType(e),s=Ct[a];if(!s)return o.call(this);i=this.isConst?s.constPointerType:s.pointerType;var u=Pt(e,this.registeredClass,i.registeredClass);return null===u?o.call(this):this.isSmartPointer?Et(i.registeredClass.instancePrototype,{ptrType:i,ptr:u,smartPtrType:this,smartPtr:t}):Et(i.registeredClass.instancePrototype,{ptrType:i,ptr:u})}function Ft(t){return"undefined"==typeof FinalizationRegistry?(Ft=t=>t,t):(wt=new FinalizationRegistry((t=>{Tt(t.$$)})),bt=t=>wt.unregister(t),(Ft=t=>{var e=t.$$;if(e.smartPtr){var r={$$:e};wt.register(t,r,t)}return t})(t))}function Dt(){if(this.$$.ptr||mt(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var t,e=Ft(Object.create(Object.getPrototypeOf(this),{$$:{value:(t=this.$$,{count:t.count,deleteScheduled:t.deleteScheduled,preservePointerOnDelete:t.preservePointerOnDelete,ptr:t.ptr,ptrType:t.ptrType,smartPtr:t.smartPtr,smartPtrType:t.smartPtrType})}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e}function Wt(){this.$$.ptr||mt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&vt("Object already scheduled for deletion"),bt(this),Tt(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function It(){return!this.$$.ptr}function Lt(){return this.$$.ptr||mt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&vt("Object already scheduled for deletion"),$t.push(this),1===$t.length&&Ot&&Ot(At),this.$$.deleteScheduled=!0,this}function Ut(){}function Mt(t,e,r){if(void 0===t[e].overloadTable){var n=t[e];t[e]=function(){return t[e].overloadTable.hasOwnProperty(arguments.length)||vt("Function '"+r+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+t[e].overloadTable+")!"),t[e].overloadTable[arguments.length].apply(this,arguments)},t[e].overloadTable=[],t[e].overloadTable[n.argCount]=n}}function Ht(t,e,r,n,o,i,a,s){this.name=t,this.constructor=e,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=o,this.getActualType=i,this.upcast=a,this.downcast=s,this.pureVirtualFunctions=[]}function Vt(t,e,r){for(;e!==r;)e.upcast||vt("Expected null or instance of "+r.name+", got an instance of "+e.name),t=e.upcast(t),e=e.baseClass;return t}function Bt(t,e){if(null===e)return this.isReference&&vt("null is not a valid "+this.name),0;e.$$||vt('Cannot pass "'+le(e)+'" as a '+this.name),e.$$.ptr||vt("Cannot pass deleted object as a pointer of type "+this.name);var r=e.$$.ptrType.registeredClass;return Vt(e.$$.ptr,r,this.registeredClass)}function Nt(t,e){var r;if(null===e)return this.isReference&&vt("null is not a valid "+this.name),this.isSmartPointer?(r=this.rawConstructor(),null!==t&&t.push(this.rawDestructor,r),r):0;e.$$||vt('Cannot pass "'+le(e)+'" as a '+this.name),e.$$.ptr||vt("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&e.$$.ptrType.isConst&&vt("Cannot convert argument of type "+(e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name)+" to parameter type "+this.name);var n=e.$$.ptrType.registeredClass;if(r=Vt(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===e.$$.smartPtr&&vt("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?r=e.$$.smartPtr:vt("Cannot convert argument of type "+(e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:r=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)r=e.$$.smartPtr;else{var o=e.clone();r=this.rawShare(r,fe.toHandle((function(){o.delete()}))),null!==t&&t.push(this.rawDestructor,r)}break;default:vt("Unsupporting sharing policy")}return r}function zt(t,e){if(null===e)return this.isReference&&vt("null is not a valid "+this.name),0;e.$$||vt('Cannot pass "'+le(e)+'" as a '+this.name),e.$$.ptr||vt("Cannot pass deleted object as a pointer of type "+this.name),e.$$.ptrType.isConst&&vt("Cannot convert argument of type "+e.$$.ptrType.name+" to parameter type "+this.name);var r=e.$$.ptrType.registeredClass;return Vt(e.$$.ptr,r,this.registeredClass)}function Gt(t){return this.rawGetPointee&&(t=this.rawGetPointee(t)),t}function qt(t){this.rawDestructor&&this.rawDestructor(t)}function Jt(t){null!==t&&t.delete()}function Xt(t,e,r,n,o,i,a,s,u,c,f){this.name=t,this.registeredClass=e,this.isReference=r,this.isConst=n,this.isSmartPointer=o,this.pointeeType=i,this.sharingPolicy=a,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=f,o||void 0!==e.baseClass?this.toWireType=Nt:n?(this.toWireType=Bt,this.destructorFunction=null):(this.toWireType=zt,this.destructorFunction=null)}var Yt=[];function Kt(t){var e=Yt[t];return e||(t>=Yt.length&&(Yt.length=t+1),Yt[t]=e=I.get(t)),e}function Zt(t,e,r){return t.includes("j")?function(t,e,r){var n=i["dynCall_"+t];return r&&r.length?n.apply(null,[e].concat(r)):n.call(null,e)}(t,e,r):Kt(e).apply(null,r)}function Qt(t,e){var r,n,o,i=(t=ht(t)).includes("j")?(r=t,n=e,o=[],function(){return o.length=0,Object.assign(o,arguments),Zt(r,n,o)}):Kt(e);return"function"!=typeof i&&vt("unknown function pointer with signature "+t+": "+e),i}var te=void 0;function ee(t){var e=Fe(t),r=ht(e);return Re(e),r}function re(t,e){var r=[],n={};throw e.forEach((function t(e){n[e]||nt[e]||(ot[e]?ot[e].forEach(t):(r.push(e),n[e]=!0))})),new te(t+": "+r.map(ee).join([", "]))}function ne(t,e){for(var r=[],n=0;n<t;n++)r.push(O[e+4*n>>2]);return r}function oe(t,e,r,n,o){var i=e.length;i<2&&vt("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var a=null!==e[1]&&null!==r,s=!1,u=1;u<e.length;++u)if(null!==e[u]&&void 0===e[u].destructorFunction){s=!0;break}var c="void"!==e[0].name,f="",l="";for(u=0;u<i-2;++u)f+=(0!==u?", ":"")+"arg"+u,l+=(0!==u?", ":"")+"arg"+u+"Wired";var p="return function "+it(t)+"("+f+") {\nif (arguments.length !== "+(i-2)+") {\nthrowBindingError('function "+t+" called with ' + arguments.length + ' arguments, expected "+(i-2)+" args!');\n}\n";s&&(p+="var destructors = [];\n");var h=s?"destructors":"null",d=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],v=[vt,n,o,tt,e[0],e[1]];for(a&&(p+="var thisWired = classParam.toWireType("+h+", this);\n"),u=0;u<i-2;++u)p+="var arg"+u+"Wired = argType"+u+".toWireType("+h+", arg"+u+"); // "+e[u+2].name+"\n",d.push("argType"+u),v.push(e[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<e.length;++u){var y=1===u?"thisWired":"arg"+(u-2)+"Wired";null!==e[u].destructorFunction&&(p+=y+"_dtor("+y+"); // "+e[u].name+"\n",d.push(y+"_dtor"),v.push(e[u].destructorFunction))}return c&&(p+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),p+="}\n",d.push(p),function(t,e){if(!(t instanceof Function))throw new TypeError("new_ called with constructor type "+typeof t+" which is not a function");var r=at(t.name||"unknownFunctionName",(function(){}));r.prototype=t.prototype;var n=new r,o=t.apply(n,e);return o instanceof Object?o:n}(Function,d).apply(null,v)}var ie=[],ae=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function se(t){t>4&&0==--ae[t].refcount&&(ae[t]=void 0,ie.push(t))}function ue(){for(var t=0,e=5;e<ae.length;++e)void 0!==ae[e]&&++t;return t}function ce(){for(var t=5;t<ae.length;++t)if(void 0!==ae[t])return ae[t];return null}var fe={toValue:t=>(t||vt("Cannot use deleted val. handle = "+t),ae[t].value),toHandle:t=>{switch(t){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var e=ie.length?ie.pop():ae.length;return ae[e]={refcount:1,value:t},e}}};function le(t){if(null===t)return"null";var e=typeof t;return"object"===e||"array"===e||"function"===e?t.toString():""+t}function pe(t,e){switch(e){case 2:return function(t){return this.fromWireType(S[t>>2])};case 3:return function(t){return this.fromWireType(k[t>>3])};default:throw new TypeError("Unknown float type: "+t)}}function he(t,e,r){switch(e){case 0:return r?function(t){return C[t]}:function(t){return _[t]};case 1:return r?function(t){return x[t>>1]}:function(t){return $[t>>1]};case 2:return r?function(t){return A[t>>2]}:function(t){return O[t>>2]};default:throw new TypeError("Unknown integer type: "+t)}}var de="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function ve(t,e){for(var r=t,n=r>>1,o=n+e/2;!(n>=o)&&$[n];)++n;if((r=n<<1)-t>32&&de)return de.decode(_.subarray(t,r));for(var i="",a=0;!(a>=e/2);++a){var s=x[t+2*a>>1];if(0==s)break;i+=String.fromCharCode(s)}return i}function ye(t,e,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=e,o=(r-=2)<2*t.length?r/2:t.length,i=0;i<o;++i){var a=t.charCodeAt(i);x[e>>1]=a,e+=2}return x[e>>1]=0,e-n}function ge(t){return 2*t.length}function me(t,e){for(var r=0,n="";!(r>=e/4);){var o=A[t+4*r>>2];if(0==o)break;if(++r,o>=65536){var i=o-65536;n+=String.fromCharCode(55296|i>>10,56320|1023&i)}else n+=String.fromCharCode(o)}return n}function we(t,e,r){if(void 0===r&&(r=2147483647),r<4)return 0;for(var n=e,o=n+r-4,i=0;i<t.length;++i){var a=t.charCodeAt(i);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&t.charCodeAt(++i)),A[e>>2]=a,(e+=4)+4>o)break}return A[e>>2]=0,e-n}function be(t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);n>=55296&&n<=57343&&++r,e+=4}return e}var Te={};function Pe(){return"object"==typeof globalThis?globalThis:Function("return this")()}function Ce(t,e){var r=nt[t];return void 0===r&&vt(e+" has unknown type "+ee(t)),r}var _e={};function xe(t){try{return T.grow(t-P.byteLength+65535>>>16),W(T.buffer),1}catch(t){}}var $e={};function Ae(){if(!Ae.strings){var t={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",_:l||"./this.program"};for(var e in $e)void 0===$e[e]?delete t[e]:t[e]=$e[e];var r=[];for(var e in t)r.push(e+"="+t[e]);Ae.strings=r}return Ae.strings}var Oe=[null,[],[]];function Se(t,e){var r=Oe[t];0===e||10===e?((1===t?w:b)(R(r,0)),r.length=0):r.push(e)}ut=i.InternalError=st(Error,"InternalError"),function(){for(var t=new Array(256),e=0;e<256;++e)t[e]=String.fromCharCode(e);pt=t}(),dt=i.BindingError=st(Error,"BindingError"),Ut.prototype.isAliasOf=gt,Ut.prototype.clone=Dt,Ut.prototype.delete=Wt,Ut.prototype.isDeleted=It,Ut.prototype.deleteLater=Lt,i.getInheritedInstanceCount=_t,i.getLiveInheritedInstances=xt,i.flushPendingDeletes=At,i.setDelayFunction=St,Xt.prototype.getPointee=Gt,Xt.prototype.destructor=qt,Xt.prototype.argPackAdvance=8,Xt.prototype.readValueFromPointer=et,Xt.prototype.deleteObject=Jt,Xt.prototype.fromWireType=Rt,te=i.UnboundTypeError=st(Error,"UnboundTypeError"),i.count_emval_handles=ue,i.get_first_emval=ce;var ke,je={D:function(t,e,r){throw new Z(t).init(e,r),t},e:function(t){var e=Q[t];delete Q[t];var r=e.rawConstructor,n=e.rawDestructor,o=e.fields;ft([t],o.map((t=>t.getterReturnType)).concat(o.map((t=>t.setterArgumentType))),(t=>{var i={};return o.forEach(((e,r)=>{var n=e.fieldName,a=t[r],s=e.getter,u=e.getterContext,c=t[r+o.length],f=e.setter,l=e.setterContext;i[n]={read:t=>a.fromWireType(s(u,t)),write:(t,e)=>{var r=[];f(l,t,c.toWireType(r,e)),tt(r)}}})),[{name:e.name,fromWireType:function(t){var e={};for(var r in i)e[r]=i[r].read(t);return n(t),e},toWireType:function(t,e){for(var o in i)if(!(o in e))throw new TypeError('Missing field:  "'+o+'"');var a=r();for(o in i)i[o].write(a,e[o]);return null!==t&&t.push(n,a),a},argPackAdvance:8,readValueFromPointer:et,destructorFunction:n}]}))},t:function(t,e,r,n,o){},B:function(t,e,r,n,o){var i=lt(r);yt(t,{name:e=ht(e),fromWireType:function(t){return!!t},toWireType:function(t,e){return e?n:o},argPackAdvance:8,readValueFromPointer:function(t){var n;if(1===r)n=C;else if(2===r)n=x;else{if(4!==r)throw new TypeError("Unknown boolean type size: "+e);n=A}return this.fromWireType(n[t>>i])},destructorFunction:null})},r:function(t,e,r,n,o,a,s,u,c,f,l,p,h){l=ht(l),a=Qt(o,a),u&&(u=Qt(s,u)),f&&(f=Qt(c,f)),h=Qt(p,h);var d=it(l);!function(t,e,r){i.hasOwnProperty(t)?((void 0===r||void 0!==i[t].overloadTable&&void 0!==i[t].overloadTable[r])&&vt("Cannot register public name '"+t+"' twice"),Mt(i,t,t),i.hasOwnProperty(r)&&vt("Cannot register multiple overloads of a function with the same number of arguments ("+r+")!"),i[t].overloadTable[r]=e):(i[t]=e,void 0!==r&&(i[t].numArguments=r))}(d,(function(){re("Cannot construct "+l+" due to unbound types",[n])})),ft([t,e,r],n?[n]:[],(function(e){var r,o;e=e[0],o=n?(r=e.registeredClass).instancePrototype:Ut.prototype;var s=at(d,(function(){if(Object.getPrototypeOf(this)!==c)throw new dt("Use 'new' to construct "+l);if(void 0===p.constructor_body)throw new dt(l+" has no accessible constructor");var t=p.constructor_body[arguments.length];if(void 0===t)throw new dt("Tried to invoke ctor of "+l+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(p.constructor_body).toString()+") parameters instead!");return t.apply(this,arguments)})),c=Object.create(o,{constructor:{value:s}});s.prototype=c;var p=new Ht(l,s,c,h,r,a,u,f),v=new Xt(l,p,!0,!1,!1),y=new Xt(l+"*",p,!1,!1,!1),g=new Xt(l+" const*",p,!1,!0,!1);return Ct[t]={pointerType:y,constPointerType:g},function(t,e,r){i.hasOwnProperty(t)||ct("Replacing nonexistant public symbol"),void 0!==i[t].overloadTable&&void 0!==r?i[t].overloadTable[r]=e:(i[t]=e,i[t].argCount=r)}(d,s),[v,y,g]}))},q:function(t,e,r,n,o,i){var a;e>0||G(a);var s=ne(e,r);o=Qt(n,o),ft([],[t],(function(t){var r="constructor "+(t=t[0]).name;if(void 0===t.registeredClass.constructor_body&&(t.registeredClass.constructor_body=[]),void 0!==t.registeredClass.constructor_body[e-1])throw new dt("Cannot register multiple constructors with identical number of parameters ("+(e-1)+") for class '"+t.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return t.registeredClass.constructor_body[e-1]=()=>{re("Cannot construct "+t.name+" due to unbound types",s)},ft([],s,(function(n){return n.splice(1,0,null),t.registeredClass.constructor_body[e-1]=oe(r,n,null,o,i),[]})),[]}))},b:function(t,e,r,n,o,i,a,s){var u=ne(r,n);e=ht(e),i=Qt(o,i),ft([],[t],(function(t){var n=(t=t[0]).name+"."+e;function o(){re("Cannot call "+n+" due to unbound types",u)}e.startsWith("@@")&&(e=Symbol[e.substring(2)]),s&&t.registeredClass.pureVirtualFunctions.push(e);var c=t.registeredClass.instancePrototype,f=c[e];return void 0===f||void 0===f.overloadTable&&f.className!==t.name&&f.argCount===r-2?(o.argCount=r-2,o.className=t.name,c[e]=o):(Mt(c,e,n),c[e].overloadTable[r-2]=o),ft([],u,(function(o){var s=oe(n,o,t,i,a);return void 0===c[e].overloadTable?(s.argCount=r-2,c[e]=s):c[e].overloadTable[r-2]=s,[]})),[]}))},A:function(t,e){yt(t,{name:e=ht(e),fromWireType:function(t){var e=fe.toValue(t);return se(t),e},toWireType:function(t,e){return fe.toHandle(e)},argPackAdvance:8,readValueFromPointer:et,destructorFunction:null})},l:function(t,e,r){var n=lt(r);yt(t,{name:e=ht(e),fromWireType:function(t){return t},toWireType:function(t,e){return e},argPackAdvance:8,readValueFromPointer:pe(e,n),destructorFunction:null})},d:function(t,e,r,n,o){e=ht(e),-1===o&&(o=4294967295);var i=lt(r),a=t=>t;if(0===n){var s=32-8*r;a=t=>t<<s>>>s}var u=e.includes("unsigned");yt(t,{name:e,fromWireType:a,toWireType:u?function(t,e){return this.name,e>>>0}:function(t,e){return this.name,e},argPackAdvance:8,readValueFromPointer:he(e,i,0!==n),destructorFunction:null})},a:function(t,e,r){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function o(t){var e=O,r=e[t>>=2],o=e[t+1];return new n(P,o,r)}yt(t,{name:r=ht(r),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},k:function(t,e){var r="std::string"===(e=ht(e));yt(t,{name:e,fromWireType:function(t){var e,n=O[t>>2],o=t+4;if(r)for(var i=o,a=0;a<=n;++a){var s=o+a;if(a==n||0==_[s]){var u=F(i,s-i);void 0===e?e=u:(e+=String.fromCharCode(0),e+=u),i=s+1}}else{var c=new Array(n);for(a=0;a<n;++a)c[a]=String.fromCharCode(_[o+a]);e=c.join("")}return Re(t),e},toWireType:function(t,e){var n;e instanceof ArrayBuffer&&(e=new Uint8Array(e));var o="string"==typeof e;o||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||vt("Cannot pass non-string to std::string"),n=r&&o?function(t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++r):e+=3}return e}(e):e.length;var i=Ee(4+n+1),a=i+4;if(O[i>>2]=n,r&&o)D(e,a,n+1);else if(o)for(var s=0;s<n;++s){var u=e.charCodeAt(s);u>255&&(Re(a),vt("String has UTF-16 code units that do not fit in 8 bits")),_[a+s]=u}else for(s=0;s<n;++s)_[a+s]=e[s];return null!==t&&t.push(Re,i),i},argPackAdvance:8,readValueFromPointer:et,destructorFunction:function(t){Re(t)}})},f:function(t,e,r){var n,o,i,a,s;r=ht(r),2===e?(n=ve,o=ye,a=ge,i=()=>$,s=1):4===e&&(n=me,o=we,a=be,i=()=>O,s=2),yt(t,{name:r,fromWireType:function(t){for(var r,o=O[t>>2],a=i(),u=t+4,c=0;c<=o;++c){var f=t+4+c*e;if(c==o||0==a[f>>s]){var l=n(u,f-u);void 0===r?r=l:(r+=String.fromCharCode(0),r+=l),u=f+e}}return Re(t),r},toWireType:function(t,n){"string"!=typeof n&&vt("Cannot pass non-string to C++ string type "+r);var i=a(n),u=Ee(4+i+e);return O[u>>2]=i>>s,o(n,u+4,i+e),null!==t&&t.push(Re,u),u},argPackAdvance:8,readValueFromPointer:et,destructorFunction:function(t){Re(t)}})},g:function(t,e,r,n,o,i){Q[t]={name:ht(e),rawConstructor:Qt(r,n),rawDestructor:Qt(o,i),fields:[]}},c:function(t,e,r,n,o,i,a,s,u,c){Q[t].fields.push({fieldName:ht(e),getterReturnType:r,getter:Qt(n,o),getterContext:i,setterArgumentType:a,setter:Qt(s,u),setterContext:c})},C:function(t,e){yt(t,{isVoid:!0,name:e=ht(e),argPackAdvance:0,fromWireType:function(){},toWireType:function(t,e){}})},h:se,o:function(t){return 0===t?fe.toHandle(Pe()):(t=void 0===(r=Te[e=t])?ht(e):r,fe.toHandle(Pe()[t]));var e,r},m:function(t){t>4&&(ae[t].refcount+=1)},n:function(t,e,r,n){t=fe.toValue(t);var o=_e[e];return o||(o=function(t){for(var e="",r=0;r<t;++r)e+=(0!==r?", ":"")+"arg"+r;var n="return function emval_allocator_"+t+"(constructor, argTypes, args) {\n  var HEAPU32 = getMemory();\n";for(r=0;r<t;++r)n+="var argType"+r+" = requireRegisteredType(HEAPU32[((argTypes)>>2)], 'parameter "+r+"');\nvar arg"+r+" = argType"+r+".readValueFromPointer(args);\nargs += argType"+r+"['argPackAdvance'];\nargTypes += 4;\n";return n+="var obj = new constructor("+e+");\nreturn valueToHandle(obj);\n}\n",new Function("requireRegisteredType","Module","valueToHandle","getMemory",n)(Ce,i,fe.toHandle,(()=>O))}(e),_e[e]=o),o(t,r,n)},p:function(t,e){var r=(t=Ce(t,"_emval_take_value")).readValueFromPointer(e);return fe.toHandle(r)},i:function(){G("")},v:function(){return 2147483648},z:function(t,e,r){_.copyWithin(t,e,e+r)},u:function(t){var e,r,n=_.length,o=2147483648;if((t>>>=0)>o)return!1;for(var i=1;i<=4;i*=2){var a=n*(1+.2/i);if(a=Math.min(a,t+100663296),xe(Math.min(o,(e=Math.max(t,a))+((r=65536)-e%r)%r)))return!0}return!1},w:function(t,e){var r=0;return Ae().forEach((function(n,o){var i=e+r;O[t+4*o>>2]=i,function(t,e,r){for(var n=0;n<t.length;++n)C[e++>>0]=t.charCodeAt(n);r||(C[e>>0]=0)}(n,i),r+=n.length+1})),0},x:function(t,e){var r=Ae();O[t>>2]=r.length;var n=0;return r.forEach((function(t){n+=t.length+1})),O[e>>2]=n,0},y:function(t){return 52},s:function(t,e,r,n,o){return 70},j:function(t,e,r,n){for(var o=0,i=0;i<r;i++){var a=O[e>>2],s=O[e+4>>2];e+=8;for(var u=0;u<s;u++)Se(t,_[a+u]);o+=s}return O[n>>2]=o,0}},Ee=(function(){var t={a:je};function e(t,e){var r,n=t.exports;i.asm=n,W((T=i.asm.E).buffer),I=i.asm.G,r=i.asm.F,H.unshift(r),function(t){if(B--,i.monitorRunDependencies&&i.monitorRunDependencies(B),0==B&&(null!==N&&(clearInterval(N),N=null),z)){var e=z;z=null,e()}}()}function r(t){e(t.instance)}function n(e){return function(){if(!m&&(p||h)){if("function"==typeof fetch&&!J(L))return fetch(L,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at '"+L+"'";return t.arrayBuffer()})).catch((function(){return X(L)}));if(s)return new Promise((function(t,e){s(L,(function(e){t(new Uint8Array(e))}),e)}))}return Promise.resolve().then((function(){return X(L)}))}().then((function(e){return WebAssembly.instantiate(e,t)})).then((function(t){return t})).then(e,(function(t){b("failed to asynchronously prepare wasm: "+t),G(t)}))}if(B++,i.monitorRunDependencies&&i.monitorRunDependencies(B),i.instantiateWasm)try{return i.instantiateWasm(t,e)}catch(t){b("Module.instantiateWasm callback failed with error: "+t),o(t)}(m||"function"!=typeof WebAssembly.instantiateStreaming||q(L)||J(L)||d||"function"!=typeof fetch?n(r):fetch(L,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,t).then(r,(function(t){return b("wasm streaming compile failed: "+t),b("falling back to ArrayBuffer instantiation"),n(r)}))}))).catch(o)}(),i.___wasm_call_ctors=function(){return(i.___wasm_call_ctors=i.asm.F).apply(null,arguments)},i._malloc=function(){return(Ee=i._malloc=i.asm.H).apply(null,arguments)}),Re=i._free=function(){return(Re=i._free=i.asm.I).apply(null,arguments)},Fe=i.___getTypeName=function(){return(Fe=i.___getTypeName=i.asm.J).apply(null,arguments)},De=(i.__embind_initialize_bindings=function(){return(i.__embind_initialize_bindings=i.asm.K).apply(null,arguments)},i.stackSave=function(){return(De=i.stackSave=i.asm.L).apply(null,arguments)}),We=i.stackRestore=function(){return(We=i.stackRestore=i.asm.M).apply(null,arguments)},Ie=i.stackAlloc=function(){return(Ie=i.stackAlloc=i.asm.N).apply(null,arguments)},Le=i.___cxa_is_pointer_type=function(){return(Le=i.___cxa_is_pointer_type=i.asm.O).apply(null,arguments)};function Ue(t){function r(){ke||(ke=!0,i.calledRun=!0,j||(K(H),e(i),i.onRuntimeInitialized&&i.onRuntimeInitialized(),function(){if(i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;)t=i.postRun.shift(),V.unshift(t);var t;K(V)}()))}t=t||f,B>0||(function(){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)t=i.preRun.shift(),M.unshift(t);var t;K(M)}(),B>0||(i.setStatus?(i.setStatus("Running..."),setTimeout((function(){setTimeout((function(){i.setStatus("")}),1),r()}),1)):r()))}if(i.dynCall_iji=function(){return(i.dynCall_iji=i.asm.P).apply(null,arguments)},i.dynCall_jji=function(){return(i.dynCall_jji=i.asm.Q).apply(null,arguments)},i.dynCall_iiji=function(){return(i.dynCall_iiji=i.asm.R).apply(null,arguments)},i.dynCall_jiji=function(){return(i.dynCall_jiji=i.asm.S).apply(null,arguments)},i.ccall=function(t,e,r,n,o){var a={string:t=>{var e=0;if(null!=t&&0!==t){var r=1+(t.length<<2);D(t,e=Ie(r),r)}return e},array:t=>{var e=Ie(t.length);return function(t,e){C.set(t,e)}(t,e),e}},s=function(t){return i["_"+t]}(t),u=[],c=0;if(n)for(var f=0;f<n.length;f++){var l=a[r[f]];l?(0===c&&(c=De()),u[f]=l(n[f])):u[f]=n[f]}var p=s.apply(null,u);return p=function(t){return 0!==c&&We(c),function(t){return"string"===e?F(t):"boolean"===e?Boolean(t):t}(t)}(p)},z=function t(){ke||Ue(),ke||(z=t)},i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);i.preInit.length>0;)i.preInit.pop()();return Ue(),t.ready});t.exports=o},6396:(t,e,r)=>{var n,o=(n=(n="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0)||"/index.js",function(t){var e,o;(t=void 0!==(t=t||{})?t:{}).ready=new Promise((function(t,r){e=t,o=r}));var i,a,s,u=Object.assign({},t),c=[],f="object"==typeof window,l="function"==typeof importScripts,p="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,h="";if(p){var d=r(4555),v=r(1005);h=l?v.dirname(h)+"/":"//",i=(t,e)=>(t=G(t)?new URL(t):v.normalize(t),d.readFileSync(t,e?void 0:"utf8")),s=t=>{var e=i(t,!0);return e.buffer||(e=new Uint8Array(e)),e},a=(t,e,r)=>{t=G(t)?new URL(t):v.normalize(t),d.readFile(t,(function(t,n){t?r(t):e(n.buffer)}))},process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),c=process.argv.slice(2),process.on("uncaughtException",(function(t){if(!(t instanceof J))throw t})),process.on("unhandledRejection",(function(t){throw t})),t.inspect=function(){return"[Emscripten Module object]"}}else(f||l)&&(l?h=self.location.href:"undefined"!=typeof document&&document.currentScript&&(h=document.currentScript.src),n&&(h=n),h=0!==h.indexOf("blob:")?h.substr(0,h.replace(/[?#].*/,"").lastIndexOf("/")+1):"",i=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},l&&(s=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),a=(t,e,r)=>{var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?e(n.response):r()},n.onerror=r,n.send(null)});var y,g=t.print||console.log.bind(console),m=t.printErr||console.warn.bind(console);Object.assign(t,u),u=null,t.arguments&&(c=t.arguments),t.thisProgram&&t.thisProgram,t.quit&&t.quit,t.wasmBinary&&(y=t.wasmBinary);var w;t.noExitRuntime;"object"!=typeof WebAssembly&&N("no native wasm support detected");var b,T,P,C,_,x,$,A,O,S=!1,k="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function j(t,e,r){for(var n=e+r,o=e;t[o]&&!(o>=n);)++o;if(o-e>16&&t.buffer&&k)return k.decode(t.subarray(e,o));for(var i="";e<o;){var a=t[e++];if(128&a){var s=63&t[e++];if(192!=(224&a)){var u=63&t[e++];if((a=224==(240&a)?(15&a)<<12|s<<6|u:(7&a)<<18|s<<12|u<<6|63&t[e++])<65536)i+=String.fromCharCode(a);else{var c=a-65536;i+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else i+=String.fromCharCode((31&a)<<6|s)}else i+=String.fromCharCode(a)}return i}function E(t,e){return t?j(P,t,e):""}function R(t,e,r){return function(t,e,r,n){if(!(n>0))return 0;for(var o=r,i=r+n-1,a=0;a<t.length;++a){var s=t.charCodeAt(a);if(s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&t.charCodeAt(++a)),s<=127){if(r>=i)break;e[r++]=s}else if(s<=2047){if(r+1>=i)break;e[r++]=192|s>>6,e[r++]=128|63&s}else if(s<=65535){if(r+2>=i)break;e[r++]=224|s>>12,e[r++]=128|s>>6&63,e[r++]=128|63&s}else{if(r+3>=i)break;e[r++]=240|s>>18,e[r++]=128|s>>12&63,e[r++]=128|s>>6&63,e[r++]=128|63&s}}return e[r]=0,r-o}(t,P,e,r)}function F(e){b=e,t.HEAP8=T=new Int8Array(e),t.HEAP16=C=new Int16Array(e),t.HEAP32=x=new Int32Array(e),t.HEAPU8=P=new Uint8Array(e),t.HEAPU16=_=new Uint16Array(e),t.HEAPU32=$=new Uint32Array(e),t.HEAPF32=A=new Float32Array(e),t.HEAPF64=O=new Float64Array(e)}t.INITIAL_MEMORY;var D,W,I,L=[],U=[],M=[],H=0,V=null,B=null;function N(e){t.onAbort&&t.onAbort(e),m(e="Aborted("+e+")"),S=!0,e+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(e);throw o(r),r}function z(t){return t.startsWith("data:application/octet-stream;base64,")}function G(t){return t.startsWith("file://")}function q(t){try{if(t==W&&y)return new Uint8Array(y);if(s)return s(t);throw"both async and sync fetching of the wasm failed"}catch(t){N(t)}}function J(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}function X(e){for(;e.length>0;)e.shift()(t)}z(W="openjphjs.wasm")||(I=W,W=t.locateFile?t.locateFile(I,h):h+I);var Y=[],K=0,Z=[];function Q(t){var e=Z[t];return e||(t>=Z.length&&(Z.length=t+1),Z[t]=e=D.get(t)),e}function tt(t){this.excPtr=t,this.ptr=t-24,this.set_type=function(t){$[this.ptr+4>>2]=t},this.get_type=function(){return $[this.ptr+4>>2]},this.set_destructor=function(t){$[this.ptr+8>>2]=t},this.get_destructor=function(){return $[this.ptr+8>>2]},this.set_refcount=function(t){x[this.ptr>>2]=t},this.set_caught=function(t){t=t?1:0,T[this.ptr+12>>0]=t},this.get_caught=function(){return 0!=T[this.ptr+12>>0]},this.set_rethrown=function(t){t=t?1:0,T[this.ptr+13>>0]=t},this.get_rethrown=function(){return 0!=T[this.ptr+13>>0]},this.init=function(t,e){this.set_adjusted_ptr(0),this.set_type(t),this.set_destructor(e),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var t=x[this.ptr>>2];x[this.ptr>>2]=t+1},this.release_ref=function(){var t=x[this.ptr>>2];return x[this.ptr>>2]=t-1,1===t},this.set_adjusted_ptr=function(t){$[this.ptr+16>>2]=t},this.get_adjusted_ptr=function(){return $[this.ptr+16>>2]},this.get_exception_ptr=function(){if(Ie(this.get_type()))return $[this.excPtr>>2];var t=this.get_adjusted_ptr();return 0!==t?t:this.excPtr}}var et={};function rt(t){for(;t.length;){var e=t.pop();t.pop()(e)}}function nt(t){return this.fromWireType(x[t>>2])}var ot={},it={},at={};function st(t){if(void 0===t)return"_unknown";var e=(t=t.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return e>=48&&e<=57?"_"+t:t}function ut(t,e){return t=st(t),new Function("body","return function "+t+'() {\n    "use strict";    return body.apply(this, arguments);\n};\n')(e)}function ct(t,e){var r=ut(e,(function(t){this.name=e,this.message=t;var r=new Error(t).stack;void 0!==r&&(this.stack=this.toString()+"\n"+r.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},r}var ft=void 0;function lt(t){throw new ft(t)}function pt(t,e,r){function n(e){var n=r(e);n.length!==t.length&&lt("Mismatched type converter count");for(var o=0;o<t.length;++o)mt(t[o],n[o])}t.forEach((function(t){at[t]=e}));var o=new Array(e.length),i=[],a=0;e.forEach(((t,e)=>{it.hasOwnProperty(t)?o[e]=it[t]:(i.push(t),ot.hasOwnProperty(t)||(ot[t]=[]),ot[t].push((()=>{o[e]=it[t],++a===i.length&&n(o)})))})),0===i.length&&n(o)}function ht(t){switch(t){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+t)}}var dt=void 0;function vt(t){for(var e="",r=t;P[r];)e+=dt[P[r++]];return e}var yt=void 0;function gt(t){throw new yt(t)}function mt(t,e,r={}){if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");var n=e.name;if(t||gt('type "'+n+'" must have a positive integer typeid pointer'),it.hasOwnProperty(t)){if(r.ignoreDuplicateRegistrations)return;gt("Cannot register type '"+n+"' twice")}if(it[t]=e,delete at[t],ot.hasOwnProperty(t)){var o=ot[t];delete ot[t],o.forEach((t=>t()))}}function wt(t){if(!(this instanceof Ht))return!1;if(!(t instanceof Ht))return!1;for(var e=this.$$.ptrType.registeredClass,r=this.$$.ptr,n=t.$$.ptrType.registeredClass,o=t.$$.ptr;e.baseClass;)r=e.upcast(r),e=e.baseClass;for(;n.baseClass;)o=n.upcast(o),n=n.baseClass;return e===n&&r===o}function bt(t){gt(t.$$.ptrType.registeredClass.name+" instance already deleted")}var Tt=!1;function Pt(t){}function Ct(t){t.count.value-=1,0===t.count.value&&function(t){t.smartPtr?t.smartPtrType.rawDestructor(t.smartPtr):t.ptrType.registeredClass.rawDestructor(t.ptr)}(t)}function _t(t,e,r){if(e===r)return t;if(void 0===r.baseClass)return null;var n=_t(t,e,r.baseClass);return null===n?null:r.downcast(n)}var xt={};function $t(){return Object.keys(Et).length}function At(){var t=[];for(var e in Et)Et.hasOwnProperty(e)&&t.push(Et[e]);return t}var Ot=[];function St(){for(;Ot.length;){var t=Ot.pop();t.$$.deleteScheduled=!1,t.delete()}}var kt=void 0;function jt(t){kt=t,Ot.length&&kt&&kt(St)}var Et={};function Rt(t,e){return e=function(t,e){for(void 0===e&&gt("ptr should not be undefined");t.baseClass;)e=t.upcast(e),t=t.baseClass;return e}(t,e),Et[e]}function Ft(t,e){return e.ptrType&&e.ptr||lt("makeClassHandle requires ptr and ptrType"),!!e.smartPtrType!=!!e.smartPtr&&lt("Both smartPtrType and smartPtr must be specified"),e.count={value:1},Wt(Object.create(t,{$$:{value:e}}))}function Dt(t){var e=this.getPointee(t);if(!e)return this.destructor(t),null;var r=Rt(this.registeredClass,e);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=e,r.$$.smartPtr=t,r.clone();var n=r.clone();return this.destructor(t),n}function o(){return this.isSmartPointer?Ft(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:t}):Ft(this.registeredClass.instancePrototype,{ptrType:this,ptr:t})}var i,a=this.registeredClass.getActualType(e),s=xt[a];if(!s)return o.call(this);i=this.isConst?s.constPointerType:s.pointerType;var u=_t(e,this.registeredClass,i.registeredClass);return null===u?o.call(this):this.isSmartPointer?Ft(i.registeredClass.instancePrototype,{ptrType:i,ptr:u,smartPtrType:this,smartPtr:t}):Ft(i.registeredClass.instancePrototype,{ptrType:i,ptr:u})}function Wt(t){return"undefined"==typeof FinalizationRegistry?(Wt=t=>t,t):(Tt=new FinalizationRegistry((t=>{Ct(t.$$)})),Pt=t=>Tt.unregister(t),(Wt=t=>{var e=t.$$;if(e.smartPtr){var r={$$:e};Tt.register(t,r,t)}return t})(t))}function It(){if(this.$$.ptr||bt(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var t,e=Wt(Object.create(Object.getPrototypeOf(this),{$$:{value:(t=this.$$,{count:t.count,deleteScheduled:t.deleteScheduled,preservePointerOnDelete:t.preservePointerOnDelete,ptr:t.ptr,ptrType:t.ptrType,smartPtr:t.smartPtr,smartPtrType:t.smartPtrType})}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e}function Lt(){this.$$.ptr||bt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&gt("Object already scheduled for deletion"),Pt(this),Ct(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function Ut(){return!this.$$.ptr}function Mt(){return this.$$.ptr||bt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&gt("Object already scheduled for deletion"),Ot.push(this),1===Ot.length&&kt&&kt(St),this.$$.deleteScheduled=!0,this}function Ht(){}function Vt(t,e,r){if(void 0===t[e].overloadTable){var n=t[e];t[e]=function(){return t[e].overloadTable.hasOwnProperty(arguments.length)||gt("Function '"+r+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+t[e].overloadTable+")!"),t[e].overloadTable[arguments.length].apply(this,arguments)},t[e].overloadTable=[],t[e].overloadTable[n.argCount]=n}}function Bt(e,r,n){t.hasOwnProperty(e)?((void 0===n||void 0!==t[e].overloadTable&&void 0!==t[e].overloadTable[n])&&gt("Cannot register public name '"+e+"' twice"),Vt(t,e,e),t.hasOwnProperty(n)&&gt("Cannot register multiple overloads of a function with the same number of arguments ("+n+")!"),t[e].overloadTable[n]=r):(t[e]=r,void 0!==n&&(t[e].numArguments=n))}function Nt(t,e,r,n,o,i,a,s){this.name=t,this.constructor=e,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=o,this.getActualType=i,this.upcast=a,this.downcast=s,this.pureVirtualFunctions=[]}function zt(t,e,r){for(;e!==r;)e.upcast||gt("Expected null or instance of "+r.name+", got an instance of "+e.name),t=e.upcast(t),e=e.baseClass;return t}function Gt(t,e){if(null===e)return this.isReference&&gt("null is not a valid "+this.name),0;e.$$||gt('Cannot pass "'+he(e)+'" as a '+this.name),e.$$.ptr||gt("Cannot pass deleted object as a pointer of type "+this.name);var r=e.$$.ptrType.registeredClass;return zt(e.$$.ptr,r,this.registeredClass)}function qt(t,e){var r;if(null===e)return this.isReference&&gt("null is not a valid "+this.name),this.isSmartPointer?(r=this.rawConstructor(),null!==t&&t.push(this.rawDestructor,r),r):0;e.$$||gt('Cannot pass "'+he(e)+'" as a '+this.name),e.$$.ptr||gt("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&e.$$.ptrType.isConst&&gt("Cannot convert argument of type "+(e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name)+" to parameter type "+this.name);var n=e.$$.ptrType.registeredClass;if(r=zt(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===e.$$.smartPtr&&gt("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?r=e.$$.smartPtr:gt("Cannot convert argument of type "+(e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:r=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)r=e.$$.smartPtr;else{var o=e.clone();r=this.rawShare(r,pe.toHandle((function(){o.delete()}))),null!==t&&t.push(this.rawDestructor,r)}break;default:gt("Unsupporting sharing policy")}return r}function Jt(t,e){if(null===e)return this.isReference&&gt("null is not a valid "+this.name),0;e.$$||gt('Cannot pass "'+he(e)+'" as a '+this.name),e.$$.ptr||gt("Cannot pass deleted object as a pointer of type "+this.name),e.$$.ptrType.isConst&&gt("Cannot convert argument of type "+e.$$.ptrType.name+" to parameter type "+this.name);var r=e.$$.ptrType.registeredClass;return zt(e.$$.ptr,r,this.registeredClass)}function Xt(t){return this.rawGetPointee&&(t=this.rawGetPointee(t)),t}function Yt(t){this.rawDestructor&&this.rawDestructor(t)}function Kt(t){null!==t&&t.delete()}function Zt(t,e,r,n,o,i,a,s,u,c,f){this.name=t,this.registeredClass=e,this.isReference=r,this.isConst=n,this.isSmartPointer=o,this.pointeeType=i,this.sharingPolicy=a,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=f,o||void 0!==e.baseClass?this.toWireType=qt:n?(this.toWireType=Gt,this.destructorFunction=null):(this.toWireType=Jt,this.destructorFunction=null)}function Qt(e,r,n){t.hasOwnProperty(e)||lt("Replacing nonexistant public symbol"),void 0!==t[e].overloadTable&&void 0!==n?t[e].overloadTable[n]=r:(t[e]=r,t[e].argCount=n)}function te(e,r,n){return e.includes("j")?function(e,r,n){var o=t["dynCall_"+e];return n&&n.length?o.apply(null,[r].concat(n)):o.call(null,r)}(e,r,n):Q(r).apply(null,n)}function ee(t,e){var r,n,o,i=(t=vt(t)).includes("j")?(r=t,n=e,o=[],function(){return o.length=0,Object.assign(o,arguments),te(r,n,o)}):Q(e);return"function"!=typeof i&&gt("unknown function pointer with signature "+t+": "+e),i}var re=void 0;function ne(t){var e=je(t),r=vt(e);return ke(e),r}function oe(t,e){var r=[],n={};throw e.forEach((function t(e){n[e]||it[e]||(at[e]?at[e].forEach(t):(r.push(e),n[e]=!0))})),new re(t+": "+r.map(ne).join([", "]))}function ie(t,e){for(var r=[],n=0;n<t;n++)r.push($[e+4*n>>2]);return r}function ae(t,e,r,n,o){var i=e.length;i<2&&gt("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var a=null!==e[1]&&null!==r,s=!1,u=1;u<e.length;++u)if(null!==e[u]&&void 0===e[u].destructorFunction){s=!0;break}var c="void"!==e[0].name,f="",l="";for(u=0;u<i-2;++u)f+=(0!==u?", ":"")+"arg"+u,l+=(0!==u?", ":"")+"arg"+u+"Wired";var p="return function "+st(t)+"("+f+") {\nif (arguments.length !== "+(i-2)+") {\nthrowBindingError('function "+t+" called with ' + arguments.length + ' arguments, expected "+(i-2)+" args!');\n}\n";s&&(p+="var destructors = [];\n");var h=s?"destructors":"null",d=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],v=[gt,n,o,rt,e[0],e[1]];for(a&&(p+="var thisWired = classParam.toWireType("+h+", this);\n"),u=0;u<i-2;++u)p+="var arg"+u+"Wired = argType"+u+".toWireType("+h+", arg"+u+"); // "+e[u+2].name+"\n",d.push("argType"+u),v.push(e[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<e.length;++u){var y=1===u?"thisWired":"arg"+(u-2)+"Wired";null!==e[u].destructorFunction&&(p+=y+"_dtor("+y+"); // "+e[u].name+"\n",d.push(y+"_dtor"),v.push(e[u].destructorFunction))}return c&&(p+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),p+="}\n",d.push(p),function(t,e){if(!(t instanceof Function))throw new TypeError("new_ called with constructor type "+typeof t+" which is not a function");var r=ut(t.name||"unknownFunctionName",(function(){}));r.prototype=t.prototype;var n=new r,o=t.apply(n,e);return o instanceof Object?o:n}(Function,d).apply(null,v)}var se=[],ue=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function ce(t){t>4&&0==--ue[t].refcount&&(ue[t]=void 0,se.push(t))}function fe(){for(var t=0,e=5;e<ue.length;++e)void 0!==ue[e]&&++t;return t}function le(){for(var t=5;t<ue.length;++t)if(void 0!==ue[t])return ue[t];return null}var pe={toValue:t=>(t||gt("Cannot use deleted val. handle = "+t),ue[t].value),toHandle:t=>{switch(t){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var e=se.length?se.pop():ue.length;return ue[e]={refcount:1,value:t},e}}};function he(t){if(null===t)return"null";var e=typeof t;return"object"===e||"array"===e||"function"===e?t.toString():""+t}function de(t,e){switch(e){case 2:return function(t){return this.fromWireType(A[t>>2])};case 3:return function(t){return this.fromWireType(O[t>>3])};default:throw new TypeError("Unknown float type: "+t)}}function ve(t,e,r){switch(e){case 0:return r?function(t){return T[t]}:function(t){return P[t]};case 1:return r?function(t){return C[t>>1]}:function(t){return _[t>>1]};case 2:return r?function(t){return x[t>>2]}:function(t){return $[t>>2]};default:throw new TypeError("Unknown integer type: "+t)}}var ye="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function ge(t,e){for(var r=t,n=r>>1,o=n+e/2;!(n>=o)&&_[n];)++n;if((r=n<<1)-t>32&&ye)return ye.decode(P.subarray(t,r));for(var i="",a=0;!(a>=e/2);++a){var s=C[t+2*a>>1];if(0==s)break;i+=String.fromCharCode(s)}return i}function me(t,e,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=e,o=(r-=2)<2*t.length?r/2:t.length,i=0;i<o;++i){var a=t.charCodeAt(i);C[e>>1]=a,e+=2}return C[e>>1]=0,e-n}function we(t){return 2*t.length}function be(t,e){for(var r=0,n="";!(r>=e/4);){var o=x[t+4*r>>2];if(0==o)break;if(++r,o>=65536){var i=o-65536;n+=String.fromCharCode(55296|i>>10,56320|1023&i)}else n+=String.fromCharCode(o)}return n}function Te(t,e,r){if(void 0===r&&(r=2147483647),r<4)return 0;for(var n=e,o=n+r-4,i=0;i<t.length;++i){var a=t.charCodeAt(i);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&t.charCodeAt(++i)),x[e>>2]=a,(e+=4)+4>o)break}return x[e>>2]=0,e-n}function Pe(t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);n>=55296&&n<=57343&&++r,e+=4}return e}function Ce(t){try{return w.grow(t-b.byteLength+65535>>>16),F(w.buffer),1}catch(t){}}var _e=[null,[],[]];function xe(t,e){var r=_e[t];0===e||10===e?((1===t?g:m)(j(r,0)),r.length=0):r.push(e)}ft=t.InternalError=ct(Error,"InternalError"),function(){for(var t=new Array(256),e=0;e<256;++e)t[e]=String.fromCharCode(e);dt=t}(),yt=t.BindingError=ct(Error,"BindingError"),Ht.prototype.isAliasOf=wt,Ht.prototype.clone=It,Ht.prototype.delete=Lt,Ht.prototype.isDeleted=Ut,Ht.prototype.deleteLater=Mt,t.getInheritedInstanceCount=$t,t.getLiveInheritedInstances=At,t.flushPendingDeletes=St,t.setDelayFunction=jt,Zt.prototype.getPointee=Xt,Zt.prototype.destructor=Yt,Zt.prototype.argPackAdvance=8,Zt.prototype.readValueFromPointer=nt,Zt.prototype.deleteObject=Kt,Zt.prototype.fromWireType=Dt,re=t.UnboundTypeError=ct(Error,"UnboundTypeError"),t.count_emval_handles=fe,t.get_first_emval=le;var $e,Ae={M:function(t){var e=new tt(t);return e.get_caught()||e.set_caught(!0),e.set_rethrown(!1),Y.push(e),function(t){t.add_ref()}(e),e.get_exception_ptr()},v:function(){_setThrew(0),function(t){if(t.release_ref()&&!t.get_rethrown()){var e=t.get_destructor();e&&Q(e)(t.excPtr),Se(t.excPtr)}}(Y.pop()),K=0},c:function(){var t=K;if(!t)return Ee(0),0;var e=new tt(t);e.set_adjusted_ptr(t);var r=e.get_type();if(!r)return Ee(0),t;for(var n=0;n<arguments.length;n++){var o=arguments[n];if(0===o||o===r)break;var i=e.ptr+16;if(We(o,r,i))return Ee(o),t}return Ee(r),t},j:function(){var t=K;if(!t)return Ee(0),0;var e=new tt(t);e.set_adjusted_ptr(t);var r=e.get_type();if(!r)return Ee(0),t;for(var n=0;n<arguments.length;n++){var o=arguments[n];if(0===o||o===r)break;var i=e.ptr+16;if(We(o,r,i))return Ee(o),t}return Ee(r),t},i:function(t,e,r){throw new tt(t).init(e,r),K=t,t},f:function(t){throw K||(K=t),t},B:function(t){var e=et[t];delete et[t];var r=e.rawConstructor,n=e.rawDestructor,o=e.fields;pt([t],o.map((t=>t.getterReturnType)).concat(o.map((t=>t.setterArgumentType))),(t=>{var i={};return o.forEach(((e,r)=>{var n=e.fieldName,a=t[r],s=e.getter,u=e.getterContext,c=t[r+o.length],f=e.setter,l=e.setterContext;i[n]={read:t=>a.fromWireType(s(u,t)),write:(t,e)=>{var r=[];f(l,t,c.toWireType(r,e)),rt(r)}}})),[{name:e.name,fromWireType:function(t){var e={};for(var r in i)e[r]=i[r].read(t);return n(t),e},toWireType:function(t,e){for(var o in i)if(!(o in e))throw new TypeError('Missing field:  "'+o+'"');var a=r();for(o in i)i[o].write(a,e[o]);return null!==t&&t.push(n,a),a},argPackAdvance:8,readValueFromPointer:nt,destructorFunction:n}]}))},E:function(t,e,r,n,o){},J:function(t,e,r,n,o){var i=ht(r);mt(t,{name:e=vt(e),fromWireType:function(t){return!!t},toWireType:function(t,e){return e?n:o},argPackAdvance:8,readValueFromPointer:function(t){var n;if(1===r)n=T;else if(2===r)n=C;else{if(4!==r)throw new TypeError("Unknown boolean type size: "+e);n=x}return this.fromWireType(n[t>>i])},destructorFunction:null})},z:function(t,e,r,n,o,i,a,s,u,c,f,l,p){f=vt(f),i=ee(o,i),s&&(s=ee(a,s)),c&&(c=ee(u,c)),p=ee(l,p);var h=st(f);Bt(h,(function(){oe("Cannot construct "+f+" due to unbound types",[n])})),pt([t,e,r],n?[n]:[],(function(e){var r,o;e=e[0],o=n?(r=e.registeredClass).instancePrototype:Ht.prototype;var a=ut(h,(function(){if(Object.getPrototypeOf(this)!==u)throw new yt("Use 'new' to construct "+f);if(void 0===l.constructor_body)throw new yt(f+" has no accessible constructor");var t=l.constructor_body[arguments.length];if(void 0===t)throw new yt("Tried to invoke ctor of "+f+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(l.constructor_body).toString()+") parameters instead!");return t.apply(this,arguments)})),u=Object.create(o,{constructor:{value:a}});a.prototype=u;var l=new Nt(f,a,u,p,r,i,s,c),d=new Zt(f,l,!0,!1,!1),v=new Zt(f+"*",l,!1,!1,!1),y=new Zt(f+" const*",l,!1,!0,!1);return xt[t]={pointerType:v,constPointerType:y},Qt(h,a),[d,v,y]}))},y:function(t,e,r,n,o,i){var a;e>0||N(a);var s=ie(e,r);o=ee(n,o),pt([],[t],(function(t){var r="constructor "+(t=t[0]).name;if(void 0===t.registeredClass.constructor_body&&(t.registeredClass.constructor_body=[]),void 0!==t.registeredClass.constructor_body[e-1])throw new yt("Cannot register multiple constructors with identical number of parameters ("+(e-1)+") for class '"+t.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return t.registeredClass.constructor_body[e-1]=()=>{oe("Cannot construct "+t.name+" due to unbound types",s)},pt([],s,(function(n){return n.splice(1,0,null),t.registeredClass.constructor_body[e-1]=ae(r,n,null,o,i),[]})),[]}))},a:function(t,e,r,n,o,i,a,s){var u=ie(r,n);e=vt(e),i=ee(o,i),pt([],[t],(function(t){var n=(t=t[0]).name+"."+e;function o(){oe("Cannot call "+n+" due to unbound types",u)}e.startsWith("@@")&&(e=Symbol[e.substring(2)]),s&&t.registeredClass.pureVirtualFunctions.push(e);var c=t.registeredClass.instancePrototype,f=c[e];return void 0===f||void 0===f.overloadTable&&f.className!==t.name&&f.argCount===r-2?(o.argCount=r-2,o.className=t.name,c[e]=o):(Vt(c,e,n),c[e].overloadTable[r-2]=o),pt([],u,(function(o){var s=ae(n,o,t,i,a);return void 0===c[e].overloadTable?(s.argCount=r-2,c[e]=s):c[e].overloadTable[r-2]=s,[]})),[]}))},I:function(t,e){mt(t,{name:e=vt(e),fromWireType:function(t){var e=pe.toValue(t);return ce(t),e},toWireType:function(t,e){return pe.toHandle(e)},argPackAdvance:8,readValueFromPointer:nt,destructorFunction:null})},u:function(t,e,r){var n=ht(r);mt(t,{name:e=vt(e),fromWireType:function(t){return t},toWireType:function(t,e){return e},argPackAdvance:8,readValueFromPointer:de(e,n),destructorFunction:null})},o:function(t,e,r,n,o,i){var a=ie(e,r);t=vt(t),o=ee(n,o),Bt(t,(function(){oe("Cannot call "+t+" due to unbound types",a)}),e-1),pt([],a,(function(r){var n=[r[0],null].concat(r.slice(1));return Qt(t,ae(t,n,null,o,i),e-1),[]}))},h:function(t,e,r,n,o){e=vt(e),-1===o&&(o=4294967295);var i=ht(r),a=t=>t;if(0===n){var s=32-8*r;a=t=>t<<s>>>s}var u=e.includes("unsigned");mt(t,{name:e,fromWireType:a,toWireType:u?function(t,e){return this.name,e>>>0}:function(t,e){return this.name,e},argPackAdvance:8,readValueFromPointer:ve(e,i,0!==n),destructorFunction:null})},d:function(t,e,r){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][e];function o(t){var e=$,r=e[t>>=2],o=e[t+1];return new n(b,o,r)}mt(t,{name:r=vt(r),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},t:function(t,e){var r="std::string"===(e=vt(e));mt(t,{name:e,fromWireType:function(t){var e,n=$[t>>2],o=t+4;if(r)for(var i=o,a=0;a<=n;++a){var s=o+a;if(a==n||0==P[s]){var u=E(i,s-i);void 0===e?e=u:(e+=String.fromCharCode(0),e+=u),i=s+1}}else{var c=new Array(n);for(a=0;a<n;++a)c[a]=String.fromCharCode(P[o+a]);e=c.join("")}return ke(t),e},toWireType:function(t,e){var n;e instanceof ArrayBuffer&&(e=new Uint8Array(e));var o="string"==typeof e;o||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Int8Array||gt("Cannot pass non-string to std::string"),n=r&&o?function(t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++r):e+=3}return e}(e):e.length;var i=Oe(4+n+1),a=i+4;if($[i>>2]=n,r&&o)R(e,a,n+1);else if(o)for(var s=0;s<n;++s){var u=e.charCodeAt(s);u>255&&(ke(a),gt("String has UTF-16 code units that do not fit in 8 bits")),P[a+s]=u}else for(s=0;s<n;++s)P[a+s]=e[s];return null!==t&&t.push(ke,i),i},argPackAdvance:8,readValueFromPointer:nt,destructorFunction:function(t){ke(t)}})},q:function(t,e,r){var n,o,i,a,s;r=vt(r),2===e?(n=ge,o=me,a=we,i=()=>_,s=1):4===e&&(n=be,o=Te,a=Pe,i=()=>$,s=2),mt(t,{name:r,fromWireType:function(t){for(var r,o=$[t>>2],a=i(),u=t+4,c=0;c<=o;++c){var f=t+4+c*e;if(c==o||0==a[f>>s]){var l=n(u,f-u);void 0===r?r=l:(r+=String.fromCharCode(0),r+=l),u=f+e}}return ke(t),r},toWireType:function(t,n){"string"!=typeof n&&gt("Cannot pass non-string to C++ string type "+r);var i=a(n),u=Oe(4+i+e);return $[u>>2]=i>>s,o(n,u+4,i+e),null!==t&&t.push(ke,u),u},argPackAdvance:8,readValueFromPointer:nt,destructorFunction:function(t){ke(t)}})},p:function(t,e,r,n,o,i){et[t]={name:vt(e),rawConstructor:ee(r,n),rawDestructor:ee(o,i),fields:[]}},C:function(t,e,r,n,o,i,a,s,u,c){et[t].fields.push({fieldName:vt(e),getterReturnType:r,getter:ee(n,o),getterContext:i,setterArgumentType:a,setter:ee(s,u),setterContext:c})},K:function(t,e){mt(t,{isVoid:!0,name:e=vt(e),argPackAdvance:0,fromWireType:function(){},toWireType:function(t,e){}})},O:ce,P:function(t){t>4&&(ue[t].refcount+=1)},n:function(t,e){var r,n,o;n="_emval_take_value",void 0===(o=it[r=t])&&gt(n+" has unknown type "+ne(r));var i=(t=o).readValueFromPointer(e);return pe.toHandle(i)},r:function(){N("")},H:function(t,e,r){P.copyWithin(t,e,e+r)},F:function(t){var e,r,n=P.length,o=2147483648;if((t>>>=0)>o)return!1;for(var i=1;i<=4;i*=2){var a=n*(1+.2/i);if(a=Math.min(a,t+100663296),Ce(Math.min(o,(e=Math.max(t,a))+((r=65536)-e%r)%r)))return!0}return!1},G:function(t){return 52},D:function(t,e,r,n,o){return 70},s:function(t,e,r,n){for(var o=0,i=0;i<r;i++){var a=$[e>>2],s=$[e+4>>2];e+=8;for(var u=0;u<s;u++)xe(t,P[a+u]);o+=s}return $[n>>2]=o,0},b:function(t,e){var r=Re();try{return Q(t)(e)}catch(t){if(Fe(r),t!==t+0)throw t;_setThrew(1,0)}},A:function(t,e,r){var n=Re();try{return Q(t)(e,r)}catch(t){if(Fe(n),t!==t+0)throw t;_setThrew(1,0)}},w:function(t,e,r,n){var o=Re();try{return Q(t)(e,r,n)}catch(t){if(Fe(o),t!==t+0)throw t;_setThrew(1,0)}},e:function(t,e){var r=Re();try{Q(t)(e)}catch(t){if(Fe(r),t!==t+0)throw t;_setThrew(1,0)}},k:function(t,e,r){var n=Re();try{Q(t)(e,r)}catch(t){if(Fe(n),t!==t+0)throw t;_setThrew(1,0)}},l:function(t,e,r,n){var o=Re();try{Q(t)(e,r,n)}catch(t){if(Fe(o),t!==t+0)throw t;_setThrew(1,0)}},x:function(t,e,r,n,o){var i=Re();try{Q(t)(e,r,n,o)}catch(t){if(Fe(i),t!==t+0)throw t;_setThrew(1,0)}},L:function(t,e,r,n,o,i,a){var s=Re();try{Q(t)(e,r,n,o,i,a)}catch(t){if(Fe(s),t!==t+0)throw t;_setThrew(1,0)}},m:function(t,e,r,n,o,i,a,s){var u=Re();try{Q(t)(e,r,n,o,i,a,s)}catch(t){if(Fe(u),t!==t+0)throw t;_setThrew(1,0)}},g:function(t,e,r,n,o,i,a,s,u,c,f){var l=Re();try{Q(t)(e,r,n,o,i,a,s,u,c,f)}catch(t){if(Fe(l),t!==t+0)throw t;_setThrew(1,0)}},N:function(t){return t}},Oe=(function(){var e={a:Ae};function r(e,r){var n,o=e.exports;t.asm=o,F((w=t.asm.Q).buffer),D=t.asm.U,n=t.asm.R,U.unshift(n),function(e){if(H--,t.monitorRunDependencies&&t.monitorRunDependencies(H),0==H&&(null!==V&&(clearInterval(V),V=null),B)){var r=B;B=null,r()}}()}function n(t){r(t.instance)}function i(t){return function(){if(!y&&(f||l)){if("function"==typeof fetch&&!G(W))return fetch(W,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at '"+W+"'";return t.arrayBuffer()})).catch((function(){return q(W)}));if(a)return new Promise((function(t,e){a(W,(function(e){t(new Uint8Array(e))}),e)}))}return Promise.resolve().then((function(){return q(W)}))}().then((function(t){return WebAssembly.instantiate(t,e)})).then((function(t){return t})).then(t,(function(t){m("failed to asynchronously prepare wasm: "+t),N(t)}))}if(H++,t.monitorRunDependencies&&t.monitorRunDependencies(H),t.instantiateWasm)try{return t.instantiateWasm(e,r)}catch(t){m("Module.instantiateWasm callback failed with error: "+t),o(t)}(y||"function"!=typeof WebAssembly.instantiateStreaming||z(W)||G(W)||p||"function"!=typeof fetch?i(n):fetch(W,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(t){return m("wasm streaming compile failed: "+t),m("falling back to ArrayBuffer instantiation"),i(n)}))}))).catch(o)}(),t.___wasm_call_ctors=function(){return(t.___wasm_call_ctors=t.asm.R).apply(null,arguments)},t._malloc=function(){return(Oe=t._malloc=t.asm.S).apply(null,arguments)}),Se=t.___cxa_free_exception=function(){return(Se=t.___cxa_free_exception=t.asm.T).apply(null,arguments)},ke=t._free=function(){return(ke=t._free=t.asm.V).apply(null,arguments)},je=t.___getTypeName=function(){return(je=t.___getTypeName=t.asm.W).apply(null,arguments)},Ee=(t.__embind_initialize_bindings=function(){return(t.__embind_initialize_bindings=t.asm.X).apply(null,arguments)},t.setTempRet0=function(){return(Ee=t.setTempRet0=t.asm.Y).apply(null,arguments)}),Re=t.stackSave=function(){return(Re=t.stackSave=t.asm.Z).apply(null,arguments)},Fe=t.stackRestore=function(){return(Fe=t.stackRestore=t.asm._).apply(null,arguments)},De=t.stackAlloc=function(){return(De=t.stackAlloc=t.asm.$).apply(null,arguments)},We=t.___cxa_can_catch=function(){return(We=t.___cxa_can_catch=t.asm.aa).apply(null,arguments)},Ie=t.___cxa_is_pointer_type=function(){return(Ie=t.___cxa_is_pointer_type=t.asm.ba).apply(null,arguments)};function Le(r){function n(){$e||($e=!0,t.calledRun=!0,S||(X(U),e(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),function(){if(t.postRun)for("function"==typeof t.postRun&&(t.postRun=[t.postRun]);t.postRun.length;)e=t.postRun.shift(),M.unshift(e);var e;X(M)}()))}r=r||c,H>0||(function(){if(t.preRun)for("function"==typeof t.preRun&&(t.preRun=[t.preRun]);t.preRun.length;)e=t.preRun.shift(),L.unshift(e);var e;X(L)}(),H>0||(t.setStatus?(t.setStatus("Running..."),setTimeout((function(){setTimeout((function(){t.setStatus("")}),1),n()}),1)):n()))}if(t.dynCall_ji=function(){return(t.dynCall_ji=t.asm.ca).apply(null,arguments)},t.dynCall_iiji=function(){return(t.dynCall_iiji=t.asm.da).apply(null,arguments)},t.dynCall_jiji=function(){return(t.dynCall_jiji=t.asm.ea).apply(null,arguments)},t.ccall=function(e,r,n,o,i){var a={string:t=>{var e=0;if(null!=t&&0!==t){var r=1+(t.length<<2);R(t,e=De(r),r)}return e},array:t=>{var e=De(t.length);return function(t,e){T.set(t,e)}(t,e),e}},s=function(e){return t["_"+e]}(e),u=[],c=0;if(o)for(var f=0;f<o.length;f++){var l=a[n[f]];l?(0===c&&(c=Re()),u[f]=l(o[f])):u[f]=o[f]}var p=s.apply(null,u);return p=function(t){return 0!==c&&Fe(c),function(t){return"string"===r?E(t):"boolean"===r?Boolean(t):t}(t)}(p)},B=function t(){$e||Le(),$e||(B=t)},t.preInit)for("function"==typeof t.preInit&&(t.preInit=[t.preInit]);t.preInit.length>0;)t.preInit.pop()();return Le(),t.ready});t.exports=o},3641:(t,e,r)=>{r(3075);var n=r(2018);t.exports=n("Array").concat},646:(t,e,r)=>{r(8345);var n=r(2018);t.exports=n("Array").filter},1001:(t,e,r)=>{r(5313);var n=r(2018);t.exports=n("Array").slice},7543:(t,e,r)=>{var n=r(3641),o=Array.prototype;t.exports=function(t){var e=t.concat;return t===o||t instanceof Array&&e===o.concat?n:e}},1065:(t,e,r)=>{var n=r(9291),o=String.prototype;t.exports=function(t){var e=t.endsWith;return"string"==typeof t||t===o||t instanceof String&&e===o.endsWith?n:e}},4388:(t,e,r)=>{var n=r(646),o=Array.prototype;t.exports=function(t){var e=t.filter;return t===o||t instanceof Array&&e===o.filter?n:e}},1285:(t,e,r)=>{var n=r(1001),o=Array.prototype;t.exports=function(t){var e=t.slice;return t===o||t instanceof Array&&e===o.slice?n:e}},2529:(t,e,r)=>{r(8524);var n=r(9081);t.exports=n.Object.assign},6854:(t,e,r)=>{r(6764);var n=r(9081).Object,o=t.exports=function(t,e,r){return n.defineProperty(t,e,r)};n.defineProperty.sham&&(o.sham=!0)},2744:(t,e,r)=>{r(554);var n=r(9081).Object,o=t.exports=function(t,e){return n.getOwnPropertyDescriptor(t,e)};n.getOwnPropertyDescriptor.sham&&(o.sham=!0)},6018:(t,e,r)=>{r(4267);var n=r(9081);t.exports=n.Object.getOwnPropertyDescriptors},5350:(t,e,r)=>{r(8318);var n=r(9081);t.exports=n.Object.getOwnPropertySymbols},8116:(t,e,r)=>{r(8390);var n=r(9081);t.exports=n.Object.keys},7281:(t,e,r)=>{r(6454),r(2228),r(2575),r(3658),r(4465),r(8359),r(5203),r(8109);var n=r(9081);t.exports=n.Promise},9291:(t,e,r)=>{r(2329);var n=r(2018);t.exports=n("String").endsWith},5723:(t,e,r)=>{var n=r(8531);t.exports=n},5213:(t,e,r)=>{var n=r(4731);r(1152),r(8561),r(5543),r(8302),t.exports=n},9077:t=>{t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},9154:(t,e,r)=>{var n=r(3359);t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},7710:t=>{t.exports=function(){}},8792:t=>{t.exports=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t}},1912:(t,e,r)=>{var n=r(3359);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},7075:(t,e,r)=>{var n=r(3861),o=r(3746),i=r(3055),a=function(t){return function(e,r,a){var s,u=n(e),c=o(u.length),f=i(a,c);if(t&&r!=r){for(;c>f;)if((s=u[f++])!=s)return!0}else for(;c>f;f++)if((t||f in u)&&u[f]===r)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},4206:(t,e,r)=>{var n=r(7673),o=r(1251),i=r(2058),a=r(3746),s=r(8136),u=[].push,c=function(t){var e=1==t,r=2==t,c=3==t,f=4==t,l=6==t,p=7==t,h=5==t||l;return function(d,v,y,g){for(var m,w,b=i(d),T=o(b),P=n(v,y,3),C=a(T.length),_=0,x=g||s,$=e?x(d,C):r||p?x(d,0):void 0;C>_;_++)if((h||_ in T)&&(w=P(m=T[_],_,b),t))if(e)$[_]=w;else if(w)switch(t){case 3:return!0;case 5:return m;case 6:return _;case 2:u.call($,m)}else switch(t){case 4:return!1;case 7:u.call($,m)}return l?-1:c||f?f:$}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},2143:(t,e,r)=>{var n=r(6530),o=r(5712),i=r(8233),a=o("species");t.exports=function(t){return i>=51||!n((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},3400:(t,e,r)=>{var n=r(3359),o=r(1054),i=r(5712)("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)?n(e)&&null===(e=e[i])&&(e=void 0):e=void 0),void 0===e?Array:e}},8136:(t,e,r)=>{var n=r(3400);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},8908:(t,e,r)=>{var n=r(5712)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i={};i[n]=function(){return{next:function(){return{done:r=!0}}}},t(i)}catch(t){}return r}},1570:t=>{var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},7499:(t,e,r)=>{var n=r(8889),o=r(1570),i=r(5712)("toStringTag"),a="Arguments"==o(function(){return arguments}());t.exports=n?o:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),i))?r:a?o(e):"Object"==(n=o(e))&&"function"==typeof e.callee?"Arguments":n}},1722:(t,e,r)=>{var n=r(5712)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,"/./"[t](e)}catch(t){}}return!1}},872:(t,e,r)=>{var n=r(6530);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},8611:(t,e,r)=>{"use strict";var n=r(7300).IteratorPrototype,o=r(2491),i=r(5595),a=r(6738),s=r(9418),u=function(){return this};t.exports=function(t,e,r){var c=e+" Iterator";return t.prototype=o(n,{next:i(1,r)}),a(t,c,!1,!0),s[c]=u,t}},8518:(t,e,r)=>{var n=r(7001),o=r(7550),i=r(5595);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},5595:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},409:(t,e,r)=>{"use strict";var n=r(5623),o=r(7550),i=r(5595);t.exports=function(t,e,r){var a=n(e);a in t?o.f(t,a,i(0,r)):t[a]=r}},8277:(t,e,r)=>{"use strict";var n=r(390),o=r(8611),i=r(2629),a=r(5255),s=r(6738),u=r(8518),c=r(9791),f=r(5712),l=r(8367),p=r(9418),h=r(7300),d=h.IteratorPrototype,v=h.BUGGY_SAFARI_ITERATORS,y=f("iterator"),g="keys",m="values",w="entries",b=function(){return this};t.exports=function(t,e,r,f,h,T,P){o(r,e,f);var C,_,x,$=function(t){if(t===h&&j)return j;if(!v&&t in S)return S[t];switch(t){case g:case m:case w:return function(){return new r(this,t)}}return function(){return new r(this)}},A=e+" Iterator",O=!1,S=t.prototype,k=S[y]||S["@@iterator"]||h&&S[h],j=!v&&k||$(h),E="Array"==e&&S.entries||k;if(E&&(C=i(E.call(new t)),d!==Object.prototype&&C.next&&(l||i(C)===d||(a?a(C,d):"function"!=typeof C[y]&&u(C,y,b)),s(C,A,!0,!0),l&&(p[A]=b))),h==m&&k&&k.name!==m&&(O=!0,j=function(){return k.call(this)}),l&&!P||S[y]===j||u(S,y,j),p[e]=j,h)if(_={values:$(m),keys:T?j:$(g),entries:$(w)},P)for(x in _)(v||O||!(x in S))&&c(S,x,_[x]);else n({target:e,proto:!0,forced:v||O},_);return _}},1412:(t,e,r)=>{var n=r(9081),o=r(6690),i=r(3379),a=r(7550).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});o(e,t)||a(e,t,{value:i.f(t)})}},7001:(t,e,r)=>{var n=r(6530);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},231:(t,e,r)=>{var n=r(2868),o=r(3359),i=n.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},315:t=>{t.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:t=>{t.exports="object"==typeof window},6405:(t,e,r)=>{var n=r(6900),o=r(2868);t.exports=/ipad|iphone|ipod/i.test(n)&&void 0!==o.Pebble},6540:(t,e,r)=>{var n=r(6900);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},6521:(t,e,r)=>{var n=r(1570),o=r(2868);t.exports="process"==n(o.process)},4010:(t,e,r)=>{var n=r(6900);t.exports=/web0s(?!.*chrome)/i.test(n)},6900:(t,e,r)=>{var n=r(8104);t.exports=n("navigator","userAgent")||""},8233:(t,e,r)=>{var n,o,i=r(2868),a=r(6900),s=i.process,u=i.Deno,c=s&&s.versions||u&&u.version,f=c&&c.v8;f?o=(n=f.split("."))[0]<4?1:n[0]+n[1]:a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=n[1]),t.exports=o&&+o},2018:(t,e,r)=>{var n=r(9081);t.exports=function(t){return n[t+"Prototype"]}},2712:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},390:(t,e,r)=>{"use strict";var n=r(2868),o=r(5904).f,i=r(1011),a=r(9081),s=r(7673),u=r(8518),c=r(6690),f=function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var r,l,p,h,d,v,y,g,m=t.target,w=t.global,b=t.stat,T=t.proto,P=w?n:b?n[m]:(n[m]||{}).prototype,C=w?a:a[m]||u(a,m,{})[m],_=C.prototype;for(p in e)r=!i(w?p:m+(b?".":"#")+p,t.forced)&&P&&c(P,p),d=C[p],r&&(v=t.noTargetGet?(g=o(P,p))&&g.value:P[p]),h=r&&v?v:e[p],r&&typeof d==typeof h||(y=t.bind&&r?s(h,n):t.wrap&&r?f(h):T&&"function"==typeof h?s(Function.call,h):h,(t.sham||h&&h.sham||d&&d.sham)&&u(y,"sham",!0),u(C,p,y),T&&(c(a,l=m+"Prototype")||u(a,l,{}),u(a[l],p,h),t.real&&_&&!_[p]&&u(_,p,h)))}},6530:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},7673:(t,e,r)=>{var n=r(9077);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},8104:(t,e,r)=>{var n=r(9081),o=r(2868),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?i(n[t])||i(o[t]):n[t]&&n[t][e]||o[t]&&o[t][e]}},5018:(t,e,r)=>{var n=r(7499),o=r(9418),i=r(5712)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[n(t)]}},5945:(t,e,r)=>{var n=r(1912),o=r(5018);t.exports=function(t,e){var r=arguments.length<2?o(t):e;if("function"!=typeof r)throw TypeError(String(t)+" is not iterable");return n(r.call(t))}},2868:(t,e,r)=>{var n=function(t){return t&&t.Math==Math&&t};t.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")()},6690:(t,e,r)=>{var n=r(2058),o={}.hasOwnProperty;t.exports=Object.hasOwn||function(t,e){return o.call(n(t),e)}},7048:t=>{t.exports={}},8471:(t,e,r)=>{var n=r(2868);t.exports=function(t,e){var r=n.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}},5644:(t,e,r)=>{var n=r(8104);t.exports=n("document","documentElement")},640:(t,e,r)=>{var n=r(7001),o=r(6530),i=r(231);t.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},1251:(t,e,r)=>{var n=r(6530),o=r(1570),i="".split;t.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},1494:(t,e,r)=>{var n=r(2656),o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return o.call(t)}),t.exports=n.inspectSource},5875:(t,e,r)=>{var n,o,i,a=r(2297),s=r(2868),u=r(3359),c=r(8518),f=r(6690),l=r(2656),p=r(5039),h=r(7048),d="Object already initialized",v=s.WeakMap;if(a||l.state){var y=l.state||(l.state=new v),g=y.get,m=y.has,w=y.set;n=function(t,e){if(m.call(y,t))throw new TypeError(d);return e.facade=t,w.call(y,t,e),e},o=function(t){return g.call(y,t)||{}},i=function(t){return m.call(y,t)}}else{var b=p("state");h[b]=!0,n=function(t,e){if(f(t,b))throw new TypeError(d);return e.facade=t,c(t,b,e),e},o=function(t){return f(t,b)?t[b]:{}},i=function(t){return f(t,b)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!u(e)||(r=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}}},6475:(t,e,r)=>{var n=r(5712),o=r(9418),i=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||a[i]===t)}},1054:(t,e,r)=>{var n=r(1570);t.exports=Array.isArray||function(t){return"Array"==n(t)}},1011:(t,e,r)=>{var n=r(6530),o=/#|\.prototype\./,i=function(t,e){var r=s[a(t)];return r==c||r!=u&&("function"==typeof e?n(e):!!e)},a=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},s=i.data={},u=i.NATIVE="N",c=i.POLYFILL="P";t.exports=i},3359:t=>{t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},8367:t=>{t.exports=!0},6858:(t,e,r)=>{var n=r(3359),o=r(1570),i=r(5712)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[i])?!!e:"RegExp"==o(t))}},1149:(t,e,r)=>{var n=r(8104),o=r(6046);t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return"function"==typeof e&&Object(t)instanceof e}},3906:(t,e,r)=>{var n=r(1912),o=r(6475),i=r(3746),a=r(7673),s=r(5945),u=r(5018),c=r(309),f=function(t,e){this.stopped=t,this.result=e};t.exports=function(t,e,r){var l,p,h,d,v,y,g,m=r&&r.that,w=!(!r||!r.AS_ENTRIES),b=!(!r||!r.IS_ITERATOR),T=!(!r||!r.INTERRUPTED),P=a(e,m,1+w+T),C=function(t){return l&&c(l,"normal",t),new f(!0,t)},_=function(t){return w?(n(t),T?P(t[0],t[1],C):P(t[0],t[1])):T?P(t,C):P(t)};if(b)l=t;else{if("function"!=typeof(p=u(t)))throw TypeError("Target is not iterable");if(o(p)){for(h=0,d=i(t.length);d>h;h++)if((v=_(t[h]))&&v instanceof f)return v;return new f(!1)}l=s(t,p)}for(y=l.next;!(g=y.call(l)).done;){try{v=_(g.value)}catch(t){c(l,"throw",t)}if("object"==typeof v&&v&&v instanceof f)return v}return new f(!1)}},309:(t,e,r)=>{var n=r(1912);t.exports=function(t,e,r){var o,i;n(t);try{if(void 0===(o=t.return)){if("throw"===e)throw r;return r}o=o.call(t)}catch(t){i=!0,o=t}if("throw"===e)throw r;if(i)throw o;return n(o),r}},7300:(t,e,r)=>{"use strict";var n,o,i,a=r(6530),s=r(2629),u=r(8518),c=r(6690),f=r(5712),l=r(8367),p=f("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=s(s(i)))!==Object.prototype&&(n=o):h=!0);var d=null==n||a((function(){var t={};return n[p].call(t)!==t}));d&&(n={}),l&&!d||c(n,p)||u(n,p,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:h}},9418:t=>{t.exports={}},8054:(t,e,r)=>{var n,o,i,a,s,u,c,f,l=r(2868),p=r(5904).f,h=r(6569).set,d=r(6540),v=r(6405),y=r(4010),g=r(6521),m=l.MutationObserver||l.WebKitMutationObserver,w=l.document,b=l.process,T=l.Promise,P=p(l,"queueMicrotask"),C=P&&P.value;C||(n=function(){var t,e;for(g&&(t=b.domain)&&t.exit();o;){e=o.fn,o=o.next;try{e()}catch(t){throw o?a():i=void 0,t}}i=void 0,t&&t.enter()},d||g||y||!m||!w?!v&&T&&T.resolve?((c=T.resolve(void 0)).constructor=T,f=c.then,a=function(){f.call(c,n)}):a=g?function(){b.nextTick(n)}:function(){h.call(l,n)}:(s=!0,u=w.createTextNode(""),new m(n).observe(u,{characterData:!0}),a=function(){u.data=s=!s})),t.exports=C||function(t){var e={fn:t,next:void 0};i&&(i.next=e),o||(o=e,a()),i=e}},3104:(t,e,r)=>{var n=r(2868);t.exports=n.Promise},3216:(t,e,r)=>{var n=r(8233),o=r(6530);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},2297:(t,e,r)=>{var n=r(2868),o=r(1494),i=n.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},4130:(t,e,r)=>{"use strict";var n=r(9077),o=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)};t.exports.f=function(t){return new o(t)}},9611:(t,e,r)=>{var n=r(6858);t.exports=function(t){if(n(t))throw TypeError("The method doesn't accept regular expressions");return t}},3210:(t,e,r)=>{"use strict";var n=r(7001),o=r(6530),i=r(461),a=r(3764),s=r(1156),u=r(2058),c=r(1251),f=Object.assign,l=Object.defineProperty;t.exports=!f||o((function(){if(n&&1!==f({b:1},f(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),o="abcdefghijklmnopqrst";return t[r]=7,o.split("").forEach((function(t){e[t]=t})),7!=f({},t)[r]||i(f({},e)).join("")!=o}))?function(t,e){for(var r=u(t),o=arguments.length,f=1,l=a.f,p=s.f;o>f;)for(var h,d=c(arguments[f++]),v=l?i(d).concat(l(d)):i(d),y=v.length,g=0;y>g;)h=v[g++],n&&!p.call(d,h)||(r[h]=d[h]);return r}:f},2491:(t,e,r)=>{var n,o=r(1912),i=r(4686),a=r(2712),s=r(7048),u=r(5644),c=r(231),f=r(5039),l=f("IE_PROTO"),p=function(){},h=function(t){return"<script>"+t+"</"+"script>"},d=function(t){t.write(h("")),t.close();var e=t.parentWindow.Object;return t=null,e},v=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e;v="undefined"!=typeof document?document.domain&&n?d(n):((e=c("iframe")).style.display="none",u.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F):d(n);for(var r=a.length;r--;)delete v.prototype[a[r]];return v()};s[l]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(p.prototype=o(t),r=new p,p.prototype=null,r[l]=t):r=v(),void 0===e?r:i(r,e)}},4686:(t,e,r)=>{var n=r(7001),o=r(7550),i=r(1912),a=r(461);t.exports=n?Object.defineProperties:function(t,e){i(t);for(var r,n=a(e),s=n.length,u=0;s>u;)o.f(t,r=n[u++],e[r]);return t}},7550:(t,e,r)=>{var n=r(7001),o=r(640),i=r(1912),a=r(5623),s=Object.defineProperty;e.f=n?s:function(t,e,r){if(i(t),e=a(e),i(r),o)try{return s(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},5904:(t,e,r)=>{var n=r(7001),o=r(1156),i=r(5595),a=r(3861),s=r(5623),u=r(6690),c=r(640),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=a(t),e=s(e),c)try{return f(t,e)}catch(t){}if(u(t,e))return i(!o.f.call(t,e),t[e])}},6159:(t,e,r)=>{var n=r(3861),o=r(9035).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return a.slice()}}(t):o(n(t))}},9035:(t,e,r)=>{var n=r(1247),o=r(2712).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},3764:(t,e)=>{e.f=Object.getOwnPropertySymbols},2629:(t,e,r)=>{var n=r(6690),o=r(2058),i=r(5039),a=r(872),s=i("IE_PROTO"),u=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=o(t),n(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},1247:(t,e,r)=>{var n=r(6690),o=r(3861),i=r(7075).indexOf,a=r(7048);t.exports=function(t,e){var r,s=o(t),u=0,c=[];for(r in s)!n(a,r)&&n(s,r)&&c.push(r);for(;e.length>u;)n(s,r=e[u++])&&(~i(c,r)||c.push(r));return c}},461:(t,e,r)=>{var n=r(1247),o=r(2712);t.exports=Object.keys||function(t){return n(t,o)}},1156:(t,e)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);e.f=o?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},5255:(t,e,r)=>{var n=r(1912),o=r(9154);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,i){return n(r),o(i),e?t.call(r,i):r.__proto__=i,r}}():void 0)},2204:(t,e,r)=>{"use strict";var n=r(8889),o=r(7499);t.exports=n?{}.toString:function(){return"[object "+o(this)+"]"}},9466:(t,e,r)=>{var n=r(3359);t.exports=function(t,e){var r,o;if("string"===e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if("string"!==e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},5340:(t,e,r)=>{var n=r(8104),o=r(9035),i=r(3764),a=r(1912);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(a(t)),r=i.f;return r?e.concat(r(t)):e}},9081:t=>{t.exports={}},4618:t=>{t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},4567:(t,e,r)=>{var n=r(1912),o=r(3359),i=r(4130);t.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var r=i.f(t);return(0,r.resolve)(e),r.promise}},9248:(t,e,r)=>{var n=r(9791);t.exports=function(t,e,r){for(var o in e)r&&r.unsafe&&t[o]?t[o]=e[o]:n(t,o,e[o],r);return t}},9791:(t,e,r)=>{var n=r(8518);t.exports=function(t,e,r,o){o&&o.enumerable?t[e]=r:n(t,e,r)}},3604:t=>{t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},2643:(t,e,r)=>{var n=r(2868);t.exports=function(t,e){try{Object.defineProperty(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},3918:(t,e,r)=>{"use strict";var n=r(8104),o=r(7550),i=r(5712),a=r(7001),s=i("species");t.exports=function(t){var e=n(t),r=o.f;a&&e&&!e[s]&&r(e,s,{configurable:!0,get:function(){return this}})}},6738:(t,e,r)=>{var n=r(8889),o=r(7550).f,i=r(8518),a=r(6690),s=r(2204),u=r(5712)("toStringTag");t.exports=function(t,e,r,c){if(t){var f=r?t:t.prototype;a(f,u)||o(f,u,{configurable:!0,value:e}),c&&!n&&i(f,"toString",s)}}},5039:(t,e,r)=>{var n=r(6315),o=r(9),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},2656:(t,e,r)=>{var n=r(2868),o=r(2643),i="__core-js_shared__",a=n[i]||o(i,{});t.exports=a},6315:(t,e,r)=>{var n=r(8367),o=r(2656);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.17.2",mode:n?"pure":"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})},5462:(t,e,r)=>{var n=r(1912),o=r(9077),i=r(5712)("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||null==(r=n(a)[i])?e:o(r)}},1420:(t,e,r)=>{var n=r(1470),o=r(5264),i=r(3604),a=function(t){return function(e,r){var a,s,u=o(i(e)),c=n(r),f=u.length;return c<0||c>=f?t?"":void 0:(a=u.charCodeAt(c))<55296||a>56319||c+1===f||(s=u.charCodeAt(c+1))<56320||s>57343?t?u.charAt(c):a:t?u.slice(c,c+2):s-56320+(a-55296<<10)+65536}};t.exports={codeAt:a(!1),charAt:a(!0)}},6569:(t,e,r)=>{var n,o,i,a,s=r(2868),u=r(6530),c=r(7673),f=r(5644),l=r(231),p=r(6540),h=r(6521),d=s.setImmediate,v=s.clearImmediate,y=s.process,g=s.MessageChannel,m=s.Dispatch,w=0,b={},T="onreadystatechange";try{n=s.location}catch(t){}var P=function(t){if(b.hasOwnProperty(t)){var e=b[t];delete b[t],e()}},C=function(t){return function(){P(t)}},_=function(t){P(t.data)},x=function(t){s.postMessage(String(t),n.protocol+"//"+n.host)};d&&v||(d=function(t){for(var e=[],r=arguments.length,n=1;r>n;)e.push(arguments[n++]);return b[++w]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},o(w),w},v=function(t){delete b[t]},h?o=function(t){y.nextTick(C(t))}:m&&m.now?o=function(t){m.now(C(t))}:g&&!p?(a=(i=new g).port2,i.port1.onmessage=_,o=c(a.postMessage,a,1)):s.addEventListener&&"function"==typeof postMessage&&!s.importScripts&&n&&"file:"!==n.protocol&&!u(x)?(o=x,s.addEventListener("message",_,!1)):o=T in l("script")?function(t){f.appendChild(l("script")).onreadystatechange=function(){f.removeChild(this),P(t)}}:function(t){setTimeout(C(t),0)}),t.exports={set:d,clear:v}},3055:(t,e,r)=>{var n=r(1470),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},3861:(t,e,r)=>{var n=r(1251),o=r(3604);t.exports=function(t){return n(o(t))}},1470:t=>{var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},3746:(t,e,r)=>{var n=r(1470),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},2058:(t,e,r)=>{var n=r(3604);t.exports=function(t){return Object(n(t))}},3957:(t,e,r)=>{var n=r(3359),o=r(1149),i=r(9466),a=r(5712)("toPrimitive");t.exports=function(t,e){if(!n(t)||o(t))return t;var r,s=t[a];if(void 0!==s){if(void 0===e&&(e="default"),r=s.call(t,e),!n(r)||o(r))return r;throw TypeError("Can't convert object to primitive value")}return void 0===e&&(e="number"),i(t,e)}},5623:(t,e,r)=>{var n=r(3957),o=r(1149);t.exports=function(t){var e=n(t,"string");return o(e)?e:String(e)}},8889:(t,e,r)=>{var n={};n[r(5712)("toStringTag")]="z",t.exports="[object z]"===String(n)},5264:(t,e,r)=>{var n=r(1149);t.exports=function(t){if(n(t))throw TypeError("Cannot convert a Symbol value to a string");return String(t)}},9:t=>{var e=0,r=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++e+r).toString(36)}},6046:(t,e,r)=>{var n=r(3216);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3379:(t,e,r)=>{var n=r(5712);e.f=n},5712:(t,e,r)=>{var n=r(2868),o=r(6315),i=r(6690),a=r(9),s=r(3216),u=r(6046),c=o("wks"),f=n.Symbol,l=u?f:f&&f.withoutSetter||a;t.exports=function(t){return i(c,t)&&(s||"string"==typeof c[t])||(s&&i(f,t)?c[t]=f[t]:c[t]=l("Symbol."+t)),c[t]}},6454:(t,e,r)=>{"use strict";var n=r(390),o=r(2629),i=r(5255),a=r(2491),s=r(8518),u=r(5595),c=r(3906),f=r(5264),l=function(t,e){var r=this;if(!(r instanceof l))return new l(t,e);i&&(r=i(new Error(void 0),o(r))),void 0!==e&&s(r,"message",f(e));var n=[];return c(t,n.push,{that:n}),s(r,"errors",n),r};l.prototype=a(Error.prototype,{constructor:u(5,l),message:u(5,""),name:u(5,"AggregateError")}),n({global:!0},{AggregateError:l})},3075:(t,e,r)=>{"use strict";var n=r(390),o=r(6530),i=r(1054),a=r(3359),s=r(2058),u=r(3746),c=r(409),f=r(8136),l=r(2143),p=r(5712),h=r(8233),d=p("isConcatSpreadable"),v=9007199254740991,y="Maximum allowed index exceeded",g=h>=51||!o((function(){var t=[];return t[d]=!1,t.concat()[0]!==t})),m=l("concat"),w=function(t){if(!a(t))return!1;var e=t[d];return void 0!==e?!!e:i(t)};n({target:"Array",proto:!0,forced:!g||!m},{concat:function(t){var e,r,n,o,i,a=s(this),l=f(a,0),p=0;for(e=-1,n=arguments.length;e<n;e++)if(w(i=-1===e?a:arguments[e])){if(p+(o=u(i.length))>v)throw TypeError(y);for(r=0;r<o;r++,p++)r in i&&c(l,p,i[r])}else{if(p>=v)throw TypeError(y);c(l,p++,i)}return l.length=p,l}})},8345:(t,e,r)=>{"use strict";var n=r(390),o=r(4206).filter;n({target:"Array",proto:!0,forced:!r(2143)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},2228:(t,e,r)=>{"use strict";var n=r(3861),o=r(7710),i=r(9418),a=r(5875),s=r(8277),u="Array Iterator",c=a.set,f=a.getterFor(u);t.exports=s(Array,"Array",(function(t,e){c(this,{type:u,target:n(t),index:0,kind:e})}),(function(){var t=f(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},5313:(t,e,r)=>{"use strict";var n=r(390),o=r(3359),i=r(1054),a=r(3055),s=r(3746),u=r(3861),c=r(409),f=r(5712),l=r(2143)("slice"),p=f("species"),h=[].slice,d=Math.max;n({target:"Array",proto:!0,forced:!l},{slice:function(t,e){var r,n,f,l=u(this),v=s(l.length),y=a(t,v),g=a(void 0===e?v:e,v);if(i(l)&&("function"!=typeof(r=l.constructor)||r!==Array&&!i(r.prototype)?o(r)&&null===(r=r[p])&&(r=void 0):r=void 0,r===Array||void 0===r))return h.call(l,y,g);for(n=new(void 0===r?Array:r)(d(g-y,0)),f=0;y<g;y++,f++)y in l&&c(n,f,l[y]);return n.length=f,n}})},8524:(t,e,r)=>{var n=r(390),o=r(3210);n({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},6764:(t,e,r)=>{var n=r(390),o=r(7001);n({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:r(7550).f})},554:(t,e,r)=>{var n=r(390),o=r(6530),i=r(3861),a=r(5904).f,s=r(7001),u=o((function(){a(1)}));n({target:"Object",stat:!0,forced:!s||u,sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(i(t),e)}})},4267:(t,e,r)=>{var n=r(390),o=r(7001),i=r(5340),a=r(3861),s=r(5904),u=r(409);n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var e,r,n=a(t),o=s.f,c=i(n),f={},l=0;c.length>l;)void 0!==(r=o(n,e=c[l++]))&&u(f,e,r);return f}})},8390:(t,e,r)=>{var n=r(390),o=r(2058),i=r(461);n({target:"Object",stat:!0,forced:r(6530)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},2575:()=>{},4465:(t,e,r)=>{"use strict";var n=r(390),o=r(9077),i=r(4130),a=r(4618),s=r(3906);n({target:"Promise",stat:!0},{allSettled:function(t){var e=this,r=i.f(e),n=r.resolve,u=r.reject,c=a((function(){var r=o(e.resolve),i=[],a=0,u=1;s(t,(function(t){var o=a++,s=!1;i.push(void 0),u++,r.call(e,t).then((function(t){s||(s=!0,i[o]={status:"fulfilled",value:t},--u||n(i))}),(function(t){s||(s=!0,i[o]={status:"rejected",reason:t},--u||n(i))}))})),--u||n(i)}));return c.error&&u(c.value),r.promise}})},8359:(t,e,r)=>{"use strict";var n=r(390),o=r(9077),i=r(8104),a=r(4130),s=r(4618),u=r(3906),c="No one promise resolved";n({target:"Promise",stat:!0},{any:function(t){var e=this,r=a.f(e),n=r.resolve,f=r.reject,l=s((function(){var r=o(e.resolve),a=[],s=0,l=1,p=!1;u(t,(function(t){var o=s++,u=!1;a.push(void 0),l++,r.call(e,t).then((function(t){u||p||(p=!0,n(t))}),(function(t){u||p||(u=!0,a[o]=t,--l||f(new(i("AggregateError"))(a,c)))}))})),--l||f(new(i("AggregateError"))(a,c))}));return l.error&&f(l.value),r.promise}})},5203:(t,e,r)=>{"use strict";var n=r(390),o=r(8367),i=r(3104),a=r(6530),s=r(8104),u=r(5462),c=r(4567),f=r(9791);if(n({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){i.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=u(this,s("Promise")),r="function"==typeof t;return this.then(r?function(r){return c(e,t()).then((function(){return r}))}:t,r?function(r){return c(e,t()).then((function(){throw r}))}:t)}}),!o&&"function"==typeof i){var l=s("Promise").prototype.finally;i.prototype.finally!==l&&f(i.prototype,"finally",l,{unsafe:!0})}},3658:(t,e,r)=>{"use strict";var n,o,i,a,s=r(390),u=r(8367),c=r(2868),f=r(8104),l=r(3104),p=r(9791),h=r(9248),d=r(5255),v=r(6738),y=r(3918),g=r(3359),m=r(9077),w=r(8792),b=r(1494),T=r(3906),P=r(8908),C=r(5462),_=r(6569).set,x=r(8054),$=r(4567),A=r(8471),O=r(4130),S=r(4618),k=r(5875),j=r(1011),E=r(5712),R=r(6610),F=r(6521),D=r(8233),W=E("species"),I="Promise",L=k.get,U=k.set,M=k.getterFor(I),H=l&&l.prototype,V=l,B=H,N=c.TypeError,z=c.document,G=c.process,q=O.f,J=q,X=!!(z&&z.createEvent&&c.dispatchEvent),Y="function"==typeof PromiseRejectionEvent,K="unhandledrejection",Z=!1,Q=j(I,(function(){var t=b(V),e=t!==String(V);if(!e&&66===D)return!0;if(u&&!B.finally)return!0;if(D>=51&&/native code/.test(t))return!1;var r=new V((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(r.constructor={})[W]=n,!(Z=r.then((function(){}))instanceof n)||!e&&R&&!Y})),tt=Q||!P((function(t){V.all(t).catch((function(){}))})),et=function(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e},rt=function(t,e){if(!t.notified){t.notified=!0;var r=t.reactions;x((function(){for(var n=t.value,o=1==t.state,i=0;r.length>i;){var a,s,u,c=r[i++],f=o?c.ok:c.fail,l=c.resolve,p=c.reject,h=c.domain;try{f?(o||(2===t.rejection&&at(t),t.rejection=1),!0===f?a=n:(h&&h.enter(),a=f(n),h&&(h.exit(),u=!0)),a===c.promise?p(N("Promise-chain cycle")):(s=et(a))?s.call(a,l,p):l(a)):p(n)}catch(t){h&&!u&&h.exit(),p(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&ot(t)}))}},nt=function(t,e,r){var n,o;X?((n=z.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),c.dispatchEvent(n)):n={promise:e,reason:r},!Y&&(o=c["on"+t])?o(n):t===K&&A("Unhandled promise rejection",r)},ot=function(t){_.call(c,(function(){var e,r=t.facade,n=t.value;if(it(t)&&(e=S((function(){F?G.emit("unhandledRejection",n,r):nt(K,r,n)})),t.rejection=F||it(t)?2:1,e.error))throw e.value}))},it=function(t){return 1!==t.rejection&&!t.parent},at=function(t){_.call(c,(function(){var e=t.facade;F?G.emit("rejectionHandled",e):nt("rejectionhandled",e,t.value)}))},st=function(t,e,r){return function(n){t(e,n,r)}},ut=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,rt(t,!0))},ct=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw N("Promise can't be resolved itself");var n=et(e);n?x((function(){var r={done:!1};try{n.call(e,st(ct,r,t),st(ut,r,t))}catch(e){ut(r,e,t)}})):(t.value=e,t.state=1,rt(t,!1))}catch(e){ut({done:!1},e,t)}}};if(Q&&(B=(V=function(t){w(this,V,I),m(t),n.call(this);var e=L(this);try{t(st(ct,e),st(ut,e))}catch(t){ut(e,t)}}).prototype,(n=function(t){U(this,{type:I,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=h(B,{then:function(t,e){var r=M(this),n=q(C(this,V));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=F?G.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&rt(r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new n,e=L(t);this.promise=t,this.resolve=st(ct,e),this.reject=st(ut,e)},O.f=q=function(t){return t===V||t===i?new o(t):J(t)},!u&&"function"==typeof l&&H!==Object.prototype)){a=H.then,Z||(p(H,"then",(function(t,e){var r=this;return new V((function(t,e){a.call(r,t,e)})).then(t,e)}),{unsafe:!0}),p(H,"catch",B.catch,{unsafe:!0}));try{delete H.constructor}catch(t){}d&&d(H,B)}s({global:!0,wrap:!0,forced:Q},{Promise:V}),v(V,I,!1,!0),y(I),i=f(I),s({target:I,stat:!0,forced:Q},{reject:function(t){var e=q(this);return e.reject.call(void 0,t),e.promise}}),s({target:I,stat:!0,forced:u||Q},{resolve:function(t){return $(u&&this===i?V:this,t)}}),s({target:I,stat:!0,forced:tt},{all:function(t){var e=this,r=q(e),n=r.resolve,o=r.reject,i=S((function(){var r=m(e.resolve),i=[],a=0,s=1;T(t,(function(t){var u=a++,c=!1;i.push(void 0),s++,r.call(e,t).then((function(t){c||(c=!0,i[u]=t,--s||n(i))}),o)})),--s||n(i)}));return i.error&&o(i.value),r.promise},race:function(t){var e=this,r=q(e),n=r.reject,o=S((function(){var o=m(e.resolve);T(t,(function(t){o.call(e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}})},2329:(t,e,r)=>{"use strict";var n,o=r(390),i=r(5904).f,a=r(3746),s=r(5264),u=r(9611),c=r(3604),f=r(1722),l=r(8367),p="".endsWith,h=Math.min,d=f("endsWith");o({target:"String",proto:!0,forced:!!(l||d||(n=i(String.prototype,"endsWith"),!n||n.writable))&&!d},{endsWith:function(t){var e=s(c(this));u(t);var r=arguments.length>1?arguments[1]:void 0,n=a(e.length),o=void 0===r?n:h(a(r),n),i=s(t);return p?p.call(e,i,o):e.slice(o-i.length,o)===i}})},8109:(t,e,r)=>{"use strict";var n=r(1420).charAt,o=r(5264),i=r(5875),a=r(8277),s="String Iterator",u=i.set,c=i.getterFor(s);a(String,"String",(function(t){u(this,{type:s,string:o(t),index:0})}),(function(){var t,e=c(this),r=e.string,o=e.index;return o>=r.length?{value:void 0,done:!0}:(t=n(r,o),e.index+=t.length,{value:t,done:!1})}))},8318:(t,e,r)=>{"use strict";var n=r(390),o=r(2868),i=r(8104),a=r(8367),s=r(7001),u=r(3216),c=r(6530),f=r(6690),l=r(1054),p=r(3359),h=r(1149),d=r(1912),v=r(2058),y=r(3861),g=r(5623),m=r(5264),w=r(5595),b=r(2491),T=r(461),P=r(9035),C=r(6159),_=r(3764),x=r(5904),$=r(7550),A=r(1156),O=r(8518),S=r(9791),k=r(6315),j=r(5039),E=r(7048),R=r(9),F=r(5712),D=r(3379),W=r(1412),I=r(6738),L=r(5875),U=r(4206).forEach,M=j("hidden"),H="Symbol",V=F("toPrimitive"),B=L.set,N=L.getterFor(H),z=Object.prototype,G=o.Symbol,q=i("JSON","stringify"),J=x.f,X=$.f,Y=C.f,K=A.f,Z=k("symbols"),Q=k("op-symbols"),tt=k("string-to-symbol-registry"),et=k("symbol-to-string-registry"),rt=k("wks"),nt=o.QObject,ot=!nt||!nt.prototype||!nt.prototype.findChild,it=s&&c((function(){return 7!=b(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=J(z,e);n&&delete z[e],X(t,e,r),n&&t!==z&&X(z,e,n)}:X,at=function(t,e){var r=Z[t]=b(G.prototype);return B(r,{type:H,tag:t,description:e}),s||(r.description=e),r},st=function(t,e,r){t===z&&st(Q,e,r),d(t);var n=g(e);return d(r),f(Z,n)?(r.enumerable?(f(t,M)&&t[M][n]&&(t[M][n]=!1),r=b(r,{enumerable:w(0,!1)})):(f(t,M)||X(t,M,w(1,{})),t[M][n]=!0),it(t,n,r)):X(t,n,r)},ut=function(t,e){d(t);var r=y(e),n=T(r).concat(pt(r));return U(n,(function(e){s&&!ct.call(r,e)||st(t,e,r[e])})),t},ct=function(t){var e=g(t),r=K.call(this,e);return!(this===z&&f(Z,e)&&!f(Q,e))&&(!(r||!f(this,e)||!f(Z,e)||f(this,M)&&this[M][e])||r)},ft=function(t,e){var r=y(t),n=g(e);if(r!==z||!f(Z,n)||f(Q,n)){var o=J(r,n);return!o||!f(Z,n)||f(r,M)&&r[M][n]||(o.enumerable=!0),o}},lt=function(t){var e=Y(y(t)),r=[];return U(e,(function(t){f(Z,t)||f(E,t)||r.push(t)})),r},pt=function(t){var e=t===z,r=Y(e?Q:y(t)),n=[];return U(r,(function(t){!f(Z,t)||e&&!f(z,t)||n.push(Z[t])})),n};(u||(S((G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?m(arguments[0]):void 0,e=R(t),r=function(t){this===z&&r.call(Q,t),f(this,M)&&f(this[M],e)&&(this[M][e]=!1),it(this,e,w(1,t))};return s&&ot&&it(z,e,{configurable:!0,set:r}),at(e,t)}).prototype,"toString",(function(){return N(this).tag})),S(G,"withoutSetter",(function(t){return at(R(t),t)})),A.f=ct,$.f=st,x.f=ft,P.f=C.f=lt,_.f=pt,D.f=function(t){return at(F(t),t)},s&&(X(G.prototype,"description",{configurable:!0,get:function(){return N(this).description}}),a||S(z,"propertyIsEnumerable",ct,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:G}),U(T(rt),(function(t){W(t)})),n({target:H,stat:!0,forced:!u},{for:function(t){var e=m(t);if(f(tt,e))return tt[e];var r=G(e);return tt[e]=r,et[r]=e,r},keyFor:function(t){if(!h(t))throw TypeError(t+" is not a symbol");if(f(et,t))return et[t]},useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),n({target:"Object",stat:!0,forced:!u,sham:!s},{create:function(t,e){return void 0===e?b(t):ut(b(t),e)},defineProperty:st,defineProperties:ut,getOwnPropertyDescriptor:ft}),n({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:lt,getOwnPropertySymbols:pt}),n({target:"Object",stat:!0,forced:c((function(){_.f(1)}))},{getOwnPropertySymbols:function(t){return _.f(v(t))}}),q)&&n({target:"JSON",stat:!0,forced:!u||c((function(){var t=G();return"[null]"!=q([t])||"{}"!=q({a:t})||"{}"!=q(Object(t))}))},{stringify:function(t,e,r){for(var n,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(n=e,(p(e)||void 0!==t)&&!h(t))return l(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!h(e))return e}),o[1]=e,q.apply(null,o)}});G.prototype[V]||O(G.prototype,V,G.prototype.valueOf),I(G,H),E[M]=!0},1152:(t,e,r)=>{r(6454)},8561:(t,e,r)=>{r(4465)},8302:(t,e,r)=>{r(8359)},5543:(t,e,r)=>{"use strict";var n=r(390),o=r(4130),i=r(4618);n({target:"Promise",stat:!0},{try:function(t){var e=o.f(this),r=i(t);return(r.error?e.reject:e.resolve)(r.value),e.promise}})},9702:(t,e,r)=>{r(2228);var n=r(315),o=r(2868),i=r(7499),a=r(8518),s=r(9418),u=r(5712)("toStringTag");for(var c in n){var f=o[c],l=f&&f.prototype;l&&i(l)!==u&&a(l,u,c),s[c]=s.Array}},9842:(t,e,r)=>{var n=r(7543);t.exports=n},5697:(t,e,r)=>{var n=r(1065);t.exports=n},3798:(t,e,r)=>{var n=r(4388);t.exports=n},671:(t,e,r)=>{var n=r(1285);t.exports=n},8730:(t,e,r)=>{var n=r(2529);t.exports=n},8531:(t,e,r)=>{var n=r(6854);t.exports=n},3751:(t,e,r)=>{var n=r(2744);t.exports=n},1380:(t,e,r)=>{var n=r(6018);t.exports=n},6601:(t,e,r)=>{var n=r(5350);t.exports=n},8783:(t,e,r)=>{var n=r(8116);t.exports=n},4731:(t,e,r)=>{var n=r(7281);r(9702),t.exports=n},3521:(t,e,r)=>{"use strict";t.exports=r.p+"5004fdc02f329ce53b69.wasm"},5463:(t,e,r)=>{"use strict";t.exports=r.p+"c22b37c3488e1d6c3aa4.wasm"},3621:(t,e,r)=>{"use strict";t.exports=r.p+"65916ef3def695744bda.wasm"},8987:(t,e,r)=>{"use strict";t.exports=r.p+"75788f12450d4c5ed494.wasm"},981:()=>{},1209:()=>{},1973:()=>{},378:()=>{},9652:()=>{},6087:()=>{},4555:()=>{},1005:()=>{}},n={};function o(t){var e=n[t];if(void 0!==e)return e.exports;var i=n[t]={exports:{}};return r[t].call(i.exports,i,i.exports,o),i.exports}o.m=r,o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,o.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var i=Object.create(null);o.r(i);var a={};t=t||[null,e({}),e([]),e(e)];for(var s=2&n&&r;"object"==typeof s&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach((t=>a[t]=()=>r[t]));return a.default=()=>r,o.d(i,a),i},o.d=(t,e)=>{for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.f={},o.e=t=>Promise.all(Object.keys(o.f).reduce(((e,r)=>(o.f[r](t,e),e)),[])),o.u=t=>t+".min.worker.js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;o.g.importScripts&&(t=o.g.location+"");var e=o.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var r=e.getElementsByTagName("script");r.length&&(t=r[r.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=t})(),(()=>{var t={362:1};o.f.i=(e,r)=>{t[e]||importScripts(o.p+o.u(e))};var e=self.webpackChunk_name_=self.webpackChunk_name_||[],r=e.push.bind(e);e.push=e=>{var[n,i,a]=e;for(var s in i)o.o(i,s)&&(o.m[s]=i[s]);for(a&&a(o);n.length;)t[n.pop()]=1;r(e)}})(),(()=>{"use strict";var t=o(5534);function e(e,r,n,o,i,a,s){try{var u=e[a](s),c=u.value}catch(t){return void n(t)}u.done?r(c):t.resolve(c).then(o,i)}function r(r){return function(){var n=this,o=arguments;return new t((function(t,i){var a=r.apply(n,o);function s(r){e(a,t,i,s,u,"next",r)}function u(r){e(a,t,i,s,u,"throw",r)}s(void 0)}))}}var n,i=o(2043),a=o.n(i),s=o(7878),u=o.n(s),c=o(4559),f=o.n(c),l={},p=!1;function h(t){if(!p){if(n=t.config,self.registerTaskHandler=d,t.config.webWorkerTaskPaths)for(var e=0;e<t.config.webWorkerTaskPaths.length;e++)self.importScripts(t.config.webWorkerTaskPaths[e]);u()(l).forEach((function(t){l[t].initialize(n.taskConfiguration)})),self.postMessage({taskType:"initialize",status:"success",result:{},workerIndex:t.workerIndex}),p=!0}}function d(t){if(l[t.taskType])return console.log('attempt to register duplicate task handler "',t.taskType,'"'),!1;l[t.taskType]=t,p&&t.initialize(n.taskConfiguration)}self.onmessage=function(){var t=r(a().mark((function t(e){var r,o,i,s;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.data.taskType){t.next=3;break}return console.log(e.data),t.abrupt("return");case 3:if("initialize"!==e.data.taskType){t.next=6;break}return h(e.data),t.abrupt("return");case 6:if("loadWebWorkerTask"!==e.data.taskType){t.next=9;break}return a=e.data,n=a.config,self.importScripts(a.sourcePath),t.abrupt("return");case 9:if(!l[e.data.taskType]){t.next=25;break}return t.prev=10,t.next=13,l[e.data.taskType].handler(e.data);case 13:r=t.sent,o=r.result,i=r.transferList,self.postMessage({taskType:e.data.taskType,status:"success",result:o,workerIndex:e.data.workerIndex},i),t.next=23;break;case 19:t.prev=19,t.t0=t.catch(10),console.log(f()(s="task ".concat(e.data.taskType," failed - ")).call(s,t.t0.message),t.t0),self.postMessage({taskType:e.data.taskType,status:"failed",result:t.t0.message,workerIndex:e.data.workerIndex});case 23:t.next=28;break;case 25:console.log("no task handler for ",e.data.taskType),console.log(l),self.postMessage({taskType:e.data.taskType,status:"failed - no task handler registered",workerIndex:e.data.workerIndex});case 28:case"end":return t.stop()}var a}),t,null,[[10,19]])})));return function(e){return t.apply(this,arguments)}}();var v=o(1246),y=o.n(v),g=o(1082);function m(t,e,r){return e in t?g(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var w=o(2250),b=o.n(w),T=o(7552),P=o.n(T),C=o(1882),_=o.n(C),x=o(7647),$=o.n(x),A=o(337),O=o.n(A),S=o(2770),k=o.n(S),j=o(4044),E=o.n(j),R=o(3621);function F(t,e){var r=u()(t);if(_()){var n=_()(t);e&&(n=$()(n).call(n,(function(e){return O()(t,e).enumerable}))),r.push.apply(r,n)}return r}function D(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?F(Object(r),!0).forEach((function(e){m(t,e,r[e])})):k()?Object.defineProperties(t,k()(r)):F(Object(r)).forEach((function(e){Object.defineProperty(t,e,O()(r,e))}))}return t}var W={codec:void 0,decoder:void 0,decodeConfig:{}};function I(t){if(W.decodeConfig=t,W.codec)return b().resolve();var e=E()({locateFile:function(t){return P()(t).call(t,".wasm")?R:t}});return new(b())((function(t,r){e.then((function(e){W.codec=e,W.decoder=new e.J2KDecoder,t()}),r)}))}function L(){return(L=r(a().mark((function t(e,r){var n,o,i,s,u,c,l,p,h,d,v,y,g,m,w,b,T,P,C,_,x,$;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,I();case 2:return u=W.decoder,(c=u.getEncodedBuffer(e.length)).set(e),u.decode(),l=u.getFrameInfo(),p=u.getDecodedBuffer(),new Uint8Array(p.length).set(p),h=f()(n="x: ".concat(u.getImageOffset().x,", y: ")).call(n,u.getImageOffset().y),d=u.getNumDecompositions(),v=u.getNumLayers(),y=["unknown","LRCP","RLCP","RPCL","PCRL","CPRL"][u.getProgressionOrder()+1],g=u.getIsReversible(),m=f()(o="".concat(u.getBlockDimensions().width," x ")).call(o,u.getBlockDimensions().height),w=f()(i="".concat(u.getTileSize().width," x ")).call(i,u.getTileSize().height),b=f()(s="".concat(u.getTileOffset().x,", ")).call(s,u.getTileOffset().y),T=u.getColorSpace(),P="".concat(p.length.toLocaleString()," bytes"),C="".concat((p.length/c.length).toFixed(2),":1"),_={columns:l.width,rows:l.height,bitsPerPixel:l.bitsPerSample,signed:l.isSigned,bytesPerPixel:r.bytesPerPixel,componentsPerPixel:l.componentCount},x=U(l,p),$={imageOffset:h,numDecompositions:d,numLayers:v,progessionOrder:y,reversible:g,blockDimensions:m,tileSize:w,tileOffset:b,colorTransform:T,decodedSize:P,compressionRatio:C},t.abrupt("return",D(D(D({},r),{},{pixelData:x,imageInfo:_,encodeOptions:$},$),_));case 25:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function U(t,e){return t.bitsPerSample>8?t.isSigned?new Int16Array(e.buffer,e.byteOffset,e.byteLength/2):new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2):t.isSigned?new Int8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}const M=function(t,e){return L.apply(this,arguments)};var H=o(8327),V=o.n(H),B=o(3521);function N(t,e){var r=u()(t);if(_()){var n=_()(t);e&&(n=$()(n).call(n,(function(e){return O()(t,e).enumerable}))),r.push.apply(r,n)}return r}function z(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?N(Object(r),!0).forEach((function(e){m(t,e,r[e])})):k()?Object.defineProperties(t,k()(r)):N(Object(r)).forEach((function(e){Object.defineProperty(t,e,O()(r,e))}))}return t}var G={codec:void 0,decoder:void 0,decodeConfig:{}};function q(t){return"number"==typeof t?G.codec.getExceptionMessage(t):t}function J(t){if(G.decodeConfig=t,G.codec)return b().resolve();var e=V()({locateFile:function(t){return P()(t).call(t,".wasm")?B:t}});return new(b())((function(t,r){e.then((function(e){G.codec=e,G.decoder=new e.JpegLSDecoder,t()}),r)}))}function X(){return(X=r(a().mark((function t(e,r){var n,o,i,s,u,c,f,l;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,J();case 3:return n=G.decoder,n.getEncodedBuffer(e.length).set(e),n.decode(),o=n.getFrameInfo(),i=n.getInterleaveMode(),s=n.getNearLossless(),u=n.getDecodedBuffer(),c={columns:o.width,rows:o.height,bitsPerPixel:o.bitsPerSample,signed:r.signed,bytesPerPixel:r.bytesPerPixel,componentsPerPixel:o.componentCount},f=Y(o,u,r.signed),l={nearLossless:s,interleaveMode:i,frameInfo:o},t.abrupt("return",z(z(z({},r),{},{pixelData:f,imageInfo:c,encodeOptions:l},l),c));case 17:throw t.prev=17,t.t0=t.catch(0),q(t.t0);case 20:case"end":return t.stop()}}),t,null,[[0,17]])})))).apply(this,arguments)}function Y(t,e,r){return t.bitsPerSample>8?r?new Int16Array(e.buffer,e.byteOffset,e.byteLength/2):new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2):r?new Int8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}const K=function(t,e){return X.apply(this,arguments)};const Z=function(t){for(var e,r=t[0],n=t[0],o=t.length,i=1;i<o;i++)e=t[i],r=Math.min(r,e),n=Math.max(n,e);return{min:r,max:n}};function Q(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=Z(t.pixelData),n=!(tt(t.smallestPixelValue)&&tt(t.largestPixelValue));!0!==e||n?(t.smallestPixelValue=r.min,t.largestPixelValue=r.max):(t.smallestPixelValue!==r.min&&console.warn("Image smallestPixelValue tag is incorrect. Rendering performance will suffer considerably."),t.largestPixelValue!==r.max&&console.warn("Image largestPixelValue tag is incorrect. Rendering performance will suffer considerably."))}function tt(t){return"number"==typeof t}var et=o(6028),rt=o.n(et);function nt(){return(nt=r(a().mark((function t(e,r){var n,o,i;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.buffer,o=r.byteOffset,i=r.length,16===e.bitsAllocated?(o%2&&(n=rt()(n).call(n,o),o=0),0===e.pixelRepresentation?e.pixelData=new Uint16Array(n,o,i/2):e.pixelData=new Int16Array(n,o,i/2)):8===e.bitsAllocated||1===e.bitsAllocated?e.pixelData=r:32===e.bitsAllocated&&(o%2&&(n=rt()(n).call(n,o),o=0),e.pixelData=new Float32Array(n,o,i/4)),t.abrupt("return",e);case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}const ot=function(t,e){return nt.apply(this,arguments)};function it(t){return(255&t)<<8|t>>8&255}function at(){return(at=r(a().mark((function t(e,r){var n,o,i,s;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(16===e.bitsAllocated)for(n=r.buffer,o=r.byteOffset,i=r.length,o%2&&(n=rt()(n).call(n,o),o=0),0===e.pixelRepresentation?e.pixelData=new Uint16Array(n,o,i/2):e.pixelData=new Int16Array(n,o,i/2),s=0;s<e.pixelData.length;s++)e.pixelData[s]=it(e.pixelData[s]);else 8===e.bitsAllocated&&(e.pixelData=r);return t.abrupt("return",e);case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}const st=function(t,e){return at.apply(this,arguments)};function ut(){return(ut=r(a().mark((function t(e,r){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(8!==e.bitsAllocated){t.next=6;break}if(!e.planarConfiguration){t.next=3;break}return t.abrupt("return",ft(e,r));case 3:return t.abrupt("return",ct(e,r));case 6:if(16!==e.bitsAllocated){t.next=8;break}return t.abrupt("return",lt(e,r));case 8:throw new Error("unsupported pixel format for RLE");case 9:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function ct(t,e){for(var r=e,n=t.rows*t.columns,o=new ArrayBuffer(n*t.samplesPerPixel),i=new DataView(r.buffer,r.byteOffset),a=new Int8Array(r.buffer,r.byteOffset),s=new Int8Array(o),u=0,c=i.getInt32(0,!0),f=0;f<c;++f){u=f;var l=i.getInt32(4*(f+1),!0),p=i.getInt32(4*(f+2),!0);0===p&&(p=r.length);for(var h=n*c;l<p;){var d=a[l++];if(d>=0&&d<=127)for(var v=0;v<d+1&&u<h;++v)s[u]=a[l++],u+=t.samplesPerPixel;else if(d<=-1&&d>=-127)for(var y=a[l++],g=0;g<1-d&&u<h;++g)s[u]=y,u+=t.samplesPerPixel}}return t.pixelData=new Uint8Array(o),t}function ft(t,e){for(var r=e,n=t.rows*t.columns,o=new ArrayBuffer(n*t.samplesPerPixel),i=new DataView(r.buffer,r.byteOffset),a=new Int8Array(r.buffer,r.byteOffset),s=new Int8Array(o),u=0,c=i.getInt32(0,!0),f=0;f<c;++f){u=f*n;var l=i.getInt32(4*(f+1),!0),p=i.getInt32(4*(f+2),!0);0===p&&(p=r.length);for(var h=n*c;l<p;){var d=a[l++];if(d>=0&&d<=127)for(var v=0;v<d+1&&u<h;++v)s[u]=a[l++],u++;else if(d<=-1&&d>=-127)for(var y=a[l++],g=0;g<1-d&&u<h;++g)s[u]=y,u++}}return t.pixelData=new Uint8Array(o),t}function lt(t,e){for(var r=e,n=t.rows*t.columns,o=new ArrayBuffer(n*t.samplesPerPixel*2),i=new DataView(r.buffer,r.byteOffset),a=new Int8Array(r.buffer,r.byteOffset),s=new Int8Array(o),u=i.getInt32(0,!0),c=0;c<u;++c){var f=0,l=0===c?1:0,p=i.getInt32(4*(c+1),!0),h=i.getInt32(4*(c+2),!0);for(0===h&&(h=r.length);p<h;){var d=a[p++];if(d>=0&&d<=127)for(var v=0;v<d+1&&f<n;++v)s[2*f+l]=a[p++],f++;else if(d<=-1&&d>=-127)for(var y=a[p++],g=0;g<1-d&&f<n;++g)s[2*f+l]=y,f++}}return 0===t.pixelRepresentation?t.pixelData=new Uint16Array(o):t.pixelData=new Int16Array(o),t}const pt=function(t,e){return ut.apply(this,arguments)};var ht=o(9400),dt=o.n(ht),vt=o(5463);function yt(t,e){var r=u()(t);if(_()){var n=_()(t);e&&(n=$()(n).call(n,(function(e){return O()(t,e).enumerable}))),r.push.apply(r,n)}return r}function gt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?yt(Object(r),!0).forEach((function(e){m(t,e,r[e])})):k()?Object.defineProperties(t,k()(r)):yt(Object(r)).forEach((function(e){Object.defineProperty(t,e,O()(r,e))}))}return t}var mt={codec:void 0,decoder:void 0};function wt(){if(mt.codec)return b().resolve();var t=dt()({locateFile:function(t){return P()(t).call(t,".wasm")?vt:t}});return new(b())((function(e,r){t.then((function(t){mt.codec=t,mt.decoder=new t.JPEGDecoder,e()}),r)}))}function bt(){return(bt=r(a().mark((function t(e,r){var n,o,i,s,u,c;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,wt();case 2:return n=mt.decoder,n.getEncodedBuffer(e.length).set(e),n.decode(),o=n.getFrameInfo(),i=n.getDecodedBuffer(),s={columns:o.width,rows:o.height,bitsPerPixel:o.bitsPerSample,signed:r.signed,bytesPerPixel:r.bytesPerPixel,componentsPerPixel:o.componentCount},u=Tt(o,i),c={frameInfo:o},t.abrupt("return",gt(gt(gt({},r),{},{pixelData:u,imageInfo:s,encodeOptions:c},c),s));case 12:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Tt(t,e){return t.isSigned?new Int8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}const Pt=function(t,e){return bt.apply(this,arguments)};var Ct={JpegImage:void 0,decodeConfig:{}};function _t(t){return Ct.decodeConfig=t,Ct.JpegImage?b().resolve():new(b())((function(t,e){o.e(888).then(o.t.bind(o,1888,23)).then((function(e){var r=e.JpegImage;Ct.JpegImage=r,t()}),e)}))}function xt(){return(xt=r(a().mark((function t(e,r){var n;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,_t();case 2:if(void 0!==Ct.JpegImage){t.next=4;break}throw new Error("No JPEG Baseline decoder loaded");case 4:if((n=new Ct.JpegImage).parse(r),n.colorTransform=!1,8!==e.bitsAllocated){t.next=12;break}return e.pixelData=n.getData(e.columns,e.rows),t.abrupt("return",e);case 12:if(16!==e.bitsAllocated){t.next=15;break}return e.pixelData=n.getData16(e.columns,e.rows),t.abrupt("return",e);case 15:case"end":return t.stop()}}),t)})))).apply(this,arguments)}const $t=function(t,e){return xt.apply(this,arguments)};var At={jpeg:void 0,decodeConfig:{}};function Ot(t){return At.decodeConfig=t,At.jpeg?b().resolve():new(b())((function(t,e){o.e(610).then(o.t.bind(o,8726,23)).then((function(e){At.jpeg=e,t()}),e)}))}function St(){return(St=r(a().mark((function t(e,r){var n,o,i,s;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ot();case 2:if(void 0!==At.jpeg&&void 0!==At.jpeg.lossless&&void 0!==At.jpeg.lossless.Decoder){t.next=4;break}throw new Error("No JPEG Lossless decoder loaded");case 4:if(n=e.bitsAllocated<=8?1:2,o=r.buffer,i=new At.jpeg.lossless.Decoder,s=i.decode(o,r.byteOffset,r.length,n),0!==e.pixelRepresentation){t.next=14;break}if(16!==e.bitsAllocated){t.next=12;break}return e.pixelData=new Uint16Array(s.buffer),t.abrupt("return",e);case 12:return e.pixelData=new Uint8Array(s.buffer),t.abrupt("return",e);case 14:return e.pixelData=new Int16Array(s.buffer),t.abrupt("return",e);case 16:case"end":return t.stop()}}),t)})))).apply(this,arguments)}const kt=function(t,e){return St.apply(this,arguments)};var jt=o(6396),Et=o.n(jt),Rt=o(8987);function Ft(t,e){var r=u()(t);if(_()){var n=_()(t);e&&(n=$()(n).call(n,(function(e){return O()(t,e).enumerable}))),r.push.apply(r,n)}return r}function Dt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ft(Object(r),!0).forEach((function(e){m(t,e,r[e])})):k()?Object.defineProperties(t,k()(r)):Ft(Object(r)).forEach((function(e){Object.defineProperty(t,e,O()(r,e))}))}return t}var Wt={codec:void 0,decoder:void 0,decodeConfig:{}};function It(t){if(Wt.decodeConfig=t,Wt.codec)return b().resolve();var e=Et()({locateFile:function(t){return P()(t).call(t,".wasm")?Rt:t}});return new(b())((function(t,r){e.then((function(e){Wt.codec=e,Wt.decoder=new e.HTJ2KDecoder,t()}),r)}))}function Lt(){return(Lt=r(a().mark((function t(e,r){var n,o,i,s,u,c,l,p,h,d,v,y,g,m,w,b,T,P,C,_,x,$,A,O,S,k;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,It();case 2:return u=Wt.decoder,(c=u.getEncodedBuffer(e.length)).set(e),u.decode(),l=u.getFrameInfo(),p=u.getDecodedBuffer(),new Uint8Array(p.length).set(p),h=f()(n="x: ".concat(u.getImageOffset().x,", y: ")).call(n,u.getImageOffset().y),d=u.getNumDecompositions(),v=u.getNumLayers(),y=["unknown","LRCP","RLCP","RPCL","PCRL","CPRL"][u.getProgressionOrder()+1],g=u.getIsReversible(),m=f()(o="".concat(u.getBlockDimensions().width," x ")).call(o,u.getBlockDimensions().height),w=f()(i="".concat(u.getTileSize().width," x ")).call(i,u.getTileSize().height),b=f()(s="".concat(u.getTileOffset().x,", ")).call(s,u.getTileOffset().y),T="".concat(p.length.toLocaleString()," bytes"),P="".concat((p.length/c.length).toFixed(2),":1"),C={columns:l.width,rows:l.height,bitsPerPixel:l.bitsPerSample,signed:l.isSigned,bytesPerPixel:r.bytesPerPixel,componentsPerPixel:l.componentCount},_=Ut(l,p),$=(x=_).buffer,A=x.byteOffset,O=x.byteLength,S=rt()($).call($,A,A+O),_=new _.constructor(S),k={imageOffset:h,numDecompositions:d,numLayers:v,progessionOrder:y,reversible:g,blockDimensions:m,tileSize:w,tileOffset:b,decodedSize:T,compressionRatio:P},t.abrupt("return",Dt(Dt(Dt({},r),{},{pixelData:_,imageInfo:C,encodeOptions:k},k),C));case 27:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Ut(t,e){return t.bitsPerSample>8?t.isSigned?new Int16Array(e.buffer,e.byteOffset,e.byteLength/2):new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2):t.isSigned?new Int8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}const Mt=function(t,e){return Lt.apply(this,arguments)};function Ht(t,e){var r=u()(t);if(_()){var n=_()(t);e&&(n=$()(n).call(n,(function(e){return O()(t,e).enumerable}))),r.push.apply(r,n)}return r}function Vt(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ht(Object(r),!0).forEach((function(e){m(t,e,r[e])})):k()?Object.defineProperties(t,k()(r)):Ht(Object(r)).forEach((function(e){Object.defineProperty(t,e,O()(r,e))}))}return t}function Bt(){return(Bt=r(a().mark((function t(e,r,n,o,i,s){var u,c,f,l,p;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:u=(new Date).getTime(),c=null,t.t0=r,t.next="1.2.840.10008.1.2"===t.t0||"1.2.840.10008.1.2.1"===t.t0?5:"1.2.840.10008.1.2.2"===t.t0?7:"1.2.840.10008.1.2.1.99"===t.t0?9:"1.2.840.10008.1.2.5"===t.t0?11:"1.2.840.10008.1.2.4.50"===t.t0?13:"1.2.840.10008.1.2.4.51"===t.t0?16:"1.2.840.10008.1.2.4.57"===t.t0?18:"1.2.840.10008.1.2.4.70"===t.t0?20:"1.2.840.10008.1.2.4.80"===t.t0?22:"1.2.840.10008.1.2.4.81"===t.t0?25:"1.2.840.10008.1.2.4.90"===t.t0?28:"1.2.840.10008.1.2.4.91"===t.t0?31:"3.2.840.10008.1.2.4.96"===t.t0?34:37;break;case 5:return c=ot(e,n),t.abrupt("break",38);case 7:return c=st(e,n),t.abrupt("break",38);case 9:return c=ot(e,n),t.abrupt("break",38);case 11:return c=pt(e,n),t.abrupt("break",38);case 13:return f=Vt({},e),c=Pt(n,f),t.abrupt("break",38);case 16:return c=$t(e,n),t.abrupt("break",38);case 18:case 20:return c=kt(e,n),t.abrupt("break",38);case 22:return f=Vt({signed:1===e.pixelRepresentation,bytesPerPixel:e.bitsAllocated<=8?1:2},e),c=K(n,f),t.abrupt("break",38);case 25:return f=Vt({signed:!1,bytesPerPixel:e.bitsAllocated<=8?1:2},e),c=K(n,f),t.abrupt("break",38);case 28:case 31:return f=Vt({},e),c=M(n,f),t.abrupt("break",38);case 34:return f=Vt({},e),c=Mt(n,f),t.abrupt("break",38);case 37:throw new Error("no decoder for transfer syntax ".concat(r));case 38:if(c){t.next=40;break}throw new Error("decodePromise not defined");case 40:return t.next=42,c;case 42:return l=t.sent,p=Nt(l,i,u,o),null==s||s(p),t.abrupt("return",p);case 46:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function Nt(t,e,r,n){var o=(n||{}).use16BitDataType,i=void 0!==t.pixelRepresentation&&1===t.pixelRepresentation,a=i&&void 0!==t.bitsStored?32-t.bitsStored:void 0;if(i&&void 0!==a)for(var s=0;s<t.pixelData.length;s++)t.pixelData[s]=t.pixelData[s]<<a>>a;var u=t.pixelData;if(t.pixelDataLength=t.pixelData.length,e.targetBuffer){var c,l,p=e.targetBuffer;c=p.offset,l=p.length;var h,d=e.targetBuffer,v=d.arrayBuffer,y=d.type;switch(null==c&&(c=0),null==l&&0!==c?l=t.pixelDataLength-c:null==l&&(l=t.pixelDataLength),y){case"Uint8Array":h=Uint8Array;break;case o&&"Uint16Array":h=Uint16Array;break;case o&&"Int16Array":h=Int16Array;break;case"Float32Array":h=Float32Array;break;default:throw new Error("target array for image does not have a valid type.")}var g,m,w=t.pixelData;if(l!==w.length)throw new Error(f()(g="target array for image does not have the same length (".concat(l,") as the decoded image length (")).call(g,w.length,")."));(m=v?new h(v,c,l):new h(l)).set(w,0),u=m}if(e.preScale.enabled){var b=e.preScale.scalingParameters;if(!b)throw new Error("options.preScale.scalingParameters must be defined if preScale.enabled is true, and scalingParameters cannot be derived from the metadata providers.");var T=b.rescaleSlope,P=b.rescaleIntercept;"number"==typeof T&&"number"==typeof P&&function(t,e){var r=t.length,n=e.rescaleSlope,o=e.rescaleIntercept,i=e.suvbw;if("PT"===e.modality&&"number"==typeof i)for(var a=0;a<r;a++)t[a]=i*(t[a]*n+o);else for(var s=0;s<r;s++)t[s]=t[s]*n+o;return!0}(u,b)&&(t.preScale=Vt(Vt({},e.preScale),{},{scaled:!0}))}e.targetBuffer&&(!e.targetBuffer.arrayBuffer||e.targetBuffer.arrayBuffer instanceof ArrayBuffer)&&(t.pixelData=u);var C=(new Date).getTime();return t.decodeTimeInMS=C-r,t}const zt=function(t,e,r,n,o,i){return Bt.apply(this,arguments)};var Gt;function qt(t){t.decodeTask.initializeCodecsOnStartup&&(I(t.decodeTask),J(t.decodeTask))}function Jt(){return(Jt=r(a().mark((function t(e,r){var n,o,i;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return qt(Gt),n=Gt&&Gt.decodeTask&&Gt.decodeTask.strict,o=new Uint8Array(e.data.pixelData),t.next=5,zt(e.data.imageFrame,e.data.transferSyntax,o,y()(Gt.decodeTask,e.data.decodeConfig),e.data.options);case 5:if((i=t.sent).pixelData){t.next=8;break}throw new Error("decodeTask: imageFrame.pixelData is undefined after decoding");case 8:return Q(i,n),i.pixelData=i.pixelData.buffer,null==r||r(i,[i.pixelData]),t.abrupt("return",{result:i,transferList:[i.pixelData]});case 12:case"end":return t.stop()}}),t)})))).apply(this,arguments)}d({taskType:"decodeTask",handler:function(t,e){return Jt.apply(this,arguments)},initialize:function(t){Gt=t,qt(t)}})})()})();
//# sourceMappingURL=index.worker.min.worker.js.map