The string replacement in function loadWasmFactory is incorrect implemented.
original code: https://cdn.jsdelivr.net/npm/onnxruntime-web@1.25.0-dev.20260212-1a71a5f46e/dist/ort-wasm-simd-threaded.asyncify.mjs
var a=new Worker(new URL(import.meta.url),{type:"module",workerData:"em-pthread",name:"em-pthread"});
The actual code being executed in the browser:
var a = new Worker(new URL("https://cdn.jsdelivr.net/npm/onnxruntime-web@1.25.0-dev.20260212-1a71a5f46e/dist"),{
type: "module",
workerData: "em-pthread",
name: "em-pthread"
});