const currentImports = {};
      const exportSet = new Set(['Module', '__esModule', 'default', '_export_sfc']);
      let moduleMap = {
"storage/core/web":()=>{
      dynamicLoadingCss(["style-k96NGBcU.css"], false, 'storage/core/web');
      return __federation_import('./__federation_expose_storageCoreWeb-D_lUpkgR.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
"storage/core/common":()=>{
      dynamicLoadingCss(["style-k96NGBcU.css"], false, 'storage/core/common');
      return __federation_import('./__federation_expose_storageCoreCommon-B4eHaa9f.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
"storage/transformers/web":()=>{
      dynamicLoadingCss(["style-k96NGBcU.css"], false, 'storage/transformers/web');
      return __federation_import('./__federation_expose_storageTransformersWeb-Cr77O5xA.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
"storage/transformers/common":()=>{
      dynamicLoadingCss(["style-k96NGBcU.css"], false, 'storage/transformers/common');
      return __federation_import('./__federation_expose_storageTransformersCommon-B75H2k8o.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
"storage/admin-crud/web":()=>{
      dynamicLoadingCss(["style-k96NGBcU.css"], false, 'storage/admin-crud/web');
      return __federation_import('./__federation_expose_storageAdmin-crudWeb-C3P5-onE.js').then(module =>Object.keys(module).every(item => exportSet.has(item)) ? () => module.default : () => module)},
"storage/admin-crud/common":()=>{
      dynamicLoadingCss(["style-k96NGBcU.css"], false, 'storage/admin-crud/common');
      return __federation_import('./__federation_expose_storageAdmin-crudCommon-Dqd_EbNt.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-storage__' + 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
