"use strict";var fe=Object.defineProperty;var l=(e,r)=>fe(e,"name",{value:r,configurable:!0});var T=require("node:module"),pe=require("node:worker_threads"),y=require("./node-features-CQLdkVE6.cjs"),n=require("./register-BOkp8V6j.cjs"),g=require("node:url"),ge=require("node:fs"),he=require("node:fs/promises"),h=require("./index-D9F1FXzN.cjs"),z=require("./client-D3mGB526.cjs"),S=require("node:path"),L=typeof document<"u"?document.currentScript:null;const F={active:!0,parsedTsconfig:void 0},X=l(e=>{const r={active:!0,namespace:e?.namespace,onImport:e?.onImport,parsedTsconfig:void 0,port:e?.port,tsconfig:e?.tsconfig};return e?.tsconfig!==!1&&(r.parsedTsconfig=n.loadTsconfig(e?.tsconfig??process.env.TSX_TSCONFIG_PATH)),r},"createData"),ye=l(async e=>{if(!e)throw new Error(`tsx must be loaded with --import instead of --loader The --loader flag was deprecated in Node v20.6.0 and v18.19.0`);Object.assign(F,X(e)),e.port&&e.port.on("message",r=>{r==="deactivate"&&(F.active=!1,e.port.postMessage({type:"deactivated"}))})},"initialize"),Pe=l(()=>(F.parsedTsconfig=n.loadTsconfig(process.env.TSX_TSCONFIG_PATH),"process.setSourceMapsEnabled(true);"),"globalPreload"),Re=l(e=>{const{pathname:r}=new URL(e),t=S.extname(r);if(t===".mts"||t===".mjs")return"module";if(t===".cts"||t===".cjs")return"commonjs";if(t===".js"||n.tsExtensions.includes(t))return n.getPackageType(e)},"getFormatFromFileUrl"),Ue=l(e=>{const{pathname:r}=new URL(e),t=S.extname(r);if(t===".mts"||t===".mjs")return"module";if(t===".cts"||t===".cjs")return"commonjs";if(t===".js"||n.tsExtensions.includes(t))return n.getPackageTypeSync(e)},"getFormatFromFileUrlSync"),U="tsx-namespace=",$="tsx-commonjs-export-preparse",V=`${$}=1`,j="tsx-commonjs-virtual-query",I=new Map,B=l((e,r)=>e.slice(1).split("&").filter(t=>t&&r.every(s=>!t.startsWith(s))).join("&"),"getQueryWithoutParameters"),W=l((e,r)=>{const t=B(e,r);return t?`?${t}`:""},"getSearchWithoutParameters"),Se=l(e=>e.replaceAll(/\/\*[\s\S]*?\*\/|\/\/[^\n\r]*/g,""),"stripComments"),Ee=l(e=>{const r=Se(e);if(/^\s*export\s*\*/.test(r))return"named";if(/^\s*import\s*\*\s*as\s+[\w$]+/.test(r))return"namespace";const t=r.match(/\{([^}]*)\}/)?.[1];if(t)return t.split(",").some(s=>{const o=s.trim().split(/\s+as\s+/)[0];return!!(o&&o!=="default")})?"named":void 0},"getCommonJsImportBinding"),ve=l((e,r,t)=>{const s=I.get(e);if(!s)return!1;try{const[o]=h.parseEsm(s);return o.some(i=>{if(i.d!==-1||i.n!==r)return!1;const m=Ee(s.slice(i.ss,i.s));return m==="named"||t&&m==="namespace"})}catch{return!1}},"parentImportsCommonJsExports"),E=l(e=>{const r=e.indexOf(U);if(r===-1)return;const t=e[r-1];if(t!=="?"&&t!=="&")return;const s=r+U.length,o=e.indexOf("&",s);return o===-1?e.slice(s):e.slice(s,o)},"getNamespace"),K=y.isFeatureSupported(y.importAttributes)?"importAttributes":"importAssertions",Y=l(e=>e==="commonjs"||e==="commonjs-typescript","isCommonJsFormat"),Z=l(e=>e==="module-typescript"||e==="typescript","isModuleTypeScriptFormat"),Te=y.isFeatureSupported(y.esmLoadReadFile),Le=[`${j}=`],J=[`${$}=`,`${j}=`],v=l((e,r)=>r.parsedTsconfig&&n.je(r.parsedTsconfig,e)?r.parsedTsconfig.config:void 0,"getTsconfigRaw"),we=l(e=>{if(!e.searchParams.has(j))return;const{pathname:r}=e,t=r.toLowerCase().lastIndexOf("%3f");if(t===-1)return;const s=new URL(e);return s.pathname=r.slice(0,t),s.search="",g.fileURLToPath(s)},"getFilePathFromVirtualQuery"),x=l(e=>{const r=e.startsWith(n.fileUrlPrefix)?new URL(e):void 0,t=r?g.fileURLToPath(r):e,s=r&&we(r),o=s||t,i=r&&s?g.pathToFileURL(o).toString()+W(r.search,Le):e;return{fileUrl:r,filePath:o,loadUrl:i}},"getFileLoadContext"),k=l((e,r)=>{if(!r?.search)return e;const t=W(r.search,J);return t?g.pathToFileURL(e).toString()+t:e},"getTransformPath"),ee=l((e,r,t)=>{const s=[...r?B(r.search,[U,...J]).split("&").filter(Boolean):[],...t?[`namespace=${encodeURIComponent(t)}`]:[]].join("&");return s?`${e}?${s}`:e},"getFilePathWithQuery"),Fe=new TextDecoder,te=l(e=>typeof e=="string"?e:Fe.decode(e),"decodeSource"),je=l((e,r)=>{const t=new URL(r),s=r.startsWith(n.fileUrlPrefix)?x(r).filePath:void 0;t.searchParams.delete("tsx-namespace"),t.searchParams.delete($),t.searchParams.delete(j),s&&(t.pathname=new URL(g.pathToFileURL(s)).pathname);const o=t.toString();return e.port&&e.port.postMessage({type:"load",url:o}),e.onImport?.(o),o},"notifyLoad"),re=l((e,r)=>{if(!e.active)return!1;const t=E(r);if(e.namespace&&e.namespace!==t)return!1;const s=je(e,r);return z.parent.send&&z.parent.send({type:"dependency",path:s}),!0},"prepareLoad"),se=l((e,r)=>{if(!n.isJsonPattern.test(e))return r;const t=r[K];return t?.type?r:{...r,[K]:{...t,type:"json"}}},"prepareJsonAttributes"),Q=l(({conditions:e})=>e?.includes("require")===!0&&!e.includes("import"),"isCommonJsRequireContext$1"),Ie=l(e=>{const r=l(async(t,s,o)=>{if(!re(e,t))return o(t,s);const i=E(t),{fileUrl:m,filePath:c,loadUrl:a}=x(t),u=se(a,s),d=await o(a,u);n.logEsm(3,"loaded by next loader",{url:t,loadUrl:a,loaded:d});const P=m?.searchParams.has($)===!0,R=d.format,w=m?new URL(g.pathToFileURL(c)):void 0;if(w&&m&&(w.search=W(m.search,J)),Y(R)&&m&&d.responseURL?.startsWith("file:")&&!c.endsWith(".cjs")){const f=await he.readFile(g.pathToFileURL(c),"utf8"),b=h.isESM(f);if(R==="commonjs-typescript"||!c.endsWith(".js")||b){if(!Te){if(P&&b&&n.implicitTsExtensionsPattern.test(c)){const C=await h.transform(f,c,{define:{"import.meta.url":JSON.stringify(w.toString())},tsconfigRaw:v(c,e)});return I.set(t,C.code),{format:"module",source:n.inlineSourceMap(C)}}return d}if(!i&&!P&&!c.endsWith(".cts"))return d;const G=!!(i||P||W(m.search,J)),D=h.transformSync(f,k(c,m),{cjsBanner:G?`require = require("node:module").createRequire(${JSON.stringify(g.pathToFileURL(c).toString())});`:void 0,tsconfigRaw:v(c,e)});if(d.format="commonjs",d.source=n.inlineSourceMap(D),G){const C=ee(c,m,i);d.responseURL=`data:text/javascript,${encodeURIComponent(D.code)}?filePath=${encodeURIComponent(C)}`}return n.logEsm(3,"returning CJS export annotation",d),d}}if(!d.source)return d;const p=te(d.source),_=R==="json"&&!Q(s);if(R==="commonjs-typescript"){const f=h.transformSync(p,c,{tsconfigRaw:v(c,e)});return{...d,format:"commonjs",source:n.inlineSourceMap(f)}}if(_||Z(R)||n.tsExtensionsPattern.test(t)){const f=await h.transform(p,c,{tsconfigRaw:v(c,e)});return I.set(t,f.code),{format:"module",source:n.inlineSourceMap(f)}}if(d.format==="module"){const f=h.transformDynamicImport(c,p);f?(d.source=n.inlineSourceMap(f),I.set(t,f.code)):I.set(t,p)}return d},"load2");return n.debugEnabled?async(t,s,o)=>{n.logEsm(2,"load",{url:t,context:s});const i=await r(t,s,o);return n.logEsm(1,"loaded",{url:t,result:i}),i}:r},"createLoad"),_e=l(e=>{const r=l((t,s,o)=>{if(Q(s)&&n.isGlobalCjsLoaderActive()||!re(e,t))return o(t,s);const i=E(t),{fileUrl:m,filePath:c,loadUrl:a}=x(t),u=se(a,s),d=o(a,u);n.logEsm(3,"loaded by next loader",{url:t,loadUrl:a,loaded:d});const P=d.format;if(Y(P)&&y.isFeatureSupported(y.esmLoadReadFile)&&d.responseURL?.startsWith("file:")&&!c.endsWith(".cjs")){const p=ge.readFileSync(g.pathToFileURL(c),"utf8");if(P==="commonjs-typescript"||!c.endsWith(".js")||h.isESM(p)){const _=h.transformSync(p,k(c,m),{tsconfigRaw:v(c,e)}),f=!i&&n.isGlobalCjsLoaderActive(),b=ee(c,m,i);return d.format="commonjs",d.shouldBeReloadedByCJSLoader=f,d.source=n.inlineSourceMap(_),f||(d.responseURL=`data:text/javascript,${encodeURIComponent(_.code)}?filePath=${encodeURIComponent(b)}`),n.logEsm(3,"returning CJS export annotation",d),d}}if(!d.source)return d;const R=te(d.source),w=P==="json"&&!Q(s);if(P==="commonjs-typescript"){const p=h.transformSync(R,c,{tsconfigRaw:v(c,e)});return{...d,format:"commonjs",shouldBeReloadedByCJSLoader:!1,source:n.inlineSourceMap(p)}}if(w||Z(P)||n.tsExtensionsPattern.test(t)){const p=h.transformEsmSync(R,c,{tsconfigRaw:v(c,e)});return{format:"module",source:n.inlineSourceMap(p)}}if(d.format==="module"){const p=h.transformDynamicImport(c,R);p&&(d.source=n.inlineSourceMap(p))}return d},"load2");return n.debugEnabled?(t,s,o)=>{n.logEsm(2,"loadSync",{url:t,context:s});const i=r(t,s,o);return n.logEsm(1,"loadedSync",{url:t,result:i}),i}:r},"createLoadSync"),be=Ie(F),Ce=y.isFeatureSupported(y.esmLoadReadFile),$e=/^(?:[a-z][\d+.a-z-]*:\/\/|data:|file:|node:)/i,oe=l(e=>!n.isFilePath(e)&&!$e.test(e),"isTsconfigPathAliasSpecifier"),M=l(e=>{if(e.url)return e.url;const r=e.message.match(/^Cannot find module '([^']+)'/);if(r){const[,s]=r;return s}const t=e.message.match(/^Cannot find package '([^']+)'/);if(t){const[,s]=t;if(!S.isAbsolute(s))return;const o=g.pathToFileURL(s);if(o.pathname.endsWith("/")&&(o.pathname+="package.json"),o.pathname.endsWith("/package.json")){const i=h.readJsonFile(o);if(i?.main)return new URL(i.main,o).toString()}else return o.toString()}},"getMissingPathFromNotFound"),O=l(e=>e==="ERR_MODULE_NOT_FOUND"||e==="MODULE_NOT_FOUND","isModuleNotFound"),N=l(async(e,r,t,s)=>{const o=n.mapTsExtensions(e);if(n.logEsm(3,"resolveExtensions",{url:e,context:r,throwError:s,tryPaths:o}),!o)return;let i;for(const m of o)try{return await t(m,r)}catch(c){const{code:a}=c;if(!O(a)&&a!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw c;i=c}if(s)throw i},"resolveExtensions"),q=l((e,r,t,s)=>{const o=n.mapTsExtensions(e);if(n.logEsm(3,"resolveExtensionsSync",{url:e,context:r,throwError:s,tryPaths:o}),!o)return;let i;for(const m of o)try{return t(m,r)}catch(c){const{code:a}=c;if(!O(a)&&a!=="ERR_PACKAGE_PATH_NOT_EXPORTED")throw c;i=c}if(s)throw i},"resolveExtensionsSync"),We=l(async(e,r,t,s)=>{const o=s.parsedTsconfig?.config.compilerOptions?.allowJs??!1;if(n.logEsm(3,"resolveBase",{specifier:e,context:r,specifierStartsWithFileUrl:e.startsWith(n.fileUrlPrefix),isRelativePath:n.isRelativePath(e),tsExtensionsPattern:n.tsExtensionsPattern.test(r.parentURL),allowJs:o}),(e.startsWith(n.fileUrlPrefix)||n.isRelativePath(e))&&(n.tsExtensionsPattern.test(r.parentURL)||o)){const i=await N(e,r,t);if(n.logEsm(3,"resolveBase resolved",{specifier:e,context:r,resolved:i}),i)return i}try{return await t(e,r)}catch(i){if(n.logEsm(3,"resolveBase error",{specifier:e,context:r,error:i}),i instanceof Error){const m=i;if(O(m.code)){const c=M(m);if(c){const a=await N(c,r,t);if(a)return a}}}throw i}},"resolveBase"),Je=l((e,r,t,s)=>{const o=s.parsedTsconfig?.config.compilerOptions?.allowJs??!1;if(n.logEsm(3,"resolveBaseSync",{specifier:e,context:r,specifierStartsWithFileUrl:e.startsWith(n.fileUrlPrefix),isRelativePath:n.isRelativePath(e),tsExtensionsPattern:n.tsExtensionsPattern.test(r.parentURL),allowJs:o}),(e.startsWith(n.fileUrlPrefix)||n.isRelativePath(e))&&(n.tsExtensionsPattern.test(r.parentURL)||o)){const i=q(e,r,t);if(n.logEsm(3,"resolveBaseSync resolved",{specifier:e,context:r,resolved:i}),i)return i}try{return t(e,r)}catch(i){if(n.logEsm(3,"resolveBaseSync error",{specifier:e,context:r,error:i}),i instanceof Error){const m=i;if(O(m.code)){const c=M(m);if(c){const a=q(c,r,t);if(a)return a}}}throw i}},"resolveBaseSync"),ne=l(async(e,r,t,s)=>{if(n.logEsm(3,"resolveDirectory",{specifier:e,context:r,isDirectory:n.isDirectoryPattern.test(e)}),(e==="."||e===".."||e.endsWith("/.."))&&(e+="/"),n.isDirectoryPattern.test(e)){const o=new URL(e,r.parentURL);return o.pathname=S.join(o.pathname,"index"),await N(o.toString(),r,t,!0)}try{return await We(e,r,t,s)}catch(o){if(o instanceof Error){n.logEsm(3,"resolveDirectory error",{specifier:e,context:r,error:o});const i=o;if(i.code==="ERR_UNSUPPORTED_DIR_IMPORT"){const m=M(i);if(m)try{return await N(`${m}/index`,r,t,!0)}catch(c){const a=c,{message:u}=a;throw a.message=a.message.replace(`${"/index".replace("/",S.sep)}'`,"'"),a.stack=a.stack.replace(u,a.message),a}}}throw o}},"resolveDirectory"),ae=l((e,r,t,s)=>{if(n.logEsm(3,"resolveDirectorySync",{specifier:e,context:r,isDirectory:n.isDirectoryPattern.test(e)}),(e==="."||e===".."||e.endsWith("/.."))&&(e+="/"),n.isDirectoryPattern.test(e)){const o=new URL(e,r.parentURL);return o.pathname=S.join(o.pathname,"index"),q(o.toString(),r,t,!0)}try{return Je(e,r,t,s)}catch(o){if(o instanceof Error){n.logEsm(3,"resolveDirectorySync error",{specifier:e,context:r,error:o});const i=o;if(i.code==="ERR_UNSUPPORTED_DIR_IMPORT"){const m=M(i);if(m)try{return q(`${m}/index`,r,t,!0)}catch(c){const a=c,{message:u}=a;throw a.message=a.message.replace(`${"/index".replace("/",S.sep)}'`,"'"),a.stack=a.stack.replace(u,a.message),a}}}throw o}},"resolveDirectorySync"),Me=l(async(e,r,t,s)=>{const o=oe(e);if(n.logEsm(3,"resolveTsPaths",{specifier:e,context:r,tsconfigPathAliasSpecifier:o,tsconfig:s.parsedTsconfig,fromNodeModules:r.parentURL?.includes("/node_modules/")}),o&&s.parsedTsconfig&&!r.parentURL?.includes("/node_modules/")){const i=n.wt(s.parsedTsconfig,e);n.logEsm(3,"resolveTsPaths",{possiblePaths:i});for(const m of i)try{return await ne(g.pathToFileURL(m).toString(),r,t,s)}catch{}}return ne(e,r,t,s)},"resolveTsPaths"),Oe=l((e,r,t,s)=>{const o=oe(e);if(n.logEsm(3,"resolveTsPathsSync",{specifier:e,context:r,tsconfigPathAliasSpecifier:o,tsconfig:s.parsedTsconfig,fromNodeModules:r.parentURL?.includes("/node_modules/")}),o&&s.parsedTsconfig&&!r.parentURL?.includes("/node_modules/")){const i=n.wt(s.parsedTsconfig,e);n.logEsm(3,"resolveTsPathsSync",{possiblePaths:i});for(const m of i)try{return ae(g.pathToFileURL(m).toString(),r,t,s)}catch{}}return ae(e,r,t,s)},"resolveTsPathsSync"),A="tsx://",Ne=l(e=>e.conditions.includes("require")&&!e.conditions.includes("import"),"isCommonJsRequireContext"),H=l((e,r)=>`${e}${e.includes("?")?"&":"?"}${r}`,"addQuery"),ie=l((e,r,t)=>{if(r!=="commonjs"||!e.startsWith(n.fileUrlPrefix)||!n.implicitTsExtensionsPattern.test(e))return e;const s=new URL(e),o=[B(s.search,[U]),...t?[`namespace=${encodeURIComponent(t)}`]:[]].filter(Boolean).join("&");return o?(s.pathname+=`%3F${o}`,s.searchParams.set(j,"1"),s.toString()):e},"preserveCommonJsQueryIdentity"),qe=l(e=>{const r=l(async(t,s,o)=>{if(!e.active||t.startsWith("node:"))return o(t,s);let i=E(t)??(s.parentURL&&E(s.parentURL));if(e.namespace){let d;if(t.startsWith(A)){try{d=JSON.parse(t.slice(A.length))}catch{}d?.namespace&&(i=d.namespace)}if(e.namespace!==i)return o(t,s);d&&(t=d.specifier,s.parentURL=d.parentURL)}const[m,c]=t.split("?"),a=await Me(m,s,o,e);if(n.logEsm(2,"nextResolve",{resolved:a}),a.format==="builtin")return a;(!a.format||a.format==="commonjs-typescript"||a.format==="module-typescript")&&a.url.startsWith(n.fileUrlPrefix)&&(a.format=await Re(a.url),n.logEsm(2,"getFormatFromFileUrl",{resolved:a,format:a.format})),c&&(a.url+=`?${c}`);const u=s.parentURL&&a.format==="commonjs"&&n.implicitTsExtensionsPattern.test(a.url)&&(s.parentURL.includes(V)||ve(s.parentURL,t,Ce));return i&&!a.url.includes(U)&&(a.url=H(a.url,`${U}${i}`)),u&&(a.url=H(a.url,V)),(i||u)&&(a.url=ie(a.url,a.format,i)),a},"resolve2");return n.debugEnabled?async(t,s,o)=>{n.logEsm(2,"resolve",{specifier:t,context:s});const i=await r(t,s,o);return n.logEsm(1,"resolved",{specifier:t,context:s,result:i}),i}:r},"createResolve"),Ae=l(e=>{const r=l((t,s,o)=>{if(!e.active||t.startsWith("node:")||Ne(s)&&n.isGlobalCjsLoaderActive())return o(t,s);let i=E(t)??(s.parentURL&&E(s.parentURL));if(e.namespace){let u;if(t.startsWith(A)){try{u=JSON.parse(t.slice(A.length))}catch{}u?.namespace&&(i=u.namespace)}if(e.namespace!==i)return o(t,s);u&&(t=u.specifier,s.parentURL=u.parentURL)}const[m,c]=t.split("?"),a=Oe(m,s,o,e);return n.logEsm(2,"nextResolve",{resolved:a}),a.format==="builtin"||((!a.format||a.format==="commonjs-typescript"||a.format==="module-typescript")&&a.url.startsWith(n.fileUrlPrefix)&&(a.format=Ue(a.url),n.logEsm(2,"getFormatFromFileUrlSync",{resolved:a,format:a.format})),c&&(a.url+=`?${c}`),i&&!a.url.includes(U)&&(a.url=H(a.url,`${U}${i}`)),a.url=ie(a.url,a.format,i)),a},"resolve2");return n.debugEnabled?(t,s,o)=>{n.logEsm(2,"resolveSync",{specifier:t,context:s});const i=r(t,s,o);return n.logEsm(1,"resolvedSync",{specifier:t,context:s,result:i}),i}:r},"createResolveSync"),Be=qe(F),ce=l(e=>(r,t)=>{if(!t)throw new Error("The current file path (import.meta.url) must be provided in the second argument of tsImport()");const s=t.startsWith(n.fileUrlPrefix)?t:g.pathToFileURL(t).toString();return import(`tsx://${JSON.stringify({specifier:r,parentURL:s,namespace:e})}`)},"createScopedImport");let le=!1;const xe=l(e=>{const r=[];for(let t=0;t[...(process.env.NODE_OPTIONS??"").matchAll(/(?:^|\s)--import(?:=|\s+)(\S+)/g)].map(([,e])=>e),"collectNodeOptionsImportSpecifiers"),me=[new URL("loader.mjs",typeof document>"u"?require("url").pathToFileURL(__filename).href:L&&L.src||new URL("register-CHVGxKtC.cjs",document.baseURI).href).toString(),new URL("esm/index.mjs",typeof document>"u"?require("url").pathToFileURL(__filename).href:L&&L.src||new URL("register-CHVGxKtC.cjs",document.baseURI).href).toString()],He=new Set(["tsx","tsx/esm",...me,...me.map(e=>decodeURI(new URL(e).pathname))]),Ge=l(e=>He.has(e),"isTsxImport"),de=l(e=>/\.(?:[cm]?ts|tsx)(?:[?#].*)?$/.test(e),"isTypeScriptImport"),De=l(()=>{const e=xe(process.execArgv),r=e.findIndex(Ge);return r>0&&e.slice(0,r).some(de)},"hasCliTypeScriptPreload"),ze=Qe().some(de)||De(),ue=typeof T.registerHooks=="function"&&y.isFeatureSupported(y.moduleRegisterHooksCjsReload)&&!ze,Xe=l(e=>{if(!T.register&&!ue)throw new Error(`This version of Node.js (${process.version}) does not support module.register(). Please upgrade to Node v18.19 or v20.6 and above.`);if(!le){const{_resolveFilename:c}=T;T._resolveFilename=(a,...u)=>c(n.interopCjsExports(a),...u),le=!0}const{sourceMapsEnabled:r}=process;if(process.setSourceMapsEnabled(!0),ue){const c=X({namespace:e?.namespace,onImport:e?.onImport,tsconfig:e?.tsconfig}),a=T.registerHooks({load:_e(c),resolve:Ae(c)}),u=l(async()=>{c.active=!1,a.deregister(),r===!1&&process.setSourceMapsEnabled(!1)},"unregister2");return e?.namespace&&(u.import=ce(e.namespace),u.unregister=u),u}const{port1:t,port2:s}=new pe.MessageChannel;T.register(`./esm/index.mjs?${Date.now()}`,{parentURL:typeof document>"u"?require("url").pathToFileURL(__filename).href:L&&L.src||new URL("register-CHVGxKtC.cjs",document.baseURI).href,data:{port:s,namespace:e?.namespace,tsconfig:e?.tsconfig},transferList:[s]});const o=e?.onImport,i=o&&(c=>{c.type==="load"&&o(c.url)});i&&(t.on("message",i),t.unref());const m=l(()=>(r===!1&&process.setSourceMapsEnabled(!1),i&&t.off("message",i),t.postMessage("deactivate"),new Promise(c=>{const a=l(u=>{u.type==="deactivated"&&(c(),t.off("message",a))},"onDeactivated");t.on("message",a)})),"unregister");return e?.namespace&&(m.import=ce(e.namespace),m.unregister=m),m},"register");exports.globalPreload=Pe,exports.initialize=ye,exports.load=be,exports.register=Xe,exports.resolve=Be;