const currentImports = {};
      const exportSet = new Set(['Module', '__esModule', 'default', '_export_sfc']);
      let moduleMap = {
"bullmq/core/web":()=>{
      dynamicLoadingCss(["style-Bw7n8xA-.css"], false, 'bullmq/core/web');
      return __federation_import('./__federation_expose_bullmqCoreWeb-bQqpVYBp.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
"bullmq/core/common":()=>{
      dynamicLoadingCss(["style-Bw7n8xA-.css"], false, 'bullmq/core/common');
      return __federation_import('./__federation_expose_bullmqCoreCommon-DHBYT5mh.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
"pg-boss/core/web":()=>{
      dynamicLoadingCss(["style-Bw7n8xA-.css"], false, 'pg-boss/core/web');
      return __federation_import('./__federation_expose_pg-bossCoreWeb-sCKZ3rVb.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
"pg-boss/core/common":()=>{
      dynamicLoadingCss(["style-Bw7n8xA-.css"], false, 'pg-boss/core/common');
      return __federation_import('./__federation_expose_pg-bossCoreCommon-CPN-Q5N_.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
"queue/core/web":()=>{
      dynamicLoadingCss(["style-Bw7n8xA-.css"], false, 'queue/core/web');
      return __federation_import('./__federation_expose_queueCoreWeb-BzbLHiKA.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
"queue/core/common":()=>{
      dynamicLoadingCss(["style-Bw7n8xA-.css"], false, 'queue/core/common');
      return __federation_import('./__federation_expose_queueCoreCommon-CJDfYKG1.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},};
    const seen = {};
    const dynamicLoadingCss = (cssFilePaths, dontAppendStylesToHead, exposeItemName) => {
      const metaUrl = import.meta.url;
      if (typeof metaUrl == 'undefined') {
        console.warn('The remote style takes effect only when the build.target option in the vite.config.ts file is higher than that of "es2020".');
        return
      }
      const curUrl = metaUrl.substring(0, metaUrl.lastIndexOf('remoteEntry.js'));

      cssFilePaths.forEach(cssFilePath => {
        const href = curUrl + cssFilePath;
        if (href in seen) return
        seen[href] = true;
        if (dontAppendStylesToHead) {
          const key = 'css__plugin-queue__' + exposeItemName;
          if (window[key] == null) window[key] = [];
          window[key].push(href);
        } else {
          const element = document.head.appendChild(document.createElement('link'));
          element.href = href;
          element.rel = 'stylesheet';
        }
      });
    };
    async function __federation_import(name) {
        currentImports[name] ??= import(name);
        return currentImports[name]
    }    const get =(module) => {
      if(!moduleMap[module]) throw new Error('Can not find remote module ' + module)
      return moduleMap[module]();
    };
    const init =(shareScope) => {
      globalThis.__federation_shared__= globalThis.__federation_shared__|| {};
      Object.entries(shareScope).forEach(([key, value]) => {
        const versionKey = Object.keys(value)[0];
        const versionValue = Object.values(value)[0];
        const scope = versionValue.scope || 'default';
        globalThis.__federation_shared__[scope] = globalThis.__federation_shared__[scope] || {};
        const shared= globalThis.__federation_shared__[scope];
        (shared[key] = shared[key]||{})[versionKey] = versionValue;
      });
    };

export { dynamicLoadingCss, get, init };
//# sourceMappingURL=remoteEntry.js.map
