@luigi-project/container 1.7.6 → 1.7.7
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/bundle.js +1 -1
- package/bundle.js.map +1 -1
- package/dist/custom-elements.json +42 -0
- package/package.json +1 -1
package/bundle.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function t(){}function e(t){return t()}function i(){return Object.create(null)}function n(t){t.forEach(e)}function s(t){return"function"==typeof t}function o(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let a,r;function c(t,e){return t===e||(a||(a=document.createElement("a")),a.href=e,t===a.href)}function l(t,e,i){const n=function(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;if(e&&e.host)return e;return t.ownerDocument}(t);if(!n.getElementById(e)){const t=h("style");t.id=e,t.textContent=i,function(t,e){(function(t,e){t.appendChild(e)})(t.head||t,e),e.sheet}(n,t)}}function d(t,e,i){t.insertBefore(e,i||null)}function u(t){t.parentNode&&t.parentNode.removeChild(t)}function h(t){return document.createElement(t)}function E(t){return document.createTextNode(t)}function m(t,e,i){null==i?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function p(t){r=t}function _(){if(!r)throw new Error("Function called outside component initialization");return r}function g(t){_().$$.on_mount.push(t)}const T=[],S=[];let C=[];const $=[],f=Promise.resolve();let R=!1;function A(t){C.push(t)}const w=new Set;let b=0;function I(){if(0!==b)return;const t=r;do{try{for(;b<T.length;){const t=T[b];b++,p(t),O(t.$$)}}catch(t){throw T.length=0,b=0,t}for(p(null),T.length=0,b=0;S.length;)S.pop()();for(let t=0;t<C.length;t+=1){const e=C[t];w.has(e)||(w.add(e),e())}C.length=0}while(T.length);for(;$.length;)$.pop()();R=!1,w.clear(),p(t)}function O(t){if(null!==t.fragment){t.update(),n(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(A)}}const U=new Set;function v(t,e){const i=t.$$;null!==i.fragment&&(!function(t){const e=[],i=[];C.forEach((n=>-1===t.indexOf(n)?e.push(n):i.push(n))),i.forEach((t=>t())),C=e}(i.after_update),n(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}function N(t,e){-1===t.$$.dirty[0]&&(T.push(t),R||(R=!0,f.then(I)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function y(o,a,c,l,d,h,E=null,m=[-1]){const _=r;p(o);const g=o.$$={fragment:null,ctx:[],props:h,update:t,not_equal:d,bound:i(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(a.context||(_?_.$$.context:[])),callbacks:i(),dirty:m,skip_bound:!1,root:a.target||_.$$.root};E&&E(g.root);let T=!1;if(g.ctx=c?c(o,a.props||{},((t,e,...i)=>{const n=i.length?i[0]:e;return g.ctx&&d(g.ctx[t],g.ctx[t]=n)&&(!g.skip_bound&&g.bound[t]&&g.bound[t](n),T&&N(o,t)),e})):[],g.update(),T=!0,n(g.before_update),g.fragment=!!l&&l(g.ctx),a.target){if(a.hydrate){const t=function(t){return Array.from(t.childNodes)}(a.target);g.fragment&&g.fragment.l(t),t.forEach(u)}else g.fragment&&g.fragment.c();a.intro&&((S=o.$$.fragment)&&S.i&&(U.delete(S),S.i(C))),function(t,i,o){const{fragment:a,after_update:r}=t.$$;a&&a.m(i,o),A((()=>{const i=t.$$.on_mount.map(e).filter(s);t.$$.on_destroy?t.$$.on_destroy.push(...i):n(i),t.$$.on_mount=[]})),r.forEach(A)}(o,a.target,a.anchor),I()}var S,C;p(_)}let L;function P(t,e,i,n){const s=i[t]?.type;if(e="Boolean"===s&&"boolean"!=typeof e?null!=e:e,!n||!i[t])return e;if("toAttribute"===n)switch(s){case"Object":case"Array":return null==e?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return null==e?null:e;default:return e}else switch(s){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":default:return e;case"Number":return null!=e?+e:e}}function D(t,e,i,n,s,o){let a=class extends L{constructor(){super(t,i,s),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map((t=>(e[t].attribute||t).toLowerCase()))}};return Object.keys(e).forEach((t=>{Object.defineProperty(a.prototype,t,{get(){return this.$$c&&t in this.$$c?this.$$c[t]:this.$$d[t]},set(i){i=P(t,i,e),this.$$d[t]=i,this.$$c?.$set({[t]:i})}})})),n.forEach((t=>{Object.defineProperty(a.prototype,t,{get(){return this.$$c?.[t]}})})),o&&(a=o(a)),t.element=a,a}"function"==typeof HTMLElement&&(L=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const i=this.$$c.$on(t,e);this.$$l_u.set(e,i)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){const t=this.$$l_u.get(e);t&&(t(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function t(t){return()=>{let e;return{c:function(){e=h("slot"),"default"!==t&&m(e,"name",t)},m:function(t,i){d(t,e,i)},d:function(t){t&&u(e)}}}}const e={},i=function(t){const e={};return t.childNodes.forEach((t=>{e[t.slot||"default"]=!0})),e}(this);for(const s of this.$$s)s in i&&(e[s]=[t(s)]);for(const o of this.attributes){const a=this.$$g_p(o.name);a in this.$$d||(this.$$d[a]=P(a,o.value,this.$$p_d,"toProp"))}for(const r in this.$$p_d)r in this.$$d||void 0===this[r]||(this.$$d[r]=this[r],delete this[r]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$scope:{ctx:[]}}});const n=()=>{this.$$r=!0;for(const t in this.$$p_d)if(this.$$d[t]=this.$$c.$$.ctx[this.$$c.$$.props[t]],this.$$p_d[t].reflect){const e=P(t,this.$$d[t],this.$$p_d,"toAttribute");null==e?this.removeAttribute(this.$$p_d[t].attribute||t):this.setAttribute(this.$$p_d[t].attribute||t,e)}this.$$r=!1};this.$$c.$$.after_update.push(n),n();for(const c in this.$$l)for(const l of this.$$l[c]){const E=this.$$c.$on(c,l);this.$$l_u.set(l,E)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=P(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(t){return Object.keys(this.$$p_d).find((e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t))||t}});class k{$$=void 0;$$set=void 0;$destroy(){v(this,1),this.$destroy=t}$on(e,i){if(!s(i))return t;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(i),()=>{const t=n.indexOf(i);-1!==t&&n.splice(t,1)}}$set(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}var x;"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4"),function(t){t.CUSTOM_MESSAGE="custom",t.GET_CONTEXT="luigi.get-context",t.SEND_CONTEXT_HANDSHAKE="luigi.init",t.CONTEXT_RECEIVED="luigi.init.ok",t.NAVIGATION_REQUEST="luigi.navigation.open",t.ALERT_REQUEST="luigi.ux.alert.show",t.ALERT_CLOSED="luigi.ux.alert.hide",t.INITIALIZED="luigi.init.ok",t.ADD_SEARCH_PARAMS_REQUEST="luigi.addSearchParams",t.ADD_NODE_PARAMS_REQUEST="luigi.addNodeParams",t.SHOW_CONFIRMATION_MODAL_REQUEST="luigi.ux.confirmationModal.show",t.CONFIRMATION_MODAL_CLOSED="luigi.ux.confirmationModal.hide",t.SHOW_LOADING_INDICATOR_REQUEST="luigi.show-loading-indicator",t.HIDE_LOADING_INDICATOR_REQUEST="luigi.hide-loading-indicator",t.SET_CURRENT_LOCALE_REQUEST="luigi.ux.set-current-locale",t.LOCAL_STORAGE_SET_REQUEST="storage",t.RUNTIME_ERROR_HANDLING_REQUEST="luigi-runtime-error-handling",t.SET_ANCHOR_LINK_REQUEST="luigi.setAnchor",t.SET_THIRD_PARTY_COOKIES_REQUEST="luigi.third-party-cookie",t.BACK_NAVIGATION_REQUEST="luigi.navigation.back",t.GET_CURRENT_ROUTE_REQUEST="luigi.navigation.currentRoute",t.SEND_CURRENT_ROUTE_ANSWER="luigi.navigation.currentRoute.answer",t.SEND_CONTEXT_OBJECT="luigi.navigate",t.NAVIGATION_COMPLETED_REPORT="luigi.navigate.ok",t.CLOSE_MODAL_ANSWER="luigi.navigation.modal.close",t.UPDATE_MODAL_PATH_DATA_REQUEST="luigi.navigation.updateModalDataPath",t.UPDATE_MODAL_SETTINGS="luigi.navigation.updateModalSettings",t.CHECK_PATH_EXISTS_REQUEST="luigi.navigation.pathExists",t.SEND_PATH_EXISTS_ANSWER="luigi.navigation.pathExists.answer",t.SET_DIRTY_STATUS_REQUEST="luigi.set-page-dirty",t.AUTH_SET_TOKEN="luigi.auth.tokenIssued",t.ADD_BACKDROP_REQUEST="luigi.add-backdrop",t.REMOVE_BACKDROP_REQUEST="luigi.remove-backdrop",t.SET_VIEW_GROUP_DATA_REQUEST="luigi.setVGData",t.CLOSE_CURRENT_MODAL_REQUEST="luigi.close-modal"}(x||(x={}));class M extends Event{constructor(t,e,i,n){super(t),this.detail=e,this.payload=i||e||{},this.callbackFn=n}callback(t){this.callbackFn&&this.callbackFn(t)}}const Q={ADD_BACKDROP_REQUEST:"add-backdrop-request",ADD_NODE_PARAMS_REQUEST:"add-node-params-request",ADD_SEARCH_PARAMS_REQUEST:"add-search-params-request",ALERT_CLOSED:"close-alert-request",ALERT_REQUEST:"show-alert-request",BACK_NAVIGATION_REQUEST:"navigate-back-request",CHECK_PATH_EXISTS_REQUEST:"check-path-exists-request",CLOSE_CURRENT_MODAL_REQUEST:"close-current-modal-request",CLOSE_USER_SETTINGS_REQUEST:"close-user-settings-request",COLLAPSE_LEFT_NAV_REQUEST:"collapse-leftnav-request",CUSTOM_MESSAGE:"custom-message",GET_CONTEXT_REQUEST:"get-context-request",GET_CURRENT_ROUTE_REQUEST:"get-current-route-request",GO_BACK_REQUEST:"go-back-request",HAS_BACK_REQUEST:"has-back-request",HIDE_LOADING_INDICATOR_REQUEST:"hide-loading-indicator-request",INITIALIZED:"initialized",LOCAL_STORAGE_SET_REQUEST:"set-storage-request",NAVIGATION_COMPLETED_REPORT:"report-navigation-completed-request",NAVIGATION_REQUEST:"navigation-request",OPEN_USER_SETTINGS_REQUEST:"open-user-settings-request",PATH_EXISTS_REQUEST:"path-exists-request",REMOVE_BACKDROP_REQUEST:"remove-backdrop-request",RUNTIME_ERROR_HANDLING_REQUEST:"runtime-error-handling-request",SET_ANCHOR_LINK_REQUEST:"set-anchor-request",SET_CURRENT_LOCALE_REQUEST:"set-current-locale-request",SET_DIRTY_STATUS_REQUEST:"set-dirty-status-request",SET_DOCUMENT_TITLE_REQUEST:"set-document-title-request",SET_THIRD_PARTY_COOKIES_REQUEST:"set-third-party-cookies-request",SET_VIEW_GROUP_DATA_REQUEST:"set-viewgroup-data-request",SHOW_CONFIRMATION_MODAL_REQUEST:"show-confirmation-modal-request",SHOW_LOADING_INDICATOR_REQUEST:"show-loading-indicator-request",UPDATE_MODAL_PATH_DATA_REQUEST:"update-modal-path-data-request",UPDATE_MODAL_SETTINGS_REQUEST:"update-modal-settings-request",UPDATE_TOP_NAVIGATION_REQUEST:"update-top-navigation-request"};class H{isVisible(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}sendCustomMessageToIframe(t,e,i){const n=i||"custom";if(t?.iframe?.contentWindow){const i=new URL(t.iframe.src);"custom"===n?t.iframe.contentWindow.postMessage({msg:n,data:e},i.origin):t.iframe.contentWindow.postMessage({msg:n,...e},i.origin)}else console.error("Message target could not be resolved")}dispatchWithPayload(t,e,i,n,s){this.dispatch(t,e,i,s,n)}dispatch(t,e,i,n,s){const o=new M(t,i,s,n);e.dispatchEvent(o)}getTargetContainer(t){let e;return globalThis.__luigi_container_manager.container.forEach((i=>{i.iframeHandle?.iframe&&i.iframeHandle.iframe.contentWindow===t.source&&(e=i)})),e}getContainerManager(){return globalThis.__luigi_container_manager||(globalThis.__luigi_container_manager={container:[],messageListener:t=>{const e=this.getTargetContainer(t),i=e?.iframeHandle?.iframe?.contentWindow;if(i&&i===t.source){switch(t.data.msg){case x.CUSTOM_MESSAGE:{const i=t.data.data,n=i.id;delete i.id,this.dispatch(Q.CUSTOM_MESSAGE,e,{id:n,_metaData:{},data:i})}break;case x.GET_CONTEXT:i.postMessage({msg:x.SEND_CONTEXT_HANDSHAKE,context:e.context||{},internal:{thirdPartyCookieCheck:{disabled:"true"===e.skipCookieCheck},currentTheme:e.theme,currentLocale:e.locale,activeFeatureToggleList:e.activeFeatureToggleList||[],cssVariables:e.cssVariables||{},anchor:e.anchor||"",userSettings:e.userSettings||null,drawer:e.drawer||!1,modal:e.modal||!1,viewStackSize:e.viewStackSize||0,isNavigateBack:e.isNavigateBack||!1},authData:e.authData||{},nodeParams:e.nodeParams||{},searchParams:e.searchParams||{},pathParams:e.pathParams||{}},t.origin);break;case x.NAVIGATION_REQUEST:this.dispatch(Q.NAVIGATION_REQUEST,e,t.data.params,(e=>{i.postMessage({msg:x.CLOSE_MODAL_ANSWER,data:e},t.origin)}));break;case x.ALERT_REQUEST:this.dispatchWithPayload(Q.ALERT_REQUEST,e,t,t.data?.data?.settings,(i=>{e.notifyAlertClosed(t.data?.data?.settings?.id,i)}));break;case x.INITIALIZED:this.dispatch(Q.INITIALIZED,e,t.data?.params||{});break;case x.ADD_SEARCH_PARAMS_REQUEST:this.dispatch(Q.ADD_SEARCH_PARAMS_REQUEST,e,{data:t.data.data,keepBrowserHistory:t.data.keepBrowserHistory});break;case x.ADD_NODE_PARAMS_REQUEST:this.dispatch(Q.ADD_NODE_PARAMS_REQUEST,e,{data:t.data.data,keepBrowserHistory:t.data.keepBrowserHistory});break;case x.SHOW_CONFIRMATION_MODAL_REQUEST:this.dispatchWithPayload(Q.SHOW_CONFIRMATION_MODAL_REQUEST,e,t.data.data,t.data.data?.settings,(t=>{e.notifyConfirmationModalClosed(t)}));break;case x.SHOW_LOADING_INDICATOR_REQUEST:this.dispatch(Q.SHOW_LOADING_INDICATOR_REQUEST,e,t);break;case x.HIDE_LOADING_INDICATOR_REQUEST:this.dispatch(Q.HIDE_LOADING_INDICATOR_REQUEST,e,t);break;case x.SET_CURRENT_LOCALE_REQUEST:this.dispatchWithPayload(Q.SET_CURRENT_LOCALE_REQUEST,e,t,t.data.data);break;case x.LOCAL_STORAGE_SET_REQUEST:this.dispatchWithPayload(Q.LOCAL_STORAGE_SET_REQUEST,e,t,t.data.data?.params);break;case x.RUNTIME_ERROR_HANDLING_REQUEST:this.dispatch(Q.RUNTIME_ERROR_HANDLING_REQUEST,e,t);break;case x.SET_ANCHOR_LINK_REQUEST:this.dispatchWithPayload(Q.SET_ANCHOR_LINK_REQUEST,e,t,t.data.anchor);break;case x.SET_THIRD_PARTY_COOKIES_REQUEST:this.dispatch(Q.SET_THIRD_PARTY_COOKIES_REQUEST,e,t);break;case x.BACK_NAVIGATION_REQUEST:{let i=t.data?.goBackContext||{};if("string"==typeof i)try{i=JSON.parse(i)}catch(t){console.warn(t)}this.dispatch(Q.GO_BACK_REQUEST,e,i),this.dispatch(Q.BACK_NAVIGATION_REQUEST,e,t)}break;case x.GET_CURRENT_ROUTE_REQUEST:this.dispatchWithPayload(Q.GET_CURRENT_ROUTE_REQUEST,e,t,t.data.data,(e=>{i.postMessage({msg:x.SEND_CURRENT_ROUTE_ANSWER,data:{correlationId:t.data?.data?.id,route:e}},t.origin)}));break;case x.NAVIGATION_COMPLETED_REPORT:this.dispatch(Q.NAVIGATION_COMPLETED_REPORT,e,t);break;case x.UPDATE_MODAL_PATH_DATA_REQUEST:this.dispatchWithPayload(Q.UPDATE_MODAL_PATH_DATA_REQUEST,e,t,t.data.params);break;case x.UPDATE_MODAL_SETTINGS:this.dispatchWithPayload(Q.UPDATE_MODAL_SETTINGS_REQUEST,e,t,{addHistoryEntry:t.data.addHistoryEntry,updatedModalSettings:t.data.updatedModalSettings});break;case x.CHECK_PATH_EXISTS_REQUEST:this.dispatchWithPayload(Q.CHECK_PATH_EXISTS_REQUEST,e,t,t.data.data,(e=>{i.postMessage({msg:x.SEND_PATH_EXISTS_ANSWER,data:{correlationId:t.data?.data?.id,pathExists:e}},t.origin)}));break;case x.SET_DIRTY_STATUS_REQUEST:this.dispatchWithPayload(Q.SET_DIRTY_STATUS_REQUEST,e,t,{dirty:t.data.dirty});break;case x.SET_VIEW_GROUP_DATA_REQUEST:this.dispatch(Q.SET_VIEW_GROUP_DATA_REQUEST,e,t.data.data);break;case x.ADD_BACKDROP_REQUEST:this.dispatch(Q.ADD_BACKDROP_REQUEST,e,t);break;case x.REMOVE_BACKDROP_REQUEST:this.dispatch(Q.REMOVE_BACKDROP_REQUEST,e,t);break;case x.CLOSE_CURRENT_MODAL_REQUEST:this.dispatch(Q.CLOSE_CURRENT_MODAL_REQUEST,e,t)}}}},window.addEventListener("message",globalThis.__luigi_container_manager.messageListener)),globalThis.__luigi_container_manager}registerContainer(t){this.getContainerManager().container.push(t)}}const W=new H;const B=new class{constructor(){this.updateContext=(t,e,i,n,s,o)=>{if(i){const a=e||{};W.sendCustomMessageToIframe(i,{context:t,nodeParams:n||{},pathParams:s||{},searchParams:o||{},internal:a,withoutSync:!0},x.SEND_CONTEXT_OBJECT)}else console.warn("Attempting to update context on inexisting iframe")},this.updateViewUrl=(t,e,i,n)=>{if(n){const s=i||{};W.sendCustomMessageToIframe(n,{context:e,internal:s,withoutSync:!1,viewUrl:t},x.SEND_CONTEXT_OBJECT)}else console.warn("Attempting to update route on inexisting iframe")},this.updateAuthData=(t,e)=>{t&&e?W.sendCustomMessageToIframe(t,{authData:e},x.AUTH_SET_TOKEN):console.warn("Attempting to update auth data on inexisting iframe or authData")},this.sendCustomMessage=(t,e,i,n,s)=>{if(i&&e._luigi_mfe_webcomponent)W.dispatch(t,e._luigi_mfe_webcomponent,s);else{const e={...s};e.id&&console.warn('Property "id" is reserved and can not be used in custom message data'),e.id=t,W.sendCustomMessageToIframe(n,e)}},this.notifyConfirmationModalClosed=(t,e)=>{const i={data:{confirmed:t}};W.sendCustomMessageToIframe(e,i,x.CONFIRMATION_MODAL_CLOSED)}}notifyAlertClosed(t,e,i){const n=e?{id:t,dismissKey:e}:{id:t};W.sendCustomMessageToIframe(i,n,x.ALERT_CLOSED)}},G=t=>{if(!t)return;const e=t;return e.forEach(((i,n)=>{e[n]=i+(-1!=i.indexOf(";")?"":";"),e[n]=t[n].replaceAll('"',"'")})),e.join(" ")};class V{constructor(t){t?(this.rendererObject=t,this.config=t.config||{}):this.config={}}createCompoundContainer(){return document.createElement("div")}createCompoundItemContainer(t){return document.createElement("div")}attachCompoundItem(t,e){t.appendChild(e)}}class j extends V{constructor(t){super(t||{use:{}}),t&&t.use&&t.use.extends&&(this.superRenderer=q({use:t.use.extends,config:t.config}))}createCompoundContainer(){return this.rendererObject.use.createCompoundContainer?this.rendererObject.use.createCompoundContainer(this.config,this.superRenderer):this.superRenderer?this.superRenderer.createCompoundContainer():super.createCompoundContainer()}createCompoundItemContainer(t){return this.rendererObject.use.createCompoundItemContainer?this.rendererObject.use.createCompoundItemContainer(t,this.config,this.superRenderer):this.superRenderer?this.superRenderer.createCompoundItemContainer(t):super.createCompoundItemContainer(t)}attachCompoundItem(t,e){this.rendererObject.use.attachCompoundItem?this.rendererObject.use.attachCompoundItem(t,e,this.superRenderer):this.superRenderer?this.superRenderer.attachCompoundItem(t,e):super.attachCompoundItem(t,e)}}class F extends V{createCompoundContainer(){const t="__lui_compound_"+(new Date).getTime(),e=document.createElement("div");e.classList.add(t);let i="";return this.config.layouts&&this.config.layouts.forEach((e=>{if(e.minWidth||e.maxWidth){let n="@media only screen ";null!=e.minWidth&&(n+=`and (min-width: ${e.minWidth}px) `),null!=e.maxWidth&&(n+=`and (max-width: ${e.maxWidth}px) `),n+=`{\n .${t} {\n grid-template-columns: ${e.columns||"auto"};\n grid-template-rows: ${e.rows||"auto"};\n grid-gap: ${e.gap||"0"};\n }\n }\n `,i+=n}})),e.innerHTML=`\n <style scoped>\n .${t} {\n display: grid;\n grid-template-columns: ${this.config.columns||"auto"};\n grid-template-rows: ${this.config.rows||"auto"};\n grid-gap: ${this.config.gap||"0"};\n min-height: ${this.config.minHeight||"auto"};\n }\n ${i}\n </style>\n `,e}createCompoundItemContainer(t){const e=t||{},i=document.createElement("div");return i.setAttribute("style",`grid-row: ${e.row||"auto"}; grid-column: ${e.column||"auto"}`),i.classList.add("lui-compoundItemCnt"),i}}const q=t=>{const e=t.use;return e?"grid"===e?new F(t):e.createCompoundContainer||e.createCompoundItemContainer||e.attachCompoundItem?new j(t):new V(t):new V(t)},K=(t,e,i,n)=>{e?.eventListeners&&e.eventListeners.forEach((e=>{const s=e.source+"."+e.name,o=t[s],a={wcElementId:i,wcElement:n,action:e.action,converter:e.dataConverter};o?o.push(a):t[s]=[a]}))};function X(t){return String(t).replaceAll("<","<").replaceAll(">",">").replaceAll(""",'"').replaceAll("'","'").replaceAll("/","/")}class z{constructor(){this.alertResolvers={},this.alertIndex=0,this.containerService=new H}dynamicImport(t){return Object.freeze(import(/* webpackIgnore: true */t))}processViewUrl(t,e){return t}attachWC(t,e,i,n,s,o,a){if(i&&i.contains(e)){const r=document.createElement(t);o&&r.setAttribute("nodeId",o),r.setAttribute("lui_web_component","true"),this.initWC(r,t,i,s,n,o,a),i.replaceChild(r,e),i._luigi_node&&(i._luigi_mfe_webcomponent=r),i.dispatchEvent(new Event("wc_ready"))}}dispatchLuigiEvent(t,e,i){this.containerService.dispatch(t,this.thisComponent,e,i)}createClientAPI(t,e,i,n,s){return{linkManager:()=>{let t=null,e=!1,i=!1,n=!1,s={};const o={navigate:(o,a={})=>{const r={fromContext:t,fromClosestContext:e,fromVirtualTreeRoot:i,fromParent:n,nodeParams:s,...a};this.dispatchLuigiEvent(Q.NAVIGATION_REQUEST,{link:o,...r})},navigateToIntent:(t,e={})=>{let i="#?intent=";if(i+=t,e&&Object.keys(e)?.length){const t=Object.entries(e);if(t.length>0){i+="?";for(const[e,n]of t)i+=e+"="+n+"&";i=i.slice(0,-1)}}o.navigate(i)},fromClosestContext:()=>(e=!0,o),fromContext:e=>(t=e,o),fromVirtualTreeRoot:()=>(i=!0,o),fromParent:()=>(n=!0,o),getCurrentRoute:()=>{const o={fromContext:t,fromClosestContext:e,fromVirtualTreeRoot:i,fromParent:n,nodeParams:s};return new Promise(((t,e)=>{this.containerService.dispatch(Q.GET_CURRENT_ROUTE_REQUEST,this.thisComponent,{...o},(i=>{i?t(i):e("No current route received.")}))}))},withParams:t=>(s=t,o),updateModalPathInternalNavigation:(o,a={},r=!1)=>{if(!o)return void console.warn("Updating path of the modal upon internal navigation prevented. No path specified.");const c={fromClosestContext:e,fromContext:t,fromParent:n,fromVirtualTreeRoot:i,nodeParams:s};this.dispatchLuigiEvent(Q.UPDATE_MODAL_PATH_DATA_REQUEST,Object.assign(c,{history:r,link:o,modal:a}))},updateTopNavigation:()=>{this.dispatchLuigiEvent(Q.UPDATE_TOP_NAVIGATION_REQUEST,{})},pathExists:o=>{const a={fromContext:t,fromClosestContext:e,fromVirtualTreeRoot:i,fromParent:n,nodeParams:s};return new Promise(((t,e)=>{this.containerService.dispatch(Q.CHECK_PATH_EXISTS_REQUEST,this.thisComponent,{...a,link:o},(i=>{i?t(!0):e(!1)})),this.containerService.dispatch(Q.PATH_EXISTS_REQUEST,this.thisComponent,{...a,link:o},(i=>{i?t(!0):e(!1)}))}))},openAsDrawer:(t,e={})=>{o.navigate(t,{drawer:e})},openAsModal:(t,e={})=>{o.navigate(t,{modal:e})},openAsSplitView:(t,e={})=>{o.navigate(t,{splitView:e})},goBack:t=>{this.dispatchLuigiEvent(Q.GO_BACK_REQUEST,t)},hasBack:()=>!1,updateModalSettings:(t={},e=!1)=>{this.dispatchLuigiEvent(Q.UPDATE_MODAL_SETTINGS_REQUEST,{updatedModalSettings:t,addHistoryEntry:e})}};return o},uxManager:()=>({showAlert:t=>(t.id=this.alertIndex++,new Promise((e=>{this.alertResolvers[t.id]=e,this.dispatchLuigiEvent(Q.ALERT_REQUEST,t,(e=>{this.resolveAlert(t.id,e)}))}))),showConfirmationModal:t=>new Promise(((e,i)=>{this.modalResolver={resolve:e,reject:i},this.containerService.dispatch(Q.SHOW_CONFIRMATION_MODAL_REQUEST,this.thisComponent,t,(t=>{t?e():i()}))})),getCurrentTheme:()=>this.thisComponent.theme,closeUserSettings:()=>{this.dispatchLuigiEvent(Q.CLOSE_USER_SETTINGS_REQUEST,this.thisComponent.userSettings)},openUserSettings:()=>{this.dispatchLuigiEvent(Q.OPEN_USER_SETTINGS_REQUEST,this.thisComponent.userSettings)},collapseLeftSideNav:()=>{this.dispatchLuigiEvent(Q.COLLAPSE_LEFT_NAV_REQUEST,{})},getDirtyStatus:()=>this.thisComponent.dirtyStatus||!1,getDocumentTitle:()=>this.thisComponent.documentTitle,setDocumentTitle:t=>{this.dispatchLuigiEvent(Q.SET_DOCUMENT_TITLE_REQUEST,t)},setDirtyStatus:t=>{this.dispatchLuigiEvent(Q.SET_DIRTY_STATUS_REQUEST,{dirty:t})},setCurrentLocale:t=>{t&&this.dispatchLuigiEvent(Q.SET_CURRENT_LOCALE_REQUEST,{currentLocale:t})},removeBackdrop:()=>{this.dispatchLuigiEvent(Q.REMOVE_BACKDROP_REQUEST,{})},addBackdrop:()=>{this.dispatchLuigiEvent(Q.ADD_BACKDROP_REQUEST,{})},showLoadingIndicator:()=>{this.dispatchLuigiEvent(Q.SHOW_LOADING_INDICATOR_REQUEST,{})},hideLoadingIndicator:()=>{this.dispatchLuigiEvent(Q.HIDE_LOADING_INDICATOR_REQUEST,{})},hideAppLoadingIndicator:()=>{this.dispatchLuigiEvent(Q.HIDE_LOADING_INDICATOR_REQUEST,{})},closeCurrentModal:()=>{this.dispatchLuigiEvent(Q.CLOSE_CURRENT_MODAL_REQUEST,{})}}),getCurrentLocale:()=>this.thisComponent.locale,getActiveFeatureToggles:()=>this.thisComponent.activeFeatureToggleList||[],publishEvent:s=>{t&&t.eventBus&&t.eventBus.onPublishEvent(s,e,i);const o={id:s.type,_metaData:{nodeId:e,wc_id:i,src:n},data:s.detail};this.dispatchLuigiEvent(Q.CUSTOM_MESSAGE,o)},luigiClientInit:()=>{this.dispatchLuigiEvent(Q.INITIALIZED,{})},addNodeParams:(t,e)=>{s||this.dispatchLuigiEvent(Q.ADD_NODE_PARAMS_REQUEST,{params:t,data:t,keepBrowserHistory:e})},getNodeParams:t=>{return s?{}:t?(e=this.thisComponent.nodeParams,Object.entries(e).reduce(((t,e)=>(t[X(e[0])]=X(e[1]),t)),{})):this.thisComponent.nodeParams||{};var e},setAnchor:t=>{s||this.dispatchLuigiEvent(Q.SET_ANCHOR_LINK_REQUEST,t)},getAnchor:()=>this.thisComponent.anchor||"",getCoreSearchParams:()=>this.thisComponent.searchParams||{},getPathParams:()=>this.thisComponent.pathParams||{},getClientPermissions:()=>this.thisComponent.clientPermissions||{},addCoreSearchParams:(t={},e=!0)=>{this.dispatchLuigiEvent(Q.ADD_SEARCH_PARAMS_REQUEST,{data:t,keepBrowserHistory:e})},getUserSettings:()=>this.thisComponent.userSettings||{},setViewGroupData:t=>{this.dispatchLuigiEvent(Q.SET_VIEW_GROUP_DATA_REQUEST,t)}}}initWC(t,e,i,n,s,o,a){const r=this.createClientAPI(i,o,e,t,a);if(t.__postProcess){const e=new URL(document.baseURI).origin===new URL(n,document.baseURI).origin?new URL("./",new URL(n,document.baseURI)):new URL("./",n);t.__postProcess(s,r,e.origin+e.pathname)}else t.context=s,t.LuigiClient=r}generateWCId(t){let e="";const i=new URL(t,encodeURI(location.href)).href;for(let t=0;t<i.length;t++)e+=i.charCodeAt(t).toString(16);return"luigi-wc-"+e}registerWCFromUrl(t,e){const i=this.processViewUrl(t);return new Promise(((t,n)=>{if(this.checkWCUrl(i))this.dynamicImport(i).then((i=>{try{if(!window.customElements.get(e)){let t=i.default;if(!HTMLElement.isPrototypeOf(t)){const e=Object.keys(i);for(let n=0;n<e.length&&(t=i[e[n]],!HTMLElement.isPrototypeOf(t));n++);}window.customElements.define(e,t)}t(1)}catch(t){n(t)}})).catch((t=>{n(t)}));else{n(`Error: View URL '${i}' not allowed to be included`)}}))}includeSelfRegisteredWCFromUrl(t,e,i){if(this.checkWCUrl(e)){this.containerService.getContainerManager()._registerWebcomponent||(this.containerService.getContainerManager()._registerWebcomponent=(t,e)=>{window.customElements.define(this.generateWCId(t),e)}),window.Luigi||(window.Luigi={},window.Luigi._registerWebcomponent||(window.Luigi._registerWebcomponent=(t,e)=>{this.containerService.getContainerManager()._registerWebcomponent(t,e)}));const n=document.createElement("script");n.setAttribute("src",e),"module"===t.webcomponent.type&&n.setAttribute("type","module"),n.setAttribute("defer","true"),n.addEventListener("load",(()=>{i()})),document.body.appendChild(n)}else console.warn(`View URL '${e}' not allowed to be included`)}checkWCUrl(t){return!0}renderWebComponent(t,e,i,n,s,o){const a=this.processViewUrl(t,{context:i}),r=n?.webcomponent?.tagName||this.generateWCId(a),c=document.createElement("div");e.appendChild(c),e._luigi_node=n,window.customElements.get(r)?this.attachWC(r,c,e,i,a,s,o):window.luigiWCFn?window.luigiWCFn(a,r,c,(()=>{this.attachWC(r,c,e,i,a,s,o)})):n?.webcomponent?.selfRegistered?this.includeSelfRegisteredWCFromUrl(n,a,(()=>{this.attachWC(r,c,e,i,a,s,o)})):this.registerWCFromUrl(a,r).then((()=>{this.attachWC(r,c,e,i,a,s,o)})).catch((t=>{console.warn("ERROR =>",t),this.containerService.dispatch(Q.RUNTIME_ERROR_HANDLING_REQUEST,this.thisComponent,t)}))}createCompoundContainerAsync(t,e,i){return new Promise(((n,s)=>{if(t.viewUrl)try{const s=i?.webcomponent?.tagName||this.generateWCId(t.viewUrl);i?.webcomponent?.selfRegistered?this.includeSelfRegisteredWCFromUrl(i,t.viewUrl,(()=>{const i=document.createElement(s);i.setAttribute("lui_web_component","true"),this.initWC(i,s,i,t.viewUrl,e,"_root"),n(i)})):this.registerWCFromUrl(t.viewUrl,s).then((()=>{const i=document.createElement(s);i.setAttribute("lui_web_component","true"),this.initWC(i,s,i,t.viewUrl,e,"_root"),n(i)})).catch((t=>{console.warn("Error: ",t),this.containerService.dispatch(Q.RUNTIME_ERROR_HANDLING_REQUEST,this.thisComponent,t)}))}catch(t){s(t)}else n(t.createCompoundContainer())}))}renderWebComponentCompound(t,e,i){let n;return t.webcomponent&&t.viewUrl?(n=new V,n.viewUrl=this.processViewUrl(t.viewUrl,{context:i}),n.createCompoundItemContainer=t=>{const e=document.createElement("div");return t?.slot&&e.setAttribute("slot",t.slot),e}):t.compound?.renderer&&(n=q(t.compound.renderer)),n=n||new V,new Promise((s=>{this.createCompoundContainerAsync(n,i,t).then((o=>{e._luigi_mfe_webcomponent=o,e._luigi_node=t;const a={};o.eventBus={listeners:a,onPublishEvent:(t,e,i)=>{const n=a[e+"."+t.type]||[];n.push(...a["*."+t.type]||[]),n.forEach((e=>{const i=e.wcElement||o.querySelector("[nodeId="+e.wcElementId+"]");i?i.dispatchEvent(new CustomEvent(e.action,{detail:e.converter?e.converter(t.detail):t.detail})):console.debug("Could not find event target",e)}))}},t.compound?.children?.forEach(((t,e)=>{const s={...i,...t.context},r=n.createCompoundItemContainer(t.layoutConfig);r.eventBus=o.eventBus,n.attachCompoundItem(o,r);const c=t.id||"gen_"+e;this.renderWebComponent(t.viewUrl,r,s,t,c,!0),K(a,t,c)})),e.appendChild(o),K(a,t.compound,"_root",o),s(o)})).catch((t=>{console.warn("Error: ",t),this.containerService.dispatch(Q.RUNTIME_ERROR_HANDLING_REQUEST,this.thisComponent,t)}))}))}resolveAlert(t,e){this.alertResolvers[t]?(this.alertResolvers[t](void 0===e||e),this.alertResolvers[t]=void 0):console.log("Promise is not in the list.")}notifyConfirmationModalClosed(t){this.modalResolver?(t?this.modalResolver.resolve():this.modalResolver.reject(),this.modalResolver=void 0):console.log("Modal promise is not listed.")}}const J=new class{isFunction(t){return t&&"[object Function]"==={}.toString.call(t)}isObject(t){return!(!t||"object"!=typeof t||Array.isArray(t))}checkWebcomponentValue(t){return"string"==typeof t?JSON.parse(t):"boolean"==typeof t||"object"==typeof t?t:void console.warn("Webcomponent value has a wrong type.")}resolveContext(t){return t?"string"==typeof t?JSON.parse(t):t:{}}};function Y(t){let e,i=(!t[4]||"false"===t[4])&&Z(t);return{c(){i&&i.c(),e=E("")},m(t,n){i&&i.m(t,n),d(t,e,n)},p(t,n){t[4]&&"false"!==t[4]?i&&(i.d(1),i=null):i?i.p(t,n):(i=Z(t),i.c(),i.m(e.parentNode,e))},d(t){t&&u(e),i&&i.d(t)}}}function Z(t){let e,i,n,s,o,a;return{c(){e=h("style"),e.textContent="main.lui-isolated,\n .lui-isolated iframe {\n width: 100%;\n height: 100%;\n border: none;\n }\n\n main.lui-isolated {\n line-height: 0;\n }",i=E(" "),n=h("iframe"),c(n.src,s=t[3])||m(n,"src",s),m(n,"title",t[1]),m(n,"allow",o=G(t[0])),m(n,"sandbox",a=t[2]?t[2].join(" "):void 0)},m(s,o){d(s,e,o),d(s,i,o),d(s,n,o),t[28](n)},p(t,e){8&e[0]&&!c(n.src,s=t[3])&&m(n,"src",s),2&e[0]&&m(n,"title",t[1]),1&e[0]&&o!==(o=G(t[0]))&&m(n,"allow",o),4&e[0]&&a!==(a=t[2]?t[2].join(" "):void 0)&&m(n,"sandbox",a)},d(s){s&&(u(e),u(i),u(n)),t[28](null)}}}function tt(e){let i,n,s=e[5]&&Y(e);return{c(){i=h("main"),s&&s.c(),m(i,"class",n=e[4]?void 0:"lui-isolated")},m(t,n){d(t,i,n),s&&s.m(i,null),e[29](i)},p(t,e){t[5]?s?s.p(t,e):(s=Y(t),s.c(),s.m(i,null)):s&&(s.d(1),s=null),16&e[0]&&n!==(n=t[4]?void 0:"lui-isolated")&&m(i,"class",n)},i:t,o:t,d(t){t&&u(i),s&&s.d(),e[29](null)}}}function et(t,e,i){let{activeFeatureToggleList:n}=e,{allowRules:s}=e,{anchor:o}=e,{authData:a}=e,{clientPermissions:r}=e,{context:c}=e,{deferInit:l}=e,{dirtyStatus:d}=e,{documentTitle:u}=e,{hasBack:h}=e,{label:E}=e,{locale:m}=e,{noShadow:p}=e,{nodeParams:T}=e,{pathParams:C}=e,{sandboxRules:$}=e,{searchParams:f}=e,{skipCookieCheck:R}=e,{skipInitCheck:A}=e,{theme:w}=e,{userSettings:b}=e,{viewurl:I}=e,{webcomponent:O}=e;const U={};let v,N,y=!1;const L=new z,P=t=>{if(!y){t.sendCustomMessage=(e,i)=>{B.sendCustomMessage(e,t.getNoShadow()?t:v,!!O,U,i)},t.updateContext=(e,n)=>{if(i(8,c=e),O)(t.getNoShadow()?t:v)._luigi_mfe_webcomponent.context=e;else{const i={...n||{},activeFeatureToggleList:t.activeFeatureToggleList||[],currentLocale:t.locale,currentTheme:t.theme,userSettings:t.userSettings||null,cssVariables:t.cssVariables||{},anchor:t.anchor||"",drawer:t.drawer||!1,modal:t.modal||!1,viewStackSize:t.viewStackSize||0,isNavigateBack:t.isNavigateBack||!1};B.updateContext(e,i,U,T,C,f)}},t.closeAlert=(e,i)=>{t.notifyAlertClosed(e,i)},t.notifyAlertClosed=(e,i)=>{t.isConnected&&(O?L.resolveAlert(e,i):B.notifyAlertClosed(e,i,U))},t.notifyConfirmationModalClosed=e=>{t.isConnected&&(O?L.notifyConfirmationModalClosed(!!e):B.notifyConfirmationModalClosed(!!e,U))},W.registerContainer(t),L.thisComponent=t;const e=J.resolveContext(c);if(t.updateViewUrl=(t,e)=>{t?.length&&B.updateViewUrl(t,J.resolveContext(c),e,U)},O&&"false"!=O){if(t.getNoShadow())t.innerHTML="";else{i(7,v.innerHTML="",v);t.attachShadow({mode:"open"}).append(v)}const n=J.checkWebcomponentValue(O);L.renderWebComponent(I,t.getNoShadow()?t:v,e,"object"==typeof n?{webcomponent:n}:{})}else if(!t.getNoShadow()){t.innerHTML="";t.attachShadow({mode:"open"}).append(v)}A?(t.initialized=!0,setTimeout((()=>{L.dispatchLuigiEvent(Q.INITIALIZED,{})}))):O&&(t.getNoShadow()?t:v).addEventListener("wc_ready",(()=>{(t.getNoShadow()?t:v)._luigi_mfe_webcomponent?.deferLuigiClientWCInit||(t.initialized=!0,L.dispatchLuigiEvent(Q.INITIALIZED,{}))})),i(5,y=!0),t.containerInitialized=!0}};var D;return g((async()=>{i(27,N=v.parentNode),i(27,N.iframeHandle=U,N),i(27,N.init=()=>{P(N)},N),!l&&I&&P(N)})),D=async()=>{},_().$$.on_destroy.push(D),t.$$set=t=>{"activeFeatureToggleList"in t&&i(9,n=t.activeFeatureToggleList),"allowRules"in t&&i(0,s=t.allowRules),"anchor"in t&&i(10,o=t.anchor),"authData"in t&&i(11,a=t.authData),"clientPermissions"in t&&i(12,r=t.clientPermissions),"context"in t&&i(8,c=t.context),"deferInit"in t&&i(13,l=t.deferInit),"dirtyStatus"in t&&i(14,d=t.dirtyStatus),"documentTitle"in t&&i(15,u=t.documentTitle),"hasBack"in t&&i(16,h=t.hasBack),"label"in t&&i(1,E=t.label),"locale"in t&&i(17,m=t.locale),"noShadow"in t&&i(18,p=t.noShadow),"nodeParams"in t&&i(19,T=t.nodeParams),"pathParams"in t&&i(20,C=t.pathParams),"sandboxRules"in t&&i(2,$=t.sandboxRules),"searchParams"in t&&i(21,f=t.searchParams),"skipCookieCheck"in t&&i(22,R=t.skipCookieCheck),"skipInitCheck"in t&&i(23,A=t.skipInitCheck),"theme"in t&&i(24,w=t.theme),"userSettings"in t&&i(25,b=t.userSettings),"viewurl"in t&&i(3,I=t.viewurl),"webcomponent"in t&&i(4,O=t.webcomponent)},t.$$.update=()=>{134225960&t.$$.dirty[0]&&!y&&I&&!l&&N&&P(N)},[s,E,$,I,O,y,U,v,c,n,o,a,r,l,d,u,h,m,p,T,C,f,R,A,w,b,()=>n&&s&&o&&a&&r&&d&&u&&h&&m&&p&&T&&C&&$&&f&&R&&A&&w&&b,N,function(t){S[t?"unshift":"push"]((()=>{U.iframe=t,i(6,U)}))},function(t){S[t?"unshift":"push"]((()=>{v=t,i(7,v)}))}]}class it extends k{constructor(t){super(),y(this,t,et,tt,o,{activeFeatureToggleList:9,allowRules:0,anchor:10,authData:11,clientPermissions:12,context:8,deferInit:13,dirtyStatus:14,documentTitle:15,hasBack:16,label:1,locale:17,noShadow:18,nodeParams:19,pathParams:20,sandboxRules:2,searchParams:21,skipCookieCheck:22,skipInitCheck:23,theme:24,userSettings:25,viewurl:3,webcomponent:4,unwarn:26},null,[-1,-1])}get activeFeatureToggleList(){return this.$$.ctx[9]}set activeFeatureToggleList(t){this.$$set({activeFeatureToggleList:t}),I()}get allowRules(){return this.$$.ctx[0]}set allowRules(t){this.$$set({allowRules:t}),I()}get anchor(){return this.$$.ctx[10]}set anchor(t){this.$$set({anchor:t}),I()}get authData(){return this.$$.ctx[11]}set authData(t){this.$$set({authData:t}),I()}get clientPermissions(){return this.$$.ctx[12]}set clientPermissions(t){this.$$set({clientPermissions:t}),I()}get context(){return this.$$.ctx[8]}set context(t){this.$$set({context:t}),I()}get deferInit(){return this.$$.ctx[13]}set deferInit(t){this.$$set({deferInit:t}),I()}get dirtyStatus(){return this.$$.ctx[14]}set dirtyStatus(t){this.$$set({dirtyStatus:t}),I()}get documentTitle(){return this.$$.ctx[15]}set documentTitle(t){this.$$set({documentTitle:t}),I()}get hasBack(){return this.$$.ctx[16]}set hasBack(t){this.$$set({hasBack:t}),I()}get label(){return this.$$.ctx[1]}set label(t){this.$$set({label:t}),I()}get locale(){return this.$$.ctx[17]}set locale(t){this.$$set({locale:t}),I()}get noShadow(){return this.$$.ctx[18]}set noShadow(t){this.$$set({noShadow:t}),I()}get nodeParams(){return this.$$.ctx[19]}set nodeParams(t){this.$$set({nodeParams:t}),I()}get pathParams(){return this.$$.ctx[20]}set pathParams(t){this.$$set({pathParams:t}),I()}get sandboxRules(){return this.$$.ctx[2]}set sandboxRules(t){this.$$set({sandboxRules:t}),I()}get searchParams(){return this.$$.ctx[21]}set searchParams(t){this.$$set({searchParams:t}),I()}get skipCookieCheck(){return this.$$.ctx[22]}set skipCookieCheck(t){this.$$set({skipCookieCheck:t}),I()}get skipInitCheck(){return this.$$.ctx[23]}set skipInitCheck(t){this.$$set({skipInitCheck:t}),I()}get theme(){return this.$$.ctx[24]}set theme(t){this.$$set({theme:t}),I()}get userSettings(){return this.$$.ctx[25]}set userSettings(t){this.$$set({userSettings:t}),I()}get viewurl(){return this.$$.ctx[3]}set viewurl(t){this.$$set({viewurl:t}),I()}get webcomponent(){return this.$$.ctx[4]}set webcomponent(t){this.$$set({webcomponent:t}),I()}get unwarn(){return this.$$.ctx[26]}}function nt(t){l(t,"svelte-1buc46y","main.svelte-1buc46y{width:100%;height:100%;border:none}")}function st(e){let i;return{c(){i=h("main"),m(i,"class","svelte-1buc46y")},m(t,n){d(t,i,n),e[21](i)},p:t,i:t,o:t,d(t){t&&u(i),e[21](null)}}}function ot(t,e,i){let n,s,{activeFeatureToggleList:o}=e,{anchor:a}=e,{clientPermissions:r}=e,{compoundConfig:c}=e,{context:l}=e,{deferInit:d}=e,{dirtyStatus:u}=e,{documentTitle:h}=e,{hasBack:E}=e,{locale:m}=e,{noShadow:p}=e,{nodeParams:_}=e,{pathParams:T}=e,{searchParams:C}=e,{skipInitCheck:$}=e,{theme:f}=e,{userSettings:R}=e,{viewurl:A}=e,{webcomponent:w}=e,b=!1;const I=new H,O=new z,U=t=>{if(!c||b)return;t.updateContext=(e,s)=>{const o=t.getNoShadow()?t:n;o._luigi_mfe_webcomponent.context=e,i(1,l=e);const a=o._luigi_mfe_webcomponent;if(a){const t=a.querySelectorAll("[lui_web_component]");t?.forEach((t=>{const i=t.context||{};t.context=Object.assign(i,e)}))}};const e=J.resolveContext(l);i(2,d=!1),t.notifyAlertClosed=(e,i)=>{t.isConnected&&O.resolveAlert(e,i)},t.notifyConfirmationModalClosed=e=>{t.isConnected&&O.notifyConfirmationModalClosed(!!e)};const o={compound:c,viewUrl:A,webcomponent:J.checkWebcomponentValue(w)||!0};if(t.getNoShadow())t.innerHTML="";else{i(0,n.innerHTML="",n);t.attachShadow({mode:"open"}).append(n)}O.renderWebComponentCompound(o,t.getNoShadow()?t:n,e).then((e=>{s=e,$||!o.viewUrl?(t.initialized=!0,setTimeout((()=>{O.dispatchLuigiEvent(Q.INITIALIZED,{})}))):s.LuigiClient&&!s.deferLuigiClientWCInit&&(t.initialized=!0,O.dispatchLuigiEvent(Q.INITIALIZED,{}))})),b=!0,t.containerInitialized=!0};return g((async()=>{const t=n.getRootNode()===document?n.parentNode:n.getRootNode().host;t.init=()=>{U(t)},d||U(t),I.registerContainer(t),O.thisComponent=t})),t.$$set=t=>{"activeFeatureToggleList"in t&&i(3,o=t.activeFeatureToggleList),"anchor"in t&&i(4,a=t.anchor),"clientPermissions"in t&&i(5,r=t.clientPermissions),"compoundConfig"in t&&i(6,c=t.compoundConfig),"context"in t&&i(1,l=t.context),"deferInit"in t&&i(2,d=t.deferInit),"dirtyStatus"in t&&i(7,u=t.dirtyStatus),"documentTitle"in t&&i(8,h=t.documentTitle),"hasBack"in t&&i(9,E=t.hasBack),"locale"in t&&i(10,m=t.locale),"noShadow"in t&&i(11,p=t.noShadow),"nodeParams"in t&&i(12,_=t.nodeParams),"pathParams"in t&&i(13,T=t.pathParams),"searchParams"in t&&i(14,C=t.searchParams),"skipInitCheck"in t&&i(15,$=t.skipInitCheck),"theme"in t&&i(16,f=t.theme),"userSettings"in t&&i(17,R=t.userSettings),"viewurl"in t&&i(18,A=t.viewurl),"webcomponent"in t&&i(19,w=t.webcomponent)},[n,l,d,o,a,r,c,u,h,E,m,p,_,T,C,$,f,R,A,w,()=>o&&a&&r&&u&&h&&E&&m&&p&&_&&T&&C&&$&&f&&R,function(t){S[t?"unshift":"push"]((()=>{n=t,i(0,n)}))}]}D(it,{activeFeatureToggleList:{type:"Array",reflect:!1,attribute:"active-feature-toggle-list"},allowRules:{type:"Array",reflect:!1,attribute:"allow-rules"},anchor:{type:"String",reflect:!1,attribute:"anchor"},authData:{type:"Object",reflect:!1,attribute:"auth-data"},clientPermissions:{type:"Object",reflect:!1,attribute:"client-permissions"},context:{type:"String",reflect:!1,attribute:"context"},deferInit:{type:"Boolean",attribute:"defer-init"},dirtyStatus:{type:"Boolean",reflect:!1,attribute:"dirty-status"},documentTitle:{type:"String",reflect:!1,attribute:"document-title"},hasBack:{type:"Boolean",reflect:!1,attribute:"has-back"},label:{type:"String",reflect:!1,attribute:"label"},locale:{type:"String",reflect:!1,attribute:"locale"},noShadow:{type:"Boolean",attribute:"no-shadow"},nodeParams:{type:"Object",reflect:!1,attribute:"node-params"},pathParams:{type:"Object",reflect:!1,attribute:"path-params"},sandboxRules:{type:"Array",reflect:!1,attribute:"sandbox-rules"},searchParams:{type:"Object",reflect:!1,attribute:"search-params"},skipCookieCheck:{type:"String",reflect:!1,attribute:"skip-cookie-check"},skipInitCheck:{type:"Boolean",reflect:!1,attribute:"skip-init-check"},theme:{type:"String",reflect:!1,attribute:"theme"},userSettings:{type:"Object",reflect:!1,attribute:"user-settings"},viewurl:{type:"String",reflect:!1,attribute:"viewurl"},webcomponent:{type:"String",reflect:!1,attribute:"webcomponent"}},[],["unwarn"],!1,(t=>{let e=t=>()=>console.warn(t+" can't be called on luigi-container before its micro frontend is attached to the DOM.");return class extends t{sendCustomMessage=e("sendCustomMessage");updateContext=e("updateContext");updateViewUrl=e("updateViewUrl");closeAlert=e("closeAlert");notifyAlertClosed=e("notifyAlertClosed");notifyConfirmationModalClosed=e("notifyConfirmationModalClosed");attributeChangedCallback(t,e,i){try{super.attributeChangedCallback(t,e,i)}catch(t){console.error("Error in super.attributeChangedCallback",t)}this.containerInitialized&&("context"===t&&this.updateContext(JSON.parse(i)),"auth-data"===t&&B.updateAuthData(this.iframeHandle,JSON.parse(i)))}getNoShadow(){return this.hasAttribute("no-shadow")||this.noShadow}}}));class at extends k{constructor(t){super(),y(this,t,ot,st,o,{activeFeatureToggleList:3,anchor:4,clientPermissions:5,compoundConfig:6,context:1,deferInit:2,dirtyStatus:7,documentTitle:8,hasBack:9,locale:10,noShadow:11,nodeParams:12,pathParams:13,searchParams:14,skipInitCheck:15,theme:16,userSettings:17,viewurl:18,webcomponent:19,unwarn:20},nt)}get activeFeatureToggleList(){return this.$$.ctx[3]}set activeFeatureToggleList(t){this.$$set({activeFeatureToggleList:t}),I()}get anchor(){return this.$$.ctx[4]}set anchor(t){this.$$set({anchor:t}),I()}get clientPermissions(){return this.$$.ctx[5]}set clientPermissions(t){this.$$set({clientPermissions:t}),I()}get compoundConfig(){return this.$$.ctx[6]}set compoundConfig(t){this.$$set({compoundConfig:t}),I()}get context(){return this.$$.ctx[1]}set context(t){this.$$set({context:t}),I()}get deferInit(){return this.$$.ctx[2]}set deferInit(t){this.$$set({deferInit:t}),I()}get dirtyStatus(){return this.$$.ctx[7]}set dirtyStatus(t){this.$$set({dirtyStatus:t}),I()}get documentTitle(){return this.$$.ctx[8]}set documentTitle(t){this.$$set({documentTitle:t}),I()}get hasBack(){return this.$$.ctx[9]}set hasBack(t){this.$$set({hasBack:t}),I()}get locale(){return this.$$.ctx[10]}set locale(t){this.$$set({locale:t}),I()}get noShadow(){return this.$$.ctx[11]}set noShadow(t){this.$$set({noShadow:t}),I()}get nodeParams(){return this.$$.ctx[12]}set nodeParams(t){this.$$set({nodeParams:t}),I()}get pathParams(){return this.$$.ctx[13]}set pathParams(t){this.$$set({pathParams:t}),I()}get searchParams(){return this.$$.ctx[14]}set searchParams(t){this.$$set({searchParams:t}),I()}get skipInitCheck(){return this.$$.ctx[15]}set skipInitCheck(t){this.$$set({skipInitCheck:t}),I()}get theme(){return this.$$.ctx[16]}set theme(t){this.$$set({theme:t}),I()}get userSettings(){return this.$$.ctx[17]}set userSettings(t){this.$$set({userSettings:t}),I()}get viewurl(){return this.$$.ctx[18]}set viewurl(t){this.$$set({viewurl:t}),I()}get webcomponent(){return this.$$.ctx[19]}set webcomponent(t){this.$$set({webcomponent:t}),I()}get unwarn(){return this.$$.ctx[20]}}D(at,{activeFeatureToggleList:{type:"Array",reflect:!1,attribute:"active-feature-toggle-list"},anchor:{type:"String",reflect:!1,attribute:"anchor"},clientPermissions:{type:"Object",reflect:!1,attribute:"client-permissions"},compoundConfig:{type:"Object",reflect:!1,attribute:"compound-config"},context:{type:"String",reflect:!1,attribute:"context"},deferInit:{type:"Boolean",attribute:"defer-init"},dirtyStatus:{type:"Boolean",reflect:!1,attribute:"dirty-status"},documentTitle:{type:"String",reflect:!1,attribute:"document-title"},hasBack:{type:"Boolean",reflect:!1,attribute:"has-back"},locale:{type:"String",reflect:!1,attribute:"locale"},noShadow:{type:"Boolean",attribute:"no-shadow",reflect:!1},nodeParams:{type:"Object",reflect:!1,attribute:"node-params"},pathParams:{type:"Object",reflect:!1,attribute:"path-params"},searchParams:{type:"Object",reflect:!1,attribute:"search-params"},skipInitCheck:{type:"Boolean",reflect:!1,attribute:"skip-init-check"},theme:{type:"String",reflect:!1,attribute:"theme"},userSettings:{type:"Object",reflect:!1,attribute:"user-settings"},viewurl:{type:"String",reflect:!1,attribute:"viewurl"},webcomponent:{type:"String",reflect:!1,attribute:"webcomponent"}},[],["unwarn"],!1,(t=>{let e=t=>()=>console.warn(t+" can't be called on luigi-container before its micro frontend is attached to the DOM.");return class extends t{updateContext=e("updateContext");notifyAlertClosed=e("notifyAlertClosed");notifyConfirmationModalClosed=e("notifyConfirmationModalClosed");attributeChangedCallback(t,e,i){try{super.attributeChangedCallback(t,e,i)}catch(t){console.warn("Error in attributeChangedCallback",t)}this.containerInitialized&&"context"===t&&this.updateContext(JSON.parse(i))}getNoShadow(){return this.hasAttribute("no-shadow")||this.noShadow}}})),customElements.get("luigi-container")||customElements.define("luigi-container",it.element),customElements.get("luigi-compound-container")||customElements.define("luigi-compound-container",at.element);export{at as LuigiCompoundContainer,it as LuigiContainer,Q as LuigiEvents,Q as default};
|
|
1
|
+
"undefined"!=typeof window&&((window.__svelte??={}).v??=new Set).add("5");let e=!1;e=!0;const t={},n=Symbol(),r=Symbol("filename"),i="http://www.w3.org/1999/xhtml",s=globalThis.process?.env?.NODE_ENV;var o=s&&!s.toLowerCase().startsWith("prod"),a=Array.isArray,l=Array.prototype.indexOf,c=Array.prototype.includes,u=Array.from,d=Object.keys,f=Object.defineProperty,h=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyDescriptors,_=Object.prototype,v=Array.prototype,m=Object.getPrototypeOf,g=Object.isExtensible;const E=()=>{};function w(e){return e()}function T(e){for(var t=0;t<e.length;t++)e[t]()}function S(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}const y=16,b=32,C=64,R=512,A=1024,O=2048,I=4096,$=8192,U=16384,k=32768,N=1<<25,L=65536,D=1<<17,P=1<<19,x=65536,M=1<<21,Q=1<<22,H=1<<23,W=Symbol("$state"),j=Symbol("legacy props"),G=Symbol(""),B=Symbol("proxy path"),V=Symbol("attributes"),q=Symbol("class"),F=Symbol("style"),K=Symbol("text"),z=Symbol("hmr anchor"),X=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},J=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");function Z(e){if(o){const t=new Error(`lifecycle_outside_component\n\`${e}(...)\` can only be used during component initialisation\nhttps://svelte.dev/e/lifecycle_outside_component`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/lifecycle_outside_component")}var Y="font-weight: bold",ee="font-weight: normal";function te(e){o?console.warn(`%c[svelte] hydration_mismatch\n%c${e?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${e}`:"Hydration failed because the initial UI does not match what was rendered on the server"}\nhttps://svelte.dev/e/hydration_mismatch`,Y,ee):console.warn("https://svelte.dev/e/hydration_mismatch")}function ne(e){o?console.warn(`%c[svelte] state_proxy_equality_mismatch\n%cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${e}\` will produce unexpected results\nhttps://svelte.dev/e/state_proxy_equality_mismatch`,Y,ee):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}let re,ie=!1;function se(e){ie=e}function oe(e){if(null===e)throw te(),t;return re=e}function ae(){return oe(qt(re))}function le(e=!0){for(var t=0,n=re;;){if(8===n.nodeType){var r=n.data;if("]"===r){if(0===t)return n;t-=1}else("["===r||"[!"===r||"["===r[0]&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=qt(n);e&&n.remove(),n=i}}function ce(e){return e===this.v}function ue(e){return t=e,n=this.v,!(t!=t?n==n:t!==n||null!==t&&"object"==typeof t||"function"==typeof t);var t,n}function de(e,t){return e.label=t,fe(e.v,t),e}function fe(e,t){return e?.[B]?.(t),e}function he(e){const t=new Error,n=function(){const e=Error.stackTraceLimit;Error.stackTraceLimit=1/0;const t=(new Error).stack;if(Error.stackTraceLimit=e,!t)return[];const n=t.split("\n"),r=[];for(let e=0;e<n.length;e++){const t=n[e],i=t.replaceAll("\\","/");if("Error"!==t.trim()){if(t.includes("validate_each_keys"))return[];i.includes("svelte/src/internal")||i.includes("node_modules/.vite")||r.push(t)}}return r}();return 0===n.length?null:(n.unshift("\n"),f(t,"stack",{value:n.join("\n")}),f(t,"name",{value:e}),t)}function pe(e,t){if(!o)throw new Error("invariant(...) was not guarded by if (DEV)");e||function(e){if(o){const t=new Error(`invariant_violation\nAn invariant violation occurred, meaning Svelte's internal assumptions were flawed. This is a bug in Svelte, not your app — please open an issue at https://github.com/sveltejs/svelte, citing the following message: "${e}"\nhttps://svelte.dev/e/invariant_violation`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/invariant_violation")}(t)}let _e=null;function ve(e){_e=e}let me=null;function ge(e){me=e}let Ee=null;function we(e){Ee=e}function Te(t,n=!1,r){_e={p:_e,i:!1,c:null,e:null,s:t,x:null,r:Cn,l:e&&!n?{s:null,u:null,$:[]}:null},o&&(_e.function=r,Ee=r)}function Se(e){var t=_e,n=t.e;if(null!==n)for(var r of(t.e=null,n))nn(r);return void 0!==e&&(t.x=e),t.i=!0,_e=t.p,o&&(Ee=_e?.function??null),e??{}}function ye(){return!e||null!==_e&&null===_e.l}let be=[];function Ce(){var e=be;be=[],T(e)}function Re(e){if(0===be.length&&!Be){var t=be;queueMicrotask(()=>{t===be&&Ce()})}be.push(e)}function Ae(){for(;be.length>0;)Ce()}const Oe=new WeakMap;function Ie(e){var t=Cn;if(null===t)return Sn.f|=H,e;if(o&&e instanceof Error&&!Oe.has(e)&&Oe.set(e,function(e,t){const n=h(e,"message");if(n&&!n.configurable)return;var i=Ht?" ":"\t",s=`\n${i}in ${t.fn?.name||"<unknown>"}`,o=t.ctx;for(;null!==o;)s+=`\n${i}in ${o.function?.[r].split("/").pop()}`,o=o.p;return{message:e.message+`\n${s}\n`,stack:e.stack?.split("\n").filter(e=>!e.includes("svelte/src/internal")).join("\n")}}(e,t)),0===(t.f&k)&&!(4&t.f))throw o&&!t.parent&&e instanceof Error&&Ue(e),e;$e(e,t)}function $e(e,t){for(;null!==t;){if(128&t.f){if(0===(t.f&k))throw e;try{return void t.b.error(e)}catch(t){e=t}}t=t.parent}throw o&&e instanceof Error&&Ue(e),e}function Ue(e){const t=Oe.get(e);t&&(f(e,"message",{value:t.message}),f(e,"stack",{value:t.stack}))}const ke=-7169;function Ne(e,t){e.f=e.f&ke|t}function Le(e){0!==(e.f&R)||null===e.deps?Ne(e,A):Ne(e,I)}function De(e){if(null!==e)for(const t of e)2&t.f&&0!==(t.f&x)&&(t.f^=x,De(t.deps))}function Pe(e,t,n){0!==(e.f&O)?t.add(e):0!==(e.f&I)&&n.add(e),De(e.deps),Ne(e,A)}let xe=!1;let Me=null,Qe=null,He=null,We=null,je=null,Ge=null,Be=!1,Ve=!1,qe=null,Fe=null;var Ke=0,ze=new Set;let Xe=1;class Je{id=Xe++;#e=!1;linked=!0;#t=null;#n=null;async_deriveds=new Map;current=new Map;previous=new Map;unblocked=new Set;#r=new Set;#i=new Set;#s=new Set;#o=0;#a=new Map;#l=null;#c=[];#u=[];#d=new Set;#f=new Set;#h=new Map;#p=new Set;is_fork=!1;#_=!1;#v(){if(this.is_fork)return!0;for(const n of this.#a.keys()){for(var e=n,t=!1;null!==e.parent;){if(this.#h.has(e)){t=!0;break}e=e.parent}if(!t)return!0}return!1}skip_effect(e){this.#h.has(e)||this.#h.set(e,{d:[],m:[]}),this.#p.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#h.get(e);if(n){for(var r of(this.#h.delete(e),n.d))Ne(r,O),t(r);for(r of n.m)Ne(r,I),t(r)}this.#p.add(e)}#m(){if(this.#e=!0,Ke++>1e3&&(this.#g(),function(){if(o){var e=new Map;for(const n of He.current.keys())for(const[r,i]of n.updated??[]){var t=e.get(r);t||(t={error:i.error,count:0},e.set(r,t)),t.count+=i.count}for(const t of e.values())t.error&&console.error(t.error)}try{!function(){if(o){const e=new Error("effect_update_depth_exceeded\nMaximum update depth exceeded. This typically indicates that an effect reads and writes the same piece of state\nhttps://svelte.dev/e/effect_update_depth_exceeded");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}()}catch(e){o&&f(e,"stack",{value:""}),$e(e,Ge)}}()),o)for(const e of this.current.keys())ze.add(e);if(!this.#v()){for(const e of this.#d)this.#f.delete(e),Ne(e,O),this.schedule(e);for(const e of this.#f)Ne(e,I),this.schedule(e)}const e=this.#c;this.#c=[],this.apply();var t=qe=[],n=[],r=Fe=[];for(const r of e)try{this.#E(r,t,n)}catch(e){throw st(r),e}if(He=null,r.length>0){var i=Je.ensure();for(const e of r)i.schedule(e)}if(qe=null,Fe=null,this.#v()){this.#w(n),this.#w(t);for(const[e,t]of this.#h)it(e,t);return void(r.length>0&&He.#m())}const s=this.#T();if(s)s.#S(this);else{this.#d.clear(),this.#f.clear();for(const e of this.#r)e(this);this.#r.clear(),We=this,et(n),et(t),We=null,this.#l?.resolve();var a=He;if(this.linked&&0===this.#o&&this.#g(),this.#c.length>0){null===a&&(a=this,this.#y());const e=a;e.#c.push(...this.#c.filter(t=>!e.#c.includes(t)))}null!==a&&a.#m()}}#E(e,t,n){e.f^=A;for(var r=e.first;null!==r;){var i=r.f,s=!!(96&i);if(!(s&&0!==(i&A)||0!==(i&$)||this.#h.has(r))&&null!==r.fn){s?r.f^=A:4&i?t.push(r):Pn(r)&&(0!==(i&y)&&this.#f.add(r),Wn(r));var o=r.first;if(null!==o){r=o;continue}}for(;null!==r;){var a=r.next;if(null!==a){r=a;break}r=r.parent}}}#T(){for(var e=this.#t;null!==e;){if(!e.is_fork)for(const[t,[,n]]of this.current)if(e.current.has(t)&&!n)return e;e=e.#t}return null}#S(e){for(const[t,n]of e.current)!this.previous.has(t)&&e.previous.has(t)&&this.previous.set(t,e.previous.get(t)),this.current.set(t,n);for(const[t,n]of e.async_deriveds){const e=this.async_deriveds.get(t);e&&n.promise.then(e.resolve)}const t=e=>{var n=e.reactions;if(null!==n)for(const e of n){var r=e.f;if(2&r)t(e);else{var i=e;4194320&r&&!this.async_deriveds.has(i)&&(this.#f.delete(i),Ne(i,O),this.schedule(i))}}};for(const e of this.current.keys())t(e);this.oncommit(()=>e.discard()),e.#g(),He=this,this.#m()}#w(e){for(var t=0;t<e.length;t+=1)Pe(e[t],this.#d,this.#f)}capture(e,t,r=!1){e.v===n||this.previous.has(e)||this.previous.set(e,e.v),0===(e.f&H)&&(this.current.set(e,[t,r]),je?.set(e,t)),this.is_fork||(e.v=t)}activate(){He=this}deactivate(){He=null,je=null}flush(){try{o&&ze.clear(),Ve=!0,He=this,this.#m()}finally{if(Ke=0,Ge=null,qe=null,Fe=null,Ve=!1,He=null,je=null,St.clear(),o)for(const e of ze)e.updated=null}}discard(){for(const e of this.#i)e(this);this.#i.clear(),this.#s.clear(),this.#g()}register_created_effect(e){this.#u.push(e)}#b(){this.#g();for(let u=Me;null!==u;u=u.#n){var e=u.id<this.id,t=[];for(const[r,[i,s]]of this.current){if(u.current.has(r)){var n=u.current.get(r)[0];if(!e||i===n)continue;u.current.set(r,[i,s])}t.push(r)}if(e)for(const[e,t]of this.async_deriveds){const n=u.async_deriveds.get(e);n&&t.promise.then(n.resolve)}if(u.#e){var r=[...u.current.keys()].filter(e=>!this.current.has(e));if(0===r.length)e&&u.discard();else if(t.length>0){if(o&&pe(0===u.#c.length,"Batch has scheduled roots"),e)for(const e of this.#p)u.unskip_effect(e,e=>{4194320&e.f?u.schedule(e):u.#w([e])});u.activate();var i=new Set,s=new Map;for(var a of t)tt(a,r,i,s);s=new Map;var l=[...u.current.keys()].filter(e=>!this.current.has(e)||this.current.get(e)[0]!==e.v);if(l.length>0)for(const e of this.#u)155648&e.f||!nt(e,l,s)||(4194320&e.f?(Ne(e,O),u.schedule(e)):u.#d.add(e));if(u.#c.length>0){for(var c of(u.apply(),u.#c))u.#E(c,[],[]);u.#c=[]}u.deactivate()}}}}increment(e,t){if(this.#o+=1,e){let e=this.#a.get(t)??0;this.#a.set(t,e+1)}}decrement(e,t){if(this.#o-=1,e){let e=this.#a.get(t)??0;1===e?this.#a.delete(t):this.#a.set(t,e-1)}this.#_||(this.#_=!0,Re(()=>{this.#_=!1,this.linked&&this.flush()}))}transfer_effects(e,t){for(const t of e)this.#d.add(t);for(const e of t)this.#f.add(e);e.clear(),t.clear()}oncommit(e){this.#r.add(e)}ondiscard(e){this.#i.add(e)}on_fork_commit(e){this.#s.add(e)}run_fork_commit_callbacks(){for(const e of this.#s)e(this);this.#s.clear()}settled(){return(this.#l??=S()).promise}static ensure(){if(null===He){const e=He=new Je;e.#y(),Ve||Be||Re(()=>{e.#e||e.flush()})}return He}apply(){je=null}schedule(e){if(Ge=e,e.b?.is_pending&&16777228&e.f&&0===(e.f&k))e.b.defer_effect(e);else{for(var t=e;null!==t.parent;){var n=(t=t.parent).f;if(!(null===qe||t!==Cn||null!==Sn&&2&Sn.f))return;if(96&n){if(0===(n&A))return;t.f^=A}}this.#c.push(t)}}#y(){null===Qe?Me=Qe=this:(Qe.#n=this,this.#t=Qe),Qe=this}#g(){var e=this.#t,t=this.#n;null===e?Me=t:e.#n=t,null===t?Qe=e:t.#t=e,this.linked=!1}}function Ze(e){var t=Be;Be=!0;try{var n;for(e&&(null===He||He.is_fork||He.flush(),n=e());;){if(Ae(),null===He)return n;He.flush()}}finally{Be=t}}let Ye=null;function et(e){var t=e.length;if(0!==t){for(var n=0;n<t;){var r=e[n++];if(!(24576&r.f)&&Pn(r)&&(Ye=new Set,Wn(r),null===r.deps&&null===r.first&&null===r.nodes&&null===r.teardown&&null===r.ac&&fn(r),Ye?.size>0)){St.clear();for(const e of Ye){if(24576&e.f)continue;const t=[e];let n=e.parent;for(;null!==n;)Ye.has(n)&&(Ye.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){const n=t[e];24576&n.f||Wn(n)}}Ye.clear()}}Ye=null}}function tt(e,t,n,r){if(!n.has(e)&&(n.add(e),null!==e.reactions))for(const i of e.reactions){const e=i.f;2&e?tt(i,t,n,r):4194320&e&&0===(e&O)&&nt(i,t,r)&&(Ne(i,O),rt(i))}}function nt(e,t,n){const r=n.get(e);if(void 0!==r)return r;if(null!==e.deps)for(const r of e.deps){if(c.call(t,r))return!0;if(2&r.f&&nt(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function rt(e){He.schedule(e)}function it(e,t){if(0===(e.f&b)||0===(e.f&A)){0!==(e.f&O)?t.d.push(e):0!==(e.f&I)&&t.m.push(e),Ne(e,A);for(var n=e.first;null!==n;)it(n,t),n=n.next}}function st(e){Ne(e,A);for(var t=e.first;null!==t;)st(t),t=t.next}class ot{parent;is_pending=!1;transform_error;#C;#R=ie?re:null;#A;#O;#I;#$=null;#U=null;#k=null;#N=null;#L=0;#D=0;#P=!1;#d=new Set;#f=new Set;#x=null;#M=function(e){let t,n=0,r=Ct(0);return o&&de(r,"createSubscriber version"),()=>{Yt()&&(jn(r),sn(()=>(0===n&&(t=Vn(()=>e(()=>kt(r)))),n+=1,()=>{Re(()=>{n-=1,0===n&&(t?.(),t=void 0,kt(r))})})))}}(()=>(this.#x=Ct(this.#L),o&&de(this.#x,"$effect.pending()"),()=>{this.#x=null}));constructor(e,t,n,r){this.#C=e,this.#A=t,this.#O=e=>{var t=Cn;t.b=this,t.f|=128,n(e)},this.parent=Cn.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#I=an(()=>{if(ie){const e=this.#R;ae();const t="[!"===e.data;if(e.data.startsWith("[?")){const t=JSON.parse(e.data.slice(2));this.#Q(t)}else t?this.#H():this.#W()}else this.#j()},589824),ie&&(this.#C=re)}#W(){try{this.#$=ln(()=>this.#O(this.#C))}catch(e){this.error(e)}}#Q(e){const t=this.#A.failed;t&&(this.#k=ln(()=>{t(this.#C,()=>e,()=>()=>{})}))}#H(){const e=this.#A.pending;e&&(this.is_pending=!0,this.#U=ln(()=>e(this.#C)),Re(()=>{var e=this.#N=document.createDocumentFragment(),t=Bt();e.append(t),this.#$=this.#G(()=>ln(()=>this.#O(t))),0===this.#D&&(this.#C.before(e),this.#N=null,hn(this.#U,()=>{this.#U=null}),this.#B(He))}))}#j(){try{if(this.is_pending=this.has_pending_snippet(),this.#D=0,this.#L=0,this.#$=ln(()=>{this.#O(this.#C)}),this.#D>0){var e=this.#N=document.createDocumentFragment();mn(this.#$,e);const t=this.#A.pending;this.#U=ln(()=>t(this.#C))}else this.#B(He)}catch(e){this.error(e)}}#B(e){this.is_pending=!1,e.transfer_effects(this.#d,this.#f)}defer_effect(e){Pe(e,this.#d,this.#f)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#A.pending}#G(e){var t=Cn,n=Sn,r=_e;Rn(this.#I),bn(this.#I),ve(this.#I.ctx);try{return Je.ensure(),e()}catch(e){return Ie(e),null}finally{Rn(t),bn(n),ve(r)}}#V(e,t){this.has_pending_snippet()?(this.#D+=e,0===this.#D&&(this.#B(t),this.#U&&hn(this.#U,()=>{this.#U=null}),this.#N&&(this.#C.before(this.#N),this.#N=null))):this.parent&&this.parent.#V(e,t)}update_pending_count(e,t){this.#V(e,t),this.#L+=e,this.#x&&!this.#P&&(this.#P=!0,Re(()=>{this.#P=!1,this.#x&&$t(this.#x,this.#L)}))}get_effect_pending(){return this.#M(),jn(this.#x)}error(e){if(!this.#A.onerror&&!this.#A.failed)throw e;He?.is_fork?(this.#$&&He.skip_effect(this.#$),this.#U&&He.skip_effect(this.#U),this.#k&&He.skip_effect(this.#k),He.on_fork_commit(()=>{this.#q(e)})):this.#q(e)}#q(e){this.#$&&(dn(this.#$),this.#$=null),this.#U&&(dn(this.#U),this.#U=null),this.#k&&(dn(this.#k),this.#k=null),ie&&(oe(this.#R),function(e=1){if(ie){for(var t=e,n=re;t--;)n=qt(n);re=n}}(),oe(le()));var t=this.#A.onerror;let n=this.#A.failed;var r=!1,i=!1;const s=()=>{r?o?console.warn("%c[svelte] svelte_boundary_reset_noop\n%cA `<svelte:boundary>` `reset` function only resets the boundary the first time it is called\nhttps://svelte.dev/e/svelte_boundary_reset_noop",Y,ee):console.warn("https://svelte.dev/e/svelte_boundary_reset_noop"):(r=!0,i&&function(){if(o){const e=new Error("svelte_boundary_reset_onerror\nA `<svelte:boundary>` `reset` function cannot be called while an error is still being handled\nhttps://svelte.dev/e/svelte_boundary_reset_onerror");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}(),null!==this.#k&&hn(this.#k,()=>{this.#k=null}),this.#G(()=>{this.#j()}))},a=e=>{try{i=!0,t?.(e,s),i=!1}catch(e){$e(e,this.#I&&this.#I.parent)}n&&(this.#k=this.#G(()=>{try{return ln(()=>{var t=Cn;t.b=this,t.f|=128,n(this.#C,()=>e,()=>s)})}catch(e){return $e(e,this.#I.parent),null}}))};Re(()=>{var t;try{t=this.transform_error(e)}catch(e){return void $e(e,this.#I&&this.#I.parent)}null!==t&&"object"==typeof t&&"function"==typeof t.then?t.then(a,e=>$e(e,this.#I&&this.#I.parent)):a(t)})}}function at(e,t,r,i){const s=ye()?ht:_t;var a=e.filter(e=>!e.settled);if(0!==r.length||0!==a.length){var l=Cn,c=function(){var e=Cn,t=Sn,n=_e,r=He;if(o)var i=me;return function(s=!0){Rn(e),bn(t),ve(n),s&&0===(e.f&U)&&(r?.activate(),r?.apply()),o&&(dt(null),ge(i))}}(),u=1===a.length?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null,d=ct();0!==r.length?u?u.then(()=>{c(),h(),lt()}):h():u.then(()=>f(t.map(s))).finally(d)}else i(t.map(s));function f(e){if(0===(l.f&U)){c();try{i(e)}catch(e){$e(e,l)}lt()}}function h(){Promise.all(r.map(e=>function(e,t,r){let i=Cn;null===i&&function(){if(o){const e=new Error("async_derived_orphan\nCannot create a `$derived(...)` with an `await` expression outside of an effect tree\nhttps://svelte.dev/e/async_derived_orphan");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/async_derived_orphan")}();var s=void 0,a=Ct(n);o&&(a.label=t??e.toString());var l=!Sn,c=new Set;(function(e){Zt(4718592,e)})(()=>{var t=Cn;o&&(ut={effect:t,effect_deps:new Set,warned:!1});var n=S();s=n.promise;try{Promise.resolve(e()).then(n.resolve,e=>{e!==X&&n.reject(e)}).finally(lt)}catch(e){n.reject(e),lt()}if(o){if(ut){if(null!==t.deps)for(let e=0;e<In;e+=1)ut.effect_deps.add(t.deps[e]);if(null!==On)for(let e=0;e<On.length;e+=1)ut.effect_deps.add(On[e])}ut=null}var u=He;if(l){if(0!==(t.f&k))var d=ct();if(i.b.is_rendered())u.async_deriveds.get(t)?.reject(pt);else for(const e of c.values())e.reject(pt);c.add(n),u.async_deriveds.set(t,n)}const f=(e,i=void 0)=>{o&&(ut=null),d?.(),c.delete(n),i!==pt&&(u.activate(),i?(a.f|=H,$t(a,i)):(0!==(a.f&H)&&(a.f^=H),$t(a,e),o&&void 0!==r&&(ft.add(a),setTimeout(()=>{ft.has(a)&&0===(t.f&U)&&(!function(e,t){o?console.warn(`%c[svelte] await_waterfall\n%cAn async derived, \`${e}\` (${t}) was not read immediately after it resolved. This often indicates an unnecessary waterfall, which can slow down your app\nhttps://svelte.dev/e/await_waterfall`,Y,ee):console.warn("https://svelte.dev/e/await_waterfall")}(a.label,r),ft.delete(a))}))),u.deactivate())};n.promise.then(f,e=>f(null,e||"unknown"))}),en(()=>{for(const e of c)e.reject(pt)}),o&&(a.f|=Q);return new Promise(e=>{function t(n){function r(){n===s?e(a):t(s)}n.then(r,r)}t(s)})}(e))).then(e=>f([...t.map(s),...e])).catch(e=>$e(e,l)).finally(d)}}function lt(e=!0){Rn(null),bn(null),ve(null),e&&He?.deactivate(),o&&(dt(null),ge(null))}function ct(){var e=Cn,t=e.b,n=He,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),()=>{t.update_pending_count(-1,n),n.decrement(r,e)}}let ut=null;function dt(e){ut=e}const ft=new Set;function ht(e){null!==Cn&&(Cn.f|=P);const t={ctx:_e,deps:null,effects:null,equals:ce,f:2050,fn:e,reactions:null,rv:0,v:n,wv:0,parent:Cn,ac:null};return t}const pt=Symbol("obsolete");function _t(e){const t=ht(e);return t.equals=ue,t}function vt(e){var t=e.effects;if(null!==t){e.effects=null;for(var n=0;n<t.length;n+=1)dn(t[n])}}let mt=[];function gt(e){var t,n=Cn,r=e.parent;if(!wn&&null!==r&&24576&r.f)return o?console.warn("%c[svelte] derived_inert\n%cReading a derived belonging to a now-destroyed effect may result in stale values\nhttps://svelte.dev/e/derived_inert",Y,ee):console.warn("https://svelte.dev/e/derived_inert"),e.v;if(Rn(r),o){let r=Tt;yt(new Set);try{c.call(mt,e)&&function(){if(o){const e=new Error("derived_references_self\nA derived value cannot reference itself recursively\nhttps://svelte.dev/e/derived_references_self");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/derived_references_self")}(),mt.push(e),e.f&=-65537,vt(e),t=Mn(e)}finally{Rn(n),yt(r),mt.pop()}}else try{e.f&=-65537,vt(e),t=Mn(e)}finally{Rn(n)}return t}function Et(e){var t=gt(e);e.equals(t)||(e.wv=Dn(),He?.is_fork&&null!==e.deps||(null!==He?(He.capture(e,t,!0),We?.capture(e,t,!0)):e.v=t,null!==e.deps))?wn||(null!==je?(Yt()||He?.is_fork)&&je.set(e,t):Le(e)):Ne(e,A)}function wt(e){if(null!==e.effects)for(const t of e.effects)t.teardown&&Wn(t)}let Tt=new Set;const St=new Map;function yt(e){Tt=e}let bt=!1;function Ct(e,t){var n={f:0,v:e,reactions:null,equals:ce,rv:0,wv:0};return n}function Rt(e,t){const n=Ct(e);var r;return r=n,null!==Sn&&(null===An?An=[r]:An.push(r)),n}function At(t,n=!1,r=!0){const i=Ct(t);return n||(i.equals=ue),e&&r&&null!==_e&&null!==_e.l&&(_e.l.s??=[]).push(i),i}function Ot(e,t){return It(e,Vn(()=>jn(e))),t}function It(e,t,n=!1){null===Sn||yn&&0===(Sn.f&D)||!ye()||!(4325394&Sn.f)||null!==An&&c.call(An,e)||function(){if(o){const e=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/state_unsafe_mutation")}();let r=n?Dt(t):t;return o&&fe(r,e.label),$t(e,r,Fe)}function $t(e,t,n=null){if(!e.equals(t)){St.set(e,wn?t:e.v);var r=Je.ensure();if(r.capture(e,t),o){if(null!==Cn){e.updated??=new Map;const t=(e.updated.get("")?.count??0)+1;if(e.updated.set("",{error:null,count:t}),t>5){const t=he("updated at");if(null!==t){let n=e.updated.get(t.stack);n||(n={error:t,count:0},e.updated.set(t.stack,n)),n.count++}}}null!==Cn&&(e.set_during_effect=!0)}if(2&e.f){const t=e;0!==(e.f&O)&>(t),null===je&&Le(t)}e.wv=Dn(),Nt(e,O,n),!ye()||null===Cn||0===(Cn.f&A)||96&Cn.f||(null===$n?function(e){$n=e}([e]):$n.push(e)),!r.is_fork&&Tt.size>0&&!bt&&Ut()}return t}function Ut(){bt=!1;for(const e of Tt){let t;0!==(e.f&A)&&Ne(e,I);try{t=Pn(e)}catch{t=!0}t&&Wn(e)}Tt.clear()}function kt(e){It(e,e.v+1)}function Nt(e,t,n){var r=e.reactions;if(null!==r)for(var i=ye(),s=r.length,o=0;o<s;o++){var a=r[o],l=a.f;if(i||a!==Cn){var c=0===(l&O);if(c&&Ne(a,t),0!==(l&D))Tt.add(a);else if(2&l){var u=a;je?.delete(u),0===(l&x)&&(l&R&&(null===Cn||0===(Cn.f&M))&&(a.f|=x),Nt(u,I,n))}else if(c){var d=a;0!==(l&y)&&null!==Ye&&Ye.add(d),null!==n?n.push(d):rt(d)}}}}const Lt=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function Dt(e){if("object"!=typeof e||null===e||W in e)return e;const t=m(e);if(t!==_&&t!==v)return e;var r=new Map,i=a(e),s=Rt(0),l=Nn,c=e=>{if(Nn===l)return e();var t=Sn,n=Nn;bn(null),Ln(l);var r=e();return bn(t),Ln(n),r};i&&(r.set("length",Rt(e.length)),o&&(e=new Proxy(e,{get(e,t,n){var r=Reflect.get(e,t,n);return Mt.has(t)?function(...e){bt=!0;var t=r.apply(this,e);return Ut(),t}:r}})));var u="";let d=!1;function f(e){if(!d){d=!0,de(s,`${u=e} version`);for(const[e,t]of r)de(t,Pt(u,e));d=!1}}return new Proxy(e,{defineProperty(e,t,n){"value"in n&&!1!==n.configurable&&!1!==n.enumerable&&!1!==n.writable||function(){if(o){const e=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/state_descriptors_fixed")}();var i=r.get(t);return void 0===i?c(()=>{var e=Rt(n.value);return r.set(t,e),o&&"string"==typeof t&&de(e,Pt(u,t)),e}):It(i,n.value,!0),!0},deleteProperty(e,t){var i=r.get(t);if(void 0===i){if(t in e){const e=c(()=>Rt(n));r.set(t,e),kt(s),o&&de(e,Pt(u,t))}}else It(i,n),kt(s);return!0},get(t,i,s){if(i===W)return e;if(o&&i===B)return f;var a=r.get(i),l=i in t;if(void 0!==a||l&&!h(t,i)?.writable||(a=c(()=>{var e=Rt(Dt(l?t[i]:n));return o&&de(e,Pt(u,i)),e}),r.set(i,a)),void 0!==a){var d=jn(a);return d===n?void 0:d}return Reflect.get(t,i,s)},getOwnPropertyDescriptor(e,t){var i=Reflect.getOwnPropertyDescriptor(e,t);if(i&&"value"in i){var s=r.get(t);s&&(i.value=jn(s))}else if(void 0===i){var o=r.get(t),a=o?.v;if(void 0!==o&&a!==n)return{enumerable:!0,configurable:!0,value:a,writable:!0}}return i},has(e,t){if(t===W)return!0;var i=r.get(t),s=void 0!==i&&i.v!==n||Reflect.has(e,t);if((void 0!==i||null!==Cn&&(!s||h(e,t)?.writable))&&(void 0===i&&(i=c(()=>{var r=Rt(s?Dt(e[t]):n);return o&&de(r,Pt(u,t)),r}),r.set(t,i)),jn(i)===n))return!1;return s},set(e,t,a,l){var d=r.get(t),f=t in e;if(i&&"length"===t)for(var p=a;p<d.v;p+=1){var _=r.get(p+"");void 0!==_?It(_,n):p in e&&(_=c(()=>Rt(n)),r.set(p+"",_),o&&de(_,Pt(u,p)))}void 0===d?f&&!h(e,t)?.writable||(d=c(()=>Rt(void 0)),o&&de(d,Pt(u,t)),It(d,Dt(a)),r.set(t,d)):(f=d.v!==n,It(d,c(()=>Dt(a))));var v=Reflect.getOwnPropertyDescriptor(e,t);if(v?.set&&v.set.call(l,a),!f){if(i&&"string"==typeof t){var m=r.get("length"),g=Number(t);Number.isInteger(g)&&g>=m.v&&It(m,g+1)}kt(s)}return!0},ownKeys(e){jn(s);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return void 0===t||t.v!==n});for(var[i,o]of r)o.v===n||i in e||t.push(i);return t},setPrototypeOf(){!function(){if(o){const e=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/state_prototype_fixed")}()}})}function Pt(e,t){return"symbol"==typeof t?`${e}[Symbol(${t.description??""})]`:Lt.test(t)?`${e}.${t}`:/^\d+$/.test(t)?`${e}[${t}]`:`${e}['${t}']`}function xt(e){try{if(null!==e&&"object"==typeof e&&W in e)return e[W]}catch{}return e}const Mt=new Set(["copyWithin","fill","pop","push","reverse","shift","sort","splice","unshift"]);var Qt,Ht,Wt,jt;function Gt(){if(void 0===Qt){Qt=window,Ht=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Wt=h(t,"firstChild").get,jt=h(t,"nextSibling").get,g(e)&&(e[q]=void 0,e[V]=null,e[F]=void 0,e.__e=void 0),g(n)&&(n[K]=void 0),o&&(e.__svelte_meta=null,function(){const e=Array.prototype,t=Array.__svelte_cleanup;t&&t();const{indexOf:n,lastIndexOf:r,includes:i}=e;e.indexOf=function(e,t){const r=n.call(this,e,t);if(-1===r)for(let n=t??0;n<this.length;n+=1)if(xt(this[n])===e){ne("array.indexOf(...)");break}return r},e.lastIndexOf=function(e,t){const n=r.call(this,e,t??this.length-1);if(-1===n)for(let n=0;n<=(t??this.length-1);n+=1)if(xt(this[n])===e){ne("array.lastIndexOf(...)");break}return n},e.includes=function(e,t){const n=i.call(this,e,t);if(!n)for(let t=0;t<this.length;t+=1)if(xt(this[t])===e){ne("array.includes(...)");break}return n},Array.__svelte_cleanup=()=>{e.indexOf=n,e.lastIndexOf=r,e.includes=i}}())}}function Bt(e=""){return document.createTextNode(e)}function Vt(e){return Wt.call(e)}function qt(e){return jt.call(e)}function Ft(e,t=!1){if(!ie){var n=Vt(e);return n instanceof Comment&&""===n.data?qt(n):n}if(t){if(3!==re?.nodeType){var r=Bt();return re?.before(r),oe(r),r}zt(re)}return re}function Kt(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??i,e,r)}function zt(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;null!==t&&3===t.nodeType;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function Xt(e){var t=Sn,n=Cn;bn(null),Rn(null);try{return e()}finally{bn(t),Rn(n)}}function Jt(e){null===Cn&&(null===Sn&&function(e){if(o){const t=new Error(`effect_orphan\n\`${e}\` can only be used inside an effect (e.g. during component initialisation)\nhttps://svelte.dev/e/effect_orphan`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/effect_orphan")}(e),function(){if(o){const e=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}()),wn&&function(e){if(o){const t=new Error(`effect_in_teardown\n\`${e}\` cannot be used inside an effect cleanup function\nhttps://svelte.dev/e/effect_in_teardown`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/effect_in_teardown")}(e)}function Zt(e,t){var n=Cn;if(o)for(;null!==n&&0!==(n.f&D);)n=n.parent;null!==n&&0!==(n.f&$)&&(e|=$);var r={ctx:_e,deps:null,nodes:null,f:e|O|R,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};o&&(r.component_function=Ee),He?.register_created_effect(r);var i=r;if(4&e)null!==qe?qe.push(r):Je.ensure().schedule(r);else if(null!==t){try{Wn(r)}catch(i){throw dn(r),i}null===i.deps&&null===i.teardown&&null===i.nodes&&i.first===i.last&&0===(i.f&P)&&(i=i.first,0!==(e&y)&&0!==(e&L)&&null!==i&&(i.f|=L))}if(null!==i&&(i.parent=n,null!==n&&function(e,t){var n=t.last;null===n?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}(i,n),null!==Sn&&2&Sn.f&&0===(e&C))){var s=Sn;(s.effects??=[]).push(i)}return r}function Yt(){return null!==Sn&&!yn}function en(e){const t=Zt(8,null);return Ne(t,A),t.teardown=e,t}function tn(e){Jt("$effect"),o&&f(e,"name",{value:"$effect"});var t=Cn.f;if(!(!Sn&&0!==(t&b)&&0===(t&k)))return nn(e);var n=_e;(n.e??=[]).push(e)}function nn(e){return Zt(1048580,e)}function rn(e){return Zt(4,e)}function sn(e,t=0){return Zt(8|t,e)}function on(e,t=[],n=[],r=[]){at(r,t,n,t=>{Zt(8,()=>e(...t.map(jn)))})}function an(e,t=0){var n=Zt(y|t,e);return o&&(n.dev_stack=me),n}function ln(e){return Zt(524320,e)}function cn(e){var t=e.teardown;if(null!==t){const e=wn,n=Sn;Tn(!0),bn(null);try{t.call(null)}finally{Tn(e),bn(n)}}}function un(e,t=!1){var n=e.first;for(e.first=e.last=null;null!==n;){const e=n.ac;null!==e&&Xt(()=>{e.abort(X)});var r=n.next;0!==(n.f&C)?n.parent=null:dn(n,t),n=r}}function dn(e,t=!0){var n=!1;(t||262144&e.f)&&null!==e.nodes&&null!==e.nodes.end&&(!function(e,t){for(;null!==e;){var n=e===t?null:qt(e);e.remove(),e=n}}(e.nodes.start,e.nodes.end),n=!0),Ne(e,N),un(e,t&&!n),Hn(e,0);var r=e.nodes&&e.nodes.t;if(null!==r)for(const e of r)e.stop();cn(e),e.f^=N,e.f|=U;var i=e.parent;null!==i&&null!==i.first&&fn(e),o&&(e.component_function=null),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function fn(e){var t=e.parent,n=e.prev,r=e.next;null!==n&&(n.next=r),null!==r&&(r.prev=n),null!==t&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function hn(e,t,n=!0){var r=[];pn(e,r,!0);var i=()=>{n&&dn(e),t&&t()},s=r.length;if(s>0){var o=()=>--s||i();for(var a of r)a.out(o)}else i()}function pn(e,t,n){if(0===(e.f&$)){e.f^=$;var r=e.nodes&&e.nodes.t;if(null!==r)for(const e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;null!==i;){var s=i.next;if(0===(i.f&C))pn(i,t,!!(0!==(i.f&L)||0!==(i.f&b)&&0!==(e.f&y))&&n);i=s}}}function _n(e){vn(e,!0)}function vn(e,t){if(0!==(e.f&$)){e.f^=$,0===(e.f&A)&&(Ne(e,O),Je.ensure().schedule(e));for(var n=e.first;null!==n;){var r=n.next;vn(n,!!(0!==(n.f&L)||0!==(n.f&b))&&t),n=r}var i=e.nodes&&e.nodes.t;if(null!==i)for(const e of i)(e.is_global||t)&&e.in()}}function mn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;null!==n;){var i=n===r?null:qt(n);t.append(n),n=i}}let gn=null,En=!1,wn=!1;function Tn(e){wn=e}let Sn=null,yn=!1;function bn(e){Sn=e}let Cn=null;function Rn(e){Cn=e}let An=null;let On=null,In=0,$n=null;let Un=1,kn=0,Nn=kn;function Ln(e){Nn=e}function Dn(){return++Un}function Pn(e){var t=e.f;if(0!==(t&O))return!0;if(2&t&&(e.f&=-65537),0!==(t&I)){for(var n=e.deps,r=n.length,i=0;i<r;i++){var s=n[i];if(Pn(s)&&Et(s),s.wv>e.wv)return!0}0!==(t&R)&&null===je&&Ne(e,A)}return!1}function xn(e,t,n=!0){var r=e.reactions;if(null!==r&&(null===An||!c.call(An,e)))for(var i=0;i<r.length;i++){var s=r[i];2&s.f?xn(s,t,!1):t===s&&(n?Ne(s,O):0!==(s.f&A)&&Ne(s,I),rt(s))}}function Mn(e){var t=On,n=In,r=$n,i=Sn,s=An,o=_e,a=yn,l=Nn,c=e.f;On=null,In=0,$n=null,Sn=96&c?null:e,An=null,ve(e.ctx),yn=!1,Nn=++kn,null!==e.ac&&(Xt(()=>{e.ac.abort(X)}),e.ac=null);try{e.f|=M;var u=(0,e.fn)();e.f|=k;var d=e.deps,f=He?.is_fork;if(null!==On){var h;if(f||Hn(e,In),null!==d&&In>0)for(d.length=In+On.length,h=0;h<On.length;h++)d[In+h]=On[h];else e.deps=d=On;if(Yt()&&0!==(e.f&R))for(h=In;h<d.length;h++)(d[h].reactions??=[]).push(e)}else!f&&null!==d&&In<d.length&&(Hn(e,In),d.length=In);if(ye()&&null!==$n&&!yn&&null!==d&&!(6146&e.f))for(h=0;h<$n.length;h++)xn($n[h],e);if(null!==i&&i!==e){if(kn++,null!==i.deps)for(let e=0;e<n;e+=1)i.deps[e].rv=kn;if(null!==t)for(const e of t)e.rv=kn;null!==$n&&(null===r?r=$n:r.push(...$n))}return 0!==(e.f&H)&&(e.f^=H),u}catch(e){return Ie(e)}finally{e.f^=M,On=t,In=n,$n=r,Sn=i,An=s,ve(o),yn=a,Nn=l}}function Qn(e,t){let r=t.reactions;if(null!==r){var i=l.call(r,e);if(-1!==i){var s=r.length-1;0===s?r=t.reactions=null:(r[i]=r[s],r.pop())}}if(null===r&&2&t.f&&(null===On||!c.call(On,t))){var o=t;0!==(o.f&R)&&(o.f^=R,o.f&=-65537),o.v!==n&&Le(o),function(e){if(null!==e.effects)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(X),t.teardown=E,t.ac=null,Hn(t,0),un(t))}(o),Hn(o,0)}}function Hn(e,t){var n=e.deps;if(null!==n)for(var r=t;r<n.length;r++)Qn(e,n[r])}function Wn(e){var t=e.f;if(0===(t&U)){Ne(e,A);var n=Cn,r=En;if(Cn=e,En=!0,o){var i=Ee;we(e.component_function);var s=me;ge(e.dev_stack??me)}try{16777232&t?function(e){for(var t=e.first;null!==t;){var n=t.next;0===(t.f&b)&&dn(t),t=n}}(e):un(e),cn(e);var a=Mn(e);e.teardown="function"==typeof a?a:null,e.wv=Un}finally{En=r,Cn=n,o&&(we(i),ge(s))}}}function jn(e){var t,n=!!(2&e.f);if((gn?.add(e),null!==Sn&&!yn)&&!(null!==Cn&&0!==(Cn.f&U)||null!==An&&c.call(An,e))){var r=Sn.deps;if(0!==(Sn.f&M))e.rv<kn&&(e.rv=kn,null===On&&null!==r&&r[In]===e?In++:null===On?On=[e]:On.push(e));else{(Sn.deps??=[]).push(e);var i=e.reactions;null===i?e.reactions=[Sn]:c.call(i,Sn)||i.push(Sn)}}if(o){if(!yn&&ut&&!ut.warned&&0===(ut.effect.f&M)&&!ut.effect_deps.has(e)){ut.warned=!0,t=e.label,o?console.warn(`%c[svelte] await_reactivity_loss\n%cDetected reactivity loss when reading \`${t}\`. This happens when state is read in an async function after an earlier \`await\`\nhttps://svelte.dev/e/await_reactivity_loss`,Y,ee):console.warn("https://svelte.dev/e/await_reactivity_loss");var s=he("traced at");s&&console.warn(s)}ft.delete(e)}if(wn&&St.has(e))return St.get(e);if(n){var a=e;if(wn){var l=a.v;return(0===(a.f&A)&&null!==a.reactions||Bn(a))&&(l=gt(a)),St.set(a,l),l}var u=0===(a.f&R)&&!yn&&null!==Sn&&(En||0!==(Sn.f&R)),d=0===(a.f&k);Pn(a)&&(u&&(a.f|=R),Et(a)),u&&!d&&(wt(a),Gn(a))}if(je?.has(e))return je.get(e);if(0!==(e.f&H))throw e.v;return e.v}function Gn(e){if(e.f|=R,null!==e.deps)for(const t of e.deps)(t.reactions??=[]).push(e),2&t.f&&0===(t.f&R)&&(wt(t),Gn(t))}function Bn(e){if(e.v===n)return!0;if(null===e.deps)return!1;for(const t of e.deps){if(St.has(t))return!0;if(2&t.f&&Bn(t))return!0}return!1}function Vn(e){var t=yn;try{return yn=!0,e()}finally{yn=t}}function qn(e){if("object"==typeof e&&e&&!(e instanceof EventTarget))if(W in e)Fn(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];"object"==typeof n&&n&&W in n&&Fn(n)}}function Fn(e,t=new Set){if(!("object"!=typeof e||null===e||e instanceof EventTarget||t.has(e))){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{Fn(e[n],t)}catch(e){}const n=m(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const t=p(n);for(let n in t){const r=t[n].get;if(r)try{r.call(e)}catch(e){}}}}}const Kn=Symbol("events"),zn=new Set,Xn=new Set;let Jn=null;function Zn(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Jn=e;var o=0,a=Jn===e&&e[Kn];if(a){var l=i.indexOf(a);if(-1!==l&&(t===document||t===window))return void(e[Kn]=t);var c=i.indexOf(t);if(-1===c)return;l<=c&&(o=l)}if((s=i[o]||e.target)!==t){f(e,"currentTarget",{configurable:!0,get:()=>s||n});var u=Sn,d=Cn;bn(null),Rn(null);try{for(var h,p=[];null!==s;){var _=s.assignedSlot||s.parentNode||s.host||null;try{var v=s[Kn]?.[r];null==v||s.disabled&&e.target!==s||v.call(s,e)}catch(e){h?p.push(e):h=e}if(e.cancelBubble||_===t||null===_)break;s=_}if(h){for(let e of p)queueMicrotask(()=>{throw e});throw h}}finally{e[Kn]=t,delete e.currentTarget,bn(u),Rn(d)}}}const Yn=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function er(e){var t=Kt("template");return t.innerHTML=function(e){return Yn?.createHTML(e)??e}(e.replaceAll("<!>","\x3c!----\x3e")),t.content}function tr(e,t){var n=Cn;null===n.nodes&&(n.nodes={start:e,end:t,a:null,t:null})}function nr(e,t){var n,r=!!(1&t),i=!!(2&t),s=!e.startsWith("<!>");return()=>{if(ie)return tr(re,null),re;void 0===n&&(n=er(s?e:"<!>"+e),r||(n=Vt(n)));var t=i||Ht?document.importNode(n,!0):n.cloneNode(!0);r?tr(Vt(t),t.lastChild):tr(t,t);return t}}function rr(e,t){if(ie){var n=Cn;return 0!==(n.f&k)&&null!==n.nodes.end||(n.nodes.end=re),void ae()}null!==e&&e.before(t)}const ir=["touchstart","touchmove"];function sr(e){return ir.includes(e)}function or(e,t){return cr(e,t)}function ar(e,n){Gt(),n.intro=n.intro??!1;const r=n.target,i=ie,s=re;try{for(var a=Vt(r);a&&(8!==a.nodeType||"["!==a.data);)a=qt(a);if(!a)throw t;se(!0),oe(a);const i=cr(e,{...n,anchor:a});return se(!1),i}catch(i){if(i instanceof Error&&i.message.split("\n").some(e=>e.startsWith("https://svelte.dev/e/")))throw i;return i!==t&&console.warn("Failed to hydrate: ",i),!1===n.recover&&function(){if(o){const e=new Error("hydration_failed\nFailed to hydrate the application\nhttps://svelte.dev/e/hydration_failed");throw e.name="Svelte error",e}throw new Error("https://svelte.dev/e/hydration_failed")}(),Gt(),r.textContent="",se(!1),or(e,n)}finally{se(i),oe(s)}}const lr=new Map;function cr(e,{target:n,anchor:r,props:i={},events:s,context:o,intro:a=!0,transformError:l}){Gt();var c=void 0,d=function(e){Je.ensure();const t=Zt(524352,e);return(e={})=>new Promise(n=>{e.outro?hn(t,()=>{dn(t),n(void 0)}):(dn(t),n(void 0))})}(()=>{var a=r??n.appendChild(Bt());!function(e,t,n,r){new ot(e,t,n,r)}(a,{pending:()=>{}},n=>{if(Te({}),o&&(_e.c=o),s&&(i.$$events=s),ie&&tr(n,null),c=e(n,i)||{},ie&&(Cn.nodes.end=re,null===re||8!==re.nodeType||"]"!==re.data))throw te(),t;Se()},l);var d=new Set,f=e=>{for(var t=0;t<e.length;t++){var r=e[t];if(!d.has(r)){d.add(r);var i=sr(r);for(const e of[n,document]){var s=lr.get(e);void 0===s&&(s=new Map,lr.set(e,s));var o=s.get(r);void 0===o?(e.addEventListener(r,Zn,{passive:i}),s.set(r,1)):s.set(r,o+1)}}}};return f(u(zn)),Xn.add(f),()=>{for(var e of d)for(const r of[n,document]){var t=lr.get(r),i=t.get(e);0==--i?(r.removeEventListener(e,Zn),t.delete(e),0===t.size&&lr.delete(r)):t.set(e,i)}Xn.delete(f),a!==r&&a.parentNode?.removeChild(a)}});return ur.set(c,d),c}let ur=new WeakMap;function dr(e,t){const n=ur.get(e);return n?(ur.delete(e),n(t)):(o&&(W in e?o?console.warn("%c[svelte] state_proxy_unmount\n%cTried to unmount a state proxy, rather than a component\nhttps://svelte.dev/e/state_proxy_unmount",Y,ee):console.warn("https://svelte.dev/e/state_proxy_unmount"):o?console.warn("%c[svelte] lifecycle_double_unmount\n%cTried to unmount a component that was not mounted\nhttps://svelte.dev/e/lifecycle_double_unmount",Y,ee):console.warn("https://svelte.dev/e/lifecycle_double_unmount")),Promise.resolve())}class fr{anchor;#F=new Map;#K=new Map;#z=new Map;#X=new Set;#J=!0;constructor(e,t=!0){this.anchor=e,this.#J=t}#b=e=>{if(this.#F.has(e)){var t=this.#F.get(e),n=this.#K.get(t);if(n)_n(n),this.#X.delete(t);else{var r=this.#z.get(t);r&&(this.#K.set(t,r.effect),this.#z.delete(t),o&&(r.fragment.lastChild[z]=this.anchor),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(const[t,n]of this.#F){if(this.#F.delete(t),t===e)break;const r=this.#z.get(n);r&&(dn(r.effect),this.#z.delete(n))}for(const[e,r]of this.#K){if(e===t||this.#X.has(e))continue;const i=()=>{if(Array.from(this.#F.values()).includes(e)){var t=document.createDocumentFragment();mn(r,t),t.append(Bt()),this.#z.set(e,{effect:r,fragment:t})}else dn(r);this.#X.delete(e),this.#K.delete(e)};this.#J||!n?(this.#X.add(e),hn(r,i,!1)):i()}}};#Z=e=>{this.#F.delete(e);const t=Array.from(this.#F.values());for(const[e,n]of this.#z)t.includes(e)||(dn(n.effect),this.#z.delete(e))};ensure(e,t){var n=He;!t||this.#K.has(e)||this.#z.has(e)||this.#K.set(e,ln(()=>t(this.anchor)));this.#F.set(n,e),ie&&(this.anchor=re),this.#b(n)}}if(o){function si(e){if(!(e in globalThis)){let t;Object.defineProperty(globalThis,e,{configurable:!0,get:()=>{if(void 0!==t)return t;!function(e){if(o){const t=new Error(`rune_outside_svelte\nThe \`${e}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files\nhttps://svelte.dev/e/rune_outside_svelte`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/rune_outside_svelte")}(e)},set:e=>{t=e}})}}si("$state"),si("$effect"),si("$derived"),si("$inspect"),si("$props"),si("$bindable")}function hr(t){var n,r;null===_e&&Z("onMount"),e&&null!==_e.l?(n=_e,r=n.l,r.u??={a:[],b:[],m:[]}).m.push(t):tn(()=>{const e=Vn(t);if("function"==typeof e)return e})}var pr=new Map;function _r(e,n,r=!1){var i;ie&&(i=re,ae());var s=new fr(e);function o(e,n){if(ie){var r=function(e){if(!e||8!==e.nodeType)throw te(),t;return e.data}(i);if(e!==parseInt(r.substring(1))){var o=le();return oe(o),s.anchor=o,se(!1),s.ensure(e,n),void se(!0)}}s.ensure(e,n)}an(()=>{var e=!1;n((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},r?L:0)}function vr(e,t){rn(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const e=Kt("style");e.id=t.hash,e.textContent=t.code,r.appendChild(e),o&&function(e,t){var n=pr.get(e);n||(n=new Set,pr.set(e,n)),n.add(t)}(t.hash,e)}})}function mr(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=mr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function gr(e){return"object"==typeof e?function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=mr(e))&&(r&&(r+=" "),r+=t);return r}(e):e??""}const Er=[..." \t\n\r\f \v\ufeff"];function wr(e,t,n,r,i,s){var o=e[q];if(ie||o!==n||void 0===o){var a=function(e,t,n){var r=null==e?"":""+e;if(t&&(r=r?r+" "+t:t),n)for(var i of Object.keys(n))if(n[i])r=r?r+" "+i:i;else if(r.length)for(var s=i.length,o=0;(o=r.indexOf(i,o))>=0;){var a=o+s;0!==o&&!Er.includes(r[o-1])||a!==r.length&&!Er.includes(r[a])?o=a:r=(0===o?"":r.substring(0,o))+r.substring(a+1)}return""===r?null:r}(n,r,s);ie&&a===e.getAttribute("class")||(null==a?e.removeAttribute("class"):t?e.className=a:e.setAttribute("class",a)),e[q]=n}else if(s&&i!==s)for(var l in s){var c=!!s[l];null!=i&&c===!!i[l]||e.classList.toggle(l,c)}return s}const Tr=Symbol("is custom element"),Sr=Symbol("is html"),yr=J?"link":"LINK";function br(e,t,n,r){var s=function(e){return e[V]??={[Tr]:e.nodeName.includes("-"),[Sr]:e.namespaceURI===i}}(e);ie&&(s[t]=e.getAttribute(t),"src"===t||"srcset"===t||"href"===t&&e.nodeName===yr)?r||function(e,t,n){if(!o)return;if("srcset"===t&&function(e,t){var n=Ar(e.srcset),r=Ar(t);return r.length===n.length&&r.every(([e,t],r)=>t===n[r][1]&&(Rr(n[r][0],e)||Rr(e,n[r][0])))}(e,n))return;if(Rr(e.getAttribute(t)??"",n))return;!function(e,t,n){o?console.warn(`%c[svelte] hydration_attribute_changed\n%cThe \`${e}\` attribute on \`${t}\` changed its value between server and client renders. The client value, \`${n}\`, will be ignored in favour of the server value\nhttps://svelte.dev/e/hydration_attribute_changed`,Y,ee):console.warn("https://svelte.dev/e/hydration_attribute_changed")}(t,e.outerHTML.replace(e.innerHTML,e.innerHTML&&"..."),String(n))}(e,t,n??""):s[t]!==(s[t]=n)&&("loading"===t&&(e[G]=n),null==n?e.removeAttribute(t):"string"!=typeof n&&function(e){var t,n=e.getAttribute("is")||e.nodeName,r=Cr.get(n);if(r)return r;Cr.set(n,r=[]);var i=e,s=Element.prototype;for(;s!==i;){for(var o in t=p(i))t[o].set&&"innerHTML"!==o&&"textContent"!==o&&"innerText"!==o&&r.push(o);i=m(i)}return r}(e).includes(t)?e[t]=n:e.setAttribute(t,n))}var Cr=new Map;function Rr(e,t){return e===t||new URL(e,document.baseURI).href===new URL(t,document.baseURI).href}function Ar(e){return e.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function Or(e,t,n){var r=h(e,t);r&&r.set&&(e[t]=n,en(()=>{e[t]=null}))}function Ir(e,t){return e===t||e?.[W]===t}function $r(e={},t,n,r){var i=_e.r,s=Cn;return rn(()=>{var o,a;return sn(()=>{o=a,a=r?.()||[],Vn(()=>{Ir(n(...a),e)||(t(e,...a),o&&Ir(n(...o),e)&&t(null,...o))})}),()=>{let r=s;for(;r!==i&&null!==r.parent&&r.parent.f&N;)r=r.parent;const o=r.teardown;r.teardown=()=>{a&&Ir(n(...a),e)&&t(null,...a),o?.()}}}),e}function Ur(e=!1){const t=_e,n=t.l.u;if(!n)return;let r=()=>qn(t.s);if(e){let e=0,n={};const i=ht(()=>{let r=!1;const i=t.s;for(const e in i)i[e]!==n[e]&&(n[e]=i[e],r=!0);return r&&e++,e});r=()=>jn(i)}var i;n.b.length&&(i=()=>{kr(t,r),T(n.b)},Jt("$effect.pre"),o&&f(i,"name",{value:"$effect.pre"}),Zt(1048584,i)),tn(()=>{const e=Vn(()=>n.m.map(w));return()=>{for(const t of e)"function"==typeof t&&t()}}),n.a.length&&tn(()=>{kr(t,r),T(n.a)})}function kr(e,t){if(e.l.s)for(const t of e.l.s)jn(t);t()}function Nr(t,n,r,i){var s=!e||!!(2&r),a=!!(8&r),l=!!(16&r),c=i,u=!0,d=void 0,f=()=>l&&s?(d??=ht(i),jn(d)):(u&&(u=!1,c=l?Vn(i):i),c);let p;if(a){var _=W in t||j in t;p=h(t,n)?.set??(_&&n in t?e=>t[n]=e:void 0)}var v,m,g=!1;if(a?[v,g]=function(e){var t=xe;try{return xe=!1,[e(),xe]}finally{xe=t}}(()=>t[n]):v=t[n],void 0===v&&void 0!==i&&(v=f(),p&&(s&&function(e){if(o){const t=new Error(`props_invalid_value\nCannot do \`bind:${e}={undefined}\` when \`${e}\` has a fallback value\nhttps://svelte.dev/e/props_invalid_value`);throw t.name="Svelte error",t}throw new Error("https://svelte.dev/e/props_invalid_value")}(n),p(v))),m=s?()=>{var e=t[n];return void 0===e?f():(u=!0,e)}:()=>{var e=t[n];return void 0!==e&&(c=void 0),void 0===e?c:e},s&&!(4&r))return m;if(p){var E=t.$$legacy;return function(e,t){return arguments.length>0?(s&&t&&!E&&!g||p(t?m():e),e):m()}}var w=!1,T=(1&r?ht:_t)(()=>(w=!1,m()));o&&(T.label=n),a&&jn(T);var S=Cn;return function(e,t){if(arguments.length>0){const n=t?jn(T):s&&a?Dt(e):e;return It(T,n),w=!0,void 0!==c&&(c=n),e}return wn&&w||0!==(S.f&U)?T.v:jn(T)}}class Lr{#Y;#ee;constructor(e){var t=new Map,n=(e,n)=>{var r=At(n,!1,!1);return t.set(e,r),r};const r=new Proxy({...e.props||{},$$events:{}},{get:(e,r)=>jn(t.get(r)??n(r,Reflect.get(e,r))),has:(e,r)=>r===j||(jn(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r)),set:(e,r,i)=>(It(t.get(r)??n(r,i),i),Reflect.set(e,r,i))});this.#ee=(e.hydrate?ar:or)(e.component,{target:e.target,anchor:e.anchor,props:r,context:e.context,intro:e.intro??!1,recover:e.recover,transformError:e.transformError}),e?.props?.$$host&&!1!==e.sync||Ze(),this.#Y=r.$$events;for(const e of Object.keys(this.#ee))"$set"!==e&&"$destroy"!==e&&"$on"!==e&&f(this,e,{get(){return this.#ee[e]},set(t){this.#ee[e]=t},enumerable:!0});this.#ee.$set=e=>{Object.assign(r,e)},this.#ee.$destroy=()=>{dr(this.#ee)}}$set(e){this.#ee.$set(e)}$on(e,t){this.#Y[e]=this.#Y[e]||[];const n=(...e)=>t.call(this,...e);return this.#Y[e].push(n),()=>{this.#Y[e]=this.#Y[e].filter(e=>e!==n)}}$destroy(){this.#ee.$destroy()}}let Dr;function Pr(e,t,n,r){const i=n[e]?.type;if(t="Boolean"===i&&"boolean"!=typeof t?null!=t:t,!r||!n[e])return t;if("toAttribute"===r)switch(i){case"Object":case"Array":return null==t?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return null==t?null:t;default:return t}else switch(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":default:return t;case"Number":return null!=t?+t:t}}function xr(e,t,n,r,i,s){let o=class extends Dr{constructor(){super(e,n,i),this.$$p_d=t}static get observedAttributes(){return d(t).map(e=>(t[e].attribute||e).toLowerCase())}};return d(t).forEach(e=>{f(o.prototype,e,{get(){return this.$$c&&e in this.$$c?this.$$c[e]:this.$$d[e]},set(n){n=Pr(e,n,t),this.$$d[e]=n;var r=this.$$c;if(r){var i=h(r,e)?.get;i?r[e]=n:r.$set({[e]:n})}}})}),r.forEach(e=>{f(o.prototype,e,{get(){return this.$$c?.[e]}})}),s&&(o=s(o)),e.element=o,o}var Mr;"function"==typeof HTMLElement&&(Dr=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;$$me;$$shadowRoot=null;constructor(e,t,n){super(),this.$$ctor=e,this.$$s=t,n&&(this.$$shadowRoot=this.attachShadow(n))}addEventListener(e,t,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(t),this.$$c){const n=this.$$c.$on(e,t);this.$$l_u.set(t,n)}super.addEventListener(e,t,n)}removeEventListener(e,t,n){if(super.removeEventListener(e,t,n),this.$$c){const e=this.$$l_u.get(t);e&&(e(),this.$$l_u.delete(t))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){if(await Promise.resolve(),!this.$$cn||this.$$c)return;function t(e){return t=>{const n=Kt("slot");"default"!==e&&(n.name=e),rr(t,n)}}const n={},r=function(e){const t={};return e.childNodes.forEach(e=>{t[e.slot||"default"]=!0}),t}(this);for(const i of this.$$s)i in r&&("default"!==i||this.$$d.children?n[i]=t(i):(this.$$d.children=t(i),n.default=!0));for(const s of this.attributes){const o=this.$$g_p(s.name);o in this.$$d||(this.$$d[o]=Pr(o,s.value,this.$$p_d,"toProp"))}for(const a in this.$$p_d)a in this.$$d||void 0===this[a]||(this.$$d[a]=this[a],delete this[a]);this.$$c=(e={component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots:n,$$host:this}},new Lr(e)),this.$$me=function(e){Je.ensure();const t=Zt(524352,e);return()=>{dn(t)}}(()=>{sn(()=>{this.$$r=!0;for(const e of d(this.$$c)){if(!this.$$p_d[e]?.reflect)continue;this.$$d[e]=this.$$c[e];const t=Pr(e,this.$$d[e],this.$$p_d,"toAttribute");null==t?this.removeAttribute(this.$$p_d[e].attribute||e):this.setAttribute(this.$$p_d[e].attribute||e,t)}this.$$r=!1})});for(const l in this.$$l)for(const c of this.$$l[l]){const u=this.$$c.$on(l,c);this.$$l_u.set(c,u)}this.$$l={}}var e}attributeChangedCallback(e,t,n){this.$$r||(e=this.$$g_p(e),this.$$d[e]=Pr(e,n,this.$$p_d,"toProp"),this.$$c?.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return d(this.$$p_d).find(t=>this.$$p_d[t].attribute===e||!this.$$p_d[t].attribute&&t.toLowerCase()===e)||e}}),function(e){e.CUSTOM_MESSAGE="custom",e.GET_CONTEXT="luigi.get-context",e.SEND_CONTEXT_HANDSHAKE="luigi.init",e.CONTEXT_RECEIVED="luigi.init.ok",e.NAVIGATION_REQUEST="luigi.navigation.open",e.ALERT_REQUEST="luigi.ux.alert.show",e.ALERT_CLOSED="luigi.ux.alert.hide",e.INITIALIZED="luigi.init.ok",e.ADD_SEARCH_PARAMS_REQUEST="luigi.addSearchParams",e.ADD_NODE_PARAMS_REQUEST="luigi.addNodeParams",e.SHOW_CONFIRMATION_MODAL_REQUEST="luigi.ux.confirmationModal.show",e.CONFIRMATION_MODAL_CLOSED="luigi.ux.confirmationModal.hide",e.SHOW_LOADING_INDICATOR_REQUEST="luigi.show-loading-indicator",e.HIDE_LOADING_INDICATOR_REQUEST="luigi.hide-loading-indicator",e.SET_CURRENT_LOCALE_REQUEST="luigi.ux.set-current-locale",e.LOCAL_STORAGE_SET_REQUEST="storage",e.RUNTIME_ERROR_HANDLING_REQUEST="luigi-runtime-error-handling",e.SET_ANCHOR_LINK_REQUEST="luigi.setAnchor",e.SET_THIRD_PARTY_COOKIES_REQUEST="luigi.third-party-cookie",e.BACK_NAVIGATION_REQUEST="luigi.navigation.back",e.GET_CURRENT_ROUTE_REQUEST="luigi.navigation.currentRoute",e.SEND_CURRENT_ROUTE_ANSWER="luigi.navigation.currentRoute.answer",e.SEND_CONTEXT_OBJECT="luigi.navigate",e.NAVIGATION_COMPLETED_REPORT="luigi.navigate.ok",e.CLOSE_MODAL_ANSWER="luigi.navigation.modal.close",e.UPDATE_MODAL_PATH_DATA_REQUEST="luigi.navigation.updateModalDataPath",e.UPDATE_MODAL_SETTINGS="luigi.navigation.updateModalSettings",e.CHECK_PATH_EXISTS_REQUEST="luigi.navigation.pathExists",e.SEND_PATH_EXISTS_ANSWER="luigi.navigation.pathExists.answer",e.SET_DIRTY_STATUS_REQUEST="luigi.set-page-dirty",e.AUTH_SET_TOKEN="luigi.auth.tokenIssued",e.ADD_BACKDROP_REQUEST="luigi.add-backdrop",e.REMOVE_BACKDROP_REQUEST="luigi.remove-backdrop",e.SET_VIEW_GROUP_DATA_REQUEST="luigi.setVGData",e.CLOSE_CURRENT_MODAL_REQUEST="luigi.close-modal"}(Mr||(Mr={}));class Qr extends Event{constructor(e,t,n,r){super(e),this.detail=t,this.payload=n||t||{},this.callbackFn=r}callback(e){this.callbackFn&&this.callbackFn(e)}}const Hr={ADD_BACKDROP_REQUEST:"add-backdrop-request",ADD_NODE_PARAMS_REQUEST:"add-node-params-request",ADD_SEARCH_PARAMS_REQUEST:"add-search-params-request",ALERT_CLOSED:"close-alert-request",ALERT_REQUEST:"show-alert-request",BACK_NAVIGATION_REQUEST:"navigate-back-request",CHECK_PATH_EXISTS_REQUEST:"check-path-exists-request",CLOSE_CURRENT_MODAL_REQUEST:"close-current-modal-request",CLOSE_USER_SETTINGS_REQUEST:"close-user-settings-request",COLLAPSE_LEFT_NAV_REQUEST:"collapse-leftnav-request",CUSTOM_MESSAGE:"custom-message",GET_CONTEXT_REQUEST:"get-context-request",GET_CURRENT_ROUTE_REQUEST:"get-current-route-request",GO_BACK_REQUEST:"go-back-request",HAS_BACK_REQUEST:"has-back-request",HIDE_LOADING_INDICATOR_REQUEST:"hide-loading-indicator-request",INITIALIZED:"initialized",LOCAL_STORAGE_SET_REQUEST:"set-storage-request",NAVIGATION_COMPLETED_REPORT:"report-navigation-completed-request",NAVIGATION_REQUEST:"navigation-request",OPEN_USER_SETTINGS_REQUEST:"open-user-settings-request",PATH_EXISTS_REQUEST:"path-exists-request",REMOVE_BACKDROP_REQUEST:"remove-backdrop-request",RUNTIME_ERROR_HANDLING_REQUEST:"runtime-error-handling-request",SET_ANCHOR_LINK_REQUEST:"set-anchor-request",SET_CURRENT_LOCALE_REQUEST:"set-current-locale-request",SET_DIRTY_STATUS_REQUEST:"set-dirty-status-request",SET_DOCUMENT_TITLE_REQUEST:"set-document-title-request",SET_THIRD_PARTY_COOKIES_REQUEST:"set-third-party-cookies-request",SET_VIEW_GROUP_DATA_REQUEST:"set-viewgroup-data-request",SHOW_CONFIRMATION_MODAL_REQUEST:"show-confirmation-modal-request",SHOW_LOADING_INDICATOR_REQUEST:"show-loading-indicator-request",UPDATE_MODAL_PATH_DATA_REQUEST:"update-modal-path-data-request",UPDATE_MODAL_SETTINGS_REQUEST:"update-modal-settings-request",UPDATE_TOP_NAVIGATION_REQUEST:"update-top-navigation-request"};class Wr{isVisible(e){return"none"!==getComputedStyle(e).display&&!(!e.offsetWidth&&!e.offsetHeight)}sendCustomMessageToIframe(e,t,n){const r=n||"custom";if(e?.iframe?.contentWindow){const n=new URL(e.iframe.src);"custom"===r?e.iframe.contentWindow.postMessage({msg:r,data:t},n.origin):e.iframe.contentWindow.postMessage({msg:r,...t},n.origin)}else console.error("Message target could not be resolved")}dispatchWithPayload(e,t,n,r,i){this.dispatch(e,t,n,i,r)}dispatch(e,t,n,r,i){const s=new Qr(e,n,i,r);t.dispatchEvent(s)}getTargetContainer(e){let t;return globalThis.__luigi_container_manager.container.forEach(n=>{n.iframeHandle?.iframe&&n.iframeHandle.iframe.contentWindow===e.source&&(t=n)}),t}getContainerManager(){return globalThis.__luigi_container_manager||(globalThis.__luigi_container_manager={container:[],messageListener:e=>{const t=this.getTargetContainer(e),n=t?.iframeHandle?.iframe?.contentWindow;if(n&&n===e.source){switch(e.data.msg){case Mr.CUSTOM_MESSAGE:{const n=e.data.data,r=n.id;delete n.id,this.dispatch(Hr.CUSTOM_MESSAGE,t,{id:r,_metaData:{},data:n})}break;case Mr.GET_CONTEXT:n.postMessage({msg:Mr.SEND_CONTEXT_HANDSHAKE,context:t.context||{},internal:{thirdPartyCookieCheck:{disabled:"true"===t.skipCookieCheck},currentTheme:t.theme,currentLocale:t.locale,activeFeatureToggleList:t.activeFeatureToggleList||[],cssVariables:t.cssVariables||{},anchor:t.anchor||"",userSettings:t.userSettings||null,drawer:t.drawer||!1,modal:t.modal||!1,viewStackSize:t.viewStackSize||0,isNavigateBack:t.isNavigateBack||!1},authData:t.authData||{},nodeParams:t.nodeParams||{},searchParams:t.searchParams||{},pathParams:t.pathParams||{}},e.origin);break;case Mr.NAVIGATION_REQUEST:this.dispatch(Hr.NAVIGATION_REQUEST,t,e.data.params,t=>{n.postMessage({msg:Mr.CLOSE_MODAL_ANSWER,data:t},e.origin)});break;case Mr.ALERT_REQUEST:this.dispatchWithPayload(Hr.ALERT_REQUEST,t,e,e.data?.data?.settings,n=>{t.notifyAlertClosed(e.data?.data?.settings?.id,n)});break;case Mr.INITIALIZED:this.dispatch(Hr.INITIALIZED,t,e.data?.params||{});break;case Mr.ADD_SEARCH_PARAMS_REQUEST:this.dispatch(Hr.ADD_SEARCH_PARAMS_REQUEST,t,{data:e.data.data,keepBrowserHistory:e.data.keepBrowserHistory});break;case Mr.ADD_NODE_PARAMS_REQUEST:this.dispatch(Hr.ADD_NODE_PARAMS_REQUEST,t,{data:e.data.data,keepBrowserHistory:e.data.keepBrowserHistory});break;case Mr.SHOW_CONFIRMATION_MODAL_REQUEST:this.dispatchWithPayload(Hr.SHOW_CONFIRMATION_MODAL_REQUEST,t,e.data.data,e.data.data?.settings,e=>{t.notifyConfirmationModalClosed(e)});break;case Mr.SHOW_LOADING_INDICATOR_REQUEST:this.dispatch(Hr.SHOW_LOADING_INDICATOR_REQUEST,t,e);break;case Mr.HIDE_LOADING_INDICATOR_REQUEST:this.dispatch(Hr.HIDE_LOADING_INDICATOR_REQUEST,t,e);break;case Mr.SET_CURRENT_LOCALE_REQUEST:this.dispatchWithPayload(Hr.SET_CURRENT_LOCALE_REQUEST,t,e,e.data.data);break;case Mr.LOCAL_STORAGE_SET_REQUEST:this.dispatchWithPayload(Hr.LOCAL_STORAGE_SET_REQUEST,t,e,e.data.data?.params);break;case Mr.RUNTIME_ERROR_HANDLING_REQUEST:this.dispatch(Hr.RUNTIME_ERROR_HANDLING_REQUEST,t,e);break;case Mr.SET_ANCHOR_LINK_REQUEST:this.dispatchWithPayload(Hr.SET_ANCHOR_LINK_REQUEST,t,e,e.data.anchor);break;case Mr.SET_THIRD_PARTY_COOKIES_REQUEST:this.dispatch(Hr.SET_THIRD_PARTY_COOKIES_REQUEST,t,e);break;case Mr.BACK_NAVIGATION_REQUEST:{let n=e.data?.goBackContext||{};if("string"==typeof n)try{n=JSON.parse(n)}catch(e){console.warn(e)}this.dispatch(Hr.GO_BACK_REQUEST,t,n),this.dispatch(Hr.BACK_NAVIGATION_REQUEST,t,e)}break;case Mr.GET_CURRENT_ROUTE_REQUEST:this.dispatchWithPayload(Hr.GET_CURRENT_ROUTE_REQUEST,t,e,e.data.data,t=>{n.postMessage({msg:Mr.SEND_CURRENT_ROUTE_ANSWER,data:{correlationId:e.data?.data?.id,route:t}},e.origin)});break;case Mr.NAVIGATION_COMPLETED_REPORT:this.dispatch(Hr.NAVIGATION_COMPLETED_REPORT,t,e);break;case Mr.UPDATE_MODAL_PATH_DATA_REQUEST:this.dispatchWithPayload(Hr.UPDATE_MODAL_PATH_DATA_REQUEST,t,e,e.data.params);break;case Mr.UPDATE_MODAL_SETTINGS:this.dispatchWithPayload(Hr.UPDATE_MODAL_SETTINGS_REQUEST,t,e,{addHistoryEntry:e.data.addHistoryEntry,updatedModalSettings:e.data.updatedModalSettings});break;case Mr.CHECK_PATH_EXISTS_REQUEST:this.dispatchWithPayload(Hr.CHECK_PATH_EXISTS_REQUEST,t,e,e.data.data,t=>{n.postMessage({msg:Mr.SEND_PATH_EXISTS_ANSWER,data:{correlationId:e.data?.data?.id,pathExists:t}},e.origin)});break;case Mr.SET_DIRTY_STATUS_REQUEST:this.dispatchWithPayload(Hr.SET_DIRTY_STATUS_REQUEST,t,e,{dirty:e.data.dirty});break;case Mr.SET_VIEW_GROUP_DATA_REQUEST:this.dispatch(Hr.SET_VIEW_GROUP_DATA_REQUEST,t,e.data.data);break;case Mr.ADD_BACKDROP_REQUEST:this.dispatch(Hr.ADD_BACKDROP_REQUEST,t,e);break;case Mr.REMOVE_BACKDROP_REQUEST:this.dispatch(Hr.REMOVE_BACKDROP_REQUEST,t,e);break;case Mr.CLOSE_CURRENT_MODAL_REQUEST:this.dispatch(Hr.CLOSE_CURRENT_MODAL_REQUEST,t,e)}}}},window.addEventListener("message",globalThis.__luigi_container_manager.messageListener)),globalThis.__luigi_container_manager}registerContainer(e){this.getContainerManager().container.push(e)}}const jr=new Wr;const Gr=new class{constructor(){this.updateContext=(e,t,n,r,i,s)=>{if(n){const o=t||{};jr.sendCustomMessageToIframe(n,{context:e,nodeParams:r||{},pathParams:i||{},searchParams:s||{},internal:o,withoutSync:o.withoutSync??!0},Mr.SEND_CONTEXT_OBJECT)}else console.warn("Attempting to update context on inexisting iframe")},this.updateViewUrl=(e,t,n,r)=>{if(r){const i=n||{};jr.sendCustomMessageToIframe(r,{context:t,internal:i,withoutSync:!1,viewUrl:e},Mr.SEND_CONTEXT_OBJECT)}else console.warn("Attempting to update route on inexisting iframe")},this.updateAuthData=(e,t)=>{e&&t?jr.sendCustomMessageToIframe(e,{authData:t},Mr.AUTH_SET_TOKEN):console.warn("Attempting to update auth data on inexisting iframe or authData")},this.sendCustomMessage=(e,t,n,r,i)=>{if(n&&t._luigi_mfe_webcomponent)jr.dispatch(e,t._luigi_mfe_webcomponent,i);else{const t={...i};t.id&&console.warn('Property "id" is reserved and can not be used in custom message data'),t.id=e,jr.sendCustomMessageToIframe(r,t)}},this.notifyConfirmationModalClosed=(e,t)=>{const n={data:{confirmed:e}};jr.sendCustomMessageToIframe(t,n,Mr.CONFIRMATION_MODAL_CLOSED)}}notifyAlertClosed(e,t,n){const r=t?{id:e,dismissKey:t}:{id:e};jr.sendCustomMessageToIframe(n,r,Mr.ALERT_CLOSED)}},Br=e=>{if(!e)return;const t=e;return t.forEach((n,r)=>{t[r]=n+(-1!=n.indexOf(";")?"":";"),t[r]=e[r].replaceAll('"',"'")}),t.join(" ")};class Vr{constructor(e){e?(this.rendererObject=e,this.config=e.config||{}):this.config={}}createCompoundContainer(){return document.createElement("div")}createCompoundItemContainer(e){return document.createElement("div")}attachCompoundItem(e,t){e.appendChild(t)}}class qr extends Vr{constructor(e){super(e||{use:{}}),e&&e.use&&e.use.extends&&(this.superRenderer=Kr({use:e.use.extends,config:e.config}))}createCompoundContainer(){return this.rendererObject.use.createCompoundContainer?this.rendererObject.use.createCompoundContainer(this.config,this.superRenderer):this.superRenderer?this.superRenderer.createCompoundContainer():super.createCompoundContainer()}createCompoundItemContainer(e){return this.rendererObject.use.createCompoundItemContainer?this.rendererObject.use.createCompoundItemContainer(e,this.config,this.superRenderer):this.superRenderer?this.superRenderer.createCompoundItemContainer(e):super.createCompoundItemContainer(e)}attachCompoundItem(e,t){this.rendererObject.use.attachCompoundItem?this.rendererObject.use.attachCompoundItem(e,t,this.superRenderer):this.superRenderer?this.superRenderer.attachCompoundItem(e,t):super.attachCompoundItem(e,t)}}class Fr extends Vr{createCompoundContainer(){const e="__lui_compound_"+(new Date).getTime(),t=document.createElement("div");t.classList.add(e);let n="";return this.config.layouts&&this.config.layouts.forEach(t=>{if(t.minWidth||t.maxWidth){let r="@media only screen ";null!=t.minWidth&&(r+=`and (min-width: ${t.minWidth}px) `),null!=t.maxWidth&&(r+=`and (max-width: ${t.maxWidth}px) `),r+=`{\n .${e} {\n grid-template-columns: ${t.columns||"auto"};\n grid-template-rows: ${t.rows||"auto"};\n grid-gap: ${t.gap||"0"};\n }\n }\n `,n+=r}}),t.innerHTML=`\n <style scoped>\n .${e} {\n display: grid;\n grid-template-columns: ${this.config.columns||"auto"};\n grid-template-rows: ${this.config.rows||"auto"};\n grid-gap: ${this.config.gap||"0"};\n min-height: ${this.config.minHeight||"auto"};\n }\n ${n}\n </style>\n `,t}createCompoundItemContainer(e){const t=e||{},n=document.createElement("div");return n.setAttribute("style",`grid-row: ${t.row||"auto"}; grid-column: ${t.column||"auto"}`),n.classList.add("lui-compoundItemCnt"),n}}const Kr=e=>{const t=e.use;return t?"grid"===t?new Fr(e):t.createCompoundContainer||t.createCompoundItemContainer||t.attachCompoundItem?new qr(e):new Vr(e):new Vr(e)},zr=(e,t,n,r)=>{t?.eventListeners&&t.eventListeners.forEach(t=>{const i=t.source+"."+t.name,s=e[i],o={wcElementId:n,wcElement:r,action:t.action,converter:t.dataConverter};s?s.push(o):e[i]=[o]})};function Xr(e){return String(e).replaceAll("<","<").replaceAll(">",">").replaceAll(""",'"').replaceAll("'","'").replaceAll("/","/")}class Jr{constructor(){this.alertResolvers={},this.alertIndex=0,this.containerService=new Wr}dynamicImport(e){return Object.freeze(import(/* webpackIgnore: true */e))}processViewUrl(e,t){return e}attachWC(e,t,n,r,i,s,o){if(n&&n.contains(t)){const a=document.createElement(e);s&&a.setAttribute("nodeId",s),a.setAttribute("lui_web_component","true"),this.initWC(a,e,n,i,r,s,o),n.replaceChild(a,t),n._luigi_node&&(n._luigi_mfe_webcomponent=a),n.dispatchEvent(new Event("wc_ready"))}}dispatchLuigiEvent(e,t,n){this.containerService.dispatch(e,this.thisComponent,t,n)}createClientAPI(e,t,n,r,i){return{linkManager:()=>{let e=null,t=!1,n=!1,r=!1,i={};const s={navigate:(s,o={},a)=>{const l={fromContext:e,fromClosestContext:t,fromVirtualTreeRoot:n,fromParent:r,nodeParams:i,...o};this.dispatchLuigiEvent(Hr.NAVIGATION_REQUEST,{link:s,...l},a)},navigateToIntent:(e,t={})=>{let n="#?intent=";if(n+=e,t&&Object.keys(t)?.length){const e=Object.entries(t);if(e.length>0){n+="?";for(const[t,r]of e)n+=t+"="+r+"&";n=n.slice(0,-1)}}s.navigate(n)},fromClosestContext:()=>(t=!0,s),fromContext:t=>(e=t,s),fromVirtualTreeRoot:()=>(n=!0,s),fromParent:()=>(r=!0,s),getCurrentRoute:()=>{const s={fromContext:e,fromClosestContext:t,fromVirtualTreeRoot:n,fromParent:r,nodeParams:i};return new Promise((e,t)=>{this.containerService.dispatch(Hr.GET_CURRENT_ROUTE_REQUEST,this.thisComponent,{...s},n=>{n?e(n):t("No current route received.")})})},withParams:e=>(i=e,s),updateModalPathInternalNavigation:(s,o={},a=!1)=>{if(!s)return void console.warn("Updating path of the modal upon internal navigation prevented. No path specified.");const l={fromClosestContext:t,fromContext:e,fromParent:r,fromVirtualTreeRoot:n,nodeParams:i};this.dispatchLuigiEvent(Hr.UPDATE_MODAL_PATH_DATA_REQUEST,Object.assign(l,{history:a,link:s,modal:o}))},updateTopNavigation:()=>{this.dispatchLuigiEvent(Hr.UPDATE_TOP_NAVIGATION_REQUEST,{})},pathExists:s=>{const o={fromContext:e,fromClosestContext:t,fromVirtualTreeRoot:n,fromParent:r,nodeParams:i};return new Promise((e,t)=>{this.containerService.dispatch(Hr.CHECK_PATH_EXISTS_REQUEST,this.thisComponent,{...o,link:s},n=>{n?e(!0):t(!1)}),this.containerService.dispatch(Hr.PATH_EXISTS_REQUEST,this.thisComponent,{...o,link:s},n=>{n?e(!0):t(!1)})})},openAsDrawer:(e,t={})=>{s.navigate(e,{drawer:t})},openAsModal:(e,t={},n)=>new Promise(r=>{s.navigate(e,{modal:t},e=>{r({goBackValue:e}),n&&"function"==typeof n&&n(e)})}),openAsSplitView:(e,t={})=>{s.navigate(e,{splitView:t})},goBack:e=>{this.dispatchLuigiEvent(Hr.GO_BACK_REQUEST,e)},hasBack:()=>!1,updateModalSettings:(e={},t=!1)=>{this.dispatchLuigiEvent(Hr.UPDATE_MODAL_SETTINGS_REQUEST,{updatedModalSettings:e,addHistoryEntry:t})}};return s},uxManager:()=>({showAlert:e=>(e.id=this.alertIndex++,new Promise(t=>{this.alertResolvers[e.id]=t,this.dispatchLuigiEvent(Hr.ALERT_REQUEST,e,t=>{this.resolveAlert(e.id,t)})})),showConfirmationModal:e=>new Promise((t,n)=>{this.modalResolver={resolve:t,reject:n},this.containerService.dispatch(Hr.SHOW_CONFIRMATION_MODAL_REQUEST,this.thisComponent,e,e=>{e?t():n()})}),getCurrentTheme:()=>this.thisComponent.theme,closeUserSettings:()=>{this.dispatchLuigiEvent(Hr.CLOSE_USER_SETTINGS_REQUEST,this.thisComponent.userSettings)},openUserSettings:()=>{this.dispatchLuigiEvent(Hr.OPEN_USER_SETTINGS_REQUEST,this.thisComponent.userSettings)},collapseLeftSideNav:()=>{this.dispatchLuigiEvent(Hr.COLLAPSE_LEFT_NAV_REQUEST,{})},getDirtyStatus:()=>this.thisComponent.dirtyStatus||!1,getDocumentTitle:()=>this.thisComponent.documentTitle,setDocumentTitle:e=>{this.dispatchLuigiEvent(Hr.SET_DOCUMENT_TITLE_REQUEST,e)},setDirtyStatus:e=>{this.dispatchLuigiEvent(Hr.SET_DIRTY_STATUS_REQUEST,{dirty:e})},setCurrentLocale:e=>{e&&this.dispatchLuigiEvent(Hr.SET_CURRENT_LOCALE_REQUEST,{currentLocale:e})},removeBackdrop:()=>{this.dispatchLuigiEvent(Hr.REMOVE_BACKDROP_REQUEST,{})},addBackdrop:()=>{this.dispatchLuigiEvent(Hr.ADD_BACKDROP_REQUEST,{})},showLoadingIndicator:()=>{this.dispatchLuigiEvent(Hr.SHOW_LOADING_INDICATOR_REQUEST,{})},hideLoadingIndicator:()=>{this.dispatchLuigiEvent(Hr.HIDE_LOADING_INDICATOR_REQUEST,{})},hideAppLoadingIndicator:()=>{this.dispatchLuigiEvent(Hr.HIDE_LOADING_INDICATOR_REQUEST,{})},closeCurrentModal:()=>{this.dispatchLuigiEvent(Hr.CLOSE_CURRENT_MODAL_REQUEST,{})}}),getCurrentLocale:()=>this.thisComponent.locale,getActiveFeatureToggles:()=>this.thisComponent.activeFeatureToggleList||[],publishEvent:i=>{e&&e.eventBus&&e.eventBus.onPublishEvent(i,t,n);const s={id:i.type,_metaData:{nodeId:t,wc_id:n,src:r},data:i.detail};this.dispatchLuigiEvent(Hr.CUSTOM_MESSAGE,s)},luigiClientInit:()=>{this.dispatchLuigiEvent(Hr.INITIALIZED,{})},addNodeParams:(e,t)=>{i||this.dispatchLuigiEvent(Hr.ADD_NODE_PARAMS_REQUEST,{params:e,data:e,keepBrowserHistory:t})},getNodeParams:e=>{return i?{}:e?(t=this.thisComponent.nodeParams,Object.entries(t).reduce((e,t)=>(e[Xr(t[0])]=Xr(t[1]),e),{})):this.thisComponent.nodeParams||{};var t},setAnchor:e=>{i||this.dispatchLuigiEvent(Hr.SET_ANCHOR_LINK_REQUEST,e)},getAnchor:()=>this.thisComponent.anchor||"",getCoreSearchParams:()=>this.thisComponent.searchParams||{},getPathParams:()=>this.thisComponent.pathParams||{},getClientPermissions:()=>this.thisComponent.clientPermissions||{},addCoreSearchParams:(e={},t=!0)=>{this.dispatchLuigiEvent(Hr.ADD_SEARCH_PARAMS_REQUEST,{data:e,keepBrowserHistory:t})},getUserSettings:()=>this.thisComponent.userSettings||{},setViewGroupData:e=>{this.dispatchLuigiEvent(Hr.SET_VIEW_GROUP_DATA_REQUEST,e)}}}initWC(e,t,n,r,i,s,o){const a=this.createClientAPI(n,s,t,e,o);if(e.__postProcess){const t=new URL(document.baseURI).origin===new URL(r,document.baseURI).origin?new URL("./",new URL(r,document.baseURI)):new URL("./",r);e.__postProcess(i,a,t.origin+t.pathname)}else e.context=i,e.LuigiClient=a}generateWCId(e){let t="";const n=new URL(e,encodeURI(location.href)).href;for(let e=0;e<n.length;e++)t+=n.charCodeAt(e).toString(16);return"luigi-wc-"+t}registerWCFromUrl(e,t){const n=this.processViewUrl(e);return new Promise((e,r)=>{if(this.checkWCUrl(n))this.dynamicImport(n).then(n=>{try{if(!window.customElements.get(t)){let e=n.default;if(!HTMLElement.isPrototypeOf(e)){const t=Object.keys(n);for(let r=0;r<t.length&&(e=n[t[r]],!HTMLElement.isPrototypeOf(e));r++);}window.customElements.define(t,e)}e(1)}catch(e){r(e)}}).catch(e=>{r(e)});else{r(`Error: View URL '${n}' not allowed to be included`)}})}includeSelfRegisteredWCFromUrl(e,t,n){if(this.checkWCUrl(t)){this.containerService.getContainerManager()._registerWebcomponent||(this.containerService.getContainerManager()._registerWebcomponent=(e,t)=>{window.customElements.define(this.generateWCId(e),t)}),window.Luigi||(window.Luigi={},window.Luigi._registerWebcomponent||(window.Luigi._registerWebcomponent=(e,t)=>{this.containerService.getContainerManager()._registerWebcomponent(e,t)}));const r=document.createElement("script");r.setAttribute("src",t),"module"===e.webcomponent.type&&r.setAttribute("type","module"),r.setAttribute("defer","true"),r.addEventListener("load",()=>{n()}),document.body.appendChild(r)}else console.warn(`View URL '${t}' not allowed to be included`)}checkWCUrl(e){return!0}renderWebComponent(e,t,n,r,i,s){const o=this.processViewUrl(e,{context:n}),a=r?.webcomponent?.tagName||this.generateWCId(o),l=document.createElement("div");t.appendChild(l),t._luigi_node=r,window.customElements.get(a)?this.attachWC(a,l,t,n,o,i,s):window.luigiWCFn?window.luigiWCFn(o,a,l,()=>{this.attachWC(a,l,t,n,o,i,s)}):r?.webcomponent?.selfRegistered?this.includeSelfRegisteredWCFromUrl(r,o,()=>{this.attachWC(a,l,t,n,o,i,s)}):this.registerWCFromUrl(o,a).then(()=>{this.attachWC(a,l,t,n,o,i,s)}).catch(e=>{console.warn("ERROR =>",e),this.containerService.dispatch(Hr.RUNTIME_ERROR_HANDLING_REQUEST,this.thisComponent,e)})}createCompoundContainerAsync(e,t,n){return new Promise((r,i)=>{if(e.viewUrl)try{const i=n?.webcomponent?.tagName||this.generateWCId(e.viewUrl);n?.webcomponent?.selfRegistered?this.includeSelfRegisteredWCFromUrl(n,e.viewUrl,()=>{const n=document.createElement(i);n.setAttribute("lui_web_component","true"),this.initWC(n,i,n,e.viewUrl,t,"_root"),r(n)}):this.registerWCFromUrl(e.viewUrl,i).then(()=>{const n=document.createElement(i);n.setAttribute("lui_web_component","true"),this.initWC(n,i,n,e.viewUrl,t,"_root"),r(n)}).catch(e=>{console.warn("Error: ",e),this.containerService.dispatch(Hr.RUNTIME_ERROR_HANDLING_REQUEST,this.thisComponent,e)})}catch(e){i(e)}else r(e.createCompoundContainer())})}renderWebComponentCompound(e,t,n){let r;return e.webcomponent&&e.viewUrl?(r=new Vr,r.viewUrl=this.processViewUrl(e.viewUrl,{context:n}),r.createCompoundItemContainer=e=>{const t=document.createElement("div");return e?.slot&&t.setAttribute("slot",e.slot),t}):e.compound?.renderer&&(r=Kr(e.compound.renderer)),r=r||new Vr,new Promise(i=>{this.createCompoundContainerAsync(r,n,e).then(s=>{t._luigi_mfe_webcomponent=s,t._luigi_node=e;const o={};s.eventBus={listeners:o,onPublishEvent:(e,t,n)=>{const r=o[t+"."+e.type]||[];r.push(...o["*."+e.type]||[]),r.forEach(t=>{const n=t.wcElement||s.querySelector("[nodeId="+t.wcElementId+"]");n?n.dispatchEvent(new CustomEvent(t.action,{detail:t.converter?t.converter(e.detail):e.detail})):console.debug("Could not find event target",t)})}},e.compound?.children?.forEach((e,t)=>{const i={...n,...e.context},a=r.createCompoundItemContainer(e.layoutConfig);a.eventBus=s.eventBus,r.attachCompoundItem(s,a);const l=e.id||"gen_"+t;this.renderWebComponent(e.viewUrl,a,i,e,l,!0),zr(o,e,l)}),t.appendChild(s),zr(o,e.compound,"_root",s),i(s)}).catch(e=>{console.warn("Error: ",e),this.containerService.dispatch(Hr.RUNTIME_ERROR_HANDLING_REQUEST,this.thisComponent,e)})})}resolveAlert(e,t){this.alertResolvers[e]?(this.alertResolvers[e](void 0===t||t),this.alertResolvers[e]=void 0):console.log("Promise is not in the list.")}notifyConfirmationModalClosed(e){this.modalResolver?(e?this.modalResolver.resolve():this.modalResolver.reject(),this.modalResolver=void 0):console.log("Modal promise is not listed.")}}const Zr=new class{isFunction(e){return e&&"[object Function]"==={}.toString.call(e)}isObject(e){return!(!e||"object"!=typeof e||Array.isArray(e))}checkWebcomponentValue(e){return"string"==typeof e?JSON.parse(e):"boolean"==typeof e||"object"==typeof e?e:void console.warn("Webcomponent value has a wrong type.")}resolveContext(e){return e?"string"==typeof e?JSON.parse(e):e:{}}};var Yr=nr("<style>main.lui-isolated,\n .lui-isolated iframe {\n width: 100%;\n height: 100%;\n border: none;\n }\n\n main.lui-isolated {\n line-height: 0;\n }</style> <iframe></iframe>",1),ei=nr("<main><!></main>");function ti(e,n){Te(n,!1);let r=Nr(n,"activeFeatureToggleList",12),i=Nr(n,"allowRules",12),s=Nr(n,"anchor",12),o=Nr(n,"authData",12),a=Nr(n,"clientPermissions",12),l=Nr(n,"context",12),c=Nr(n,"deferInit",12),u=Nr(n,"dirtyStatus",12),d=Nr(n,"documentTitle",12),f=Nr(n,"hasBack",12),h=Nr(n,"label",12),p=Nr(n,"locale",12),_=Nr(n,"noShadow",12),v=Nr(n,"nodeParams",12),m=Nr(n,"pathParams",12),g=Nr(n,"sandboxRules",12),E=Nr(n,"searchParams",12),w=Nr(n,"skipCookieCheck",12),T=Nr(n,"skipInitCheck",12),S=Nr(n,"theme",12),y=Nr(n,"userSettings",12),b=Nr(n,"viewurl",12),C=Nr(n,"webcomponent",12);const R=At({});let O=At(),$=At(!1),U=At();const k=new Jr,N=()=>r()&&i()&&s()&&o()&&a()&&u()&&d()&&f()&&p()&&_()&&v()&&m()&&g()&&E()&&w()&&T()&&S()&&y(),L=e=>{if(!jn($)){e.sendCustomMessage=(t,n)=>{Gr.sendCustomMessage(t,e.getNoShadow()?e:jn(O),!!C(),jn(R),n)},e.updateContext=(t,n)=>{if(l(t),C())(e.getNoShadow()?e:jn(O))._luigi_mfe_webcomponent.context=t;else{const r={...n||{},activeFeatureToggleList:e.activeFeatureToggleList||[],currentLocale:e.locale,currentTheme:e.theme,userSettings:e.userSettings||null,cssVariables:e.cssVariables||{},anchor:e.anchor||"",drawer:e.drawer||!1,modal:e.modal||!1,viewStackSize:e.viewStackSize||0,isNavigateBack:e.isNavigateBack||!1};Gr.updateContext(t,r,jn(R),v(),m(),E())}},e.closeAlert=(t,n)=>{e.notifyAlertClosed(t,n)},e.notifyAlertClosed=(t,n)=>{e.isConnected&&(C()?k.resolveAlert(t,n):Gr.notifyAlertClosed(t,n,jn(R)))},e.notifyConfirmationModalClosed=t=>{e.isConnected&&(C()?k.notifyConfirmationModalClosed(!!t):Gr.notifyConfirmationModalClosed(!!t,jn(R)))},jr.registerContainer(e),k.thisComponent=e;const t=Zr.resolveContext(l());if(e.updateViewUrl=(e,t)=>{e?.length&&Gr.updateViewUrl(e,Zr.resolveContext(l()),t,jn(R))},C()&&"false"!=C()){if(e.getNoShadow())e.innerHTML="";else{Ot(O,jn(O).innerHTML="");e.attachShadow({mode:"open"}).append(jn(O))}const n=Zr.checkWebcomponentValue(C());k.renderWebComponent(b(),e.getNoShadow()?e:jn(O),t,"object"==typeof n?{webcomponent:n}:{})}else if(!e.getNoShadow()){e.innerHTML="";e.attachShadow({mode:"open"}).append(jn(O))}T()?(e.initialized=!0,setTimeout(()=>{k.dispatchLuigiEvent(Hr.INITIALIZED,{})})):C()&&(e.getNoShadow()?e:jn(O)).addEventListener("wc_ready",()=>{(e.getNoShadow()?e:jn(O))._luigi_mfe_webcomponent?.deferLuigiClientWCInit||(e.initialized=!0,k.dispatchLuigiEvent(Hr.INITIALIZED,{}))}),It($,!0),e.containerInitialized=!0}};var D;hr(async()=>{It(U,jn(O).parentNode),Ot(U,jn(U).iframeHandle=jn(R)),Ot(U,jn(U).init=()=>{L(jn(U))}),!c()&&b()&&L(jn(U))}),D=async()=>{},null===_e&&Z("onDestroy"),hr(()=>()=>Vn(D)),function(e,t){var n={effect:null,ran:!1,deps:e};_e.l.$.push(n),n.effect=sn(()=>{if(e(),!n.ran){n.ran=!0;var r=Cn;try{Rn(r.parent),Vn(t)}finally{Rn(r)}}})}(()=>(jn($),qn(b()),qn(c()),jn(U)),()=>{!jn($)&&b()&&!c()&&jn(U)&&L(jn(U))}),function(){var e=_e;sn(()=>{for(var t of e.l.$){t.deps();var n=t.effect;0!==(n.f&A)&&null!==n.deps&&Ne(n,I),Pn(n)&&Wn(n),t.ran=!1}})}();var P={unwarn:N,get activeFeatureToggleList(){return r()},set activeFeatureToggleList(e){r(e),Ze()},get allowRules(){return i()},set allowRules(e){i(e),Ze()},get anchor(){return s()},set anchor(e){s(e),Ze()},get authData(){return o()},set authData(e){o(e),Ze()},get clientPermissions(){return a()},set clientPermissions(e){a(e),Ze()},get context(){return l()},set context(e){l(e),Ze()},get deferInit(){return c()},set deferInit(e){c(e),Ze()},get dirtyStatus(){return u()},set dirtyStatus(e){u(e),Ze()},get documentTitle(){return d()},set documentTitle(e){d(e),Ze()},get hasBack(){return f()},set hasBack(e){f(e),Ze()},get label(){return h()},set label(e){h(e),Ze()},get locale(){return p()},set locale(e){p(e),Ze()},get noShadow(){return _()},set noShadow(e){_(e),Ze()},get nodeParams(){return v()},set nodeParams(e){v(e),Ze()},get pathParams(){return m()},set pathParams(e){m(e),Ze()},get sandboxRules(){return g()},set sandboxRules(e){g(e),Ze()},get searchParams(){return E()},set searchParams(e){E(e),Ze()},get skipCookieCheck(){return w()},set skipCookieCheck(e){w(e),Ze()},get skipInitCheck(){return T()},set skipInitCheck(e){T(e),Ze()},get theme(){return S()},set theme(e){S(e),Ze()},get userSettings(){return y()},set userSettings(e){y(e),Ze()},get viewurl(){return b()},set viewurl(e){b(e),Ze()},get webcomponent(){return C()},set webcomponent(e){C(e),Ze()}};Ur();var x=ei(),M=function(e,t){if(!ie)return Vt(e);var n=Vt(re);if(null===n)n=re.appendChild(Bt());else if(t&&3!==n.nodeType){var r=Bt();return n?.before(r),oe(r),r}return t&&zt(n),oe(n),n}(x),Q=e=>{var t=function(){if(ie)return tr(re,null),re;var e=document.createDocumentFragment(),t=document.createComment(""),n=Bt();return e.append(t,n),tr(t,n),e}(),n=Ft(t),r=e=>{var t=Yr(),n=function(e,t=1,n=!1){let r=ie?re:e;for(var i;t--;)i=r,r=qt(r);if(!ie)return r;if(n){if(3!==r?.nodeType){var s=Bt();return null===r?i?.after(s):r.before(s),oe(s),s}zt(r)}return oe(r),r}(Ft(t),2);$r(n,e=>Ot(R,jn(R).iframe=e),()=>jn(R)?.iframe),on((e,t)=>{br(n,"src",b()),br(n,"title",h()),br(n,"allow",e),br(n,"sandbox",t)},[()=>(qn(Br),qn(i()),Vn(()=>Br(i()))),()=>(qn(g()),Vn(()=>g()?g().join(" "):void 0))]),rr(e,t)};_r(n,e=>{C()&&"false"!==C()||e(r)}),rr(e,t)};return _r(M,e=>{jn($)&&e(Q)}),function(e){if(ie){if(null!==qt(re))throw te(),t;re=e}}(x),$r(x,e=>It(O,e),()=>jn(O)),on(()=>wr(x,1,gr(C()?void 0:"lui-isolated"))),rr(e,x),Or(n,"unwarn",N),Se(P)}xr(ti,{activeFeatureToggleList:{attribute:"active-feature-toggle-list",type:"Array"},allowRules:{attribute:"allow-rules",type:"Array"},anchor:{attribute:"anchor",type:"String"},authData:{attribute:"auth-data",type:"Object"},clientPermissions:{attribute:"client-permissions",type:"Object"},context:{attribute:"context",type:"String"},deferInit:{attribute:"defer-init",type:"Boolean"},dirtyStatus:{attribute:"dirty-status",type:"Boolean"},documentTitle:{attribute:"document-title",type:"String"},hasBack:{attribute:"has-back",type:"Boolean"},label:{attribute:"label",type:"String"},locale:{attribute:"locale",type:"String"},noShadow:{attribute:"no-shadow",type:"Boolean"},nodeParams:{attribute:"node-params",type:"Object"},pathParams:{attribute:"path-params",type:"Object"},sandboxRules:{attribute:"sandbox-rules",type:"Array"},searchParams:{attribute:"search-params",type:"Object"},skipCookieCheck:{attribute:"skip-cookie-check",type:"String"},skipInitCheck:{attribute:"skip-init-check",type:"Boolean"},theme:{attribute:"theme",type:"String"},userSettings:{attribute:"user-settings",type:"Object"},viewurl:{attribute:"viewurl",type:"String"},webcomponent:{attribute:"webcomponent",type:"String"}},[],["unwarn"],void 0,e=>{let t=e=>()=>console.warn(e+" can't be called on luigi-container before its micro frontend is attached to the DOM.");return class extends e{sendCustomMessage=t("sendCustomMessage");updateContext=t("updateContext");updateViewUrl=t("updateViewUrl");closeAlert=t("closeAlert");notifyAlertClosed=t("notifyAlertClosed");notifyConfirmationModalClosed=t("notifyConfirmationModalClosed");attributeChangedCallback(e,t,n){try{super.attributeChangedCallback(e,t,n)}catch(e){console.error("Error in super.attributeChangedCallback",e)}this.containerInitialized&&("context"===e&&this.updateContext(JSON.parse(n)),"auth-data"===e&&Gr.updateAuthData(this.iframeHandle,JSON.parse(n)))}getNoShadow(){return this.hasAttribute("no-shadow")||this.noShadow}}});var ni=nr('<main class="svelte-1yfh4yd"></main>');const ri={hash:"svelte-1yfh4yd",code:"main.svelte-1yfh4yd {width:100%;height:100%;border:none;}"};function ii(e,t){Te(t,!1),vr(e,ri);let n,r=Nr(t,"activeFeatureToggleList",12),i=Nr(t,"anchor",12),s=Nr(t,"clientPermissions",12),o=Nr(t,"compoundConfig",12),a=Nr(t,"context",12),l=Nr(t,"deferInit",12),c=Nr(t,"dirtyStatus",12),u=Nr(t,"documentTitle",12),d=Nr(t,"hasBack",12),f=Nr(t,"locale",12),h=Nr(t,"noShadow",12),p=Nr(t,"nodeParams",12),_=Nr(t,"pathParams",12),v=Nr(t,"searchParams",12),m=Nr(t,"skipInitCheck",12),g=Nr(t,"theme",12),E=Nr(t,"userSettings",12),w=Nr(t,"viewurl",12),T=Nr(t,"webcomponent",12),S=!1,y=At();const b=new Wr,C=new Jr,R=()=>r()&&i()&&s()&&c()&&u()&&d()&&f()&&h()&&p()&&_()&&v()&&m()&&g()&&E(),A=e=>{if(!o()||S)return;e.updateContext=(t,n)=>{const r=e.getNoShadow()?e:jn(y);r._luigi_mfe_webcomponent.context=t,a(t);const i=r._luigi_mfe_webcomponent;if(i){const e=i.querySelectorAll("[lui_web_component]");e?.forEach(e=>{const n=e.context||{};e.context=Object.assign(n,t)})}};const t=Zr.resolveContext(a());l(!1),e.notifyAlertClosed=(t,n)=>{e.isConnected&&C.resolveAlert(t,n)},e.notifyConfirmationModalClosed=t=>{e.isConnected&&C.notifyConfirmationModalClosed(!!t)};const r={compound:o(),viewUrl:w(),webcomponent:Zr.checkWebcomponentValue(T())||!0};if(e.getNoShadow())e.innerHTML="";else{Ot(y,jn(y).innerHTML="");e.attachShadow({mode:"open"}).append(jn(y))}C.renderWebComponentCompound(r,e.getNoShadow()?e:jn(y),t).then(t=>{n=t,m()||!r.viewUrl?(e.initialized=!0,setTimeout(()=>{C.dispatchLuigiEvent(Hr.INITIALIZED,{})})):n.LuigiClient&&!n.deferLuigiClientWCInit&&(e.initialized=!0,C.dispatchLuigiEvent(Hr.INITIALIZED,{}))}),S=!0,e.containerInitialized=!0};hr(async()=>{const e=jn(y).getRootNode()===document?jn(y).parentNode:jn(y).getRootNode().host;e.init=()=>{A(e)},l()||A(e),b.registerContainer(e),C.thisComponent=e});var O={unwarn:R,get activeFeatureToggleList(){return r()},set activeFeatureToggleList(e){r(e),Ze()},get anchor(){return i()},set anchor(e){i(e),Ze()},get clientPermissions(){return s()},set clientPermissions(e){s(e),Ze()},get compoundConfig(){return o()},set compoundConfig(e){o(e),Ze()},get context(){return a()},set context(e){a(e),Ze()},get deferInit(){return l()},set deferInit(e){l(e),Ze()},get dirtyStatus(){return c()},set dirtyStatus(e){c(e),Ze()},get documentTitle(){return u()},set documentTitle(e){u(e),Ze()},get hasBack(){return d()},set hasBack(e){d(e),Ze()},get locale(){return f()},set locale(e){f(e),Ze()},get noShadow(){return h()},set noShadow(e){h(e),Ze()},get nodeParams(){return p()},set nodeParams(e){p(e),Ze()},get pathParams(){return _()},set pathParams(e){_(e),Ze()},get searchParams(){return v()},set searchParams(e){v(e),Ze()},get skipInitCheck(){return m()},set skipInitCheck(e){m(e),Ze()},get theme(){return g()},set theme(e){g(e),Ze()},get userSettings(){return E()},set userSettings(e){E(e),Ze()},get viewurl(){return w()},set viewurl(e){w(e),Ze()},get webcomponent(){return T()},set webcomponent(e){T(e),Ze()}};Ur();var I=ni();return $r(I,e=>It(y,e),()=>jn(y)),rr(e,I),Or(t,"unwarn",R),Se(O)}xr(ii,{activeFeatureToggleList:{attribute:"active-feature-toggle-list",type:"Array"},anchor:{attribute:"anchor",type:"String"},clientPermissions:{attribute:"client-permissions",type:"Object"},compoundConfig:{attribute:"compound-config",type:"Object"},context:{attribute:"context",type:"String"},deferInit:{attribute:"defer-init",type:"Boolean"},dirtyStatus:{attribute:"dirty-status",type:"Boolean"},documentTitle:{attribute:"document-title",type:"String"},hasBack:{attribute:"has-back",type:"Boolean"},locale:{attribute:"locale",type:"String"},noShadow:{attribute:"no-shadow",type:"Boolean"},nodeParams:{attribute:"node-params",type:"Object"},pathParams:{attribute:"path-params",type:"Object"},searchParams:{attribute:"search-params",type:"Object"},skipInitCheck:{attribute:"skip-init-check",type:"Boolean"},theme:{attribute:"theme",type:"String"},userSettings:{attribute:"user-settings",type:"Object"},viewurl:{attribute:"viewurl",type:"String"},webcomponent:{attribute:"webcomponent",type:"String"}},[],["unwarn"],void 0,e=>{let t=e=>()=>console.warn(e+" can't be called on luigi-container before its micro frontend is attached to the DOM.");return class extends e{updateContext=t("updateContext");notifyAlertClosed=t("notifyAlertClosed");notifyConfirmationModalClosed=t("notifyConfirmationModalClosed");attributeChangedCallback(e,t,n){try{super.attributeChangedCallback(e,t,n)}catch(e){console.warn("Error in attributeChangedCallback",e)}this.containerInitialized&&"context"===e&&this.updateContext(JSON.parse(n))}getNoShadow(){return this.hasAttribute("no-shadow")||this.noShadow}}}),customElements.get("luigi-container")||customElements.define("luigi-container",ti.element),customElements.get("luigi-compound-container")||customElements.define("luigi-compound-container",ii.element);export{ii as LuigiCompoundContainer,ti as LuigiContainer,Hr as LuigiEvents,Hr as default};
|
|
2
2
|
//# sourceMappingURL=bundle.js.map
|