@ahmedramez-org/nexus-chat 1.0.0-beta.2 → 1.0.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/README.md +59 -39
  2. package/contract/conformance.js +6 -4
  3. package/contract/index.d.ts +39 -2
  4. package/contract/index.js +12 -0
  5. package/index.d.ts +8 -2
  6. package/index.js +84 -3
  7. package/package.json +2 -4
  8. package/react.d.ts +50 -14
  9. package/react.js +371 -33
  10. package/remote/assets/AgentOptionControl-BnqfB5W3.js +0 -1
  11. package/remote/assets/CsvPreview-DD2VELWa.js +0 -10
  12. package/remote/assets/ErrorCard-Bu_0QAJ9.js +0 -1
  13. package/remote/assets/HighlightedCode-DpxGYHfF.js +0 -1
  14. package/remote/assets/HistorySearchDialog-q4cvx5jy.js +0 -41
  15. package/remote/assets/HostBridgeProvider-BV-UGU3Q.js +0 -1
  16. package/remote/assets/HtmlArtifactRenderer-EO_cwaEm.js +0 -1
  17. package/remote/assets/I18nContext-BlQKoDmv.js +0 -24
  18. package/remote/assets/PreviewState-VcIZyCXJ.js +0 -1
  19. package/remote/assets/SourceCitations-DvApeC9N.js +0 -1
  20. package/remote/assets/SourcesArtifactRenderer-BqnIOctm.js +0 -1
  21. package/remote/assets/TableArtifactRenderer-BLZLQMxU.js +0 -2
  22. package/remote/assets/TiptapComposerInput-CmxEiBlE.js +0 -132
  23. package/remote/assets/UnsupportedArtifact-CeOCu_J6.js +0 -1
  24. package/remote/assets/_virtual_mf-localSharedImportMap___mfe_internal__nexusChat__mf_owner__1-CObPUVU6.js +0 -1
  25. package/remote/assets/ar-BV81JAir.js +0 -1
  26. package/remote/assets/button-CO0tH6F2.js +0 -1
  27. package/remote/assets/client-Bv7EbCrM.js +0 -2
  28. package/remote/assets/composite-giRhJC3d.js +0 -1
  29. package/remote/assets/conformance-entry-uotihsU2.js +0 -2
  30. package/remote/assets/createLucideIcon-D1A0JYKN.js +0 -1
  31. package/remote/assets/de-BXJlhmC2.js +0 -1
  32. package/remote/assets/defineProperty-BbfpZ9Tg.js +0 -1
  33. package/remote/assets/dist-MaNcI-Om.js +0 -4
  34. package/remote/assets/errorReporter-hCgThzof.js +0 -1
  35. package/remote/assets/es-nnw68YFM.js +0 -1
  36. package/remote/assets/federation-entry-B8pojL73.css +0 -2
  37. package/remote/assets/federation-entry-BA9UpYiM.js +0 -65
  38. package/remote/assets/floating-ui.dom-B99QSfPH.js +0 -1
  39. package/remote/assets/floating-ui.utils.dom-ObnfY4F6.js +0 -1
  40. package/remote/assets/fr-CJIAbbzn.js +0 -1
  41. package/remote/assets/highlighter-C37NKSjx.js +0 -19
  42. package/remote/assets/hostInit-YMtJ2r-g.js +0 -1
  43. package/remote/assets/it-D3TiEKfy.js +0 -1
  44. package/remote/assets/ja-ZB0L4Lsc.js +0 -1
  45. package/remote/assets/jsx-runtime-DE3RlOCf.js +0 -1
  46. package/remote/assets/lib-CjT9YRPC.js +0 -1
  47. package/remote/assets/modelProviderIcons-fiyx4SaW.js +0 -1
  48. package/remote/assets/react-dom-FxOPXJ08.js +0 -1
  49. package/remote/assets/rehype-raw-CNOzW4vu.js +0 -2
  50. package/remote/assets/roboto-latin-400-italic-CSuqwwKr.woff2 +0 -0
  51. package/remote/assets/roboto-latin-400-normal-BqEyEoaF.woff2 +0 -0
  52. package/remote/assets/roboto-latin-500-italic-DOe3GFcv.woff2 +0 -0
  53. package/remote/assets/roboto-latin-500-normal-7RbcRiD8.woff2 +0 -0
  54. package/remote/assets/roboto-latin-700-italic-Cb9agdGy.woff2 +0 -0
  55. package/remote/assets/roboto-latin-700-normal-BZpUvMxY.woff2 +0 -0
  56. package/remote/assets/roboto-latin-ext-400-italic-BilqUbDw.woff2 +0 -0
  57. package/remote/assets/roboto-latin-ext-400-normal-C3tdtHj3.woff2 +0 -0
  58. package/remote/assets/roboto-latin-ext-500-italic-B5teBpxj.woff2 +0 -0
  59. package/remote/assets/roboto-latin-ext-500-normal-pMCM9Ixg.woff2 +0 -0
  60. package/remote/assets/roboto-latin-ext-700-italic-CBdFfgzf.woff2 +0 -0
  61. package/remote/assets/roboto-latin-ext-700-normal-DSBUz0N1.woff2 +0 -0
  62. package/remote/assets/rolldown-runtime-hePW80VL.js +0 -1
  63. package/remote/assets/sessionTitle-C9LhAN0r.js +0 -1
  64. package/remote/assets/spinner-eqRx6Fq-.js +0 -1
  65. package/remote/assets/sqlFormatting-BjJIfUN_.js +0 -7
  66. package/remote/assets/src-CIHHGjAO.js +0 -1
  67. package/remote/assets/store-FaSYSP4_.js +0 -1
  68. package/remote/assets/useBaseUiId-Dpqq0brK.js +0 -1
  69. package/remote/assets/usePositioner-BhCjFmeW.js +0 -1
  70. package/remote/assets/virtualExposes-C0oWo8z2.js +0 -1
  71. package/remote/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__nexusChat__remoteEntry_js-5uUvXWWH.js +0 -1
  72. package/remote/assets/virtual_mf-exposes-ssr___mfe_internal__nexusChat__remoteEntry_js-WBZ0Muv9.js +0 -2
  73. package/remote/assets/virtual_mf-exposes___mfe_internal__nexusChat__remoteEntry_js-BGZ2nkwm.js +0 -2
  74. package/remote/assets/vite-preload-helper-B7qeedMF.js +0 -1
  75. package/remote/assets/zh-De2Ilp0M.js +0 -1
  76. package/remote/remoteEntry.js +0 -1
  77. package/remote/remoteEntry.ssr.js +0 -1
