@luigi-project/container 1.7.6-dev.20260420050 → 1.7.6-dev.20260440048

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 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 $=[];const C=[],f=Promise.resolve();let R=!1;function A(t){$.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<$.length;t+=1){const e=$[t];w.has(e)||(w.add(e),e())}$.length=0}while(T.length);for(;C.length;)C.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=[];$.forEach(n=>-1===t.indexOf(n)?e.push(n):i.push(n)),i.forEach(t=>t()),$=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($))),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,$;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))}if(this.$$l[t]){const i=this.$$l[t].indexOf(e);i>=0&&this.$$l[t].splice(i,1)}}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("&lt;","<").replaceAll("&gt;",">").replaceAll("&quot;",'"').replaceAll("&#39;","'").replaceAll("&sol;","/")}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={},r)=>{const c={fromContext:t,fromClosestContext:e,fromVirtualTreeRoot:i,fromParent:n,nodeParams:s,...a};this.dispatchLuigiEvent(Q.NAVIGATION_REQUEST,{link:o,...c},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={},i)=>new Promise(n=>{o.navigate(t,{modal:e},t=>{n({goBackValue:t}),i&&"function"==typeof i&&i(t)})}),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:$}=e,{sandboxRules:C}=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,$,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,$=t.pathParams),"sandboxRules"in t&&i(2,C=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,C,I,O,y,U,v,c,n,o,a,r,l,d,u,h,m,p,T,$,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:$}=e,{skipInitCheck:C}=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,C||!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,$=t.searchParams),"skipInitCheck"in t&&i(15,C=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,g=Object.getPrototypeOf,m=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 b=16,y=32,C=64,R=512,A=1024,O=2048,I=4096,$=8192,U=16384,N=32768,L=1<<25,k=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=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"},q=!!globalThis.document?.contentType&&globalThis.document.contentType.includes("xml");function F(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 K="font-weight: bold",z="font-weight: normal";function X(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`,K,z):console.warn("https://svelte.dev/e/hydration_mismatch")}function J(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`,K,z):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}let Z,Y=!1;function ee(e){Y=e}function te(e){if(null===e)throw X(),t;return Z=e}function ne(){return te(Mt(Z))}function re(e=!0){for(var t=0,n=Z;;){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=Mt(n);e&&n.remove(),n=i}}function ie(e){return e===this.v}function se(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 oe(e,t){return e.label=t,ae(e.v,t),e}function ae(e,t){return e?.[B]?.(t),e}function le(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 ce(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 ue=null;function de(e){ue=e}let fe=null;function he(e){fe=e}let pe=null;function _e(e){pe=e}function ve(t,n=!1,r){ue={p:ue,i:!1,c:null,e:null,s:t,x:null,r:gn,l:e&&!n?{s:null,u:null,$:[]}:null},o&&(ue.function=r,pe=r)}function ge(e){var t=ue,n=t.e;if(null!==n)for(var r of(t.e=null,n))Kt(r);return void 0!==e&&(t.x=e),t.i=!0,ue=t.p,o&&(pe=ue?.function??null),e??{}}function me(){return!e||null!==ue&&null===ue.l}let Ee=[];function we(){var e=Ee;Ee=[],T(e)}function Te(e){if(0===Ee.length&&!xe){var t=Ee;queueMicrotask(()=>{t===Ee&&we()})}Ee.push(e)}function Se(){for(;Ee.length>0;)we()}const be=new WeakMap;function ye(e){var t=gn;if(null===t)return pn.f|=H,e;if(o&&e instanceof Error&&!be.has(e)&&be.set(e,function(e,t){const n=h(e,"message");if(n&&!n.configurable)return;var i=Nt?" ":"\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&N)&&!(4&t.f))throw o&&!t.parent&&e instanceof Error&&Re(e),e;Ce(e,t)}function Ce(e,t){for(;null!==t;){if(128&t.f){if(0===(t.f&N))throw e;try{return void t.b.error(e)}catch(t){e=t}}t=t.parent}throw o&&e instanceof Error&&Re(e),e}function Re(e){const t=be.get(e);t&&(f(e,"message",{value:t.message}),f(e,"stack",{value:t.stack}))}const Ae=-7169;function Oe(e,t){e.f=e.f&Ae|t}function Ie(e){0!==(e.f&R)||null===e.deps?Oe(e,A):Oe(e,I)}function $e(e){if(null!==e)for(const t of e)2&t.f&&0!==(t.f&x)&&(t.f^=x,$e(t.deps))}function Ue(e,t,n){0!==(e.f&O)?t.add(e):0!==(e.f&I)&&n.add(e),$e(e.deps),Oe(e,A)}let Ne=!1;const Le=new Set;let ke=null,De=null,Pe=null,xe=!1,Me=!1,Qe=null,He=null;var We=0,je=o?new Set:null;let Ge=1;class Be{id=Ge++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Map;#r=new Map;#i=null;#s=[];#o=[];#a=new Set;#l=new Set;#c=new Map;is_fork=!1;#u=!1;#d=new Set;#f(){return this.is_fork||this.#r.size>0}#h(){for(const n of this.#d)for(const r of n.#r.keys()){for(var e=!1,t=r;null!==t.parent;){if(this.#c.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){for(var n of(this.#c.delete(e),t.d))Oe(n,O),this.schedule(n);for(n of t.m)Oe(n,I),this.schedule(n)}}#p(){if(We++>1e3&&(Le.delete(this),function(){if(o){var e=new Map;for(const n of ke.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:""}),Ce(e,Pe)}}()),!this.#f()){for(const e of this.#a)this.#l.delete(e),Oe(e,O),this.schedule(e);for(const e of this.#l)Oe(e,I),this.schedule(e)}const e=this.#s;this.#s=[],this.apply();var t=Qe=[],n=[],r=He=[];for(const r of e)try{this.#_(r,t,n)}catch(e){throw Ze(r),e}if(ke=null,r.length>0){var i=Be.ensure();for(const e of r)i.schedule(e)}if(Qe=null,He=null,this.#f()||this.#h()){this.#v(n),this.#v(t);for(const[e,t]of this.#c)Je(e,t)}else{0===this.#n.size&&Le.delete(this),this.#a.clear(),this.#l.clear();for(const e of this.#e)e(this);this.#e.clear(),Fe(n),Fe(t),this.#i?.resolve()}var s=ke;if(this.#s.length>0){const e=s??=this;e.#s.push(...this.#s.filter(t=>!e.#s.includes(t)))}if(null!==s){if(Le.add(s),o)for(const e of this.current.keys())je.add(e);s.#p()}Le.has(this)||this.#g()}#_(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.#c.has(r))&&null!==r.fn){s?r.f^=A:4&i?t.push(r):On(r)&&(0!==(i&b)&&this.#l.add(r),Ln(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}}}#v(e){for(var t=0;t<e.length;t+=1)Ue(e[t],this.#a,this.#l)}capture(e,t,r=!1){t===n||this.previous.has(e)||this.previous.set(e,t),0===(e.f&H)&&(this.current.set(e,[e.v,r]),De?.set(e,e.v))}activate(){ke=this}deactivate(){ke=null,De=null}flush(){var e=o?new Set:null;try{Me=!0,ke=this,this.#p()}finally{if(We=0,Pe=null,Qe=null,He=null,Me=!1,ke=null,De=null,pt.clear(),o)for(const t of e)t.updated=null}}discard(){for(const e of this.#t)e(this);this.#t.clear(),Le.delete(this)}register_created_effect(e){this.#o.push(e)}#g(){for(const u of Le){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)}var r=[...u.current.keys()].filter(e=>!this.current.has(e));if(0===r.length)e&&u.discard();else if(t.length>0){o&&ce(0===u.#s.length,"Batch has scheduled roots"),u.activate();var i=new Set,s=new Map;for(var a of t)Ke(a,r,i,s);s=new Map;var l=[...u.current.keys()].filter(e=>!this.current.has(e)||this.current.get(e)[0]!==e);for(const e of this.#o)155648&e.f||!ze(e,l,s)||(4194320&e.f?(Oe(e,O),u.schedule(e)):u.#a.add(e));if(u.#s.length>0){for(var c of(u.apply(),u.#s))u.#_(c,[],[]);u.#s=[]}u.deactivate()}}for(const e of Le)e.#d.has(this)&&(e.#d.delete(this),0!==e.#d.size||e.#f()||(e.activate(),e.#p()))}increment(e,t){let n=this.#n.get(t)??0;if(this.#n.set(t,n+1),e){let e=this.#r.get(t)??0;this.#r.set(t,e+1)}}decrement(e,t,n){let r=this.#n.get(t)??0;if(1===r?this.#n.delete(t):this.#n.set(t,r-1),e){let e=this.#r.get(t)??0;1===e?this.#r.delete(t):this.#r.set(t,e-1)}this.#u||n||(this.#u=!0,Te(()=>{this.#u=!1,this.flush()}))}transfer_effects(e,t){for(const t of e)this.#a.add(t);for(const e of t)this.#l.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=S()).promise}static ensure(){if(null===ke){const e=ke=new Be;Me||(Le.add(ke),xe||Te(()=>{ke===e&&e.flush()}))}return ke}apply(){De=null}schedule(e){if(Pe=e,e.b?.is_pending&&16777228&e.f&&0===(e.f&N))e.b.defer_effect(e);else{for(var t=e;null!==t.parent;){var n=(t=t.parent).f;if(!(null===Qe||t!==gn||null!==pn&&2&pn.f))return;if(96&n){if(0===(n&A))return;t.f^=A}}this.#s.push(t)}}}function Ve(e){var t=xe;xe=!0;try{var n;for(e&&(null===ke||ke.is_fork||ke.flush(),n=e());;){if(Se(),null===ke)return n;ke.flush()}}finally{xe=t}}let qe=null;function Fe(e){var t=e.length;if(0!==t){for(var n=0;n<t;){var r=e[n++];if(!(24576&r.f)&&On(r)&&(qe=new Set,Ln(r),null===r.deps&&null===r.first&&null===r.nodes&&null===r.teardown&&null===r.ac&&rn(r),qe?.size>0)){pt.clear();for(const e of qe){if(24576&e.f)continue;const t=[e];let n=e.parent;for(;null!==n;)qe.has(n)&&(qe.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){const n=t[e];24576&n.f||Ln(n)}}qe.clear()}}qe=null}}function Ke(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?Ke(i,t,n,r):4194320&e&&0===(e&O)&&ze(i,t,r)&&(Oe(i,O),Xe(i))}}function ze(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&&ze(r,t,n))return n.set(r,!0),!0}return n.set(e,!1),!1}function Xe(e){ke.schedule(e)}function Je(e,t){if(0===(e.f&y)||0===(e.f&A)){0!==(e.f&O)?t.d.push(e):0!==(e.f&I)&&t.m.push(e),Oe(e,A);for(var n=e.first;null!==n;)Je(n,t),n=n.next}}function Ze(e){Oe(e,A);for(var t=e.first;null!==t;)Ze(t),t=t.next}class Ye{parent;is_pending=!1;transform_error;#m;#E=Y?Z:null;#w;#T;#S;#b=null;#y=null;#C=null;#R=null;#A=0;#O=0;#I=!1;#a=new Set;#l=new Set;#$=null;#U=function(e){let t,n=0,r=gt(0);return o&&oe(r,"createSubscriber version"),()=>{Vt()&&(kn(r),Xt(()=>(0===n&&(t=xn(()=>e(()=>yt(r)))),n+=1,()=>{Te(()=>{n-=1,0===n&&(t?.(),t=void 0,yt(r))})})))}}(()=>(this.#$=gt(this.#A),o&&oe(this.#$,"$effect.pending()"),()=>{this.#$=null}));constructor(e,t,n,r){this.#m=e,this.#w=t,this.#T=e=>{var t=gn;t.b=this,t.f|=128,n(e)},this.parent=gn.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#S=Zt(()=>{if(Y){const e=this.#E;ne();const t="[!"===e.data;if(e.data.startsWith("[?")){const t=JSON.parse(e.data.slice(2));this.#N(t)}else t?this.#L():this.#k()}else this.#D()},589824),Y&&(this.#m=Z)}#k(){try{this.#b=Yt(()=>this.#T(this.#m))}catch(e){this.error(e)}}#N(e){const t=this.#w.failed;t&&(this.#C=Yt(()=>{t(this.#m,()=>e,()=>()=>{})}))}#L(){const e=this.#w.pending;e&&(this.is_pending=!0,this.#y=Yt(()=>e(this.#m)),Te(()=>{var e=this.#R=document.createDocumentFragment(),t=Pt();e.append(t),this.#b=this.#P(()=>Yt(()=>this.#T(t))),0===this.#O&&(this.#m.before(e),this.#R=null,sn(this.#y,()=>{this.#y=null}),this.#x(ke))}))}#D(){try{if(this.is_pending=this.has_pending_snippet(),this.#O=0,this.#A=0,this.#b=Yt(()=>{this.#T(this.#m)}),this.#O>0){var e=this.#R=document.createDocumentFragment();cn(this.#b,e);const t=this.#w.pending;this.#y=Yt(()=>t(this.#m))}else this.#x(ke)}catch(e){this.error(e)}}#x(e){this.is_pending=!1,e.transfer_effects(this.#a,this.#l)}defer_effect(e){Ue(e,this.#a,this.#l)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#w.pending}#P(e){var t=gn,n=pn,r=ue;mn(this.#S),vn(this.#S),de(this.#S.ctx);try{return Be.ensure(),e()}catch(e){return ye(e),null}finally{mn(t),vn(n),de(r)}}#M(e,t){this.has_pending_snippet()?(this.#O+=e,0===this.#O&&(this.#x(t),this.#y&&sn(this.#y,()=>{this.#y=null}),this.#R&&(this.#m.before(this.#R),this.#R=null))):this.parent&&this.parent.#M(e,t)}update_pending_count(e,t){this.#M(e,t),this.#A+=e,this.#$&&!this.#I&&(this.#I=!0,Te(()=>{this.#I=!1,this.#$&&St(this.#$,this.#A)}))}get_effect_pending(){return this.#U(),kn(this.#$)}error(e){var t=this.#w.onerror;let n=this.#w.failed;if(!t&&!n)throw e;this.#b&&(nn(this.#b),this.#b=null),this.#y&&(nn(this.#y),this.#y=null),this.#C&&(nn(this.#C),this.#C=null),Y&&(te(this.#E),function(e=1){if(Y){for(var t=e,n=Z;t--;)n=Mt(n);Z=n}}(),te(re()));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",K,z):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.#C&&sn(this.#C,()=>{this.#C=null}),this.#P(()=>{this.#D()}))},a=e=>{try{i=!0,t?.(e,s),i=!1}catch(e){Ce(e,this.#S&&this.#S.parent)}n&&(this.#C=this.#P(()=>{try{return Yt(()=>{var t=gn;t.b=this,t.f|=128,n(this.#m,()=>e,()=>s)})}catch(e){return Ce(e,this.#S.parent),null}}))};Te(()=>{var t;try{t=this.transform_error(e)}catch(e){return void Ce(e,this.#S&&this.#S.parent)}null!==t&&"object"==typeof t&&"function"==typeof t.then?t.then(a,e=>Ce(e,this.#S&&this.#S.parent)):a(t)})}}function et(e,t,r,i){const s=me()?ot:at;var a=e.filter(e=>!e.settled);if(0!==r.length||0!==a.length){var l=gn,c=function(){var e=gn,t=pn,n=ue,r=ke;if(o)var i=fe;return function(s=!0){mn(e),vn(t),de(n),s&&0===(e.f&U)&&(r?.activate(),r?.apply()),o&&(it(null),he(i))}}(),u=1===a.length?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;if(0!==r.length){var d=nt();u?u.then(()=>{c(),h(),tt()}):h()}else u.then(()=>f(t.map(s)))}else i(t.map(s));function f(e){c();try{i(e)}catch(e){0===(l.f&U)&&Ce(e,l)}tt()}function h(){Promise.all(r.map(e=>function(e,t,r){let i=gn;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=gt(n);o&&(a.label=t);var l=!pn,c=new Map;(function(e){Bt(4718592,e)})(()=>{o&&(rt={effect:gn,warned:!1});var t=gn,n=S();s=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(tt)}catch(e){n.reject(e),tt()}o&&(rt=null);var u=ke;if(l){if(0!==(t.f&N))var d=nt();if(i.b.is_rendered())c.get(u)?.reject(V),c.delete(u);else{for(const e of c.values())e.reject(V);c.clear()}c.set(u,n)}const f=(e,n=void 0)=>{(o&&(rt=null),d)&&d(n===V);if(n!==V&&0===(t.f&U)){if(u.activate(),n)a.f|=H,St(a,n);else{0!==(a.f&H)&&(a.f^=H),St(a,e);for(const[e,t]of c){if(c.delete(e),e===u)break;t.reject(V)}o&&void 0!==r&&(st.add(a),setTimeout(()=>{st.has(a)&&(!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`,K,z):console.warn("https://svelte.dev/e/await_waterfall")}(a.label,r),st.delete(a))}))}u.deactivate()}};n.promise.then(f,e=>f(null,e||"unknown"))}),qt(()=>{for(const e of c.values())e.reject(V)}),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=>Ce(e,l)).finally(()=>d())}}function tt(e=!0){mn(null),vn(null),de(null),e&&ke?.deactivate(),o&&(it(null),he(null))}function nt(){var e=gn,t=e.b,n=ke,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}let rt=null;function it(e){rt=e}const st=new Set;function ot(e){var t=null!==pn&&2&pn.f?pn:null;null!==gn&&(gn.f|=P);const r={ctx:ue,deps:null,effects:null,equals:ie,f:2050,fn:e,reactions:null,rv:0,v:n,wv:0,parent:t??gn,ac:null};return r}function at(e){const t=ot(e);return t.equals=se,t}function lt(e){var t=e.effects;if(null!==t){e.effects=null;for(var n=0;n<t.length;n+=1)nn(t[n])}}let ct=[];function ut(e){var t,n=gn;if(mn(function(e){for(var t=e.parent;null!==t;){if(!(2&t.f))return 0===(t.f&U)?t:null;t=t.parent}return null}(e)),o){let r=ht;_t(new Set);try{c.call(ct,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")}(),ct.push(e),e.f&=-65537,lt(e),t=$n(e)}finally{mn(n),_t(r),ct.pop()}}else try{e.f&=-65537,lt(e),t=$n(e)}finally{mn(n)}return t}function dt(e){var t=e.v,n=ut(e);e.equals(n)||(e.wv=An(),ke?.is_fork&&null!==e.deps||(e.v=n,ke?.capture(e,t,!0),null!==e.deps))?fn||(null!==De?(Vt()||ke?.is_fork)&&De.set(e,n):Ie(e)):Oe(e,A)}function ft(e){if(null!==e.effects)for(const t of e.effects)t.teardown&&Ln(t)}let ht=new Set;const pt=new Map;function _t(e){ht=e}let vt=!1;function gt(e,t){var n={f:0,v:e,reactions:null,equals:ie,rv:0,wv:0};return n}function mt(e,t){const n=gt(e);var r;return r=n,null!==pn&&(null===En?En=[r]:En.push(r)),n}function Et(t,n=!1,r=!0){const i=gt(t);return n||(i.equals=se),e&&r&&null!==ue&&null!==ue.l&&(ue.l.s??=[]).push(i),i}function wt(e,t){return Tt(e,xn(()=>kn(e))),t}function Tt(e,t,n=!1){null===pn||_n&&0===(pn.f&D)||!me()||!(4325394&pn.f)||null!==En&&c.call(En,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?At(t):t;return o&&ae(r,e.label),St(e,r,He)}function St(e,t,n=null){if(!e.equals(t)){var r=e.v;fn?pt.set(e,t):pt.set(e,r),e.v=t;var i=Be.ensure();if(i.capture(e,r),o){if(null!==gn){e.updated??=new Map;const t=(e.updated.get("")?.count??0)+1;if(e.updated.set("",{error:null,count:t}),t>5){const t=le("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!==gn&&(e.set_during_effect=!0)}if(2&e.f){const t=e;0!==(e.f&O)&&ut(t),null===De&&Ie(t)}e.wv=An(),Ct(e,O,n),!me()||null===gn||0===(gn.f&A)||96&gn.f||(null===Sn?function(e){Sn=e}([e]):Sn.push(e)),!i.is_fork&&ht.size>0&&!vt&&bt()}return t}function bt(){vt=!1;for(const e of ht)0!==(e.f&A)&&Oe(e,I),On(e)&&Ln(e);ht.clear()}function yt(e){Tt(e,e.v+1)}function Ct(e,t,n){var r=e.reactions;if(null!==r)for(var i=me(),s=r.length,a=0;a<s;a++){var l=r[a],c=l.f;if(i||l!==gn)if(o&&0!==(c&D))ht.add(l);else{var u=0===(c&O);if(u&&Oe(l,t),2&c){var d=l;De?.delete(d),0===(c&x)&&(c&R&&(l.f|=x),Ct(d,I,n))}else if(u){var f=l;0!==(c&b)&&null!==qe&&qe.add(f),null!==n?n.push(f):Xe(f)}}}}const Rt=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function At(e){if("object"!=typeof e||null===e||W in e)return e;const t=g(e);if(t!==_&&t!==v)return e;var r=new Map,i=a(e),s=mt(0),l=Cn,c=e=>{if(Cn===l)return e();var t=pn,n=Cn;vn(null),Rn(l);var r=e();return vn(t),Rn(n),r};i&&(r.set("length",mt(e.length)),o&&(e=new Proxy(e,{get(e,t,n){var r=Reflect.get(e,t,n);return $t.has(t)?function(...e){vt=!0;var t=r.apply(this,e);return bt(),t}:r}})));var u="";let d=!1;function f(e){if(!d){d=!0,oe(s,`${u=e} version`);for(const[e,t]of r)oe(t,Ot(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=mt(n.value);return r.set(t,e),o&&"string"==typeof t&&oe(e,Ot(u,t)),e}):Tt(i,n.value,!0),!0},deleteProperty(e,t){var i=r.get(t);if(void 0===i){if(t in e){const e=c(()=>mt(n));r.set(t,e),yt(s),o&&oe(e,Ot(u,t))}}else Tt(i,n),yt(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=mt(At(l?t[i]:n));return o&&oe(e,Ot(u,i)),e}),r.set(i,a)),void 0!==a){var d=kn(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=kn(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!==gn&&(!s||h(e,t)?.writable))&&(void 0===i&&(i=c(()=>{var r=mt(s?At(e[t]):n);return o&&oe(r,Ot(u,t)),r}),r.set(t,i)),kn(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!==_?Tt(_,n):p in e&&(_=c(()=>mt(n)),r.set(p+"",_),o&&oe(_,Ot(u,p)))}void 0===d?f&&!h(e,t)?.writable||(d=c(()=>mt(void 0)),o&&oe(d,Ot(u,t)),Tt(d,At(a)),r.set(t,d)):(f=d.v!==n,Tt(d,c(()=>At(a))));var v=Reflect.getOwnPropertyDescriptor(e,t);if(v?.set&&v.set.call(l,a),!f){if(i&&"string"==typeof t){var g=r.get("length"),m=Number(t);Number.isInteger(m)&&m>=g.v&&Tt(g,m+1)}yt(s)}return!0},ownKeys(e){kn(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 Ot(e,t){return"symbol"==typeof t?`${e}[Symbol(${t.description??""})]`:Rt.test(t)?`${e}.${t}`:/^\d+$/.test(t)?`${e}[${t}]`:`${e}['${t}']`}function It(e){try{if(null!==e&&"object"==typeof e&&W in e)return e[W]}catch{}return e}const $t=new Set(["copyWithin","fill","pop","push","reverse","shift","sort","splice","unshift"]);var Ut,Nt,Lt,kt;function Dt(){if(void 0===Ut){Ut=window,Nt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Lt=h(t,"firstChild").get,kt=h(t,"nextSibling").get,m(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),m(n)&&(n.__t=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(It(this[n])===e){J("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(It(this[n])===e){J("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(It(this[t])===e){J("array.includes(...)");break}return n},Array.__svelte_cleanup=()=>{e.indexOf=n,e.lastIndexOf=r,e.includes=i}}())}}function Pt(e=""){return document.createTextNode(e)}function xt(e){return Lt.call(e)}function Mt(e){return kt.call(e)}function Qt(e,t=!1){if(!Y){var n=xt(e);return n instanceof Comment&&""===n.data?Mt(n):n}if(t){if(3!==Z?.nodeType){var r=Pt();return Z?.before(r),te(r),r}Wt(Z)}return Z}function Ht(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??i,e,r)}function Wt(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 jt(e){var t=pn,n=gn;vn(null),mn(null);try{return e()}finally{vn(t),mn(n)}}function Gt(e){null===gn&&(null===pn&&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")}()),fn&&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 Bt(e,t){var n=gn;if(o)for(;null!==n&&0!==(n.f&D);)n=n.parent;null!==n&&0!==(n.f&$)&&(e|=$);var r={ctx:ue,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=pe),ke?.register_created_effect(r);var i=r;if(4&e)null!==Qe?Qe.push(r):Be.ensure().schedule(r);else if(null!==t){try{Ln(r)}catch(i){throw nn(r),i}null===i.deps&&null===i.teardown&&null===i.nodes&&i.first===i.last&&0===(i.f&P)&&(i=i.first,0!==(e&b)&&0!==(e&k)&&null!==i&&(i.f|=k))}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!==pn&&2&pn.f&&0===(e&C))){var s=pn;(s.effects??=[]).push(i)}return r}function Vt(){return null!==pn&&!_n}function qt(e){const t=Bt(8,null);return Oe(t,A),t.teardown=e,t}function Ft(e){Gt("$effect"),o&&f(e,"name",{value:"$effect"});var t=gn.f;if(!(!pn&&0!==(t&y)&&0===(t&N)))return Kt(e);var n=ue;(n.e??=[]).push(e)}function Kt(e){return Bt(1048580,e)}function zt(e){return Bt(4,e)}function Xt(e,t=0){return Bt(8|t,e)}function Jt(e,t=[],n=[],r=[]){et(r,t,n,t=>{Bt(8,()=>e(...t.map(kn)))})}function Zt(e,t=0){var n=Bt(b|t,e);return o&&(n.dev_stack=fe),n}function Yt(e){return Bt(524320,e)}function en(e){var t=e.teardown;if(null!==t){const e=fn,n=pn;hn(!0),vn(null);try{t.call(null)}finally{hn(e),vn(n)}}}function tn(e,t=!1){var n=e.first;for(e.first=e.last=null;null!==n;){const e=n.ac;null!==e&&jt(()=>{e.abort(V)});var r=n.next;0!==(n.f&C)?n.parent=null:nn(n,t),n=r}}function nn(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:Mt(e);e.remove(),e=n}}(e.nodes.start,e.nodes.end),n=!0),Oe(e,L),tn(e,t&&!n),Nn(e,0);var r=e.nodes&&e.nodes.t;if(null!==r)for(const e of r)e.stop();en(e),e.f^=L,e.f|=U;var i=e.parent;null!==i&&null!==i.first&&rn(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 rn(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 sn(e,t,n=!0){var r=[];on(e,r,!0);var i=()=>{n&&nn(e),t&&t()},s=r.length;if(s>0){var o=()=>--s||i();for(var a of r)a.out(o)}else i()}function on(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;on(i,t,!!(0!==(i.f&k)||0!==(i.f&y)&&0!==(e.f&b))&&n),i=s}}}function an(e){ln(e,!0)}function ln(e,t){if(0!==(e.f&$)){e.f^=$,0===(e.f&A)&&(Oe(e,O),Be.ensure().schedule(e));for(var n=e.first;null!==n;){var r=n.next;ln(n,!!(0!==(n.f&k)||0!==(n.f&y))&&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 cn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;null!==n;){var i=n===r?null:Mt(n);t.append(n),n=i}}let un=null,dn=!1,fn=!1;function hn(e){fn=e}let pn=null,_n=!1;function vn(e){pn=e}let gn=null;function mn(e){gn=e}let En=null;let wn=null,Tn=0,Sn=null;let bn=1,yn=0,Cn=yn;function Rn(e){Cn=e}function An(){return++bn}function On(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(On(s)&&dt(s),s.wv>e.wv)return!0}0!==(t&R)&&null===De&&Oe(e,A)}return!1}function In(e,t,n=!0){var r=e.reactions;if(null!==r&&(null===En||!c.call(En,e)))for(var i=0;i<r.length;i++){var s=r[i];2&s.f?In(s,t,!1):t===s&&(n?Oe(s,O):0!==(s.f&A)&&Oe(s,I),Xe(s))}}function $n(e){var t=wn,n=Tn,r=Sn,i=pn,s=En,o=ue,a=_n,l=Cn,c=e.f;wn=null,Tn=0,Sn=null,pn=96&c?null:e,En=null,de(e.ctx),_n=!1,Cn=++yn,null!==e.ac&&(jt(()=>{e.ac.abort(V)}),e.ac=null);try{e.f|=M;var u=(0,e.fn)();e.f|=N;var d=e.deps,f=ke?.is_fork;if(null!==wn){var h;if(f||Nn(e,Tn),null!==d&&Tn>0)for(d.length=Tn+wn.length,h=0;h<wn.length;h++)d[Tn+h]=wn[h];else e.deps=d=wn;if(Vt()&&0!==(e.f&R))for(h=Tn;h<d.length;h++)(d[h].reactions??=[]).push(e)}else!f&&null!==d&&Tn<d.length&&(Nn(e,Tn),d.length=Tn);if(me()&&null!==Sn&&!_n&&null!==d&&!(6146&e.f))for(h=0;h<Sn.length;h++)In(Sn[h],e);if(null!==i&&i!==e){if(yn++,null!==i.deps)for(let e=0;e<n;e+=1)i.deps[e].rv=yn;if(null!==t)for(const e of t)e.rv=yn;null!==Sn&&(null===r?r=Sn:r.push(...Sn))}return 0!==(e.f&H)&&(e.f^=H),u}catch(e){return ye(e)}finally{e.f^=M,wn=t,Tn=n,Sn=r,pn=i,En=s,de(o),_n=a,Cn=l}}function Un(e,t){let n=t.reactions;if(null!==n){var r=l.call(n,e);if(-1!==r){var i=n.length-1;0===i?n=t.reactions=null:(n[r]=n[i],n.pop())}}if(null===n&&2&t.f&&(null===wn||!c.call(wn,t))){var s=t;0!==(s.f&R)&&(s.f^=R,s.f&=-65537),Ie(s),function(e){if(null!==e.effects)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(V),t.teardown=E,t.ac=null,Nn(t,0),tn(t))}(s),Nn(s,0)}}function Nn(e,t){var n=e.deps;if(null!==n)for(var r=t;r<n.length;r++)Un(e,n[r])}function Ln(e){var t=e.f;if(0===(t&U)){Oe(e,A);var n=gn,r=dn;if(gn=e,dn=!0,o){var i=pe;_e(e.component_function);var s=fe;he(e.dev_stack??fe)}try{16777232&t?function(e){for(var t=e.first;null!==t;){var n=t.next;0===(t.f&y)&&nn(t),t=n}}(e):tn(e),en(e);var a=$n(e);e.teardown="function"==typeof a?a:null,e.wv=bn}finally{dn=r,gn=n,o&&(_e(i),he(s))}}}function kn(e){var t,n=!!(2&e.f);if((un?.add(e),null!==pn&&!_n)&&!(null!==gn&&0!==(gn.f&U)||null!==En&&c.call(En,e))){var r=pn.deps;if(0!==(pn.f&M))e.rv<yn&&(e.rv=yn,null===wn&&null!==r&&r[Tn]===e?Tn++:null===wn?wn=[e]:wn.push(e));else{(pn.deps??=[]).push(e);var i=e.reactions;null===i?e.reactions=[pn]:c.call(i,pn)||i.push(pn)}}if(o){if(!_n&&rt&&!rt.warned&&0===(rt.effect.f&M)){rt.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`,K,z):console.warn("https://svelte.dev/e/await_reactivity_loss");var s=le("traced at");s&&console.warn(s)}st.delete(e)}if(fn&&pt.has(e))return pt.get(e);if(n){var a=e;if(fn){var l=a.v;return(0===(a.f&A)&&null!==a.reactions||Pn(a))&&(l=ut(a)),pt.set(a,l),l}var u=0===(a.f&R)&&!_n&&null!==pn&&(dn||0!==(pn.f&R)),d=0===(a.f&N);On(a)&&(u&&(a.f|=R),dt(a)),u&&!d&&(ft(a),Dn(a))}if(De?.has(e))return De.get(e);if(0!==(e.f&H))throw e.v;return e.v}function Dn(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)&&(ft(t),Dn(t))}function Pn(e){if(e.v===n)return!0;if(null===e.deps)return!1;for(const t of e.deps){if(pt.has(t))return!0;if(2&t.f&&Pn(t))return!0}return!1}function xn(e){var t=_n;try{return _n=!0,e()}finally{_n=t}}function Mn(e){if("object"==typeof e&&e&&!(e instanceof EventTarget))if(W in e)Qn(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];"object"==typeof n&&n&&W in n&&Qn(n)}}function Qn(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{Qn(e[n],t)}catch(e){}const n=g(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 Hn=Symbol("events"),Wn=new Set,jn=new Set;let Gn=null;function Bn(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],s=i[0]||e.target;Gn=e;var o=0,a=Gn===e&&e[Hn];if(a){var l=i.indexOf(a);if(-1!==l&&(t===document||t===window))return void(e[Hn]=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=pn,d=gn;vn(null),mn(null);try{for(var h,p=[];null!==s;){var _=s.assignedSlot||s.parentNode||s.host||null;try{var v=s[Hn]?.[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[Hn]=t,delete e.currentTarget,vn(u),mn(d)}}}const Vn=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function qn(e){var t=Ht("template");return t.innerHTML=function(e){return Vn?.createHTML(e)??e}(e.replaceAll("<!>","\x3c!----\x3e")),t.content}function Fn(e,t){var n=gn;null===n.nodes&&(n.nodes={start:e,end:t,a:null,t:null})}function Kn(e,t){var n,r=!!(1&t),i=!!(2&t),s=!e.startsWith("<!>");return()=>{if(Y)return Fn(Z,null),Z;void 0===n&&(n=qn(s?e:"<!>"+e),r||(n=xt(n)));var t=i||Nt?document.importNode(n,!0):n.cloneNode(!0);r?Fn(xt(t),t.lastChild):Fn(t,t);return t}}function zn(e,t){if(Y){var n=gn;return 0!==(n.f&N)&&null!==n.nodes.end||(n.nodes.end=Z),void ne()}null!==e&&e.before(t)}const Xn=["touchstart","touchmove"];function Jn(e){return Xn.includes(e)}function Zn(e,t){return tr(e,t)}function Yn(e,n){Dt(),n.intro=n.intro??!1;const r=n.target,i=Y,s=Z;try{for(var a=xt(r);a&&(8!==a.nodeType||"["!==a.data);)a=Mt(a);if(!a)throw t;ee(!0),te(a);const i=tr(e,{...n,anchor:a});return ee(!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")}(),Dt(),r.textContent="",ee(!1),Zn(e,n)}finally{ee(i),te(s)}}const er=new Map;function tr(e,{target:n,anchor:r,props:i={},events:s,context:o,intro:a=!0,transformError:l}){Dt();var c=void 0,d=function(e){Be.ensure();const t=Bt(524352,e);return(e={})=>new Promise(n=>{e.outro?sn(t,()=>{nn(t),n(void 0)}):(nn(t),n(void 0))})}(()=>{var a=r??n.appendChild(Pt());!function(e,t,n,r){new Ye(e,t,n,r)}(a,{pending:()=>{}},n=>{if(ve({}),o&&(ue.c=o),s&&(i.$$events=s),Y&&Fn(n,null),c=e(n,i)||{},Y&&(gn.nodes.end=Z,null===Z||8!==Z.nodeType||"]"!==Z.data))throw X(),t;ge()},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=Jn(r);for(const e of[n,document]){var s=er.get(e);void 0===s&&(s=new Map,er.set(e,s));var o=s.get(r);void 0===o?(e.addEventListener(r,Bn,{passive:i}),s.set(r,1)):s.set(r,o+1)}}}};return f(u(Wn)),jn.add(f),()=>{for(var e of d)for(const r of[n,document]){var t=er.get(r),i=t.get(e);0==--i?(r.removeEventListener(e,Bn),t.delete(e),0===t.size&&er.delete(r)):t.set(e,i)}jn.delete(f),a!==r&&a.parentNode?.removeChild(a)}});return nr.set(c,d),c}let nr=new WeakMap;function rr(e,t){const n=nr.get(e);return n?(nr.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",K,z):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",K,z):console.warn("https://svelte.dev/e/lifecycle_double_unmount")),Promise.resolve())}class ir{anchor;#Q=new Map;#H=new Map;#W=new Map;#j=new Set;#G=!0;constructor(e,t=!0){this.anchor=e,this.#G=t}#g=e=>{if(this.#Q.has(e)){var t=this.#Q.get(e),n=this.#H.get(t);if(n)an(n),this.#j.delete(t);else{var r=this.#W.get(t);r&&(this.#H.set(t,r.effect),this.#W.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(const[t,n]of this.#Q){if(this.#Q.delete(t),t===e)break;const r=this.#W.get(n);r&&(nn(r.effect),this.#W.delete(n))}for(const[e,r]of this.#H){if(e===t||this.#j.has(e))continue;const i=()=>{if(Array.from(this.#Q.values()).includes(e)){var t=document.createDocumentFragment();cn(r,t),t.append(Pt()),this.#W.set(e,{effect:r,fragment:t})}else nn(r);this.#j.delete(e),this.#H.delete(e)};this.#G||!n?(this.#j.add(e),sn(r,i,!1)):i()}}};#B=e=>{this.#Q.delete(e);const t=Array.from(this.#Q.values());for(const[e,n]of this.#W)t.includes(e)||(nn(n.effect),this.#W.delete(e))};ensure(e,t){var n=ke;!t||this.#H.has(e)||this.#W.has(e)||this.#H.set(e,Yt(()=>t(this.anchor)));this.#Q.set(n,e),Y&&(this.anchor=Z),this.#g(n)}}if(o){function Jr(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}})}}Jr("$state"),Jr("$effect"),Jr("$derived"),Jr("$inspect"),Jr("$props"),Jr("$bindable")}function sr(t){var n,r;null===ue&&F("onMount"),e&&null!==ue.l?(n=ue,r=n.l,r.u??={a:[],b:[],m:[]}).m.push(t):Ft(()=>{const e=xn(t);if("function"==typeof e)return e})}var or=new Map;function ar(e,n,r=!1){var i;Y&&(i=Z,ne());var s=new ir(e);function o(e,n){if(Y){var r=function(e){if(!e||8!==e.nodeType)throw X(),t;return e.data}(i);if(e!==parseInt(r.substring(1))){var o=re();return te(o),s.anchor=o,ee(!1),s.ensure(e,n),void ee(!0)}}s.ensure(e,n)}Zt(()=>{var e=!1;n((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},r?k:0)}function lr(e,t){zt(()=>{var n=e.getRootNode(),r=n.host?n:n.head??n.ownerDocument.head;if(!r.querySelector("#"+t.hash)){const e=Ht("style");e.id=t.hash,e.textContent=t.code,r.appendChild(e),o&&function(e,t){var n=or.get(e);n||(n=new Set,or.set(e,n)),n.add(t)}(t.hash,e)}})}function cr(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=cr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ur(e){return"object"==typeof e?function(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=cr(e))&&(r&&(r+=" "),r+=t);return r}(e):e??""}const dr=[..." \t\n\r\f \v\ufeff"];function fr(e,t,n,r,i,s){var o=e.__className;if(Y||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&&!dr.includes(r[o-1])||a!==r.length&&!dr.includes(r[a])?o=a:r=(0===o?"":r.substring(0,o))+r.substring(a+1)}return""===r?null:r}(n,r,s);Y&&a===e.getAttribute("class")||(null==a?e.removeAttribute("class"):t?e.className=a:e.setAttribute("class",a)),e.__className=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 hr=Symbol("is custom element"),pr=Symbol("is html"),_r=q?"link":"LINK";function vr(e,t,n,r){var s=function(e){return e.__attributes??={[hr]:e.nodeName.includes("-"),[pr]:e.namespaceURI===i}}(e);Y&&(s[t]=e.getAttribute(t),"src"===t||"srcset"===t||"href"===t&&e.nodeName===_r)?r||function(e,t,n){if(!o)return;if("srcset"===t&&function(e,t){var n=Er(e.srcset),r=Er(t);return r.length===n.length&&r.every(([e,t],r)=>t===n[r][1]&&(mr(n[r][0],e)||mr(e,n[r][0])))}(e,n))return;if(mr(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`,K,z):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=gr.get(n);if(r)return r;gr.set(n,r=[]);var i=e,s=Element.prototype;for(;s!==i;){for(var o in t=p(i))t[o].set&&r.push(o);i=g(i)}return r}(e).includes(t)?e[t]=n:e.setAttribute(t,n))}var gr=new Map;function mr(e,t){return e===t||new URL(e,document.baseURI).href===new URL(t,document.baseURI).href}function Er(e){return e.split(",").map(e=>e.trim().split(" ").filter(Boolean))}function wr(e,t,n){var r=h(e,t);r&&r.set&&(e[t]=n,qt(()=>{e[t]=null}))}function Tr(e,t){return e===t||e?.[W]===t}function Sr(e={},t,n,r){var i=ue.r,s=gn;return zt(()=>{var o,a;return Xt(()=>{o=a,a=r?.()||[],xn(()=>{e!==n(...a)&&(t(e,...a),o&&Tr(n(...o),e)&&t(null,...o))})}),()=>{let r=s;for(;r!==i&&null!==r.parent&&r.parent.f&L;)r=r.parent;const o=r.teardown;r.teardown=()=>{a&&Tr(n(...a),e)&&t(null,...a),o?.()}}}),e}function br(e=!1){const t=ue,n=t.l.u;if(!n)return;let r=()=>Mn(t.s);if(e){let e=0,n={};const i=ot(()=>{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=()=>kn(i)}var i;n.b.length&&(i=()=>{yr(t,r),T(n.b)},Gt("$effect.pre"),o&&f(i,"name",{value:"$effect.pre"}),Bt(1048584,i)),Ft(()=>{const e=xn(()=>n.m.map(w));return()=>{for(const t of e)"function"==typeof t&&t()}}),n.a.length&&Ft(()=>{yr(t,r),T(n.a)})}function yr(e,t){if(e.l.s)for(const t of e.l.s)kn(t);t()}function Cr(t,n,r,i){var s=!e||!!(2&r),a=!!(8&r),l=!!(16&r),c=i,u=!0,d=()=>(u&&(u=!1,c=l?xn(i):i),c);let f;if(a){var p=W in t||j in t;f=h(t,n)?.set??(p&&n in t?e=>t[n]=e:void 0)}var _,v,g=!1;if(a?[_,g]=function(e){var t=Ne;try{return Ne=!1,[e(),Ne]}finally{Ne=t}}(()=>t[n]):_=t[n],void 0===_&&void 0!==i&&(_=d(),f&&(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),f(_))),v=s?()=>{var e=t[n];return void 0===e?d():(u=!0,e)}:()=>{var e=t[n];return void 0!==e&&(c=void 0),void 0===e?c:e},s&&!(4&r))return v;if(f){var m=t.$$legacy;return function(e,t){return arguments.length>0?(s&&t&&!m&&!g||f(t?v():e),e):v()}}var E=!1,w=(1&r?ot:at)(()=>(E=!1,v()));o&&(w.label=n),a&&kn(w);var T=gn;return function(e,t){if(arguments.length>0){const n=t?kn(w):s&&a?At(e):e;return Tt(w,n),E=!0,void 0!==c&&(c=n),e}return fn&&E||0!==(T.f&U)?w.v:kn(w)}}class Rr{#V;#q;constructor(e){var t=new Map,n=(e,n)=>{var r=Et(n,!1,!1);return t.set(e,r),r};const r=new Proxy({...e.props||{},$$events:{}},{get:(e,r)=>kn(t.get(r)??n(r,Reflect.get(e,r))),has:(e,r)=>r===j||(kn(t.get(r)??n(r,Reflect.get(e,r))),Reflect.has(e,r)),set:(e,r,i)=>(Tt(t.get(r)??n(r,i),i),Reflect.set(e,r,i))});this.#q=(e.hydrate?Yn:Zn)(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||Ve(),this.#V=r.$$events;for(const e of Object.keys(this.#q))"$set"!==e&&"$destroy"!==e&&"$on"!==e&&f(this,e,{get(){return this.#q[e]},set(t){this.#q[e]=t},enumerable:!0});this.#q.$set=e=>{Object.assign(r,e)},this.#q.$destroy=()=>{rr(this.#q)}}$set(e){this.#q.$set(e)}$on(e,t){this.#V[e]=this.#V[e]||[];const n=(...e)=>t.call(this,...e);return this.#V[e].push(n),()=>{this.#V[e]=this.#V[e].filter(e=>e!==n)}}$destroy(){this.#q.$destroy()}}let Ar;function Or(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 Ir(e,t,n,r,i,s){let o=class extends Ar{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=Or(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 $r;"function"==typeof HTMLElement&&(Ar=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=Ht("slot");"default"!==e&&(n.name=e),zn(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]=Or(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 Rr(e)),this.$$me=function(e){Be.ensure();const t=Bt(524352,e);return()=>{nn(t)}}(()=>{Xt(()=>{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=Or(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]=Or(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"}($r||($r={}));class Ur 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 Nr={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 Lr{isVisible(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}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 Ur(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 $r.CUSTOM_MESSAGE:{const n=e.data.data,r=n.id;delete n.id,this.dispatch(Nr.CUSTOM_MESSAGE,t,{id:r,_metaData:{},data:n})}break;case $r.GET_CONTEXT:n.postMessage({msg:$r.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 $r.NAVIGATION_REQUEST:this.dispatch(Nr.NAVIGATION_REQUEST,t,e.data.params,t=>{n.postMessage({msg:$r.CLOSE_MODAL_ANSWER,data:t},e.origin)});break;case $r.ALERT_REQUEST:this.dispatchWithPayload(Nr.ALERT_REQUEST,t,e,e.data?.data?.settings,n=>{t.notifyAlertClosed(e.data?.data?.settings?.id,n)});break;case $r.INITIALIZED:this.dispatch(Nr.INITIALIZED,t,e.data?.params||{});break;case $r.ADD_SEARCH_PARAMS_REQUEST:this.dispatch(Nr.ADD_SEARCH_PARAMS_REQUEST,t,{data:e.data.data,keepBrowserHistory:e.data.keepBrowserHistory});break;case $r.ADD_NODE_PARAMS_REQUEST:this.dispatch(Nr.ADD_NODE_PARAMS_REQUEST,t,{data:e.data.data,keepBrowserHistory:e.data.keepBrowserHistory});break;case $r.SHOW_CONFIRMATION_MODAL_REQUEST:this.dispatchWithPayload(Nr.SHOW_CONFIRMATION_MODAL_REQUEST,t,e.data.data,e.data.data?.settings,e=>{t.notifyConfirmationModalClosed(e)});break;case $r.SHOW_LOADING_INDICATOR_REQUEST:this.dispatch(Nr.SHOW_LOADING_INDICATOR_REQUEST,t,e);break;case $r.HIDE_LOADING_INDICATOR_REQUEST:this.dispatch(Nr.HIDE_LOADING_INDICATOR_REQUEST,t,e);break;case $r.SET_CURRENT_LOCALE_REQUEST:this.dispatchWithPayload(Nr.SET_CURRENT_LOCALE_REQUEST,t,e,e.data.data);break;case $r.LOCAL_STORAGE_SET_REQUEST:this.dispatchWithPayload(Nr.LOCAL_STORAGE_SET_REQUEST,t,e,e.data.data?.params);break;case $r.RUNTIME_ERROR_HANDLING_REQUEST:this.dispatch(Nr.RUNTIME_ERROR_HANDLING_REQUEST,t,e);break;case $r.SET_ANCHOR_LINK_REQUEST:this.dispatchWithPayload(Nr.SET_ANCHOR_LINK_REQUEST,t,e,e.data.anchor);break;case $r.SET_THIRD_PARTY_COOKIES_REQUEST:this.dispatch(Nr.SET_THIRD_PARTY_COOKIES_REQUEST,t,e);break;case $r.BACK_NAVIGATION_REQUEST:{let n=e.data?.goBackContext||{};if("string"==typeof n)try{n=JSON.parse(n)}catch(e){console.warn(e)}this.dispatch(Nr.GO_BACK_REQUEST,t,n),this.dispatch(Nr.BACK_NAVIGATION_REQUEST,t,e)}break;case $r.GET_CURRENT_ROUTE_REQUEST:this.dispatchWithPayload(Nr.GET_CURRENT_ROUTE_REQUEST,t,e,e.data.data,t=>{n.postMessage({msg:$r.SEND_CURRENT_ROUTE_ANSWER,data:{correlationId:e.data?.data?.id,route:t}},e.origin)});break;case $r.NAVIGATION_COMPLETED_REPORT:this.dispatch(Nr.NAVIGATION_COMPLETED_REPORT,t,e);break;case $r.UPDATE_MODAL_PATH_DATA_REQUEST:this.dispatchWithPayload(Nr.UPDATE_MODAL_PATH_DATA_REQUEST,t,e,e.data.params);break;case $r.UPDATE_MODAL_SETTINGS:this.dispatchWithPayload(Nr.UPDATE_MODAL_SETTINGS_REQUEST,t,e,{addHistoryEntry:e.data.addHistoryEntry,updatedModalSettings:e.data.updatedModalSettings});break;case $r.CHECK_PATH_EXISTS_REQUEST:this.dispatchWithPayload(Nr.CHECK_PATH_EXISTS_REQUEST,t,e,e.data.data,t=>{n.postMessage({msg:$r.SEND_PATH_EXISTS_ANSWER,data:{correlationId:e.data?.data?.id,pathExists:t}},e.origin)});break;case $r.SET_DIRTY_STATUS_REQUEST:this.dispatchWithPayload(Nr.SET_DIRTY_STATUS_REQUEST,t,e,{dirty:e.data.dirty});break;case $r.SET_VIEW_GROUP_DATA_REQUEST:this.dispatch(Nr.SET_VIEW_GROUP_DATA_REQUEST,t,e.data.data);break;case $r.ADD_BACKDROP_REQUEST:this.dispatch(Nr.ADD_BACKDROP_REQUEST,t,e);break;case $r.REMOVE_BACKDROP_REQUEST:this.dispatch(Nr.REMOVE_BACKDROP_REQUEST,t,e);break;case $r.CLOSE_CURRENT_MODAL_REQUEST:this.dispatch(Nr.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 kr=new Lr;const Dr=new class{constructor(){this.updateContext=(e,t,n,r,i,s)=>{if(n){const o=t||{};kr.sendCustomMessageToIframe(n,{context:e,nodeParams:r||{},pathParams:i||{},searchParams:s||{},internal:o,withoutSync:!0},$r.SEND_CONTEXT_OBJECT)}else console.warn("Attempting to update context on inexisting iframe")},this.updateViewUrl=(e,t,n,r)=>{if(r){const i=n||{};kr.sendCustomMessageToIframe(r,{context:t,internal:i,withoutSync:!1,viewUrl:e},$r.SEND_CONTEXT_OBJECT)}else console.warn("Attempting to update route on inexisting iframe")},this.updateAuthData=(e,t)=>{e&&t?kr.sendCustomMessageToIframe(e,{authData:t},$r.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)kr.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,kr.sendCustomMessageToIframe(r,t)}},this.notifyConfirmationModalClosed=(e,t)=>{const n={data:{confirmed:e}};kr.sendCustomMessageToIframe(t,n,$r.CONFIRMATION_MODAL_CLOSED)}}notifyAlertClosed(e,t,n){const r=t?{id:e,dismissKey:t}:{id:e};kr.sendCustomMessageToIframe(n,r,$r.ALERT_CLOSED)}},Pr=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 xr{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 Mr extends xr{constructor(e){super(e||{use:{}}),e&&e.use&&e.use.extends&&(this.superRenderer=Hr({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 Qr extends xr{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 Hr=e=>{const t=e.use;return t?"grid"===t?new Qr(e):t.createCompoundContainer||t.createCompoundItemContainer||t.attachCompoundItem?new Mr(e):new xr(e):new xr(e)},Wr=(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 jr(e){return String(e).replaceAll("&lt;","<").replaceAll("&gt;",">").replaceAll("&quot;",'"').replaceAll("&#39;","'").replaceAll("&sol;","/")}class Gr{constructor(){this.alertResolvers={},this.alertIndex=0,this.containerService=new Lr}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(Nr.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(Nr.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(Nr.UPDATE_MODAL_PATH_DATA_REQUEST,Object.assign(l,{history:a,link:s,modal:o}))},updateTopNavigation:()=>{this.dispatchLuigiEvent(Nr.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(Nr.CHECK_PATH_EXISTS_REQUEST,this.thisComponent,{...o,link:s},n=>{n?e(!0):t(!1)}),this.containerService.dispatch(Nr.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(Nr.GO_BACK_REQUEST,e)},hasBack:()=>!1,updateModalSettings:(e={},t=!1)=>{this.dispatchLuigiEvent(Nr.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(Nr.ALERT_REQUEST,e,t=>{this.resolveAlert(e.id,t)})})),showConfirmationModal:e=>new Promise((t,n)=>{this.modalResolver={resolve:t,reject:n},this.containerService.dispatch(Nr.SHOW_CONFIRMATION_MODAL_REQUEST,this.thisComponent,e,e=>{e?t():n()})}),getCurrentTheme:()=>this.thisComponent.theme,closeUserSettings:()=>{this.dispatchLuigiEvent(Nr.CLOSE_USER_SETTINGS_REQUEST,this.thisComponent.userSettings)},openUserSettings:()=>{this.dispatchLuigiEvent(Nr.OPEN_USER_SETTINGS_REQUEST,this.thisComponent.userSettings)},collapseLeftSideNav:()=>{this.dispatchLuigiEvent(Nr.COLLAPSE_LEFT_NAV_REQUEST,{})},getDirtyStatus:()=>this.thisComponent.dirtyStatus||!1,getDocumentTitle:()=>this.thisComponent.documentTitle,setDocumentTitle:e=>{this.dispatchLuigiEvent(Nr.SET_DOCUMENT_TITLE_REQUEST,e)},setDirtyStatus:e=>{this.dispatchLuigiEvent(Nr.SET_DIRTY_STATUS_REQUEST,{dirty:e})},setCurrentLocale:e=>{e&&this.dispatchLuigiEvent(Nr.SET_CURRENT_LOCALE_REQUEST,{currentLocale:e})},removeBackdrop:()=>{this.dispatchLuigiEvent(Nr.REMOVE_BACKDROP_REQUEST,{})},addBackdrop:()=>{this.dispatchLuigiEvent(Nr.ADD_BACKDROP_REQUEST,{})},showLoadingIndicator:()=>{this.dispatchLuigiEvent(Nr.SHOW_LOADING_INDICATOR_REQUEST,{})},hideLoadingIndicator:()=>{this.dispatchLuigiEvent(Nr.HIDE_LOADING_INDICATOR_REQUEST,{})},hideAppLoadingIndicator:()=>{this.dispatchLuigiEvent(Nr.HIDE_LOADING_INDICATOR_REQUEST,{})},closeCurrentModal:()=>{this.dispatchLuigiEvent(Nr.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(Nr.CUSTOM_MESSAGE,s)},luigiClientInit:()=>{this.dispatchLuigiEvent(Nr.INITIALIZED,{})},addNodeParams:(e,t)=>{i||this.dispatchLuigiEvent(Nr.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[jr(t[0])]=jr(t[1]),e),{})):this.thisComponent.nodeParams||{};var t},setAnchor:e=>{i||this.dispatchLuigiEvent(Nr.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(Nr.ADD_SEARCH_PARAMS_REQUEST,{data:e,keepBrowserHistory:t})},getUserSettings:()=>this.thisComponent.userSettings||{},setViewGroupData:e=>{this.dispatchLuigiEvent(Nr.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(Nr.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(Nr.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 xr,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=Hr(e.compound.renderer)),r=r||new xr,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),Wr(o,e,l)}),t.appendChild(s),Wr(o,e.compound,"_root",s),i(s)}).catch(e=>{console.warn("Error: ",e),this.containerService.dispatch(Nr.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 Br=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 Vr=Kn("<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),qr=Kn("<main><!></main>");function Fr(e,n){ve(n,!1);let r=Cr(n,"activeFeatureToggleList",12),i=Cr(n,"allowRules",12),s=Cr(n,"anchor",12),o=Cr(n,"authData",12),a=Cr(n,"clientPermissions",12),l=Cr(n,"context",12),c=Cr(n,"deferInit",12),u=Cr(n,"dirtyStatus",12),d=Cr(n,"documentTitle",12),f=Cr(n,"hasBack",12),h=Cr(n,"label",12),p=Cr(n,"locale",12),_=Cr(n,"noShadow",12),v=Cr(n,"nodeParams",12),g=Cr(n,"pathParams",12),m=Cr(n,"sandboxRules",12),E=Cr(n,"searchParams",12),w=Cr(n,"skipCookieCheck",12),T=Cr(n,"skipInitCheck",12),S=Cr(n,"theme",12),b=Cr(n,"userSettings",12),y=Cr(n,"viewurl",12),C=Cr(n,"webcomponent",12);const R=Et({});let O=Et(),$=Et(!1),U=Et();const N=new Gr,L=()=>r()&&i()&&s()&&o()&&a()&&u()&&d()&&f()&&p()&&_()&&v()&&g()&&m()&&E()&&w()&&T()&&S()&&b(),k=e=>{if(!kn($)){e.sendCustomMessage=(t,n)=>{Dr.sendCustomMessage(t,e.getNoShadow()?e:kn(O),!!C(),kn(R),n)},e.updateContext=(t,n)=>{if(l(t),C())(e.getNoShadow()?e:kn(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};Dr.updateContext(t,r,kn(R),v(),g(),E())}},e.closeAlert=(t,n)=>{e.notifyAlertClosed(t,n)},e.notifyAlertClosed=(t,n)=>{e.isConnected&&(C()?N.resolveAlert(t,n):Dr.notifyAlertClosed(t,n,kn(R)))},e.notifyConfirmationModalClosed=t=>{e.isConnected&&(C()?N.notifyConfirmationModalClosed(!!t):Dr.notifyConfirmationModalClosed(!!t,kn(R)))},kr.registerContainer(e),N.thisComponent=e;const t=Br.resolveContext(l());if(e.updateViewUrl=(e,t)=>{e?.length&&Dr.updateViewUrl(e,Br.resolveContext(l()),t,kn(R))},C()&&"false"!=C()){if(e.getNoShadow())e.innerHTML="";else{wt(O,kn(O).innerHTML="");e.attachShadow({mode:"open"}).append(kn(O))}const n=Br.checkWebcomponentValue(C());N.renderWebComponent(y(),e.getNoShadow()?e:kn(O),t,"object"==typeof n?{webcomponent:n}:{})}else if(!e.getNoShadow()){e.innerHTML="";e.attachShadow({mode:"open"}).append(kn(O))}T()?(e.initialized=!0,setTimeout(()=>{N.dispatchLuigiEvent(Nr.INITIALIZED,{})})):C()&&(e.getNoShadow()?e:kn(O)).addEventListener("wc_ready",()=>{(e.getNoShadow()?e:kn(O))._luigi_mfe_webcomponent?.deferLuigiClientWCInit||(e.initialized=!0,N.dispatchLuigiEvent(Nr.INITIALIZED,{}))}),Tt($,!0),e.containerInitialized=!0}};var D;sr(async()=>{Tt(U,kn(O).parentNode),wt(U,kn(U).iframeHandle=kn(R)),wt(U,kn(U).init=()=>{k(kn(U))}),!c()&&y()&&k(kn(U))}),D=async()=>{},null===ue&&F("onDestroy"),sr(()=>()=>xn(D)),function(e,t){var n={effect:null,ran:!1,deps:e};ue.l.$.push(n),n.effect=Xt(()=>{if(e(),!n.ran){n.ran=!0;var r=gn;try{mn(r.parent),xn(t)}finally{mn(r)}}})}(()=>(kn($),Mn(y()),Mn(c()),kn(U)),()=>{!kn($)&&y()&&!c()&&kn(U)&&k(kn(U))}),function(){var e=ue;Xt(()=>{for(var t of e.l.$){t.deps();var n=t.effect;0!==(n.f&A)&&null!==n.deps&&Oe(n,I),On(n)&&Ln(n),t.ran=!1}})}();var P={unwarn:L,get activeFeatureToggleList(){return r()},set activeFeatureToggleList(e){r(e),Ve()},get allowRules(){return i()},set allowRules(e){i(e),Ve()},get anchor(){return s()},set anchor(e){s(e),Ve()},get authData(){return o()},set authData(e){o(e),Ve()},get clientPermissions(){return a()},set clientPermissions(e){a(e),Ve()},get context(){return l()},set context(e){l(e),Ve()},get deferInit(){return c()},set deferInit(e){c(e),Ve()},get dirtyStatus(){return u()},set dirtyStatus(e){u(e),Ve()},get documentTitle(){return d()},set documentTitle(e){d(e),Ve()},get hasBack(){return f()},set hasBack(e){f(e),Ve()},get label(){return h()},set label(e){h(e),Ve()},get locale(){return p()},set locale(e){p(e),Ve()},get noShadow(){return _()},set noShadow(e){_(e),Ve()},get nodeParams(){return v()},set nodeParams(e){v(e),Ve()},get pathParams(){return g()},set pathParams(e){g(e),Ve()},get sandboxRules(){return m()},set sandboxRules(e){m(e),Ve()},get searchParams(){return E()},set searchParams(e){E(e),Ve()},get skipCookieCheck(){return w()},set skipCookieCheck(e){w(e),Ve()},get skipInitCheck(){return T()},set skipInitCheck(e){T(e),Ve()},get theme(){return S()},set theme(e){S(e),Ve()},get userSettings(){return b()},set userSettings(e){b(e),Ve()},get viewurl(){return y()},set viewurl(e){y(e),Ve()},get webcomponent(){return C()},set webcomponent(e){C(e),Ve()}};br();var x=qr(),M=function(e,t){if(!Y)return xt(e);var n=xt(Z);if(null===n)n=Z.appendChild(Pt());else if(t&&3!==n.nodeType){var r=Pt();return n?.before(r),te(r),r}return t&&Wt(n),te(n),n}(x),Q=e=>{var t=function(){if(Y)return Fn(Z,null),Z;var e=document.createDocumentFragment(),t=document.createComment(""),n=Pt();return e.append(t,n),Fn(t,n),e}(),n=Qt(t),r=e=>{var t=Vr(),n=function(e,t=1,n=!1){let r=Y?Z:e;for(var i;t--;)i=r,r=Mt(r);if(!Y)return r;if(n){if(3!==r?.nodeType){var s=Pt();return null===r?i?.after(s):r.before(s),te(s),s}Wt(r)}return te(r),r}(Qt(t),2);Sr(n,e=>wt(R,kn(R).iframe=e),()=>kn(R)?.iframe),Jt((e,t)=>{vr(n,"src",y()),vr(n,"title",h()),vr(n,"allow",e),vr(n,"sandbox",t)},[()=>(Mn(Pr),Mn(i()),xn(()=>Pr(i()))),()=>(Mn(m()),xn(()=>m()?m().join(" "):void 0))]),zn(e,t)};ar(n,e=>{C()&&"false"!==C()||e(r)}),zn(e,t)};return ar(M,e=>{kn($)&&e(Q)}),function(e){if(Y){if(null!==Mt(Z))throw X(),t;Z=e}}(x),Sr(x,e=>Tt(O,e),()=>kn(O)),Jt(()=>fr(x,1,ur(C()?void 0:"lui-isolated"))),zn(e,x),wr(n,"unwarn",L),ge(P)}Ir(Fr,{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&&Dr.updateAuthData(this.iframeHandle,JSON.parse(n)))}getNoShadow(){return this.hasAttribute("no-shadow")||this.noShadow}}});var Kr=Kn('<main class="svelte-1yfh4yd"></main>');const zr={hash:"svelte-1yfh4yd",code:"main.svelte-1yfh4yd {width:100%;height:100%;border:none;}"};function Xr(e,t){ve(t,!1),lr(e,zr);let n,r=Cr(t,"activeFeatureToggleList",12),i=Cr(t,"anchor",12),s=Cr(t,"clientPermissions",12),o=Cr(t,"compoundConfig",12),a=Cr(t,"context",12),l=Cr(t,"deferInit",12),c=Cr(t,"dirtyStatus",12),u=Cr(t,"documentTitle",12),d=Cr(t,"hasBack",12),f=Cr(t,"locale",12),h=Cr(t,"noShadow",12),p=Cr(t,"nodeParams",12),_=Cr(t,"pathParams",12),v=Cr(t,"searchParams",12),g=Cr(t,"skipInitCheck",12),m=Cr(t,"theme",12),E=Cr(t,"userSettings",12),w=Cr(t,"viewurl",12),T=Cr(t,"webcomponent",12),S=!1,b=Et();const y=new Lr,C=new Gr,R=()=>r()&&i()&&s()&&c()&&u()&&d()&&f()&&h()&&p()&&_()&&v()&&g()&&m()&&E(),A=e=>{if(!o()||S)return;e.updateContext=(t,n)=>{const r=e.getNoShadow()?e:kn(b);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=Br.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:Br.checkWebcomponentValue(T())||!0};if(e.getNoShadow())e.innerHTML="";else{wt(b,kn(b).innerHTML="");e.attachShadow({mode:"open"}).append(kn(b))}C.renderWebComponentCompound(r,e.getNoShadow()?e:kn(b),t).then(t=>{n=t,g()||!r.viewUrl?(e.initialized=!0,setTimeout(()=>{C.dispatchLuigiEvent(Nr.INITIALIZED,{})})):n.LuigiClient&&!n.deferLuigiClientWCInit&&(e.initialized=!0,C.dispatchLuigiEvent(Nr.INITIALIZED,{}))}),S=!0,e.containerInitialized=!0};sr(async()=>{const e=kn(b).getRootNode()===document?kn(b).parentNode:kn(b).getRootNode().host;e.init=()=>{A(e)},l()||A(e),y.registerContainer(e),C.thisComponent=e});var O={unwarn:R,get activeFeatureToggleList(){return r()},set activeFeatureToggleList(e){r(e),Ve()},get anchor(){return i()},set anchor(e){i(e),Ve()},get clientPermissions(){return s()},set clientPermissions(e){s(e),Ve()},get compoundConfig(){return o()},set compoundConfig(e){o(e),Ve()},get context(){return a()},set context(e){a(e),Ve()},get deferInit(){return l()},set deferInit(e){l(e),Ve()},get dirtyStatus(){return c()},set dirtyStatus(e){c(e),Ve()},get documentTitle(){return u()},set documentTitle(e){u(e),Ve()},get hasBack(){return d()},set hasBack(e){d(e),Ve()},get locale(){return f()},set locale(e){f(e),Ve()},get noShadow(){return h()},set noShadow(e){h(e),Ve()},get nodeParams(){return p()},set nodeParams(e){p(e),Ve()},get pathParams(){return _()},set pathParams(e){_(e),Ve()},get searchParams(){return v()},set searchParams(e){v(e),Ve()},get skipInitCheck(){return g()},set skipInitCheck(e){g(e),Ve()},get theme(){return m()},set theme(e){m(e),Ve()},get userSettings(){return E()},set userSettings(e){E(e),Ve()},get viewurl(){return w()},set viewurl(e){w(e),Ve()},get webcomponent(){return T()},set webcomponent(e){T(e),Ve()}};br();var I=Kr();return Sr(I,e=>Tt(b,e),()=>kn(b)),zn(e,I),wr(t,"unwarn",R),ge(O)}Ir(Xr,{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",Fr.element),customElements.get("luigi-compound-container")||customElements.define("luigi-compound-container",Xr.element);export{Xr as LuigiCompoundContainer,Fr as LuigiContainer,Nr as LuigiEvents,Nr as default};
2
2
  //# sourceMappingURL=bundle.js.map