chromadb-default-embed
Version:
Chroma's fork of @xenova/transformers serving as our default embedding function
34 lines • 863 kB
JavaScript
var __webpack_modules__={"./node_modules/onnxruntime-common/dist/lib/backend-impl.js":
/*!******************************************************************!*\
!*** ./node_modules/onnxruntime-common/dist/lib/backend-impl.js ***!
\******************************************************************/(e,t,n)=>{n.r(t),n.d(t,{registerBackend:()=>i,resolveBackend:()=>s});const r={},o=[],i=(e,t,n)=>{if(!t||"function"!=typeof t.init||"function"!=typeof t.createSessionHandler)throw new TypeError("not a valid backend");{const i=r[e];if(void 0===i)r[e]={backend:t,priority:n};else{if(i.priority>n)return;if(i.priority===n&&i.backend!==t)throw new Error(`cannot register backend "${e}" using priority ${n}`)}if(n>=0){const t=o.indexOf(e);-1!==t&&o.splice(t,1);for(let t=0;t<o.length;t++)if(r[o[t]].priority<=n)return void o.splice(t,0,e);o.push(e)}}},s=async e=>{const t=0===e.length?o:e,n=[];for(const e of t){const t=r[e];if(t){if(t.initialized)return t.backend;if(t.aborted)continue;const r=!!t.initPromise;try{return r||(t.initPromise=t.backend.init()),await t.initPromise,t.initialized=!0,t.backend}catch(o){r||n.push({name:e,err:o}),t.aborted=!0}finally{delete t.initPromise}}}throw new Error(`no available backend found. ERR: ${n.map((e=>`[${e.name}] ${e.err}`)).join(", ")}`)}},"./node_modules/onnxruntime-common/dist/lib/backend.js":
/*!*************************************************************!*\
!*** ./node_modules/onnxruntime-common/dist/lib/backend.js ***!
\*************************************************************/(e,t,n)=>{n.r(t),n.d(t,{registerBackend:()=>r.registerBackend});var r=n(/*! ./backend-impl */"./node_modules/onnxruntime-common/dist/lib/backend-impl.js")},"./node_modules/onnxruntime-common/dist/lib/env-impl.js":
/*!**************************************************************!*\
!*** ./node_modules/onnxruntime-common/dist/lib/env-impl.js ***!
\**************************************************************/(e,t,n)=>{n.r(t),n.d(t,{EnvImpl:()=>r});class r{constructor(){this.wasm={},this.webgl={},this.logLevelInternal="warning"}set logLevel(e){if(void 0!==e){if("string"!=typeof e||-1===["verbose","info","warning","error","fatal"].indexOf(e))throw new Error(`Unsupported logging level: ${e}`);this.logLevelInternal=e}}get logLevel(){return this.logLevelInternal}}},"./node_modules/onnxruntime-common/dist/lib/env.js":
/*!*********************************************************!*\
!*** ./node_modules/onnxruntime-common/dist/lib/env.js ***!
\*********************************************************/(e,t,n)=>{n.r(t),n.d(t,{env:()=>r});const r=new(n(/*! ./env-impl */"./node_modules/onnxruntime-common/dist/lib/env-impl.js").EnvImpl)},"./node_modules/onnxruntime-common/dist/lib/index.js":
/*!***********************************************************!*\
!*** ./node_modules/onnxruntime-common/dist/lib/index.js ***!
\***********************************************************/(e,t,n)=>{n.r(t),n.d(t,{InferenceSession:()=>i.InferenceSession,Tensor:()=>s.Tensor,env:()=>o.env,registerBackend:()=>r.registerBackend});var r=n(/*! ./backend */"./node_modules/onnxruntime-common/dist/lib/backend.js"),o=n(/*! ./env */"./node_modules/onnxruntime-common/dist/lib/env.js"),i=n(/*! ./inference-session */"./node_modules/onnxruntime-common/dist/lib/inference-session.js"),s=n(/*! ./tensor */"./node_modules/onnxruntime-common/dist/lib/tensor.js");n(/*! ./onnx-value */"./node_modules/onnxruntime-common/dist/lib/onnx-value.js")},"./node_modules/onnxruntime-common/dist/lib/inference-session-impl.js":
/*!****************************************************************************!*\
!*** ./node_modules/onnxruntime-common/dist/lib/inference-session-impl.js ***!
\****************************************************************************/(e,t,n)=>{n.r(t),n.d(t,{InferenceSession:()=>i});var r=n(/*! ./backend-impl */"./node_modules/onnxruntime-common/dist/lib/backend-impl.js"),o=n(/*! ./tensor */"./node_modules/onnxruntime-common/dist/lib/tensor.js");class i{constructor(e){this.handler=e}async run(e,t,n){const r={};let i={};if("object"!=typeof e||null===e||e instanceof o.Tensor||Array.isArray(e))throw new TypeError("'feeds' must be an object that use input names as keys and OnnxValue as corresponding values.");let s=!0;if("object"==typeof t){if(null===t)throw new TypeError("Unexpected argument[1]: cannot be null.");if(t instanceof o.Tensor)throw new TypeError("'fetches' cannot be a Tensor");if(Array.isArray(t)){if(0===t.length)throw new TypeError("'fetches' cannot be an empty array.");s=!1;for(const e of t){if("string"!=typeof e)throw new TypeError("'fetches' must be a string array or an object.");if(-1===this.outputNames.indexOf(e))throw new RangeError(`'fetches' contains invalid output name: ${e}.`);r[e]=null}if("object"==typeof n&&null!==n)i=n;else if(void 0!==n)throw new TypeError("'options' must be an object.")}else{let e=!1;const a=Object.getOwnPropertyNames(t);for(const n of this.outputNames)if(-1!==a.indexOf(n)){const i=t[n];(null===i||i instanceof o.Tensor)&&(e=!0,s=!1,r[n]=i)}if(e){if("object"==typeof n&&null!==n)i=n;else if(void 0!==n)throw new TypeError("'options' must be an object.")}else i=t}}else if(void 0!==t)throw new TypeError("Unexpected argument[1]: must be 'fetches' or 'options'.");for(const t of this.inputNames)if(void 0===e[t])throw new Error(`input '${t}' is missing in 'feeds'.`);if(s)for(const e of this.outputNames)r[e]=null;const a=await this.handler.run(e,r,i),l={};for(const e in a)Object.hasOwnProperty.call(a,e)&&(l[e]=new o.Tensor(a[e].type,a[e].data,a[e].dims));return l}static async create(e,t,n,o){let s,a={};if("string"==typeof e){if(s=e,"object"==typeof t&&null!==t)a=t;else if(void 0!==t)throw new TypeError("'options' must be an object.")}else if(e instanceof Uint8Array){if(s=e,"object"==typeof t&&null!==t)a=t;else if(void 0!==t)throw new TypeError("'options' must be an object.")}else{if(!(e instanceof ArrayBuffer||"undefined"!=typeof SharedArrayBuffer&&e instanceof SharedArrayBuffer))throw new TypeError("Unexpected argument[0]: must be 'path' or 'buffer'.");{const r=e;let i=0,l=e.byteLength;if("object"==typeof t&&null!==t)a=t;else if("number"==typeof t){if(i=t,!Number.isSafeInteger(i))throw new RangeError("'byteOffset' must be an integer.");if(i<0||i>=r.byteLength)throw new RangeError(`'byteOffset' is out of range [0, ${r.byteLength}).`);if(l=e.byteLength-i,"number"==typeof n){if(l=n,!Number.isSafeInteger(l))throw new RangeError("'byteLength' must be an integer.");if(l<=0||i+l>r.byteLength)throw new RangeError(`'byteLength' is out of range (0, ${r.byteLength-i}].`);if("object"==typeof o&&null!==o)a=o;else if(void 0!==o)throw new TypeError("'options' must be an object.")}else if(void 0!==n)throw new TypeError("'byteLength' must be a number.")}else if(void 0!==t)throw new TypeError("'options' must be an object.");s=new Uint8Array(r,i,l)}}const l=(a.executionProviders||[]).map((e=>"string"==typeof e?e:e.name)),c=await(0,r.resolveBackend)(l),u=await c.createSessionHandler(s,a);return new i(u)}startProfiling(){this.handler.startProfiling()}endProfiling(){this.handler.endProfiling()}get inputNames(){return this.handler.inputNames}get outputNames(){return this.handler.outputNames}}},"./node_modules/onnxruntime-common/dist/lib/inference-session.js":
/*!***********************************************************************!*\
!*** ./node_modules/onnxruntime-common/dist/lib/inference-session.js ***!
\***********************************************************************/(e,t,n)=>{n.r(t),n.d(t,{InferenceSession:()=>r});const r=n(/*! ./inference-session-impl */"./node_modules/onnxruntime-common/dist/lib/inference-session-impl.js").InferenceSession},"./node_modules/onnxruntime-common/dist/lib/onnx-value.js":
/*!****************************************************************!*\
!*** ./node_modules/onnxruntime-common/dist/lib/onnx-value.js ***!
\****************************************************************/(e,t,n)=>{n.r(t)},"./node_modules/onnxruntime-common/dist/lib/tensor-impl.js":
/*!*****************************************************************!*\
!*** ./node_modules/onnxruntime-common/dist/lib/tensor-impl.js ***!
\*****************************************************************/(e,t,n)=>{n.r(t),n.d(t,{Tensor:()=>a});const r="undefined"!=typeof BigInt64Array&&"function"==typeof BigInt64Array.from,o="undefined"!=typeof BigUint64Array&&"function"==typeof BigUint64Array.from,i=new Map([["float32",Float32Array],["uint8",Uint8Array],["int8",Int8Array],["uint16",Uint16Array],["int16",Int16Array],["int32",Int32Array],["bool",Uint8Array],["float64",Float64Array],["uint32",Uint32Array]]),s=new Map([[Float32Array,"float32"],[Uint8Array,"uint8"],[Int8Array,"int8"],[Uint16Array,"uint16"],[Int16Array,"int16"],[Int32Array,"int32"],[Float64Array,"float64"],[Uint32Array,"uint32"]]);r&&(i.set("int64",BigInt64Array),s.set(BigInt64Array,"int64")),o&&(i.set("uint64",BigUint64Array),s.set(BigUint64Array,"uint64"));class a{constructor(e,t,n){let r,o,a;if("string"==typeof e)if(r=e,a=n,"string"===e){if(!Array.isArray(t))throw new TypeError("A string tensor's data must be a string array.");o=t}else{const n=i.get(e);if(void 0===n)throw new TypeError(`Unsupported tensor type: ${e}.`);if(Array.isArray(t))o=n.from(t);else{if(!(t instanceof n))throw new TypeError(`A ${r} tensor's data must be type of ${n}`);o=t}}else if(a=t,Array.isArray(e)){if(0===e.length)throw new TypeError("Tensor type cannot be inferred from an empty array.");const t=typeof e[0];if("string"===t)r="string",o=e;else{if("boolean"!==t)throw new TypeError(`Invalid element type of data array: ${t}.`);r="bool",o=Uint8Array.from(e)}}else{const t=s.get(e.constructor);if(void 0===t)throw new TypeError(`Unsupported type for tensor data: ${e.constructor}.`);r=t,o=e}if(void 0===a)a=[o.length];else if(!Array.isArray(a))throw new TypeError("A tensor's dims must be a number array");const l=(e=>{let t=1;for(let n=0;n<e.length;n++){const r=e[n];if("number"!=typeof r||!Number.isSafeInteger(r))throw new TypeError(`dims[${n}] must be an integer, got: ${r}`);if(r<0)throw new RangeError(`dims[${n}] must be a non-negative integer, got: ${r}`);t*=r}return t})(a);if(l!==o.length)throw new Error(`Tensor's size(${l}) does not match data length(${o.length}).`);this.dims=a,this.type=r,this.data=o,this.size=l}static bufferToTensor(e,t){if(void 0===e)throw new Error("Image buffer must be defined");if(void 0===t.height||void 0===t.width)throw new Error("Image height and width must be defined");const{height:n,width:r}=t,o=t.norm;let i,s;i=void 0===o||void 0===o.mean?255:o.mean,s=void 0===o||void 0===o.bias?0:o.bias;const l=void 0!==t.bitmapFormat?t.bitmapFormat:"RGBA",c=void 0!==t.tensorFormat&&void 0!==t.tensorFormat?t.tensorFormat:"RGB",u=n*r,d="RGBA"===c?new Float32Array(4*u):new Float32Array(3*u);let p=4,_=0,h=1,f=2,g=3,m=0,b=u,w=2*u,y=-1;"RGB"===l&&(p=3,_=0,h=1,f=2,g=-1),"RGBA"===c?y=3*u:"RBG"===c?(m=0,w=u,b=2*u):"BGR"===c&&(w=0,b=u,m=2*u);for(let t=0;t<u;t++,_+=p,f+=p,h+=p,g+=p)d[m++]=(e[_]+s)/i,d[b++]=(e[h]+s)/i,d[w++]=(e[f]+s)/i,-1!==y&&-1!==g&&(d[y++]=(e[g]+s)/i);return new a("float32",d,"RGBA"===c?[1,4,n,r]:[1,3,n,r])}static async fromImage(e,t){const n="undefined"!=typeof HTMLImageElement&&e instanceof HTMLImageElement,r="undefined"!=typeof ImageData&&e instanceof ImageData,o="undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap,i="undefined"!=typeof String&&(e instanceof String||"string"==typeof e);let s,l={};if(n){const n=document.createElement("canvas"),r=n.getContext("2d");if(null==r)throw new Error("Can not access image data");{let o=e.naturalHeight,i=e.naturalWidth;if(void 0!==t&&void 0!==t.resizedHeight&&void 0!==t.resizedWidth&&(o=t.resizedHeight,i=t.resizedWidth),void 0!==t){if(l=t,void 0!==t.tensorFormat)throw new Error("Image input config format must be RGBA for HTMLImageElement");if(l.tensorFormat="RGBA",void 0!==t.height&&t.height!==o)throw new Error("Image input config height doesn't match HTMLImageElement height");if(l.height=o,void 0!==t.width&&t.width!==i)throw new Error("Image input config width doesn't match HTMLImageElement width");l.width=i}else l.tensorFormat="RGBA",l.height=o,l.width=i;n.width=i,n.height=o,r.drawImage(e,0,0,i,o),s=r.getImageData(0,0,i,o).data}}else{if(!r){if(o){if(void 0===t)throw new Error("Please provide image config with format for Imagebitmap");if(void 0!==t.bitmapFormat)throw new Error("Image input config format must be defined for ImageBitmap");const n=document.createElement("canvas").getContext("2d");if(null!=n){const r=e.height,o=e.width;if(n.drawImage(e,0,0,o,r),s=n.getImageData(0,0,o,r).data,void 0!==t){if(void 0!==t.height&&t.height!==r)throw new Error("Image input config height doesn't match ImageBitmap height");if(l.height=r,void 0!==t.width&&t.width!==o)throw new Error("Image input config width doesn't match ImageBitmap width");l.width=o}else l.height=r,l.width=o;return a.bufferToTensor(s,l)}throw new Error("Can not access image data")}if(i)return new Promise(((n,r)=>{const o=document.createElement("canvas"),i=o.getContext("2d");if(!e||!i)return r();const s=new Image;s.crossOrigin="Anonymous",s.src=e,s.onload=()=>{o.width=s.width,o.height=s.height,i.drawImage(s,0,0,o.width,o.height);const e=i.getImageData(0,0,o.width,o.height);if(void 0!==t){if(void 0!==t.height&&t.height!==o.height)throw new Error("Image input config height doesn't match ImageBitmap height");if(l.height=o.height,void 0!==t.width&&t.width!==o.width)throw new Error("Image input config width doesn't match ImageBitmap width");l.width=o.width}else l.height=o.height,l.width=o.width;n(a.bufferToTensor(e.data,l))}}));throw new Error("Input data provided is not supported - aborted tensor creation")}{const n="RGBA";let r,o;if(void 0!==t&&void 0!==t.resizedWidth&&void 0!==t.resizedHeight?(r=t.resizedHeight,o=t.resizedWidth):(r=e.height,o=e.width),void 0!==t){if(l=t,void 0!==t.bitmapFormat&&t.bitmapFormat!==n)throw new Error("Image input config format must be RGBA for ImageData");l.bitmapFormat="RGBA"}else l.bitmapFormat="RGBA";if(l.height=r,l.width=o,void 0!==t){const t=document.createElement("canvas");t.width=o,t.height=r;const n=t.getContext("2d");if(null==n)throw new Error("Can not access image data");n.putImageData(e,0,0),s=n.getImageData(0,0,o,r).data}else s=e.data}}if(void 0!==s)return a.bufferToTensor(s,l);throw new Error("Input data provided is not supported - aborted tensor creation")}toImageData(e){var t,n;const r=document.createElement("canvas").getContext("2d");let o;if(null==r)throw new Error("Can not access image data");{const i=this.dims[3],s=this.dims[2],a=this.dims[1],l=void 0!==e&&void 0!==e.format?e.format:"RGB",c=void 0!==e&&void 0!==(null===(t=e.norm)||void 0===t?void 0:t.mean)?e.norm.mean:255,u=void 0!==e&&void 0!==(null===(n=e.norm)||void 0===n?void 0:n.bias)?e.norm.bias:0,d=s*i;if(void 0!==e){if(void 0!==e.height&&e.height!==s)throw new Error("Image output config height doesn't match tensor height");if(void 0!==e.width&&e.width!==i)throw new Error("Image output config width doesn't match tensor width");if(void 0!==e.format&&4===a&&"RGBA"!==e.format||3===a&&"RGB"!==e.format&&"BGR"!==e.format)throw new Error("Tensor format doesn't match input tensor dims")}const p=4;let _=0,h=1,f=2,g=3,m=0,b=d,w=2*d,y=-1;"RGBA"===l?(m=0,b=d,w=2*d,y=3*d):"RGB"===l?(m=0,b=d,w=2*d):"RBG"===l&&(m=0,w=d,b=2*d),o=r.createImageData(i,s);for(let e=0;e<s*i;_+=p,h+=p,f+=p,g+=p,e++)o.data[_]=(this.data[m++]-u)*c,o.data[h]=(this.data[b++]-u)*c,o.data[f]=(this.data[w++]-u)*c,o.data[g]=-1===y?255:(this.data[y++]-u)*c}return o}reshape(e){return new a(this.type,this.data,e)}}},"./node_modules/onnxruntime-common/dist/lib/tensor.js":
/*!************************************************************!*\
!*** ./node_modules/onnxruntime-common/dist/lib/tensor.js ***!
\************************************************************/(e,t,n)=>{n.r(t),n.d(t,{Tensor:()=>r});const r=n(/*! ./tensor-impl */"./node_modules/onnxruntime-common/dist/lib/tensor-impl.js").Tensor},"./node_modules/onnxruntime-web/dist/ort-web.min.js":
/*!**********************************************************!*\
!*** ./node_modules/onnxruntime-web/dist/ort-web.min.js ***!
\**********************************************************/(module,__unused_webpack_exports,__webpack_require__)=>{var e;self,e=__WEBPACK_EXTERNAL_MODULE__1670__=>(()=>{var __webpack_modules__={3474:(e,t,n)=>{var r,o=(r=(r="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0)||"/index.js",function(e){function t(){return E.buffer!=D&&W(E.buffer),L}function o(){return E.buffer!=D&&W(E.buffer),$}function i(){return E.buffer!=D&&W(E.buffer),N}function s(){return E.buffer!=D&&W(E.buffer),z}function a(){return E.buffer!=D&&W(E.buffer),B}var l,c,u;e=e||{},l||(l=void 0!==e?e:{}),l.ready=new Promise((function(e,t){c=e,u=t}));var d,p,_,h,f,g,m=Object.assign({},l),b="./this.program",w=(e,t)=>{throw t},y="object"==typeof window,x="function"==typeof importScripts,T="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,v=l.ENVIRONMENT_IS_PTHREAD||!1,k="";function M(e){return l.locateFile?l.locateFile(e,k):k+e}if(T){let t;k=x?n(908).dirname(k)+"/":"//",g=()=>{f||(h=n(1384),f=n(908))},d=function(e,t){return g(),e=f.normalize(e),h.readFileSync(e,t?void 0:"utf8")},_=e=>((e=d(e,!0)).buffer||(e=new Uint8Array(e)),e),p=(e,t,n)=>{g(),e=f.normalize(e),h.readFile(e,(function(e,r){e?n(e):t(r.buffer)}))},1<process.argv.length&&(b=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),process.on("uncaughtException",(function(e){if(!(e instanceof ce))throw e})),process.on("unhandledRejection",(function(e){throw e})),w=(e,t)=>{if(J())throw process.exitCode=e,t;t instanceof ce||C("exiting due to exception: "+t),process.exit(e)},l.inspect=function(){return"[Emscripten Module object]"};try{t=n(9925)}catch(e){throw console.error('The "worker_threads" module is not supported in this node.js build - perhaps a newer version is needed?'),e}n.g.Worker=t.Worker}else(y||x)&&(x?k=self.location.href:"undefined"!=typeof document&&document.currentScript&&(k=document.currentScript.src),r&&(k=r),k=0!==k.indexOf("blob:")?k.substr(0,k.replace(/[?#].*/,"").lastIndexOf("/")+1):"",T||(d=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},x&&(_=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),p=(e,t,n)=>{var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=()=>{200==r.status||0==r.status&&r.response?t(r.response):n()},r.onerror=n,r.send(null)}));T&&"undefined"==typeof performance&&(n.g.performance=n(6953).performance);var S=console.log.bind(console),P=console.warn.bind(console);T&&(g(),S=e=>h.writeSync(1,e+"\n"),P=e=>h.writeSync(2,e+"\n"));var A,F=l.print||S,C=l.printErr||P;Object.assign(l,m),m=null,l.thisProgram&&(b=l.thisProgram),l.quit&&(w=l.quit),l.wasmBinary&&(A=l.wasmBinary);var O=l.noExitRuntime||!1;"object"!=typeof WebAssembly&&ie("no native wasm support detected");var E,I,D,L,$,N,z,B,R=!1,j="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function V(e,t,n){var r=(t>>>=0)+n;for(n=t;e[n]&&!(n>=r);)++n;if(16<n-t&&e.buffer&&j)return j.decode(e.buffer instanceof SharedArrayBuffer?e.slice(t,n):e.subarray(t,n));for(r="";t<n;){var o=e[t++];if(128&o){var i=63&e[t++];if(192==(224&o))r+=String.fromCharCode((31&o)<<6|i);else{var s=63&e[t++];65536>(o=224==(240&o)?(15&o)<<12|i<<6|s:(7&o)<<18|i<<12|s<<6|63&e[t++])?r+=String.fromCharCode(o):(o-=65536,r+=String.fromCharCode(55296|o>>10,56320|1023&o))}}else r+=String.fromCharCode(o)}return r}function G(e,t){return(e>>>=0)?V(o(),e,t):""}function U(e,t,n,r){if(!(0<r))return 0;var o=n>>>=0;r=n+r-1;for(var i=0;i<e.length;++i){var s=e.charCodeAt(i);if(55296<=s&&57343>=s&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++i)),127>=s){if(n>=r)break;t[n++>>>0]=s}else{if(2047>=s){if(n+1>=r)break;t[n++>>>0]=192|s>>6}else{if(65535>=s){if(n+2>=r)break;t[n++>>>0]=224|s>>12}else{if(n+3>=r)break;t[n++>>>0]=240|s>>18,t[n++>>>0]=128|s>>12&63}t[n++>>>0]=128|s>>6&63}t[n++>>>0]=128|63&s}}return t[n>>>0]=0,n-o}function q(e){for(var t=0,n=0;n<e.length;++n){var r=e.charCodeAt(n);127>=r?t++:2047>=r?t+=2:55296<=r&&57343>=r?(t+=4,++n):t+=3}return t}function W(e){D=e,l.HEAP8=L=new Int8Array(e),l.HEAP16=new Int16Array(e),l.HEAP32=N=new Int32Array(e),l.HEAPU8=$=new Uint8Array(e),l.HEAPU16=new Uint16Array(e),l.HEAPU32=z=new Uint32Array(e),l.HEAPF32=new Float32Array(e),l.HEAPF64=B=new Float64Array(e)}v&&(D=l.buffer);var H=l.INITIAL_MEMORY||16777216;if(v)E=l.wasmMemory,D=l.buffer;else if(l.wasmMemory)E=l.wasmMemory;else if(!((E=new WebAssembly.Memory({initial:H/65536,maximum:65536,shared:!0})).buffer instanceof SharedArrayBuffer))throw C("requested a shared WebAssembly.Memory but the returned buffer is not a SharedArrayBuffer, indicating that while the browser has SharedArrayBuffer it does not have WebAssembly threads support - you may need to set a flag"),T&&console.log("(on node you may need: --experimental-wasm-threads --experimental-wasm-bulk-memory and also use a recent version)"),Error("bad memory");E&&(D=E.buffer),H=D.byteLength,W(D);var X,Y=[],Q=[],K=[],Z=[];function J(){return O||!1}function ee(){var e=l.preRun.shift();Y.unshift(e)}var te,ne=0,re=null,oe=null;function ie(e){throw v?postMessage({cmd:"onAbort",arg:e}):l.onAbort&&l.onAbort(e),C(e="Aborted("+e+")"),R=!0,e=new WebAssembly.RuntimeError(e+". Build with -sASSERTIONS for more info."),u(e),e}function se(){return te.startsWith("data:application/octet-stream;base64,")}function ae(){var e=te;try{if(e==te&&A)return new Uint8Array(A);if(_)return _(e);throw"both async and sync fetching of the wasm failed"}catch(e){ie(e)}}te="ort-wasm-threaded.wasm",se()||(te=M(te));var le={};function ce(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function ue(e){(e=he.Vb[e])||ie(),he.mc(e)}function de(e){var t=he.Cc();if(!t)return 6;he.ac.push(t),he.Vb[e.Ub]=t,t.Ub=e.Ub;var n={cmd:"run",start_routine:e.Ic,arg:e.zc,pthread_ptr:e.Ub};return t.$b=()=>{n.time=performance.now(),t.postMessage(n,e.Nc)},t.loaded&&(t.$b(),delete t.$b),0}function pe(e){if(v)return He(1,1,e);J()||(he.oc(),l.onExit&&l.onExit(e),R=!0),w(e,new ce(e))}function _e(e,t){if(!t&&v)throw ge(e),"unwind";J()||v||(mt(),fe(K),gt(0),rt[1].length&&ot(1,10),rt[2].length&&ot(2,10),he.oc()),pe(e)}var he={Yb:[],ac:[],qc:[],Vb:{},fc:function(){v&&he.Ec()},Pc:function(){},Ec:function(){he.receiveObjectTransfer=he.Gc,he.threadInitTLS=he.pc,he.setExitStatus=he.nc,O=!1},nc:function(){},oc:function(){for(var e of Object.values(he.Vb))he.mc(e);for(e of he.Yb)e.terminate();he.Yb=[]},mc:function(e){var t=e.Ub;delete he.Vb[t],he.Yb.push(e),he.ac.splice(he.ac.indexOf(e),1),e.Ub=0,Tt(t)},Gc:function(){},pc:function(){he.qc.forEach((e=>e()))},Fc:function(e,t){e.onmessage=n=>{var r=(n=n.data).cmd;if(e.Ub&&(he.Bc=e.Ub),n.targetThread&&n.targetThread!=_t()){var o=he.Vb[n.Qc];o?o.postMessage(n,n.transferList):C('Internal error! Worker sent a message "'+r+'" to target pthread '+n.targetThread+", but that thread no longer exists!")}else"processProxyingQueue"===r?je(n.queue):"spawnThread"===r?de(n):"cleanupThread"===r?ue(n.thread):"killThread"===r?(n=n.thread,r=he.Vb[n],delete he.Vb[n],r.terminate(),Tt(n),he.ac.splice(he.ac.indexOf(r),1),r.Ub=0):"cancelThread"===r?he.Vb[n.thread].postMessage({cmd:"cancel"}):"loaded"===r?(e.loaded=!0,t&&t(e),e.$b&&(e.$b(),delete e.$b)):"print"===r?F("Thread "+n.threadId+": "+n.text):"printErr"===r?C("Thread "+n.threadId+": "+n.text):"alert"===r?alert("Thread "+n.threadId+": "+n.text):"setimmediate"===n.target?e.postMessage(n):"onAbort"===r?l.onAbort&&l.onAbort(n.arg):r&&C("worker sent an unknown command "+r);he.Bc=void 0},e.onerror=e=>{throw C("worker sent an error! "+e.filename+":"+e.lineno+": "+e.message),e},T&&(e.on("message",(function(t){e.onmessage({data:t})})),e.on("error",(function(t){e.onerror(t)})),e.on("detachedExit",(function(){}))),e.postMessage({cmd:"load",urlOrBlob:l.mainScriptUrlOrBlob||r,wasmMemory:E,wasmModule:I})},yc:function(){var e=M("ort-wasm-threaded.worker.js");he.Yb.push(new Worker(e))},Cc:function(){return 0==he.Yb.length&&(he.yc(),he.Fc(he.Yb[0])),he.Yb.pop()}};function fe(e){for(;0<e.length;)e.shift()(l)}function ge(e){if(v)return He(2,0,e);try{_e(e)}catch(e){e instanceof ce||"unwind"==e||w(1,e)}}l.PThread=he,l.establishStackSpace=function(){var e=_t(),t=i()[e+44>>2>>>0];e=i()[e+48>>2>>>0],Mt(t,t-e),Pt(t)};var me=[];function be(e){var t=me[e];return t||(e>=me.length&&(me.length=e+1),me[e]=t=X.get(e)),t}l.invokeEntryPoint=function(e,t){e=be(e)(t),J()?he.nc(e):vt(e)};var we,ye,xe=[],Te=0,ve=0;function ke(e){this.Zb=e,this.Sb=e-24,this.xc=function(e){s()[this.Sb+4>>2>>>0]=e},this.bc=function(){return s()[this.Sb+4>>2>>>0]},this.wc=function(e){s()[this.Sb+8>>2>>>0]=e},this.Dc=function(){return s()[this.Sb+8>>2>>>0]},this.rc=function(){i()[this.Sb>>2>>>0]=0},this.hc=function(e){e=e?1:0,t()[this.Sb+12>>0>>>0]=e},this.uc=function(){return 0!=t()[this.Sb+12>>0>>>0]},this.ic=function(e){e=e?1:0,t()[this.Sb+13>>0>>>0]=e},this.kc=function(){return 0!=t()[this.Sb+13>>0>>>0]},this.fc=function(e,t){this.cc(0),this.xc(e),this.wc(t),this.rc(),this.hc(!1),this.ic(!1)},this.sc=function(){Atomics.add(i(),this.Sb>>2,1)},this.Hc=function(){return 1===Atomics.sub(i(),this.Sb>>2,1)},this.cc=function(e){s()[this.Sb+16>>2>>>0]=e},this.tc=function(){return s()[this.Sb+16>>2>>>0]},this.vc=function(){if(Ct(this.bc()))return s()[this.Zb>>2>>>0];var e=this.tc();return 0!==e?e:this.Zb}}function Me(e){return ft(new ke(e).Sb)}function Se(e,t,n,r){return v?He(3,1,e,t,n,r):Pe(e,t,n,r)}function Pe(e,t,n,r){if("undefined"==typeof SharedArrayBuffer)return C("Current environment does not support SharedArrayBuffer, pthreads are not available!"),6;var o=[];return v&&0===o.length?Se(e,t,n,r):(e={Ic:n,Ub:e,zc:r,Nc:o},v?(e.Oc="spawnThread",postMessage(e,o),0):de(e))}function Ae(e,t,n){return v?He(4,1,e,t,n):0}function Fe(e,t){if(v)return He(5,1,e,t)}function Ce(e,t){if(v)return He(6,1,e,t)}function Oe(e,t,n){if(v)return He(7,1,e,t,n)}function Ee(e,t,n){return v?He(8,1,e,t,n):0}function Ie(e,t){if(v)return He(9,1,e,t)}function De(e,t,n){if(v)return He(10,1,e,t,n)}function Le(e,t,n,r){if(v)return He(11,1,e,t,n,r)}function $e(e,t,n,r){if(v)return He(12,1,e,t,n,r)}function Ne(e,t,n,r){if(v)return He(13,1,e,t,n,r)}function ze(e){if(v)return He(14,1,e)}function Be(e,t){if(v)return He(15,1,e,t)}function Re(e,t,n){if(v)return He(16,1,e,t,n)}function je(e){Atomics.store(i(),e>>2,1),_t()&&xt(e),Atomics.compareExchange(i(),e>>2,1,0)}function Ve(e){return s()[e>>>2]+4294967296*i()[e+4>>>2]}function Ge(e,t,n,r,o,i){return v?He(17,1,e,t,n,r,o,i):-52}function Ue(e,t,n,r,o,i){if(v)return He(18,1,e,t,n,r,o,i)}function qe(e){var n=q(e)+1,r=ht(n);return r&&U(e,t(),r,n),r}function We(e,t,n){function r(e){return(e=e.toTimeString().match(/\(([A-Za-z ]+)\)$/))?e[1]:"GMT"}if(v)return He(19,1,e,t,n);var o=(new Date).getFullYear(),a=new Date(o,0,1),l=new Date(o,6,1);o=a.getTimezoneOffset();var c=l.getTimezoneOffset(),u=Math.max(o,c);i()[e>>2>>>0]=60*u,i()[t>>2>>>0]=Number(o!=c),e=r(a),t=r(l),e=qe(e),t=qe(t),c<o?(s()[n>>2>>>0]=e,s()[n+4>>2>>>0]=t):(s()[n>>2>>>0]=t,s()[n+4>>2>>>0]=e)}function He(e,t){var n=arguments.length-2,r=arguments;return function(e){var t=St();return e=e(),Pt(t),e}((()=>{for(var o=At(8*n),i=o>>3,s=0;s<n;s++){var l=r[2+s];a()[i+s>>>0]=l}return yt(e,n,o,t)}))}l.executeNotifiedProxyingQueue=je,ye=T?()=>{var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:v?()=>performance.now()-l.__performance_now_clock_drift:()=>performance.now();var Xe,Ye=[],Qe={};function Ke(){if(!Xe){var e,t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:b||"./this.program"};for(e in Qe)void 0===Qe[e]?delete t[e]:t[e]=Qe[e];var n=[];for(e in t)n.push(e+"="+t[e]);Xe=n}return Xe}function Ze(e,n){if(v)return He(20,1,e,n);var r=0;return Ke().forEach((function(o,i){var a=n+r;for(i=s()[e+4*i>>2>>>0]=a,a=0;a<o.length;++a)t()[i++>>0>>>0]=o.charCodeAt(a);t()[i>>0>>>0]=0,r+=o.length+1})),0}function Je(e,t){if(v)return He(21,1,e,t);var n=Ke();s()[e>>2>>>0]=n.length;var r=0;return n.forEach((function(e){r+=e.length+1})),s()[t>>2>>>0]=r,0}function et(e){return v?He(22,1,e):52}function tt(e,t,n,r){return v?He(23,1,e,t,n,r):52}function nt(e,t,n,r,o){return v?He(24,1,e,t,n,r,o):70}var rt=[null,[],[]];function ot(e,t){var n=rt[e];0===t||10===t?((1===e?F:C)(V(n,0)),n.length=0):n.push(t)}function it(e,t,n,r){if(v)return He(25,1,e,t,n,r);for(var i=0,a=0;a<n;a++){var l=s()[t>>2>>>0],c=s()[t+4>>2>>>0];t+=8;for(var u=0;u<c;u++)ot(e,o()[l+u>>>0]);i+=c}return s()[r>>2>>>0]=i,0}var st=0;function at(e){return 0==e%4&&(0!=e%100||0==e%400)}var lt=[31,29,31,30,31,30,31,31,30,31,30,31],ct=[31,28,31,30,31,30,31,31,30,31,30,31];function ut(e,n,r,o){function s(e,t,n){for(e="number"==typeof e?e.toString():e||"";e.length<t;)e=n[0]+e;return e}function a(e,t){return s(e,t,"0")}function l(e,t){function n(e){return 0>e?-1:0<e?1:0}var r;return 0===(r=n(e.getFullYear()-t.getFullYear()))&&0===(r=n(e.getMonth()-t.getMonth()))&&(r=n(e.getDate()-t.getDate())),r}function c(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function u(e){var t=e.Wb;for(e=new Date(new Date(e.Xb+1900,0,1).getTime());0<t;){var n=e.getMonth(),r=(at(e.getFullYear())?lt:ct)[n];if(!(t>r-e.getDate())){e.setDate(e.getDate()+t);break}t-=r-e.getDate()+1,e.setDate(1),11>n?e.setMonth(n+1):(e.setMonth(0),e.setFullYear(e.getFullYear()+1))}return n=new Date(e.getFullYear()+1,0,4),t=c(new Date(e.getFullYear(),0,4)),n=c(n),0>=l(t,e)?0>=l(n,e)?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var d=i()[o+40>>2>>>0];for(var p in o={Lc:i()[o>>2>>>0],Kc:i()[o+4>>2>>>0],dc:i()[o+8>>2>>>0],jc:i()[o+12>>2>>>0],ec:i()[o+16>>2>>>0],Xb:i()[o+20>>2>>>0],Tb:i()[o+24>>2>>>0],Wb:i()[o+28>>2>>>0],Rc:i()[o+32>>2>>>0],Jc:i()[o+36>>2>>>0],Mc:d?G(d):""},r=G(r),d={"%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"})r=r.replace(new RegExp(p,"g"),d[p]);var _="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),h="January February March April May June July August September October November December".split(" ");for(p in d={"%a":function(e){return _[e.Tb].substring(0,3)},"%A":function(e){return _[e.Tb]},"%b":function(e){return h[e.ec].substring(0,3)},"%B":function(e){return h[e.ec]},"%C":function(e){return a((e.Xb+1900)/100|0,2)},"%d":function(e){return a(e.jc,2)},"%e":function(e){return s(e.jc,2," ")},"%g":function(e){return u(e).toString().substring(2)},"%G":function(e){return u(e)},"%H":function(e){return a(e.dc,2)},"%I":function(e){return 0==(e=e.dc)?e=12:12<e&&(e-=12),a(e,2)},"%j":function(e){for(var t=0,n=0;n<=e.ec-1;t+=(at(e.Xb+1900)?lt:ct)[n++]);return a(e.jc+t,3)},"%m":function(e){return a(e.ec+1,2)},"%M":function(e){return a(e.Kc,2)},"%n":function(){return"\n"},"%p":function(e){return 0<=e.dc&&12>e.dc?"AM":"PM"},"%S":function(e){return a(e.Lc,2)},"%t":function(){return"\t"},"%u":function(e){return e.Tb||7},"%U":function(e){return a(Math.floor((e.Wb+7-e.Tb)/7),2)},"%V":function(e){var t=Math.floor((e.Wb+7-(e.Tb+6)%7)/7);if(2>=(e.Tb+371-e.Wb-2)%7&&t++,t)53==t&&(4==(n=(e.Tb+371-e.Wb)%7)||3==n&&at(e.Xb)||(t=1));else{t=52;var n=(e.Tb+7-e.Wb-1)%7;(4==n||5==n&&at(e.Xb%400-1))&&t++}return a(t,2)},"%w":function(e){return e.Tb},"%W":function(e){return a(Math.floor((e.Wb+7-(e.Tb+6)%7)/7),2)},"%y":function(e){return(e.Xb+1900).toString().substring(2)},"%Y":function(e){return e.Xb+1900},"%z":function(e){var t=0<=(e=e.Jc);return e=Math.abs(e)/60,(t?"+":"-")+String("0000"+(e/60*100+e%60)).slice(-4)},"%Z":function(e){return e.Mc},"%%":function(){return"%"}},r=r.replace(/%%/g,"\0\0"),d)r.includes(p)&&(r=r.replace(new RegExp(p,"g"),d[p](o)));return p=function(e){var t=Array(q(e)+1);return U(e,t,0,t.length),t}(r=r.replace(/\0\0/g,"%")),p.length>n?0:(function(e,n){t().set(e,n>>>0)}(p,e),p.length-1)}he.fc();var dt=[null,pe,ge,Se,Ae,Fe,Ce,Oe,Ee,Ie,De,Le,$e,Ne,ze,Be,Re,Ge,Ue,We,Ze,Je,et,tt,nt,it],pt={b:function(e){return ht(e+24)+24},n:function(e){return(e=new ke(e)).uc()||(e.hc(!0),Te--),e.ic(!1),xe.push(e),e.sc(),e.vc()},ma:function(e){throw C("Unexpected exception thrown, this is not properly supported - aborting"),R=!0,e},x:function(){kt(0);var e=xe.pop();if(e.Hc()&&!e.kc()){var t=e.Dc();t&&be(t)(e.Zb),Me(e.Zb)}ve=0},e:function(){var e=ve;if(!e)return st=0;var t=new ke(e);t.cc(e);var n=t.bc();if(!n)return st=0,e;for(var r=Array.prototype.slice.call(arguments),o=0;o<r.length;o++){var i=r[o];if(0===i||i===n)break;if(Ft(i,n,t.Sb+16))return st=i,e}return st=n,e},l:function(){var e=ve;if(!e)return st=0;var t=new ke(e);t.cc(e);var n=t.bc();if(!n)return st=0,e;for(var r=Array.prototype.slice.call(arguments),o=0;o<r.length;o++){var i=r[o];if(0===i||i===n)break;if(Ft(i,n,t.Sb+16))return st=i,e}return st=n,e},h:function(){var e=ve;if(!e)return st=0;var t=new ke(e);t.cc(e);var n=t.bc();if(!n)return st=0,e;for(var r=Array.prototype.slice.call(arguments),o=0;o<r.length;o++){var i=r[o];if(0===i||i===n)break;if(Ft(i,n,t.Sb+16))return st=i,e}return st=n,e},t:Me,M:function(){var e=xe.pop();e||ie("no exception to throw");var t=e.Zb;throw e.kc()||(xe.push(e),e.ic(!0),e.hc(!1),Te++),ve=t,t},c:function(e,t,n){throw new ke(e).fc(t,n),ve=e,Te++,e},pa:function(){return Te},Fa:function(e){bt(e,!x,1,!y),he.pc()},T:function(e){v?postMessage({cmd:"cleanupThread",thread:e}):ue(e)},xa:Pe,j:function(e){throw ve||(ve=e),e},H:Ae,Ma:Fe,ua:Ce,wa:Oe,oa:Ee,Ka:Ie,Ca:De,Ja:Le,V:$e,va:Ne,sa:ze,La:Be,ta:Re,Ta:function(){},X:function(){ie("To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking")},Ua:function(){ie("To use dlopen, you need enable dynamic linking, see https://github.com/emscripten-core/emscripten/wiki/Linking")},W:function(){return Date.now()},ya:function(){return 2097152},Oa:function(){return!0},za:function(e,t,n,r){if(e==t)setTimeout((()=>je(r)));else if(v)postMessage({targetThread:e,cmd:"processProxyingQueue",queue:r});else{if(!(e=he.Vb[e]))return;e.postMessage({cmd:"processProxyingQueue",queue:r})}return 1},Ea:function(){return-1},Pa:function(e,t){e=new Date(1e3*Ve(e)),i()[t>>2>>>0]=e.getUTCSeconds(),i()[t+4>>2>>>0]=e.getUTCMinutes(),i()[t+8>>2>>>0]=e.getUTCHours(),i()[t+12>>2>>>0]=e.getUTCDate(),i()[t+16>>2>>>0]=e.getUTCMonth(),i()[t+20>>2>>>0]=e.getUTCFullYear()-1900,i()[t+24>>2>>>0]=e.getUTCDay(),e=(e.getTime()-Date.UTC(e.getUTCFullYear(),0,1,0,0,0,0))/864e5|0,i()[t+28>>2>>>0]=e},Qa:function(e,t){e=new Date(1e3*Ve(e)),i()[t>>2>>>0]=e.getSeconds(),i()[t+4>>2>>>0]=e.getMinutes(),i()[t+8>>2>>>0]=e.getHours(),i()[t+12>>2>>>0]=e.getDate(),i()[t+16>>2>>>0]=e.getMonth(),i()[t+20>>2>>>0]=e.getFullYear()-1900,i()[t+24>>2>>>0]=e.getDay();var n=new Date(e.getFullYear(),0,1),r=(e.getTime()-n.getTime())/864e5|0;i()[t+28>>2>>>0]=r,i()[t+36>>2>>>0]=-60*e.getTimezoneOffset(),r=new Date(e.getFullYear(),6,1).getTimezoneOffset(),e=0|(r!=(n=n.getTimezoneOffset())&&e.getTimezoneOffset()==Math.min(n,r)),i()[t+32>>2>>>0]=e},Ra:function(e){var t=new Date(i()[e+20>>2>>>0]+1900,i()[e+16>>2>>>0],i()[e+12>>2>>>0],i()[e+8>>2>>>0],i()[e+4>>2>>>0],i()[e>>2>>>0],0),n=i()[e+32>>2>>>0],r=t.getTimezoneOffset(),o=new Date(t.getFullYear(),0,1),s=new Date(t.getFullYear(),6,1).getTimezoneOffset(),a=o.getTimezoneOffset(),l=Math.min(a,s);return 0>n?i()[e+32>>2>>>0]=Number(s!=a&&l==r):0<n!=(l==r)&&(s=Math.max(a,s),t.setTime(t.getTime()+6e4*((0<n?l:s)-r))),i()[e+24>>2>>>0]=t.getDay(),n=(t.getTime()-o.getTime())/864e5|0,i()[e+28>>2>>>0]=n,i()[e>>2>>>0]=t.getSeconds(),i()[e+4>>2>>>0]=t.getMinutes(),i()[e+8>>2>>>0]=t.getHours(),i()[e+12>>2>>>0]=t.getDate(),i()[e+16>>2>>>0]=t.getMonth(),t.getTime()/1e3|0},Aa:Ge,Ba:Ue,Sa:function e(t,n,r){e.Ac||(e.Ac=!0,We(t,n,r))},y:function(){ie("")},U:function(){if(!T&&!x){var e="Blocking on the main thread is very dangerous, see https://emscripten.org/docs/porting/pthreads.html#blocking-on-the-main-browser-thread";we||(we={}),we[e]||(we[e]=1,T&&(e="warning: "+e),C(e))}},ra:function(){return 4294901760},B:ye,Ia:function(e,t,n){o().copyWithin(e>>>0,t>>>0,t+n>>>0)},F:function(){return T?n(3993).cpus().length:navigator.hardwareConcurrency},Da:function(e,t,n){Ye.length=t,n>>=3;for(var r=0;r<t;r++)Ye[r]=a()[n+r>>>0];return(0>e?le[-e-1]:dt[e]).apply(null,Ye)},qa:function(e){var t=o().length;if((e>>>=0)<=t||4294901760<e)return!1;for(var n=1;4>=n;n*=2){var r=t*(1+.2/n);r=Math.min(r,e+100663296);var i=Math;r=Math.max(e,r),i=i.min.call(i,4294901760,r+(65536-r%65536)%65536);e:{try{E.grow(i-D.byteLength+65535>>>16),W(E.buffer);var s=1;break e}catch(e){}s=void 0}if(s)return!0}return!1},Na:function(){throw"unwind"},Ga:Ze,Ha:Je,J:_e,I:et,S:tt,ga:nt,R:it,d:function(){return st},na:function e(r,o){e.lc||(e.lc=function(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var e=new Uint8Array(1);return()=>(crypto.getRandomValues(e),e[0])}if(T)try{var t=n(Object(function(){var e=new Error("Cannot find module 'crypto'");throw e.code="MODULE_NOT_FOUND",e}()));return()=>t.randomBytes(1)[0]}catch(e){}return()=>ie("randomDevice")}());for(var i=0;i<o;i++)t()[r+i>>0>>>0]=e.lc();return 0},ia:function(e,t,n){var r=St();try{return be(e)(t,n)}catch(e){if(Pt(r),e!==e+0)throw e;kt(1,0)}},ja:function(e,t,n){var r=St();try{return be(e)(t,n)}catch(e){if(Pt(r),e!==e+0)throw e;kt(1,0)}},K:function(e){var t=St();try{return be(e)()}catch(e){if(Pt(t),e!==e+0)throw e;kt(1,0)}},f:function(e,t){var n=St();try{return be(e)(t)}catch(e){if(Pt(n),e!==e+0)throw e;kt(1,0)}},P:function(e,t,n){var r=St();try{return be(e)(t,n)}catch(e){if(Pt(r),e!==e+0)throw e;kt(1,0)}},Q:function(e,t,n){var r=St();try{return be(e)(t,n)}catch(e){if(Pt(r),e!==e+0)throw e;kt(1,0)}},k:function(e,t,n){var r=St();try{return be(e)(t,n)}catch(e){if(Pt(r),e!==e+0)throw e;kt(1,0)}},p:function(e,t,n,r){var o=St();try{return be(e)(t,n,r)}catch(e){if(Pt(o),e!==e+0)throw e;kt(1,0)}},q:function(e,t,n,r,o){var i=St();try{return be(e)(t,n,r,o)}catch(e){if(Pt(i),e!==e+0)throw e;kt(1,0)}},N:function(e,t,n,r,o,i){var s=St();try{return be(e)(t,n,r,o,i)}catch(e){if(Pt(s),e!==e+0)throw e;kt(1,0)}},s:function(e,t,n,r,o,i){var s=St();try{return be(e)(t,n,r,o,i)}catch(e){if(Pt(s),e!==e+0)throw e;kt(1,0)}},w:function(e,t,n,r,o,i,s){var a=St();try{return be(e)(t,n,r,o,i,s)}catch(e){if(Pt(a),e!==e+0)throw e;kt(1,0)}},L:function(e,t,n,r,o,i,s,a){var l=St();try{return be(e)(t,n,r,o,i,s,a)}catch(e){if(Pt(l),e!==e+0)throw e;kt(1,0)}},E:function(e,t,n,r,o,i,s,a,l,c,u,d){var p=St();try{return be(e)(t,n,r,o,i,s,a,l,c,u,d)}catch(e){if(Pt(p),e!==e+0)throw e;kt(1,0)}},aa:function(e,t,n,r,o,i,s,a){var l=St();try{return Bt(e,t,n,r,o,i,s,a)}catch(e){if(Pt(l),e!==e+0)throw e;kt(1,0)}},_:function(e,t,n,r,o,i,s){var a=St();try{return Et(e,t,n,r,o,i,s)}catch(e){if(Pt(a),e!==e+0)throw e;kt(1,0)}},Z:function(e,t,n,r,o){var i=St();try{return Rt(e,t,n,r,o)}catch(e){if(Pt(i),e!==e+0)throw e;kt(1,0)}},ca:function(e,t,n,r){var o=St();try{return Nt(e,t,n,r)}catch(e){if(Pt(o),e!==e+0)throw e;kt(1,0)}},$:function(e){var t=St();try{return Ot(e)}catch(e){if(Pt(t),e!==e+0)throw e;kt(1,0)}},ba:function(e,t){var n=St();try{return zt(e,t)}catch(e){if(Pt(n),e!==e+0)throw e;kt(1,0)}},Y:function(e,t,n){var r=St();try{return It(e,t,n)}catch(e){if(Pt(r),e!==e+0)throw e;kt(1,0)}},g:function(e){var t=St();try{be(e)()}catch(e){if(Pt(t),e!==e+0)throw e;kt(1,0)}},r:function(e,t){var n=St();try{be(e)(t)}catch(e){if(Pt(n),e!==e+0)throw e;kt(1,0)}},i:function(e,t,n){var r=St();try{be(e)(t,n)}catch(e){if(Pt(r),e!==e+0)throw e;kt(1,0)}},ha:function(e,t,n,r){var o=St();try{be(e)(t,n,r)}catch(e){if(Pt(o),e!==e+0)throw e;kt(1,0)}},m:function(e,t,n,r){var o=St();try{be(e)(t,n,r)}catch(e){if(Pt(o),e!==e+0)throw e;kt(1,0)}},v:function(e,t,n,r,o){var i=St();try{be(e)(t,n,r,o)}catch(e){if(Pt(i),e!==e+0)throw e;kt(1,0)}},u:function(e,t,n,r,o,i){var s=St();try{be(e)(t,n,r,o,i)}catch(e){if(Pt(s),e!==e+0)throw e;kt(1,0)}},O:function(e,t,n,r,o,i,s){var a=St();try{be(e)(t,n,r,o,i,s)}catch(e){if(Pt(a),e!==e+0)throw e;kt(1,0)}},A:function(e,t,n,r,o,i,s,a){var l=St();try{be(e)(t,n,r,o,i,s,a)}catch(e){if(Pt(l),e!==e+0)throw e;kt(1,0)}},ka:function(e,t,n,r,o,i,s,a,l){var c=St();try{be(e)(t,n,r,o,i,s,a,l)}catch(e){if(Pt(c),e!==e+0)throw e;kt(1,0)}},C:function(e,t,n,r,o,i,s,a,l,c,u){var d=St();try{be(e)(t,n,r,o,i,s,a,l,c,u)}catch(e){if(Pt(d),e!==e+0)throw e;kt(1,0)}},D:function(e,t,n,r,o,i,s,a,l,c,u,d,p,_,h,f){var g=St();try{be(e)(t,n,r,o,i,s,a,l,c,u,d,p,_,h,f)}catch(e){if(Pt(g),e!==e+0)throw e;kt(1,0)}},fa:function(e,t,n,r,o,i,s,a){var l=St();try{Dt(e,t,n,r,o,i,s,a)}catch(e){if(Pt(l),e!==e+0)throw e;kt(1,0)}},da:function(e,t,n,r,o,i,s,a,l,c,u,d){var p=St();try{$t(e,t,n,r,o,i,s,a,l,c,u,d)}catch(e){if(Pt(p),e!==e+0)throw e;kt(1,0)}},ea:function(e,t,n,r,o,i){var s=St();try{Lt(e,t,n,r,o,i)}catch(e){if(Pt(s),e!==e+0)throw e;kt(1,0)}},o:function(e){return e},a:E||l.wasmMemory,G:function(e){st=e},la:ut,z:function(e,t,n,r){return ut(e,t,n,r)}};!function(){function e(e,t){l.asm=e.exports,he.qc.push(l.asm.sb),X=l.asm.ub,Q.unshift(l.asm.Va),I=t,v||(ne--,l.monitorRunDependencies&&l.monitorRunDependencies(ne),0==ne&&(null!==re&&(clearInterval(re),re=null),oe&&(e=oe,oe=null,e())))}function t(t){e(t.instance,t.module)}function n(e){return function(){if(!A&&(y||x)){if("function"==typeof fetch&&!te.startsWith("file://"))return fetch(te,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+te+"'";return e.arrayBuffer()})).catch((function(){return ae()}));if(p)return new Promise((function(e,t){p(te,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return ae()}))}().then((function(e){return WebAssembly.instantiate(e,r)})).then((function(e){return e})).then(e,(function(e){C("failed to asynchronously prepare wasm: "+e),ie(e)}))}var r={a:pt};if(v||(ne++,l.monitorRunDependencies&&l.monitorRunDependencies(ne)),l.instantiateWasm)try{return l.instantiateWasm(r,e)}catch(e){return C("Module.instantiateWasm callback failed with error: "+e),!1}(A||"function"!=typeof WebAssembly.instantiateStreaming||se()||te.startsWith("file://")||T||"function"!=typeof fetch?n(t):fetch(te,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,r).then(t,(function(e){return C("wasm streaming compile failed: "+e),C("falling back to ArrayBuffer instantiation"),n(t)}))}))).catch(u)}(),l.___wasm_call_ctors=function(){return(l.___wasm_call_ctors=l.asm.Va).apply(null,arguments)},l._OrtInit=function(){return(l._OrtInit=l.asm.Wa).apply(null,arguments)},l._OrtCreateSessionOptions=function(){return(l._OrtCreateSessionOptions=l.asm.Xa).apply(null,arguments)},l._OrtAppendExecutionProvider=function(){return(l._OrtAppendExecutionProvider=l.asm.Ya).apply(null,arguments)},l._OrtAddSessionConfigEntry=function(){return(l._OrtAddSessionConfigEntry=l.asm.Za).apply(null,arguments)},l._OrtReleaseSessionOptions=function(){return(l._OrtReleaseSessionOptions=l.asm._a).apply(null,arguments)},l._OrtCreateSession=function(){return(l._OrtCreateSession=l.asm.$a).apply(null,arguments)},l._OrtReleaseSession=function(){return(l._OrtReleaseSession=l.asm.ab).apply(null,arguments)},l._OrtGetInputCount=function(){return(l._OrtGetInputCount=l.asm.bb).apply(null,arguments)},l._OrtGetOutputCount=function(){return(l._OrtGetOutputCount=l.asm.cb).apply(null,arguments)},l._OrtGetInputName=function(){return(l._OrtGetInputName=l.asm.db).apply(null,arguments)},l._OrtGetOutputName=function(){return(l._OrtGetOutputName=l.asm.eb).apply(null,arguments)},l._OrtFree=function(){return(l._OrtFree=l.asm.fb).apply(null,arguments)},l._OrtCreateTensor=function(){return(l._OrtCreateTensor=l.asm.gb).apply(null,arguments)},l._OrtGetTensorData=function(){return(l._OrtGetTensorData=l.asm.hb).apply(null,arguments)},l._OrtReleaseTensor=function(){return(l._OrtReleaseTensor=l.asm.ib).apply(null,arguments)},l._OrtCreateRunOptions=function(){return(l._OrtCreateRunOptions=l.asm.jb).apply(null,arguments)},l._OrtAddRunConfigEntry=function(){return(l._OrtAddRunConfigEntry=l.asm.kb).apply(null,arguments)},l._OrtReleaseRunOptions=function(){return(l._OrtReleaseRunOptions=l.asm.lb).apply(null,arguments)},l._OrtRun=function(){return(l._OrtRun=l.asm.mb).apply(null,arguments)},l._OrtEndProfiling=function(){return(l._OrtEndProfiling=l.asm.nb).apply(null,arguments)};var _t=l._pthread_self=function(){return(_t=l._pthread_self=l.asm.ob).apply(null,arguments)},ht=l._malloc=function(){return(ht=l._malloc=l.asm.pb).apply(null,arguments)},ft=l._free=function(){return(ft=l._free=l.asm.qb).apply(null,arguments)},gt=l._fflush=function(){return(gt=l._fflush=l.asm.rb).apply(null,arguments)};l.__emscripten_tls_init=function(){return(l.__emscripten_tls_init=l.asm.sb).apply(null,arguments)};var mt=l.___funcs_on_exit=function(){return(mt=l.___funcs_on_exit=l.asm.tb).apply(null,arguments)},bt=l.__emscripten_thread_init=function(){return(bt=l.__emscripten_thread_init=l.asm.vb).apply(null,arguments)};l.__emscripten_thread_crashed=function(){return(l.__emscripten_thread_crashed=l.asm.wb).apply(null,arguments)};var wt,yt=l._emscripten_run_in_main_runtime_thread_js=function(){return(yt=l._emscripten_run_in_main_runtime_thread_js=l.asm.xb).apply(null,arguments)},xt=l.__emscripten_proxy_execute_task_queue=function(){return(xt=l.__emscripten_proxy_execute_task_queue=l.asm.yb).apply(null,arguments)},Tt=l.__emscripten_thread_free_data=function(){return(Tt=l.__emscripten_thread_free_data=l.asm.zb).apply(null,arguments)},vt=l.__emscripten_thread_exit=function(){return(vt=l.__emscripten_thread_exit=l.asm.Ab).apply(null,arguments)},kt=l._setThrew=function(){return(kt=l._setThrew=l.asm.Bb).apply(null,arguments)},Mt=l._emscripten_stack_set_limits=function(){return(Mt=l._emscripten_stack_set_limits=l.asm.Cb).apply(null,arguments)},St=l.stackSave=function(){return(St=l.stackSave=l.asm.Db).apply(null,arguments)},Pt=l.stackRestore=function(){return(Pt=l.stackRestore=l.asm.Eb).apply(null,arguments)},At=l.stackAlloc=function(){return(At=l.stackAlloc=l.asm.Fb).apply(null,arguments)},Ft=l.___cxa_can_catch=function(){return(Ft=l.___cxa_can_catch=l.asm.Gb).apply(null,arguments)},Ct=l.___cxa_is_pointer_type=function(){return(Ct=l.___cxa_is_pointer_type=l.asm.Hb).apply(null,arguments)},Ot=l.dynCall_j=function(){return(Ot=l.dynCall_j=l.asm.Ib).apply(null,arguments)},Et=l.dynCall_iiiiij=function(){return(Et=l.dynCall_iiiiij=l.asm.Jb).apply(null,arguments)},It=l.dynCall_jii=function(){return(It=l.dynCall_jii=l.asm.Kb).apply(null,arguments)},Dt=l.dynCall_viiiiij=function(){return(Dt=l.dynCall_viiiiij=l.asm.Lb).apply(null,arguments)},Lt=l.dynCall_vjji=function(){return(Lt=l.dynCall_vjji=l.asm.Mb).apply(null,arguments)},$t=l.dynCall_viiijjjii=function(){return($t=l.dynCall_viiijjjii=l.asm.Nb).apply(null,arguments)},Nt=l.dynCall_iij=function(){return(Nt=l.dynCall_iij=l.asm.Ob).apply(null,arguments)},zt=l.dynCall_ji=function(){return(zt=l.dynCall_ji=l.asm.Pb).apply(null,arguments)},Bt=l.dynCall_iiiiiij=function(){return(Bt=l.dynCall_iiiiiij=l.asm.Qb).apply(null,arguments)},Rt=l.dynCall_iiij=function(){return(Rt=l.dynCall_iiij=l.asm.Rb).apply(null,arguments)};function jt(){function e(){if(!wt&&(wt=!0,l.calledRun=!0,!R)&&(v||fe(Q),c(l),l.onRuntimeInitialized&&l.onRuntimeInitialized(),!v)){if(l.postRun)for("function"==typeof l.postRun&&(l.postRun=[l.postRun]);l.postRun.length;){var e=l.postRun.shift();Z.unshift(e)}fe(Z)}}if(!(0<ne))if(v)c(l),v||fe(Q),postMessage({cmd:"loaded"});else{if(l.preRun)for("function"==typeof l.preRun&&(l.preRun=[l.preRun]);l.preRun.length;)ee();fe(Y),0<ne||(l.setStatus?(l.setStatus("Running..."),setTimeout((function(){setTimeout((function(){l.setStatus("")}),1),e()}),1)):e())}}if(l.UTF8ToString=G,l.stringToUTF8=function(e,t,n){return U(e,o(),t,n)},l.lengthBytesUTF8=q,l.keepRuntimeAlive=J,l.wasmMemory=E,l.stackSave=St,l.stackRestore=Pt,l.stackAlloc=At,l.ExitStatus=ce,l.PThread=he,oe=function e(){wt||jt(),wt||(oe=e)},l.preInit)for("function"==typeof l.preInit&&(l.preInit=[l.preInit]);0<l.preInit.length;)l.preInit.pop()();return jt(),e.ready});e.exports=o},932:(e,t,n)=>{var r,o=(r=(r="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0)||"/index.js",function(e){var t,o,i;e=e||{},t||(t=void 0!==e?e:{}),t.ready=new Promise((function(e,t){o=e,i=t}));var s,a,l,c,u,d,p=Object.assign({},t),_="./this.program",h=(e,t)=>{throw t},f="object"==typeof window,g="function"==typeof importScripts,m="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,b="";m?(b=g?n(908).dirname(b)+"/":"//",d=()=>{u||(c=n(1384),u=n(908))},s=function(e,t){return d(),e=u.normalize(e),c.readFileSync(e,t?void 0:"utf8")},l=e=>((e=s(e,!0)).buffer||(e=new Uint8Array(e)),e),a=(e,t,n)=>{d(),e=u.normalize(e),c.readFile(e,(function(e,r){e?n(e):t(r.buffer)}))},1<process.argv.length&&(_=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2),process.on("uncaughtException",(function(e){if(!(e instanceof K))throw e})),process.on("unhandledRejection",(function(e){throw e})),h=(e,t)=>{if(T||0<j)throw process.exitCode=e,t;t instanceof K||x("exiting due to exception: "+t),process.exit(e)},t.inspect=function(){return"[Emscripten Module object]"}):(f||g)&&(g?b=self.location.href:"undefined"!=typeof document&&document.currentScript&&(b=document.currentScript.src),r&&(b=r),b=0!==b.indexO