@appshell/react-shell 1.0.0-alpha.14 → 1.0.0-alpha.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"src_bootstrap_tsx.js","mappings":";;;;;;;;;;;;;;;;;;;AAA0C;AAGd;AACJ;AAExB,iEAAeA,qDAAY,E;;;;;;;;;;;;;;;ACDkB;AAE7C,MAAMK,SAAS,GAAG,UAAU;;AAE5B;AACA,IAAIC,WAAW,GAAG,KAAK;AACvB,MAAMC,gBAAgB,GAAG,IAAIC,GAAG,CAAS,CAAC;AAE1C,MAAMC,iBAAiB,GAAGA,CAAA,KAAM;EAC9B,IAAIH,WAAW,EAAE;EACjBA,WAAW,GAAG,IAAI;;EAElB;EACA;EACA;EACA,IAAIL,gFAAW,CAAC,CAAC,EAAE;EAEnBC,yEAAI,CAAC;IAAEQ,IAAI,EAAEL,SAAS;IAAEM,OAAO,EAAE;EAAG,CAAC,CAAC;AACxC,CAAC;AAED,iEAAe,OACbC,KAAa,EACbC,MAAc,EACdC,cAAsB,EACtBC,UAAU,GAAG,SAAS,KACnB;EACH;EACAC,OAAO,CAACC,KAAK,CACX,wCAAwCL,KAAK,aAAaC,MAAM,iBAAiBE,UAAU,IAC7F,CAAC;EAEDN,iBAAiB,CAAC,CAAC;;EAEnB;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA,IAAI,CAACF,gBAAgB,CAACW,GAAG,CAACN,KAAK,CAAC,EAAE;IAChCL,gBAAgB,CAACY,GAAG,CAACP,KAAK,CAAC;IAC3BR,oFAAe,CAAC,CAAC;MAAEM,IAAI,EAAEE,KAAK;MAAEQ,KAAK,EAAEN;IAAe,CAAC,CAAC,CAAC;EAC3D;;EAEA;EACA,MAAMO,OAAO,GAAGR,MAAM,CAACS,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC;EAC3C,MAAMC,MAAM,GAAG,MAAMpB,+EAAU,CAA0B,GAAGS,KAAK,IAAIS,OAAO,EAAE,CAAC;EAE/E,IAAI,CAACE,MAAM,EAAE;IACX,MAAM,IAAIC,KAAK,CAAC,mCAAmCZ,KAAK,EAAE,CAAC;EAC7D;;EAEA;EACAI,OAAO,CAACC,KAAK,CACX,uCAAuCL,KAAK,aAAaC,MAAM,iBAAiBE,UAAU,IAC5F,CAAC;EAED,OAAOQ,MAAM,CAACE,OAAO;AACvB,CAAC;AAAA,4L;;;;;;;;;;;;;;;;;ACjED;;AAE4C;AACgB;AACwC;AAcpG,iEAAe,CAACM,OAA4B,GAAG,CAAC,CAAC,KAAK;EACpD,MAAMC,WAAW,GACfD,OAAO,CAACC,WAAW,KAAK,OAAOC,MAAM,KAAK,WAAW,GAAGC,SAAS,GAAGD,MAAM,CAACE,mBAAmB,CAAC;EAEjG,MAAMC,OAAO,GACXL,OAAO,CAACM,QAAQ,IAChBT,0DAAc,CAACC,0DAAc,CAACG,WAAW,CAAC,EAAEF,4DAAgB,CAACE,WAAW,CAAC,CAAC;EAE5E,OAAO,MAAmBM,GAAW,IAAK;IACxC,MAAMC,MAAM,GAAIC,GAAY,IAC1B,IAAIhB,KAAK,CAAC,6BAA6Bc,GAAG,MAAME,GAAG,EAAEC,QAAQ,CAAC,CAAC,EAAE,CAAC;IAEpE,IAAIC,UAAU;IACd,IAAI;MACFA,UAAU,GAAG,MAAMN,OAAO,CAACE,GAAG,CAAC;IACjC,CAAC,CAAC,OAAOE,GAAG,EAAE;MACZ,MAAMD,MAAM,CAACC,GAAG,CAAC;IACnB;IAEA,IAAI,CAACE,UAAU,EAAE;MACf,MAAM,IAAIlB,KAAK,CAAC,oDAAoDc,GAAG,EAAE,CAAC;IAC5E;IAEA,MAAM;MAAEK,MAAM;MAAEC;IAAK,CAAC,GAAGF,UAAU;IAEnC,IAAI;MACF;MACA;MACA;MACAhB,0DAAO,CAACiB,MAAM,CAAC/B,KAAK,EAAEgC,IAAI,CAAC;MAE3B,MAAMC,SAAS,GAAG,MAAMlB,kEAAqB,CAC3CgB,MAAM,CAAC/B,KAAK,EACZ+B,MAAM,CAAC9B,MAAM,EACb8B,MAAM,CAAC7B,cAAc,EACrB6B,MAAM,CAAC5B,UACT,CAAC;MAED,OAAO,CAAC8B,SAAS,EAAEF,MAAM,CAAC;IAC5B,CAAC,CAAC,OAAOH,GAAG,EAAE;MACZ,MAAMD,MAAM,CAACC,GAAG,CAAC;IACnB;EACF,CAAC;AACH,CAAC;AAAA,4L;;;;;;;;;;;;;;;;ACnDD;AACO,MAAMX,cAAc,GACxBG,WAAiC,IAClC,MAAOM,GAAG,IAAK;EACb,MAAMK,MAAM,GAAGX,WAAW,EAAErB,OAAO,CAAC2B,GAAG,CAAC;EACxC,IAAI,CAACN,WAAW,IAAI,CAACW,MAAM,EAAE,OAAOT,SAAS;EAE7C,OAAO;IACLS,MAAM;IACNC,IAAI,EAAEZ,WAAW,CAACY,IAAI,CAACD,MAAM,CAAC/B,KAAK,CAAC,IAAI,CAAC;EAC3C,CAAC;AACH,CAAC;;AAEH;AACO,MAAMkB,gBAAgB,GAC3BA,CAACE,WAAiC,EAAEc,MAAM,GAAG,EAAE,KAC/C,MAAOR,GAAG,IAAK;EACb,IAAI,CAACN,WAAW,EAAE,OAAOE,SAAS;EAElC,MAAMa,GAAG,GAAG,GAAGD,MAAM,oBAAoBd,WAAW,CAACgB,aAAa,YAAYV,GAAG,EAAE;EACnF,MAAMW,QAAQ,GAAG,MAAMC,KAAK,CAACH,GAAG,EAAE;IAAEI,WAAW,EAAE;EAAU,CAAC,CAAC;EAC7D,IAAI,CAACF,QAAQ,CAACG,EAAE,EAAE,OAAOlB,SAAS;EAElC,MAAMS,MAAsB,GAAG,MAAMM,QAAQ,CAACI,IAAI,CAAC,CAAC;EAEpD,OAAO;IACLV,MAAM;IACNC,IAAI,EAAEZ,WAAW,CAACY,IAAI,CAACD,MAAM,CAAC/B,KAAK,CAAC,IAAI,CAAC;EAC3C,CAAC;AACH,CAAC;AAEI,MAAMgB,cAAc,GACzBA,CAAC,GAAG0B,SAA2B,KAC/B,MAAOhB,GAAG,IAAK;EACb;EACA,KAAK,MAAMF,OAAO,IAAIkB,SAAS,EAAE;IAC/B;IACA,MAAMZ,UAAU,GAAG,MAAMN,OAAO,CAACE,GAAG,CAAC;IACrC,IAAII,UAAU,EAAE,OAAOA,UAAU;EACnC;EAEA,OAAOR,SAAS;AAClB,CAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;AEpD+B;AAOlC,MAAMsB,YAA4B,GAAGA,CAAC;EAAEb,MAAM;EAAEc;AAAO,CAAC,kBACtDF,0DAAA;EAAKI,KAAK,EAAE;IAAEC,MAAM,EAAE;EAAgB;AAAE,gBACtCL,0DAAA,aAAK,qCAAqCZ,MAAM,IAAS,CAAC,eAC1DY,0DAAA;EAAMI,KAAK,EAAE;IAAEE,QAAQ,EAAE;EAAO;AAAE,GAAEJ,MAAa,CAC9C,CACN;AAED,iEAAeD,YAAY,E;;;;;;;;;;;;;;;;;;;ACd3B;AAC4C;AAC+C;AAChC;AACjB;;AAI1C;;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,MAAMS,UAAU,GAAGA,CAA+B;EAChDtB,MAAM;EACNuB,QAAQ;EACR,GAAGC;AACoB,CAAC,KAA2B;EACnD,MAAM,CAACC,OAAO,EAAEC,UAAU,CAAC,GAAGN,+CAAQ,CAAe,CAAC;EAEtDD,gDAAS,CAAC,MAAM;IACd,IAAIQ,QAAQ,GAAG,KAAK;IACpB,MAAMC,aAAa,GAAGvE,4DAAY,CAAC,CAAC;IAEpC,eAAewE,IAAIA,CAAA,EAAG;MACpB,IAAI;QACF,MAAM,CAAC3B,SAAS,EAAE4B,QAAQ,CAAC,GAAG,MAAMF,aAAa,CAAgB5B,MAAM,CAAC;QAExE,IAAI2B,QAAQ,IAAI,CAACzB,SAAS,EAAE;UAC1B;QACF;QAEAwB,UAAU,cACRd,0DAAA,CAACS,mEAAc;UAACrB,MAAM,EAAE8B;QAAS,gBAC/BlB,0DAAA,CAACV,SAAS,EAAKsB,IAAO,CACR,CAClB,CAAC;MACH,CAAC,CAAC,OAAO3B,GAAG,EAAE;QACZ,IAAI,CAAC8B,QAAQ,EAAE;UACbD,UAAU,cAACd,0DAAA,CAACC,qDAAY;YAACb,MAAM,EAAEA,MAAO;YAACc,MAAM,EAAE,GAAGjB,GAAG;UAAG,CAAE,CAAC,CAAC;QAChE;MACF;IACF;IAEA6B,UAAU,CAACnC,SAAS,CAAC;IACrBsC,IAAI,CAAC,CAAC;IAEN,OAAO,MAAM;MACXF,QAAQ,GAAG,IAAI;IACjB,CAAC;IACD;EACF,CAAC,EAAE,CAAC3B,MAAM,EAAE,GAAG+B,MAAM,CAACC,MAAM,CAACR,IAAI,CAAC,CAAC,CAAC;;EAEpC;EACAnD,OAAO,CAACC,KAAK,CAAC,wBAAwB0B,MAAM,cAAc,CAACyB,OAAO,EAAE,CAAC;EACrE;EACA,oBAAOb,0DAAA,CAAAA,uDAAA,QAAGa,OAAO,IAAIF,QAAW,CAAC;AACnC,CAAC;AAEDD,UAAU,CAACY,YAAY,GAAG;EACxBX,QAAQ,EAAEhC;AACZ,CAAC;AAED,iEAAe+B,UAAU,E;;;;;;;;;;;;;;;;;;;AC7EoB;AAOtC,MAAMc,aAAa,gBAAGD,oDAAa,CAA6B5C,SAAS,CAAC;AAE1E,MAAM8B,cAAuC,GAAGA,CAAC;EAAErB,MAAM;EAAEqC;AAAS,CAAC,kBAC1EzB,0DAAA,CAACwB,aAAa,CAACE,QAAQ;EAACC,KAAK,EAAEvC;AAAO,GAAEqC,QAAiC,CAC1E;AAEDhB,cAAc,CAACa,YAAY,GAAG;EAC5BlC,MAAM,EAAET;AACV,CAAC;AAEM,MAAMiD,cAAc,GAAGJ,aAAa,CAACK,QAAQ;AAEpD,iEAAeL,aAAa,E;;;;;;;;;;;;;;;;;ACpBF;AAC1B;AACsD;;AAEtD;AACA,iEAAe,MAAkCxB,uDAAgB,CAACwB,+DAAa,CAAC;AAAA,4L;;;;;;;;;;;;;;;;;;;;;ACNhB;AACN;AACD;;;;;;;;;;;;;;;ACFzD,iEAA2BhC,GAAW,IAAK;EACzC,IAAIyC,MAAM,GAAG,SAAS;EACtB,IAAIC,MAAyB;EAC7B,MAAMC,SAAS,GAAGxC,KAAK,CAACH,GAAG,EAAE;IAC3B4C,OAAO,EAAE;MACP,cAAc,EAAE,kBAAkB;MAClCC,MAAM,EAAE;IACV;IACA;EACF,CAAC,CAAC,CAACC,IAAI,CAAE5C,QAAQ,IAAK;IACpB,IAAIA,QAAQ,CAACG,EAAE,EAAE;MACf,OAAOH,QAAQ,CAACI,IAAI,CAAC,CAAC,CAACwC,IAAI,CAAEC,IAAI,IAAK;QACpCN,MAAM,GAAG,SAAS;QAClBC,MAAM,GAAGK,IAAI;MACf,CAAC,CAAC;IACJ;IACAN,MAAM,GAAG,OAAO;IAChBC,MAAM,GAAG,IAAIjE,KAAK,CAAC,GAAGyB,QAAQ,CAACuC,MAAM,IAAIvC,QAAQ,CAAC8C,UAAU,IAAI9C,QAAQ,CAACF,GAAG,EAAE,CAAC;EACjF,CAAC,CAAC;EAEF,OAAO;IACLiD,IAAIA,CAAA,EAAG;MACL,IAAIR,MAAM,KAAK,SAAS,EAAE;QACxB;QACA,MAAME,SAAS;MACjB,CAAC,MAAM,IAAIF,MAAM,KAAK,OAAO,EAAE;QAC7B,MAAMC,MAAM;MACd,CAAC,MAAM,IAAID,MAAM,KAAK,SAAS,EAAE;QAC/B,OAAOC,MAAM;MACf;MAEA,OAAOvD,SAAS;IAClB;EACF,CAAC;AACH,CAAC;AAAA,4L;;;;;;;;;;;;;;;;;;AClCD;AAC6C;AACnB;AACoB;AACC;AAC1B;AAErB,MAAMiE,IAAI,GAAGF,4DAAU,CAACG,QAAQ,CAACC,cAAc,CAAC,MAAM,CAAgB,CAAC;;AAEvE;AACA,MAAMrE,WAAW,GAAGC,MAAM,CAACE,mBAAmB;;AAE9C;AACA+D,yDAAiB,CAAClE,WAAW,CAAC;AAE9B,IAAI,CAACA,WAAW,EAAEmE,IAAI,EAAE;EACtB,MAAM,IAAI3E,KAAK,CAAC,wEAAwE,CAAC;AAC3F;AAEA,MAAMmB,MAAM,GAAGX,WAAW,CAACmE,IAAI;AAC/B,MAAMG,KAAK,GAAGtE,WAAW,CAACuE,SAAS;;AAEnC;AACA;AACA;AACA;AACAJ,IAAI,CAACK,MAAM,cACTjD,0DAAA,CAACA,yDAAgB,qBACfA,0DAAA,CAACU,uDAAU,EAAAyC,QAAA;EAAC/D,MAAM,EAAEA;AAAO,GAAK2D,KAAK,CAAG,CACxB,CACpB,CAAC,C;;;;;;;;;;;;;;;AC5BD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,MAAMK,YAAY,GAAG,wBAAwB;AAE7C,MAAMC,MAAM,GAAG;EACbC,SAAS,EAAE,CACT,gBAAgB,EAChB,aAAa,EACb,WAAW,EACX,oBAAoB,EACpB,0CAA0C,EAC1C,kBAAkB,EAClB,mBAAmB,EACnB,0BAA0B,EAC1B,oBAAoB,EACpB,eAAe,EACf,8DAA8D,EAC9D,sCAAsC,CACvC,CAACC,IAAI,CAAC,GAAG,CAAC;EACXC,OAAO,EAAE,gDAAgD;EACzDC,IAAI,EAAE;AACR,CAAC;AAED,MAAMC,MAAM,GAAI/B,KAAa,IAAKA,KAAK,CAAC5D,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC,CAACA,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC;AAE7E,MAAM4F,kBAAkB,GAAGA,CAChCvG,OAAiB,EACjBwG,WAA2B,GAAG,MAAM,KACzB;EACX,MAAMC,OAAO,GAAG,CACdD,WAAW,KAAK,KAAK,IAAI,mBAAmB,EAC5CxG,OAAO,CAAC0G,MAAM,IAAI,GAAG1G,OAAO,CAAC0G,MAAM,UAAU1G,OAAO,CAAC0G,MAAM,KAAK,CAAC,GAAG,EAAE,GAAG,GAAG,aAAa,CAC1F,CAACC,MAAM,CAACC,OAAO,CAAC;EAEjB,MAAMC,KAAK,GAAG7G;EACZ;EACA;EAAA,CACC8G,GAAG,CAAEnF,GAAG,IAAK,OAAO2E,MAAM,CAAC3E,GAAG,CAAC,OAAO,CAAC,CACvCwE,IAAI,CAAC,EAAE,CAAC;EAEX,OAAO,CACL,mBAAmBF,MAAM,CAACC,SAAS,SAAS,EAC5C,mBAAmBD,MAAM,CAACG,OAAO,6BAA6BK,OAAO,CAACN,IAAI,CAAC,IAAI,CAAC,YAAY,EAC5FU,KAAK,GAAG,cAAcZ,MAAM,CAACI,IAAI,KAAKQ,KAAK,OAAO,GAAG,EAAE,EACvD,YAAY,CACb,CAACV,IAAI,CAAC,EAAE,CAAC;AACZ,CAAC;AAED,iEAAgB9E,WAAiC,IAAW;EAC1D,MAAM0F,OAAO,GAAG1F,WAAW,EAAE0F,OAAO;;EAEpC;EACA;EACA,IAAI,CAACA,OAAO,IAAItB,QAAQ,CAACC,cAAc,CAACM,YAAY,CAAC,EAAE;EAEvD,MAAME,SAAS,GAAGT,QAAQ,CAAC1C,aAAa,CAAC,KAAK,CAAC;EAC/CmD,SAAS,CAACc,EAAE,GAAGhB,YAAY;EAC3BE,SAAS,CAACe,SAAS,GAAGV,kBAAkB,CAACQ,OAAO,CAAC/G,OAAO,IAAI,EAAE,EAAE+G,OAAO,CAACP,WAAW,CAAC;EAEpFf,QAAQ,CAACyB,IAAI,CAACC,WAAW,CAACjB,SAAS,CAAC;AACtC,CAAC;AAAA,4L;;;;;;;;;;;;;;;;;;ACzED;AACgH;AACjB;AAC/F,8BAA8B,mFAA2B,CAAC,4FAAqC;AAC/F;AACA,ubAAub,cAAc,eAAe,GAAG,UAAU,sBAAsB,wCAAwC,uCAAuC,GAAG,8BAA8B,2BAA2B,GAAG,WAAW,sBAAsB,GAAG,SAAS,sFAAsF,KAAK,MAAM,UAAU,UAAU,MAAM,KAAK,YAAY,aAAa,aAAa,OAAO,OAAO,YAAY,OAAO,KAAK,YAAY,uaAAua,cAAc,eAAe,GAAG,UAAU,sBAAsB,wCAAwC,uCAAuC,GAAG,8BAA8B,2BAA2B,GAAG,WAAW,sBAAsB,GAAG,qBAAqB;AACxjD;AACA,iEAAe,uBAAuB,EAAC;;;;;;;;;;;ACP1B;;AAEb;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD;AACrD;AACA;AACA,gDAAgD;AAChD;AACA;AACA,qFAAqF;AACrF;AACA;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;AACA;AACA,qBAAqB;AACrB;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,iBAAiB;AACvC;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB,qBAAqB;AAC1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,sFAAsF,qBAAqB;AAC3G;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,iDAAiD,qBAAqB;AACtE;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV,sDAAsD,qBAAqB;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA,E;;;;;;;;;;ACpFa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uDAAuD,cAAc;AACrE;AACA;AACA;AACA;AACA,E;;;;;;;;;;ACfa;;AAEb,QAAQ,mBAAO,CAAC,sEAAW;AAC3B,IAAI,KAAqC,EAAE;AAAA,EAG1C,CAAC;AACF;AACA,EAAE,kBAAkB;AACpB;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA,EAAE,mBAAmB;AACrB;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACvBA,MAAqG;AACrG,MAA2F;AAC3F,MAAkG;AAClG,MAAqH;AACrH,MAA8G;AAC9G,MAA8G;AAC9G,MAA0J;AAC1J;AACA;;AAEA;;AAEA,4BAA4B,qGAAmB;AAC/C,wBAAwB,kHAAa;;AAErC,uBAAuB,uGAAa;AACpC;AACA,iBAAiB,+FAAM;AACvB,6BAA6B,sGAAkB;;AAE/C,aAAa,0GAAG,CAAC,8HAAO;;;;AAIoG;AAC5H,OAAO,iEAAe,8HAAO,IAAI,8HAAO,UAAU,8HAAO,mBAAmB,EAAC;;;;;;;;;;;AC1BhE;;AAEb;;AAEA;AACA;;AAEA,kBAAkB,wBAAwB;AAC1C;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,kBAAkB,iBAAiB;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,oBAAoB,4BAA4B;AAChD;AACA;AACA;AACA;;AAEA;;AAEA,qBAAqB,6BAA6B;AAClD;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,E;;;;;;;;;;ACvGa;;AAEb;AACA;;AAEA;AACA;AACA,sDAAsD;;AAEtD;AACA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,kC;;;;;;;;;;ACtCa;;AAEb;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,oC;;;;;;;;;;ACVa;;AAEb;AACA;AACA,cAAc,KAAwC,GAAG,sBAAiB,GAAG,CAAI;;AAEjF;AACA;AACA;AACA;;AAEA,gD;;;;;;;;;;ACXa;;AAEb;AACA;AACA;;AAEA;AACA,kDAAkD;AAClD;;AAEA;AACA,0CAA0C;AAC1C;;AAEA;;AAEA;AACA,iFAAiF;AACjF;;AAEA;;AAEA;AACA,aAAa;AACb;;AAEA;AACA,aAAa;AACb;;AAEA;AACA,aAAa;AACb;;AAEA;;AAEA;AACA,yDAAyD;AACzD,IAAI;;AAEJ;;;AAGA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA;AACA;;AAEA,wB;;;;;;;;;;ACrEa;;AAEb;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;;AAEA,mC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACfwD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACAd","sources":["webpack://appshell-react-shell/../loader/src/index.ts","webpack://appshell-react-shell/../loader/src/loadAppshellComponent.ts","webpack://appshell-react-shell/../loader/src/remoteLoader.ts","webpack://appshell-react-shell/../loader/src/resolvers.ts","webpack://appshell-react-shell/../loader/src/types.ts","webpack://appshell-react-shell/../react/src/components/LoadingError.tsx","webpack://appshell-react-shell/../react/src/components/RemoteSlot.tsx","webpack://appshell-react-shell/../react/src/contexts/RemoteContext.tsx","webpack://appshell-react-shell/../react/src/hooks/useRemote.ts","webpack://appshell-react-shell/../react/src/index.ts","webpack://appshell-react-shell/../react/src/resources/jsonResource.ts","webpack://appshell-react-shell/./src/bootstrap.tsx","webpack://appshell-react-shell/./src/overlayBadge.ts","webpack://appshell-react-shell/./src/reset.css","webpack://appshell-react-shell/../../node_modules/css-loader/dist/runtime/api.js","webpack://appshell-react-shell/../../node_modules/css-loader/dist/runtime/sourceMaps.js","webpack://appshell-react-shell/../../node_modules/react-dom/client.js","webpack://appshell-react-shell/./src/reset.css?5a04","webpack://appshell-react-shell/../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js","webpack://appshell-react-shell/../../node_modules/style-loader/dist/runtime/insertBySelector.js","webpack://appshell-react-shell/../../node_modules/style-loader/dist/runtime/insertStyleElement.js","webpack://appshell-react-shell/../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js","webpack://appshell-react-shell/../../node_modules/style-loader/dist/runtime/styleDomAPI.js","webpack://appshell-react-shell/../../node_modules/style-loader/dist/runtime/styleTagTransform.js","webpack://appshell-react-shell/../../node_modules/@module-federation/enhanced/dist/src/runtime.mjs","webpack://appshell-react-shell/../../node_modules/@module-federation/runtime-tools/dist/runtime.js"],"sourcesContent":["import remoteLoader from './remoteLoader';\n\nexport type { RemoteLoaderOptions } from './remoteLoader';\nexport * from './resolvers';\nexport * from './types';\n\nexport default remoteLoader;\n","import {\n getInstance,\n init,\n loadRemote,\n registerRemotes,\n} from '@module-federation/enhanced/runtime';\n\nconst HOST_NAME = 'Appshell';\n\n// The runtime instance and each remote's registration only need to happen once per page load.\nlet initialized = false;\nconst registeredScopes = new Set<string>();\n\nconst ensureInitialized = () => {\n if (initialized) return;\n initialized = true;\n\n // A host that ships its own ModuleFederationPlugin (e.g. @appshell/react-shell) already\n // created the global federation instance during its own bootstrap. Re-calling `init()`\n // with a different name throws (#RUNTIME-010), so reuse whatever instance already exists.\n if (getInstance()) return;\n\n init({ name: HOST_NAME, remotes: [] });\n};\n\nexport default async <TComponent>(\n scope: string,\n module: string,\n remoteEntryUrl: string,\n shareScope = 'default',\n) => {\n // eslint-disable-next-line no-console\n console.debug(\n `loading Appshell component: { scope: ${scope}, module: ${module}, shareScope: ${shareScope} }`,\n );\n\n ensureInitialized();\n\n // Registered exactly once, and never re-registered or cache-busted afterwards.\n //\n // A remote served by a dev server updates itself: its `remoteEntry` already carries\n // webpack's HMR runtime and a dev-server client, so an edit is applied in place\n // behind a container identity that does not move. Re-registering the same scope, or\n // appending a cache-busting query to its entry, changes that identity and the\n // `publicPath` derived from it mid-flight, which strands the `*.hot-update.json` and\n // `*.hot-update.js` requests the remote is midway through making.\n if (!registeredScopes.has(scope)) {\n registeredScopes.add(scope);\n registerRemotes([{ name: scope, entry: remoteEntryUrl }]);\n }\n\n // Federation ids drop the leading `./` that `exposes` keys use.\n const exposed = module.replace(/^\\.\\//, '');\n const Module = await loadRemote<{ default: TComponent }>(`${scope}/${exposed}`);\n\n if (!Module) {\n throw new Error(`Failed to find module container ${scope}`);\n }\n\n // eslint-disable-next-line no-console\n console.debug(\n `Appshell component loaded: { scope: ${scope}, module: ${module}, shareScope: ${shareScope} }`,\n );\n\n return Module.default;\n};\n","/* eslint-disable no-underscore-dangle */\nimport type { AppshellComposition } from '@appshell/config';\nimport { setVars } from '@appshell/runtime';\nimport loadAppshellComponent from './loadAppshellComponent';\nimport { chainResolvers, inlineResolver, registryResolver, type RemoteResolver } from './resolvers';\n\ndeclare global {\n interface Window {\n __appshell_config__?: AppshellComposition;\n }\n}\n\nexport type RemoteLoaderOptions = {\n composition?: AppshellComposition;\n /** Replaces the resolver chain outright; a seam for tests and embedders. */\n resolver?: RemoteResolver;\n};\n\nexport default (options: RemoteLoaderOptions = {}) => {\n const composition =\n options.composition ?? (typeof window === 'undefined' ? undefined : window.__appshell_config__);\n\n const resolve =\n options.resolver ??\n chainResolvers(inlineResolver(composition), registryResolver(composition));\n\n return async <TComponent>(key: string) => {\n const failed = (err: unknown) =>\n new Error(`Failed to load component '${key}'. ${err?.toString()}`);\n\n let resolution;\n try {\n resolution = await resolve(key);\n } catch (err) {\n throw failed(err);\n }\n\n if (!resolution) {\n throw new Error(`Remote resource not found in registry. Expected: ${key}`);\n }\n\n const { remote, vars } = resolution;\n\n try {\n // Before the remote loads, so a package that validates its vars while its modules\n // evaluate still finds them. `@appshell/runtime` is a shared singleton, so this is\n // the same store the package reads through `getVars()`.\n setVars(remote.scope, vars);\n\n const Component = await loadAppshellComponent<TComponent>(\n remote.scope,\n remote.module,\n remote.remoteEntryUrl,\n remote.shareScope,\n );\n\n return [Component, remote] as const;\n } catch (err) {\n throw failed(err);\n }\n };\n};\n","import type { AppshellComposition, ResolvedRemote } from '@appshell/config';\n\nexport type RemoteResolution = {\n remote: ResolvedRemote;\n /** Already merged with the application's overrides — nothing left for the browser to layer on. */\n vars: Record<string, string | number | undefined>;\n};\n\nexport type RemoteResolver = (key: string) => Promise<RemoteResolution | undefined>;\n\n/** The registry inlined the composition into the page, so no network call is needed. */\nexport const inlineResolver =\n (composition?: AppshellComposition): RemoteResolver =>\n async (key) => {\n const remote = composition?.remotes[key];\n if (!composition || !remote) return undefined;\n\n return {\n remote,\n vars: composition.vars[remote.scope] ?? {},\n };\n };\n\n/** Fetch-on-miss: covers a package activated after this page was served. */\nexport const registryResolver =\n (composition?: AppshellComposition, origin = ''): RemoteResolver =>\n async (key) => {\n if (!composition) return undefined;\n\n const url = `${origin}/v1/applications/${composition.applicationId}/remotes/${key}`;\n const response = await fetch(url, { credentials: 'include' });\n if (!response.ok) return undefined;\n\n const remote: ResolvedRemote = await response.json();\n\n return {\n remote,\n vars: composition.vars[remote.scope] ?? {},\n };\n };\n\nexport const chainResolvers =\n (...resolvers: RemoteResolver[]): RemoteResolver =>\n async (key) => {\n // eslint-disable-next-line no-restricted-syntax\n for (const resolve of resolvers) {\n // eslint-disable-next-line no-await-in-loop\n const resolution = await resolve(key);\n if (resolution) return resolution;\n }\n\n return undefined;\n };\n","// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type ShareScope<TComponent = any> = Record<\n string,\n Record<string, { loaded?: 1; get: () => Promise<TComponent>; from: string; eager: boolean }>\n>;\n\nexport interface ModuleContainer<TComponent> {\n init(shareScope: ShareScope<TComponent>): Promise<void>;\n get(module: string): Promise<() => Record<string, TComponent>>;\n}\n","import React, { FC } from 'react';\n\ntype ErrorProps = {\n remote: string;\n reason: string;\n};\n\nconst LoadingError: FC<ErrorProps> = ({ remote, reason }) => (\n <div style={{ border: '3px solid red' }}>\n <h5>{`Error loading Appshell component '${remote}.'`}</h5>\n <span style={{ fontSize: '1rem' }}>{reason}</span>\n </div>\n);\n\nexport default LoadingError;\n","/* eslint-disable react/jsx-props-no-spreading */\nimport remoteLoader from '@appshell/loader';\nimport React, { ComponentType, ReactElement, ReactNode, useEffect, useState } from 'react';\nimport { RemoteProvider } from '../contexts/RemoteContext';\nimport LoadingError from './LoadingError';\n\nexport type ExtendedProps = Record<string, unknown>;\n\n// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-constraint\nexport type RemoteSlotProps<TProps extends ExtendedProps = ExtendedProps> = {\n remote: string;\n fallback?: ReactNode;\n} & TProps;\n\n/**\n * Loads a remote once and leaves it alone.\n *\n * Keeping a remote current while it is being developed is not this component's job.\n * A remote served by a dev server ships webpack's HMR runtime and a dev-server client\n * inside its own `remoteEntry`, so it applies its own edits in place and React Fast\n * Refresh swaps the component implementations underneath this tree — no reload, and no\n * remount that would discard state this component never owned.\n *\n * Watching the remote's socket from here and reloading the page was strictly worse: it\n * raced the remote's own update, and it threw away the entire composed app to deliver a\n * change to one subtree. When webpack genuinely cannot apply an update, the remote's own\n * client still falls back to a full reload — which is the right place for that decision,\n * because it is the only side that knows whether the update applied.\n */\nconst RemoteSlot = <TProps extends ExtendedProps>({\n remote,\n fallback,\n ...rest\n}: RemoteSlotProps<TProps>): ReactElement<TProps> => {\n const [element, setElement] = useState<ReactElement>();\n\n useEffect(() => {\n let disposed = false;\n const loadComponent = remoteLoader();\n\n async function load() {\n try {\n const [Component, resolved] = await loadComponent<ComponentType>(remote);\n\n if (disposed || !Component) {\n return;\n }\n\n setElement(\n <RemoteProvider remote={resolved}>\n <Component {...rest} />\n </RemoteProvider>,\n );\n } catch (err) {\n if (!disposed) {\n setElement(<LoadingError remote={remote} reason={`${err}`} />);\n }\n }\n }\n\n setElement(undefined);\n load();\n\n return () => {\n disposed = true;\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [remote, ...Object.values(rest)]);\n\n // eslint-disable-next-line no-console\n console.debug(`rendering RemoteSlot[${remote}], loading=${!element}`);\n // eslint-disable-next-line react/jsx-no-useless-fragment\n return <>{element || fallback}</>;\n};\n\nRemoteSlot.defaultProps = {\n fallback: undefined,\n};\n\nexport default RemoteSlot;\n","import { AppshellRemote } from '@appshell/config';\nimport type { FC, ReactNode } from 'react';\nimport React, { createContext } from 'react';\n\ninterface RemoteProviderProps {\n remote?: AppshellRemote;\n children: ReactNode;\n}\n\nexport const RemoteContext = createContext<AppshellRemote | undefined>(undefined);\n\nexport const RemoteProvider: FC<RemoteProviderProps> = ({ remote, children }) => (\n <RemoteContext.Provider value={remote}>{children}</RemoteContext.Provider>\n);\n\nRemoteProvider.defaultProps = {\n remote: undefined,\n};\n\nexport const RemoteConsumer = RemoteContext.Consumer;\n\nexport default RemoteContext;\n","import { AppshellRemote } from '@appshell/config';\nimport React from 'react';\n// eslint-disable-next-line import/no-named-as-default\nimport RemoteContext from '../contexts/RemoteContext';\n\n/** The remote backing the nearest `RemoteSlot` — it already knows its own key. */\nexport default (): AppshellRemote | undefined => React.useContext(RemoteContext);\n","export { default as RemoteSlot } from './components/RemoteSlot';\nexport { RemoteProvider } from './contexts/RemoteContext';\nexport { default as useRemote } from './hooks/useRemote';\nexport { default as jsonResource } from './resources/jsonResource';\n","export default <TResource>(url: string) => {\n let status = 'pending';\n let result: TResource | Error;\n const suspender = fetch(url, {\n headers: {\n 'Content-Type': 'application/json',\n Accept: 'application/json',\n },\n // eslint-disable-next-line consistent-return\n }).then((response) => {\n if (response.ok) {\n return response.json().then((data) => {\n status = 'success';\n result = data;\n });\n }\n status = 'error';\n result = new Error(`${response.status} ${response.statusText} ${response.url}`);\n });\n\n return {\n read() {\n if (status === 'pending') {\n // eslint-disable-next-line @typescript-eslint/no-throw-literal\n throw suspender as Promise<TResource>;\n } else if (status === 'error') {\n throw result as Error;\n } else if (status === 'success') {\n return result;\n }\n\n return undefined;\n },\n };\n};\n","/* eslint-disable react/jsx-props-no-spreading */\nimport { RemoteSlot } from '@appshell/react';\nimport React from 'react';\nimport { createRoot } from 'react-dom/client';\nimport mountOverlayBadge from './overlayBadge';\nimport './reset.css';\n\nconst root = createRoot(document.getElementById('root') as HTMLElement);\n\n// The registry inlines the composition into the document it serves.\nconst composition = window.__appshell_config__;\n\n// Outside the React root on purpose, so it outlives a crash in the composed app.\nmountOverlayBadge(composition);\n\nif (!composition?.root) {\n throw new Error('No root remote to mount. The registry supplies one in the composition.');\n}\n\nconst remote = composition.root;\nconst props = composition.rootProps;\n\n// No fallback. What fills the gap before the root remote mounts is the application's\n// business, not the shell's — and it has to come from the document, since the thing\n// being waited for is the consumer's own code. Until that lands the gap renders as\n// whatever the page background is.\nroot.render(\n <React.StrictMode>\n <RemoteSlot remote={remote} {...props} />\n </React.StrictMode>,\n);\n","import type { AppshellComposition } from '@appshell/config';\n\n/**\n * Marks a page whose remotes have been redirected by a per-developer overlay.\n *\n * Deliberately plain DOM in its own element rather than a component inside the React\n * tree, for two reasons. It has to survive a crash in the composed app — the moment\n * the page misbehaves is exactly when knowing your remotes are not the published ones\n * matters most — and nothing about it is React-specific, so it lifts into a shared\n * package unchanged the day a second shell implementation exists.\n *\n * Styles are inline: the badge renders alongside whatever CSS the remotes ship, and a\n * stylesheet of its own would be one more thing for them to override.\n */\n\nconst CONTAINER_ID = 'appshell-overlay-badge';\n\nconst styles = {\n container: [\n 'position:fixed',\n 'bottom:12px',\n 'left:12px',\n 'z-index:2147483647',\n 'max-width:min(420px, calc(100vw - 24px))',\n 'padding:8px 12px',\n 'border-radius:6px',\n 'border:1px solid #f0b429',\n 'background:#3d3016',\n 'color:#f7e3a1',\n 'font:12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace',\n 'box-shadow:0 2px 8px rgba(0,0,0,.35)',\n ].join(';'),\n summary: 'cursor:pointer;font-weight:600;list-style:none',\n list: 'margin:6px 0 0;padding-left:16px',\n};\n\nconst escape = (value: string) => value.replace(/&/g, '&amp;').replace(/</g, '&lt;');\n\nexport const overlayBadgeMarkup = (\n remotes: string[],\n shellFlavor: 'prod' | 'dev' = 'prod',\n): string => {\n const changes = [\n shellFlavor === 'dev' && 'development shell',\n remotes.length && `${remotes.length} remote${remotes.length === 1 ? '' : 's'} redirected`,\n ].filter(Boolean);\n\n const items = remotes\n // The keys come from the registry's own composition, but this string is written\n // straight into innerHTML, so it is escaped rather than trusted by provenance.\n .map((key) => `<li>${escape(key)}</li>`)\n .join('');\n\n return [\n `<details style=\"${styles.container}\" open>`,\n `<summary style=\"${styles.summary}\">⚠ Development overlay — ${changes.join(', ')}</summary>`,\n items ? `<ul style=\"${styles.list}\">${items}</ul>` : '',\n '</details>',\n ].join('');\n};\n\nexport default (composition?: AppshellComposition): void => {\n const overlay = composition?.overlay;\n\n // The registry only emits the block when an overlay changed something, so its mere\n // presence is the signal. A shell-only overlay has no remotes and still has to show.\n if (!overlay || document.getElementById(CONTAINER_ID)) return;\n\n const container = document.createElement('div');\n container.id = CONTAINER_ID;\n container.innerHTML = overlayBadgeMarkup(overlay.remotes ?? [], overlay.shellFlavor);\n\n document.body.appendChild(container);\n};\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \"/*\\n * The one reset on the page.\\n *\\n * Packages must not ship their own — several global resets (Tailwind's Preflight, for\\n * one) fight each other and the shell. This is structural only: it holds no view on how\\n * an application looks, which is the packages' and the theme's business, but it does own\\n * the handful of browser defaults that must be settled exactly once.\\n */\\nhtml,\\nbody {\\n margin: 0;\\n padding: 0;\\n}\\n\\nbody {\\n min-height: 100vh;\\n -webkit-font-smoothing: antialiased;\\n -moz-osx-font-smoothing: grayscale;\\n}\\n\\n*,\\n*::before,\\n*::after {\\n box-sizing: border-box;\\n}\\n\\n#root {\\n min-height: 100vh;\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/reset.css\"],\"names\":[],\"mappings\":\"AAAA;;;;;;;EAOE;AACF;;EAEE,SAAS;EACT,UAAU;AACZ;;AAEA;EACE,iBAAiB;EACjB,mCAAmC;EACnC,kCAAkC;AACpC;;AAEA;;;EAGE,sBAAsB;AACxB;;AAEA;EACE,iBAAiB;AACnB\",\"sourcesContent\":[\"/*\\n * The one reset on the page.\\n *\\n * Packages must not ship their own — several global resets (Tailwind's Preflight, for\\n * one) fight each other and the shell. This is structural only: it holds no view on how\\n * an application looks, which is the packages' and the theme's business, but it does own\\n * the handful of browser defaults that must be settled exactly once.\\n */\\nhtml,\\nbody {\\n margin: 0;\\n padding: 0;\\n}\\n\\nbody {\\n min-height: 100vh;\\n -webkit-font-smoothing: antialiased;\\n -moz-osx-font-smoothing: grayscale;\\n}\\n\\n*,\\n*::before,\\n*::after {\\n box-sizing: border-box;\\n}\\n\\n#root {\\n min-height: 100vh;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","\"use strict\";\n\nmodule.exports = function (item) {\n var content = item[1];\n var cssMapping = item[3];\n if (!cssMapping) {\n return content;\n }\n if (typeof btoa === \"function\") {\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n var sourceMapping = \"/*# \".concat(data, \" */\");\n return [content].concat([sourceMapping]).join(\"\\n\");\n }\n return [content].join(\"\\n\");\n};","'use strict';\n\nvar m = require('react-dom');\nif (process.env.NODE_ENV === 'production') {\n exports.createRoot = m.createRoot;\n exports.hydrateRoot = m.hydrateRoot;\n} else {\n var i = m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n exports.createRoot = function(c, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.createRoot(c, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n exports.hydrateRoot = function(c, h, o) {\n i.usingClientEntryPoint = true;\n try {\n return m.hydrateRoot(c, h, o);\n } finally {\n i.usingClientEntryPoint = false;\n }\n };\n}\n","\n import API from \"!../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/postcss-loader/dist/cjs.js!./reset.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/postcss-loader/dist/cjs.js!./reset.css\";\n export default content && content.locals ? content.locals : undefined;\n","\"use strict\";\n\nvar stylesInDOM = [];\n\nfunction getIndexByIdentifier(identifier) {\n var result = -1;\n\n for (var i = 0; i < stylesInDOM.length; i++) {\n if (stylesInDOM[i].identifier === identifier) {\n result = i;\n break;\n }\n }\n\n return result;\n}\n\nfunction modulesToDom(list, options) {\n var idCountMap = {};\n var identifiers = [];\n\n for (var i = 0; i < list.length; i++) {\n var item = list[i];\n var id = options.base ? item[0] + options.base : item[0];\n var count = idCountMap[id] || 0;\n var identifier = \"\".concat(id, \" \").concat(count);\n idCountMap[id] = count + 1;\n var indexByIdentifier = getIndexByIdentifier(identifier);\n var obj = {\n css: item[1],\n media: item[2],\n sourceMap: item[3],\n supports: item[4],\n layer: item[5]\n };\n\n if (indexByIdentifier !== -1) {\n stylesInDOM[indexByIdentifier].references++;\n stylesInDOM[indexByIdentifier].updater(obj);\n } else {\n var updater = addElementStyle(obj, options);\n options.byIndex = i;\n stylesInDOM.splice(i, 0, {\n identifier: identifier,\n updater: updater,\n references: 1\n });\n }\n\n identifiers.push(identifier);\n }\n\n return identifiers;\n}\n\nfunction addElementStyle(obj, options) {\n var api = options.domAPI(options);\n api.update(obj);\n\n var updater = function updater(newObj) {\n if (newObj) {\n if (newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap && newObj.supports === obj.supports && newObj.layer === obj.layer) {\n return;\n }\n\n api.update(obj = newObj);\n } else {\n api.remove();\n }\n };\n\n return updater;\n}\n\nmodule.exports = function (list, options) {\n options = options || {};\n list = list || [];\n var lastIdentifiers = modulesToDom(list, options);\n return function update(newList) {\n newList = newList || [];\n\n for (var i = 0; i < lastIdentifiers.length; i++) {\n var identifier = lastIdentifiers[i];\n var index = getIndexByIdentifier(identifier);\n stylesInDOM[index].references--;\n }\n\n var newLastIdentifiers = modulesToDom(newList, options);\n\n for (var _i = 0; _i < lastIdentifiers.length; _i++) {\n var _identifier = lastIdentifiers[_i];\n\n var _index = getIndexByIdentifier(_identifier);\n\n if (stylesInDOM[_index].references === 0) {\n stylesInDOM[_index].updater();\n\n stylesInDOM.splice(_index, 1);\n }\n }\n\n lastIdentifiers = newLastIdentifiers;\n };\n};","\"use strict\";\n\nvar memo = {};\n/* istanbul ignore next */\n\nfunction getTarget(target) {\n if (typeof memo[target] === \"undefined\") {\n var styleTarget = document.querySelector(target); // Special case to return head of iframe instead of iframe itself\n\n if (window.HTMLIFrameElement && styleTarget instanceof window.HTMLIFrameElement) {\n try {\n // This will throw an exception if access to iframe is blocked\n // due to cross-origin restrictions\n styleTarget = styleTarget.contentDocument.head;\n } catch (e) {\n // istanbul ignore next\n styleTarget = null;\n }\n }\n\n memo[target] = styleTarget;\n }\n\n return memo[target];\n}\n/* istanbul ignore next */\n\n\nfunction insertBySelector(insert, style) {\n var target = getTarget(insert);\n\n if (!target) {\n throw new Error(\"Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.\");\n }\n\n target.appendChild(style);\n}\n\nmodule.exports = insertBySelector;","\"use strict\";\n\n/* istanbul ignore next */\nfunction insertStyleElement(options) {\n var element = document.createElement(\"style\");\n options.setAttributes(element, options.attributes);\n options.insert(element, options.options);\n return element;\n}\n\nmodule.exports = insertStyleElement;","\"use strict\";\n\n/* istanbul ignore next */\nfunction setAttributesWithoutAttributes(styleElement) {\n var nonce = typeof __webpack_nonce__ !== \"undefined\" ? __webpack_nonce__ : null;\n\n if (nonce) {\n styleElement.setAttribute(\"nonce\", nonce);\n }\n}\n\nmodule.exports = setAttributesWithoutAttributes;","\"use strict\";\n\n/* istanbul ignore next */\nfunction apply(styleElement, options, obj) {\n var css = \"\";\n\n if (obj.supports) {\n css += \"@supports (\".concat(obj.supports, \") {\");\n }\n\n if (obj.media) {\n css += \"@media \".concat(obj.media, \" {\");\n }\n\n var needLayer = typeof obj.layer !== \"undefined\";\n\n if (needLayer) {\n css += \"@layer\".concat(obj.layer.length > 0 ? \" \".concat(obj.layer) : \"\", \" {\");\n }\n\n css += obj.css;\n\n if (needLayer) {\n css += \"}\";\n }\n\n if (obj.media) {\n css += \"}\";\n }\n\n if (obj.supports) {\n css += \"}\";\n }\n\n var sourceMap = obj.sourceMap;\n\n if (sourceMap && typeof btoa !== \"undefined\") {\n css += \"\\n/*# sourceMappingURL=data:application/json;base64,\".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))), \" */\");\n } // For old IE\n\n /* istanbul ignore if */\n\n\n options.styleTagTransform(css, styleElement, options.options);\n}\n\nfunction removeStyleElement(styleElement) {\n // istanbul ignore if\n if (styleElement.parentNode === null) {\n return false;\n }\n\n styleElement.parentNode.removeChild(styleElement);\n}\n/* istanbul ignore next */\n\n\nfunction domAPI(options) {\n var styleElement = options.insertStyleElement(options);\n return {\n update: function update(obj) {\n apply(styleElement, options, obj);\n },\n remove: function remove() {\n removeStyleElement(styleElement);\n }\n };\n}\n\nmodule.exports = domAPI;","\"use strict\";\n\n/* istanbul ignore next */\nfunction styleTagTransform(css, styleElement) {\n if (styleElement.styleSheet) {\n styleElement.styleSheet.cssText = css;\n } else {\n while (styleElement.firstChild) {\n styleElement.removeChild(styleElement.firstChild);\n }\n\n styleElement.appendChild(document.createTextNode(css));\n }\n}\n\nmodule.exports = styleTagTransform;","export * from \"@module-federation/runtime-tools/runtime\"\n\nexport { };","export * from \"@module-federation/runtime\"\n\nexport { };"],"names":["remoteLoader","getInstance","init","loadRemote","registerRemotes","HOST_NAME","initialized","registeredScopes","Set","ensureInitialized","name","remotes","scope","module","remoteEntryUrl","shareScope","console","debug","has","add","entry","exposed","replace","Module","Error","default","setVars","loadAppshellComponent","chainResolvers","inlineResolver","registryResolver","options","composition","window","undefined","__appshell_config__","resolve","resolver","key","failed","err","toString","resolution","remote","vars","Component","origin","url","applicationId","response","fetch","credentials","ok","json","resolvers","React","LoadingError","reason","createElement","style","border","fontSize","useEffect","useState","RemoteProvider","RemoteSlot","fallback","rest","element","setElement","disposed","loadComponent","load","resolved","Object","values","Fragment","defaultProps","createContext","RemoteContext","children","Provider","value","RemoteConsumer","Consumer","useContext","useRemote","jsonResource","status","result","suspender","headers","Accept","then","data","statusText","read","createRoot","mountOverlayBadge","root","document","getElementById","props","rootProps","render","StrictMode","_extends","CONTAINER_ID","styles","container","join","summary","list","escape","overlayBadgeMarkup","shellFlavor","changes","length","filter","Boolean","items","map","overlay","id","innerHTML","body","appendChild"],"sourceRoot":""}
package/dist/main.js CHANGED
@@ -1 +1 @@
1
- (()=>{"use strict";var e,t,o,r,n={418(e,t,o){const r=()=>{};(Object.getOwnPropertyDescriptor(r,"name")||{}).writable||Object.defineProperty(r,"name",{value:"default",configurable:!0}),Promise.all([o.e(488),o.e(279)]).then(o.bind(o,279))},996(e,t,o){function r(e){e.S&&!e.federation.hasAttachShareScopeMap&&e.federation.instance&&e.federation.instance.shareScopeMap&&(e.S=e.federation.instance.shareScopeMap,e.federation.hasAttachShareScopeMap=!0)}const n=["script"];function i(e){const{webpackRequire:t,moduleToHandlerMapping:o}=e,{consumesLoadingData:r,initializeSharingData:n}=t,{sharedFallback:i,bundlerRuntime:s,libraryType:a}=t.federation;if(r&&!r._updated){const{moduleIdToConsumeDataMapping:n={},initialConsumes:c=[],chunkMapping:l={}}=r;if(Object.entries(n).forEach((([e,r])=>{o[e]||(o[e]={getter:i?s?.getSharedFallbackGetter({shareKey:r.shareKey,factory:r.fallback,webpackRequire:t,libraryType:a}):r.fallback,treeShakingGetter:i?r.fallback:void 0,shareInfo:{shareConfig:{requiredVersion:r.requiredVersion,strictVersion:r.strictVersion,singleton:r.singleton,eager:r.eager,layer:r.layer},scope:Array.isArray(r.shareScope)?r.shareScope:[r.shareScope||"default"],treeShaking:i?{get:r.fallback,mode:r.treeShakingMode}:void 0},shareKey:r.shareKey})})),"initialConsumes"in e){const{initialConsumes:t=[]}=e;c.forEach((e=>{t.includes(e)||t.push(e)}))}if("chunkMapping"in e){const{chunkMapping:t={}}=e;Object.entries(l).forEach((([e,o])=>{t[e]||(t[e]=[]),o.forEach((o=>{t[e].includes(o)||t[e].push(o)}))}))}r._updated=1}if(n&&!n._updated){const{federation:e}=t;if(!e.instance||!n.scopeToSharingDataMapping)return;const o={};for(let[e,t]of Object.entries(n.scopeToSharingDataMapping))for(let r of t)if("object"==typeof r&&null!==r){const{name:t,version:n,factory:i,eager:s,singleton:a,requiredVersion:c,strictVersion:l}=r,h={requiredVersion:`^${n}`},u=function(e){return void 0!==e};u(a)&&(h.singleton=a),u(c)&&(h.requiredVersion=c),u(s)&&(h.eager=s),u(l)&&(h.strictVersion=l);const d={version:n,scope:[e],shareConfig:h,get:i};o[t]?o[t].push(d):o[t]=[d]}e.instance.registerShared(o),n._updated=1}}var s=o(378),a=o(151);function c(e,t){const o=e.federation.usedExports;if(o)return o[t]}const l="RUNTIME-012";var h=o(650),u=o(370),d=o(655);const m={global:{...d._$.global,getGlobalFederationInstance:u.u},share:d._$.share,utils:d._$.utils},f={remotes:function(e){!function(e){const{webpackRequire:t,idToExternalAndNameMapping:o={},idToRemoteMap:r={},chunkMapping:n={}}=e,{remotesLoadingData:i}=t,s=t.federation?.bundlerRuntimeOptions?.remotes?.remoteInfos;if(!i||i._updated||!s)return;const{chunkMapping:a,moduleIdToRemoteDataMapping:c}=i;if(a&&c){for(let[e,t]of Object.entries(c))if(o[e]||(o[e]=[t.shareScope,t.name,t.externalModuleId]),!r[e]&&s[t.remoteName]){const o=s[t.remoteName];r[e]||=[],o.forEach((t=>{r[e].includes(t)||r[e].push(t)}))}n&&Object.entries(a).forEach((([e,t])=>{n[e]||(n[e]=[]),t.forEach((t=>{n[e].includes(t)||n[e].push(t)}))})),i._updated=1}}(e);const{chunkId:t,promises:o,webpackRequire:i,chunkMapping:c,idToExternalAndNameMapping:l,idToRemoteMap:h}=e;r(i),i.o(c,t)&&c[t].forEach((e=>{let t=i.R;t||(t=[]);const r=l[e],c=h[e]||[];if(t.indexOf(r)>=0)return;if(t.push(r),r.p)return o.push(r.p);const u=t=>{t||(t=new Error("Container missing")),"string"==typeof t.message&&(t.message+=`\nwhile loading "${r[1]}" from ${r[2]}`),i.m[e]=()=>{throw t},r.p=0},d=(e,t,n,i,s,a)=>{try{const c=e(t,n);if(!c||!c.then)return s(c,i,a);{const e=c.then((e=>s(e,i)),u);if(!a)return e;o.push(r.p=e)}}catch(e){u(e)}};var m=(e,o,n)=>d(o.get,r[1],t,0,f,n),f=t=>{r.p=1,i.m[e]=e=>{e.exports=t()}};1===c.length&&n.includes(c[0].externalType)&&c[0].name?d((()=>{try{const e=(0,s.e4)(c[0].name,a.yq)+r[1].slice(1),t=i.federation.instance,o=()=>i.federation.instance.loadRemote(e,{loadFactory:!1,from:"build"});if("version-first"===t.options.shareStrategy){const e=Array.isArray(r[0])?r[0]:[r[0]];return Promise.all(e.map((e=>t.sharedHandler.initializeSharing(e)))).then((()=>o()))}return o()}catch(e){u(e)}}),r[2],0,0,f,1):d(i,r[2],0,0,((e,t,o)=>e?d(i.I,r[0],0,e,m,o):u()),1)}))},consumes:function(e){i(e);const{chunkId:t,promises:o,installedModules:n,webpackRequire:s,chunkMapping:a,moduleToHandlerMapping:h}=e;r(s),s.o(a,t)&&a[t].forEach((e=>{if(s.o(n,e))return o.push(n[e]);const t=t=>{n[e]=0,s.m[e]=o=>{delete s.c[e];const r=t(),{shareInfo:n}=h[e];if(n?.shareConfig?.layer&&r&&"object"==typeof r)try{r.hasOwnProperty("layer")&&void 0!==r.layer||(r.layer=n.shareConfig.layer)}catch(e){}o.exports=r}},r=t=>{delete n[e],s.m[e]=o=>{throw delete s.c[e],t}};try{const i=s.federation.instance;if(!i)throw new Error("Federation instance not found!");const{shareKey:a,getter:u,shareInfo:d,treeShakingGetter:m}=h[e],f=c(s,a),p={...d};Array.isArray(p.scope)&&Array.isArray(p.scope[0])&&(p.scope=p.scope[0]),f&&(p.treeShaking={usedExports:f,useIn:[i.options.name]});const y=i.loadShare(a,{customShareInfo:p}).then((e=>{if(!1===e){if("function"!=typeof u)throw new Error(((e,t,o)=>{const r=[`${[t[e]]} #${e}`];return o&&r.push(`args: ${JSON.stringify(o)}`),r.push((e=>`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`)(e)),r.join("\n")})(l,{[l]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.'},{shareKey:a}));return m?.()||u()}return e}));y.then?o.push(n[e]=y.then(t).catch(r)):t(y)}catch(e){r(e)}}))},I:function({shareScopeName:e,webpackRequire:t,initPromises:o,initTokens:i,initScope:s}){const a=Array.isArray(e)?e:[e];var c=[];return a.forEach((a=>{c.push(function(a){s||(s=[]);const c=t.federation.instance;var l=i[a];if(l||(l=i[a]={from:c.name}),s.indexOf(l)>=0)return;s.push(l);const h=o[a];if(h)return h;var u=o=>{var r=e=>{return t="Initialization of sharing external failed: "+e,"undefined"!=typeof console&&console.warn&&console.warn(t);var t};try{var n=t(o);if(!n)return;var i=o=>o&&o.init&&o.init(t.S[a],s,{shareScopeMap:t.S||{},shareScopeKeys:e});if(n.then)return d.push(n.then(i,r));var c=i(n);if(c&&"boolean"!=typeof c&&c.then)return d.push(c.catch(r))}catch(e){r(e)}};const d=c.initializeSharing(a,{strategy:c.options.shareStrategy,initScope:s,from:"build"});r(t);const m=t.federation.bundlerRuntimeOptions.remotes;return m&&Object.keys(m.idToRemoteMap).forEach((e=>{const t=m.idToRemoteMap[e],o=m.idToExternalAndNameMapping[e][2];if(t.length>1)u(o);else if(1===t.length){const e=t[0];n.includes(e.externalType)||u(o)}})),d.length?o[a]=Promise.all(d).then((()=>o[a]=!0)):o[a]=!0}(a))})),Promise.all(c).then((()=>!0))},S:{},installInitialConsumes:function(e){i(e);const{moduleToHandlerMapping:t,webpackRequire:o,installedModules:r,initialConsumes:n,asyncLoad:s}=e,a=[];n.forEach((e=>{a.push([e,()=>function(e){const{moduleId:t,moduleToHandlerMapping:o,webpackRequire:r,asyncLoad:n}=e,i=r.federation.instance;if(!i)throw new Error("Federation instance not found!");const{shareKey:s,shareInfo:a}=o[t];try{const e=c(r,s),t={...a};return e&&(t.treeShaking={usedExports:e,useIn:[i.options.name]}),n?i.loadShare(s,{customShareInfo:t}):i.loadShareSync(s,{customShareInfo:t})}catch(e){throw console.error('loadShareSync failed! The function should not be called unless you set "eager:true". If you do not set it, and encounter this issue, you can check whether an async boundary is implemented.'),console.error("The original error message is as follows: "),e}}({moduleId:e,moduleToHandlerMapping:t,webpackRequire:o,asyncLoad:s})])}));const l=(e,n)=>{o.m[e]=i=>{r[e]=0,delete o.c[e];const s=n();if("function"!=typeof s)throw new Error(`Shared module is not available for eager consumption: ${e}`);const a=s(),{shareInfo:c}=t[e];if(c?.shareConfig?.layer&&a&&"object"==typeof a)try{a.hasOwnProperty("layer")&&void 0!==a.layer||(a.layer=c.shareConfig.layer)}catch(e){}i.exports=a}};if(s)return Promise.all(a.map((async([e,t])=>{const o=await t();l(e,(()=>o))})));a.forEach((([e,t])=>{l(e,t)}))},initContainerEntry:void 0,init:function({webpackRequire:e}){const{initOptions:t,runtime:r,sharedFallback:n,bundlerRuntime:i,libraryType:s}=e.federation;if(!t)throw new Error("initOptions is required!");{const r=function(){return{name:"tree-shake-plugin",beforeInit(t){const{userOptions:r,origin:a,options:c}=t,l=r.version||c.version;if(!n)return t;const u=r.shared||{},d=[];Object.keys(u).forEach((t=>{(Array.isArray(u[t])?u[t]:[u[t]]).forEach((o=>{d.push([t,o]),"get"in o&&(o.treeShaking||={},o.treeShaking.get=o.get,o.get=i.getSharedFallbackGetter({shareKey:t,factory:o.get,webpackRequire:e,libraryType:s,version:o.version}))}))}));const f=m.global.getGlobalSnapshotInfoByModuleInfo({name:a.name,version:l});return f&&"shared"in f?(Object.keys(c.shared||{}).forEach((e=>{c.shared[e].forEach((t=>{d.push([e,t])}))})),d.forEach((([e,t])=>{((e,t)=>{const r=f.shared.find((t=>t.sharedName===e));if(!r)return;const{treeShaking:n}=t;if(!n)return;const{secondarySharedTreeShakingName:i,secondarySharedTreeShakingEntry:c,treeShakingStatus:l}=r;n.status!==l&&(n.status=l,c&&s&&i&&(n.get=async()=>{const e=await(0,h.getRemoteEntry)({origin:a,remoteInfo:{name:i,entry:c,type:s,entryGlobalName:i,shareScope:"default"}});return await e.init(a,o.federation.bundlerRuntime),e.get()}))})(e,t)})),t):t}}};t.plugins||=[],t.plugins.push(r())}return r.init(t)},getSharedFallbackGetter:({shareKey:e,factory:t,version:o,webpackRequire:r,libraryType:n="global"})=>{const{runtime:i,instance:s,bundlerRuntime:a,sharedFallback:c}=r.federation;if(!c)return t;const l=c[e];if(!l)return t;const h=o?l.find((e=>e[1]===o)):l[0];if(!h)throw new Error(`No fallback item found for shareKey: ${e} and version: ${o}`);return()=>i.getRemoteEntry({origin:r.federation.instance,remoteInfo:{name:h[2],entry:`${r.p}${h[0]}`,type:n,entryGlobalName:h[2],shareScope:"default"}}).then((t=>{if(!t)throw new Error(`Failed to load fallback entry for shareKey: ${e} and version: ${o}`);return t.init(r.federation.instance,a).then((()=>t.get()))}))}},p={runtime:h,instance:void 0,initOptions:void 0,bundlerRuntime:f,attachShareScopeMap:r,bundlerRuntimeOptions:{}};if(!o.federation.runtime||!o.federation.bundlerRuntime){var y=o.federation;for(var g in o.federation={},p)o.federation[g]=p[g];for(var g in y)o.federation[g]=y[g]}o.federation.instance||(o.federation.instance=o.federation.bundlerRuntime.init({webpackRequire:o}),o.federation.attachShareScopeMap&&o.federation.attachShareScopeMap(o),o.federation.installInitialConsumes&&o.federation.installInitialConsumes())},10(e,t,o){o.d(t,{UJ:()=>n});var r=o(904);const n={[r.Fj]:"Failed to get remoteEntry exports.",[r.MC]:'The remote entry interface does not contain "init"',[r.F0]:"Failed to get manifest.",[r.MR]:"Failed to locate remote.",[r.Fd]:"Invalid loadShareSync function call from bundler runtime",[r.yB]:"Invalid loadShareSync function call from runtime",[r.Tz]:"Failed to get remote snapshot.",[r.ML]:"Failed to load script resources.",[r.F9]:"Please call createInstance first.",[r.n3]:'The name option cannot be changed after initialization. If you want to create a new instance with a different name, please use "createInstance" api.',[r.uF]:"The remoteEntry URL is missing from the remote snapshot.",[r.Bh]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.',[r.u0]:"The manifest is not a valid Module Federation manifest.",[r.BC]:"The remote does not expose the requested module.",[r.uz]:"Remote container initialization failed."};r.Zs,r.fK,r.AI},904(e,t,o){o.d(t,{AI:()=>b,BC:()=>y,Bh:()=>f,F0:()=>i,F9:()=>u,Fd:()=>a,Fj:()=>r,MC:()=>n,ML:()=>h,MR:()=>s,Tz:()=>l,Zs:()=>E,fK:()=>S,n3:()=>d,u0:()=>p,uF:()=>m,uz:()=>g,yB:()=>c});const r="RUNTIME-001",n="RUNTIME-002",i="RUNTIME-003",s="RUNTIME-004",a="RUNTIME-005",c="RUNTIME-006",l="RUNTIME-007",h="RUNTIME-008",u="RUNTIME-009",d="RUNTIME-010",m="RUNTIME-011",f="RUNTIME-012",p="RUNTIME-013",y="RUNTIME-014",g="RUNTIME-015",E="TYPE-001",S="BUILD-001",b="BUILD-002"},843(){},655(e,t,o){o.d(t,{hS:()=>I,nV:()=>Qt,gP:()=>zt,vA:()=>d,Bf:()=>T,fE:()=>yt,pW:()=>gt,_$:()=>Yt,k0:()=>Ze,oe:()=>ot,RY:()=>D,rc:()=>O,C3:()=>A});var r=o(848);const n="[ Module Federation ]",i=console,s=["logger.ts","logger.js","captureStackTrace","Logger.emit","Logger.log","Logger.info","Logger.warn","Logger.error","Logger.debug"];var a=class{constructor(e,t=i){this.prefix=e,this.delegate=t??i}setPrefix(e){this.prefix=e}setDelegate(e){this.delegate=e??i}emit(e,t){const o=this.delegate,n=(0,r.Bb)()?function(){try{const e=(new Error).stack;if(!e)return;const[,...t]=e.split("\n"),o=t.filter((e=>!s.some((t=>e.includes(t)))));if(!o.length)return;return`Stack trace:\n${o.slice(0,5).join("\n")}`}catch{return}}():void 0,a=n?[...t,n]:t,c=(()=>{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(const e of c){const t=o[e];if("function"==typeof t)return void t.call(o,this.prefix,...a)}for(const e of c){const t=i[e];if("function"==typeof t)return void t.call(i,this.prefix,...a)}}log(...e){this.emit("log",e)}warn(...e){this.emit("warn",e)}error(...e){this.emit("error",e)}success(...e){this.emit("info",e)}info(...e){this.emit("info",e)}ready(...e){this.emit("info",e)}debug(...e){(0,r.Bb)()&&this.emit("debug",e)}};function c(e){return new a(e)}c(n),function(e){const t=new a(e);Object.defineProperty(t,"__mf_infrastructure_logger__",{value:!0,enumerable:!1,configurable:!1})}(n);const l=(e,t,o,r)=>{const n=[`${[t[e]]} #${e}`];return o&&n.push(`args: ${JSON.stringify(o)}`),n.push((e=>`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`)(e)),r&&n.push(`Original Error Message:\n ${r}`),n.join("\n")},h="[ Federation Runtime ]",u=c(h);function d(e,t,o,r,n){e||(void 0!==o?m(t,o,r,void 0):m(t))}function m(e,t,o,r,n){if(void 0!==t)return function(e,t,o,r,n){return(e=>{throw new Error(`${h}: ${e}`)})(l(e,t,o,n))}(e,t,o??{},0,r);const i=e;if(i instanceof Error)throw i.message.startsWith(h)||(i.message=`${h}: ${i.message}`),i;throw new Error(`${h}: ${i}`)}function f(e){e instanceof Error?(e.message.startsWith(h)||(e.message=`${h}: ${e.message}`),u.warn(e)):u.warn(e)}function p(e){return"version"in e&&e.version?`${e.name}:${e.version}`:"entry"in e&&e.entry?`${e.name}:${e.entry}`:`${e.name}`}function y(e){return void 0!==e.entry}function g(e){return!e.entry.includes(".json")}function E(e){return e&&"object"==typeof e}const S=Object.prototype.toString;function b(e){return Array.isArray(e)?e:[e]}function _(e){const t={url:"",type:"global",globalName:""};return r.Hq||(0,r.MC)()||!("ssrRemoteEntry"in e)?"remoteEntry"in e?{url:e.remoteEntry,type:e.remoteEntryType,globalName:e.globalName}:t:"ssrRemoteEntry"in e?{url:e.ssrRemoteEntry||t.url,type:e.ssrRemoteEntryType||t.type,globalName:e.globalName}:t}const I="object"==typeof globalThis?globalThis:window,w=(()=>{try{return document.defaultView}catch{return I}})(),v=w;function k(e,t,o){Object.defineProperty(e,t,{value:o,configurable:!1,writable:!0})}function R(e,t){return Object.hasOwnProperty.call(e,t)}R(I,"__GLOBAL_LOADING_REMOTE_ENTRY__")||k(I,"__GLOBAL_LOADING_REMOTE_ENTRY__",{});const N=I.__GLOBAL_LOADING_REMOTE_ENTRY__;function $(e){R(e,"__VMOK__")&&!R(e,"__FEDERATION__")&&k(e,"__FEDERATION__",e.__VMOK__),R(e,"__FEDERATION__")||(k(e,"__FEDERATION__",{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map}),k(e,"__VMOK__",e.__FEDERATION__)),e.__FEDERATION__.__GLOBAL_PLUGIN__??=[],e.__FEDERATION__.__INSTANCES__??=[],e.__FEDERATION__.moduleInfo??={},e.__FEDERATION__.__SHARE__??={},e.__FEDERATION__.__MANIFEST_LOADING__??={},e.__FEDERATION__.__PRELOADED_MAP__??=new Map}function A(e){I.__FEDERATION__.__INSTANCES__.push(e)}function T(){return I.__FEDERATION__.__DEBUG_CONSTRUCTOR__}function O(e,t=(0,r.Bb)()){t&&(I.__FEDERATION__.__DEBUG_CONSTRUCTOR__=e,I.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__="2.8.2")}function M(e,t){if("string"==typeof t){if(e[t])return{value:e[t],key:t};{const o=Object.keys(e);for(const r of o){const[o,n]=r.split(":"),i=`${o}:${t}`,s=e[i];if(s)return{value:s,key:i}}return{value:void 0,key:t}}}m(`getInfoWithoutType: "key" must be a string, got ${typeof t} (${JSON.stringify(t)}).`)}$(I),$(w);const x=()=>w.__FEDERATION__.moduleInfo,L=(e,t)=>{const o=M(t,p(e)).value;if(o&&!o.version&&"version"in e&&e.version&&(o.version=e.version),o)return o;if("version"in e&&e.version){const{version:t,...o}=e,r=p(o),n=M(w.__FEDERATION__.moduleInfo,r).value;if(n?.version===t)return n}},C=e=>L(e,w.__FEDERATION__.moduleInfo),P=(e,t)=>{const o=p(e);return w.__FEDERATION__.moduleInfo[o]=t,w.__FEDERATION__.moduleInfo},F=e=>(w.__FEDERATION__.moduleInfo={...w.__FEDERATION__.moduleInfo,...e},()=>{const t=Object.keys(e);for(const e of t)delete w.__FEDERATION__.moduleInfo[e]}),H=(e,t)=>{const o=t||`__FEDERATION_${e}:custom__`;return{remoteEntryKey:o,entryExports:I[o]}},D=e=>{const{__GLOBAL_PLUGIN__:t}=w.__FEDERATION__;e.forEach((e=>{-1===t.findIndex((t=>t.name===e.name))?t.push(e):f(`The plugin ${e.name} has been registered.`)}))},j=()=>w.__FEDERATION__.__GLOBAL_PLUGIN__,U=e=>I.__FEDERATION__.__PRELOADED_MAP__.get(e),G=e=>I.__FEDERATION__.__PRELOADED_MAP__.set(e,!0),q="default",B="global",V="[0-9A-Za-z-]+",W=`(?:\\+(${V}(?:\\.${V})*))`,J="0|[1-9]\\d*",K="[0-9]+",z="\\d*[a-zA-Z-][a-zA-Z0-9-]*",Y=`(?:${K}|${z})`,Q=`(?:${J}|${z})`,Z=`(?:-(${Q}(?:\\.${Q})*))`,X=`${J}|x|X|\\*`,ee=`[v=\\s]*(${X})(?:\\.(${X})(?:\\.(${X})(?:${Z})?${W}?)?)?`,te=`^\\s*(${ee})\\s+-\\s+(${ee})\\s*$`,oe="((?:<|>)?=?)",re=`(\\s*)${oe}\\s*([v=\\s]*(${K})\\.(${K})\\.(${K})(?:-?(${Y}(?:\\.${Y})*))?${W}?|${ee})`,ne="(?:~>?)",ie=`(\\s*)${ne}\\s+`,se="(?:\\^)",ae=`(\\s*)${se}\\s+`,ce=`^${se}${ee}$`,le=`^${ne}${ee}$`,he=`^${oe}\\s*${ee}$`,ue=`^${oe}\\s*(v?(${J})\\.(${J})\\.(${J})${Z}?${W}?)$|^$`;function de(e){return new RegExp(e)}function me(e){return!e||"x"===e.toLowerCase()||"*"===e}function fe(...e){return t=>e.reduce(((e,t)=>t(e)),t)}function pe(e){return e.match(de(ue))}function ye(e,t,o,r){const n=`${e}.${t}.${o}`;return r?`${n}-${r}`:n}function ge(e){return e.replace(de(te),((e,t,o,r,n,i,s,a,c,l,h,u)=>`${t=me(o)?"":me(r)?`>=${o}.0.0`:me(n)?`>=${o}.${r}.0`:`>=${t}`} ${a=me(c)?"":me(l)?`<${Number(c)+1}.0.0-0`:me(h)?`<${c}.${Number(l)+1}.0-0`:u?`<=${c}.${l}.${h}-${u}`:`<=${a}`}`.trim()))}function Ee(e){return e.replace(de(re),"$1$2$3")}function Se(e){return e.replace(de(ie),"$1~")}function be(e){return e.replace(de(ae),"$1^")}function _e(e){return e.trim().split(/\s+/).map((e=>e.replace(de(ce),((e,t,o,r,n)=>me(t)?"":me(o)?`>=${t}.0.0 <${Number(t)+1}.0.0-0`:me(r)?"0"===t?`>=${t}.${o}.0 <${t}.${Number(o)+1}.0-0`:`>=${t}.${o}.0 <${Number(t)+1}.0.0-0`:n?"0"===t?"0"===o?`>=${t}.${o}.${r}-${n} <${t}.${o}.${Number(r)+1}-0`:`>=${t}.${o}.${r}-${n} <${t}.${Number(o)+1}.0-0`:`>=${t}.${o}.${r}-${n} <${Number(t)+1}.0.0-0`:"0"===t?"0"===o?`>=${t}.${o}.${r} <${t}.${o}.${Number(r)+1}-0`:`>=${t}.${o}.${r} <${t}.${Number(o)+1}.0-0`:`>=${t}.${o}.${r} <${Number(t)+1}.0.0-0`)))).join(" ")}function Ie(e){return e.trim().split(/\s+/).map((e=>e.replace(de(le),((e,t,o,r,n)=>me(t)?"":me(o)?`>=${t}.0.0 <${Number(t)+1}.0.0-0`:me(r)?`>=${t}.${o}.0 <${t}.${Number(o)+1}.0-0`:n?`>=${t}.${o}.${r}-${n} <${t}.${Number(o)+1}.0-0`:`>=${t}.${o}.${r} <${t}.${Number(o)+1}.0-0`)))).join(" ")}function we(e){return e.split(/\s+/).map((e=>e.trim().replace(de(he),((e,t,o,r,n,i)=>{const s=me(o),a=s||me(r),c=a||me(n);return"="===t&&c&&(t=""),i="",s?">"===t||"<"===t?"<0.0.0-0":"*":t&&c?(a&&(r=0),n=0,">"===t?(t=">=",a?(o=Number(o)+1,r=0,n=0):(r=Number(r)+1,n=0)):"<="===t&&(t="<",a?o=Number(o)+1:r=Number(r)+1),"<"===t&&(i="-0"),`${t+o}.${r}.${n}${i}`):a?`>=${o}.0.0${i} <${Number(o)+1}.0.0-0`:c?`>=${o}.${r}.0${i} <${o}.${Number(r)+1}.0-0`:e})))).join(" ")}function ve(e){return e.trim().replace(de("(<|>)?=?\\s*\\*"),"")}function ke(e,t){return(e=Number(e)||e)>(t=Number(t)||t)?1:e===t?0:-1}function Re(e,t){return ke(e.major,t.major)||ke(e.minor,t.minor)||ke(e.patch,t.patch)||function(e,t){const{preRelease:o}=e,{preRelease:r}=t;if(void 0===o&&Boolean(r))return 1;if(Boolean(o)&&void 0===r)return-1;if(void 0===o&&void 0===r)return 0;for(let e=0,t=o.length;e<=t;e++){const t=o[e],n=r[e];if(t!==n)return void 0===t&&void 0===n?0:t?n?ke(t,n):-1:1}return 0}(e,t)}function Ne(e,t){return e.version===t.version}function $e(e,t){switch(e.operator){case"":case"=":return Ne(e,t);case">":return Re(e,t)<0;case">=":return Ne(e,t)||Re(e,t)<0;case"<":return Re(e,t)>0;case"<=":return Ne(e,t)||Re(e,t)>0;case void 0:return!0;default:return!1}}function Ae(e){return fe(_e,Ie,we,ve)(e)}function Te(e){return fe(ge,Ee,Se,be)(e.trim()).split(/\s+/).join(" ")}function Oe(e,t){if(!e)return!1;const o=pe(e);if(!o)return!1;const[,r,,n,i,s,a]=o,c={operator:r,version:ye(n,i,s,a),major:n,minor:i,patch:s,preRelease:a?.split(".")},l=t.split("||");for(const e of l){const t=e.trim();if(!t)return!0;if("*"===t||"x"===t)return!0;try{const e=Te(t);if(!e.trim())return!0;const o=e.split(" ").map((e=>Ae(e))).join(" ");if(!o.trim())return!0;const r=o.split(/\s+/).map((e=>e.trim().replace(de("^\\s*>=\\s*0.0.0\\s*$"),""))).filter(Boolean);if(0===r.length)continue;let n=!0;for(const e of r){const t=pe(e);if(!t){n=!1;break}const[,o,,r,i,s,a]=t;if(!$e({operator:o,version:ye(r,i,s,a),major:r,minor:i,patch:s,preRelease:a?.split(".")},c)){n=!1;break}}if(n)return!0}catch(e){console.error(`[semver] Error processing range part "${t}":`,e);continue}}return!1}var Me=o(151);function xe(e,t){const o=t.shared||{},r=t.name,n=Object.keys(o).reduce(((e,n)=>{const i=b(o[n]);return e[n]=e[n]||[],i.forEach((o=>{e[n].push(function(e,t,o,r){let n;return n="get"in e?e.get:"lib"in e?()=>Promise.resolve(e.lib):()=>Promise.resolve((()=>{m(`Cannot get shared "${o}" from "${t}": neither "get" nor "lib" is provided in the share config.`)})),e.shareConfig?.eager&&e.treeShaking?.mode&&m(`Invalid shared config for "${o}" 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:n,loaded:!(!e?.loaded&&!("lib"in e))||void 0,version:e.version??"0",scope:Array.isArray(e.scope)?e.scope:[e.scope??"default"],strategy:(e.strategy??r)||"version-first",treeShaking:e.treeShaking?{...e.treeShaking,mode:e.treeShaking.mode??"server-calc",status:e.treeShaking.status??Me.gF.UNKNOWN,useIn:[]}:void 0}}(o,r,n,t.shareStrategy))})),e}),{}),i={...e.shared};return Object.keys(n).forEach((e=>{i[e]?n[e].forEach((t=>{i[e].find((e=>e.version===t.version))||i[e].push(t)})):i[e]=n[e]})),{allShareInfos:i,newShareInfos:n}}function Le(e,t){if(!e)return!1;const{status:o,mode:r}=e;return o!==Me.gF.NO_USE&&(o===Me.gF.CALCULATED||"runtime-infer"===r&&(!t||He(e,t)))}function Ce(e,t){const o=e=>{if(!Number.isNaN(Number(e))){const t=e.split(".");let o=e;for(let e=0;e<3-t.length;e++)o+=".0";return o}return e};return!!Oe(o(e),`<=${o(t)}`)}const Pe=(e,t)=>{const o=t||function(e,t){return Ce(e,t)};return Object.keys(e).reduce(((e,t)=>e?o(e,t)||"0"===e?t:e:t),0)},Fe=e=>Boolean(e.loaded)||"function"==typeof e.lib,He=(e,t)=>{if(!e||!t)return!1;const{usedExports:o}=e;return!!o&&!!t.every((e=>o.includes(e)))};function De(e,t,o,r){const n=e[t][o];let i="",s=Le(r);const a=function(e,t){return s?!n[e].treeShaking||!!n[t].treeShaking&&!Fe(n[e].treeShaking)&&Ce(e,t):!Fe(n[e])&&Ce(e,t)};if(s){if(i=Pe(e[t][o],a),i)return{version:i,useTreesShaking:s};s=!1}return{version:Pe(e[t][o],a),useTreesShaking:s}}const je=e=>Fe(e)||(e=>Boolean(e.loading))(e);function Ue(e,t,o,r){const n=e[t][o];let i="",s=Le(r);const a=function(e,t){if(s){if(!n[e].treeShaking)return!0;if(!n[t].treeShaking)return!1;if(je(n[t].treeShaking))return!je(n[e].treeShaking)||Boolean(Ce(e,t));if(je(n[e].treeShaking))return!1}return je(n[t])?!je(n[e])||Boolean(Ce(e,t)):!je(n[e])&&Ce(e,t)};if(s){if(i=Pe(e[t][o],a),i)return{version:i,useTreesShaking:s};s=!1}return{version:Pe(e[t][o],a),useTreesShaking:s}}function Ge(e){return"loaded-first"===e?Ue:De}function qe(e,t,o,r){if(!e)return;const{shareConfig:n,scope:i=q,strategy:s,treeShaking:a}=o,c=Array.isArray(i)?i:[i];for(const i of c)if(n&&e[i]&&e[i][t]){const{requiredVersion:c}=n,{version:l,useTreesShaking:h}=Ge(s)(e,i,t,a),u=()=>{const r=e[i][t][l];if(n.singleton){if("string"==typeof c&&!Oe(l,c)){const e=`Version ${l} from ${l&&r.from} of shared singleton module ${t} does not satisfy the requirement of ${o.from} which needs ${c})`;n.strictVersion?m(e):f(e)}return{shared:r,useTreesShaking:h}}{if(!1===c||"*"===c)return{shared:r,useTreesShaking:h};if(Oe(l,c))return{shared:r,useTreesShaking:h};const o=Le(a);if(o)for(const[r,n]of Object.entries(e[i][t]))if(Le(n.treeShaking,a?.usedExports)&&Oe(r,c))return{shared:n,useTreesShaking:o};for(const[o,r]of Object.entries(e[i][t]))if(Oe(o,c))return{shared:r,useTreesShaking:!1}}},d={shareScopeMap:e,scope:i,pkgName:t,version:l,GlobalFederation:v.__FEDERATION__,shareInfo:o,resolver:u};return(r.emit(d)||d).resolver()}}function Be(){return v.__FEDERATION__.__SHARE__}function Ve(e){const{pkgName:t,extraOptions:o,shareInfos:r}=e,n=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),i=(...e)=>{const t={};for(const o of e)if(o)for(const[e,r]of Object.entries(o)){const o=t[e];n(o)&&n(r)?t[e]=i(o,r):void 0!==r&&(t[e]=r)}return t};return i((o?.resolver??(e=>{if(!e)return;const t={};return e.forEach((e=>{t[e.version]=e})),t[Pe(t,(function(e,o){return!Fe(t[e])&&Ce(e,o)}))]}))(r[t]),o?.customShareInfo)}const We=(e,t)=>{var o,r;e.useIn||(e.useIn=[]),o=e.useIn,r=t,-1===o.findIndex((e=>e===r))&&o.push(r)};function Je(e,t){return t&&e.treeShaking?e.treeShaking:e}var Ke=o(378);async function ze(e,t){try{return await e()}catch(e){return void(!t&&(0,Ke.R8)(e))}}function Ye(e,t){const o=/^(https?:)?\/\//i;return e.replace(o,"").replace(/\/$/,"")===t.replace(o,"").replace(/\/$/,"")}function Qe(e){let t,o=null,r=!0,n=2e4;const i=document.getElementsByTagName("script");for(let t=0;t<i.length;t++){const n=i[t],s=n.getAttribute("src");if(s&&Ye(s,e.url)){o=n,r=!1;break}}if(!o){const t=e.attrs;let r;o=document.createElement("script"),o.type="module"===t?.type?"module":"text/javascript",e.createScriptHook&&(r=e.createScriptHook(e.url,e.attrs),r instanceof HTMLScriptElement?o=r:"object"==typeof r&&("script"in r&&r.script&&(o=r.script),"timeout"in r&&r.timeout&&(n=r.timeout))),o.src||(o.src=e.url),t&&!r&&Object.keys(t).forEach((e=>{o&&("async"===e||"defer"===e?o[e]=t[e]:o.getAttribute(e)||o.setAttribute(e,t[e]))}))}let s=null;const a="undefined"!=typeof window?t=>{if(t.filename&&Ye(t.filename,e.url)){const o=new Error(`ScriptExecutionError: Script "${e.url}" loaded but threw a runtime error during execution: ${t.message} (${t.filename}:${t.lineno}:${t.colno})`);o.name="ScriptExecutionError",s=o}}:null;a&&window.addEventListener("error",a);const c=async(r,n)=>{clearTimeout(t),a&&window.removeEventListener("error",a);const i=()=>{if("error"===n?.type){const t=new Error(n?.isTimeout?`ScriptNetworkError: Script "${e.url}" timed out.`:`ScriptNetworkError: Failed to load script "${e.url}" - the script URL is unreachable or the server returned an error (network failure, 404, CORS, etc.)`);t.name="ScriptNetworkError",e?.onErrorCallback&&e?.onErrorCallback(t)}else s?e?.onErrorCallback&&e?.onErrorCallback(s):e?.cb&&e?.cb()};if(o&&(o.onerror=null,o.onload=null,ze((()=>{const{needDeleteScript:t=!0}=e;t&&o?.parentNode&&o.parentNode.removeChild(o)})),r&&"function"==typeof r)){const e=r(n);if(e instanceof Promise){const t=await e;return i(),t}return i(),e}i()};return o.onerror=c.bind(null,o.onerror),o.onload=c.bind(null,o.onload),t=setTimeout((()=>{c(null,{type:"error",isTimeout:!0})}),n),{script:o,needAttach:r}}function Ze(e,t){const{attrs:o={},createScriptHook:r}=t;return new Promise(((t,n)=>{const{script:i,needAttach:s}=Qe({url:e,cb:t,onErrorCallback:n,attrs:{fetchpriority:"high",...o},createScriptHook:r,needDeleteScript:!0});s&&document.head.appendChild(i)}))}const Xe=new Map;function et(e){if(!e)throw new Error("import specifier is required");if(Xe.has(e))return Xe.get(e);const t=new Function("name","return import(name)")(e).then((e=>e)).catch((t=>{throw console.error(`Error importing module ${e}:`,t),Xe.delete(e),t}));return Xe.set(e,t),t}const tt="undefined"==typeof ENV_TARGET||"web"!==ENV_TARGET?(e,t,o,r)=>{if(r?.createScriptHook){const t=r.createScriptHook(e);t&&"object"==typeof t&&"url"in t&&(e=t.url)}let n;try{n=new URL(e)}catch(e){return console.error("Error constructing URL:",e),void t(new Error(`Invalid URL: ${e}`))}(async()=>r?.fetch?(e,t)=>(async(e,t,o)=>{const r=await((e,t)=>o.lifecycle.fetch.emit(e,t))(e,t||{});return r&&r instanceof Response?r:fetch(e,t||{})})(e,t,r):fetch)().then((async e=>{if("esm"===o?.type||"module"===o?.type)return at(n.href,{fetch:e,vm:await et("vm")}).then((async e=>{await e.evaluate(),t(void 0,e.namespace)})).catch((e=>{t(e instanceof Error?e:new Error(`Script execution error: ${e}`))}));(async(e,r)=>{try{const n=await e(r.href),i=await n.text(),[s,a]=await Promise.all([et("path"),et("vm")]),c={exports:{},module:{exports:{}}},l=r.pathname.split("/").slice(0,-1).join("/"),h=s.basename(r.pathname),u=new a.Script(`(function(exports, module, require, __dirname, __filename) {${i}\n})`,{filename:h,importModuleDynamically:a.constants?.USE_MAIN_CONTEXT_DEFAULT_LOADER??et});let d;d=(await et("node:module")).createRequire("file:"===r.protocol||"node:"===r.protocol?r.href:s.join(process.cwd(),"__mf_require_base__.js")),u.runInThisContext()(c.exports,c.module,d,l,h);const m=c.module.exports||c.exports;if(o&&m&&o.globalName)return void t(void 0,m[o.globalName]||m);t(void 0,m)}catch(e){t(e instanceof Error?e:new Error(`Script execution error: ${e}`))}})(e,n)})).catch((e=>{t(e)}))}:(e,t,o,r)=>{t(new Error("createScriptNode is disabled in non-Node.js environment"))},ot="undefined"==typeof ENV_TARGET||"web"!==ENV_TARGET?(e,t)=>new Promise(((o,r)=>{tt(e,((e,n)=>{e?r(e):o(globalThis[t?.attrs?.globalName||`__FEDERATION_${t?.attrs?.name}:custom__`]=n)}),t.attrs,t.loaderHook)})):(e,t)=>{throw new Error("loadScriptNode is disabled in non-Node.js environment")},rt=new Map,nt=e=>e.startsWith("http:")||e.startsWith("https:"),it=e=>!(e.startsWith("./")||e.startsWith("../")||e.startsWith("/")||e.includes(":"));async function st(e,t,o){if(await async function(e){return!!e.startsWith("node:")||!!it(e)&&(await et("node:module")).builtinModules.includes(e)}(e))return async function(e,t){const o=`node-builtin:${e}`;return rt.has(o)?rt.get(o):async function(e,t,o){if("function"!=typeof o.SyntheticModule)throw new Error("vm.SyntheticModule is required to load Node.js built-in modules in ESM remote entries.");const r=function(e){const t=!e||"object"!=typeof e&&"function"!=typeof e?{default:e}:e,o={...t};return Object.prototype.hasOwnProperty.call(o,"default")||(o.default=t),o}(t),n=Object.keys(r),i=new o.SyntheticModule(n,(function(){for(const e of n)this.setExport(e,r[e])}),{identifier:e});return rt.set(e,i),await i.link((async()=>{throw new Error(`Node.js built-in module "${e}" should not request child modules.`)})),await i.evaluate(),i}(o,await et(e),t)}(e,o.vm);if(it(e))throw new Error(`Unsupported ESM module specifier "${e}". Only relative or absolute http(s) remote modules and Node.js built-in modules are supported.`);const r=new URL(e,t).href;if(!nt(r))throw new Error(`Unsupported ESM module specifier "${e}" resolved to "${r}". Only http(s) remote modules and Node.js built-in modules are supported.`);return at(r,o)}async function at(e,t){if(rt.has(e))return rt.get(e);const{fetch:o,vm:r}=t;if(!nt(e))throw new Error(`Unsupported ESM module URL "${e}". Only http(s) remote modules and Node.js built-in modules are supported.`);const n=await(await o(e)).text(),i=(await et("node:url")).pathToFileURL(process.cwd()).href,s=new r.SourceTextModule(n,{identifier:e,initializeImportMeta:t=>{t.url=function(e,t){const o=t.endsWith("/")?t:`${t}/`;return new URL(`__module_federation_remote__${function(e){const t=new URL(e),o=encodeURIComponent(t.protocol.slice(0,-1)),r=encodeURIComponent(t.host),n=t.pathname.split("/").map((e=>encodeURIComponent(e))).join("/"),i=encodeURIComponent(`${t.search}${t.hash}`);return`/${o}/${r}${n}${i?`/${i}`:""}`}(e)}`,o).href}(e,i)},importModuleDynamically:async o=>async function(e){if("linked"===e.status&&await e.evaluate(),"errored"===e.status)throw e.error;return e}(await st(o,e,t))});return rt.set(e,s),await s.link((async o=>st(o,e,t))),s}var ct=o(904),lt=o(10);const ht=".then(callbacks[0]).catch(callbacks[1])",ut=["Failed to fetch dynamically imported module","Importing a module script failed","error loading dynamically imported module"];function dt(e){return"esm"===e||"module"===e}function mt(e,t,o){const{remoteEntryKey:r,entryExports:n}=H(e,t);return n||m(ct.Fj,lt.UJ,{remoteName:e,remoteEntryUrl:o,remoteEntryKey:r}),n}async function ft({remoteInfo:e,remoteEntryExports:t,loaderHook:o,getEntryUrl:r,resourceContext:n}){const{entry:i,entryGlobalName:s,name:a,type:c}=e;return dt(c)?async function({entry:e,remoteEntryExports:t,name:o,getEntryUrl:r}){return new Promise(((n,i)=>{const s=e=>{if((t=e)instanceof TypeError&&ut.some((e=>t.message.includes(e)))){const t=e instanceof Error?e.message:String(e);try{m(ct.ML,lt.UJ,{remoteName:o,resourceUrl:a},t)}catch(e){return void i(e)}}var t;i(e)},a=r?r(e):e;try{t?n(t):"undefined"!=typeof FEDERATION_ALLOW_NEW_FUNCTION?new Function("callbacks",`import("${a}")${ht}`)([n,s]):import(a).then(n).catch(s)}catch(e){m(`Failed to load ESM entry from "${a}". ${e instanceof Error?e.message:String(e)}`)}}))}({entry:i,remoteEntryExports:t,name:a,getEntryUrl:r}):"system"===c?async function({entry:e,remoteEntryExports:t}){return new Promise(((o,r)=>{try{t?o(t):new Function("callbacks",`System.import("${e}")${ht}`)([o,r])}catch(t){m(`Failed to load SystemJS entry from "${e}". ${t instanceof Error?t.message:String(t)}`)}}))}({entry:i,remoteEntryExports:t}):async function({name:e,globalName:t,entry:o,remoteInfo:r,loaderHook:n,getEntryUrl:i,resourceContext:s}){const{entryExports:a}=H(e,t);if(a)return a;const c=i?i(o):o;return Ze(c,{attrs:{},createScriptHook:(e,t)=>{const o=n.lifecycle.createScript.emit({url:e,attrs:t,remoteInfo:r,resourceContext:s?{...s,url:e}:void 0});if(o)return o instanceof HTMLScriptElement||"script"in o||"timeout"in o?o:void 0}}).then((()=>mt(e,t,o)),(t=>{const o=t instanceof Error?t.message:String(t);m(ct.ML,lt.UJ,{remoteName:e,resourceUrl:c},o)}))}({entry:i,globalName:s,name:a,remoteInfo:e,loaderHook:o,getEntryUrl:r,resourceContext:n})}function pt(e){const{entry:t,name:o}=e;return(0,Ke.lG)(o,t)}async function yt(e){const{origin:t,remoteEntryExports:o,remoteInfo:n,getEntryUrl:i,resourceContext:s,_inErrorHandling:a=!1}=e,c=pt(n);if(o)return o;if(!N[c]){const e=t.remoteHandler.hooks.lifecycle.loadEntry,l=t.loaderHook;N[c]=e.emit({origin:t,loaderHook:l,remoteInfo:n,remoteEntryExports:o}).then((e=>e||(("undefined"!=typeof ENV_TARGET?"web"===ENV_TARGET:r.Hq)?ft({remoteInfo:n,remoteEntryExports:o,loaderHook:l,getEntryUrl:i,resourceContext:s}):async function({remoteInfo:e,loaderHook:t,resourceContext:o}){const{entry:r,entryGlobalName:n,name:i,type:s}=e,{entryExports:a}=H(i,n);return a||ot(r,{attrs:{name:i,globalName:n,type:s},loaderHook:{createScriptHook:(r,n={})=>{const i=t.lifecycle.createScript.emit({url:r,attrs:n,remoteInfo:e,resourceContext:o?{...o,url:r}:void 0});if(i)return"url"in i?i:void 0}}}).then((()=>mt(i,n,r))).catch((e=>{m(`Failed to load Node.js entry for remote "${i}" from "${r}". ${e instanceof Error?e.message:String(e)}`)}))}({remoteInfo:n,loaderHook:l,resourceContext:s})))).then((async e=>(await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:n,remoteEntryExports:e}),e))).catch((async e=>{const r=pt(n),i=e instanceof Error&&e.message.includes("ScriptExecutionError");if(e instanceof Error&&e.message.includes(ct.ML)&&!i&&!a){const e=e=>yt({...e,_inErrorHandling:!0}),i=await t.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:e,origin:t,remoteInfo:n,remoteEntryExports:o,globalLoading:N,uniqueKey:r});if(i)return await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:n,remoteEntryExports:i,recovered:!0}),i}throw await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:n,error:e}),e}))}return N[c]}function gt(e){return{...e,entry:"entry"in e?e.entry:"",type:e.type||B,entryGlobalName:e.entryGlobalName||e.name,shareScope:e.shareScope||q}}function Et(e,t){return t&&"."!==t?`${e}/${t.replace(/^\.\//,"")}`:e}function St(e,t){for(const o of e){const e=t.startsWith(o.name);let r=t.replace(o.name,"");if(e){if(r.startsWith("/"))return r=`.${r}`,{pkgNameOrAlias:o.name,expose:r,remote:o};if(""===r)return{pkgNameOrAlias:o.name,expose:".",remote:o}}const n=o.alias&&t.startsWith(o.alias);let i=o.alias&&t.replace(o.alias,"");if(o.alias&&n){if(i&&i.startsWith("/"))return i=`.${i}`,{pkgNameOrAlias:o.alias,expose:i,remote:o};if(""===i)return{pkgNameOrAlias:o.alias,expose:".",remote:o}}}}function bt(e){return{resourceCategory:"sync",share:!0,depsRemote:!0,...e}}function _t(e){return e instanceof Error&&(e.message.includes("timed out")||e.name.includes("Timeout"))}function It(e,t,o,r){return{url:t,status:o,resourceType:e.resourceType,initiator:e.initiator,id:e.id,error:r}}function wt({host:e,remoteInfo:t,url:o,attrs:r,context:n,needDeleteLink:i}){return new Promise((s=>{const{link:a,needAttach:c}=function(e){let t,o=null,r=!0,n=2e4;const i=document.getElementsByTagName("link");for(let t=0;t<i.length;t++){const n=i[t],s=n.getAttribute("href"),a=n.getAttribute("rel");if(s&&Ye(s,e.url)&&a===e.attrs.rel){o=n,r=!1;break}}if(!o){let t;o=document.createElement("link"),o.setAttribute("href",e.url);let r=!0;const i=e.attrs;e.createLinkHook&&(t=e.createLinkHook(e.url,i),t instanceof HTMLLinkElement?(o=t,r=!1):"object"==typeof t&&("link"in t&&t.link&&(o=t.link,r=!1),"timeout"in t&&t.timeout&&(n=t.timeout))),i&&r&&Object.keys(i).forEach((e=>{o&&!o.getAttribute(e)&&o.setAttribute(e,i[e])}))}if(!r)return Promise.resolve().then((()=>{e?.cb&&e?.cb()})),{link:o,needAttach:r};const s=(r,n)=>{t&&clearTimeout(t);const i=()=>{if("error"===n?.type){const t=new Error(n?.isTimeout?`LinkNetworkError: Link "${e.url}" timed out.`:`LinkNetworkError: Failed to load link "${e.url}" - the URL is unreachable or the server returned an error.`);t.name="LinkNetworkError",e?.onErrorCallback&&e?.onErrorCallback(t)}else e?.cb&&e?.cb()};if(o&&(o.onerror=null,o.onload=null,ze((()=>{const{needDeleteLink:t=!0}=e;t&&o?.parentNode&&o.parentNode.removeChild(o)})),r)){const e=r(n);return i(),e}i()};return o.onerror=s.bind(null,o.onerror),o.onload=s.bind(null,o.onload),t=setTimeout((()=>{s(null,{type:"error",isTimeout:!0})}),n),{link:o,needAttach:r}}({url:o,cb:()=>{s(It(n,o,c?"success":"cached"))},onErrorCallback:e=>{s(It(n,o,_t(e)?"timeout":"error",e))},attrs:r,createLinkHook:(o,r)=>{const i=e.loaderHook.lifecycle.createLink.emit({url:o,attrs:r,remoteInfo:t,resourceContext:{...n,url:o}});return HTMLLinkElement,i},needDeleteLink:i});c&&document.head.appendChild(a)}))}function vt({host:e,remoteInfo:t,url:o,attrs:r,context:n}){return new Promise((i=>{const{script:s,needAttach:a}=Qe({url:o,cb:()=>{i(It(n,o,a?"success":"cached"))},onErrorCallback:e=>{i(It(n,o,_t(e)?"timeout":"error",e))},attrs:r,createScriptHook:(o,r)=>{const i=e.loaderHook.lifecycle.createScript.emit({url:o,attrs:r,remoteInfo:t,resourceContext:{...n,url:o}});return HTMLScriptElement,i},needDeleteScript:!0});a&&document.head.appendChild(s)}))}function kt(e,t){return{...e,resourceType:t}}function Rt(e,t,o,r=!0,n={initiator:"preloadRemote",id:e.name}){const{cssAssets:i,jsAssetsWithoutEntry:s,entryAssets:a}=o,c=[];if(t.options.inBrowser){if(a.forEach((e=>{const{moduleInfo:o}=e;c.push(async function(e,t,o,r){const n=e.moduleCache.get(o.name),i=o.entry;if(n?.remoteEntryExports)return It(r,i,"cached");try{if(!await yt({origin:e,remoteInfo:o,remoteEntryExports:n?.remoteEntryExports,resourceContext:{...r,url:i}}))throw new Error(`Failed to load remoteEntry "${i}".`);return It(r,i,"success")}catch(e){return It(r,i,_t(e)?"timeout":"error",e)}}(t,0,o,kt(n,"remoteEntry")))})),r){const o={rel:"preload",as:"style"};i.forEach((r=>{c.push(wt({host:t,remoteInfo:e,url:r,attrs:o,context:kt(n,"css")}))}))}else{const o={rel:"stylesheet",type:"text/css"};i.forEach((r=>{c.push(wt({host:t,remoteInfo:e,url:r,attrs:o,needDeleteLink:!1,context:kt(n,"css")}))}))}let o=vt,l={fetchpriority:"high",type:"text/javascript"};r?(o=wt,l={rel:"preload",as:"script"}):dt(e.type)&&(o=wt,l={rel:"modulepreload",fetchpriority:"high"}),s.forEach((r=>{c.push(o({host:t,remoteInfo:e,url:r,attrs:l,context:kt(n,"js")}))}))}return Promise.all(c)}var Nt={global:{Global:v,nativeGlobal:w,resetFederationGlobalInfo:function(){I.__FEDERATION__.__GLOBAL_PLUGIN__=[],I.__FEDERATION__.__INSTANCES__=[],I.__FEDERATION__.moduleInfo={},I.__FEDERATION__.__SHARE__={},I.__FEDERATION__.__MANIFEST_LOADING__={},Object.keys(N).forEach((e=>{delete N[e]}))},setGlobalFederationInstance:A,getGlobalFederationConstructor:T,setGlobalFederationConstructor:O,getInfoWithoutType:M,getGlobalSnapshot:x,getTargetSnapshotInfoByModuleInfo:L,getGlobalSnapshotInfoByModuleInfo:C,setGlobalSnapshotInfoByModuleInfo:P,addGlobalSnapshot:F,getRemoteEntryExports:H,registerGlobalPlugins:D,getGlobalHostPlugins:j,getPreloaded:U,setPreloaded:G},share:{getRegisteredShare:qe,getGlobalShareScope:Be},utils:{matchRemoteWithNameAndExpose:St,preloadAssets:Rt,getRemoteInfo:gt}};function $t(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 At(e){const t={};for(const[o,r]of Object.entries(e.shared)){const e=r[0];e&&(t[o]={version:e.version,singleton:e.shareConfig?.singleton,requiredVersion:!1!==e.shareConfig?.requiredVersion&&e.shareConfig?.requiredVersion,eager:e.eager,strictVersion:e.shareConfig?.strictVersion})}return{project:{name:e.name,mfRole:e.remotes?.length>0?"host":"unknown"},mfConfig:{name:e.name,remotes:e.remotes?.map($t)??[],shared:t}}}function Tt(e){if(!e||!("modules"in e)||!Array.isArray(e.modules))return;const t=e.modules.map((e=>e.moduleName)).filter(Boolean);return t.length?t.join(","):void 0}var Ot=class{constructor({remoteInfo:e,host:t}){this.inited=!1,this.initing=!1,this.lib=void 0,this.remoteInfo=e,this.host=t}async getEntry(e){if(this.remoteEntryExports)return this.remoteEntryExports;const t=await yt({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports,resourceContext:{initiator:"loadRemote",id:Et(this.remoteInfo.name,e),resourceType:"remoteEntry"}});return d(t,`remoteEntryExports is undefined \n ${(0,Ke.ML)(this.remoteInfo)}`),this.remoteEntryExports=t,this.remoteEntryExports}async init(e,t,o,r){const n=await this.getEntry(r);if(this.inited)return await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:n,cached:!0,origin:this.host}),n;if(this.initPromise){try{await this.initPromise,await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:n,cached:!0,origin:this.host})}catch(o){throw await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:n,error:o,cached:!0,origin:this.host}),o}return n}this.initing=!0,this.initPromise=(async()=>{await this.host.loaderHook.lifecycle.beforeInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,origin:this.host});const{remoteEntryInitOptions:r,shareScope:i,initScope:s}=function(e,t,o){const r=t,n=Array.isArray(e.shareScope)?e.shareScope:[e.shareScope];n.length||n.push("default"),n.forEach((e=>{r[e]||(r[e]={})}));const i={version:e.version||"",shareScopeKeys:Array.isArray(e.shareScope)?n:e.shareScope||"default"};return Object.defineProperty(i,"shareScopeMap",{value:r,enumerable:!1}),{remoteEntryInitOptions:i,shareScope:r[n[0]],initScope:o??[]}}(this.remoteInfo,this.host.shareScopeMap,o),a=await this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:i,remoteEntryInitOptions:r,initScope:s,remoteInfo:this.remoteInfo,origin:this.host});void 0===n?.init&&m(ct.MC,lt.UJ,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName},void 0,At(this.host.options));try{await n.init(a.shareScope,a.initScope,a.remoteEntryInitOptions)}catch(e){m(ct.uz,lt.UJ,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName,shareScope:this.remoteInfo.shareScope},`${e}`,At(this.host.options))}await this.host.hooks.lifecycle.initContainer.emit({...a,id:e,remoteSnapshot:t,remoteEntryExports:n}),this.inited=!0})();try{await this.initPromise,await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:n,origin:this.host})}catch(o){throw await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:n,error:o,origin:this.host}),o}finally{this.initing=!1,this.initPromise=void 0}return n}async get(e,t,o,r){const{loadFactory:n=!0}=o||{loadFactory:!0},i=await this.init(e,r,void 0,t);let s;this.lib=i,await this.host.loaderHook.lifecycle.beforeGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:i,origin:this.host});try{const o=await this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports:i,expose:t,moduleInfo:this.remoteInfo});s="function"==typeof o?o:void 0,s||(s=await i.get(t)),s||m(ct.BC,lt.UJ,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,expose:t,requestId:e,availableExposes:Tt(r)},void 0,At(this.host.options)),await this.host.loaderHook.lifecycle.afterGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:i,moduleFactory:s,origin:this.host})}catch(o){throw await this.host.loaderHook.lifecycle.afterGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:i,error:o,origin:this.host}),o}const a=((e,t)=>{let o;return o=e.endsWith("/")?e.slice(0,-1):e,t.startsWith(".")&&(t=t.slice(1)),o+=t,o})(this.remoteInfo.name,t),c=this.wraperFactory(s,a);if(!n)return c;await this.host.loaderHook.lifecycle.beforeExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:n,origin:this.host});try{const o=await c();return await this.host.loaderHook.lifecycle.afterExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:n,exposeModule:o,origin:this.host}),o}catch(o){throw await this.host.loaderHook.lifecycle.afterExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:n,error:o,origin:this.host}),o}}wraperFactory(e,t){function o(e,t){e&&"object"==typeof e&&Object.isExtensible(e)&&!Object.getOwnPropertyDescriptor(e,Symbol.for("mf_module_id"))&&Object.defineProperty(e,Symbol.for("mf_module_id"),{value:t,enumerable:!1})}return()=>{const r=e();return r instanceof Promise?r.then((e=>(o(e,t),e))):(o(r,t),r)}}},Mt=class{constructor(e){this.registerPlugins={},this.lifecycle=e,this.lifecycleKeys=Object.keys(e)}applyPlugin(e,t){var o;d((o=e,"[object Object]"===S.call(o)),"Plugin configuration is invalid.");const r=e.name;d(r,"A name must be provided by the plugin."),this.registerPlugins[r]||(this.registerPlugins[r]=e,e.apply?.(t),Object.keys(this.lifecycle).forEach((t=>{const o=e[t];o&&this.lifecycle[t].on(o)})))}removePlugin(e){d(e,"A name is required.");const t=this.registerPlugins[e];d(t,`The plugin "${e}" is not registered.`),Object.keys(t).forEach((e=>{"name"!==e&&this.lifecycle[e].remove(t[e])}))}},xt=class{constructor(e){this.type="",this.listeners=new Set,e&&(this.type=e)}on(e){"function"==typeof e&&this.listeners.add(e)}once(e){const t=this;this.on((function o(...r){return t.remove(o),e.apply(null,r)}))}emit(...e){let t;return this.listeners.size>0&&this.listeners.forEach((o=>{const r=o(...e);void 0!==r&&(t=r)})),t}remove(e){this.listeners.delete(e)}removeAll(){this.listeners.clear()}};function Lt(e,t){if(!E(t))return!1;if(e!==t)for(const o in e)if(!(o in t))return!1;return!0}var Ct=class extends xt{constructor(e){super(),this.onerror=m,this.type=e}emit(e){E(e)||m(`The data for the "${this.type}" hook should be an object.`);for(const t of this.listeners)try{const o=t(e);if(void 0===o)continue;if(!Lt(e,o)){this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);break}e=o}catch(e){f(e),this.onerror(e)}return e}},Pt=class extends xt{constructor(e){super(),this.onerror=m,this.type=e}emit(e){E(e)||m(`The response data for the "${this.type}" hook must be an object.`);const t=Array.from(this.listeners);if(t.length>0){let o=0;const r=t=>(f(t),this.onerror(t),e),n=i=>{if(void 0!==i&&Lt(e,i))e=i;else if(void 0!==i)return this.onerror(`A plugin returned an incorrect value for the "${this.type}" type.`),e;if(o<t.length)try{return Promise.resolve(t[o++](e)).then(n,r)}catch(e){return r(e)}return e};return Promise.resolve(n(e))}return Promise.resolve(e)}},Ft=class extends xt{emit(...e){let t;const o=Array.from(this.listeners);if(o.length>0){let r=0;const n=t=>!1!==t&&(r<o.length?Promise.resolve(o[r++].apply(null,e)).then((o=>void 0===o||1===e.length&&o===e[0]?n(t):n(o))):t);t=n()}return Promise.resolve(t)}};function Ht(e,t){const o=_(t);o.url||m(ct.uF,lt.UJ,{remoteName:e.name});let n=(0,Ke.Al)(t,o.url);r.Hq||n.startsWith("http")||(n=`https:${n}`),e.type=o.type,e.entryGlobalName=o.globalName,e.entry=n,e.version=t.version,e.buildVersion=t.buildVersion}const Dt=(e,t)=>{if(!e)return t;const o=(e=>{if("."===e)return"";if(e.startsWith("./"))return e.replace("./","");if(e.startsWith("/")){const t=e.slice(1);return t.endsWith("/")?t.slice(0,-1):t}return e})(e);return o?o.endsWith("/")?`${o}${t}`:`${o}/${t}`:t};function jt(e){return!(!("remoteEntry"in e)||!e.remoteEntry.includes(Me.CQ))}function Ut(e){const t=e.split(":");return 1===t.length?{name:t[0],version:void 0}:2===t.length?{name:t[0],version:t[1]}:{name:t[1],version:t[2]}}function Gt(e,t,o,r,n={},i){const{value:s}=M(e,p(t)),a=i||s;if(a&&!jt(a)&&(o(a,t,r),a.remotesInfo)){const t=Object.keys(a.remotesInfo);for(const r of t){if(n[r])continue;n[r]=!0;const t=Ut(r),i=a.remotesInfo[r];Gt(e,{name:t.name,version:i.matchedVersion},o,!1,n,void 0)}}}const qt=(e,t)=>document.querySelector(`${e}[${"link"===e?"href":"src"}="${t}"]`);function Bt(e,t,o,r,n){const i=[],s=[],a=[],c=new Set,l=new Set,{options:h}=e,{preloadConfig:u}=t,{depsRemote:d}=u;if(Gt(r,o,((t,o,r)=>{let n;if(r)n=u;else if(Array.isArray(d)){const e=d.find((e=>e.nameOrAlias===o.name||e.nameOrAlias===o.alias));if(!e)return;n=bt(e)}else{if(!0!==d)return;n=u}const c=(0,Ke.Al)(t,_(t).url);c&&a.push({name:o.name,moduleInfo:{name:o.name,entry:c,type:"remoteEntryType"in t?t.remoteEntryType:"global",entryGlobalName:"globalName"in t?t.globalName:o.name,shareScope:"",version:"version"in t?t.version:void 0},url:c});let l="modules"in t?t.modules:[];const h=(m=n.exposes)?m.map((e=>"."===e?e:e.startsWith("./")?e.replace("./",""):e)):[];var m;function f(e){const o=e.map((e=>(0,Ke.Al)(t,e)));return n.filter?o.filter(n.filter):o}if(h.length&&"modules"in t&&(l=t?.modules?.reduce(((e,t)=>(-1!==h?.indexOf(t.moduleName)&&e.push(t),e)),[])),l){const r=l.length;for(let a=0;a<r;a++){const r=l[a],c=`${o.name}/${r.moduleName}`;e.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:"."===r.moduleName?o.name:c,name:o.name,remoteSnapshot:t,preloadConfig:n,remote:o,origin:e}),U(c)||("all"===n.resourceCategory?(i.push(...f(r.assets.css.async)),i.push(...f(r.assets.css.sync)),s.push(...f(r.assets.js.async)),s.push(...f(r.assets.js.sync))):"sync"===n.resourceCategory&&(i.push(...f(r.assets.css.sync)),s.push(...f(r.assets.js.sync))),G(c))}}}),!0,{},n),n.shared&&n.shared.length>0){const t=(t,o)=>{const{shared:r}=qe(e.shareScopeMap,o.sharedName,t,e.sharedHandler.hooks.lifecycle.resolveShare)||{};r&&"function"==typeof r.lib&&(o.assets.js.sync.forEach((e=>{c.add(e)})),o.assets.css.sync.forEach((e=>{l.add(e)})))};n.shared.forEach((e=>{const o=h.shared?.[e.sharedName];if(!o)return;const r=e.version?o.find((t=>t.version===e.version)):o;r&&b(r).forEach((o=>{t(o,e)}))}))}const m=s.filter((e=>!c.has(e)&&!qt("script",e)));return{cssAssets:i.filter((e=>!l.has(e)&&!qt("link",e))),jsAssetsWithoutEntry:m,entryAssets:a.filter((e=>!qt("script",e.url)))}}function Vt(e,t){const o=C({name:t.name,version:t.options.version}),r=o&&"remotesInfo"in o&&o.remotesInfo&&M(o.remotesInfo,e.name).value;return r&&r.matchedVersion?{hostGlobalSnapshot:o,globalSnapshot:x(),remoteSnapshot:C({name:e.name,version:r.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:x(),remoteSnapshot:C({name:e.name,version:"version"in e?e.version:void 0})}}var Wt=class{constructor(e){this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new Mt({beforeLoadRemoteSnapshot:new Ft("beforeLoadRemoteSnapshot"),loadSnapshot:new Pt("loadGlobalSnapshot"),loadRemoteSnapshot:new Pt("loadRemoteSnapshot"),afterLoadSnapshot:new Pt("afterLoadSnapshot")}),this.manifestLoading=v.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=e,this.loaderHook=e.loaderHook}async loadRemoteSnapshotInfo({moduleInfo:e,id:t,initiator:o="loadRemote"}){const{options:n}=this.HostInstance;await this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:n,moduleInfo:e,origin:this.HostInstance});let i=C({name:this.HostInstance.options.name,version:this.HostInstance.options.version});i||(i={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}},F({[this.HostInstance.options.name]:i})),i&&"remotesInfo"in i&&!M(i.remotesInfo,e.name).value&&("version"in e||"entry"in e)&&(i.remotesInfo={...i?.remotesInfo,[e.name]:{matchedVersion:"version"in e?e.version:e.entry}});const{hostGlobalSnapshot:s,remoteSnapshot:a,globalSnapshot:c}=this.getGlobalRemoteInfo(e),{remoteSnapshot:l,globalSnapshot:h}=await this.hooks.lifecycle.loadSnapshot.emit({options:n,moduleInfo:e,hostGlobalSnapshot:s,remoteSnapshot:a,globalSnapshot:c});let u,d;if(l)if(jt(l)){const n=r.Hq?l.remoteEntry:l.ssrRemoteEntry||l.remoteEntry||"",i=await this.loadManifestSnapshot(n,e,{},{initiator:o,id:t||e.name});u=i,d=P({...e,entry:n},i)}else{const{remoteSnapshot:t}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:l,from:"global"});u=t,d=h}else if(y(e)){const r=await this.loadManifestSnapshot(e.entry,e,{},{initiator:o,id:t||e.name});u=r,d=P(e,r)}else m(ct.Tz,lt.UJ,{remoteName:e.name,remoteVersion:e.version,hostName:this.HostInstance.options.name,globalSnapshot:JSON.stringify(h)},void 0,At(this.HostInstance.options));return await this.hooks.lifecycle.afterLoadSnapshot.emit({id:t,host:this.HostInstance,options:n,moduleInfo:e,remoteSnapshot:u}),{remoteSnapshot:u,globalSnapshot:d}}getGlobalRemoteInfo(e){return Vt(e,this.HostInstance)}async getManifestJson(e,t,o,r){return(async()=>{const o=gt(t);let n=this.manifestCache.get(e);if(n)return n;try{let t=await this.loaderHook.lifecycle.fetch.emit(e,{},o,r?{...r,url:e,resourceType:"manifest"}:void 0);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",remote:o,origin:this.HostInstance}),n||(delete this.manifestLoading[e],m(ct.F0,lt.UJ,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name},`${r}`,At(this.HostInstance.options)))}const i=[!n.metaData&&"metaData",!n.exposes&&"exposes",!n.shared&&"shared"].filter(Boolean);return i.length>0&&await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:new Error(`"${e}" is not a valid federation manifest for remote "${t.name}". Missing required fields: ${i.join(", ")}.`),from:"runtime",lifecycle:"afterResolve",remote:o,origin:this.HostInstance}),i.length>0&&m(ct.u0,lt.UJ,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name,missingFields:i.join(",")},void 0,At(this.HostInstance.options)),this.manifestCache.set(e,n),n})()}async loadManifestSnapshot(e,t,o,r){return this.manifestLoading[e]||(this.manifestLoading[e]=(async()=>{const n=await this.getManifestJson(e,t,o,r),i=function(e,t={}){const{remotes:o={},overrides:r={},version:n}=t;let i;const s=()=>"publicPath"in e.metaData?"auto"!==e.metaData.publicPath&&""!==e.metaData.publicPath||!n?e.metaData.publicPath:n.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"):e.metaData.getPublicPath,a=Object.keys(r);let c={};Object.keys(o).length||(c=e.remotes?.reduce(((e,t)=>{let o;const n=t.federationContainerName;return o=a.includes(n)?r[n]:"version"in t?t.version:t.entry,e[n]={matchedVersion:o},e}),{})||{}),Object.keys(o).forEach((e=>c[e]={matchedVersion:a.includes(e)?r[e]:o[e]}));const{remoteEntry:{path:l,name:h,type:u},types:d={path:"",name:"",zip:"",api:""},buildInfo:{buildVersion:m},globalName:f,ssrRemoteEntry:p}=e.metaData,{exposes:y}=e;let g={version:n||"",buildVersion:m,globalName:f,remoteEntry:Dt(l,h),remoteEntryType:u,remoteTypes:Dt(d.path,d.name),remoteTypesZip:d.zip||"",remoteTypesAPI:d.api||"",remotesInfo:c,shared:e?.shared.map((e=>({assets:e.assets,sharedName:e.name,version:e.version,usedExports:e.referenceExports||[]}))),modules:y?.map((e=>({moduleName:e.name,modulePath:e.path,assets:e.assets})))};if("publicPath"in e.metaData?(i={...g,publicPath:s()},"string"==typeof e.metaData.ssrPublicPath&&(i.ssrPublicPath=e.metaData.ssrPublicPath)):i={...g,getPublicPath:s()},p){const e=Dt(p.path,p.name);i.ssrRemoteEntry=e,i.ssrRemoteEntryType=p.type||"commonjs-module"}return i}(n,{version:e}),{remoteSnapshot:s}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,manifestJson:n,remoteSnapshot:i,manifestUrl:e,from:"manifest"});return s})().then((e=>e))),this.manifestLoading[e]}},Jt=class{constructor(e){this.hooks=new Mt({beforeRegisterShare:new Ct("beforeRegisterShare"),afterResolve:new Pt("afterResolve"),beforeLoadShare:new Pt("beforeLoadShare"),loadShare:new Ft,afterLoadShare:new xt("afterLoadShare"),errorLoadShare:new xt("errorLoadShare"),resolveShare:new Ct("resolveShare"),initContainerShareScopeMap:new Ct("initContainerShareScopeMap")}),this.host=e,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(e.options)}emitAfterLoadShare({lifecycle:e,pkgName:t,shareInfo:o,selectedShared:r}){try{this.hooks.lifecycle.afterLoadShare.emit({pkgName:t,shareInfo:o,selectedShared:r,shared:this.host.options.shared,shareScopeMap:this.shareScopeMap,lifecycle:e,origin:this.host})}catch(e){f(e)}}emitErrorLoadShare({lifecycle:e,pkgName:t,shareInfo:o,error:r,recovered:n}){try{this.hooks.lifecycle.errorLoadShare.emit({pkgName:t,shareInfo:o,shared:this.host.options.shared,shareScopeMap:this.shareScopeMap,lifecycle:e,origin:this.host,error:r,recovered:n})}catch(e){f(e)}}registerShared(e,t){const{newShareInfos:o,allShareInfos:r}=xe(e,t);return Object.keys(o).forEach((e=>{o[e].forEach((o=>{o.scope.forEach((r=>{this.hooks.lifecycle.beforeRegisterShare.emit({origin:this.host,pkgName:e,shared:o}),this.shareScopeMap[r]?.[e]||this.setShared({pkgName:e,lib:o.lib,get:o.get,loaded:o.loaded||Boolean(o.lib),shared:o,from:t.name})}))}))})),{newShareInfos:o,allShareInfos:r}}async loadShare(e,t){const{host:o}=this,r=Ve({pkgName:e,extraOptions:t,shareInfos:o.options.shared});let n=r;try{r?.scope&&await Promise.all(r.scope.map((async e=>{await Promise.all(this.initializeSharing(e,{strategy:r.strategy}))}))),n=(await this.hooks.lifecycle.beforeLoadShare.emit({pkgName:e,shareInfo:r,shared:o.options.shared,origin:o})).shareInfo,d(n,`Cannot find shared "${e}" in host "${o.options.name}". Ensure the shared config for "${e}" is declared in the federation plugin options and the host has been initialized before loading shares.`);const i=n,{shared:s,useTreesShaking:a}=qe(this.shareScopeMap,e,n,this.hooks.lifecycle.resolveShare)||{};if(s){const t=Je(s,a);if(t.lib)return We(t,o.options.name),this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:i,selectedShared:s}),t.lib;if(t.loading&&!t.loaded){const r=await t.loading;return t.loaded=!0,t.lib||(t.lib=r),We(t,o.options.name),this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:i,selectedShared:s}),r}{const r=async()=>{const e=await t.get();return We(t,o.options.name),t.loaded=!0,t.lib=e,e},n=r();this.setShared({pkgName:e,loaded:!1,shared:s,from:o.options.name,lib:null,loading:n,treeShaking:a?t:void 0});const c=await n;return this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:i,selectedShared:s}),c}}{if(t?.customShareInfo)return this.emitErrorLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:i,recovered:!0}),!1;const r=Le(i.treeShaking),n=Je(i,r),s=async()=>{const t=await n.get();n.lib=t,n.loaded=!0,We(n,o.options.name);const{shared:r,useTreesShaking:s}=qe(this.shareScopeMap,e,i,this.hooks.lifecycle.resolveShare)||{};if(r){const e=Je(r,s);e.lib=t,e.loaded=!0,r.from=i.from}return t},a=s();this.setShared({pkgName:e,loaded:!1,shared:i,from:o.options.name,lib:null,loading:a,treeShaking:r?n:void 0});const c=await a;return this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:i,selectedShared:i}),c}}catch(t){throw this.emitErrorLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:n,error:t}),t}}initializeSharing(e=q,t){const{host:o}=this,r=t?.from,n=t?.strategy;let i=t?.initScope;const s=[];if("build"!==r){const{initTokens:t}=this;i||(i=[]);let o=t[e];if(o||(o=t[e]={from:this.host.name}),i.indexOf(o)>=0)return s;i.push(o)}const a=this.shareScopeMap,c=o.options.name;a[e]||(a[e]={});const l=a[e];return Object.keys(o.options.shared).forEach((t=>{o.options.shared[t].forEach((o=>{o.scope.includes(e)&&((e,t)=>{const{version:o,eager:r}=t;l[e]=l[e]||{};const n=l[e],i=n[o]&&Je(n[o]),s=Boolean(i&&("eager"in i&&i.eager||"shareConfig"in i&&i.shareConfig?.eager));(!i||"loaded-first"!==i.strategy&&!i.loaded&&(Boolean(!r)!==!s?r:c>n[o].from))&&(n[o]=t)})(t,o)}))})),"version-first"!==o.options.shareStrategy&&"version-first"!==n||o.options.remotes.forEach((t=>{t.shareScope===e&&s.push((async e=>{const{module:t}=await o.remoteHandler.getRemoteModuleAndOptions({id:e});let r;try{r=await t.getEntry()}catch(n){if(r=await o.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:n,from:"runtime",lifecycle:"beforeLoadShare",remote:t.remoteInfo,origin:o}),!r)return}finally{r?.init&&!t.initing&&(t.remoteEntryExports=r,await t.init(void 0,void 0,i))}})(t.name))})),s}loadShareSync(e,t){const{host:o}=this,r=Ve({pkgName:e,extraOptions:t,shareInfos:o.options.shared});try{r?.scope&&r.scope.forEach((e=>{this.initializeSharing(e,{strategy:r.strategy})}));const{shared:n}=qe(this.shareScopeMap,e,r,this.hooks.lifecycle.resolveShare)||{};if(n){if("function"==typeof n.lib)return We(n,o.options.name),n.loaded||(n.loaded=!0,n.from===o.options.name&&(r.loaded=!0)),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:r,selectedShared:n}),n.lib;if("function"==typeof n.get){const t=n.get();if(!(t instanceof Promise))return We(n,o.options.name),this.setShared({pkgName:e,loaded:!0,from:o.options.name,lib:t,shared:n}),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:r,selectedShared:n}),t}}if(r.lib)return r.loaded||(r.loaded=!0),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:r,selectedShared:r}),r.lib;if(r.get){const n=r.get();return n instanceof Promise&&m("build"===t?.from?ct.Fd:ct.yB,lt.UJ,{hostName:o.options.name,sharedPkgName:e},void 0,At(o.options)),r.lib=n,this.setShared({pkgName:e,loaded:!0,from:o.options.name,lib:r.lib,shared:r}),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:r,selectedShared:r}),r.lib}m(ct.yB,lt.UJ,{hostName:o.options.name,sharedPkgName:e},void 0,At(o.options))}catch(t){throw this.emitErrorLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:r,error:t}),t}}initShareScopeMap(e,t,o={}){const{host:r}=this;this.shareScopeMap[e]=t,this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:t,options:r.options,origin:r,scopeName:e,hostShareScopeMap:o.hostShareScopeMap})}setShared({pkgName:e,shared:t,from:o,lib:r,loading:n,loaded:i,get:s,treeShaking:a}){const{version:c,scope:l="default",...h}=t;(Array.isArray(l)?l:[l]).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],...h,lib:r});const l=this.shareScopeMap[t][e][c];(e=>{const t=(e,t,o)=>{o&&!e[t]&&(e[t]=o)},o=a?e.treeShaking:e;t(o,"loaded",i),t(o,"loading",n),t(o,"get",s)})(l),o&&l.from!==o&&(l.from=o)}))}_setGlobalShareScopeMap(e){const t=Be(),o=e.id||e.name;o&&!t[o]&&(t[o]=this.shareScopeMap)}},Kt=class{constructor(e){this.hooks=new Mt({beforeRegisterRemote:new Ct("beforeRegisterRemote"),registerRemote:new Ct("registerRemote"),beforeRequest:new Pt("beforeRequest"),afterMatchRemote:new Ft("afterMatchRemote"),onLoad:new Ft("onLoad"),afterLoadRemote:new Ft("afterLoadRemote"),handlePreloadModule:new xt("handlePreloadModule"),errorLoadRemote:new Ft("errorLoadRemote"),beforePreloadRemote:new Ft("beforePreloadRemote"),generatePreloadAssets:new Ft("generatePreloadAssets"),afterPreloadRemote:new Ft("afterPreloadRemote"),loadEntry:new Ft}),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){const{remote:o,expose:r}=t,{name:n,alias:i}=o;if(this.idToRemoteMap[e]={name:o.name,expose:r},i&&e.startsWith(n)){const t=e.replace(n,i);this.idToRemoteMap[t]={name:o.name,expose:r}}else if(i&&e.startsWith(i)){const t=e.replace(i,n);this.idToRemoteMap[t]={name:o.name,expose:r}}}async loadRemote(e,t){const{host:o}=this,r=St(o.options.remotes,e);let n,i=e,s=r?.expose,a=r?gt(r.remote):void 0;try{const{loadFactory:r=!0}=t||{loadFactory:!0},{module:c,moduleOptions:l,remoteMatchInfo:h}=await this.getRemoteModuleAndOptions({id:e}),{pkgNameOrAlias:u,remote:d,expose:m,id:f,remoteSnapshot:p}=h;i=f,s=m,a=gt(d);const y=await c.get(f,m,t,p),g=await this.hooks.lifecycle.onLoad.emit({id:f,pkgNameOrAlias:u,expose:m,exposeModule:r?y:void 0,exposeModuleFactory:r?void 0:y,remote:d,options:l,moduleInstance:c,origin:o});return this.setIdToRemoteMap(e,h),n={id:i,expose:s,remote:a,options:t,origin:o},"function"==typeof g?g:y}catch(r){const{from:c="runtime"}=t||{from:"runtime"};let l;try{l=await this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:r,from:c,lifecycle:"onLoad",expose:s,remote:a,origin:o})}catch(e){throw n={id:i,expose:s,remote:a,options:t,error:e,origin:o},e}if(!l)throw n={id:i,expose:s,remote:a,options:t,error:r,origin:o},r;return n={id:i,expose:s,remote:a,options:t,error:r,origin:o,recovered:!0},l}finally{n&&await this.hooks.lifecycle.afterLoadRemote.emit(n)}}async preloadRemote(e){const{host:t}=this,o=[];await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:t.options,origin:t});const r=(n=t.options.remotes,e.map((e=>{const t=function(e,t){for(const o of e){if(t===o.name)return o;if(o.alias&&t===o.alias)return o}}(n,e.nameOrAlias);return d(t,`Unable to preload ${e.nameOrAlias} as it is not included in ${!t&&(0,Ke.ML)({remoteInfo:t,remotes:n})}`),{remote:t,preloadConfig:bt(e)}})));var n;let i;await Promise.all(r.flatMap((e=>{const{preloadConfig:t,remote:o}=e,r=t.exposes||[];return r.length?r.map((r=>({ops:{...e,preloadConfig:{...t,exposes:[r]}},id:Et(o.name,r)}))):[{ops:e,id:`${o.name}/*`}]})).map((async e=>{const{ops:r,id:n}=e,{remote:i,preloadConfig:s}=r,a=gt(i);try{const{globalSnapshot:e,remoteSnapshot:c}=await t.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:i,id:n,initiator:"preloadRemote"}),l=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:t,preloadOptions:r,remote:i,remoteInfo:a,globalSnapshot:e,remoteSnapshot:c});if(!l)return;const h=await Rt(a,t,l,!0,{initiator:"preloadRemote",id:n});o.push({remote:i,remoteInfo:a,preloadConfig:s,id:n,results:h})}catch(e){o.push({remote:i,remoteInfo:a,preloadConfig:s,id:n,results:[{url:a.entry,status:"error",resourceType:/\.json(?:$|[?#])/i.test(a.entry)?"manifest":"remoteEntry",initiator:"preloadRemote",id:n,error:e}]})}})));const s=o.flatMap((e=>e.results.filter((e=>"error"===e.status||"timeout"===e.status))));if(s.length>0&&(i=new Error(`preloadRemote failed to load ${s.length} resource(s).`),Object.assign(i,{results:o,failedResults:s})),await this.hooks.lifecycle.afterPreloadRemote.emit({preloadOps:e,options:t.options,origin:t,results:o,error:i}),i)throw i}registerRemotes(e,t){const{host:o}=this;e.forEach((e=>{this.registerRemote(e,o.options.remotes,{force:t?.force})}))}initRawContainer(e,t,o){const{host:r}=this,n=new Ot({host:r,remoteInfo:gt({name:e,entry:t})});return n.remoteEntryExports=o,r.moduleCache.set(e,n),n}async getRemoteModuleAndOptions(e){const{host:t}=this,{id:o}=e;let r;try{r=await this.hooks.lifecycle.beforeRequest.emit({id:o,options:t.options,origin:t})}catch(e){if(r=await this.hooks.lifecycle.errorLoadRemote.emit({id:o,options:t.options,origin:t,from:"runtime",error:e,lifecycle:"beforeRequest"}),!r)throw e}const{id:n}=r,i=St(t.options.remotes,n);if(!i)try{m(ct.MR,lt.UJ,{hostName:t.options.name,requestId:n},void 0,At(t.options))}catch(e){throw await this.hooks.lifecycle.afterMatchRemote.emit({id:n,options:t.options,error:e,origin:t}),e}const{remote:s}=i,a=gt(s);await this.hooks.lifecycle.afterMatchRemote.emit({id:n,...i,options:t.options,remoteInfo:a,origin:t});const c=await t.sharedHandler.hooks.lifecycle.afterResolve.emit({id:n,...i,options:t.options,origin:t,remoteInfo:a}),{remote:l,expose:h}=c;d(l&&h,`The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${n}.`);let u=t.moduleCache.get(l.name);const f={host:t,remoteInfo:a};return u||(u=new Ot(f),t.moduleCache.set(l.name,u)),{module:u,moduleOptions:f,remoteMatchInfo:c}}registerRemote(e,t,o){const{host:n}=this,i=()=>{if(e.alias){const o=t.find((t=>e.alias&&(t.name.startsWith(e.alias)||t.alias?.startsWith(e.alias))));d(!o,`The alias ${e.alias} of remote ${e.name} is not allowed to be the prefix of ${o&&o.name} name or alias`)}"entry"in e&&r.Hq&&"undefined"!=typeof window&&!e.entry.startsWith("http")&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||(e.shareScope=q),e.type||(e.type=B)};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:n});const s=t.find((t=>t.name===e.name));if(s){const r=[`The remote "${e.name}" is already registered.`,"Please note that overriding it may cause unexpected errors."];o?.force&&(this.removeRemote(s),i(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:n}),(0,Ke.R8)(r.join(" ")))}else i(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:n})}removeRemote(e){try{const{host:t}=this,{name:o}=e,r=t.options.remotes.findIndex((e=>e.name===o));-1!==r&&t.options.remotes.splice(r,1);const n=M(I.__FEDERATION__.moduleInfo,p(e)).key;delete I.__FEDERATION__.moduleInfo[n],"entry"in e&&(t.snapshotHandler.manifestCache.delete(e.entry),delete v.__FEDERATION__.__MANIFEST_LOADING__[e.entry]);const{hostGlobalSnapshot:i}=Vt(e,t);if(i){const t=i&&"remotesInfo"in i&&i.remotesInfo&&M(i.remotesInfo,e.name).key;t&&delete i.remotesInfo[t]}const s=t.moduleCache.get(e.name);if(s){const o=s.remoteInfo,r=o.entryGlobalName;I[r]&&(Object.getOwnPropertyDescriptor(I,r)?.configurable?delete I[r]:I[r]=void 0);const n=pt(s.remoteInfo);N[n]&&delete N[n];let i=o.buildVersion?(0,Ke.lG)(o.name,o.buildVersion):o.name;const a=I.__FEDERATION__.__INSTANCES__.findIndex((e=>o.buildVersion?e.options.id===i:e.name===i));if(-1!==a){const e=I.__FEDERATION__.__INSTANCES__[a];i=e.options.id||i;const t=Be();let r=!0;const n=[];Object.keys(t).forEach((e=>{const i=t[e];i&&Object.keys(i).forEach((t=>{const s=i[t];s&&Object.keys(s).forEach((i=>{const a=s[i];a&&Object.keys(a).forEach((s=>{const c=a[s];c&&"object"==typeof c&&c.from===o.name&&(c.loaded||c.loading?(c.useIn=c.useIn.filter((e=>e!==o.name)),c.useIn.length?r=!1:n.push([e,t,i,s])):n.push([e,t,i,s]))}))}))}))})),r&&(e.shareScopeMap={},delete t[i]),n.forEach((([e,o,r,n])=>{delete t[e]?.[o]?.[r]?.[n]})),I.__FEDERATION__.__INSTANCES__.splice(a,1)}t.moduleCache.delete(e.name)}}catch(e){u.error(`removeRemote failed: ${e instanceof Error?e.message:String(e)}`)}}},zt=class{constructor(e){this.hooks=new Mt({beforeInit:new Ct("beforeInit"),init:new xt,beforeInitContainer:new Pt("beforeInitContainer"),initContainer:new Pt("initContainer")}),this.version="2.8.2",this.moduleCache=new Map,this.loaderHook=new Mt({getModuleInfo:new xt,createScript:new xt,createLink:new xt,fetch:new Ft,loadEntryError:new Ft,afterLoadEntry:new Ft("afterLoadEntry"),beforeInitRemote:new Ft("beforeInitRemote"),afterInitRemote:new Ft("afterInitRemote"),beforeGetExpose:new Ft("beforeGetExpose"),afterGetExpose:new Ft("afterGetExpose"),beforeExecuteFactory:new Ft("beforeExecuteFactory"),afterExecuteFactory:new Ft("afterExecuteFactory"),getModuleFactory:new Ft}),this.bridgeHook=new Mt({beforeBridgeRender:new xt,afterBridgeRender:new xt,beforeBridgeDestroy:new xt,afterBridgeDestroy:new xt});const t=[{name:"snapshot-plugin",async afterResolve(e){const{remote:t,pkgNameOrAlias:o,expose:r,origin:n,remoteInfo:i,id:s}=e;if(!y(t)||!g(t)){const{remoteSnapshot:a,globalSnapshot:c}=await n.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:t,id:Et(t.name,r)});Ht(i,a);const l={remote:t,preloadConfig:{nameOrAlias:o,exposes:[r],resourceCategory:"sync",share:!1,depsRemote:!1}},h=await n.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:n,preloadOptions:l,remoteInfo:i,remote:t,remoteSnapshot:a,globalSnapshot:c});return h&&Rt(i,n,h,!1,{initiator:"loadRemote",id:s}).catch((()=>{})),{...e,remoteSnapshot:a}}return e}},{name:"generate-preload-assets-plugin",async generatePreloadAssets(e){const{origin:t,preloadOptions:o,remoteInfo:n,remote:i,globalSnapshot:s,remoteSnapshot:a}=e;return r.Hq?y(i)&&g(i)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:i.name,url:i.entry,moduleInfo:{name:n.name,entry:i.entry,type:n.type||"global",entryGlobalName:"",shareScope:""}}]}:(Ht(n,a),Bt(t,o,n,s,a)):{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[]}}}],o={id:"Appshell:1.0.0-alpha.14",name:e.name,plugins:t,remotes:[],shared:{},inBrowser:r.Hq};this.name=e.name,this.options=o,this.snapshotHandler=new Wt(this),this.sharedHandler=new Jt(this),this.remoteHandler=new Kt(this),this.shareScopeMap=this.sharedHandler.shareScopeMap,this.registerPlugins([...o.plugins,...e.plugins||[]]),this.options=this.formatOptions(o,e)}initOptions(e){e.name&&e.name!==this.options.name&&m(l(ct.n3,lt.UJ)),this.registerPlugins(e.plugins);const 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=q,t){return this.sharedHandler.initializeSharing(e,t)}initRawContainer(e,t,o){return this.remoteHandler.initRawContainer(e,t,o)}async loadRemote(e,t){return this.remoteHandler.loadRemote(e,t)}async preloadRemote(e){return this.remoteHandler.preloadRemote(e)}initShareScopeMap(e,t,o={}){this.sharedHandler.initShareScopeMap(e,t,o)}formatOptions(e,t){const o=xe(e,t).allShareInfos,{userOptions:r,options:n}=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions:t,options:e,shareInfo:o}),i=this.remoteHandler.formatAndRegisterRemote(n,r),{allShareInfos:s}=this.sharedHandler.registerShared(n,r),a=[...n.plugins];r.plugins&&r.plugins.forEach((e=>{a.includes(e)||a.push(e)}));const c={...e,...t,plugins:a,remotes:i,shared:s,id:r.id||e.id};return this.hooks.lifecycle.init.emit({origin:this,options:c}),c}registerPlugins(e){const t=function(e,t){const o=j(),r=[t.hooks,t.remoteHandler.hooks,t.sharedHandler.hooks,t.snapshotHandler.hooks,t.loaderHook,t.bridgeHook];return o.length>0&&o.forEach((t=>{e?.find((e=>e.name!==t.name))&&e.push(t)})),e&&e.length>0&&e.forEach((e=>{r.forEach((o=>{o.applyPlugin(e,t)}))})),e}(e,this);this.options.plugins=this.options.plugins.reduce(((e,t)=>t?(e&&!e.find((e=>e.name===t.name))&&e.push(t),e):e),t||[])}registerRemotes(e,t){return this.remoteHandler.registerRemotes(e,t)}registerShared(e){this.sharedHandler.registerShared(this.options,{...this.options,shared:e})}};Object.defineProperty;const Yt=Nt,Qt=Ot},650(e,t,o){o.r(t),o.d(t,{Module:()=>n.nV,ModuleFederation:()=>n.gP,createInstance:()=>a,getInstance:()=>y,getRemoteEntry:()=>n.fE,getRemoteInfo:()=>n.pW,init:()=>l,loadRemote:()=>h,loadScript:()=>n.k0,loadScriptNode:()=>n.oe,loadShare:()=>u,loadShareSync:()=>d,preloadRemote:()=>m,registerGlobalPlugins:()=>n.RY,registerPlugins:()=>p,registerRemotes:()=>f,registerShared:()=>g});var r=o(370),n=o(655),i=o(904),s=o(10);function a(e){const t=new((0,n.Bf)()||n.gP)({id:`${e.name}@${e.version||Date.now()}`,...e});return(0,n.C3)(t),t}let c=null;function l(e){const t=(0,r.u)(e.name,e.version),o={...e,id:e.id||""};return t?(t.initOptions(o),c||(c=t),t):(c=a(o),c)}function h(...e){return(0,n.vA)(c,i.F9,s.UJ),c.loadRemote.apply(c,e)}function u(...e){return(0,n.vA)(c,i.F9,s.UJ),c.loadShare.apply(c,e)}function d(...e){return(0,n.vA)(c,i.F9,s.UJ),c.loadShareSync.apply(c,e)}function m(...e){return(0,n.vA)(c,i.F9,s.UJ),c.preloadRemote.apply(c,e)}function f(...e){return(0,n.vA)(c,i.F9,s.UJ),c.registerRemotes.apply(c,e)}function p(...e){return(0,n.vA)(c,i.F9,s.UJ),c.registerPlugins.apply(c,e)}function y(e){return e?n.hS.__FEDERATION__.__INSTANCES__.find(e)||null:c}function g(...e){return(0,n.vA)(c,i.F9,s.UJ),c.registerShared.apply(c,e)}(0,n.rc)(n.gP)},370(e,t,o){o.d(t,{u:()=>n});var r=o(655);function n(e,t){return r.hS.__FEDERATION__.__INSTANCES__.find((o=>!("Appshell:1.0.0-alpha.14"!==o.options.id&&(o.options.name!==e||o.options.version||t)&&(o.options.name!==e||!t||o.options.version!==t))))}},151(e,t,o){o.d(t,{CQ:()=>r,Qm:()=>i,e0:()=>a,gF:()=>h,gR:()=>s,sC:()=>n,wv:()=>c,yq:()=>l});const r=".json",n="FEDERATION_DEBUG",i={AT:"@",HYPHEN:"-",SLASH:"/"},s={[i.AT]:"scope_",[i.HYPHEN]:"_",[i.SLASH]:"__"},a={[s[i.AT]]:i.AT,[s[i.HYPHEN]]:i.HYPHEN,[s[i.SLASH]]:i.SLASH},c=":",l="ENCODE_NAME_PREFIX";let h=function(e){return e[e.UNKNOWN=1]="UNKNOWN",e[e.CALCULATED=2]="CALCULATED",e[e.NO_USE=0]="NO_USE",e}({})},284(e,t,o){},848(e,t,o){o.d(t,{Bb:()=>a,Hq:()=>n,MC:()=>s,OL:()=>i});var r=o(151);const n="undefined"!=typeof ENV_TARGET?"web"===ENV_TARGET:"undefined"!=typeof window&&void 0!==window.document;function i(){return n}function s(){return"undefined"!=typeof navigator&&"ReactNative"===navigator?.product}function a(){return"undefined"!=typeof process&&process.env&&process.env.FEDERATION_DEBUG?Boolean(process.env.FEDERATION_DEBUG):!("undefined"==typeof FEDERATION_DEBUG||!Boolean(FEDERATION_DEBUG))||function(){try{if(i()&&window.localStorage)return Boolean(localStorage.getItem(r.sC))}catch(e){return!1}return!1}()}},55(){},112(e,t,o){},469(){Object.defineProperty},378(e,t,o){o.d(t,{Al:()=>a,ML:()=>l,R8:()=>c,e4:()=>s,lG:()=>i});var r=o(151),n=o(848);const i=function(...e){return e.length?e.reduce(((e,t)=>t?e?`${e}${r.wv}${t}`:t:e),""):""},s=function(e,t,o){try{let n=e;if(t){if(!n.startsWith(t))return n;n=n.replace(new RegExp(t,"g"),"")}return n=n.replace(new RegExp(`${r.gR[r.Qm.AT]}`,"g"),r.e0[r.gR[r.Qm.AT]]).replace(new RegExp(`${r.gR[r.Qm.SLASH]}`,"g"),r.e0[r.gR[r.Qm.SLASH]]).replace(new RegExp(`${r.gR[r.Qm.HYPHEN]}`,"g"),r.e0[r.gR[r.Qm.HYPHEN]]),o&&(n=n.replace(".js","")),n}catch(e){throw e}};function a(e,t){if("getPublicPath"in e){let o;return o=e.getPublicPath.startsWith("function")?new Function("return "+e.getPublicPath)()():new Function(e.getPublicPath)(),`${o}${t}`}return"publicPath"in e?(0,n.OL)()||(0,n.MC)()||!("ssrPublicPath"in e)||"string"!=typeof e.ssrPublicPath?`${e.publicPath}${t}`:`${e.ssrPublicPath}${t}`:(console.warn("Cannot get resource URL. If in debug mode, please ignore.",e,t),"")}const c=e=>{console.warn(`[ Federation Runtime ]: ${e}`)};function l(e){try{return JSON.stringify(e,null,2)}catch(e){return""}}},365(e,t,o){}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var o=i[e]={id:e,exports:{}},r={id:e,module:o,factory:n[e],require:s};return s.i.forEach((function(e){e(r)})),o=r.module,r.factory.call(o.exports,o,o.exports,r.require),o.exports}s.m=n,s.c=i,s.i=[],s.x=e=>{},s.federation||(s.federation={initOptions:{name:"Appshell",remotes:[],shareStrategy:"version-first"},chunkMatcher:function(e){return 488!=e},rootOutputDir:"",bundlerRuntimeOptions:{remotes:{remoteInfos:{},webpackRequire:s,idToRemoteMap:{},chunkMapping:{},idToExternalAndNameMapping:{}}}},s.consumesLoadingData={},s.remotesLoadingData={}),s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var o in t)s.o(t,o)&&!s.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,o)=>(s.f[o](e,t),t)),[])),s.u=e=>e+".js",s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="appshell-react-shell:",s.l=(o,r,n,i)=>{if(e[o])e[o].push(r);else{var a,c;if(void 0!==n)for(var l=document.getElementsByTagName("script"),h=0;h<l.length;h++){var u=l[h];if(u.getAttribute("src")==o||u.getAttribute("data-webpack")==t+n){a=u;break}}a||(c=!0,(a=document.createElement("script")).charset="utf-8",s.nc&&a.setAttribute("nonce",s.nc),a.setAttribute("data-webpack",t+n),a.src=o),e[o]=[r];var d=(t,r)=>{a.onerror=a.onload=null,clearTimeout(m);var n=e[o];if(delete e[o],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach((e=>e(r))),t)return t(r)},m=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),c&&document.head.appendChild(a)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{s.S={};var e={},t={};s.I=(o,r)=>{r||(r=[]);var n=t[o];if(n||(n=t[o]={}),!(r.indexOf(n)>=0)){if(r.push(n),e[o])return e[o];s.o(s.S,o)||(s.S[o]={});var i=s.S[o],a="appshell-react-shell",c=(e,t,o,r)=>{var n=i[e]=i[e]||{},s=n[t];(!s||!s.loaded&&(!r!=!s.eager?r:a>s.from))&&(n[t]={get:o,from:a,eager:!!r})},l=[];return"default"===o&&(c("react-dom","18.2.0",(()=>Promise.all([s.e(144),s.e(488)]).then((()=>()=>s(144))))),c("react","18.2.0",(()=>s.e(41).then((()=>()=>s(41)))))),e[o]=l.length?Promise.all(l).then((()=>e[o]=1)):1}}})(),(()=>{s.federation.initOptions.shared={"react-dom":[{version:"18.2.0",get:()=>Promise.all([s.e(144),s.e(488)]).then((()=>()=>s(144))),scope:["default"],shareConfig:{eager:!1,requiredVersion:"18.2.0",singleton:!0,layer:null}}],react:[{version:"18.2.0",get:()=>s.e(41).then((()=>()=>s(41))),scope:["default"],shareConfig:{eager:!1,requiredVersion:"18.2.0",singleton:!0,layer:null}}]},s.S={};var e={},t={};s.I=(o,r)=>s.federation.bundlerRuntime.I({shareScopeName:o,webpackRequire:s,initPromises:e,initTokens:t,initScope:r})})(),(()=>{var e;globalThis.importScripts&&(e=globalThis.location+"");var t=globalThis.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");if(o.length)for(var r=o.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=o[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e})(),(()=>{var e={};s.consumesLoadingData.moduleIdToConsumeDataMapping={488:{fallback:()=>s.e(41).then((()=>()=>s(41))),shareScope:["default"],singleton:!0,requiredVersion:"18.2.0",strictVersion:!1,eager:!1,layer:void 0,shareKey:"react"},536:{fallback:()=>s.e(144).then((()=>()=>s(144))),shareScope:["default"],singleton:!0,requiredVersion:"18.2.0",strictVersion:!1,eager:!1,layer:void 0,shareKey:"react-dom"}};var t={};s.consumesLoadingData.chunkMapping={279:[536],488:[488]},s.f.consumes=(o,r)=>{s.federation.bundlerRuntime.consumes({chunkMapping:s.consumesLoadingData.chunkMapping,installedModules:e,chunkId:o,moduleToHandlerMapping:t,promises:r,webpackRequire:s})}})(),o=s.x,r=!1,s.x=()=>{if(r||(r=!0,s(996)),"function"==typeof o)return o();console.warn("[Module Federation] prevStartup is not a function, skipping startup execution")},(()=>{var e={792:0};s.f.j=(t,o)=>{var r=s.o(e,t)?e[t]:void 0;if(0!==r)if(r)o.push(r[2]);else if(488!=t){var n=new Promise(((o,n)=>r=e[t]=[o,n]));o.push(r[2]=n);var i=s.p+s.u(t),a=new Error;s.l(i,(o=>{if(s.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var n=o&&("load"===o.type?"missing":o.type),i=o&&o.target&&o.target.src;a.message="Loading chunk "+t+" failed.\n("+n+": "+i+")",a.name="ChunkLoadError",a.type=n,a.request=i,r[1](a)}}),"chunk-"+t,t)}else e[t]=0};var t=(t,o)=>{var r,n,[i,a,c]=o,l=0;if(i.some((t=>0!==e[t]))){for(r in a)s.o(a,r)&&(s.m[r]=a[r]);c&&c(s)}for(t&&t(o);l<i.length;l++)n=i[l],s.o(e,n)&&e[n]&&e[n][0](),e[n]=0},o=globalThis.webpackChunkappshell_react_shell=globalThis.webpackChunkappshell_react_shell||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})(),s.nc=void 0,s.x(),s(418)})();
1
+ (()=>{"use strict";var e,t,o,r,n={418(e,t,o){const r=()=>{};(Object.getOwnPropertyDescriptor(r,"name")||{}).writable||Object.defineProperty(r,"name",{value:"default",configurable:!0}),Promise.all([o.e(488),o.e(428)]).then(o.bind(o,428))},996(e,t,o){function r(e){e.S&&!e.federation.hasAttachShareScopeMap&&e.federation.instance&&e.federation.instance.shareScopeMap&&(e.S=e.federation.instance.shareScopeMap,e.federation.hasAttachShareScopeMap=!0)}const n=["script"];function i(e){const{webpackRequire:t,moduleToHandlerMapping:o}=e,{consumesLoadingData:r,initializeSharingData:n}=t,{sharedFallback:i,bundlerRuntime:s,libraryType:a}=t.federation;if(r&&!r._updated){const{moduleIdToConsumeDataMapping:n={},initialConsumes:c=[],chunkMapping:l={}}=r;if(Object.entries(n).forEach((([e,r])=>{o[e]||(o[e]={getter:i?s?.getSharedFallbackGetter({shareKey:r.shareKey,factory:r.fallback,webpackRequire:t,libraryType:a}):r.fallback,treeShakingGetter:i?r.fallback:void 0,shareInfo:{shareConfig:{requiredVersion:r.requiredVersion,strictVersion:r.strictVersion,singleton:r.singleton,eager:r.eager,layer:r.layer},scope:Array.isArray(r.shareScope)?r.shareScope:[r.shareScope||"default"],treeShaking:i?{get:r.fallback,mode:r.treeShakingMode}:void 0},shareKey:r.shareKey})})),"initialConsumes"in e){const{initialConsumes:t=[]}=e;c.forEach((e=>{t.includes(e)||t.push(e)}))}if("chunkMapping"in e){const{chunkMapping:t={}}=e;Object.entries(l).forEach((([e,o])=>{t[e]||(t[e]=[]),o.forEach((o=>{t[e].includes(o)||t[e].push(o)}))}))}r._updated=1}if(n&&!n._updated){const{federation:e}=t;if(!e.instance||!n.scopeToSharingDataMapping)return;const o={};for(let[e,t]of Object.entries(n.scopeToSharingDataMapping))for(let r of t)if("object"==typeof r&&null!==r){const{name:t,version:n,factory:i,eager:s,singleton:a,requiredVersion:c,strictVersion:l}=r,h={requiredVersion:`^${n}`},u=function(e){return void 0!==e};u(a)&&(h.singleton=a),u(c)&&(h.requiredVersion=c),u(s)&&(h.eager=s),u(l)&&(h.strictVersion=l);const d={version:n,scope:[e],shareConfig:h,get:i};o[t]?o[t].push(d):o[t]=[d]}e.instance.registerShared(o),n._updated=1}}var s=o(378),a=o(151);function c(e,t){const o=e.federation.usedExports;if(o)return o[t]}const l="RUNTIME-012";var h=o(650),u=o(370),d=o(655);const m={global:{...d._$.global,getGlobalFederationInstance:u.u},share:d._$.share,utils:d._$.utils},f={remotes:function(e){!function(e){const{webpackRequire:t,idToExternalAndNameMapping:o={},idToRemoteMap:r={},chunkMapping:n={}}=e,{remotesLoadingData:i}=t,s=t.federation?.bundlerRuntimeOptions?.remotes?.remoteInfos;if(!i||i._updated||!s)return;const{chunkMapping:a,moduleIdToRemoteDataMapping:c}=i;if(a&&c){for(let[e,t]of Object.entries(c))if(o[e]||(o[e]=[t.shareScope,t.name,t.externalModuleId]),!r[e]&&s[t.remoteName]){const o=s[t.remoteName];r[e]||=[],o.forEach((t=>{r[e].includes(t)||r[e].push(t)}))}n&&Object.entries(a).forEach((([e,t])=>{n[e]||(n[e]=[]),t.forEach((t=>{n[e].includes(t)||n[e].push(t)}))})),i._updated=1}}(e);const{chunkId:t,promises:o,webpackRequire:i,chunkMapping:c,idToExternalAndNameMapping:l,idToRemoteMap:h}=e;r(i),i.o(c,t)&&c[t].forEach((e=>{let t=i.R;t||(t=[]);const r=l[e],c=h[e]||[];if(t.indexOf(r)>=0)return;if(t.push(r),r.p)return o.push(r.p);const u=t=>{t||(t=new Error("Container missing")),"string"==typeof t.message&&(t.message+=`\nwhile loading "${r[1]}" from ${r[2]}`),i.m[e]=()=>{throw t},r.p=0},d=(e,t,n,i,s,a)=>{try{const c=e(t,n);if(!c||!c.then)return s(c,i,a);{const e=c.then((e=>s(e,i)),u);if(!a)return e;o.push(r.p=e)}}catch(e){u(e)}};var m=(e,o,n)=>d(o.get,r[1],t,0,f,n),f=t=>{r.p=1,i.m[e]=e=>{e.exports=t()}};1===c.length&&n.includes(c[0].externalType)&&c[0].name?d((()=>{try{const e=(0,s.e4)(c[0].name,a.yq)+r[1].slice(1),t=i.federation.instance,o=()=>i.federation.instance.loadRemote(e,{loadFactory:!1,from:"build"});if("version-first"===t.options.shareStrategy){const e=Array.isArray(r[0])?r[0]:[r[0]];return Promise.all(e.map((e=>t.sharedHandler.initializeSharing(e)))).then((()=>o()))}return o()}catch(e){u(e)}}),r[2],0,0,f,1):d(i,r[2],0,0,((e,t,o)=>e?d(i.I,r[0],0,e,m,o):u()),1)}))},consumes:function(e){i(e);const{chunkId:t,promises:o,installedModules:n,webpackRequire:s,chunkMapping:a,moduleToHandlerMapping:h}=e;r(s),s.o(a,t)&&a[t].forEach((e=>{if(s.o(n,e))return o.push(n[e]);const t=t=>{n[e]=0,s.m[e]=o=>{delete s.c[e];const r=t(),{shareInfo:n}=h[e];if(n?.shareConfig?.layer&&r&&"object"==typeof r)try{r.hasOwnProperty("layer")&&void 0!==r.layer||(r.layer=n.shareConfig.layer)}catch(e){}o.exports=r}},r=t=>{delete n[e],s.m[e]=o=>{throw delete s.c[e],t}};try{const i=s.federation.instance;if(!i)throw new Error("Federation instance not found!");const{shareKey:a,getter:u,shareInfo:d,treeShakingGetter:m}=h[e],f=c(s,a),p={...d};Array.isArray(p.scope)&&Array.isArray(p.scope[0])&&(p.scope=p.scope[0]),f&&(p.treeShaking={usedExports:f,useIn:[i.options.name]});const y=i.loadShare(a,{customShareInfo:p}).then((e=>{if(!1===e){if("function"!=typeof u)throw new Error(((e,t,o)=>{const r=[`${[t[e]]} #${e}`];return o&&r.push(`args: ${JSON.stringify(o)}`),r.push((e=>`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`)(e)),r.join("\n")})(l,{[l]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.'},{shareKey:a}));return m?.()||u()}return e}));y.then?o.push(n[e]=y.then(t).catch(r)):t(y)}catch(e){r(e)}}))},I:function({shareScopeName:e,webpackRequire:t,initPromises:o,initTokens:i,initScope:s}){const a=Array.isArray(e)?e:[e];var c=[];return a.forEach((a=>{c.push(function(a){s||(s=[]);const c=t.federation.instance;var l=i[a];if(l||(l=i[a]={from:c.name}),s.indexOf(l)>=0)return;s.push(l);const h=o[a];if(h)return h;var u=o=>{var r=e=>{return t="Initialization of sharing external failed: "+e,"undefined"!=typeof console&&console.warn&&console.warn(t);var t};try{var n=t(o);if(!n)return;var i=o=>o&&o.init&&o.init(t.S[a],s,{shareScopeMap:t.S||{},shareScopeKeys:e});if(n.then)return d.push(n.then(i,r));var c=i(n);if(c&&"boolean"!=typeof c&&c.then)return d.push(c.catch(r))}catch(e){r(e)}};const d=c.initializeSharing(a,{strategy:c.options.shareStrategy,initScope:s,from:"build"});r(t);const m=t.federation.bundlerRuntimeOptions.remotes;return m&&Object.keys(m.idToRemoteMap).forEach((e=>{const t=m.idToRemoteMap[e],o=m.idToExternalAndNameMapping[e][2];if(t.length>1)u(o);else if(1===t.length){const e=t[0];n.includes(e.externalType)||u(o)}})),d.length?o[a]=Promise.all(d).then((()=>o[a]=!0)):o[a]=!0}(a))})),Promise.all(c).then((()=>!0))},S:{},installInitialConsumes:function(e){i(e);const{moduleToHandlerMapping:t,webpackRequire:o,installedModules:r,initialConsumes:n,asyncLoad:s}=e,a=[];n.forEach((e=>{a.push([e,()=>function(e){const{moduleId:t,moduleToHandlerMapping:o,webpackRequire:r,asyncLoad:n}=e,i=r.federation.instance;if(!i)throw new Error("Federation instance not found!");const{shareKey:s,shareInfo:a}=o[t];try{const e=c(r,s),t={...a};return e&&(t.treeShaking={usedExports:e,useIn:[i.options.name]}),n?i.loadShare(s,{customShareInfo:t}):i.loadShareSync(s,{customShareInfo:t})}catch(e){throw console.error('loadShareSync failed! The function should not be called unless you set "eager:true". If you do not set it, and encounter this issue, you can check whether an async boundary is implemented.'),console.error("The original error message is as follows: "),e}}({moduleId:e,moduleToHandlerMapping:t,webpackRequire:o,asyncLoad:s})])}));const l=(e,n)=>{o.m[e]=i=>{r[e]=0,delete o.c[e];const s=n();if("function"!=typeof s)throw new Error(`Shared module is not available for eager consumption: ${e}`);const a=s(),{shareInfo:c}=t[e];if(c?.shareConfig?.layer&&a&&"object"==typeof a)try{a.hasOwnProperty("layer")&&void 0!==a.layer||(a.layer=c.shareConfig.layer)}catch(e){}i.exports=a}};if(s)return Promise.all(a.map((async([e,t])=>{const o=await t();l(e,(()=>o))})));a.forEach((([e,t])=>{l(e,t)}))},initContainerEntry:void 0,init:function({webpackRequire:e}){const{initOptions:t,runtime:r,sharedFallback:n,bundlerRuntime:i,libraryType:s}=e.federation;if(!t)throw new Error("initOptions is required!");{const r=function(){return{name:"tree-shake-plugin",beforeInit(t){const{userOptions:r,origin:a,options:c}=t,l=r.version||c.version;if(!n)return t;const u=r.shared||{},d=[];Object.keys(u).forEach((t=>{(Array.isArray(u[t])?u[t]:[u[t]]).forEach((o=>{d.push([t,o]),"get"in o&&(o.treeShaking||={},o.treeShaking.get=o.get,o.get=i.getSharedFallbackGetter({shareKey:t,factory:o.get,webpackRequire:e,libraryType:s,version:o.version}))}))}));const f=m.global.getGlobalSnapshotInfoByModuleInfo({name:a.name,version:l});return f&&"shared"in f?(Object.keys(c.shared||{}).forEach((e=>{c.shared[e].forEach((t=>{d.push([e,t])}))})),d.forEach((([e,t])=>{((e,t)=>{const r=f.shared.find((t=>t.sharedName===e));if(!r)return;const{treeShaking:n}=t;if(!n)return;const{secondarySharedTreeShakingName:i,secondarySharedTreeShakingEntry:c,treeShakingStatus:l}=r;n.status!==l&&(n.status=l,c&&s&&i&&(n.get=async()=>{const e=await(0,h.getRemoteEntry)({origin:a,remoteInfo:{name:i,entry:c,type:s,entryGlobalName:i,shareScope:"default"}});return await e.init(a,o.federation.bundlerRuntime),e.get()}))})(e,t)})),t):t}}};t.plugins||=[],t.plugins.push(r())}return r.init(t)},getSharedFallbackGetter:({shareKey:e,factory:t,version:o,webpackRequire:r,libraryType:n="global"})=>{const{runtime:i,instance:s,bundlerRuntime:a,sharedFallback:c}=r.federation;if(!c)return t;const l=c[e];if(!l)return t;const h=o?l.find((e=>e[1]===o)):l[0];if(!h)throw new Error(`No fallback item found for shareKey: ${e} and version: ${o}`);return()=>i.getRemoteEntry({origin:r.federation.instance,remoteInfo:{name:h[2],entry:`${r.p}${h[0]}`,type:n,entryGlobalName:h[2],shareScope:"default"}}).then((t=>{if(!t)throw new Error(`Failed to load fallback entry for shareKey: ${e} and version: ${o}`);return t.init(r.federation.instance,a).then((()=>t.get()))}))}},p={runtime:h,instance:void 0,initOptions:void 0,bundlerRuntime:f,attachShareScopeMap:r,bundlerRuntimeOptions:{}};if(!o.federation.runtime||!o.federation.bundlerRuntime){var y=o.federation;for(var g in o.federation={},p)o.federation[g]=p[g];for(var g in y)o.federation[g]=y[g]}o.federation.instance||(o.federation.instance=o.federation.bundlerRuntime.init({webpackRequire:o}),o.federation.attachShareScopeMap&&o.federation.attachShareScopeMap(o),o.federation.installInitialConsumes&&o.federation.installInitialConsumes())},10(e,t,o){o.d(t,{UJ:()=>n});var r=o(904);const n={[r.Fj]:"Failed to get remoteEntry exports.",[r.MC]:'The remote entry interface does not contain "init"',[r.F0]:"Failed to get manifest.",[r.MR]:"Failed to locate remote.",[r.Fd]:"Invalid loadShareSync function call from bundler runtime",[r.yB]:"Invalid loadShareSync function call from runtime",[r.Tz]:"Failed to get remote snapshot.",[r.ML]:"Failed to load script resources.",[r.F9]:"Please call createInstance first.",[r.n3]:'The name option cannot be changed after initialization. If you want to create a new instance with a different name, please use "createInstance" api.',[r.uF]:"The remoteEntry URL is missing from the remote snapshot.",[r.Bh]:'The getter for the shared module is not a function. This may be caused by setting "shared.import: false" without the host providing the corresponding lib.',[r.u0]:"The manifest is not a valid Module Federation manifest.",[r.BC]:"The remote does not expose the requested module.",[r.uz]:"Remote container initialization failed."};r.Zs,r.fK,r.AI},904(e,t,o){o.d(t,{AI:()=>b,BC:()=>y,Bh:()=>f,F0:()=>i,F9:()=>u,Fd:()=>a,Fj:()=>r,MC:()=>n,ML:()=>h,MR:()=>s,Tz:()=>l,Zs:()=>E,fK:()=>S,n3:()=>d,u0:()=>p,uF:()=>m,uz:()=>g,yB:()=>c});const r="RUNTIME-001",n="RUNTIME-002",i="RUNTIME-003",s="RUNTIME-004",a="RUNTIME-005",c="RUNTIME-006",l="RUNTIME-007",h="RUNTIME-008",u="RUNTIME-009",d="RUNTIME-010",m="RUNTIME-011",f="RUNTIME-012",p="RUNTIME-013",y="RUNTIME-014",g="RUNTIME-015",E="TYPE-001",S="BUILD-001",b="BUILD-002"},843(){},655(e,t,o){o.d(t,{hS:()=>I,nV:()=>Qt,gP:()=>zt,vA:()=>d,Bf:()=>T,fE:()=>yt,pW:()=>gt,_$:()=>Yt,k0:()=>Ze,oe:()=>ot,RY:()=>D,rc:()=>O,C3:()=>A});var r=o(848);const n="[ Module Federation ]",i=console,s=["logger.ts","logger.js","captureStackTrace","Logger.emit","Logger.log","Logger.info","Logger.warn","Logger.error","Logger.debug"];var a=class{constructor(e,t=i){this.prefix=e,this.delegate=t??i}setPrefix(e){this.prefix=e}setDelegate(e){this.delegate=e??i}emit(e,t){const o=this.delegate,n=(0,r.Bb)()?function(){try{const e=(new Error).stack;if(!e)return;const[,...t]=e.split("\n"),o=t.filter((e=>!s.some((t=>e.includes(t)))));if(!o.length)return;return`Stack trace:\n${o.slice(0,5).join("\n")}`}catch{return}}():void 0,a=n?[...t,n]:t,c=(()=>{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(const e of c){const t=o[e];if("function"==typeof t)return void t.call(o,this.prefix,...a)}for(const e of c){const t=i[e];if("function"==typeof t)return void t.call(i,this.prefix,...a)}}log(...e){this.emit("log",e)}warn(...e){this.emit("warn",e)}error(...e){this.emit("error",e)}success(...e){this.emit("info",e)}info(...e){this.emit("info",e)}ready(...e){this.emit("info",e)}debug(...e){(0,r.Bb)()&&this.emit("debug",e)}};function c(e){return new a(e)}c(n),function(e){const t=new a(e);Object.defineProperty(t,"__mf_infrastructure_logger__",{value:!0,enumerable:!1,configurable:!1})}(n);const l=(e,t,o,r)=>{const n=[`${[t[e]]} #${e}`];return o&&n.push(`args: ${JSON.stringify(o)}`),n.push((e=>`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split("-")[0].toLowerCase()}#${e.toLowerCase()}`)(e)),r&&n.push(`Original Error Message:\n ${r}`),n.join("\n")},h="[ Federation Runtime ]",u=c(h);function d(e,t,o,r,n){e||(void 0!==o?m(t,o,r,void 0):m(t))}function m(e,t,o,r,n){if(void 0!==t)return function(e,t,o,r,n){return(e=>{throw new Error(`${h}: ${e}`)})(l(e,t,o,n))}(e,t,o??{},0,r);const i=e;if(i instanceof Error)throw i.message.startsWith(h)||(i.message=`${h}: ${i.message}`),i;throw new Error(`${h}: ${i}`)}function f(e){e instanceof Error?(e.message.startsWith(h)||(e.message=`${h}: ${e.message}`),u.warn(e)):u.warn(e)}function p(e){return"version"in e&&e.version?`${e.name}:${e.version}`:"entry"in e&&e.entry?`${e.name}:${e.entry}`:`${e.name}`}function y(e){return void 0!==e.entry}function g(e){return!e.entry.includes(".json")}function E(e){return e&&"object"==typeof e}const S=Object.prototype.toString;function b(e){return Array.isArray(e)?e:[e]}function _(e){const t={url:"",type:"global",globalName:""};return r.Hq||(0,r.MC)()||!("ssrRemoteEntry"in e)?"remoteEntry"in e?{url:e.remoteEntry,type:e.remoteEntryType,globalName:e.globalName}:t:"ssrRemoteEntry"in e?{url:e.ssrRemoteEntry||t.url,type:e.ssrRemoteEntryType||t.type,globalName:e.globalName}:t}const I="object"==typeof globalThis?globalThis:window,w=(()=>{try{return document.defaultView}catch{return I}})(),v=w;function k(e,t,o){Object.defineProperty(e,t,{value:o,configurable:!1,writable:!0})}function R(e,t){return Object.hasOwnProperty.call(e,t)}R(I,"__GLOBAL_LOADING_REMOTE_ENTRY__")||k(I,"__GLOBAL_LOADING_REMOTE_ENTRY__",{});const N=I.__GLOBAL_LOADING_REMOTE_ENTRY__;function $(e){R(e,"__VMOK__")&&!R(e,"__FEDERATION__")&&k(e,"__FEDERATION__",e.__VMOK__),R(e,"__FEDERATION__")||(k(e,"__FEDERATION__",{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map}),k(e,"__VMOK__",e.__FEDERATION__)),e.__FEDERATION__.__GLOBAL_PLUGIN__??=[],e.__FEDERATION__.__INSTANCES__??=[],e.__FEDERATION__.moduleInfo??={},e.__FEDERATION__.__SHARE__??={},e.__FEDERATION__.__MANIFEST_LOADING__??={},e.__FEDERATION__.__PRELOADED_MAP__??=new Map}function A(e){I.__FEDERATION__.__INSTANCES__.push(e)}function T(){return I.__FEDERATION__.__DEBUG_CONSTRUCTOR__}function O(e,t=(0,r.Bb)()){t&&(I.__FEDERATION__.__DEBUG_CONSTRUCTOR__=e,I.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__="2.8.2")}function M(e,t){if("string"==typeof t){if(e[t])return{value:e[t],key:t};{const o=Object.keys(e);for(const r of o){const[o,n]=r.split(":"),i=`${o}:${t}`,s=e[i];if(s)return{value:s,key:i}}return{value:void 0,key:t}}}m(`getInfoWithoutType: "key" must be a string, got ${typeof t} (${JSON.stringify(t)}).`)}$(I),$(w);const x=()=>w.__FEDERATION__.moduleInfo,L=(e,t)=>{const o=M(t,p(e)).value;if(o&&!o.version&&"version"in e&&e.version&&(o.version=e.version),o)return o;if("version"in e&&e.version){const{version:t,...o}=e,r=p(o),n=M(w.__FEDERATION__.moduleInfo,r).value;if(n?.version===t)return n}},C=e=>L(e,w.__FEDERATION__.moduleInfo),P=(e,t)=>{const o=p(e);return w.__FEDERATION__.moduleInfo[o]=t,w.__FEDERATION__.moduleInfo},F=e=>(w.__FEDERATION__.moduleInfo={...w.__FEDERATION__.moduleInfo,...e},()=>{const t=Object.keys(e);for(const e of t)delete w.__FEDERATION__.moduleInfo[e]}),H=(e,t)=>{const o=t||`__FEDERATION_${e}:custom__`;return{remoteEntryKey:o,entryExports:I[o]}},D=e=>{const{__GLOBAL_PLUGIN__:t}=w.__FEDERATION__;e.forEach((e=>{-1===t.findIndex((t=>t.name===e.name))?t.push(e):f(`The plugin ${e.name} has been registered.`)}))},j=()=>w.__FEDERATION__.__GLOBAL_PLUGIN__,U=e=>I.__FEDERATION__.__PRELOADED_MAP__.get(e),G=e=>I.__FEDERATION__.__PRELOADED_MAP__.set(e,!0),q="default",B="global",V="[0-9A-Za-z-]+",W=`(?:\\+(${V}(?:\\.${V})*))`,J="0|[1-9]\\d*",K="[0-9]+",z="\\d*[a-zA-Z-][a-zA-Z0-9-]*",Y=`(?:${K}|${z})`,Q=`(?:${J}|${z})`,Z=`(?:-(${Q}(?:\\.${Q})*))`,X=`${J}|x|X|\\*`,ee=`[v=\\s]*(${X})(?:\\.(${X})(?:\\.(${X})(?:${Z})?${W}?)?)?`,te=`^\\s*(${ee})\\s+-\\s+(${ee})\\s*$`,oe="((?:<|>)?=?)",re=`(\\s*)${oe}\\s*([v=\\s]*(${K})\\.(${K})\\.(${K})(?:-?(${Y}(?:\\.${Y})*))?${W}?|${ee})`,ne="(?:~>?)",ie=`(\\s*)${ne}\\s+`,se="(?:\\^)",ae=`(\\s*)${se}\\s+`,ce=`^${se}${ee}$`,le=`^${ne}${ee}$`,he=`^${oe}\\s*${ee}$`,ue=`^${oe}\\s*(v?(${J})\\.(${J})\\.(${J})${Z}?${W}?)$|^$`;function de(e){return new RegExp(e)}function me(e){return!e||"x"===e.toLowerCase()||"*"===e}function fe(...e){return t=>e.reduce(((e,t)=>t(e)),t)}function pe(e){return e.match(de(ue))}function ye(e,t,o,r){const n=`${e}.${t}.${o}`;return r?`${n}-${r}`:n}function ge(e){return e.replace(de(te),((e,t,o,r,n,i,s,a,c,l,h,u)=>`${t=me(o)?"":me(r)?`>=${o}.0.0`:me(n)?`>=${o}.${r}.0`:`>=${t}`} ${a=me(c)?"":me(l)?`<${Number(c)+1}.0.0-0`:me(h)?`<${c}.${Number(l)+1}.0-0`:u?`<=${c}.${l}.${h}-${u}`:`<=${a}`}`.trim()))}function Ee(e){return e.replace(de(re),"$1$2$3")}function Se(e){return e.replace(de(ie),"$1~")}function be(e){return e.replace(de(ae),"$1^")}function _e(e){return e.trim().split(/\s+/).map((e=>e.replace(de(ce),((e,t,o,r,n)=>me(t)?"":me(o)?`>=${t}.0.0 <${Number(t)+1}.0.0-0`:me(r)?"0"===t?`>=${t}.${o}.0 <${t}.${Number(o)+1}.0-0`:`>=${t}.${o}.0 <${Number(t)+1}.0.0-0`:n?"0"===t?"0"===o?`>=${t}.${o}.${r}-${n} <${t}.${o}.${Number(r)+1}-0`:`>=${t}.${o}.${r}-${n} <${t}.${Number(o)+1}.0-0`:`>=${t}.${o}.${r}-${n} <${Number(t)+1}.0.0-0`:"0"===t?"0"===o?`>=${t}.${o}.${r} <${t}.${o}.${Number(r)+1}-0`:`>=${t}.${o}.${r} <${t}.${Number(o)+1}.0-0`:`>=${t}.${o}.${r} <${Number(t)+1}.0.0-0`)))).join(" ")}function Ie(e){return e.trim().split(/\s+/).map((e=>e.replace(de(le),((e,t,o,r,n)=>me(t)?"":me(o)?`>=${t}.0.0 <${Number(t)+1}.0.0-0`:me(r)?`>=${t}.${o}.0 <${t}.${Number(o)+1}.0-0`:n?`>=${t}.${o}.${r}-${n} <${t}.${Number(o)+1}.0-0`:`>=${t}.${o}.${r} <${t}.${Number(o)+1}.0-0`)))).join(" ")}function we(e){return e.split(/\s+/).map((e=>e.trim().replace(de(he),((e,t,o,r,n,i)=>{const s=me(o),a=s||me(r),c=a||me(n);return"="===t&&c&&(t=""),i="",s?">"===t||"<"===t?"<0.0.0-0":"*":t&&c?(a&&(r=0),n=0,">"===t?(t=">=",a?(o=Number(o)+1,r=0,n=0):(r=Number(r)+1,n=0)):"<="===t&&(t="<",a?o=Number(o)+1:r=Number(r)+1),"<"===t&&(i="-0"),`${t+o}.${r}.${n}${i}`):a?`>=${o}.0.0${i} <${Number(o)+1}.0.0-0`:c?`>=${o}.${r}.0${i} <${o}.${Number(r)+1}.0-0`:e})))).join(" ")}function ve(e){return e.trim().replace(de("(<|>)?=?\\s*\\*"),"")}function ke(e,t){return(e=Number(e)||e)>(t=Number(t)||t)?1:e===t?0:-1}function Re(e,t){return ke(e.major,t.major)||ke(e.minor,t.minor)||ke(e.patch,t.patch)||function(e,t){const{preRelease:o}=e,{preRelease:r}=t;if(void 0===o&&Boolean(r))return 1;if(Boolean(o)&&void 0===r)return-1;if(void 0===o&&void 0===r)return 0;for(let e=0,t=o.length;e<=t;e++){const t=o[e],n=r[e];if(t!==n)return void 0===t&&void 0===n?0:t?n?ke(t,n):-1:1}return 0}(e,t)}function Ne(e,t){return e.version===t.version}function $e(e,t){switch(e.operator){case"":case"=":return Ne(e,t);case">":return Re(e,t)<0;case">=":return Ne(e,t)||Re(e,t)<0;case"<":return Re(e,t)>0;case"<=":return Ne(e,t)||Re(e,t)>0;case void 0:return!0;default:return!1}}function Ae(e){return fe(_e,Ie,we,ve)(e)}function Te(e){return fe(ge,Ee,Se,be)(e.trim()).split(/\s+/).join(" ")}function Oe(e,t){if(!e)return!1;const o=pe(e);if(!o)return!1;const[,r,,n,i,s,a]=o,c={operator:r,version:ye(n,i,s,a),major:n,minor:i,patch:s,preRelease:a?.split(".")},l=t.split("||");for(const e of l){const t=e.trim();if(!t)return!0;if("*"===t||"x"===t)return!0;try{const e=Te(t);if(!e.trim())return!0;const o=e.split(" ").map((e=>Ae(e))).join(" ");if(!o.trim())return!0;const r=o.split(/\s+/).map((e=>e.trim().replace(de("^\\s*>=\\s*0.0.0\\s*$"),""))).filter(Boolean);if(0===r.length)continue;let n=!0;for(const e of r){const t=pe(e);if(!t){n=!1;break}const[,o,,r,i,s,a]=t;if(!$e({operator:o,version:ye(r,i,s,a),major:r,minor:i,patch:s,preRelease:a?.split(".")},c)){n=!1;break}}if(n)return!0}catch(e){console.error(`[semver] Error processing range part "${t}":`,e);continue}}return!1}var Me=o(151);function xe(e,t){const o=t.shared||{},r=t.name,n=Object.keys(o).reduce(((e,n)=>{const i=b(o[n]);return e[n]=e[n]||[],i.forEach((o=>{e[n].push(function(e,t,o,r){let n;return n="get"in e?e.get:"lib"in e?()=>Promise.resolve(e.lib):()=>Promise.resolve((()=>{m(`Cannot get shared "${o}" from "${t}": neither "get" nor "lib" is provided in the share config.`)})),e.shareConfig?.eager&&e.treeShaking?.mode&&m(`Invalid shared config for "${o}" 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:n,loaded:!(!e?.loaded&&!("lib"in e))||void 0,version:e.version??"0",scope:Array.isArray(e.scope)?e.scope:[e.scope??"default"],strategy:(e.strategy??r)||"version-first",treeShaking:e.treeShaking?{...e.treeShaking,mode:e.treeShaking.mode??"server-calc",status:e.treeShaking.status??Me.gF.UNKNOWN,useIn:[]}:void 0}}(o,r,n,t.shareStrategy))})),e}),{}),i={...e.shared};return Object.keys(n).forEach((e=>{i[e]?n[e].forEach((t=>{i[e].find((e=>e.version===t.version))||i[e].push(t)})):i[e]=n[e]})),{allShareInfos:i,newShareInfos:n}}function Le(e,t){if(!e)return!1;const{status:o,mode:r}=e;return o!==Me.gF.NO_USE&&(o===Me.gF.CALCULATED||"runtime-infer"===r&&(!t||He(e,t)))}function Ce(e,t){const o=e=>{if(!Number.isNaN(Number(e))){const t=e.split(".");let o=e;for(let e=0;e<3-t.length;e++)o+=".0";return o}return e};return!!Oe(o(e),`<=${o(t)}`)}const Pe=(e,t)=>{const o=t||function(e,t){return Ce(e,t)};return Object.keys(e).reduce(((e,t)=>e?o(e,t)||"0"===e?t:e:t),0)},Fe=e=>Boolean(e.loaded)||"function"==typeof e.lib,He=(e,t)=>{if(!e||!t)return!1;const{usedExports:o}=e;return!!o&&!!t.every((e=>o.includes(e)))};function De(e,t,o,r){const n=e[t][o];let i="",s=Le(r);const a=function(e,t){return s?!n[e].treeShaking||!!n[t].treeShaking&&!Fe(n[e].treeShaking)&&Ce(e,t):!Fe(n[e])&&Ce(e,t)};if(s){if(i=Pe(e[t][o],a),i)return{version:i,useTreesShaking:s};s=!1}return{version:Pe(e[t][o],a),useTreesShaking:s}}const je=e=>Fe(e)||(e=>Boolean(e.loading))(e);function Ue(e,t,o,r){const n=e[t][o];let i="",s=Le(r);const a=function(e,t){if(s){if(!n[e].treeShaking)return!0;if(!n[t].treeShaking)return!1;if(je(n[t].treeShaking))return!je(n[e].treeShaking)||Boolean(Ce(e,t));if(je(n[e].treeShaking))return!1}return je(n[t])?!je(n[e])||Boolean(Ce(e,t)):!je(n[e])&&Ce(e,t)};if(s){if(i=Pe(e[t][o],a),i)return{version:i,useTreesShaking:s};s=!1}return{version:Pe(e[t][o],a),useTreesShaking:s}}function Ge(e){return"loaded-first"===e?Ue:De}function qe(e,t,o,r){if(!e)return;const{shareConfig:n,scope:i=q,strategy:s,treeShaking:a}=o,c=Array.isArray(i)?i:[i];for(const i of c)if(n&&e[i]&&e[i][t]){const{requiredVersion:c}=n,{version:l,useTreesShaking:h}=Ge(s)(e,i,t,a),u=()=>{const r=e[i][t][l];if(n.singleton){if("string"==typeof c&&!Oe(l,c)){const e=`Version ${l} from ${l&&r.from} of shared singleton module ${t} does not satisfy the requirement of ${o.from} which needs ${c})`;n.strictVersion?m(e):f(e)}return{shared:r,useTreesShaking:h}}{if(!1===c||"*"===c)return{shared:r,useTreesShaking:h};if(Oe(l,c))return{shared:r,useTreesShaking:h};const o=Le(a);if(o)for(const[r,n]of Object.entries(e[i][t]))if(Le(n.treeShaking,a?.usedExports)&&Oe(r,c))return{shared:n,useTreesShaking:o};for(const[o,r]of Object.entries(e[i][t]))if(Oe(o,c))return{shared:r,useTreesShaking:!1}}},d={shareScopeMap:e,scope:i,pkgName:t,version:l,GlobalFederation:v.__FEDERATION__,shareInfo:o,resolver:u};return(r.emit(d)||d).resolver()}}function Be(){return v.__FEDERATION__.__SHARE__}function Ve(e){const{pkgName:t,extraOptions:o,shareInfos:r}=e,n=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),i=(...e)=>{const t={};for(const o of e)if(o)for(const[e,r]of Object.entries(o)){const o=t[e];n(o)&&n(r)?t[e]=i(o,r):void 0!==r&&(t[e]=r)}return t};return i((o?.resolver??(e=>{if(!e)return;const t={};return e.forEach((e=>{t[e.version]=e})),t[Pe(t,(function(e,o){return!Fe(t[e])&&Ce(e,o)}))]}))(r[t]),o?.customShareInfo)}const We=(e,t)=>{var o,r;e.useIn||(e.useIn=[]),o=e.useIn,r=t,-1===o.findIndex((e=>e===r))&&o.push(r)};function Je(e,t){return t&&e.treeShaking?e.treeShaking:e}var Ke=o(378);async function ze(e,t){try{return await e()}catch(e){return void(!t&&(0,Ke.R8)(e))}}function Ye(e,t){const o=/^(https?:)?\/\//i;return e.replace(o,"").replace(/\/$/,"")===t.replace(o,"").replace(/\/$/,"")}function Qe(e){let t,o=null,r=!0,n=2e4;const i=document.getElementsByTagName("script");for(let t=0;t<i.length;t++){const n=i[t],s=n.getAttribute("src");if(s&&Ye(s,e.url)){o=n,r=!1;break}}if(!o){const t=e.attrs;let r;o=document.createElement("script"),o.type="module"===t?.type?"module":"text/javascript",e.createScriptHook&&(r=e.createScriptHook(e.url,e.attrs),r instanceof HTMLScriptElement?o=r:"object"==typeof r&&("script"in r&&r.script&&(o=r.script),"timeout"in r&&r.timeout&&(n=r.timeout))),o.src||(o.src=e.url),t&&!r&&Object.keys(t).forEach((e=>{o&&("async"===e||"defer"===e?o[e]=t[e]:o.getAttribute(e)||o.setAttribute(e,t[e]))}))}let s=null;const a="undefined"!=typeof window?t=>{if(t.filename&&Ye(t.filename,e.url)){const o=new Error(`ScriptExecutionError: Script "${e.url}" loaded but threw a runtime error during execution: ${t.message} (${t.filename}:${t.lineno}:${t.colno})`);o.name="ScriptExecutionError",s=o}}:null;a&&window.addEventListener("error",a);const c=async(r,n)=>{clearTimeout(t),a&&window.removeEventListener("error",a);const i=()=>{if("error"===n?.type){const t=new Error(n?.isTimeout?`ScriptNetworkError: Script "${e.url}" timed out.`:`ScriptNetworkError: Failed to load script "${e.url}" - the script URL is unreachable or the server returned an error (network failure, 404, CORS, etc.)`);t.name="ScriptNetworkError",e?.onErrorCallback&&e?.onErrorCallback(t)}else s?e?.onErrorCallback&&e?.onErrorCallback(s):e?.cb&&e?.cb()};if(o&&(o.onerror=null,o.onload=null,ze((()=>{const{needDeleteScript:t=!0}=e;t&&o?.parentNode&&o.parentNode.removeChild(o)})),r&&"function"==typeof r)){const e=r(n);if(e instanceof Promise){const t=await e;return i(),t}return i(),e}i()};return o.onerror=c.bind(null,o.onerror),o.onload=c.bind(null,o.onload),t=setTimeout((()=>{c(null,{type:"error",isTimeout:!0})}),n),{script:o,needAttach:r}}function Ze(e,t){const{attrs:o={},createScriptHook:r}=t;return new Promise(((t,n)=>{const{script:i,needAttach:s}=Qe({url:e,cb:t,onErrorCallback:n,attrs:{fetchpriority:"high",...o},createScriptHook:r,needDeleteScript:!0});s&&document.head.appendChild(i)}))}const Xe=new Map;function et(e){if(!e)throw new Error("import specifier is required");if(Xe.has(e))return Xe.get(e);const t=new Function("name","return import(name)")(e).then((e=>e)).catch((t=>{throw console.error(`Error importing module ${e}:`,t),Xe.delete(e),t}));return Xe.set(e,t),t}const tt="undefined"==typeof ENV_TARGET||"web"!==ENV_TARGET?(e,t,o,r)=>{if(r?.createScriptHook){const t=r.createScriptHook(e);t&&"object"==typeof t&&"url"in t&&(e=t.url)}let n;try{n=new URL(e)}catch(e){return console.error("Error constructing URL:",e),void t(new Error(`Invalid URL: ${e}`))}(async()=>r?.fetch?(e,t)=>(async(e,t,o)=>{const r=await((e,t)=>o.lifecycle.fetch.emit(e,t))(e,t||{});return r&&r instanceof Response?r:fetch(e,t||{})})(e,t,r):fetch)().then((async e=>{if("esm"===o?.type||"module"===o?.type)return at(n.href,{fetch:e,vm:await et("vm")}).then((async e=>{await e.evaluate(),t(void 0,e.namespace)})).catch((e=>{t(e instanceof Error?e:new Error(`Script execution error: ${e}`))}));(async(e,r)=>{try{const n=await e(r.href),i=await n.text(),[s,a]=await Promise.all([et("path"),et("vm")]),c={exports:{},module:{exports:{}}},l=r.pathname.split("/").slice(0,-1).join("/"),h=s.basename(r.pathname),u=new a.Script(`(function(exports, module, require, __dirname, __filename) {${i}\n})`,{filename:h,importModuleDynamically:a.constants?.USE_MAIN_CONTEXT_DEFAULT_LOADER??et});let d;d=(await et("node:module")).createRequire("file:"===r.protocol||"node:"===r.protocol?r.href:s.join(process.cwd(),"__mf_require_base__.js")),u.runInThisContext()(c.exports,c.module,d,l,h);const m=c.module.exports||c.exports;if(o&&m&&o.globalName)return void t(void 0,m[o.globalName]||m);t(void 0,m)}catch(e){t(e instanceof Error?e:new Error(`Script execution error: ${e}`))}})(e,n)})).catch((e=>{t(e)}))}:(e,t,o,r)=>{t(new Error("createScriptNode is disabled in non-Node.js environment"))},ot="undefined"==typeof ENV_TARGET||"web"!==ENV_TARGET?(e,t)=>new Promise(((o,r)=>{tt(e,((e,n)=>{e?r(e):o(globalThis[t?.attrs?.globalName||`__FEDERATION_${t?.attrs?.name}:custom__`]=n)}),t.attrs,t.loaderHook)})):(e,t)=>{throw new Error("loadScriptNode is disabled in non-Node.js environment")},rt=new Map,nt=e=>e.startsWith("http:")||e.startsWith("https:"),it=e=>!(e.startsWith("./")||e.startsWith("../")||e.startsWith("/")||e.includes(":"));async function st(e,t,o){if(await async function(e){return!!e.startsWith("node:")||!!it(e)&&(await et("node:module")).builtinModules.includes(e)}(e))return async function(e,t){const o=`node-builtin:${e}`;return rt.has(o)?rt.get(o):async function(e,t,o){if("function"!=typeof o.SyntheticModule)throw new Error("vm.SyntheticModule is required to load Node.js built-in modules in ESM remote entries.");const r=function(e){const t=!e||"object"!=typeof e&&"function"!=typeof e?{default:e}:e,o={...t};return Object.prototype.hasOwnProperty.call(o,"default")||(o.default=t),o}(t),n=Object.keys(r),i=new o.SyntheticModule(n,(function(){for(const e of n)this.setExport(e,r[e])}),{identifier:e});return rt.set(e,i),await i.link((async()=>{throw new Error(`Node.js built-in module "${e}" should not request child modules.`)})),await i.evaluate(),i}(o,await et(e),t)}(e,o.vm);if(it(e))throw new Error(`Unsupported ESM module specifier "${e}". Only relative or absolute http(s) remote modules and Node.js built-in modules are supported.`);const r=new URL(e,t).href;if(!nt(r))throw new Error(`Unsupported ESM module specifier "${e}" resolved to "${r}". Only http(s) remote modules and Node.js built-in modules are supported.`);return at(r,o)}async function at(e,t){if(rt.has(e))return rt.get(e);const{fetch:o,vm:r}=t;if(!nt(e))throw new Error(`Unsupported ESM module URL "${e}". Only http(s) remote modules and Node.js built-in modules are supported.`);const n=await(await o(e)).text(),i=(await et("node:url")).pathToFileURL(process.cwd()).href,s=new r.SourceTextModule(n,{identifier:e,initializeImportMeta:t=>{t.url=function(e,t){const o=t.endsWith("/")?t:`${t}/`;return new URL(`__module_federation_remote__${function(e){const t=new URL(e),o=encodeURIComponent(t.protocol.slice(0,-1)),r=encodeURIComponent(t.host),n=t.pathname.split("/").map((e=>encodeURIComponent(e))).join("/"),i=encodeURIComponent(`${t.search}${t.hash}`);return`/${o}/${r}${n}${i?`/${i}`:""}`}(e)}`,o).href}(e,i)},importModuleDynamically:async o=>async function(e){if("linked"===e.status&&await e.evaluate(),"errored"===e.status)throw e.error;return e}(await st(o,e,t))});return rt.set(e,s),await s.link((async o=>st(o,e,t))),s}var ct=o(904),lt=o(10);const ht=".then(callbacks[0]).catch(callbacks[1])",ut=["Failed to fetch dynamically imported module","Importing a module script failed","error loading dynamically imported module"];function dt(e){return"esm"===e||"module"===e}function mt(e,t,o){const{remoteEntryKey:r,entryExports:n}=H(e,t);return n||m(ct.Fj,lt.UJ,{remoteName:e,remoteEntryUrl:o,remoteEntryKey:r}),n}async function ft({remoteInfo:e,remoteEntryExports:t,loaderHook:o,getEntryUrl:r,resourceContext:n}){const{entry:i,entryGlobalName:s,name:a,type:c}=e;return dt(c)?async function({entry:e,remoteEntryExports:t,name:o,getEntryUrl:r}){return new Promise(((n,i)=>{const s=e=>{if((t=e)instanceof TypeError&&ut.some((e=>t.message.includes(e)))){const t=e instanceof Error?e.message:String(e);try{m(ct.ML,lt.UJ,{remoteName:o,resourceUrl:a},t)}catch(e){return void i(e)}}var t;i(e)},a=r?r(e):e;try{t?n(t):"undefined"!=typeof FEDERATION_ALLOW_NEW_FUNCTION?new Function("callbacks",`import("${a}")${ht}`)([n,s]):import(a).then(n).catch(s)}catch(e){m(`Failed to load ESM entry from "${a}". ${e instanceof Error?e.message:String(e)}`)}}))}({entry:i,remoteEntryExports:t,name:a,getEntryUrl:r}):"system"===c?async function({entry:e,remoteEntryExports:t}){return new Promise(((o,r)=>{try{t?o(t):new Function("callbacks",`System.import("${e}")${ht}`)([o,r])}catch(t){m(`Failed to load SystemJS entry from "${e}". ${t instanceof Error?t.message:String(t)}`)}}))}({entry:i,remoteEntryExports:t}):async function({name:e,globalName:t,entry:o,remoteInfo:r,loaderHook:n,getEntryUrl:i,resourceContext:s}){const{entryExports:a}=H(e,t);if(a)return a;const c=i?i(o):o;return Ze(c,{attrs:{},createScriptHook:(e,t)=>{const o=n.lifecycle.createScript.emit({url:e,attrs:t,remoteInfo:r,resourceContext:s?{...s,url:e}:void 0});if(o)return o instanceof HTMLScriptElement||"script"in o||"timeout"in o?o:void 0}}).then((()=>mt(e,t,o)),(t=>{const o=t instanceof Error?t.message:String(t);m(ct.ML,lt.UJ,{remoteName:e,resourceUrl:c},o)}))}({entry:i,globalName:s,name:a,remoteInfo:e,loaderHook:o,getEntryUrl:r,resourceContext:n})}function pt(e){const{entry:t,name:o}=e;return(0,Ke.lG)(o,t)}async function yt(e){const{origin:t,remoteEntryExports:o,remoteInfo:n,getEntryUrl:i,resourceContext:s,_inErrorHandling:a=!1}=e,c=pt(n);if(o)return o;if(!N[c]){const e=t.remoteHandler.hooks.lifecycle.loadEntry,l=t.loaderHook;N[c]=e.emit({origin:t,loaderHook:l,remoteInfo:n,remoteEntryExports:o}).then((e=>e||(("undefined"!=typeof ENV_TARGET?"web"===ENV_TARGET:r.Hq)?ft({remoteInfo:n,remoteEntryExports:o,loaderHook:l,getEntryUrl:i,resourceContext:s}):async function({remoteInfo:e,loaderHook:t,resourceContext:o}){const{entry:r,entryGlobalName:n,name:i,type:s}=e,{entryExports:a}=H(i,n);return a||ot(r,{attrs:{name:i,globalName:n,type:s},loaderHook:{createScriptHook:(r,n={})=>{const i=t.lifecycle.createScript.emit({url:r,attrs:n,remoteInfo:e,resourceContext:o?{...o,url:r}:void 0});if(i)return"url"in i?i:void 0}}}).then((()=>mt(i,n,r))).catch((e=>{m(`Failed to load Node.js entry for remote "${i}" from "${r}". ${e instanceof Error?e.message:String(e)}`)}))}({remoteInfo:n,loaderHook:l,resourceContext:s})))).then((async e=>(await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:n,remoteEntryExports:e}),e))).catch((async e=>{const r=pt(n),i=e instanceof Error&&e.message.includes("ScriptExecutionError");if(e instanceof Error&&e.message.includes(ct.ML)&&!i&&!a){const e=e=>yt({...e,_inErrorHandling:!0}),i=await t.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:e,origin:t,remoteInfo:n,remoteEntryExports:o,globalLoading:N,uniqueKey:r});if(i)return await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:n,remoteEntryExports:i,recovered:!0}),i}throw await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:n,error:e}),e}))}return N[c]}function gt(e){return{...e,entry:"entry"in e?e.entry:"",type:e.type||B,entryGlobalName:e.entryGlobalName||e.name,shareScope:e.shareScope||q}}function Et(e,t){return t&&"."!==t?`${e}/${t.replace(/^\.\//,"")}`:e}function St(e,t){for(const o of e){const e=t.startsWith(o.name);let r=t.replace(o.name,"");if(e){if(r.startsWith("/"))return r=`.${r}`,{pkgNameOrAlias:o.name,expose:r,remote:o};if(""===r)return{pkgNameOrAlias:o.name,expose:".",remote:o}}const n=o.alias&&t.startsWith(o.alias);let i=o.alias&&t.replace(o.alias,"");if(o.alias&&n){if(i&&i.startsWith("/"))return i=`.${i}`,{pkgNameOrAlias:o.alias,expose:i,remote:o};if(""===i)return{pkgNameOrAlias:o.alias,expose:".",remote:o}}}}function bt(e){return{resourceCategory:"sync",share:!0,depsRemote:!0,...e}}function _t(e){return e instanceof Error&&(e.message.includes("timed out")||e.name.includes("Timeout"))}function It(e,t,o,r){return{url:t,status:o,resourceType:e.resourceType,initiator:e.initiator,id:e.id,error:r}}function wt({host:e,remoteInfo:t,url:o,attrs:r,context:n,needDeleteLink:i}){return new Promise((s=>{const{link:a,needAttach:c}=function(e){let t,o=null,r=!0,n=2e4;const i=document.getElementsByTagName("link");for(let t=0;t<i.length;t++){const n=i[t],s=n.getAttribute("href"),a=n.getAttribute("rel");if(s&&Ye(s,e.url)&&a===e.attrs.rel){o=n,r=!1;break}}if(!o){let t;o=document.createElement("link"),o.setAttribute("href",e.url);let r=!0;const i=e.attrs;e.createLinkHook&&(t=e.createLinkHook(e.url,i),t instanceof HTMLLinkElement?(o=t,r=!1):"object"==typeof t&&("link"in t&&t.link&&(o=t.link,r=!1),"timeout"in t&&t.timeout&&(n=t.timeout))),i&&r&&Object.keys(i).forEach((e=>{o&&!o.getAttribute(e)&&o.setAttribute(e,i[e])}))}if(!r)return Promise.resolve().then((()=>{e?.cb&&e?.cb()})),{link:o,needAttach:r};const s=(r,n)=>{t&&clearTimeout(t);const i=()=>{if("error"===n?.type){const t=new Error(n?.isTimeout?`LinkNetworkError: Link "${e.url}" timed out.`:`LinkNetworkError: Failed to load link "${e.url}" - the URL is unreachable or the server returned an error.`);t.name="LinkNetworkError",e?.onErrorCallback&&e?.onErrorCallback(t)}else e?.cb&&e?.cb()};if(o&&(o.onerror=null,o.onload=null,ze((()=>{const{needDeleteLink:t=!0}=e;t&&o?.parentNode&&o.parentNode.removeChild(o)})),r)){const e=r(n);return i(),e}i()};return o.onerror=s.bind(null,o.onerror),o.onload=s.bind(null,o.onload),t=setTimeout((()=>{s(null,{type:"error",isTimeout:!0})}),n),{link:o,needAttach:r}}({url:o,cb:()=>{s(It(n,o,c?"success":"cached"))},onErrorCallback:e=>{s(It(n,o,_t(e)?"timeout":"error",e))},attrs:r,createLinkHook:(o,r)=>{const i=e.loaderHook.lifecycle.createLink.emit({url:o,attrs:r,remoteInfo:t,resourceContext:{...n,url:o}});return HTMLLinkElement,i},needDeleteLink:i});c&&document.head.appendChild(a)}))}function vt({host:e,remoteInfo:t,url:o,attrs:r,context:n}){return new Promise((i=>{const{script:s,needAttach:a}=Qe({url:o,cb:()=>{i(It(n,o,a?"success":"cached"))},onErrorCallback:e=>{i(It(n,o,_t(e)?"timeout":"error",e))},attrs:r,createScriptHook:(o,r)=>{const i=e.loaderHook.lifecycle.createScript.emit({url:o,attrs:r,remoteInfo:t,resourceContext:{...n,url:o}});return HTMLScriptElement,i},needDeleteScript:!0});a&&document.head.appendChild(s)}))}function kt(e,t){return{...e,resourceType:t}}function Rt(e,t,o,r=!0,n={initiator:"preloadRemote",id:e.name}){const{cssAssets:i,jsAssetsWithoutEntry:s,entryAssets:a}=o,c=[];if(t.options.inBrowser){if(a.forEach((e=>{const{moduleInfo:o}=e;c.push(async function(e,t,o,r){const n=e.moduleCache.get(o.name),i=o.entry;if(n?.remoteEntryExports)return It(r,i,"cached");try{if(!await yt({origin:e,remoteInfo:o,remoteEntryExports:n?.remoteEntryExports,resourceContext:{...r,url:i}}))throw new Error(`Failed to load remoteEntry "${i}".`);return It(r,i,"success")}catch(e){return It(r,i,_t(e)?"timeout":"error",e)}}(t,0,o,kt(n,"remoteEntry")))})),r){const o={rel:"preload",as:"style"};i.forEach((r=>{c.push(wt({host:t,remoteInfo:e,url:r,attrs:o,context:kt(n,"css")}))}))}else{const o={rel:"stylesheet",type:"text/css"};i.forEach((r=>{c.push(wt({host:t,remoteInfo:e,url:r,attrs:o,needDeleteLink:!1,context:kt(n,"css")}))}))}let o=vt,l={fetchpriority:"high",type:"text/javascript"};r?(o=wt,l={rel:"preload",as:"script"}):dt(e.type)&&(o=wt,l={rel:"modulepreload",fetchpriority:"high"}),s.forEach((r=>{c.push(o({host:t,remoteInfo:e,url:r,attrs:l,context:kt(n,"js")}))}))}return Promise.all(c)}var Nt={global:{Global:v,nativeGlobal:w,resetFederationGlobalInfo:function(){I.__FEDERATION__.__GLOBAL_PLUGIN__=[],I.__FEDERATION__.__INSTANCES__=[],I.__FEDERATION__.moduleInfo={},I.__FEDERATION__.__SHARE__={},I.__FEDERATION__.__MANIFEST_LOADING__={},Object.keys(N).forEach((e=>{delete N[e]}))},setGlobalFederationInstance:A,getGlobalFederationConstructor:T,setGlobalFederationConstructor:O,getInfoWithoutType:M,getGlobalSnapshot:x,getTargetSnapshotInfoByModuleInfo:L,getGlobalSnapshotInfoByModuleInfo:C,setGlobalSnapshotInfoByModuleInfo:P,addGlobalSnapshot:F,getRemoteEntryExports:H,registerGlobalPlugins:D,getGlobalHostPlugins:j,getPreloaded:U,setPreloaded:G},share:{getRegisteredShare:qe,getGlobalShareScope:Be},utils:{matchRemoteWithNameAndExpose:St,preloadAssets:Rt,getRemoteInfo:gt}};function $t(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 At(e){const t={};for(const[o,r]of Object.entries(e.shared)){const e=r[0];e&&(t[o]={version:e.version,singleton:e.shareConfig?.singleton,requiredVersion:!1!==e.shareConfig?.requiredVersion&&e.shareConfig?.requiredVersion,eager:e.eager,strictVersion:e.shareConfig?.strictVersion})}return{project:{name:e.name,mfRole:e.remotes?.length>0?"host":"unknown"},mfConfig:{name:e.name,remotes:e.remotes?.map($t)??[],shared:t}}}function Tt(e){if(!e||!("modules"in e)||!Array.isArray(e.modules))return;const t=e.modules.map((e=>e.moduleName)).filter(Boolean);return t.length?t.join(","):void 0}var Ot=class{constructor({remoteInfo:e,host:t}){this.inited=!1,this.initing=!1,this.lib=void 0,this.remoteInfo=e,this.host=t}async getEntry(e){if(this.remoteEntryExports)return this.remoteEntryExports;const t=await yt({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports,resourceContext:{initiator:"loadRemote",id:Et(this.remoteInfo.name,e),resourceType:"remoteEntry"}});return d(t,`remoteEntryExports is undefined \n ${(0,Ke.ML)(this.remoteInfo)}`),this.remoteEntryExports=t,this.remoteEntryExports}async init(e,t,o,r){const n=await this.getEntry(r);if(this.inited)return await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:n,cached:!0,origin:this.host}),n;if(this.initPromise){try{await this.initPromise,await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:n,cached:!0,origin:this.host})}catch(o){throw await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:n,error:o,cached:!0,origin:this.host}),o}return n}this.initing=!0,this.initPromise=(async()=>{await this.host.loaderHook.lifecycle.beforeInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,origin:this.host});const{remoteEntryInitOptions:r,shareScope:i,initScope:s}=function(e,t,o){const r=t,n=Array.isArray(e.shareScope)?e.shareScope:[e.shareScope];n.length||n.push("default"),n.forEach((e=>{r[e]||(r[e]={})}));const i={version:e.version||"",shareScopeKeys:Array.isArray(e.shareScope)?n:e.shareScope||"default"};return Object.defineProperty(i,"shareScopeMap",{value:r,enumerable:!1}),{remoteEntryInitOptions:i,shareScope:r[n[0]],initScope:o??[]}}(this.remoteInfo,this.host.shareScopeMap,o),a=await this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:i,remoteEntryInitOptions:r,initScope:s,remoteInfo:this.remoteInfo,origin:this.host});void 0===n?.init&&m(ct.MC,lt.UJ,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName},void 0,At(this.host.options));try{await n.init(a.shareScope,a.initScope,a.remoteEntryInitOptions)}catch(e){m(ct.uz,lt.UJ,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName,shareScope:this.remoteInfo.shareScope},`${e}`,At(this.host.options))}await this.host.hooks.lifecycle.initContainer.emit({...a,id:e,remoteSnapshot:t,remoteEntryExports:n}),this.inited=!0})();try{await this.initPromise,await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:n,origin:this.host})}catch(o){throw await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:n,error:o,origin:this.host}),o}finally{this.initing=!1,this.initPromise=void 0}return n}async get(e,t,o,r){const{loadFactory:n=!0}=o||{loadFactory:!0},i=await this.init(e,r,void 0,t);let s;this.lib=i,await this.host.loaderHook.lifecycle.beforeGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:i,origin:this.host});try{const o=await this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports:i,expose:t,moduleInfo:this.remoteInfo});s="function"==typeof o?o:void 0,s||(s=await i.get(t)),s||m(ct.BC,lt.UJ,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,expose:t,requestId:e,availableExposes:Tt(r)},void 0,At(this.host.options)),await this.host.loaderHook.lifecycle.afterGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:i,moduleFactory:s,origin:this.host})}catch(o){throw await this.host.loaderHook.lifecycle.afterGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:i,error:o,origin:this.host}),o}const a=((e,t)=>{let o;return o=e.endsWith("/")?e.slice(0,-1):e,t.startsWith(".")&&(t=t.slice(1)),o+=t,o})(this.remoteInfo.name,t),c=this.wraperFactory(s,a);if(!n)return c;await this.host.loaderHook.lifecycle.beforeExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:n,origin:this.host});try{const o=await c();return await this.host.loaderHook.lifecycle.afterExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:n,exposeModule:o,origin:this.host}),o}catch(o){throw await this.host.loaderHook.lifecycle.afterExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:n,error:o,origin:this.host}),o}}wraperFactory(e,t){function o(e,t){e&&"object"==typeof e&&Object.isExtensible(e)&&!Object.getOwnPropertyDescriptor(e,Symbol.for("mf_module_id"))&&Object.defineProperty(e,Symbol.for("mf_module_id"),{value:t,enumerable:!1})}return()=>{const r=e();return r instanceof Promise?r.then((e=>(o(e,t),e))):(o(r,t),r)}}},Mt=class{constructor(e){this.registerPlugins={},this.lifecycle=e,this.lifecycleKeys=Object.keys(e)}applyPlugin(e,t){var o;d((o=e,"[object Object]"===S.call(o)),"Plugin configuration is invalid.");const r=e.name;d(r,"A name must be provided by the plugin."),this.registerPlugins[r]||(this.registerPlugins[r]=e,e.apply?.(t),Object.keys(this.lifecycle).forEach((t=>{const o=e[t];o&&this.lifecycle[t].on(o)})))}removePlugin(e){d(e,"A name is required.");const t=this.registerPlugins[e];d(t,`The plugin "${e}" is not registered.`),Object.keys(t).forEach((e=>{"name"!==e&&this.lifecycle[e].remove(t[e])}))}},xt=class{constructor(e){this.type="",this.listeners=new Set,e&&(this.type=e)}on(e){"function"==typeof e&&this.listeners.add(e)}once(e){const t=this;this.on((function o(...r){return t.remove(o),e.apply(null,r)}))}emit(...e){let t;return this.listeners.size>0&&this.listeners.forEach((o=>{const r=o(...e);void 0!==r&&(t=r)})),t}remove(e){this.listeners.delete(e)}removeAll(){this.listeners.clear()}};function Lt(e,t){if(!E(t))return!1;if(e!==t)for(const o in e)if(!(o in t))return!1;return!0}var Ct=class extends xt{constructor(e){super(),this.onerror=m,this.type=e}emit(e){E(e)||m(`The data for the "${this.type}" hook should be an object.`);for(const t of this.listeners)try{const o=t(e);if(void 0===o)continue;if(!Lt(e,o)){this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);break}e=o}catch(e){f(e),this.onerror(e)}return e}},Pt=class extends xt{constructor(e){super(),this.onerror=m,this.type=e}emit(e){E(e)||m(`The response data for the "${this.type}" hook must be an object.`);const t=Array.from(this.listeners);if(t.length>0){let o=0;const r=t=>(f(t),this.onerror(t),e),n=i=>{if(void 0!==i&&Lt(e,i))e=i;else if(void 0!==i)return this.onerror(`A plugin returned an incorrect value for the "${this.type}" type.`),e;if(o<t.length)try{return Promise.resolve(t[o++](e)).then(n,r)}catch(e){return r(e)}return e};return Promise.resolve(n(e))}return Promise.resolve(e)}},Ft=class extends xt{emit(...e){let t;const o=Array.from(this.listeners);if(o.length>0){let r=0;const n=t=>!1!==t&&(r<o.length?Promise.resolve(o[r++].apply(null,e)).then((o=>void 0===o||1===e.length&&o===e[0]?n(t):n(o))):t);t=n()}return Promise.resolve(t)}};function Ht(e,t){const o=_(t);o.url||m(ct.uF,lt.UJ,{remoteName:e.name});let n=(0,Ke.Al)(t,o.url);r.Hq||n.startsWith("http")||(n=`https:${n}`),e.type=o.type,e.entryGlobalName=o.globalName,e.entry=n,e.version=t.version,e.buildVersion=t.buildVersion}const Dt=(e,t)=>{if(!e)return t;const o=(e=>{if("."===e)return"";if(e.startsWith("./"))return e.replace("./","");if(e.startsWith("/")){const t=e.slice(1);return t.endsWith("/")?t.slice(0,-1):t}return e})(e);return o?o.endsWith("/")?`${o}${t}`:`${o}/${t}`:t};function jt(e){return!(!("remoteEntry"in e)||!e.remoteEntry.includes(Me.CQ))}function Ut(e){const t=e.split(":");return 1===t.length?{name:t[0],version:void 0}:2===t.length?{name:t[0],version:t[1]}:{name:t[1],version:t[2]}}function Gt(e,t,o,r,n={},i){const{value:s}=M(e,p(t)),a=i||s;if(a&&!jt(a)&&(o(a,t,r),a.remotesInfo)){const t=Object.keys(a.remotesInfo);for(const r of t){if(n[r])continue;n[r]=!0;const t=Ut(r),i=a.remotesInfo[r];Gt(e,{name:t.name,version:i.matchedVersion},o,!1,n,void 0)}}}const qt=(e,t)=>document.querySelector(`${e}[${"link"===e?"href":"src"}="${t}"]`);function Bt(e,t,o,r,n){const i=[],s=[],a=[],c=new Set,l=new Set,{options:h}=e,{preloadConfig:u}=t,{depsRemote:d}=u;if(Gt(r,o,((t,o,r)=>{let n;if(r)n=u;else if(Array.isArray(d)){const e=d.find((e=>e.nameOrAlias===o.name||e.nameOrAlias===o.alias));if(!e)return;n=bt(e)}else{if(!0!==d)return;n=u}const c=(0,Ke.Al)(t,_(t).url);c&&a.push({name:o.name,moduleInfo:{name:o.name,entry:c,type:"remoteEntryType"in t?t.remoteEntryType:"global",entryGlobalName:"globalName"in t?t.globalName:o.name,shareScope:"",version:"version"in t?t.version:void 0},url:c});let l="modules"in t?t.modules:[];const h=(m=n.exposes)?m.map((e=>"."===e?e:e.startsWith("./")?e.replace("./",""):e)):[];var m;function f(e){const o=e.map((e=>(0,Ke.Al)(t,e)));return n.filter?o.filter(n.filter):o}if(h.length&&"modules"in t&&(l=t?.modules?.reduce(((e,t)=>(-1!==h?.indexOf(t.moduleName)&&e.push(t),e)),[])),l){const r=l.length;for(let a=0;a<r;a++){const r=l[a],c=`${o.name}/${r.moduleName}`;e.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:"."===r.moduleName?o.name:c,name:o.name,remoteSnapshot:t,preloadConfig:n,remote:o,origin:e}),U(c)||("all"===n.resourceCategory?(i.push(...f(r.assets.css.async)),i.push(...f(r.assets.css.sync)),s.push(...f(r.assets.js.async)),s.push(...f(r.assets.js.sync))):"sync"===n.resourceCategory&&(i.push(...f(r.assets.css.sync)),s.push(...f(r.assets.js.sync))),G(c))}}}),!0,{},n),n.shared&&n.shared.length>0){const t=(t,o)=>{const{shared:r}=qe(e.shareScopeMap,o.sharedName,t,e.sharedHandler.hooks.lifecycle.resolveShare)||{};r&&"function"==typeof r.lib&&(o.assets.js.sync.forEach((e=>{c.add(e)})),o.assets.css.sync.forEach((e=>{l.add(e)})))};n.shared.forEach((e=>{const o=h.shared?.[e.sharedName];if(!o)return;const r=e.version?o.find((t=>t.version===e.version)):o;r&&b(r).forEach((o=>{t(o,e)}))}))}const m=s.filter((e=>!c.has(e)&&!qt("script",e)));return{cssAssets:i.filter((e=>!l.has(e)&&!qt("link",e))),jsAssetsWithoutEntry:m,entryAssets:a.filter((e=>!qt("script",e.url)))}}function Vt(e,t){const o=C({name:t.name,version:t.options.version}),r=o&&"remotesInfo"in o&&o.remotesInfo&&M(o.remotesInfo,e.name).value;return r&&r.matchedVersion?{hostGlobalSnapshot:o,globalSnapshot:x(),remoteSnapshot:C({name:e.name,version:r.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:x(),remoteSnapshot:C({name:e.name,version:"version"in e?e.version:void 0})}}var Wt=class{constructor(e){this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new Mt({beforeLoadRemoteSnapshot:new Ft("beforeLoadRemoteSnapshot"),loadSnapshot:new Pt("loadGlobalSnapshot"),loadRemoteSnapshot:new Pt("loadRemoteSnapshot"),afterLoadSnapshot:new Pt("afterLoadSnapshot")}),this.manifestLoading=v.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=e,this.loaderHook=e.loaderHook}async loadRemoteSnapshotInfo({moduleInfo:e,id:t,initiator:o="loadRemote"}){const{options:n}=this.HostInstance;await this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:n,moduleInfo:e,origin:this.HostInstance});let i=C({name:this.HostInstance.options.name,version:this.HostInstance.options.version});i||(i={version:this.HostInstance.options.version||"",remoteEntry:"",remotesInfo:{}},F({[this.HostInstance.options.name]:i})),i&&"remotesInfo"in i&&!M(i.remotesInfo,e.name).value&&("version"in e||"entry"in e)&&(i.remotesInfo={...i?.remotesInfo,[e.name]:{matchedVersion:"version"in e?e.version:e.entry}});const{hostGlobalSnapshot:s,remoteSnapshot:a,globalSnapshot:c}=this.getGlobalRemoteInfo(e),{remoteSnapshot:l,globalSnapshot:h}=await this.hooks.lifecycle.loadSnapshot.emit({options:n,moduleInfo:e,hostGlobalSnapshot:s,remoteSnapshot:a,globalSnapshot:c});let u,d;if(l)if(jt(l)){const n=r.Hq?l.remoteEntry:l.ssrRemoteEntry||l.remoteEntry||"",i=await this.loadManifestSnapshot(n,e,{},{initiator:o,id:t||e.name});u=i,d=P({...e,entry:n},i)}else{const{remoteSnapshot:t}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:l,from:"global"});u=t,d=h}else if(y(e)){const r=await this.loadManifestSnapshot(e.entry,e,{},{initiator:o,id:t||e.name});u=r,d=P(e,r)}else m(ct.Tz,lt.UJ,{remoteName:e.name,remoteVersion:e.version,hostName:this.HostInstance.options.name,globalSnapshot:JSON.stringify(h)},void 0,At(this.HostInstance.options));return await this.hooks.lifecycle.afterLoadSnapshot.emit({id:t,host:this.HostInstance,options:n,moduleInfo:e,remoteSnapshot:u}),{remoteSnapshot:u,globalSnapshot:d}}getGlobalRemoteInfo(e){return Vt(e,this.HostInstance)}async getManifestJson(e,t,o,r){return(async()=>{const o=gt(t);let n=this.manifestCache.get(e);if(n)return n;try{let t=await this.loaderHook.lifecycle.fetch.emit(e,{},o,r?{...r,url:e,resourceType:"manifest"}:void 0);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",remote:o,origin:this.HostInstance}),n||(delete this.manifestLoading[e],m(ct.F0,lt.UJ,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name},`${r}`,At(this.HostInstance.options)))}const i=[!n.metaData&&"metaData",!n.exposes&&"exposes",!n.shared&&"shared"].filter(Boolean);return i.length>0&&await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:new Error(`"${e}" is not a valid federation manifest for remote "${t.name}". Missing required fields: ${i.join(", ")}.`),from:"runtime",lifecycle:"afterResolve",remote:o,origin:this.HostInstance}),i.length>0&&m(ct.u0,lt.UJ,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name,missingFields:i.join(",")},void 0,At(this.HostInstance.options)),this.manifestCache.set(e,n),n})()}async loadManifestSnapshot(e,t,o,r){return this.manifestLoading[e]||(this.manifestLoading[e]=(async()=>{const n=await this.getManifestJson(e,t,o,r),i=function(e,t={}){const{remotes:o={},overrides:r={},version:n}=t;let i;const s=()=>"publicPath"in e.metaData?"auto"!==e.metaData.publicPath&&""!==e.metaData.publicPath||!n?e.metaData.publicPath:n.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"):e.metaData.getPublicPath,a=Object.keys(r);let c={};Object.keys(o).length||(c=e.remotes?.reduce(((e,t)=>{let o;const n=t.federationContainerName;return o=a.includes(n)?r[n]:"version"in t?t.version:t.entry,e[n]={matchedVersion:o},e}),{})||{}),Object.keys(o).forEach((e=>c[e]={matchedVersion:a.includes(e)?r[e]:o[e]}));const{remoteEntry:{path:l,name:h,type:u},types:d={path:"",name:"",zip:"",api:""},buildInfo:{buildVersion:m},globalName:f,ssrRemoteEntry:p}=e.metaData,{exposes:y}=e;let g={version:n||"",buildVersion:m,globalName:f,remoteEntry:Dt(l,h),remoteEntryType:u,remoteTypes:Dt(d.path,d.name),remoteTypesZip:d.zip||"",remoteTypesAPI:d.api||"",remotesInfo:c,shared:e?.shared.map((e=>({assets:e.assets,sharedName:e.name,version:e.version,usedExports:e.referenceExports||[]}))),modules:y?.map((e=>({moduleName:e.name,modulePath:e.path,assets:e.assets})))};if("publicPath"in e.metaData?(i={...g,publicPath:s()},"string"==typeof e.metaData.ssrPublicPath&&(i.ssrPublicPath=e.metaData.ssrPublicPath)):i={...g,getPublicPath:s()},p){const e=Dt(p.path,p.name);i.ssrRemoteEntry=e,i.ssrRemoteEntryType=p.type||"commonjs-module"}return i}(n,{version:e}),{remoteSnapshot:s}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,manifestJson:n,remoteSnapshot:i,manifestUrl:e,from:"manifest"});return s})().then((e=>e))),this.manifestLoading[e]}},Jt=class{constructor(e){this.hooks=new Mt({beforeRegisterShare:new Ct("beforeRegisterShare"),afterResolve:new Pt("afterResolve"),beforeLoadShare:new Pt("beforeLoadShare"),loadShare:new Ft,afterLoadShare:new xt("afterLoadShare"),errorLoadShare:new xt("errorLoadShare"),resolveShare:new Ct("resolveShare"),initContainerShareScopeMap:new Ct("initContainerShareScopeMap")}),this.host=e,this.shareScopeMap={},this.initTokens={},this._setGlobalShareScopeMap(e.options)}emitAfterLoadShare({lifecycle:e,pkgName:t,shareInfo:o,selectedShared:r}){try{this.hooks.lifecycle.afterLoadShare.emit({pkgName:t,shareInfo:o,selectedShared:r,shared:this.host.options.shared,shareScopeMap:this.shareScopeMap,lifecycle:e,origin:this.host})}catch(e){f(e)}}emitErrorLoadShare({lifecycle:e,pkgName:t,shareInfo:o,error:r,recovered:n}){try{this.hooks.lifecycle.errorLoadShare.emit({pkgName:t,shareInfo:o,shared:this.host.options.shared,shareScopeMap:this.shareScopeMap,lifecycle:e,origin:this.host,error:r,recovered:n})}catch(e){f(e)}}registerShared(e,t){const{newShareInfos:o,allShareInfos:r}=xe(e,t);return Object.keys(o).forEach((e=>{o[e].forEach((o=>{o.scope.forEach((r=>{this.hooks.lifecycle.beforeRegisterShare.emit({origin:this.host,pkgName:e,shared:o}),this.shareScopeMap[r]?.[e]||this.setShared({pkgName:e,lib:o.lib,get:o.get,loaded:o.loaded||Boolean(o.lib),shared:o,from:t.name})}))}))})),{newShareInfos:o,allShareInfos:r}}async loadShare(e,t){const{host:o}=this,r=Ve({pkgName:e,extraOptions:t,shareInfos:o.options.shared});let n=r;try{r?.scope&&await Promise.all(r.scope.map((async e=>{await Promise.all(this.initializeSharing(e,{strategy:r.strategy}))}))),n=(await this.hooks.lifecycle.beforeLoadShare.emit({pkgName:e,shareInfo:r,shared:o.options.shared,origin:o})).shareInfo,d(n,`Cannot find shared "${e}" in host "${o.options.name}". Ensure the shared config for "${e}" is declared in the federation plugin options and the host has been initialized before loading shares.`);const i=n,{shared:s,useTreesShaking:a}=qe(this.shareScopeMap,e,n,this.hooks.lifecycle.resolveShare)||{};if(s){const t=Je(s,a);if(t.lib)return We(t,o.options.name),this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:i,selectedShared:s}),t.lib;if(t.loading&&!t.loaded){const r=await t.loading;return t.loaded=!0,t.lib||(t.lib=r),We(t,o.options.name),this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:i,selectedShared:s}),r}{const r=async()=>{const e=await t.get();return We(t,o.options.name),t.loaded=!0,t.lib=e,e},n=r();this.setShared({pkgName:e,loaded:!1,shared:s,from:o.options.name,lib:null,loading:n,treeShaking:a?t:void 0});const c=await n;return this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:i,selectedShared:s}),c}}{if(t?.customShareInfo)return this.emitErrorLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:i,recovered:!0}),!1;const r=Le(i.treeShaking),n=Je(i,r),s=async()=>{const t=await n.get();n.lib=t,n.loaded=!0,We(n,o.options.name);const{shared:r,useTreesShaking:s}=qe(this.shareScopeMap,e,i,this.hooks.lifecycle.resolveShare)||{};if(r){const e=Je(r,s);e.lib=t,e.loaded=!0,r.from=i.from}return t},a=s();this.setShared({pkgName:e,loaded:!1,shared:i,from:o.options.name,lib:null,loading:a,treeShaking:r?n:void 0});const c=await a;return this.emitAfterLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:i,selectedShared:i}),c}}catch(t){throw this.emitErrorLoadShare({lifecycle:"loadShare",pkgName:e,shareInfo:n,error:t}),t}}initializeSharing(e=q,t){const{host:o}=this,r=t?.from,n=t?.strategy;let i=t?.initScope;const s=[];if("build"!==r){const{initTokens:t}=this;i||(i=[]);let o=t[e];if(o||(o=t[e]={from:this.host.name}),i.indexOf(o)>=0)return s;i.push(o)}const a=this.shareScopeMap,c=o.options.name;a[e]||(a[e]={});const l=a[e];return Object.keys(o.options.shared).forEach((t=>{o.options.shared[t].forEach((o=>{o.scope.includes(e)&&((e,t)=>{const{version:o,eager:r}=t;l[e]=l[e]||{};const n=l[e],i=n[o]&&Je(n[o]),s=Boolean(i&&("eager"in i&&i.eager||"shareConfig"in i&&i.shareConfig?.eager));(!i||"loaded-first"!==i.strategy&&!i.loaded&&(Boolean(!r)!==!s?r:c>n[o].from))&&(n[o]=t)})(t,o)}))})),"version-first"!==o.options.shareStrategy&&"version-first"!==n||o.options.remotes.forEach((t=>{t.shareScope===e&&s.push((async e=>{const{module:t}=await o.remoteHandler.getRemoteModuleAndOptions({id:e});let r;try{r=await t.getEntry()}catch(n){if(r=await o.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:n,from:"runtime",lifecycle:"beforeLoadShare",remote:t.remoteInfo,origin:o}),!r)return}finally{r?.init&&!t.initing&&(t.remoteEntryExports=r,await t.init(void 0,void 0,i))}})(t.name))})),s}loadShareSync(e,t){const{host:o}=this,r=Ve({pkgName:e,extraOptions:t,shareInfos:o.options.shared});try{r?.scope&&r.scope.forEach((e=>{this.initializeSharing(e,{strategy:r.strategy})}));const{shared:n}=qe(this.shareScopeMap,e,r,this.hooks.lifecycle.resolveShare)||{};if(n){if("function"==typeof n.lib)return We(n,o.options.name),n.loaded||(n.loaded=!0,n.from===o.options.name&&(r.loaded=!0)),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:r,selectedShared:n}),n.lib;if("function"==typeof n.get){const t=n.get();if(!(t instanceof Promise))return We(n,o.options.name),this.setShared({pkgName:e,loaded:!0,from:o.options.name,lib:t,shared:n}),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:r,selectedShared:n}),t}}if(r.lib)return r.loaded||(r.loaded=!0),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:r,selectedShared:r}),r.lib;if(r.get){const n=r.get();return n instanceof Promise&&m("build"===t?.from?ct.Fd:ct.yB,lt.UJ,{hostName:o.options.name,sharedPkgName:e},void 0,At(o.options)),r.lib=n,this.setShared({pkgName:e,loaded:!0,from:o.options.name,lib:r.lib,shared:r}),this.emitAfterLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:r,selectedShared:r}),r.lib}m(ct.yB,lt.UJ,{hostName:o.options.name,sharedPkgName:e},void 0,At(o.options))}catch(t){throw this.emitErrorLoadShare({lifecycle:"loadShareSync",pkgName:e,shareInfo:r,error:t}),t}}initShareScopeMap(e,t,o={}){const{host:r}=this;this.shareScopeMap[e]=t,this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:t,options:r.options,origin:r,scopeName:e,hostShareScopeMap:o.hostShareScopeMap})}setShared({pkgName:e,shared:t,from:o,lib:r,loading:n,loaded:i,get:s,treeShaking:a}){const{version:c,scope:l="default",...h}=t;(Array.isArray(l)?l:[l]).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],...h,lib:r});const l=this.shareScopeMap[t][e][c];(e=>{const t=(e,t,o)=>{o&&!e[t]&&(e[t]=o)},o=a?e.treeShaking:e;t(o,"loaded",i),t(o,"loading",n),t(o,"get",s)})(l),o&&l.from!==o&&(l.from=o)}))}_setGlobalShareScopeMap(e){const t=Be(),o=e.id||e.name;o&&!t[o]&&(t[o]=this.shareScopeMap)}},Kt=class{constructor(e){this.hooks=new Mt({beforeRegisterRemote:new Ct("beforeRegisterRemote"),registerRemote:new Ct("registerRemote"),beforeRequest:new Pt("beforeRequest"),afterMatchRemote:new Ft("afterMatchRemote"),onLoad:new Ft("onLoad"),afterLoadRemote:new Ft("afterLoadRemote"),handlePreloadModule:new xt("handlePreloadModule"),errorLoadRemote:new Ft("errorLoadRemote"),beforePreloadRemote:new Ft("beforePreloadRemote"),generatePreloadAssets:new Ft("generatePreloadAssets"),afterPreloadRemote:new Ft("afterPreloadRemote"),loadEntry:new Ft}),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){const{remote:o,expose:r}=t,{name:n,alias:i}=o;if(this.idToRemoteMap[e]={name:o.name,expose:r},i&&e.startsWith(n)){const t=e.replace(n,i);this.idToRemoteMap[t]={name:o.name,expose:r}}else if(i&&e.startsWith(i)){const t=e.replace(i,n);this.idToRemoteMap[t]={name:o.name,expose:r}}}async loadRemote(e,t){const{host:o}=this,r=St(o.options.remotes,e);let n,i=e,s=r?.expose,a=r?gt(r.remote):void 0;try{const{loadFactory:r=!0}=t||{loadFactory:!0},{module:c,moduleOptions:l,remoteMatchInfo:h}=await this.getRemoteModuleAndOptions({id:e}),{pkgNameOrAlias:u,remote:d,expose:m,id:f,remoteSnapshot:p}=h;i=f,s=m,a=gt(d);const y=await c.get(f,m,t,p),g=await this.hooks.lifecycle.onLoad.emit({id:f,pkgNameOrAlias:u,expose:m,exposeModule:r?y:void 0,exposeModuleFactory:r?void 0:y,remote:d,options:l,moduleInstance:c,origin:o});return this.setIdToRemoteMap(e,h),n={id:i,expose:s,remote:a,options:t,origin:o},"function"==typeof g?g:y}catch(r){const{from:c="runtime"}=t||{from:"runtime"};let l;try{l=await this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:r,from:c,lifecycle:"onLoad",expose:s,remote:a,origin:o})}catch(e){throw n={id:i,expose:s,remote:a,options:t,error:e,origin:o},e}if(!l)throw n={id:i,expose:s,remote:a,options:t,error:r,origin:o},r;return n={id:i,expose:s,remote:a,options:t,error:r,origin:o,recovered:!0},l}finally{n&&await this.hooks.lifecycle.afterLoadRemote.emit(n)}}async preloadRemote(e){const{host:t}=this,o=[];await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:t.options,origin:t});const r=(n=t.options.remotes,e.map((e=>{const t=function(e,t){for(const o of e){if(t===o.name)return o;if(o.alias&&t===o.alias)return o}}(n,e.nameOrAlias);return d(t,`Unable to preload ${e.nameOrAlias} as it is not included in ${!t&&(0,Ke.ML)({remoteInfo:t,remotes:n})}`),{remote:t,preloadConfig:bt(e)}})));var n;let i;await Promise.all(r.flatMap((e=>{const{preloadConfig:t,remote:o}=e,r=t.exposes||[];return r.length?r.map((r=>({ops:{...e,preloadConfig:{...t,exposes:[r]}},id:Et(o.name,r)}))):[{ops:e,id:`${o.name}/*`}]})).map((async e=>{const{ops:r,id:n}=e,{remote:i,preloadConfig:s}=r,a=gt(i);try{const{globalSnapshot:e,remoteSnapshot:c}=await t.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:i,id:n,initiator:"preloadRemote"}),l=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:t,preloadOptions:r,remote:i,remoteInfo:a,globalSnapshot:e,remoteSnapshot:c});if(!l)return;const h=await Rt(a,t,l,!0,{initiator:"preloadRemote",id:n});o.push({remote:i,remoteInfo:a,preloadConfig:s,id:n,results:h})}catch(e){o.push({remote:i,remoteInfo:a,preloadConfig:s,id:n,results:[{url:a.entry,status:"error",resourceType:/\.json(?:$|[?#])/i.test(a.entry)?"manifest":"remoteEntry",initiator:"preloadRemote",id:n,error:e}]})}})));const s=o.flatMap((e=>e.results.filter((e=>"error"===e.status||"timeout"===e.status))));if(s.length>0&&(i=new Error(`preloadRemote failed to load ${s.length} resource(s).`),Object.assign(i,{results:o,failedResults:s})),await this.hooks.lifecycle.afterPreloadRemote.emit({preloadOps:e,options:t.options,origin:t,results:o,error:i}),i)throw i}registerRemotes(e,t){const{host:o}=this;e.forEach((e=>{this.registerRemote(e,o.options.remotes,{force:t?.force})}))}initRawContainer(e,t,o){const{host:r}=this,n=new Ot({host:r,remoteInfo:gt({name:e,entry:t})});return n.remoteEntryExports=o,r.moduleCache.set(e,n),n}async getRemoteModuleAndOptions(e){const{host:t}=this,{id:o}=e;let r;try{r=await this.hooks.lifecycle.beforeRequest.emit({id:o,options:t.options,origin:t})}catch(e){if(r=await this.hooks.lifecycle.errorLoadRemote.emit({id:o,options:t.options,origin:t,from:"runtime",error:e,lifecycle:"beforeRequest"}),!r)throw e}const{id:n}=r,i=St(t.options.remotes,n);if(!i)try{m(ct.MR,lt.UJ,{hostName:t.options.name,requestId:n},void 0,At(t.options))}catch(e){throw await this.hooks.lifecycle.afterMatchRemote.emit({id:n,options:t.options,error:e,origin:t}),e}const{remote:s}=i,a=gt(s);await this.hooks.lifecycle.afterMatchRemote.emit({id:n,...i,options:t.options,remoteInfo:a,origin:t});const c=await t.sharedHandler.hooks.lifecycle.afterResolve.emit({id:n,...i,options:t.options,origin:t,remoteInfo:a}),{remote:l,expose:h}=c;d(l&&h,`The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${n}.`);let u=t.moduleCache.get(l.name);const f={host:t,remoteInfo:a};return u||(u=new Ot(f),t.moduleCache.set(l.name,u)),{module:u,moduleOptions:f,remoteMatchInfo:c}}registerRemote(e,t,o){const{host:n}=this,i=()=>{if(e.alias){const o=t.find((t=>e.alias&&(t.name.startsWith(e.alias)||t.alias?.startsWith(e.alias))));d(!o,`The alias ${e.alias} of remote ${e.name} is not allowed to be the prefix of ${o&&o.name} name or alias`)}"entry"in e&&r.Hq&&"undefined"!=typeof window&&!e.entry.startsWith("http")&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||(e.shareScope=q),e.type||(e.type=B)};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:n});const s=t.find((t=>t.name===e.name));if(s){const r=[`The remote "${e.name}" is already registered.`,"Please note that overriding it may cause unexpected errors."];o?.force&&(this.removeRemote(s),i(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:n}),(0,Ke.R8)(r.join(" ")))}else i(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:n})}removeRemote(e){try{const{host:t}=this,{name:o}=e,r=t.options.remotes.findIndex((e=>e.name===o));-1!==r&&t.options.remotes.splice(r,1);const n=M(I.__FEDERATION__.moduleInfo,p(e)).key;delete I.__FEDERATION__.moduleInfo[n],"entry"in e&&(t.snapshotHandler.manifestCache.delete(e.entry),delete v.__FEDERATION__.__MANIFEST_LOADING__[e.entry]);const{hostGlobalSnapshot:i}=Vt(e,t);if(i){const t=i&&"remotesInfo"in i&&i.remotesInfo&&M(i.remotesInfo,e.name).key;t&&delete i.remotesInfo[t]}const s=t.moduleCache.get(e.name);if(s){const o=s.remoteInfo,r=o.entryGlobalName;I[r]&&(Object.getOwnPropertyDescriptor(I,r)?.configurable?delete I[r]:I[r]=void 0);const n=pt(s.remoteInfo);N[n]&&delete N[n];let i=o.buildVersion?(0,Ke.lG)(o.name,o.buildVersion):o.name;const a=I.__FEDERATION__.__INSTANCES__.findIndex((e=>o.buildVersion?e.options.id===i:e.name===i));if(-1!==a){const e=I.__FEDERATION__.__INSTANCES__[a];i=e.options.id||i;const t=Be();let r=!0;const n=[];Object.keys(t).forEach((e=>{const i=t[e];i&&Object.keys(i).forEach((t=>{const s=i[t];s&&Object.keys(s).forEach((i=>{const a=s[i];a&&Object.keys(a).forEach((s=>{const c=a[s];c&&"object"==typeof c&&c.from===o.name&&(c.loaded||c.loading?(c.useIn=c.useIn.filter((e=>e!==o.name)),c.useIn.length?r=!1:n.push([e,t,i,s])):n.push([e,t,i,s]))}))}))}))})),r&&(e.shareScopeMap={},delete t[i]),n.forEach((([e,o,r,n])=>{delete t[e]?.[o]?.[r]?.[n]})),I.__FEDERATION__.__INSTANCES__.splice(a,1)}t.moduleCache.delete(e.name)}}catch(e){u.error(`removeRemote failed: ${e instanceof Error?e.message:String(e)}`)}}},zt=class{constructor(e){this.hooks=new Mt({beforeInit:new Ct("beforeInit"),init:new xt,beforeInitContainer:new Pt("beforeInitContainer"),initContainer:new Pt("initContainer")}),this.version="2.8.2",this.moduleCache=new Map,this.loaderHook=new Mt({getModuleInfo:new xt,createScript:new xt,createLink:new xt,fetch:new Ft,loadEntryError:new Ft,afterLoadEntry:new Ft("afterLoadEntry"),beforeInitRemote:new Ft("beforeInitRemote"),afterInitRemote:new Ft("afterInitRemote"),beforeGetExpose:new Ft("beforeGetExpose"),afterGetExpose:new Ft("afterGetExpose"),beforeExecuteFactory:new Ft("beforeExecuteFactory"),afterExecuteFactory:new Ft("afterExecuteFactory"),getModuleFactory:new Ft}),this.bridgeHook=new Mt({beforeBridgeRender:new xt,afterBridgeRender:new xt,beforeBridgeDestroy:new xt,afterBridgeDestroy:new xt});const t=[{name:"snapshot-plugin",async afterResolve(e){const{remote:t,pkgNameOrAlias:o,expose:r,origin:n,remoteInfo:i,id:s}=e;if(!y(t)||!g(t)){const{remoteSnapshot:a,globalSnapshot:c}=await n.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:t,id:Et(t.name,r)});Ht(i,a);const l={remote:t,preloadConfig:{nameOrAlias:o,exposes:[r],resourceCategory:"sync",share:!1,depsRemote:!1}},h=await n.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:n,preloadOptions:l,remoteInfo:i,remote:t,remoteSnapshot:a,globalSnapshot:c});return h&&Rt(i,n,h,!1,{initiator:"loadRemote",id:s}).catch((()=>{})),{...e,remoteSnapshot:a}}return e}},{name:"generate-preload-assets-plugin",async generatePreloadAssets(e){const{origin:t,preloadOptions:o,remoteInfo:n,remote:i,globalSnapshot:s,remoteSnapshot:a}=e;return r.Hq?y(i)&&g(i)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:i.name,url:i.entry,moduleInfo:{name:n.name,entry:i.entry,type:n.type||"global",entryGlobalName:"",shareScope:""}}]}:(Ht(n,a),Bt(t,o,n,s,a)):{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[]}}}],o={id:"Appshell:1.0.0-alpha.15",name:e.name,plugins:t,remotes:[],shared:{},inBrowser:r.Hq};this.name=e.name,this.options=o,this.snapshotHandler=new Wt(this),this.sharedHandler=new Jt(this),this.remoteHandler=new Kt(this),this.shareScopeMap=this.sharedHandler.shareScopeMap,this.registerPlugins([...o.plugins,...e.plugins||[]]),this.options=this.formatOptions(o,e)}initOptions(e){e.name&&e.name!==this.options.name&&m(l(ct.n3,lt.UJ)),this.registerPlugins(e.plugins);const 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=q,t){return this.sharedHandler.initializeSharing(e,t)}initRawContainer(e,t,o){return this.remoteHandler.initRawContainer(e,t,o)}async loadRemote(e,t){return this.remoteHandler.loadRemote(e,t)}async preloadRemote(e){return this.remoteHandler.preloadRemote(e)}initShareScopeMap(e,t,o={}){this.sharedHandler.initShareScopeMap(e,t,o)}formatOptions(e,t){const o=xe(e,t).allShareInfos,{userOptions:r,options:n}=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions:t,options:e,shareInfo:o}),i=this.remoteHandler.formatAndRegisterRemote(n,r),{allShareInfos:s}=this.sharedHandler.registerShared(n,r),a=[...n.plugins];r.plugins&&r.plugins.forEach((e=>{a.includes(e)||a.push(e)}));const c={...e,...t,plugins:a,remotes:i,shared:s,id:r.id||e.id};return this.hooks.lifecycle.init.emit({origin:this,options:c}),c}registerPlugins(e){const t=function(e,t){const o=j(),r=[t.hooks,t.remoteHandler.hooks,t.sharedHandler.hooks,t.snapshotHandler.hooks,t.loaderHook,t.bridgeHook];return o.length>0&&o.forEach((t=>{e?.find((e=>e.name!==t.name))&&e.push(t)})),e&&e.length>0&&e.forEach((e=>{r.forEach((o=>{o.applyPlugin(e,t)}))})),e}(e,this);this.options.plugins=this.options.plugins.reduce(((e,t)=>t?(e&&!e.find((e=>e.name===t.name))&&e.push(t),e):e),t||[])}registerRemotes(e,t){return this.remoteHandler.registerRemotes(e,t)}registerShared(e){this.sharedHandler.registerShared(this.options,{...this.options,shared:e})}};Object.defineProperty;const Yt=Nt,Qt=Ot},650(e,t,o){o.r(t),o.d(t,{Module:()=>n.nV,ModuleFederation:()=>n.gP,createInstance:()=>a,getInstance:()=>y,getRemoteEntry:()=>n.fE,getRemoteInfo:()=>n.pW,init:()=>l,loadRemote:()=>h,loadScript:()=>n.k0,loadScriptNode:()=>n.oe,loadShare:()=>u,loadShareSync:()=>d,preloadRemote:()=>m,registerGlobalPlugins:()=>n.RY,registerPlugins:()=>p,registerRemotes:()=>f,registerShared:()=>g});var r=o(370),n=o(655),i=o(904),s=o(10);function a(e){const t=new((0,n.Bf)()||n.gP)({id:`${e.name}@${e.version||Date.now()}`,...e});return(0,n.C3)(t),t}let c=null;function l(e){const t=(0,r.u)(e.name,e.version),o={...e,id:e.id||""};return t?(t.initOptions(o),c||(c=t),t):(c=a(o),c)}function h(...e){return(0,n.vA)(c,i.F9,s.UJ),c.loadRemote.apply(c,e)}function u(...e){return(0,n.vA)(c,i.F9,s.UJ),c.loadShare.apply(c,e)}function d(...e){return(0,n.vA)(c,i.F9,s.UJ),c.loadShareSync.apply(c,e)}function m(...e){return(0,n.vA)(c,i.F9,s.UJ),c.preloadRemote.apply(c,e)}function f(...e){return(0,n.vA)(c,i.F9,s.UJ),c.registerRemotes.apply(c,e)}function p(...e){return(0,n.vA)(c,i.F9,s.UJ),c.registerPlugins.apply(c,e)}function y(e){return e?n.hS.__FEDERATION__.__INSTANCES__.find(e)||null:c}function g(...e){return(0,n.vA)(c,i.F9,s.UJ),c.registerShared.apply(c,e)}(0,n.rc)(n.gP)},370(e,t,o){o.d(t,{u:()=>n});var r=o(655);function n(e,t){return r.hS.__FEDERATION__.__INSTANCES__.find((o=>!("Appshell:1.0.0-alpha.15"!==o.options.id&&(o.options.name!==e||o.options.version||t)&&(o.options.name!==e||!t||o.options.version!==t))))}},151(e,t,o){o.d(t,{CQ:()=>r,Qm:()=>i,e0:()=>a,gF:()=>h,gR:()=>s,sC:()=>n,wv:()=>c,yq:()=>l});const r=".json",n="FEDERATION_DEBUG",i={AT:"@",HYPHEN:"-",SLASH:"/"},s={[i.AT]:"scope_",[i.HYPHEN]:"_",[i.SLASH]:"__"},a={[s[i.AT]]:i.AT,[s[i.HYPHEN]]:i.HYPHEN,[s[i.SLASH]]:i.SLASH},c=":",l="ENCODE_NAME_PREFIX";let h=function(e){return e[e.UNKNOWN=1]="UNKNOWN",e[e.CALCULATED=2]="CALCULATED",e[e.NO_USE=0]="NO_USE",e}({})},284(e,t,o){},848(e,t,o){o.d(t,{Bb:()=>a,Hq:()=>n,MC:()=>s,OL:()=>i});var r=o(151);const n="undefined"!=typeof ENV_TARGET?"web"===ENV_TARGET:"undefined"!=typeof window&&void 0!==window.document;function i(){return n}function s(){return"undefined"!=typeof navigator&&"ReactNative"===navigator?.product}function a(){return"undefined"!=typeof process&&process.env&&process.env.FEDERATION_DEBUG?Boolean(process.env.FEDERATION_DEBUG):!("undefined"==typeof FEDERATION_DEBUG||!Boolean(FEDERATION_DEBUG))||function(){try{if(i()&&window.localStorage)return Boolean(localStorage.getItem(r.sC))}catch(e){return!1}return!1}()}},55(){},112(e,t,o){},469(){Object.defineProperty},378(e,t,o){o.d(t,{Al:()=>a,ML:()=>l,R8:()=>c,e4:()=>s,lG:()=>i});var r=o(151),n=o(848);const i=function(...e){return e.length?e.reduce(((e,t)=>t?e?`${e}${r.wv}${t}`:t:e),""):""},s=function(e,t,o){try{let n=e;if(t){if(!n.startsWith(t))return n;n=n.replace(new RegExp(t,"g"),"")}return n=n.replace(new RegExp(`${r.gR[r.Qm.AT]}`,"g"),r.e0[r.gR[r.Qm.AT]]).replace(new RegExp(`${r.gR[r.Qm.SLASH]}`,"g"),r.e0[r.gR[r.Qm.SLASH]]).replace(new RegExp(`${r.gR[r.Qm.HYPHEN]}`,"g"),r.e0[r.gR[r.Qm.HYPHEN]]),o&&(n=n.replace(".js","")),n}catch(e){throw e}};function a(e,t){if("getPublicPath"in e){let o;return o=e.getPublicPath.startsWith("function")?new Function("return "+e.getPublicPath)()():new Function(e.getPublicPath)(),`${o}${t}`}return"publicPath"in e?(0,n.OL)()||(0,n.MC)()||!("ssrPublicPath"in e)||"string"!=typeof e.ssrPublicPath?`${e.publicPath}${t}`:`${e.ssrPublicPath}${t}`:(console.warn("Cannot get resource URL. If in debug mode, please ignore.",e,t),"")}const c=e=>{console.warn(`[ Federation Runtime ]: ${e}`)};function l(e){try{return JSON.stringify(e,null,2)}catch(e){return""}}},365(e,t,o){}},i={};function s(e){var t=i[e];if(void 0!==t)return t.exports;var o=i[e]={id:e,exports:{}},r={id:e,module:o,factory:n[e],require:s};return s.i.forEach((function(e){e(r)})),o=r.module,r.factory.call(o.exports,o,o.exports,r.require),o.exports}s.m=n,s.c=i,s.i=[],s.x=e=>{},s.federation||(s.federation={initOptions:{name:"Appshell",remotes:[],shareStrategy:"version-first"},chunkMatcher:function(e){return 488!=e},rootOutputDir:"",bundlerRuntimeOptions:{remotes:{remoteInfos:{},webpackRequire:s,idToRemoteMap:{},chunkMapping:{},idToExternalAndNameMapping:{}}}},s.consumesLoadingData={},s.remotesLoadingData={}),s.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return s.d(t,{a:t}),t},s.d=(e,t)=>{for(var o in t)s.o(t,o)&&!s.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},s.f={},s.e=e=>Promise.all(Object.keys(s.f).reduce(((t,o)=>(s.f[o](e,t),t)),[])),s.u=e=>e+".js",s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="appshell-react-shell:",s.l=(o,r,n,i)=>{if(e[o])e[o].push(r);else{var a,c;if(void 0!==n)for(var l=document.getElementsByTagName("script"),h=0;h<l.length;h++){var u=l[h];if(u.getAttribute("src")==o||u.getAttribute("data-webpack")==t+n){a=u;break}}a||(c=!0,(a=document.createElement("script")).charset="utf-8",s.nc&&a.setAttribute("nonce",s.nc),a.setAttribute("data-webpack",t+n),a.src=o),e[o]=[r];var d=(t,r)=>{a.onerror=a.onload=null,clearTimeout(m);var n=e[o];if(delete e[o],a.parentNode&&a.parentNode.removeChild(a),n&&n.forEach((e=>e(r))),t)return t(r)},m=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),c&&document.head.appendChild(a)}},s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{s.S={};var e={},t={};s.I=(o,r)=>{r||(r=[]);var n=t[o];if(n||(n=t[o]={}),!(r.indexOf(n)>=0)){if(r.push(n),e[o])return e[o];s.o(s.S,o)||(s.S[o]={});var i=s.S[o],a="appshell-react-shell",c=(e,t,o,r)=>{var n=i[e]=i[e]||{},s=n[t];(!s||!s.loaded&&(!r!=!s.eager?r:a>s.from))&&(n[t]={get:o,from:a,eager:!!r})},l=[];return"default"===o&&(c("@appshell/runtime","1.0.0-alpha.15",(()=>s.e(877).then((()=>()=>s(877))))),c("react-dom","18.2.0",(()=>Promise.all([s.e(144),s.e(488)]).then((()=>()=>s(144))))),c("react","18.2.0",(()=>s.e(41).then((()=>()=>s(41)))))),e[o]=l.length?Promise.all(l).then((()=>e[o]=1)):1}}})(),(()=>{s.federation.initOptions.shared={"@appshell/runtime":[{version:"1.0.0-alpha.15",get:()=>s.e(877).then((()=>()=>s(877))),scope:["default"],shareConfig:{eager:!1,singleton:!0,layer:null}}],"react-dom":[{version:"18.2.0",get:()=>Promise.all([s.e(144),s.e(488)]).then((()=>()=>s(144))),scope:["default"],shareConfig:{eager:!1,requiredVersion:"18.2.0",singleton:!0,layer:null}}],react:[{version:"18.2.0",get:()=>s.e(41).then((()=>()=>s(41))),scope:["default"],shareConfig:{eager:!1,requiredVersion:"18.2.0",singleton:!0,layer:null}}]},s.S={};var e={},t={};s.I=(o,r)=>s.federation.bundlerRuntime.I({shareScopeName:o,webpackRequire:s,initPromises:e,initTokens:t,initScope:r})})(),(()=>{var e;globalThis.importScripts&&(e=globalThis.location+"");var t=globalThis.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var o=t.getElementsByTagName("script");if(o.length)for(var r=o.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=o[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e})(),(()=>{var e={};s.consumesLoadingData.moduleIdToConsumeDataMapping={107:{fallback:()=>s.e(41).then((()=>()=>s(41))),shareScope:["default"],singleton:!0,requiredVersion:"18.2.0",strictVersion:!1,eager:!1,layer:void 0,shareKey:"react"},373:{fallback:()=>s.e(877).then((()=>()=>s(877))),shareScope:["default"],singleton:!0,requiredVersion:"^1.0.0-alpha.15",strictVersion:!1,eager:!1,layer:void 0,shareKey:"@appshell/runtime"},536:{fallback:()=>s.e(144).then((()=>()=>s(144))),shareScope:["default"],singleton:!0,requiredVersion:"18.2.0",strictVersion:!1,eager:!1,layer:void 0,shareKey:"react-dom"}};var t={};s.consumesLoadingData.chunkMapping={428:[373,536],488:[107]},s.f.consumes=(o,r)=>{s.federation.bundlerRuntime.consumes({chunkMapping:s.consumesLoadingData.chunkMapping,installedModules:e,chunkId:o,moduleToHandlerMapping:t,promises:r,webpackRequire:s})}})(),o=s.x,r=!1,s.x=()=>{if(r||(r=!0,s(996)),"function"==typeof o)return o();console.warn("[Module Federation] prevStartup is not a function, skipping startup execution")},(()=>{var e={792:0};s.f.j=(t,o)=>{var r=s.o(e,t)?e[t]:void 0;if(0!==r)if(r)o.push(r[2]);else if(488!=t){var n=new Promise(((o,n)=>r=e[t]=[o,n]));o.push(r[2]=n);var i=s.p+s.u(t),a=new Error;s.l(i,(o=>{if(s.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var n=o&&("load"===o.type?"missing":o.type),i=o&&o.target&&o.target.src;a.message="Loading chunk "+t+" failed.\n("+n+": "+i+")",a.name="ChunkLoadError",a.type=n,a.request=i,r[1](a)}}),"chunk-"+t,t)}else e[t]=0};var t=(t,o)=>{var r,n,[i,a,c]=o,l=0;if(i.some((t=>0!==e[t]))){for(r in a)s.o(a,r)&&(s.m[r]=a[r]);c&&c(s)}for(t&&t(o);l<i.length;l++)n=i[l],s.o(e,n)&&e[n]&&e[n][0](),e[n]=0},o=globalThis.webpackChunkappshell_react_shell=globalThis.webpackChunkappshell_react_shell||[];o.forEach(t.bind(null,0)),o.push=t.bind(null,o.push.bind(o))})(),s.nc=void 0,s.x(),s(418)})();
@@ -5,7 +5,7 @@
5
5
  "name": "Appshell",
6
6
  "type": "app",
7
7
  "buildInfo": {
8
- "buildVersion": "1.0.0-alpha.14",
8
+ "buildVersion": "1.0.0-alpha.15",
9
9
  "buildName": "@appshell/react-shell"
10
10
  },
11
11
  "remoteEntry": {
@@ -24,6 +24,26 @@
24
24
  "publicPath": "auto"
25
25
  },
26
26
  "shared": [
27
+ {
28
+ "id": "Appshell:@appshell/runtime",
29
+ "name": "@appshell/runtime",
30
+ "version": "1.0.0-alpha.15",
31
+ "singleton": true,
32
+ "requiredVersion": "^1.0.0-alpha.15",
33
+ "assets": {
34
+ "js": {
35
+ "async": [],
36
+ "sync": [
37
+ "877.js"
38
+ ]
39
+ },
40
+ "css": {
41
+ "async": [],
42
+ "sync": []
43
+ }
44
+ },
45
+ "fallback": ""
46
+ },
27
47
  {
28
48
  "id": "Appshell:react-dom",
29
49
  "name": "react-dom",