iobroker.smartcontrol 2.1.0 → 2.2.0
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.
- package/README.md +16 -6
- package/admin/custom/assets/Components-CDPYnOs-.js +77 -0
- package/admin/custom/assets/Components-DpQjIfuo.js +1 -0
- package/admin/custom/assets/_virtual_mf-localSharedImportMap___mfe_internal__SmartcontrolSet__mf_owner__1-C9SdP7_s.js +1 -0
- package/admin/custom/assets/_virtual_mf___mfe_internal__SmartcontrolSet__mf_owner__108197177487852__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-Ca-6Y14s.js +1525 -0
- package/admin/custom/assets/_virtual_mf___mfe_internal__SmartcontrolSet__mf_owner__108197177487852__loadShare__shared-4MdeZwge.js +2 -0
- package/admin/custom/assets/_virtual_mf___mfe_internal__SmartcontrolSet__mf_owner__108197177487852__prebuild___mf_0_iobroker_mf_1_json_mf_2_config__prebuild__-QT6he7QZ.js +122 -0
- package/admin/custom/assets/_virtual_mf___mfe_internal__SmartcontrolSet__mf_owner__108197177487852__prebuild__react_mf_1_jsx_mf_2_runtime__prebuild__-BWTOCVCn.js +1 -0
- package/admin/custom/assets/dist-Cnxr-ruU.js +1 -0
- package/admin/custom/assets/helpers-CNHzo155.js +1 -0
- package/admin/custom/assets/hostInit-BVoHSU7s.js +1 -0
- package/admin/custom/assets/iconLibraryData-B5fiyl1C.js +1 -0
- package/admin/custom/assets/index-CwC_q7vn.js +1 -0
- package/admin/custom/assets/lib-CgOpGT17.js +3 -0
- package/admin/custom/assets/mf-entry-bootstrap-0-6167c687.js +54 -0
- package/admin/custom/assets/pendingShares-CEz9fejL.js +2 -0
- package/admin/custom/assets/prod-XWAlCKxB.js +492 -0
- package/admin/custom/assets/rolldown-runtime-9C0vUP4u.js +1 -0
- package/admin/custom/assets/utils-DmVoYT7i.js +4 -0
- package/admin/custom/assets/vite-preload-helper-nldAWQd6.js +1 -0
- package/admin/custom/customComponents.js +12 -0
- package/admin/custom/i18n/de.json +59 -0
- package/admin/custom/i18n/en.json +59 -0
- package/admin/custom/mf-manifest.json +1 -0
- package/admin/doc-md/readme.txt +2 -6
- package/admin/doc-md/start_de.md +34 -89
- package/admin/doc-md/start_en.md +33 -90
- package/admin/doc-md/table-conditions_de.md +7 -9
- package/admin/doc-md/table-conditions_en.md +7 -9
- package/admin/doc-md/table-execution_de.md +11 -10
- package/admin/doc-md/table-execution_en.md +12 -11
- package/admin/doc-md/table-options_de.md +58 -0
- package/admin/doc-md/table-options_en.md +58 -0
- package/admin/doc-md/table-target-devices_de.md +20 -16
- package/admin/doc-md/table-target-devices_en.md +18 -16
- package/admin/doc-md/table-target-enums_de.md +13 -13
- package/admin/doc-md/table-target-enums_en.md +12 -14
- package/admin/doc-md/table-target-url_de.md +14 -25
- package/admin/doc-md/table-target-url_en.md +14 -23
- package/admin/doc-md/table-trigger-devices_de.md +10 -11
- package/admin/doc-md/table-trigger-devices_en.md +10 -10
- package/admin/doc-md/table-trigger-motion_de.md +41 -24
- package/admin/doc-md/table-trigger-motion_en.md +35 -19
- package/admin/doc-md/table-trigger-times_de.md +11 -12
- package/admin/doc-md/table-trigger-times_en.md +11 -11
- package/admin/doc-md/table-zones_de.md +19 -14
- package/admin/doc-md/table-zones_en.md +19 -14
- package/admin/doc-md/table-zones_select-targets_de.md +7 -15
- package/admin/doc-md/table-zones_select-targets_en.md +7 -15
- package/admin/i18n/{de/translations.json → de.json} +2 -1
- package/admin/i18n/{en/translations.json → en.json} +2 -1
- package/admin/i18n/{es/translations.json → es.json} +2 -1
- package/admin/i18n/{fr/translations.json → fr.json} +2 -1
- package/admin/i18n/{it/translations.json → it.json} +2 -1
- package/admin/i18n/{nl/translations.json → nl.json} +2 -1
- package/admin/i18n/{pl/translations.json → pl.json} +2 -1
- package/admin/i18n/{pt/translations.json → pt.json} +2 -1
- package/admin/i18n/{ru/translations.json → ru.json} +2 -1
- package/admin/i18n/uk.json +110 -0
- package/admin/i18n/{zh-cn/translations.json → zh-cn.json} +2 -1
- package/admin/img/option-screenshots/tab-conditions.png +0 -0
- package/admin/img/option-screenshots/tab-further-options.png +0 -0
- package/admin/img/option-screenshots/tab-start.png +0 -0
- package/admin/img/option-screenshots/tab-target-devices.png +0 -0
- package/admin/img/option-screenshots/tab-triggers-motion.png +0 -0
- package/admin/img/option-screenshots/tab-triggers-other.png +0 -0
- package/admin/img/option-screenshots/tab-triggers-time.png +0 -0
- package/admin/img/option-screenshots/tab-zones-execution.png +0 -0
- package/admin/img/option-screenshots/tab-zones.png +0 -0
- package/admin/jsonConfig.json5 +524 -0
- package/io-package.json +17 -14
- package/lib/helper.js +40 -6
- package/lib/trigger-class.js +185 -80
- package/lib/trigger-match.js +76 -0
- package/main.js +132 -62
- package/package.json +11 -21
- package/admin/admin.d.ts +0 -4
- package/admin/css/LICENSE-github-markdown-css.txt +0 -24
- package/admin/css/github-markdown-dark.min.css +0 -8
- package/admin/css/github-markdown.min.css +0 -8
- package/admin/doc-md/img/start_dropdown-ani.gif +0 -0
- package/admin/doc-md/img/start_open-dialog.png +0 -0
- package/admin/doc-md/img/start_show-explanation.gif +0 -0
- package/admin/doc-md/img/table-zones_select-target-devices-overwrite.gif +0 -0
- package/admin/fancytree/skin-lion/icons-rtl.gif +0 -0
- package/admin/fancytree/skin-lion/icons.gif +0 -0
- package/admin/fancytree/skin-lion/loading.gif +0 -0
- package/admin/fancytree/skin-lion/ui.fancytree.min.css +0 -6
- package/admin/fancytree/skin-lion/vline-rtl.gif +0 -0
- package/admin/fancytree/skin-lion/vline.gif +0 -0
- package/admin/img/info-big.png +0 -0
- package/admin/img/info-big.png_README.txt +0 -6
- package/admin/img/sc_always.png +0 -0
- package/admin/img/select-target-devices-overwrite.gif +0 -0
- package/admin/img/smartControl_options1.gif +0 -0
- package/admin/img/smartControl_options_dropdown.gif +0 -0
- package/admin/img/smartControl_options_dropdown_2.gif +0 -0
- package/admin/index_m.html +0 -812
- package/admin/index_m.js +0 -1659
- package/admin/style.css +0 -255
- package/admin/tsconfig.json +0 -45
- package/admin/words.js +0 -113
- package/admin/zero-md/readme.txt +0 -1
- package/admin/zero-md/webcomponents-loader.min.js +0 -9
- package/admin/zero-md/zero-md.min.js.js +0 -9
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t,t.exports),e=null),t.exports),s=(e,n)=>{let r=Object.setPrototypeOf({},null);for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n&1||t(r,Symbol.toStringTag,{value:`Module`}),n&2?r:Object.preventExtensions(r)},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(let c of r(i))!a.call(e,c)&&c!==o&&(s=n(i,c),t(e,c,{get:s&&s.get&&!s.configurable?s.get:()=>i[c],enumerable:!s||s.enumerable}));return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),u=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});export{l as i,s as n,u as r,o as t};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var e={AT:`@`,HYPHEN:`-`,SLASH:`/`},t={[e.AT]:`scope_`,[e.HYPHEN]:`_`,[e.SLASH]:`__`};t[e.AT],e.AT,t[e.HYPHEN],e.HYPHEN,t[e.SLASH],e.SLASH;var n=function(e){return e[e.UNKNOWN=1]=`UNKNOWN`,e[e.CALCULATED=2]=`CALCULATED`,e[e.NO_USE=0]=`NO_USE`,e}({});function r(){return!0}function i(){var e;return typeof navigator<`u`&&((e=navigator)==null?void 0:e.product)===`ReactNative`}function a(){try{if(r()&&window.localStorage)return!!localStorage.getItem(`FEDERATION_DEBUG`)}catch{return!1}return!1}function o(){return typeof process<`u`&&{}.FEDERATION_DEBUG?!!{}.FEDERATION_DEBUG:typeof FEDERATION_DEBUG<`u`&&FEDERATION_DEBUG?!0:a()}var s=`[ Federation Runtime ]`,c=function(...e){return e.length?e.reduce((e,t)=>t?e?`${e}:${t}`:t:e,``):``};function l(e,t){if(`getPublicPath`in e){let n;return n=e.getPublicPath.startsWith(`function`)?Function(`return `+e.getPublicPath)()():Function(e.getPublicPath)(),`${n}${t}`}return`publicPath`in e?!r()&&!i()&&`ssrPublicPath`in e&&typeof e.ssrPublicPath==`string`?`${e.ssrPublicPath}${t}`:`${e.publicPath}${t}`:(console.warn(`Cannot get resource URL. If in debug mode, please ignore.`,e,t),``)}var u=e=>{console.warn(`${s}: ${e}`)};function d(e){try{return JSON.stringify(e,null,2)}catch{return``}}var f=(e,t)=>{if(!e)return t;let n=(e=>{if(e===`.`)return``;if(e.startsWith(`./`))return e.replace(`./`,``);if(e.startsWith(`/`)){let t=e.slice(1);return t.endsWith(`/`)?t.slice(0,-1):t}return e})(e);return n?n.endsWith(`/`)?`${n}${t}`:`${n}/${t}`:t};function p(e){return e.replace(/#.*$/,``).replace(/\?.*$/,``).replace(/\/[^\/]+$/,`/`)}function m(e,t={}){var n;let{remotes:r={},overrides:i={},version:a}=t,o,s=()=>`publicPath`in e.metaData?(e.metaData.publicPath===`auto`||e.metaData.publicPath===``)&&a?p(a):e.metaData.publicPath:e.metaData.getPublicPath,c=Object.keys(i),l={};Object.keys(r).length||(l=((n=e.remotes)==null?void 0:n.reduce((e,t)=>{let n,r=t.federationContainerName;return n=c.includes(r)?i[r]:`version`in t?t.version:t.entry,e[r]={matchedVersion:n},e},{}))||{}),Object.keys(r).forEach(e=>l[e]={matchedVersion:c.includes(e)?i[e]:r[e]});let{remoteEntry:{path:u,name:d,type:m},types:h={path:``,name:``,zip:``,api:``},buildInfo:{buildVersion:g},globalName:_,ssrRemoteEntry:v}=e.metaData,{exposes:ee}=e,te={version:a||``,buildVersion:g,globalName:_,remoteEntry:f(u,d),remoteEntryType:m,remoteTypes:f(h.path,h.name),remoteTypesZip:h.zip||``,remoteTypesAPI:h.api||``,remotesInfo:l,shared:e==null?void 0:e.shared.map(e=>({assets:e.assets,sharedName:e.name,version:e.version,...e.layer===void 0?{}:{layer:e.layer},...e.shareScope===void 0?{}:{shareScope:e.shareScope},usedExports:e.referenceExports||[]})),modules:ee==null?void 0:ee.map(e=>({moduleName:e.name,modulePath:e.path,assets:e.assets}))};if(`publicPath`in e.metaData?(o={...te,publicPath:s()},typeof e.metaData.ssrPublicPath==`string`&&(o.ssrPublicPath=e.metaData.ssrPublicPath)):o={...te,getPublicPath:s()},v){let e=f(v.path,v.name);o.ssrRemoteEntry=e,o.ssrRemoteEntryType=v.type||`commonjs-module`}return o}function h(e){return!!(`remoteEntry`in e&&e.remoteEntry.includes(`.json`))}var g=`[ Module Federation ]`,_=console,v=[`logger.ts`,`logger.js`,`captureStackTrace`,`Logger.emit`,`Logger.log`,`Logger.info`,`Logger.warn`,`Logger.error`,`Logger.debug`];function ee(){try{let e=Error().stack;if(!e)return;let[,...t]=e.split(`
|
|
2
|
+
`),n=t.filter(e=>!v.some(t=>e.includes(t)));return n.length?`Stack trace:\n${n.slice(0,5).join(`
|
|
3
|
+
`)}`:void 0}catch{return}}var te=class{constructor(e,t=_){this.prefix=e,this.delegate=t??_}setPrefix(e){this.prefix=e}setDelegate(e){this.delegate=e??_}emit(e,t){let n=this.delegate,r=o()?ee():void 0,i=r?[...t,r]:t,a=(()=>{switch(e){case`log`:return[`log`,`info`];case`info`:return[`info`,`log`];case`warn`:return[`warn`,`info`,`log`];case`error`:return[`error`,`warn`,`log`];default:return[`debug`,`log`]}})();for(let e of a){let t=n[e];if(typeof t==`function`){t.call(n,this.prefix,...i);return}}for(let e of a){let t=_[e];if(typeof t==`function`){t.call(_,this.prefix,...i);return}}}log(...e){this.emit(`log`,e)}warn(...e){this.emit(`warn`,e)}error(...e){this.emit(`error`,e)}success(...e){this.emit(`info`,e)}info(...e){this.emit(`info`,e)}ready(...e){this.emit(`info`,e)}debug(...e){o()&&this.emit(`debug`,e)}};function ne(e){return new te(e)}function re(e){let t=new te(e);return Object.defineProperty(t,"__mf_infrastructure_logger__",{value:!0,enumerable:!1,configurable:!1}),t}ne(g),re(g);async function ie(e,t){try{return await e()}catch(e){!t&&u(e);return}}function ae(e,t){let n=/^(https?:)?\/\//i;return e.replace(n,``).replace(/\/$/,``)===t.replace(n,``).replace(/\/$/,``)}function oe(e){let t=null,n=!0,r=2e4,i,a=document.getElementsByTagName(`script`);for(let r=0;r<a.length;r++){let i=a[r],o=i.getAttribute(`src`);if(o&&ae(o,e.url)){t=i,n=!1;break}}if(!t){let n=e.attrs;t=document.createElement(`script`),t.type=(n==null?void 0:n.type)===`module`?`module`:`text/javascript`;let i;e.createScriptHook&&(i=e.createScriptHook(e.url,e.attrs),i instanceof HTMLScriptElement?t=i:typeof i==`object`&&(`script`in i&&i.script&&(t=i.script),`timeout`in i&&i.timeout&&(r=i.timeout))),t.src||(t.src=e.url),n&&!i&&Object.keys(n).forEach(e=>{t&&(e===`async`||e===`defer`?t[e]=n[e]:t.getAttribute(e)||t.setAttribute(e,n[e]))})}let o=null,s=typeof window<`u`?t=>{if(t.filename&&ae(t.filename,e.url)){let n=Error(`ScriptExecutionError: Script "${e.url}" loaded but threw a runtime error during execution: ${t.message} (${t.filename}:${t.lineno}:${t.colno})`);n.name=`ScriptExecutionError`,o=n}}:null;s&&window.addEventListener(`error`,s);let c=async(n,r)=>{clearTimeout(i),s&&window.removeEventListener(`error`,s);let a=()=>{if((r==null?void 0:r.type)===`error`){let t=Error(r!=null&&r.isTimeout?`ScriptNetworkError: Script "${e.url}" timed out.`:`ScriptNetworkError: Failed to load script "${e.url}" - the script URL is unreachable or the server returned an error (network failure, 404, CORS, etc.)`);t.name=`ScriptNetworkError`,e!=null&&e.onErrorCallback&&(e==null||e.onErrorCallback(t))}else o?e!=null&&e.onErrorCallback&&(e==null||e.onErrorCallback(o)):e!=null&&e.cb&&(e==null||e.cb())};if(t&&(t.onerror=null,t.onload=null,ie(()=>{let{needDeleteScript:n=!0}=e;n&&t!=null&&t.parentNode&&t.parentNode.removeChild(t)}),n&&typeof n==`function`)){let e=n(r);if(e instanceof Promise){let t=await e;return a(),t}return a(),e}a()};return t.onerror=c.bind(null,t.onerror),t.onload=c.bind(null,t.onload),i=setTimeout(()=>{c(null,{type:`error`,isTimeout:!0})},r),{script:t,needAttach:n}}function se(e){let t=null,n=!0,r=2e4,i,a=document.getElementsByTagName(`link`);for(let r=0;r<a.length;r++){let i=a[r],o=i.getAttribute(`href`),s=i.getAttribute(`rel`);if(o&&ae(o,e.url)&&s===e.attrs.rel){t=i,n=!1;break}}if(!t){t=document.createElement(`link`),t.setAttribute(`href`,e.url);let n,i=!0,a=e.attrs;e.createLinkHook&&(n=e.createLinkHook(e.url,a),n instanceof HTMLLinkElement?(t=n,i=!1):typeof n==`object`&&(`link`in n&&n.link&&(t=n.link,i=!1),`timeout`in n&&n.timeout&&(r=n.timeout))),a&&i&&Object.keys(a).forEach(e=>{t&&!t.getAttribute(e)&&t.setAttribute(e,a[e])})}if(!n)return Promise.resolve().then(()=>{e!=null&&e.cb&&(e==null||e.cb())}),{link:t,needAttach:n};let o=(n,r)=>{i&&clearTimeout(i);let a=()=>{if((r==null?void 0:r.type)===`error`){let t=Error(r!=null&&r.isTimeout?`LinkNetworkError: Link "${e.url}" timed out.`:`LinkNetworkError: Failed to load link "${e.url}" - the URL is unreachable or the server returned an error.`);t.name=`LinkNetworkError`,e!=null&&e.onErrorCallback&&(e==null||e.onErrorCallback(t))}else e!=null&&e.cb&&(e==null||e.cb())};if(t&&(t.onerror=null,t.onload=null,ie(()=>{let{needDeleteLink:n=!0}=e;n&&t!=null&&t.parentNode&&t.parentNode.removeChild(t)}),n)){let e=n(r);return a(),e}a()};return t.onerror=o.bind(null,t.onerror),t.onload=o.bind(null,t.onload),i=setTimeout(()=>{o(null,{type:`error`,isTimeout:!0})},r),{link:t,needAttach:n}}function ce(e,t){let{attrs:n={},createScriptHook:r}=t;return new Promise((t,i)=>{let{script:a,needAttach:o}=oe({url:e,cb:t,onErrorCallback:i,attrs:{fetchpriority:`high`,...n},createScriptHook:r,needDeleteScript:!0});o&&document.head.appendChild(a)})}function le(e){return JSON.stringify([`sharedName`in e?e.sharedName:e.name,e.version,e.layer])}function ue(e){if(!e.some(e=>e.shareScope===void 0))return e;let t=new Set;for(let n of e)n.shareScope!==void 0&&t.add(le(n));return t.size?e.map(e=>e.shareScope===void 0&&t.has(le(e))?{...e,shareScope:`default`}:e):e}var de=e=>`View the docs to see how to solve: https://module-federation.io/guide/troubleshooting/${e.split(`-`)[0].toLowerCase()}#${e.toLowerCase()}`,fe=(e,t,n,r)=>{let i=[`${[t[e]]} #${e}`];return n&&i.push(`args: ${JSON.stringify(n)}`),i.push(de(e)),r&&i.push(`Original Error Message:\n ${r}`),i.join(`
|
|
4
|
+
`)};function pe(e,t,n,r,i,a){return r(fe(e,t,n,i))}var y=`[ Federation Runtime ]`,me=ne(y);function b(e,t,n,r,i){e||(n===void 0?x(t):x(t,n,r,void 0,i))}function x(e,t,n,r,i){if(t!==void 0)return pe(e,t,n??{},e=>{throw Error(`${y}: ${e}`)},r,i);let a=e;throw a instanceof Error?(a.message.startsWith(y)||(a.message=`${y}: ${a.message}`),a):Error(`${y}: ${a}`)}function S(e){e instanceof Error&&(e.message.startsWith(y)||(e.message=`${y}: ${e.message}`)),me.warn(e)}function he(e,t){return e.findIndex(e=>e===t)===-1&&e.push(t),e}function C(e){return`version`in e&&e.version?`${e.name}:${e.version}`:`entry`in e&&e.entry?`${e.name}:${e.entry}`:`${e.name}`}function ge(e){return e.entry!==void 0}function _e(e){return!e.entry.includes(`.json`)}function ve(e){return e&&typeof e==`object`}var ye=Object.prototype.toString;function be(e){return ye.call(e)===`[object Object]`}function xe(e){return Array.isArray(e)?e:[e]}function Se(e){return`remoteEntry`in e?{url:e.remoteEntry,type:e.remoteEntryType,globalName:e.globalName}:{url:``,type:`global`,globalName:``}}var Ce=(e,t)=>{let n;return n=e.endsWith(`/`)?e.slice(0,-1):e,t.startsWith(`.`)&&(t=t.slice(1)),n+=t,n},we=2e3,w=typeof globalThis==`object`?globalThis:window,T=(()=>{try{return document.defaultView}catch{return w}})(),E=T;function Te(e,t,n){Object.defineProperty(e,t,{value:n,configurable:!1,writable:!0})}function Ee(e,t){return Object.hasOwnProperty.call(e,t)}Ee(w,`__GLOBAL_LOADING_REMOTE_ENTRY__`)||Te(w,`__GLOBAL_LOADING_REMOTE_ENTRY__`,{});var D=w.__GLOBAL_LOADING_REMOTE_ENTRY__;function De(e){Ee(e,`__VMOK__`)&&!Ee(e,`__FEDERATION__`)&&Te(e,`__FEDERATION__`,e.__VMOK__),Ee(e,`__FEDERATION__`)||(Te(e,`__FEDERATION__`,{__GLOBAL_PLUGIN__:[],__INSTANCES__:[],moduleInfo:{},__SHARE__:{},__MANIFEST_LOADING__:{},__PRELOADED_MAP__:new Map,__PRELOADED_ASSETS__:new Set}),Te(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,e.__FEDERATION__.__PRELOADED_ASSETS__??=new Set}De(w),De(T);function Oe(){w.__FEDERATION__.__GLOBAL_PLUGIN__=[],w.__FEDERATION__.__INSTANCES__=[],w.__FEDERATION__.moduleInfo={},w.__FEDERATION__.__SHARE__={},w.__FEDERATION__.__MANIFEST_LOADING__={},w.__FEDERATION__.__PRELOADED_ASSETS__.clear(),Object.keys(D).forEach(e=>{delete D[e]})}function ke(e){w.__FEDERATION__.__INSTANCES__.push(e)}function Ae(){return w.__FEDERATION__.__DEBUG_CONSTRUCTOR__}function je(e,t=o()){t&&(w.__FEDERATION__.__DEBUG_CONSTRUCTOR__=e,w.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__=`2.9.5`)}function O(e,t){if(typeof t==`string`){if(e[t])return{value:e[t],key:t};{let n=Object.keys(e);for(let r of n){let[n,i]=r.split(`:`),a=`${n}:${t}`,o=e[a];if(o)return{value:o,key:a}}return{value:void 0,key:t}}}x(`getInfoWithoutType: "key" must be a string, got ${typeof t} (${JSON.stringify(t)}).`)}var Me=()=>T.__FEDERATION__.moduleInfo,Ne=(e,t)=>{let n=O(t,C(e)).value;if(n&&!n.version&&`version`in e&&e.version&&(n.version=e.version),n)return n;if(`version`in e&&e.version){let{version:t,...n}=e,r=C(n),i=O(T.__FEDERATION__.moduleInfo,r).value;if((i==null?void 0:i.version)===t)return i}},k=e=>Ne(e,T.__FEDERATION__.moduleInfo),Pe=(e,t)=>{let n=C(e);return T.__FEDERATION__.moduleInfo[n]=t,T.__FEDERATION__.moduleInfo},Fe=e=>(T.__FEDERATION__.moduleInfo={...T.__FEDERATION__.moduleInfo,...e},()=>{let t=Object.keys(e);for(let e of t)delete T.__FEDERATION__.moduleInfo[e]}),Ie=(e,t)=>{let n=t||`__FEDERATION_${e}:custom__`;return{remoteEntryKey:n,entryExports:w[n]}},Le=e=>{let{__GLOBAL_PLUGIN__:t}=T.__FEDERATION__;e.forEach(e=>{t.findIndex(t=>t.name===e.name)===-1?t.push(e):S(`The plugin ${e.name} has been registered.`)})},Re=()=>T.__FEDERATION__.__GLOBAL_PLUGIN__,ze=e=>w.__FEDERATION__.__PRELOADED_MAP__.get(e),Be=e=>w.__FEDERATION__.__PRELOADED_MAP__.set(e,!0),Ve=e=>w.__FEDERATION__.__PRELOADED_ASSETS__.has(e),He=e=>{let t=w.__FEDERATION__.__PRELOADED_ASSETS__;if(t.add(e),t.size>we){let e=t.values().next().value;e!==void 0&&t.delete(e)}},Ue=`[0-9A-Za-z-]+`,We=`(?:\\+(${Ue}(?:\\.${Ue})*))`,A=`0|[1-9]\\d*`,Ge=`[0-9]+`,Ke=`\\d*[a-zA-Z-][a-zA-Z0-9-]*`,qe=`(?:${Ge}|${Ke})`,Je=`(?:-?(${qe}(?:\\.${qe})*))`,Ye=`(?:${A}|${Ke})`,Xe=`(?:-(${Ye}(?:\\.${Ye})*))`,Ze=`${A}|x|X|\\*`,j=`[v=\\s]*(${Ze})(?:\\.(${Ze})(?:\\.(${Ze})(?:${Xe})?${We}?)?)?`,Qe=`^\\s*(${j})\\s+-\\s+(${j})\\s*$`,$e=`[v=\\s]*(${Ge})\\.(${Ge})\\.(${Ge})${Je}?${We}?`,et=`((?:<|>)?=?)`,tt=`(\\s*)${et}\\s*(${$e}|${j})`,nt=`(?:~>?)`,rt=`(\\s*)${nt}\\s+`,it=`(?:\\^)`,at=`(\\s*)${it}\\s+`,ot=`(<|>)?=?\\s*\\*`,st=`^${it}${j}$`,ct=`v?(${A})\\.(${A})\\.(${A})${Xe}?${We}?`,lt=`^${nt}${j}$`,ut=`^${et}\\s*${j}$`,dt=`^${et}\\s*(${ct})$|^$`,ft=`^\\s*>=\\s*0.0.0\\s*$`;function M(e){return new RegExp(e)}function N(e){return!e||e.toLowerCase()===`x`||e===`*`}function pt(...e){return t=>e.reduce((e,t)=>t(e),t)}function mt(e){return e.match(M(dt))}function ht(e,t,n,r){let i=`${e}.${t}.${n}`;return r?`${i}-${r}`:i}function gt(e){return e.replace(M(Qe),(e,t,n,r,i,a,o,s,c,l,u,d)=>(t=N(n)?``:N(r)?`>=${n}.0.0`:N(i)?`>=${n}.${r}.0`:`>=${t}`,s=N(c)?``:N(l)?`<${Number(c)+1}.0.0-0`:N(u)?`<${c}.${Number(l)+1}.0-0`:d?`<=${c}.${l}.${u}-${d}`:`<=${s}`,`${t} ${s}`.trim()))}function _t(e){return e.replace(M(tt),`$1$2$3`)}function vt(e){return e.replace(M(rt),`$1~`)}function yt(e){return e.replace(M(at),`$1^`)}function bt(e){return e.trim().split(/\s+/).map(e=>e.replace(M(st),(e,t,n,r,i)=>N(t)?``:N(n)?`>=${t}.0.0 <${Number(t)+1}.0.0-0`:N(r)?t===`0`?`>=${t}.${n}.0 <${t}.${Number(n)+1}.0-0`:`>=${t}.${n}.0 <${Number(t)+1}.0.0-0`:i?t===`0`?n===`0`?`>=${t}.${n}.${r}-${i} <${t}.${n}.${Number(r)+1}-0`:`>=${t}.${n}.${r}-${i} <${t}.${Number(n)+1}.0-0`:`>=${t}.${n}.${r}-${i} <${Number(t)+1}.0.0-0`:t===`0`?n===`0`?`>=${t}.${n}.${r} <${t}.${n}.${Number(r)+1}-0`:`>=${t}.${n}.${r} <${t}.${Number(n)+1}.0-0`:`>=${t}.${n}.${r} <${Number(t)+1}.0.0-0`)).join(` `)}function xt(e){return e.trim().split(/\s+/).map(e=>e.replace(M(lt),(e,t,n,r,i)=>N(t)?``:N(n)?`>=${t}.0.0 <${Number(t)+1}.0.0-0`:N(r)?`>=${t}.${n}.0 <${t}.${Number(n)+1}.0-0`:i?`>=${t}.${n}.${r}-${i} <${t}.${Number(n)+1}.0-0`:`>=${t}.${n}.${r} <${t}.${Number(n)+1}.0-0`)).join(` `)}function St(e){return e.split(/\s+/).map(e=>e.trim().replace(M(ut),(e,t,n,r,i,a)=>{let o=N(n),s=o||N(r),c=s||N(i);return t===`=`&&c&&(t=``),a=``,o?t===`>`||t===`<`?`<0.0.0-0`:`*`:t&&c?(s&&(r=0),i=0,t===`>`?(t=`>=`,s?(n=Number(n)+1,r=0,i=0):(r=Number(r)+1,i=0)):t===`<=`&&(t=`<`,s?n=Number(n)+1:r=Number(r)+1),t===`<`&&(a=`-0`),`${t+n}.${r}.${i}${a}`):s?`>=${n}.0.0${a} <${Number(n)+1}.0.0-0`:c?`>=${n}.${r}.0${a} <${n}.${Number(r)+1}.0-0`:e})).join(` `)}function Ct(e){return e.trim().replace(M(ot),``)}function wt(e){return e.trim().replace(M(ft),``)}function Tt(e,t){return e=Number(e)||e,t=Number(t)||t,e>t?1:e===t?0:-1}function Et(e,t){let{preRelease:n}=e,{preRelease:r}=t;if(n===void 0&&r)return 1;if(n&&r===void 0)return-1;if(n===void 0&&r===void 0)return 0;for(let e=0,t=n.length;e<=t;e++){let t=n[e],i=r[e];if(t!==i)return t===void 0&&i===void 0?0:t?i?Tt(t,i):-1:1}return 0}function Dt(e,t){return Tt(e.major,t.major)||Tt(e.minor,t.minor)||Tt(e.patch,t.patch)||Et(e,t)}function Ot(e,t){return e.version===t.version}function kt(e,t){switch(e.operator){case``:case`=`:return Ot(e,t);case`>`:return Dt(e,t)<0;case`>=`:return Ot(e,t)||Dt(e,t)<0;case`<`:return Dt(e,t)>0;case`<=`:return Ot(e,t)||Dt(e,t)>0;case void 0:return!0;default:return!1}}function At(e){return pt(bt,xt,St,Ct)(e)}function jt(e){return pt(gt,_t,vt,yt)(e.trim()).split(/\s+/).join(` `)}function P(e,t){if(!e)return!1;let n=mt(e);if(!n)return!1;let[,r,,i,a,o,s]=n,c={operator:r,version:ht(i,a,o,s),major:i,minor:a,patch:o,preRelease:s==null?void 0:s.split(`.`)},l=t.split(`||`);for(let e of l){let t=e.trim();if(!t||t===`*`||t===`x`)return!0;try{let e=jt(t);if(!e.trim())return!0;let n=e.split(` `).map(e=>At(e)).join(` `);if(!n.trim())return!0;let r=n.split(/\s+/).map(e=>wt(e)).filter(Boolean);if(r.length===0)continue;let i=!0;for(let e of r){let t=mt(e);if(!t){i=!1;break}let[,n,,r,a,o,s]=t;if(!kt({operator:n,version:ht(r,a,o,s),major:r,minor:a,patch:o,preRelease:s==null?void 0:s.split(`.`)},c)){i=!1;break}}if(i)return!0}catch(e){console.error(`[semver] Error processing range part "${t}":`,e);continue}}return!1}var Mt=`default`,Nt=`global`,F=Symbol.for(`module-federation.share-scope.layers`);function I(e,t){return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0}function L(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),n}function R(e,t,n,r=!1){if(!e)return;if(n==null)return I(e,t)??(r?L(e,t,{}):void 0);let i=e[F];!i&&r&&(i=new Map,Object.defineProperty(e,F,{value:i,configurable:!0}));let a=i==null?void 0:i.get(t);!a&&r&&(a=new Map,i.set(t,a));let o=a==null?void 0:a.get(n);return!o&&r&&(o={},a.set(n,o)),o}function Pt(e){let t=Object.entries(e).map(([e,t])=>({pkgName:e,layer:void 0,versions:t}));for(let[n,r]of e[F]||[])for(let[e,i]of r)t.push({pkgName:n,layer:e,versions:i});return t}function Ft(e,t,n,r){let i=R(e,t,n);if(!i||(delete i[r],Object.keys(i).length))return;if(n===void 0){delete e[t];return}let a=e,o=a[F],s=o==null?void 0:o.get(t);s==null||s.delete(n),s!=null&&s.size||o==null||o.delete(t),o!=null&&o.size||delete a[F]}function It(e,t,r,i){var a,o;let s;return s=`get`in e?e.get:`lib`in e?()=>Promise.resolve(e.lib):()=>Promise.resolve(()=>{x(`Cannot get shared "${r}" from "${t}": neither "get" nor "lib" is provided in the share config.`)}),(a=e.shareConfig)!=null&&a.eager&&(o=e.treeShaking)!=null&&o.mode&&x(`Invalid shared config for "${r}" from "${t}": cannot use both "eager: true" and "treeShaking.mode" simultaneously. Choose one strategy.`),{deps:[],useIn:[],from:t,loading:null,...e,shareConfig:{requiredVersion:`^${e.version}`,singleton:!1,eager:!1,strictVersion:!1,...e.shareConfig},get:s,loaded:e!=null&&e.loaded||`lib`in e?!0:void 0,version:e.version??`0`,scope:Array.isArray(e.scope)?e.scope:[e.scope??`default`],strategy:(e.strategy??i)||`version-first`,treeShaking:e.treeShaking?{...e.treeShaking,mode:e.treeShaking.mode??`server-calc`,status:e.treeShaking.status??n.UNKNOWN,useIn:[]}:void 0}}function Lt(e,t){let n=t.shared||{},r=t.name,i={};for(let[e,a]of Object.entries(n))L(i,e,xe(a).map(n=>It(n,r,e,t.shareStrategy)));let a={...e.shared};return Object.keys(i).forEach(e=>{I(a,e)?i[e].forEach(t=>{a[e].find(e=>e.version===t.version&&(e.shareConfig.layer??void 0)===(t.shareConfig.layer??void 0))||a[e].push(t)}):L(a,e,i[e])}),{allShareInfos:a,newShareInfos:i}}function z(e,t){if(!e)return!1;let{status:r,mode:i}=e;return r===n.NO_USE?!1:r===n.CALCULATED?!0:i===`runtime-infer`?!t||Bt(e,t):!1}function B(e,t){let n=e=>{if(!Number.isNaN(Number(e))){let t=e.split(`.`),n=e;for(let e=0;e<3-t.length;e++)n+=`.0`;return n}return e};return!!P(n(e),`<=${n(t)}`)}var V=(e,t)=>{let n=t||function(e,t){return B(e,t)};return Object.keys(e).reduce((e,t)=>!e||n(e,t)||e===`0`?t:e,0)},Rt=e=>!!e.loaded||typeof e.lib==`function`,zt=e=>!!e.loading,Bt=(e,t)=>{if(!e||!t)return!1;let{usedExports:n}=e;return n?!!t.every(e=>n.includes(e)):!1};function Vt(e,t){let n=``,r=z(t),i=function(t,n){return r?e[t].treeShaking?e[n].treeShaking?!Rt(e[t].treeShaking)&&B(t,n):!1:!0:!Rt(e[t])&&B(t,n)};if(r){if(n=V(e,i),n)return{version:n,useTreesShaking:r};r=!1}return{version:V(e,i),useTreesShaking:r}}var H=e=>Rt(e)||zt(e);function Ht(e,t){let n=``,r=z(t),i=function(t,n){if(r){if(!e[t].treeShaking)return!0;if(!e[n].treeShaking)return!1;if(H(e[n].treeShaking))return!H(e[t].treeShaking)||!!B(t,n);if(H(e[t].treeShaking))return!1}return H(e[n])?!H(e[t])||!!B(t,n):!H(e[t])&&B(t,n)};if(r){if(n=V(e,i),n)return{version:n,useTreesShaking:r};r=!1}return{version:V(e,i),useTreesShaking:r}}function Ut(e){return e===`loaded-first`?Ht:Vt}function U(e,t,n,r,i){if(!e)return;let{shareConfig:a,scope:o=Mt,strategy:s,treeShaking:c}=n,l=Array.isArray(o)?o:[o];for(let o of l){let l=a==null?void 0:a.layer,u=I(e,o),d=R(u,t,l),f=d&&Object.keys(d).length||l==null?d:R(u,t);if(a&&f&&Object.keys(f).length){let{requiredVersion:u}=a,{version:d,useTreesShaking:p}=Ut(s)(f,c),m=()=>{let e=h.shareScopeMap[o][t],r=e[d];if(a.singleton){if(typeof u==`string`&&!P(d,u)){let e=`Version ${d} from ${d&&r.from} of shared singleton module ${t} does not satisfy the requirement of ${n.from} which needs ${u})`;a.strictVersion?x(e):S(e)}return{shared:r,useTreesShaking:p}}{if(u===!1||u===`*`||P(d,u))return{shared:r,useTreesShaking:p};let t=z(c);if(t){for(let[n,r]of Object.entries(e))if(z(r.treeShaking,c==null?void 0:c.usedExports)&&P(n,u))return{shared:r,useTreesShaking:t}}for(let[t,n]of Object.entries(e))if(P(t,u))return{shared:n,useTreesShaking:!1}}},h={shareScopeMap:l==null?e:{...e,[o]:{...e[o],[t]:f}},scope:o,pkgName:t,version:d,GlobalFederation:E.__FEDERATION__,shareInfo:n,resolver:m,loadContext:i};return(r.emit(h)||h).resolver()}}}function Wt(){return E.__FEDERATION__.__SHARE__}function Gt(e){var t;let{pkgName:n,extraOptions:r,shareInfos:i}=e,a=(r==null?void 0:r.resolver)??(e=>{if(!e)return;let t=Object.create(null);return e.forEach(e=>{t[e.version]=e}),t[V(t,function(e,n){return!Rt(t[e])&&B(e,n)})]}),o=e=>typeof e==`object`&&!!e&&!Array.isArray(e),s=(...e)=>{let t={};for(let n of e)if(n)for(let[e,r]of Object.entries(n)){let n=t[e];o(n)&&o(r)?t[e]=s(n,r):r!==void 0&&(t[e]=r)}return t},c=r==null||(t=r.customShareInfo)==null||(t=t.shareConfig)==null?void 0:t.layer,l=i[n],u=l==null?void 0:l.filter(e=>(e.shareConfig.layer??void 0)===(c??void 0));return s(a(u!=null&&u.length||c==null?u:l==null?void 0:l.filter(e=>e.shareConfig.layer==null)),r==null?void 0:r.customShareInfo)}var W=(e,t)=>{e.useIn||=[],he(e.useIn,t)};function Kt(e,t){return t&&e.treeShaking?e.treeShaking:e}function qt(e,t){return!t||t===`.`?e:`${e}/${t.replace(/^\.\//,``)}`}function Jt(e,t){for(let n of e){let e=t.startsWith(n.name),r=t.replace(n.name,``);if(e){if(r.startsWith(`/`)){let e=n.name;return r=`.${r}`,{pkgNameOrAlias:e,expose:r,remote:n}}if(r===``)return{pkgNameOrAlias:n.name,expose:`.`,remote:n}}let i=n.alias&&t.startsWith(n.alias),a=n.alias&&t.replace(n.alias,``);if(n.alias&&i){if(a&&a.startsWith(`/`)){let e=n.alias;return a=`.${a}`,{pkgNameOrAlias:e,expose:a,remote:n}}if(a===``)return{pkgNameOrAlias:n.alias,expose:`.`,remote:n}}}}function Yt(e,t){for(let n of e)if(t===n.name||n.alias&&t===n.alias)return n}var Xt=`RUNTIME-001`,Zt=`RUNTIME-002`,Qt=`RUNTIME-003`,$t=`RUNTIME-004`,en=`RUNTIME-005`,tn=`RUNTIME-006`,nn=`RUNTIME-007`,rn=`RUNTIME-008`,an=`RUNTIME-009`,on=`RUNTIME-010`,sn=`RUNTIME-011`,cn=`RUNTIME-012`,ln=`RUNTIME-013`,un=`RUNTIME-014`,dn=`RUNTIME-015`,fn=`TYPE-001`,pn=`BUILD-001`,mn=`BUILD-002`,G={[Xt]:`Failed to get remoteEntry exports.`,[Zt]:`The remote entry interface does not contain "init"`,[Qt]:`Failed to get manifest.`,[$t]:`Failed to locate remote.`,[en]:`Invalid loadShareSync function call from bundler runtime`,[tn]:`Invalid loadShareSync function call from runtime`,[nn]:`Failed to get remote snapshot.`,[rn]:`Failed to load script resources.`,[an]:`Please call createInstance first.`,[on]:`The name option cannot be changed after initialization. If you want to create a new instance with a different name, please use "createInstance" api.`,[sn]:`The remoteEntry URL is missing from the remote snapshot.`,[cn]:`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.`,[ln]:`The manifest is not a valid Module Federation manifest.`,[un]:`The remote does not expose the requested module.`,[dn]:`Remote container initialization failed.`},hn={[fn]:`Failed to generate type declaration. Execute the below cmd to reproduce and fix the error.`},gn={[pn]:`Failed to find expose module.`,[mn]:`PublicPath is required in prod mode.`};({...G,...hn,...gn});var _n=`.then(callbacks[0]).catch(callbacks[1])`,vn=new WeakMap,yn=[`Failed to fetch dynamically imported module`,`Importing a module script failed`,`error loading dynamically imported module`];function bn(e){return e instanceof TypeError&&yn.some(t=>e.message.includes(t))}function xn(e){return e===`esm`||e===`module`}async function Sn({entry:e,remoteEntryExports:t,name:n,getEntryUrl:r}){return new Promise((i,a)=>{let o=e=>{if(bn(e)){let t=e instanceof Error?e.message:String(e);try{x(rn,G,{remoteName:n,resourceUrl:s},t)}catch(e){a(e);return}}a(e)},s=r?r(e):e;try{t?i(t):typeof FEDERATION_ALLOW_NEW_FUNCTION<`u`?Function(`callbacks`,`import("${s}")${_n}`)([i,o]):import(s).then(i).catch(o)}catch(e){x(`Failed to load ESM entry from "${s}". ${e instanceof Error?e.message:String(e)}`)}})}async function Cn({entry:e,remoteEntryExports:t}){return new Promise((n,r)=>{try{t?n(t):typeof __system_context__>`u`?System.import(e).then(n).catch(r):Function(`callbacks`,`System.import("${e}")${_n}`)([n,r])}catch(t){x(`Failed to load SystemJS entry from "${e}". ${t instanceof Error?t.message:String(t)}`)}})}function wn(e,t,n){let{remoteEntryKey:r,entryExports:i}=Ie(e,t);return i||x(Xt,G,{remoteName:e,remoteEntryUrl:n,remoteEntryKey:r}),i}async function Tn({name:e,globalName:t,entry:n,remoteInfo:r,loaderHook:i,getEntryUrl:a,resourceContext:o}){let{entryExports:s}=Ie(e,t);if(s)return s;let c=a?a(n):n;return ce(c,{attrs:{},createScriptHook:(e,t)=>{let n=i.lifecycle.createScript.emit({url:e,attrs:t,remoteInfo:r,resourceContext:o?{...o,url:e}:void 0});if(n&&(n instanceof HTMLScriptElement||`script`in n||`timeout`in n))return n}}).then(()=>wn(e,t,n),t=>{let n=t instanceof Error?t.message:String(t);x(rn,G,{remoteName:e,resourceUrl:c},n)})}async function En({remoteInfo:e,remoteEntryExports:t,loaderHook:n,getEntryUrl:r,resourceContext:i}){let{entry:a,entryGlobalName:o,name:s,type:c}=e;return xn(c)?Sn({entry:a,remoteEntryExports:t,name:s,getEntryUrl:r}):c===`system`?Cn({entry:a,remoteEntryExports:t}):Tn({entry:a,globalName:o,name:s,remoteInfo:e,loaderHook:n,getEntryUrl:r,resourceContext:i})}function Dn(e){let{entry:t,name:n}=e;return c(n,t)}async function On(e){let{origin:t,remoteEntryExports:n,remoteInfo:r,getEntryUrl:i,resourceContext:a,_inErrorHandling:o=!1}=e,s=Dn(r);if(n)return await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:r,remoteEntryExports:n,resourceContext:a,cached:!0}),n;if(!D[s]){let e=t.remoteHandler.hooks.lifecycle.loadEntry,c=t.loaderHook,l=e.emit({origin:t,loaderHook:c,remoteInfo:r,remoteEntryExports:n,resourceContext:a}).then(e=>e||En({remoteInfo:r,remoteEntryExports:n,loaderHook:c,getEntryUrl:i,resourceContext:a})).then(async e=>(await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:r,remoteEntryExports:e,resourceContext:a}),e)).catch(async e=>{let i=e instanceof Error&&e.message.includes(`ScriptExecutionError`);if(e instanceof Error&&e.message.includes(`RUNTIME-008`)&&!i&&!o){let i=await t.loaderHook.lifecycle.loadEntryError.emit({getRemoteEntry:e=>On({...e,_inErrorHandling:!0}),origin:t,remoteInfo:r,remoteEntryExports:n,globalLoading:D,uniqueKey:s});if(i)return await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:r,remoteEntryExports:i,resourceContext:a,error:e,recovered:!0}),i}throw await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:r,resourceContext:a,error:e}),e});D[s]=l,l.then(void 0,()=>{D[s]===l&&delete D[s]}),vn.set(l,t)}let c=D[s];if(vn.get(c)!==t)try{let e=await c;return await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:r,remoteEntryExports:e,resourceContext:a}),e}catch(e){throw await t.loaderHook.lifecycle.afterLoadEntry.emit({origin:t,remoteInfo:r,resourceContext:a,error:e}),e}return c}function K(e){return{...e,entry:`entry`in e?e.entry:``,type:e.type||`global`,entryGlobalName:e.entryGlobalName||e.name,shareScope:e.shareScope||`default`}}function kn(){return typeof FEDERATION_BUILD_IDENTIFIER<`u`?FEDERATION_BUILD_IDENTIFIER:``}function An(e){let t=new Map;return[...e||[],...Re()].forEach(e=>{e&&(b(be(e),`Plugin configuration is invalid.`),b(e.name,`A name must be provided by the plugin.`),t.has(e.name)||t.set(e.name,e))}),Array.from(t.values())}function jn(e,t){return t===void 0?e:{...t,name:e.name,version:e.version}}function Mn(e,t){let n=new Map;t.options.plugins.forEach(e=>{e&&n.set(e.name,e)});let r=[t.hooks,t.remoteHandler.hooks,t.sharedHandler.hooks,t.snapshotHandler.hooks,t.loaderHook,t.bridgeHook];return An(e).forEach(e=>{var i;if(n.set(e.name,e),t.hooks.registerPlugins[e.name])return;let a=jn(e,(i=e.apply)==null?void 0:i.call(e,t));r.forEach(e=>{e.applyPlugin(a)})}),Array.from(n.values())}function Nn(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 q(e){var t,n;let r={};for(let[t,n]of Object.entries(e.shared)){var i,a,o,s;let e=n[0];e&&(r[t]={version:e.version,singleton:(i=e.shareConfig)==null?void 0:i.singleton,requiredVersion:((a=e.shareConfig)==null?void 0:a.requiredVersion)===!1?!1:(o=e.shareConfig)==null?void 0:o.requiredVersion,eager:e.eager,strictVersion:(s=e.shareConfig)==null?void 0:s.strictVersion})}return{project:{name:e.name,mfRole:((t=e.remotes)==null?void 0:t.length)>0?`host`:`unknown`},mfConfig:{name:e.name,remotes:((n=e.remotes)==null?void 0:n.map(Nn))??[],shared:r}}}function Pn(e){return{resourceCategory:`sync`,share:!0,depsRemote:!0,recordPreloadedAssets:!0,...e}}function Fn(e,t){return t.map(t=>{let n=Yt(e,t.nameOrAlias);return b(n,`Unable to preload ${t.nameOrAlias} as it is not included in ${!n&&d({remoteInfo:n,remotes:e})}`),{remote:n,preloadConfig:Pn(t)}})}function In(e){return e?e.map(e=>e===`.`?e:e.startsWith(`./`)?e.replace(`./`,``):e):[]}function Ln(e){return e instanceof Error?e.message.includes(`timed out`)||e.name.includes(`Timeout`):!1}function J(e,t,n,r){return{url:t,status:n,resourceType:e.resourceType,initiator:e.initiator,id:e.id,error:r}}function Rn(e,t,n,r){return n?Ve(t)?Promise.resolve(J(e,t,`cached`)):(He(t),r()):r()}async function zn(e,t,n,r){let i=e.moduleCache.get(n.name),a=n.entry;if(i!=null&&i.remoteEntryExports)return J(r,a,`cached`);try{if(!await On({origin:e,remoteInfo:n,remoteEntryExports:i==null?void 0:i.remoteEntryExports,resourceContext:{...r,url:a}}))throw Error(`Failed to load remoteEntry "${a}".`);return J(r,a,`success`)}catch(e){return J(r,a,Ln(e)?`timeout`:`error`,e)}}function Bn({host:e,remoteInfo:t,url:n,attrs:r,context:i,needDeleteLink:a}){return new Promise(o=>{let{link:s,needAttach:c}=se({url:n,cb:()=>{o(J(i,n,c?`success`:`cached`))},onErrorCallback:e=>{o(J(i,n,Ln(e)?`timeout`:`error`,e))},attrs:r,createLinkHook:(n,r)=>{let a=e.loaderHook.lifecycle.createLink.emit({url:n,attrs:r,remoteInfo:t,resourceContext:{...i,url:n}});return a instanceof HTMLLinkElement,a},needDeleteLink:a});c&&document.head.appendChild(s)})}function Vn({host:e,remoteInfo:t,url:n,attrs:r,context:i}){return new Promise(a=>{let{script:o,needAttach:s}=oe({url:n,cb:()=>{a(J(i,n,s?`success`:`cached`))},onErrorCallback:e=>{a(J(i,n,Ln(e)?`timeout`:`error`,e))},attrs:r,createScriptHook:(n,r)=>{let a=e.loaderHook.lifecycle.createScript.emit({url:n,attrs:r,remoteInfo:t,resourceContext:{...i,url:n}});return a instanceof HTMLScriptElement,a},needDeleteScript:!0});s&&document.head.appendChild(o)})}function Hn(e,t){return{...e,resourceType:t}}function Un(e,t,n,r=!0,i={initiator:`preloadRemote`,id:e.name},a=!0){let{cssAssets:o,jsAssetsWithoutEntry:s,entryAssets:c}=n,l=[];if(t.options.inBrowser){if(c.forEach(n=>{let{moduleInfo:r}=n;l.push(zn(t,e,r,Hn(i,`remoteEntry`)))}),r){let n={rel:`preload`,as:`style`};o.forEach(r=>{let o=Hn(i,`css`);l.push(Rn(o,r,a,()=>Bn({host:t,remoteInfo:e,url:r,attrs:n,context:o})))})}else{let n={rel:`stylesheet`,type:`text/css`};o.forEach(r=>{let o=Hn(i,`css`);l.push(Rn(o,r,a,()=>Bn({host:t,remoteInfo:e,url:r,attrs:n,needDeleteLink:!1,context:o})))})}let n=Vn,u={fetchpriority:`high`,type:`text/javascript`};r?(n=Bn,u={rel:`preload`,as:`script`}):xn(e.type)&&(n=Bn,u={rel:`modulepreload`,fetchpriority:`high`}),s.forEach(r=>{let o=Hn(i,`js`);l.push(Rn(o,r,a,()=>n({host:t,remoteInfo:e,url:r,attrs:u,context:o})))})}return Promise.all(l)}var Wn={global:{Global:E,nativeGlobal:T,resetFederationGlobalInfo:Oe,setGlobalFederationInstance:ke,getGlobalFederationConstructor:Ae,setGlobalFederationConstructor:je,getInfoWithoutType:O,getGlobalSnapshot:Me,getTargetSnapshotInfoByModuleInfo:Ne,getGlobalSnapshotInfoByModuleInfo:k,setGlobalSnapshotInfoByModuleInfo:Pe,addGlobalSnapshot:Fe,getRemoteEntryExports:Ie,registerGlobalPlugins:Le,getGlobalHostPlugins:Re,getPreloaded:ze,setPreloaded:Be},share:{getRegisteredShare:U,getGlobalShareScope:Wt},utils:{matchRemoteWithNameAndExpose:Jt,preloadAssets:Un,getRemoteInfo:K}};function Gn(e){if(!e||!(`modules`in e)||!Array.isArray(e.modules))return;let t=e.modules.map(e=>e.moduleName).filter(Boolean);return t.length?t.join(`,`):void 0}function Kn(e,t,n){let r=t,i=Array.isArray(e.shareScope)?e.shareScope:[e.shareScope];i.length||i.push(`default`),i.forEach(e=>{r[e]||(r[e]={})});let a={version:e.version||``,shareScopeKeys:Array.isArray(e.shareScope)?i:e.shareScope||`default`};return Object.defineProperty(a,"shareScopeMap",{value:r,enumerable:!1}),{remoteEntryInitOptions:a,shareScope:r[i[0]],initScope:n??[]}}var qn=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,t){let n=t||{initiator:`loadRemote`,id:qt(this.remoteInfo.name,e),resourceType:`remoteEntry`,url:this.remoteInfo.entry,expose:e},r=await On({origin:this.host,remoteInfo:this.remoteInfo,remoteEntryExports:this.remoteEntryExports,resourceContext:n});return b(r,`remoteEntryExports is undefined \n ${d(this.remoteInfo)}`),this.remoteEntryExports=r,this.remoteEntryExports}async init(e,t,n,r,i){let a=await this.getEntry(r,i);if(this.inited)return await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:a,cached:!0,origin:this.host}),a;if(this.initPromise){try{await this.initPromise,await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:a,cached:!0,origin:this.host})}catch(n){throw await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:a,error:n,cached:!0,origin:this.host}),n}return a}this.initing=!0,this.initPromise=(async()=>{await this.host.loaderHook.lifecycle.beforeInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,origin:this.host});let{remoteEntryInitOptions:r,shareScope:i,initScope:o}=Kn(this.remoteInfo,this.host.shareScopeMap,n),s=await this.host.hooks.lifecycle.beforeInitContainer.emit({shareScope:i,remoteEntryInitOptions:r,initScope:o,remoteInfo:this.remoteInfo,origin:this.host});(a==null?void 0:a.init)===void 0&&x(Zt,G,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName},void 0,q(this.host.options));try{await a.init(s.shareScope,s.initScope,s.remoteEntryInitOptions)}catch(e){x(dn,G,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,remoteEntryKey:this.remoteInfo.entryGlobalName,shareScope:this.remoteInfo.shareScope},`${e}`,q(this.host.options))}await this.host.hooks.lifecycle.initContainer.emit({...s,id:e,remoteSnapshot:t,remoteEntryExports:a}),this.inited=!0})();try{await this.initPromise,await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:a,origin:this.host})}catch(n){throw await this.host.loaderHook.lifecycle.afterInitRemote.emit({id:e,remoteInfo:this.remoteInfo,remoteSnapshot:t,remoteEntryExports:a,error:n,origin:this.host}),n}finally{this.initing=!1,this.initPromise=void 0}return a}async get(e,t,n,r){let{loadFactory:i=!0}=n||{loadFactory:!0},a=await this.init(e,r,void 0,t);this.lib=a,await this.host.loaderHook.lifecycle.beforeGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:a,origin:this.host});let o;try{let n=await this.host.loaderHook.lifecycle.getModuleFactory.emit({remoteEntryExports:a,expose:t,moduleInfo:this.remoteInfo});o=typeof n==`function`?n:void 0,o||=await a.get(t),o||x(un,G,{hostName:this.host.name,remoteName:this.remoteInfo.name,remoteEntryUrl:this.remoteInfo.entry,expose:t,requestId:e,availableExposes:Gn(r)},void 0,q(this.host.options)),await this.host.loaderHook.lifecycle.afterGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:a,moduleFactory:o,origin:this.host})}catch(n){throw await this.host.loaderHook.lifecycle.afterGetExpose.emit({id:e,expose:t,moduleInfo:this.remoteInfo,remoteEntryExports:a,error:n,origin:this.host}),n}let s=Ce(this.remoteInfo.name,t),c=this.wraperFactory(o,s);if(!i)return c;await this.host.loaderHook.lifecycle.beforeExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:i,origin:this.host});try{let n=await c();return await this.host.loaderHook.lifecycle.afterExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:i,exposeModule:n,origin:this.host}),n}catch(n){throw await this.host.loaderHook.lifecycle.afterExecuteFactory.emit({id:e,expose:t,moduleInfo:this.remoteInfo,loadFactory:i,error:n,origin:this.host}),n}}wraperFactory(e,t){function n(e,t){e&&typeof e==`object`&&Object.isExtensible(e)&&!Object.getOwnPropertyDescriptor(e,Symbol.for(`mf_module_id`))&&Object.defineProperty(e,Symbol.for(`mf_module_id`),{value:t,enumerable:!1})}return()=>{let r=e();return r instanceof Promise?r.then(e=>(n(e,t),e)):(n(r,t),r)}}},Y=class{constructor(e){this.registerPlugins={},this.lifecycle=e,this.lifecycleKeys=Object.keys(e)}applyPlugin(e){b(be(e),`Plugin configuration is invalid.`);let t=e.name;b(t,`A name must be provided by the plugin.`),this.registerPlugins[t]||(this.registerPlugins[t]=e,this.lifecycleKeys.forEach(t=>{let n=e[t];n&&this.lifecycle[t].on(n)}))}removePlugin(e){b(e,`A name is required.`);let t=this.registerPlugins[e];b(t,`The plugin "${e}" is not registered.`),this.lifecycleKeys.forEach(e=>{let n=t[e];n&&this.lifecycle[e].remove(n)}),delete this.registerPlugins[e]}},X=class{constructor(e){this.type=``,this.listeners=new Set,e&&(this.type=e)}on(e){typeof e==`function`&&this.listeners.add(e)}once(e){let t=this;this.on(function n(...r){return t.remove(n),e.apply(null,r)})}emit(...e){let t;return this.listeners.size>0&&this.listeners.forEach(n=>{let r=n(...e);r!==void 0&&(t=r)}),t}remove(e){this.listeners.delete(e)}removeAll(){this.listeners.clear()}},Z=class extends X{emit(...e){let t,n=Array.from(this.listeners);if(n.length>0){let r=0,i=t=>t===!1?!1:r<n.length?Promise.resolve(n[r++].apply(null,e)).then(n=>n===void 0||e.length===1&&n===e[0]?i(t):i(n)):t;t=i()}return Promise.resolve(t)}};function Jn(e,t){if(!ve(t))return!1;if(e!==t){for(let n in e)if(!(n in t))return!1}return!0}var Q=class extends X{constructor(e){super(),this.onerror=x,this.type=e}emit(e){ve(e)||x(`The data for the "${this.type}" hook should be an object.`);for(let t of this.listeners)try{let n=t(e);if(n===void 0)continue;if(Jn(e,n))e=n;else{this.onerror(`A plugin returned an unacceptable value for the "${this.type}" type.`);break}}catch(e){S(e),this.onerror(e)}return e}},$=class extends X{constructor(e){super(),this.onerror=x,this.type=e}emit(e){ve(e)||x(`The response data for the "${this.type}" hook must be an object.`);let t=Array.from(this.listeners);if(t.length>0){let n=0,r=t=>(S(t),this.onerror(t),e),i=a=>{if(a!==void 0&&Jn(e,a))e=a;else if(a!==void 0)return this.onerror(`A plugin returned an incorrect value for the "${this.type}" type.`),e;if(n<t.length)try{return Promise.resolve(t[n++](e)).then(i,r)}catch(e){return r(e)}return e};return Promise.resolve(i(e))}return Promise.resolve(e)}},Yn=`Remote loading is disabled by experiments.optimization.disableRemote.`,Xn=class{constructor(){this.hooks=new Y({})}formatAndRegisterRemote(){return[]}loadRemote(){throw Error(Yn)}preloadRemote(){throw Error(Yn)}registerRemotes(){throw Error(Yn)}getRemoteModuleAndOptions(){throw Error(Yn)}initRawContainer(){throw Error(Yn)}};function Zn(e,t){let n=Se(t);n.url||x(sn,G,{remoteName:e.name});let r=l(t,n.url);e.type=n.type,e.entryGlobalName=n.globalName,e.entry=r,e.version=t.version,e.buildVersion=t.buildVersion}function Qn(){return{name:`snapshot-plugin`,async afterResolve(e){let{remote:t,pkgNameOrAlias:n,expose:r,origin:i,remoteInfo:a,id:o}=e;if(!ge(t)||!_e(t)){let{remoteSnapshot:s,globalSnapshot:c}=await i.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:t,id:qt(t.name,r)});Zn(a,s);let l=[{nameOrAlias:n,exposes:[r],resourceCategory:`sync`,share:!1,depsRemote:!1,recordPreloadedAssets:!0}];await i.remoteHandler.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:l,options:i.options,origin:i});let[u]=l;if(u){let e={remote:t,preloadConfig:u},n=await i.remoteHandler.hooks.lifecycle.generatePreloadAssets.emit({origin:i,preloadOptions:e,remoteInfo:a,remote:t,remoteSnapshot:s,globalSnapshot:c});n&&Un(a,i,n,!1,{initiator:`loadRemote`,id:o},u.recordPreloadedAssets).catch(()=>void 0)}return{...e,remoteSnapshot:s}}return e}}}function $n(e){let t=e.split(`:`);return t.length===1?{name:t[0],version:void 0}:t.length===2?{name:t[0],version:t[1]}:{name:t[1],version:t[2]}}function er(e,t,n,r,i={},a){let{value:o}=O(e,C(t)),s=a||o;if(s&&!h(s)&&(n(s,t,r),s.remotesInfo)){let t=Object.keys(s.remotesInfo);for(let r of t){if(i[r])continue;i[r]=!0;let t=$n(r),a=s.remotesInfo[r];er(e,{name:t.name,version:a.matchedVersion},n,!1,i,void 0)}}}var tr=(e,t)=>document.querySelector(`${e}[${e===`link`?`href`:`src`}="${t}"]`);function nr(e,t,n,r,i){let a=[],o=[],s=[],c=new Set,u=new Set,{options:d}=e,{preloadConfig:f}=t,{depsRemote:p}=f;if(er(r,n,(t,n,r)=>{var i;let c;if(r)c=f;else if(Array.isArray(p)){let e=p.find(e=>e.nameOrAlias===n.name||e.nameOrAlias===n.alias);if(!e)return;c=Pn(e)}else if(p===!0)c=f;else return;let u=l(t,Se(t).url);u&&s.push({name:n.name,moduleInfo:{name:n.name,entry:u,type:`remoteEntryType`in t?t.remoteEntryType:`global`,entryGlobalName:`globalName`in t?t.globalName:n.name,shareScope:``,version:`version`in t?t.version:void 0},url:u});let d=`modules`in t?t.modules:[],m=In(c.exposes);m.length&&`modules`in t&&(d=t==null||(i=t.modules)==null?void 0:i.reduce((e,t)=>((m==null?void 0:m.indexOf(t.moduleName))!==-1&&e.push(t),e),[]));function h(e){let n=e.map(e=>l(t,e));return c.filter?n.filter(c.filter):n}if(d){let r=d.length;for(let i=0;i<r;i++){let r=d[i],s=`${n.name}/${r.moduleName}`;e.remoteHandler.hooks.lifecycle.handlePreloadModule.emit({id:r.moduleName===`.`?n.name:s,name:n.name,remoteSnapshot:t,preloadConfig:c,remote:n,origin:e}),ze(s)||(c.resourceCategory===`all`?(a.push(...h(r.assets.css.async)),a.push(...h(r.assets.css.sync)),o.push(...h(r.assets.js.async)),o.push(...h(r.assets.js.sync))):c.resourceCategory===`sync`&&(a.push(...h(r.assets.css.sync)),o.push(...h(r.assets.js.sync))),Be(s))}}},!0,{},i),i.shared&&i.shared.length>0){let t=(t,n)=>{let{shared:r}=U(e.shareScopeMap,n.sharedName,t,e.sharedHandler.hooks.lifecycle.resolveShare)||{};r&&typeof r.lib==`function`&&(n.assets.js.sync.forEach(e=>{c.add(l(i,e))}),n.assets.css.sync.forEach(e=>{u.add(l(i,e))}))};ue(i.shared).forEach(e=>{var n;let r=(n=d.shared)==null?void 0:n[e.sharedName];if(!r)return;let i=xe(e.shareScope||`default`);r.filter(t=>(!e.version||t.version===e.version)&&(t.shareConfig.layer??void 0)===e.layer&&(!e.shareScope||t.scope.some(e=>i.includes(e)))).forEach(n=>{t(n,e)})})}let m=o.filter(e=>!c.has(e)&&!tr(`script`,e));return{cssAssets:a.filter(e=>!u.has(e)&&!tr(`link`,e)),jsAssetsWithoutEntry:m,entryAssets:s.filter(e=>!tr(`script`,e.url))}}var rr=function(){return{name:`generate-preload-assets-plugin`,async generatePreloadAssets(e){let{origin:t,preloadOptions:n,remoteInfo:r,remote:i,globalSnapshot:a,remoteSnapshot:o}=e;return ge(i)&&_e(i)?{cssAssets:[],jsAssetsWithoutEntry:[],entryAssets:[{name:i.name,url:i.entry,moduleInfo:{name:r.name,entry:i.entry,type:r.type||`global`,entryGlobalName:``,shareScope:``}}]}:(Zn(r,o),nr(t,n,r,a,o))}}};function ir(e,t){let n=k({name:t.name,version:t.options.version}),r=n&&`remotesInfo`in n&&n.remotesInfo&&O(n.remotesInfo,e.name).value;return r&&r.matchedVersion?{hostGlobalSnapshot:n,globalSnapshot:Me(),remoteSnapshot:k({name:e.name,version:r.matchedVersion})}:{hostGlobalSnapshot:void 0,globalSnapshot:Me(),remoteSnapshot:k({name:e.name,version:`version`in e?e.version:void 0})}}var ar=class{constructor(e){this.loadingHostSnapshot=null,this.manifestCache=new Map,this.hooks=new Y({beforeLoadRemoteSnapshot:new Z(`beforeLoadRemoteSnapshot`),loadSnapshot:new $(`loadGlobalSnapshot`),loadRemoteSnapshot:new $(`loadRemoteSnapshot`),afterLoadSnapshot:new $(`afterLoadSnapshot`),beforeLoadManifest:new Z(`beforeLoadManifest`),afterLoadManifest:new Z(`afterLoadManifest`)}),this.manifestLoading=E.__FEDERATION__.__MANIFEST_LOADING__,this.HostInstance=e,this.loaderHook=e.loaderHook}async loadRemoteSnapshotInfo({moduleInfo:e,id:t,initiator:n=`loadRemote`}){let{options:r}=this.HostInstance;await this.hooks.lifecycle.beforeLoadRemoteSnapshot.emit({options:r,moduleInfo:e,origin:this.HostInstance});let i=k({name:this.HostInstance.options.name,version:this.HostInstance.options.version});i||(i={version:this.HostInstance.options.version||``,remoteEntry:``,remotesInfo:{}},Fe({[this.HostInstance.options.name]:i})),i&&`remotesInfo`in i&&!O(i.remotesInfo,e.name).value&&(`version`in e||`entry`in e)&&(i.remotesInfo={...i==null?void 0:i.remotesInfo,[e.name]:{matchedVersion:`version`in e?e.version:e.entry}});let{hostGlobalSnapshot:a,remoteSnapshot:o,globalSnapshot:s}=this.getGlobalRemoteInfo(e),{remoteSnapshot:c,globalSnapshot:l}=await this.hooks.lifecycle.loadSnapshot.emit({options:r,moduleInfo:e,hostGlobalSnapshot:a,remoteSnapshot:o,globalSnapshot:s}),u,d;if(c){if(h(c)){let r=c.remoteEntry,i=await this.loadManifestSnapshot(r,e,{},{initiator:n,id:t||e.name}),a=Pe({...e,entry:r},i);u=i,d=a}else{let{remoteSnapshot:t}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:e,remoteSnapshot:c,from:`global`});u=t,d=l}}else if(ge(e)){let r=await this.loadManifestSnapshot(e.entry,e,{},{initiator:n,id:t||e.name}),i=Pe(e,r);u=r,d=i}else x(nn,G,{remoteName:e.name,remoteVersion:e.version,hostName:this.HostInstance.options.name,globalSnapshot:JSON.stringify(l)},void 0,q(this.HostInstance.options));return await this.hooks.lifecycle.afterLoadSnapshot.emit({id:t,host:this.HostInstance,options:r,moduleInfo:e,remoteSnapshot:u}),{remoteSnapshot:u,globalSnapshot:d}}getGlobalRemoteInfo(e){return ir(e,this.HostInstance)}async getManifestJson(e,t,n,r){return(async()=>{let n=K(t),i=this.manifestCache.get(e);if(i)return await this.hooks.lifecycle.afterLoadManifest.emit({manifestUrl:e,moduleInfo:t,resourceOptions:r,manifestJson:i,cached:!0,origin:this.HostInstance}),i;await this.hooks.lifecycle.beforeLoadManifest.emit({manifestUrl:e,moduleInfo:t,resourceOptions:r,origin:this.HostInstance});let a,o,s=!1;try{let t=await this.loaderHook.lifecycle.fetch.emit(e,{},n,r?{...r,url:e,resourceType:`manifest`}:void 0);t&&t instanceof Response||(t=await fetch(e,{})),a=t,i=await t.json()}catch(c){o=c,i=await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:c,from:`runtime`,lifecycle:`afterResolve`,remote:n,origin:this.HostInstance}),i||(delete this.manifestLoading[e],await this.hooks.lifecycle.afterLoadManifest.emit({manifestUrl:e,moduleInfo:t,resourceOptions:r,response:a,error:c,origin:this.HostInstance}),x(Qt,G,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name},`${c}`,q(this.HostInstance.options))),s=!0}let c=[!i.metaData&&`metaData`,!i.exposes&&`exposes`,!i.shared&&`shared`].filter(Boolean),l=c.length>0?Error(`"${e}" is not a valid federation manifest for remote "${t.name}". Missing required fields: ${c.join(`, `)}.`):void 0;return l&&await this.HostInstance.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:l,from:`runtime`,lifecycle:`afterResolve`,remote:n,origin:this.HostInstance}),await this.hooks.lifecycle.afterLoadManifest.emit({manifestUrl:e,moduleInfo:t,resourceOptions:r,manifestJson:i,response:a,error:l||o,recovered:l?void 0:s||void 0,origin:this.HostInstance}),l&&x(ln,G,{manifestUrl:e,moduleName:t.name,hostName:this.HostInstance.options.name,missingFields:c.join(`,`)},void 0,q(this.HostInstance.options)),this.manifestCache.set(e,i),i})()}async loadManifestSnapshot(e,t,n,r){let i=async()=>{let i=await this.getManifestJson(e,t,n,r),a=m(i,{version:e}),{remoteSnapshot:o}=await this.hooks.lifecycle.loadRemoteSnapshot.emit({options:this.HostInstance.options,moduleInfo:t,manifestJson:i,remoteSnapshot:a,manifestUrl:e,from:`manifest`});return o};return this.manifestLoading[e]||(this.manifestLoading[e]=i().then(e=>e)),this.manifestLoading[e]}},or=class{constructor(){this.hooks=new Y({})}},sr=class{constructor(e){this.hooks=new Y({beforeRegisterShare:new Q(`beforeRegisterShare`),afterRegisterShare:new X(`afterRegisterShare`),afterResolve:new $(`afterResolve`),beforeLoadShare:new $(`beforeLoadShare`),loadShare:new Z,afterLoadShare:new X(`afterLoadShare`),errorLoadShare:new X(`errorLoadShare`),resolveShare:new Q(`resolveShare`),initContainerShareScopeMap:new Q(`initContainerShareScopeMap`)}),this.host=e,this.shareScopeMap={},this.initTokens=Object.create(null),this._setGlobalShareScopeMap(e.options)}emitAfterRegisterShare(e,t){this.hooks.lifecycle.afterRegisterShare.emit({pkgName:e,...t,shareScopeMap:this.shareScopeMap,origin:this.host})}emitAfterLoadShare({lifecycle:e,pkgName:t,shareInfo:n,selectedShared:r,loadContext:i}){try{this.hooks.lifecycle.afterLoadShare.emit({pkgName:t,shareInfo:n,selectedShared:r,shared:this.host.options.shared,shareScopeMap:this.shareScopeMap,lifecycle:e,loadContext:i,origin:this.host})}catch(e){S(e)}}emitErrorLoadShare({lifecycle:e,pkgName:t,shareInfo:n,error:r,recovered:i,loadContext:a}){try{this.hooks.lifecycle.errorLoadShare.emit({pkgName:t,shareInfo:n,shared:this.host.options.shared,shareScopeMap:this.shareScopeMap,lifecycle:e,origin:this.host,error:r,recovered:i,loadContext:a})}catch(e){S(e)}}registerShared(e,t){let{newShareInfos:n,allShareInfos:r}=Lt(e,t);return Object.keys(n).forEach(e=>{n[e].forEach(n=>{n.scope.forEach(r=>{var i;this.hooks.lifecycle.beforeRegisterShare.emit({origin:this.host,pkgName:e,shared:n});let a=R(I(this.shareScopeMap,r),e,n.shareConfig.layer),o=a==null?void 0:a[n.version];a||this.setShared({pkgName:e,lib:n.lib,get:n.get,loaded:n.loaded||!!n.lib,shared:n,from:t.name}),this.emitAfterRegisterShare(e,{scope:r,shared:n,previousShared:o,registeredShared:(i=R(I(this.shareScopeMap,r),e,n.shareConfig.layer))==null?void 0:i[n.version],trigger:`runtime`})})})}),{newShareInfos:n,allShareInfos:r}}async loadShare(e,t){let{host:n}=this,r=t==null?void 0:t.context,i=Gt({pkgName:e,extraOptions:t,shareInfos:n.options.shared}),a=i;try{i!=null&&i.scope&&await Promise.all(i.scope.map(async e=>{await Promise.all(this.initializeSharing(e,{strategy:i.strategy,context:r}))}));let o=await this.hooks.lifecycle.beforeLoadShare.emit({pkgName:e,shareInfo:i,shared:n.options.shared,origin:n,loadContext:r});a=o.shareInfo,r=o.loadContext||r,b(a,`Cannot find shared "${e}" in host "${n.options.name}". Ensure the shared config for "${e}" is declared in the federation plugin options and the host has been initialized before loading shares.`);let s=a,{shared:c,useTreesShaking:l}=U(this.shareScopeMap,e,a,this.hooks.lifecycle.resolveShare,r)||{};if(c){let t=Kt(c,l);if(t.lib)return W(t,n.options.name),this.emitAfterLoadShare({lifecycle:`loadShare`,pkgName:e,shareInfo:s,selectedShared:c,loadContext:r}),t.lib;if(t.loading&&!t.loaded){let i=await t.loading;return t.loaded=!0,t.lib||=i,W(t,n.options.name),this.emitAfterLoadShare({lifecycle:`loadShare`,pkgName:e,shareInfo:s,selectedShared:c,loadContext:r}),i}{let i=(async()=>{let e=await t.get();return W(t,n.options.name),t.loaded=!0,t.lib=e,e})();this.setShared({pkgName:e,loaded:!1,shared:c,from:n.options.name,lib:null,loading:i,treeShaking:l?t:void 0});let a=await i;return this.emitAfterLoadShare({lifecycle:`loadShare`,pkgName:e,shareInfo:s,selectedShared:c,loadContext:r}),a}}{if(t!=null&&t.customShareInfo)return this.emitErrorLoadShare({lifecycle:`loadShare`,pkgName:e,shareInfo:s,recovered:!0,loadContext:r}),!1;let i=z(s.treeShaking),a=Kt(s,i),o=(async()=>{let t=await a.get();a.lib=t,a.loaded=!0,W(a,n.options.name);let{shared:i,useTreesShaking:o}=U(this.shareScopeMap,e,s,this.hooks.lifecycle.resolveShare,r)||{};if(i){let e=Kt(i,o);e.lib=t,e.loaded=!0,i.from=s.from}return t})();this.setShared({pkgName:e,loaded:!1,shared:s,from:n.options.name,lib:null,loading:o,treeShaking:i?a:void 0});let c=await o;return this.emitAfterLoadShare({lifecycle:`loadShare`,pkgName:e,shareInfo:s,selectedShared:s,loadContext:r}),c}}catch(t){throw this.emitErrorLoadShare({lifecycle:`loadShare`,pkgName:e,shareInfo:a,error:t,loadContext:r}),t}}initializeSharing(e=Mt,t){var n;let{host:r}=this,i=t==null?void 0:t.from,a=t==null?void 0:t.strategy,o=(t==null||(n=t.context)==null?void 0:n.trigger)||i||`runtime`,s=t==null?void 0:t.initScope,c=[];if(i!==`build`){let{initTokens:t}=this;s||=[];let n=t[e];if(n||=t[e]={from:this.host.name},s.indexOf(n)>=0)return c;s.push(n)}let l=this.shareScopeMap,u=r.options.name,d=I(l,e)??L(l,e,{}),f=(t,n)=>{var r;let{version:i,eager:a}=n,s=R(d,t,n.shareConfig.layer,!0),c=I(s,i),l=!!(c&&(`eager`in c&&c.eager||`shareConfig`in c&&(r=c.shareConfig)!=null&&r.eager));(!c||c.strategy!==`loaded-first`&&!c.loaded&&(!a==!l?u>c.from:a))&&(c?s[i]=n:L(s,i,n)),this.emitAfterRegisterShare(t,{scope:e,shared:n,previousShared:c,registeredShared:s[i],trigger:o})},p=async e=>{let{module:t}=await r.remoteHandler.getRemoteModuleAndOptions({id:e}),n,i={initiator:`loadShare`,id:e,resourceType:`remoteEntry`,url:t.remoteInfo.entry};try{n=await t.getEntry(void 0,i)}catch(i){if(n=await r.remoteHandler.hooks.lifecycle.errorLoadRemote.emit({id:e,error:i,from:`runtime`,lifecycle:`beforeLoadShare`,remote:t.remoteInfo,origin:r}),!n)return}finally{n!=null&&n.init&&!t.initing&&(t.remoteEntryExports=n,await t.init(void 0,void 0,s,void 0,i))}};return Object.keys(r.options.shared).forEach(t=>{r.options.shared[t].forEach(n=>{n.scope.includes(e)&&f(t,n)})}),(r.options.shareStrategy===`version-first`||a===`version-first`)&&r.options.remotes.forEach(n=>{var r;let{shareScope:i}=n;(i===e||(t==null||(r=t.context)==null?void 0:r.shareScopeDispatch)===`declared`&&Array.isArray(i)&&i.includes(e))&&c.push(p(n.name))}),c}loadShareSync(e,t){let{host:n}=this,r=t==null?void 0:t.context,i=Gt({pkgName:e,extraOptions:t,shareInfos:n.options.shared});try{i!=null&&i.scope&&i.scope.forEach(e=>{this.initializeSharing(e,{strategy:i.strategy,from:t==null?void 0:t.from,context:r})});let{shared:a}=U(this.shareScopeMap,e,i,this.hooks.lifecycle.resolveShare,r)||{};if(a){if(typeof a.lib==`function`)return W(a,n.options.name),a.loaded||(a.loaded=!0,a.from===n.options.name&&(i.loaded=!0)),this.emitAfterLoadShare({lifecycle:`loadShareSync`,pkgName:e,shareInfo:i,selectedShared:a,loadContext:r}),a.lib;if(typeof a.get==`function`){let t=a.get();if(!(t instanceof Promise))return W(a,n.options.name),this.setShared({pkgName:e,loaded:!0,from:n.options.name,lib:t,shared:a}),this.emitAfterLoadShare({lifecycle:`loadShareSync`,pkgName:e,shareInfo:i,selectedShared:a,loadContext:r}),t}}if(i.lib)return i.loaded||=!0,this.emitAfterLoadShare({lifecycle:`loadShareSync`,pkgName:e,shareInfo:i,selectedShared:i,loadContext:r}),i.lib;if(i.get){let a=i.get();return a instanceof Promise&&x((t==null?void 0:t.from)===`build`?en:tn,G,{hostName:n.options.name,sharedPkgName:e},void 0,q(n.options)),i.lib=a,this.setShared({pkgName:e,loaded:!0,from:n.options.name,lib:i.lib,shared:i}),this.emitAfterLoadShare({lifecycle:`loadShareSync`,pkgName:e,shareInfo:i,selectedShared:i,loadContext:r}),i.lib}x(tn,G,{hostName:n.options.name,sharedPkgName:e},void 0,q(n.options))}catch(t){throw this.emitErrorLoadShare({lifecycle:`loadShareSync`,pkgName:e,shareInfo:i,error:t,loadContext:r}),t}}initShareScopeMap(e,t,n={}){let{host:r}=this;L(this.shareScopeMap,e,t),this.hooks.lifecycle.initContainerShareScopeMap.emit({shareScope:t,options:r.options,origin:r,scopeName:e,hostShareScopeMap:n.hostShareScopeMap})}setShared({pkgName:e,shared:t,from:n,lib:r,loading:i,loaded:a,get:o,treeShaking:s}){let{version:c,scope:l=`default`,...u}=t,d=Array.isArray(l)?l:[l],f=e=>{let t=(e,t,n)=>{n&&!e[t]&&(e[t]=n)},n=s?e.treeShaking:e;t(n,`loaded`,a),t(n,`loading`,i),t(n,`get`,o),t(n,`lib`,r)};d.forEach(i=>{var a;let o=R(I(this.shareScopeMap,i)??L(this.shareScopeMap,i,{}),e,(a=t.shareConfig)==null?void 0:a.layer,!0),s=I(o,c)??L(o,c,{version:c,scope:[i],...u,lib:r});f(s),n&&s.from!==n&&(s.from=n)})}_setGlobalShareScopeMap(e){let t=Wt(),n=e.id||e.name;n&&!t[n]&&(t[n]=this.shareScopeMap)}},cr=class{constructor(){this.shareScopeMap={},this.hooks=new Y({afterResolve:new $(`afterResolve`)})}registerShared(){return{newShareInfos:{},allShareInfos:{}}}loadShare(){throw Error(`Shared dependency loading is disabled by experiments.optimization.disableShared.`)}loadShareSync(){throw Error(`Shared dependency loading is disabled by experiments.optimization.disableShared.`)}initializeSharing(){return[]}initShareScopeMap(e,t){this.shareScopeMap[e]=t}},lr=class{constructor(e){this.hooks=new Y({beforeRegisterRemote:new Q(`beforeRegisterRemote`),registerRemote:new Q(`registerRemote`),beforeRequest:new $(`beforeRequest`),afterMatchRemote:new Z(`afterMatchRemote`),onLoad:new Z(`onLoad`),afterLoadRemote:new Z(`afterLoadRemote`),handlePreloadModule:new X(`handlePreloadModule`),errorLoadRemote:new Z(`errorLoadRemote`),beforePreloadRemote:new Z(`beforePreloadRemote`),generatePreloadAssets:new Z(`generatePreloadAssets`),afterPreloadRemote:new Z(`afterPreloadRemote`),loadEntry:new Z}),this.host=e,this.idToRemoteMap={}}formatAndRegisterRemote(e,t){return(t.remotes||[]).reduce((e,t)=>(this.registerRemote(t,e,{force:!1}),e),e.remotes)}setIdToRemoteMap(e,t){let{remote:n,expose:r}=t,{name:i,alias:a}=n;if(this.idToRemoteMap[e]={name:n.name,expose:r},a&&e.startsWith(i)){let t=e.replace(i,a);this.idToRemoteMap[t]={name:n.name,expose:r}}else if(a&&e.startsWith(a)){let t=e.replace(a,i);this.idToRemoteMap[t]={name:n.name,expose:r}}}async loadRemote(e,t){let{host:n}=this,r=Jt(n.options.remotes,e),i=e,a=r==null?void 0:r.expose,o=r?K(r.remote):void 0,s;try{let{loadFactory:r=!0}=t||{loadFactory:!0},{module:c,moduleOptions:l,remoteMatchInfo:u}=await this.getRemoteModuleAndOptions({id:e}),{pkgNameOrAlias:d,remote:f,expose:p,id:m,remoteSnapshot:h}=u;i=m,a=p,o=K(f);let g=await c.get(m,p,t,h),_=await this.hooks.lifecycle.onLoad.emit({id:m,pkgNameOrAlias:d,expose:p,exposeModule:r?g:void 0,exposeModuleFactory:r?void 0:g,remote:f,options:l,moduleInstance:c,origin:n});return this.setIdToRemoteMap(e,u),s={id:i,expose:a,remote:o,options:t,origin:n},typeof _==`function`?_:g}catch(r){let{from:c=`runtime`}=t||{from:`runtime`},l;try{l=await this.hooks.lifecycle.errorLoadRemote.emit({id:e,error:r,from:c,lifecycle:`onLoad`,expose:a,remote:o,origin:n})}catch(e){throw s={id:i,expose:a,remote:o,options:t,error:e,origin:n},e}if(!l)throw s={id:i,expose:a,remote:o,options:t,error:r,origin:n},r;return s={id:i,expose:a,remote:o,options:t,error:r,origin:n,recovered:!0},l}finally{s&&await this.hooks.lifecycle.afterLoadRemote.emit(s)}}async preloadRemote(e){let{host:t}=this,n=[];await this.hooks.lifecycle.beforePreloadRemote.emit({preloadOps:e,options:t.options,origin:t});let r=Fn(t.options.remotes,e),i=e=>{let{preloadConfig:t,remote:n}=e,r=t.exposes||[];return r.length?r.map(r=>({ops:{...e,preloadConfig:{...t,exposes:[r]}},id:qt(n.name,r)})):[{ops:e,id:`${n.name}/*`}]},a;await Promise.all(r.flatMap(i).map(async e=>{let{ops:r,id:i}=e,{remote:a,preloadConfig:o}=r,s=K(a);try{let{globalSnapshot:e,remoteSnapshot:c}=await t.snapshotHandler.loadRemoteSnapshotInfo({moduleInfo:a,id:i,initiator:`preloadRemote`}),l=await this.hooks.lifecycle.generatePreloadAssets.emit({origin:t,preloadOptions:r,remote:a,remoteInfo:s,globalSnapshot:e,remoteSnapshot:c});if(!l)return;let u=await Un(s,t,l,!0,{initiator:`preloadRemote`,id:i},o.recordPreloadedAssets);n.push({remote:a,remoteInfo:s,preloadConfig:o,id:i,results:u})}catch(e){n.push({remote:a,remoteInfo:s,preloadConfig:o,id:i,results:[{url:s.entry,status:`error`,resourceType:/\.json(?:$|[?#])/i.test(s.entry)?`manifest`:`remoteEntry`,initiator:`preloadRemote`,id:i,error:e}]})}}));let o=n.flatMap(e=>e.results.filter(e=>e.status===`error`||e.status===`timeout`));if(o.length>0&&(a=Error(`preloadRemote failed to load ${o.length} resource(s).`),Object.assign(a,{results:n,failedResults:o})),await this.hooks.lifecycle.afterPreloadRemote.emit({preloadOps:e,options:t.options,origin:t,results:n,error:a}),a)throw a}registerRemotes(e,t){let{host:n}=this;e.forEach(e=>{this.registerRemote(e,n.options.remotes,{force:t==null?void 0:t.force})})}initRawContainer(e,t,n){let{host:r}=this,i=new qn({host:r,remoteInfo:K({name:e,entry:t})});return i.remoteEntryExports=n,r.moduleCache.set(e,i),i}async getRemoteModuleAndOptions(e){let{host:t}=this,{id:n}=e,r;try{r=await this.hooks.lifecycle.beforeRequest.emit({id:n,options:t.options,origin:t})}catch(e){if(r=await this.hooks.lifecycle.errorLoadRemote.emit({id:n,options:t.options,origin:t,from:`runtime`,error:e,lifecycle:`beforeRequest`}),!r)throw e}let{id:i}=r,a=Jt(t.options.remotes,i);if(!a)try{x($t,G,{hostName:t.options.name,requestId:i},void 0,q(t.options))}catch(e){throw await this.hooks.lifecycle.afterMatchRemote.emit({id:i,options:t.options,error:e,origin:t}),e}let{remote:o}=a,s=K(o);await this.hooks.lifecycle.afterMatchRemote.emit({id:i,...a,options:t.options,remoteInfo:s,origin:t});let c=await t.sharedHandler.hooks.lifecycle.afterResolve.emit({id:i,...a,options:t.options,origin:t,remoteInfo:s}),{remote:l,expose:u}=c;b(l&&u,`The 'beforeRequest' hook was executed, but it failed to return the correct 'remote' and 'expose' values while loading ${i}.`);let d=t.moduleCache.get(l.name),f={host:t,remoteInfo:s};return d||(d=new qn(f),t.moduleCache.set(l.name,d)),{module:d,moduleOptions:f,remoteMatchInfo:c}}registerRemote(e,t,n){let{host:r}=this,i=()=>{if(e.alias){let n=t.find(t=>{var n;return e.alias&&(t.name.startsWith(e.alias)||((n=t.alias)==null?void 0:n.startsWith(e.alias)))});b(!n,`The alias ${e.alias} of remote ${e.name} is not allowed to be the prefix of ${n&&n.name} name or alias`)}`entry`in e&&typeof window<`u`&&!e.entry.startsWith(`http`)&&(e.entry=new URL(e.entry,window.location.origin).href),e.shareScope||=Mt,e.type||=Nt};this.hooks.lifecycle.beforeRegisterRemote.emit({remote:e,origin:r});let a=t.find(t=>t.name===e.name);if(!a)i(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:r});else{let o=[`The remote "${e.name}" is already registered.`,`Please note that overriding it may cause unexpected errors.`];n!=null&&n.force&&(this.removeRemote(a),i(),t.push(e),this.hooks.lifecycle.registerRemote.emit({remote:e,origin:r}),u(o.join(` `)))}}removeRemote(e){try{let{host:n}=this,{name:r}=e,i=n.options.remotes.findIndex(e=>e.name===r);i!==-1&&n.options.remotes.splice(i,1);let a=O(w.__FEDERATION__.moduleInfo,C(e)).key;delete w.__FEDERATION__.moduleInfo[a],`entry`in e&&(n.snapshotHandler.manifestCache.delete(e.entry),delete E.__FEDERATION__.__MANIFEST_LOADING__[e.entry]);let{hostGlobalSnapshot:o}=ir(e,n);if(o){let t=o&&`remotesInfo`in o&&o.remotesInfo&&O(o.remotesInfo,e.name).key;t&&delete o.remotesInfo[t]}let s=n.moduleCache.get(e.name);if(s){var t;let r=s.remoteInfo,i=r.entryGlobalName;w[i]&&((t=Object.getOwnPropertyDescriptor(w,i))!=null&&t.configurable?delete w[i]:w[i]=void 0);let a=Dn(s.remoteInfo);D[a]&&delete D[a];let o=r.buildVersion?c(r.name,r.buildVersion):r.name,l=w.__FEDERATION__.__INSTANCES__.findIndex(e=>r.buildVersion?e.options.id===o:e.name===o);if(l!==-1){let e=w.__FEDERATION__.__INSTANCES__[l];o=e.options.id||o;let t=Wt(),n=!0,i=[];Object.keys(t).forEach(e=>{let a=t[e];a&&Object.keys(a).forEach(e=>{let t=a[e];t&&Pt(t).forEach(({pkgName:e,layer:a,versions:o})=>{o&&Object.keys(o).forEach(s=>{let c=o[s];c&&typeof c==`object`&&c.from===r.name&&(c.loaded||c.loading?(c.useIn=c.useIn.filter(e=>e!==r.name),c.useIn.length?n=!1:i.push([t,e,a,s])):i.push([t,e,a,s]))})})})}),n&&(e.shareScopeMap={},delete t[o]),i.forEach(([e,t,n,r])=>{Ft(e,t,n,r)}),w.__FEDERATION__.__INSTANCES__.splice(l,1)}n.moduleCache.delete(e.name)}}catch(e){me.error(`removeRemote failed: ${e instanceof Error?e.message:String(e)}`)}}},ur=typeof FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN!=`boolean`||!FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN,dr=typeof FEDERATION_OPTIMIZE_NO_REMOTE!=`boolean`||!FEDERATION_OPTIMIZE_NO_REMOTE,fr=typeof FEDERATION_OPTIMIZE_NO_SHARED!=`boolean`||!FEDERATION_OPTIMIZE_NO_SHARED,pr=class{constructor(e){this.hooks=new Y({beforeInit:new Q(`beforeInit`),init:new X,beforeInitContainer:new $(`beforeInitContainer`),initContainer:new $(`initContainer`)}),this.version=`2.9.5`,this.moduleCache=new Map,this.loaderHook=new Y({getModuleInfo:new X,createScript:new X,createLink:new X,fetch:new Z,loadEntryError:new Z,afterLoadEntry:new Z(`afterLoadEntry`),beforeInitRemote:new Z(`beforeInitRemote`),afterInitRemote:new Z(`afterInitRemote`),beforeGetExpose:new Z(`beforeGetExpose`),afterGetExpose:new Z(`afterGetExpose`),beforeExecuteFactory:new Z(`beforeExecuteFactory`),afterExecuteFactory:new Z(`afterExecuteFactory`),getModuleFactory:new Z}),this.bridgeHook=new Y({beforeBridgeRender:new X,afterBridgeRender:new X,beforeBridgeDestroy:new X,afterBridgeDestroy:new X,afterBridgeRouteSync:new X});let t=dr&&ur?[Qn(),rr()]:[],n={id:kn(),name:e.name,plugins:t,remotes:[],shared:{},inBrowser:!0};this.name=e.name,this.options=n,this.snapshotHandler=dr?new ar(this):new or,this.sharedHandler=fr?new sr(this):new cr,this.remoteHandler=dr?new lr(this):new Xn,this.shareScopeMap=this.sharedHandler.shareScopeMap,this.registerPlugins([...n.plugins,...e.plugins||[]]),this.options=this.formatOptions(n,e)}initOptions(e){e.name&&e.name!==this.options.name&&x(fe(on,G)),this.registerPlugins(e.plugins);let t=this.formatOptions(this.options,e);return this.options=t,t}async loadShare(e,t){return this.sharedHandler.loadShare(e,t)}loadShareSync(e,t){return this.sharedHandler.loadShareSync(e,t)}initializeSharing(e=Mt,t){return this.sharedHandler.initializeSharing(e,t)}initRawContainer(e,t,n){return this.remoteHandler.initRawContainer(e,t,n)}async loadRemote(e,t){return this.remoteHandler.loadRemote(e,t)}async preloadRemote(e){return this.remoteHandler.preloadRemote(e)}initShareScopeMap(e,t,n={}){this.sharedHandler.initShareScopeMap(e,t,n)}formatOptions(e,t){let n=fr?Lt(e,t).allShareInfos:{},{userOptions:r,options:i}=this.hooks.lifecycle.beforeInit.emit({origin:this,userOptions:t,options:e,shareInfo:n}),a=this.remoteHandler.formatAndRegisterRemote(i,r),{allShareInfos:o}=this.sharedHandler.registerShared(i,r),s=[...i.plugins];r.plugins&&r.plugins.forEach(e=>{s.includes(e)||s.push(e)});let c={...e,...t,plugins:s,remotes:a,shared:o,id:r.id||e.id};return this.hooks.lifecycle.init.emit({origin:this,options:c}),c}registerPlugins(e){this.options.plugins=Mn(e,this)}registerRemotes(e,t){return this.remoteHandler.registerRemotes(e,t)}registerShared(e){this.sharedHandler.registerShared(this.options,{...this.options,shared:e})}},mr=Wn;function hr(){return typeof FEDERATION_BUILD_IDENTIFIER<`u`?FEDERATION_BUILD_IDENTIFIER:``}function gr(e,t){let n=hr();return w.__FEDERATION__.__INSTANCES__.find(r=>!!(n&&r.options.id===n||r.options.name===e&&!r.options.version&&!t||r.options.name===e&&t&&r.options.version===t))}export{an as a,ke as c,G as i,b as l,mr as n,Ae as o,pr as r,je as s,gr as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=function(e,t){return new URL(e,t).href},t={},n={},r=function(e){return e.pathname.endsWith(`.css`)},i=function(e,t,n){if(t in e)return e[t];let r=n();if(!r){e[t]=void 0;return}let i=r.then(()=>{e[t]=void 0},n=>{throw delete e[t],n});return e[t]=i,i},a=function(a,o,s){let c=Promise.resolve();if(o&&o.length>0){let a,l=document.querySelector(`meta[property=csp-nonce]`),u=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute(`nonce`));function d(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function f(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}c=d(o.map(o=>{o=e(o,s);let c=f(o),l=r(c);return i(t,c.href,()=>{if(a===void 0){a={all:new Set,styles:new Set};let e=document.getElementsByTagName(`link`);for(let t=e.length-1;t>=0;t--){let n=e[t];a.all.add(n.href),n.rel===`stylesheet`&&a.styles.add(n.href)}}let e=l?a.styles:a.all,t=l?n[c.href]:void 0;if(!t&&e.has(c.href))return;let r=document.createElement(`link`);if(r.rel=l?`stylesheet`:`modulepreload`,l||(r.as=`script`),r.crossOrigin=``,r.href=c.href,u&&r.setAttribute(`nonce`,u),t&&delete n[c.href],t!=null&&t.isConnected?t.replaceWith(r):document.head.appendChild(r),l)return new Promise((e,t)=>{let i=a=>{r.removeEventListener(`load`,i),r.removeEventListener(`error`,i),a.type===`error`?(n[c.href]=r,t(Error(`Unable to preload CSS for ${c}`))):e(a)};r.addEventListener(`load`,i),r.addEventListener(`error`,i)})})}).filter(e=>e!==void 0))}function l(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return c.then(e=>{for(let t of e||[])t.status===`rejected`&&l(t.reason);return a().catch(l)})};export{a as t};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import{t as e}from"./assets/dist-Cnxr-ruU.js";import{t}from"./assets/helpers-CNHzo155.js";import{t as n}from"./assets/vite-preload-helper-nldAWQd6.js";var r={},i=new Set,a=new Map;function o(e,t){let n=a.get(e);return n||(n=Promise.resolve().then(t).catch(t=>{throw a.delete(e),t}),a.set(e,n)),n}async function s(e){if(typeof document>`u`)return;let t=r[e]||[];await Promise.all(t.map(e=>{let t=new URL(e,import.meta.url).href;return i.has(t)||(i.add(t),document.querySelector(`link[rel="stylesheet"][href="${t}"]`))?Promise.resolve():new Promise((e,n)=>{let r=document.createElement(`link`);r.rel=`stylesheet`,r.href=t,r.onload=()=>e(),r.onerror=()=>{i.delete(t),r.remove(),n(Error(`[Module Federation] Failed to load CSS asset: ${t}`))},document.head.appendChild(r)})}))}var c={"./Components":async()=>{await s(`./Components`),await Promise.all([]);let e=await o(`./Components`,()=>n(()=>import(`./assets/Components-DpQjIfuo.js`),[],import.meta.url)),t=e&&e.__mf_remote_dependency_pending;t&&typeof t.then==`function`&&await t;let r={};return Object.assign(r,e),Object.defineProperty(r,"__esModule",{value:!0,enumerable:!1}),r}};typeof __VUE_HMR_RUNTIME__>`u`&&(globalThis.__VUE_HMR_RUNTIME__={createRecord(){},rerender(){},reload(){}});var l=`__mf_init__virtual:mf:__mfe_internal__SmartcontrolSet__mf_owner__108197177487852__mf_v__runtimeInit__mf_v__.js__`,u=globalThis[l];if(!u){let e,t,n=new Promise((n,r)=>{e=n,t=r});u=globalThis[l]={initPromise:n,initResolve:e,initReject:t}}var d=u.initResolve,{initReject:f}=u,p=e=>{throw f(e),e},m=`__mf_module_cache__`;globalThis[m]||={share:{},remote:{}},globalThis[m].share||={},globalThis[m].remote||={};var h=globalThis[m];for(let e of Object.keys(h.share))if(e.startsWith(`default:`)){let t=e.slice(8);h.share[t]===void 0&&(h.share[t]=h.share[e])}else if(!e.includes(`:`)){let t=`default:`+e;h.share[t]===void 0&&(h.share[t]=h.share[e])}var g={},_=Array.isArray(`default`)?`default`:[`default`],v=`default`,y=`SmartcontrolSet`,b=[[`react`],[`react/jsx-runtime`,`react-dom`],[`@mui/material`],[`@mui/icons-material`],[`@iobroker/gui-components`],[`@iobroker/json-config`]],x,S;async function C(e){for(let t=0;;t++)try{return await e()}catch(e){throw e}}var w=Symbol(`mf.originalSharedProvider`),T={emit:e=>e},E=e=>Array.isArray(e.scope)?e.scope:[e.scope||`default`],D=(e,t)=>{if(t!==`version-first`)return e;let n={};for(let[t,r]of Object.entries(e))n[t]=Object.assign({},r,{[w]:r});return n},O=(e,t)=>{if(!t)return;let n=Object.entries(e||{}),r=n.find(([,e])=>e===t);if(r)return{version:r[0],provider:t,registered:!0};if(typeof t.version==`string`&&t.version)return{version:t.version,provider:t,registered:!1};let i=n.filter(([,e])=>e===t||!!(t.from&&(e==null?void 0:e.from)===t.from));if(i.length===1)return{version:i[0][0],provider:t,registered:!1}},k=(e,n,r,i)=>{var a;if(!e||!r)return;let o=Object.fromEntries(Object.entries(e).filter(([,e])=>{var t;return(e==null||(t=e.shareConfig)==null?void 0:t.import)!==!1}));if(Object.keys(o).length===0)return;let s=E(r),c=D(o,i),l={};for(let e of s)l[e||`default`]={[n]:c};let u=(a=t.getRegisteredShare(l,n,{...r,scope:s,strategy:i},T))==null?void 0:a.shared;return(u==null?void 0:u[w])||u},A=(e,t,n,r)=>{var i;let a=e=>j(e,n),o=Object.fromEntries(Object.entries(e||{}).filter(([,e])=>{var t;return!a(e)&&(e==null||(t=e.shareConfig)==null?void 0:t.import)!==!1}));n!=null&&n.version&&((i=n.shareConfig)==null?void 0:i.import)!==!1&&(o[n.version]||(o[n.version]=n));let s=k(o,t,n,r);return a(s)?void 0:s},j=(e,t)=>e===t||!!(t!=null&&t.from&&(e==null?void 0:e.from)===t.from),M=(e,t,n,r,i,a,o,s,c)=>{var l,u;if(c!==`version-first`||!s)return;let d=t==null||(l=t.options)==null||(l=l.shared)==null?void 0:l[i],f=Array.isArray(d)?d.find(e=>(e==null?void 0:e.version)===a):void 0,p=((s==null?void 0:s.from)===(t==null||(u=t.options)==null?void 0:u.name)?s:void 0)||(j(f,s)?f:t?void 0:s);if(!p)return;let m=e.some(e=>{var i,a;return e!==t&&(e==null||(i=e.options)==null?void 0:i.name)===(o==null?void 0:o.from)&&(e==null||(a=e.shareScopeMap)==null?void 0:a[r])===n});if(!(m&&(o!=null&&o.loaded||typeof(o==null?void 0:o.lib)==`function`)))return m?p:void 0},ee=(e,t,n,r,i,a,o,s,c)=>{let l=a.registered?M(e,t,n,r,i,a.version,a.provider,s,c):void 0,u=l||o;if(u&&(!a.registered||j(u,s)))return{provider:u,scopeRootProvider:l}};async function N(){return x||=C(()=>n(()=>import(`./assets/_virtual_mf-localSharedImportMap___mfe_internal__SmartcontrolSet__mf_owner__1-C9SdP7_s.js`),[],import.meta.url)).catch(e=>{throw x=void 0,e}),x}async function P(){return c}var F=0,I=Promise.resolve(),L=()=>{};async function R(t={},n=[],r={}){F++===0&&(I=new Promise(e=>L=e));try{var i,a;let r=function(e,t,n,r){let i=(Array.isArray(r)?r[0]:r)||`default`,a=t||!n?e:e+`@`+n,o={canonical:i+`:`+a};return i==="default"&&(o.aliases=[a]),o},D=(e,t)=>{let n=e[t.canonical];if(n!==void 0)return n;let r=t.aliases||[];for(let n of r){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let r=e[n];if(r!==void 0)return e[t.canonical]=r,r}},M=Symbol.for(`module-federation.shared-cache-listeners`),P=Symbol.for(`module-federation.shared-cache-owners`),F=e=>{let t=e[P];return t===void 0&&(t=Object.create(null),Object.defineProperty(e,P,{value:t,enumerable:!1,configurable:!1,writable:!1})),t},I=(e,t)=>{var n;return(n=e[P])==null?void 0:n[t.canonical]},L=e=>{let t=[e,e==null?void 0:e.default];for(let e of t)if(e&&typeof e==`object`){for(let t of[`__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE`,`__TEST_INTERNALS`,`__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED`]){let n=e[t];if(n&&typeof n==`object`)return{internals:n}}if(typeof e.useState==`function`)return{hook:e.useState}}},R=(e,t)=>{if(e===t)return!0;let n=L(e),r=L(t);if(!n||!r)return!1;let i=n.internals,a=r.internals;return i!==void 0||a!==void 0?i!==void 0&&i===a:typeof n.hook==`function`&&n.hook===r.hook},z=(e,t,n,r)=>{var i;let a=D(e,t);if(a!==void 0&&R(a,n))return n;e[t.canonical]=n;let o=t.aliases||[];for(let t of o)Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0});let s=e[P];r===void 0?s&&delete s[t.canonical]:F(e)[t.canonical]=r;let c=(i=e[M])==null?void 0:i[t.canonical];if(c)for(let e of c)e(n);return n},B=Symbol.for(`module-federation.tree-shaking-shared-cache`),te=e=>{let t=e[B];return t===void 0&&(t=Object.create(null),Object.defineProperty(e,B,{value:t,enumerable:!1,configurable:!1,writable:!1})),t},ne=(e,t,n,r)=>{if(!Array.isArray(n))return r;let i=[...new Set(n)].sort(),a=te(e),o=a[t.canonical]||=[],s=o.find(e=>e.providedExports.length===i.length&&e.providedExports.every((e,t)=>e===i[t]));return s?s.value=r:o.push({providedExports:i,value:r}),r},V=Symbol.for(`module-federation.tree-shaking-shared-selection-cache`),re=e=>{let t=e[V];return t===void 0&&(t=Object.create(null),Object.defineProperty(e,V,{value:t,enumerable:!1,configurable:!1,writable:!1})),t},H=(e,t,n)=>{var r;let i=D(e,t);return i===void 0?(r=e[V])==null||(r=r[t.canonical])==null?void 0:r[n]:i},ie=(e,t,n,r)=>{let i=re(e),a=i[t.canonical]||=Object.create(null);return a[n]=r,r},U=((i=globalThis.__FEDERATION__)==null?void 0:i.__INSTANCES__)||[],ae=(a=n.find(e=>e==null?void 0:e.from))==null?void 0:a.from,oe=U.find(e=>{var n,r;return(e==null||(n=e.options)==null?void 0:n.name)===ae&&(e==null||(r=e.shareScopeMap)==null?void 0:r.default)===t})||U.find(e=>{var n,r;return(e==null||(n=e.options)==null?void 0:n.name)!==y&&(e==null||(r=e.shareScopeMap)==null?void 0:r.default)===t}),se=Object.create(null),ce=e=>{let t=Object.create(null);for(let[n,r]of Object.entries(e||{}))t[n]=Object.assign(Object.create(null),r);return t},le=(e,t)=>{var n;for(let[i,a]of Object.entries(((n=Y.shareScopeMap)==null?void 0:n[e])||{}))for(let[e,n]of Object.entries(a||{})){var r;if(!n||n.get===((r=G[i])==null?void 0:r.get))continue;let a=t[i]||={};a[e]===void 0&&(a[e]=n)}},ue=(e,t)=>{le(e,t);let n=!oe&&Object.values(t||{}).some(e=>Object.values(e||{}).some(K)),r=n?ce(t):t;return se[e]={host:t,runtime:r,isWebpackScope:n},r},de=()=>{let e=Object.values(se).filter(({isWebpackScope:e})=>e);if(e.length!==0)for(let{host:t,runtime:n}of e)for(let[e,r]of Object.entries(t||{})){let t=n[e]||=Object.create(null);for(let[e,n]of Object.entries(r||{}))t[e]=n}},W=Object.create(null);for(let[e,n]of Object.entries(t)){let t=W[e]=Object.create(null);for(let[e,r]of Object.entries(n))t[e]=Object.assign({},r)}let{usedShared:G,usedRemotes:fe}=await N();function K(e){if(typeof(e==null?void 0:e.get)!=`function`)return!1;let t=Function.prototype.toString.call(e.get);return t.includes(`__webpack_require__`)||/\.\s*e\s*\([^)]*\)\s*\.then\s*\(/.test(t)}let pe=Object.values(W).some(e=>Object.values(e||{}).some(K)),me=e=>{let t=e.split(`/`);return e.startsWith(`@`)?t.slice(0,2).join(`/`):t[0]},q=(e,n,r,i)=>{if(typeof A!=`function`)return;let a=me(e),o=!i||a===e?[[e,n]]:[[e,n],[a,G[a]]];for(let[n,i]of o){if(!i)continue;let a=A(r?n===e?r:W[n]:W[n]??t[n],n,i,`version-first`);if(a)return a}},he=(e,t,n)=>{let r=q(e,t,n,!0);return r&&K(r)&&!r.lib&&!r.loaded?r:void 0};var o=g[v];if(o||=g[v]={from:y},n.indexOf(o)>=0)return;n.push(o);let ge=e=>{let t=e;for(let e=0;e<5;e++){let e=t==null?void 0:t.default;if(!e||typeof e!=`object`||Object.keys(e).length===0)break;let n=Object.getPrototypeOf(e);if(n!==null&&n!==Object.prototype)break;let r=Object.keys(t).filter(e=>e!=="default").map(e=>t[e]);if(r.length>0&&r.some(e=>e!==void 0))break;t=e}return t},_e=[],ve=globalThis.window===void 0?await Promise.all([]):[],J=`__mf_vite_runtime_share_load_id__`,ye=0,be=new Map,xe=new Map,Y=e({name:y,remotes:fe,shared:G,plugins:[Se(),Ce(),..._e,...ve],shareStrategy:`version-first`});Y.initShareScopeMap(`default`,ue(`default`,t));function Se(){return{name:`vite-share-pin-lifecycle-plugin`,resolveShare(e){var t;let n=(t=e.shareInfo)==null?void 0:t[J],r=n===void 0?void 0:xe.get(n);if(!r)return e;let i=e.resolver;return e.resolver=(...e)=>(r.pinned.reapply(),i(...e)),r.pinned.reveal(),e}}}function Ce(){return{name:`vite-real-name-snapshot-plugin`,afterLoadSnapshot(e){let t=e&&e.remoteSnapshot,n=t&&t.globalName,r=t&&t.version;if(!n||!r||!t.remoteEntry)return e;let i=globalThis.__FEDERATION__&&globalThis.__FEDERATION__.moduleInfo,a=n+`:`+r;return i&&!i[a]&&(i[a]=t),e}}}let we=Y.sharedHandler.hooks.lifecycle.resolveShare;if(!Y.__mfKeepAdoptedProviders){var s,c;Y.__mfKeepAdoptedProviders=!0,(s=Y.sharedHandler)==null||(s=s.hooks)==null||(s=s.lifecycle)==null||(s=s.afterRegisterShare)==null||(c=s.on)==null||c.call(s,e=>{var t,n,r;let{shared:i,previousShared:a,registeredShared:o}=e||{},s=(t=Y.shareScopeMap)==null||(t=t[e.scope])==null?void 0:t[e.pkgName];if(i&&s){if(((n=i.shareConfig)==null?void 0:n.import)!==!1){var c;o!==i&&(o==null||(c=o.shareConfig)==null?void 0:c.import)===!1&&!o.loaded&&s[i.version]===o&&(s[i.version]=i)}else o===i&&a&&((r=a.shareConfig)==null?void 0:r.import)!==!1&&s[i.version]===i&&(s[i.version]=a)}})}let X=new WeakMap;we.on(e=>{var t;let n=(t=e.shareInfo)==null?void 0:t[J],r=e.resolver;return typeof r==`function`&&(e.resolver=(...t)=>{var i;let a=r(...t);if((a==null||(i=a.shared)==null||(i=i.shareConfig)==null?void 0:i.import)===!1&&typeof k==`function`&&G[e.pkgName]){var o,s;let t=k((o=e.shareScopeMap)==null||(o=o[e.scope])==null?void 0:o[e.pkgName],e.pkgName,G[e.pkgName],`version-first`);t&&((s=t.shareConfig)==null?void 0:s.import)!==!1&&(a={shared:t,useTreesShaking:a.useTreesShaking})}let c=a==null?void 0:a.shared;return c&&(typeof c==`object`||typeof c==`function`)&&!X.has(c)&&X.set(c,{from:c.from}),n!==void 0&&c&&be.set(n,c),a}),e});let Te=(e,t,n,r)=>{if(!e||e[t]!==n)return;let i=Object.assign({},r,{version:r.version??t,scope:r.scope??(n==null?void 0:n.scope)??[`default`],strategy:`loaded-first`}),a=r.from;e[t]=i;let o=()=>n===void 0?e[t]===void 0:e[t]===n;return{provider:i,reveal(){return e[t]===i&&(n===void 0?delete e[t]:e[t]=n,!0)},reapply(){return o()?(e[t]=i,!0):!1},release(s,c=!0){return r.from=a,e[t]===i?c?s?(i.from=a,s&&i.lib&&(i.loaded=!0),r.strategy===void 0?delete i.strategy:i.strategy=r.strategy,!0):(n===void 0?delete e[t]:e[t]=n,!1):(n===void 0?delete e[t]:e[t]=n,!0):!c&&o()}}},Ee=e=>Object.entries(e||{}).map(([e,t])=>({provider:t,version:e,from:t.from,registered:!0})),De=(e,t)=>{if(t===void 0)return;let n;for(let r of e){let e=r.provider,i=e.treeShaking||e;if(r.loadedFactory===t||e.lib===t||i.lib===t){if(n)return;n=r}}return n},Oe=async(e,t,n)=>{let r=++ye;xe.set(r,{pinned:n});try{let n=await Y.loadShare(e,{customShareInfo:{shareConfig:t,[J]:r}});return{factory:n===!1?void 0:n,selectedProvider:be.get(r)}}finally{be.delete(r),xe.delete(r)}},ke=async(e,t,n,r,i,a,o=!0)=>{let s=a.from,c=Te(n,r,i,a);if(!c)return;let l;try{l=await Oe(e,t,c)}catch(e){throw c.release(!1),e}let u=l==null?void 0:l.factory;if(u===void 0){c.release(!1);return}let d=Ee(n),f=c.provider.treeShaking||c.provider,p=c.provider.lib===u||f.lib===u;if(!o&&p){let e=d.findIndex(e=>e.provider===c.provider);e!==-1&&d.splice(e,1)}!o&&!d.some(e=>e.provider===a)&&d.push({provider:a,version:r,from:s,registered:!1,loadedFactory:p?u:void 0});let m=!o&&l.selectedProvider===c.provider&&p?a:l.selectedProvider;if(m&&!d.some(e=>e.provider===m)){let e=X.get(m),t=typeof m.version==`string`&&m.version?m.version:r;d.push({provider:m,version:t,from:e?e.from:m.from,registered:(n==null?void 0:n[t])===m,loadedFactory:u})}let h=d.find(e=>e.provider===m)??De(d,u);if(!c.release(!0,(h==null?void 0:h.provider)===c.provider)||!h)return;let g=X.get(h.provider);h.from=h.provider===a?s:g?g.from:h.provider.from,g&&(h.provider.from=g.from);let _=typeof u==`function`?u():u,v=await Promise.resolve(_);if(!(h.registered&&(n==null?void 0:n[h.version])!==h.provider))return{provider:h.provider,selection:h,resolved:v}},Ae=new Set,je=new Map,Me=async(e,n,i)=>{var a;let o=!!((a=n.shareConfig)!=null&&a.singleton);if(!o&&n.canLiveRebind!==!1)try{var s,c;let a=A(i,e,n,`version-first`),l=O(i,a);if(!l||((s=n.shareConfig)==null?void 0:s.import)===!1&&j(a,n)||(a==null||(c=a.shareConfig)==null?void 0:c.import)===!1)return;let{version:u}=l;if(!o&&u!==n.version||!a.lib&&!a.loading&&!(a.loaded&&typeof a.get==`function`))return;let d=r(e,o,n.version,n.scope);if(D(h.share,d)!==void 0)return;let f=t[e],p=f==null?void 0:f[u];if(l.registered&&!j(p,a))return;let m,g=a.lib;if(!g&&K(a)||(!g&&a.loading&&(g=await a.loading),!g&&a.loaded&&typeof a.get==`function`&&(g=await a.get()),!g))return;let _=typeof g==`function`?g():g,v=await Promise.resolve(_),y=l.registered?p:a;m={provider:y,selection:{provider:y,version:u,from:a.from,registered:l.registered},resolved:v};let b=m==null?void 0:m.provider,x=m==null?void 0:m.selection;if(!x)return;let S=m==null?void 0:m.resolved;if(S===void 0||D(h.share,d)!==void 0||x.registered&&(f==null?void 0:f[x.version])!==b)return;z(h.share,d,ge(S),x.from),Ae.add(b)}catch(t){console.error(`[Module Federation] Failed to bridge materialized shared module "`+e+`"`,t)}},Ne=async(e,n,i,a,o)=>{try{var s,c,l,u;let d=r(e,(s=n.shareConfig)==null?void 0:s.singleton,n.version,n.scope),f=D(h.share,d),p=I(h.share,d),m=A(i,e,n,`version-first`),g=m||k(i,e,n,`version-first`)||n,_=O(i,g);if(!_)return;let v=j(g,n),{version:b}=_;if(!((c=n.shareConfig)!=null&&c.singleton)&&b!==n.version)return;let x=a==null?void 0:a[b],S=ee(U,oe,t,`default`,e,_,m,x,`version-first`);if(!S&&!v)return;let{provider:C,scopeRootProvider:w}=S||{provider:g,scopeRootProvider:void 0};if(n.canLiveRebind===!1||((l=n.shareConfig)==null?void 0:l.import)===!1&&j(C,n)||(C==null||(u=C.shareConfig)==null?void 0:u.import)===!1||f!==void 0&&p!==y)return;let T=t[e],E=T==null?void 0:T[b];if(_.registered&&!w&&!j(E,C))return;let M=await ke(e,n.shareConfig,T,b,E,C,_.registered&&!v),N=M==null?void 0:M.provider,P=M==null?void 0:M.selection;if(!P||o&&(o.version!==P.version||!j({from:P.from},o.provider))||Ae.has(N))return;let F=M==null?void 0:M.resolved;if(F===void 0)return;let L=D(h.share,d),R=I(h.share,d);if(L!==void 0&&R!==y||P.registered&&(T==null?void 0:T[P.version])!==N)return;!o&&!j(N,n)&&je.set(e,{version:P.version,provider:{from:P.from}}),Ae.add(N);let B=ge(F);z(h.share,d,B,P.from)}catch(t){console.error(`[Module Federation] Failed to bridge external shared module "`+e+`"`,t)}};for(let e of b)await Promise.all(e.map(async e=>{let t=G[e];t&&t.materialize!==!1&&!t.treeShaking&&await Me(e,t,W[e])}));for(let[e,t]of Object.entries(G)){var l;if(t.treeShaking)continue;let n=r(e,(l=t.shareConfig)==null?void 0:l.singleton,t.version,t.scope);if(D(h.share,n)!==void 0)continue;let i=r(e,!0,t.version,t.scope),a=D(h.share,i);a!==void 0&&z(h.share,n,a,I(h.share,i))}let Pe=[`react`,`react/jsx-runtime`,`react-dom`,`@mui/material`,`@mui/icons-material`,`@iobroker/gui-components`,`@iobroker/json-config`],Fe=new Set([]),Ie=[[`react`],[`react/jsx-runtime`,`react-dom`],[`@mui/material`],[`@mui/icons-material`],[`@iobroker/gui-components`],[`@iobroker/json-config`]],Z=new Map(Pe.map((e,t)=>[e,t])),Le={1:[0],2:[0],3:[0,2],4:[3,0],5:[0,2,4,3],6:[5,4,3,0,2]},Q=Pe.filter(e=>{var t;return G[e]&&(G[e].materialize!==!1||((t=G[e].shareConfig)==null?void 0:t.import)===!1&&!G[e].lazy)});h.providerInit||=new Map;let Re=(e,t)=>{let n=h.providerInit.get(e);if(n)return n;let r=Promise.resolve().then(t);return h.providerInit.set(e,r),r.catch(()=>h.providerInit.delete(e)),r};var f=async e=>{let t=new Set(e),n=new Set;for(let e of Ie)await Promise.all(e.filter(e=>t.has(e)).map(async e=>{var t,i,a;let o=G[e],s=Z.get(e);if((Le[s]||[]).some(e=>n.has(e))){n.add(s);return}let c=r(e,(t=o.shareConfig)==null?void 0:t.singleton,o.version,o.scope);if(((i=o.shareConfig)==null?void 0:i.import)===!1||o.treeShaking||D(h.share,c)!==void 0)return;let l=r(e,!0,o.version,o.scope),u=D(h.share,l);if(u!==void 0){z(h.share,c,u,I(h.share,l));return}let d=typeof q==`function`?q(e,o):void 0;if(d){var f,p,m;let t=d.lib;if(!t&&d.loading&&(t=await d.loading),!t&&d.loaded&&typeof d.get==`function`&&(t=await d.get()),t){let e=typeof t==`function`?t():t,n=await Promise.resolve(e);z(h.share,c,(e=>{let t=e;for(let e=0;e<5;e++){let e=t==null?void 0:t.default;if(!e||typeof e!=`object`||Object.keys(e).length===0)break;let n=Object.getPrototypeOf(e);if(n!==null&&n!==Object.prototype)break;let r=Object.keys(t).filter(e=>e!=="default").map(e=>t[e]);if(r.length>0&&r.some(e=>e!==void 0))break;t=e}return t})(n),d.from);return}if(!((f=o.shareConfig)!=null&&f.singleton)&&typeof d.version==`string`){let t=D(h.share,r(e,!1,d.version,o.scope));if(t!==void 0){z(h.share,c,t,d.from);return}}if(typeof K==`function`&&K(d)&&((p=o.shareConfig)!=null&&p.singleton||((m=O(W[e],d))==null?void 0:m.version)===o.version)){n.add(s);return}}let g=c.canonical,_=await Re(g,async()=>{let e=await o.get(),t=typeof e==`function`?e():e;return Promise.resolve(t)});for(let t of((a=Y.options.shared)==null?void 0:a[e])||[])t.get===o.get&&(t.eager=!0);let v=(e=>{let t=e;for(let e=0;e<5;e++){let e=t==null?void 0:t.default;if(!e||typeof e!=`object`||Object.keys(e).length===0)break;let n=Object.getPrototypeOf(e);if(n!==null&&n!==Object.prototype)break;let r=Object.keys(t).filter(e=>e!=="default").map(e=>t[e]);if(r.length>0&&r.some(e=>e!==void 0))break;t=e}return t})(_),b=v===_?{..._}:v;b.__esModule!==!0&&Object.defineProperty(b,"__esModule",{value:!0,enumerable:!1}),D(h.share,c)===void 0&&z(h.share,c,b,y)}))};let $=e=>{var t,n;let i=G[e];if(!i.treeShaking&&((t=i.shareConfig)==null?void 0:t.import)!==!1)return!1;let a=r(e,(n=i.shareConfig)==null?void 0:n.singleton,i.version,i.scope);return i.treeShaking?H(h.share,a,y)===void 0&&D(h.share,a)===void 0:D(h.share,a)===void 0},ze=e=>{var t,n,i;let a=G[e],o=r(e,(t=a.shareConfig)==null?void 0:t.singleton,a.version,a.scope);return(a.treeShaking?H(h.share,o,y)??D(h.share,o):D(h.share,o))===void 0?a.treeShaking||((n=a.shareConfig)==null?void 0:n.import)===!1||Fe.has(e)&&(i=a.shareConfig)!=null&&i.singleton?!0:typeof A==`function`&&!!A(W[e],e,a,`version-first`):!1},Be=e=>{let t=!0;for(;t;){t=!1;for(let n of Q){let r=Z.get(n);e.has(r)||(Le[r]||[]).some(t=>e.has(t))&&(e.add(r),t=!0)}}return e},Ve=Be(new Set(Q.filter(ze).map(e=>Z.get(e)))),He=Q.filter(e=>!Ve.has(Z.get(e)));var m=Q.filter(e=>Ve.has(Z.get(e)));await f(He).catch(p);let Ue=new Set;for(let e of m){var x,w;let t=G[e],n=Le[Z.get(e)];if(!n||t.treeShaking||((x=t.shareConfig)==null?void 0:x.import)===!1)continue;let r=t.get,i=(((w=Y.options.shared)==null?void 0:w[e])||[]).filter(e=>e.get===r);t.get=()=>Ue.has(e)?r():(Ue.add(e),f(Q.filter(e=>n.includes(Z.get(e)))).then(r));for(let e of i)e.get=t.get}try{await C(async()=>{await Promise.all(await Y.initializeSharing(`default`,{strategy:`version-first`,from:`build`,initScope:n}))})}catch(e){console.error(`[Module Federation]`,e)}de();let We=async()=>{for(let e of b)await Promise.all(e.map(async e=>{let n=G[e];n&&n.materialize!==!1&&!n.treeShaking&&await Ne(e,n,t[e],W[e],void 0)}))};pe?S=We:await We();try{var T;let e=(T=globalThis.__FEDERATION__)==null?void 0:T.__SHARE__,t=Object.create(null);if(e)for(let[,n]of Object.entries(e))for(let e of _){let r=n==null?void 0:n[e];if(r)for(let[e,n]of Object.entries(r)){let r=G==null?void 0:G[e],i=W[e],a=je.get(e);if(!r||!i||!a||r.treeShaking)continue;let o=t[e]||(t[e]=Object.create(null));for(let[e,t]of Object.entries(n)){if(!t.lib||a.version!==e||!j(t,a.provider))continue;let n=i[e];(t===n||n!=null&&n.from&&t.from===n.from)&&(t===r||r.from&&t.from===r.from||o[e]===void 0&&(o[e]=t))}}}for(let e of b)await Promise.all(e.map(async e=>{let n=t[e];n&&await Ne(e,G[e],n,W[e],je.get(e))}))}catch(e){console.error(`[Module Federation] Failed to bridge external shared modules`,e)}let Ge=async()=>{},Ke=async(e,n)=>{var i,a;let o=r(e,(i=n.shareConfig)==null?void 0:i.singleton,n.version,n.scope),s=n.treeShaking?H(h.share,o,y):D(h.share,o);if(((a=n.shareConfig)==null?void 0:a.import)!==!1||s!==void 0||he(e,n,W[e]))return;let c=e=>{let t=e;for(let e=0;e<5;e++){let e=t==null?void 0:t.default;if(!e||typeof e!=`object`||Object.keys(e).length===0)break;let n=Object.getPrototypeOf(e);if(n!==null&&n!==Object.prototype)break;let r=Object.keys(t).filter(e=>e!=="default").map(e=>t[e]);if(r.length>0&&r.some(e=>e!==void 0))break;t=e}return t},l=t==null?void 0:t[e],u=k(l,e,n,`version-first`)||n,d=O(l,u);if(!d)return;let f=e=>{var t;return e===n||(e==null||(t=e.shareConfig)==null?void 0:t.import)===!1};if(f(u))return;let{version:p}=d,m=l==null?void 0:l[p],g=await ke(e,n.shareConfig,l,p,m,u,d.registered),_=g==null?void 0:g.selection,v=g==null?void 0:g.provider,b=g==null?void 0:g.resolved;if(!_||f(v)||b===void 0||(n.treeShaking?H(h.share,o,y):D(h.share,o))!==void 0||_.registered&&(l==null?void 0:l[_.version])!==v)return;let x=c(b);if(n.treeShaking){let e=n.treeShaking.providedExports??n.treeShaking.usedExports??[];ne(h.share,o,e,x),ie(h.share,o,y,x)}else z(h.share,o,x,_.from)},qe=[],Je=new Set;for(let e of m){let t=G[e],n=Z.get(e);if($(e))try{var E;t.treeShaking?await Ge(e,t):((E=t.shareConfig)==null?void 0:E.import)===!1&&await Ke(e,t)}catch(t){console.error(`[Module Federation] Failed to resolve runtime-only shared module "${e}"`,t)}$(e)&&Je.add(n)}Be(Je),qe.push(...m.filter(e=>!Je.has(Z.get(e)))),await f(qe).catch(p);let Ye=new Map;return u.loadLazyShares=async e=>{let n=new Set(e);for(let e of b)await Promise.all(e.filter(e=>n.has(e)).map(e=>{let n=G[e];if(!n||!n.lazy||!$(e))return;let r=Ye.get(e);return r||(r=Ne(e,n,t[e],W[e],void 0).then(()=>$(e)?Ke(e,n):void 0),r.catch(()=>Ye.delete(e)),Ye.set(e,r)),r}))},d(Y),Y}finally{--F===0&&L()}}async function z(e){F&&await I;let t=await P();if(!(e in t))throw Error(`[Module Federation] Module ${e} does not exist in container.`);S&&await S(),h.pendingShareLoads&&await Promise.all(h.pendingShareLoads);let n=await t[e]();return h.pendingShareLoads&&await Promise.all(h.pendingShareLoads),()=>n}export{z as get,R as init};
|
|
2
|
+
if (typeof document !== 'undefined' && document.head) {
|
|
3
|
+
try {
|
|
4
|
+
for (const __mfWarmupPath of ["assets/_virtual_mf-localSharedImportMap___mfe_internal__SmartcontrolSet__mf_owner__1-C9SdP7_s.js","assets/dist-Cnxr-ruU.js","assets/vite-preload-helper-nldAWQd6.js","assets/utils-DmVoYT7i.js"]) {
|
|
5
|
+
const __mfWarmupLink = document.createElement('link');
|
|
6
|
+
__mfWarmupLink.rel = 'modulepreload';
|
|
7
|
+
__mfWarmupLink.crossOrigin = '';
|
|
8
|
+
__mfWarmupLink.href = new URL(__mfWarmupPath, import.meta.url).href;
|
|
9
|
+
document.head.appendChild(__mfWarmupLink);
|
|
10
|
+
}
|
|
11
|
+
} catch (__mfWarmupError) {}
|
|
12
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"sc_verify": "Konfiguration prüfen",
|
|
3
|
+
"sc_verify_ok": "Konfiguration ist gültig.",
|
|
4
|
+
"sc_verify_fail": "Konfiguration hat Fehler — Speichern bleibt gesperrt, bis die Prüfung grün ist.",
|
|
5
|
+
"sc_verify_before_save": "Vor dem Speichern die Konfiguration prüfen (Instanz muss laufen).",
|
|
6
|
+
"sc_verify_need_alive": "Die Adapter-Instanz muss laufen, damit die Prüfung geht.",
|
|
7
|
+
"sc_add_zone": "Zone hinzufügen",
|
|
8
|
+
"sc_delete_zone": "Zone löschen",
|
|
9
|
+
"sc_copy_zone": "Zone kopieren",
|
|
10
|
+
"sc_zone_up": "Zone nach oben",
|
|
11
|
+
"sc_zone_down": "Zone nach unten",
|
|
12
|
+
"sc_zone_drag": "Zone per Ziehen verschieben (Maus). Am Touch-Display die Pfeile nutzen.",
|
|
13
|
+
"sc_zone": "Zone",
|
|
14
|
+
"sc_active": "Aktiv",
|
|
15
|
+
"sc_name": "Name",
|
|
16
|
+
"sc_triggers": "Auslöser",
|
|
17
|
+
"sc_targets": "Zielgeräte",
|
|
18
|
+
"sc_onAfter": "Verzögerung vor AN (s)",
|
|
19
|
+
"sc_recheck": "Nach Verzögerung erneut prüfen",
|
|
20
|
+
"sc_offAfter": "AUS nach (s)",
|
|
21
|
+
"sc_neverOff": "Nie ausschalten wenn…",
|
|
22
|
+
"sc_allMustMatch": "Alle gewählten müssen zutreffen (UND)",
|
|
23
|
+
"sc_executeAlways": "Immer ausführen (keine Zeitfenster)",
|
|
24
|
+
"sc_infoText": "Kommentar",
|
|
25
|
+
"sc_execution": "Zeitfenster",
|
|
26
|
+
"sc_add_window": "Zeitfenster hinzufügen",
|
|
27
|
+
"sc_overwrite": "Pro Zielgerät (optional)",
|
|
28
|
+
"sc_overwrite_val": "AN-Wert nur dieses Gerät",
|
|
29
|
+
"sc_overwrite_delay": "extra Verzögerung nur dieses Gerät (s)",
|
|
30
|
+
"sc_overwrite_hint": "Leer = wie unter 1. Zielgeräte. Gilt nur für dieses Gerät in dieser Zone.",
|
|
31
|
+
"sc_zone_delays": "Für die ganze Zone",
|
|
32
|
+
"sc_no_names": "In den anderen Tabs steht noch nichts — zuerst Geräte/Auslöser anlegen.",
|
|
33
|
+
"sc_exec_hint": "Ohne „Immer ausführen“ braucht die Zone mindestens ein aktives Zeitfenster, sonst läuft sie nie.",
|
|
34
|
+
"sc_start": "Start",
|
|
35
|
+
"sc_end": "Ende",
|
|
36
|
+
"sc_additional_conditions": "Zusätzliche Bedingungen",
|
|
37
|
+
"sc_never_on": "Nie einschalten wenn…",
|
|
38
|
+
"sc_day_mon": "Mo",
|
|
39
|
+
"sc_day_tue": "Di",
|
|
40
|
+
"sc_day_wed": "Mi",
|
|
41
|
+
"sc_day_thu": "Do",
|
|
42
|
+
"sc_day_fri": "Fr",
|
|
43
|
+
"sc_day_sat": "Sa",
|
|
44
|
+
"sc_day_sun": "So",
|
|
45
|
+
"sc_pick_names": "Auswählen…",
|
|
46
|
+
"sc_enum_fail": "Aufzählungen konnten nicht aus ioBroker geladen werden.",
|
|
47
|
+
"sc_enum_rooms": "Räume",
|
|
48
|
+
"sc_enum_function": "Funktion",
|
|
49
|
+
"sc_tab_changed": "Auf diesem Tab gibt es ungespeicherte Änderungen.",
|
|
50
|
+
"sc_help": "Hilfe",
|
|
51
|
+
"sc_help_missing": "Hilfetext konnte nicht geladen werden.",
|
|
52
|
+
"sc_help_zones": "Hilfe: Zonen",
|
|
53
|
+
"sc_help_execution": "Hilfe: Zeitfenster",
|
|
54
|
+
"sc_help_overwrite": "Hilfe: Zielgeräte überschreiben",
|
|
55
|
+
"sc_userstate_under": "State unter",
|
|
56
|
+
"sc_userstate_auto": " (wird automatisch angelegt)",
|
|
57
|
+
"sc_userstate_placeholder": "Kurzname",
|
|
58
|
+
"sc_userstate_short": "Nur den kurzen Namen, keine Objekt-ID."
|
|
59
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"sc_verify": "Check configuration",
|
|
3
|
+
"sc_verify_ok": "Configuration is valid.",
|
|
4
|
+
"sc_verify_fail": "Configuration has errors — save stays locked until the check is green.",
|
|
5
|
+
"sc_verify_before_save": "Check the configuration before saving (instance must be running).",
|
|
6
|
+
"sc_verify_need_alive": "Adapter instance must be running for the check.",
|
|
7
|
+
"sc_add_zone": "Add zone",
|
|
8
|
+
"sc_delete_zone": "Delete zone",
|
|
9
|
+
"sc_copy_zone": "Copy zone",
|
|
10
|
+
"sc_zone_up": "Move zone up",
|
|
11
|
+
"sc_zone_down": "Move zone down",
|
|
12
|
+
"sc_zone_drag": "Drag to reorder (mouse). On touch use the arrows.",
|
|
13
|
+
"sc_zone": "Zone",
|
|
14
|
+
"sc_active": "Active",
|
|
15
|
+
"sc_name": "Name",
|
|
16
|
+
"sc_triggers": "Triggers",
|
|
17
|
+
"sc_targets": "Target devices",
|
|
18
|
+
"sc_onAfter": "Delay before ON (s)",
|
|
19
|
+
"sc_recheck": "Recheck after delay",
|
|
20
|
+
"sc_offAfter": "OFF after (s)",
|
|
21
|
+
"sc_neverOff": "Never switch off if…",
|
|
22
|
+
"sc_allMustMatch": "All selected must match (AND)",
|
|
23
|
+
"sc_executeAlways": "Always execute (ignore time windows)",
|
|
24
|
+
"sc_infoText": "Comment",
|
|
25
|
+
"sc_execution": "Time windows",
|
|
26
|
+
"sc_add_window": "Add time window",
|
|
27
|
+
"sc_overwrite": "Per target (optional)",
|
|
28
|
+
"sc_overwrite_val": "ON value for this device only",
|
|
29
|
+
"sc_overwrite_delay": "extra delay for this device only (s)",
|
|
30
|
+
"sc_overwrite_hint": "Empty = same as in 1. Target devices. Applies only to this device in this zone.",
|
|
31
|
+
"sc_zone_delays": "For the whole zone",
|
|
32
|
+
"sc_no_names": "Nothing in the other tabs yet — add devices/triggers first.",
|
|
33
|
+
"sc_exec_hint": "Without “Always execute” at least one active time window is required, otherwise the zone never runs.",
|
|
34
|
+
"sc_start": "Start",
|
|
35
|
+
"sc_end": "End",
|
|
36
|
+
"sc_additional_conditions": "Additional conditions",
|
|
37
|
+
"sc_never_on": "Never switch on if…",
|
|
38
|
+
"sc_day_mon": "Mo",
|
|
39
|
+
"sc_day_tue": "Tue",
|
|
40
|
+
"sc_day_wed": "Wed",
|
|
41
|
+
"sc_day_thu": "Thu",
|
|
42
|
+
"sc_day_fri": "Fri",
|
|
43
|
+
"sc_day_sat": "Sat",
|
|
44
|
+
"sc_day_sun": "Sun",
|
|
45
|
+
"sc_pick_names": "Select…",
|
|
46
|
+
"sc_enum_fail": "Could not load enums from ioBroker.",
|
|
47
|
+
"sc_enum_rooms": "Rooms",
|
|
48
|
+
"sc_enum_function": "Function",
|
|
49
|
+
"sc_tab_changed": "This tab has unsaved changes.",
|
|
50
|
+
"sc_help": "Help",
|
|
51
|
+
"sc_help_missing": "Help text could not be loaded.",
|
|
52
|
+
"sc_help_zones": "Help: Zones",
|
|
53
|
+
"sc_help_execution": "Help: Time windows",
|
|
54
|
+
"sc_help_overwrite": "Help: Overwrite targets",
|
|
55
|
+
"sc_userstate_under": "State under",
|
|
56
|
+
"sc_userstate_auto": " (created automatically)",
|
|
57
|
+
"sc_userstate_placeholder": "short name",
|
|
58
|
+
"sc_userstate_short": "Short name only, not an object ID."
|
|
59
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"SmartcontrolSet","name":"SmartcontrolSet","metaData":{"name":"SmartcontrolSet","type":"app","buildInfo":{"buildVersion":"1.0.1","buildName":"SmartcontrolSet"},"remoteEntry":{"name":"customComponents.js","path":"","type":"module"},"types":{"path":"","name":"","zip":"@mf-types.zip","api":"@mf-types.d.ts"},"globalName":"SmartcontrolSet","pluginVersion":"1.25.3","publicPath":"auto"},"shared":[{"id":"SmartcontrolSet:@iobroker/gui-components","name":"@iobroker/gui-components","version":"10.4.10","singleton":true,"requiredVersion":"*","assets":{"js":{"async":["assets/_virtual_mf___mfe_internal__SmartcontrolSet__mf_owner__108197177487852__prebuild__react_mf_1_jsx_mf_2_runtime__prebuild__-BWTOCVCn.js","assets/prod-XWAlCKxB.js","assets/iconLibraryData-B5fiyl1C.js","assets/_virtual_mf___mfe_internal__SmartcontrolSet__mf_owner__108197177487852__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-Ca-6Y14s.js"],"sync":[]},"css":{"async":[],"sync":[]}}},{"id":"SmartcontrolSet:@iobroker/json-config","name":"@iobroker/json-config","version":"10.1.27","singleton":true,"requiredVersion":"*","assets":{"js":{"async":["assets/lib-CgOpGT17.js","assets/_virtual_mf___mfe_internal__SmartcontrolSet__mf_owner__108197177487852__prebuild__react_mf_1_jsx_mf_2_runtime__prebuild__-BWTOCVCn.js","assets/prod-XWAlCKxB.js","assets/iconLibraryData-B5fiyl1C.js","assets/_virtual_mf___mfe_internal__SmartcontrolSet__mf_owner__108197177487852__prebuild___mf_0_iobroker_mf_1_json_mf_2_config__prebuild__-QT6he7QZ.js"],"sync":[]},"css":{"async":[],"sync":[]}}},{"id":"SmartcontrolSet:@mui/icons-material","name":"@mui/icons-material","version":"9.6.0","singleton":true,"requiredVersion":"*","assets":{"js":{"async":["assets/_virtual_mf___mfe_internal__SmartcontrolSet__mf_owner__108197177487852__prebuild__react_mf_1_jsx_mf_2_runtime__prebuild__-BWTOCVCn.js","assets/prod-XWAlCKxB.js","assets/iconLibraryData-B5fiyl1C.js","assets/_virtual_mf___mfe_internal__SmartcontrolSet__mf_owner__108197177487852__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-Ca-6Y14s.js"],"sync":[]},"css":{"async":[],"sync":[]}}},{"id":"SmartcontrolSet:@mui/material","name":"@mui/material","version":"9.6.0","singleton":true,"requiredVersion":"*","assets":{"js":{"async":["assets/_virtual_mf___mfe_internal__SmartcontrolSet__mf_owner__108197177487852__prebuild__react_mf_1_jsx_mf_2_runtime__prebuild__-BWTOCVCn.js","assets/prod-XWAlCKxB.js","assets/iconLibraryData-B5fiyl1C.js","assets/_virtual_mf___mfe_internal__SmartcontrolSet__mf_owner__108197177487852__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-Ca-6Y14s.js"],"sync":[]},"css":{"async":[],"sync":[]}}},{"id":"SmartcontrolSet:react","name":"react","version":"19.3.1","singleton":true,"requiredVersion":"*","assets":{"js":{"async":["assets/_virtual_mf___mfe_internal__SmartcontrolSet__mf_owner__108197177487852__prebuild__react_mf_1_jsx_mf_2_runtime__prebuild__-BWTOCVCn.js","assets/prod-XWAlCKxB.js","assets/iconLibraryData-B5fiyl1C.js","assets/_virtual_mf___mfe_internal__SmartcontrolSet__mf_owner__108197177487852__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-Ca-6Y14s.js"],"sync":[]},"css":{"async":[],"sync":[]}}},{"id":"SmartcontrolSet:react-dom","name":"react-dom","version":"19.3.1","singleton":true,"requiredVersion":"*","assets":{"js":{"async":["assets/_virtual_mf___mfe_internal__SmartcontrolSet__mf_owner__108197177487852__prebuild__react_mf_1_jsx_mf_2_runtime__prebuild__-BWTOCVCn.js","assets/prod-XWAlCKxB.js","assets/iconLibraryData-B5fiyl1C.js","assets/_virtual_mf___mfe_internal__SmartcontrolSet__mf_owner__108197177487852__loadShare___mf_0_iobroker_mf_1_gui_mf_2_components__loadShare__.js-Ca-6Y14s.js"],"sync":[]},"css":{"async":[],"sync":[]}}},{"id":"SmartcontrolSet:react/jsx-runtime","name":"react/jsx-runtime","version":"19.3.1","singleton":true,"requiredVersion":"*","assets":{"js":{"async":["assets/_virtual_mf___mfe_internal__SmartcontrolSet__mf_owner__108197177487852__prebuild__react_mf_1_jsx_mf_2_runtime__prebuild__-BWTOCVCn.js"],"sync":[]},"css":{"async":[],"sync":[]}}}],"remotes":[],"exposes":[{"id":"SmartcontrolSet:Components","name":"Components","assets":{"js":{"async":["assets/_virtual_mf___mfe_internal__SmartcontrolSet__mf_owner__108197177487852__loadShare__shared-4MdeZwge.js"],"sync":["assets/dist-Cnxr-ruU.js","assets/helpers-CNHzo155.js","assets/vite-preload-helper-nldAWQd6.js","assets/utils-DmVoYT7i.js","assets/_virtual_mf-localSharedImportMap___mfe_internal__SmartcontrolSet__mf_owner__1-C9SdP7_s.js","assets/Components-CDPYnOs-.js","assets/rolldown-runtime-9C0vUP4u.js"]},"css":{"async":[],"sync":[]}},"path":"./Components"}]}
|
package/admin/doc-md/readme.txt
CHANGED
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
This folder expects Markdown files, which will be added to index_m.html by using https://github.com/zerodevx/zero-md
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
Markdown for jsonConfig HelpMd (accordion). Files: <stem>_de.md / <stem>_en.md.
|
|
2
|
+
Relative images: img/... (object-tree screenshots on the Start tab).
|
package/admin/doc-md/start_de.md
CHANGED
|
@@ -1,124 +1,69 @@
|
|
|
1
|
-
|
|
2
|
-
<details>
|
|
3
|
-
<summary style="font-size:1.3em; border:1px solid #ddd; background-color:#E0EBF3; color:black; padding:10px 0 10px 5px">Über diesen Adapter</summary> <!-- Header -->
|
|
4
|
-
<!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
|
|
1
|
+
## Über diesen Adapter
|
|
5
2
|
|
|
6
|
-
|
|
7
|
-
* Bewegungsmelder im Flur löst aus,
|
|
8
|
-
* ein Wandschalter wird gedrückt,
|
|
9
|
-
* eine bestimmte Zeit tritt ein (etwa 30 Minuten nach Sonnenuntergang oder Mo-Fr um 7:00)
|
|
3
|
+
In der Heim-Automation gibt es **Auslöser**, z. B.:
|
|
10
4
|
|
|
11
|
-
|
|
5
|
+
- Bewegungsmelder im Flur
|
|
6
|
+
- ein Wandschalter
|
|
7
|
+
- eine Uhrzeit (30 Minuten nach Sonnenuntergang, Mo–Fr 7:00)
|
|
12
8
|
|
|
13
|
-
|
|
14
|
-
Außerdem soll etwa nach ausgelöstem Bewegungungsmelder ein Timer laufen, der (sobald keine Bewegung mehr) nach der eingestellten Anzahl Sekunden die Zielgeräte wieder abschaltet.
|
|
9
|
+
Oft sollen zusätzlich **Bedingungen** (nicht) zutreffen: niemand anwesend, Feiertag, Helligkeit über 100 Lux.
|
|
15
10
|
|
|
16
|
-
|
|
11
|
+
Wenn etwas auslöst und die Bedingungen passen, werden **Zielgeräte** geschaltet. Nach einem Bewegungsmelder läuft ein Timer: ohne weitere Bewegung gehen die Ziele nach den eingestellten Sekunden wieder aus.
|
|
17
12
|
|
|
18
|
-
|
|
13
|
+
Smart Control bündelt das (IFTTT-ähnlich), damit weniger JavaScript/Blockly nötig ist.
|
|
19
14
|
|
|
20
|
-
|
|
21
|
-
<!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
|
|
15
|
+
## Reihenfolge der Reiter
|
|
22
16
|
|
|
23
|
-
|
|
24
|
-
<summary style="font-size:1.3em; border:1px solid #ddd; background-color:#E0EBF3; color:black; padding:10px 0 10px 5px">Wie am besten starten?</summary> <!-- Header -->
|
|
25
|
-
<!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
|
|
17
|
+
Oben **Konfiguration prüfen**, bevor du speicherst. Speichern bleibt gesperrt, bis die Prüfung grün ist. Die Adapter-Instanz muss laufen.
|
|
26
18
|
|
|
27
|
-
|
|
19
|
+
| Reiter | Was tun |
|
|
20
|
+
|--------|---------|
|
|
21
|
+
| **1. Zielgeräte** | Lichter, Radio usw. Einzelne Geräte, optional Aufzählungen (Enums) und URLs. [Aufzählungen](https://www.iobroker.com/docs/admin/enums.md) |
|
|
22
|
+
| **2. Bedingungen** | *Optional:* z. B. niemand anwesend, Feiertag. |
|
|
23
|
+
| **3. Auslöser** | Bewegungsmelder, Wandschalter, Zeit (Cron/Astro). |
|
|
24
|
+
| **4. Zonen** | Alles verbinden: Auslöser + Ziele + Zeitfenster. |
|
|
25
|
+
| **Weitere Optionen** | Adapter-Einstellungen. |
|
|
28
26
|
|
|
29
|
-
|
|
30
|
-
|--------|------------|
|
|
31
|
-
|1. ZIELGERÄTE | Hier trägst du all deine zu schaltenden Ziel-Geräte ein, also Lichter, Radio, usw. Du kannst dort in der ersten Tabelle einzelne Geräte anlegen, und/oder in der zweiten Tabelle auch sogenannte "Aufzählungen" (Enums) nutzen. [Link zur Dokumentation: Aufzählungen](https://www.iobroker.net/#de/documentation/admin/enums.md) |
|
|
32
|
-
|2. ZUSÄTZLICHE BEDINGUNGEN | *Optional*: Hier trägst du zusätzliche Bedingungen ein, die (nicht) zutreffen sollen, z.B.: keiner anwesend, Feiertag heute, usw. |
|
|
33
|
-
|3. AUSLÖSER |Hier trägst du Auslöser ein, also z.B. Bewegungsmelder, Wandschalter, etc., sowie ggf. zeitabhängige Auslöser (z.B. jeden Tag um 8:00 Uhr). |
|
|
34
|
-
|4. ZONEN |Hier führst du alles zusammen, in dem du alle "Zonen" definierst (z.B. Badezimmer 1.OG, Kaffeeecke, usw.) und Auslöser und zu schaltende Zielgeräte zuweist, sowie auch weitere Bedingungen zur Ausführung definierst. |
|
|
35
|
-
| WEITERE OPTIONEN | Hier kannst du weitere Adapter-Optionen einstellen. |
|
|
27
|
+
Weitere Infos stehen in den **Hilfe**-Kästen auf jedem Reiter (aufklappen).
|
|
36
28
|
|
|
37
|
-
|
|
29
|
+
Namen mit **Punkten** (`Flur.Wandschalter`) erscheinen in den Zonen-Listen als Gruppe **Flur**. Kopieren einer Zeile hängt `_1` bzw. `_Copy` an den Namen, damit er eindeutig bleibt.
|
|
38
30
|
|
|
39
|
-
|
|
31
|
+
**SC-Userstate** (Andere Auslöser): nur den **Kurznamen** eintragen. Der Adapter legt `smartcontrol.x.userstates.<Kurzname>` nach dem Speichern an.
|
|
40
32
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
### Hinweis: Auswahl-Felder (Drop-Down) in Tabellen
|
|
44
|
-
|
|
45
|
-
Auswahlfelder (Drop-Down-Menüs), die mehrere selektierbare Werte bieten, müssen "an der Seite" angeklickt werden. Dies ist ein Issue des ioBroker-Admin-Adapters, und nicht von Smart Control. [Das Issue ist gemeldet und adressiert](https://github.com/ioBroker/ioBroker.admin/issues/590) im ioBroker Admin Adapter, und wird mit dem nächsten Update kommen.
|
|
46
|
-
|
|
47
|
-

|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
<br>Einfache Abhilfe: Klicke einfach auf den blauen Button links daneben, dann bekommst du einen viel besseren Auswahl-Dialog:
|
|
51
|
-
|
|
52
|
-

|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
</details>
|
|
56
|
-
<!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
|
|
57
|
-
|
|
58
|
-
<details>
|
|
59
|
-
<summary style="font-size:1.3em; border:1px solid #ddd; background-color:#E0EBF3; color:black; padding:10px 0 10px 5px">Adapter-Datenpunkte</summary> <!-- Header -->
|
|
60
|
-
<!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
|
|
33
|
+
## Adapter-Datenpunkte
|
|
61
34
|
|
|
62
35
|
### smartcontrol.x.info.astroTimes
|
|
63
36
|
|
|
64
|
-
|
|
37
|
+
Aktuelle Astrozeiten zu den Geo-Koordinaten aus den ioBroker-Systemeinstellungen.
|
|
65
38
|
|
|
66
|
-

|
|
67
40
|
|
|
68
41
|
### smartcontrol.x.info.log.zoneActivations.json
|
|
69
42
|
|
|
70
|
-
|
|
43
|
+
JSON-Protokoll erfolgreicher Zonen (neuester Eintrag oben). Anzahl unter **Weitere Optionen → Logging**.
|
|
71
44
|
|
|
72
45
|
### smartcontrol.x.options
|
|
73
46
|
|
|
74
|
-
Hier kannst du
|
|
75
|
-
<br>Zudem kannst du für alle Bewegungsmelder die Zeit in Sekunden (Datenpunkt `duration`) und die Grenze für die Helligkeit (Datenpunkt `briThreshold`) ändern.
|
|
76
|
-
|
|
77
|
-

|
|
47
|
+
Hier kannst du Tabellenzeilen per Datenpunkt `active` an- und abschalten, bei Bewegungsmeldern auch `duration` und `briThreshold`.
|
|
78
48
|
|
|
49
|
+

|
|
79
50
|
|
|
80
|
-
|
|
51
|
+
Eine Änderung startet die Instanz neu, damit sie greift.
|
|
81
52
|
|
|
82
53
|
### smartcontrol.x.targetDevices
|
|
83
54
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-

|
|
55
|
+
Pro Zielgerät in **1. Zielgeräte** legt der Adapter Spiegel-Datenpunkte an. Änderung hier ändert den echten Ziel-Datenpunkt und umgekehrt.
|
|
87
56
|
|
|
57
|
+

|
|
88
58
|
|
|
89
59
|
### smartcontrol.x.Test
|
|
90
60
|
|
|
91
|
-
|
|
92
|
-
<br>Das ioBroker-Log (ioBroker Admin > Log) liefert detaillierte Informationen. Für das Debugging setzt du bitte den Log-Level der Adapterinstanz auf 'debug', damit du viel mehr Informationen im Log erhältst.
|
|
93
|
-
|
|
94
|
-

|
|
95
|
-
|
|
96
|
-
</details>
|
|
97
|
-
<!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
|
|
98
|
-
|
|
99
|
-
<details>
|
|
100
|
-
<summary style="font-size:1.3em; border:1px solid #ddd; background-color:#E0EBF3; color:black; padding:10px 0 10px 5px">Fragen / Probleme / Verbesserungsvorschläge</summary> <!-- Header -->
|
|
101
|
-
<!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
|
|
102
|
-
|
|
103
|
-
### Fragen zur Bedienung, etc.
|
|
104
|
-
|
|
105
|
-
Frage am besten im ioBroker-Forum, idealerweise referenzierst du @Mic so dass ich als Entwickler eine Meldung bekomme. Aktueller Forum-Thread für diesen Adapter ist hier: [ioBroker-Forum: Smart Control](https://forum.iobroker.net/topic/36728/).
|
|
106
|
-
|
|
107
|
-
### Fehler / Bug
|
|
108
|
-
|
|
109
|
-
Prüfe zunächst das ioBroker Log auf sämtliche Hinweise und gehe diesen entsprechend nach. Falls du nicht sicher bist, ob du alles richtig gemacht hast in den Adapter-Einstellungen, siehe oben -> *Fragen zur Bedienung, etc.*.
|
|
110
|
-
<br>Falls du wirklich einen durch diesen Adapter verursachten Fehler hast:
|
|
111
|
-
1. Gehe zu [GitHub: Smart Control Issues](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/issues) und erstelle ein neues Issue.
|
|
112
|
-
2. Beschreibe **ausführlich** die Problematik und Schritt für Schritt, was du getan hast als/bevor der Fehler auftrat. Setze außerdem das Log Level des Adapters auf "Debug", reproduziere den Fehler und stelle die Logausgabe in Code-Tags im Issue ein. ioBroker schneidet Log-Zeilen ab, daher gehst du dazu bitte direkt ins Logfile (durch Klicken auf "Download Log").
|
|
113
|
-
3. Füge Screenshots hinzu, soweit möglicherweise hilfreich für mich als Entwickler
|
|
114
|
-
4. Füge den Adapter-Optionen-Export hinzu, sofern möglicherweise sinnvoll zur Fehlersuche für mich: Ganz oben rechts in den SmartControl-Adapter-Optionen den blauen Button "Pfeil nach unten" anklicken.
|
|
115
|
-
|
|
116
|
-
### Erweiterungungswunsch (neues Feature)
|
|
117
|
-
|
|
118
|
-
Mach am besten ein neues Github-Issue auf unter [GitHub: Smart Control Issues](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/issues), in Deutsch oder Englisch. Wenn Deutsch deine Muttersprache ist, dann schreibe auch bitte in Deutsch und nicht Englisch auf Github. Das macht unsere Kommunikation deutlich einfacher und du brauchst dir keinen abbrechen :-) Nicht deutsch sprechende User können das dennoch dank Google Translate o.ä. super mitlesen und sich einbringen.
|
|
61
|
+
Nur zum Ausprobieren, keine Extra-Funktion. Nach der ersten Installation sind Beispielzeilen darauf gesetzt. Z. B. `smartcontrol.0.Test.trigger.Bathroom_motion` auf `true` setzen und im Log schauen, ob die Zone in **4. Zonen** reagiert. Zum Debuggen Log-Level der Instanz auf `debug`.
|
|
119
62
|
|
|
63
|
+

|
|
120
64
|
|
|
121
|
-
|
|
122
|
-
<!-- Markdown Collapsible Section - We must have an empty line below (per link above) -->
|
|
65
|
+
## Fragen / Fehler
|
|
123
66
|
|
|
67
|
+
Bedienung: [ioBroker-Forum Smart Control](https://forum.iobroker.net/topic/36728/).
|
|
124
68
|
|
|
69
|
+
Fehler: zuerst das Log. Bleibt es ein Adapter-Bug: [GitHub Issues](https://github.com/iobroker-community-adapters/ioBroker.smartcontrol/issues) — Schritte, Debug-Log (Download Log, nicht nur die gekürzte Ansicht), Screenshots. Die Instanz-Config steht in `system.adapter.smartcontrol.x` (Feld `native`).
|