"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }"use client";




var _chunk27APPAJNcjs = require('../chunk-27APPAJN.cjs');




var _chunkMEAR2WHScjs = require('../chunk-MEAR2WHS.cjs');
require('../chunk-VRHGVLSL.cjs');

// src/contexts/use-outer-or-default.ts
var _react = require('react');
function useOuterOrDefault(context, factory, deps = []) {
  const outer = _react.useContext.call(void 0, context);
  const fallback = _react.useMemo.call(void 0, factory, deps);
  return _nullishCoalesce(outer, () => ( fallback));
}








exports.ChatRuntimeContext = _chunkMEAR2WHScjs.ChatRuntimeContext; exports.EndpointsRuntimeContext = _chunk27APPAJNcjs.EndpointsRuntimeContext; exports.useChatRuntime = _chunkMEAR2WHScjs.useChatRuntime; exports.useEndpointsRuntime = _chunk27APPAJNcjs.useEndpointsRuntime; exports.useOuterOrDefault = useOuterOrDefault; exports.useRequiredChatRuntime = _chunkMEAR2WHScjs.useRequiredChatRuntime; exports.useRequiredEndpointsRuntime = _chunk27APPAJNcjs.useRequiredEndpointsRuntime;
//# sourceMappingURL=index.cjs.map