1import{n as e,o as t}from"./2782-Cml-q0Vs.js";import{Ft as n,Pt as r}from"./vendor-B1hP2nF3.js";import{B as i,G as a,H as o,L as s,R as c,U as l,V as u,W as d,z as f}from"./vendor-CKF01V0N.js";var p,m,h,g,_=e((()=>{p=`FEDERATION_DEBUG`,m={AT:`@`,HYPHEN:`-`,SLASH:`/`},h={[m.AT]:`scope_`,[m.HYPHEN]:`_`,[m.SLASH]:`__`},h[m.AT],m.AT,h[m.HYPHEN],m.HYPHEN,h[m.SLASH],m.SLASH,g=function(e){return e[e.UNKNOWN=1]=`UNKNOWN`,e[e.CALCULATED=2]=`CALCULATED`,e[e.NO_USE=0]=`NO_USE`,e}({})}));function v(){return!0}function y(){var e;return typeof navigator<`u`&&((e=navigator)==null?void 0:e.product)===`ReactNative`}function b(){try{if(v()&&window.localStorage)return!!localStorage.getItem(p)}catch{return!1}return!1}function ee(){return te.default!==void 0&&{}.FEDERATION_DEBUG?!!{}.FEDERATION_DEBUG:typeof FEDERATION_DEBUG<`u`&&FEDERATION_DEBUG?!0:b()}var te,ne=e((()=>{te=t(a(),1),_()}));function re(e){try{return JSON.stringify(e,null,2)}catch{return``}}var ie,ae,oe,se=e((()=>{_(),ne(),ie=function(...e){return e.length?e.reduce((e,t)=>t?e?`${e}:${t}`:t:e,``):``},ae=(e,t)=>{if(`getPublicPath`in e){let n;return n=e.getPublicPath.startsWith(`function`)?Function(`return `+e.getPublicPath)()():Function(e.getPublicPath)(),`${n}${t}`}else if(`publicPath`in e)return!v()&&!y()&&`ssrPublicPath`in e&&typeof e.ssrPublicPath==`string`?`${e.ssrPublicPath}${t}`:`${e.publicPath}${t}`;else return``},oe=e=>{}}));function ce(e){return e.replace(/#.*$/,``).replace(/\?.*$/,``).replace(/\/[^\/]+$/,`/`)}function le(e,t={}){var n,r,i;let{remotes:a={},overrides:o={},version:s}=t,c,l=()=>`publicPath`in e.metaData?(e.metaData.publicPath===`auto`||e.metaData.publicPath===``)&&s?ce(s):e.metaData.publicPath:e.metaData.getPublicPath,u=Object.keys(o),d={};Object.keys(a).length||(d=((n=e.remotes)==null?void 0:n.reduce((e,t)=>{let n,r=t.federationContainerName;return n=u.includes(r)?o[r]:`version`in t?t.version:t.entry,e[r]={matchedVersion:n},e},{}))||{}),Object.keys(a).forEach(e=>d[e]={matchedVersion:u.includes(e)?o[e]:a[e]});let{remoteEntry:{path:f,name:p,type:m},types:h={path:``,name:``,zip:``,api:``},buildInfo:{buildVersion:g},globalName:_,ssrRemoteEntry:v}=e.metaData,{exposes:y}=e,b={version:s||``,buildVersion:g,globalName:_,remoteEntry:de(f,p),remoteEntryType:m,remoteTypes:de(h.path,h.name),remoteTypesZip:h.zip||``,remoteTypesAPI:h.api||``,remotesInfo:d,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((r=e.metaData)!=null&&r.prefetchInterface){let t=e.metaData.prefetchInterface;b={...b,prefetchInterface:t}}if((i=e.metaData)!=null&&i.prefetchEntry){let{path:t,name:n,type:r}=e.metaData.prefetchEntry;b={...b,prefetchEntry:de(t,n),prefetchEntryType:r}}if(`publicPath`in e.metaData?(c={...b,publicPath:l()},typeof e.metaData.ssrPublicPath==`string`&&(c.ssrPublicPath=e.metaData.ssrPublicPath)):c={...b,getPublicPath:l()},v){let e=de(v.path,v.name);c.ssrRemoteEntry=e,c.ssrRemoteEntryType=v.type||`commonjs-module`}return c}function ue(e){return!!(`remoteEntry`in e&&e.remoteEntry.includes(`.json`))}var de,fe=e((()=>{_(),de=(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 pe(){try{let e=Error().stack;if(!e)return;let[,...t]=e.split(` 2`),n=t.filter(e=>!ve.some(t=>e.includes(t)));return n.length?`Stack trace:\n${n.slice(0,5).join(` 3`)}`:void 0}catch{return}}function me(e){return new ye(e)}function he(e){let t=new ye(e);return Object.defineProperty(t,`__mf_infrastructure_logger__`,{value:!0,enumerable:!1,configurable:!1}),t}var ge,_e,ve,ye,be=e((()=>{ne(),ge=`[ Module Federation ]`,_e=console,ve=[`logger.ts`,`logger.js`,`captureStackTrace`,`Logger.emit`,`Logger.log`,`Logger.info`,`Logger.warn`,`Logger.error`,`Logger.debug`],ye=class{constructor(e,t=_e){this.prefix=e,this.delegate=t==null?_e:t}setPrefix(e){this.prefix=e}setDelegate(e){this.delegate=e==null?_e:e}emit(e,t){let n=this.delegate,r=ee()?pe():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=_e[e];if(typeof t==`function`){t.call(_e,this.prefix,...i);return}}}
3log(...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){ee()&&this.emit(`debug`,e)}},me(ge),he(ge)}));async function xe(e,t){try{return await e()}catch(e){!t&&oe(e);return}}function Se(e,t){let n=/^(https?:)?\/\//i;return e.replace(n,``).replace(/\/$/,``)===t.replace(n,``).replace(/\/$/,``)}function Ce(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&&Se(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&&Se(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(`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,xe(()=>{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,Error(`Remote script "${e.url}" time-outed.`))},r),{script:t,needAttach:n}}function we(e){let t=null,n=!0,r=document.getElementsByTagName(`link`);for(let i=0;i<r.length;i++){let a=r[i],o=a.getAttribute(`href`),s=a.getAttribute(`rel`);if(o&&Se(o,e.url)&&s===e.attrs.rel){t=a,n=!1;break}}if(!t){t=document.createElement(`link`),t.setAttribute(`href`,e.url);let n,r=e.attrs;e.createLinkHook&&(n=e.createLinkHook(e.url,r),n instanceof HTMLLinkElement&&(t=n)),r&&!n&&Object.keys(r).forEach(e=>{t&&!t.getAttribute(e)&&t.setAttribute(e,r[e])})}let i=(n,r)=>{let i=()=>{(r==null?void 0:r.type)===`error`?e!=null&&e.onErrorCallback&&(e==null||e.onErrorCallback(r)):e!=null&&e.cb&&(e==null||e.cb())};if(t&&(t.onerror=null,t.onload=null,xe(()=>{let{needDeleteLink:n=!0}=e;n&&t!=null&&t.parentNode&&t.parentNode.removeChild(t)}),n)){let e=n(r);return i(),e}i()};return t.onerror=i.bind(null,t.onerror),t.onload=i.bind(null,t.onload),{link:t,needAttach:n}}function Te(e,t){let{attrs:n={},createScriptHook:r}=t;return new Promise((t,i)=>{let{script:a,needAttach:o}=Ce({url:e,cb:t,onErrorCallback:i,attrs:{fetchpriority:`high`,...n},createScriptHook:r,needDeleteScript:!0});o&&document.head.appendChild(a)})}var Ee=e((()=>{se()})),x=e((()=>{_(),ne(),se(),fe(),be(),Ee()})),De,Oe,ke=e((()=>{De=e=>`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split(`-`)[0].toLowerCase()}#${e.toLowerCase()}`,Oe=(e,t,n,r)=>{let i=[`${[t[e]]} #${e}`];return n&&i.push(`args: ${JSON.stringify(n)}`),i.push(De(e)),r&&i.push(`Original Error Message:\n ${r}`),i.join(` 4`)}}));function Ae(e,t,n,r,i,a){return r(Oe(e,t,n,i))}var je=e((()=>{ke()}));function S(e,t,n,r,i){e||(n===void 0?C(t):C(t,n,r,void 0,i))}function C(e,t,n,r,i){if(t!==void 0)return Ae(e,t,n==null?{}:n,e=>{throw Error(`${w}: ${e}`)},r,i);let a=e;throw a instanceof Error?(a.message.startsWith(w)||(a.message=`${w}: ${a.message}`),a):Error(`${w}: ${a}`)}function Me(e){e instanceof Error&&(e.message.startsWith(w)||(e.message=`${w}: ${e.message}`)),Ne.warn(e)}var w,Ne,T=e((()=>{x(),je(),w=`[ Federation Runtime ]`,Ne=me(w)}));function Pe(e,t){return e.findIndex(e=>e===t)===-1&&e.push(t),e}function Fe(e){return`version`in e&&e.version?`${e.name}:${e.version}`:`entry`in e&&e.entry?`${e.name}:${e.entry}`:`${e.name}`}function Ie(e){return e.entry!==void 0}function Le(e){return!e.entry.includes(`.json`)}function Re(e){return e&&typeof e==`object`}function ze(e){return He.call(e)===`[object Object]`}function Be(e){return Array.isArray(e)?e:[e]}function Ve(e){return`remoteEntry`in e?{url:e.remoteEntry,type:e.remoteEntryType,globalName:e.globalName}:{url:``,type:`global`,globalName:``}}var He,Ue,E=e((()=>{T(),x(),He=Object.prototype.toString,Ue=(e,t)=>{let n;return n=e.endsWith(`/`)?e.slice(0,-1):e,t.startsWith(`.`)&&(t=t.
4slice(1)),n+=t,n}}));function We(e,t,n){Object.defineProperty(e,t,{value:n,configurable:!1,writable:!0})}function Ge(e,t){return Object.hasOwnProperty.call(e,t)}function Ke(e){var t,n,r,i,a,o;Ge(e,`__VMOK__`)&&!Ge(e,`__FEDERATION__`)&&We(e,`__FEDERATION__`,e.__VMOK__),Ge(e,`__FEDERATION__`)||(We(e,`__FEDERATION__`,{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map}),We(e,`__VMOK__`,e.__FEDERATION__)),(t=e.__FEDERATION__).__GLOBAL_PLUGIN__!=null||(t.__GLOBAL_PLUGIN__=[]),(n=e.__FEDERATION__).__INSTANCES__!=null||(n.__INSTANCES__=[]),(r=e.__FEDERATION__).moduleInfo!=null||(r.moduleInfo={}),(i=e.__FEDERATION__).__SHARE__!=null||(i.__SHARE__={}),(a=e.__FEDERATION__).__MANIFEST_LOADING__!=null||(a.__MANIFEST_LOADING__={}),(o=e.__FEDERATION__).__PRELOADED_MAP__!=null||(o.__PRELOADED_MAP__=new Map)}function qe(e){D.__FEDERATION__.__INSTANCES__.push(e)}function Je(){return D.__FEDERATION__.__DEBUG_CONSTRUCTOR__}function Ye(e,t=ee()){t&&(D.__FEDERATION__.__DEBUG_CONSTRUCTOR__=e,D.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__=`2.2.3`)}function Xe(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}}}else C(`getInfoWithoutType: "key" must be a string, got ${typeof t} (${JSON.stringify(t)}).`)}var D,O,Ze,k,Qe,$e,et,tt,nt,rt,it,at,ot,A=e((()=>{T(),E(),x(),D=typeof globalThis==`object`?globalThis:window,O=(()=>{try{return document.defaultView}catch{return D}})(),Ze=O,Ge(D,`__GLOBAL_LOADING_REMOTE_ENTRY__`)||We(D,`__GLOBAL_LOADING_REMOTE_ENTRY__`,{}),k=D.__GLOBAL_LOADING_REMOTE_ENTRY__,Ke(D),Ke(O),Qe=()=>O.__FEDERATION__.moduleInfo,$e=(e,t)=>{let n=Xe(t,Fe(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=Fe(n),i=Xe(O.__FEDERATION__.moduleInfo,r).value;if((i==null?void 0:i.version)===t)return i}},et=e=>$e(e,O.__FEDERATION__.moduleInfo),tt=(e,t)=>{let n=Fe(e);return O.__FEDERATION__.moduleInfo[n]=t,O.__FEDERATION__.moduleInfo},nt=e=>(O.__FEDERATION__.moduleInfo={...O.__FEDERATION__.moduleInfo,...e},()=>{let t=Object.keys(e);for(let e of t)delete O.__FEDERATION__.moduleInfo[e]}),rt=(e,t)=>{let n=t||`__FEDERATION_${e}:custom__`;return{remoteEntryKey:n,entryExports:D[n]}},it=()=>O.__FEDERATION__.__GLOBAL_PLUGIN__,at=e=>D.__FEDERATION__.__PRELOADED_MAP__.get(e),ot=e=>D.__FEDERATION__.__PRELOADED_MAP__.set(e,!0)})),st,ct,lt,ut,dt,ft,pt,mt,ht,gt,_t,vt,yt,bt,xt,St,Ct,wt,Tt,Et,Dt,Ot,kt,At,jt,Mt,Nt=e((()=>{st=`[0-9A-Za-z-]+`,ct=`(?:\\+(${st}(?:\\.${st})*))`,lt=`0|[1-9]\\d*`,ut=`[0-9]+`,dt=`\\d*[a-zA-Z-][a-zA-Z0-9-]*`,ft=`(?:${ut}|${dt})`,pt=`(?:-?(${ft}(?:\\.${ft})*))`,mt=`(?:${lt}|${dt})`,ht=`(?:-(${mt}(?:\\.${mt})*))`,gt=`${lt}|x|X|\\*`,_t=`[v=\\s]*(${gt})(?:\\.(${gt})(?:\\.(${gt})(?:${ht})?${ct}?)?)?`,vt=`^\\s*(${_t})\\s+-\\s+(${_t})\\s*$`,yt=`[v=\\s]*${`(${ut})\\.(${ut})\\.(${ut})`}${pt}?${ct}?`,bt=`((?:<|>)?=?)`,xt=`(\\s*)${bt}\\s*(${yt}|${_t})`,St=`(?:~>?)`,Ct=`(\\s*)${St}\\s+`,wt=`(?:\\^)`,Tt=`(\\s*)${wt}\\s+`,Et=`(<|>)?=?\\s*\\*`,Dt=`^${wt}${_t}$`,Ot=`v?${`(${lt})\\.(${lt})\\.(${lt})`}${ht}?${ct}?`,kt=`^${St}${_t}$`,At=`^${bt}\\s*${_t}$`,jt=`^${bt}\\s*(${Ot})$|^$`,Mt=`^\\s*>
4=\\s*0.0.0\\s*$`}));function j(e){return new RegExp(e)}function M(e){return!e||e.toLowerCase()===`x`||e===`*`}function Pt(...e){return t=>e.reduce((e,t)=>t(e),t)}function Ft(e){return e.match(j(jt))}function It(e,t,n,r){let i=`${e}.${t}.${n}`;return r?`${i}-${r}`:i}var Lt=e((()=>{Nt()}));function Rt(e){return e.replace(j(vt),(e,t,n,r,i,a,o,s,c,l,u,d)=>(t=M(n)?``:M(r)?`>=${n}.0.0`:M(i)?`>=${n}.${r}.0`:`>=${t}`,s=M(c)?``:M(l)?`<${Number(c)+1}.0.0-0`:M(u)?`<${c}.${Number(l)+1}.0-0`:d?`<=${c}.${l}.${u}-${d}`:`<=${s}`,`${t} ${s}`.trim()))}function zt(e){return e.replace(j(xt),`$1$2$3`)}function Bt(e){return e.replace(j(Ct),`$1~`)}function Vt(e){return e.replace(j(Tt),`$1^`)}function Ht(e){return e.trim().split(/\s+/).map(e=>e.replace(j(Dt),(e,t,n,r,i)=>M(t)?``:M(n)?`>=${t}.0.0 <${Number(t)+1}.0.0-0`:M(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 Ut(e){return e.trim().split(/\s+/).map(e=>e.replace(j(kt),(e,t,n,r,i)=>M(t)?``:M(n)?`>=${t}.0.0 <${Number(t)+1}.0.0-0`:M(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 Wt(e){return e.split(/\s+/).map(e=>e.trim().replace(j(At),(e,t,n,r,i,a)=>{let o=M(n),s=o||M(r),c=s||M(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 Gt(e){return e.trim().replace(j(Et),``)}function Kt(e){return e.trim().replace(j(Mt),``)}var qt=e((()=>{Nt(),Lt()}));function Jt(e,t){return e=Number(e)||e,t=Number(t)||t,e>t?1:e===t?0:-1}function Yt(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?Jt(t,i):-1:1}return 0}function Xt(e,t){return Jt(e.major,t.major)||Jt(e.minor,t.minor)||Jt(e.patch,t.patch)||Yt(e,t)}function Zt(e,t){return e.version===t.version}function Qt(e,t){switch(e.operator){case``:case`=`:return Zt(e,t);case`>`:return Xt(e,t)<0;case`>=`:return Zt(e,t)||Xt(e,t)<0;case`<`:return Xt(e,t)>0;case`<=`:return Zt(e,t)||Xt(e,t)>0;case void 0:return!0;default:return!1}}var $t=e((()=>{}));function en(e){return Pt(Ht,Ut,Wt,Gt)(e)}function tn(e){return Pt(Rt,zt,Bt,Vt)(e.trim()).split(/\s+/).join(` `)}function nn(e,t){if(!e)return!1;let n=Ft(e);if(!n)return!1;let[,r,,i,a,o,s]=n,c={operator:r,version:It(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=tn(t);if(!e.trim())return!0;let n=e.split(` `).map(e=>en(e)).join(` `);if(!n.trim())return!0;let r=n.split(/\s+/).map(e=>Kt(e)).filter(Boolean);if(r.length===0)continue;let i=!0;for(let e of r){let t=Ft(e);if(!t){i=!1;break}let[,n,,r,a,o,s]=t;if(!Qt({operator:n,version:It(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{continue}}return!1}var rn=e((()=>{Lt(),qt(),$t()})),an,on,sn=e((()=>{an=`default`,on=`global`}));function cn(e,t,n,r){var i,a,o,s,c,l,u;let d;return d=`get`in e?e.get:`lib`in e?()=>Promise.resolve(e.lib):()=>Promise.resolve(()=>{C(`Cannot get shared "${n}" from "${t}": neither "get" nor "lib" is provided in the share config.`)}),(i=e.shareConfig)!=null&&i.eager&&(a=e.treeShaking)!=null&&a.mode&&C(`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:d,loaded:e!=null&&e.loaded||`lib`in e?!0:void 0,version:(o=e.version)==null?`0`:o,scope:Array.isArray(e.scope)?e.scope:[(s=e.scope)==null?`default`:s],strategy:((c=e.strategy)==null?r:c)||`version-first`,treeShaking:e.treeShaking?{...e.treeShaking,mode:(l=e.treeShaking.mode)==null?`server-calc`:l,status:(u=e.treeShaking.status)==null?g.UNKNOWN:u,useIn:[]}:void 0}}function ln(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(cn(n,r,i,t.shareStrategy))}),e},{}),a={...e.shared};
4return 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 un(e,t){if(!e)return!1;let{status:n,mode:r}=e;return n===g.NO_USE?!1:n===g.CALCULATED?!0:r===`runtime-infer`?t?xn(e,t):!0:!1}function N(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!!nn(n(e),`<=${n(t)}`)}function dn(e,t,n,r){let i=e[t][n],a=``,o=un(r),s=function(e,t){return o?i[e].treeShaking?i[t].treeShaking?!yn(i[e].treeShaking)&&N(e,t):!1:!0:!yn(i[e])&&N(e,t)};if(o){if(a=vn(e[t][n],s),a)return{version:a,useTreesShaking:o};o=!1}return{version:vn(e[t][n],s),useTreesShaking:o}}function fn(e,t,n,r){let i=e[t][n],a=``,o=un(r),s=function(e,t){if(o){if(!i[e].treeShaking)return!0;if(!i[t].treeShaking)return!1;if(P(i[t].treeShaking))return P(i[e].treeShaking)?!!N(e,t):!0;if(P(i[e].treeShaking))return!1}return P(i[t])?P(i[e])?!!N(e,t):!0:P(i[e])?!1:N(e,t)};if(o){if(a=vn(e[t][n],s),a)return{version:a,useTreesShaking:o};o=!1}return{version:vn(e[t][n],s),useTreesShaking:o}}function pn(e){return e===`loaded-first`?fn:dn}function mn(e,t,n,r){if(!e)return;let{shareConfig:i,scope:a=an,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}=pn(o)(e,a,t,s),d={shareScopeMap:e,scope:a,pkgName:t,version:l,GlobalFederation:Ze.__FEDERATION__,shareInfo:n,resolver:()=>{let r=e[a][t][l];if(i.singleton){if(typeof c==`string`&&!nn(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?C(e):Me(e)}return{shared:r,useTreesShaking:u}}else{if(c===!1||c===`*`||nn(l,c))return{shared:r,useTreesShaking:u};let n=un(s);if(n){for(let[r,i]of Object.entries(e[a][t]))if(un(i.treeShaking,s==null?void 0:s.usedExports)&&nn(r,c))return{shared:i,useTreesShaking:n}}for(let[n,r]of Object.entries(e[a][t]))if(nn(n,c))return{shared:r,useTreesShaking:!1}}}};return(r.emit(d)||d).resolver()}}function hn(){return Ze.__FEDERATION__.__SHARE__}function gn(e){var t;let{pkgName:n,extraOptions:r,shareInfos:i}=e,a=(t=r==null?void 0:r.resolver)==null?e=>{if(!e)return;let t={};return e.forEach(e=>{t[e.version]=e}),t[vn(t,function(e,n){return!yn(t[e])&&N(e,n)})]}:t,o=e=>typeof e==`object`&&!!e&&!Array.isArray(e),s=(...e)=>{let t={};for(let n of e)if(n)for(let[e,r]of Object.entries(n)){let n=t[e];o(n)&&o(r)?t[e]=s(n,r):r!==void 0&&(t[e]=r)}return t};return s(a(i[n]),r==null?void 0:r.customShareInfo)}function _n(e,t){return t&&e.treeShaking?e.treeShaking:e}var vn,yn,bn,xn,P,F,Sn=e((()=>{T(),E(),A(),sn(),rn(),x(),vn=(e,t)=>{let n=t||function(e,t){return N(e,t)};return Object.keys(e).reduce((e,t)=>!e||n(e,t)||e===`0`?t:e,0)},yn=e=>!!e.loaded||typeof e.lib==`function`,bn=e=>!!e.loading,xn=(e,t)=>{if(!e||!t)return!1;let{usedExports:n}=e;return n?!!t.every(e=>n.includes(e)):!1},P=e=>yn(e)||bn(e),F=(e,t)=>{e.useIn||(e.useIn=[]),Pe(e.useIn,t)}}));function Cn(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}}else 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}}else if(a===``)return{pkgNameOrAlias:n.alias,expose:`.`,remote:n}}}}function wn(e,t){for(let n of e)if(t===n.name||n.alias&&t===n.alias)return n}var Tn=e((()=>{})),En,Dn,On,kn,An,jn,Mn,Nn,Pn,Fn,In,Ln,Rn,zn,Bn=e((()=>{En=`RUNTIME-001`,Dn=`RUNTIME-002`,On=`RUNTIME-003`,kn=`RUNTIME-004`,An=`RUNTIME-005`,jn=`RUNTIME-006`,Mn=`RUNTIME-007`,Nn=`RUNTIME-008`,Pn=`RUNTIME-009`,Fn=`RUNTIME-010`,In=`RUNTIME-011`,Ln=`TYPE-001`,Rn=`BUILD-001`,zn=`BUILD-002`})),I,Vn,Hn,Un=e((()=>{Bn(),I={[En]:`Failed to get remoteEntry exports.`,[Dn]:`The remote entry interface does not contain "init"`,[On]:`Failed to get manifest.`,[kn]:`Failed to locate remote.`,[An]:`Invalid loadShareSync function call from bundler runtime`,[jn]:`Invalid loadShareSync function call from runtime`,[Mn]:`Failed to get remote snapshot.`,[Nn]:`Failed to load script resources.`,[Pn]:`Please call createInstance first.`,[Fn]:`The name option cannot be changed after initialization. If you want to create a new instance with a different name, please use "createInstance" api.`,[In]:`The remoteEntry URL is missing from the remote snapshot.`},Vn={[Ln]:`Failed to generate type declaration. Execute the below cmd to reproduce and fix the error.`},Hn={[Rn]:`Failed to find expose module.`,[zn]:`PublicPath is required in prod mode.`},{...I,...Vn,...Hn}})),L=e((()=>{Bn(),ke(),Un()}));async function Wn({entry:e,remoteEntryExports:t}){return new Promise((n,i)=>{try{t?n(t):typeof FEDERATION_ALLOW_NEW_FUNCTION<`u`?Function(`callbacks`,`import("${e}")${Qn}`)([n,i]):r(()=>import(e).then(n),[],import.meta.url).catch(i)}catch(t){C(`Failed to load ESM entry from "${e}". ${t instanceof Error?t.message:String(t)}`)}})}async function Gn({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}")${Qn}`)([n,r])}catch(t){C(`Failed to load SystemJS entry from "${e}". ${t instanceof Error?t.message:String(t)}`)}})}function Kn(e,t,n){let{remoteEntryKey:r,entryExports:i}=rt(e,t);return i||C(En,I,{remoteName:e,remoteEntryUrl:n,remoteEntryKey:r}),i}async function qn({name:e,globalName:t,entry:n,loaderHook:r,getEntryUrl:i}){let{entryExports:a}=rt(e,t);if(a)return a;let o=i?i(n):n;return Te(o,{attrs:{},createScriptHook:(e,t)=>{let n=r.lifecycle.createScript.emit({url:e,attrs:t});if(n&&(n instanceof HTMLScriptElement||`script`in n||`timeout`in n))return n}}).then(()=>Kn(e,t,n),t=>{let n=t instanceof Error?t.message:String(t);C(Nn,I,{remoteName:e,resourceUrl:o},n)})}async function Jn({remoteInfo:e,remoteEntryExports:t,loaderHook:n,getEntryUrl:r}){let{entry:i,entryGlobalName:a,name:o,type:s}=e;switch(s){case`esm`:case`module`:return Wn({entry:i,remoteEntryExports:t});case`system`:return Gn({entry:i,remoteEntryExports:t});default:return qn({entry:i,globalName:a,name:o,loaderHook:n,getEntryUrl:r})}}function Yn(e){let{entry:t,name:n}=e;return ie(n,t)}async function Xn(e){let{origin:t,remoteEntryExports:n,remoteInfo:r,getEntryUrl:i,_inErrorHandling:a=!1}=e,o=Yn(r);if(n)return n;if(!k[o]){let e=t.remoteHandler.hooks.lifecycle.loadEntry,s=t.loaderHook;k[o]=e.emit({loaderHook:s,remoteInfo:r,remoteEntryExports:n}).then(e=>e||Jn({remoteInfo:r,remoteEntryExports:n,loaderHook:s,getEntryUrl:i})).catch(async e=>{let i=Yn(r),o=e instanceof Error&&e.message.includes(`ScriptExecutionError`);if(e instanceof Error&&e.message.includes(`RUNTIME-008`)&&!o&&!a){let e=await t.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:e=>Xn({...e,_inErrorHandling:!0}),origin:t,remoteInfo:r,remoteEntryExports:n,globalLoading:k,uniqueKey:i});if(e)return e}throw e})}return k[o]}function Zn(e){return{...e,entry:`entry`in e?e.entry:``,type:e.type||`global`,entryGlobalName:e.entryGlobalName||e.name,shareScope:e.shareScope||`default`}}var Qn,R=e((()=>{T(),A(),sn(),x(),L(),n(),Qn=`.then(callbacks[0]).catch(callbacks[1])`}));function $n(){return typeof FEDERATION_BUILD_IDENTIFIER<`u`?FEDERATION_BUILD_IDENTIFIER:``}var er=e((()=>{}));function tr(e,t){let n=it(),r=[t.hooks,t.remoteHandler.hooks,t.sharedHandler.hooks,t.snapshotHandler.hooks,t.loaderHook,t.bridgeHook
4];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}var nr=e((()=>{A()}));function rr(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 ir(e){var t,n,r;let i={};for(let[t,n]of Object.entries(e.shared)){var a,o,s,c;let e=n[0];e&&(i[t]={version:e.version,singleton:(a=e.shareConfig)==null?void 0:a.singleton,requiredVersion:((o=e.shareConfig)==null?void 0:o.requiredVersion)===!1?!1:(s=e.shareConfig)==null?void 0:s.requiredVersion,eager:e.eager,strictVersion:(c=e.shareConfig)==null?void 0:c.strictVersion})}return{project:{name:e.name,mfRole:((t=e.remotes)==null?void 0:t.length)>0?`host`:`unknown`},mfConfig:{name:e.name,remotes:(n=(r=e.remotes)==null?void 0:r.map(rr))==null?[]:n,shared:i}}}var ar=e((()=>{})),z=e((()=>{T(),E(),nr(),R()}));function or(e){return{resourceCategory:`sync`,share:!0,depsRemote:!0,prefetchInterface:!1,...e}}function sr(e,t){return t.map(t=>{let n=wn(e,t.nameOrAlias);return S(n,`Unable to preload ${t.nameOrAlias} as it is not included in ${!n&&re({remoteInfo:n,remotes:e})}`),{remote:n,preloadConfig:or(t)}})}function cr(e){return e?e.map(e=>e===`.`?e:e.startsWith(`./`)?e.replace(`./`,``):e):[]}function lr(e,t,n,r=!0){let{cssAssets:i,jsAssetsWithoutEntry:a,entryAssets:o}=n;if(t.options.inBrowser){if(o.forEach(n=>{let{moduleInfo:r}=n,i=t.moduleCache.get(e.name);Xn(i?{origin:t,remoteInfo:r,remoteEntryExports:i.remoteEntryExports}:{origin:t,remoteInfo:r,remoteEntryExports:void 0})}),r){let e={rel:`preload`,as:`style`};i.forEach(n=>{let{link:r,needAttach:i}=we({url:n,cb:()=>{},attrs:e,createLinkHook:(e,n)=>{let r=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:n});if(r instanceof HTMLLinkElement)return r}});i&&document.head.appendChild(r)})}else{let e={rel:`stylesheet`,type:`text/css`};i.forEach(n=>{let{link:r,needAttach:i}=we({url:n,cb:()=>{},attrs:e,createLinkHook:(e,n)=>{let r=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:n});if(r instanceof HTMLLinkElement)return r},needDeleteLink:!1});i&&document.head.appendChild(r)})}if(r){let e={rel:`preload`,as:`script`};a.forEach(n=>{let{link:r,needAttach:i}=we({url:n,cb:()=>{},attrs:e,createLinkHook:(e,n)=>{let r=t.loaderHook.lifecycle.createLink.emit({url:e,attrs:n});if(r instanceof HTMLLinkElement)return r}});i&&document.head.appendChild(r)})}else{let n={fetchpriority:`high`,type:(e==null?void 0:e.type)===`module`?`module`:`text/javascript`};a.forEach(e=>{let{script:r,needAttach:i}=Ce({url:e,cb:()=>{},attrs:n,createScriptHook:(e,n)=>{let r=t.loaderHook.lifecycle.createScript.emit({url:e,attrs:n});if(r instanceof HTMLScriptElement)return r},needDeleteScript:!0});i&&document.head.appendChild(r)})}}}var ur=e((()=>{T(),Tn(),R(),x()})),dr=e((()=>{A(),Sn(),R(),z(),ur()}));function fr(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==null?[]:n}}var pr,mr=e((()=>{T(),E(),R(),ar(),z(),x(),L(),pr=class{constructor({remoteInfo:e,host:t}){this.inited=!1,this.initing=!1,this.lib=void 0,this.remoteInfo=e,this.host=t}async getEntry(){if(this.remoteEntryExports)return this.remoteEntryExports;let e=await Xn({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports});return S(e,`remoteEntryExports is undefined \n ${re(this.remoteInfo)}`),this.remoteEntryExports=e,this.remoteEntryExports}async init(e,t,n){let r=await this.getEntry();if(this.inited)return r;if(this.initPromise)return await this.initPromise,r;this.initing=!0,this.initPromise=(async()=>{let{remoteEntryInitOptions:i,shareScope:a,initScope:o}=fr(this.remoteInfo,this.host.shareScopeMap,n),s=await this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:a,remoteEntryInitOptions:i,initScope:o,remoteInfo:this.remoteInfo,origin:this.host});(r==null?void 0:r.init)===void 0&&C(Dn,I,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName}
4,void 0,ir(this.host.options)),await r.init(s.shareScope,s.initScope,s.remoteEntryInitOptions),await this.host.hooks.lifecycle.initContainer.emit({...s,id:e,remoteSnapshot:t,remoteEntryExports:r}),this.inited=!0})();try{await this.initPromise}finally{this.initing=!1,this.initPromise=void 0}return r}async get(e,t,n,r){let{loadFactory:i=!0}=n||{loadFactory:!0},a=await this.init(e,r);this.lib=a;let o;o=await this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports:a,expose:t,moduleInfo:this.remoteInfo}),o||(o=await a.get(t)),S(o,`${Fe(this.remoteInfo)} remote don't export ${t}.`);let s=Ue(this.remoteInfo.name,t),c=this.wraperFactory(o,s);return i?await c():c}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 e instanceof Promise?async()=>{let r=await e();return n(r,t),r}:()=>{let r=e();return n(r,t),r}}}})),B,hr=e((()=>{B=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=>{t=n(...e)}),t}remove(e){this.listeners.delete(e)}removeAll(){this.listeners.clear()}}})),V,gr=e((()=>{hr(),V=class extends B{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(i):t;t=i()}return Promise.resolve(t)}}}));function _r(e,t){if(!Re(t))return!1;if(e!==t){for(let n in e)if(!(n in t))return!1}return!0}var H,vr=e((()=>{T(),E(),hr(),H=class extends B{constructor(e){super(),this.onerror=C,this.type=e}emit(e){Re(e)||C(`The data for the "${this.type}" hook should be an object.`);for(let t of this.listeners)try{let n=t(e);if(_r(e,n))e=n;else{this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);break}}catch(e){Me(e),this.onerror(e)}return e}}})),U,yr=e((()=>{T(),E(),hr(),vr(),U=class extends B{constructor(e){super(),this.onerror=C,this.type=e}emit(e){Re(e)||C(`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=>(Me(t),this.onerror(t),e),i=a=>{if(_r(e,a)){if(e=a,n<t.length)try{return Promise.resolve(t[n++](e)).then(i,r)}catch(e){return r(e)}}else this.onerror(`A plugin returned an incorrect value for the "${this.type}" type.`);return e};return Promise.resolve(i(e))}return Promise.resolve(e)}}})),br,xr=e((()=>{T(),E(),z(),br=class{constructor(e){this.registerPlugins={},this.lifecycle=e,this.lifecycleKeys=Object.keys(e)}applyPlugin(e,t){S(ze(e),`Plugin configuration is invalid.`);let n=e.name;if(S(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){S(e,`A name is required.`);let t=this.registerPlugins[e];S(t,`The plugin "${e}" is not registered.`),Object.keys(t).forEach(e=>{e!==`name`&&this.lifecycle[e].remove(t[e])})}}})),Sr=e((()=>{vr(),yr(),xr()}));function Cr(e,t){let n=Ve(t);n.url||C(In,I,{remoteName:e.name});let r=ae(t,n.url);e.type=n.type,e.entryGlobalName=n.globalName,e.entry=r,e.version=t.version,e.buildVersion=t.buildVersion}function wr(){return{name:`snapshot-plugin`,async afterResolve(e){let{remote:t,pkgNameOrAlias:n,expose:r,origin:i,remoteInfo:a,id:o}=e;if(!Ie(t)||!Le(t)){let{remoteSnapshot:s,globalSnapshot:c}=await i.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:t,id:o});Cr(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&&lr(a,i,u,!1),{...e,remoteSnapshot:s}}return e}}}var Tr=e((()=>{T(),E(),z(),ur(),x(),L()}));function Er(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 Dr(e,t,n,r,i={},a){let{value:o}=Xe(e,Fe(t)),s=a||o;if(s&&!ue(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=Er(r),a=s.remotesInfo[r];Dr(e,{name:t.name,version:a.matchedVersion},n,!1,i,void 0)}}}function Or(e,t,n,r,i){let a=[],o=[],s=[],c=new Set,l=new Set,{options:u}=e,{preloadConfig:d}=t,{depsRemote:f}=d;if(Dr(r,n,(t,n,r)=>{var i;let c;if(r)c=d;else if(Array.isArray(f)){let e=f.find(e=>e.nameOrAlias===n.name||e.nameOrAlias===n.alias);if(!e)return;c=or(e)}else if(f===!0)c=d;else return;let l=ae(t,Ve(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:[],p=cr(c.exposes);p.length&&`modules`in t&&(u=t==null||(i=t.modules)==null?void 0:i.reduce((e,t)=>
4((p==null?void 0:p.indexOf(t.moduleName))!==-1&&e.push(t),e),[]));function m(e){let n=e.map(e=>ae(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}),!at(s)&&(c.resourceCategory===`all`?(a.push(...m(r.assets.css.async)),a.push(...m(r.assets.css.sync)),o.push(...m(r.assets.js.async)),o.push(...m(r.assets.js.sync))):c.resourceCategory===`sync`&&(a.push(...m(r.assets.css.sync)),o.push(...m(r.assets.js.sync))),ot(s))}}},!0,{},i),i.shared&&i.shared.length>0){let t=(t,n)=>{let{shared:r}=mn(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 p=o.filter(e=>!c.has(e)&&!kr(`script`,e));return{cssAssets:a.filter(e=>!l.has(e)&&!kr(`link`,e)),jsAssetsWithoutEntry:p,entryAssets:s.filter(e=>!kr(`script`,e.url))}}var kr,Ar,jr=e((()=>{E(),A(),Sn(),z(),ur(),Tr(),x(),kr=(e,t)=>document.querySelector(`${e}[${e===`link`?`href`:`src`}="${t}"]`),Ar=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 Ie(i)&&Le(i)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:i.name,url:i.entry,moduleInfo:{name:r.name,entry:i.entry,type:r.type||`global`,entryGlobalName:``,shareScope:``}}]}:(Cr(r,o),Or(t,n,r,a,o))}}}}));function Mr(e,t){let n=et({name:t.name,version:t.options.version}),r=n&&`remotesInfo`in n&&n.remotesInfo&&Xe(n.remotesInfo,e.name).value;return r&&r.matchedVersion?{hostGlobalSnapshot:n,globalSnapshot:Qe(),remoteSnapshot:et({name:e.name,version:r.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:Qe(),remoteSnapshot:et({name:e.name,version:`version`in e?e.version:void 0})}}var Nr,Pr=e((()=>{T(),E(),A(),ar(),z(),gr(),yr(),xr(),Sr(),x(),L(),Nr=class{constructor(e){this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new br({beforeLoadRemoteSnapshot:new V(`beforeLoadRemoteSnapshot`),loadSnapshot:new U(`loadGlobalSnapshot`),loadRemoteSnapshot:new U(`loadRemoteSnapshot`),afterLoadSnapsh
4ot:new U(`afterLoadSnapshot`)}),this.manifestLoading=Ze.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=e,this.loaderHook=e.loaderHook}async loadRemoteSnapshotInfo({moduleInfo:e,id:t,expose:n}){let{options:r}=this.HostInstance;await this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:r,moduleInfo:e});let i=et({name:this.HostInstance.options.name,version:this.HostInstance.options.version});i||(i={version:this.HostInstance.options.version||``,remoteEntry:``,remotesInfo:{}},nt({[this.HostInstance.options.name]:i})),i&&`remotesInfo`in i&&!Xe(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(ue(c)){let t=c.remoteEntry,n=await this.getManifestJson(t,e,{}),r=tt({...e,entry:t},n);u=n,d=r}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(Ie(e)){let t=await this.getManifestJson(e.entry,e,{}),n=tt(e,t),{remoteSnapshot:r}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:t,from:`global`});u=r,d=n}else C(Mn,I,{remoteName:e.name,remoteVersion:e.version,hostName:this.HostInstance.options.name,globalSnapshot:JSON.stringify(l)},void 0,ir(this.HostInstance.options));
4return await this.hooks.lifecycle.afterLoadSnapshot.emit({id:t,host:this.HostInstance,options:r,moduleInfo:e,remoteSnapshot:u}),{remoteSnapshot:u,globalSnapshot:d}}getGlobalRemoteInfo(e){return Mr(e,this.HostInstance)}async getManifestJson(e,t,n){let r=async()=>{let n=this.manifestCache.get(e);if(n)return n;try{let t=await this.loaderHook.lifecycle.fetch.emit(e,{});(!t||!(t instanceof Response))&&(t=await fetch(e,{})),n=await t.json()}catch(r){n=await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:r,from:`runtime`,lifecycle:`afterResolve`,origin:this.HostInstance}),n||(delete this.manifestLoading[e],C(On,I,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name},`${r}`,ir(this.HostInstance.options)))}return S(n.metaData&&n.exposes&&n.shared,`"${e}" is not a valid federation manifest for remote "${t.name}". Missing required fields: ${[!n.metaData&&`metaData`,!n.exposes&&`exposes`,!n.shared&&`shared`].filter(Boolean).join(`, `)}.`),this.manifestCache.set(e,n),n},i=async()=>{let n=await r(),i=le(n,{version:e}),{remoteSnapshot:a}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,manifestJson:n,remoteSnapshot:i,manifestUrl:e,from:`manifest`});return a};return this.manifestLoading[e]||(this.manifestLoading[e]=i().then(e=>e)),this.manifestLoading[e]}}})),Fr,Ir=e((()=>{T(),sn(),Sn(),ar(),z(),gr(),vr(),yr(),xr(),Sr(),L(),Fr=class{constructor(e){this.hooks=new br({beforeRegisterShare:new H(`beforeRegisterShare`),afterResolve:new U(`afterResolve`),beforeLoadShare:new U(`beforeLoadShare`),loadShare:new V,resolveShare:new H(`resolveShare`),initContainerShareScopeMap:new H(`initContainerShareScopeMap`)}),this.host=e,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(e.options)}registerShared(e,t){let{newShareInfos:n,allShareInfos:r}=ln(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=gn({pkgName:e,extraOptions:t,shareInfos:n.options.shared});r!=null&&r.scope&&await Promise.all(r.scope.map(async e=>{await Promise.all(this.initializeSharing(e,{strategy:r.strategy}))}));let{shareInfo:i}=await this.hooks.lifecycle.beforeLoadShare.emit({pkgName:e,shareInfo:r,shared:n.options.shared,origin:n});S(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{shared:a,useTreesShaking:o}=mn(this.shareScopeMap,e,i,this.hooks.lifecycle.resolveShare)||{};if(a){let t=_n(a,o);if(t.lib)return F(t,n.options.name),t.lib;if(t.loading&&!t.loaded){let e=await t.loading;return t.loaded=!0,t.lib||(t.lib=e),F(t,n.options.name),e}else{let r=(async()=>{let e=await t.get();return F(t,n.options.name),t.loaded=!0,t.lib=e,e})();return this.setShared({pkgName:e,loaded:!1,shared:a,from:n.options.name,lib:null,loading:r,treeShaking:o?t:void 0}),r}}else{if(t!=null&&t.customShareInfo)return!1;let r=un(i.treeShaking),a=_n(i,r),o=(async()=>{let t=await a.get();a.lib=t,a.loaded=!0,F(a,n.options.name);let{shared:r,useTreesShaking:o}=mn(this.shareScopeMap,e,i,this.hooks.lifecycle.resolveShare)||{};if(r){let e=_n(r,o);e.lib=t,e.loaded=!0,r.from=i.from}return t})();return this.setShared({pkgName:e,loaded:!1,shared:i,from:n.options.name,lib:null,loading:o,treeShaking:r?a:void 0}),o}}initializeSharing(e=an,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||(a=[]);let n=t[e];if(n||(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)=>
4{var n;let{version:r,eager:i}=t;l[e]=l[e]||{};let a=l[e],o=a[r]&&_n(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(t){if(r=await n.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:t,from:`runtime`,lifecycle:`beforeLoadShare`,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=gn({pkgName:e,extraOptions:t,shareInfos:n.options.shared});r!=null&&r.scope&&r.scope.forEach(e=>{this.initializeSharing(e,{strategy:r.strategy})});let{shared:i,useTreesShaking:a}=mn(this.shareScopeMap,e,r,this.hooks.lifecycle.resolveShare)||{};if(i){if(typeof i.lib==`function`)return F(i,n.options.name),i.loaded||(i.loaded=!0,i.from===n.options.name&&(r.loaded=!0)),i.lib;if(typeof i.get==`function`){let t=i.get();if(!(t instanceof Promise))return F(i,n.options.name),this.setShared({pkgName:e,loaded:!0,from:n.options.name,lib:t,shared:i}),t}}if(r.lib)return r.loaded||(r.loaded=!0),r.lib;if(r.get){let i=r.get();return i instanceof Promise&&C((t==null?void 0:t.from)===`build`?An:jn,I,{hostName:n.options.name,sharedPkgName:e},void 0,ir(n.options)),r.lib=i,this.setShared({pkgName:e,loaded:!0,from:n.options.name,lib:r.lib,shared:r}),r.lib}C(jn,I,{hostName:n.options.name,sharedPkgName:e},void 0,ir(n.options))}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=hn(),n=e.id||e.name;n&&!t[n]&&(t[n]=this.shareScopeMap)}}})),Lr,Rr=e((()=>{T(),A(),sn(),Sn(),Tn(),R(),ar(),z(),ur(),mr(),hr(),gr(),vr(),yr(),xr(),Sr(),Pr(),x(),L(),Lr=class{constructor(e){this.hooks=new br({beforeRegisterRemote:new H(`beforeRegisterRemote`),registerRemote:new H(`registerRemote`),beforeRequest:new U(`beforeRequest`),onLoad:new V(`onLoad`),handlePreloadModule:new B(`handlePreloadModule`),errorLoadRemote:new V(`errorLoadRemote`),beforePreloadRemote:new V(`beforePreloadRemote`),generatePreloadAssets:new V(`generatePreloadAssets`),afterPreloadRemote:new V,loadEntry:new V}),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;try{let{loadFactory:r=!0}=t||{loadFactory:!0},{module:i,moduleOptions:a,remoteMatchInfo:o}=await this.getRemoteModuleAndOptions({id:e}),{pkgNameOrAlias:s,remote:c,expose:l,id:u,remoteSnapshot:d}=o,f=await i.get(u,l,t,d),p=await this.hooks.lifecycle.onLoad.emit({id:u,pkgNameOrAlias:s,expose:l,exposeModule:r?f:void 0,exposeModuleFactory:r?void 0:f,remote:c,options:a,moduleInstance:i,origin:n});return this.setIdToRemoteMap(e,o),typeof p==`function`?p:f}catch(r){let{from:i=`runtime`}=t||{from:`runtime`},a=await this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:r,from:i,lifecycle:`onLoad`,origin:n});if(!a)throw r;return a}}async preloadRemote(e){let{host:t}=this;await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:t.options,origin:t});let n=sr(t.options.remotes,e);await Promise.all(n.map(async e=>{let{remote:n}=e,r=Zn(n),{globalSnapshot:i,remoteSnapshot:a}=await t.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:n}),o=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:t,preloadOptions:e,remote:n,remoteInfo:r,globalSnapshot:i,remoteSnapshot:a});o&&lr(r,t,o)}))}registerRemotes(e,t){let{host:n}=this;
4e.forEach(e=>{this.registerRemote(e,n.options.remotes,{force:t==null?void 0:t.force})})}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=Cn(t.options.remotes,i);a||C(kn,I,{hostName:t.options.name,requestId:i},void 0,ir(t.options));let{remote:o}=a,s=Zn(o),c=await t.sharedHandler.hooks.lifecycle.afterResolve.emit({id:i,...a,options:t.options,origin:t,remoteInfo:s}),{remote:l,expose:u}=c;S(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 pr(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)))});S(!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||(e.shareScope=an),e.type||(e.type=on)};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}),oe(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=n.moduleCache.get(e.name);if(a){var t;let r=a.remoteInfo,i=r.entryGlobalName;D[i]&&((t=Object.getOwnPropertyDescriptor(D,i))!=null&&t.configurable?delete D[i]:D[i]=void 0);let o=Yn(a.remoteInfo);k[o]&&delete k[o],n.snapshotHandler.manifestCache.delete(r.entry);let s=r.buildVersion?ie(r.name,r.buildVersion):r.name,c=D.__FEDERATION__.__INSTANCES__.findIndex(e=>r.buildVersion?e.options.id===s:e.name===s);if(c!==-1){let e=D.__FEDERATION__.__INSTANCES__[c];s=e.options.id||s;let t=hn(),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={}
4,delete t[s]),i.forEach(([e,n,r,i])=>{var a;(a=t[e])==null||(a=a[n])==null||(a=a[r])==null||delete a[i]}),D.__FEDERATION__.__INSTANCES__.splice(c,1)}let{hostGlobalSnapshot:l}=Mr(e,n);if(l){let t=l&&`remotesInfo`in l&&l.remotesInfo&&Xe(l.remotesInfo,e.name).key;t&&(delete l.remotesInfo[t],Ze.__FEDERATION__.__MANIFEST_LOADING__[t]&&delete Ze.__FEDERATION__.__MANIFEST_LOADING__[t])}n.moduleCache.delete(e.name)}}catch(e){Ne.error(`removeRemote failed: ${e instanceof Error?e.message:String(e)}`)}}}})),zr,Br,Vr=e((()=>{T(),sn(),Sn(),er(),nr(),R(),z(),mr(),hr(),gr(),vr(),yr(),xr(),Sr(),Tr(),jr(),Pr(),Ir(),Rr(),x(),L(),zr=typeof FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN==`boolean`?!FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN:!0,Br=class{constructor(e){this.hooks=new br({beforeInit:new H(`beforeInit`),init:new B,beforeInitContainer:new U(`beforeInitContainer`),initContainer:new U(`initContainer`)}),this.version=`2.2.3`,this.moduleCache=new Map,this.loaderHook=new br({getModuleInfo:new B,createScript:new B,createLink:new B,fetch:new V,loadEntryError:new V,getModuleFactory:new V}),this.bridgeHook=new br({beforeBridgeRender:new B,afterBridgeRender:new B,beforeBridgeDestroy:new B,afterBridgeDestroy:new B});let t=zr?[wr(),Ar()]:[],n={id:$n(),name:e.name,plugins:t,remotes:[],shared:{},inBrowser:!0};this.name=e.name,this.options=n,this.snapshotHandler=new Nr(this),this.sharedHandler=new Fr(this),this.remoteHandler=new Lr(this),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&&C(Oe(Fn,I)),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=an,t){return this.sharedHandler.initializeSharing(e,t)}initRawContainer(e,t,n){let r=Zn({name:e,entry:t}),i=new pr({host:this,remoteInfo:r});return i.remoteEntryExports=n,this.moduleCache.set(e,i),i}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{allShareInfos:n}=ln(e,t),{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};return this.hooks.lifecycle.init.emit({origin:this,options:c}),c}registerPlugins(e){let t=tr(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})}}})),Hr=e((()=>{T(),E(),A(),rn(),Sn(),R(),z(),dr(),mr(),Vr()}));function Ur(){return typeof FEDERATION_BUILD_IDENTIFIER<`u`?FEDERATION_BUILD_IDENTIFIER:``}function Wr(e,t){let n=Ur();return D.__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))}var Gr=e((()=>{Hr()}));function Kr(e){let t=new((Je())||Br)(e);return qe(t),t}function qr(e){let t=Wr(e.name,e.version);return t?(t.initOptions(e),Jr||(Jr=t),t):(Jr=Kr(e),Jr)}var Jr,Yr=e((()=>{Gr(),Hr(),Jr=null,Ye(Br)})),Xr=e((()=>{})),W,Zr=e((()=>{(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]=`EXPECT_ARGUMENT_CLOSING_BRACE`,e[e.EMPTY_ARGUMENT=2]=`EMPTY_ARGUMENT`,e[e.MALFORMED_ARGUMENT=3]=`MALFORMED_ARGUMENT`,e[e.EXPECT_ARGUMENT_TYPE=4]=`EXPECT_ARGUMENT_TYPE`,e[e.INVALID_ARGUMENT_TYPE=5]=`INVALID_ARGUMENT_TYPE`,e[e.EXPECT_ARGUMENT_STYLE=6]=`EXPECT_ARGUMENT_STYLE`,e[e.INVALID_NUMBER_SKELETON=7]=`INVALID_NUMBER_SKELETON`,e[e.INVALID_DATE_TIME_SKELETON=8]=`INVALID_DATE_TIME_SKELETON`,e[e.EXPECT_NUMBER_SKELETON=9]=`EXPECT_NUMBER_SKELETON`,e[e.EXPECT_DATE_TIME_SKELETON=10]=`EXPECT_DATE_TIME_SKELETON`,e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]=`UNCLOSED_QUOTE_IN_ARGUMENT_STYLE`,e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]=`EXPECT_SELECT_ARGUMENT_OPTIONS`,e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]=`EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE`,e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]=`INVALID_PLURAL_ARGUMENT_OFFSET_VALUE`,e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]=`EXPECT_SELECT_ARGUMENT_SELECTOR`,e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]=`EXPECT_PLURAL_ARGUMENT_SELECTOR`,e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]=`EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT`,e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]=`EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT`,e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]=`INVALID_PLURAL_ARGUMENT_SELECTOR`,e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]=`DUPLICATE_PLURAL_ARGUMENT_SELECTOR`,e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]=`DUPLICATE_SELECT_ARGUMENT_SELECTOR`,e[e.MISSING_OTHER_CLAUSE=22]=`MISSING_OTHER_CLAUSE`,e[e.INVALID_TAG=23]=`INVALID_TAG`,e[e.INVALID_TAG_NAME=25]=`INVALID_TAG_NAME`,e[e.UNMATCHED_CLOSING_TAG=26]=`UNMATCHED_CLOSING_TAG`,e[e.UNCLOSED_TAG=27]=`UNCLOSED_TAG`})(W||(W={}))}));function Qr(e){return e.type===G.literal}function $r(e){return e.type===G.argument}function ei(e){return e.type===G.number}function ti(e){return e.type===G.date}function ni(e){return e.type===G.time}function ri(e){return e.type===G.select}function ii(e){return e.type===G.plural}function ai(e){return e.type===G.pound}function oi(e){return e.type===G.tag}function si(e){return!!(e&&typeof e==`object`&&e.type===li.number)}function ci(e){return!!(e&&typeof e==`object`&&e.type===li.dateTime)}var G,li,ui=e((()=>{(function(e){e[e.literal=0]=`literal`,e[e.argument=1]=`argument`,e[e.number=2]=`number`,e[e.date=3]=`date`,e[e.time=4]=`time`,e[e.select=5]=`select`,e[e.plural=6]=`plural`,e[e.pound=7]=`pound`,e[e.tag=8]=`tag`})(G||(G={})),(function(e){e[e.number=0]=`number`,e[e.dateTime=1]=`dateTime`})(li||(li={}))})),di,fi=e((()=>{di=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/}));function pi(e){var t={};return e.replace(mi,function(e){var n=e.length;switch(e[0]){case`G`:t.era=n===4?`long`:n===5?`narrow`:`short`;break;case`y`:t.year=n===2?`2-digit`:`numeric`;break;case`Y`:case`u`:case`U`:case`r`:throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case`q`:case`Q`:throw RangeError("`q/Q` (quarter) patterns are not supported");case`M`:case`L`:t.month=[`numeric`,`2-digit`,`short`,`long`,`narrow`][n-1];break;case`w`:case`W`:throw RangeError("`w/W` (week) patterns are not supported");case`d`:t.day=[`numeric`,`2-digit`][n-1];break;case`D`:case`F`:case`g`:throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case`E`:t.weekday=n===4?`short`:n===5?`narrow`:`short`;break;case`e`:if(n<4)throw RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-4];break;case`c`:if(n<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=[`short`,`long`,`narrow`,`short`][n-4];break;case`a`:t.hour12=!0;break;case`b`:case`B`:throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case`h`:t.hourCycle=`h12`,t.hour=[`numeric`,`2-digit`][n-1];break;case`H`:t.hourCycle=`h23`,t.hour=[`numeric`,`2-digit`][n-1];break;case`K`:t.hourCycle=`h11`,t.hour=[`numeric`,`2-digit`][n-1];break;case`k`:t.hourCycle=`h24`,t.hour=[`numeric`,`2-digit`][n-1];break;case`j`:case`J`:case`C`:throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case`m`:t.minute=[`numeric`,`2-digit`][n-1];break;case`s`:t.second=[`numeric`,`2-digit`][n-1];break;case`S`:case`A`:throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case`z`:t.timeZoneName=n<4?`short`:`long`;break;case`Z`:case`O`:case`v`:case`V`:case`X`:case`x`:throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return``}),t}var mi,hi=e((()=>{mi=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g})),gi,_i=e((()=>{gi=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i}));function vi(e){if(e.length===0)throw Error(`Number skeleton cannot be empty`);for(var t=e.split(gi).filter(function(e){return e.length>0}),n=[],r=0,i=t;r<i.length;r++){var a=i[r].split(`/`);if(a.length===0)throw Error(`Invalid number skeleton`);for(var o=a[0],s=a.slice(1),c=0,l=s;c<l.length;c++)if(l[c].length===0)throw Error(`Invalid number skeleton`);n.push({stem:o,options:s})}return n}function yi(e){return e.replace(/^(.*?)-/,``)}function bi(e){var t={};return e[e.length-1]===`r`?t.roundingPriority=`morePrecision`:e[e.length-1]===`s`&&(t.roundingPriority=`lessPrecision`),e.replace(Ei,function(e,n,r){return typeof r==`string`?r===`+`?t.minimumSignificantDigits=n.length:n[0]===`#`?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof r==`string`?r.length:0)):(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length),``}),t}function xi(e){switch(e){case`sign-auto`:return{signDisplay:`auto`};case`sign-accounting`:case`()`:return{currencySign:`accounting`};case`sign-always`:case`+!`:return{signDisplay:`always`};case`sign-accounting-always`:case`()!`:return{signDisplay:`always`,currencySign:`accounting`};case`sign-except-zero`:case`+?`:return{signDisplay:`exceptZero`};case`sign-accounting-except-zero`:case`()?`:return{signDisplay:`exceptZero`,currencySign:`accounting`};case`sign-never`:case`+_`:return{signDisplay:`never`}}}function Si(e){var t;if(e[0]===`E`&&e[1]===`E`?(t={notation:`engineering`},e=e.slice(2)):e[0]===`E`&&(t={notation:`scientific`},e=e.slice(1)),t){var n=e.slice(0,2);if(n===`+!`?(t.signDisplay=`always`,e=e.slice(2)):n===`+?`&&(t.signDisplay=`exceptZero`,e=e.slice(2)),!Oi.test(e))throw Error(`Malformed concise eng/scientific notation`);t.minimumIntegerDigits=e.length}return t}function Ci(e){return xi(e)||{}}function wi(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case`percent`:case`%`:t.style=`percent`;continue;case`%x100`:t.style=`percent`,t.scale=100;continue;case`currency`:t.style=`currency`,t.currency=i.options[0];continue;case`group-off`:case`,_`:t.useGrouping=!1;continue;case`precision-integer`:case`.`:t.maximumFractionDigits=0;continue;case`measure-unit`:case`unit`:t.style=`unit`,t.unit=yi(i.options[0]);continue;case`compact-short`:case`K`:t.notation=`compact`,t.compactDisplay=`short`;continue;case`compact-long`:case`KK`:t.notation=`compact`,t.compactDisplay=`long`;continue;case`scientific`:t=u(u(u({},t),{notation:`scientific`}),i.options.reduce(function(e,t){return u(u({},e),Ci(t))},{}));continue;case`engineering`:t=u(u(u({},t),{notation:`engineering`}),i.options.reduce(function(e,t){return u(u({},e),Ci(t))},{}));continue;case`notation-simple`:t.notation=`standard`;continue;case`unit-width-narrow`:t.currencyDisplay=`narrowSymbol`,t.unitDisplay=`narrow`;continue;case`unit-width-short`:t.currencyDisplay=`code`,t.unitDisplay=`short`;continue;case`unit-width-full-name`:t.currencyDisplay=`name`,t.unitDisplay=`long`;continue;case`unit-width-iso-code`:t.currencyDisplay=`symbol`;continue;case`scale`:t.scale=parseFloat(i.options[0]);continue;case`integer-width`:if(i.options.length>1)throw RangeError(`integer-width stems only accept a single optional option`);i.options[0].replace(Di,function(e,n,r,i,a,o){if(n)t.minimumIntegerDigits=r.length;else if(i&&a)throw Error(`We currently do not support maximum integer digits`);else if(o)throw Error(`We currently do not support exact integer digits`);return``});continue}if(Oi.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Ti.test(i.stem)){if(i.options.length>1)throw RangeError(`Fraction-precision stems only accept a single optional option`);i.stem.replace(Ti,function(e,n,r,i,a,o){return r===`*`?t.minimumFractionDigits=n.length:i&&i[0]===`#`?t.maximumFractionDigits=i.length:a&&o?(t.minimumFractionDigits=a.length,t.maximumFractionDigits=a.length+o.length):(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length),``});var a=i.options[0];a===`w`?t=u(u({},t),{trailingZeroDisplay:`stripIfInteger`}):a&&(t=u(u({},t),bi(a)));continue}if(Ei.test(i.stem)){t=u(u({},t),bi(i.stem));continue}var o=xi(i.stem);o&&(t=u(u({},t),o));var s=Si(i.stem);
vendor: 23,491 bytes, line 4
4s&&(t=u(u({},t),s))}return t}var Ti,Ei,Di,Oi,ki=e((()=>{d(),_i(),Ti=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ei=/^(@+)?(\+|#+)?[rs]?$/g,Di=/(\*)(0+)|(#+)(0+)|(0+)/g,Oi=/^(0+)$/})),Ai=e((()=>{hi(),ki()})),ji,Mi=e((()=>{ji={AX:[`H`],BQ:[`H`],CP:[`H`],CZ:[`H`],DK:[`H`],FI:[`H`],ID:[`H`],IS:[`H`],ML:[`H`],NE:[`H`],RU:[`H`],SE:[`H`],SJ:[`H`],SK:[`H`],AS:[`h`,`H`],BT:[`h`,`H`],DJ:[`h`,`H`],ER:[`h`,`H`],GH:[`h`,`H`],IN:[`h`,`H`],LS:[`h`,`H`],PG:[`h`,`H`],PW:[`h`,`H`],SO:[`h`,`H`],TO:[`h`,`H`],VU:[`h`,`H`],WS:[`h`,`H`],"001":[`H`,`h`],AL:[`h`,`H`,`hB`],TD:[`h`,`H`,`hB`],"ca-ES":[`H`,`h`,`hB`],CF:[`H`,`h`,`hB`],CM:[`H`,`h`,`hB`],"fr-CA":[`H`,`h`,`hB`],"gl-ES":[`H`,`h`,`hB`],"it-CH":[`H`,`h`,`hB`],"it-IT":[`H`,`h`,`hB`],LU:[`H`,`h`,`hB`],NP:[`H`,`h`,`hB`],PF:[`H`,`h`,`hB`],SC:[`H`,`h`,`hB`],SM:[`H`,`h`,`hB`],SN:[`H`,`h`,`hB`],TF:[`H`,`h`,`hB`],VA:[`H`,`h`,`hB`],CY:[`h`,`H`,`hb`,`hB`],GR:[`h`,`H`,`hb`,`hB`],CO:[`h`,`H`,`hB`,`hb`],DO:[`h`,`H`,`hB`,`hb`],KP:[`h`,`H`,`hB`,`hb`],KR:[`h`,`H`,`hB`,`hb`],NA:[`h`,`H`,`hB`,`hb`],PA:[`h`,`H`,`hB`,`hb`],PR:[`h`,`H`,`hB`,`hb`],VE:[`h`,`H`,`hB`,`hb`],AC:[`H`,`h`,`hb`,`hB`],AI:[`H`,`h`,`hb`,`hB`],BW:[`H`,`h`,`hb`,`hB`],BZ:[`H`,`h`,`hb`,`hB`],CC:[`H`,`h`,`hb`,`hB`],CK:[`H`,`h`,`hb`,`hB`],CX:[`H`,`h`,`hb`,`hB`],DG:[`H`,`h`,`hb`,`hB`],FK:[`H`,`h`,`hb`,`hB`],GB:[`H`,`h`,`hb`,`hB`],GG:[`H`,`h`,`hb`,`hB`],GI:[`H`,`h`,`hb`,`hB`],IE:[`H`,`h`,`hb`,`hB`],IM:[`H`,`h`,`hb`,`hB`],IO:[`H`,`h`,`hb`,`hB`],JE:[`H`,`h`,`hb`,`hB`],LT:[`H`,`h`,`hb`,`hB`],MK:[`H`,`h`,`hb`,`hB`],MN:[`H`,`h`,`hb`,`hB`],MS:[`H`,`h`,`hb`,`hB`],NF:[`H`,`h`,`hb`,`hB`],NG:[`H`,`h`,`hb`,`hB`],NR:[`H`,`h`,`hb`,`hB`],NU:[`H`,`h`,`hb`,`hB`],PN:[`H`,`h`,`hb`,`hB`],SH:[`H`,`h`,`hb`,`hB`],SX:[`H`,`h`,`hb`,`hB`],TA:[`H`,`h`,`hb`,`hB`],ZA:[`H`,`h`,`hb`,`hB`],"af-ZA":[`H`,`h`,`hB`,`hb`],AR:[`H`,`h`,`hB`,`hb`],CL:[`H`,`h`,`hB`,`hb`],CR:[`H`,`h`,`hB`,`hb`],CU:[`H`,`h`,`hB`,`hb`],EA:[`H`,`h`,`hB`,`hb`],"es-BO":[`H`,`h`,`hB`,`hb`],"es-BR":[`H`,`h`,`hB`,`hb`],"es-EC":[`H`,`h`,`hB`,`hb`],"es-ES":[`H`,`h`,`hB`,`hb`],"es-GQ":[`H`,`h`,`hB`,`hb`],"es-PE":[`H`,`h`,`hB`,`hb`],GT:[`H`,`h`,`hB`,`hb`],HN:[`H`,`h`,`hB`,`hb`],IC:[`H`,`h`,`hB`,`hb`],KG:[`H`,`h`,`hB`,`hb`],KM:[`H`,`h`,`hB`,`hb`],LK:[`H`,`h`,`hB`,`hb`],MA:[`H`,`h`,`hB`,`hb`],MX:[`H`,`h`,`hB`,`hb`],NI:[`H`,`h`,`hB`,`hb`],PY:[`H`,`h`,`hB`,`hb`],SV:[`H`,`h`,`hB`,`hb`],UY:[`H`,`h`,`hB`,`hb`],JP:[`H`,`h`,`K`],AD:[`H`,`hB`],AM:[`H`,`hB`],AO:[`H`,`hB`],AT:[`H`,`hB`],AW:[`H`,`hB`],BE:[`H`,`hB`],BF:[`H`,`hB`],BJ:[`H`,`hB`],BL:[`H`,`hB`],BR:[`H`,`hB`],CG:[`H`,`hB`],CI:[`H`,`hB`],CV:[`H`,`hB`],DE:[`H`,`hB`],EE:[`H`,`hB`],FR:[`H`,`hB`],GA:[`H`,`hB`],GF:[`H`,`hB`],GN:[`H`,`hB`],GP:[`H`,`hB`],GW:[`H`,`hB`],HR:[`H`,`hB`],IL:[`H`,`hB`],IT:[`H`,`hB`],KZ:[`H`,`hB`],MC:[`H`,`hB`],MD:[`H`,`hB`],MF:[`H`,`hB`],MQ:[`H`,`hB`],MZ:[`H`,`hB`],NC:[`H`,`hB`],NL:[`H`,`hB`],PM:[`H`,`hB`],PT:[`H`,`hB`],RE:[`H`,`hB`],RO:[`H`,`hB`],SI:[`H`,`hB`],SR:[`H`,`hB`],ST:[`H`,`hB`],TG:[`H`,`hB`],TR:[`H`,`hB`],WF:[`H`,`hB`],YT:[`H`,`hB`],BD:[`h`,`hB`,`H`],PK:[`h`,`hB`,`H`],AZ:[`H`,`hB`,`h`],BA:[`H`,`hB`,`h`],BG:[`H`,`hB`,`h`],CH:[`H`,`hB`,`h`],GE:[`H`,`hB`,`h`],LI:[`H`,`hB`,`h`],ME:[`H`,`hB`,`h`],RS:[`H`,`hB`,`h`],UA:[`H`,`hB`,`h`],UZ:[`H`,`hB`,`h`],XK:[`H`,`hB`,`h`],AG:[`h`,`hb`,`H`,`hB`],AU:[`h`,`hb`,`H`,`hB`],BB:[`h`,`hb`,`H`,`hB`],BM:[`h`,`hb`,`H`,`hB`],BS:[`h`,`hb`,`H`,`hB`],CA:[`h`,`hb`,`H`,`hB`],DM:[`h`,`hb`,`H`,`hB`],"en-001":[`h`,`hb`,`H`,`hB`],FJ:[`h`,`hb`,`H`,`hB`],FM:[`h`,`hb`,`H`,`hB`],GD:[`h`,`hb`,`H`,`hB`],GM:[`h`,`hb`,`H`,`hB`],GU:[`h`,`hb`,`H`,`hB`],GY:[`h`,`hb`,`H`,`hB`],JM:[`h`,`hb`,`H`,`hB`],KI:[`h`,`hb`,`H`,`hB`],KN:[`h`,`hb`,`H`,`hB`],KY:[`h`,`hb`,`H`,`hB`],LC:[`h`,`hb`,`H`,`hB`],LR:[`h`,`hb`,`H`,`hB`],MH:[`h`,`hb`,`H`,`hB`],MP:[`h`,`hb`,`H`,`hB`],MW:[`h`,`hb`,`H`,`hB`],NZ:[`h`,`hb`,`H`,`hB`],SB:[`h`,`hb`,`H`,`hB`],SG:[`h`,`hb`,`H`,`hB`],SL:[`h`,`hb`,`H`,`hB`],SS:[`h`,`hb`,`H`,`hB`],SZ:[`h`,`hb`,`H`,`hB`],TC:[`h`,`hb`,`H`,`hB`],TT:[`h`,`hb`,`H`,`hB`],UM:[`h`,`hb`,`H`,`hB`],US:[`h`,`hb`,`H`,`hB`],VC:[`h`,`hb`,`H`,`hB`],VG:[`h`,`hb`,`H`,`hB`],VI:[`h`,`hb`,`H`,`hB`],ZM:[`h`,`hb`,`H`,`hB`],BO:[`H`,`hB`,`h`,`hb`],EC:[`H`,`hB`,`h`,`hb`],ES:[`H`,`hB`,`h`,`hb`],GQ:[`H`,`hB`,`h`,`hb`],PE:[`H`,`hB`,`h`,`hb`],AE:[`h`,`hB`,`hb`,`H`],"ar-001":[`h`,`hB`,`hb`,`H`],BH:[`h`,`hB`,`hb`,`H`],DZ:[`h`,`hB`,`hb`,`H`],EG:[`h`,`hB`,`hb`,`H`],EH:[`h`,`hB`,`hb`,`H`],HK:[`h`,`hB`,`hb`,`H`],IQ:[`h`,`hB`,`hb`,`H`],JO:[`h`,`hB`,`hb`,`H`],KW:[`h`,`hB`,`hb`,`H`],LB:[`h`,`hB`,`hb`,`H`],LY:[`h`,`hB`,`hb`,`H`],MO:[`h`,`hB`,`hb`,`H`],MR:[`h`,`hB`,`hb`,`H`],OM:[`h`,`hB`,`hb`,`H`],PH:[`h`,`hB`,`hb`,`H`],PS:[`h`,`hB`,`hb`,`H`],QA:[`h`,`hB`,`hb`,`H`],SA:[`h`,`hB`,`hb`,`H`],SD:[`h`,`hB`,`hb`,`H`],SY:[`h`,`hB`,`hb`,`H`],TN:[`h`,`hB`,`hb`,`H`],YE:[`h`,`hB`,`hb`,`H`],AF:[`H`,`hb`,`hB`,`h`],LA:[`H`,`hb`,`hB`,`h`],CN:[`H`,`hB`,`hb`,`h`],LV:[`H`,`hB`,`hb`,`h`],TL:[`H`,`hB`,`hb`,`h`],"zu-ZA":[`H`,`hB`,`hb`,`h`],CD:[`hB`,`H`],IR:[`hB`,`H`],"hi-IN":[`hB`,`h`,`H`],"kn-IN":[`hB`,`h`,`H`],"ml-IN":[`hB`,`h`,`H`],"te-IN":[`hB`,`h`,`H`],KH:[`hB`,`h`,`H`,`hb`],"ta-IN":[`hB`,`h`,`hb`,`H`],BN:[`hb`,`hB`,`h`,`H`],MY:[`hb`,`hB`,`h`,`H`],ET:[`hB`,`hb`,`h`,`H`],"gu-IN":[`hB`,`hb`,`h`,`H`],"mr-IN":[`hB`,`hb`,`h`,`H`],"pa-IN":[`hB`,`hb`,`h`,`H`],TW:[`hB`,`hb`,`h`,`H`],KE:[`hB`,`hb`,`H`,`h`],MM:[`hB`,`hb`,`H`,`h`],TZ:[`hB`,`hb`,`H`,`h`],UG:[`hB`,`hb`,`H`,`h`]}}));function Ni(e,t){for(var n=``,r=0;r<e.length;r++){var i=e.charAt(r);if(i===`j`){for(var a=0;r+1<e.length&&e.charAt(r+1)===i;)a++,r++;var o=1+(a&1),s=a<2?1:3+(a>>1),c=`a`,l=Pi(t);for((l==`H`||l==`k`)&&(s=0);s-- >0;)n+=c;for(;o-- >0;)n=l+n}else i===`J`?n+=`H`:n+=i}return n}function Pi(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case`h24`:return`k`;case`h23`:return`H`;case`h12`:return`h`;case`h11`:return`K`;default:throw Error(`Invalid hourCycle`)}var n=e.language,r;return n!==`root`&&(r=e.maximize().region),(ji[r||``]||ji[n||``]||ji[`${n}-001`]||ji[`001`])[0]}var Fi=e((()=>{Mi()}));function K(e,t){return{start:e,end:t}}function Ii(e,t){return new RegExp(e,t)}function Li(e){return e>=97&&e<=122||e>=65&&e<=90}function Ri(e){return Li(e)||e===47}function zi(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Bi(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Vi(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}var Hi,Ui,Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi,$i,ea,ta,na,ra,ia,aa,oa,sa,ca=e((()=>{d(),Zr(),ui(),fi(),Ai(),Fi(),Ui=RegExp(`^${di.source}*`),Wi=RegExp(`${di.source}*\$`),Gi=!!String.prototype.startsWith,Ki=!!String.fromCodePoint,qi=!!Object.fromEntries,Ji=!!String.prototype.codePointAt,Yi=!!String.prototype.trimStart,Xi=!!String.prototype.trimEnd,Zi=Number.isSafeInteger?Number.isSafeInteger:function(e){return typeof e==`number`&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Qi=!0;try{Qi=((Hi=Ii(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`).exec(`a`))==null?void 0:Hi[0])===`a`}catch{Qi=!1}$i=Gi?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},ea=Ki?String.fromCodePoint:function(){for(var e=[...arguments],t=``,n=e.length,r=0,i;n>r;){if(i=e[r++],i>1114111)throw RangeError(i+` is not a valid code point`);t+=i<65536?String.fromCharCode(i):String.fromCharCode(((i-=65536)>>10)+55296,i%1024+56320)}return t},ta=qi?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],a=i[0];t[a]=i[1]}return t},na=Ji?function(e,t){return e.codePointAt(t)}:function(e,t){var n=e.length;if(!(t<0||t>=n)){var r=e.charCodeAt(t),i;return r<55296||r>56319||t+1===n||(i=e.charCodeAt(t+1))<56320||i>57343?r:(r-55296<<10)+(i-56320)+65536}},ra=Yi?function(e){return e.trimStart()}:function(e){return e.replace(Ui,``)},ia=Xi?function(e){return e.trimEnd()}:function(e){return e.replace(Wi,``)},Qi?(oa=Ii(`([^\\p{White_Space}\\p{Pattern_Syntax}]*)`,`yu`),aa=function(e,t){var n;return oa.lastIndex=t,(n=oa.exec(e)[1])==null?``:n}):aa=function(e,t){for(var n=[];;){var r=na(e,t);if(r===void 0||Bi(r)||Vi(r))break;n.push(r),t+=r>=65536?2:1}return ea.apply(void 0,n)},sa=function(){function e(e,t){t===void 0&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error(`parser can only be used once`);return this.parseMessage(0,``,!1)},e.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i=this.char();if(i===123){var a=this.parseArgument(e,n);if(a.err)return a;r.push(a.val)}else if(i===125&&e>0)break;else if(i===35&&(t===`plural`||t===`selectordinal`)){var o=this.clonePosition();this.bump(),r.push({type:G.pound,location:K(o,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(W.UNMATCHED_CLOSING_TAG,K(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&Li(this.peek()||0)){var a=this.parseTag(e,t);if(a.err)return a;r.push(a.val)}else{var a=this.parseLiteral(e,t);if(a.err)return a;r.push(a.val)}}return{val:r,err:null}},e.prototype.parseTag=function(e,t){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf(`/>`))return{val:{type:G.literal,value:`<${r}/>`,location:K(n,this.clonePosition())},err:null};if(this.bumpIf(`>`)){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;var a=i.val,o=this.clonePosition();if(this.bumpIf(`</`)){if(this.isEOF()||!Li(this.char()))return this.error(W.INVALID_TAG,K(o,this.clonePosition()));var s=this.clonePosition();return r===this.parseTagName()?(this.bumpSpace(),this.bumpIf(`>`)?{val:{type:G.tag,value:r,children:a,location:K(n,this.clonePosition())},err:null}:this.error(W.INVALID_TAG,K(o,this.clonePosition()))):this.error(W.UNMATCHED_CLOSING_TAG,K(s,this.clonePosition()))}else return this.error(W.UNCLOSED_TAG,K(n,this.clonePosition()))}else return this.error(W.INVALID_TAG,K(n,this.clonePosition()))},e.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&zi(this.char());)this.bump();return this.message.slice(e,this.offset())},e.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r=``;;){var i=this.tryParseQuote(t);if(i){r+=i;continue}var a=this.tryParseUnquoted(e,t);if(a){r+=a;continue}var o=this.tryParseLeftAngleBracket();if(o){r+=o;continue}break}var s=K(n,this.clonePosition());return{val:{type:G.literal,value:r,location:s},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Ri(this.peek()||0))?(this.bump(),`<`):null},e.prototype.tryParseQuote=function(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),`'`;case 123:case 60:case 62:case 125:break;case 35:if(e===`plural`||e===`selectordinal`)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(n);this.bump()}return ea.apply(void 0,t)},e.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(t===`plural`||t===`selectordinal`)||n===125&&e>0?null:(this.bump(),ea(n))},e.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(W.EXPECT_ARGUMENT_CLOSING_BRACE,K(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(W.EMPTY_ARGUMENT,K(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(W.MALFORMED_ARGUMENT,K(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(W.EXPECT_ARGUMENT_CLOSING_BRACE,K(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:G.argument,value:r,location:K(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(W.EXPECT_ARGUMENT_CLOSING_BRACE,K(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(W.MALFORMED_ARGUMENT,K(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=aa(this.message,t),r=t+n.length;return this.bumpTo(r),{value:n,location:K(e,this.clonePosition())}},e.prototype.parseArgumentOptions=function(e,t,n,r){var i,a=this.clonePosition(),o=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(o){case``:return this.error(W.EXPECT_ARGUMENT_TYPE,K(a,s));case`number`:case`date`:case`time`:this.bumpSpace();var c=null;if(this.bumpIf(`,`)){this.bumpSpace();var l=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var f=ia(d.val);if(f.length===0)return this.error(W.EXPECT_ARGUMENT_STYLE,K(this.clonePosition(),this.clonePosition()));c={style:f,styleLocation:K(l,this.clonePosition())}}var p=this.tryParseArgumentClose(r);if(p.err)return p;var m=K(r,this.clonePosition());if(c&&$i(c==null?void 0:c.style,`::`,0)){var h=ra(c.style.slice(2));if(o===`number`){var d=this.parseNumberSkeletonFromString(h,c.styleLocation);return d.err?d:{val:{type:G.number,value:n,location:m,style:d.val},err:null}}else{if(h.length===0)return this.error(W.EXPECT_DATE_TIME_SKELETON,m);var g=h;this.locale&&(g=Ni(h,this.locale));var f={type:li.dateTime,pattern:g,location:c.styleLocation,parsedOptions:this.shouldParseSkeletons?pi(g):{}};return{val:{type:o===`date`?G.date:G.time,value:n,location:m,style:f},err:null}}}return{val:{type:o===`number`?G.number:o===`date`?G.date:G.time,value:n,location:m,style:(i=c==null?void 0:c.style)==null?null:i},err:null};case`plural`:case`selectordinal`:case`select`:var _=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(`,`))return this.error(W.EXPECT_SELECT_ARGUMENT_OPTIONS,K(_,u({},_)));this.bumpSpace();var v=this.parseIdentifierIfPossible(),y=0;if(o!==`select`&&v.value===`offset`){if(!this.bumpIf(`:`))return this.error(W.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,K(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(W.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,W.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),v=this.parseIdentifierIfPossible(),y=d.val}var b=this.tryParsePluralOrSelectOptions(e,o,t,v);if(b.err)return b;var p=this.tryParseArgumentClose(r);if(p.err)return p;var ee=K(r,this.clonePosition());return o===`select`?{val:{type:G.select,value:n,options:ta(b.val),location:ee},err:null}:{val:{type:G.plural,value:n,options:ta(b.val),offset:y,pluralType:o===`plural`?`cardinal`:`ordinal`,location:ee},err:null};default:return this.error(W.INVALID_ARGUMENT_TYPE,K(a,s))}},e.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(W.EXPECT_ARGUMENT_CLOSING_BRACE,K(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil(`'`))return this.error(W.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,K(n,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(e>0)--e;else return{val:this.message.slice(t.offset,this.offset()),err:null};break;default:this.bump();break}return{val:this.message.slice(t.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=vi(e)}catch{return this.error(W.INVALID_NUMBER_SKELETON,t)}return{val:{type:li.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?wi(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i,a=!1,o=[],s=new Set,c=r.value,l=r.location;;){if(c.length===0){var u=this.clonePosition();if(t!==`select`&&this.bumpIf(`=`)){var d=this.tryParseDecimalInteger(W.EXPECT_PLURAL_ARGUMENT_SELECTOR,W.INVALID_PLURAL_ARGUMENT_SELECTOR);if(d.err)return d;l=K(u,this.clonePosition()),c=this.message.slice(u.offset,this.offset())}else break}if(s.has(c))return this.error(t===`select`?W.DUPLICATE_SELECT_ARGUMENT_SELECTOR:W.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);c===`other`&&(a=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf(`{`))return this.error(t===`select`?W.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:W.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,K(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(e+1,t,n);if(p.err)return p;var m=this.tryParseArgumentClose(f);if(m.err)return m;o.push([c,{value:p.val,location:K(f,this.clonePosition())}]),s.add(c),this.bumpSpace(),i=this.parseIdentifierIfPossible(),c=i.value,l=i.location}return o.length===0?this.error(t===`select`?W.EXPECT_SELECT_ARGUMENT_SELECTOR:W.EXPECT_PLURAL_ARGUMENT_SELECTOR,K(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(W.MISSING_OTHER_CLAUSE,K(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf(`+`)||this.bumpIf(`-`)&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)i=!0,a=a*10+(o-48),this.bump();else break}var s=K(r,this.clonePosition());return i?(a*=n,Zi(a)?{val:a,err:null}:this.error(t,s)):this.error(e,s)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error(`out of bound`);var t=na(this.message,e);if(t===void 0)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t},e.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},e.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},e.prototype.bumpIf=function(e){if($i(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(e){var t=this.offset(),n=this.message.indexOf(e,t);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Bi(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),n=this.message.charCodeAt(t+(e>=65536?2:1));return n==null?null:n},e}()}));function la(e){e.forEach(function(e){if(delete e.location,ri(e)||ii(e))for(var t in e.options)delete e.options[t].location,la(e.options[t].value);else ei(e)&&si(e.style)||(ti(e)||ni(e))&&ci(e.style)?delete e.style.location:oi(e)&&la(e.children)})}function ua(e,t){t===void 0&&(t={}),t=u({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new sa(e,t).parse();if(n.err){var r=SyntaxError(W[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||la(n.val),n.val}var da=e((()=>{d(),Zr(),ca(),ui(),ui()}));function q(e,t){var n=t&&t.cache?t.cache:xa,r=t&&t.serializer?t.serializer:ba;return(t&&t.strategy?t.strategy:ga)(e,{cache:n,serializer:r})}function fa(e){return e==null||typeof e==`number`||typeof e==`boolean`}function pa(e,t,n,r){var i=fa(r)?r:n(r),a=t.get(i);return a===void 0&&(a=e.call(this,r),t.set(i,a)),a}function ma(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),a=t.get(i);return a===void 0&&(a=e.apply(this,r),t.set(i,a)),a}function ha(e,t,n,r,i){return n.bind(t,e,r,i)}function ga(e,t){var n=e.length===1?pa:ma;
4return ha(e,this,n,t.cache.create(),t.serializer)}function _a(e,t){return ha(e,this,ma,t.cache.create(),t.serializer)}function va(e,t){return ha(e,this,pa,t.cache.create(),t.serializer)}function ya(){this.cache=Object.create(null)}var ba,xa,J,Sa=e((()=>{ba=function(){return JSON.stringify(arguments)},ya.prototype.get=function(e){return this.cache[e]},ya.prototype.set=function(e,t){this.cache[e]=t},xa={create:function(){return new ya}},J={variadic:_a,monadic:va}})),Y,X,Ca,wa,Ta,Ea,Da,Oa,Z=e((()=>{d(),(function(e){e.FORMAT_ERROR=`FORMAT_ERROR`,e.UNSUPPORTED_FORMATTER=`UNSUPPORTED_FORMATTER`,e.INVALID_CONFIG=`INVALID_CONFIG`,e.MISSING_DATA=`MISSING_DATA`,e.MISSING_TRANSLATION=`MISSING_TRANSLATION`})(Y||(Y={})),X=function(e){o(t,e);function t(n,r,i){var a=this,o=i?i instanceof Error?i:Error(String(i)):void 0;return a=e.call(this,`[@formatjs/intl Error ${n}] ${r} 5${o?` 6${o.message} 7${o.stack}`:``}`)||this,a.code=n,typeof Error.captureStackTrace==`function`&&Error.captureStackTrace(a,t),a}return t}(Error),Ca=function(e){o(t,e);function t(t,n){return e.call(this,Y.UNSUPPORTED_FORMATTER,t,n)||this}return t}(X),wa=function(e){o(t,e);function t(t,n){return e.call(this,Y.INVALID_CONFIG,t,n)||this}return t}(X),Ta=function(e){o(t,e);function t(t,n){return e.call(this,Y.MISSING_DATA,t,n)||this}return t}(X),Ea=function(e){o(t,e);function t(t,n,r){return e.call(this,Y.FORMAT_ERROR,`${t} 8Locale: ${n} 9`,r)||this}return t}(X),Da=function(e){o(t,e);function t(t,n,r,i){var a=e.call(this,`${t} 10MessageID: ${r==null?void 0:r.id} 11Default Message: ${r==null?void 0:r.defaultMessage} 12Description: ${r==null?void 0:r.description} 13`,n,i)||this;return a.descriptor=r,a}return t}(Ea),Oa=function(e){o(t,e);function t(t,n){var r=e.call(this,Y.MISSING_TRANSLATION,`Missing message: "${t.id}" for locale "${n}", using ${t.defaultMessage?`default message (${typeof t.defaultMessage==`string`?t.defaultMessage:t.defaultMessage.map(function(e){var t;return(t=e.value)==null?JSON.stringify(e):t}).join()})`:`id`} as fallback.`)||this;return r.descriptor=t,r}return t}(X)}));function ka(e,t,n){return n===void 0&&(n={}),t.reduce(function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t},{})}function Aa(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Q(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function ja(e){e===void 0&&(e=Aa());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,i=q(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,l([void 0],t,!1)))},{cache:Q(e.dateTime),strategy:J.variadic}),a=q(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,l([void 0],t,!1)))},{cache:Q(e.number),strategy:J.variadic}),o=q(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,l([void 0],t,!1)))},{cache:Q(e.pluralRules),strategy:J.variadic});return{getDateTimeFormat:i,getNumberFormat:a,getMessageFormat:q(function(e,t,n,r){return new c(e,t,n,u({formatters:{getNumberFormat:a,getDateTimeFormat:i,getPluralRules:o}},r||{}))},{cache:Q(e.message),strategy:J.variadic}),getRelativeTimeFormat:q(function(){var e=[...arguments];return new(t.bind.apply(t,l([void 0],e,!1)))},{cache:Q(e.relativeTime),strategy:J.variadic}),getPluralRules:o,getListFormat:q(function(){var e=[...arguments];return new(n.bind.apply(n,l([void 0],e,!1)))},{cache:Q(e.list),strategy:J.variadic}),getDisplayNames:q(function(){var e=[...arguments];return new(r.bind.apply(r,l([void 0],e,!1)))},{cache:Q(e.displayNames),strategy:J.variadic})}}function Ma(e,t,n,r){var i=e&&e[t],a;if(i&&(a=i[n]),a)return a;r(new Ca(`No ${t} format named: ${n}`))}var Na,Pa,Fa,$=e((()=>{d(),s(),Sa(),Z(),Na=function(e){},Pa=function(e){},Fa={formats:{},messages:{},timeZone:void 0,defaultLocale:`en`,defaultFormats:{},fallbackOnEmptyString:!0,onError:Na,onWarn:Pa}})),Ia=e((()=>{})),La=e((()=>{})),Ra,za,Ba,Va,Ha=e((()=>{Ra=60,za=60,Ba=1e3,Va=Ba*za,Va*Ra})),Ua=e((()=>{})),Wa=e((()=>{})),Ga=e((()=>{})),Ka=e((()=>{}));function qa(e){return e.slice(e.indexOf(`-`)+1)}var Ja,Ya=e((()=>{Ja=`angle-degree.area-acre.area-hectare.concentr-percent.digital-bit.digital-byte.digital-gigabit.digital-gigabyte.digital-kilobit.digital-kilobyte.digital-megabit.digital-megabyte.digital-petabyte.digital-terabit.digital-terabyte.duration-day.duration-hour.duration-millisecond.duration-minute.duration-month.duration-second.duration-week.duration-year.length-centimeter.length-foot.length-inch.length-kilometer.length-meter.length-mile-scandinavian.length-mile.length-millimeter.length-yard.mass-gram.mass-kilogram.mass-ounce.mass-pound.mass-stone.temperature-celsius.temperature-fahrenheit.volume-fluid-ounce.volume-gallon.volume-liter.volume-milliliter`.split(`.`),Ja.map(qa)})),Xa=e((()=>{})),Za=e((()=>{})),Qa=e((()=>{}));function $a(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}var eo=e((()=>{})),to=e((()=>{})),no=e((()=>{})),ro=e((()=>{})),io=e((()=>{})),ao=e((()=>{})),oo=e((()=>{})),so=e((()=>{})),co=e((()=>{})),lo=e((()=>{})),uo=e((()=>{})),fo=e((()=>{})),po=e((()=>{})),mo=e((()=>{})),ho=e((()=>{})),go,_o=e((()=>{(function(e){e.startRange=`startRange`,e.shared=`shared`,e.endRange=`endRange`})(go||(go={}))})),vo=e((()=>{})),yo=e((()=>{})),bo=e((()=>{})),xo=e((()=>{})),So=e((()=>{Ia(),La(),Ua(),Wa(),Ga(),Ka(),Ya(),Xa(),Za(),Qa(),ao(),to(),oo(),co(),io(),fo(),so(),uo(),lo(),ro(),no(),po(),mo(),ho(),_o(),vo(),yo(),bo(),xo(),eo(),Ha()}));function Co(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=u({timeZone:t},e[r]),n},{})}function wo(e,t){return Object.keys(u(u({},e),t)).reduce(function(n,r){return n[r]=u(u({},e[r]||{}),t[r]||{}),n},{})}function To(e,t){if(!t)return e;var n=c.formats;return u(u(u({},n),e),{date:wo(Co(n.date,t),Co(e.date||{}
13,t)),time:wo(Co(n.time,t),Co(e.time||{},t))})}var Eo,Do=e((()=>{d(),So(),s(),Z(),da(),Eo=function(e,t,n,r,i){var a=e.locale,o=e.formats,s=e.messages,c=e.defaultLocale,l=e.defaultFormats,d=e.fallbackOnEmptyString,f=e.onError,p=e.timeZone,m=e.defaultRichTextElements;n===void 0&&(n={id:``});var h=n.id,g=n.defaultMessage;$a(!!h,`[@formatjs/intl] An \`id\` must be provided to format a message. You can either: 141. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin) 15or [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR 162. Configure your \`eslint\` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id) 17to autofix this issue`);var _=String(h),v=s&&Object.prototype.hasOwnProperty.call(s,_)&&s[_];if(Array.isArray(v)&&v.length===1&&v[0].type===G.literal)return v[0].value;if(!r&&v&&typeof v==`string`&&!m)return v.replace(/'\{(.*?)\}'/gi,`{$1}`);if(r=u(u({},m),r||{}),o=To(o,p),l=To(l,p),!v){if(d===!1&&v===``)return v;if((!g||a&&a.toLowerCase()!==c.toLowerCase())&&f(new Oa(n,a)),g)try{var y=t.getMessageFormat(g,c,l,i);return y.format(r)}catch(e){return f(new Da(`Error formatting default message for: "${_}", rendering default message verbatim`,a,n,e)),typeof g==`string`?g:_}return _}try{var y=t.getMessageFormat(v,a,o,u({formatters:t},i||{}));return y.format(r)}catch(e){f(new Da(`Error formatting message: "${_}", using ${g?`default message`:`id`} as fallback.`,a,n,e))}if(g)try{var y=t.getMessageFormat(g,c,l,i);return y.format(r)}catch(e){f(new Da(`Error formatting the default message for: "${_}", rendering message verbatim`,a,n,e))}return typeof v==`string`?v:typeof g==`string`?g:_}}));function Oo(e,t,n,r){var i=e.locale,a=e.formats,o=e.onError,s=e.timeZone;r===void 0&&(r={});var c=r.format,l=u(u({},s&&{timeZone:s}),c&&Ma(a,t,c,o)),d=ka(r,Po,l);return t===`time`&&!d.hour&&!d.minute&&!d.second&&!d.timeStyle&&!d.dateStyle&&(d=u(u({},d),{hour:`numeric`,minute:`numeric`})),n(i,d)}function ko(e,t){var n=[...arguments].slice(2),r=n[0],i=n[1],a=i===void 0?{}:i,o=typeof r==`string`?new Date(r||0):r;try{return Oo(e,`date`,t,a).format(o)}catch(t){e.onError(new X(Y.FORMAT_ERROR,`Error formatting date.`,t))}return String(o)}function Ao(e,t){var n=[...arguments].slice(2),r=n[0],i=n[1],a=i===void 0?{}:i,o=typeof r==`string`?new Date(r||0):r;try{return Oo(e,`time`,t,a).format(o)}catch(t){e.onError(new X(Y.FORMAT_ERROR,`Error formatting time.`,t))}return String(o)}function jo(e,t){var n=[...arguments].slice(2),r=n[0],i=n[1],a=n[2],o=a===void 0?{}:a,s=e.timeZone,c=e.locale,l=e.onError,u=ka(o,Po,s?{timeZone:s}:{});try{return t(c,u).formatRange(r,i)}catch(e){l(new X(Y.FORMAT_ERROR,`Error formatting date time range.`,e))}return String(r)}function Mo(e,t){var n=[...arguments].slice(2),r=n[0],i=n[1],a=i===void 0?{}:i,o=typeof r==`string`?new Date(r||0):r;try{return Oo(e,`date`,t,a).formatToParts(o)}catch(t){e.onError(new X(Y.FORMAT_ERROR,`Error formatting date.`,t))}return[]}function No(e,t){var n=[...arguments].slice(2),r=n[0],i=n[1],a=i===void 0?{}:i,o=typeof r==`string`?new Date(r||0):r;try{return Oo(e,`time`,t,a).formatToParts(o)}catch(t){e.onError(new X(Y.FORMAT_ERROR,`Error formatting time.`,t))}return[]}var Po,Fo=e((()=>{d(),$(),Z(),Po=[`formatMatcher`,`timeZone`,`hour12`,`weekday`,`era`,`year`,`month`,`day`,`hour`,`minute`,`second`,`timeZoneName`,`hourCycle`,`dateStyle`,`timeStyle`,`calendar`,`numberingSystem`,`fractionalSecondDigits`]}));function Io(e,t,n,r){var a=e.locale,o=e.onError;Intl.DisplayNames||o(new i(`Intl.DisplayNames is not available in this environment. 18Try polyfilling it using "@formatjs/intl-displaynames" 19`,f.MISSING_INTL_API));var s=ka(r,Lo);try{return t(a,s).of(n)}catch(e){o(new X(Y.FORMAT_ERROR,`Error formatting display name.`,e))}}var Lo,Ro=e((()=>{$(),s(),Z(),Lo=[`style`,`type`,`fallback`]}));function zo(e){return`${Uo}_${e}_${Uo}`}function Bo(e,t,n,r){r===void 0&&(r={});var i=Vo(e,t,n,r).reduce(function(e,t){var n=t.value;return typeof n==`string`&&typeof e[e.length-1]==`string`?e[e.length-1]+=n:e.push(n),e},[]);return i.length===1?i[0]:i}function Vo(e,t,n,r){var a=e.locale,o=e.onError;r===void 0&&(r={}),Intl.ListFormat||o(new i(`Intl.ListFormat is not available in this environment. 20Try polyfilling it using "@formatjs/intl-listformat" 21`,f.MISSING_INTL_API));var s=ka(r,Ho);try{var c={},l=n.map(function(e,t){if(typeof e==`object`){var n=zo(t);return c[n]=e,n}return String(e)});return t(a,s).formatToParts(l).map(function(e){return e.type===`literal`?e:u(u({},e),{value:c[e.value]||e.value})})}catch(e){o(new X(Y.FORMAT_ERROR,`Error formatting list.`,e))}return n}var Ho,Uo,Wo=e((()=>{d(),$(),s(),Z(),Ho=[`type`,`style`],Uo=Date.now()}));function Go(e,t,n,r){var a=e.locale,o=e.onError;r===void 0&&(r={}),Intl.PluralRules||o(new i(`Intl.PluralRules is not available in this environment. 22Try polyfilling it using "@formatjs/intl-pluralrules" 23`,f.MISSING_INTL_API));var s=ka(r,Ko);try{return t(a,s).select(n)}catch(e){o(new Ea(`Error formatting plural.`,a,e))}return`other`}var Ko,qo=e((()=>{$(),Z(),s(),Ko=[`type`]}));function Jo(e,t,n){var r=e.locale,i=e.formats,a=e.onError;n===void 0&&(n={});var o=n.format,s=!!o&&Ma(i,`relative`,o,a)||{};return t(r,ka(n,Xo,s))}function Yo(e,t,n,r,a){a===void 0&&(a={}),r||(r=`second`),Intl.RelativeTimeFormat||e.onError(new i(`Intl.RelativeTimeFormat is not available in this environment. 24Try polyfilling it using "@formatjs/intl-relativetimeformat" 25`,f.MISSING_INTL_API));try{return Jo(e,t,a).format(n,r)}catch(t){e.onError(new Ea(`Error formatting relative time.`,e.locale,t))}return String(n)}var Xo,Zo=e((()=>{$(),s(),Z(),Xo=[`numeric`,`style`]}));
25function Qo(e,t,n){var r=e.locale,i=e.formats,a=e.onError;n===void 0&&(n={});var o=n.format,s=o&&Ma(i,`number`,o,a)||{};return t(r,ka(n,ts,s))}function $o(e,t,n,r){r===void 0&&(r={});try{return Qo(e,t,r).format(n)}catch(t){e.onError(new X(Y.FORMAT_ERROR,`Error formatting number.`,t))}return String(n)}function es(e,t,n,r){r===void 0&&(r={});try{return Qo(e,t,r).formatToParts(n)}catch(t){e.onError(new X(Y.FORMAT_ERROR,`Error formatting number.`,t))}return[]}var ts,ns=e((()=>{$(),Z(),ts=[`style`,`currency`,`currencyDisplay`,`unit`,`unitDisplay`,`useGrouping`,`minimumIntegerDigits`,`minimumFractionDigits`,`maximumFractionDigits`,`minimumSignificantDigits`,`maximumSignificantDigits`,`compactDisplay`,`currencyDisplay`,`currencySign`,`notation`,`signDisplay`,`unit`,`unitDisplay`,`numberingSystem`]}));function rs(e){return typeof(e?e[Object.keys(e)[0]]:void 0)==`string`}function is(e){e.onWarn&&e.defaultRichTextElements&&rs(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. 26Please consider using "@formatjs/cli" to pre-compile your messages for performance. 27For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function as(e,t){var n=ja(t),r=u(u({},Fa),e),i=r.locale,a=r.defaultLocale,o=r.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&o?o(new Ta(`Missing locale data for locale: "${i}" in Intl.NumberFormat. Using default locale: "${a}" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details`)):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&o&&o(new Ta(`Missing locale data for locale: "${i}" in Intl.DateTimeFormat. Using default locale: "${a}" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details`)):(o&&o(new wa(`"locale" was not configured, using "${a}" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details`)),r.locale=r.defaultLocale||`en`),is(r),u(u({},r),{formatters:n,formatNumber:$o.bind(null,r,n.getNumberFormat),formatNumberToParts:es.bind(null,r,n.getNumberFormat),formatRelativeTime:Yo.bind(null,r,n.getRelativeTimeFormat),formatDate:ko.bind(null,r,n.getDateTimeFormat),formatDateToParts:Mo.bind(null,r,n.getDateTimeFormat),formatTime:Ao.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:jo.bind(null,r,n.getDateTimeFormat),formatTimeToParts:No.bind(null,r,n.getDateTimeFormat),formatPlural:Go.bind(null,r,n.getPluralRules),formatMessage:Eo.bind(null,r,n),$t:Eo.bind(null,r,n),formatList:Bo.bind(null,r,n.getListFormat),formatListToParts:Vo.bind(null,r,n.getListFormat),formatDisplayName:Io.bind(null,r,n.getDisplayNames)})}var os=e((()=>{d(),$(),Z(),ns(),Zo(),Fo(),qo(),Do(),Wo(),Ro()}));function ss(e){return e}var cs=e((()=>{Xr(),$(),Z(),os()}));export{qr as C,ni as S,si as _,Sa as a,ri as b,da as c,pi as d,$r as f,ei as g,Qr as h,Aa as i,ua as l,ci as m,cs as n,q as o,ti as p,as as r,J as s,ss as t,Ai as u,ii as v,Yr as w,oi as x,ai as y}; 28//# sourceMappingURL=https://static-daily.okg.com/crash/okfe/all-block-chain/assets/vendor-CEAkPfMH.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.