@luigi-project/core 2.13.1-dev.20240640027 → 2.13.1-dev.20240650026

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/luigi.js CHANGED
@@ -49,7 +49,7 @@ __p += '`),pt&&(Pe+=`' +
49
49
  function print() { __p += __j.call(arguments, '') }
50
50
  `:`;
51
51
  `)+Pe+`return __p
52
- }`;var ot=Ff(function(){return Nt(F,Ge+"return "+Pe).apply(t,z)});if(ot.source=Pe,po(ot))throw ot;return ot}function tw(s){return Tt(s).toLowerCase()}function nw(s){return Tt(s).toUpperCase()}function iw(s,u,_){if(s=Tt(s),s&&(_||u===t))return Ko(s);if(!s||!(u=Un(u)))return s;var k=li(s),N=li(u),F=jo(k,N),z=Jo(k,N)+1;return al(k,F,z).join("")}function lw(s,u,_){if(s=Tt(s),s&&(_||u===t))return s.slice(0,Qo(s)+1);if(!s||!(u=Un(u)))return s;var k=li(s),N=Jo(k,li(u))+1;return al(k,0,N).join("")}function rw(s,u,_){if(s=Tt(s),s&&(_||u===t))return s.replace(ut,"");if(!s||!(u=Un(u)))return s;var k=li(s),N=jo(k,li(u));return al(k,N).join("")}function aw(s,u){var _=q,k=Z;if(Kt(u)){var N="separator"in u?u.separator:N;_="length"in u?st(u.length):_,k="omission"in u?Un(u.omission):k}s=Tt(s);var F=s.length;if(Yl(s)){var z=li(s);F=z.length}if(_>=F)return s;var j=_-Ql(k);if(j<1)return k;var ee=z?al(z,0,j).join(""):s.slice(0,j);if(N===t)return ee+k;if(z&&(j+=ee.length-j),mo(N)){if(s.slice(j).search(N)){var me,be=ee;for(N.global||(N=Rs(N.source,Tt(Ki.exec(N))+"g")),N.lastIndex=0;me=N.exec(be);)var Pe=me.index;ee=ee.slice(0,Pe===t?j:Pe)}}else if(s.indexOf(Un(N),j)!=j){var Ve=ee.lastIndexOf(N);Ve>-1&&(ee=ee.slice(0,Ve))}return ee+k}function sw(s){return s=Tt(s),s&&qi.test(s)?s.replace(Ii,Mp):s}var ow=nr(function(s,u,_){return s+(_?" ":"")+u.toUpperCase()}),wo=Fu("toUpperCase");function Mf(s,u,_){return s=Tt(s),u=_?t:u,u===t?Ep(s)?Bp(s):Sp(s):s.match(u)||[]}var Ff=ft(function(s,u){try{return nn(s,t,u)}catch(_){return po(_)?_:new et(_)}}),uw=Vi(function(s,u){return Gt(u,function(_){_=gi(_),Ri(s,_,go(s[_],s))}),s});function fw(s){var u=s==null?0:s.length,_=je();return s=u?zt(s,function(k){if(typeof k[1]!="function")throw new Kn(a);return[_(k[0]),k[1]]}):[],ft(function(k){for(var N=-1;++N<u;){var F=s[N];if(nn(F[0],this,k))return nn(F[1],this,k)}})}function cw(s){return Mm(Jn(s,h))}function ko(s){return function(){return s}}function dw(s,u){return s==null||s!==s?u:s}var hw=Bu(),gw=Bu(!0);function Dn(s){return s}function So(s){return _u(typeof s=="function"?s:Jn(s,h))}function _w(s){return mu(Jn(s,h))}function pw(s,u){return bu(s,Jn(u,h))}var mw=ft(function(s,u){return function(_){return Rr(_,s,u)}}),bw=ft(function(s,u){return function(_){return Rr(s,_,u)}});function Co(s,u,_){var k=un(u),N=Ea(u,k);_==null&&!(Kt(u)&&(N.length||!k.length))&&(_=u,u=s,s=this,N=Ea(u,un(u)));var F=!(Kt(_)&&"chain"in _)||!!_.chain,z=Mi(s);return Gt(N,function(j){var ee=u[j];s[j]=ee,z&&(s.prototype[j]=function(){var me=this.__chain__;if(F||me){var be=s(this.__wrapped__),Pe=be.__actions__=An(this.__actions__);return Pe.push({func:ee,args:arguments,thisArg:s}),be.__chain__=me,be}return ee.apply(s,el([this.value()],arguments))})}),s}function vw(){return xe._===this&&(xe._=Kp),this}function yo(){}function ww(s){return s=st(s),ft(function(u){return vu(u,s)})}var kw=eo(zt),Sw=eo(Ho),Cw=eo(Ps);function Uf(s){return so(s)?Ns(gi(s)):xm(s)}function yw(s){return function(u){return s==null?t:El(s,u)}}var Pw=Wu(),Nw=Wu(!0);function Po(){return[]}function No(){return!1}function Tw(){return{}}function Iw(){return""}function Lw(){return!0}function Aw(s,u){if(s=st(s),s<1||s>ge)return[];var _=ve,k=mn(s,ve);u=je(u),s-=ve;for(var N=Ls(k,u);++_<s;)u(_);return N}function Ew(s){return it(s)?zt(s,gi):Bn(s)?[s]:An(lf(Tt(s)))}function Rw(s){var u=++qp;return Tt(s)+u}var Dw=Fa(function(s,u){return s+u},0),Vw=to("ceil"),Ow=Fa(function(s,u){return s/u},1),Mw=to("floor");function Fw(s){return s&&s.length?Aa(s,Dn,Hs):t}function Uw(s,u){return s&&s.length?Aa(s,je(u,2),Hs):t}function Bw(s){return qo(s,Dn)}function Hw(s,u){return qo(s,je(u,2))}function Ww(s){return s&&s.length?Aa(s,Dn,Gs):t}function zw(s,u){return s&&s.length?Aa(s,je(u,2),Gs):t}var qw=Fa(function(s,u){return s*u},1),Gw=to("round"),Kw=Fa(function(s,u){return s-u},0);function jw(s){return s&&s.length?Is(s,Dn):0}function Jw(s,u){return s&&s.length?Is(s,je(u,2)):0}return M.after=_v,M.ary=_f,M.assign=n0,M.assignIn=Lf,M.assignInWith=Za,M.assignWith=i0,M.at=l0,M.before=pf,M.bind=go,M.bindAll=uw,M.bindKey=mf,M.castArray=Tv,M.chain=df,M.chunk=M1,M.compact=F1,M.concat=U1,M.cond=fw,M.conforms=cw,M.constant=ko,M.countBy=jb,M.create=r0,M.curry=bf,M.curryRight=vf,M.debounce=wf,M.defaults=a0,M.defaultsDeep=s0,M.defer=pv,M.delay=mv,M.difference=B1,M.differenceBy=H1,M.differenceWith=W1,M.drop=z1,M.dropRight=q1,M.dropRightWhile=G1,M.dropWhile=K1,M.fill=j1,M.filter=Yb,M.flatMap=Xb,M.flatMapDeep=$b,M.flatMapDepth=xb,M.flatten=of,M.flattenDeep=J1,M.flattenDepth=Y1,M.flip=bv,M.flow=hw,M.flowRight=gw,M.fromPairs=Q1,M.functions=g0,M.functionsIn=_0,M.groupBy=ev,M.initial=X1,M.intersection=$1,M.intersectionBy=x1,M.intersectionWith=eb,M.invert=m0,M.invertBy=b0,M.invokeMap=nv,M.iteratee=So,M.keyBy=iv,M.keys=un,M.keysIn=Rn,M.map=Ga,M.mapKeys=w0,M.mapValues=k0,M.matches=_w,M.matchesProperty=pw,M.memoize=ja,M.merge=S0,M.mergeWith=Af,M.method=mw,M.methodOf=bw,M.mixin=Co,M.negate=Ja,M.nthArg=ww,M.omit=C0,M.omitBy=y0,M.once=vv,M.orderBy=lv,M.over=kw,M.overArgs=wv,M.overEvery=Sw,M.overSome=Cw,M.partial=_o,M.partialRight=kf,M.partition=rv,M.pick=P0,M.pickBy=Ef,M.property=Uf,M.propertyOf=yw,M.pull=lb,M.pullAll=ff,M.pullAllBy=rb,M.pullAllWith=ab,M.pullAt=sb,M.range=Pw,M.rangeRight=Nw,M.rearg=kv,M.reject=ov,M.remove=ob,M.rest=Sv,M.reverse=co,M.sampleSize=fv,M.set=T0,M.setWith=I0,M.shuffle=cv,M.slice=ub,M.sortBy=gv,M.sortedUniq=pb,M.sortedUniqBy=mb,M.split=X0,M.spread=Cv,M.tail=bb,M.take=vb,M.takeRight=wb,M.takeRightWhile=kb,M.takeWhile=Sb,M.tap=Fb,M.throttle=yv,M.thru=qa,M.toArray=Nf,M.toPairs=Rf,M.toPairsIn=Df,M.toPath=Ew,M.toPlainObject=If,M.transform=L0,M.unary=Pv,M.union=Cb,M.unionBy=yb,M.unionWith=Pb,M.uniq=Nb,M.uniqBy=Tb,M.uniqWith=Ib,M.unset=A0,M.unzip=ho,M.unzipWith=cf,M.update=E0,M.updateWith=R0,M.values=rr,M.valuesIn=D0,M.without=Lb,M.words=Mf,M.wrap=Nv,M.xor=Ab,M.xorBy=Eb,M.xorWith=Rb,M.zip=Db,M.zipObject=Vb,M.zipObjectDeep=Ob,M.zipWith=Mb,M.entries=Rf,M.entriesIn=Df,M.extend=Lf,M.extendWith=Za,Co(M,M),M.add=Dw,M.attempt=Ff,M.camelCase=F0,M.capitalize=Vf,M.ceil=Vw,M.clamp=V0,M.clone=Iv,M.cloneDeep=Av,M.cloneDeepWith=Ev,M.cloneWith=Lv,M.conformsTo=Rv,M.deburr=Of,M.defaultTo=dw,M.divide=Ow,M.endsWith=U0,M.eq=ai,M.escape=B0,M.escapeRegExp=H0,M.every=Jb,M.find=Qb,M.findIndex=af,M.findKey=o0,M.findLast=Zb,M.findLastIndex=sf,M.findLastKey=u0,M.floor=Mw,M.forEach=hf,M.forEachRight=gf,M.forIn=f0,M.forInRight=c0,M.forOwn=d0,M.forOwnRight=h0,M.get=bo,M.gt=Dv,M.gte=Vv,M.has=p0,M.hasIn=vo,M.head=uf,M.identity=Dn,M.includes=tv,M.indexOf=Z1,M.inRange=O0,M.invoke=v0,M.isArguments=Vl,M.isArray=it,M.isArrayBuffer=Ov,M.isArrayLike=En,M.isArrayLikeObject=Zt,M.isBoolean=Mv,M.isBuffer=sl,M.isDate=Fv,M.isElement=Uv,M.isEmpty=Bv,M.isEqual=Hv,M.isEqualWith=Wv,M.isError=po,M.isFinite=zv,M.isFunction=Mi,M.isInteger=Sf,M.isLength=Ya,M.isMap=Cf,M.isMatch=qv,M.isMatchWith=Gv,M.isNaN=Kv,M.isNative=jv,M.isNil=Yv,M.isNull=Jv,M.isNumber=yf,M.isObject=Kt,M.isObjectLike=Qt,M.isPlainObject=Ur,M.isRegExp=mo,M.isSafeInteger=Qv,M.isSet=Pf,M.isString=Qa,M.isSymbol=Bn,M.isTypedArray=lr,M.isUndefined=Zv,M.isWeakMap=Xv,M.isWeakSet=$v,M.join=tb,M.kebabCase=W0,M.last=Qn,M.lastIndexOf=nb,M.lowerCase=z0,M.lowerFirst=q0,M.lt=xv,M.lte=e0,M.max=Fw,M.maxBy=Uw,M.mean=Bw,M.meanBy=Hw,M.min=Ww,M.minBy=zw,M.stubArray=Po,M.stubFalse=No,M.stubObject=Tw,M.stubString=Iw,M.stubTrue=Lw,M.multiply=qw,M.nth=ib,M.noConflict=vw,M.noop=yo,M.now=Ka,M.pad=G0,M.padEnd=K0,M.padStart=j0,M.parseInt=J0,M.random=M0,M.reduce=av,M.reduceRight=sv,M.repeat=Y0,M.replace=Q0,M.result=N0,M.round=Gw,M.runInContext=X,M.sample=uv,M.size=dv,M.snakeCase=Z0,M.some=hv,M.sortedIndex=fb,M.sortedIndexBy=cb,M.sortedIndexOf=db,M.sortedLastIndex=hb,M.sortedLastIndexBy=gb,M.sortedLastIndexOf=_b,M.startCase=$0,M.startsWith=x0,M.subtract=Kw,M.sum=jw,M.sumBy=Jw,M.template=ew,M.times=Aw,M.toFinite=Fi,M.toInteger=st,M.toLength=Tf,M.toLower=tw,M.toNumber=Zn,M.toSafeInteger=t0,M.toString=Tt,M.toUpper=nw,M.trim=iw,M.trimEnd=lw,M.trimStart=rw,M.truncate=aw,M.unescape=sw,M.uniqueId=Rw,M.upperCase=ow,M.upperFirst=wo,M.each=hf,M.eachRight=gf,M.first=uf,Co(M,function(){var s={};return di(M,function(u,_){It.call(M.prototype,_)||(s[_]=u)}),s}(),{chain:!1}),M.VERSION=n,Gt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){M[s].placeholder=M}),Gt(["drop","take"],function(s,u){_t.prototype[s]=function(_){_=_===t?1:rn(st(_),0);var k=this.__filtered__&&!u?new _t(this):this.clone();return k.__filtered__?k.__takeCount__=mn(_,k.__takeCount__):k.__views__.push({size:mn(_,ve),type:s+(k.__dir__<0?"Right":"")}),k},_t.prototype[s+"Right"]=function(_){return this.reverse()[s](_).reverse()}}),Gt(["filter","map","takeWhile"],function(s,u){var _=u+1,k=_==x||_==K;_t.prototype[s]=function(N){var F=this.clone();return F.__iteratees__.push({iteratee:je(N,3),type:_}),F.__filtered__=F.__filtered__||k,F}}),Gt(["head","last"],function(s,u){var _="take"+(u?"Right":"");_t.prototype[s]=function(){return this[_](1).value()[0]}}),Gt(["initial","tail"],function(s,u){var _="drop"+(u?"":"Right");_t.prototype[s]=function(){return this.__filtered__?new _t(this):this[_](1)}}),_t.prototype.compact=function(){return this.filter(Dn)},_t.prototype.find=function(s){return this.filter(s).head()},_t.prototype.findLast=function(s){return this.reverse().find(s)},_t.prototype.invokeMap=ft(function(s,u){return typeof s=="function"?new _t(this):this.map(function(_){return Rr(_,s,u)})}),_t.prototype.reject=function(s){return this.filter(Ja(je(s)))},_t.prototype.slice=function(s,u){s=st(s);var _=this;return _.__filtered__&&(s>0||u<0)?new _t(_):(s<0?_=_.takeRight(-s):s&&(_=_.drop(s)),u!==t&&(u=st(u),_=u<0?_.dropRight(-u):_.take(u-s)),_)},_t.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},_t.prototype.toArray=function(){return this.take(ve)},di(_t.prototype,function(s,u){var _=/^(?:filter|find|map|reject)|While$/.test(u),k=/^(?:head|last)$/.test(u),N=M[k?"take"+(u=="last"?"Right":""):u],F=k||/^find/.test(u);N&&(M.prototype[u]=function(){var z=this.__wrapped__,j=k?[1]:arguments,ee=z instanceof _t,me=j[0],be=ee||it(z),Pe=function(gt){var pt=N.apply(M,el([gt],j));return k&&Ve?pt[0]:pt};be&&_&&typeof me=="function"&&me.length!=1&&(ee=be=!1);var Ve=this.__chain__,Ge=!!this.__actions__.length,Qe=F&&!Ve,ot=ee&&!Ge;if(!F&&be){z=ot?z:new _t(this);var Ze=s.apply(z,j);return Ze.__actions__.push({func:qa,args:[Pe],thisArg:t}),new jn(Ze,Ve)}return Qe&&ot?s.apply(this,j):(Ze=this.thru(Pe),Qe?k?Ze.value()[0]:Ze.value():Ze)})}),Gt(["pop","push","shift","sort","splice","unshift"],function(s){var u=_a[s],_=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",k=/^(?:pop|shift)$/.test(s);M.prototype[s]=function(){var N=arguments;if(k&&!this.__chain__){var F=this.value();return u.apply(it(F)?F:[],N)}return this[_](function(z){return u.apply(it(z)?z:[],N)})}}),di(_t.prototype,function(s,u){var _=M[u];if(_){var k=_.name+"";It.call(xl,k)||(xl[k]=[]),xl[k].push({name:u,func:_})}}),xl[Ma(t,y).name]=[{name:"wrapper",func:t}],_t.prototype.clone=sm,_t.prototype.reverse=om,_t.prototype.value=um,M.prototype.at=Ub,M.prototype.chain=Bb,M.prototype.commit=Hb,M.prototype.next=Wb,M.prototype.plant=qb,M.prototype.reverse=Gb,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=Kb,M.prototype.first=M.prototype.head,Pr&&(M.prototype[Pr]=zb),M},Zl=Hp();Wt?((Wt.exports=Zl)._=Zl,Lt._=Zl):xe._=Zl}).call(Hr)})(ss,ss.exports);var qr=ss.exports;class H2{getNodePath(e,t){return e?we.buildRoute(e,e.pathSegment?"/"+e.pathSegment:"",t):""}normalizePath(e){const t=e.indexOf("/")===0;let n=new URL(e,"http://valid.url");const l=n.pathname+n.search+n.hash;return!t&&l.indexOf("/")===0?l.substr(1):l}concatenatePath(e,t){let n=le.getPathWithoutHash(e);return n?(t&&(n.endsWith("/")&&(n=n.substring(0,n.length-1)),t.startsWith("/")||(n+="/"),n+=t),n):t}async navigateTo(e,t={}){const{nodeObject:n}=await Mt.extractDataFromPath(e),{keepBrowserHistory:l=!0,navSync:r=!0,preventContextUpdate:a=!1}=t;if(await Mt.shouldPreventNavigation(n)||le.trimLeadingSlash(this.getWindowPath())===le.trimLeadingSlash(e))return;const c=ae.getConfigValue("routing.useHashRouting"),g=ae.getConfigValue("routing.preserveQueryParams");let d=new URL(location.href);e=g?we.composeSearchParamsToRoute(e):e,c&&(d.hash=e);const h=l?"pushState":"replaceState",p=ae.getConfigValue("routing.disableBrowserHistory")?"replaceState":h;window.history[p]({path:c?d.hash:e},"",c?d.hash:e);const b={detail:{preventContextUpdate:a,withoutSync:!r}},m=new CustomEvent("popstate",b);window.dispatchEvent(m)}getWindowPath(){return ae.getConfigValue("routing.useHashRouting")?le.getPathWithoutHash(window.location.hash):window.location.pathname+window.location.search}buildFromRelativePath(e){let t=this.getWindowPath();if(e.parent&&e.parent.pathSegment){const n=le.trimLeadingSlash(this.getNodePath(e.parent)).split("/"),l=le.trimLeadingSlash(t).split("/");l.length>n.length&&(t=l.slice(0,n.length).join("/"))}return this.normalizePath(le.addLeadingSlash(this.concatenatePath(t,e.link)))}getHashPath(e=window.location.hash){if(e&&/\?intent=/i.test(e)){const t=e.replace("#/#","#"),n=we.getIntentPath(t.split("#")[1]);if(n)return n}return e.split("#/")[1]}getModifiedPathname(){if(window.location.hash&&/\?intent=/i.test(window.location.hash)){const n=window.location.hash.replace("#/#","").replace("#",""),l=we.getIntentPath(n);return l||"/"}const e=window.location.search?window.location.search:"";return(window.history.state&&window.history.state.path||window.location.pathname+e).split("/").slice(1).join("/")}getCurrentPath(){if(/\?intent=/i.test(window.location.hash)){const e=window.location.hash.replace("#/#","").replace("#",""),t=we.getIntentPath(e);if(t)return Luigi.getConfigValue("routing.replaceIntentRoute")&&history.replaceState(window.state,"",t),t}return ae.getConfigValue("routing.useHashRouting")?window.location.hash.replace("#",""):window.location.search?le.trimLeadingSlash(window.location.pathname)+window.location.search:le.trimLeadingSlash(window.location.pathname)}setFeatureToggle(e){const t=ae.getConfigValue("settings.featureToggles.queryStringParam");t&&typeof e=="string"&&we.setFeatureToggles(t,e)}shouldSkipRoutingForUrlPatterns(){const e=[/access_token=/,/id_token=/];return(ae.getConfigValue("routing.skipRoutingForUrlPatterns")||e).filter(n=>location.href.match(n)).length!==0}handleUnsavedChangesModal(e,t,n,l){const r=window.location.href,a=t.get().unsavedChanges.persistUrl;return a&&history.pushState(window.state,"",a),t.getUnsavedChangesModalPromise().then(()=>{this.resolveUnsavedChanges(e,t,n,l,r)},()=>{})}resolveUnsavedChanges(e,t,n,l,r){e&&(this.handleRouteChange(e,t,n,l),history.replaceState(window.state,"",r))}async shouldShowModalPathInUrl(){ae.getConfigValue("routing.showModalPathInUrl")&&await this.handleBookmarkableModalPath()}async handleViewUrlMisconfigured(e,t,n,l,r){const{children:a,intendToHaveEmptyViewUrl:o,compound:c}=e,g=a&&Array.isArray(a)&&a.length>0||a||!1;if(!c&&t.trim()===""&&!g&&!o){if(console.warn("The intended target route can't be accessed since it has neither a viewUrl nor children. This is most likely a misconfiguration."),!(n&&(n.viewUrl||n.currentNode&&n.currentNode.compound))){const d=await Mt.getNavigationPath(ae.getConfigValueAsync("navigation.nodes"),"/"),h=await we.getDefaultChildNode(d);this.showPageNotFoundError(r,h,l),this.navigateTo(h)}return!0}return!1}async handlePageNotFound(e,t,n,l,r,a,o){if(!t&&!e.compound||e.tabNav&&e.tabNav.showAsTabHeader){const c=await we.getDefaultChildNode(n,async(g,d)=>await Mt.getChildren(g,d));if(n.isExistingRoute){const g=le.getTrimmedUrl(l);this.navigateTo(`${g?`/${g}`:""}/${c}`,{keepBrowserHistory:!1}),r.set({navigationPath:[]})}else{if(c&&n.navigationPath.length>1)return this.showPageNotFoundError(r,le.trimTrailingSlash(n.matchedPath)+"/"+c,a,!0),!0;const g=await Mt.getNavigationPath(ae.getConfigValueAsync("navigation.nodes"),"/"),d=await we.getDefaultChildNode(g);this.showPageNotFoundError(r,d,a,!1,o)}return!0}return n.isExistingRoute?!1:(this.showPageNotFoundError(r,n.matchedPath,a,!0),!0)}async handleRouteChange(e,t,n,l,r,a=!1){const o=e||"";if(o.external){this.navigateToExternalLink({url:o.url,sameWindow:!o.openInNewTab});return}if(this.setFeatureToggle(o),!this.shouldSkipRoutingForUrlPatterns()){if(window.Luigi.preventLoadingModalData){window.Luigi.preventLoadingModalData=!1;return}try{if(t.shouldShowUnsavedChangesModal()){await this.handleUnsavedChangesModal(o,t,n,l);return}await this.shouldShowModalPathInUrl();const c=t.get();this.checkInvalidateCache(c,o);const g=o&&o.length?le.getPathWithoutHash(o):"",{nodeObject:d,pathData:h}=await Mt.extractDataFromPath(o),p=d.viewUrl||"";if(await this.handleViewUrlMisconfigured(d,p,c,g,t)||await this.handlePageNotFound(d,p,h,o,t,g,l))return;const b=ae.getConfigBooleanValue("settings.hideNavigation"),m=we.parseParams(g.split("?")[1]),v=we.getNodeParams(m),C=oe.findViewGroup(d),y=decodeURIComponent(g.split("?")[1]||""),P=h.navigationPath&&h.navigationPath.length>0?h.navigationPath[h.navigationPath.length-1]:null;let T=!1,E=P;for(;E;){if(E.tabNav===!0){T=!0;break}else if(E.tabNav===!1){T=!1;break}else if(le.isObject(E.tabNav)){if(E.tabNav.showAsTabHeader){T=!0;break}if("hideTabNavAutomatically"in E.tabNav&&E.children)if(E.tabNav.hideTabNavAutomatically===!0&&E.children.length===1){T=!1;break}else{T=!0;break}else console.warn("tabNav:{hideTabNavAutomatically:true|false} is not configured correctly.")}E=oe.getParentNode(E,h.navigationPath)}let V=P,I=d.hideSideNav;if(I===void 0)for(;V;){if(V.tabNav&&V.hideSideNav===!0){I=!0;break}if(V.hideSideNav===!1){I=!1;break}V=oe.getParentNode(V,h.navigationPath)}const H=we.substituteDynamicParamsInObject(Object.assign({},h.context,P.context),h.pathParams);h.navigationPath._context=H;const O={hideNav:b,viewUrl:p,nodeParams:v,viewGroup:C,urlParamsRaw:y,currentNode:P,navigationPath:h.navigationPath,context:H,pathParams:h.pathParams,hideSideNav:I||!1,isolateView:d.isolateView||!1,tabNav:T};t.set(Object.assign({},O,{previousNodeValues:c?{viewUrl:c.viewUrl,isolateView:c.isolateView,viewGroup:c.viewGroup}:{}}));let D=document.getElementsByClassName("iframeContainer")[0];if(D&&(T?D.classList.add("iframeContainerTabNav"):D.classList.contains("iframeContainerTabNav")&&D.classList.remove("iframeContainerTabNav")),d.compound)oi.switchActiveIframe(n,void 0,!1),D&&D.classList.add("lui-webComponent"),this.navigateWebComponentCompound(t,d);else if(d.webcomponent)oi.switchActiveIframe(n,void 0,!1),D&&D.classList.add("lui-webComponent"),this.navigateWebComponent(t,d);else{const Z=document.querySelector(".wcContainer");if(Z&&(Z.configChangedRequest=!1),D&&(D.classList.remove("lui-webComponent"),this.removeLastChildFromWCContainer()),!a)if(!r)await oi.navigateIframe(l,t,n);else{const $=t.get(),pe=await t.prepareInternalData(l);Ee.sendMessageToIframe(l.iframe,{msg:"luigi.navigate",viewUrl:p,context:JSON.stringify($.context),nodeParams:JSON.stringify($.nodeParams),pathParams:JSON.stringify($.pathParams),searchParams:JSON.stringify(we.prepareSearchParamsForClient(l.iframe.luigi.currentNode)),internal:JSON.stringify(pe),withoutSync:!0})}}const q=document.querySelector(".lui-tab-header");q&&q.dispatchEvent(new Event("lui_ctx_update")),Mt.onNodeChange(c.currentNode,P)}catch(c){console.info("Could not handle route change",c)}}}async handleBookmarkableModalPath(){const e=we.getModalPathFromPath();if(e){const t=we.getModalParamsFromPath(),{nodeObject:n}=await Mt.extractDataFromPath(e);ep.openAsModal(e,t||n.openNodeInModal)}}checkInvalidateCache(e,t){let n=t.split("/");if(e.navigationPath&&e.navigationPath.length>0){let l=e.navigationPath.slice(1),r=!0;for(let a=0;a<l.length;a++){let o=n.length>a?n[a]:void 0,c=l[a];if(o!==c.pathSegment||!r)if(we.isDynamicNode(c)){if(!r||o!==we.getDynamicNodeValue(c,e.pathParams)){zn.deleteNodesRecursively(c);break}}else r=!1}}else zn.deleteCache()}handleRouteClick(e,t){const n=we.getRouteLink(e,t.get().pathParams);if(e.externalLink&&e.externalLink.url)this.navigateToExternalLink(n,e,t.get().pathParams);else if(e.link)this.navigateTo(n);else if(le.trimLeadingSlash(this.getWindowPath())===le.trimLeadingSlash(n)){const r=Ee.getIframeContainer(),a=oi.getActiveIframe(r);a&&a.vg&&oi.canCache(a.vg)?(oi.switchActiveIframe(Ee.getIframeContainer(),void 0,!1),setTimeout(()=>{oi.switchActiveIframe(Ee.getIframeContainer(),a,!1),window.postMessage({msg:"refreshRoute"},"*")})):(a&&r.removeChild(a),window.postMessage({msg:"refreshRoute"},"*"))}else this.navigateTo(n)}async showPageNotFoundError(e,t,n,l=!1,r={}){const a=we.getPageNotFoundRedirectResult(n,l);if(a.ignoreLuigiErrorHandling)return;const o=a.path;if(o){a.keepURL?this.handleRouteChange(o,e,Ee.getIframeContainer(),r):this.navigateTo(o);return}we.showRouteNotFoundAlert(e,n,l),this.navigateTo(le.addLeadingSlash(t))}navigateToLink(e){e.externalLink&&e.externalLink.url?this.navigateToExternalLink(e.externalLink):this.navigateTo(e.link)}navigateToExternalLink(e,t,n){if(t){const l={...D2.externalLink,...(t==null?void 0:t.externalLink)||{}};l.url=we.calculateNodeHref(t,n),window.open(l.url,l.sameWindow?"_self":"_blank").focus()}else le.isObject(e)&&window.open(e.url,e.sameWindow?"_self":"_blank").focus()}getGeneratedWCId(e){const{viewUrl:t,context:n}=e;if(t){const l=we.substituteViewUrl(t,{context:n});return e.webcomponent&&e.webcomponent.tagName?e.webcomponent.tagName:ur.generateWCId(l)}}navigateWebComponent(e,t){let n=document.querySelector(".wcContainer"),l=n._luigi_node;const r=this.getGeneratedWCId(t),a=e.get();if(t===l&&!n.configChangedRequest){const o=document.querySelector(r);o.context=a.context,o.extendedContext&&(o.extendedContext.nodeParams=a.nodeParams);return}n.configChangedRequest=!1,n=this.removeLastChildFromWCContainer(),n&&ur.renderWebComponent(a.viewUrl,n,a,t)}navigateWebComponentCompound(e,t){const n=document.querySelector(".wcContainer");if(!n)return;const l=e.get();if(n._luigi_node===t&&qr.isEqual(n._luigi_pathParams,l.pathParams)&&!n.configChangedRequest)return;n.configChangedRequest=!1;const{compound:r}=t;this.removeLastChildFromWCContainer(),r&&r.children&&(r.children=r.children.filter(a=>oe.checkVisibleForFeatureToggles(a))),ur.renderWebComponentCompound(t,n,l),n._luigi_pathParams=l.pathParams}removeLastChildFromWCContainer(){const e=document.querySelector(".wcContainer");if(e){for(;e.lastChild;)e.lastChild.remove();return e._luigi_node=void 0,e}}updateModalDataInUrl(e,t,n){let l=we.getHashQueryParamSeparator();const r=we.getQueryParams(),a=we.getModalViewParamName();r[a]=e,t&&Object.keys(t).length&&(r[`${a}Params`]=JSON.stringify(t));const o=new URL(location.href);if(ae.getConfigBooleanValue("routing.useHashRouting")){const g=location.hash.indexOf(l);g!==-1&&(o.hash=o.hash.slice(0,g)),o.hash=`${o.hash}${l}${we.encodeParams(r)}`}else o.search=`?${we.encodeParams(r)}`;n?history.pushState(window.state,"",o.href):history.replaceState(window.state,"",o.href)}appendModalDataToUrl(e,t){let n=we.getHashQueryParamSeparator();const l=we.getQueryParams(),r=we.getModalViewParamName(),a=l[r],o=new URL(location.href),c=ae.getConfigBooleanValue("routing.useHashRouting");let g=history.state,d,h;if(c){let[p,b]=o.hash.split("?");d=p,h=we.getURLWithoutModalData(b,r),h&&(d+="?"+h)}else d=o.pathname,h=we.getURLWithoutModalData(o.search,r),h&&(d+="?"+we.getURLWithoutModalData(o.search,r));if(g=we.handleHistoryState(g,d),a!==e){if(l[r]=e,t&&Object.keys(t).length&&(l[`${r}Params`]=JSON.stringify(t)),c){const p=location.hash.indexOf(n);p!==-1&&(o.hash=o.hash.slice(0,p)),o.hash=`${o.hash}${n}${we.encodeParams(l)}`}else o.search=`?${we.encodeParams(l)}`;history.pushState(g,"",o.href)}else{const p=new URL(o);if(c){let b=p.hash.split("?")[0];p.hash=b,h&&(p.hash+="?"+h)}else p.search=h;history.replaceState({},"",p.href),history.pushState(g,"",o.href)}}removeModalDataFromUrl(e){const t=we.getQueryParams(),n=we.getModalViewParamName();let l=new URL(location.href);if(ae.getConfigBooleanValue("routing.useHashRouting")){let a={};t[n]&&(a[n]=t[n]),t[`${n}Params`]&&(a[`${n}Params`]=t[`${n}Params`]);let o=we.encodeParams(a);l.hash.includes(`?${o}`)?l.hash=l.hash.replace(`?${o}`,""):l.hash.includes(`&${o}`)&&(l.hash=l.hash.replace(`&${o}`,""))}else{let a=new URLSearchParams(l.search.slice(1));a.delete(n),a.delete(`${n}Params`);let o="";Array.from(a.keys()).forEach(c=>{o+=(o===""?"?":"&")+c+"="+a.get(c)}),l.search=o}if(history.state&&history.state.modalHistoryLength>=0&&e){history.state.modalHistoryLength;const a=history.state.pathBeforeHistory;let o=!1;if(window.addEventListener("popstate",c=>{o?(history.replaceState({},"",a),history.pushState({},"",a),history.back()):(history.pushState({},"",a),history.back())},{once:!0}),history.state.historygap===history.length-history.state.modalHistoryLength)history.go(-history.state.modalHistoryLength);else if(history.state.modalHistoryLength>history.length){const c=history.length-1;o=!0,history.go(-c),window.Luigi.preventLoadingModalData=!0}else{const c=history.state.modalHistoryLength;history.go(-c)}}else history.pushState({},"",l.href)}}const lt=new H2;class W2{constructor(){this.splitViewValues,this.internalValues={innerHeight:null,rightContentHeight:null,thresholdTop:null,thresholdBottom:null,m_pos_prev:null}}getContainer(){return document.getElementById("splitViewContainer")}getDragger(){return document.getElementById("splitViewDragger")}getDraggerButton(){return document.querySelector("#splitViewDragger>.lui-collapse-btn")}getCollapsedDraggerButton(){return document.querySelector("#splitViewDraggerCollapsed>.lui-collapse-btn")}getDraggerBackdrop(){return document.getElementById("splitViewDraggerBackdrop")}getDefaultData(){return{mfSplitView:{displayed:!1,settings:{}}}}setIframe(e,t,n){e&&(e=we.substituteViewUrl(e,t));const l=Ee.createIframe(e,void 0,n.get().lastNode,"split-view",t);return document.querySelector(".iframeSplitViewCnt").appendChild(l),l}async prepareSplitViewData(e,t){const n=t&&t.length?le.getPathWithoutHash(t):"",l=await Mt.getNavigationPath(ae.getConfigValueAsync("navigation.nodes"),t),r=we.parseParams(n.split("?")[1]),a=we.getNodeParams(r),o=we.getLastNodeObject(l),c=e.get().splitViewSettings;c.title||(c.title=o.label);const g=c.collapsed||!1;e.set({splitViewSettings:c,lastNode:o,pathData:l,nodeParams:a,collapsed:g,isDataPrepared:!0})}createAndSetView(e){const{nodeParams:t,lastNode:n,pathData:l}=e.get();if(n.webcomponent){ur.renderWebComponent(n.viewUrl,document.querySelector(".iframeSplitViewCnt"),{context:l.context},n,void 0,!0);const r={splitViewWC:document.querySelector(".iframeSplitViewCnt"),splitViewWCData:{...l,nodeParams:t}};e.set(r),e.dispatch("wcCreated",{...r,collapsed:!1});const a=document.querySelector(".wcContainer");if(a&&a.childElementCount){const o=document.getElementsByClassName("iframeContainer")[0];o&&o.classList.add("lui-webComponent")}}else{const a={splitViewIframe:this.setIframe(n.viewUrl,{context:l.context,pathParams:l.pathParams,nodeParams:t},e),splitViewIframeData:{...l,nodeParams:t}};e.set(a),e.dispatch("iframeCreated",{...a,collapsed:!1})}this.fixIOSscroll()}fixIOSscroll(){if(!(!!navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform)))return;const t=document.querySelector(".iframeSplitViewCnt iframe");t&&t.addEventListener("load",()=>{document.querySelector(".iframeSplitViewCnt").style.overflow="hidden",setTimeout(()=>{document.querySelector(".iframeSplitViewCnt").style.overflow="auto"})})}calculateInitialValues(e,t){if(t){const n=e||40,l=parseInt(le.computePxFromPercent(t,n)),r=e?100-e:60,a=parseInt(le.computePxFromPercent(t,r));return{percent:n,bottom:l,top:a}}}calculateAndSetSplitViewValues(e,t){const n=parseInt(le.computePxFromPercent(t.rightContentHeight,100-e))+Ee.getIframeContainer().getBoundingClientRect().top;this.splitViewValues=this.enforceTresholds(n,t.innerHeight-n,t)}enforceTresholds(e,t){const n=this.internalValues;return e<=n.thresholdTop?(e=n.thresholdTop,t=n.innerHeight-n.thresholdTop):t<=n.thresholdBottom&&(e=n.innerHeight-n.thresholdBottom,t=n.thresholdBottom),{top:e,bottom:t,percent:le.computePercentFromPx(n.rightContentHeight,t)}}open(e,t,n){const l={displayed:!0,collapsed:n.collapsed===!0,nodepath:t,settings:n};this.splitViewValues=this.calculateInitialValues(l.settings&&l.settings.size,le.getContentAreaHeight()),this.sendMessageToClients("internal",{exists:!0,size:this.splitViewValues.percent,collapsed:l.collapsed}),e.set({mfSplitView:l,splitViewValues:this.splitViewValues})}close(e){e.get().splitViewIframe||e.get().splitViewWC?e.getUnsavedChangesModalPromise(e.get().splitViewWC?e.get().splitViewWC:e.get().splitViewIframe.contentWindow).then(()=>{e.get().mfSplitView&&(e.get().mfSplitView.displayed=!1,e.get().mfSplitView.collapsed=!1,e.set({mfSplitView:e.get().mfSplitView})),e.dispatch("statusChanged",{displayed:!1}),Ee.getIframeContainer().style.marginBottom="",dt.sendMessageToClients("close.ok")},()=>{}):e.get().mfSplitView.displayed&&(e.get().mfSplitView.displayed=!1,e.set({mfSplitView:e.get().mfSplitView}))}async expand(e){this.sendMessageToClients("internal",{exists:!0,size:this.splitViewValues.percent,collapsed:!1}),this.sendMessageToClients("expand.ok"),e.dispatch("statusChanged",{displayed:!0,collapsed:!1}),this.getContainer().style.top=`${this.splitViewValues.top}px`,Ee.getIframeContainer().style.marginBottom=`${this.splitViewValues.bottom}px`,setTimeout(()=>{this.getDragger().style.top=`${this.splitViewValues.top}px`})}collapse(e){(e.get().splitViewIframe||e.get().splitViewWC)&&e.getUnsavedChangesModalPromise(e.get().splitViewWC?e.get().splitViewWC:e.get().splitViewIframe.contentWindow).then(()=>{this.sendMessageToClients("internal",{exists:!0,size:this.splitViewValues.percent,collapsed:!0}),this.sendMessageToClients("collapse.ok"),e.dispatch("statusChanged",{displayed:!0,collapsed:!0}),this.getContainer().style.top="",Ee.getIframeContainer().style.marginBottom=""},()=>{})}sendMessageToClients(e,t){Ee.sendMessageToVisibleIframes({msg:`luigi.navigation.splitview.${e}`,data:t})}}const dt=new W2;class z2{luigiAfterInit(){ae.getConfigBooleanValue("settings.appLoadingIndicator.hideAutomatically")&&setTimeout(()=>{Yr.hideAppLoadingIndicator()},0)}}const q2=new z2;class G2{constructor(){this._defaultStorage="localStorage",this._authKey="luigi.auth",this._newlyAuthorizedKey="luigi.newlyAuthorized",this._invalidStorageMsg="Configuration Error: Invalid auth.storage value defined. Must be one of localStorage, sessionStorage or none."}getStorageKey(){return this._authKey}getStorageType(){return this._storageType||(this._storageType=ae.getConfigValue("auth.storage")||this._defaultStorage),this._storageType}getAuthData(){return this._getStore(this.getStorageKey())}setAuthData(e){this._setStore(this.getStorageKey(),e)}removeAuthData(){this._setStore(this.getStorageKey(),void 0)}isNewlyAuthorized(){return!!this._getStore(this._newlyAuthorizedKey)}setNewlyAuthorized(){this._setStore(this._newlyAuthorizedKey,!0)}removeNewlyAuthorized(){this._setStore(this._newlyAuthorizedKey,void 0)}_setStore(e,t){switch(this.getStorageType()){case"localStorage":case"sessionStorage":t!==void 0?window[this.getStorageType()].setItem(e,JSON.stringify(t)):window[this.getStorageType()].removeItem(e);break;case"none":this[e]=t;break;default:console.error(this._invalidStorageMsg)}}_getStore(e){try{switch(this.getStorageType()){case"localStorage":case"sessionStorage":return JSON.parse(window[this.getStorageType()].getItem(e));case"none":return this[e];default:console.error(this._invalidStorageMsg)}}catch{console.warn("Error parsing authorization data. Auto-logout might not work!")}}}const ui=new G2;class K2{constructor(){return this._userInfoStore=fr({}),this._loggedInStore=fr(!1),this}setUserInfo(e){this._userInfoStore.set(e)}setLoggedIn(e){this._loggedInStore.set(e)}getUserInfoStore(){return this._userInfoStore}getLoggedInStore(){return this._loggedInStore}setProfileLogoutFn(e){this._profileLogoutFn=e}async init(){const e=ae.getConfigValue("auth.use");if(!e)return Promise.resolve(!0);const t=ae.getConfigValue(`auth.${e}`),n=fl.parseUrlAuthErrors()||{};if(await fl.handleUrlAuthErrors(t,n.error,n.errorDescription))return this.idpProviderInstance=this.getIdpProviderInstance(e,t),le.isPromise(this.idpProviderInstance)?this.idpProviderInstance.then(r=>(this.idpProviderInstance=r,this.checkAuth(t))).catch(r=>{const a=`Error: ${r.message||r}`;console.error(a,r.message&&r),ae.setErrorMessage(a)}):this.checkAuth(t)}async checkAuth(e){const t=fl.getStoredAuthData();if(!t||!fl.isLoggedIn()){if(ae.getConfigValue("auth.disableAutoLogin"))return;let l=!0;return t&&(l=await pi.handleAuthEvent("onAuthExpired",e)),l?this.startAuthorization():void 0}this.idpProviderInstance.settings&&le.isFunction(this.idpProviderInstance.settings.userInfoFn)?this.idpProviderInstance.settings.userInfoFn(this.idpProviderInstance.settings,t).then(l=>{this.setUserInfo(l),this.setLoggedIn(!0)}):le.isFunction(this.idpProviderInstance.userInfo)?this.idpProviderInstance.userInfo(e).then(l=>{this.setUserInfo(l),this.setLoggedIn(!0)}):(this.setLoggedIn(!0),this.setUserInfo(ol(this._userInfoStore))),le.isFunction(ae.getConfigValue("auth.events.onAuthSuccessful"))&&ui.isNewlyAuthorized()&&await pi.handleAuthEvent("onAuthSuccessful",e,t),ui.removeNewlyAuthorized(),le.isFunction(this.idpProviderInstance.setTokenExpirationAction)&&this.idpProviderInstance.setTokenExpirationAction(),le.isFunction(this.idpProviderInstance.setTokenExpireSoonAction)&&this.idpProviderInstance.setTokenExpireSoonAction()}async startAuthorization(){if(this.idpProviderInstance)return this.idpProviderInstance.login().then(e=>{ui.setNewlyAuthorized(),e&&console.error(e)})}logout(){const e=fl.getStoredAuthData(),t=async l=>{await pi.handleAuthEvent("onLogout",this.idpProviderInstance.settings,void 0,l),ui.removeAuthData()},n=ae.getConfigValue(`auth.${ae.getConfigValue("auth.use")}.logoutFn`);le.isFunction(n)?n(this.idpProviderInstance.settings,e,t):le.isFunction(this.idpProviderInstance.logout)?this.idpProviderInstance.logout(e,t):this._profileLogoutFn?this._profileLogoutFn(e,t):t(this.idpProviderInstance.settings.logoutUrl)}IdpProviderException(e){return{message:e,name:"IdpProviderException"}}async getIdpProviderInstance(e,t){const n=le.getConfigValueFromObject(t,"idpProvider");if(n){const r=await new n(t);return["login"].forEach(a=>{if(!le.isFunction(r[a]))throw this.IdpProviderException(`${a} function does not exist in custom IDP Provider ${e}`)}),r}if(le.isFunction(ae.getConfigValue("auth.events.onAuthConfigError")))await pi.handleAuthEvent("onAuthConfigError",{idpProviderName:e,type:"IdpProviderException"});else throw this.IdpProviderException(`IDP Provider ${e} does not exist.`)}unload(){this.idpProviderInstance&&le.isFunction(this.idpProviderInstance.unload)&&this.idpProviderInstance.unload()}}const fn=new K2;class j2{constructor(){this.decorators=[]}hasDecorators(){return this.decorators.length>0}add(e){this.decorators=this.decorators.filter(t=>t.uid!==e.uid).concat(e)}applyDecorators(e,t){if(!e)return e;const n=new URL(le.prependOrigin(e)),l=this.decorators.filter(r=>r.type==="queryString");for(let r=0;r<l.length;r++){const a=l[r];n.searchParams.has(a.key)&&n.searchParams.delete(a.key);const o=a.valueFn();n.searchParams.append(a.key,o)}return t&&(n.search=decodeURIComponent(n.search)),n.href}}const Gr=new j2;class J2{getStoredAuthData(){return ui.getAuthData()}isLoggedIn(){const e=this.getStoredAuthData();return e&&(()=>e.accessTokenExpirationDate>Number(new Date))()}parseUrlAuthErrors(){const e=le.getUrlParameter("error"),t=le.getUrlParameter("errorDescription");if(e)return{error:e,errorDescription:t}}async handleUrlAuthErrors(e,t,n){return t?await pi.handleAuthEvent("onAuthError",e,{error:t,errorDescription:n},e.logoutUrl+"?post_logout_redirect_uri="+e.post_logout_redirect_uri+"&error="+t+"&errorDescription="+n):!0}}const fl=new J2;class Y2{sanitizeHtml(e=""){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/javascript:/g,"")}restoreSanitizedBrs(e=""){return e.replace(/&lt;br\/&gt;/g,"<br>").replace(/&lt;br \/&gt;/g,"<br>").replace(/&lt;br&gt;/g,"<br>").replace(/&lt;br &gt;/g,"<br>")}restoreSanitizedElements(e=""){let t=e;const n=["i","b","br","mark","strong","em","small","del","ins","sub","sup"];for(let l=0;l<n.length;l++){const r=new RegExp(`&lt;${n[l]}/&gt;`,"g"),a=new RegExp(`&lt;${n[l]} /&gt;`,"g"),o=new RegExp(`&lt;${n[l]}&gt;`,"g"),c=new RegExp(`&lt;${n[l]} &gt;`,"g"),g=new RegExp(`&lt;/${n[l]}[/]&gt;`,"g"),d=new RegExp(`&lt;/${n[l]} [/]&gt;`,"g"),h=new RegExp(`&lt;[/]${n[l]}&gt;`,"g"),p=new RegExp(`&lt;[/]${n[l]} &gt;`,"g");t=t.replace(r,`<${n[l]}>`).replace(a,`<${n[l]}>`).replace(o,`<${n[l]}>`).replace(c,`<${n[l]}>`).replace(g,`</${n[l]}>`).replace(d,`</${n[l]}>`).replace(h,`</${n[l]}>`).replace(p,`</${n[l]}>`)}return t}sanatizeHtmlExceptTextFormatting(e=""){return this.restoreSanitizedElements(this.sanitizeHtml(e))}sanitizeParam(e=""){return String(e).replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/\//g,"&sol;")}escapeKeyForRegexp(e=""){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}processTextAndLinks(e="",t,n){let r={sanitizedText:this.restoreSanitizedBrs(this.sanitizeHtml(e)),links:[]};return t?Object.entries(t).reduce((a,[o,c])=>{const g=`_luigi_alert_${n}_link_${this.sanitizeParam(o)}`,d=this.restoreSanitizedBrs(this.sanitizeHtml(c.text)),h=`<a id="${g}">${d}</a>`,p=this.escapeKeyForRegexp(o),b=new RegExp(`({${p}})`,"g");return{sanitizedText:a.sanitizedText.replace(b,h),links:a.links.concat({elemId:g,url:c.url?encodeURI(this.sanitizeHtml(c.url)):void 0,dismissKey:c.dismissKey?encodeURI(this.sanitizeHtml(c.dismissKey)):void 0})}},r):r}}const dr=new Y2;class Q2{get specialIframeTypes(){return[{iframeKey:"modalIframe",dataKey:"modalIframeData",iframeConfigKey:"modal"},{iframeKey:"drawerIframe",dataKey:"drawerIframeData",iframeConfigKey:"drawer"},{iframeKey:"splitViewIframe",dataKey:"splitViewIframeData",iframeConfigKey:"splitView"}]}hideElementChildren(e){e.children&&Array.from(e.children).forEach(t=>{t.tagName==="IFRAME"&&(t.style.display="none")})}removeElementChildren(e){[...e.children].forEach(n=>{!n.vg&&n.tagName==="IFRAME"&&e.removeChild(n)})}removeIframe(e,t){Array.from(t.children).forEach(l=>{l===e&&t.removeChild(l)})}isSameDomain(e,t){if(e.iframe){const n=t.get(),l=le.getUrlWithoutHash(n.previousNodeValues.viewUrl),r=le.getUrlWithoutHash(n.viewUrl),a=n.previousNodeValues.viewGroup,o=n.viewGroup;if(l===r&&!a&&!o)return!0}return!1}isSameViewGroup(e,t){if(e.iframe){const n=t.get(),l=le.getUrlWithoutHash(n.previousNodeValues.viewUrl),r=le.getUrlWithoutHash(n.viewUrl),a=this.getLocation(l),o=this.getLocation(r);if(a===o){const c=n.previousNodeValues.viewGroup,g=n.viewGroup;if(c&&g&&c===g)return!0}}return!1}canReuseIframe(e,t){return this.isSameDomain(e,t)||this.isSameViewGroup(e,t)}getLocation(e){const t=document.createElement("a");if(t.href=e,t.origin)return t.origin}urlMatchesTheDomain(e="",t){return this.getLocation(e)===this.getLocation(t)}iframeIsSameDomain(e,t){return this.urlMatchesTheDomain(e,t)}getIframeContainer(){const e=Array.from(document.querySelectorAll(".iframeContainer"));return e.length>0?e[0]:void 0}getMicrofrontendsInDom(){return c2.map(({type:e,selector:t})=>Array.from(document.querySelectorAll(t)).map(n=>({id:n.luigi.id,container:n,active:le.isElementVisible(n),type:e}))).reduce((e,t)=>e.concat(t),[])}getMicrofrontendIframes(){return this.getMicrofrontendsInDom().map(e=>e.container)}getCurrentWebcomponentCtnInDom(){return document.querySelector(".iframeContainer.lui-webComponent")}getCurrentMicrofrontendIframe(){const e=this.getModalIframes(),t=this.getMainIframes().filter(le.isElementVisible),n=this.getCurrentWebcomponentCtnInDom();return e[0]||t[0]||n||null}getIframesWithType(e){return this.getMicrofrontendsInDom().filter(t=>t.type===e).map(t=>t.container)}getMainIframes(){return this.getIframesWithType("main")}getModalIframes(){return this.getIframesWithType("modal")}getVisibleIframes(){return this.getMicrofrontendsInDom().filter(e=>e.active).map(e=>e.container)}sendMessageToIframe(e,t){if(!(e.luigi&&e.luigi.viewUrl&&e._ready))return;const n=this.getLocation(e.luigi.viewUrl);n!==""&&e.contentWindow&&e.contentWindow.postMessage(t,n)}sendMessageToVisibleIframes(e){this.getVisibleIframes().forEach(t=>this.sendMessageToIframe(t,e))}broadcastMessageToAllIframes(e){Ee.getMicrofrontendIframes().forEach(t=>this.sendMessageToIframe(t,e))}createIframe(e,t,n,l,r){const a=["allow-forms","allow-modals","allow-popups","allow-popups-to-escape-sandbox","allow-same-origin","allow-scripts"],o=ae.getConfigValue("settings.customSandboxRules"),c=ae.getConfigValue("settings.allowRules"),g=o?[...new Set([...a,...o])]:a,d=document.createElement("iframe");d.src=Gr.hasDecorators()?Gr.applyDecorators(e,n?n.decodeViewUrl:void 0):e,c&&(c.forEach((p,b)=>{c[b]=p+(p.indexOf(";")!=-1?"":";")}),d.allow=c.join(" ")),d.sandbox=g.join(" "),d.luigi={viewUrl:e,currentNode:n,createdAt:new Date().getTime(),id:le.getRandomId(),pathParams:r?r.pathParams:void 0},t&&(d.vg=t),n&&n.clientPermissions&&(d.luigi.clientPermissions=n.clientPermissions);const h=ae.getConfigValue("settings.iframeCreationInterceptor");if(le.isFunction(h))try{h(d,t,n,l)}catch(p){console.error("Error applying iframe creation interceptor: ",p)}return d}isMessageSource(e,t){return t&&t.contentWindow===e.source}getValidMessageSource(e){const n=[...Ee.getMicrofrontendIframes(),{contentWindow:window,luigi:{viewUrl:window.location.href}}].find(a=>this.isMessageSource(e,a));if(!n||!n.luigi||!n.luigi.viewUrl)return;const l=e.data.msg==="luigi.navigate.ok";if(l&&!n.luigi.nextViewUrl)return;const r=l?n.luigi.nextViewUrl:n.luigi.viewUrl;if(this.iframeIsSameDomain(r,e.origin))return n}getSpecialIframeMessageSource(e,t){return Ee.specialIframeTypes.filter(n=>Ee.isMessageSource(e,t[n.iframeKey]))}disableA11yOfInactiveIframe(e){[...document.querySelectorAll("*")].forEach(n=>{n.getAttribute("oldTab")||n.setAttribute("oldTab",n.getAttribute("tabindex")),n!==e&&n.setAttribute("tabindex","-1")})}enableA11yOfInactiveIframe(){[...document.querySelectorAll("*")].forEach(t=>{const n=t.getAttribute("oldTab");t.getAttribute("oldTab")==="null"&&t.removeAttribute("tabindex"),t.removeAttribute("oldTab"),n&&n!=="null"&&t.setAttribute("tabindex",n)})}disableA11YKeyboardExceptClassName(e){[...document.querySelectorAll("*")].forEach(n=>{const l=!n.closest(e),r=n.getAttribute("tabindex");(r||r===0)&&l&&!n.hasAttribute("oldtab")&&n.setAttribute("oldtab",r),l&&n.setAttribute("tabindex","-1")})}enableA11YKeyboardBackdropExceptClassName(e){[...document.querySelectorAll("*")].forEach(n=>{const l=n.getAttribute("oldtab");!n.closest(e)&&n.removeAttribute("tabindex"),l&&l!=="null"&&(n.setAttribute("tabindex",l),n.removeAttribute("oldtab"))})}applyCoreStateData(e){return{...e,activeFeatureToggleList:Uo.getActiveFeatureToggleList(),currentLocale:yt.getCurrentLocale(),currentTheme:Do.getCurrentTheme()}}}const Ee=new Q2;class Z2{getRandomId(){return(window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]}isFunction(e){return e&&{}.toString.call(e)==="[object Function]"}isAsyncFunction(e){return e&&{}.toString.call(e)==="[object AsyncFunction]"}isPromise(e){return e&&this.isFunction(e.then)}isString(e){return typeof e=="string"||e instanceof String}isIE(){const e=navigator.userAgent;return!!(e.includes("MSIE ")||e.includes("Trident/"))}isObject(e){return!!(e&&typeof e=="object"&&!Array.isArray(e))}isEmptyObject(e){return this.isObject(e)&&Object.keys(e).length===0}deepMerge(e,...t){if(!t.length)return e;const n=t.shift();if(this.isObject(e)&&this.isObject(n))for(const l in n)this.isObject(n[l])?(e[l]||Object.assign(e,{[l]:{}}),this.deepMerge(e[l],n[l])):Object.assign(e,{[l]:n[l]});return this.deepMerge(e,...t)}getUrlWithoutHash(e){if(!e)return!1;const t=e.split("#")[0];return t.startsWith("http")?t:window.location.origin+(t.startsWith("/")?"":"/")+t}hasHash(e){return e&&e.search(/^[#\/].*$/)===0}getPathWithoutHash(e){for(;this.hasHash(e);)e=e.substr(1);return e}getUrlParameter(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");const n=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(window.location.search);return n&&decodeURIComponent(n[1].replace(/\+/g," "))||""}prependOrigin(e){if(!e||e.startsWith("http"))return e;const t=e.startsWith("/");return e.length?window.location.origin+(t?"":"/")+e:window.location.origin}addLeadingSlash(e){return(e.startsWith("/")?"":"/")+e}addTrailingSlash(e){return typeof e!="string"?e:e.replace(/\/?$/,"/")}trimLeadingSlash(e){return this.isString(e)?e.replace(/^\/+/g,""):""}trimTrailingSlash(e){return this.isString(e)?e.replace(/\/+$/,""):""}getTrimmedUrl(e){const t=e.length>0?this.getPathWithoutHash(e):e;return this.trimTrailingSlash(t.split("?")[0])}normalizePath(e){return typeof e!="string"?e:this.addLeadingSlash(this.addTrailingSlash(e))}getConfigValueFromObject(e,t){let n=0,l=e;const r=t.split(".");for(;l&&n<r.length;)l=l[r[n++]];return l}canComponentHandleModal(e){return e&&typeof e.get=="function"}escapeRegExp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}replaceVars(e,t,n,l=!0){let r=e;return t&&(l?r=qr.replace(r,/{([\s\S]+?)}/g,a=>{let o=a.slice(1,-1).trim();return o.indexOf(n)===0&&(o=o.substring(n.length)),qr.get(t,o,a)}):Object.entries(t).forEach(a=>{r=r.replace(new RegExp(this.escapeRegExp(n+a[0]),"g"),encodeURIComponent(a[1]))})),l&&(r=r.replace(new RegExp("\\{"+this.escapeRegExp(n)+"[^\\}]+\\}","g"),"")),r}getInnerHeight(){return Ee.getIframeContainer().clientHeight}getContentAreaHeight(){return this.getInnerHeight()-Ee.getIframeContainer().getBoundingClientRect().top}getShellbarHeight(){return(Hi.getShellbar()||{}).clientHeight||0}computePxFromPercent(e,t){return e/100*t}computePercentFromPx(e,t){return Math.floor(100*t/e)}isElementVisible(e){return window.getComputedStyle(e,null).getPropertyValue("display")!=="none"}removeInternalProperties(e){return e&&Object.keys(e).filter(t=>!t.startsWith("_")).reduce((t,n)=>(t[n]=e[n],t),{})||e}removeProperties(e,t){const n={};if(!t instanceof Array||!t.length)return console.error("[ERROR] removeProperties requires second parameter: array of keys to remove from object."),e;for(const l in e)if(e.hasOwnProperty(l)){const r=t.filter(o=>l.includes(o)).length===0,a=t.filter(o=>o.endsWith("*")).map(o=>o.slice(0,-1)).filter(o=>l.startsWith(o)).length===0;r&&a&&(n[l]=e[l])}return n}semverCompare(e,t){const n=e.split("-")[0].split("."),l=t.split("-")[0].split(".");for(let r=0;r<3;r++){const a=Number(n[r]),o=Number(l[r]);if(a>o)return 1;if(o>a)return-1;if(!isNaN(a)&&isNaN(o))return 1;if(isNaN(a)&&!isNaN(o))return-1}return 0}requestExperimentalFeature(e,t){const n=!!ae.getConfigValue("settings.experimental."+e);return t&&!n&&console.warn("Experimental feature not enabled: ",e),n}createRemotePromise(){let e,t;const n=new Promise(r=>{e=a=>{r(a||!0)},t=()=>{r(!1)}});let l=ae._remotePromises;return l||(l={counter:0,promises:[]},ae._remotePromises=l),n.id=l.counter++,l.promises[n.id]=n,n.doResolve=r=>{delete l.promises[n.id],e(r)},n.doReject=()=>{delete l.promises[n.id],t()},n}getRemotePromise(e){return ae._remotePromises?ae._remotePromises.promises[e]:void 0}isString(e){return typeof e=="string"||e instanceof String}}const le=new Z2;class X2{constructor(){this.EXP_CAT_KEY="luigi.preferences.navigation.expandedCategories",this.COL_NAV_KEY="luigi.preferences.navigation.collapsedNavigation",this.virtualGroupPrefix="___"}getProductSwitcherConfig(){const e=ae.getConfigValue("navigation.productSwitcher");return Object.assign({icon:"grid",label:"My Products"},e)}getProductSwitcherColumnsNumber(){const e=this.getProductSwitcherConfig();if(!e.items)return;let t=e.columns,n;return le.isFunction(e.items)?n=e.items().length:n=e.items.length,t==="auto"?n<=6?e.columns=3:e.columns=4:e.columns===3?3:4}prepareForTests(...e){let t="";return e.forEach(n=>{n&&(t+=(t?"_":"")+encodeURIComponent(n.toLowerCase().split(" ").join("")))}),t}checkVisibleForFeatureToggles(e){if(e&&e.visibleForFeatureToggles){const t=Uo.getActiveFeatureToggleList();for(const n of e.visibleForFeatureToggles)if(n.startsWith("!")){if(t.includes(n.slice(1)))return!1}else if(!t.includes(n))return!1}return!0}isNodeAccessPermitted(e,t,n){if(pi.isAuthorizationEnabled()){const r=fl.isLoggedIn(),a=e.anonymousAccess;if(r&&a==="exclusive"||!r&&a!=="exclusive"&&a!==!0)return!1}if(!this.checkVisibleForFeatureToggles(e))return!1;const l=ae.getConfigValue("navigation.nodeAccessibilityResolver");return typeof l!="function"?!0:l(e,t,n)}applyContext(e,t,n){if(t)for(var l in t)e[l]=t[l];return n&&e.parentNavigationContexts.unshift(n),e}getNodePath(e){return e.parent?this.getNodePath(e.parent)+"/"+e.pathSegment:e.pathSegment}groupNodesBy(e,t,n){const l=ae.getConfigValue("navigation.defaults.category");let r={},a=0,o=0;const c=g=>{g.sort((d,h)=>{const p=d.order||0,b=h.order||0;return p-b})};return e.forEach(g=>{let d,h;const p=g[t];le.isObject(p)?(d=p.id?p.id:p.label,h=Object.assign({},p)):(d=p,n&&!p&&(d=this.virtualGroupPrefix+o),h={label:d,_fromString:!0});let b=r[d];b||(n&&p&&o++,(h.order===void 0||h.order===null||h.order==="")&&(h.order=d?a++:-1),b=[],r[d]=b),b.metaInfo||(b.metaInfo=h),le.isObject(p)&&b.metaInfo._fromString&&(delete b.metaInfo._fromString,b.metaInfo={...b.metaInfo,...p}),le.isObject(p)&&l&&(p.titleExpandButton?b.metaInfo.titleExpandButton=p.titleExpandButton:b.metaInfo.titleExpandButton=l.titleExpandButton,p.titleCollapseButton?b.metaInfo.titleCollapseButton=p.titleCollapseButton:b.metaInfo.titleCollapseButton=l.titleCollapseButton),!b.metaInfo.categoryUid&&d&&(b.metaInfo.categoryUid=g.parent?this.getNodePath(g.parent)+":"+d:d),b.push(g)}),Object.keys(r).forEach(g=>{const d=r[g].metaInfo;d&&d.id&&(r[d.label]=r[d.id],delete r[d.id])}),Object.keys(r).forEach(g=>{c(r[g]),r[g].length===0&&delete r[g]}),r}generateTooltipText(e,t){let n=e.tooltipText;return n===void 0&&(n=ae.getConfigValue("navigation.defaults.tooltipText")),n===void 0?t:n===!1?"":yt.getTranslation(n)}async generateTopNavNodes(e){const t=e[0].topNav===!1?[]:await Mt.getFilteredChildren(e[0]);let n=null,l=0,r=0,a={};const o=[];let c=[];for(const d of t){e.forEach(b=>{!n&&b===d&&(n=d)}),d.hideFromNav||(l++,d.globalNav&&r++);let h;const p=!!d.badgeCounter;if(p&&(h=await d.badgeCounter.count()),d.category){const b=d.category.label||d.category;if(a[b]){if(a[b].icon||(a[b].icon=d.category.icon,a[b].altText=d.category.altText),p&&!a[b].badgeCounter)a[b].badgeCounter={label:"",count:()=>h};else if(p){const m=a[b].badgeCounter.count()+h;a[b].badgeCounter.count=()=>m}}else a[b]={isCat:!0,label:b,icon:d.category.icon,altText:d.category.altText,children:[],badgeCounter:p&&{label:"",count:()=>h}},o.push(a[b]);a[b].children.push(d)}else o.push(d);h&&c.push(h)}for(let d=0;d<o.length;d++)o[d].isCat&&(o[d].visibleChildren=await Mt.getChildren(o[d])||[]);const g={children:o,selectedNode:n,visibleNodeCount:l,globalNavNodeCount:r};if(c.length){const d=c.reduce((h,p)=>h+p);g.totalBadgeNode={badgeCounter:{count:()=>d,label:""}}}return g}getSideNavAccordionMode(e){let t=e&&e.sideNavAccordionMode||e&&e.parent&&e.parent.sideNavAccordionMode;return typeof t<"u"?t:ae.getConfigBooleanValue("navigation.defaults.sideNavAccordionMode")}loadExpandedCategories(){let e=[];const t=localStorage.getItem(this.EXP_CAT_KEY);if(t)try{e=JSON.parse(t)}catch{console.warn("Preference data corrupted, using default")}return e}storeExpandedState(e,t,n=!1){let l=this.loadExpandedCategories(),r=e.split(":")[0];if(t)n&&(l=l.filter(a=>a.indexOf(r+":")===-1)),l.indexOf(e)<0&&l.push(e);else{let a=l.indexOf(e);a>=0&&l.splice(a,1)}return localStorage.setItem(this.EXP_CAT_KEY,JSON.stringify(l)),l}isOpenUIiconName(e){return/^[a-z0-9\-]+$/i.test(e)}renderIconClassName(e){if(!e)return"";let t="sap-icon-";return e.startsWith("businessSuiteInAppSymbols")||e.startsWith("TNT")?t+=e:t+="-"+e,t}handleUnresponsiveClient(e){if(e.errorFn)e.errorFn();else{console.warn("Something went wrong with a client! You will be redirected to another page.");const t=e.redirectPath||"/";lt.navigateTo(t)}}getBurgerTooltipConfig(){const e=ae.getConfigValue("settings.burgerTooltip");if(le.isObject(e)||e===!0){const t=e.navExpanded?yt.getTranslation(e.navExpanded):"Collapse navigation";return[e.navCollapsed?yt.getTranslation(e.navCollapsed):"Expand navigation",t]}}stripNode(e){const t={...e};return delete t.parent,delete t.children,delete t.navHeader,t}async shouldPreventNavigationForPath(e){const{nodeObject:t}=await Mt.extractDataFromPath(e);return!!await Mt.shouldPreventNavigation(t)}getPropertyChainValue(e,t,n){return!t||!e?n:qr.get(e,t,n)}substituteVars(e,t){const l=JSON.stringify(e).replace(/\$\{[a-zA-Z0-9$_.]+\}/g,r=>{const a=r.substr(2,r.length-3);return this.getPropertyChainValue(t,a)||r});return JSON.parse(l)}_fetch(e,t){return fetch(e,t)}processTitleData(e,t){let n=this.getPropertyChainValue(e,t.titlePropertyChain);return n&&(n=n.trim()),n&&t.titleDecorator&&(n=t.titleDecorator.replace("%s",n)),{label:n||t.fallbackTitle,icon:this.getPropertyChainValue(e,t.iconPropertyChain,t.fallbackIcon)}}async fetchNodeTitleData(e,t){return new Promise((n,l)=>{if(!e.titleResolver){l(new Error("No title resolver defined at node"));return}const r={...e.titleResolver};delete r._cache;const a=this.substituteVars(r,t),o=JSON.stringify(a);if(e.titleResolver._cache&&e.titleResolver._cache.key===o){n(e.titleResolver._cache.value);return}const c=a.request;this._fetch(c.url,{method:c.method,headers:c.headers,body:JSON.stringify(c.body)}).then(g=>{g.json().then(d=>{try{const h=this.processTitleData(d,a,e);e.titleResolver._cache={key:o,value:h},n(h)}catch(h){l(h)}})}).catch(g=>{l(g)})}).catch(n=>{qr.reject(n)})}handleNavAnchorClickedWithoutMetaKey(e){return e.ctrlKey||e.metaKey||e.shiftKey?(e.stopPropagation(),!1):(e.preventDefault(),!0)}getNodeLabel(e){let t=yt.getTranslation(e.label);const n=this.findViewGroup(e);if(n){const l=this.getViewGroupSettings(n)||{};let r={...l.customData||{},...l._liveCustomData||{}};t=le.replaceVars(t,r,"viewGroupData.")}return t}getParentNode(e,t){let n=e.parent;return!n&&t.length>0&&t[1]===e&&(n=t[0]),n}getAllViewGroupSettings(){return ae.getConfigValue("navigation.viewGroupSettings")}getViewGroupSettings(e){const t=this.getAllViewGroupSettings();return e&&t&&t[e]?t[e]:{}}findViewGroup(e,t){if(e.viewGroup)return t&&t!==e?e.viewUrl&&t.viewUrl&&Ee.getLocation(e.viewUrl)===Ee.getLocation(t.viewUrl)?e.viewGroup:void 0:e.viewGroup;if(e.parent)return this.findViewGroup(e.parent,t||e)}getTestId(e){return e.testId?e.testId:oe.prepareForTests(e.pathSegment,e.label)}}const oe=new X2;class $2{constructor(){this.defaultContentViewParamPrefix="~",this.defaultQueryParamSeparator="?",this.defaultModalViewParamName="modal"}getLastNodeObject(e){return[...e.navigationPath].pop()||{}}async getDefaultChildNode(e,t){const n=e.navigationPath[e.navigationPath.length-1],l=t?await t(n,e.context):await ls.getConfigValueFromObjectAsync(n,"children",e.context),r=l.find(a=>a.pathSegment===n.defaultChildNode);if(n.defaultChildNode&&r)return n.defaultChildNode;if(l&&l.length){if(e.navigationPath.length===1){const c=l.find(g=>g.pathSegment);return c&&c.pathSegment||console.error("At least one navigation node in the root hierarchy must have a pathSegment.")}const o=l.find(c=>c.pathSegment&&(c.viewUrl||c.compound||c.externalLink&&c.externalLink.url));if(o)return o.pathSegment}return""}parseParams(e){if(!e)return{};const t={},n=e.replace(/\+/g," "),l=n?n.split("&"):null;return l&&l.forEach(r=>{const a=r.split("=");a&&a.length>0&&(t[decodeURIComponent(a[0])]=decodeURIComponent(a[1]))}),t}encodeParams(e){const t=[];for(const n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}getNodeParams(e){const t={},n=this.getContentViewParamPrefix();return e&&Object.entries(e).forEach(l=>{if(l[0].startsWith(n)){const r=l[0].substr(n.length);t[r]=l[1]}}),this.sanitizeParamsMap(t)}applyPathParams(e,t){let n=e;return t&&Object.entries(t).forEach(([l,r])=>{n=n.replace(new RegExp(":"+l,"g"),r)}),n}getContentViewParamPrefix(){let e=ae.getConfigValue("routing.nodeParamPrefix");return e===!1?e="":e||(e=this.defaultContentViewParamPrefix),e}getModalViewParamName(){let e=ae.getConfigValue("routing.modalPathParam");return e||(e=this.defaultModalViewParamName),e}getHashQueryParamSeparator(){return this.defaultQueryParamSeparator}getQueryParam(e){return this.getQueryParams()[e]}getQueryParams(){return ae.getConfigBooleanValue("routing.useHashRouting")?this.getLocationHashQueryParams():this.getLocationSearchQueryParams()}getLocation(){return location}getLocationHashQueryParams(){const e=we.getLocation().hash.indexOf(this.defaultQueryParamSeparator);return e!==-1?we.parseParams(we.getLocation().hash.slice(e+1)):{}}getLocationSearchQueryParams(){return we.getLocation().search?we.parseParams(we.getLocation().search.slice(1)):{}}composeSearchParamsToRoute(e){if(ae.getConfigBooleanValue("routing.useHashRouting")){const n=location.hash.indexOf(this.defaultQueryParamSeparator);return n!==-1?e+location.hash.slice(n):e}return location.search?e+location.search:e}getModalPathFromPath(){return this.getQueryParam(this.getModalViewParamName())}getModalParamsFromPath(){const e=this.getQueryParam(`${this.getModalViewParamName()}Params`);return e&&JSON.parse(e)}addRouteChangeListener(e){const t=ae.getConfigValue("routing.useHashRouting");On.addEventListener("message",n=>{if(n.data.msg==="refreshRoute"&&n.origin===window.origin){const l=t?lt.getHashPath():lt.getModifiedPathname();e(l)}}),On.addEventListener("popstate",n=>{const l=t?lt.getHashPath(location.href):lt.getModifiedPathname();e(l,n.detail)})}buildRoute(e,t,n){return e.parent?this.buildRoute(e.parent,`/${e.parent.pathSegment}${t}`,n):t+(n?"?"+n:"")}getContext(e,t){return t==null?this.getContext(e,e.context||{}):e.parent?{...this.getContext(e.parent),...t}:t}getRouteLink(e,t,n){const l=n||"";if(e.externalLink&&e.externalLink.url){const a=e.externalLink.url,o={context:we.substituteDynamicParamsInObject(this.getContext(e),t),pathParams:t,nodeParams:{}};return this.substituteViewUrl(a,o)}else if(e.link){const a=e.link.startsWith("/")?e.link:lt.buildFromRelativePath(e);return l+a}const r=we.buildRoute(e,`/${e.pathSegment}`);return l+le.replaceVars(r,t,":",!1)}calculateNodeHref(e,t){const n=we.getRouteLink(e,t,ae.getConfigValue("routing.useHashRouting")?"#":"");return this.getI18nViewUrl(n.url)||n}getNodeHref(e,t){if(ae.getConfigBooleanValue("navigation.addNavHrefs"))return this.calculateNodeHref(e,t)}substituteDynamicParamsInObject(e,t,n=":",l=!1){return Object.entries(e).map(([r,a])=>{const o=l?Object.keys(t).find(c=>a&&a.indexOf(n+c)>=0):Object.keys(t).find(c=>a===n+c);return[r,o?l?a.replace(n+o,t[o]):t[o]:a]}).reduce((r,[a,o])=>Object.assign(r,{[a]:o}),{})}mapPathToNode(e,t){if(!e||!t)return;const n=le.trimLeadingSlash(e).split("/"),l=we.buildRoute(t,`/${t.pathSegment}`),r=le.trimLeadingSlash(l).split("/");if(n.length<r.length)return;let a="";for(let o=0;o<r.length;o++){if(n[o]!==r[o]&&r[o].indexOf(":")!==0)return;a+="/"+n[o]}return a}isDynamicNode(e){return e.pathSegment&&e.pathSegment.length>0&&e.pathSegment[0]===":"}getDynamicNodeValue(e,t){return this.isDynamicNode(e)?t[e.pathSegment.substring(1)]:void 0}getI18nViewUrl(e){const t="{i18n.currentLocale}",n=yt.getCurrentLocale();return e&&e.includes(t)?e.replace(t,n):e}substituteViewUrl(e,t){const n="context.",l="nodeParams.",r="routing.queryParams";if(e=le.replaceVars(e,t.pathParams,":",!1),e=le.replaceVars(e,t.context,n),e=le.replaceVars(e,t.nodeParams,l),e=this.getI18nViewUrl(e),e&&e.includes(r)){const a=e.split("?")[1];if(a){const o=a.split("=")[0];ul.getSearchParams()[o]?e=e.replace(`{${r}.${o}}`,ul.getSearchParams()[o]):e=e.replace(`?${o}={${r}.${o}}`,"")}}return e}sanitizeParamsMap(e){return Object.entries(e).reduce((t,n)=>(t[dr.sanitizeParam(n[0])]=dr.sanitizeParam(n[1]),t),{})}setFeatureToggles(e,t){let n;const l=this.sanitizeParamsMap(this.parseParams(t.split("?")[1]));if(l[e]&&(n=l[e]),!n)return;const r=n.split(",");r.length>0&&r[0]!==""&&r.forEach(a=>Uo.setFeatureToggle(a,!0))}getIntentObject(e){const t=e.split("?intent=")[1];if(t){const n=t.split("?"),l=n[0].split("-"),r=Object.fromEntries(new URLSearchParams(n[1]).entries());return{semanticObject:l[0],action:l[1],params:r}}}getIntentPath(e){const t=ae.getConfigValue("navigation.intentMapping");if(t&&t.length>0){const n=e.replace(/\?intent=/i,"?intent="),l=this.getIntentObject(n);if(l){let r=t.find(o=>o.semanticObject===l.semanticObject&&o.action===l.action);if(!r)return!1;if(r.externalLink)return{...r.externalLink,external:!0};r=r.pathSegment;const a=Object.entries(l.params);if(a&&a.length>0){r=this.resolveDynamicIntentPath(r,l.params);let o=ae.getConfigValue("routing.nodeParamPrefix");o=o||"~",r=r.concat(`?${o}`),a.forEach(([c,g],d)=>{r+=`${d>0?"&"+o:""}${c}=${g}`})}return r}else console.warn("Could not parse given intent link.")}else console.warn("No intent mappings are defined in Luigi configuration.");return!1}resolveDynamicIntentPath(e,t){if(!t)return e;let n=e;for(const[l,r]of Object.entries(t)){const a=new RegExp("/:"+l+"(/|$)","g");n=n.replace(a,`/${r}/`)}return n=n.replace(/\/$/,""),n}prepareSearchParamsForClient(e){const t={};return e&&e.clientPermissions&&e.clientPermissions.urlParameters&&Object.keys(e.clientPermissions.urlParameters).forEach(n=>{n in ul.getSearchParams()&&e.clientPermissions.urlParameters[n].read===!0&&(t[n]=ul.getSearchParams()[n])}),t}addSearchParamsFromClient(e,t,n){const l={...t};if(le.isObject(l)&&e&&e.clientPermissions&&e.clientPermissions.urlParameters){const r={};Object.keys(e.clientPermissions.urlParameters).forEach(a=>{a in l&&e.clientPermissions.urlParameters[a].write===!0&&(r[a]=l[a],delete l[a])});for(const a in l)console.warn(`No permission to add the search param "${a}" to the url`);Object.keys(r).length>0&&ul.addSearchParams(r,n)}}hasIntent(e){return!!e&&e.toLowerCase().includes("#?intent=")}getPageNotFoundRedirectResult(e,t=!1){const n=ae.getConfigValue("routing.pageNotFoundHandler");if(typeof n=="function"){const l=n(e,t);if(l&&(l.redirectTo||l.ignoreLuigiErrorHandling))return{path:l.redirectTo,keepURL:l.keepURL,ignoreLuigiErrorHandling:l.ignoreLuigiErrorHandling}}return{}}async handlePageNotFoundAndRetrieveRedirectPath(e,t,n){if(n)return t;const l=this.getPageNotFoundRedirectResult(t).path;if(l!==void 0)return l;this.showRouteNotFoundAlert(e,t),console.warn(`Could not find the requested route: ${t}`)}showRouteNotFoundAlert(e,t,n=!1){const l={text:yt.getTranslation(n?"luigi.notExactTargetNode":"luigi.requestedRouteNotFound",{route:t}),type:"error",ttl:1};e.showAlert(l,!1)}modifySearchParams(e,t,n){for(const[l,r]of Object.entries(e)){const a=n?`${n}${l}`:l;t.set(a,r),r===void 0&&t.delete(a)}}addParamsOnHashRouting(e,t,n){let l=t;const[r,a]=l.split("?"),o=new URLSearchParams(a);return this.modifySearchParams(e,o,n),l=r,o.toString()!==""&&(l+=`?${o.toString()}`),l}getURLWithoutModalData(e,t){let n=new URLSearchParams(e);return n.delete(t),n.delete(`${t}Params`),n.toString()}handleHistoryState(e,t){return e&&e.modalHistoryLength?e.modalHistoryLength+=1:e={modalHistoryLength:1,historygap:history.length,pathBeforeHistory:t},e}}const we=new $2;class x2{optimizeScope(e){let t="";const n=[];return[...e].sort().forEach(l=>{l&&!n.includes(l)&&(!t||l.indexOf(t)!==0)&&(n.push(l),t=l)}),n}expandScope(e){const t=[];return e.forEach(n=>{let l="";n.split(".").forEach(r=>{l=l+(l?".":"")+r,t.push(l)})}),[...new Set(t)]}doOnStoreChange(e,t,n=[]){e.subscribe(t),this.expandScope(n).forEach(l=>{e.subscribeToScope(t,l)})}}const dn=new x2;class ek{constructor(){this.listeners=[],this.hashChangeWithoutSync=!1}addEventListener(e,t){this.listeners.push({type:e,listenerFn:t}),window.addEventListener(e,t)}removeEventListener(e,t){this.listeners=this.listeners.filter(n=>!(n.type===e&&n.listenerFn===t)),window.removeEventListener(e,t)}removeAllEventListeners(){this.listeners.forEach(e=>{window.removeEventListener(e.type,e.listenerFn)}),this.listeners=[]}}const On=new ek;class tk{constructor(){this.init=!1,this.storage=void 0,this.browseSupported=void 0}checkInit(){this.init||(this.storage=window.localStorage,this.browseSupported=this.supportLocalStorage(),this.init=!0)}supportLocalStorage(){try{return"localStorage"in window&&window.localStorage!==null}catch{return!1}}checkStorageBrowserSupport(){if(!this.browseSupported)throw"Browser does not support local storage"}process(e,t,n,l,r){try{this.checkInit(),this.checkStorageBrowserSupport();const a=this[l];if(typeof a!="function")throw l+" is not a supported operation for the storage";const o=a.bind(this,this.cleanHostname(t),r)();this.sendBackOperation(e,n,"OK",o)}catch(a){console.log(a),this.sendBackOperation(e,n,"ERROR",a)}}cleanHostname(e){return e.replace("http://","").replace("https://","")}setItem(e,t){this.checkKey(t);const n=this.stringifyValue(t.value),l=this.buildKey(e,t.key);this.storage.setItem(l,n)}getItem(e,t){this.checkKey(t);const n=this.buildKey(e,t.key),l=this.storage.getItem(n);if(l)return this.parseJsonIfPossible(l)}buildKey(e,t){return this.buildPrefix(e)+t.trim()}buildPrefix(e){return"Luigi#"+e+"#"}removeItem(e,t){this.checkKey(t);const n=this.buildKey(e,t.key),l=this.storage.getItem(n);if(l)return this.storage.removeItem(n),l}clear(e,t){const n=this.buildPrefix(e);Object.keys(this.storage).filter(l=>l.startsWith(n)).forEach(l=>this.storage.removeItem(l))}has(e,t){this.checkKey(t);const n=this.buildKey(e,t.key);return!!this.storage.getItem(n)}getAllKeys(e,t){const n=this.buildPrefix(e);return Object.keys(this.storage).filter(l=>l.startsWith(n)).map(l=>l.substring(n.length))}checkKey(e){if(!e.key||e.key.trim().length===0)throw"Missing key, we cannot execute storage operation"}parseJsonIfPossible(e){try{return JSON.parse(e)}catch{return e}}stringifyValue(e){if(!e)throw"Value is empty";if(typeof e=="string"||e instanceof String)return e;try{return JSON.stringify(e)}catch(t){throw"Value cannot be stringify, error: "+t}}sendBackOperation(e,t,n,l){let r={msg:"storage",data:{id:t,status:n,result:l}};Ee.getMicrofrontendsInDom().filter(a=>a.id===e).map(a=>a.container).map(a=>Ee.sendMessageToIframe(a,r))}}const nk=new tk;class ik{constructor(){}processUserSettingGroups(){const e=[],t=ae.getConfigValue("userSettings.userSettingGroups"),n=ae.getConfigValue("settings.userSettings.userSettingGroups"),l=t||n;if(le.isObject(l)){for(const r in l){let a={};a[r]=l[r],e.push(a)}return e}return e}createIframe(e,t){const n=Ee.createIframe(e,void 0,void 0,"usersettings"),l=document.querySelector(".iframeUserSettingsCtn");return n.setAttribute("userSettingsGroup",t),n.userSettingsGroup=t,l.appendChild(n),n}getUserSettingsIframesInDom(){const e=document.querySelector(".iframeUserSettingsCtn");return e?[...e.children]:[]}hideUserSettingsIframe(){this.getUserSettingsIframesInDom().forEach(e=>{e.style.display="none"})}findActiveCustomUserSettingsIframe(e){let t=document.querySelectorAll("[userSettingsGroup]");for(let n=0;n<t.length;n++)if(t[n].contentWindow===e)return t[n];return null}}const or=new ik;class lk{constructor(){}handleVisibilityGlobalSearch(){if(!document.querySelector(".lui-global-search"))return;const e=document.querySelector(".lui-global-search"),t=e.offsetWidth<=384;e.classList.toggle("lui-global-search-toggle",t)}}const Kf=new lk;function jf(i,e,t){const n=i.slice();return n[9]=e[t],n}function Jf(i){let e,t,n=(i[9].dataSanitized?i[9].settings.text:"")+"",l,r,a,o,c,g;function d(){return i[4](i[9])}return{c(){e=S("div"),t=S("p"),l=W(),r=S("button"),r.innerHTML='<i class="sap-icon sap-icon--decline"></i>',a=W(),f(t,"class","fd-message-strip__text svelte-dkyena"),f(r,"class","fd-button fd-button--transparent fd-button--compact fd-message-strip__close"),f(r,"aria-label","Close"),f(r,"aria-controls","j2ALl423"),f(r,"data-testid","luigi-alert-dismiss"),f(e,"class",o="fd-message-strip fd-message-strip--"+i[1][i[9].settings.type]+" fd-message-strip--dismissible svelte-dkyena"),f(e,"role","alert"),f(e,"id","j2ALl423"),f(e,"data-testid","luigi-alert")},m(h,p){A(h,e,p),w(e,t),t.innerHTML=n,w(e,l),w(e,r),w(e,a),c||(g=te(r,"click",d),c=!0)},p(h,p){i=h,p&1&&n!==(n=(i[9].dataSanitized?i[9].settings.text:"")+"")&&(t.innerHTML=n),p&3&&o!==(o="fd-message-strip fd-message-strip--"+i[1][i[9].settings.type]+" fd-message-strip--dismissible svelte-dkyena")&&f(e,"class",o)},d(h){h&&L(e),c=!1,g()}}}function rk(i){let e,t=i[0],n=[];for(let l=0;l<t.length;l+=1)n[l]=Jf(jf(i,t,l));return{c(){e=S("div");for(let l=0;l<n.length;l+=1)n[l].c();f(e,"class","fd-shell__overlay luigi-alert--overlay svelte-dkyena"),f(e,"aria-hidden","false")},m(l,r){A(l,e,r);for(let a=0;a<n.length;a+=1)n[a].m(e,null);i[5](e)},p(l,[r]){if(r&11){t=l[0];let a;for(a=0;a<t.length;a+=1){const o=jf(l,t,a);n[a]?n[a].p(o,r):(n[a]=Jf(o),n[a].c(),n[a].m(e,null))}for(;a<n.length;a+=1)n[a].d(1);n.length=t.length}},i:We,o:We,d(l){l&&L(e),ht(n,l),i[5](null)}}}function ak(i,e,t){const n=Jt();let{alertQueue:l}=e,{alertTypeMap:r={info:"information",success:"success",warning:"warning",error:"error"}}=e,a;const o=vt("getUnsavedChangesModalPromise"),c=vt("handleNavigation");qn(()=>{if(!l||!l.length){console.warn("There are no alerts to display");return}if(l.processed)return;const p=l.map(b=>{const{text:m,links:v,closeAfter:C}=b.settings,y=dr.processTextAndLinks(m,v,b.settings.id);if(setTimeout(()=>{y.links.forEach(P=>{g(P,b.settings.id)})}),b.settings.afterInit){const P=a;b.settings.afterInit({dismiss:()=>{P&&P.isConnected?n("alertDismiss",{id:b.settings.id}):console.debug("Alert already dismissed: ",P)},element:P})}return{settings:{...b.settings,text:y.sanitizedText},dataSanitized:!0}});p.processed=!0,t(0,l=p)}),$t(()=>{});function g(p,b){try{const m=document.getElementById(p.elemId);m.dismissListener&&m.removeEventListener("click",m.dismissListener);const v=C=>{if(p.url){const y=!p.url.startsWith("/");C.stopPropagation(),o().then(()=>{const P={params:{link:p.url,relative:y}};c(P)},()=>{})}else p.dismissKey&&n("alertDismiss",{id:b,dismissKey:p.dismissKey})};m.addEventListener("click",v),m.dismissListener=v}catch(m){console.error("Error on Alert::addClickListener",m)}}const d=p=>n("alertDismiss",{id:p.settings.id});function h(p){Je[p?"unshift":"push"](()=>{a=p,t(2,a)})}return i.$$set=p=>{"alertQueue"in p&&t(0,l=p.alertQueue),"alertTypeMap"in p&&t(1,r=p.alertTypeMap)},[l,r,a,n,d,h]}class sk extends Vt{constructor(e){super(),Dt(this,e,ak,rk,At,{alertQueue:0,alertTypeMap:1})}}const Fl=38,Wi=40,vi=13,mi=27,Kr=32,ok=36,uk=35;function Yf(i){let e,t;return{c(){e=S("i"),f(e,"class",t=$n(i[3](i[0].icon))+" svelte-lzffuc")},m(n,l){A(n,e,l)},p(n,l){l&1&&t!==(t=$n(n[3](n[0].icon))+" svelte-lzffuc")&&f(e,"class",t)},d(n){n&&L(e)}}}function Qf(i){let e,t,n=i[0].buttonConfirm+"",l,r,a;return{c(){e=S("div"),t=S("button"),l=Le(n),f(t,"data-testid","luigi-modal-confirm"),f(t,"class","fd-button fd-button--emphasized fd-button--compact fd-message-box__decisive-button confirm-button"),f(e,"class","fd-bar__element")},m(o,c){A(o,e,c),w(e,t),w(t,l),r||(a=te(t,"click",i[4]),r=!0)},p(o,c){c&1&&n!==(n=o[0].buttonConfirm+"")&&Ae(l,n)},d(o){o&&L(e),r=!1,a()}}}function fk(i){let e,t,n,l,r,a,o,c=i[0].header+"",g,d,h,p=i[0].body+"",b,m,v,C,y,P,T=i[0].buttonDismiss+"",E,V,I,H,O,D=i[0].type&&Yf(i),q=i[0].buttonConfirm!==!1&&Qf(i);return{c(){e=S("div"),t=S("section"),n=S("header"),l=S("div"),r=S("div"),D&&D.c(),a=W(),o=S("h2"),g=Le(c),d=W(),h=S("div"),b=W(),m=S("footer"),v=S("div"),q&&q.c(),C=W(),y=S("div"),P=S("button"),E=Le(T),f(o,"class","fd-title fd-title--h5"),f(r,"class","fd-bar__element"),f(l,"class","fd-bar__left"),f(n,"class","fd-bar fd-bar--header fd-message-box__header"),f(h,"class","fd-message-box__body svelte-lzffuc"),f(P,"data-testid","luigi-modal-dismiss"),f(P,"class",V="fd-button "+(i[0].buttonConfirm===!1?"fd-button--emphasized":"fd-button--transparent")+" fd-button--compact fd-message-box__decisive-button dismiss-button"),f(y,"class","fd-bar__element"),f(v,"class","fd-bar__right"),f(m,"class","fd-bar fd-bar--footer fd-message-box__footer"),f(t,"class","fd-message-box__content svelte-lzffuc"),f(e,"class",I="fd-message-box-docs-static fd-message-box fd-message-box--"+i[0].type+" fd-message-box--active svelte-lzffuc"),f(e,"data-testid","luigi-confirmation-modal")},m(Z,$){A(Z,e,$),w(e,t),w(t,n),w(n,l),w(l,r),D&&D.m(r,null),w(r,a),w(r,o),w(o,g),w(t,d),w(t,h),h.innerHTML=p,w(t,b),w(t,m),w(m,v),q&&q.m(v,null),w(v,C),w(v,y),w(y,P),w(P,E),H||(O=[te(window,"keydown",i[1]),te(P,"click",i[5])],H=!0)},p(Z,[$]){Z[0].type?D?D.p(Z,$):(D=Yf(Z),D.c(),D.m(r,a)):D&&(D.d(1),D=null),$&1&&c!==(c=Z[0].header+"")&&Ae(g,c),$&1&&p!==(p=Z[0].body+"")&&(h.innerHTML=p),Z[0].buttonConfirm!==!1?q?q.p(Z,$):(q=Qf(Z),q.c(),q.m(v,C)):q&&(q.d(1),q=null),$&1&&T!==(T=Z[0].buttonDismiss+"")&&Ae(E,T),$&1&&V!==(V="fd-button "+(Z[0].buttonConfirm===!1?"fd-button--emphasized":"fd-button--transparent")+" fd-button--compact fd-message-box__decisive-button dismiss-button")&&f(P,"class",V),$&1&&I!==(I="fd-message-box-docs-static fd-message-box fd-message-box--"+Z[0].type+" fd-message-box--active svelte-lzffuc")&&f(e,"class",I)},i:We,o:We,d(Z){Z&&L(e),D&&D.d(),q&&q.d(),H=!1,Ye(O)}}}function ck(i,e,t){const n=Jt();let{settings:l}=e;const r={confirmation:"question-mark",information:"message-information",warning:"message-warning",error:"message-error",success:"message-success"};Jr(()=>{Ee.enableA11YKeyboardBackdropExceptClassName(".fd-message-box-docs-static")}),$t(()=>{const d={icon:r[l.type],header:yt.getTranslation("luigi.confirmationModal.header"),body:yt.getTranslation("luigi.confirmationModal.body"),buttonDismiss:yt.getTranslation("luigi.button.dismiss"),buttonConfirm:yt.getTranslation("luigi.button.confirm")};t(0,l={...l,body:dr.sanatizeHtmlExceptTextFormatting(l.body)}),t(0,l=Object.assign(d,l)),Ee.disableA11YKeyboardExceptClassName(".fd-message-box-docs-static");const h=l.buttonConfirm?"confirm-button":"dismiss-button";try{document.querySelector(`.${h}`).focus()}catch{console.warn(`Couldn't focus ${h} in modal`)}});function a(d){return oe.renderIconClassName(d)}function o(d){d.keyCode===mi&&n("modalDismiss")}const c=()=>n("modalConfirm"),g=()=>n("modalDismiss");return i.$$set=d=>{"settings"in d&&t(0,l=d.settings)},[l,o,n,a,c,g]}class dk extends Vt{constructor(e){super(),Dt(this,e,ck,fk,At,{settings:0,handleKeydown:1})}get handleKeydown(){return this.$$.ctx[1]}}function hk(i){let e,t,n;const l=i[5].default,r=U_(l,i,i[4],null);return{c(){e=S("div"),r&&r.c(),f(e,"class",t=i[0]+" "+(i[1]==="main"?"zIndexZero":"")+" svelte-az6f9h"),f(e,"aria-hidden","false")},m(a,o){A(a,e,o),r&&r.m(e,null),n=!0},p(a,[o]){r&&r.p&&(!n||o&16)&&W_(r,l,a,a[4],n?H_(l,a[4],o,null):z_(a[4]),null),(!n||o&3&&t!==(t=a[0]+" "+(a[1]==="main"?"zIndexZero":"")+" svelte-az6f9h"))&&f(e,"class",t)},i(a){n||(R(r,a),n=!0)},o(a){U(r,a),n=!1},d(a){a&&L(e),r&&r.d(a)}}}function gk(i,e,t){let{$$slots:n={},$$scope:l}=e;const r=Jt();let{backdropClass:a=""}=e,{backdropActive:o=!1}=e,c=!1,g={},{area:d}=e,{disable:h}=e;const p=()=>{const m="lui-backdrop ";o?g.data&&g.data.heightCssClass?t(0,a=m+g.data.heightCssClass):t(0,a=m+"height-auto"):t(0,a="")},b=m=>{if(!d)return!0;const C=[...Ee.getMicrofrontendsInDom(),{contentWindow:window,luigi:{viewUrl:window.location.href}}].find(y=>y.container&&y.container.contentWindow===m.source);return!(C&&d===C.type)};return $t(()=>{ae.getConfigValue("settings.backdropDisabled")||(p(),On.addEventListener("message",v=>{const C=Ee.getValidMessageSource(v);C&&h!==!0&&(v.data.msg==="luigi.add-backdrop"&&(t(2,o=b(v)),r("stateChanged",{backdropActive:!0}),Ee.disableA11yOfInactiveIframe(C)),v.data.msg==="luigi.remove-backdrop"&&(t(2,o=!1),r("stateChanged",{backdropActive:!1}),c&&Ee.enableA11yOfInactiveIframe()))}))}),qn(()=>{o!==c&&(c=o,p())}),i.$$set=m=>{"backdropClass"in m&&t(0,a=m.backdropClass),"backdropActive"in m&&t(2,o=m.backdropActive),"area"in m&&t(1,d=m.area),"disable"in m&&t(3,h=m.disable),"$$scope"in m&&t(4,l=m.$$scope)},[a,d,o,h,l,n]}class Ul extends Vt{constructor(e){super(),Dt(this,e,gk,hk,At,{backdropClass:0,backdropActive:2,area:1,disable:3})}}function Zf(i){let e,t,n,l,r,a,o,c,g,d,h,p,b,m;t=new Ul({props:{disable:i[2]}});let v=i[0].title&&Xf(i);return{c(){e=S("div"),Ue(t.$$.fragment),n=W(),l=S("div"),r=S("div"),v&&v.c(),a=W(),o=S("div"),c=S("div"),g=S("button"),d=S("i"),f(r,"class","fd-bar__element"),f(l,"class","fd-bar__left"),f(d,"class","sap-icon sap-icon--decline"),f(g,"class","fd-button fd-button--transparent fd-button--compact"),f(g,"aria-label","close"),f(g,"data-testid",h=i[0].closebtn_data_testid&&i[5]?i[0].closebtn_data_testid:"lui-modal-index-"+i[1]),f(c,"class","fd-bar__element"),f(o,"class","fd-bar__right"),f(e,"class","lui-modal-header fd-dialog__header fd-bar fd-bar--header svelte-1rzu3xo")},m(C,y){A(C,e,y),Me(t,e,null),w(e,n),w(e,l),w(l,r),v&&v.m(r,null),w(e,a),w(e,o),w(o,c),w(c,g),w(g,d),p=!0,b||(m=te(g,"click",i[11]),b=!0)},p(C,y){const P={};y&4&&(P.disable=C[2]),t.$set(P),C[0].title?v?v.p(C,y):(v=Xf(C),v.c(),v.m(r,null)):v&&(v.d(1),v=null),(!p||y&35&&h!==(h=C[0].closebtn_data_testid&&C[5]?C[0].closebtn_data_testid:"lui-modal-index-"+C[1]))&&f(g,"data-testid",h)},i(C){p||(R(t.$$.fragment,C),p=!0)},o(C){U(t.$$.fragment,C),p=!1},d(C){C&&L(e),Fe(t),v&&v.d(),b=!1,m()}}}function Xf(i){let e,t=i[0].title+"",n;return{c(){e=S("h2"),n=Le(t),f(e,"class","fd-title fd-title--h5"),f(e,"id","dialog-title-1")},m(l,r){A(l,e,r),w(e,n)},p(l,r){r&1&&t!==(t=l[0].title+"")&&Ae(n,t)},d(l){l&&L(e)}}}function $f(i){let e;const t=i[10].default,n=U_(t,i,i[9],null);return{c(){n&&n.c()},m(l,r){n&&n.m(l,r),e=!0},p(l,r){n&&n.p&&(!e||r&512)&&W_(n,t,l,l[9],e?H_(t,l[9],r,null):z_(l[9]),null)},i(l){e||(R(n,l),e=!0)},o(l){U(n,l),e=!1},d(l){n&&n.d(l)}}}function xf(i){let e;return{c(){e=S("div"),e.innerHTML=`<div class="fd-busy-indicator fd-busy-indicator--m" aria-hidden="false" aria-label="Loading" data-testid="luigi-loading-spinner"><div class="fd-busy-indicator__circle"></div>
52
+ }`;var ot=Ff(function(){return Nt(F,Ge+"return "+Pe).apply(t,z)});if(ot.source=Pe,po(ot))throw ot;return ot}function tw(s){return Tt(s).toLowerCase()}function nw(s){return Tt(s).toUpperCase()}function iw(s,u,_){if(s=Tt(s),s&&(_||u===t))return Ko(s);if(!s||!(u=Un(u)))return s;var k=li(s),N=li(u),F=jo(k,N),z=Jo(k,N)+1;return al(k,F,z).join("")}function lw(s,u,_){if(s=Tt(s),s&&(_||u===t))return s.slice(0,Qo(s)+1);if(!s||!(u=Un(u)))return s;var k=li(s),N=Jo(k,li(u))+1;return al(k,0,N).join("")}function rw(s,u,_){if(s=Tt(s),s&&(_||u===t))return s.replace(ut,"");if(!s||!(u=Un(u)))return s;var k=li(s),N=jo(k,li(u));return al(k,N).join("")}function aw(s,u){var _=q,k=Z;if(Kt(u)){var N="separator"in u?u.separator:N;_="length"in u?st(u.length):_,k="omission"in u?Un(u.omission):k}s=Tt(s);var F=s.length;if(Yl(s)){var z=li(s);F=z.length}if(_>=F)return s;var j=_-Ql(k);if(j<1)return k;var ee=z?al(z,0,j).join(""):s.slice(0,j);if(N===t)return ee+k;if(z&&(j+=ee.length-j),mo(N)){if(s.slice(j).search(N)){var me,be=ee;for(N.global||(N=Rs(N.source,Tt(Ki.exec(N))+"g")),N.lastIndex=0;me=N.exec(be);)var Pe=me.index;ee=ee.slice(0,Pe===t?j:Pe)}}else if(s.indexOf(Un(N),j)!=j){var Ve=ee.lastIndexOf(N);Ve>-1&&(ee=ee.slice(0,Ve))}return ee+k}function sw(s){return s=Tt(s),s&&qi.test(s)?s.replace(Ii,Mp):s}var ow=nr(function(s,u,_){return s+(_?" ":"")+u.toUpperCase()}),wo=Fu("toUpperCase");function Mf(s,u,_){return s=Tt(s),u=_?t:u,u===t?Ep(s)?Bp(s):Sp(s):s.match(u)||[]}var Ff=ft(function(s,u){try{return nn(s,t,u)}catch(_){return po(_)?_:new et(_)}}),uw=Vi(function(s,u){return Gt(u,function(_){_=gi(_),Ri(s,_,go(s[_],s))}),s});function fw(s){var u=s==null?0:s.length,_=je();return s=u?zt(s,function(k){if(typeof k[1]!="function")throw new Kn(a);return[_(k[0]),k[1]]}):[],ft(function(k){for(var N=-1;++N<u;){var F=s[N];if(nn(F[0],this,k))return nn(F[1],this,k)}})}function cw(s){return Mm(Jn(s,h))}function ko(s){return function(){return s}}function dw(s,u){return s==null||s!==s?u:s}var hw=Bu(),gw=Bu(!0);function Dn(s){return s}function So(s){return _u(typeof s=="function"?s:Jn(s,h))}function _w(s){return mu(Jn(s,h))}function pw(s,u){return bu(s,Jn(u,h))}var mw=ft(function(s,u){return function(_){return Rr(_,s,u)}}),bw=ft(function(s,u){return function(_){return Rr(s,_,u)}});function Co(s,u,_){var k=un(u),N=Ea(u,k);_==null&&!(Kt(u)&&(N.length||!k.length))&&(_=u,u=s,s=this,N=Ea(u,un(u)));var F=!(Kt(_)&&"chain"in _)||!!_.chain,z=Mi(s);return Gt(N,function(j){var ee=u[j];s[j]=ee,z&&(s.prototype[j]=function(){var me=this.__chain__;if(F||me){var be=s(this.__wrapped__),Pe=be.__actions__=An(this.__actions__);return Pe.push({func:ee,args:arguments,thisArg:s}),be.__chain__=me,be}return ee.apply(s,el([this.value()],arguments))})}),s}function vw(){return xe._===this&&(xe._=Kp),this}function yo(){}function ww(s){return s=st(s),ft(function(u){return vu(u,s)})}var kw=eo(zt),Sw=eo(Ho),Cw=eo(Ps);function Uf(s){return so(s)?Ns(gi(s)):xm(s)}function yw(s){return function(u){return s==null?t:El(s,u)}}var Pw=Wu(),Nw=Wu(!0);function Po(){return[]}function No(){return!1}function Tw(){return{}}function Iw(){return""}function Lw(){return!0}function Aw(s,u){if(s=st(s),s<1||s>ge)return[];var _=ve,k=mn(s,ve);u=je(u),s-=ve;for(var N=Ls(k,u);++_<s;)u(_);return N}function Ew(s){return it(s)?zt(s,gi):Bn(s)?[s]:An(lf(Tt(s)))}function Rw(s){var u=++qp;return Tt(s)+u}var Dw=Fa(function(s,u){return s+u},0),Vw=to("ceil"),Ow=Fa(function(s,u){return s/u},1),Mw=to("floor");function Fw(s){return s&&s.length?Aa(s,Dn,Hs):t}function Uw(s,u){return s&&s.length?Aa(s,je(u,2),Hs):t}function Bw(s){return qo(s,Dn)}function Hw(s,u){return qo(s,je(u,2))}function Ww(s){return s&&s.length?Aa(s,Dn,Gs):t}function zw(s,u){return s&&s.length?Aa(s,je(u,2),Gs):t}var qw=Fa(function(s,u){return s*u},1),Gw=to("round"),Kw=Fa(function(s,u){return s-u},0);function jw(s){return s&&s.length?Is(s,Dn):0}function Jw(s,u){return s&&s.length?Is(s,je(u,2)):0}return M.after=_v,M.ary=_f,M.assign=n0,M.assignIn=Lf,M.assignInWith=Za,M.assignWith=i0,M.at=l0,M.before=pf,M.bind=go,M.bindAll=uw,M.bindKey=mf,M.castArray=Tv,M.chain=df,M.chunk=M1,M.compact=F1,M.concat=U1,M.cond=fw,M.conforms=cw,M.constant=ko,M.countBy=jb,M.create=r0,M.curry=bf,M.curryRight=vf,M.debounce=wf,M.defaults=a0,M.defaultsDeep=s0,M.defer=pv,M.delay=mv,M.difference=B1,M.differenceBy=H1,M.differenceWith=W1,M.drop=z1,M.dropRight=q1,M.dropRightWhile=G1,M.dropWhile=K1,M.fill=j1,M.filter=Yb,M.flatMap=Xb,M.flatMapDeep=$b,M.flatMapDepth=xb,M.flatten=of,M.flattenDeep=J1,M.flattenDepth=Y1,M.flip=bv,M.flow=hw,M.flowRight=gw,M.fromPairs=Q1,M.functions=g0,M.functionsIn=_0,M.groupBy=ev,M.initial=X1,M.intersection=$1,M.intersectionBy=x1,M.intersectionWith=eb,M.invert=m0,M.invertBy=b0,M.invokeMap=nv,M.iteratee=So,M.keyBy=iv,M.keys=un,M.keysIn=Rn,M.map=Ga,M.mapKeys=w0,M.mapValues=k0,M.matches=_w,M.matchesProperty=pw,M.memoize=ja,M.merge=S0,M.mergeWith=Af,M.method=mw,M.methodOf=bw,M.mixin=Co,M.negate=Ja,M.nthArg=ww,M.omit=C0,M.omitBy=y0,M.once=vv,M.orderBy=lv,M.over=kw,M.overArgs=wv,M.overEvery=Sw,M.overSome=Cw,M.partial=_o,M.partialRight=kf,M.partition=rv,M.pick=P0,M.pickBy=Ef,M.property=Uf,M.propertyOf=yw,M.pull=lb,M.pullAll=ff,M.pullAllBy=rb,M.pullAllWith=ab,M.pullAt=sb,M.range=Pw,M.rangeRight=Nw,M.rearg=kv,M.reject=ov,M.remove=ob,M.rest=Sv,M.reverse=co,M.sampleSize=fv,M.set=T0,M.setWith=I0,M.shuffle=cv,M.slice=ub,M.sortBy=gv,M.sortedUniq=pb,M.sortedUniqBy=mb,M.split=X0,M.spread=Cv,M.tail=bb,M.take=vb,M.takeRight=wb,M.takeRightWhile=kb,M.takeWhile=Sb,M.tap=Fb,M.throttle=yv,M.thru=qa,M.toArray=Nf,M.toPairs=Rf,M.toPairsIn=Df,M.toPath=Ew,M.toPlainObject=If,M.transform=L0,M.unary=Pv,M.union=Cb,M.unionBy=yb,M.unionWith=Pb,M.uniq=Nb,M.uniqBy=Tb,M.uniqWith=Ib,M.unset=A0,M.unzip=ho,M.unzipWith=cf,M.update=E0,M.updateWith=R0,M.values=rr,M.valuesIn=D0,M.without=Lb,M.words=Mf,M.wrap=Nv,M.xor=Ab,M.xorBy=Eb,M.xorWith=Rb,M.zip=Db,M.zipObject=Vb,M.zipObjectDeep=Ob,M.zipWith=Mb,M.entries=Rf,M.entriesIn=Df,M.extend=Lf,M.extendWith=Za,Co(M,M),M.add=Dw,M.attempt=Ff,M.camelCase=F0,M.capitalize=Vf,M.ceil=Vw,M.clamp=V0,M.clone=Iv,M.cloneDeep=Av,M.cloneDeepWith=Ev,M.cloneWith=Lv,M.conformsTo=Rv,M.deburr=Of,M.defaultTo=dw,M.divide=Ow,M.endsWith=U0,M.eq=ai,M.escape=B0,M.escapeRegExp=H0,M.every=Jb,M.find=Qb,M.findIndex=af,M.findKey=o0,M.findLast=Zb,M.findLastIndex=sf,M.findLastKey=u0,M.floor=Mw,M.forEach=hf,M.forEachRight=gf,M.forIn=f0,M.forInRight=c0,M.forOwn=d0,M.forOwnRight=h0,M.get=bo,M.gt=Dv,M.gte=Vv,M.has=p0,M.hasIn=vo,M.head=uf,M.identity=Dn,M.includes=tv,M.indexOf=Z1,M.inRange=O0,M.invoke=v0,M.isArguments=Vl,M.isArray=it,M.isArrayBuffer=Ov,M.isArrayLike=En,M.isArrayLikeObject=Zt,M.isBoolean=Mv,M.isBuffer=sl,M.isDate=Fv,M.isElement=Uv,M.isEmpty=Bv,M.isEqual=Hv,M.isEqualWith=Wv,M.isError=po,M.isFinite=zv,M.isFunction=Mi,M.isInteger=Sf,M.isLength=Ya,M.isMap=Cf,M.isMatch=qv,M.isMatchWith=Gv,M.isNaN=Kv,M.isNative=jv,M.isNil=Yv,M.isNull=Jv,M.isNumber=yf,M.isObject=Kt,M.isObjectLike=Qt,M.isPlainObject=Ur,M.isRegExp=mo,M.isSafeInteger=Qv,M.isSet=Pf,M.isString=Qa,M.isSymbol=Bn,M.isTypedArray=lr,M.isUndefined=Zv,M.isWeakMap=Xv,M.isWeakSet=$v,M.join=tb,M.kebabCase=W0,M.last=Qn,M.lastIndexOf=nb,M.lowerCase=z0,M.lowerFirst=q0,M.lt=xv,M.lte=e0,M.max=Fw,M.maxBy=Uw,M.mean=Bw,M.meanBy=Hw,M.min=Ww,M.minBy=zw,M.stubArray=Po,M.stubFalse=No,M.stubObject=Tw,M.stubString=Iw,M.stubTrue=Lw,M.multiply=qw,M.nth=ib,M.noConflict=vw,M.noop=yo,M.now=Ka,M.pad=G0,M.padEnd=K0,M.padStart=j0,M.parseInt=J0,M.random=M0,M.reduce=av,M.reduceRight=sv,M.repeat=Y0,M.replace=Q0,M.result=N0,M.round=Gw,M.runInContext=X,M.sample=uv,M.size=dv,M.snakeCase=Z0,M.some=hv,M.sortedIndex=fb,M.sortedIndexBy=cb,M.sortedIndexOf=db,M.sortedLastIndex=hb,M.sortedLastIndexBy=gb,M.sortedLastIndexOf=_b,M.startCase=$0,M.startsWith=x0,M.subtract=Kw,M.sum=jw,M.sumBy=Jw,M.template=ew,M.times=Aw,M.toFinite=Fi,M.toInteger=st,M.toLength=Tf,M.toLower=tw,M.toNumber=Zn,M.toSafeInteger=t0,M.toString=Tt,M.toUpper=nw,M.trim=iw,M.trimEnd=lw,M.trimStart=rw,M.truncate=aw,M.unescape=sw,M.uniqueId=Rw,M.upperCase=ow,M.upperFirst=wo,M.each=hf,M.eachRight=gf,M.first=uf,Co(M,function(){var s={};return di(M,function(u,_){It.call(M.prototype,_)||(s[_]=u)}),s}(),{chain:!1}),M.VERSION=n,Gt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(s){M[s].placeholder=M}),Gt(["drop","take"],function(s,u){_t.prototype[s]=function(_){_=_===t?1:rn(st(_),0);var k=this.__filtered__&&!u?new _t(this):this.clone();return k.__filtered__?k.__takeCount__=mn(_,k.__takeCount__):k.__views__.push({size:mn(_,ve),type:s+(k.__dir__<0?"Right":"")}),k},_t.prototype[s+"Right"]=function(_){return this.reverse()[s](_).reverse()}}),Gt(["filter","map","takeWhile"],function(s,u){var _=u+1,k=_==x||_==K;_t.prototype[s]=function(N){var F=this.clone();return F.__iteratees__.push({iteratee:je(N,3),type:_}),F.__filtered__=F.__filtered__||k,F}}),Gt(["head","last"],function(s,u){var _="take"+(u?"Right":"");_t.prototype[s]=function(){return this[_](1).value()[0]}}),Gt(["initial","tail"],function(s,u){var _="drop"+(u?"":"Right");_t.prototype[s]=function(){return this.__filtered__?new _t(this):this[_](1)}}),_t.prototype.compact=function(){return this.filter(Dn)},_t.prototype.find=function(s){return this.filter(s).head()},_t.prototype.findLast=function(s){return this.reverse().find(s)},_t.prototype.invokeMap=ft(function(s,u){return typeof s=="function"?new _t(this):this.map(function(_){return Rr(_,s,u)})}),_t.prototype.reject=function(s){return this.filter(Ja(je(s)))},_t.prototype.slice=function(s,u){s=st(s);var _=this;return _.__filtered__&&(s>0||u<0)?new _t(_):(s<0?_=_.takeRight(-s):s&&(_=_.drop(s)),u!==t&&(u=st(u),_=u<0?_.dropRight(-u):_.take(u-s)),_)},_t.prototype.takeRightWhile=function(s){return this.reverse().takeWhile(s).reverse()},_t.prototype.toArray=function(){return this.take(ve)},di(_t.prototype,function(s,u){var _=/^(?:filter|find|map|reject)|While$/.test(u),k=/^(?:head|last)$/.test(u),N=M[k?"take"+(u=="last"?"Right":""):u],F=k||/^find/.test(u);N&&(M.prototype[u]=function(){var z=this.__wrapped__,j=k?[1]:arguments,ee=z instanceof _t,me=j[0],be=ee||it(z),Pe=function(gt){var pt=N.apply(M,el([gt],j));return k&&Ve?pt[0]:pt};be&&_&&typeof me=="function"&&me.length!=1&&(ee=be=!1);var Ve=this.__chain__,Ge=!!this.__actions__.length,Qe=F&&!Ve,ot=ee&&!Ge;if(!F&&be){z=ot?z:new _t(this);var Ze=s.apply(z,j);return Ze.__actions__.push({func:qa,args:[Pe],thisArg:t}),new jn(Ze,Ve)}return Qe&&ot?s.apply(this,j):(Ze=this.thru(Pe),Qe?k?Ze.value()[0]:Ze.value():Ze)})}),Gt(["pop","push","shift","sort","splice","unshift"],function(s){var u=_a[s],_=/^(?:push|sort|unshift)$/.test(s)?"tap":"thru",k=/^(?:pop|shift)$/.test(s);M.prototype[s]=function(){var N=arguments;if(k&&!this.__chain__){var F=this.value();return u.apply(it(F)?F:[],N)}return this[_](function(z){return u.apply(it(z)?z:[],N)})}}),di(_t.prototype,function(s,u){var _=M[u];if(_){var k=_.name+"";It.call(xl,k)||(xl[k]=[]),xl[k].push({name:u,func:_})}}),xl[Ma(t,y).name]=[{name:"wrapper",func:t}],_t.prototype.clone=sm,_t.prototype.reverse=om,_t.prototype.value=um,M.prototype.at=Ub,M.prototype.chain=Bb,M.prototype.commit=Hb,M.prototype.next=Wb,M.prototype.plant=qb,M.prototype.reverse=Gb,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=Kb,M.prototype.first=M.prototype.head,Pr&&(M.prototype[Pr]=zb),M},Zl=Hp();Wt?((Wt.exports=Zl)._=Zl,Lt._=Zl):xe._=Zl}).call(Hr)})(ss,ss.exports);var qr=ss.exports;class H2{getNodePath(e,t){return e?we.buildRoute(e,e.pathSegment?"/"+e.pathSegment:"",t):""}normalizePath(e){const t=e.indexOf("/")===0;let n=new URL(e,"http://valid.url");const l=n.pathname+n.search+n.hash;return!t&&l.indexOf("/")===0?l.substr(1):l}concatenatePath(e,t){let n=le.getPathWithoutHash(e);return n?(t&&(n.endsWith("/")&&(n=n.substring(0,n.length-1)),t.startsWith("/")||(n+="/"),n+=t),n):t}async navigateTo(e,t={}){const{nodeObject:n}=await Mt.extractDataFromPath(e),{keepBrowserHistory:l=!0,navSync:r=!0,preventContextUpdate:a=!1}=t;if(await Mt.shouldPreventNavigation(n)||le.trimLeadingSlash(this.getWindowPath())===le.trimLeadingSlash(e))return;const c=ae.getConfigValue("routing.useHashRouting"),g=ae.getConfigValue("routing.preserveQueryParams");let d=new URL(location.href);e=g?we.composeSearchParamsToRoute(e):e,c&&(d.hash=e);const h=l?"pushState":"replaceState",p=ae.getConfigValue("routing.disableBrowserHistory")?"replaceState":h;window.history[p]({path:c?d.hash:e},"",c?d.hash:e);const b={detail:{preventContextUpdate:a,withoutSync:!r}},m=new CustomEvent("popstate",b);window.dispatchEvent(m)}getWindowPath(){return ae.getConfigValue("routing.useHashRouting")?le.getPathWithoutHash(window.location.hash):window.location.pathname+window.location.search}buildFromRelativePath(e){let t=this.getWindowPath();if(e.parent&&e.parent.pathSegment){const n=le.trimLeadingSlash(this.getNodePath(e.parent)).split("/"),l=le.trimLeadingSlash(t).split("/");l.length>n.length&&(t=l.slice(0,n.length).join("/"))}return this.normalizePath(le.addLeadingSlash(this.concatenatePath(t,e.link)))}getHashPath(e=window.location.hash){if(e&&/\?intent=/i.test(e)){const t=e.replace("#/#","#"),n=we.getIntentPath(t.split("#")[1]);if(n)return n}return e.split("#/")[1]}getModifiedPathname(){if(window.location.hash&&/\?intent=/i.test(window.location.hash)){const n=window.location.hash.replace("#/#","").replace("#",""),l=we.getIntentPath(n);return l||"/"}const e=window.location.search?window.location.search:"";return(window.history.state&&window.history.state.path||window.location.pathname+e).split("/").slice(1).join("/")}getCurrentPath(){if(/\?intent=/i.test(window.location.hash)){const e=window.location.hash.replace("#/#","").replace("#",""),t=we.getIntentPath(e);if(t)return Luigi.getConfigValue("routing.replaceIntentRoute")&&history.replaceState(window.state,"",t),t}return ae.getConfigValue("routing.useHashRouting")?window.location.hash.replace("#",""):window.location.search?le.trimLeadingSlash(window.location.pathname)+window.location.search:le.trimLeadingSlash(window.location.pathname)}setFeatureToggle(e){const t=ae.getConfigValue("settings.featureToggles.queryStringParam");t&&typeof e=="string"&&we.setFeatureToggles(t,e)}shouldSkipRoutingForUrlPatterns(){const e=[/access_token=/,/id_token=/];return(ae.getConfigValue("routing.skipRoutingForUrlPatterns")||e).filter(n=>location.href.match(n)).length!==0}handleUnsavedChangesModal(e,t,n,l){const r=window.location.href,a=t.get().unsavedChanges.persistUrl;return a&&history.pushState(window.state,"",a),t.getUnsavedChangesModalPromise().then(()=>{this.resolveUnsavedChanges(e,t,n,l,r)},()=>{})}resolveUnsavedChanges(e,t,n,l,r){e&&(this.handleRouteChange(e,t,n,l),history.replaceState(window.state,"",r))}async shouldShowModalPathInUrl(){ae.getConfigValue("routing.showModalPathInUrl")&&await this.handleBookmarkableModalPath()}async handleViewUrlMisconfigured(e,t,n,l,r){const{children:a,intendToHaveEmptyViewUrl:o,compound:c}=e,g=a&&Array.isArray(a)&&a.length>0||a||!1;if(!c&&t.trim()===""&&!g&&!o){if(console.warn("The intended target route can't be accessed since it has neither a viewUrl nor children. This is most likely a misconfiguration."),!(n&&(n.viewUrl||n.currentNode&&n.currentNode.compound))){const d=await Mt.getNavigationPath(ae.getConfigValueAsync("navigation.nodes"),"/"),h=await we.getDefaultChildNode(d);this.showPageNotFoundError(r,h,l),this.navigateTo(h)}return!0}return!1}async handlePageNotFound(e,t,n,l,r,a,o){if(!t&&!e.compound||e.tabNav&&e.tabNav.showAsTabHeader){const c=await we.getDefaultChildNode(n,async(g,d)=>await Mt.getChildren(g,d));if(n.isExistingRoute){const g=le.getTrimmedUrl(l);return this.navigateTo(`${g?`/${g}`:""}/${c}`,{keepBrowserHistory:!1}),!1}else{if(c&&n.navigationPath.length>1)return this.showPageNotFoundError(r,le.trimTrailingSlash(n.matchedPath)+"/"+c,a,!0),!0;const g=await Mt.getNavigationPath(ae.getConfigValueAsync("navigation.nodes"),"/"),d=await we.getDefaultChildNode(g);this.showPageNotFoundError(r,d,a,!1,o)}return!0}return n.isExistingRoute?!1:(this.showPageNotFoundError(r,n.matchedPath,a,!0),!0)}async handleRouteChange(e,t,n,l,r,a=!1){const o=e||"";if(o.external){this.navigateToExternalLink({url:o.url,sameWindow:!o.openInNewTab});return}if(this.setFeatureToggle(o),!this.shouldSkipRoutingForUrlPatterns()){if(window.Luigi.preventLoadingModalData){window.Luigi.preventLoadingModalData=!1;return}try{if(t.shouldShowUnsavedChangesModal()){await this.handleUnsavedChangesModal(o,t,n,l);return}await this.shouldShowModalPathInUrl();const c=t.get();this.checkInvalidateCache(c,o);const g=o&&o.length?le.getPathWithoutHash(o):"",{nodeObject:d,pathData:h}=await Mt.extractDataFromPath(o),p=d.viewUrl||"";if(await this.handleViewUrlMisconfigured(d,p,c,g,t)||await this.handlePageNotFound(d,p,h,o,t,g,l))return;const b=ae.getConfigBooleanValue("settings.hideNavigation"),m=we.parseParams(g.split("?")[1]),v=we.getNodeParams(m),C=oe.findViewGroup(d),y=decodeURIComponent(g.split("?")[1]||""),P=h.navigationPath&&h.navigationPath.length>0?h.navigationPath[h.navigationPath.length-1]:null;let T=!1,E=P;for(;E;){if(E.tabNav===!0){T=!0;break}else if(E.tabNav===!1){T=!1;break}else if(le.isObject(E.tabNav)){if(E.tabNav.showAsTabHeader){T=!0;break}if("hideTabNavAutomatically"in E.tabNav&&E.children)if(E.tabNav.hideTabNavAutomatically===!0&&E.children.length===1){T=!1;break}else{T=!0;break}else console.warn("tabNav:{hideTabNavAutomatically:true|false} is not configured correctly.")}E=oe.getParentNode(E,h.navigationPath)}let V=P,I=d.hideSideNav;if(I===void 0)for(;V;){if(V.tabNav&&V.hideSideNav===!0){I=!0;break}if(V.hideSideNav===!1){I=!1;break}V=oe.getParentNode(V,h.navigationPath)}const H=we.substituteDynamicParamsInObject(Object.assign({},h.context,P.context),h.pathParams);h.navigationPath._context=H;const O={hideNav:b,viewUrl:p,nodeParams:v,viewGroup:C,urlParamsRaw:y,currentNode:P,navigationPath:h.navigationPath,context:H,pathParams:h.pathParams,hideSideNav:I||!1,isolateView:d.isolateView||!1,tabNav:T};t.set(Object.assign({},O,{previousNodeValues:c?{viewUrl:c.viewUrl,isolateView:c.isolateView,viewGroup:c.viewGroup}:{}}));let D=document.getElementsByClassName("iframeContainer")[0];if(D&&(T?D.classList.add("iframeContainerTabNav"):D.classList.contains("iframeContainerTabNav")&&D.classList.remove("iframeContainerTabNav")),d.compound)oi.switchActiveIframe(n,void 0,!1),D&&D.classList.add("lui-webComponent"),this.navigateWebComponentCompound(t,d);else if(d.webcomponent)oi.switchActiveIframe(n,void 0,!1),D&&D.classList.add("lui-webComponent"),this.navigateWebComponent(t,d);else{const Z=document.querySelector(".wcContainer");if(Z&&(Z.configChangedRequest=!1),D&&(D.classList.remove("lui-webComponent"),this.removeLastChildFromWCContainer()),!a)if(!r)await oi.navigateIframe(l,t,n);else{const $=t.get(),pe=await t.prepareInternalData(l);Ee.sendMessageToIframe(l.iframe,{msg:"luigi.navigate",viewUrl:p,context:JSON.stringify($.context),nodeParams:JSON.stringify($.nodeParams),pathParams:JSON.stringify($.pathParams),searchParams:JSON.stringify(we.prepareSearchParamsForClient(l.iframe.luigi.currentNode)),internal:JSON.stringify(pe),withoutSync:!0})}}const q=document.querySelector(".lui-tab-header");q&&q.dispatchEvent(new Event("lui_ctx_update")),Mt.onNodeChange(c.currentNode,P)}catch(c){console.info("Could not handle route change",c)}}}async handleBookmarkableModalPath(){const e=we.getModalPathFromPath();if(e){const t=we.getModalParamsFromPath(),{nodeObject:n}=await Mt.extractDataFromPath(e);ep.openAsModal(e,t||n.openNodeInModal)}}checkInvalidateCache(e,t){let n=t.split("/");if(e.navigationPath&&e.navigationPath.length>0){let l=e.navigationPath.slice(1),r=!0;for(let a=0;a<l.length;a++){let o=n.length>a?n[a]:void 0,c=l[a];if(o!==c.pathSegment||!r)if(we.isDynamicNode(c)){if(!r||o!==we.getDynamicNodeValue(c,e.pathParams)){zn.deleteNodesRecursively(c);break}}else r=!1}}else zn.deleteCache()}handleRouteClick(e,t){const n=we.getRouteLink(e,t.get().pathParams);if(e.externalLink&&e.externalLink.url)this.navigateToExternalLink(n,e,t.get().pathParams);else if(e.link)this.navigateTo(n);else if(le.trimLeadingSlash(this.getWindowPath())===le.trimLeadingSlash(n)){const r=Ee.getIframeContainer(),a=oi.getActiveIframe(r);a&&a.vg&&oi.canCache(a.vg)?(oi.switchActiveIframe(Ee.getIframeContainer(),void 0,!1),setTimeout(()=>{oi.switchActiveIframe(Ee.getIframeContainer(),a,!1),window.postMessage({msg:"refreshRoute"},"*")})):(a&&r.removeChild(a),window.postMessage({msg:"refreshRoute"},"*"))}else this.navigateTo(n)}async showPageNotFoundError(e,t,n,l=!1,r={}){const a=we.getPageNotFoundRedirectResult(n,l);if(a.ignoreLuigiErrorHandling)return;const o=a.path;if(o){a.keepURL?this.handleRouteChange(o,e,Ee.getIframeContainer(),r):this.navigateTo(o);return}we.showRouteNotFoundAlert(e,n,l),this.navigateTo(le.addLeadingSlash(t))}navigateToLink(e){e.externalLink&&e.externalLink.url?this.navigateToExternalLink(e.externalLink):this.navigateTo(e.link)}navigateToExternalLink(e,t,n){if(t){const l={...D2.externalLink,...(t==null?void 0:t.externalLink)||{}};l.url=we.calculateNodeHref(t,n),window.open(l.url,l.sameWindow?"_self":"_blank").focus()}else le.isObject(e)&&window.open(e.url,e.sameWindow?"_self":"_blank").focus()}getGeneratedWCId(e){const{viewUrl:t,context:n}=e;if(t){const l=we.substituteViewUrl(t,{context:n});return e.webcomponent&&e.webcomponent.tagName?e.webcomponent.tagName:ur.generateWCId(l)}}navigateWebComponent(e,t){let n=document.querySelector(".wcContainer"),l=n._luigi_node;const r=this.getGeneratedWCId(t),a=e.get();if(t===l&&!n.configChangedRequest){const o=document.querySelector(r);o.context=a.context,o.extendedContext&&(o.extendedContext.nodeParams=a.nodeParams);return}n.configChangedRequest=!1,n=this.removeLastChildFromWCContainer(),n&&ur.renderWebComponent(a.viewUrl,n,a,t)}navigateWebComponentCompound(e,t){const n=document.querySelector(".wcContainer");if(!n)return;const l=e.get();if(n._luigi_node===t&&qr.isEqual(n._luigi_pathParams,l.pathParams)&&!n.configChangedRequest)return;n.configChangedRequest=!1;const{compound:r}=t;this.removeLastChildFromWCContainer(),r&&r.children&&(r.children=r.children.filter(a=>oe.checkVisibleForFeatureToggles(a))),ur.renderWebComponentCompound(t,n,l),n._luigi_pathParams=l.pathParams}removeLastChildFromWCContainer(){const e=document.querySelector(".wcContainer");if(e){for(;e.lastChild;)e.lastChild.remove();return e._luigi_node=void 0,e}}updateModalDataInUrl(e,t,n){let l=we.getHashQueryParamSeparator();const r=we.getQueryParams(),a=we.getModalViewParamName();r[a]=e,t&&Object.keys(t).length&&(r[`${a}Params`]=JSON.stringify(t));const o=new URL(location.href);if(ae.getConfigBooleanValue("routing.useHashRouting")){const g=location.hash.indexOf(l);g!==-1&&(o.hash=o.hash.slice(0,g)),o.hash=`${o.hash}${l}${we.encodeParams(r)}`}else o.search=`?${we.encodeParams(r)}`;n?history.pushState(window.state,"",o.href):history.replaceState(window.state,"",o.href)}appendModalDataToUrl(e,t){let n=we.getHashQueryParamSeparator();const l=we.getQueryParams(),r=we.getModalViewParamName(),a=l[r],o=new URL(location.href),c=ae.getConfigBooleanValue("routing.useHashRouting");let g=history.state,d,h;if(c){let[p,b]=o.hash.split("?");d=p,h=we.getURLWithoutModalData(b,r),h&&(d+="?"+h)}else d=o.pathname,h=we.getURLWithoutModalData(o.search,r),h&&(d+="?"+we.getURLWithoutModalData(o.search,r));if(g=we.handleHistoryState(g,d),a!==e){if(l[r]=e,t&&Object.keys(t).length&&(l[`${r}Params`]=JSON.stringify(t)),c){const p=location.hash.indexOf(n);p!==-1&&(o.hash=o.hash.slice(0,p)),o.hash=`${o.hash}${n}${we.encodeParams(l)}`}else o.search=`?${we.encodeParams(l)}`;history.pushState(g,"",o.href)}else{const p=new URL(o);if(c){let b=p.hash.split("?")[0];p.hash=b,h&&(p.hash+="?"+h)}else p.search=h;history.replaceState({},"",p.href),history.pushState(g,"",o.href)}}removeModalDataFromUrl(e){const t=we.getQueryParams(),n=we.getModalViewParamName();let l=new URL(location.href);if(ae.getConfigBooleanValue("routing.useHashRouting")){let a={};t[n]&&(a[n]=t[n]),t[`${n}Params`]&&(a[`${n}Params`]=t[`${n}Params`]);let o=we.encodeParams(a);l.hash.includes(`?${o}`)?l.hash=l.hash.replace(`?${o}`,""):l.hash.includes(`&${o}`)&&(l.hash=l.hash.replace(`&${o}`,""))}else{let a=new URLSearchParams(l.search.slice(1));a.delete(n),a.delete(`${n}Params`);let o="";Array.from(a.keys()).forEach(c=>{o+=(o===""?"?":"&")+c+"="+a.get(c)}),l.search=o}if(history.state&&history.state.modalHistoryLength>=0&&e){history.state.modalHistoryLength;const a=history.state.pathBeforeHistory;let o=!1;if(window.addEventListener("popstate",c=>{o?(history.replaceState({},"",a),history.pushState({},"",a),history.back()):(history.pushState({},"",a),history.back())},{once:!0}),history.state.historygap===history.length-history.state.modalHistoryLength)history.go(-history.state.modalHistoryLength);else if(history.state.modalHistoryLength>history.length){const c=history.length-1;o=!0,history.go(-c),window.Luigi.preventLoadingModalData=!0}else{const c=history.state.modalHistoryLength;history.go(-c)}}else history.pushState({},"",l.href)}}const lt=new H2;class W2{constructor(){this.splitViewValues,this.internalValues={innerHeight:null,rightContentHeight:null,thresholdTop:null,thresholdBottom:null,m_pos_prev:null}}getContainer(){return document.getElementById("splitViewContainer")}getDragger(){return document.getElementById("splitViewDragger")}getDraggerButton(){return document.querySelector("#splitViewDragger>.lui-collapse-btn")}getCollapsedDraggerButton(){return document.querySelector("#splitViewDraggerCollapsed>.lui-collapse-btn")}getDraggerBackdrop(){return document.getElementById("splitViewDraggerBackdrop")}getDefaultData(){return{mfSplitView:{displayed:!1,settings:{}}}}setIframe(e,t,n){e&&(e=we.substituteViewUrl(e,t));const l=Ee.createIframe(e,void 0,n.get().lastNode,"split-view",t);return document.querySelector(".iframeSplitViewCnt").appendChild(l),l}async prepareSplitViewData(e,t){const n=t&&t.length?le.getPathWithoutHash(t):"",l=await Mt.getNavigationPath(ae.getConfigValueAsync("navigation.nodes"),t),r=we.parseParams(n.split("?")[1]),a=we.getNodeParams(r),o=we.getLastNodeObject(l),c=e.get().splitViewSettings;c.title||(c.title=o.label);const g=c.collapsed||!1;e.set({splitViewSettings:c,lastNode:o,pathData:l,nodeParams:a,collapsed:g,isDataPrepared:!0})}createAndSetView(e){const{nodeParams:t,lastNode:n,pathData:l}=e.get();if(n.webcomponent){ur.renderWebComponent(n.viewUrl,document.querySelector(".iframeSplitViewCnt"),{context:l.context},n,void 0,!0);const r={splitViewWC:document.querySelector(".iframeSplitViewCnt"),splitViewWCData:{...l,nodeParams:t}};e.set(r),e.dispatch("wcCreated",{...r,collapsed:!1});const a=document.querySelector(".wcContainer");if(a&&a.childElementCount){const o=document.getElementsByClassName("iframeContainer")[0];o&&o.classList.add("lui-webComponent")}}else{const a={splitViewIframe:this.setIframe(n.viewUrl,{context:l.context,pathParams:l.pathParams,nodeParams:t},e),splitViewIframeData:{...l,nodeParams:t}};e.set(a),e.dispatch("iframeCreated",{...a,collapsed:!1})}this.fixIOSscroll()}fixIOSscroll(){if(!(!!navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform)))return;const t=document.querySelector(".iframeSplitViewCnt iframe");t&&t.addEventListener("load",()=>{document.querySelector(".iframeSplitViewCnt").style.overflow="hidden",setTimeout(()=>{document.querySelector(".iframeSplitViewCnt").style.overflow="auto"})})}calculateInitialValues(e,t){if(t){const n=e||40,l=parseInt(le.computePxFromPercent(t,n)),r=e?100-e:60,a=parseInt(le.computePxFromPercent(t,r));return{percent:n,bottom:l,top:a}}}calculateAndSetSplitViewValues(e,t){const n=parseInt(le.computePxFromPercent(t.rightContentHeight,100-e))+Ee.getIframeContainer().getBoundingClientRect().top;this.splitViewValues=this.enforceTresholds(n,t.innerHeight-n,t)}enforceTresholds(e,t){const n=this.internalValues;return e<=n.thresholdTop?(e=n.thresholdTop,t=n.innerHeight-n.thresholdTop):t<=n.thresholdBottom&&(e=n.innerHeight-n.thresholdBottom,t=n.thresholdBottom),{top:e,bottom:t,percent:le.computePercentFromPx(n.rightContentHeight,t)}}open(e,t,n){const l={displayed:!0,collapsed:n.collapsed===!0,nodepath:t,settings:n};this.splitViewValues=this.calculateInitialValues(l.settings&&l.settings.size,le.getContentAreaHeight()),this.sendMessageToClients("internal",{exists:!0,size:this.splitViewValues.percent,collapsed:l.collapsed}),e.set({mfSplitView:l,splitViewValues:this.splitViewValues})}close(e){e.get().splitViewIframe||e.get().splitViewWC?e.getUnsavedChangesModalPromise(e.get().splitViewWC?e.get().splitViewWC:e.get().splitViewIframe.contentWindow).then(()=>{e.get().mfSplitView&&(e.get().mfSplitView.displayed=!1,e.get().mfSplitView.collapsed=!1,e.set({mfSplitView:e.get().mfSplitView})),e.dispatch("statusChanged",{displayed:!1}),Ee.getIframeContainer().style.marginBottom="",dt.sendMessageToClients("close.ok")},()=>{}):e.get().mfSplitView.displayed&&(e.get().mfSplitView.displayed=!1,e.set({mfSplitView:e.get().mfSplitView}))}async expand(e){this.sendMessageToClients("internal",{exists:!0,size:this.splitViewValues.percent,collapsed:!1}),this.sendMessageToClients("expand.ok"),e.dispatch("statusChanged",{displayed:!0,collapsed:!1}),this.getContainer().style.top=`${this.splitViewValues.top}px`,Ee.getIframeContainer().style.marginBottom=`${this.splitViewValues.bottom}px`,setTimeout(()=>{this.getDragger().style.top=`${this.splitViewValues.top}px`})}collapse(e){(e.get().splitViewIframe||e.get().splitViewWC)&&e.getUnsavedChangesModalPromise(e.get().splitViewWC?e.get().splitViewWC:e.get().splitViewIframe.contentWindow).then(()=>{this.sendMessageToClients("internal",{exists:!0,size:this.splitViewValues.percent,collapsed:!0}),this.sendMessageToClients("collapse.ok"),e.dispatch("statusChanged",{displayed:!0,collapsed:!0}),this.getContainer().style.top="",Ee.getIframeContainer().style.marginBottom=""},()=>{})}sendMessageToClients(e,t){Ee.sendMessageToVisibleIframes({msg:`luigi.navigation.splitview.${e}`,data:t})}}const dt=new W2;class z2{luigiAfterInit(){ae.getConfigBooleanValue("settings.appLoadingIndicator.hideAutomatically")&&setTimeout(()=>{Yr.hideAppLoadingIndicator()},0)}}const q2=new z2;class G2{constructor(){this._defaultStorage="localStorage",this._authKey="luigi.auth",this._newlyAuthorizedKey="luigi.newlyAuthorized",this._invalidStorageMsg="Configuration Error: Invalid auth.storage value defined. Must be one of localStorage, sessionStorage or none."}getStorageKey(){return this._authKey}getStorageType(){return this._storageType||(this._storageType=ae.getConfigValue("auth.storage")||this._defaultStorage),this._storageType}getAuthData(){return this._getStore(this.getStorageKey())}setAuthData(e){this._setStore(this.getStorageKey(),e)}removeAuthData(){this._setStore(this.getStorageKey(),void 0)}isNewlyAuthorized(){return!!this._getStore(this._newlyAuthorizedKey)}setNewlyAuthorized(){this._setStore(this._newlyAuthorizedKey,!0)}removeNewlyAuthorized(){this._setStore(this._newlyAuthorizedKey,void 0)}_setStore(e,t){switch(this.getStorageType()){case"localStorage":case"sessionStorage":t!==void 0?window[this.getStorageType()].setItem(e,JSON.stringify(t)):window[this.getStorageType()].removeItem(e);break;case"none":this[e]=t;break;default:console.error(this._invalidStorageMsg)}}_getStore(e){try{switch(this.getStorageType()){case"localStorage":case"sessionStorage":return JSON.parse(window[this.getStorageType()].getItem(e));case"none":return this[e];default:console.error(this._invalidStorageMsg)}}catch{console.warn("Error parsing authorization data. Auto-logout might not work!")}}}const ui=new G2;class K2{constructor(){return this._userInfoStore=fr({}),this._loggedInStore=fr(!1),this}setUserInfo(e){this._userInfoStore.set(e)}setLoggedIn(e){this._loggedInStore.set(e)}getUserInfoStore(){return this._userInfoStore}getLoggedInStore(){return this._loggedInStore}setProfileLogoutFn(e){this._profileLogoutFn=e}async init(){const e=ae.getConfigValue("auth.use");if(!e)return Promise.resolve(!0);const t=ae.getConfigValue(`auth.${e}`),n=fl.parseUrlAuthErrors()||{};if(await fl.handleUrlAuthErrors(t,n.error,n.errorDescription))return this.idpProviderInstance=this.getIdpProviderInstance(e,t),le.isPromise(this.idpProviderInstance)?this.idpProviderInstance.then(r=>(this.idpProviderInstance=r,this.checkAuth(t))).catch(r=>{const a=`Error: ${r.message||r}`;console.error(a,r.message&&r),ae.setErrorMessage(a)}):this.checkAuth(t)}async checkAuth(e){const t=fl.getStoredAuthData();if(!t||!fl.isLoggedIn()){if(ae.getConfigValue("auth.disableAutoLogin"))return;let l=!0;return t&&(l=await pi.handleAuthEvent("onAuthExpired",e)),l?this.startAuthorization():void 0}this.idpProviderInstance.settings&&le.isFunction(this.idpProviderInstance.settings.userInfoFn)?this.idpProviderInstance.settings.userInfoFn(this.idpProviderInstance.settings,t).then(l=>{this.setUserInfo(l),this.setLoggedIn(!0)}):le.isFunction(this.idpProviderInstance.userInfo)?this.idpProviderInstance.userInfo(e).then(l=>{this.setUserInfo(l),this.setLoggedIn(!0)}):(this.setLoggedIn(!0),this.setUserInfo(ol(this._userInfoStore))),le.isFunction(ae.getConfigValue("auth.events.onAuthSuccessful"))&&ui.isNewlyAuthorized()&&await pi.handleAuthEvent("onAuthSuccessful",e,t),ui.removeNewlyAuthorized(),le.isFunction(this.idpProviderInstance.setTokenExpirationAction)&&this.idpProviderInstance.setTokenExpirationAction(),le.isFunction(this.idpProviderInstance.setTokenExpireSoonAction)&&this.idpProviderInstance.setTokenExpireSoonAction()}async startAuthorization(){if(this.idpProviderInstance)return this.idpProviderInstance.login().then(e=>{ui.setNewlyAuthorized(),e&&console.error(e)})}logout(){const e=fl.getStoredAuthData(),t=async l=>{await pi.handleAuthEvent("onLogout",this.idpProviderInstance.settings,void 0,l),ui.removeAuthData()},n=ae.getConfigValue(`auth.${ae.getConfigValue("auth.use")}.logoutFn`);le.isFunction(n)?n(this.idpProviderInstance.settings,e,t):le.isFunction(this.idpProviderInstance.logout)?this.idpProviderInstance.logout(e,t):this._profileLogoutFn?this._profileLogoutFn(e,t):t(this.idpProviderInstance.settings.logoutUrl)}IdpProviderException(e){return{message:e,name:"IdpProviderException"}}async getIdpProviderInstance(e,t){const n=le.getConfigValueFromObject(t,"idpProvider");if(n){const r=await new n(t);return["login"].forEach(a=>{if(!le.isFunction(r[a]))throw this.IdpProviderException(`${a} function does not exist in custom IDP Provider ${e}`)}),r}if(le.isFunction(ae.getConfigValue("auth.events.onAuthConfigError")))await pi.handleAuthEvent("onAuthConfigError",{idpProviderName:e,type:"IdpProviderException"});else throw this.IdpProviderException(`IDP Provider ${e} does not exist.`)}unload(){this.idpProviderInstance&&le.isFunction(this.idpProviderInstance.unload)&&this.idpProviderInstance.unload()}}const fn=new K2;class j2{constructor(){this.decorators=[]}hasDecorators(){return this.decorators.length>0}add(e){this.decorators=this.decorators.filter(t=>t.uid!==e.uid).concat(e)}applyDecorators(e,t){if(!e)return e;const n=new URL(le.prependOrigin(e)),l=this.decorators.filter(r=>r.type==="queryString");for(let r=0;r<l.length;r++){const a=l[r];n.searchParams.has(a.key)&&n.searchParams.delete(a.key);const o=a.valueFn();n.searchParams.append(a.key,o)}return t&&(n.search=decodeURIComponent(n.search)),n.href}}const Gr=new j2;class J2{getStoredAuthData(){return ui.getAuthData()}isLoggedIn(){const e=this.getStoredAuthData();return e&&(()=>e.accessTokenExpirationDate>Number(new Date))()}parseUrlAuthErrors(){const e=le.getUrlParameter("error"),t=le.getUrlParameter("errorDescription");if(e)return{error:e,errorDescription:t}}async handleUrlAuthErrors(e,t,n){return t?await pi.handleAuthEvent("onAuthError",e,{error:t,errorDescription:n},e.logoutUrl+"?post_logout_redirect_uri="+e.post_logout_redirect_uri+"&error="+t+"&errorDescription="+n):!0}}const fl=new J2;class Y2{sanitizeHtml(e=""){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/javascript:/g,"")}restoreSanitizedBrs(e=""){return e.replace(/&lt;br\/&gt;/g,"<br>").replace(/&lt;br \/&gt;/g,"<br>").replace(/&lt;br&gt;/g,"<br>").replace(/&lt;br &gt;/g,"<br>")}restoreSanitizedElements(e=""){let t=e;const n=["i","b","br","mark","strong","em","small","del","ins","sub","sup"];for(let l=0;l<n.length;l++){const r=new RegExp(`&lt;${n[l]}/&gt;`,"g"),a=new RegExp(`&lt;${n[l]} /&gt;`,"g"),o=new RegExp(`&lt;${n[l]}&gt;`,"g"),c=new RegExp(`&lt;${n[l]} &gt;`,"g"),g=new RegExp(`&lt;/${n[l]}[/]&gt;`,"g"),d=new RegExp(`&lt;/${n[l]} [/]&gt;`,"g"),h=new RegExp(`&lt;[/]${n[l]}&gt;`,"g"),p=new RegExp(`&lt;[/]${n[l]} &gt;`,"g");t=t.replace(r,`<${n[l]}>`).replace(a,`<${n[l]}>`).replace(o,`<${n[l]}>`).replace(c,`<${n[l]}>`).replace(g,`</${n[l]}>`).replace(d,`</${n[l]}>`).replace(h,`</${n[l]}>`).replace(p,`</${n[l]}>`)}return t}sanatizeHtmlExceptTextFormatting(e=""){return this.restoreSanitizedElements(this.sanitizeHtml(e))}sanitizeParam(e=""){return String(e).replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/\//g,"&sol;")}escapeKeyForRegexp(e=""){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}processTextAndLinks(e="",t,n){let r={sanitizedText:this.restoreSanitizedBrs(this.sanitizeHtml(e)),links:[]};return t?Object.entries(t).reduce((a,[o,c])=>{const g=`_luigi_alert_${n}_link_${this.sanitizeParam(o)}`,d=this.restoreSanitizedBrs(this.sanitizeHtml(c.text)),h=`<a id="${g}">${d}</a>`,p=this.escapeKeyForRegexp(o),b=new RegExp(`({${p}})`,"g");return{sanitizedText:a.sanitizedText.replace(b,h),links:a.links.concat({elemId:g,url:c.url?encodeURI(this.sanitizeHtml(c.url)):void 0,dismissKey:c.dismissKey?encodeURI(this.sanitizeHtml(c.dismissKey)):void 0})}},r):r}}const dr=new Y2;class Q2{get specialIframeTypes(){return[{iframeKey:"modalIframe",dataKey:"modalIframeData",iframeConfigKey:"modal"},{iframeKey:"drawerIframe",dataKey:"drawerIframeData",iframeConfigKey:"drawer"},{iframeKey:"splitViewIframe",dataKey:"splitViewIframeData",iframeConfigKey:"splitView"}]}hideElementChildren(e){e.children&&Array.from(e.children).forEach(t=>{t.tagName==="IFRAME"&&(t.style.display="none")})}removeElementChildren(e){[...e.children].forEach(n=>{!n.vg&&n.tagName==="IFRAME"&&e.removeChild(n)})}removeIframe(e,t){Array.from(t.children).forEach(l=>{l===e&&t.removeChild(l)})}isSameDomain(e,t){if(e.iframe){const n=t.get(),l=le.getUrlWithoutHash(n.previousNodeValues.viewUrl),r=le.getUrlWithoutHash(n.viewUrl),a=n.previousNodeValues.viewGroup,o=n.viewGroup;if(l===r&&!a&&!o)return!0}return!1}isSameViewGroup(e,t){if(e.iframe){const n=t.get(),l=le.getUrlWithoutHash(n.previousNodeValues.viewUrl),r=le.getUrlWithoutHash(n.viewUrl),a=this.getLocation(l),o=this.getLocation(r);if(a===o){const c=n.previousNodeValues.viewGroup,g=n.viewGroup;if(c&&g&&c===g)return!0}}return!1}canReuseIframe(e,t){return this.isSameDomain(e,t)||this.isSameViewGroup(e,t)}getLocation(e){const t=document.createElement("a");if(t.href=e,t.origin)return t.origin}urlMatchesTheDomain(e="",t){return this.getLocation(e)===this.getLocation(t)}iframeIsSameDomain(e,t){return this.urlMatchesTheDomain(e,t)}getIframeContainer(){const e=Array.from(document.querySelectorAll(".iframeContainer"));return e.length>0?e[0]:void 0}getMicrofrontendsInDom(){return c2.map(({type:e,selector:t})=>Array.from(document.querySelectorAll(t)).map(n=>({id:n.luigi.id,container:n,active:le.isElementVisible(n),type:e}))).reduce((e,t)=>e.concat(t),[])}getMicrofrontendIframes(){return this.getMicrofrontendsInDom().map(e=>e.container)}getCurrentWebcomponentCtnInDom(){return document.querySelector(".iframeContainer.lui-webComponent")}getCurrentMicrofrontendIframe(){const e=this.getModalIframes(),t=this.getMainIframes().filter(le.isElementVisible),n=this.getCurrentWebcomponentCtnInDom();return e[0]||t[0]||n||null}getIframesWithType(e){return this.getMicrofrontendsInDom().filter(t=>t.type===e).map(t=>t.container)}getMainIframes(){return this.getIframesWithType("main")}getModalIframes(){return this.getIframesWithType("modal")}getVisibleIframes(){return this.getMicrofrontendsInDom().filter(e=>e.active).map(e=>e.container)}sendMessageToIframe(e,t){if(!(e.luigi&&e.luigi.viewUrl&&e._ready))return;const n=this.getLocation(e.luigi.viewUrl);n!==""&&e.contentWindow&&e.contentWindow.postMessage(t,n)}sendMessageToVisibleIframes(e){this.getVisibleIframes().forEach(t=>this.sendMessageToIframe(t,e))}broadcastMessageToAllIframes(e){Ee.getMicrofrontendIframes().forEach(t=>this.sendMessageToIframe(t,e))}createIframe(e,t,n,l,r){const a=["allow-forms","allow-modals","allow-popups","allow-popups-to-escape-sandbox","allow-same-origin","allow-scripts"],o=ae.getConfigValue("settings.customSandboxRules"),c=ae.getConfigValue("settings.allowRules"),g=o?[...new Set([...a,...o])]:a,d=document.createElement("iframe");d.src=Gr.hasDecorators()?Gr.applyDecorators(e,n?n.decodeViewUrl:void 0):e,c&&(c.forEach((p,b)=>{c[b]=p+(p.indexOf(";")!=-1?"":";")}),d.allow=c.join(" ")),d.sandbox=g.join(" "),d.luigi={viewUrl:e,currentNode:n,createdAt:new Date().getTime(),id:le.getRandomId(),pathParams:r?r.pathParams:void 0},t&&(d.vg=t),n&&n.clientPermissions&&(d.luigi.clientPermissions=n.clientPermissions);const h=ae.getConfigValue("settings.iframeCreationInterceptor");if(le.isFunction(h))try{h(d,t,n,l)}catch(p){console.error("Error applying iframe creation interceptor: ",p)}return d}isMessageSource(e,t){return t&&t.contentWindow===e.source}getValidMessageSource(e){const n=[...Ee.getMicrofrontendIframes(),{contentWindow:window,luigi:{viewUrl:window.location.href}}].find(a=>this.isMessageSource(e,a));if(!n||!n.luigi||!n.luigi.viewUrl)return;const l=e.data.msg==="luigi.navigate.ok";if(l&&!n.luigi.nextViewUrl)return;const r=l?n.luigi.nextViewUrl:n.luigi.viewUrl;if(this.iframeIsSameDomain(r,e.origin))return n}getSpecialIframeMessageSource(e,t){return Ee.specialIframeTypes.filter(n=>Ee.isMessageSource(e,t[n.iframeKey]))}disableA11yOfInactiveIframe(e){[...document.querySelectorAll("*")].forEach(n=>{n.getAttribute("oldTab")||n.setAttribute("oldTab",n.getAttribute("tabindex")),n!==e&&n.setAttribute("tabindex","-1")})}enableA11yOfInactiveIframe(){[...document.querySelectorAll("*")].forEach(t=>{const n=t.getAttribute("oldTab");t.getAttribute("oldTab")==="null"&&t.removeAttribute("tabindex"),t.removeAttribute("oldTab"),n&&n!=="null"&&t.setAttribute("tabindex",n)})}disableA11YKeyboardExceptClassName(e){[...document.querySelectorAll("*")].forEach(n=>{const l=!n.closest(e),r=n.getAttribute("tabindex");(r||r===0)&&l&&!n.hasAttribute("oldtab")&&n.setAttribute("oldtab",r),l&&n.setAttribute("tabindex","-1")})}enableA11YKeyboardBackdropExceptClassName(e){[...document.querySelectorAll("*")].forEach(n=>{const l=n.getAttribute("oldtab");!n.closest(e)&&n.removeAttribute("tabindex"),l&&l!=="null"&&(n.setAttribute("tabindex",l),n.removeAttribute("oldtab"))})}applyCoreStateData(e){return{...e,activeFeatureToggleList:Uo.getActiveFeatureToggleList(),currentLocale:yt.getCurrentLocale(),currentTheme:Do.getCurrentTheme()}}}const Ee=new Q2;class Z2{getRandomId(){return(window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0]}isFunction(e){return e&&{}.toString.call(e)==="[object Function]"}isAsyncFunction(e){return e&&{}.toString.call(e)==="[object AsyncFunction]"}isPromise(e){return e&&this.isFunction(e.then)}isString(e){return typeof e=="string"||e instanceof String}isIE(){const e=navigator.userAgent;return!!(e.includes("MSIE ")||e.includes("Trident/"))}isObject(e){return!!(e&&typeof e=="object"&&!Array.isArray(e))}isEmptyObject(e){return this.isObject(e)&&Object.keys(e).length===0}deepMerge(e,...t){if(!t.length)return e;const n=t.shift();if(this.isObject(e)&&this.isObject(n))for(const l in n)this.isObject(n[l])?(e[l]||Object.assign(e,{[l]:{}}),this.deepMerge(e[l],n[l])):Object.assign(e,{[l]:n[l]});return this.deepMerge(e,...t)}getUrlWithoutHash(e){if(!e)return!1;const t=e.split("#")[0];return t.startsWith("http")?t:window.location.origin+(t.startsWith("/")?"":"/")+t}hasHash(e){return e&&e.search(/^[#\/].*$/)===0}getPathWithoutHash(e){for(;this.hasHash(e);)e=e.substr(1);return e}getUrlParameter(e){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");const n=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(window.location.search);return n&&decodeURIComponent(n[1].replace(/\+/g," "))||""}prependOrigin(e){if(!e||e.startsWith("http"))return e;const t=e.startsWith("/");return e.length?window.location.origin+(t?"":"/")+e:window.location.origin}addLeadingSlash(e){return(e.startsWith("/")?"":"/")+e}addTrailingSlash(e){return typeof e!="string"?e:e.replace(/\/?$/,"/")}trimLeadingSlash(e){return this.isString(e)?e.replace(/^\/+/g,""):""}trimTrailingSlash(e){return this.isString(e)?e.replace(/\/+$/,""):""}getTrimmedUrl(e){const t=e.length>0?this.getPathWithoutHash(e):e;return this.trimTrailingSlash(t.split("?")[0])}normalizePath(e){return typeof e!="string"?e:this.addLeadingSlash(this.addTrailingSlash(e))}getConfigValueFromObject(e,t){let n=0,l=e;const r=t.split(".");for(;l&&n<r.length;)l=l[r[n++]];return l}canComponentHandleModal(e){return e&&typeof e.get=="function"}escapeRegExp(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}replaceVars(e,t,n,l=!0){let r=e;return t&&(l?r=qr.replace(r,/{([\s\S]+?)}/g,a=>{let o=a.slice(1,-1).trim();return o.indexOf(n)===0&&(o=o.substring(n.length)),qr.get(t,o,a)}):Object.entries(t).forEach(a=>{r=r.replace(new RegExp(this.escapeRegExp(n+a[0]),"g"),encodeURIComponent(a[1]))})),l&&(r=r.replace(new RegExp("\\{"+this.escapeRegExp(n)+"[^\\}]+\\}","g"),"")),r}getInnerHeight(){return Ee.getIframeContainer().clientHeight}getContentAreaHeight(){return this.getInnerHeight()-Ee.getIframeContainer().getBoundingClientRect().top}getShellbarHeight(){return(Hi.getShellbar()||{}).clientHeight||0}computePxFromPercent(e,t){return e/100*t}computePercentFromPx(e,t){return Math.floor(100*t/e)}isElementVisible(e){return window.getComputedStyle(e,null).getPropertyValue("display")!=="none"}removeInternalProperties(e){return e&&Object.keys(e).filter(t=>!t.startsWith("_")).reduce((t,n)=>(t[n]=e[n],t),{})||e}removeProperties(e,t){const n={};if(!t instanceof Array||!t.length)return console.error("[ERROR] removeProperties requires second parameter: array of keys to remove from object."),e;for(const l in e)if(e.hasOwnProperty(l)){const r=t.filter(o=>l.includes(o)).length===0,a=t.filter(o=>o.endsWith("*")).map(o=>o.slice(0,-1)).filter(o=>l.startsWith(o)).length===0;r&&a&&(n[l]=e[l])}return n}semverCompare(e,t){const n=e.split("-")[0].split("."),l=t.split("-")[0].split(".");for(let r=0;r<3;r++){const a=Number(n[r]),o=Number(l[r]);if(a>o)return 1;if(o>a)return-1;if(!isNaN(a)&&isNaN(o))return 1;if(isNaN(a)&&!isNaN(o))return-1}return 0}requestExperimentalFeature(e,t){const n=!!ae.getConfigValue("settings.experimental."+e);return t&&!n&&console.warn("Experimental feature not enabled: ",e),n}createRemotePromise(){let e,t;const n=new Promise(r=>{e=a=>{r(a||!0)},t=()=>{r(!1)}});let l=ae._remotePromises;return l||(l={counter:0,promises:[]},ae._remotePromises=l),n.id=l.counter++,l.promises[n.id]=n,n.doResolve=r=>{delete l.promises[n.id],e(r)},n.doReject=()=>{delete l.promises[n.id],t()},n}getRemotePromise(e){return ae._remotePromises?ae._remotePromises.promises[e]:void 0}isString(e){return typeof e=="string"||e instanceof String}}const le=new Z2;class X2{constructor(){this.EXP_CAT_KEY="luigi.preferences.navigation.expandedCategories",this.COL_NAV_KEY="luigi.preferences.navigation.collapsedNavigation",this.virtualGroupPrefix="___"}getProductSwitcherConfig(){const e=ae.getConfigValue("navigation.productSwitcher");return Object.assign({icon:"grid",label:"My Products"},e)}getProductSwitcherColumnsNumber(){const e=this.getProductSwitcherConfig();if(!e.items)return;let t=e.columns,n;return le.isFunction(e.items)?n=e.items().length:n=e.items.length,t==="auto"?n<=6?e.columns=3:e.columns=4:e.columns===3?3:4}prepareForTests(...e){let t="";return e.forEach(n=>{n&&(t+=(t?"_":"")+encodeURIComponent(n.toLowerCase().split(" ").join("")))}),t}checkVisibleForFeatureToggles(e){if(e&&e.visibleForFeatureToggles){const t=Uo.getActiveFeatureToggleList();for(const n of e.visibleForFeatureToggles)if(n.startsWith("!")){if(t.includes(n.slice(1)))return!1}else if(!t.includes(n))return!1}return!0}isNodeAccessPermitted(e,t,n){if(pi.isAuthorizationEnabled()){const r=fl.isLoggedIn(),a=e.anonymousAccess;if(r&&a==="exclusive"||!r&&a!=="exclusive"&&a!==!0)return!1}if(!this.checkVisibleForFeatureToggles(e))return!1;const l=ae.getConfigValue("navigation.nodeAccessibilityResolver");return typeof l!="function"?!0:l(e,t,n)}applyContext(e,t,n){if(t)for(var l in t)e[l]=t[l];return n&&e.parentNavigationContexts.unshift(n),e}getNodePath(e){return e.parent?this.getNodePath(e.parent)+"/"+e.pathSegment:e.pathSegment}groupNodesBy(e,t,n){const l=ae.getConfigValue("navigation.defaults.category");let r={},a=0,o=0;const c=g=>{g.sort((d,h)=>{const p=d.order||0,b=h.order||0;return p-b})};return e.forEach(g=>{let d,h;const p=g[t];le.isObject(p)?(d=p.id?p.id:p.label,h=Object.assign({},p)):(d=p,n&&!p&&(d=this.virtualGroupPrefix+o),h={label:d,_fromString:!0});let b=r[d];b||(n&&p&&o++,(h.order===void 0||h.order===null||h.order==="")&&(h.order=d?a++:-1),b=[],r[d]=b),b.metaInfo||(b.metaInfo=h),le.isObject(p)&&b.metaInfo._fromString&&(delete b.metaInfo._fromString,b.metaInfo={...b.metaInfo,...p}),le.isObject(p)&&l&&(p.titleExpandButton?b.metaInfo.titleExpandButton=p.titleExpandButton:b.metaInfo.titleExpandButton=l.titleExpandButton,p.titleCollapseButton?b.metaInfo.titleCollapseButton=p.titleCollapseButton:b.metaInfo.titleCollapseButton=l.titleCollapseButton),!b.metaInfo.categoryUid&&d&&(b.metaInfo.categoryUid=g.parent?this.getNodePath(g.parent)+":"+d:d),b.push(g)}),Object.keys(r).forEach(g=>{const d=r[g].metaInfo;d&&d.id&&(r[d.label]=r[d.id],delete r[d.id])}),Object.keys(r).forEach(g=>{c(r[g]),r[g].length===0&&delete r[g]}),r}generateTooltipText(e,t){let n=e.tooltipText;return n===void 0&&(n=ae.getConfigValue("navigation.defaults.tooltipText")),n===void 0?t:n===!1?"":yt.getTranslation(n)}async generateTopNavNodes(e){const t=e[0].topNav===!1?[]:await Mt.getFilteredChildren(e[0]);let n=null,l=0,r=0,a={};const o=[];let c=[];for(const d of t){e.forEach(b=>{!n&&b===d&&(n=d)}),d.hideFromNav||(l++,d.globalNav&&r++);let h;const p=!!d.badgeCounter;if(p&&(h=await d.badgeCounter.count()),d.category){const b=d.category.label||d.category;if(a[b]){if(a[b].icon||(a[b].icon=d.category.icon,a[b].altText=d.category.altText),p&&!a[b].badgeCounter)a[b].badgeCounter={label:"",count:()=>h};else if(p){const m=a[b].badgeCounter.count()+h;a[b].badgeCounter.count=()=>m}}else a[b]={isCat:!0,label:b,icon:d.category.icon,altText:d.category.altText,children:[],badgeCounter:p&&{label:"",count:()=>h}},o.push(a[b]);a[b].children.push(d)}else o.push(d);h&&c.push(h)}for(let d=0;d<o.length;d++)o[d].isCat&&(o[d].visibleChildren=await Mt.getChildren(o[d])||[]);const g={children:o,selectedNode:n,visibleNodeCount:l,globalNavNodeCount:r};if(c.length){const d=c.reduce((h,p)=>h+p);g.totalBadgeNode={badgeCounter:{count:()=>d,label:""}}}return g}getSideNavAccordionMode(e){let t=e&&e.sideNavAccordionMode||e&&e.parent&&e.parent.sideNavAccordionMode;return typeof t<"u"?t:ae.getConfigBooleanValue("navigation.defaults.sideNavAccordionMode")}loadExpandedCategories(){let e=[];const t=localStorage.getItem(this.EXP_CAT_KEY);if(t)try{e=JSON.parse(t)}catch{console.warn("Preference data corrupted, using default")}return e}storeExpandedState(e,t,n=!1){let l=this.loadExpandedCategories(),r=e.split(":")[0];if(t)n&&(l=l.filter(a=>a.indexOf(r+":")===-1)),l.indexOf(e)<0&&l.push(e);else{let a=l.indexOf(e);a>=0&&l.splice(a,1)}return localStorage.setItem(this.EXP_CAT_KEY,JSON.stringify(l)),l}isOpenUIiconName(e){return/^[a-z0-9\-]+$/i.test(e)}renderIconClassName(e){if(!e)return"";let t="sap-icon-";return e.startsWith("businessSuiteInAppSymbols")||e.startsWith("TNT")?t+=e:t+="-"+e,t}handleUnresponsiveClient(e){if(e.errorFn)e.errorFn();else{console.warn("Something went wrong with a client! You will be redirected to another page.");const t=e.redirectPath||"/";lt.navigateTo(t)}}getBurgerTooltipConfig(){const e=ae.getConfigValue("settings.burgerTooltip");if(le.isObject(e)||e===!0){const t=e.navExpanded?yt.getTranslation(e.navExpanded):"Collapse navigation";return[e.navCollapsed?yt.getTranslation(e.navCollapsed):"Expand navigation",t]}}stripNode(e){const t={...e};return delete t.parent,delete t.children,delete t.navHeader,t}async shouldPreventNavigationForPath(e){const{nodeObject:t}=await Mt.extractDataFromPath(e);return!!await Mt.shouldPreventNavigation(t)}getPropertyChainValue(e,t,n){return!t||!e?n:qr.get(e,t,n)}substituteVars(e,t){const l=JSON.stringify(e).replace(/\$\{[a-zA-Z0-9$_.]+\}/g,r=>{const a=r.substr(2,r.length-3);return this.getPropertyChainValue(t,a)||r});return JSON.parse(l)}_fetch(e,t){return fetch(e,t)}processTitleData(e,t){let n=this.getPropertyChainValue(e,t.titlePropertyChain);return n&&(n=n.trim()),n&&t.titleDecorator&&(n=t.titleDecorator.replace("%s",n)),{label:n||t.fallbackTitle,icon:this.getPropertyChainValue(e,t.iconPropertyChain,t.fallbackIcon)}}async fetchNodeTitleData(e,t){return new Promise((n,l)=>{if(!e.titleResolver){l(new Error("No title resolver defined at node"));return}const r={...e.titleResolver};delete r._cache;const a=this.substituteVars(r,t),o=JSON.stringify(a);if(e.titleResolver._cache&&e.titleResolver._cache.key===o){n(e.titleResolver._cache.value);return}const c=a.request;this._fetch(c.url,{method:c.method,headers:c.headers,body:JSON.stringify(c.body)}).then(g=>{g.json().then(d=>{try{const h=this.processTitleData(d,a,e);e.titleResolver._cache={key:o,value:h},n(h)}catch(h){l(h)}})}).catch(g=>{l(g)})}).catch(n=>{qr.reject(n)})}handleNavAnchorClickedWithoutMetaKey(e){return e.ctrlKey||e.metaKey||e.shiftKey?(e.stopPropagation(),!1):(e.preventDefault(),!0)}getNodeLabel(e){let t=yt.getTranslation(e.label);const n=this.findViewGroup(e);if(n){const l=this.getViewGroupSettings(n)||{};let r={...l.customData||{},...l._liveCustomData||{}};t=le.replaceVars(t,r,"viewGroupData.")}return t}getParentNode(e,t){let n=e.parent;return!n&&t.length>0&&t[1]===e&&(n=t[0]),n}getAllViewGroupSettings(){return ae.getConfigValue("navigation.viewGroupSettings")}getViewGroupSettings(e){const t=this.getAllViewGroupSettings();return e&&t&&t[e]?t[e]:{}}findViewGroup(e,t){if(e.viewGroup)return t&&t!==e?e.viewUrl&&t.viewUrl&&Ee.getLocation(e.viewUrl)===Ee.getLocation(t.viewUrl)?e.viewGroup:void 0:e.viewGroup;if(e.parent)return this.findViewGroup(e.parent,t||e)}getTestId(e){return e.testId?e.testId:oe.prepareForTests(e.pathSegment,e.label)}}const oe=new X2;class $2{constructor(){this.defaultContentViewParamPrefix="~",this.defaultQueryParamSeparator="?",this.defaultModalViewParamName="modal"}getLastNodeObject(e){return[...e.navigationPath].pop()||{}}async getDefaultChildNode(e,t){const n=e.navigationPath[e.navigationPath.length-1],l=t?await t(n,e.context):await ls.getConfigValueFromObjectAsync(n,"children",e.context),r=l.find(a=>a.pathSegment===n.defaultChildNode);if(n.defaultChildNode&&r)return n.defaultChildNode;if(l&&l.length){if(e.navigationPath.length===1){const c=l.find(g=>g.pathSegment);return c&&c.pathSegment||console.error("At least one navigation node in the root hierarchy must have a pathSegment.")}const o=l.find(c=>c.pathSegment&&(c.viewUrl||c.compound||c.externalLink&&c.externalLink.url));if(o)return o.pathSegment}return""}parseParams(e){if(!e)return{};const t={},n=e.replace(/\+/g," "),l=n?n.split("&"):null;return l&&l.forEach(r=>{const a=r.split("=");a&&a.length>0&&(t[decodeURIComponent(a[0])]=decodeURIComponent(a[1]))}),t}encodeParams(e){const t=[];for(const n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}getNodeParams(e){const t={},n=this.getContentViewParamPrefix();return e&&Object.entries(e).forEach(l=>{if(l[0].startsWith(n)){const r=l[0].substr(n.length);t[r]=l[1]}}),this.sanitizeParamsMap(t)}applyPathParams(e,t){let n=e;return t&&Object.entries(t).forEach(([l,r])=>{n=n.replace(new RegExp(":"+l,"g"),r)}),n}getContentViewParamPrefix(){let e=ae.getConfigValue("routing.nodeParamPrefix");return e===!1?e="":e||(e=this.defaultContentViewParamPrefix),e}getModalViewParamName(){let e=ae.getConfigValue("routing.modalPathParam");return e||(e=this.defaultModalViewParamName),e}getHashQueryParamSeparator(){return this.defaultQueryParamSeparator}getQueryParam(e){return this.getQueryParams()[e]}getQueryParams(){return ae.getConfigBooleanValue("routing.useHashRouting")?this.getLocationHashQueryParams():this.getLocationSearchQueryParams()}getLocation(){return location}getLocationHashQueryParams(){const e=we.getLocation().hash.indexOf(this.defaultQueryParamSeparator);return e!==-1?we.parseParams(we.getLocation().hash.slice(e+1)):{}}getLocationSearchQueryParams(){return we.getLocation().search?we.parseParams(we.getLocation().search.slice(1)):{}}composeSearchParamsToRoute(e){if(ae.getConfigBooleanValue("routing.useHashRouting")){const n=location.hash.indexOf(this.defaultQueryParamSeparator);return n!==-1?e+location.hash.slice(n):e}return location.search?e+location.search:e}getModalPathFromPath(){return this.getQueryParam(this.getModalViewParamName())}getModalParamsFromPath(){const e=this.getQueryParam(`${this.getModalViewParamName()}Params`);return e&&JSON.parse(e)}addRouteChangeListener(e){const t=ae.getConfigValue("routing.useHashRouting");On.addEventListener("message",n=>{if(n.data.msg==="refreshRoute"&&n.origin===window.origin){const l=t?lt.getHashPath():lt.getModifiedPathname();e(l)}}),On.addEventListener("popstate",n=>{const l=t?lt.getHashPath(location.href):lt.getModifiedPathname();e(l,n.detail)})}buildRoute(e,t,n){return e.parent?this.buildRoute(e.parent,`/${e.parent.pathSegment}${t}`,n):t+(n?"?"+n:"")}getContext(e,t){return t==null?this.getContext(e,e.context||{}):e.parent?{...this.getContext(e.parent),...t}:t}getRouteLink(e,t,n){const l=n||"";if(e.externalLink&&e.externalLink.url){const a=e.externalLink.url,o={context:we.substituteDynamicParamsInObject(this.getContext(e),t),pathParams:t,nodeParams:{}};return this.substituteViewUrl(a,o)}else if(e.link){const a=e.link.startsWith("/")?e.link:lt.buildFromRelativePath(e);return l+a}const r=we.buildRoute(e,`/${e.pathSegment}`);return l+le.replaceVars(r,t,":",!1)}calculateNodeHref(e,t){const n=we.getRouteLink(e,t,ae.getConfigValue("routing.useHashRouting")?"#":"");return this.getI18nViewUrl(n.url)||n}getNodeHref(e,t){if(ae.getConfigBooleanValue("navigation.addNavHrefs"))return this.calculateNodeHref(e,t)}substituteDynamicParamsInObject(e,t,n=":",l=!1){return Object.entries(e).map(([r,a])=>{const o=l?Object.keys(t).find(c=>a&&a.indexOf(n+c)>=0):Object.keys(t).find(c=>a===n+c);return[r,o?l?a.replace(n+o,t[o]):t[o]:a]}).reduce((r,[a,o])=>Object.assign(r,{[a]:o}),{})}mapPathToNode(e,t){if(!e||!t)return;const n=le.trimLeadingSlash(e).split("/"),l=we.buildRoute(t,`/${t.pathSegment}`),r=le.trimLeadingSlash(l).split("/");if(n.length<r.length)return;let a="";for(let o=0;o<r.length;o++){if(n[o]!==r[o]&&r[o].indexOf(":")!==0)return;a+="/"+n[o]}return a}isDynamicNode(e){return e.pathSegment&&e.pathSegment.length>0&&e.pathSegment[0]===":"}getDynamicNodeValue(e,t){return this.isDynamicNode(e)?t[e.pathSegment.substring(1)]:void 0}getI18nViewUrl(e){const t="{i18n.currentLocale}",n=yt.getCurrentLocale();return e&&e.includes(t)?e.replace(t,n):e}substituteViewUrl(e,t){const n="context.",l="nodeParams.",r="routing.queryParams";if(e=le.replaceVars(e,t.pathParams,":",!1),e=le.replaceVars(e,t.context,n),e=le.replaceVars(e,t.nodeParams,l),e=this.getI18nViewUrl(e),e&&e.includes(r)){const a=e.split("?")[1];if(a){const o=a.split("=")[0];ul.getSearchParams()[o]?e=e.replace(`{${r}.${o}}`,ul.getSearchParams()[o]):e=e.replace(`?${o}={${r}.${o}}`,"")}}return e}sanitizeParamsMap(e){return Object.entries(e).reduce((t,n)=>(t[dr.sanitizeParam(n[0])]=dr.sanitizeParam(n[1]),t),{})}setFeatureToggles(e,t){let n;const l=this.sanitizeParamsMap(this.parseParams(t.split("?")[1]));if(l[e]&&(n=l[e]),!n)return;const r=n.split(",");r.length>0&&r[0]!==""&&r.forEach(a=>Uo.setFeatureToggle(a,!0))}getIntentObject(e){const t=e.split("?intent=")[1];if(t){const n=t.split("?"),l=n[0].split("-"),r=Object.fromEntries(new URLSearchParams(n[1]).entries());return{semanticObject:l[0],action:l[1],params:r}}}getIntentPath(e){const t=ae.getConfigValue("navigation.intentMapping");if(t&&t.length>0){const n=e.replace(/\?intent=/i,"?intent="),l=this.getIntentObject(n);if(l){let r=t.find(o=>o.semanticObject===l.semanticObject&&o.action===l.action);if(!r)return!1;if(r.externalLink)return{...r.externalLink,external:!0};r=r.pathSegment;const a=Object.entries(l.params);if(a&&a.length>0){r=this.resolveDynamicIntentPath(r,l.params);let o=ae.getConfigValue("routing.nodeParamPrefix");o=o||"~",r=r.concat(`?${o}`),a.forEach(([c,g],d)=>{r+=`${d>0?"&"+o:""}${c}=${g}`})}return r}else console.warn("Could not parse given intent link.")}else console.warn("No intent mappings are defined in Luigi configuration.");return!1}resolveDynamicIntentPath(e,t){if(!t)return e;let n=e;for(const[l,r]of Object.entries(t)){const a=new RegExp("/:"+l+"(/|$)","g");n=n.replace(a,`/${r}/`)}return n=n.replace(/\/$/,""),n}prepareSearchParamsForClient(e){const t={};return e&&e.clientPermissions&&e.clientPermissions.urlParameters&&Object.keys(e.clientPermissions.urlParameters).forEach(n=>{n in ul.getSearchParams()&&e.clientPermissions.urlParameters[n].read===!0&&(t[n]=ul.getSearchParams()[n])}),t}addSearchParamsFromClient(e,t,n){const l={...t};if(le.isObject(l)&&e&&e.clientPermissions&&e.clientPermissions.urlParameters){const r={};Object.keys(e.clientPermissions.urlParameters).forEach(a=>{a in l&&e.clientPermissions.urlParameters[a].write===!0&&(r[a]=l[a],delete l[a])});for(const a in l)console.warn(`No permission to add the search param "${a}" to the url`);Object.keys(r).length>0&&ul.addSearchParams(r,n)}}hasIntent(e){return!!e&&e.toLowerCase().includes("#?intent=")}getPageNotFoundRedirectResult(e,t=!1){const n=ae.getConfigValue("routing.pageNotFoundHandler");if(typeof n=="function"){const l=n(e,t);if(l&&(l.redirectTo||l.ignoreLuigiErrorHandling))return{path:l.redirectTo,keepURL:l.keepURL,ignoreLuigiErrorHandling:l.ignoreLuigiErrorHandling}}return{}}async handlePageNotFoundAndRetrieveRedirectPath(e,t,n){if(n)return t;const l=this.getPageNotFoundRedirectResult(t).path;if(l!==void 0)return l;this.showRouteNotFoundAlert(e,t),console.warn(`Could not find the requested route: ${t}`)}showRouteNotFoundAlert(e,t,n=!1){const l={text:yt.getTranslation(n?"luigi.notExactTargetNode":"luigi.requestedRouteNotFound",{route:t}),type:"error",ttl:1};e.showAlert(l,!1)}modifySearchParams(e,t,n){for(const[l,r]of Object.entries(e)){const a=n?`${n}${l}`:l;t.set(a,r),r===void 0&&t.delete(a)}}addParamsOnHashRouting(e,t,n){let l=t;const[r,a]=l.split("?"),o=new URLSearchParams(a);return this.modifySearchParams(e,o,n),l=r,o.toString()!==""&&(l+=`?${o.toString()}`),l}getURLWithoutModalData(e,t){let n=new URLSearchParams(e);return n.delete(t),n.delete(`${t}Params`),n.toString()}handleHistoryState(e,t){return e&&e.modalHistoryLength?e.modalHistoryLength+=1:e={modalHistoryLength:1,historygap:history.length,pathBeforeHistory:t},e}}const we=new $2;class x2{optimizeScope(e){let t="";const n=[];return[...e].sort().forEach(l=>{l&&!n.includes(l)&&(!t||l.indexOf(t)!==0)&&(n.push(l),t=l)}),n}expandScope(e){const t=[];return e.forEach(n=>{let l="";n.split(".").forEach(r=>{l=l+(l?".":"")+r,t.push(l)})}),[...new Set(t)]}doOnStoreChange(e,t,n=[]){e.subscribe(t),this.expandScope(n).forEach(l=>{e.subscribeToScope(t,l)})}}const dn=new x2;class ek{constructor(){this.listeners=[],this.hashChangeWithoutSync=!1}addEventListener(e,t){this.listeners.push({type:e,listenerFn:t}),window.addEventListener(e,t)}removeEventListener(e,t){this.listeners=this.listeners.filter(n=>!(n.type===e&&n.listenerFn===t)),window.removeEventListener(e,t)}removeAllEventListeners(){this.listeners.forEach(e=>{window.removeEventListener(e.type,e.listenerFn)}),this.listeners=[]}}const On=new ek;class tk{constructor(){this.init=!1,this.storage=void 0,this.browseSupported=void 0}checkInit(){this.init||(this.storage=window.localStorage,this.browseSupported=this.supportLocalStorage(),this.init=!0)}supportLocalStorage(){try{return"localStorage"in window&&window.localStorage!==null}catch{return!1}}checkStorageBrowserSupport(){if(!this.browseSupported)throw"Browser does not support local storage"}process(e,t,n,l,r){try{this.checkInit(),this.checkStorageBrowserSupport();const a=this[l];if(typeof a!="function")throw l+" is not a supported operation for the storage";const o=a.bind(this,this.cleanHostname(t),r)();this.sendBackOperation(e,n,"OK",o)}catch(a){console.log(a),this.sendBackOperation(e,n,"ERROR",a)}}cleanHostname(e){return e.replace("http://","").replace("https://","")}setItem(e,t){this.checkKey(t);const n=this.stringifyValue(t.value),l=this.buildKey(e,t.key);this.storage.setItem(l,n)}getItem(e,t){this.checkKey(t);const n=this.buildKey(e,t.key),l=this.storage.getItem(n);if(l)return this.parseJsonIfPossible(l)}buildKey(e,t){return this.buildPrefix(e)+t.trim()}buildPrefix(e){return"Luigi#"+e+"#"}removeItem(e,t){this.checkKey(t);const n=this.buildKey(e,t.key),l=this.storage.getItem(n);if(l)return this.storage.removeItem(n),l}clear(e,t){const n=this.buildPrefix(e);Object.keys(this.storage).filter(l=>l.startsWith(n)).forEach(l=>this.storage.removeItem(l))}has(e,t){this.checkKey(t);const n=this.buildKey(e,t.key);return!!this.storage.getItem(n)}getAllKeys(e,t){const n=this.buildPrefix(e);return Object.keys(this.storage).filter(l=>l.startsWith(n)).map(l=>l.substring(n.length))}checkKey(e){if(!e.key||e.key.trim().length===0)throw"Missing key, we cannot execute storage operation"}parseJsonIfPossible(e){try{return JSON.parse(e)}catch{return e}}stringifyValue(e){if(!e)throw"Value is empty";if(typeof e=="string"||e instanceof String)return e;try{return JSON.stringify(e)}catch(t){throw"Value cannot be stringify, error: "+t}}sendBackOperation(e,t,n,l){let r={msg:"storage",data:{id:t,status:n,result:l}};Ee.getMicrofrontendsInDom().filter(a=>a.id===e).map(a=>a.container).map(a=>Ee.sendMessageToIframe(a,r))}}const nk=new tk;class ik{constructor(){}processUserSettingGroups(){const e=[],t=ae.getConfigValue("userSettings.userSettingGroups"),n=ae.getConfigValue("settings.userSettings.userSettingGroups"),l=t||n;if(le.isObject(l)){for(const r in l){let a={};a[r]=l[r],e.push(a)}return e}return e}createIframe(e,t){const n=Ee.createIframe(e,void 0,void 0,"usersettings"),l=document.querySelector(".iframeUserSettingsCtn");return n.setAttribute("userSettingsGroup",t),n.userSettingsGroup=t,l.appendChild(n),n}getUserSettingsIframesInDom(){const e=document.querySelector(".iframeUserSettingsCtn");return e?[...e.children]:[]}hideUserSettingsIframe(){this.getUserSettingsIframesInDom().forEach(e=>{e.style.display="none"})}findActiveCustomUserSettingsIframe(e){let t=document.querySelectorAll("[userSettingsGroup]");for(let n=0;n<t.length;n++)if(t[n].contentWindow===e)return t[n];return null}}const or=new ik;class lk{constructor(){}handleVisibilityGlobalSearch(){if(!document.querySelector(".lui-global-search"))return;const e=document.querySelector(".lui-global-search"),t=e.offsetWidth<=384;e.classList.toggle("lui-global-search-toggle",t)}}const Kf=new lk;function jf(i,e,t){const n=i.slice();return n[9]=e[t],n}function Jf(i){let e,t,n=(i[9].dataSanitized?i[9].settings.text:"")+"",l,r,a,o,c,g;function d(){return i[4](i[9])}return{c(){e=S("div"),t=S("p"),l=W(),r=S("button"),r.innerHTML='<i class="sap-icon sap-icon--decline"></i>',a=W(),f(t,"class","fd-message-strip__text svelte-dkyena"),f(r,"class","fd-button fd-button--transparent fd-button--compact fd-message-strip__close"),f(r,"aria-label","Close"),f(r,"aria-controls","j2ALl423"),f(r,"data-testid","luigi-alert-dismiss"),f(e,"class",o="fd-message-strip fd-message-strip--"+i[1][i[9].settings.type]+" fd-message-strip--dismissible svelte-dkyena"),f(e,"role","alert"),f(e,"id","j2ALl423"),f(e,"data-testid","luigi-alert")},m(h,p){A(h,e,p),w(e,t),t.innerHTML=n,w(e,l),w(e,r),w(e,a),c||(g=te(r,"click",d),c=!0)},p(h,p){i=h,p&1&&n!==(n=(i[9].dataSanitized?i[9].settings.text:"")+"")&&(t.innerHTML=n),p&3&&o!==(o="fd-message-strip fd-message-strip--"+i[1][i[9].settings.type]+" fd-message-strip--dismissible svelte-dkyena")&&f(e,"class",o)},d(h){h&&L(e),c=!1,g()}}}function rk(i){let e,t=i[0],n=[];for(let l=0;l<t.length;l+=1)n[l]=Jf(jf(i,t,l));return{c(){e=S("div");for(let l=0;l<n.length;l+=1)n[l].c();f(e,"class","fd-shell__overlay luigi-alert--overlay svelte-dkyena"),f(e,"aria-hidden","false")},m(l,r){A(l,e,r);for(let a=0;a<n.length;a+=1)n[a].m(e,null);i[5](e)},p(l,[r]){if(r&11){t=l[0];let a;for(a=0;a<t.length;a+=1){const o=jf(l,t,a);n[a]?n[a].p(o,r):(n[a]=Jf(o),n[a].c(),n[a].m(e,null))}for(;a<n.length;a+=1)n[a].d(1);n.length=t.length}},i:We,o:We,d(l){l&&L(e),ht(n,l),i[5](null)}}}function ak(i,e,t){const n=Jt();let{alertQueue:l}=e,{alertTypeMap:r={info:"information",success:"success",warning:"warning",error:"error"}}=e,a;const o=vt("getUnsavedChangesModalPromise"),c=vt("handleNavigation");qn(()=>{if(!l||!l.length){console.warn("There are no alerts to display");return}if(l.processed)return;const p=l.map(b=>{const{text:m,links:v,closeAfter:C}=b.settings,y=dr.processTextAndLinks(m,v,b.settings.id);if(setTimeout(()=>{y.links.forEach(P=>{g(P,b.settings.id)})}),b.settings.afterInit){const P=a;b.settings.afterInit({dismiss:()=>{P&&P.isConnected?n("alertDismiss",{id:b.settings.id}):console.debug("Alert already dismissed: ",P)},element:P})}return{settings:{...b.settings,text:y.sanitizedText},dataSanitized:!0}});p.processed=!0,t(0,l=p)}),$t(()=>{});function g(p,b){try{const m=document.getElementById(p.elemId);m.dismissListener&&m.removeEventListener("click",m.dismissListener);const v=C=>{if(p.url){const y=!p.url.startsWith("/");C.stopPropagation(),o().then(()=>{const P={params:{link:p.url,relative:y}};c(P)},()=>{})}else p.dismissKey&&n("alertDismiss",{id:b,dismissKey:p.dismissKey})};m.addEventListener("click",v),m.dismissListener=v}catch(m){console.error("Error on Alert::addClickListener",m)}}const d=p=>n("alertDismiss",{id:p.settings.id});function h(p){Je[p?"unshift":"push"](()=>{a=p,t(2,a)})}return i.$$set=p=>{"alertQueue"in p&&t(0,l=p.alertQueue),"alertTypeMap"in p&&t(1,r=p.alertTypeMap)},[l,r,a,n,d,h]}class sk extends Vt{constructor(e){super(),Dt(this,e,ak,rk,At,{alertQueue:0,alertTypeMap:1})}}const Fl=38,Wi=40,vi=13,mi=27,Kr=32,ok=36,uk=35;function Yf(i){let e,t;return{c(){e=S("i"),f(e,"class",t=$n(i[3](i[0].icon))+" svelte-lzffuc")},m(n,l){A(n,e,l)},p(n,l){l&1&&t!==(t=$n(n[3](n[0].icon))+" svelte-lzffuc")&&f(e,"class",t)},d(n){n&&L(e)}}}function Qf(i){let e,t,n=i[0].buttonConfirm+"",l,r,a;return{c(){e=S("div"),t=S("button"),l=Le(n),f(t,"data-testid","luigi-modal-confirm"),f(t,"class","fd-button fd-button--emphasized fd-button--compact fd-message-box__decisive-button confirm-button"),f(e,"class","fd-bar__element")},m(o,c){A(o,e,c),w(e,t),w(t,l),r||(a=te(t,"click",i[4]),r=!0)},p(o,c){c&1&&n!==(n=o[0].buttonConfirm+"")&&Ae(l,n)},d(o){o&&L(e),r=!1,a()}}}function fk(i){let e,t,n,l,r,a,o,c=i[0].header+"",g,d,h,p=i[0].body+"",b,m,v,C,y,P,T=i[0].buttonDismiss+"",E,V,I,H,O,D=i[0].type&&Yf(i),q=i[0].buttonConfirm!==!1&&Qf(i);return{c(){e=S("div"),t=S("section"),n=S("header"),l=S("div"),r=S("div"),D&&D.c(),a=W(),o=S("h2"),g=Le(c),d=W(),h=S("div"),b=W(),m=S("footer"),v=S("div"),q&&q.c(),C=W(),y=S("div"),P=S("button"),E=Le(T),f(o,"class","fd-title fd-title--h5"),f(r,"class","fd-bar__element"),f(l,"class","fd-bar__left"),f(n,"class","fd-bar fd-bar--header fd-message-box__header"),f(h,"class","fd-message-box__body svelte-lzffuc"),f(P,"data-testid","luigi-modal-dismiss"),f(P,"class",V="fd-button "+(i[0].buttonConfirm===!1?"fd-button--emphasized":"fd-button--transparent")+" fd-button--compact fd-message-box__decisive-button dismiss-button"),f(y,"class","fd-bar__element"),f(v,"class","fd-bar__right"),f(m,"class","fd-bar fd-bar--footer fd-message-box__footer"),f(t,"class","fd-message-box__content svelte-lzffuc"),f(e,"class",I="fd-message-box-docs-static fd-message-box fd-message-box--"+i[0].type+" fd-message-box--active svelte-lzffuc"),f(e,"data-testid","luigi-confirmation-modal")},m(Z,$){A(Z,e,$),w(e,t),w(t,n),w(n,l),w(l,r),D&&D.m(r,null),w(r,a),w(r,o),w(o,g),w(t,d),w(t,h),h.innerHTML=p,w(t,b),w(t,m),w(m,v),q&&q.m(v,null),w(v,C),w(v,y),w(y,P),w(P,E),H||(O=[te(window,"keydown",i[1]),te(P,"click",i[5])],H=!0)},p(Z,[$]){Z[0].type?D?D.p(Z,$):(D=Yf(Z),D.c(),D.m(r,a)):D&&(D.d(1),D=null),$&1&&c!==(c=Z[0].header+"")&&Ae(g,c),$&1&&p!==(p=Z[0].body+"")&&(h.innerHTML=p),Z[0].buttonConfirm!==!1?q?q.p(Z,$):(q=Qf(Z),q.c(),q.m(v,C)):q&&(q.d(1),q=null),$&1&&T!==(T=Z[0].buttonDismiss+"")&&Ae(E,T),$&1&&V!==(V="fd-button "+(Z[0].buttonConfirm===!1?"fd-button--emphasized":"fd-button--transparent")+" fd-button--compact fd-message-box__decisive-button dismiss-button")&&f(P,"class",V),$&1&&I!==(I="fd-message-box-docs-static fd-message-box fd-message-box--"+Z[0].type+" fd-message-box--active svelte-lzffuc")&&f(e,"class",I)},i:We,o:We,d(Z){Z&&L(e),D&&D.d(),q&&q.d(),H=!1,Ye(O)}}}function ck(i,e,t){const n=Jt();let{settings:l}=e;const r={confirmation:"question-mark",information:"message-information",warning:"message-warning",error:"message-error",success:"message-success"};Jr(()=>{Ee.enableA11YKeyboardBackdropExceptClassName(".fd-message-box-docs-static")}),$t(()=>{const d={icon:r[l.type],header:yt.getTranslation("luigi.confirmationModal.header"),body:yt.getTranslation("luigi.confirmationModal.body"),buttonDismiss:yt.getTranslation("luigi.button.dismiss"),buttonConfirm:yt.getTranslation("luigi.button.confirm")};t(0,l={...l,body:dr.sanatizeHtmlExceptTextFormatting(l.body)}),t(0,l=Object.assign(d,l)),Ee.disableA11YKeyboardExceptClassName(".fd-message-box-docs-static");const h=l.buttonConfirm?"confirm-button":"dismiss-button";try{document.querySelector(`.${h}`).focus()}catch{console.warn(`Couldn't focus ${h} in modal`)}});function a(d){return oe.renderIconClassName(d)}function o(d){d.keyCode===mi&&n("modalDismiss")}const c=()=>n("modalConfirm"),g=()=>n("modalDismiss");return i.$$set=d=>{"settings"in d&&t(0,l=d.settings)},[l,o,n,a,c,g]}class dk extends Vt{constructor(e){super(),Dt(this,e,ck,fk,At,{settings:0,handleKeydown:1})}get handleKeydown(){return this.$$.ctx[1]}}function hk(i){let e,t,n;const l=i[5].default,r=U_(l,i,i[4],null);return{c(){e=S("div"),r&&r.c(),f(e,"class",t=i[0]+" "+(i[1]==="main"?"zIndexZero":"")+" svelte-az6f9h"),f(e,"aria-hidden","false")},m(a,o){A(a,e,o),r&&r.m(e,null),n=!0},p(a,[o]){r&&r.p&&(!n||o&16)&&W_(r,l,a,a[4],n?H_(l,a[4],o,null):z_(a[4]),null),(!n||o&3&&t!==(t=a[0]+" "+(a[1]==="main"?"zIndexZero":"")+" svelte-az6f9h"))&&f(e,"class",t)},i(a){n||(R(r,a),n=!0)},o(a){U(r,a),n=!1},d(a){a&&L(e),r&&r.d(a)}}}function gk(i,e,t){let{$$slots:n={},$$scope:l}=e;const r=Jt();let{backdropClass:a=""}=e,{backdropActive:o=!1}=e,c=!1,g={},{area:d}=e,{disable:h}=e;const p=()=>{const m="lui-backdrop ";o?g.data&&g.data.heightCssClass?t(0,a=m+g.data.heightCssClass):t(0,a=m+"height-auto"):t(0,a="")},b=m=>{if(!d)return!0;const C=[...Ee.getMicrofrontendsInDom(),{contentWindow:window,luigi:{viewUrl:window.location.href}}].find(y=>y.container&&y.container.contentWindow===m.source);return!(C&&d===C.type)};return $t(()=>{ae.getConfigValue("settings.backdropDisabled")||(p(),On.addEventListener("message",v=>{const C=Ee.getValidMessageSource(v);C&&h!==!0&&(v.data.msg==="luigi.add-backdrop"&&(t(2,o=b(v)),r("stateChanged",{backdropActive:!0}),Ee.disableA11yOfInactiveIframe(C)),v.data.msg==="luigi.remove-backdrop"&&(t(2,o=!1),r("stateChanged",{backdropActive:!1}),c&&Ee.enableA11yOfInactiveIframe()))}))}),qn(()=>{o!==c&&(c=o,p())}),i.$$set=m=>{"backdropClass"in m&&t(0,a=m.backdropClass),"backdropActive"in m&&t(2,o=m.backdropActive),"area"in m&&t(1,d=m.area),"disable"in m&&t(3,h=m.disable),"$$scope"in m&&t(4,l=m.$$scope)},[a,d,o,h,l,n]}class Ul extends Vt{constructor(e){super(),Dt(this,e,gk,hk,At,{backdropClass:0,backdropActive:2,area:1,disable:3})}}function Zf(i){let e,t,n,l,r,a,o,c,g,d,h,p,b,m;t=new Ul({props:{disable:i[2]}});let v=i[0].title&&Xf(i);return{c(){e=S("div"),Ue(t.$$.fragment),n=W(),l=S("div"),r=S("div"),v&&v.c(),a=W(),o=S("div"),c=S("div"),g=S("button"),d=S("i"),f(r,"class","fd-bar__element"),f(l,"class","fd-bar__left"),f(d,"class","sap-icon sap-icon--decline"),f(g,"class","fd-button fd-button--transparent fd-button--compact"),f(g,"aria-label","close"),f(g,"data-testid",h=i[0].closebtn_data_testid&&i[5]?i[0].closebtn_data_testid:"lui-modal-index-"+i[1]),f(c,"class","fd-bar__element"),f(o,"class","fd-bar__right"),f(e,"class","lui-modal-header fd-dialog__header fd-bar fd-bar--header svelte-1rzu3xo")},m(C,y){A(C,e,y),Me(t,e,null),w(e,n),w(e,l),w(l,r),v&&v.m(r,null),w(e,a),w(e,o),w(o,c),w(c,g),w(g,d),p=!0,b||(m=te(g,"click",i[11]),b=!0)},p(C,y){const P={};y&4&&(P.disable=C[2]),t.$set(P),C[0].title?v?v.p(C,y):(v=Xf(C),v.c(),v.m(r,null)):v&&(v.d(1),v=null),(!p||y&35&&h!==(h=C[0].closebtn_data_testid&&C[5]?C[0].closebtn_data_testid:"lui-modal-index-"+C[1]))&&f(g,"data-testid",h)},i(C){p||(R(t.$$.fragment,C),p=!0)},o(C){U(t.$$.fragment,C),p=!1},d(C){C&&L(e),Fe(t),v&&v.d(),b=!1,m()}}}function Xf(i){let e,t=i[0].title+"",n;return{c(){e=S("h2"),n=Le(t),f(e,"class","fd-title fd-title--h5"),f(e,"id","dialog-title-1")},m(l,r){A(l,e,r),w(e,n)},p(l,r){r&1&&t!==(t=l[0].title+"")&&Ae(n,t)},d(l){l&&L(e)}}}function $f(i){let e;const t=i[10].default,n=U_(t,i,i[9],null);return{c(){n&&n.c()},m(l,r){n&&n.m(l,r),e=!0},p(l,r){n&&n.p&&(!e||r&512)&&W_(n,t,l,l[9],e?H_(t,l[9],r,null):z_(l[9]),null)},i(l){e||(R(n,l),e=!0)},o(l){U(n,l),e=!1},d(l){n&&n.d(l)}}}function xf(i){let e;return{c(){e=S("div"),e.innerHTML=`<div class="fd-busy-indicator fd-busy-indicator--m" aria-hidden="false" aria-label="Loading" data-testid="luigi-loading-spinner"><div class="fd-busy-indicator__circle"></div>
53
53
  <div class="fd-busy-indicator__circle"></div>
54
54
  <div class="fd-busy-indicator__circle"></div></div>`,f(e,"class","fd-page spinnerContainer fade-out svelte-1rzu3xo"),f(e,"aria-hidden","false"),f(e,"aria-label","Loading")},m(t,n){A(t,e,n)},d(t){t&&L(e)}}}function _k(i){let e,t,n,l,r,a,o,c,g,d,h,p,b,m,v=(i[5]||i[4]&&i[0].header)&&Zf(i),C=i[4]&&$f(i),y=i[3]&&xf();return{c(){e=S("div"),t=S("div"),v&&v.c(),n=W(),l=S("div"),C&&C.c(),r=W(),a=S("div"),g=W(),y&&y.c(),f(a,"class",o="iframeModalCtn "+(i[4]?"_drawer":"_modal")+" svelte-1rzu3xo"),f(a,"modal-container-index",c=i[4]?void 0:i[1]),f(l,"class","fd-dialog__body svelte-1rzu3xo"),f(t,"class",d="fd-dialog__content "+(i[4]?i[0].backdrop?"drawer drawer-dialog__content drawer__backdrop":"drawer drawer-dialog__content":"lui-modal-mf lui-modal-index-"+i[1])+" svelte-1rzu3xo"),f(t,"data-testid",h=i[5]?"modal-mf":"drawer-mf"),f(t,"role","dialog"),f(t,"aria-modal","true"),f(t,"aria-labelledby","dialog-title-1"),f(e,"class",p=$n(i[5]||i[4]&&i[0].backdrop?"fd-dialog fd-dialog--active":"drawer-dialog")+" svelte-1rzu3xo"),f(e,"style",b=i[5]?"z-index:1001":"")},m(P,T){A(P,e,T),w(e,t),v&&v.m(t,null),w(t,n),w(t,l),C&&C.m(l,null),w(l,r),w(l,a),w(t,g),y&&y.m(t,null),m=!0},p(P,[T]){P[5]||P[4]&&P[0].header?v?(v.p(P,T),T&49&&R(v,1)):(v=Zf(P),v.c(),R(v,1),v.m(t,n)):v&&(ke(),U(v,1,1,()=>{v=null}),Se()),P[4]?C?(C.p(P,T),T&16&&R(C,1)):(C=$f(P),C.c(),R(C,1),C.m(l,r)):C&&(ke(),U(C,1,1,()=>{C=null}),Se()),(!m||T&16&&o!==(o="iframeModalCtn "+(P[4]?"_drawer":"_modal")+" svelte-1rzu3xo"))&&f(a,"class",o),(!m||T&18&&c!==(c=P[4]?void 0:P[1]))&&f(a,"modal-container-index",c),P[3]?y||(y=xf(),y.c(),y.m(t,null)):y&&(y.d(1),y=null),(!m||T&19&&d!==(d="fd-dialog__content "+(P[4]?P[0].backdrop?"drawer drawer-dialog__content drawer__backdrop":"drawer drawer-dialog__content":"lui-modal-mf lui-modal-index-"+P[1])+" svelte-1rzu3xo"))&&f(t,"class",d),(!m||T&32&&h!==(h=P[5]?"modal-mf":"drawer-mf"))&&f(t,"data-testid",h),(!m||T&49&&p!==(p=$n(P[5]||P[4]&&P[0].backdrop?"fd-dialog fd-dialog--active":"drawer-dialog")+" svelte-1rzu3xo"))&&f(e,"class",p),(!m||T&32&&b!==(b=P[5]?"z-index:1001":""))&&f(e,"style",b)},i(P){m||(R(v),R(C),m=!0)},o(P){U(v),U(C),m=!1},d(P){P&&L(e),v&&v.d(),C&&C.d(),y&&y.d()}}}function pk(i,e,t){let{$$slots:n={},$$scope:l}=e,{settings:r}=e,{isDataPrepared:a=!1}=e,{nodepath:o}=e,{modalIndex:c}=e,{disableBackdrop:g}=e;const d=Jt();let h,p,b,m=!1,v=!1,C=!1,y=!1,P=!1,T=!0,E,V=vt("store");const I=G=>oe.getNodeLabel(G),H=async G=>{const K=G&&G.length?le.getPathWithoutHash(G):"",J=we.parseParams(K.split("?")[1]);b=we.getNodeParams(J);const ge=await Mt.extractDataFromPath(G);h=ge.nodeObject,t(4,P=r.isDrawer||typeof h.drawer=="object"),E=P?"._drawer":`[modal-container-index="${c}"]`,t(0,r._liveLabel=!1,r),P?(t(5,T=!1),r.header===void 0?(t(0,r.header=!0,r),t(0,r.title=I(h),r),t(0,r._liveLabel=!0,r)):r.header&&r.header.title&&t(0,r.title=r.header.title,r),(r.backdrop===void 0||!r.backdrop)&&(t(0,r.backdrop=!1,r),d("drawerState",{activeDrawer:!0})),r.size||t(0,r.size="s",r),r.overlap===void 0&&t(0,r.overlap=!0,r)):r.title||(t(0,r.title=I(h),r),t(0,r._liveLabel=!0,r)),p=ge.pathData,t(7,a=!0)},O=async G=>{if(!(m||v))if(a)if(h.webcomponent)t(3,C=!1),P?await Z():await D(),ur.renderWebComponent(h.viewUrl,document.querySelector(E),{context:p.context,clientPermissions:h.clientPermissions||{},pathParams:p.pathParams||{}},h,void 0,!0),d("wcCreated",{modalWC:document.querySelector(E),modalWCData:{...p,nodeParams:b}}),v=!0;else{const K=await q(h.viewUrl,{context:p.context,pathParams:p.pathParams,nodeParams:b});d("iframeCreated",{modalIframe:K,modalIframeData:{...p,nodeParams:b}}),m=!0}else await H(G)},D=async()=>{let G,K;const J=document.querySelector(".lui-modal-index-"+c),{size:ge,width:ie,height:se}=r,ve=/^.?[0-9]{1,3}(%|px|rem|em|vh|vw)$/;if(J.classList.remove("lui-modal-fullscreen"),ie&&ie.match(ve)&&se&&se.match(ve))G=se,K=ie;else switch(ge){case"fullscreen":G="100vh",K="100vw",J.classList.add("lui-modal-fullscreen");break;case"m":G="80%",K="60%";break;case"s":G="80%",K="40%";break;default:G="80%",K="80%"}J.setAttribute("style",`width:${K};height:${G};`)},q=async(G,K)=>{P?await Z():await D(),G&&(G=we.substituteViewUrl(G,K));const J=await Ee.createIframe(G,void 0,h,"modal",K);return document.querySelector(E).appendChild(J),J};async function Z(G){let K="";const J=document.getElementsByClassName("drawer"),ge=document.getElementsByClassName("drawer-dialog");r.size&&(r.size==="l"?K="width:75%;":r.size==="m"?K="width:50%;":r.size==="s"?K="width:25%;":r.size==="xs"&&(K="width:15.5%;")),r.backdrop?J[0].setAttribute("style",K):(ge[0].setAttribute("style",K),J[0].setAttribute("style","width:100%"))}jr(()=>{O(o)});const $=async G=>{G.data.msg==="luigi.show-loading-indicator"&&t(3,C=!0),G.data.msg==="luigi.hide-loading-indicator"&&t(3,C=!1),G.data.msg==="luigi.get-context"&&(y=!0,(!h||!h.loadingIndicator||h.loadingIndicator.hideAutomatically!==!1)&&pe()),G.data.msg==="luigi.close-modal"&&d("close",{type:"modal"}),G.data.msg==="luigi.navigation.updateModalSettings"&&((G.data.updatedModalSettings.title||G.data.updatedModalSettings.title==="")&&t(0,r.title=G.data.updatedModalSettings.title,r),(G.data.updatedModalSettings.size||G.data.updatedModalSettings.width||G.data.updatedModalSettings.height)&&(t(0,r.size=G.data.updatedModalSettings.size,r),t(0,r.height=G.data.updatedModalSettings.height,r),t(0,r.width=G.data.updatedModalSettings.width,r),await D()),ae.getConfigBooleanValue("routing.showModalPathInUrl")&&lt.updateModalDataInUrl(we.getModalPathFromPath(),{title:r.title,size:r.size,height:r.height,width:r.width},G.data.addHistoryEntry))};$t(()=>{dn.doOnStoreChange(V,()=>{r._liveLabel&&h&&t(0,r.title=I(h),r)},["navigation.viewgroupdata"]),On.addEventListener("message",$),r.isDrawer&&!r.backdrop||Ee.disableA11YKeyboardExceptClassName(".lui-modal-index-"+c),window.focus(),setTimeout(()=>{var G;!y&&!h.webcomponent&&((G=h.loadingIndicator)==null?void 0:G.enabled)!==!1&&t(3,C=!0)},250)}),Jr(()=>{On.removeEventListener("message",$),r.isDrawer&&!r.backdrop||Ee.enableA11YKeyboardBackdropExceptClassName(".lui-modal-index-"+c)});function pe(){let G;T?G=document.querySelector(`.lui-modal-mf.lui-modal-index-${c} .spinnerContainer`):G=document.querySelector(".drawer .spinnerContainer"),G&&G.classList.contains("fade-out")&&(G.classList.remove("fade-out"),setTimeout(()=>{t(3,C=!1)},250))}const x=()=>d("close",{activeDrawer:!1});return i.$$set=G=>{"settings"in G&&t(0,r=G.settings),"isDataPrepared"in G&&t(7,a=G.isDataPrepared),"nodepath"in G&&t(8,o=G.nodepath),"modalIndex"in G&&t(1,c=G.modalIndex),"disableBackdrop"in G&&t(2,g=G.disableBackdrop),"$$scope"in G&&t(9,l=G.$$scope)},[r,c,g,C,P,T,d,a,o,l,n,x]}class np extends Vt{constructor(e){super(),Dt(this,e,pk,_k,At,{settings:0,isDataPrepared:7,nodepath:8,modalIndex:1,disableBackdrop:2})}}function ec(i,e,t){const n=i.slice();return n[27]=e[t][0],n[28]=e[t][1],n[29]=e,n[30]=t,n}function tc(i,e,t){const n=i.slice();return n[31]=e[t],n[33]=t,n}function nc(i,e,t){const n=i.slice();return n[31]=e[t],n[33]=t,n}function ic(i){let e,t=i[1][1].settings&&lc(i);return{c(){t&&t.c(),e=Ce()},m(n,l){t&&t.m(n,l),A(n,e,l)},p(n,l){n[1][1].settings?t?t.p(n,l):(t=lc(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){t&&t.d(n),n&&L(e)}}}function lc(i){let e,t,n=Object.entries(i[1][1].settings),l=[];for(let r=0;r<n.length;r+=1)l[r]=hc(ec(i,n,r));return{c(){e=S("div"),t=S("div");for(let r=0;r<l.length;r+=1)l[r].c();f(t,"class","fd-container fd-form-layout-grid-container"),f(e,"class","fd-page__content")},m(r,a){A(r,e,a),w(e,t);for(let o=0;o<l.length;o+=1)l[o].m(t,null)},p(r,a){if(a[0]&16191){n=Object.entries(r[1][1].settings);let o;for(o=0;o<n.length;o+=1){const c=ec(r,n,o);l[o]?l[o].p(c,a):(l[o]=hc(c),l[o].c(),l[o].m(t,null))}for(;o<l.length;o+=1)l[o].d(1);l.length=n.length}},d(r){r&&L(e),ht(l,r)}}}function rc(i){let e;function t(r,a){return r[28].isEditable||r[28].isEditable===void 0?bk:mk}let n=t(i),l=n(i);return{c(){l.c(),e=Ce()},m(r,a){l.m(r,a),A(r,e,a)},p(r,a){n===(n=t(r))&&l?l.p(r,a):(l.d(1),l=n(r),l&&(l.c(),l.m(e.parentNode,e)))},d(r){l.d(r),r&&L(e)}}}function mk(i){let e,t=i[0][i[1][0]][i[27]]+"",n,l;return{c(){e=S("div"),n=Le(t),f(e,"class","fd-text"),f(e,"data-testid","lui-us-input"+i[30]),f(e,"id","fd-form-input-"+i[30]),f(e,"disabled",l=!(i[28].isEditable===void 0||i[28].isEditable))},m(r,a){A(r,e,a),w(e,n)},p(r,a){a[0]&3&&t!==(t=r[0][r[1][0]][r[27]]+"")&&Ae(n,t),a[0]&2&&l!==(l=!(r[28].isEditable===void 0||r[28].isEditable))&&f(e,"disabled",l)},d(r){r&&L(e)}}}function bk(i){let e,t,n,l,r;function a(){i[17].call(e,i[27])}return{c(){e=S("input"),f(e,"class","fd-input fd-input--compact"),f(e,"type","text"),f(e,"aria-label","Image label"),f(e,"placeholder",t=i[5](i[28].placeholder)),f(e,"data-testid","lui-us-input"+i[30]),f(e,"id","fd-form-input-"+i[30]),e.disabled=n=!(i[28].isEditable===void 0||i[28].isEditable)},m(o,c){A(o,e,c),zf(e,i[0][i[1][0]][i[27]]),l||(r=te(e,"input",a),l=!0)},p(o,c){i=o,c[0]&34&&t!==(t=i[5](i[28].placeholder))&&f(e,"placeholder",t),c[0]&2&&n!==(n=!(i[28].isEditable===void 0||i[28].isEditable))&&(e.disabled=n),c[0]&3&&e.value!==i[0][i[1][0]][i[27]]&&zf(e,i[0][i[1][0]][i[27]])},d(o){o&&L(e),l=!1,r()}}}function ac(i){let e,t,n,l,r,a,o=i[11](i[0][i[1][0]][i[27]],i[28].options)+"",c,g,d,h,p,b,m,v=Array.isArray(i[28].options),C,y;function P(...V){return i[18](i[27],i[30],i[28],...V)}function T(){return i[19](i[28])}let E=v&&sc(i);return{c(){e=S("div"),t=S("div"),n=S("div"),l=S("div"),r=S("button"),a=S("span"),c=Le(o),d=W(),h=S("span"),h.innerHTML='<i class="sap-icon--slim-arrow-down"></i>',b=W(),m=S("div"),E&&E.c(),f(a,"class","fd-select__text-content"),f(a,"data-testid","lui-us-input"+i[30]),f(a,"disabled",g=!(i[28].isEditable===void 0||i[28].isEditable)),f(h,"class","fd-button fd-button--transparent fd-select__button lui-activate-dropdown"),f(r,"tabindex","0"),f(r,"aria-expanded","false"),f(r,"aria-haspopup","listbox"),f(r,"aria-label","Language"),f(r,"class","fd-select__control lui-anchor-node svelte-1q4f8ra"),f(r,"data-testid",p="lui-us-"+i[28].type+"-"+i[30]),f(r,"id","fd-form-input-"+i[30]),f(l,"class","fd-select fd-select--compact"),f(n,"class","fd-popover__control"),f(n,"aria-expanded","false"),f(n,"aria-haspopup","true"),f(m,"class","fd-popover__body fd-popover__body--no-arrow fd-popover__body--dropdown fd-popover__body--dropdown-fill"),f(m,"aria-hidden","true"),f(t,"class","fd-popover"),f(e,"class","fd-form-item")},m(V,I){A(V,e,I),w(e,t),w(t,n),w(n,l),w(l,r),w(r,a),w(a,c),w(r,d),w(r,h),w(t,b),w(t,m),E&&E.m(m,null),C||(y=[te(r,"keydown",P),te(n,"click",Ut(T))],C=!0)},p(V,I){i=V,I[0]&3&&o!==(o=i[11](i[0][i[1][0]][i[27]],i[28].options)+"")&&Ae(c,o),I[0]&2&&g!==(g=!(i[28].isEditable===void 0||i[28].isEditable))&&f(a,"disabled",g),I[0]&2&&p!==(p="lui-us-"+i[28].type+"-"+i[30])&&f(r,"data-testid",p),I[0]&2&&(v=Array.isArray(i[28].options)),v?E?E.p(i,I):(E=sc(i),E.c(),E.m(m,null)):E&&(E.d(1),E=null)},d(V){V&&L(e),E&&E.d(),C=!1,Ye(y)}}}function sc(i){let e,t=i[28].options,n=[];for(let l=0;l<t.length;l+=1)n[l]=oc(nc(i,t,l));return{c(){e=S("ul");for(let l=0;l<n.length;l+=1)n[l].c();f(e,"class","fd-list fd-list--compact fd-list--dropdown"),f(e,"id","fd-form-input-dropdown-"+i[30]),f(e,"role","listbox")},m(l,r){A(l,e,r);for(let a=0;a<n.length;a+=1)n[a].m(e,null)},p(l,r){if(r[0]&4634){t=l[28].options;let a;for(a=0;a<t.length;a+=1){const o=nc(l,t,a);n[a]?n[a].p(o,r):(n[a]=oc(o),n[a].c(),n[a].m(e,null))}for(;a<n.length;a+=1)n[a].d(1);n.length=t.length}},d(l){l&&L(e),ht(n,l)}}}function oc(i){let e,t,n=i[12](i[31])+"",l,r,a,o,c;function g(){return i[20](i[27],i[31],i[33])}return{c(){e=S("li"),t=S("span"),l=Le(n),r=W(),f(t,"class","fd-list__title"),f(e,"role","option"),f(e,"class","fd-list__item"),f(e,"data-testid","lui-us-option"+i[30]+"_"+i[33]),f(e,"aria-selected",a=i[4]===i[33]),f(e,"tabindex","0"),jt(e,"is-selected",i[4]===i[33]),jt(e,"is-focus",i[4]===i[33])},m(d,h){A(d,e,h),w(e,t),w(t,l),w(e,r),o||(c=[te(e,"click",g),te(e,"keydown",i[21])],o=!0)},p(d,h){i=d,h[0]&2&&n!==(n=i[12](i[31])+"")&&Ae(l,n),h[0]&16&&a!==(a=i[4]===i[33])&&f(e,"aria-selected",a),h[0]&16&&jt(e,"is-selected",i[4]===i[33]),h[0]&16&&jt(e,"is-focus",i[4]===i[33])},d(d){d&&L(e),o=!1,Ye(c)}}}function uc(i){let e,t,n,l=i[28].options,r=[];for(let a=0;a<l.length;a+=1)r[a]=fc(tc(i,l,a));return{c(){e=S("div"),t=S("div");for(let a=0;a<r.length;a+=1)r[a].c();f(t,"class",n="fd-segmented-button enum-buttons-container-"+i[27]+" svelte-1q4f8ra"),f(t,"role","group"),f(t,"aria-label","Group label"),f(e,"class","fd-form-item")},m(a,o){A(a,e,o),w(e,t);for(let c=0;c<r.length;c+=1)r[c].m(t,null)},p(a,o){if(o[0]&13315){l=a[28].options;let c;for(c=0;c<l.length;c+=1){const g=tc(a,l,c);r[c]?r[c].p(g,o):(r[c]=fc(g),r[c].c(),r[c].m(t,null))}for(;c<r.length;c+=1)r[c].d(1);r.length=l.length}o[0]&2&&n!==(n="fd-segmented-button enum-buttons-container-"+a[27]+" svelte-1q4f8ra")&&f(t,"class",n)},d(a){a&&L(e),ht(r,a)}}}function fc(i){let e,t=i[12](i[31])+"",n,l,r,a,o,c,g,d;function h(){return i[22](i[27],i[31])}return{c(){e=S("button"),n=Le(t),l=W(),f(e,"class",r="lui-fd-enum-button fd-button fd-button--compact "+(i[0][i[1][0]][i[27]]===(i[31].value||i[31])?"is-selected":"")),f(e,"id",a=i[13]("lui-us-enum_button",i[27],i[31])),f(e,"data-testid",o=i[13]("lui-us-enum_button",i[27],i[31])),e.disabled=c=!(i[28].isEditable===void 0||i[28].isEditable)},m(p,b){A(p,e,b),w(e,n),w(e,l),g||(d=te(e,"click",h),g=!0)},p(p,b){i=p,b[0]&2&&t!==(t=i[12](i[31])+"")&&Ae(n,t),b[0]&3&&r!==(r="lui-fd-enum-button fd-button fd-button--compact "+(i[0][i[1][0]][i[27]]===(i[31].value||i[31])?"is-selected":""))&&f(e,"class",r),b[0]&2&&a!==(a=i[13]("lui-us-enum_button",i[27],i[31]))&&f(e,"id",a),b[0]&2&&o!==(o=i[13]("lui-us-enum_button",i[27],i[31]))&&f(e,"data-testid",o),b[0]&2&&c!==(c=!(i[28].isEditable===void 0||i[28].isEditable))&&(e.disabled=c)},d(p){p&&L(e),g=!1,d()}}}function cc(i){let e,t,n,l,r,a,o,c,g,d;function h(){i[23].call(n,i[27])}return{c(){e=S("label"),t=S("span"),n=S("input"),a=W(),o=S("div"),o.innerHTML='<div class="fd-switch__track"><span class="fd-switch__handle" role="presentation"></span></div>',f(n,"class","fd-switch__input"),f(n,"type","checkbox"),f(n,"aria-labelledby","label1"),f(n,"data-testid",l="lui-us-checkbox-switch_"+i[27]),n.disabled=r=!(i[28].isEditable===void 0||i[28].isEditable),f(o,"class","fd-switch__slider"),f(t,"class","fd-switch__control"),f(e,"class","fd-switch fd-switch--compact"),f(e,"data-testid",c="lui-us-label-switch_"+i[27])},m(p,b){A(p,e,b),w(e,t),w(t,n),n.checked=i[0][i[1][0]][i[27]],w(t,a),w(t,o),g||(d=te(n,"change",h),g=!0)},p(p,b){i=p,b[0]&2&&l!==(l="lui-us-checkbox-switch_"+i[27])&&f(n,"data-testid",l),b[0]&2&&r!==(r=!(i[28].isEditable===void 0||i[28].isEditable))&&(n.disabled=r),b[0]&3&&(n.checked=i[0][i[1][0]][i[27]]),b[0]&2&&c!==(c="lui-us-label-switch_"+i[27])&&f(e,"data-testid",c)},d(p){p&&L(e),g=!1,d()}}}function dc(i){let e,t,n,l;function r(){i[24].call(e,i[27])}return{c(){e=S("input"),f(e,"type","checkbox"),f(e,"class","fd-checkbox"),e.disabled=t=!(i[28].isEditable===void 0||i[28].isEditable)},m(a,o){A(a,e,o),e.checked=i[0][i[1][0]][i[27]],n||(l=te(e,"change",r),n=!0)},p(a,o){i=a,o[0]&2&&t!==(t=!(i[28].isEditable===void 0||i[28].isEditable))&&(e.disabled=t),o[0]&3&&(e.checked=i[0][i[1][0]][i[27]])},d(a){a&&L(e),n=!1,l()}}}function hc(i){let e,t,n,l=i[5](i[28].label)+"",r,a,o,c,g,d,h=i[28].type==="enum"&&i[28].style==="button"&&Array.isArray(i[28].options),p,b,m,v=i[28].type==="string"&&rc(i),C=i[28].type==="enum"&&(i[28].style===void 0||i[28].style==="list")&&ac(i),y=h&&uc(i),P=i[28].type==="boolean"&&(!i[28].style||i[28].style==="switch")&&cc(i),T=i[28].type==="boolean"&&i[28].style==="checkbox"&&dc(i);return{c(){e=S("div"),t=S("div"),n=S("label"),r=Le(l),a=Le(":"),o=W(),c=S("div"),v&&v.c(),g=W(),C&&C.c(),d=W(),y&&y.c(),p=W(),P&&P.c(),b=W(),T&&T.c(),m=W(),f(n,"class","fd-form-label svelte-1q4f8ra"),f(n,"for","fd-form-input-"+i[30]),f(t,"class","fd-col fd-col--4 svelte-1q4f8ra"),f(c,"class","fd-col fd-col--8 svelte-1q4f8ra"),f(e,"class","fd-row svelte-1q4f8ra")},m(E,V){A(E,e,V),w(e,t),w(t,n),w(n,r),w(n,a),w(e,o),w(e,c),v&&v.m(c,null),w(c,g),C&&C.m(c,null),w(c,d),y&&y.m(c,null),w(c,p),P&&P.m(c,null),w(c,b),T&&T.m(c,null),w(e,m)},p(E,V){V[0]&34&&l!==(l=E[5](E[28].label)+"")&&Ae(r,l),E[28].type==="string"?v?v.p(E,V):(v=rc(E),v.c(),v.m(c,g)):v&&(v.d(1),v=null),E[28].type==="enum"&&(E[28].style===void 0||E[28].style==="list")?C?C.p(E,V):(C=ac(E),C.c(),C.m(c,d)):C&&(C.d(1),C=null),V[0]&2&&(h=E[28].type==="enum"&&E[28].style==="button"&&Array.isArray(E[28].options)),h?y?y.p(E,V):(y=uc(E),y.c(),y.m(c,p)):y&&(y.d(1),y=null),E[28].type==="boolean"&&(!E[28].style||E[28].style==="switch")?P?P.p(E,V):(P=cc(E),P.c(),P.m(c,b)):P&&(P.d(1),P=null),E[28].type==="boolean"&&E[28].style==="checkbox"?T?T.p(E,V):(T=dc(E),T.c(),T.m(c,null)):T&&(T.d(1),T=null)},d(E){E&&L(e),v&&v.d(),C&&C.d(),y&&y.d(),P&&P.d(),T&&T.d()}}}function vk(i){let e,t,n,l=i[1]&&i[1][0]&&i[1][1]&&ic(i);return{c(){e=S("div"),l&&l.c(),f(e,"class","lui-usersettings-content svelte-1q4f8ra")},m(r,a){A(r,e,a),l&&l.m(e,null),t||(n=[te(window,"click",i[7]),te(window,"blur",i[7])],t=!0)},p(r,a){r[1]&&r[1][0]&&r[1][1]?l?l.p(r,a):(l=ic(r),l.c(),l.m(e,null)):l&&(l.d(1),l=null)},i:We,o:We,d(r){r&&L(e),l&&l.d(),t=!1,Ye(n)}}}function ns(i,e,t){if(i&&t>0)return i.matches(e)?i:ns(i.parentNode,e,t-1)}function wk(i,e,t){let n,{userSettingGroup:l}=e,{storedUserSettingData:r}=e;const a=Jt();let o=vt("getTranslation");wi(i,o,x=>t(5,n=x));let c,{isComboOpen:g}=e;function d(){a("updateSettingsObject",{storedUserSettingData:r})}const h=()=>{p()};function p(x){document.querySelectorAll(".lui-usersettings-content .fd-popover__control").forEach(G=>{m(G,!1)})}function b(x,G){let K=ns(x.target,".fd-popover__control",20),J=K.getAttribute("aria-expanded")==="true";(G||G===void 0)&&(p(),m(K,!J))}function m(x,G){const K=x.querySelector(".lui-activate-dropdown"),J=x.parentNode.querySelector(".fd-popover__body"),ge=x.parentNode.querySelector(".fd-select__control");x.setAttribute("aria-expanded",G),J.setAttribute("aria-hidden",!G),ge.setAttribute("aria-expanded",G),K.setAttribute("aria-expanded",G),t(14,g=G)}function v(x,G,K){t(4,c=K),t(0,r[l[0]][x]=G.value||G,r)}function C(x,G){document.querySelectorAll(".enum-buttons-container-"+x+" button").forEach(K=>{const J=K.getAttribute("id"),ge=`lui-us-enum_button_${x}_option`;J===ge?K.classList.add("fd-button--emphasized"):K.classList.remove("fd-button--emphasized")}),t(0,r[l[0]][x]=G.value||G,r)}function y(x,G){let K;if(Array.isArray(G)){for(let J=0;J<G.length;J++)if(le.isObject(G[J])){if(G[J].value&&G[J].value===x){K=G[J].label,t(4,c=J);break}}else{K=x,t(4,c=G.indexOf(x));break}return n(K)}}function P(x){return n(le.isObject(x)?x.label:x)}function T(x,G,K){return le.isObject(K)?`${x}_${G}_${K.value}`:`${x}_${G}_${K}`}function E(x,G,K,J){let ge=ns(x.target,".lui-anchor-node",20);const ie=document.getElementById(`fd-form-input-dropdown-${K}`).children;let se=-1;if([...ie].forEach((ve,re)=>{ve.classList.contains("is-focus")&&(se=re)}),g){if(x.keyCode===Fl&&x.altKey&&(ge.click(),ge.focus()),x.keyCode===Wi&&!x.altKey){if(se===-1){se=0,ie.item(se).classList.add("is-focus");return}se<J.options.length-1&&(ie.item(se).classList.remove("is-focus"),se+=1,ie.item(se).classList.add("is-focus"))}if(x.keyCode===Fl&&!x.altKey){if(se===-1){se=se.length-1,ie.item(se).classList.add("is-focus");return}se>0&&se<J.options.length&&(ie.item(se).classList.remove("is-focus"),se-=1,ie.item(se).classList.add("is-focus"))}(x.keyCode===vi||x.keyCode===Kr)&&v(G,J.options[se],se)}else ge.focus(),x.keyCode===Wi&&x.altKey&&ge.click(),x.keyCode===Wi&&!x.altKey&&se<J.options.length-1&&v(G,J.options[se+1],se+1),x.keyCode===Fl&&!x.altKey&&se>0&&se<J.options.length&&v(G,J.options[se-1],se-1)}function V(x){if(g){let G=ns(x.target,".fd-popover",20);G.blur(),(x.keyCode===Kr||x.keyCode===vi)&&(x.target.click(),p(),setTimeout(()=>{G.focus()},0))}}y();function I(x){r[l[0]][x]=this.value,t(0,r)}const H=(x,G,K,J)=>E(J,x,G,K),O=x=>b(event,x.isEditable),D=(x,G,K)=>v(x,G,K),q=x=>V(x),Z=(x,G)=>C(x,G);function $(x){r[l[0]][x]=this.checked,t(0,r)}function pe(x){r[l[0]][x]=this.checked,t(0,r)}return i.$$set=x=>{"userSettingGroup"in x&&t(1,l=x.userSettingGroup),"storedUserSettingData"in x&&t(0,r=x.storedUserSettingData),"isComboOpen"in x&&t(14,g=x.isComboOpen)},[r,l,E,V,c,n,o,p,b,v,C,y,P,T,g,d,h,I,H,O,D,q,Z,$,pe]}class kk extends Vt{constructor(e){super(),Dt(this,e,wk,vk,At,{userSettingGroup:1,storedUserSettingData:0,isComboOpen:14,updateSettingsObject:15,closeDropDown:16,handleKeyListDropdown:2,keyPressDropdownNode:3},null,[-1,-1])}get updateSettingsObject(){return this.$$.ctx[15]}get closeDropDown(){return this.$$.ctx[16]}get handleKeyListDropdown(){return this.$$.ctx[2]}get keyPressDropdownNode(){return this.$$.ctx[3]}}const{window:gc}=gl;function _c(i,e,t){const n=i.slice();return n[30]=e[t][0],n[11]=e[t][1],n[36]=t,n}function pc(i,e,t){const n=i.slice();return n[37]=e[t],n}function mc(i){let e,t,n;function l(o,c){return c[0]&2&&(e=null),e==null&&(e=!!o[19](o[37][1])),e?Ck:Sk}let r=l(i,[-1,-1]),a=r(i);return{c(){a.c(),t=W(),n=S("i"),f(n,"role","presentation"),f(n,"class","sap-icon")},m(o,c){a.m(o,c),A(o,t,c),A(o,n,c)},p(o,c){r===(r=l(o,c))&&a?a.p(o,c):(a.d(1),a=r(o),a&&(a.c(),a.m(t.parentNode,t)))},d(o){a.d(o),o&&L(t),o&&L(n)}}}function Sk(i){let e,t,n,l,r,a=i[37][1].initials&&bc(i);return{c(){e=S("span"),l=W(),a&&a.c(),r=Ce(),f(e,"class",t=$n(i[37][1].iconClassAttribute||"fd-image--s fd-list__thumbnail")+" svelte-12fj8b7"),f(e,"aria-label",n=i[37][1].altText?i[37][1].altText:""),Vn(e,"background-image","url('"+i[37][1].icon+"')"),Vn(e,"background-size","cover")},m(o,c){A(o,e,c),A(o,l,c),a&&a.m(o,c),A(o,r,c)},p(o,c){c[0]&2&&t!==(t=$n(o[37][1].iconClassAttribute||"fd-image--s fd-list__thumbnail")+" svelte-12fj8b7")&&f(e,"class",t),c[0]&2&&n!==(n=o[37][1].altText?o[37][1].altText:"")&&f(e,"aria-label",n),c[0]&2&&Vn(e,"background-image","url('"+o[37][1].icon+"')"),o[37][1].initials?a?a.p(o,c):(a=bc(o),a.c(),a.m(r.parentNode,r)):a&&(a.d(1),a=null)},d(o){o&&L(e),o&&L(l),a&&a.d(o),o&&L(r)}}}function Ck(i){let e,t,n;return{c(){e=S("span"),t=S("i"),f(t,"role","presentation"),f(t,"class",n=$n(i[18](i[37][1].icon))+" svelte-12fj8b7"),f(e,"class","fd-list__thumbnail")},m(l,r){A(l,e,r),w(e,t)},p(l,r){r[0]&2&&n!==(n=$n(l[18](l[37][1].icon))+" svelte-12fj8b7")&&f(t,"class",n)},d(l){l&&L(e)}}}function bc(i){let e,t=(i[37][1].initials?i[37][1].initials:"")+"",n,l,r;return{c(){e=S("span"),n=Le(t),f(e,"class",l=$n(i[37][1].iconClassAttribute+" lui-profile-initials"||"fd-image--s fd-list__thumbnail")+" svelte-12fj8b7"),f(e,"aria-label",r=i[37][1].altText?i[37][1].altText:"")},m(a,o){A(a,e,o),w(e,n)},p(a,o){o[0]&2&&t!==(t=(a[37][1].initials?a[37][1].initials:"")+"")&&Ae(n,t),o[0]&2&&l!==(l=$n(a[37][1].iconClassAttribute+" lui-profile-initials"||"fd-image--s fd-list__thumbnail")+" svelte-12fj8b7")&&f(e,"class",l),o[0]&2&&r!==(r=a[37][1].altText?a[37][1].altText:"")&&f(e,"aria-label",r)},d(a){a&&L(e)}}}function vc(i){let e,t,n,l,r,a=i[10](i[37][1].label?i[37][1].label:"")+"",o,c,g,d=i[10](i[37][1].sublabel?i[37][1].sublabel:"")+"",h,p,b,m,v=i[37][1].icon&&mc(i);function C(){return i[21](i[37])}function y(...P){return i[22](i[36],...P)}return{c(){e=S("li"),t=S("a"),v&&v.c(),n=W(),l=S("div"),r=S("div"),o=Le(a),c=W(),g=S("div"),h=Le(d),p=W(),f(r,"class","fd-list__title"),f(g,"class","fd-list__byline svelte-12fj8b7"),f(l,"class","fd-list__content"),f(t,"tabindex","-1"),f(t,"class","fd-list__link"),f(t,"href","#"),f(e,"class","fd-list__item fd-list__item--link lui-us-navlist__item"),f(e,"data-testid","us-navigation-item"),f(e,"tabindex","0")},m(P,T){A(P,e,T),w(e,t),v&&v.m(t,null),w(t,n),w(t,l),w(l,r),w(r,o),w(l,c),w(l,g),w(g,h),w(e,p),b||(m=[te(e,"click",wt(C)),te(e,"keydown",y)],b=!0)},p(P,T){i=P,i[37][1].icon?v?v.p(i,T):(v=mc(i),v.c(),v.m(t,n)):v&&(v.d(1),v=null),T[0]&1026&&a!==(a=i[10](i[37][1].label?i[37][1].label:"")+"")&&Ae(o,a),T[0]&1026&&d!==(d=i[10](i[37][1].sublabel?i[37][1].sublabel:"")+"")&&Ae(h,d)},d(P){P&&L(e),v&&v.d(),b=!1,Ye(m)}}}function wc(i){let e,t=Object.entries(i[11]),n=[];for(let l=0;l<t.length;l+=1)n[l]=vc(pc(i,t,l));return{c(){for(let l=0;l<n.length;l+=1)n[l].c();e=Ce()},m(l,r){for(let a=0;a<n.length;a+=1)n[a].m(l,r);A(l,e,r)},p(l,r){if(r[0]&803846){t=Object.entries(l[11]);let a;for(a=0;a<t.length;a+=1){const o=pc(l,t,a);n[a]?n[a].p(o,r):(n[a]=vc(o),n[a].c(),n[a].m(e.parentNode,e))}for(;a<n.length;a+=1)n[a].d(1);n.length=t.length}},d(l){ht(n,l),l&&L(e)}}}function kc(i){let e,t,n,l;function r(c){i[23](c)}function a(c){i[24](c)}let o={storedUserSettingData:i[0],userSettingGroup:i[11]};return i[9]!==void 0&&(o.closeDropDown=i[9]),i[8]!==void 0&&(o.isComboOpen=i[8]),e=new kk({props:o}),Je.push(()=>bt(e,"closeDropDown",r,i[9])),Je.push(()=>bt(e,"isComboOpen",a,i[8])),e.$on("updateSettingsObject",i[15]),{c(){Ue(e.$$.fragment)},m(c,g){Me(e,c,g),l=!0},p(c,g){const d={};g[0]&1&&(d.storedUserSettingData=c[0]),g[0]&2048&&(d.userSettingGroup=c[11]),!t&&g[0]&512&&(t=!0,d.closeDropDown=c[9],mt(()=>t=!1)),!n&&g[0]&256&&(n=!0,d.isComboOpen=c[8],mt(()=>n=!1)),e.$set(d)},i(c){l||(R(e.$$.fragment,c),l=!0)},o(c){U(e.$$.fragment,c),l=!1},d(c){Fe(e,c)}}}function yk(i){let e,t,n,l,r,a,o,c=i[10](i[4])+"",g,d,h,p,b,m,v,C,y,P=i[10](i[7])+"",T,E,V,I,H,O,D,q,Z,$,pe,x=i[10](i[5])+"",G,K,J,ge,ie=i[10](i[6])+"",se,ve,re,Re,ze=Object.entries(i[1]),ne=[];for(let Te=0;Te<ze.length;Te+=1)ne[Te]=wc(_c(i,ze,Te));let ce=i[11]&&kc(i);return{c(){e=S("div"),t=S("div"),n=S("div"),l=S("div"),r=S("div"),a=S("div"),o=S("h2"),g=Le(c),d=W(),h=S("div"),p=S("ul");for(let Te=0;Te<ne.length;Te+=1)ne[Te].c();b=W(),m=S("div"),v=S("button"),v.innerHTML='<i class="sap-icon--navigation-left-arrow"></i>',C=W(),y=S("h2"),T=Le(P),E=W(),V=S("div"),I=S("div"),ce&&ce.c(),H=W(),O=S("div"),D=W(),q=S("footer"),Z=S("div"),$=S("div"),pe=S("button"),G=Le(x),K=W(),J=S("div"),ge=S("button"),se=Le(ie),f(o,"class","fd-title fd-title--h5 svelte-12fj8b7"),f(o,"id","dialog-title-2"),f(a,"class","fd-side-nav__group-header svelte-12fj8b7"),f(p,"class","fd-list fd-list--byline fd-list--navigation lui-us-list"),f(h,"class","fd-side-nav__main-navigation lui-fd-side-nav__main-navigation svelte-12fj8b7"),f(r,"class","fd-side-nav svelte-12fj8b7"),f(l,"class","lui-usersettings-left-nav svelte-12fj8b7"),f(v,"class","fd-button fd-button--transparent fd-button--compact lui-usersettings-content-header__back-btn svelte-12fj8b7"),f(y,"class","fd-title fd-title--h5 svelte-12fj8b7"),f(m,"class","fd-side-nav__group-header lui-usersettings-dialog-sub-header svelte-12fj8b7"),f(I,"class","usersettingseditor mf-wrapper svelte-12fj8b7"),f(O,"class","iframeUserSettingsCtn iframe-wrapper svelte-12fj8b7"),f(V,"class","lui-usersettings-content svelte-12fj8b7"),f(n,"class","fd-dialog__body lui-usersettings-body svelte-12fj8b7"),f(pe,"data-testid","lui-us-saveBtn"),f(pe,"class","fd-dialog__decisive-button fd-button fd-button--emphasized fd-button--compact confirm-button"),f($,"class","fd-bar__element"),f(ge,"data-testid","lui-us-dismissBtn"),f(ge,"class","fd-dialog__decisive-button fd-button fd-button--transparent fd-button--compact"),f(J,"class","fd-bar__element"),f(Z,"class","fd-bar__right"),f(q,"class","fd-dialog__footer fd-bar fd-bar--footer"),f(t,"class","fd-dialog__content lui-usersettings-dialog-size svelte-12fj8b7"),f(t,"role","dialog"),f(t,"aria-modal","true"),f(t,"aria-labelledby","dialog-title-2"),f(e,"class","fd-dialog fd-dialog--active lui-usersettings-dialog svelte-12fj8b7"),f(e,"tabindex","0")},m(Te,tt){A(Te,e,tt),w(e,t),w(t,n),w(n,l),w(l,r),w(r,a),w(a,o),w(o,g),w(r,d),w(r,h),w(h,p);for(let Be=0;Be<ne.length;Be+=1)ne[Be].m(p,null);w(n,b),w(n,m),w(m,v),w(m,C),w(m,y),w(y,T),w(n,E),w(n,V),w(V,I),ce&&ce.m(I,null),w(V,H),w(V,O),w(t,D),w(t,q),w(q,Z),w(Z,$),w($,pe),w(pe,G),w(Z,K),w(Z,J),w(J,ge),w(ge,se),ve=!0,re||(Re=[te(gc,"resize",i[20]),te(gc,"keydown",i[3]),te(v,"click",i[17]),te(pe,"click",i[25]),te(ge,"click",i[26])],re=!0)},p(Te,tt){if((!ve||tt[0]&1040)&&c!==(c=Te[10](Te[4])+"")&&Ae(g,c),tt[0]&803846){ze=Object.entries(Te[1]);let Be;for(Be=0;Be<ze.length;Be+=1){const rt=_c(Te,ze,Be);ne[Be]?ne[Be].p(rt,tt):(ne[Be]=wc(rt),ne[Be].c(),ne[Be].m(p,null))}for(;Be<ne.length;Be+=1)ne[Be].d(1);ne.length=ze.length}(!ve||tt[0]&1152)&&P!==(P=Te[10](Te[7])+"")&&Ae(T,P),Te[11]?ce?(ce.p(Te,tt),tt[0]&2048&&R(ce,1)):(ce=kc(Te),ce.c(),R(ce,1),ce.m(I,null)):ce&&(ke(),U(ce,1,1,()=>{ce=null}),Se()),(!ve||tt[0]&1056)&&x!==(x=Te[10](Te[5])+"")&&Ae(G,x),(!ve||tt[0]&1088)&&ie!==(ie=Te[10](Te[6])+"")&&Ae(se,ie)},i(Te){ve||(R(ce),ve=!0)},o(Te){U(ce),ve=!1},d(Te){Te&&L(e),ht(ne,Te),ce&&ce.d(),re=!1,Ye(Re)}}}function Sc(i,e){let t={};return i.forEach(n=>{for(let l in n){for(let r in n[l].settings)n[l].settings[r]="";t[l]={...n[l].settings,...e[l]}}}),t}function Pk(){document.querySelector(".iframeUserSettingsCtn").style.display="block",document.querySelector(".usersettingseditor").style.display="none"}function Nk(){document.querySelector(".iframeUserSettingsCtn").style.display="none",document.querySelector(".usersettingseditor").style.display="block"}function ip(i,e,t){if(i&&t>0)return i.matches(e)?i:ip(i.parentNode,e,t-1)}function Cc(){document.querySelector(".usersettings-leftNavVisible")?document.querySelector(".confirm-button").style.display="block":document.querySelector(".confirm-button").style.display="none"}function Tk(i,e,t){let n,{userSettingGroups:l}=e;const r=Jt();let a,{storedUserSettings:o={}}=e,c={},g=vt("getTranslation");wi(i,g,se=>t(10,n=se));let d=dl.userSettingsDialog.dialogHeader,h=dl.userSettingsDialog.saveBtn,p=dl.userSettingsDialog.dismissBtn,b={},m,v,C,y;Jr(()=>{Ee.enableA11YKeyboardBackdropExceptClassName(".lui-usersettings-dialog")}),$t(()=>{const se=ae.getConfigValue("userSettings.userSettingsDialog"),ve=se||ae.getConfigValue("settings.userSettings.userSettingsDialog");ve&&(t(4,d=ve.dialogHeader?ve.dialogHeader:d),t(5,h=ve.saveBtn?ve.saveBtn:h),t(6,p=ve.dismissBtn?ve.dismissBtn:p)),m=Object.keys(l[0]).length>0?Object.keys(l[0])[0]:void 0,On.addEventListener("message",re=>{const Re=Ee.getValidMessageSource(re);if(!Re||re.data.msg!=="custom")return;Re._ready=!0;const ze=rs.convertCustomMessageInternalToUser(re.data),ne="luigi.updateUserSettings";if(ze.id===ne){const ce=or.findActiveCustomUserSettingsIframe(re.source);if(ce){let Te=ce.getAttribute("userSettingsGroup");t(0,o[Te]=ze.data,o)}}ze.id==="luigi.navBackMobile"&&window.window.innerWidth!==0&&window.innerWidth<sn.desktopMinWidth&&H()}),ae.readUserSettings().then(re=>{c=JSON.parse(JSON.stringify(re)),re===null?t(0,o=Sc(JSON.parse(JSON.stringify(l)),{})):t(0,o=Sc(JSON.parse(JSON.stringify(l)),re)),T([m,l[0][m]])}).catch(re=>{re&&re.message&&console.error(re.message),re&&re.closeDialog&&r("close")}),Ee.disableA11YKeyboardExceptClassName(".lui-usersettings-dialog")});function P(se){if(t(7,v=se.title?se.title:""),!!le.isObject(se.settings))for(let ve in se.settings){let re=se.settings[ve];re.type==="enum"?Array.isArray(re.options)||console.error(`There is no options array for '${ve}' defined in the Luigi userSettings config.`):re.type===void 0&&console.error(`There is no data type defined for '${ve}' in the Luigi userSettings config.`)}}function T(se,ve){t(11,a=se);let re=se[0],Re=se[1];if(P(Re),ve?(document.querySelectorAll(".lui-us-list .lui-us-navlist__item").forEach(ne=>{ne.classList.remove("is-selected")}),ip(ve.target,".lui-us-navlist__item",20).classList.add("is-selected"),window.innerWidth<sn.desktopMinWidth&&I()):(document.querySelectorAll(".lui-us-list .lui-us-navlist__item")[0].classList.add("is-selected"),window.innerWidth!==0&&window.innerWidth<sn.desktopMinWidth&&Cc()),Re.viewUrl){if(or.hideUserSettingsIframe(),b.hasOwnProperty(re))or.getUserSettingsIframesInDom().forEach(ze=>{ze.userSettingsGroup===re&&(ze.style.display="block")});else{const ze=Gr.hasDecorators()?Gr.applyDecorators(Re.viewUrl):Re.viewUrl;let ne=or.createIframe(ze,re);b[re]=ne}Pk()}else Nk()}const E=se=>{t(0,o=se.detail.userSettings)};function V(){ae.storeUserSettings(o,c).then(()=>{r("close")}).catch(se=>{se&&se.message&&console.error(se.message),se&&se.closeDialog&&r("close")})}function I(){H()}function H(){document.querySelector(".lui-usersettings-dialog").classList.toggle("usersettings-leftNavVisible"),window.innerWidth!==0&&window.innerWidth<sn.desktopMinWidth&&Cc()}function O(se){return oe.renderIconClassName(se)}function D(se){return oe.isOpenUIiconName(se.icon)}let q;const Z=()=>{const se=window.innerWidth>=sn.desktopMinWidth&&q<sn.desktopMinWidth;if(window.innerWidth<sn.desktopMinWidth&&q>=sn.desktopMinWidth&&(document.querySelector(".lui-usersettings-dialog").classList.toggle("usersettings-leftNavVisible"),document.querySelector(".usersettings-leftNavVisible")?document.querySelector(".confirm-button").style.display="block":document.querySelector(".confirm-button").style.display="none"),se&&(document.querySelector(".confirm-button").style.display="block"),!q){let re=document.querySelector(".confirm-button");window.innerWidth<sn.desktopMinWidth?re.style.display="none":re.style.display="block"}q=window.innerWidth};function $(se,ve){let re=document.querySelectorAll(".lui-us-list .lui-us-navlist__item");(se.keyCode===vi||se.keyCode===Kr)&&re[ve].click(),se.keyCode===uk&&re[Object.keys(l).length-1].focus(),se.keyCode===ok&&re[0].focus()}function pe(se){se.keyCode===mi&&C?y():se.keyCode===mi&&!C&&r("close")}const x=se=>T(se,event),G=(se,ve)=>$(ve,[se]);function K(se){y=se,t(9,y)}function J(se){C=se,t(8,C)}const ge=()=>V(),ie=()=>r("close");return i.$$set=se=>{"userSettingGroups"in se&&t(1,l=se.userSettingGroups),"storedUserSettings"in se&&t(0,o=se.storedUserSettings)},[o,l,$,pe,d,h,p,v,C,y,n,a,r,g,T,E,V,H,O,D,Z,x,G,K,J,ge,ie]}class Ik extends Vt{constructor(e){super(),Dt(this,e,Tk,yk,At,{userSettingGroups:1,storedUserSettings:0,handleKeyUp:2,handleKeyDown:3},null,[-1,-1])}get handleKeyUp(){return this.$$.ctx[2]}get handleKeyDown(){return this.$$.ctx[3]}}const{window:Lk}=gl;function Ak(i){let e;return{c(){e=S("div"),f(e,"class","iframeSplitViewCnt svelte-1jkwjpc")},m(t,n){A(t,e,n)},p:We,d(t){t&&L(e)}}}function Ek(i){let e,t,n,l,r=i[1].title+"",a,o,c;return{c(){e=S("div"),t=S("a"),t.innerHTML='<i class="sap-icon sap-icon--navigation-up-arrow"></i>',n=W(),l=S("h1"),a=Le(r),f(t,"class","lui-collapse-btn svelte-1jkwjpc"),f(e,"id","splitViewDraggerCollapsed"),f(e,"class","splitViewSeparator isCollapsed svelte-1jkwjpc"),f(l,"class","fd-splitView__title svelte-1jkwjpc")},m(g,d){A(g,e,d),w(e,t),A(g,n,d),A(g,l,d),w(l,a),o||(c=te(t,"click",Ut(wt(i[4]))),o=!0)},p(g,d){d&2&&r!==(r=g[1].title+"")&&Ae(a,r)},d(g){g&&L(e),g&&L(n),g&&L(l),o=!1,c()}}}function yc(i){let e,t,n,l,r,a,o,c;return{c(){e=S("div"),t=W(),n=S("div"),l=S("div"),r=W(),a=S("a"),a.innerHTML='<i class="sap-icon sap-icon--navigation-down-arrow"></i>',f(e,"id","splitViewDraggerBackdrop"),f(l,"class","splitViewSeparator"),f(a,"class","lui-collapse-btn svelte-1jkwjpc"),f(n,"id","splitViewDragger")},m(g,d){A(g,e,d),A(g,t,d),A(g,n,d),w(n,l),w(n,r),w(n,a),o||(c=[te(a,"click",Ut(wt(i[3]))),te(n,"mousedown",Ut(i[6]))],o=!0)},p:We,d(g){g&&L(e),g&&L(t),g&&L(n),o=!1,Ye(c)}}}function Rk(i){let e,t,n,l,r,a,o,c,g,d;t=new Ul({props:{area:"split-view",disable:i[2]}}),t.$on("stateChanged",i[7]);function h(v,C){return v[0]?Ek:Ak}let p=h(i),b=p(i),m=!i[0]&&yc(i);return{c(){e=S("div"),Ue(t.$$.fragment),n=W(),l=S("div"),b.c(),a=W(),m&&m.c(),o=Ce(),f(l,"class","lui-split-view svelte-1jkwjpc"),f(e,"id","splitViewContainer"),f(e,"class",r="fd-page splitViewContainer "+(i[0]?"lui-collapsed":"")+" svelte-1jkwjpc")},m(v,C){A(v,e,C),Me(t,e,null),w(e,n),w(e,l),b.m(l,null),A(v,a,C),m&&m.m(v,C),A(v,o,C),c=!0,g||(d=te(Lk,"resize",i[5]),g=!0)},p(v,[C]){const y={};C&4&&(y.disable=v[2]),t.$set(y),p===(p=h(v))&&b?b.p(v,C):(b.d(1),b=p(v),b&&(b.c(),b.m(l,null))),(!c||C&1&&r!==(r="fd-page splitViewContainer "+(v[0]?"lui-collapsed":"")+" svelte-1jkwjpc"))&&f(e,"class",r),v[0]?m&&(m.d(1),m=null):m?m.p(v,C):(m=yc(v),m.c(),m.m(o.parentNode,o))},i(v){c||(R(t.$$.fragment,v),c=!0)},o(v){U(t.$$.fragment,v),c=!1},d(v){v&&L(e),Fe(t),b.d(),v&&L(a),m&&m.d(v),v&&L(o),g=!1,d()}}}function Dk(i,e,t){const n=Jt();let l={draggable:null,iframe:null,split:null},r,a,o,c,g,d,h,p,b,{nodepath:m}=e,{collapsed:v}=e,{splitViewSettings:C={}}=e,{isDataPrepared:y=!1}=e,{disableBackdrop:P}=e,T=!1,E=vt("getUnsavedChangesModalPromise");const V=()=>({get:()=>({collapsed:v,splitViewSettings:C,isDataPrepared:y,lastNode:r,pathData:a,nodeParams:o,currentNode:c,splitViewIframe:d,splitViewIframeData:h,splitViewWC:p,splitViewWCData:b}),set:K=>{K&&Object.getOwnPropertyNames(K).forEach(J=>{J==="splitViewSettings"?t(1,C=K.splitViewSettings):J==="lastNode"?r=K.lastNode:J==="pathData"?a=K.pathData:J==="nodeParams"?o=K.nodeParams:J==="collapsed"?t(0,v=K.collapsed):J==="isDataPrepared"?t(8,y=K.isDataPrepared):J==="currentNode"?c=K.currentNode:J==="splitViewIframe"?d=K.splitViewIframe:J==="splitViewIframeData"?h=K.splitViewIframeData:J==="splitViewWC"?p=K.splitViewWC:J==="splitViewWCData"&&(b=K.splitViewWCData)})},dispatch:n,getUnsavedChangesModalPromise:E}),I=async()=>{y?v||dt.createAndSetView(V()):await dt.prepareSplitViewData(V(),m)},H=()=>{l.split=dt.getContainer(),l.iframe=Ee.getIframeContainer(),l.draggable=dt.getDragger()},O=()=>{const K=dt.getDraggerBackdrop();K&&(K.style.display="none"),H(),l.draggable&&(l.draggable.style.top=`${dt.splitViewValues.top}px`),l.split.style.top=`${dt.splitViewValues.top}px`,l.iframe.style.marginBottom=`${l.split.clientHeight}px`};function D(K){if(Ee.getValidMessageSource(K)&&(K.data.msg==="luigi.navigation.splitview.close"&&dt.close(V()),K.data.msg==="luigi.navigation.splitview.collapse"&&q(),K.data.msg==="luigi.navigation.splitview.expand"&&Z(),K.data.msg==="luigi.navigation.splitview.resize")){const J=parseInt(K.data.data);if(dt.calculateAndSetSplitViewValues(J,dt.internalValues),v)return;O(),dt.sendMessageToClients("resize.ok",dt.splitViewValues.percent)}}$t(()=>{$(),g=D.bind(this),On.addEventListener("message",g)}),jr(()=>{I(),T!==y&&!v&&(T=y,O())}),Jr(()=>{window.removeEventListener("message",g)});function q(){dt.collapse(V())}async function Z(){await dt.expand(V()),l.draggerBackdrop&&(l.draggerBackdrop.style.display="none")}function $(){const K=le.getShellbarHeight();dt.internalValues.innerHeight=le.getInnerHeight(),dt.internalValues.rightContentHeight=dt.internalValues.innerHeight-K,dt.internalValues.thresholdBottom=30,dt.internalValues.thresholdTop=K+30,dt.calculateAndSetSplitViewValues(dt.splitViewValues.percent,dt.internalValues),v||O()}function pe(K){let J=K.y,ge={};const ie=function(ze){const ne=J-ze.y,ce=parseInt(getComputedStyle(l.draggable,"").top);if(isNaN(ce)||ne===0)return;const Te=ce-ne,tt=dt.internalValues.innerHeight-Te,Be=dt.enforceTresholds(Te,tt);Te<Be.top||tt<Be.bottom||(ge=Be,J=ze.y,l.draggable.style.top=`${ge.top}px`)},se=function(){if(ve(),!ge.top||!ge.bottom||ge.top==dt.internalValues.m_pos_prev){dt.getDraggerBackdrop().style.display="none";return}dt.internalValues.m_pos_prev=ge.top,dt.splitViewValues=ge,O(),dt.sendMessageToClients("resize.ok",ge.percent)},ve=function(){document.removeEventListener("mouseup",se),document.removeEventListener("mousemove",ie)},re=function(){document.addEventListener("mouseup",se),document.addEventListener("mousemove",ie)};H(),ve(),re(),dt.getDraggerBackdrop().style.display="block"}const x=K=>{let J=dt.getDraggerButton();J&&(J.style.display=K?"block":"none"),J=dt.getCollapsedDraggerButton(),J&&(J.style.display=K?"block":"none")},G=K=>{x(!K.detail||K.detail.backdropActive!==!0)};return i.$$set=K=>{"nodepath"in K&&t(9,m=K.nodepath),"collapsed"in K&&t(0,v=K.collapsed),"splitViewSettings"in K&&t(1,C=K.splitViewSettings),"isDataPrepared"in K&&t(8,y=K.isDataPrepared),"disableBackdrop"in K&&t(2,P=K.disableBackdrop)},[v,C,P,q,Z,$,pe,G,y,m]}class lp extends Vt{constructor(e){super(),Dt(this,e,Dk,Rk,At,{nodepath:9,collapsed:0,splitViewSettings:1,isDataPrepared:8,disableBackdrop:2,collapse:3,expand:4,updateSizes:5,onDragStart:6})}get collapse(){return this.$$.ctx[3]}get expand(){return this.$$.ctx[4]}get updateSizes(){return this.$$.ctx[5]}get onDragStart(){return this.$$.ctx[6]}}function Pc(i){let e,t,n={ctx:i,current:null,token:null,hasCatch:!1,pending:Mk,then:Ok,catch:Vk,value:1};return is(t=i[0].badgeCounter.count(),n),{c(){e=Ce(),n.block.c()},m(l,r){A(l,e,r),n.block.m(l,n.anchor=r),n.mount=()=>e.parentNode,n.anchor=e},p(l,r){i=l,n.ctx=i,r&1&&t!==(t=i[0].badgeCounter.count())&&is(t,n)||G_(n,i,r)},d(l){l&&L(e),n.block.d(l),n.token=null,n=null}}}function Vk(i){return{c:We,m:We,p:We,d:We}}function Ok(i){let e,t=i[1]>0&&Nc(i);return{c(){t&&t.c(),e=Ce()},m(n,l){t&&t.m(n,l),A(n,e,l)},p(n,l){n[1]>0?t?t.p(n,l):(t=Nc(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){t&&t.d(n),n&&L(e)}}}function Nc(i){let e,t=i[1]+"",n,l;return{c(){e=S("span"),n=Le(t),f(e,"class","fd-counter fd-counter--notification fd-shellbar__counter--notification svelte-x8m4yt"),f(e,"aria-label",l=i[0].badgeCounter.label)},m(r,a){A(r,e,a),w(e,n)},p(r,a){a&1&&t!==(t=r[1]+"")&&Ae(n,t),a&1&&l!==(l=r[0].badgeCounter.label)&&f(e,"aria-label",l)},d(r){r&&L(e)}}}function Mk(i){return{c:We,m:We,p:We,d:We}}function Fk(i){let e,t=i[0]&&i[0].badgeCounter&&Pc(i);return{c(){t&&t.c(),e=Ce()},m(n,l){t&&t.m(n,l),A(n,e,l)},p(n,[l]){n[0]&&n[0].badgeCounter?t?t.p(n,l):(t=Pc(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:We,o:We,d(n){t&&t.d(n),n&&L(e)}}}function Uk(i,e,t){let{node:n}=e;return i.$$set=l=>{"node"in l&&t(0,n=l.node)},[n]}class Pn extends Vt{constructor(e){super(),Dt(this,e,Uk,Fk,At,{node:0})}}function Tc(i){let e,t,n=i[0].statusBadge.label+"",l;return{c(){e=S("span"),t=S("span"),l=Le(n),f(t,"class","fd-object-status__text"),f(e,"class","fd-object-status fd-object-status--"+i[1]+" fd-object-status--inverted svelte-1ooarw2")},m(r,a){A(r,e,a),w(e,t),w(t,l)},p(r,a){a&1&&n!==(n=r[0].statusBadge.label+"")&&Ae(l,n)},d(r){r&&L(e)}}}function Bk(i){let e,t=i[0].statusBadge&&i[0].statusBadge.label&&Tc(i);return{c(){t&&t.c(),e=Ce()},m(n,l){t&&t.m(n,l),A(n,e,l)},p(n,[l]){n[0].statusBadge&&n[0].statusBadge.label?t?t.p(n,l):(t=Tc(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:We,o:We,d(n){t&&t.d(n),n&&L(e)}}}function Hk(i,e,t){let{node:n}=e;const l=["negative","positive","critical","informative"],r=n&&n.statusBadge&&n.statusBadge.type,a=l.includes(r)?r:"none";return i.$$set=o=>{"node"in o&&t(0,n=o.node)},[n,a]}class xn extends Vt{constructor(e){super(),Dt(this,e,Hk,Bk,At,{node:0})}}const{window:xa}=gl;function Ic(i,e,t){const n=i.slice();return n[84]=e[t][0],n[85]=e[t][1],n[87]=t,n}function Lc(i,e,t){const n=i.slice();return n[88]=e[t],n}function Ac(i,e,t){const n=i.slice();return n[88]=e[t],n}function Ec(i,e,t){const n=i.slice();return n[88]=e[t],n}function Rc(i,e,t){const n=i.slice();return n[88]=e[t],n}function Dc(i,e,t){const n=i.slice();return n[84]=e[t][0],n[85]=e[t][1],n[87]=t,n}function Vc(i,e,t){const n=i.slice();return n[88]=e[t],n}function Oc(i,e,t){const n=i.slice();return n[88]=e[t],n}function Wk(i){let e,t,n,l,r,a,o,c,g,d,h=i[12]&&Mc(i),p=i[0]&&i[5].length>0&&(i[5][0].topNav===!1||i[5].length>1)&&Bc(i),b=(i[2]||i[3])&&fd(i);return{c(){e=S("div"),h&&h.c(),t=W(),n=S("nav"),l=S("div"),p&&p.c(),r=W(),b&&b.c(),f(l,"class","fd-side-nav__main-navigation svelte-1dtv1v6"),f(n,"class",a="fd-side-nav "+(i[6]?"fd-side-nav--condensed":"")+" "+(i[12]?"lui-nav-header-visible":"")+" svelte-1dtv1v6"),f(n,"data-testid","semiCollapsibleLeftNav"),f(e,"class",o="fd-app__sidebar fd-navigation "+(i[1]?"hideNavComponent":"")+" "+(i[2]||i[3]?"hasFooter":"")+" "+(i[2]&&!i[3]?"hasOnlyFooterText":"")+" svelte-1dtv1v6")},m(m,v){A(m,e,v),h&&h.m(e,null),w(e,t),w(e,n),w(n,l),p&&p.m(l,null),w(n,r),b&&b.m(n,null),c=!0,g||(d=te(n,"keyup",i[18]),g=!0)},p(m,v){m[12]?h?h.p(m,v):(h=Mc(m),h.c(),h.m(e,t)):h&&(h.d(1),h=null),m[0]&&m[5].length>0&&(m[5][0].topNav===!1||m[5].length>1)?p?(p.p(m,v),v[0]&33&&R(p,1)):(p=Bc(m),p.c(),R(p,1),p.m(l,null)):p&&(ke(),U(p,1,1,()=>{p=null}),Se()),m[2]||m[3]?b?b.p(m,v):(b=fd(m),b.c(),b.m(n,null)):b&&(b.d(1),b=null),(!c||v[0]&4160&&a!==(a="fd-side-nav "+(m[6]?"fd-side-nav--condensed":"")+" "+(m[12]?"lui-nav-header-visible":"")+" svelte-1dtv1v6"))&&f(n,"class",a),(!c||v[0]&14&&o!==(o="fd-app__sidebar fd-navigation "+(m[1]?"hideNavComponent":"")+" "+(m[2]||m[3]?"hasFooter":"")+" "+(m[2]&&!m[3]?"hasOnlyFooterText":"")+" svelte-1dtv1v6"))&&f(e,"class",o)},i(m){c||(R(p),c=!0)},o(m){U(p),c=!1},d(m){m&&L(e),h&&h.d(),p&&p.d(),b&&b.d(),g=!1,d()}}}function zk(i){let e,t,n,l,r=i[12]&&dd(i),a=i[0]&&i[5].length>1&&_d(i);return{c(){e=S("div"),r&&r.c(),t=W(),a&&a.c(),f(e,"class",n="fd-navigation fd-navigation--vertical "+(i[1]?"hideNavComponent":"")+" "+(i[2]||i[3]?"hasFooter":"")+" "+(i[2]&&!i[3]?"hasOnlyFooterText":"")+" "+(i[6]?"fd-navigation--snapped":"")+" svelte-1dtv1v6"),f(e,"role","navigation"),Vn(e,"width","var(--luigi__left-sidenav--width)"),Vn(e,"height","100%")},m(o,c){A(o,e,c),r&&r.m(e,null),w(e,t),a&&a.m(e,null),l=!0},p(o,c){o[12]?r?r.p(o,c):(r=dd(o),r.c(),r.m(e,t)):r&&(r.d(1),r=null),o[0]&&o[5].length>1?a?(a.p(o,c),c[0]&33&&R(a,1)):(a=_d(o),a.c(),R(a,1),a.m(e,null)):a&&(ke(),U(a,1,1,()=>{a=null}),Se()),(!l||c[0]&78&&n!==(n="fd-navigation fd-navigation--vertical "+(o[1]?"hideNavComponent":"")+" "+(o[2]||o[3]?"hasFooter":"")+" "+(o[2]&&!o[3]?"hasOnlyFooterText":"")+" "+(o[6]?"fd-navigation--snapped":"")+" svelte-1dtv1v6"))&&f(e,"class",n)},i(o){l||(R(a),l=!0)},o(o){U(a),l=!1},d(o){o&&L(e),r&&r.d(),a&&a.d()}}}function Mc(i){let e,t,n,l,r,a,o=i[25](i[12].label)+"",c,g,d,h=i[12].icon&&Fc(i),p=i[12].showUpLink&&Uc(i);return{c(){e=S("div"),t=S("ul"),n=S("li"),l=S("a"),h&&h.c(),r=W(),a=S("span"),c=Le(o),g=W(),p&&p.c(),f(a,"class","fd-nested-list__title svelte-1dtv1v6"),f(l,"class","fd-nested-list__link svelte-1dtv1v6"),f(l,"title",d=i[33](i[12],i[25](i[12].label))),f(n,"class","fd-nested-list__item svelte-1dtv1v6"),f(t,"class","fd-nested-list svelte-1dtv1v6"),f(e,"class","lui-nav-title svelte-1dtv1v6")},m(b,m){A(b,e,m),w(e,t),w(t,n),w(n,l),h&&h.m(l,null),w(l,r),w(l,a),w(a,c),w(l,g),p&&p.m(l,null)},p(b,m){b[12].icon?h?h.p(b,m):(h=Fc(b),h.c(),h.m(l,r)):h&&(h.d(1),h=null),m[0]&33558528&&o!==(o=b[25](b[12].label)+"")&&Ae(c,o),b[12].showUpLink?p?p.p(b,m):(p=Uc(b),p.c(),p.m(l,null)):p&&(p.d(1),p=null),m[0]&33558528&&d!==(d=b[33](b[12],b[25](b[12].label)))&&f(l,"title",d)},d(b){b&&L(e),h&&h.d(),p&&p.d()}}}function Fc(i){let e,t;function n(a,o){return o[0]&4096&&(e=null),e==null&&(e=!!a[30](a[12].icon)),e?Gk:qk}let l=n(i,[-1,-1,-1,-1]),r=l(i);return{c(){r.c(),t=Ce()},m(a,o){r.m(a,o),A(a,t,o)},p(a,o){l===(l=n(a,o))&&r?r.p(a,o):(r.d(1),r=l(a),r&&(r.c(),r.m(t.parentNode,t)))},d(a){r.d(a),a&&L(t)}}}function qk(i){let e,t,n,l;return{c(){e=S("span"),t=S("img"),Xe(t.src,n=i[12].icon)||f(t,"src",n),f(t,"alt",l=i[12].altText?i[12].altText:""),f(t,"class","svelte-1dtv1v6"),f(e,"class","fd-nested-list__icon sap-icon svelte-1dtv1v6")},m(r,a){A(r,e,a),w(e,t)},p(r,a){a[0]&4096&&!Xe(t.src,n=r[12].icon)&&f(t,"src",n),a[0]&4096&&l!==(l=r[12].altText?r[12].altText:"")&&f(t,"alt",l)},d(r){r&&L(e)}}}function Gk(i){let e,t;return{c(){e=S("i"),f(e,"class",t="lui-header-icon fd-nested-list__icon sap-icon "+i[29](i[12].icon)+" svelte-1dtv1v6"),f(e,"role","presentation")},m(n,l){A(n,e,l)},p(n,l){l[0]&4096&&t!==(t="lui-header-icon fd-nested-list__icon sap-icon "+n[29](n[12].icon)+" svelte-1dtv1v6")&&f(e,"class",t)},d(n){n&&L(e)}}}function Uc(i){let e,t,n,l;return{c(){e=S("i"),f(e,"class","lui-nav-up fd-nested-list__icon sap-icon sap-icon--navigation-up-arrow svelte-1dtv1v6"),f(e,"role","presentation"),f(e,"title",t=i[25]("luigi.navigation.up"))},m(r,a){A(r,e,a),n||(l=te(e,"click",wt(i[19])),n=!0)},p(r,a){a[0]&33554432&&t!==(t=r[25]("luigi.navigation.up"))&&f(e,"title",t)},d(r){r&&L(e),n=!1,l()}}}function Bc(i){let e,t,n,l,r=i[13],a=[];for(let c=0;c<r.length;c+=1)a[c]=ud(Ic(i,r,c));const o=c=>U(a[c],1,1,()=>{a[c]=null});return{c(){e=S("div"),t=S("ul");for(let c=0;c<a.length;c+=1)a[c].c();f(t,"class",n="fd-nested-list "+(i[22]?"fd-nested-list fd-nested-list--compact":"fd-nested-list")+" svelte-1dtv1v6"),f(e,"class","lui-fd-side-nav-wrapper svelte-1dtv1v6")},m(c,g){A(c,e,g),w(e,t);for(let d=0;d<a.length;d+=1)a[d].m(t,null);l=!0},p(c,g){if(g[0]&1922164672|g[1]&455){r=c[13];let d;for(d=0;d<r.length;d+=1){const h=Ic(c,r,d);a[d]?(a[d].p(h,g),R(a[d],1)):(a[d]=ud(h),a[d].c(),R(a[d],1),a[d].m(t,null))}for(ke(),d=r.length;d<a.length;d+=1)o(d);Se()}(!l||g[0]&4194304&&n!==(n="fd-nested-list "+(c[22]?"fd-nested-list fd-nested-list--compact":"fd-nested-list")+" svelte-1dtv1v6"))&&f(t,"class",n)},i(c){if(!l){for(let g=0;g<r.length;g+=1)R(a[g]);l=!0}},o(c){a=a.filter(Boolean);for(let g=0;g<a.length;g+=1)U(a[g]);l=!1},d(c){c&&L(e),ht(a,c)}}}function Kk(i){let e,t,n,l;const r=[Yk,Jk],a=[];function o(c,g){return c[85].metaInfo.collapsible?0:1}return e=o(i),t=a[e]=r[e](i),{c(){t.c(),n=Ce()},m(c,g){a[e].m(c,g),A(c,n,g),l=!0},p(c,g){let d=e;e=o(c),e===d?a[e].p(c,g):(ke(),U(a[d],1,1,()=>{a[d]=null}),Se(),t=a[e],t?t.p(c,g):(t=a[e]=r[e](c),t.c()),R(t,1),t.m(n.parentNode,n))},i(c){l||(R(t),l=!0)},o(c){U(t),l=!1},d(c){a[e].d(c),c&&L(n)}}}function jk(i){let e,t,n=i[85],l=[];for(let a=0;a<n.length;a+=1)l[a]=od(Rc(i,n,a));const r=a=>U(l[a],1,1,()=>{l[a]=null});return{c(){for(let a=0;a<l.length;a+=1)l[a].c();e=Ce()},m(a,o){for(let c=0;c<l.length;c+=1)l[c].m(a,o);A(a,e,o),t=!0},p(a,o){if(o[0]&1887477952|o[1]&133){n=a[85];let c;for(c=0;c<n.length;c+=1){const g=Rc(a,n,c);l[c]?(l[c].p(g,o),R(l[c],1)):(l[c]=od(g),l[c].c(),R(l[c],1),l[c].m(e.parentNode,e))}for(ke(),c=n.length;c<l.length;c+=1)r(c);Se()}},i(a){if(!t){for(let o=0;o<n.length;o+=1)R(l[o]);t=!0}},o(a){l=l.filter(Boolean);for(let o=0;o<l.length;o+=1)U(l[o]);t=!1},d(a){ht(l,a),a&&L(e)}}}function Jk(i){let e,t,n=i[25](i[84])+"",l,r,a,o,c,g,d=i[10]&&i[85].metaInfo.icon&&Hc(i),h=i[85],p=[];for(let m=0;m<h.length;m+=1)p[m]=jc(Lc(i,h,m));const b=m=>U(p[m],1,1,()=>{p[m]=null});return{c(){e=S("li"),d&&d.c(),t=W(),l=Le(n),o=W();for(let m=0;m<p.length;m+=1)p[m].c();c=Ce(),f(e,"class","fd-nested-list__group-header lui-category svelte-1dtv1v6"),f(e,"title",r=i[33](i[85],i[25](i[84]))),f(e,"data-testid",a=i[32](i[85].metaInfo,i[84])),f(e,"id","category_list_level1_"+i[87])},m(m,v){A(m,e,v),d&&d.m(e,null),w(e,t),w(e,l),A(m,o,v);for(let C=0;C<p.length;C+=1)p[C].m(m,v);A(m,c,v),g=!0},p(m,v){if(m[10]&&m[85].metaInfo.icon?d?d.p(m,v):(d=Hc(m),d.c(),d.m(e,t)):d&&(d.d(1),d=null),(!g||v[0]&33562624)&&n!==(n=m[25](m[84])+"")&&Ae(l,n),(!g||v[0]&33562624&&r!==(r=m[33](m[85],m[25](m[84]))))&&f(e,"title",r),(!g||v[0]&8192&&a!==(a=m[32](m[85].metaInfo,m[84])))&&f(e,"data-testid",a),v[0]&1887477952|v[1]&133){h=m[85];let C;for(C=0;C<h.length;C+=1){const y=Lc(m,h,C);p[C]?(p[C].p(y,v),R(p[C],1)):(p[C]=jc(y),p[C].c(),R(p[C],1),p[C].m(c.parentNode,c))}for(ke(),C=h.length;C<p.length;C+=1)b(C);Se()}},i(m){if(!g){for(let v=0;v<h.length;v+=1)R(p[v]);g=!0}},o(m){p=p.filter(Boolean);for(let v=0;v<p.length;v+=1)U(p[v]);g=!1},d(m){m&&L(e),d&&d.d(),m&&L(o),ht(p,m),m&&L(c)}}}function Yk(i){let e,t,n,l,r,a,o=i[25](i[84])+"",c,g,d,h,p,b,m,v,C,y,P,T,E,V,I,H,O,D,q,Z,$,pe;function x(ne,ce){return ce[0]&8192&&(l=null),l==null&&(l=!!ne[30](ne[85].metaInfo.icon)),l?nS:tS}let G=x(i,[-1,-1,-1,-1]),K=G(i);function J(){return i[60](i[85])}function ge(){return i[61](i[85])}function ie(...ne){return i[62](i[85],...ne)}let se=i[85],ve=[];for(let ne=0;ne<se.length;ne+=1)ve[ne]=Xc(Ec(i,se,ne));const re=ne=>U(ve[ne],1,1,()=>{ve[ne]=null});let Re=i[85].metaInfo&&i[85].metaInfo.label===i[8]&&$c(i);function ze(){return i[67](i[85])}return{c(){e=S("li"),t=S("div"),n=S("a"),K.c(),r=W(),a=S("span"),c=Le(o),m=W(),v=S("button"),C=S("i"),V=W(),I=S("ul");for(let ne=0;ne<ve.length;ne+=1)ve[ne].c();O=W(),Re&&Re.c(),D=W(),f(a,"class","fd-nested-list__title svelte-1dtv1v6"),f(n,"title",g=i[33](i[85],i[25](i[84]))),f(n,"class",d="fd-nested-list__link "+(an(i[85],i[9])?"is-expanded":"")+" svelte-1dtv1v6"),f(n,"tabindex",h=i[6]?"-1":"0"),f(n,"role",p=i[23]?void 0:"button"),f(n,"id","collapsible_listnode_"+i[87]),f(n,"aria-haspopup","true"),f(n,"aria-expanded",b=an(i[85],i[9])),f(C,"class",y=an(i[85],i[9])?"sap-icon--navigation-down-arrow":"sap-icon--navigation-right-arrow"),f(C,"role","presentation"),f(v,"class","fd-button fd-nested-list__button svelte-1dtv1v6"),f(v,"href","#"),f(v,"tabindex","0"),f(v,"aria-label","Expand categories"),f(v,"aria-haspopup","true"),f(v,"aria-expanded",P=an(i[85],i[9])),f(v,"title",T=i[39](i[85],i[9])),f(t,"class","fd-nested-list__content has-child"),f(t,"tabindex",E=i[6]?"0":"-1"),f(I,"class","fd-nested-list fd-nested-list--text-only level-2 svelte-1dtv1v6"),f(I,"aria-hidden",H=!an(i[85],i[9])),f(e,"class","fd-nested-list__item lui-collapsible-item"),f(e,"data-testid",q=i[32](i[85].metaInfo,i[84])),jt(e,"lui-item-expanded",an(i[85],i[9]))},m(ne,ce){A(ne,e,ce),w(e,t),w(t,n),K.m(n,null),w(n,r),w(n,a),w(a,c),w(t,m),w(t,v),w(v,C),w(e,V),w(e,I);for(let Te=0;Te<ve.length;Te+=1)ve[Te].m(I,null);w(e,O),Re&&Re.m(e,null),w(e,D),Z=!0,$||(pe=[te(n,"click",wt(J)),te(v,"click",wt(ge)),te(t,"keypress",ie),te(e,"click",Ut(ze))],$=!0)},p(ne,ce){if(i=ne,G===(G=x(i,ce))&&K?K.p(i,ce):(K.d(1),K=G(i),K&&(K.c(),K.m(n,r))),(!Z||ce[0]&33562624)&&o!==(o=i[25](i[84])+"")&&Ae(c,o),(!Z||ce[0]&33562624&&g!==(g=i[33](i[85],i[25](i[84]))))&&f(n,"title",g),(!Z||ce[0]&8704&&d!==(d="fd-nested-list__link "+(an(i[85],i[9])?"is-expanded":"")+" svelte-1dtv1v6"))&&f(n,"class",d),(!Z||ce[0]&64&&h!==(h=i[6]?"-1":"0"))&&f(n,"tabindex",h),(!Z||ce[0]&8388608&&p!==(p=i[23]?void 0:"button"))&&f(n,"role",p),(!Z||ce[0]&8704&&b!==(b=an(i[85],i[9])))&&f(n,"aria-expanded",b),(!Z||ce[0]&8704&&y!==(y=an(i[85],i[9])?"sap-icon--navigation-down-arrow":"sap-icon--navigation-right-arrow"))&&f(C,"class",y),(!Z||ce[0]&8704&&P!==(P=an(i[85],i[9])))&&f(v,"aria-expanded",P),(!Z||ce[0]&8704&&T!==(T=i[39](i[85],i[9])))&&f(v,"title",T),(!Z||ce[0]&64&&E!==(E=i[6]?"0":"-1"))&&f(t,"tabindex",E),ce[0]&276865152|ce[1]&133){se=i[85];let Te;for(Te=0;Te<se.length;Te+=1){const tt=Ec(i,se,Te);ve[Te]?(ve[Te].p(tt,ce),R(ve[Te],1)):(ve[Te]=Xc(tt),ve[Te].c(),R(ve[Te],1),ve[Te].m(I,null))}for(ke(),Te=se.length;Te<ve.length;Te+=1)re(Te);Se()}(!Z||ce[0]&8704&&H!==(H=!an(i[85],i[9])))&&f(I,"aria-hidden",H),i[85].metaInfo&&i[85].metaInfo.label===i[8]?Re?(Re.p(i,ce),ce[0]&8448&&R(Re,1)):(Re=$c(i),Re.c(),R(Re,1),Re.m(e,D)):Re&&(ke(),U(Re,1,1,()=>{Re=null}),Se()),(!Z||ce[0]&8192&&q!==(q=i[32](i[85].metaInfo,i[84])))&&f(e,"data-testid",q),(!Z||ce[0]&8704)&&jt(e,"lui-item-expanded",an(i[85],i[9]))},i(ne){if(!Z){for(let ce=0;ce<se.length;ce+=1)R(ve[ce]);R(Re),Z=!0}},o(ne){ve=ve.filter(Boolean);for(let ce=0;ce<ve.length;ce+=1)U(ve[ce]);U(Re),Z=!1},d(ne){ne&&L(e),K.d(),ht(ve,ne),Re&&Re.d(),$=!1,Ye(pe)}}}function Hc(i){let e,t;function n(a,o){return o[0]&8192&&(e=null),e==null&&(e=!!a[30](a[85].metaInfo.icon)),e?Zk:Qk}let l=n(i,[-1,-1,-1,-1]),r=l(i);return{c(){r.c(),t=Ce()},m(a,o){r.m(a,o),A(a,t,o)},p(a,o){l===(l=n(a,o))&&r?r.p(a,o):(r.d(1),r=l(a),r&&(r.c(),r.m(t.parentNode,t)))},d(a){r.d(a),a&&L(t)}}}function Qk(i){let e,t,n,l;return{c(){e=S("span"),t=S("img"),Xe(t.src,n=i[85].metaInfo.icon)||f(t,"src",n),f(t,"alt",l=i[85].metaInfo.altText?i[85].metaInfo.altText:""),f(t,"class","svelte-1dtv1v6"),f(e,"class","fd-nested-list__icon sap-icon svelte-1dtv1v6")},m(r,a){A(r,e,a),w(e,t)},p(r,a){a[0]&8192&&!Xe(t.src,n=r[85].metaInfo.icon)&&f(t,"src",n),a[0]&8192&&l!==(l=r[85].metaInfo.altText?r[85].metaInfo.altText:"")&&f(t,"alt",l)},d(r){r&&L(e)}}}function Zk(i){let e,t;return{c(){e=S("i"),f(e,"class",t="fd-nested-list__icon sap-icon "+(i[85].metaInfo.icon?i[29](i[85].metaInfo.icon):"")+" svelte-1dtv1v6"),f(e,"role","presentation")},m(n,l){A(n,e,l)},p(n,l){l[0]&8192&&t!==(t="fd-nested-list__icon sap-icon "+(n[85].metaInfo.icon?n[29](n[85].metaInfo.icon):"")+" svelte-1dtv1v6")&&f(e,"class",t)},d(n){n&&L(e)}}}function Wc(i){let e,t,n=i[88].label&&zc(i);return{c(){n&&n.c(),e=Ce()},m(l,r){n&&n.m(l,r),A(l,e,r),t=!0},p(l,r){l[88].label?n?(n.p(l,r),r[0]&8192&&R(n,1)):(n=zc(l),n.c(),R(n,1),n.m(e.parentNode,e)):n&&(ke(),U(n,1,1,()=>{n=null}),Se())},i(l){t||(R(n),t=!0)},o(l){U(n),t=!1},d(l){n&&n.d(l),l&&L(e)}}}function zc(i){let e,t,n,l,r=i[28](i[88])+"",a,o,c,g,d,h,p,b,m,v,C,y,P,T;function E($,pe){return $[88].icon?$k:Xk}let V=E(i),I=V(i),H=i[88].statusBadge&&qc(i),O=i[88].externalLink&&i[88].externalLink.url&&Gc(),D=i[88].badgeCounter&&Kc(i);function q(...$){return i[68](i[88],...$)}function Z(...$){return i[69](i[88],...$)}return{c(){e=S("li"),t=S("a"),I.c(),n=W(),l=S("span"),a=Le(r),o=W(),H&&H.c(),g=W(),O&&O.c(),d=W(),D&&D.c(),v=W(),f(l,"class",c="fd-nested-list__title badge-align-"+(i[88].statusBadge&&i[88].statusBadge.align==="right"?"right":"left")+" svelte-1dtv1v6"),f(t,"href",h=i[31](i[88])),f(t,"tabindex","0"),f(t,"class",p="fd-nested-list__link "+(i[88]===i[7]?"is-selected":"")+" svelte-1dtv1v6"),f(t,"role",b=i[23]?void 0:"button"),f(t,"data-testid",m=oe.getTestId(i[88])),f(e,"class","fd-nested-list__item"),f(e,"title",C=i[33](i[88],i[28](i[88]))),f(e,"aria-labelledby","category_list_level1_"+i[87])},m($,pe){A($,e,pe),w(e,t),I.m(t,null),w(t,n),w(t,l),w(l,a),w(l,o),H&&H.m(l,null),w(t,g),O&&O.m(t,null),w(t,d),D&&D.m(t,null),w(e,v),y=!0,P||(T=[te(t,"click",q),te(t,"keyup",function(){bi(i[23]?void 0:Z)&&(i[23]?void 0:Z).apply(this,arguments)})],P=!0)},p($,pe){i=$,V===(V=E(i))&&I?I.p(i,pe):(I.d(1),I=V(i),I&&(I.c(),I.m(t,n))),(!y||pe[0]&8192)&&r!==(r=i[28](i[88])+"")&&Ae(a,r),i[88].statusBadge?H?(H.p(i,pe),pe[0]&8192&&R(H,1)):(H=qc(i),H.c(),R(H,1),H.m(l,null)):H&&(ke(),U(H,1,1,()=>{H=null}),Se()),(!y||pe[0]&8192&&c!==(c="fd-nested-list__title badge-align-"+(i[88].statusBadge&&i[88].statusBadge.align==="right"?"right":"left")+" svelte-1dtv1v6"))&&f(l,"class",c),i[88].externalLink&&i[88].externalLink.url?O||(O=Gc(),O.c(),O.m(t,d)):O&&(O.d(1),O=null),i[88].badgeCounter?D?(D.p(i,pe),pe[0]&8192&&R(D,1)):(D=Kc(i),D.c(),R(D,1),D.m(t,null)):D&&(ke(),U(D,1,1,()=>{D=null}),Se()),(!y||pe[0]&8192&&h!==(h=i[31](i[88])))&&f(t,"href",h),(!y||pe[0]&8320&&p!==(p="fd-nested-list__link "+(i[88]===i[7]?"is-selected":"")+" svelte-1dtv1v6"))&&f(t,"class",p),(!y||pe[0]&8388608&&b!==(b=i[23]?void 0:"button"))&&f(t,"role",b),(!y||pe[0]&8192&&m!==(m=oe.getTestId(i[88])))&&f(t,"data-testid",m),(!y||pe[0]&8192&&C!==(C=i[33](i[88],i[28](i[88]))))&&f(e,"title",C)},i($){y||(R(H),R(D),y=!0)},o($){U(H),U(D),y=!1},d($){$&&L(e),I.d(),H&&H.d(),O&&O.d(),D&&D.d(),P=!1,Ye(T)}}}function Xk(i){let e,t,n,l,r=i[6]?"sap-icon--rhombus-milestone-2":"",a;return{c(){e=S("i"),n=W(),l=S("span"),a=Le(r),f(e,"class",t="fd-nested-list__icon sap-icon "+(i[6]?"sap-icon--rhombus-milestone-2":""))},m(o,c){A(o,e,c),A(o,n,c),A(o,l,c),w(l,a)},p(o,c){c[0]&64&&t!==(t="fd-nested-list__icon sap-icon "+(o[6]?"sap-icon--rhombus-milestone-2":""))&&f(e,"class",t),c[0]&64&&r!==(r=o[6]?"sap-icon--rhombus-milestone-2":"")&&Ae(a,r)},d(o){o&&L(e),o&&L(n),o&&L(l)}}}function $k(i){let e,t;function n(a,o){return o[0]&8192&&(e=null),e==null&&(e=!!a[30](a[88].icon)),e?eS:xk}let l=n(i,[-1,-1,-1,-1]),r=l(i);return{c(){r.c(),t=Ce()},m(a,o){r.m(a,o),A(a,t,o)},p(a,o){l===(l=n(a,o))&&r?r.p(a,o):(r.d(1),r=l(a),r&&(r.c(),r.m(t.parentNode,t)))},d(a){r.d(a),a&&L(t)}}}function xk(i){let e,t,n,l;return{c(){e=S("span"),t=S("img"),Xe(t.src,n=i[88].icon)||f(t,"src",n),f(t,"alt",l=i[88].altText?i[88].altText:""),f(t,"class","svelte-1dtv1v6"),f(e,"class","fd-nested-list__icon sap-icon svelte-1dtv1v6")},m(r,a){A(r,e,a),w(e,t)},p(r,a){a[0]&8192&&!Xe(t.src,n=r[88].icon)&&f(t,"src",n),a[0]&8192&&l!==(l=r[88].altText?r[88].altText:"")&&f(t,"alt",l)},d(r){r&&L(e)}}}function eS(i){let e,t;return{c(){e=S("i"),f(e,"class",t="fd-nested-list__icon sap-icon "+i[29](i[88].icon)+" svelte-1dtv1v6")},m(n,l){A(n,e,l)},p(n,l){l[0]&8192&&t!==(t="fd-nested-list__icon sap-icon "+n[29](n[88].icon)+" svelte-1dtv1v6")&&f(e,"class",t)},d(n){n&&L(e)}}}function qc(i){let e,t;return e=new xn({props:{node:i[88]}}),{c(){Ue(e.$$.fragment)},m(n,l){Me(e,n,l),t=!0},p(n,l){const r={};l[0]&8192&&(r.node=n[88]),e.$set(r)},i(n){t||(R(e.$$.fragment,n),t=!0)},o(n){U(e.$$.fragment,n),t=!1},d(n){Fe(e,n)}}}function Gc(i){let e;return{c(){e=S("i"),f(e,"class","sap-icon--action")},m(t,n){A(t,e,n)},d(t){t&&L(e)}}}function Kc(i){let e,t;return e=new Pn({props:{node:i[88]}}),{c(){Ue(e.$$.fragment)},m(n,l){Me(e,n,l),t=!0},p(n,l){const r={};l[0]&8192&&(r.node=n[88]),e.$set(r)},i(n){t||(R(e.$$.fragment,n),t=!0)},o(n){U(e.$$.fragment,n),t=!1},d(n){Fe(e,n)}}}function jc(i){let e,t,n=!i[88].hideFromNav&&Wc(i);return{c(){n&&n.c(),e=Ce()},m(l,r){n&&n.m(l,r),A(l,e,r),t=!0},p(l,r){l[88].hideFromNav?n&&(ke(),U(n,1,1,()=>{n=null}),Se()):n?(n.p(l,r),r[0]&8192&&R(n,1)):(n=Wc(l),n.c(),R(n,1),n.m(e.parentNode,e))},i(l){t||(R(n),t=!0)},o(l){U(n),t=!1},d(l){n&&n.d(l),l&&L(e)}}}function tS(i){let e,t,n,l;return{c(){e=S("span"),t=S("img"),Xe(t.src,n=i[85].metaInfo.icon)||f(t,"src",n),f(t,"alt",l=i[85].metaInfo.altText?i[85].metaInfo.altText:""),f(t,"class","svelte-1dtv1v6"),f(e,"class","fd-nested-list__icon sap-icon svelte-1dtv1v6")},m(r,a){A(r,e,a),w(e,t)},p(r,a){a[0]&8192&&!Xe(t.src,n=r[85].metaInfo.icon)&&f(t,"src",n),a[0]&8192&&l!==(l=r[85].metaInfo.altText?r[85].metaInfo.altText:"")&&f(t,"alt",l)},d(r){r&&L(e)}}}function nS(i){let e,t;return{c(){e=S("i"),f(e,"class",t="fd-nested-list__icon sap-icon "+i[29](i[85].metaInfo.icon)+" "+(i[6]&&!i[85].metaInfo.icon?"sap-icon--rhombus-milestone-2":"")+" svelte-1dtv1v6"),f(e,"role","presentation")},m(n,l){A(n,e,l)},p(n,l){l[0]&8256&&t!==(t="fd-nested-list__icon sap-icon "+n[29](n[85].metaInfo.icon)+" "+(n[6]&&!n[85].metaInfo.icon?"sap-icon--rhombus-milestone-2":"")+" svelte-1dtv1v6")&&f(e,"class",t)},d(n){n&&L(e)}}}function Jc(i){let e,t,n=i[88].label&&Yc(i);return{c(){n&&n.c(),e=Ce()},m(l,r){n&&n.m(l,r),A(l,e,r),t=!0},p(l,r){l[88].label?n?(n.p(l,r),r[0]&8192&&R(n,1)):(n=Yc(l),n.c(),R(n,1),n.m(e.parentNode,e)):n&&(ke(),U(n,1,1,()=>{n=null}),Se())},i(l){t||(R(n),t=!0)},o(l){U(n),t=!1},d(l){n&&n.d(l),l&&L(e)}}}function Yc(i){let e,t,n,l=i[28](i[88])+"",r,a,o,c,g,d,h,p,b,m,v,C,y,P,T;o=new xn({props:{node:i[88]}});let E=i[88].externalLink&&i[88].externalLink.url&&Qc(),V=i[88].badgeCounter&&Zc(i);function I(...O){return i[63](i[88],...O)}function H(...O){return i[64](i[88],...O)}return{c(){e=S("li"),t=S("a"),n=S("span"),r=Le(l),a=W(),Ue(o.$$.fragment),g=W(),E&&E.c(),d=W(),V&&V.c(),C=W(),f(n,"class",c="fd-nested-list__title badge-align-"+(i[88].statusBadge&&i[88].statusBadge.align==="right"?"right":"left")+" svelte-1dtv1v6"),f(t,"href",h=i[31](i[88])),f(t,"class",p="fd-nested-list__link "+(i[88]===i[7]?"is-selected":"")+" svelte-1dtv1v6"),f(t,"role",b=i[23]?void 0:"button"),f(t,"tabindex","0"),f(t,"data-testid",m=oe.getTestId(i[88])),f(t,"title",v=i[33](i[88],i[28](i[88]))),f(e,"class","fd-nested-list__item"),f(e,"aria-labelledby","collapsible_listnode_"+i[87])},m(O,D){A(O,e,D),w(e,t),w(t,n),w(n,r),w(n,a),Me(o,n,null),w(t,g),E&&E.m(t,null),w(t,d),V&&V.m(t,null),w(e,C),y=!0,P||(T=[te(t,"click",I),te(t,"keyup",function(){bi(i[23]?void 0:H)&&(i[23]?void 0:H).apply(this,arguments)})],P=!0)},p(O,D){i=O,(!y||D[0]&8192)&&l!==(l=i[28](i[88])+"")&&Ae(r,l);const q={};D[0]&8192&&(q.node=i[88]),o.$set(q),(!y||D[0]&8192&&c!==(c="fd-nested-list__title badge-align-"+(i[88].statusBadge&&i[88].statusBadge.align==="right"?"right":"left")+" svelte-1dtv1v6"))&&f(n,"class",c),i[88].externalLink&&i[88].externalLink.url?E||(E=Qc(),E.c(),E.m(t,d)):E&&(E.d(1),E=null),i[88].badgeCounter?V?(V.p(i,D),D[0]&8192&&R(V,1)):(V=Zc(i),V.c(),R(V,1),V.m(t,null)):V&&(ke(),U(V,1,1,()=>{V=null}),Se()),(!y||D[0]&8192&&h!==(h=i[31](i[88])))&&f(t,"href",h),(!y||D[0]&8320&&p!==(p="fd-nested-list__link "+(i[88]===i[7]?"is-selected":"")+" svelte-1dtv1v6"))&&f(t,"class",p),(!y||D[0]&8388608&&b!==(b=i[23]?void 0:"button"))&&f(t,"role",b),(!y||D[0]&8192&&m!==(m=oe.getTestId(i[88])))&&f(t,"data-testid",m),(!y||D[0]&8192&&v!==(v=i[33](i[88],i[28](i[88]))))&&f(t,"title",v)},i(O){y||(R(o.$$.fragment,O),R(V),y=!0)},o(O){U(o.$$.fragment,O),U(V),y=!1},d(O){O&&L(e),Fe(o),E&&E.d(),V&&V.d(),P=!1,Ye(T)}}}function Qc(i){let e;return{c(){e=S("i"),f(e,"class","sap-icon--action")},m(t,n){A(t,e,n)},d(t){t&&L(e)}}}function Zc(i){let e,t;return e=new Pn({props:{node:i[88]}}),{c(){Ue(e.$$.fragment)},m(n,l){Me(e,n,l),t=!0},p(n,l){const r={};l[0]&8192&&(r.node=n[88]),e.$set(r)},i(n){t||(R(e.$$.fragment,n),t=!0)},o(n){U(e.$$.fragment,n),t=!1},d(n){Fe(e,n)}}}function Xc(i){let e,t,n=!i[88].hideFromNav&&Jc(i);return{c(){n&&n.c(),e=Ce()},m(l,r){n&&n.m(l,r),A(l,e,r),t=!0},p(l,r){l[88].hideFromNav?n&&(ke(),U(n,1,1,()=>{n=null}),Se()):n?(n.p(l,r),r[0]&8192&&R(n,1)):(n=Jc(l),n.c(),R(n,1),n.m(e.parentNode,e))},i(l){t||(R(n),t=!0)},o(l){U(n),t=!1},d(l){n&&n.d(l),l&&L(e)}}}function $c(i){let e,t,n,l=i[25](i[84])+"",r,a,o,c,g=i[85],d=[];for(let p=0;p<g.length;p+=1)d[p]=id(Ac(i,g,p));const h=p=>U(d[p],1,1,()=>{d[p]=null});return{c(){e=S("div"),t=S("div"),n=S("h5"),r=Le(l),a=W(),o=S("ul");for(let p=0;p<d.length;p+=1)d[p].c();f(n,"class","lui-flyout-sublist__title fd-has-type-minus-1 fd-has-color-text-4 svelte-1dtv1v6"),f(o,"class","fd-nested-list fd-nested-list--text-only svelte-1dtv1v6"),f(t,"class","lui-flyout-sublist__wrapper svelte-1dtv1v6"),f(e,"class","lui-flyout-sublist svelte-1dtv1v6")},m(p,b){A(p,e,b),w(e,t),w(t,n),w(n,r),w(t,a),w(t,o);for(let m=0;m<d.length;m+=1)d[m].m(o,null);c=!0},p(p,b){if((!c||b[0]&33562624)&&l!==(l=p[25](p[84])+"")&&Ae(r,l),b[0]&276865152|b[1]&133){g=p[85];let m;for(m=0;m<g.length;m+=1){const v=Ac(p,g,m);d[m]?(d[m].p(v,b),R(d[m],1)):(d[m]=id(v),d[m].c(),R(d[m],1),d[m].m(o,null))}for(ke(),m=g.length;m<d.length;m+=1)h(m);Se()}},i(p){if(!c){for(let b=0;b<g.length;b+=1)R(d[b]);c=!0}},o(p){d=d.filter(Boolean);for(let b=0;b<d.length;b+=1)U(d[b]);c=!1},d(p){p&&L(e),ht(d,p)}}}function xc(i){let e,t,n=i[88].label&&ed(i);return{c(){n&&n.c(),e=Ce()},m(l,r){n&&n.m(l,r),A(l,e,r),t=!0},p(l,r){l[88].label?n?(n.p(l,r),r[0]&8192&&R(n,1)):(n=ed(l),n.c(),R(n,1),n.m(e.parentNode,e)):n&&(ke(),U(n,1,1,()=>{n=null}),Se())},i(l){t||(R(n),t=!0)},o(l){U(n),t=!1},d(l){n&&n.d(l),l&&L(e)}}}function ed(i){let e,t,n,l=i[28](i[88])+"",r,a,o,c,g,d,h,p,b,m,v,C,y,P,T;o=new xn({props:{node:i[88]}});let E=i[88].externalLink&&i[88].externalLink.url&&td(),V=i[88].badgeCounter&&nd(i);function I(...O){return i[65](i[88],...O)}function H(...O){return i[66](i[88],...O)}return{c(){e=S("li"),t=S("a"),n=S("span"),r=Le(l),a=W(),Ue(o.$$.fragment),g=W(),E&&E.c(),d=W(),V&&V.c(),C=W(),f(n,"class",c="fd-nested-list__title badge-align-"+(i[88].statusBadge&&i[88].statusBadge.align==="right"?"right":"left")+" svelte-1dtv1v6"),f(t,"href",h=i[31](i[88])),f(t,"class",p="fd-nested-list__link "+(i[88]===i[7]?"is-selected":"")+" svelte-1dtv1v6"),f(t,"tabindex","0"),f(t,"role",b=i[23]?void 0:"button"),f(t,"data-testid",m=oe.getTestId(i[88])),f(t,"title",v=i[33](i[88],i[28](i[88]))),f(e,"class","fd-nested-list__item")},m(O,D){A(O,e,D),w(e,t),w(t,n),w(n,r),w(n,a),Me(o,n,null),w(t,g),E&&E.m(t,null),w(t,d),V&&V.m(t,null),w(e,C),y=!0,P||(T=[te(t,"click",I),te(t,"keyup",function(){bi(i[23]?void 0:H)&&(i[23]?void 0:H).apply(this,arguments)})],P=!0)},p(O,D){i=O,(!y||D[0]&8192)&&l!==(l=i[28](i[88])+"")&&Ae(r,l);const q={};D[0]&8192&&(q.node=i[88]),o.$set(q),(!y||D[0]&8192&&c!==(c="fd-nested-list__title badge-align-"+(i[88].statusBadge&&i[88].statusBadge.align==="right"?"right":"left")+" svelte-1dtv1v6"))&&f(n,"class",c),i[88].externalLink&&i[88].externalLink.url?E||(E=td(),E.c(),E.m(t,d)):E&&(E.d(1),E=null),i[88].badgeCounter?V?(V.p(i,D),D[0]&8192&&R(V,1)):(V=nd(i),V.c(),R(V,1),V.m(t,null)):V&&(ke(),U(V,1,1,()=>{V=null}),Se()),(!y||D[0]&8192&&h!==(h=i[31](i[88])))&&f(t,"href",h),(!y||D[0]&8320&&p!==(p="fd-nested-list__link "+(i[88]===i[7]?"is-selected":"")+" svelte-1dtv1v6"))&&f(t,"class",p),(!y||D[0]&8388608&&b!==(b=i[23]?void 0:"button"))&&f(t,"role",b),(!y||D[0]&8192&&m!==(m=oe.getTestId(i[88])))&&f(t,"data-testid",m),(!y||D[0]&8192&&v!==(v=i[33](i[88],i[28](i[88]))))&&f(t,"title",v)},i(O){y||(R(o.$$.fragment,O),R(V),y=!0)},o(O){U(o.$$.fragment,O),U(V),y=!1},d(O){O&&L(e),Fe(o),E&&E.d(),V&&V.d(),P=!1,Ye(T)}}}function td(i){let e;return{c(){e=S("i"),f(e,"class","sap-icon--action")},m(t,n){A(t,e,n)},d(t){t&&L(e)}}}function nd(i){let e,t;return e=new Pn({props:{node:i[88]}}),{c(){Ue(e.$$.fragment)},m(n,l){Me(e,n,l),t=!0},p(n,l){const r={};l[0]&8192&&(r.node=n[88]),e.$set(r)},i(n){t||(R(e.$$.fragment,n),t=!0)},o(n){U(e.$$.fragment,n),t=!1},d(n){Fe(e,n)}}}function id(i){let e,t,n=!i[88].hideFromNav&&xc(i);return{c(){n&&n.c(),e=Ce()},m(l,r){n&&n.m(l,r),A(l,e,r),t=!0},p(l,r){l[88].hideFromNav?n&&(ke(),U(n,1,1,()=>{n=null}),Se()):n?(n.p(l,r),r[0]&8192&&R(n,1)):(n=xc(l),n.c(),R(n,1),n.m(e.parentNode,e))},i(l){t||(R(n),t=!0)},o(l){U(n),t=!1},d(l){n&&n.d(l),l&&L(e)}}}function ld(i){let e,t,n=i[88].label&&rd(i);return{c(){n&&n.c(),e=Ce()},m(l,r){n&&n.m(l,r),A(l,e,r),t=!0},p(l,r){l[88].label?n?(n.p(l,r),r[0]&8192&&R(n,1)):(n=rd(l),n.c(),R(n,1),n.m(e.parentNode,e)):n&&(ke(),U(n,1,1,()=>{n=null}),Se())},i(l){t||(R(n),t=!0)},o(l){U(n),t=!1},d(l){n&&n.d(l),l&&L(e)}}}function rd(i){let e,t,n,l,r=i[28](i[88])+"",a,o,c,g,d,h,p,b,m,v,C,y,P,T,E;function V($,pe){return $[88].icon?lS:iS}let I=V(i),H=I(i);c=new xn({props:{node:i[88]}});let O=i[88].externalLink&&i[88].externalLink.url&&ad(),D=i[88].badgeCounter&&sd(i);function q(...$){return i[58](i[88],...$)}function Z(...$){return i[59](i[88],...$)}return{c(){e=S("li"),t=S("a"),H.c(),n=W(),l=S("span"),a=Le(r),o=W(),Ue(c.$$.fragment),d=W(),O&&O.c(),h=W(),D&&D.c(),y=W(),f(l,"class",g="fd-nested-list__title badge-align-"+(i[88].statusBadge&&i[88].statusBadge.align==="right"?"right":"left")+" svelte-1dtv1v6"),f(t,"href",p=i[31](i[88])),f(t,"title",b=i[33](i[88],i[28](i[88]))),f(t,"class",m="fd-nested-list__link "+(i[88]===i[7]?"is-selected":"")+" svelte-1dtv1v6"),f(t,"tabindex","0"),f(t,"role",v=i[23]?void 0:"button"),f(t,"data-testid",C=oe.getTestId(i[88])),f(e,"class","fd-nested-list__item")},m($,pe){A($,e,pe),w(e,t),H.m(t,null),w(t,n),w(t,l),w(l,a),w(l,o),Me(c,l,null),w(t,d),O&&O.m(t,null),w(t,h),D&&D.m(t,null),w(e,y),P=!0,T||(E=[te(t,"click",q),te(t,"keyup",function(){bi(i[23]?void 0:Z)&&(i[23]?void 0:Z).apply(this,arguments)})],T=!0)},p($,pe){i=$,I===(I=V(i))&&H?H.p(i,pe):(H.d(1),H=I(i),H&&(H.c(),H.m(t,n))),(!P||pe[0]&8192)&&r!==(r=i[28](i[88])+"")&&Ae(a,r);const x={};pe[0]&8192&&(x.node=i[88]),c.$set(x),(!P||pe[0]&8192&&g!==(g="fd-nested-list__title badge-align-"+(i[88].statusBadge&&i[88].statusBadge.align==="right"?"right":"left")+" svelte-1dtv1v6"))&&f(l,"class",g),i[88].externalLink&&i[88].externalLink.url?O||(O=ad(),O.c(),O.m(t,h)):O&&(O.d(1),O=null),i[88].badgeCounter?D?(D.p(i,pe),pe[0]&8192&&R(D,1)):(D=sd(i),D.c(),R(D,1),D.m(t,null)):D&&(ke(),U(D,1,1,()=>{D=null}),Se()),(!P||pe[0]&8192&&p!==(p=i[31](i[88])))&&f(t,"href",p),(!P||pe[0]&8192&&b!==(b=i[33](i[88],i[28](i[88]))))&&f(t,"title",b),(!P||pe[0]&8320&&m!==(m="fd-nested-list__link "+(i[88]===i[7]?"is-selected":"")+" svelte-1dtv1v6"))&&f(t,"class",m),(!P||pe[0]&8388608&&v!==(v=i[23]?void 0:"button"))&&f(t,"role",v),(!P||pe[0]&8192&&C!==(C=oe.getTestId(i[88])))&&f(t,"data-testid",C)},i($){P||(R(c.$$.fragment,$),R(D),P=!0)},o($){U(c.$$.fragment,$),U(D),P=!1},d($){$&&L(e),H.d(),Fe(c),O&&O.d(),D&&D.d(),T=!1,Ye(E)}}}function iS(i){let e,t;return{c(){e=S("i"),f(e,"class",t="fd-nested-list__icon sap-icon "+(i[6]?"sap-icon--rhombus-milestone-2":"")),f(e,"role","presentation")},m(n,l){A(n,e,l)},p(n,l){l[0]&64&&t!==(t="fd-nested-list__icon sap-icon "+(n[6]?"sap-icon--rhombus-milestone-2":""))&&f(e,"class",t)},d(n){n&&L(e)}}}function lS(i){let e,t;function n(a,o){return o[0]&8192&&(e=null),e==null&&(e=!!a[30](a[88].icon)),e?aS:rS}let l=n(i,[-1,-1,-1,-1]),r=l(i);return{c(){r.c(),t=Ce()},m(a,o){r.m(a,o),A(a,t,o)},p(a,o){l===(l=n(a,o))&&r?r.p(a,o):(r.d(1),r=l(a),r&&(r.c(),r.m(t.parentNode,t)))},d(a){r.d(a),a&&L(t)}}}function rS(i){let e,t,n,l;return{c(){e=S("span"),t=S("img"),Xe(t.src,n=i[88].icon)||f(t,"src",n),f(t,"alt",l=i[88].altText?i[88].altText:""),f(t,"class","svelte-1dtv1v6"),f(e,"class","fd-nested-list__icon sap-icon svelte-1dtv1v6")},m(r,a){A(r,e,a),w(e,t)},p(r,a){a[0]&8192&&!Xe(t.src,n=r[88].icon)&&f(t,"src",n),a[0]&8192&&l!==(l=r[88].altText?r[88].altText:"")&&f(t,"alt",l)},d(r){r&&L(e)}}}function aS(i){let e,t;return{c(){e=S("i"),f(e,"class",t="fd-nested-list__icon sap-icon "+i[29](i[88].icon)+" svelte-1dtv1v6"),f(e,"role","presentation")},m(n,l){A(n,e,l)},p(n,l){l[0]&8192&&t!==(t="fd-nested-list__icon sap-icon "+n[29](n[88].icon)+" svelte-1dtv1v6")&&f(e,"class",t)},d(n){n&&L(e)}}}function ad(i){let e;return{c(){e=S("i"),f(e,"class","fd-nested-list__icon sap-icon sap-icon--action"),f(e,"role","presentation")},m(t,n){A(t,e,n)},d(t){t&&L(e)}}}function sd(i){let e,t;return e=new Pn({props:{node:i[88]}}),{c(){Ue(e.$$.fragment)},m(n,l){Me(e,n,l),t=!0},p(n,l){const r={};l[0]&8192&&(r.node=n[88]),e.$set(r)},i(n){t||(R(e.$$.fragment,n),t=!0)},o(n){U(e.$$.fragment,n),t=!1},d(n){Fe(e,n)}}}function od(i){let e,t,n=!i[88].hideFromNav&&ld(i);return{c(){n&&n.c(),e=Ce()},m(l,r){n&&n.m(l,r),A(l,e,r),t=!0},p(l,r){l[88].hideFromNav?n&&(ke(),U(n,1,1,()=>{n=null}),Se()):n?(n.p(l,r),r[0]&8192&&R(n,1)):(n=ld(l),n.c(),R(n,1),n.m(e.parentNode,e))},i(l){t||(R(n),t=!0)},o(l){U(n),t=!1},d(l){n&&n.d(l),l&&L(e)}}}function ud(i){let e,t,n,l,r,a;const o=[jk,Kk],c=[];function g(d,h){return h[0]&24576&&(e=null),h[0]&8192&&(t=null),e==null&&(e=!!(d[84]==="undefined"||d[84].startsWith(d[14]))),e?0:(t==null&&(t=d[85].filter(CS).length>0),t?1:-1)}return~(n=g(i,[-1,-1,-1,-1]))&&(l=c[n]=o[n](i)),{c(){l&&l.c(),r=Ce()},m(d,h){~n&&c[n].m(d,h),A(d,r,h),a=!0},p(d,h){let p=n;n=g(d,h),n===p?~n&&c[n].p(d,h):(l&&(ke(),U(c[p],1,1,()=>{c[p]=null}),Se()),~n?(l=c[n],l?l.p(d,h):(l=c[n]=o[n](d),l.c()),R(l,1),l.m(r.parentNode,r)):l=null)},i(d){a||(R(l),a=!0)},o(d){U(l),a=!1},d(d){~n&&c[n].d(d),d&&L(r)}}}function fd(i){let e,t,n,l=(i[2]?i[2]:"")+"",r,a,o=i[3]&&cd(i);return{c(){e=S("div"),t=S("span"),n=S("span"),r=Le(l),a=W(),o&&o.c(),f(n,"class","lui-side-nav__footer--text fd-has-type-minus-1 svelte-1dtv1v6"),f(n,"data-testid","lui-side-nav__footer--text"),f(t,"class","lui-side-nav__footer svelte-1dtv1v6"),f(t,"data-testid","lui-side-nav__footer"),f(e,"class","fd-side-nav__utility svelte-1dtv1v6")},m(c,g){A(c,e,g),w(e,t),w(t,n),w(n,r),w(t,a),o&&o.m(t,null)},p(c,g){g[0]&4&&l!==(l=(c[2]?c[2]:"")+"")&&Ae(r,l),c[3]?o?o.p(c,g):(o=cd(c),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},d(c){c&&L(e),o&&o.d()}}}function cd(i){let e;function t(r,a){return r[4]=="button"?oS:sS}let n=t(i),l=n(i);return{c(){l.c(),e=Ce()},m(r,a){l.m(r,a),A(r,e,a)},p(r,a){n===(n=t(r))&&l?l.p(r,a):(l.d(1),l=n(r),l&&(l.c(),l.m(e.parentNode,e)))},d(r){l.d(r),r&&L(e)}}}function sS(i){let e,t,n,l;return{c(){e=S("i"),f(e,"class",t="lui-side-nav__footer--icon "+(i[6]?"sap-icon--open-command-field":"sap-icon--close-command-field")+" svelte-1dtv1v6"),f(e,"data-testid","semiCollapsibleButton"),f(e,"title",i[11]),f(e,"tabindex","0")},m(r,a){A(r,e,a),n||(l=[te(e,"click",i[71]),te(e,"keydown",i[72])],n=!0)},p(r,a){a[0]&64&&t!==(t="lui-side-nav__footer--icon "+(r[6]?"sap-icon--open-command-field":"sap-icon--close-command-field")+" svelte-1dtv1v6")&&f(e,"class",t),a[0]&2048&&f(e,"title",r[11])},d(r){r&&L(e),n=!1,Ye(l)}}}function oS(i){let e,t,n,l,r;return{c(){e=S("button"),t=S("i"),f(t,"class",n="lui-side-nav__footer--icon "+(i[6]?"sap-icon--open-command-field":"sap-icon--close-command-field")+" svelte-1dtv1v6"),f(e,"data-testid","semiCollapsibleButton"),f(e,"title",i[11]),f(e,"tabindex","0"),f(e,"class","fd-button fd-button--transparent fd-button--cozy lui-semi-btn svelte-1dtv1v6")},m(a,o){A(a,e,o),w(e,t),l||(r=te(e,"click",i[70]),l=!0)},p(a,o){o[0]&64&&n!==(n="lui-side-nav__footer--icon "+(a[6]?"sap-icon--open-command-field":"sap-icon--close-command-field")+" svelte-1dtv1v6")&&f(t,"class",n),o[0]&2048&&f(e,"title",a[11])},d(a){a&&L(e),l=!1,r()}}}function dd(i){let e,t,n,l,r,a,o=i[25](i[12].label)+"",c,g,d,h=i[12].icon&&hd(i),p=i[12].showUpLink&&gd(i);return{c(){e=S("div"),t=S("ul"),n=S("li"),l=S("a"),h&&h.c(),r=W(),a=S("span"),c=Le(o),g=W(),p&&p.c(),f(a,"class","fd-nested-list__title svelte-1dtv1v6"),f(l,"class","fd-nested-list__link svelte-1dtv1v6"),f(l,"title",d=i[33](i[12],i[25](i[12].label))),f(n,"class","fd-nested-list__item"),f(t,"class","fd-nested-list svelte-1dtv1v6"),f(e,"class","lui-nav-title svelte-1dtv1v6")},m(b,m){A(b,e,m),w(e,t),w(t,n),w(n,l),h&&h.m(l,null),w(l,r),w(l,a),w(a,c),w(l,g),p&&p.m(l,null)},p(b,m){b[12].icon?h?h.p(b,m):(h=hd(b),h.c(),h.m(l,r)):h&&(h.d(1),h=null),m[0]&33558528&&o!==(o=b[25](b[12].label)+"")&&Ae(c,o),b[12].showUpLink?p?p.p(b,m):(p=gd(b),p.c(),p.m(l,null)):p&&(p.d(1),p=null),m[0]&33558528&&d!==(d=b[33](b[12],b[25](b[12].label)))&&f(l,"title",d)},d(b){b&&L(e),h&&h.d(),p&&p.d()}}}function hd(i){let e,t;function n(a,o){return o[0]&4096&&(e=null),e==null&&(e=!!a[30](a[12].icon)),e?fS:uS}let l=n(i,[-1,-1,-1,-1]),r=l(i);return{c(){r.c(),t=Ce()},m(a,o){r.m(a,o),A(a,t,o)},p(a,o){l===(l=n(a,o))&&r?r.p(a,o):(r.d(1),r=l(a),r&&(r.c(),r.m(t.parentNode,t)))},d(a){r.d(a),a&&L(t)}}}function uS(i){let e,t,n,l;return{c(){e=S("span"),t=S("img"),Xe(t.src,n=i[12].icon)||f(t,"src",n),f(t,"alt",l=i[12].altText?i[12].altText:""),f(t,"class","svelte-1dtv1v6"),f(e,"class","fd-nested-list__icon sap-icon svelte-1dtv1v6")},m(r,a){A(r,e,a),w(e,t)},p(r,a){a[0]&4096&&!Xe(t.src,n=r[12].icon)&&f(t,"src",n),a[0]&4096&&l!==(l=r[12].altText?r[12].altText:"")&&f(t,"alt",l)},d(r){r&&L(e)}}}function fS(i){let e,t;return{c(){e=S("i"),f(e,"class",t="lui-header-icon fd-nested-list__icon sap-icon "+i[29](i[12].icon)+" svelte-1dtv1v6"),f(e,"role","presentation")},m(n,l){A(n,e,l)},p(n,l){l[0]&4096&&t!==(t="lui-header-icon fd-nested-list__icon sap-icon "+n[29](n[12].icon)+" svelte-1dtv1v6")&&f(e,"class",t)},d(n){n&&L(e)}}}function gd(i){let e,t,n,l;return{c(){e=S("i"),f(e,"class","lui-nav-up fd-nested-list__icon sap-icon sap-icon--navigation-up-arrow svelte-1dtv1v6"),f(e,"role","presentation"),f(e,"title",t=i[25]("luigi.navigation.up"))},m(r,a){A(r,e,a),n||(l=te(e,"click",wt(i[19])),n=!0)},p(r,a){a[0]&33554432&&t!==(t=r[25]("luigi.navigation.up"))&&f(e,"title",t)},d(r){r&&L(e),n=!1,l()}}}function _d(i){let e,t,n,l,r,a,o,c,g,d,h,p,b,m=i[13],v=[];for(let y=0;y<m.length;y+=1)v[y]=Ed(Dc(i,m,y));const C=y=>U(v[y],1,1,()=>{v[y]=null});return{c(){e=S("div"),t=S("ul");for(let y=0;y<v.length;y+=1)v[y].c();n=W(),l=S("li"),r=W(),a=S("li"),o=S("div"),c=S("a"),c.innerHTML=`<span class="fd-navigation__icon sap-icon--overflow" role="presentation" aria-hidden="true"></span>
55
55
  <span class="fd-navigation__text">More Items</span>`,g=W(),d=S("div"),d.innerHTML='<div class="fd-navigation__list-wrapper"><ul class="lui-moreItems svelte-1dtv1v6"></ul></div>',f(l,"class","lui-spacer svelte-1dtv1v6"),f(l,"role","presentation"),f(l,"aria-hidden","true"),f(c,"class","fd-navigation__link svelte-1dtv1v6"),f(c,"role","button"),f(c,"tabindex","0"),f(o,"class","fd-navigation__item lui-nav-more"),f(o,"aria-haspopup","menu"),f(o,"role","menuitem"),f(o,"aria-expanded","false"),f(o,"tabindex","-1"),f(d,"class","fd-navigation__list-container fd-navigation__list-container--menu fd-menu svelte-1dtv1v6"),f(d,"aria-hidden","false"),f(a,"class","fd-navigation__list-item fd-navigation__list-item--overflow svelte-1dtv1v6"),f(a,"aria-hidden","true"),f(t,"class","fd-navigation__list"),f(t,"role","tree"),f(t,"tabindex","-1"),f(e,"class","fd-navigation__container fd-navigation__container--top")},m(y,P){A(y,e,P),w(e,t);for(let T=0;T<v.length;T+=1)v[T].m(t,null);w(t,n),w(t,l),w(t,r),w(t,a),w(a,o),w(o,c),w(a,g),w(a,d),i[57](e),h=!0,p||(b=[te(c,"click",i[40]),te(c,"keypress",i[40])],p=!0)},p(y,P){if(P[0]&1922164672|P[1]&199){m=y[13];let T;for(T=0;T<m.length;T+=1){const E=Dc(y,m,T);v[T]?(v[T].p(E,P),R(v[T],1)):(v[T]=Ed(E),v[T].c(),R(v[T],1),v[T].m(t,n))}for(ke(),T=m.length;T<v.length;T+=1)C(T);Se()}},i(y){if(!h){for(let P=0;P<m.length;P+=1)R(v[P]);h=!0}},o(y){v=v.filter(Boolean);for(let P=0;P<v.length;P+=1)U(v[P]);h=!1},d(y){y&&L(e),ht(v,y),i[57](null),p=!1,Ye(b)}}}function cS(i){let e,t,n,l,r,a,o=i[25](i[84])+"",c,g,d,h,p,b,m,v,C,y,P,T,E,V,I;function H(G,K){return K[0]&8192&&(l=null),l==null&&(l=!!G[30](G[85].metaInfo.icon)),l?gS:hS}let O=H(i,[-1,-1,-1,-1]),D=O(i);function q(){return i[49](i[85])}function Z(){return i[50](i[85])}function $(...G){return i[51](i[85],...G)}function pe(...G){return i[52](i[85],...G)}let x=(!i[6]||i[85].metaInfo&&i[85].metaInfo.label===i[8])&&pd(i);return{c(){e=S("li"),t=S("div"),n=S("a"),D.c(),r=W(),a=S("span"),c=Le(o),g=W(),d=S("span"),h=W(),p=S("span"),y=W(),x&&x.c(),f(a,"class","fd-navigation__text"),f(d,"class","fd-navigation__selection-indicator"),f(d,"role","presentation"),f(d,"aria-hidden","true"),f(d,"aria-label","selection indicator"),f(p,"class","fd-navigation__has-children-indicator"),f(p,"role","presentation"),f(p,"aria-hidden","true"),f(p,"aria-label","has children indicator, expanded"),f(n,"class","fd-navigation__link svelte-1dtv1v6"),f(n,"role","button"),f(n,"tabindex","0"),f(t,"class",b="fd-navigation__item "+(i[6]?"fd-popover__control":"")),f(t,"role","treeitem"),f(t,"title",m=i[33](i[85],i[25](i[84]))),f(t,"aria-expanded",v=i[6]?i[85].metaInfo&&i[85].metaInfo.label===i[8]:an(i[85],i[9])),f(t,"aria-selected",C=i[6]&&i[85].indexOf(i[7])>=0),f(e,"class",P="fd-navigation__list-item "+(i[6]?"fd-popover":"")+" lui-nav-entry svelte-1dtv1v6"),f(e,"aria-hidden","true"),f(e,"data-testid",T=i[32](i[85].metaInfo,i[84]))},m(G,K){A(G,e,K),w(e,t),w(t,n),D.m(n,null),w(n,r),w(n,a),w(a,c),w(n,g),w(n,d),w(n,h),w(n,p),w(e,y),x&&x.m(e,null),E=!0,V||(I=[te(n,"click",wt(q)),te(n,"keypress",wt(Z)),te(n,"keypress",wt($)),te(t,"click",Ut(pe))],V=!0)},p(G,K){i=G,O===(O=H(i,K))&&D?D.p(i,K):(D.d(1),D=O(i),D&&(D.c(),D.m(n,r))),(!E||K[0]&33562624)&&o!==(o=i[25](i[84])+"")&&Ae(c,o),(!E||K[0]&64&&b!==(b="fd-navigation__item "+(i[6]?"fd-popover__control":"")))&&f(t,"class",b),(!E||K[0]&33562624&&m!==(m=i[33](i[85],i[25](i[84]))))&&f(t,"title",m),(!E||K[0]&9024&&v!==(v=i[6]?i[85].metaInfo&&i[85].metaInfo.label===i[8]:an(i[85],i[9])))&&f(t,"aria-expanded",v),(!E||K[0]&8384&&C!==(C=i[6]&&i[85].indexOf(i[7])>=0))&&f(t,"aria-selected",C),!i[6]||i[85].metaInfo&&i[85].metaInfo.label===i[8]?x?(x.p(i,K),K[0]&8512&&R(x,1)):(x=pd(i),x.c(),R(x,1),x.m(e,null)):x&&(ke(),U(x,1,1,()=>{x=null}),Se()),(!E||K[0]&64&&P!==(P="fd-navigation__list-item "+(i[6]?"fd-popover":"")+" lui-nav-entry svelte-1dtv1v6"))&&f(e,"class",P),(!E||K[0]&8192&&T!==(T=i[32](i[85].metaInfo,i[84])))&&f(e,"data-testid",T)},i(G){E||(R(x),E=!0)},o(G){U(x),E=!1},d(G){G&&L(e),D.d(),x&&x.d(),V=!1,Ye(I)}}}function dS(i){let e,t,n=i[85],l=[];for(let a=0;a<n.length;a+=1)l[a]=Ad(Oc(i,n,a));const r=a=>U(l[a],1,1,()=>{l[a]=null});return{c(){for(let a=0;a<l.length;a+=1)l[a].c();e=Ce()},m(a,o){for(let c=0;c<l.length;c+=1)l[c].m(a,o);A(a,e,o),t=!0},p(a,o){if(o[0]&1887477952|o[1]&133){n=a[85];let c;for(c=0;c<n.length;c+=1){const g=Oc(a,n,c);l[c]?(l[c].p(g,o),R(l[c],1)):(l[c]=Ad(g),l[c].c(),R(l[c],1),l[c].m(e.parentNode,e))}for(ke(),c=n.length;c<l.length;c+=1)r(c);Se()}},i(a){if(!t){for(let o=0;o<n.length;o+=1)R(l[o]);t=!0}},o(a){l=l.filter(Boolean);for(let o=0;o<l.length;o+=1)U(l[o]);t=!1},d(a){ht(l,a),a&&L(e)}}}function hS(i){let e,t,n,l;return{c(){e=S("span"),t=S("img"),Xe(t.src,n=i[85].metaInfo.icon)||f(t,"src",n),f(t,"alt",l=i[85].metaInfo.altText?i[85].metaInfo.altText:""),f(t,"class","svelte-1dtv1v6"),f(e,"class","fd-navigation__icon svelte-1dtv1v6"),f(e,"role","presentation"),f(e,"aria-hidden","true")},m(r,a){A(r,e,a),w(e,t)},p(r,a){a[0]&8192&&!Xe(t.src,n=r[85].metaInfo.icon)&&f(t,"src",n),a[0]&8192&&l!==(l=r[85].metaInfo.altText?r[85].metaInfo.altText:"")&&f(t,"alt",l)},d(r){r&&L(e)}}}function gS(i){let e,t;return{c(){e=S("span"),f(e,"class",t="fd-navigation__icon "+i[29](i[85].metaInfo.icon)+" "+(i[6]&&!i[85].metaInfo.icon?"sap-icon--rhombus-milestone-2":"")+" svelte-1dtv1v6"),f(e,"role","presentation"),f(e,"aria-hidden","true")},m(n,l){A(n,e,l)},p(n,l){l[0]&8256&&t!==(t="fd-navigation__icon "+n[29](n[85].metaInfo.icon)+" "+(n[6]&&!n[85].metaInfo.icon?"sap-icon--rhombus-milestone-2":"")+" svelte-1dtv1v6")&&f(e,"class",t)},d(n){n&&L(e)}}}function pd(i){let e,t,n,l,r,a,o,c=i[6]&&md(i),g=i[85],d=[];for(let p=0;p<g.length;p+=1)d[p]=Pd(Vc(i,g,p));const h=p=>U(d[p],1,1,()=>{d[p]=null});return{c(){e=S("div"),t=S("div"),c&&c.c(),n=W(),l=S("ul");for(let p=0;p<d.length;p+=1)d[p].c();f(l,"class","fd-navigation__list fd-navigation__list--child-items"),f(l,"role","tree"),f(l,"tabindex","-1"),f(t,"class",r="fd-navigation__list-wrapper "+(i[6]?"fd-popover__wrapper":"")),f(t,"aria-hidden","true"),f(e,"class",a="fd-navigation__list-container "+(i[6]?"fd-popover__body fd-popover__body--after fd-popover__body--arrow-left":"")+" svelte-1dtv1v6")},m(p,b){A(p,e,b),w(e,t),c&&c.m(t,null),w(t,n),w(t,l);for(let m=0;m<d.length;m+=1)d[m].m(l,null);o=!0},p(p,b){if(p[6]?c?c.p(p,b):(c=md(p),c.c(),c.m(t,n)):c&&(c.d(1),c=null),b[0]&276865152|b[1]&133){g=p[85];let m;for(m=0;m<g.length;m+=1){const v=Vc(p,g,m);d[m]?(d[m].p(v,b),R(d[m],1)):(d[m]=Pd(v),d[m].c(),R(d[m],1),d[m].m(l,null))}for(ke(),m=g.length;m<d.length;m+=1)h(m);Se()}(!o||b[0]&64&&r!==(r="fd-navigation__list-wrapper "+(p[6]?"fd-popover__wrapper":"")))&&f(t,"class",r),(!o||b[0]&64&&a!==(a="fd-navigation__list-container "+(p[6]?"fd-popover__body fd-popover__body--after fd-popover__body--arrow-left":"")+" svelte-1dtv1v6"))&&f(e,"class",a)},i(p){if(!o){for(let b=0;b<g.length;b+=1)R(d[b]);o=!0}},o(p){d=d.filter(Boolean);for(let b=0;b<d.length;b+=1)U(d[b]);o=!1},d(p){p&&L(e),c&&c.d(),ht(d,p)}}}function md(i){let e,t,n,l,r=i[25](i[84])+"",a,o,c,g,d,h=i[10]&&i[85].metaInfo.icon&&bd(i);return{c(){e=S("div"),t=S("a"),h&&h.c(),n=W(),l=S("span"),a=Le(r),o=W(),c=S("span"),f(l,"class","fd-navigation__text"),f(c,"class","fd-navigation__selection-indicator"),f(t,"class","fd-navigation__link svelte-1dtv1v6"),f(t,"role","button"),f(t,"tabindex","0"),f(e,"class","fd-navigation__item fd-navigation__item--title svelte-1dtv1v6"),f(e,"aria-level","1"),f(e,"role","treeitem"),f(e,"aria-expanded","true"),f(e,"aria-selected","false"),f(e,"title",g=i[33](i[85],i[25](i[84]))),f(e,"data-testid",d=i[32](i[85].metaInfo,i[84]))},m(p,b){A(p,e,b),w(e,t),h&&h.m(t,null),w(t,n),w(t,l),w(l,a),w(t,o),w(t,c)},p(p,b){p[10]&&p[85].metaInfo.icon?h?h.p(p,b):(h=bd(p),h.c(),h.m(t,n)):h&&(h.d(1),h=null),b[0]&33562624&&r!==(r=p[25](p[84])+"")&&Ae(a,r),b[0]&33562624&&g!==(g=p[33](p[85],p[25](p[84])))&&f(e,"title",g),b[0]&8192&&d!==(d=p[32](p[85].metaInfo,p[84]))&&f(e,"data-testid",d)},d(p){p&&L(e),h&&h.d()}}}function bd(i){let e,t;function n(a,o){return o[0]&8192&&(e=null),e==null&&(e=!!a[30](a[85].metaInfo.icon)),e?pS:_S}let l=n(i,[-1,-1,-1,-1]),r=l(i);return{c(){r.c(),t=Ce()},m(a,o){r.m(a,o),A(a,t,o)},p(a,o){l===(l=n(a,o))&&r?r.p(a,o):(r.d(1),r=l(a),r&&(r.c(),r.m(t.parentNode,t)))},d(a){r.d(a),a&&L(t)}}}function _S(i){let e,t,n,l;return{c(){e=S("span"),t=S("img"),Xe(t.src,n=i[85].metaInfo.icon)||f(t,"src",n),f(t,"alt",l=i[85].metaInfo.altText?i[85].metaInfo.altText:""),f(t,"class","svelte-1dtv1v6"),f(e,"class","fd-navigation__icon svelte-1dtv1v6"),f(e,"role","presentation"),f(e,"aria-hidden","true")},m(r,a){A(r,e,a),w(e,t)},p(r,a){a[0]&8192&&!Xe(t.src,n=r[85].metaInfo.icon)&&f(t,"src",n),a[0]&8192&&l!==(l=r[85].metaInfo.altText?r[85].metaInfo.altText:"")&&f(t,"alt",l)},d(r){r&&L(e)}}}function pS(i){let e,t;return{c(){e=S("span"),f(e,"class",t="fd-navigation__icon "+i[29](i[85].metaInfo.icon)+" svelte-1dtv1v6"),f(e,"role","presentation"),f(e,"aria-hidden","true")},m(n,l){A(n,e,l)},p(n,l){l[0]&8192&&t!==(t="fd-navigation__icon "+n[29](n[85].metaInfo.icon)+" svelte-1dtv1v6")&&f(e,"class",t)},d(n){n&&L(e)}}}function vd(i){let e,t,n=i[88].label&&wd(i);return{c(){n&&n.c(),e=Ce()},m(l,r){n&&n.m(l,r),A(l,e,r),t=!0},p(l,r){l[88].label?n?(n.p(l,r),r[0]&8192&&R(n,1)):(n=wd(l),n.c(),R(n,1),n.m(e.parentNode,e)):n&&(ke(),U(n,1,1,()=>{n=null}),Se())},i(l){t||(R(n),t=!0)},o(l){U(n),t=!1},d(l){n&&n.d(l),l&&L(e)}}}function wd(i){let e,t,n,l,r=i[28](i[88])+"",a,o,c,g,d,h,p,b,m,v,C,y,P,T,E,V,I=i[28](i[88])+"",H,O,D,q,Z,$,pe,x,G,K,J,ge,ie,se;c=new xn({props:{node:i[88]}});let ve=i[88].externalLink&&i[88].externalLink.url&&kd(),re=i[88].badgeCounter&&Sd(i);function Re(...Be){return i[53](i[88],...Be)}function ze(...Be){return i[54](i[88],...Be)}D=new xn({props:{node:i[88]}});let ne=i[88].externalLink&&i[88].externalLink.url&&Cd(),ce=i[88].badgeCounter&&yd(i);function Te(...Be){return i[55](i[88],...Be)}function tt(...Be){return i[56](i[88],...Be)}return{c(){e=S("li"),t=S("div"),n=S("a"),l=S("span"),a=Le(r),o=W(),Ue(c.$$.fragment),d=W(),h=S("span"),p=W(),ve&&ve.c(),b=W(),re&&re.c(),P=W(),T=S("li"),E=S("a"),V=S("span"),H=Le(I),O=W(),Ue(D.$$.fragment),Z=W(),ne&&ne.c(),$=W(),ce&&ce.c(),f(l,"class",g="fd-navigation__text badge-align-"+(i[88].statusBadge&&i[88].statusBadge.align==="right"?"right":"left")+" svelte-1dtv1v6"),f(h,"class","fd-navigation__selection-indicator"),f(h,"role","presentation"),f(h,"aria-hidden","true"),f(h,"aria-label","selection indicator"),f(n,"class","fd-navigation__link svelte-1dtv1v6"),f(n,"tabindex","0"),f(n,"href",m=i[31](i[88])),f(t,"class","fd-navigation__item fd-navigation__item--child"),f(t,"aria-level","3"),f(t,"role","treeitem"),f(t,"title",v=i[33](i[88],i[28](i[88]))),f(t,"aria-expanded","false"),f(t,"aria-selected",C=i[88]===i[7]),f(t,"data-testid",y=oe.getTestId(i[88])),f(e,"class","fd-navigation__list-item"),f(e,"aria-hidden","true"),f(V,"class",q="fd-nested-list__title badge-align-"+(i[88].statusBadge&&i[88].statusBadge.align==="right"?"right":"left")+" svelte-1dtv1v6"),f(E,"href",pe=i[31](i[88])),f(E,"class",x="fd-nested-list__link "+(i[88]===i[7]?"is-selected":"")+" svelte-1dtv1v6"),f(E,"role",G=i[23]?void 0:"button"),f(E,"tabindex","0"),f(E,"data-testid",K=oe.getTestId(i[88])),f(E,"title",J=i[33](i[88],i[28](i[88]))),Vn(T,"display","none"),f(T,"class","fd-nested-list__item"),f(T,"aria-labelledby","collapsible_listnode_"+i[87])},m(Be,rt){A(Be,e,rt),w(e,t),w(t,n),w(n,l),w(l,a),w(l,o),Me(c,l,null),w(n,d),w(n,h),w(n,p),ve&&ve.m(n,null),w(n,b),re&&re.m(n,null),A(Be,P,rt),A(Be,T,rt),w(T,E),w(E,V),w(V,H),w(V,O),Me(D,V,null),w(E,Z),ne&&ne.m(E,null),w(E,$),ce&&ce.m(E,null),ge=!0,ie||(se=[te(n,"click",Re),te(n,"keyup",function(){bi(i[23]?void 0:ze)&&(i[23]?void 0:ze).apply(this,arguments)}),te(E,"click",Te),te(E,"keyup",function(){bi(i[23]?void 0:tt)&&(i[23]?void 0:tt).apply(this,arguments)})],ie=!0)},p(Be,rt){i=Be,(!ge||rt[0]&8192)&&r!==(r=i[28](i[88])+"")&&Ae(a,r);const Pt={};rt[0]&8192&&(Pt.node=i[88]),c.$set(Pt),(!ge||rt[0]&8192&&g!==(g="fd-navigation__text badge-align-"+(i[88].statusBadge&&i[88].statusBadge.align==="right"?"right":"left")+" svelte-1dtv1v6"))&&f(l,"class",g),i[88].externalLink&&i[88].externalLink.url?ve||(ve=kd(),ve.c(),ve.m(n,b)):ve&&(ve.d(1),ve=null),i[88].badgeCounter?re?(re.p(i,rt),rt[0]&8192&&R(re,1)):(re=Sd(i),re.c(),R(re,1),re.m(n,null)):re&&(ke(),U(re,1,1,()=>{re=null}),Se()),(!ge||rt[0]&8192&&m!==(m=i[31](i[88])))&&f(n,"href",m),(!ge||rt[0]&8192&&v!==(v=i[33](i[88],i[28](i[88]))))&&f(t,"title",v),(!ge||rt[0]&8320&&C!==(C=i[88]===i[7]))&&f(t,"aria-selected",C),(!ge||rt[0]&8192&&y!==(y=oe.getTestId(i[88])))&&f(t,"data-testid",y),(!ge||rt[0]&8192)&&I!==(I=i[28](i[88])+"")&&Ae(H,I);const _e={};rt[0]&8192&&(_e.node=i[88]),D.$set(_e),(!ge||rt[0]&8192&&q!==(q="fd-nested-list__title badge-align-"+(i[88].statusBadge&&i[88].statusBadge.align==="right"?"right":"left")+" svelte-1dtv1v6"))&&f(V,"class",q),i[88].externalLink&&i[88].externalLink.url?ne||(ne=Cd(),ne.c(),ne.m(E,$)):ne&&(ne.d(1),ne=null),i[88].badgeCounter?ce?(ce.p(i,rt),rt[0]&8192&&R(ce,1)):(ce=yd(i),ce.c(),R(ce,1),ce.m(E,null)):ce&&(ke(),U(ce,1,1,()=>{ce=null}),Se()),(!ge||rt[0]&8192&&pe!==(pe=i[31](i[88])))&&f(E,"href",pe),(!ge||rt[0]&8320&&x!==(x="fd-nested-list__link "+(i[88]===i[7]?"is-selected":"")+" svelte-1dtv1v6"))&&f(E,"class",x),(!ge||rt[0]&8388608&&G!==(G=i[23]?void 0:"button"))&&f(E,"role",G),(!ge||rt[0]&8192&&K!==(K=oe.getTestId(i[88])))&&f(E,"data-testid",K),(!ge||rt[0]&8192&&J!==(J=i[33](i[88],i[28](i[88]))))&&f(E,"title",J)},i(Be){ge||(R(c.$$.fragment,Be),R(re),R(D.$$.fragment,Be),R(ce),ge=!0)},o(Be){U(c.$$.fragment,Be),U(re),U(D.$$.fragment,Be),U(ce),ge=!1},d(Be){Be&&L(e),Fe(c),ve&&ve.d(),re&&re.d(),Be&&L(P),Be&&L(T),Fe(D),ne&&ne.d(),ce&&ce.d(),ie=!1,Ye(se)}}}function kd(i){let e;return{c(){e=S("span"),f(e,"class","fd-navigation__external-link-indicator"),f(e,"role","presentation"),f(e,"aria-hidden","true"),f(e,"aria-label","external link indicator")},m(t,n){A(t,e,n)},d(t){t&&L(e)}}}function Sd(i){let e,t;return e=new Pn({props:{node:i[88]}}),{c(){Ue(e.$$.fragment)},m(n,l){Me(e,n,l),t=!0},p(n,l){const r={};l[0]&8192&&(r.node=n[88]),e.$set(r)},i(n){t||(R(e.$$.fragment,n),t=!0)},o(n){U(e.$$.fragment,n),t=!1},d(n){Fe(e,n)}}}function Cd(i){let e;return{c(){e=S("i"),f(e,"class","sap-icon--action")},m(t,n){A(t,e,n)},d(t){t&&L(e)}}}function yd(i){let e,t;return e=new Pn({props:{node:i[88]}}),{c(){Ue(e.$$.fragment)},m(n,l){Me(e,n,l),t=!0},p(n,l){const r={};l[0]&8192&&(r.node=n[88]),e.$set(r)},i(n){t||(R(e.$$.fragment,n),t=!0)},o(n){U(e.$$.fragment,n),t=!1},d(n){Fe(e,n)}}}function Pd(i){let e,t,n=!i[88].hideFromNav&&vd(i);return{c(){n&&n.c(),e=Ce()},m(l,r){n&&n.m(l,r),A(l,e,r),t=!0},p(l,r){l[88].hideFromNav?n&&(ke(),U(n,1,1,()=>{n=null}),Se()):n?(n.p(l,r),r[0]&8192&&R(n,1)):(n=vd(l),n.c(),R(n,1),n.m(e.parentNode,e))},i(l){t||(R(n),t=!0)},o(l){U(n),t=!1},d(l){n&&n.d(l),l&&L(e)}}}function Nd(i){let e,t,n=i[88].label&&Td(i);return{c(){n&&n.c(),e=Ce()},m(l,r){n&&n.m(l,r),A(l,e,r),t=!0},p(l,r){l[88].label?n?(n.p(l,r),r[0]&8192&&R(n,1)):(n=Td(l),n.c(),R(n,1),n.m(e.parentNode,e)):n&&(ke(),U(n,1,1,()=>{n=null}),Se())},i(l){t||(R(n),t=!0)},o(l){U(n),t=!1},d(l){n&&n.d(l),l&&L(e)}}}function Td(i){let e,t,n,l,r,a=i[28](i[88])+"",o,c,g,d,h,p,b,m,v,C,y,P,T,E,V,I,H;function O(G,K){return G[88].icon?bS:mS}let D=O(i),q=D(i);g=new xn({props:{node:i[88]}});let Z=i[88].externalLink&&i[88].externalLink.url&&Id(),$=i[88].badgeCounter&&Ld(i);function pe(...G){return i[47](i[88],...G)}function x(...G){return i[48](i[88],...G)}return{c(){e=S("li"),t=S("div"),n=S("a"),q.c(),l=W(),r=S("span"),o=Le(a),c=W(),Ue(g.$$.fragment),h=W(),Z&&Z.c(),p=W(),$&&$.c(),b=W(),m=S("span"),f(r,"class",d="fd-navigation__text lui-hideOnHover-show badge-align-"+(i[88].statusBadge&&i[88].statusBadge.align==="right"?"right":"left")+" svelte-1dtv1v6"),f(m,"class","fd-navigation__selection-indicator"),f(m,"role","presentation"),f(m,"aria-hidden","true"),f(m,"aria-label","selection indicator"),f(n,"class",v="fd-navigation__link "+(i[88]===i[7]?"is-selected":"")+" lui-hideOnHover svelte-1dtv1v6"),f(n,"tabindex","0"),f(n,"href",C=i[31](i[88])),f(n,"title",y=i[33](i[88],i[28](i[88]))),f(n,"role",P=i[23]?void 0:"button"),f(n,"data-testid",T=oe.getTestId(i[88])),f(t,"class","fd-navigation__item"),f(t,"aria-level","2"),f(t,"role","treeitem"),f(t,"aria-selected",E=i[88]===i[7]),f(t,"aria-expanded","false"),f(e,"class","fd-navigation__list-item lui-nav-entry"),f(e,"aria-hidden","true")},m(G,K){A(G,e,K),w(e,t),w(t,n),q.m(n,null),w(n,l),w(n,r),w(r,o),w(r,c),Me(g,r,null),w(n,h),Z&&Z.m(n,null),w(n,p),$&&$.m(n,null),w(n,b),w(n,m),V=!0,I||(H=[te(n,"click",pe),te(n,"keyup",function(){bi(i[23]?void 0:x)&&(i[23]?void 0:x).apply(this,arguments)})],I=!0)},p(G,K){i=G,D===(D=O(i))&&q?q.p(i,K):(q.d(1),q=D(i),q&&(q.c(),q.m(n,l))),(!V||K[0]&8192)&&a!==(a=i[28](i[88])+"")&&Ae(o,a);const J={};K[0]&8192&&(J.node=i[88]),g.$set(J),(!V||K[0]&8192&&d!==(d="fd-navigation__text lui-hideOnHover-show badge-align-"+(i[88].statusBadge&&i[88].statusBadge.align==="right"?"right":"left")+" svelte-1dtv1v6"))&&f(r,"class",d),i[88].externalLink&&i[88].externalLink.url?Z||(Z=Id(),Z.c(),Z.m(n,p)):Z&&(Z.d(1),Z=null),i[88].badgeCounter?$?($.p(i,K),K[0]&8192&&R($,1)):($=Ld(i),$.c(),R($,1),$.m(n,b)):$&&(ke(),U($,1,1,()=>{$=null}),Se()),(!V||K[0]&8320&&v!==(v="fd-navigation__link "+(i[88]===i[7]?"is-selected":"")+" lui-hideOnHover svelte-1dtv1v6"))&&f(n,"class",v),(!V||K[0]&8192&&C!==(C=i[31](i[88])))&&f(n,"href",C),(!V||K[0]&8192&&y!==(y=i[33](i[88],i[28](i[88]))))&&f(n,"title",y),(!V||K[0]&8388608&&P!==(P=i[23]?void 0:"button"))&&f(n,"role",P),(!V||K[0]&8192&&T!==(T=oe.getTestId(i[88])))&&f(n,"data-testid",T),(!V||K[0]&8320&&E!==(E=i[88]===i[7]))&&f(t,"aria-selected",E)},i(G){V||(R(g.$$.fragment,G),R($),V=!0)},o(G){U(g.$$.fragment,G),U($),V=!1},d(G){G&&L(e),q.d(),Fe(g),Z&&Z.d(),$&&$.d(),I=!1,Ye(H)}}}function mS(i){let e,t;return{c(){e=S("span"),f(e,"class",t="fd-navigation__icon lui-hideOnHover-show "+(i[6]?"sap-icon--rhombus-milestone-2":"")),f(e,"role","presentation"),f(e,"aria-hidden","true")},m(n,l){A(n,e,l)},p(n,l){l[0]&64&&t!==(t="fd-navigation__icon lui-hideOnHover-show "+(n[6]?"sap-icon--rhombus-milestone-2":""))&&f(e,"class",t)},d(n){n&&L(e)}}}function bS(i){let e,t;function n(a,o){return o[0]&8192&&(e=null),e==null&&(e=!!a[30](a[88].icon)),e?wS:vS}let l=n(i,[-1,-1,-1,-1]),r=l(i);return{c(){r.c(),t=Ce()},m(a,o){r.m(a,o),A(a,t,o)},p(a,o){l===(l=n(a,o))&&r?r.p(a,o):(r.d(1),r=l(a),r&&(r.c(),r.m(t.parentNode,t)))},d(a){r.d(a),a&&L(t)}}}function vS(i){let e,t,n,l;return{c(){e=S("span"),t=S("img"),Xe(t.src,n=i[88].icon)||f(t,"src",n),f(t,"alt",l=i[88].altText?i[88].altText:""),f(t,"class","svelte-1dtv1v6"),f(e,"class","fd-navigation__icon lui-hideOnHover-show svelte-1dtv1v6")},m(r,a){A(r,e,a),w(e,t)},p(r,a){a[0]&8192&&!Xe(t.src,n=r[88].icon)&&f(t,"src",n),a[0]&8192&&l!==(l=r[88].altText?r[88].altText:"")&&f(t,"alt",l)},d(r){r&&L(e)}}}function wS(i){let e,t;return{c(){e=S("span"),f(e,"class",t="fd-navigation__icon lui-hideOnHover-show "+i[29](i[88].icon)+" svelte-1dtv1v6"),f(e,"role","presentation"),f(e,"aria-hidden","true")},m(n,l){A(n,e,l)},p(n,l){l[0]&8192&&t!==(t="fd-navigation__icon lui-hideOnHover-show "+n[29](n[88].icon)+" svelte-1dtv1v6")&&f(e,"class",t)},d(n){n&&L(e)}}}function Id(i){let e;return{c(){e=S("span"),f(e,"class","fd-navigation__external-link-indicator"),f(e,"role","presentation"),f(e,"aria-hidden","true"),f(e,"aria-label","external link indicator")},m(t,n){A(t,e,n)},d(t){t&&L(e)}}}function Ld(i){let e,t;return e=new Pn({props:{node:i[88]}}),{c(){Ue(e.$$.fragment)},m(n,l){Me(e,n,l),t=!0},p(n,l){const r={};l[0]&8192&&(r.node=n[88]),e.$set(r)},i(n){t||(R(e.$$.fragment,n),t=!0)},o(n){U(e.$$.fragment,n),t=!1},d(n){Fe(e,n)}}}function Ad(i){let e,t,n=!i[88].hideFromNav&&Nd(i);return{c(){n&&n.c(),e=Ce()},m(l,r){n&&n.m(l,r),A(l,e,r),t=!0},p(l,r){l[88].hideFromNav?n&&(ke(),U(n,1,1,()=>{n=null}),Se()):n?(n.p(l,r),r[0]&8192&&R(n,1)):(n=Nd(l),n.c(),R(n,1),n.m(e.parentNode,e))},i(l){t||(R(n),t=!0)},o(l){U(n),t=!1},d(l){n&&n.d(l),l&&L(e)}}}function Ed(i){let e,t,n,l,r,a;const o=[dS,cS],c=[];function g(d,h){return h[0]&24576&&(e=null),h[0]&8192&&(t=null),e==null&&(e=!!(d[84]==="undefined"||d[84].startsWith(d[14]))),e?0:(t==null&&(t=d[85].filter(SS).length>0),t?1:-1)}return~(n=g(i,[-1,-1,-1,-1]))&&(l=c[n]=o[n](i)),{c(){l&&l.c(),r=Ce()},m(d,h){~n&&c[n].m(d,h),A(d,r,h),a=!0},p(d,h){let p=n;n=g(d,h),n===p?~n&&c[n].p(d,h):(l&&(ke(),U(c[p],1,1,()=>{c[p]=null}),Se()),~n?(l=c[n],l?l.p(d,h):(l=c[n]=o[n](d),l.c()),R(l,1),l.m(r.parentNode,r)):l=null)},i(d){a||(R(l),a=!0)},o(d){U(l),a=!1},d(d){~n&&c[n].d(d),d&&L(r)}}}function kS(i){let e,t,n,l,r,a;const o=[zk,Wk],c=[];function g(d,h){return d[27]?0:1}return e=g(i),t=c[e]=o[e](i),{c(){t.c(),n=Ce()},m(d,h){c[e].m(d,h),A(d,n,h),l=!0,r||(a=[te(xa,"resize",i[17]),te(xa,"click",i[21]),te(xa,"blur",i[21]),te(xa,"keydown",i[34])],r=!0)},p(d,h){t.p(d,h)},i(d){l||(R(t),l=!0)},o(d){U(t),l=!1},d(d){c[e].d(d),d&&L(n),r=!1,Ye(a)}}}function an(i,e){return e&&e.indexOf(i.metaInfo.categoryUid)>=0}function Vo(i){const e=i.closest(".lui-nav-entry");e.style.setProperty("--lui_popover_offset","0px"),setTimeout(()=>{const n=e.querySelector(".fd-popover__body").getBoundingClientRect();n.top+n.height>window.innerHeight&&e.style.setProperty("--lui_popover_offset",n.top+n.height-window.innerHeight+"px")})}const SS=i=>!i.hideFromNav&&i.label,CS=i=>!i.hideFromNav&&i.label;function yS(i,e,t){let n;const l={get:()=>({children:a,hideNavComponent:o,footerText:c,semiCollapsible:g,pathData:p,virtualGroupPrefix:m,isSemiCollapsed:v,selectedNode:C,sideNavAccordionMode:E,selectedCategory:y,expandedCategories:P,hasCategoriesWithIcon:T,navParentNode:H}),set:async Q=>{Q&&(Object.getOwnPropertyNames(Q).forEach(async ye=>{if(ye==="pathData")t(5,p=Q.pathData);else if(ye==="context")O=Q.context;else if(ye==="children")t(0,a=Q.children);else if(ye==="selectedNode")t(7,C=Q.selectedNode);else if(ye==="hasCategoriesWithIcon")t(10,T=Q.hasCategoriesWithIcon);else if(ye==="navParent"){t(12,I=void 0);let nt=Q.navParent;if(t(43,H=nt),nt&&nt.navHeader&&le.requestExperimentalFeature("navHeader",!0)){let ut=nt.navHeader,St=nt;if(ut==="inherit"){for(St=nt.parent;St&&St.navHeader==="inherit";)St=St.parent;ut=St?St.navHeader:void 0}if(ut instanceof Function){t(12,I={});let tn=ut(oe.stripNode(nt),oe.stripNode(St),O);tn instanceof Promise?tn.then(gn=>{t(12,I=gn)}):t(12,I=tn)}else if(ut==="auto")t(12,I={label:nt.label,icon:nt.icon});else if(ut&&ut.useTitleResolver&&St.titleResolver){St.titleResolver.prerenderFallback?t(12,I={...ut,label:St.titleResolver.fallbackTitle||"",icon:St.titleResolver.fallbackIcon}):t(12,I=ut);const tn=we.mapPathToNode(lt.getCurrentPath(),St);Mt.extractDataFromPath(tn).then(gn=>{const ti=we.substituteDynamicParamsInObject(Object.assign({},gn.pathData.context,St.context),gn.pathData.pathParams);oe.fetchNodeTitleData(St,ti).then(ni=>{t(12,I={...ut,...ni})}).catch(ni=>{console.error("Error while retrieving title, fallback to node label"),t(12,I={...ut,label:nt.label,icon:nt.icon})})})}else t(12,I=await ne(ut,St))}}}),t(42,E=oe.getSideNavAccordionMode(C)))}},r=Jt();let{children:a}=e,{hideNavComponent:o}=e,{footerText:c}=e,{semiCollapsible:g}=e,{semiCollapsibleButton:d}=e,{semiCollapsibleButtonStyle:h}=e,{pathData:p}=e,{pathParams:b}=e,{virtualGroupPrefix:m=oe.virtualGroupPrefix}=e,{isSemiCollapsed:v}=e,{selectedNode:C}=e,{selectedCategory:y=null}=e,{expandedCategories:P}=e,{hasCategoriesWithIcon:T}=e,{sideNavAccordionMode:E}=e,{burgerTooltip:V}=e,{navHeader:I}=e,{navParentNode:H}=e,O,D,q,Z=vt("store"),$=vt("getTranslation");wi(i,$,Q=>t(25,n=Q));let pe=!1,x=ae.getConfigBooleanValue("settings.btpToolLayout")&&le.requestExperimentalFeature("btpToolLayout",!1),G;const K=Q=>oe.getNodeLabel(Q),J=async()=>{const Q=l.get(),ye=await Mt.getLeftNavData({...Q},Q);ye&&(l.set(ye),D=p,window.LEFTNAVDATA=ye.children)};$t(()=>{t(3,d=ae.getConfigValue("settings.responsiveNavigation")==="semiCollapsible"),t(4,h=ae.getConfigValue("settings.semiCollapsibleButtonStyle")),t(23,pe=ae.getConfigValue("navigation.addNavHrefs")),t(1,o=ae.getConfigBooleanValue("settings.hideNavigation")),t(22,q=ae.getConfigBooleanValue("settings.sideNavCompactMode")),t(9,P=oe.loadExpandedCategories()),dn.doOnStoreChange(Z,()=>{t(2,c=ae.getConfigValue("settings.sideNavFooterText"))},["settings.footer"]),dn.doOnStoreChange(Z,()=>{J()},["navigation.viewgroupdata"]);let Q=_i.initial();t(6,v=Q.isSemiCollapsed),t(41,g=Q.semiCollapsible),_i.onValueChanged(ye=>{t(6,v=ye.isSemiCollapsed)}),On.addEventListener("message",ye=>{ye.data.msg==="luigi.navigation.update-badge-counters"&&J()})});const ge=()=>{if(G){const Q=G.querySelectorAll(".lui-moreItems > .lui-nav-entry"),ye=G.querySelector(".fd-navigation__list"),nt=G.querySelector(".fd-navigation__list > .lui-spacer");Q==null||Q.forEach(ut=>{ye.insertBefore(ut,nt)}),G.querySelector(".fd-navigation__list > .fd-navigation__list-item--overflow").style.display="none"}},ie=()=>{const Q=G.querySelector(".fd-navigation__list > .lui-spacer"),ye=G.querySelector(".lui-moreItems"),nt=G.querySelectorAll(".fd-navigation__list > .lui-nav-entry");if(Q.clientHeight===0&&nt.length>1){G.querySelector(".fd-navigation__list > .fd-navigation__list-item--overflow").style.display="flex";for(let ut=nt.length-1;ut>0&&(lastNode=nt[ut-1],ye.insertBefore(nt[ut],ye.firstChild),!(Q.clientHeight>0));ut--);}};jr(()=>{if(!window.Luigi.__btpNavTopCntRszObs){let Q;window.Luigi.__btpNavTopCntRszObs=new ResizeObserver((ye,nt)=>{Q&&clearTimeout(Q),v&&(Q=setTimeout(()=>{ge(),ie()},100))})}window.Luigi.__btpNavTopCntRszObs.disconnect(),G&&v?window.Luigi.__btpNavTopCntRszObs.observe(G):ge()}),qn(()=>{(!D||D!=p)&&J(),t(22,q=ae.getConfigBooleanValue("settings.sideNavCompactMode")),t(9,P=oe.loadExpandedCategories()),t(3,d=ae.getConfigValue("settings.responsiveNavigation")==="semiCollapsible")});let{sortedChildrenEntries:se}=e;function ve(Q){return oe.renderIconClassName(Q)}function re(Q){return oe.isOpenUIiconName(Q)}function Re(Q){return we.getNodeHref(Q,b)}function ze(Q,ye){return Q&&Q.testId?Q.testId:oe.prepareForTests(ye||Q.label)}async function ne(Q,ye){const nt=we.mapPathToNode(lt.getCurrentPath(),ye),St=(await Mt.extractDataFromPath(nt)).pathData.pathParams;return we.substituteDynamicParamsInObject(Q,St)}function ce(Q,ye){return oe.generateTooltipText(Q,ye)}function Te(Q){r("handleClick",{node:Q})}function tt(Q,ye){if(kt(),_i.getCollapsed()){let nt,ut=document.getElementsByClassName("fd-app__sidebar")[0];if(Q.metaInfo&&Q.metaInfo.label?nt=Q.metaInfo.label:nt=Q.category&&Q.category.label||Q.category,ut&&!ut.classList.contains("isBlocked")&&(ut.className+=" isBlocked"),nt===y){t(8,y=_i.closePopupMenu(y));return}t(8,y=nt),ut?Be(ye):x&&Vo(ye)}}function Be(Q){const ye=Q.closest(".fd-nested-list__item"),nt=ye.offsetTop,ut=Hi.getShellbar().offsetHeight;let St;Hi.isCustomLuigiContainer()?St=Hi.getCustomLuigiContainer().clientHeight:St=window.innerHeight,setTimeout(()=>{const tn=ye.getElementsByClassName("lui-flyout-sublist")[0],gn=Q.closest(".lui-fd-side-nav-wrapper").scrollTop,ti=nt+ut-gn,ni=St-nt-ye.offsetHeight+gn-ut;ti+tn.offsetHeight>=St?(tn.style.bottom=ni+"px",tn.className+=" has-bottom-position"):tn.style.top=ti-ut+"px"})}function rt(){if(g){let Q=_i.onResize(y);t(6,v=Q.isSemiCollapsed),t(8,y=Q.selectedCategory)}}function Pt(Q){if(Q.code==="ArrowRight"){const nt=Ee.getCurrentMicrofrontendIframe();nt&&nt.contentWindow&&nt.contentWindow.focus()}}function _e(Q){let ye=H?H.parent:void 0;for(;ye;){if(ye.pathSegment&&ye.pathSegment.trim().indexOf(":")!==0){r("handleClick",{node:ye});return}ye=ye.parent}console.warn('Could not resolve "up"-node, redirecting to root'),ep.navigate("/")}function $e(Q,ye){_i.getCollapsed()||t(9,P=oe.storeExpandedState(Q.metaInfo.categoryUid,ye,E))}function kt(){G&&G.querySelector(".fd-navigation__item.lui-nav-more").setAttribute("aria-expanded",!1)}function qt(){t(8,y=_i.closePopupMenu(y)),kt()}function Nn(Q){Q&&Q.code==="Escape"&&qt()}function Ft(){t(6,v=_i.buttonClicked()),document.getElementsByClassName("luigi-tabsContainerHeader").length>0&&r("resizeTabNav",{}),Ot()}function Ne(Q){const ye=Q.code;(ye==="Enter"||ye==="Space")&&Ft()}function ct(Q,ye){(Q.code==="Enter"||Q==="Space")&&tt(ye,Q.currentTarget)}function at(Q,ye){Q.keyCode===vi&&oe.handleNavAnchorClickedWithoutMetaKey(Q)&&Te(ye)}function Ot(){if(!oe.getBurgerTooltipConfig())return;const[Q,ye]=oe.getBurgerTooltipConfig(),nt=document.body.classList.contains("lui-semiCollapsible");Q&&ye&&nt&&t(11,V=document.body.classList.contains("semiCollapsed")?Q:ye)}function Bt(Q,ye){return an(Q,ye)?Q.metaInfo.titleCollapseButton?n(Q.metaInfo.titleCollapseButton):void 0:Q.metaInfo.titleExpandButton?n(Q.metaInfo.titleExpandButton):void 0}function wn(Q){if(!Q)return;const ye=Q.target.parentElement;ye.getAttribute("aria-expanded")==="true"?ye.setAttribute("aria-expanded","false"):(qt(),ye.setAttribute("aria-expanded","true")),Q.stopPropagation()}const ei=(Q,ye)=>{oe.handleNavAnchorClickedWithoutMetaKey(ye)&&Te(Q)},xt=(Q,ye)=>at(ye,Q),kn=Q=>$e(Q,!an(Q,P)),Gn=Q=>$e(Q,!an(Q,P)),Yt=(Q,ye)=>ct(ye,Q),Tn=(Q,ye)=>tt(Q,ye.currentTarget),ki=(Q,ye)=>{oe.handleNavAnchorClickedWithoutMetaKey(ye)&&Te(Q)},Si=(Q,ye)=>at(ye,Q),hn=(Q,ye)=>{oe.handleNavAnchorClickedWithoutMetaKey(ye)&&Te(Q)},Ci=(Q,ye)=>at(ye,Q);function yi(Q){Je[Q?"unshift":"push"](()=>{G=Q,t(24,G)})}const Pi=(Q,ye)=>{oe.handleNavAnchorClickedWithoutMetaKey(ye)&&Te(Q)},Ni=(Q,ye)=>at(ye,Q),Ti=Q=>$e(Q,!an(Q,P)),_l=Q=>$e(Q,!an(Q,P)),pl=(Q,ye)=>ct(ye,Q),ml=(Q,ye)=>{oe.handleNavAnchorClickedWithoutMetaKey(ye)&&Te(Q)},Ii=(Q,ye)=>at(ye,Q),zi=(Q,ye)=>{oe.handleNavAnchorClickedWithoutMetaKey(ye)&&Te(Q)},qi=(Q,ye)=>at(ye,Q),fi=Q=>tt(Q,event.currentTarget),bl=(Q,ye)=>{oe.handleNavAnchorClickedWithoutMetaKey(ye)&&Te(Q)},vl=(Q,ye)=>at(ye,Q),Gi=Q=>Ft(),wl=Q=>Ft(),kl=Q=>Ne(Q);return i.$$set=Q=>{"children"in Q&&t(0,a=Q.children),"hideNavComponent"in Q&&t(1,o=Q.hideNavComponent),"footerText"in Q&&t(2,c=Q.footerText),"semiCollapsible"in Q&&t(41,g=Q.semiCollapsible),"semiCollapsibleButton"in Q&&t(3,d=Q.semiCollapsibleButton),"semiCollapsibleButtonStyle"in Q&&t(4,h=Q.semiCollapsibleButtonStyle),"pathData"in Q&&t(5,p=Q.pathData),"pathParams"in Q&&t(44,b=Q.pathParams),"virtualGroupPrefix"in Q&&t(14,m=Q.virtualGroupPrefix),"isSemiCollapsed"in Q&&t(6,v=Q.isSemiCollapsed),"selectedNode"in Q&&t(7,C=Q.selectedNode),"selectedCategory"in Q&&t(8,y=Q.selectedCategory),"expandedCategories"in Q&&t(9,P=Q.expandedCategories),"hasCategoriesWithIcon"in Q&&t(10,T=Q.hasCategoriesWithIcon),"sideNavAccordionMode"in Q&&t(42,E=Q.sideNavAccordionMode),"burgerTooltip"in Q&&t(11,V=Q.burgerTooltip),"navHeader"in Q&&t(12,I=Q.navHeader),"navParentNode"in Q&&t(43,H=Q.navParentNode),"sortedChildrenEntries"in Q&&t(13,se=Q.sortedChildrenEntries)},i.$$.update=()=>{if(i.$$.dirty[0]&1&&a){const Q=Object.entries(a);Q.sort((ye,nt)=>ye[1].metaInfo.order-nt[1].metaInfo.order),t(13,se=Q)}},[a,o,c,d,h,p,v,C,y,P,T,V,I,se,m,Te,tt,rt,Pt,_e,$e,qt,q,pe,G,n,$,x,K,ve,re,Re,ze,ce,Nn,Ft,Ne,ct,at,Bt,wn,g,E,H,b,Be,Vo,ei,xt,kn,Gn,Yt,Tn,ki,Si,hn,Ci,yi,Pi,Ni,Ti,_l,pl,ml,Ii,zi,qi,fi,bl,vl,Gi,wl,kl]}class rp extends Vt{constructor(e){super(),Dt(this,e,yS,kS,At,{children:0,hideNavComponent:1,footerText:2,semiCollapsible:41,semiCollapsibleButton:3,semiCollapsibleButtonStyle:4,pathData:5,pathParams:44,virtualGroupPrefix:14,isSemiCollapsed:6,selectedNode:7,selectedCategory:8,expandedCategories:9,hasCategoriesWithIcon:10,sideNavAccordionMode:42,burgerTooltip:11,navHeader:12,navParentNode:43,sortedChildrenEntries:13,handleClick:15,handleIconClick:16,calculateFlyoutPosition:45,calculateBTPNavFlyoutPosition:46,onResize:17,handleKey:18,handleUp:19,setExpandedState:20,closePopupMenu:21},null,[-1,-1,-1,-1])}get handleClick(){return this.$$.ctx[15]}get handleIconClick(){return this.$$.ctx[16]}get calculateFlyoutPosition(){return this.$$.ctx[45]}get calculateBTPNavFlyoutPosition(){return Vo}get onResize(){return this.$$.ctx[17]}get handleKey(){return this.$$.ctx[18]}get handleUp(){return this.$$.ctx[19]}get setExpandedState(){return this.$$.ctx[20]}get closePopupMenu(){return this.$$.ctx[21]}}const PS=i=>{dn.doOnStoreChange(i.store,()=>{const e=ae.getConfigValue("navigation.appSwitcher");return e&&(i.set({appSwitcherItems:e.items}),i.set({showMainAppEntry:e.showMainAppEntry}),i.set({itemRenderer:e.itemRenderer}),le.requestExperimentalFeature("btpToolLayout")&&(i.set({keepMainTitle:e.keepMainTitle}),i.set({showSubTitle:e.showSubTitle!==!1}))),i.set({hasApps:i.get().showMainAppEntry||i.get().appSwitcherItems&&i.get().appSwitcherItems.length>0}),ae.getConfigValueAsync("settings.header").then(t=>{if(t&&(i.set({defaultTitle:t.title||""}),i.set({defaultSubTitle:t.subTitle||""})),ap(i),!t)return;const n=!!t.logo;if(i.set({hasLogo:n}),setTimeout(()=>{n&&i.get().logo&&(i.get().logo.src=t.logo,t.altText&&(i.get().logo.alt=t.altText))}),t.favicon){const l=Object.assign(document.createElement("link"),{type:"image/x-icon",rel:"shortcut icon",href:t.favicon}),r=document.getElementsByTagName("head")[0];for(const a of r.childNodes)a.rel==="shortcut icon"&&a.remove();r.appendChild(l)}})},["settings.header"])},NS=(i,e,t)=>!!(i===e||e.startsWith(":")&&t&&t[e.substr(1)]===i),ap=i=>{const e=i.get().appSwitcherItems,t=i.get().pathData,n=i.get().pathParams;let l;e&&t&&[...e].sort((c,g)=>(g.link||"").localeCompare(c.link||"")).some(c=>{let g=!0;return le.trimTrailingSlash(le.trimLeadingSlash(c.link)).split("/").forEach((d,h)=>{g&&(h+1>=t.length||!t[h+1].pathSegment||!NS(d,t[h+1].pathSegment,n))&&(g=!1)}),g&&(l=c),g}),i.set({selectedItem:l});const r=l&&l.title?l.title:i.get().defaultTitle,a=Yr.getDocumentTitle()||r;i.set({title:r}),document.title=yt.getTranslation(a);const o=l?l.subTitle||"":i.get().defaultSubTitle;i.set({subTitle:o})};function Rd(i,e,t){const n=i.slice();return n[45]=e[t],n[47]=t,n}function Dd(i,e,t){const n=i.slice();return n[45]=e[t],n}function TS(i){let e,t,n,l,r=i[1]&&Vd(i);return{c(){e=S("span"),r&&r.c(),f(e,"class",t="fd-shellbar__logo "+(i[1]?"":"fd-shellbar__logo--image-replaced")+" "+(i[1]?"lui-customlogo":"")+" svelte-bbvnsa"),f(e,"aria-label",i[2]),f(e,"role","button"),f(e,"tabindex","0")},m(a,o){A(a,e,o),r&&r.m(e,null),n||(l=te(e,"click",i[31]),n=!0)},p(a,o){a[1]?r?r.p(a,o):(r=Vd(a),r.c(),r.m(e,null)):r&&(r.d(1),r=null),o[0]&2&&t!==(t="fd-shellbar__logo "+(a[1]?"":"fd-shellbar__logo--image-replaced")+" "+(a[1]?"lui-customlogo":"")+" svelte-bbvnsa")&&f(e,"class",t),o[0]&4&&f(e,"aria-label",a[2])},d(a){a&&L(e),r&&r.d(),n=!1,l()}}}function IS(i){let e,t,n,l,r=i[1]&&Od(i);return{c(){e=S("a"),r&&r.c(),f(e,"class",t="fd-shellbar__logo "+(i[1]?"":"fd-shellbar__logo--image-replaced")+" "+(i[1]?"lui-customlogo":"")+" svelte-bbvnsa"),f(e,"aria-label",i[2]),f(e,"href","/"),f(e,"role","button"),f(e,"tabindex","0")},m(a,o){A(a,e,o),r&&r.m(e,null),n||(l=te(e,"click",i[29]),n=!0)},p(a,o){a[1]?r?r.p(a,o):(r=Od(a),r.c(),r.m(e,null)):r&&(r.d(1),r=null),o[0]&2&&t!==(t="fd-shellbar__logo "+(a[1]?"":"fd-shellbar__logo--image-replaced")+" "+(a[1]?"lui-customlogo":"")+" svelte-bbvnsa")&&f(e,"class",t),o[0]&4&&f(e,"aria-label",a[2])},d(a){a&&L(e),r&&r.d(),n=!1,l()}}}function Vd(i){let e;return{c(){e=S("img"),f(e,"data-testid","luigi-topnav-logo"),f(e,"alt",i[2]),f(e,"class","svelte-bbvnsa")},m(t,n){A(t,e,n),i[30](e)},p(t,n){n[0]&4&&f(e,"alt",t[2])},d(t){t&&L(e),i[30](null)}}}function Od(i){let e;return{c(){e=S("img"),f(e,"data-testid","luigi-topnav-logo"),f(e,"alt",i[2]),f(e,"class","svelte-bbvnsa")},m(t,n){A(t,e,n),i[28](e)},p(t,n){n[0]&4&&f(e,"alt",t[2])},d(t){t&&L(e),i[28](null)}}}function Md(i){let e,t,n,l=(!i[3]||i[4])&&Fd(i),r=i[3]&&Ud(i),a=i[12]&&i[5]&&Yd(i);return{c(){l&&l.c(),e=W(),r&&r.c(),t=W(),a&&a.c(),n=Ce()},m(o,c){l&&l.m(o,c),A(o,e,c),r&&r.m(o,c),A(o,t,c),a&&a.m(o,c),A(o,n,c)},p(o,c){!o[3]||o[4]?l?l.p(o,c):(l=Fd(o),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),o[3]?r?r.p(o,c):(r=Ud(o),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),o[12]&&o[5]?a?a.p(o,c):(a=Yd(o),a.c(),a.m(n.parentNode,n)):a&&(a.d(1),a=null)},d(o){l&&l.d(o),o&&L(e),r&&r.d(o),o&&L(t),a&&a.d(o),o&&L(n)}}}function Fd(i){let e;function t(r,a){return r[14]?AS:LS}let n=t(i),l=n(i);return{c(){l.c(),e=Ce()},m(r,a){l.m(r,a),A(r,e,a)},p(r,a){n===(n=t(r))&&l?l.p(r,a):(l.d(1),l=n(r),l&&(l.c(),l.m(e.parentNode,e)))},d(r){l.d(r),r&&L(e)}}}function LS(i){let e,t,n=i[19](i[4]?i[8]:i[2])+"",l,r,a;return{c(){e=S("span"),t=S("span"),l=Le(n),f(e,"class","fd-shellbar__title lui-shellbar-single-app-title svelte-bbvnsa"),f(e,"data-testid","luigi-topnav-title")},m(o,c){A(o,e,c),w(e,t),w(t,l),r||(a=te(e,"click",i[33]),r=!0)},p(o,c){c[0]&524564&&n!==(n=o[19](o[4]?o[8]:o[2])+"")&&Ae(l,n)},d(o){o&&L(e),r=!1,a()}}}function AS(i){let e,t,n=i[19](i[4]?i[8]:i[2])+"",l,r,a,o;return{c(){e=S("a"),t=S("span"),l=Le(n),f(e,"class",r="fd-shellbar__title lui-shellbar-single-app-title "+(i[3]&&"lui-has-apps")+" svelte-bbvnsa"),f(e,"data-testid","luigi-topnav-title"),f(e,"href","/")},m(c,g){A(c,e,g),w(e,t),w(t,l),a||(o=te(e,"click",i[32]),a=!0)},p(c,g){g[0]&524564&&n!==(n=c[19](c[4]?c[8]:c[2])+"")&&Ae(l,n),g[0]&8&&r!==(r="fd-shellbar__title lui-shellbar-single-app-title "+(c[3]&&"lui-has-apps")+" svelte-bbvnsa")&&f(e,"class",r)},d(c){c&&L(e),a=!1,o()}}}function Ud(i){let e,t,n,l,r,a,o,c,g,d,h;function p(y,P){return y[14]?RS:ES}let b=p(i),m=b(i),v=i[6]&&i[7]&&Gd(i),C=i[9]&&i[9].length>0&&Kd(i);return{c(){e=S("div"),t=S("div"),m.c(),n=W(),l=S("div"),r=S("nav"),a=S("ul"),v&&v.c(),o=W(),C&&C.c(),f(t,"class","fd-popover__control"),f(a,"class","fd-menu__list fd-menu__list--no-shadow"),f(r,"class","fd-menu"),f(l,"class","fd-popover__body fd-popover__body--left"),f(l,"aria-hidden",c=!i[13].appSwitcherPopover),f(l,"id","appSwitcherPopover"),f(e,"class",g="fd-popover "+(i[4]&&"lui-keep-main")+" svelte-bbvnsa")},m(y,P){A(y,e,P),w(e,t),m.m(t,null),w(e,n),w(e,l),w(l,r),w(r,a),v&&v.m(a,null),w(a,o),C&&C.m(a,null),i[38](a),d||(h=te(t,"click",Ut(MS)),d=!0)},p(y,P){b===(b=p(y))&&m?m.p(y,P):(m.d(1),m=b(y),m&&(m.c(),m.m(t,null))),y[6]&&y[7]?v?v.p(y,P):(v=Gd(y),v.c(),v.m(a,o)):v&&(v.d(1),v=null),y[9]&&y[9].length>0?C?C.p(y,P):(C=Kd(y),C.c(),C.m(a,null)):C&&(C.d(1),C=null),P[0]&8192&&c!==(c=!y[13].appSwitcherPopover)&&f(l,"aria-hidden",c),P[0]&16&&g!==(g="fd-popover "+(y[4]&&"lui-keep-main")+" svelte-bbvnsa")&&f(e,"class",g)},d(y){y&&L(e),m.d(),v&&v.d(),C&&C.d(),i[38](null),d=!1,h()}}}function ES(i){let e,t,n=i[19](i[2])+"",l,r,a,o,c,g;return{c(){e=S("button"),t=S("span"),l=Le(n),r=W(),a=S("i"),f(t,"class","fd-shellbar__title svelte-bbvnsa"),f(t,"data-testid","luigi-topnav-title"),f(a,"class","sap-icon sap-icon--megamenu fd-shellbar__button--icon"),f(e,"class","fd-button fd-button--transparent fd-button--menu fd-shellbar__button fd-shellbar__button--menu lui-app-switch"),f(e,"aria-haspopup","true"),f(e,"aria-expanded",o=i[13].appSwitcherPopover||!1),f(e,"data-testid","app-switcher")},m(d,h){A(d,e,h),w(e,t),w(t,l),w(e,r),w(e,a),c||(g=te(e,"click",Ut(i[36])),c=!0)},p(d,h){h[0]&524292&&n!==(n=d[19](d[2])+"")&&Ae(l,n),h[0]&8192&&o!==(o=d[13].appSwitcherPopover||!1)&&f(e,"aria-expanded",o)},d(d){d&&L(e),c=!1,g()}}}function RS(i){let e,t,n,l=i[9]&&i[9].length===1&&Bd(i),r=i[9]&&i[9].length>1&&Hd(i),a=i[9].length>1&&!i[7]&&qd(i);return{c(){l&&l.c(),e=W(),r&&r.c(),t=W(),a&&a.c(),n=Ce()},m(o,c){l&&l.m(o,c),A(o,e,c),r&&r.m(o,c),A(o,t,c),a&&a.m(o,c),A(o,n,c)},p(o,c){o[9]&&o[9].length===1?l?l.p(o,c):(l=Bd(o),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null),o[9]&&o[9].length>1?r?r.p(o,c):(r=Hd(o),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),o[9].length>1&&!o[7]?a?a.p(o,c):(a=qd(o),a.c(),a.m(n.parentNode,n)):a&&(a.d(1),a=null)},d(o){l&&l.d(o),o&&L(e),r&&r.d(o),o&&L(t),a&&a.d(o),o&&L(n)}}}function Bd(i){let e,t,n=i[19](i[9][0].title)+"",l,r;return{c(){e=S("a"),t=S("span"),l=Le(n),f(e,"href",r=i[24](i[9][0])),f(e,"class","fd-shellbar__title lui-shellbar-single-app-title svelte-bbvnsa")},m(a,o){A(a,e,o),w(e,t),w(t,l)},p(a,o){o[0]&524800&&n!==(n=a[19](a[9][0].title)+"")&&Ae(l,n),o[0]&512&&r!==(r=a[24](a[9][0]))&&f(e,"href",r)},d(a){a&&L(e)}}}function Hd(i){let e,t=i[9],n=[];for(let l=0;l<t.length;l+=1)n[l]=zd(Dd(i,t,l));return{c(){for(let l=0;l<n.length;l+=1)n[l].c();e=Ce()},m(l,r){for(let a=0;a<n.length;a+=1)n[a].m(l,r);A(l,e,r)},p(l,r){if(r[0]&25832068){t=l[9];let a;for(a=0;a<t.length;a+=1){const o=Dd(l,t,a);n[a]?n[a].p(o,r):(n[a]=zd(o),n[a].c(),n[a].m(e.parentNode,e))}for(;a<n.length;a+=1)n[a].d(1);n.length=t.length}},d(l){ht(n,l),l&&L(e)}}}function Wd(i){let e,t,n=i[19](i[2])+"",l,r,a,o,c,g,d,h;return{c(){e=S("a"),t=S("span"),l=Le(n),r=W(),a=S("i"),o=W(),f(t,"class","fd-shellbar__title svelte-bbvnsa"),f(t,"data-testid","luigi-topnav-title"),f(a,"class","sap-icon sap-icon--megamenu fd-shellbar__button--icon"),f(e,"href",c=i[24](i[45])),f(e,"class","fd-button fd-button--transparent fd-button--menu fd-shellbar__button fd-shellbar__button--menu lui-app-switch"),f(e,"aria-haspopup","true"),f(e,"aria-expanded",g=i[13].appSwitcherPopover||!1),f(e,"data-testid","app-switcher")},m(p,b){A(p,e,b),w(e,t),w(t,l),w(e,r),w(e,a),w(e,o),d||(h=te(e,"click",wt(i[34])),d=!0)},p(p,b){b[0]&524292&&n!==(n=p[19](p[2])+"")&&Ae(l,n),b[0]&512&&c!==(c=p[24](p[45]))&&f(e,"href",c),b[0]&8192&&g!==(g=p[13].appSwitcherPopover||!1)&&f(e,"aria-expanded",g)},d(p){p&&L(e),d=!1,h()}}}function zd(i){let e=i[45]===i[7]&&i[23](i[45],i[11]),t,n=e&&Wd(i);return{c(){n&&n.c(),t=Ce()},m(l,r){n&&n.m(l,r),A(l,t,r)},p(l,r){r[0]&2688&&(e=l[45]===l[7]&&l[23](l[45],l[11])),e?n?n.p(l,r):(n=Wd(l),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(l){n&&n.d(l),l&&L(t)}}}function qd(i){let e,t,n=i[19](i[2])+"",l,r,a,o,c,g;return{c(){e=S("a"),t=S("span"),l=Le(n),r=W(),a=S("i"),f(t,"class","fd-shellbar__title svelte-bbvnsa"),f(t,"data-testid","luigi-topnav-title"),f(a,"class","sap-icon sap-icon--megamenu fd-shellbar__button--icon"),f(e,"href","/"),f(e,"class","fd-button fd-button--transparent fd-button--menu fd-shellbar__button fd-shellbar__button--menu lui-app-switch"),f(e,"aria-haspopup","true"),f(e,"aria-expanded",o=i[13].appSwitcherPopover||!1),f(e,"data-testid","app-switcher")},m(d,h){A(d,e,h),w(e,t),w(t,l),w(e,r),w(e,a),c||(g=te(e,"click",wt(i[35])),c=!0)},p(d,h){h[0]&524292&&n!==(n=d[19](d[2])+"")&&Ae(l,n),h[0]&8192&&o!==(o=d[13].appSwitcherPopover||!1)&&f(e,"aria-expanded",o)},d(d){d&&L(e),c=!1,g()}}}function Gd(i){let e,t,n,l=i[19](i[8])+"",r,a,o,c;return{c(){e=S("li"),t=S("a"),n=S("span"),r=Le(l),f(n,"class","fd-menu__title"),f(t,"href","/"),f(t,"role","button"),f(t,"class","fd-menu__link"),f(t,"data-testid",a=i[22](i[8])),f(e,"class","fd-menu__item")},m(g,d){A(g,e,d),w(e,t),w(t,n),w(n,r),o||(c=te(t,"click",wt(i[16])),o=!0)},p(g,d){d[0]&524544&&l!==(l=g[19](g[8])+"")&&Ae(r,l),d[0]&256&&a!==(a=g[22](g[8]))&&f(t,"data-testid",a)},d(g){g&&L(e),o=!1,c()}}}function Kd(i){let e,t=i[9],n=[];for(let l=0;l<t.length;l+=1)n[l]=Jd(Rd(i,t,l));return{c(){for(let l=0;l<n.length;l+=1)n[l].c();e=Ce()},m(l,r){for(let a=0;a<n.length;a+=1)n[a].m(l,r);A(l,e,r)},p(l,r){if(r[0]&32296576){t=l[9];let a;for(a=0;a<t.length;a+=1){const o=Rd(l,t,a);n[a]?n[a].p(o,r):(n[a]=Jd(o),n[a].c(),n[a].m(e.parentNode,e))}for(;a<n.length;a+=1)n[a].d(1);n.length=t.length}},d(l){ht(n,l),l&&L(e)}}}function DS(i){let e,t,n,l=i[19](i[45].title)+"",r,a,o,c,g,d;function h(...p){return i[37](i[45],...p)}return{c(){e=S("li"),t=S("a"),n=S("span"),r=Le(l),c=W(),f(n,"class","fd-menu__title"),f(t,"role","button"),f(t,"class","fd-menu__link"),f(t,"href",a=i[14]?i[24](i[45],i[11]):void 0),f(t,"data-testid",o=i[22](i[45])),f(e,"class","fd-menu__item")},m(p,b){A(p,e,b),w(e,t),w(t,n),w(n,r),w(e,c),g||(d=te(t,"click",h),g=!0)},p(p,b){i=p,b[0]&524800&&l!==(l=i[19](i[45].title)+"")&&Ae(r,l),b[0]&18944&&a!==(a=i[14]?i[24](i[45],i[11]):void 0)&&f(t,"href",a),b[0]&512&&o!==(o=i[22](i[45]))&&f(t,"data-testid",o)},d(p){p&&L(e),g=!1,d()}}}function VS(i){let e,t=i[18]&&jd(i);return{c(){t&&t.c(),e=Ce()},m(n,l){t&&t.m(n,l),A(n,e,l)},p(n,l){n[18]?t?t.p(n,l):(t=jd(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},d(n){t&&t.d(n),n&&L(e)}}}function jd(i){let e,t,n=i[21](i[45],i[18],i[47])+"",l;return{c(){e=S("li"),t=new hr(!1),l=W(),t.a=l,f(e,"class","fd-menu__item"),f(e,"tabindex","0")},m(r,a){A(r,e,a),t.m(n,e),w(e,l)},p(r,a){a[0]&262656&&n!==(n=r[21](r[45],r[18],r[47])+"")&&t.p(n)},d(r){r&&L(e)}}}function Jd(i){let e,t,n;function l(o,c){if(c[0]&1024&&(e=null),c[0]&2688&&(t=null),e==null&&(e=!!le.isFunction(o[10])),e)return VS;if(t==null&&(t=!!(o[45]!==o[7]&&o[23](o[45],o[11]))),t)return DS}let r=l(i,[-1,-1]),a=r&&r(i);return{c(){a&&a.c(),n=Ce()},m(o,c){a&&a.m(o,c),A(o,n,c)},p(o,c){r===(r=l(o,c))&&a?a.p(o,c):(a&&a.d(1),a=r&&r(o),a&&(a.c(),a.m(n.parentNode,n)))},d(o){a&&a.d(o),o&&L(n)}}}function Yd(i){let e,t=i[19](i[12])+"",n;return{c(){e=S("div"),n=Le(t),f(e,"class","fd-shellbar__subtitle svelte-bbvnsa")},m(l,r){A(l,e,r),w(e,n)},p(l,r){r[0]&528384&&t!==(t=l[19](l[12])+"")&&Ae(n,t)},d(l){l&&L(e)}}}function OS(i){let e,t;function n(o,c){return o[14]?IS:TS}let l=n(i),r=l(i),a=i[2]&&Md(i);return{c(){r.c(),e=W(),a&&a.c(),t=Ce()},m(o,c){r.m(o,c),A(o,e,c),a&&a.m(o,c),A(o,t,c)},p(o,c){l===(l=n(o))&&r?r.p(o,c):(r.d(1),r=l(o),r&&(r.c(),r.m(e.parentNode,e))),o[2]?a?a.p(o,c):(a=Md(o),a.c(),a.m(t.parentNode,t)):a&&(a.d(1),a=null)},i:We,o:We,d(o){r.d(o),o&&L(e),a&&a.d(o),o&&L(t)}}}const MS=()=>{};function FS(i,e,t){let n;const l=Jt();let{logo:r}=e,{hasLogo:a}=e,{title:o}=e,{hasApps:c}=e,{keepMainTitle:g}=e,{showSubTitle:d=!0}=e,{dropDownStates:h={}}=e,{showMainAppEntry:p}=e,{selectedItem:b}=e,{defaultTitle:m}=e,{appSwitcherItems:v}=e,{itemRenderer:C}=e,{pathParams:y}=e,{subTitle:P}=e,{defaultSubTitle:T}=e,{pathData:E}=e,{addNavHrefForAnchor:V}=e,I,H,O=vt("getUnsavedChangesModalPromise"),D=vt("getTranslation");wi(i,D,_e=>t(19,n=_e));let q=vt("store");const Z={closeDropDown:()=>{J("appSwitcherPopover")}},$=()=>({get:()=>({pathData:E,pathParams:y,appSwitcherItems:v,itemRenderer:C,selectedItem:b,defaultTitle:m,title:o,subTitle:P,defaultSubTitle:T,showMainAppEntry:p,hasApps:c,keepMainTitle:g,showSubTitle:d,hasLogo:a,logo:r}),set:_e=>{_e&&Object.getOwnPropertyNames(_e).forEach($e=>{$e==="pathData"?t(26,E=_e.pathData):$e==="appSwitcherItems"?t(9,v=_e.appSwitcherItems):$e==="itemRenderer"?t(10,C=_e.itemRenderer):$e==="pathParams"?t(11,y=_e.pathParams):$e==="selectedItem"?t(7,b=_e.selectedItem):$e==="title"?t(2,o=_e.title):$e==="defaultSubTitle"?t(25,T=_e.defaultSubTitle):$e==="subTitle"?t(12,P=_e.subTitle):$e==="defaultTitle"?t(8,m=_e.defaultTitle):$e==="subTitle"?t(12,P=_e.subTitle):$e==="showMainAppEntry"?t(6,p=_e.showMainAppEntry):$e==="hasApps"?t(3,c=_e.hasApps):$e==="keepMainTitle"?t(4,g=_e.keepMainTitle):$e==="showSubTitle"?t(5,d=_e.showSubTitle):$e==="hasLogo"&&t(1,a=_e.hasLogo)})},store:q});$t(()=>{PS($())}),qn(()=>{(!H||H!=E)&&(ap($()),H=E)});function pe(_e,$e,kt){return setTimeout(()=>{$e&&C(_e,$e.children[kt],Z)}),""}function x(_e){O().then(()=>{lt.navigateTo(we.applyPathParams(_e,y))},()=>{})}function G(){O().then(()=>{lt.navigateTo("/")},()=>{})}function K(_e){l("handleClick",{node:_e}),J("appSwitcherPopover")}function J(_e){l("toggleDropdownState",{name:_e})}function ge(_e){return _e.testId?_e.testId:oe.prepareForTests(_e.title||_e)}function ie(_e,$e){if(_e.link){const kt=we.applyPathParams(_e.link,$e);if(kt.indexOf(":")!==0&&kt.indexOf("/:")===-1)return!0}return!1}function se(_e){return we.getNodeHref(_e)}function ve(_e){Je[_e?"unshift":"push"](()=>{r=_e,t(0,r)})}const re=_e=>{oe.handleNavAnchorClickedWithoutMetaKey(_e)&&x("/")};function Re(_e){Je[_e?"unshift":"push"](()=>{r=_e,t(0,r)})}const ze=()=>x("/"),ne=_e=>{oe.handleNavAnchorClickedWithoutMetaKey(_e)&&x("/")},ce=()=>x("/"),Te=()=>J("appSwitcherPopover"),tt=()=>J("appSwitcherPopover"),Be=()=>J("appSwitcherPopover"),rt=(_e,$e)=>{oe.handleNavAnchorClickedWithoutMetaKey($e)&&x(_e.link)};function Pt(_e){Je[_e?"unshift":"push"](()=>{I=_e,t(18,I)})}return i.$$set=_e=>{"logo"in _e&&t(0,r=_e.logo),"hasLogo"in _e&&t(1,a=_e.hasLogo),"title"in _e&&t(2,o=_e.title),"hasApps"in _e&&t(3,c=_e.hasApps),"keepMainTitle"in _e&&t(4,g=_e.keepMainTitle),"showSubTitle"in _e&&t(5,d=_e.showSubTitle),"dropDownStates"in _e&&t(13,h=_e.dropDownStates),"showMainAppEntry"in _e&&t(6,p=_e.showMainAppEntry),"selectedItem"in _e&&t(7,b=_e.selectedItem),"defaultTitle"in _e&&t(8,m=_e.defaultTitle),"appSwitcherItems"in _e&&t(9,v=_e.appSwitcherItems),"itemRenderer"in _e&&t(10,C=_e.itemRenderer),"pathParams"in _e&&t(11,y=_e.pathParams),"subTitle"in _e&&t(12,P=_e.subTitle),"defaultSubTitle"in _e&&t(25,T=_e.defaultSubTitle),"pathData"in _e&&t(26,E=_e.pathData),"addNavHrefForAnchor"in _e&&t(14,V=_e.addNavHrefForAnchor)},[r,a,o,c,g,d,p,b,m,v,C,y,P,h,V,x,G,J,I,n,D,pe,ge,ie,se,T,E,K,ve,re,Re,ze,ne,ce,Te,tt,Be,rt,Pt]}class US extends Vt{constructor(e){super(),Dt(this,e,FS,OS,At,{logo:0,hasLogo:1,title:2,hasApps:3,keepMainTitle:4,showSubTitle:5,dropDownStates:13,showMainAppEntry:6,selectedItem:7,defaultTitle:8,appSwitcherItems:9,itemRenderer:10,pathParams:11,subTitle:12,defaultSubTitle:25,pathData:26,addNavHrefForAnchor:14,goTo:15,goToRoot:16,handleClick:27,toggleDropdownState:17},null,[-1,-1])}get goTo(){return this.$$.ctx[15]}get goToRoot(){return this.$$.ctx[16]}get handleClick(){return this.$$.ctx[27]}get toggleDropdownState(){return this.$$.ctx[17]}}function Qd(i,e,t){const n=i.slice();return n[34]=e[t],n}function Zd(i){let e,t,n,l,r,a,o=i[0]&&Xd(i),c=(i[10]||i[11])&&lh(i);return{c(){e=S("div"),o&&o.c(),t=W(),n=S("div"),l=S("div"),r=S("div"),a=S("div"),c&&c.c(),f(e,"class","fd-user-menu__body lui-user-menu-fiori svelte-ydef8m"),f(a,"class","fd-bar__element"),f(r,"class","fd-bar__right"),f(l,"class","fd-bar fd-bar--footer"),f(n,"class","fd-popover__body-footer")},m(g,d){A(g,e,d),o&&o.m(e,null),A(g,t,d),A(g,n,d),w(n,l),w(l,r),w(r,a),c&&c.m(a,null)},p(g,d){g[0]?o?o.p(g,d):(o=Xd(g),o.c(),o.m(e,null)):o&&(o.d(1),o=null),g[10]||g[11]?c?c.p(g,d):(c=lh(g),c.c(),c.m(a,null)):c&&(c.d(1),c=null)},d(g){g&&L(e),o&&o.d(),g&&L(t),g&&L(n),c&&c.d()}}}function Xd(i){let e,t,n,l,r,a,o;function c(C,y){return C[7].picture?HS:BS}let g=c(i),d=g(i),h=i[7].name&&$d(i),p=i[7].description&&xd(i),b=i[9].items,m=[];for(let C=0;C<b.length;C+=1)m[C]=th(Qd(i,b,C));let v=i[12]&&nh(i);return{c(){e=S("div"),d.c(),t=W(),n=S("div"),h&&h.c(),l=W(),p&&p.c(),r=W(),a=S("ul");for(let C=0;C<m.length;C+=1)m[C].c();o=W(),v&&v.c(),f(e,"class","fd-user-menu__header"),f(n,"class","fd-user-menu__subheader"),f(a,"class","fd-list fd-list--compact fd-list--navigation fd-list--navigation-indication fd-list--no-border")},m(C,y){A(C,e,y),d.m(e,null),A(C,t,y),A(C,n,y),h&&h.m(n,null),w(n,l),p&&p.m(n,null),A(C,r,y),A(C,a,y);for(let P=0;P<m.length;P+=1)m[P].m(a,null);w(a,o),v&&v.m(a,null)},p(C,y){if(g===(g=c(C))&&d?d.p(C,y):(d.d(1),d=g(C),d&&(d.c(),d.m(e,null))),C[7].name?h?h.p(C,y):(h=$d(C),h.c(),h.m(n,l)):h&&(h.d(1),h=null),C[7].description?p?p.p(C,y):(p=xd(C),p.c(),p.m(n,null)):p&&(p.d(1),p=null),y[0]&991884){b=C[9].items;let P;for(P=0;P<b.length;P+=1){const T=Qd(C,b,P);m[P]?m[P].p(T,y):(m[P]=th(T),m[P].c(),m[P].m(a,o))}for(;P<m.length;P+=1)m[P].d(1);m.length=b.length}C[12]?v?v.p(C,y):(v=nh(C),v.c(),v.m(a,null)):v&&(v.d(1),v=null)},d(C){C&&L(e),d.d(),C&&L(t),C&&L(n),h&&h.d(),p&&p.d(),C&&L(r),C&&L(a),ht(m,C),v&&v.d()}}}function BS(i){let e,t=(i[7].initials?i[7].initials:"")+"",n;return{c(){e=S("span"),n=Le(t),f(e,"class","fd-avatar fd-avatar--xl fd-avatar--circle fd-avatar--thumbnail fd-user-menu__avatar"),f(e,"aria-label","Avatar")},m(l,r){A(l,e,r),w(e,n)},p(l,r){r[0]&128&&t!==(t=(l[7].initials?l[7].initials:"")+"")&&Ae(n,t)},d(l){l&&L(e)}}}function HS(i){let e;return{c(){e=S("span"),f(e,"class","fd-avatar fd-avatar--xl fd-avatar--circle fd-avatar--thumbnail fd-user-menu__avatar"),f(e,"aria-label","Avatar"),f(e,"data-testid","luigi-topnav-profile-avatar"),Vn(e,"background-image","url('"+i[7].picture+"')")},m(t,n){A(t,e,n)},p(t,n){n[0]&128&&Vn(e,"background-image","url('"+t[7].picture+"')")},d(t){t&&L(e)}}}function $d(i){let e,t=i[7].name+"",n;return{c(){e=S("div"),n=Le(t),f(e,"class","fd-user-menu__user-name svelte-ydef8m"),f(e,"id","username"),f(e,"data-testid","luigi-topnav-profile-username")},m(l,r){A(l,e,r),w(e,n)},p(l,r){r[0]&128&&t!==(t=l[7].name+"")&&Ae(n,t)},d(l){l&&L(e)}}}function xd(i){let e,t=i[7].description+"",n;return{c(){e=S("div"),n=Le(t),f(e,"class","fd-user-menu__user-role svelte-ydef8m"),f(e,"data-testid","luigi-topnav-profile-description")},m(l,r){A(l,e,r),w(e,n)},p(l,r){r[0]&128&&t!==(t=l[7].description+"")&&Ae(n,t)},d(l){l&&L(e)}}}function eh(i){let e,t;function n(a,o){return o[0]&512&&(e=null),e==null&&(e=!!a[17](a[34])),e?zS:WS}let l=n(i,[-1,-1]),r=l(i);return{c(){r.c(),t=Ce()},m(a,o){r.m(a,o),A(a,t,o)},p(a,o){l===(l=n(a,o))&&r?r.p(a,o):(r.d(1),r=l(a),r&&(r.c(),r.m(t.parentNode,t)))},d(a){r.d(a),a&&L(t)}}}function WS(i){let e,t;return{c(){e=S("img"),f(e,"class","fd-top-nav__icon nav-icon svelte-ydef8m"),Vn(e,"background-image","url('"+i[7].icon+"')"),f(e,"alt",t=i[34].altText?i[34].altText:"")},m(n,l){A(n,e,l)},p(n,l){l[0]&128&&Vn(e,"background-image","url('"+n[7].icon+"')"),l[0]&512&&t!==(t=n[34].altText?n[34].altText:"")&&f(e,"alt",t)},d(n){n&&L(e)}}}function zS(i){let e,t;return{c(){e=S("i"),f(e,"role","presentation"),f(e,"class",t="fd-list__icon "+i[16](i[34].icon)+" svelte-ydef8m")},m(n,l){A(n,e,l)},p(n,l){l[0]&512&&t!==(t="fd-list__icon "+n[16](n[34].icon)+" svelte-ydef8m")&&f(e,"class",t)},d(n){n&&L(e)}}}function th(i){let e,t,n,l,r=i[13](i[34].label)+"",a,o,c,g,d,h=i[34].icon&&eh(i);function p(){return i[24](i[34])}return{c(){e=S("li"),t=S("a"),h&&h.c(),n=W(),l=S("span"),a=Le(r),f(l,"class","fd-list__title svelte-ydef8m"),f(t,"tabindex","0"),f(t,"class","fd-list__link"),f(t,"data-testid","luigi-topnav-profile-item"),f(t,"href",o=i[2]?i[19](i[34]):void 0),f(e,"tabindex","-1"),f(e,"class","fd-list__item fd-list__item--link"),f(e,"data-testid",c=i[18](i[34]))},m(b,m){A(b,e,m),w(e,t),h&&h.m(t,null),w(t,n),w(t,l),w(l,a),g||(d=[te(t,"click",i[23]),te(e,"click",p)],g=!0)},p(b,m){i=b,i[34].icon?h?h.p(i,m):(h=eh(i),h.c(),h.m(t,n)):h&&(h.d(1),h=null),m[0]&8704&&r!==(r=i[13](i[34].label)+"")&&Ae(a,r),m[0]&516&&o!==(o=i[2]?i[19](i[34]):void 0)&&f(t,"href",o),m[0]&512&&c!==(c=i[18](i[34]))&&f(e,"data-testid",c)},d(b){b&&L(e),h&&h.d(),g=!1,Ye(d)}}}function nh(i){let e,t,n,l,r=i[13](i[9].settings.label)+"",a,o,c,g=i[9].settings.icon&&ih(i);return{c(){e=S("li"),t=S("a"),g&&g.c(),n=W(),l=S("span"),a=Le(r),f(l,"class","fd-list__title svelte-ydef8m"),f(t,"tabindex","0"),f(t,"class","fd-list__link"),f(t,"title","User Settings"),f(t,"data-testid","settings-link"),f(e,"tabindex","-1"),f(e,"class","fd-list__item fd-list__item--link lui-anchor-node")},m(d,h){A(d,e,h),w(e,t),g&&g.m(t,null),w(t,n),w(t,l),w(l,a),o||(c=[te(e,"click",wt(i[5])),te(e,"keyup",i[25])],o=!0)},p(d,h){d[9].settings.icon?g?g.p(d,h):(g=ih(d),g.c(),g.m(t,n)):g&&(g.d(1),g=null),h[0]&8704&&r!==(r=d[13](d[9].settings.label)+"")&&Ae(a,r)},d(d){d&&L(e),g&&g.d(),o=!1,Ye(c)}}}function ih(i){let e,t;function n(a,o){return o[0]&512&&(e=null),e==null&&(e=!!a[17](a[9].settings)),e?GS:qS}let l=n(i,[-1,-1]),r=l(i);return{c(){r.c(),t=Ce()},m(a,o){r.m(a,o),A(a,t,o)},p(a,o){l===(l=n(a,o))&&r?r.p(a,o):(r.d(1),r=l(a),r&&(r.c(),r.m(t.parentNode,t)))},d(a){r.d(a),a&&L(t)}}}function qS(i){let e,t,n;return{c(){e=S("img"),f(e,"class","fd-top-nav__icon nav-icon svelte-ydef8m"),Xe(e.src,t=i[9].settings.icon)||f(e,"src",t),f(e,"alt",n=i[9].settings.altText?i[9].settings.altText:"")},m(l,r){A(l,e,r)},p(l,r){r[0]&512&&!Xe(e.src,t=l[9].settings.icon)&&f(e,"src",t),r[0]&512&&n!==(n=l[9].settings.altText?l[9].settings.altText:"")&&f(e,"alt",n)},d(l){l&&L(e)}}}function GS(i){let e,t;return{c(){e=S("i"),f(e,"role","presentation"),f(e,"class",t="fd-list__icon "+i[16](i[9].settings.icon)+" svelte-ydef8m")},m(n,l){A(n,e,l)},p(n,l){l[0]&512&&t!==(t="fd-list__icon "+n[16](n[9].settings.icon)+" svelte-ydef8m")&&f(e,"class",t)},d(n){n&&L(e)}}}function lh(i){let e,t,n=(i[8]||!i[10]&&i[11])&&rh(i),l=i[10]&&!i[8]&&ah(i);return{c(){n&&n.c(),e=W(),l&&l.c(),t=Ce()},m(r,a){n&&n.m(r,a),A(r,e,a),l&&l.m(r,a),A(r,t,a)},p(r,a){r[8]||!r[10]&&r[11]?n?n.p(r,a):(n=rh(r),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null),r[10]&&!r[8]?l?l.p(r,a):(l=ah(r),l.c(),l.m(t.parentNode,t)):l&&(l.d(1),l=null)},d(r){n&&n.d(r),r&&L(e),l&&l.d(r),r&&L(t)}}}function rh(i){let e,t,n=i[13](i[9].logout.label)+"",l,r,a,o;return{c(){e=S("div"),t=S("button"),l=Le(n),f(t,"class","fd-button fd-button--transparent fd-button--compact"),f(t,"tabindex","0"),f(t,"data-testid","logout-btn"),f(e,"class","fd-bar__element"),f(e,"data-testid",r=i[18](i[9].logout))},m(c,g){A(c,e,g),w(e,t),w(t,l),a||(o=te(t,"click",i[4]),a=!0)},p(c,g){g[0]&8704&&n!==(n=c[13](c[9].logout.label)+"")&&Ae(l,n),g[0]&512&&r!==(r=c[18](c[9].logout))&&f(e,"data-testid",r)},d(c){c&&L(e),a=!1,o()}}}function ah(i){let e,t,n,l,r;return{c(){e=S("button"),e.textContent="Login",t=W(),n=S("button"),n.textContent="Login",f(e,"class","fd-button fd-button--transparent fd-button--compact"),f(e,"tabindex","0"),f(e,"data-testid","login-btn"),f(n,"class","fd-button fd-button--transparent fd-button--compact"),f(n,"tabindex","0"),f(n,"data-testid","login-btn")},m(a,o){A(a,e,o),A(a,t,o),A(a,n,o),l||(r=[te(e,"click",i[15]),te(n,"click",i[15])],l=!0)},p:We,d(a){a&&L(e),a&&L(t),a&&L(n),l=!1,Ye(r)}}}function KS(i){let e,t=!i[1]&&Zd(i);return{c(){t&&t.c(),e=Ce()},m(n,l){t&&t.m(n,l),A(n,e,l)},p(n,l){n[1]?t&&(t.d(1),t=null):t?t.p(n,l):(t=Zd(n),t.c(),t.m(e.parentNode,e))},i:We,o:We,d(n){t&&t.d(n),n&&L(e)}}}function jS(i,e,t){let n;const l=Jt();let{isHidden:r=!1}=e,{addNavHrefForAnchor:a}=e,o,c,g={logout:{},items:[],settings:{}},d,h,p,b,m,v=vt("store"),C=vt("getTranslation");wi(i,C,ie=>t(13,n=ie));let y=vt("getUnsavedChangesModalPromise"),P=vt("openViewInModal");$t(async()=>{pi.isAuthorizationEnabled()?t(10,d=!0):(t(10,d=!1),D()),O(),fn.getLoggedInStore().subscribe(ie=>{t(8,c=ie)}),fn.getUserInfoStore().subscribe(ie=>{t(7,o=ie),l("userInfoUpdated",o)})});function T(){fn.startAuthorization()}function E(ie){return oe.renderIconClassName(ie)}function V(ie){return oe.isOpenUIiconName(ie.icon)}function I(ie){return ie.testId?ie.testId:oe.prepareForTests(ie.label)}function H(ie){return we.getNodeHref(ie)}function O(){b||(dn.doOnStoreChange(v,async()=>{const ie=await ae.getConfigValueAsync("navigation.profile.logout"),se=await ae.getConfigValueAsync("userSettings"),ve=se||await ae.getConfigValueAsync("settings.userSettings"),re={items:await ae.getConfigValueAsync("navigation.profile.items")||[]};if(ve){const Re=ve.userSettingsProfileMenuEntry;re.settings={...dl.userSettingsProfileMenuEntry,...Re}}re.logout={...dl.logout,...ie},t(11,h=!!ie),m=!1,fn.setProfileLogoutFn(null),ie&&le.isFunction(ie.customLogoutFn)&&(m=!0,fn.setProfileLogoutFn(ie.customLogoutFn)),t(9,g=re),t(12,p=!!ve)},["navigation.profile"]),b=!0)}async function D(){const ie=await ae.getConfigValueAsync("navigation.profile.staticUserInfoFn");ie&&(fn.setUserInfo(o),t(7,o=ie),l("userInfoUpdated",o))}function q(ie){y().then(()=>{if(ie.openNodeInModal){const se=we.buildRoute(ie,`${ie.link}`);P(se,ie.openNodeInModal===!0?{}:ie.openNodeInModal)}else lt.navigateToLink(ie)},()=>{}),l("toggleDropdownState")}function Z(){y().then(()=>{d?pe():h&&m?g.logout.customLogoutFn():console.error("No IDP provider or profile.customLogoutFn is defined.")},()=>{})}function $(){Yr.openUserSettings(),l("toggleDropdownState")}function pe(){fn.logout()}function x({keyCode:ie}){(ie===vi||ie===Kr)&&document.querySelector(".lui-anchor-node>.fd-list__link").click()}let{showUserInfo:G}=e;const K=ie=>{oe.handleNavAnchorClickedWithoutMetaKey(ie)},J=ie=>q(ie),ge=ie=>x(ie);return i.$$set=ie=>{"isHidden"in ie&&t(1,r=ie.isHidden),"addNavHrefForAnchor"in ie&&t(2,a=ie.addNavHrefForAnchor),"showUserInfo"in ie&&t(0,G=ie.showUserInfo)},i.$$.update=()=>{i.$$.dirty[0]&128&&t(0,G=!!(o&&(o.name||o.email)))},[G,r,a,q,Z,$,x,o,c,g,d,h,p,n,C,T,E,V,I,H,O,D,pe,K,J,ge]}class JS extends Vt{constructor(e){super(),Dt(this,e,jS,KS,At,{isHidden:1,addNavHrefForAnchor:2,setProfileNavData:20,setProfileUserData:21,onActionClick:3,onLogoutClick:4,onUserSettingsClick:5,logout:22,handleKeyUp:6,showUserInfo:0},null,[-1,-1])}get setProfileNavData(){return this.$$.ctx[20]}get setProfileUserData(){return this.$$.ctx[21]}get onActionClick(){return this.$$.ctx[3]}get onLogoutClick(){return this.$$.ctx[4]}get onUserSettingsClick(){return this.$$.ctx[5]}get logout(){return this.$$.ctx[22]}get handleKeyUp(){return this.$$.ctx[6]}}function sh(i,e,t){const n=i.slice();return n[34]=e[t],n}function oh(i){let e,t,n,l,r,a=i[0]&&uh(i),o=i[9].items,c=[];for(let h=0;h<o.length;h+=1)c[h]=ch(sh(i,o,h));let g=i[12]&&dh(i),d=(i[10]||i[11])&&gh(i);return{c(){e=S("nav"),t=S("ul"),a&&a.c(),n=W();for(let h=0;h<c.length;h+=1)c[h].c();l=W(),g&&g.c(),r=W(),d&&d.c(),f(t,"class","fd-menu__list fd-menu__list--no-shadow"),f(e,"class","fd-menu lui-profile-simple-menu svelte-1msqoo3")},m(h,p){A(h,e,p),w(e,t),a&&a.m(t,null),w(t,n);for(let b=0;b<c.length;b+=1)c[b].m(t,null);w(t,l),g&&g.m(t,null),w(t,r),d&&d.m(t,null)},p(h,p){if(h[0]?a?a.p(h,p):(a=uh(h),a.c(),a.m(t,n)):a&&(a.d(1),a=null),p[0]&991756){o=h[9].items;let b;for(b=0;b<o.length;b+=1){const m=sh(h,o,b);c[b]?c[b].p(m,p):(c[b]=ch(m),c[b].c(),c[b].m(t,l))}for(;b<c.length;b+=1)c[b].d(1);c.length=o.length}h[12]?g?g.p(h,p):(g=dh(h),g.c(),g.m(t,r)):g&&(g.d(1),g=null),h[10]||h[11]?d?d.p(h,p):(d=gh(h),d.c(),d.m(t,null)):d&&(d.d(1),d=null)},d(h){h&&L(e),a&&a.d(),ht(c,h),g&&g.d(),d&&d.d()}}}function uh(i){let e,t,n=(i[7].name?i[7].name:i[7].email)+"",l;return{c(){e=S("li"),t=S("span"),l=Le(n),f(t,"aria-label","Username"),f(t,"id","username"),f(t,"class","lui-username fd-has-type-1 svelte-1msqoo3"),f(t,"data-testid","luigi-topnav-profile-username"),f(e,"class","fd-menu__item")},m(r,a){A(r,e,a),w(e,t),w(t,l)},p(r,a){a[0]&128&&n!==(n=(r[7].name?r[7].name:r[7].email)+"")&&Ae(l,n)},d(r){r&&L(e)}}}function fh(i){let e,t;function n(a,o){return o[0]&512&&(e=null),e==null&&(e=!!a[17](a[34])),e?QS:YS}let l=n(i,[-1,-1]),r=l(i);return{c(){r.c(),t=Ce()},m(a,o){r.m(a,o),A(a,t,o)},p(a,o){l===(l=n(a,o))&&r?r.p(a,o):(r.d(1),r=l(a),r&&(r.c(),r.m(t.parentNode,t)))},d(a){r.d(a),a&&L(t)}}}function YS(i){let e,t,n;return{c(){e=S("img"),f(e,"class","fd-top-nav__icon nav-icon svelte-1msqoo3"),Xe(e.src,t=i[34].icon)||f(e,"src",t),f(e,"alt",n=i[34].altText?i[34].altText:"")},m(l,r){A(l,e,r)},p(l,r){r[0]&512&&!Xe(e.src,t=l[34].icon)&&f(e,"src",t),r[0]&512&&n!==(n=l[34].altText?l[34].altText:"")&&f(e,"alt",n)},d(l){l&&L(e)}}}function QS(i){let e,t;return{c(){e=S("span"),f(e,"class",t="fd-top-nav__icon "+i[16](i[34].icon)+" svelte-1msqoo3")},m(n,l){A(n,e,l)},p(n,l){l[0]&512&&t!==(t="fd-top-nav__icon "+n[16](n[34].icon)+" svelte-1msqoo3")&&f(e,"class",t)},d(n){n&&L(e)}}}function ch(i){let e,t,n,l,r=i[13](i[34].label)+"",a,o,c,g,d,h=i[34].icon&&fh(i);function p(){return i[24](i[34])}return{c(){e=S("li"),t=S("a"),h&&h.c(),n=W(),l=S("span"),a=Le(r),f(l,"class","fd-menu__title"),f(t,"class","fd-menu__link"),f(t,"data-testid","luigi-topnav-profile-item"),f(t,"href",o=i[2]?i[19](i[34]):void 0),f(e,"class","fd-menu__item"),f(e,"data-testid",c=i[18](i[34]))},m(b,m){A(b,e,m),w(e,t),h&&h.m(t,null),w(t,n),w(t,l),w(l,a),g||(d=[te(t,"click",i[23]),te(e,"click",p)],g=!0)},p(b,m){i=b,i[34].icon?h?h.p(i,m):(h=fh(i),h.c(),h.m(t,n)):h&&(h.d(1),h=null),m[0]&8704&&r!==(r=i[13](i[34].label)+"")&&Ae(a,r),m[0]&516&&o!==(o=i[2]?i[19](i[34]):void 0)&&f(t,"href",o),m[0]&512&&c!==(c=i[18](i[34]))&&f(e,"data-testid",c)},d(b){b&&L(e),h&&h.d(),g=!1,Ye(d)}}}function dh(i){let e,t,n,l,r=i[13](i[9].settings.label)+"",a,o,c,g,d=i[9].settings.icon&&hh(i);return{c(){e=S("li"),t=S("a"),d&&d.c(),n=W(),l=S("span"),a=Le(r),f(l,"class","fd-menu__title"),f(t,"tabindex","0"),f(t,"title","User Settings"),f(t,"class","fd-menu__link"),f(t,"data-testid","settings-link"),f(e,"tabindex","-1"),f(e,"class","fd-menu__item lui-anchor-node"),f(e,"data-testid",o=i[18](i[9].settings))},m(h,p){A(h,e,p),w(e,t),d&&d.m(t,null),w(t,n),w(t,l),w(l,a),c||(g=[te(e,"click",wt(i[5])),te(e,"keyup",i[25])],c=!0)},p(h,p){h[9].settings.icon?d?d.p(h,p):(d=hh(h),d.c(),d.m(t,n)):d&&(d.d(1),d=null),p[0]&8704&&r!==(r=h[13](h[9].settings.label)+"")&&Ae(a,r),p[0]&512&&o!==(o=h[18](h[9].settings))&&f(e,"data-testid",o)},d(h){h&&L(e),d&&d.d(),c=!1,Ye(g)}}}function hh(i){let e,t;function n(a,o){return o[0]&512&&(e=null),e==null&&(e=!!a[17](a[9].settings)),e?XS:ZS}let l=n(i,[-1,-1]),r=l(i);return{c(){r.c(),t=Ce()},m(a,o){r.m(a,o),A(a,t,o)},p(a,o){l===(l=n(a,o))&&r?r.p(a,o):(r.d(1),r=l(a),r&&(r.c(),r.m(t.parentNode,t)))},d(a){r.d(a),a&&L(t)}}}function ZS(i){let e,t,n;return{c(){e=S("img"),f(e,"class","fd-top-nav__icon nav-icon svelte-1msqoo3"),Xe(e.src,t=i[9].settings.icon)||f(e,"src",t),f(e,"alt",n=i[9].settings.altText?i[9].settings.altText:"")},m(l,r){A(l,e,r)},p(l,r){r[0]&512&&!Xe(e.src,t=l[9].settings.icon)&&f(e,"src",t),r[0]&512&&n!==(n=l[9].settings.altText?l[9].settings.altText:"")&&f(e,"alt",n)},d(l){l&&L(e)}}}function XS(i){let e,t;return{c(){e=S("i"),f(e,"class",t="fd-top-nav__icon "+i[16](i[9].settings.icon)+" svelte-1msqoo3")},m(n,l){A(n,e,l)},p(n,l){l[0]&512&&t!==(t="fd-top-nav__icon "+n[16](n[9].settings.icon)+" svelte-1msqoo3")&&f(e,"class",t)},d(n){n&&L(e)}}}function gh(i){let e,t,n=(i[8]||!i[10]&&i[11])&&_h(i),l=i[10]&&!i[8]&&mh(i);return{c(){n&&n.c(),e=W(),l&&l.c(),t=Ce()},m(r,a){n&&n.m(r,a),A(r,e,a),l&&l.m(r,a),A(r,t,a)},p(r,a){r[8]||!r[10]&&r[11]?n?n.p(r,a):(n=_h(r),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null),r[10]&&!r[8]?l?l.p(r,a):(l=mh(r),l.c(),l.m(t.parentNode,t)):l&&(l.d(1),l=null)},d(r){n&&n.d(r),r&&L(e),l&&l.d(r),r&&L(t)}}}function _h(i){let e,t,n,l,r=i[13](i[9].logout.label)+"",a,o,c,g,d=i[9].logout.icon&&ph(i);return{c(){e=S("li"),t=S("button"),d&&d.c(),n=W(),l=S("span"),a=Le(r),f(l,"class","fd-menu__title"),f(t,"title","Logout"),f(t,"class","fd-menu__link lui-logout-btn svelte-1msqoo3"),f(t,"data-testid","logout-btn"),f(e,"class","fd-menu__item svelte-1msqoo3"),f(e,"data-testid",o=i[18](i[9].logout))},m(h,p){A(h,e,p),w(e,t),d&&d.m(t,null),w(t,n),w(t,l),w(l,a),c||(g=te(e,"click",i[4]),c=!0)},p(h,p){h[9].logout.icon?d?d.p(h,p):(d=ph(h),d.c(),d.m(t,n)):d&&(d.d(1),d=null),p[0]&8704&&r!==(r=h[13](h[9].logout.label)+"")&&Ae(a,r),p[0]&512&&o!==(o=h[18](h[9].logout))&&f(e,"data-testid",o)},d(h){h&&L(e),d&&d.d(),c=!1,g()}}}function ph(i){let e,t;function n(a,o){return o[0]&512&&(e=null),e==null&&(e=!!a[17](a[9].logout)),e?xS:$S}let l=n(i,[-1,-1]),r=l(i);return{c(){r.c(),t=Ce()},m(a,o){r.m(a,o),A(a,t,o)},p(a,o){l===(l=n(a,o))&&r?r.p(a,o):(r.d(1),r=l(a),r&&(r.c(),r.m(t.parentNode,t)))},d(a){r.d(a),a&&L(t)}}}function $S(i){let e,t,n;return{c(){e=S("img"),f(e,"class","fd-top-nav__icon nav-icon svelte-1msqoo3"),Xe(e.src,t=i[9].logout.icon)||f(e,"src",t),f(e,"alt",n=i[9].logout.altText?i[9].logout.altText:"")},m(l,r){A(l,e,r)},p(l,r){r[0]&512&&!Xe(e.src,t=l[9].logout.icon)&&f(e,"src",t),r[0]&512&&n!==(n=l[9].logout.altText?l[9].logout.altText:"")&&f(e,"alt",n)},d(l){l&&L(e)}}}function xS(i){let e,t;return{c(){e=S("i"),f(e,"class",t="fd-top-nav__icon "+i[16](i[9].logout.icon)+" svelte-1msqoo3")},m(n,l){A(n,e,l)},p(n,l){l[0]&512&&t!==(t="fd-top-nav__icon "+n[16](n[9].logout.icon)+" svelte-1msqoo3")&&f(e,"class",t)},d(n){n&&L(e)}}}function mh(i){let e,t,n;return{c(){e=S("li"),e.innerHTML='<a aria-label="Login" class="fd-menu__link" data-testid="login-btn"><span class="fd-menu__title">Login</span></a>',f(e,"class","fd-menu__item")},m(l,r){A(l,e,r),t||(n=te(e,"click",i[15]),t=!0)},p:We,d(l){l&&L(e),t=!1,n()}}}function eC(i){let e,t=!i[1]&&oh(i);return{c(){t&&t.c(),e=Ce()},m(n,l){t&&t.m(n,l),A(n,e,l)},p(n,l){n[1]?t&&(t.d(1),t=null):t?t.p(n,l):(t=oh(n),t.c(),t.m(e.parentNode,e))},i:We,o:We,d(n){t&&t.d(n),n&&L(e)}}}function tC(i,e,t){let n;const l=Jt();let{isHidden:r=!1}=e,{addNavHrefForAnchor:a}=e,o,c,g={logout:{},items:[],settings:{}},d,h,p,b,m,v=vt("store"),C=vt("getTranslation");wi(i,C,ie=>t(13,n=ie));let y=vt("getUnsavedChangesModalPromise"),P=vt("openViewInModal");$t(async()=>{pi.isAuthorizationEnabled()?t(10,d=!0):(t(10,d=!1),D()),O(),fn.getLoggedInStore().subscribe(ie=>{t(8,c=ie)}),fn.getUserInfoStore().subscribe(ie=>{t(7,o=ie),l("userInfoUpdated",o)})});function T(){fn.startAuthorization()}function E(ie){return oe.renderIconClassName(ie)}function V(ie){return oe.isOpenUIiconName(ie.icon)}function I(ie){return ie.testId?ie.testId:oe.prepareForTests(ie.label)}function H(ie){return we.getNodeHref(ie)}function O(){b||(dn.doOnStoreChange(v,async()=>{const ie=await ae.getConfigValueAsync("navigation.profile.logout"),se=await ae.getConfigValueAsync("userSettings"),ve=se||await ae.getConfigValueAsync("settings.userSettings");t(12,p=!!ve);const re={items:await ae.getConfigValueAsync("navigation.profile.items")||[]};if(p){const Re=ve.userSettingsProfileMenuEntry;re.settings={...dl.userSettingsProfileMenuEntry,...Re}}re.logout={...dl.logout,...ie},t(11,h=!!ie),m=!1,fn.setProfileLogoutFn(null),ie&&le.isFunction(ie.customLogoutFn)&&(m=!0,fn.setProfileLogoutFn(ie.customLogoutFn)),t(9,g=re)},["navigation.profile"]),b=!0)}async function D(){const ie=await ae.getConfigValueAsync("navigation.profile.staticUserInfoFn");ie&&(fn.setUserInfo(o),t(7,o=ie),l("userInfoUpdated",o))}function q(ie){y().then(()=>{if(ie.openNodeInModal){const se=we.buildRoute(ie,`${ie.link}`);P(se,ie.openNodeInModal===!0?{}:ie.openNodeInModal)}else lt.navigateToLink(ie)},()=>{}),l("toggleDropdownState")}function Z(){y().then(()=>{d?pe():h&&m?g.logout.customLogoutFn():console.error("No IDP provider or profile.customLogoutFn is defined.")},()=>{})}function $(){Yr.openUserSettings(),l("toggleDropdownState")}function pe(){fn.logout()}function x({keyCode:ie}){(ie===vi||ie===Kr)&&document.querySelector(".lui-anchor-node>.fd-menu__link").click()}let{showUserInfo:G}=e;const K=ie=>{oe.handleNavAnchorClickedWithoutMetaKey(ie)},J=ie=>q(ie),ge=ie=>x(ie);return i.$$set=ie=>{"isHidden"in ie&&t(1,r=ie.isHidden),"addNavHrefForAnchor"in ie&&t(2,a=ie.addNavHrefForAnchor),"showUserInfo"in ie&&t(0,G=ie.showUserInfo)},i.$$.update=()=>{i.$$.dirty[0]&128&&t(0,G=!!(o&&(o.name||o.email)))},[G,r,a,q,Z,$,x,o,c,g,d,h,p,n,C,T,E,V,I,H,O,D,pe,K,J,ge]}class sp extends Vt{constructor(e){super(),Dt(this,e,tC,eC,At,{isHidden:1,addNavHrefForAnchor:2,setProfileNavData:20,setProfileUserData:21,onActionClick:3,onLogoutClick:4,onUserSettingsClick:5,logout:22,handleKeyUp:6,showUserInfo:0},null,[-1,-1])}get setProfileNavData(){return this.$$.ctx[20]}get setProfileUserData(){return this.$$.ctx[21]}get onActionClick(){return this.$$.ctx[3]}get onLogoutClick(){return this.$$.ctx[4]}get onUserSettingsClick(){return this.$$.ctx[5]}get logout(){return this.$$.ctx[22]}get handleKeyUp(){return this.$$.ctx[6]}}function bh(i,e,t){const n=i.slice();return n[11]=e[t],n}function vh(i){let e,t,n=i[1],l=[];for(let a=0;a<n.length;a+=1)l[a]=Sh(bh(i,n,a));const r=a=>U(l[a],1,1,()=>{l[a]=null});return{c(){for(let a=0;a<l.length;a+=1)l[a].c();e=Ce()},m(a,o){for(let c=0;c<l.length;c+=1)l[c].m(a,o);A(a,e,o),t=!0},p(a,o){if(o&254){n=a[1];let c;for(c=0;c<n.length;c+=1){const g=bh(a,n,c);l[c]?(l[c].p(g,o),R(l[c],1)):(l[c]=Sh(g),l[c].c(),R(l[c],1),l[c].m(e.parentNode,e))}for(ke(),c=n.length;c<l.length;c+=1)r(c);Se()}},i(a){if(!t){for(let o=0;o<n.length;o+=1)R(l[o]);t=!0}},o(a){l=l.filter(Boolean);for(let o=0;o<l.length;o+=1)U(l[o]);t=!1},d(a){ht(l,a),a&&L(e)}}}function wh(i){let e,t,n,l,r,a,o,c,g=i[3](i[11])+"",d,h,p=i[4](i[11]),b,m,v,C,y,P;function T(O,D){return D&6&&(n=null),n==null&&(n=!!O[2](O[11])),n?iC:nC}let E=T(i,-1),V=E(i);r=new Pn({props:{node:i[11]}});let I=p&&kh(i);function H(){return i[9](i[11])}return{c(){e=S("li"),t=S("div"),V.c(),l=W(),Ue(r.$$.fragment),a=W(),o=S("div"),c=S("div"),d=Le(g),h=W(),I&&I.c(),b=W(),f(t,"class","lui-product-switch__icon svelte-t09cq9"),f(c,"class","fd-product-switch__title"),f(o,"class","fd-product-switch__text svelte-t09cq9"),f(e,"class",m="fd-product-switch__item "+(i[5]=="true"?"y-has-no-subtitle":"")+" "+(i[11].selected?"selected":"")+" svelte-t09cq9"),f(e,"data-e2e","mobile-topnav-item"),f(e,"data-testid",v=oe.getTestId(i[11]))},m(O,D){A(O,e,D),w(e,t),V.m(t,null),w(t,l),Me(r,t,null),w(e,a),w(e,o),w(o,c),w(c,d),w(o,h),I&&I.m(o,null),w(e,b),C=!0,y||(P=te(e,"click",H),y=!0)},p(O,D){i=O,E===(E=T(i,D))&&V?V.p(i,D):(V.d(1),V=E(i),V&&(V.c(),V.m(t,l)));const q={};D&2&&(q.node=i[11]),r.$set(q),(!C||D&10)&&g!==(g=i[3](i[11])+"")&&Ae(d,g),D&18&&(p=i[4](i[11])),p?I?I.p(i,D):(I=kh(i),I.c(),I.m(o,null)):I&&(I.d(1),I=null),(!C||D&34&&m!==(m="fd-product-switch__item "+(i[5]=="true"?"y-has-no-subtitle":"")+" "+(i[11].selected?"selected":"")+" svelte-t09cq9"))&&f(e,"class",m),(!C||D&2&&v!==(v=oe.getTestId(i[11])))&&f(e,"data-testid",v)},i(O){C||(R(r.$$.fragment,O),C=!0)},o(O){U(r.$$.fragment,O),C=!1},d(O){O&&L(e),V.d(),Fe(r),I&&I.d(),y=!1,P()}}}function nC(i){let e,t,n;return{c(){e=S("img"),Xe(e.src,t=i[11].icon)||f(e,"src",t),f(e,"alt",n=i[11].altText?i[11].altText:""),f(e,"class","svelte-t09cq9")},m(l,r){A(l,e,r)},p(l,r){r&2&&!Xe(e.src,t=l[11].icon)&&f(e,"src",t),r&2&&n!==(n=l[11].altText?l[11].altText:"")&&f(e,"alt",n)},d(l){l&&L(e)}}}function iC(i){let e,t;return{c(){e=S("i"),f(e,"class",t="sap-icon "+(i[11].icon&&i[2](i[11])?i[7](i[11].icon):"")+" svelte-t09cq9")},m(n,l){A(n,e,l)},p(n,l){l&6&&t!==(t="sap-icon "+(n[11].icon&&n[2](n[11])?n[7](n[11].icon):"")+" svelte-t09cq9")&&f(e,"class",t)},d(n){n&&L(e)}}}function kh(i){let e,t=i[4](i[11])+"",n;return{c(){e=S("div"),n=Le(t),f(e,"class","fd-product-switch__subtitle")},m(l,r){A(l,e,r),w(e,n)},p(l,r){r&18&&t!==(t=l[4](l[11])+"")&&Ae(n,t)},d(l){l&&L(e)}}}function Sh(i){let e,t,n=i[11].label&&wh(i);return{c(){n&&n.c(),e=Ce()},m(l,r){n&&n.m(l,r),A(l,e,r),t=!0},p(l,r){l[11].label?n?(n.p(l,r),r&2&&R(n,1)):(n=wh(l),n.c(),R(n,1),n.m(e.parentNode,e)):n&&(ke(),U(n,1,1,()=>{n=null}),Se())},i(l){t||(R(n),t=!0)},o(l){U(n),t=!1},d(l){n&&n.d(l),l&&L(e)}}}function lC(i){let e,t,n,l,r,a,o,c,g,d,h,p,b,m,v,C,y,P,T,E=i[1]&&vh(i);return{c(){e=S("div"),t=S("div"),n=S("div"),l=S("div"),r=S("div"),a=S("h2"),o=Le(i[0]),c=W(),g=S("div"),d=S("div"),h=S("ul"),E&&E.c(),p=W(),b=S("footer"),m=S("div"),v=S("div"),C=S("button"),C.textContent="Cancel",f(a,"class","fd-title fd-title--h5"),f(a,"id","dialog-title-4"),f(r,"class","fd-bar__element"),f(l,"class","fd-bar__left"),f(n,"class","fd-dialog__header fd-bar fd-bar--header"),f(h,"class","fd-product-switch__list"),f(d,"class","fd-product-switch__body fd-product-switch__body--mobile svelte-t09cq9"),f(g,"class","fd-dialog__body fd-dialog__body--no-vertical-padding"),f(C,"class","fd-button fd-button--light fd-dialog__decisive-button"),f(C,"data-testid","mobile-topnav-close"),f(v,"class","fd-bar__element"),f(m,"class","fd-bar__right"),f(b,"class","fd-dialog__footer fd-bar fd-bar--cosy fd-bar--footer"),f(t,"class","fd-dialog__content fd-dialog__content--mobile"),f(t,"role","dialog"),f(t,"aria-modal","true"),f(t,"aria-labelledby","dialog-title-4"),f(e,"class","fd-dialog fd-dialog--active")},m(V,I){A(V,e,I),w(e,t),w(t,n),w(n,l),w(l,r),w(r,a),w(a,o),w(t,c),w(t,g),w(g,d),w(d,h),E&&E.m(h,null),w(t,p),w(t,b),w(b,m),w(m,v),w(v,C),y=!0,P||(T=[te(C,"click",i[8]),te(e,"click",Ut(rC))],P=!0)},p(V,[I]){(!y||I&1)&&Ae(o,V[0]),V[1]?E?(E.p(V,I),I&2&&R(E,1)):(E=vh(V),E.c(),R(E,1),E.m(h,null)):E&&(ke(),U(E,1,1,()=>{E=null}),Se())},i(V){y||(R(E),y=!0)},o(V){U(E),y=!1},d(V){V&&L(e),E&&E.d(),P=!1,Ye(T)}}}const rC=()=>{};function aC(i,e,t){const n=Jt();let{label:l}=e,{nodes:r}=e,{hasOpenUIicon:a}=e,{getNodeLabel:o}=e,{getNodeSubtitle:c}=e,{noSubTitle:g}=e;function d(m){return oe.renderIconClassName(m)}function h(m){n("listClick",m)}function p(m){Ol.call(this,i,m)}const b=m=>h(m);return i.$$set=m=>{"label"in m&&t(0,l=m.label),"nodes"in m&&t(1,r=m.nodes),"hasOpenUIicon"in m&&t(2,a=m.hasOpenUIicon),"getNodeLabel"in m&&t(3,o=m.getNodeLabel),"getNodeSubtitle"in m&&t(4,c=m.getNodeSubtitle),"noSubTitle"in m&&t(5,g=m.noSubTitle)},[l,r,a,o,c,g,h,d,p,b]}class op extends Vt{constructor(e){super(),Dt(this,e,aC,lC,At,{label:0,nodes:1,hasOpenUIicon:2,getNodeLabel:3,getNodeSubtitle:4,noSubTitle:5,onActionClick:6})}get onActionClick(){return this.$$.ctx[6]}}const{window:sC}=gl;function Ch(i,e,t){const n=i.slice();return n[7]=e[t],n}function yh(i){let e,t,n,l=i[0]&&Ph(i);return{c(){e=S("nav"),t=S("ul"),l&&l.c(),f(t,"class","fd-menu__list fd-menu__list--top fd-menu__list--no-shadow"),f(e,"class","fd-menu")},m(r,a){A(r,e,a),w(e,t),l&&l.m(t,null),n=!0},p(r,a){r[0]?l?(l.p(r,a),a&1&&R(l,1)):(l=Ph(r),l.c(),R(l,1),l.m(t,null)):l&&(ke(),U(l,1,1,()=>{l=null}),Se())},i(r){n||(R(l),n=!0)},o(r){U(l),n=!1},d(r){r&&L(e),l&&l.d()}}}function Ph(i){let e,t,n=i[0],l=[];for(let a=0;a<n.length;a+=1)l[a]=Th(Ch(i,n,a));const r=a=>U(l[a],1,1,()=>{l[a]=null});return{c(){for(let a=0;a<l.length;a+=1)l[a].c();e=Ce()},m(a,o){for(let c=0;c<l.length;c+=1)l[c].m(a,o);A(a,e,o),t=!0},p(a,o){if(o&7693){n=a[0];let c;for(c=0;c<n.length;c+=1){const g=Ch(a,n,c);l[c]?(l[c].p(g,o),R(l[c],1)):(l[c]=Th(g),l[c].c(),R(l[c],1),l[c].m(e.parentNode,e))}for(ke(),c=n.length;c<l.length;c+=1)r(c);Se()}},i(a){if(!t){for(let o=0;o<n.length;o+=1)R(l[o]);t=!0}},o(a){l=l.filter(Boolean);for(let o=0;o<l.length;o+=1)U(l[o]);t=!1},d(a){ht(l,a),a&&L(e)}}}function Nh(i){let e,t,n,l,r,a,o,c,g=i[11](i[7])+"",d,h,p,b,m,v,C;function y(V,I){return I&1&&(l=null),l==null&&(l=!!(V[7].icon&&V[9](V[7]))),l?uC:oC}let P=y(i,-1),T=P(i);a=new Pn({props:{node:i[7]}});function E(){return i[14](i[7])}return{c(){e=S("li"),t=S("a"),n=S("span"),T.c(),r=W(),Ue(a.$$.fragment),o=W(),c=S("span"),d=Le(g),p=W(),f(n,"class","fd-top-nav__icon svelte-1811tf3"),f(c,"class","fd-menu__title"),f(t,"href",h=i[2]?i[12](i[7]):void 0),f(t,"class","fd-menu__link"),f(e,"class","fd-menu__item"),f(e,"data-testid",b=oe.getTestId(i[7]))},m(V,I){A(V,e,I),w(e,t),w(t,n),T.m(n,null),w(n,r),Me(a,n,null),w(t,o),w(t,c),w(c,d),w(e,p),m=!0,v||(C=[te(t,"click",i[13]),te(e,"click",E)],v=!0)},p(V,I){i=V,P===(P=y(i,I))&&T?T.p(i,I):(T.d(1),T=P(i),T&&(T.c(),T.m(n,r)));const H={};I&1&&(H.node=i[7]),a.$set(H),(!m||I&1)&&g!==(g=i[11](i[7])+"")&&Ae(d,g),(!m||I&5&&h!==(h=i[2]?i[12](i[7]):void 0))&&f(t,"href",h),(!m||I&1&&b!==(b=oe.getTestId(i[7])))&&f(e,"data-testid",b)},i(V){m||(R(a.$$.fragment,V),m=!0)},o(V){U(a.$$.fragment,V),m=!1},d(V){V&&L(e),T.d(),Fe(a),v=!1,Ye(C)}}}function oC(i){let e,t,n;return{c(){e=S("img"),f(e,"class","sap-icon svelte-1811tf3"),Xe(e.src,t=i[7].icon)||f(e,"src",t),f(e,"alt",n=i[7].altText?i[7].altText:"")},m(l,r){A(l,e,r)},p(l,r){r&1&&!Xe(e.src,t=l[7].icon)&&f(e,"src",t),r&1&&n!==(n=l[7].altText?l[7].altText:"")&&f(e,"alt",n)},d(l){l&&L(e)}}}function uC(i){let e,t;return{c(){e=S("i"),f(e,"class",t="sap-icon "+i[10](i[7].icon))},m(n,l){A(n,e,l)},p(n,l){l&1&&t!==(t="sap-icon "+n[10](n[7].icon))&&f(e,"class",t)},d(n){n&&L(e)}}}function Th(i){let e,t,n=i[7].label&&Nh(i);return{c(){n&&n.c(),e=Ce()},m(l,r){n&&n.m(l,r),A(l,e,r),t=!0},p(l,r){l[7].label?n?(n.p(l,r),r&1&&R(n,1)):(n=Nh(l),n.c(),R(n,1),n.m(e.parentNode,e)):n&&(ke(),U(n,1,1,()=>{n=null}),Se())},i(l){t||(R(n),t=!0)},o(l){U(n),t=!1},d(l){n&&n.d(l),l&&L(e)}}}function Ih(i){let e,t;return e=new op({props:{nodes:i[7].children,label:i[11](i[7]),hasOpenUIicon:i[9],getNodeLabel:i[11],getNodeSubtitle:i[8],noSubTitle:"true"}}),e.$on("click",i[5]),e.$on("listClick",i[4]),{c(){Ue(e.$$.fragment)},m(n,l){Me(e,n,l),t=!0},p(n,l){const r={};l&128&&(r.nodes=n[7].children),l&128&&(r.label=n[11](n[7])),e.$set(r)},i(n){t||(R(e.$$.fragment,n),t=!0)},o(n){U(e.$$.fragment,n),t=!1},d(n){Fe(e,n)}}}function fC(i){let e,t,n,l,r,a=!i[1]&&yh(i),o=i[1]&&Ih(i);return{c(){a&&a.c(),e=W(),o&&o.c(),t=Ce()},m(c,g){a&&a.m(c,g),A(c,e,g),o&&o.m(c,g),A(c,t,g),n=!0,l||(r=te(sC,"resize",os),l=!0)},p(c,[g]){c[1]?a&&(ke(),U(a,1,1,()=>{a=null}),Se()):a?(a.p(c,g),g&2&&R(a,1)):(a=yh(c),a.c(),R(a,1),a.m(e.parentNode,e)),c[1]?o?(o.p(c,g),g&2&&R(o,1)):(o=Ih(c),o.c(),R(o,1),o.m(t.parentNode,t)):o&&(ke(),U(o,1,1,()=>{o=null}),Se())},i(c){n||(R(a),R(o),n=!0)},o(c){U(a),U(o),n=!1},d(c){a&&a.d(c),c&&L(e),o&&o.d(c),c&&L(t),l=!1,r()}}}function os(){let i=window.innerHeight*.01;document.documentElement.style.setProperty("--vh",`${i}px`)}function cC(i,e,t){const n=Jt();let{isMobile:l}=e,{children:r}=e,{node:a}=e,o,c=vt("getUnsavedChangesModalPromise"),g=vt("openViewInModal"),{addNavHrefForAnchor:d}=e;const h=()=>{},p=()=>({get:()=>({pathParams:o}),set:I=>{}});$t(async()=>{os()}),qn(async()=>{r||t(0,r=await Mt.getChildren(a)),t(0,r)});function b(I){c().then(()=>{if(I.openNodeInModal){const H=we.buildRoute(I,`/${I.pathSegment}`);g(H,I.openNodeInModal===!0?{}:I.openNodeInModal)}else lt.handleRouteClick(I,p())},()=>{}),v()}function m(I){b(I.detail)}function v(){n("close")}function C(I){return oe.isOpenUIiconName(I.icon)}function y(I){return oe.renderIconClassName(I)}function P(I){return yt.getTranslation(I.label)}function T(I){return we.getNodeHref(I,o)}const E=I=>{oe.handleNavAnchorClickedWithoutMetaKey(I)},V=I=>b(I);return i.$$set=I=>{"isMobile"in I&&t(1,l=I.isMobile),"children"in I&&t(0,r=I.children),"node"in I&&t(7,a=I.node),"addNavHrefForAnchor"in I&&t(2,d=I.addNavHrefForAnchor)},[r,l,d,b,m,v,os,a,h,C,y,P,T,E,V]}class up extends Vt{constructor(e){super(),Dt(this,e,cC,fC,At,{isMobile:1,children:0,node:7,addNavHrefForAnchor:2,onActionClick:3,onActionClickExternal:4,closeSubNav:5,setViewportHeightVariable:6})}get onActionClick(){return this.$$.ctx[3]}get onActionClickExternal(){return this.$$.ctx[4]}get closeSubNav(){return this.$$.ctx[5]}get setViewportHeightVariable(){return os}}const vn={_fallbackLabels:new Map,resetFallbackLabelCache(){this._fallbackLabels.clear()},getPreparedParentNodePath(i){return(!i.parentNodePath||!i.parentNodePath.startsWith("/"))&&console.error("Luigi Config Error: navigation.contextSwitcher.parentNodePath must be defined as an absolute path."),i.parentNodePath?le.addTrailingSlash(i.parentNodePath):i.parentNodePath},generateSwitcherNav(i,e){const t=this.getPreparedParentNodePath(i);return e.map(n=>({label:n.label,link:(t||"/")+n.pathValue,id:n.pathValue,testId:n.testId,customRendererCategory:n.customRendererCategory}))},getNodePathFromCurrentPath(i,e){const t=le.addLeadingSlash(lt.getCurrentPath()),n=le.addLeadingSlash(e.link);return t.startsWith(n)?i.link+le.addLeadingSlash(t.substring(n.length)):i.link},getOptionById(i,e){return i.find(t=>t.id===e)},getLabelFromOptions(i,e){const t=i.find(n=>n.id===e);return t&&t.label},isContextSwitcherDetailsView(i,e){const t=le.normalizePath(i),n=le.normalizePath(e);return!!(e&&t&&typeof t=="string"&&t.startsWith(n)&&t!==n)},async getFallbackLabel(i,e){if(!i)return e;const t=ae.getConfigBooleanValue("navigation.contextSwitcher.useFallbackLabelCache"),n=vn._fallbackLabels;if(t&&n.has(e))return n.get(e);const l=await i(e);return t&&n.set(e,l),l},getSelectedId(i,e,t){if(i=le.normalizePath(i),t=le.normalizePath(t),!!vn.isContextSwitcherDetailsView(i,t))return i.replace(t,"").split("/")[0].split("?")[0]},async getSelectedOption(i,e,t){let n;const l=this.getSelectedId(i,e,t);return l&&e&&(n=vn.getOptionById(e,l)),n},async getSelectedLabel(i,e,t,n){const l=this.getSelectedId(i,e,t);if(!l)return;const r=await this.getSelectedOption(i,e,t);return(r?r.label:void 0)||await vn.getFallbackLabel(n,l)},async getSelectedNode(i,e,t){if(!this.getSelectedId(i,e,t))return;let l=await this.getSelectedOption(i,e,t);return l?l.link:void 0},async fetchOptions(i=[]){const e=ae.getConfigValue("navigation.contextSwitcher");if(!e.lazyloadOptions&&i.length)return i;const t=await ae.getConfigValueAsync("navigation.contextSwitcher.options");return await vn.generateSwitcherNav(e,t)}};function Lh(i,e,t){const n=i.slice();return n[20]=e[t],n}function Ah(i,e,t){const n=i.slice();return n[20]=e[t],n}function Eh(i,e,t){const n=i.slice();return n[20]=e[t],n}function Rh(i){let e,t=i[0],n=[];for(let l=0;l<t.length;l+=1)n[l]=Vh(Eh(i,t,l));return{c(){e=S("ul");for(let l=0;l<n.length;l+=1)n[l].c();f(e,"class","fd-menu__list fd-menu__list--top svelte-3pems2")},m(l,r){A(l,e,r);for(let a=0;a<n.length;a+=1)n[a].m(e,null)},p(l,r){if(r&10497){t=l[0];let a;for(a=0;a<t.length;a+=1){const o=Eh(l,t,a);n[a]?n[a].p(o,r):(n[a]=Vh(o),n[a].c(),n[a].m(e,null))}for(;a<n.length;a+=1)n[a].d(1);n.length=t.length}},d(l){l&&L(e),ht(n,l)}}}function Dh(i){let e,t,n,l=i[13](i[20].label)+"",r,a,o,c,g,d;function h(){return i[14](i[20])}return{c(){e=S("li"),t=S("a"),n=S("span"),r=Le(l),o=W(),f(n,"class","fd-menu__title"),f(t,"href",a=i[8](i[20])),f(t,"class","fd-menu__link"),f(e,"class","fd-menu__item"),f(e,"data-testid",c=oe.getTestId(i[20]))},m(p,b){A(p,e,b),w(e,t),w(t,n),w(n,r),w(e,o),g||(d=[te(t,"click",wt(bC)),te(e,"click",h)],g=!0)},p(p,b){i=p,b&8193&&l!==(l=i[13](i[20].label)+"")&&Ae(r,l),b&257&&a!==(a=i[8](i[20]))&&f(t,"href",a),b&1&&c!==(c=oe.getTestId(i[20]))&&f(e,"data-testid",c)},d(p){p&&L(e),g=!1,Ye(d)}}}function Vh(i){let e=i[20].position==="top"||!["top","bottom"].includes(i[20].position),t,n=e&&Dh(i);return{c(){n&&n.c(),t=Ce()},m(l,r){n&&n.m(l,r),A(l,t,r)},p(l,r){r&1&&(e=l[20].position==="top"||!["top","bottom"].includes(l[20].position)),e?n?n.p(l,r):(n=Dh(l),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(l){n&&n.d(l),l&&L(t)}}}function Oh(i){let e;return{c(){e=S("li"),e.innerHTML=`<div class="fd-busy-indicator fd-busy-indicator--m" aria-hidden="false" aria-label="Loading" data-testid="luigi-loading-spinner"><div class="fd-busy-indicator__circle"></div>