"use strict";
/* Socket Lib - Built with rolldown */
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const require_node_module = require('../node/module.js');

//#region src/smol/primordial.ts
/**
* @file Lazy-loader for socket-btm's `node:smol-primordial` binding.
*   `node:smol-primordial` provides V8 Fast API typed implementations of Math.*
*   and Number.is* primordials, registered with `CFunction::Make()` so TurboFan
*   inlines them directly into JIT- compiled JS callers. Bypasses the
*   FunctionCallbackInfo trampoline entirely — ~30-50% gain on hot loops where
*   V8 doesn't already auto-inline. Returns `undefined` on stock Node +
*   non-Node runtimes. Result is cached across calls.
*
* @internal — used by `src/primordials.ts` to resolve smol-aware
*   Math.* / Number.is* fast paths. Most callers should use the
*   standard `primordials` exports, which already route through this
*   when smol is present.
*
* @see https://v8.dev/blog/v8-release-99 — V8 Fast API Calls overview
*/
let _smolPrimordial;
let _smolPrimordialProbed = false;
/**
* Returns `node:smol-primordial` when running on the smol Node binary,
* otherwise `undefined`. Result is cached across calls.
*/
/*@__NO_SIDE_EFFECTS__*/
function getSmolPrimordial() {
	if (!_smolPrimordialProbed) {
		_smolPrimordialProbed = true;
		/* c8 ignore start - smol Node binary only. */
		if (/* @__PURE__ */ require_node_module.isNodeBuiltin("node:smol-primordial")) _smolPrimordial = require("node:smol-primordial");
	}
	return _smolPrimordial;
}

//#endregion
exports.getSmolPrimordial = getSmolPrimordial;