zxing-wasm
Advanced tools
Comparing version 1.2.7 to 1.2.8
@@ -1,3 +0,3 @@ | ||
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("../core-Wr6FQ5Lz.cjs");var cr=(()=>{var k=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(N={}){var xe;var l=N,Jr,vr;l.ready=new Promise((e,r)=>{Jr=e,vr=r});var Kr=Object.assign({},l),Qr="./this.program",re=typeof window=="object",ee=typeof Bun<"u",Ne=typeof((xe=globalThis.WebAssembly)==null?void 0:xe.instantiate)=="function",dr=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&process.versions.node;var I="";function Le(e){return l.locateFile?l.locateFile(e,I):I+e}var Rr;(re||dr||ee)&&(dr?I=self.location.href:typeof document<"u"&&document.currentScript&&(I=document.currentScript.src),k&&(I=k),I.startsWith("blob:")?I="":I=I.substr(0,I.replace(/[?#].*/,"").lastIndexOf("/")+1),dr&&(Rr=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}));var ze=l.print||console.log.bind(console),Z=l.printErr||console.error.bind(console);Object.assign(l,Kr),Kr=null,l.arguments&&l.arguments,l.thisProgram&&(Qr=l.thisProgram),l.quit&&l.quit;var rr;l.wasmBinary&&(rr=l.wasmBinary);var pr,te=!1,M,D,G,er,O,y,ne,ae;function ie(){var e=pr.buffer;l.HEAP8=M=new Int8Array(e),l.HEAP16=G=new Int16Array(e),l.HEAPU8=D=new Uint8Array(e),l.HEAPU16=er=new Uint16Array(e),l.HEAP32=O=new Int32Array(e),l.HEAPU32=y=new Uint32Array(e),l.HEAPF32=ne=new Float32Array(e),l.HEAPF64=ae=new Float64Array(e)}var oe=[],se=[],ue=[];function Xe(){if(l.preRun)for(typeof l.preRun=="function"&&(l.preRun=[l.preRun]);l.preRun.length;)qe(l.preRun.shift());Or(oe)}function Ze(){Or(se)}function Ge(){if(l.postRun)for(typeof l.postRun=="function"&&(l.postRun=[l.postRun]);l.postRun.length;)Ke(l.postRun.shift());Or(ue)}function qe(e){oe.unshift(e)}function Je(e){se.unshift(e)}function Ke(e){ue.unshift(e)}var L=0,tr=null;function Qe(e){var r;L++,(r=l.monitorRunDependencies)===null||r===void 0||r.call(l,L)}function rt(e){var r;if(L--,(r=l.monitorRunDependencies)===null||r===void 0||r.call(l,L),L==0&&tr){var t=tr;tr=null,t()}}function Dr(e){var r;(r=l.onAbort)===null||r===void 0||r.call(l,e),e="Aborted("+e+")",Z(e),te=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw vr(t),t}var et="data:application/octet-stream;base64,",le=e=>e.startsWith(et),q;q="zxing_full.wasm",le(q)||(q=Le(q));function fe(e){if(e==q&&rr)return new Uint8Array(rr);if(Rr)return Rr(e);throw"both async and sync fetching of the wasm failed"}function tt(e){return!rr&&(re||dr||ee||Ne)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(r=>{if(!r.ok)throw`failed to load wasm binary file at '${e}'`;return r.arrayBuffer()}).catch(()=>fe(e)):Promise.resolve().then(()=>fe(e))}function ce(e,r,t){return tt(e).then(n=>WebAssembly.instantiate(n,r)).then(t,n=>{Z(`failed to asynchronously prepare wasm: ${n}`),Dr(n)})}function nt(e,r,t,n){return!e&&typeof WebAssembly.instantiateStreaming=="function"&&!le(r)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(a=>{var i=WebAssembly.instantiateStreaming(a,t);return i.then(n,function(o){return Z(`wasm streaming compile failed: ${o}`),Z("falling back to ArrayBuffer instantiation"),ce(r,t,n)})}):ce(r,t,n)}function at(){var e={a:qn};function r(n,a){return P=n.exports,pr=P.na,ie(),$e=P.ra,Je(P.oa),rt(),P}Qe();function t(n){r(n.instance)}if(l.instantiateWasm)try{return l.instantiateWasm(e,r)}catch(n){Z(`Module.instantiateWasm callback failed with error: ${n}`),vr(n)}return nt(rr,q,e,t).catch(vr),{}}var Or=e=>{for(;e.length>0;)e.shift()(l)};l.noExitRuntime;var hr=[],_r=0,it=e=>{var r=new Wr(e);return r.get_caught()||(r.set_caught(!0),_r--),r.set_rethrown(!1),hr.push(r),Me(r.excPtr),r.get_exception_ptr()},x=0,ot=()=>{m(0,0);var e=hr.pop();ke(e.excPtr),x=0};class Wr{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){y[this.ptr+4>>2]=r}get_type(){return y[this.ptr+4>>2]}set_destructor(r){y[this.ptr+8>>2]=r}get_destructor(){return y[this.ptr+8>>2]}set_caught(r){r=r?1:0,M[this.ptr+12]=r}get_caught(){return M[this.ptr+12]!=0}set_rethrown(r){r=r?1:0,M[this.ptr+13]=r}get_rethrown(){return M[this.ptr+13]!=0}init(r,t){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(t)}set_adjusted_ptr(r){y[this.ptr+16>>2]=r}get_adjusted_ptr(){return y[this.ptr+16>>2]}get_exception_ptr(){var r=Ie(this.get_type());if(r)return y[this.excPtr>>2];var t=this.get_adjusted_ptr();return t!==0?t:this.excPtr}}var st=e=>{throw x||(x=e),x},kr=e=>{var r=x;if(!r)return fr(0),0;var t=new Wr(r);t.set_adjusted_ptr(r);var n=t.get_type();if(!n)return fr(0),r;for(var a in e){var i=e[a];if(i===0||i===n)break;var o=t.ptr+16;if(je(i,n,o))return fr(i),r}return fr(n),r},ut=()=>kr([]),lt=e=>kr([e]),ft=(e,r)=>kr([e,r]),ct=()=>{var e=hr.pop();e||Dr("no exception to throw");var r=e.excPtr;throw e.get_rethrown()||(hr.push(e),e.set_rethrown(!0),e.set_caught(!1),_r++),x=r,x},vt=(e,r,t)=>{var n=new Wr(e);throw n.init(r,t),x=e,_r++,x},dt=()=>_r,gr={},Mr=e=>{for(;e.length;){var r=e.pop(),t=e.pop();t(r)}};function nr(e){return this.fromWireType(y[e>>2])}var J={},z={},yr={},ve,mr=e=>{throw new ve(e)},X=(e,r,t)=>{e.forEach(function(s){yr[s]=r});function n(s){var u=t(s);u.length!==e.length&&mr("Mismatched type converter count");for(var c=0;c<e.length;++c)U(e[c],u[c])}var a=new Array(r.length),i=[],o=0;r.forEach((s,u)=>{z.hasOwnProperty(s)?a[u]=z[s]:(i.push(s),J.hasOwnProperty(s)||(J[s]=[]),J[s].push(()=>{a[u]=z[s],++o,o===i.length&&n(a)}))}),i.length===0&&n(a)},pt=e=>{var r=gr[e];delete gr[e];var t=r.rawConstructor,n=r.rawDestructor,a=r.fields,i=a.map(o=>o.getterReturnType).concat(a.map(o=>o.setterArgumentType));X([e],i,o=>{var s={};return a.forEach((u,c)=>{var v=u.fieldName,h=o[c],p=u.getter,_=u.getterContext,C=o[c+a.length],W=u.setter,T=u.setterContext;s[v]={read:F=>h.fromWireType(p(_,F)),write:(F,f)=>{var d=[];W(T,F,C.toWireType(d,f)),Mr(d)}}}),[{name:r.name,fromWireType:u=>{var c={};for(var v in s)c[v]=s[v].read(u);return n(u),c},toWireType:(u,c)=>{for(var v in s)if(!(v in c))throw new TypeError(`Missing field: "${v}"`);var h=t();for(v in s)s[v].write(h,c[v]);return u!==null&&u.push(n,h),h},argPackAdvance:H,readValueFromPointer:nr,destructorFunction:n}]})},ht=(e,r,t,n,a)=>{},_t=()=>{for(var e=new Array(256),r=0;r<256;++r)e[r]=String.fromCharCode(r);de=e},de,R=e=>{for(var r="",t=e;D[t];)r+=de[D[t++]];return r},K,g=e=>{throw new K(e)};function gt(e,r){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=r.name;if(e||g(`type "${n}" must have a positive integer typeid pointer`),z.hasOwnProperty(e)){if(t.ignoreDuplicateRegistrations)return;g(`Cannot register type '${n}' twice`)}if(z[e]=r,delete yr[e],J.hasOwnProperty(e)){var a=J[e];delete J[e],a.forEach(i=>i())}}function U(e,r){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");return gt(e,r,t)}var H=8,yt=(e,r,t,n)=>{r=R(r),U(e,{name:r,fromWireType:function(a){return!!a},toWireType:function(a,i){return i?t:n},argPackAdvance:H,readValueFromPointer:function(a){return this.fromWireType(D[a])},destructorFunction:null})},mt=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),jr=e=>{function r(t){return t.$$.ptrType.registeredClass.name}g(r(e)+" instance already deleted")},Ir=!1,pe=e=>{},$t=e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)},he=e=>{e.count.value-=1;var r=e.count.value===0;r&&$t(e)},_e=(e,r,t)=>{if(r===t)return e;if(t.baseClass===void 0)return null;var n=_e(e,r,t.baseClass);return n===null?null:t.downcast(n)},ge={},bt=()=>Object.keys(or).length,wt=()=>{var e=[];for(var r in or)or.hasOwnProperty(r)&&e.push(or[r]);return e},ar=[],Ur=()=>{for(;ar.length;){var e=ar.pop();e.$$.deleteScheduled=!1,e.delete()}},ir,Tt=e=>{ir=e,ar.length&&ir&&ir(Ur)},Pt=()=>{l.getInheritedInstanceCount=bt,l.getLiveInheritedInstances=wt,l.flushPendingDeletes=Ur,l.setDelayFunction=Tt},or={},Ct=(e,r)=>{for(r===void 0&&g("ptr should not be undefined");e.baseClass;)r=e.upcast(r),e=e.baseClass;return r},At=(e,r)=>(r=Ct(e,r),or[r]),$r=(e,r)=>{(!r.ptrType||!r.ptr)&&mr("makeClassHandle requires ptr and ptrType");var t=!!r.smartPtrType,n=!!r.smartPtr;return t!==n&&mr("Both smartPtrType and smartPtr must be specified"),r.count={value:1},sr(Object.create(e,{$$:{value:r,writable:!0}}))};function Et(e){var r=this.getPointee(e);if(!r)return this.destructor(e),null;var t=At(this.registeredClass,r);if(t!==void 0){if(t.$$.count.value===0)return t.$$.ptr=r,t.$$.smartPtr=e,t.clone();var n=t.clone();return this.destructor(e),n}function a(){return this.isSmartPointer?$r(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:r,smartPtrType:this,smartPtr:e}):$r(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var i=this.registeredClass.getActualType(r),o=ge[i];if(!o)return a.call(this);var s;this.isConst?s=o.constPointerType:s=o.pointerType;var u=_e(r,this.registeredClass,s.registeredClass);return u===null?a.call(this):this.isSmartPointer?$r(s.registeredClass.instancePrototype,{ptrType:s,ptr:u,smartPtrType:this,smartPtr:e}):$r(s.registeredClass.instancePrototype,{ptrType:s,ptr:u})}var sr=e=>typeof FinalizationRegistry>"u"?(sr=r=>r,e):(Ir=new FinalizationRegistry(r=>{he(r.$$)}),sr=r=>{var t=r.$$,n=!!t.smartPtr;if(n){var a={$$:t};Ir.register(r,a,r)}return r},pe=r=>Ir.unregister(r),sr(e)),Ft=()=>{Object.assign(br.prototype,{isAliasOf(e){if(!(this instanceof br)||!(e instanceof br))return!1;var r=this.$$.ptrType.registeredClass,t=this.$$.ptr;e.$$=e.$$;for(var n=e.$$.ptrType.registeredClass,a=e.$$.ptr;r.baseClass;)t=r.upcast(t),r=r.baseClass;for(;n.baseClass;)a=n.upcast(a),n=n.baseClass;return r===n&&t===a},clone(){if(this.$$.ptr||jr(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=sr(Object.create(Object.getPrototypeOf(this),{$$:{value:mt(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||jr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&g("Object already scheduled for deletion"),pe(this),he(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||jr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&g("Object already scheduled for deletion"),ar.push(this),ar.length===1&&ir&&ir(Ur),this.$$.deleteScheduled=!0,this}})};function br(){}var ur=(e,r)=>Object.defineProperty(r,"name",{value:e}),ye=(e,r,t)=>{if(e[r].overloadTable===void 0){var n=e[r];e[r]=function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return e[r].overloadTable.hasOwnProperty(i.length)||g(`Function '${t}' called with an invalid number of arguments (${i.length}) - expects one of (${e[r].overloadTable})!`),e[r].overloadTable[i.length].apply(this,i)},e[r].overloadTable=[],e[r].overloadTable[n.argCount]=n}},Hr=(e,r,t)=>{l.hasOwnProperty(e)?((t===void 0||l[e].overloadTable!==void 0&&l[e].overloadTable[t]!==void 0)&&g(`Cannot register public name '${e}' twice`),ye(l,e,e),l.hasOwnProperty(t)&&g(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),l[e].overloadTable[t]=r):(l[e]=r,t!==void 0&&(l[e].numArguments=t))},St=48,Rt=57,Dt=e=>{if(e===void 0)return"_unknown";e=e.replace(/[^a-zA-Z0-9_]/g,"$");var r=e.charCodeAt(0);return r>=St&&r<=Rt?`_${e}`:e};function Ot(e,r,t,n,a,i,o,s){this.name=e,this.constructor=r,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=a,this.getActualType=i,this.upcast=o,this.downcast=s,this.pureVirtualFunctions=[]}var xr=(e,r,t)=>{for(;r!==t;)r.upcast||g(`Expected null or instance of ${t.name}, got an instance of ${r.name}`),e=r.upcast(e),r=r.baseClass;return e};function Wt(e,r){if(r===null)return this.isReference&&g(`null is not a valid ${this.name}`),0;r.$$||g(`Cannot pass "${zr(r)}" as a ${this.name}`),r.$$.ptr||g(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=r.$$.ptrType.registeredClass,n=xr(r.$$.ptr,t,this.registeredClass);return n}function kt(e,r){var t;if(r===null)return this.isReference&&g(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),e!==null&&e.push(this.rawDestructor,t),t):0;(!r||!r.$$)&&g(`Cannot pass "${zr(r)}" as a ${this.name}`),r.$$.ptr||g(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&r.$$.ptrType.isConst&&g(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);var n=r.$$.ptrType.registeredClass;if(t=xr(r.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(r.$$.smartPtr===void 0&&g("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:r.$$.smartPtrType===this?t=r.$$.smartPtr:g(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=r.$$.smartPtr;break;case 2:if(r.$$.smartPtrType===this)t=r.$$.smartPtr;else{var a=r.clone();t=this.rawShare(t,B.toHandle(()=>a.delete())),e!==null&&e.push(this.rawDestructor,t)}break;default:g("Unsupporting sharing policy")}return t}function Mt(e,r){if(r===null)return this.isReference&&g(`null is not a valid ${this.name}`),0;r.$$||g(`Cannot pass "${zr(r)}" as a ${this.name}`),r.$$.ptr||g(`Cannot pass deleted object as a pointer of type ${this.name}`),r.$$.ptrType.isConst&&g(`Cannot convert argument of type ${r.$$.ptrType.name} to parameter type ${this.name}`);var t=r.$$.ptrType.registeredClass,n=xr(r.$$.ptr,t,this.registeredClass);return n}var jt=()=>{Object.assign(wr.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){var r;(r=this.rawDestructor)===null||r===void 0||r.call(this,e)},argPackAdvance:H,readValueFromPointer:nr,fromWireType:Et})};function wr(e,r,t,n,a,i,o,s,u,c,v){this.name=e,this.registeredClass=r,this.isReference=t,this.isConst=n,this.isSmartPointer=a,this.pointeeType=i,this.sharingPolicy=o,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=v,!a&&r.baseClass===void 0?n?(this.toWireType=Wt,this.destructorFunction=null):(this.toWireType=Mt,this.destructorFunction=null):this.toWireType=kt}var me=(e,r,t)=>{l.hasOwnProperty(e)||mr("Replacing nonexistent public symbol"),l[e].overloadTable!==void 0&&t!==void 0?l[e].overloadTable[t]=r:(l[e]=r,l[e].argCount=t)},It=(e,r,t)=>{var n=l["dynCall_"+e];return n(r,...t)},Tr=[],$e,$=e=>{var r=Tr[e];return r||(e>=Tr.length&&(Tr.length=e+1),Tr[e]=r=$e.get(e)),r},Ut=function(e,r){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(e.includes("j"))return It(e,r,t);var n=$(r)(...t);return n},Ht=(e,r)=>function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return Ut(e,r,n)},j=(e,r)=>{e=R(e);function t(){return e.includes("j")?Ht(e,r):$(r)}var n=t();return typeof n!="function"&&g(`unknown function pointer with signature ${e}: ${r}`),n},xt=(e,r)=>{var t=ur(r,function(n){this.name=r,this.message=n;var a=new Error(n).stack;a!==void 0&&(this.stack=this.toString()+` | ||
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("../core-Dh7S8O4y.cjs");var cr=(()=>{var k=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(N={}){var xe;var l=N,Jr,vr;l.ready=new Promise((e,r)=>{Jr=e,vr=r});var Kr=Object.assign({},l),Qr="./this.program",re=typeof window=="object",ee=typeof Bun<"u",Ne=typeof((xe=globalThis.WebAssembly)==null?void 0:xe.instantiate)=="function",dr=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&process.versions.node;var I="";function Le(e){return l.locateFile?l.locateFile(e,I):I+e}var Rr;(re||dr||ee)&&(dr?I=self.location.href:typeof document<"u"&&document.currentScript&&(I=document.currentScript.src),k&&(I=k),I.startsWith("blob:")?I="":I=I.substr(0,I.replace(/[?#].*/,"").lastIndexOf("/")+1),dr&&(Rr=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}));var ze=l.print||console.log.bind(console),Z=l.printErr||console.error.bind(console);Object.assign(l,Kr),Kr=null,l.arguments&&l.arguments,l.thisProgram&&(Qr=l.thisProgram),l.quit&&l.quit;var rr;l.wasmBinary&&(rr=l.wasmBinary);var pr,te=!1,M,D,G,er,O,y,ne,ae;function ie(){var e=pr.buffer;l.HEAP8=M=new Int8Array(e),l.HEAP16=G=new Int16Array(e),l.HEAPU8=D=new Uint8Array(e),l.HEAPU16=er=new Uint16Array(e),l.HEAP32=O=new Int32Array(e),l.HEAPU32=y=new Uint32Array(e),l.HEAPF32=ne=new Float32Array(e),l.HEAPF64=ae=new Float64Array(e)}var oe=[],se=[],ue=[];function Xe(){if(l.preRun)for(typeof l.preRun=="function"&&(l.preRun=[l.preRun]);l.preRun.length;)qe(l.preRun.shift());Or(oe)}function Ze(){Or(se)}function Ge(){if(l.postRun)for(typeof l.postRun=="function"&&(l.postRun=[l.postRun]);l.postRun.length;)Ke(l.postRun.shift());Or(ue)}function qe(e){oe.unshift(e)}function Je(e){se.unshift(e)}function Ke(e){ue.unshift(e)}var L=0,tr=null;function Qe(e){var r;L++,(r=l.monitorRunDependencies)===null||r===void 0||r.call(l,L)}function rt(e){var r;if(L--,(r=l.monitorRunDependencies)===null||r===void 0||r.call(l,L),L==0&&tr){var t=tr;tr=null,t()}}function Dr(e){var r;(r=l.onAbort)===null||r===void 0||r.call(l,e),e="Aborted("+e+")",Z(e),te=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw vr(t),t}var et="data:application/octet-stream;base64,",le=e=>e.startsWith(et),q;q="zxing_full.wasm",le(q)||(q=Le(q));function fe(e){if(e==q&&rr)return new Uint8Array(rr);if(Rr)return Rr(e);throw"both async and sync fetching of the wasm failed"}function tt(e){return!rr&&(re||dr||ee||Ne)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(r=>{if(!r.ok)throw`failed to load wasm binary file at '${e}'`;return r.arrayBuffer()}).catch(()=>fe(e)):Promise.resolve().then(()=>fe(e))}function ce(e,r,t){return tt(e).then(n=>WebAssembly.instantiate(n,r)).then(t,n=>{Z(`failed to asynchronously prepare wasm: ${n}`),Dr(n)})}function nt(e,r,t,n){return!e&&typeof WebAssembly.instantiateStreaming=="function"&&!le(r)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(a=>{var i=WebAssembly.instantiateStreaming(a,t);return i.then(n,function(o){return Z(`wasm streaming compile failed: ${o}`),Z("falling back to ArrayBuffer instantiation"),ce(r,t,n)})}):ce(r,t,n)}function at(){var e={a:qn};function r(n,a){return P=n.exports,pr=P.na,ie(),$e=P.ra,Je(P.oa),rt(),P}Qe();function t(n){r(n.instance)}if(l.instantiateWasm)try{return l.instantiateWasm(e,r)}catch(n){Z(`Module.instantiateWasm callback failed with error: ${n}`),vr(n)}return nt(rr,q,e,t).catch(vr),{}}var Or=e=>{for(;e.length>0;)e.shift()(l)};l.noExitRuntime;var hr=[],_r=0,it=e=>{var r=new Wr(e);return r.get_caught()||(r.set_caught(!0),_r--),r.set_rethrown(!1),hr.push(r),Me(r.excPtr),r.get_exception_ptr()},x=0,ot=()=>{m(0,0);var e=hr.pop();ke(e.excPtr),x=0};class Wr{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){y[this.ptr+4>>2]=r}get_type(){return y[this.ptr+4>>2]}set_destructor(r){y[this.ptr+8>>2]=r}get_destructor(){return y[this.ptr+8>>2]}set_caught(r){r=r?1:0,M[this.ptr+12]=r}get_caught(){return M[this.ptr+12]!=0}set_rethrown(r){r=r?1:0,M[this.ptr+13]=r}get_rethrown(){return M[this.ptr+13]!=0}init(r,t){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(t)}set_adjusted_ptr(r){y[this.ptr+16>>2]=r}get_adjusted_ptr(){return y[this.ptr+16>>2]}get_exception_ptr(){var r=Ie(this.get_type());if(r)return y[this.excPtr>>2];var t=this.get_adjusted_ptr();return t!==0?t:this.excPtr}}var st=e=>{throw x||(x=e),x},kr=e=>{var r=x;if(!r)return fr(0),0;var t=new Wr(r);t.set_adjusted_ptr(r);var n=t.get_type();if(!n)return fr(0),r;for(var a in e){var i=e[a];if(i===0||i===n)break;var o=t.ptr+16;if(je(i,n,o))return fr(i),r}return fr(n),r},ut=()=>kr([]),lt=e=>kr([e]),ft=(e,r)=>kr([e,r]),ct=()=>{var e=hr.pop();e||Dr("no exception to throw");var r=e.excPtr;throw e.get_rethrown()||(hr.push(e),e.set_rethrown(!0),e.set_caught(!1),_r++),x=r,x},vt=(e,r,t)=>{var n=new Wr(e);throw n.init(r,t),x=e,_r++,x},dt=()=>_r,gr={},Mr=e=>{for(;e.length;){var r=e.pop(),t=e.pop();t(r)}};function nr(e){return this.fromWireType(y[e>>2])}var J={},z={},yr={},ve,mr=e=>{throw new ve(e)},X=(e,r,t)=>{e.forEach(function(s){yr[s]=r});function n(s){var u=t(s);u.length!==e.length&&mr("Mismatched type converter count");for(var c=0;c<e.length;++c)U(e[c],u[c])}var a=new Array(r.length),i=[],o=0;r.forEach((s,u)=>{z.hasOwnProperty(s)?a[u]=z[s]:(i.push(s),J.hasOwnProperty(s)||(J[s]=[]),J[s].push(()=>{a[u]=z[s],++o,o===i.length&&n(a)}))}),i.length===0&&n(a)},pt=e=>{var r=gr[e];delete gr[e];var t=r.rawConstructor,n=r.rawDestructor,a=r.fields,i=a.map(o=>o.getterReturnType).concat(a.map(o=>o.setterArgumentType));X([e],i,o=>{var s={};return a.forEach((u,c)=>{var v=u.fieldName,h=o[c],p=u.getter,_=u.getterContext,C=o[c+a.length],W=u.setter,T=u.setterContext;s[v]={read:F=>h.fromWireType(p(_,F)),write:(F,f)=>{var d=[];W(T,F,C.toWireType(d,f)),Mr(d)}}}),[{name:r.name,fromWireType:u=>{var c={};for(var v in s)c[v]=s[v].read(u);return n(u),c},toWireType:(u,c)=>{for(var v in s)if(!(v in c))throw new TypeError(`Missing field: "${v}"`);var h=t();for(v in s)s[v].write(h,c[v]);return u!==null&&u.push(n,h),h},argPackAdvance:H,readValueFromPointer:nr,destructorFunction:n}]})},ht=(e,r,t,n,a)=>{},_t=()=>{for(var e=new Array(256),r=0;r<256;++r)e[r]=String.fromCharCode(r);de=e},de,R=e=>{for(var r="",t=e;D[t];)r+=de[D[t++]];return r},K,g=e=>{throw new K(e)};function gt(e,r){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=r.name;if(e||g(`type "${n}" must have a positive integer typeid pointer`),z.hasOwnProperty(e)){if(t.ignoreDuplicateRegistrations)return;g(`Cannot register type '${n}' twice`)}if(z[e]=r,delete yr[e],J.hasOwnProperty(e)){var a=J[e];delete J[e],a.forEach(i=>i())}}function U(e,r){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");return gt(e,r,t)}var H=8,yt=(e,r,t,n)=>{r=R(r),U(e,{name:r,fromWireType:function(a){return!!a},toWireType:function(a,i){return i?t:n},argPackAdvance:H,readValueFromPointer:function(a){return this.fromWireType(D[a])},destructorFunction:null})},mt=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),jr=e=>{function r(t){return t.$$.ptrType.registeredClass.name}g(r(e)+" instance already deleted")},Ir=!1,pe=e=>{},$t=e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)},he=e=>{e.count.value-=1;var r=e.count.value===0;r&&$t(e)},_e=(e,r,t)=>{if(r===t)return e;if(t.baseClass===void 0)return null;var n=_e(e,r,t.baseClass);return n===null?null:t.downcast(n)},ge={},bt=()=>Object.keys(or).length,wt=()=>{var e=[];for(var r in or)or.hasOwnProperty(r)&&e.push(or[r]);return e},ar=[],Ur=()=>{for(;ar.length;){var e=ar.pop();e.$$.deleteScheduled=!1,e.delete()}},ir,Tt=e=>{ir=e,ar.length&&ir&&ir(Ur)},Pt=()=>{l.getInheritedInstanceCount=bt,l.getLiveInheritedInstances=wt,l.flushPendingDeletes=Ur,l.setDelayFunction=Tt},or={},Ct=(e,r)=>{for(r===void 0&&g("ptr should not be undefined");e.baseClass;)r=e.upcast(r),e=e.baseClass;return r},At=(e,r)=>(r=Ct(e,r),or[r]),$r=(e,r)=>{(!r.ptrType||!r.ptr)&&mr("makeClassHandle requires ptr and ptrType");var t=!!r.smartPtrType,n=!!r.smartPtr;return t!==n&&mr("Both smartPtrType and smartPtr must be specified"),r.count={value:1},sr(Object.create(e,{$$:{value:r,writable:!0}}))};function Et(e){var r=this.getPointee(e);if(!r)return this.destructor(e),null;var t=At(this.registeredClass,r);if(t!==void 0){if(t.$$.count.value===0)return t.$$.ptr=r,t.$$.smartPtr=e,t.clone();var n=t.clone();return this.destructor(e),n}function a(){return this.isSmartPointer?$r(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:r,smartPtrType:this,smartPtr:e}):$r(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var i=this.registeredClass.getActualType(r),o=ge[i];if(!o)return a.call(this);var s;this.isConst?s=o.constPointerType:s=o.pointerType;var u=_e(r,this.registeredClass,s.registeredClass);return u===null?a.call(this):this.isSmartPointer?$r(s.registeredClass.instancePrototype,{ptrType:s,ptr:u,smartPtrType:this,smartPtr:e}):$r(s.registeredClass.instancePrototype,{ptrType:s,ptr:u})}var sr=e=>typeof FinalizationRegistry>"u"?(sr=r=>r,e):(Ir=new FinalizationRegistry(r=>{he(r.$$)}),sr=r=>{var t=r.$$,n=!!t.smartPtr;if(n){var a={$$:t};Ir.register(r,a,r)}return r},pe=r=>Ir.unregister(r),sr(e)),Ft=()=>{Object.assign(br.prototype,{isAliasOf(e){if(!(this instanceof br)||!(e instanceof br))return!1;var r=this.$$.ptrType.registeredClass,t=this.$$.ptr;e.$$=e.$$;for(var n=e.$$.ptrType.registeredClass,a=e.$$.ptr;r.baseClass;)t=r.upcast(t),r=r.baseClass;for(;n.baseClass;)a=n.upcast(a),n=n.baseClass;return r===n&&t===a},clone(){if(this.$$.ptr||jr(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=sr(Object.create(Object.getPrototypeOf(this),{$$:{value:mt(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||jr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&g("Object already scheduled for deletion"),pe(this),he(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||jr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&g("Object already scheduled for deletion"),ar.push(this),ar.length===1&&ir&&ir(Ur),this.$$.deleteScheduled=!0,this}})};function br(){}var ur=(e,r)=>Object.defineProperty(r,"name",{value:e}),ye=(e,r,t)=>{if(e[r].overloadTable===void 0){var n=e[r];e[r]=function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return e[r].overloadTable.hasOwnProperty(i.length)||g(`Function '${t}' called with an invalid number of arguments (${i.length}) - expects one of (${e[r].overloadTable})!`),e[r].overloadTable[i.length].apply(this,i)},e[r].overloadTable=[],e[r].overloadTable[n.argCount]=n}},Hr=(e,r,t)=>{l.hasOwnProperty(e)?((t===void 0||l[e].overloadTable!==void 0&&l[e].overloadTable[t]!==void 0)&&g(`Cannot register public name '${e}' twice`),ye(l,e,e),l.hasOwnProperty(t)&&g(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),l[e].overloadTable[t]=r):(l[e]=r,t!==void 0&&(l[e].numArguments=t))},St=48,Rt=57,Dt=e=>{if(e===void 0)return"_unknown";e=e.replace(/[^a-zA-Z0-9_]/g,"$");var r=e.charCodeAt(0);return r>=St&&r<=Rt?`_${e}`:e};function Ot(e,r,t,n,a,i,o,s){this.name=e,this.constructor=r,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=a,this.getActualType=i,this.upcast=o,this.downcast=s,this.pureVirtualFunctions=[]}var xr=(e,r,t)=>{for(;r!==t;)r.upcast||g(`Expected null or instance of ${t.name}, got an instance of ${r.name}`),e=r.upcast(e),r=r.baseClass;return e};function Wt(e,r){if(r===null)return this.isReference&&g(`null is not a valid ${this.name}`),0;r.$$||g(`Cannot pass "${zr(r)}" as a ${this.name}`),r.$$.ptr||g(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=r.$$.ptrType.registeredClass,n=xr(r.$$.ptr,t,this.registeredClass);return n}function kt(e,r){var t;if(r===null)return this.isReference&&g(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),e!==null&&e.push(this.rawDestructor,t),t):0;(!r||!r.$$)&&g(`Cannot pass "${zr(r)}" as a ${this.name}`),r.$$.ptr||g(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&r.$$.ptrType.isConst&&g(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);var n=r.$$.ptrType.registeredClass;if(t=xr(r.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(r.$$.smartPtr===void 0&&g("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:r.$$.smartPtrType===this?t=r.$$.smartPtr:g(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=r.$$.smartPtr;break;case 2:if(r.$$.smartPtrType===this)t=r.$$.smartPtr;else{var a=r.clone();t=this.rawShare(t,B.toHandle(()=>a.delete())),e!==null&&e.push(this.rawDestructor,t)}break;default:g("Unsupporting sharing policy")}return t}function Mt(e,r){if(r===null)return this.isReference&&g(`null is not a valid ${this.name}`),0;r.$$||g(`Cannot pass "${zr(r)}" as a ${this.name}`),r.$$.ptr||g(`Cannot pass deleted object as a pointer of type ${this.name}`),r.$$.ptrType.isConst&&g(`Cannot convert argument of type ${r.$$.ptrType.name} to parameter type ${this.name}`);var t=r.$$.ptrType.registeredClass,n=xr(r.$$.ptr,t,this.registeredClass);return n}var jt=()=>{Object.assign(wr.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){var r;(r=this.rawDestructor)===null||r===void 0||r.call(this,e)},argPackAdvance:H,readValueFromPointer:nr,fromWireType:Et})};function wr(e,r,t,n,a,i,o,s,u,c,v){this.name=e,this.registeredClass=r,this.isReference=t,this.isConst=n,this.isSmartPointer=a,this.pointeeType=i,this.sharingPolicy=o,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=v,!a&&r.baseClass===void 0?n?(this.toWireType=Wt,this.destructorFunction=null):(this.toWireType=Mt,this.destructorFunction=null):this.toWireType=kt}var me=(e,r,t)=>{l.hasOwnProperty(e)||mr("Replacing nonexistent public symbol"),l[e].overloadTable!==void 0&&t!==void 0?l[e].overloadTable[t]=r:(l[e]=r,l[e].argCount=t)},It=(e,r,t)=>{var n=l["dynCall_"+e];return n(r,...t)},Tr=[],$e,$=e=>{var r=Tr[e];return r||(e>=Tr.length&&(Tr.length=e+1),Tr[e]=r=$e.get(e)),r},Ut=function(e,r){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(e.includes("j"))return It(e,r,t);var n=$(r)(...t);return n},Ht=(e,r)=>function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return Ut(e,r,n)},j=(e,r)=>{e=R(e);function t(){return e.includes("j")?Ht(e,r):$(r)}var n=t();return typeof n!="function"&&g(`unknown function pointer with signature ${e}: ${r}`),n},xt=(e,r)=>{var t=ur(r,function(n){this.name=r,this.message=n;var a=new Error(n).stack;a!==void 0&&(this.stack=this.toString()+` | ||
`+a.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},be,we=e=>{var r=We(e),t=R(r);return Y(r),t},Pr=(e,r)=>{var t=[],n={};function a(i){if(!n[i]&&!z[i]){if(yr[i]){yr[i].forEach(a);return}t.push(i),n[i]=!0}}throw r.forEach(a),new be(`${e}: `+t.map(we).join([", "]))},Vt=(e,r,t,n,a,i,o,s,u,c,v,h,p)=>{v=R(v),i=j(a,i),s&&(s=j(o,s)),c&&(c=j(u,c)),p=j(h,p);var _=Dt(v);Hr(_,function(){Pr(`Cannot construct ${v} due to unbound types`,[n])}),X([e,r,t],n?[n]:[],C=>{C=C[0];var W,T;n?(W=C.registeredClass,T=W.instancePrototype):T=br.prototype;var F=ur(v,function(){if(Object.getPrototypeOf(this)!==f)throw new K("Use 'new' to construct "+v);if(d.constructor_body===void 0)throw new K(v+" has no accessible constructor");for(var Be=arguments.length,Fr=new Array(Be),Sr=0;Sr<Be;Sr++)Fr[Sr]=arguments[Sr];var Ye=d.constructor_body[Fr.length];if(Ye===void 0)throw new K(`Tried to invoke ctor of ${v} with invalid number of parameters (${Fr.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);return Ye.apply(this,Fr)}),f=Object.create(T,{constructor:{value:F}});F.prototype=f;var d=new Ot(v,F,f,p,W,i,s,c);if(d.baseClass){var A,E;(E=(A=d.baseClass).__derivedClasses)!==null&&E!==void 0||(A.__derivedClasses=[]),d.baseClass.__derivedClasses.push(d)}var Q=new wr(v,d,!0,!1,!1),Er=new wr(v+"*",d,!1,!1,!1),Ve=new wr(v+" const*",d,!1,!0,!1);return ge[e]={pointerType:Er,constPointerType:Ve},me(_,F),[Q,Er,Ve]})},Vr=(e,r)=>{for(var t=[],n=0;n<e;n++)t.push(y[r+n*4>>2]);return t};function Bt(e){for(var r=1;r<e.length;++r)if(e[r]!==null&&e[r].destructorFunction===void 0)return!0;return!1}function Br(e,r,t,n,a,i){var o=r.length;o<2&&g("argTypes array size mismatch! Must at least get return value and 'this' types!");var s=r[1]!==null&&t!==null,u=Bt(r),c=r[0].name!=="void",v=o-2,h=new Array(v),p=[],_=[],C=function(){arguments.length!==v&&g(`function ${e} called with ${arguments.length} arguments, expected ${v}`),_.length=0;var W;p.length=s?2:1,p[0]=a,s&&(W=r[1].toWireType(_,this),p[1]=W);for(var T=0;T<v;++T)h[T]=r[T+2].toWireType(_,T<0||arguments.length<=T?void 0:arguments[T]),p.push(h[T]);var F=n(...p);function f(d){if(u)Mr(_);else for(var A=s?1:2;A<r.length;A++){var E=A===1?W:h[A-2];r[A].destructorFunction!==null&&r[A].destructorFunction(E)}if(c)return r[0].fromWireType(d)}return f(F)};return ur(e,C)}var Yt=(e,r,t,n,a,i)=>{var o=Vr(r,t);a=j(n,a),X([],[e],s=>{s=s[0];var u=`constructor ${s.name}`;if(s.registeredClass.constructor_body===void 0&&(s.registeredClass.constructor_body=[]),s.registeredClass.constructor_body[r-1]!==void 0)throw new K(`Cannot register multiple constructors with identical number of parameters (${r-1}) for class '${s.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return s.registeredClass.constructor_body[r-1]=()=>{Pr(`Cannot construct ${s.name} due to unbound types`,o)},X([],o,c=>(c.splice(1,0,null),s.registeredClass.constructor_body[r-1]=Br(u,c,null,a,i),[])),[]})},Te=e=>{e=e.trim();const r=e.indexOf("(");return r!==-1?e.substr(0,r):e},Nt=(e,r,t,n,a,i,o,s,u)=>{var c=Vr(t,n);r=R(r),r=Te(r),i=j(a,i),X([],[e],v=>{v=v[0];var h=`${v.name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&v.registeredClass.pureVirtualFunctions.push(r);function p(){Pr(`Cannot call ${h} due to unbound types`,c)}var _=v.registeredClass.instancePrototype,C=_[r];return C===void 0||C.overloadTable===void 0&&C.className!==v.name&&C.argCount===t-2?(p.argCount=t-2,p.className=v.name,_[r]=p):(ye(_,r,h),_[r].overloadTable[t-2]=p),X([],c,W=>{var T=Br(h,W,v,i,o);return _[r].overloadTable===void 0?(T.argCount=t-2,_[r]=T):_[r].overloadTable[t-2]=T,[]}),[]})},Yr=[],V=[],Nr=e=>{e>9&&--V[e+1]===0&&(V[e]=void 0,Yr.push(e))},Lt=()=>V.length/2-5-Yr.length,zt=()=>{V.push(0,1,void 0,1,null,1,!0,1,!1,1),l.count_emval_handles=Lt},B={toValue:e=>(e||g("Cannot use deleted val. handle = "+e),V[e]),toHandle:e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const r=Yr.pop()||V.length;return V[r]=e,V[r+1]=1,r}}}},Xt={name:"emscripten::val",fromWireType:e=>{var r=B.toValue(e);return Nr(e),r},toWireType:(e,r)=>B.toHandle(r),argPackAdvance:H,readValueFromPointer:nr,destructorFunction:null},Pe=e=>U(e,Xt),Zt=(e,r,t)=>{switch(r){case 1:return t?function(n){return this.fromWireType(M[n])}:function(n){return this.fromWireType(D[n])};case 2:return t?function(n){return this.fromWireType(G[n>>1])}:function(n){return this.fromWireType(er[n>>1])};case 4:return t?function(n){return this.fromWireType(O[n>>2])}:function(n){return this.fromWireType(y[n>>2])};default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},Gt=(e,r,t,n)=>{r=R(r);function a(){}a.values={},U(e,{name:r,constructor:a,fromWireType:function(i){return this.constructor.values[i]},toWireType:(i,o)=>o.value,argPackAdvance:H,readValueFromPointer:Zt(r,t,n),destructorFunction:null}),Hr(r,a)},Lr=(e,r)=>{var t=z[e];return t===void 0&&g(`${r} has unknown type ${we(e)}`),t},qt=(e,r,t)=>{var n=Lr(e,"enum");r=R(r);var a=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:ur(`${n.name}_${r}`,function(){})}});a.values[t]=i,a[r]=i},zr=e=>{if(e===null)return"null";var r=typeof e;return r==="object"||r==="array"||r==="function"?e.toString():""+e},Jt=(e,r)=>{switch(r){case 4:return function(t){return this.fromWireType(ne[t>>2])};case 8:return function(t){return this.fromWireType(ae[t>>3])};default:throw new TypeError(`invalid float width (${r}): ${e}`)}},Kt=(e,r,t)=>{r=R(r),U(e,{name:r,fromWireType:n=>n,toWireType:(n,a)=>a,argPackAdvance:H,readValueFromPointer:Jt(r,t),destructorFunction:null})},Qt=(e,r,t,n,a,i,o)=>{var s=Vr(r,t);e=R(e),e=Te(e),a=j(n,a),Hr(e,function(){Pr(`Cannot call ${e} due to unbound types`,s)},r-1),X([],s,u=>{var c=[u[0],null].concat(u.slice(1));return me(e,Br(e,c,null,a,i),r-1),[]})},rn=(e,r,t)=>{switch(r){case 1:return t?n=>M[n]:n=>D[n];case 2:return t?n=>G[n>>1]:n=>er[n>>1];case 4:return t?n=>O[n>>2]:n=>y[n>>2];default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},en=(e,r,t,n,a)=>{r=R(r);var i=v=>v;if(n===0){var o=32-8*t;i=v=>v<<o>>>o}var s=r.includes("unsigned"),u=(v,h)=>{},c;s?c=function(v,h){return u(h,this.name),h>>>0}:c=function(v,h){return u(h,this.name),h},U(e,{name:r,fromWireType:i,toWireType:c,argPackAdvance:H,readValueFromPointer:rn(r,t,n!==0),destructorFunction:null})},tn=(e,r,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],a=n[r];function i(o){var s=y[o>>2],u=y[o+4>>2];return new a(M.buffer,u,s)}t=R(t),U(e,{name:t,fromWireType:i,argPackAdvance:H,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},nn=(e,r)=>{Pe(e)},Ce=(e,r,t,n)=>{if(!(n>0))return 0;for(var a=t,i=t+n-1,o=0;o<e.length;++o){var s=e.charCodeAt(o);if(s>=55296&&s<=57343){var u=e.charCodeAt(++o);s=65536+((s&1023)<<10)|u&1023}if(s<=127){if(t>=i)break;r[t++]=s}else if(s<=2047){if(t+1>=i)break;r[t++]=192|s>>6,r[t++]=128|s&63}else if(s<=65535){if(t+2>=i)break;r[t++]=224|s>>12,r[t++]=128|s>>6&63,r[t++]=128|s&63}else{if(t+3>=i)break;r[t++]=240|s>>18,r[t++]=128|s>>12&63,r[t++]=128|s>>6&63,r[t++]=128|s&63}}return r[t]=0,t-a},an=(e,r,t)=>Ce(e,D,r,t),Ae=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n<=127?r++:n<=2047?r+=2:n>=55296&&n<=57343?(r+=4,++t):r+=3}return r},Ee=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,Fe=(e,r,t)=>{for(var n=r+t,a=r;e[a]&&!(a>=n);)++a;if(a-r>16&&e.buffer&&Ee)return Ee.decode(e.subarray(r,a));for(var i="";r<a;){var o=e[r++];if(!(o&128)){i+=String.fromCharCode(o);continue}var s=e[r++]&63;if((o&224)==192){i+=String.fromCharCode((o&31)<<6|s);continue}var u=e[r++]&63;if((o&240)==224?o=(o&15)<<12|s<<6|u:o=(o&7)<<18|s<<12|u<<6|e[r++]&63,o<65536)i+=String.fromCharCode(o);else{var c=o-65536;i+=String.fromCharCode(55296|c>>10,56320|c&1023)}}return i},Xr=(e,r)=>e?Fe(D,e,r):"",on=(e,r)=>{r=R(r);var t=r==="std::string";U(e,{name:r,fromWireType(n){var a=y[n>>2],i=n+4,o;if(t)for(var s=i,u=0;u<=a;++u){var c=i+u;if(u==a||D[c]==0){var v=c-s,h=Xr(s,v);o===void 0?o=h:(o+="\0",o+=h),s=c+1}}else{for(var p=new Array(a),u=0;u<a;++u)p[u]=String.fromCharCode(D[i+u]);o=p.join("")}return Y(n),o},toWireType(n,a){a instanceof ArrayBuffer&&(a=new Uint8Array(a));var i,o=typeof a=="string";o||a instanceof Uint8Array||a instanceof Uint8ClampedArray||a instanceof Int8Array||g("Cannot pass non-string to std::string"),t&&o?i=Ae(a):i=a.length;var s=qr(4+i+1),u=s+4;if(y[s>>2]=i,t&&o)an(a,u,i+1);else if(o)for(var c=0;c<i;++c){var v=a.charCodeAt(c);v>255&&(Y(u),g("String has UTF-16 code units that do not fit in 8 bits")),D[u+c]=v}else for(var c=0;c<i;++c)D[u+c]=a[c];return n!==null&&n.push(Y,s),s},argPackAdvance:H,readValueFromPointer:nr,destructorFunction(n){Y(n)}})},Se=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,sn=(e,r)=>{for(var t=e,n=t>>1,a=n+r/2;!(n>=a)&&er[n];)++n;if(t=n<<1,t-e>32&&Se)return Se.decode(D.subarray(e,t));for(var i="",o=0;!(o>=r/2);++o){var s=G[e+o*2>>1];if(s==0)break;i+=String.fromCharCode(s)}return i},un=(e,r,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<2)return 0;t-=2;for(var a=r,i=t<e.length*2?t/2:e.length,o=0;o<i;++o){var s=e.charCodeAt(o);G[r>>1]=s,r+=2}return G[r>>1]=0,r-a},ln=e=>e.length*2,fn=(e,r)=>{for(var t=0,n="";!(t>=r/4);){var a=O[e+t*4>>2];if(a==0)break;if(++t,a>=65536){var i=a-65536;n+=String.fromCharCode(55296|i>>10,56320|i&1023)}else n+=String.fromCharCode(a)}return n},cn=(e,r,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<4)return 0;for(var a=r,i=a+t-4,o=0;o<e.length;++o){var s=e.charCodeAt(o);if(s>=55296&&s<=57343){var u=e.charCodeAt(++o);s=65536+((s&1023)<<10)|u&1023}if(O[r>>2]=s,r+=4,r+4>i)break}return O[r>>2]=0,r-a},vn=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n>=55296&&n<=57343&&++t,r+=4}return r},dn=(e,r,t)=>{t=R(t);var n,a,i,o;r===2?(n=sn,a=un,o=ln,i=s=>er[s>>1]):r===4&&(n=fn,a=cn,o=vn,i=s=>y[s>>2]),U(e,{name:t,fromWireType:s=>{for(var u=y[s>>2],c,v=s+4,h=0;h<=u;++h){var p=s+4+h*r;if(h==u||i(p)==0){var _=p-v,C=n(v,_);c===void 0?c=C:(c+="\0",c+=C),v=p+r}}return Y(s),c},toWireType:(s,u)=>{typeof u!="string"&&g(`Cannot pass non-string to C++ string type ${t}`);var c=o(u),v=qr(4+c+r);return y[v>>2]=c/r,a(u,v+4,c+r),s!==null&&s.push(Y,v),v},argPackAdvance:H,readValueFromPointer:nr,destructorFunction(s){Y(s)}})},pn=(e,r,t,n,a,i)=>{gr[e]={name:R(r),rawConstructor:j(t,n),rawDestructor:j(a,i),fields:[]}},hn=(e,r,t,n,a,i,o,s,u,c)=>{gr[e].fields.push({fieldName:R(r),getterReturnType:t,getter:j(n,a),getterContext:i,setterArgumentType:o,setter:j(s,u),setterContext:c})},_n=(e,r)=>{r=R(r),U(e,{isVoid:!0,name:r,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},Zr=[],gn=(e,r,t,n)=>(e=Zr[e],r=B.toValue(r),e(null,r,t,n)),yn={},mn=e=>{var r=yn[e];return r===void 0?R(e):r},Re=()=>{if(typeof globalThis=="object")return globalThis;function e(r){r.$$$embind_global$$$=r;var t=typeof $$$embind_global$$$=="object"&&r.$$$embind_global$$$==r;return t||delete r.$$$embind_global$$$,t}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&e(global)?$$$embind_global$$$=global:typeof self=="object"&&e(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},$n=e=>e===0?B.toHandle(Re()):(e=mn(e),B.toHandle(Re()[e])),bn=e=>{var r=Zr.length;return Zr.push(e),r},wn=(e,r)=>{for(var t=new Array(e),n=0;n<e;++n)t[n]=Lr(y[r+n*4>>2],"parameter "+n);return t},Tn=Reflect.construct,Pn=(e,r,t)=>{var n=[],a=e.toWireType(n,t);return n.length&&(y[r>>2]=B.toHandle(n)),a},Cn=(e,r,t)=>{var n=wn(e,r),a=n.shift();e--;var i=new Array(e),o=(u,c,v,h)=>{for(var p=0,_=0;_<e;++_)i[_]=n[_].readValueFromPointer(h+p),p+=n[_].argPackAdvance;var C=t===1?Tn(c,i):c.apply(u,i);return Pn(a,v,C)},s=`methodCaller<(${n.map(u=>u.name).join(", ")}) => ${a.name}>`;return bn(ur(s,o))},An=e=>{e>9&&(V[e+1]+=1)},En=e=>{var r=B.toValue(e);Mr(r),Nr(e)},Fn=(e,r)=>{e=Lr(e,"_emval_take_value");var t=e.readValueFromPointer(r);return B.toHandle(t)},Sn=()=>{Dr("")},Rn=(e,r,t)=>D.copyWithin(e,r,r+t),Dn=()=>2147483648,On=e=>{var r=pr.buffer,t=(e-r.byteLength+65535)/65536;try{return pr.grow(t),ie(),1}catch{}},Wn=e=>{var r=D.length;e>>>=0;var t=Dn();if(e>t)return!1;for(var n=(u,c)=>u+(c-u%c)%c,a=1;a<=4;a*=2){var i=r*(1+.2/a);i=Math.min(i,e+100663296);var o=Math.min(t,n(Math.max(e,i),65536)),s=On(o);if(s)return!0}return!1},Gr={},kn=()=>Qr||"./this.program",lr=()=>{if(!lr.strings){var e=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:e,_:kn()};for(var t in Gr)Gr[t]===void 0?delete r[t]:r[t]=Gr[t];var n=[];for(var t in r)n.push(`${t}=${r[t]}`);lr.strings=n}return lr.strings},Mn=(e,r)=>{for(var t=0;t<e.length;++t)M[r++]=e.charCodeAt(t);M[r]=0},jn=(e,r)=>{var t=0;return lr().forEach((n,a)=>{var i=r+t;y[e+a*4>>2]=i,Mn(n,i),t+=n.length+1}),0},In=(e,r)=>{var t=lr();y[e>>2]=t.length;var n=0;return t.forEach(a=>n+=a.length+1),y[r>>2]=n,0},Un=e=>52;function Hn(e,r,t,n,a){return 70}var xn=[null,[],[]],Vn=(e,r)=>{var t=xn[e];r===0||r===10?((e===1?ze:Z)(Fe(t,0)),t.length=0):t.push(r)},Bn=(e,r,t,n)=>{for(var a=0,i=0;i<t;i++){var o=y[r>>2],s=y[r+4>>2];r+=8;for(var u=0;u<s;u++)Vn(e,D[o+u]);a+=s}return y[n>>2]=a,0},Yn=e=>e,Cr=e=>e%4===0&&(e%100!==0||e%400===0),Nn=(e,r)=>{for(var t=0,n=0;n<=r;t+=e[n++]);return t},De=[31,29,31,30,31,30,31,31,30,31,30,31],Oe=[31,28,31,30,31,30,31,31,30,31,30,31],Ln=(e,r)=>{for(var t=new Date(e.getTime());r>0;){var n=Cr(t.getFullYear()),a=t.getMonth(),i=(n?De:Oe)[a];if(r>i-t.getDate())r-=i-t.getDate()+1,t.setDate(1),a<11?t.setMonth(a+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1));else return t.setDate(t.getDate()+r),t}return t};function zn(e,r,t){var n=t>0?t:Ae(e)+1,a=new Array(n),i=Ce(e,a,0,a.length);return r&&(a.length=i),a}var Xn=(e,r)=>{M.set(e,r)},Zn=(e,r,t,n)=>{var a=y[n+40>>2],i={tm_sec:O[n>>2],tm_min:O[n+4>>2],tm_hour:O[n+8>>2],tm_mday:O[n+12>>2],tm_mon:O[n+16>>2],tm_year:O[n+20>>2],tm_wday:O[n+24>>2],tm_yday:O[n+28>>2],tm_isdst:O[n+32>>2],tm_gmtoff:O[n+36>>2],tm_zone:a?Xr(a):""},o=Xr(t),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var u in s)o=o.replace(new RegExp(u,"g"),s[u]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],v=["January","February","March","April","May","June","July","August","September","October","November","December"];function h(f,d,A){for(var E=typeof f=="number"?f.toString():f||"";E.length<d;)E=A[0]+E;return E}function p(f,d){return h(f,d,"0")}function _(f,d){function A(Q){return Q<0?-1:Q>0?1:0}var E;return(E=A(f.getFullYear()-d.getFullYear()))===0&&(E=A(f.getMonth()-d.getMonth()))===0&&(E=A(f.getDate()-d.getDate())),E}function C(f){switch(f.getDay()){case 0:return new Date(f.getFullYear()-1,11,29);case 1:return f;case 2:return new Date(f.getFullYear(),0,3);case 3:return new Date(f.getFullYear(),0,2);case 4:return new Date(f.getFullYear(),0,1);case 5:return new Date(f.getFullYear()-1,11,31);case 6:return new Date(f.getFullYear()-1,11,30)}}function W(f){var d=Ln(new Date(f.tm_year+1900,0,1),f.tm_yday),A=new Date(d.getFullYear(),0,4),E=new Date(d.getFullYear()+1,0,4),Q=C(A),Er=C(E);return _(Q,d)<=0?_(Er,d)<=0?d.getFullYear()+1:d.getFullYear():d.getFullYear()-1}var T={"%a":f=>c[f.tm_wday].substring(0,3),"%A":f=>c[f.tm_wday],"%b":f=>v[f.tm_mon].substring(0,3),"%B":f=>v[f.tm_mon],"%C":f=>{var d=f.tm_year+1900;return p(d/100|0,2)},"%d":f=>p(f.tm_mday,2),"%e":f=>h(f.tm_mday,2," "),"%g":f=>W(f).toString().substring(2),"%G":W,"%H":f=>p(f.tm_hour,2),"%I":f=>{var d=f.tm_hour;return d==0?d=12:d>12&&(d-=12),p(d,2)},"%j":f=>p(f.tm_mday+Nn(Cr(f.tm_year+1900)?De:Oe,f.tm_mon-1),3),"%m":f=>p(f.tm_mon+1,2),"%M":f=>p(f.tm_min,2),"%n":()=>` | ||
`,"%p":f=>f.tm_hour>=0&&f.tm_hour<12?"AM":"PM","%S":f=>p(f.tm_sec,2),"%t":()=>" ","%u":f=>f.tm_wday||7,"%U":f=>{var d=f.tm_yday+7-f.tm_wday;return p(Math.floor(d/7),2)},"%V":f=>{var d=Math.floor((f.tm_yday+7-(f.tm_wday+6)%7)/7);if((f.tm_wday+371-f.tm_yday-2)%7<=2&&d++,d){if(d==53){var E=(f.tm_wday+371-f.tm_yday)%7;E!=4&&(E!=3||!Cr(f.tm_year))&&(d=1)}}else{d=52;var A=(f.tm_wday+7-f.tm_yday-1)%7;(A==4||A==5&&Cr(f.tm_year%400-1))&&d++}return p(d,2)},"%w":f=>f.tm_wday,"%W":f=>{var d=f.tm_yday+7-(f.tm_wday+6)%7;return p(Math.floor(d/7),2)},"%y":f=>(f.tm_year+1900).toString().substring(2),"%Y":f=>f.tm_year+1900,"%z":f=>{var d=f.tm_gmtoff,A=d>=0;return d=Math.abs(d)/60,d=d/60*100+d%60,(A?"+":"-")+("0000"+d).slice(-4)},"%Z":f=>f.tm_zone,"%%":()=>"%"};o=o.replace(/%%/g,"\0\0");for(var u in T)o.includes(u)&&(o=o.replace(new RegExp(u,"g"),T[u](i)));o=o.replace(/\0\0/g,"%");var F=zn(o,!1);return F.length>r?0:(Xn(F,e),F.length-1)},Gn=(e,r,t,n,a)=>Zn(e,r,t,n);ve=l.InternalError=class extends Error{constructor(r){super(r),this.name="InternalError"}},_t(),K=l.BindingError=class extends Error{constructor(r){super(r),this.name="BindingError"}},Ft(),Pt(),jt(),be=l.UnboundTypeError=xt(Error,"UnboundTypeError"),zt();var qn={s:it,t:ot,b:ut,g:lt,m:ft,L:ct,f:vt,_:dt,d:st,ja:pt,W:ht,da:yt,ha:Vt,ga:Yt,x:Nt,ca:Pe,y:Gt,j:qt,P:Kt,E:Qt,u:en,p:tn,ia:nn,N:on,D:dn,w:pn,ka:hn,ea:_n,G:gn,ma:Nr,S:$n,O:Cn,Q:An,T:En,fa:Fn,C:Sn,ba:Rn,$:Wn,Y:jn,Z:In,aa:Un,V:Hn,M:Bn,H:da,B:ea,I:va,o:pa,a:Jn,e:na,q:ra,k:ca,K:la,v:ua,J:fa,A:_a,U:ya,l:aa,i:ta,c:Qn,n:Kn,F:oa,la:ia,r:ha,h:sa,z:ga,R:Yn,X:Gn},P=at(),Y=l._free=e=>(Y=l._free=P.pa)(e),qr=l._malloc=e=>(qr=l._malloc=P.qa)(e),We=e=>(We=P.sa)(e),m=(e,r)=>(m=P.ta)(e,r),fr=e=>(fr=P.ua)(e),b=()=>(b=P.va)(),w=e=>(w=P.wa)(e),ke=e=>(ke=P.xa)(e),Me=e=>(Me=P.ya)(e),je=(e,r,t)=>(je=P.za)(e,r,t),Ie=e=>(Ie=P.Aa)(e);l.dynCall_viijii=(e,r,t,n,a,i,o)=>(l.dynCall_viijii=P.Ba)(e,r,t,n,a,i,o),l.dynCall_jiji=(e,r,t,n,a)=>(l.dynCall_jiji=P.Ca)(e,r,t,n,a);var Ue=l.dynCall_jiiii=(e,r,t,n,a)=>(Ue=l.dynCall_jiiii=P.Da)(e,r,t,n,a);l.dynCall_iiiiij=(e,r,t,n,a,i,o)=>(l.dynCall_iiiiij=P.Ea)(e,r,t,n,a,i,o),l.dynCall_iiiiijj=(e,r,t,n,a,i,o,s,u)=>(l.dynCall_iiiiijj=P.Fa)(e,r,t,n,a,i,o,s,u),l.dynCall_iiiiiijj=(e,r,t,n,a,i,o,s,u,c)=>(l.dynCall_iiiiiijj=P.Ga)(e,r,t,n,a,i,o,s,u,c);function Jn(e,r){var t=b();try{return $(e)(r)}catch(n){if(w(t),n!==n+0)throw n;m(1,0)}}function Kn(e,r,t,n){var a=b();try{$(e)(r,t,n)}catch(i){if(w(a),i!==i+0)throw i;m(1,0)}}function Qn(e,r,t){var n=b();try{$(e)(r,t)}catch(a){if(w(n),a!==a+0)throw a;m(1,0)}}function ra(e,r,t,n){var a=b();try{return $(e)(r,t,n)}catch(i){if(w(a),i!==i+0)throw i;m(1,0)}}function ea(e,r,t,n,a){var i=b();try{return $(e)(r,t,n,a)}catch(o){if(w(i),o!==o+0)throw o;m(1,0)}}function ta(e,r){var t=b();try{$(e)(r)}catch(n){if(w(t),n!==n+0)throw n;m(1,0)}}function na(e,r,t){var n=b();try{return $(e)(r,t)}catch(a){if(w(n),a!==a+0)throw a;m(1,0)}}function aa(e){var r=b();try{$(e)()}catch(t){if(w(r),t!==t+0)throw t;m(1,0)}}function ia(e,r,t,n,a,i){var o=b();try{$(e)(r,t,n,a,i)}catch(s){if(w(o),s!==s+0)throw s;m(1,0)}}function oa(e,r,t,n,a){var i=b();try{$(e)(r,t,n,a)}catch(o){if(w(i),o!==o+0)throw o;m(1,0)}}function sa(e,r,t,n,a,i,o,s,u,c,v){var h=b();try{$(e)(r,t,n,a,i,o,s,u,c,v)}catch(p){if(w(h),p!==p+0)throw p;m(1,0)}}function ua(e,r,t,n,a,i,o){var s=b();try{return $(e)(r,t,n,a,i,o)}catch(u){if(w(s),u!==u+0)throw u;m(1,0)}}function la(e,r,t,n,a,i){var o=b();try{return $(e)(r,t,n,a,i)}catch(s){if(w(o),s!==s+0)throw s;m(1,0)}}function fa(e,r,t,n,a,i,o,s){var u=b();try{return $(e)(r,t,n,a,i,o,s)}catch(c){if(w(u),c!==c+0)throw c;m(1,0)}}function ca(e,r,t,n,a){var i=b();try{return $(e)(r,t,n,a)}catch(o){if(w(i),o!==o+0)throw o;m(1,0)}}function va(e,r,t,n){var a=b();try{return $(e)(r,t,n)}catch(i){if(w(a),i!==i+0)throw i;m(1,0)}}function da(e,r,t,n){var a=b();try{return $(e)(r,t,n)}catch(i){if(w(a),i!==i+0)throw i;m(1,0)}}function pa(e){var r=b();try{return $(e)()}catch(t){if(w(r),t!==t+0)throw t;m(1,0)}}function ha(e,r,t,n,a,i,o,s){var u=b();try{$(e)(r,t,n,a,i,o,s)}catch(c){if(w(u),c!==c+0)throw c;m(1,0)}}function _a(e,r,t,n,a,i,o,s,u,c,v,h){var p=b();try{return $(e)(r,t,n,a,i,o,s,u,c,v,h)}catch(_){if(w(p),_!==_+0)throw _;m(1,0)}}function ga(e,r,t,n,a,i,o,s,u,c,v,h,p,_,C,W){var T=b();try{$(e)(r,t,n,a,i,o,s,u,c,v,h,p,_,C,W)}catch(F){if(w(T),F!==F+0)throw F;m(1,0)}}function ya(e,r,t,n,a){var i=b();try{return Ue(e,r,t,n,a)}catch(o){if(w(i),o!==o+0)throw o;m(1,0)}}var Ar;tr=function e(){Ar||He(),Ar||(tr=e)};function He(){if(L>0||(Xe(),L>0))return;function e(){Ar||(Ar=!0,l.calledRun=!0,!te&&(Ze(),Jr(l),l.onRuntimeInitialized&&l.onRuntimeInitialized(),Ge()))}l.setStatus?(l.setStatus("Running..."),setTimeout(function(){setTimeout(function(){l.setStatus("")},1),e()},1)):e()}if(l.preInit)for(typeof l.preInit=="function"&&(l.preInit=[l.preInit]);l.preInit.length>0;)l.preInit.pop()();return He(),N.ready}})();function ma(k){return S.getZXingModuleWithFactory(cr,k)}function $a(k){return S.setZXingModuleOverridesWithFactory(cr,k)}async function ba(k,N){return S.readBarcodesFromImageFileWithFactory(cr,k,N)}async function wa(k,N){return S.readBarcodesFromImageDataWithFactory(cr,k,N)}async function Ta(k,N){return S.writeBarcodeToImageFileWithFactory(cr,k,N)}exports.barcodeFormats=S.barcodeFormats;exports.binarizers=S.binarizers;exports.characterSets=S.characterSets;exports.contentTypes=S.contentTypes;exports.defaultDecodeHints=S.defaultReaderOptions;exports.defaultEncodeHints=S.defaultWriterOptions;exports.defaultReaderOptions=S.defaultReaderOptions;exports.defaultWriterOptions=S.defaultWriterOptions;exports.eanAddOnSymbols=S.eanAddOnSymbols;exports.purgeZXingModule=S.purgeZXingModule;exports.readOutputEccLevels=S.readOutputEccLevels;exports.textModes=S.textModes;exports.writeInputEccLevels=S.writeInputEccLevels;exports.getZXingModule=ma;exports.readBarcodesFromImageData=wa;exports.readBarcodesFromImageFile=ba;exports.setZXingModuleOverrides=$a;exports.writeBarcodeToImageFile=Ta; |
@@ -1,3 +0,3 @@ | ||
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("../core-Wr6FQ5Lz.cjs");var Sr=(()=>{var j=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(X={}){var xe;var l=X,Jr,cr;l.ready=new Promise((e,r)=>{Jr=e,cr=r});var Kr=Object.assign({},l),Qr="./this.program",re=typeof window=="object",ee=typeof Bun<"u",Ne=typeof((xe=globalThis.WebAssembly)==null?void 0:xe.instantiate)=="function",vr=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&process.versions.node;var I="";function Le(e){return l.locateFile?l.locateFile(e,I):I+e}var Rr;(re||vr||ee)&&(vr?I=self.location.href:typeof document<"u"&&document.currentScript&&(I=document.currentScript.src),j&&(I=j),I.startsWith("blob:")?I="":I=I.substr(0,I.replace(/[?#].*/,"").lastIndexOf("/")+1),vr&&(Rr=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}));var ze=l.print||console.log.bind(console),Z=l.printErr||console.error.bind(console);Object.assign(l,Kr),Kr=null,l.arguments&&l.arguments,l.thisProgram&&(Qr=l.thisProgram),l.quit&&l.quit;var rr;l.wasmBinary&&(rr=l.wasmBinary);var dr,te=!1,k,R,G,er,D,y,ne,ae;function ie(){var e=dr.buffer;l.HEAP8=k=new Int8Array(e),l.HEAP16=G=new Int16Array(e),l.HEAPU8=R=new Uint8Array(e),l.HEAPU16=er=new Uint16Array(e),l.HEAP32=D=new Int32Array(e),l.HEAPU32=y=new Uint32Array(e),l.HEAPF32=ne=new Float32Array(e),l.HEAPF64=ae=new Float64Array(e)}var oe=[],se=[],ue=[];function Xe(){if(l.preRun)for(typeof l.preRun=="function"&&(l.preRun=[l.preRun]);l.preRun.length;)qe(l.preRun.shift());Or(oe)}function Ze(){Or(se)}function Ge(){if(l.postRun)for(typeof l.postRun=="function"&&(l.postRun=[l.postRun]);l.postRun.length;)Ke(l.postRun.shift());Or(ue)}function qe(e){oe.unshift(e)}function Je(e){se.unshift(e)}function Ke(e){ue.unshift(e)}var N=0,tr=null;function Qe(e){var r;N++,(r=l.monitorRunDependencies)===null||r===void 0||r.call(l,N)}function rt(e){var r;if(N--,(r=l.monitorRunDependencies)===null||r===void 0||r.call(l,N),N==0&&tr){var t=tr;tr=null,t()}}function Dr(e){var r;(r=l.onAbort)===null||r===void 0||r.call(l,e),e="Aborted("+e+")",Z(e),te=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw cr(t),t}var et="data:application/octet-stream;base64,",le=e=>e.startsWith(et),q;q="zxing_reader.wasm",le(q)||(q=Le(q));function fe(e){if(e==q&&rr)return new Uint8Array(rr);if(Rr)return Rr(e);throw"both async and sync fetching of the wasm failed"}function tt(e){return!rr&&(re||vr||ee||Ne)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(r=>{if(!r.ok)throw`failed to load wasm binary file at '${e}'`;return r.arrayBuffer()}).catch(()=>fe(e)):Promise.resolve().then(()=>fe(e))}function ce(e,r,t){return tt(e).then(n=>WebAssembly.instantiate(n,r)).then(t,n=>{Z(`failed to asynchronously prepare wasm: ${n}`),Dr(n)})}function nt(e,r,t,n){return!e&&typeof WebAssembly.instantiateStreaming=="function"&&!le(r)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(a=>{var i=WebAssembly.instantiateStreaming(a,t);return i.then(n,function(o){return Z(`wasm streaming compile failed: ${o}`),Z("falling back to ArrayBuffer instantiation"),ce(r,t,n)})}):ce(r,t,n)}function at(){var e={a:qn};function r(n,a){return w=n.exports,dr=w.ma,ie(),$e=w.qa,Je(w.na),rt(),w}Qe();function t(n){r(n.instance)}if(l.instantiateWasm)try{return l.instantiateWasm(e,r)}catch(n){Z(`Module.instantiateWasm callback failed with error: ${n}`),cr(n)}return nt(rr,q,e,t).catch(cr),{}}var Or=e=>{for(;e.length>0;)e.shift()(l)};l.noExitRuntime;var pr=[],hr=0,it=e=>{var r=new Wr(e);return r.get_caught()||(r.set_caught(!0),hr--),r.set_rethrown(!1),pr.push(r),Me(r.excPtr),r.get_exception_ptr()},x=0,ot=()=>{m(0,0);var e=pr.pop();ke(e.excPtr),x=0};class Wr{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){y[this.ptr+4>>2]=r}get_type(){return y[this.ptr+4>>2]}set_destructor(r){y[this.ptr+8>>2]=r}get_destructor(){return y[this.ptr+8>>2]}set_caught(r){r=r?1:0,k[this.ptr+12]=r}get_caught(){return k[this.ptr+12]!=0}set_rethrown(r){r=r?1:0,k[this.ptr+13]=r}get_rethrown(){return k[this.ptr+13]!=0}init(r,t){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(t)}set_adjusted_ptr(r){y[this.ptr+16>>2]=r}get_adjusted_ptr(){return y[this.ptr+16>>2]}get_exception_ptr(){var r=Ie(this.get_type());if(r)return y[this.excPtr>>2];var t=this.get_adjusted_ptr();return t!==0?t:this.excPtr}}var st=e=>{throw x||(x=e),x},kr=e=>{var r=x;if(!r)return fr(0),0;var t=new Wr(r);t.set_adjusted_ptr(r);var n=t.get_type();if(!n)return fr(0),r;for(var a in e){var i=e[a];if(i===0||i===n)break;var o=t.ptr+16;if(je(i,n,o))return fr(i),r}return fr(n),r},ut=()=>kr([]),lt=e=>kr([e]),ft=(e,r)=>kr([e,r]),ct=()=>{var e=pr.pop();e||Dr("no exception to throw");var r=e.excPtr;throw e.get_rethrown()||(pr.push(e),e.set_rethrown(!0),e.set_caught(!1),hr++),x=r,x},vt=(e,r,t)=>{var n=new Wr(e);throw n.init(r,t),x=e,hr++,x},dt=()=>hr,_r={},Mr=e=>{for(;e.length;){var r=e.pop(),t=e.pop();t(r)}};function nr(e){return this.fromWireType(y[e>>2])}var J={},L={},gr={},ve,yr=e=>{throw new ve(e)},z=(e,r,t)=>{e.forEach(function(s){gr[s]=r});function n(s){var u=t(s);u.length!==e.length&&yr("Mismatched type converter count");for(var c=0;c<e.length;++c)U(e[c],u[c])}var a=new Array(r.length),i=[],o=0;r.forEach((s,u)=>{L.hasOwnProperty(s)?a[u]=L[s]:(i.push(s),J.hasOwnProperty(s)||(J[s]=[]),J[s].push(()=>{a[u]=L[s],++o,o===i.length&&n(a)}))}),i.length===0&&n(a)},pt=e=>{var r=_r[e];delete _r[e];var t=r.rawConstructor,n=r.rawDestructor,a=r.fields,i=a.map(o=>o.getterReturnType).concat(a.map(o=>o.setterArgumentType));z([e],i,o=>{var s={};return a.forEach((u,c)=>{var v=u.fieldName,h=o[c],p=u.getter,_=u.getterContext,C=o[c+a.length],O=u.setter,$=u.setterContext;s[v]={read:F=>h.fromWireType(p(_,F)),write:(F,f)=>{var d=[];O($,F,C.toWireType(d,f)),Mr(d)}}}),[{name:r.name,fromWireType:u=>{var c={};for(var v in s)c[v]=s[v].read(u);return n(u),c},toWireType:(u,c)=>{for(var v in s)if(!(v in c))throw new TypeError(`Missing field: "${v}"`);var h=t();for(v in s)s[v].write(h,c[v]);return u!==null&&u.push(n,h),h},argPackAdvance:H,readValueFromPointer:nr,destructorFunction:n}]})},ht=(e,r,t,n,a)=>{},_t=()=>{for(var e=new Array(256),r=0;r<256;++r)e[r]=String.fromCharCode(r);de=e},de,S=e=>{for(var r="",t=e;R[t];)r+=de[R[t++]];return r},K,g=e=>{throw new K(e)};function gt(e,r){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=r.name;if(e||g(`type "${n}" must have a positive integer typeid pointer`),L.hasOwnProperty(e)){if(t.ignoreDuplicateRegistrations)return;g(`Cannot register type '${n}' twice`)}if(L[e]=r,delete gr[e],J.hasOwnProperty(e)){var a=J[e];delete J[e],a.forEach(i=>i())}}function U(e,r){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");return gt(e,r,t)}var H=8,yt=(e,r,t,n)=>{r=S(r),U(e,{name:r,fromWireType:function(a){return!!a},toWireType:function(a,i){return i?t:n},argPackAdvance:H,readValueFromPointer:function(a){return this.fromWireType(R[a])},destructorFunction:null})},mt=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),jr=e=>{function r(t){return t.$$.ptrType.registeredClass.name}g(r(e)+" instance already deleted")},Ir=!1,pe=e=>{},$t=e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)},he=e=>{e.count.value-=1;var r=e.count.value===0;r&&$t(e)},_e=(e,r,t)=>{if(r===t)return e;if(t.baseClass===void 0)return null;var n=_e(e,r,t.baseClass);return n===null?null:t.downcast(n)},ge={},bt=()=>Object.keys(or).length,wt=()=>{var e=[];for(var r in or)or.hasOwnProperty(r)&&e.push(or[r]);return e},ar=[],Ur=()=>{for(;ar.length;){var e=ar.pop();e.$$.deleteScheduled=!1,e.delete()}},ir,Tt=e=>{ir=e,ar.length&&ir&&ir(Ur)},Pt=()=>{l.getInheritedInstanceCount=bt,l.getLiveInheritedInstances=wt,l.flushPendingDeletes=Ur,l.setDelayFunction=Tt},or={},Ct=(e,r)=>{for(r===void 0&&g("ptr should not be undefined");e.baseClass;)r=e.upcast(r),e=e.baseClass;return r},At=(e,r)=>(r=Ct(e,r),or[r]),mr=(e,r)=>{(!r.ptrType||!r.ptr)&&yr("makeClassHandle requires ptr and ptrType");var t=!!r.smartPtrType,n=!!r.smartPtr;return t!==n&&yr("Both smartPtrType and smartPtr must be specified"),r.count={value:1},sr(Object.create(e,{$$:{value:r,writable:!0}}))};function Et(e){var r=this.getPointee(e);if(!r)return this.destructor(e),null;var t=At(this.registeredClass,r);if(t!==void 0){if(t.$$.count.value===0)return t.$$.ptr=r,t.$$.smartPtr=e,t.clone();var n=t.clone();return this.destructor(e),n}function a(){return this.isSmartPointer?mr(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:r,smartPtrType:this,smartPtr:e}):mr(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var i=this.registeredClass.getActualType(r),o=ge[i];if(!o)return a.call(this);var s;this.isConst?s=o.constPointerType:s=o.pointerType;var u=_e(r,this.registeredClass,s.registeredClass);return u===null?a.call(this):this.isSmartPointer?mr(s.registeredClass.instancePrototype,{ptrType:s,ptr:u,smartPtrType:this,smartPtr:e}):mr(s.registeredClass.instancePrototype,{ptrType:s,ptr:u})}var sr=e=>typeof FinalizationRegistry>"u"?(sr=r=>r,e):(Ir=new FinalizationRegistry(r=>{he(r.$$)}),sr=r=>{var t=r.$$,n=!!t.smartPtr;if(n){var a={$$:t};Ir.register(r,a,r)}return r},pe=r=>Ir.unregister(r),sr(e)),Ft=()=>{Object.assign($r.prototype,{isAliasOf(e){if(!(this instanceof $r)||!(e instanceof $r))return!1;var r=this.$$.ptrType.registeredClass,t=this.$$.ptr;e.$$=e.$$;for(var n=e.$$.ptrType.registeredClass,a=e.$$.ptr;r.baseClass;)t=r.upcast(t),r=r.baseClass;for(;n.baseClass;)a=n.upcast(a),n=n.baseClass;return r===n&&t===a},clone(){if(this.$$.ptr||jr(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=sr(Object.create(Object.getPrototypeOf(this),{$$:{value:mt(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||jr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&g("Object already scheduled for deletion"),pe(this),he(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||jr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&g("Object already scheduled for deletion"),ar.push(this),ar.length===1&&ir&&ir(Ur),this.$$.deleteScheduled=!0,this}})};function $r(){}var ur=(e,r)=>Object.defineProperty(r,"name",{value:e}),ye=(e,r,t)=>{if(e[r].overloadTable===void 0){var n=e[r];e[r]=function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return e[r].overloadTable.hasOwnProperty(i.length)||g(`Function '${t}' called with an invalid number of arguments (${i.length}) - expects one of (${e[r].overloadTable})!`),e[r].overloadTable[i.length].apply(this,i)},e[r].overloadTable=[],e[r].overloadTable[n.argCount]=n}},Hr=(e,r,t)=>{l.hasOwnProperty(e)?((t===void 0||l[e].overloadTable!==void 0&&l[e].overloadTable[t]!==void 0)&&g(`Cannot register public name '${e}' twice`),ye(l,e,e),l.hasOwnProperty(t)&&g(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),l[e].overloadTable[t]=r):(l[e]=r,t!==void 0&&(l[e].numArguments=t))},St=48,Rt=57,Dt=e=>{if(e===void 0)return"_unknown";e=e.replace(/[^a-zA-Z0-9_]/g,"$");var r=e.charCodeAt(0);return r>=St&&r<=Rt?`_${e}`:e};function Ot(e,r,t,n,a,i,o,s){this.name=e,this.constructor=r,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=a,this.getActualType=i,this.upcast=o,this.downcast=s,this.pureVirtualFunctions=[]}var xr=(e,r,t)=>{for(;r!==t;)r.upcast||g(`Expected null or instance of ${t.name}, got an instance of ${r.name}`),e=r.upcast(e),r=r.baseClass;return e};function Wt(e,r){if(r===null)return this.isReference&&g(`null is not a valid ${this.name}`),0;r.$$||g(`Cannot pass "${zr(r)}" as a ${this.name}`),r.$$.ptr||g(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=r.$$.ptrType.registeredClass,n=xr(r.$$.ptr,t,this.registeredClass);return n}function kt(e,r){var t;if(r===null)return this.isReference&&g(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),e!==null&&e.push(this.rawDestructor,t),t):0;(!r||!r.$$)&&g(`Cannot pass "${zr(r)}" as a ${this.name}`),r.$$.ptr||g(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&r.$$.ptrType.isConst&&g(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);var n=r.$$.ptrType.registeredClass;if(t=xr(r.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(r.$$.smartPtr===void 0&&g("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:r.$$.smartPtrType===this?t=r.$$.smartPtr:g(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=r.$$.smartPtr;break;case 2:if(r.$$.smartPtrType===this)t=r.$$.smartPtr;else{var a=r.clone();t=this.rawShare(t,Y.toHandle(()=>a.delete())),e!==null&&e.push(this.rawDestructor,t)}break;default:g("Unsupporting sharing policy")}return t}function Mt(e,r){if(r===null)return this.isReference&&g(`null is not a valid ${this.name}`),0;r.$$||g(`Cannot pass "${zr(r)}" as a ${this.name}`),r.$$.ptr||g(`Cannot pass deleted object as a pointer of type ${this.name}`),r.$$.ptrType.isConst&&g(`Cannot convert argument of type ${r.$$.ptrType.name} to parameter type ${this.name}`);var t=r.$$.ptrType.registeredClass,n=xr(r.$$.ptr,t,this.registeredClass);return n}var jt=()=>{Object.assign(br.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){var r;(r=this.rawDestructor)===null||r===void 0||r.call(this,e)},argPackAdvance:H,readValueFromPointer:nr,fromWireType:Et})};function br(e,r,t,n,a,i,o,s,u,c,v){this.name=e,this.registeredClass=r,this.isReference=t,this.isConst=n,this.isSmartPointer=a,this.pointeeType=i,this.sharingPolicy=o,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=v,!a&&r.baseClass===void 0?n?(this.toWireType=Wt,this.destructorFunction=null):(this.toWireType=Mt,this.destructorFunction=null):this.toWireType=kt}var me=(e,r,t)=>{l.hasOwnProperty(e)||yr("Replacing nonexistent public symbol"),l[e].overloadTable!==void 0&&t!==void 0?l[e].overloadTable[t]=r:(l[e]=r,l[e].argCount=t)},It=(e,r,t)=>{var n=l["dynCall_"+e];return n(r,...t)},wr=[],$e,b=e=>{var r=wr[e];return r||(e>=wr.length&&(wr.length=e+1),wr[e]=r=$e.get(e)),r},Ut=function(e,r){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(e.includes("j"))return It(e,r,t);var n=b(r)(...t);return n},Ht=(e,r)=>function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return Ut(e,r,n)},M=(e,r)=>{e=S(e);function t(){return e.includes("j")?Ht(e,r):b(r)}var n=t();return typeof n!="function"&&g(`unknown function pointer with signature ${e}: ${r}`),n},xt=(e,r)=>{var t=ur(r,function(n){this.name=r,this.message=n;var a=new Error(n).stack;a!==void 0&&(this.stack=this.toString()+` | ||
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("../core-Dh7S8O4y.cjs");var Sr=(()=>{var j=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(X={}){var xe;var l=X,Jr,cr;l.ready=new Promise((e,r)=>{Jr=e,cr=r});var Kr=Object.assign({},l),Qr="./this.program",re=typeof window=="object",ee=typeof Bun<"u",Ne=typeof((xe=globalThis.WebAssembly)==null?void 0:xe.instantiate)=="function",vr=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&process.versions.node;var I="";function Le(e){return l.locateFile?l.locateFile(e,I):I+e}var Rr;(re||vr||ee)&&(vr?I=self.location.href:typeof document<"u"&&document.currentScript&&(I=document.currentScript.src),j&&(I=j),I.startsWith("blob:")?I="":I=I.substr(0,I.replace(/[?#].*/,"").lastIndexOf("/")+1),vr&&(Rr=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}));var ze=l.print||console.log.bind(console),Z=l.printErr||console.error.bind(console);Object.assign(l,Kr),Kr=null,l.arguments&&l.arguments,l.thisProgram&&(Qr=l.thisProgram),l.quit&&l.quit;var rr;l.wasmBinary&&(rr=l.wasmBinary);var dr,te=!1,k,R,G,er,D,y,ne,ae;function ie(){var e=dr.buffer;l.HEAP8=k=new Int8Array(e),l.HEAP16=G=new Int16Array(e),l.HEAPU8=R=new Uint8Array(e),l.HEAPU16=er=new Uint16Array(e),l.HEAP32=D=new Int32Array(e),l.HEAPU32=y=new Uint32Array(e),l.HEAPF32=ne=new Float32Array(e),l.HEAPF64=ae=new Float64Array(e)}var oe=[],se=[],ue=[];function Xe(){if(l.preRun)for(typeof l.preRun=="function"&&(l.preRun=[l.preRun]);l.preRun.length;)qe(l.preRun.shift());Or(oe)}function Ze(){Or(se)}function Ge(){if(l.postRun)for(typeof l.postRun=="function"&&(l.postRun=[l.postRun]);l.postRun.length;)Ke(l.postRun.shift());Or(ue)}function qe(e){oe.unshift(e)}function Je(e){se.unshift(e)}function Ke(e){ue.unshift(e)}var N=0,tr=null;function Qe(e){var r;N++,(r=l.monitorRunDependencies)===null||r===void 0||r.call(l,N)}function rt(e){var r;if(N--,(r=l.monitorRunDependencies)===null||r===void 0||r.call(l,N),N==0&&tr){var t=tr;tr=null,t()}}function Dr(e){var r;(r=l.onAbort)===null||r===void 0||r.call(l,e),e="Aborted("+e+")",Z(e),te=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw cr(t),t}var et="data:application/octet-stream;base64,",le=e=>e.startsWith(et),q;q="zxing_reader.wasm",le(q)||(q=Le(q));function fe(e){if(e==q&&rr)return new Uint8Array(rr);if(Rr)return Rr(e);throw"both async and sync fetching of the wasm failed"}function tt(e){return!rr&&(re||vr||ee||Ne)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(r=>{if(!r.ok)throw`failed to load wasm binary file at '${e}'`;return r.arrayBuffer()}).catch(()=>fe(e)):Promise.resolve().then(()=>fe(e))}function ce(e,r,t){return tt(e).then(n=>WebAssembly.instantiate(n,r)).then(t,n=>{Z(`failed to asynchronously prepare wasm: ${n}`),Dr(n)})}function nt(e,r,t,n){return!e&&typeof WebAssembly.instantiateStreaming=="function"&&!le(r)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(a=>{var i=WebAssembly.instantiateStreaming(a,t);return i.then(n,function(o){return Z(`wasm streaming compile failed: ${o}`),Z("falling back to ArrayBuffer instantiation"),ce(r,t,n)})}):ce(r,t,n)}function at(){var e={a:qn};function r(n,a){return w=n.exports,dr=w.ma,ie(),$e=w.qa,Je(w.na),rt(),w}Qe();function t(n){r(n.instance)}if(l.instantiateWasm)try{return l.instantiateWasm(e,r)}catch(n){Z(`Module.instantiateWasm callback failed with error: ${n}`),cr(n)}return nt(rr,q,e,t).catch(cr),{}}var Or=e=>{for(;e.length>0;)e.shift()(l)};l.noExitRuntime;var pr=[],hr=0,it=e=>{var r=new Wr(e);return r.get_caught()||(r.set_caught(!0),hr--),r.set_rethrown(!1),pr.push(r),Me(r.excPtr),r.get_exception_ptr()},x=0,ot=()=>{m(0,0);var e=pr.pop();ke(e.excPtr),x=0};class Wr{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){y[this.ptr+4>>2]=r}get_type(){return y[this.ptr+4>>2]}set_destructor(r){y[this.ptr+8>>2]=r}get_destructor(){return y[this.ptr+8>>2]}set_caught(r){r=r?1:0,k[this.ptr+12]=r}get_caught(){return k[this.ptr+12]!=0}set_rethrown(r){r=r?1:0,k[this.ptr+13]=r}get_rethrown(){return k[this.ptr+13]!=0}init(r,t){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(t)}set_adjusted_ptr(r){y[this.ptr+16>>2]=r}get_adjusted_ptr(){return y[this.ptr+16>>2]}get_exception_ptr(){var r=Ie(this.get_type());if(r)return y[this.excPtr>>2];var t=this.get_adjusted_ptr();return t!==0?t:this.excPtr}}var st=e=>{throw x||(x=e),x},kr=e=>{var r=x;if(!r)return fr(0),0;var t=new Wr(r);t.set_adjusted_ptr(r);var n=t.get_type();if(!n)return fr(0),r;for(var a in e){var i=e[a];if(i===0||i===n)break;var o=t.ptr+16;if(je(i,n,o))return fr(i),r}return fr(n),r},ut=()=>kr([]),lt=e=>kr([e]),ft=(e,r)=>kr([e,r]),ct=()=>{var e=pr.pop();e||Dr("no exception to throw");var r=e.excPtr;throw e.get_rethrown()||(pr.push(e),e.set_rethrown(!0),e.set_caught(!1),hr++),x=r,x},vt=(e,r,t)=>{var n=new Wr(e);throw n.init(r,t),x=e,hr++,x},dt=()=>hr,_r={},Mr=e=>{for(;e.length;){var r=e.pop(),t=e.pop();t(r)}};function nr(e){return this.fromWireType(y[e>>2])}var J={},L={},gr={},ve,yr=e=>{throw new ve(e)},z=(e,r,t)=>{e.forEach(function(s){gr[s]=r});function n(s){var u=t(s);u.length!==e.length&&yr("Mismatched type converter count");for(var c=0;c<e.length;++c)U(e[c],u[c])}var a=new Array(r.length),i=[],o=0;r.forEach((s,u)=>{L.hasOwnProperty(s)?a[u]=L[s]:(i.push(s),J.hasOwnProperty(s)||(J[s]=[]),J[s].push(()=>{a[u]=L[s],++o,o===i.length&&n(a)}))}),i.length===0&&n(a)},pt=e=>{var r=_r[e];delete _r[e];var t=r.rawConstructor,n=r.rawDestructor,a=r.fields,i=a.map(o=>o.getterReturnType).concat(a.map(o=>o.setterArgumentType));z([e],i,o=>{var s={};return a.forEach((u,c)=>{var v=u.fieldName,h=o[c],p=u.getter,_=u.getterContext,C=o[c+a.length],O=u.setter,$=u.setterContext;s[v]={read:F=>h.fromWireType(p(_,F)),write:(F,f)=>{var d=[];O($,F,C.toWireType(d,f)),Mr(d)}}}),[{name:r.name,fromWireType:u=>{var c={};for(var v in s)c[v]=s[v].read(u);return n(u),c},toWireType:(u,c)=>{for(var v in s)if(!(v in c))throw new TypeError(`Missing field: "${v}"`);var h=t();for(v in s)s[v].write(h,c[v]);return u!==null&&u.push(n,h),h},argPackAdvance:H,readValueFromPointer:nr,destructorFunction:n}]})},ht=(e,r,t,n,a)=>{},_t=()=>{for(var e=new Array(256),r=0;r<256;++r)e[r]=String.fromCharCode(r);de=e},de,S=e=>{for(var r="",t=e;R[t];)r+=de[R[t++]];return r},K,g=e=>{throw new K(e)};function gt(e,r){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=r.name;if(e||g(`type "${n}" must have a positive integer typeid pointer`),L.hasOwnProperty(e)){if(t.ignoreDuplicateRegistrations)return;g(`Cannot register type '${n}' twice`)}if(L[e]=r,delete gr[e],J.hasOwnProperty(e)){var a=J[e];delete J[e],a.forEach(i=>i())}}function U(e,r){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");return gt(e,r,t)}var H=8,yt=(e,r,t,n)=>{r=S(r),U(e,{name:r,fromWireType:function(a){return!!a},toWireType:function(a,i){return i?t:n},argPackAdvance:H,readValueFromPointer:function(a){return this.fromWireType(R[a])},destructorFunction:null})},mt=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),jr=e=>{function r(t){return t.$$.ptrType.registeredClass.name}g(r(e)+" instance already deleted")},Ir=!1,pe=e=>{},$t=e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)},he=e=>{e.count.value-=1;var r=e.count.value===0;r&&$t(e)},_e=(e,r,t)=>{if(r===t)return e;if(t.baseClass===void 0)return null;var n=_e(e,r,t.baseClass);return n===null?null:t.downcast(n)},ge={},bt=()=>Object.keys(or).length,wt=()=>{var e=[];for(var r in or)or.hasOwnProperty(r)&&e.push(or[r]);return e},ar=[],Ur=()=>{for(;ar.length;){var e=ar.pop();e.$$.deleteScheduled=!1,e.delete()}},ir,Tt=e=>{ir=e,ar.length&&ir&&ir(Ur)},Pt=()=>{l.getInheritedInstanceCount=bt,l.getLiveInheritedInstances=wt,l.flushPendingDeletes=Ur,l.setDelayFunction=Tt},or={},Ct=(e,r)=>{for(r===void 0&&g("ptr should not be undefined");e.baseClass;)r=e.upcast(r),e=e.baseClass;return r},At=(e,r)=>(r=Ct(e,r),or[r]),mr=(e,r)=>{(!r.ptrType||!r.ptr)&&yr("makeClassHandle requires ptr and ptrType");var t=!!r.smartPtrType,n=!!r.smartPtr;return t!==n&&yr("Both smartPtrType and smartPtr must be specified"),r.count={value:1},sr(Object.create(e,{$$:{value:r,writable:!0}}))};function Et(e){var r=this.getPointee(e);if(!r)return this.destructor(e),null;var t=At(this.registeredClass,r);if(t!==void 0){if(t.$$.count.value===0)return t.$$.ptr=r,t.$$.smartPtr=e,t.clone();var n=t.clone();return this.destructor(e),n}function a(){return this.isSmartPointer?mr(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:r,smartPtrType:this,smartPtr:e}):mr(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var i=this.registeredClass.getActualType(r),o=ge[i];if(!o)return a.call(this);var s;this.isConst?s=o.constPointerType:s=o.pointerType;var u=_e(r,this.registeredClass,s.registeredClass);return u===null?a.call(this):this.isSmartPointer?mr(s.registeredClass.instancePrototype,{ptrType:s,ptr:u,smartPtrType:this,smartPtr:e}):mr(s.registeredClass.instancePrototype,{ptrType:s,ptr:u})}var sr=e=>typeof FinalizationRegistry>"u"?(sr=r=>r,e):(Ir=new FinalizationRegistry(r=>{he(r.$$)}),sr=r=>{var t=r.$$,n=!!t.smartPtr;if(n){var a={$$:t};Ir.register(r,a,r)}return r},pe=r=>Ir.unregister(r),sr(e)),Ft=()=>{Object.assign($r.prototype,{isAliasOf(e){if(!(this instanceof $r)||!(e instanceof $r))return!1;var r=this.$$.ptrType.registeredClass,t=this.$$.ptr;e.$$=e.$$;for(var n=e.$$.ptrType.registeredClass,a=e.$$.ptr;r.baseClass;)t=r.upcast(t),r=r.baseClass;for(;n.baseClass;)a=n.upcast(a),n=n.baseClass;return r===n&&t===a},clone(){if(this.$$.ptr||jr(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=sr(Object.create(Object.getPrototypeOf(this),{$$:{value:mt(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||jr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&g("Object already scheduled for deletion"),pe(this),he(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||jr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&g("Object already scheduled for deletion"),ar.push(this),ar.length===1&&ir&&ir(Ur),this.$$.deleteScheduled=!0,this}})};function $r(){}var ur=(e,r)=>Object.defineProperty(r,"name",{value:e}),ye=(e,r,t)=>{if(e[r].overloadTable===void 0){var n=e[r];e[r]=function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return e[r].overloadTable.hasOwnProperty(i.length)||g(`Function '${t}' called with an invalid number of arguments (${i.length}) - expects one of (${e[r].overloadTable})!`),e[r].overloadTable[i.length].apply(this,i)},e[r].overloadTable=[],e[r].overloadTable[n.argCount]=n}},Hr=(e,r,t)=>{l.hasOwnProperty(e)?((t===void 0||l[e].overloadTable!==void 0&&l[e].overloadTable[t]!==void 0)&&g(`Cannot register public name '${e}' twice`),ye(l,e,e),l.hasOwnProperty(t)&&g(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),l[e].overloadTable[t]=r):(l[e]=r,t!==void 0&&(l[e].numArguments=t))},St=48,Rt=57,Dt=e=>{if(e===void 0)return"_unknown";e=e.replace(/[^a-zA-Z0-9_]/g,"$");var r=e.charCodeAt(0);return r>=St&&r<=Rt?`_${e}`:e};function Ot(e,r,t,n,a,i,o,s){this.name=e,this.constructor=r,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=a,this.getActualType=i,this.upcast=o,this.downcast=s,this.pureVirtualFunctions=[]}var xr=(e,r,t)=>{for(;r!==t;)r.upcast||g(`Expected null or instance of ${t.name}, got an instance of ${r.name}`),e=r.upcast(e),r=r.baseClass;return e};function Wt(e,r){if(r===null)return this.isReference&&g(`null is not a valid ${this.name}`),0;r.$$||g(`Cannot pass "${zr(r)}" as a ${this.name}`),r.$$.ptr||g(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=r.$$.ptrType.registeredClass,n=xr(r.$$.ptr,t,this.registeredClass);return n}function kt(e,r){var t;if(r===null)return this.isReference&&g(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),e!==null&&e.push(this.rawDestructor,t),t):0;(!r||!r.$$)&&g(`Cannot pass "${zr(r)}" as a ${this.name}`),r.$$.ptr||g(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&r.$$.ptrType.isConst&&g(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);var n=r.$$.ptrType.registeredClass;if(t=xr(r.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(r.$$.smartPtr===void 0&&g("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:r.$$.smartPtrType===this?t=r.$$.smartPtr:g(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=r.$$.smartPtr;break;case 2:if(r.$$.smartPtrType===this)t=r.$$.smartPtr;else{var a=r.clone();t=this.rawShare(t,Y.toHandle(()=>a.delete())),e!==null&&e.push(this.rawDestructor,t)}break;default:g("Unsupporting sharing policy")}return t}function Mt(e,r){if(r===null)return this.isReference&&g(`null is not a valid ${this.name}`),0;r.$$||g(`Cannot pass "${zr(r)}" as a ${this.name}`),r.$$.ptr||g(`Cannot pass deleted object as a pointer of type ${this.name}`),r.$$.ptrType.isConst&&g(`Cannot convert argument of type ${r.$$.ptrType.name} to parameter type ${this.name}`);var t=r.$$.ptrType.registeredClass,n=xr(r.$$.ptr,t,this.registeredClass);return n}var jt=()=>{Object.assign(br.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){var r;(r=this.rawDestructor)===null||r===void 0||r.call(this,e)},argPackAdvance:H,readValueFromPointer:nr,fromWireType:Et})};function br(e,r,t,n,a,i,o,s,u,c,v){this.name=e,this.registeredClass=r,this.isReference=t,this.isConst=n,this.isSmartPointer=a,this.pointeeType=i,this.sharingPolicy=o,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=v,!a&&r.baseClass===void 0?n?(this.toWireType=Wt,this.destructorFunction=null):(this.toWireType=Mt,this.destructorFunction=null):this.toWireType=kt}var me=(e,r,t)=>{l.hasOwnProperty(e)||yr("Replacing nonexistent public symbol"),l[e].overloadTable!==void 0&&t!==void 0?l[e].overloadTable[t]=r:(l[e]=r,l[e].argCount=t)},It=(e,r,t)=>{var n=l["dynCall_"+e];return n(r,...t)},wr=[],$e,b=e=>{var r=wr[e];return r||(e>=wr.length&&(wr.length=e+1),wr[e]=r=$e.get(e)),r},Ut=function(e,r){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(e.includes("j"))return It(e,r,t);var n=b(r)(...t);return n},Ht=(e,r)=>function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return Ut(e,r,n)},M=(e,r)=>{e=S(e);function t(){return e.includes("j")?Ht(e,r):b(r)}var n=t();return typeof n!="function"&&g(`unknown function pointer with signature ${e}: ${r}`),n},xt=(e,r)=>{var t=ur(r,function(n){this.name=r,this.message=n;var a=new Error(n).stack;a!==void 0&&(this.stack=this.toString()+` | ||
`+a.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},be,we=e=>{var r=We(e),t=S(r);return B(r),t},Tr=(e,r)=>{var t=[],n={};function a(i){if(!n[i]&&!L[i]){if(gr[i]){gr[i].forEach(a);return}t.push(i),n[i]=!0}}throw r.forEach(a),new be(`${e}: `+t.map(we).join([", "]))},Vt=(e,r,t,n,a,i,o,s,u,c,v,h,p)=>{v=S(v),i=M(a,i),s&&(s=M(o,s)),c&&(c=M(u,c)),p=M(h,p);var _=Dt(v);Hr(_,function(){Tr(`Cannot construct ${v} due to unbound types`,[n])}),z([e,r,t],n?[n]:[],C=>{C=C[0];var O,$;n?(O=C.registeredClass,$=O.instancePrototype):$=$r.prototype;var F=ur(v,function(){if(Object.getPrototypeOf(this)!==f)throw new K("Use 'new' to construct "+v);if(d.constructor_body===void 0)throw new K(v+" has no accessible constructor");for(var Ye=arguments.length,Er=new Array(Ye),Fr=0;Fr<Ye;Fr++)Er[Fr]=arguments[Fr];var Be=d.constructor_body[Er.length];if(Be===void 0)throw new K(`Tried to invoke ctor of ${v} with invalid number of parameters (${Er.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);return Be.apply(this,Er)}),f=Object.create($,{constructor:{value:F}});F.prototype=f;var d=new Ot(v,F,f,p,O,i,s,c);if(d.baseClass){var A,E;(E=(A=d.baseClass).__derivedClasses)!==null&&E!==void 0||(A.__derivedClasses=[]),d.baseClass.__derivedClasses.push(d)}var Q=new br(v,d,!0,!1,!1),Ar=new br(v+"*",d,!1,!1,!1),Ve=new br(v+" const*",d,!1,!0,!1);return ge[e]={pointerType:Ar,constPointerType:Ve},me(_,F),[Q,Ar,Ve]})},Vr=(e,r)=>{for(var t=[],n=0;n<e;n++)t.push(y[r+n*4>>2]);return t};function Yt(e){for(var r=1;r<e.length;++r)if(e[r]!==null&&e[r].destructorFunction===void 0)return!0;return!1}function Yr(e,r,t,n,a,i){var o=r.length;o<2&&g("argTypes array size mismatch! Must at least get return value and 'this' types!");var s=r[1]!==null&&t!==null,u=Yt(r),c=r[0].name!=="void",v=o-2,h=new Array(v),p=[],_=[],C=function(){arguments.length!==v&&g(`function ${e} called with ${arguments.length} arguments, expected ${v}`),_.length=0;var O;p.length=s?2:1,p[0]=a,s&&(O=r[1].toWireType(_,this),p[1]=O);for(var $=0;$<v;++$)h[$]=r[$+2].toWireType(_,$<0||arguments.length<=$?void 0:arguments[$]),p.push(h[$]);var F=n(...p);function f(d){if(u)Mr(_);else for(var A=s?1:2;A<r.length;A++){var E=A===1?O:h[A-2];r[A].destructorFunction!==null&&r[A].destructorFunction(E)}if(c)return r[0].fromWireType(d)}return f(F)};return ur(e,C)}var Bt=(e,r,t,n,a,i)=>{var o=Vr(r,t);a=M(n,a),z([],[e],s=>{s=s[0];var u=`constructor ${s.name}`;if(s.registeredClass.constructor_body===void 0&&(s.registeredClass.constructor_body=[]),s.registeredClass.constructor_body[r-1]!==void 0)throw new K(`Cannot register multiple constructors with identical number of parameters (${r-1}) for class '${s.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return s.registeredClass.constructor_body[r-1]=()=>{Tr(`Cannot construct ${s.name} due to unbound types`,o)},z([],o,c=>(c.splice(1,0,null),s.registeredClass.constructor_body[r-1]=Yr(u,c,null,a,i),[])),[]})},Te=e=>{e=e.trim();const r=e.indexOf("(");return r!==-1?e.substr(0,r):e},Nt=(e,r,t,n,a,i,o,s,u)=>{var c=Vr(t,n);r=S(r),r=Te(r),i=M(a,i),z([],[e],v=>{v=v[0];var h=`${v.name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&v.registeredClass.pureVirtualFunctions.push(r);function p(){Tr(`Cannot call ${h} due to unbound types`,c)}var _=v.registeredClass.instancePrototype,C=_[r];return C===void 0||C.overloadTable===void 0&&C.className!==v.name&&C.argCount===t-2?(p.argCount=t-2,p.className=v.name,_[r]=p):(ye(_,r,h),_[r].overloadTable[t-2]=p),z([],c,O=>{var $=Yr(h,O,v,i,o);return _[r].overloadTable===void 0?($.argCount=t-2,_[r]=$):_[r].overloadTable[t-2]=$,[]}),[]})},Br=[],V=[],Nr=e=>{e>9&&--V[e+1]===0&&(V[e]=void 0,Br.push(e))},Lt=()=>V.length/2-5-Br.length,zt=()=>{V.push(0,1,void 0,1,null,1,!0,1,!1,1),l.count_emval_handles=Lt},Y={toValue:e=>(e||g("Cannot use deleted val. handle = "+e),V[e]),toHandle:e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const r=Br.pop()||V.length;return V[r]=e,V[r+1]=1,r}}}},Xt={name:"emscripten::val",fromWireType:e=>{var r=Y.toValue(e);return Nr(e),r},toWireType:(e,r)=>Y.toHandle(r),argPackAdvance:H,readValueFromPointer:nr,destructorFunction:null},Pe=e=>U(e,Xt),Zt=(e,r,t)=>{switch(r){case 1:return t?function(n){return this.fromWireType(k[n])}:function(n){return this.fromWireType(R[n])};case 2:return t?function(n){return this.fromWireType(G[n>>1])}:function(n){return this.fromWireType(er[n>>1])};case 4:return t?function(n){return this.fromWireType(D[n>>2])}:function(n){return this.fromWireType(y[n>>2])};default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},Gt=(e,r,t,n)=>{r=S(r);function a(){}a.values={},U(e,{name:r,constructor:a,fromWireType:function(i){return this.constructor.values[i]},toWireType:(i,o)=>o.value,argPackAdvance:H,readValueFromPointer:Zt(r,t,n),destructorFunction:null}),Hr(r,a)},Lr=(e,r)=>{var t=L[e];return t===void 0&&g(`${r} has unknown type ${we(e)}`),t},qt=(e,r,t)=>{var n=Lr(e,"enum");r=S(r);var a=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:ur(`${n.name}_${r}`,function(){})}});a.values[t]=i,a[r]=i},zr=e=>{if(e===null)return"null";var r=typeof e;return r==="object"||r==="array"||r==="function"?e.toString():""+e},Jt=(e,r)=>{switch(r){case 4:return function(t){return this.fromWireType(ne[t>>2])};case 8:return function(t){return this.fromWireType(ae[t>>3])};default:throw new TypeError(`invalid float width (${r}): ${e}`)}},Kt=(e,r,t)=>{r=S(r),U(e,{name:r,fromWireType:n=>n,toWireType:(n,a)=>a,argPackAdvance:H,readValueFromPointer:Jt(r,t),destructorFunction:null})},Qt=(e,r,t,n,a,i,o)=>{var s=Vr(r,t);e=S(e),e=Te(e),a=M(n,a),Hr(e,function(){Tr(`Cannot call ${e} due to unbound types`,s)},r-1),z([],s,u=>{var c=[u[0],null].concat(u.slice(1));return me(e,Yr(e,c,null,a,i),r-1),[]})},rn=(e,r,t)=>{switch(r){case 1:return t?n=>k[n]:n=>R[n];case 2:return t?n=>G[n>>1]:n=>er[n>>1];case 4:return t?n=>D[n>>2]:n=>y[n>>2];default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},en=(e,r,t,n,a)=>{r=S(r);var i=v=>v;if(n===0){var o=32-8*t;i=v=>v<<o>>>o}var s=r.includes("unsigned"),u=(v,h)=>{},c;s?c=function(v,h){return u(h,this.name),h>>>0}:c=function(v,h){return u(h,this.name),h},U(e,{name:r,fromWireType:i,toWireType:c,argPackAdvance:H,readValueFromPointer:rn(r,t,n!==0),destructorFunction:null})},tn=(e,r,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],a=n[r];function i(o){var s=y[o>>2],u=y[o+4>>2];return new a(k.buffer,u,s)}t=S(t),U(e,{name:t,fromWireType:i,argPackAdvance:H,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},nn=(e,r)=>{Pe(e)},Ce=(e,r,t,n)=>{if(!(n>0))return 0;for(var a=t,i=t+n-1,o=0;o<e.length;++o){var s=e.charCodeAt(o);if(s>=55296&&s<=57343){var u=e.charCodeAt(++o);s=65536+((s&1023)<<10)|u&1023}if(s<=127){if(t>=i)break;r[t++]=s}else if(s<=2047){if(t+1>=i)break;r[t++]=192|s>>6,r[t++]=128|s&63}else if(s<=65535){if(t+2>=i)break;r[t++]=224|s>>12,r[t++]=128|s>>6&63,r[t++]=128|s&63}else{if(t+3>=i)break;r[t++]=240|s>>18,r[t++]=128|s>>12&63,r[t++]=128|s>>6&63,r[t++]=128|s&63}}return r[t]=0,t-a},an=(e,r,t)=>Ce(e,R,r,t),Ae=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n<=127?r++:n<=2047?r+=2:n>=55296&&n<=57343?(r+=4,++t):r+=3}return r},Ee=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,Fe=(e,r,t)=>{for(var n=r+t,a=r;e[a]&&!(a>=n);)++a;if(a-r>16&&e.buffer&&Ee)return Ee.decode(e.subarray(r,a));for(var i="";r<a;){var o=e[r++];if(!(o&128)){i+=String.fromCharCode(o);continue}var s=e[r++]&63;if((o&224)==192){i+=String.fromCharCode((o&31)<<6|s);continue}var u=e[r++]&63;if((o&240)==224?o=(o&15)<<12|s<<6|u:o=(o&7)<<18|s<<12|u<<6|e[r++]&63,o<65536)i+=String.fromCharCode(o);else{var c=o-65536;i+=String.fromCharCode(55296|c>>10,56320|c&1023)}}return i},Xr=(e,r)=>e?Fe(R,e,r):"",on=(e,r)=>{r=S(r);var t=r==="std::string";U(e,{name:r,fromWireType(n){var a=y[n>>2],i=n+4,o;if(t)for(var s=i,u=0;u<=a;++u){var c=i+u;if(u==a||R[c]==0){var v=c-s,h=Xr(s,v);o===void 0?o=h:(o+="\0",o+=h),s=c+1}}else{for(var p=new Array(a),u=0;u<a;++u)p[u]=String.fromCharCode(R[i+u]);o=p.join("")}return B(n),o},toWireType(n,a){a instanceof ArrayBuffer&&(a=new Uint8Array(a));var i,o=typeof a=="string";o||a instanceof Uint8Array||a instanceof Uint8ClampedArray||a instanceof Int8Array||g("Cannot pass non-string to std::string"),t&&o?i=Ae(a):i=a.length;var s=qr(4+i+1),u=s+4;if(y[s>>2]=i,t&&o)an(a,u,i+1);else if(o)for(var c=0;c<i;++c){var v=a.charCodeAt(c);v>255&&(B(u),g("String has UTF-16 code units that do not fit in 8 bits")),R[u+c]=v}else for(var c=0;c<i;++c)R[u+c]=a[c];return n!==null&&n.push(B,s),s},argPackAdvance:H,readValueFromPointer:nr,destructorFunction(n){B(n)}})},Se=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,sn=(e,r)=>{for(var t=e,n=t>>1,a=n+r/2;!(n>=a)&&er[n];)++n;if(t=n<<1,t-e>32&&Se)return Se.decode(R.subarray(e,t));for(var i="",o=0;!(o>=r/2);++o){var s=G[e+o*2>>1];if(s==0)break;i+=String.fromCharCode(s)}return i},un=(e,r,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<2)return 0;t-=2;for(var a=r,i=t<e.length*2?t/2:e.length,o=0;o<i;++o){var s=e.charCodeAt(o);G[r>>1]=s,r+=2}return G[r>>1]=0,r-a},ln=e=>e.length*2,fn=(e,r)=>{for(var t=0,n="";!(t>=r/4);){var a=D[e+t*4>>2];if(a==0)break;if(++t,a>=65536){var i=a-65536;n+=String.fromCharCode(55296|i>>10,56320|i&1023)}else n+=String.fromCharCode(a)}return n},cn=(e,r,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<4)return 0;for(var a=r,i=a+t-4,o=0;o<e.length;++o){var s=e.charCodeAt(o);if(s>=55296&&s<=57343){var u=e.charCodeAt(++o);s=65536+((s&1023)<<10)|u&1023}if(D[r>>2]=s,r+=4,r+4>i)break}return D[r>>2]=0,r-a},vn=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n>=55296&&n<=57343&&++t,r+=4}return r},dn=(e,r,t)=>{t=S(t);var n,a,i,o;r===2?(n=sn,a=un,o=ln,i=s=>er[s>>1]):r===4&&(n=fn,a=cn,o=vn,i=s=>y[s>>2]),U(e,{name:t,fromWireType:s=>{for(var u=y[s>>2],c,v=s+4,h=0;h<=u;++h){var p=s+4+h*r;if(h==u||i(p)==0){var _=p-v,C=n(v,_);c===void 0?c=C:(c+="\0",c+=C),v=p+r}}return B(s),c},toWireType:(s,u)=>{typeof u!="string"&&g(`Cannot pass non-string to C++ string type ${t}`);var c=o(u),v=qr(4+c+r);return y[v>>2]=c/r,a(u,v+4,c+r),s!==null&&s.push(B,v),v},argPackAdvance:H,readValueFromPointer:nr,destructorFunction(s){B(s)}})},pn=(e,r,t,n,a,i)=>{_r[e]={name:S(r),rawConstructor:M(t,n),rawDestructor:M(a,i),fields:[]}},hn=(e,r,t,n,a,i,o,s,u,c)=>{_r[e].fields.push({fieldName:S(r),getterReturnType:t,getter:M(n,a),getterContext:i,setterArgumentType:o,setter:M(s,u),setterContext:c})},_n=(e,r)=>{r=S(r),U(e,{isVoid:!0,name:r,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},Zr=[],gn=(e,r,t,n)=>(e=Zr[e],r=Y.toValue(r),e(null,r,t,n)),yn={},mn=e=>{var r=yn[e];return r===void 0?S(e):r},Re=()=>{if(typeof globalThis=="object")return globalThis;function e(r){r.$$$embind_global$$$=r;var t=typeof $$$embind_global$$$=="object"&&r.$$$embind_global$$$==r;return t||delete r.$$$embind_global$$$,t}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&e(global)?$$$embind_global$$$=global:typeof self=="object"&&e(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},$n=e=>e===0?Y.toHandle(Re()):(e=mn(e),Y.toHandle(Re()[e])),bn=e=>{var r=Zr.length;return Zr.push(e),r},wn=(e,r)=>{for(var t=new Array(e),n=0;n<e;++n)t[n]=Lr(y[r+n*4>>2],"parameter "+n);return t},Tn=Reflect.construct,Pn=(e,r,t)=>{var n=[],a=e.toWireType(n,t);return n.length&&(y[r>>2]=Y.toHandle(n)),a},Cn=(e,r,t)=>{var n=wn(e,r),a=n.shift();e--;var i=new Array(e),o=(u,c,v,h)=>{for(var p=0,_=0;_<e;++_)i[_]=n[_].readValueFromPointer(h+p),p+=n[_].argPackAdvance;var C=t===1?Tn(c,i):c.apply(u,i);return Pn(a,v,C)},s=`methodCaller<(${n.map(u=>u.name).join(", ")}) => ${a.name}>`;return bn(ur(s,o))},An=e=>{e>9&&(V[e+1]+=1)},En=e=>{var r=Y.toValue(e);Mr(r),Nr(e)},Fn=(e,r)=>{e=Lr(e,"_emval_take_value");var t=e.readValueFromPointer(r);return Y.toHandle(t)},Sn=()=>{Dr("")},Rn=(e,r,t)=>R.copyWithin(e,r,r+t),Dn=()=>2147483648,On=e=>{var r=dr.buffer,t=(e-r.byteLength+65535)/65536;try{return dr.grow(t),ie(),1}catch{}},Wn=e=>{var r=R.length;e>>>=0;var t=Dn();if(e>t)return!1;for(var n=(u,c)=>u+(c-u%c)%c,a=1;a<=4;a*=2){var i=r*(1+.2/a);i=Math.min(i,e+100663296);var o=Math.min(t,n(Math.max(e,i),65536)),s=On(o);if(s)return!0}return!1},Gr={},kn=()=>Qr||"./this.program",lr=()=>{if(!lr.strings){var e=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:e,_:kn()};for(var t in Gr)Gr[t]===void 0?delete r[t]:r[t]=Gr[t];var n=[];for(var t in r)n.push(`${t}=${r[t]}`);lr.strings=n}return lr.strings},Mn=(e,r)=>{for(var t=0;t<e.length;++t)k[r++]=e.charCodeAt(t);k[r]=0},jn=(e,r)=>{var t=0;return lr().forEach((n,a)=>{var i=r+t;y[e+a*4>>2]=i,Mn(n,i),t+=n.length+1}),0},In=(e,r)=>{var t=lr();y[e>>2]=t.length;var n=0;return t.forEach(a=>n+=a.length+1),y[r>>2]=n,0},Un=e=>52;function Hn(e,r,t,n,a){return 70}var xn=[null,[],[]],Vn=(e,r)=>{var t=xn[e];r===0||r===10?((e===1?ze:Z)(Fe(t,0)),t.length=0):t.push(r)},Yn=(e,r,t,n)=>{for(var a=0,i=0;i<t;i++){var o=y[r>>2],s=y[r+4>>2];r+=8;for(var u=0;u<s;u++)Vn(e,R[o+u]);a+=s}return y[n>>2]=a,0},Bn=e=>e,Pr=e=>e%4===0&&(e%100!==0||e%400===0),Nn=(e,r)=>{for(var t=0,n=0;n<=r;t+=e[n++]);return t},De=[31,29,31,30,31,30,31,31,30,31,30,31],Oe=[31,28,31,30,31,30,31,31,30,31,30,31],Ln=(e,r)=>{for(var t=new Date(e.getTime());r>0;){var n=Pr(t.getFullYear()),a=t.getMonth(),i=(n?De:Oe)[a];if(r>i-t.getDate())r-=i-t.getDate()+1,t.setDate(1),a<11?t.setMonth(a+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1));else return t.setDate(t.getDate()+r),t}return t};function zn(e,r,t){var n=t>0?t:Ae(e)+1,a=new Array(n),i=Ce(e,a,0,a.length);return r&&(a.length=i),a}var Xn=(e,r)=>{k.set(e,r)},Zn=(e,r,t,n)=>{var a=y[n+40>>2],i={tm_sec:D[n>>2],tm_min:D[n+4>>2],tm_hour:D[n+8>>2],tm_mday:D[n+12>>2],tm_mon:D[n+16>>2],tm_year:D[n+20>>2],tm_wday:D[n+24>>2],tm_yday:D[n+28>>2],tm_isdst:D[n+32>>2],tm_gmtoff:D[n+36>>2],tm_zone:a?Xr(a):""},o=Xr(t),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var u in s)o=o.replace(new RegExp(u,"g"),s[u]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],v=["January","February","March","April","May","June","July","August","September","October","November","December"];function h(f,d,A){for(var E=typeof f=="number"?f.toString():f||"";E.length<d;)E=A[0]+E;return E}function p(f,d){return h(f,d,"0")}function _(f,d){function A(Q){return Q<0?-1:Q>0?1:0}var E;return(E=A(f.getFullYear()-d.getFullYear()))===0&&(E=A(f.getMonth()-d.getMonth()))===0&&(E=A(f.getDate()-d.getDate())),E}function C(f){switch(f.getDay()){case 0:return new Date(f.getFullYear()-1,11,29);case 1:return f;case 2:return new Date(f.getFullYear(),0,3);case 3:return new Date(f.getFullYear(),0,2);case 4:return new Date(f.getFullYear(),0,1);case 5:return new Date(f.getFullYear()-1,11,31);case 6:return new Date(f.getFullYear()-1,11,30)}}function O(f){var d=Ln(new Date(f.tm_year+1900,0,1),f.tm_yday),A=new Date(d.getFullYear(),0,4),E=new Date(d.getFullYear()+1,0,4),Q=C(A),Ar=C(E);return _(Q,d)<=0?_(Ar,d)<=0?d.getFullYear()+1:d.getFullYear():d.getFullYear()-1}var $={"%a":f=>c[f.tm_wday].substring(0,3),"%A":f=>c[f.tm_wday],"%b":f=>v[f.tm_mon].substring(0,3),"%B":f=>v[f.tm_mon],"%C":f=>{var d=f.tm_year+1900;return p(d/100|0,2)},"%d":f=>p(f.tm_mday,2),"%e":f=>h(f.tm_mday,2," "),"%g":f=>O(f).toString().substring(2),"%G":O,"%H":f=>p(f.tm_hour,2),"%I":f=>{var d=f.tm_hour;return d==0?d=12:d>12&&(d-=12),p(d,2)},"%j":f=>p(f.tm_mday+Nn(Pr(f.tm_year+1900)?De:Oe,f.tm_mon-1),3),"%m":f=>p(f.tm_mon+1,2),"%M":f=>p(f.tm_min,2),"%n":()=>` | ||
`,"%p":f=>f.tm_hour>=0&&f.tm_hour<12?"AM":"PM","%S":f=>p(f.tm_sec,2),"%t":()=>" ","%u":f=>f.tm_wday||7,"%U":f=>{var d=f.tm_yday+7-f.tm_wday;return p(Math.floor(d/7),2)},"%V":f=>{var d=Math.floor((f.tm_yday+7-(f.tm_wday+6)%7)/7);if((f.tm_wday+371-f.tm_yday-2)%7<=2&&d++,d){if(d==53){var E=(f.tm_wday+371-f.tm_yday)%7;E!=4&&(E!=3||!Pr(f.tm_year))&&(d=1)}}else{d=52;var A=(f.tm_wday+7-f.tm_yday-1)%7;(A==4||A==5&&Pr(f.tm_year%400-1))&&d++}return p(d,2)},"%w":f=>f.tm_wday,"%W":f=>{var d=f.tm_yday+7-(f.tm_wday+6)%7;return p(Math.floor(d/7),2)},"%y":f=>(f.tm_year+1900).toString().substring(2),"%Y":f=>f.tm_year+1900,"%z":f=>{var d=f.tm_gmtoff,A=d>=0;return d=Math.abs(d)/60,d=d/60*100+d%60,(A?"+":"-")+("0000"+d).slice(-4)},"%Z":f=>f.tm_zone,"%%":()=>"%"};o=o.replace(/%%/g,"\0\0");for(var u in $)o.includes(u)&&(o=o.replace(new RegExp(u,"g"),$[u](i)));o=o.replace(/\0\0/g,"%");var F=zn(o,!1);return F.length>r?0:(Xn(F,e),F.length-1)},Gn=(e,r,t,n,a)=>Zn(e,r,t,n);ve=l.InternalError=class extends Error{constructor(r){super(r),this.name="InternalError"}},_t(),K=l.BindingError=class extends Error{constructor(r){super(r),this.name="BindingError"}},Ft(),Pt(),jt(),be=l.UnboundTypeError=xt(Error,"UnboundTypeError"),zt();var qn={s:it,u:ot,b:ut,g:lt,q:ft,K:ct,f:vt,Y:dt,e:st,ha:pt,U:ht,ba:yt,fa:Vt,ea:Bt,w:Nt,aa:Pe,x:Gt,h:qt,O:Kt,P:Qt,t:en,o:tn,ga:nn,N:on,C:dn,A:pn,ia:hn,ca:_n,E:gn,ka:Nr,la:$n,M:Cn,Q:An,R:En,da:Fn,B:Sn,$:Rn,Z:Wn,W:jn,X:In,_:Un,T:Hn,L:Yn,F:va,D:ea,G:ca,m:da,a:Jn,d:na,p:ra,k:fa,I:ua,v:oa,H:la,z:ha,S:ga,l:aa,j:ta,c:Qn,n:Kn,J:sa,r:pa,i:ia,y:_a,ja:Bn,V:Gn},w=at(),B=l._free=e=>(B=l._free=w.oa)(e),qr=l._malloc=e=>(qr=l._malloc=w.pa)(e),We=e=>(We=w.ra)(e),m=(e,r)=>(m=w.sa)(e,r),fr=e=>(fr=w.ta)(e),T=()=>(T=w.ua)(),P=e=>(P=w.va)(e),ke=e=>(ke=w.wa)(e),Me=e=>(Me=w.xa)(e),je=(e,r,t)=>(je=w.ya)(e,r,t),Ie=e=>(Ie=w.za)(e);l.dynCall_viijii=(e,r,t,n,a,i,o)=>(l.dynCall_viijii=w.Aa)(e,r,t,n,a,i,o),l.dynCall_jiji=(e,r,t,n,a)=>(l.dynCall_jiji=w.Ba)(e,r,t,n,a);var Ue=l.dynCall_jiiii=(e,r,t,n,a)=>(Ue=l.dynCall_jiiii=w.Ca)(e,r,t,n,a);l.dynCall_iiiiij=(e,r,t,n,a,i,o)=>(l.dynCall_iiiiij=w.Da)(e,r,t,n,a,i,o),l.dynCall_iiiiijj=(e,r,t,n,a,i,o,s,u)=>(l.dynCall_iiiiijj=w.Ea)(e,r,t,n,a,i,o,s,u),l.dynCall_iiiiiijj=(e,r,t,n,a,i,o,s,u,c)=>(l.dynCall_iiiiiijj=w.Fa)(e,r,t,n,a,i,o,s,u,c);function Jn(e,r){var t=T();try{return b(e)(r)}catch(n){if(P(t),n!==n+0)throw n;m(1,0)}}function Kn(e,r,t,n){var a=T();try{b(e)(r,t,n)}catch(i){if(P(a),i!==i+0)throw i;m(1,0)}}function Qn(e,r,t){var n=T();try{b(e)(r,t)}catch(a){if(P(n),a!==a+0)throw a;m(1,0)}}function ra(e,r,t,n){var a=T();try{return b(e)(r,t,n)}catch(i){if(P(a),i!==i+0)throw i;m(1,0)}}function ea(e,r,t,n,a){var i=T();try{return b(e)(r,t,n,a)}catch(o){if(P(i),o!==o+0)throw o;m(1,0)}}function ta(e,r){var t=T();try{b(e)(r)}catch(n){if(P(t),n!==n+0)throw n;m(1,0)}}function na(e,r,t){var n=T();try{return b(e)(r,t)}catch(a){if(P(n),a!==a+0)throw a;m(1,0)}}function aa(e){var r=T();try{b(e)()}catch(t){if(P(r),t!==t+0)throw t;m(1,0)}}function ia(e,r,t,n,a,i,o,s,u,c,v){var h=T();try{b(e)(r,t,n,a,i,o,s,u,c,v)}catch(p){if(P(h),p!==p+0)throw p;m(1,0)}}function oa(e,r,t,n,a,i,o){var s=T();try{return b(e)(r,t,n,a,i,o)}catch(u){if(P(s),u!==u+0)throw u;m(1,0)}}function sa(e,r,t,n,a){var i=T();try{b(e)(r,t,n,a)}catch(o){if(P(i),o!==o+0)throw o;m(1,0)}}function ua(e,r,t,n,a,i){var o=T();try{return b(e)(r,t,n,a,i)}catch(s){if(P(o),s!==s+0)throw s;m(1,0)}}function la(e,r,t,n,a,i,o,s){var u=T();try{return b(e)(r,t,n,a,i,o,s)}catch(c){if(P(u),c!==c+0)throw c;m(1,0)}}function fa(e,r,t,n,a){var i=T();try{return b(e)(r,t,n,a)}catch(o){if(P(i),o!==o+0)throw o;m(1,0)}}function ca(e,r,t,n){var a=T();try{return b(e)(r,t,n)}catch(i){if(P(a),i!==i+0)throw i;m(1,0)}}function va(e,r,t,n){var a=T();try{return b(e)(r,t,n)}catch(i){if(P(a),i!==i+0)throw i;m(1,0)}}function da(e){var r=T();try{return b(e)()}catch(t){if(P(r),t!==t+0)throw t;m(1,0)}}function pa(e,r,t,n,a,i,o,s){var u=T();try{b(e)(r,t,n,a,i,o,s)}catch(c){if(P(u),c!==c+0)throw c;m(1,0)}}function ha(e,r,t,n,a,i,o,s,u,c,v,h){var p=T();try{return b(e)(r,t,n,a,i,o,s,u,c,v,h)}catch(_){if(P(p),_!==_+0)throw _;m(1,0)}}function _a(e,r,t,n,a,i,o,s,u,c,v,h,p,_,C,O){var $=T();try{b(e)(r,t,n,a,i,o,s,u,c,v,h,p,_,C,O)}catch(F){if(P($),F!==F+0)throw F;m(1,0)}}function ga(e,r,t,n,a){var i=T();try{return Ue(e,r,t,n,a)}catch(o){if(P(i),o!==o+0)throw o;m(1,0)}}var Cr;tr=function e(){Cr||He(),Cr||(tr=e)};function He(){if(N>0||(Xe(),N>0))return;function e(){Cr||(Cr=!0,l.calledRun=!0,!te&&(Ze(),Jr(l),l.onRuntimeInitialized&&l.onRuntimeInitialized(),Ge()))}l.setStatus?(l.setStatus("Running..."),setTimeout(function(){setTimeout(function(){l.setStatus("")},1),e()},1)):e()}if(l.preInit)for(typeof l.preInit=="function"&&(l.preInit=[l.preInit]);l.preInit.length>0;)l.preInit.pop()();return He(),X.ready}})();function ya(j){return W.getZXingModuleWithFactory(Sr,j)}function ma(j){return W.setZXingModuleOverridesWithFactory(Sr,j)}async function $a(j,X){return W.readBarcodesFromImageFileWithFactory(Sr,j,X)}async function ba(j,X){return W.readBarcodesFromImageDataWithFactory(Sr,j,X)}exports.barcodeFormats=W.barcodeFormats;exports.binarizers=W.binarizers;exports.characterSets=W.characterSets;exports.contentTypes=W.contentTypes;exports.defaultDecodeHints=W.defaultReaderOptions;exports.defaultReaderOptions=W.defaultReaderOptions;exports.eanAddOnSymbols=W.eanAddOnSymbols;exports.purgeZXingModule=W.purgeZXingModule;exports.readOutputEccLevels=W.readOutputEccLevels;exports.textModes=W.textModes;exports.getZXingModule=ya;exports.readBarcodesFromImageData=ba;exports.readBarcodesFromImageFile=$a;exports.setZXingModuleOverrides=ma; |
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("../core-Wr6FQ5Lz.cjs");var mr=(()=>{var S=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(J={}){var re;var u=J,yr,Q;u.ready=new Promise((r,e)=>{yr=r,Q=e});var br=Object.assign({},u),wr=typeof window=="object",Tr=typeof Bun<"u",ee=typeof((re=globalThis.WebAssembly)==null?void 0:re.instantiate)=="function",z=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&process.versions.node;var A="";function te(r){return u.locateFile?u.locateFile(r,A):A+r}var ur;(wr||z||Tr)&&(z?A=self.location.href:typeof document<"u"&&document.currentScript&&(A=document.currentScript.src),S&&(A=S),A.startsWith("blob:")?A="":A=A.substr(0,A.replace(/[?#].*/,"").lastIndexOf("/")+1),z&&(ur=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)})),u.print||console.log.bind(console);var N=u.printErr||console.error.bind(console);Object.assign(u,br),br=null,u.arguments&&u.arguments,u.thisProgram&&u.thisProgram,u.quit&&u.quit;var X;u.wasmBinary&&(X=u.wasmBinary);var rr,$r=!1,k,g,D,Z,V,d,Ar,Er;function Rr(){var r=rr.buffer;u.HEAP8=k=new Int8Array(r),u.HEAP16=D=new Int16Array(r),u.HEAPU8=g=new Uint8Array(r),u.HEAPU16=Z=new Uint16Array(r),u.HEAP32=V=new Int32Array(r),u.HEAPU32=d=new Uint32Array(r),u.HEAPF32=Ar=new Float32Array(r),u.HEAPF64=Er=new Float64Array(r)}var Cr=[],Fr=[],Pr=[];function ne(){if(u.preRun)for(typeof u.preRun=="function"&&(u.preRun=[u.preRun]);u.preRun.length;)oe(u.preRun.shift());fr(Cr)}function ae(){fr(Fr)}function ie(){if(u.postRun)for(typeof u.postRun=="function"&&(u.postRun=[u.postRun]);u.postRun.length;)ue(u.postRun.shift());fr(Pr)}function oe(r){Cr.unshift(r)}function se(r){Fr.unshift(r)}function ue(r){Pr.unshift(r)}var M=0,L=null;function fe(r){var e;M++,(e=u.monitorRunDependencies)===null||e===void 0||e.call(u,M)}function ce(r){var e;if(M--,(e=u.monitorRunDependencies)===null||e===void 0||e.call(u,M),M==0&&L){var t=L;L=null,t()}}function Wr(r){var e;(e=u.onAbort)===null||e===void 0||e.call(u,r),r="Aborted("+r+")",N(r),$r=!0,r+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(r);throw Q(t),t}var ve="data:application/octet-stream;base64,",Sr=r=>r.startsWith(ve),x;x="zxing_writer.wasm",Sr(x)||(x=te(x));function kr(r){if(r==x&&X)return new Uint8Array(X);if(ur)return ur(r);throw"both async and sync fetching of the wasm failed"}function le(r){return!X&&(wr||z||Tr||ee)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(e=>{if(!e.ok)throw`failed to load wasm binary file at '${r}'`;return e.arrayBuffer()}).catch(()=>kr(r)):Promise.resolve().then(()=>kr(r))}function Ur(r,e,t){return le(r).then(n=>WebAssembly.instantiate(n,e)).then(t,n=>{N(`failed to asynchronously prepare wasm: ${n}`),Wr(n)})}function de(r,e,t,n){return!r&&typeof WebAssembly.instantiateStreaming=="function"&&!Sr(e)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(a=>{var i=WebAssembly.instantiateStreaming(a,t);return i.then(n,function(s){return N(`wasm streaming compile failed: ${s}`),N("falling back to ArrayBuffer instantiation"),Ur(e,t,n)})}):Ur(e,t,n)}function _e(){var r={a:Wt};function e(n,a){return p=n.exports,rr=p.R,Rr(),Nr=p.V,se(p.S),ce(),p}fe();function t(n){e(n.instance)}if(u.instantiateWasm)try{return u.instantiateWasm(r,e)}catch(n){N(`Module.instantiateWasm callback failed with error: ${n}`),Q(n)}return de(X,x,r,t).catch(Q),{}}var fr=r=>{for(;r.length>0;)r.shift()(u)};u.noExitRuntime;var Mr=[],pe=r=>{var e=new cr(r);return e.get_caught()||e.set_caught(!0),e.set_rethrown(!1),Mr.push(e),Yr(e.excPtr),e.get_exception_ptr()},I=0,ge=()=>{w(0,0);var r=Mr.pop();Kr(r.excPtr),I=0};class cr{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){d[this.ptr+4>>2]=e}get_type(){return d[this.ptr+4>>2]}set_destructor(e){d[this.ptr+8>>2]=e}get_destructor(){return d[this.ptr+8>>2]}set_caught(e){e=e?1:0,k[this.ptr+12]=e}get_caught(){return k[this.ptr+12]!=0}set_rethrown(e){e=e?1:0,k[this.ptr+13]=e}get_rethrown(){return k[this.ptr+13]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){d[this.ptr+16>>2]=e}get_adjusted_ptr(){return d[this.ptr+16>>2]}get_exception_ptr(){var e=Qr(this.get_type());if(e)return d[this.excPtr>>2];var t=this.get_adjusted_ptr();return t!==0?t:this.excPtr}}var he=r=>{throw I||(I=r),I},vr=r=>{var e=I;if(!e)return G(0),0;var t=new cr(e);t.set_adjusted_ptr(e);var n=t.get_type();if(!n)return G(0),e;for(var a in r){var i=r[a];if(i===0||i===n)break;var s=t.ptr+16;if(Jr(i,n,s))return G(i),e}return G(n),e},me=()=>vr([]),ye=r=>vr([r]),be=(r,e)=>vr([r,e]),we=(r,e,t)=>{var n=new cr(r);throw n.init(e,t),I=r,I},er={},lr=r=>{for(;r.length;){var e=r.pop(),t=r.pop();t(e)}};function tr(r){return this.fromWireType(d[r>>2])}var H={},O={},nr={},Ir,Or=r=>{throw new Ir(r)},jr=(r,e,t)=>{r.forEach(function(o){nr[o]=e});function n(o){var f=t(o);f.length!==r.length&&Or("Mismatched type converter count");for(var c=0;c<r.length;++c)E(r[c],f[c])}var a=new Array(e.length),i=[],s=0;e.forEach((o,f)=>{O.hasOwnProperty(o)?a[f]=O[o]:(i.push(o),H.hasOwnProperty(o)||(H[o]=[]),H[o].push(()=>{a[f]=O[o],++s,s===i.length&&n(a)}))}),i.length===0&&n(a)},Te=r=>{var e=er[r];delete er[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,i=a.map(s=>s.getterReturnType).concat(a.map(s=>s.setterArgumentType));jr([r],i,s=>{var o={};return a.forEach((f,c)=>{var v=f.fieldName,l=s[c],_=f.getter,m=f.getterContext,U=s[c+a.length],K=f.setter,R=f.setterContext;o[v]={read:Y=>l.fromWireType(_(m,Y)),write:(Y,hr)=>{var sr=[];K(R,Y,U.toWireType(sr,hr)),lr(sr)}}}),[{name:e.name,fromWireType:f=>{var c={};for(var v in o)c[v]=o[v].read(f);return n(f),c},toWireType:(f,c)=>{for(var v in o)if(!(v in c))throw new TypeError(`Missing field: "${v}"`);var l=t();for(v in o)o[v].write(l,c[v]);return f!==null&&f.push(n,l),l},argPackAdvance:C,readValueFromPointer:tr,destructorFunction:n}]})},$e=(r,e,t,n,a)=>{},Ae=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Dr=r},Dr,h=r=>{for(var e="",t=r;g[t];)e+=Dr[g[t++]];return e},Vr,y=r=>{throw new Vr(r)};function Ee(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=e.name;if(r||y(`type "${n}" must have a positive integer typeid pointer`),O.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;y(`Cannot register type '${n}' twice`)}if(O[r]=e,delete nr[r],H.hasOwnProperty(r)){var a=H[r];delete H[r],a.forEach(i=>i())}}function E(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Ee(r,e,t)}var C=8,Re=(r,e,t,n)=>{e=h(e),E(r,{name:e,fromWireType:function(a){return!!a},toWireType:function(a,i){return i?t:n},argPackAdvance:C,readValueFromPointer:function(a){return this.fromWireType(g[a])},destructorFunction:null})},dr=[],F=[],_r=r=>{r>9&&--F[r+1]===0&&(F[r]=void 0,dr.push(r))},Ce=()=>F.length/2-5-dr.length,Fe=()=>{F.push(0,1,void 0,1,null,1,!0,1,!1,1),u.count_emval_handles=Ce},j={toValue:r=>(r||y("Cannot use deleted val. handle = "+r),F[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=dr.pop()||F.length;return F[e]=r,F[e+1]=1,e}}}},Pe={name:"emscripten::val",fromWireType:r=>{var e=j.toValue(r);return _r(r),e},toWireType:(r,e)=>j.toHandle(e),argPackAdvance:C,readValueFromPointer:tr,destructorFunction:null},We=r=>E(r,Pe),Se=(r,e,t)=>{if(r[e].overloadTable===void 0){var n=r[e];r[e]=function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return r[e].overloadTable.hasOwnProperty(i.length)||y(`Function '${t}' called with an invalid number of arguments (${i.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[i.length].apply(this,i)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},xr=(r,e,t)=>{u.hasOwnProperty(r)?((t===void 0||u[r].overloadTable!==void 0&&u[r].overloadTable[t]!==void 0)&&y(`Cannot register public name '${r}' twice`),Se(u,r,r),u.hasOwnProperty(t)&&y(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),u[r].overloadTable[t]=e):(u[r]=e,t!==void 0&&(u[r].numArguments=t))},ke=(r,e,t)=>{switch(e){case 1:return t?function(n){return this.fromWireType(k[n])}:function(n){return this.fromWireType(g[n])};case 2:return t?function(n){return this.fromWireType(D[n>>1])}:function(n){return this.fromWireType(Z[n>>1])};case 4:return t?function(n){return this.fromWireType(V[n>>2])}:function(n){return this.fromWireType(d[n>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Ue=(r,e,t,n)=>{e=h(e);function a(){}a.values={},E(r,{name:e,constructor:a,fromWireType:function(i){return this.constructor.values[i]},toWireType:(i,s)=>s.value,argPackAdvance:C,readValueFromPointer:ke(e,t,n),destructorFunction:null}),xr(e,a)},ar=(r,e)=>Object.defineProperty(e,"name",{value:r}),Hr=r=>{var e=Gr(r),t=h(e);return P(e),t},Br=(r,e)=>{var t=O[r];return t===void 0&&y(`${e} has unknown type ${Hr(r)}`),t},Me=(r,e,t)=>{var n=Br(r,"enum");e=h(e);var a=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:ar(`${n.name}_${e}`,function(){})}});a.values[t]=i,a[e]=i},Ie=(r,e)=>{switch(e){case 4:return function(t){return this.fromWireType(Ar[t>>2])};case 8:return function(t){return this.fromWireType(Er[t>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},Oe=(r,e,t)=>{e=h(e),E(r,{name:e,fromWireType:n=>n,toWireType:(n,a)=>a,argPackAdvance:C,readValueFromPointer:Ie(e,t),destructorFunction:null})};function je(r){for(var e=1;e<r.length;++e)if(r[e]!==null&&r[e].destructorFunction===void 0)return!0;return!1}function De(r,e,t,n,a,i){var s=e.length;s<2&&y("argTypes array size mismatch! Must at least get return value and 'this' types!");var o=e[1]!==null&&t!==null,f=je(e),c=e[0].name!=="void",v=s-2,l=new Array(v),_=[],m=[],U=function(){arguments.length!==v&&y(`function ${r} called with ${arguments.length} arguments, expected ${v}`),m.length=0;var K;_.length=o?2:1,_[0]=a,o&&(K=e[1].toWireType(m,this),_[1]=K);for(var R=0;R<v;++R)l[R]=e[R+2].toWireType(m,R<0||arguments.length<=R?void 0:arguments[R]),_.push(l[R]);var Y=n(..._);function hr(sr){if(f)lr(m);else for(var B=o?1:2;B<e.length;B++){var Bt=B===1?K:l[B-2];e[B].destructorFunction!==null&&e[B].destructorFunction(Bt)}if(c)return e[0].fromWireType(sr)}return hr(Y)};return ar(r,U)}var Ve=(r,e)=>{for(var t=[],n=0;n<r;n++)t.push(d[e+n*4>>2]);return t},xe=(r,e,t)=>{u.hasOwnProperty(r)||Or("Replacing nonexistent public symbol"),u[r].overloadTable!==void 0&&t!==void 0?u[r].overloadTable[t]=e:(u[r]=e,u[r].argCount=t)},He=(r,e,t)=>{var n=u["dynCall_"+r];return n(e,...t)},ir=[],Nr,b=r=>{var e=ir[r];return e||(r>=ir.length&&(ir.length=r+1),ir[r]=e=Nr.get(r)),e},Be=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.includes("j"))return He(r,e,t);var n=b(e)(...t);return n},Ne=(r,e)=>function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return Be(r,e,n)},q=(r,e)=>{r=h(r);function t(){return r.includes("j")?Ne(r,e):b(e)}var n=t();return typeof n!="function"&&y(`unknown function pointer with signature ${r}: ${e}`),n},Xe=(r,e)=>{var t=ar(e,function(n){this.name=e,this.message=n;var a=new Error(n).stack;a!==void 0&&(this.stack=this.toString()+` | ||
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("../core-Dh7S8O4y.cjs");var mr=(()=>{var S=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(J={}){var re;var u=J,yr,Q;u.ready=new Promise((r,e)=>{yr=r,Q=e});var br=Object.assign({},u),wr=typeof window=="object",Tr=typeof Bun<"u",ee=typeof((re=globalThis.WebAssembly)==null?void 0:re.instantiate)=="function",z=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&process.versions.node;var A="";function te(r){return u.locateFile?u.locateFile(r,A):A+r}var ur;(wr||z||Tr)&&(z?A=self.location.href:typeof document<"u"&&document.currentScript&&(A=document.currentScript.src),S&&(A=S),A.startsWith("blob:")?A="":A=A.substr(0,A.replace(/[?#].*/,"").lastIndexOf("/")+1),z&&(ur=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)})),u.print||console.log.bind(console);var N=u.printErr||console.error.bind(console);Object.assign(u,br),br=null,u.arguments&&u.arguments,u.thisProgram&&u.thisProgram,u.quit&&u.quit;var X;u.wasmBinary&&(X=u.wasmBinary);var rr,$r=!1,k,g,D,Z,V,d,Ar,Er;function Rr(){var r=rr.buffer;u.HEAP8=k=new Int8Array(r),u.HEAP16=D=new Int16Array(r),u.HEAPU8=g=new Uint8Array(r),u.HEAPU16=Z=new Uint16Array(r),u.HEAP32=V=new Int32Array(r),u.HEAPU32=d=new Uint32Array(r),u.HEAPF32=Ar=new Float32Array(r),u.HEAPF64=Er=new Float64Array(r)}var Cr=[],Fr=[],Pr=[];function ne(){if(u.preRun)for(typeof u.preRun=="function"&&(u.preRun=[u.preRun]);u.preRun.length;)oe(u.preRun.shift());fr(Cr)}function ae(){fr(Fr)}function ie(){if(u.postRun)for(typeof u.postRun=="function"&&(u.postRun=[u.postRun]);u.postRun.length;)ue(u.postRun.shift());fr(Pr)}function oe(r){Cr.unshift(r)}function se(r){Fr.unshift(r)}function ue(r){Pr.unshift(r)}var M=0,L=null;function fe(r){var e;M++,(e=u.monitorRunDependencies)===null||e===void 0||e.call(u,M)}function ce(r){var e;if(M--,(e=u.monitorRunDependencies)===null||e===void 0||e.call(u,M),M==0&&L){var t=L;L=null,t()}}function Wr(r){var e;(e=u.onAbort)===null||e===void 0||e.call(u,r),r="Aborted("+r+")",N(r),$r=!0,r+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(r);throw Q(t),t}var ve="data:application/octet-stream;base64,",Sr=r=>r.startsWith(ve),x;x="zxing_writer.wasm",Sr(x)||(x=te(x));function kr(r){if(r==x&&X)return new Uint8Array(X);if(ur)return ur(r);throw"both async and sync fetching of the wasm failed"}function le(r){return!X&&(wr||z||Tr||ee)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(e=>{if(!e.ok)throw`failed to load wasm binary file at '${r}'`;return e.arrayBuffer()}).catch(()=>kr(r)):Promise.resolve().then(()=>kr(r))}function Ur(r,e,t){return le(r).then(n=>WebAssembly.instantiate(n,e)).then(t,n=>{N(`failed to asynchronously prepare wasm: ${n}`),Wr(n)})}function de(r,e,t,n){return!r&&typeof WebAssembly.instantiateStreaming=="function"&&!Sr(e)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(a=>{var i=WebAssembly.instantiateStreaming(a,t);return i.then(n,function(s){return N(`wasm streaming compile failed: ${s}`),N("falling back to ArrayBuffer instantiation"),Ur(e,t,n)})}):Ur(e,t,n)}function _e(){var r={a:Wt};function e(n,a){return p=n.exports,rr=p.R,Rr(),Nr=p.V,se(p.S),ce(),p}fe();function t(n){e(n.instance)}if(u.instantiateWasm)try{return u.instantiateWasm(r,e)}catch(n){N(`Module.instantiateWasm callback failed with error: ${n}`),Q(n)}return de(X,x,r,t).catch(Q),{}}var fr=r=>{for(;r.length>0;)r.shift()(u)};u.noExitRuntime;var Mr=[],pe=r=>{var e=new cr(r);return e.get_caught()||e.set_caught(!0),e.set_rethrown(!1),Mr.push(e),Yr(e.excPtr),e.get_exception_ptr()},I=0,ge=()=>{w(0,0);var r=Mr.pop();Kr(r.excPtr),I=0};class cr{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){d[this.ptr+4>>2]=e}get_type(){return d[this.ptr+4>>2]}set_destructor(e){d[this.ptr+8>>2]=e}get_destructor(){return d[this.ptr+8>>2]}set_caught(e){e=e?1:0,k[this.ptr+12]=e}get_caught(){return k[this.ptr+12]!=0}set_rethrown(e){e=e?1:0,k[this.ptr+13]=e}get_rethrown(){return k[this.ptr+13]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){d[this.ptr+16>>2]=e}get_adjusted_ptr(){return d[this.ptr+16>>2]}get_exception_ptr(){var e=Qr(this.get_type());if(e)return d[this.excPtr>>2];var t=this.get_adjusted_ptr();return t!==0?t:this.excPtr}}var he=r=>{throw I||(I=r),I},vr=r=>{var e=I;if(!e)return G(0),0;var t=new cr(e);t.set_adjusted_ptr(e);var n=t.get_type();if(!n)return G(0),e;for(var a in r){var i=r[a];if(i===0||i===n)break;var s=t.ptr+16;if(Jr(i,n,s))return G(i),e}return G(n),e},me=()=>vr([]),ye=r=>vr([r]),be=(r,e)=>vr([r,e]),we=(r,e,t)=>{var n=new cr(r);throw n.init(e,t),I=r,I},er={},lr=r=>{for(;r.length;){var e=r.pop(),t=r.pop();t(e)}};function tr(r){return this.fromWireType(d[r>>2])}var H={},O={},nr={},Ir,Or=r=>{throw new Ir(r)},jr=(r,e,t)=>{r.forEach(function(o){nr[o]=e});function n(o){var f=t(o);f.length!==r.length&&Or("Mismatched type converter count");for(var c=0;c<r.length;++c)E(r[c],f[c])}var a=new Array(e.length),i=[],s=0;e.forEach((o,f)=>{O.hasOwnProperty(o)?a[f]=O[o]:(i.push(o),H.hasOwnProperty(o)||(H[o]=[]),H[o].push(()=>{a[f]=O[o],++s,s===i.length&&n(a)}))}),i.length===0&&n(a)},Te=r=>{var e=er[r];delete er[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,i=a.map(s=>s.getterReturnType).concat(a.map(s=>s.setterArgumentType));jr([r],i,s=>{var o={};return a.forEach((f,c)=>{var v=f.fieldName,l=s[c],_=f.getter,m=f.getterContext,U=s[c+a.length],K=f.setter,R=f.setterContext;o[v]={read:Y=>l.fromWireType(_(m,Y)),write:(Y,hr)=>{var sr=[];K(R,Y,U.toWireType(sr,hr)),lr(sr)}}}),[{name:e.name,fromWireType:f=>{var c={};for(var v in o)c[v]=o[v].read(f);return n(f),c},toWireType:(f,c)=>{for(var v in o)if(!(v in c))throw new TypeError(`Missing field: "${v}"`);var l=t();for(v in o)o[v].write(l,c[v]);return f!==null&&f.push(n,l),l},argPackAdvance:C,readValueFromPointer:tr,destructorFunction:n}]})},$e=(r,e,t,n,a)=>{},Ae=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Dr=r},Dr,h=r=>{for(var e="",t=r;g[t];)e+=Dr[g[t++]];return e},Vr,y=r=>{throw new Vr(r)};function Ee(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=e.name;if(r||y(`type "${n}" must have a positive integer typeid pointer`),O.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;y(`Cannot register type '${n}' twice`)}if(O[r]=e,delete nr[r],H.hasOwnProperty(r)){var a=H[r];delete H[r],a.forEach(i=>i())}}function E(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Ee(r,e,t)}var C=8,Re=(r,e,t,n)=>{e=h(e),E(r,{name:e,fromWireType:function(a){return!!a},toWireType:function(a,i){return i?t:n},argPackAdvance:C,readValueFromPointer:function(a){return this.fromWireType(g[a])},destructorFunction:null})},dr=[],F=[],_r=r=>{r>9&&--F[r+1]===0&&(F[r]=void 0,dr.push(r))},Ce=()=>F.length/2-5-dr.length,Fe=()=>{F.push(0,1,void 0,1,null,1,!0,1,!1,1),u.count_emval_handles=Ce},j={toValue:r=>(r||y("Cannot use deleted val. handle = "+r),F[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=dr.pop()||F.length;return F[e]=r,F[e+1]=1,e}}}},Pe={name:"emscripten::val",fromWireType:r=>{var e=j.toValue(r);return _r(r),e},toWireType:(r,e)=>j.toHandle(e),argPackAdvance:C,readValueFromPointer:tr,destructorFunction:null},We=r=>E(r,Pe),Se=(r,e,t)=>{if(r[e].overloadTable===void 0){var n=r[e];r[e]=function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return r[e].overloadTable.hasOwnProperty(i.length)||y(`Function '${t}' called with an invalid number of arguments (${i.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[i.length].apply(this,i)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},xr=(r,e,t)=>{u.hasOwnProperty(r)?((t===void 0||u[r].overloadTable!==void 0&&u[r].overloadTable[t]!==void 0)&&y(`Cannot register public name '${r}' twice`),Se(u,r,r),u.hasOwnProperty(t)&&y(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),u[r].overloadTable[t]=e):(u[r]=e,t!==void 0&&(u[r].numArguments=t))},ke=(r,e,t)=>{switch(e){case 1:return t?function(n){return this.fromWireType(k[n])}:function(n){return this.fromWireType(g[n])};case 2:return t?function(n){return this.fromWireType(D[n>>1])}:function(n){return this.fromWireType(Z[n>>1])};case 4:return t?function(n){return this.fromWireType(V[n>>2])}:function(n){return this.fromWireType(d[n>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Ue=(r,e,t,n)=>{e=h(e);function a(){}a.values={},E(r,{name:e,constructor:a,fromWireType:function(i){return this.constructor.values[i]},toWireType:(i,s)=>s.value,argPackAdvance:C,readValueFromPointer:ke(e,t,n),destructorFunction:null}),xr(e,a)},ar=(r,e)=>Object.defineProperty(e,"name",{value:r}),Hr=r=>{var e=Gr(r),t=h(e);return P(e),t},Br=(r,e)=>{var t=O[r];return t===void 0&&y(`${e} has unknown type ${Hr(r)}`),t},Me=(r,e,t)=>{var n=Br(r,"enum");e=h(e);var a=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:ar(`${n.name}_${e}`,function(){})}});a.values[t]=i,a[e]=i},Ie=(r,e)=>{switch(e){case 4:return function(t){return this.fromWireType(Ar[t>>2])};case 8:return function(t){return this.fromWireType(Er[t>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},Oe=(r,e,t)=>{e=h(e),E(r,{name:e,fromWireType:n=>n,toWireType:(n,a)=>a,argPackAdvance:C,readValueFromPointer:Ie(e,t),destructorFunction:null})};function je(r){for(var e=1;e<r.length;++e)if(r[e]!==null&&r[e].destructorFunction===void 0)return!0;return!1}function De(r,e,t,n,a,i){var s=e.length;s<2&&y("argTypes array size mismatch! Must at least get return value and 'this' types!");var o=e[1]!==null&&t!==null,f=je(e),c=e[0].name!=="void",v=s-2,l=new Array(v),_=[],m=[],U=function(){arguments.length!==v&&y(`function ${r} called with ${arguments.length} arguments, expected ${v}`),m.length=0;var K;_.length=o?2:1,_[0]=a,o&&(K=e[1].toWireType(m,this),_[1]=K);for(var R=0;R<v;++R)l[R]=e[R+2].toWireType(m,R<0||arguments.length<=R?void 0:arguments[R]),_.push(l[R]);var Y=n(..._);function hr(sr){if(f)lr(m);else for(var B=o?1:2;B<e.length;B++){var Bt=B===1?K:l[B-2];e[B].destructorFunction!==null&&e[B].destructorFunction(Bt)}if(c)return e[0].fromWireType(sr)}return hr(Y)};return ar(r,U)}var Ve=(r,e)=>{for(var t=[],n=0;n<r;n++)t.push(d[e+n*4>>2]);return t},xe=(r,e,t)=>{u.hasOwnProperty(r)||Or("Replacing nonexistent public symbol"),u[r].overloadTable!==void 0&&t!==void 0?u[r].overloadTable[t]=e:(u[r]=e,u[r].argCount=t)},He=(r,e,t)=>{var n=u["dynCall_"+r];return n(e,...t)},ir=[],Nr,b=r=>{var e=ir[r];return e||(r>=ir.length&&(ir.length=r+1),ir[r]=e=Nr.get(r)),e},Be=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.includes("j"))return He(r,e,t);var n=b(e)(...t);return n},Ne=(r,e)=>function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return Be(r,e,n)},q=(r,e)=>{r=h(r);function t(){return r.includes("j")?Ne(r,e):b(e)}var n=t();return typeof n!="function"&&y(`unknown function pointer with signature ${r}: ${e}`),n},Xe=(r,e)=>{var t=ar(e,function(n){this.name=e,this.message=n;var a=new Error(n).stack;a!==void 0&&(this.stack=this.toString()+` | ||
`+a.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},Xr,Ze=(r,e)=>{var t=[],n={};function a(i){if(!n[i]&&!O[i]){if(nr[i]){nr[i].forEach(a);return}t.push(i),n[i]=!0}}throw e.forEach(a),new Xr(`${r}: `+t.map(Hr).join([", "]))},Le=r=>{r=r.trim();const e=r.indexOf("(");return e!==-1?r.substr(0,e):r},qe=(r,e,t,n,a,i,s)=>{var o=Ve(e,t);r=h(r),r=Le(r),a=q(n,a),xr(r,function(){Ze(`Cannot call ${r} due to unbound types`,o)},e-1),jr([],o,f=>{var c=[f[0],null].concat(f.slice(1));return xe(r,De(r,c,null,a,i),e-1),[]})},Ge=(r,e,t)=>{switch(e){case 1:return t?n=>k[n]:n=>g[n];case 2:return t?n=>D[n>>1]:n=>Z[n>>1];case 4:return t?n=>V[n>>2]:n=>d[n>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Ke=(r,e,t,n,a)=>{e=h(e);var i=v=>v;if(n===0){var s=32-8*t;i=v=>v<<s>>>s}var o=e.includes("unsigned"),f=(v,l)=>{},c;o?c=function(v,l){return f(l,this.name),l>>>0}:c=function(v,l){return f(l,this.name),l},E(r,{name:e,fromWireType:i,toWireType:c,argPackAdvance:C,readValueFromPointer:Ge(e,t,n!==0),destructorFunction:null})},Ye=(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],a=n[e];function i(s){var o=d[s>>2],f=d[s+4>>2];return new a(k.buffer,f,o)}t=h(t),E(r,{name:t,fromWireType:i,argPackAdvance:C,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},Je=(r,e,t,n)=>{if(!(n>0))return 0;for(var a=t,i=t+n-1,s=0;s<r.length;++s){var o=r.charCodeAt(s);if(o>=55296&&o<=57343){var f=r.charCodeAt(++s);o=65536+((o&1023)<<10)|f&1023}if(o<=127){if(t>=i)break;e[t++]=o}else if(o<=2047){if(t+1>=i)break;e[t++]=192|o>>6,e[t++]=128|o&63}else if(o<=65535){if(t+2>=i)break;e[t++]=224|o>>12,e[t++]=128|o>>6&63,e[t++]=128|o&63}else{if(t+3>=i)break;e[t++]=240|o>>18,e[t++]=128|o>>12&63,e[t++]=128|o>>6&63,e[t++]=128|o&63}}return e[t]=0,t-a},Qe=(r,e,t)=>Je(r,g,e,t),ze=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},Zr=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,rt=(r,e,t)=>{for(var n=e+t,a=e;r[a]&&!(a>=n);)++a;if(a-e>16&&r.buffer&&Zr)return Zr.decode(r.subarray(e,a));for(var i="";e<a;){var s=r[e++];if(!(s&128)){i+=String.fromCharCode(s);continue}var o=r[e++]&63;if((s&224)==192){i+=String.fromCharCode((s&31)<<6|o);continue}var f=r[e++]&63;if((s&240)==224?s=(s&15)<<12|o<<6|f:s=(s&7)<<18|o<<12|f<<6|r[e++]&63,s<65536)i+=String.fromCharCode(s);else{var c=s-65536;i+=String.fromCharCode(55296|c>>10,56320|c&1023)}}return i},et=(r,e)=>r?rt(g,r,e):"",tt=(r,e)=>{e=h(e);var t=e==="std::string";E(r,{name:e,fromWireType(n){var a=d[n>>2],i=n+4,s;if(t)for(var o=i,f=0;f<=a;++f){var c=i+f;if(f==a||g[c]==0){var v=c-o,l=et(o,v);s===void 0?s=l:(s+="\0",s+=l),o=c+1}}else{for(var _=new Array(a),f=0;f<a;++f)_[f]=String.fromCharCode(g[i+f]);s=_.join("")}return P(n),s},toWireType(n,a){a instanceof ArrayBuffer&&(a=new Uint8Array(a));var i,s=typeof a=="string";s||a instanceof Uint8Array||a instanceof Uint8ClampedArray||a instanceof Int8Array||y("Cannot pass non-string to std::string"),t&&s?i=ze(a):i=a.length;var o=gr(4+i+1),f=o+4;if(d[o>>2]=i,t&&s)Qe(a,f,i+1);else if(s)for(var c=0;c<i;++c){var v=a.charCodeAt(c);v>255&&(P(f),y("String has UTF-16 code units that do not fit in 8 bits")),g[f+c]=v}else for(var c=0;c<i;++c)g[f+c]=a[c];return n!==null&&n.push(P,o),o},argPackAdvance:C,readValueFromPointer:tr,destructorFunction(n){P(n)}})},Lr=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,nt=(r,e)=>{for(var t=r,n=t>>1,a=n+e/2;!(n>=a)&&Z[n];)++n;if(t=n<<1,t-r>32&&Lr)return Lr.decode(g.subarray(r,t));for(var i="",s=0;!(s>=e/2);++s){var o=D[r+s*2>>1];if(o==0)break;i+=String.fromCharCode(o)}return i},at=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<2)return 0;t-=2;for(var a=e,i=t<r.length*2?t/2:r.length,s=0;s<i;++s){var o=r.charCodeAt(s);D[e>>1]=o,e+=2}return D[e>>1]=0,e-a},it=r=>r.length*2,ot=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var a=V[r+t*4>>2];if(a==0)break;if(++t,a>=65536){var i=a-65536;n+=String.fromCharCode(55296|i>>10,56320|i&1023)}else n+=String.fromCharCode(a)}return n},st=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<4)return 0;for(var a=e,i=a+t-4,s=0;s<r.length;++s){var o=r.charCodeAt(s);if(o>=55296&&o<=57343){var f=r.charCodeAt(++s);o=65536+((o&1023)<<10)|f&1023}if(V[e>>2]=o,e+=4,e+4>i)break}return V[e>>2]=0,e-a},ut=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&++t,e+=4}return e},ft=(r,e,t)=>{t=h(t);var n,a,i,s;e===2?(n=nt,a=at,s=it,i=o=>Z[o>>1]):e===4&&(n=ot,a=st,s=ut,i=o=>d[o>>2]),E(r,{name:t,fromWireType:o=>{for(var f=d[o>>2],c,v=o+4,l=0;l<=f;++l){var _=o+4+l*e;if(l==f||i(_)==0){var m=_-v,U=n(v,m);c===void 0?c=U:(c+="\0",c+=U),v=_+e}}return P(o),c},toWireType:(o,f)=>{typeof f!="string"&&y(`Cannot pass non-string to C++ string type ${t}`);var c=s(f),v=gr(4+c+e);return d[v>>2]=c/e,a(f,v+4,c+e),o!==null&&o.push(P,v),v},argPackAdvance:C,readValueFromPointer:tr,destructorFunction(o){P(o)}})},ct=(r,e,t,n,a,i)=>{er[r]={name:h(e),rawConstructor:q(t,n),rawDestructor:q(a,i),fields:[]}},vt=(r,e,t,n,a,i,s,o,f,c)=>{er[r].fields.push({fieldName:h(e),getterReturnType:t,getter:q(n,a),getterContext:i,setterArgumentType:s,setter:q(o,f),setterContext:c})},lt=(r,e)=>{e=h(e),E(r,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},pr=[],dt=(r,e,t,n)=>(r=pr[r],e=j.toValue(e),r(null,e,t,n)),_t={},pt=r=>{var e=_t[r];return e===void 0?h(r):e},qr=()=>{if(typeof globalThis=="object")return globalThis;function r(e){e.$$$embind_global$$$=e;var t=typeof $$$embind_global$$$=="object"&&e.$$$embind_global$$$==e;return t||delete e.$$$embind_global$$$,t}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&r(global)?$$$embind_global$$$=global:typeof self=="object"&&r(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},gt=r=>r===0?j.toHandle(qr()):(r=pt(r),j.toHandle(qr()[r])),ht=r=>{var e=pr.length;return pr.push(r),e},mt=(r,e)=>{for(var t=new Array(r),n=0;n<r;++n)t[n]=Br(d[e+n*4>>2],"parameter "+n);return t},yt=Reflect.construct,bt=(r,e,t)=>{var n=[],a=r.toWireType(n,t);return n.length&&(d[e>>2]=j.toHandle(n)),a},wt=(r,e,t)=>{var n=mt(r,e),a=n.shift();r--;var i=new Array(r),s=(f,c,v,l)=>{for(var _=0,m=0;m<r;++m)i[m]=n[m].readValueFromPointer(l+_),_+=n[m].argPackAdvance;var U=t===1?yt(c,i):c.apply(f,i);return bt(a,v,U)},o=`methodCaller<(${n.map(f=>f.name).join(", ")}) => ${a.name}>`;return ht(ar(o,s))},Tt=r=>{r>9&&(F[r+1]+=1)},$t=r=>{var e=j.toValue(r);lr(e),_r(r)},At=()=>{Wr("")},Et=(r,e,t)=>g.copyWithin(r,e,e+t),Rt=()=>2147483648,Ct=r=>{var e=rr.buffer,t=(r-e.byteLength+65535)/65536;try{return rr.grow(t),Rr(),1}catch{}},Ft=r=>{var e=g.length;r>>>=0;var t=Rt();if(r>t)return!1;for(var n=(f,c)=>f+(c-f%c)%c,a=1;a<=4;a*=2){var i=e*(1+.2/a);i=Math.min(i,r+100663296);var s=Math.min(t,n(Math.max(r,i),65536)),o=Ct(s);if(o)return!0}return!1},Pt=r=>r;Ir=u.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},Ae(),Vr=u.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Fe(),Xr=u.UnboundTypeError=Xe(Error,"UnboundTypeError");var Wt={r:pe,q:ge,g:me,d:ye,k:be,a:we,i:he,M:Te,C:$e,H:Re,G:We,K:Ue,b:Me,v:Oe,L:qe,h:Ke,e:Ye,u:tt,p:ft,w:ct,N:vt,I:lt,z:dt,P:_r,B:gt,A:wt,x:Tt,Q:$t,s:At,F:Et,E:Ft,y:Ot,c:St,l:jt,n:It,o:Dt,f:kt,t:Ht,m:xt,D:Mt,J:Ut,j:Vt,O:Pt},p=_e(),gr=u._malloc=r=>(gr=u._malloc=p.T)(r),P=u._free=r=>(P=u._free=p.U)(r),Gr=r=>(Gr=p.W)(r),w=(r,e)=>(w=p.X)(r,e),G=r=>(G=p.Y)(r),T=()=>(T=p.Z)(),$=r=>($=p._)(r),Kr=r=>(Kr=p.$)(r),Yr=r=>(Yr=p.aa)(r),Jr=(r,e,t)=>(Jr=p.ba)(r,e,t),Qr=r=>(Qr=p.ca)(r);function St(r,e){var t=T();try{return b(r)(e)}catch(n){if($(t),n!==n+0)throw n;w(1,0)}}function kt(r,e){var t=T();try{b(r)(e)}catch(n){if($(t),n!==n+0)throw n;w(1,0)}}function Ut(r,e,t,n,a,i){var s=T();try{b(r)(e,t,n,a,i)}catch(o){if($(s),o!==o+0)throw o;w(1,0)}}function Mt(r,e,t,n,a){var i=T();try{b(r)(e,t,n,a)}catch(s){if($(i),s!==s+0)throw s;w(1,0)}}function It(r,e,t,n){var a=T();try{return b(r)(e,t,n)}catch(i){if($(a),i!==i+0)throw i;w(1,0)}}function Ot(r,e,t,n,a){var i=T();try{return b(r)(e,t,n,a)}catch(s){if($(i),s!==s+0)throw s;w(1,0)}}function jt(r,e,t){var n=T();try{return b(r)(e,t)}catch(a){if($(n),a!==a+0)throw a;w(1,0)}}function Dt(r){var e=T();try{b(r)()}catch(t){if($(e),t!==t+0)throw t;w(1,0)}}function Vt(r,e,t,n,a,i,s,o,f,c,v){var l=T();try{b(r)(e,t,n,a,i,s,o,f,c,v)}catch(_){if($(l),_!==_+0)throw _;w(1,0)}}function xt(r,e,t,n){var a=T();try{b(r)(e,t,n)}catch(i){if($(a),i!==i+0)throw i;w(1,0)}}function Ht(r,e,t){var n=T();try{b(r)(e,t)}catch(a){if($(n),a!==a+0)throw a;w(1,0)}}var or;L=function r(){or||zr(),or||(L=r)};function zr(){if(M>0||(ne(),M>0))return;function r(){or||(or=!0,u.calledRun=!0,!$r&&(ae(),yr(u),u.onRuntimeInitialized&&u.onRuntimeInitialized(),ie()))}u.setStatus?(u.setStatus("Running..."),setTimeout(function(){setTimeout(function(){u.setStatus("")},1),r()},1)):r()}if(u.preInit)for(typeof u.preInit=="function"&&(u.preInit=[u.preInit]);u.preInit.length>0;)u.preInit.pop()();return zr(),J.ready}})();function Nt(S){return W.getZXingModuleWithFactory(mr,S)}function Xt(S){return W.setZXingModuleOverridesWithFactory(mr,S)}async function Zt(S,J){return W.writeBarcodeToImageFileWithFactory(mr,S,J)}exports.barcodeFormats=W.barcodeFormats;exports.characterSets=W.characterSets;exports.defaultEncodeHints=W.defaultWriterOptions;exports.defaultWriterOptions=W.defaultWriterOptions;exports.purgeZXingModule=W.purgeZXingModule;exports.writeInputEccLevels=W.writeInputEccLevels;exports.getZXingModule=Nt;exports.setZXingModuleOverrides=Xt;exports.writeBarcodeToImageFile=Zt; |
@@ -1,3 +0,3 @@ | ||
import { g as ya, s as ma, r as $a, a as ba, w as wa } from "../core-DgohV_cw.js"; | ||
import { b as Oa, c as ka, e as Ma, f as ja, d as Ia, j as Ua, d as Ha, j as xa, h as Va, p as Ya, i as Ba, t as Na, k as La } from "../core-DgohV_cw.js"; | ||
import { g as ya, s as ma, r as $a, a as ba, w as wa } from "../core-DoAv2oGU.js"; | ||
import { b as Oa, c as ka, e as Ma, f as ja, d as Ia, j as Ua, d as Ha, j as xa, h as Va, p as Ya, i as Ba, t as Na, k as La } from "../core-DoAv2oGU.js"; | ||
var fr = (() => { | ||
@@ -4,0 +4,0 @@ var O = typeof document < "u" && document.currentScript ? document.currentScript.src : void 0; |
@@ -1,3 +0,3 @@ | ||
import { g as ga, s as ya, r as ma, a as $a } from "../core-DgohV_cw.js"; | ||
import { b as Ra, c as Da, e as Oa, f as Wa, d as ka, d as Ma, h as ja, p as Ia, i as Ua, t as Ha } from "../core-DgohV_cw.js"; | ||
import { g as ga, s as ya, r as ma, a as $a } from "../core-DoAv2oGU.js"; | ||
import { b as Ra, c as Da, e as Oa, f as Wa, d as ka, d as Ma, h as ja, p as Ia, i as Ua, t as Ha } from "../core-DoAv2oGU.js"; | ||
var Fr = (() => { | ||
@@ -4,0 +4,0 @@ var M = typeof document < "u" && document.currentScript ? document.currentScript.src : void 0; |
@@ -1,3 +0,3 @@ | ||
import { g as Bt, s as Nt, w as Lt } from "../core-DgohV_cw.js"; | ||
import { b as zt, e as rn, j as en, j as tn, p as nn, k as an } from "../core-DgohV_cw.js"; | ||
import { g as Bt, s as Nt, w as Lt } from "../core-DoAv2oGU.js"; | ||
import { b as zt, e as rn, j as en, j as tn, p as nn, k as an } from "../core-DoAv2oGU.js"; | ||
var gr = (() => { | ||
@@ -4,0 +4,0 @@ var W = typeof document < "u" && document.currentScript ? document.currentScript.src : void 0; |
@@ -1,3 +0,3 @@ | ||
var ZXingWASM=function(R){"use strict";const Be=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"];function at(h){return h.join("|")}function it(h){const p=lr(h);let u=0,U=Be.length-1;for(;u<=U;){const b=Math.floor((u+U)/2),j=Be[b],N=lr(j);if(N===p)return j;N<p?u=b+1:U=b-1}return"None"}function lr(h){return h.toLowerCase().replace(/_-\[\]/g,"")}const ot=["LocalAverage","GlobalHistogram","FixedThreshold","BoolCast"];function st(h,p){return h.Binarizer[p]}const ut=["Unknown","ASCII","ISO8859_1","ISO8859_2","ISO8859_3","ISO8859_4","ISO8859_5","ISO8859_6","ISO8859_7","ISO8859_8","ISO8859_9","ISO8859_10","ISO8859_11","ISO8859_13","ISO8859_14","ISO8859_15","ISO8859_16","Cp437","Cp1250","Cp1251","Cp1252","Cp1256","Shift_JIS","Big5","GB2312","GB18030","EUC_JP","EUC_KR","UTF16BE","UTF8","UTF16LE","UTF32BE","UTF32LE","BINARY"];function cr(h,p){return h.CharacterSet[p]}const fr=["Text","Binary","Mixed","GS1","ISO15434","UnknownECI"];function lt(h){return fr[h.value]}const ct=["Ignore","Read","Require"];function ft(h,p){return h.EanAddOnSymbol[p]}const vt=["Plain","ECI","HRI","Hex","Escaped"];function dt(h,p){return h.TextMode[p]}const te={formats:[],tryHarder:!0,tryRotate:!0,tryInvert:!0,tryDownscale:!0,binarizer:"LocalAverage",isPure:!1,downscaleFactor:3,downscaleThreshold:500,minLineCount:2,maxNumberOfSymbols:255,tryCode39ExtendedMode:!1,validateCode39CheckSum:!1,validateITFCheckSum:!1,returnCodabarStartEnd:!1,returnErrors:!1,eanAddOnSymbol:"Read",textMode:"Plain",characterSet:"Unknown"};function vr(h,p){return{...p,formats:at(p.formats),binarizer:st(h,p.binarizer),eanAddOnSymbol:ft(h,p.eanAddOnSymbol),textMode:dt(h,p.textMode),characterSet:cr(h,p.characterSet)}}const ht=[-1,0,1,2,3,4,5,6,7,8],pt=["L","M","Q","H"],Ve={width:200,height:200,format:"QRCode",characterSet:"UTF8",eccLevel:-1,margin:10};function _t(h,p){return{...p,characterSet:cr(h,p.characterSet)}}function dr(h){return{...h,format:it(h.format),eccLevel:h.eccLevel,contentType:lt(h.contentType)}}function gt(h){const{image:p,error:u}=h;return p?{image:new Blob([new Uint8Array(p)],{type:"image/png"}),error:""}:{image:null,error:u}}const mt={locateFile:(h,p)=>{const u=h.match(/_(.+?)\.wasm$/);return u?`https://fastly.jsdelivr.net/npm/zxing-wasm@1.2.7/dist/${u[1]}/${h}`:p+h}};let we=new WeakMap;function Te(h,p){var j;const u=we.get(h);if(u!=null&&u.modulePromise&&(p===void 0||Object.is(p,u.moduleOverrides)))return u.modulePromise;const U=(j=p!=null?p:u==null?void 0:u.moduleOverrides)!=null?j:mt,b=h({...U});return we.set(h,{moduleOverrides:U,modulePromise:b}),b}function yt(){we=new WeakMap}function $t(h,p){we.set(h,{moduleOverrides:p})}async function bt(h,p,u=te){const U={...te,...u},b=await Te(h),{size:j}=p,N=new Uint8Array(await p.arrayBuffer()),q=b._malloc(j);b.HEAPU8.set(N,q);const J=b.readBarcodesFromImage(q,j,vr(b,U));b._free(q);const Q=[];for(let B=0;B<J.size();++B)Q.push(dr(J.get(B)));return Q}async function wt(h,p,u=te){const U={...te,...u},b=await Te(h),{data:j,width:N,height:q,data:{byteLength:J}}=p,Q=b._malloc(J);b.HEAPU8.set(j,Q);const B=b.readBarcodesFromPixmap(Q,N,q,vr(b,U));b._free(Q);const H=[];for(let ce=0;ce<B.size();++ce)H.push(dr(B.get(ce)));return H}async function Tt(h,p,u=Ve){const U={...Ve,...u},b=await Te(h),j=b.writeBarcodeToImage(p,_t(b,U));return gt(j)}var le=(()=>{var h=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(p={}){var et;var u=p,U,b;u.ready=new Promise((r,e)=>{U=r,b=e});var j=Object.assign({},u),N="./this.program",q=typeof window=="object",J=typeof Bun<"u",Q=typeof((et=globalThis.WebAssembly)==null?void 0:et.instantiate)=="function",B=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&process.versions.node;var H="";function ce(r){return u.locateFile?u.locateFile(r,H):H+r}var xe;(q||B||J)&&(B?H=self.location.href:typeof document<"u"&&document.currentScript&&(H=document.currentScript.src),h&&(H=h),H.startsWith("blob:")?H="":H=H.substr(0,H.replace(/[?#].*/,"").lastIndexOf("/")+1),B&&(xe=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}));var Ft=u.print||console.log.bind(console),ne=u.printErr||console.error.bind(console);Object.assign(u,j),j=null,u.arguments&&u.arguments,u.thisProgram&&(N=u.thisProgram),u.quit&&u.quit;var fe;u.wasmBinary&&(fe=u.wasmBinary);var Ce,_r=!1,V,W,ae,ve,M,$,gr,mr;function yr(){var r=Ce.buffer;u.HEAP8=V=new Int8Array(r),u.HEAP16=ae=new Int16Array(r),u.HEAPU8=W=new Uint8Array(r),u.HEAPU16=ve=new Uint16Array(r),u.HEAP32=M=new Int32Array(r),u.HEAPU32=$=new Uint32Array(r),u.HEAPF32=gr=new Float32Array(r),u.HEAPF64=mr=new Float64Array(r)}var $r=[],br=[],wr=[];function Rt(){if(u.preRun)for(typeof u.preRun=="function"&&(u.preRun=[u.preRun]);u.preRun.length;)It(u.preRun.shift());Ye($r)}function Ot(){Ye(br)}function Dt(){if(u.postRun)for(typeof u.postRun=="function"&&(u.postRun=[u.postRun]);u.postRun.length;)Mt(u.postRun.shift());Ye(wr)}function It(r){$r.unshift(r)}function Wt(r){br.unshift(r)}function Mt(r){wr.unshift(r)}var K=0,de=null;function kt(r){var e;K++,(e=u.monitorRunDependencies)===null||e===void 0||e.call(u,K)}function Ut(r){var e;if(K--,(e=u.monitorRunDependencies)===null||e===void 0||e.call(u,K),K==0&&de){var t=de;de=null,t()}}function Le(r){var e;(e=u.onAbort)===null||e===void 0||e.call(u,r),r="Aborted("+r+")",ne(r),_r=!0,r+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(r);throw b(t),t}var jt="data:application/octet-stream;base64,",Tr=r=>r.startsWith(jt),ie;ie="zxing_full.wasm",Tr(ie)||(ie=ce(ie));function Cr(r){if(r==ie&&fe)return new Uint8Array(fe);if(xe)return xe(r);throw"both async and sync fetching of the wasm failed"}function Ht(r){return!fe&&(q||B||J||Q)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(e=>{if(!e.ok)throw`failed to load wasm binary file at '${r}'`;return e.arrayBuffer()}).catch(()=>Cr(r)):Promise.resolve().then(()=>Cr(r))}function Pr(r,e,t){return Ht(r).then(n=>WebAssembly.instantiate(n,e)).then(t,n=>{ne(`failed to asynchronously prepare wasm: ${n}`),Le(n)})}function Bt(r,e,t,n){return!r&&typeof WebAssembly.instantiateStreaming=="function"&&!Tr(e)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(a=>{var i=WebAssembly.instantiateStreaming(a,t);return i.then(n,function(o){return ne(`wasm streaming compile failed: ${o}`),ne("falling back to ArrayBuffer instantiation"),Pr(e,t,n)})}):Pr(e,t,n)}function Vt(){var r={a:Ia};function e(n,a){return A=n.exports,Ce=A.na,yr(),Wr=A.ra,Wt(A.oa),Ut(),A}kt();function t(n){e(n.instance)}if(u.instantiateWasm)try{return u.instantiateWasm(r,e)}catch(n){ne(`Module.instantiateWasm callback failed with error: ${n}`),b(n)}return Bt(fe,ie,r,t).catch(b),{}}var Ye=r=>{for(;r.length>0;)r.shift()(u)};u.noExitRuntime;var Pe=[],Se=0,xt=r=>{var e=new Ne(r);return e.get_caught()||(e.set_caught(!0),Se--),e.set_rethrown(!1),Pe.push(e),Gr(e.excPtr),e.get_exception_ptr()},z=0,Lt=()=>{w(0,0);var r=Pe.pop();Zr(r.excPtr),z=0};class Ne{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){$[this.ptr+4>>2]=e}get_type(){return $[this.ptr+4>>2]}set_destructor(e){$[this.ptr+8>>2]=e}get_destructor(){return $[this.ptr+8>>2]}set_caught(e){e=e?1:0,V[this.ptr+12]=e}get_caught(){return V[this.ptr+12]!=0}set_rethrown(e){e=e?1:0,V[this.ptr+13]=e}get_rethrown(){return V[this.ptr+13]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){$[this.ptr+16>>2]=e}get_adjusted_ptr(){return $[this.ptr+16>>2]}get_exception_ptr(){var e=Qr(this.get_type());if(e)return $[this.excPtr>>2];var t=this.get_adjusted_ptr();return t!==0?t:this.excPtr}}var Yt=r=>{throw z||(z=r),z},ze=r=>{var e=z;if(!e)return be(0),0;var t=new Ne(e);t.set_adjusted_ptr(e);var n=t.get_type();if(!n)return be(0),e;for(var a in r){var i=r[a];if(i===0||i===n)break;var o=t.ptr+16;if(qr(i,n,o))return be(i),e}return be(n),e},Nt=()=>ze([]),zt=r=>ze([r]),Xt=(r,e)=>ze([r,e]),Zt=()=>{var r=Pe.pop();r||Le("no exception to throw");var e=r.excPtr;throw r.get_rethrown()||(Pe.push(r),r.set_rethrown(!0),r.set_caught(!1),Se++),z=e,z},Gt=(r,e,t)=>{var n=new Ne(r);throw n.init(e,t),z=r,Se++,z},qt=()=>Se,Ae={},Xe=r=>{for(;r.length;){var e=r.pop(),t=r.pop();t(e)}};function he(r){return this.fromWireType($[r>>2])}var oe={},ee={},Ee={},Sr,Fe=r=>{throw new Sr(r)},re=(r,e,t)=>{r.forEach(function(s){Ee[s]=e});function n(s){var l=t(s);l.length!==r.length&&Fe("Mismatched type converter count");for(var f=0;f<r.length;++f)L(r[f],l[f])}var a=new Array(e.length),i=[],o=0;e.forEach((s,l)=>{ee.hasOwnProperty(s)?a[l]=ee[s]:(i.push(s),oe.hasOwnProperty(s)||(oe[s]=[]),oe[s].push(()=>{a[l]=ee[s],++o,o===i.length&&n(a)}))}),i.length===0&&n(a)},Qt=r=>{var e=Ae[r];delete Ae[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,i=a.map(o=>o.getterReturnType).concat(a.map(o=>o.setterArgumentType));re([r],i,o=>{var s={};return a.forEach((l,f)=>{var v=l.fieldName,g=o[f],_=l.getter,m=l.getterContext,E=o[f+a.length],k=l.setter,S=l.setterContext;s[v]={read:D=>g.fromWireType(_(m,D)),write:(D,c)=>{var d=[];k(S,D,E.toWireType(d,c)),Xe(d)}}}),[{name:e.name,fromWireType:l=>{var f={};for(var v in s)f[v]=s[v].read(l);return n(l),f},toWireType:(l,f)=>{for(var v in s)if(!(v in f))throw new TypeError(`Missing field: "${v}"`);var g=t();for(v in s)s[v].write(g,f[v]);return l!==null&&l.push(n,g),g},argPackAdvance:Y,readValueFromPointer:he,destructorFunction:n}]})},Jt=(r,e,t,n,a)=>{},Kt=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Ar=r},Ar,I=r=>{for(var e="",t=r;W[t];)e+=Ar[W[t++]];return e},se,y=r=>{throw new se(r)};function en(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=e.name;if(r||y(`type "${n}" must have a positive integer typeid pointer`),ee.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;y(`Cannot register type '${n}' twice`)}if(ee[r]=e,delete Ee[r],oe.hasOwnProperty(r)){var a=oe[r];delete oe[r],a.forEach(i=>i())}}function L(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return en(r,e,t)}var Y=8,rn=(r,e,t,n)=>{e=I(e),L(r,{name:e,fromWireType:function(a){return!!a},toWireType:function(a,i){return i?t:n},argPackAdvance:Y,readValueFromPointer:function(a){return this.fromWireType(W[a])},destructorFunction:null})},tn=r=>({count:r.count,deleteScheduled:r.deleteScheduled,preservePointerOnDelete:r.preservePointerOnDelete,ptr:r.ptr,ptrType:r.ptrType,smartPtr:r.smartPtr,smartPtrType:r.smartPtrType}),Ze=r=>{function e(t){return t.$$.ptrType.registeredClass.name}y(e(r)+" instance already deleted")},Ge=!1,Er=r=>{},nn=r=>{r.smartPtr?r.smartPtrType.rawDestructor(r.smartPtr):r.ptrType.registeredClass.rawDestructor(r.ptr)},Fr=r=>{r.count.value-=1;var e=r.count.value===0;e&&nn(r)},Rr=(r,e,t)=>{if(e===t)return r;if(t.baseClass===void 0)return null;var n=Rr(r,e,t.baseClass);return n===null?null:t.downcast(n)},Or={},an=()=>Object.keys(ge).length,on=()=>{var r=[];for(var e in ge)ge.hasOwnProperty(e)&&r.push(ge[e]);return r},pe=[],qe=()=>{for(;pe.length;){var r=pe.pop();r.$$.deleteScheduled=!1,r.delete()}},_e,sn=r=>{_e=r,pe.length&&_e&&_e(qe)},un=()=>{u.getInheritedInstanceCount=an,u.getLiveInheritedInstances=on,u.flushPendingDeletes=qe,u.setDelayFunction=sn},ge={},ln=(r,e)=>{for(e===void 0&&y("ptr should not be undefined");r.baseClass;)e=r.upcast(e),r=r.baseClass;return e},cn=(r,e)=>(e=ln(r,e),ge[e]),Re=(r,e)=>{(!e.ptrType||!e.ptr)&&Fe("makeClassHandle requires ptr and ptrType");var t=!!e.smartPtrType,n=!!e.smartPtr;return t!==n&&Fe("Both smartPtrType and smartPtr must be specified"),e.count={value:1},me(Object.create(r,{$$:{value:e,writable:!0}}))};function fn(r){var e=this.getPointee(r);if(!e)return this.destructor(r),null;var t=cn(this.registeredClass,e);if(t!==void 0){if(t.$$.count.value===0)return t.$$.ptr=e,t.$$.smartPtr=r,t.clone();var n=t.clone();return this.destructor(r),n}function a(){return this.isSmartPointer?Re(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:r}):Re(this.registeredClass.instancePrototype,{ptrType:this,ptr:r})}var i=this.registeredClass.getActualType(e),o=Or[i];if(!o)return a.call(this);var s;this.isConst?s=o.constPointerType:s=o.pointerType;var l=Rr(e,this.registeredClass,s.registeredClass);return l===null?a.call(this):this.isSmartPointer?Re(s.registeredClass.instancePrototype,{ptrType:s,ptr:l,smartPtrType:this,smartPtr:r}):Re(s.registeredClass.instancePrototype,{ptrType:s,ptr:l})}var me=r=>typeof FinalizationRegistry>"u"?(me=e=>e,r):(Ge=new FinalizationRegistry(e=>{Fr(e.$$)}),me=e=>{var t=e.$$,n=!!t.smartPtr;if(n){var a={$$:t};Ge.register(e,a,e)}return e},Er=e=>Ge.unregister(e),me(r)),vn=()=>{Object.assign(Oe.prototype,{isAliasOf(r){if(!(this instanceof Oe)||!(r instanceof Oe))return!1;var e=this.$$.ptrType.registeredClass,t=this.$$.ptr;r.$$=r.$$;for(var n=r.$$.ptrType.registeredClass,a=r.$$.ptr;e.baseClass;)t=e.upcast(t),e=e.baseClass;for(;n.baseClass;)a=n.upcast(a),n=n.baseClass;return e===n&&t===a},clone(){if(this.$$.ptr||Ze(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var r=me(Object.create(Object.getPrototypeOf(this),{$$:{value:tn(this.$$)}}));return r.$$.count.value+=1,r.$$.deleteScheduled=!1,r},delete(){this.$$.ptr||Ze(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&y("Object already scheduled for deletion"),Er(this),Fr(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Ze(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&y("Object already scheduled for deletion"),pe.push(this),pe.length===1&&_e&&_e(qe),this.$$.deleteScheduled=!0,this}})};function Oe(){}var ye=(r,e)=>Object.defineProperty(e,"name",{value:r}),Dr=(r,e,t)=>{if(r[e].overloadTable===void 0){var n=r[e];r[e]=function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return r[e].overloadTable.hasOwnProperty(i.length)||y(`Function '${t}' called with an invalid number of arguments (${i.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[i.length].apply(this,i)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},Qe=(r,e,t)=>{u.hasOwnProperty(r)?((t===void 0||u[r].overloadTable!==void 0&&u[r].overloadTable[t]!==void 0)&&y(`Cannot register public name '${r}' twice`),Dr(u,r,r),u.hasOwnProperty(t)&&y(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),u[r].overloadTable[t]=e):(u[r]=e,t!==void 0&&(u[r].numArguments=t))},dn=48,hn=57,pn=r=>{if(r===void 0)return"_unknown";r=r.replace(/[^a-zA-Z0-9_]/g,"$");var e=r.charCodeAt(0);return e>=dn&&e<=hn?`_${r}`:r};function _n(r,e,t,n,a,i,o,s){this.name=r,this.constructor=e,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=a,this.getActualType=i,this.upcast=o,this.downcast=s,this.pureVirtualFunctions=[]}var Je=(r,e,t)=>{for(;e!==t;)e.upcast||y(`Expected null or instance of ${t.name}, got an instance of ${e.name}`),r=e.upcast(r),e=e.baseClass;return r};function gn(r,e){if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),0;e.$$||y(`Cannot pass "${ar(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Je(e.$$.ptr,t,this.registeredClass);return n}function mn(r,e){var t;if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),r!==null&&r.push(this.rawDestructor,t),t):0;(!e||!e.$$)&&y(`Cannot pass "${ar(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&e.$$.ptrType.isConst&&y(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);var n=e.$$.ptrType.registeredClass;if(t=Je(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(e.$$.smartPtr===void 0&&y("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?t=e.$$.smartPtr:y(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)t=e.$$.smartPtr;else{var a=e.clone();t=this.rawShare(t,Z.toHandle(()=>a.delete())),r!==null&&r.push(this.rawDestructor,t)}break;default:y("Unsupporting sharing policy")}return t}function yn(r,e){if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),0;e.$$||y(`Cannot pass "${ar(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`),e.$$.ptrType.isConst&&y(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Je(e.$$.ptr,t,this.registeredClass);return n}var $n=()=>{Object.assign(De.prototype,{getPointee(r){return this.rawGetPointee&&(r=this.rawGetPointee(r)),r},destructor(r){var e;(e=this.rawDestructor)===null||e===void 0||e.call(this,r)},argPackAdvance:Y,readValueFromPointer:he,fromWireType:fn})};function De(r,e,t,n,a,i,o,s,l,f,v){this.name=r,this.registeredClass=e,this.isReference=t,this.isConst=n,this.isSmartPointer=a,this.pointeeType=i,this.sharingPolicy=o,this.rawGetPointee=s,this.rawConstructor=l,this.rawShare=f,this.rawDestructor=v,!a&&e.baseClass===void 0?n?(this.toWireType=gn,this.destructorFunction=null):(this.toWireType=yn,this.destructorFunction=null):this.toWireType=mn}var Ir=(r,e,t)=>{u.hasOwnProperty(r)||Fe("Replacing nonexistent public symbol"),u[r].overloadTable!==void 0&&t!==void 0?u[r].overloadTable[t]=e:(u[r]=e,u[r].argCount=t)},bn=(r,e,t)=>{var n=u["dynCall_"+r];return n(e,...t)},Ie=[],Wr,T=r=>{var e=Ie[r];return e||(r>=Ie.length&&(Ie.length=r+1),Ie[r]=e=Wr.get(r)),e},wn=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.includes("j"))return bn(r,e,t);var n=T(e)(...t);return n},Tn=(r,e)=>function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return wn(r,e,n)},x=(r,e)=>{r=I(r);function t(){return r.includes("j")?Tn(r,e):T(e)}var n=t();return typeof n!="function"&&y(`unknown function pointer with signature ${r}: ${e}`),n},Cn=(r,e)=>{var t=ye(e,function(n){this.name=e,this.message=n;var a=new Error(n).stack;a!==void 0&&(this.stack=this.toString()+` | ||
var ZXingWASM=function(R){"use strict";const Be=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"];function at(h){return h.join("|")}function it(h){const p=lr(h);let u=0,U=Be.length-1;for(;u<=U;){const b=Math.floor((u+U)/2),j=Be[b],N=lr(j);if(N===p)return j;N<p?u=b+1:U=b-1}return"None"}function lr(h){return h.toLowerCase().replace(/_-\[\]/g,"")}const ot=["LocalAverage","GlobalHistogram","FixedThreshold","BoolCast"];function st(h,p){return h.Binarizer[p]}const ut=["Unknown","ASCII","ISO8859_1","ISO8859_2","ISO8859_3","ISO8859_4","ISO8859_5","ISO8859_6","ISO8859_7","ISO8859_8","ISO8859_9","ISO8859_10","ISO8859_11","ISO8859_13","ISO8859_14","ISO8859_15","ISO8859_16","Cp437","Cp1250","Cp1251","Cp1252","Cp1256","Shift_JIS","Big5","GB2312","GB18030","EUC_JP","EUC_KR","UTF16BE","UTF8","UTF16LE","UTF32BE","UTF32LE","BINARY"];function cr(h,p){return h.CharacterSet[p]}const fr=["Text","Binary","Mixed","GS1","ISO15434","UnknownECI"];function lt(h){return fr[h.value]}const ct=["Ignore","Read","Require"];function ft(h,p){return h.EanAddOnSymbol[p]}const vt=["Plain","ECI","HRI","Hex","Escaped"];function dt(h,p){return h.TextMode[p]}const te={formats:[],tryHarder:!0,tryRotate:!0,tryInvert:!0,tryDownscale:!0,binarizer:"LocalAverage",isPure:!1,downscaleFactor:3,downscaleThreshold:500,minLineCount:2,maxNumberOfSymbols:255,tryCode39ExtendedMode:!1,validateCode39CheckSum:!1,validateITFCheckSum:!1,returnCodabarStartEnd:!1,returnErrors:!1,eanAddOnSymbol:"Read",textMode:"Plain",characterSet:"Unknown"};function vr(h,p){return{...p,formats:at(p.formats),binarizer:st(h,p.binarizer),eanAddOnSymbol:ft(h,p.eanAddOnSymbol),textMode:dt(h,p.textMode),characterSet:cr(h,p.characterSet)}}const ht=[-1,0,1,2,3,4,5,6,7,8],pt=["L","M","Q","H"],Ve={width:200,height:200,format:"QRCode",characterSet:"UTF8",eccLevel:-1,margin:10};function _t(h,p){return{...p,characterSet:cr(h,p.characterSet)}}function dr(h){return{...h,format:it(h.format),eccLevel:h.eccLevel,contentType:lt(h.contentType)}}function gt(h){const{image:p,error:u}=h;return p?{image:new Blob([new Uint8Array(p)],{type:"image/png"}),error:""}:{image:null,error:u}}const mt={locateFile:(h,p)=>{const u=h.match(/_(.+?)\.wasm$/);return u?`https://fastly.jsdelivr.net/npm/zxing-wasm@1.2.8/dist/${u[1]}/${h}`:p+h}};let we=new WeakMap;function Te(h,p){var j;const u=we.get(h);if(u!=null&&u.modulePromise&&(p===void 0||Object.is(p,u.moduleOverrides)))return u.modulePromise;const U=(j=p!=null?p:u==null?void 0:u.moduleOverrides)!=null?j:mt,b=h({...U});return we.set(h,{moduleOverrides:U,modulePromise:b}),b}function yt(){we=new WeakMap}function $t(h,p){we.set(h,{moduleOverrides:p})}async function bt(h,p,u=te){const U={...te,...u},b=await Te(h),{size:j}=p,N=new Uint8Array(await p.arrayBuffer()),q=b._malloc(j);b.HEAPU8.set(N,q);const J=b.readBarcodesFromImage(q,j,vr(b,U));b._free(q);const Q=[];for(let B=0;B<J.size();++B)Q.push(dr(J.get(B)));return Q}async function wt(h,p,u=te){const U={...te,...u},b=await Te(h),{data:j,width:N,height:q,data:{byteLength:J}}=p,Q=b._malloc(J);b.HEAPU8.set(j,Q);const B=b.readBarcodesFromPixmap(Q,N,q,vr(b,U));b._free(Q);const H=[];for(let ce=0;ce<B.size();++ce)H.push(dr(B.get(ce)));return H}async function Tt(h,p,u=Ve){const U={...Ve,...u},b=await Te(h),j=b.writeBarcodeToImage(p,_t(b,U));return gt(j)}var le=(()=>{var h=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(p={}){var et;var u=p,U,b;u.ready=new Promise((r,e)=>{U=r,b=e});var j=Object.assign({},u),N="./this.program",q=typeof window=="object",J=typeof Bun<"u",Q=typeof((et=globalThis.WebAssembly)==null?void 0:et.instantiate)=="function",B=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&process.versions.node;var H="";function ce(r){return u.locateFile?u.locateFile(r,H):H+r}var xe;(q||B||J)&&(B?H=self.location.href:typeof document<"u"&&document.currentScript&&(H=document.currentScript.src),h&&(H=h),H.startsWith("blob:")?H="":H=H.substr(0,H.replace(/[?#].*/,"").lastIndexOf("/")+1),B&&(xe=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}));var Ft=u.print||console.log.bind(console),ne=u.printErr||console.error.bind(console);Object.assign(u,j),j=null,u.arguments&&u.arguments,u.thisProgram&&(N=u.thisProgram),u.quit&&u.quit;var fe;u.wasmBinary&&(fe=u.wasmBinary);var Ce,_r=!1,V,W,ae,ve,M,$,gr,mr;function yr(){var r=Ce.buffer;u.HEAP8=V=new Int8Array(r),u.HEAP16=ae=new Int16Array(r),u.HEAPU8=W=new Uint8Array(r),u.HEAPU16=ve=new Uint16Array(r),u.HEAP32=M=new Int32Array(r),u.HEAPU32=$=new Uint32Array(r),u.HEAPF32=gr=new Float32Array(r),u.HEAPF64=mr=new Float64Array(r)}var $r=[],br=[],wr=[];function Rt(){if(u.preRun)for(typeof u.preRun=="function"&&(u.preRun=[u.preRun]);u.preRun.length;)It(u.preRun.shift());Ye($r)}function Ot(){Ye(br)}function Dt(){if(u.postRun)for(typeof u.postRun=="function"&&(u.postRun=[u.postRun]);u.postRun.length;)Mt(u.postRun.shift());Ye(wr)}function It(r){$r.unshift(r)}function Wt(r){br.unshift(r)}function Mt(r){wr.unshift(r)}var K=0,de=null;function kt(r){var e;K++,(e=u.monitorRunDependencies)===null||e===void 0||e.call(u,K)}function Ut(r){var e;if(K--,(e=u.monitorRunDependencies)===null||e===void 0||e.call(u,K),K==0&&de){var t=de;de=null,t()}}function Le(r){var e;(e=u.onAbort)===null||e===void 0||e.call(u,r),r="Aborted("+r+")",ne(r),_r=!0,r+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(r);throw b(t),t}var jt="data:application/octet-stream;base64,",Tr=r=>r.startsWith(jt),ie;ie="zxing_full.wasm",Tr(ie)||(ie=ce(ie));function Cr(r){if(r==ie&&fe)return new Uint8Array(fe);if(xe)return xe(r);throw"both async and sync fetching of the wasm failed"}function Ht(r){return!fe&&(q||B||J||Q)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(e=>{if(!e.ok)throw`failed to load wasm binary file at '${r}'`;return e.arrayBuffer()}).catch(()=>Cr(r)):Promise.resolve().then(()=>Cr(r))}function Pr(r,e,t){return Ht(r).then(n=>WebAssembly.instantiate(n,e)).then(t,n=>{ne(`failed to asynchronously prepare wasm: ${n}`),Le(n)})}function Bt(r,e,t,n){return!r&&typeof WebAssembly.instantiateStreaming=="function"&&!Tr(e)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(a=>{var i=WebAssembly.instantiateStreaming(a,t);return i.then(n,function(o){return ne(`wasm streaming compile failed: ${o}`),ne("falling back to ArrayBuffer instantiation"),Pr(e,t,n)})}):Pr(e,t,n)}function Vt(){var r={a:Ia};function e(n,a){return A=n.exports,Ce=A.na,yr(),Wr=A.ra,Wt(A.oa),Ut(),A}kt();function t(n){e(n.instance)}if(u.instantiateWasm)try{return u.instantiateWasm(r,e)}catch(n){ne(`Module.instantiateWasm callback failed with error: ${n}`),b(n)}return Bt(fe,ie,r,t).catch(b),{}}var Ye=r=>{for(;r.length>0;)r.shift()(u)};u.noExitRuntime;var Pe=[],Se=0,xt=r=>{var e=new Ne(r);return e.get_caught()||(e.set_caught(!0),Se--),e.set_rethrown(!1),Pe.push(e),Gr(e.excPtr),e.get_exception_ptr()},z=0,Lt=()=>{w(0,0);var r=Pe.pop();Zr(r.excPtr),z=0};class Ne{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){$[this.ptr+4>>2]=e}get_type(){return $[this.ptr+4>>2]}set_destructor(e){$[this.ptr+8>>2]=e}get_destructor(){return $[this.ptr+8>>2]}set_caught(e){e=e?1:0,V[this.ptr+12]=e}get_caught(){return V[this.ptr+12]!=0}set_rethrown(e){e=e?1:0,V[this.ptr+13]=e}get_rethrown(){return V[this.ptr+13]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){$[this.ptr+16>>2]=e}get_adjusted_ptr(){return $[this.ptr+16>>2]}get_exception_ptr(){var e=Qr(this.get_type());if(e)return $[this.excPtr>>2];var t=this.get_adjusted_ptr();return t!==0?t:this.excPtr}}var Yt=r=>{throw z||(z=r),z},ze=r=>{var e=z;if(!e)return be(0),0;var t=new Ne(e);t.set_adjusted_ptr(e);var n=t.get_type();if(!n)return be(0),e;for(var a in r){var i=r[a];if(i===0||i===n)break;var o=t.ptr+16;if(qr(i,n,o))return be(i),e}return be(n),e},Nt=()=>ze([]),zt=r=>ze([r]),Xt=(r,e)=>ze([r,e]),Zt=()=>{var r=Pe.pop();r||Le("no exception to throw");var e=r.excPtr;throw r.get_rethrown()||(Pe.push(r),r.set_rethrown(!0),r.set_caught(!1),Se++),z=e,z},Gt=(r,e,t)=>{var n=new Ne(r);throw n.init(e,t),z=r,Se++,z},qt=()=>Se,Ae={},Xe=r=>{for(;r.length;){var e=r.pop(),t=r.pop();t(e)}};function he(r){return this.fromWireType($[r>>2])}var oe={},ee={},Ee={},Sr,Fe=r=>{throw new Sr(r)},re=(r,e,t)=>{r.forEach(function(s){Ee[s]=e});function n(s){var l=t(s);l.length!==r.length&&Fe("Mismatched type converter count");for(var f=0;f<r.length;++f)L(r[f],l[f])}var a=new Array(e.length),i=[],o=0;e.forEach((s,l)=>{ee.hasOwnProperty(s)?a[l]=ee[s]:(i.push(s),oe.hasOwnProperty(s)||(oe[s]=[]),oe[s].push(()=>{a[l]=ee[s],++o,o===i.length&&n(a)}))}),i.length===0&&n(a)},Qt=r=>{var e=Ae[r];delete Ae[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,i=a.map(o=>o.getterReturnType).concat(a.map(o=>o.setterArgumentType));re([r],i,o=>{var s={};return a.forEach((l,f)=>{var v=l.fieldName,g=o[f],_=l.getter,m=l.getterContext,E=o[f+a.length],k=l.setter,S=l.setterContext;s[v]={read:D=>g.fromWireType(_(m,D)),write:(D,c)=>{var d=[];k(S,D,E.toWireType(d,c)),Xe(d)}}}),[{name:e.name,fromWireType:l=>{var f={};for(var v in s)f[v]=s[v].read(l);return n(l),f},toWireType:(l,f)=>{for(var v in s)if(!(v in f))throw new TypeError(`Missing field: "${v}"`);var g=t();for(v in s)s[v].write(g,f[v]);return l!==null&&l.push(n,g),g},argPackAdvance:Y,readValueFromPointer:he,destructorFunction:n}]})},Jt=(r,e,t,n,a)=>{},Kt=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Ar=r},Ar,I=r=>{for(var e="",t=r;W[t];)e+=Ar[W[t++]];return e},se,y=r=>{throw new se(r)};function en(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=e.name;if(r||y(`type "${n}" must have a positive integer typeid pointer`),ee.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;y(`Cannot register type '${n}' twice`)}if(ee[r]=e,delete Ee[r],oe.hasOwnProperty(r)){var a=oe[r];delete oe[r],a.forEach(i=>i())}}function L(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return en(r,e,t)}var Y=8,rn=(r,e,t,n)=>{e=I(e),L(r,{name:e,fromWireType:function(a){return!!a},toWireType:function(a,i){return i?t:n},argPackAdvance:Y,readValueFromPointer:function(a){return this.fromWireType(W[a])},destructorFunction:null})},tn=r=>({count:r.count,deleteScheduled:r.deleteScheduled,preservePointerOnDelete:r.preservePointerOnDelete,ptr:r.ptr,ptrType:r.ptrType,smartPtr:r.smartPtr,smartPtrType:r.smartPtrType}),Ze=r=>{function e(t){return t.$$.ptrType.registeredClass.name}y(e(r)+" instance already deleted")},Ge=!1,Er=r=>{},nn=r=>{r.smartPtr?r.smartPtrType.rawDestructor(r.smartPtr):r.ptrType.registeredClass.rawDestructor(r.ptr)},Fr=r=>{r.count.value-=1;var e=r.count.value===0;e&&nn(r)},Rr=(r,e,t)=>{if(e===t)return r;if(t.baseClass===void 0)return null;var n=Rr(r,e,t.baseClass);return n===null?null:t.downcast(n)},Or={},an=()=>Object.keys(ge).length,on=()=>{var r=[];for(var e in ge)ge.hasOwnProperty(e)&&r.push(ge[e]);return r},pe=[],qe=()=>{for(;pe.length;){var r=pe.pop();r.$$.deleteScheduled=!1,r.delete()}},_e,sn=r=>{_e=r,pe.length&&_e&&_e(qe)},un=()=>{u.getInheritedInstanceCount=an,u.getLiveInheritedInstances=on,u.flushPendingDeletes=qe,u.setDelayFunction=sn},ge={},ln=(r,e)=>{for(e===void 0&&y("ptr should not be undefined");r.baseClass;)e=r.upcast(e),r=r.baseClass;return e},cn=(r,e)=>(e=ln(r,e),ge[e]),Re=(r,e)=>{(!e.ptrType||!e.ptr)&&Fe("makeClassHandle requires ptr and ptrType");var t=!!e.smartPtrType,n=!!e.smartPtr;return t!==n&&Fe("Both smartPtrType and smartPtr must be specified"),e.count={value:1},me(Object.create(r,{$$:{value:e,writable:!0}}))};function fn(r){var e=this.getPointee(r);if(!e)return this.destructor(r),null;var t=cn(this.registeredClass,e);if(t!==void 0){if(t.$$.count.value===0)return t.$$.ptr=e,t.$$.smartPtr=r,t.clone();var n=t.clone();return this.destructor(r),n}function a(){return this.isSmartPointer?Re(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:r}):Re(this.registeredClass.instancePrototype,{ptrType:this,ptr:r})}var i=this.registeredClass.getActualType(e),o=Or[i];if(!o)return a.call(this);var s;this.isConst?s=o.constPointerType:s=o.pointerType;var l=Rr(e,this.registeredClass,s.registeredClass);return l===null?a.call(this):this.isSmartPointer?Re(s.registeredClass.instancePrototype,{ptrType:s,ptr:l,smartPtrType:this,smartPtr:r}):Re(s.registeredClass.instancePrototype,{ptrType:s,ptr:l})}var me=r=>typeof FinalizationRegistry>"u"?(me=e=>e,r):(Ge=new FinalizationRegistry(e=>{Fr(e.$$)}),me=e=>{var t=e.$$,n=!!t.smartPtr;if(n){var a={$$:t};Ge.register(e,a,e)}return e},Er=e=>Ge.unregister(e),me(r)),vn=()=>{Object.assign(Oe.prototype,{isAliasOf(r){if(!(this instanceof Oe)||!(r instanceof Oe))return!1;var e=this.$$.ptrType.registeredClass,t=this.$$.ptr;r.$$=r.$$;for(var n=r.$$.ptrType.registeredClass,a=r.$$.ptr;e.baseClass;)t=e.upcast(t),e=e.baseClass;for(;n.baseClass;)a=n.upcast(a),n=n.baseClass;return e===n&&t===a},clone(){if(this.$$.ptr||Ze(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var r=me(Object.create(Object.getPrototypeOf(this),{$$:{value:tn(this.$$)}}));return r.$$.count.value+=1,r.$$.deleteScheduled=!1,r},delete(){this.$$.ptr||Ze(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&y("Object already scheduled for deletion"),Er(this),Fr(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Ze(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&y("Object already scheduled for deletion"),pe.push(this),pe.length===1&&_e&&_e(qe),this.$$.deleteScheduled=!0,this}})};function Oe(){}var ye=(r,e)=>Object.defineProperty(e,"name",{value:r}),Dr=(r,e,t)=>{if(r[e].overloadTable===void 0){var n=r[e];r[e]=function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return r[e].overloadTable.hasOwnProperty(i.length)||y(`Function '${t}' called with an invalid number of arguments (${i.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[i.length].apply(this,i)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},Qe=(r,e,t)=>{u.hasOwnProperty(r)?((t===void 0||u[r].overloadTable!==void 0&&u[r].overloadTable[t]!==void 0)&&y(`Cannot register public name '${r}' twice`),Dr(u,r,r),u.hasOwnProperty(t)&&y(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),u[r].overloadTable[t]=e):(u[r]=e,t!==void 0&&(u[r].numArguments=t))},dn=48,hn=57,pn=r=>{if(r===void 0)return"_unknown";r=r.replace(/[^a-zA-Z0-9_]/g,"$");var e=r.charCodeAt(0);return e>=dn&&e<=hn?`_${r}`:r};function _n(r,e,t,n,a,i,o,s){this.name=r,this.constructor=e,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=a,this.getActualType=i,this.upcast=o,this.downcast=s,this.pureVirtualFunctions=[]}var Je=(r,e,t)=>{for(;e!==t;)e.upcast||y(`Expected null or instance of ${t.name}, got an instance of ${e.name}`),r=e.upcast(r),e=e.baseClass;return r};function gn(r,e){if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),0;e.$$||y(`Cannot pass "${ar(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Je(e.$$.ptr,t,this.registeredClass);return n}function mn(r,e){var t;if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),r!==null&&r.push(this.rawDestructor,t),t):0;(!e||!e.$$)&&y(`Cannot pass "${ar(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&e.$$.ptrType.isConst&&y(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);var n=e.$$.ptrType.registeredClass;if(t=Je(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(e.$$.smartPtr===void 0&&y("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?t=e.$$.smartPtr:y(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)t=e.$$.smartPtr;else{var a=e.clone();t=this.rawShare(t,Z.toHandle(()=>a.delete())),r!==null&&r.push(this.rawDestructor,t)}break;default:y("Unsupporting sharing policy")}return t}function yn(r,e){if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),0;e.$$||y(`Cannot pass "${ar(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`),e.$$.ptrType.isConst&&y(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Je(e.$$.ptr,t,this.registeredClass);return n}var $n=()=>{Object.assign(De.prototype,{getPointee(r){return this.rawGetPointee&&(r=this.rawGetPointee(r)),r},destructor(r){var e;(e=this.rawDestructor)===null||e===void 0||e.call(this,r)},argPackAdvance:Y,readValueFromPointer:he,fromWireType:fn})};function De(r,e,t,n,a,i,o,s,l,f,v){this.name=r,this.registeredClass=e,this.isReference=t,this.isConst=n,this.isSmartPointer=a,this.pointeeType=i,this.sharingPolicy=o,this.rawGetPointee=s,this.rawConstructor=l,this.rawShare=f,this.rawDestructor=v,!a&&e.baseClass===void 0?n?(this.toWireType=gn,this.destructorFunction=null):(this.toWireType=yn,this.destructorFunction=null):this.toWireType=mn}var Ir=(r,e,t)=>{u.hasOwnProperty(r)||Fe("Replacing nonexistent public symbol"),u[r].overloadTable!==void 0&&t!==void 0?u[r].overloadTable[t]=e:(u[r]=e,u[r].argCount=t)},bn=(r,e,t)=>{var n=u["dynCall_"+r];return n(e,...t)},Ie=[],Wr,T=r=>{var e=Ie[r];return e||(r>=Ie.length&&(Ie.length=r+1),Ie[r]=e=Wr.get(r)),e},wn=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.includes("j"))return bn(r,e,t);var n=T(e)(...t);return n},Tn=(r,e)=>function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return wn(r,e,n)},x=(r,e)=>{r=I(r);function t(){return r.includes("j")?Tn(r,e):T(e)}var n=t();return typeof n!="function"&&y(`unknown function pointer with signature ${r}: ${e}`),n},Cn=(r,e)=>{var t=ye(e,function(n){this.name=e,this.message=n;var a=new Error(n).stack;a!==void 0&&(this.stack=this.toString()+` | ||
`+a.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},Mr,kr=r=>{var e=Xr(r),t=I(e);return G(e),t},We=(r,e)=>{var t=[],n={};function a(i){if(!n[i]&&!ee[i]){if(Ee[i]){Ee[i].forEach(a);return}t.push(i),n[i]=!0}}throw e.forEach(a),new Mr(`${r}: `+t.map(kr).join([", "]))},Pn=(r,e,t,n,a,i,o,s,l,f,v,g,_)=>{v=I(v),i=x(a,i),s&&(s=x(o,s)),f&&(f=x(l,f)),_=x(g,_);var m=pn(v);Qe(m,function(){We(`Cannot construct ${v} due to unbound types`,[n])}),re([r,e,t],n?[n]:[],E=>{E=E[0];var k,S;n?(k=E.registeredClass,S=k.instancePrototype):S=Oe.prototype;var D=ye(v,function(){if(Object.getPrototypeOf(this)!==c)throw new se("Use 'new' to construct "+v);if(d.constructor_body===void 0)throw new se(v+" has no accessible constructor");for(var tt=arguments.length,je=new Array(tt),He=0;He<tt;He++)je[He]=arguments[He];var nt=d.constructor_body[je.length];if(nt===void 0)throw new se(`Tried to invoke ctor of ${v} with invalid number of parameters (${je.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);return nt.apply(this,je)}),c=Object.create(S,{constructor:{value:D}});D.prototype=c;var d=new _n(v,D,c,_,k,i,s,f);if(d.baseClass){var F,O;(O=(F=d.baseClass).__derivedClasses)!==null&&O!==void 0||(F.__derivedClasses=[]),d.baseClass.__derivedClasses.push(d)}var ue=new De(v,d,!0,!1,!1),Ue=new De(v+"*",d,!1,!1,!1),rt=new De(v+" const*",d,!1,!0,!1);return Or[r]={pointerType:Ue,constPointerType:rt},Ir(m,D),[ue,Ue,rt]})},Ke=(r,e)=>{for(var t=[],n=0;n<r;n++)t.push($[e+n*4>>2]);return t};function Sn(r){for(var e=1;e<r.length;++e)if(r[e]!==null&&r[e].destructorFunction===void 0)return!0;return!1}function er(r,e,t,n,a,i){var o=e.length;o<2&&y("argTypes array size mismatch! Must at least get return value and 'this' types!");var s=e[1]!==null&&t!==null,l=Sn(e),f=e[0].name!=="void",v=o-2,g=new Array(v),_=[],m=[],E=function(){arguments.length!==v&&y(`function ${r} called with ${arguments.length} arguments, expected ${v}`),m.length=0;var k;_.length=s?2:1,_[0]=a,s&&(k=e[1].toWireType(m,this),_[1]=k);for(var S=0;S<v;++S)g[S]=e[S+2].toWireType(m,S<0||arguments.length<=S?void 0:arguments[S]),_.push(g[S]);var D=n(..._);function c(d){if(l)Xe(m);else for(var F=s?1:2;F<e.length;F++){var O=F===1?k:g[F-2];e[F].destructorFunction!==null&&e[F].destructorFunction(O)}if(f)return e[0].fromWireType(d)}return c(D)};return ye(r,E)}var An=(r,e,t,n,a,i)=>{var o=Ke(e,t);a=x(n,a),re([],[r],s=>{s=s[0];var l=`constructor ${s.name}`;if(s.registeredClass.constructor_body===void 0&&(s.registeredClass.constructor_body=[]),s.registeredClass.constructor_body[e-1]!==void 0)throw new se(`Cannot register multiple constructors with identical number of parameters (${e-1}) for class '${s.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return s.registeredClass.constructor_body[e-1]=()=>{We(`Cannot construct ${s.name} due to unbound types`,o)},re([],o,f=>(f.splice(1,0,null),s.registeredClass.constructor_body[e-1]=er(l,f,null,a,i),[])),[]})},Ur=r=>{r=r.trim();const e=r.indexOf("(");return e!==-1?r.substr(0,e):r},En=(r,e,t,n,a,i,o,s,l)=>{var f=Ke(t,n);e=I(e),e=Ur(e),i=x(a,i),re([],[r],v=>{v=v[0];var g=`${v.name}.${e}`;e.startsWith("@@")&&(e=Symbol[e.substring(2)]),s&&v.registeredClass.pureVirtualFunctions.push(e);function _(){We(`Cannot call ${g} due to unbound types`,f)}var m=v.registeredClass.instancePrototype,E=m[e];return E===void 0||E.overloadTable===void 0&&E.className!==v.name&&E.argCount===t-2?(_.argCount=t-2,_.className=v.name,m[e]=_):(Dr(m,e,g),m[e].overloadTable[t-2]=_),re([],f,k=>{var S=er(g,k,v,i,o);return m[e].overloadTable===void 0?(S.argCount=t-2,m[e]=S):m[e].overloadTable[t-2]=S,[]}),[]})},rr=[],X=[],tr=r=>{r>9&&--X[r+1]===0&&(X[r]=void 0,rr.push(r))},Fn=()=>X.length/2-5-rr.length,Rn=()=>{X.push(0,1,void 0,1,null,1,!0,1,!1,1),u.count_emval_handles=Fn},Z={toValue:r=>(r||y("Cannot use deleted val. handle = "+r),X[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=rr.pop()||X.length;return X[e]=r,X[e+1]=1,e}}}},On={name:"emscripten::val",fromWireType:r=>{var e=Z.toValue(r);return tr(r),e},toWireType:(r,e)=>Z.toHandle(e),argPackAdvance:Y,readValueFromPointer:he,destructorFunction:null},jr=r=>L(r,On),Dn=(r,e,t)=>{switch(e){case 1:return t?function(n){return this.fromWireType(V[n])}:function(n){return this.fromWireType(W[n])};case 2:return t?function(n){return this.fromWireType(ae[n>>1])}:function(n){return this.fromWireType(ve[n>>1])};case 4:return t?function(n){return this.fromWireType(M[n>>2])}:function(n){return this.fromWireType($[n>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},In=(r,e,t,n)=>{e=I(e);function a(){}a.values={},L(r,{name:e,constructor:a,fromWireType:function(i){return this.constructor.values[i]},toWireType:(i,o)=>o.value,argPackAdvance:Y,readValueFromPointer:Dn(e,t,n),destructorFunction:null}),Qe(e,a)},nr=(r,e)=>{var t=ee[r];return t===void 0&&y(`${e} has unknown type ${kr(r)}`),t},Wn=(r,e,t)=>{var n=nr(r,"enum");e=I(e);var a=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:ye(`${n.name}_${e}`,function(){})}});a.values[t]=i,a[e]=i},ar=r=>{if(r===null)return"null";var e=typeof r;return e==="object"||e==="array"||e==="function"?r.toString():""+r},Mn=(r,e)=>{switch(e){case 4:return function(t){return this.fromWireType(gr[t>>2])};case 8:return function(t){return this.fromWireType(mr[t>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},kn=(r,e,t)=>{e=I(e),L(r,{name:e,fromWireType:n=>n,toWireType:(n,a)=>a,argPackAdvance:Y,readValueFromPointer:Mn(e,t),destructorFunction:null})},Un=(r,e,t,n,a,i,o)=>{var s=Ke(e,t);r=I(r),r=Ur(r),a=x(n,a),Qe(r,function(){We(`Cannot call ${r} due to unbound types`,s)},e-1),re([],s,l=>{var f=[l[0],null].concat(l.slice(1));return Ir(r,er(r,f,null,a,i),e-1),[]})},jn=(r,e,t)=>{switch(e){case 1:return t?n=>V[n]:n=>W[n];case 2:return t?n=>ae[n>>1]:n=>ve[n>>1];case 4:return t?n=>M[n>>2]:n=>$[n>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Hn=(r,e,t,n,a)=>{e=I(e);var i=v=>v;if(n===0){var o=32-8*t;i=v=>v<<o>>>o}var s=e.includes("unsigned"),l=(v,g)=>{},f;s?f=function(v,g){return l(g,this.name),g>>>0}:f=function(v,g){return l(g,this.name),g},L(r,{name:e,fromWireType:i,toWireType:f,argPackAdvance:Y,readValueFromPointer:jn(e,t,n!==0),destructorFunction:null})},Bn=(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],a=n[e];function i(o){var s=$[o>>2],l=$[o+4>>2];return new a(V.buffer,l,s)}t=I(t),L(r,{name:t,fromWireType:i,argPackAdvance:Y,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},Vn=(r,e)=>{jr(r)},Hr=(r,e,t,n)=>{if(!(n>0))return 0;for(var a=t,i=t+n-1,o=0;o<r.length;++o){var s=r.charCodeAt(o);if(s>=55296&&s<=57343){var l=r.charCodeAt(++o);s=65536+((s&1023)<<10)|l&1023}if(s<=127){if(t>=i)break;e[t++]=s}else if(s<=2047){if(t+1>=i)break;e[t++]=192|s>>6,e[t++]=128|s&63}else if(s<=65535){if(t+2>=i)break;e[t++]=224|s>>12,e[t++]=128|s>>6&63,e[t++]=128|s&63}else{if(t+3>=i)break;e[t++]=240|s>>18,e[t++]=128|s>>12&63,e[t++]=128|s>>6&63,e[t++]=128|s&63}}return e[t]=0,t-a},xn=(r,e,t)=>Hr(r,W,e,t),Br=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},Vr=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,xr=(r,e,t)=>{for(var n=e+t,a=e;r[a]&&!(a>=n);)++a;if(a-e>16&&r.buffer&&Vr)return Vr.decode(r.subarray(e,a));for(var i="";e<a;){var o=r[e++];if(!(o&128)){i+=String.fromCharCode(o);continue}var s=r[e++]&63;if((o&224)==192){i+=String.fromCharCode((o&31)<<6|s);continue}var l=r[e++]&63;if((o&240)==224?o=(o&15)<<12|s<<6|l:o=(o&7)<<18|s<<12|l<<6|r[e++]&63,o<65536)i+=String.fromCharCode(o);else{var f=o-65536;i+=String.fromCharCode(55296|f>>10,56320|f&1023)}}return i},ir=(r,e)=>r?xr(W,r,e):"",Ln=(r,e)=>{e=I(e);var t=e==="std::string";L(r,{name:e,fromWireType(n){var a=$[n>>2],i=n+4,o;if(t)for(var s=i,l=0;l<=a;++l){var f=i+l;if(l==a||W[f]==0){var v=f-s,g=ir(s,v);o===void 0?o=g:(o+="\0",o+=g),s=f+1}}else{for(var _=new Array(a),l=0;l<a;++l)_[l]=String.fromCharCode(W[i+l]);o=_.join("")}return G(n),o},toWireType(n,a){a instanceof ArrayBuffer&&(a=new Uint8Array(a));var i,o=typeof a=="string";o||a instanceof Uint8Array||a instanceof Uint8ClampedArray||a instanceof Int8Array||y("Cannot pass non-string to std::string"),t&&o?i=Br(a):i=a.length;var s=ur(4+i+1),l=s+4;if($[s>>2]=i,t&&o)xn(a,l,i+1);else if(o)for(var f=0;f<i;++f){var v=a.charCodeAt(f);v>255&&(G(l),y("String has UTF-16 code units that do not fit in 8 bits")),W[l+f]=v}else for(var f=0;f<i;++f)W[l+f]=a[f];return n!==null&&n.push(G,s),s},argPackAdvance:Y,readValueFromPointer:he,destructorFunction(n){G(n)}})},Lr=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,Yn=(r,e)=>{for(var t=r,n=t>>1,a=n+e/2;!(n>=a)&&ve[n];)++n;if(t=n<<1,t-r>32&&Lr)return Lr.decode(W.subarray(r,t));for(var i="",o=0;!(o>=e/2);++o){var s=ae[r+o*2>>1];if(s==0)break;i+=String.fromCharCode(s)}return i},Nn=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<2)return 0;t-=2;for(var a=e,i=t<r.length*2?t/2:r.length,o=0;o<i;++o){var s=r.charCodeAt(o);ae[e>>1]=s,e+=2}return ae[e>>1]=0,e-a},zn=r=>r.length*2,Xn=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var a=M[r+t*4>>2];if(a==0)break;if(++t,a>=65536){var i=a-65536;n+=String.fromCharCode(55296|i>>10,56320|i&1023)}else n+=String.fromCharCode(a)}return n},Zn=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<4)return 0;for(var a=e,i=a+t-4,o=0;o<r.length;++o){var s=r.charCodeAt(o);if(s>=55296&&s<=57343){var l=r.charCodeAt(++o);s=65536+((s&1023)<<10)|l&1023}if(M[e>>2]=s,e+=4,e+4>i)break}return M[e>>2]=0,e-a},Gn=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&++t,e+=4}return e},qn=(r,e,t)=>{t=I(t);var n,a,i,o;e===2?(n=Yn,a=Nn,o=zn,i=s=>ve[s>>1]):e===4&&(n=Xn,a=Zn,o=Gn,i=s=>$[s>>2]),L(r,{name:t,fromWireType:s=>{for(var l=$[s>>2],f,v=s+4,g=0;g<=l;++g){var _=s+4+g*e;if(g==l||i(_)==0){var m=_-v,E=n(v,m);f===void 0?f=E:(f+="\0",f+=E),v=_+e}}return G(s),f},toWireType:(s,l)=>{typeof l!="string"&&y(`Cannot pass non-string to C++ string type ${t}`);var f=o(l),v=ur(4+f+e);return $[v>>2]=f/e,a(l,v+4,f+e),s!==null&&s.push(G,v),v},argPackAdvance:Y,readValueFromPointer:he,destructorFunction(s){G(s)}})},Qn=(r,e,t,n,a,i)=>{Ae[r]={name:I(e),rawConstructor:x(t,n),rawDestructor:x(a,i),fields:[]}},Jn=(r,e,t,n,a,i,o,s,l,f)=>{Ae[r].fields.push({fieldName:I(e),getterReturnType:t,getter:x(n,a),getterContext:i,setterArgumentType:o,setter:x(s,l),setterContext:f})},Kn=(r,e)=>{e=I(e),L(r,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},or=[],ea=(r,e,t,n)=>(r=or[r],e=Z.toValue(e),r(null,e,t,n)),ra={},ta=r=>{var e=ra[r];return e===void 0?I(r):e},Yr=()=>{if(typeof globalThis=="object")return globalThis;function r(e){e.$$$embind_global$$$=e;var t=typeof $$$embind_global$$$=="object"&&e.$$$embind_global$$$==e;return t||delete e.$$$embind_global$$$,t}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&r(global)?$$$embind_global$$$=global:typeof self=="object"&&r(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},na=r=>r===0?Z.toHandle(Yr()):(r=ta(r),Z.toHandle(Yr()[r])),aa=r=>{var e=or.length;return or.push(r),e},ia=(r,e)=>{for(var t=new Array(r),n=0;n<r;++n)t[n]=nr($[e+n*4>>2],"parameter "+n);return t},oa=Reflect.construct,sa=(r,e,t)=>{var n=[],a=r.toWireType(n,t);return n.length&&($[e>>2]=Z.toHandle(n)),a},ua=(r,e,t)=>{var n=ia(r,e),a=n.shift();r--;var i=new Array(r),o=(l,f,v,g)=>{for(var _=0,m=0;m<r;++m)i[m]=n[m].readValueFromPointer(g+_),_+=n[m].argPackAdvance;var E=t===1?oa(f,i):f.apply(l,i);return sa(a,v,E)},s=`methodCaller<(${n.map(l=>l.name).join(", ")}) => ${a.name}>`;return aa(ye(s,o))},la=r=>{r>9&&(X[r+1]+=1)},ca=r=>{var e=Z.toValue(r);Xe(e),tr(r)},fa=(r,e)=>{r=nr(r,"_emval_take_value");var t=r.readValueFromPointer(e);return Z.toHandle(t)},va=()=>{Le("")},da=(r,e,t)=>W.copyWithin(r,e,e+t),ha=()=>2147483648,pa=r=>{var e=Ce.buffer,t=(r-e.byteLength+65535)/65536;try{return Ce.grow(t),yr(),1}catch{}},_a=r=>{var e=W.length;r>>>=0;var t=ha();if(r>t)return!1;for(var n=(l,f)=>l+(f-l%f)%f,a=1;a<=4;a*=2){var i=e*(1+.2/a);i=Math.min(i,r+100663296);var o=Math.min(t,n(Math.max(r,i),65536)),s=pa(o);if(s)return!0}return!1},sr={},ga=()=>N||"./this.program",$e=()=>{if(!$e.strings){var r=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:r,_:ga()};for(var t in sr)sr[t]===void 0?delete e[t]:e[t]=sr[t];var n=[];for(var t in e)n.push(`${t}=${e[t]}`);$e.strings=n}return $e.strings},ma=(r,e)=>{for(var t=0;t<r.length;++t)V[e++]=r.charCodeAt(t);V[e]=0},ya=(r,e)=>{var t=0;return $e().forEach((n,a)=>{var i=e+t;$[r+a*4>>2]=i,ma(n,i),t+=n.length+1}),0},$a=(r,e)=>{var t=$e();$[r>>2]=t.length;var n=0;return t.forEach(a=>n+=a.length+1),$[e>>2]=n,0},ba=r=>52;function wa(r,e,t,n,a){return 70}var Ta=[null,[],[]],Ca=(r,e)=>{var t=Ta[r];e===0||e===10?((r===1?Ft:ne)(xr(t,0)),t.length=0):t.push(e)},Pa=(r,e,t,n)=>{for(var a=0,i=0;i<t;i++){var o=$[e>>2],s=$[e+4>>2];e+=8;for(var l=0;l<s;l++)Ca(r,W[o+l]);a+=s}return $[n>>2]=a,0},Sa=r=>r,Me=r=>r%4===0&&(r%100!==0||r%400===0),Aa=(r,e)=>{for(var t=0,n=0;n<=e;t+=r[n++]);return t},Nr=[31,29,31,30,31,30,31,31,30,31,30,31],zr=[31,28,31,30,31,30,31,31,30,31,30,31],Ea=(r,e)=>{for(var t=new Date(r.getTime());e>0;){var n=Me(t.getFullYear()),a=t.getMonth(),i=(n?Nr:zr)[a];if(e>i-t.getDate())e-=i-t.getDate()+1,t.setDate(1),a<11?t.setMonth(a+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1));else return t.setDate(t.getDate()+e),t}return t};function Fa(r,e,t){var n=t>0?t:Br(r)+1,a=new Array(n),i=Hr(r,a,0,a.length);return e&&(a.length=i),a}var Ra=(r,e)=>{V.set(r,e)},Oa=(r,e,t,n)=>{var a=$[n+40>>2],i={tm_sec:M[n>>2],tm_min:M[n+4>>2],tm_hour:M[n+8>>2],tm_mday:M[n+12>>2],tm_mon:M[n+16>>2],tm_year:M[n+20>>2],tm_wday:M[n+24>>2],tm_yday:M[n+28>>2],tm_isdst:M[n+32>>2],tm_gmtoff:M[n+36>>2],tm_zone:a?ir(a):""},o=ir(t),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var l in s)o=o.replace(new RegExp(l,"g"),s[l]);var f=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],v=["January","February","March","April","May","June","July","August","September","October","November","December"];function g(c,d,F){for(var O=typeof c=="number"?c.toString():c||"";O.length<d;)O=F[0]+O;return O}function _(c,d){return g(c,d,"0")}function m(c,d){function F(ue){return ue<0?-1:ue>0?1:0}var O;return(O=F(c.getFullYear()-d.getFullYear()))===0&&(O=F(c.getMonth()-d.getMonth()))===0&&(O=F(c.getDate()-d.getDate())),O}function E(c){switch(c.getDay()){case 0:return new Date(c.getFullYear()-1,11,29);case 1:return c;case 2:return new Date(c.getFullYear(),0,3);case 3:return new Date(c.getFullYear(),0,2);case 4:return new Date(c.getFullYear(),0,1);case 5:return new Date(c.getFullYear()-1,11,31);case 6:return new Date(c.getFullYear()-1,11,30)}}function k(c){var d=Ea(new Date(c.tm_year+1900,0,1),c.tm_yday),F=new Date(d.getFullYear(),0,4),O=new Date(d.getFullYear()+1,0,4),ue=E(F),Ue=E(O);return m(ue,d)<=0?m(Ue,d)<=0?d.getFullYear()+1:d.getFullYear():d.getFullYear()-1}var S={"%a":c=>f[c.tm_wday].substring(0,3),"%A":c=>f[c.tm_wday],"%b":c=>v[c.tm_mon].substring(0,3),"%B":c=>v[c.tm_mon],"%C":c=>{var d=c.tm_year+1900;return _(d/100|0,2)},"%d":c=>_(c.tm_mday,2),"%e":c=>g(c.tm_mday,2," "),"%g":c=>k(c).toString().substring(2),"%G":k,"%H":c=>_(c.tm_hour,2),"%I":c=>{var d=c.tm_hour;return d==0?d=12:d>12&&(d-=12),_(d,2)},"%j":c=>_(c.tm_mday+Aa(Me(c.tm_year+1900)?Nr:zr,c.tm_mon-1),3),"%m":c=>_(c.tm_mon+1,2),"%M":c=>_(c.tm_min,2),"%n":()=>` | ||
`,"%p":c=>c.tm_hour>=0&&c.tm_hour<12?"AM":"PM","%S":c=>_(c.tm_sec,2),"%t":()=>" ","%u":c=>c.tm_wday||7,"%U":c=>{var d=c.tm_yday+7-c.tm_wday;return _(Math.floor(d/7),2)},"%V":c=>{var d=Math.floor((c.tm_yday+7-(c.tm_wday+6)%7)/7);if((c.tm_wday+371-c.tm_yday-2)%7<=2&&d++,d){if(d==53){var O=(c.tm_wday+371-c.tm_yday)%7;O!=4&&(O!=3||!Me(c.tm_year))&&(d=1)}}else{d=52;var F=(c.tm_wday+7-c.tm_yday-1)%7;(F==4||F==5&&Me(c.tm_year%400-1))&&d++}return _(d,2)},"%w":c=>c.tm_wday,"%W":c=>{var d=c.tm_yday+7-(c.tm_wday+6)%7;return _(Math.floor(d/7),2)},"%y":c=>(c.tm_year+1900).toString().substring(2),"%Y":c=>c.tm_year+1900,"%z":c=>{var d=c.tm_gmtoff,F=d>=0;return d=Math.abs(d)/60,d=d/60*100+d%60,(F?"+":"-")+("0000"+d).slice(-4)},"%Z":c=>c.tm_zone,"%%":()=>"%"};o=o.replace(/%%/g,"\0\0");for(var l in S)o.includes(l)&&(o=o.replace(new RegExp(l,"g"),S[l](i)));o=o.replace(/\0\0/g,"%");var D=Fa(o,!1);return D.length>e?0:(Ra(D,r),D.length-1)},Da=(r,e,t,n,a)=>Oa(r,e,t,n);Sr=u.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},Kt(),se=u.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},vn(),un(),$n(),Mr=u.UnboundTypeError=Cn(Error,"UnboundTypeError"),Rn();var Ia={s:xt,t:Lt,b:Nt,g:zt,m:Xt,L:Zt,f:Gt,_:qt,d:Yt,ja:Qt,W:Jt,da:rn,ha:Pn,ga:An,x:En,ca:jr,y:In,j:Wn,P:kn,E:Un,u:Hn,p:Bn,ia:Vn,N:Ln,D:qn,w:Qn,ka:Jn,ea:Kn,G:ea,ma:tr,S:na,O:ua,Q:la,T:ca,fa,C:va,ba:da,$:_a,Y:ya,Z:$a,aa:ba,V:wa,M:Pa,H:qa,B:ja,I:Ga,o:Qa,a:Wa,e:Ba,q:Ua,k:Za,K:za,v:Na,J:Xa,A:Ka,U:ri,l:Va,i:Ha,c:ka,n:Ma,F:La,la:xa,r:Ja,h:Ya,z:ei,R:Sa,X:Da},A=Vt(),G=u._free=r=>(G=u._free=A.pa)(r),ur=u._malloc=r=>(ur=u._malloc=A.qa)(r),Xr=r=>(Xr=A.sa)(r),w=(r,e)=>(w=A.ta)(r,e),be=r=>(be=A.ua)(r),C=()=>(C=A.va)(),P=r=>(P=A.wa)(r),Zr=r=>(Zr=A.xa)(r),Gr=r=>(Gr=A.ya)(r),qr=(r,e,t)=>(qr=A.za)(r,e,t),Qr=r=>(Qr=A.Aa)(r);u.dynCall_viijii=(r,e,t,n,a,i,o)=>(u.dynCall_viijii=A.Ba)(r,e,t,n,a,i,o),u.dynCall_jiji=(r,e,t,n,a)=>(u.dynCall_jiji=A.Ca)(r,e,t,n,a);var Jr=u.dynCall_jiiii=(r,e,t,n,a)=>(Jr=u.dynCall_jiiii=A.Da)(r,e,t,n,a);u.dynCall_iiiiij=(r,e,t,n,a,i,o)=>(u.dynCall_iiiiij=A.Ea)(r,e,t,n,a,i,o),u.dynCall_iiiiijj=(r,e,t,n,a,i,o,s,l)=>(u.dynCall_iiiiijj=A.Fa)(r,e,t,n,a,i,o,s,l),u.dynCall_iiiiiijj=(r,e,t,n,a,i,o,s,l,f)=>(u.dynCall_iiiiiijj=A.Ga)(r,e,t,n,a,i,o,s,l,f);function Wa(r,e){var t=C();try{return T(r)(e)}catch(n){if(P(t),n!==n+0)throw n;w(1,0)}}function Ma(r,e,t,n){var a=C();try{T(r)(e,t,n)}catch(i){if(P(a),i!==i+0)throw i;w(1,0)}}function ka(r,e,t){var n=C();try{T(r)(e,t)}catch(a){if(P(n),a!==a+0)throw a;w(1,0)}}function Ua(r,e,t,n){var a=C();try{return T(r)(e,t,n)}catch(i){if(P(a),i!==i+0)throw i;w(1,0)}}function ja(r,e,t,n,a){var i=C();try{return T(r)(e,t,n,a)}catch(o){if(P(i),o!==o+0)throw o;w(1,0)}}function Ha(r,e){var t=C();try{T(r)(e)}catch(n){if(P(t),n!==n+0)throw n;w(1,0)}}function Ba(r,e,t){var n=C();try{return T(r)(e,t)}catch(a){if(P(n),a!==a+0)throw a;w(1,0)}}function Va(r){var e=C();try{T(r)()}catch(t){if(P(e),t!==t+0)throw t;w(1,0)}}function xa(r,e,t,n,a,i){var o=C();try{T(r)(e,t,n,a,i)}catch(s){if(P(o),s!==s+0)throw s;w(1,0)}}function La(r,e,t,n,a){var i=C();try{T(r)(e,t,n,a)}catch(o){if(P(i),o!==o+0)throw o;w(1,0)}}function Ya(r,e,t,n,a,i,o,s,l,f,v){var g=C();try{T(r)(e,t,n,a,i,o,s,l,f,v)}catch(_){if(P(g),_!==_+0)throw _;w(1,0)}}function Na(r,e,t,n,a,i,o){var s=C();try{return T(r)(e,t,n,a,i,o)}catch(l){if(P(s),l!==l+0)throw l;w(1,0)}}function za(r,e,t,n,a,i){var o=C();try{return T(r)(e,t,n,a,i)}catch(s){if(P(o),s!==s+0)throw s;w(1,0)}}function Xa(r,e,t,n,a,i,o,s){var l=C();try{return T(r)(e,t,n,a,i,o,s)}catch(f){if(P(l),f!==f+0)throw f;w(1,0)}}function Za(r,e,t,n,a){var i=C();try{return T(r)(e,t,n,a)}catch(o){if(P(i),o!==o+0)throw o;w(1,0)}}function Ga(r,e,t,n){var a=C();try{return T(r)(e,t,n)}catch(i){if(P(a),i!==i+0)throw i;w(1,0)}}function qa(r,e,t,n){var a=C();try{return T(r)(e,t,n)}catch(i){if(P(a),i!==i+0)throw i;w(1,0)}}function Qa(r){var e=C();try{return T(r)()}catch(t){if(P(e),t!==t+0)throw t;w(1,0)}}function Ja(r,e,t,n,a,i,o,s){var l=C();try{T(r)(e,t,n,a,i,o,s)}catch(f){if(P(l),f!==f+0)throw f;w(1,0)}}function Ka(r,e,t,n,a,i,o,s,l,f,v,g){var _=C();try{return T(r)(e,t,n,a,i,o,s,l,f,v,g)}catch(m){if(P(_),m!==m+0)throw m;w(1,0)}}function ei(r,e,t,n,a,i,o,s,l,f,v,g,_,m,E,k){var S=C();try{T(r)(e,t,n,a,i,o,s,l,f,v,g,_,m,E,k)}catch(D){if(P(S),D!==D+0)throw D;w(1,0)}}function ri(r,e,t,n,a){var i=C();try{return Jr(r,e,t,n,a)}catch(o){if(P(i),o!==o+0)throw o;w(1,0)}}var ke;de=function r(){ke||Kr(),ke||(de=r)};function Kr(){if(K>0||(Rt(),K>0))return;function r(){ke||(ke=!0,u.calledRun=!0,!_r&&(Ot(),U(u),u.onRuntimeInitialized&&u.onRuntimeInitialized(),Dt()))}u.setStatus?(u.setStatus("Running..."),setTimeout(function(){setTimeout(function(){u.setStatus("")},1),r()},1)):r()}if(u.preInit)for(typeof u.preInit=="function"&&(u.preInit=[u.preInit]);u.preInit.length>0;)u.preInit.pop()();return Kr(),p.ready}})();const hr={...te,formats:[...te.formats]},pr={...Ve};function Ct(h){return Te(le,h)}function Pt(h){return $t(le,h)}async function St(h,p){return bt(le,h,p)}async function At(h,p){return wt(le,h,p)}async function Et(h,p){return Tt(le,h,p)}return R.barcodeFormats=Be,R.binarizers=ot,R.characterSets=ut,R.contentTypes=fr,R.defaultDecodeHints=hr,R.defaultEncodeHints=pr,R.defaultReaderOptions=hr,R.defaultWriterOptions=pr,R.eanAddOnSymbols=ct,R.getZXingModule=Ct,R.purgeZXingModule=yt,R.readBarcodesFromImageData=At,R.readBarcodesFromImageFile=St,R.readOutputEccLevels=pt,R.setZXingModuleOverrides=Pt,R.textModes=vt,R.writeBarcodeToImageFile=Et,R.writeInputEccLevels=ht,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"}),R}({}); |
@@ -1,3 +0,3 @@ | ||
var ZXingWASM=function(I){"use strict";const He=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"];function rt(h){return h.join("|")}function tt(h){const g=ur(h);let u=0,U=He.length-1;for(;u<=U;){const b=Math.floor((u+U)/2),j=He[b],L=ur(j);if(L===g)return j;L<g?u=b+1:U=b-1}return"None"}function ur(h){return h.toLowerCase().replace(/_-\[\]/g,"")}const nt=["LocalAverage","GlobalHistogram","FixedThreshold","BoolCast"];function at(h,g){return h.Binarizer[g]}const it=["Unknown","ASCII","ISO8859_1","ISO8859_2","ISO8859_3","ISO8859_4","ISO8859_5","ISO8859_6","ISO8859_7","ISO8859_8","ISO8859_9","ISO8859_10","ISO8859_11","ISO8859_13","ISO8859_14","ISO8859_15","ISO8859_16","Cp437","Cp1250","Cp1251","Cp1252","Cp1256","Shift_JIS","Big5","GB2312","GB18030","EUC_JP","EUC_KR","UTF16BE","UTF8","UTF16LE","UTF32BE","UTF32LE","BINARY"];function ot(h,g){return h.CharacterSet[g]}const lr=["Text","Binary","Mixed","GS1","ISO15434","UnknownECI"];function st(h){return lr[h.value]}const ut=["Ignore","Read","Require"];function lt(h,g){return h.EanAddOnSymbol[g]}const ct=["Plain","ECI","HRI","Hex","Escaped"];function ft(h,g){return h.TextMode[g]}const te={formats:[],tryHarder:!0,tryRotate:!0,tryInvert:!0,tryDownscale:!0,binarizer:"LocalAverage",isPure:!1,downscaleFactor:3,downscaleThreshold:500,minLineCount:2,maxNumberOfSymbols:255,tryCode39ExtendedMode:!1,validateCode39CheckSum:!1,validateITFCheckSum:!1,returnCodabarStartEnd:!1,returnErrors:!1,eanAddOnSymbol:"Read",textMode:"Plain",characterSet:"Unknown"};function cr(h,g){return{...g,formats:rt(g.formats),binarizer:at(h,g.binarizer),eanAddOnSymbol:lt(h,g.eanAddOnSymbol),textMode:ft(h,g.textMode),characterSet:ot(h,g.characterSet)}}const vt=["L","M","Q","H"];function fr(h){return{...h,format:tt(h.format),eccLevel:h.eccLevel,contentType:st(h.contentType)}}const dt={locateFile:(h,g)=>{const u=h.match(/_(.+?)\.wasm$/);return u?`https://fastly.jsdelivr.net/npm/zxing-wasm@1.2.7/dist/${u[1]}/${h}`:g+h}};let be=new WeakMap;function Be(h,g){var j;const u=be.get(h);if(u!=null&&u.modulePromise&&(g===void 0||Object.is(g,u.moduleOverrides)))return u.modulePromise;const U=(j=g!=null?g:u==null?void 0:u.moduleOverrides)!=null?j:dt,b=h({...U});return be.set(h,{moduleOverrides:U,modulePromise:b}),b}function ht(){be=new WeakMap}function pt(h,g){be.set(h,{moduleOverrides:g})}async function _t(h,g,u=te){const U={...te,...u},b=await Be(h),{size:j}=g,L=new Uint8Array(await g.arrayBuffer()),q=b._malloc(j);b.HEAPU8.set(L,q);const Q=b.readBarcodesFromImage(q,j,cr(b,U));b._free(q);const J=[];for(let B=0;B<Q.size();++B)J.push(fr(Q.get(B)));return J}async function gt(h,g,u=te){const U={...te,...u},b=await Be(h),{data:j,width:L,height:q,data:{byteLength:Q}}=g,J=b._malloc(Q);b.HEAPU8.set(j,J);const B=b.readBarcodesFromPixmap(J,L,q,cr(b,U));b._free(J);const H=[];for(let le=0;le<B.size();++le)H.push(fr(B.get(le)));return H}var we=(()=>{var h=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(g={}){var Jr;var u=g,U,b;u.ready=new Promise((r,e)=>{U=r,b=e});var j=Object.assign({},u),L="./this.program",q=typeof window=="object",Q=typeof Bun<"u",J=typeof((Jr=globalThis.WebAssembly)==null?void 0:Jr.instantiate)=="function",B=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&process.versions.node;var H="";function le(r){return u.locateFile?u.locateFile(r,H):H+r}var xe;(q||B||Q)&&(B?H=self.location.href:typeof document<"u"&&document.currentScript&&(H=document.currentScript.src),h&&(H=h),H.startsWith("blob:")?H="":H=H.substr(0,H.replace(/[?#].*/,"").lastIndexOf("/")+1),B&&(xe=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}));var wt=u.print||console.log.bind(console),ne=u.printErr||console.error.bind(console);Object.assign(u,j),j=null,u.arguments&&u.arguments,u.thisProgram&&(L=u.thisProgram),u.quit&&u.quit;var ce;u.wasmBinary&&(ce=u.wasmBinary);var Te,dr=!1,x,W,ae,fe,M,$,hr,pr;function _r(){var r=Te.buffer;u.HEAP8=x=new Int8Array(r),u.HEAP16=ae=new Int16Array(r),u.HEAPU8=W=new Uint8Array(r),u.HEAPU16=fe=new Uint16Array(r),u.HEAP32=M=new Int32Array(r),u.HEAPU32=$=new Uint32Array(r),u.HEAPF32=hr=new Float32Array(r),u.HEAPF64=pr=new Float64Array(r)}var gr=[],mr=[],yr=[];function Tt(){if(u.preRun)for(typeof u.preRun=="function"&&(u.preRun=[u.preRun]);u.preRun.length;)St(u.preRun.shift());Ye(gr)}function Ct(){Ye(mr)}function Pt(){if(u.postRun)for(typeof u.postRun=="function"&&(u.postRun=[u.postRun]);u.postRun.length;)Et(u.postRun.shift());Ye(yr)}function St(r){gr.unshift(r)}function At(r){mr.unshift(r)}function Et(r){yr.unshift(r)}var K=0,ve=null;function Ft(r){var e;K++,(e=u.monitorRunDependencies)===null||e===void 0||e.call(u,K)}function Rt(r){var e;if(K--,(e=u.monitorRunDependencies)===null||e===void 0||e.call(u,K),K==0&&ve){var t=ve;ve=null,t()}}function Ve(r){var e;(e=u.onAbort)===null||e===void 0||e.call(u,r),r="Aborted("+r+")",ne(r),dr=!0,r+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(r);throw b(t),t}var Ot="data:application/octet-stream;base64,",$r=r=>r.startsWith(Ot),ie;ie="zxing_reader.wasm",$r(ie)||(ie=le(ie));function br(r){if(r==ie&&ce)return new Uint8Array(ce);if(xe)return xe(r);throw"both async and sync fetching of the wasm failed"}function Dt(r){return!ce&&(q||B||Q||J)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(e=>{if(!e.ok)throw`failed to load wasm binary file at '${r}'`;return e.arrayBuffer()}).catch(()=>br(r)):Promise.resolve().then(()=>br(r))}function wr(r,e,t){return Dt(r).then(n=>WebAssembly.instantiate(n,e)).then(t,n=>{ne(`failed to asynchronously prepare wasm: ${n}`),Ve(n)})}function It(r,e,t,n){return!r&&typeof WebAssembly.instantiateStreaming=="function"&&!$r(e)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(a=>{var i=WebAssembly.instantiateStreaming(a,t);return i.then(n,function(o){return ne(`wasm streaming compile failed: ${o}`),ne("falling back to ArrayBuffer instantiation"),wr(e,t,n)})}):wr(e,t,n)}function Wt(){var r={a:Sa};function e(n,a){return P=n.exports,Te=P.ma,_r(),Or=P.qa,At(P.na),Rt(),P}Ft();function t(n){e(n.instance)}if(u.instantiateWasm)try{return u.instantiateWasm(r,e)}catch(n){ne(`Module.instantiateWasm callback failed with error: ${n}`),b(n)}return It(ce,ie,r,t).catch(b),{}}var Ye=r=>{for(;r.length>0;)r.shift()(u)};u.noExitRuntime;var Ce=[],Pe=0,Mt=r=>{var e=new Ne(r);return e.get_caught()||(e.set_caught(!0),Pe--),e.set_rethrown(!1),Ce.push(e),Xr(e.excPtr),e.get_exception_ptr()},X=0,kt=()=>{w(0,0);var r=Ce.pop();Lr(r.excPtr),X=0};class Ne{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){$[this.ptr+4>>2]=e}get_type(){return $[this.ptr+4>>2]}set_destructor(e){$[this.ptr+8>>2]=e}get_destructor(){return $[this.ptr+8>>2]}set_caught(e){e=e?1:0,x[this.ptr+12]=e}get_caught(){return x[this.ptr+12]!=0}set_rethrown(e){e=e?1:0,x[this.ptr+13]=e}get_rethrown(){return x[this.ptr+13]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){$[this.ptr+16>>2]=e}get_adjusted_ptr(){return $[this.ptr+16>>2]}get_exception_ptr(){var e=Zr(this.get_type());if(e)return $[this.excPtr>>2];var t=this.get_adjusted_ptr();return t!==0?t:this.excPtr}}var Ut=r=>{throw X||(X=r),X},Le=r=>{var e=X;if(!e)return $e(0),0;var t=new Ne(e);t.set_adjusted_ptr(e);var n=t.get_type();if(!n)return $e(0),e;for(var a in r){var i=r[a];if(i===0||i===n)break;var o=t.ptr+16;if(zr(i,n,o))return $e(i),e}return $e(n),e},jt=()=>Le([]),Ht=r=>Le([r]),Bt=(r,e)=>Le([r,e]),xt=()=>{var r=Ce.pop();r||Ve("no exception to throw");var e=r.excPtr;throw r.get_rethrown()||(Ce.push(r),r.set_rethrown(!0),r.set_caught(!1),Pe++),X=e,X},Vt=(r,e,t)=>{var n=new Ne(r);throw n.init(e,t),X=r,Pe++,X},Yt=()=>Pe,Se={},Xe=r=>{for(;r.length;){var e=r.pop(),t=r.pop();t(e)}};function de(r){return this.fromWireType($[r>>2])}var oe={},ee={},Ae={},Tr,Ee=r=>{throw new Tr(r)},re=(r,e,t)=>{r.forEach(function(s){Ae[s]=e});function n(s){var l=t(s);l.length!==r.length&&Ee("Mismatched type converter count");for(var f=0;f<r.length;++f)Y(r[f],l[f])}var a=new Array(e.length),i=[],o=0;e.forEach((s,l)=>{ee.hasOwnProperty(s)?a[l]=ee[s]:(i.push(s),oe.hasOwnProperty(s)||(oe[s]=[]),oe[s].push(()=>{a[l]=ee[s],++o,o===i.length&&n(a)}))}),i.length===0&&n(a)},Nt=r=>{var e=Se[r];delete Se[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,i=a.map(o=>o.getterReturnType).concat(a.map(o=>o.setterArgumentType));re([r],i,o=>{var s={};return a.forEach((l,f)=>{var v=l.fieldName,_=o[f],p=l.getter,m=l.getterContext,E=o[f+a.length],k=l.setter,T=l.setterContext;s[v]={read:O=>_.fromWireType(p(m,O)),write:(O,c)=>{var d=[];k(T,O,E.toWireType(d,c)),Xe(d)}}}),[{name:e.name,fromWireType:l=>{var f={};for(var v in s)f[v]=s[v].read(l);return n(l),f},toWireType:(l,f)=>{for(var v in s)if(!(v in f))throw new TypeError(`Missing field: "${v}"`);var _=t();for(v in s)s[v].write(_,f[v]);return l!==null&&l.push(n,_),_},argPackAdvance:N,readValueFromPointer:de,destructorFunction:n}]})},Lt=(r,e,t,n,a)=>{},Xt=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Cr=r},Cr,D=r=>{for(var e="",t=r;W[t];)e+=Cr[W[t++]];return e},se,y=r=>{throw new se(r)};function zt(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=e.name;if(r||y(`type "${n}" must have a positive integer typeid pointer`),ee.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;y(`Cannot register type '${n}' twice`)}if(ee[r]=e,delete Ae[r],oe.hasOwnProperty(r)){var a=oe[r];delete oe[r],a.forEach(i=>i())}}function Y(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return zt(r,e,t)}var N=8,Zt=(r,e,t,n)=>{e=D(e),Y(r,{name:e,fromWireType:function(a){return!!a},toWireType:function(a,i){return i?t:n},argPackAdvance:N,readValueFromPointer:function(a){return this.fromWireType(W[a])},destructorFunction:null})},Gt=r=>({count:r.count,deleteScheduled:r.deleteScheduled,preservePointerOnDelete:r.preservePointerOnDelete,ptr:r.ptr,ptrType:r.ptrType,smartPtr:r.smartPtr,smartPtrType:r.smartPtrType}),ze=r=>{function e(t){return t.$$.ptrType.registeredClass.name}y(e(r)+" instance already deleted")},Ze=!1,Pr=r=>{},qt=r=>{r.smartPtr?r.smartPtrType.rawDestructor(r.smartPtr):r.ptrType.registeredClass.rawDestructor(r.ptr)},Sr=r=>{r.count.value-=1;var e=r.count.value===0;e&&qt(r)},Ar=(r,e,t)=>{if(e===t)return r;if(t.baseClass===void 0)return null;var n=Ar(r,e,t.baseClass);return n===null?null:t.downcast(n)},Er={},Jt=()=>Object.keys(_e).length,Qt=()=>{var r=[];for(var e in _e)_e.hasOwnProperty(e)&&r.push(_e[e]);return r},he=[],Ge=()=>{for(;he.length;){var r=he.pop();r.$$.deleteScheduled=!1,r.delete()}},pe,Kt=r=>{pe=r,he.length&&pe&&pe(Ge)},en=()=>{u.getInheritedInstanceCount=Jt,u.getLiveInheritedInstances=Qt,u.flushPendingDeletes=Ge,u.setDelayFunction=Kt},_e={},rn=(r,e)=>{for(e===void 0&&y("ptr should not be undefined");r.baseClass;)e=r.upcast(e),r=r.baseClass;return e},tn=(r,e)=>(e=rn(r,e),_e[e]),Fe=(r,e)=>{(!e.ptrType||!e.ptr)&&Ee("makeClassHandle requires ptr and ptrType");var t=!!e.smartPtrType,n=!!e.smartPtr;return t!==n&&Ee("Both smartPtrType and smartPtr must be specified"),e.count={value:1},ge(Object.create(r,{$$:{value:e,writable:!0}}))};function nn(r){var e=this.getPointee(r);if(!e)return this.destructor(r),null;var t=tn(this.registeredClass,e);if(t!==void 0){if(t.$$.count.value===0)return t.$$.ptr=e,t.$$.smartPtr=r,t.clone();var n=t.clone();return this.destructor(r),n}function a(){return this.isSmartPointer?Fe(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:r}):Fe(this.registeredClass.instancePrototype,{ptrType:this,ptr:r})}var i=this.registeredClass.getActualType(e),o=Er[i];if(!o)return a.call(this);var s;this.isConst?s=o.constPointerType:s=o.pointerType;var l=Ar(e,this.registeredClass,s.registeredClass);return l===null?a.call(this):this.isSmartPointer?Fe(s.registeredClass.instancePrototype,{ptrType:s,ptr:l,smartPtrType:this,smartPtr:r}):Fe(s.registeredClass.instancePrototype,{ptrType:s,ptr:l})}var ge=r=>typeof FinalizationRegistry>"u"?(ge=e=>e,r):(Ze=new FinalizationRegistry(e=>{Sr(e.$$)}),ge=e=>{var t=e.$$,n=!!t.smartPtr;if(n){var a={$$:t};Ze.register(e,a,e)}return e},Pr=e=>Ze.unregister(e),ge(r)),an=()=>{Object.assign(Re.prototype,{isAliasOf(r){if(!(this instanceof Re)||!(r instanceof Re))return!1;var e=this.$$.ptrType.registeredClass,t=this.$$.ptr;r.$$=r.$$;for(var n=r.$$.ptrType.registeredClass,a=r.$$.ptr;e.baseClass;)t=e.upcast(t),e=e.baseClass;for(;n.baseClass;)a=n.upcast(a),n=n.baseClass;return e===n&&t===a},clone(){if(this.$$.ptr||ze(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var r=ge(Object.create(Object.getPrototypeOf(this),{$$:{value:Gt(this.$$)}}));return r.$$.count.value+=1,r.$$.deleteScheduled=!1,r},delete(){this.$$.ptr||ze(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&y("Object already scheduled for deletion"),Pr(this),Sr(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||ze(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&y("Object already scheduled for deletion"),he.push(this),he.length===1&&pe&&pe(Ge),this.$$.deleteScheduled=!0,this}})};function Re(){}var me=(r,e)=>Object.defineProperty(e,"name",{value:r}),Fr=(r,e,t)=>{if(r[e].overloadTable===void 0){var n=r[e];r[e]=function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return r[e].overloadTable.hasOwnProperty(i.length)||y(`Function '${t}' called with an invalid number of arguments (${i.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[i.length].apply(this,i)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},qe=(r,e,t)=>{u.hasOwnProperty(r)?((t===void 0||u[r].overloadTable!==void 0&&u[r].overloadTable[t]!==void 0)&&y(`Cannot register public name '${r}' twice`),Fr(u,r,r),u.hasOwnProperty(t)&&y(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),u[r].overloadTable[t]=e):(u[r]=e,t!==void 0&&(u[r].numArguments=t))},on=48,sn=57,un=r=>{if(r===void 0)return"_unknown";r=r.replace(/[^a-zA-Z0-9_]/g,"$");var e=r.charCodeAt(0);return e>=on&&e<=sn?`_${r}`:r};function ln(r,e,t,n,a,i,o,s){this.name=r,this.constructor=e,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=a,this.getActualType=i,this.upcast=o,this.downcast=s,this.pureVirtualFunctions=[]}var Je=(r,e,t)=>{for(;e!==t;)e.upcast||y(`Expected null or instance of ${t.name}, got an instance of ${e.name}`),r=e.upcast(r),e=e.baseClass;return r};function cn(r,e){if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),0;e.$$||y(`Cannot pass "${nr(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Je(e.$$.ptr,t,this.registeredClass);return n}function fn(r,e){var t;if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),r!==null&&r.push(this.rawDestructor,t),t):0;(!e||!e.$$)&&y(`Cannot pass "${nr(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&e.$$.ptrType.isConst&&y(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);var n=e.$$.ptrType.registeredClass;if(t=Je(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(e.$$.smartPtr===void 0&&y("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?t=e.$$.smartPtr:y(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)t=e.$$.smartPtr;else{var a=e.clone();t=this.rawShare(t,Z.toHandle(()=>a.delete())),r!==null&&r.push(this.rawDestructor,t)}break;default:y("Unsupporting sharing policy")}return t}function vn(r,e){if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),0;e.$$||y(`Cannot pass "${nr(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`),e.$$.ptrType.isConst&&y(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Je(e.$$.ptr,t,this.registeredClass);return n}var dn=()=>{Object.assign(Oe.prototype,{getPointee(r){return this.rawGetPointee&&(r=this.rawGetPointee(r)),r},destructor(r){var e;(e=this.rawDestructor)===null||e===void 0||e.call(this,r)},argPackAdvance:N,readValueFromPointer:de,fromWireType:nn})};function Oe(r,e,t,n,a,i,o,s,l,f,v){this.name=r,this.registeredClass=e,this.isReference=t,this.isConst=n,this.isSmartPointer=a,this.pointeeType=i,this.sharingPolicy=o,this.rawGetPointee=s,this.rawConstructor=l,this.rawShare=f,this.rawDestructor=v,!a&&e.baseClass===void 0?n?(this.toWireType=cn,this.destructorFunction=null):(this.toWireType=vn,this.destructorFunction=null):this.toWireType=fn}var Rr=(r,e,t)=>{u.hasOwnProperty(r)||Ee("Replacing nonexistent public symbol"),u[r].overloadTable!==void 0&&t!==void 0?u[r].overloadTable[t]=e:(u[r]=e,u[r].argCount=t)},hn=(r,e,t)=>{var n=u["dynCall_"+r];return n(e,...t)},De=[],Or,C=r=>{var e=De[r];return e||(r>=De.length&&(De.length=r+1),De[r]=e=Or.get(r)),e},pn=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.includes("j"))return hn(r,e,t);var n=C(e)(...t);return n},_n=(r,e)=>function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return pn(r,e,n)},V=(r,e)=>{r=D(r);function t(){return r.includes("j")?_n(r,e):C(e)}var n=t();return typeof n!="function"&&y(`unknown function pointer with signature ${r}: ${e}`),n},gn=(r,e)=>{var t=me(e,function(n){this.name=e,this.message=n;var a=new Error(n).stack;a!==void 0&&(this.stack=this.toString()+` | ||
var ZXingWASM=function(I){"use strict";const He=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"];function rt(h){return h.join("|")}function tt(h){const g=ur(h);let u=0,U=He.length-1;for(;u<=U;){const b=Math.floor((u+U)/2),j=He[b],L=ur(j);if(L===g)return j;L<g?u=b+1:U=b-1}return"None"}function ur(h){return h.toLowerCase().replace(/_-\[\]/g,"")}const nt=["LocalAverage","GlobalHistogram","FixedThreshold","BoolCast"];function at(h,g){return h.Binarizer[g]}const it=["Unknown","ASCII","ISO8859_1","ISO8859_2","ISO8859_3","ISO8859_4","ISO8859_5","ISO8859_6","ISO8859_7","ISO8859_8","ISO8859_9","ISO8859_10","ISO8859_11","ISO8859_13","ISO8859_14","ISO8859_15","ISO8859_16","Cp437","Cp1250","Cp1251","Cp1252","Cp1256","Shift_JIS","Big5","GB2312","GB18030","EUC_JP","EUC_KR","UTF16BE","UTF8","UTF16LE","UTF32BE","UTF32LE","BINARY"];function ot(h,g){return h.CharacterSet[g]}const lr=["Text","Binary","Mixed","GS1","ISO15434","UnknownECI"];function st(h){return lr[h.value]}const ut=["Ignore","Read","Require"];function lt(h,g){return h.EanAddOnSymbol[g]}const ct=["Plain","ECI","HRI","Hex","Escaped"];function ft(h,g){return h.TextMode[g]}const te={formats:[],tryHarder:!0,tryRotate:!0,tryInvert:!0,tryDownscale:!0,binarizer:"LocalAverage",isPure:!1,downscaleFactor:3,downscaleThreshold:500,minLineCount:2,maxNumberOfSymbols:255,tryCode39ExtendedMode:!1,validateCode39CheckSum:!1,validateITFCheckSum:!1,returnCodabarStartEnd:!1,returnErrors:!1,eanAddOnSymbol:"Read",textMode:"Plain",characterSet:"Unknown"};function cr(h,g){return{...g,formats:rt(g.formats),binarizer:at(h,g.binarizer),eanAddOnSymbol:lt(h,g.eanAddOnSymbol),textMode:ft(h,g.textMode),characterSet:ot(h,g.characterSet)}}const vt=["L","M","Q","H"];function fr(h){return{...h,format:tt(h.format),eccLevel:h.eccLevel,contentType:st(h.contentType)}}const dt={locateFile:(h,g)=>{const u=h.match(/_(.+?)\.wasm$/);return u?`https://fastly.jsdelivr.net/npm/zxing-wasm@1.2.8/dist/${u[1]}/${h}`:g+h}};let be=new WeakMap;function Be(h,g){var j;const u=be.get(h);if(u!=null&&u.modulePromise&&(g===void 0||Object.is(g,u.moduleOverrides)))return u.modulePromise;const U=(j=g!=null?g:u==null?void 0:u.moduleOverrides)!=null?j:dt,b=h({...U});return be.set(h,{moduleOverrides:U,modulePromise:b}),b}function ht(){be=new WeakMap}function pt(h,g){be.set(h,{moduleOverrides:g})}async function _t(h,g,u=te){const U={...te,...u},b=await Be(h),{size:j}=g,L=new Uint8Array(await g.arrayBuffer()),q=b._malloc(j);b.HEAPU8.set(L,q);const Q=b.readBarcodesFromImage(q,j,cr(b,U));b._free(q);const J=[];for(let B=0;B<Q.size();++B)J.push(fr(Q.get(B)));return J}async function gt(h,g,u=te){const U={...te,...u},b=await Be(h),{data:j,width:L,height:q,data:{byteLength:Q}}=g,J=b._malloc(Q);b.HEAPU8.set(j,J);const B=b.readBarcodesFromPixmap(J,L,q,cr(b,U));b._free(J);const H=[];for(let le=0;le<B.size();++le)H.push(fr(B.get(le)));return H}var we=(()=>{var h=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(g={}){var Jr;var u=g,U,b;u.ready=new Promise((r,e)=>{U=r,b=e});var j=Object.assign({},u),L="./this.program",q=typeof window=="object",Q=typeof Bun<"u",J=typeof((Jr=globalThis.WebAssembly)==null?void 0:Jr.instantiate)=="function",B=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&process.versions.node;var H="";function le(r){return u.locateFile?u.locateFile(r,H):H+r}var xe;(q||B||Q)&&(B?H=self.location.href:typeof document<"u"&&document.currentScript&&(H=document.currentScript.src),h&&(H=h),H.startsWith("blob:")?H="":H=H.substr(0,H.replace(/[?#].*/,"").lastIndexOf("/")+1),B&&(xe=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}));var wt=u.print||console.log.bind(console),ne=u.printErr||console.error.bind(console);Object.assign(u,j),j=null,u.arguments&&u.arguments,u.thisProgram&&(L=u.thisProgram),u.quit&&u.quit;var ce;u.wasmBinary&&(ce=u.wasmBinary);var Te,dr=!1,x,W,ae,fe,M,$,hr,pr;function _r(){var r=Te.buffer;u.HEAP8=x=new Int8Array(r),u.HEAP16=ae=new Int16Array(r),u.HEAPU8=W=new Uint8Array(r),u.HEAPU16=fe=new Uint16Array(r),u.HEAP32=M=new Int32Array(r),u.HEAPU32=$=new Uint32Array(r),u.HEAPF32=hr=new Float32Array(r),u.HEAPF64=pr=new Float64Array(r)}var gr=[],mr=[],yr=[];function Tt(){if(u.preRun)for(typeof u.preRun=="function"&&(u.preRun=[u.preRun]);u.preRun.length;)St(u.preRun.shift());Ye(gr)}function Ct(){Ye(mr)}function Pt(){if(u.postRun)for(typeof u.postRun=="function"&&(u.postRun=[u.postRun]);u.postRun.length;)Et(u.postRun.shift());Ye(yr)}function St(r){gr.unshift(r)}function At(r){mr.unshift(r)}function Et(r){yr.unshift(r)}var K=0,ve=null;function Ft(r){var e;K++,(e=u.monitorRunDependencies)===null||e===void 0||e.call(u,K)}function Rt(r){var e;if(K--,(e=u.monitorRunDependencies)===null||e===void 0||e.call(u,K),K==0&&ve){var t=ve;ve=null,t()}}function Ve(r){var e;(e=u.onAbort)===null||e===void 0||e.call(u,r),r="Aborted("+r+")",ne(r),dr=!0,r+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(r);throw b(t),t}var Ot="data:application/octet-stream;base64,",$r=r=>r.startsWith(Ot),ie;ie="zxing_reader.wasm",$r(ie)||(ie=le(ie));function br(r){if(r==ie&&ce)return new Uint8Array(ce);if(xe)return xe(r);throw"both async and sync fetching of the wasm failed"}function Dt(r){return!ce&&(q||B||Q||J)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(e=>{if(!e.ok)throw`failed to load wasm binary file at '${r}'`;return e.arrayBuffer()}).catch(()=>br(r)):Promise.resolve().then(()=>br(r))}function wr(r,e,t){return Dt(r).then(n=>WebAssembly.instantiate(n,e)).then(t,n=>{ne(`failed to asynchronously prepare wasm: ${n}`),Ve(n)})}function It(r,e,t,n){return!r&&typeof WebAssembly.instantiateStreaming=="function"&&!$r(e)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(a=>{var i=WebAssembly.instantiateStreaming(a,t);return i.then(n,function(o){return ne(`wasm streaming compile failed: ${o}`),ne("falling back to ArrayBuffer instantiation"),wr(e,t,n)})}):wr(e,t,n)}function Wt(){var r={a:Sa};function e(n,a){return P=n.exports,Te=P.ma,_r(),Or=P.qa,At(P.na),Rt(),P}Ft();function t(n){e(n.instance)}if(u.instantiateWasm)try{return u.instantiateWasm(r,e)}catch(n){ne(`Module.instantiateWasm callback failed with error: ${n}`),b(n)}return It(ce,ie,r,t).catch(b),{}}var Ye=r=>{for(;r.length>0;)r.shift()(u)};u.noExitRuntime;var Ce=[],Pe=0,Mt=r=>{var e=new Ne(r);return e.get_caught()||(e.set_caught(!0),Pe--),e.set_rethrown(!1),Ce.push(e),Xr(e.excPtr),e.get_exception_ptr()},X=0,kt=()=>{w(0,0);var r=Ce.pop();Lr(r.excPtr),X=0};class Ne{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){$[this.ptr+4>>2]=e}get_type(){return $[this.ptr+4>>2]}set_destructor(e){$[this.ptr+8>>2]=e}get_destructor(){return $[this.ptr+8>>2]}set_caught(e){e=e?1:0,x[this.ptr+12]=e}get_caught(){return x[this.ptr+12]!=0}set_rethrown(e){e=e?1:0,x[this.ptr+13]=e}get_rethrown(){return x[this.ptr+13]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){$[this.ptr+16>>2]=e}get_adjusted_ptr(){return $[this.ptr+16>>2]}get_exception_ptr(){var e=Zr(this.get_type());if(e)return $[this.excPtr>>2];var t=this.get_adjusted_ptr();return t!==0?t:this.excPtr}}var Ut=r=>{throw X||(X=r),X},Le=r=>{var e=X;if(!e)return $e(0),0;var t=new Ne(e);t.set_adjusted_ptr(e);var n=t.get_type();if(!n)return $e(0),e;for(var a in r){var i=r[a];if(i===0||i===n)break;var o=t.ptr+16;if(zr(i,n,o))return $e(i),e}return $e(n),e},jt=()=>Le([]),Ht=r=>Le([r]),Bt=(r,e)=>Le([r,e]),xt=()=>{var r=Ce.pop();r||Ve("no exception to throw");var e=r.excPtr;throw r.get_rethrown()||(Ce.push(r),r.set_rethrown(!0),r.set_caught(!1),Pe++),X=e,X},Vt=(r,e,t)=>{var n=new Ne(r);throw n.init(e,t),X=r,Pe++,X},Yt=()=>Pe,Se={},Xe=r=>{for(;r.length;){var e=r.pop(),t=r.pop();t(e)}};function de(r){return this.fromWireType($[r>>2])}var oe={},ee={},Ae={},Tr,Ee=r=>{throw new Tr(r)},re=(r,e,t)=>{r.forEach(function(s){Ae[s]=e});function n(s){var l=t(s);l.length!==r.length&&Ee("Mismatched type converter count");for(var f=0;f<r.length;++f)Y(r[f],l[f])}var a=new Array(e.length),i=[],o=0;e.forEach((s,l)=>{ee.hasOwnProperty(s)?a[l]=ee[s]:(i.push(s),oe.hasOwnProperty(s)||(oe[s]=[]),oe[s].push(()=>{a[l]=ee[s],++o,o===i.length&&n(a)}))}),i.length===0&&n(a)},Nt=r=>{var e=Se[r];delete Se[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,i=a.map(o=>o.getterReturnType).concat(a.map(o=>o.setterArgumentType));re([r],i,o=>{var s={};return a.forEach((l,f)=>{var v=l.fieldName,_=o[f],p=l.getter,m=l.getterContext,E=o[f+a.length],k=l.setter,T=l.setterContext;s[v]={read:O=>_.fromWireType(p(m,O)),write:(O,c)=>{var d=[];k(T,O,E.toWireType(d,c)),Xe(d)}}}),[{name:e.name,fromWireType:l=>{var f={};for(var v in s)f[v]=s[v].read(l);return n(l),f},toWireType:(l,f)=>{for(var v in s)if(!(v in f))throw new TypeError(`Missing field: "${v}"`);var _=t();for(v in s)s[v].write(_,f[v]);return l!==null&&l.push(n,_),_},argPackAdvance:N,readValueFromPointer:de,destructorFunction:n}]})},Lt=(r,e,t,n,a)=>{},Xt=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Cr=r},Cr,D=r=>{for(var e="",t=r;W[t];)e+=Cr[W[t++]];return e},se,y=r=>{throw new se(r)};function zt(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=e.name;if(r||y(`type "${n}" must have a positive integer typeid pointer`),ee.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;y(`Cannot register type '${n}' twice`)}if(ee[r]=e,delete Ae[r],oe.hasOwnProperty(r)){var a=oe[r];delete oe[r],a.forEach(i=>i())}}function Y(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return zt(r,e,t)}var N=8,Zt=(r,e,t,n)=>{e=D(e),Y(r,{name:e,fromWireType:function(a){return!!a},toWireType:function(a,i){return i?t:n},argPackAdvance:N,readValueFromPointer:function(a){return this.fromWireType(W[a])},destructorFunction:null})},Gt=r=>({count:r.count,deleteScheduled:r.deleteScheduled,preservePointerOnDelete:r.preservePointerOnDelete,ptr:r.ptr,ptrType:r.ptrType,smartPtr:r.smartPtr,smartPtrType:r.smartPtrType}),ze=r=>{function e(t){return t.$$.ptrType.registeredClass.name}y(e(r)+" instance already deleted")},Ze=!1,Pr=r=>{},qt=r=>{r.smartPtr?r.smartPtrType.rawDestructor(r.smartPtr):r.ptrType.registeredClass.rawDestructor(r.ptr)},Sr=r=>{r.count.value-=1;var e=r.count.value===0;e&&qt(r)},Ar=(r,e,t)=>{if(e===t)return r;if(t.baseClass===void 0)return null;var n=Ar(r,e,t.baseClass);return n===null?null:t.downcast(n)},Er={},Jt=()=>Object.keys(_e).length,Qt=()=>{var r=[];for(var e in _e)_e.hasOwnProperty(e)&&r.push(_e[e]);return r},he=[],Ge=()=>{for(;he.length;){var r=he.pop();r.$$.deleteScheduled=!1,r.delete()}},pe,Kt=r=>{pe=r,he.length&&pe&&pe(Ge)},en=()=>{u.getInheritedInstanceCount=Jt,u.getLiveInheritedInstances=Qt,u.flushPendingDeletes=Ge,u.setDelayFunction=Kt},_e={},rn=(r,e)=>{for(e===void 0&&y("ptr should not be undefined");r.baseClass;)e=r.upcast(e),r=r.baseClass;return e},tn=(r,e)=>(e=rn(r,e),_e[e]),Fe=(r,e)=>{(!e.ptrType||!e.ptr)&&Ee("makeClassHandle requires ptr and ptrType");var t=!!e.smartPtrType,n=!!e.smartPtr;return t!==n&&Ee("Both smartPtrType and smartPtr must be specified"),e.count={value:1},ge(Object.create(r,{$$:{value:e,writable:!0}}))};function nn(r){var e=this.getPointee(r);if(!e)return this.destructor(r),null;var t=tn(this.registeredClass,e);if(t!==void 0){if(t.$$.count.value===0)return t.$$.ptr=e,t.$$.smartPtr=r,t.clone();var n=t.clone();return this.destructor(r),n}function a(){return this.isSmartPointer?Fe(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:r}):Fe(this.registeredClass.instancePrototype,{ptrType:this,ptr:r})}var i=this.registeredClass.getActualType(e),o=Er[i];if(!o)return a.call(this);var s;this.isConst?s=o.constPointerType:s=o.pointerType;var l=Ar(e,this.registeredClass,s.registeredClass);return l===null?a.call(this):this.isSmartPointer?Fe(s.registeredClass.instancePrototype,{ptrType:s,ptr:l,smartPtrType:this,smartPtr:r}):Fe(s.registeredClass.instancePrototype,{ptrType:s,ptr:l})}var ge=r=>typeof FinalizationRegistry>"u"?(ge=e=>e,r):(Ze=new FinalizationRegistry(e=>{Sr(e.$$)}),ge=e=>{var t=e.$$,n=!!t.smartPtr;if(n){var a={$$:t};Ze.register(e,a,e)}return e},Pr=e=>Ze.unregister(e),ge(r)),an=()=>{Object.assign(Re.prototype,{isAliasOf(r){if(!(this instanceof Re)||!(r instanceof Re))return!1;var e=this.$$.ptrType.registeredClass,t=this.$$.ptr;r.$$=r.$$;for(var n=r.$$.ptrType.registeredClass,a=r.$$.ptr;e.baseClass;)t=e.upcast(t),e=e.baseClass;for(;n.baseClass;)a=n.upcast(a),n=n.baseClass;return e===n&&t===a},clone(){if(this.$$.ptr||ze(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var r=ge(Object.create(Object.getPrototypeOf(this),{$$:{value:Gt(this.$$)}}));return r.$$.count.value+=1,r.$$.deleteScheduled=!1,r},delete(){this.$$.ptr||ze(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&y("Object already scheduled for deletion"),Pr(this),Sr(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||ze(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&y("Object already scheduled for deletion"),he.push(this),he.length===1&&pe&&pe(Ge),this.$$.deleteScheduled=!0,this}})};function Re(){}var me=(r,e)=>Object.defineProperty(e,"name",{value:r}),Fr=(r,e,t)=>{if(r[e].overloadTable===void 0){var n=r[e];r[e]=function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return r[e].overloadTable.hasOwnProperty(i.length)||y(`Function '${t}' called with an invalid number of arguments (${i.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[i.length].apply(this,i)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},qe=(r,e,t)=>{u.hasOwnProperty(r)?((t===void 0||u[r].overloadTable!==void 0&&u[r].overloadTable[t]!==void 0)&&y(`Cannot register public name '${r}' twice`),Fr(u,r,r),u.hasOwnProperty(t)&&y(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),u[r].overloadTable[t]=e):(u[r]=e,t!==void 0&&(u[r].numArguments=t))},on=48,sn=57,un=r=>{if(r===void 0)return"_unknown";r=r.replace(/[^a-zA-Z0-9_]/g,"$");var e=r.charCodeAt(0);return e>=on&&e<=sn?`_${r}`:r};function ln(r,e,t,n,a,i,o,s){this.name=r,this.constructor=e,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=a,this.getActualType=i,this.upcast=o,this.downcast=s,this.pureVirtualFunctions=[]}var Je=(r,e,t)=>{for(;e!==t;)e.upcast||y(`Expected null or instance of ${t.name}, got an instance of ${e.name}`),r=e.upcast(r),e=e.baseClass;return r};function cn(r,e){if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),0;e.$$||y(`Cannot pass "${nr(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Je(e.$$.ptr,t,this.registeredClass);return n}function fn(r,e){var t;if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),r!==null&&r.push(this.rawDestructor,t),t):0;(!e||!e.$$)&&y(`Cannot pass "${nr(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&e.$$.ptrType.isConst&&y(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);var n=e.$$.ptrType.registeredClass;if(t=Je(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(e.$$.smartPtr===void 0&&y("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?t=e.$$.smartPtr:y(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)t=e.$$.smartPtr;else{var a=e.clone();t=this.rawShare(t,Z.toHandle(()=>a.delete())),r!==null&&r.push(this.rawDestructor,t)}break;default:y("Unsupporting sharing policy")}return t}function vn(r,e){if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),0;e.$$||y(`Cannot pass "${nr(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`),e.$$.ptrType.isConst&&y(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Je(e.$$.ptr,t,this.registeredClass);return n}var dn=()=>{Object.assign(Oe.prototype,{getPointee(r){return this.rawGetPointee&&(r=this.rawGetPointee(r)),r},destructor(r){var e;(e=this.rawDestructor)===null||e===void 0||e.call(this,r)},argPackAdvance:N,readValueFromPointer:de,fromWireType:nn})};function Oe(r,e,t,n,a,i,o,s,l,f,v){this.name=r,this.registeredClass=e,this.isReference=t,this.isConst=n,this.isSmartPointer=a,this.pointeeType=i,this.sharingPolicy=o,this.rawGetPointee=s,this.rawConstructor=l,this.rawShare=f,this.rawDestructor=v,!a&&e.baseClass===void 0?n?(this.toWireType=cn,this.destructorFunction=null):(this.toWireType=vn,this.destructorFunction=null):this.toWireType=fn}var Rr=(r,e,t)=>{u.hasOwnProperty(r)||Ee("Replacing nonexistent public symbol"),u[r].overloadTable!==void 0&&t!==void 0?u[r].overloadTable[t]=e:(u[r]=e,u[r].argCount=t)},hn=(r,e,t)=>{var n=u["dynCall_"+r];return n(e,...t)},De=[],Or,C=r=>{var e=De[r];return e||(r>=De.length&&(De.length=r+1),De[r]=e=Or.get(r)),e},pn=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.includes("j"))return hn(r,e,t);var n=C(e)(...t);return n},_n=(r,e)=>function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return pn(r,e,n)},V=(r,e)=>{r=D(r);function t(){return r.includes("j")?_n(r,e):C(e)}var n=t();return typeof n!="function"&&y(`unknown function pointer with signature ${r}: ${e}`),n},gn=(r,e)=>{var t=me(e,function(n){this.name=e,this.message=n;var a=new Error(n).stack;a!==void 0&&(this.stack=this.toString()+` | ||
`+a.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},Dr,Ir=r=>{var e=Nr(r),t=D(e);return G(e),t},Ie=(r,e)=>{var t=[],n={};function a(i){if(!n[i]&&!ee[i]){if(Ae[i]){Ae[i].forEach(a);return}t.push(i),n[i]=!0}}throw e.forEach(a),new Dr(`${r}: `+t.map(Ir).join([", "]))},mn=(r,e,t,n,a,i,o,s,l,f,v,_,p)=>{v=D(v),i=V(a,i),s&&(s=V(o,s)),f&&(f=V(l,f)),p=V(_,p);var m=un(v);qe(m,function(){Ie(`Cannot construct ${v} due to unbound types`,[n])}),re([r,e,t],n?[n]:[],E=>{E=E[0];var k,T;n?(k=E.registeredClass,T=k.instancePrototype):T=Re.prototype;var O=me(v,function(){if(Object.getPrototypeOf(this)!==c)throw new se("Use 'new' to construct "+v);if(d.constructor_body===void 0)throw new se(v+" has no accessible constructor");for(var Kr=arguments.length,Ue=new Array(Kr),je=0;je<Kr;je++)Ue[je]=arguments[je];var et=d.constructor_body[Ue.length];if(et===void 0)throw new se(`Tried to invoke ctor of ${v} with invalid number of parameters (${Ue.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);return et.apply(this,Ue)}),c=Object.create(T,{constructor:{value:O}});O.prototype=c;var d=new ln(v,O,c,p,k,i,s,f);if(d.baseClass){var F,R;(R=(F=d.baseClass).__derivedClasses)!==null&&R!==void 0||(F.__derivedClasses=[]),d.baseClass.__derivedClasses.push(d)}var ue=new Oe(v,d,!0,!1,!1),ke=new Oe(v+"*",d,!1,!1,!1),Qr=new Oe(v+" const*",d,!1,!0,!1);return Er[r]={pointerType:ke,constPointerType:Qr},Rr(m,O),[ue,ke,Qr]})},Qe=(r,e)=>{for(var t=[],n=0;n<r;n++)t.push($[e+n*4>>2]);return t};function yn(r){for(var e=1;e<r.length;++e)if(r[e]!==null&&r[e].destructorFunction===void 0)return!0;return!1}function Ke(r,e,t,n,a,i){var o=e.length;o<2&&y("argTypes array size mismatch! Must at least get return value and 'this' types!");var s=e[1]!==null&&t!==null,l=yn(e),f=e[0].name!=="void",v=o-2,_=new Array(v),p=[],m=[],E=function(){arguments.length!==v&&y(`function ${r} called with ${arguments.length} arguments, expected ${v}`),m.length=0;var k;p.length=s?2:1,p[0]=a,s&&(k=e[1].toWireType(m,this),p[1]=k);for(var T=0;T<v;++T)_[T]=e[T+2].toWireType(m,T<0||arguments.length<=T?void 0:arguments[T]),p.push(_[T]);var O=n(...p);function c(d){if(l)Xe(m);else for(var F=s?1:2;F<e.length;F++){var R=F===1?k:_[F-2];e[F].destructorFunction!==null&&e[F].destructorFunction(R)}if(f)return e[0].fromWireType(d)}return c(O)};return me(r,E)}var $n=(r,e,t,n,a,i)=>{var o=Qe(e,t);a=V(n,a),re([],[r],s=>{s=s[0];var l=`constructor ${s.name}`;if(s.registeredClass.constructor_body===void 0&&(s.registeredClass.constructor_body=[]),s.registeredClass.constructor_body[e-1]!==void 0)throw new se(`Cannot register multiple constructors with identical number of parameters (${e-1}) for class '${s.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return s.registeredClass.constructor_body[e-1]=()=>{Ie(`Cannot construct ${s.name} due to unbound types`,o)},re([],o,f=>(f.splice(1,0,null),s.registeredClass.constructor_body[e-1]=Ke(l,f,null,a,i),[])),[]})},Wr=r=>{r=r.trim();const e=r.indexOf("(");return e!==-1?r.substr(0,e):r},bn=(r,e,t,n,a,i,o,s,l)=>{var f=Qe(t,n);e=D(e),e=Wr(e),i=V(a,i),re([],[r],v=>{v=v[0];var _=`${v.name}.${e}`;e.startsWith("@@")&&(e=Symbol[e.substring(2)]),s&&v.registeredClass.pureVirtualFunctions.push(e);function p(){Ie(`Cannot call ${_} due to unbound types`,f)}var m=v.registeredClass.instancePrototype,E=m[e];return E===void 0||E.overloadTable===void 0&&E.className!==v.name&&E.argCount===t-2?(p.argCount=t-2,p.className=v.name,m[e]=p):(Fr(m,e,_),m[e].overloadTable[t-2]=p),re([],f,k=>{var T=Ke(_,k,v,i,o);return m[e].overloadTable===void 0?(T.argCount=t-2,m[e]=T):m[e].overloadTable[t-2]=T,[]}),[]})},er=[],z=[],rr=r=>{r>9&&--z[r+1]===0&&(z[r]=void 0,er.push(r))},wn=()=>z.length/2-5-er.length,Tn=()=>{z.push(0,1,void 0,1,null,1,!0,1,!1,1),u.count_emval_handles=wn},Z={toValue:r=>(r||y("Cannot use deleted val. handle = "+r),z[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=er.pop()||z.length;return z[e]=r,z[e+1]=1,e}}}},Cn={name:"emscripten::val",fromWireType:r=>{var e=Z.toValue(r);return rr(r),e},toWireType:(r,e)=>Z.toHandle(e),argPackAdvance:N,readValueFromPointer:de,destructorFunction:null},Mr=r=>Y(r,Cn),Pn=(r,e,t)=>{switch(e){case 1:return t?function(n){return this.fromWireType(x[n])}:function(n){return this.fromWireType(W[n])};case 2:return t?function(n){return this.fromWireType(ae[n>>1])}:function(n){return this.fromWireType(fe[n>>1])};case 4:return t?function(n){return this.fromWireType(M[n>>2])}:function(n){return this.fromWireType($[n>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Sn=(r,e,t,n)=>{e=D(e);function a(){}a.values={},Y(r,{name:e,constructor:a,fromWireType:function(i){return this.constructor.values[i]},toWireType:(i,o)=>o.value,argPackAdvance:N,readValueFromPointer:Pn(e,t,n),destructorFunction:null}),qe(e,a)},tr=(r,e)=>{var t=ee[r];return t===void 0&&y(`${e} has unknown type ${Ir(r)}`),t},An=(r,e,t)=>{var n=tr(r,"enum");e=D(e);var a=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:me(`${n.name}_${e}`,function(){})}});a.values[t]=i,a[e]=i},nr=r=>{if(r===null)return"null";var e=typeof r;return e==="object"||e==="array"||e==="function"?r.toString():""+r},En=(r,e)=>{switch(e){case 4:return function(t){return this.fromWireType(hr[t>>2])};case 8:return function(t){return this.fromWireType(pr[t>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},Fn=(r,e,t)=>{e=D(e),Y(r,{name:e,fromWireType:n=>n,toWireType:(n,a)=>a,argPackAdvance:N,readValueFromPointer:En(e,t),destructorFunction:null})},Rn=(r,e,t,n,a,i,o)=>{var s=Qe(e,t);r=D(r),r=Wr(r),a=V(n,a),qe(r,function(){Ie(`Cannot call ${r} due to unbound types`,s)},e-1),re([],s,l=>{var f=[l[0],null].concat(l.slice(1));return Rr(r,Ke(r,f,null,a,i),e-1),[]})},On=(r,e,t)=>{switch(e){case 1:return t?n=>x[n]:n=>W[n];case 2:return t?n=>ae[n>>1]:n=>fe[n>>1];case 4:return t?n=>M[n>>2]:n=>$[n>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Dn=(r,e,t,n,a)=>{e=D(e);var i=v=>v;if(n===0){var o=32-8*t;i=v=>v<<o>>>o}var s=e.includes("unsigned"),l=(v,_)=>{},f;s?f=function(v,_){return l(_,this.name),_>>>0}:f=function(v,_){return l(_,this.name),_},Y(r,{name:e,fromWireType:i,toWireType:f,argPackAdvance:N,readValueFromPointer:On(e,t,n!==0),destructorFunction:null})},In=(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],a=n[e];function i(o){var s=$[o>>2],l=$[o+4>>2];return new a(x.buffer,l,s)}t=D(t),Y(r,{name:t,fromWireType:i,argPackAdvance:N,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},Wn=(r,e)=>{Mr(r)},kr=(r,e,t,n)=>{if(!(n>0))return 0;for(var a=t,i=t+n-1,o=0;o<r.length;++o){var s=r.charCodeAt(o);if(s>=55296&&s<=57343){var l=r.charCodeAt(++o);s=65536+((s&1023)<<10)|l&1023}if(s<=127){if(t>=i)break;e[t++]=s}else if(s<=2047){if(t+1>=i)break;e[t++]=192|s>>6,e[t++]=128|s&63}else if(s<=65535){if(t+2>=i)break;e[t++]=224|s>>12,e[t++]=128|s>>6&63,e[t++]=128|s&63}else{if(t+3>=i)break;e[t++]=240|s>>18,e[t++]=128|s>>12&63,e[t++]=128|s>>6&63,e[t++]=128|s&63}}return e[t]=0,t-a},Mn=(r,e,t)=>kr(r,W,e,t),Ur=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},jr=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,Hr=(r,e,t)=>{for(var n=e+t,a=e;r[a]&&!(a>=n);)++a;if(a-e>16&&r.buffer&&jr)return jr.decode(r.subarray(e,a));for(var i="";e<a;){var o=r[e++];if(!(o&128)){i+=String.fromCharCode(o);continue}var s=r[e++]&63;if((o&224)==192){i+=String.fromCharCode((o&31)<<6|s);continue}var l=r[e++]&63;if((o&240)==224?o=(o&15)<<12|s<<6|l:o=(o&7)<<18|s<<12|l<<6|r[e++]&63,o<65536)i+=String.fromCharCode(o);else{var f=o-65536;i+=String.fromCharCode(55296|f>>10,56320|f&1023)}}return i},ar=(r,e)=>r?Hr(W,r,e):"",kn=(r,e)=>{e=D(e);var t=e==="std::string";Y(r,{name:e,fromWireType(n){var a=$[n>>2],i=n+4,o;if(t)for(var s=i,l=0;l<=a;++l){var f=i+l;if(l==a||W[f]==0){var v=f-s,_=ar(s,v);o===void 0?o=_:(o+="\0",o+=_),s=f+1}}else{for(var p=new Array(a),l=0;l<a;++l)p[l]=String.fromCharCode(W[i+l]);o=p.join("")}return G(n),o},toWireType(n,a){a instanceof ArrayBuffer&&(a=new Uint8Array(a));var i,o=typeof a=="string";o||a instanceof Uint8Array||a instanceof Uint8ClampedArray||a instanceof Int8Array||y("Cannot pass non-string to std::string"),t&&o?i=Ur(a):i=a.length;var s=sr(4+i+1),l=s+4;if($[s>>2]=i,t&&o)Mn(a,l,i+1);else if(o)for(var f=0;f<i;++f){var v=a.charCodeAt(f);v>255&&(G(l),y("String has UTF-16 code units that do not fit in 8 bits")),W[l+f]=v}else for(var f=0;f<i;++f)W[l+f]=a[f];return n!==null&&n.push(G,s),s},argPackAdvance:N,readValueFromPointer:de,destructorFunction(n){G(n)}})},Br=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,Un=(r,e)=>{for(var t=r,n=t>>1,a=n+e/2;!(n>=a)&&fe[n];)++n;if(t=n<<1,t-r>32&&Br)return Br.decode(W.subarray(r,t));for(var i="",o=0;!(o>=e/2);++o){var s=ae[r+o*2>>1];if(s==0)break;i+=String.fromCharCode(s)}return i},jn=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<2)return 0;t-=2;for(var a=e,i=t<r.length*2?t/2:r.length,o=0;o<i;++o){var s=r.charCodeAt(o);ae[e>>1]=s,e+=2}return ae[e>>1]=0,e-a},Hn=r=>r.length*2,Bn=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var a=M[r+t*4>>2];if(a==0)break;if(++t,a>=65536){var i=a-65536;n+=String.fromCharCode(55296|i>>10,56320|i&1023)}else n+=String.fromCharCode(a)}return n},xn=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<4)return 0;for(var a=e,i=a+t-4,o=0;o<r.length;++o){var s=r.charCodeAt(o);if(s>=55296&&s<=57343){var l=r.charCodeAt(++o);s=65536+((s&1023)<<10)|l&1023}if(M[e>>2]=s,e+=4,e+4>i)break}return M[e>>2]=0,e-a},Vn=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&++t,e+=4}return e},Yn=(r,e,t)=>{t=D(t);var n,a,i,o;e===2?(n=Un,a=jn,o=Hn,i=s=>fe[s>>1]):e===4&&(n=Bn,a=xn,o=Vn,i=s=>$[s>>2]),Y(r,{name:t,fromWireType:s=>{for(var l=$[s>>2],f,v=s+4,_=0;_<=l;++_){var p=s+4+_*e;if(_==l||i(p)==0){var m=p-v,E=n(v,m);f===void 0?f=E:(f+="\0",f+=E),v=p+e}}return G(s),f},toWireType:(s,l)=>{typeof l!="string"&&y(`Cannot pass non-string to C++ string type ${t}`);var f=o(l),v=sr(4+f+e);return $[v>>2]=f/e,a(l,v+4,f+e),s!==null&&s.push(G,v),v},argPackAdvance:N,readValueFromPointer:de,destructorFunction(s){G(s)}})},Nn=(r,e,t,n,a,i)=>{Se[r]={name:D(e),rawConstructor:V(t,n),rawDestructor:V(a,i),fields:[]}},Ln=(r,e,t,n,a,i,o,s,l,f)=>{Se[r].fields.push({fieldName:D(e),getterReturnType:t,getter:V(n,a),getterContext:i,setterArgumentType:o,setter:V(s,l),setterContext:f})},Xn=(r,e)=>{e=D(e),Y(r,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},ir=[],zn=(r,e,t,n)=>(r=ir[r],e=Z.toValue(e),r(null,e,t,n)),Zn={},Gn=r=>{var e=Zn[r];return e===void 0?D(r):e},xr=()=>{if(typeof globalThis=="object")return globalThis;function r(e){e.$$$embind_global$$$=e;var t=typeof $$$embind_global$$$=="object"&&e.$$$embind_global$$$==e;return t||delete e.$$$embind_global$$$,t}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&r(global)?$$$embind_global$$$=global:typeof self=="object"&&r(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},qn=r=>r===0?Z.toHandle(xr()):(r=Gn(r),Z.toHandle(xr()[r])),Jn=r=>{var e=ir.length;return ir.push(r),e},Qn=(r,e)=>{for(var t=new Array(r),n=0;n<r;++n)t[n]=tr($[e+n*4>>2],"parameter "+n);return t},Kn=Reflect.construct,ea=(r,e,t)=>{var n=[],a=r.toWireType(n,t);return n.length&&($[e>>2]=Z.toHandle(n)),a},ra=(r,e,t)=>{var n=Qn(r,e),a=n.shift();r--;var i=new Array(r),o=(l,f,v,_)=>{for(var p=0,m=0;m<r;++m)i[m]=n[m].readValueFromPointer(_+p),p+=n[m].argPackAdvance;var E=t===1?Kn(f,i):f.apply(l,i);return ea(a,v,E)},s=`methodCaller<(${n.map(l=>l.name).join(", ")}) => ${a.name}>`;return Jn(me(s,o))},ta=r=>{r>9&&(z[r+1]+=1)},na=r=>{var e=Z.toValue(r);Xe(e),rr(r)},aa=(r,e)=>{r=tr(r,"_emval_take_value");var t=r.readValueFromPointer(e);return Z.toHandle(t)},ia=()=>{Ve("")},oa=(r,e,t)=>W.copyWithin(r,e,e+t),sa=()=>2147483648,ua=r=>{var e=Te.buffer,t=(r-e.byteLength+65535)/65536;try{return Te.grow(t),_r(),1}catch{}},la=r=>{var e=W.length;r>>>=0;var t=sa();if(r>t)return!1;for(var n=(l,f)=>l+(f-l%f)%f,a=1;a<=4;a*=2){var i=e*(1+.2/a);i=Math.min(i,r+100663296);var o=Math.min(t,n(Math.max(r,i),65536)),s=ua(o);if(s)return!0}return!1},or={},ca=()=>L||"./this.program",ye=()=>{if(!ye.strings){var r=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:r,_:ca()};for(var t in or)or[t]===void 0?delete e[t]:e[t]=or[t];var n=[];for(var t in e)n.push(`${t}=${e[t]}`);ye.strings=n}return ye.strings},fa=(r,e)=>{for(var t=0;t<r.length;++t)x[e++]=r.charCodeAt(t);x[e]=0},va=(r,e)=>{var t=0;return ye().forEach((n,a)=>{var i=e+t;$[r+a*4>>2]=i,fa(n,i),t+=n.length+1}),0},da=(r,e)=>{var t=ye();$[r>>2]=t.length;var n=0;return t.forEach(a=>n+=a.length+1),$[e>>2]=n,0},ha=r=>52;function pa(r,e,t,n,a){return 70}var _a=[null,[],[]],ga=(r,e)=>{var t=_a[r];e===0||e===10?((r===1?wt:ne)(Hr(t,0)),t.length=0):t.push(e)},ma=(r,e,t,n)=>{for(var a=0,i=0;i<t;i++){var o=$[e>>2],s=$[e+4>>2];e+=8;for(var l=0;l<s;l++)ga(r,W[o+l]);a+=s}return $[n>>2]=a,0},ya=r=>r,We=r=>r%4===0&&(r%100!==0||r%400===0),$a=(r,e)=>{for(var t=0,n=0;n<=e;t+=r[n++]);return t},Vr=[31,29,31,30,31,30,31,31,30,31,30,31],Yr=[31,28,31,30,31,30,31,31,30,31,30,31],ba=(r,e)=>{for(var t=new Date(r.getTime());e>0;){var n=We(t.getFullYear()),a=t.getMonth(),i=(n?Vr:Yr)[a];if(e>i-t.getDate())e-=i-t.getDate()+1,t.setDate(1),a<11?t.setMonth(a+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1));else return t.setDate(t.getDate()+e),t}return t};function wa(r,e,t){var n=t>0?t:Ur(r)+1,a=new Array(n),i=kr(r,a,0,a.length);return e&&(a.length=i),a}var Ta=(r,e)=>{x.set(r,e)},Ca=(r,e,t,n)=>{var a=$[n+40>>2],i={tm_sec:M[n>>2],tm_min:M[n+4>>2],tm_hour:M[n+8>>2],tm_mday:M[n+12>>2],tm_mon:M[n+16>>2],tm_year:M[n+20>>2],tm_wday:M[n+24>>2],tm_yday:M[n+28>>2],tm_isdst:M[n+32>>2],tm_gmtoff:M[n+36>>2],tm_zone:a?ar(a):""},o=ar(t),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var l in s)o=o.replace(new RegExp(l,"g"),s[l]);var f=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],v=["January","February","March","April","May","June","July","August","September","October","November","December"];function _(c,d,F){for(var R=typeof c=="number"?c.toString():c||"";R.length<d;)R=F[0]+R;return R}function p(c,d){return _(c,d,"0")}function m(c,d){function F(ue){return ue<0?-1:ue>0?1:0}var R;return(R=F(c.getFullYear()-d.getFullYear()))===0&&(R=F(c.getMonth()-d.getMonth()))===0&&(R=F(c.getDate()-d.getDate())),R}function E(c){switch(c.getDay()){case 0:return new Date(c.getFullYear()-1,11,29);case 1:return c;case 2:return new Date(c.getFullYear(),0,3);case 3:return new Date(c.getFullYear(),0,2);case 4:return new Date(c.getFullYear(),0,1);case 5:return new Date(c.getFullYear()-1,11,31);case 6:return new Date(c.getFullYear()-1,11,30)}}function k(c){var d=ba(new Date(c.tm_year+1900,0,1),c.tm_yday),F=new Date(d.getFullYear(),0,4),R=new Date(d.getFullYear()+1,0,4),ue=E(F),ke=E(R);return m(ue,d)<=0?m(ke,d)<=0?d.getFullYear()+1:d.getFullYear():d.getFullYear()-1}var T={"%a":c=>f[c.tm_wday].substring(0,3),"%A":c=>f[c.tm_wday],"%b":c=>v[c.tm_mon].substring(0,3),"%B":c=>v[c.tm_mon],"%C":c=>{var d=c.tm_year+1900;return p(d/100|0,2)},"%d":c=>p(c.tm_mday,2),"%e":c=>_(c.tm_mday,2," "),"%g":c=>k(c).toString().substring(2),"%G":k,"%H":c=>p(c.tm_hour,2),"%I":c=>{var d=c.tm_hour;return d==0?d=12:d>12&&(d-=12),p(d,2)},"%j":c=>p(c.tm_mday+$a(We(c.tm_year+1900)?Vr:Yr,c.tm_mon-1),3),"%m":c=>p(c.tm_mon+1,2),"%M":c=>p(c.tm_min,2),"%n":()=>` | ||
`,"%p":c=>c.tm_hour>=0&&c.tm_hour<12?"AM":"PM","%S":c=>p(c.tm_sec,2),"%t":()=>" ","%u":c=>c.tm_wday||7,"%U":c=>{var d=c.tm_yday+7-c.tm_wday;return p(Math.floor(d/7),2)},"%V":c=>{var d=Math.floor((c.tm_yday+7-(c.tm_wday+6)%7)/7);if((c.tm_wday+371-c.tm_yday-2)%7<=2&&d++,d){if(d==53){var R=(c.tm_wday+371-c.tm_yday)%7;R!=4&&(R!=3||!We(c.tm_year))&&(d=1)}}else{d=52;var F=(c.tm_wday+7-c.tm_yday-1)%7;(F==4||F==5&&We(c.tm_year%400-1))&&d++}return p(d,2)},"%w":c=>c.tm_wday,"%W":c=>{var d=c.tm_yday+7-(c.tm_wday+6)%7;return p(Math.floor(d/7),2)},"%y":c=>(c.tm_year+1900).toString().substring(2),"%Y":c=>c.tm_year+1900,"%z":c=>{var d=c.tm_gmtoff,F=d>=0;return d=Math.abs(d)/60,d=d/60*100+d%60,(F?"+":"-")+("0000"+d).slice(-4)},"%Z":c=>c.tm_zone,"%%":()=>"%"};o=o.replace(/%%/g,"\0\0");for(var l in T)o.includes(l)&&(o=o.replace(new RegExp(l,"g"),T[l](i)));o=o.replace(/\0\0/g,"%");var O=wa(o,!1);return O.length>e?0:(Ta(O,r),O.length-1)},Pa=(r,e,t,n,a)=>Ca(r,e,t,n);Tr=u.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},Xt(),se=u.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},an(),en(),dn(),Dr=u.UnboundTypeError=gn(Error,"UnboundTypeError"),Tn();var Sa={s:Mt,u:kt,b:jt,g:Ht,q:Bt,K:xt,f:Vt,Y:Yt,e:Ut,ha:Nt,U:Lt,ba:Zt,fa:mn,ea:$n,w:bn,aa:Mr,x:Sn,h:An,O:Fn,P:Rn,t:Dn,o:In,ga:Wn,N:kn,C:Yn,A:Nn,ia:Ln,ca:Xn,E:zn,ka:rr,la:qn,M:ra,Q:ta,R:na,da:aa,B:ia,$:oa,Z:la,W:va,X:da,_:ha,T:pa,L:ma,F:Va,D:Oa,G:xa,m:Ya,a:Aa,d:Ia,p:Ra,k:Ba,I:ja,v:ka,H:Ha,z:La,S:za,l:Wa,j:Da,c:Fa,n:Ea,J:Ua,r:Na,i:Ma,y:Xa,ja:ya,V:Pa},P=Wt(),G=u._free=r=>(G=u._free=P.oa)(r),sr=u._malloc=r=>(sr=u._malloc=P.pa)(r),Nr=r=>(Nr=P.ra)(r),w=(r,e)=>(w=P.sa)(r,e),$e=r=>($e=P.ta)(r),S=()=>(S=P.ua)(),A=r=>(A=P.va)(r),Lr=r=>(Lr=P.wa)(r),Xr=r=>(Xr=P.xa)(r),zr=(r,e,t)=>(zr=P.ya)(r,e,t),Zr=r=>(Zr=P.za)(r);u.dynCall_viijii=(r,e,t,n,a,i,o)=>(u.dynCall_viijii=P.Aa)(r,e,t,n,a,i,o),u.dynCall_jiji=(r,e,t,n,a)=>(u.dynCall_jiji=P.Ba)(r,e,t,n,a);var Gr=u.dynCall_jiiii=(r,e,t,n,a)=>(Gr=u.dynCall_jiiii=P.Ca)(r,e,t,n,a);u.dynCall_iiiiij=(r,e,t,n,a,i,o)=>(u.dynCall_iiiiij=P.Da)(r,e,t,n,a,i,o),u.dynCall_iiiiijj=(r,e,t,n,a,i,o,s,l)=>(u.dynCall_iiiiijj=P.Ea)(r,e,t,n,a,i,o,s,l),u.dynCall_iiiiiijj=(r,e,t,n,a,i,o,s,l,f)=>(u.dynCall_iiiiiijj=P.Fa)(r,e,t,n,a,i,o,s,l,f);function Aa(r,e){var t=S();try{return C(r)(e)}catch(n){if(A(t),n!==n+0)throw n;w(1,0)}}function Ea(r,e,t,n){var a=S();try{C(r)(e,t,n)}catch(i){if(A(a),i!==i+0)throw i;w(1,0)}}function Fa(r,e,t){var n=S();try{C(r)(e,t)}catch(a){if(A(n),a!==a+0)throw a;w(1,0)}}function Ra(r,e,t,n){var a=S();try{return C(r)(e,t,n)}catch(i){if(A(a),i!==i+0)throw i;w(1,0)}}function Oa(r,e,t,n,a){var i=S();try{return C(r)(e,t,n,a)}catch(o){if(A(i),o!==o+0)throw o;w(1,0)}}function Da(r,e){var t=S();try{C(r)(e)}catch(n){if(A(t),n!==n+0)throw n;w(1,0)}}function Ia(r,e,t){var n=S();try{return C(r)(e,t)}catch(a){if(A(n),a!==a+0)throw a;w(1,0)}}function Wa(r){var e=S();try{C(r)()}catch(t){if(A(e),t!==t+0)throw t;w(1,0)}}function Ma(r,e,t,n,a,i,o,s,l,f,v){var _=S();try{C(r)(e,t,n,a,i,o,s,l,f,v)}catch(p){if(A(_),p!==p+0)throw p;w(1,0)}}function ka(r,e,t,n,a,i,o){var s=S();try{return C(r)(e,t,n,a,i,o)}catch(l){if(A(s),l!==l+0)throw l;w(1,0)}}function Ua(r,e,t,n,a){var i=S();try{C(r)(e,t,n,a)}catch(o){if(A(i),o!==o+0)throw o;w(1,0)}}function ja(r,e,t,n,a,i){var o=S();try{return C(r)(e,t,n,a,i)}catch(s){if(A(o),s!==s+0)throw s;w(1,0)}}function Ha(r,e,t,n,a,i,o,s){var l=S();try{return C(r)(e,t,n,a,i,o,s)}catch(f){if(A(l),f!==f+0)throw f;w(1,0)}}function Ba(r,e,t,n,a){var i=S();try{return C(r)(e,t,n,a)}catch(o){if(A(i),o!==o+0)throw o;w(1,0)}}function xa(r,e,t,n){var a=S();try{return C(r)(e,t,n)}catch(i){if(A(a),i!==i+0)throw i;w(1,0)}}function Va(r,e,t,n){var a=S();try{return C(r)(e,t,n)}catch(i){if(A(a),i!==i+0)throw i;w(1,0)}}function Ya(r){var e=S();try{return C(r)()}catch(t){if(A(e),t!==t+0)throw t;w(1,0)}}function Na(r,e,t,n,a,i,o,s){var l=S();try{C(r)(e,t,n,a,i,o,s)}catch(f){if(A(l),f!==f+0)throw f;w(1,0)}}function La(r,e,t,n,a,i,o,s,l,f,v,_){var p=S();try{return C(r)(e,t,n,a,i,o,s,l,f,v,_)}catch(m){if(A(p),m!==m+0)throw m;w(1,0)}}function Xa(r,e,t,n,a,i,o,s,l,f,v,_,p,m,E,k){var T=S();try{C(r)(e,t,n,a,i,o,s,l,f,v,_,p,m,E,k)}catch(O){if(A(T),O!==O+0)throw O;w(1,0)}}function za(r,e,t,n,a){var i=S();try{return Gr(r,e,t,n,a)}catch(o){if(A(i),o!==o+0)throw o;w(1,0)}}var Me;ve=function r(){Me||qr(),Me||(ve=r)};function qr(){if(K>0||(Tt(),K>0))return;function r(){Me||(Me=!0,u.calledRun=!0,!dr&&(Ct(),U(u),u.onRuntimeInitialized&&u.onRuntimeInitialized(),Pt()))}u.setStatus?(u.setStatus("Running..."),setTimeout(function(){setTimeout(function(){u.setStatus("")},1),r()},1)):r()}if(u.preInit)for(typeof u.preInit=="function"&&(u.preInit=[u.preInit]);u.preInit.length>0;)u.preInit.pop()();return qr(),g.ready}})();const vr={...te,formats:[...te.formats]};function mt(h){return Be(we,h)}function yt(h){return pt(we,h)}async function $t(h,g){return _t(we,h,g)}async function bt(h,g){return gt(we,h,g)}return I.barcodeFormats=He,I.binarizers=nt,I.characterSets=it,I.contentTypes=lr,I.defaultDecodeHints=vr,I.defaultReaderOptions=vr,I.eanAddOnSymbols=ut,I.getZXingModule=mt,I.purgeZXingModule=ht,I.readBarcodesFromImageData=bt,I.readBarcodesFromImageFile=$t,I.readOutputEccLevels=vt,I.setZXingModuleOverrides=yt,I.textModes=ct,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"}),I}({}); |
@@ -1,2 +0,2 @@ | ||
var ZXingWASM=function(E){"use strict";const ie=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"],oe=["Unknown","ASCII","ISO8859_1","ISO8859_2","ISO8859_3","ISO8859_4","ISO8859_5","ISO8859_6","ISO8859_7","ISO8859_8","ISO8859_9","ISO8859_10","ISO8859_11","ISO8859_13","ISO8859_14","ISO8859_15","ISO8859_16","Cp437","Cp1250","Cp1251","Cp1252","Cp1256","Shift_JIS","Big5","GB2312","GB18030","EUC_JP","EUC_KR","UTF16BE","UTF8","UTF16LE","UTF32BE","UTF32LE","BINARY"];function se(d,_){return d.CharacterSet[_]}const ue=[-1,0,1,2,3,4,5,6,7,8],lr={width:200,height:200,format:"QRCode",characterSet:"UTF8",eccLevel:-1,margin:10};function ce(d,_){return{..._,characterSet:se(d,_.characterSet)}}function fe(d){const{image:_,error:s}=d;return _?{image:new Blob([new Uint8Array(_)],{type:"image/png"}),error:""}:{image:null,error:s}}const le={locateFile:(d,_)=>{const s=d.match(/_(.+?)\.wasm$/);return s?`https://fastly.jsdelivr.net/npm/zxing-wasm@1.2.7/dist/${s[1]}/${d}`:_+d}};let er=new WeakMap;function $r(d,_){var D;const s=er.get(d);if(s!=null&&s.modulePromise&&(_===void 0||Object.is(_,s.moduleOverrides)))return s.modulePromise;const M=(D=_!=null?_:s==null?void 0:s.moduleOverrides)!=null?D:le,R=d({...M});return er.set(d,{moduleOverrides:M,modulePromise:R}),R}function ve(){er=new WeakMap}function de(d,_){er.set(d,{moduleOverrides:_})}async function _e(d,_,s=lr){const M={...lr,...s},R=await $r(d),D=R.writeBarcodeToImage(_,ce(R,M));return fe(D)}var vr=(()=>{var d=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(_={}){var ae;var s=_,M,R;s.ready=new Promise((r,e)=>{M=r,R=e});var D=Object.assign({},s),Cr=typeof window=="object",Er=typeof Bun<"u",me=typeof((ae=globalThis.WebAssembly)==null?void 0:ae.instantiate)=="function",tr=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&process.versions.node;var S="";function ye(r){return s.locateFile?s.locateFile(r,S):S+r}var dr;(Cr||tr||Er)&&(tr?S=self.location.href:typeof document<"u"&&document.currentScript&&(S=document.currentScript.src),d&&(S=d),S.startsWith("blob:")?S="":S=S.substr(0,S.replace(/[?#].*/,"").lastIndexOf("/")+1),tr&&(dr=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)})),s.print||console.log.bind(console);var q=s.printErr||console.error.bind(console);Object.assign(s,D),D=null,s.arguments&&s.arguments,s.thisProgram&&s.thisProgram,s.quit&&s.quit;var Q;s.wasmBinary&&(Q=s.wasmBinary);var nr,Rr=!1,O,m,N,G,x,h,Sr,Fr;function Pr(){var r=nr.buffer;s.HEAP8=O=new Int8Array(r),s.HEAP16=N=new Int16Array(r),s.HEAPU8=m=new Uint8Array(r),s.HEAPU16=G=new Uint16Array(r),s.HEAP32=x=new Int32Array(r),s.HEAPU32=h=new Uint32Array(r),s.HEAPF32=Sr=new Float32Array(r),s.HEAPF64=Fr=new Float64Array(r)}var Wr=[],Ir=[],Ur=[];function be(){if(s.preRun)for(typeof s.preRun=="function"&&(s.preRun=[s.preRun]);s.preRun.length;)$e(s.preRun.shift());_r(Wr)}function we(){_r(Ir)}function Te(){if(s.postRun)for(typeof s.postRun=="function"&&(s.postRun=[s.postRun]);s.postRun.length;)Ce(s.postRun.shift());_r(Ur)}function $e(r){Wr.unshift(r)}function Ae(r){Ir.unshift(r)}function Ce(r){Ur.unshift(r)}var j=0,J=null;function Ee(r){var e;j++,(e=s.monitorRunDependencies)===null||e===void 0||e.call(s,j)}function Re(r){var e;if(j--,(e=s.monitorRunDependencies)===null||e===void 0||e.call(s,j),j==0&&J){var t=J;J=null,t()}}function Or(r){var e;(e=s.onAbort)===null||e===void 0||e.call(s,r),r="Aborted("+r+")",q(r),Rr=!0,r+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(r);throw R(t),t}var Se="data:application/octet-stream;base64,",kr=r=>r.startsWith(Se),X;X="zxing_writer.wasm",kr(X)||(X=ye(X));function Mr(r){if(r==X&&Q)return new Uint8Array(Q);if(dr)return dr(r);throw"both async and sync fetching of the wasm failed"}function Fe(r){return!Q&&(Cr||tr||Er||me)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(e=>{if(!e.ok)throw`failed to load wasm binary file at '${r}'`;return e.arrayBuffer()}).catch(()=>Mr(r)):Promise.resolve().then(()=>Mr(r))}function Dr(r,e,t){return Fe(r).then(n=>WebAssembly.instantiate(n,e)).then(t,n=>{q(`failed to asynchronously prepare wasm: ${n}`),Or(n)})}function Pe(r,e,t,n){return!r&&typeof WebAssembly.instantiateStreaming=="function"&&!kr(e)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(a=>{var i=WebAssembly.instantiateStreaming(a,t);return i.then(n,function(u){return q(`wasm streaming compile failed: ${u}`),q("falling back to ArrayBuffer instantiation"),Dr(e,t,n)})}):Dr(e,t,n)}function We(){var r={a:qt};function e(n,a){return p=n.exports,nr=p.R,Pr(),qr=p.V,Ae(p.S),Re(),p}Ee();function t(n){e(n.instance)}if(s.instantiateWasm)try{return s.instantiateWasm(r,e)}catch(n){q(`Module.instantiateWasm callback failed with error: ${n}`),R(n)}return Pe(Q,X,r,t).catch(R),{}}var _r=r=>{for(;r.length>0;)r.shift()(s)};s.noExitRuntime;var jr=[],Ie=r=>{var e=new hr(r);return e.get_caught()||e.set_caught(!0),e.set_rethrown(!1),jr.push(e),re(e.excPtr),e.get_exception_ptr()},B=0,Ue=()=>{$(0,0);var r=jr.pop();zr(r.excPtr),B=0};class hr{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){h[this.ptr+4>>2]=e}get_type(){return h[this.ptr+4>>2]}set_destructor(e){h[this.ptr+8>>2]=e}get_destructor(){return h[this.ptr+8>>2]}set_caught(e){e=e?1:0,O[this.ptr+12]=e}get_caught(){return O[this.ptr+12]!=0}set_rethrown(e){e=e?1:0,O[this.ptr+13]=e}get_rethrown(){return O[this.ptr+13]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){h[this.ptr+16>>2]=e}get_adjusted_ptr(){return h[this.ptr+16>>2]}get_exception_ptr(){var e=te(this.get_type());if(e)return h[this.excPtr>>2];var t=this.get_adjusted_ptr();return t!==0?t:this.excPtr}}var Oe=r=>{throw B||(B=r),B},gr=r=>{var e=B;if(!e)return Y(0),0;var t=new hr(e);t.set_adjusted_ptr(e);var n=t.get_type();if(!n)return Y(0),e;for(var a in r){var i=r[a];if(i===0||i===n)break;var u=t.ptr+16;if(ee(i,n,u))return Y(i),e}return Y(n),e},ke=()=>gr([]),Me=r=>gr([r]),De=(r,e)=>gr([r,e]),je=(r,e,t)=>{var n=new hr(r);throw n.init(e,t),B=r,B},ar={},pr=r=>{for(;r.length;){var e=r.pop(),t=r.pop();t(e)}};function ir(r){return this.fromWireType(h[r>>2])}var L={},V={},or={},Br,Vr=r=>{throw new Br(r)},Hr=(r,e,t)=>{r.forEach(function(o){or[o]=e});function n(o){var c=t(o);c.length!==r.length&&Vr("Mismatched type converter count");for(var f=0;f<r.length;++f)F(r[f],c[f])}var a=new Array(e.length),i=[],u=0;e.forEach((o,c)=>{V.hasOwnProperty(o)?a[c]=V[o]:(i.push(o),L.hasOwnProperty(o)||(L[o]=[]),L[o].push(()=>{a[c]=V[o],++u,u===i.length&&n(a)}))}),i.length===0&&n(a)},Be=r=>{var e=ar[r];delete ar[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,i=a.map(u=>u.getterReturnType).concat(a.map(u=>u.setterArgumentType));Hr([r],i,u=>{var o={};return a.forEach((c,f)=>{var l=c.fieldName,v=u[f],g=c.getter,b=c.getterContext,k=u[f+a.length],z=c.setter,P=c.setterContext;o[l]={read:rr=>v.fromWireType(g(b,rr)),write:(rr,Tr)=>{var fr=[];z(P,rr,k.toWireType(fr,Tr)),pr(fr)}}}),[{name:e.name,fromWireType:c=>{var f={};for(var l in o)f[l]=o[l].read(c);return n(c),f},toWireType:(c,f)=>{for(var l in o)if(!(l in f))throw new TypeError(`Missing field: "${l}"`);var v=t();for(l in o)o[l].write(v,f[l]);return c!==null&&c.push(n,v),v},argPackAdvance:W,readValueFromPointer:ir,destructorFunction:n}]})},Ve=(r,e,t,n,a)=>{},He=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Nr=r},Nr,y=r=>{for(var e="",t=r;m[t];)e+=Nr[m[t++]];return e},xr,w=r=>{throw new xr(r)};function Ne(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=e.name;if(r||w(`type "${n}" must have a positive integer typeid pointer`),V.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;w(`Cannot register type '${n}' twice`)}if(V[r]=e,delete or[r],L.hasOwnProperty(r)){var a=L[r];delete L[r],a.forEach(i=>i())}}function F(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Ne(r,e,t)}var W=8,xe=(r,e,t,n)=>{e=y(e),F(r,{name:e,fromWireType:function(a){return!!a},toWireType:function(a,i){return i?t:n},argPackAdvance:W,readValueFromPointer:function(a){return this.fromWireType(m[a])},destructorFunction:null})},mr=[],I=[],yr=r=>{r>9&&--I[r+1]===0&&(I[r]=void 0,mr.push(r))},Xe=()=>I.length/2-5-mr.length,Le=()=>{I.push(0,1,void 0,1,null,1,!0,1,!1,1),s.count_emval_handles=Xe},H={toValue:r=>(r||w("Cannot use deleted val. handle = "+r),I[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=mr.pop()||I.length;return I[e]=r,I[e+1]=1,e}}}},Ze={name:"emscripten::val",fromWireType:r=>{var e=H.toValue(r);return yr(r),e},toWireType:(r,e)=>H.toHandle(e),argPackAdvance:W,readValueFromPointer:ir,destructorFunction:null},qe=r=>F(r,Ze),Qe=(r,e,t)=>{if(r[e].overloadTable===void 0){var n=r[e];r[e]=function(){for(var a=arguments.length,i=new Array(a),u=0;u<a;u++)i[u]=arguments[u];return r[e].overloadTable.hasOwnProperty(i.length)||w(`Function '${t}' called with an invalid number of arguments (${i.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[i.length].apply(this,i)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},Xr=(r,e,t)=>{s.hasOwnProperty(r)?((t===void 0||s[r].overloadTable!==void 0&&s[r].overloadTable[t]!==void 0)&&w(`Cannot register public name '${r}' twice`),Qe(s,r,r),s.hasOwnProperty(t)&&w(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),s[r].overloadTable[t]=e):(s[r]=e,t!==void 0&&(s[r].numArguments=t))},Ge=(r,e,t)=>{switch(e){case 1:return t?function(n){return this.fromWireType(O[n])}:function(n){return this.fromWireType(m[n])};case 2:return t?function(n){return this.fromWireType(N[n>>1])}:function(n){return this.fromWireType(G[n>>1])};case 4:return t?function(n){return this.fromWireType(x[n>>2])}:function(n){return this.fromWireType(h[n>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Je=(r,e,t,n)=>{e=y(e);function a(){}a.values={},F(r,{name:e,constructor:a,fromWireType:function(i){return this.constructor.values[i]},toWireType:(i,u)=>u.value,argPackAdvance:W,readValueFromPointer:Ge(e,t,n),destructorFunction:null}),Xr(e,a)},sr=(r,e)=>Object.defineProperty(e,"name",{value:r}),Lr=r=>{var e=Yr(r),t=y(e);return U(e),t},Zr=(r,e)=>{var t=V[r];return t===void 0&&w(`${e} has unknown type ${Lr(r)}`),t},Ke=(r,e,t)=>{var n=Zr(r,"enum");e=y(e);var a=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:sr(`${n.name}_${e}`,function(){})}});a.values[t]=i,a[e]=i},Ye=(r,e)=>{switch(e){case 4:return function(t){return this.fromWireType(Sr[t>>2])};case 8:return function(t){return this.fromWireType(Fr[t>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},ze=(r,e,t)=>{e=y(e),F(r,{name:e,fromWireType:n=>n,toWireType:(n,a)=>a,argPackAdvance:W,readValueFromPointer:Ye(e,t),destructorFunction:null})};function rt(r){for(var e=1;e<r.length;++e)if(r[e]!==null&&r[e].destructorFunction===void 0)return!0;return!1}function et(r,e,t,n,a,i){var u=e.length;u<2&&w("argTypes array size mismatch! Must at least get return value and 'this' types!");var o=e[1]!==null&&t!==null,c=rt(e),f=e[0].name!=="void",l=u-2,v=new Array(l),g=[],b=[],k=function(){arguments.length!==l&&w(`function ${r} called with ${arguments.length} arguments, expected ${l}`),b.length=0;var z;g.length=o?2:1,g[0]=a,o&&(z=e[1].toWireType(b,this),g[1]=z);for(var P=0;P<l;++P)v[P]=e[P+2].toWireType(b,P<0||arguments.length<=P?void 0:arguments[P]),g.push(v[P]);var rr=n(...g);function Tr(fr){if(c)pr(b);else for(var Z=o?1:2;Z<e.length;Z++){var on=Z===1?z:v[Z-2];e[Z].destructorFunction!==null&&e[Z].destructorFunction(on)}if(f)return e[0].fromWireType(fr)}return Tr(rr)};return sr(r,k)}var tt=(r,e)=>{for(var t=[],n=0;n<r;n++)t.push(h[e+n*4>>2]);return t},nt=(r,e,t)=>{s.hasOwnProperty(r)||Vr("Replacing nonexistent public symbol"),s[r].overloadTable!==void 0&&t!==void 0?s[r].overloadTable[t]=e:(s[r]=e,s[r].argCount=t)},at=(r,e,t)=>{var n=s["dynCall_"+r];return n(e,...t)},ur=[],qr,T=r=>{var e=ur[r];return e||(r>=ur.length&&(ur.length=r+1),ur[r]=e=qr.get(r)),e},it=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.includes("j"))return at(r,e,t);var n=T(e)(...t);return n},ot=(r,e)=>function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return it(r,e,n)},K=(r,e)=>{r=y(r);function t(){return r.includes("j")?ot(r,e):T(e)}var n=t();return typeof n!="function"&&w(`unknown function pointer with signature ${r}: ${e}`),n},st=(r,e)=>{var t=sr(e,function(n){this.name=e,this.message=n;var a=new Error(n).stack;a!==void 0&&(this.stack=this.toString()+` | ||
var ZXingWASM=function(E){"use strict";const ie=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"],oe=["Unknown","ASCII","ISO8859_1","ISO8859_2","ISO8859_3","ISO8859_4","ISO8859_5","ISO8859_6","ISO8859_7","ISO8859_8","ISO8859_9","ISO8859_10","ISO8859_11","ISO8859_13","ISO8859_14","ISO8859_15","ISO8859_16","Cp437","Cp1250","Cp1251","Cp1252","Cp1256","Shift_JIS","Big5","GB2312","GB18030","EUC_JP","EUC_KR","UTF16BE","UTF8","UTF16LE","UTF32BE","UTF32LE","BINARY"];function se(d,_){return d.CharacterSet[_]}const ue=[-1,0,1,2,3,4,5,6,7,8],lr={width:200,height:200,format:"QRCode",characterSet:"UTF8",eccLevel:-1,margin:10};function ce(d,_){return{..._,characterSet:se(d,_.characterSet)}}function fe(d){const{image:_,error:s}=d;return _?{image:new Blob([new Uint8Array(_)],{type:"image/png"}),error:""}:{image:null,error:s}}const le={locateFile:(d,_)=>{const s=d.match(/_(.+?)\.wasm$/);return s?`https://fastly.jsdelivr.net/npm/zxing-wasm@1.2.8/dist/${s[1]}/${d}`:_+d}};let er=new WeakMap;function $r(d,_){var D;const s=er.get(d);if(s!=null&&s.modulePromise&&(_===void 0||Object.is(_,s.moduleOverrides)))return s.modulePromise;const M=(D=_!=null?_:s==null?void 0:s.moduleOverrides)!=null?D:le,R=d({...M});return er.set(d,{moduleOverrides:M,modulePromise:R}),R}function ve(){er=new WeakMap}function de(d,_){er.set(d,{moduleOverrides:_})}async function _e(d,_,s=lr){const M={...lr,...s},R=await $r(d),D=R.writeBarcodeToImage(_,ce(R,M));return fe(D)}var vr=(()=>{var d=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(_={}){var ae;var s=_,M,R;s.ready=new Promise((r,e)=>{M=r,R=e});var D=Object.assign({},s),Cr=typeof window=="object",Er=typeof Bun<"u",me=typeof((ae=globalThis.WebAssembly)==null?void 0:ae.instantiate)=="function",tr=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&process.versions.node;var S="";function ye(r){return s.locateFile?s.locateFile(r,S):S+r}var dr;(Cr||tr||Er)&&(tr?S=self.location.href:typeof document<"u"&&document.currentScript&&(S=document.currentScript.src),d&&(S=d),S.startsWith("blob:")?S="":S=S.substr(0,S.replace(/[?#].*/,"").lastIndexOf("/")+1),tr&&(dr=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)})),s.print||console.log.bind(console);var q=s.printErr||console.error.bind(console);Object.assign(s,D),D=null,s.arguments&&s.arguments,s.thisProgram&&s.thisProgram,s.quit&&s.quit;var Q;s.wasmBinary&&(Q=s.wasmBinary);var nr,Rr=!1,O,m,N,G,x,h,Sr,Fr;function Pr(){var r=nr.buffer;s.HEAP8=O=new Int8Array(r),s.HEAP16=N=new Int16Array(r),s.HEAPU8=m=new Uint8Array(r),s.HEAPU16=G=new Uint16Array(r),s.HEAP32=x=new Int32Array(r),s.HEAPU32=h=new Uint32Array(r),s.HEAPF32=Sr=new Float32Array(r),s.HEAPF64=Fr=new Float64Array(r)}var Wr=[],Ir=[],Ur=[];function be(){if(s.preRun)for(typeof s.preRun=="function"&&(s.preRun=[s.preRun]);s.preRun.length;)$e(s.preRun.shift());_r(Wr)}function we(){_r(Ir)}function Te(){if(s.postRun)for(typeof s.postRun=="function"&&(s.postRun=[s.postRun]);s.postRun.length;)Ce(s.postRun.shift());_r(Ur)}function $e(r){Wr.unshift(r)}function Ae(r){Ir.unshift(r)}function Ce(r){Ur.unshift(r)}var j=0,J=null;function Ee(r){var e;j++,(e=s.monitorRunDependencies)===null||e===void 0||e.call(s,j)}function Re(r){var e;if(j--,(e=s.monitorRunDependencies)===null||e===void 0||e.call(s,j),j==0&&J){var t=J;J=null,t()}}function Or(r){var e;(e=s.onAbort)===null||e===void 0||e.call(s,r),r="Aborted("+r+")",q(r),Rr=!0,r+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(r);throw R(t),t}var Se="data:application/octet-stream;base64,",kr=r=>r.startsWith(Se),X;X="zxing_writer.wasm",kr(X)||(X=ye(X));function Mr(r){if(r==X&&Q)return new Uint8Array(Q);if(dr)return dr(r);throw"both async and sync fetching of the wasm failed"}function Fe(r){return!Q&&(Cr||tr||Er||me)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(e=>{if(!e.ok)throw`failed to load wasm binary file at '${r}'`;return e.arrayBuffer()}).catch(()=>Mr(r)):Promise.resolve().then(()=>Mr(r))}function Dr(r,e,t){return Fe(r).then(n=>WebAssembly.instantiate(n,e)).then(t,n=>{q(`failed to asynchronously prepare wasm: ${n}`),Or(n)})}function Pe(r,e,t,n){return!r&&typeof WebAssembly.instantiateStreaming=="function"&&!kr(e)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(a=>{var i=WebAssembly.instantiateStreaming(a,t);return i.then(n,function(u){return q(`wasm streaming compile failed: ${u}`),q("falling back to ArrayBuffer instantiation"),Dr(e,t,n)})}):Dr(e,t,n)}function We(){var r={a:qt};function e(n,a){return p=n.exports,nr=p.R,Pr(),qr=p.V,Ae(p.S),Re(),p}Ee();function t(n){e(n.instance)}if(s.instantiateWasm)try{return s.instantiateWasm(r,e)}catch(n){q(`Module.instantiateWasm callback failed with error: ${n}`),R(n)}return Pe(Q,X,r,t).catch(R),{}}var _r=r=>{for(;r.length>0;)r.shift()(s)};s.noExitRuntime;var jr=[],Ie=r=>{var e=new hr(r);return e.get_caught()||e.set_caught(!0),e.set_rethrown(!1),jr.push(e),re(e.excPtr),e.get_exception_ptr()},B=0,Ue=()=>{$(0,0);var r=jr.pop();zr(r.excPtr),B=0};class hr{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){h[this.ptr+4>>2]=e}get_type(){return h[this.ptr+4>>2]}set_destructor(e){h[this.ptr+8>>2]=e}get_destructor(){return h[this.ptr+8>>2]}set_caught(e){e=e?1:0,O[this.ptr+12]=e}get_caught(){return O[this.ptr+12]!=0}set_rethrown(e){e=e?1:0,O[this.ptr+13]=e}get_rethrown(){return O[this.ptr+13]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){h[this.ptr+16>>2]=e}get_adjusted_ptr(){return h[this.ptr+16>>2]}get_exception_ptr(){var e=te(this.get_type());if(e)return h[this.excPtr>>2];var t=this.get_adjusted_ptr();return t!==0?t:this.excPtr}}var Oe=r=>{throw B||(B=r),B},gr=r=>{var e=B;if(!e)return Y(0),0;var t=new hr(e);t.set_adjusted_ptr(e);var n=t.get_type();if(!n)return Y(0),e;for(var a in r){var i=r[a];if(i===0||i===n)break;var u=t.ptr+16;if(ee(i,n,u))return Y(i),e}return Y(n),e},ke=()=>gr([]),Me=r=>gr([r]),De=(r,e)=>gr([r,e]),je=(r,e,t)=>{var n=new hr(r);throw n.init(e,t),B=r,B},ar={},pr=r=>{for(;r.length;){var e=r.pop(),t=r.pop();t(e)}};function ir(r){return this.fromWireType(h[r>>2])}var L={},V={},or={},Br,Vr=r=>{throw new Br(r)},Hr=(r,e,t)=>{r.forEach(function(o){or[o]=e});function n(o){var c=t(o);c.length!==r.length&&Vr("Mismatched type converter count");for(var f=0;f<r.length;++f)F(r[f],c[f])}var a=new Array(e.length),i=[],u=0;e.forEach((o,c)=>{V.hasOwnProperty(o)?a[c]=V[o]:(i.push(o),L.hasOwnProperty(o)||(L[o]=[]),L[o].push(()=>{a[c]=V[o],++u,u===i.length&&n(a)}))}),i.length===0&&n(a)},Be=r=>{var e=ar[r];delete ar[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,i=a.map(u=>u.getterReturnType).concat(a.map(u=>u.setterArgumentType));Hr([r],i,u=>{var o={};return a.forEach((c,f)=>{var l=c.fieldName,v=u[f],g=c.getter,b=c.getterContext,k=u[f+a.length],z=c.setter,P=c.setterContext;o[l]={read:rr=>v.fromWireType(g(b,rr)),write:(rr,Tr)=>{var fr=[];z(P,rr,k.toWireType(fr,Tr)),pr(fr)}}}),[{name:e.name,fromWireType:c=>{var f={};for(var l in o)f[l]=o[l].read(c);return n(c),f},toWireType:(c,f)=>{for(var l in o)if(!(l in f))throw new TypeError(`Missing field: "${l}"`);var v=t();for(l in o)o[l].write(v,f[l]);return c!==null&&c.push(n,v),v},argPackAdvance:W,readValueFromPointer:ir,destructorFunction:n}]})},Ve=(r,e,t,n,a)=>{},He=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Nr=r},Nr,y=r=>{for(var e="",t=r;m[t];)e+=Nr[m[t++]];return e},xr,w=r=>{throw new xr(r)};function Ne(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=e.name;if(r||w(`type "${n}" must have a positive integer typeid pointer`),V.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;w(`Cannot register type '${n}' twice`)}if(V[r]=e,delete or[r],L.hasOwnProperty(r)){var a=L[r];delete L[r],a.forEach(i=>i())}}function F(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Ne(r,e,t)}var W=8,xe=(r,e,t,n)=>{e=y(e),F(r,{name:e,fromWireType:function(a){return!!a},toWireType:function(a,i){return i?t:n},argPackAdvance:W,readValueFromPointer:function(a){return this.fromWireType(m[a])},destructorFunction:null})},mr=[],I=[],yr=r=>{r>9&&--I[r+1]===0&&(I[r]=void 0,mr.push(r))},Xe=()=>I.length/2-5-mr.length,Le=()=>{I.push(0,1,void 0,1,null,1,!0,1,!1,1),s.count_emval_handles=Xe},H={toValue:r=>(r||w("Cannot use deleted val. handle = "+r),I[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=mr.pop()||I.length;return I[e]=r,I[e+1]=1,e}}}},Ze={name:"emscripten::val",fromWireType:r=>{var e=H.toValue(r);return yr(r),e},toWireType:(r,e)=>H.toHandle(e),argPackAdvance:W,readValueFromPointer:ir,destructorFunction:null},qe=r=>F(r,Ze),Qe=(r,e,t)=>{if(r[e].overloadTable===void 0){var n=r[e];r[e]=function(){for(var a=arguments.length,i=new Array(a),u=0;u<a;u++)i[u]=arguments[u];return r[e].overloadTable.hasOwnProperty(i.length)||w(`Function '${t}' called with an invalid number of arguments (${i.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[i.length].apply(this,i)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},Xr=(r,e,t)=>{s.hasOwnProperty(r)?((t===void 0||s[r].overloadTable!==void 0&&s[r].overloadTable[t]!==void 0)&&w(`Cannot register public name '${r}' twice`),Qe(s,r,r),s.hasOwnProperty(t)&&w(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),s[r].overloadTable[t]=e):(s[r]=e,t!==void 0&&(s[r].numArguments=t))},Ge=(r,e,t)=>{switch(e){case 1:return t?function(n){return this.fromWireType(O[n])}:function(n){return this.fromWireType(m[n])};case 2:return t?function(n){return this.fromWireType(N[n>>1])}:function(n){return this.fromWireType(G[n>>1])};case 4:return t?function(n){return this.fromWireType(x[n>>2])}:function(n){return this.fromWireType(h[n>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Je=(r,e,t,n)=>{e=y(e);function a(){}a.values={},F(r,{name:e,constructor:a,fromWireType:function(i){return this.constructor.values[i]},toWireType:(i,u)=>u.value,argPackAdvance:W,readValueFromPointer:Ge(e,t,n),destructorFunction:null}),Xr(e,a)},sr=(r,e)=>Object.defineProperty(e,"name",{value:r}),Lr=r=>{var e=Yr(r),t=y(e);return U(e),t},Zr=(r,e)=>{var t=V[r];return t===void 0&&w(`${e} has unknown type ${Lr(r)}`),t},Ke=(r,e,t)=>{var n=Zr(r,"enum");e=y(e);var a=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:sr(`${n.name}_${e}`,function(){})}});a.values[t]=i,a[e]=i},Ye=(r,e)=>{switch(e){case 4:return function(t){return this.fromWireType(Sr[t>>2])};case 8:return function(t){return this.fromWireType(Fr[t>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},ze=(r,e,t)=>{e=y(e),F(r,{name:e,fromWireType:n=>n,toWireType:(n,a)=>a,argPackAdvance:W,readValueFromPointer:Ye(e,t),destructorFunction:null})};function rt(r){for(var e=1;e<r.length;++e)if(r[e]!==null&&r[e].destructorFunction===void 0)return!0;return!1}function et(r,e,t,n,a,i){var u=e.length;u<2&&w("argTypes array size mismatch! Must at least get return value and 'this' types!");var o=e[1]!==null&&t!==null,c=rt(e),f=e[0].name!=="void",l=u-2,v=new Array(l),g=[],b=[],k=function(){arguments.length!==l&&w(`function ${r} called with ${arguments.length} arguments, expected ${l}`),b.length=0;var z;g.length=o?2:1,g[0]=a,o&&(z=e[1].toWireType(b,this),g[1]=z);for(var P=0;P<l;++P)v[P]=e[P+2].toWireType(b,P<0||arguments.length<=P?void 0:arguments[P]),g.push(v[P]);var rr=n(...g);function Tr(fr){if(c)pr(b);else for(var Z=o?1:2;Z<e.length;Z++){var on=Z===1?z:v[Z-2];e[Z].destructorFunction!==null&&e[Z].destructorFunction(on)}if(f)return e[0].fromWireType(fr)}return Tr(rr)};return sr(r,k)}var tt=(r,e)=>{for(var t=[],n=0;n<r;n++)t.push(h[e+n*4>>2]);return t},nt=(r,e,t)=>{s.hasOwnProperty(r)||Vr("Replacing nonexistent public symbol"),s[r].overloadTable!==void 0&&t!==void 0?s[r].overloadTable[t]=e:(s[r]=e,s[r].argCount=t)},at=(r,e,t)=>{var n=s["dynCall_"+r];return n(e,...t)},ur=[],qr,T=r=>{var e=ur[r];return e||(r>=ur.length&&(ur.length=r+1),ur[r]=e=qr.get(r)),e},it=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.includes("j"))return at(r,e,t);var n=T(e)(...t);return n},ot=(r,e)=>function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return it(r,e,n)},K=(r,e)=>{r=y(r);function t(){return r.includes("j")?ot(r,e):T(e)}var n=t();return typeof n!="function"&&w(`unknown function pointer with signature ${r}: ${e}`),n},st=(r,e)=>{var t=sr(e,function(n){this.name=e,this.message=n;var a=new Error(n).stack;a!==void 0&&(this.stack=this.toString()+` | ||
`+a.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},Qr,ut=(r,e)=>{var t=[],n={};function a(i){if(!n[i]&&!V[i]){if(or[i]){or[i].forEach(a);return}t.push(i),n[i]=!0}}throw e.forEach(a),new Qr(`${r}: `+t.map(Lr).join([", "]))},ct=r=>{r=r.trim();const e=r.indexOf("(");return e!==-1?r.substr(0,e):r},ft=(r,e,t,n,a,i,u)=>{var o=tt(e,t);r=y(r),r=ct(r),a=K(n,a),Xr(r,function(){ut(`Cannot call ${r} due to unbound types`,o)},e-1),Hr([],o,c=>{var f=[c[0],null].concat(c.slice(1));return nt(r,et(r,f,null,a,i),e-1),[]})},lt=(r,e,t)=>{switch(e){case 1:return t?n=>O[n]:n=>m[n];case 2:return t?n=>N[n>>1]:n=>G[n>>1];case 4:return t?n=>x[n>>2]:n=>h[n>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},vt=(r,e,t,n,a)=>{e=y(e);var i=l=>l;if(n===0){var u=32-8*t;i=l=>l<<u>>>u}var o=e.includes("unsigned"),c=(l,v)=>{},f;o?f=function(l,v){return c(v,this.name),v>>>0}:f=function(l,v){return c(v,this.name),v},F(r,{name:e,fromWireType:i,toWireType:f,argPackAdvance:W,readValueFromPointer:lt(e,t,n!==0),destructorFunction:null})},dt=(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],a=n[e];function i(u){var o=h[u>>2],c=h[u+4>>2];return new a(O.buffer,c,o)}t=y(t),F(r,{name:t,fromWireType:i,argPackAdvance:W,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},_t=(r,e,t,n)=>{if(!(n>0))return 0;for(var a=t,i=t+n-1,u=0;u<r.length;++u){var o=r.charCodeAt(u);if(o>=55296&&o<=57343){var c=r.charCodeAt(++u);o=65536+((o&1023)<<10)|c&1023}if(o<=127){if(t>=i)break;e[t++]=o}else if(o<=2047){if(t+1>=i)break;e[t++]=192|o>>6,e[t++]=128|o&63}else if(o<=65535){if(t+2>=i)break;e[t++]=224|o>>12,e[t++]=128|o>>6&63,e[t++]=128|o&63}else{if(t+3>=i)break;e[t++]=240|o>>18,e[t++]=128|o>>12&63,e[t++]=128|o>>6&63,e[t++]=128|o&63}}return e[t]=0,t-a},ht=(r,e,t)=>_t(r,m,e,t),gt=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},Gr=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,pt=(r,e,t)=>{for(var n=e+t,a=e;r[a]&&!(a>=n);)++a;if(a-e>16&&r.buffer&&Gr)return Gr.decode(r.subarray(e,a));for(var i="";e<a;){var u=r[e++];if(!(u&128)){i+=String.fromCharCode(u);continue}var o=r[e++]&63;if((u&224)==192){i+=String.fromCharCode((u&31)<<6|o);continue}var c=r[e++]&63;if((u&240)==224?u=(u&15)<<12|o<<6|c:u=(u&7)<<18|o<<12|c<<6|r[e++]&63,u<65536)i+=String.fromCharCode(u);else{var f=u-65536;i+=String.fromCharCode(55296|f>>10,56320|f&1023)}}return i},mt=(r,e)=>r?pt(m,r,e):"",yt=(r,e)=>{e=y(e);var t=e==="std::string";F(r,{name:e,fromWireType(n){var a=h[n>>2],i=n+4,u;if(t)for(var o=i,c=0;c<=a;++c){var f=i+c;if(c==a||m[f]==0){var l=f-o,v=mt(o,l);u===void 0?u=v:(u+="\0",u+=v),o=f+1}}else{for(var g=new Array(a),c=0;c<a;++c)g[c]=String.fromCharCode(m[i+c]);u=g.join("")}return U(n),u},toWireType(n,a){a instanceof ArrayBuffer&&(a=new Uint8Array(a));var i,u=typeof a=="string";u||a instanceof Uint8Array||a instanceof Uint8ClampedArray||a instanceof Int8Array||w("Cannot pass non-string to std::string"),t&&u?i=gt(a):i=a.length;var o=wr(4+i+1),c=o+4;if(h[o>>2]=i,t&&u)ht(a,c,i+1);else if(u)for(var f=0;f<i;++f){var l=a.charCodeAt(f);l>255&&(U(c),w("String has UTF-16 code units that do not fit in 8 bits")),m[c+f]=l}else for(var f=0;f<i;++f)m[c+f]=a[f];return n!==null&&n.push(U,o),o},argPackAdvance:W,readValueFromPointer:ir,destructorFunction(n){U(n)}})},Jr=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,bt=(r,e)=>{for(var t=r,n=t>>1,a=n+e/2;!(n>=a)&&G[n];)++n;if(t=n<<1,t-r>32&&Jr)return Jr.decode(m.subarray(r,t));for(var i="",u=0;!(u>=e/2);++u){var o=N[r+u*2>>1];if(o==0)break;i+=String.fromCharCode(o)}return i},wt=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<2)return 0;t-=2;for(var a=e,i=t<r.length*2?t/2:r.length,u=0;u<i;++u){var o=r.charCodeAt(u);N[e>>1]=o,e+=2}return N[e>>1]=0,e-a},Tt=r=>r.length*2,$t=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var a=x[r+t*4>>2];if(a==0)break;if(++t,a>=65536){var i=a-65536;n+=String.fromCharCode(55296|i>>10,56320|i&1023)}else n+=String.fromCharCode(a)}return n},At=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<4)return 0;for(var a=e,i=a+t-4,u=0;u<r.length;++u){var o=r.charCodeAt(u);if(o>=55296&&o<=57343){var c=r.charCodeAt(++u);o=65536+((o&1023)<<10)|c&1023}if(x[e>>2]=o,e+=4,e+4>i)break}return x[e>>2]=0,e-a},Ct=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&++t,e+=4}return e},Et=(r,e,t)=>{t=y(t);var n,a,i,u;e===2?(n=bt,a=wt,u=Tt,i=o=>G[o>>1]):e===4&&(n=$t,a=At,u=Ct,i=o=>h[o>>2]),F(r,{name:t,fromWireType:o=>{for(var c=h[o>>2],f,l=o+4,v=0;v<=c;++v){var g=o+4+v*e;if(v==c||i(g)==0){var b=g-l,k=n(l,b);f===void 0?f=k:(f+="\0",f+=k),l=g+e}}return U(o),f},toWireType:(o,c)=>{typeof c!="string"&&w(`Cannot pass non-string to C++ string type ${t}`);var f=u(c),l=wr(4+f+e);return h[l>>2]=f/e,a(c,l+4,f+e),o!==null&&o.push(U,l),l},argPackAdvance:W,readValueFromPointer:ir,destructorFunction(o){U(o)}})},Rt=(r,e,t,n,a,i)=>{ar[r]={name:y(e),rawConstructor:K(t,n),rawDestructor:K(a,i),fields:[]}},St=(r,e,t,n,a,i,u,o,c,f)=>{ar[r].fields.push({fieldName:y(e),getterReturnType:t,getter:K(n,a),getterContext:i,setterArgumentType:u,setter:K(o,c),setterContext:f})},Ft=(r,e)=>{e=y(e),F(r,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},br=[],Pt=(r,e,t,n)=>(r=br[r],e=H.toValue(e),r(null,e,t,n)),Wt={},It=r=>{var e=Wt[r];return e===void 0?y(r):e},Kr=()=>{if(typeof globalThis=="object")return globalThis;function r(e){e.$$$embind_global$$$=e;var t=typeof $$$embind_global$$$=="object"&&e.$$$embind_global$$$==e;return t||delete e.$$$embind_global$$$,t}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&r(global)?$$$embind_global$$$=global:typeof self=="object"&&r(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},Ut=r=>r===0?H.toHandle(Kr()):(r=It(r),H.toHandle(Kr()[r])),Ot=r=>{var e=br.length;return br.push(r),e},kt=(r,e)=>{for(var t=new Array(r),n=0;n<r;++n)t[n]=Zr(h[e+n*4>>2],"parameter "+n);return t},Mt=Reflect.construct,Dt=(r,e,t)=>{var n=[],a=r.toWireType(n,t);return n.length&&(h[e>>2]=H.toHandle(n)),a},jt=(r,e,t)=>{var n=kt(r,e),a=n.shift();r--;var i=new Array(r),u=(c,f,l,v)=>{for(var g=0,b=0;b<r;++b)i[b]=n[b].readValueFromPointer(v+g),g+=n[b].argPackAdvance;var k=t===1?Mt(f,i):f.apply(c,i);return Dt(a,l,k)},o=`methodCaller<(${n.map(c=>c.name).join(", ")}) => ${a.name}>`;return Ot(sr(o,u))},Bt=r=>{r>9&&(I[r+1]+=1)},Vt=r=>{var e=H.toValue(r);pr(e),yr(r)},Ht=()=>{Or("")},Nt=(r,e,t)=>m.copyWithin(r,e,e+t),xt=()=>2147483648,Xt=r=>{var e=nr.buffer,t=(r-e.byteLength+65535)/65536;try{return nr.grow(t),Pr(),1}catch{}},Lt=r=>{var e=m.length;r>>>=0;var t=xt();if(r>t)return!1;for(var n=(c,f)=>c+(f-c%f)%f,a=1;a<=4;a*=2){var i=e*(1+.2/a);i=Math.min(i,r+100663296);var u=Math.min(t,n(Math.max(r,i),65536)),o=Xt(u);if(o)return!0}return!1},Zt=r=>r;Br=s.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},He(),xr=s.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Le(),Qr=s.UnboundTypeError=st(Error,"UnboundTypeError");var qt={r:Ie,q:Ue,g:ke,d:Me,k:De,a:je,i:Oe,M:Be,C:Ve,H:xe,G:qe,K:Je,b:Ke,v:ze,L:ft,h:vt,e:dt,u:yt,p:Et,w:Rt,N:St,I:Ft,z:Pt,P:yr,B:Ut,A:jt,x:Bt,Q:Vt,s:Ht,F:Nt,E:Lt,y:zt,c:Qt,l:rn,n:Yt,o:en,f:Gt,t:an,m:nn,D:Kt,J:Jt,j:tn,O:Zt},p=We(),wr=s._malloc=r=>(wr=s._malloc=p.T)(r),U=s._free=r=>(U=s._free=p.U)(r),Yr=r=>(Yr=p.W)(r),$=(r,e)=>($=p.X)(r,e),Y=r=>(Y=p.Y)(r),A=()=>(A=p.Z)(),C=r=>(C=p._)(r),zr=r=>(zr=p.$)(r),re=r=>(re=p.aa)(r),ee=(r,e,t)=>(ee=p.ba)(r,e,t),te=r=>(te=p.ca)(r);function Qt(r,e){var t=A();try{return T(r)(e)}catch(n){if(C(t),n!==n+0)throw n;$(1,0)}}function Gt(r,e){var t=A();try{T(r)(e)}catch(n){if(C(t),n!==n+0)throw n;$(1,0)}}function Jt(r,e,t,n,a,i){var u=A();try{T(r)(e,t,n,a,i)}catch(o){if(C(u),o!==o+0)throw o;$(1,0)}}function Kt(r,e,t,n,a){var i=A();try{T(r)(e,t,n,a)}catch(u){if(C(i),u!==u+0)throw u;$(1,0)}}function Yt(r,e,t,n){var a=A();try{return T(r)(e,t,n)}catch(i){if(C(a),i!==i+0)throw i;$(1,0)}}function zt(r,e,t,n,a){var i=A();try{return T(r)(e,t,n,a)}catch(u){if(C(i),u!==u+0)throw u;$(1,0)}}function rn(r,e,t){var n=A();try{return T(r)(e,t)}catch(a){if(C(n),a!==a+0)throw a;$(1,0)}}function en(r){var e=A();try{T(r)()}catch(t){if(C(e),t!==t+0)throw t;$(1,0)}}function tn(r,e,t,n,a,i,u,o,c,f,l){var v=A();try{T(r)(e,t,n,a,i,u,o,c,f,l)}catch(g){if(C(v),g!==g+0)throw g;$(1,0)}}function nn(r,e,t,n){var a=A();try{T(r)(e,t,n)}catch(i){if(C(a),i!==i+0)throw i;$(1,0)}}function an(r,e,t){var n=A();try{T(r)(e,t)}catch(a){if(C(n),a!==a+0)throw a;$(1,0)}}var cr;J=function r(){cr||ne(),cr||(J=r)};function ne(){if(j>0||(be(),j>0))return;function r(){cr||(cr=!0,s.calledRun=!0,!Rr&&(we(),M(s),s.onRuntimeInitialized&&s.onRuntimeInitialized(),Te()))}s.setStatus?(s.setStatus("Running..."),setTimeout(function(){setTimeout(function(){s.setStatus("")},1),r()},1)):r()}if(s.preInit)for(typeof s.preInit=="function"&&(s.preInit=[s.preInit]);s.preInit.length>0;)s.preInit.pop()();return ne(),_.ready}})();const Ar={...lr};function he(d){return $r(vr,d)}function ge(d){return de(vr,d)}async function pe(d,_){return _e(vr,d,_)}return E.barcodeFormats=ie,E.characterSets=oe,E.defaultEncodeHints=Ar,E.defaultWriterOptions=Ar,E.getZXingModule=he,E.purgeZXingModule=ve,E.setZXingModuleOverrides=ge,E.writeBarcodeToImageFile=pe,E.writeInputEccLevels=ue,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}),E}({}); |
@@ -5,3 +5,3 @@ { | ||
"private": false, | ||
"version": "1.2.7", | ||
"version": "1.2.8", | ||
"type": "module", | ||
@@ -100,12 +100,12 @@ "files": ["./dist"], | ||
"devDependencies": { | ||
"@babel/core": "^7.24.3", | ||
"@babel/types": "^7.24.0", | ||
"@babel/core": "^7.24.5", | ||
"@babel/types": "^7.24.5", | ||
"@biomejs/biome": "1.6.3", | ||
"@changesets/cli": "^2.27.1", | ||
"@types/babel__core": "^7.20.5", | ||
"@types/node": "^20.12.3", | ||
"@types/node": "^20.12.10", | ||
"concurrently": "^8.2.2", | ||
"copy-files-from-to": "^3.9.1", | ||
"lint-staged": "^15.2.2", | ||
"npm-check-updates": "^16.14.18", | ||
"npm-check-updates": "^16.14.20", | ||
"prettier": "^3.2.5", | ||
@@ -115,10 +115,10 @@ "pretty-quick": "^4.0.0", | ||
"simple-git-hooks": "^2.11.1", | ||
"tsx": "^4.7.1", | ||
"typedoc": "^0.25.12", | ||
"typescript": "^5.4.3", | ||
"vite": "^5.2.7", | ||
"tsx": "^4.9.3", | ||
"typedoc": "^0.25.13", | ||
"typescript": "^5.4.5", | ||
"vite": "^5.2.11", | ||
"vite-plugin-babel": "^1.2.0" | ||
}, | ||
"dependencies": { | ||
"@types/emscripten": "^1.39.10" | ||
"@types/emscripten": "^1.39.11" | ||
}, | ||
@@ -125,0 +125,0 @@ "overrides": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 3 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2696599
39
Updated@types/emscripten@^1.39.11