@@ -1,4 +0,0 @@
1
- import{t as e}from"./vite-preload-helper-B7qeedMF.js";var t=`FEDERATION_DEBUG`,n={AT:`@`,HYPHEN:`-`,SLASH:`/`},r={[n.AT]:`scope_`,[n.HYPHEN]:`_`,[n.SLASH]:`__`};r[n.AT],n.AT,r[n.HYPHEN],n.HYPHEN,r[n.SLASH],n.SLASH;var i=function(e){return e[e.UNKNOWN=1]=`UNKNOWN`,e[e.CALCULATED=2]=`CALCULATED`,e[e.NO_USE=0]=`NO_USE`,e}({});function a(){return!0}function o(){var e;return typeof navigator<`u`&&((e=navigator)==null?void 0:e.product)===`ReactNative`}function s(){try{if(a()&&window.localStorage)return!!localStorage.getItem(t)}catch{return!1}return!1}function c(){return typeof process<`u`&&{}.FEDERATION_DEBUG?!!{}.FEDERATION_DEBUG:typeof FEDERATION_DEBUG<`u`&&FEDERATION_DEBUG?!0:s()}var l=`[ Federation Runtime ]`,u=function(...e){return e.length?e.reduce((e,t)=>t?e?`${e}:${t}`:t:e,``):``};function d(e,t){if(`getPublicPath`in e){let n;return n=e.getPublicPath.startsWith(`function`)?Function(`return `+e.getPublicPath)()():Function(e.getPublicPath)(),`${n}${t}`}return`publicPath`in e?!a()&&!o()&&`ssrPublicPath`in e&&typeof e.ssrPublicPath==`string`?`${e.ssrPublicPath}${t}`:`${e.publicPath}${t}`:(console.warn(`Cannot get resource URL. If in debug mode, please ignore.`,e,t),``)}var f=e=>{console.warn(`${l}: ${e}`)};function p(e){try{return JSON.stringify(e,null,2)}catch{return``}}var m=(e,t)=>{if(!e)return t;let n=(e=>{if(e===`.`)return``;if(e.startsWith(`./`))return e.replace(`./`,``);if(e.startsWith(`/`)){let t=e.slice(1);return t.endsWith(`/`)?t.slice(0,-1):t}return e})(e);return n?n.endsWith(`/`)?`${n}${t}`:`${n}/${t}`:t};function h(e){return e.replace(/#.*$/,``).replace(/\?.*$/,``).replace(/\/[^\/]+$/,`/`)}function g(e,t={}){var n;let{remotes:r={},overrides:i={},version:a}=t,o,s=()=>`publicPath`in e.metaData?(e.metaData.publicPath===`auto`||e.metaData.publicPath===``)&&a?h(a):e.metaData.publicPath:e.metaData.getPublicPath,c=Object.keys(i),l={};Object.keys(r).length||(l=((n=e.remotes)==null?void 0:n.reduce((e,t)=>{let n,r=t.federationContainerName;return n=c.includes(r)?i[r]:`version`in t?t.version:t.entry,e[r]={matchedVersion:n},e},{}))||{}),Object.keys(r).forEach(e=>l[e]={matchedVersion:c.includes(e)?i[e]:r[e]});let{remoteEntry:{path:u,name:d,type:f},types:p={path:``,name:``,zip:``,api:``},buildInfo:{buildVersion:g},globalName:_,ssrRemoteEntry:v}=e.metaData,{exposes:y}=e,ee={version:a||``,buildVersion:g,globalName:_,remoteEntry:m(u,d),remoteEntryType:f,remoteTypes:m(p.path,p.name),remoteTypesZip:p.zip||``,remoteTypesAPI:p.api||``,remotesInfo:l,shared:e==null?void 0:e.shared.map(e=>({assets:e.assets,sharedName:e.name,version:e.version,usedExports:e.referenceExports||[]})),modules:y==null?void 0:y.map(e=>({moduleName:e.name,modulePath:e.path,assets:e.assets}))};if(`publicPath`in e.metaData?(o={...ee,publicPath:s()},typeof e.metaData.ssrPublicPath==`string`&&(o.ssrPublicPath=e.metaData.ssrPublicPath)):o={...ee,getPublicPath:s()},v){let e=m(v.path,v.name);o.ssrRemoteEntry=e,o.ssrRemoteEntryType=v.type||`commonjs-module`}return o}function _(e){return!!(`remoteEntry`in e&&e.remoteEntry.includes(`.json`))}var v=`[ Module Federation ]`,y=console,ee=[`logger.ts`,`logger.js`,`captureStackTrace`,`Logger.emit`,`Logger.log`,`Logger.info`,`Logger.warn`,`Logger.error`,`Logger.debug`];function te(){try{let e=Error().stack;if(!e)return;let[,...t]=e.split(`
2
- `),n=t.filter(e=>!ee.some(t=>e.includes(t)));return n.length?`Stack trace:\n${n.slice(0,5).join(`
3
- `)}`:void 0}catch{return}}var ne=class{constructor(e,t=y){this.prefix=e,this.delegate=t??y}setPrefix(e){this.prefix=e}setDelegate(e){this.delegate=e??y}emit(e,t){let n=this.delegate,r=c()?te():void 0,i=r?[...t,r]:t,a=(()=>{switch(e){case`log`:return[`log`,`info`];case`info`:return[`info`,`log`];case`warn`:return[`warn`,`info`,`log`];case`error`:return[`error`,`warn`,`log`];default:return[`debug`,`log`]}})();for(let e of a){let t=n[e];if(typeof t==`function`){t.call(n,this.prefix,...i);return}}for(let e of a){let t=y[e];if(typeof t==`function`){t.call(y,this.prefix,...i);return}}}log(...e){this.emit(`log`,e)}warn(...e){this.emit(`warn`,e)}error(...e){this.emit(`error`,e)}success(...e){this.emit(`info`,e)}info(...e){this.emit(`info`,e)}ready(...e){this.emit(`info`,e)}debug(...e){c()&&this.emit(`debug`,e)}};function re(e){return new ne(e)}function ie(e){let t=new ne(e);return Object.defineProperty(t,"__mf_infrastructure_logger__",{value:!0,enumerable:!1,configurable:!1}),t}re(v),ie(v);async function ae(e,t){try{return await e()}catch(e){!t&&f(e);return}}function oe(e,t){let n=/^(https?:)?\/\//i;return e.replace(n,``).replace(/\/$/,``)===t.replace(n,``).replace(/\/$/,``)}function se(e){let t=null,n=!0,r=2e4,i,a=document.getElementsByTagName(`script`);for(let r=0;r<a.length;r++){let i=a[r],o=i.getAttribute(`src`);if(o&&oe(o,e.url)){t=i,n=!1;break}}if(!t){let n=e.attrs;t=document.createElement(`script`),t.type=(n==null?void 0:n.type)===`module`?`module`:`text/javascript`;let i;e.createScriptHook&&(i=e.createScriptHook(e.url,e.attrs),i instanceof HTMLScriptElement?t=i:typeof i==`object`&&(`script`in i&&i.script&&(t=i.script),`timeout`in i&&i.timeout&&(r=i.timeout))),t.src||(t.src=e.url),n&&!i&&Object.keys(n).forEach(e=>{t&&(e===`async`||e===`defer`?t[e]=n[e]:t.getAttribute(e)||t.setAttribute(e,n[e]))})}let o=null,s=typeof window<`u`?t=>{if(t.filename&&oe(t.filename,e.url)){let n=Error(`ScriptExecutionError: Script "${e.url}" loaded but threw a runtime error during execution: ${t.message} (${t.filename}:${t.lineno}:${t.colno})`);n.name=`ScriptExecutionError`,o=n}}:null;s&&window.addEventListener(`error`,s);let c=async(n,r)=>{clearTimeout(i),s&&window.removeEventListener(`error`,s);let a=()=>{if((r==null?void 0:r.type)===`error`){let t=Error(r!=null&&r.isTimeout?`ScriptNetworkError: Script "${e.url}" timed out.`:`ScriptNetworkError: Failed to load script "${e.url}" - the script URL is unreachable or the server returned an error (network failure, 404, CORS, etc.)`);t.name=`ScriptNetworkError`,e!=null&&e.onErrorCallback&&(e==null||e.onErrorCallback(t))}else o?e!=null&&e.onErrorCallback&&(e==null||e.onErrorCallback(o)):e!=null&&e.cb&&(e==null||e.cb())};if(t&&(t.onerror=null,t.onload=null,ae(()=>{let{needDeleteScript:n=!0}=e;n&&t!=null&&t.parentNode&&t.parentNode.removeChild(t)}),n&&typeof n==`function`)){let e=n(r);if(e instanceof Promise){let t=await e;return a(),t}return a(),e}a()};return t.onerror=c.bind(null,t.onerror),t.onload=c.bind(null,t.onload),i=setTimeout(()=>{c(null,{type:`error`,isTimeout:!0})},r),{script:t,needAttach:n}}function ce(e){let t=null,n=!0,r=2e4,i,a=document.getElementsByTagName(`link`);for(let r=0;r<a.length;r++){let i=a[r],o=i.getAttribute(`href`),s=i.getAttribute(`rel`);if(o&&oe(o,e.url)&&s===e.attrs.rel){t=i,n=!1;break}}if(!t){t=document.createElement(`link`),t.setAttribute(`href`,e.url);let n,i=!0,a=e.attrs;e.createLinkHook&&(n=e.createLinkHook(e.url,a),n instanceof HTMLLinkElement?(t=n,i=!1):typeof n==`object`&&(`link`in n&&n.link&&(t=n.link,i=!1),`timeout`in n&&n.timeout&&(r=n.timeout))),a&&i&&Object.keys(a).forEach(e=>{t&&!t.getAttribute(e)&&t.setAttribute(e,a[e])})}if(!n)return Promise.resolve().then(()=>{e!=null&&e.cb&&(e==null||e.cb())}),{link:t,needAttach:n};let o=(n,r)=>{i&&clearTimeout(i);let a=()=>{if((r==null?void 0:r.type)===`error`){let t=Error(r!=null&&r.isTimeout?`LinkNetworkError: Link "${e.url}" timed out.`:`LinkNetworkError: Failed to load link "${e.url}" - the URL is unreachable or the server returned an error.`);t.name=`LinkNetworkError`,e!=null&&e.onErrorCallback&&(e==null||e.onErrorCallback(t))}else e!=null&&e.cb&&(e==null||e.cb())};if(t&&(t.onerror=null,t.onload=null,ae(()=>{let{needDeleteLink:n=!0}=e;n&&t!=null&&t.parentNode&&t.parentNode.removeChild(t)}),n)){let e=n(r);return a(),e}a()};return t.onerror=o.bind(null,t.onerror),t.onload=o.bind(null,t.onload),i=setTimeout(()=>{o(null,{type:`error`,isTimeout:!0})},r),{link:t,needAttach:n}}function le(e,t){let{attrs:n={},createScriptHook:r}=t;return new Promise((t,i)=>{let{script:a,needAttach:o}=se({url:e,cb:t,onErrorCallback:i,attrs:{fetchpriority:`high`,...n},createScriptHook:r,needDeleteScript:!0});o&&document.head.appendChild(a)})}var ue=e=>`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split(`-`)[0].toLowerCase()}#${e.toLowerCase()}`,de=(e,t,n,r)=>{let i=[`${[t[e]]} #${e}`];return n&&i.push(`args: ${JSON.stringify(n)}`),i.push(ue(e)),r&&i.push(`Original Error Message:\n ${r}`),i.join(`
4
- `)};function fe(e,t,n,r,i,a){return r(de(e,t,n,i))}var b=`[ Federation Runtime ]`,pe=re(b);function x(e,t,n,r,i){e||(n===void 0?S(t):S(t,n,r,void 0,i))}function S(e,t,n,r,i){if(t!==void 0)return fe(e,t,n??{},e=>{throw Error(`${b}: ${e}`)},r,i);let a=e;throw a instanceof Error?(a.message.startsWith(b)||(a.message=`${b}: ${a.message}`),a):Error(`${b}: ${a}`)}function C(e){e instanceof Error&&(e.message.startsWith(b)||(e.message=`${b}: ${e.message}`)),pe.warn(e)}function me(e,t){return e.findIndex(e=>e===t)===-1&&e.push(t),e}function w(e){return`version`in e&&e.version?`${e.name}:${e.version}`:`entry`in e&&e.entry?`${e.name}:${e.entry}`:`${e.name}`}function he(e){return e.entry!==void 0}function ge(e){return!e.entry.includes(`.json`)}function _e(e){return e&&typeof e==`object`}var ve=Object.prototype.toString;function ye(e){return ve.call(e)===`[object Object]`}function be(e){return Array.isArray(e)?e:[e]}function xe(e){return`remoteEntry`in e?{url:e.remoteEntry,type:e.remoteEntryType,globalName:e.globalName}:{url:``,type:`global`,globalName:``}}var Se=(e,t)=>{let n;return n=e.endsWith(`/`)?e.slice(0,-1):e,t.startsWith(`.`)&&(t=t.slice(1)),n+=t,n},T=typeof globalThis==`object`?globalThis:window,E=(()=>{try{return document.defaultView}catch{return T}})(),D=E;function O(e,t,n){Object.defineProperty(e,t,{value:n,configurable:!1,writable:!0})}function k(e,t){return Object.hasOwnProperty.call(e,t)}k(T,`__GLOBAL_LOADING_REMOTE_ENTRY__`)||O(T,`__GLOBAL_LOADING_REMOTE_ENTRY__`,{});var A=T.__GLOBAL_LOADING_REMOTE_ENTRY__;function Ce(e){k(e,`__VMOK__`)&&!k(e,`__FEDERATION__`)&&O(e,`__FEDERATION__`,e.__VMOK__),k(e,`__FEDERATION__`)||(O(e,`__FEDERATION__`,{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map}),O(e,`__VMOK__`,e.__FEDERATION__)),e.__FEDERATION__.__GLOBAL_PLUGIN__??=[],e.__FEDERATION__.__INSTANCES__??=[],e.__FEDERATION__.moduleInfo??={},e.__FEDERATION__.__SHARE__??={},e.__FEDERATION__.__MANIFEST_LOADING__??={},e.__FEDERATION__.__PRELOADED_MAP__??=new Map}Ce(T),Ce(E);function we(e){T.__FEDERATION__.__INSTANCES__.push(e)}function Te(){return T.__FEDERATION__.__DEBUG_CONSTRUCTOR__}function Ee(e,t=c()){t&&(T.__FEDERATION__.__DEBUG_CONSTRUCTOR__=e,T.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__=`2.8.1`)}function j(e,t){if(typeof t==`string`){if(e[t])return{value:e[t],key:t};{let n=Object.keys(e);for(let r of n){let[n,i]=r.split(`:`),a=`${n}:${t}`,o=e[a];if(o)return{value:o,key:a}}return{value:void 0,key:t}}}S(`getInfoWithoutType: "key" must be a string, got ${typeof t} (${JSON.stringify(t)}).`)}var De=()=>E.__FEDERATION__.moduleInfo,Oe=(e,t)=>{let n=j(t,w(e)).value;if(n&&!n.version&&`version`in e&&e.version&&(n.version=e.version),n)return n;if(`version`in e&&e.version){let{version:t,...n}=e,r=w(n),i=j(E.__FEDERATION__.moduleInfo,r).value;if((i==null?void 0:i.version)===t)return i}},M=e=>Oe(e,E.__FEDERATION__.moduleInfo),ke=(e,t)=>{let n=w(e);return E.__FEDERATION__.moduleInfo[n]=t,E.__FEDERATION__.moduleInfo},Ae=e=>(E.__FEDERATION__.moduleInfo={...E.__FEDERATION__.moduleInfo,...e},()=>{let t=Object.keys(e);for(let e of t)delete E.__FEDERATION__.moduleInfo[e]}),je=(e,t)=>{let n=t||`__FEDERATION_${e}:custom__`;return{remoteEntryKey:n,entryExports:T[n]}},Me=()=>E.__FEDERATION__.__GLOBAL_PLUGIN__,Ne=e=>T.__FEDERATION__.__PRELOADED_MAP__.get(e),Pe=e=>T.__FEDERATION__.__PRELOADED_MAP__.set(e,!0),Fe=`[0-9A-Za-z-]+`,Ie=`(?:\\+(${Fe}(?:\\.${Fe})*))`,N=`0|[1-9]\\d*`,Le=`[0-9]+`,Re=`\\d*[a-zA-Z-][a-zA-Z0-9-]*`,ze=`(?:${Le}|${Re})`,Be=`(?:-?(${ze}(?:\\.${ze})*))`,Ve=`(?:${N}|${Re})`,He=`(?:-(${Ve}(?:\\.${Ve})*))`,Ue=`${N}|x|X|\\*`,P=`[v=\\s]*(${Ue})(?:\\.(${Ue})(?:\\.(${Ue})(?:${He})?${Ie}?)?)?`,We=`^\\s*(${P})\\s+-\\s+(${P})\\s*$`,Ge=`[v=\\s]*${`(${Le})\\.(${Le})\\.(${Le})`}${Be}?${Ie}?`,Ke=`((?:<|>)?=?)`,qe=`(\\s*)${Ke}\\s*(${Ge}|${P})`,Je=`(?:~>?)`,Ye=`(\\s*)${Je}\\s+`,Xe=`(?:\\^)`,Ze=`(\\s*)${Xe}\\s+`,Qe=`(<|>)?=?\\s*\\*`,$e=`^${Xe}${P}$`,et=`v?${`(${N})\\.(${N})\\.(${N})`}${He}?${Ie}?`,tt=`^${Je}${P}$`,nt=`^${Ke}\\s*${P}$`,rt=`^${Ke}\\s*(${et})$|^$`,it=`^\\s*>=\\s*0.0.0\\s*$`;function F(e){return new RegExp(e)}function I(e){return!e||e.toLowerCase()===`x`||e===`*`}function at(...e){return t=>e.reduce((e,t)=>t(e),t)}function ot(e){return e.match(F(rt))}function st(e,t,n,r){let i=`${e}.${t}.${n}`;return r?`${i}-${r}`:i}function ct(e){return e.replace(F(We),(e,t,n,r,i,a,o,s,c,l,u,d)=>(t=I(n)?``:I(r)?`>=${n}.0.0`:I(i)?`>=${n}.${r}.0`:`>=${t}`,s=I(c)?``:I(l)?`<${Number(c)+1}.0.0-0`:I(u)?`<${c}.${Number(l)+1}.0-0`:d?`<=${c}.${l}.${u}-${d}`:`<=${s}`,`${t} ${s}`.trim()))}function lt(e){return e.replace(F(qe),`$1$2$3`)}function ut(e){return e.replace(F(Ye),`$1~`)}function dt(e){return e.replace(F(Ze),`$1^`)}function ft(e){return e.trim().split(/\s+/).map(e=>e.replace(F($e),(e,t,n,r,i)=>I(t)?``:I(n)?`>=${t}.0.0 <${Number(t)+1}.0.0-0`:I(r)?t===`0`?`>=${t}.${n}.0 <${t}.${Number(n)+1}.0-0`:`>=${t}.${n}.0 <${Number(t)+1}.0.0-0`:i?t===`0`?n===`0`?`>=${t}.${n}.${r}-${i} <${t}.${n}.${Number(r)+1}-0`:`>=${t}.${n}.${r}-${i} <${t}.${Number(n)+1}.0-0`:`>=${t}.${n}.${r}-${i} <${Number(t)+1}.0.0-0`:t===`0`?n===`0`?`>=${t}.${n}.${r} <${t}.${n}.${Number(r)+1}-0`:`>=${t}.${n}.${r} <${t}.${Number(n)+1}.0-0`:`>=${t}.${n}.${r} <${Number(t)+1}.0.0-0`)).join(` `)}function pt(e){return e.trim().split(/\s+/).map(e=>e.replace(F(tt),(e,t,n,r,i)=>I(t)?``:I(n)?`>=${t}.0.0 <${Number(t)+1}.0.0-0`:I(r)?`>=${t}.${n}.0 <${t}.${Number(n)+1}.0-0`:i?`>=${t}.${n}.${r}-${i} <${t}.${Number(n)+1}.0-0`:`>=${t}.${n}.${r} <${t}.${Number(n)+1}.0-0`)).join(` `)}function mt(e){return e.split(/\s+/).map(e=>e.trim().replace(F(nt),(e,t,n,r,i,a)=>{let o=I(n),s=o||I(r),c=s||I(i);return t===`=`&&c&&(t=``),a=``,o?t===`>`||t===`<`?`<0.0.0-0`:`*`:t&&c?(s&&(r=0),i=0,t===`>`?(t=`>=`,s?(n=Number(n)+1,r=0,i=0):(r=Number(r)+1,i=0)):t===`<=`&&(t=`<`,s?n=Number(n)+1:r=Number(r)+1),t===`<`&&(a=`-0`),`${t+n}.${r}.${i}${a}`):s?`>=${n}.0.0${a} <${Number(n)+1}.0.0-0`:c?`>=${n}.${r}.0${a} <${n}.${Number(r)+1}.0-0`:e})).join(` `)}function ht(e){return e.trim().replace(F(Qe),``)}function gt(e){return e.trim().replace(F(it),``)}function L(e,t){return e=Number(e)||e,t=Number(t)||t,e>t?1:e===t?0:-1}function _t(e,t){let{preRelease:n}=e,{preRelease:r}=t;if(n===void 0&&r)return 1;if(n&&r===void 0)return-1;if(n===void 0&&r===void 0)return 0;for(let e=0,t=n.length;e<=t;e++){let t=n[e],i=r[e];if(t!==i)return t===void 0&&i===void 0?0:t?i?L(t,i):-1:1}return 0}function vt(e,t){return L(e.major,t.major)||L(e.minor,t.minor)||L(e.patch,t.patch)||_t(e,t)}function yt(e,t){return e.version===t.version}function bt(e,t){switch(e.operator){case``:case`=`:return yt(e,t);case`>`:return vt(e,t)<0;case`>=`:return yt(e,t)||vt(e,t)<0;case`<`:return vt(e,t)>0;case`<=`:return yt(e,t)||vt(e,t)>0;case void 0:return!0;default:return!1}}function xt(e){return at(ft,pt,mt,ht)(e)}function St(e){return at(ct,lt,ut,dt)(e.trim()).split(/\s+/).join(` `)}function R(e,t){if(!e)return!1;let n=ot(e);if(!n)return!1;let[,r,,i,a,o,s]=n,c={operator:r,version:st(i,a,o,s),major:i,minor:a,patch:o,preRelease:s==null?void 0:s.split(`.`)},l=t.split(`||`);for(let e of l){let t=e.trim();if(!t||t===`*`||t===`x`)return!0;try{let e=St(t);if(!e.trim())return!0;let n=e.split(` `).map(e=>xt(e)).join(` `);if(!n.trim())return!0;let r=n.split(/\s+/).map(e=>gt(e)).filter(Boolean);if(r.length===0)continue;let i=!0;for(let e of r){let t=ot(e);if(!t){i=!1;break}let[,n,,r,a,o,s]=t;if(!bt({operator:n,version:st(r,a,o,s),major:r,minor:a,patch:o,preRelease:s==null?void 0:s.split(`.`)},c)){i=!1;break}}if(i)return!0}catch(e){console.error(`[semver] Error processing range part "${t}":`,e);continue}}return!1}var Ct=`default`,wt=`global`;function Tt(e,t,n,r){var a,o;let s;return s=`get`in e?e.get:`lib`in e?()=>Promise.resolve(e.lib):()=>Promise.resolve(()=>{S(`Cannot get shared "${n}" from "${t}": neither "get" nor "lib" is provided in the share config.`)}),(a=e.shareConfig)!=null&&a.eager&&(o=e.treeShaking)!=null&&o.mode&&S(`Invalid shared config for "${n}" from "${t}": cannot use both "eager: true" and "treeShaking.mode" simultaneously. Choose one strategy.`),{deps:[],useIn:[],from:t,loading:null,...e,shareConfig:{requiredVersion:`^${e.version}`,singleton:!1,eager:!1,strictVersion:!1,...e.shareConfig},get:s,loaded:e!=null&&e.loaded||`lib`in e?!0:void 0,version:e.version??`0`,scope:Array.isArray(e.scope)?e.scope:[e.scope??`default`],strategy:(e.strategy??r)||`version-first`,treeShaking:e.treeShaking?{...e.treeShaking,mode:e.treeShaking.mode??`server-calc`,status:e.treeShaking.status??i.UNKNOWN,useIn:[]}:void 0}}function Et(e,t){let n=t.shared||{},r=t.name,i=Object.keys(n).reduce((e,i)=>{let a=be(n[i]);return e[i]=e[i]||[],a.forEach(n=>{e[i].push(Tt(n,r,i,t.shareStrategy))}),e},{}),a={...e.shared};return Object.keys(i).forEach(e=>{a[e]?i[e].forEach(t=>{a[e].find(e=>e.version===t.version)||a[e].push(t)}):a[e]=i[e]}),{allShareInfos:a,newShareInfos:i}}function z(e,t){if(!e)return!1;let{status:n,mode:r}=e;return n===i.NO_USE?!1:n===i.CALCULATED?!0:r===`runtime-infer`?!t||kt(e,t):!1}function B(e,t){let n=e=>{if(!Number.isNaN(Number(e))){let t=e.split(`.`),n=e;for(let e=0;e<3-t.length;e++)n+=`.0`;return n}return e};return!!R(n(e),`<=${n(t)}`)}var V=(e,t)=>{let n=t||function(e,t){return B(e,t)};return Object.keys(e).reduce((e,t)=>!e||n(e,t)||e===`0`?t:e,0)},Dt=e=>!!e.loaded||typeof e.lib==`function`,Ot=e=>!!e.loading,kt=(e,t)=>{if(!e||!t)return!1;let{usedExports:n}=e;return n?!!t.every(e=>n.includes(e)):!1};function At(e,t,n,r){let i=e[t][n],a=``,o=z(r),s=function(e,t){return o?i[e].treeShaking?i[t].treeShaking?!Dt(i[e].treeShaking)&&B(e,t):!1:!0:!Dt(i[e])&&B(e,t)};if(o){if(a=V(e[t][n],s),a)return{version:a,useTreesShaking:o};o=!1}return{version:V(e[t][n],s),useTreesShaking:o}}var H=e=>Dt(e)||Ot(e);function jt(e,t,n,r){let i=e[t][n],a=``,o=z(r),s=function(e,t){if(o){if(!i[e].treeShaking)return!0;if(!i[t].treeShaking)return!1;if(H(i[t].treeShaking))return!H(i[e].treeShaking)||!!B(e,t);if(H(i[e].treeShaking))return!1}return H(i[t])?!H(i[e])||!!B(e,t):!H(i[e])&&B(e,t)};if(o){if(a=V(e[t][n],s),a)return{version:a,useTreesShaking:o};o=!1}return{version:V(e[t][n],s),useTreesShaking:o}}function Mt(e){return e===`loaded-first`?jt:At}function Nt(e,t,n,r){if(!e)return;let{shareConfig:i,scope:a=Ct,strategy:o,treeShaking:s}=n,c=Array.isArray(a)?a:[a];for(let a of c)if(i&&e[a]&&e[a][t]){let{requiredVersion:c}=i,{version:l,useTreesShaking:u}=Mt(o)(e,a,t,s),d={shareScopeMap:e,scope:a,pkgName:t,version:l,GlobalFederation:D.__FEDERATION__,shareInfo:n,resolver:()=>{let r=e[a][t][l];if(i.singleton){if(typeof c==`string`&&!R(l,c)){let e=`Version ${l} from ${l&&r.from} of shared singleton module ${t} does not satisfy the requirement of ${n.from} which needs ${c})`;i.strictVersion?S(e):C(e)}return{shared:r,useTreesShaking:u}}{if(c===!1||c===`*`||R(l,c))return{shared:r,useTreesShaking:u};let n=z(s);if(n){for(let[r,i]of Object.entries(e[a][t]))if(z(i.treeShaking,s==null?void 0:s.usedExports)&&R(r,c))return{shared:i,useTreesShaking:n}}for(let[n,r]of Object.entries(e[a][t]))if(R(n,c))return{shared:r,useTreesShaking:!1}}}};return(r.emit(d)||d).resolver()}}function Pt(){return D.__FEDERATION__.__SHARE__}function Ft(e){let{pkgName:t,extraOptions:n,shareInfos:r}=e,i=(n==null?void 0:n.resolver)??(e=>{if(!e)return;let t={};return e.forEach(e=>{t[e.version]=e}),t[V(t,function(e,n){return!Dt(t[e])&&B(e,n)})]}),a=e=>typeof e==`object`&&!!e&&!Array.isArray(e),o=(...e)=>{let t={};for(let n of e)if(n)for(let[e,r]of Object.entries(n)){let n=t[e];a(n)&&a(r)?t[e]=o(n,r):r!==void 0&&(t[e]=r)}return t};return o(i(r[t]),n==null?void 0:n.customShareInfo)}var U=(e,t)=>{e.useIn||=[],me(e.useIn,t)};function It(e,t){return t&&e.treeShaking?e.treeShaking:e}function Lt(e,t){return!t||t===`.`?e:`${e}/${t.replace(/^\.\//,``)}`}function Rt(e,t){for(let n of e){let e=t.startsWith(n.name),r=t.replace(n.name,``);if(e){if(r.startsWith(`/`)){let e=n.name;return r=`.${r}`,{pkgNameOrAlias:e,expose:r,remote:n}}if(r===``)return{pkgNameOrAlias:n.name,expose:`.`,remote:n}}let i=n.alias&&t.startsWith(n.alias),a=n.alias&&t.replace(n.alias,``);if(n.alias&&i){if(a&&a.startsWith(`/`)){let e=n.alias;return a=`.${a}`,{pkgNameOrAlias:e,expose:a,remote:n}}if(a===``)return{pkgNameOrAlias:n.alias,expose:`.`,remote:n}}}}function zt(e,t){for(let n of e)if(t===n.name||n.alias&&t===n.alias)return n}var Bt=`RUNTIME-001`,Vt=`RUNTIME-002`,Ht=`RUNTIME-003`,Ut=`RUNTIME-004`,Wt=`RUNTIME-005`,Gt=`RUNTIME-006`,Kt=`RUNTIME-007`,qt=`RUNTIME-008`,Jt=`RUNTIME-009`,Yt=`RUNTIME-010`,Xt=`RUNTIME-011`,Zt=`RUNTIME-012`,Qt=`RUNTIME-013`,$t=`RUNTIME-014`,en=`RUNTIME-015`,tn=`TYPE-001`,nn=`BUILD-001`,rn=`BUILD-002`,W={[Bt]:`Failed to get remoteEntry exports.`,[Vt]:`The remote entry interface does not contain "init"`,[Ht]:`Failed to get manifest.`,[Ut]:`Failed to locate remote.`,[Wt]:`Invalid loadShareSync function call from bundler runtime`,[Gt]:`Invalid loadShareSync function call from runtime`,[Kt]:`Failed to get remote snapshot.`,[qt]:`Failed to load script resources.`,[Jt]:`Please call createInstance first.`,[Yt]:`The name option cannot be changed after initialization. If you want to create a new instance with a different name, please use "createInstance" api.`,[Xt]:`The remoteEntry URL is missing from the remote snapshot.`,[Zt]:`The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.`,[Qt]:`The manifest is not a valid Module Federation manifest.`,[$t]:`The remote does not expose the requested module.`,[en]:`Remote container initialization failed.`},an={[tn]:`Failed to generate type declaration. Execute the below cmd to reproduce and fix the error.`},on={[nn]:`Failed to find expose module.`,[rn]:`PublicPath is required in prod mode.`};({...W,...an,...on});var sn=`.then(callbacks[0]).catch(callbacks[1])`;function cn(e){return e===`esm`||e===`module`}async function ln({entry:t,remoteEntryExports:n}){return new Promise((r,i)=>{try{n?r(n):typeof FEDERATION_ALLOW_NEW_FUNCTION<`u`?Function(`callbacks`,`import("${t}")${sn}`)([r,i]):e(()=>import(t).then(r),[],import.meta.url).catch(i)}catch(e){S(`Failed to load ESM entry from "${t}". ${e instanceof Error?e.message:String(e)}`)}})}async function un({entry:e,remoteEntryExports:t}){return new Promise((n,r)=>{try{t?n(t):typeof __system_context__>`u`?System.import(e).then(n).catch(r):Function(`callbacks`,`System.import("${e}")${sn}`)([n,r])}catch(t){S(`Failed to load SystemJS entry from "${e}". ${t instanceof Error?t.message:String(t)}`)}})}function dn(e,t,n){let{remoteEntryKey:r,entryExports:i}=je(e,t);return i||S(Bt,W,{remoteName:e,remoteEntryUrl:n,remoteEntryKey:r}),i}async function fn({name:e,globalName:t,entry:n,remoteInfo:r,loaderHook:i,getEntryUrl:a,resourceContext:o}){let{entryExports:s}=je(e,t);if(s)return s;let c=a?a(n):n;return le(c,{attrs:{},createScriptHook:(e,t)=>{let n=i.lifecycle.createScript.emit({url:e,attrs:t,remoteInfo:r,resourceContext:o?{...o,url:e}:void 0});if(n&&(n instanceof HTMLScriptElement||`script`in n||`timeout`in n))return n}}).then(()=>dn(e,t,n),t=>{let n=t instanceof Error?t.message:String(t);S(qt,W,{remoteName:e,resourceUrl:c},n)})}async function pn({remoteInfo:e,remoteEntryExports:t,loaderHook:n,getEntryUrl:r,resourceContext:i}){let{entry:a,entryGlobalName:o,name:s,type:c}=e;return cn(c)?ln({entry:a,remoteEntryExports:t}):c===`system`?un({entry:a,remoteEntryExports:t}):fn({entry:a,globalName:o,name:s,remoteInfo:e,loaderHook:n,getEntryUrl:r,resourceContext:i})}function mn(e){let{entry:t,name:n}=e;return u(n,t)}async function hn(e){let{origin:t,remoteEntryExports:n,remoteInfo:r,getEntryUrl:i,resourceContext:a,_inErrorHandling:o=!1}=e,s=mn(r);if(n)return n;if(!A[s]){let e=t.remoteHandler.hooks.lifecycle.loadEntry,c=t.loaderHook;A[s]=e.emit({origin:t,loaderHook:c,remoteInfo:r,remoteEntryExports:n}).then(e=>e||pn({remoteInfo:r,remoteEntryExports:n,loaderHook:c,getEntryUrl:i,resourceContext:a})).then(async e=>(await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:r,remoteEntryExports:e}),e)).catch(async e=>{let i=mn(r),a=e instanceof Error&&e.message.includes(`ScriptExecutionError`);if(e instanceof Error&&e.message.includes(`RUNTIME-008`)&&!a&&!o){let e=await t.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:e=>hn({...e,_inErrorHandling:!0}),origin:t,remoteInfo:r,remoteEntryExports:n,globalLoading:A,uniqueKey:i});if(e)return await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:r,remoteEntryExports:e,recovered:!0}),e}throw await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:r,error:e}),e})}return A[s]}function G(e){return{...e,entry:`entry`in e?e.entry:``,type:e.type||`global`,entryGlobalName:e.entryGlobalName||e.name,shareScope:e.shareScope||`default`}}function gn(){return typeof FEDERATION_BUILD_IDENTIFIER<`u`?FEDERATION_BUILD_IDENTIFIER:``}function _n(e,t){let n=Me(),r=[t.hooks,t.remoteHandler.hooks,t.sharedHandler.hooks,t.snapshotHandler.hooks,t.loaderHook,t.bridgeHook];return n.length>0&&n.forEach(t=>{e!=null&&e.find(e=>e.name!==t.name)&&e.push(t)}),e&&e.length>0&&e.forEach(e=>{r.forEach(n=>{n.applyPlugin(e,t)})}),e}function vn(e){return{name:e.name,alias:e.alias,entry:`entry`in e?e.entry:void 0,version:`version`in e?e.version:void 0,type:e.type,entryGlobalName:e.entryGlobalName,shareScope:e.shareScope}}function K(e){var t,n;let r={};for(let[t,n]of Object.entries(e.shared)){var i,a,o,s;let e=n[0];e&&(r[t]={version:e.version,singleton:(i=e.shareConfig)==null?void 0:i.singleton,requiredVersion:((a=e.shareConfig)==null?void 0:a.requiredVersion)===!1?!1:(o=e.shareConfig)==null?void 0:o.requiredVersion,eager:e.eager,strictVersion:(s=e.shareConfig)==null?void 0:s.strictVersion})}return{project:{name:e.name,mfRole:((t=e.remotes)==null?void 0:t.length)>0?`host`:`unknown`},mfConfig:{name:e.name,remotes:((n=e.remotes)==null?void 0:n.map(vn))??[],shared:r}}}function yn(e){return{resourceCategory:`sync`,share:!0,depsRemote:!0,...e}}function bn(e,t){return t.map(t=>{let n=zt(e,t.nameOrAlias);return x(n,`Unable to preload ${t.nameOrAlias} as it is not included in ${!n&&p({remoteInfo:n,remotes:e})}`),{remote:n,preloadConfig:yn(t)}})}function xn(e){return e?e.map(e=>e===`.`?e:e.startsWith(`./`)?e.replace(`./`,``):e):[]}function Sn(e){return e instanceof Error?e.message.includes(`timed out`)||e.name.includes(`Timeout`):!1}function q(e,t,n,r){return{url:t,status:n,resourceType:e.resourceType,initiator:e.initiator,id:e.id,error:r}}async function Cn(e,t,n,r){let i=e.moduleCache.get(n.name),a=n.entry;if(i!=null&&i.remoteEntryExports)return q(r,a,`cached`);try{if(!await hn({origin:e,remoteInfo:n,remoteEntryExports:i==null?void 0:i.remoteEntryExports,resourceContext:{...r,url:a}}))throw Error(`Failed to load remoteEntry "${a}".`);return q(r,a,`success`)}catch(e){return q(r,a,Sn(e)?`timeout`:`error`,e)}}function wn({host:e,remoteInfo:t,url:n,attrs:r,context:i,needDeleteLink:a}){return new Promise(o=>{let{link:s,needAttach:c}=ce({url:n,cb:()=>{o(q(i,n,c?`success`:`cached`))},onErrorCallback:e=>{o(q(i,n,Sn(e)?`timeout`:`error`,e))},attrs:r,createLinkHook:(n,r)=>{let a=e.loaderHook.lifecycle.createLink.emit({url:n,attrs:r,remoteInfo:t,resourceContext:{...i,url:n}});return a instanceof HTMLLinkElement,a},needDeleteLink:a});c&&document.head.appendChild(s)})}function Tn({host:e,remoteInfo:t,url:n,attrs:r,context:i}){return new Promise(a=>{let{script:o,needAttach:s}=se({url:n,cb:()=>{a(q(i,n,s?`success`:`cached`))},onErrorCallback:e=>{a(q(i,n,Sn(e)?`timeout`:`error`,e))},attrs:r,createScriptHook:(n,r)=>{let a=e.loaderHook.lifecycle.createScript.emit({url:n,attrs:r,remoteInfo:t,resourceContext:{...i,url:n}});return a instanceof HTMLScriptElement,a},needDeleteScript:!0});s&&document.head.appendChild(o)})}function En(e,t){return{...e,resourceType:t}}function Dn(e,t,n,r=!0,i={initiator:`preloadRemote`,id:e.name}){let{cssAssets:a,jsAssetsWithoutEntry:o,entryAssets:s}=n,c=[];if(t.options.inBrowser){if(s.forEach(n=>{let{moduleInfo:r}=n;c.push(Cn(t,e,r,En(i,`remoteEntry`)))}),r){let n={rel:`preload`,as:`style`};a.forEach(r=>{c.push(wn({host:t,remoteInfo:e,url:r,attrs:n,context:En(i,`css`)}))})}else{let n={rel:`stylesheet`,type:`text/css`};a.forEach(r=>{c.push(wn({host:t,remoteInfo:e,url:r,attrs:n,needDeleteLink:!1,context:En(i,`css`)}))})}let n=Tn,l={fetchpriority:`high`,type:`text/javascript`};r?(n=wn,l={rel:`preload`,as:`script`}):cn(e.type)&&(n=wn,l={rel:`modulepreload`,fetchpriority:`high`}),o.forEach(r=>{c.push(n({host:t,remoteInfo:e,url:r,attrs:l,context:En(i,`js`)}))})}return Promise.all(c)}function On(e){if(!e||!(`modules`in e)||!Array.isArray(e.modules))return;let t=e.modules.map(e=>e.moduleName).filter(Boolean);return t.length?t.join(`,`):void 0}function kn(e,t,n){let r=t,i=Array.isArray(e.shareScope)?e.shareScope:[e.shareScope];i.length||i.push(`default`),i.forEach(e=>{r[e]||(r[e]={})});let a={version:e.version||``,shareScopeKeys:Array.isArray(e.shareScope)?i:e.shareScope||`default`};return Object.defineProperty(a,"shareScopeMap",{value:r,enumerable:!1}),{remoteEntryInitOptions:a,shareScope:r[i[0]],initScope:n??[]}}var An=class{constructor({remoteInfo:e,host:t}){this.inited=!1,this.initing=!1,this.lib=void 0,this.remoteInfo=e,this.host=t}async getEntry(e){if(this.remoteEntryExports)return this.remoteEntryExports;let t=await hn({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports,resourceContext:{initiator:`loadRemote`,id:Lt(this.remoteInfo.name,e),resourceType:`remoteEntry`}});return x(t,`remoteEntryExports is undefined \n ${p(this.remoteInfo)}`),this.remoteEntryExports=t,this.remoteEntryExports}async init(e,t,n,r){let i=await this.getEntry(r);if(this.inited)return await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:i,cached:!0,origin:this.host}),i;if(this.initPromise){try{await this.initPromise,await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:i,cached:!0,origin:this.host})}catch(n){throw await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:i,error:n,cached:!0,origin:this.host}),n}return i}this.initing=!0,this.initPromise=(async()=>{await this.host.loaderHook.lifecycle.beforeInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,origin:this.host});let{remoteEntryInitOptions:r,shareScope:a,initScope:o}=kn(this.remoteInfo,this.host.shareScopeMap,n),s=await this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:a,remoteEntryInitOptions:r,initScope:o,remoteInfo:this.remoteInfo,origin:this.host});(i==null?void 0:i.init)===void 0&&S(Vt,W,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName},void 0,K(this.host.options));try{await i.init(s.shareScope,s.initScope,s.remoteEntryInitOptions)}catch(e){S(en,W,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName,shareScope:this.remoteInfo.shareScope},`${e}`,K(this.host.options))}await this.host.hooks.lifecycle.initContainer.emit({...s,id:e,remoteSnapshot:t,remoteEntryExports:i}),this.inited=!0})();try{await this.initPromise,await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:i,origin:this.host})}catch(n){throw await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:i,error:n,origin:this.host}),n}finally{this.initing=!1,this.initPromise=void 0}return i}async get(e,t,n,r){let{loadFactory:i=!0}=n||{loadFactory:!0},a=await this.init(e,r,void 0,t);this.lib=a,await this.host.loaderHook.lifecycle.beforeGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:a,origin:this.host});let o;try{let n=await this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports:a,expose:t,moduleInfo:this.remoteInfo});o=typeof n==`function`?n:void 0,o||=await a.get(t),o||S($t,W,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,expose:t,requestId:e,availableExposes:On(r)},void 0,K(this.host.options)),await this.host.loaderHook.lifecycle.afterGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:a,moduleFactory:o,origin:this.host})}catch(n){throw await this.host.loaderHook.lifecycle.afterGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:a,error:n,origin:this.host}),n}let s=Se(this.remoteInfo.name,t),c=this.wraperFactory(o,s);if(!i)return c;await this.host.loaderHook.lifecycle.beforeExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:i,origin:this.host});try{let n=await c();return await this.host.loaderHook.lifecycle.afterExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:i,exposeModule:n,origin:this.host}),n}catch(n){throw await this.host.loaderHook.lifecycle.afterExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:i,error:n,origin:this.host}),n}}wraperFactory(e,t){function n(e,t){e&&typeof e==`object`&&Object.isExtensible(e)&&!Object.getOwnPropertyDescriptor(e,Symbol.for(`mf_module_id`))&&Object.defineProperty(e,Symbol.for(`mf_module_id`),{value:t,enumerable:!1})}return()=>{let r=e();return r instanceof Promise?r.then(e=>(n(e,t),e)):(n(r,t),r)}}},J=class{constructor(e){this.registerPlugins={},this.lifecycle=e,this.lifecycleKeys=Object.keys(e)}applyPlugin(e,t){x(ye(e),`Plugin configuration is invalid.`);let n=e.name;if(x(n,`A name must be provided by the plugin.`),!this.registerPlugins[n]){var r;this.registerPlugins[n]=e,(r=e.apply)==null||r.call(e,t),Object.keys(this.lifecycle).forEach(t=>{let n=e[t];n&&this.lifecycle[t].on(n)})}}removePlugin(e){x(e,`A name is required.`);let t=this.registerPlugins[e];x(t,`The plugin "${e}" is not registered.`),Object.keys(t).forEach(e=>{e!==`name`&&this.lifecycle[e].remove(t[e])})}},Y=class{constructor(e){this.type=``,this.listeners=new Set,e&&(this.type=e)}on(e){typeof e==`function`&&this.listeners.add(e)}once(e){let t=this;this.on(function n(...r){return t.remove(n),e.apply(null,r)})}emit(...e){let t;return this.listeners.size>0&&this.listeners.forEach(n=>{let r=n(...e);r!==void 0&&(t=r)}),t}remove(e){this.listeners.delete(e)}removeAll(){this.listeners.clear()}},X=class extends Y{emit(...e){let t,n=Array.from(this.listeners);if(n.length>0){let r=0,i=t=>t===!1?!1:r<n.length?Promise.resolve(n[r++].apply(null,e)).then(n=>n===void 0||e.length===1&&n===e[0]?i(t):i(n)):t;t=i()}return Promise.resolve(t)}};function jn(e,t){if(!_e(t))return!1;if(e!==t){for(let n in e)if(!(n in t))return!1}return!0}var Z=class extends Y{constructor(e){super(),this.onerror=S,this.type=e}emit(e){_e(e)||S(`The data for the "${this.type}" hook should be an object.`);for(let t of this.listeners)try{let n=t(e);if(n===void 0)continue;if(jn(e,n))e=n;else{this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);break}}catch(e){C(e),this.onerror(e)}return e}},Q=class extends Y{constructor(e){super(),this.onerror=S,this.type=e}emit(e){_e(e)||S(`The response data for the "${this.type}" hook must be an object.`);let t=Array.from(this.listeners);if(t.length>0){let n=0,r=t=>(C(t),this.onerror(t),e),i=a=>{if(a!==void 0&&jn(e,a))e=a;else if(a!==void 0)return this.onerror(`A plugin returned an incorrect value for the "${this.type}" type.`),e;if(n<t.length)try{return Promise.resolve(t[n++](e)).then(i,r)}catch(e){return r(e)}return e};return Promise.resolve(i(e))}return Promise.resolve(e)}},$=`Remote loading is disabled by experiments.optimization.disableRemote.`,Mn=class{constructor(){this.hooks=new J({})}formatAndRegisterRemote(){return[]}loadRemote(){throw Error($)}preloadRemote(){throw Error($)}registerRemotes(){throw Error($)}getRemoteModuleAndOptions(){throw Error($)}initRawContainer(){throw Error($)}};function Nn(e,t){let n=xe(t);n.url||S(Xt,W,{remoteName:e.name});let r=d(t,n.url);e.type=n.type,e.entryGlobalName=n.globalName,e.entry=r,e.version=t.version,e.buildVersion=t.buildVersion}function Pn(){return{name:`snapshot-plugin`,async afterResolve(e){let{remote:t,pkgNameOrAlias:n,expose:r,origin:i,remoteInfo:a,id:o}=e;if(!he(t)||!ge(t)){let{remoteSnapshot:s,globalSnapshot:c}=await i.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:t,id:Lt(t.name,r)});Nn(a,s);let l={remote:t,preloadConfig:{nameOrAlias:n,exposes:[r],resourceCategory:`sync`,share:!1,depsRemote:!1}},u=await i.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:i,preloadOptions:l,remoteInfo:a,remote:t,remoteSnapshot:s,globalSnapshot:c});return u&&Dn(a,i,u,!1,{initiator:`loadRemote`,id:o}).catch(()=>void 0),{...e,remoteSnapshot:s}}return e}}}function Fn(e){let t=e.split(`:`);return t.length===1?{name:t[0],version:void 0}:t.length===2?{name:t[0],version:t[1]}:{name:t[1],version:t[2]}}function In(e,t,n,r,i={},a){let{value:o}=j(e,w(t)),s=a||o;if(s&&!_(s)&&(n(s,t,r),s.remotesInfo)){let t=Object.keys(s.remotesInfo);for(let r of t){if(i[r])continue;i[r]=!0;let t=Fn(r),a=s.remotesInfo[r];In(e,{name:t.name,version:a.matchedVersion},n,!1,i,void 0)}}}var Ln=(e,t)=>document.querySelector(`${e}[${e===`link`?`href`:`src`}="${t}"]`);function Rn(e,t,n,r,i){let a=[],o=[],s=[],c=new Set,l=new Set,{options:u}=e,{preloadConfig:f}=t,{depsRemote:p}=f;if(In(r,n,(t,n,r)=>{var i;let c;if(r)c=f;else if(Array.isArray(p)){let e=p.find(e=>e.nameOrAlias===n.name||e.nameOrAlias===n.alias);if(!e)return;c=yn(e)}else if(p===!0)c=f;else return;let l=d(t,xe(t).url);l&&s.push({name:n.name,moduleInfo:{name:n.name,entry:l,type:`remoteEntryType`in t?t.remoteEntryType:`global`,entryGlobalName:`globalName`in t?t.globalName:n.name,shareScope:``,version:`version`in t?t.version:void 0},url:l});let u=`modules`in t?t.modules:[],m=xn(c.exposes);m.length&&`modules`in t&&(u=t==null||(i=t.modules)==null?void 0:i.reduce((e,t)=>((m==null?void 0:m.indexOf(t.moduleName))!==-1&&e.push(t),e),[]));function h(e){let n=e.map(e=>d(t,e));return c.filter?n.filter(c.filter):n}if(u){let r=u.length;for(let i=0;i<r;i++){let r=u[i],s=`${n.name}/${r.moduleName}`;e.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:r.moduleName===`.`?n.name:s,name:n.name,remoteSnapshot:t,preloadConfig:c,remote:n,origin:e}),!Ne(s)&&(c.resourceCategory===`all`?(a.push(...h(r.assets.css.async)),a.push(...h(r.assets.css.sync)),o.push(...h(r.assets.js.async)),o.push(...h(r.assets.js.sync))):c.resourceCategory===`sync`&&(a.push(...h(r.assets.css.sync)),o.push(...h(r.assets.js.sync))),Pe(s))}}},!0,{},i),i.shared&&i.shared.length>0){let t=(t,n)=>{let{shared:r}=Nt(e.shareScopeMap,n.sharedName,t,e.sharedHandler.hooks.lifecycle.resolveShare)||{};r&&typeof r.lib==`function`&&(n.assets.js.sync.forEach(e=>{c.add(e)}),n.assets.css.sync.forEach(e=>{l.add(e)}))};i.shared.forEach(e=>{var n;let r=(n=u.shared)==null?void 0:n[e.sharedName];if(!r)return;let i=e.version?r.find(t=>t.version===e.version):r;i&&be(i).forEach(n=>{t(n,e)})})}let m=o.filter(e=>!c.has(e)&&!Ln(`script`,e));return{cssAssets:a.filter(e=>!l.has(e)&&!Ln(`link`,e)),jsAssetsWithoutEntry:m,entryAssets:s.filter(e=>!Ln(`script`,e.url))}}var zn=function(){return{name:`generate-preload-assets-plugin`,async generatePreloadAssets(e){let{origin:t,preloadOptions:n,remoteInfo:r,remote:i,globalSnapshot:a,remoteSnapshot:o}=e;return he(i)&&ge(i)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:i.name,url:i.entry,moduleInfo:{name:r.name,entry:i.entry,type:r.type||`global`,entryGlobalName:``,shareScope:``}}]}:(Nn(r,o),Rn(t,n,r,a,o))}}};function Bn(e,t){let n=M({name:t.name,version:t.options.version}),r=n&&`remotesInfo`in n&&n.remotesInfo&&j(n.remotesInfo,e.name).value;return r&&r.matchedVersion?{hostGlobalSnapshot:n,globalSnapshot:De(),remoteSnapshot:M({name:e.name,version:r.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:De(),remoteSnapshot:M({name:e.name,version:`version`in e?e.version:void 0})}}var Vn=class{constructor(e){this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new J({beforeLoadRemoteSnapshot:new X(`beforeLoadRemoteSnapshot`),loadSnapshot:new Q(`loadGlobalSnapshot`),loadRemoteSnapshot:new Q(`loadRemoteSnapshot`),afterLoadSnapshot:new Q(`afterLoadSnapshot`)}),this.manifestLoading=D.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=e,this.loaderHook=e.loaderHook}async loadRemoteSnapshotInfo({moduleInfo:e,id:t,initiator:n=`loadRemote`}){let{options:r}=this.HostInstance;await this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:r,moduleInfo:e,origin:this.HostInstance});let i=M({name:this.HostInstance.options.name,version:this.HostInstance.options.version});i||(i={version:this.HostInstance.options.version||``,remoteEntry:``,remotesInfo:{}},Ae({[this.HostInstance.options.name]:i})),i&&`remotesInfo`in i&&!j(i.remotesInfo,e.name).value&&(`version`in e||`entry`in e)&&(i.remotesInfo={...i==null?void 0:i.remotesInfo,[e.name]:{matchedVersion:`version`in e?e.version:e.entry}});let{hostGlobalSnapshot:a,remoteSnapshot:o,globalSnapshot:s}=this.getGlobalRemoteInfo(e),{remoteSnapshot:c,globalSnapshot:l}=await this.hooks.lifecycle.loadSnapshot.emit({options:r,moduleInfo:e,hostGlobalSnapshot:a,remoteSnapshot:o,globalSnapshot:s}),u,d;if(c)if(_(c)){let r=c.remoteEntry,i=await this.loadManifestSnapshot(r,e,{},{initiator:n,id:t||e.name}),a=ke({...e,entry:r},i);u=i,d=a}else{let{remoteSnapshot:t}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:c,from:`global`});u=t,d=l}else if(he(e)){let r=await this.loadManifestSnapshot(e.entry,e,{},{initiator:n,id:t||e.name}),i=ke(e,r);u=r,d=i}else S(Kt,W,{remoteName:e.name,remoteVersion:e.version,hostName:this.HostInstance.options.name,globalSnapshot:JSON.stringify(l)},void 0,K(this.HostInstance.options));return await this.hooks.lifecycle.afterLoadSnapshot.emit({id:t,host:this.HostInstance,options:r,moduleInfo:e,remoteSnapshot:u}),{remoteSnapshot:u,globalSnapshot:d}}getGlobalRemoteInfo(e){return Bn(e,this.HostInstance)}async getManifestJson(e,t,n,r){return(async()=>{let n=G(t),i=this.manifestCache.get(e);if(i)return i;try{let t=await this.loaderHook.lifecycle.fetch.emit(e,{},n,r?{...r,url:e,resourceType:`manifest`}:void 0);(!t||!(t instanceof Response))&&(t=await fetch(e,{})),i=await t.json()}catch(r){i=await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:r,from:`runtime`,lifecycle:`afterResolve`,remote:n,origin:this.HostInstance}),i||(delete this.manifestLoading[e],S(Ht,W,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name},`${r}`,K(this.HostInstance.options)))}let a=[!i.metaData&&`metaData`,!i.exposes&&`exposes`,!i.shared&&`shared`].filter(Boolean);return a.length>0&&await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:Error(`"${e}" is not a valid federation manifest for remote "${t.name}". Missing required fields: ${a.join(`, `)}.`),from:`runtime`,lifecycle:`afterResolve`,remote:n,origin:this.HostInstance}),a.length>0&&S(Qt,W,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name,missingFields:a.join(`,`)},void 0,K(this.HostInstance.options)),this.manifestCache.set(e,i),i})()}async loadManifestSnapshot(e,t,n,r){let i=async()=>{let i=await this.getManifestJson(e,t,n,r),a=g(i,{version:e}),{remoteSnapshot:o}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,manifestJson:i,remoteSnapshot:a,manifestUrl:e,from:`manifest`});return o};return this.manifestLoading[e]||(this.manifestLoading[e]=i().then(e=>e)),this.manifestLoading[e]}},Hn=class{constructor(){this.hooks=new J({})}},Un=class{constructor(e){this.hooks=new J({beforeRegisterShare:new Z(`beforeRegisterShare`),afterResolve:new Q(`afterResolve`),beforeLoadShare:new Q(`beforeLoadShare`),loadShare:new X,afterLoadShare:new Y(`afterLoadShare`),errorLoadShare:new Y(`errorLoadShare`),resolveShare:new Z(`resolveShare`),initContainerShareScopeMap:new Z(`initContainerShareScopeMap`)}),this.host=e,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(e.options)}emitAfterLoadShare({lifecycle:e,pkgName:t,shareInfo:n,selectedShared:r}){try{this.hooks.lifecycle.afterLoadShare.emit({pkgName:t,shareInfo:n,selectedShared:r,shared:this.host.options.shared,shareScopeMap:this.shareScopeMap,lifecycle:e,origin:this.host})}catch(e){C(e)}}emitErrorLoadShare({lifecycle:e,pkgName:t,shareInfo:n,error:r,recovered:i}){try{this.hooks.lifecycle.errorLoadShare.emit({pkgName:t,shareInfo:n,shared:this.host.options.shared,shareScopeMap:this.shareScopeMap,lifecycle:e,origin:this.host,error:r,recovered:i})}catch(e){C(e)}}registerShared(e,t){let{newShareInfos:n,allShareInfos:r}=Et(e,t);return Object.keys(n).forEach(e=>{n[e].forEach(n=>{n.scope.forEach(r=>{var i;this.hooks.lifecycle.beforeRegisterShare.emit({origin:this.host,pkgName:e,shared:n}),(i=this.shareScopeMap[r])!=null&&i[e]||this.setShared({pkgName:e,lib:n.lib,get:n.get,loaded:n.loaded||!!n.lib,shared:n,from:t.name})})})}),{newShareInfos:n,allShareInfos:r}}async loadShare(e,t){let{host:n}=this,r=Ft({pkgName:e,extraOptions:t,shareInfos:n.options.shared}),i=r;try{r!=null&&r.scope&&await Promise.all(r.scope.map(async e=>{await Promise.all(this.initializeSharing(e,{strategy:r.strategy}))})),i=(await this.hooks.lifecycle.beforeLoadShare.emit({pkgName:e,shareInfo:r,shared:n.options.shared,origin:n})).shareInfo,x(i,`Cannot find shared "${e}" in host "${n.options.name}". Ensure the shared config for "${e}" is declared in the federation plugin options and the host has been initialized before loading shares.`);let a=i,{shared:o,useTreesShaking:s}=Nt(this.shareScopeMap,e,i,this.hooks.lifecycle.resolveShare)||{};if(o){let t=It(o,s);if(t.lib)return U(t,n.options.name),this.emitAfterLoadShare({lifecycle:`loadShare`,pkgName:e,shareInfo:a,selectedShared:o}),t.lib;if(t.loading&&!t.loaded){let r=await t.loading;return t.loaded=!0,t.lib||=r,U(t,n.options.name),this.emitAfterLoadShare({lifecycle:`loadShare`,pkgName:e,shareInfo:a,selectedShared:o}),r}{let r=(async()=>{let e=await t.get();return U(t,n.options.name),t.loaded=!0,t.lib=e,e})();this.setShared({pkgName:e,loaded:!1,shared:o,from:n.options.name,lib:null,loading:r,treeShaking:s?t:void 0});let i=await r;return this.emitAfterLoadShare({lifecycle:`loadShare`,pkgName:e,shareInfo:a,selectedShared:o}),i}}{if(t!=null&&t.customShareInfo)return this.emitErrorLoadShare({lifecycle:`loadShare`,pkgName:e,shareInfo:a,recovered:!0}),!1;let r=z(a.treeShaking),i=It(a,r),o=(async()=>{let t=await i.get();i.lib=t,i.loaded=!0,U(i,n.options.name);let{shared:r,useTreesShaking:o}=Nt(this.shareScopeMap,e,a,this.hooks.lifecycle.resolveShare)||{};if(r){let e=It(r,o);e.lib=t,e.loaded=!0,r.from=a.from}return t})();this.setShared({pkgName:e,loaded:!1,shared:a,from:n.options.name,lib:null,loading:o,treeShaking:r?i:void 0});let s=await o;return this.emitAfterLoadShare({lifecycle:`loadShare`,pkgName:e,shareInfo:a,selectedShared:a}),s}}catch(t){throw this.emitErrorLoadShare({lifecycle:`loadShare`,pkgName:e,shareInfo:i,error:t}),t}}initializeSharing(e=Ct,t){let{host:n}=this,r=t==null?void 0:t.from,i=t==null?void 0:t.strategy,a=t==null?void 0:t.initScope,o=[];if(r!==`build`){let{initTokens:t}=this;a||=[];let n=t[e];if(n||=t[e]={from:this.host.name},a.indexOf(n)>=0)return o;a.push(n)}let s=this.shareScopeMap,c=n.options.name;s[e]||(s[e]={});let l=s[e],u=(e,t)=>{var n;let{version:r,eager:i}=t;l[e]=l[e]||{};let a=l[e],o=a[r]&&It(a[r]),s=!!(o&&(`eager`in o&&o.eager||`shareConfig`in o&&(n=o.shareConfig)!=null&&n.eager));(!o||o.strategy!==`loaded-first`&&!o.loaded&&(!i==!s?c>a[r].from:i))&&(a[r]=t)},d=async e=>{let{module:t}=await n.remoteHandler.getRemoteModuleAndOptions({id:e}),r;try{r=await t.getEntry()}catch(i){if(r=await n.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:i,from:`runtime`,lifecycle:`beforeLoadShare`,remote:t.remoteInfo,origin:n}),!r)return}finally{r!=null&&r.init&&!t.initing&&(t.remoteEntryExports=r,await t.init(void 0,void 0,a))}};return Object.keys(n.options.shared).forEach(t=>{n.options.shared[t].forEach(n=>{n.scope.includes(e)&&u(t,n)})}),(n.options.shareStrategy===`version-first`||i===`version-first`)&&n.options.remotes.forEach(t=>{t.shareScope===e&&o.push(d(t.name))}),o}loadShareSync(e,t){let{host:n}=this,r=Ft({pkgName:e,extraOptions:t,shareInfos:n.options.shared});try{r!=null&&r.scope&&r.scope.forEach(e=>{this.initializeSharing(e,{strategy:r.strategy})});let{shared:i}=Nt(this.shareScopeMap,e,r,this.hooks.lifecycle.resolveShare)||{};if(i){if(typeof i.lib==`function`)return U(i,n.options.name),i.loaded||(i.loaded=!0,i.from===n.options.name&&(r.loaded=!0)),this.emitAfterLoadShare({lifecycle:`loadShareSync`,pkgName:e,shareInfo:r,selectedShared:i}),i.lib;if(typeof i.get==`function`){let t=i.get();if(!(t instanceof Promise))return U(i,n.options.name),this.setShared({pkgName:e,loaded:!0,from:n.options.name,lib:t,shared:i}),this.emitAfterLoadShare({lifecycle:`loadShareSync`,pkgName:e,shareInfo:r,selectedShared:i}),t}}if(r.lib)return r.loaded||=!0,this.emitAfterLoadShare({lifecycle:`loadShareSync`,pkgName:e,shareInfo:r,selectedShared:r}),r.lib;if(r.get){let i=r.get();return i instanceof Promise&&S((t==null?void 0:t.from)===`build`?Wt:Gt,W,{hostName:n.options.name,sharedPkgName:e},void 0,K(n.options)),r.lib=i,this.setShared({pkgName:e,loaded:!0,from:n.options.name,lib:r.lib,shared:r}),this.emitAfterLoadShare({lifecycle:`loadShareSync`,pkgName:e,shareInfo:r,selectedShared:r}),r.lib}S(Gt,W,{hostName:n.options.name,sharedPkgName:e},void 0,K(n.options))}catch(t){throw this.emitErrorLoadShare({lifecycle:`loadShareSync`,pkgName:e,shareInfo:r,error:t}),t}}initShareScopeMap(e,t,n={}){let{host:r}=this;this.shareScopeMap[e]=t,this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:t,options:r.options,origin:r,scopeName:e,hostShareScopeMap:n.hostShareScopeMap})}setShared({pkgName:e,shared:t,from:n,lib:r,loading:i,loaded:a,get:o,treeShaking:s}){let{version:c,scope:l=`default`,...u}=t,d=Array.isArray(l)?l:[l],f=e=>{let t=(e,t,n)=>{n&&!e[t]&&(e[t]=n)},n=s?e.treeShaking:e;t(n,`loaded`,a),t(n,`loading`,i),t(n,`get`,o)};d.forEach(t=>{this.shareScopeMap[t]||(this.shareScopeMap[t]={}),this.shareScopeMap[t][e]||(this.shareScopeMap[t][e]={}),this.shareScopeMap[t][e][c]||(this.shareScopeMap[t][e][c]={version:c,scope:[t],...u,lib:r});let i=this.shareScopeMap[t][e][c];f(i),n&&i.from!==n&&(i.from=n)})}_setGlobalShareScopeMap(e){let t=Pt(),n=e.id||e.name;n&&!t[n]&&(t[n]=this.shareScopeMap)}},Wn=class{constructor(){this.shareScopeMap={},this.hooks=new J({afterResolve:new Q(`afterResolve`)})}registerShared(){return{newShareInfos:{},allShareInfos:{}}}loadShare(){throw Error(`Shared dependency loading is disabled by experiments.optimization.disableShared.`)}loadShareSync(){throw Error(`Shared dependency loading is disabled by experiments.optimization.disableShared.`)}initializeSharing(){return[]}initShareScopeMap(e,t){this.shareScopeMap[e]=t}},Gn=class{constructor(e){this.hooks=new J({beforeRegisterRemote:new Z(`beforeRegisterRemote`),registerRemote:new Z(`registerRemote`),beforeRequest:new Q(`beforeRequest`),afterMatchRemote:new X(`afterMatchRemote`),onLoad:new X(`onLoad`),afterLoadRemote:new X(`afterLoadRemote`),handlePreloadModule:new Y(`handlePreloadModule`),errorLoadRemote:new X(`errorLoadRemote`),beforePreloadRemote:new X(`beforePreloadRemote`),generatePreloadAssets:new X(`generatePreloadAssets`),afterPreloadRemote:new X(`afterPreloadRemote`),loadEntry:new X}),this.host=e,this.idToRemoteMap={}}formatAndRegisterRemote(e,t){return(t.remotes||[]).reduce((e,t)=>(this.registerRemote(t,e,{force:!1}),e),e.remotes)}setIdToRemoteMap(e,t){let{remote:n,expose:r}=t,{name:i,alias:a}=n;if(this.idToRemoteMap[e]={name:n.name,expose:r},a&&e.startsWith(i)){let t=e.replace(i,a);this.idToRemoteMap[t]={name:n.name,expose:r};return}if(a&&e.startsWith(a)){let t=e.replace(a,i);this.idToRemoteMap[t]={name:n.name,expose:r}}}async loadRemote(e,t){let{host:n}=this,r=Rt(n.options.remotes,e),i=e,a=r==null?void 0:r.expose,o=r?G(r.remote):void 0,s;try{let{loadFactory:r=!0}=t||{loadFactory:!0},{module:c,moduleOptions:l,remoteMatchInfo:u}=await this.getRemoteModuleAndOptions({id:e}),{pkgNameOrAlias:d,remote:f,expose:p,id:m,remoteSnapshot:h}=u;i=m,a=p,o=G(f);let g=await c.get(m,p,t,h),_=await this.hooks.lifecycle.onLoad.emit({id:m,pkgNameOrAlias:d,expose:p,exposeModule:r?g:void 0,exposeModuleFactory:r?void 0:g,remote:f,options:l,moduleInstance:c,origin:n});return this.setIdToRemoteMap(e,u),s={id:i,expose:a,remote:o,options:t,origin:n},typeof _==`function`?_:g}catch(r){let{from:c=`runtime`}=t||{from:`runtime`},l;try{l=await this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:r,from:c,lifecycle:`onLoad`,expose:a,remote:o,origin:n})}catch(e){throw s={id:i,expose:a,remote:o,options:t,error:e,origin:n},e}if(!l)throw s={id:i,expose:a,remote:o,options:t,error:r,origin:n},r;return s={id:i,expose:a,remote:o,options:t,error:r,origin:n,recovered:!0},l}finally{s&&await this.hooks.lifecycle.afterLoadRemote.emit(s)}}async preloadRemote(e){let{host:t}=this,n=[];await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:t.options,origin:t});let r=bn(t.options.remotes,e),i=e=>{let{preloadConfig:t,remote:n}=e,r=t.exposes||[];return r.length?r.map(r=>({ops:{...e,preloadConfig:{...t,exposes:[r]}},id:Lt(n.name,r)})):[{ops:e,id:`${n.name}/*`}]},a;await Promise.all(r.flatMap(i).map(async e=>{let{ops:r,id:i}=e,{remote:a,preloadConfig:o}=r,s=G(a);try{let{globalSnapshot:e,remoteSnapshot:c}=await t.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:a,id:i,initiator:`preloadRemote`}),l=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:t,preloadOptions:r,remote:a,remoteInfo:s,globalSnapshot:e,remoteSnapshot:c});if(!l)return;let u=await Dn(s,t,l,!0,{initiator:`preloadRemote`,id:i});n.push({remote:a,remoteInfo:s,preloadConfig:o,id:i,results:u})}catch(e){n.push({remote:a,remoteInfo:s,preloadConfig:o,id:i,results:[{url:s.entry,status:`error`,resourceType:/\.json(?:$|[?#])/i.test(s.entry)?`manifest`:`remoteEntry`,initiator:`preloadRemote`,id:i,error:e}]})}}));let o=n.flatMap(e=>e.results.filter(e=>e.status===`error`||e.status===`timeout`));if(o.length>0&&(a=Error(`preloadRemote failed to load ${o.length} resource(s).`),Object.assign(a,{results:n,failedResults:o})),await this.hooks.lifecycle.afterPreloadRemote.emit({preloadOps:e,options:t.options,origin:t,results:n,error:a}),a)throw a}registerRemotes(e,t){let{host:n}=this;e.forEach(e=>{this.registerRemote(e,n.options.remotes,{force:t==null?void 0:t.force})})}initRawContainer(e,t,n){let{host:r}=this,i=new An({host:r,remoteInfo:G({name:e,entry:t})});return i.remoteEntryExports=n,r.moduleCache.set(e,i),i}async getRemoteModuleAndOptions(e){let{host:t}=this,{id:n}=e,r;try{r=await this.hooks.lifecycle.beforeRequest.emit({id:n,options:t.options,origin:t})}catch(e){if(r=await this.hooks.lifecycle.errorLoadRemote.emit({id:n,options:t.options,origin:t,from:`runtime`,error:e,lifecycle:`beforeRequest`}),!r)throw e}let{id:i}=r,a=Rt(t.options.remotes,i);if(!a)try{S(Ut,W,{hostName:t.options.name,requestId:i},void 0,K(t.options))}catch(e){throw await this.hooks.lifecycle.afterMatchRemote.emit({id:i,options:t.options,error:e,origin:t}),e}let{remote:o}=a,s=G(o);await this.hooks.lifecycle.afterMatchRemote.emit({id:i,...a,options:t.options,remoteInfo:s,origin:t});let c=await t.sharedHandler.hooks.lifecycle.afterResolve.emit({id:i,...a,options:t.options,origin:t,remoteInfo:s}),{remote:l,expose:u}=c;x(l&&u,`The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${i}.`);let d=t.moduleCache.get(l.name),f={host:t,remoteInfo:s};return d||(d=new An(f),t.moduleCache.set(l.name,d)),{module:d,moduleOptions:f,remoteMatchInfo:c}}registerRemote(e,t,n){let{host:r}=this,i=()=>{if(e.alias){let n=t.find(t=>{var n;return e.alias&&(t.name.startsWith(e.alias)||((n=t.alias)==null?void 0:n.startsWith(e.alias)))});x(!n,`The alias ${e.alias} of remote ${e.name} is not allowed to be the prefix of ${n&&n.name} name or alias`)}`entry`in e&&typeof window<`u`&&!e.entry.startsWith(`http`)&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||=Ct,e.type||=wt};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:r});let a=t.find(t=>t.name===e.name);if(!a)i(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:r});else{let o=[`The remote "${e.name}" is already registered.`,`Please note that overriding it may cause unexpected errors.`];n!=null&&n.force&&(this.removeRemote(a),i(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:r}),f(o.join(` `)))}}removeRemote(e){try{let{host:n}=this,{name:r}=e,i=n.options.remotes.findIndex(e=>e.name===r);i!==-1&&n.options.remotes.splice(i,1);let a=j(T.__FEDERATION__.moduleInfo,w(e)).key;delete T.__FEDERATION__.moduleInfo[a],`entry`in e&&(n.snapshotHandler.manifestCache.delete(e.entry),delete D.__FEDERATION__.__MANIFEST_LOADING__[e.entry]);let{hostGlobalSnapshot:o}=Bn(e,n);if(o){let t=o&&`remotesInfo`in o&&o.remotesInfo&&j(o.remotesInfo,e.name).key;t&&delete o.remotesInfo[t]}let s=n.moduleCache.get(e.name);if(s){var t;let r=s.remoteInfo,i=r.entryGlobalName;T[i]&&((t=Object.getOwnPropertyDescriptor(T,i))!=null&&t.configurable?delete T[i]:T[i]=void 0);let a=mn(s.remoteInfo);A[a]&&delete A[a];let o=r.buildVersion?u(r.name,r.buildVersion):r.name,c=T.__FEDERATION__.__INSTANCES__.findIndex(e=>r.buildVersion?e.options.id===o:e.name===o);if(c!==-1){let e=T.__FEDERATION__.__INSTANCES__[c];o=e.options.id||o;let t=Pt(),n=!0,i=[];Object.keys(t).forEach(e=>{let a=t[e];a&&Object.keys(a).forEach(t=>{let o=a[t];o&&Object.keys(o).forEach(a=>{let s=o[a];s&&Object.keys(s).forEach(o=>{let c=s[o];c&&typeof c==`object`&&c.from===r.name&&(c.loaded||c.loading?(c.useIn=c.useIn.filter(e=>e!==r.name),c.useIn.length?n=!1:i.push([e,t,a,o])):i.push([e,t,a,o]))})})})}),n&&(e.shareScopeMap={},delete t[o]),i.forEach(([e,n,r,i])=>{var a;(a=t[e])==null||(a=a[n])==null||(a=a[r])==null||delete a[i]}),T.__FEDERATION__.__INSTANCES__.splice(c,1)}n.moduleCache.delete(e.name)}}catch(e){pe.error(`removeRemote failed: ${e instanceof Error?e.message:String(e)}`)}}},Kn=typeof FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN!=`boolean`||!FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN,qn=typeof FEDERATION_OPTIMIZE_NO_REMOTE!=`boolean`||!FEDERATION_OPTIMIZE_NO_REMOTE,Jn=typeof FEDERATION_OPTIMIZE_NO_SHARED!=`boolean`||!FEDERATION_OPTIMIZE_NO_SHARED,Yn=class{constructor(e){this.hooks=new J({beforeInit:new Z(`beforeInit`),init:new Y,beforeInitContainer:new Q(`beforeInitContainer`),initContainer:new Q(`initContainer`)}),this.version=`2.8.1`,this.moduleCache=new Map,this.loaderHook=new J({getModuleInfo:new Y,createScript:new Y,createLink:new Y,fetch:new X,loadEntryError:new X,afterLoadEntry:new X(`afterLoadEntry`),beforeInitRemote:new X(`beforeInitRemote`),afterInitRemote:new X(`afterInitRemote`),beforeGetExpose:new X(`beforeGetExpose`),afterGetExpose:new X(`afterGetExpose`),beforeExecuteFactory:new X(`beforeExecuteFactory`),afterExecuteFactory:new X(`afterExecuteFactory`),getModuleFactory:new X}),this.bridgeHook=new J({beforeBridgeRender:new Y,afterBridgeRender:new Y,beforeBridgeDestroy:new Y,afterBridgeDestroy:new Y});let t=qn&&Kn?[Pn(),zn()]:[],n={id:gn(),name:e.name,plugins:t,remotes:[],shared:{},inBrowser:!0};this.name=e.name,this.options=n,this.snapshotHandler=qn?new Vn(this):new Hn,this.sharedHandler=Jn?new Un(this):new Wn,this.remoteHandler=qn?new Gn(this):new Mn,this.shareScopeMap=this.sharedHandler.shareScopeMap,this.registerPlugins([...n.plugins,...e.plugins||[]]),this.options=this.formatOptions(n,e)}initOptions(e){e.name&&e.name!==this.options.name&&S(de(Yt,W)),this.registerPlugins(e.plugins);let t=this.formatOptions(this.options,e);return this.options=t,t}async loadShare(e,t){return this.sharedHandler.loadShare(e,t)}loadShareSync(e,t){return this.sharedHandler.loadShareSync(e,t)}initializeSharing(e=Ct,t){return this.sharedHandler.initializeSharing(e,t)}initRawContainer(e,t,n){return this.remoteHandler.initRawContainer(e,t,n)}async loadRemote(e,t){return this.remoteHandler.loadRemote(e,t)}async preloadRemote(e){return this.remoteHandler.preloadRemote(e)}initShareScopeMap(e,t,n={}){this.sharedHandler.initShareScopeMap(e,t,n)}formatOptions(e,t){let n=Jn?Et(e,t).allShareInfos:{},{userOptions:r,options:i}=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions:t,options:e,shareInfo:n}),a=this.remoteHandler.formatAndRegisterRemote(i,r),{allShareInfos:o}=this.sharedHandler.registerShared(i,r),s=[...i.plugins];r.plugins&&r.plugins.forEach(e=>{s.includes(e)||s.push(e)});let c={...e,...t,plugins:s,remotes:a,shared:o,id:r.id||e.id};return this.hooks.lifecycle.init.emit({origin:this,options:c}),c}registerPlugins(e){let t=_n(e,this);this.options.plugins=this.options.plugins.reduce((e,t)=>(t&&e&&!e.find(e=>e.name===t.name)&&e.push(t),e),t||[])}registerRemotes(e,t){return this.remoteHandler.registerRemotes(e,t)}registerShared(e){this.sharedHandler.registerShared(this.options,{...this.options,shared:e})}};function Xn(){return typeof FEDERATION_BUILD_IDENTIFIER<`u`?FEDERATION_BUILD_IDENTIFIER:``}function Zn(e,t){let n=Xn();return T.__FEDERATION__.__INSTANCES__.find(r=>!!(n&&r.options.id===n||r.options.name===e&&!r.options.version&&!t||r.options.name===e&&t&&r.options.version===t))}function Qn(e){let t=new((Te())||Yn)({id:`${e.name}@${e.version||Date.now()}`,...e});return we(t),t}var $n=null;function er(e){let t=Zn(e.name,e.version),n={...e,id:e.id||``};return t?(t.initOptions(n),$n||=t,t):($n=Qn(n),$n)}Ee(Yn);export{er as t};
@@ -1 +0,0 @@
1
- import{r as e}from"./rolldown-runtime-hePW80VL.js";import{n as t}from"./jsx-runtime-DE3RlOCf.js";import{n}from"./src-CIHHGjAO.js";var r=e(t(),1);function i(e,t){if(t instanceof n)return t;let r=t instanceof Error&&t.message?t.message:`NexusChat ${e} failed.`;return new n(e.toUpperCase().replace(/[^A-Z0-9]+/g,`_`),r,{cause:t})}function a(e){return(t,n,r)=>{if(console.error(`[NexusChat] ${t} failed`,n),e!=null&&e.onError)try{e.onError(i(t,n),{scope:t,...r})}catch(e){console.error(`[NexusChat] host onError threw`,e)}}}var o=(0,r.createContext)((e,t)=>{console.error(`[NexusChat] ${e} failed`,t)});function s(){return(0,r.useContext)(o)}export{a as n,s as r,o as t};
@@ -1 +0,0 @@
1
- var e=`Machine-authored Spanish (es) catalog, pending translator review. Human translations reused from web-react libs/locale/src/es-ES.json where the English matched.`,t={_comment:e,"action.groupLabel":`Acciones sugeridas`,"action.submitting":`Esta acción se está enviando.`,"action.suggested":`Acción sugerida`,"action.unavailable":`Esta acción no está disponible.`,"artifact.action.download":`descargar`,"artifact.action.open":`abrir`,"artifact.action.save":`guardar`,"artifact.action.share":`compartir`,"artifact.actionComplete":`Acción “{action}” completada`,"artifact.actionFailed":`La acción “{action}” del artefacto ha fallado.`,"artifact.actionInProgress":`Acción “{action}” en curso`,"artifact.cannotOpenHere":`Este artefacto no se puede abrir aquí.`,"artifact.cannotSaveHere":`Este artefacto no se puede guardar desde aquí.`,"artifact.canvas":`Lienzo de artefactos`,"artifact.canvasActions":`Acciones del lienzo`,"artifact.closeCanvas":`Cerrar lienzo`,"artifact.contentLoadFailed":`No se pudo cargar el contenido del artefacto.`,"artifact.contentReadFailed":`No se pudo leer el contenido del artefacto.`,"artifact.displayFailed":`No se pudo mostrar este elemento ({noun}).`,"artifact.download":`Descargar artefacto`,"artifact.exitFullscreen":`Salir de pantalla completa`,"artifact.generated":`Artefactos generados`,"artifact.hostRendererMountFailed":`No se pudo montar el renderizador del host.`,"artifact.hostRendererUpdateFailed":`No se pudo actualizar el renderizador del host.`,"artifact.htmlDisplayFailed":`No se pudo mostrar este artefacto HTML.`,"artifact.loadFailed":`No se pudo cargar el artefacto`,"artifact.mermaidSource":`Código fuente Mermaid`,"artifact.mermaidUnavailable":`La representación de diagramas no está disponible hasta que el renderizador opcional de Mermaid supere su comprobación de CSP y accesibilidad.`,"artifact.moreActions":`Más acciones`,"artifact.noDownload":`No hay contenido descargable.`,"artifact.noRenderer":`No hay ningún renderizador disponible para este artefacto de tipo {kind}. Aún puede usar las acciones del artefacto cuando el host las proporcione.`,"artifact.openFailed":`No se pudo abrir este elemento ({noun}).`,"artifact.openInEditor":`Abrir en el editor`,"artifact.previewDescription":`Vista previa del artefacto de tipo {kind} seleccionado.`,"artifact.previewTitle":`Vista previa del artefacto`,"artifact.report":`Informe`,"artifact.saveFailed":`No se pudo guardar.`,"artifact.saveUnrecorded":`Se guardó en el catálogo, pero la conversación no pudo registrarlo. Guarde de nuevo para reintentar.`,"artifact.selectPrompt":`Seleccione un artefacto de la conversación.`,"artifact.share":`Compartir artefacto`,"artifact.shareIncomplete":`No se completó el uso compartido.`,"artifact.snapshot":`Instantánea`,"artifact.snapshotHint":`Una instantánea de los datos en el momento de la respuesta. Abre el {noun} para ver datos en vivo.`,"artifact.unavailable":`Este artefacto no está disponible.`,"artifact.viewAsChart":`Ver como gráfico`,"artifact.viewAsTable":`Ver como tabla`,"artifact.viewFullscreen":`Ver en pantalla completa`,"artifact.viewing":`Viendo`,"artifact.visualizationLabel":`Visualización de {kind}`,"artifact.visualizationUnavailable":`Visualización no disponible`,"brand.name":`Incorta Intelligence`,"code.copy":`Copiar código`,"code.insert":`Insertar código`,"common.cancel":`Cancelar`,"common.delete":`Eliminar`,"common.download":`Descargar`,"common.edit":`Editar`,"common.loading":`Cargando…`,"common.next":`Siguiente`,"common.open":`Abrir`,"common.preview":`Vista previa`,"common.previous":`Anterior`,"common.rename":`Cambiar nombre`,"common.retry":`Reintentar`,"common.save":`Guardar`,"common.search":`Buscar`,"common.searching":`Buscando…`,"common.share":`Compartir`,"common.showLess":`Mostrar menos`,"common.showMore":`Mostrar más`,"composer.agentOptions":`Opciones del agente`,"composer.agentOptionsHeading":`Opciones de {agent}`,"composer.agentOptionsWithValue":`Opciones del agente: {value}`,"composer.appliedToNextRequest":`Se aplicará a la siguiente solicitud`,"composer.chooseAgent":`Elegir un agente`,"composer.chooseAgentCommand":`Elegir un comando del agente`,"composer.collapseInput":`Contraer entrada`,"composer.commandsStartEmptyPrompt":`Los comandos se escriben al inicio de un mensaje vacío`,"composer.disclaimer":`Incorta AI puede cometer errores; verifique las decisiones importantes.`,"composer.expandInput":`Expandir entrada`,"composer.loadingAgentOptions":`Cargando opciones del agente`,"composer.mentionColumn":`Mencionar una columna`,"composer.mentionColumnLabel":`Mencionar una columna de la vista de negocio`,"composer.mentionColumnRequiresOneView":`Adjunte exactamente una vista de negocio para mencionar una columna`,"composer.placeholder":`Pregunte a Incorta Intelligence`,"composer.removeAgent":`Quitar el agente {agent}`,"composer.searchValues":`Buscar valores en la vista de negocio adjunta`,"composer.searchValuesLabel":`Buscar valores de la vista de negocio`,"composer.searchValuesRequiresOneView":`Adjunte exactamente una vista de negocio para buscar sus valores`,"composer.sendMessage":`Enviar mensaje`,"composer.stopResponse":`Detener respuesta`,"composer.suggestions":`Sugerencias del editor`,"composer.unavailable":`No se pudo mostrar el editor de mensajes.`,"context.add":`Añadir contexto de análisis`,"context.kind.aiContainers":`AI Containers`,"context.kind.businessView":`Vista de negocio`,"context.kind.file":`Archivo`,"context.kind.insight":`Perspectiva`,"context.kind.knowledgeStore":`Almacén de conocimiento`,"context.kind.physicalTable":`Tablas`,"context.loadingSource":`Cargando {title}…`,"context.noItems":`No hay elementos disponibles.`,"context.previewName":`Vista previa de {name}`,"context.removeName":`Quitar {name}`,"context.searchSource":`Buscar en {title}`,"context.selectedLabel":`Contexto de análisis seleccionado`,"context.selectedSummary":`Contexto de análisis seleccionado: {contexts}`,"context.showMore":`Mostrar más contextos seleccionados`,"context.showPrevious":`Mostrar contextos seleccionados anteriores`,"context.sourceFailed":`No se pudo cargar {title}.`,"context.sourceNoun":`{count, plural, one {fuente} other {fuentes}}`,"context.unsupportedByAgent":`No compatible con el agente actual.`,"context.uploadAnalysisFiles":`Subir archivos de análisis`,"context.uploadFiles":`Subir archivos`,"csv.goToPage":`Ir a la página {page}`,"csv.nextPage":`Ir a la página siguiente`,"csv.previousPage":`Ir a la página anterior`,"csv.summary":`Filas {from}–{to} de {total} · Página {page} de {pages}`,"file.blockedUrl":`Este enlace de archivo usa un esquema de URL bloqueado.`,"file.downloadFailed":`No se pudo descargar el archivo.`,"file.downloadName":`Descargar {name}`,"file.invalidData":`Los datos del archivo no son válidos.`,"file.noContent":`Este archivo no tiene contenido descargable.`,"file.noContentYet":`Este archivo aún no tiene contenido descargable.`,"file.openName":`Abrir {name}`,"file.openUnsupported":`No es posible abrir este archivo aquí.`,"file.pdfPreviewFailed":`No se pudo previsualizar este PDF.`,"file.pdfTooLarge":`Este PDF es demasiado grande para previsualizarlo aquí.`,"file.previewFailed":`No se pudo previsualizar este archivo.`,"file.readFailed":`No se pudo leer este archivo.`,"file.tooLargeToDownload":`Este archivo es demasiado grande para descargarlo aquí.`,"file.tooLargeToPreview":`Este archivo es demasiado grande para previsualizarlo aquí.`,"file.type.archive":`Archivo comprimido · {format}`,"file.type.document":`Documento · {format}`,"file.type.env":`Env`,"file.type.file":`Archivo`,"file.type.format":`{format}`,"file.type.image":`Imagen · {format}`,"file.type.log":`Registro`,"file.type.markdown":`Markdown`,"file.type.slides":`Presentación · {format}`,"file.type.spreadsheet":`Hoja de cálculo · {format}`,"file.type.text":`Texto`,"file.unpreviewable":`“{name}” no se puede previsualizar aquí. Descárguelo para abrirlo en su propia aplicación.`,"history.collapse":`Contraer el historial de chat`,"history.conversationRunning":`La conversación está en curso`,"history.delete.description":`Esta conversación se eliminará del historial de chat.`,"history.delete.descriptionNamed":`“{title}” se eliminará del historial de chat.`,"history.delete.title":`¿Eliminar la conversación?`,"history.deleteFailed":`No se pudo eliminar la conversación.`,"history.dismissError":`Descartar el error del historial`,"history.empty":`Aún no hay chats`,"history.expand":`Expandir el historial de chat`,"history.group.older":`Anteriores`,"history.group.previous7Days":`Últimos 7 días`,"history.group.today":`Hoy`,"history.group.yesterday":`Ayer`,"history.loadFailed":`No se pudieron cargar los chats.`,"history.loadMoreConversations":`Cargar más conversaciones`,"history.loadingConversations":`Cargando conversaciones…`,"history.moreActions":`Más acciones para {title}`,"history.newAnswer":`Nueva respuesta`,"history.newChat":`Nuevo chat`,"history.notSavedYet":`Esta conversación aún no se ha guardado.`,"history.rename.description":`Elija un título breve que facilite encontrar este análisis.`,"history.rename.inputLabel":`Título de la conversación`,"history.rename.title":`Cambiar el nombre de la conversación`,"history.renameFailed":`No se pudo cambiar el nombre de la conversación.`,"history.search.assistantAnswer":`Respuesta del asistente`,"history.search.conversations":`Conversaciones`,"history.search.description":`Busque en los títulos y las vistas previas de las conversaciones.`,"history.search.empty":`No se encontraron conversaciones.`,"history.search.failed":`La búsqueda de conversaciones ha fallado.`,"history.search.moreResults":`{count, plural, one {# resultado más} other {# resultados más}}`,"history.search.noMatch":`Ningún chat coincide con «{query}»`,"history.search.placeholder":`Buscar chats…`,"history.search.resultCount":`{count, plural, one {# resultado} other {# resultados}}`,"history.search.searching":`Buscando conversaciones`,"history.search.userQuestion":`Pregunta del usuario`,"history.searchChats":`Buscar chats`,"history.sheetDescription":`Cree, busque y vuelva a abrir conversaciones.`,"history.startNewChat":`Iniciar un nuevo chat`,"history.title":`Historial de chat`,"markdown.scrollableTable":`Tabla desplazable`,"message.conversationLost":`Esta conversación ya no está disponible. Inicie una nueva sesión para continuar.`,"message.copy":`Copiar mensaje`,"message.download":`Descargar respuesta`,"message.downloadCsv":`Tabla como CSV`,"message.downloadMarkdown":`Markdown (.md)`,"message.downloadText":`Texto sin formato (.txt)`,"message.errorDetails":`Detalles del error`,"message.errorDetailsDescription":`Detalles técnicos devueltos por Incorta Intelligence para esta respuesta.`,"message.feedbackFailed":`No se pudieron enviar los comentarios`,"message.helpful":`Respuesta útil`,"message.lastExecuted":`Última ejecución: {time}`,"message.notSaved":`La conversación no se ha guardado`,"message.startNewSession":`Iniciar nueva sesión`,"message.taskFailed":`No se pudo completar la respuesta`,"message.unhelpful":`Respuesta poco útil`,"message.viewErrorDetails":`Ver detalles del error`,"preview.noData":`No hay datos para mostrar`,"session.actions":`Acciones del chat`,"session.clickToRename":`Haga clic para cambiar el nombre`,"session.delete":`Eliminar chat`,"session.untitled":`Sin título`,"shell.canvasUnavailable":`No se pudo mostrar el lienzo.`,"shell.close":`Cerrar chat`,"shell.dock":`Acoplar al lateral`,"shell.enterFullScreen":`Entrar en pantalla completa`,"shell.exitFullScreen":`Salir de pantalla completa`,"shell.historyUnavailable":`No se pudo mostrar el historial de chat.`,"shell.openHistory":`Abrir el historial de chat`,"shell.resizeHandle":`Redimensionar la conversación y el lienzo`,"shell.threadUnavailable":`No se pudo mostrar el área de conversación.`,"shell.unavailable":`NexusChat no está disponible`,"shell.undock":`Desacoplar`,"shell.workspace":`Espacio de trabajo de la conversación`,"source.cite":`Fuente {index}`,"source.content":`Contenido`,"source.copy":`Copiar contenido`,"source.count":`{count, plural, one {# fuente} other {# fuentes}}`,"source.kind.aiContainer":`AI Container`,"source.kind.businessView":`Vista de negocio`,"source.kind.document":`Documento`,"source.kind.file":`Archivo`,"source.kind.insight":`Perspectiva`,"source.kind.knowledgeStore":`Almacén de conocimiento`,"source.next":`Fuente siguiente`,"source.open":`Abrir fuente`,"source.position":`{index} de {total}`,"source.preview":`Se muestran {shown, number} de {total, number} caracteres.`,"source.previous":`Fuente anterior`,"source.showAll":`Mostrar todo`,"source.title":`Fuentes`,"source.untitled":`Fuente sin título`,"table.column":`Columna {index}`,"task.backendReason":`Motivo del backend: {reason}`,"task.clarificationFailed":`No se pudo enviar la aclaración.`,"task.contextRequestPreview":`Solicitud de contexto`,"task.launchUnresolved":`El resultado del envío del mensaje no se ha resuelto porque no se devolvió ninguna identidad de tarea remota. Actualice el historial de la conversación antes de reintentar.`,"task.pollFailed":`No se pudo reanudar la tarea interrumpida.`,"task.responseFailed":`No se pudo generar la respuesta.`,"thinking.analyzingThis":`Analizando esto`,"thinking.checkingDetails":`Comprobando detalles`,"thinking.checkingRequest":`Comprobando la solicitud`,"thinking.consideringDetails":`Considerando los detalles`,"thinking.evaluatingDetails":`Evaluando detalles`,"thinking.examiningRequest":`Examinando la solicitud`,"thinking.lookingIntoIt":`Revisándolo`,"thinking.lookingOverRequest":`Revisando la solicitud`,"thinking.parsingRequest":`Interpretando la solicitud`,"thinking.processing":`Procesando`,"thinking.readingThroughIt":`Leyéndolo`,"thinking.reasoningThroughIt":`Razonándolo`,"thinking.reviewingThis":`Revisando esto`,"thinking.sortingThroughDetails":`Ordenando detalles`,"thinking.takingCloserLook":`Mirando más de cerca`,"thinking.thinking":`Pensando`,"thinking.thinkingItThrough":`Pensándolo`,"thinking.understandingRequest":`Entendiendo la solicitud`,"thinking.workingOnIt":`Trabajando en ello`,"thinking.workingThroughIt":`Trabajándolo`,"thread.agentActivity":`Actividad del agente`,"thread.inputNeeded":`Se necesita información adicional`,"thread.inputRequiredDefault":`Se requiere información adicional para continuar.`,"thread.loadingConversation":`Cargando la conversación`,"thread.loadingConversationEllipsis":`Cargando la conversación…`,"thread.loadingEarlier":`Cargando mensajes anteriores`,"thread.messagesRegion":`Mensajes`,"thread.olderMessagesFailed":`No se pudieron cargar los mensajes anteriores.`,"thread.renderFailed":`No se pudo mostrar esta conversación.`,"thread.responseStopped":`Detuviste esta respuesta.`,"thread.retryLoadEarlier":`Reintentar la carga de mensajes anteriores`,"thread.scrollToLatest":`Ir al último mensaje`,"thread.thoughts":`Mostrar pensamiento`,"thread.unsupportedPart":`Parte A2A no compatible: {kind}`,"thread.unsupportedPartDetail":`La respuesta contenía una parte que esta versión de NexusChat no puede representar.`,"time.justNow":`ahora mismo`,"tool.input":`Entrada`,"tool.moreRows":`{count, plural, one {# fila más} other {# filas más}}`,"tool.output":`Salida`,"tool.unsupportedContent":`Esta versión de NexusChat no admite este tipo de contenido de herramienta.`,"upload.agentCannotUseFile":`El agente seleccionado no puede usar este contexto de archivo.`,"upload.alreadyAttached":`“{name}” ya está adjunto.`,"upload.attachFailed":`No se pudo adjuntar el archivo`,"upload.failed":`La subida del archivo ha fallado.`,"upload.failedShort":`Error al subir`,"upload.fileTooLarge":`El archivo “{name}” supera el tamaño máximo de {maxMb} MB.`,"upload.progress":`Subiendo {percent, number, percent}`,"upload.recentFile":`Archivo reciente`,"upload.sessionFailed":`No se pudo crear una sesión de subida de archivos.`,"upload.tooManyFiles":`Puede añadir un máximo de {max} archivos.`,"upload.unsupportedFormat":`El archivo “{name}” no es compatible. Formatos admitidos: {formats}.`,"upload.unsupportedShort":`Formato no compatible. Admitidos: {formats}`,"upload.uploadingName":`Subiendo {name}`,"upload.waitForConnection":`Espere a que la conversación actual se conecte antes de añadir archivos.`,"usage.cached":`({percent} en caché)`,"usage.calls":`{count, plural, one {# llamada} other {# llamadas}}`,"usage.columnIn":`↑entrada`,"usage.columnModel":`modelo`,"usage.columnOut":`↓salida`,"usage.duration":`{minutes}, {seconds}`,"usage.label":`Uso de modelos`,"usage.models":`{count, plural, one {# modelo} other {# modelos}}`,"usage.title":`Distribución de tokens`,"welcome.about":`Acerca de Incorta Intelligence`,"welcome.attachContextHint":`Adjunte un contexto compatible para fundamentar su pregunta.`,"welcome.connecting":`Conectando con Incorta Intelligence…`,"welcome.connectionFailed":`No se puede acceder a Incorta Intelligence en este momento.`,"welcome.greeting.afternoon":`{named, select, true {Buenas tardes, {name}} other {Buenas tardes}}`,"welcome.greeting.evening":`{named, select, true {Buenas tardes, {name}} other {Buenas tardes}}`,"welcome.greeting.morning":`{named, select, true {Buenos días, {name}} other {Buenos días}}`,"welcome.greeting.welcomeBack":`{named, select, true {Hola de nuevo, {name}} other {Hola de nuevo}}`,"welcome.retryConnecting":`Reintentar la conexión con Incorta Intelligence`,"welcome.skill.buildDashboards":`Crear tableros`,"welcome.skill.createInsights":`Crear perspectivas`,"welcome.skill.exploreData":`Explorar datos`,"welcome.skill.generateReports":`Generar informes`,"welcome.subline":`¿En qué puedo ayudarle hoy?`};export{e as _comment,t as default};