const requireNodeModule = (moduleName) => {
    if (typeof window !== 'undefined' && typeof window.require === 'function') {
        return (window.require)(moduleName);
    }
    throw new Error(`Node.js module "${moduleName}" is not available. Ensure nodeIntegration is enabled.`);
};
const mod = requireNodeModule('node:url');
export default mod;
export const pathToFileURL = mod.pathToFileURL;
export const fileURLToPath = mod.fileURLToPath;
export const URL = mod.URL;
export const URLSearchParams = mod.URLSearchParams;
