//#region src/utils/global-singleton.ts
function resolveGlobalSingleton(key, create) {
	const globalStore = globalThis;
	if (Object.prototype.hasOwnProperty.call(globalStore, key)) return globalStore[key];
	const created = create();
	globalStore[key] = created;
	return created;
}
function resolveGlobalMap(key) {
	return resolveGlobalSingleton(key, () => /* @__PURE__ */ new Map());
}
//#endregion
export { resolveGlobalMap, resolveGlobalSingleton };

//# sourceMappingURL=global-singleton.js.map